/*******************************************************************************
 * @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 RequireJS domReady 2.0.1 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
 * Available via the MIT or new BSD license.
 * see: http://github.com/requirejs/domReady for details
 */

/*

 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
 RequireJS domReady 2.0.1 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
 Available via the MIT or new BSD license.
 see: http://github.com/requirejs/domReady 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
*/
(function(){var a=this;if(!a.define)a.define=function(e){a.orion=a.orion||{};a.orion.PluginProvider=e();a.eclipse=a.orion;delete a.define}})();
define("orion/plugin",[],function(){return function(a){function e(i){n&&(typeof ArrayBuffer==="undefined"&&(i=JSON.stringify(i)),n===self?n.postMessage(i):n.postMessage(i,"*"))}function k(i,f){if(f&&f instanceof XMLHttpRequest){var a,l;try{a=f.status,l=f.statusText}catch(b){a=0,l=""}return{status:a||0,statusText:l}}return f}function h(i){var f=i?JSON.parse(JSON.stringify(i,k)):i;if(i instanceof Error)f.__isError=!0,f.message=f.message||i.message,f.name=f.name||i.name;return f}function b(i){return function(f){m&&
e({serviceId:i,method:"dispatchEvent",params:[f]})}}function c(i){if(i.source===n){var f=typeof i.data!=="string"?i.data:JSON.parse(i.data);if(typeof f.cancel==="string"){var a=o[f.id];a&&(delete o[f.id],a.cancel&&a.cancel(f.cancel))}else{var i=f.serviceId,l=f.method,c=f.params,d=j[i],k=d.implementation,m=k[l];l==="addEventListener"?(l=c[0],d.listeners[l]=d.listeners[l]||b(i),c=[l,d.listeners[l]]):l==="removeEventListener"&&(l=c[0],c=[l,d.listeners[l]],delete d.listeners[l]);var p={id:f.id,result:null,
error:null};try{(a=m.apply(k,c))&&typeof a.then==="function"?(o[f.id]=a,a.then(function(a){delete o[f.id];p.result=a;e(p)},function(a){if(o[f.id])delete o[f.id],p.error=h(a),e(p)},function(){e({requestId:f.id,method:"progress",params:Array.prototype.slice.call(arguments)})})):(p.result=a,e(p))}catch(r){p.error=h(r),e(p)}}}}var d=a,j=[],m=!1,o={},n=null;this.updateHeaders=function(a){if(m)throw Error("Cannot update headers. Plugin Provider is connected");d=a};this.registerServiceProvider=this.registerService=
function(a,f,c){if(m)throw Error("Cannot register service. Plugin Provider is connected");typeof a==="string"?a=[a]:Array.isArray(a)||(a=[]);var l=null,b=[];for(l in f)typeof f[l]==="function"&&b.push(l);j[j.length]={names:a,methods:b,implementation:f,properties:c||{},listeners:{}}};this.connect=function(a,f){if(!m){if(typeof window==="undefined")n=self;else if(window!==window.parent)n=window.parent;else if(window.opener!==null)n=window.opener;else{f&&f("No valid plugin target");return}addEventListener("message",
c,!1);for(var b=[],l=0;l<j.length;l++)b.push({serviceId:l,names:j[l].names,methods:j[l].methods,properties:j[l].properties});e({method:"plugin",params:[{headers:d||{},services:b}]});m=!0}a&&a()};this.disconnect=function(){m&&(removeEventListener("message",c),n=null,m=!1)}}});
(function(a,e){typeof define==="function"&&define.amd?define("orion/Deferred",e):typeof exports==="object"?module.exports=e():(a.orion=a.orion||{},a.orion.Deferred=e())})(this,function(){function a(){for(var a;a=d.shift()||j.shift();)a();m=!1}function e(c,b){(b?j:d).push(c);m||(m=!0,b?setTimeout(a,0):a())}function k(a){return function(){a.apply(null,arguments)}}function h(){}function b(){var a=Error("Cancel");a.name="Cancel";return a}function c(){function a(){for(var b;b=f.shift();){var c=b.deferred,
d=i==="resolved"?"resolve":"reject";if(typeof b[d]==="function")try{var e=b[d](n);e&&typeof e.then==="function"?(c.cancel=e.cancel||h,e.then(k(c.resolve),k(c.reject),c.progress)):c.resolve(e)}catch(j){c.reject(j)}else c[d](n)}}var n,i,f=[],d=this;this.reject=function(c){i||(i="rejected",n=c,f.length&&e(a));return d.promise};this.resolve=function(c){i||(i="resolved",n=c,f.length&&e(a));return d.promise};this.progress=function(a){i||f.forEach(function(c){c.progress&&c.progress(a)});return d.promise};
this.cancel=function(){i||d.reject(b())};this.then=function(b,h,n){var b={resolve:b,reject:h,progress:n,deferred:new c},k=b.deferred,j=!1,m=function(){j||(j=!0,e(function(){var a=k.cancel===m?d.cancel:k.cancel;typeof a==="function"&&a()},!0))};k.cancel=m;f.push(b);i&&e(a,!0);return k.promise};this.promise=Object.create(Object.prototype,{then:{value:d.then},cancel:{get:function(){return d.cancel},set:function(a){d.cancel=a}}})}var d=[],j=[],m=!1;c.all=function(a,b){function e(a,c){k||(h[a]=c,--d===
0&&j.resolve(h))}function f(a,c){if(!k){if(b)try{e(a,b(c));return}catch(f){c=f}j.reject(c)}}var d=a.length,h=[],k=!1,j=new c;j.then(null,function(){k=!0;a.forEach(function(a){a.cancel&&a.cancel()})});d===0?j.resolve(h):a.forEach(function(a,c){a.then(e.bind(null,c),f.bind(null,c))});return j.promise};c.when=function(a,b,e,f){var d;if(!(a&&typeof a.then==="function"))d=new c,d.resolve(a),a=d.promise;return a.then(b,e,f)};return c});
define("orion/xhr",["orion/Deferred"],function(a){function e(a,e,b,c){var d=typeof b.response!=="undefined"?b.response:b.responseText,j;try{j=b.status}catch(m){j=0}a={args:e,response:d,responseText:typeof d==="string"?d:null,status:j,url:a,xhr:b};if(typeof c!=="undefined")a.error=c;return a}return function(k,h,b){var b=b||{},c=arguments.length>3&&arguments[3]?arguments[3]:new XMLHttpRequest,d=new a,j=b.headers||{},m=b.log||!1,o;typeof j["X-Requested-With"]==="undefined"&&(j["X-Requested-With"]="XMLHttpRequest");
if(typeof b.data!=="undefined"&&(k==="POST"||k==="PUT"))o=b.data;c.onprogress=function(a){a.xhr=c;d.progress(a)};c.onreadystatechange=function(){if(c.readyState===4){var a=e(h,b,c),i=c.status;200<=i&&i<400?d.resolve(a):(m&&typeof console!=="undefined"&&console.log(Error(c.statusText)),d.reject(a))}};try{c.open(k,h,!0);if(typeof b.responseType==="string")c.responseType=b.responseType;if(typeof b.timeout==="number")if(typeof c.timeout==="number")c.timeout=b.timeout,c.addEventListener("timeout",function(){d.reject(e(h,
b,c,"Timeout exceeded"))});else{var n=setTimeout(function(){d.reject(e(h,b,c,"Timeout exceeded"))},b.timeout);d.then(clearTimeout.bind(null,n),clearTimeout.bind(null,n))}Object.keys(j).forEach(function(a){c.setRequestHeader(a,j[a])});c.send(o)}catch(i){d.reject(e(h,b,c,i))}return d.promise}});
(function(){function a(g){if(typeof g!=="string")throw new TypeError;}function e(g){return g?g.split("&"):[]}function k(g){return g.length===0?"":g.join("&")}function h(g){var a=/([^=]*)(?:=?)(.*)/.exec(g),g=a[1]?decodeURIComponent(a[1]):"",a=a[2]?decodeURIComponent(a[2]):"";return[g,a]}function b(g){var a=encodeURIComponent(g[0]);g[1]&&(a+="="+encodeURIComponent(g[1]));return a}function c(g,a){var c="",b=[],d=0;return{next:function(){if(c!==g.query)c=g.query,b=e(c);if(d<b.length){var f=h(b[d++]);
switch(a){case "keys":return f[0];case "values":return f[1];case "keys+values":return[f[0],f[1]];default:throw new TypeError;}}throw t;}}}function d(g){Object.defineProperty(this,"_url",{get:function(){return g._url}})}function j(g){var a=[];g.split("/").forEach(function(g){g===".."?a.pop():g!=="."&&a.push(g)});return a.join("/")}function m(g){return g.replace(/\s/g,function(g){return"%"+g.charCodeAt(0).toString(16)})}function o(g,a){if(typeof g!=="string")throw new TypeError;var g=m(g),c=f.exec(g);
if(!c)return null;var b={};b.scheme=c[1]||"";if(b.scheme&&!l.test(b.scheme))return null;var d=c[2];if(d&&(d=u.exec(d),b.userinfo=d[1],b.host=d[2],b.port=d[3],b.port&&!s.test(b.port)))return null;b.path=c[3];b.query=c[4];b.fragment=c[5];if(!b.scheme&&a&&(b.scheme=a.scheme,!b.host&&a.host))b.userinfo=a.userinfo,b.host=a.host,b.port=a.port,b.pathRelative=!0;if(b.pathRelative)if(b.path){if(b.path[0]!=="/")c=/^(.*\/)[^\/]*$/.exec(a.path)[1]||"/",b.path=c+b.path}else b.path=a.path;if(b.scheme)b.scheme=
b.scheme.toLowerCase();if(b.port)b.port=/[1-9]\d*$/.exec(b.port)[0];if(b.host&&b.path)b.path=j(b.path);return b}function n(g,a){var b;if(a){a=a.href||a;b=o(a);if(!b||!b.scheme)throw new SyntaxError;Object.defineProperty(this,"_baseURL",{value:b})}b=o(g,b);if(!b)throw new SyntaxError;Object.defineProperty(this,"_input",{value:g,writable:!0});Object.defineProperty(this,"_url",{value:b,writable:!0});var c=new d(this);Object.defineProperty(this,"query",{get:function(){return this._url?c:null},enumerable:!0})}
try{if(typeof window.URL==="function"&&window.URL.length!==0&&(new window.URL("http://www.w3.org")).protocol==="http:")return}catch(i){}var f=/^(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?$/,u=/^(?:(.*)@)?(\[[^\]]*\]|[^:]*)(?::(.*))?$/,l=/^([a-zA-Z](?:[a-zA-Z0-9+-.])*)$/,s=/^\d*$/,v=/^(\[[^\]\/?#\s]*\]|[^:\/?#\s]*)$/,w=/^(\[[^\]\/?#\s]*\]|[^:\/?#\s]*)(?::(\d*))?$/,x=/^([^?#\s]*)$/,p=/^([^\s]*)$/,r=/^\S*$/,q=/([^:]*):?(.*)/,t=typeof StopIteration!=="undefined"?StopIteration:
Error("Stop Iteration"),y={"ftp:":"21","gopher:":"70","http:":"80","https:":"443","ws:":"80","wss:":"443"};Object.defineProperties(d.prototype,{get:{value:function(g){a(g);var b;e(this._url.query).some(function(a){a=h(a);if(a[0]===g)return b=a[1],!0});return b},enumerable:!0},set:{value:function(g,c){a(g);a(c);var d=e(this._url.query);d.some(function(a,f){var e=h(a);if(e[0]===g)return e[1]=c,d[f]=b(e),!0})||d.push(b([g,c]));this._url.query=k(d)},enumerable:!0},has:{value:function(g){a(g);return e(this._url.query).some(function(a){if(h(a)[0]===
g)return!0})},enumerable:!0},"delete":{value:function(g){a(g);var b=e(this._url.query),c=b.filter(function(a){return h(a)[0]!==g});return c.length!==b.length?(this._url.query=k(c),!0):!1},enumerable:!0},clear:{value:function(){this._url.query=""},enumerable:!0},forEach:{value:function(a,b){if(typeof a!=="function")throw new TypeError;var d=c(this._url,"keys+values");try{for(;;){var f=d.next();a.call(b,f[1],f[0],this)}}catch(e){if(e!==t)throw e;}},enumerable:!0},keys:{value:function(){return c(this._url,
"keys")},enumerable:!0},values:{value:function(){return c(this._url,"values")},enumerable:!0},items:{value:function(){return c(this._url,"keys+values")}},size:{get:function(){return e(this._url.query).length},enumerable:!0},getAll:{value:function(g){a(g);var b=[];e(this._url.query).forEach(function(a){a=h(a);a[0]===g&&b.push(a[1])});return b},enumerable:!0},append:{value:function(g,c){a(g);a(c);var d=e(this._url.query);d.push(b([g,c]));this._url.query=k(d)},enumerable:!0}});Object.defineProperties(n.prototype,
{href:{get:function(){var a;if(this._url){a=this._url;var b=a.scheme?a.scheme+":":"";a.host&&(b+="//",a.userinfo&&(b+=a.userinfo+"@"),b+=a.host,a.port&&(b+=":"+a.port));b+=a.path;a.query&&(b+="?"+a.query);a.fragment&&(b+="#"+a.fragment);a=b}else a=this._input;return a},set:function(b){a(b);this._input=b;this._url=o(this._input,this._baseURL)},enumerable:!0},origin:{get:function(){return this._url&&this._url.host?this.protocol+"//"+this.host:""},enumerable:!0},protocol:{get:function(){return this._url?
this._url.scheme+":":":"},set:function(b){a(b);if(this._url&&(b=b.slice(-1)===":"?b.substring(0,b.length-1):b,l.test(b)))this._url.scheme=b.toLowerCase()},enumerable:!0},_userinfo:{get:function(){return this._url?this._url.userinfo:""},set:function(b){a(b);if(this._url)this._url.userinfo=b}},username:{get:function(){if(!this._url)return"";var a=q.exec(this._userinfo);return decodeURIComponent(a[1]||"")},set:function(b){a(b);if(this._url){var c=q.exec(this._userinfo),b=[encodeURIComponent(b||"")];
c[2]&&b.push(c[2]);this._userinfo=b.join(":")}},enumerable:!0},password:{get:function(){if(!this._url)return"";var a=q.exec(this._userinfo);return decodeURIComponent(a[2]||"")},set:function(b){a(b);if(this._url){var c=[q.exec(this._userinfo)[1]||""];b&&c.push(encodeURIComponent(b));this._userinfo=c.join(":")}},enumerable:!0},host:{get:function(){var a="";this._url&&this._url.host&&(a+=this._url.host,this._url.port&&(a+=":"+this._url.port));return a},set:function(b){a(b);if(this._url&&(b=w.exec(b)))this._url.host=
b[1],this._url.port=/[1-9]\d*$/.exec(b[2])[0]},enumerable:!0},hostname:{get:function(){return this._url?this._url.host:""},set:function(b){a(b);if(this._url&&v.exec(b))this._url.host=b},enumerable:!0},port:{get:function(){var a=this._url?this._url.port||"":"";a&&a===y[this.protocol]&&(a="");return a},set:function(b){a(b);if(this._url&&s.exec(b))this._url.port=/[1-9]\d*$/.exec(b)[0]},enumerable:!0},pathname:{get:function(){return this._url?this._url.path:""},set:function(b){a(b);if(this._url&&x.exec(b))this._url.host&&
b&&b[0]!=="/"&&(b="/"+b),this._url.path=b?j(b):""},enumerable:!0},search:{get:function(){return this._url&&this._url.query?"?"+this._url.query:""},set:function(b){a(b);if(this._url&&(b&&b[0]==="?"&&(b=b.substring(1)),p.exec(b)))this._url.query=b},enumerable:!0},hash:{get:function(){return this._url&&this._url.fragment?"#"+this._url.fragment:""},set:function(b){a(b);if(this._url&&(b&&b[0]==="#"&&(b=b.substring(1)),r.exec(b)))this._url.fragment=b},enumerable:!0}});window.URL&&window.URL.createObjectURL&&
(Object.defineProperty(n,"createObjectURL",{value:window.URL.createObjectURL.bind(window.URL),enumerable:!1}),Object.defineProperty(n,"revokeObjectURL",{value:window.URL.revokeObjectURL.bind(window.URL),enumerable:!1}));window.URL=n})();define("orion/URL-shim",function(){});
define("domReady",[],function(){function a(){if(!d){d=!0;b&&clearInterval(b);var a=m;if(d&&a.length){m=[];var c;for(c=0;c<a.length;c+=1)a[c](j)}}}function e(a){d?a(j):m.push(a);return e}var k,h,b,c=typeof window!=="undefined"&&window.document,d=!c,j=c?document:null,m=[];if(c){if(document.addEventListener)document.addEventListener("DOMContentLoaded",a,!1),window.addEventListener("load",a,!1);else if(window.attachEvent){window.attachEvent("onload",a);h=document.createElement("div");try{k=window.frameElement===
null}catch(o){}h.doScroll&&k&&window.external&&(b=setInterval(function(){try{h.doScroll(),a()}catch(b){}},30))}document.readyState==="complete"&&a()}e.version="2.0.1";e.load=function(a,b,c,d){d.isBuild?c(null):e(c)};return e});
define('built-gitPlugin.js',["orion/plugin","orion/xhr","orion/URL-shim","domReady!"],function(a,e){var k=document.createElement("a");k.href="../mixloginstatic/LoginWindow.html";var h=new a({name:"Orion Git Support",version:"1.0",description:"This plugin provides Git Support to the Orion File Service.",login:k.href});h.registerService("orion.page.link",{},{nameKey:"Repositories",id:"orion.git.repositories",nls:"git/nls/gitmessages",uriTemplate:"{OrionHome}/git/git-repository.html#"});h.registerService("orion.navigate.command",
{},{nameKey:"Git Status",id:"eclipse.git.status",tooltipKey:"Go to Git Status",nls:"git/nls/gitmessages",validationProperties:[{source:"Git:StatusLocation",variableName:"GitStatusLocation"},{source:"Directory",match:!0}],uriTemplate:"{OrionHome}/git/git-status2.html#{GitStatusLocation}",forceSingleItem:!0});h.registerService("orion.navigate.command",{},{nameKey:"Git Log",id:"eclipse.git.log",tooltipKey:"Go to Git Log",nls:"git/nls/gitmessages",validationProperties:[{source:"Git:CommitLocation",variableName:"GitLogLocation"}],
uriTemplate:"{OrionHome}/git/git-log.html#{GitLogLocation}?page=1",forceSingleItem:!0});h.registerService("orion.navigate.command",{},{nameKey:"Git Remote",id:"eclipse.git.remote",tooltipKey:"Go to Git Remote",nls:"git/nls/gitmessages",validationProperties:[{source:"Git:DefaultRemoteBranchLocation",variableName:"GitRemoteLocation"}],uriTemplate:"{OrionHome}/git/git-log.html#{GitRemoteLocation}?page=1",forceSingleItem:!0});h.registerService("orion.core.content",null,{id:"orion.content.gitClone",nls:"git/nls/gitmessages",
nameKey:"Clone Git Repository",descriptionKey:"Go to the Orion repositories page to provide a git repository URL. Once the repository is created, it will appear in the Navigator.",uriTemplate:"{OrionHome}/git/git-repository.html#,cloneGitRepository=URL"});h.registerService("orion.page.link.related",null,{id:"eclipse.git.status"});h.registerService("orion.page.link.related",null,{nameKey:"Git Status",id:"eclipse.git.status2",tooltipKey:"Go to Git Status",nls:"git/nls/gitmessages",validationProperties:[{source:"StatusLocation|Clone:StatusLocation",
variableName:"GitStatusLocation"}],uriTemplate:"{OrionHome}/git/git-status2.html#{GitStatusLocation}"});h.registerService("orion.page.link.related",null,{id:"eclipse.git.log"});h.registerService("orion.page.link.related",null,{nameKey:"Active Branch Log",id:"eclipse.orion.git.switchToCurrentLocal",tooltipKey:"Show the log for the active local branch",nls:"git/nls/gitmessages",validationProperties:[{source:"Clone:ActiveBranch",variableName:"GitBranchLocation"},{source:"toRef:Type",match:"RemoteTrackingBranch"}],
uriTemplate:"{OrionHome}/git/git-log.html#{GitBranchLocation}?page=1",forceSingleItem:!0});h.registerService("orion.page.link.related",null,{nameKey:"Remote Branch Log",id:"eclipse.orion.git.switchToRemote2",tooltipKey:"Show the log for the corresponding remote tracking branch",nls:"git/nls/gitmessages",validationProperties:[{source:"toRef:RemoteLocation:0:Children:0:CommitLocation",variableName:"GitRemoteLocation"}],uriTemplate:"{OrionHome}/git/git-log.html#{GitRemoteLocation}?page=1",forceSingleItem:!0});
h.registerService("orion.page.link.related",null,{nameKey:"Git Repository",id:"eclipse.git.repository2",tooltipKey:"Go to the git repository",nls:"git/nls/gitmessages",validationProperties:[{source:"CloneLocation",variableName:"GitCloneLocation"},{source:"Type",match:"Commit"}],uriTemplate:"{OrionHome}/git/git-repository.html#{GitCloneLocation}"});h.registerService("orion.page.link.related",null,{id:"eclipse.git.repository",nameKey:"Git Repository",tooltipKey:"Go to the git repository",nls:"git/nls/gitmessages",
validationProperties:[{source:"Git:CloneLocation",variableName:"GitRepoLocation"}],uriTemplate:"{OrionHome}/git/git-repository.html#{GitRepoLocation}"});h.registerService("orion.page.link.related",null,{id:"orion.git.gotoEclipseGit",nameKey:"Show Repository in eclipse.org",tooltipKey:"Show this repository in eclipse.org",nls:"git/nls/gitmessages",validationProperties:[{source:"GitUrl|Clone:GitUrl",match:"git.eclipse.org/gitroot",variableName:"EclipseGitLocation",variableMatchPosition:"after"}],uriTemplate:"http://git.eclipse.org/c{EclipseGitLocation}"});
h.registerService("orion.page.link.related",null,{id:"orion.git.gotoGithub",nameKey:"Show Repository in GitHub",nls:"git/nls/gitmessages",tooltipKey:"Show this repository in GitHub",validationProperties:[{source:"GitUrl|Clone:GitUrl",match:"github.com.*.git",variableName:"GitHubLocation",variableMatchPosition:"only",replacements:[{pattern:":",replacement:"/"},{pattern:".git$",replacement:""}]}],uriTemplate:"https://{GitHubLocation}"});h.registerServiceProvider("orion.page.link.related",null,{id:"orion.git.gotoGithubCommit",
nameKey:"Show Commit in GitHub",nls:"git/nls/gitmessages",tooltipKey:"Show this commit in GitHub",validationProperties:[{source:"GitUrl",match:"github.com.*.git",variableName:"GitHubLocation",variableMatchPosition:"only",replacements:[{pattern:":",replacement:"/"},{pattern:".git$",replacement:""}]},{source:"Type",match:"Commit"},{source:"Name",variableName:"commitName"}],uriTemplate:"https://{GitHubLocation}/commit/{commitName}"});h.registerServiceProvider("orion.page.link.related",null,{id:"orion.git.gotoEclipseGitCommit",
nameKey:"Show Commit in eclipse.org",nls:"git/nls/gitmessages",tooltipKey:"Show this commit in eclipse.org",validationProperties:[{source:"GitUrl",match:"git.eclipse.org/gitroot",variableName:"EclipseGitLocation",variableMatchPosition:"after"},{source:"Type",match:"Commit"},{source:"Name",variableName:"commitName"}],uriTemplate:"http://git.eclipse.org/c{EclipseGitLocation}/commit/?id={commitName}"});k.href="../../gitapi/diff/";h.registerService("orion.core.diff",{getDiffContent:function(a){a=new URL(a,
window.location);a.query.set("parts","diff");return e("GET",a.href,{headers:{"Orion-Version":"1"},timeout:15E3}).then(function(a){return a.responseText})},getDiffFileURI:function(a){a=new URL(a,window.location);a.query.set("parts","uris");return e("GET",a.href,{headers:{"Orion-Version":"1"},timeout:15E3}).then(function(a){return JSON.parse(a.responseText)})}},{pattern:k.href});h.connect()});