/**
 * @license RequireJS i18n 1.0.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 * Available via the MIT or new BSD license.
 * see: http://github.com/jrburke/requirejs for details
 */
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010-2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2009, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors: IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2009, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors: IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2009, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors: IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors: IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: 
 *		Felipe Heidrich (IBM Corporation) - initial API and implementation
 *		Silenio Quarti (IBM Corporation) - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2009, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors: IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2009, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/**
 * @license RequireJS text 1.0.7 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 * Available via the MIT or new BSD license.
 * see: http://github.com/jrburke/requirejs for details
 */
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2009, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors: IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010,2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/******************************************************************************* 
 * @license
 * Copyright (c) 2011, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2009, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors: IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2009, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2009, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011,2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2012 IBM Corporation and others 
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors:
 * IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *     Andy Clement (vmware) - bug 344614
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2009, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors: IBM Corporation - _initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2013 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors: IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * Contributors: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors: IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012, 2013 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2009, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     Anton McConville (IBM Corporation) - initial API and implementation
 *
 *******************************************************************************/
/*

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2010-2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2009, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2009, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2009, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: 
 Felipe Heidrich (IBM Corporation) - initial API and implementation
 Silenio Quarti (IBM Corporation) - initial API and implementation

 Copyright (c) 2009, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: Anton McConville - IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: Anton McConville - IBM Corporation - initial API and implementation

 Copyright (c) 2009, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 RequireJS text 1.0.7 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 Available via the MIT or new BSD license.
 see: http://github.com/jrburke/requirejs for details

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2009, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2010,2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2009, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2009, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2009, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011,2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2012 IBM Corporation and others 
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation
 Andy Clement (vmware) - bug 344614

 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2009, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - _initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2013 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: Anton McConville - IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: Anton McConville - IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: Anton McConville - IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: Anton McConville - IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: Anton McConville - IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: Anton McConville - IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: Anton McConville - IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 Contributors: Anton McConville - IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: Anton McConville - IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: Anton McConville - IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: Anton McConville - IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: Anton McConville - IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: Anton McConville - IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: Anton McConville - IBM Corporation - initial API and implementation

 Copyright (c) 2012, 2013 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2009, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: Anton McConville - IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: Anton McConville - IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: Anton McConville - IBM Corporation - initial API and implementation

 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 Anton McConville (IBM Corporation) - initial API and implementation

 RequireJS i18n 1.0.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 Available via the MIT or new BSD license.
 see: http://github.com/jrburke/requirejs for details

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation
*/
(function(){function f(a,c,g,d,b,j){c[a]&&(g.push(a),(c[a]===!0||c[a]===1)&&d.push(b+a+"/"+j))}function i(a,c,g,d,b){c=d+c+"/"+b;require._fileExists(a.toUrl(c))&&g.push(c)}var h=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/,c={};define("i18n",{version:"1.0.0",load:function(a,e,g,d){var d=d||{},b=h.exec(a),j=b[1],m=b[4],k=b[5],l=m.split("-"),p=[],r={},q,o,n="";b[5]?(j=b[1],a=j+k):(k=b[4],m=d.locale||(d.locale=typeof navigator==="undefined"?"root":(navigator.language||navigator.userLanguage||"root").toLowerCase()),
l=m.split("-"));if(d.isBuild){p.push(a);i(e,"root",p,j,k);for(q=0;o=l[q];q++)n+=(n?"-":"")+o,i(e,n,p,j,k);e(p,function(){g()})}else e([a],function(b){var d=[];f("root",b,d,p,j,k);for(q=0;o=l[q];q++)n+=(n?"-":"")+o,f(n,b,d,p,j,k);e(p,function(){var a,m;for(a=d.length-1;a>-1&&(o=d[a]);a--){m=b[o];if(m===!0||m===1)m=e(j+o+"/"+k);var l=r,n=void 0;for(n in m)!(n in c)&&!(n in l)&&(l[n]=m[n])}g(r)})})}})})();
define("orion/i18n",[],function(){return{load:function(f,i,h,c){var c=c||{},a=/(^.*(?:^|\/)nls(?:\/|$))([^\/]*)\/?([^\/]*)/,e=a.exec(f);if(e)if(i.defined(f))h(i(f));else if(c.isBuild||c.isTest)h({});else{var g=e[1],d=e[3]?e[2]:"",b=e[3]||e[2];i(["orion/bootstrap"],function(j){j.startup().then(function(j){var k=j.serviceRegistry,j=k.getServiceReferences("orion.i18n.message");if(d)j.some(function(b){return f===b.getProperty("name")?(k.getService(b).getMessageBundle().then(function(b){h(b)},function(){h({})}),
!0):!1})||h({});else{var l={},p;j.forEach(function(j){var m=j.getProperty("name");if((e=a.exec(m))&&g===e[1]&&b===(e[3]||e[2]))if(d=e[3]?e[2]:""){if((j=c.locale||(typeof navigator!=="undefined"?navigator.language||navigator.userLanguage:null))&&j.indexOf(d)===0)l[d]=!0,i.specified(m)||define(m,["orion/i18n!"+m],function(b){return b})}else p=j});i.specified(f)?h(l):p?k.getService(p).getMessageBundle().then(function(b){Object.keys(l).forEach(function(d){typeof b[d]==="undefined"&&(b[d]=l[d])});define(f,
[],b);h(b)},function(){define(f,[],l);h(l)}):(define(f,[],l),h(l))}})})}else h(null)}}});
define("orion/settings/nls/root/messages",{"Plugin Description":"Plugin Description",Create:"Create","Loading...":"Loading...","Label:":"Label:",Title:"Title",Plugins:"Plugins","User Profile":"User Profile","JavaScript Editor":"JavaScript Editor",General:"General",Navigation:"Navigation","Open in same tab":"Open in same tab","Open in new tab":"Open in new tab",Links:"Links",Font:"Font",Family:"Family","Sans Serif":"Sans Serif",Serif:"Serif",Size:"Size","8pt":"8pt","9pt":"9pt","10pt":"10pt","12pt":"12pt",
Color:"Color",Background:"Background",Strings:"Strings","String Types":"String Types",blue:"blue",Weight:"Weight",Normal:"Normal",Bold:"Bold",Comments:"Comments","Comment Types":"Comment Types",green:"green",Keywords:"Keywords","Keyword Types":"Keyword Types",darkred:"darkred",Categories:"Categories",Username:"Username","Full Name":"Full Name","Email Address":"Email Address","Email Confirmed":"Email Confirmed",Account:"Account","Current Password":"Current Password","New Password":"New Password","Verify Password":"Verify Password",
Password:"Password",OpenId:"OpenId",AOL:"AOL",Yahoo:"Yahoo",Google:"Google",Unlink:"Unlink",Link:"Link",Unlinked:"Unlinked",Linked:"Linked","Linked Accounts":"Linked Accounts","Git Email Address":"Git Email Address","Git Username":"Git Username","Git Credentials Storage":"Git Credentials Storage",Update:"Update","Update Profile Settings":"Update Profile Settings","Update Git Credentials":"Update Git Credentials","User profile data successfully updated.":"User profile data successfully updated.","Git Credentials successfully updated.":"Git Credentials successfully updated.",
"Edit Plugin JavaScript":"Edit Plugin JavaScript","Install Plugin":"Install Plugin","Plugin Name:":"Plugin Name:","Author Name:":"Author Name:","Licence:":"Licence:","Description:":"Description:","A plugin for Eclipse Orion":"A plugin for Eclipse Orion","Plugin Link":"Plugin Link",Install:"Install","Install a plugin by specifying its URL":"Install a plugin by specifying its URL","Plugin URL:":"Plugin URL:",Disable:"Disable",DisableTooltip:"Disable the plugin",Enable:"Enable",EnableTooltip:"Enable the plugin",
"Reload all":"Reload all","Reload all installed plugins":"Reload all installed plugins","Create a new Orion Plugin":"Create a new Orion Plugin",Reload:"Reload","Reload the plugin":"Reload the plugin",Delete:"Delete","Delete this plugin from the configuration":"Delete this plugin from the configuration","Type a plugin url here ...":"Type a plugin url here ...","Installed ":"Installed ","Installing ":"Installing ","Already installed":"Already installed"," plugin":" plugin","Reloaded ":"Reloaded ","Uninstalled ":"Uninstalled ",
"Are you sure you want to uninstall '":"Are you sure you want to uninstall '",Services:"Services",Value:"Value","JavaScript Object":"JavaScript Object","click here, then check javascript console to drill down":"click here, then check javascript console to drill down",Item:"Item","Git Config":"Git Config","Clear Git Credentials":"Clear Git Credentials","Enable Storage":"Enable Storage","Please be aware that your credentials will be stored persistently in the browser.":"Please be aware that your credentials will be stored persistently in the browser.",
"Do you wish to enable the Key Storage?":"Do you wish to enable the Key Storage?",general:"General",validation:"Validation","Deleted git credentials for ${0}":"Deleted git credentials for ${0}"});define("orion/settings/nls/messages",["orion/i18n!orion/settings/nls/messages","orion/settings/nls/root/messages"],function(f,i){var h={root:i};Object.keys(f).forEach(function(c){typeof h[c]==="undefined"&&(h[c]=f[c])});return h});
(function(f,i){typeof define==="function"&&define.amd?define("orion/Deferred",[],i):typeof exports==="object"?module.exports=i():(f.orion=f.orion||{},f.orion.Deferred=i())})(this,function(){function f(){for(var j;j=g.shift()||d.shift();)j();b=!1}function i(j,a){(a?d:g).push(j);b||(b=!0,a?setTimeout(f,0):f())}function h(b){return function(){b.apply(null,arguments)}}function c(){}function a(){var b=Error("Cancel");b.name="Cancel";return b}function e(){function b(){for(var j;j=l.shift();){var a=j.deferred,
e=g==="resolved"?"resolve":"reject";if(typeof j[e]==="function")try{var n=j[e](d);n&&typeof n.then==="function"?(a.cancel=n.cancel||c,n.then(h(a.resolve),h(a.reject),a.progress)):a.resolve(n)}catch(p){a.reject(p)}else a[e](d)}}var d,g,l=[],p=this;this.reject=function(a){g||(g="rejected",d=a,l.length&&i(b));return p.promise};this.resolve=function(a){g||(g="resolved",d=a,l.length&&i(b));return p.promise};this.progress=function(b){g||l.forEach(function(d){d.progress&&d.progress(b)});return p.promise};
this.cancel=function(){g||p.reject(a())};this.then=function(d,a,c){var d={resolve:d,reject:a,progress:c,deferred:new e},m=d.deferred,h=this.cancel.bind(this),p=function(){i(function(){(m.cancel===p?h:m.cancel)()},!0)};m.cancel=p;a=m.promise;a.cancel=function(){m.cancel()};l.push(d);g&&i(b,!0);return a};this.promise={then:this.then,cancel:this.cancel}}var g=[],d=[],b=!1;e.all=function(b,d){function a(b,d){f||(h[b]=d,--g===0&&i.resolve(h))}function c(b,j){if(!f){if(d)try{a(b,d(j));return}catch(g){j=
g}i.reject(j)}}var g=b.length,h=[],f=!1,i=new e;i.then(null,function(){f=!0;b.forEach(function(b){b.cancel&&b.cancel()})});g===0?i.resolve(h):b.forEach(function(b,d){b.then(a.bind(null,d),c.bind(null,d))});return i.promise};e.when=function(b,d,a,c){var g;if(!(b&&typeof b.then==="function"))g=new e,g.resolve(b),b=g.promise;return b.then(d,a,c)};return e});
define("orion/EventTarget",[],function(){function f(){this._namedListeners={}}f.prototype={dispatchEvent:function(f){if(!f.type)throw Error("unspecified type");var h=this._namedListeners[f.type];h&&h.forEach(function(c){try{typeof c==="function"?c(f):c.handleEvent(f)}catch(a){typeof console!=="undefined"&&console.log(a)}});return!f.defaultPrevented},addEventListener:function(f,h){if(typeof h==="function"||h.handleEvent)this._namedListeners[f]=this._namedListeners[f]||[],this._namedListeners[f].push(h)},
removeEventListener:function(f,h){var c=this._namedListeners[f];if(c)for(var a=0;a<c.length;a++)if(c[a]===h){c.length===1?delete this._namedListeners[f]:c.splice(a,1);break}}};f.prototype.constructor=f;f.attach=function(i){var h=new f;i.dispatchEvent=h.dispatchEvent.bind(h);i.addEventListener=h.addEventListener.bind(h);i.removeEventListener=h.removeEventListener.bind(h)};return f});
define("orion/serviceregistry",["orion/Deferred","orion/EventTarget"],function(f,i){function h(d,b,a){this._properties=a||{};this._properties["service.id"]=d;this._properties.objectClass=b;this._properties["service.names"]=b}function c(d,b,a){this._serviceId=d;this._serviceReference=b;this._internalRegistry=a}function a(d,b){function a(j){return function(){var a;try{if(!b())throw Error("Service was unregistered");var c=d[j].apply(d,Array.prototype.slice.call(arguments));if(c&&typeof c.then==="function")return c;
else a=new f,a.resolve(c)}catch(m){a=new f,a.reject(m)}return a.promise}}for(var c in d)typeof d[c]==="function"&&(this[c]=a(c))}function e(d,b){this.type=d;this.serviceReference=b}function g(){this._entries=[];this._namedReferences={};this._serviceEventTarget=new i;var d=this;this._internalRegistry={isRegistered:function(b){return d._entries[b]?!0:!1},unregisterService:function(b){var a=d._entries[b];if(!a)throw Error("already unregistered");var c=a.reference;d._serviceEventTarget.dispatchEvent(new e("unregistering",
c));d._entries[b]=null;c.getProperty("objectClass").forEach(function(b){for(var a=d._namedReferences[b],j=0;j<a.length;j++)if(a[j]===c){a.length===1?delete d._namedReferences[b]:a.splice(j,1);break}})},modifyService:function(b){b=d._entries[b];if(!b)throw Error("already unregistered");d._serviceEventTarget.dispatchEvent(new e("modified",b.reference))}}}h.prototype={getPropertyKeys:function(){var d=[],b;for(b in this._properties)this._properties.hasOwnProperty(b)&&d.push(b);return d},getProperty:function(d){return this._properties[d]}};
h.prototype.constructor=h;c.prototype={unregister:function(){this._internalRegistry.unregisterService(this._serviceId)},getReference:function(){if(!this._internalRegistry.isRegistered(this._serviceId))throw Error("already unregistered");return this._serviceReference},setProperties:function(d){var b=this._serviceReference._properties;this._serviceReference._properties=d||{};d["service.id"]=this._serviceId;d.objectClass=b.objectClass;d["service.names"]=b["service.names"];this._internalRegistry.modifyService(this._serviceId)}};
c.prototype.constructor=c;g.prototype={getService:function(d){var b;if(typeof d==="string")(d=this._namedReferences[d])&&d.some(function(d){b=this._entries[d.getProperty("service.id")].service;return!!b},this);else if(d=this._entries[d.getProperty("service.id")])b=d.service;return b||null},getServiceReferences:function(d){if(d)return this._namedReferences[d]?this._namedReferences[d]:[];var b=[];this._entries.forEach(function(d){d&&b.push(d.reference)});return b},registerService:function(d,b,j){if(typeof b===
"undefined"||b===null)throw Error("invalid service");typeof d==="string"?d=[d]:Array.isArray(d)||(d=[]);var m=this._entries.length,g=new h(m,d,j),l=this._namedReferences;d.forEach(function(b){l[b]=l[b]||[];l[b].push(g)});d=new a(b,this._internalRegistry.isRegistered.bind(null,m));this._entries.push({reference:g,service:d});d=this._internalRegistry;this._serviceEventTarget.dispatchEvent(new e("registered",g));return new c(m,g,d)},addEventListener:function(d,b){this._serviceEventTarget.addEventListener(d,
b)},removeEventListener:function(d,b){this._serviceEventTarget.removeEventListener(d,b)}};g.prototype.constructor=g;return{ServiceRegistry:g}});
define("orion/xhr",["orion/Deferred"],function(f){function i(h,c,a,e){var g=typeof a.response!=="undefined"?a.response:a.responseText,d;try{d=a.status}catch(b){d=0}h={args:c,response:g,responseText:typeof g==="string"?g:null,status:d,url:h,xhr:a};if(typeof e!=="undefined")h.error=e;return h}return function(h,c,a){var a=a||{},e=arguments.length>3&&arguments[3]?arguments[3]:new XMLHttpRequest,g=new f,d=a.headers||{},b=a.log||!1,j;typeof d["X-Requested-With"]==="undefined"&&(d["X-Requested-With"]="XMLHttpRequest");
if(typeof a.data!=="undefined"&&(h==="POST"||h==="PUT"))j=a.data;if(typeof a.responseType==="string")e.responseType=a.responseType;e.onprogress=function(b){b.xhr=e;g.progress(b)};e.onreadystatechange=function(){if(e.readyState===4){var d=i(c,a,e),j=e.status;200<=j&&j<400?g.resolve(d):(b&&typeof console!=="undefined"&&console.log(Error(e.statusText)),g.reject(d))}};try{e.open(h,c,!0);if(typeof a.timeout==="number")if(typeof e.timeout==="number")e.timeout=a.timeout,e.addEventListener("timeout",function(){g.reject(i(c,
a,e,"Timeout exceeded"))});else{var m=setTimeout(function(){g.reject(i(c,a,e,"Timeout exceeded"))},a.timeout);g.then(clearTimeout.bind(null,m),clearTimeout.bind(null,m))}Object.keys(d).forEach(function(b){e.setRequestHeader(b,d[b])});e.send(j)}catch(k){g.reject(i(c,a,e,k))}return g.promise}});
define("orion/preferences",["require","orion/Deferred","orion/xhr"],function(f,i,h){function c(b,d){this._name=b;this._providers=d;this._flushPending=!1;this._cached=null;this._stores=[];this._dirty=[]}function a(b,d){return{get:function(a,c){if(d===0)return null;var g=localStorage.getItem(b+a);if(g===null)return null;g=JSON.parse(g);return c||d===-1||g._expires&&g._expires>(new Date).getTime()?(delete g._expires,g):null},set:function(a,c){if(d!==0){if(d!==-1)c._expires=(new Date).getTime()+1E3*d;
if(Object.keys(c).length===0)localStorage.removeItem(b+a);else{var g=JSON.stringify(c);localStorage.setItem(b+a,g);delete c._expires}}},remove:function(d){localStorage.removeItem(b+d)}}}function e(b){this._currentPromises={};this._cache=new a("/orion/preferences/user",3600);this._service=null;this.available=function(){if(!this._service){var d=b.getServiceReferences("orion.core.preference.provider");if(d.length>0)this._service=b.getService(d[0])}return!!this._service}}function g(b){this._location=
b;this._currentPromise=null;this._cache=new a("/orion/preferences/default",3600)}function d(){this._cache=new a("/orion/preferences/local",-1)}function b(b,a){this._userProvider=new e(b);this._localProvider=new d;a=a||"defaults.pref";a.indexOf("://")===-1&&(a=f.toUrl(a));this._defaultsProvider=new g(a);this._serviceRegistration=b.registerService("orion.core.preference",this)}c.prototype={_flush:function(){for(var b=[],d=0;d<this._stores.length;++d){var a=this._stores[d];this._dirty.indexOf(a)!==-1&&
b.push(this._providers[d].put(this._name,a))}this._dirty=[];return i.all(b)},_scheduleFlush:function(b){this._dirty.indexOf(b)===-1&&this._dirty.push(b);if(!this._flushPending)this._flushPending=!0,window.setTimeout(function(){if(this._flushPending)this._flushPending=!1,this._flush()}.bind(this),0)},_getCached:function(){if(!this._cached){this._cached={};for(var b=0;b<this._stores.length;++b){var d=this._stores[b],a;for(a in d)d.hasOwnProperty(a)&&typeof this._cached[a]==="undefined"&&(this._cached[a]=
d[a])}}return this._cached},keys:function(){return Object.keys(this._getCached())},get:function(b){return this._getCached()[b]},put:function(b,d){if(this._stores.length!==0){var a=this._stores[0];if(a[b]!==d)a[b]=d,this._cached=null,this._scheduleFlush(a)}},remove:function(b){for(var d=0;d<this._stores.length;++d){var a=this._stores[d];if(a.hasOwnProperty(b))return delete a[b],this._cached=null,this._scheduleFlush(a),!0}return!1},clear:function(){for(var b=0;b<this._stores.length;++b)this._stores[b]=
{},this._scheduleFlush(this._stores[b]);this._cached=null},sync:function(b){if(this._flushPending)return this._flushPending=!1,this._flush();for(var d=this,a=[],c=0;c<this._providers.length;++c)a.push(this._providers[c].get(this._name,b).then(function(b){return function(a){d._stores[b]=a}}(c)));return i.all(a).then(function(){d._cached=null;d._getCached()})},flush:function(){this._flush()}};e.prototype={get:function(b,d){if(this._currentPromises[b])return this._currentPromises[b];var a=new i,c=null;
d?this._cache.remove(b):c=this._cache.get(b);if(c!==null)a.resolve(c);else{this._currentPromises[b]=a;var g=this;this._service.get(b).then(function(d){g._cache.set(b,d);delete g._currentPromises[b];a.resolve(d)},function(d){d.status===404?(d={},g._cache.set(b,d),delete g._currentPromises[b],a.resolve(d)):(delete g._currentPromises[b],a.resolve(g._cache.get(b,!0)||{}))})}return a},put:function(b,d){this._cache.set(b,d);return this._service.put(b,d)}};g.prototype={get:function(b,d){if(this._currentPromise)return this._currentPromise;
var a=new i,c=null;d?this._cache.remove(b):c=this._cache.get(b);if(c!==null)a.resolve(c);else{this._currentPromise=a;var g=this;h("GET",this._location,{headers:{"Orion-Version":"1"},timeout:15E3}).then(function(d){d=JSON.parse(d.response);g._cache.set(b,d[b]||{});g._currentPromise=null;a.resolve(d[b]||{})},function(d){d.xhr.status===401||d.xhr.status===404?(g._cache.set(b,{}),g._currentPromise=null,a.resolve({})):(g._currentPromise=null,d=g._cache.get(b,!0),d!==null?a.resolve(d[b]||{}):a.resolve({}))})}return a},
put:function(){var b=new i;b.resolve();return b}};d.prototype={get:function(b){var d=new i,b=this._cache.get(b);b!==null?d.resolve(b):d.resolve({});return d},put:function(b,d){var a=new i;this._cache.set(b,d);a.resolve();return a}};b.DEFAULT_SCOPE=1;b.LOCAL_SCOPE=2;b.USER_SCOPE=4;b.prototype={listenForChangedSettings:function(b){window.addEventListener("storage",b,!1);return"/orion/preferences/local/settings"},getPreferences:function(d,a){if(!a||typeof a!=="number"||a>7||a<1)a=b.DEFAULT_SCOPE|b.LOCAL_SCOPE|
b.USER_SCOPE;var g=[];b.USER_SCOPE&a&&this._userProvider.available()&&g.push(this._userProvider);b.LOCAL_SCOPE&a&&g.push(this._localProvider);b.DEFAULT_SCOPE&a&&g.push(this._defaultsProvider);var e=new c(d,g);return e.sync().then(function(){return e})},getSetting:function(b,d,a){for(var c,g=0;g<b.length;g++)if(b[g].label===d)for(var e=0;e<b[g].data.length;e++)if(b[g].data[e].label===a){c=b[g].data[e].value;break}return c}};return{PreferencesService:b}});
define("orion/pluginregistry",["orion/Deferred","orion/EventTarget"],function(f,i){function h(b,d){var a=Object.keys(b),c=Object.keys(d);if(a.length!==c.length)return!1;a.sort();c.sort();for(var g=0,e=a.length;g<e;g++){var h=a[g];if(h!==c[g])return!1;var f=b[h],h=d[h];if(f!==h&&JSON.stringify(f)!==JSON.stringify(h))return!1}return!0}function c(b){if(b.indexOf("://")===-1){var d=document.createElement("a");d.href=b;return d.href}return b}function a(b){var d=null;return{key:function(a){return(d=d||
Object.keys(b))[a]},getItem:function(d){return b[d]},setItem:function(a,c){b[a]=c;d=null},removeItem:function(a){delete b[a];d=null},clear:function(){(d=d||Object.keys(b)).forEach(function(d){delete b[d]}.bind(this));d=null}}}function e(b,d){return{type:b,plugin:d}}function g(b,d,a){function c(b,d,g){if(!x)return(new f).reject(Error("plugin not connected"));var j=K++,e=new f;e.then(null,function(b){y==="active"&&b instanceof Error&&b.name==="Cancel"&&a.postMessage({id:j,cancel:b.message||"Cancel"},
x)});C[String(j)]=e;a.postMessage({id:j,serviceId:b,method:d,params:g},x);return e.promise}function g(b){var d={};if(b.methods&&(b.methods.forEach(function(a){d[a]=function(){var d=Array.prototype.slice.call(arguments);return y==="active"?c(b.serviceId,a,d):n.start({"transient":!0}).then(function(){return c(b.serviceId,a,d)})}}),d.addEventListener&&d.removeEventListener)){var a=new i;d.dispatchEvent=a.dispatchEvent.bind(a);var j=d.addEventListener;d.addEventListener=function(b,d){a._namedListeners[b]||
j(b);a.addEventListener(b,d)};var e=d.removeEventListener;d.removeEventListener=function(b,d){a.removeEventListener(b,d);a._namedListeners[b]&&e(b)}}return d}function p(d){var a=JSON.parse(JSON.stringify(d.properties));a.__plugin__=b;d=d.names||d.type||[];Array.isArray(d)||(d=[d]);a.objectClass=d;return a}function r(b){var d=g(b),c=p(b),c=a.registerService(b.names||b.type,d,c);z[b.serviceId]={registration:c,proxy:d}}function q(){a.persist(b,{created:u,headers:s,services:t,autostart:v,lastModified:w})}
function o(b){var d;try{if(b.method)if("manifest"===b.method||"plugin"===b.method){var c=b.params[0];A({headers:c.headers,services:c.services}).then(function(){D.resolve(n)})}else if("dispatchEvent"===b.method){var g=z[b.serviceId].proxy;g.dispatchEvent.apply(g,b.params)}else if("progress"===b.method)d=C[String(b.requestId)],d.progress.apply(d,b.params);else if("timeout"===b.method)D&&D.reject(b.error);else throw Error("Bad response method: "+b.method);else if(d=C[String(b.id)],delete C[String(b.id)],
b.error){var j=a.handleServiceError(n,b.error);d.reject(j)}else d.resolve(b.result)}catch(e){console.log("Plugin._responseHandler "+e)}}var n=this,d=d||{},u=d.created||(new Date).getTime(),s=d.headers||{},t=d.services||[],v=d.autostart,w=d.lastModified||0,y="installed",F,D,x,z={},K=0,C={},A;this._persist=q;this._resolve=function(){y="resolved";a.dispatchEvent(new e("resolved",n))};this._getAutostart=function(){return v};this._getCreated=function(){return u};this.getLocation=function(){return b};this.getHeaders=
function(){return JSON.parse(JSON.stringify(s))};this.getName=function(){var b=this.getHeaders();return b?b.name||"":null};this.getVersion=function(){var b=this.getHeaders();return b?b.version||"0.0.0":null};this.getLastModified=function(){return w};this.getServiceReferences=function(){var b=[];Object.keys(z).forEach(function(d){b.push(z[d].registration.getReference())});return b};this.getState=function(){return y};this.start=function(d){if(y==="uninstalled")return(new f).reject(Error("Plugin is uninstalled"));
if(F)return F.promise.then(this.start.bind(this,d));if(y==="active")return(new f).resolve();if(!d||!d["transient"]){var c=d&&d.lazy?"lazy":"started";c!==v&&(v=c,q())}c=a.getState();if(c!=="starting"&&c!=="active")return d["transient"]?(new f).reject(Error("start transient error")):(new f).resolve();if(y==="installed")try{this._resolve()}catch(g){return(new f).reject(g)}y==="resolved"&&t.forEach(function(b){r(b)});if(d&&d.lazy)return y!=="starting"&&(y="starting",a.dispatchEvent(new e("lazy activation",
n))),(new f).resolve();var j=new f;F=j;y="starting";a.dispatchEvent(new e("starting",n));D=new f;x=a.connect(b,o);D.then(function(){D=null;y="active";a.dispatchEvent(new e("started",n));F=null;j.resolve()},function(){D=null;y="stopping";a.dispatchEvent(new e("stopping",n));Object.keys(z).forEach(function(b){z[b].registration.unregister();delete z[b]});a.disconnect(x);x=null;y="resolved";F=null;a.dispatchEvent(new e("stopped",n));j.reject(Error("plugin activation error"))});return j.promise};this.stop=
function(b){if(y==="uninstalled")return(new f).reject(Error("Plugin is uninstalled"));if(F)return F.promise.then(this.stop.bind(this,b));if((!b||!b["transient"])&&"stopped"!==v)v="stopped",q();if(y!=="active"&&y!=="starting")return(new f).resolve();F=b=new f;y="stopping";a.dispatchEvent(new e("stopping",n));Object.keys(z).forEach(function(b){z[b].registration.unregister();delete z[b]});x&&(a.disconnect(x),x=null);y="resolved";F=null;a.dispatchEvent(new e("stopped",n));b.resolve();return b.promise};
A=function(d){if(y==="uninstalled")return(new f).reject(Error("Plugin is uninstalled"));if(!d)return w===0&&(w=(new Date).getTime(),q()),a.loadManifest(b).then(A);var c=s,g=t,j=v;s=d.headers||{};t=d.services||{};v=d.autostart||v;d.lastModified?w=d.lastModified:(w=(new Date).getTime(),q());if(h(s,c)&&h(t,g)&&v===j)return(new f).resolve();if(y==="active"||y==="starting"){var l=[];Object.keys(t).forEach(function(b){var d=t[b];l.push(b);var a=z[b];if(a){if(h(d.methods,Object.keys(a.proxy))){var b=p(d),
c=a.registration.getReference(),g={};c.getPropertyKeys().forEach(function(b){g[b]=c.getProperty(b)});h(b,g)||a.registration.setProperties(b);return}a.registration.unregister();delete z[b]}r(d)});Object.keys(z).forEach(function(b){l.indexOf(b)===-1&&(z[b].registration.unregister(),delete z[b])})}y==="active"&&(a.disconnect(x),D=new f,x=a.connect(b,o),D.then(function(){D=null},function(){D=null;y="stopping";a.dispatchEvent(new e("stopping"),n);Object.keys(z).forEach(function(b){z[b].registration.unregister();
delete z[b]});a.disconnect(x);x=null;y="resolved";a.dispatchEvent(new e("stopped",n))}));return(new f).resolve()};this.update=function(b){return A(b).then(function(){a.dispatchEvent(new e("updated",n))})};this.uninstall=function(){if(y==="uninstalled")return(new f).reject(Error("Plugin is uninstalled"));if(y==="active"||y==="starting"||y==="stopping")return this.stop().then(this.uninstall.bind(this),this.uninstall.bind(this));a.removePlugin(this);y="uninstalled";a.dispatchEvent(new e("uninstalled",
n));return(new f).resolve()}}var d=/^http[s]?/i;return{Plugin:g,PluginRegistry:function(b,j){function m(b){var d=b.source;r.some(function(a){if(d===a.target){if(typeof a.useStructuredClone==="undefined")a.useStructuredClone=typeof b.data!=="string";a.handler(a.useStructuredClone?b.data:JSON.parse(b.data));return!0}})}var j=j||{},k=j.storage||localStorage;k.getItem||(k=a(k));var l="installed",h=[],r=[],q=new i,o={},n={registerService:b.registerService.bind(b),connect:function(b,d,a){function c(b){b=
Error(b);b.name="timeout";d({method:"timeout",error:b})}var g={handler:d,url:b},e=setTimeout(c.bind(null,"Load timeout for: "+b),a||15E3),m=document.createElement("iframe");m.name=b+"_"+(new Date).getTime();if(!j.visible)m.style.display="none",m.style.visibility="hidden";m.src=b;m.onload=function(){clearTimeout(e);setTimeout(c.bind(null,"Plugin handshake timeout for: "+b),5E3)};m.sandbox="allow-scripts allow-same-origin";document.body.appendChild(m);g.target=m.contentWindow;g.close=function(){m&&
(document.body.removeChild(m),m=null)};r.push(g);return g},disconnect:function(b){for(var d=0;d<r.length;d++)if(b===r[d]){r.splice(d,1);try{b.close()}catch(a){}break}},removePlugin:function(b){for(var d=0;d<h.length;d++)if(b===h[d]){h.splice(d,1);break}k.removeItem("plugin."+b.getLocation())},persist:function(b,d){k.setItem("plugin."+b,JSON.stringify(d))},postMessage:function(b,d){d.target.postMessage(d.useStructuredClone?b:JSON.stringify(b),d.url)},dispatchEvent:function(b){try{q.dispatchEvent(b)}catch(d){console&&
console.log("PluginRegistry.dispatchEvent "+d)}},loadManifest:function(b){var d=new f,a=n.connect(b,function(b){a&&b.method&&("manifest"===b.method||"plugin"===b.method?(b=b.params[0],n.disconnect(a),a=null,d.resolve(b)):"timeout"===b.method&&(n.disconnect(a),a=null,d.reject(b.error)))});return d.promise},getState:function(){return l},handleServiceError:function(b,a){if(a&&a.status===401){var c=b.getHeaders(),g=b.getName()||b.getLocation(),j=document.createElement("span");j.appendChild(document.createTextNode("Authentication required for: "+
g+"."));if(c.login)j.appendChild(document.createTextNode(" ")),g=document.createElement("a"),g.target="_blank",g.textContent="Login",g.href=c.login,d.test(g.href)?(j.appendChild(g),j.appendChild(document.createTextNode(" and re-try the request."))):console.log("Illegal Login URL: "+c.login);return{Severity:"Error",HTML:!0,Message:(new XMLSerializer).serializeToString(j)}}if(a.__isError){var e=a,a=Error(e.message);Object.keys(e).forEach(function(b){a[b]=e[b]});delete a.__isError}return a}};this.getLocation=
function(){return"System"};this.getHeaders=function(){return{}};this.getName=function(){return"System"};this.getVersion=function(){return"0.0.0"};this.getLastModified=function(){return 0};this.getState=n.getState;this.init=function(){if(!(l==="starting"||l==="active"||l==="stopping")){addEventListener("message",m,!1);for(var b=[],d=0,a=k.length;d<a;d++)b.push(k.key(d));b.forEach(function(b){if(b.indexOf("plugin.")===0){var d=b.substring(7),b=JSON.parse(k.getItem(b));b.created&&h.push(new g(d,b,n))}});
h.sort(function(b,d){return b._getCreated()<d._getCreated()?-1:1});j.plugins&&Object.keys(j.plugins).forEach(function(b){b=c(b);if(!this.getPlugin(b)){var d=j.plugins[b],d=typeof d==="object"||{};d.autostart=d.autostart||j.defaultAutostart||"lazy";h.push(new g(b,d,n))}}.bind(this));l="starting"}};this.start=function(){l!=="starting"&&this.init();if(l!=="starting")return(new f).reject("Cannot start framework. Framework is already "+l+".");var b=[],d=(new Date).getTime();h.forEach(function(a){var c=
a._getAutostart();a.getLastModified()===0?b.push(a.update().then(function(){if("started"===c)return a.start({"transient":!0});if("lazy"===c)return a.start({lazy:!0,"transient":!0});a._resolve()})):"started"===c?b.push(a.start({"transient":!0})):"lazy"===c?(b.push(a.start({lazy:!0,"transient":!0})),d>a.getLastModified()+864E5&&a.update()):a._resolve()});return f.all(b,function(b){console.log("PluginRegistry.stop "+b)}).then(function(){l="active"})};this.stop=function(){if(l!=="starting"&&l!=="active")return(new f).reject("Cannot stop registry. Registry is already "+
l+".");l="stopping";var b=[];h.forEach(function(d){b.push(d.stop({"transient":!0}))});return f.all(b,function(b){console.log("PluginRegistry.stop "+b)}).then(function(){removeEventListener("message",m);l="resolved"})};this.update=function(){this.stop().then(this.start.bind(this))};this.uninstall=function(){return(new f).reject("Cannot uninstall registry")};this.installPlugin=function(b,d){var b=c(b),a=this.getPlugin(b);if(a)return(new f).resolve(a);if(o[b])return o[b];if(d)return a=new g(b,d,n),h.push(a),
a._persist(),n.dispatchEvent(new e("installed",a)),(new f).resolve(a);var j=n.loadManifest(b).then(function(d){a=new g(b,d,n);h.push(a);a._persist();delete o[b];n.dispatchEvent(new e("installed",a));return a},function(d){delete o[b];throw d;});return o[b]=j};this.getPlugins=function(){return h.slice()};this.getPlugin=function(b){var d=null,b=c(b);h.some(function(a){if(b===a.getLocation())return d=a,!0});return d};this.addEventListener=q.addEventListener.bind(q);this.removeEventListener=q.removeEventListener.bind(q);
this.resolvePlugins=function(){var b=!0;h.forEach(function(d){b=b&&d._resolve()});return b}}}});
define("orion/nls/root/messages",{Navigator:"Navigator",Sites:"Sites",Repositories:"Repositories",Shell:"Shell","Get Plugins":"Get Plugins",Global:"Global",Editor:"Editor","Orion Editor":"Orion Editor","View on Site":"View on Site","View this file or folder on a web site hosted by Orion":"View this file or folder on a web site hosted by Orion","Show a list of all the keybindings on this page":"Show a list of all the keybindings on this page","Show Keys":"Show Keys","Hide or show the page banner and footer":"Hide or show the page banner and footer",
"Toggle banner and footer":"Toggle banner and footer","Choose a file by name and open an editor on it":"Choose a file by name and open an editor on it","Find File Named...":"Find File Named...","System Configuration Details":"System Configuration Details","System Config Tooltip":"Go to the System Configuration Details page","Background Operations":"Background Operations","Background Operations Tooltip":"Go to the Background Operations page","Operation status is unknown":"Operation status is unknown",
" is already a favorite.":" is already a favorite.","Add to the favorites list":"Add to the favorites list","Make Favorite":"Make Favorite","Unknown item":"Unknown item","Can't search: no search service is available":"Can't search: no search service is available","could not find banner parent, id was ":"could not find banner parent, id was "," has been added to the favorites list.":" has been added to the favorites list.",Related:"Related",Options:"Options",FAQ:"FAQ","Report a Bug":"Report a Bug",
"Privacy Policy":"Privacy Policy","Terms of Use":"Terms of Use","Copyright Agent":"Copyright Agent","Orion Logo":"Orion Logo","Type a keyword or wild card to search in root":"Type a keyword or wild card to search in root","Orion is in Beta. Please try it out but BEWARE your data may be lost.":"Orion build I20130222-1257. See the FAQ for terms of service","Add this page to the favorites list":"Add this page to the favorites list","LOG: ":"LOG: ",Switch:"Switch","Switch the type of outliner used":"Switch the type of outliner used",
Outliner:"Outliner","no parent":"no parent","no tree model":"no tree model","no renderer":"no renderer","could not find table row ":"could not find table row ","Resource is out of sync with the server. Do you want to save it anyway?":"Resource is out of sync with the server. Do you want to save it anyway?","Orion Home":"Orion Home","Operations - Press spacebar to show current operations":"Operations - Press spacebar to show current operations",Operations:"Operations","Operations running":"Operations running",
"Some operations finished with warning":"Some operations finished with warning","Some operations finished with error":"Some operations finished with error","no service registry":"no service registry","Are you sure you want to delete '${0}' from the favorites?":"Are you sure you want to delete '${0}' from the favorites?","Are you sure you want to delete these ${0} favorites?":"Are you sure you want to delete these ${0} favorites?","You can create favorites by selecting any file or folder in the navigator and choosing ${0} from the More menu.":"You can create favorites by selecting any file or folder in the navigator and choosing ${0} from the More menu.",
Tasks:"Tasks",Close:"Close","Expand all":"Expand all","Collapse all":"Collapse all",Search:"Search","Advanced search":"Advanced search",Submit:"Submit",More:"More","Saved searches":"Saved searches","Recent searches":"Recent searches","Open in new tab":"Open in new tab","Regular expression":"Regular expression","Search options":"Search options","Global search":"Global search","Orion Home":"Orion Home","Close notification":"Close notification","Operations - Press spacebar to show current operations":"Operations - Press spacebar to show current operations",
"Type a keyword or wild card to search in root":"Type a keyword or wild card to search in root","Toggle side panel":"Toggle side panel","Open or close the side panel":"Open or close the side panel",Projects:"Projects","Toggle Outliner":"Toggle Outliner","Sample HTML5 Site":"Sample HTML5 Site","Generate an HTML5 'Hello World' website, including JavaScript, HTML, and CSS files.":"Generate an HTML5 'Hello World' website, including JavaScript, HTML, and CSS files.","Sample Orion Plugin":"Sample Orion Plugin",
"Generate a sample plugin for integrating with Orion.":"Generate a sample plugin for integrating with Orion."});define("orion/nls/messages",["orion/i18n!orion/nls/messages","orion/nls/root/messages"],function(f,i){var h={root:i};Object.keys(f).forEach(function(c){typeof h[c]==="undefined"&&(h[c]=f[c])});return h});
define("orion/operations/nls/root/messages",{More:"More","No Matching OperationService for location:":"No Matching OperationService for location:","No operations services registered.":"No operations services registered.","could not find toolbar ":"could not find toolbar ","Remove Completed":"Remove Completed","Remove all completed operations":"Remove all completed operations",Remove:"Remove","Remove operations from the operations list.":"Remove operations from the operations list.",Cancel:"Cancel",
"Cancel operations from the operations list.":"Cancel operations from the operations list.","Operation resulted in a warning.":"Operation resulted in a warning.","Operation resulted in an error.":"Operation resulted in an error.","Operation is running.":"Operation is running.","Operation is canceled.":"Operation is canceled.","Operation failed.":"Operation failed.",Name:"Name",Actions:"Actions",Status:"Status",Scheduled:"Scheduled"});
define("orion/operations/nls/messages",["orion/i18n!orion/operations/nls/messages","orion/operations/nls/root/messages"],function(f,i){var h={root:i};Object.keys(f).forEach(function(c){typeof h[c]==="undefined"&&(h[c]=f[c])});return h});
define("orion/widgets/nls/root/messages",{"no input":"no input","no output":"no output","Choose a Folder":"Choose a Folder",OK:"OK",Profile:"Profile","Sign out":"Sign out","N/A":"N/A","logged in since ":"logged in since ","Sign in":"Sign in","Authentication required!":"Authentication required!","Name:":"Name:","Plug-ins":"Plug-ins"," <No available services or timed out, check URL and try reloading>":" <No available services or timed out, check URL and try reloading>",Properties:"Properties"," (Service Id: ":" (Service Id: ",
Services:"Services","SFTP Transfer":"SFTP Transfer","Remote host:":"Remote host:","Port:":"SFTP Port:","Remote path:":"Remote path:","User name:":"User name:","Password:":"Password:","Start Transfer":"Start Transfer","Location:":"Location:","orion.sftpConnections":"orion.sftpConnections","Drag a file here":"Drag a file here","unzip zips":"Unzip *.zip files","or if you prefer":"(or upload a file using the buttons below)",Upload:"Upload","Browse...":"Browse...","Import a file or zip":"Import a file or zip",
"Missing required argument: searchRenderer":"Missing required argument: searchRenderer","Missing required argument: favService":"Missing required argument: favService","Find File Named":"Find File Named","Type the name of a file to open (? = any character, * = any string):":"Type the name of a file to open (? = any character, * = any string):",Search:"Search","Populating favorites...":"Populating favorites...",Favorite:"Favorite","Searching...":"Searching...",name:"name","orion.widgets.UserMenu":"orion.widgets.UserMenu",
test:"test","Sign Out":"Sign Out","Sign Out ":"Sign Out ","</a>":"</a>",">":">","Sign In To ":"Sign In To ","Sign In":"Sign In",Help:"Help","Keyboard Shortcuts":"Keyboard Shortcuts",Settings:"Settings","View profile of ":"View profile of ",Profiles:"Profiles","Information Needed":"Information Needed",Cancel:"Cancel","If the same file exists in both the source and destination:":"If the same file exists in both the source and destination:","Cancel the transfer":"Cancel the transfer","Always overwrite destination":"Always overwrite destination",
"Overwrite if source is newer":"Overwrite if source is newer",New:"New","Building file skeleton...":"Building file skeleton...",Add:"Add","Upload...":"Upload...","For a list of available commands type '${0}'.":"For a list of available commands type '${0}'."});define("orion/widgets/nls/messages",["orion/i18n!orion/widgets/nls/messages","orion/widgets/nls/root/messages"],function(f,i){var h={root:i};Object.keys(f).forEach(function(c){typeof h[c]==="undefined"&&(h[c]=f[c])});return h});
define("orion/PageUtil",[],function(){var f=/^http[s]?/i;return{matchResourceParameters:function(f){var f=f||window.location.toString(),h={resource:""},c=f.indexOf("#");if(c!==-1&&(f=f.substring(c+1),f.length!==0)){f=f.split(",");Object.defineProperty(h,"resourceRaw",{value:f[0]});h.resource=decodeURIComponent(f[0]);for(c=1;c<f.length;c++){var a=/([^=]*)(=?)(.*)/.exec(f[c]),e=decodeURIComponent(a[1]||""),a=decodeURIComponent(a[3]||"");e!==""&&e!=="resource"&&(h[e]=a)}}return h},validateURLScheme:function(i,
h){var c=i;if(i.indexOf("://")===-1){var a=document.createElement("a");a.href=i;c=a.href}a=!1;return(a=h?h.some(function(a){return RegExp("^"+a+":","i").test(c)}):f.test(c))?i:(console.log("Illegal URL Scheme: '"+i+"'"),"")}}});
define("orion/explorers/navigationUtils",[],function(){function f(h,c){if(!i&&h)h.push({domNode:c}),c.tabIndex=-1,c.style.outline="none"}var i=navigator.userAgent.indexOf("iPad")!==-1;return{addNavGrid:function(h,c,a){h&&(h=h.getGridNavHolder(c,!0))&&f(h,a)},generateNavGrid:f,removeNavGrid:function(h,c){if(h)for(var a=0;a<h.length;a++)if(h[a].domNode===c){h.splice(a,1);break}}}});
define("orion/profile/usersClient",[],function(){function f(f){this.serviceRegistry=f}f.prototype={getUserInfo:function(f,h){return this._doServiceCall("getUserInfo",arguments)},getUsersListSubset:function(f,h,c){return this._doServiceCall("getUsersListSubset",arguments)},getUsersList:function(f){return this._doServiceCall("getUsersList",arguments)},deleteUser:function(f,h){return this._doServiceCall("deleteUser",arguments)},createUser:function(f,h,c,a){return this._doServiceCall("createUser",arguments)},
updateUserInfo:function(f,h,c){return this._doServiceCall("updateUserInfo",arguments)},resetUserPassword:function(f,h,c){return this._doServiceCall("resetUserPassword",arguments)},initProfile:function(f,h,c){return this._doServiceCall("initProfile",arguments)},fire:function(f,h,c){return this._doServiceCall("fire",arguments)},getDivContent:function(){return this._doServiceCall("getDivContent",arguments)},_doServiceCall:function(f,h){var c=this.serviceRegistry.getService("orion.core.user");return c[f].apply(c,
h)}};f.prototype.constructor=f;return{UsersClient:f}});
define("orion/operationsClient",["i18n!orion/operations/nls/messages","orion/Deferred"],function(f,i){function h(a,d,b){return a[d].apply(a,b)}function c(a){this._location=a}function a(){var a=new i;a.reject(f["No Matching OperationService for location:"]+this._location);return a}function e(a){this._services=[];this._patterns=[];this._operationListeners=[];this._currentLongpollingIds=[];this._preferenceService=a.getService("orion.core.preference");for(var d=a.getServiceReferences("orion.core.operation"),
b=0;b<d.length;b++){var j=a.getService(d[b]);this._services[b]=j;j=d[b].getProperty("pattern")||".*";j[0]!=="^"&&(j="^"+j);this._patterns[b]=RegExp(j)}this._getService=function(b){if(!b)return this._services[0];for(var d=0;d<this._patterns.length;++d)if(this._patterns[d].test(b))return this._services[d];return new c(b)}}c.prototype={getOperation:a,getOperations:a,removeCompletedOperations:a,removeOperation:a,cancelOperation:a};c.prototype.constructor=c;e.prototype={getOperations:function(){var a=
new i;if(this._operations)return a.resolve(this._operations),a;var d=this;this._preferenceService.getPreferences("/operations").then(function(b){d._operations=b;a.resolve(d._operations)});return a},getOperation:function(a){return h(this._getService(a),"getOperation",arguments)},removeCompletedOperations:function(){for(var a=[],d=this,b=0;b<this._services.length;b++){var c=this._patterns[b],e=new i;a[b]=e.promise;h(this._services[b],"removeCompletedOperations").then(function(b){return function(a){Array.isArray(a)&&
d.getOperations.bind(d)().then(function(d){for(var g=d.keys(),e=0;e<g.length;e++){var m=g[e];c.test(m)&&a.indexOf(m)<0&&d.remove(m)}b.resolve()})}}(e),function(b){return function(d){b.reject(d)}}(e))}return i.all(a)},removeOperation:function(a){var d=this;return h(this._getService(a),"removeOperation",arguments).then(function(){d.getOperations.bind(d)().then(function(b){b.remove(a)})},function(b){return b},function(b){return b})}};e.prototype.constructor=e;return{OperationsClient:e}});
define("orion/i18nUtil",["require","orion/Deferred"],function(f,i){function h(a){if(a=localStorage.getItem("orion/messageBundle/"+a))if(a=JSON.parse(a),a._expires&&a._expires>(new Date).getTime())return delete a._expires,a;return null}var c={};return{getMessageBundle:function(a){function e(){f(["i18n!"+a],function(b){if(b){var d=a;b._expires=(new Date).getTime()+9E5;localStorage.setItem("orion/messageBundle/"+d,JSON.stringify(b));delete b._expires}g.resolve(b)})}if(c[a])return c[a];var g=new i;c[a]=
g;var d=h(a);if(d)return g.resolve(d),g;try{f([a],e)}catch(b){f(["orion/i18n!"+a],e)}return g},formatMessage:function(a){var c=arguments;return a.replace(/\$\{([^\}]+)\}/g,function(a,d){return c[(d<<0)+1]})}}});
define("orion/navigate/nls/root/messages",{"Click one of the tasks below to create an Orion folder.  You can upload, import, or generate files.":"Click one of the tasks below to create an Orion folder.  You can upload, import, or generate files.","Toggle Left Pane":"Toggle Left Pane","Open or close the left pane":"Open or close the left pane",Navigator:"Navigator","Strings Xtrnalizr":"Strings Xtrnalizr","Externalize Strings from JavaScript files in this folder":"Externalize Strings from JavaScript files in this folder",
"Choose a Folder":"Choose a Folder","Copy of ${0}":"Copy of ${0}","Enter a new name for '${0}'":"Enter a new name for '${0}'","Choose folder...":"Choose folder...",Rename:"Rename","Rename the selected files or folders":"Rename the selected files or folders","Compare with each other":"Compare with each other","Compare the selected 2 files with each other":"Compare the selected 2 files with each other","Compare with...":"Compare with...","Compare the selected folder with a specified folder":"Compare the selected folder with a specified folder",
Delete:"Delete","Unknown item":"Unknown item","Make Favorite":"Make Favorite","Delete the selected files or folders":"Delete the selected files or folders","Are you sure you want to delete these ${0} items?":"Are you sure you want to delete these ${0} items?","Are you sure you want to delete '${0}'?":"Are you sure you want to delete '${0}'?","Are you sure you want to delete '${0}' from the favorites?":"Are you sure you want to delete '${0}' from the favorites?","Are you sure you want to delete these ${0} favorites?":"Are you sure you want to delete these ${0} favorites?",
"You can create favorites by selecting any file or folder in the navigator and choosing ${0} from the ${1} menu.":"You can create favorites by selecting any file or folder in the navigator and choosing ${0} from the ${1} menu.","Export as zip":"Export as zip","Create a zip file of the folder contents and download it":"Create a zip file of the folder contents and download it","New File":"New File","Create a new file":"Create a new file","Name:":"Name:","New Folder":"New Folder","Folder name:":"Folder name:",
"Create a new folder":"Create a new folder","Creating folder":"Creating folder",Folder:"Folder","Create an empty folder":"Create an empty folder","Create an empty folder on the Orion server.  You can import, upload, or create content in the editor.":"Create an empty folder on the Orion server.  You can import, upload, or create content in the editor.","Sample HTML5 Site":"Sample HTML5 Site","Generate a sample":"Generate a sample",'Generate an HTML5 "Hello World" website, including JavaScript, HTML, and CSS files.':'Generate an HTML5 "Hello World" website, including JavaScript, HTML, and CSS files.',
"Creating a folder for ${0}":"Creating a folder for ${0}","SFTP Import":"SFTP Import","Import content from SFTP":"Import content from SFTP","Import content from an SFTP location into an Orion folder.  You will be prompted for the SFTP location and credentials.":"Import content from an SFTP location into an Orion folder.  You will be prompted for the SFTP location and credentials.","Imported Content":"Imported Content","Upload a Zip":"Upload a Zip","Upload content from a local zip file":"Upload content from a local zip file",
"Upload content from a local zip file into an Orion folder.  You will be prompted for the local zip file.":"Upload content from a local zip file into an Orion folder.  You will be prompted for the local zip file.","Uploaded Content":"Uploaded Content","Creating an upload folder for ":"Creating an upload folder for ","Clone Git Repository":"Clone Git Repository","Clone a git repository":"Clone a git repository","Go to the Orion repositories page to provide a git repository URL.  Once the repository is created, it will appear in the Navigator.":"Go to the Orion repositories page to provide a git repository URL.  Once the repository is created, it will appear in the Navigator.",
"Link to Server":"Link to Server","Link to existing content on the server":"Link to existing content on the server","Create a folder that links to an existing folder on the server.":"Create a folder that links to an existing folder on the server.","Server path:":"Server path:","The name and server location were not specified.":"The name and server location were not specified.","Go Up":"Go Up","Move up to the parent folder":"Move up to the parent folder","Import local file...":"Import local file...",
"Copy files and folders from your local file system":"Copy files and folders from your local file system","SFTP from...":"SFTP from...","Copy files and folders from a specified SFTP connection":"Copy files and folders from a specified SFTP connection","Importing from ${0}":"Importing from ${0}","SFTP to...":"SFTP to...","Copy files and folders to a specified SFTP location":"Copy files and folders to a specified SFTP location","Exporting from ${0}":"Exporting from ${0}","Pasting ${0}":"Pasting ${0}",
"Copy to":"Copy to","Move to":"Move to","Copying ${0}":"Copying ${0}","Moving ${0}":"Moving ${0}","Renaming ${0}":"Renaming ${0}","Deleting ${0}":"Deleting ${0}","Creating ${0}":"Creating ${0}","Linking to ${0}":"Linking to ${0}","Move files and folders to a new location":"Move files and folders to a new location","Copy Items":"Copy Items","Copy the selected items to the copy/paste buffer":"Copy the selected items to the copy/paste buffer","Paste Items":"Paste Items","Paste items from the copy/paste buffer":"Paste items from the copy/paste buffer",
"Cannot paste into the Workspace root":"Cannot paste into the Workspace root","Open With":"Open With","Loading ":"Loading ",New:"New","Click on an item to make a selection, then use this menu to see what actions are available.":"Click on an item to make a selection, then use this menu to see what actions are available.",Actions:"Actions","Orion Content":"Orion Content"," is not supported in this file system":" is not supported in this file system","Create new content":"Create new content",Favorites:"Favorites",
"Import from HTTP...":"Import from HTTP...","File URL:":"File URL:","Copy a file from a URL and optionally unzip it":"Copy a file from a URL and optionally unzip it","Unzip *.zip files:":"Unzip *.zip files:","Extracted from:":"Extracted from:","Did not drop ${0}.  Folder drop is not supported in this browser.":"Did not drop ${0}.  Folder drop is not supported in this browser.","You cannot copy files directly into the workspace.  Create a folder first.":"You cannot copy files directly into the workspace.  Create a folder first.",
"Unzip ${0}?":"Unzip ${0}?"});define("orion/navigate/nls/messages",["orion/i18n!orion/navigate/nls/messages","orion/navigate/nls/root/messages"],function(f,i){var h={root:i};Object.keys(f).forEach(function(c){typeof h[c]==="undefined"&&(h[c]=f[c])});return h});
define("orion/fileClient",["i18n!orion/navigate/nls/messages","orion/Deferred","orion/i18nUtil"],function(f,i,h){function c(a,d,b){if(!a[d])throw d+f[" is not supported in this file system"];return a[d].apply(a,b)}function a(g,d,b,j){if(!g.readBlob)throw f["source file service does not support binary read"];if(!b.writeBlob)throw f["target file service does not support binary write"];if(d[d.length-1]!=="/")return c(g,"readBlob",[d]).then(function(d){return c(b,"writeBlob",[j,d])});var e=j.substring(0,
j.length-1),k=decodeURIComponent(e.substring(e.lastIndexOf("/")+1)),e=e.substring(0,e.lastIndexOf("/")+1);return c(b,"createFolder",[e,k]).then(function(){},function(){}).then(function(){return c(g,"fetchChildren",[d]).then(function(d){for(var c=[],e=0;e<d.length;++e){var m=d[e].Location,k=m;d[e].Directory&&(k=m.substring(0,m.length-1));k=decodeURIComponent(k.substring(k.lastIndexOf("/")+1));k=j+encodeURIComponent(k);d[e].Directory&&(k+="/");c[e]=a(g,m,b,k)}return i.all(c)})})}function e(a,d){function b(b){var d=
new i;d.reject(f["No Matching FileService for location:"]+b);return d}var c=a.getServiceReferences("orion.core.file"),e=c;if(d)for(var e=[],k=0;k<c.length;++k)d(c[k])&&e.push(c[k]);for(var l=[],p=[],r=[],q=[],o={fetchChildren:function(){var b=new i;b.resolve(q);return b},createWorkspace:function(){var b=new i;b.reject(f["no file service"]);return b},loadWorkspaces:function(){var b=new i;b.reject(f["no file service"]);return b},loadWorkspace:function(){var b=new i;window.setTimeout(function(){b.resolve({Directory:!0,
Length:0,LocalTimeStamp:0,Name:f["File Servers"],Location:"/",Children:q,ChildrenLocation:"/"})},100);return b},search:b,createProject:b,createFolder:b,createFile:b,deleteFile:b,moveFile:b,copyFile:b,read:b,write:b},c=0;c<e.length;++c)q[c]={Directory:!0,Length:0,LocalTimeStamp:0,Location:e[c].getProperty("top"),ChildrenLocation:e[c].getProperty("top"),Name:e[c].getProperty("Name")},k=e[c].getProperty("pattern")||".*",k[0]!=="^"&&(k="^"+k),l[c]=RegExp(k),p[c]=a.getService(e[c]),r[c]=e[c].getProperty("Name"),
e[c].getProperty("NameKey")&&e[c].getProperty("nls")&&h.getMessageBundle(e[c].getProperty("nls")).then(function(b,d){q[b].Name=d[e[b].getProperty("NameKey")];r[b]=d[e[b].getProperty("NameKey")]}.bind(this,c));this._getServiceIndex=function(b){if(b==="/")return-1;else if(!b||b.length&&b.length===0)return p[0]?0:-1;for(var d=0;d<l.length;++d)if(l[d].test(b))return d;throw f["No Matching FileService for location:"]+b;};this._getService=function(b){b=this._getServiceIndex(b);return b===-1?o:p[b]};this._getServiceName=
function(b){b=this._getServiceIndex(b);return b===-1?o.Name:r[b]};this._getServiceRootURL=function(b){b=this._getServiceIndex(b);return b===-1?o.Location:q[b].Location}}e.prototype={getService:function(a){return this._getService(a)},fileServiceName:function(a){return this._getServiceName(a)},fileServiceRootURL:function(a){return this._getServiceRootURL(a)},fetchChildren:function(a){return c(this._getService(a),"fetchChildren",arguments)},createWorkspace:function(a){return c(this._getService(),"createWorkspace",
arguments)},loadWorkspaces:function(){return c(this._getService(),"loadWorkspaces",arguments)},loadWorkspace:function(a){return c(this._getService(a),"loadWorkspace",arguments)},createProject:function(a,d,b,e){return c(this._getService(a),"createProject",arguments)},createFolder:function(a,d){return c(this._getService(a),"createFolder",arguments)},createFile:function(a,d){return c(this._getService(a),"createFile",arguments)},deleteFile:function(a){return c(this._getService(a),"deleteFile",arguments)},
moveFile:function(e,d,b){var j=this._getService(e),m=this._getService(d);if(j===m)return c(j,"moveFile",arguments);var k=e[e.length-1]==="/",l=d;l[l.length-1]!=="/"&&(l+="/");if(b)l+=encodeURIComponent(b);else{var h=e;k&&(h=h.substring(0,h.length-1));l+=h.substring(h.lastIndexOf("/")+1)}k&&l[l.length-1]!=="/"&&(l+="/");return a(j,e,m,l).then(function(){return c(j,"deleteFile",[e])})},copyFile:function(e,d,b){var j=this._getService(e),m=this._getService(d);if(j===m)return c(j,"copyFile",arguments);
var k=e[e.length-1]==="/",l=d;l[l.length-1]!=="/"&&(l+="/");if(b)l+=encodeURIComponent(b);else{var h=e;k&&(h=h.substring(0,h.length-1));l+=h.substring(h.lastIndexOf("/")+1)}k&&l[l.length-1]!=="/"&&(l+="/");return a(j,e,m,l)},read:function(a,d){return c(this._getService(a),"read",arguments)},write:function(a,d,b){return c(this._getService(a),"write",arguments)},remoteImport:function(a,d){return c(this._getService(a),"remoteImport",arguments)},remoteExport:function(a,d){return c(this._getService(a),
"remoteExport",arguments)},search:function(a){return c(this._getService(a.resource),"search",arguments)}};e.prototype.constructor=e;return{FileClient:e}});
define("orion/search/nls/root/messages",{"Find:":"Find:","Find With":"Find With","ReplaceWith:":"ReplaceWith:","Replace With":"Replace With","Show all":"Show all","Case sensitive":"Case sensitive","Wrap search":"Wrap search","Incremental search":"Incremental search","Whole Word":"Whole Word","Regular expression":"Regular expression","Find after replace":"Find after replace",Options:"Options","Find next match":"Find next match","Find previous match":"Find previous match",Replace:"Replace","Replace All":"Replace All",
"Not found":"Not found","Replacing all...":"Replacing all..."," matches":" matches","Replaced ":"Replaced ","Nothing replaced":"Nothing replaced","Search ${0}":"Search ${0}","Type a keyword or wild card to search in ":"Type a keyword or wild card to search in ","Search failed.":"Search failed.","No matches found for ${0}":"No matches found for ${0}","Searching...":"Searching...","Resource has been changed by others.":"Resource has been changed by others.","Failed to write file.":"Failed to write file.",
Results:"Results","Files ${0} of ${1} matching ${2}":"Files ${0} of ${1} matching ${2}","Replace ${0} with ${1} for files ${2} of ${3}":"Replace ${0} with ${1} for files ${2} of ${3}",Location:"Location","Click to compare":"Click to compare",'Search again in this folder with "${0}"':'Search again in this folder with "${0}"',"Files replaced":"Files replaced",Status:"Status","${0} out of ${1}  matches replaced.":"${0} out of ${1}  matches replaced.","Save Search":"Save Search","Save search query":"Save search query",
"Replace all matches with...":"Replace all matches with...","Apply Changes":"Apply Changes","Replace all selected matches":"Replace all selected matches","Hide Compare":"Hide Compare","Hide compare view of changes":"Hide compare view of changes","Show Compare":"Show Compare","Show compare view of changes":"Show compare view of changes","Search Again":"Search Again","Search again":"Search again","< Previous Page":"< Previous Page","Show previous page of search result":"Show previous page of search result",
"Next Page >":"Next Page >","Show next page of search result":"Show next page of search result","Next result":"Next result","Previous result":"Previous result","Expand all results":"Expand all results","Collapse all results":"Collapse all results","Writing files...":"Writing files...","Preparing preview...":"Preparing preview...","Replaced File (${0})":"Replaced File (${0})","Original File (${0})":"Original File (${0})","Sort by Name":"Sort by Name","Compare changes":"Compare changes","Search Results":"Search Results",
"Replace All Matches":"Replace All Matches","No matches":"No matches",Rename:"Rename",Searches:"Searches","You can save frequently used by searches by choosing ${0} in the search toolbar.":"You can save frequently used by searches by choosing ${0} in the search toolbar."});define("orion/search/nls/messages",["orion/i18n!orion/search/nls/messages","orion/search/nls/root/messages"],function(f,i){var h={root:i};Object.keys(f).forEach(function(c){typeof h[c]==="undefined"&&(h[c]=f[c])});return h});
define("orion/editor/regex",[],function(){return{escape:function(f){return f.replace(/([\\$\^*\/+?\.\(\)|{}\[\]])/g,"\\$&")},parse:function(f){return(f=/^\s*\/(.+)\/([gim]{0,3})\s*$/.exec(f))?{pattern:f[1],flags:f[2]}:null}}});
define("orion/URITemplate",[],function(){function f(b){this._text=b}function i(b,d){if(d==="U")return encodeURIComponent(b).replace(/[!'()*]/g,function(b){return"%"+b.charCodeAt(0).toString(16).toUpperCase()});if(d==="U+R")return encodeURI(b).replace(/%5B/g,"[").replace(/%5D/g,"]");if(d==="U+R-,")return encodeURI(b).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/,/g,"%2C");throw Error("Unknown allowed character set: "+d);}function h(b,d,a){for(var c=[],e=0;e<b.length;e++)typeof b[e]!=="undefined"&&
c.push(i(b[e],d));return c.join(a)}function c(b,d,a,c){for(var e=Object.keys(b),g=[],h=0;h<e.length;h++)typeof b[e[h]]!=="undefined"&&g.push(i(e[h],d)+a+i(b[e[h]],d));return g.join(c)}function a(b){if(b.length===0)throw Error("Invalid Expression: 0 length expression");(this._operator=g[b[0]])?b=b.substring(1):this._operator=g.NUL;for(var a=[],c=b.split(","),e=0;e<c.length;e++){var l=c[e].match(d);if(l===null)throw Error("Bad VarSpec: "+b);a.push({name:l[1],explode:!!l[2],prefix:l[3]?parseInt(l[3],
10):-1})}this._varSpecList=a}function e(b){for(var d=[],c=0,e=b.indexOf("{",c);e!==-1;){d.push(new f(b.substring(c,e)));c=b.indexOf("}",e+1);if(c===-1)throw Error("Invalid template: "+b);d.push(new a(b.substring(e+1,c)));c+=1;e=b.indexOf("{",c)}d.push(new f(b.substring(c)));this._templateComponents=d}var g={NUL:{first:"",sep:",",named:!1,ifemp:"",allow:"U"},"+":{first:"",sep:",",named:!1,ifemp:"",allow:"U+R"},".":{first:".",sep:",",named:!1,ifemp:"",allow:"U"},"/":{first:"/",sep:"/",named:!1,ifemp:"",
allow:"U"},";":{first:";",sep:";",named:!0,ifemp:"",allow:"U"},"?":{first:"?",sep:"&",named:!0,ifemp:"=",allow:"U"},"&":{first:"&",sep:"&",named:!0,ifemp:"=",allow:"U"},"#":{first:"#",sep:",",named:!1,ifemp:"",allow:"U+R"},",":{first:"",sep:",",named:!1,ifemp:"",allow:"U+R-,"}},d=/^((?:(?:[a-zA-Z0-9_])|(?:%[0-9A-F][0-9A-F]))(?:(?:[a-zA-Z0-9_.])|(?:%[0-9A-F][0-9A-F]))*)(?:(\*)|:([0-9]+))?$/;f.prototype={expand:function(){return encodeURI(this._text)}};a.prototype={expand:function(b){for(var d=[],a=
0;a<this._varSpecList.length;a++){var e=this._varSpecList[a],g=e.name,f=b[g],r=typeof f;if(r!=="undefined"&&f!==null){var q=d.length===0?this._operator.first:this._operator.sep;if(r==="string")this._operator.named&&(q+=i(g,"U+R"),q+=f.length===0?this._operator.ifemp:"="),e.prefix!==-1&&e.prefix<f.length&&(f=f.substring(0,e.prefix)),q+=i(f,this._operator.allow);else if(Array.isArray(f))e.explode?q+=h(f,this._operator.allow,this._operator.sep):(this._operator.named&&(q+=i(g,"U+R"),q+=f.length===0?this._operator.ifemp:
"="),q+=h(f,this._operator.allow,","));else if(r==="object")e.explode?q+=c(f,this._operator.allow,"=",this._operator.sep):(this._operator.named&&(q+=i(g,"U+R"),q+=Object.keys(f).length===0?this._operator.ifemp:"="),q+=c(f,this._operator.allow,",",","));else throw Error("bad param type: "+g+" : "+r);d.push(q)}}return d.join("")}};e.prototype={expand:function(b){for(var d=[],a=0;a<this._templateComponents.length;a++)d.push(this._templateComponents[a].expand(b));return d.join("")}};return e});
define("orion/contentTypes",[],function(){function f(a,c){function d(b,d,a,c){var a=d.filename.indexOf(a)>=0,e=d.extension.indexOf(c)>=0;if(a||e)if(!b||a&&b.extension.indexOf(c)>=0)return d;return b}for(var b=a&&a.split(".").pop(),j=null,m=0;m<c.length;m++){var k=c[m];d(j,k,a,b)===k&&(j=k)}return j}function i(e){this.serviceRegistry=e;this.map=function(e){function d(b){return b===null||typeof b==="undefined"?[]:b instanceof Array?b:[b]}for(var e=e.getServiceReferences(c).concat(e.getServiceReferences(a)),
b={},j=0;j<e.length;j++)for(var m=d(e[j].getProperty("contentTypes")),k=0;k<m.length;k++){var l=m[k];b[l.id]||(b[l.id]={id:l.id,name:l.name,image:l.image,"extends":l["extends"],extension:d(l.extension),filename:d(l.filename)})}return b}(e);e.registerService(h,this)}var h="orion.core.contenttypes",c="orion.core.contenttype",a="orion.file.contenttype";i.prototype={getContentTypes:function(){var a=this.getContentTypesMap(),c=[],d;for(d in a)a.hasOwnProperty(d)&&c.push(a[d]);return c},getContentTypesMap:function(){return this.map},
getFileContentType:function(a){return f(a.Name,this.getContentTypes())},getFilenameContentType:function(a){return f(a,this.getContentTypes())},getContentType:function(a){return this.map[a]||null},isExtensionOf:function(a,c){a=typeof a==="string"?this.getContentType(a):a;c=typeof c==="string"?this.getContentType(c):c;if(!a||!c)return!1;if(a.id===c.id)return!0;else for(var d=a,b={};d&&(d=this.getContentType(d["extends"]));){if(d.id===c.id)return!0;if(b[d.id])throw Error("Cycle: "+d.id);b[d.id]=!0}return!1},
isSomeExtensionOf:function(a,c){for(var d=0;d<c.length;d++)if(this.isExtensionOf(a,c[d]))return!0;return!1}};return{ContentTypeService:i,getFilenameContentType:f}});
define("orion/crawler/nls/root/messages",{"Searching file:":"Searching file:","is not supported in this file system":"is not supported in this file system","${0} files found out of ${1}":"${0} files found out of ${1}","The search term on this location will not use indexed files.":"The search term on this location will not use indexed files.","It will take longer time. Do you want to proceed?":"It will take longer time. Do you want to proceed?"});
define("orion/crawler/nls/messages",["orion/i18n!orion/crawler/nls/messages","orion/crawler/nls/root/messages"],function(f,i){var h={root:i};Object.keys(f).forEach(function(c){typeof h[c]==="undefined"&&(h[c]=f[c])});return h});define("orion/dialogs",[],function(){function f(f){this._serviceRegistry=f;this._serviceRegistration=f.registerService("orion.page.dialog",this)}f.prototype={confirm:function(f,h){h(window.confirm(f))},openFiles:function(){}};f.prototype.constructor=f;return{DialogService:f}});
(function(){function f(b){return b?b.slice(1).split("&"):[]}function i(b){return b.length===0?"":"?"+b.join("&")}function h(b){var d=/([^=]*)(?:=?)(.*)/.exec(b),b=d[1]?decodeURIComponent(d[1]):"",d=d[2]?decodeURIComponent(d[2]):"";return[b,d]}function c(b){var d=encodeURIComponent(b[0]);b[1]&&(d+="="+encodeURIComponent(b[1]));return d}function a(b,d){var a="",c=[],e=0;return{next:function(){if(a!==b.search)a=b.search,c=f(a);if(e<c.length){var g=h(c[e++]);switch(d){case "keys":return g[0];case "values":return g[1];
case "keys+values":return[g[0],g[1]];default:throw new TypeError;}}throw k;}}}function e(b){if(typeof b!=="string")throw new TypeError;}function g(b){var d=b.protocol;return!d||d===":"||d==="http:"&&!b.hostname?!1:!0}function d(b){Object.defineProperty(this,"_anchor",{value:b})}function b(b,a){b=b||"";if(typeof b!=="string")throw new TypeError("url");a=a?a.href||a:"";if(typeof a!=="string")throw new TypeError("base");Object.defineProperty(this,"_input",{value:b,writable:!0});var c=document.implementation.createHTMLDocument("");
if(a){var e=c.createElement("a");e.href=a;if(e.protocol.length<2||!e.host)throw Error("InvalidStateError");var j=c.createElement("base");j.href=e.href;c.head.appendChild(j)}var m=c.createElement("a");m.href=b;c.body.appendChild(m);Object.defineProperty(this,"_urlAnchor",{value:m});var k=new d(m);Object.defineProperty(this,"query",{get:function(){return g(m)?k:null},enumerable:!0})}try{if(typeof window.URL==="function"&&window.URL.length!==0&&(new window.URL("http://www.w3.org")).protocol==="http:")return}catch(j){}var m=
/([^:]*):?(.*)/,k=typeof StopIteration!=="undefined"?StopIteration:Error("Stop Iteration");Object.defineProperties(d.prototype,{get:{value:function(b){e(b);var d;f(this._anchor.search).some(function(a){a=h(a);if(a[0]===b)return d=a[1],!0});return d},enumerable:!0},set:{value:function(b,d){e(b);e(d);var a=f(this._anchor.search);a.some(function(e,g){var j=h(e);if(j[0]===b)return j[1]=d,a[g]=c(j),!0})||a.push(c([b,d]));this._anchor.search=i(a)},enumerable:!0},has:{value:function(b){e(b);return f(this._anchor.search).some(function(d){if(h(d)[0]===
b)return!0})},enumerable:!0},"delete":{value:function(b){e(b);var d=f(this._anchor.search),a=d.filter(function(d){return h(d)[0]!==b});return a.length!==d.length?(this._anchor.search=i(a),!0):!1},enumerable:!0},clear:{value:function(){this._anchor.search=""},enumerable:!0},forEach:{value:function(b,d){if(typeof b!=="function")throw new TypeError;var c=a(this._anchor,"keys+values");try{for(;;){var e=c.next();b.call(d,e[1],e[0],this)}}catch(g){if(g!==k)throw g;}},enumerable:!0},keys:{value:function(){return a(this._anchor,
"keys")},enumerable:!0},values:{value:function(){return a(this._anchor,"values")},enumerable:!0},items:{value:function(){return a(this._anchor,"keys+values")}},size:{get:function(){return f(this._anchor.search).length},enumerable:!0},getAll:{value:function(b){e(b);var d=[];f(this._anchor.search).forEach(function(a){a=h(a);a[0]===b&&d.push(a[1])});return d},enumerable:!0},append:{value:function(b,d){e(b);e(d);var a=f(this._anchor.search);a.push(c([b,d]));this._anchor.search=i(a)},enumerable:!0}});
Object.defineProperties(b.prototype,{href:{get:function(){return g(this._urlAnchor)?this._urlAnchor.href:this._input},set:function(b){e(b);this._input=b;this._urlAnchor.href=b},enumerable:!0},origin:{get:function(){return g(this._urlAnchor)?this._urlAnchor.protocol+"//"+this._urlAnchor.host:""},enumerable:!0},protocol:{get:function(){return g(this._urlAnchor)?this._urlAnchor.protocol:":"},set:function(b){e(b);this._urlAnchor.protocol=b},enumerable:!0},_userinfo:{get:function(){return!g(this._urlAnchor)?
"":RegExp("^"+this._urlAnchor.protocol+"(\\/\\/)(?:([^@]*)?@)?"+this._urlAnchor.host).exec(this._urlAnchor.href)[2]||""},set:function(b){e(b);this._urlAnchor.href=this._urlAnchor.href.replace(RegExp("^"+this._urlAnchor.protocol+"(\\/\\/)(?:([^@]*)?@)?"+this._urlAnchor.host),this._urlAnchor.protocol+"//"+(b?b+"@":"")+this._urlAnchor.host)}},username:{get:function(){if(!g(this._urlAnchor))return"";var b=m.exec(this._userinfo);return decodeURIComponent(b[1]||"")},set:function(b){e(b);var d=m.exec(this._userinfo),
b=[encodeURIComponent(b||"")];d[2]&&b.push(d[2]);this._userinfo=b.join(":")},enumerable:!0},password:{get:function(){if(!g(this._urlAnchor))return"";var b=m.exec(this._userinfo);return decodeURIComponent(b[2]||"")},set:function(b){e(b);var d=[m.exec(this._userinfo)[1]||""];b&&d.push(encodeURIComponent(b));this._userinfo=d.join(":")},enumerable:!0},host:{get:function(){return g(this._urlAnchor)?this._urlAnchor.host:""},set:function(b){e(b);this._urlAnchor.host=b},enumerable:!0},hostname:{get:function(){return g(this._urlAnchor)?
this._urlAnchor.hostname:""},set:function(b){e(b);this._urlAnchor.hostname=b},enumerable:!0},port:{get:function(){return g(this._urlAnchor)?this._urlAnchor.port:""},set:function(b){e(b);this._urlAnchor.port=b},enumerable:!0},pathname:{get:function(){return g(this._urlAnchor)?this._urlAnchor.pathname:""},set:function(b){e(b);this._urlAnchor.pathname=b},enumerable:!0},search:{get:function(){return g(this._urlAnchor)?this._urlAnchor.search:""},set:function(b){e(b);this._urlAnchor.search=b},enumerable:!0},
hash:{get:function(){return g(this._urlAnchor)?this._urlAnchor.hash:""},set:function(b){e(b);this._urlAnchor.hash=b},enumerable:!0}});window.URL&&window.URL.createObjectURL&&(Object.defineProperty(b,"createObjectURL",{value:window.URL.createObjectURL.bind(window.URL),enumerable:!1}),Object.defineProperty(b,"revokeObjectURL",{value:window.URL.revokeObjectURL.bind(window.URL),enumerable:!1}));window.URL=b})();define("orion/URL-shim",function(){});
define("orion/editor/util",[],function(){var f=navigator.userAgent,i=parseFloat(f.split("MSIE")[1])||void 0,h=parseFloat(f.split("Firefox/")[1]||f.split("Minefield/")[1])||void 0,c=f.indexOf("Opera")!==-1,a=parseFloat(f.split("Chrome/")[1])||void 0,e=f.indexOf("Safari")!==-1&&!a,g=parseFloat(f.split("WebKit/")[1])||void 0,d=f.indexOf("Android")!==-1,b=f.indexOf("iPad")!==-1,f=f.indexOf("iPhone")!==-1,j=b||f,m=navigator.platform.indexOf("Mac")!==-1,k=navigator.platform.indexOf("Win")!==-1,l=navigator.platform.indexOf("Linux")!==
-1;return{formatMessage:function(b){var d=arguments;return b.replace(/\$\{([^\}]+)\}/g,function(b,a){return d[(a<<0)+1]})},createElement:function(b,d){return b.createElementNS?b.createElementNS("http://www.w3.org/1999/xhtml",d):b.createElement(d)},isIE:i,isFirefox:h,isOpera:c,isChrome:a,isSafari:e,isWebkit:g,isAndroid:d,isIPad:b,isIPhone:f,isIOS:j,isMac:m,isWindows:k,isLinux:l,platformDelimiter:k?"\r\n":"\n"}});
define("orion/editor/keyBinding",["orion/editor/util"],function(f){function i(h,c,a,e,g){this.keyCode=typeof h==="string"?h.toUpperCase().charCodeAt(0):h;this.mod1=c!==void 0&&c!==null?c:!1;this.mod2=a!==void 0&&a!==null?a:!1;this.mod3=e!==void 0&&e!==null?e:!1;this.mod4=g!==void 0&&g!==null?g:!1}i.prototype={match:function(h){return this.keyCode===h.keyCode?this.mod1!==(f.isMac?h.metaKey:h.ctrlKey)?!1:this.mod2!==h.shiftKey?!1:this.mod3!==h.altKey?!1:f.isMac&&this.mod4!==h.ctrlKey?!1:!0:!1},equals:function(h){return!h?
!1:this.keyCode!==h.keyCode?!1:this.mod1!==h.mod1?!1:this.mod2!==h.mod2?!1:this.mod3!==h.mod3?!1:this.mod4!==h.mod4?!1:!0}};return{KeyBinding:i}});define("orion/fileUtils",["i18n!orion/nls/messages"],function(){return{makeRelative:function(f){if(!f)return f;var i=window.location.protocol+"//"+window.location.host;return f.indexOf(i)===0?f.substring(i.length):f},isAtRoot:function(f){return this.makeRelative(f).indexOf("/workspace")===0}}});
define("orion/favorites",["require","orion/fileUtils","orion/EventTarget"],function(f,i,h){function c(a){this._favorites=[];h.attach(this);this._init(a);this._initializeFavorites()}c.prototype={_init:function(a){this._registry=a.serviceRegistry;this._serviceRegistration=this._registry.registerService("orion.core.favorite",this)},_notifyListeners:function(){this.dispatchEvent({type:"favoritesChanged",navigator:this._favorites,registry:this._registry})},makeFavorites:function(a){for(var a=Array.isArray(a)?
a:[a],c=0;c<a.length;c++){var g=a[c],d=g.ChildrenLocation?g.ChildrenLocation:g.Location,d=i.makeRelative(d);this.addFavorite(g.Name,d,g.Directory)}this._storeFavorites();this._notifyListeners()},addFavoriteUrl:function(a){this.addFavorite(a,a,!1,!0)},addFavorite:function(a,c,g){this._favorites.push({name:a,path:c,directory:g,isFavorite:!0});this._favorites.sort(this._sorter);this._storeFavorites();this._notifyListeners()},removeFavorite:function(a){for(var c in this._favorites)if(this._favorites[c].path===
a){this._favorites.splice(c,1);break}this._favorites.sort(this._sorter);this._storeFavorites();this._notifyListeners()},renameFavorite:function(a,c){var g=!1,d;for(d in this._favorites)if(this._favorites[d].path===a){var b=this._favorites[d];if(b.name!==c)b.name=c,g=!0}g&&(this._favorites.sort(this._sorter),this._storeFavorites(),this._notifyListeners())},hasFavorite:function(a){for(var c in this._favorites)if(this._favorites[c].path===a)return!0;return!1},_SPECIAL_CHARS:"^$\\+[]().",queryFavorites:function(a){var c;
if(!a)return this._favorites;var g="";for(c=0;c<a.length;c++){var d=a.charAt(c);g+=d==="*"?".*":d==="?"?".?":this._SPECIAL_CHARS.indexOf(d)>=0?"\\"+d:d}g+=".*";a=RegExp(g);g=[];for(c in this._favorites)this._favorites[c].name.search(a)===0&&g.push(this._favorites[c]);return g},_initializeFavorites:function(){var a=this;this._registry.getService("orion.core.preference").getPreferences("/window/favorites").then(function(c){var g,c=c.get("navigate");typeof c==="string"&&(c=JSON.parse(c));if(c)for(g in c)c[g].isFavorite=
!0,a._favorites.push(c[g]);a._favorites.sort(a._sorter);a._notifyListeners()})},_storeFavorites:function(){var a=this._favorites;this._registry.getService("orion.core.preference").getPreferences("/window/favorites").then(function(c){c.put("navigate",a)})},_sorter:function(a,c){var g=a.name.toLowerCase(),d=c.name.toLowerCase();return g>d?1:g<d?-1:0},getFavorites:function(){return{navigator:this._favorites}}};c.prototype.constructor=c;return{FavoritesService:c}});
define("orion/widgets/themes/ThemeClass",[],function(){function f(f){this.attributes=[];this.element=document.createElement("div");this.style=this.element.style;this.className=f;this.classString="."+f+"{ "}f.prototype.className=null;f.prototype.classString=void 0;f.prototype.style=void 0;f.prototype.closeString=" }\n";f.prototype.toString=function(){return this.classString=this.classString+this.style.cssText+this.closeString};return{ThemeClass:f}});
define("orion/widgets/themes/container/ThemeSheetWriter",["orion/widgets/themes/ThemeClass"],function(f){function i(){}i.prototype.navbar="#333";i.prototype.button="#777777";i.prototype.location="#EFEFEF";i.prototype.selection="FEC";i.prototype.sidepanel="#FBFBFB";i.prototype.mainpanel="white";i.prototype.navtext="#bfbfbf";i.prototype.content="#3087B3";i.prototype.search="#444";i.prototype.toolpanel="white";i.prototype.writeNavigationStyle=function(){var h="",c=[],a=new f.ThemeClass("orionPage");
a.style.backgroundColor="#fdfdfd";a.style.width="100%";a.style.height="100%";c.push(a);a=new f.ThemeClass("topRowBanner");a.style.margin="0";a.style.border="0";a.style.backgroundColor=this.navbar;a.style.background="-webkit-gradient(linear, left top, left bottom, color-stop(0%,"+this.navbar+"), color-stop(100%,"+this.navbar+"))";a.style.background="-moz-linear-gradient(top,"+this.navbar+"0%,"+this.navbar+"100%)";a.style.height="28px";c.push(a);a=new f.ThemeClass("a");a.style.textDecoration="none";
a.style.color=this.content;c.push(a);a=new f.ThemeClass("navlink");a.style.display="inline-block";a.style.padding="2px";a.style.color=this.content;c.push(a);a=new f.ThemeClass("primaryNav");a.style.color=this.navtext;a.style.fontSize="8pt";a.style.fontWeight="normal";a.style.paddingTop="6px";a.style.verticalAlign="baseline";c.push(a);a=new f.ThemeClass("primaryNav a");a.style.fontSize="8pt";a.style.color=this.navtext;a.style.marginRight="6px";a.style.marginLeft="6px";a.style.verticalAlign="baseline";
a.style.textDecoration="none";c.push(a);a=new f.ThemeClass("primaryNav a:hover");a.style.color="#bfbfbf";a.style.cursor="hand";a.style.color="white";a.style.fontWeight="normal";c.push(a);for(var e in c)h+=c[e].toString();return h};i.prototype.writeLocationStyle=function(){var h="",c=[],a=new f.ThemeClass("titleArea");a.style.margin="0";a.style.paddingTop="5px";a.style.border="0";a.style.background=this.location;a.style.background="-webkit-gradient(linear, left top, left bottom, color-stop(0%,"+this.location+
"), color-stop(100%,"+this.location+"))";a.style.borderBottom="1px solid "+this.location;a.style.minHeight="20px";c.push(a);a=new f.ThemeClass("breadcrumb");a.style.fontSize="8pt";a.style.textDecoration="none";a.style.color=this.content;a.style.paddingTop="2px";c.push(a);a=new f.ThemeClass("a.breadcrumb:hover");a.style.textDecoration="none";a.style.borderBottom="1px dotted";a.style.color="#F58B0F";a.style.cursor="pointer";c.push(a);a=new f.ThemeClass("breadcrumbSeparator");a.style.fontSize="8pt";
a.style.textDecoration="none";a.style.color=this.navbar;a.style.fontWeight="bold";c.push(a);a=new f.ThemeClass("currentLocation");a.style.fontWeight="bold";a.style.fontSize="8pt";a.style.color=this.navbar;a.style.textDecoration="none";a.style.textWrap="normal";a.style.lineHeight="10pt";c.push(a);a=new f.ThemeClass("a.currentLocation:hover");a.style.fontWeight="bold";a.style.fontSize="10pt";a.style.color="#666666";a.style.textDecoration="none";a.style.borderBottom="0";c.push(a);a=new f.ThemeClass("navlinkonpage");
a.style.color=this.content;c.push(a);for(var e in c)h+=c[e].toString();return h};i.prototype.writeButtonStyle=function(){var h="",c=[],a=new f.ThemeClass("commandButton");a.style.color="#222";a.style.border="1px solid #dedede";a.style.backgroundColor=this.button;a.style.textAlign="center";a.style.verticalAlign="baseline";a.style.cursor="pointer";a.style.display="inline-block";a.style.padding="6px";a.style.paddingTop="4px";a.style.borderRadius="1px";a.style.lineHeight="12px";a.style.fontSize="8pt";
a.style.userSelect="none";c.push(a);a=new f.ThemeClass("commandButton:over");a.style.backgroundColor="#e6e6e6";a.style.border="1px solid #808080";c.push(a);a=new f.ThemeClass("commandMenu");a.style.color="#222";a.style.display="inline-block";a.style.verticalAlign="baseline";a.style.margin="0";a.style.fontSize="8pt";a.style.fontWeight="normal";a.style.border="1px solid #dedede";a.style.backgroundColor="#efefef";a.style.cursor="pointer";a.style.borderRadius="1px";c.push(a);a=new f.ThemeClass("commandMenuItem");
a.style.border="0";a.style.padding="0";a.style.margin="0";c.push(a);for(var e in c)h+=c[e].toString();return h};i.prototype.writeMainStyle=function(){var h="",c=[],a=new f.ThemeClass("searchbox");a.style.backgroundImage="url(../images/core_sprites.png)";a.style.backgroundRepeat="no-repeat";a.style.backgroundPosition="4px -297px";a.style.width="12px";a.style.height="12px";a.style.backgroundColor=this.search;a.style.border="1px solid "+this.search;a.style.fontSize="11px";a.style.width="15em";a.style.height=
"16px";a.style.borderRadius="10px";a.style.color="#999";a.style.padding="0";a.style.paddingLeft="20px";a.style.marginLeft="5px";a.style.marginTop="6px !important";a.style.font="7pt Lucida Sans Unicode,Lucida Grande,Verdana,Arial,Helvetica,Myriad,Tahoma,clean,sans-serif !important";c.push(a);a=new f.ThemeClass("searchbox:focus");a.style.color="white";a.style.outline="none";c.push(a);a=new f.ThemeClass("checkedRow");a.style.cssText="background-color:"+this.selection+" !important;";c.push(a);a=new f.ThemeClass("navbar-item-selected");
a.style.background=this.selection;a.style.color=this.content;c.push(a);a=new f.ThemeClass("auxpane");a.style.border="0";a.style.background=this.sidepanel;a.style.background="-webkit-gradient(linear, left top, left bottom, color-stop(0%,"+this.sidepanel+"), color-stop(100%,"+this.sidepanel+"))";a.style.background="-moz-linear-gradient(top, "+this.sidepanel+" 0%, "+this.sidepanel+" 100%)";a.style.overflowX="auto";a.style.minWidth="200px";a.style.paddingTop="16px";c.push(a);a=new f.ThemeClass("mainpane");
a.style.background=this.mainpanel;a.style.border=0;c.push(a);a=new f.ThemeClass("mainToolbar");a.style.background=this.toolpanel;a.style.height="31px";a.style.borderBottom="1px solid #ebebeb";c.push(a);for(var e in c)h+=c[e].toString();return h};i.prototype.render=function(){console.log(this.writeNavigationStyle());console.log(this.writeLocationStyle());console.log(this.writeMainStyle());console.log(this.writeButtonStyle())};i.prototype.getSheet=function(h){h.navbar.value?(this.navbar=h.navbar.value,
this.button=h.button.value,this.location=h.location.value,this.selection=h.selection.value,this.sidepanel=h.sidepanel.value,this.mainpanel=h.mainpanel.value,this.navtext=h.navtext.value,this.search=h.search.value,this.content=h.content.value,this.toolpanel=h.toolpanel.value):(this.navbar=h.navbar,this.button=h.button,this.location=h.location,this.selection=h.selection,this.sidepanel=h.sidepanel,this.mainpanel=h.mainpanel,this.navtext=h.navtext,this.search=h.search,this.content=h.content,this.toolpanel=
h.toolpanel);return this.writeNavigationStyle()+this.writeLocationStyle()+this.writeMainStyle()+this.writeButtonStyle()};return{ThemeSheetWriter:i}});
define("orion/inputCompletion/inputCompletion",[],function(){function f(f,h,c){this._inputField=f;if(typeof this._inputField==="string")this._inputField=document.getElementById(this._inputField);this._binderFunc=h;(f=c?c.group:null)||(f=this._inputField.id?this._inputField.id:"default__input__group");this._completionIdPrefix=f+"__completion__";this._proposeFromStart=c?c.proposeFromStart:!1;this._extendedProvider=c?c.extendedProvider:null;this._proposalIndex=-1;this._dismissed=!0;this._mouseDown=!1;
this._dataList=[];this._initUI();var a=this;this._completionUIContainer.addEventListener("mousedown",function(){a._mouseDown=!0});this._completionUIContainer.addEventListener("mouseup",function(){a._mouseDown=!1});this._inputField.addEventListener("blur",function(){a._mouseDown?window.setTimeout(function(){a._inputField.focus()},200):a._dismiss()});this._inputField.addEventListener("keydown",function(c){a.onKeyDown(c)});this._inputField.addEventListener("input",function(){a._proposeOn(a._inputField.value)});
this._inputField.addEventListener("focus",function(){if(a._dismissed&&a._binderFunc)a._dismissing?a._dismissing=!1:a._binderFunc&&a._binderFunc(function(c){a._bind(c);a._proposeOn(a._inputField.value)})})}f.prototype.onKeyDown=function(f){if(this._dismissed)return!0;var h=f.charCode||f.keyCode;if(h===13){if(this._proposalList&&this._proposalList.length>0&&this._proposalIndex>=0&&this._proposalIndex<this._proposalList.length)return f.preventDefault(),this._dismiss(this._proposalList[this._proposalIndex].item.value,
f.ctrlKey),f.stopPropagation(),!1}else if((h===40||h===38)&&this._proposalList&&this._proposalList.length>0)return f.preventDefault(),this._walk(h===40),f.stopPropagation(),!1;else if(h===27)return f.preventDefault(),this._dismiss(),!1;return!0};f.prototype._bind=function(f){this._dataList=f};f.prototype._getUIContainerID=function(){return this._completionIdPrefix+"UIContainer"};f.prototype._getUIProposalListId=function(){return this._completionIdPrefix+"UIProposalList"};f.prototype._initUI=function(){this._completionUIContainer=
document.getElementById(this._getUIContainerID());if(!this._completionUIContainer)this._completionUIContainer=document.createElement("div"),this._completionUIContainer.id=this._getUIContainerID(),this._completionUIContainer.style.display="none",this._completionUIContainer.className="inputCompletionContainer",this._completionUIContainer.setAttribute("role","list"),this._completionUIContainer.setAttribute("aria-atomic","true"),this._completionUIContainer.setAttribute("aria-live","assertive"),document.body.appendChild(this._completionUIContainer);
this._completionUIContainer.textContent="";this._completionUL=document.getElementById(this._getUIProposalListId());if(!this._completionUL)this._completionUL=document.createElement("ul"),this._completionUL.id=this._getUIProposalListId(),this._completionUL.className="inputCompletionUL";this._completionUL.textContent="";this._completionUIContainer.appendChild(this._completionUL)};f.prototype._createProposalLink=function(f,h,c,a){var e=document.createElement("a");e.href=require.toUrl(h);e.appendChild(this._createBoldText(f,
c,a));return e};f.prototype._createBoldText=function(f,h,c){if(h<0)return document.createTextNode(f);var a=document.createElement("span"),e;0!==h&&(e=document.createTextNode(f.substring(0,h)),a.appendChild(e));var g=document.createElement("b");a.appendChild(g);e=document.createTextNode(f.substring(h,h+c));g.appendChild(e);h+c<f.length-1&&(e=document.createTextNode(f.substring(h+c)),a.appendChild(e));return a};f.prototype._proposeOnCategory=function(f,h){if(h.length!==0){var c=this;if(f){var a=document.createElement("li");
a.className="inputCompletionLICategory";var e=document.createTextNode(f);a.appendChild(e);this._completionUL.appendChild(a)}for(e=0;e<h.length;e++){a=document.createElement("li");a.onmouseover=function(d){c._selectProposal(d.currentTarget)};a.onclick=function(d){c._dismiss(d.currentTarget.completionItem.value)};a.className="inputCompletionLINormal";a.completionItem=h[e].item;if(typeof h[e].item.value==="string"){var g=this._createBoldText(h[e].item.value,h[e].boldIndex,h[e].boldLength);a.appendChild(g)}else h[e].item.value.name&&
h[e].item.value.type==="link"&&a.appendChild(this._createProposalLink(h[e].item.value.name,h[e].item.value.value,h[e].boldIndex,h[e].boldLength));this._completionUL.appendChild(a);this._proposalList.push({item:h[e].item,domNode:a})}}};f.prototype._domNode2Index=function(f){for(var h=0;h<this._proposalList.length;h++)if(this._proposalList[h].domNode===f)return h;return-1};f.prototype._highlight=function(f,h){var c=f,a=!1;isNaN(c)||(a=!0,c=this._proposalList&&f>=0&&f<this._proposalList.length?this._proposalList[f].domNode:
null);if(c)c.className=h?"inputCompletionLISelected":"inputCompletionLINormal",h&&a&&(c.offsetTop<this._completionUIContainer.scrollTop?c.scrollIntoView(!0):c.offsetTop+c.offsetHeight>this._completionUIContainer.scrollTop+this._completionUIContainer.clientHeight&&c.scrollIntoView(!1))};f.prototype._selectProposal=function(f){var h=f;isNaN(h)&&(h=this._domNode2Index(f));if(h!==this._proposalIndex)this._highlight(this._proposalIndex,!1),this._proposalIndex=h,this._highlight(this._proposalIndex,!0)};
f.prototype._dismiss=function(f,h){if(!this._mouseDown){this._dismissed=!0;this._proposalList=null;this._proposalIndex=-1;if(typeof f==="string")this._inputField.value=f,this._dismissing=!0,this._inputField.focus();else if(f&&f.name&&f.type==="link")h?window.open(f.value):window.location.href=f.value;var c=this;window.setTimeout(function(){c._completionUIContainer.style.display="none"},200)}};f.prototype._show=function(){if(this._proposalList&&this._proposalList.length>0){for(var f=0,h=0,c=this._inputField;c;)f+=
c.offsetLeft,h+=c.offsetTop,c=c.offsetParent;this._completionUIContainer.style.display="block";this._completionUIContainer.style.top=h+this._inputField.offsetHeight+2+"px";this._completionUIContainer.style.left=f+"px";this._completionUIContainer.style.width=this._inputField.offsetWidth+"px";this._dismissed=this._mouseDown=!1}else this._dismissed=!0,this._proposalList=null,this._proposalIndex=-1,this._completionUIContainer.style.display="none"};f.prototype._walk=function(f){f=this._proposalIndex+(f?
1:-1);f<-1?f=this._proposalList.length-1:f>=this._proposalList.length&&(f=-1);this._selectProposal(f)};f.prototype._proposeOnList=function(f,h,c){for(var a="",e=[],g=h?h.length:0,d=0;d<f.length;d++)if(f[d].type==="category")this._proposeOnCategory(a,e),a=f[d].label,e=[];else{var b=!0,j=-1;if(h&&c){var m;typeof f[d].value==="string"?m=f[d].value.toLowerCase():f[d].value.name&&(m=f[d].value.name.toLowerCase());j=m.indexOf(h);j<0?b=!1:this._proposeFromStart&&(b=j===0)}b&&e.push({item:f[d],boldIndex:j,
boldLength:g})}this._proposeOnCategory(a,e)};f.prototype._proposeOn=function(f){this._completionUL.textContent="";var h=f?f.toLowerCase():null;this._proposalList=[];this._proposeOnList(this._dataList,h,!0);if(this._extendedProvider&&h){var c=this;this._extendedProvider(f,function(a){if(a)for(var e=0;e<a.length;e++)c._proposeOnList(a[e].proposals,a[e].filterForMe?h:f,a[e].filterForMe);c._show()},[])}else this._show()};f.prototype.constructor=f;return{InputCompletion:f}});
define("orion/globalSearch/nls/root/messages",{"Files that contain:":"Files that contain:",Search:"Search","All types":"All types","File type:":"File type:","All ${0} files":"All ${0} files","Type a search term":"Type a search term","Case sensitive":"Case sensitive","Regular expression":"Regular expression"});
define("orion/globalSearch/nls/messages",["orion/i18n!orion/globalSearch/nls/messages","orion/globalSearch/nls/root/messages"],function(f,i){var h={root:i};Object.keys(f).forEach(function(c){typeof h[c]==="undefined"&&(h[c]=f[c])});return h});
define("orion/PageLinks",["require","orion/Deferred","orion/PageUtil","orion/URITemplate","orion/URL-shim"],function(f,i,h,c){function a(a,g){for(var d=a.getServiceReferences(g||"orion.page.link"),b=h.matchResourceParameters(window.location.href),j={OrionHome:(new URL(f.toUrl("."),window.location)).href.slice(0,-1),Location:b.resource},b=[],m=0;m<d.length;m++){for(var k={},l=d[m].getPropertyKeys(),p=0;p<l.length;p++)k[l[p]]=d[m].getProperty(l[p]);if(k.uriTemplate&&k.nls&&(k.name||k.nameKey)){var r=
new i;f(["i18n!"+k.nls],function(b){var d=new c(k.uriTemplate),d=window.decodeURIComponent(d.expand(j)),d=h.validateURLScheme(d);k.href=d;k.textContent=k.nameKey?b[k.nameKey]:k.name;r.resolve(k)});b.push(r)}else if(k.uriTemplate&&k.name)l=new c(k.uriTemplate),l=window.decodeURIComponent(l.expand(j)),l=h.validateURLScheme(l),k.href=l,k.textContent=k.name,b.push((new i).resolve(k))}return i.all(b)}return{createPageLinks:function(c,g){return a(c,g).then(function(d){return d.map(function(b){var d=b.href,
b=b.textContent,a=document.createElement("a");a.href=d;a.target="_self";a.classList.add("targetSelector");a.textContent=b;return a})})},getPageLinksInfo:a}});
(function(){var f=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],i=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,h=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,c=typeof location!=="undefined"&&location.href,a=c&&location.protocol&&location.protocol.replace(/\:/,""),e=c&&location.hostname,g=c&&(location.port||void 0),d=[];define("text",[],function(){var b,j,m;typeof window!=="undefined"&&window.navigator&&window.document?j=function(d,a){var c=b.createXhr();c.open("GET",d,!0);c.onreadystatechange=
function(){c.readyState===4&&a(c.responseText)};c.send(null)}:typeof process!=="undefined"&&process.versions&&process.versions.node?(m=require.nodeRequire("fs"),j=function(b,d){var a=m.readFileSync(b,"utf8");a.indexOf("\ufeff")===0&&(a=a.substring(1));d(a)}):typeof Packages!=="undefined"&&(j=function(b,d){var a=new java.io.File(b),c=java.lang.System.getProperty("line.separator"),a=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(a),"utf-8")),e,g,j="";try{e=new java.lang.StringBuffer;
(g=a.readLine())&&g.length()&&g.charAt(0)===65279&&(g=g.substring(1));for(e.append(g);(g=a.readLine())!==null;)e.append(c),e.append(g);j=String(e.toString())}finally{a.close()}d(j)});return b={version:"1.0.7",strip:function(b){if(b){var b=b.replace(i,""),d=b.match(h);d&&(b=d[1])}else b="";return b},jsEscape:function(b){return b.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")},createXhr:function(){var b,d,
a;if(typeof XMLHttpRequest!=="undefined")return new XMLHttpRequest;else for(d=0;d<3;d++){a=f[d];try{b=new ActiveXObject(a)}catch(c){}if(b){f=[a];break}}if(!b)throw Error("createXhr(): XMLHttpRequest not available");return b},get:j,parseName:function(b){var d=!1,a=b.indexOf("."),c=b.substring(0,a),b=b.substring(a+1,b.length),a=b.indexOf("!");a!==-1&&(d=b.substring(a+1,b.length),d=d==="strip",b=b.substring(0,a));return{moduleName:c,ext:b,strip:d}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(d,
a,c,e){var g=b.xdRegExp.exec(d),j;if(!g)return!0;d=g[2];g=g[3];g=g.split(":");j=g[1];g=g[0];return(!d||d===a)&&(!g||g===c)&&(!j&&!g||j===e)},finishLoad:function(a,c,e,g,j){e=c?b.strip(e):e;j.isBuild&&(d[a]=e);g(e)},load:function(d,j,m,f){if(f.isBuild&&!f.inlineText)m();else{var h=b.parseName(d),i=h.moduleName+"."+h.ext,n=j.toUrl(i),u=f&&f.text&&f.text.useXhr||b.useXhr;!c||u(n,a,e,g)?b.get(n,function(a){b.finishLoad(d,h.strip,a,m,f)}):j([i],function(d){b.finishLoad(h.moduleName+"."+h.ext,h.strip,d,
m,f)})}},write:function(a,c,e){if(c in d){var g=b.jsEscape(d[c]);e.asModule(a+"!"+c,"define(function () { return '"+g+"';});\n")}},writeFile:function(d,a,c,e,g){var a=b.parseName(a),j=a.moduleName+"."+a.ext,m=c.toUrl(a.moduleName+"."+a.ext)+".js";b.load(j,c,function(){var a=function(b){return e(m,b)};a.asModule=function(b,d){return e.asModule(b,m,d)};b.write(d,j,a,g)},g)}}})})();define("text!orion/banner/banner.html",[],function(){return'<header id="banner" role="banner" class="headerLayout">\n\t<\!-- Requires some js code to bind the home link, link to progress image, and binding NLS variables  --\>\n\t<\!-- Top row:  Logo + discovery links + search + user --\>\n\t<div id="staticBanner" class="primaryNav layoutBlock topRowBanner">\n\t\t<a id="home" class="layoutLeft logo"></a>\n\t\t<nav id="primaryNav" class="layoutLeft" role="navigation"></nav>\n\t\t<div class="layoutRight">\n\t\t\t<div id="globalActions" class="spacingLeft layoutLeft"></div>\n\t\t\t<div id="relatedLinks" class="spacingLeft layoutLeft" style="padding-top:1px;">\n\t\t\t\t<span tabindex="0" role="button" id="relatedTrigger" class="dropdownTrigger hidden">${Related}<span class="dropdownArrowDown"></span></span>\n\t\t\t\t<ul id="relatedDropdown" class="dropdownMenu" role="menu"></ul>\n\t\t\t</div>\n\t\t\t<input type="text" id="search" autocomplete="off" class="layoutLeft spacingLeft searchbox" role="search">\n\t\t\t<div id="searchOptions" class="layoutLeft" style="padding-top:1px;"></div>\n\t\t\t<div id="userMenu" class="spacingLeft layoutLeft">\n\t\t\t\t<span id="userTrigger" tabindex="0" role="button" class="dropdownTrigger">${Options}<span class="dropdownArrowDown"></span></span>\n\t\t\t\t<ul id="userDropdown" class="dropdownMenu" role="menu"></ul>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t<\!-- Task + resource (title) area --\>\n\t<div id="titleArea" class="layoutBlock titleArea">\n\t\t<div class="clear" style="padding-bottom:5px;display:inline;"><span id="location" class="currentLocation"></span><span id="dirty" class="currentLocation"></span></div>\n\t\t<div class="layoutRight pageNav">\n\t\t\t<img class="progressPane" id="progressPane" tabindex="0" role="progressbar"></img>\n\t\t</div>\n\t</div>\n</header>'});
define("text!orion/banner/footer.html",[],function(){return'<footer id="footerContent" class="layoutBlock footerLayout" role="contentinfo">\n\t<\!-- Requires some js code to bind the NLS variables  --\>\n\t<div class="footerBlock">${Orion is in Beta. Please try it out but BEWARE your data may be lost.}</div>\n\t<div class="footerRightBlock">\n\t\t<a href="http://wiki.eclipse.org/Orion/FAQ" target="_blank">${FAQ}</a>\n\t\t<a href="https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Orion&version=2.0" target="_blank">${Report a Bug}</a>|\n\t\t<a href="http://www.eclipse.org/legal/privacy.php" target="_blank">${Privacy Policy}</a>|\n\t\t<a href="http://www.eclipse.org/legal/termsofuse.php" target="_blank">${Terms of Use}</a>|\n\t\t<a href="http://www.eclipse.org/legal/copyright.php" target="_blank">${Copyright Agent}</a>\n\t</div>\n</footer>'});
define("text!orion/banner/toolbar.html",[],function(){return'<ul class="layoutLeft commandList pageActions" id="pageActions"></ul>\n<ul class="layoutLeft commandList pageActions" id="selectionTools"></ul>\n<div class="layoutRight" style="padding-left:7px;padding-right:7px;margin-top:3px;" id="settingsTab" style="visibility:hidden;">\n\t<div class="layoutRight core-sprite-settings" id="settingsAction" role="settings" aria-live="off" style="visibility:hidden;"></div>\n</div>\n<div class="layoutRight status" id="statusPane" role="status" aria-live="off"></div>\n<ul class="layoutRight commandList pageActions" id="pageNavigationActions"></ul>\n<div id="notificationArea" class="layoutLeft layoutBlock slideContainer">\n\t<div class="layoutLeft" id="notifications" aria-live="assertive" aria-atomic="true"></div>\n\t<div class="layoutRight"><span tabindex="0" role="button" class="layoutRight core-sprite-close imageSprite" id="closeNotifications"></span></div>\n</div>\n\t\t\n\t'});
define("text!orion/banner/slideout.html",[],function(){return'<div id="slideContainer" class="slideParameters slideContainer">\n\t<span id="pageCommandParameters" class="layoutLeft parameters"></span>\n\t<span id="pageCommandDismiss" class="layoutRight parametersDismiss"></span>\n</div>'});
define("orion/webui/littlelib",["require"],function(){function f(d,b){b||(b=document);return b.querySelectorAll(d)}function i(d,b){var a=d.compareDocumentPosition(b);return d===b||Boolean(a&16)}function h(d){if(d.tabIndex>=0)return d;if(d.hasChildNodes())for(var b=0;b<d.childNodes.length;b++){var a=h(d.childNodes[b]);if(a)return a}return null}function c(d){if(d.tabIndex>=0)return d;if(d.hasChildNodes())for(var b=d.childNodes.length-1;b>=0;b--){var a=c(d.childNodes[b]);if(a)return a}return null}function a(d,
b){if(d.nodeType===3){var c=e.exec(d.nodeValue);c&&c.length>1&&d.parentNode.replaceChild(document.createTextNode(b[c[1]]||c[1]),d)}if(d.hasChildNodes())for(c=0;c<d.childNodes.length;c++)a(d.childNodes[c],b)}var e=/\$\{([^\}]+)\}/,g=[];return{$:function(d,b){b||(b=document);return b.querySelector(d)},$$:f,$$array:function(d,b){return Array.prototype.slice.call(f(d,b))},node:function(d){var b=d;typeof d==="string"&&(b=document.getElementById(d));return b},contains:i,bounds:function(d){d=d.getBoundingClientRect();
return{left:d.left+document.body.scrollLeft,top:d.top+document.body.scrollTop,width:d.width,height:d.height}},empty:function(d){for(;d.hasChildNodes();)d.removeChild(d.firstChild)},firstTabbable:h,lastTabbable:c,stop:function(d){window.document.all?d.keyCode=0:(d.preventDefault(),d.stopPropagation())},processTextNodes:a,addAutoDismiss:function(d,b){g.length===0&&document.addEventListener("click",function(b){for(var d=[],a=0;a<g.length;a++){for(var c=g[a].excludeNodes,e=g[a].dismiss,f=!1,h=!0,o=0;o<
c.length;o++)if((f=document.compareDocumentPosition(document,c[o])!==1)&&i(c[o],b.target)){h=!1;break}h&&(e(),f=document.compareDocumentPosition(document,c[o])!==1);f&&d.push(g[a])}g=d},!0);g.push({excludeNodes:d,dismiss:b})},KEY:{BKSPC:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,PAGEUP:33,PAGEDOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,INSERT:45,DEL:46}}});
define("orion/webui/tooltip",["require","orion/webui/littlelib"],function(f,i){function h(c){this._init(c)}h.prototype={_init:function(c){this._node=i.node(c.node);if(!this._node)throw"no dom node for tooltip found";this._position=c.position||["right","above","below","left"];this._text=c.text;this._hideDelay=c.hideDelay===void 0?200:c.hideDelay;this._tailSize=c.tailSize||10;this._trigger=c.trigger||"mouseover";this._afterShowing=c.afterShowing;this._afterHiding=c.afterHiding;var a=this;if(this._trigger===
"click")this._showDelay=0,this._node.addEventListener("click",function(c){c.target===a._node&&(a.show(),i.stop(c))},!1);else if(this._trigger==="mouseover"){this._showDelay=c.showDelay===void 0?1E3:c.showDelay;c=["mouseout","click"];this._node.addEventListener("mouseover",function(c){i.contains(a._node,c.target)&&(a.show(),i.stop(c))},!1);for(var e=0;e<c.length;e++)this._node.addEventListener(c[e],function(c){i.contains(a._node,c.target)&&a.hide()},!1)}},_makeTipNode:function(){if(!this._tip){this._tip=
document.createElement("span");this._tip.classList.add("tooltipContainer");this._tipInner=document.createElement("span");this._tipInner.classList.add("tooltip");this._text&&this._tipInner.appendChild(document.createTextNode(this._text));this._tip.appendChild(this._tipInner);document.body.appendChild(this._tip);var c=this;i.addAutoDismiss([this._tip,this._node],function(){c.hide()});if(this._trigger==="mouseover")this._tipInner.role="tooltip",this._tipInner.id="tooltip"+(new Date).getTime().toString(),
this._node.setAttribute("aria-describedby",this._tipInner.id),this._tip.addEventListener("mouseover",function(){if(c._timeout)window.clearTimeout(c._timeout),c._timeout=null;c._tip.addEventListener("mouseout",function(a){i.contains(c._tip,a.target)&&(c.hide(),i.stop(a))},!1)},!1)}return this._tip},_positionTip:function(c,a){this._makeTipNode();if(this._tailBorder)this._tip.removeChild(this._tailBorder),this._tailBorder=null,this._tip.removeChild(this._tail),this._tail=null;c==="left"?this._tipInner.classList.add("left"):
this._tipInner.classList.remove("left");var e=i.bounds(this._node),g=i.bounds(this._tipInner),d;switch(c){case "above":d=e.top-g.height-this._tailSize-1;e=e.left-this._tailSize;break;case "below":d=e.top+e.height+this._tailSize+1;e=e.left-this._tailSize;break;case "left":d=e.top-this._tailSize/2;e=e.left-g.width-this._tailSize-1;break;default:d=e.top-this._tailSize/2,e=e.left+e.width+this._tailSize+1}var b=i.bounds(document.documentElement);if(d+g.height>b.height)if(a)d=b.height-g.height-1;else return!1;
if(e+g.width>b.width)if(a)e=b.width-g.width-1;else return!1;if(e<0)if(a)e=4;else return!1;if(d<0)if(a)d=4;else return!1;this._tailBorder=document.createElement("span");this._tailBorder.classList.add("tooltipTailBorderFrom"+c);this._tail=document.createElement("span");this._tail.classList.add("tooltipTailFrom"+c);c==="above"||c==="left"?(this._tip.appendChild(this._tailBorder),this._tip.appendChild(this._tail)):(this._tip.insertBefore(this._tailBorder,this._tipInner),this._tip.insertBefore(this._tail,
this._tipInner));this._tip.style.top=d+"px";this._tip.style.left=e+"px";this._tip.style.width=g.width+"px";this._tip.style.height=g.height+"px";return!0},contentContainer:function(){this._makeTipNode();return this._tipInner},show:function(){if(!this._tip||!this._tip.classList.contains("tooltipShowing")){var c=this;if(this._timeout)window.clearTimeout(this._timeout),this._timeout=null;this._timeout=window.setTimeout(function(){for(var a=!1,e=0;!a&&e<c._position.length;)a=c._positionTip(c._position[e]),
e++;a||c._positionTip(c._position[0],!0);c._tip.classList.add("tooltipShowing");c._afterShowing&&c._afterShowing()},this._showDelay)}},hide:function(c){if(this._timeout)window.clearTimeout(this._timeout),this._timeout=null;if(this._tip&&this._tip.classList.contains("tooltipShowing")){if(c===void 0)c=this._hideDelay;var a=this;this._timeout=window.setTimeout(function(){a._tip.classList.remove("tooltipShowing");a._afterHiding&&a._afterHiding()},c)}},destroy:function(){if(this._timeout)window.clearTimeout(this._timeout),
this._timeout=null;if(this._tip)document.body.removeChild(this._tip),this._tailBorder=this._tail=this._tipInner=this._tip=null}};h.prototype.constructor=h;return{Tooltip:h}});
define("orion/webui/popupdialog",["i18n!orion/widgets/nls/messages","require","orion/webui/littlelib","orion/webui/tooltip"],function(f,i,h,c){function a(){}a.prototype={_initialize:function(a,g,d,b,j){this._tooltip=new c.Tooltip({node:a,hideDelay:j||0,afterShowing:this._afterShowingFunction(g).bind(this),afterHiding:d,trigger:b?b:"click"});this.$parent=this._tooltip.contentContainer();this.$parent.role="dialog";a=document.createRange();a.selectNode(this.$parent);a=a.createContextualFragment(this.TEMPLATE);
this.messages&&h.processTextNodes(a,f);this.$parent.appendChild(a);var m=this._tooltip;this.$parent.addEventListener("keydown",function(b){b.keyCode===h.KEY.ESCAPE&&m.hide()},!1);this._bindElements(this.$parent);typeof this._bindToDom==="function"&&this._bindToDom(this.$parent)},_bindElements:function(a){for(var c=0;c<a.childNodes.length;c++){var d=a.childNodes[c];d.id&&(this["$"+d.id]=d);this._bindElements(d)}},_afterShowingFunction:function(a){return function(){a&&a.bind(this)();if(!this.customFocus){var c=
h.firstTabbable(this.$parent);c&&c.focus()}}},hide:function(){this._tooltip.hide()},show:function(){this._tooltip.show()}};a.prototype.constructor=a;return{PopupDialog:a}});
define("orion/uiUtils",["i18n!orion/nls/messages","orion/webui/littlelib"],function(f,i){function h(c){var a=window.navigator.platform.indexOf("Mac")!==-1;return a&&c.metaKey||!a&&c.ctrlKey}return{getUserKeyString:function(c){var a="",e=navigator.platform.indexOf("Mac")!==-1;c.mod1&&(a+=e?"Cmd+":"Ctrl+");c.mod2&&(a+="Shift+");c.mod3&&(a+="Alt+");c.mod4&&e&&(a+="Ctrl+");if(c.alphaKey)return a+c.alphaKey;for(var g in i.KEY)if(typeof(i.KEY[g]==="number")&&i.KEY[g]===c.keyCode)return a+g;var d;switch(c.keyCode){case 59:d=
c.mod2?":":";";break;case 61:d=c.mod2?"+":"=";break;case 188:d=c.mod2?"<":",";break;case 190:d=c.mod2?">":".";break;case 191:d=c.mod2?"?":"/";break;case 192:d=c.mod2?"~":"`";break;case 219:d=c.mod2?"{":"[";break;case 220:d=c.mod2?"|":"\\";break;case 221:d=c.mod2?"}":"]";break;case 222:d=c.mod2?'"':"'"}return d?a+d:c.keyCode>=112&&c.keyCode<=123?a+"F"+(c.keyCode-111):a+String.fromCharCode(c.keyCode)},getUserText:function(c,a,e,g,d,b,j,m,f){var h=!1,j=function(j){return function(m){if(!h){var p=i.node(c),
n=p.value;if(p)if(j&&m.keyCode===i.KEY.ESCAPE){if(e)a.style.display="inline";p.parentNode.removeChild(p);h=!0;b&&b()}else if(!(j&&m.keyCode!==i.KEY.ENTER)){if(n.length===0||!f&&n===g){if(e)a.style.display="inline"}else d(n);h=!0;p.parentNode&&p.parentNode.removeChild(p);b&&b()}}}},p=document.createElement("input");p.id=c;p.value=g||"";a.parentNode.insertBefore(p,a.nextSibling);p.classList.add("userEditBoxPrompt");if(e)a.style.display="none";p.addEventListener("keydown",j(!0),!1);p.addEventListener("blur",
j(!1),!1);window.setTimeout(function(){p.focus();if(g){var b=i.node(c),a=m?g.indexOf(m):-1;if(a>0)if(b.createTextRange)b=b.createTextRange(),b.collapse(!0),b.moveStart("character",0),b.moveEnd("character",a),b.select();else if(b.setSelectionRange)b.setSelectionRange(0,a);else{if(b.selectionStart!==void 0)b.selectionStart=0,b.selectionEnd=a}else b.select()}},0)},openInNewWindow:h,followLink:function(c,a){a&&h(a)?window.open(c):window.location=c},createButton:function(c,a){var e=document.createElement("span");
e.role="button";e.tabIndex=0;e.appendChild(document.createTextNode(c));e.className="commandButton commandMargins";e.addEventListener("click",function(c){a();i.stop(c)},!1);e.addEventListener("keydown",function(c){if(c.keyCode===i.KEY.ENTER||c.keyCode===i.KEY.SPACE)a(),i.stop(c)},!1);return e}}});
define("orion/webui/dropdown",["require","orion/webui/littlelib"],function(f,i){function h(c){this._init(c)}h.prototype={_init:function(c){this._dropdownNode=i.node(c.dropdown);if(!this._dropdownNode)throw"no dom node for dropdown found";this._triggerNode=i.$(".dropdownTrigger",this._dropdownNode.parentNode);if(!this._triggerNode)throw"no dom node for dropdown trigger found";this._populate=c.populate;var a=this;this._triggerNode.addEventListener("click",function(c){a.toggle()&&i.stop(c)},!1);this._triggerNode.tagName.toLowerCase()===
"span"&&this._triggerNode.addEventListener("keydown",function(c){if(c.keyCode===i.KEY.ENTER||c.keyCode===i.KEY.SPACE)a.toggle(),i.stop(c)},!1);this._dropdownNode.addEventListener("keydown",this._dropdownKeyDown.bind(this),!1)},toggle:function(){return this._triggerNode.classList.contains("dropdownTriggerOpen")?this.close():this.open()},open:function(){this._populate&&(this.empty(),this._populate(this._dropdownNode));var c=this.getItems();if(c.length>0){if(!this._hookedAutoDismiss)i.addAutoDismiss([this._triggerNode,
this._dropdownNode],this.close.bind(this)),this._hookedAutoDismiss=!0;this._positionDropdown();this._triggerNode.classList.add("dropdownTriggerOpen");this._dropdownNode.classList.add("dropdownMenuOpen");c[0].focus();return!0}return!1},_positionDropdown:function(){this._dropdownNode.style.left="";var c=i.bounds(this._dropdownNode),a=i.bounds(this._boundingNode(this._triggerNode));if(c.left+c.width>a.left+a.width)this._dropdownNode.style.right=0},_boundingNode:function(c){return c.style.right!==""||
c.style.position==="absolute"||!c.parentNode||!c.parentNode.style?c:this._boundingNode(c.parentNode)},close:function(c){this._triggerNode.classList.remove("dropdownTriggerOpen");this._dropdownNode.classList.remove("dropdownMenuOpen");c&&this._triggerNode.focus();return!0},getItems:function(){var c=[],a=this;i.$$array("li:not(.dropdownSeparator) > .dropdownMenuItem",this._dropdownNode,!0).forEach(function(e){e.parentNode.parentNode===a._dropdownNode&&c.push(e)});return c},empty:function(){var c=this;
i.$$array("li",this._dropdownNode).forEach(function(a){a.parentNode===c._dropdownNode&&a.parentNode.removeChild(a)})},_dropdownKeyDown:function(c){if(c.keyCode===i.KEY.UP||c.keyCode===i.KEY.DOWN||c.keyCode===i.KEY.RIGHT||c.keyCode===i.KEY.ENTER||c.keyCode===i.KEY.LEFT){var a=this.getItems(),e=document.activeElement;if(a.length&&a.length>0&&e){var g=a.indexOf(e);g>=0&&(c.keyCode===i.KEY.UP&&g>0?(g--,a[g].focus()):c.keyCode===i.KEY.DOWN&&g<a.length-1?(g++,a[g].focus()):c.keyCode===i.KEY.ENTER||c.keyCode===
i.KEY.RIGHT?e.classList.contains("dropdownTrigger")&&e.dropdown&&e.dropdown.open():c.keyCode===i.KEY.LEFT&&e.parentNode.parentNode.classList.contains("dropdownMenuOpen")&&this.close(!0),i.stop(c))}}else c.keyCode===i.KEY.ESCAPE&&(this.close(!0),i.stop(c))}};h.prototype.constructor=h;return{Dropdown:h}});
define("orion/commands","i18n!orion/nls/messages,require,orion/uiUtils,orion/PageUtil,orion/webui/littlelib,orion/webui/dropdown,orion/webui/tooltip,orion/explorers/navigationUtils".split(","),function(f,i,h,c,a,e,g,d){function b(b,a,d,c,e){this.commandService=b;this.handler=a;this.items=d;this.userData=c;this.command=e;if(e.parameters)this.parameters=e.parameters.makeCopy();this.id=e.id}function j(b){this._commandList={};this._contributionsByScopeId={};this._activeBindings={};this._urlBindings={};
this._init(b);this._parameterCollector=null}function m(b,a,d){a.classList.add("commandImage");var c;b.imageClass?(c=document.createElement("span"),a.appendChild(c),c.classList.add(b.spriteClass),c.classList.add(b.imageClass)):(c=new Image,c.alt=b.name,c.name=d,c.id=d,c.src=b.image,a.appendChild(c));return c}function k(b){this._init(b)}function l(b,d,c,e,g,j,m){this.keyCode=typeof b==="string"?b.toUpperCase().charCodeAt(0):b;this.mod1=d!==void 0&&d!==null?d:!1;this.mod2=c!==void 0&&c!==null?c:!1;this.mod3=
e!==void 0&&e!==null?e:!1;this.mod4=g!==void 0&&g!==null?g:!1;this.domScope=a.node(j);this.scopeName=m||(j?j.id:null)}function p(b,a){this.token=b;this.parameterName=a}function r(b,a,d,c,e){this.name=b;this.type=a;this.label=d;this.value=c;this.lines=e||1}function q(b,a,d){this._storeParameters(b);this._hasOptionalParameters=a&&a.hasOptionalParameters;this._options=a;this.optionsRequested=!1;this.getParameters=d;this.clientCollect=a&&a.clientCollect}var o=window.navigator.platform.indexOf("Mac")!==
-1;b.prototype={collectsParameters:function(){return this.commandService&&this.commandService.collectsParameters()},makeCopy:function(a){var d=new b(this.commandService,this.handler,this.items,this.userData,this.command);d.domNode=this.domNode;d.domParent=this.domParent;if(a)d.parameters=a.makeCopy();else if(this.parameters)d.parameters=this.parameters.makeCopy();return d}};b.prototype.constructor=b;j.prototype={_init:function(b){this._registry=b.serviceRegistry;this._serviceRegistration=this._registry.registerService("orion.page.command",
this);this._defaultSelectionService=b.selection;var a=this;window.document.addEventListener("keydown",function(b){b=b||window.event;if(function(b){if(o){if(b.metaKey&&!b.altKey)return!b.shiftKey&&!b.ctrlKey&&(b.keyCode===65||b.keyCode===67||b.keyCode===86||b.keyCode===88||b.keyCode===90)?!0:!1}else{if(b.ctrlKey&&!b.altKey)return!b.shiftKey&&(b.keyCode===65||b.keyCode===67||b.keyCode===86||b.keyCode===88||b.keyCode===90)?!0:!1;if(b.altKey&&!b.ctrlKey)return!1}if(b["char"])return b["char"].length>0;
else if(b.charCode||b.keyCode)switch(b=b.charCode||b.keyCode,b){case 8:case 9:case 13:case 46:return!0;default:return b>=32&&b<112||b>123}return!1}(b)){if(b.target.contentEditable==="true")return;var d=b.target.nodeName.toLowerCase();if(d==="input")switch(b.target.type.toLowerCase()){case "text":case "password":case "search":case "color":case "date":case "datetime":case "datetime-local":case "email":case "month":case "number":case "range":case "tel":case "time":case "url":case "week":return}else if(d===
"textarea")return}a._processKey(b)},!1)},_processKey:function(b){function a(b){window.document.all?b.keyCode=0:(b.preventDefault(),b.stopPropagation())}for(var d in this._activeBindings)if(this._activeBindings[d]&&this._activeBindings[d].keyBinding&&this._activeBindings[d].command&&this._activeBindings[d].keyBinding.match(b)){var c=this._activeBindings[d],e=c.invocation;if(e)if(c=c.command,c.hrefCallback){a(b);b=c.hrefCallback.call(e.handler||window,e);b.then?b.then(function(b){window.open(b)}):window.open(b);
break}else if(c.callback){a(b);var g=this;window.setTimeout(function(){g._invoke(e)},0);break}}},processURL:function(b){for(var a in this._urlBindings)if(this._urlBindings[a]&&this._urlBindings[a].urlBinding&&this._urlBindings[a].command){var d=this._urlBindings[a].urlBinding.match(b);if(d){var c=this._urlBindings[a],e=c.command,g=c.invocation;if(g&&g.parameters&&e.callback){g.parameters.setValue(d.parameterName,d.parameterValue);var j=this;window.setTimeout(function(){j._invoke(g)},0);break}}}},
findCommand:function(b){return this._commandList[b]},runCommand:function(a,d,c,e){d?(a=this._commandList[a])&&(a.visibleWhen?a.visibleWhen(d):1)&&a.callback&&this._invoke(new b(this,c,d,null,a),e):(d=this._urlBindings[a])&&d.command&&d.command.callback&&this._invoke(d.invocation,e)},getSelectionService:function(){return this._defaultSelectionService},setParameterCollector:function(b){this._parameterCollector=b},openParameterCollector:function(b,a,d){this._parameterCollector&&(this._parameterCollector.close(),
this._parameterCollector.open(b,a,d))},closeParameterCollector:function(){this._parameterCollector&&this._parameterCollector.close()},collectsParameters:function(){return this._parameterCollector},_invoke:function(b,a){return this._collectAndInvoke(b.makeCopy(a),!1)},_collectAndInvoke:function(b,a){if(b)if(this._parameterCollector&&b.parameters&&b.parameters.hasParameters()&&(a||b.parameters.shouldCollectParameters())){var d=!1;b.parameters.updateParameters(b);d=this._parameterCollector.collectParameters(b);
if(!d){var c=new g.Tooltip({node:b.domNode,trigger:"click",position:["below","right","above","left"]}),d=c.contentContainer();d.classList.add("parameterPopup");var e=window.document.activeElement,j=this._parameterCollector.getFillFunction(b,function(){e&&e.focus();c.destroy()})(d);c.show();window.setTimeout(function(){j.focus();j.select()},0);d=!0}d||b.command.callback.call(b.handler||window,b)}else b.command.callback.call(b.handler||window,b);else window.console.log("Client attempted to invoke command without an available (rendered) command invocation")},
collectParameters:function(b){this._collectAndInvoke(b,!0)},showKeyBindings:function(b){var a={},d,c,e,g;for(g in this._activeBindings)if((c=this._activeBindings[g])&&c.keyBinding&&c.command)c.keyBinding.scopeName?(a[c.keyBinding.scopeName]||(a[c.keyBinding.scopeName]=[]),a[c.keyBinding.scopeName].push(c)):(d=h.getUserKeyString(c.keyBinding),e=document.createElement("span"),e.role="listitem",e.appendChild(document.createTextNode(d+" = "+c.command.name)),e.appendChild(document.createElement("br")),
b.appendChild(e));for(var j in a)if(a[j].length&&a[j].length>0){d=document.createElement("h2");b.appendChild(d);d.appendChild(document.createTextNode(j));for(g=0;g<a[j].length;g++)c=a[j][g],d=h.getUserKeyString(c.keyBinding),e=document.createElement("span"),e.role="listitem",e.appendChild(document.createTextNode(d+" = "+c.command.name)),e.appendChild(document.createElement("br")),b.appendChild(e)}},addCommand:function(b){this._commandList[b.id]=b},addCommandGroup:function(b,a,d,c,e,g){this._contributionsByScopeId[b]||
(this._contributionsByScopeId[b]={});b=this._contributionsByScopeId[b];e&&(b=this._createEntryForPath(b,e));if(b[a]){if(c)b[a].title=c;if(d)b[a].position=d;b[a].emptyGroupMessage=g}else b[a]={title:c,position:d,emptyGroupMessage:g,children:{}},b.sortedContributions=null},_createEntryForPath:function(b,a){if(a)for(var d=a.split("/"),c=0;c<d.length;c++)if(d[c].length>1)b[d[c]]||(b[d[c]]={position:0,children:{}}),b=b[d[c]].children;return b},registerSelectionService:function(b,a){this._contributionsByScopeId[b]||
(this._contributionsByScopeId[b]={});this._contributionsByScopeId[b].localSelectionService=a},registerCommandContribution:function(b,a,d,c,e,g,j){this._contributionsByScopeId[b]||(this._contributionsByScopeId[b]={});b=this._contributionsByScopeId[b];c&&(b=this._createEntryForPath(b,c));b[a]={position:d};g&&(d=this._commandList[a])&&(this._activeBindings[a]={command:d,keyBinding:g,bindingOnly:e});j&&(d=this._commandList[a])&&(this._urlBindings[a]={command:d,urlBinding:j,bindingOnly:e});b.sortedContributions=
null},_checkForTrailingSeparator:function(b,d,c){var e;if(d==="tool"||d==="button")if((e=b.childNodes.length>0?b.childNodes[b.childNodes.length-1]:null)&&e.classList.contains("commandSeparator"))return c?(b.removeChild(e),!1):!0;if(d==="menu"&&(b=a.$$array("li > *",b),b.length>0&&b[b.length-1].classList.contains("dropdownSeparator")))if(e=b[b.length-1],c)e.parentNode.parentNode.removeChild(e.parentNode);else return!0;return!1},renderCommands:function(b,d,c,e,g,j,m){if(typeof b!=="string")throw"a scope id for rendering must be specified";
d=a.node(d);if(!d)throw"no parent";var f=this._contributionsByScopeId[b];if(!c&&f){var c=f.localSelectionService||this._defaultSelectionService,h=this;c&&c.getSelections(function(a){h.renderCommands(b,d,a,e,g,j)})}else f&&(this._render(this._contributionsByScopeId[b],d,c,e,g||"button",j,m),this._checkForTrailingSeparator(d,g,!0))},destroy:function(b){b=a.node(b);if(!b)throw"no parent";for(;b.hasChildNodes();){var d=b.firstChild;d.commandTooltip&&d.commandTooltip.destroy();d.emptyGroupTooltip&&d.emptyGroupTooltip.destroy();
this.destroy(d);b.removeChild(d)}},_render:function(a,c,e,j,m,f,h){var k=a.sortedContributions;if(!k){var k=[],l=!1,i;for(i in a)if(!a.hasOwnProperty||a.hasOwnProperty(i)){var p=a[i];if(p&&typeof p.position==="number")p.id=i,k.push(p),l=!0}if(l)k.sort(function(b,a){return b.position-a.position}),a.sortedContributions=k}for(a=0;a<k.length;a++){var q;if(k[a].children&&Object.getOwnPropertyNames(k[a].children).length>0){var p=k[a],l=k[a].children,o=this,r;if(m==="tool"||m==="button")if(p.title){r=this._createDropdownMenu(c,
p.title);h&&d.generateNavGrid(h,r.menuButton);var M=l,G=p;window.setTimeout(function(){o._render(M,r.menu,e,j,"menu",f,h);o._checkForTrailingSeparator(r.menu,"menu",!0);if(r.menu.childNodes.length===0)if(G.emptyGroupMessage){if(!r.menuButton.emptyGroupTooltip)r.menuButton.emptyGroupTooltip=new g.Tooltip({node:r.menuButton,text:G.emptyGroupMessage,trigger:"click",position:["below","right","above","left"]})}else h&&d.removeNavGrid(h,r.menuButton),r.menu.parentNode&&r.menu.parentNode.removeChild(r.menu),
r.destroyButton&&r.destroyButton.parentNode&&r.destroyButton.parentNode.removeChild(r.destroyButton);else r.menuButton.style.visibility="visible"},0)}else{var J;c.childNodes.length>0&&!this._checkForTrailingSeparator(c,m)&&(J=this.generateSeparatorImage(c));o._render(l,c,e,j,m,f,h);c.childNodes.length>0&&c.childNodes[c.childNodes.length-1]!==J&&(J=this.generateSeparatorImage(c))}else p.title?(i=document.createElement("li"),c.appendChild(i),p=this._createDropdownMenu(i,p.title,!0),o._render(l,p.menu,
e,j,"menu",f,h),p.menu.childNodes.length===0&&c.removeChild(i)):(c.childNodes.length>0&&this._generateMenuSeparator(c),o._render(l,c,e,j,m,f,h),this._generateMenuSeparator(c))}else{i=(l=this._commandList[k[a].id])?!0:!1;var B=null,B=null;if(l){q=new b(this,j,e,f,l);q.domParent=c;p=i&&(l.visibleWhen?l.visibleWhen(e):!0);if(this._activeBindings[l.id]&&this._activeBindings[l.id].keyBinding)B=this._activeBindings[l.id],B.invocation=p?q:null,B.bindingOnly&&(i=!1);if(this._urlBindings[l.id]&&this._urlBindings[l.id].urlBinding)B=
this._urlBindings[l.id],B.invocation=p?q:null,B.bindingOnly&&(i=!1);i=i&&p}if(i)if(l.choiceCallback){m==="tool"||m==="button"?(i=c,p=!1,c.nodeName.toLowerCase()==="ul"&&(i=document.createElement("li"),c.appendChild(i))):(i=c,p=!0);var O=this;this._createDropdownMenu(i,l.name,p,function(b){this.populateChoicesMenu(b,e,j,f,O)}.bind(l))}else m==="tool"?(i="tool"+l.id+a,l._addTool(c,i,q,h)):m==="button"?(i="button"+l.id+a,l._addButton(c,i,q,h)):m==="menu"&&l._addMenuItem(c,q,h)}}},_createDropdownMenu:function(b,
d,c,g){var b=a.node(b),j,m=document.createElement("span");m.classList.add("dropdownTrigger");c?(m.classList.add("dropdownMenuItem"),j="dropdownSubMenu",c="dropdownArrowRight",m.tabIndex=0,m.role="menuitem"):(m.classList.add("commandButton"),c="dropdownArrowDown",m.tabIndex=0,m.role="button");d=document.createTextNode(d);m.appendChild(d);d=document.createElement("span");d.classList.add(c);m.appendChild(d);c=b;b.nodeName.toLowerCase()==="ul"?(c=document.createElement("li"),b.appendChild(c),b=c):(m.classList.add("commandMargins"),
b=m);c.appendChild(m);j&&c.classList.add(j);j=document.createElement("ul");c.appendChild(j);j.classList.add("dropdownMenu");m.dropdown=new e.Dropdown({dropdown:j,populate:g});j.dropdown=m.dropdown;return{menuButton:m,menu:j,dropdown:m.dropdown,destroyButton:b}},_generateCheckedMenuItem:function(b,a,d,c){var e=document.createElement("li");b.appendChild(e);b=document.createElement("label");b.classList.add("dropdownMenuItem");var g=document.createElement("input");g.type="checkbox";g.role="menuitem";
g.checked=d;g.classList.add("checkedMenuItem");b.appendChild(g);a=document.createTextNode(a);b.appendChild(a);e.appendChild(b);g.addEventListener("change",c,!1)},_generateMenuSeparator:function(b){if(!this._checkForTrailingSeparator(b,"menu")){var a=document.createElement("li");a.classList.add("dropdownSeparator");var d=document.createElement("span");d.classList.add("dropdownSeparator");a.appendChild(d);b.appendChild(a)}},generateSeparatorImage:function(b){var a;a=b.nodeName.toLowerCase()==="ul"?
document.createElement("li"):document.createElement("span");b.appendChild(a);a.classList.add("core-sprite-sep");a.classList.add("imageSprite");a.classList.add("commandSeparator");return a}};j.prototype.constructor=j;k.prototype={_init:function(b){this.id=b.id;this.name=b.name;this.tooltip=b.tooltip||b.name;this.callback=b.callback;this.hrefCallback=b.hrefCallback;this.choiceCallback=b.choiceCallback;this.image=b.image||i.toUrl("images/none.png");this.imageClass=b.imageClass;this.spriteClass=b.spriteClass||
"commandSprite";this.visibleWhen=b.visibleWhen;this.parameters=b.parameters},_addTool:function(b,a,c,e){c.handler=c.handler||this;var j;if(this.hrefCallback){if(j=this._makeLink(b,c,"commandLink"),!j)return}else j=document.createElement("span"),j.tabIndex=e?-1:0,j.role="button",this.hasImage()?(m(this,j,a),this.name&&j.setAttribute("aria-label",this.name)):(a=window.document.createTextNode(this.name),j.appendChild(a),j.classList.add("commandMissingImageButton"),j.classList.add("commandButton")),this._hookCallback(j,
c);c.domNode=j;c.domParent=b;if(this.tooltip)j.commandTooltip=new g.Tooltip({node:j,text:this.tooltip,position:["above","below","right","left"]});b.nodeName.toLowerCase()==="ul"?(a=document.createElement("li"),b.appendChild(a),b=a):j.classList.add("commandMargins");b.appendChild(j);d.generateNavGrid(e,c.domNode)},_addButton:function(b,a,c,e){c.handler=c.handler||this;var j;if(this.hrefCallback)j=this._makeLink(b,c,"commandLink");else if(!this.name&&this.hasImage()){if(j=document.createElement("span"),
j.tabIndex=0,j.role="button",m(this,j,a),this.tooltip&&j.setAttribute("aria-label",this.tooltip),this._hookCallback(j,c),this.tooltip)j.commandTooltip=new g.Tooltip({node:j,text:this.tooltip,position:["above","below","right","left"]})}else j=this._makeButton(b,c,"commandButton"),this._hookCallback(j,c);c.domParent=b;b.nodeName.toLowerCase()==="ul"?(a=document.createElement("li"),b.appendChild(a),b=a):j.classList.add("commandMargins");b.appendChild(j);d.generateNavGrid(e,c.domNode)},_addMenuItem:function(b,
a,c){a.domParent=b;var e,j=b.dropdown;this.hrefCallback?e=this._makeLink(b,a,"dropdownMenuItem",["right","left","above","below"]):(e=this._makeButton(b,a,"dropdownMenuItem",["right","left","above","below"]),this.callback&&this._hookCallback(e,a,function(){j.close(!0)}));e.role="menuitem";d.generateNavGrid(c,a.domNode);b.nodeName.toLowerCase()==="ul"?(a=document.createElement("li"),b.appendChild(a),b=a):e.classList.add("commandMargins");b.appendChild(e)},_makeButton:function(b,a,d,c){b=document.createElement("span");
b.role="button";b.tabIndex=0;b.id=this.name;var e=document.createTextNode(this.name);b.appendChild(e);d&&b.classList.add(d);if(this.tooltip)b.commandTooltip=new g.Tooltip({node:b,text:this.tooltip,position:c||["above","below","right","left"]});return a.domNode=b},_makeLink:function(b,a,d,c){var e=document.createElement("a");e.id=this.name;d&&e.classList.add(d);e.appendChild(document.createTextNode(this.name));if(this.hrefCallback)b=this.hrefCallback.call(a.handler,a),b.then?b.then(function(b){e.href=
b}):e.href=b?b:"#";if(this.tooltip)e.commandTooltip=new g.Tooltip({node:e,text:this.tooltip,position:c||["above","below","right","left"]});return a.domNode=e},_hookCallback:function(b,d,c,e){b.addEventListener("click",function(b){c&&c();d.commandService._invoke(d);e&&e();a.stop(b)},!1);b.addEventListener("keydown",function(b){if(b.keyCode===a.KEY.ENTER||b.keyCode===a.KEY.SPACE)c&&c(),d.commandService._invoke(d),e&&e(),a.stop(b)},!1)},populateChoicesMenu:function(b,d,c,e,j){c=this.getChoices(d,c,e);
for(e=0;e<c.length;e++){var g=c[e];if(g.name){var m=document.createElement("li");b.appendChild(m);var f=document.createElement("span");f.tabIndex=0;f.role="menuitem";f.classList.add("dropdownMenuItem");var h=document.createTextNode(g.name);f.appendChild(h);m.appendChild(f);f.choice=g;f.addEventListener("click",function(b){b.target.choice&&b.target.choice.callback.call(b.target.choice,d)},!1);f.addEventListener("keydown",function(b){(b.keyCode===a.KEY.ENTER||b.keyCode===a.KEY.SPACE)&&b.target.choice&&
b.target.choice.callback.call(b.target.choice,d)},!1)}else j._generateMenuSeparator(b)}},getChoices:function(b,a,d){return this.choiceCallback?this.choiceCallback.call(a,b,d):null},makeChoiceCallback:function(b,a){return function(d){b.callback&&b.callback.call(b,a,d)}},hasImage:function(){return this.imageClass||this.image!==i.toUrl("images/none.png")}};k.prototype.constructor=k;l.prototype={match:function(b){if(this.keyCode===b.keyCode){if(this.mod1!==(o?b.metaKey:b.ctrlKey))return!1;if(this.mod2!==
b.shiftKey)return!1;if(this.mod3!==b.altKey)return!1;if(o&&this.mod4!==b.ctrlKey)return!1;if(!this.domScope)return!0;for(b=b.target;b;){if(b===window.document)break;if(b===this.domScope)return!0;b=b.parentNode}}return!1},equals:function(b){return!b?!1:this.keyCode!==b.keyCode?!1:this.mod1!==b.mod1?!1:this.mod2!==b.mod2?!1:this.mod3!==b.mod3?!1:this.mod4!==b.mod4?!1:this.domScope!==b.domScope?!1:!0}};l.prototype.constructor=l;p.prototype={match:function(b){b=c.matchResourceParameters(b);return typeof b[this.token]!==
"undefined"?(this.parameterValue=b[this.token],this):null}};p.prototype.constructor=p;r.prototype={optionsRequested:function(){return this.optionsRequested}};r.prototype.constructor=r;q.prototype={_storeParameters:function(b){this.parameterTable=null;if(b){this.parameterTable={};for(var a=0;a<b.length;a++)this.parameterTable[b[a].name]=b[a]}},updateParameters:function(b){typeof this.getParameters==="function"&&this._storeParameters(this.getParameters(b))},hasParameters:function(){return this.parameterTable!==
null},shouldCollectParameters:function(){return!this.clientCollect&&this.hasParameters()},parameterNamed:function(b){return this.parameterTable[b]},valueFor:function(b){return(b=this.parameterTable[b])?b.value:null},setValue:function(b,a){var d=this.parameterTable[b];if(d)d.value=a},forEach:function(b){for(var a in this.parameterTable)this.parameterTable[a].type&&this.parameterTable[a].name&&b(this.parameterTable[a])},makeCopy:function(){var b=[];this.forEach(function(a){a=new r(a.name,a.type,a.label,
a.value,a.lines);b.push(a)});var a=new q(b,this._options,this.getParameters);a.clientCollect=this.clientCollect;return a},hasOptionalParameters:function(){return this._hasOptionalParameters}};q.prototype.constructor=q;return{CommandService:j,CommandKeyBinding:l,Command:k,CommandInvocation:b,URLBinding:p,ParametersDescription:q,CommandParameter:r}});
define("orion/operationsCommands",["i18n!orion/operations/nls/messages","require","orion/webui/littlelib","orion/commands"],function(f,i,h,c){var a={};(function(){var e=!1;a.updateNavTools=function(a,d,b,c,m){var k=a.getService("orion.page.command"),l=h.node(b);if(l)k.destroy(l);else throw f["could not find toolbar "]+b;k.renderCommands(b,l,m,d,"button");if(c&&(b=h.node(c)))k.destroy(b),k.renderCommands(c,b,null,d,"button");e||(e=!0,a.getService("orion.page.selection").addEventListener("selectionChanged",
function(b){var e=h.node(c);if(e){var m=a.getService("orion.page.command");m.destroy(e);m.renderCommands(c,e,b.selections,d,"button")}}))};a.createOperationsCommands=function(a,d,b){function e(b){return!b.operation||!b.operation.type?!1:b.operation.type==="loadstart"||b.operation.type==="progress"}var m=new c.Command({name:f["Remove Completed"],tooltip:f["Remove all completed operations"],id:"eclipse.removeCompletedOperations",callback:function(){b.removeCompletedOperations().then(function(){d.loadOperations.bind(d)()})},
visibleWhen:function(){return!0}});a.addCommand(m);m=new c.Command({name:f.Remove,tooltip:f["Remove operations from the operations list."],imageClass:"core-sprite-delete",id:"eclipse.removeOperation",callback:function(a){for(var a=Array.isArray(a.items)?a.items:[a.items],c=0;c<a.length;c++){var e=a[c];b.removeOperation.bind(b)(e.Location).then(function(){d.loadOperations.bind(d)()},function(){d.loadOperations.bind(d)()})}},visibleWhen:function(b){if(!Array.isArray(b)||b.length===0)return!e(b);for(var a in b)if(e(b[a]))return!1;
return!0}});a.addCommand(m);m=new c.Command({name:f.Cancel,tooltip:f["Cancel operations from the operations list."],imageClass:"core-sprite-stop",id:"eclipse.cancelOperation",callback:function(b){for(var b=Array.isArray(b.items)?b.items:[b.items],a=0;a<b.length;a++){var d=b[a];d.deferred&&d.deferred.cancel()}},visibleWhen:function(b){if(!Array.isArray(b)||b.length===0)return e(b)&&(b.operation&&b.operation.cancelable?!0:!1);for(var a in b)if(!e(b[a])||!b[a].operation||!b[a].operation.cancelable)return!1;
return!0}});a.addCommand(m)}})();return a});
define("orion/webui/dialogs/OperationsDialog",["i18n!orion/operations/nls/messages","require","orion/webui/littlelib","orion/webui/popupdialog","orion/operationsCommands"],function(f,i,h,c,a){function e(a){this._options=a}e.prototype=new c.PopupDialog;e.prototype.TEMPLATE='<table style="width: 360px;"><tr><td><h2>Recent operations</h2></td><td style="text-align: right;"><a id="allOperationsLink">All Operations</a></td></tr></table><span id="operationsExist"><span class="secondaryColumn" id="myOperationsListEmpty">No operations running on this page.</span><table id="myOperationsList" style="display: none;"></table></span><span class="secondaryColumn" id="operationsDontExist">No operations running.</span>';e.prototype._init=
function(c){this._myOperations=[];this._operationsDeferreds=[];this._commandService=c.serviceRegistry.getService("orion.page.command");a.createOperationsCommands(this._commandService);this._commandService.registerCommandContribution("operationsDialogItems","eclipse.cancelOperation",1);this._initialize(c.triggerNode)};e.prototype._bindToDom=function(){this.$allOperationsLink.href=i.toUrl("operations/list.html");this._setOperationsVisibility()};e.prototype.setOperations=function(a,d){this._myOperations||
this._init(this._options);this._myOperations=[];this._operationsDeferreds=[];if(a)for(var b in a)this._myOperations.push(a[b]),this._operationsDeferreds.push(d[b]);this._renderOperations()};e.prototype.parseProgressResult=function(a){if(!a)return{};a=a.responseText||a;try{a=JSON.parse(a)}catch(d){}var b={Message:a.Message||a,Severity:a.Severity};if(a.DetailedMessage&&a.DetailedMessage!==b.Message)b.DetailedMessage=a.DetailedMessage;return b};e.prototype._renderOperations=function(){this._renderOperationsTable(this.$myOperationsList,
this._myOperations,this._operationsDeferreds)};e.prototype._renderOperationsTable=function(a,d,b){h.empty(a);for(var c=0;c<d.length;c++){var e=d[c],k=document.createElement("tr"),l=document.createElement("td");l.style.paddingLeft="5px;";l.style.paddingRight="5px;";l.textContent=e.Name;k.appendChild(l);var i=document.createElement("div");l.appendChild(i);l=document.createElement("span");i.appendChild(l);l.classList.add("imageSprite");var r=document.createElement("span");r.classList.add("primaryColumn");
i.appendChild(r);r.appendChild(document.createTextNode(e.Name));switch(e.type){case "Warning":l.classList.add("core-sprite-warning");l.setAttribute("aria-label",f["Operation resulted in a warning."]);break;case "error":l.classList.add("core-sprite-error");l.setAttribute("aria-label",f["Operation resulted in an error."]);break;case "loadstart":case "progress":l.classList.add("core-sprite-start");l.setAttribute("aria-label",f["Operation is running."]);break;case "abort":l.classList.add("core-sprite-stop");
l.setAttribute("aria-label",f["Operation is canceled."]);break;case "load":case "loadend":l.classList.add("core-sprite-ok"),l.setAttribute("aria-label","Operation ok.")}if(e.error)l=e.error.Message||e.error,e.error.DetailedMessage&&e.error.DetailedMessage!==""&&(l+=": "+e.error.DetailedMessage),i.appendChild(document.createElement("br")),r=document.createElement("span"),r.classList.add("secondaryColumn"),r.style.marginLeft="18px;",i.appendChild(r),r.textContent=l;l=document.createElement("span");
i.appendChild(l);this._commandService.renderCommands("operationsDialogItems",i,{operation:e,deferred:b[c]},this,"tool");a.appendChild(k)}this._setOperationsVisibility()};e.prototype._setOperationsVisibility=function(){this.$myOperationsList.style.display=this._myOperations.length>0?"":"none";this.$myOperationsListEmpty.style.display=this._myOperations.length>0?"none":"";this.$operationsDontExist.style.display=this._myOperations.length>0?"none":"";this.$operationsExist.style.display=this._myOperations.length>
0?"":"none"};e.prototype.constructor=e;return{OperationsDialog:e}});
define("orion/progress",["i18n!orion/nls/messages","require","orion/Deferred","orion/webui/littlelib","orion/webui/dialogs/OperationsDialog"],function(f,i,h,c,a){function e(d,b){if(!this._progressPane){this._progressPane=c.node(d);this._operationsDialog=new a.OperationsDialog({triggerNode:this._progressPane,serviceRegistry:b});var e=this;this._progressPane.addEventListener("keydown",function(b){(b.charOrCode===" "||b.keyCode===c.KEY.ENTER)&&e._operationsDialog.show()})}}function g(a,b,c){this._serviceRegistry=
a;this._serviceRegistration=a.registerService("orion.page.progress",this);this._operationsClient=b;this._operations={};this._operationDeferrds={};this._operationsIndex=0;this._lastIconClass=this._lastOperation=null;this._progressMonitorClass=c}e.prototype={_switchIconTo:function(a){this._lastIconClass&&this._progressPane.classList.remove(this._lastIconClass);this._lastIconClass=a;this._progressPane.classList.add(this._lastIconClass)},generateOperationsInfo:function(a,b){var c={},e;for(e in a)a[e].progressMonitor||
(c[e]=a[e]);if(this._isEmpty(c))this._switchIconTo("progressPane_empty"),this._progressPane.title=f.Operations,this._progressPane.alt=f.Operations,this._progressPane.hasAttribute("aria-valuetext")&&this._progressPane.removeAttribute("aria-valuetext");else{var g="";for(e in c){var h=c[e];if(h.type&&(h.type==="loadstart"||h.type==="progress")){g="running";break}}switch(g){case "running":this._progressPane.title=f["Operations running"];this._progressPane.alt=f["Operations running"];this._progressPane.setAttribute("aria-valuetext",
f["Operations running"]);this._switchIconTo("progressPane_running");break;case "warning":this._progressPane.title=f["Some operations finished with warning"];this._progressPane.alt=f["Some operations finished with warning"];this._progressPane.setAttribute("aria-valuetext",f["Some operations finished with warning"]);this._switchIconTo("progressPane_warning");break;case "error":this._progressPane.title=f["Some operations finished with error"];this._progressPane.alt=f["Some operations finished with error"];
this._progressPane.setAttribute("aria-valuetext",f["Some operations finished with error"]);this._switchIconTo("progressPane_error");break;default:this._progressPane.title=f.Operations,this._progressPane.alt=f.Operations,this._progressPane.hasAttribute("aria-valuetext")&&this._progressPane.removeAttribute("aria-valuetext"),this._switchIconTo("progressPane_operations")}}this._operationsDialog.setOperations(c,b)},_isEmpty:function(a){for(var b in a)return!1;return!0}};e.prototype.constructon=e;g.prototype=
{init:function(a){if(!this._progressMonitorClass)this._progressMonitorTool=new e(a,this._serviceRegistry)},progress:function(a,b,c){var e=this,g=this._operationsIndex++;!c&&this._progressMonitorClass&&(c=new this._progressMonitorClass,c.begin(b));a.then(function(){if(e._operations[g]){var f=e._operations[g];if(b)f.Name=b;e._lastOperation=f;f.type="loadend";if(c)f.progressMonitor=c;e.writeOperation.bind(e)(g,f,a);f.Location||e._removeOperationFromTheList.bind(e)(g)}},function(f){if(e._operations[g]){var h=
e._operations[g];if(b)h.Name=b;if(c)h.progressMonitor=c;e._lastOperation=h;h.type=f.canceled?"abort":"error";h.error=f;e.writeOperation.bind(e)(g,h,a);h.Location||e._removeOperationFromTheList.bind(e)(g)}},function(f){if(b)f.Name=b;if(c)f.progressMonitor=c;e.writeOperation.bind(e)(g,f,a)});return a},removeOperation:function(a){for(var b in this._operations)if(this._operations[b].Location&&this._operations[b].Location===a){this._removeOperationFromTheList(b);break}this._operationsClient.removeOperation.bind(this._operationsClient)(a)},
_removeOperationFromTheList:function(a){var b=this._operations[a].progressMonitor;delete this._operations[a];delete this._operationDeferrds[a];b?b.done():this._progressMonitorTool.generateOperationsInfo(this._operations,this._operationDeferrds)},removeCompletedOperations:function(){for(var a in this._operations){var b=this._operations[a];if(b.type&&b.type!=="loadstart"&&b.type!=="progress")(b=this._operations[a].progressMonitor)&&b.done(),delete this._operations[a],delete this._operationDeferrds[a]}this._progressMonitorTool.generateOperationsInfo(operations,
this._operationDeferrds)},setProgressResult:function(a){this._serviceRegistry.getService("orion.page.message").setProgressResult(a)},showWhile:function(a,b){b&&this._serviceRegistry.getService("orion.page.message").setProgressMessage(b);var c=this;a.then(function(){c._serviceRegistry.getService("orion.page.message").setProgressMessage("")},function(b){c.setProgressResult.bind(c)(b);return b});return this.progress(a,b)},writeOperation:function(a,b,c){this._operations[a]=b;this._operationDeferrds[a]=
c;b.Location&&serviceRegistry.getService("orion.core.preference").getPreferences("/operations").then(function(a){a.put(b.Location,{Name:b.Name,expires:b.expires})});b.progressMonitor?b.progressMonitor.progress(b.Name):this._progressMonitorTool.generateOperationsInfo(this._operations,this._operationDeferrds)}};g.prototype.constructor=g;return{ProgressService:g}});
define("orion/searchUtils","i18n!orion/nls/messages,require,orion/editor/regex,orion/commands,orion/PageUtil,orion/URITemplate".split(","),function(f,i,h,c,a,e){function g(b,a,d){var c="";d&&(c="^");if(c=h.parse("/"+c+b.searchStr+"/"))d=c.pattern,c=c.flags,c.indexOf("i")===-1&&!a.caseSensitive&&(c+="i"),b.regExp={pattern:d,flags:c},b.wildCard=!0}var d=d||{};d.searchUtils=d.searchUtils||{};d.searchUtils.ALL_FILE_TYPE="*.*";d.searchUtils.doSearch=function(b,a,c,e){if(b){var g=!0;c==="*"&&(c="");c===
""&&(g=e&&e.type!==d.searchUtils.ALL_FILE_TYPE);if(g){c!==""&&d.searchUtils.addRecentSearch(a,c,e?e.regEx:!1);var b=b.createSearchParams(c,!1,!1,e),h=d.searchUtils.generateSearchHref(b);d.searchUtils.getOpenSearchPref(a,function(b){b?window.open(h):window.location=h})}}else window.alert(f["Can't search: no search service is available"])};d.searchUtils.generateSearchHelper=function(b,a){var c=b.keyword,e=c,f={};b.fileType&&b.fileType!==d.searchUtils.ALL_FILE_TYPE&&c===""&&(e="*."+b.fileType);if(b.regEx)f.searchStr=
c,g(f,b,a);else{var h=c.indexOf("*")>-1,i=c.indexOf("?")>-1;h&&(c=c.split("*").join(".*"));i&&(c=c.split("?").join("."));!h&&!i&&!b.nameSearch?(f.searchStr=b.caseSensitive?c.split("\\").join(""):c.split("\\").join("").toLowerCase(),f.wildCard=!1):(f.searchStr=b.caseSensitive?c:c.toLowerCase(),g(f,b,a),f.wildCard=!0)}f.searchStrLength=f.searchStr.length;return{params:b,inFileQuery:f,displayedSearchTerm:e}};d.searchUtils.convertSearchParams=function(b){if(b.rows!==void 0)b.rows=parseInt(b.rows);if(b.start!==
void 0)b.start=parseInt(b.start);if(typeof b.regEx==="string")b.regEx=b.regEx.toLowerCase()==="true";if(typeof b.caseSensitive==="string")b.caseSensitive=b.caseSensitive.toLowerCase()==="true";if(typeof b.nameSearch==="string")b.nameSearch=b.nameSearch.toLowerCase()==="true"};d.searchUtils.copySearchParams=function(b,a){var d={},c;for(c in b)if(b[c]!==void 0&&b[c]!==null&&(a||c!=="replace"))d[c]=b[c];return d};d.searchUtils.generateSearchHref=function(b){var a=i.toUrl("search/search.html"),b=d.searchUtils.copySearchParams(b,
!0),c=b.resource;b.resource=void 0;return(new e(a+"#{,resource,params*}")).expand({resource:c,params:b})};d.searchUtils.generateFindURLBinding=function(b,a,d,c){b={find:a.searchStr,regEx:a.wildCard?!0:void 0,caseSensitive:b.caseSensitive?!0:void 0,replaceWith:typeof c==="string"?c:void 0,atLine:typeof d==="number"?d:void 0};return","+(new e("{,params*}")).expand({params:b})};d.searchUtils.convertFindURLBinding=function(b){if(typeof b.regEx==="string")b.regEx=b.regEx.toLowerCase()==="true";if(typeof b.caseSensitive===
"string")b.caseSensitive=b.caseSensitive.toLowerCase()==="true";if(typeof b.atLine==="string")b.atLine=parseInt(b.atLine)};d.searchUtils.replaceRegEx=function(b,a,d){return b.replace(RegExp(a.pattern,a.flags),d)};d.searchUtils.replaceStringLiteral=function(b,a,c){a=h.parse("/"+a+"/gim");return d.searchUtils.replaceRegEx(b,a,c)};d.searchUtils.searchOnelineLiteral=function(b,a,d){var c;c=0;for(var e=!1,g=[];;)if(c=a.indexOf(b.searchStr,c),c<0)break;else{g.push({startIndex:c,length:b.searchStrLength});
e=!0;if(d)break;c+=b.searchStrLength}return e?g:null};d.searchUtils.findRegExp=function(b,a,d,c){if(!a)return null;d=d||"";d+=(d.indexOf("g")===-1?"g":"")+(d.indexOf("m")===-1?"m":"");var e=null;return(e=RegExp(a,d).exec(b.substring(c)))&&{startIndex:e.index+c,length:e[0].length}};d.searchUtils.searchOnelineRegEx=function(b,a,c){for(var e=0,g=!1,f=[];;)if(e=d.searchUtils.findRegExp(a,b.regExp.pattern,b.regExp.flags,e)){f.push(e);g=!0;if(c)break;e=e.startIndex+e.length}else break;return g?f:null};
d.searchUtils.generateNewContents=function(b,a,c,e,g,f){if(e&&a){if(!b)c.contents=[];for(var h=0;h<a.length;h++){for(var i=a[h],o=!1,n=!1,u=[],s,t=0,v=0;v<e.children.length;v++)if(e.children[v].lineNumber-1===h){t=v;for(o=0;o<e.children[v].matches.length;o++)e.children[v+o].checked!==!1&&u.push(o);n=u.length>0;s=e.children[v].matches;o=!0;break}if(o){if(n){u=d.searchUtils.replaceCheckedMatches(i,g,s,u,f);i=u.replacedStr;for(o=0;o<e.children[t].matches.length;o++)e.children[t+o].newMatches=u.newMatches}else for(o=
0;o<e.children[t].matches.length;o++)e.children[t+o].newMatches=e.children[t+o].matches;b?c.contents[h]=i:c.contents.push(i)}else b||c.contents.push(i)}}};d.searchUtils.generateMatchContext=function(b,a,d){var c=[],e=b*2+1,g;a.length<=e?(g=0,b=a.length-1):(g=d-b,g<0?(g=0,b=g+e-1):(b=d+b,b>a.length-1&&(b=a.length-1,g=b-e+1)));for(e=g;e<=b;e++)c.push({context:a[e],current:e===d});return c};d.searchUtils.splitFile=function(b){for(var a=0,d=0,c=0,e=0,g=[];;){a!==-1&&a<=c&&(a=b.indexOf("\r",c));d!==-1&&
d<=c&&(d=b.indexOf("\n",c));if(d===-1&&a===-1){g.push(b.substring(e));break}var f=1;a!==-1&&d!==-1?a+1===d?(f=2,c=d+1):c=(a<d?a:d)+1:c=a!==-1?a+1:d+1;g.push(b.substring(e,c-f));e=c}return g};d.searchUtils.searchWithinFile=function(b,a,c,e,g,f){c=d.searchUtils.splitFile(c);if(g)a.contents=c;if(a){a.children=[];for(var h=e=0;h<c.length;h++){var i=c[h];if(i&&i.length>0){var o=f?i:i.toLowerCase();if(o=b.wildCard?d.searchUtils.searchOnelineRegEx(b,o):d.searchUtils.searchOnelineLiteral(b,o)){var n=h+1;
if(g)for(var u=0;u<o.length;u++){var s=u+1,s={parent:a,checked:a.checked,type:"detail",matches:o,lineNumber:n,matchNumber:s,name:i,location:a.location+"-"+n+"-"+s};a.children.push(s)}else s={parent:a,context:d.searchUtils.generateMatchContext(2,c,h),checked:a.checked,type:"detail",matches:o,lineNumber:n,name:i,location:a.location+"-"+n},a.children.push(s);e+=o.length}}}a.totalMatches=e}};d.searchUtils.replaceCheckedMatches=function(b,a,d,c,e){for(var g=0,f="",h=[],i=0;i<d.length;i++){g!==d[i].startIndex&&
(f+=b.substring(g,d[i].startIndex));if(d[i].length)e=d[i].length;for(var g=!1,n=0;n<c.length;n++)if(c[n]===i){g=!0;break}g?(h.push({startIndex:f.length,length:a.length}),f+=a):(h.push({startIndex:f.length,length:e}),f+=b.substring(d[i].startIndex,d[i].startIndex+e));g=d[i].startIndex+e}g<b.length&&(f+=b.substring(g));return{replacedStr:f,newMatches:h}};d.searchUtils.fullPathNameByMeta=function(b){var a=b.length,d="";if(a>0)for(a-=1;a>-1;a--)d=d+(d===""?"":"/")+b[a].Name;return d};d.searchUtils.path2FolderName=
function(b,a,d){return b.substring(0,b.length-a.length-(d?0:1))};d.searchUtils._storeRecentSearch=function(b,a){b.getService("orion.core.preference").getPreferences("/window/favorites").then(function(b){b.put("recentSearch",a)})};d.searchUtils.addRecentSearch=function(b,a,c){typeof a==="string"&&a&&b.getService("orion.core.preference").getPreferences("/window/favorites").then(function(e){var g,e=e.get("recentSearch");typeof e==="string"&&(e=JSON.parse(e));if(e){for(g in e)if(e[g].name===a)return;
e.length>=20&&e.splice(19,e.length-20+1)}else e=[];e.splice(0,0,{name:a,regEx:c});d.searchUtils._storeRecentSearch(b,e)})};d.searchUtils.getSearches=function(b,a,d){b.getService("orion.core.preference").getPreferences("/window/favorites").then(function(b){b=b.get(a);typeof b==="string"&&(b=JSON.parse(b));b&&d&&d(b)})};d.searchUtils.getMixedSearches=function(b,a,c,e){b.getService("orion.core.preference").getPreferences("/window/favorites").then(function(b){var g,f=b.get("recentSearch");typeof f===
"string"&&(f=JSON.parse(f));if(a)for(g in b=b.get("search"),typeof b==="string"&&(b=JSON.parse(b)),b)if(c){var h=d.searchUtils.parseQueryStr(b[g].query);f.some(function(b){return h.searchStrTitle===b.name})||f.push({name:h.searchStrTitle,label:b[g].name})}else f.push({name:null,label:b[g].name,value:b[g].query});f&&e&&e(f)})};d.searchUtils.getOpenSearchPref=function(b,a){b.getService("orion.core.preference").getPreferences("/cm/configurations").then(function(b){b=b.get("nav.config");a(b&&b["links.newtab"]!==
"undefined"?b["links.newtab"]?!0:!1:!1)})};d.searchUtils.setOpenSearchPref=function(b,a){b.getService("orion.core.preference").getPreferences("/window/favorites").then(function(b){b.put("openSearchPref",{openInNewTab:a})})};return d.searchUtils});
define("orion/crawler/searchCrawler","i18n!orion/crawler/nls/messages,require,orion/i18nUtil,orion/searchUtils,orion/contentTypes,orion/Deferred".split(","),function(f,i,h,c,a,e){function g(a,b,e,g){this.registry=a;this.fileClient=b;this.fileLocations=[];this.fileSkeleton=[];this._totalCounter=this._hitCounter=0;this._searchOnName=g&&g.searchOnName;this._buildSkeletonOnly=g&&g.buildSkeletonOnly;this._fetchChildrenCallBack=g&&g.fetchChildrenCallBack;this._searchParams=e;this.searchHelper=this._searchOnName||
this._buildSkeletonOnly?null:c.generateSearchHelper(e);this._location=g&&g.location;this._childrenLocation=g&&g.childrenLocation?g.childrenLocation:this._location}g.prototype.search=function(a){var b=this.registry.getService("orion.core.contenttypes");this._onSearchComplete=a;var c=this;this.registry.getService("orion.page.dialog").confirm(f["The search term on this location will not use indexed files."]+"\n"+f["It will take longer time. Do you want to proceed?"],function(a){a&&b.getContentTypes().then(function(b){c.contentTypesCache=
b;c._visitRecursively(c._childrenLocation).then(function(){c._sort(c.fileLocations);c._onSearchComplete({response:{numFound:c.fileLocations.length,docs:c.fileLocations}})})})})};g.prototype.searchName=function(a,b){if(a)this.searchHelper=c.generateSearchHelper(a,!0);if(b)this.onSearchNameComplete=b;var e=[];this._sort(this.fileSkeleton);if(this.fileSkeleton.length>0){for(var g=0;g<this.fileSkeleton.length;g++){var f=this.fileSkeleton[g].Name.toLowerCase();if(this.searchHelper.inFileQuery.wildCard?
c.searchOnelineRegEx(this.searchHelper.inFileQuery,f,!0):c.searchOnelineLiteral(this.searchHelper.inFileQuery,f,!0))if(e.push(this.fileSkeleton[g]),e.length>=this.searchHelper.params.rows)break}this.onSearchNameComplete({response:{numFound:e.length,docs:e}})}};g.prototype.buildSkeleton=function(a,b){this._buildingSkeleton=!0;var c=this.registry.getService("orion.core.contenttypes"),e=this;a();c.getContentTypes().then(function(a){e.contentTypesCache=a;e._visitRecursively(e._childrenLocation).then(function(){e._buildingSkeleton=
!1;b();e.searchHelper&&!e._buildSkeletonOnly&&e.searchName()})})};g.prototype._searchCompleted=function(){console.log("Search Completed.")};g.prototype._searchFiles=function(){var a=[],b;if(this.fileLocations.length>0){b=this;for(var c=0;c<b.fileLocations.length;c++)a.push(b._sniffSearch(b.fileLocations[c]))}return e.all(a)};g.prototype._sort=function(a){a.sort(function(b,a){var d=b.Name&&b.Name.toLowerCase(),c=a.Name&&a.Name.toLowerCase();return d<c?-1:d>c?1:0})};g.prototype._onFileType=function(a){return this.searchHelper.params.fileType?
this.searchHelper.params.fileType===c.ALL_FILE_TYPE?!0:a.extension.indexOf(this.searchHelper.params.fileType)>=0:!0};g.prototype._visitRecursively=function(d){var b=[],c=this;this._fetchChildrenCallBack&&this._fetchChildrenCallBack(d);var g=c.registry.getService("orion.page.progress");return(g?g.progress(c.fileClient.fetchChildren(d),"Crawling search for children of "+d):c.fileClient.fetchChildren(d)).then(function(d){for(var g=0;g<d.length;g++)if(d[g].Directory!==void 0&&d[g].Directory===!1)if(c._searchOnName)b.push(c._buildSingleSkeleton(d[g]));
else if(c._buildSkeletonOnly)b.push(c._buildSingleSkeleton(d[g]));else{var f=a.getFilenameContentType(d[g].Name,c.contentTypesCache);f&&(f["extends"]==="text/plain"||f.id==="text/plain")&&c._onFileType(f)&&b.push(c._sniffSearch(d[g]))}else d[g].Location&&b.push(c._visitRecursively(d[g].ChildrenLocation));return e.all(b)})};g.prototype._hitOnceWithinFile=function(a){a=this._searchParams.caseSensitive?a:a.toLowerCase();return this.searchHelper.inFileQuery.wildCard?c.searchOnelineRegEx(this.searchHelper.inFileQuery,
a,!0):c.searchOnelineLiteral(this.searchHelper.inFileQuery,a,!0)};g.prototype._reportSingleHit=function(a){a.LastModified=a.LocalTimeStamp;this.fileLocations.push(a);this._hitCounter++;this._sort(this.fileLocations);this._onSearchComplete({response:{numFound:this.fileLocations.length,docs:this.fileLocations}},!0)};g.prototype._sniffSearch=function(a){this._totalCounter++;var b=this;if(this.searchHelper.params.keyword==="")this._reportSingleHit(a),this.registry.getService("orion.page.message").setProgressResult({Message:h.formatMessage(f["${0} files found out of ${1}"],
this._hitCounter,this._totalCounter)});else return this.registry.getService("orion.page.progress").progress(b.fileClient.read(a.Location),"Reading file "+a.Location).then(function(c){b._hitOnceWithinFile(c)&&b._reportSingleHit(a);b.registry.getService("orion.page.message").setProgressResult({Message:h.formatMessage(f["${0} files found out of ${1}"],b._hitCounter,b._totalCounter)})},function(b){console.error("Error loading file content: "+b.message)})};g.prototype._buildSingleSkeleton=function(a){this._totalCounter++;
this.fileSkeleton.push(a);this.searchHelper&&!this._buildSkeletonOnly&&this._totalCounter%100===0&&this.searchName();a=new e;a.resolve(this._totalCounter);return a};g.prototype.constructor=g;return{SearchCrawler:g}});
define("orion/globalSearch/advSearchOptContainer",["i18n!orion/globalSearch/nls/messages","require","orion/searchUtils","orion/contentTypes","orion/i18nUtil"],function(f,i,h,c,a){function e(a,b,c,e){this._inputField=a;if(typeof this._inputField==="string")this._inputField=document.getElementById(this._inputField);(a=e?e.group:null)||(a=this._inputField.id?this._inputField.id:"default__dropDown__group");this._idPrefix=a+"__dropDown__";this.containerId=this._idPrefix+"UIContainer";this._dismissed=!0;
var f=this;this._optRenderer=new g(b,c,function(){f.dismiss();f._inputField.focus()});this._initUI()}function g(a,b,c){this._searcher=a;this._serviceRegistry=b;this._cancelCallBack=c}e.prototype._initUI=function(){this._optUIContainer=document.getElementById(this.containerId);if(!this._optUIContainer)this._optUIContainer=document.createElement("div"),this._optUIContainer.id=this.containerId,this._optUIContainer.style.display="none",this._optUIContainer.className="advSearchOptContainer",document.body.appendChild(this._optUIContainer),
this._optRenderer.render(this._optUIContainer)};e.prototype.dismiss=function(){this._dismissed=!0;this._optUIContainer.style.display="none"};e.prototype.show=function(a){for(var b=0,c=0,e=this._inputField;e;)b+=e.offsetLeft,c+=e.offsetTop,e=e.offsetParent;this._optUIContainer.style.display="block";this._optUIContainer.style.top=c+this._inputField.offsetHeight+2+"px";this._optUIContainer.style.left=b+"px";this._optUIContainer.style.width=this._inputField.offsetWidth+"px";this._optRenderer._searchBox.value=
a;this._optRenderer._searchBox.focus();this._dismissed=this._mouseDown=!1};e.prototype.toggle=function(){this._dismissed?this.show(this._inputField.value):this.dismiss()};e.prototype.constructor=e;g.prototype.getOptions=function(){return{searchStr:this._searchBox.value,caseSensitive:this._caseSensitiveCB.checked,regEx:this._regExCB.checked,type:this._fileTypes.options[this._fileTypes.selectedIndex].value}};g.prototype.render=function(a,b){this._parentDiv=a;if(typeof this._parentDiv==="string")this._parentDiv=
document.getElementById(this._parentDiv);var e=this._serviceRegistry.getService("orion.core.contenttypes");if(e){var g=this;e.getContentTypes().then(function(a){g.contentTypesCache=a;g._render(b)})}else e=new c.ContentTypeService(this._serviceRegistry),this.contentTypesCache=e.getContentTypes(),this._render(b)};g.prototype._render=function(a){a?this._renderHTML(a):this._renderRaw()};g.prototype._submitSearch=function(){var a=this.getOptions();h.doSearch(this._searcher,this._serviceRegistry,a.searchStr,
a)};g.prototype._initControls=function(){this._searchBox=document.getElementById("advSearchInput");this._fileTypes=document.getElementById("advSearchTypes");this._caseSensitiveCB=document.getElementById("advSearchCaseSensitive");this._regExCB=document.getElementById("advSearchRegEx");this._submitButton=document.getElementById("advSearchSubmit");for(var c=[{label:f["All types"],value:h.ALL_FILE_TYPE}],b=0;b<this.contentTypesCache.length;b++)if(this.contentTypesCache[b]["extends"]==="text/plain"||this.contentTypesCache[b].id===
"text/plain")for(var e=0;e<this.contentTypesCache[b].extension.length;e++)c.push({label:this.contentTypesCache[b].extension[e],value:this.contentTypesCache[b].extension[e]});for(b=0;b<c.length;b++){var e=document.createElement("option"),g=document.createTextNode(c[b].label);e.appendChild(g);this._fileTypes.appendChild(e);e.value=c[b].value}var k=this;this._searchBox.addEventListener("keydown",function(b){b=b.charCode||b.keyCode;b===13&&k._submitSearch();b===27&&k._cancelCallBack&&k._cancelCallBack()});
this._fileTypes.addEventListener("change",function(){var b=k._fileTypes.options[k._fileTypes.selectedIndex].value;k._searchBox.placeholder=b===h.ALL_FILE_TYPE?f["Type a search term"]:a.formatMessage(f["All ${0} files"],b)});this._submitButton.onclick=function(){k._submitSearch()}};g.prototype._initHTMLLabels=function(){document.getElementById("advSearchLabel").appendChild(document.createTextNode(f["Files that contain:"]));document.getElementById("advSearchInput").placeholder=f["Type a search term"];
document.getElementById("advSearchTypeLabel").appendChild(document.createTextNode(f["File type:"]));document.getElementById("advSearchCaseSensitiveLabel").appendChild(document.createTextNode(f["Case sensitive"]));document.getElementById("advSearchRegExLabel").appendChild(document.createTextNode(f["Regular expression"]));document.getElementById("advSearchSubmit").value=f.Search};g.prototype._renderHTML=function(a){var b=this,c=new XMLHttpRequest;c.open("GET",i.toUrl(a),!0);c.onreadystatechange=function(){if(this.readyState===
4&&this.status===200)b._parentDiv.innerHTML=this.responseText,b._initHTMLLabels(),b._initControls()};c.send()};g.prototype._htmlTemplate='<ul class="advSearchOptUL"><li class="advSearchOptLILabel"><label>'+f["Files that contain:"]+'</label></li><li class="advSearchOptLIControl"><input type="text" id="advSearchInput" placeholder="'+f["Type a search term"]+'"></input></li><li class="advSearchOptLIControl"><label>'+f["File type:"]+'</label><select id="advSearchTypes"></select></li><li class="advSearchOptLIControl"><label>'+
f["Case sensitive"]+'</label><input type="checkbox" id="advSearchCaseSensitive"></input></li><li class="advSearchOptLIControl"><label>'+f["Regular expression"]+'</label><input type="checkbox" id="advSearchRegEx"></input></li><li class="advSearchOptLIControl"><input type="button" class="advSearchOptButton" id="advSearchSubmit" value="'+f.Search+'"></input></li></ul>';g.prototype._renderRaw=function(){this._parentDiv.innerHTML=this._htmlTemplate;this._initControls()};g.prototype.constructor=g;return{advSearchOptContainer:e,
advSearchOptRenderer:g}});
define("orion/extensionCommands","require,orion/Deferred,orion/commands,orion/editor/regex,orion/contentTypes,orion/URITemplate,orion/i18nUtil,orion/URL-shim".split(","),function(f,i,h,c,a,e,g){var d={},b=(new URL(f.toUrl("."),window.location)).href.slice(0,-1);d._cloneItemWithoutChildren=function m(b){if(b===null||typeof b!=="object")return b;var a=b.constructor(),c;for(c in b)c!=="children"&&c!=="Children"&&(a[c]=m(b[c]));return a};d._createOpenWithCommands=function(b){function a(b,c){for(var d=
b.getServiceReferences("orion.navigate.openWith"),e=[],g=0;g<d.length;g++){var f=d[g];f.getProperty("editor")===c.id&&(f=f.getProperty("contentType"),f instanceof Array?e=e.concat(f):f!==null&&typeof f!=="undefined"&&e.push(f))}return e}for(var c=function(){for(var a=b.getServiceReferences("orion.edit.editor"),c=[],d=0;d<a.length;d++){var e=a[d],g=e.getProperty("id");c.push({id:g,name:e.getProperty("name"),nameKey:e.getProperty("nameKey"),nls:e.getProperty("nls"),uriTemplate:e.getProperty("orionTemplate")||
e.getProperty("uriTemplate")})}return c}(),d=function(b){for(b=b.getServiceReferences("orion.navigate.openWith.default");0<b.length;)return{editor:b[0].getProperty("editor")};return null}(b),e=[],g=0;g<c.length;g++){var f=c[g],h=d&&d.editor===f.id,i=a(b,f);i.length&&e.push({properties:{name:f.name||f.id,nameKey:f.nameKey,id:"eclipse.openWithCommand."+f.id,tooltip:f.name,tooltipKey:f.nameKey,contentType:i,uriTemplate:f.uriTemplate,nls:f.nls,forceSingleItem:!0,isEditor:h?"default":"editor"},service:{}})}return e};
d._makeValidator=function(c,d,g,f){function h(b,a,c,d){var e=c.match,g;if(a.indexOf("|")>=0)return g=a.substring(0,a.indexOf("|")),a=a.substring(a.indexOf("|")+1),h(b,g,c,d)?!0:h(b,a,c,d);else if(a.indexOf(":")>=0)return g=a.substring(0,a.indexOf(":")),a=a.substring(a.indexOf(":")+1),b[g]?h(b[g],a,c,d):!1;else{a:{g=!1;var f;if(b[a]){if(e)if(typeof e==="string"){if(!typeof(b[a]==="string")){c=!1;break a}if(c.variableName){if(e=RegExp(e).exec(b[a]))g=e[0],f=c.variableMatchPosition==="before"?b[a].substring(0,
e.index):c.variableMatchPosition==="after"?b[a].substring(e.index+g.length):c.variableMatchPosition==="only"?g:b[a],g=!0}else{c=RegExp(e).test(b[a]);break a}}else b[a]===e&&(f=b[a],g=!0);else f=b[a],g=!0;if(g&&c.variableName&&(d[c.variableName]=f,d.itemCached=b,c.replacements))for(b=0;b<c.replacements.length;b++)a=!1,c.replacements[b].pattern?d[c.variableName]=d[c.variableName].replace(RegExp(c.replacements[b].pattern),c.replacements[b].replacement||""):a=!0,a&&window.console.log("Invalid replacements specified in validation property.  "+
c.replacements[b]);c=g}else c=!1}return c}}return{info:c,validationFunction:function(b){typeof f==="function"&&(b=f.call(this,b));if(b){if(Array.isArray(b)){if((this.info.forceSingleItem||this.info.uriTemplate)&&b.length!==1)return!1;if(b.length<1)return!1}else b=[b];for(var d=0;d<b.length;d++){var e;a:{var k=b[d],i=g;if(this.info.validationProperties)for(e=0;e<this.info.validationProperties.length;e++){var t=this.info.validationProperties[e];if(t.source){if(!h(k,t.source,t,this)){e=!1;break a}}else{window.console.log("Invalid validationProperties in "+
c.id+".  No source property specified.");e=!1;break a}}if(this.info.contentType&&i){t=!1;if(k=a.getFilenameContentType(k.Name,i))for(e=0;e<this.info.contentType.length;e++)if(k.id===this.info.contentType[e]){t=!0;break}e=t}else e=!0}if(!e)return!1}return!0}return!1},generatesURI:function(){return!!this.info.uriTemplate},getURI:function(a){if(this.info.uriTemplate){var c={},d;for(d in a)a.hasOwnProperty(d)&&(c[d]=a[d]);if(this.info.validationProperties)for(d=0;d<this.info.validationProperties.length;d++){var g=
this.info.validationProperties[d];g.source&&g.variableName&&(this.itemCached===a&&this[g.variableName]||h(a,g.source,g,this),a[g.variableName]?window.console.log("Variable name "+g.variableName+" in the extension "+this.info.id+" conflicts with an existing property in the item metadata."):c[g.variableName]=this[g.variableName])}c.OrionHome=b;a=new e(this.info.uriTemplate);return window.decodeURIComponent(a.expand(c))}return null}}};d._createCommandOptions=function(b,a,c,e,f,h){function o(g,i){var n=
d._makeValidator(b,c,e,h);g.visibleWhen=n.validationFunction.bind(n);if(f)if(n.generatesURI.bind(n)())g.hrefCallback=function(b){b=Array.isArray(b.items)?b.items[0]:b.items;return n.getURI.bind(n)(b)};else{var o=b;g.callback=function(b){var e;if(o.forceSingleItem)b=Array.isArray(b.items)?b.items[0]:b.items,e=d._cloneItemWithoutChildren(b);else if(Array.isArray(b.items)){e=[];for(var f=0;f<b.items.length;f++)e.push(d._cloneItemWithoutChildren(b.items[f]))}else e=d._cloneItemWithoutChildren(b.items);
if(c)var h=c.getService("orion.page.progress");a.run?h?h.progress(a.run(e),"Running command: "+g.name):a.run(e):c&&(h?h.progress(c.getService(a).run(e),"Running command: "+g.name):c.getService(a).run(e))}}i.resolve(g)}var n=new i;b.nls?g.getMessageBundle(b.nls).then(function(a){o({name:b.nameKey?a[b.nameKey]:b.name,image:b.image,id:b.id||b.name,tooltip:b.tooltipKey?a[b.tooltipKey]:b.tooltip,isEditor:b.isEditor},n)}):o({name:b.name,image:b.image,id:b.id||b.name,tooltip:b.tooltip,isEditor:b.isEditor},
n);return n};d.getOpenWithCommands=function(b){var a=[],c;for(c in b._commandList){var d=b._commandList[c];d.isEditor&&a.push(d)}return a};return d});
define("orion/searchClient","i18n!orion/search/nls/messages,require,orion/webui/littlelib,orion/i18nUtil,orion/searchUtils,orion/crawler/searchCrawler".split(","),function(f,i,h,c,a,e){function g(a){this.registry=a.serviceRegistry;this._commandService=a.commandService;(this._fileService=a.fileService)||console.error("No file service on search client")}g.prototype={search:function(c,b,g){var f=function(b){for(var c=[],d=0;d<b.response.docs.length;d++){var e=b.response.docs[d];c.push({name:e.Name,path:e.Location,
folderName:a.path2FolderName(e.Path?e.Path:e.Location,e.Name),directory:e.Directory,lineNumber:e.LineNumber})}return c};if(this._crawler&&c.nameSearch)this._crawler.searchName(c,function(b){g(f(b),null)});else try{this.registry.getService("orion.page.progress").progress(this._fileService.search(c),"Searching "+c.keyword).then(function(b){var a=c.keyword,a=a.substring(a.indexOf("}")+1),a=a.substring(a.indexOf(":")+1);g(f(b),a)},function(b){g(null,null,b)})}catch(h){typeof h==="string"&&h.indexOf("search")>
-1&&this._crawler?this._crawler.searchName(c,function(b){g(f(b),null)}):typeof h==="string"&&h.indexOf("search")>-1&&!c.nameSearch?(new e.SearchCrawler(this.registry,this._fileService,c,{childrenLocation:this.getChildrenLocation()})).search(function(b){g(f(b),null)}):this.registry.getService("orion.page.message").setErrorMessage(h)}},getFileService:function(){return this._fileService},setCrawler:function(a){this._crawler=a},handleError:function(a,b){console.error(a);h.empty(b);b.appendChild(document.createTextNode(a));
return a},setLocationByMetaData:function(a,b){var e="",g=null;this._searchRootLocation=this._fileService.fileServiceRootURL(a.Location);b&&a&&a.Parents&&a.Parents.length>0?g=b.index==="last"?a.Parents[a.Parents.length-1]:a.Parents[0]:a&&a.Directory&&a.Location&&a.Parents&&(g=a);if(g)this.setLocationbyURL(g.Location),e=g.Name,this._childrenLocation=g.ChildrenLocation;else if(a)this.setLocationbyURL(this._searchRootLocation),e=this._fileService.fileServiceName(a.Location),this._childrenLocation=a.ChildrenLocation;
g=h.node("search");e||(e="");if(g&&g.placeholder){g.value="";var i=c.formatMessage(f["Search ${0}"],e);g.placeholder=i.length>30?i.substring(0,27)+"...":c.formatMessage(f["Search ${0}"],e)}if(g&&g.title)g.title=f["Type a keyword or wild card to search in "]+e},setLocationbyURL:function(a){this._searchLocation=a},setRootLocationbyURL:function(a){this._searchRootLocation=a},setChildrenLocationbyURL:function(a){this._childrenLocation=a},getSearchLocation:function(){return this._searchLocation?this._searchLocation:
this._fileService.fileServiceRootURL()},getSearchRootLocation:function(){return this._searchRootLocation?this._searchRootLocation:this._fileService.fileServiceRootURL()},getChildrenLocation:function(){return this._childrenLocation?this._childrenLocation:this._fileService.fileServiceRootURL()},createSearchParams:function(a,b,c,e){c=c?this.getSearchRootLocation():this.getSearchLocation();return b?{resource:c,sort:"NameLower asc",rows:100,start:0,nameSearch:!0,keyword:a}:{resource:c,sort:"Path asc",
rows:40,start:0,caseSensitive:e?e.caseSensitive:void 0,regEx:e?e.regEx:void 0,fileType:e?e.type:void 0,keyword:a}},defaultRenderer:{makeRenderFunction:function(a,b,e,g,k){function l(b){return!a?!0:(b=a.getFilenameContentType(b))&&(b["extends"]==="text/plain"||b.id==="text/plain")?!0:!1}return function(a,d,q){if(q)h.empty(b),a=document.createElement("div"),a.appendChild(document.createTextNode(f["Search failed."])),b.appendChild(a),typeof g==="function"&&g(b);else{var q=function(){function b(a,c){var d=
c.folderName?c.folderName:c.path,e=document.createElement("span");e.id=d.replace(/[^a-zA-Z0-9_\.:\-]/g,"");e.appendChild(document.createTextNode(" - "+d+" "));a.appendChild(e)}var a={};return function(c,d){var e=d.name;if(a.hasOwnProperty(e)){b(c,d);var g=a[e];typeof g==="function"&&(a[e]=null,g())}else a[e]=function(){b(c,d)}}}(),o=!1;h.empty(b);if(a&&a.length>0){var n=document.createElement("table");n.setAttribute("role","presentation");for(var u=0;u<a.length;u++){var s=a[u],t;if(!o&&(o=!0,e))t=
n.insertRow(0).insertCell(0),t.textContent=e;t=n.insertRow(-1).insertCell(0);t.colspan=2;k&&k(t);var v=document.createElement("a");v.appendChild(document.createTextNode(s.name));s.LineNumber&&v.appendChild(document.createTextNode(" (Line "+s.LineNumber+")"));var w=s.location;s.isExternalResource?w=s.path:(w=s.directory?i.toUrl("navigate/table.html")+"#"+s.path:l(s.name)?i.toUrl("edit/edit.html")+"#"+s.path:s.path,w==="#"&&(w=""));v.setAttribute("href",w);v.setAttribute("aria-describedby",(s.folderName?
s.folderName:s.path).replace(/[^a-zA-Z0-9_\.:\-]/g,""));v.style.verticalAlign="middle";t.appendChild(v);q(t,s)}b.appendChild(n);typeof g==="function"&&g(b)}!o&&d&&(a=c.formatMessage(f["No matches found for ${0}"],d),h.empty(b),b.appendChild(document.createTextNode(a)),typeof g==="function"&&g(b))}}}}};g.prototype.constructor=g;return{Searcher:g}});
define("orion/commonHTMLFragments",["require","orion/webui/littlelib","text!orion/banner/slideout.html"],function(f,i,h){return{slideoutHTMLFragment:function(c){var a=document.createElement("div");a.innerHTML=h;var e=i.$("#slideContainer",a);e.id=c+e.id;e=i.$("#pageCommandParameters",a);e.id=c+e.id;e=i.$("#pageCommandDismiss",a);e.id=c+e.id;return a.innerHTML}}});
define("orion/parameterCollectors",["i18n!orion/nls/messages","require","orion/webui/littlelib"],function(f,i,h){function c(a,c){this._activeContainer=null;this._getElementsFunction=a;this._toolbarLayoutFunction=c}c.prototype={close:function(){if(this._activeElements){this._activeElements.parameterArea&&h.empty(this._activeElements.parameterArea);this._activeElements.slideContainer&&this._activeElements.slideContainer.classList.remove("slideContainerActive");this._activeElements.dismissArea&&h.empty(this._activeElements.dismissArea);
this._activeElements.commandNode&&this._activeElements.commandNode.classList.remove("activeCommand");this._toolbarLayoutFunction(this._activeElements);if(this._activeElements.onClose)this._activeElements.onClose();if(this._oldFocusNode)this._oldFocusNode.focus(),this._oldFocusNode=null}this._activeElements=null},open:function(a,c,g){typeof a==="string"&&(a=h.node(a));if(this._activeElements&&this._activeElements.slideContainer&&this._activeElements.commandNode===a)return this._activeElements.focusNode&&
this._activeElements.focusNode.focus(),!0;this.close();this._activeElements=null;if((this._activeElements=this._getElementsFunction(a))&&this._activeElements.parameterArea&&this._activeElements.slideContainer){this._activeElements.onClose=g;var d=c(this._activeElements.parameterArea,this._activeElements.dismissArea);if(!d)return!1;this._activeElements.focusNode=d;a=h.$$array("#closebox",this._activeElements.dismissArea||this._activeElements.parameterArea);if(a.length===0){c=this._activeElements.dismissArea||
this._activeElements.parameterArea;a=document.createElement("span");a.id="closebox";a.role="button";a.tabIndex=0;a.classList.add("imageSprite");a.classList.add("core-sprite-close");a.classList.add("dismiss");a.title=f.Close;c.appendChild(a);var b=this;a.addEventListener("click",function(){b.close()},!1);a.addEventListener("keydown",function(a){(a.keyCode===h.KEY.ENTER||a.keyCode===h.KEY.SPACE)&&b.close()},!1)}this._activeElements.slideContainer.classList.add("slideContainerActive");this._toolbarLayoutFunction(this._activeElements);
if(d)this._oldFocusNode=window.document.activeElement,window.setTimeout(function(){d.focus();d.select()},0);this._activeElements.commandNode&&this._activeElements.commandNode.classList.add("activeCommand");return!0}return!1},_collectAndCall:function(a,c){h.$$array("input",c).forEach(function(c){c.type==="checkbox"?a.parameters.setValue(c.parameterName,c.checked):c.type!=="button"&&a.parameters.setValue(c.parameterName,c.value.trim())});h.$$array("textArea",c).forEach(function(c){a.parameters.setValue(c.parameterName,
c.value.trim())});a.command.callback&&a.command.callback.call(a.handler,a)},collectParameters:function(a){return a.parameters?(a.domNode&&a.domNode.classList.add("commandMarker"),this.open(a.domNode||a.domParent,this.getFillFunction(a))):!1},getFillFunction:function(a,c){var g=this;return function(d,b){var j=null,m=function(){c&&c();g.close()},i=function(b){b.keyCode===h.KEY.ENTER&&g._collectAndCall(a,d);if(b.keyCode===h.KEY.ESCAPE||b.keyCode===h.KEY.ENTER)m(),h.stop(b)};a.parameters.forEach(function(b){var a=
null;if(b.label)a=document.createElement("label"),a.classList.add("parameterInput"),a.setAttribute("for",b.name+"parameterCollector"),a.textContent=b.label,d.appendChild(a);var c=b.name+"parameterCollector",e=a||d;if(b.type==="text"&&typeof b.lines==="number"&&b.lines>1)a=document.createElement("textarea"),a.rows=b.lines,a.type="textarea",a.id=c,e.appendChild(a),i=function(b){b.keyCode===h.KEY.ESCAPE&&(m(),h.stop(b))};else if(b.type==="boolean"){if(a=document.createElement("input"),a.type="checkbox",
a.id=c,e.appendChild(a),b.value)a.checked=!0}else if(a=document.createElement("input"),a.type=b.type,a.id=c,e.appendChild(a),b.value)a.value=b.value;a.classList.add("parameterInput");a.classList.add("parameterInput"+a.type);a.setAttribute("speech","speech");a.setAttribute("x-webkit-speech","x-webkit-speech");a.parameterName=b.name;j||(j=a);a.addEventListener("keydown",i,!1)});var l=b;if(!l)l=document.createElement("span"),l.className="layoutRight parametersDismiss",d.appendChild(l);var p=function(b){b._collectAndCall(a,
d);m()},r=function(b,a){var c=document.createElement("span");c.role="button";c.tabIndex=0;a.appendChild(c);b&&c.appendChild(document.createTextNode(b));c.classList.add("dismiss");return c};if(a.parameters.hasOptionalParameters()){a.parameters.optionsRequested=!1;var q=r(f.More,l);q.addEventListener("click",function(){a.parameters.optionsRequested=!0;p(g)},!1);q.addEventListener("keydown",function(b){if(b.keyCode===h.KEY.ENTER||b.keyCode===h.KEY.SPACE)a.parameters.optionsRequested=!0,p(g)},!1)}q=r(f.Submit,
l);q.addEventListener("click",function(){p(g)},!1);q.addEventListener("keydown",function(b){(b.keyCode===h.KEY.ENTER||b.keyCode===h.KEY.SPACE)&&p(g)},!1);l=r(null,l);l.id="closebox";l.classList.add("imageSprite");l.classList.add("core-sprite-close");l.title=f.Close;l.addEventListener("click",function(){m()},!1);l.addEventListener("keydown",function(b){(b.keyCode===h.KEY.ENTER||b.keyCode===h.KEY.SPACE)&&m()},!1);return j}}};c.prototype.constructor=c;return{CommandParameterCollector:c}});
define("orion/breadcrumbs",["require","orion/webui/littlelib"],function(f,i){function h(c){this._init(c)}h.prototype={_init:function(c){var a=i.node(c.container);if(!a)throw"no parent container";this._container=a;a.classList.remove("currentLocation");this._id=c.id||"eclipse.breadcrumbs";this._resource=c.resource||null;this._rootSegmentName=c.rootSegmentName;this._workspaceRootSegmentName=c.workspaceRootSegmentName;this._makeHref=c.makeHref;this.path="";this.render()},getNavigatorWorkspaceRootSegment:function(){if(this._workspaceRootSegmentName){var c;
this._resource&&this._resource.Parents?(c=document.createElement("a"),this._makeHref?this._makeHref(c,""):c.href=f.toUrl("navigate/table.html")+"#"):c=document.createElement("span");i.empty(c);c.appendChild(document.createTextNode(this._workspaceRootSegmentName));return c}return null},render:function(){var c=this._container,a=i.node(this._id);a?i.empty(a):(a=document.createElement("span"),a.id=this._id,c.appendChild(a));var e;if(e=this.getNavigatorWorkspaceRootSegment())if(e.classList.add("breadcrumb"),
a.appendChild(e),this._resource&&this._resource.Parents)e=document.createElement("span"),e.appendChild(document.createTextNode(" / ")),this.path+="/",e.classList.add("breadcrumbSeparator"),a.appendChild(e);else{e.href="";e.classList.remove("breadcrumb");e.classList.add("currentLocation");return}c=this._rootSegmentName;if(this._resource){if(this._resource.Parents)for(var g=this._resource.Parents,d=g.length;--d>=0;)e=document.createElement("a"),e.classList.add("breadcrumb"),c?(e.appendChild(document.createTextNode(c)),
c=null):e.appendChild(document.createTextNode(g[d].Name)),this.path+=g[d].Name,this._makeHref?this._makeHref(e,g[d].Location):e.href=f.toUrl("navigate/table.html")+"#"+g[d].ChildrenLocation,a.appendChild(e),e=document.createElement("span"),e.appendChild(document.createTextNode(" / ")),this.path+="/",e.classList.add("breadcrumbSeparator"),a.appendChild(e);e=document.createElement("span");c?(e.appendChild(document.createTextNode(c)),c=null):e.appendChild(document.createTextNode(this._resource.Name));
e.classList.add("currentLocation");this.path+=this._resource.Name;a.appendChild(e)}a.childNodes.length===0&&(e=document.createElement("span"),e.appendChild(document.createTextNode(c||document.title)),e.classList.add("breadcrumb"),e.classList.add("currentLocation"),a.appendChild(e))}};h.prototype.constructor=h;return{BreadCrumbs:h}});
define("orion/webui/splitter",["require","orion/webui/littlelib"],function(f,i){function h(c){this._init(c)}h.prototype={_init:function(c){this._tracking=null;this._resizeListeners=[];this._animationDelay=501;this.$node=i.node(c.node);if(!this.$node)throw"no dom node for splitter found";this.$sideNode=i.node(c.sidePanel);if(!this.$sideNode)throw"no dom node for side panel found";this.$mainNode=i.node(c.mainPanel);if(!this.$mainNode)throw"no dom node for main panel found";this._vertical=c.vertical;
this._prefix="/orion/splitter/"+(this.$node.id||document.body.id||"");if(c.toggle)this._thumb=document.createElement("div"),this.$node.appendChild(this._thumb),this._thumb.classList.add("splitThumb"),this._thumb.classList.add("splitThumbLayout");this._initializeFromStoredSettings();this._closed?(this._closed=!1,this._thumbDown()):this._adjustToSplitPosition();this.$node.style.visibility="visible";this.$mainNode.style.display="block";this.$sideNode.style.display="block";this.$node.addEventListener("mousedown",
this._mouseDown.bind(this),!1);window.addEventListener("mouseup",this._mouseUp.bind(this),!1);window.addEventListener("resize",this._resize.bind(this),!1)},toggleSidePanel:function(){this._thumbDown()},openSidePanel:function(){this._closed||this._thumbDown()},addResizeListener:function(c){this._resizeListeners.push(c)},_initializeFromStoredSettings:function(){this._closed=localStorage.getItem(this._prefix+"/toggleState")==="closed";var c;if(this._vertical){if(c=localStorage.getItem(this._prefix+"/yPosition"))this._splitTop=
parseInt(c,10)}else if(c=localStorage.getItem(this._prefix+"/xPosition"))this._splitLeft=parseInt(c,10)},_adjustToSplitPosition:function(c){var a=i.bounds(this.$node),e=i.bounds(this.$node.parentNode);if(this._vertical){this._splitHeight=a.height;if(c||!this._splitTop)this._splitTop=a.top,localStorage.setItem(this._prefix+"/yPosition",this._splitTop);c=this._splitTop;this.$node.parentNode.style.position==="relative"&&(c=this._splitTop-e.top);this.$sideNode.style.height=c+"px";this.$sideNode.style.bottom=
c-1+"px";this.$sideNode.style.display="block";this.$node.style.top=c+"px"}else{this._splitWidth=a.width;if(c||!this._splitLeft)this._splitLeft=a.left,localStorage.setItem(this._prefix+"/xPosition",this._splitLeft);c=this._splitLeft;this.$node.parentNode.style.position==="relative"&&(c=this._splitLeft-e.left);this.$sideNode.style.width=c+"px";this.$sideNode.style.right=c-1+"px";this.$sideNode.style.display="block";this.$node.style.left=c+"px"}this._resize()},_resize:function(c){var c=c||0,a=i.bounds(this.$node.parentNode),
e=i.bounds(this.$node);this._vertical?this.$mainNode.style.height=a.height-(e.top-a.top+e.height)+"px":this.$mainNode.style.width=a.width-(e.left-a.left+e.width)+"px";var g=this;window.setTimeout(function(){g._notifyResizeListeners(g.$mainNode)},c);window.setTimeout(function(){g._notifyResizeListeners(g.$sideNode)},c)},_notifyResizeListeners:function(c){for(var a=0;a<this._resizeListeners.length;a++)this._resizeListeners[a](c)},_thumbDown:function(){this._closed?(this._closed=!1,this._addAnimation(),
this._vertical?(this.$sideNode.style.height=this._splitTop+"px",this.$node.style.top=this._splitTop+"px"):(this.$sideNode.style.width=this._splitLeft+"px",this.$node.style.left=this._splitLeft+"px")):(this._closed=!0,this._addAnimation(),this._vertical?(this.$sideNode.style.top=0,this.$node.style.top="1px"):(this.$sideNode.style.width=0,this.$node.style.left="1px"));this._resize(this._animationDelay);this._removeAnimation();localStorage.setItem(this._prefix+"/toggleState",this._closed?"closed":null)},
_removeAnimation:function(){var c=this;window.setTimeout(function(){c.$sideNode.classList.remove("sidePanelLayoutAnimation");c.$mainNode.classList.remove("mainPanelLayoutAnimation");c.$node.classList.remove("splitLayoutAnimation");c._thumb.classList.remove("splitLayoutAnimation")},this._animationDelay)},_addAnimation:function(){this.$sideNode.classList.add("sidePanelLayoutAnimation");this.$mainNode.classList.add("mainPanelLayoutAnimation");this.$node.classList.add("splitLayoutAnimation");this._thumb&&
this._thumb.classList.add("splitLayoutAnimation")},_mouseDown:function(c){if(c.target===this._thumb)return i.stop(c),this._thumbDown(c);if(!this._tracking)this.$node.classList.add("splitTracking"),this.$mainNode.classList.add("panelTracking"),this.$sideNode.classList.add("panelTracking"),this._tracking=this._mouseMove.bind(this),window.addEventListener("mousemove",this._tracking),i.stop(c)},_mouseMove:function(c){if(this._tracking){var a;this._vertical?(a=this._splitTop=c.clientY,this.$node.parentNode.style.position===
"relative"&&(a=i.bounds(this.$node.parentNode),a=this._splitTop-a.top),this.$node.style.top=a+"px"):(a=this._splitLeft=c.clientX,this.$node.parentNode.style.position==="relative"&&(a=i.bounds(this.$node.parentNode),a=this._splitLeft-a.left),this.$node.style.left=a+"px");this._adjustToSplitPosition(!0);i.stop(c)}},_mouseUp:function(c){if(this._tracking)window.removeEventListener("mousemove",this._tracking),this._tracking=null,this.$node.classList.remove("splitTracking"),this.$mainNode.classList.remove("panelTracking"),
this.$sideNode.classList.remove("panelTracking"),i.stop(c)}};h.prototype.constructor=h;return{Splitter:h}});
define("orion/widgets/UserMenu",["i18n!orion/widgets/nls/messages","require","orion/webui/littlelib","orion/PageLinks"],function(f,i,h,c){function a(a){this._init(a)}a.prototype={_init:function(a){this._dropdownNode=h.node(a.dropdownNode);if(!this._dropdownNode)throw"no dom node for dropdown found";this._dropdown=a.dropdown;this._serviceRegistry=a.serviceRegistry;this.authenticatedServices={};this.unauthenticatedServices={}},isSingleService:function(){return this.length(this.unauthenticatedServices)+
this.length(this.authenticatedServices)===1},hasServices:function(){return this.length(this.unauthenticatedServices)+this.length(this.authenticatedServices)>0},length:function(a){var c=0,d;for(d in a)a.hasOwnProperty(d)&&c++;return c},_makeMenuItem:function(a,c){var d=document.createElement("span");d.role="menuitem";d.tabIndex=0;var b=document.createTextNode(a);d.appendChild(b);d.classList.add("dropdownMenuItem");d.addEventListener("click",c,!1);d.addEventListener("keydown",function(b){(b.keyCode===
h.KEY.ENTER||b.keyCode===h.KEY.SPACE)&&c()},!1);return d},_renderAuthenticatedService:function(a){var c=this,d=this.authenticatedServices[a].authService;if(d&&d.logout){var b=document.createElement("li"),h=this._makeMenuItem(f["Sign Out"],function(){d.logout().then(function(){c.addUserItem(a,d,c.authenticatedServices[a].label);localStorage.removeItem(a);localStorage.removeItem("lastLogin");for(var b=localStorage.length-1;b>=0;b--){var f=localStorage.key(b);f&&f.indexOf("/orion/preferences/user")===
0&&localStorage.removeItem(f)}d.getAuthForm(window.location.href).then(function(b){window.location=b})})});b.appendChild(h);this._dropdownNode.appendChild(b)}},renderServices:function(){function a(b){d[b]||(d[b]=g.createDocumentFragment());return d[b]}var g=document,d=[];c.getPageLinksInfo(this._serviceRegistry,"orion.page.link.user").then(function(b){this._dropdown.empty();b.forEach(function(b){var c=a(typeof b.category==="number"?b.category:1),d=g.createElement("li"),f=g.createElement("a");f.role=
"menuitem";f.classList.add("dropdownMenuItem");f.href=b.href;f.textContent=b.textContent;d.appendChild(f);c.appendChild(d)});if(this.keyAssistFunction){var b=document.createElement("li"),c=this._makeMenuItem(f["Keyboard Shortcuts"],this.keyAssistFunction);c.classList.add("key-assist-menuitem");b.appendChild(c);a(0).appendChild(b)}var h=this;d.sort(function(b,a){return b-a}).forEach(function(b,a){if(a<d.length-1){var c=document.createElement("li");c.classList.add("dropdownSeparator");var e=document.createElement("span");
e.classList.add("dropdownSeparator");c.appendChild(e);b.appendChild(c)}h._dropdownNode.appendChild(b)});if(this.isSingleService())for(var i in this.authenticatedServices)this.authenticatedServices.hasOwnProperty(i)&&this._renderAuthenticatedService(i,0)}.bind(this))},setKeyAssist:function(a){this.keyAssistFunction=a;this.renderServices()},addUserItem:function(a,c,d,b){b?(this.unauthenticatedServices[a]&&delete this.unauthenticatedServices[a],this.authenticatedServices[a]={authService:c,label:d,data:b}):
(this.authenticatedServices[a]&&delete this.authenticatedServices[a],this.unauthenticatedServices[a]=this.unauthenticatedServices[a]?{authService:c,label:d,pending:this.unauthenticatedServices[a].pending}:{authService:c,label:d});this.renderServices()}};a.prototype.constructor=a;return{UserMenu:a}});
define("orion/webui/dialog",["i18n!orion/widgets/nls/messages","require","orion/webui/littlelib","orion/uiUtils"],function(f,i,h,c){function a(){}a.prototype={DISABLED:"disabled",CONTAINERTEMPLATE:'<div class="dialog" role="dialog"><div class="dialogTitle"><span id="title" class="dialogTitleText layoutLeft"></span><span tabindex="0" role="button" aria-label="Close" class="dialogDismiss layoutRight core-sprite-close imageSprite" id="closeDialog"></span></div><div id="dialogContent" class="dialogContent layoutBlock"></div><div id="buttons" class="dialogButtons"></div></div>',_initialize:function(){var a=
document.body;this.$frameParent=a;this.$$modalExclusions=this.$$modalExclusions||[];var c=document.createRange();c.selectNode(a);c=c.createContextualFragment(this.CONTAINERTEMPLATE);a.appendChild(c);this.$frame=a.lastChild;this.title&&h.$("#title",this.$frame).appendChild(document.createTextNode(this.title));this.$close=h.$("#closeDialog",this.$frame);var d=this;this.$close.addEventListener("click",function(){d.hide()},!1);this.$parent=h.$(".dialogContent",this.$frame);c=document.createRange();c.selectNode(this.$parent);
a=c.createContextualFragment(this.TEMPLATE);this.messages&&h.processTextNodes(a,this.messages);this.$parent.appendChild(a);this.$buttonContainer=h.$(".dialogButtons",this.$frame);this._makeButtons();this.$close.addEventListener("keydown",function(b){(b.keyCode===h.KEY.ENTER||b.keyCode===h.KEY.SPACE)&&d.hide()},!1);this.$frame.addEventListener("keydown",function(b){b.keyCode===h.KEY.ESCAPE?d.hide():b.keyCode===h.KEY.ENTER&&typeof d._defaultCallback==="function"&&d._defaultCallback()},!1);this._bindElements(this.$parent);
typeof this._bindToDom==="function"&&this._bindToDom(this.$parent);this.modal&&this._makeModal()},_makeButtons:function(){if(this.$buttonContainer&&Array.isArray(this.buttons)){var a=this;this.buttons.forEach(function(g){var d=c.createButton(g.text,g.callback);if(g.id)d.id=g.id,a["$"+d.id]=d;if(g.isDefault)a._defaultCallback=g.callback,a._defaultButton=d;a.$buttonContainer.appendChild(d)})}},_makeModal:function(){var a=this;this.$frame.addEventListener("blur",function(b){a.$lastFocusedElement=b.target},
!0);this._modalListener=function(b){var c=!h.contains(a.$frame,b.target);if(c)for(var d=0;d<a.$$modalExclusions.length;d++)if(h.contains(a.$$modalExclusions[d],b.target)){c=!1;break}c&&(window.setTimeout(function(){(a.$lastFocusedElement||a.$parent).focus()},0),h.stop(b))};this.$frameParent.addEventListener("focus",this._modalListener,!0);this.$frameParent.addEventListener("click",this._modalListener,!0);var c=this.$frameParent.childNodes,d=!1;this._addedBackdrop=[];for(var b=0;b<c.length;b++){for(var f=
0;f<this.$$modalExclusions.length;f++)if(h.contains(this.$$modalExclusions[f],c[b])){d=!0;break}!d&&c[b]!==a.$frame&&c[b].classList&&!c[b].classList.contains("tooltipContainer")&&(f=c[b],f.classList.contains("modalBackdrop")||(f.classList.add("modalBackdrop"),this._addedBackdrop.push(f)))}(c=h.lastTabbable(this.$buttonContainer)||h.lastTabbable(this.$parent))&&c.addEventListener("keydown",function(b){if(b.keyCode===h.KEY.TAB){var c=a._getFirstFocusField();c&&c!==b.target&&c.focus();h.stop(b)}},!1)},
_addChildDialog:function(a){this.$$modalExclusions.push(a.$frame||a.$parent)},_bindElements:function(a){for(var c=0;c<a.childNodes.length;c++){var d=a.childNodes[c];d.id&&(this["$"+d.id]=d);this._bindElements(d)}},hide:function(){typeof this._beforeHiding==="function"&&this._beforeHiding();this._modalListener&&(this.$frameParent.removeEventListener("focus",this._modalListener,!0),this.$frameParent.removeEventListener("click",this._modalListener,!0));this.$frame.classList.remove("dialogShowing");typeof this._afterHiding===
"function"&&this._afterHiding();var a=this;this.keepAlive||window.setTimeout(function(){a.destroy()},0)},show:function(a){typeof this._beforeShowing==="function"&&this._beforeShowing();var c=h.bounds(this.$frame),d=h.bounds(document.documentElement),b;a?(b=h.bounds(a),a=b.top+b.height+4,b=b.left+4,a+c.height>d.height&&(a=Math.max(0,d.height-c.height-4)),b+c.width>d.width&&(b=Math.max(0,d.width-c.width-4))):(b=Math.max(0,(d.width-c.width)/2),a=Math.max(0,(d.height-c.height)/2));this.$lastFocusedElement=
document.activeElement;this.$frame.style.top=a+"px";this.$frame.style.left=b+"px";this.$frame.classList.add("dialogShowing");typeof this._afterShowing==="function"&&this._afterShowing();this.customFocus||this._getFirstFocusField().focus()},_getFirstFocusField:function(){return h.firstTabbable(this.$parent)||this._defaultButton||h.firstTabbable(this.$buttonContainer)||this.$close},destroy:function(){this._addedBackdrop&&this._addedBackdrop.length>0&&this._addedBackdrop.forEach(function(a){a.classList.remove("modalBackdrop")});
this.$frameParent.removeEventListener("focus",this._modalListener,!0);this.$frameParent.removeEventListener("click",this._modalListener,!0);this.$frameParent.removeChild(this.$frame);this.$parent=this.$frame=void 0}};a.prototype.constructor=a;return{Dialog:a}});
define("orion/webui/dialogs/OpenResourceDialog","i18n!orion/widgets/nls/messages,orion/crawler/searchCrawler,orion/contentTypes,require,orion/webui/littlelib,orion/webui/dialog".split(","),function(f,i,h,c,a,e){function g(a){this._init(a)}g.prototype=new e.Dialog;g.prototype.TEMPLATE='<div role="search"><div><label for="fileName">${Type the name of a file to open (? = any character, * = any string):}</label></div><div><input id="fileName" type="text" class="setting-control" style="width:90%;"/></div><div id="progress" style="padding: 2px 0 0; width: 100%;"><img src="'+
c.toUrl("../../../images/progress_running.gif")+'" class="progressPane_running_dialog" id="crawlingProgress"></img></div><div id="favresults" style="max-height:400px; height:auto; overflow-y:auto;"></div><div id="results" style="max-height:400px; height:auto; overflow-y:auto;" aria-live="off"></div><div id="statusbar"></div></div>';g.prototype._init=function(a){this.title=a.title||f["Find File Named"];this.modal=!0;this.messages=f;this._searcher=a.searcher;this._progress=a.progress;this._onHide=a.onHide;
this._contentTypeService=new h.ContentTypeService(this._searcher.registry);if(!this._searcher)throw Error("Missing required argument: searcher");this._searchDelay=a.searchDelay||500;this._time=0;this._searcher.setCrawler(null);this._forceUseCrawler=!1;this._searchOnRoot=!0;this._fileService=this._searcher.getFileService();if(!this._fileService)throw Error(f["Missing required argument: fileService"]);this._searchRenderer=a.searchRenderer;if(!this._searchRenderer||typeof this._searchRenderer.makeRenderFunction!==
"function")throw Error(f["Missing required argument: searchRenderer"]);this._favService=a.favoriteService;if(!this._favService)throw Error(f["Missing required argument: favService"]);this._initialize()};g.prototype._bindToDom=function(c){var b=this;b.$crawlingProgress.style.display="none";this.$fileName.setAttribute("placeholder",f.Search);this.$fileName.addEventListener("input",function(){b._time=+new Date;b._timeoutId&&clearTimeout(b._timeoutId);b._timeoutId=setTimeout(b.checkSearch.bind(b),0)},
!1);this.$fileName.addEventListener("keydown",function(c){if(c.keyCode===a.KEY.ENTER){var d=a.$("a",b.$results);d&&(a.stop(c),window.open(d.href),b.hide())}},!1);c.addEventListener("keydown",function(c){var d,e,g,f,h;if(c.keyCode===a.KEY.DOWN||c.keyCode===a.KEY.UP)e=a.$$array("a",b.$results),d=a.$$array("a",b.$favresults),g=document.activeElement,h=e.indexOf(g),f=d.indexOf(g),c.keyCode===a.KEY.DOWN?f>=0?(f<d.length-1?d[f+1]:e.length>0?e[0]:d[0]).focus():h>=0?(h<e.length-1?e[h+1]:d.length>0?d[0]:e[0]).focus():
(e.length>0||d.length>0)&&(-1<d.length-1?d[0]:e[0]).focus():f>=0?(g=b.$fileName,(f>0?d[f-1]:g).focus()):h>=0?(g=b.$fileName,(h>0?e[h-1]:d.length>0?d[d.length-1]:g).focus()):e.length>0?e[e.length-1].focus():d.length>0&&d[d.length-1].focus(),a.stop(c)});c.addEventListener("mouseup",function(b){b.target.focus()},!1);this.populateFavorites();setTimeout(function(){if(b._forceUseCrawler||!b._fileService.getService(b._searcher.getSearchLocation()).search){var a=b._searchOnRoot?b._searcher.getSearchRootLocation():
b._searcher.getChildrenLocation(),a=new i.SearchCrawler(b._searcher.registry,b._fileService,"",{searchOnName:!0,location:a});b._searcher.setCrawler(a);a.buildSkeleton(function(){b.$crawlingProgress.style.display="inline";b.$progress.appendChild(document.createTextNode(f["Building file skeleton..."]))},function(){b.$crawlingProgress.style.display="none";b.$progress.removeChild(b.$progress.lastChild)})}},0)};g.prototype.populateFavorites=function(){var c=document.createElement("div");c.appendChild(document.createTextNode(f["Populating favorites&#x2026;"]));
a.empty(this.$favresults);this.$favresults.appendChild(c);this._progress?this._progress.progress(this._favService.getFavorites(),"Getting favorites").then(this.showFavorites()):this._favService.getFavorites().then(this.showFavorites());this._favService.addEventListener("favoritesChanged",this.showFavorites())};g.prototype.showFavorites=function(){var a=this;return function(b){if(b.navigator)b=b.navigator;a._searchRenderer.makeRenderFunction(a._contentTypeService,a.$favresults,!1,a.decorateResult.bind(a),
a.showFavoritesImage)(b);if(b&&b.length>0)b=document.createElement("div"),b.style.borderBottom="1px dashed #BBBBBB",b.style.padding="5px",a.$favresults.appendChild(b)}};g.prototype.showFavoritesImage=function(a){var b=new Image;b.classList.add("modelDecorationSprite");b.classList.add("core-sprite-makeFavorite");b.src=c.toUrl("images/none.png");b.title=f.Favorite;a.appendChild(b);b.style.verticalAlign="middle"};g.prototype.checkSearch=function(){clearTimeout(this._timeoutId);var a=(new Date).getTime();
a-this._time>this._searchDelay?(this._time=a,this.doSearch()):this._timeoutId=setTimeout(this.checkSearch.bind(this),50)};g.prototype.doSearch=function(){var c=this.$fileName.value,b=this.showFavorites();this._progress?this._progress.progress(this._favService.queryFavorites(c),"Getting favorites for: "+c).then(function(a){b(a)}):this._favService.queryFavorites(c).then(function(a){b(a)});if(c){var e=document.createElement("div");e.appendChild(document.createTextNode(f["Searching..."]));a.empty(this.$favresults);
this.$results.appendChild(e);var g=this;setTimeout(function(){var b=g._searcher.createSearchParams(c,!0,g._searchOnRoot),a=g._searchRenderer.makeRenderFunction(g._contentTypeService,g.$results,!1,g.decorateResult.bind(g));g._searcher.search(b,!1,a)},0)}};g.prototype.decorateResult=function(c){for(var b=this,c=a.$$array("a",c),e=0;e<c.length;e++){var g=c[e];g.addEventListener("mouseup",function(a){a.button===0&&!a.ctrlKey&&!a.metaKey&&b.hide()},!1);g.addEventListener("keyup",function(c){c.keyCode===
a.KEY.ENTER&&b.hide()},!1)}};g.prototype._beforeHiding=function(){clearTimeout(this._timeoutId)};g.prototype._afterHiding=function(){this._onHide&&this._onHide()};g.prototype.constructor=g;return{OpenResourceDialog:g}});
define("orion/globalCommands","i18n!orion/nls/messages,require,orion/commonHTMLFragments,orion/commands,orion/parameterCollectors,orion/extensionCommands,orion/uiUtils,orion/editor/keyBinding,orion/breadcrumbs,orion/webui/littlelib,orion/webui/splitter,orion/webui/dropdown,orion/webui/tooltip,orion/favorites,orion/contentTypes,orion/URITemplate,orion/PageUtil,orion/widgets/themes/container/ThemeSheetWriter,orion/searchUtils,orion/inputCompletion/inputCompletion,orion/globalSearch/advSearchOptContainer,orion/Deferred,orion/widgets/UserMenu,orion/PageLinks,orion/webui/dialogs/OpenResourceDialog,text!orion/banner/banner.html,text!orion/banner/footer.html,text!orion/banner/toolbar.html".split(","),function(f,
i,h,c,a,e,g,d,b,j,m,k,l,p,r,q,o,n,u,s,t,v,w,y,F,D,x,z){function K(b,a){if(b.getLabel)return b.getLabel();else{var c=new v;c.resolve(a.properties.name);return c}}function C(b){j.node("progressPane").setAttribute("aria-label",f["Operations - Press spacebar to show current operations"]);(b=b.getService("orion.page.progress"))&&b.init.bind(b)("progressPane")}function A(b,a){var c=b.getService("orion.core.auth");c!==null&&c.getUser().then(function(b){var c;b.Name?c=document.createTextNode(b.Name):b.login&&
(c=document.createTextNode(b.login));c&&(a.childNodes.length>0?a.childNodes[0].nodeType===3?a.replaceChild(c,a.childNodes[0]):a.insertBefore(c,a.childNodes[0]):a.appendChild(c))})}function M(b,a){var c=b.getServiceReferences("orion.core.auth");L=[];if(j.node("userMenu")){var d=j.node("userDropdown"),e=new k.Dropdown({dropdown:d}),g=new w.UserMenu({dropdownNode:d,dropdown:e,serviceRegistry:b}),d=j.node("userTrigger");new l.Tooltip({node:d,text:f.Options,position:["below","left"]});A(b,d);g.setKeyAssist(a);
for(d=0;d<c.length;d++){var e=c[d],h=b.getService(e);K(h,e).then(function(b){h.getKey().then(function(a){L.push(a);h.getUser().then(function(c){g.addUserItem(a,h,b,c)},function(c,d){g.addUserItem(a,h,b,d)});window.addEventListener("storage",function(){H[a]!==localStorage.getItem(a)&&(H[a]=localStorage.getItem(a),h.getUser().then(function(c){g.addUserItem(a,h,b,c)},function(){g.addUserItem(a,h,b)}))},!1)})})}}}function G(b){var a=document.createElement("span");a.id="advancedSearchDropDown";j.node("searchOptions").appendChild(a);
a.tabIndex=0;a.classList.add("advancedSearchDecorationSprite");a.classList.add("core-sprite-openarrow");a.title=f["Advanced search"];a.onclick=function(){b.toggle()};a.addEventListener("keydown",function(a){(a.charCode||a.keyCode)===13&&b.toggle()});a.classList.add("bannerMenuSearchOptions")}function J(b,a){var c=j.node("relatedDropdown");I||(I=new k.Dropdown({dropdown:c}));b._addMenuItem(c,a)}function B(b,a,d,g,f){var h,m=b.getServiceReferences("orion.page.link.related");m.length<=0||j.node("relatedLinks")&&
v.when(function(){if(h)return h;var a=b.getService("orion.core.contenttypes");a||(a=new r.ContentTypeService(b),a=b.getService("orion.core.contenttypes"));return a.getContentTypes().then(function(b){return h=b})}(),function(){var i;j.node("relatedLinks")&&I&&(I.close(),I.empty());for(var l=[],k=0;k<m.length;k++){var p={},n,G=m[k].getPropertyKeys();for(n=0;n<G.length;n++)p[G[n]]=m[k].getProperty(G[n]);if(p.id){var r=function(b){if(b)if(!b.visibleWhen||b.visibleWhen(a)){var d=new c.CommandInvocation(g,
a,a,null,b);J(b,d)}else typeof f==="function"&&(i||(i=f()),v.when(i,function(d){d&&a===R&&(!b.visibleWhen||b.visibleWhen(d))&&J(b,new c.CommandInvocation(g,d,d,null,b))}))},q=null;n=null;if(d.indexOf(p.id)<0)if((p.nls&&p.nameKey||p.name)&&p.uriTemplate)n=e._createCommandOptions(p,m[k],b,h,!0),l.push(n),n.then(function(b){b=new c.Command(b);r(b)});else{if(!q&&(q=g.findCommand(p.id))){r(q);continue}if(!q){var o=b.getServiceReferences("orion.navigate.command");for(n=0;n<o.length;n++)if(o[n].getProperty("id")===
p.id){for(var p={},G=o[n].getPropertyKeys(),t=0;t<G.length;t++)p[G[t]]=o[n].getProperty(G[t]);n=e._createCommandOptions(p,o[n],b,h,!0);l.push(n);n.then(function(b){q=new c.Command(b);r(q)});break}}}}}v.all(l,function(b){return b}).then(function(){var b=j.node("relatedTrigger");if(I&&b)b.style.visibility=I.getItems().length===0?"hidden":"visible"})})}function O(b){var a=j.node("globalActions");a&&(b.destroy(a),b.renderCommands(a.id,a,{},{},"tool"))}function T(b){b.getPreferences("/themes",2).then(function(b){var a=
b.get("selected");if(a&&(a=JSON.parse(a),b=b.get("styles"))){var b=JSON.parse(b),c;for(c in b)if(b[c].name===a.selected){c=b[c];c=(new n.ThemeSheetWriter).getSheet(c);a=document.createElement("STYLE");a.appendChild(document.createTextNode(c));(document.getElementsByTagName("HEAD")[0]||document.documentElement).appendChild(a);break}}})}function P(b){var a={},c=null;typeof b==="string"&&(b=j.node(b));b||(b=j.node("pageActions"));for(var d=b;d&&d.classList;){if(d.classList.contains("toolComposite")){c=
d;break}d=d.parentNode}if(b.classList.contains("commandMarker"))a.commandNode=b;if(c&&(a.slideContainer=j.$(".slideParameters",c),a.parameterArea=j.$(".parameters",c),a.dismissArea=j.$(".parametersDismiss",c),a.notifications=j.$("#notificationArea",c),c.parentNode&&(a.toolbarTarget=j.$(".toolbarTarget",c.parentNode),a.toolbarTarget)))b=j.bounds(c),a.toolbarTargetY=b.height+1;return a}function Q(b){if(b.toolbarTarget&&b.toolbarTargetY){var a=0,c;b.notifications&&b.notifications.classList.contains("slideContainerActive")&&
(c=j.bounds(b.notifications),a+=c.height);b.slideContainer&&b.slideContainer.classList.contains("slideContainerActive")&&(c=j.bounds(b.slideContainer),a+=c.height);a>0&&(a+=8);b.toolbarTarget.style.top=b.toolbarTargetY+a+"px";b.toolbarTarget.style.bottom=0}}var q=function(b){var a=document.createElement("a");a.href=b;return a.href}(i.toUrl("auth/NotifyAuthentication.html")),H={},L=[],I,R,S=[],E,N=null;return{addSettings:function(b){var a=document.getElementById("settingsTab"),c=document.getElementById("settingsAction"),
d=!1,e;a.style.visibility="";c.style.visibility="";c.onclick=function(){if(!d){d=!0;a.style.backgroundColor="#555";a.style.zIndex="99";a.style.borderTopRightRadius="3px";a.style.borderTopLeftRadius="3px";c.className="core-sprite-settings-white";a.id="settingsNode";c.id="settingsButton";var g=document.getElementById("innerPanels"),f=g.getBoundingClientRect(),h=a.getBoundingClientRect();e?e.style.visibility="visible":(e=document.createElement("div"),e.className="settingsPanel",e.style.width="150px",
e.style.height="150px",e.style.backgroundColor="#555",e.style.zIndex="99",e.style.top=h.top-f.top+24-4+"px",e.id="settingsPanel",e.style.borderTopLeftRadius="3px",e.style.borderBottomRightRadius="3px",e.style.borderBottomLeftRadius="3px",g.appendChild(e),j.addAutoDismiss([c,a,e],function(){c.className="core-sprite-settings";a.style.backgroundColor="white";e.style.visibility="hidden";d=!1}));j.empty(e);b.appendTo(e)}}},generateBanner:function(b,e,k,n,r,q,o,B){function J(b){b.registerService("orion.cm.managedservice",
{updated:function(b){for(var b=b&&b["links.newtab"]!=="undefined"?b["links.newtab"]?"_blank":"_self":"_self",a=j.$$array(".targetSelector"),c=0;c<a.length;c++)a[c].target=b}},{pid:"nav.config"})}T(n);n=j.node(b);if(!n)throw f["could not find banner parent, id was "]+b;b=document.createRange();b.selectNode(n);b=b.createContextualFragment(D);j.processTextNodes(b,f);n.firstChild?n.insertBefore(b,n.firstChild):n.appendChild(b);b=j.node("home");b.href=i.toUrl("navigate/table.html");b.setAttribute("aria-label",
f["Orion Home"]);j.node("progressPane").src=i.toUrl("images/none.png");if(b=j.node("pageToolbar"))b.classList.add("toolbarLayout"),b.innerHTML=z+h.slideoutHTMLFragment("mainToolbar");(b=j.node("closeNotifications"))&&b.setAttribute("aria-label",f["Close notification"]);if(b=j.node("footer"))b.innerHTML=x,j.processTextNodes(b,f);k.setParameterCollector(new a.CommandParameterCollector(P,Q));var w=document.createElement("div");w.id="keyAssist";w.style.display="none";w.classList.add("keyAssistFloat");
w.role="list";w.setAttribute("aria-atomic","true");w.setAttribute("aria-live","assertive");document.body.appendChild(w);document.addEventListener("keydown",function(b){if(b.charOrCode===j.KEY.ESCAPE)w.style.display="none"},!1);j.addAutoDismiss([w],function(){w.style.display="none"});var A=j.node("primaryNav");A&&y.createPageLinks(e,"orion.page.link").then(function(b){b.forEach(function(b){A.appendChild(b)})});var H=j.node("search");if(!H)throw"failed to generate HTML for banner";H.setAttribute("placeholder",
f.Search);new l.Tooltip({node:H,text:f["Type a keyword or wild card to search in root"],position:["below","left"]});var E=new t.advSearchOptContainer(H,r,e,{group:"advancedSearch"});new s.InputCompletion(H,function(b){u.getMixedSearches(e,!0,!1,function(a){var c,d=[],e=!1,g=!1;for(c in a)a[c].label&&a[c].value?(e||(d.push({type:"category",label:f["Saved searches"]}),e=!0),d.push({type:"proposal",value:{name:a[c].label,value:i.toUrl("search/search.html")+"#"+a[c].value,type:"link"}})):(g||(d.push({type:"category",
label:f["Recent searches"]}),g=!0),d.push({type:"proposal",label:a[c].name,value:a[c].name}));b(d)})},{group:"globalSearch",extendedProvider:function(b,a){var c=e.getServiceReferences("orion.search.proposal");if(!c||c.length===0)a(null);else{var d=[];c.forEach(function(a){var c=a.getProperty("filterForMe");d.push(e.getService(a).run(b).then(function(b){for(var a={filterForMe:c,proposals:[]},d=0;d<b.length;d++){a.proposals.push({type:"category",label:b[d].category});for(var e=0;e<b[d].datalist.length;e++)a.proposals.push({type:"proposal",
label:b[d].datalist[e],value:b[d].datalist[e]})}return a}))});v.all(d).then(function(b){a(b)})}}});H.addEventListener("keydown",function(b){b.defaultPrevented||(b.charCode||b.keyCode)===13&&u.doSearch(r,e,H.value)});G(E);j.addAutoDismiss([j.node(E.containerId),j.node("advancedSearchDropDown")],function(){E.dismiss()});if(b=j.$(".split")){var n=j.$(".sidePanelLayout"),L=j.$(".mainPanelLayout");if(n&&L)N={side:n,main:L},N.splitter=new m.Splitter({node:b,sidePanel:n,mainPanel:L,toggle:!0}),b=new c.Command({name:f["Toggle side panel"],
tooltip:f["Open or close the side panel"],id:"orion.toggleSidePane",callback:function(){N.splitter.toggleSidePanel()}}),k.addCommand(b),k.registerCommandContribution("pageActions","orion.toggleSidePane",1,null,!0,new c.CommandKeyBinding("o",!0)),o&&(N.splitter.addResizeListener(function(b){o&&b===L&&o.getTextView().resize()}),o.getTextView().setKeyBinding(new d.KeyBinding("o",!0),"toggleOutliner"),o.getTextView().setAction("toggleOutliner",function(){N.splitter.toggleSidePanel();return!0},{name:f["Toggle Outliner"]}))}b=
new c.Command({name:f["Make Favorite"],tooltip:f["Add to the favorites list"],imageClass:"core-sprite-makeFavorite",id:"orion.makeFavorite",visibleWhen:function(b){b=Array.isArray(b)?b:[b];if(b.length===0)return!1;for(var a=0;a<b.length;a++)if(!b[a].Location)return!1;return!0},callback:function(b){for(var b=Array.isArray(b.items)?b.items:[b.items],a=e.getService("orion.core.favorite"),c=e.getService("orion.page.progress"),d=function(b){return function(d){d?e.getService("orion.page.message").setMessage(b.Name+
f[" is already a favorite."],2E3):c.progress(a.makeFavorites(b),"Making favorite "+b.Name)}},g=0;g<b.length;g++){var h=b[g];c.progress(a.hasFavorite(h.ChildrenLocation||h.Location),"Checking favorite "+h.Name).then(d(h))}}});k.addCommand(b);var I=function(b,a,c){var d=a.getService("orion.core.favorite"),e=a.getService("orion.page.progress");d||(d=new p.FavoritesService({serviceRegistry:a}),d=a.getService("orion.core.favorite"));var g=new F.OpenResourceDialog({searcher:b,progress:e,searchRenderer:b.defaultRenderer,
favoriteService:d,onHide:function(){c&&c.getTextView().focus()}});window.setTimeout(function(){g.show()},0)},b=new c.Command({name:f["Find File Named..."],tooltip:f["Choose a file by name and open an editor on it"],id:"eclipse.openResource",callback:function(){I(r,e,o)}});o&&(o.getTextView().setKeyBinding(new d.KeyBinding("f",!0,!0,!1),b.id),o.getTextView().setAction(b.id,function(){I(r,e,o);return!0},b));k.addCommand(b);k.registerCommandContribution("globalActions","eclipse.openResource",100,null,
!0,new c.CommandKeyBinding("f",!0,!0));b=new c.Command({name:f["Global search"],tooltip:f["Global search"],id:"eclipse.globalSearch",callback:function(){var b=j.node("search");b&&b.focus()}});o&&(o.getTextView().setKeyBinding(new d.KeyBinding("h",!0,!1,!0),b.id),o.getTextView().setAction(b.id,function(){var b=o.getSelection(),a=null;b.end>b.start&&(a=o.getModel().getText(b.start,b.end));if(b=j.node("search")){if(a)b.value=a;b.focus()}return!0},b));k.addCommand(b);k.registerCommandContribution("globalActions",
"eclipse.globalSearch",101,null,!0,new c.CommandKeyBinding("h",!0,!1,!0));b=new c.Command({name:f["Toggle banner and footer"],tooltip:f["Hide or show the page banner and footer"],id:"orion.toggleTrim",callback:function(){var b=j.node("banner"),a=j.node("footer"),c=j.$(".content-fixedHeight");b.style.display==="none"?(b.style.display="block",a.style.display="block",c.classList.remove("content-fixedHeight-maximized")):(b.style.display="none",a.style.display="none",c.classList.add("content-fixedHeight-maximized"));
o&&o.getTextView().resize();return!0}});k.addCommand(b);k.registerCommandContribution("globalActions","orion.toggleTrim",100,null,!0,new c.CommandKeyBinding("m",!0,!0));o&&(o.getTextView().setKeyBinding(new c.CommandKeyBinding("m",!0,!0),b.id),o.getTextView().setAction(b.id,b.callback,b));B&&B.addHandler({isActive:function(){return w.style.display==="block"},cancel:function(){return this.isActive()?(w.style.display="none",!0):!1}});B=new c.Command({name:f["System Configuration Details"],tooltip:f["System Config Tooltip"],
id:"orion.configDetailsPage",hrefCallback:function(){return i.toUrl("help/about.html")}});k.addCommand(B);k.registerCommandContribution("globalActions","orion.configDetailsPage",100,null,!0,new c.CommandKeyBinding(112,!0,!0));B=new c.Command({name:f["Background Operations"],tooltip:f["Background Operations Tooltip"],id:"orion.backgroundOperations",hrefCallback:function(){return i.toUrl("operations/list.html")}});k.addCommand(B);k.registerCommandContribution("globalActions","orion.backgroundOperations",
100,null,!0,new c.CommandKeyBinding("o",!0,!0));B=new c.Command({name:f["Show Keys"],tooltip:f["Show a list of all the keybindings on this page"],id:"eclipse.keyAssist",callback:function(){if(w.style.display==="none"){var b;j.empty(w);if(o){b=document.createElement("h2");b.appendChild(document.createTextNode(f.Editor));w.appendChild(b);b=o.getTextView().getActions(!1);for(var a=0;a<b.length;a++){var c=b[a],d=c,e=o.getTextView(),h=e.getActionDescription(c);if(h&&h.name)d=h.name;c=e.getKeyBindings(c);
for(e=0;e<c.length;e++){var h=g.getUserKeyString(c[e]),m=document.createElement("span");m.role="listitem";m.appendChild(document.createTextNode(h+" = "+d));m.appendChild(document.createElement("br"));w.appendChild(m)}}}b=document.createElement("h2");b.appendChild(document.createTextNode(f.Global));w.appendChild(b);k.showKeyBindings(w);w.style.display="block"}else w.style.display="none";return!0}});k.addCommand(B);k.registerCommandContribution("globalActions","eclipse.keyAssist",100,null,!0,new c.CommandKeyBinding(191,
!1,!0));o&&(b=window.navigator.platform.indexOf("Mac")!==-1,o.getTextView().setKeyBinding(new c.CommandKeyBinding(191,!1,!0,!b,b),B.id),o.getTextView().setAction(B.id,B.callback,B));O(k);M(e,B.callback);C(e);window.addEventListener("hashchange",function(){k.processURL(window.location.href)},!1);window.setTimeout(function(){J(e)},0)},getToolbarElements:P,getMainSplitter:function(){return N},layoutToolbarElements:Q,setPageTarget:function(a){var c,d,e=a.breadcrumbRootName;a.target?(a.searchService&&
a.searchService.setLocationByMetaData(a.target),a.fileService&&!a.breadcrumbTarget&&(d=e?e+" ":"",d+=a.fileService.fileServiceName(a.target.Location),e=null),c=a.name||a.target.Name,R=a.target,B(a.serviceRegistry,a.target,S,a.commandService,a.makeAlternate)):(a.breadcrumbTarget||(e=e||a.task||a.name),c=a.name);(E=a.title)||(E=c?c+" - "+a.task:a.task);window.document.title=E;j.empty(j.node("location"));new b.BreadCrumbs({container:"location",resource:a.breadcrumbTarget||a.target,rootSegmentName:e,
workspaceRootSegmentName:d,makeHref:a.makeBreadcrumbLink})},setDirtyIndicator:function(b){if(E)E.charAt(0)==="*"&&!b&&(E=E.substring(1)),b&&E.charAt(0)!=="*"&&(E="*"+E),window.document.title=E;var a=j.node("dirty");if(a)a.textContent=b?"*":""},setPageCommandExclusions:function(b){S=b},notifyAuthenticationSite:q}});
define("orion/status",["require","orion/webui/littlelib","orion/globalCommands"],function(f,i,h){function c(a,c,d,b,f){this._serviceRegistry=a;this._serviceRegistration=a.registerService("orion.page.message",this);this._operationsClient=c;this.notificationContainerDomId=f;this.domId=d;this.progressDomId=b||d;this._hookedClose=!1}function a(a,c,d,b){this.statusService=a;this.progressId=c;if(d){this.deferred=d;this.begin(b);var f=this;d.then(function(){f.done.bind(f)()},function(){f.done.bind(f)()})}}
c.prototype={_init:function(){var a=i.node("closeNotifications"),c=this;a&&!this._hookedClose&&(a.addEventListener("click",function(){c.setProgressMessage("")},!1),a.addEventListener("keydown",function(a){(a.keyCode===i.KEY.ENTER||a.keyCode===i.KEY.SPACE)&&c.setProgressMessage("")},!1))},_getNotifierElements:function(){if(!this._notifierElements)this._notifierElements=h.getToolbarElements(this.notificationContainerDomId);return this._notifierElements},setMessage:function(a,c,d){this._init();this.currentMessage=
a;var b=i.node(this.domId);if(typeof d==="boolean"){var f=this,h=b.getAttribute("aria-live");b.setAttribute("aria-live",d?"polite":"off");window.setTimeout(function(){a===f.currentMessage&&(i.empty(b),b.appendChild(document.createTextNode(a)),window.setTimeout(function(){b.setAttribute("aria-live",h)},100))},100)}else i.empty(b),b.appendChild(document.createTextNode(a));typeof c==="number"&&(f=this,window.setTimeout(function(){a===f.currentMessage&&(i.empty(b),b.appendChild(document.createTextNode("")))},
c))},setErrorMessage:function(a){this.currentMessage=a;this._init();var c=a.responseText||a.message||a;try{c=JSON.parse(c)}catch(d){}var a=c.Message||c,b="red";if(c.Severity)switch(c.Severity){case "Warning":b="#FFCC00";break;case "Error":b="red";break;case "Info":case "Ok":b="green"}c=document.createElement("span");c.style.color=b;c.appendChild(document.createTextNode(a));a=i.node(this.domId);i.empty(a);a.appendChild(c)},setProgressMessage:function(a){this._init();this.currentMessage=a;var c=document.createElement("span");
c.classList.add("imageSprite");c.classList.add("core-sprite-progress");var d=i.node(this.progressDomId);i.empty(d);d.appendChild(c);d.appendChild(document.createTextNode(a));c=i.node(this.notificationContainerDomId);c.classList.add("progressNormal");if(a&&a.length>0)c.classList.add("slideContainerActive");else if(this._progressMonitors&&this._progressMonitors.length>0)return this._renderOngoingMonitors();else c.classList.remove("slideContainerActive");h.layoutToolbarElements(this._getNotifierElements())},
setProgressResult:function(a){this.currentMessage=a;var c=a.responseText||a;try{c=JSON.parse(c)}catch(d){}this._init();var b=c.Message||c,f="core-sprite-info",m="progressInfo",k=document.createElement("span");k.classList.add("imageSprite");a=[];if(c.Severity)switch(c.Severity){case "Warning":f="core-sprite-warning";m="progressWarning";a.push("progressInfo");a.push("progressError");a.push("progressNormal");break;case "Error":f="core-sprite-error";m="progressError";a.push("progressWarning");a.push("progressInfo");
a.push("progressNormal");break;default:a.push("progressWarning"),a.push("progressError"),a.push("progressNormal")}k.classList.add(f);var l=i.node(this.progressDomId),f=i.node(this.notificationContainerDomId);i.empty(l);l.appendChild(k);c.HTML?(c=document.createElement("span"),c.innerHTML=b,l.appendChild(c)):l.appendChild(document.createTextNode("   "+b));if(m&&this.progressDomId!==this.domId){f.classList.add(m);for(b=0;b<a.length;b++)f.classList.remove(a[b])}f.classList.add("slideContainerActive");
h.layoutToolbarElements(this._getNotifierElements())},showWhile:function(a,c){var d=this;if(c){d.setProgressMessage(c);var b=function(){c===d.currentMessage&&d.setProgressMessage("")};a.then(b,b)}return a},_lastProgressId:0,_progressMonitors:{length:0},createProgressMonitor:function(c,g){return new a(this,++this._lastProgressId,c,g)},_renderOngoingMonitors:function(){if(this._progressMonitors.length>0){var a="",c=!0,d;for(d in this._progressMonitors)this._progressMonitors[d].status&&(c||(a+=", "),
a+=this._progressMonitors[d].status,c=!1);this.setProgressMessage(a)}else this.setProgressMessage("")},_beginProgressMonitor:function(a){this._progressMonitors[a.progressId]=a;this._progressMonitors.length++;this._renderOngoingMonitors()},_workedProgressMonitor:function(a){this._progressMonitors[a.progressId]=a;this._renderOngoingMonitors()},_doneProgressMonitor:function(a){delete this._progressMonitors[a.progressId];this._progressMonitors.length--;a.status?this.setProgressResult(a.status):this._renderOngoingMonitors()}};
c.prototype.constructor=c;a.prototype.begin=function(a){this.status=a;this.statusService._beginProgressMonitor(this)};a.prototype.done=function(a){this.status=a;this.statusService._doneProgressMonitor(this)};a.prototype.worked=function(a){this.status=a;this.statusService._workedProgressMonitor(this)};a.prototype.constructor=a;return{StatusReportingService:c,ProgressMonitor:a}});
define("orion/serviceTracker",[],function(){function f(c,a){function e(a){var c=a.getProperty("service.id"),e=this.addingService(a);e&&(d[c]=a,b[c]=e)}function g(a){var c=a.getProperty("service.id"),e=b[c];delete d[c];delete b[c];this.removedService(a,e)}this.serviceRegistry=c;var d={},b={},f=i,m,k;this.close=function(){if(f!==h)throw"Already closed";f=i;c.removeEventListener("registered",m);c.removeEventListener("unregistering",k);k=m=null;var b=this;this.getServiceReferences().forEach(function(a){g.call(b,
a)});if(typeof this.onClose==="function")this.onClose()};this.getServiceReferences=function(){return d.length?Object.keys(d).map(function(b){return d[b]}):null};this.open=function(){if(f!==i)throw"Already open";f=h;var b=this;m=function(c){if(c.serviceReference.getProperty("objectClass").indexOf(a)!==-1&&(e.call(b,c.serviceReference),typeof b.onServiceAdded==="function"))return b.onServiceAdded(c.serviceReference,b.serviceRegistry.getService(c.serviceReference))};k=function(c){c.serviceReference.getProperty("objectClass").indexOf(a)!==
-1&&g.call(b,c.serviceReference)};c.addEventListener("registered",m);c.addEventListener("unregistering",k);c.getServiceReferences(a).forEach(function(a){e.call(b,a)});if(typeof this.onOpen==="function")this.onOpen()}}var i=0,h=1;f.prototype={addingService:function(c){return this.serviceRegistry.getService(c)},onOpen:null,onClose:null,onServiceAdded:null,removedService:function(){}};return f});
define("orion/config",["orion/Deferred","orion/serviceTracker"],function(f,i){var h,c,a,e,g,d="pid";h=function(b,a,c){function e(b,c,d){c.forEach(function(e,g){try{var f=b[g].getProperty("__plugin__"),h=f&&a.getPlugin(f);(!f||h&&h.getState()==="active")&&c[g].updated(d)}catch(j){typeof console!=="undefined"&&console.log(j)}})}i.call(this,b,"orion.cm.managedservice");var g={},h={},q=function(a){var e=[];a.plugin.getServiceReferences().forEach(function(a){if(a.getProperty("objectClass").indexOf("orion.cm.managedservice")!==
-1){var g=a.getProperty(d),a=b.getService(a);g&&a&&(g=(g=c._find(g))&&g.getProperties(),e.push(a.updated(g)))}});return f.all(e)};this.addingService=function(a){var c=a.getProperty(d),e=b.getService(a);if(!c||!e)return null;g[c]||(g[c]=[]);h[c]||(h[c]=[]);g[c].push(a);h[c].push(e);return e};this.onServiceAdded=function(b,a){var g=b.getProperty(d),g=c._find(g);e([b],[a],g&&g.getProperties())};this.onOpen=function(){a.addEventListener("started",q)};this.onClose=function(){a.removeEventListener("started",
q)};this.notifyUpdated=function(b){var a=b.getPid();e(g[a]||[],h[a]||[],b.getProperties())};this.notifyDeleted=function(b){b=b.getPid();e(g[b]||[],h[b]||[],null)};this.removedService=function(b,a){var c=b.getProperty(d),e=g[c],f=h[c];e.length>1?e.splice(e.indexOf(b),1):delete g[c];f.length>1?f.splice(f.indexOf(a),1):delete h[c]}};c=function(){function b(c,d,g){this.store=new a(this,g);this.configAdmin=new e(this,this.store);this.tracker=new h(c,d,this.store)}b.prototype={getConfigurationAdmin:function(){var b=
this;return this.configAdmin._init().then(function(a){b.tracker.open();return a})},notifyDeleted:function(b){this.tracker.notifyDeleted(b)},notifyUpdated:function(b){this.tracker.notifyUpdated(b)}};return b}();e=function(){function b(a,c){this.factory=a;this.store=c}b.prototype={_init:function(){var b=this;return this.store._init().then(function(){return b})},getConfiguration:function(b){return this.store.get(b)},listConfigurations:function(){return this.store.list()}};return b}();var b="/cm/configurations";
a=function(){function a(c,e){this.factory=c;this.prefsService=e;this.configs=Object.create(null);this.pref=null;var f=this;this.initPromise=this.prefsService.getPreferences(b).then(function(b){f.pref=b;b.keys().forEach(function(a){if(!f.configs[a]){var c=b.get(a);typeof c==="object"&&c!==null&&Object.keys(c).length>0&&(c[d]=a,f.configs[a]=new g(f.factory,f,c))}})})}a.prototype={_init:function(){return this.initPromise},_find:function(b){return this.configs[b]||null},get:function(b){var a=this._find(b);
a||(a=new g(this.factory,this,b),this.configs[b]=a);return a},list:function(){var b=this,a=[];this.pref.keys().forEach(function(c){(c=b._find(c))&&c.getProperties()!==null&&a.push(c)});return a},remove:function(b){this.pref.remove(b);delete this.configs[b]},save:function(b,a){this.pref.put(b,a.getProperties(!0)||{})}};return a}();g=function(){function b(a){for(var c={},d=Object.keys(a),e=0;e<d.length;e++){var g=d[e],f=a[g];c[g]=f instanceof Array?f.slice():f}return c}function a(c,e,g){this.factory=
c;this.store=e;if(g!==null&&typeof g==="object")this.pid=g[d],c=b(g),delete c[d],this.properties=c;else if(typeof g==="string")this.pid=g,this.properties=null;else throw Error("Invalid pid/properties "+g);}a.prototype={_checkRemoved:function(){if(this._removed)throw Error("Configuration was removed");},getPid:function(){this._checkRemoved();return this.pid},getProperties:function(a){this._checkRemoved();var c=null;if(this.properties&&(c=b(this.properties),!a))c[d]=this.pid;return c},remove:function(){this._checkRemoved();
this.factory.notifyDeleted(this);this.store.remove(this.pid);this._removed=!0},update:function(a){this._checkRemoved();a=b(a);delete a[d];this.properties=a;this.store.save(this.pid,this);this.factory.notifyUpdated(this)},toString:function(){return"[ConfigImpl pid: "+this.pid+", properties: "+JSON.stringify(this.properties)+"]"}};return a}();return{ConfigurationAdminFactory:c}});
define("orion/bootstrap","require,orion/Deferred,orion/serviceregistry,orion/preferences,orion/pluginregistry,orion/config".split(","),function(f,i,h,c,a,e){var g;return{startup:function(){if(g)return g;g=new i;var d=window.serviceRegistry=new h.ServiceRegistry,b=new c.PreferencesService(d);return b.getPreferences("/plugins").then(function(c){var h={plugins:{}};c.keys().forEach(function(b){var a=f.toUrl(b);h.plugins[a]=c[b]});var k=window.pluginRegistry=new a.PluginRegistry(d,h);return k.start().then(function(){if(d.getServiceReferences("orion.core.preference.provider").length>
0)return b.getPreferences("/plugins",b.USER_SCOPE).then(function(b){var a=[];b.keys().forEach(function(b){b=f.toUrl(b);k.getPlugin(b)||a.push(k.installPlugin(b,{autostart:"lazy"}).then(function(b){return b.update().then(function(){return b.start({lazy:!0})})}))});return i.all(a,function(b){console.log(b)})})}).then(function(){return(new e.ConfigurationAdminFactory(d,k,b)).getConfigurationAdmin().then(d.registerService.bind(d,"orion.cm.configadmin"))}).then(function(){var b=d.getService("orion.core.auth");
if(b){var a=b.getUser().then(function(a){if(a)localStorage.setItem("lastLogin",(new Date).getTime());else return b.getAuthForm(window.location.href).then(function(b){window.location=b})}),c=localStorage.getItem("lastLogin");if(!c||c<(new Date).getTime()-9E5)return a}}).then(function(){var a={serviceRegistry:d,preferences:b,pluginRegistry:k};g.resolve(a);return a})})}}});
define("orion/metatype",["orion/serviceTracker"],function(f){function i(d){function b(b,a,c){b=b.getProperty(a);b instanceof Array&&b.forEach(c)}var e=new f(d,a),i=this.ocdsMap={},k=this.pidsMap={};e.addingService=function(a){b(a,h,function(b){b=new g(b);i[b.getId()]=b});b(a,c,function(b){var a=b.pid,b=b.classId;a&&b&&(k[a]=i[b])});return d.getService(a)};e.removedService=function(a){b(a,h,function(b){delete i[b.id]});b(a,c,function(b){delete k[b.pid]})};e.open()}var h="classes",c="designates",a=
"orion.cm.metatype",e,g;i.prototype={getObjectClassDefinitionForPid:function(a){return this.pidsMap[a]||null},getObjectClassDefinition:function(a){return this.ocdsMap[a]||null}};g=function(a){this.id=a.id;this.name=a.name||null;var b=a.properties;if(!this.id)throw'Missing "id" property: '+JSON.stringify(a);if(!(b instanceof Array)||!b.length)throw'"properties" property is missing or empty: '+JSON.stringify(a);this.props=[];for(a=0;a<b.length;a++)this.props.push(new e(b[a]))};g.prototype={getAttributeDefinitions:function(){return this.props},
getId:function(){return this.id},getName:function(){return this.name}};e=function(a){this.id=a.id;this.name=a.name||null;this.options=a.options||null;this.type=a.type||"string";this.defaultValue=typeof a.defaultValue!=="undefined"?a.defaultValue:null;if(!this.id)throw'Missing "id" property: '+JSON.stringify(a);var b;switch(this.type){case "boolean":case "number":case "string":b=!0}if(!b)throw'Invalid "type": '+this.type;this.options&&this.options.forEach(function(b){if(typeof b.value==="undefined")throw"Missing option value: "+
JSON.stringify(b);})};e.prototype={getId:function(){return this.id},getName:function(){return this.name},getOptionLabels:function(){return this.options&&this.options.map(function(a){return a.label})},getOptionValues:function(){return this.options&&this.options.map(function(a){return a.value})},getType:function(){return this.type},getDefaultValue:function(){return this.defaultValue}};return{MetaTypeRegistry:i}});
define("orion/settings/settingsRegistry",["orion/serviceTracker"],function(f){function i(b){this.pid=b.pid;this.classId=(this.isRef=typeof b.classId==="string")?b.classId:this.pid+".type";this.name=typeof b.name==="string"?b.name:null;this.properties=null;this.category=b.category;this.tags=b.tags;if(!this.pid)throw Error('Missing "pid" property');}function h(b,c,h,k){var l={};f.call(this,b,e);this.addingService=function(e){var r=e.getProperty(g);if(!r||!r.length)return null;for(var q=0;q<r.length;q++){var o=
r[q],n=new i(o),u=n.getObjectClassDefinitionId(),s={designates:[{pid:n.getPid(),classId:u}]};if(!n.isRef&&!c.getObjectClassDefinition(u))s.classes=[{id:u,properties:o.properties}];l[n.getPid()]=b.registerService(a,{},s);o=c.getObjectClassDefinition(u);n.properties=o.getAttributeDefinitions();h[n.getPid()]=n;o=n.getCategory()||d;k[o]||(k[o]=[]);k[o].push(n.getPid())}return f.prototype.addingService.call(this,e)};this.removedService=function(b){for(var b=b.getProperty(g),a=0;a<b.length;a++){var c=b[a].pid,
e=b[a].category;l[c].unregister();delete l[c];delete h[c];var f=k[e||d];f.splice(f.indexOf(c),1);f.length||delete k[e]}}}function c(b,a){this.settingsMap=Object.create(null);this.categories=Object.create(null);(new h(b,a,this.settingsMap,this.categories)).open()}var a="orion.cm.metatype",e="orion.core.setting",g="settings",d="unsorted";i.prototype={getName:function(){return this.name},getPid:function(){return this.pid},getObjectClassDefinitionId:function(){return this.classId},getAttributeDefinitions:function(){return this.properties},
getCategory:function(){return this.category||null},getTags:function(){return this.tags||[]},isDefaults:function(b){return this.getAttributeDefinitions().every(function(a){var c=b[a.getId()],d=a.getDefaultValue(),e=c===d;a.getType()==="string"&&(e=e||c===""&&d===null);return e})}};c.prototype={getSettings:function(b){var a=this.settingsMap,b=typeof b==="string"?this.categories[b]:Object.keys(a);return!b?[]:b.map(function(b){return a[b]})},getCategories:function(){return Object.keys(this.categories)}};
return c});define("orion/objects",[],function(){return{mixin:function(f){Array.prototype.slice.call(arguments,1).forEach(function(i){for(var h=Object.keys(i),c=0;c<h.length;c++){var a=h[c];f[a]=i[a]}})}}});
define("orion/widgets/themes/ThemeComponent",[],function(){function f(){}function i(h,c,a,e,g,d,b,j,i){var k=new f;k.type="ELLIPSE";k.fill=i;k.width=j;k.x=c;k.y=a;k.radius=e;k.startangle=g;k.endangle=d;k.direction=b;k.render(h);return k}f.prototype.type=null;f.prototype.fill=null;f.prototype.stroke=null;f.prototype.width=0;f.prototype.height=0;f.prototype.font=null;f.prototype.text=null;f.prototype.radius=null;f.prototype.x=0;f.prototype.y=0;f.prototype.x2=0;f.prototype.y2=0;f.prototype.x3=0;f.prototype.y3=
0;f.prototype.context=null;f.prototype.description=null;f.prototype.over=!1;f.prototype.family=null;f.prototype.render=function(f){if(f)this.context=f;switch(this.type){case "TEXT":this.context.beginPath();this.context.font=this.font;this.context.fillStyle=this.fill;this.context.fillText(this.text,this.x,this.y);this.context.closePath();break;case "LINE":this.context.beginPath();this.context.strokeStyle=this.stroke;this.context.moveTo(this.x,this.y);this.context.lineTo(this.x2,this.y2);this.context.lineWidth=
this.width;this.context.stroke();this.context.closePath();break;case "RECTANGLE":this.context.beginPath();this.context.strokeStyle=this.stroke;if(this.fill)this.context.fillStyle=this.fill;this.context.rect(this.x,this.y,this.width,this.height);this.fill&&this.context.fill();this.stroke&&this.context.stroke();this.context.closePath();break;case "ROUNDRECTANGLE":this.context.beginPath();this.context.fillStyle=this.fill;this.context.strokeStyle=this.stroke;this.context.moveTo(this.x+this.radius,this.y);
this.context.lineTo(this.x+this.width-this.radius,this.y);this.context.quadraticCurveTo(this.x+this.width,this.y,this.x+this.width,this.y+this.radius);this.context.lineTo(this.x+this.width,this.y+this.height-this.radius);this.context.quadraticCurveTo(this.x+this.width,this.y+this.height,this.x+this.width-this.radius,this.y+this.height);this.context.lineTo(this.x+this.radius,this.y+this.height);this.context.quadraticCurveTo(this.x,this.y+this.height,this.x,this.y+this.height-this.radius);this.context.lineTo(this.x,
this.y+this.radius);this.context.quadraticCurveTo(this.x,this.y,this.x+this.radius,this.y);this.context.closePath();this.stroke&&this.context.stroke();this.fill&&this.context.fill();break;case "TRIANGLE":this.context.beginPath();this.context.moveTo(this.x,this.y);this.context.lineTo(this.x2,this.y2);this.context.lineTo(this.x3,this.y3);this.context.lineTo(this.x,this.y);this.context.fillStyle=this.fill;this.context.fill();this.context.closePath();break;case "ELLIPSE":this.context.beginPath(),this.context.arc(this.x,
this.y,this.radius,this.startangle,this.endangle,this.direction),this.context.fillStyle=this.fill,this.context.fill(),this.context.closePath()}};f.prototype.mouseOver=function(f,c){this.over=!1;switch(this.type){case "RECTANGLE":case "ROUNDRECTANGLE":if(f>this.x&&f<this.x+this.width&&c>this.y&&c<this.y+this.height)this.over=!0;break;case "TEXT":if(f>this.x&&f<this.x+this.width&&c>this.y-16&&c<this.y-16+this.height)this.over=!0;break;case "ELLIPSE":if(f>this.x-5-this.radius&&f<this.x-5+this.radius&&
c>this.y-5-this.radius&&c<this.y-5+this.radius)this.over=!0}return this.over};f.prototype.glow=function(f,c){var a=this.y-6+(this.height+12)/2;switch(this.type){case "TEXT":a-=8}var e=this.x-6+(this.width+12)*0.5;this.context.beginPath();this.context.moveTo(e,a);this.context.lineTo(f+30,a);this.context.lineTo(f+30,c+7);this.context.lineTo(f+45,c+7);this.context.strokeStyle="#cc0000";this.context.lineWidth=1;this.context.stroke();i(this.context,e,a,3,0,2*Math.PI,!1,null,"#cc0000");this.context.closePath()};
return{Component:f,drawArc:i,drawLine:function(h,c,a,e,g,d,b){var j=new f;j.type="LINE";j.stroke=b;j.width=d;j.x=c;j.y=a;j.x2=e;j.y2=g;j.render(h);return j},drawText:function(h,c,a,e,g,d){var b=new f;b.type="TEXT";b.font=g;b.fill=d;b.text=c;b.x=a;b.y=e;b.render(h);b.width=h.measureText(c).width;b.height=10;return b},drawRectangle:function(h,c,a,e,g,d,b){var j=new f;j.type="RECTANGLE";j.fill=d;j.stroke=b;j.x=c;j.y=a;j.width=e;j.height=g;j.render(h);return j},drawTriangle:function(h,c,a,e,g,d,b,j,i){var k=
new f;k.type="TRIANGLE";k.fill=j;k.stroke=i;k.x=c;k.y=a;k.x2=e;k.y2=g;k.x3=d;k.y3=b;k.render(h);return k},roundRect:function(h,c,a,e,g,d,b,j){var i=new f;i.type="ROUNDRECTANGLE";i.fill=b;i.stroke=j;i.x=c;i.y=a;i.width=e;i.height=g;i.radius=d;i.render(h);return i}}});
define("orion/widgets/input/Select",["orion/objects","orion/webui/littlelib"],function(f,i){function h(c,a){this.node=a||document.createElement("div");this.node.innerHTML=this.templateString;this.mylabel=i.$(".setting-label",this.node);this.select=i.$(".setting-control",this.node);this.options=c.options}f.mixin(h.prototype,{templateString:'<select class="setting-control" id="selection"></select>',addOptions:function(c){var a=document.createElement("option");a.value=c.value;a.appendChild(document.createTextNode(typeof c.label===
"string"?c.label:c.value));if(c.selected)a.selected="selected";this.select.appendChild(a)},show:function(){this.postCreate()},postCreate:function(){this.options.forEach(this.addOptions.bind(this));this.select.addEventListener("change",this.change.bind(this))},destroy:function(){if(this.node)i.empty(this.node),this.node=this.select=null},setStorageItem:function(){},getSelected:function(){return this.select.value},getSelectedIndex:function(){return this.select.selectedIndex},setSelectedIndex:function(c){this.select.selectedIndex=
c},change:function(){var c=this.select.value;this.category?this.setStorageItem(this.category,this.item,this.element,c,this.ui):this.setStorageItem(c)}});return h});
define("orion/widgets/input/TextField",["orion/objects","orion/webui/littlelib"],function(f,i){function h(c,a){f.mixin(this,c);this.node=a||document.createElement("div")}f.mixin(h.prototype,{templateString:'<input type="text" class="setting-control" name="myname"/>',category:null,item:null,element:null,ui:null,show:function(){this.node.innerHTML=this.templateString;this.textfield=i.$(".setting-control",this.node);this.textfield.addEventListener("change",this.change.bind(this))},destroy:function(){if(this.node)i.empty(this.node),
this.textfield=this.node=null},setStorageItem:function(){console.log("TextField setStorageIem")},width:function(c){this.textfield.style.width=c},setValue:function(c){this.textfield.value=c},change:function(){if(this.selection&&this.selection.value)var c=this.selection.value;this.setStorageItem(this.category,this.item,this.element,c,this.ui)}});return h});
define("orion/webui/treetable",["i18n!orion/nls/messages","orion/webui/littlelib"],function(f,i){function h(c){this._init(c)}h.prototype={_init:function(c){var a=c.parent,e=this,a=i.node(a);if(!a)throw f["no parent"];if(!c.model)throw f["no tree model"];if(!c.renderer)throw f["no renderer"];this._parent=a;this._treeModel=c.model;this._renderer=c.renderer;this._showRoot=c.showRoot===void 0?!1:c.showRoot;this._indent=c.indent===void 0?16:c.indent;this._onCollapse=c.onCollapse;this._labelColumnIndex=
c.labelColumnIndex===void 0?0:c.labelColumnIndex;this._id=c.id===void 0?"treetable":c.id;this._tableStyle=c.tableStyle;this._tableElement=c.tableElement||"table";this._tableBodyElement=c.tableBodyElement||"tbody";this._tableRowElement=c.tableRowElement||"tr";this._root=this._treeModel.getRoot(function(a){e._showRoot?(a._depth=0,e._generate([a],0)):e._treeModel.getChildren(a,function(a){e._generate(a,0)})})},_generate:function(c,a){i.empty(this._parent);var e=document.createElement(this._tableElement);
e.id=this._id;this._tableStyle&&e.classList.add(this._tableStyle);this._renderer.initTable(e,this);this._bodyElement=document.createElement(this._tableBodyElement);this._bodyElement.id=this._id+"tbody";this._generateChildren(c,a);e.appendChild(this._bodyElement);this._parent.appendChild(e);this._rowsChanged()},_generateChildren:function(c,a,e){for(var g=0;g<c.length;g++){var d=document.createElement(this._tableRowElement);d.id=this._treeModel.getId(c[g]);d._depth=a;d._item=c[g];this._renderer.render(c[g],
d);d.childNodes[this._labelColumnIndex].style.paddingLeft=this._indent*a+"px";e?(this._bodyElement.insertBefore(d,e.nextSibling),e&&(e=d)):this._bodyElement.appendChild(d)}},_rowsChanged:function(){this._renderer.rowsChanged&&this._renderer.rowsChanged()},getSelected:function(){return this._renderer.getSelected()},refresh:function(c,a,e){var g=this._treeModel.getId(c),d;if(g===this._id)this._removeChildRows(g),this._generateChildren(a,0),this._rowsChanged();else{var b=i.node(g);b?(b._item=c,b&&(e||
b._expanded)?(b._expanded=!0,this._removeChildRows(g),this._renderer.updateExpandVisuals(b,!0),a?(this._generateChildren(a,b._depth+1,b),this._rowsChanged()):(d=this,a=this._treeModel.getChildren(b._item,function(a){d._generateChildren(a,b._depth+1,b);d._rowsChanged()}))):this._renderer.updateExpandVisuals(b,!1)):console.log(f["could not find table row "]+g)}},getItem:function(c){var a=i.node(c);return a&&a._item?a._item:c},toggle:function(c){var a=i.node(c);a&&(a._expanded?(this.collapse(c),this._renderer.updateExpandVisuals(a,
!1)):(this.expand(c),this._renderer.updateExpandVisuals(a,!0)))},isExpanded:function(c){return(c=i.node(c))?c._expanded:!1},expand:function(c,a,e){var c=typeof c==="string"?c:this._treeModel.getId(c),g=i.node(c);if(g&&!g._expanded){g._expanded=!0;var d=this;this._renderer.updateExpandVisuals(g,!0);this._treeModel.getChildren(g._item,function(b){d._generateChildren(b,g._depth+1,g);d._rowsChanged();a&&a.apply(d,e)})}},_removeChildRows:function(c){for(var a=c===this._id,e=!1,g=-1,d=[],b=i.$$array(".treeTableRow",
this._parent),f=0;f<b.length;f++){var h=b[f];if(e)break;if(a)h._depth>g?d.push(h):e=!0;else if(h.id===c)a=!0,g=h._depth}for(c=0;c<d.length;c++)a=d[c],a.parentNode.removeChild(a)},collapse:function(c){var c=typeof c==="string"?c:this._treeModel.getId(c),a=i.node(c);if(a){if(!a._expanded)return;a._expanded=!1;this._renderer.updateExpandVisuals(a,!1);this._removeChildRows(c);this._rowsChanged()}this._onCollapse&&this._onCollapse(a._item)}};h.prototype.constructor=h;return{TableTree:h}});
define("orion/treeModelIterator",[],function(){var f={};f.TreeModelIterator=function(){function f(h,c){this.firstLevelChildren=h;this.reset();this._init(c)}f.prototype={_init:function(f){if(f)this.isExpanded=f.isExpanded,this.isExpandable=f.isExpandable,this.forceExpandFunc=f.forceExpandFunc},topLevel:function(f){return f.parent?f.parent===this.root:!0},_expanded:function(f){if(!f)return!0;var c=f.children&&f.children.length>0;this.isExpanded&&c&&(c=this.isExpanded(f));return c},_expandable:function(f){return!f?
!0:this.isExpandable?this.isExpandable(f):!1},_diveIn:function(f){return this._expanded(f)?(this.setCursor(f.children[0]),this.cursor()):null},_drillToLast:function(f){return this._expanded(f)?this._drillToLast(f.children[f.children.length-1]):f},_forward:function(f){if(!this._cursor)return null;var c=this._diveIn(this._cursor);if(!c){if(f&&this._expandable(this._cursor)&&this.forceExpandFunc){var a=this;return this.forceExpandFunc(this._cursor,"first",function(c){c&&a.setCursor(c)})}(c=this._findSibling(this._cursor,
!0))&&this.setCursor(c)}return c},_backward:function(f){if(!this._cursor)return null;var c=this._findSibling(this._cursor,!1);c&&c!==this._cursor.parent&&(c=this._drillToLast(c));if(f&&c&&this._expandable(c)&&this.forceExpandFunc&&c!==this._cursor.parent){var a=this;return this.forceExpandFunc(c,"last",function(c){c&&a.setCursor(c)})}c&&this.setCursor(c);return c},_findSibling:function(f,c){for(var a=this.topLevel(f),e=a?this.firstLevelChildren:f.parent.children,g=0;g<e.length;g++)if(e[g]===f)return g===
0&&!c?a?null:f.parent:g===e.length-1&&c?a?null:this._findSibling(f.parent,c):c?e[g+1]:e[g-1];return null},_inParentChain:function(f,c){for(var a=f.parent;a;){if(a===c)return!0;a=a.parent}return!1},_getTopLevelParent:function(f){if(this.topLevel(f))return f;for(f=f.parent;f;){if(this.topLevel(f))return f;f=f.parent}return null},_onCollapse:function(f){return this._expanded(f.parent)?f:this._onCollapse(f.parent)},_scan:function(f,c,a){this.setCursor(c);var e=[];for(e.push(c);;){if(this.iterate(f))e.push(this.cursor());
else break;if(a===this.cursor())return e}return null},setCursor:function(f){this._prevCursor=this._cursor;this._cursor=f},setTree:function(f){this.firstLevelChildren=f;if(this.firstLevelChildren.length>0)this.root=this.firstLevelChildren[0].parent},scan:function(f,c){var a=this.cursor(),e=this._scan(!0,f,c);e||(e=this._scan(!1,f,c));this.setCursor(a);return e},iterate:function(f,c){return f?this._forward(c):this._backward(c)},iterateOnTop:function(f,c){var a=this._findSibling(this._getTopLevelParent(this.cursor()),
f);a?this.setCursor(a):c&&this.firstLevelChildren.length>0&&this.setCursor(f?this.firstLevelChildren[0]:this.firstLevelChildren[this.firstLevelChildren.length-1])},collapse:function(f){if(!this._cursor)return null;return this._inParentChain(this._cursor,f)?(this.setCursor(f),this._cursor):null},reset:function(){this.root=this._prevCursor=this._cursor=null;if(this.firstLevelChildren.length>0)this._cursor=this.firstLevelChildren[0],this.root=this.firstLevelChildren[0].parent},cursorMoved:function(){return this._cursor!==
this._prevCursor},cursor:function(){return this._cursor},prevCursor:function(){return this._prevCursor}};return f}();return f});
define("orion/explorers/explorerNavHandler",["i18n!orion/nls/messages","orion/webui/littlelib","orion/treeModelIterator"],function(f,i,h){var f={},c=navigator.userAgent.indexOf("iPad")!==-1,a=window.navigator.platform.indexOf("Mac")!==-1;f.ExplorerNavHandler=function(){function e(a,c,b){this.explorer=a;this.model=this.explorer.model;this._navDict=c;this._listeners=[];this._selections=[];this._currentColumn=0;var e=this._getEventListeningDiv();e.tabIndex=0;e.classList.add("selectionModelContainer");
var f=this;this._modelIterator=new h.TreeModelIterator([],{isExpanded:this.isExpanded.bind(this),isExpandable:this.explorer.renderer.isExpandable?function(b){return f.explorer.renderer.isExpandable(b)}:function(b){return f.isExpandable(b)},forceExpandFunc:this.explorer.forceExpandFunc?function(b,a,c){return f.explorer.forceExpandFunc(b,a,c)}:void 0});this._init(b);(!b||b.setFocus!==!1)&&e.focus();a=function(b){if(b.target===e){if(f.explorer.preventDefaultFunc&&f.explorer.preventDefaultFunc(b,f._modelIterator.cursor()))return!0;
if(b.keyCode===i.KEY.DOWN)return f.onDownArrow(b);else if(b.keyCode===i.KEY.UP)return f.onUpArrow(b);else if(b.keyCode===i.KEY.RIGHT)return f.onRightArrow(b);else if(b.keyCode===i.KEY.LEFT)return f.onLeftArrow(b);else if(b.keyCode===i.KEY.SPACE)return f.onSpace(b);else if(b.keyCode===i.KEY.ENTER)return f.onEnter(b)}};e.addEventListener("keydown",a,!1);this._listeners.push({type:"keydown",listener:a});a=function(){if(f.explorer.onFocus)f.explorer.onFocus(!1);else f.toggleCursor(null,!1)};e.addEventListener("blur",
a,!1);this._listeners.push({type:"blur",listener:a});a=function(){if(f.explorer.onFocus)f.explorer.onFocus(!0);else f.toggleCursor(null,!0)};e.addEventListener("focus",a,!1);this._listeners.push({type:"focus",listener:a});this._parentDiv=e}e.prototype={_init:function(a){this._linearGridMove=!1;if(a)this._selectionPolicy=a.selectionPolicy,this.preventDefaultFunc=a.preventDefaultFunc,this.postDefaultFunc=a.postDefaultFunc},_ctrlKeyOn:function(c){return a?c.metaKey:c.ctrlKey},removeListeners:function(){if(this._listeners)for(var a=
0;a<this._listeners.length;a++)this._parentDiv.removeEventListener(this._listeners[a].type,this._listeners[a].listener,!1)},focus:function(){var a=this._getEventListeningDiv();a&&a.focus()},_getEventListeningDiv:function(a){return this.explorer.keyEventListeningDiv&&typeof this.explorer.keyEventListeningDiv==="function"?this.explorer.keyEventListeningDiv(a):i.node(this.explorer._parentId)},isExpandable:function(a){return!a?!1:i.node(this.explorer.renderer.expandCollapseImageId(this.model.getId(a)))?
!0:!1},isExpanded:function(a){return!a?!1:this.explorer.myTree.isExpanded(this.model.getId(a))},refreshSelection:function(a){var c=this;this.explorer.selection&&this.explorer.selection.getSelections(function(b){c._clearSelection();for(var e=0;e<b.length;e++)c._selections.push(b[e]);c._selections.length>0&&c.cursorOn(c._selections[0],!0,!1,a)})},refreshModel:function(a,c,b,e){this._currentColumn=0;this.topIterationNodes=[];this.model=c;this._navDict=a;if(this.model.getTopIterationNodes)this.topIterationNodes=
this.model.getTopIterationNodes();else if(b)this.topIterationNodes=b;this._modelIterator.setTree(this.topIterationNodes);!e&&this.explorer.selection&&this._modelIterator.reset();this.refreshSelection(!0)},getTopLevelNodes:function(){return this._modelIterator.firstLevelChildren},_inSelection:function(a){for(var c=0;c<this._selections.length;c++)if(a===this._selections[c])return c;return-1},_clearSelection:function(a){if(a)for(a=0;a<this._selections.length;a++)this._checkRow(this._selections[a],!0);
this._selections=[]},setSelection:function(a,c){if(this._selectionPolicy==="cursorOnly")c&&this.explorer.renderer._useCheckboxSelection&&this._checkRow(a,!0);else if(this._isRowSelectable(a)){if(!c||this._selectionPolicy==="singleSelection")this._clearSelection(!0),this._checkRow(a,!1),this._selections.push(a),this._lastSelection=a;else{var b=this._inSelection(a);b>=0?(this._checkRow(a,!0),this._selections.splice(b,1)):(this._checkRow(a,!1),this._selections.push(a),this._lastSelection=a)}this.explorer.selection&&
(this.explorer.renderer.storeSelections(),this.explorer.selection.setSelections(this._selections))}},moveColumn:function(a,c){a||(a=this.currentModel());var b=this._getGridChildren(a);if(b&&b.length>1||c===0&&b){c!==0&&this.toggleCursor(a,!1);var e=this._currentColumn,f=!0;e+=c;e<0?(this._linearGridMove&&c!==0&&(this._modelIterator.iterate(!1)?a=this.currentModel():f=!1),e=f?b.length-1:this._currentColumn):e>=b.length&&(this._linearGridMove&&c!==0&&(this._modelIterator.iterate(!0)?a=this.currentModel():
f=!1),e=f?0:this._currentColumn);this._currentColumn=e;c!==0&&this.toggleCursor(a,!0);return!0}return!1},_getGridChildren:function(a){return this._navDict?this._navDict.getGridNavHolder(a):null},getCurrentGrid:function(a){a||(a=this.currentModel());return(a=this._getGridChildren(a))&&a.length>0?a[this._currentColumn]:null},toggleCursor:function(a,c){var b=this.getRowDiv(a),e=this.getCurrentGrid(a);e?(b&&(c?b.classList.add("treeIterationCursorRow"):b.classList.remove("treeIterationCursorRow")),e.domNode&&
(c?e.domNode.classList.add("treeIterationCursor"):e.domNode.classList.remove("treeIterationCursor"))):b&&(c?b.classList.add("treeIterationCursorRow_Dotted"):b.classList.remove("treeIterationCursorRow_Dotted"))},currentModel:function(){return this._modelIterator.cursor()},cursorOn:function(a,c,b,e){var b=b===void 0?!1:b,f,h;if(a||c){if(h===this._modelIterator.cursor())return;f=this._modelIterator.cursor();h=a;this._modelIterator.setCursor(h)}else f=this._modelIterator.prevCursor(),h=this._modelIterator.cursor();
if(f!==h||c)if(this.toggleCursor(f,!1),!c||h)if(this.moveColumn(null,0),this.toggleCursor(h,!0),(a=this.getRowDiv())&&!e&&!this._visible(a)&&a.scrollIntoView(!b),this.explorer.onCursorChanged)this.explorer.onCursorChanged(f,h)},getSelection:function(){return this._selections},getSelectionIds:function(){for(var a=[],c=0;c<this._selections.length;c++)a.push(this.model.getId(this._selections[c]));return a},getRowDiv:function(a){a=a?a:this._modelIterator.cursor();if(!a)return null;var a=this.model.getId(a),
c=this._navDict.getValue(a);return c&&c.rowDomNode?c.rowDomNode:i.node(a)},iterate:function(a,c,b){this.topIterationNodes.length!==0&&this._modelIterator.iterate(a,c)&&(this.cursorOn(null,!1,a),b&&this.setSelection(this.currentModel(),!0))},_checkRow:function(a,c){if(this.explorer.renderer._useCheckboxSelection){var b=this.getRowDiv(a);if(b){var e=i.node(this.explorer.renderer.getCheckBoxId(b.id)),f=c?!e.checked:!0;if(f!==e.checked)this.explorer.renderer.onCheck(b,e,f,!0)}}else this._select(a,c)},
_vpWidth:function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth},_vpHeight:function(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},_getToolBarHeight:function(a){return(a=i.node(a))?i.bounds(a).height:0},_visible:function(a){if(a.offsetWidth===0||a.offsetHeight===0)return!1;var c=0;c+=this._getToolBarHeight("staticBanner");c+=this._getToolBarHeight("titleArea");c+=this._getToolBarHeight("pageToolbar");var b=
this._getEventListeningDiv(!0).getClientRects()[0],e=this._vpHeight();this._vpWidth();for(var c=b.top>c?b.top:c,b=b.bottom<e?b.bottom:e,a=a.getClientRects(),e=0,f=a.length;e<f;e++){var h=a[e];if(h.top>=c&&h.top<=b&&h.bottom>=c&&h.bottom<=b)return!0}return!1},_select:function(a){a||(a=this._modelIterator.cursor());var c=this.getRowDiv(a);c&&(this._inSelection(a)<0?c.classList.add("checkedRow"):c.classList.remove("checkedRow"))},_onModelGrid:function(a,c){var b=this._getGridChildren(a);if(b)for(var e=
0;e<b.length;e++)if(c.target===b[e].domNode)return!0;return!1},onClick:function(a,d){var b=i.node(this.explorer.renderer.expandCollapseImageId(this.model.getId(a)));if(d.target!==b&&!this._onModelGrid(a,d))if(this.cursorOn(a,!0,!1,!0),c)this.setSelection(a,!0);else if(this._ctrlKeyOn(d))this.setSelection(a,!0);else if(d.shiftKey&&this._lastSelection){if(b=this._modelIterator.scan(this._lastSelection,a)){this._clearSelection(!0);for(var e=0;e<b.length;e++)this.setSelection(b[e],!0)}}else this.setSelection(a,
!1)},onCollapse:function(a){this._modelIterator.collapse(a)&&this.cursorOn()},onUpArrow:function(a){this.iterate(!1,!1,a.shiftKey);!this._ctrlKeyOn(a)&&!a.shiftKey&&this.setSelection(this.currentModel(),!1);a.preventDefault();return!1},onDownArrow:function(a){this.iterate(!0,!1,a.shiftKey);!this._ctrlKeyOn(a)&&!a.shiftKey&&this.setSelection(this.currentModel(),!1);a.preventDefault();return!1},_shouldMoveColumn:function(a){var c=this.currentModel(),b=this._getGridChildren(c);return b&&b.length>1?this.isExpandable(c)?
this._ctrlKeyOn(a):!0:!1},onLeftArrow:function(a){if(this._shouldMoveColumn(a))return this.moveColumn(null,-1),a.preventDefault(),!0;var c=this._modelIterator.cursor();if(!c)return!1;if(this.isExpandable(c)&&this.isExpanded(c))return this.explorer.myTree.collapse(c),a.preventDefault(),!0;this._modelIterator.topLevel(c)?this.explorer.scopeUp&&typeof this.explorer.scopeUp==="function"&&this.explorer.scopeUp():(this.cursorOn(c.parent),this.setSelection(c.parent,!1))},onRightArrow:function(a){if(this._shouldMoveColumn(a))return this.moveColumn(null,
1),a.preventDefault(),!0;var c=this._modelIterator.cursor();if(!c)return!1;if(this.isExpandable(c)&&!this.isExpanded(c))return this.explorer.myTree.expand(c),a.preventDefault(),!1},_isRowSelectable:function(a){return this.explorer.isRowSelectable?this.explorer.isRowSelectable(a):!0},onSpace:function(a){this.setSelection(this.currentModel(),!0);a.preventDefault()},onEnter:function(a){var c=this.getCurrentGrid(this._modelIterator.cursor());if(c)if(c.widget)if(typeof c.onClick==="function")c.onClick();
else typeof c.widget.focus==="function"&&c.widget.focus();else{var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,0,0,this._ctrlKeyOn(a),!1,!1,!1,0,null);c.domNode.dispatchEvent(b)}else if(this.explorer.renderer.getRowActionElement&&(c=this._modelIterator.cursor()))if(c=this.explorer.renderer.getRowActionElement(this.model.getId(c)),c.href)this._ctrlKeyOn(a)?window.open(c.href):window.location.href=c.href}};return e}();f.ExplorerNavDict=function(){function a(c){this._dict=
{};this._model=c}a.prototype={addRow:function(a,c){this._dict[this._model.getId(a)]={model:a,rowDomNode:c}},getValue:function(a){return this._dict[a]},getGridNavHolder:function(a,c){if(!a)return null;var b=this._model.getId(a);if(this._dict[b]){if(!this._dict[b].gridChildren&&c)this._dict[b].gridChildren=[];return this._dict[b].gridChildren}return null},initGridNavHolder:function(a){if(!a)return null;a=this._model.getId(a);if(this._dict[a])this._dict[a].gridChildren=null}};return a}();return f});
define("orion/explorers/explorer","i18n!orion/nls/messages,require,orion/webui/littlelib,orion/webui/treetable,orion/explorers/explorerNavHandler,orion/commands".split(","),function(f,i,h,c,a,e){var g={};g.Explorer=function(){function d(a,c,d){this.registry=a;this.renderer=d;this.selection=c;this.myTree=null}d.prototype={changedItem:function(a,c){this.myTree&&this.myTree.refresh.bind(this.myTree)(a,c,!0)},updateCommands:function(a){this.myTree&&this.myTree._renderer.updateCommands.bind(this.myTree._renderer)(a)},
makeNewItemPlaceHolder:function(a,c,d){a=this.getRow(a);if(d)return a=a.childNodes[d],a.appendChild(document.createElement("br")),d=document.createElement("span"),d.id=c+"placeHolderRow",a.appendChild(d),{tempNode:d,refNode:d};if(a){d=document.createElement("tr");d.id=c+"placeHolderRow";var e=document.createElement("td");e.id=c+"placeHolderCol";d.appendChild(e);a.appendChild(d);d=h.node(c+"placeHolderRow");a=h.node(c+"placeHolderCol");if(d&&a)return{tempNode:d,refNode:a}}return null},getRow:function(a){if(a=
this.model.getId(a))return h.node(a)},collapseAll:function(){for(var a=this._navHandler.getTopLevelNodes(),c=0;c<a.length;c++)this.myTree.collapse(a[c])},expandAll:function(a){if(a)this._expandRecursively(a);else if(this._navHandler)for(var a=this._navHandler.getTopLevelNodes(),c=0;c<a.length;c++)this._expandRecursively(a[c])},_expandRecursively:function(a){if(this._navHandler&&this._navHandler.isExpandable(a)){var c=this;this.myTree.expand(a,function(){c.model.getChildren(a,function(a){if(!(a===
void 0||a===null))for(var b=a.length,d=0;d<b;d++)c._expandRecursively(a[d])})})}},createTree:function(b,d,e){this.selection&&this.selection.setSelections([]);this.getNavHandler()&&this.getNavHandler()._clearSelection();var f=b+"innerTree",g=h.node(f);g&&h.empty(g);if(d)d.rootId=f;this.model=d;this._parentId=b;this._treeOptions=e;if(!e||e&&!e.noSelection)this.selectionPolicy=e?e.selectionPolicy:"",this._navDict=new a.ExplorerNavDict(this.model);this.myTree=new c.TableTree({id:f,model:d,parent:b,labelColumnIndex:this.renderer.getLabelColumnIndex(),
renderer:this.renderer,showRoot:e?!!e.showRoot:!1,indent:e?e.indent:void 0,onCollapse:e?e.onCollapse:void 0,tableElement:e?e.tableElement:void 0,tableBodyElement:e?e.tableBodyElement:void 0,tableRowElement:e?e.tableRowElement:void 0});this.renderer._initializeUIState();this.selectionPolicy==="cursorOnly"&&this.initNavHandler()},getNavHandler:function(){return this._navHandler},getNavDict:function(){return this._navDict},refreshSelection:function(){if(this.selection){var a=this.getNavHandler(),c=[];
if(a&&this.getNavDict())for(var d=a.getSelection(),e=0;e<d.length;e++){var f=a.getRowDiv(d[e]);f&&f.parentNode&&(f=this.getNavDict().getValue(this.model.getId(d[e])),f.model&&c.push(f.model))}this.selection.setSelections(c)}},getRootPath:function(){return this.model&&this.model.root?this.model.root.Location:null},initNavHandler:function(){var b=this._treeOptions;if(!b||b&&!b.noSelection){if(!this.getNavHandler())this._navHandler=new a.ExplorerNavHandler(this,this._navDict,{setFocus:b&&b.setFocus,
selectionPolicy:b?b.selectionPolicy:null});var c=this;this.model.getRoot(function(a){a instanceof Array?c.getNavHandler().refreshModel(c.getNavDict(),c.model,a):a.children&&a.children instanceof Array&&c.getNavHandler().refreshModel(c.getNavDict(),c.model,a.children);b&&b.setFocus&&c.getNavHandler().cursorOn(null,!1,!1,!0)})}},_lastHash:null,checkbox:!1};return d}();g.createExplorerCommands=function(a,b){function c(a){return typeof a.getItemCount==="function"?a.getItemCount()>0?b?b(a):!0:!1:!1}var g=
new e.Command({tooltip:f["Expand all"],imageClass:"core-sprite-expandAll",id:"orion.explorer.expandAll",groupId:"orion.explorerGroup",visibleWhen:function(a){return c(a)},callback:function(a){a.items.expandAll()}}),h=new e.Command({tooltip:f["Collapse all"],imageClass:"core-sprite-collapseAll",id:"orion.explorer.collapseAll",groupId:"orion.explorerGroup",visibleWhen:function(a){return c(a)},callback:function(a){a.items.collapseAll()}});a.addCommand(g);a.addCommand(h)};g.ExplorerModel=function(){function a(b,
c,d){this.rootPath=b;this.fetchItems=c;this.idPrefix=d||""}a.prototype={destroy:function(){},getRoot:function(a){var c=this;this.fetchItems(this.rootPath).then(function(d){c.root=d;a(d)})},getChildren:function(a,c){a.Children?c(a.Children):a.ChildrenLocation?this.fetchItems(a.ChildrenLocation).then(function(d){a.Children=d;c(d)}):c([])},getId:function(a){if(a.Location===this.root.Location)return this.rootId;for(var a=a.Location.replace(/[\\\/]/g,""),c=this.idPrefix,d=0;d<a.length;d++)c+=a[d].match(/[^\.\:\-\_0-9A-Za-z]/g)?
a.charCodeAt(d):a[d];return c}};return a}();g.ExplorerFlatModel=function(){function a(b,c,d){this.rootPath=b;this.fetchItems=c;this.root=d}a.prototype=new g.ExplorerModel;a.prototype.getRoot=function(a){if(this.root)a(this.root);else{var c=this;this.fetchItems(this.rootPath).then(function(d){c.root=d;a(d)})}};a.prototype.getChildren=function(a,c){a===this.root?c(this.root):c([])};return a}();g.ExplorerRenderer=function(){function a(b,c){this.explorer=c;this._init(b);this._expandImageClass="core-sprite-openarrow";
this._collapseImageClass="core-sprite-closedarrow";this._twistieSpriteClass="modelDecorationSprite"}a.prototype={_init:function(a){if(a){this._useCheckboxSelection=a.checkbox===void 0?!1:a.checkbox;this.selectionPolicy=a.singleSelection?"singleSelection":"";this._cachePrefix=a.cachePrefix;this.getCheckedFunc=a.getCheckedFunc;this.onCheckedFunc=a.onCheckedFunc;this._highlightSelection=!0;this._treeTableClass=a.treeTableClass||"treetable";if(a.highlightSelection===!1)this._highlightSelection=!1;if(!this.actionScopeId)this.actionScopeId=
a.actionScopeId}},getLabelColumnIndex:function(){return this.explorer.checkbox?1:0},initTable:function(a,c){this.tableTree=c;h.empty(a);this._treeTableClass&&a.classList.add(this._treeTableClass);this.renderTableHeader(a)},getActionsColumn:function(a,c,d,e,f){var d=d||"tool",g=this.explorer.registry.getService("orion.page.command"),h=document.createElement("td");h.id=c.id+"actionswrapper";e&&h.classList.add(e);this.actionScopeId?g.renderCommands(this.actionScopeId,h,a,this.explorer,d,null,f&&this.explorer.getNavDict()?
this.explorer.getNavDict().getGridNavHolder(a,!0):null):window.console.log("Warning, no action scope was specified.  No commands rendered.");return h},initCheckboxColumn:function(){if(this._useCheckboxSelection)return document.createElement("th")},getCheckboxColumn:function(a,c){if(this._useCheckboxSelection){var d=document.createElement("td"),e=document.createElement("span");e.id=this.getCheckBoxId(c.id);e.classList.add("core-sprite-check");e.classList.add("selectionCheckmarkSprite");e.rowId=c.id;
if(this.getCheckedFunc)e.checked=this.getCheckedFunc(a),e.checked?(this._highlightSelection&&c.classList.add("checkedRow"),e.classList.add("core-sprite-check_on")):(this._highlightSelection&&c.classList.remove("checkedRow"),e.classList.remove("core-sprite-check_on"));d.appendChild(e);var f=this;e.addEventListener("click",function(a){f.onCheck(c,a.target,a.target.checked?!1:!0,!0)},!1);return d}},getCheckBoxId:function(a){return a+"selectedState"},onCheck:function(a,c,d,e,f){(c.checked=d)?c.classList.add("core-sprite-check_on"):
c.classList.remove("core-sprite-check_on");if(this.onCheckedFunc)this.onCheckedFunc(c.rowId,d,e);this.explorer.getNavHandler()&&f&&this.explorer.getNavHandler().setSelection(this.explorer.getNavDict().getValue(a.id).model,!0)},storeSelections:function(){if(this.explorer.getNavHandler()){var a=this.explorer.getNavHandler().getSelectionIds(),c=this._getUIStatePreferencePath();c&&window.sessionStorage&&(window.sessionStorage[c+"selection"]=JSON.stringify(a))}},_restoreSelections:function(a){a=window.sessionStorage[a+
"selection"];typeof a==="string"&&(a=a.length>0?JSON.parse(a):null);var c;if(a&&this.explorer.getNavDict()){var d=[];for(c=0;c<a.length;c++){var e=this.explorer.getNavDict().getValue(a[c]);if(e&&e.rowDomNode&&e.model&&(d.push(e.model),this._highlightSelection&&e.rowDomNode.classList.add("checkedRow"),e=h.node(this.getCheckBoxId(e.rowDomNode.id))))e.checked=!0,e.classList.add("core-sprite-check_on")}this.explorer.selection&&(this.explorer.selection.setSelections(d),this.explorer.getNavHandler()&&this.explorer.getNavHandler().refreshSelection())}},
_storeExpansions:function(a){window.sessionStorage[a+"expanded"]=JSON.stringify(this._expanded)},_restoreExpansions:function(a){var c=!1,d=window.sessionStorage[a+"expanded"];typeof d==="string"&&(d=d.length>0?JSON.parse(d):null);var e;if(d)for(e=0;e<d.length;e++)if(h.node(d[e])){this._expanded.push(d[e]);var f=this;this.tableTree.expand(d[e],function(){f._restoreSelections(a)});c=!0}return!c},_getUIStatePreferencePath:function(){if(this.explorer){var a=this.explorer.getRootPath();if(this._cachePrefix&&
a)return"/"+this._cachePrefix+"/"+a.replace(/[^\.\:\-\_0-9A-Za-z]/g,"")+"/uiState"}return null},expandCollapseImageId:function(a){return a+"__expand"},updateExpandVisuals:function(a,c){var d=h.node(this.expandCollapseImageId(a.id));d&&(d.classList.add(c?this._expandImageClass:this._collapseImageClass),d.classList.remove(c?this._collapseImageClass:this._expandImageClass))},getExpandImage:function(a,c,d,e){var f=document.createElement("span");f.id=this.expandCollapseImageId(a.id);c.appendChild(f);f.classList.add(this._twistieSpriteClass);
f.classList.add(this._collapseImageClass);if(d){var g=document.createElement("span");c.appendChild(g);g.classList.add(e||"imageSprite");g.classList.add(d)}var h=this;f.onclick=function(){h.tableTree.toggle(a.id);if(h.tableTree.isExpanded(a.id))h._expanded.push(a.id);else for(var c in h._expanded)if(h._expanded[c]===a.id){h._expanded.splice(c,1);break}(c=h._getUIStatePreferencePath())&&window.sessionStorage&&h._storeExpansions(c)};return f},render:function(a,c){c.classList.add("navRow");this.renderRow(a,
c)},rowsChanged:function(){this.explorer.selectionPolicy!=="cursorOnly"&&(this.explorer.refreshSelection(),this.explorer.initNavHandler())},updateCommands:function(){for(var a=this.explorer.registry,c=h.$$array(".treeTableRow"),d=0;d<c.length;d++){var e=c[d],f=h.node(e.id+"actionswrapper"),g=a.getService("orion.page.command");g.destroy(f);this.actionScopeId&&g.renderCommands(this.actionScopeId,f,e._item,this.explorer,"tool")}},_initializeUIState:function(){this._expanded=[];var a=this._getUIStatePreferencePath();
a&&window.sessionStorage&&this._restoreExpansions(a)&&this._restoreSelections(a)}};return a}();g.SelectionRenderer=function(){function a(b,c){this._init(b);this.explorer=c}a.prototype=new g.ExplorerRenderer;a.prototype.renderTableHeader=function(a){var c=document.createElement("thead"),d=document.createElement("tr");c.classList.add("navTableHeading");this._useCheckboxSelection&&d.appendChild(this.initCheckboxColumn(a));for(var e=0,f=this.getCellHeaderElement(e);f;)f.innerHTML.length>0&&f.classList.add("navColumn"),
d.appendChild(f),f=this.getCellHeaderElement(++e);c.appendChild(d);a.appendChild(c)};a.prototype.renderRow=function(a,c){c.verticalAlign="baseline";c.classList.add("treeTableRow");var d=this.explorer.getNavDict();if(d){d.addRow(a,c);var e=this;c.addEventListener("click",function(c){if(e.explorer.getNavHandler())e.explorer.getNavHandler().onClick(a,c)},!1)}if(d=this.getCheckboxColumn(a,c))d.classList.add("checkColumn"),c.appendChild(d);for(var d=0,f=this.getCellElement(d,a,c);f;)c.appendChild(f),d===
0?this.getPrimColumnStyle?f.classList.add(this.getPrimColumnStyle()):f.classList.add("navColumn"):this.getSecondaryColumnStyle?f.classList.add(this.getSecondaryColumnStyle()):f.classList.add("secondaryColumn"),f=this.getCellElement(++d,a,c)};a.prototype.getCellHeaderElement=function(){};a.prototype.getCellElement=function(){};return a}();g.SimpleFlatModel=function(){function a(b,c,d){this.items=b;this.getKey=d;this.idPrefix=c;this.root={children:b}}a.prototype=new g.ExplorerModel;a.prototype.getRoot=
function(a){a(this.root)};a.prototype.destroy=function(){};a.prototype.getId=function(a){for(var a=this.getKey(a).replace(/[\\\/]/g,""),c="",d=0;d<a.length;d++)c+=a[d].match(/[^\.\:\-\_0-9A-Za-z]/g)?a.charCodeAt(d):a[d];return this.idPrefix+c};a.prototype.getChildren=function(a,c){a===this.root?c(this.items):c([])};return a}();return g});
define("orion/selection",["orion/EventTarget"],function(f){function i(h,c){c||(c="orion.page.selection");this._serviceRegistry=h;f.attach(this);this._serviceRegistration=h.registerService(c,this);this._selections=null}i.prototype={getSelection:function(f){f(this._getSingleSelection())},getSelections:function(f){f(this._selections||[])},_getSingleSelection:function(){return this._selections&&this._selections.length>0?this._selections[0]:null},setSelections:function(f){var c=this._selections;this._selections=
Array.isArray(f)?f.length>0?f:null:f?[f]:null;c!==this._selections&&this.dispatchEvent({type:"selectionChanged",selection:this._getSingleSelection(),selections:this._selections})}};i.prototype.constructor=i;return{Selection:i}});
define("orion/section",["orion/webui/littlelib","orion/selection","orion/commands","orion/commonHTMLFragments"],function(f,i,h,c){function a(a,d){var b=this;this._expandImageClass="core-sprite-openarrow";this._collapseImageClass="core-sprite-closedarrow";this._twistieSpriteClass="modelDecorationSprite";if(!d.id)throw Error("Missing required argument: id");this.id=d.id;if(!d.title)throw Error("Missing required argument: title");var e=d.useAuxStyle?["sectionWrapper","sectionWrapperAux","toolComposite"]:
["sectionWrapper","toolComposite"];this.domNode=document.createElement("div");a.appendChild(this.domNode);for(var h=0;h<e.length;h++)this.domNode.classList.add(e[h]);this.domNode.id=d.id;if(d.canHide)this.twistie=document.createElement("span"),this.twistie.classList.add("modelDecorationSprite"),this.twistie.classList.add("layoutLeft"),this.twistie.classList.add("sectionTitle"),this.domNode.style.cursor="pointer",this.domNode.appendChild(this.twistie),this.domNode.tabIndex=0,this.domNode.addEventListener("click",
function(a){(a.target===b.titleNode||a.target===b.twistie)&&b._changeExpandedState()},!1),this.domNode.addEventListener("keydown",function(a){a.keyCode===f.KEY.ENTER&&(a.target===b.domNode||a.target===b.titleNode||a.target===b.twistie)&&b._changeExpandedState()},!1);if(d.iconClass){var i=document.createElement("span");i.classList.add("sectionIcon");this.domNode.appendChild(i);(Array.isArray(d.iconClass)?d.iconClass:[d.iconClass]).forEach(function(a){i.classList.add(a)})}this.titleNode=document.createElement("div");
this.titleNode.id=d.id+"Title";this.titleNode.classList.add("sectionAnchor");this.titleNode.classList.add("sectionTitle");this.titleNode.classList.add("layoutLeft");this.domNode.appendChild(this.titleNode);this.titleNode.textContent=d.title;if(typeof d.getItemCount==="function")e=document.createElement("div"),e.classList.add("layoutLeft"),e.classList.add("sectionItemCount"),this.domNode.appendChild(e),e.textContent=d.getItemCount(this);this._progressNode=document.createElement("div");this._progressNode.id=
d.id+"Progress";this._progressNode.classList.add("sectionProgress");this._progressNode.classList.add("sectionTitle");this._progressNode.classList.add("layoutLeft");this._progressNode.style.visibility="hidden";this._progressNode.textContent="...";this.domNode.appendChild(this._progressNode);e=document.createElement("div");e.id=d.id+"FilterSearchBox";this.domNode.appendChild(e);this._toolActionsNode=document.createElement("div");this._toolActionsNode.id=d.id+"ToolActionsArea";this._toolActionsNode.classList.add("layoutRight");
this._toolActionsNode.classList.add("sectionActions");this.domNode.appendChild(this._toolActionsNode);this.actionsNode=document.createElement("div");this.actionsNode.id=d.id+"ActionArea";this.actionsNode.classList.add("layoutRight");this.actionsNode.classList.add("sectionActions");this.domNode.appendChild(this.actionsNode);this.selectionNode=document.createElement("div");this.selectionNode.id=d.id+"SelectionArea";this.selectionNode.classList.add("layoutRight");this.selectionNode.classList.add("sectionActions");
this.domNode.appendChild(this.selectionNode);d.slideout&&(e=c.slideoutHTMLFragment(d.id),h=document.createRange(),h.selectNode(this.domNode),e=h.createContextualFragment(e),this.domNode.appendChild(e));this._contentParent=document.createElement("div");this._contentParent.id=this.id+"Content";this._contentParent.role="region";this._contentParent.classList.add("sectionTable");this._contentParent.setAttribute("aria-labelledby",this.titleNode.id);a.appendChild(this._contentParent);d.content&&this.setContent(d.content);
this.hidden=d.hidden;if(typeof d.onExpandCollapse==="function")this._onExpandCollapse=d.onExpandCollapse;this._preferenceService=d.preferenceService;this._contentParent.style.display="none";if(this._preferenceService){var l=this;this._preferenceService.getPreferences("/window/views").then(function(a){a=a.get(l.id);if(a!==void 0)l.hidden=!a;if(!l.hidden)l._contentParent.style.display="block";l._updateExpandedState(!l.hidden,!1)})}else{if(!this.hidden)this._contentParent.style.display="block";this._updateExpandedState(!this.hidden,
!1)}this._commandService=d.commandService;this._lastMonitor=0;this._loading={}}function e(a){this._section=a;this._id=++a._lastMonitor}a.prototype={setTitle:function(a){this.titleNode.textContent=a},setContent:function(a){typeof a==="string"?this._contentParent.innerHTML=a:(this._contentParent.innerHTML="",this._contentParent.appendChild(a))},getContentElement:function(){return this._contentParent},createProgressMonitor:function(){return new e(this)},_setMonitorMessage:function(a,c){this._progressNode.style.visibility=
"visible";this._loading[a]=c;var b="",e;for(e in this._loading)b!==""&&(b+="\n"),b+=this._loading[e];this._progressNode.title=b},_monitorDone:function(a){delete this._loading[a];var a="",c;for(c in this._loading)a!==""&&(a+="\n"),a+=this._loading[c];this._progressNode.title=a;if(a==="")this._progressNode.style.visibility="hidden"},_changeExpandedState:function(){this.hidden?(this._contentParent.style.display="block",this.hidden=!1):(this._contentParent.style.display="none",this.hidden=!0);this._updateExpandedState(!this.hidden,
!0)},_updateExpandedState:function(a,c){var b=this.twistie,e=this.id;b&&(b.classList.add(a?this._expandImageClass:this._collapseImageClass),b.classList.remove(a?this._collapseImageClass:this._expandImageClass));this._preferenceService&&c&&this._preferenceService.getPreferences("/window/views").then(function(b){b.put(e,a)});this._onExpandCollapse&&this._onExpandCollapse(a,this)}};a.prototype.constructor=a;e.prototype={begin:function(a){this.status=a;this._section._setMonitorMessage(this.id,a)},worked:function(a){this.status=
a;this._section._setMonitorMessage(this.id,a)},done:function(a){this.status=a;this._section._monitorDone(this.id)}};e.prototype.constructor=e;return{Section:a}});
define("orion/widgets/input/LabeledCheckbox",["orion/objects","orion/webui/littlelib"],function(f,i){function h(c,a){f.mixin(this,c);this.node=a||document.createElement("div")}f.mixin(h.prototype,{templateString:'<label><span class="setting-label"></span><input class="setting-control settingsCheckbox" type="checkbox"/></label>',show:function(){this.node.innerHTML=this.templateString;this.mylabel=i.$(".setting-label",this.node);this.myfield=i.$(".setting-control",this.node);this.myfield.addEventListener("change",
this.change.bind(this));this.postCreate()},destroy:function(){if(this.node)i.empty(this.node),this.myfield=this.mylabel=this.node=null},setStorageItem:function(){},isChecked:function(){return this.myfield.checked},setChecked:function(c){this.myfield.checked=c},change:function(){},postCreate:function(){this.mylabel.textContent=this.fieldlabel+":";this.myfield.style.width="20px";this.editmode&&this.editmode==="readonly"&&this.myfield.setAttribute("disabled","disabled")}});return h});
define("orion/widgets/input/LabeledTextfield",["orion/objects","orion/webui/littlelib"],function(f,i){function h(c,a){f.mixin(this,c);this.node=a||document.createElement("div")}f.mixin(h.prototype,{templateString:'<div class="setting-property"><label><span class="setting-label"></span><input class="setting-control" type="text" /></label></div>',show:function(){this.node.innerHTML=this.templateString;this.mylabel=i.$(".setting-label",this.node);this.myfield=i.$(".setting-control",this.node);this.myfield.addEventListener("change",
this.change.bind(this));this.postCreate()},destroy:function(){if(this.node)i.empty(this.node),this.node=this.mylabel=this.myfield=null},setStorageItem:function(){},change:function(){this.setStorageItem(this.category,this.item,this.element,this.myfield.value,this.ui)},setValue:function(c){this.myfield.value=c},getValue:function(){return this.myfield.value},postCreate:function(){this.mylabel.textContent=this.fieldlabel+":";if(this.inputType&&this.inputType==="password")this.myfield.type="password";
this.editmode&&this.editmode==="readonly"&&this.myfield.setAttribute("readonly","true")}});return h});
define("orion/widgets/input/LabeledSelect",["orion/objects","orion/webui/littlelib","orion/widgets/input/Select"],function(f,i,h){function c(a,c){h.apply(this,arguments);this.mylabel=i.$(".setting-label",this.node)}f.mixin(c.prototype,h.prototype,{templateString:'<div class="setting-property"><label><span class="setting-label"></span><select class="setting-control"></select></label></div>',postCreate:function(){h.prototype.postCreate.call(this);this.mylabel.textContent=this.fieldlabel+":"},destroy:function(){h.prototype.destroy.call(this);
if(this.mylabel)this.mylabel=null}});return c});
define("orion/settings/ui/PluginSettings","i18n!orion/settings/nls/messages,orion/explorers/explorer,orion/section,orion/i18nUtil,orion/Deferred,orion/objects,orion/widgets/input/LabeledCheckbox,orion/widgets/input/LabeledTextfield,orion/widgets/input/LabeledSelect".split(","),function(f,i,h,c,a,e,g,d,b){function j(a,b){this.serviceRegistry=b;this.childWidgets=[];p.call(this,{cachePrefix:"pluginSettings"},a)}function m(a,b){l.call(this,a,b,new j(this,a))}function k(a){var b=a.parent,c=a.serviceRegistry,
d=a.settings;if(!a.parent||!a.serviceRegistry||!a.settings||!a.title)throw"Missing required option";this.parent=typeof b==="string"?document.getElementById("parent"):b;this.render(b,c,d,a.title)}var l=i.Explorer,p=i.SelectionRenderer,r=h.Section,q=function(a){e.mixin(this,a);this.fieldlabel=this.property.getName()};e.mixin(q.prototype,{postCreate:function(){var a=this.property,b=this.configuration.getProperties(),a=b&&typeof b[a.getId()]!=="undefined"?b[a.getId()]:a.getDefaultValue();typeof this.updateField===
"function"&&this.updateField(a)},changeProperty:null,updateField:null});var o=function(a){q.apply(this,arguments);d.apply(this,arguments)};e.mixin(o.prototype,d.prototype,q.prototype,{postCreate:function(){d.prototype.postCreate.apply(this,arguments);q.prototype.postCreate.apply(this,arguments);this.myfield.type=this.property.getType()==="number"?"number":"text"},change:function(){this.changeProperty(this.myfield.value)},updateField:function(a){this.myfield.value=a}});var n=function(a){q.apply(this,
arguments);g.apply(this,arguments)};e.mixin(n.prototype,g.prototype,q.prototype,{change:function(a){this.changeProperty(a.target.checked)},postCreate:function(){q.prototype.postCreate.call(this);g.prototype.postCreate.call(this)},updateField:function(a){this.myfield.checked=a}});var u=function(a){q.apply(this,arguments);b.apply(this,arguments)};e.mixin(u.prototype,b.prototype,q.prototype,{postCreate:function(){var a=this.property.getOptionValues(),c=this.property.getOptionLabels();this.options=a.map(function(a,
b){var d=typeof c[b]==="string"?c[b]:a;return{value:d,label:d}});b.prototype.postCreate.apply(this,arguments);q.prototype.postCreate.apply(this,arguments)},change:function(a){b.prototype.change.apply(this,arguments);var c=this.property.getOptionValues()[this.getSelectedIndex()];typeof c!=="undefined"&&this.changeProperty(c)},updateField:function(a){a=this.property.getOptionValues().indexOf(a);a!==-1&&this.setSelectedIndex(a)}});var s=function(a,b){e.mixin(this,a);if(!b)throw"parentNode is required";
this.node=b};e.mixin(s.prototype,{createElements:function(){var a=this.serviceRegistry,b=this;this.children=[];this.configAdmin=a.getService("orion.cm.configadmin");this.initConfiguration().then(function(a){b.createChildren(a)})},startup:function(){this.createElements()},destroy:function(){this.children&&this.children.forEach(function(a){a.destroy()})},addChild:function(a){this.children.push(a);this.node.appendChild(a.node);a.show()},initConfiguration:function(){var b=this.configuration;if(b)return(new a).resolve(b);
else{var c=this;return this.configPromise=this.configPromise||this.configAdmin.getConfiguration(this.setting.getPid()).then(function(a){return c.configuration=a})}},createChildren:function(a){var b=this;this.setting.getAttributeDefinitions().forEach(function(c){var d={property:c,configuration:a,serviceRegistry:b.serviceRegistry,changeProperty:b.changeProperty.bind(b,c)},e;if(c.getOptionValues())e=new u(d);else switch(c.getType()){case "boolean":e=new n(d);break;case "number":case "string":e=new o(d)}b.addChild(e)})},
changeProperty:function(a,b){this.initConfiguration().then(function(c){var d=this.setting,e=c.getProperties()||{};e[a.getId()]=b;d.isDefaults(e)?(c.remove(),this.configPromise=this.configuration=null):c.update(e)}.bind(this))}});j.prototype=new p;j.prototype.getCellElement=function(a,b,c){var d=b.getPid(),e=d+"header",a=document.createElement("section");a.id=d;a.className="setting-row";a.setAttribute("role","region");a.setAttribute("aria-labelledby",e);d=document.createElement("h3");d.id=e;d.className=
"setting-header";d.textContent=b.getName();e=document.createElement("div");e.className="setting-content";b=this.createPropertiesWidget(e,b);this.childWidgets.push(b);b.startup();a.appendChild(d);a.appendChild(e);c.appendChild(a)};j.prototype.createPropertiesWidget=function(a,b){return new s({serviceRegistry:this.serviceRegistry,setting:b},a)};j.prototype.renderTableHeader=function(){return document.createElement("div")};j.prototype.destroy=function(){this.childWidgets&&this.childWidgets.forEach(function(a){a.destroy()});
this.childWidgets=null};m.prototype=new l;m.prototype.destroy=function(){this.renderer&&this.renderer.destroy()};k.prototype={_makeSection:function(a,b,c,d){return new r(a,{id:b,title:d,useAuxStyle:!0,getItemCount:function(){return c.length}})},destroy:function(){this.explorer.destroy()},render:function(a,b,c,d){a=this._makeSection(a,"pluginsettings-section",c,d);this.explorer=new m(b);this.explorer.createTree(a.getContentElement().id,new i.SimpleFlatModel(c,"setting-",function(a){return a.getPid()}),
{tableElement:"div",tableBodyElement:"div",tableRowElement:"div"})}};return k});
define("orion/widgets/themes/editor/ThemeData",[],function(){function f(){}function i(){this.styles=[];var c=new f;c.name="Eclipse";c.annotationRuler="white";c.background="white";c.comment="green";c.keyword="#7f0055";c.text="darkSlateGray";c.string="blue";c.overviewRuler="white";c.lineNumberOdd="#444";c.lineNumberEven="#444";c.lineNumber="#444";c.currentLine="#EAF2FE";c.tag="darkorange";c.attribute="cadetBlue";c.fontSize="10pt";this.styles.push(c);c=new f;c.name="Prospecto";c.annotationRuler="white";
c.background="white";c.comment="#3C802C";c.keyword="#CC4C07";c.text="#333";c.string="#446FBD";c.overviewRuler="white";c.lineNumberOdd="silver";c.lineNumberEven="silver";c.lineNumber="silver";c.currentLine="#EAF2FE";c.tag="#CC4C07";c.attribute="cadetBlue";c.fontSize="10pt";this.styles.push(c);c=new f;c.name="Blue";c.annotationRuler="lavender";c.background="aliceBlue";c.comment="indigo";c.keyword="cornFlowerBlue";c.text="navy";c.string="cornFlowerBlue";c.overviewRuler="lavender";c.lineNumberOdd="darkSlateGray";
c.lineNumberEven="darkSlateGray";c.lineNumber="darkSlateGray";c.currentLine="white";c.tag="cornFlowerBlue";c.attribute="cadetBlue";c.fontSize="10pt";this.styles.push(c);c=new f;c.name="Ambience";c.annotationRuler="#3D3D3D";c.background="#202020";c.comment="mediumslateblue";c.keyword="cornFlowerBlue";c.text="darkseagreen";c.string="lightcoral";c.overviewRuler="white";c.lineNumberOdd="black";c.lineNumberEven="black";c.lineNumber="black";c.currentLine="lightcyan";c.tag="cornFlowerBlue";c.attribute="cadetBlue";
c.fontSize="10pt";this.styles.push(c);c=new f;c.name="Tierra";c.annotationRuler="moccasin";c.background="lemonchiffon";c.comment="darkseagreen";c.keyword="darkred";c.text="#555555";c.string="orangered";c.overviewRuler="moccasin";c.lineNumberOdd="chocolate";c.lineNumberEven="chocolate";c.lineNumber="chocolate";c.currentLine="#baa289";c.tag="darkred";c.attribute="cadetBlue";c.fontSize="10pt";this.styles.push(c);c=new f;c.name="Nimbus";c.annotationRuler="#444";c.background="dimgray";c.comment="darkseagreen";
c.keyword="darkorange";c.text="white";c.string="cornflowerblue";c.overviewRuler="#444";c.lineNumberOdd="#aaa";c.lineNumberEven="#aaa";c.lineNumber="#aaa";c.currentLine="#aabfbb";c.tag="darkorange";c.attribute="cadetBlue";c.fontSize="10pt";this.styles.push(c);c=new f;c.name="Adelante";c.annotationRuler="#E2D2B2";c.background="#F1E7C8";c.comment="#5D774E";c.keyword="#AF473B";c.text="dimgray";c.string="#DE5D3B";c.overviewRuler="#E2D2B2";c.lineNumberOdd="#AF473B";c.lineNumberEven="#AF473B";c.lineNumber=
"#AF473B";c.currentLine="#9e937b";c.tag="#AF473B";c.attribute="cadetBlue";c.fontSize="10pt";this.styles.push(c);c=new f;c.name="Raspberry Pi";c.annotationRuler="seashell";c.background="seashell";c.comment="#66B32F";c.keyword="#E73E36";c.text="dimgray";c.string="darkorange";c.overviewRuler="seashell";c.lineNumberOdd="#E73E36";c.lineNumberEven="#E73E36";c.lineNumber="#E73E36";c.currentLine="#F5B1AE";c.tag="#E73E36";c.attribute="cadetBlue";c.fontSize="10pt";this.styles.push(c)}function h(){return this.styles}
f.prototype.name="prospecto";f.prototype.annotationRuler="darkSlateGray";f.prototype.background="#EFEFEF";f.prototype.comment="#3C802C";f.prototype.keyword="#CC4C07";f.prototype.text="#333";f.prototype.string="#446FBD";f.prototype.overviewRuler="#FBFBFB";f.prototype.lineNumberOdd="white";f.prototype.lineNumberEven="white";f.prototype.lineNumber="silver";f.prototype.tag="#CC4C07";f.prototype.attribute="cadetBlue";f.prototypefontSize="10pt";i.prototype.styles=[];i.prototype.getStyles=h;i.prototype.fontSettable=
!0;i.prototype.getThemeStorageInfo=function(){return{storage:"/themes",styleset:"editorstyles",defaultTheme:"Prospecto"}};i.prototype.parseToXML=function(c){try{var a=null;if(window.DOMParser){var a=(new DOMParser).parseFromString(c,"text/xml"),e=a.getElementsByTagName("parsererror");return!e||!e.length||!e[0].childNodes.length?a:null}else return a=new ActiveXObject("Microsoft.XMLDOM"),a.async=!1,a.loadXML(c),a}catch(f){}};i.prototype.selectFontSize=function(c){console.log("fontsize: "+c)};i.prototype.importTheme=
function(c){console.log("import theme");console.log(c);var a=this.parseToXML(c.parameters.valueFor("name")),e=new f;e.name=a.getElementsByTagName("colorTheme")[0].attributes[1].value;e.annotationRuler=a.getElementsByTagName("background")[0].attributes[0].value;e.background=a.getElementsByTagName("background")[0].attributes[0].value;e.comment=a.getElementsByTagName("singleLineComment")[0].attributes[0].value;e.keyword=a.getElementsByTagName("keyword")[0].attributes[0].value;e.text=a.getElementsByTagName("foreground")[0].attributes[0].value;
e.string=a.getElementsByTagName("string")[0].attributes[0].value;e.overviewRuler=a.getElementsByTagName("background")[0].attributes[0].value;e.lineNumberOdd=a.getElementsByTagName("lineNumber")[0].attributes[0].value;e.lineNumberEven=a.getElementsByTagName("lineNumber")[0].attributes[0].value;e.lineNumber=a.getElementsByTagName("lineNumber")[0].attributes[0].value;e.currentLine=a.getElementsByTagName("selectionBackground")[0].attributes[0].value;c.items.styles.push(e);c.items.updateThemePicker(e.name);
c.items.select(e.name)};i.prototype.processSettings=function(c,a){c.fontSize||(c.fontSize={value:"10pt"});a.getPreferences("/settings",2).then(function(a){a.put("JavaScript Editor",JSON.stringify([{element:"fontFamily",value:"sans serif"},{element:"fontSize",value:c.fontSize.value},{element:"fontWeight",value:"normal"},{element:"text",value:c.text.value},{element:"background",value:c.background.value},{element:"string",value:c.string.value},{element:"annotationRuler",value:c.annotationRuler.value},
{element:"comment",value:c.comment.value},{element:"keyword",value:c.keyword.value},{element:"overviewRuler",value:c.overviewRuler.value},{element:"annotationRuler",value:c.annotationRuler.value},{element:"lineNumber",value:c.lineNumber.value},{element:"currentLine",value:c.currentLine.value},{element:"attribute",value:c.attribute.value}]))})};i.prototype.getViewData=function(){var c={top:10,left:10,width:400,height:350},a=c.left,e=c.top;c.shapes=[{type:"TEXT",name:"Line Numbers",label:"1",x:a+20,
y:e+20,fill:"darkSlateGray",family:"lineNumber",font:"9pt sans-serif"},{type:"RECTANGLE",name:"Background",x:a+46,y:e,width:290,height:c.height,family:"background",fill:"white"},{type:"TEXT",name:"Strings",label:"'text/javascript'",x:a+134,y:e+20,fill:"darkorange",family:"string",font:"9pt sans-serif"},{type:"TEXT",name:"Foreground",label:"=",x:a+124,y:e+20,fill:"darkSlateGray",family:"text",font:"9pt sans-serif"},{type:"RECTANGLE",name:"Current Line",x:a+46,y:e+87,width:290,height:18,family:"currentLine",
fill:"#eaf2fd"},{type:"TEXT",name:"HTML Attribute",label:"type",x:a+98,y:e+20,fill:"darkGray",family:"attribute",font:"9pt sans-serif"},{type:"RECTANGLE",name:"Overview Ruler",x:a+336,y:e,width:14,height:c.height,family:"overviewRuler",fill:"white"},{type:"TEXT",name:"Comments",label:"/* comment */",x:a+75,y:e+40,fill:"darkSeaGreen",family:"comment",font:"9pt sans-serif"},{type:"TEXT",name:"HTML Tag",label:"<script",x:a+55,y:e+20,fill:"darkorange",family:"keyword",font:"9pt sans-serif"},{type:"TEXT",
name:"HTML Tag",label:">",x:a+213,y:e+20,fill:"darkorange",family:"keyword",font:"9pt sans-serif"},{type:"RECTANGLE",name:"Current Line",x:a+46,y:e+87,width:290,height:18,family:"currentLine",fill:"#eaf2fd"},{type:"TEXT",name:"Strings",label:"'Result'",x:a+164,y:e+80,fill:"cornflowerBlue",family:"string",font:"9pt sans-serif"},{type:"TEXT",name:"Foreground",label:"multiply(a,b){",x:a+120,y:e+60,fill:"darkSlateGray",family:"text",font:"9pt sans-serif"},{type:"TEXT",name:"keywords",label:"function",
x:a+75,y:e+60,fill:"darkorange",family:"keyword",font:"9pt sans-serif"},{type:"TEXT",name:"Keywords",label:"var",x:a+95,y:e+80,fill:"darkorange",family:"keyword",font:"9pt sans-serif"},{type:"TEXT",name:"Foreground",label:"output = ",x:a+115,y:e+80,fill:"darkSlateGray",family:"text",font:"9pt sans-serif"},{type:"TEXT",name:"Foreground",label:";",x:a+205,y:e+80,fill:"darkSlateGray",family:"text",font:"9pt sans-serif"},{type:"TEXT",name:"keywords",label:"var",x:a+95,y:e+100,fill:"darkorange",family:"keyword",
font:"9pt sans-serif"},{type:"TEXT",name:"Foreground",label:"result = a*b;",x:a+115,y:e+100,fill:"darkSlateGray",family:"text",font:"9pt sans-serif"},{type:"TEXT",name:"keywords",label:"return",x:a+95,y:e+120,fill:"darkorange",family:"keyword",font:"9pt sans-serif"},{type:"TEXT",name:"Foreground",label:"output + result;",x:a+135,y:e+120,fill:"darkSlateGray",family:"text",font:"9pt sans-serif"},{type:"TEXT",name:"Foreground",label:"}",x:a+75,y:e+140,fill:"darkSlateGray",family:"text",font:"9pt sans-serif"},
{type:"TEXT",name:"HTML Tag",label:"<\/script>",x:a+55,y:e+160,fill:"darkorange",family:"keyword",font:"9pt sans-serif"},{type:"TEXT",name:"HTML Tag",label:"<style",x:a+55,y:e+200,fill:"darkorange",family:"keyword",font:"9pt sans-serif"},{type:"TEXT",name:"HTML Attribute",label:"type",x:a+95,y:e+200,fill:"darkGray",family:"attribute",font:"9pt sans-serif"},{type:"TEXT",name:"Foreground",label:"=",x:a+121,y:e+200,fill:"darkSlateGray",family:"text",font:"9pt sans-serif"},{type:"TEXT",name:"Strings",
label:"'text/css'",x:a+131,y:e+200,fill:"darkorange",family:"string",font:"9pt sans-serif"},{type:"TEXT",name:"HTML Tag",label:">",x:a+180,y:e+200,fill:"darkorange",family:"keyword",font:"9pt sans-serif"},{type:"TEXT",name:"CSS Class Name",label:".some-class",x:a+75,y:e+220,fill:"darkorange",family:"keyword",font:"9pt sans-serif"},{type:"TEXT",name:"CSS Class Name",label:"{",x:a+145,y:e+220,fill:"darkSlateGray",family:"text",font:"9pt sans-serif"},{type:"TEXT",name:"CSS Attribute",label:"color:",
x:a+95,y:e+240,fill:"darkSlateGray",family:"text",font:"9pt sans-serif"},{type:"TEXT",name:"CSS Value",label:"#123456",x:a+130,y:e+240,fill:"darkSlateGray",family:"string",font:"9pt sans-serif"},{type:"TEXT",name:"CSS Text",label:";",x:a+180,y:e+240,fill:"darkSlateGray",family:"text",font:"9pt sans-serif"},{type:"TEXT",name:"CSS Class Name",label:"}",x:a+75,y:e+260,fill:"darkSlateGray",family:"text",font:"9pt sans-serif"},{type:"TEXT",name:"HTML Tag",label:"</style>",x:a+55,y:e+280,fill:"darkorange",
family:"keyword",font:"9pt sans-serif"},{type:"RECTANGLE",name:"Annotation Ruler",x:a,y:e,width:46,height:c.height,family:"annotationRuler",fill:"white"}];for(var f=0;f<16;f++)c.shapes.push({type:"TEXT",name:"Line Numbers",label:f+1,x:a+20,y:e+20*f+20,fill:"darkSlateGray",family:"lineNumber",font:"9pt sans-serif"});return c};return{ThemeData:i,getStyles:h}});
define("orion/widgets/themes/ThemeBuilder","i18n!orion/settings/nls/messages,orion/commands,orion/globalCommands,orion/PageUtil,orion/webui/littlelib,orion/widgets/themes/ThemeComponent,orion/widgets/themes/editor/ThemeData,orion/widgets/input/Select,orion/widgets/input/TextField".split(","),function(f,i,h,c,a,e,g,d,b){function j(){v=null;D=y=!0;x=[];A=C=K=z=null}function m(a,b){this.name=a;this.value=b}function k(a){this.settings=[];this.themeData=a.themeData;this.processSettings=this.themeData.processSettings;
j();document.getElementById("pageActions").innerHTML='<div id="commandButtons"><div id="revertCommands" class="layoutRight sectionActions"></div><div id="userCommands" class="layoutRight sectionActions"></div></div>';document.getElementById("pageToolbar").style.paddingBottom="5px";this.commandService=a.commandService;this.preferences=a.preferences;this.initializeStorage();var a=new i.Command({name:"Cancel",tooltip:"Revert Theme",id:"orion.reverttheme",callback:function(a){this.revert(a.items)}.bind(this)}),
b=new i.Command({name:"Apply",tooltip:"Apply Theme",id:"orion.applytheme",callback:function(a){this.apply(a.items)}.bind(this)});this.commandService.addCommand(new i.Command({name:"Show Guide",tooltip:"Check Guide",id:"orion.checkGuide",callback:function(a){this.guide(a.items)}.bind(this)}));this.commandService.registerCommandContribution("themeCommands","orion.checkGuide",1);this.commandService.addCommand(a);this.commandService.registerCommandContribution("themeCommands","orion.reverttheme",2);this.commandService.addCommand(b);
this.commandService.registerCommandContribution("themeCommands","orion.applytheme",3)}function l(){if(C){C.clearRect(0,0,z.width,z.height);var a=z.height;z.width=z.width;z.height=a}}function p(a){var b;a.pageX!==void 0&&a.pageY!==void 0?(b=a.pageX,a=a.pageY):(b=a.screenX+document.body.scrollLeft+document.documentElement.scrollLeft,a=a.screenY+document.body.scrollTop+document.documentElement.scrollTop);b-=z.offsetLeft-20;a-=z.offsetTop-15;b-=K.x;a=a-K.y-42;return{x:b,y:a}}function r(a){var b=p(a),
a=b.x,b=b.y;A=[];for(var c=0;c<x.length;c++)if(x[c].mouseOver(a,b)){z.style.cursor="crosshair";x[c].id=c;A.push(x[c]);break}else z.style.cursor=""}function q(){z.style.cursor=""}function o(a,b){var c=!1;if(b)for(var d in a)if(a[d]===b){c=!0;break}return c}function n(a,b){for(var c=t+40,d=[],f=0,g=0;g<b.length;g++){var h=b[g];if(o(d,h.family)===!1&&h.description){var i=u+10+f*28,j=h.x-6+(h.width+12)*0.5,k=h.y-6+(h.height+12)/2;a.beginPath();switch(h.family){case "background":a.beginPath();a.moveTo(j+
70,i-4);a.lineTo(t+50,i-4);a.strokeStyle="rgba(187,0,0,0.7)";a.lineWidth=0.5;a.stroke();e.drawArc(a,j+70,i-4,3,0,2*Math.PI,!1,null,"rgba(187,0,0,0.7)");break;case "Side":a.beginPath();a.moveTo(j+30,i-4);a.lineTo(t+50,i-4);a.strokeStyle="rgba(187,0,0,0.7)";a.lineWidth=0.5;a.stroke();e.drawArc(a,j+30,i-4,3,0,2*Math.PI,!1,null,"rgba(187,0,0,0.7)");break;default:a.moveTo(j,k),a.lineTo(j,i-4),a.lineTo(t+50,i-4),a.strokeStyle="rgba(187,0,0,0.7)",a.lineWidth=0.5,a.stroke(),e.drawArc(a,j,k,3,0,2*Math.PI,
!1,null,"rgba(187,0,0,0.7)")}a.closePath();a.globalAlpha=1;e.drawText(a,h.description.toUpperCase(),s+5+c,i,"bold 8pt sans-serif","#333");h.family&&d.push(h.family);f++}}e.drawText(a,"CLICK DIAGRAM TO STYLE",s+5+c,i+50,"bold 8pt sans-serif","#cc0000");e.drawText(a,"PRESS APPLY BUTTON TO",s+5+c,i+65,"bold 8pt sans-serif","#cc0000");e.drawText(a,"APPLY PREVIEW",s+5+c,i+80,"bold 8pt sans-serif","#cc0000");document.getElementById("stringcontainer").style.display="none"}var u=10,s=10,t=350,v=null,w=!0,
y=!0,F=!1,D=!0,x=[],z=null,K,C=null,A=null;m.prototype.name=void 0;m.prototype.value=void 0;k.prototype.fontSize=void 0;k.prototype.applyColor=function(){var b=document.getElementById(this.themebuilder.colorFieldId).firstChild.value;if(this.themebuilder.validateHex(b))x[v.id].fill=b,this.themebuilder.updateFamily(x[v.id].family,b),w=!1,this.themebuilder.refresh(),x[v.id].glow(t,u),this.themebuilder.drawPicker(C,x[v.id]),a.node("pickercontainer").style.display="none",a.node("savecontainer").style.display=
"",a.node("stringcontainer").style.display=""};k.prototype.colorFieldId=void 0;k.prototype.settings=[];k.prototype.AUTONAME=!1;k.prototype.template='<div id="themeContainer"><canvas id="orionui" width="800" height="380" style="padding-top:20px;"></canvas><div id="sizecontainer" style="display:none;"><span class="settingsLabel">Font Size:</span><div id="fontsizepicker" class="fontsizepicker"></div></div><div id="pickercontainer" style="display:block;"><span class="settingsLabel">Theme:</span><div id="themepicker" class="themepicker"></div></div><br><div id="savecontainer" style="display:none;"><span class="settingsLabel">New theme name:</span><div id="themesaver" class="themesaver"></div></div><div id="stringcontainer" style="position:absolute;left:425px;top:330px;display:none;"><span>OR HEX: </span><div id="colorstring" class="colorfield"></div><button class = "commandButton" style="padding:5px;font-size:9pt;"type="button" id="colorButton"}">ok</button></div></div>';
var M=["white,seashell,cornsilk,lemonchiffon,lightyellow,palegreen,paleturquoise,aliceblue,lavender,plum".split(","),"lightgray,pink,bisque,moccasin,khaki,lightgreen,lightseagreen,lightcyan,cornflowerblue,violet".split(","),"silver,lightcoral,sandybrown,orange,palegoldenrod,chartreuse,mediumturquoise,skyblue,mediumslateblue,orchid".split(","),"gray,red,orangered,darkorange,yellow,limegreen,darkseagreen,royalblue,slateblue,mediumorchid".split(","),"dimgray,crimson,chocolate,coral,gold,forestgreen,seagreen,blue,blueviolet,darkorchid".split(","),
"darkslategray,firebrick,saddlebrown,sienna,olive,green,darkcyan,mediumblue,darkslateblue,darkmagenta".split(","),"black,darkred,maroon,brown,darkolivegreen,darkgreen,midnightblue,navy,indigo,purple".split(",")];k.prototype.colornames=M;k.prototype.initializeStorage=function(){var a=this,b=this.themeData.getThemeStorageInfo(),c=this.themeData;this.preferences.getPreferences(b.storage,2).then(function(d){var e=d.get(b.styleset),f=d.get("selected");if(!e)e=c.getStyles(),d.put(b.styleset,JSON.stringify(e)),
a.styleset=e;f||(f={selected:b.defaultTheme},d.put("selected",JSON.stringify(f)));a.addThemePicker()})};k.prototype.addAdditionalCommand=function(a){var b=new i.ParametersDescription([new i.CommandParameter("name","text",f["Commit message:"],"",4)],{hasOptionalParameters:!1});this.commandService.addCommand(new i.Command({name:a.name,tooltip:a.tip,parameters:b,id:a.id,callback:function(b){a.callback(b)}.bind(this)}));this.commandService.registerCommandContribution("themeCommands",a.id,4)};k.prototype.validateHex=
function(a){var b=!0;/^(#)?([0-9a-fA-F]{3})([0-9a-fA-F]{3})?$/.test(a)===!1&&(b=!1);return b};k.prototype.clear=l;k.prototype.refresh=function(){this.clear();F===!0&&this.drawOutlineData()};k.prototype.updateFamily=function(a,b){for(var c=0;c<x.length;c++)if(x[c].family){if(x[c].family===a)x[c].fill=b;for(var d in this.settings)if(this.settings[d].name===a){this.settings[d].value=b;break}}};k.prototype.drawPicker=function(a,c){var d=t+40;e.drawText(a,c.description.toUpperCase(),s+d,u+10,"bold 9pt sans-serif",
"#555");e.drawText(a,"COLOR:",s+d,u+50,"8pt sans-serif","#555");e.drawRectangle(a,s+d+100,u+40,50,10,c.fill,null);e.drawText(a,"COLOR STRING:",s+d,u+70,"8pt sans-serif","#555");e.drawText(a,c.fill,s+d+100,u+70,"8pt sans-serif","#555");e.drawLine(a,s+d,u+25,s+d+190,u+25,10,"#555");e.drawLine(a,s+d,u+85,s+d+190,u+85,5,"#555");e.drawText(a,"NEW COLOR:",s+d,u+115,"bold 8pt sans-serif","#555");if(D===!0){for(d=0;d<7;d++)for(var f=1;f<11;f++){var g=e.drawArc(a,s+t+f*20+25,u+90+d*20+50,7,0,2*Math.PI,!1,
null,M[d][f-1]);g.paintchip=!0;x.push(g)}D=!1}else for(d=0;d<x.length;d++)x[d].paintchip&&x[d].render();d=document.getElementById("stringcontainer");d.style.display="";d.zIndex=1;d=document.getElementById(this.colorFieldId);if(!this.colfld)this.colfld=new b({},d),this.colfld.show(),this.colfld.width("100px");d=document.getElementById("colorButton");d.themebuilder=this;d.onclick=this.applyColor};k.prototype.colfld=void 0;k.prototype.mouseDown=function(b){w=!1;for(var c=p(b),b=c.x,c=c.y,d=0;d<x.length;d++)if(x[d].mouseOver(b,
c))x[d].id=d,A=[],this.refresh(),A.push(x[d]);if(A.length>0){for(c=b=0;c<A.length;c++)A[c].width<A[b].width&&(b=c);w=A.length>0?!0:!1;switch(A[b].type){case "ELLIPSE":x[v.id].fill=A[b].fill;this.updateFamily(x[v.id].family,A[b].fill);w=!1;this.refresh();x[v.id].glow(t,u);this.drawPicker(C,x[v.id]);a.node("pickercontainer").style.display="none";a.node("savecontainer").style.display="";if(this.AUTONAME===!1)this.themeSaver.setValue(this.themeSelect.getSelected()),this.AUTONAME=!0;break;case "RECTANGLE":case "ROUNDRECTANGLE":case "TEXT":A[b].glow(t,
u),this.drawPicker(C,A[b]),v=A[b]}}};k.prototype.familyShown=o;k.prototype.overview=n;k.prototype.getCurrentSettings=function(){return this.settings};k.prototype.addData=function(a){this.settings=[];var b;F=!0;if(a){this.dataset=a;for(var c=0;c<a.shapes.length;c++)b=a.shapes[c].fill?a.shapes[c].fill:a.shapes[c].line,this.settings[a.shapes[c].family]=new m(a.shapes[c].family,b)}};k.prototype.drawShape=function(a,b){var c;switch(a.type){case "RECTANGLE":c=e.drawRectangle(C,a.x,a.y,a.width,a.height,
b,"#CCC");break;case "TEXT":c=e.drawText(C,a.label,a.x,a.y,a.font,b);break;case "ROUNDRECTANGLE":c=e.roundRect(C,a.x,a.y,a.width,a.height,5,b,"#CCC");break;case "LINE":e.drawLine(C,a.x1,a.y1,a.x2,a.y2,a.linewidth,b);break;case "TRIANGLE":e.drawTriangle(C,a.x1,a.y1,a.x2,a.y2,a.x3,a.y3,b);break;case "IMAGE":var d=new Image;d.onload=function(){C.drawImage(d,a.x,a.y)};d.src=a.source}if(c)c.description=a.name,c.family=a.family,c.paintchip=!1,x.push(c)};k.prototype.drawOutlineData=function(b){b&&this.addData(b);
b=a.bounds(a.node("themeContainer"));K={x:b.left,y:b.top,w:b.width,h:b.height};z||(z=document.getElementById("orionui"),C=z.getContext("2d"),z.addEventListener("mousedown",this.mouseDown.bind(this),!1),z.addEventListener("mousemove",r,!1),z.addEventListener("mouseup",q,!1));if(y===!0){for(var c in this.dataset.shapes){if(this.settings&&this.settings[this.dataset.shapes[c].family]){var d=this.settings[this.dataset.shapes[c].family].value;this.dataset.shapes[c].fill?this.dataset.shapes[c].fill=d:this.dataset.shapes[c].line=
d}this.drawShape(this.dataset.shapes[c],this.dataset.shapes[c].fill,this.dataset.shapes[c].line,this.dataset.shapes[c].font)}y=!1}else for(d in x)x[d].paintchip||x[d].render();w&&n(C,x)};k.prototype.processSettings=function(){};k.prototype.apply=function(b){this.processSettings(this.settings,this.preferences);var c=this.settings.name,d=b.themeData.getThemeStorageInfo();if(a.node("themesaver").firstChild.value.length>0){b={};b.name=a.node("themesaver").firstChild.value;for(var e in this.settings)if(c=
this.settings[e].name,c!=="name")b[c]=this.settings[e].value;if(this.fontSize)b.fontSize=this.fontSize;e=!1;for(var f in this.styles)if(this.styles[f].name===b.name){this.styles[f]=b;e=!0;break}e||this.styles.push(b);c=b.name;if(a.node("themesaver").value)a.node("themesaver").value=""}var g=this.styles,h={selected:c};this.preferences.getPreferences(d.storage,2).then(function(a){a.put(d.styleset,JSON.stringify(g));a.put("selected",JSON.stringify(h))});a.node("savecontainer").style.display="none";a.node("pickercontainer").style.display=
"";this.updateThemePicker(c);this.AUTONAME=!1};k.prototype.revert=function(){this.initializeStorage();this.guide();a.node("pickercontainer").style.display="";a.node("savecontainer").style.display="none";this.AUTONAME=!1};k.prototype.guide=function(b){this.refresh();w=!0;b=this.themeData.getViewData();this.drawOutlineData(b);a.node("stringcontainer").style.display="none"};k.prototype.select=function(a){for(var b in this.styles)if(this.styles[b].name===a){this.settings.name=a;for(var c in this.settings)if(c!==
"name")this.settings[c].value=this.styles[b][this.settings[c].name];break}l();j();this.refresh()};k.prototype.selectFontSize=function(a){this.settings.fontSize={value:a};this.themeData.selectFontSize(a);this.fontSize=a};k.prototype.addFontSizePicker=function(){for(var a=document.getElementById("fontsizepicker"),b=[],c=8;c<19;c++){var e={value:c+"pt",label:c+"pt"};if(c===10)e.selected="true";this.fontSize="10pt";b.push(e)}if(!this.sizeSelect)this.sizeSelect=new d({options:b},a),this.sizeSelect.setStorageItem=
this.selectFontSize.bind(this),this.sizeSelect.show()};k.prototype.addThemePicker=function(){var a=[],c=this,e,f=this,g=this.themeData.getThemeStorageInfo();this.preferences.getPreferences(g.storage,2).then(function(h){(e=h.get("selected"))&&(e=JSON.parse(e));(h=h.get(g.styleset))&&(h=JSON.parse(h));if(!h)h=f.styleset;e||(e={selected:"Orion"});if(h)for(var i in h){var j={value:h[i].name,label:h[i].name};if(e&&h[i].name===e.selected)j.selected=!0;a.push(j);c.styles=h}e&&this.select(e.selected);i=document.getElementById("themepicker");
if(!this.themeSelect)this.themeSelect=new d({options:a},i),this.themeSelect.setStorageItem=c.select.bind(c),this.themeSelect.show(),i=document.getElementById("themesaver"),this.themeSaver=new b({},i),this.themeSaver.show()}.bind(this))};k.prototype.updateThemePicker=function(a){var b=[],c;for(c in this.styles){var e={value:this.styles[c].name,label:this.styles[c].name};if(a&&this.styles[c].name===a)e.selected=!0;b.push(e);this.themeSelect.destroy();e=document.createElement("div");e.id="themepicker";
for(var f=document.getElementById("themepicker"),g=f.firstChild;g;)f.removeChild(g),g=f.firstChild;f.appendChild(e);this.themeSelect=new d({options:b},e);this.themeSelect.setStorageItem=this.select.bind(this);this.themeSelect.show()}};k.prototype.renderData=function(a,b){var c=this.themeData.getViewData();b&&b==="INITIALIZE"&&(y=!0);a.innerHTML=this.template;var d=this.themeData.getThemeStorageInfo(),e=document.getElementById("colorstring");this.colorFieldId=d.styleset+"colorField";e.id=this.colorFieldId;
this.drawOutlineData(c);this.addFontSizePicker();this.addThemePicker();this.commandService.renderCommands("themeCommands",document.getElementById("revertCommands"),this,this,"button")};k.prototype.destroy=function(){var a=this.themeSelect;a&&a.destroy();(a=this.themeSaver)&&a.destroy();(a=this.colfld)&&a.destroy();(a=this.fontsizepicker)&&a.destroy()};return k});
define("orion/widgets/themes/container/ThemeData",["orion/widgets/themes/container/ThemeSheetWriter"],function(f){function i(){}function h(){this.styles=[];var a=new i;a.name="Orion";a.navbar="#333";a.button="#EFEFEF";a.location="#efefef";a.selection="FEC";a.sidepanel="#FBFBFB";a.mainpanel="white";a.toolpanel="white";a.navtext="#bfbfbf";a.content="#3087B3";a.search="#444";a.breadcrumb="#3087B3";a.separator="#333";this.styles.push(a);a=new i;a.name="Green Zone";a.navbar="seagreen";a.button="lavender";
a.location="darkseagreen";a.selection="moccasin";a.sidepanel="aliceblue";a.mainpanel="white";a.toolpanel="white";a.navtext="#FBFBFB";a.content="darkgreen";a.search="darkgreen";a.breadcrumb="#3087B3";a.separator="seagreen";this.styles.push(a);a=new i;a.name="Pretty In Pink";a.navbar="plum";a.button="lavender";a.location="pink";a.selection="lavender";a.sidepanel="seashell";a.mainpanel="white";a.toolpanel="white";a.navtext="#FBFBFB";a.content="mediumorchid";a.search="violet";a.breadcrumb="#3087B3";a.separator=
"plum";this.styles.push(a);a=new i;a.name="Blue Monday";a.navbar="cornflowerblue";a.button="lavender";a.location="skyblue";a.selection="lavender";a.sidepanel="aliceblue";a.mainpanel="white";a.toolpanel="white";a.navtext="#FBFBFB";a.content="royalblue";a.search="royalblue";a.breadcrumb="#3087B3";a.separator="cornflowerblue";this.styles.push(a);a=new i;a.name="Vanilla Skies";a.navbar="sandybrown";a.button="lemmonchiffon";a.location="cornsilk";a.selection="lemonchiffon";a.sidepanel="white";a.mainpanel=
"white";a.toolpanel="white";a.navtext="lemonchiffon";a.content="chocolate";a.search="moccasin";a.breadcrumb="#3087B3";a.separator="sandybrown";this.styles.push(a);a=new i;a.name="Beetlejuice";a.navbar="indigo";a.button="slateblue";a.location="darkslateblue";a.selection="silver";a.sidepanel="lavender";a.mainpanel="white";a.toolpanel="white";a.navtext="#FBFBFB";a.content="mediumslateblue";a.search="#444";a.breadcrumb="#3087B3";a.separator="indigo";this.styles.push(a);a=new i;a.name="Red";a.navbar="#CD2127";
a.button="#777777";a.location="#D85F56";a.selection="lightcoral";a.sidepanel="#EFDAB2";a.mainpanel="#FDFADD";a.toolpanel="#FDFADD";a.navtext="#FBFBFB";a.content="darkred";a.search="#D85F56";a.breadcrumb="darkred";a.separator="#CD2127";this.styles.push(a)}function c(){return this.styles}i.prototype.name="Orion";i.prototype.navbar="#333";i.prototype.button="#EFEFEF";i.prototype.location="#333";i.prototype.breadcrumb="#3087B3";i.prototype.separator="#333";i.prototype.selection="FEC";i.prototype.sidepanel=
"#FBFBFB";i.prototype.mainpanel="white";i.prototype.toolpanel="white";i.prototype.navtext="#bfbfbf";i.prototype.content="#3087B3";i.prototype.search="#444";h.prototype.styles=[];h.prototype.getStyles=c;h.prototype.getThemeStorageInfo=function(){return{storage:"/themes",styleset:"styles",defaultTheme:"orion"}};h.prototype.getViewData=function(){for(var a={top:10,left:10,width:350,height:350,shapes:[{type:"RECTANGLE",name:"Navigation Bar",x:10,y:10,width:350,height:32,family:"navbar",fill:"#333",order:1},
{type:"TEXT",name:"Navigation Text",label:"UserName",x:290,y:30,family:"navtext",fill:"#bfbfbf",font:"8pt sans-serif"},{type:"ROUNDRECTANGLE",name:"Search Box",x:215,y:20,width:70,height:12,family:"search",fill:"#444",order:3},{type:"RECTANGLE",name:"Tool Panel",x:150,y:71,width:209,height:30,family:"toolpanel",fill:"white",order:4},{type:"RECTANGLE",name:"Selection Bar",x:155,y:133,width:200,height:20,family:"selection",fill:"#FEC",order:7},{type:"RECTANGLE",name:"Location",x:10,y:42,width:350,height:29,
family:"location",fill:"#efefef",order:8},{type:"TEXT",name:"Navigation Text",label:"Navigator",x:60,y:30,family:"navtext",fill:"#bfbfbf",font:"8pt sans-serif",order:2},{type:"TEXT",name:"Content",label:"Breadcrumb",x:15,y:60,family:"content",fill:"#3087B3",font:"8pt sans-serif"},{type:"TEXT",name:"Content",label:"/",x:78,y:60,family:"content",fill:"#3087B3",font:"8pt sans-serif",order:9},{type:"TEXT",name:"Content",label:"Location",x:84,y:60,family:"content",fill:"#3087B3",font:"8pt sans-serif"},
{type:"RECTANGLE",name:"Main Panel",x:150,y:101,width:209,height:258,family:"mainpanel",fill:"white",order:6},{type:"ROUNDRECTANGLE",name:"Button",x:155,y:76,width:37,height:20,family:"button",fill:"#EFEFEF",order:11},{type:"TEXT",name:"Button Text",label:"Button",x:158,y:90,family:"navbar",fill:"#333",font:"8pt sans-serif"},{type:"TRIANGLE",name:"userMenu",x1:353,y1:24,x2:347,y2:24,x3:350,y3:29,family:"userMenu",fill:"#BFBFBF"},{type:"TRIANGLE",name:"userMenu",x1:20,y1:88,x2:26,y2:88,x3:23,y3:93,
family:"userMenu",fill:"#BFBFBF"},{type:"TEXT",name:"Section Text",label:"Section",x:30,y:94,family:"navbar",fill:"#333",font:"8pt sans-serif"},{type:"LINE",name:"Line Color",x1:150,y1:101,x2:360,y2:101,linewidth:2,fill:"#DEDEDE"},{type:"LINE",name:"Line Color",x1:150,y1:71,x2:150,y2:360,linewidth:2,fill:"#DEDEDE"},{type:"LINE",name:"Line Color",x1:20,y1:100,x2:140,y2:100,linewidth:2,fill:"#DEDEDE"},{type:"RECTANGLE",name:"Side Panel",x:10,y:71,width:140,height:289,family:"sidepanel",fill:"#FBFBFB",
order:12},{type:"TRIANGLE",name:"userMenu",x1:353,y1:24,x2:347,y2:24,x3:350,y3:29,family:"userMenu",fill:"#BFBFBF"},{type:"TRIANGLE",name:"userMenu",x1:20,y1:88,x2:26,y2:88,x3:23,y3:93,family:"userMenu",fill:"#BFBFBF"},{type:"TEXT",name:"Navigation Text",label:"Navigator",x:60,y:30,family:"navtext",fill:"#bfbfbf",font:"8pt sans-serif",order:2},{type:"TRIANGLE",name:"userMenu",x1:353,y1:24,x2:347,y2:24,x3:350,y3:29,family:"userMenu",fill:"#BFBFBF"},{type:"TRIANGLE",name:"userMenu",x1:20,y1:88,x2:26,
y2:88,x3:23,y3:93,family:"userMenu",fill:"#BFBFBF"}]},c=0;c<3;c++)a.shapes.push({type:"TEXT",name:"content",label:"org.eclipse.orion.content",x:170,y:127+20*c,fill:"#3087B3",family:"content"});for(c=0;c<3;c++)a.shapes.push({type:"TEXT",name:"content",label:"Item",x:25,y:115+20*c,fill:"#3087B3",family:"content"});for(c=0;c<3;c++)a.shapes.push({type:"TRIANGLE",name:"twisty",x1:160,y1:121+c*20,x2:165,y2:124+c*20,x3:160,y3:127+c*20,family:"navbar",fill:"#333"});a.shapes.push({type:"IMAGE",name:"logo",
x:15,y:18,source:"../../images/orion-transparent.png",family:"logo"});return a};h.prototype.processSettings=function(a){var a=(new f.ThemeSheetWriter).getSheet(a),c=document.createElement("STYLE");c.appendChild(document.createTextNode(a));(document.getElementsByTagName("HEAD")[0]||document.documentElement).appendChild(c)};return{ThemeData:h,getStyles:c}});
define("orion/widgets/settings/SplitSelectionLayout",["i18n!orion/settings/nls/messages","require","orion/webui/littlelib","orion/objects"],function(f,i,h,c){function a(a,f,d){c.mixin(this,a);this.selectionNode=f;this.contentNode=d;this.itemToIndexMap=null;this.toolbar=h.node(this.pageActions);this.selectionNode.innerHTML=this.categoriesTemplateString;this.contentNode.innerHTML=this.contentTemplateString;this.navbar=h.$(".navbar",this.selectionNode);this.table=h.$(".split-selection-table",this.contentNode)}
c.mixin(a.prototype,{categoriesTemplateString:'<div id="categories" class="categories"><div id="categoryNode" class="sidePanelMargins"><ul class="navbar" role="tablist" aria-labelledby="content-title"></ul></div></div>',contentTemplateString:'<div class="settings" role="tabpanel">\t<div class="split-selection-table"></div></div>',show:function(){this.itemToIndexMap={};this.drawUserInterface()},updateToolbar:function(){this.toolbar&&h.empty(this.toolbar)},addCategory:function(a,c){var c=typeof c===
"undefined"?0:c,d=document.createElement("li");d.classList.add("navbar-item");d.setAttribute("role","tab");d.setAttribute("aria-selected","false");d.tabIndex=-1;d.textContent=a.textContent;Object.keys(a).forEach(function(b){b==="show"||b==="onclick"?d.addEventListener("click",a[b]):d.setAttribute(b,a[b])});this.navbar.appendChild(d);this.itemToIndexMap[a.id]=c},selectCategory:function(a){if(this.selectedCategory)this.selectedCategory.classList.remove("navbar-item-selected"),this.selectedCategory.setAttribute("aria-selected",
"false"),this.selectedCategory.tabIndex=-1;if(a)this.selectedCategory=h.node(a);this.selectedCategory.classList.add("navbar-item-selected");this.selectedCategory.setAttribute("aria-selected","true");this.contentNode.setAttribute("aria-labelledby",a);this.selectedCategory.tabIndex=0;this.selectedCategory.focus()},showSettings:function(a){this.selectCategory(a);this.updateToolbar(a)},drawUserInterface:function(){h.empty(this.navbar);var a=this,c;this.navbar.addEventListener("keypress",function(d){if(d.keyCode===
h.keys.LEFT||d.keyCode===h.KEY.UP)a.selectedCategory.previousSibling&&(c=document.createEvent("MouseEvents"),c.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),a.selectedCategory.previousSibling.dispatchEvent(c));else if((d.keyCode===h.KEY.RIGHT||d.keyCode===h.KEY.DOWN)&&a.selectedCategory.nextSibling)c=document.createEvent("MouseEvents"),c.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),a.selectedCategory.nextSibling.dispatchEvent(c)})}});return a});
define("orion/widgets/plugin/ServiceCarousel",["i18n!orion/settings/nls/messages","orion/objects","orion/webui/littlelib"],function(f,i,h){function c(a,c){var d=a.style;d.left=c.left+"px";d.top=c.top+"px";d.width=c.width+"px";d.height=c.height+"px"}function a(a,c){i.mixin(this,a);this.node=document.createElement("div");if(!this.node)throw Error("parentNode is required");c.appendChild(this.node)}i.mixin(a.prototype,{serviceState:!1,pointer:0,box:null,closedIcon:"data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAwAAAANCAYAAACdKY9CAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wCCQ46FewKfYYAAAF4SURBVCjPbZEvyFNhGMV/590ciANhjNs2nC66osHiJ8b9cdVgN4uKyWbRaDGZBIvwYRB2723WBUEEy5igYeZxYQzd7t2x7IUFn/bAOec55zxK05TxeEyWZZds3wEeAXeBP8An4I3tr5PJZJemKQLIsiyxfQ6c8f95V1XVw+l0utdsNrsInEsaA5akE6Btx/3Vfr9/HiTdOIIBKMsS29gGOCU/bTQanWD7QVQry1Lz+ZzFYsFutyOEgCQkGbhg+1Zd0vRIkG2KomC5XLJarej3+3S7XUII8dJZHehIihaQxHq9ZrvdUhQFzWaTdrvNEXO1DvwCrkSjh8OBJEnodrv0ej1arVZMD/CjLumj7SexoSRJGAwGdDodarVaBFqSbH9WlmU3gS9RHSCEgG1iw8fW/gLXAvDd9gfbhBAIIThmOf4hZnux2Wx+CyDP88tVVb2XdC9mOVUHXo9Go8eSCFmWMRwOC+A+cBt4C/y0/c32S+C6pGeSyPOcfyAyt4A7QPcNAAAAAElFTkSuQmCC",
openIcon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAMCAYAAAC5tzfZAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wCCQ46NddkXU4AAAFuSURBVCjPXZG/q9NwFMU/5yYQOhVKoF1SDK9OOjl1URxcQl+G5/LgLeJf4K7wRjdBxMXRxcFR6TfZ3e3iUGe3DKXYQSEk10GjwbPdy+X8uEdVVVEUBVVVJcBt4MrdHwI3gG/u/lHSO3f/vNlsfoQQEEBd19O+799IunR3JAHg7gxw92Bmj4uiaLTdbifAe0nnkvDfl+IfxvMnSUUs6Q5wLom+7+m6TmMFSYrjeFjcdfd7MfBozLjb7WiaBjPD3ZlOp6zXa8VxPNh9YsCDgdTMmM/nHI9H9vs9TdOQpilRFI3cct+A7+PgWZaxXC5JkoQsy8jznP/w04Aw2JNEFEXkec5isWC1WjGZTIZvDrk+KIRwC/jyJzQAfd9zOByYzWZ/s42wNklfgZejXtzMSNMUMxsrALx1952G46qqnrr7tZklQ8EjhRZ40XXddVmWrdV1jSROp9Nz4MzdL4BX7h6A18ClpJtt2z4ry7INIfAL982ks01Z8EgAAAAASUVORK5CYII=",
templateString:'<div class="plugin-service-carousel" ><div class="serviceContainer"><div class="serviceContainerClosed" tabindex="0" role="button" aria-pressed="false">${Services}</div><div class="serviceCount">0</div></div><div class="serviceRails serviceRailsHidden" tabindex="0" role="group"><div class="leftButton leftButtonArea" role="presentation"><span class="leftCarousel carouselControl">&lt;</span></div><div class="listContainer" role="presentation"><ul class="serviceList"></ul></div><div class="rightButton rightButtonArea" role="presentation"><span class="rightCarousel carouselControl">&gt;</span></div></div></div>',
createElements:function(){this.node.innerHTML=this.templateString;h.processTextNodes(this.node,f);var a=this.serviceLabel=h.$(".serviceContainerClosed",this.node);this.serviceCount=h.$(".serviceCount",this.node);var c=this.rails=h.$(".serviceRails",this.node);this.leftbutton=h.$(".leftButton",this.node);this.listContainer=h.$(".listContainer",this.node);this.testlist=h.$(".serviceList",this.node);this.rightbutton=h.$(".rightButton",this.node);h.$(".leftCarousel",this.node).addEventListener("click",
this.slideLeft.bind(this));h.$(".rightCarousel",this.node).addEventListener("click",this.slideRight.bind(this));a.addEventListener("click",this.showServices.bind(this));a.addEventListener("keypress",this.onServiceClick.bind(this));c.addEventListener("mouseenter",this.showButtons.bind(this));c.addEventListener("mouseleave",this.hideButtons.bind(this));c.addEventListener("focus",this.showButtons.bind(this));c.addEventListener("blur",this.hideButtons.bind(this));c.addEventListener("keypress",this.handleKeypress.bind(this));
this.postCreate()},destroy:function(){if(this.node)this.node=this.serviceLabel=this.serviceCount=this.rails=this.leftbutton=this.listContainer=this.testlist=this.rightbutton=null},postCreate:function(){var a=h.bounds(this.node.parentNode);this.addData(this.serviceData);this.serviceLabel.textContent=f.Services;this.serviceCount.textContent=this.serviceData.length;this.node.style.width=a.width-63+"px"},show:function(){this.createElements()},expand:function(){this.rails.classList.remove("serviceRailsHidden");
this.rails.classList.add("serviceRailsVisible");this.serviceLabel.classList.remove("serviceContainerClosed");this.serviceLabel.classList.add("serviceContainerOpen");this.serviceState=!0},collapse:function(){this.serviceLabel.classList.remove("serviceContainerOpen");this.serviceLabel.classList.add("serviceContainerClosed");this.rails.classList.remove("serviceRailsVisible");this.rails.classList.add("serviceRailsHidden");this.serviceState=!1},showServices:function(){this.serviceState===!1?(this.expand(),
this.box?h.bounds(this.rails,this.box):this.box=h.bounds(this.rails)):(h.bounds(this.rails,{height:0}),this.collapse())},onServiceClick:function(a){if(a.keyCode===h.KEY.ENTER||a.charCode===h.KEY.SPACE)this.showServices(),this.serviceState===!1?a.target.setAttribute("aria-pressed","true"):a.target.setAttribute("aria-pressed","false"),a.preventDefault()},showButtons:function(){this.leftbutton.style.visibility=this.serviceData.length>1&&this.pointer>0?"visible":"hidden";this.rightbutton.style.visibility=
this.serviceData.length>1&&this.pointer<this.serviceData.length-1?"visible":"hidden";var a=h.bounds(this.rails),c=h.bounds(this.leftbutton.firstChild),a=Math.round(a.height/2)-Math.round(c.height)+"px";this.leftbutton.firstChild.style.top=a;this.rightbutton.firstChild.style.top=a},hideButtons:function(){this.leftbutton.style.visibility="hidden";this.rightbutton.style.visibility="hidden"},slideRight:function(){this.box=h.bounds(this.rails);if(this.pointer<this.serviceData.length-1){this.pointer+=1;
for(var a=0;a<this.pointer;a++)this.listContainer.childNodes[0].childNodes[a].style.display="none";c(this.rails,this.box)}this.showButtons()},slideLeft:function(){this.box=h.bounds(this.rails);if(this.pointer>0)this.pointer-=1,this.listContainer.childNodes[0].childNodes[this.pointer].style.display="";this.showButtons();c(this.rails,this.box)},consoleOutput:function(a){console.log("Service: "+a.title+" Element: "+a.item+":");console.dir(a.value)},createServiceTable:function(a,c){var d=document.createElement("li");
d.classList.add("serviceData");c.appendChild(d);var b=document.createElement("div");b.classList.add("listEntry");d.appendChild(b);d=document.createElement("div");d.classList.add("tablecontainer");b.appendChild(d);var i=document.createElement("table");d.classList.add("serviceTable");d.appendChild(i);i.innerHTML='<thead><tr><th scope="col">${Item}</th><th scope="col">${Value}</th></tr></thead>';h.processTextNodes(i,f);d=document.createElement("tbody");i.appendChild(d);for(i=0;i<a.items.length;i++){var m=
document.createElement("tr"),k=document.createElement("td");k.textContent=a.items[i].item;m.appendChild(k);d.appendChild(m);var l=a.items[i].value,k=document.createElement("td");m.appendChild(k);typeof l==="object"?(m={title:a.service,item:a.items[i].item,value:l},l=document.createElement("span"),l.classList.add("objectLink"),l.title=f["click here, then check javascript console to drill down"],l.addEventListener("click",this.consoleOutput.bind(this,m)),l.textContent=f["JavaScript Object"],k.appendChild(l)):
k.textContent=l}d=document.createElement("div");d.classList.add("listTitle");d.textContent=a.service;b.appendChild(d)},addData:function(a){var c;for(c=0;c<a.length;c++)this.createServiceTable(a[c],this.testlist)},handleKeypress:function(a){a.keyCode===h.KEY.LEFT&&this.leftbutton.style.visibility!=="hidden"?this.slideLeft():a.keyCode===h.KEY.RIGHT&&this.rightbutton.style.visibility!=="hidden"&&this.slideRight()}});return a});
define("orion/widgets/plugin/PluginEntry",["i18n!orion/settings/nls/messages","orion/PageUtil","orion/objects","orion/webui/littlelib","orion/widgets/plugin/ServiceCarousel"],function(f,i,h,c,a){function e(a){var c=a.split("/"),c=c[c.length-1],c=c.split(".html")[0],c=c.replace(/([a-z])([A-Z])/,"$1 $2"),c=function(a){return a.toLowerCase().replace(/\b[a-z]/g,function(a){return a.toUpperCase()})}(c),c=c.replace("plugin",""),c=c.replace("Plugin","");c===""&&(c=a);return c}function g(a){var c=[];a.getServiceReferences().forEach(function(a){var b=
{service:a.getProperty("objectClass").join(" "),items:[]};a.getPropertyKeys().forEach(function(c){c={item:c,value:a.getProperty(c)};b.items.push(c)});c.push(b)});return c}function d(a,c){h.mixin(this,a);this.node=c||document.createElement("div")}h.mixin(d.prototype,{iconSource:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wBFxMFB6T1TK0AAAfOSURBVGjevZpLbFzlGYaf9x87DnZCyLUhCSSOY9PgmdwQdxrRVqhR1aYgpVXUTbvohgqRtrQCsWjFolSqBIUKCXXRsmkFCygiUpu2QgkFWkoIGOKZQIRj5yYSUifNhdiO7TlvF/+Mb4zt8bGTszmamXP+//2+7/2u/4gZulxgAYmWWl4kWG6zVGI+5gLQjziOOeYQzmgwOar19AMkpyEsTL+v0ryUAKEMfD8PWNqBvExWLVADyAI8YgcDOEEaxB5A2if5Z2rlHQDnQdnLLIALoFZwO3cgHsTahsiAsbGkqtazbYGMQHwi/AeLp0Irp/0BaP0MCpDsBhozhMYiyX41EPxXoc3YIM0I+2yXVtLDlp8OWS5Va5GqESR5PS57B1J93HFm0I8SBAtzWLBdOd5O8hCy07VAnvkyO4G7jCwx08DHmgMhkB9SlieT9kDIJVMXwAUArnWiDqBeGuWSl1MASyX/MDtDzt8q+16lK4y7UMJyzH7J9eDxwSeG2ZtKj0z/itSUsS15a5Jnl1ohOabJBUjypXuBBZKO2CwEUZHvdoyNjbugaR/U3zVjQpTkENEKW5zXK+E6k+yfRAD1LI73hD1AZlI/nX0TzNkSgTe+Bg1fHi2EDUVPVzAbtrqdHWFdzBcVBUjeA9/8X5zX7yzW4Uk4L0HPu3BseylLBWjcDXNLAtlQ1wI3fAj1t6UWQpIUHeMpt3PL2NA6CmDyAdeR4ahQ9Q5rQ8NmaPwnQ7mh83YYPAktXaVnivBxC/R3psodZcfGdGLWOtBfDq+jKZTRv+QpZmgJPnsdujZHS9iw+i1oenfYEspAc0dqSwz5A6wm6IGRuWEIqNv5PuK5qZQEn7fE3dC4hwmzdEcW+grpLAGWLcRcxGdqhZB8VPpRejA1+PLV1wZJX0kvrhC1gKb3oSFlxLJLq+on5bwgAB+giSIdFbVS3mgiuWyoXQ5rCpCZR1V10uGvwWf/SGMJ2xwJOTe6UPIBF3nW44GvawHVTLxkzSJoOVod+LJCVv0drro5jSUkWOUC69QKwQXmSnxJY21uw7xt0HwQVvwpZlxXoEVmITS1g0J1mi//bkPTXpi1JkVsNSR6LEahJFxvq6Zi5Fn0SLzP+w6sfHkY5Eja3PAp1C6dnGZjBZegdy8MHEqTHWz5nuRDFKzki+Caiprquh362uPnq++FVa+P0PyCyPmRQk0F/IW/QOcdaROcQDUUw/UBs35czXkQDq2D3rb4ueFOWLkTZq2Elo7qHXasYi7sgiPfiM1pyqAnuwYnC4NQ9nMhb0zwpWPTsCXmfBOaOyEzn1RdmQfhxP3TL7tRRmJJQCybCD8SBEHnLdESItKGlC2lamDVaxPqrFpD2iwOmPpJCwcbMtdAXfP0Bhplvl98FWYtn1aVWirWFoeqNg1XQdN7EOak37RMt/M749bXfA9UO20hAvjSpNqc1QyZJelpUwZ/7nk4/xIMnopRbPU76SkUlzwbkLon1IIEffuh8zZwMqLG8dTA9xWg5y2Ytz3ScdFD0F+Yli8YzgXsfFXZs3cfdN0J7p+wRa4I/uIb0P04zM7F+L/gfujZC2efTz8mkBPM8WCRr0oLEvS8DUe+Du4bw8QxTpr0Db8zcBy6fw2LH4Oef8OyZ6IlMvNh8aPTiUODks4ErAJQrL552R1r+qS3RCmN1nbPW/BxI5x7EYoX4fh3YfHP4cQDsPy5SKVZzTGi9f4nFYVsGzxAxp/IeRYBx0B1U2ojr9oEq/ZAZm4ppgkuvgmH744tpIHMbFjxPJx7Aa57AQaOQjIAdY3DzeCnj8KpX8X3VX1QsPR+yHpjUJZuW8ewp9ZG9rVB560RrASXDsLhrw6XB0GRakfvg+L/4vOHNkCxGw7Mg+KFuNYXHodlvy31QK56fyX+5VA2Stq1RfKuKXuUDXVro1OefAg8wLhNkUc0agJqV0DzRxAa4jNnnoXjP4SMqok+F0LWV8cR0H4ozVu6QQtSpdhUNZEh1MfJRc2S+N3pp+HEjyYpzQ3m98rxA4AQ1g2t9xtwytJQ6d5JeuDjtcNRa+EOWPHHcR3bjicLFk+4fURBk+wGFtGAdF5yuAIz3NGWqFkaxzC1y+J33U/AyZ+Ooxy/qCzfrliROc8WrF3mssz/Jy/ybjgeu7zBM3Dw2pg0SzAcqXMWa7mCezR2sJXkgd66vxn2quJc5DJeZV0d2hCTZcfaUeDL+CV+EdYNg69YEydt1KmGs0AdV9IKI8f1GhZqaKyIXlLW28ae2oymUDsoB0leNwH7xJU51JhsCAQ6ReJV6lvSq1tPVXlCk+c+W3/mSvvD2HwLh12kNaynp+oTGneBsrwsfK8keeg044ppPWYW6zyBDaqpDH5cAdQI3gPK8YrNTZhL2IrrXn61A8J+04mX6UbOjXc+VnVjm7RRR61ex9wSj990WbQe5+gewHpSOT9SzXuT9sRuh7CRS+qvvVXB98gaiCfzM2eNEtmFnWeAJcr5EXdlYoKdrgDKlTap60etvGp7geFhxCe2cUphht6xQbxha2vIkdNGzia7QY1FwleqGtFNQ3MFbXbCM8hrhGYBmRKBS8lVpflNjO1RyQbUjzwIvESGH4e1nE6dA1ODPwC6cSiLzwetxG4BsqCsxBzwEuCSrTOCbnAbIm+HLik5omzpLzedEFanw/F/byy0oCz4lroAAAAASUVORK5CYII=",
templateString:'<div class="plugin-entry" style="overflow:hidden;"><div class="plugin-list-item"><div><div class="plugin-icon"></div><span class="plugin-commands"></span><div class="stretch"><span class="plugin-title"></span><div></div><span class="plugin-description"></span><div class="plugin-links" style="font-size:11px"></div></div></div></div><div class="plugin-service-item" ></div></div>',serviceDescriptions:null,createElements:function(){this.node.innerHTML=this.templateString;this.pluginTitle=
c.$(".plugin-title",this.node);this.pluginDescription=c.$(".plugin-description",this.node);this.pluginLinks=c.$(".plugin-links",this.node);this.commandSpan=c.$(".plugin-commands",this.node);this.serviceContainer=c.$(".plugin-service-item",this.node);this.postCreate()},destroy:function(){if(this.node)this.node=this.pluginTitle=this.pluginDescription=this.pluginLinks=this.commandSpan=this.serviceContainer=null},show:function(){this.createElements()},addPluginLink:function(a,c){if(i.validateURLScheme(c)){var d=
document.createElement("a");d.classList.add("plugin-link");d.href=c;d.title=a;d.textContent=a;this.pluginLinks.appendChild(d)}else console.log("Illegal "+a+" URL: "+c)},postCreate:function(){var b=this.plugin.getHeaders(),c=this.plugin.getLocation();this.pluginTitle.textContent=b.name||e(c);this.pluginDescription.textContent=b.description||f["A plugin for Eclipse Orion"];this.addPluginLink("Plugin",c);b.website&&this.addPluginLink("Website",b.website);b.license&&this.addPluginLink("License",b.license);
b.login&&this.addPluginLink("Login",b.login);this.commandSpan.id=c;this.commandService.renderCommands("pluginCommand",this.commandSpan,c,this,"tool");this.serviceDescriptions=g(this.plugin);this.carousel=new a({serviceData:this.serviceDescriptions},this.serviceContainer);this.carousel.show()}});return d});
define("orion/widgets/plugin/PluginList","i18n!orion/settings/nls/messages,require,orion/Deferred,orion/commands,orion/commonHTMLFragments,orion/objects,orion/webui/littlelib,orion/widgets/plugin/PluginEntry".split(","),function(f,i,h,c,a,e,g,d){function b(a){if(a.indexOf("://")===-1){var b=document.createElement("a");b.href=a;return b.href}return a}function j(a,b){e.mixin(this,a);this.node=b||document.createElement("div")}var m={},k=localStorage.getItem("/orion/preferences/default/plugins");k&&(k=
JSON.parse(k),Object.keys(k).forEach(function(a){m[b(i.toUrl(a))]=!0}));e.mixin(j.prototype,{templateString:'<div id="pluginSectionHeader" class="pluginSectionHeader sectionWrapper toolComposite"><div class="sectionAnchor sectionTitle layoutLeft"></div><div class="sectionItemCount layoutLeft">0</div><div id="pluginCommands" class="pluginCommands layoutRight sectionActions"></div></div><div class="displaytable layoutBlock"><div class="plugin-list-container"><div class="plugin-list" style="overflow:hidden;"></div></div></div>',
pluginDialogState:!1,includeMaker:!1,target:"_self",createElements:function(){this.node.innerHTML=this.templateString;this.pluginSectionHeader=g.$(".pluginSectionHeader",this.node);this.pluginTitle=g.$(".sectionAnchor",this.node);this.pluginCount=g.$(".sectionItemCount",this.node);this.pluginCommands=g.$(".pluginCommands",this.node);this.pluginList=g.$(".plugin-list",this.node);this.postCreate()},destroy:function(){if(this.node)g.empty(this.node),this.node=this.pluginSectionHeader=this.pluginTitle=
this.pluginCount=this.pluginCommands=this.pluginList=null},postCreate:function(){var b=this;if(this.pluginSectionHeader){var c=a.slideoutHTMLFragment("pluginSlideout"),d=document.createRange();d.selectNode(this.pluginSectionHeader);c=d.createContextualFragment(c);this.pluginSectionHeader.appendChild(c)}this.addRows();this.registry.registerService("orion.cm.managedservice",{updated:function(a){b.setTarget(a&&a["links.newtab"]!=="undefined"?a["links.newtab"]?"_blank":"_self":"_self")}.bind(this)},{pid:"nav.config"})},
updateToolbar:function(){this.pluginCommands&&this.commandService.destroy(this.pluginCommands)},show:function(){this.createElements();this.updateToolbar();this.commandService.addCommand(new c.Command({name:f.Install,tooltip:f["Install a plugin by specifying its URL"],id:"orion.installPlugin",parameters:new c.ParametersDescription([new c.CommandParameter("url","url",f["Plugin URL:"],"")]),callback:function(a){a.parameters&&(a=a.parameters.valueFor("url"))&&this.installHandler(a)}.bind(this)}));this.commandService.registerCommandContribution("pluginCommands",
"orion.installPlugin",1,null,!1,null,new c.URLBinding("installPlugin","url"));this.commandService.addCommand(new c.Command({name:f["Reload all"],tooltip:f["Reload all installed plugins"],id:"orion.reloadAllPlugins",callback:this.reloadPlugins.bind(this)}));this.commandService.registerCommandContribution("pluginCommands","orion.reloadAllPlugins",2);this.commandService.addCommand(new c.Command({name:f.Create,tooltip:f["Create a new Orion Plugin"],id:"orion.createPlugin",callback:function(a){this.createPlugin(a.items)}.bind(this)}));
this.includeMaker===!0&&this.commandService.registerCommandContribution("pluginCommands","orion.createPlugin",2);this.commandService.renderCommands("pluginCommands","pluginCommands",this,this,"button")},addRows:function(a){this.commandService.addCommand(new c.Command({name:f.Reload,tooltip:f["Reload the plugin"],id:"orion.reloadPlugin",imageClass:"core-sprite-refresh",visibleWhen:function(a){return typeof a==="string"},callback:function(a){this.reloadPlugin(a.items)}.bind(this)}));this.commandService.registerCommandContribution("pluginCommand",
"orion.reloadPlugin",1);this.commandService.addCommand(new c.Command({name:f.Delete,tooltip:f["Delete this plugin from the configuration"],imageClass:"core-sprite-delete",id:"orion.uninstallPlugin",visibleWhen:function(a){return!m[a]},callback:function(a){this.removePlugin(a.items)}.bind(this)}));this.commandService.registerCommandContribution("pluginCommand","orion.uninstallPlugin",2);var b=this.settings.pluginRegistry;this.commandService.addCommand(new c.Command({name:f.Disable,tooltip:f.DisableTooltip,
id:"orion.disablePlugin",imageClass:"core-sprite-stop",visibleWhen:function(a){return m[a]?!1:b.getPlugin(a)._getAutostart()!=="stopped"},callback:function(a){this.disablePlugin(a.items)}.bind(this)}));this.commandService.registerCommandContribution("pluginCommand","orion.disablePlugin",3);this.commandService.addCommand(new c.Command({name:f.Enable,tooltip:f.EnableTooltip,id:"orion.enablePlugin",imageClass:"core-sprite-start",visibleWhen:function(a){return m[a]?!1:b.getPlugin(a)._getAutostart()===
"stopped"},callback:function(a){this.enablePlugin(a.items)}.bind(this)}));this.commandService.registerCommandContribution("pluginCommand","orion.enablePlugin",4);var e=this.pluginList;if(a)e=a.pluginList;g.empty(e);a=this.settings.pluginRegistry.getPlugins();this.pluginTitle.textContent=f.Plugins;this.pluginCount.textContent=a.length;for(var h=0;h<a.length;h++){var i=new d({plugin:a[h],commandService:this.commandService});e.appendChild(i.node);i.show()}},pluginURLFocus:function(){this.pluginUrlEntry.value=
"";this.pluginUrlEntry.style.color=""},pluginURLBlur:function(){if(this.pluginUrlEntry.value==="")this.pluginUrlEntry.value=f["Type a plugin url here ..."],this.pluginUrlEntry.style.color="#AAA"},createPlugin:function(){var a=i.toUrl("settings/maker.html");window.open(a,this.target)},addPlugin:function(a){this.statusService.setMessage(f["Installed "]+a,5E3,!0);this.settings.preferences.getPreferences("/plugins").then(function(b){b.put(a,!0)});this.addRows()},pluginError:function(a){this.statusService.setErrorMessage(a)},
installHandler:function(a){/^\S+$/.test(a.trim())&&(this.statusService.setMessage(f["Installing "]+a+"...",null,!0),this.settings.pluginRegistry.getPlugin(a)?this.statusService.setErrorMessage(f["Already installed"]):this.settings.pluginRegistry.installPlugin(a).then(function(a){return a.start({lazy:!0})}).then(this.addPlugin.bind(this,a),this.pluginError.bind(this)))},reloaded:function(){var a=this.settings.pluginRegistry.getPlugins();this.statusService.setMessage(f["Reloaded "]+a.length+f[" plugin"]+
(a.length===1?"":"s")+".",5E3,!0);this.addRows()},reloadPlugin:function(a){var b=this.settings.pluginRegistry.getPlugin(a);b&&(b.update().then(this.addRows.bind(this)),this.statusService.setMessage(f["Reloaded "]+a,5E3,!0))},disablePlugin:function(a){var b=this.settings.pluginRegistry.getPlugin(a);b&&(b.stop(),this.statusService.setMessage("Disabled "+a,5E3,!0),this.settings.preferences.getPreferences("/plugins").then(function(b){b.put(a,!1);this.addRows(this)}.bind(this)),this.addRows())},enablePlugin:function(a){var b=
this.settings.pluginRegistry.getPlugin(a);b&&(b.start({lazy:!0}),this.statusService.setMessage("Enabled "+a,5E3,!0),this.settings.preferences.getPreferences("/plugins").then(function(b){b.put(a,!1);this.addRows(this)}.bind(this)),this.addRows())},setTarget:function(a){this.target=a},reloadPlugins:function(){var a=[];this.settings.pluginRegistry.getPlugins().forEach(function(b){a.push(b.update())});h.all(a,function(){}).then(this.reloaded.bind(this))},forceRemove:function(a){var c=this.settings.pluginRegistry.getPlugin(a);
c&&c.uninstall().then(function(){this.statusService.setMessage(f["Uninstalled "]+a,5E3,!0);var c=this;this.settings.preferences.getPreferences("/plugins").then(function(d){d.keys().some(function(e){if(b(e)===a)return d.remove(e),c.addRows(c),!0})})}.bind(this))},removePlugin:function(a){window.confirm(f["Are you sure you want to uninstall '"]+a+"'?")&&this.forceRemove(a)}});return j});
define("orion/git/gitPreferenceStorage",["orion/Deferred"],function(f){function i(f){this._prefix="/git/credentials";this._preferenceService=f.getService("orion.core.preference")}i.prototype={put:function(h,c){var a={gitSshUsername:"",gitSshPassword:"",gitPrivateKey:"",gitPassphrase:""};if(c!==void 0){if(c.gitSshUsername!==void 0&&c.gitSshUsername!==null)a.gitSshUsername=c.gitSshUsername;if(c.gitSshPassword!==void 0&&c.gitSshPassword!==null)a.gitSshPassword=c.gitSshPassword;if(c.gitPrivateKey!==void 0&&
c.gitPrivateKey!==null)a.gitPrivateKey=c.gitPrivateKey;if(c.gitPassphrase!==void 0&&c.gitPassphrase!==null)a.gitPassphrase=c.gitPassphrase}var e=new f;this._preferenceService.getPreferences(this._prefix,2).then(function(c){var d=c.get("settings");d===void 0?e.reject():d.enabled?(c.put(h,a),e.resolve()):e.reject()});return e},get:function(h){var c={gitSshUsername:"",gitSshPassword:"",gitPrivateKey:"",gitPassphrase:""},a=new f;this._preferenceService.getPreferences(this._prefix,2).then(function(e){var f=
e.get("settings");f===void 0?a.reject():f.enabled?(e=e.get(h),e!==void 0?a.resolve(e):a.resolve(c)):a.reject()});return a},isEnabled:function(){var h=new f;this._preferenceService.getPreferences(this._prefix,2).then(function(c){c=c.get("settings");c===void 0?h.resolve(!1):h.resolve(c.enabled)});return h},enable:function(){var h=new f;this._preferenceService.getPreferences(this._prefix,2).then(function(c){c.put("settings",{enabled:!0});h.resolve()});return h},disable:function(){var h=new f;this._preferenceService.getPreferences(this._prefix,
2).then(function(c){c.put("settings",{enabled:!1});h.resolve()});return h},remove:function(h){var c=new f;this._preferenceService.getPreferences(this._prefix,2).then(function(a){a.remove(h);c.resolve()});return c},getRepositories:function(){var h=new f;this._preferenceService.getPreferences(this._prefix,2).then(function(c){for(var a=[],c=c.keys(),e=0;e<c.length;++e)c[e]!=="settings"&&a.push(c[e]);h.resolve(a)});return h}};return i.prototype.constructor=i});
define("orion/widgets/settings/Subsection",[],function(){function f(f){var h=f.sectionName;this.parentNode=f.parentNode;this.children=f.children;f=document.createElement("section");f.classList.add("setting-row");f.setAttribute("role","region");f.setAttribute("aria-labelledby","Navigation-header");var c=document.createElement("h3");c.classList.add("setting-header");c.textContent=h;h=document.createElement("div");h.classList.add("setting-content");f.appendChild(c);f.appendChild(h);this.node=f;this.subsectionContent=
h}f.prototype.show=function(){this.parentNode&&this.parentNode.appendChild(this.node);if(this.children){var f=this;this.children.forEach(function(h){f.subsectionContent.appendChild(h.node);h.show()})}};return f});define("orion/form",[],function(){function f(f){return encodeURIComponent(f).replace(/[!'()*]/g,escape).replace("%20","+")}return{encodeFormData:function(i){for(var i=i||{},h=Object.keys(i),c=[],a=0;a<h.length;a++){var e=h[a],g=i[e];c.push(f(e)+"="+f(g))}return c.join("&")}}});
define("profile/UsersService",["orion/Deferred","orion/xhr","orion/EventTarget","orion/form"],function(f,i,h,c){function a(a){return a===""?null:JSON.parse(a)}function e(a){return Error("Error loading "+a.args.url+" status: "+a.status)}function g(a){h.attach(this);if(a)this._serviceRegistry=a,this._serviceRegistration=a.registerService("orion.core.user",this)}g.prototype={getUsersListSubset:function(c,b,g){var h=new f,k=this;i("GET","../users?start="+c+"&rows="+b,{headers:{"Orion-Version":"1"},timeout:15E3}).then(function(b){b=
a(b.response);g&&(typeof g==="function"?g(b):k.dispatchEvent({type:g,data:b}));h.resolve(b)},function(a){k.info||handleAuthenticationError(e(a),function(){k.getUsersListSubset(c,b)});h.reject(a.response||a)});return h},getUsersList:function(c){var b=new f,g=this;i("GET","../users",{headers:{"Orion-Version":"1"},timeout:15E3}).then(function(e){e=a(e.response);c&&(typeof c==="function"?c(e):g.dispatchEvent({type:c,data:e}));b.resolve(e.users)},function(a){g.info||handleAuthenticationError(e(a),function(){g.getUsersList(c)});
b.reject(a.response||a)});return b},deleteUser:function(c,b){var g=new f,h=this;i("DELETE",c,{headers:{"Orion-Version":"1"},timeout:15E3}).then(function(c){c=a(c.response);b&&(typeof b==="function"?b(c):h.dispatchEvent({type:b,data:c}));g.resolve(c)},function(a){h.info||handleAuthenticationError(e(a),function(){h.deleteUser(c,b)});g.reject(a.response||a)});return g},createUser:function(a,b,e){var g=new f;i("POST","../users",{headers:{"Content-Type":"application/x-www-form-urlencoded","Orion-Version":"1"},
timeout:15E3,data:c.encodeFormData({login:a,password:b,email:e}),load:function(a){g.resolve(a)},error:function(a){g.reject(a.response||a)}});return g},getUserInfo:function(c,b){var g=new f,h=this;i("GET",c,{headers:{"Orion-Version":"1"},timeout:15E3}).then(function(c){c=a(c.response);b&&(typeof b==="function"?b(c):h.dispatchEvent({type:b,data:c}));g.resolve(c)},function(a){h.info||handleAuthenticationError(e(a),function(){h.getUserInfo(c,b)});g.reject(a.response||a)});return g},updateUserInfo:function(c,
b,g){var h=new f,k=this;if(b.password!==b.passwordRetype)return h.reject({message:messages["Passwords do not match!"]}),h;i("PUT",c,{headers:{"Content-Type":"application/json","Orion-Version":"1"},timeout:15E3,data:JSON.stringify(b)}).then(function(b){b=a(b.response);g&&(typeof g==="function"?g(b):k.dispatchEvent({type:g,data:b}));h.resolve(b)},function(a){k.info||handleAuthenticationError(e(a),function(){k.updateUserInfo(c,b,g)});h.reject(a.response||a)});return h},resetUserPassword:function(d,b,
e){var g=new f,h=this;i("POST","../users",{headers:{"Content-Type":"application/x-www-form-urlencoded","Orion-Version":"1"},timeout:15E3,data:c.encodeFormData({reset:!0,login:d,password:b})}).then(function(b){b=a(b.response);e&&(typeof e==="function"?e(b):h.dispatchEvent({type:e,data:b}));g.resolve(b)},function(){g.reject(error.response||error)});return g}};return g});
define("orion/widgets/input/LabeledCommand",["orion/objects","orion/webui/littlelib"],function(f,i){function h(c,a){f.mixin(this,c);this.node=a||document.createElement("div")}f.mixin(h.prototype,{templateString:'<label><span class="setting-repository-label"></span><span class="setting-command"></span></label>',show:function(){this.node.innerHTML=this.templateString;this.mylabel=i.$(".setting-repository-label",this.node);this.myCommand=i.$(".setting-command",this.node);this.postCreate()},destroy:function(){i.empty(this.node)},
postCreate:function(){this.mylabel.textContent=this.fieldlabel;this.commandService.renderCommands(this.scopeId,this.myCommand,{gitUrl:this.fieldlabel,keyIndex:this.keyIndex},this,"button")}});return h});
define("orion/widgets/settings/UserSettings","i18n!orion/settings/nls/messages,require,orion/commands,orion/section,orion/git/gitPreferenceStorage,orion/webui/littlelib,orion/objects,orion/i18nUtil,orion/widgets/settings/Subsection,profile/UsersService,orion/widgets/input/LabeledTextfield,orion/widgets/input/LabeledCheckbox,orion/widgets/input/LabeledCommand".split(","),function(f,i,h,c,a,e,g,d,b,j,m,k,l){function p(a,b){g.mixin(this,a);this.node=b}g.mixin(p.prototype,{dispatch:!0,templateString:'<div><div class="sectionWrapper toolComposite"><div class="sectionAnchor sectionTitle layoutLeft">${User Profile}</div><div id="userCommands" class="layoutRight sectionActions"></div></div><div class="sections"></div><div></div></div><div><div class="sectionWrapper toolComposite"><div class="sectionAnchor sectionTitle layoutLeft">${Git Credentials Storage}</div><div id="gitCommands" class="layoutRight sectionActions"></div></div><div class="gitSections"></div><div></div></div><div class="linkedSection"></div>',
createElements:function(){this.node.innerHTML=this.templateString;e.processTextNodes(this.node,f);this.sections=e.$(".sections",this.node);this.gitSections=e.$(".gitSections",this.node);this.linkedSection=e.$(".linkedSection",this.node);this.createSections()},setHash:function(a,b){a.src=a.src.indexOf("#")>0?a.src.substr(0,a.src.indexOf("#"))+"#"+b:a.src+"#"+b},refreshGitCredentials:function(){var b=this;(new a(this.registry)).isEnabled().then(function(a){b.gitCredentialsFields[0].setChecked(a)})},
createSections:function(){this.accountFields=[new m({fieldlabel:f.Username,editmode:"readonly"}),new m({fieldlabel:f["Full Name"]}),new m({fieldlabel:f["Email Address"]}),new k({fieldlabel:f["Email Confirmed"],editmode:"readonly"})];(new b({sectionName:f.Account,parentNode:this.sections,children:this.accountFields})).show();this.passwordFields=[new m({fieldlabel:f["Current Password"],inputType:"password"}),new m({fieldlabel:f["New Password"],inputType:"password"}),new m({fieldlabel:f["Verify Password"],
inputType:"password"})];(new b({sectionName:f.Password,parentNode:this.sections,children:this.passwordFields})).show();this.gitFields=[new m({fieldlabel:f["Git Email Address"]}),new m({fieldlabel:f["Git Username"]})];(new b({sectionName:f["Git Config"],parentNode:this.sections,children:this.gitFields})).show();this.commandService.addCommand(new h.Command({name:f.Update,tooltip:f["Update Profile Settings"],id:"orion.updateprofile",callback:function(a){this.update(a.items)}.bind(this)}));this.commandService.registerCommandContribution("profileCommands",
"orion.updateprofile",3);this.commandService.renderCommands("profileCommands",e.node("userCommands"),this,this,"button");this.gitCredentialsFields=[new k({fieldlabel:f["Enable Storage"]})];var g,i=this;this.commandService.addCommand(new h.Command({name:f.Delete,id:"eclipse.orion.git.eraseGitCredentials",callback:function(b){var c=b.items.gitUrl,e=b.items.keyIndex,g=i.registry.getService("orion.page.message");(new a(i.registry)).remove(c).then(function(){g.setProgressResult(d.formatMessage(f["Deleted git credentials for ${0}"],
[c]));i.gitCredentialsFields[e+1].destroy()})},visibleWhen:function(){return!0}}));this.commandService.registerCommandContribution("repositoryItemCommands","eclipse.orion.git.eraseGitCredentials",1);i=this;(new a(this.registry)).getRepositories().then(function(a){for(var c=0;c<a.length;++c){var d=new l({keyIndex:c,fieldlabel:a[c],commandService:i.commandService,scopeId:"repositoryItemCommands"});i.gitCredentialsFields.push(d)}g=new b({sectionName:"",parentNode:i.gitSections,children:i.gitCredentialsFields});
g.show();a=new h.Command({name:f.Update,tooltip:f["Update Git Credentials"],id:"orion.updateGitCredentials",callback:function(a){i.updateGitCredentials(a.items)}.bind(i)});i.commandService.addCommand(a);i.commandService.registerCommandContribution("gitProfileCommands","orion.updateGitCredentials",2);i.commandService.renderCommands("gitProfileCommands",e.node("gitCommands"),i,i,"button")});this.linkedAccountSection=new c.Section(this.linkedSection,{id:"linkedAccountSection",title:"Linked Accounts",
content:'<div id="iFrameContent"></div>',canHide:!0,useAuxStyle:!0,hidden:!0,slideout:!0});var j=this.iframe=document.createElement("iframe");j.src="../mixloginstatic/manageOpenids.html";j.style.border="0";j.style.width="500px";e.node("iFrameContent").appendChild(j)},confirmOpenId:function(a){if(a!==""&&a!==null)this.win=window.open("../mixlogin/manageopenids/openid?openid="+encodeURIComponent(a),"openid_popup","width=790,height=580")},update:function(){var a=[],b=this.registry.getServiceReferences("orion.core.auth"),
c=this.registry.getService("orion.page.message"),d=this.userService,e={};e.GitMail=this.gitFields[0].getValue();e.GitName=this.gitFields[1].getValue();e.login=this.accountFields[0].getValue();e.Name=this.accountFields[1].getValue();e.email=this.accountFields[2].getValue();var g=this.passwordFields[1].getValue(),h=this.passwordFields[2].getValue();if(g.length>0)g!==h?(c.setProgressResult("New password, and retyped password do not match"),this.dispatch=!1):this.passwordFields[0].getValue().length>0?
(e.oldPassword=this.passwordFields[0].getValue(),e.password=g,e.passwordRetype=h,this.dispatch=!0):(c.setProgressResult("Need to type your current password"),this.dispatch=!1);if(this.dispatch===!0)for(g=0;g<b.length;g++){var i=this.registry.getService(b[g]);i.getKey().then(function(b){a.push(b);i.getUser().then(function(a){d.updateUserInfo(a.Location,e).then(function(a){a?c.setProgressResult(a):c.setProgressResult(f["User profile data successfully updated."])},function(a){c.setProgressResult(a)})})})}},
updateGitCredentials:function(){var b=this.registry.getService("orion.page.message"),c=new a(this.registry);this.gitCredentialsFields[0].isChecked()?window.confirm(f["Please be aware that your credentials will be stored persistently in the browser."]+"\n"+f["Do you wish to enable the Key Storage?"])&&c.enable().then(function(){b.setProgressResult(f["Git Credentials successfully updated."])}):c.disable().then(function(){b.setProgressResult(f["Git Credentials successfully updated."])})},show:function(){this.createElements();
this.userService=this.registry.getService("orion.core.user");for(var a=[],b=this.registry.getServiceReferences("orion.core.auth"),c=this.userService,d=this,e=0;e<b.length;e++){var f=this.registry.getService(b[e]);f.getKey().then(function(b){a.push(b);f.getUser().then(function(a){c.getUserInfo(a.Location).then(function(a){d.accountFields[0].setValue(a.login);d.accountFields[1].setValue(a.Name);d.accountFields[2].setValue(a.email);d.accountFields[3].setChecked(a.emailConfirmed);a.GitMail&&d.gitFields[0].setValue(a.GitMail);
a.GitName&&d.gitFields[1].setValue(a.GitName)});d.setHash(d.iframe,a.Location)})})}this.refreshGitCredentials()},destroy:function(){if(this.node)e.empty(this.node),this.node=this.sections=this.gitSections=this.linkedSection=null}});return p});
define("orion/widgets/settings/InputBuilder",["orion/objects","orion/Deferred","orion/widgets/input/Select","orion/widgets/input/TextField"],function(f,i,h,c){function a(a){this.preferences=a}f.mixin(a.prototype,{setStorageItem:function(a,c,d,b,f){this.preferences.getPreferences("/settings",2).then(function(h){for(var i=JSON.parse(h.get(a)),l=0;l<i.length;l++)if(i[l].label===c)for(var p=0;p<i[l].data.length;p++)if(i[l].data[p].label===d){i[l].data[p].value=b;i[l].data[p].ui=f;h.put(a,JSON.stringify(i));
break}})},getStorageItem:function(a,c,d){var b,f=new i;this.preferences.getPreferences("/settings",2).then(function(h){for(var h=JSON.parse(h.get(a)),i=0;i<h.length;i++)if(h[i].label===c)for(var l=0;l<h[i].data.length;l++)if(h[i].data[l].label===d){b=h[i].data[l].value;f.resolve(b);break}});return f},processInputType:function(a,f,d,b,i){var m=document.createElement("div");b.appendChild(m);var k=this;this.getStorageItem(a,f,d.label).then(function(b){switch(d.input){case "combo":for(var p=[],r=0;r<
d.values.length;r++){var q=d.values[r].label;p.push({value:q,label:q,selected:q===b})}new h({category:a,item:f,element:d.label,ui:i,options:p,setStorageItem:k.setStorageItem.bind(k)},m);break;case "color":throw Error("Not implemented");case "textfield":(new c({category:a,item:f,element:d.label,ui:i,setStorageItem:k.setStorageItem.bind(k)},m)).show()}})}});return a});
define("orion/widgets/settings/SettingsContainer","i18n!orion/settings/nls/messages,require,orion/globalCommands,orion/PageUtil,orion/webui/littlelib,orion/objects,orion/URITemplate,orion/widgets/themes/ThemeBuilder,orion/settings/ui/PluginSettings,orion/widgets/themes/editor/ThemeData,orion/widgets/themes/container/ThemeData,orion/widgets/settings/SplitSelectionLayout,orion/widgets/plugin/PluginList,orion/widgets/settings/UserSettings,orion/widgets/settings/InputBuilder".split(","),function(f,i,
h,c,a,e,g,d,b,j,m,k,l,p,r){function q(a,b){k.apply(this,arguments);this.settingsCategories=[{id:"userSettings",textContent:f["User Profile"],show:this.showUserSettings},{id:"themeBuilder",textContent:"UI Theme",show:this.showThemeBuilder},{id:"editorThemeBuilder",textContent:"Editor Theme",show:this.showEditorThemeBuilder},{id:"plugins",textContent:f.Plugins,show:this.showPlugins}];this.settingsCategories.forEach(function(a){a.show=a.show.bind(this,a.id)}.bind(this));this.settingsRegistry.getCategories().sort().forEach(function(a){this.settingsCategories.push({id:a,
textContent:f[a]||a,show:this.showPluginSettings.bind(this,a)})}.bind(this))}var o=k.prototype;q.prototype=Object.create(k.prototype);e.mixin(q.prototype,{show:function(){this.itemToIndexMap={};this.toolbar=a.node(this.pageActions);this.manageDefaultData();window.setTimeout(function(){this.drawUserInterface();this.inputBuilder=new r(this.preferences)}.bind(this),100);window.addEventListener("hashchange",this.processHash.bind(this));h.setPageTarget({task:"Settings"})},processHash:function(){var a=
c.matchResourceParameters(),b=this;this.preferences.getPreferences("/settingsContainer",2).then(function(c){c=c.get("selection");c=a.category||c;b.selectedCategory&&b.selectedCategory.id===c||b.showByCategory(c)});window.setTimeout(function(){this.commandService.processURL(window.location.href)}.bind(this),0)},showThemeBuilder:function(b){this.selectCategory(b);this.updateToolbar(b);this.themeWidget&&this.themeWidget.destroy();b=new m.ThemeData;this.themeWidget=new d({commandService:this.commandService,
preferences:this.preferences,themeData:b});a.empty(this.table);b=document.createElement("div");this.table.appendChild(b);this.themeWidget.renderData(b,"INITIALIZE")},showEditorThemeBuilder:function(b){this.selectCategory(b);this.updateToolbar(b);this.editorThemeWidget&&this.editorThemeWidget.destroy();b=new j.ThemeData;this.editorThemeWidget=new d({commandService:this.commandService,preferences:this.preferences,themeData:b});this.editorThemeWidget.addAdditionalCommand({name:"Import",tip:"Import a theme",
id:0,callback:b.importTheme.bind(b)});a.empty(this.table);b=document.createElement("div");this.table.appendChild(b);this.editorThemeWidget.renderData(b,"INITIALIZE")},showUserSettings:function(b){this.selectCategory(b);a.empty(this.table);this.userWidget&&this.userWidget.destroy();this.updateToolbar(b);b=document.createElement("div");this.table.appendChild(b);this.userWidget=new p({registry:this.registry,settings:this.settingsCore,preferences:this.preferences,statusService:this.preferencesStatusService,
dialogService:this.preferenceDialogService,commandService:this.commandService,userClient:this.userClient},b);this.userWidget.show()},initPlugins:function(){a.empty(this.table);this.pluginWidget&&this.pluginWidget.destroy();var b=document.createElement("div");this.table.appendChild(b);this.pluginWidget=new l({settings:this.settingsCore,preferences:this.preferences,statusService:this.preferencesStatusService,dialogService:this.preferenceDialogService,commandService:this.commandService,registry:this.registry},
b);this.pluginWidget.show()},initPluginSettings:function(c){a.empty(this.table);this.pluginSettingsWidget&&this.pluginSettingsWidget.destroy();this.pluginSettingsWidget=new b({parent:this.table,serviceRegistry:this.registry,settings:this.settingsRegistry.getSettings(c).sort(function(a,b){var c=a.getName(),d=b.getName();return typeof c==="string"&&typeof d==="string"?c.localeCompare(d):a.getPid().localeCompare(b.getPid())}),title:f[c]||c})},showPlugins:function(a){this.selectCategory(a);this.initPlugins(a)},
showPluginSettings:function(a){this.selectCategory(a);this.initPluginSettings(a)},selectCategory:function(a){this.preferences.getPreferences("/settingsContainer",2).then(function(b){b.put("selection",a)});o.selectCategory.apply(this,arguments);var b=c.matchResourceParameters();if(b.category!==a)b.category=a,delete b.resource,window.location=(new g("#,{params*}")).expand({params:b})},showByCategory:function(a){this.updateToolbar(a);this.settingsCategories.some(function(b){if(b.id===a)return b.show(),
!0})||this.selectCategory(a)},addCategory:function(a){a["class"]=(a["class"]||"")+" navbar-item";a.role="tab";a.tabindex=-1;a["aria-selected"]="false";a.onclick=a.show;o.addCategory.apply(this,arguments)},addCategories:function(){var a=this;this.settingsCategories.forEach(function(b){a.addCategory(b)})},drawUserInterface:function(a){o.drawUserInterface.apply(this,arguments);this.addCategories();this.processHash()},handleError:function(a){console.log(a)},manageDefaultData:function(){this.preferences.getPreferences("/settingsContainer",
2).then(function(a){a.get("selection")||a.put("selection","userSettings")})}});return q});
define("settings/settings","i18n!orion/settings/nls/messages,orion/bootstrap,orion/status,orion/progress,orion/commands,orion/profile/usersClient,orion/operationsClient,orion/fileClient,orion/searchClient,orion/dialogs,orion/globalCommands,orion/webui/littlelib,orion/config,orion/metatype,orion/settings/settingsRegistry,orion/widgets/settings/SettingsContainer".split(","),function(f,i,h,c,a,e,g,d,b,j,m,k,l,p,r,q){i.startup().then(function(i){var l=i.serviceRegistry,u=i.preferences,s=i.pluginRegistry,
t=new g.OperationsClient(l),v=new h.StatusReportingService(l,t,"statusPane","notifications","notificationArea");new c.ProgressService(l,t);var t=new a.CommandService({serviceRegistry:l}),w=new d.FileClient(l),w=new b.Searcher({serviceRegistry:l,commandService:t,fileService:w}),s=new e.UsersClient(l,s),y=new a.Command({name:"Clear themes and editor settings",tooltip:"Clear all settings associated with editor themes and window themes",id:"orion.clearThemes",callback:function(){u.getPreferences("/themes",
2).then(function(a){a.put("styles",null);a.put("selected",null);v.setMessage("Theme settings have been cleared.")});u.getPreferences("/settings",2).then(function(a){a.put("JavaScript Editor",null);v.setMessage("Theme settings have been cleared.")})}});t.addCommand(y);t.registerCommandContribution("globalActions","orion.clearThemes",1,null,!0,new a.CommandKeyBinding("t",!0,!0,!0));y=new j.DialogService(l);m.generateBanner("orion-settings",l,t,u,w);w=new r(l,new p.MetaTypeRegistry(l));v.setMessage(f["Loading..."]);
(new q({preferences:u,registry:l,preferencesStatusService:v,commandService:t,preferenceDialogService:y,settingsCore:i,pageActions:"pageActions",userClient:s,settingsRegistry:w},k.node("categoriesContainer"),k.node("settings"))).show();v.setMessage("")})});